vendor: 2,415 bytes, lines 1-2
1/*! For license information please see cookie-consent.0a7b2127af47304cfbc5.js.LICENSE.txt */ 2(()=>{var e={606:e=>{var t,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:r}catch(e){n=r}}();var a,c=[],l=!1,d=-1;function u(){l&&a&&(l=!1,a.length?c=a.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=s(u);l=!0;for(var t=c.length;t;){for(a=c,c=[];++d<t;)a&&a[d].run();d=-1,t=c.length}a=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===r||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new m(e,t)),1!==c.length||l||s(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},694:(e,t,n)=>{"use strict";var o=n(925);function i(){}function r(){}r.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,r,s){if(s!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:i}
2;return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},338:(e,t,n)=>{"use strict";var o=n(206);o.createRoot,t.c=o.hydrateRoot},20:(e,t,n)=>{"use strict";var o=n(594),i=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var o,r={},l=null,d=null;for(o in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(d=t.ref),t)s.call(t,o)&&!c.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===r[o]&&(r[o]=t[o]);return{$$typeof:i,type:e,key:l,ref:d,props:r,_owner:a.current}}t.Fragment=r,t.jsx=l,t.jsxs=l},848:(e,t,n)=>{"use strict";e.exports=n(20)},797:(e,t,n)=>{var o=n(606),i=void 0!==o&&o.pid?o.pid.toString(36):"";function r(){var e=Date.now(),t=r.last||e;return r.last=e>t?e:t+1}e.exports=e.exports.default=function(e,t){return(e||"")+""+i+r().toString(36)+(t||"")},e.exports.process=function(e,t){return(e||"")+i+r().toString(36)+(t||"")},e.exports.time=function(e,t){return(e||"")+r().toString(36)+(t||"")}},594:e=>{"use strict";e.exports=React},206:e=>{"use strict";e.exports=ReactDOM}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";var e=n(338),t=n(848),o=Object.defineProperty,i=(e,t)=>{let n={};for(var i in e)o(n,i,{get:e[i],enumerable:!0});return t||o(n,Symbol.toStringTag,{value:"Module"}),n};const r=styled;var s=n.n(r);function a(e,t,n={leading:!0,trailing:!0}){let o=null,i=!1;return(...r)=>{o&&clearTimeout(o),n.leading&&!o?(e(...r),i=!0):i=!1,o=setTimeout((()=>{n.trailing&&!i&&e(...r),o=null}),t)}}r.css`var(--color-olive-800)`,r.css`var(--color-white)`,r.css`var(--color-olive-700)`,r.css`var(--color-sand-300)`,r.css`var(--color-almostblack)`,r.css`var(--color-sand-400)`,r.css`var(--color-rouge-500)`,r.css`var(--color-white)`,r.css`var(--color-rouge-400)`,r.css`var(--color-white)`,r.css`var(--color-almostblack)`,r.css`var(--color-white)`,r.css`var(--color-dark-core-500)`,r.css`var(--color-white)`,r.css`var(--color-core-500)`,r.css`var(--color-almostblack)`,r.css`var(--color-almostblack)`,r.css`var(--color-white)`,r.css`var(--color-sunlight-200)`,r.css`var(--color-almostblack)`,r.css`var(--color-latte)`,r.css`var(--color-white)`,r.css`var(--color-steel-blue)`,r.css`var(--color-white)`,r.css`var(--color-dark-steel-blue)`,r.css`var(--color-white)`,r.css`var(--color-sandstone)`,r.css`var(--color-white)`,r.css`var(--color-clay)`,r.css`var(--color-almostblack)`,r.css`var(--color-plant)`,r.css`var(--color-white)`;const c=e=>r.css`@media (min-width:${768}px){${e};}`,l=e=>r.css`@media (max-width:${767}px){${e};}`,d=e=>r.css`@media (min-width:${1024}px){${e};}`;var u=i({isDefaultTheme:()=>b,isGlobetrotter:()=>g,siteThemes:()=>m,theme:()=>h,themeWithVariant:()=>f,variant:()=>v});const p=(e,t,n)=>{const o=t.theme?.[e],i=void 0===o?void 0:n[o];return"function"==typeof i?i(t):i||Object.values(n)[0]},m={DEFAULT:"DEFAULT",GLOBETROTTER:"GLOBETROTTER"},h=(e,t)=>n=>p(e,n,t),f=(e,t,n,o)=>i=>{const r=i[t],s=r&&n[r];return p(e,i,s||o)},v=(e,t,n)=>o=>{const i=t[o[e]];return"function"==typeof i?i(o):i||n||Object.values(t)[0]},g=e=>t=>t.theme?.site===m.GLOBETROTTER&&e,b=e=>t=>t.theme?.site===m.DEFAULT&&e,x=r.css`outline:0.2rem solid var(--color-focus-outline);outline-offset:0.2rem;box-shadow:0 0 0 0.4rem var(--color-white);${b(r.css`border-radius:0.4rem;`)}`;var y=n(594);const w=u.siteThemes,k={1:"sv-SE",3:"nb-NO",11:"da-DK",15:"fi-FI",18:"sv-SE"},C=(0,y.createContext)({siteId:1,culture:"sv-SE",theme:{site:w.DEFAULT,mode:"light"}}),$=({siteId:e=1,culture:n,legacyMode:o=!1,children:i,...s})=>{const a="number"==typeof e?e:Number.parseInt(e,10)||1,c=n||k[a]||"en",l=((e,t)=>t?w.DEFAULT:18===e?w.GLOBETROTTER:w.DEFAULT)(a,o),d=(0,y.useMemo)((()=>({...s,theme:{site:l},culture:c,siteId:a,legacyMode:o})),[c,a,l,o,s]);return(0,t.jsx)(C.Provider,{value:d,children:(0,t.jsx)(r.ThemeProvider,{theme:d.theme,children:i})})};var E=n(556),L=n.n(E);const T=()=>"undefined"!=typeof window&&window.innerWidth<768;function I(e){const[t,n]=(0,y.useState)(e||T());return(0,y.useEffect)((()=>{const e=a((()=>{n(T())}),500);return"undefined"!=typeof window&&(e(),window.addEventListener("resize",e)),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[]),t}const _=(e,t=!0)=>{(0,y.useEffect)((()=>{const n=e.current;if(t&&n){const e=e=>{const t=n.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not
2([tabindex="-1"]), audio[controls], video[controls], [contenteditable]'),o=Array.from(t).filter((e=>{const t=e,n=window.getComputedStyle(e);return!(0===t.offsetWidth&&0===t.offsetHeight||-1===t.tabIndex||"hidden"===n.visibility||"none"===n.display||e.closest("[inert]"))})),i=o[0],r=o[o.length-1],s=document.activeElement&&!o.includes(document.activeElement);if("Tab"===e.key){if(!i||!r)return;document.activeElement===r&&!e.shiftKey||s?(e.preventDefault(),i.focus()):document.activeElement===i&&e.shiftKey&&(e.preventDefault(),r.focus())}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}}),[e,t])};function j(e=!0){(0,y.useEffect)((()=>{const t=document.querySelector("body");if(!t)return;const n=window.innerWidth-t.clientWidth;if(e){const e=window.scrollY;return t.style.overflow="hidden",t.style.position="fixed",t.style.top=`-${e}px`,t.style.width="100%",t.style.paddingRight=`${n}px`,()=>{t.style.removeProperty("overflow"),t.style.removeProperty("position"),t.style.removeProperty("top"),t.style.removeProperty("width"),t.style.removeProperty("padding-right"),window.scrollTo(0,e)}}}),[e])}var S=Object.defineProperty,N=((e,t)=>{let n={};for(var o in e)S(n,o,{get:e[o],enumerable:!0});return S(n,Symbol.toStringTag,{value:"Module"}),n})({BackBtn:()=>W,CloseButton:()=>Y,Content:()=>U,Header:()=>H,HeaderContent:()=>D,Heading:()=>F,Modal:()=>R,ModalContent:()=>z,ModalContentContainer:()=>A,SlideViewport:()=>G,Top:()=>q});const O=r.keyframes`from{opacity:0;}to{opacity:0.8;}`,B=r.keyframes`from{opacity:0.8;}to{opacity:0;}`,M=r.keyframes`from{top:0;}to{top:var(--top-margin);}`,P=r.keyframes`from{opacity:1;top:var(--top-margin);}to{opacity:0;top:0;}`,R=r.dialog.withConfig({displayName:"Modal",componentId:"sc-1f1afab3-0"})`overflow:hidden;margin-inline:auto;--top-margin:7vh;--max-height:calc(100vh - var(--top-margin) * 2);@media (min-aspect-ratio:21/9){--top-margin:2vh;}${b(r.css`${c(r.css`border-radius:var(--border-radius-500);`)}`)} ${l(r.css`height:100%;max-height:100%;top:0;max-width:100%;width:100%;`)} ${c(r.css`max-height:var(--max-height);width:calc((1280px - var(--space-grid-margin) * 2) * (10 / 12));${({$size:e})=>"l"===e&&r.css`width:calc((1280px - var(--space-grid-margin) * 2));`} ${({$size:e})=>"s"===e&&r.css`width:calc((1280px - var(--space-grid-margin) * 24));`}`)} &::backdrop{background:#202020;opacity:0;}${({$isOpen:e})=>e&&r.css`${c(r.css`top:var(--top-margin);animation-name:${M};animation-duration:0.25s;&::backdrop{opacity:0.8;animation-name:${O};animation-duration:0.25s;}`)}`} ${({$isClosing:e})=>e&&r.css`${c(r.css`top:0;animation-name:${P};animation-duration:0.25s;&::backdrop{opacity:0;animation-name:${B};animation-duration:0.25s;}`)}`} scrollbar-width:thin;scrollbar-color:var(--color-almostblack) var(--color-white);::-webkit-scrollbar{width:6px;background-color:var(--color-white);}::-webkit-scrollbar-thumb{background-color:var(--color-almostblack);border-radius:4px;}`,A=r.div.withConfig({displayName:"ModalContentContainer",componentId:"sc-1f1afab3-1"})`${l(r.css`height:100%;`)}`,z=r.div.withConfig({displayName:"ModalContent",componentId:"sc-1f1afab3-2"})`display:flex;flex-direction:column;${l(r.css`height:100%;`)} ${c(r.css`max-height:var(--max-height);height:fit-content;`)}`,H=r.div.withConfig({displayName:"Header",componentId:"sc-1f1afab3-3"})`background:var(--color-white);`,D=r.div.withConfig({displayName:"HeaderContent",componentId:"sc-1f1afab3-4"})``,q=r.div.withConfig({displayName:"Top",componentId:"sc-1f1afab3-5"})`display:flex;justify-content:${({$hasHeading:e})=>e?"space-between":"end"};gap:var(--space-300);align-items:center;${({$overlaidCloseButton:e})=>e?r.css`padding:0px;`:r.css`padding:var(--space-400);${c(r.css`padding:var(--space-600);`)}`};${({$isInDrawer:e})=>e&&r.css`padding-top:0;`};${({$hasHeading:e})=>!e&&r.css`padding-bottom:0;${c(r.css`padding-bottom:0;`)} ${d(r.css`padding-bottom:0;`)}`}`,F=r.div.withConfig({displayName:"Heading",componentId:"sc-1f1afab3-6"})`font:var(--font-headline-m);display:flex;align-items:center;gap:1rem;height:2.8rem;`,W=r.button.withConfig({displayName:"BackBtn",componentId:"sc-1f1afab3-7"})`display:flex;`,G=r.div.withConfig({displayName:"SlideViewport",componentId:"sc-1f1afab3-8"})`display:flex;overflow:hidden;width:100%;height:100%;`,U=r.div.withConfig({displayName:"Content",componentId:"sc-1f1afab3-9"})`min-width:100%;height:100%;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--color-almostblack) var(--color-white);transition:margin-left 0.3s ease-in-out;margin-left:${({$activeStepIndex:e,$sequentialMode:t,$isHome:n})=>{return o=e,n?t?`-${100*(o??0)}
2%`:0===(o??0)?"0%":"-100%":"0%";var o}};${({$noContentPadding:e,$overlaidCloseButton:t})=>e?r.css`padding:0px;`:r.css`padding:0px var(--space-400) var(--space-400);${c(r.css`padding:0px var(--space-600) var(--space-600);`)} ${t&&d(r.css`padding:0px var(--space-700) var(--space-700);`)}`};${({$hidden:e})=>e&&r.css`display:none;`} ${({$noOverflow:e})=>e&&r.css`overflow:hidden;`} ${G} &{flex:0 0 100%;height:unset;}::-webkit-scrollbar{width:6px;background-color:var(--color-white);}::-webkit-scrollbar-thumb{background-color:var(--color-almostblack);border-radius:4px;}`,Y=r.button.withConfig({displayName:"CloseButton",componentId:"sc-1f1afab3-10"})`${({$overlaidCloseButton:e})=>e?r.css`position:absolute;top:var(--space-500);right:var(--space-500);padding:var(--space-100);background:rgba(0,0,0,0.7);transition:background var(--transition);svg{color:var(--color-white);}${b(r.css`border-radius:var(--border-radius-200);`)} &:hover{background:rgba(0,0,0,0.9);}`:r.css`padding:var(--space-100);`};line-height:0;`,V={"sv-SE":{close:"Stäng",back:"Tillbaka"},"nb-NO":{close:"Lukk",back:"Tilbake"},"da-DK":{close:"Tæt",back:"Tilbage"},"fi-FI":{close:"Kiinni",back:"Takaisin"},en:{close:"Close",back:"Back"}};function K(){return(0,y.useContext)(C)}const X={xxxs:1.2,xxs:1.2,xs:1.6,s:2.4,m:3.2,l:4.8,xl:6.4},Z=r.svg.withConfig({displayName:"Icon",componentId:"sc-f9adc6b1-0"})`display:inline-block;overflow:visible;${({$size:e})=>e&&r.css`height:${X[e]}rem;width:${X[e]}rem;`} ${({$sizeMobile:e})=>e&&r.css`${l(r.css`height:${X[e]}rem;width:${X[e]}rem;`)}`} ${({$strokeBasedIcon:e})=>e&&r.css`stroke-width:0.15rem;`} ${g(r.css`${({$size:e})=>e&&r.css`height:calc(${X[e]}rem + 0.2rem);width:calc(${X[e]}rem + 0.2rem);stroke-width:0.1rem;`} ${({$sizeMobile:e})=>e&&r.css`${l(r.css`height:calc(${X[e]}rem + 0.2rem);width:calc(${X[e]}rem + 0.2rem);`)}`}`)}`;function J(){const{legacyMode:e,theme:t}=K();return m.GLOBETROTTER===t.site&&!e}const Q=({path:e,size:n="s",sizeMobile:o,titleText:i="",...r})=>{const s=J();if(!e)return!1;const a=s?e.globetrotter:e.default;if(!a)return!1;const c=s&&e.globetrotter,l=e.v2||c,d=e.v2?"0 0 24 24":"0 0 32 32",u=!s&&e.v2?{strokeLinecap:"round",strokeLinejoin:"round"}:{};return(0,t.jsxs)(Z,{viewBox:d,xmlns:"https://www.w3.org/2000/svg",$size:n,$sizeMobile:o,$strokeBasedIcon:l,fill:l?"none":"currentColor",stroke:l?"currentColor":"none","aria-hidden":"true",...u,...r,children:[i&&(0,t.jsx)("title",{children:i}),(0,t.jsx)("path",{d:a})]})},ee={v2:!0,default:"M23.125 12H0.875M0.875 12L7.625 18.5M0.875 12L7.625 5.5"},te={v2:!0,default:"M1 14.7539L5.49167 21.1445C5.66204 21.3997 5.89074 21.6103 6.15872 21.759C6.4267 21.9076 6.72622 21.99 7.03235 21.9991C7.33847 22.0083 7.64236 21.944 7.91871 21.8117C8.19507 21.6794 8.4359 21.4828 8.62117 21.2383L23 3",globetrotter:"M22.125 4.5L9.33 19.5L1.875 12.9825"},ne={v2:!0,default:"M16.25 23.25L5.53 12.53C5.46033 12.4604 5.40507 12.3778 5.36736 12.2869C5.32965 12.1959 5.31024 12.0984 5.31024 12C5.31024 11.9016 5.32965 11.8041 5.36736 11.7131C5.40507 11.6222 5.46033 11.5396 5.53 11.47L16.25 0.75",globetrotter:"M17.0625 22.125L6.9375 12L17.0625 1.875"},oe={v2:!0,default:"M0.75 23.249L23.25 0.748993M23.25 23.249L0.75 0.748993",globetrotter:"M1.875 1.875L22.125 22.125M22.125 1.875L1.875 22.125"},ie={default:"M31.58,6.61l-18,21.05a1.74,1.74,0,0,1-1.2.61,1.77,1.77,0,0,1-1.28-.43L.6,18.7h0a1.75,1.75,0,0,1,2.3-2.64l9.16,8L28.92,4.34a1.75,1.75,0,0,1,2.66,2.27Z",globetrotter:"M29.5 6L12.44 26L2.5 17.31"},re={default:"M31.68,8.63,16.94,25.05a1.26,1.26,0,0,1-1.88,0L.32,8.63h0A1.26,1.26,0,0,1,2.2,7L16,22.32,29.8,7a1.26,1.26,0,1,1,1.88,1.68Z",globetrotter:"M29.5 9.25L16 22.75L2.5 9.25"},se=({children:e,subContent:n=null,activeSubContentId:o=null,onBack:i=null,subContentAsSequence:r=!1,headerContent:s=null,heading:a=null,isModalOpen:c=!0,onClose:l=null,overlaidCloseButton:d=!1,isInDrawer:u=!1,noContentPadding:p=!1})=>{const[m,h]=(0,y.useState)(!1),{culture:f}=K(),v=V[f].close,g=V[f].back,b=(0,y.useRef)(null),x=(0,y.useRef)(null),w="undefined"==typeof document?null:document.getElementById("drawer-close"),k=n??[],C=k.findIndex((e=>e.id===o)),$=-1!==C,E=$?C+1:0,L=[{id:"home",element:e,isHome:!0},...k.map((e=>
2({id:e.id,title:e.title,element:e.element,isHome:!1})))],T=$?k[C]:void 0,I=$&&T?.title?T.title:a;return(0,y.useEffect)((()=>{if(!c)return;h(!0);const e=setTimeout((()=>{h(!1)}),300);return()=>clearTimeout(e)}),[E,c]),(0,y.useEffect)((()=>{c&&($&&b.current?b.current.focus():(!$&&x.current&&x.current.focus(),!$&&w&&w.focus()))}),[E,$,c,w]),(0,t.jsxs)(z,{children:[(0,t.jsxs)(H,{children:[(a||l)&&(0,t.jsxs)(q,{$hasHeading:!!I,$overlaidCloseButton:d,$isInDrawer:u,children:[I&&(0,t.jsxs)(F,{id:"modal-heading",children:[$&&(0,t.jsx)(W,{ref:b,"aria-label":g,type:"button",onClick:()=>{if(!$||!i)return;if(!r)return void i(null);const e=C-1;if(e>=0){const t=k[e];i(t?.id??null)}else i(null)},children:(0,t.jsx)(Q,{path:ee,size:"s"})}),I]}),l&&(0,t.jsx)(Y,{ref:x,$overlaidCloseButton:d,"aria-label":v,lang:"en",onClick:l,type:"button",children:(0,t.jsx)(Q,{path:oe,size:"s"})})]}),(0,t.jsx)(D,{children:s})]}),n?(0,t.jsx)(G,{children:L.map(((e,n)=>{const o=n===E,{isHome:i}=e,s=!r&&!o&&!i;return(0,t.jsx)(U,{id:e.isHome?"content-home":`content-${e.id}`,inert:o?void 0:"true",$isHome:i,$activeStepIndex:E,$sequentialMode:r,$hidden:s,$noContentPadding:p,$overlaidCloseButton:d,$noOverflow:m,children:e.element},e.id)}))}):(0,t.jsx)(U,{$noContentPadding:p,$overlaidCloseButton:d,children:e})]})},ae=({children:e,subContent:n=null,activeSubContentId:o=null,onBack:i=null,subContentAsSequence:r=!1,headerContent:s,heading:a,isOpen:c=!0,nonClosable:l=!1,onClose:d=(()=>{}),size:u="m",overlaidCloseButton:p=!1,...m})=>{const h=(0,y.useRef)(null),f=(0,y.useRef)(null),v=I(),[g,b]=(0,y.useState)(!1),x=(e=>{const t=(0,y.useRef)(null);return(0,y.useEffect)((()=>{t.current=e}),[e]),t.current})(c),w=(0,y.useCallback)((()=>{l||(b(!0),setTimeout((()=>{h.current?.close(),b(!1),d()}),v?0:200))}),[v,l,d]);return(0,y.useEffect)((()=>{if(!c)return;const e=h.current;if(e?.showModal(),!l){const t=e=>{"Escape"===e.key&&w()},n=e=>{e.preventDefault(),w()};return e?.addEventListener("cancel",n),e?.addEventListener("keydown",t),()=>{e?.removeEventListener("cancel",n),e?.removeEventListener("keydown",t)}}const t=e=>{e.preventDefault()};return e?.addEventListener("cancel",t),()=>{e?.removeEventListener("cancel",t)}}),[c,w,l]),(0,y.useEffect)((()=>{!x||c||g||w()}),[c,w,x,g]),(0,y.useEffect)((()=>{if("undefined"!=typeof dialogPolyfill&&"function"!=typeof HTMLDialogElement){const e=h.current;e&&dialogPolyfill.registerDialog(e)}}),[]),_(h,c),((e,t,n=!0,o=!1,i=[])=>{(0,y.useEffect)((()=>{const r=n=>{if(!n.target)return;const r=n.target,s=i?.some((e=>e instanceof HTMLElement&&e.contains(r)));!e.current||e.current.contains(r)||s||(o&&n.stopPropagation(),t(n))};if(n)return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}}),[e,t,n,o,i])})(f,w,!v&&c),j(c),(0,t.jsx)(N.Modal,{$isClosing:g,$isOpen:c,$size:u,"aria-hidden":!c,"aria-labelledby":"modal-heading","aria-modal":!0,ref:h,tabIndex:-1,...m,children:(0,t.jsx)(N.ModalContentContainer,{ref:f,children:(0,t.jsx)(se,{isModalOpen:c,headerContent:s,heading:a,onClose:l?null:w,overlaidCloseButton:p,subContent:n,activeSubContentId:o,onBack:i,subContentAsSequence:r,children:e})})})},ce={"sv-SE":{close:"Stäng"},"nb-NO":{close:"Lukk"},"da-DK":{close:"Tæt"},"fi-FI":{close:"Kiinni"},en:{close:"Close"}},le=r.keyframes`from{opacity:0;}to{opacity:0.2;}`,de=r.keyframes`from{opacity:0.2;}to{opacity:0;}`,ue=r.dialog.withConfig({displayName:"Wrapper",componentId:"sc-f98afcf9-0"})`display:none;box-shadow:0px -3px 19.6px rgba(0,0,0,0);transform:translateY(100%);transition:transform 0.4s ease,box-shadow 0.4s ease;width:100%;position:fixed;bottom:0;margin-left:auto;margin-right:auto;background:#fff;max-height:100vh;max-width:1150px;padding:4.8rem 0 0;border-radius:24px 24px 0 0;overflow:hidden;top:unset;&::backdrop{background:#000;opacity:0.2;}${({$noHeader:e})=>e&&r.css`padding-top:2.4rem;`} ${({$display:e})=>e&&r.css`display:block;&::backdrop{opacity:0.2;animation-name:${le};animation-duration:0.4s;}`} ${({$open:e})=>e&&r.css`transform:translateY(0%);box-shadow:0px -3px 19.6px rgba(0,0,0,0.12);`} ${({$hide:e})=>e&&r.css`&::backdrop{opacity:0;animation-name:${de};animation-duration:0.4s;}`} &.fullscreen{border-radius:0;}`,pe=r.div.withConfig({displayName:"Header",componentId:"sc-f98afcf9-1"})`display:flex;justify-content:center;position:absolute;top:2.4rem;width:100%;`,me=r.div.withConfig({displayName:"Handle",componentId:"sc-f98afcf9-2"}
2)`cursor:grab;user-select:none;padding:15px;margin-top:-15px;span{height:2px;width:140px;display:block;background:var(--color-text);}`,he=r.button.withConfig({displayName:"CloseButton",componentId:"sc-f98afcf9-3"})`display:${({$show:e})=>e?"block":"none"};position:absolute;top:-5px;right:19px;`,fe=r(Q).withConfig({displayName:"CloseButtonIcon",componentId:"sc-f98afcf9-4"})`display:block;`,ve=({heading:e=null,children:n=null,subContent:o=null,activeSubContentId:i=null,onBack:r=null,subContentAsSequence:s=!1,className:a="",show:c=!1,disabled:l=!1,defaultHeight:d=60,onClose:u,nonClosable:p=!1,noContentPadding:m=!1})=>{const h=(0,y.useRef)(null),f=(0,y.useRef)(null),[v,g]=(0,y.useState)(!1),[b,x]=(0,y.useState)(!1),[w,k]=(0,y.useState)(!1),[C,$]=(0,y.useState)(!1),[E,L]=(0,y.useState)(0),[T,I]=(0,y.useState)(0),[S,N]=(0,y.useState)(d),{culture:O}=K(),B=ce[O].close,M=(0,y.useCallback)((e=>{N(e),h.current?.classList.toggle("fullscreen",100===e)}),[]),P=(0,y.useCallback)((()=>{k(!1),x(!0),setTimeout((()=>{const e=h.current;e&&e.close(),x(!1),$(!1),u()}),400)}),[u]),R=(0,y.useCallback)((e=>{let t;g(!0),t="touches"in e?e.touches?.[0]?.pageY??0:e.pageY,L(t),h.current?.style.height?I(Number.parseInt(h.current.style.height,10)):I(0)}),[]),A=(0,y.useCallback)((e=>{if(!v)return;let t;t="touches"in e?e.touches?.[0]?.pageY??0:e.pageY;const n=T+(E-t)/window.innerHeight*100;M(n)}),[v,E,T,M]),z=(0,y.useCallback)((()=>{g(!1);const e=h.current;if(e){const t=Number.parseInt(e.style.height,10);t<d-18?P():M(t>.3*(100-d)+d?100:d)}}),[M,d,P]),H=(0,y.useCallback)((e=>{if(e.target!==h.current)return;const t=h.current;if(t){const n=t.getBoundingClientRect();if(0===e.clientX)return;(e.clientX<n.left||e.clientX>n.right||e.clientY<n.top||e.clientY>n.bottom)&&P()}}),[P]);(0,y.useLayoutEffect)((()=>{l||(c&&(M(d),$(!0),setTimeout((()=>{const e=h.current;e&&(e.showModal(),k(!0))}),100)),!c&&C&&P())}),[c,C,l,d,P,M]),(0,y.useEffect)((()=>{const e=f?.current,t=h?.current;if(e&&t&&!l&&c)return e.addEventListener("mousedown",R),document.addEventListener("mousemove",A),document.addEventListener("mouseup",z),e.addEventListener("touchstart",R),document.addEventListener("touchmove",A),document.addEventListener("touchend",z),t.addEventListener("click",H),()=>{e.removeEventListener("mousedown",R),document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",z),e.removeEventListener("touchstart",R),document.removeEventListener("touchmove",A),document.removeEventListener("touchend",z),t.removeEventListener("click",H)}}),[R,A,z,H,l,c]),(0,y.useEffect)((()=>{if(!l&&c){const e=e=>{"Escape"===e.code&&P()},t=e=>{e.preventDefault(),"cancel"===e.type&&P()},n=h.current;return n&&(n.addEventListener("cancel",t),n.addEventListener("keydown",e)),()=>{const n=h.current;n&&(n.removeEventListener("cancel",t),n.removeEventListener("keydown",e))}}}),[P,l,c]),(0,y.useEffect)((()=>{if("undefined"!=typeof dialogPolyfill&&"function"!=typeof HTMLDialogElement){const e=h.current;e&&dialogPolyfill.registerDialog(e)}}),[]);const D=!l&&C;if(_(h,D),j(D),l)return n;const q={height:`${S}${"undefined"!=typeof CSS&&CSS.supports("height","100dvh")?"dvh":"vh"}`};return(0,t.jsxs)(ue,{ref:h,className:a,tabIndex:-1,"aria-hidden":!c&&!b,style:q,$display:C,$open:w,$hide:b,$noHeader:p,children:[!p&&(0,t.jsxs)(pe,{children:[(0,t.jsx)(me,{ref:f,children:(0,t.jsx)("span",{})}
2),(0,t.jsx)(he,{$show:c,id:"drawer-close",type:"button","aria-label":B,onClick:()=>P(),children:(0,t.jsx)(fe,{path:oe,size:"xs",sizeMobile:"xs","aria-hidden":"true"})})]}),(0,t.jsx)(se,{heading:e,isInDrawer:!0,noContentPadding:m,subContent:o,activeSubContentId:i,onBack:r,subContentAsSequence:s,children:n})]})},ge=({children:e,subContent:n=null,activeSubContentId:o=null,onBack:i=null,subContentAsSequence:r=!1,heading:s=null,initialIsMobile:a=!1,isOpen:c=!0,nonClosable:l=!1,onClose:d=(()=>{}),overlaidCloseButton:u=!1,size:p="m",disabled:m=!1,...h})=>{const f=I(a);return m?e:f?(0,t.jsx)(ve,{defaultHeight:85,heading:s,nonClosable:l,onClose:d,show:c,subContent:n,activeSubContentId:o,onBack:i,subContentAsSequence:r,...h,children:e}):(0,t.jsx)(ae,{heading:s,isOpen:c,nonClosable:l,onClose:d,overlaidCloseButton:u,size:p,subContent:n,activeSubContentId:o,onBack:i,subContentAsSequence:r,...h,children:e})},be=r.a.withConfig({displayName:"Link",componentId:"sc-783c8fb3-0"})`line-height:normal;font-size:1.6rem;overflow:visible;text-align:left;display:inline-flex;align-items:center;transition:color var(--transition);color:var(--color-cta-link-primary);&:hover{color:var(--color-cta-link-primary-hover);}`,xe=r.span.withConfig({displayName:"IconBefore",componentId:"sc-783c8fb3-1"})`display:flex;margin-right:var(--space-200);${g(r.css`margin-left:var(--space-100);`)}`,ye=r.span.withConfig({displayName:"IconAfter",componentId:"sc-783c8fb3-2"})`display:flex;margin-left:var(--space-200);${g(r.css`margin-left:var(--space-100);`)}`,we=r.span.withConfig({displayName:"LinkText",componentId:"sc-783c8fb3-3"})`text-decoration:underline;text-underline-offset:2px;${({$hasIcon:e})=>!!e&&r.css`text-decoration:none;${be}:hover &{text-decoration:underline;}`}`,ke=({children:e,href:n,onClick:o,iconBefore:i,iconAfter:r,ariaExpanded:s,ariaLabel:a,...c})=>{if(!e)return null;const l="string"==typeof n&&n.length>0;let d;d=l?"a":"function"==typeof o?"button":"div";const u=!(!i&&!r),p=l?n:void 0,m=o??void 0,h="button"===d?"button":void 0,f=s??void 0;return(0,t.jsxs)(be,{as:d,href:p,onClick:m,type:h,"aria-expanded":f,"aria-label":a||("string"==typeof e?e:void 0),...c,children:[y.isValidElement(i)&&(0,t.jsx)(xe,{children:y.cloneElement(i,{size:"xxs"})}),(0,t.jsx)(we,{$hasIcon:u,children:e}),y.isValidElement(r)&&(0,t.jsx)(ye,{children:y.cloneElement(r,{size:"xxs"})})]})},Ce=({children:e=null,...n})=>(0,t.jsx)(ke,{...n,iconBefore:(0,t.jsx)(Q,{path:ne}),children:e}),{GLOBETROTTER:$e,DEFAULT:Ee}=m,Le=["primary","tertiary","primary-dark"],Te=["primary-dark"],Ie=(e=null)=>{const t=e?`-${e}`:"";return({$variant:e})=>r.css`var(--color-cta-button-${e}${t})`},_e=()=>({$variant:e,theme:{site:t}})=>"tertiary"===e&&t===$e?r.css`var(--color-black)`:r.css`var(--color-white)`,je=h("site",{[Ee]:"25px",[$e]:"0"}),Se=h("site",{[Ee]:"2px",[$e]:"1px"}),Ne=h("site",{[Ee]:"0.5px",[$e]:"1.4px"}),Oe=r.keyframes`from{transform:rotate(0deg);}to{transform:rotate(360deg);}`,Be=r.button.withConfig({displayName:"Button",componentId:"sc-488f02ef-0"})`display:inline-flex;align-items:center;justify-content:center;border:${Ie()} solid ${Se};border-radius:${je};color:${Ie()};max-width:100%;width:fit-content;letter-spacing:${Ne};padding:${({$variant:e})=>Le.includes(e)?h("site",{[Ee]:e=>"s"===e.$size?r.css`var(--space-100) var(--space-400)`:r.css`var(--space-200) var(--space-500)`,[$e]:e=>"s"===e.$size?r.css`var(--space-100) var(--space-300)`:r.css`var(--space-300) var(--space-500)`}):h("site",{[Ee]:e=>"s"===e.$size?r.css`calc(var(--space-100) - ${Se}) calc(var(--space-400) - ${Se})`:r.css`calc(var(--space-200) - ${Se}) calc(var(--space-500) - ${Se})`,[$e]:e=>"s"===e.$size?r.css`calc(var(--space-100) - ${Se}) calc(var(--space-300) - ${Se})`:r.css`calc(var(--space-300) - ${Se}) calc(var(--space-500) - ${Se})`})};text-transform:uppercase;${({$variant:e})=>Te.includes(e)?r.css`font:var(--font-body-m);text-transform:none;`:r.css`font:var(--font-button);`} transition:border-color var(--transition),box-shadow var(--transition),color var(--transition),background var(--transition);${l(r.css`${({$fullWidthMobile:e})=>e&&r.css`width:100%;`}`)} &:hover{box-shadow:0px 1px 1.5px 0px rgba(2,3,3,0.3);color:${Ie("hover")};border-color:${Ie("hover")};${g(r.css`${({$variant:e})=>Le.includes(e)&&r.css`box-shadow:none;`}`)}}&:active{box-shadow:none;color:${Ie("active")};border-color:${Ie("active")};}${({$variant:e})=>Le.includes(e)&&r.css`background:${Ie()};border:none;color:${_e()};&:hover{background:${Ie("hover")};color:${_e()};}&:active{background:${Ie("active")};color:${_e()};}`} ${({$variant:e})=>"ghost"===e&&r.css`border-color:transparent;&:active,&:hover{border-color:var(--color-cta-button-ghost);}`} ${e=>(e.$loading||e.$disabled)&&r.css`cursor:default;user-select:none;pointer-events:none;`} ${e=>e.$disabled&&r.css`background:var(--color-background-disabled);border-color:var(--color-background-disabled);color:var(--color-text);`} &::before{display:none;${e=>e.$loading&&r.css`animation-duration:1s;animation-iteration-count:infinite;animation-name:${Oe};animation-timing-function:linear;border:3px solid transparent;border-radius:50%;border-top:3px solid ${({$variant:e,theme:t})=>Le.includes(e)?_e()({$variant:e,theme:t}):Ie()({$variant:e})};content:'';display:inline-block;height:12px;width:12px;position:absolute;`} ${e=>e.$disabled&&e.$loading&&r.css`border-top-color:var(--color-white);`}}&:focus-visible{border-radius:${je};}`,Me=r.span.withConfig({displayName:"Icon",componentId:"sc-488f02ef-1"})`margin:0 var(--space-200) 0 0;line-height:0;svg{height:1.4rem;width:1.4rem;}${({$loading:e})=>e&&r.css`visibility:hidden;`} ${({$right:e})=>e&&r.css`margin:0 0 0 var(--space-200);`}`,Pe=r.span.withConfig({displayName:"Text",componentId:"sc-488f02ef-2"})`text-overflow:ellipsis;overflow:hidden;white-space:nowrap;${g(r.css`line-height:1.6;`)} ${e=>e.$loading&&r.css`visibility:hidden;`}`,Re=({className:e,children:n,name:o,onClick:i,href:r,disabled:s=!1,loading:c=!1,size:l="m",variant:d="secondary",iconBefore:u,iconAfter:p,fullWidthMobile:m=!1,ariaLabel:h,...f})=>
2{if(!n)return!1;const v=o||n;let g=r?"a":"button";return"function"!=typeof i&&!r&&!c&&!s&&(g="div"),(0,t.jsxs)(Be,{className:e,name:v,type:"button"===g?"button":void 0,as:g,onClick:s||!i?void 0:a(i,400,{leading:!0,trailing:!1}),href:r||void 0,"aria-busy":c,"aria-disabled":s,"aria-label":h,$loading:c,$disabled:s,$size:l,$variant:d,$fullWidthMobile:m,...f,children:[y.isValidElement(u)&&(0,t.jsx)(Me,{children:y.cloneElement(u,{size:"xxs"})}),(0,t.jsx)(Pe,{$loading:c,children:n}),y.isValidElement(p)&&(0,t.jsx)(Me,{$right:!0,children:y.cloneElement(p,{size:"xxs"})})]})};var Ae=n(797),ze=n.n(Ae);const{DEFAULT:He,GLOBETROTTER:De}=m,qe=h("site",{[He]:r.css`var(--color-border-primary)`,[De]:r.css`var(--color-cta-button-primary)`}),Fe=h("site",{[He]:"2px",[De]:"1px"}),We=h("site",{[He]:"4px",[De]:"1px"}),Ge=r.div.withConfig({displayName:"CheckboxWrapper",componentId:"sc-3f100b0b-0"})`display:${e=>e.children?"flex":"inline-block"};position:relative;`,Ue=r.input.withConfig({displayName:"Input",componentId:"sc-3f100b0b-1"})`display:inline;height:1px;opacity:0;position:absolute;width:1px;`,Ye=r.label.withConfig({displayName:"Label",componentId:"sc-3f100b0b-2"})`cursor:pointer;display:flex;min-height:2.4rem;position:relative;user-select:none;${e=>e.$disabled&&r.css`cursor:default;`} ${e=>e.$fullWidthLabel&&r.css`width:100%;`} .sg-checkbox-icon{position:absolute;height:2rem;width:2rem;left:0.2rem;top:0.2rem;z-index:1;color:var(--color-white);padding:0.2rem;${g(r.css`border:solid 0.15rem var(--color-white);`)}}${Ue}:focus-visible + &{${x}}`,Ve=r.span.withConfig({displayName:"Square",componentId:"sc-3f100b0b-3"})`align-items:center;background:var(--color-white);border:${Fe} solid ${qe};border-radius:${We};color:var(--color-white);display:inline-flex;flex-shrink:0;height:2.4rem;justify-content:center;position:relative;transition:background var(--transition);width:2.4rem;${Ze=r.css`${g(r.css`border-width:0.15rem;`)}`,r.css`@media (min-resolution:192dpi){${Ze};}`} ${e=>e.$checked&&r.css`background:var(--color-cta-button-primary);border-color:var(--color-cta-button-primary);${g(r.css`background:var(--color-cta-button-primary-active);border-color:var(--color-cta-button-primary-active);`)}`} ${e=>e.$disabled&&r.css`background:var(--color-background-disabled);border-color:var(--color-border-disabled);`}`,Ke=r.span.withConfig({displayName:"Content",componentId:"sc-3f100b0b-4"})`align-items:center;display:inline-flex;font-family:var(--font-family-body);font-size:1.6rem;line-height:2rem;padding-left:10px;${e=>e.$disabled&&r.css`opacity:0.6;`}`,Xe=(0,y.forwardRef)((({checked:e=!1,children:n,className:o,disabled:i,onChange:r,uniqueId:s,fullWidthLabel:a=!1,style:c,...l},d)=>"function"!=typeof r?null:(0,t.jsxs)(Ge,{className:o,style:c,children:[(0,t.jsx)(Ue,{id:s,type:"checkbox",$disabled:i,onChange:i?void 0:r,"aria-checked":e,"aria-disabled":i,readOnly:i,checked:e,ref:d,...l}),(0,t.jsxs)(Ye,{htmlFor:s,$fullWidthLabel:a,$disabled:i,children:[e&&(0,t.jsx)(Q,{path:te,className:"sg-checkbox-icon",size:"xxs"}),(0,t.jsx)(Ve,{$disabled:i,$checked:e}),n&&(0,t.jsx)(Ke,{$disabled:i,children:n})]})]})));var Ze;Xe.displayName="Checkbox";const Je=s().div.withConfig({displayName:"style__ConsentModalContainer",componentId:"sc-1npkeo3-0"})(["padding-top:var(--space-400);padding-bottom:var(--space-700);position:relative;overflow:hidden;height:100%;margin-left:calc(-1 * var(--space-400));margin-right:calc(-1 * var(--space-400));@media (min-width:768px){height:unset;padding-top:var(--space-700);padding-bottom:unset;}.idun-consent-modal__text{font-family:var(--font-family-red-hat-text);font-size:1.4rem;display:block;margin-top:16px;white-space:pre-wrap;ul{padding-left:1.8rem;margin-top:1rem;li{list-style-type:disc;}}@media (min-width:768px){font-size:1.6rem;margin-bottom:16px;}}.idun-consent-modal__content{outline:none;}.idun-consent-modal__checkbox{margin-right:15px;}.idun-consent-modal__checkbox-disabled{align-items:center;background:var(--color-cta-button-primary);border-color:var(--color-cta-button-primary);color:var(--color-white);display:inline-flex;flex-shrink:0;height:24px;justify-content:center;position:relative;transition:background var(--transition),border var(--transition);opacity:0.5;width:24px;margin-right:15px;}.idun_consent-modal__checkbox-icon{color:var(--color-white);}"]),Qe=s().div.withConfig({displayName:"style__ScrollableContainer",componentId:"sc-1npkeo3-1"})(["width:100%;text-align:left;position:relative;@media (min-width:768px){overflow:auto;max-height:400px;}"]),et=s().div.withConfig({displayName:"style__ScrollableTextContainer",componentId:"sc-1npkeo3-2"})(["width:100%;overflow:auto;max-height:",";overflow-y:auto;padding:0px var(--space-400) var(--space-400);@media (min-width:768px){max-height:calc(100% - 35px);}@media (max-width:375px){max-height:calc(85dvh - 200px);}"],(e=>{let{isWebView:t}=e;return t?"45dvh":"calc(85dvh - 210px)"})),tt=s().a.withConfig({displayName:"style__CookiePolicyLink",componentId:"sc-1npkeo3-3"})(["font-size:1.6rem;text-decoration:underline;line-height:2.5rem;color:var(--color-grey-800);"]),nt=s().a.withConfig({displayName:"style__GooglePrivacyPolicyLink",componentId:"sc-1npkeo3-4"})(["font-size:1.6rem;text-decoration:underline;line-height:2.5rem;color:var(--color-grey-800);"]),ot=s().div.withConfig({displayName:"style__ConsentRowsContainer",componentId:"sc-1npkeo3-5"})(["display:flex;flex-direction:column;justify-content:center;"]),it=s().div.withConfig({displayName:"style__SelectAllToggleContainer",componentId:"sc-1npkeo3-6"})(["display:flex;flex-direction:row;justify-content:flex-start;margin-top:var(--space-400);button{color:var(--color-grey-800);font-family:var(--font-family-headline);cursor:pointer;
2border-bottom:var(--color-grey-800) solid 1px;margin-right:5px;margin-bottom:5px;}"]),rt=s().div.withConfig({displayName:"style__ButtonContainer",componentId:"sc-1npkeo3-7"})(["display:flex;flex-direction:column;padding-top:var(--space-500);gap:var(--space-400);height:100%;position:absolute;width:100vw;transition:box-shadow 0.3s ease;button{align-self:center;}&:not(.fade--hidden){box-shadow:rgba(0,0,0,0.22) 0px 0px 31.4px 0px;@media (min-width:768px){box-shadow:none;}}@media (max-width:375px){padding-top:var(--space-300);}@media (min-width:768px){position:unset;margin-bottom:unset;width:unset;justify-content:center;flex-direction:row;flex-wrap:wrap;}"]),st=s().div.withConfig({displayName:"style__ExpandContainer",componentId:"sc-1npkeo3-8"})(["display:flex;flex-direction:column;margin-top:5px;.idun-consent-modal__expand-text{display:none;font-family:var(--font-family-red-hat-text);font-size:1.4rem;color:var(--color-grey-800);","}"],(e=>e.expanded&&(0,r.css)(["display:block;width:100%;height:100%;margin-top:0;margin-bottom:10px;padding:0 50px 0 39px;"]))),at=s().div.withConfig({displayName:"style__ExpandHead",componentId:"sc-1npkeo3-9"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;"]),ct=s().button.withConfig({displayName:"style__ExpandButton",componentId:"sc-1npkeo3-10"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;pointer-events:auto;padding:10px 0;font:var(--font-body-m);color:var(--color-grey-800);.idun-consent-modal__arrow-icon{display:block;color:var(--color-grey-800);margin-right:8px;","}"],(e=>e.expanded&&(0,r.css)(["transform:rotate(180deg);"]))),lt=e=>{const{title:n,text:o,disabled:i,isChecked:r,onChange:s}=e,[a,c]=(0,y.useState)(!1);return(0,t.jsxs)(st,{expanded:a,children:[(0,t.jsxs)(at,{children:[(()=>{const e=ze()("checkbox-");return i?(0,t.jsx)("div",{id:e,className:"idun-consent-modal__checkbox-disabled",children:(0,t.jsx)(Q,{path:ie,className:"idun_consent-modal__checkbox-icon",size:"xs"})}):(0,t.jsx)(Xe,{className:"idun-consent-modal__checkbox",disabled:i,uniqueId:e,checked:r,onChange:s})})(),(0,t.jsxs)(ct,{expanded:a,onClick:()=>c(!a),type:"button",className:"idun-consent-modal__expand-button",children:[(0,t.jsx)("span",{children:n}),(0,t.jsx)(Q,{className:"idun-consent-modal__arrow-icon",path:re,size:"xxs"})]})]}),(0,t.jsx)("span",{className:"idun-consent-modal__expand-text",children:o})]})};lt.propTypes={title:L().string,text:L().string,disabled:L().bool,isChecked:L().bool,onChange:L().func.isRequired},lt.defaultProps={title:"",text:"",disabled:!1,isChecked:!0};const dt=lt,ut="cookie_cat_functional",pt="cookie_cat_statistic",mt="cookie_cat_marketing",ht=e=>{let{cookieConsentSettings:n}=e;if("undefined"==typeof window||!window.CookieInformation)return null;const{cookieConsent:o,initialIsMobile:i,labels:r,mobileAppConsent:s}=n,{approved:a,consent:c}=o,l=J(),d="number"==typeof s,[u,p]=(0,y.useState)(!1),[m,h]=(0,y.useState)(d),[f]=(0,y.useState)(!0),[v,g]=(0,y.useState)(d?1===s:-1!==a.indexOf(ut)),[b,x]=(0,y.useState)(d?1===s:-1!==a.indexOf(pt)),[w,k]=(0,y.useState)(-1!==a.indexOf(mt)),C=(0,y.useRef)(),$=(0,y.useRef)();if(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"fade--hidden",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5;const[i,r]=(0,y.useState)(!1),s=(0,y.useCallback)((()=>{if(!e.current)return!1;const{scrollTop:t,scrollHeight:n,clientHeight:i}=e.current;return t+i>=n-o}),[e,o]),a=(0,y.useCallback)((()=>{if(!e.current)return!1;const{scrollHeight:t,clientHeight:n}=e.current;return t>n}),[e]),c=(0,y.useCallback)((()=>{const e=document.getElementById(t);if(!e)return;const o=a(),i=s();!o||i?e.classList.add(n):e.classList.remove(n),r(i)}),[a,s,t,n]);(0,y.useEffect)((()=>{const t=e.current;if(!t)return;c();const n=()=>{c()},o=new ResizeObserver((()=>{c()})),i=new MutationObserver((()=>{c()}));return t.addEventListener("scroll",n),o.observe(t),i.observe(t,{attributes:!0,childList:!0,subtree:!0}),()=>{t.removeEventListener("scroll",n),o.disconnect(),i.disconnect()}}),[e,c])}($,"cookie-button-container"),(0,y.useEffect)((()=>{const e=e=>{"Escape"!==e.key||m||(e.preventDefault(),e.stopPropagation())};return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}}),[m]),(0,y.useEffect)((()=>{m||document.getElementById("idun-consent-modal__content").focus()}),[m]),!n||!n?.labels)return null;const E=!v&&!b&&!w,L=v&&b&&w,T=L?r.deselectAllText:r.selectAllText,I=e=>{const t=new URL(window.location.href);t.searchParams.delete("changeConsent"),window.history.replaceState(null,"",t.toString()),(b&&"necessary"!==e||"all"===e||"mobileAp
2p"===e)&&window.dataLayer.push({event:"cookie_cat_statistic_consent_given"}),(w&&"necessary"!==e||"all"===e)&&window.dataLayer.push({event:"cookie_cat_marketing_consent_given"})},_=()=>{h(!0),window.CookieInformation.submitAllCategories(),window.dispatchEvent(new Event("CookieInformationConsentGiven")),I("all")},j=()=>{h(!0),window.CookieInformation.declineAllCategories(),window.dispatchEvent(new Event("CookieInformationConsentGiven")),I("necessary")},S=()=>{h(!0),E?(window.CookieInformation.declineAllCategories(),I("necessary")):(c||window.CookieInformation.declineAllCategories(),v!==(-1!==a.indexOf(ut))&&window.CookieInformation.changeCategoryConsentDecision(ut),b!==(-1!==a.indexOf(pt))&&window.CookieInformation.changeCategoryConsentDecision(pt),w!==(-1!==a.indexOf(mt))&&window.CookieInformation.changeCategoryConsentDecision(mt),I(),window.CookieInformation.submitConsent(),window.dispatchEvent(new Event("CookieInformationConsentGiven")))};if((0,y.useEffect)((()=>{setTimeout((()=>{d&&S()}),1e3)}),[]),m)return null;const{beforeList:N,listItems:O,afterList:B}=(e=>{if(!e||!e.includes("â¢"))return{beforeList:e,listItems:[],afterList:""};const t=e.split("â¢"),n=t[0].trim(),o=t.slice(1);return{beforeList:n,listItems:o.map((e=>e.split("\n")[0].trim())).filter(Boolean),afterList:o[o.length-1].split("\n").slice(1).join("\n")}})(r.mainText),M=(P=navigator.userAgent,/webview|wv|ip((?!.*Safari)|(?=.*like Safari))/i.test(P));var P;return(0,t.jsx)(ge,{className:"robots-noindex robots-follow",initialIsMobile:i,isOpen:!m,nonClosable:!0,size:"s",children:(0,t.jsxs)(Je,{children:[(0,t.jsx)(Qe,{children:(0,t.jsx)(et,{ref:$,isWebView:M,children:(0,t.jsx)("div",{tabIndex:0,id:"idun-consent-modal__content",className:"idun-consent-modal__content",children:u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Ce,{onClick:()=>p(!1),style:{marginBottom:24},children:r.backLink}),(0,t.jsx)("h2",{children:r.settings}),(0,t.jsxs)(ot,{ref:C,isGlobetrotter:l,children:[(0,t.jsx)(it,{children:(0,t.jsx)("button",{onClick:()=>{L?(g(!1),x(!1),k(!1)):(g(!0),x(!0),k(!0))},type:"button",children:T})}),(0,t.jsx)(dt,{isChecked:f,onChange:()=>{},title:r.necessaryHeader,text:r.necessaryText,disabled:!0}),(0,t.jsx)(dt,{isChecked:v,onChange:()=>g(!v),title:r.functionalHeader,text:r.functionalText}),(0,t.jsx)(dt,{isChecked:b,onChange:()=>x(!b),title:r.statisticHeader,text:r.statisticText}),(0,t.jsx)(dt,{isChecked:w,onChange:()=>k(!w),title:r.marketingHeader,text:r.marketingText})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{children:r.mainHeader}),(0,t.jsxs)("div",{className:"idun-consent-modal__text",children:[N,(0,t.jsx)("ul",{children:O.map(((e,n)=>(0,t.jsx)("li",{children:e},n)))}),B," ",(0,t.jsx)(tt,{href:""!==r.cookiePolicyLink?`${r.cookiePolicyLink}?consent=hide`:"https://www.ving.se/cookies?consent=hide",children:r.cookiePolicyLinkText}),"."]}),(0,t.jsx)(nt,{"aria-label":r.googlePrivacyPolicyLinkText,href:"https://business.safety.google/privacy/",rel:"noreferrer",target:"_blank",children:r.googlePrivacyPolicyLinkText})]})})})}),(0,t.jsx)(rt,{onlyNecessaryConsents:E,id:"cookie-button-container",children:u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ke,{onClick:()=>j(),children:r.declineAll}),(0,t.jsx)(Re,{className:"idun-consent-modal__button",onClick:()=>S(),children:r.acceptSelectedButtonText}),(0,t.jsx)(Re,{className:"idun-consent-modal__button",variant:"primary",onClick:()=>_(),"data-test":"accept-all-cookies-button",children:r.acceptAllButtonText})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ke,{onClick:()=>j(),children:r.declineAll}),(0,t.jsx)(Re,{className:"idun-consent-modal__button",onClick:()=>p(!0),children:r.settings}),(0,t.jsx)(Re,{className:"idun-consent-modal__button",variant:"primary",onClick:()=>_(),"data-test":"accept-all-cookies-button",children:r.acceptAllButtonText})]})})]})})};ht.propTypes={cookieConsentSettings:L().shape({initialIsMobile:L().bool,mobileAp
2pConsent:L().number,cookieConsent:L().shape({consent:L().bool,approved:L().arrayOf(L().string),declined:L().arrayOf(L().string)}).isRequired,labels:L().shape({acceptAllButtonText:L().string,acceptNecessaryButtonText:L().string,acceptSelectedButtonText:L().string,backLink:L().string,cookiePolicyLink:L().string,cookiePolicyLinkText:L().string,declineAll:L().string,deselectAllText:L().string,functionalHeader:L().string,functionalText:L().string,googlePrivacyPolicyLinkText:L().string,mainHeader:L().string,mainText:L().string,marketingHeader:L().string,marketingText:L().string,necessaryHeader:L().string,necessaryText:L().string,selectAllText:L().string,settings:L().string,statisticHeader:L().string,statisticText:L().string}).isRequired}).isRequired};const ft=ht,vt=window.__IDUN_GLOBALS_CONFIG__,gt=document.getElementById("CookieConsent");gt&&(0,e.c)(gt,(0,t.jsx)($,{siteId:vt?.siteId||1,children:(0,t.jsx)(ft,{cookieConsentSettings:vt.cookieConsentSettings})}))})()})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.