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AOM,KAAK,WAAWC,QAASxC,KAAKC,MAAMK,UAAWmC,KAAK,YAAYC,SAAU,IAAM1C,KAAK4B,iBAC5F,wBAAMK,UAAU,oBAI5B,uBAAKA,UAAU,gCACX,4BAAMxB,EAAAA,EAAAA,GAAW,0BACjB,2BACI,wBAAMwB,UAAU,+BAA+BtB,GAC/C,yBAAOsB,UAAU,+BACb,yBAAOM,KAAK,WAAWC,QAASxC,KAAKC,MAAMM,UAAWkC,KAAK,YAAYC,SAAU,IAAM1C,KAAK8B,iBAC5F,wBAAMG,UAAU,oBAI5B,uBAAKA,UAAU,gCACX,0BAAQA,UAAU,6BAA6BC,QAAS,IAAMlC,KAAK2B,kBAAkBlB,EAAAA,EAAAA,GAAW,uCAChG,0BAAQwB,UAAU,iCAAiCC,QAAS,IAAMlC,KAAKyB,2BAA2BhB,EAAAA,EAAAA,GAAW,uCAQ5I,EAEL,S","sources":["webpack:///./Scripts/Fmm/Components/CookieBar.js"],"sourcesContent":["import React, { Fragment, Component } from 'react';\nimport constants from '../../constants';\nimport { translate } from '../../Services/translation';\n\nclass CookieBar extends Component {\n constructor(props) {\n super(props);\n this.state = {\n cookiebarVisible: props.cookiebarVisible,\n showButton: props.showButton,\n settingsVisible: false,\n functional: props.functional === 'true',\n analytics: props.analytics === 'true',\n marketing: props.marketing === 'true',\n functionalStatusText: translate('code.cookie.' + (props.functional === 'true' ? \"active\" : \"disabled\")),\n analyticsStatusText: translate('code.cookie.' + (props.analytics === 'true' ? \"active\" : \"disabled\")),\n marketingStatusText: translate('code.cookie.' + (props.marketing === 'true' ? \"active\" : \"disabled\"))\n };\n }\n\n showSettings() {\n this.setState(() => ({ settingsVisible: true }));\n }\n acceptAllCookies(delayClose) {\n\n this.setState(() => ({ functional: true, analytics: true, marketing: true, settingsVisible: delayClose, cookiebarVisible: false }));\n var now = new Date();\n now.setTime(now.getTime() + 3600 * 1000 * 24 * 365);\n var cookieExpires = now.toUTCString();\n document.cookie = \"cookie_consent=functional|analytics|marketing;expires=\" + cookieExpires + \";path=/\";\n\n gtag('consent', 'update', {\n 'ad_storage': (this.state.marketing ? 'granted' : 'denied'),\n 'analytics_storage': (this.state.analytics ? 'granted' : 'denied'),\n 'functionality_storage': (this.state.functional ? 'granted' : 'denied')\n });\n }\n acceptCookiesWithDelay() {\n this.acceptAllCookies(true);\n setTimeout(() => {\n this.setState(() => ({ settingsVisible: false, cookiebarVisible: false }));\n }, 1000);\n }\n acceptCookies() {\n this.setState(() => ({ settingsVisible: false, cookiebarVisible: false }));\n\n var now = new Date();\n now.setTime(now.getTime() + 3600 * 1000 * 24 * 365);\n var cookieExpires = now.toUTCString();\n\n document.cookie = \"cookie_consent=\" +\n (this.state.functional ? \"functional|\" : \"\") +\n (this.state.analytics ? \"analytics|\" : \"\") +\n (this.state.marketing ? \"marketing|\" : \"\") +\n \";expires=\" + cookieExpires + \";path=/\";\n\n gtag('consent', 'update', {\n 'ad_storage': (this.state.marketing ? 'granted' : 'denied'),\n 'analytics_storage': (this.state.analytics ? 'granted' : 'denied'),\n 'functionality_storage': (this.state.functional ? 'granted' : 'denied')\n });\n\n }\n setAnalytics() {\n this.setState(() => ({ analytics: !this.state.analytics }));\n this.setState(() => ({ analyticsStatusText: this.state.analytics ? translate('code.cookie.disabled') : translate('code.cookie.active') }));\n }\n setFunctional() {\n this.setState(() => ({ functional: !this.state.functional }));\n this.setState(() => ({ functionalStatusText: this.state.functional ? translate('code.cookie.disabled') : translate('code.cookie.active') }));\n }\n setMarketing() {\n this.setState(() => ({ marketing: !this.state.marketing }));\n this.setState(() => ({ marketingStatusText: this.state.marketing ? translate('code.cookie.disabled') : translate('code.cookie.active') }));\n }\n\n render() {\n let functionalStatusText = this.state.functionalStatusText;\n let analyticsStatusText = this.state.analyticsStatusText;\n let marketingStatusText = this.state.marketingStatusText;\n return (\n \n {this.state.showButton &&\n \n }\n {this.state.cookiebarVisible &&\n
\n
\n
{translate(`code.cookie.information1`)}{translate(`code.cookie.text`)}{'. ' + translate(`code.cookie.information2`)}
\n
\n \n \n
\n
\n
\n }\n {this.state.settingsVisible &&\n
\n
\n
\n
\n

{translate(`code.cookie.header`)}

\n
\n
{translate(`code.cookie.settings.info`)} {translate(`code.cookie.settings.readmore`)}
\n
\n
{translate(`code.cookie.necessary`)}
\n
{translate(`code.cookie.alwaysactive`)}
\n
\n
\n
{translate(`code.cookie.functional`)}
\n
\n {functionalStatusText}\n \n
\n
\n
\n
{translate(`code.cookie.analysis`)}
\n
\n {analyticsStatusText}\n \n
\n
\n
\n
{translate(`code.cookie.marketing`)}
\n
\n {marketingStatusText}\n \n
\n
\n
\n \n \n
\n
\n
\n
\n }\n
\n )\n }\n}\nexport default CookieBar;"],"names":["CookieBar","Component","constructor","props","super","this","state","cookiebarVisible","showButton","settingsVisible","functional","analytics","marketing","functionalStatusText","translate","analyticsStatusText","marketingStatusText","showSettings","setState","acceptAllCookies","delayClose","now","Date","setTime","getTime","cookieExpires","toUTCString","document","cookie","gtag","acceptCookiesWithDelay","setTimeout","acceptCookies","setAnalytics","setFunctional","setMarketing","render","Fragment","className","onClick","href","constants","cookieTermsPageUrl","ref","type","checked","name","onChange"],"sourceRoot":""}