{"version":3,"file":"4729.23b6a8bf96a69848d8de.js","mappings":"+JAmDA,QAnDqB,CACjBA,KAAM,WAAW,IAAAC,EAAA,KACbC,KAAKC,aAAY,kBAAMF,EAAKG,aAAa,GAC7C,EACAA,YAAa,WAAU,IAAAC,EAAA,KAEfC,EAASC,SAASC,cAAc,OAChCC,EAASF,SAASC,cAAc,UAKpCF,EAAOI,UAAY,gBACnBD,EAAOE,GAAK,wBACZF,EAAOC,UAAY,eACnBD,EAAOG,QAAQC,KAAO,KACtBJ,EAAOK,UANU,KAOjBR,EAAOQ,UARC,kNASRR,EAAOS,YAAYN,GACnBF,SAASS,KAAKD,YAAYT,GAG1BW,YAAW,WACPX,EAAOY,UAAUC,IAAI,aACzB,GAAG,KAGHV,EAAOW,iBAAiB,SAAS,kBAAMf,EAAKgB,mBAAmBf,EAAO,GAC1E,EACAH,YAAa,SAASmB,GAClB,IAAIC,EAAOhB,SAASC,cAAc,QAElCe,EAAKC,KAAO,WACZD,EAAKE,IAAM,aACXF,EAAKG,OAASJ,EACdC,EAAKI,KAAO,gCAEZpB,SAASqB,qBAAqB,QAAQ,GAAGb,YAAYQ,EACzD,EACAF,mBAAoB,SAASf,GAEzBuB,SAASC,OAAOC,MAAM,uBAAuB,EAAM,KAEnDzB,EAAOY,UAAUc,OAAO,cAExBf,YAAW,WACPX,EAAO2B,WAAWC,YAAY5B,EAClC,GAAG,IACP,E","sources":["webpack://front-end-build-system/./src/views/shared/cookienotice.js"],"sourcesContent":["const cookieNotice = {\n init: function() {\n this._loadStyles(() => this._showNotice());\n },\n _showNotice: function(){\n // create the notice\n var notice = document.createElement('div'),\n button = document.createElement('button'),\n text =\n '

By continuing to use our site, you consent to our use of cookies to improve your experience. Learn more in our Privacy Policy.

',\n buttonText = 'OK';\n\n notice.className = 'cookie-notice';\n button.id = 'cookie-notice-confirm';\n button.className = 'ghost button';\n button.dataset.size = 'sm';\n button.innerHTML = buttonText;\n notice.innerHTML = text;\n notice.appendChild(button);\n document.body.appendChild(notice);\n\n // After the DOM is loaded for a second, show the cookie notice\n setTimeout(function() {\n notice.classList.add('is-visible');\n }, 1000);\n\n // When clicking on the confirmation button\n button.addEventListener('click', () => this._closeCookieNotice(notice));\n },\n _loadStyles: function(callback){\n var link = document.createElement('link');\n\n link.type = 'text/css';\n link.rel = 'stylesheet';\n link.onload = callback;\n link.href = '/assets/css/cookie-notice.css';\n\n document.getElementsByTagName('body')[0].appendChild(link);\n },\n _closeCookieNotice: function(notice) {\n // Set a cookie so it never comes back\n smartPak.cookie.write('hasSeenCookieNotice', true, 1000);\n // Hide it\n notice.classList.remove('is-visible');\n // When animation is complete, remove cookie notice\n setTimeout(function() {\n notice.parentNode.removeChild(notice);\n }, 250);\n }\n};\n\nexport default cookieNotice;\n"],"names":["init","_this","this","_loadStyles","_showNotice","_this2","notice","document","createElement","button","className","id","dataset","size","innerHTML","appendChild","body","setTimeout","classList","add","addEventListener","_closeCookieNotice","callback","link","type","rel","onload","href","getElementsByTagName","smartPak","cookie","write","remove","parentNode","removeChild"],"sourceRoot":""}