(()=>{var e={1828:e=>{e.exports={setAttributes:function(e,t){Object.keys(t).forEach((n=>e.setAttribute(n,t[n])))},createElement:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const r=document.createElement(e);return Array.isArray(t)?t.forEach((e=>{r.classList.add(e)})):"string"==typeof t&&r.classList.add(t),Array.isArray(n)?n.forEach((e=>{r.setAttribute(e.name,e.value)})):"object"==typeof n&&r.setAttribute(n.name,n.value),r},toggleInertOnSiblings:(e,t)=>{e&&e.parentElement&&[...e.parentElement?.children].forEach((n=>{n!==e&&"SCRIPT"!==n.tagName&&"NOSCRIPT"!==n.tagName&&"LINK"!==n.tagName&&"onetrust-consent-sdk"!==n.id&&n.toggleAttribute("inert",t)}))}}},6942:(e,t)=>{var n; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{const t={get(e){const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length?t.pop().split(";").shift():""},set(e,t,n,r,o){const i=`${e}=${t}`,l=n?`;domain=${n}`:"",a=r?`;path=${r}`:"",c=o?`;expires=${o}`:"",s=arguments.length>5&&void 0!==arguments[5]&&arguments[5]&&n?";secure":"";document.cookie=i.concat(l,a,c,s)}};e.exports=t}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.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 r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};(()=>{"use strict";n.d(r,{$:()=>In});var e,t,o,i,l,a,c,s,u,_,f,d,p={},h=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray;function y(e,t){for(var n in t)e[n]=t[n];return e}function b(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function g(t,n,r){var o,i,l,a={};for(l in n)"key"==l?o=n[l]:"ref"==l?i=n[l]:a[l]=n[l];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(l in t.defaultProps)null==a[l]&&(a[l]=t.defaultProps[l]);return k(t,a,o,i,null)}function k(e,n,r,i,l){var a={type:e,props:n,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==l?++o:l,__i:-1,__u:0};return null==l&&null!=t.vnode&&t.vnode(a),a}function E(e){return e.children}function C(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__i+1):null;for(var n;tu&&i.sort(c),e=i.shift(),u=i.length,e.__d&&(r=void 0,l=(o=(n=e).__v).__e,a=[],s=[],n.__P&&((r=y({},o)).__v=o.__v+1,t.vnode&&t.vnode(r),I(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[l]:null,a,null==l?w(o):l,!!(32&o.__u),s),r.__v=o.__v,r.__.__k[r.__i]=r,D(a,r,s),r.__e!=l&&x(r)));S.__r=0}function $(e,t,n,r,o,i,l,a,c,s,u){var _,f,d,m,v,y,b=r&&r.__k||h,g=t.length;for(c=A(n,t,b,c,g),_=0;_0?k(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=e,l.__b=e.__b+1,a=null,-1!=(s=l.__i=P(l,n,c,_))&&(_--,(a=n[s])&&(a.__u|=2)),null==a||null==a.__v?(-1==s&&(o>u?f--:oc?f--:f++,l.__u|=4))):e.__k[i]=null;if(_)for(i=0;i(null==c||2&c.__u?0:1))for(o=n-1,i=n+1;o>=0||i=0){if((c=t[o])&&!(2&c.__u)&&l==c.key&&a==c.type)return o;o--}if(i0?e:v(e)?e.map(H):y({},e)}function U(n,r,o,i,l,a,c,s,u){var _,f,d,h,m,y,g,k=o.props,E=r.props,C=r.type;if("svg"==C?l="http://www.w3.org/2000/svg":"math"==C?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=a)for(_=0;_2&&(c.children=arguments.length>3?e.call(arguments,2):r),k(t.type,c,o||t.key,i||t.ref,null)}function V(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach((function(e){e.__e=!0,N(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+d++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}e=h.slice,t={__e:function(e,t,n,r){for(var o,i,l;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),l=o.__d),l)return o.__E=o}catch(t){e=t}throw e}},o=0,C.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=y({},this.state),"function"==typeof e&&(e=e(y({},n),this.props)),e&&y(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),N(this))},C.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),N(this))},C.prototype.render=E,i=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,s=/(PointerCapture)$|Capture$/i,u=0,_=O(!1),f=O(!0),d=0;var j,Z,Y,G,Q=0,J=[],X=t,ee=X.__b,te=X.__r,ne=X.diffed,re=X.__c,oe=X.unmount,ie=X.__;function le(e,t){X.__h&&X.__h(Z,e,Q||t),Q=0;var n=Z.__H||(Z.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ae(e){return Q=1,ce(we,e)}function ce(e,t,n){var r=le(j++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):we(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Z,!Z.__f)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var l=r.__c.props!==e;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(l=!0)}})),i&&i.call(this,e,t,n)||l};Z.__f=!0;var i=Z.shouldComponentUpdate,l=Z.componentWillUpdate;Z.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}l&&l.call(this,e,t,n)},Z.shouldComponentUpdate=o}return r.__N||r.__}function se(e,t){var n=le(j++,3);!X.__s&&Ce(n.__H,t)&&(n.__=e,n.u=t,Z.__H.__h.push(n))}function ue(e,t){var n=le(j++,4);!X.__s&&Ce(n.__H,t)&&(n.__=e,n.u=t,Z.__h.push(n))}function _e(e){return Q=5,de((function(){return{current:e}}),[])}function fe(e,t,n){Q=6,ue((function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}}),null==n?n:n.concat(e))}function de(e,t){var n=le(j++,7);return Ce(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function pe(e,t){return Q=8,de((function(){return e}),t)}function he(e){var t=Z.context[e.__c],n=le(j++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Z)),t.props.value):e.__}function me(e,t){X.useDebugValue&&X.useDebugValue(t?t(e):e)}function ve(){var e=le(j++,11);if(!e.__){for(var t=Z.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function ye(){for(var e;e=J.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ke),e.__H.__h.forEach(Ee),e.__H.__h=[]}catch(t){e.__H.__h=[],X.__e(t,e.__v)}}X.__b=function(e){Z=null,ee&&ee(e)},X.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ie&&ie(e,t)},X.__r=function(e){te&&te(e),j=0;var t=(Z=e.__c).__H;t&&(Y===Z?(t.__h=[],Z.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach(ke),t.__h.forEach(Ee),t.__h=[],j=0)),Y=Z},X.diffed=function(e){ne&&ne(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==J.push(t)&&G===X.requestAnimationFrame||((G=X.requestAnimationFrame)||ge)(ye)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.u=void 0}))),Y=Z=null},X.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ke),e.__h=e.__h.filter((function(e){return!e.__||Ee(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],X.__e(n,e.__v)}})),re&&re(e,t)},X.unmount=function(e){oe&&oe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ke(e)}catch(e){t=e}})),n.__H=void 0,t&&X.__e(t,n.__v))};var be="function"==typeof requestAnimationFrame;function ge(e){var t,n=function(){clearTimeout(r),be&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);be&&(t=requestAnimationFrame(n))}function ke(e){var t=Z,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Z=t}function Ee(e){var t=Z;e.__c=e.__(),Z=t}function Ce(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function we(e,t){return"function"==typeof t?t(e):t}function xe(e,t){for(var n in t)e[n]=t[n];return e}function Ne(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Se(e,t){var n=t(),r=ae({t:{__:n,u:t}}),o=r[0].t,i=r[1];return ue((function(){o.__=n,o.u=t,$e(o)&&i({t:o})}),[e,n,t]),se((function(){return $e(o)&&i({t:o}),e((function(){$e(o)&&i({t:o})}))}),[e]),n}function $e(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}function Ae(e){e()}function Le(e){return e}function Te(){return[!1,Ae]}var Pe=ue;function Re(e,t){this.props=e,this.context=t}(Re.prototype=new C).isPureReactComponent=!0,Re.prototype.shouldComponentUpdate=function(e,t){return Ne(this.props,e)||Ne(this.state,t)};var Fe=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Fe&&Fe(e)};var Oe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ie(e){function t(t){var n=xe({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Oe,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var De=function(e,t){return null==e?null:T(T(e).map(t))},He={map:De,forEach:De,count:function(e){return e?T(e).length:0},only:function(e){var t=T(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:T},Ue=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Ue(e,t,n,r)};var Me=t.unmount;function Be(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=xe({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Be(e,t,n)}))),e}function We(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return We(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function ze(){this.__u=0,this.o=null,this.__b=null}function Ke(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function qe(){this.i=null,this.l=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Me&&Me(e)},(ze.prototype=new C).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var o=Ke(r.__v),i=!1,l=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=l;var a=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=We(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(l,l)},ze.prototype.componentWillUnmount=function(){this.o=[]},ze.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Be(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&g(E,null,e.fallback);return o&&(o.__u&=-33),[g(E,null,t.__a?null:e.children),o]};var Ve=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.h.removeChild(e)}}),z(g(je,{context:t.context},e.__v),t.v)}(qe.prototype=new C).__a=function(e){var t=this,n=Ke(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ve(t,e,r)):o()};n?n(i):i()}},qe.prototype.render=function(e){this.i=null,this.l=new Map;var t=T(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},qe.prototype.componentDidUpdate=qe.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){Ve(e,n,t)}))};var Ye="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ge=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Qe=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Je=/[A-Z0-9]/g,Xe="undefined"!=typeof document,et=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};C.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(C.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var tt=t.event;function nt(){}function rt(){return this.cancelBubble}function ot(){return this.defaultPrevented}t.event=function(e){return tt&&(e=tt(e)),e.persist=nt,e.isPropagationStopped=rt,e.isDefaultPrevented=ot,e.nativeEvent=e};var it,lt={enumerable:!1,configurable:!0,get:function(){return this.class}},at=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1===n.indexOf("-");for(var i in t){var l=t[i];if(!("value"===i&&"defaultValue"in t&&null==l||Xe&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var a=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===l?l="":"translate"===a&&"no"===l?l=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?i="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||et(t.type)?"onfocus"===a?i="onfocusin":"onblur"===a?i="onfocusout":Qe.test(i)&&(i=a):a=i="oninput":o&&Ge.test(i)?i=i.replace(Je,"-$&").toLowerCase():null===l&&(l=void 0),"oninput"===a&&r[i=a]&&(i="oninputCapture"),r[i]=l}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=T(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=T(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",lt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Ye,at&&at(e)};var ct=t.__r;t.__r=function(e){ct&&ct(e),it=e.__c};var st=t.diffed;t.diffed=function(e){st&&st(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),it=null};var ut={ReactCurrentDispatcher:{current:{readContext:function(e){return it.__n[e.__c].props.value},useCallback:pe,useContext:he,useDebugValue:me,useDeferredValue:Le,useEffect:se,useId:ve,useImperativeHandle:fe,useInsertionEffect:Pe,useLayoutEffect:ue,useMemo:de,useReducer:ce,useRef:_e,useState:ae,useSyncExternalStore:Se,useTransition:Te}}};function _t(e){return!!e&&e.$$typeof===Ye}var ft={useState:ae,useId:ve,useReducer:ce,useEffect:se,useLayoutEffect:ue,useInsertionEffect:Pe,useTransition:Te,useDeferredValue:Le,useSyncExternalStore:Se,startTransition:Ae,useRef:_e,useImperativeHandle:fe,useMemo:de,useCallback:pe,useContext:he,useDebugValue:me,version:"18.3.1",Children:He,render:function(e,t,n){return null==t.__k&&(t.textContent=""),z(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return K(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(z(null,e),!0)},createPortal:function(e,t){var n=g(Ze,{__v:e,h:t});return n.containerInfo=t,n},createElement:g,createContext:V,createFactory:function(e){return g.bind(null,e)},cloneElement:function(e){return _t(e)?q.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:E,isValidElement:_t,isElement:_t,isFragment:function(e){return _t(e)&&e.type===E},isMemo:function(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")},findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:C,PureComponent:Re,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Ne(this.props,e)}function r(t){return this.shouldComponentUpdate=n,g(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:Ie,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:E,Suspense:ze,SuspenseList:qe,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return g(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ut};var dt=0;Array.isArray;function pt(e,n,r,o,i,l){n||(n={});var a,c,s=n;if("ref"in s)for(c in s={},n)"ref"==c?a=n[c]:s[c]=n[c];var u={type:e,props:s,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--dt,__i:-1,__u:0,__source:i,__self:l};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===s[c]&&(s[c]=a[c]);return t.vnode&&t.vnode(u),u}var ht=n(6942);const mt={Enable:"skapa-focus-lock-enable",Disable:"skapa-focus-lock-disable",Escape:"skapa-focus-lock-escape-hotkey"};class vt extends Event{constructor(e,t){super(e),this.SkapaFocusLockReference=t}}const yt=new Set;function bt(e){return e.parentElement||e.getRootNode()&&e.getRootNode().host}function gt(e,t,n){var r;const o=[...e];t&&o.reverse();const i="undefined"!=typeof window;for(let e=0;et.handlePointer(e)))}function Ct(e){e.key,yt.forEach((t=>t.handleKeyboard(e)))}const wt=["mousedown","pointerup","touchstart","click"],xt=["keydown","keyup"],Nt=[mt.Enable,mt.Disable];let St=!1;function $t(e=!0){if(St===e)return;if(!e&&yt.size)return;const t=(e?document.addEventListener:document.removeEventListener).bind(document);wt.forEach((e=>t(e,Et,{capture:!0}))),xt.forEach((e=>t(e,Ct))),Nt.forEach((e=>t(e,kt))),St=e}let At=-1;const Lt={cache:new WeakMap};function Tt(){At=-1,Lt.cache=new WeakMap}function Pt(e,t){if(!e)return!1;if(e===t)return!0;const n=Lt.cache;if(n.has(e))return!!n.get(e);-1===At&&(At=requestAnimationFrame(Tt));const{display:r,visibility:o}=window.getComputedStyle(e);if("none"===r||"hidden"===o)return n.set(e,!1),!1;const i=e.parentNode;if(i&&i===t)return n.set(e,!0),!0;if(i&&1===i.nodeType){const r=Pt(i,t);return n.set(e,r),r}if(i&&11===i.nodeType&&"host"in i){const r=Pt(i.host,t);return n.set(e,r),r}return n.set(e,!0),!0}function Rt(e=document){if(e.activeElement)return e.activeElement.shadowRoot&&Rt(e.activeElement.shadowRoot)||e.activeElement}const Ft="skapa-focus-region-boundary";let Ot;function It(){return Ot||(Ot=document.createElement("div"),Ot.tabIndex=0,Ot.toggleAttribute(Ft,!0),Ot.style.position="fixed",Ot.style.top="0",Ot.style.left="0",Ot.style.width="1px"),Ot.cloneNode(!0)}const Dt=new Map;function Ht(e,t){e.preventDefault(),e.stopImmediatePropagation(),t.focus()}function Ut(e){const t=Dt.get(e);t&&(t.nodes.forEach(((e,n)=>{e.removeEventListener("focusin",t.listeners[n],{capture:!0}),e&&e.isConnected&&e.remove()})),Dt.delete(e))}class Mt extends EventTarget{constructor(e){super(),this.autoFocus=!1,this.passive=!1,this.capturePointerEvents=!0,this.autoFocusReturn=!0,this.__active=!1,this.__disableKeyConfig={key:"Escape",shift:!1,ctrl:!1},this.__shiftKeyDown=!1,this.handleKeyboard=e=>{if(!this.passive){if("keydown"===e.type&&"string"==typeof e.key&&e.key.toLowerCase()===this.__disableKeyConfig.key.toLowerCase()){const{shift:t,ctrl:n}=this.__disableKeyConfig;if(t===e.shiftKey&&n===e.ctrlKey)return this.active=!1,void this.dispatchEvent(new vt(mt.Escape,this))}"Shift"===e.key&&(this.__shiftKeyDown="keydown"===e.type)}},this.disconnectedLockWrapper=()=>{const e=!(this.container&&this.container.isConnected);return e&&console.warn("Focus lock feature was not disabled before removing the container from the DOM tree."),e},this.handlePointer=e=>{if(this.passive||!this.capturePointerEvents)return;if(this.disconnectedLockWrapper())return;const t=e.composedPath();t.includes(this.container)||t.find((e=>Element.prototype.isPrototypeOf(e)&&(e.classList.contains("skapa-focus-portal")||(e.getAttribute("role")||"").includes("dialog"))))||this.isElementWithin(t[0])||(e.cancelable&&e.preventDefault(),"click"===e.type&&e.stopImmediatePropagation())},this.enableLock=()=>{this.container.addEventListener("focusout",this.handleFocus),$t(!0),function(e){const t=e.container;if(t.isConnected&&t.parentNode){Dt.has(e)&&Ut(e);const n=It(),r=It(),o=function(e){const n=gt([t,...Array.from(t.querySelectorAll("*"))],!0,t);n&&Ht(e,n)},i=function(e){const n=gt([t,...Array.from(t.querySelectorAll("*"))],!1,t);n&&Ht(e,n)};n.addEventListener("focusin",o,{capture:!0}),r.addEventListener("focusin",i,{capture:!0}),t.before(n),t.after(r),Dt.set(e,{nodes:[n,r],listeners:[o,i]})}}(this),document.dispatchEvent(new vt(mt.Enable,this)),this.captureFocus()},this.disableLock=()=>{Ut(this),$t(!1),this.container.removeEventListener("focusout",this.handleFocus),this.returnFocus(),document.dispatchEvent(new vt(mt.Disable,this))},this.captureFocus=()=>{document.activeElement&&(this._activeElementBeforeFocusLock=Rt());const e=this.autoFocus&&this.container.querySelector('*[data-autofocus]:not([tabindex="-1"]):not(:disabled)'),t=gt(e?[e]:[this.container,...Array.from(this.container.querySelectorAll("*"))],!1,this.container);t?Wt(t):this.noFocusTargetException()},this.returnFocus=()=>{this.autoFocusReturn&&this._activeElementBeforeFocusLock&&this._activeElementBeforeFocusLock.isConnected&&Wt(this._activeElementBeforeFocusLock)},this.handleFocus=e=>{if(this.passive)return;if(!this.container.isConnected)return;const t=e.relatedTarget&&"nodeType"in e.relatedTarget&&1===e.relatedTarget.nodeType?e.relatedTarget:null;if(t&&!t.hasAttribute(Ft)&&!this.isElementWithin(t)){e.preventDefault();const t=e.composedPath()[0]||gt([this.container,...Array.from(this.container.querySelectorAll("*"))],this.__shiftKeyDown,this.container);t?t.focus():this.noFocusTargetException()}},this.isElementWithin=(e,t=this.container)=>{var n;return Boolean(e&&(t.contains(e)||t.shadowRoot&&t.shadowRoot.contains(e)||(null===(n=function(e){if(!e)return;const t=e.getRootNode();return"host"in t?t.host:void 0}(t))||void 0===n?void 0:n.contains(e))||function(e){const t=[e];let n,r=e;for(;n=bt(r);)t.push(r=n);return t}(e).includes(t)))},this.noFocusTargetException=()=>{console.warn(`Warning! Skapa Focus-lock found no focusable elements on ${this.container}.\nFocus lock remains disabled.`),this.disableLock()},this.container=e}get active(){return this.__active}set active(e){this.__active!==e&&(this.__active=e,e?this.enableLock():this.disableLock())}get disableKey(){return this.__disableKeyConfig}setDisableKey(e){this.__disableKeyConfig=Object.assign({key:"Escape",shift:!1,ctrl:!1},e)}}let Bt=-1;function Wt(e){clearTimeout(Bt),"undefined"!=typeof window&&(Bt=window.setTimeout((()=>{e&&e.isConnected&&e.focus()}),50))}var zt=e=>{const{prefix:t="",locked:n=!1,autoFocus:r=!1,escapeHotkey:o,capturePointerEvents:i=!0,onEscaped:l,autoFocusReturn:a=!0,children:c,className:s,...u}=e,_=_e(null),f=_e(),[d,p]=ae(!1),h=`${t}skapa-focus-lock`,m=ht(h,(!n||d)&&`${h}--disabled`,s),v=function(){l&&l(),p(!0)};return se((()=>{if(_.current){f.current||(f.current=new Mt(_.current));const e=f.current;o&&e.setDisableKey(o),e.capturePointerEvents=i,e.autoFocus=r,e.autoFocusReturn=a,e.active=n}return()=>{f.current&&(f.current.active=!1,p(!1))}}),[]),se((()=>{const e=f.current;return e&&e.addEventListener(mt.Escape,v),()=>{e&&e.removeEventListener(mt.Escape,v)}}),[l,f.current]),se((()=>{f.current&&(f.current.active=n),p(!1)}),[n]),se((()=>{f.current&&(f.current.autoFocus=r)}),[r]),se((()=>{f.current&&(f.current.autoFocusReturn=a)}),[a]),se((()=>{f.current&&f.current.setDisableKey(o)}),[o]),se((()=>{f.current&&(f.current.capturePointerEvents=i)}),[i]),pt("div",{ref:_,className:m,...u,children:c})};const Kt=[],qt=e=>{const t=document.body;if(Kt.pop(),0===Kt.length&&t.classList.toString().indexOf(`${e}prevent-scroll-y`)>-1){const n=Number(t.getAttribute("data-skapa--scroll")),r=t.getAttribute("data-skapa--pad");t.classList.remove(`${e}prevent-scroll-y`),t.style.paddingRight=r,window.scrollTo(0,n),t.style.top="",t.removeAttribute("data-skapa--scroll"),t.removeAttribute("data-skapa--pad"),t.style.length||t.removeAttribute("style")}return!0},Vt=(e,t)=>{e(!1),t(!0)},jt=(e,t,n)=>{e(!0),t&&(e=>{const t=document.body;if(Kt.push(!0),-1===t.classList.toString().indexOf(`${e}prevent-scroll-y`)){const n=window.pageYOffset||window.scrollY;t.setAttribute("data-skapa--scroll",n.toString());const r=t.style.paddingRight;t.setAttribute("data-skapa--pad",r);let o=t.clientWidth;t.classList.add(`${e}prevent-scroll-y`),o=t.clientWidth-o,t.style.top=`-${n}px`,o&&(t.style.paddingRight=`calc(${r||"0px"} + ${o}px)`),window.scrollTo(0,0)}})(n)};var Zt=e=>{const{className:t,visible:n=!1,prefix:r="",children:o,handleCloseBtn:i,focusLockProps:l={},keepContentMounted:a=!1,escapable:c=!0,onModalClosed:s=()=>{},onModalOpened:u=()=>{},onKeyDown:_=()=>{},scrollLock:f=!0,...d}=e,[p,h]=ft.useState(n),[m,v]=ft.useState(!1),y=ft.useRef(-1),b=`${r}modal-wrapper`;se((()=>{((e,t,n,r,o,i)=>{t!==r&&(t?jt(o,n,e):Vt(o,i))})(r,n,f,p,h,v)}),[n]),se((()=>(n&&jt(h,f,r),()=>{f&&qt(r),cancelAnimationFrame(y.current)})),[]);const g=ht(b,p?`${b}--open`:`${b}--close`,t),k=ht(`${b}__backdrop`,`${b}__backdrop--dark`),E=ft.Children.map(o,(e=>ft.cloneElement(e,{open:p,closeBtnClick:i,prefix:r})));return pt("div",{...d,onKeyDown:e=>{_(e),((e,t,n,r,o,i)=>{(!e.target.closest||e.target.closest(`.${t}`)===e.currentTarget)&&n&&"Escape"===e.key&&(r&&r(e),Vt(o,i))})(e,b,c,i,h,v)},className:g,tabIndex:-1,children:[pt("div",{className:k,onMouseDown:e=>{((e,t,n)=>{t&&e.target===e.currentTarget&&n(e)})(e,c,i)},onAnimationEnd:e=>{((e,t,n,r,o,i,l,a,c)=>{cancelAnimationFrame(t),n?r&&(t=requestAnimationFrame((()=>{r(e)}))):l&&(i&&qt(c),a(!1),o&&(t=requestAnimationFrame((()=>{o(e)}))))})(e,y.current,p,u,s,f,m,v,r)}}),(a||p||m)&&pt(zt,{prefix:r,autoFocus:!0,onEscaped:i,locked:p,capturePointerEvents:!1,...l,children:E})]})};const Yt=e=>{if(!e)return!1;return!Boolean(e.querySelectorAll("*[data-autofocus],*[autofocus]").length)};var Gt=()=>{const e=_e(null),[t,n]=ae(void 0);return se((()=>{if(e.current){const t=e.current;n(Yt(t))}}),[]),[t,e]};const Qt=e=>{const{className:t="",fullSize:n=!1,prefix:r="",children:o,open:i=!1,closeBtnClick:l,header:a,alignment:c="right",preserveAlignment:s=!1,footer:u,size:_="small",describedById:f,labelledById:d,ariaLabel:p,contentAttributes:h,...m}=e,v=ht(`${r}sheets`,`${r}sheets--${_}`,n&&`${r}sheets--mobile-full-size`,"left"===c&&`${r}sheets--mirrored`,s&&`${r}sheets--preserve-alignment`,i?`${r}sheets--enter`:`${r}sheets--close`,t),y=a?ft.cloneElement(a,{closeBtnClick:l,prefix:r}):null,b=u&&ft.cloneElement(u,{prefix:r,closeBtnClick:l,stacked:"small"===_&&u.props.stacked})||null,g=ft.Children.map(o,(e=>ft.isValidElement(e)?ft.cloneElement(e,{prefix:r}):e)),[k,E]=Gt();return pt("div",{"aria-describedby":f,"aria-labelledby":d,"aria-label":p,...m,className:v,"aria-modal":"true",role:"dialog",tabIndex:-1,children:[void 0!==k&&y,pt("div",{className:`${r}sheets__content-wrapper`,role:"document",tabIndex:0,...h,ref:E,"data-autofocus":k,children:g}),b]})};const Jt=({prefix:e="",className:t,viewBox:n="0 0 24 24",ariaHidden:r=!0,children:o,...i})=>pt("svg",{viewBox:n,focusable:"false",width:"24",height:"24",...i,"aria-hidden":r,className:`${e}svg-icon${t?` ${t}`:""}`,children:o});var Xt=e=>{const{prefix:t="",viewBox:n="0 0 24 24",paths:r,className:o,modifier:i,ariaHidden:l=!0,...a}=e,c=ht(o,i&&`${t}svg-icon--${i}`);return r?pt(Jt,{viewBox:n,prefix:t,...a,className:c,ariaHidden:l,children:r().map(((e,t)=>ft.cloneElement(e,{key:t})))}):null},en=Xt;const tn=[{tag:"path",att:{d:"M11.0036 14.2499h2v-6h-2v6zm1 1.5c-.6904 0-1.25.5596-1.25 1.25 0 .6903.5596 1.25 1.25 1.25.6903 0 1.25-.5597 1.25-1.25 0-.6904-.5597-1.25-1.25-1.25z"}},{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m1.1152 20.5341 10-19h1.7699l10 19-.8849 1.4658h-20l-.885-1.4658zm2.5413-.5342h16.6873l-8.3436-15.853L3.6565 20z"}}],nn=tn;function rn(e){return e.replace(/-([a-z])/g,((e,t)=>t.toUpperCase()))}function on(e){if(e)return e.map((e=>{return g(e.tag,(t=e.att,Object.entries(t).reduce(((e,[t,n])=>("style"===t&&"string"==typeof n?e.style=n.split(";").reduce(((e,t)=>{const[n,r]=t.split(":");return n&&r&&(e[rn(n.trim())]=r.trim()),e}),{}):e[rn(t)]=n,e)),{})),on(e.nds));var t}))}var ln=()=>on(nn);const an=["primary","emphasised","secondary","tertiary"],cn=Ie(((e,t)=>{const{href:n="",newWindow:r=!1,loadingSrText:o="Loading…",ssrIcon:i,iconOnly:l=!1,prefix:a="",htmlType:c="button",disabled:s=!1,className:u="",onClick:_,text:f="",type:d="secondary",expanding:p=!1,loading:h=!1,iconPosition:m="leading",fluid:v=!1,inverseTheme:y=!1,children:b,expandedOnTouchDevice:g=!1,size:k="medium",staticColour:E=!1,...C}=e,w=e=>{if(s||h||" "!==e.key)return;e.target.click()};let x=d||"secondary";l&&i&&(x=`icon-${x}`),y&&"danger"!==d&&"plain"!==d&&"image-overlay"!==d&&an.indexOf(d)>-1&&(x=`${x}-inverse`);const N=ht(`${a}btn__inner`),S="danger"===d?ln:i,$=S?pt(en,{className:`${a}btn__icon`,prefix:a,paths:S}):null,A=ht(`${a}btn`,h&&`${a}btn--loading`,"medium"!==k&&`${a}btn--${k}`,!l&&S&&m&&`${a}${m}-icon`,d&&`${a}btn--${x}`,v&&!l&&`${a}btn--fluid`,p&&`${a}btn--expanding`,p&&g&&`${a}btn--touch-device-expanded`,E&&`${a}btn--static-colour`,u),L=e=>{h||s?e.stopPropagation():_&&"function"==typeof _&&_(e)},T=pt("span",{className:N,children:[$,f&&pt("span",{className:`${a}btn__label`,children:f})||null,!h&&b||null,h&&pt("span",{className:`${a}btn__loader`,children:o})||null]});return n?pt("a",{ref:t,className:A,"aria-disabled":!!h||void 0,onClick:L,onKeyUp:w,href:s?void 0:n,target:r?"_blank":void 0,rel:r?"noreferrer":void 0,...C,children:T}):pt("button",{ref:t,className:A,disabled:s,type:c,onClick:L,...C,children:T})}));cn.displayName="Button";var sn=cn;const un=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m12 13.4142 4.9498 4.9497 1.4142-1.4142L13.4142 12l4.9498-4.9498-1.4142-1.4142L12 10.5857 7.0503 5.636 5.636 7.0502 10.5859 12l-4.9497 4.9497 1.4142 1.4142L12 13.4142z"}}],_n=un;var fn=()=>on(_n);const dn=[{tag:"path",att:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m3.999 11.9997 8 8.0011 1.4143-1.4141-5.5859-5.5866H20v-2H7.8273l5.5871-5.5868-1.4142-1.4143-8.0012 8.0007z"}}],pn=dn;var hn=()=>on(pn);const mn=e=>{const{title:t="",titleId:n="",prefix:r="",className:o="",closeBtnClick:i,ariaCloseTxt:l="Close",backBtnClick:a,ariaBackBtnTxt:c="Back",floating:s=!1,children:u,..._}=e,f=ht(`${r}modal-header__title-wrapper`,!a&&`${r}modal-header__title-wrapper--padded`);return pt("div",{className:ht(`${r}modal-header`,s&&`${r}modal-header--floating-header`,o),..._,children:[pt(sn,{prefix:r,type:"primary",inverseTheme:!0,staticColour:!0,size:"small",iconOnly:!0,ssrIcon:fn,onClick:i,className:`${r}modal-header__close`,"aria-label":l}),!s&&(t||u)&&pt("div",{className:f,children:[t&&pt("h2",{id:n,className:`${r}modal-header__title`,children:t}),u]}),a&&pt(sn,{prefix:r,type:"primary",inverseTheme:!0,staticColour:!0,size:"small",iconOnly:!0,ssrIcon:hn,onClick:a,className:`${r}modal-header__back-button`,"aria-label":c})]})};const vn=e=>{const{prefix:t="",children:n,className:r="",...o}=e;return pt("div",{...o,className:ht(`${t}modal-body`,r),children:n})};var yn=e=>{const{prefix:t="",label:n="Label",reqText:r,htmlFor:o,className:i,...l}=e;return pt("label",{htmlFor:o,className:i,...l,children:[n,r&&pt("em",{className:`${t}required`,children:[" ",r]})]})};const bn=V({});const gn=Ie(((e,t)=>{const{className:n,prefix:r="",id:o,label:i="",caption:l="",name:a="checkboxname",value:c,onChange:s,disabled:u=!1,describedById:_,required:f=!1,subtle:d=!1,indeterminate:p=!1,...h}=e,m=ht(d&&`${r}checkbox--subtle`,`${r}checkbox`,n),{shouldValidate:v,valid:y}=he(bn),b=t||ft.useRef(null);return ft.useEffect((()=>{const e=b;void 0!==p&&e.current&&(e.current.indeterminate=Boolean(p))}),[p]),pt("span",{className:m,children:[pt("input",{ref:b,type:"checkbox",value:c,name:a,id:o,disabled:u,onChange:s,"aria-describedby":_,required:f,"aria-invalid":v?!y:void 0,...h}),pt("span",{className:`${r}checkbox__symbol`}),i&&pt("span",{className:`${r}checkbox__label`,children:[pt(yn,{prefix:r,htmlFor:o,label:i}),Boolean(l)&&pt("span",{className:`${r}checkbox__caption`,children:pt(yn,{prefix:r,htmlFor:o,label:l})})]})]})}));gn.displayName="Checkbox";var kn=gn,En=n(8448),Cn=n.n(En);let wn="";const xn=()=>(""===wn&&(wn=document.getElementById("nav-script-main")?document.getElementById("nav-script-main").getAttribute("data-site-folder"):""),wn);const Nn=(e,t)=>{let n=e;try{const r=new Intl.DisplayNames([t||"en"],{type:"region"});n="R1"===e.toUpperCase()?"Country Zero":r.of(e.toUpperCase())||""}catch{}return n};const Sn=/\.ikea(dt)?\.(com|cn)/,$n=new RegExp("-(s?[0-9]{8})/?"),An=/\/[a-z]{2}\/[a-z]{2}\/?/,Ln=(e,t,n)=>{let r=e,o=t;if(Sn.test(window.location.host)&&e){const t=(e=>{const t=document.createElement("a");return t.href=e,t.pathname})(e);t&&!t.match(An)&&(o=""),r=`${window.location.origin}${t||""}`}return r+o+n},Tn=e=>{if(window.sendEvent)if("beacon"===e.transport_type)try{window.sendEvent(e)}catch(e){}else setTimeout((()=>{try{window.sendEvent(e)}catch(e){}}),0);else window.analyticsQueue=window.analyticsQueue||[],window.analyticsQueue.push(e)},Pn=function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0;const l={event_category:r,event_action:e(),event_label:t,transport_type:n||"",non_interaction:o};return i&&(l.custom=i),l},Rn=e=>{let{localeStrings:t,currentCountryCode:n,currentLangCode:r,visitorCountryCode:o,closeModal:i,rememberChoice:l,setRememberChoice:a}=e;const c=Nn(n,r),s=Nn(o,r),u={AE:"ar",AT:"de",AU:"en",BE:"nl",BH:"ar",CA:"en",CH:"de",CL:"es",CN:"zh",CY:"el",CZ:"cs",DE:"de",DK:"da",EG:"ar",ES:"es",FI:"fi",FR:"fr",GB:"en",HK:"zh",HR:"hr",HU:"hu",ID:"in",IE:"en",IL:"he",IN:"en",IT:"it",JO:"ar",JP:"ja",KR:"ko",KW:"ar",LT:"lt",MA:"ar",MX:"es",MY:"en",NL:"nl",NO:"no",OM:"ar",PH:"ph",PL:"pl",PT:"pt",QA:"en",RO:"ro",RS:"sr",RU:"ru",SA:"ar",SE:"sv",SG:"en",SI:"sl",SK:"sk",TH:"th",TW:"zh",UA:"uk",US:["en","es"],ZZ:"en"};return ft.createElement("div",{class:"hnf-market-picker"},ft.createElement("h2",null,t.HEADING),ft.createElement("div",{className:"hnf-market-picker__description"},ft.createElement("p",{dangerouslySetInnerHTML:{__html:t.DESCRIPTION_1.replace("{{country}}",`${c}`)}}),ft.createElement("p",{dangerouslySetInnerHTML:{__html:t.DESCRIPTION_2.replace("{{country}}",`${s}`)}})),ft.createElement(sn,{prefix:"hnf-",key:"cancel",text:c,type:"secondary",fluid:!0,onClick:()=>{Tn(Pn((()=>"click"),l?"no_remember":"no",null,"geo_popup")),i()}}),ft.createElement(sn,{prefix:"hnf-",className:"hnf-market-picker__confirm",key:"confirm",text:s,type:"primary",fluid:!0,onClick:()=>{Tn(Pn((()=>"click"),l?"yes_remember":"yes",null,"geo_popup"));const e=((e,t)=>(e=>{const t=window.location.pathname,n=window.location.search;let r;const o=t.match($n);return r=o?`p/-${o.filter((e=>e)).pop()}/`:t.substring(7),Ln(e,r,n)})(`${location.origin}/${e.toLowerCase()}/${t?`${t}/`:""}`))(o,(e=>{const t=u[o.toUpperCase()]||"";return Array.isArray(t)?t.includes(e)?e:t[0]:t||""})(r.toLowerCase()));null!=e&&(window.location.href=e)}}),ft.createElement("div",{class:"hnf-market-picker__checkbox-wrapper"},ft.createElement(kn,{prefix:"hnf-",id:"hnf-market-picker-remember-checkbox",label:t.REMEMBER_CHOICE,name:"hnf-market-picker-remember-checkbox",value:"1",onChange:e=>a(e.target.checked)})))},Fn=e=>{let{localeStrings:t,currentCountryCode:n,currentLangCode:r,visitorCountryCode:o}=e;const[i,l]=ae(!1),[a,c]=ae(!1),s=e=>{e&&(e.target.closest(".hnf-modal-wrapper__backdrop")?Tn(Pn((()=>"close"),"clicked outside",null,"geo_popup")):e.target.closest(".hnf-modal-header__close")&&Tn(Pn((()=>"close"),"clicked the x button",null,"geo_popup")));const t=document.domain.split(".");t.shift();const n=`.${t.join(".")}`;if(a){const e=new Date;e.setFullYear(e.getFullYear()+1),Cn().set(In,"true",n,location.pathname.substr(0,6),e.toUTCString())}else Cn().set(In,"true",n,location.pathname.substr(0,6));l(!1)};return se((()=>{l(!0),window.ikea?.pubsub.subscribe("NAVIGATION/CLOSE_MODALS",(()=>{s()}))}),[]),ft.createElement(Zt,{prefix:"hnf-",visible:i,handleCloseBtn:s,keepContentMounted:!1,className:"hnf-market-picker-modal"},ft.createElement(Qt,{fullSize:!0,header:ft.createElement(mn,{ariaCloseTxt:t.CLOSE_MODAL})},ft.createElement(vn,null,ft.createElement(Rn,{localeStrings:t,currentCountryCode:n,currentLangCode:r,visitorCountryCode:o,closeModal:s,rememberChoice:a,setRememberChoice:c}))))};var On=n(1828);const In="ikea_geo_sup";(()=>{const e=document.getElementById("nav-script-market-picker");if(!e)return;const t=JSON.parse(e.getAttribute("data-props")),n=xn(),[r,o]=n.toUpperCase().split("/"),i=Cn().get("ikea_geo");if("true"!==Cn().get(In)&&((e,t)=>e.toUpperCase().split(",").some((e=>t===e||"ZZ"===t)))(t.markets||"",i)&&i&&r!==i){const e=(0,On.createElement)("div","market-picker-wrapper");document.body.appendChild(e),z(g(Fn,{localeStrings:t.localeStrings,currentCountryCode:r,currentLangCode:o,visitorCountryCode:i}),e)}})()})()})();