1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,184762,e=>{"use strict";var t=e.i(187519),n=e.i(647163);function r({className:e,...r}){return(0,t.jsx)("textarea",{"data-slot":"textarea",className:(0,n.cn)("border-input dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-malimo-red/40 aria-invalid:border-destructive dark:aria-invalid:border-malimo-red disabled:bg-input/50 dark:disabled:bg-input/80 rounded-lg border bg-transparent px-2.5 py-2 text-base transition-colors focus-visible:ring-[3px] aria-invalid:ring-[3px] md:text-sm placeholder:text-muted-foreground min-h-16 w-full outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...r})}e.s(["Textarea",()=>r])},365903,(e,t,n)=>{"use strict";function r({widthInt:e,heightInt:t,blurWidth:n,blurHeight:r,blurDataURL:i,objectFit:a}){let s=n?40*n:e,o=r?40*r:t,l=s&&o?`viewBox='0 0 ${s} ${o}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${l}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${l?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${i}'/%3E%3C/svg%3E`}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},841511,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return a},imageConfigDefault:function(){return s}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=["default","imgix","cloudinary","akamai","custom"],s={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},470536,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getImgProps",{enumerable:!0,get:function(){return d}}),e.r(156296);let r=e.r(165172),i=e.r(365903),a=e.r(841511),s=["-moz-initial","fill","none","scale-down",void 0];function o(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function d({src:e,sizes:t,unoptimized:n=!1,priority:d=!1,preload:c=!1,loading:u,className:f,quality:m,width:p,height:h,fill:g=!1,style:b,overrideSrc:x,onLoad:y,onLoadingComplete:v,placeholder:w="empty",blurDataURL:k,fetchPriority:j,decoding:S="async",layout:_,objectFit:P,objectPosition:C,lazyBoundary:E,lazyRoot:N,...I},M){var O;let T,R,z,{imgConf:D,showAltText:A,blurComplete:$,defaultLoader:L}=M,U=D||a.imageConfigDefault;if("allSizes"in U)T=U;else{let e=[...U.deviceSizes,...U.imageSizes].sort((e,t)=>e-t),t=U.deviceSizes.sort((e,t)=>e-t),n=U.qualities?.sort((e,t)=>e-t);T={...U,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===L)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let F=I.loader||L;delete I.loader,delete I.srcSet;let B="__next_img_default"in F;if(B){if("custom"===T.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. 2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,
2configurable:!0})}else{let e=F;F=t=>{let{config:n,...r}=t;return e(r)}}if(_){"fill"===_&&(g=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[_];e&&(b={...b,...e});let n={responsive:"100vw",fill:"100vw"}[_];n&&!t&&(t=n)}let H="",q=l(p),G=l(h);if((O=e)&&"object"==typeof O&&(o(O)||void 0!==O.src)){let t=o(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(R=t.blurWidth,z=t.blurHeight,k=k||t.blurDataURL,H=t.src,!g)if(q||G){if(q&&!G){let e=q/t.width;G=Math.round(t.height*e)}else if(!q&&G){let e=G/t.height;q=Math.round(t.width*e)}}else q=t.width,G=t.height}let W=!d&&!c&&("lazy"===u||void 0===u);(!(e="string"==typeof e?e:H)||e.startsWith("data:")||e.startsWith("blob:"))&&(n=!0,W=!1),T.unoptimized&&(n=!0),B&&!T.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(n=!0);let V=l(m),X=Object.assign(g?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:P,objectPosition:C}:{},A?{}:{color:"transparent"},b),Q=$||"empty"===w?null:"blur"===w?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:q,heightInt:G,blurWidth:R,blurHeight:z,blurDataURL:k||"",objectFit:X.objectFit})}")`:`url("${w}")`,J=s.includes(X.objectFit)?"fill"===X.objectFit?"100% 100%":"cover":X.objectFit,K=Q?{backgroundSize:J,backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Q}:{},Y=function({config:e,src:t,unoptimized:n,width:i,quality:a,sizes:s,loader:o}){if(n){let e=(0,r.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//")&&e){let n=t.includes("?")?"&":"?";t=`${t}${n}dpl=${e}`}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:d}=function({deviceSizes:e,allSizes:t},n,r){if(r){let n=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=n.exec(r);)i.push(parseInt(e[2]));if(i.length){let n=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*n),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof n?{widths:e,kind:"w"}:{widths:[...new Set([n,2*n].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,s),c=l.length-1;return{sizes:s||"w"!==d?s:"100vw",srcSet:l.map((n,r)=>`${o({config:e,src:t,quality:a,width:n})} ${"w"===d?n:r+1}${d}`).join(", "),src:o({config:e,src:t,quality:a,width:l[c]})}}({config:T,src:e,unoptimized:n,width:q,quality:V,sizes:t,loader:F}),Z=W?"lazy":u;return{props:{...I,loading:Z,fetchPriority:j,width:q,height:G,decoding:S,className:f,style:{...X,...K},sizes:Y.sizes,srcSet:Y.srcSet,src:x||Y.src},meta:{unoptimized:n,preload:c||d,placeholder:w,fill:g}}}},537215,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o}});let r=e.r(786646),i="u"<typeof window,a=i?()=>{}:r.useLayoutEffect,s=i?()=>{}:r.useEffect;function o(e){let{headManager:t,reduceComponentsToState:n}=e;function o(){if(t&&t.mountedInstances){let e=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(e))}}return i&&(t?.mountedInstances?.add(e.children),o()),a(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),a(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},244814,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return h},defaultHead:function(){return u}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(481258),s=e.r(744066),o=e.r(187519),l=s._(e.r(786646)),d=a._(e.r(537215)),c=e.r(863588);function u(){return[(0,o.jsx)("meta",{charSet:"utf-8"},"charset"),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>
2"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}e.r(156296);let m=["name","httpEquiv","charSet","itemProp"];function p(e){let t,n,r,i;return e.reduce(f,[]).reverse().concat(u().reverse()).filter((t=new Set,n=new Set,r=new Set,i={},e=>{let a=!0,s=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){s=!0;let n=e.key.slice(e.key.indexOf("$")+1);t.has(n)?a=!1:t.add(n)}switch(e.type){case"title":case"base":n.has(e.type)?a=!1:n.add(e.type);break;case"meta":for(let t=0,n=m.length;t<n;t++){let n=m[t];if(e.props.hasOwnProperty(n))if("charSet"===n)r.has(n)?a=!1:r.add(n);else{let t=e.props[n],r=i[n]||new Set;("name"!==n||!s)&&r.has(t)?a=!1:(r.add(t),i[n]=r)}}}return a})).reverse().map((e,t)=>{let n=e.key||t;return l.default.cloneElement(e,{key:n})})}let h=function({children:e}){let t=(0,l.useContext)(c.HeadManagerContext);return(0,o.jsx)(d.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},157904,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let r=e.r(481258)._(e.r(786646)),i=e.r(841511),a=r.default.createContext(i.imageConfigDefault)},316796,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"RouterContext",{enumerable:!0,get:function(){return r}});let r=e.r(481258)._(e.r(786646)).default.createContext(null)},327016,(e,t,n)=>{"use strict";function r(e,t){let n=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-n)<Math.abs(e-n)?t:e,0):n}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"findClosestQuality",{enumerable:!0,get:function(){return r}})},721160,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return s}});let r=e.r(327016),i=e.r(165172);function a({config:e,src:t,width:n,quality:a}){if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. 3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let s=(0,r.findClosestQuality)(a,e),o=(0,i.getDeploymentId)();return`${e.path}?url=${encodeURIComponent(t)}&w=${n}&q=${s}${t.startsWith("/")&&o?`&dpl=${o}`:""}`}a.__next_img_default=!0;let s=a},410118,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Image",{enumerable:!0,get:function(){return v}});let r=e.r(481258),i=e.r(744066),a=e.r(187519),s=i._(e.r(786646)),o=r._(e.r(437144)),l=r._(e.r(244814)),d=e.r(470536),c=e.r(841511),u=e.r(157904);e.r(156296);let f=e.r(316796),m=r._(e.r(721160)),p=e.r(512917),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,n,r,i,a,s){let o=e?.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),n?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}r?.current&&r.current(e)}}))}function b(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let x=(0,s.forwardRef)(({src:e,srcSet:t,sizes:n,height:r,width:i,decoding:o,className:l,style:d,fetchPriority:c,placeholder:u,loading:f,unoptimized:m,fill:h,onLoadRef:x,onLoadingCompleteRef:y,setBlurComplete:v,setShowAltText:w,sizesInput:k,onLoad:j,onError:S,..._},P)=>{let C=(0,s.useCallback)(e=>{e&&(S&&(e.src=e.src),e.complete&&g(e,u,x,y,v,m,k))},[e,u,x,y,v,S,m,k]),E=(0,p.useMergedRef)(P,C);return(0,a.jsx)("img",{..._,...b(c),loading:f,width:i,height:r,decoding:o,"data-nimg":h?"fill":"1",className:l,style:d,sizes:n,srcSet:t,src:e,ref:E,onLoad:e=>{g(e.currentTarget,u,x,y,v,m,k)},onError:e=>{w(!0),"empty"!==u&&v(!0),S&&S(e)}})});function y({isAppRouter:e,imgAttributes:t}){let n={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...b(t.fetchPriority)};return e&&o.default.preload?(o.default.preload(t.src,n),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...n},"__nimg-"+t.src+t.srcSet+t.sizes)})}let v=(0,s.forwardRef)((e,t)=>{let n=(0,s.useContext)(f.RouterContext),r=(0,s.useContext)(u.ImageConfigContext),i=(0,s.useMemo)(()=>{let e=h||r||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>
3e-t),n=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n,qualities:i,localPatterns:"u"<typeof window?r?.localPatterns:e.localPatterns}},[r]),{onLoad:o,onLoadingComplete:l}=e,p=(0,s.useRef)(o);(0,s.useEffect)(()=>{p.current=o},[o]);let g=(0,s.useRef)(l);(0,s.useEffect)(()=>{g.current=l},[l]);let[b,v]=(0,s.useState)(!1),[w,k]=(0,s.useState)(!1),{props:j,meta:S}=(0,d.getImgProps)(e,{defaultLoader:m.default,imgConf:i,blurComplete:b,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x,{...j,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:v,setShowAltText:k,sizesInput:e.sizes,ref:t}),S.preload?(0,a.jsx)(y,{isAppRouter:!n,imgAttributes:j}):null]})});("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},873027,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return c},getImageProps:function(){return d}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let a=e.r(481258),s=e.r(470536),o=e.r(410118),l=a._(e.r(721160));function d(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let c=o.Image},940173,(e,t,n)=>{t.exports=e.r(873027)},64850,e=>{"use strict";let t=(0,e.i(198631).default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);e.s(["default",()=>t])},249202,e=>{"use strict";var t=e.i(64850);e.s(["FileText",()=>t.default])},770438,928639,e=>{"use strict";let t=(0,e.i(198631).default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["default",()=>t],928639),e.s(["Sun",()=>t],770438)},591033,e=>{"use strict";var t=e.i(187519),n=e.i(647163);function r({children:e,href:r="#page-content",className:i}){return(0,t.jsx)("a",{href:r,className:(0,n.cn)("sr-only focus:not-sr-only focus:absolute focus:left-4 focus:top-4 focus:z-[1000] focus:rounded-md focus:bg-background focus:px-4 focus:py-2 focus:text-sm focus:font-semibold focus:text-foreground focus:shadow-lg focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",i),children:e})}e.s(["SkipLink",()=>r])},366640,e=>{"use strict";let t=(0,e.i(198631).default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["default",()=>t])},113862,e=>{"use strict";var t=e.i(366640);e.s(["Clock",()=>t.default])},654704,901373,e=>{"use strict";let t=(0,e.i(198631).default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["default",()=>t],901373),e.s(["Menu",()=>t],654704)},805388,216983,e=>{"use strict";let t=(0,e.i(198631).default)("shopping-bag",[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]]);e.s(["default",()=>t],216983),e.s(["ShoppingBag",()=>t],805388)},852917,e=>{"use strict";var t=e.i(187519),n=e.i(127687),r=e.i(905427),i=e.i(647163);function a({...e}){return(0,t.jsx)(r.Dialog.Root,{"data-slot":"sheet",...e})}function s({...e}){return(0,t.jsx)(r.Dialog.Trigger,{"data-slot":"sheet-trigger",...e})}function o({...e}){return(0,t.jsx)(r.Dialog.Portal,{"data-slot":"sheet-portal",...e})}function l({className:e,...n}){return(0,t.jsx)(r.Dialog.Overlay,{"data-slot":"sheet-overlay",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...n})}function d({className:e,children:a,side:s="right",showCloseButton:d=!0,overlayClassName:c,...u}){return(0,t.jsxs)(o,{children:[(0,t.jsx)(l,{className:c}),(0,t.jsxs)(r.Dialog.Content,{"data-slot":"sheet-content",className:(0,i.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===s&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===s&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===s&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===s&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...u,children:[a,d&&(0,t.jsxs)(r.Dialog.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,t.jsx)(n.XIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function c({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,i.cn)("flex flex-col gap-1.5 p-4",e),...n})}function u({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"sheet-footer",className:(0,i.cn)("mt-auto flex flex-col gap-2 p-4",e),...n})}function f({className:e,...n}){return(0,t.jsx)(r.Dialog.Title,{"data-slot":"sheet-title",className:(0,i.cn)("text-foreground font-semibold",e),...n})}function m({className:e,...n}
3){return(0,t.jsx)(r.Dialog.Description,{"data-slot":"sheet-description",className:(0,i.cn)("text-muted-foreground text-sm",e),...n})}e.s(["Sheet",()=>a,"SheetContent",()=>d,"SheetDescription",()=>m,"SheetFooter",()=>u,"SheetHeader",()=>c,"SheetTitle",()=>f,"SheetTrigger",()=>s])},577632,477348,e=>{"use strict";var t=e.i(932200);async function n(e){return function(e){if(!e||"object"!=typeof e)throw Error("Invalid impersonation start response");let t=e.data&&"object"==typeof e.data?e.data:e,n=t.accessToken;if("string"!=typeof n||!n)throw Error("Invalid impersonation start response: missing accessToken");let r=t.refreshToken;return{accessToken:n,refreshToken:"string"==typeof r?r:void 0}}((await t.default.post("/auth/impersonate/start",{targetUserId:e})).data)}async function r(e){let n=e?.trim()??"",r=n.length>0?n.slice(0,200):"",i=r.length>0?{comment:r}:{};await t.default.post("/auth/impersonate/end",i,{headers:{"Content-Type":"application/json"}})}e.s(["IMPERSONATION_END_COMMENT_MAX_LENGTH",0,200,"postImpersonateEnd",()=>r,"postImpersonateStart",()=>n],477348);var i=e.i(223943),a=e.i(78076),s=e.i(338772),o=e.i(993226),l=e.i(596882);let d="/admin/customers/list/users";async function c(e,t,r){let d=o.useAuthStore.getState().accessToken;if(!d)throw Error("Not authenticated");let c=await n(e);(0,a.savePreImpersonationAccessToken)(d),(0,a.saveImpersonationReturnPath)(`/admin/customers/view/user/${e}`),(0,a.setImpersonationTokenHandoffPending)(!0),l.useProfileStore.getState().clear(),(0,i.clearUserScopedReactQueryCaches)(r),(0,s.syncAuthStateFromAccessToken)(c.accessToken),t.push("/dashboard")}async function u(e,t,n){await r(n);let o=(0,a.readImpersonationReturnPath)(),c=(0,a.readPreImpersonationAccessToken)();if(!c)throw Error("Missing original admin session");(0,a.setImpersonationTokenHandoffPending)(!0),l.useProfileStore.getState().clear(),(0,i.clearUserScopedReactQueryCaches)(t),(0,s.syncAuthStateFromAccessToken)(c),(0,a.clearImpersonationReturnPath)(),(0,a.clearPreImpersonationAccessToken)();let u=o&&(0,a.isAllowedImpersonationReturnPath)(o)?o:d;e.push(u)}async function f(e,t){let n=(0,a.readImpersonationReturnPath)(),o=(0,a.readPreImpersonationAccessToken)();if(!o)throw Error("Missing original admin session");(0,a.setImpersonationTokenHandoffPending)(!0),l.useProfileStore.getState().clear(),(0,i.clearUserScopedReactQueryCaches)(t),(0,s.syncAuthStateFromAccessToken)(o);try{await r(void 0)}catch{}(0,a.clearImpersonationReturnPath)(),(0,a.clearPreImpersonationAccessToken)();let c=n&&(0,a.isAllowedImpersonationReturnPath)(n)?n:d;e.push(c)}e.s(["endImpersonationSession",()=>u,"endImpersonationSessionAfterJwtExpiry",()=>f,"startCustomerImpersonationSession",()=>c],577632)},922785,e=>{"use strict";var t=e.i(187519),n=e.i(786646),r=e.i(437144),i=e.i(987208),a=e.i(393202),s=e.i(113862),o=e.i(361574),o=o,l=e.i(754219),d=e.i(167881),c=e.i(630374),u=e.i(184762),f=e.i(477348),m=e.i(207761),p=e.i(647163);function h({open:e,onOpenChange:r,onConfirm:i,isSubmitting:a}){let{t:s}
3=(0,m.useI18n)(),[o,l]=(0,n.useState)(""),h=(0,n.useId)(),g=f.IMPERSONATION_END_COMMENT_MAX_LENGTH;async function b(){let e=o.trim();await i(e.length>0?e:void 0)}let x=o.length;return(0,t.jsx)(c.Dialog,{open:e,onOpenChange:e=>{(!a||e)&&(e||l(""),r(e))},children:(0,t.jsxs)(c.DialogContent,{overlayClassName:"z-[600]",showClose:!a,onInteractOutside:e=>{a&&e.preventDefault()},onEscapeKeyDown:e=>{a&&e.preventDefault()},className:"z-[600] gap-4",children:[(0,t.jsxs)(c.DialogHeader,{children:[(0,t.jsx)(c.DialogTitle,{children:s("impersonationSession.endDialog.title")}),(0,t.jsx)(c.DialogDescription,{children:s("impersonationSession.endDialog.description",{max:String(g)})})]}),(0,t.jsxs)("div",{className:"mt-5 space-y-3",children:[(0,t.jsx)(u.Textarea,{id:"impersonation-end-comment",value:o,onChange:e=>l(e.target.value.slice(0,g)),placeholder:s("impersonationSession.endDialog.commentPlaceholder"),"aria-label":s("impersonationSession.endDialog.commentPlaceholder"),disabled:a,maxLength:g,rows:8,"aria-describedby":h,className:(0,p.cn)("resize-none overflow-y-auto overscroll-y-contain rounded-2xl px-4 py-3","min-h-44 max-h-48")}),(0,t.jsx)("p",{id:h,className:"text-xs text-muted-foreground",children:s("impersonationSession.endDialog.charCount",{current:x,max:g})})]}),(0,t.jsxs)(c.DialogFooter,{children:[(0,t.jsx)(d.Button,{type:"button",variant:"outline",disabled:a,onClick:()=>r(!1),children:s("impersonationSession.endDialog.cancel")}),(0,t.jsx)(d.Button,{type:"button",className:"impersonation-accent-button",disabled:a,onClick:()=>void b(),children:s(a?"impersonationSession.endDialog.confirming":"impersonationSession.endDialog.confirm")})]})]})})}var g=e.i(399578),b=e.i(577632),x=e.i(993226),y=e.i(596882);function v({className:e}){let{t:r}=(0,m.useI18n)(),c=(0,i.useRouter)(),u=(0,a.useQueryClient)(),f=(0,x.useAuthStore)(e=>e.accessToken),v=(0,x.useAuthStore)(e=>e.user?.email),w=(0,y.useProfileStore)(e=>e.me?.email),k=(0,y.useProfileStore)(e=>e.me?.isImpersonating),[j,S]=(0,n.useState)(!1),[_,P]=(0,n.useState)(!1),C=function(e){let[t,r]=(0,n.useState)(()=>Date.now()),i=e&&(0,g.isImpersonationAccessToken)(e)?(0,g.getJwtExpiryMs)(e):null,a=!!e&&(0,g.isImpersonationAccessToken)(e)&&null!=i;if((0,n.useEffect)(()=>{if(!a)return;let e=globalThis.setInterval(()=>{r(globalThis.Date.now())},1e3);return()=>globalThis.clearInterval(e)},[a]),!e||!(0,g.isImpersonationAccessToken)(e))return{status:"inactive"};if(null==i)return{status:"unknown"};let s=i-t;return{status:"active",label:function(e){if(e<=0)return"0:00";let t=Math.floor(e/60);return`${t}:${(e%60).toString().padStart(2,"0")}`}(Math.max(0,Math.floor(s/1e3))),expired:s<=0}}(f),E="active"===C.status?C:null,N=(0,n.useRef)(!1),I=(0,g.isImpersonationAccessToken)(f),M=I||!!k;if((0,n.useEffect)(()=>{I||(N.current=!1)},[I]),(0,n.useEffect)(()=>{I&&E?.expired&&(N.current||(N.current=!0,(async()=>{S(!0);try{await (0,b.endImpersonationSessionAfterJwtExpiry)(c,u),l.toast.success(r("impersonationSession.banner.endedToast"))}catch{N.current=!1,l.toast.error(r("impersonationSession.banner.error"))}finally{S(!1)}})()))},[I,E?.expired,c,u,r]),!M)return null;let O=w||v||r("impersonationSession.banner.fallbackName"),T=I&&!!(E&&!E.expired),R=I&&!!E?.expired;return(0,t.jsxs)("section",{className:(0,p.cn)("impersonation-toolbar-surface w-full shrink-0 px-4 py-3 sm:px-6 lg:px-8",e),"aria-label":r("impersonationSession.banner.regionLabel"),children:[(0,t.jsxs)("div",{className:"mx-auto flex w-full flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-start gap-3",children:[(0,t.jsx)(o.default,{className:"mt-0.5 size-5 shrink-0 text-orange-800 dark:text-malimo-orange","aria-hidden":!0}),(0,t.jsx)("p",{className:"text-sm font-semibold text-orange-950 dar
3k:text-orange-50",children:r("impersonationSession.banner.message",{name:O})})]}),T&&E?(0,t.jsxs)("div",{className:"flex w-fit max-w-full shrink-0 flex-col gap-0.5 rounded-lg border-2 border-malimo-orange/50 bg-background/90 px-3 py-2 text-orange-950 shadow-sm shadow-malimo-orange/20 sm:flex-row sm:items-center sm:gap-2 dark:border-malimo-orange/55 dark:bg-background/80 dark:text-orange-50",role:"timer","aria-label":r("impersonationSession.banner.countdownAria",{time:E.label}),children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(s.Clock,{className:"size-4 shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{className:"font-mono text-sm font-semibold tabular-nums tracking-tight",children:E.label})]}),(0,t.jsx)("span",{className:"text-xs font-medium text-muted-foreground sm:pl-0 sm:text-sm",children:r("impersonationSession.banner.countdownHint")})]}):null,R?(0,t.jsx)("div",{className:"flex w-fit items-center gap-2 rounded-lg border-2 border-destructive/50 bg-destructive/10 px-3 py-2 text-sm font-medium text-destructive",children:r("impersonationSession.banner.countdownExpired")}):null,!I&&k||I&&"unknown"===C.status?(0,t.jsx)("div",{className:"text-xs text-muted-foreground sm:text-sm",children:r("impersonationSession.banner.countdownUnknown")}):null]}),(0,t.jsx)(d.Button,{type:"button",variant:"secondary",size:"sm",className:"impersonation-accent-button h-9 shrink-0 self-start shadow-sm lg:self-auto",disabled:j,onClick:()=>P(!0),children:r("impersonationSession.banner.end")})]}),(0,t.jsx)(h,{open:_,onOpenChange:P,isSubmitting:j,onConfirm:async e=>{S(!0);try{await (0,b.endImpersonationSession)(c,u,e),l.toast.success(r("impersonationSession.banner.endedToast")),P(!1)}catch{l.toast.error(r("impersonationSession.banner.error"))}finally{S(!1)}}},String(_))]})}let w="impersonation-dashboard-frame",k="--impersonation-session-banner-height";function j({children:e}){let i=(0,n.useRef)(null);return(0,n.useLayoutEffect)(()=>{let e=i.current;if(!e)return;let t=()=>{document.documentElement.style.setProperty(k,`${Math.round(e.getBoundingClientRect().height)}px`)};t();let n=new ResizeObserver(t);return n.observe(e),window.addEventListener("resize",t),()=>{n.disconnect(),window.removeEventListener("resize",t),document.documentElement.style.removeProperty(k)}},[]),(0,t.jsxs)("div",{className:"w-full pt-(--impersonation-flow-inset-top) px-(--impersonation-flow-inset-inline) pb-(--impersonation-flow-inset-bottom)",children:["u"<typeof document?null:(0,r.createPortal)((0,t.jsx)("div",{className:"impersonation-flow-viewport-ring","aria-hidden":!0}),document.body),(0,t.jsxs)("div",{className:(0,p.cn)("flex w-full flex-col",w,"impersonation-dashboard-frame--flow-scroll-surface"),children:[(0,t.jsx)("div",{ref:i,className:(0,p.cn)("sticky top-0 shrink-0","z-[550]"),children:(0,t.jsx)(v,{className:"rounded-t-[1rem]"})}),e]})]})}function S(e){let n,r;return(n=(0,x.useAuthStore)(e=>e.accessToken),r=(0,y.useProfileStore)(e=>e.me?.isImpersonating),(0,g.isImpersonationAccessToken)(n)||r)?"dashboard"===e.mode?(0,t.jsx)("div",{className:"flex min-h-0 min-w-0 flex-1 px-1.5 pb-1.5 pt-1.5 sm:px-2 sm:pb-2",children:(0,t.jsxs)("div",{className:(0,p.cn)("flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden",w),children:[(0,t.jsx)(v,{className:"rounded-t-[1rem]"}),(0,t.jsx)("div",{className:"flex min-h-0 min-w-0 flex-1 flex-row overflow-hidden",children:e.belowBanner})]})}):(0,t.jsx)(j,{children:e.children}):"dashboard"===e.mode?e.belowBanner:e.children}e.s(["ImpersonationChrome",()=>S],922785)},393539,135382,193397,e=>{"use strict";var t=e.i(187519),n=e.i(786646),r=e.i(242092);let i=(0,e.i(198631).default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["default",()=>i],135382);var a=e.i(770438),s=e.i(647163);let o="inline-flex size-11 shrink-0 cursor-pointer items-center justify-center rounded-full border border-transparent bg-transparent text-foreground transition-colors hover:bg-accent hover:text-accent-foreground disabled:pointer-events-none disabled:opacity-50";function l({className:e}
3){let[l,d]=(0,n.useState)(!1),{setTheme:c,resolvedTheme:u}=(0,r.useTheme)(),f="dark"===u;return((0,n.useEffect)(()=>{d(!0)},[]),l&&void 0!==u)?(0,t.jsx)("button",{type:"button",className:(0,s.cn)(o,e),onClick:()=>c(f?"light":"dark"),"aria-label":f?"Switch to light mode":"Switch to dark mode",children:f?(0,t.jsx)(a.Sun,{className:"size-4 transition-transform","aria-hidden":"true"}):(0,t.jsx)(i,{className:"size-4 transition-transform","aria-hidden":"true"})}):(0,t.jsx)("button",{type:"button",className:(0,s.cn)(o,e),"aria-label":"Theme toggle",children:(0,t.jsx)(a.Sun,{className:"size-4","aria-hidden":"true"})})}e.s(["ThemeToggle",()=>l],393539),e.i(628165);var d=e.i(621370),c=e.i(987208),u=e.i(207761),f=e.i(486628);let m=[{key:"hjem",href:"https://malimo.no/"},{key:"idebank",href:"https://idebank.malimo.no/"},{key:"gratis",href:"/shop/categories/ressursbibliotek"},{key:"kompetansemal",href:"/kompetansemal"},{key:"omOss",href:"/about-us"},{key:"hjelp",href:"https://malimo.helpscoutdocs.com/"}];function p(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function h({className:e,orientation:n="horizontal",onNavigate:r,ariaLabel:i="Main navigation"}){let{t:a}=(0,u.useI18n)(),o=(0,c.usePathname)(),l="vertical"===n;return(0,t.jsx)("nav",{"aria-label":i,className:(0,s.cn)("flex items-center",l?"flex-col items-stretch gap-1":"flex-row gap-0",e),children:m.map(e=>{let n=e.href.startsWith("http"),i=n?"":new URL(e.href,"http://x").pathname,c=function(e,t,n,r){if("hjem"===t)return"/"===e;if(n||!r)return!1;let i=p(e),a=p(r);return i===a||i.startsWith(`${a}/`)}(o,e.key,n,i);return(0,t.jsx)(d.default,{href:e.href,onClick:r,"aria-current":c?"page":void 0,className:(0,s.cn)("text-base font-normal transition-[color,background-color] whitespace-nowrap rounded-md cursor-pointer",f.FOCUS_RING_COMPACT_CLASS,l?"block min-h-11 px-3 py-2.5 hover:bg-accent":"inline-flex min-h-11 items-center px-1 py-2 xl:px-1 min-[1351px]:px-1.5 2xl:px-2",c&&l?"bg-malimo-blue-bg text-white hover:bg-malimo-blue-bg/90 hover:text-white":c?"text-primary font-medium":"text-foreground hover:text-primary"),children:a(`header.nav.${e.key}`)},e.key)})})}e.s(["NavLinks",()=>h],193397)},328940,179619,538600,e=>{"use strict";var t=e.i(198631);let n=(0,t.default)("facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);e.s(["default",()=>n],328940);let r=(0,t.default)("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);e.s(["default",()=>r],179619);let i=(0,t.default)("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);e.s(["default",()=>i],538600)}]);
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.