{"version":3,"file":"CookiePopup-c196a74538671c95d520.js","sources":["webpack:///CookiePopup-c196a74538671c95d520.js"],"sourcesContent":["(this.nextGenJsonpFunction=this.nextGenJsonpFunction||[]).push([[106],{1270:function(e,t,n){\"use strict\";n.r(t);var o=n(82),i=n(400),r=n(24),a=n(29),l=n(48),c=n(178),s=n.n(c),u=n(0),d=n(2),p=n(3),f=n(8),m=n(6),y=n(16),v=n(1);var w={Container:d.d.section.withConfig({displayName:\"CookiePopupstyles__Container\",componentId:\"sc-1ija68d-0\"})([\"position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.7);z-index:10000;display:flex;justify-content:center;align-items:center;padding:12px;backdrop-filter:blur(3px);\"]),Modal:d.d.div.withConfig({displayName:\"CookiePopupstyles__Modal\",componentId:\"sc-1ija68d-1\"})([\"background:\",\";padding:\",\" \",\";text-align:center;max-width:725px;font-size:16px;max-height:80vh;overflow-y:auto;margin-bottom:15vw;position:relative;@media \",\"{margin-bottom:0px;justify-content:center;}\"],p.a.white,Object(f.a)(20,30),Object(f.a)(20,24),Object(v.f)(v.a.MobileLarge)),ModalInner:d.d.div.withConfig({displayName:\"CookiePopupstyles__ModalInner\",componentId:\"sc-1ija68d-2\"})([\"display:flex;flex-direction:column;\"]),Title:d.d.p.withConfig({displayName:\"CookiePopupstyles__Title\",componentId:\"sc-1ija68d-3\"})([\"margin-bottom:12px;line-height:1.4;font-size:20px;\",\";@media \",\"{padding-right:15px;}\"],m.a.helvetica[\"93-black-extended\"],Object(v.f)(v.a.Tablet)),Description:d.d.p.withConfig({displayName:\"CookiePopupstyles__Description\",componentId:\"sc-1ija68d-4\"})([\"line-height:1.5;font-size:16px;\",\";a{color:\",\";text-decoration:underline;}\"],m.a.helvetica[\"55-roman\"],p.a.black),Buttons:d.d.div.withConfig({displayName:\"CookiePopupstyles__Buttons\",componentId:\"sc-1ija68d-5\"})([\"display:flex;flex-direction:row;gap:16px;justify-content:center;margin-top:20px;flex-wrap:wrap;@media \",\"{[data-buttons='3'] &{flex-wrap:nowrap;\",\":first-child{margin-right:50px;}}}@media \",\"{\",\"{width:100%;}}\"],Object(v.e)(v.a.Tablet),a.b.ButtonElement,Object(v.f)(v.a.Tablet),a.b.ButtonElement),Close:d.d.button.attrs({type:\"button\"}).withConfig({displayName:\"CookiePopupstyles__Close\",componentId:\"sc-1ija68d-6\"})([\"\",\";position:absolute;top:20px;right:20px;transform:translate(50%,-50%);width:16px;height:16px;@media \",\"{width:20px;height:20px;}\"],y.a,Object(v.e)(v.a.Tablet))};const h=d.b`\n  #onetrust-banner-sdk, .onetrust-pc-dark-filter {\n    display: none !important;\n  }\n`;t.default=e=>{const[t,n]=u.useState(void 0),c=Object(o.a)(!!t),d=async()=>new Promise(t=>{if(!e.oneTrustScriptID)return t(void 0);if(window.OneTrust)return t(window.OneTrust);const n=document.createElement(\"script\");n.src=\"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js\",n.type=\"text/javascript\",n.charset=\"UTF-8\",n.setAttribute(\"data-domain-script\",e.oneTrustScriptID),n.addEventListener(\"load\",()=>{const e=window.setInterval(()=>{if(window.OneTrust){if(document.querySelector(\"#onetrust-consent-sdk\"))return console.log(\"one trust loaded!\",window.OneTrust),window.clearInterval(e),t(window.OneTrust)}},100)}),document.head.appendChild(n)}),p=()=>{const e=document.querySelector(\"#cookie-onetrust-accept-all\"),t=document.querySelector(\"#cookie-onetrust-show-info\"),n=document.querySelector(\"#cookie-onetrust-only-necessary\");if(e){const t=e.querySelector(\"i\");null!==t&&(t.style.display=\"none\"),e.removeAttribute(\"data-icon\"),e.removeAttribute(\"data-icon-visibility\")}if(t){const e=t.querySelector(\"i\");null!==e&&(e.style.display=\"none\"),t.removeAttribute(\"data-icon\"),t.removeAttribute(\"data-icon-visibility\")}if(n){const e=n.querySelector(\"i\");null!==e&&(e.style.display=\"none\"),n.removeAttribute(\"data-icon\"),n.removeAttribute(\"data-icon-visibility\")}},f=async()=>{const e=await d();null==e||e.ToggleInfoDisplay(),p()},m=async()=>{const e=await d();null==e||e.AllowAll(),p()},y=async()=>{const e=await d();null==e||e.Close(),p()};return u.useEffect(()=>{const e=window.setInterval(async()=>{window.OneTrust&&void 0!==window.OneTrust.IsAlertBoxClosed&&window.OneTrust.IsAlertBoxClosed()&&(n(!1),window.clearInterval(e))},100)},[]),u.useEffect(()=>{!!s.a.get(\"OptanonAlertBoxClosed\")&&d()},[]),u.useEffect(()=>{(()=>{if(window.OneTrustUnhandledEvent&&0!==window.OneTrustUnhandledEvent.length){switch(window.OneTrustUnhandledEvent){case\"show-info\":f();break;case\"accept-all\":m();break;case\"only-necessary\":y()}delete window.OneTrustUnhandledEvent}})()},[]),u.createElement(u.Fragment,null,u.createElement(h,null),u.createElement(w.Container,{id:\"onetrust-cookie-popup\",style:{display:void 0!==t?t?\"flex\":\"none\":void 0}},u.createElement(w.Modal,{ref:c,onMouseEnter:d,\"data-buttons\":e.onlyUseNecessaryCookiesText?3:2},e.showClose?u.createElement(w.Close,{id:\"cookie-onetrust-close\",onClick:y},u.createElement(i.a,null)):null,u.createElement(w.ModalInner,null,u.createElement(w.Title,null,e.title),u.createElement(w.Description,{dangerouslySetInnerHTML:{__html:e.description}}),u.createElement(w.Buttons,null,u.createElement(r.a,{id:\"cookie-onetrust-show-info\",theme:\"grey-outline\",size:\"small\",icon:\"none\",onClick:f},u.createElement(\"span\",null,e.openCookieSettingsText),u.createElement(a.a,{style:{display:\"none\"}},u.createElement(l.default,null))),e.onlyUseNecessaryCookiesText?u.createElement(r.a,{id:\"cookie-onetrust-only-necessary\",theme:\"grey-outline\",size:\"small\",icon:\"none\",onClick:y},u.createElement(\"span\",null,e.onlyUseNecessaryCookiesText),u.createElement(a.a,{style:{display:\"none\"}},u.createElement(l.default,null))):null,u.createElement(r.a,{id:\"cookie-onetrust-accept-all\",theme:\"green\",size:\"small\",icon:\"none\",onClick:m},u.createElement(\"span\",null,e.acceptAllCookiesText),u.createElement(a.a,{style:{display:\"none\"}},u.createElement(l.default,null))),u.createElement(\"script\",{dangerouslySetInnerHTML:{__html:\"\\n                (() => {\\n                  const acceptAllButton = document.querySelector('#cookie-onetrust-accept-all');\\n                  const showInfoButton = document.querySelector('#cookie-onetrust-show-info');\\n                  const acceptNecessaryButton = document.querySelector('#cookie-onetrust-only-necessary');\\n                  const closeButton = document.querySelector('#cookie-onetrust-close');\\n\\n                  function addClickToButton(button, id, dataAttributes) {\\n                    if (button === null) {\\n                      return;\\n                    }\\n\\n                    button.addEventListener('click', (e) => handleClick(e, id, dataAttributes));\\n                  }\\n\\n                  function clearButton(button) {\\n                    if (button === null) {\\n                      return;\\n                    }\\n\\n                    const iconElement = button.querySelector('i');\\n\\n                    if (iconElement !== null) {\\n                      iconElement.style.display = 'none';\\n                    }\\n\\n                    button.removeAttribute('data-icon');\\n                    button.removeAttribute('data-icon-placement');\\n                    button.removeAttribute('data-icon-visibility');\\n                  }\\n\\n                  function handleClick(event, id, dataAttributes) {\\n                    clearButton(acceptAllButton);\\n                    clearButton(showInfoButton);\\n                    clearButton(acceptNecessaryButton);\\n\\n                    // Show i icon\\n                    const iconElement = event.currentTarget.querySelector('i');\\n\\n                    if (iconElement !== null) {\\n                      iconElement.style.display = '';\\n                    }\\n\\n                    if (dataAttributes) {\\n                      event.currentTarget.setAttribute('data-icon', 'loader');\\n                      event.currentTarget.setAttribute('data-icon-placement', 'after');\\n                      event.currentTarget.setAttribute('data-icon-visibility', 'always');\\n                    }\\n\\n                    window.OneTrustUnhandledEvent = id;\\n                  }\\n\\n                  addClickToButton(acceptAllButton, 'accept-all', true);\\n                  addClickToButton(showInfoButton, 'show-info', true);\\n                  addClickToButton(acceptNecessaryButton, 'only-necessary', true);\\n                  addClickToButton(closeButton, 'only-necessary', false);\\n                })();\\n            \"}}))))))}},178:function(e,t,n){var o,i;\n/*!\n * JavaScript Cookie v2.2.1\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */!function(r){if(void 0===(i=\"function\"==typeof(o=r)?o.call(t,n,t,e):o)||(e.exports=i),!0,e.exports=r(),!!0){var a=window.Cookies,l=window.Cookies=r();l.noConflict=function(){return window.Cookies=a,l}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var o in n)t[o]=n[o]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(o){function i(){}function r(t,n,r){if(\"undefined\"!=typeof document){\"number\"==typeof(r=e({path:\"/\"},i.defaults,r)).expires&&(r.expires=new Date(1*new Date+864e5*r.expires)),r.expires=r.expires?r.expires.toUTCString():\"\";try{var a=JSON.stringify(n);/^[\\{\\[]/.test(a)&&(n=a)}catch(e){}n=o.write?o.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\\(\\)]/g,escape);var l=\"\";for(var c in r)r[c]&&(l+=\"; \"+c,!0!==r[c]&&(l+=\"=\"+r[c].split(\";\")[0]));return document.cookie=t+\"=\"+n+l}}function a(e,n){if(\"undefined\"!=typeof document){for(var i={},r=document.cookie?document.cookie.split(\"; \"):[],a=0;a<r.length;a++){var l=r[a].split(\"=\"),c=l.slice(1).join(\"=\");n||'\"'!==c.charAt(0)||(c=c.slice(1,-1));try{var s=t(l[0]);if(c=(o.read||o)(c,s)||t(c),n)try{c=JSON.parse(c)}catch(e){}if(i[s]=c,e===s)break}catch(e){}}return e?i[e]:i}}return i.set=r,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,n){r(t,\"\",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}((function(){}))}))},184:function(e,t,n){\"use strict\";n.d(t,\"b\",(function(){return m})),n.d(t,\"a\",(function(){return y})),n.d(t,\"c\",(function(){return v}));var o=!1;if(\"undefined\"!=typeof window){var i={get passive(){o=!0}};window.addEventListener(\"testPassive\",null,i),window.removeEventListener(\"testPassive\",null,i)}var r=\"undefined\"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||\"MacIntel\"===window.navigator.platform&&window.navigator.maxTouchPoints>1),a=[],l=!1,c=-1,s=void 0,u=void 0,d=function(e){return a.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},p=function(e){var t=e||window.event;return!!d(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},f=function(){void 0!==u&&(document.body.style.paddingRight=u,u=void 0),void 0!==s&&(document.body.style.overflow=s,s=void 0)},m=function(e,t){if(e){if(!a.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};a=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(a),[n]),r?(e.ontouchstart=function(e){1===e.targetTouches.length&&(c=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-c;!d(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?p(e):e.stopPropagation())}(t,e)},l||(document.addEventListener(\"touchmove\",p,o?{passive:!1}:void 0),l=!0)):function(e){if(void 0===u){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(u=document.body.style.paddingRight,document.body.style.paddingRight=n+\"px\")}void 0===s&&(s=document.body.style.overflow,document.body.style.overflow=\"hidden\")}(t)}}else console.error(\"disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.\")},y=function(){r?(a.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),l&&(document.removeEventListener(\"touchmove\",p,o?{passive:!1}:void 0),l=!1),c=-1):f(),a=[]},v=function(e){e?(a=a.filter((function(t){return t.targetElement!==e})),r?(e.ontouchstart=null,e.ontouchmove=null,l&&0===a.length&&(document.removeEventListener(\"touchmove\",p,o?{passive:!1}:void 0),l=!1)):a.length||f()):console.error(\"enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.\")}},8:function(e,t,n){\"use strict\";n.d(t,\"a\",(function(){return a}));var o=n(1);const i=o.a.Mobile,r=o.a.ActualDesktop;function a(e,t,n=i,o=r){const a=e/16,c=t/16,s=n/16,u=(c-a)/(o/16-s),d=-s*u+a;return`clamp(${l(a)+\"rem\"}, ${`${l(d)}rem + ${l(100*u)}vw`}, ${l(c)+\"rem\"})`}function l(e){return Math.round(100*e)/100}},82:function(e,t,n){\"use strict\";n.d(t,\"b\",(function(){return r}));var o=n(184),i=n(0);t.a=e=>{const t=Object(i.useRef)(null);return Object(i.useEffect)(()=>{if(null!==t.current)return!0===e?Object(o.b)(t.current):Object(o.c)(t.current),()=>{null!==t.current&&Object(o.c)(t.current)};Object(o.a)()},[e]),t};const r=e=>{const t=e=>{e&&(e.style.maxHeight=e.getAttribute(\"data-initial-max-height\")||\"\",e.style.overflow=e.getAttribute(\"data-initial-overflow\")||\"\")};Object(i.useEffect)(()=>{const n=document.querySelector(\"body\");return e?n&&(n.style.maxHeight&&n.setAttribute(\"data-initial-max-height\",n.style.maxHeight),n.style.overflow&&n.setAttribute(\"data-initial-overflow\",n.style.overflow),n.style.maxHeight=\"100vh\",n.style.overflow=\"hidden\"):n&&t(n),function(){const e=document.querySelector(\"body\");e&&t(e)}},[e])}}}]);"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sourceRoot":""}