PageSourceSearch

https://rvts.no/_next/static/chunks/1lulchu59epq9.js

js rvts.no collected 2026-09-26 04:50:06 UTC 113,186 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="fb0f8bd4-dff5-b423-291e-4dcabd699280")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,53239,e=>{"use strict";var t=e.i(68140),l=e.i(13770),r=e.i(84151),s=e.i(50955),i=e.i(58992);let a=["preview"],n={news:"/aktuelt"};var o=e.i(70050),d=e.i(40412),c=e.i(29476);function u({article:e,isHeader:l,imagePriority:r}){if(!e)return null;let s=e.route?.path||`/${e.id||e.name}`,i=e.properties?.fields||[],a=e.properties?.leadRichText,n=e.properties?.image;return(0,t.jsx)(d.default,{href:s,className:`block h-full w-full ${n?"":"rounded-2xl bg-blue-200 p-6"}`,children:(0,t.jsxs)("div",{className:"flex h-full flex-col",children:[n&&(0,t.jsx)("div",{className:`relative mb-4 w-full overflow-hidden rounded-2xl ${l?"aspect-[16/9]":"aspect-square"}`,children:(0,t.jsx)(o.default,{...n,className:"object-cover"})}),(0,t.jsxs)("div",{className:"flex flex-grow flex-col",children:[(0,t.jsx)("div",{className:`${n?"px-0":""} ${l?"font-bold display-m":"text-2xl font-medium"}`,children:e.name}),!n&&a&&(0,t.jsx)("div",{className:"mt-4 text-lg text-gray-600",children:(0,t.jsx)(c.default,{richText:a})}),(0,t.jsx)("div",{className:`flex flex-wrap gap-1 pt-2 ${!l?"mt-auto":""}`,children:i.map((e,l)=>(0,t.jsxs)("span",{className:"text-sm text-gray-600",children:[e.name,l<i.length-1&&" | "]},l))})]})]})})}var m=e.i(27549),f=e.i(40161),h=e.i(61428),p=e.i(25767),x=e.i(64578),g=e.i(30018);function b(e,t){return e.items.map(e=>({...e,properties:{...e.properties,image:(0,x.parseUmbracoImage)(e.properties?.image,{crops:[t]})}}))}function v({headerData:e,headerArticles:l,initialArticles:r,onLoadMore:s,hasMore:i,isLoadingMore:a,selectedFilters:n,onFilterChange:p,uniqueTags:x}){if(!e||!r||!l)return(0,t.jsx)(t.Fragment,{});let g=e.properties?.richText,y=b(l,"rectangular"),w=b(r,"square").filter(e=>!l.items.some(t=>t.id===e.id)).filter(e=>{if(n.includes("Alle"))return!0;let t=e.properties?.fields?.map(e=>e.name)||[];return n.some(e=>t.includes(e))}),N=w.slice(0,3),C=w.slice(3,4),k=w.slice(4),S=(0,m.useRef)(null),$=(0,f.useInView)(S);return(0,m.useEffect)(()=>{$&&!a&&i&&s()},[$]),(0,t.jsx)("div",{className:"pb-14 layout-padding",children:(0,t.jsxs)("div",{className:"mx-auto max-w-site-width bg-white",children:[(0,t.jsx)("h1",{className:"font-bold display-xl",children:e.name}),g&&(0,t.jsx)("div",{className:"mb-8 mt-4 ingress",children:(0,t.jsx)(c.default,{richText:g})}),l.items?.length>0&&(0,t.jsxs)("div",{className:"mb-16 flex flex-col lg:flex-row lg:gap-8",children:[l.items[0]&&(0,t.jsx)(d.default,{href:l.items[0].route?.path||`/${l.items[0].id||l.items[0].name}`,className:"group relative block w-full overflow-hidden rounded-2xl lg:w-[calc((100%-32px)*0.58)]",children:(0,t.jsxs)("div",{className:"relative w-full",children:[y?.[0]?.properties?.image&&(0,t.jsx)(o.default,{...y[0].properties.image,className:"h-full w-full rounded-2xl object-cover",sizes:"(max-width: 768px) 100vw, (max-width: 1024px) 58vw, 800px",priority:!0}),(0,t.jsx)("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-t from-black/80",children:(0,t.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-6 lg:p-8",children:[(0,t.jsx)("div",{className:"text-[32px] font-bold text-white",children:l.items[0].name}),l.items[0].properties?.fields&&(0,t.jsx)("div",{className:"mt-2 flex flex-wrap gap-1",children:l.items[0].properties.fields.map((e,r)=>(0,t.jsxs)("span",{className:"text-sm text-white",children:[e.name,r<(l.items[0].properties?.fields?.length||0)-1&&" | "]},r))})]})})]})}),l.items[1]&&(0,t.jsx)("div",{className:"mt-4 w-full sm:mt-6 lg:mt-0 lg:w-[calc((100%-32px)*0.42)]",children:(0,t.jsx)(u,{imagePriority:!0,article:{...l.items[1],properties:{...l.items[1].properties,image:y[1].properties.image}},isHeader:!0})})]}),(0,t.jsx)("div",{className:"mb-8",children:(0,t.jsx)("hr",{className:"mb-6 border-blue-200"})}),(0,t.jsxs)("div",{className:"mb-6 flex flex-row flex-wrap gap-x-3 gap-y-3",children:[(0,t.jsx)("button",{onClick:()=>p("Alle"),className:`rounded-3xl border border-gray-200 p-1 px-4 font-medium transition-all ${n.includes("Alle")?"bg-blue-600 text-white hover:border-blue-700 hover:bg-blue-700":"bg-white hover:border-blue-200 hover:bg-blue-200"}`,children:"Alle"}),x.map(e=>(0,t.jsx)("button",{onClick:()=>p(e),className:`rounded-3xl border border-gray-200 p-1 px-4 font-medium transition-all ${n.includes(e)?"bg-blue-600 text-white hover:border-blue-700 hover:bg-blue-700":"bg-white hover:border-blue-200 hover:bg-blue-200"}`,children:e},e))]}),(0,t.jsx)("hr",{className:"mb-6 border-blue-100"}),(0,t.jsx)("div",{className:"flex w-full flex-row flex-wrap gap-10",children:N.map(e=>(0,t.jsx)("div",{className:"w-full sm:w-[calc(50%-20px)] lg:w-[calc((100%-80p
2x)/3)]",children:(0,t.jsx)(u,{article:e})},e.id||e.name))}),(0,t.jsxs)("div",{className:"mb-16 mt-16 flex w-full flex-col gap-10 lg:flex-row",children:[(0,t.jsx)(j,{className:"w-full lg:w-[calc(((100%-80px)/3*2)+40px)]"}),(0,t.jsx)("div",{className:"w-full lg:w-[calc((100%-80px)/3)]",children:C.map(e=>(0,t.jsx)(u,{article:e},e.id||e.name))})]}),k.length>0&&(0,t.jsx)("div",{className:"mt-16 flex w-full flex-row flex-wrap gap-10",children:k.map(e=>(0,t.jsx)("div",{className:"w-full sm:w-[calc(50%-20px)] lg:w-[calc((100%-80px)/3)]",children:(0,t.jsx)(u,{article:e})},e.id||e.name))}),(0,t.jsx)("div",{ref:S}),a&&(0,t.jsx)("div",{className:"col-span-full mt-8 flex justify-center",children:(0,t.jsx)(h.default,{})})]})})}function j({className:e}){return(0,t.jsxs)("div",{className:`overflow-hidden rounded-2xl rounded-tl-none bg-blue-600 text-white @container ${e}`,children:[(0,t.jsxs)("div",{className:"flex flex-col items-start @[750px]:flex-row",children:[(0,t.jsx)("div",{children:(0,t.jsxs)("h2",{className:"relative block rounded-br-2xl bg-white p-6 text-gray-950 display-m @[750px]:px-10 @[750px]:py-8",children:["Nyhetsbrev",(0,t.jsx)("div",{className:"absolute bottom-0 left-0 z-10 h-[54px] w-[18px] translate-y-[calc(100%)] rounded-tl-2xl bg-transparent shadow-[0_-18px_0_0_#fff]"}),(0,t.jsx)("div",{className:"absolute right-0 top-0 z-10 h-[54px] w-[18px] translate-x-full rounded-tl-2xl bg-transparent shadow-[0_-18px_0_0_#fff]"})]})}),(0,t.jsx)("p",{className:"px-4 pt-6 @[750px]:px-10",children:`V\xe5rt nyhetsbrev gir informasjon om kommende kurs, konferanser, kompetanseutviklingsprogrammer eller andre nyheter om ${(0,g.getOrgName)()}\xb4s tilbud og tjenester.`})]}),(0,t.jsx)(p.default,{isWhite:!0,className:"mx-4 mb-6 mt-8 @[750px]:mx-20 @[750px]:mb-16 @[750px]:mt-24"})]})}var y=e.i(26544);function w(e){return e.split(" ")[0]}e.s(["default",0,function({pathName:e,searchParams:o}){var d;let c,[u,f]=(0,m.useState)(["Alle"]),p=(0,s.useQueryClient)(),x=(d={...o,fields:u.includes("Alle")?void 0:u},Object.entries({state:e===n.aktuelt,...d}).reduce((e,[t,l],r)=>{let s=0===r;if(a?.includes(t))return e;if(Array.isArray(l)){if("fields"===t){let t=`fields:${l.map(e=>w(e)).join(",")}`;return`${e}${!s?"&":""}filter=${t}`}let r=l.map(e=>`${t}=${e}`).join(",");return`${e}${!s?"&":""}${r}`}return null==l?e:`${e}${!s?"&":""}${t}=${l}`},"")),{data:g,isLoading:b,error:j}=(0,r.useQuery)({queryKey:["articlesHeader"],queryFn:i.fetchArticlesHeader}),{data:N,isLoading:C,error:k}=(0,r.useQuery)({queryKey:["headerArticles"],queryFn:()=>(0,i.fetchArticles)("",0,10),enabled:!!g?.properties?.articles}),{data:S,isLoading:$,error:A,fetchNextPage:T,hasNextPage:L,isFetchingNextPage:M,refetch:P}=(0,l.useInfiniteQuery)({queryKey:["articles",x],queryFn:({pageParam:e=0})=>(0,i.fetchArticles)(x,10*e,10),getNextPageParam:(e,t)=>{if(e?.items?.length&&!(e.items.length<10))return t.length},initialPageParam:0}),{data:E}=(0,r.useQuery)({queryKey:["allArticles"],queryFn:()=>(0,i.fetchArticles)("",0,1e3)}),_=(c=new Map,E?.items&&E.items.forEach(e=>{(e.properties?.fields||[]).forEach(e=>{e.name&&c.set(w(e.name),e.name)})}),Array.from(c.values())),z=async e=>{f(t=>{if("Alle"===e)return["Alle"];let l=t.filter(e=>"Alle"!==e);if(!l.includes(e))return[...l,e];{let t=l.filter(t=>t!==e);return 0===t.length?["Alle"]:t}}),await p.invalidateQueries({queryKey:["articles"]}),await P()};if(b||C||$)return(0,t.jsx)("div",{className:"flex h-[50vh] items-center justify-center",children:(0,t.jsx)(h.default,{})});if(j||k||A)return(0,t.jsx)("div",{className:"flex h-[50vh] items-center justify-center",children:(0,t.jsx)(y.default,{message:"Det oppstod en feil ved lasting av artikler. Vennligst prøv igjen senere."})});if(!S?.pages||!g?.properties?.articles||!N?.items)return null;let O={items:S.pages.flatMap(e=>e.items||[])},V={items:N.items.filter(e=>g.properties.articles.some(t=>t.id===e.id||t.content&&t.content.id===e.id))};return(0,t.jsx)(v,{headerData:g,headerArticles:V,initialArticles:O,onLoadMore:T,hasMore:L??!1,isLoadingMore:M,selectedFilters:u,onFilterChange:z,uniqueTags:_})},"prepareFilterStringForUmbraco",0,function(e){return e?e.replaceAll("=",":").split("&").join("&filter="):""}],53239)},87680,e=>{"use strict";var t=e.i(68140),l=e.i(13770),r=e.i(27549),s=e.i(40161),i=e.i(76453),a=e.i(64578),n=e.i(49331),o=e.i(61428),d=e.i(26544),c=e.i(58992),u=e.i(30018),m=e.i(48916);function f(e){return(e??"").toString().split(" ")[0]}function h({label:e,active:l,onClick:r}){return(0,t.jsx)("button",{onClick:r,className:`rounded-3xl border border-gray-200 p-1 px-4 font-medium transition-all ${l?"bg-blue-600 text-white hover:border-blue-700 hover:bg-blue-700":"bg-white hover:border-blue-200 hover:bg-blue-200"}`,children:e})}e.s(["default",0,function({page:e,tags:p,eEvent:x=!1}){let{name:g,properties:b}=e||{},{selectedEvents:v,selectedEventsHeadline:j,heading:y}=b||{},[w,N]=(0,r.useState)(["Alle"]),C=(0,m.parseToggleButtonData)(e?.properties?.eventTopMenuLinks),k=x?c.fetchEEvents:c.fetchEvents,S=(0,r.useMemo)(()=>({heading:y||g,toggleButtonOptions:C,subHeading:(0,u.isArrayPopulated)(v)?j:"",cards:(0,a.parseEventsOrTools)(v,"rectangular")?.map(({richText:e,...t})=>({...t,backgroundColor:x?"bg-yellow":"bg-blue-200"}))}),[y,g,v,j]),$=(0,r.useMemo)(()=>({fields:w.includes("Alle")?void 0:w.map(e=>f(e))}),[w]),A=(0,r.useMemo)(()=>$&&0!==Object.keys($).length?Object.entries($).reduce((e,[t,l],r)=>{if(!l)return e;if(Array.isArray(l)){if("fields"===t){let t=`fields:${l.map(e=>f(e)).join(",")}`;return`${e}${e?"&":""}filter=${t}`}let r=l.map(e=>`${t}=${e}`).join(",");return`${e}${e?"&":""}${r}`}return`${e}${e?"&":""}${t}=${l}`},""):"",[$]),{data:T,isLoading:L,error:M,fetchNextPage:P,hasNextPage:E,isFetchingNextPage:_}=(0,l.useInfiniteQuery)({queryKey:[x?"eLearningEvent":"event",A],queryFn:({pageParam:e=0})=>k(A,e,10),getNextPageParam:(e,t)=>{if(!e)return;let{total:l,items:r}=e;if("number"==typeof l&&Array.isArray(r)&&r.length>0){let e=t.reduce((e,t)=>
2e+(t.items?.length||0),0);return l>e?e:void 0}},initialPageParam:0}),z=T?.pages.flatMap(e=>e?.items?(0,a.parseEvents)(e.items).map(e=>({...e,url:e.route?.path||`/${e.id}`})):[])||[],O=e=>{N(t=>{if("Alle"===e)return["Alle"];let l=t.filter(e=>"Alle"!==e);if(l.includes(e)){let t=l.filter(t=>t!==e);return 0===t.length?["Alle"]:t}return[...l,e]})},V=(0,r.useRef)(null),R=(0,s.useInView)(V);return(0,r.useEffect)(()=>{R&&E&&!_&&P()},[R,E,_,P]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.default,{...S}),(0,t.jsx)("section",{className:"py-8 layout-padding md:py-14",children:(0,t.jsxs)("div",{className:"layout-grid",children:[!x&&(0,t.jsx)("h2",{className:"col-span-full mb-8 display-xs",children:"Kommende arrangementer"}),(0,t.jsx)("div",{className:"col-span-full mb-6",children:(0,t.jsxs)("div",{className:"flex flex-row flex-wrap gap-x-3 gap-y-3",children:[(0,t.jsx)(h,{label:"Alle",active:w.includes("Alle"),onClick:()=>O("Alle")}),(p??[]).map(e=>(0,t.jsx)(h,{label:e,active:w.includes(e),onClick:()=>O(e)},e))]})}),(0,t.jsx)("hr",{className:"col-span-full mb-6 border-blue-100"}),L&&(0,t.jsx)("div",{className:"col-span-full flex h-[200px] items-center justify-center",children:(0,t.jsx)(o.default,{})}),M&&(0,t.jsx)("div",{className:"col-span-full flex h-[200px] items-center justify-center",children:(0,t.jsx)(d.default,{message:"Det oppstod en feil ved lasting av kurs. Vennligst prøv igjen senere."})}),!L&&!M&&z.length>0&&(0,t.jsx)("div",{className:"col-span-full flex flex-col gap-4",children:z.map(e=>(0,t.jsx)(n.default,{event:e},e.id))}),!L&&!M&&0===z.length&&(0,t.jsx)("div",{className:"col-span-full flex h-[200px] items-center justify-center text-gray-600",children:"Dessverre er det ingen kurs tilgjengelig"}),(0,t.jsx)("div",{ref:V}),_&&(0,t.jsx)("div",{className:"col-span-full mt-8 flex justify-center",children:(0,t.jsx)(o.default,{})})]})})]})}])},37831,e=>{"use strict";var t=e.i(68140),l=e.i(40412),r=e.i(26392),s=e.i(70050),i=e.i(29476);function a({title:e,provider:n,type:o,image:d,richText:c,categories:u,description:m,href:f,className:h,externalUrl:p}){let x=p?.[0]?.url?"a":f?l.default:"div";return(0,t.jsxs)(x,{href:p?.[0]?.url||f,target:p?.[0]?.url?"_blank":void 0,rel:p?.[0]?.url?"noopener noreferrer":void 0,className:`group relative flex flex-col overflow-hidden rounded-2xl px-6 pb-20 transition-colors duration-sm ${h} bg-white`,children:[(0,t.jsx)("div",{className:"flex w-full justify-center pb-6 pt-8",children:d&&(0,t.jsx)(s.default,{className:"mx-auto h-24 w-auto object-contain align-middle",sizes:"(min-width: 1024px) 30vw, 55vw",...d})}),(0,t.jsxs)("div",{className:"mt-6 flex flex-col gap-1",children:[(0,t.jsx)("h3",{className:"decoration-red-500 display-xs group-hover:underline",children:e}),(0,t.jsx)("p",{className:"body-2xs",children:n}),(0,t.jsx)(i.default,{className:"pr-7 body-s",richText:c,removeLinks:!0}),(0,t.jsx)("div",{className:"absolute bottom-6 left-6",children:(0,t.jsx)("p",{className:"rounded-md bg-gray-100 px-2 py-1 body-xs",children:o})})]}),(0,t.jsxs)("div",{className:"absolute bottom-0 right-0 rounded-full bg-blue-50 p-2",children:[(0,t.jsx)("div",{className:"absolute right-0 top-0 size-12 -translate-y-[calc(100%-1px)] rotate-90 rounded-tr-2xl bg-transparent shadow-[0_-18px_0_0] shadow-blue-50"}),(0,t.jsx)("div",{className:"absolute right-0 top-0 h-full w-1/2 bg-blue-50"}),(0,t.jsx)("div",{className:"absolute bottom-0 right-0 h-1/2 w-full bg-blue-50"}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 size-12 -translate-x-[calc(100%-1px)] rotate-180 rounded-tl-2xl bg-transparent shadow-[0_-18px_0_0] shadow-blue-50"}),(0,t.jsx)(r.default,{className:"[&_path]:fill-grey relative z-10 size-8"})]})]})}var n=e.i(80712),o=e.i(27549);e.s(["default",0,function({categories:e,cards:l,page:r}){let[s,i]=(0,o.useState)(""),[d,c]=(0,o.useState)("Alle"),{heading:u}=r.properties,m=(0,o.useMemo)(()=>{let e=l;if(s.trim()){let t=s.toLowerCase();e=e.filter(e=>e.title?.toLowerCase().includes(t)||e.provider?.toLowerCase().includes(t)||e.description?.toLowerCase().includes(t)||e.type?.toLowerCase().includes(t)||e.categories?.some(e=>e.toLowerCase().includes(t)))}return d&&"Alle"!==d&&(e=e.filter(e=>e.categories?.some(e=>e.toLowerCase().includes(d.toLowerCase())))),e},[s,d]),f=(0,o.useCallback)(e=>{"Alle"===e?c("Alle"):c(t=>t===e?"Alle":e)},[]);return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("section",{className:"mx-auto max-w-layout layout-padding",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 py-10 lg:flex-row",children:[" ",(0,t.jsx)("div",{className:"w-[60%]",children:(0,t.jsx)("h2",{className:"font-bold display-l",children:u})}),(0,t.jsx)("div",{className:"w-[50%] min-w-[250px] md:w-[40%]",children:(0,t.jsxs)("div",{className:"relative w-full",children:[(0,t.jsx)("input",{type:"text",placeholder:"Søk etter tjenester...",value:s,onChange:e=>i(e.target.value),className:"w-full rounded-full border border-gray-300 px-4 py-3 pr-10 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200"}),(0,t.jsx)("span",{className:"pointer-events-none absolute right-4 top-1/2 -translate-y-1/2",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})})]})})]}),(0,t.jsx)("div",{className:"mb-8 w-full border-b border-gray-200"})," ",(0,t.jsx)("div",{className:"flex h-auto w-full flex-wrap items-center justify-start gap-2",children:e&&e.map((e,l)=>(0,t.jsx)(n.default,{className:`h-10 rounded-full !border-blue-600 !px-4 !py-1 body-xs ${d===e?"!bg-blue-500 !text-white":""}`,variant:"secondary",onClick:()=>f(e),children:e},l))}),(0,t.jsx)("div",{className:"mt-6 w-full border-b border-gray-200"})," ",(0,t.jsx)("div",{className:"mb-4 mt-8 flex",children:(0,t.jsx)("div",{className:"w-full !gap-x-4 layout-grid",children:m.map((e,l)=>(0,t.jsx)("div",{className:"col-span-6 mt-4 lg:col-span-4",children:(0,t.jsx)(a,{...e},l)},l))})}),0===m.length&&s.trim()&&(0,t.jsx)("div",{className:"py-8 text-center",children:(0,t.jsxs)("p",{className:"text-gray-500",children:["Ingen tjenester funnet for ",s]})})]})})}],37831)},11165,e=>{"use strict";var t=e.i(68140),l=e.i(27549),r=e.i(61428),s=e.i(78313),i=e.i(4327),a=e.i(62836),n=(e.i(61559),e.i(84151)),o=e.i(58992),d=e.i(64578),c=e.i(49331),u=(e.i(37018),e.i(40412)),m=e.i(30018),f=e.i(90918),h=e.i(29476);function p({heading:e,richText:l,tag:r,children:s,favoriteId:i}){return(0,t.jsx)("section",{className:"py-6 text-left layout-margin md:py-20",children:(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-rich-text flex-col gap-4 md:gap-6",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)("h1",{className:"display-l",children:e}),i&&(0,t.jsx)(f.default,{classname:"h-fit self-center",pageId:i}),s]}),l&&(0,t.jsx)(h.default,{className:"ingress",richText:l}),r&&(0,t.jsx)("p",{className:"text-gray-600 body-xs",children:r})]})})}e.s(["default",0,function({dropDownData:e,subjectOptions:n}){let[o,d]=(0,l.useState)(!1),c=(0,a.useRouter)(),{data:u,isFetching:m,error:f}=(0,s.default)("getUser",{verifySession:!0});return((0,l.useEffect)(()=>{window.scrollTo({top:0,behavior:"instant"})},[o]),(0,l.useEffect)(()=>{m||u||f||c.push("/logg-inn")},[m,u,f,c]),f)?(0,t.jsx)("div",{children:f.message}):m&&!u?(0,t.jsx)("div",{className:"flex justify-center py-18",children:(0,t.jsx)(r.default,{className:"!size-24"})}):u?o?(0,t.jsx)(i.default,{onCancel:()=>d(!1),userInfo:u,dropDownData:e,isEditMode:!0}):(0,t.jsxs)("div",{className:"layout-padding",children:[!1,(0,t.jsx)(p,{heading:`Hei, ${u.personalInfo?.fullName}`,richText:"Velkommen til din side hos RVTS Sør."}),!1]}):null}],11165)},45488,e=>{"use strict";var t=e.i(68140);function l({className:e}){return(0,t.jsx)("svg",{width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`size-6 ${e}`,children:(0,t.jsx)("path",{d:"M28 24.5C26.5291 24.5005 25.1075 25.0303 23.9951 25.9925C22.8826 26.9548 22.1536 28.2852 21.9412 29.7407C21.7289 31.1962 22.0474 32.6794 22.8385 33.9194C23.6296 35.1594 24.8406 36.0733 26.25 36.4941V40.25C26.25 40.7141 26.4344 41.1592 26.7626 41.4874C27.0908 41.8156 27.5359 42 28 42C28.4641 42 28.9093 41.8156 29.2374 41.4874C29.5656 41.1592 29.75 40.7141 29.75 40.25V36.4941C31.1594 36.0733 32.3704 35.1594 33.1615 33.9194C33.9526 32.6794 34.2711 31.1962 34.0588 29.7407C33.8464 28.2852 33.1174 26.9548 32.0049 25.9925C30.8925 25.0303 29.4709 24.5005 28 24.5ZM28 33.25C27.4808 33.25 26.9733 33.096 26.5416 32.8076C26.1099 32.5192 25.7735 32.1092 25.5748 31.6295C25.3761 31.1499 25.3242 30.6221 25.4254 30.1129C25.5267 29.6037 25.7767 29.136 26.1438 28.7688C26.511 28.4017 26.9787 28.1517 27.4879 28.0504C27.9971 27.9492 28.5249 28.0011 29.0045 28.1998C29.4842 28.3985 29.8942 28.7349 30.1826 29.1666C30.471 29.5983 30.625 30.1058 30.625 30.625C30.625 31.3212 30.3484 31.9889 29.8562 32.4812C29.3639 32.9734 28.6962 33.25 28 33.25ZM45.5 17.5H38.5V12.25C38.5 9.46523 37.3938 6.79451 35.4246 4.82538C33.4555 2.85625 30.7848 1.75 28 1.75C25.2152 1.75 22.5445 2.85625 20.5754 4.82538C18.6062 6.79451 17.5 9.46523 17.5 12.25V17.5H10.5C9.571
274 17.5 8.6815 17.8687 8.02513 18.5251C7.36875 19.1815 7 20.0717 7 21V45.5C7 46.4283 7.36875 47.3185 8.02513 47.9749C8.6815 48.6312 9.57174 49 10.5 49H45.5C46.4283 49 47.3185 48.6312 47.9749 47.9749C48.6312 47.3185 49 46.4283 49 45.5V21C49 20.0717 48.6312 19.1815 47.9749 18.5251C47.3185 17.8687 46.4283 17.5 45.5 17.5ZM21 12.25C21 10.3935 21.7375 8.61301 23.0503 7.30025C24.363 5.9875 26.1435 5.25 28 5.25C29.8565 5.25 31.637 5.9875 32.9497 7.30025C34.2625 8.61301 35 10.3935 35 12.25V17.5H21V12.25ZM45.5 45.5H10.5V21H45.5V45.5Z",fill:"#262626"})})}var r=e.i(89965),s=e.i(80712),i=e.i(17053),a=e.i(62836),n=e.i(40),o=e.i(40412),d=e.i(27549);e.s(["default",0,function({heading:e,description:c,helpDescription:u,email:m,buttonLabel:f="Få tilgang",passwordPlaceholder:h="Passord",pageName:p}){let x=(0,a.useRouter)(),g=(0,a.usePathname)(),b=(0,a.useSearchParams)(),v=(0,i.useForm)({mode:"onTouched",shouldUseNativeValidation:!1}),{handleSubmit:j,trigger:y,formState:{isValid:w,isDirty:N,isSubmitting:C}}=v,k=b.get("passord");return(0,t.jsx)("div",{className:"py-8 md:py-24",children:(0,t.jsx)("section",{className:"layout-padding",children:(0,t.jsx)("div",{className:"layout-grid",children:(0,t.jsx)("div",{className:"col-span-full rounded-2xl bg-gray-100 p-4 py-10 sm:p-10 md:py-18 lg:col-span-10 lg:col-start-2",children:(0,t.jsxs)("div",{className:"mx-auto max-w-rich-text text-center",children:[(0,t.jsx)(l,{className:"mx-auto mb-4 !size-14"}),e&&(0,t.jsx)("h1",{className:"mb-4 display-m",children:e}),c&&(0,t.jsx)("p",{children:"Siden er kun tilgjengelig for deltakere på:"}),(0,t.jsx)("p",{className:"mb-14 ingress",children:p}),(0,t.jsxs)("form",{onSubmit:j(e=>{let{password:t}=e;""!==t&&x.push(`${g}?passord=${encodeURIComponent(t)}`)}),children:[(0,t.jsx)(r.default,{fields:[{type:"password",name:"password",label:h,isSpecificPattern:!1,required:!0}],hookForm:v}),(0,t.jsx)("div",{className:"mt-8",onClick:()=>y(),children:(0,t.jsx)(s.default,{className:`${(!N||!w)&&"pointer-events-none"}`,isLoading:C,disabled:C||!N||!w,variant:"primary",type:"submit",children:f})}),(0,t.jsx)(n.default,{className:"justify-center",error:k?"Feil passord":void 0})]}),u&&(0,t.jsx)("p",{className:"mt-8",children:u.split("{email}").map((e,l,r)=>(0,t.jsxs)(d.Fragment,{children:[e,l<r.length-1&&(0,t.jsx)(o.default,{target:"_blank",className:"underline decoration-red-700 hover:no-underline",href:`mailto:${m}`,children:m})]},l))})]})})})})})}],45488)},97185,e=>{"use strict";var t=e.i(68140),l=e.i(97085),r=e.i(40412),s=e.i(27549),i=e.i(95302),a=e.i(18991),n=e.i(7198);function o(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function d(e,t,l){try{return e(t)}catch(e){return l?(0,a.i)(25,t,e,l):(0,a.i)(24,t,e),null}}function c(e){function t(t){if(void 0===t)return null;let l=Array.isArray(t);return l&&void 0===t[0]?null:(t=l?t[0]:"string"==typeof t?t:"",d(e.parse,t))}return{type:"single",eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:l=>t(l)??e}},withOptions(e){return{...this,...e}}}}c({parse:e=>e,serialize:String});let u=c({parse:e=>{let t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)});function m(e,t){return e.valueOf()===t.valueOf()}c({parse:e=>{let t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),c({parse:e=>{let t=parseInt(e,16);return t==t?t:null},serialize:e=>{let t=Math.round(e).toString(16);return t<"0"||!(1&t.length)?t:"0"+t}}),c({parse:e=>{let t=parseFloat(e);return t==t?t:null},serialize:String}),c({parse:e=>"true"===e.toLowerCase(),serialize:String}),c({parse:e=>{let t=new Date(parseInt(e));return+t==+t?t:null},serialize:e=>""+e.valueOf(),eq:m}),c({parse:e=>{let t=new Date(e);return+t==+t&&f.parse(e)?t:null},serialize:e=>e.toISOString(),eq:m});let f=c({parse:e=>{let t=new Date(e.slice(0,10));return+t==+t&&f.serialize(t)===e.slice(0,10)?t:null},serialize:e=>e.toISOString().slice(0,10),eq:m}),h=(0,n.o)("sync-emitter",()=>(0,i.i)()),p={},x=(e,t)=>"defaultValue"===e?void 0:t;function g(e,t,l,r,s={},a={}){let n=!1,c=Object.entries(e).reduce((e,[c,u])=>{var m;let f=t[c],h=o(r,f),p="multi"===u.type?[]:null,x=void 0===h?"multi"===u.type?l.getAll(f):l.get(f):h,g=o(a,c);return void 0!==g&&((m=o(s,f)??p)===x||null!==m&&null!==x&&"string"!=typeof m&&"string"!=typeof x&&m.length===x.length&&m.every((e,t)=>e===x[t]))?e[c]=g:(n=!0,e[c]=((0,i.o)(x)?null:d(u.parse,x,f))??null,s[f]=x),e},{});return[n||=Object.keys(c).length!==Object.keys(a).length,c]}function b(e,t){return Object.fromEntries(Object.keys(e).map(l=>[l,e[l]??t[l]?.defaultValue??null]))}var v=e.i(80712),j=e.i(62836),y=e.i(17053),w=e.i(83444),N=e.i(40);e.i(7180);var C=e.i(18936),k=e.i(24564);let S=(0,k.createServerReference)("405e715ed5107199e32b94362cd8cfb15bfb9b0095",k.callServer,void 0,k.findSourceMapURL,"handleFeedbackFormSubmit");function $({form:e,heading:l,formId:r}){var i;
2let[a,n]=(0,s.useState)(0),[o,d]=(0,s.useState)(null),{executeRecaptcha:c}=(0,C.useReCaptcha)(),u=a===e?.pages?.length-1,m=0===a,f=(i=e,i?.pages?.map(e=>{let{caption:t,fieldsets:l}=e||{};return{heading:t,fields:l?.[0].columns?.[0]?.fields?.map(e=>"Multiple"===e.type.renderInputType?{heading:e?.caption,type:"radio",options:e?.preValues?.map(t=>({required:e?.required,name:e?.alias,id:`${e?.alias}-${t?.value}`,label:t?.value,value:t?.value}))}:"Long answer"===e.type.name?{required:e?.required,label:e.caption,type:"textarea",name:e?.alias,placeholder:e?.settings?.placeholder||""}:"Short answer"===e.type.name?{required:e?.required,label:e.caption,type:"textfield",name:e?.alias,placeholder:e?.settings?.placeholder||""}:"Data Consent"===e.type.name?{type:"checkbox",name:e?.alias,label:e.caption,id:e?.alias,required:e?.required}:{type:"error",name:e?.alias,label:`Field Type: ${e.type.name} er ikke st\xf8ttet`,id:e?.alias,caption:e?.caption})}})),{register:h,handleSubmit:p,trigger:x,formState:{errors:g,isSubmitting:b,isValid:j}}=(0,y.useForm)({mode:"onTouched",shouldUseNativeValidation:!1});async function w(e){try{if(!c)throw Error("Recaptcha is not initialized");let{error:t,success:l}=await S({formData:e,gRecaptchaToken:"",formId:r})||{};if(l)return void d("success");d(t||"Noe gikk galt")}catch(e){d(e.message||"Noe gikk galt")}}return(0,s.useEffect)(()=>{"success"===o&&window.scrollTo({top:0})},[o]),(0,t.jsxs)("form",{onSubmit:p(w),className:"col-span-full mx-auto w-full max-w-layout layout-padding",children:[(0,t.jsxs)("div",{className:"mb-16 md:my-14 md:text-center",children:[(0,t.jsx)("h2",{className:"my-4 pre-title md:my-0",children:"Tilbakemelding"}),(0,t.jsx)("h1",{className:"display-m",children:l})]}),"success"===o&&(0,t.jsx)("p",{className:"mb-40 text-center display-xs md:pt-8",children:"Takk for din tilbakemelding"}),"success"!==o&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{children:(0,t.jsx)(A,{...f?.[a],register:h,errors:g},a)}),(0,t.jsxs)("div",{className:"mt-20 flex items-center justify-between",children:[(0,t.jsx)("div",{children:!m&&(0,t.jsx)(v.default,{disabled:b,onClick:()=>{d(null),n(a-1),window.scrollTo({top:0,behavior:"instant"})},variant:"secondary",children:"Forrige"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)(v.default,{isLoading:b,disabled:b,visualDisabled:!j,type:"submit",onClick:()=>{j?u||(n(a+1),window.scrollTo({top:0,behavior:"instant"})):x()},children:u?"Send":"Neste"}),(0,t.jsx)(N.default,{error:o})]})]})]})]})}function A({heading:e,fields:l,register:r,errors:s}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-12 text-center display-xs",children:e}),(0,t.jsx)("div",{className:"flex flex-col gap-10 md:gap-16",children:(0,t.jsx)(T,{fields:l,register:r,errors:s})})]})}function T({fields:e,register:l,errors:r}){return e?.map(e=>{switch(e?.type){case"radio":return(0,t.jsx)(P,{...e,register:l,errors:r},e?.alias);case"textarea":return(0,t.jsx)(L,{...e,register:l,errors:r},e?.name);case"textfield":return(0,t.jsx)(M,{...e,register:l,errors:r},e?.name);case"checkbox":return(0,t.jsx)("div",{className:"mx-auto w-full max-w-[687px]",children:(0,s.createElement)(w.default,{...l(e?.name,{required:"MÃ¥ fylles ut"}),key:e?.name,...e,register:l,error:r?.[e?.name]?.message,caption:e?.caption})});case"error":return(0,t.jsx)("div",{children:e?.label});default:return null}})}function L({name:e,placeholder:l,register:r,required:s,label:i,errors:a}){return(0,t.jsxs)("div",{className:"mx-auto w-full max-w-[687px]",children:[(0,t.jsx)("label",{htmlFor:e,className:"mb-3 block text-center body-s",children:i}),(0,t.jsx)("textarea",{id:e,className:"h-[336px] w-full rounded-lg p-4 focus:outline-none",placeholder:l,...r(e,{required:!!s&&"MÃ¥ fylles ut"})}),(0,t.jsx)(N.default,{error:a?.[e]?.message})]})}function M({name:e,placeholder:l,register:r,required:s,label:i,errors:a}){return(0,t.jsxs)("div",{className:"mx-auto w-full max-w-[687px]",children:[(0,t.jsx)("label",{htmlFor:e,className:"mb-3 block text-center body-s",children:i}),(0,t.jsx)("input",{id:e,type:"text",className:"h-12 w-full rounded-lg p-4 focus:outline-none",placeholder:l,...r(e,{required:!!s&&"MÃ¥ fylles ut"})}),(0,t.jsx)(N.default,{error:a?.[e]?.message})]})}function P({options:e,heading:l,register:r,errors:s}){return(0,t.jsxs)("fieldset",{children:[(0,t.jsx)("legend",{className:"mb-3 w-full text-center body-s",children:l}),(0,t.jsx)("div",{className:"flex justify-center gap-8",children:e.map((l,s)=>{let i=s===e.length-1,a=0===s;return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(E,{...l,register:r}),(a||i)&&(0,t.jsx)("p",{className:"absolute -bottom-1 left-1/2 -translate-x-1/2 translate-y-full whitespace-nowrap body-2xs",children:a?"veldig uenig":"veldig enig"})]},l.id)})}),(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(N.default,{error:s?.[e?.[0]?.name]?.message})})]})}function E({value:e,label:l,name:r,id:s,register:i,required:a}){return(0,t.jsxs)("div",{children:[(0,t.jsx)("input",{...i(r,{required:!!a&&"MÃ¥ fylles ut"}),className:"peer sr-only",type:"radio",value:e,name:r,id:s}),(0,t.jsx)("label",{className:"grid size-8 cursor-pointer place-content-center rounded-full border border-[#808080] font-semibold body-s hover:border-blue-950 peer-checked:border-blue-950 peer-checked:bg-blue-950 peer-checked:text-white md:text-[20px]",htmlFor:s,children:l})]})}let _={blue:{bg:"bg-south-blue",bgDark:"bg-south-dark-blue",borderDark:"border-south-dark-blue"},green:{bg:"bg-south-green",bgDark:"bg-south-dark-green",borderDark:"border-south-dark-green"},purple:{bg:"bg-south-purple",bgDark:"bg-south-dark-purple",borderDark:"border-south-dark-purple"},yellow:{bg:"bg-south-yellow",bgDark:"bg-south-dark-yellow",borderDark:"border-south-dark-yellow"},orange:{bg:"bg-south-orange",bgDark:"bg-south-dark-orange",borderDark:"border-south-dark-orange"},brown:{bg:"bg-south-brown",bgDark:"bg-south-dark-brown",borderDark:"border-south-dark-brown"}};function z(e){return _[e]??_.blue}function O({items:e,className:i}){return(0,t.jsx)("div",{className:`sticky top-[6rem] z-30 col-span-full mx-auto w-full layout-padding ${i}`,children:(0,t.jsx)("div",{className:"mx-auto flex w-full max-w-layout items-center gap-1 py-2 body-xs",children:e.map(({href:i,label:a},n)=>e.length-1===n?(0,t.jsx)("div",{className:"hidden underline decoration-red-700 md:block",children:a},i):(0,t.jsxs)(s.Fragment,{children:[(0,t.jsx)(l.default,{className:"size-4 rotate-180 md:hidden"}),(0,t.jsx)(r.default,{href:i,className:"hover:underline",children:a}),(0,t.jsx)(l.default,{className:"hidden size-4 md:block"})]},i))})})}function V({index:e,isActive:l,theme:r,className:s,children:i,...a}){let{bg:n,bgDark:o,borderDark:d}=z(r);return(0,t.jsxs)("button",{...a,className:`group relative flex min-w-[4rem] flex-none flex-col items-center overflow-hidden rounded-lg py-2 md:min-w-[auto] md:gap-0 md:rounded-2xl md:px-4 ${s??""}`,children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-black opacity-0 transition-opacity group-hover:opacity-10"}),(0,t.jsx)("div",{className:`relative z-10 mb-2 grid size-[34px] place-content-center rounded-full border md:size-9 ${d} ${l?`${o} text-white`:`${n}`}`,children:e+1}),(0,t.jsx)("span",{className:"relative z-10 min-w-[5.9375rem] text-[0.75rem] font-semibold uppercase",children:i})]})}e.s(["default",0,function({breadcrumb:e,steps:l=[],heading:r,theme:d="blue",form:c,formId:m}){let{bg:f}=z(d),[y,w]=function(e,t={}){let{parse:l=e=>e,type:r,serialize:d,eq:c,defaultValue:u,...m}=t,[{[e]:f},v]=function(e,t={}){let l=(0,s.useId)(),r=(0,n.i)(),d=(0,n.a)(),{history:c=r?.history??"replace",scroll:u=r?.scroll??!1,shallow:m=r?.shallow??!0,throttleMs:f=i.l.timeMs,limitUrlUpdates:v=r?.limitUrlUpdates,clearOnDefault:j=r?.clearOnDefault??!0,startTransition:y,urlKe
2ys:w=p}=t,N=Object.keys(e).join(","),C=(0,s.useRef)(e),k=C.current,S=JSON.stringify(Object.entries(k),x)===JSON.stringify(Object.entries(e),x)&&Object.entries(e).every(([e,t])=>{if(k[e]?.startTransition!==t.startTransition)return!1;let l=k[e]?.defaultValue,r=t.defaultValue;return!!Object.is(l,r)||void 0!==l&&void 0!==r&&t.eq?.(l,r)===!0})?k:e;C.current=S;let $=(0,s.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>[e,o(w,e)??e])),[N,JSON.stringify(w)]),A=Object.values($),T=(0,n.r)(A),L=T.searchParams,M=(0,s.useRef)(null),P=(0,s.useRef)(null),E=(0,i.n)(A),[_]=(0,s.useState)(()=>{let t={},[,l]=g(e,$,L,E,t);return[l,t]}),z=(0,s.useRef)(_[1]),[O,V]=(0,s.useState)(_[0]),R=(0,s.useRef)(O),I=e=>JSON.stringify([A.map(t=>[t,e.getAll(t)]),E]),D=I(L),F=()=>{let[t,r]=g(e,$,L,E,z.current,R.current);return t&&((0,a.t)(1,l,N,r),R.current=r,V(r)),t},q=Object.keys(z.current).join("&")!==A.join("&"),H=null===P.current||P.current===(T.pathname??location.pathname);if(q)M.current=D,F(),z.current=Object.fromEntries(Object.entries($).map(([t,l])=>[l,e[t]?.type==="multi"?L.getAll(l):L.get(l)]));else{let e=!1;H&&M.current!==D&&(M.current=D,e=F()),!e&&O!==R.current&&(H||void 0===T.pathname&&M.current===I(new URLSearchParams(location.search)))&&V(R.current)}(0,s.useEffect)(()=>{P.current=T.pathname??location.pathname,F()},[D,T.pathname]),(0,s.useEffect)(()=>{let t=[];for(let[r,s]of Object.entries($)){let i=({state:t,query:i})=>{V(n=>Object.is(n[r]??null,t)?((0,a.t)(2,l,N,s,t,e[r]?.defaultValue,R.current),n):(R.current={...R.current,[r]:t},z.current[s]=i,(0,a.t)(3,l,N,s,t,e[r]?.defaultValue,R.current),R.current))};(0,a.t)(4,l,s,N),h.on(s,i),t.push([s,i])}return()=>{for(let[e,r]of t)(0,a.t)(5,l,e,N),h.off(e,r)}},[N,$]);let U=(0,s.useCallback)((e,t={})=>{let r,s=("function"==typeof e?e(b(R.current,S)):e)??Object.fromEntries(Object.keys(S).map(e=>[e,null]));(0,a.t)(6,l,N,s);let n=0,p=[];for(let[e,l]of Object.entries(s)){let s=o(S,e),a=$[e];if(!s||void 0===a||void 0===l)continue;(t.clearOnDefault??s.clearOnDefault??j)&&null!==l&&void 0!==s.defaultValue&&(s.eq??function(e,t){return e===t})(l,s.defaultValue)&&(l=null);let x=null===l?null:(s.serialize??String)(l);h.emit(a,{state:l,query:x});let g={key:a,query:x,options:{history:t.history??s.history??c,shallow:t.shallow??s.shallow??m,scroll:t.scroll??s.scroll??u,startTransition:t.startTransition??s.startTransition??y}},b=t.limitUrlUpdates??s.limitUrlUpdates??v;if(b?.method==="debounce"){let e=b.timeMs??i.l.timeMs,t=i.t.push(g,e,T,d);n<e&&(r=t,n=e)}else{let e=b?.timeMs??t.throttleMs??s.throttleMs??f;p.push(i.t.abort(a)),i.r.push(g,e)}}let x=p.length?i.r.flush(T,d):i.r.getPendingPromise(T);for(let e of p)x=e(x);return r??x},[N,c,m,u,f,v?.method,v?.timeMs,y,j,S,$,T.updateUrl,T.getSearchParamsSnapshot,T.rateLimitFactor,d]);return[(0,s.useMemo)(()=>b(O,S),[O,S]),U]}({[e]:{parse:l,type:r,serialize:d,eq:c,defaultValue:u}},m);return[f,(0,s.useCallback)((t,l={})=>v(l=>({[e]:"function"==typeof t?t(l[e]):t}),l),[e,v])]}("steg",u.withDefault(1)),[N,C]=(0,s.useState)(!1),k=y-1,S=l?.[k]?.content,A=l?.length===0?"Opplæringen mangler innhold":"Steget eksister ikke",T=y===l?.length,L=(0,j.useRouter)();return(0,t.jsx)("section",{className:`${f} pb-16 md:pb-24 short:md:pb-16`,children:(0,t.jsxs)("div",{className:"mx-auto grid max-w-[1795px] grid-cols-1 md:grid-cols-[auto_1fr_auto] short:grid-cols-1 short:md:grid-cols-1",children:[(0,t.jsx)(O,{items:e,className:f}),c&&N&&(0,t.jsx)($,{form:c,heading:r,formId:m}),!N&&(0,t.jsxs)(t.Fragment,{children:[r&&(0,t.jsx)("div",{className:"col-span-full mx-auto w-full max-w-layout py-4 md:py-6 short:md:py-4",children:(0,t.jsx)("h1",{className:"hyphens-auto text-balance text-center display-l",children:r})}),(0,t.jsx)("aside",{className:`${f} sticky left-0 top-[8rem] z-20 flex gap-0.5 overflow-x-auto bg-blue-200 pb-2 layout-padding no-scrollbar md:top-[calc(6rem+2.1875rem)] md:h-max md:flex-col md:overflow-y-auto md:overflow-x-hidden md:px-0 md:pb-0 short:md:top-[8rem] short:md:h-auto short:md:flex-row short:md:justify-center short:md:overflow-x-auto short:md:overflow-y-visible short:md:px-[var(--layout-padding,0rem)] short:md:pb-2`,children:l?.map((e,l)=>(0,t.jsx)(V,{"aria-label":e.label,index:l,theme:d,isActive:k===l,onClick:()=>{w(l+1,{history:"replace",shallow:!0,scroll:!1}),window.scrollTo({top:0,behavior:"instant"})},children:e.label},e.label))}),(0,t.jsxs)("div",{className:"mt-4 h-full grow rounded-2xl bg-white md:mt-0 short:md:mt-4",children:[S||(0,t.jsx)("div",{className:"my-4 layout-padding",children:A}),(0,t.jsx)("div",{className:"my-10 flex w-full max-w-layout justify-end layout-padding",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[T&&c&&(0,t.jsx)(v.default,{onClick:()=>{window.scrollTo({top:0,behavior:"instant"}),C(!0)},variant:"secondary",children:"Gi tilbakemelding og avslutt"}),(0,t.jsx)(v.default,{onClick:()=>{(window.scrollTo({top:0,behavior:"instant"}),T)?L.push("/opplaering"):w(y+1,{history:"replace",shallow:!0,scroll:!1})},children:T?"Avslutt":"Neste"})]})})]}),(0,t.jsx)("div",{className:"hidden w-8 md:block short:md:hidden"})]})]})})}],97185)},80468,e=>{"use strict";var t=e.i(68140),l=e.i(76453),r=e.i(64578),s=e.i(27549),i=e.i(13770),a=e.i(58992),n=e.i(61428),o=e.i(26544),d=e.i(49331),c=e.i(40161),u=e.i(47170);function m(e){return e.split(" ")[0]}e.s(["default",0,function({page:e,categories:f,tags:h=[]}){var p;let{name:x,properties:g}=e||{},{selectedEvents:b,selectedEventsHeadline:v,heading:j}=g||{}
2,[y,w]=(0,s.useState)(["Alle"]),[N,C]=(0,s.useState)([]),k={heading:j||x,subHeading:v,cards:(0,r.parseEventsOrTools)(e.properties.popularTools)?.map(({image:e,...t})=>t)||[]},S=(p={fields:y.includes("Alle")?void 0:y.map(e=>m(e))},0===Object.keys(p).length)?"":Object.entries(p).reduce((e,[t,l],r)=>{if(!l)return e;if(Array.isArray(l)){if("fields"===t){let t=`fields:${l.map(e=>m(e)).join(",")}`;return`${e}${e?"&":""}filter=${t}`}let r=l.map(e=>`${t}=${e}`).join(",");return`${e}${e?"&":""}${r}`}return`${e}${e?"&":""}${t}=${l}`},""),$=N.length>0?N.join(","):void 0,{data:A,isLoading:T,error:L,fetchNextPage:M,hasNextPage:P,isFetchingNextPage:E}=(0,i.useInfiniteQuery)({queryKey:["tools",S,$],queryFn:({pageParam:e=0})=>(0,a.fetchTools)(S,e,10,$),getNextPageParam:(e,t)=>{if(!e)return;let{total:l,items:r}=e;if("number"==typeof l&&Array.isArray(r)&&r.length>0){let e=t.reduce((e,t)=>e+(t.items?.length||0),0);return l>e?e:void 0}},initialPageParam:0}),_=A?.pages.flatMap(e=>e?.items?(0,r.parseEvents)(e.items).map(e=>({...e,url:e.route?.path||`/${e.id}`})):[])||[],z=e=>{w(t=>{if("Alle"===e)return["Alle"];let l=t.filter(e=>"Alle"!==e);if(!l.includes(e))return[...l,e];{let t=l.filter(t=>t!==e);return 0===t.length?["Alle"]:t}})},O=(0,s.useRef)(null),V=(0,c.useInView)(O);return(0,s.useEffect)(()=>{V&&P&&!E&&M()},[V]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.default,{...k}),(0,t.jsx)("section",{className:"py-8 layout-padding md:py-14",children:(0,t.jsxs)("div",{className:"layout-grid",children:[(0,t.jsx)("h2",{className:"col-span-full mb-8 display-xs",children:"Alle ressurser"}),(0,t.jsxs)("div",{className:"col-span-full mb-6 flex flex-row flex-wrap gap-x-3 gap-y-3",children:[(0,t.jsx)("button",{onClick:()=>z("Alle"),className:`rounded-3xl border border-gray-200 p-1 px-4 font-medium transition-all ${y.includes("Alle")?"bg-blue-600 text-white hover:border-blue-700 hover:bg-blue-700":"bg-white hover:border-blue-200 hover:bg-blue-200"}`,children:"Alle"}),h.map(e=>(0,t.jsx)("button",{onClick:()=>z(e),className:`rounded-3xl border border-gray-200 p-1 px-4 font-medium transition-all ${y.includes(e)?"bg-blue-600 text-white hover:border-blue-700 hover:bg-blue-700":"bg-white hover:border-blue-200 hover:bg-blue-200"}`,children:e},e))]}),(0,t.jsx)("hr",{className:"col-span-full mb-6 border-blue-100"}),(0,t.jsxs)("div",{className:"col-span-full flex flex-wrap justify-center gap-x-6 gap-y-3 rounded-2xl p-4 outline outline-1 outline-gray-200 md:rounded-full",children:[(0,t.jsxs)("div",{className:"flex cursor-pointer items-center gap-2",onClick:e=>{if(0===N.length){e.preventDefault(),e.stopPropagation();return}C([])},children:[(0,t.jsx)(u.default,{checked:0===N.length,onChange:()=>{}}),"Alle"]}),f?.map(e=>(0,t.jsxs)("div",{className:"flex cursor-pointer items-center gap-2",onClick:()=>C(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),children:[(0,t.jsx)(u.default,{checked:N.includes(e),onChange:()=>{}}),e]},e))]}),(0,t.jsx)("hr",{className:"col-span-full my-6 border-blue-100"}),T&&(0,t.jsx)("div",{className:"col-span-full flex h-[200px] items-center justify-center",children:(0,t.jsx)(n.default,{})}),L&&(0,t.jsx)("div",{className:"col-span-full flex h-[200px] items-center justify-center",children:(0,t.jsx)(o.default,{message:"Det oppstod en feil ved lasting av verktøy. Vennligst prøv igjen senere."})}),!T&&!L&&_.length>0&&(0,t.jsx)("div",{className:"col-span-full flex flex-col gap-4",children:_.map(e=>(0,t.jsx)(d.default,{event:e},e.id))}),!T&&!L&&0===_.length&&(0,t.jsx)("div",{className:"col-span-full flex h-[200px] items-center justify-center text-gray-600",children:"Ingen verktøy funnet"}),(0,t.jsx)("div",{ref:O}),E&&(0,t.jsx)("div",{className:"col-span-full mt-8 flex justify-center",children:(0,t.jsx)(n.default,{})})]})})]})}])},65779,e=>{"use strict";var t=e.i(68140);e.s(["default",0,function(){return(0,t.jsx)("button",{onClick:()=>window.print(),className:"underline hover:no-underline active:no-underline",children:"Skriv ut denne siden"})}])},67345,e=>{"use strict";var t=e.i(68140),l=e.i(27549),r=e.i(64884),s=e.i(82635),i=e.i(6014),a=e.i(79179);function n({className:e}){return(0,t.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`size-6 ${e}`,children:(0,t.jsx)("path",{d:"M13.2917 20.2924L17.5855 15.9999L13.2917 11.7074C13.1988 11.6145 13.1251 11.5042 13.0748 11.3828C13.0245 11.2614 12.9987 11.1313 12.9987 10.9999C12.9987 10.8685 13.0245 10.7384 13.0748 10.617C13.1251 10.4956 13.1988 10.3853 13.2917 10.2924C13.3846 10.1995 13.4949 10.1258 13.6163 10.0755C13.7377 10.0253 13.8678 9.99937 13.9992 9.99937C14.1306 9.99937 14.2607 10.0253 14.3821 10.0755C14.5035 10.1258 14.6138 10.1995 14.7067 10.2924L19.7067 15.2924C19.7997 15.3853 19.8734 15.4956 19.9238 15.617C19.9741 15.7384 20 15.8685 20 15.9999C20 16.1313 19.9741 16.2615 19.9238 16.3829C19.8734 16.5043 19.7997 16.6146 19.7067 16.7074L14.7067 21.7074C14.6138 21.8003 14.5035 21.874 14.3821 21.9243C14.2607 21.9746 14.1306 22.0005 13.9992 22.000
25C13.8678 22.0005 13.7377 21.9746 13.6163 21.9243C13.4949 21.874 13.3846 21.8003 13.2917 21.7074C13.1988 21.6145 13.1251 21.5042 13.0748 21.3828C13.0245 21.2614 12.9987 21.1313 12.9987 20.9999C12.9987 20.8685 13.0245 20.7384 13.0748 20.617C13.1251 20.4956 13.1988 20.3853 13.2917 20.2924Z",fill:"#262626"})})}var o=e.i(40412),d=e.i(22643),c=e.i(94007);e.s(["default",0,function({className:e}){let[u,m]=(0,l.useState)(null),[f,h]=(0,l.useState)(!1),[p,x]=(0,l.useState)(null),{screenWidth:g}=(0,c.useAppSelector)(e=>e.ui),b=(0,d.isBreakpoint)(g,"md");return(0,l.useEffect)(()=>{let e=Array.from(document.querySelectorAll("#sidebar-layout h2")).filter(e=>!e.closest('dialog, [hidden], [aria-hidden="true"]')),t=[],l=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&x(e.target.id)})},{rootMargin:"0px 0px -80% 0px"});return e.forEach((e,r)=>{let s=e.textContent?.trim();if(s){let i=e.id||`${s.replace(/\s+/g,"-").toLowerCase()}-${r}`;e.id=i,e.style.scrollMarginTop=b?"12rem":"6rem",t.push({label:s,id:i}),l.observe(e)}}),t.length>0&&m(t),()=>l.disconnect()},[b]),(0,t.jsx)(s.AnimatePresence,{children:u&&(0,t.jsxs)(r.motion.div,{initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0},className:`fixed left-2 right-2 top-18 z-40 my-8 flex-none rounded-2xl border border-blue-50 bg-blue-100 shadow-md md:right-10 md:top-24 md:mb-0 md:mt-18 print:hidden ${e}`,children:[(0,t.jsx)("div",{className:"p-6",children:(0,t.jsxs)(a.default,{onClick:()=>h(!f),className:"flex w-full items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(i.default,{}),"Innhold ",(0,t.jsx)("span",{className:"hidden xl:inline",children:"på denne siden"})]}),(0,t.jsx)(r.motion.div,{initial:!1,animate:{scaleY:f?-1:1},children:(0,t.jsx)(n,{className:"-rotate-90"})})]})}),(0,t.jsx)(r.motion.ul,{className:"max-h-[60vh] overflow-y-auto",initial:!1,animate:{height:f?"auto":0},children:(0,t.jsx)("div",{className:"px-6 pb-6",children:(0,t.jsx)(s.AnimatePresence,{children:f&&u?.map(({label:e,id:l},s)=>(0,t.jsx)(r.motion.li,{transition:{delay:f?.1*s:0},initial:!1,animate:{opacity:1},exit:{opacity:0},children:(0,t.jsx)(o.default,{onClick:()=>b&&h(!1),className:`block border-b border-gray-200 py-4 transition-colors duration-sm hover:border-red-700 ${p===l&&"border-red-700 font-semibold"}`,href:`#${l}`,children:e})},l))})})})]})})}],67345)},94777,e=>{"use strict";var t=e.i(68140),l=e.i(80712),r=e.i(55396),s=e.i(78313),i=e.i(61428),a=e.i(27549),n=e.i(40),o=e.i(62836),d=e.i(50955),c=e.i(58992),u=e.i(64578);e.s(["default",0,function({page:e}){let m=(0,o.useRouter)(),f=(0,o.useSearchParams)(),h=(0,d.useQueryClient)(),[p,x]=(0,a.useState)(!1),{hookForm:g,status:b,onSubmit:v}=(0,s.default)("confirmEmail");(0,a.useEffect)(()=>{g.handleSubmit(v)()},[]),(0,a.useEffect)(()=>{if("success"!==b)return;let e=f.get("contentKey");if(!e)return;let t=!1;return x(!0),(async()=>{try{let l=await (0,c.fetchByGuid)(e),r=l?.route?.path;if(!r)throw Error("Missing route path for content");h.invalidateQueries({queryKey:["user"]}),t||m.push(`${r}#registration-scroll-target`)}catch(e){console.error(e),t||x(!1)}})(),()=>{t=!0}},[b,f,h,m]);let{heading:j,richText:y}=(0,r.parsePage)(e),w=j||"Konto aktivert!",N=(0,u.parseUmbracoLinks)(e?.properties?.link)?.[0],C=N?.href||"/logg-inn",k=N?.label||"Til logg inn";return p?(0,t.jsxs)(r.default,{extraPadding:!0,heading:w,children:[(0,t.jsx)("p",{className:"mb-8 text-center body-l",children:"Tar deg tilbake til kurset..."}),(0,t.jsx)(i.default,{className:"mx-auto !size-16"})]}):"success"===b?(0,t.jsx)(r.default,{extraPadding:!0,heading:w,richText:y,children:(0,t.jsx)(l.default,{href:C,children:k})}):b?(0,t.jsxs)(r.default,{extraPadding:!0,heading:"Klarte ikke å aktivere konto",children:[(0,t.jsx)(l.default,{onClick:()=>m.refresh(),children:"Prøv igjen"}),(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(n.default,{error:b})})]}):(0,t.jsx)(i.default,{className:"mx-auto my-24 !size-24"})}])},12631,e=>{"use strict";var t=e.i(68140),l=e.i(89965),r=e.i(80712),s=e.i(40),i=e.i(78313),a=e.i(55396),n=e.i(29476),o=e.i(62836);e.s(["default",0,function({page:e}){let{data:d}=(0,i.default)("getUser",{redirectOnUnauthorized:!1}),{hookForm:c,status:u,onSubmit:m}=(0,i.default)("forgotPassword"),f=(0,o.useRouter)(),h=[{type:"email",name:"email",label:"E-post",required:!0,value:d?.personalInfo?.email}],{handleSubmit:p,trigger:x,formState:{isValid:g,isDirty:b,isSubmitting:v}}=c;if("success"===u)return(0,t.jsxs)("section",{className:"my-[4.5rem] text-center layout-padding",children:[(0,t.jsx)("h1",{className:"mb-8 display-l",children:"Sjekk din e-post"}),(0,t.jsx)(n.default,{className:"mx-auto mb-10 max-w-rich-text body-l",richText:e?.properties?.confirmationText})]});let{link:j,...y}=(0,a.parsePage)(e);return(0,t.jsx)(a.default,{...y,children:(0,t.jsxs)("form",{className:"mx-auto max-w-rich-text",onSubmit:p(m),children:[(0,t.jsx)("div",{className:"flex flex-col gap-4",children:(0,t.jsx)(l.default,{fields:h,hookForm:c})}),(0,t.jsxs)("div",{className:"mt-10",children:[(0,t.jsx)("div",{onClick:()=>x(),children:(0,t.jsx)(r.default,{className:`${(!b||!g)&&"pointer-events-none"}`,isLoading:v,disabled:v||!g,variant:"primary",children:"Tilbakestill passord"})}),(0,t.jsx)(s.default,{className:"mt-2 justify-center",error:u}),(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)("button",{className:"mt-8 block link",onClick:()=>f.back(),children:"Tilbake"})})]})]})})}])},84158,e=>{"use strict";var t=e.i(68140),l=e.i(27549),r=e.i(89965),s=e.i(80712),i=e.i(55396),a=e.i(78313),n=e.i(40),o=e.i(62836);let d=[{type:"email",name:"email",label:"E-post",required:!0},{type:"password",name:"password",label:"Passord",required:!0,isSpecificPattern:!1}];e.s(["default",0,function({page:e}){let c=(0,o.useRouter)(),u=(0,o.useSearchParams)(),m=e.properties.redirectUrl?.[0]?.route?.path,f=u.get("returnUrl")||m,{data:h}=(0,a.default)("getUser",{redirectOnUnauthorized:!1});(0,l.useEffect)(()=>{h&&c.push(f)},[h,f,c]);let{hookForm:p,status:x,onSubmit:g}=(0,a.default)("login",{redirectOnSuccess:f}),{handleSubmit:b,trigger:v,formState:{isValid:j,isDirty:y,isSubmitting:w}}=p;return(0,t.jsx)(i.default,{...(0,i.parsePage)(e),children:(0,t.jsxs)("form",{className:"mx-auto max-w-rich-text",onSubmit:b(g),children:[(0,t.jsx)("div",{className:"flex flex-col gap-4",children:(0,t.jsx)(r.default,{fields:d,hookForm:p})}),(0,t.jsxs)("div",{className:"mt-10",children:[(0,t.jsx)("div",{onClick:()=>v(),children:(0,t.jsx)(s.default,{className:`${(!y||!j)&&"pointer-events-none"}`,isLoading:w,disabled:w||!y||!j,variant:"primary",children:"Logg inn"})}),(0,t.jsx)(n.default,{className:"mt-2 justify-center",error:x})]})]})})}])},51393,e=>{"use strict";var t=e.i(68140),l=e.i(89965),r=e.i(80712),s=e.i(40),i=e.i(78313),a=e.i(55396),n=e.i(64578);let o=[{type:"password",name:"password1",label:"Nytt passord",required:!0,description:"Passord må ha minst 10 tegn, og må inneholde tall, store og små bokstaver"}];e.s(["default",0,function({page:e}){let{hookForm:d,status:c,onSubmit:u}=(0,i.default)("resetPassword"),m=(0,n.parseUmbracoLinks)(e?.properties?.confirmationLink)?.[0],{handleSubmit:f,trigger:h,formState:{isValid:p,isDirty:x,isSubmitting:g}}=d;return"success"===c?(0,t.jsx)(a.default,{extraPadding:!0,...(0,a.parsePage)(e)?.confirmation,children:m&&(0,t.jsx)(r.default,{href:m?.href,children:m?.label})}):(0,t.jsx)(a.default,{...(0,a.parsePage)(e),children:(0,t.jsxs)("form",{className:"mx-auto max-w-rich-text",onSubmit:f(u),children:[(0,t.jsx)("div",{className:"flex flex-col gap-4",children:(0,t.jsx)(l.default,{fields:o,hookForm:d})}),(0,t.jsxs)("div",{className:"mt-10",children:[(0,t.jsx)("div",{onClick:()=>h(),children:(0,t.jsx)(r.default,{className:`${(!x||!p)&&"pointer-events-none"}`,isLoading:g,disabled:g||!x||!p,variant:"primary",children:"lagre"})}),(0,t.jsx)(s.default,{className:"mt-2 justify-center",error:c})]})]})})}])},34065,e=>{"use strict";var t=e.i(68140);e.s(["default",0,function({className:e}){return(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`size-6 ${e}`,children:(0,t.jsx)("path",{d:"M18.1255 10.6748C17.9928 12.2185 17.4218 13.6922 16.48 14.9225C15.5381 16.1528 14.2644 17.0884 12.8088 17.6194C11.3532 18.1504 9.77622 18.2547 8.2634 17.9199C6.75057 17.5851 5.36484 16.8251 4.26922 15.7295C3.17361 14.6339 2.4137 13.2482 2.07889 11.7354C1.74409 10.2225 1.84832 8.64556 2.37932 7.
218996C2.91032 5.73436 3.846 4.46069 5.07628 3.51881C6.30656 2.57692 7.78025 2.006 9.32398 1.87322C9.40606 1.86645 9.48866 1.87591 9.56708 1.90106C9.6455 1.92621 9.7182 1.96657 9.78103 2.01982C9.84385 2.07306 9.89557 2.13817 9.93324 2.2114C9.9709 2.28464 9.99377 2.36458 10.0005 2.44665C10.0073 2.52873 9.99785 2.61134 9.9727 2.68976C9.94755 2.76818 9.90719 2.84087 9.85395 2.9037C9.8007 2.96652 9.7356 3.01824 9.66236 3.05591C9.58912 3.09357 9.50918 3.11645 9.42711 3.12322C8.12053 3.23548 6.8732 3.71858 5.83188 4.51569C4.79055 5.31279 3.99856 6.39074 3.54908 7.62269C3.0996 8.85464 3.01134 10.1893 3.29467 11.4698C3.57801 12.7502 4.22116 13.923 5.14845 14.8503C6.07574 15.7776 7.24859 16.4207 8.52901 16.7041C9.80942 16.9874 11.1441 16.8992 12.3761 16.4497C13.608 16.0002 14.686 15.2082 15.4831 14.1669C16.2802 13.1256 16.7633 11.8782 16.8755 10.5717C16.8892 10.4059 16.9682 10.2524 17.0951 10.1448C17.2219 10.0373 17.3863 9.98454 17.5521 9.99822C17.7179 10.0119 17.8714 10.0909 17.9789 10.2177C18.0865 10.3446 18.1392 10.509 18.1255 10.6748ZM9.37554 5.62322V9.99822C9.37554 10.164 9.44139 10.3229 9.5586 10.4402C9.67581 10.5574 9.83478 10.6232 10.0005 10.6232H14.3755C14.5413 10.6232 14.7003 10.5574 14.8175 10.4402C14.9347 10.3229 15.0005 10.164 15.0005 9.99822C15.0005 9.83246 14.9347 9.67349 14.8175 9.55628C14.7003 9.43906 14.5413 9.37322 14.3755 9.37322H10.6255V5.62322C10.6255 5.45746 10.5597 5.29849 10.4425 5.18128C10.3253 5.06407 10.1663 4.99822 10.0005 4.99822C9.83478 4.99822 9.67581 5.06407 9.5586 5.18128C9.44139 5.29849 9.37554 5.45746 9.37554 5.62322ZM12.5005 3.74822C12.686 3.74822 12.8672 3.69323 13.0214 3.59022C13.1756 3.48721 13.2957 3.34079 13.3667 3.16948C13.4376 2.99818 13.4562 2.80968 13.42 2.62782C13.3839 2.44596 13.2946 2.27892 13.1635 2.1478C13.0323 2.01669 12.8653 1.9274 12.6834 1.89123C12.5016 1.85506 12.3131 1.87362 12.1418 1.94458C11.9705 2.01554 11.8241 2.1357 11.721 2.28987C11.618 2.44404 11.563 2.6253 11.563 2.81072C11.563 3.05936 11.6618 3.29781 11.8376 3.47363C12.0134 3.64945 12.2519 3.74822 12.5005 3.74822ZM15.313 5.62322C15.4985 5.62322 15.6797 5.56823 15.8339 5.46522C15.9881 5.36221 16.1082 5.21579 16.1792 5.04448C16.2501 4.87318 16.2687 4.68468 16.2325 4.50282C16.1964 4.32096 16.1071 4.15392 15.976 4.0228C15.8448 3.89169 15.6778 3.8024 15.4959 3.76623C15.3141 3.73006 15.1256 3.74862 14.9543 3.81958C14.783 3.89054 14.6366 4.0107 14.5335 4.16487C14.4305 4.31904 14.3755 4.5003 14.3755 4.68572C14.3755 4.93436 14.4743 5.17281 14.6501 5.34863C14.8259 5.52445 15.0644 5.62322 15.313 5.62322ZM17.188 8.43572C17.3735 8.43572 17.5547 8.38073 17.7089 8.27772C17.8631 8.17471 17.9832 8.02829 18.0542 7.85698C18.1251 7.68568 18.1437 7.49718 18.1075 7.31532C18.0714 7.13346 17.9821 6.96642 17.851 6.8353C17.7198 6.70419 17.5528 6.6149 17.3709 6.57873C17.1891 6.54256 17.0006 6.56112 16.8293 6.63208C16.658 6.70304 16.5116 6.8232 16.4085 6.97737C16.3055 7.13154 16.2505 7.3128 16.2505 7.49822C16.2505 7.74686 16.3493 7.98531 16.5251 8.16113C16.7009 8.33695 16.9394 8.43572 17.188 8.43572Z",fill:"#262626"})})}])},99099,e=>{"use strict";var t=e.i(68140),l=e.i(27549),r=e.i(29476);e.s(["default",0,function({items:e,title:s}){let[i,a]=(0,l.useState)([]);return(0,t.jsxs)("div",{className:"mx-auto max-w-rich-text px-4 layout-spacing-sm sm:px-6 md:px-0",children:[(0,t.jsx)("h2",{className:"mb-4 mt-4 display-s",children:s}),e.map((e,l)=>(0,t.jsxs)("div",{className:"border-b border-gray-200",children:[(0,t.jsxs)("button",{onClick:()=>{a(e=>e.includes(l)?e.filter(e=>e!==l):[...e,l])},className:"flex w-full items-center justify-between py-6 text-left",children:[(0,t.jsx)("span",{className:"pr-8 text-xl font-[500]",children:e.title}),(0,t.jsx)("span",{className:"pl-4 text-2xl",children:i.includes(l)?"−":"+"})]}),i.includes(l)&&(0,t.jsx)("div",{className:"pb-6",children:(0,t.jsx)(r.default,{richText:e.content})})]},l))]})}])},23429,e=>{"use strict";var t=e.i(68140),l=e.i(94007),r=e.i(22643),s=e.i(27549),i=e.i(8033);e.s(["default",0,function({children:e,headingElement:a,className:n,desktopItems:o=3,mobileItems:d=1}
2){let c=(0,s.useRef)(null),[u,m]=(0,s.useState)(0),[f,h]=(0,s.useState)(!0),[p,x]=(0,s.useState)(!0),{screenWidth:g}=(0,l.useAppSelector)(e=>e.ui),b=(0,r.isBreakpoint)(g,"sm")?d:o,v=(0,s.useMemo)(()=>s.Children.count(e),[e]),j=b>=v,y=Math.ceil(v/b)-1,w=(0,s.useCallback)((0,i.debounce)(()=>h(!0),1e3),[]);function N(){x(!1);let e=function(){if(!c.current)return;let e=c.current,t=e.offsetWidth;return Math.round(e.scrollLeft/t)}();void 0!==e&&m(e)}return(0,s.useEffect)(()=>{if(f&&c.current)return c.current.addEventListener("scroll",N),()=>{c.current?.removeEventListener("scroll",N)}},[f]),(0,s.useEffect)(()=>{let e;(e=c.current)&&p&&(e.scrollLeft=e.offsetWidth*u)},[u]),(0,t.jsxs)("div",{className:` ${n}`,children:[(0,t.jsx)("div",{ref:c,className:"flex snap-x snap-mandatory gap-4 overflow-y-auto scroll-smooth layout-padding layout-scroll-padding no-scrollbar lg:gap-10 2xl:p-0",children:s.Children?.map(e,(l,r)=>{if(r%b!=0)return null;let i=r===s.Children.count(e)-1;return(0,t.jsx)("div",{style:{gridTemplateColumns:`repeat(${b}, minmax(0, 1fr))`},className:`grid flex-none items-end layout-grid-horizontal ${i||j?"w-full":"w-[calc(100%-1.5rem)]"}`,children:Array.from({length:b},(l,i)=>(0,t.jsx)("div",{className:"snap-start",children:s.Children.toArray(e)[r+i]},i))})})}),!j&&(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)("div",{className:`mt-5 items-center gap-2 lg:mt-8 ${y>16?"hidden md:flex":"flex"}`,children:Array.from({length:y+1},(e,l)=>{let r=l===u;return(0,t.jsx)("button",{"aria-label":`G\xe5 til side ${l+1}`,tabIndex:-1,onClick:()=>{x(!0),h(!1),m(l),w()},className:`size-3 rounded-full transition-colors duration-md ${r?"bg-blue-300":"bg-blue-200"}`},l)})})})]})}])},52054,e=>{"use strict";var t=e.i(68140),l=e.i(78313),r=e.i(27549);let s=e=>e.toLowerCase().replace(/\s+/g," ").replace(/[?*:]/g,"").trim(),i=e=>e.id||e.getAttribute("name")||s(e.getAttribute("aria-label")||"");e.s(["default",0,function({eventId:e}){let[a,n]=(0,r.useState)(!1),o=(0,r.useRef)(null),d=(0,r.useRef)(new Set),{data:c}=(0,l.default)("getUser",{redirectOnUnauthorized:!1});return(0,r.useEffect)(()=>
2{let t=o.current;if(!t)return;n(!1);let l=document.createElement("script");return l.id="checkin-registration-script",l.src="https://registration.checkin.no/registration.loader.js",l.setAttribute("data-event-id",e),l.async=!0,l.onerror=()=>n(!0),t.appendChild(l),()=>{t.querySelector("#checkin-registration-script")?.remove()}},[e]),(0,r.useEffect)(()=>{let e=o.current;if(!e||!c)return;let t=(e=>{let{fullName:t,email:l,phoneNumber:r,companyTitle:s,countyName:i,municipalityName:a,serviceArea:n,foodInformation:o}=e?.personalInfo||{},{companyName:d,companyWorkplace:c,organizationNumber:u,address:m,postalCode:f,city:h}=e?.businessInfo||{};return[{id:"full-name",value:t},{id:"input-email",value:l},{id:"contact_phone",value:(e=>{let t=(e||"").replace(/\D/g,"").replace(/^00/,"");if(t)return`+47${t.length>8&&t.startsWith("47")?t.slice(2):t}`})(r)},{id:"input-address",value:m},{id:"zip-code",value:f},{id:"input-city",value:h},{id:"organization-number",value:u},{id:"company-name",value:c},{name:"company",labelPrefixes:["Arbeidssted","Bedrift"],value:d},{name:"work_title",labelPrefixes:["Arbeidstittel","Stillingstittel"],value:s},{labelPrefixes:["I hvilket fylke ligger ditt arbeidssted"],value:i},{labelPrefixes:["I hvilken kommune/bydel ligger ditt arbeidssted"],value:a},{labelPrefixes:["Hvor jobber du"],value:n},{labelPrefixes:["Nødvendig informasjon med hensyn til mat","Nødvendig informasjon i forhold til mat","Matpreferanser"],value:o}].filter(e=>!!e.value)})(c);if(!t.length)return;let l=d.current,r=e=>{e.isTrusted&&e.target instanceof HTMLElement&&l.add(i(e.target))};document.addEventListener("input",r,!0);let a=new WeakMap,n=new Set,u=()=>{try{t.forEach(e=>{let t=(e=>{if(e.id){let t=document.querySelector(`#${CSS.escape(e.id)}`);if(t)return[t]}if(e.name){let t=Array.from(document.querySelectorAll(`input[name="${CSS.escape(e.name)}"], select[name="${CSS.escape(e.name)}"]`));if(t.length)return t}if(e.labelPrefixes?.length){let t=e.labelPrefixes.map(s);return Array.from(document.querySelectorAll("input[aria-label], select[aria-label]")).filter(e=>{let l=s(e.getAttribute("aria-label")||"");return t.some(e=>l.startsWith(e))})}return[]})(e);t.length&&n.add(e),t.forEach(t=>{if(l.has(i(t)))return;let r=((e,t)=>{if(e instanceof HTMLSelectElement){let l=Array.from(e.options).find(e=>s(e.textContent||"")===s(t));return l&&e.value!==l.value?l.value:null}return e.value===t?null:t})(t,e.value);if(null===r)return;let n=a.get(t),o=n?.value===r?n.count:0;o>=5||(a.set(t,{value:r,count:o+1}),((e,t)=>{let l;if(e instanceof HTMLSelectElement){let l;return l=Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype,"value")?.set,l?.call(e,t),e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))}l=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set,l?.call(e,t),e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))})(t,r))})})}catch(e){console.error("CheckinEmbed: could not prefill registration form",e)}},m=!1,f=new MutationObserver(()=>{m||(m=!0,requestAnimationFrame(()=>{m=!1,u()}))});return f.observe(e,{childList:!0,subtree:!0}),u(),()=>{f.disconnect(),document.removeEventListener("input",r,!0)}},[c]),(0,t.jsxs)("div",{id:"registration",className:"mt-8 overflow-hidden rounded-lg bg-white",children:[a&&(0,t.jsx)("p",{className:"p-4 text-red-500",children:"Kunne ikke laste inn registreringsskjema. Prøv å laste siden på nytt."}),(0,t.jsx)("div",{className:"p-4",ref:o,id:"checkin_registration"})]})}])},38607,e=>{"use strict";var t=e.i(68140),l=e.i(52054),r=e.i(80712),s=e.i(61428),i=e.i(78313),a=e.i(40412);e.s(["default",0,function({eventId:e,contentKey:n,coursePath:o}){let{data:d,isFetching:c}=(0,i.default)("getUser",{redirectOnUnauthorized:!1});if(c&&!d)return(0,t.jsx)(s.default,{className:"mx-auto my-8 !size-12"});if(d)return(0,t.jsx)(l.default,{eventId:e});let u=encodeURIComponent(`${o}#registration-scroll-target`),m=`/logg-inn?returnUrl=${u}`,f=`/registrering?contentKey=${encodeURIComponent(n)}&target=registration`;return(0,t.jsxs)("div",{className:"mt-8 rounded-lg bg-white p-6 md:p-8",children:[(0,t.jsx)("p",{className:"mb-6 text-gray-950 body-l",children:"Du må være innlogget for å melde deg på dette kurset."}),(0,t.jsx)(r.default,{href:m,children:"Logg inn for å melde deg på"}),(0,t.jsxs)("p",{className:"mt-6 body",children:["Har du ikke konto hos oss?"," ",(0,t.jsx)(a.default,{className:"underline decoration-red-800 hover:decoration-2",href:f,children:"Registrer deg her"})]})]})}])},15607,e=>{"use strict";var t=e.i(68140),l=e.i(89965),r=e.i(17053),s=e.i(80712),i=e.i(24564);
2let a=(0,i.createServerReference)("60c4101fd0ccc7a921d237860ce25b4d671c1e16ed",i.callServer,void 0,i.findSourceMapURL,"onSubmit");var n=e.i(27549),o=e.i(40412);function d({className:e}){return(0,t.jsx)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`size-6 ${e}`,children:(0,t.jsx)("path",{d:"M21.5 4.5H3.5C3.30109 4.5 3.11032 4.57902 2.96967 4.71967C2.82902 4.86032 2.75 5.05109 2.75 5.25V18C2.75 18.3978 2.90804 18.7794 3.18934 19.0607C3.47064 19.342 3.85218 19.5 4.25 19.5H20.75C21.1478 19.5 21.5294 19.342 21.8107 19.0607C22.092 18.7794 22.25 18.3978 22.25 18V5.25C22.25 5.05109 22.171 4.86032 22.0303 4.71967C21.8897 4.57902 21.6989 4.5 21.5 4.5ZM19.5716 6L12.5 12.4828L5.42844 6H19.5716ZM20.75 18H4.25V6.95531L11.9928 14.0531C12.1312 14.1801 12.3122 14.2506 12.5 14.2506C12.6878 14.2506 12.8688 14.1801 13.0072 14.0531L20.75 6.95531V18Z",fill:"#262626"})})}function c({className:e}){return(0,t.jsx)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`size-6 ${e}`,children:(0,t.jsx)("path",{d:"M21.3472 14.8554L16.9306 12.8764L16.9184 12.8707C16.6892 12.7727 16.439 12.7333 16.1907 12.7562C15.9424 12.7792 15.7037 12.8636 15.4963 13.002C15.4718 13.0181 15.4484 13.0357 15.4259 13.0545L13.1441 14.9998C11.6984 14.2976 10.2059 12.8164 9.50376 11.3895L11.4519 9.07294C11.4706 9.0495 11.4884 9.02606 11.5053 9.00075C11.6407 8.79384 11.7229 8.55667 11.7445 8.31035C11.7661 8.06402 11.7264 7.81618 11.6291 7.58887V7.57762L9.64438 3.15356C9.5157 2.85662 9.29444 2.60926 9.01362 2.44841C8.7328 2.28756 8.4075 2.22184 8.08626 2.26106C6.81592 2.42822 5.64986 3.05209 4.80588 4.01615C3.9619 4.98021 3.49771 6.21852 3.50001 7.49981C3.50001 14.9436 9.55626 20.9998 17 20.9998C18.2813 21.0021 19.5196 20.5379 20.4837 19.6939C21.4477 18.85 22.0716 17.6839 22.2388 16.4136C22.2781 16.0924 22.2125 15.7672 22.0518 15.4864C21.8911 15.2056 21.644 14.9843 21.3472 14.8554ZM17 19.4998C13.8185 19.4963 10.7682 18.2309 8.51856 15.9813C6.26888 13.7316 5.00348 10.6813 5.00001 7.49981C4.99648 6.58433 5.32631 5.69887 5.92789 5.00879C6.52947 4.3187 7.36167 3.87118 8.26907 3.74981C8.2687 3.75355 8.2687 3.75732 8.26907 3.76106L10.2378 8.16731L8.30001 10.4867C8.28034 10.5093 8.26247 10.5335 8.24657 10.5589C8.10549 10.7754 8.02273 11.0246 8.0063 11.2825C7.98988 11.5404 8.04035 11.7981 8.15282 12.0307C9.0022 13.7679 10.7525 15.5051 12.5084 16.3536C12.7428 16.465 13.002 16.5137 13.2608 16.495C13.5196 16.4762 13.7692 16.3907 13.985 16.2467C14.0091 16.2305 14.0322 16.2129 14.0544 16.1942L16.3334 14.2498L20.7397 16.2232C20.7397 16.2232 20.7472 16.2232 20.75 16.2232C20.6301 17.1319 20.1833 17.9658 19.4931 18.5689C18.8028 19.172 17.9166 19.5029 17 19.4998Z",fill:"#262626"})})}var u=e.i(40),m=e.i(29476);e.i(7180);var f=e.i(18936);e.s(["default",0,function({heading:e,phone:i,email:h,consentRichText:p,success:x}){let g=[{type:"radio",name:"category",label:"Velg emne",required:!0,options:[{label:"Ønske om undervisning",value:"34420"},{label:"Økonomi",value:"34183"},{label:"Kurs du er påmeldt",value:"34421"},{label:"Produkter vi selger",value:"34120"},{label:"Annet",value:"34422"}]},{type:"textarea",name:"message",label:"Kommentar",required:!0},{type:"email",name:"email",label:"Din e-post",required:!0},{type:"text",name:"name",label:"Fullt navn",required:!0},{type:"text",name:"company",label:"Arbeidssted"},{type:"checkbox",name:"terms",label:"Samtykke",required:!0,labelNode:p?(0,t.jsx)(m.default,{richText:p}):void 0}],[b,v]=(0,n.useState)(null),j=(0,r.useForm)({mode:"onTouched",shouldUseNativeValidation:!1}),{executeRecaptcha:y}=(0,f.useReCaptcha)();async function w(e){try{if(!y)throw Error("Recaptcha is not initialized");let t=await y("contactForm"),l=await a(e,t);l.success?v("success"):v(l.error||"Noe gikk galt")}catch(e){v(e.message||"Noe gikk galt")}}let{handleSubmit:N,trigger:C,formState:{isValid:k,isDirty:S,isSubmitting:$}}=j;return(0,t.jsx)("section",{className:"layout-padding layout-spacing-sm",children:(0,t.jsxs)("div",{className:"items-center layout-grid",children:[(0,t.jsxs)("div",{className:"col-span-full lg:col-span-6 lg:pr-10",children:[e&&(0,t.jsx)("h2",{className:"mb-4 display-m",children:e}),i&&(0,t.jsxs)(o.default,{href:`tel:${i}`,target:"_blank",className:"flex items-center gap-2 body-s hover:underline",children:[(0,t.jsx)(c,{}),i]}),h&&(0,t.jsxs)(o.default,{href:`mailto:${h}`,target:"_blank",className:"mt-1 flex items-center gap-2 body-s hover:underline",children:[(0,t.jsx)(d,{}),h]})]}),"success"===b&&(0,t.jsxs)("div",{className:"col-span-full mt-4 rounded-2xl bg-blue-100 p-10 lg:col-span-6 lg:col-start-7 lg:row-start-1",children:[(0,t.jsx)("h3",{className:"display-s",children:x?.heading}
2),x?.richText&&(0,t.jsx)(m.default,{className:"mt-6",richText:x.richText})]}),(0,t.jsxs)("form",{className:`col-span-full mt-4 flex flex-col items-start gap-4 lg:col-span-6 lg:col-start-7 lg:row-start-1 lg:mt-0 lg:pl-10 ${"success"===b&&"pointer-events-none invisible opacity-0"}`,onSubmit:N(w),children:[(0,t.jsx)(l.default,{className:"w-full",fields:g,hookForm:j}),(0,t.jsx)("div",{className:"mt-2",onClick:()=>C(),children:(0,t.jsx)(s.default,{className:`${(!S||!k)&&"pointer-events-none"} w-full sm:w-[10.5rem]`,isLoading:$,disabled:$||!S||!k,variant:"primary",type:"submit",children:"Send inn"})}),(0,t.jsx)(u.default,{error:b})]})]})})}],15607)},18998,e=>{"use strict";var t=e.i(68140),l=e.i(27549);e.s(["default",0,function({className:e,src:r,dataMessageGuid:s,dataEvaluationGuid:i,dataFontColor:a,dataMessageBackground:n}){let o=r||"https://rvts.atami.no/samtalesimulator.js?v=5";return(0,l.useEffect)(()=>{if(document.querySelector(`script[src="${o}"]`))return;let e=document.createElement("script");return e.src=o,e.async=!0,document.head.appendChild(e),()=>{e.parentNode&&e.parentNode.removeChild(e)}},[o]),(0,t.jsx)("div",{className:`${e||""} flex items-center justify-center py-10`,children:(0,t.jsx)("div",{"data-chatsim-widget":!0,"data-font-color":a||"#272727","data-message-background":n||"#aaced0","data-message-guid":s||"91e171f5-1d73-4bfa-81a2-c405b51c2683","data-evaluation-guid":i||"942ee588-0c55-4700-af88-665c736949af"})})}])},26544,e=>{"use strict";var t=e.i(68140);e.s(["default",0,function({message:e}){return(0,t.jsx)("div",{className:"text-center",children:(0,t.jsx)("p",{className:"text-red-600",children:e})})}])},18786,e=>{"use strict";var t=e.i(68140),l=e.i(27549),r=e.i(58471);e.s(["default",0,function({videoUrl:e,imageRadiusEnabled:s}){let[i,a]=(0,l.useState)(!0),[n,o]=(0,l.useState)(!1),[d,c]=(0,l.useState)(!0),u=(0,l.useRef)(null);return(0,t.jsxs)("div",{className:`relative overflow-hidden ${s?"mx-auto rounded-xl":"w-screen"} flex items-center justify-center`,style:s?{width:"100%",minHeight:"100%",scale:"1.4"}:{width:"100vw",height:"100%",minHeight:"20.25rem",maxHeight:"42rem"},onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[(0,t.jsx)("div",{className:"absolute inset-0 h-full w-full",style:{objectFit:"cover",minHeight:"100%",height:s?"min(56.25vw, 810px)":"56.25vw",borderRadius:s?"0.75rem":void 0,overflow:"hidden",left:"50%",top:"50%",transform:"translateX(-50%) translateY(-50%)"},children:(0,t.jsx)(r.default,{tabIndex:-1,ref:u,url:e,playing:i,muted:d,loop:!0,width:"100%",height:"100%",controls:!1})}),(0,t.jsx)("button",{className:`duration-300 absolute inset-0 z-10 flex w-[100%] items-center justify-center transition-opacity focus:outline-none focus-visible:opacity-100 ${n||!i?"opacity-100":"opacity-0"}`,onClick:()=>{a(!i)},"aria-label":i?"Pause video":"Play video",type:"button",children:(0,t.jsx)("div",{className:"rounded-full bg-black/50 p-4 backdrop-blur-sm transition-all hover:bg-black/70 [button:focus-visible_>&]:ring-2 [button:focus-visible_>&]:ring-blue-500 [button:focus-visible_>&]:ring-offset-2",children:i?(0,t.jsx)("svg",{className:"h-8 w-8 text-white",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})}):(0,t.jsx)("svg",{className:"h-8 w-8 text-white",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M8 5v14l11-7z"})})})}),(0,t.jsx)("button",{className:`absolute z-50 rounded-full bg-black/60 p-2 transition hover:bg-black/80 ${d||n||!i?"opacity-100":"opacity-0"}`,style:s?{right:"14.8%",bottom:"15%"}:{right:"5%",bottom:"5%"},onClick:()=>{c(e=>!e)},"aria-label":d?"Unmute video":"Mute video",type:"button",children:d?(0,t.jsxs)("svg",{className:"h-4 w-4 text-white",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{d:"M7 9v6h4l5 5V4l-5 5H9z"}),(0,t.jsx)("line",{x1:"2",y1:"1",x2:"23",y2:"23",stroke:"currentColor",strokeWidth:2})]}):(0,t.jsx)("svg",{className:"h-4 w-4 text-white",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M7 9v6h4l5 5V4l-5 5H9z"})})})]})}])},73852,e=>{"use strict";var t=e.i(68140),l=e.i(70050),r=e.i(55842),s=e.i(29476);let i=(0,r.default)(()=>e.A(29211),{loadableGenerated:{modules:[72463]},ssr:!1});e.s(["default",0,function({heading:e,image:r,videoUrl:a,caption:n,componentSize:o="Medium",className:d,removePadding:c,isStepLayout:u}){return(0,t.jsx)("section",{className:`layout-spacing-sm ${!c&&"layout-padding"} ${d}`,children:(0,t.jsxs)("div",{className:`mx-auto ${{Liten:"max-w-[712px]",Medium:"max-w-[1100px]",Stor:"max-w-website"}[o]}`,children:[e&&(0,t.jsx)("h2",{className:`mx-auto mb-6 max-w-rich-text display-s ${"Liten"===o?"mb-6":"mb-8"}`,children:e}),(0,t.jsxs)("div",{className:` ${"Stor"===o?!u&&"layout-full-width":"overflow-hidden rounded-2xl"}`,children:[r&&!a&&(0,t.jsx)(l.default,{sizes:{Liten:"(max-width: 712px) 100vw, 712px",Medium:"(max-width: 1100px) 100v
2w, 1100px",Stor:"100vw"}[o],...r,className:"max-h-image w-full object-cover"}),a&&(0,t.jsx)("div",{className:"aspect-video",children:(0,t.jsx)(i,{url:a,width:"100%",height:"100%",controls:!0})})]}),n&&(0,t.jsx)(s.default,{richText:n,className:"mt-2 body-s"})]})})}])},45138,e=>{"use strict";var t=e.i(68140),l=e.i(55842),r=e.i(27549);let s=[{featureType:"water",elementType:"geometry",stylers:[{color:"#e9e9e9"},{lightness:17}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:20}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffffff"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#ffffff"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:16}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:21}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#dedede"},{lightness:21}]},{elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#ffffff"},{lightness:16}]},{elementType:"labels.text.fill",stylers:[{saturation:36},{color:"#333333"},{lightness:40}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#f2f2f2"},{lightness:19}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#fefefe"},{lightness:20}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#fefefe"},{lightness:17},{weight:1.2}]}],i=[{featureType:"water",elementType:"geometry",stylers:[{color:"#46bcec"},{lightness:40}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#e6e6e6"},{lightness:30}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#4ea665"},{lightness:20}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#595959"},{lightness:40},{weight:2.5}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#276337"},{lightness:50}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:70}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#c9e2a6"},{lightness:40}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#a8d5a2"},{lightness:50}]},{featureType:"poi.business",stylers:[{visibility:"off"}]},{elementType:"labels.text.stroke",stylers:[{visibility:"off"},{color:"#ffffff"},{lightness:20}]},{elementType:"labels.text.fill",stylers:[{saturation:50},{color:"#333333"},{lightness:30}]},{elementType:"labels.icon",stylers:[{visibility:"on"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#d1d1d1"},{lightness:50}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#fefefe"},{lightness:40}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#d6d6d6"},{lightness:50},{weight:1}]}];function a({className:e}){return(0,t.jsxs)("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`size-6 ${e}`,children:[(0,t.jsx)("path",{d:"M10.5 1.25C7.186 1.25 4.375 4.061 4.375 7.375C4.375 12.25 10.5 18.75 10.5 18.75C10.5 18.75 16.625 12.25 16.625 7.375C16.625 4.061 13.814 1.25 10.5 1.25Z",fill:"#D02"}),(0,t.jsx)("circle",{cx:"10.5",cy:"7.75",r:"2.25",fill:"#fff"})]})}function n({...e}){return(0,t.jsx)("div",{...e,className:"",children:(0,t.jsx)("div",{className:"relative size-[1px]",children:(0,t.jsx)(a,{className:"absolute bottom-0 left-1/2 !size-14 -translate-x-1/2"})})})}let o=(0,l.default)(()=>e.A(86115),{loadableGenerated:{modules:[81669]}});e.s(["default",0,function({color:e,richText:l,heading:a,coordinates:d}){if(!d)return null;let c=(0,r.useRef)(null);return(0,t.jsx)("section",{className:"h-full w-full",children:d&&(0,t.jsx)("div",{className:"h-full w-full overflow-clip rounded-xl focus:!outline-none",children:(0,t.jsx)(o,{apiKey:"AIzaSyBVJLGARkOqeQ2y03lH8mliWXx5ngea_Vc",defaultCenter:d,defaultZoom:15,mapMinHeight:"100%",options:{streetViewControl:!1,mapTypeControl:!1,rotateControl:!1,zoomControl:!1,fullscreenControl:!1,clickableIcons:!1,minZoom:3,styles:e?i:s},onGoogleApiLoaded:({map:e,maps:t})=>{c.current=e},children:(0,t.jsx)(n,{lat:d.lat,lng:d.lng})})})})}],45138)},15278,e=>{"use strict";var t=e.i(68140),l=e.i(40412),r=e.i(26392),s=e.i(21816),i=e.i(29476),a=e.i(75198),n=e.i(69141),o=e.i(73106),d=e.i(64578),c=e.i(70050),u=e.i(34065),m=e.i(63201),f=e.i(90918);e.s(["default",0,function({id:e,heading:h,richText:p,image:x,href:g,className:b,backgroundColor:v="bg-green-200",arrowBackgroun
2dColor:j="bg-white",categories:y,type:w,city:N,time:C,isOnline:k,isElearning:S,isHybrid:$,externalUrl:A,date:T,isH2:L,duration:M}){let P=A?.[0]?.url?"a":g?l.default:"div",E={"bg-white":"shadow-white","bg-blue-50":"shadow-blue-50","bg-yellow":"bg-yellow-400"};return(0,t.jsxs)("div",{className:`${b} ${{"bg-green-200":"bg-green-200 hover:bg-green-300 active:bg-green-300","bg-blue-200":"bg-blue-200 hover:bg-blue-300 active:bg-blue-300","bg-yellow":"bg-yellow-100 hover:bg-gray-200 active:bg-blue-300"}[v]} group relative flex min-h-[17.5rem] flex-col overflow-hidden rounded-2xl transition-colors duration-sm`,children:[e&&(0,t.jsx)(f.default,{classname:"absolute z-10 top-[0.7rem] right-[0.7rem]",pageId:e}),(0,t.jsxs)(P,{href:A?.[0]?.url||g,target:A?.[0]?.url?"_blank":void 0,rel:A?.[0]?.url?"noopener noreferrer":void 0,children:[x&&(0,t.jsx)(c.default,{...x,className:"object-cover"}),(0,t.jsxs)("div",{className:"flex grow flex-col p-6",children:[T&&(0,t.jsxs)("div",{className:"mb-4 flex items-center gap-2 font-medium body-l",children:[(0,t.jsx)(o.default,{}),T]}),C&&(0,t.jsxs)("div",{className:"mb-2 flex items-center gap-2 font-medium body-s",children:[(0,t.jsx)(m.default,{}),C]}),(0,t.jsx)(L?"h2":"h3",{className:"underline decoration-transparent underline-offset-6 transition-colors duration-sm display-xs group-hover:decoration-[#D02] group-active:decoration-[#D02]",children:h}),p&&(0,t.jsx)(i.default,{className:"mt-2",richText:p,removeLinks:!0}),M&&(0,t.jsxs)("div",{className:"mt-4 flex items-center gap-2",children:[(0,t.jsx)(u.default,{}),(0,t.jsx)("p",{children:M+" minutter"})]}),y&&(0,t.jsx)("div",{className:"mt-3",children:y.map((e,l)=>{let r=l===y.length-1;return(0,t.jsx)("span",{className:"text-gray-700 body-xs",children:`${e}${r?"":" | "}`},e)})}),(w||N||k||S)&&(0,t.jsxs)("div",{className:"mr-6 mt-auto flex flex-wrap items-center gap-4 pt-4",children:[w&&(0,t.jsxs)("div",{className:"flex items-center gap-1 body-s",children:[(0,d.parseIcon)(w,"!size-5"),w]}),(k||$)&&(0,t.jsxs)("div",{className:"flex items-center gap-1 body-s",children:[(0,t.jsx)(n.default,{className:"!size-5"}),"Online"]}),N&&(!k||$)&&(0,t.jsxs)("div",{className:"flex items-center gap-1 body-s",children:[(0,t.jsx)(a.default,{className:"!size-5"}),N]}),S&&(0,t.jsxs)("div",{className:"flex items-center gap-1 body-s",children:[(0,t.jsx)(n.default,{className:"!size-5"}),"E-læringskurs"]})]})]}),(0,t.jsxs)("div",{className:`absolute bottom-0 right-0 rounded-full p-2 ${j}`,children:[(0,t.jsx)("div",{className:`absolute right-0 top-0 size-12 -translate-y-[calc(100%-1px)] rotate-90 rounded-tr-2xl bg-transparent shadow-[0_-18px_0_0] ${E[j]}`}),(0,t.jsx)("div",{className:`absolute right-0 top-0 h-full w-1/2 ${j}`}),(0,t.jsx)("div",{className:`absolute bottom-0 right-0 h-1/2 w-full ${j}`}),(0,t.jsx)("div",{className:`absolute bottom-0 left-0 size-12 -translate-x-[calc(100%-1px)] rotate-180 rounded-tl-2xl bg-transparent shadow-[0_-18px_0_0] ${E[j]}`}),A?.[0]?.url?(0,t.jsx)(s.default,{className:"relative z-20 size-8 [&_path]:fill-gray-950"}):(0,t.jsx)(r.default,{className:"relative z-10 size-8 [&_path]:fill-gray-950"})]})]})]})}])},99438,e=>{"use strict";var t=e.i(68140),l=e.i(26392),r=e.i(29476),s=e.i(34065),i=e.i(27549),a=e.i(89408);function n({className:e}){return(0,t.jsx)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`size-6 ${e}`,children:(0,t.jsx)("path",{d:"M13.25 12.6875H13.1875V12.75V20.25C13.1875 20.4323 13.1151 20.6072 12.9861 20.7361C12.8572 20.8651 12.6823 20.9375 12.5 20.9375C12.3177 20.9375 12.1428 20.8651 12.0139 20.7361C11.8849 20.6072 11.8125 20.4323 11.8125 20.25V12.75V12.6875H11.75H4.25C4.06766 12.6875 3.8928 12.6151 3.76386 12.4861C3.63493 12.3572 3.5625 12.1823 3.5625 12C3.5625 11.8177 3.63493 11.6428 3.76386 11.5139C3.8928 11.3849 4.06766 11.3125 4.25 11.3125H11.75H11.8125V11.25V3.75C11.8125 3.56766 11.8849 3.3928 12.0139 3.26386C12.1428 3.13493 12.3177 3.0625 12.5 3.0625C12.6823 3.0625 12.8572 3.13493 12.9861 3.26386C13.1151 3.3928 13.1875 3.56766 13.1875 3.75V11.25V11.3125H13.25H20.75C20.9323 11.3125 21.1072 11.3849 21.2361 11.5139C21.3651 11.6428 21.4375 11.8177 21.4375 12C21.4375 12.1823 21.3651 12.3572 21.2361 12.4861C21.1072 12.6151 20.9323 12.6875 20.75 12.6875H13.25Z",fill:"#262626",stroke:"#262626",strokeWidth:"0.125"})})}function o({data:e,onClose:l}){let{heading:s,description:d,href:c}=e;return(0,i.useEffect)(()=>{function e(e){"Escape"===e.key&&l()}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[l]),(0,t.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black/50 p-4",onClick:function(e){e.target===e.currentTarget&&l()},onKeyDown:e=>{"Escape"===e.key&&l()},tabIndex:0,role:"button","aria-label":"Lukk popup",children:(0,t.jsxs)("div",{className:"mx-layout relative my-auto w-full max-w-2xl rounded-xl bg-white p-6 md:p-14",role:"dialog","aria-modal":"true",children:[(0,t.jsx)("button",{className:"absolute right-4 top-4 h-10 w-10 rounded-full text-gray-500 hover:bg-gray-100 hover:text-gray-800",onClick:l,"aria-label":"Lukk",children:(0,t.jsx)(n,{className:"ml-2 rotate-45"})}),(0,t.jsx)("h3",{className:"mb-4 hyphens-auto font-bold display-m",children:s}),(0,t.jsx)(r.default,{className:"mb-4",richText:d}),(0,t.jsx)(a.default,{href:c,children:"Gå til kurset"})]})})}e.s(["default",0,function({heading:e,richText:a,className:n,backgroundColor:d="bg-green-200",duration:c,popUpCard:u}){let[m,f]=(0,i.useState)(!1),h="bg-white",p={"bg-white":"shadow-white","bg-blue-50":"shadow-blue-50"};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>f(!0),className:`group relative flex min-h-[17.5rem] flex-col overflow-hidden rounded-2xl transition-colors duration-sm ${n} ${{"bg-green-200":"bg-green-200 active:bg-green-300","bg-blue-200":"bg-blue-200 active:bg-blue-300","bg-yellow-50":"bg-yellow-100 active:bg-yellow-200"}[d]}`,children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 z-10 bg-black opacity-0 transition-opacity group-hover:opacity-10"}),(0,t.jsxs)("div",{className:"relative z-20 flex grow flex-col p-6",children:[(0,t.jsx)("h2",{className:"self-start text-left underline decoration-transparent underline-offset-6 transition-colors duration-sm display-xs group-hover:decoration-[#D02] group-active:decoration-[#D02]",children:e}),a&&(0,t.jsx)(r.default,{className:"mt-2",richText:a,removeLinks:!0}),c&&(0,t.jsxs)("div",{className:"mt-4 flex items-center gap-2",children:[(0,t.jsx)(s.default,{}),(0,t.jsx)("p",{children:c+" minutter"})]})]}),(0,t.jsxs)("div",{className:`absolute bottom-0 right-0 z-20 rounded-full p-2 ${h}`,children:[(0,t.jsx)("div",{className:`absolute right-0 top-0 size-12 -translate-y-[calc(100%-1px)] rotate-90 rounded-tr-2xl bg-transparent shadow-[0_-18px_0_0] ${p[h]}`}),(0,t.jsx)("div",{className:`absolute right-0 top-0 h-full w-1/2 ${h}`}),(0,t.jsx)("div",{className:`absolute bottom-0 right-0 h-1/2 w-full ${h}`}),(0,t.jsx)("div",{className:`absolute bottom-0 left-0 size-12 -translate-x-[calc(100%-1px)] rotate-180 rounded-tl-2xl bg-transparent shadow-[0_-18px_0_0] ${p[h]}`}),(0,t.jsx)(l.default,{className:"relative z-10 size-8 [&_path]:fill-gray-950"})]})]}),m&&u&&(0,t.jsx)(o,{data:u,onClose:()=>f(!1)})]})}],99438)}
2,76453,48916,e=>{"use strict";var t=e.i(68140),l=e.i(15278),r=e.i(23429),s=e.i(30018),i=e.i(40412);function a({options:e=[],className:l}){return!e.length||e.length<2?null:(0,t.jsx)("div",{className:`flex w-full gap-1 rounded-full border border-gray-200 bg-white p-1 md:w-fit md:gap-2 md:whitespace-nowrap md:p-2 ${l??""}`,children:e.map((e,l)=>{let r="display-2xs rounded-full px-6 py-2 font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-1 flex-1 text-center",s="bg-gray-50 text-blue-500 shadow-sm",a="text-gray-600 hover:bg-gray-100";return e.href?(0,t.jsx)(i.default,{href:e.href,className:`${r} ${e.selected?s:a}`,"aria-current":e.selected?"page":void 0,children:e.name},l):(0,t.jsx)("span",{className:` ${r} ${e.selected?s:a}`,"aria-current":e.selected?"page":void 0,children:e.name},l)})})}e.s(["ToggleButton",0,a,"parseToggleButtonData",0,function(e){return e.map((e,t)=>({href:e?.url,name:e?.name,selected:e?.selected}))}],48916),e.s(["default",0,function({heading:e,subHeading:i,cards:n,toggleButtonOptions:o}){return(0,t.jsx)("section",{className:"mt-6 layout-margin md:mt-16",children:(0,t.jsxs)("div",{className:"layout-grid",children:[e&&(0,t.jsx)("h1",{className:"col-span-full display-xl",children:e}),i&&(0,t.jsx)("p",{className:"col-span-full mt-2 w-full display-xs",children:i}),o&&(0,t.jsx)(a,{className:"col-span-full mt-6 md:mt-12",options:o}),(0,s.isArrayPopulated)(n)&&(0,t.jsx)(r.default,{className:"col-span-full mx-auto mt-6 layout-full-width 2xl:layout-not-full-width",children:n?.map(e=>(0,t.jsx)(l.default,{isH2:!0,...e},e.href))})]})})}],76453)},47329,e=>{"use strict";var t=e.i(68140),l=e.i(27549),r=e.i(5686),s=e.i(80712),i=e.i(30018),a=e.i(90918),n=e.i(66826);function o({isOpen:e,onClose:r,moodleInformation:i,myCoursesUrl:a}){return(0,t.jsx)(n.default,{isOpen:e,onClose:r,labelId:"moodle-onboarding-title",children:(0,t.jsxs)("div",{className:"w-full max-w-lg",children:[(0,t.jsx)("div",{className:"mb-2 inline-block rounded-full bg-yellow-300 px-3 py-1 text-sm font-medium text-gray-900",children:"E-læringskurs"}),(0,t.jsx)("h2",{id:"moodle-onboarding-title",className:"mb-6 mt-3 display-s",children:"Velkommen til e-læring!"}),i&&(0,t.jsx)("div",{className:"body-m mb-8 space-y-4 text-gray-700",children:i.elements?.map((e,r)=>(function e(r,s){if("#text"===r.tag)return r.text&&"&nbsp;"!==r.text.trim()&&""!==r.text.trim()?(0,t.jsx)(l.Fragment,{children:r.text.replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")},s):null;if("br"===r.tag)return(0,t.jsx)("br",{},s);let i=r.elements?.map((t,l)=>e(t,l));return"p"===r.tag?i?.some(Boolean)?(0,t.jsx)("p",{children:i},s):null:(0,t.jsx)(l.Fragment,{children:i},s)})(e,r))}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row",children:[(0,t.jsx)(s.default,{href:a??"/mine-kurs",className:"w-full sm:w-auto",children:"Gå til mine kurs"}),(0,t.jsx)("button",{onClick:r,className:"w-full rounded-full border border-gray-400 px-5 py-2.5 font-medium text-gray-700 transition-colors hover:rounded-lg hover:bg-gray-200 sm:w-auto",children:"Lukk"})]})]})})}e.s(["default",0,function({pageId:e,moodleId:n,registrationClosesAt:d,manualLink:c,contentType:u}){let m=d?new Date(d)<new Date:void 0,f=n?(0,r.useCourseEnrollmentButton)(n):null,[h,p]=(0,l.useState)(!1),{isECourse:x,isCheckinEvent:g,isRegularEvent:b}=(0,i.getEventType)(u);if((0,l.useEffect)(()=>{f?.enrollmentResult?.payload?.firstMoodleEnrollment&&p(!0)},[f?.enrollmentResult]),x&&f){let l=(0,t.jsx)(o,{isOpen:h,onClose:()=>p(!1),moodleInformation:f.enrollmentResult?.payload?.moodleInformation,myCoursesUrl:f.enrollmentResult?.payload?.myCoursesUrl});return f.onClick?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:f.onClick,disabled:f.disabled,className:"mt-6 w-full rounded-3xl bg-red-700 px-6 py-3 text-white hover:rounded-lg disabled:cursor-not-allowed disabled:opacity-50 md:mt-8",children:f.label}),l]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{href:f.href,target:f.target,disabled:f.disabled,className:"mt-6 w-full md:mt-8",children:f.label}),e&&(0,t.jsx)(a.default,{size:32,pageId:e}),l]})}return g&&!m?(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)(s.default,{href:"#registration-scroll-target",className:"mt-6 w-full md:mt-8",children:"Til påmelding"}
2),e&&(0,t.jsx)(a.default,{size:32,classname:"h-full self-end mb-1 ml-2",pageId:e})]}):b&&!m?(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)(s.default,{href:c,target:"_blank",className:"mt-6 w-full md:mt-8",children:"Til påmelding"}),e&&(0,t.jsx)(a.default,{size:32,classname:"h-full self-end mb-1 ml-2",pageId:e})]}):null}],47329)},81305,e=>{"use strict";var t=e.i(68140),l=e.i(55842);function r({className:e}){return(0,t.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:` ${e}`,children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_6929_15386)",children:[(0,t.jsx)("path",{d:"M16.0264 31.9991C24.8616 31.9991 32.024 24.8367 32.024 16.0015C32.024 7.16627 24.8616 0.00390625 16.0264 0.00390625C7.19117 0.00390625 0.0288086 7.16627 0.0288086 16.0015C0.0288086 24.8367 7.19117 31.9991 16.0264 31.9991Z",fill:"#DD0022"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.9713 14.5778L13.1682 8.34095C12.9184 8.19688 12.635 8.12105 12.3467 8.12109C12.0583 8.12113 11.775 8.19704 11.5253 8.34118C11.2755 8.48532 11.0681 8.69264 10.9238 8.9423C10.7795 9.19197 10.7034 9.47521 10.7032 9.76358V22.2386C10.7015 22.5273 10.7767 22.8113 10.921 23.0614C11.0653 23.3115 11.2736 23.5187 11.5244 23.6617C11.7738 23.8074 12.0574 23.8842 12.3463 23.8842C12.6351 23.8842 12.9188 23.8074 13.1682 23.6617L23.9713 17.4242C24.221 17.2799 24.4283 17.0724 24.5724 16.8226C24.7166 16.5728 24.7925 16.2895 24.7925 16.0011C24.7925 15.7127 24.7166 15.4294 24.5724 15.1796C24.4283 14.9298 24.221 14.7223 23.9713 14.578V14.5778Z",fill:"white"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_6929_15386",children:(0,t.jsx)("rect",{width:"32",height:"32",fill:"white"})})})]})}var s=e.i(27549);class i{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let l=0;l<this.animations.length;l++)this.animations[l][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return a(this.animations,"duration")}get iterationDuration(){return a(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function a(e,t){let l=0;for(let r=0;r<e.length;r++){let s=e[r][t];null!==s&&s>l&&(l=s)}return l}class n extends i{then(e,t){return this.finished.finally(e).then(()=>{})}}var o=e.i(26935),d=e.i(38196),c=e.i(84869),u=e.i(90212),m=e.i(90832),f=e.i(69686),h=e.i(18459),p=e.i(51371),x=e.i(70934),g=e.i(33836),b=e.i(25542),v=e.i(91388),j=e.i(77182);function y(e,t){var l;let r;return(0,j.isEasingArray)(e)?e[l=e.length,((t-0)%(r=l-0)+r)%r+0]:e}var w=e.i(35359);function N(e){return"object"==typeof e&&!Array.isArray(e)}function C(e,t,l,r){return null==e?[]:"string"==typeof e&&N(t)?(0,w.resolveElements)(e,l,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>null!=e):[e]}function k(e,t,l,r){return"number"==typeof t?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):"<"===t?l:t.startsWith("<")?Math.max(0,l+parseFloat(t.slice(1))):r.get(t)??e}var S=e.i(44712);function $(e,t){return e.at!==t.at?e.at-t.at:null===e.value?1:null===t.value?-1:0}function A(e,t){return t.has(e)||t.set(e,{}),t.get(e)}function T(e,t){return t[e]||(t[e]=[]),t[e]}let L=e=>"number"==typeof e,M=e=>e.every(L);var P=e.i(59745),E=e.i(58206),_=e.i(17428),z=e.i(54377),O=e.i(13737),V=e.i(9380),R=e.i(67121),I=e.i(13590),D=e.i(73388);class F extends D.VisualElement{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(t in e){let l=e[t];if("string"==typeof l||"number"==typeof l)return l}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return(0,I.createBox)()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}}function q(e){let t={presenceContext:null,props:{}
2,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},l=(0,z.isSVGElement)(e)&&!(0,O.isSVGSVGElement)(e)?new V.SVGVisualElement(t):new R.HTMLVisualElement(t);l.mount(e),E.visualElementStore.set(e,l)}function H(e){let t=new F({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),E.visualElementStore.set(e,t)}function U(e,t,l,r){let s=[];if((0,u.isMotionValue)(e)||"number"==typeof e||"string"==typeof e&&!N(t))s.push((0,P.animateSingleValue)(e,N(t)&&t.default||t,l&&l.default||l));else{if(null==e)return s;let i=C(e,t,r),a=i.length;(0,b.invariant)(!!a,"No valid elements provided.","no-valid-elements");for(let e=0;e<a;e++){let r=i[e],n=r instanceof Element?q:H;E.visualElementStore.has(r)||n(r);let o=E.visualElementStore.get(r),d={...l};"delay"in d&&"function"==typeof d.delay&&(d.delay=d.delay(e,a)),s.push(...(0,_.animateTarget)(o,{...t,transition:d},{}))}}return s}let B=function(e={}){let{scope:t,reduceMotion:l,skipAnimations:r}=e;return function(e,s,i){var a;let j,w=[],N={};if(void 0!==l&&(N.reduceMotion=l),void 0!==r&&(N.skipAnimations=r),Array.isArray(e)&&e.some(Array.isArray)){let l,{onComplete:r,...i}=s||{};"function"==typeof r&&(j=r),a={...N,...i},l=[],(function(e,{defaultTransition:t={},...l}={},r,s){let i=t.duration||.3,a=new Map,n=new Map,d={},c=new Map,j=0,w=0,N=0;for(let l=0;l<e.length;l++){let a=e[l];if("string"==typeof a){c.set(a,w);continue}if(!Array.isArray(a)){c.set(a.name,k(w,a.at,j,c));continue}let[x,$,E={}]=a;void 0!==E.at&&(w=k(w,E.at,j,c));let _=0,z=(e,l,r,a=0,n=0)=>{var d;let c=Array.isArray(d=e)?d:[d],{delay:u=0,times:x=(0,m.defaultOffset)(c),type:j=t.type||"keyframes",repeat:C,repeatType:k,repeatDelay:$=0,...A}=l,{ease:T=t.ease||"easeOut",duration:L}=l,P="function"==typeof u?u(a,n):u,E=c.length,z=(0,f.isGenerator)(j)?j:s?.[j||"keyframes"];if(E<=2&&z){let e=100;2===E&&M(c)&&(e=Math.abs(c[1]-c[0]));let l={...t,...A};void 0!==L&&(l.duration=(0,g.secondsToMilliseconds)(L));let r=(0,h.createGeneratorEasing)(l,e,z);T=r.ease,L=r.duration}L??(L=i);let O=w+P;1===x.length&&0===x[0]&&(x[1]=1);let V=x.length-c.length;if(V>0&&(0,p.fillOffset)(x,V),1===c.length&&c.unshift(null),C&&(0,b.warning)(C<20,`Sequence segments can't repeat ${C} times — ignoring repeat option. Use a value below 20 or apply repeat at the sequence level instead.`),C&&C<20){let e=L>0?$/L:0;L=L*(C+1)+$*C;let t=[...c],l=[...x],r=[...T=Array.isArray(T)?[...T]:[T]],s="reverse"===k||"mirror"===k,i=t,a=r;s&&(i=[...t].reverse(),"reverse"===k&&(a=[...r].reverse().map(e=>"function"==typeof e?(0,v.reverseEasing)(e):e)));for(let n=0;n<C;n++){let o=s&&n%2==0,d=o?i:t,u=o?a:r,m=(n+1)*(1+e);e>0&&(c.push(c[c.length-1]),x.push(m),T.push("linear")),c.push(...d);for(let e=0;e<d.length;e++)x.push(l[e]+m),T.push(0===e?"linear":y(u,e-1))}!function(e,t,l=0){let r=t+1+t*l;for(let t=0;t<e.length;t++)e[t]=e[t]/r}(x,C,e)}let R=O+L;!function(e,t,l,r,s,i){for(let t=0;t<e.length;t++){let l=e[t];l.at>s&&l.at<i&&((0,o.removeItem)(e,l),t--)}for(let a=0;a<t.length;a++)e.push({value:t[a],at:(0,S.mixNumber)(s,i,r[a]),easing:y(l,a)})}(r,c,T,x,O,R),_=Math.max(P+L,_),N=Math.max(R,N)};if((0,u.isMotionValue)(x))z($,E,T("default",A(x,n)));else{let e=C(x,$,r,d),t=e.length;for(let l=0;l<t;l++){let r=A(e[l],n);for(let e in $){var L,P;z($[e],(L=E,P=e,L&&L[P]?{...L,...L[P]}:{...L}),T(e,r),l,t)}}}j=w,w+=_}return n.forEach((e,r)=>{for(let s in e){let i=e[s];i.sort($);let n=[],o=[],d=[];for(let e=0;e<i.length;e++){let{at:t,value:l,easing:r}=i[e];n.push(l),o.push((0,x.progress)(0,N,t)),d.push(r||"easeOut")}0!==o[0]&&(o.unshift(0),n.unshift(n[0]),d.unshift("easeInOut")),1!==o[o.length-1]&&(o.push(1),n.push(null)),a.has(r)||a.set(r,{keyframes:{},transition:{}});let c=a.get(r);c.keyframes[s]=n;let{type:u,...m}=t;c.transition[s]={...m,duration:N,ease:d,times:o,...l}}}),a})(e.map(e=>{if(Array.isArray(e)&&"function"==typeof e[0]){let t=e[0],l=(0,d.motionValue)(0);return(l.on("change",t),1===e.length)?[l,[0,1]]:2===e.length?[l,[0,1],e[1]]:[l,e[1],e[2]]}return e}),a,t,{spring:c.spring}).forEach(({keyframes:e,transition:t},r)=>{l.push(...U(r,e,t))}),w=l}else{let{onComplete:l,...r}=i||{};"function"==typeof l&&(j=l),w=U(e,s,{...N,...r},t)}let L=new n(w);return j&&L.finished.then(j),t&&(t.animations.push(L),L.finished.then(()=>{(0,o.removeItem)(t.animations,L)})),L}}();var Z=e.i(82635),W=e.i(64884),K=e.i(36209),G=e.i(79179);function Q({className:e}){return(0,t.jsxs)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`${e}`,children:[(0,t.jsx)("g",{clipPath:"url(#clip0_4067_46343)",children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.7502 10.9997C22.7502 11.6349 22.2354 12.1497 21.6002 12.1497L14.9996 12.1497C14.3645 12.1497 13.8496 11.6349 13.8496 10.9997L13.8496 4.39911C13.8496 3.76398 14.3645 3.24911 14.9996 3.24911C15.6347 3.24911 16.1496 3.76398 16.1496 4.39911V8.22232L23.1875 1.18448C23.6366 0.735381 24.3647 0.735381 24.8138 1.18448C25.2629 1.63359 25.2629 2.36173 24.8138 2.81083L17.7749 9.84973H21.6002C22.2354 9.84973 22.7
2502 10.3646 22.7502 10.9997ZM1.18546 24.8129C0.736357 24.3638 0.736357 23.6357 1.18546 23.1866L8.02323 16.3488H4.19884C3.56371 16.3488 3.04884 15.8339 3.04884 15.1988C3.04884 14.5637 3.56371 14.0488 4.19884 14.0488H10.7995C11.0049 14.0488 11.1977 14.1026 11.3646 14.197C11.3793 14.2053 11.3938 14.2139 11.4082 14.2229C11.4162 14.228 11.4243 14.2331 11.4322 14.2384C11.4482 14.2489 11.4639 14.2599 11.4794 14.2713C11.566 14.3348 11.6433 14.4102 11.7091 14.495C11.7594 14.56 11.8019 14.6291 11.8365 14.7011C11.9089 14.8517 11.9495 15.0205 11.9495 15.1988V15.1989L11.9495 21.7994C11.9495 22.4345 11.4346 22.9494 10.7995 22.9494C10.1643 22.9494 9.64946 22.4345 9.64946 21.7994V17.9752L2.8118 24.8129C2.3627 25.262 1.63456 25.262 1.18546 24.8129Z",fill:"white"})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_4067_46343",children:(0,t.jsx)("rect",{width:"26",height:"26",fill:"white"})})})]})}function J({className:e}){return(0,t.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:` ${e}`,children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_4067_46342)",children:[(0,t.jsx)("path",{d:"M15.9981 31.9991C24.8333 31.9991 31.9957 24.8367 31.9957 16.0015C31.9957 7.16627 24.8333 0.00390625 15.9981 0.00390625C7.16285 0.00390625 0.000488281 7.16627 0.000488281 16.0015C0.000488281 24.8367 7.16285 31.9991 15.9981 31.9991Z",fill:"#DD0022"}),(0,t.jsx)("rect",{x:"10",y:"9",width:"4",height:"14",rx:"1",fill:"white"}),(0,t.jsx)("rect",{x:"18",y:"9",width:"4",height:"14",rx:"1",fill:"white"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_4067_46342",children:(0,t.jsx)("rect",{width:"32",height:"32",fill:"white"})})})]})}var X=e.i(70050);function Y({className:e}){return(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`size-6 ${e}`,children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_7033_15643)",children:[(0,t.jsx)("path",{d:"M18.75 9.75V14.25",stroke:"#262626",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M21.75 8.25V15.75",stroke:"#262626",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M5.25 3.75L20.25 20.25",stroke:"#262626",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M11.264 5.90531L15 3V10.0153",stroke:"#262626",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M15 14.475V21L8.25 15.75H3.75C3.55109 15.75 3.36032 15.671 3.21967 15.5303C3.07902 15.3897 3 15.1989 3 15V9C3 8.80109 3.07902 8.61032 3.21967 8.46967C3.36032 8.32902 3.55109 8.25 3.75 8.25H9.34125",stroke:"#262626",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_7033_15643",children:(0,t.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})}function ee({className:e}){return(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`size-6 ${e}`,children:[(0,t.jsx)("g",{clipPath:"url(#clip0_7033_15641)",children:(0,t.jsx)("path",{d:"M8.25 15.75H3.75C3.55109 15.75 3.36032 15.671 3.21967 15.5303C3.07902 15.3897 3 15.1989 3 15V9C3 8.80109 3.07902 8.61032 3.21967 8.46967C3.36032 8.32902 3.55109 8.25 3.75 8.25H8.25L15 3V21L8.25 15.75Z",stroke:"#262626",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_7033_15641",children:(0,t.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})}var et=e.i(94007),el=e.i(22643);function er({className:e}){return(0,t.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`size-6 ${e}`,children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_7163_15620)",children:[(0,t.jsx)("path",{d:"M3 7V13H9",stroke:"#262626",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M8.44875 24C10.0211 25.4839 11.9959 26.4716 14.1263 26.8396C16.2568 27.2076 18.4484 26.9397 20.4275 26.0692C22.4065 25.1987 24.0851 23.7644 25.2537 21.9454C26.4222 20.1264 27.0287 18.0033 26.9976 15.8415C26.9664 13.6798 26.2989 11.5751 25.0784 9.79052C23.8579 8.00595 22.1386 6.62059 20.1353 5.80756C18.132 4.99452 15.9335 4.78986 13.8146 5.21915C11.6956 5.64843 9.75016 6.69262 8.22125 8.22125L3 13",stroke:"#262626",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_7163_15620",children:(0,t.jsx)("rect",{width:"32",height:"32",fill:"white"})})})]})}let es=(0,l.default)(()=>e.A(29211),{loadableGenerated:{modules:[72463]},ssr:!1});function ei({videoURL:e,image:l,expanded:i,setExpanded:a,className:n}){if(!e||!l)return(0,t.jsx)("div",{children:"Mangler video eller bilde"});
2let[o,d]=(0,s.useState)(!0),[c,u]=(0,s.useState)(!0),[m,f]=(0,s.useState)(!1),h=(0,s.useRef)(null),p=(0,s.useRef)(null),{screenWidth:x}=(0,et.useAppSelector)(e=>e.ui),g=(0,el.isBreakpoint)(x,"sm"),b=.1*!!i;return(0,s.useEffect)(()=>{g&&u(!0)},[g]),(0,t.jsx)("div",{className:`z-10 mx-6 aspect-video w-[190px] align-middle ${n}`,children:(0,t.jsx)(W.motion.div,{transition:{delay:b},initial:!1,className:`left-0 top-0 flex aspect-video h-full w-full justify-center overflow-hidden ${i&&"bg-black"}`,layoutId:"video-hero-1",style:{position:i?"absolute":"static"},children:(0,t.jsxs)(W.motion.div,{initial:!1,animate:{borderRadius:i?"24px":"9999px"},transition:{delay:b,borderRadius:{duration:.2}},layoutId:"video-hero-2",className:"relative aspect-video h-full overflow-hidden",children:[(0,t.jsx)(Z.AnimatePresence,{children:i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute right-4 top-4 z-10",children:(0,t.jsx)(G.default,{"aria-label":"Lukk",className:"block",onClick:()=>{a(!1),u(!0)},children:(0,t.jsx)(Q,{})})},"collapse-button"),(0,t.jsx)("div",{className:"absolute bottom-4 left-4 z-10 flex",children:(0,t.jsx)(ed,{onClick:function(){let e=h.current,t=p.current;e&&t&&(e.seekTo(0),d(!0),B(t,{rotate:[0,-360]},{duration:.5,type:"spring",bounce:.3}))},ref:p})},"reset-button"),(0,t.jsxs)("div",{className:"absolute bottom-4 right-4 z-10 flex items-center gap-4",children:[(0,t.jsx)(en,{isMuted:c,setIsMuted:u}),(0,t.jsx)(eo,{isPlaying:o,setIsPlaying:d})]},"mute-play-button")]})}),m&&!i&&(0,t.jsx)(W.motion.div,{transition:{duration:.3},initial:{opacity:0}
2,animate:{opacity:1},className:"absolute left-1/2 top-1/2 z-10 -translate-x-1/2 -translate-y-1/2",children:(0,t.jsx)(G.default,{"aria-label":"Spill video",className:"block",onClick:()=>a(!0),children:(0,t.jsx)(r,{})})}),(0,t.jsx)("div",{className:"absolute left-0 top-0 h-full w-full",children:(0,t.jsx)(X.default,{priority:!0,className:`${m&&"opacity-0"}`,...l,sizes:"190px"})}),(0,t.jsx)(s.Suspense,{children:(0,t.jsx)(es,{ref:h,className:`z-10 h-full w-full overflow-hidden ${m&&"hidden"}`,width:"100%",height:"100%",url:e,playing:o,muted:c,loop:!0,onPlay:()=>f(!0)})})]})})})}function ea({videoURL:e,image:l,className:r}){let[i,a]=(0,s.useState)(!0),[n,o]=(0,s.useState)(!0),[d,c]=(0,s.useState)(!1),u=(0,s.useRef)(null),m=(0,s.useRef)(null),{screenWidth:f}=(0,et.useAppSelector)(e=>e.ui),h=(0,el.isBreakpoint)(f,"sm");return((0,s.useEffect)(()=>{h&&o(!0)},[h]),e&&l)?(0,t.jsx)("div",{className:`z-10 aspect-video w-full overflow-hidden rounded-2xl ${r}`,children:(0,t.jsx)("div",{className:"left-0 top-0 flex aspect-video h-full w-full justify-center overflow-hidden",children:(0,t.jsxs)("div",{className:"relative aspect-video h-full overflow-hidden",children:[d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(W.motion.div,{initial:{opacity:0}
2,animate:{opacity:1},className:"absolute bottom-4 right-4 z-10 flex items-center gap-4",children:[(0,t.jsx)(en,{isMuted:n,setIsMuted:o}),(0,t.jsx)(eo,{isPlaying:i,setIsPlaying:a})]}),(0,t.jsx)(W.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute bottom-4 left-4 z-10 flex",children:(0,t.jsx)(ed,{onClick:function(){let e=u.current,t=m.current;e&&t&&(e.seekTo(0),a(!0),B(t,{rotate:[0,-360]},{duration:.5,type:"spring",bounce:.3}))},ref:m})})]}),(0,t.jsx)("div",{className:"absolute left-0 top-0 h-full w-full",children:(0,t.jsx)(X.default,{priority:!0,className:`${d&&"opacity-0"}`,fill:!0,...l,sizes:"100vw"})}),(0,t.jsx)(s.Suspense,{children:(0,t.jsx)(es,{ref:u,className:`z-10 h-full w-full overflow-hidden ${d&&"hidden"}`,width:"100%",height:"100%",url:e,playing:i,muted:n,loop:!0,onPlay:()=>c(!0)})})]})})}):(0,t.jsx)("div",{children:"Mangler video eller bilde"})}function en({isMuted:e,setIsMuted:l}){return(0,t.jsx)(G.default,{"aria-label":e?"Lyd på":"Lyd av",onClick:()=>l(!e),children:e?(0,t.jsx)(Y,{className:"[&_path]:stroke-white"}):(0,t.jsx)(ee,{className:"[&_path]:stroke-white"})})}function eo({isPlaying:e,setIsPlaying:l}){return(0,t.jsx)(G.default,{"aria-label":e?"Pause":"Spill",onClick:()=>l(!e),children:e?(0,t.jsx)(J,{}):(0,t.jsx)(r,{})})}function ed({onClick:e,ref:l}){return(0,t.jsx)(G.default,{"aria-label":"Start video på nytt",ref:l,onClick:e,children:(0,t.jsx)(er,{className:"[&_path]:stroke-white"})})}function ec({children:e,expanded:l}){return(0,t.jsx)(W.motion.span,{transition:{delay:.3*!l},className:"z-0",initial:!1,animate:{opacity:+!l,pointerEvents:l?"none":"auto"},children:e})}e.s(["default",0,function({heading:e,...l}){let[r,i]=(0,s.useState)(!1),{screenWidth:a}=(0,et.useAppSelector)(e=>e.ui),n=(0,el.isBreakpoint)(a,"sm"),o=e?.split("{video}");return(0,s.useEffect)(()=>{n&&i(!1)},[n]),(0,t.jsx)("div",{className:"layout-margin",children:(0,t.jsx)("div",{className:"layout-grid",children:(0,t.jsxs)("div",{className:"col-span-full my-10 md:my-4",children:[(0,t.jsx)("h1",{className:"relative mx-auto max-w-[850px] display-xl md:py-[5rem]",children:(0,t.jsxs)(K.MotionConfig,{transition:{duration:.3},children:[(0,t.jsxs)(ec,{expanded:r,children:[" ",o?.[0]]}),(0,t.jsx)(ei,{className:"hidden md:inline-block",expanded:r,setExpanded:i,...l}),(0,t.jsxs)(ec,{expanded:r,children:[" ",o?.[1]]})]})}),(0,t.jsx)(ea,{className:"mt-6 md:hidden",...l})]})})})}],81305)},78113,e=>{"use strict";var t=e.i(27549),l=e.i(11062),r=e.i(80429);e.s(["default",0,function({layout:e}){let s=(0,l.useDispatch)();return(0,t.useEffect)(()=>{switch(e){case"field":case"topic":case"article":s((0,r.setHeaderColor)("blue"));break;default:s((0,r.setHeaderColor)("white"))}},[e]),null}])},7180,e=>{"use strict";e.i(86913),e.i(89822),e.i(18936),e.i(52499),e.s([])},24564,(e,t,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});var r={callServer:function(){return i.callServer},createServerReference:function(){return n.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var s in r)Object.defineProperty(l,s,{enumerable:!0,get:r[s]});let i=e.r(16876),a=e.r(50775),n=e.r(27574)},55672,(e,t,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});var r={bindSnapshot:function(){return d},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return c}};for(var s in r)Object.defineProperty(l,s,{enumerable:!0,get:r[s]});let i=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class a{disable(){throw i}getStore(){}run(){throw i}exit(){throw i}enterWith(){throw i}static bind(e){return e}}let n="u">typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return n?new n:new a}function d(e){return n?n.bind(e):a.bind(e)}function c(){return n?n.snapshot():function(e,...t){return e(...t)}}},2515,(e,t,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,e.r(55672).createAsyncLocalStorage)()},84715,(e,t,l)=>{"use strict";
2Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=e.r(2515)},96746,(e,t,l)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"encodeURIPath",{enumerable:!0,get:function(){return r}})},55441,(e,t,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"BailoutToCSR",{enumerable:!0,get:function(){return s}});let r=e.r(26743);function s({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new r.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},81682,(e,t,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"PreloadChunks",{enumerable:!0,get:function(){return o}});let r=e.r(68140),s=e.r(2017),i=e.r(84715),a=e.r(96746),n=e.r(49639);function o({moduleIds:e}){if("u">typeof window)return null;let t=i.workAsyncStorage.getStore();if(void 0===t)return null;let l=[];if(t.reactLoadableManifest&&e){let r=t.reactLoadableManifest;for(let t of e){if(!r[t])continue;let e=r[t].files;l.push(...e)}}if(0===l.length)return null;let d=(0,n.getAssetTokenQuery)();return(0,r.jsx)(r.Fragment,{children:l.map(e=>{let l=`${t.assetPrefix}/_next/${(0,a.encodeURIPath)(e)}${d}`;return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:l,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,s.preload)(l,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},2132,(e,t,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"default",{enumerable:!0,get:function(){return d}});let r=e.r(68140),s=e.r(27549),i=e.r(55441),a=e.r(81682);function n(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(n(()=>null)),loading:null,ssr:!0},d=function(e){let t={...o,...e},l=(0,s.lazy)(()=>t.loader().then(n)),d=t.loading;function c(e){let n=d?(0,r.jsx)(d,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,c=o?s.Suspense:s.Fragment,u=t.ssr?(0,r.jsxs)(r.Fragment,{children:["u"<typeof window?(0,r.jsx)(a.PreloadChunks,{moduleIds:t.modules}):null,(0,r.jsx)(l,{...e})]}):(0,r.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(l,{...e})});return(0,r.jsx)(c,{...o?{fallback:n}:{},children:u})}return c.displayName="LoadableComponent",c}},55842,(e,t,l)=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(l,"default",{enumerable:!0,get:function(){return s}});let r=e.r(86889)._(e.r(2132));function s(e,t){let l={};"function"==typeof e&&(l.loader=e);let s={...l,...t};return(0,r.default)({...s,modules:s.loadableGenerated?.modules})}("function"==typeof l.default||"object"==typeof l.default&&null!==l.default)&&void 0===l.default.__esModule&&(Object.defineProperty(l.default,"__esModule",{value:!0}),Object.assign(l.default,l),t.exports=l.default)}]);
3
4//# debugId=fb0f8bd4-dff5-b423-291e-4dcabd699280

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.