PageSourceSearch

https://www.foross.no/_next/static/chunks/39xszyblcragg.js

js foross.no collected 2026-09-24 20:15:25 UTC 78,432 bytes, 11 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,32470,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({html:e,height:t=null,width:r=null,children:o,dataNtpc:s=""}){return(0,i.useEffect)(()=>{s&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${s}`}})},[s]),(0,n.jsxs)(n.Fragment,{children:[o,e?(0,n.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=r?`${r}px`:"auto"},"data-ntpc":s,dangerouslySetInnerHTML:{__html:e}}):null]})};let n=e.r(246129),i=e.r(761980)},246991,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return s},requestIdleCallback:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},s="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},866987,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ESCAPE_REGEX:function(){return s},htmlEscapeAttributeString:function(){return u},htmlEscapeJsonString:function(){return c}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},s=/[&><\u2028\u2029]/g,a={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},l=/[&"'<>]/g;function c(e){return e.replace(s,e=>o[e])}function u(e){return e.replace(l,e=>a[e])}},178644,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return b},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return g}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(406366),s=e.r(165562),a=e.r(246129),l=o._(e.r(579503)),c=s._(e.r(761980)),u=e.r(680401),d=e.r(203089),f=e.r(246991),p=e.r(866987),m=new Map,h=new Set,x=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:o,children:s="",strategy:a="afterInteractive",onError:c,stylesheets:u}=e,f=r||t;if(f&&h.has(f))return;if(m.has(t)){h.add(f),m.get(t).then(n,c);return}let p=()=>{i&&i(),h.add(f)},x=document.createElement("script"),v=new Promise((e,t)=>{x.addEventListener("load",function(t){e(),n&&n.call(this,t),p()}),x.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});o?(x.innerHTML=o.__html||"",p()):s?(x.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",p()):t&&(x.src=t,m.set(t,v)),(0,d.setAttributesFromProps)(x,e),"worker"===a&&x.setAttribute("type","text/partytown"),x.setAttribute("data-nscript",a),u&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(x)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>x(e))}):x(e)}function g(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");h.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:o="afterInteractive",onError:s,stylesheets:d,...m}=e,{updateScripts:v,scripts:g,getIsSsr:y,appDir:b,nonce:w}=(0,c.useContext)(u.HeadManagerContext);w=m.nonce||w;let j=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;j.current||(i&&e&&h.has(e)&&i(),j.current=!0)},[i,t,r]);let k=(0,c.useRef)(!1);if((0,c.useEffect)(()=>
1{if(!k.current){if("afterInteractive"===o)x(e);else"lazyOnload"===o&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>x(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>x(e))}));k.current=!0}},[e,o]),("beforeInteractive"===o||"worker"===o)&&(v?(g[o]=(g[o]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:s,...m,nonce:w}]),v(g)):y&&y()?h.add(t||r):y&&!y()&&x({...e,nonce:w})),b){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===o)if(!r)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([0,{...m,id:t}]))})`}});else return l.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:w,crossOrigin:m.crossOrigin}:{as:"script",nonce:w,crossOrigin:m.crossOrigin}),(0,a.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([r,{...m,id:t}]))})`}});"afterInteractive"===o&&r&&l.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:w,crossOrigin:m.crossOrigin}:{as:"script",nonce:w,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let b=y;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},240697,(e,t,r)=>{t.exports=e.r(178644)},987612,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGTMEvent=void 0,r.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:r,dataLayerName:n="dataLayer",auth:l,preview:c,dataLayer:u,nonce:d}=e;a=n;let f=new URL(r||"https://www.googletagmanager.com/gtm.js");return t&&f.searchParams.set("id",t),"dataLayer"!==n&&f.searchParams.set("l",n),l&&f.searchParams.set("gtm_auth",l),c&&(f.searchParams.set("gtm_preview",c),f.searchParams.set("gtm_cookies_win","x")),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:`
2      (function(w,l){
3        w[l]=w[l]||[];
4        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
5        ${u?`w[l].push(${JSON.stringify(u)})`:""}
6      })(window,'${n}');`},nonce:d}),(0,i.jsx)(s.default,{id:"_next-gtm","data-ntpc":"GTM",src:f.href,nonce:d})]})};let i=e.r(246129),o=e.r(761980),s=n(e.r(240697)),a="dataLayer";r.sendGTMEvent=(e,t)=>{let r=t||a;window[r]=window[r]||[],window[r].push(e)}},72102,(e,t,r)=>{"use strict";let n;var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=function(e){let{gaId:t,debugMode:r,dataLayerName:i="dataLayer",nonce:l}=e;return void 0===n&&(n=i),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:`
7          window['${i}'] = window['${i}'] || [];
8          function gtag(){window['${i}'].push(arguments);}
9          gtag('js', new Date());
10
11          gtag('config', '${t}' ${r?",{ 'debug_mode': true }":""});`},nonce:l}),(0,o.jsx)(a.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:l})]})},r.sendGAEvent=function(){void 0===n?console.warn("@next/third-parties: GA has not been initialized"):window[n]?window[n].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${n} does not exist`)};let o=e.r(246129),s=e.r(761980),a=i(e.r(240697))},145530,e=>{"use strict";var t=e.i(299081),r=e.i(761980),n=e.i(634417);function i(){return"u">typeof window}function o(){return"production"}function s(){return"development"===((i()?window.vam:o())||"production")}function a(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function l(e){return(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,r.useEffect)(()=>{!function(e={debug:!0}){var t;if(!i())return;!function(e="auto"){if("auto"===e){window.vam=o();return}window.vam=e}(e.mode),window.va||(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)}),e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend));let r=e.scriptSrc?e.scriptSrc:s()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?`${e.basePath}
11/insights/script.js`:"/_vercel/insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return;let n=document.createElement("script");n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/analytics"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.6.1",e.disableAutoTrack&&(n.dataset.disableAutoTrack="1"),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/insights`),e.dsn&&(n.dataset.dsn=e.dsn),n.onerror=()=>{let e=s()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${r}. ${e}`)},s()&&!1===e.debug&&(n.dataset.debug="false"),document.head.appendChild(n)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,r.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var r;null==(r=window.va)||r.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}function c(e){let i,o,s,{route:c,path:u}=(i=(0,n.useParams)(),o=(0,n.useSearchParams)(),s=(0,n.usePathname)(),i?{route:function(e,t){if(!e||!t)return e;let r=e;try{let e=Object.entries(t);for(let[t,n]of e)if(!Array.isArray(n)){let e=a(n);e.test(r)&&(r=r.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=a(n.join("/"));e.test(r)&&(r=r.replace(e,`/[...${t}]`))}return r}catch(t){return e}}(s,Object.keys(i).length?i:Object.fromEntries(o.entries())),path:s}:{route:null,path:s});return r.default.createElement(l,{path:u,route:c,...e,basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}(),framework:"next"})}e.s(["Analytics",0,function(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(c,{...e}))}])},426534,e=>{"use strict";var t=e.i(246129),r=e.i(761980);let n=(0,r.createContext)({darkMode:!1,toggleDarkMode:()=>{}});e.s(["default",0,function({children:e}){let{darkMode:i}=(0,r.useContext)(n);return(0,t.jsx)("div",{className:`${i?"dark":""} [overflow-x:clip]`,children:e})}],426534)},379405,e=>{"use strict";var t=e.i(246129),r=e.i(621274),n=e.i(761980);e.s(["default",0,function(){let[e,i]=(0,n.useState)(null),[o,s]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{setTimeout(()=>{s(!0)},1e3)},[]),(0,n.useLayoutEffect)(()=>{let e;i(null!==(e=localStorage.getItem("cookie_consent"))&&"undefined"!==e?JSON.parse(e):null)},[i]),(0,n.useLayoutEffect)(()=>{null===e||(window.gtag("consent","update",{analytics_storage:e?"granted":"denied"}),localStorage.setItem("cookie_consent",JSON.stringify(e)))},[e]),(0,t.jsx)(t.Fragment,{children:o&&null===e&&(0,t.jsxs)("div",{className:"fixed bottom-0 left-0 right-0 z-[10000] flex flex-col sm:flex-row items-start sm:items-center justify-between gap-6 sm:gap-8 w-full px-6 lg:px-10 py-6 sm:py-8 max-w-full shadow-lg",style:{background:"var(--paper)",borderTop:"2px solid var(--indigo)"},children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3 flex-1",children:[(0,t.jsx)("p",{className:"font-ep-mono text-[11px] uppercase tracking-[0.16em] font-bold",style:{color:"var(--indigo)"},children:"Informasjonskapsler"}),(0,t.jsxs)("p",{className:"font-source-serif text-[16px] leading-[1.55]",style:{color:"var(--ink-2)"},children:["Vi bruker informasjonskapsler på nettsiden vår. Les mer om dette"," ",(0,t.jsx)(r.default,{target:"_blank",href:"/info/cookies",className:"underline hover:opacity-75 transition-opacity",style:{color:"var(--indigo)"},children:"her"}),"."]})]}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 w-full sm:w-auto",children:[(0,t.jsx)("button",{onClick:()=>i(!1),className:"font-ep-sans font-semibold text-[13px] uppercase tracking-widest px-6 py-3.5 transition-opacity hover:opacity-70 border order-2 sm:order-1",style:{borderRadius:0,borderColor:"var(--line-2)",color:"var(--ink-2)",background:"transparent"},children:"Avslå"}),(0,t.jsx)("button",{onClick:()=>i(!0),className:"font-ep-sans font-semibold text-[13px] uppercase tracking-widest px-6 py-3.5 transition-opacity hover:opacity-90 order-1 
11sm:order-2",style:{borderRadius:0,background:"var(--indigo)",color:"var(--paper)"},children:"Godta"})]})]})})}],379405)},866624,e=>{"use strict";var t=e.i(634417),r=e.i(761980);e.s(["default",0,function(){let e=(0,t.usePathname)();return(0,r.useEffect)(()=>{window.scrollTo(0,0)},[e]),null}])},704824,e=>{"use strict";let t,r;var n,i,o=e.i(246129),s=e.i(397751),a=e.i(222849),l=e.i(621274),c=e.i(761980),u=e.i(830550),d=e.i(791721),f=e.i(669809),p=e.i(579503),m=Object.defineProperty,h=(e,t)=>m(e,"name",{value:t,configurable:!0});function x(e,t=[]){let r=[];function n(t,n){let i=c.createContext(n);i.displayName=t+"Context";let s=r.length;r=[...r,n];let a=h(t=>{let{scope:r,children:n,...a}=t,l=r?.[e]?.[s]||i,u=c.useMemo(()=>a,Object.values(a));return(0,o.jsx)(l.Provider,{value:u,children:n})},"Provider");function l(r,o,a={}){let{optional:u=!1}=a,d=o?.[e]?.[s]||i,f=c.useContext(d);if(f)return f;if(void 0!==n)return n;if(!u)throw Error(`\`${r}\` must be used within \`${t}\``)}return a.displayName=t+"Provider",h(l,"useContext"),[a,l]}h(n,"createContext");let i=h(()=>{let t=r.map(e=>c.createContext(e));return h(function(r){let n=r?.[e]||t;return c.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])},"useScope")},"createScope");return i.scopeName=e,[n,v(i,...t)]}function v(...e){let t=e[0];if(1===e.length)return t;let r=h(()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return h(function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}h(function(e,t){let r=c.createContext(t);r.displayName=e+"Context";let n=h(e=>{let{children:t,...n}=e,i=c.useMemo(()=>n,Object.values(n));return(0,o.jsx)(r.Provider,{value:i,children:t})},"Provider");function i(n,o={}){let{optional:s=!1}=o,a=c.useContext(r);if(a)return a;if(void 0!==t)return t;if(!s)throw Error(`\`${n}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",h(i,"useContext"),[n,i]},"createContext"),h(x,"createContextScope"),h(v,"composeContextScopes");var g=Object.defineProperty,y=(e,t)=>g(e,"name",{value:t,configurable:!0}),b=!!("u">typeof window&&window.document&&window.document.createElement);function w(e,t,{checkForDefaultPrevented:r=!0}={}){return y(function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function j(e){if(!b)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function k(e){return"IFRAME"===e.tagName}y(w,"composeEventHandlers"),y(function(e){if(!b)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),y(j,"getOwnerDocument"),y(function e(t,r=!1){let{activeElement:n}=j(t);if(!n?.nodeName)return null;if(k(n)&&n.contentDocument)return e(n.contentDocument.body,r);if(r){let e=n.getAttribute("aria-activedescendant");if(e){let t=j(n).getElementById(e);if(t)return t}}return n},"getActiveElement"),y(k,"isFrame");var N=Object.defineProperty,E=(e,t)=>N(e,"name",{value:t,configurable:!0});function C(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function S(...e){return t=>{let r=!1,n=e.map(e=>{let n=C(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():C(e[t],null)}}}}function P(...e){return c.useCallback(S(...e),e)}E(C,"setRef"),E(S,"composeRefs"),E(P,"useComposedRefs");var R=Object.defineProperty,T=(e,t)=>R(e,"name",{value:t,configurable:!0});function O(e){let t=c.forwardRef((t,r)=>{let{children:n,...i}=t,o=null,s=!1,a=[];F(n)&&"function"==typeof W&&(n=W(n._payload)),c.Children.forEach(n,e=>{if(L(e)){s=!0;let t="child"in e.props?e.props.child:e.props.children;F(t)&&"function"==typeof W&&(t=W(t._payload)),o=_(e,t),a.push(o?.props?.children)}else a.push(e)}),o?o=c.cloneElement(o,void 0,a):!s&&1===c.Children.count(n)&&c.isValidElement(n)&&(o=n);let l=o?A(o):void 0,u=P(r,l);if(!o){if(n||0===n)throw Error(s?U(e):z(e));return n}let d=I(i,o.props??{});return o.type!==c.Fragment&&(d.ref=r?u:l),c.cloneElement(o,d)});return t.displayName=`${e}.Slot`,t}T(O,"createSlot");var M=Symbol.for("radix.slottable");T(function(e){let t=T(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=M,t},"createSlottable");var _=T((e,t)=>
11{if("child"in e.props){let t=e.props.child;return c.isValidElement(t)?c.cloneElement(t,void 0,e.props.children(t.props.children)):null}return c.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function I(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}function A(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function L(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===M}T(I,"mergeProps"),T(A,"getElementRef"),T(L,"isSlottable");var D=Symbol.for("react.lazy");function F(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===D&&"_payload"in e&&$(e._payload)}function $(e){return"object"==typeof e&&null!==e&&"then"in e}T(F,"isLazyComponent"),T($,"isPromiseLike");var z=T(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),U=T(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),W=c[" use ".trim().toString()],G=Object.defineProperty,H=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=O(`Primitive.${t}`),n=c.forwardRef((e,n)=>{let{asChild:i,...s}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(i?r:t,{...s,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function V(e,t){e&&p.flushSync(()=>e.dispatchEvent(t))}G(V,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var B=globalThis?.document?c.useLayoutEffect:()=>{},K=Object.defineProperty,q=c[" useEffectEvent ".trim().toString()],J=c[" useInsertionEffect ".trim().toString()];function Y(e){if("function"==typeof q)return q(e);let t=c.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof J?J(()=>{t.current=e}):B(()=>{t.current=e}),c.useMemo(()=>(...e)=>t.current?.(...e),[])}K(Y,"name",{value:"useEffectEvent",configurable:!0});var X=Object.defineProperty,Z=(e,t)=>X(e,"name",{value:t,configurable:!0}),Q=c[" useInsertionEffect ".trim().toString()]||B;function ee({prop:e,defaultProp:t,onChange:r=Z(()=>{},"onChange"),caller:n}){let[i,o,s]=et({defaultProp:t,onChange:r}),a=void 0!==e,l=a?e:i;return[l,c.useCallback(t=>{if(a){let r=er(t)?t(e):t;r!==e&&s.current?.(r)}else o(t)},[a,e,o,s])]}function et({defaultProp:e,onChange:t}){let[r,n]=c.useState(e),i=c.useRef(r),o=c.useRef(t);return Q(()=>{o.current=t},[t]),c.useEffect(()=>{i.current!==r&&(o.current?.(r),i.current=r)},[r,i]),[r,n,o]}function er(e){return"function"==typeof e}Z(ee,"useControllableState"),Z(et,"useUncontrolledState"),Z(er,"isFunction");var en=Symbol("RADIX:SYNC_STATE");Z(function(e,t,r,n){let{prop:i,defaultProp:o,onChange:s,caller:a}=t,l=void 0!==i,u=Y(s),d=[{...r,state:o}];n&&d.push(n);let[f,p]=c.useReducer((t,r)=>{if(r.type===en)return{...t,state:r.state};let n=e(t,r);return l&&!Object.is(n.state,t.state)&&u(n.state),n},...d),m=f.state,h=c.useRef(m);c.useEffect(()=>{h.current!==m&&(h.current=m,l||u(m))},[m,h,l]);let x=c.useMemo(()=>void 0!==i?{...f,state:i}:f,[f,i]);return c.useEffect(()=>{l&&!Object.is(i,f.state)&&p({type:en,state:i})},[i,f.state,l]),[x,p]},"useControllableStateReducer");var ei=Object.defineProperty,eo=c.createContext(void 0);function es(e){let t=c.useContext(eo);return e||t||"ltr"}
11ei(es,"name",{value:"useDirection",configurable:!0});var ea=Object.defineProperty,el=(e,t)=>ea(e,"name",{value:t,configurable:!0});function ec(e,t){return c.useReducer((e,r)=>t[e][r]??e,e)}el(ec,"useStateMachine");var eu=el(e=>{let{present:t,children:r}=e,n=ed(t),i="function"==typeof r?r({present:n.isPresent}):c.Children.only(r),o=ep(n.ref,eh(i));return"function"==typeof r||n.isPresent?c.cloneElement(i,{ref:o}):null},"Presence");function ed(e){let[t,r]=c.useState(),n=c.useRef(null),i=c.useRef(e),o=c.useRef("none"),s=c.useRef(void 0),[a,l]=ec(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{"mounted"===a?(o.current=s.current??em(n.current),s.current=void 0):o.current="none"},[a]),B(()=>{let t=n.current,r=i.current;if(r!==e){let n=o.current,a=em(t);e?(s.current=a,l("MOUNT")):"none"===a||t?.display==="none"?l("UNMOUNT"):r&&n!==a?l("ANIMATION_OUT"):l("UNMOUNT"),i.current=e}},[e,l]),B(()=>{if(t){let e,r=t.ownerDocument.defaultView??window,s=el(o=>{let s=em(n.current).includes(CSS.escape(o.animationName));if(o.target===t&&s&&(l("ANIMATION_END"),!i.current)){let n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},"handleAnimationEnd"),a=el(e=>{e.target===t&&(o.current=em(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",a),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",a),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(e=>{if(e){let t=getComputedStyle(e);n.current=t,s.current=em(t)}else n.current=null;r(e)},[])}}function ef(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function ep(...e){let t=c.useRef(e);return t.current=e,c.useCallback(e=>{let r=t.current,n=!1,i=r.map(t=>{let r=ef(t,e);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<i.length;e++){let t=i[e];"function"==typeof t?t():ef(r[e],null)}}},[])}function em(e){return e?.animationName||"none"}function eh(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}el(ed,"usePresence"),el(ef,"setRef"),el(ep,"useStableComposedRefs"),el(em,"getAnimationName"),el(eh,"getElementRef");var ex=Object.defineProperty,ev=c[" useId ".trim().toString()]||(()=>void 0),eg=0;function ey(e){let[t,r]=c.useState(ev());return B(()=>{e||r(e=>e??String(eg++))},[e]),e||(t?`radix-${t}`:"")}ex(ey,"name",{value:"useId",configurable:!0});var eb=Object.defineProperty,ew=(e,t)=>eb(e,"name",{value:t,configurable:!0});function ej(e){let t=e+"CollectionProvider",[r,n]=x(t),[i,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=ew(e=>{let{scope:t,children:r}=e,n=c.useRef(null),s=c.useRef(new Map).current;return(0,o.jsx)(i,{scope:t,itemMap:s,collectionRef:n,children:r})},"CollectionProvider");a.displayName=t;let l=e+"CollectionSlot",u=O(l),d=c.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=P(t,s(l,r).collectionRef);return(0,o.jsx)(u,{ref:i,children:n})});d.displayName=l;let f=e+"CollectionItemSlot",p="data-radix-collection-item",m=O(f),h=c.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=c.useRef(null),l=P(t,a),u=s(f,r);return c.useEffect(()=>(u.itemMap.set(a,{ref:a,...i}),()=>void u.itemMap.delete(a))),(0,o.jsx)(m,{...{[p]:""},ref:l,children:n})});function v(t){let r=s(e+"CollectionConsumer",t);return c.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])}return h.displayName=f,ew(v,"useCollection"),[{Provider:a,Slot:d,ItemSlot:h},v,n]}ew(ej,"createCollection");var ek=new WeakMap,eN=class e extends Map{static{ew(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],ek.set(this,!0)}set(e,t){return ek.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),o=this.#e.length,s=eS(e),a=s>=0?s:o+s,l=a<0||a>=o?-1:a;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,r),this;let c=this.size+ +!i;s<0&&a++;let u=[...this.#e],d=!1;for(let e=a;
11e<c;e++)if(a===e){let o=u[e];u[e]===t&&(o=u[e+1]),i&&this.delete(t),n=this.get(o),this.set(t,r)}else{d||u[e-1]!==t||(d=!0);let r=u[d?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=eE(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=eE(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return eE(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}};function eE(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=eC(e,t);return -1===r?void 0:e[r]}function eC(e,t){let r=e.length,n=eS(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}function eS(e){return e!=e||0===e?0:Math.trunc(e)}function eP(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n of r)if(!Object.prototype.hasOwnProperty.call(t,n)||e[n]!==t[n])return!1;return!0}function eR(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function eT(e,t){return e[1].element&&t[1].element?eR(e[1].element,t[1].element)?-1:1:0}function eO(e){return new MutationObserver(t=>{for(let r of t)if("childList"===r.type)return void e()})}function eM(e){let t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...e)=>t.current?.(...e),[])}ew(eE,"at"),ew(eC,"toSafeIndex"),ew(eS,"toSafeInteger"),ew(function(e){let t=e+"CollectionProvider",[r,n]=x(t),[i,s]=r(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new eN,setItemMap:ew(()=>void 0,"setItemMap")}),a=ew(({state:e,...t})=>e?(0,o.jsx)(u,{...t,state:e}):(0,o.jsx)(l,{...t}),"CollectionProvider");a.displayName=t;let l=ew(e=>{let t=g();return(0,o.jsx)(u,{...e,state:t})},"CollectionInit");l.displayName=t+"Init";let u=ew(e=>{let{scope:t,children:r,state:n}=e,s=c.useRef(null),[a,l]=c.useState(null),u=P(s,l),[d,f]=n;return c.useEffect(()=>{if(!a)return;let e=eO(()=>{});return e.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[a]),(0,o.jsx)(i,{scope:t,itemMap:d,setItemMap:f,collectionRef:u,collectionRefObject:s,collectionElement:a,children:r})},"CollectionProviderImpl");u.displayName=t+"Impl";let d=e+"CollectionSlot",f=O(d),p=c.forwardRef((e,t)=>
11{let{scope:r,children:n}=e,i=P(t,s(d,r).collectionRef);return(0,o.jsx)(f,{ref:i,children:n})});p.displayName=d;let m=e+"CollectionItemSlot",h=O(m),v=c.forwardRef((e,t)=>{let{scope:r,children:n,...i}=e,a=c.useRef(null),[l,u]=c.useState(null),d=P(t,a,u),{setItemMap:f}=s(m,r),p=c.useRef(i);eP(p.current,i)||(p.current=i);let x=p.current;return c.useEffect(()=>(f(e=>l?e.has(l)?e.set(l,{...x,element:l}).toSorted(eT):(e.set(l,{...x,element:l}),e.toSorted(eT)):e),()=>{f(e=>l&&e.has(l)?(e.delete(l),new eN(e)):e)}),[l,x,f]),(0,o.jsx)(h,{"data-radix-collection-item":"",ref:d,children:n})});function g(){return c.useState(new eN)}function y(t){let{itemMap:r}=s(e+"CollectionConsumer",t);return r}return v.displayName=m,ew(g,"useInitCollection"),ew(y,"useCollection"),[{Provider:a,Slot:p,ItemSlot:v},{createCollectionScope:n,useCollection:y,useInitCollection:g}]},"createCollection"),ew(eP,"shallowEqual"),ew(eR,"isElementPreceding"),ew(eT,"sortByDocumentPosition"),ew(eO,"getChildListObserver"),(0,Object.defineProperty)(eM,"name",{value:"useCallbackRef",configurable:!0});var e_=Object.defineProperty,eI=(e,t)=>e_(e,"name",{value:t,configurable:!0}),eA="dismissableLayer.update",eL=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),eD=c.forwardRef(eI(function(e,t){let{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:n=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:u,onDismiss:d,...f}=e,p=c.useContext(eL),[m,h]=c.useState(null),x=m?.ownerDocument??globalThis?.document,[,v]=c.useState({}),g=P(t,h),y=Array.from(p.layers),[b]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),j=b?y.indexOf(b):-1,k=m?y.indexOf(m):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,E=k>=j,C=c.useRef(!1),S=e$(e=>{a?.(e),u?.(e),e.defaultPrevented||d?.()},{ownerDocument:x,deferPointerDownOutside:n,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...p.branches].some(t=>t.contains(e));return E&&!t},[p.branches,E])}),R=ez(e=>{if(n&&C.current)return;let t=e.target;![...p.branches].some(e=>e.contains(t))&&(l?.(e),u?.(e),e.defaultPrevented||d?.())},x),T=!!m&&k===y.length-1,O=eM(e=>{"Escape"===e.key&&(s?.(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))});return c.useEffect(()=>{if(T)return x.addEventListener("keydown",O,{capture:!0}),()=>x.removeEventListener("keydown",O,{capture:!0})},[x,T,O]),c.useEffect(()=>{if(m)return r&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(i=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),eU(),()=>{r&&(p.layersWithOutsidePointerEventsDisabled.delete(m),0===p.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=i))}},[m,x,r,p]),c.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),eU())},[m,p]),c.useEffect(()=>{let e=eI(()=>v({}),"handleUpdate");return document.addEventListener(eA,e),()=>document.removeEventListener(eA,e)},[]),(0,o.jsx)(H.div,{...f,ref:g,style:{pointerEvents:N?E?"auto":"none":void 0,...e.style},onFocusCapture:w(e.onFocusCapture,R.onFocusCapture),onBlurCapture:w(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:w(e.onPointerDownCapture,S.onPointerDownCapture)})},"DismissableLayer"));eI(function(){let e=c.useContext(eL),[t,r]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r},"useDismissableLayerSurface");var eF=eI(()=>!0,"IS_TRUE");function e$(e,t){let{ownerDocument:r=globalThis?.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:o,shouldHandlePointerDownOutside:s=eF}=t,a=eM(e),l=c.useRef(!1),u=c.useRef(!1),d=c.useRef(new Map),f=c.useRef(()=>{});return c.useEffect(()=>{function e(){u.current=!1,i.current=!1,d.current.clear()}function t(){return Array.from(d.current.values()).some(Boolean)}function c(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...o].some(e=>e.contains(t))||d.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{u.current&&f.current()},0)}function p(e){u.current&&d.current.set(e.type,!1)}eI(e,"resetOutsideInteraction"),eI(t,"isOutsideInteractionIntercepted"),eI(c,"handleInteractionCapture"),eI(p,"handleInteractionBubble");let m=eI(o=>
11{if(o.target&&!l.current){let c=function(){r.removeEventListener("click",f.current);let n=t();e(),n||eW("dismissableLayer.pointerDownOutside",a,p,{discrete:!0})};if(eI(c,"handleAndDispatchPointerDownOutsideEvent"),!s(o.target)){r.removeEventListener("click",f.current),e(),l.current=!1;return}let p={originalEvent:o};u.current=!0,i.current=n&&0===o.button,d.current.clear(),n&&0===o.button?(r.removeEventListener("click",f.current),f.current=c,r.addEventListener("click",f.current,{once:!0})):c()}else r.removeEventListener("click",f.current),e();l.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of h)r.addEventListener(e,c,!0),r.addEventListener(e,p);let x=window.setTimeout(()=>{r.addEventListener("pointerdown",m)},0);return()=>{for(let e of(window.clearTimeout(x),r.removeEventListener("pointerdown",m),r.removeEventListener("click",f.current),h))r.removeEventListener(e,c,!0),r.removeEventListener(e,p)}},[r,a,n,i,o,s]),{onPointerDownCapture:eI(()=>l.current=!0,"onPointerDownCapture")}}function ez(e,t=globalThis?.document){let r=eM(e),n=c.useRef(!1);return c.useEffect(()=>{let e=eI(e=>{e.target&&!n.current&&eW("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:eI(()=>n.current=!0,"onFocusCapture"),onBlurCapture:eI(()=>n.current=!1,"onBlurCapture")}}function eU(){let e=new CustomEvent(eA);document.dispatchEvent(e)}function eW(e,t,r,{discrete:n}){let i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?V(i,o):i.dispatchEvent(o)}function eG(e){let t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}eI(e$,"usePointerDownOutside"),eI(ez,"useFocusOutside"),eI(eU,"dispatchUpdate"),eI(eW,"handleAndDispatchCustomEvent"),(0,Object.defineProperty)(eG,"name",{value:"usePrevious",configurable:!0});var eH=Object.defineProperty,eV=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),eB=(eH(function(e,t){return(0,o.jsx)(H.span,{...e,ref:t,style:{...eV,...e.style}})},"name",{value:"VisuallyHidden",configurable:!0}),Object.defineProperty),eK=(e,t)=>eB(e,"name",{value:t,configurable:!0}),eq="NavigationMenu",[eJ,eY,eX]=ej(eq),[eZ,eQ,e0]=ej(eq),[e1,e2]=x(eq,[eX,e0]),[e5,e6]=e1(eq),[e3,e8]=e1(eq),e4=c.forwardRef(eK(function(e,t){let{__scopeNavigationMenu:r,value:n,onValueChange:i,defaultValue:s,delayDuration:a=200,skipDelayDuration:l=300,orientation:u="horizontal",dir:d,...f}=e,[p,m]=c.useState(null),h=P(t,m),x=es(d),v=c.useRef(0),g=c.useRef(0),y=c.useRef(0),[b,w]=c.useState(!0),[j,k]=ee({prop:n,onChange:eK(e=>{let t=l>0;""!==e?(window.clearTimeout(y.current),t&&w(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>w(!0),l)),i?.(e)},"onChange"),defaultProp:s??"",caller:eq}),N=c.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>k(""),150)},[k]),E=c.useCallback(e=>{window.clearTimeout(g.current),k(e)},[k]),C=c.useCallback(e=>{j===e?window.clearTimeout(g.current):v.current=window.setTimeout(()=>{window.clearTimeout(g.current),k(e)},a)},[j,k,a]);return c.useEffect(()=>()=>{window.clearTimeout(v.current),window.clearTimeout(g.current),window.clearTimeout(y.current)},[]),(0,o.jsx)(e9,{scope:r,isRootMenu:!0,value:j,dir:x,orientation:u,rootNavigationMenu:p,onTriggerEnter:e=>{window.clearTimeout(v.current),b?C(e):E(e)},onTriggerLeave:()=>{window.clearTimeout(v.current),N()},onContentEnter:()=>window.clearTimeout(g.current),onContentLeave:N,onItemSelect:e=>{k(t=>t===e?"":e)},onItemDismiss:()=>k(""),children:(0,o.jsx)(H.nav,{"aria-label":"Main","data-orientation":u,dir:x,...f,ref:h})})},"NavigationMenu")),e9=eK(e=>{let{scope:t,isRootMenu:r,rootNavigationMenu:n,dir:i,orientation:s,children:a,value:l,onItemSelect:u,onItemDismiss:d,onTriggerEnter:f,onTriggerLeave:p,onContentEnter:m,onContentLeave:h}=e,[x,v]=c.useState(null),[g,y]=c.useState(new Map),[b,w]=c.useState(null);return(0,o.jsx)(e5,{scope:t,isRootMenu:r,rootNavigationMenu:n,value:l,previousValue:eG(l),baseId:ey(),dir:i,orientation:s,viewport:x,onViewportChange:v,indicatorTrack:b,onIndicatorTrackChange:w,onTriggerEnter:eM(f),onTriggerLeave:eM(p),onContentEnter:eM(m),onContentLeave:eM(h),onItemSelect:eM(u),onItemDismiss:eM(d),onViewportContentChange:c.useCallback((e,t)=>{y(r=>(r.set(e,t),new Map(r)))},[]),onViewportContentRemove:c.useCallback(e=>{y(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,o.jsx)(eJ.Provider,{scope:t,children:(0,o.jsx)(e3,{scope:t,items:g,children:a})})})},"NavigationMenuProvider"),e7=c.forwardRef(eK(function(e,t){let{__scopeNavigationMenu:r,...n}=e,i=e6("NavigationMenuList",r),s=(0,o.jsx)(H.ul,{"data-orientation":i.orientation,...n,ref:t});return(0,o.jsx)(H.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:(0,o.jsx)(eJ.Slot,{scope:r,children:i.isRootMenu?(0,o.jsx)(th,{asChild:!0,children:s}):s})})},"NavigationMenuList")),[te,tt]=e1("NavigationMenuItem"),tr=c.forwardRef(eK(function(e,t){let{__scopeNavigationMenu:r,value:n,...i}=e,s=ey(),a=c.useRef(null),l=c.useRef(null),u=c.useRef(null),d=c.useRef(()=>{}),f=c.useRef(!1),p=c.useCallback((e="start")=>{if(a.current){d.current();let t=tg(a.current);t.length&&ty("start"===e?t:t.reverse())}},[]),m=c.useCallback(()=>
11{if(a.current){let e=tg(a.current);e.length&&(d.current=tb(e))}},[]);return(0,o.jsx)(te,{scope:r,value:n||s||"LEGACY_REACT_AUTO_VALUE",triggerRef:l,contentRef:a,focusProxyRef:u,wasEscapeCloseRef:f,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:m,onContentFocusOutside:m,children:(0,o.jsx)(H.li,{...i,ref:t})})},"NavigationMenuItem")),tn="navigationMenu.linkSelect",ti=c.forwardRef(eK(function(e,t){let{__scopeNavigationMenu:r,active:n,onSelect:i,...s}=e;return(0,o.jsx)(tv,{asChild:!0,children:(0,o.jsx)(H.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...s,ref:t,onClick:w(e.onClick,e=>{let t=e.target,r=new CustomEvent(tn,{bubbles:!0,cancelable:!0});t.addEventListener(tn,e=>i?.(e),{once:!0}),V(t,r),r.defaultPrevented||e.metaKey||V(t,new CustomEvent(tc,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})},"NavigationMenuLink")),to="NavigationMenuIndicator",ts=c.forwardRef(eK(function(e,t){let{forceMount:r,...n}=e,i=e6(to,e.__scopeNavigationMenu),s=!!i.value;return i.indicatorTrack?p.createPortal((0,o.jsx)(eu,{present:r||s,children:(0,o.jsx)(ta,{...n,ref:t})}),i.indicatorTrack):null},"NavigationMenuIndicator")),ta=c.forwardRef(eK(function(e,t){let{__scopeNavigationMenu:r,...n}=e,i=e6(to,r),s=eY(r),[a,l]=c.useState(null),[u,d]=c.useState(null),f="horizontal"===i.orientation,p=!!i.value;c.useEffect(()=>{let e=s(),t=e.find(e=>e.value===i.value)?.ref.current;t&&l(t)},[s,i.value]);let m=eK(()=>{a&&d({size:f?a.offsetWidth:a.offsetHeight,offset:f?a.offsetLeft:a.offsetTop})},"handlePositionChange");return tw(a,m),tw(i.indicatorTrack,m),u?(0,o.jsx)(H.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":i.orientation,...n,ref:t,style:{position:"absolute",...f?{left:0,width:u.size+"px",transform:`translateX(${u.offset}px)`,"--radix-navigation-menu-indicator-translate-x":`${u.offset}px`}:{top:0,height:u.size+"px",transform:`translateY(${u.offset}px)`,"--radix-navigation-menu-indicator-translate-y":`${u.offset}px`},...n.style}}):null},"NavigationMenuIndicatorImpl")),tl="NavigationMenuContent",tc="navigationMenu.rootContentDismiss",tu=c.forwardRef(eK(function(e,t){let{__scopeNavigationMenu:r,value:n,triggerRef:i,focusProxyRef:s,wasEscapeCloseRef:a,onRootContentClose:l,onContentFocusOutside:u,...d}=e,f=e6(tl,r),p=c.useRef(null),m=P(p,t),h=tk(f.baseId,n),x=tN(f.baseId,n),v=eY(r),g=c.useRef(null),{onItemDismiss:y}=f;c.useEffect(()=>{let e=p.current;if(f.isRootMenu&&e){let t=eK(()=>{y(),l(),e.contains(document.activeElement)&&i.current?.focus()},"handleClose");return e.addEventListener(tc,t),()=>e.removeEventListener(tc,t)}},[f.isRootMenu,e.value,i,y,l]);let b=c.useMemo(()=>{let e=v().map(e=>e.value);"rtl"===f.dir&&e.reverse();let t=e.indexOf(f.value),r=e.indexOf(f.previousValue),i=n===f.value,o=r===e.indexOf(n);if(!i&&!o)return g.current;let s=(()=>{if(t!==r){if(i&&-1!==r)return t>r?"from-end":"from-start";if(o&&-1!==t)return t>r?"to-start":"to-end"}return null})();return g.current=s,s},[f.previousValue,f.value,f.dir,v,n]);return(0,o.jsx)(th,{asChild:!0,children:(0,o.jsx)(eD,{id:x,"aria-labelledby":h,"data-motion":b,"data-orientation":f.orientation,...d,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(tc,{bubbles:!0,cancelable:!0});p.current?.dispatchEvent(e)},onFocusOutside:w(e.onFocusOutside,e=>{u();let t=e.target;f.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:w(e.onPointerDownOutside,e=>{let t=e.target,r=v().some(e=>e.ref.current?.contains(t)),n=f.isRootMenu&&f.viewport?.contains(t);(r||n||!f.isRootMenu)&&e.preventDefault()}),onKeyDown:w(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=tg(e.currentTarget),r=document.activeElement,n=t.findIndex(e=>e===r);ty(e.shiftKey?t.slice(0,n).reverse():t.slice(n+1,t.length))?e.preventDefault():s.current?.focus()}}),onEscapeKeyDown:w(e.onEscapeKeyDown,e=>{a.current=!0})})})},"NavigationMenuContentImpl")),td="NavigationMenuViewport",tf=c.forwardRef(eK(function(e,t){let{forceMount:r,...n}=e,i=!!e6(td,e.__scopeNavigationMenu).value;return(0,o.jsx)(eu,{present:r||i,children:(0,o.jsx)(tp,{...n,ref:t})})},"NavigationMenuViewport")),tp=c.forwardRef(eK(function(e,t){let{__scopeNavigationMenu:r,children:n,...i}=e,s=e6(td,r),a=P(t,s.onViewportChange),l=e8(tl,e.__scopeNavigationMenu),[u,d]=c.useState(null),[f,p]=c.useState(null),m=u?u?.
11width+"px":void 0,h=u?u?.height+"px":void 0,x=!!s.value,v=x?s.value:s.previousValue,g=eK(()=>{f&&d({width:f.offsetWidth,height:f.offsetHeight})},"handleSizeChange");return tw(f,g),(0,o.jsx)(H.div,{"data-state":tj(x),"data-orientation":s.orientation,...i,ref:a,style:{pointerEvents:!x&&s.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":m,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:w(e.onPointerEnter,s.onContentEnter),onPointerLeave:w(e.onPointerLeave,tE(s.onContentLeave)),children:Array.from(l.items).map(([e,{ref:t,forceMount:r,...n}])=>{let i=v===e;return(0,o.jsx)(eu,{present:r||i,children:(0,o.jsx)(tm,{...n,contentRef:t,isActive:i,onActiveContentChange:p})},e)})})},"NavigationMenuViewportImpl")),tm=eK(({contentRef:e,isActive:t,onActiveContentChange:r,...n})=>{let i=P(e,c.useCallback(e=>{t&&e&&r(e)},[t,r]));return(0,o.jsx)(tu,{...n,ref:i})},"NavigationMenuViewportItem"),th=c.forwardRef(eK(function(e,t){let{__scopeNavigationMenu:r,...n}=e,i=e6("FocusGroup",r);return(0,o.jsx)(eZ.Provider,{scope:r,children:(0,o.jsx)(eZ.Slot,{scope:r,children:(0,o.jsx)(H.div,{dir:i.dir,...n,ref:t})})})},"FocusGroup")),tx=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],tv=c.forwardRef(eK(function(e,t){let{__scopeNavigationMenu:r,...n}=e,i=eQ(r),s=e6("FocusGroupItem",r);return(0,o.jsx)(eZ.ItemSlot,{scope:r,children:(0,o.jsx)(H.button,{...n,ref:t,onKeyDown:w(e.onKeyDown,e=>{if(["Home","End",...tx].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===s.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),tx.includes(e.key)){let r=t.indexOf(e.currentTarget);t=t.slice(r+1)}setTimeout(()=>ty(t)),e.preventDefault()}})})})},"FocusGroupItem"));function tg(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:eK(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}function ty(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function tb(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}function tw(e,t){let r=eM(t);B(()=>{let t=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}function tj(e){return e?"open":"closed"}function tk(e,t){return`${e}-trigger-${t}`}function tN(e,t){return`${e}-content-${t}`}function tE(e){return t=>"mouse"===t.pointerType?e(t):void 0}eK(tg,"getTabbableCandidates"),eK(ty,"focusFirst"),eK(tb,"removeFromTabOrder"),eK(tw,"useResizeObserver"),eK(tj,"getOpenState"),eK(tk,"makeTriggerId"),eK(tN,"makeContentId"),eK(tE,"whenMouse");var tC=e.i(280241);let tS=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,tP=tC.clsx,tR=c.forwardRef(({className:e,children:t,viewportClassName:r,...n},i)=>(0,o.jsx)(e4,{ref:i,className:(0,u.cn)("right-0 absolute","absolute top-full w-fit bg-popover mt-[5px]","data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52",e),...n,children:t}));tR.displayName=e4.displayName;let tT=c.forwardRef(({className:e,...t},r)=>(0,o.jsx)(e7,{ref:r,className:(0,u.cn)("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));tT.displayName=e7.displayName;let tO=(t="group inline-flex h-9 w-max items-center justify-center px-3 py-2 font-ep-sans font-semibold text-[12px] uppercase tracking-[0.08em] transition-colors focus:outline-none disabled:pointer-events-none disabled:opacity-50 bg-transparent hover:bg-transparent",e=>{var n;if((null==r?void 0:r.variants)==null)return tP(t,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:i,defaultVariants:o}=r,s=Object.keys(i).map(t=>{let r=null==e?void 0:e[t],n=null==o?void 0:o[t];if(null===r)return null;let s=tS(r)||tS(n);return i[t][s]}),a=e&&Object.entries(e).reduce((e,t)=>
11{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return tP(t,s,null==r||null==(n=r.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...a}[t]):({...o,...a})[t]===r})?[...e,r,n]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)}),tM=c.forwardRef(({className:e,children:t,open:r=!1,...n},i)=>(0,o.jsx)("button",{ref:i,className:(0,u.cn)(tO(),"group",e),...n,children:(0,o.jsxs)("div",{className:"flex items-center gap-1 justify-center",children:[(0,o.jsx)("span",{children:t}),(0,o.jsx)(f.FontAwesomeIcon,{icon:d.faChevronDown,className:(0,u.cn)("transition duration-300",r?"rotate-180":""),"aria-hidden":"true"})]})}));tM.displayName="NavigationMenuTrigger";let t_=c.forwardRef(({className:e,...t},r)=>(0,o.jsx)("div",{ref:r,className:(0,u.cn)("absolute top-full left-0 mt-1 z-50 shadow-xl","animate-in fade-in-0 zoom-in-95",e),style:{background:"var(--paper)",border:"1px solid var(--line)"},...t}));t_.displayName="NavigationMenuContent",c.forwardRef(({className:e,viewportClassName:t,...r},n)=>(0,o.jsx)("div",{className:(0,u.cn)("absolute right-0 left-auto top-full flex justify-center",t),children:(0,o.jsx)(tf,{className:(0,u.cn)("origin-top-center z-[100] relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...r})})).displayName=tf.displayName,c.forwardRef(({className:e,...t},r)=>(0,o.jsx)(ts,{ref:r,className:(0,u.cn)("top-full z-[100] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:(0,o.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})).displayName=ts.displayName;var tI=((n={}).FROM_RIGHT_MIDDLE="-right-[25%]",n.FROM_RIGHT_END="right-0",n.FROM_LEFT_END="right-0",n);function tA({text:e,children:t,isTouchDevice:r,index:n,className:i,contentClassName:s,triggerStyle:a,triggerHoverStyle:l,accentColor:u}){let[d,f]=(0,c.useState)(!1),p=(0,c.useRef)(null),m=(0,c.useRef)(null);return(0,o.jsxs)(tr,{onMouseEnter:()=>{r||(m.current&&clearTimeout(m.current),p.current=setTimeout(()=>f(!0),220))},onMouseLeave:()=>{r||(p.current&&clearTimeout(p.current),m.current=setTimeout(()=>f(!1),120))},children:[(0,o.jsx)(tM,{open:d,onClick:e=>{r?(e.preventDefault(),f(e=>!e)):e.preventDefault()},className:i,style:d?{...a,...l,opacity:1}:a,children:e}),d&&(0,o.jsx)(t_,{className:s,onClick:()=>f(!1),children:t})]})}function tL({currentNavbar:e,series:t,sections:r}){let n=function(){let[e,t]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{function e(){t("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[]),e}(),i=tO();return(0,o.jsx)(tR,{className:"top-0 static",children:(0,o.jsxs)(tT,{className:"gap-0",children:[(0,o.jsx)(tA,{index:0,isTouchDevice:n,text:"Artikler",direction:tI.FROM_LEFT_END,triggerStyle:{color:"var(--ink)",opacity:.75},triggerHoverStyle:{color:"var(--indigo)"},accentColor:"var(--indigo)",children:(0,o.jsx)("ul",{className:"min-w-[200px] py-2",children:r?.slice().sort((e,t)=>e.title.localeCompare(t.title,"nb")).map(e=>(0,o.jsx)("li",{children:(0,o.jsx)(ti,{asChild:!0,children:(0,o.jsx)(l.default,{href:`/${e.slug}`,className:"block px-4 py-2 font-ep-sans text-[13px] font-medium transition-colors",style:{color:"var(--ink-2)"},onMouseEnter:e=>e.currentTarget.style.color="var(--indigo)",onMouseLeave:e=>e.currentTarget.style.color="var(--ink-2)",children:e.title})})},e._id))})}),(0,o.jsx)(tA,{index:1,isTouchDevice:n,text:"Podkaster",direction:tI.FROM_RIGHT_MIDDLE,triggerStyle:{color:"var(--ink)",opacity:.75},triggerHoverStyle:{color:"var(--indigo)"},accentColor:"var(--indigo)",children:(0,o.jsxs)("div",{className:"w-[480px] p-4",children:[(0,o.jsx)("ul",{className:"grid grid-cols-2 gap-0.5 mb-3",children:t?.map(e=>(0,o.jsx)("li",{children:(0,o.jsx)(ti,{asChild:!0,children:(0,o.jsxs)(l.default,{href:`/podkast/${e.slug}`,className:"flex items-center gap-3 px-3 py-2.5 transition-colors group",style:{color:"var(--ink)"},onMouseEnter:e=>e.currentTarget.style.background="var(--paper-2)",onMouseLeave:e=>e.currentTarget.style.background="transparent",children:[e.imageUrl&&(0,o.jsx)("img",{src:e.imageUrl,alt:"",className:"w-9 h-9 object-cover shrink-0",style:{border:"1px solid var(--line)"}}),(0,o.jsxs)("div",{className:"min-w-0",children:[(0,o.jsx)("p",{className:"font-ep-sans text-[13px] font-semibold leading-snug line-clamp-1",style:{color:"var(--ink)"},children:e.title}),(0,o.jsx)("p",{className:"font-ep-sans text-[11px] line-clamp-1 mt-0.5",style:{color:"var(--muted)"}
11,children:e.shortDescription?.trim()||e.description})]})]})})},e._id))}),(0,o.jsx)("div",{className:"pt-3",style:{borderTop:"1px solid var(--line)"},children:(0,o.jsx)(ti,{asChild:!0,children:(0,o.jsxs)(l.default,{href:"/podkast",className:"flex items-center gap-2 px-3 py-2 font-ep-sans font-semibold text-[11px] uppercase tracking-widest transition-colors",style:{color:"var(--indigo)"},children:[(0,o.jsx)(f.FontAwesomeIcon,{icon:d.faPodcast,className:"text-xs"}),"Alle podkaster"]})})})]})}),(0,o.jsx)(tr,{children:(0,o.jsx)(ti,{asChild:!0,children:(0,o.jsx)(l.default,{href:"/kirkearet",className:i,style:{color:"var(--ink)",opacity:.75},onMouseEnter:e=>{e.currentTarget.style.color="var(--indigo)",e.currentTarget.style.opacity="1"},onMouseLeave:e=>{e.currentTarget.style.color="var(--ink)",e.currentTarget.style.opacity="0.75"},children:"Kirkeåret"})})}),(0,o.jsx)(tr,{children:(0,o.jsx)(ti,{asChild:!0,children:(0,o.jsx)(l.default,{href:"/salmebloggen",className:i,style:{color:"var(--ink)",opacity:.75},onMouseEnter:e=>{e.currentTarget.style.color="var(--indigo)",e.currentTarget.style.opacity="1"},onMouseLeave:e=>{e.currentTarget.style.color="var(--ink)",e.currentTarget.style.opacity="0.75"},children:"Salmebloggen"})})}),(0,o.jsx)(tr,{children:(0,o.jsx)(ti,{asChild:!0,children:(0,o.jsx)(l.default,{href:"/giver",className:i,style:{color:"var(--ink)",opacity:.75},onMouseEnter:e=>{e.currentTarget.style.color="var(--indigo)",e.currentTarget.style.opacity="1"},onMouseLeave:e=>{e.currentTarget.style.color="var(--ink)",e.currentTarget.style.opacity="0.75"},children:"Gi"})})}),(0,o.jsx)(tA,{index:2,isTouchDevice:n,text:"Om oss",direction:tI.FROM_RIGHT_END,contentClassName:"right-0 left-auto",triggerStyle:{color:"var(--ink)",opacity:.75},triggerHoverStyle:{color:"var(--indigo)"},accentColor:"var(--indigo)",children:(0,o.jsx)("ul",{className:"w-[260px] py-2",children:[{title:"Bekjennelsesskrifter",url:"/bekjennelsesskriftene",featured:!0},{title:"Hvem er vi",url:"/om-oss"},{title:"Om foross.no",url:"/om-foross-no"},{title:"Grunnlagsdokument",url:"/grunnlagsdokument"}].map(e=>(0,o.jsx)("li",{children:(0,o.jsx)(ti,{asChild:!0,children:(0,o.jsxs)(l.default,{href:e.url,className:"block px-4 py-2.5 font-ep-sans text-[13px] transition-colors",style:{color:e.featured?"var(--ink)":"var(--ink-2)",fontWeight:e.featured?600:400},onMouseEnter:e=>e.currentTarget.style.color="var(--indigo)",onMouseLeave:t=>t.currentTarget.style.color=e.featured?"var(--ink)":"var(--ink-2)",children:[e.title,e.featured&&(0,o.jsx)("p",{className:"font-ep-sans text-[11px] font-normal mt-0.5",style:{color:"var(--muted)"},children:"Oldkirkelige og lutherske bekjennelsesskrifter"})]})})},e.url))})})]})})}c.forwardRef(({className:e,title:t,children:r,...n},i)=>(0,o.jsx)("li",{children:(0,o.jsx)(ti,{asChild:!0,children:(0,o.jsxs)(l.default,{ref:i,className:(0,u.cn)("flex gap-3 select-none px-4 py-2.5 text-sm leading-none no-underline outline-none transition-colors hover:bg-foreground
11/5 dark:hover:bg-white/5 focus:bg-foreground/5",e),...n,href:n.href??"",children:[n.media&&(0,o.jsx)("img",{className:"h-10 w-10 rounded-md object-cover shrink-0",src:n.media,alt:""}),(0,o.jsxs)("div",{className:"min-w-0",children:[(0,o.jsx)("p",{className:"font-semibold text-foreground dark:text-white leading-snug",children:t}),r&&(0,o.jsx)("p",{className:"line-clamp-2 text-xs text-foreground/50 dark:text-white/50 mt-0.5",children:r})]})]})})})).displayName="ListItem";let tD=c.default.createContext({title:"",description:"",mobileDescription:"",type:"info",icon:(0,o.jsx)(f.FontAwesomeIcon,{icon:d.faInfoCircle}),showAlert:!1,updateAlert:(e,t,r,n,i,o)=>{},hideAlert:()=>{}});function tF({children:e}){let[t,r]=c.default.useState(""),[n,i]=c.default.useState(""),[s,a]=c.default.useState(""),[l,u]=c.default.useState("info"),[p,m]=c.default.useState((0,o.jsx)(f.FontAwesomeIcon,{icon:d.faInfoCircle})),[h,x]=c.default.useState(),[v,g]=c.default.useState(!1);return(0,o.jsx)(tD.Provider,{value:{title:t,description:n,mobileDescription:s,type:l,showAlert:v,icon:p,link:h,updateAlert:function(e,t,n,o,s,l){r(e),x(l),m(s),i(t),a(n),u(o),g(!0)},hideAlert:function(){g(!1)}},children:e})}let t$=c.default.createContext({currentPlayingAudio:null,updateCurrentPlayingAudio:e=>{}});function tz({children:e}){let[t,r]=c.default.useState(null);return(0,o.jsx)(t$.Provider,{value:{currentPlayingAudio:t,updateCurrentPlayingAudio:function(e){r(e)}},children:e})}var tU=e.i(331247),tW=e.i(361239),tG=e.i(133623),tH=e.i(772828),tV=e.i(634417),tB=e.i(340606),tK=e.i(648535),tq=e.i(535036);function tJ(){let e=(0,tV.usePathname)(),{title:t,link:r,showAlert:n,hideAlert:i}=c.default.useContext(tD),[s,a]=(0,c.useState)(!1);return(0,o.jsx)(tK.AnimatePresence,{children:"/"===e&&n&&!s&&(0,o.jsx)(tq.motion.div,{initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.2},className:"fixed top-[64px] left-0 right-0 z-[100] bg-amber-50 dark:bg-secondary border-b border-t dark:border-primary/40 border-amber-200 dark:border-secondary",children:(0,o.jsxs)("div",{className:"max-w-screen-xl mx-auto px-4 lg:px-8 py-2 flex items-center justify-between gap-4",children:[(0,o.jsxs)(l.default,{href:r??"",className:"flex items-center gap-2 min-w-0 group",children:[(0,o.jsx)(f.FontAwesomeIcon,{icon:d.faChurch,className:"text-amber-700 dark:text-white/60 text-[10px] shrink-0"}),(0,o.jsx)("span",{className:"hidden sm:inline text-[10px] uppercase tracking-[0.15em] font-semibold text-amber-700 dark:text-white/60 shrink-0",children:"Kirkeåret"}),(0,o.jsxs)("span",{className:"text-amber-900 dark:text-white/60 text-xs font-medium truncate",children:[(0,o.jsx)("span",{className:"hidden sm:inline",children:"— "}),t]}),(0,o.jsx)("span",{className:"hidden sm:inline text-[10px] uppercase tracking-widest font-semibold text-amber-700 dark:text-white/60 shrink-0 group-hover:underline",children:"Utforsk →"}),(0,o.jsx)("div",{className:"sm:hidden ",children:(0,o.jsx)(f.FontAwesomeIcon,{icon:d.faChevronRight,className:"text-[9px] text-amber-600 dark:text-white/60 shrink-0 group-hover:translate-x-0.5 transition-transform duration-200"})})]}),(0,o.jsx)("button",{onClick:i,className:"text-amber-500 dark:text-white/60 hover:text-amber-800 dark:hover:text-white transition-colors shrink-0 p-0.5","aria-label":"Lukk",children:(0,o.jsx)(f.FontAwesomeIcon,{icon:d.faTimes,className:"text-xs"})})]})},"alert-strip")})}function tY(){let e=(0,tV.usePathname)(),{showAlert:t}=c.default.useContext(tD),[r,n]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let e=()=>n(window.scrollY>300);return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,o.jsx)("div",{className:"transition-all duration-200",style:{height:"/"===e&&t&&!r?"36px":"0px"}})}var tX=e.i(227398),tZ=e.i(970653),tQ=e.i(241667);tU.library.add(tX.faFacebook,tX.faInstagram);let t0=({settings:e})=>(0,o.jsx)("footer",{className:"bg-primary dark:bg-[#0f1520]",children:(0,o.jsxs)("div",{className:"max-w-5xl mx-auto px-8 py-12",children:[(0,o.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-10 md:gap-8",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(tQ.default,{src:"/logo/foross-negativ.png",alt:"Foross logo",width:80,height:32,className:"h-8 w-auto object-contain"}),(0,o.jsx)("p",{className:"italic text-sm text-white/60 mt-4",children:e.bibleVerse})]}),(0,o.jsxs)("div",{className:"md:border-l md:border-white/10 md:pl-8",children:[(0,o.jsx)("p",{className:"text-xs text-white/50 uppercase tracking-widest mb-3",children:"Kontakt"}),(0,o.jsxs)("div",{className:"text-sm text-white space-y-1",children:[(0,o.jsxs)("p",{children:["Vipps: ",e.vipps]}),(0,o.jsxs)("p",{children:["Kontonummer: ",e.kontonummer??""]}),(0,o.jsxs)("p",{children:["Org.nr: ",e.organisasjonsnummer]}),(0,o.jsxs)("p",{children:["E-post:"," ",(0,o.jsx)("a",{href:`mailto:${e.email}`,className:"hover:text-white/80 underline transition-colors",children:e.email})]})]})]}),(0,o.jsxs)("div",{className:"md:border-l md:border-white/10 md:pl-8",children:[(0,o.jsx)("p",{className:"text-xs text-white/50 uppercase tracking-widest mb-3",children:"Følg oss"}),(0,o.jsxs)("div",{className:"flex flex-col gap-2 text-sm text-white",children:[(0,o.jsxs)("a",{href:e.some.facebook,className:"hover:text-white/80 transition-colors flex items-center gap-2",children:[(0,o.jsx)(f.FontAwesomeIcon,{icon:tX.faFacebook})," Foross på Facebook"]}),(0,o.jsxs)("a",{href:e.some.instagram,className:"hover:text-white/80 transition-colors flex items-center gap-2",children:[(0,o.jsx)(f.FontAwesomeIcon,{icon:tX.faInstagram})," Foross på Instagram"]})]})]})]}),(0,o.jsxs)("div",{className:"border-t border-white/10 mt-10 pt-6 flex flex-col items-center gap-3 text-xs text-white/50",children:[(0,o.jsx)(l.default,{href:"/redaksjon",className:"text-white/20 hover:text-white/50 transition-colors tracking-widest uppercase text-[10px]",children:"Gå til redaksjonsverktøy →"}),(0,o.jsx)(tZ.PortableText,{components:{marks:{link:({children:e,value:t})=>(0,o.jsx)("a",{href:t.href,className:"hover:text-white/80 underline transition-colors",children:e})}},value:e.credits})]})]})});var t1=e.i(265393);let t2="flex items-center justify-between px-3 py-2.5 font-ep-sans text-[14px] font-semibold transition-colors group";function t5({link:e,hide:t,isFirst:r}){return"navigationLink"===e._type?(0,o.jsxs)(l.default,{href:e.url,prefetch:!1,onClick:t,className:t2,style:{color:"var(--ink-2)"},onMouseEnter:e=>{e.currentTarget.style.color="var(--ink)",e.currentTarget.style.background="var(--paper-2)"},onMouseLeave:e=>{e.currentTarget.style.color="var(--ink-2)",e.currentTarget.style.background="transparent"},children:[(0,o.jsx)("span",{children:e.title}),(0,o.jsx)(f.FontAwesomeIcon,{icon:d.faChevronRight,className:"text-[10px]",style:{color:"var(--line-2)"}})]}):(0,o.jsx)("div",{className:r?"":"mt-2",children:(0,o.jsx)("ul",{className:"flex flex-col gap-0.5",children:e.urls.map(e=>(0,o.jsxs)("li",{children:[(0,o.jsxs)(l.default,{href:e.url,prefetch:!1,onClick:t,className:t2,style:{color:"var(--ink-2)"},onMouseEnter:e=>{e.currentTarget.style.color="var(--ink)",e.currentTarget.style.background="var(--paper-2)"},onMouseLeave:e=>{e.currentTarget.style.color="var(--ink-2)",e.currentTarget.style.background="transparent"},children:[(0,o.jsx)("span",{children:e.title}),(0,o.jsx)(f.FontAwesomeIcon,{icon:d.faChevronRight,className:"text-[10px]",style:{color:"var(--line-2)"}})]}),e.urls?.length>0&&(0,o.jsx)("ul",{className:"ml-3 mt-0.5 mb-1 flex flex-col gap-0.5 pl-3",style:{borderLeft:"1px solid var(--line)"},children:e.urls.map(e=>(0,o.jsx)("li",{children:(0,o.jsx)(l.default,{href:e.url,prefetch:!1,onClick:t,className:"flex items-center gap-2 px-3 py-2 font-ep-sans text-[13px] font-medium transition-colors",style:{color:"var(--muted)"},onMouseEnter:e=>e.currentTarget.style.color="var(--ink)",onMouseLeave:e=>e.currentTarget.style.color="var(--muted)",children:e.title})},e.url))})]},e.url))})})}tG.default.registerPlugin(tW.useGSAP);let t6=[{key:"light",label:"Lys",icon:d.faSun},{key:"dark",label:"Mørk",icon:d.faMoon}];function t3(){let{theme:e,setTheme:t}=(0,a.useTheme)(),[r,n]=(0,c.useState)(!1);(0,c.useEffect)(()=>{n(!0)},[]);let[i,s]=(0,c.useState)(null),l=(0,c.useRef)(null),u=(0,c.useRef)(null),d=e=>"light"===e?l:u;return(0,o.jsx)("div",{className:"flex items-center relative",style:{border:"1px solid var(--line-2)",background:"var(--paper-2)"},children:t6.map(({key:n,label:a,icon:c})=>{let p=r&&(i??e)===n,m=d(n);return(0,o.jsxs)("button",{onClick:()=>(r=>{if(r===e||i)return;s(r);let n=("light"===r?u:l).current,o=d(r).current,a=tG.default.timeline({onComplete:()=>{t(r),s(null)}});n&&a.to(n,{rotate:"dark"===r?-90:90,scale:0,opacity:0,duration:.22,ease:"power2.in"}),o&&(tG.default.set(o,{rotate:"dark"===r?90:-90,scale:0,opacity:0}
11),a.to(o,{rotate:0,scale:1,opacity:1,duration:.35,ease:"back.out(2)"},"-=0.05")),a.play()})(n),className:"relative z-10 flex items-center gap-2 px-4 py-2 font-label text-[10px] uppercase tracking-[0.18em] font-bold transition-colors duration-200 select-none",style:{color:p?"var(--paper)":"var(--muted)",minWidth:80,justifyContent:"center"},"aria-label":a,children:[p&&(0,o.jsx)(tq.motion.span,{layoutId:"theme-ink-block",className:"absolute inset-0 z-[-1]",style:{background:"var(--ink)"},transition:{type:"spring",stiffness:480,damping:38}}),(0,o.jsx)("span",{ref:m,className:"inline-flex items-center justify-center",style:{width:12,height:12},children:(0,o.jsx)(f.FontAwesomeIcon,{icon:c,style:{fontSize:10}})}),(0,o.jsx)("span",{children:a})]},n)})})}let t8=(0,c.forwardRef)(({hide:e,navbar:t,config:r,closeSearchPane:n,calculatedPercentWidth:i,isOpen:s},a)=>{let u,p,m,h="100%"===i,x=(0,tV.useRouter)(),v=(0,tV.useSearchParams)(),g=(0,c.useRef)(null);return(0,c.useEffect)(()=>{if(s){let e=setTimeout(()=>g.current?.focus(),80);return()=>clearTimeout(e)}},[s]),(0,o.jsxs)("div",{ref:a,style:{width:h?"100dvw":i,background:"var(--paper)",borderRight:"1px solid var(--line)",willChange:"transform"},className:"fixed top-0 left-0 h-[100dvh] z-[180] flex flex-col invisible",children:[(0,o.jsxs)("div",{className:"px-6 pt-8 pb-5 shrink-0",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,o.jsx)("p",{className:"font-ep-mono text-[10px] uppercase tracking-[0.2em] font-bold",style:{color:"var(--indigo)"},children:"Utforsk"}),(0,o.jsx)("button",{onClick:()=>{document.body.style.overflow="inherit",e()},"aria-label":"Lukk",className:"flex shrink-0 items-center justify-center transition-colors",style:{color:"var(--muted)"},onMouseEnter:e=>e.currentTarget.style.color="var(--ink)",onMouseLeave:e=>e.currentTarget.style.color="var(--muted)",children:(0,o.jsx)(f.FontAwesomeIcon,{icon:d.faClose,style:{height:"16px"}})})]}),(0,o.jsx)("h2",{className:"font-ep-sans text-[28px] font-bold leading-tight mb-5",style:{color:"var(--ink)"},children:"Søk i foross.no"}),(0,o.jsxs)("div",{className:"flex items-center gap-3 px-4 h-12 transition-colors",style:{background:"var(--paper-2)",border:"1px solid var(--line)",borderRadius:"2px"},children:[(0,o.jsx)(f.FontAwesomeIcon,{icon:d.faMagnifyingGlass,className:"text-sm shrink-0",style:{color:"var(--muted)"}}),(0,o.jsx)("input",{ref:g,type:"search",enterKeyHint:"search",placeholder:"Søk etter artikkel, forfatter, emne…",className:"flex-1 bg-transparent outline-none",style:{color:"var(--ink)",fontSize:"16px"},onKeyDown:e=>{"Enter"===e.key&&(e.currentTarget.blur(),(e=>{if(!e.trim())return;let t=new URLSearchParams(v.toString());t.set("q",e.trim()),n(),document.body.style.overflow="inherit",x.push("/search?"+t.toString())})(e.currentTarget.value))}})]})]}),(0,o.jsx)("div",{className:"flex-1 overflow-y-auto px-6 pb-8",children:(p=new Set((u=[{href:"/bibelhenvisning",icon:d.faBook,label:"Bibelhenvisning"},{href:"/emne",icon:d.faTags,label:"Emner"},{href:"/forfatter",icon:d.faUsers,label:"Forfattere"}]).map(e=>e.href)),m=t.links.map(e=>{if("navigationLink"===e._type)return p.has(e.url)?null:e;let t=e.urls?.filter(e=>!p.has(e.url))??[];return t.length>0?{...e,urls:t}:null}).filter(Boolean),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"mb-5",children:[(0,o.jsx)("p",{className:"font-ep-mono text-[10px] font-bold uppercase tracking-widest px-3 mb-2",style:{color:"var(--muted)"},children:"Bla gjennom"}),(0,o.jsx)("div",{className:"grid grid-cols-2 gap-1",children:u.map(({href:t,icon:r,label:n})=>(0,o.jsxs)(l.default,{href:t,prefetch:!1,onClick:()=>{document.body.style.overflow="inherit",e()},className:"flex items-center gap-3 px-3 py-2.5 font-ep-sans text-[13px] font-semibold transition-colors group",style:{color:"var(--ink-2)",borderRadius:"2px"},onMouseEnter:e=>{e.currentTarget.style.background="var(--paper-2)",e.currentTarget.style.color="var(--ink)"},onMouseLeave:e=>{e.currentTarget.style.background="transparent",e.currentTarget.style.color="var(--ink-2)"},children:[(0,o.jsx)(f.FontAwesomeIcon,{icon:r,className:"w-3.5 shrink-0",style:{color:"var(--indigo)"}}),(0,o.jsx)("span",{children:n})]},t))})]}),(0,o.jsx)("div",{className:"mb-4",style:{borderTop:"1px solid var(--line)"}}),(0,o.jsx)("p",{className:"font-ep-mono text-[10px] font-bold uppercase tracking-widest px-3 mb-2",style:{color:"var(--muted)"},children:"Navigasjon"}),(0,o.jsx)("nav",{className:"flex flex-col gap-0.5",children:m.map((t,r)=>(0,o.jsx)(t5,{isFirst:0===r,hide:()=>{document.body.style.overflow="inherit",e()},link:t},t._id))})]}))}),(0,o.jsxs)("div",{className:"shrink-0 px-6 py-4 flex items-center justify-between",style:{borderTop:"1px solid var(--line)"},children:[(0,o.jsx)("span",{className:"font-ep-mono text-[10px] uppercase tracking-[0.16em] font-bold",style:{color:"var(--muted)"},children:"Fargemodus"}),(0,o.jsx)(t3,{})]})]})});function t4(){let{data:e,status:t}
11=(0,s.useSession)();if("authenticated"!==t||!e?.user)return null;let r=e.user.name?.split(" ")[0]??e.user.email;return(0,o.jsxs)("div",{"data-editor-banner":!0,className:"fixed top-0 left-0 right-0 z-[101] h-8 bg-secondary text-white flex items-center justify-between px-4 text-xs",children:[(0,o.jsxs)("span",{children:["Hei, ",r]}),(0,o.jsx)(l.default,{href:"/redaksjon",className:"bg-white/20 hover:bg-white/30 transition-colors px-2.5 py-0.5 rounded text-xs font-medium",children:"Redaksjonsverktøy →"})]})}t8.displayName="SearchPane";var t9=e.i(68760);tG.default.registerPlugin(tW.useGSAP),tU.library.add(d.faBars,d.faMagnifyingGlass),e.s(["default",0,e=>{let[t,r]=(0,c.useState)(!1),{resolvedTheme:n}=(0,a.useTheme)(),i=(0,tV.usePathname)(),{status:p,data:m}=(0,s.useSession)(),h="authenticated"===p,x=i.startsWith("/salmebloggen"),v=i.startsWith("/redaksjon")||i.startsWith("/logg-inn"),g="/bidra"===i,y=t9.SPECIAL_SLUGS.some(e=>i.endsWith(e));(0,c.useEffect)(()=>{r(!1),w.current&&tG.default.set(w.current,{x:0}),j.current&&tG.default.set(j.current,{x:0}),k.current&&tG.default.set(k.current,{x:0})},[i]);let b=(0,c.useRef)(null),w=(0,c.useRef)(null),j=(0,c.useRef)(null),k=(0,c.useRef)(null),N=e.navbar.links.filter(e=>e.isCurrentNavbar).map(e=>e.urls).flat(1),E=window.innerWidth>0?window.innerWidth:screen.width,C=E<800?"100%":E<1200?"50%":"500px";return((0,tW.useGSAP)(()=>{b.current&&tG.default.set(b.current,{xPercent:-100,visibility:"visible"})},[x,y]),(0,tW.useGSAP)(()=>{if(!b.current||!w.current||!j.current)return;tG.default.killTweensOf([b.current,w.current,j.current,k.current].filter(
11Boolean));let e=tG.default.timeline();t?(document.body.style.overflow="hidden",e.to(b.current,{xPercent:0,duration:.38,ease:"power3.out"},0).to(w.current,{x:C,duration:.38,ease:"power3.out"},0).to(j.current,{x:C,duration:.38,ease:"power3.out"},0),k.current&&e.to(k.current,{x:C,duration:.38,ease:"power3.out"},0)):(e.to(b.current,{xPercent:-100,duration:.3,ease:"power2.in"},0).to(w.current,{x:0,duration:.3,ease:"power2.in"},0).to(j.current,{x:0,duration:.3,ease:"power2.in"},0),k.current&&e.to(k.current,{x:0,duration:.3,ease:"power2.in"},0),e.call(()=>{document.body.style.overflow="inherit"}))},{dependencies:[t]}),x)?(0,o.jsx)(tF,{children:(0,o.jsxs)(tB.HowlerAudioProvider,{children:[e.children,(0,o.jsx)(o.Fragment,{})]})}):v||g?(0,o.jsx)(o.Fragment,{children:e.children}):y?(0,o.jsxs)("div",{className:(0,u.cn)("dark:bg-[#18150f]"),children:[(0,o.jsx)(tF,{children:(0,o.jsxs)(tz,{children:[(0,o.jsx)("header",{className:"h-[64px] pt-6",style:{background:"var(--paper)"},children:(0,o.jsx)("div",{className:"h-full flex items-center justify-center px-5 lg:px-7",children:(0,o.jsxs)(l.default,{href:"/",className:"shrink-0 flex items-center",children:[(0,o.jsx)("img",{src:"/logo/foross.png",alt:"foross.no",className:"h-8 w-auto object-contain dark:hidden"}),(0,o.jsx)("img",{src:"/logo/foross-negativ.png",alt:"foross.no",className:"hidden h-8 w-auto object-contain dark:block"})]})})}),(0,o.jsx)(tJ,{}),(0,o.jsx)(tY,{}),e.children,(0,o.jsx)(t0,{settings:e.config})]})}),(0,o.jsx)(t1.default,{})]}):(0,o.jsxs)("div",{className:(0,u.cn)("dark:bg-[#18150f]"),children:[(0,o.jsx)(tF,{children:(0,o.jsxs)(tz,{children:[(0,o.jsx)(t8,{ref:b,calculatedPercentWidth:C,navbar:e.navbar,config:e.config.searchPane,isOpen:t,hide:()=>r(!1),closeSearchPane:()=>r(!1)}),(0,o.jsx)(t4,{}),h&&(0,o.jsxs)("div",{ref:k,className:"fixed left-0 right-0 z-[100] h-8 flex items-center justify-between px-5 lg:px-8",style:{top:0,background:"var(--ink)",color:"var(--paper)",willChange:"transform"},children:[(0,o.jsx)("span",{className:"font-label text-[11px] uppercase tracking-wider opacity-70 hidden sm:inline",children:new Date().toLocaleDateString("nb-NO",{weekday:"long",day:"numeric",month:"long",year:"numeric"})}),(0,o.jsxs)("div",{className:"hidden md:flex items-center gap-5 font-ep-sans font-semibold text-[10px] uppercase tracking-wider",children:[(0,o.jsxs)("span",{className:"opacity-70",style:{color:"var(--paper)"},children:["Hei ",m?.user?.name?.split(" ")[0]??"deg"]}),(0,o.jsx)("span",{className:"opacity-40",children:"·"}),(0,o.jsx)(l.default,{href:"/redaksjon",className:"opacity-80 hover:opacity-100 transition-opacity",style:{color:"var(--paper)"},children:"Redaksjonsverktøy"})]})]}),(0,o.jsx)("header",{ref:w,className:(0,u.cn)("fixed left-0 right-0 z-[101] h-[64px]",h?"top-8":"top-0"),style:{background:"var(--paper)",willChange:"transform"},children:(0,o.jsxs)("div",{className:"h-full flex items-center",children:[(0,o.jsxs)("button",{onClick:()=>r(e=>!e),"aria-label":"Utforsk",className:"h-full px-5 lg:px-7 flex items-center gap-2.5 text-white text-sm font-semibold tracking-wide shrink-0 hover:opacity-90 transition-opacity",style:{background:"var(--indigo)",borderRight:"1px solid var(--indigo-2)"},children:[(0,o.jsx)(f.FontAwesomeIcon,{icon:d.faMagnifyingGlass,className:"text-sm"}),(0,o.jsx)("span",{className:"hidden sm:inline",children:"Utforsk"})]}),(0,o.jsxs)(l.default,{href:"/",className:"shrink-0 flex items-center px-5 lg:px-7",children:[(0,o.jsx)("img",{src:"/logo/foross.png",alt:"foross.no",className:(0,u.cn)("h-8 w-auto object-contain","dark"===n&&"hidden")}),(0,o.jsx)("img",{src:"/logo/foross-negativ.png",alt:"foross.no",className:(0,u.cn)("h-8 w-auto object-contain","dark"!==n&&"hidden")})]}),(0,o.jsxs)("nav",{className:"hidden lg:flex flex-1 items-center justify-end pr-6",children:[(0,o.jsx)(tL,{sections:e.sections,series:e.series,currentNavbar:N}),(0,o.jsx)("div",{className:"ml-4 pl-4 border-l border-foreground
11/10 dark:border-white/10",children:(0,o.jsx)(tH.default,{className:"w-9 h-9 flex items-center justify-center transition-colors",style:{color:"var(--muted)"}})})]}),(0,o.jsx)("div",{className:"lg:hidden flex items-center gap-2 ml-auto pr-4",children:(0,o.jsx)(tH.default,{className:"w-9 h-9 flex items-center justify-center transition-colors",style:{color:"var(--muted)"}})})]})}),(0,o.jsx)(tJ,{}),(0,o.jsxs)("div",{ref:j,className:(0,u.cn)(h?"mt-[96px]":"mt-[64px]"),style:{willChange:"transform"},children:[(0,o.jsx)(tY,{}),e.children]}),(0,o.jsx)(t0,{settings:e.config})]})}),(0,o.jsx)(t1.default,{})]})}],704824)},751910,e=>{"use strict";var t=e.i(246129),r=e.i(819728),n=e.i(263519),i=e.i(761980),o=e.i(477443),s=e.i(74491),a=e.i(758577),l=e.i(674222),c=({children:e,navigate:c,disableAnimation:u,useHref:d,disableRipple:f=!1,skipFramerMotionAnimations:p=u,reducedMotion:m="never",validationBehavior:h,locale:x="en-US",labelPlacement:v,defaultDates:g,createCalendar:y,spinnerVariant:b,...w})=>{let j=e;c&&(j=(0,t.jsx)(a.RouterProvider,{navigate:c,useHref:d,children:j}));let k=(0,i.useMemo)(()=>(u&&p&&(s.MotionGlobalConfig.skipAnimations=!0),{createCalendar:y,defaultDates:g,disableAnimation:u,disableRipple:f,validationBehavior:h,labelPlacement:v,spinnerVariant:b}),[y,null==g?void 0:g.maxDate,null==g?void 0:g.minDate,u,f,h,v,b]);return(0,t.jsx)(r.ProviderContext,{value:k,children:(0,t.jsx)(n.I18nProvider,{locale:x,children:(0,t.jsx)(o.MotionConfig,{reducedMotion:m,children:(0,t.jsx)(l.OverlayProvider,{...w,children:j})})})})},u=e.i(51046),d=e.i(222849),f=e.i(397751),p=e.i(340606);e.s(["Providers",0,function({children:e}){return(0,t.jsx)(f.SessionProvider,{children:(0,t.jsxs)(c,{children:[(0,t.jsx)(u.ToastProvider,{regionProps:{className:"z-[150]"}}),(0,t.jsx)(d.ThemeProvider,{attribute:"class",defaultTheme:"light",children:(0,t.jsx)(p.HowlerAudioProvider,{children:e})})]})})}],751910)}]);

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.