{"version":3,"sources":["webpack:///./Scripts/Components/Vanilla/ThinBannerMessage.js"],"names":["bannerMessage","document","getElementById","closeButton","addEventListener","classList","remove","add","cookieValue","cookie","split","find","row","startsWith","decodedCookieValue","decodeURIComponent","JSON","parse","functionality","funcitonalCookiesEnabled","cname","cvalue","exdays","d","Date","setTime","getTime","expires","toUTCString","setCookie"],"mappings":"mEAAA,WACE,IAAIA,EAAgBC,SAASC,eAAe,uBAC5C,GAAIF,EAAe,CACjB,IAAIG,EAAcF,SAASC,eACzB,oCAEEC,GACFA,EAAYC,iBAAiB,SAAS,KACpCJ,EAAcK,UAAUC,OAAO,eAC/BN,EAAcK,UAAUE,IAAI,eAclC,WAAmC,MACjC,MAAMC,EAAW,UAAGP,SAASQ,OACxBC,MAAM,MACNC,MAAKC,GAAOA,EAAIC,WAAW,kCAFf,aAAG,EAGdH,MAAM,KAAK,GAETI,EAAqBC,mBAAmBP,GAE9C,OADmBQ,KAAKC,MAAMH,GACZI,aACrB,CAtBQC,IAMT,SAAmBC,EAAOC,EAAQC,GAChC,MAAMC,EAAI,IAAIC,KACdD,EAAEE,QAAQF,EAAEG,UAAqB,GAATJ,EAAc,GAAK,GAAK,KAChD,IAAIK,EAAU,WAAaJ,EAAEK,cAC7B3B,SAASQ,OAASW,EAAQ,IAAMC,EAAS,IAAMM,EAAU,SAC1D,CAVOE,CAAU,8BAA+B,OAAQ,EAClD,GAGN,CAfH,I","file":"7652.15d18e9d91b83be01e6e.js","sourcesContent":["(async () => {\n let bannerMessage = document.getElementById('thin-banner-message');\n if (bannerMessage) {\n let closeButton = document.getElementById(\n 'thin-banner-message-close-button'\n );\n if (closeButton) {\n closeButton.addEventListener('click', () => {\n bannerMessage.classList.remove('banner-show');\n bannerMessage.classList.add('banner-hide');\n if(funcitonalCookiesEnabled()){\n setCookie('userClosedThinBannerMessage', 'true', 1);\n }\n });\n }\n }\n function setCookie(cname, cvalue, exdays) {\n const d = new Date();\n d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1000);\n let expires = 'expires=' + d.toUTCString();\n document.cookie = cname + '=' + cvalue + ';' + expires + ';path=/';\n }\n\n function funcitonalCookiesEnabled(){\n const cookieValue = document.cookie\n .split('; ')\n .find(row => row.startsWith('cookie_consent_level='))\n ?.split('=')[1];\n\n const decodedCookieValue = decodeURIComponent(cookieValue);\n const parsedData = JSON.parse(decodedCookieValue);\n return parsedData.functionality;\n }\n})();\n"],"sourceRoot":""}