PageSourceSearch

https://ednia.se/_next/static/immutable/chunks/3g5zh2ca2m2no.js

js ednia.se collected 2026-09-25 07:09:37 UTC 38,881 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]="c5eb9b28-ddc1-862e-4dbe-a90ffa0a890c")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,119336,e=>{"use strict";var t=e.i(670747),a=e.i(730504),n=e.i(128947),i=e.i(461741),s=e.i(580508),r=e.i(761677);e.i(882790);var l=e.i(184084),o=e.i(457725),c=e.i(288569),d=e.i(414127),u=e.i(800038),m=e.i(998808),h=e.i(520234),f=e.i(922031),p=e.i(816400),x=e.i(480856),g=e.i(420274);function b({feedbackId:e}){let{register:s,handleSubmit:c,control:x}=(0,u.useForm)(),{isValid:g}=(0,u.useFormState)({control:x}),k=(0,o.useMutation)({mutationKey:["sendFeedback"],mutationFn:async t=>{let a=await f.eden.elysia.common.addContactToFeedback.post({sender:t.sender,feedbackId:e});if(200!==a.status)throw Error("Failed to send feedback");return a.data}}),v=(0,d.useCallback)(e=>{k.mutate(e,{onError(){m.toast.error("Något gick fel. Försök igen senare.")},onSuccess(){r.default.track(p.TrackingEvent.Feedback_Contact_Added,{sender:e.sender})}})},[k]),j=k.isPending;return k.isSuccess?(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-md",children:"Det är idéer och kommentarer från användare som styr vad vi ändrar och lägger till."}),(0,t.jsx)("div",{className:"h-8"}),(0,t.jsx)("p",{className:"text-md text-text!",children:"En av våra grundare svarar inom 24 timmar."}),(0,t.jsx)("div",{className:"h-48"})]}):(0,t.jsxs)("form",{onSubmit:c(v),children:[(0,t.jsx)("p",{className:"text-md",children:"Vill du kunna få svar eller höra när ditt förslag blir verklighet fyll i en epost eller telefonnummer."}),(0,t.jsx)("div",{className:"h-16"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{className:"py-12 pr-54 rounded-md text-field",placeholder:"Epost eller telefonnummer",...s("sender",{required:!0,maxLength:1e3,min:5,setValueAs:e=>e.toLowerCase().trim()})}),(0,t.jsx)("button",{disabled:!g||j,type:"submit",className:"btn-small btn-blue absolute top-1/2 -translate-y-1/2 right-md",children:(0,t.jsx)(i.FontAwesomeIcon,{className:(0,l.cx)(j&&"spin"),icon:(0,h.match)(!0).when(()=>j,()=>a.faSpinnerThird).otherwise(()=>n.faPaperPlane)})})]})]})}let k=function({feedbackId:e}){return(0,t.jsx)(x.default,{children:(0,t.jsxs)("div",{className:"max-w-482",children:[(0,t.jsx)(i.FontAwesomeIcon,{fontSize:32,className:"text-blue",icon:a.faEnvelopeCircleCheck}),(0,t.jsx)("div",{className:"h-8"}),(0,t.jsx)("p",{className:"h4",children:"Tack för din feedback!"}),(0,t.jsx)("div",{className:"h-8"}),(0,t.jsx)(b,{feedbackId:e}),(0,t.jsx)("div",{className:"h-1 bg-border-primary my-12"}),(0,t.jsx)("p",{className:"text-md",children:"Vill du ha hjälp med gymnasievalet?"}),(0,t.jsx)("div",{className:"h-8"}),(0,t.jsxs)(g.default,{className:"btn-small w-fit",href:"https://ednia.notion.site/2d07cfc908f780d7919fdfc133d6cf37?pvs=105",target:"_blank",rel:"noopener noreferrer",children:["Få personlig vägledning",(0,t.jsx)(i.FontAwesomeIcon,{icon:a.faExternalLink})]}),(0,t.jsx)("div",{className:"h-24"})]})})},v=["Det bästa med Ednia är…","Det sämsta med Ednia är…","Ednia borde ändra…","Det jag stör mig mest på med Ednia är…","Ednia borde…","Om jag fick ändra en sak med Ednia skulle det vara…","Något som borde finnas på Ednia är…","Det jag inte förstår på Ednia är…","Något som borde förbättras på Ednia är…"],j=["Det svåraste med gymnasievalet är…","Det svåraste med att välja mellan olika gymnasier är…"];e.s(["default",0,function(e){let{register:g,control:b,handleSubmit:y,reset:N}=(0,u.useForm)(),{isValid:w}=(0,u.useFormState)({control:b}),_=(0,c.usePathname)(),S=(0,s.useIsMounted)(),C=(0,d.useMemo)(()=>{let e;return S?(e=_.includes("gymnasi")?[...v,...j]:v)[Math.floor(Math.random()*e.length)]??"":""},[S,_]),{mutate:P,reset:E,isPending:F,data:I,isSuccess:M}=(0,o.useMutation)({mutationKey:["sendFeedback",_],mutationFn:async e=>{let t=await f.eden.elysia.common.sendFeedback.post({message:e.message,mixpanelDistinctId:r.default.get_distinct_id(),placeholder:C,pathname:_});if(200!==t.status)throw Error("Failed to send feedback");return t.data}});(0,d.useEffect)(()=>{E(),N()},[_,E,N]);let T=(0,d.useCallback)(e=>{P(e,{onError(){m.toast.error("Det gick inte att skicka feedbacken. Försök igen sen
2are.")},onSuccess(){r.default.track(p.TrackingEvent.Feedback_Sent,{placeholder:C,message:e.message})}})},[P,C]);return M&&I?.id?(0,t.jsx)(k,{feedbackId:I.id}):(0,t.jsxs)(x.default,{children:[(0,t.jsxs)("form",{onSubmit:y(T),className:"relative",children:[(0,t.jsx)("textarea",{className:"textarea rounded-lg field-content outline-lines not-focus:h-0 box-border block resize-none min-h-110 max-md:pt-12! md:pt-13! md:pb-11! md:min-h-52 md:pr-108! max-md:pb-50",placeholder:C,...g("message",{required:!0,minLength:5,maxLength:1e3,setValueAs:e=>e.trim()})}),(0,t.jsxs)("button",{type:"submit",disabled:!w||F,className:"btn-small btn-blue absolute bottom-10 right-md items-center",children:["Skicka",(0,t.jsx)(i.FontAwesomeIcon,{className:(0,l.cx)(F&&"spin"),icon:(0,h.match)(!0).when(()=>F,()=>a.faSpinnerThird).otherwise(()=>n.faPaperPlane)})]})]}),(0,t.jsx)("div",{className:"h-24"})]})}],119336)},745386,e=>{"use strict";var t=e.i(670747),a=e.i(358576),n=e.i(761677),i=e.i(420274),s=e.i(816400);e.s(["default",0,function(e){let r,l=(0,a.c)(3),{items:o}=e;if(l[0]!==o){let e;l[2]===Symbol.for("react.memo_cache_sentinel")?(e=(e,a)=>{var r;return(0,t.jsx)(i.default,{href:e.href,prefetch:!e.disablePrefetch,target:e.openInNewTab?"_blank":void 0,rel:e.openInNewTab?"noreferrer":void 0,onClick:(r=e,e=>{n.default.track(r.trackingEvent??s.TrackingEvent.Footer_Link_Click,{href:r.href,label:r.label,section:r.section,openInNewTab:r.openInNewTab??!1})}),style:{textDecoration:"none"},children:(0,t.jsxs)("p",{className:"text-md flex flex-wrap items-center gap-6",children:[(0,t.jsx)("span",{children:e.label}),e.highlight?(0,t.jsx)("span",{className:"inline-flex items-center rounded-sm bg-blue-100 px-6 py-2 text-size-sm font-semibold leading-16 text-blue-800",children:e.highlight}):null]})},`${e.href}${a.toString()}`)},l[2]=e):e=l[2],r=o.map(e),l[0]=o,l[1]=r}else r=l[1];return r}])},542588,e=>{"use strict";var t=e.i(670747),a=e.i(730504),n=e.i(461741);e.i(882790);var i=e.i(184084),s=e.i(414127);e.s(["default",0,function({children:e}){let[r,l]=(0,s.useState)(!1);return(0,t.jsxs)("article",{className:(0,i.cx)("grid grid-rows-7 grid-cols-1 md:grid-cols-2 md:grid-rows-4 lg:grid-rows-4 lg:grid-cols-4 overflow-y-hidden relative",r?"":"auto-rows-[0]"),children:[e,(0,t.jsx)("div",{className:(0,i.cx)("mt-16",r?"":"row-start-7 col-start-1 md:row-start-4 md:col-start-2 lg:col-start-4 lg:row-start-4"),children:(0,t.jsxs)("button",{onClick:()=>l(e=>!e),type:"button",className:"btn-ghost",children:[r?"Visa färre":"Visa fler",(0,t.jsx)(n.FontAwesomeIcon,{icon:r?a.faChevronUp:a.faChevronDown})]})})]})}])},510116,e=>{"use strict";var t=e.i(670747),a=e.i(414127),n=e.i(965480),i=e.i(299093);e.s(["default",0,function(e){let[s,r]=(0,a.useState)(!1),{cookiesCompliance:l,setCookies:o}=(0,i.useCookieState)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:()=>r(!0),className:"text-md w-fit hover:text-light-text/80",type:"button",children:"Hantera kakor"}),(0,t.jsx)(n.default,{open:s,onExit:e=>{o("responded",e),r(!1),setTimeout(()=>{e.marketing||window.location.reload()},400)},name:"Ednia"},`${l.presentation}-${l.marketing}`)]})}])},315513,e=>{"use strict";var t=e.i(670747),a=e.i(358576),n=e.i(761677),i=e.i(414127),s=e.i(816400),r=e.i(480856);function l(e){if(!(e.target instanceof HTMLElement))return;let t=e.target.getAttribute("data-name")||e.target.closest("[data-name]")?.getAttribute("data-name");t&&n.default.track(s.TrackingEvent.Niche_Footer_Link_Click,{name:t})}e.s(["default",0,function(e){let n,s,o,c,d,u,m,h=(0,a.c)(19),{items:f}=e,[p,x]=(0,i.useState)(f[0]?.value??"");if(h[0]!==f||h[1]!==p){let e;h[3]!==p?(e=e=>(0,t.jsxs)("button",{onMouseDown:t=>{t.preventDefault(),x(e.value)},onClick:()=>x(e.value),type:"button",className:"px-12 flex-none mb-md py-8 -mt-md relative rounded-sm hover:bg-greyscale-200 h4",children:[e.label,p===e.value&&(0,t.jsx)("div",{className:"w-[calc(100%-2*12px)] h-2 bg-text absolute -bottom-md left-12"})]},e.value),h[3]=p,h[4]=e):e=h[4],n=f.map(e),h[0]=f,h[1]=p,h[2]=n}else n=h[2];if(h[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)("div",{className:"w-12 h-full flex-none"}),h[5]=s):s=h[5],h[6]!==n?(o=(0,t.jsx)("div",{className:"scrollbar-hide  pt-24 overflow-x-auto",children:(0,t.jsx)("div",{className:"max-w-(--page-w) box-content px-(--page-p) mx-auto flex-none flex",children:(0,t.jsxs)("div",{className:"-ml-12 flex",children:[n,s]})})}),h[6]=n,h[7]=o):o=h[7],h[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)("div",{className:"px-(--page-p)",children:(0,t.jsx)("div",{className:"max-w-(--page-w) mx-auto h-1 bg-border-primary"})}),h[8]=c):c=h[8],h[9]!==f||h[10]!==p){let e;h[12]!==p?(e=e=>(0,t.jsx)("div",{style:{display:p===e.value?"block":"none"},children:e.content},e.value),h[12]=p,h[13]=e):e=h[13],d=f.map(e),h[9]=f,h[10]=p,h[11]=d}else d=h[11];return h[14]!==d?(u=(0,t.jsx)(r.default,{onClick:l,children:d}),h[14]=d,h[15]=u):u=h[15],h[16]!==o||h[17]!==u?(m=(0,t.jsxs)(t.Fragment,{children:[o,c,u]}),h[16]=o,h[17]=u,h[18]=m):m=h[18],m}])},804872,e=>{"use strict";var t=e.i(670747),a=e.i(718401),n=e.i(414127),i=e.i(118900),s=e.i(299093),r=e.i(334052);e.s(["default",0,function(e){let[l,o]=(0,s.useMunicipality)(),{changeLocation:c,selected:d}=(0,r.useLocationPicker)({municipality:l,setMunicipality:o}
2),[u,m]=(0,n.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.default,{"aria-label":"Välj din plats",onClick:()=>{m(!0)},className:"pointer-events-none",size:"medium",children:(0,t.jsx)("option",{value:"always",children:d})}),(0,t.jsx)(n.Suspense,{children:(0,t.jsx)(i.default,{municipality:l,setMunicipality:c,open:u,setOpen:m})})]})}])},667662,e=>{"use strict";var t=e.i(670747),a=e.i(358576),n=e.i(552838),i=e.i(761677);e.i(882790);var s=e.i(184084),r=e.i(414127),l=e.i(965480),o=e.i(816400),c=e.i(299093),d=e.i(605424);let u=function({foreign:e,name:a="Ednia"}){let[n,u]=(0,r.useState)(!1),{cookiesPrompt:m,setCookies:h}=(0,c.useCookieState)(),[f,p]=(0,r.useState)(!1),x=(0,r.useRef)(!1),[g,b]=(0,r.useState)(!1);(0,r.useEffect)(()=>{b(!0)},[]);let k=(0,r.useCallback)(({presentation:e,marketing:t},a)=>{p(!0),setTimeout(()=>{h("responded",{presentation:e,marketing:t}),p(!1)},a)},[h]);return"unknown"===m&&g?(x.current||(i.default.track(o.TrackingEvent.Cookie_Popup_Shown),x.current=!0),(0,t.jsxs)(t.Fragment,{children:[g&&(0,t.jsx)("style",{id:"prevent-scroll",children:"@media screen and (max-width: 800px) { body { overflow: hidden; } }"}),(0,t.jsx)("div",{className:d.default.bg}),(0,t.jsxs)("div",{className:(0,s.cx)(f&&d.default.animate,d.default.cookies),children:[(0,t.jsx)(l.default,{name:a,onExit:e=>{u(!1),k({presentation:e.presentation,marketing:e.marketing},240)},open:n}),(0,t.jsx)("div",{className:d.default.inner,children:(0,t.jsxs)("div",{className:d.default.content,children:[(0,t.jsxs)("div",{className:d.default.text,children:[(0,t.jsx)("h4",{className:"h4",children:"Kakor"}),(0,t.jsxs)("p",{className:"text-md",children:["Vi använder kakor och liknande teknologier för att erbjuda en bättre upplevelse och förbättra ",a,"."," ",(0,t.jsx)("a",{target:"_blank",rel:"noreferrer",href:`${e?"https://ednia.se":""}/info/integritetspolicy`,className:"underline",children:"Integritetspolicy"}),","," ",(0,t.jsx)("a",{target:"_blank",rel:"noreferrer",href:`${e?"https://ednia.se":""}/info/cookie-policy`,className:"underline",children:"cookiepolicy"}),"."]})]}),(0,t.jsxs)("div",{className:d.default.buttons,children:[(0,t.jsx)("button",{className:"btn-large btn-branded w-full",onClick:()=>k({presentation:!0,marketing:!0},240),type:"button",children:"OK"}),(0,t.jsx)("button",{type:"button",onClick:()=>u(!0),className:"btn-large w-full",children:"Inställningar för cookies"})]})]})})]})]})):null};var m=e.i(395645),h=e.i(357749),f=e.i(591087);function p(){}function x(){}function g(e){let{progress:t}=e;return`24px 24px ${24*t}px ${24*t}px`}function b(e){let{progress:t}=e;return t<=1?`${-10*t}px`:`calc(-12.5px + 2.5px *${t})`}let k=function(e){let n,i,s,l,o,d,u,k,v,j,y,N,w,_,S,C,P,E,F,I,M,T,A,L,D,V,R,K,B=(0,a.c)(60),{foreign:z,name:O}=e,H=void 0===O?"Ednia":O;B[0]===Symbol.for("react.memo_cache_sentinel")?(n={translateY:b,scale:[1,.97],transformOrigin:"50% 0",borderRadius:g},B[0]=n):n=B[0];let X=n,{cookiesPrompt:$,cookiesCompliance:q,setCookies:G}=(0,c.useCookieState)(),U="unknown"===$,[Y,W]=(0,r.useState)(q.presentation),[Q,Z]=(0,r.useState)(q.marketing),[J,ee]=(0,r.useState)(!1);B[1]!==Q||B[2]!==Y||B[3]!==G?(i=()=>{ee(!1);let e=setTimeout(()=>{G("responded",{presentation:Y,marketing:Q})},500);return()=>clearTimeout(e)},B[1]=Q,B[2]=Y,B[3]=G,B[4]=i):i=B[4];let et=i;B[5]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(h.Sheet.Backdrop,{travelAnimation:{opacity:[0,.33]},themeColorDimming:"auto"}),B[5]=s):s=B[5];let ea=J&&U;B[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("h4",{className:"h4",children:"Kakor"}),B[6]=l):l=B[6];let en=`${z?"https://ednia.se":""}/info/integritetspolicy`;B[7]!==en?(o=(0,t.jsx)("a",{target:"_blank",rel:"noreferrer",className:"underline focus:outline-none",href:en,children:"Integritetspolicy"}),B[7]=en,B[8]=o):o=B[8];let ei=`${z?"https://ednia.se":""}/info/cookie-policy`;return B[9]!==ei?(d=(0,t.jsx)("a",{target:"_blank",rel:"noreferrer",className:"underline focus:outline-none",href:ei,children:"cookiepolicy"}),B[9]=ei,B[10]=d):d=B[10],B[11]!==H||B[12]!==d||B[13]!==o?(u=(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[l,(0,t.jsxs)("p",{className:"text-md",children:["Vi använder kakor och liknande teknologier för att erb
2juda en bättre upplevelse och förbättra ",H,"."," ",o,","," ",d,"."]})]}),B[11]=H,B[12]=d,B[13]=o,B[14]=u):u=B[14],B[15]===Symbol.for("react.memo_cache_sentinel")?(k=(0,t.jsx)("div",{className:"h-32"}),B[15]=k):k=B[15],B[16]!==G?(v=(0,t.jsx)("button",{type:"button",className:"btn-large btn-branded w-full",onClick:()=>G("responded",{presentation:!0,marketing:!0}),children:"OK"}),B[16]=G,B[17]=v):v=B[17],B[18]===Symbol.for("react.memo_cache_sentinel")?(j=(0,t.jsx)("button",{type:"button",className:"btn-large w-full",onClick:()=>ee(!0),children:"Inställningar för cookies"}),B[18]=j):j=B[18],B[19]!==v?(y=(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[v,j]}),B[19]=v,B[20]=y):y=B[20],B[21]!==u||B[22]!==y?(N=(0,t.jsx)("div",{className:"relative",children:(0,t.jsxs)("div",{className:"",children:[u,k,y]})}),B[21]=u,B[22]=y,B[23]=N):N=B[23],B[24]===Symbol.for("react.memo_cache_sentinel")?(w=(0,t.jsx)(h.Sheet.Backdrop,{travelAnimation:{opacity:[0,.33]},themeColorDimming:"auto"}),B[24]=w):w=B[24],B[25]===Symbol.for("react.memo_cache_sentinel")?(_=(0,t.jsx)("p",{className:"h4",children:"Inställningar för kakor"}),B[25]=_):_=B[25],B[26]===Symbol.for("react.memo_cache_sentinel")?(S=(0,t.jsx)("a",{rel:"noreferrer",target:"_blank",className:"underline focus:outline-none",href:"https://ednia.notion.site/65f06ab6cf5d4c95b5811f851e0c2362",children:"cookiepolicy"}),B[26]=S):S=B[26],B[27]!==H?(C=(0,t.jsxs)("p",{className:"text-md mt-8",children:["Vi värdesätter integritet. Läs mer om cookies som används på ",H," i vår"," ",S,"."]}),B[27]=H,B[28]=C):C=B[28],B[29]===Symbol.for("react.memo_cache_sentinel")?(P=(0,t.jsx)(f.default,{title:"Strängt nödvändiga kakor",description:"Kakor som behövs för webbplatsens funktionalitet och säkerhet. Går ej att stänga av.",children:(0,t.jsx)(m.default,{branded:!0,checked:!0,onChange:p,disabled:!0})}),B[29]=P):P=B[29],B[30]!==Y?(E=()=>W(!Y),B[30]=Y,B[31]=E):E=B[31],B[32]!==Y?(F=(0,t.jsx)(m.default,{branded:!0,checked:Y,onChange:W}),B[32]=Y,B[33]=F):F=B[33],B[34]!==E||B[35]!==F?(I=(0,t.jsx)(f.default,{onClick:E,title:"Prestationscookies",description:"Kakor som används för att räkna besök och traffikkällor samt se vilka sidor som är mest respektive minst populära.",children:F}),B[34]=E,B[35]=F,B[36]=I):I=B[36],B[37]!==Q?(M=()=>Z(!Q),B[37]=Q,B[38]=M):M=B[38],B[39]!==Q?(T=(0,t.jsx)(m.default,{branded:!0,checked:Q,onChange:Z}),B[39]=Q,B[40]=T):T=B[40],B[41]!==M||B[42]!==T?(A=(0,t.jsx)(f.default,{onClick:M,title:"Marknadsföringscookies",description:"Kakor som används för att förbättra marknadsföringen och göra annonser mer relevanta.",children:T}),B[41]=M,B[42]=T,B[43]=A):A=B[43],B[44]!==I||B[45]!==A?(L=(0,t.jsxs)("div",{className:"flex flex-col gap-2 mt-24",children:[P,I,A]}),B[44]=I,B[45]=A,B[46]=L):L=B[46],B[47]!==et?(D=(0,t.jsxs)("div",{className:"flex flex-col gap-8 mt-16",children:[(0,t.jsx)("button",{type:"button",onClick:et,className:"btn-large btn-branded w-full",children:"Acceptera alla"}),(0,t.jsx)("button",{type:"button",onClick:et,className:"btn-large w-full",children:"Spara inställningar"})]}),B[47]=et,B[48]=D):D=B[48],B[49]!==C||B[50]!==L||B[51]!==D?(V=(0,t.jsx)(h.Sheet.Portal,{children:(0,t.jsxs)(h.Sheet.View,{className:"z-50",contentPlacement:"bottom",nativeEdgeSwipePrevention:!0,children:[w,(0,t.jsx)(h.Sheet.Content,{className:"h-fit! bg-transparent!",children:(0,t.jsx)(h.Sheet.Root,{license:"commercial",forComponent:"closest",children:(0,t.jsxs)("div",{className:"p-24 bg-white rounded-xlg m-12",children:[_,C,L,D]})})})]})}),B[49]=C,B[50]=L,B[51]=D,B[52]=V):V=B[52],B[53]!==N||B[54]!==V||B[55]!==ea?(R=(0,t.jsx)(h.Sheet.Portal,{children:(0,t.jsxs)(h.Sheet.View,{className:"z-50",contentPlacement:"bottom",nativeEdgeSwipePrevention:!0,children:[s,(0,t.jsx)(h.Sheet.Content,{className:"p-24 bg-white! h-fit! rounded-t-xlg",stackingAnimation:X,children:(0,t.jsxs)(h.Sheet.Root,{license:"commercial",forComponent:"closest",presented:ea,onPresentedChange:ee,className:"h-full bg-white!",children:[N,V]})})]})}),B[53]=N,B[54]=V,B[55]=ea,B[56]=R):R=B[56],B[57]!==U||B[58]!==R?(K=(0,t.jsx)(h.SheetStack.Root,{children:(0,t.jsx)(h.Sheet.Root,{presented:U,onPresentedChange:x,sheetRole:"alertdialog",license:"commercial",forComponent:"
2closest",children:R})}),B[57]=U,B[58]=R,B[59]=K):K=B[59],K};e.s(["default",0,function(e){let i,s=(0,a.c)(6),{foreign:r,name:l}=e;if((0,n.default)("(max-width: 800px)")){let e;return s[0]!==r||s[1]!==l?(e=(0,t.jsx)(k,{foreign:r,name:l}),s[0]=r,s[1]=l,s[2]=e):e=s[2],e}return s[3]!==r||s[4]!==l?(i=(0,t.jsx)(u,{foreign:r,name:l}),s[3]=r,s[4]=l,s[5]=i):i=s[5],i}],667662)},605424,e=>{e.v({animate:"desktopCookieBar-module__iaIOpa__animate",bg:"desktopCookieBar-module__iaIOpa__bg",buttons:"desktopCookieBar-module__iaIOpa__buttons",content:"desktopCookieBar-module__iaIOpa__content",cookies:"desktopCookieBar-module__iaIOpa__cookies",inner:"desktopCookieBar-module__iaIOpa__inner",text:"desktopCookieBar-module__iaIOpa__text"})},248708,e=>{e.v({label:"labeledSwitch-module__FXZzza__label",text:"labeledSwitch-module__FXZzza__text"})},480856,e=>{"use strict";var t=e.i(670747);e.i(882790);var a=e.i(184084);e.s(["default",0,function({className:e,...n}){return(0,t.jsx)("div",{className:(0,a.cx)(e,"page-wrapper"),...n})}])},263422,e=>{"use strict";var t=e.i(580508),a=e.i(667512);e.s(["default",0,function({highSchool:e,university:n,mode:i}){let s=(0,a.useProduct)(i);return(0,t.useIsMounted)()?"university"===s?n:e:"highSchool"===a.defaultProduct?e:n}])},157292,e=>{"use strict";var t=e.i(670747),a=e.i(358576),n=e.i(730504),i=e.i(461741);e.s(["default",0,function(e){let s,r,l,o,c,d,u,m,h=(0,a.c)(17);h[0]!==e?({value:l,setValue:r,...s}=e,h[0]=e,h[1]=s,h[2]=r,h[3]=l):(s=h[1],r=h[2],l=h[3]),h[4]!==r||h[5]!==l?(o=l&&(0,t.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),r(""),e.currentTarget.nextElementSibling instanceof HTMLInputElement&&e.currentTarget.nextElementSibling.focus()},className:"absolute size-24 top-1/2 right-17 -translate-y-1/2 max-md:text-[14px] text-gray-600",children:(0,t.jsx)(i.FontAwesomeIcon,{icon:n.faXmark})}),h[4]=r,h[5]=l,h[6]=o):o=h[6];let f=l??"";return h[7]!==r?(c=e=>r(e.target.value),h[7]=r,h[8]=c):c=h[8],h[9]!==s||h[10]!==f||h[11]!==c?(d=(0,t.jsx)("input",{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,className:"text-field py-12 pr-16 md:py-16 md:pr-24 pl-40 rounded-max",value:f,onChange:c,...s}),h[9]=s,h[10]=f,h[11]=c,h[12]=d):d=h[12],h[13]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(i.FontAwesomeIcon,{className:"absolute top-1/2 left-17 -translate-y-1/2 max-md:text-[14px] pointer-events-none",icon:n.faMagnifyingGlass}),h[13]=u):u=h[13],h[14]!==o||h[15]!==d?(m=(0,t.jsxs)("div",{className:"relative",children:[o,d,u]}),h[14]=o,h[15]=d,h[16]=m):m=h[16],m}])},118900,334052,e=>{"use strict";var t=e.i(670747),a=e.i(358576),n=e.i(494151),i=e.i(414127),s=e.i(860588),r=e.i(157292),l=e.i(872808),o=e.i(609848);function c({item:e,selectedMunicipality:a,onClick:n}){return(0,t.jsx)("button",{type:"button",onClick:n,className:"btn-medium w-full data-[active=true]:btn-blue justify-start","data-active":e.s===a,children:(0,t.jsxs)("span",{className:"flex flex-col items-start",children:[(0,t.jsx)("span",{children:e.n}),e.context&&(0,t.jsx)("span",{className:"text-sm opacity-60",children:e.context})]})},e.s)}e.s(["default",0,function(e){let d,u,m,h,f,p,x,g,b,k,v,j,y,N,w,_,S,C,P=(0,a.c)(43);P[0]!==e?({municipality:d,setMunicipality:h,open:u,setOpen:f,...m}=e,P[0]=e,P[1]=d,P[2]=u,P[3]=m,P[4]=h,P[5]=f):(d=P[1],u=P[2],m=P[3],h=P[4],f=P[5]);let[E,F]=(0,i.useState)("");P[6]!==E?(p=E.trim()||"*",P[6]=E,P[7]=p):p=P[7];let I=(0,i.useDeferredValue)(p);P[8]!==I||P[9]!==u?(x={query:I,enabled:u},P[8]=I,P[9]=u,P[10]=x):x=P[10];let M=(0,s.useMunicipalitySearch)(x),[T,A]=(0,i.useState)(!1),L=(0,i.useRef)(void 0);P[11]===Symbol.for("react.memo_cache_sentinel")?(g=()=>(clearTimeout(L.current),L.current=setTimeout(()=>{A(!0)},600),()=>{clearTimeout(L.current)}),b=[],P[11]=g,P[12]=b):(g=P[11],b=P[12]),(0,i.useEffect)(g,b),P[13]!==h||P[14]!==f?(k=e=>{f(!1),h(e)},P[13]=h,P[14]=f,P[15]=k):k=P[15];let D=k;P[16]!==E?(v=(0,t.jsx)(r.default,{value:E,setValue:F,placeholder:"Sök på kommun, län eller skola"}),P[16]=E,P[17]=v):v=P[17],P[18]!==f?(j=()=>f(!1),P[18]=f,P[19]=j):j=P[19],P[20]!==v||P[21]!==j?(y=(0,t.jsx)(o.default,{input
2:v,onCancel:j}),P[20]=v,P[21]=j,P[22]=y):y=P[22];let V=y;return P[23]!==f?(N=e=>{e&&F(""),f(e)},P[23]=f,P[24]=N):N=P[24],P[25]!==M.data||P[26]!==d||P[27]!==D?(w=M.data?.slice(0,5)?.map(e=>(0,t.jsx)(c,{item:e,selectedMunicipality:d,onClick:()=>D(e.s)},e.s)),P[25]=M.data,P[26]=d,P[27]=D,P[28]=w):w=P[28],P[29]!==M.data||P[30]!==d||P[31]!==D||P[32]!==T?(_=T&&M.data?.slice(5)?.map(e=>(0,t.jsx)(c,{item:e,selectedMunicipality:d,onClick:()=>D(e.s)},e.s)),P[29]=M.data,P[30]=d,P[31]=D,P[32]=T,P[33]=_):_=P[33],P[34]!==w||P[35]!==_?(S=(0,t.jsx)(n.default,{children:(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[w,_]})}),P[34]=w,P[35]=_,P[36]=S):S=P[36],P[37]!==V||P[38]!==u||P[39]!==m||P[40]!==S||P[41]!==N?(C=(0,t.jsx)(l.default,{sheetKey:"choose-location-modal",open:u,setOpen:N,desktopHeight:600,mobileHeader:V,desktopHeader:V,desktopWidth:480,...m,children:S}),P[37]=V,P[38]=u,P[39]=m,P[40]=S,P[41]=N,P[42]=C):C=P[42],C}],118900),e.i(35200);var d=e.i(155742),u=e.i(580508),m=e.i(761677),h=e.i(288569),f=e.i(800038),p=e.i(816400),x=e.i(668259);let g=d.constants.location.municipalities,b=["/","/gy","/alla-gymnasier"],k=["/alla-gymnasier/%s"];e.s(["useLocationPicker",0,({municipality:e,setMunicipality:t})=>{let a=(0,h.usePathname)(),n=(0,h.useRouter)(),{setValue:s}=(0,f.useFormContext)(),r=(0,u.useIsMounted)()?g.find(t=>t.s===e)?.c??"Välj plats":"Välj plats";return{changeLocation:(0,i.useCallback)(i=>{if(!g.some(e=>e.s===i)||i===e)return;t(i),(0,x.setHighSchoolMunicipalityFilter)(s,i),m.default.track(p.TrackingEvent.Location_Changed,{municipality:i}),b.some(e=>a===e||"/"!==e&&a.startsWith(`${e}/`))&&window.scrollTo({top:0,left:0,behavior:"smooth"});let r=k.reduce((e,t)=>g.find(e=>t.replace("%s",e.s)===a)?.s?t.replace("%s",i):e,null);r&&n.push(r)},[e,a,n,t,s]),selected:r}}],334052)},609848,e=>{"use strict";var t=e.i(670747);e.s(["default",0,function({input:e,onCancel:a}){return(0,t.jsxs)("div",{className:"flex gap-16 items-center py-16 px-32 bg-white rounded-t-2xl max-md:p-18",children:[(0,t.jsx)("div",{className:"flex-1",children:e}),(0,t.jsx)("div",{children:(0,t.jsx)("button",{type:"button",className:"btn-ghost-light",onClick:e=>{e.preventDefault(),a()},children:(0,t.jsx)("p",{className:"text-sm",children:"Stäng"})})})]})}])},443980,e=>{e.v({bottomSection:"cookieSettingsModal-module__0Vbhga__bottomSection",content:"cookieSettingsModal-module__0Vbhga__content",switches:"cookieSettingsModal-module__0Vbhga__switches",topSection:"cookieSettingsModal-module__0Vbhga__topSection"})},965480,591087,e=>{"use strict";var t=e.i(670747),a=e.i(414127),n=e.i(494151),i=e.i(395645);e.i(882790);var s=e.i(184084),r=e.i(248708);let l=function({children:e,title:a,description:n,className:i,...l}){return(0,t.jsxs)("div",{className:(0,s.cx)(r.default.label,i),...l,children:[(0,t.jsx)("div",{className:r.default.switch,children:e}),(0,t.jsxs)("div",{className:r.default.text,children:[(0,t.jsx)("h4",{className:"h4",children:a}),(0,t.jsx)("p",{className:"text-md",children:n})]})]})};e.s(["default",0,l],591087);var o=e.i(872808),c=e.i(966912),d=e.i(147616),u=e.i(443980);e.s(["default",0,function({onExit:e,name:s,open:r}){let[,m]=function(){let[e,t]=(0,a.useState)(!1);return[e,t]}(),[h,f]=(0,a.useState)(!0),[p,x]=(0,a.useState)(!0),g=(...t)=>(setTimeout(()=>{m(!1)},200),e(...t));return(0,t.jsx)(o.default,{sheetKey:"cookie-settings",desktopMinHeight:500,open:r,desktopWidth:480,setOpen:t=>{t||e({presentation:h,marketing:p})},desktopHeader:(0,t.jsx)(c.default,{children:"Inställningar för kakor"}),mobileHeader:(0,t.jsx)(d.default,{children:"Inställningar för kakor"}),footer:(0,t.jsx)(n.default,{children:(0,t.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,t.jsx)("button",{onClick:()=>{m(!0),g({presentation:!0,marketing:!0})},className:"btn-large btn-branded w-full",type:"button",children:"Acceptera alla"}),(0,t.jsx)("button",{onClick:()=>g({presentation:h,marketing:p}),className:"btn-large w-full",type:"button",children:"Spara inställningar"})]})}),children:(0,t.jsx)(n.default,{children:(0,t.jsx)("div",{className:u.default.content,children:(0,t.jsxs)("div",{className:u.default.topSection,children:[(0,t.jsxs)("p",{className:"max-md:mt-24",children:["Vi värdesätter integritet. Läs mer om cookies som används på"," ",s," i vår"," ",(0,t.jsx)("a",{rel:"noreferrer",className:"underline",target:"_blank",href:"https://ednia.notion.site/65f06ab6cf5d4c95b5811f851e0c2362",children:"cookiepolicy"}),"."]}),(0,t.jsxs)("div",{className:u.default.switches,children:[(0,t.jsx)(l,{title:"Strängt nödvändiga kakor",description:"Kakor som behövs för webbplatsens funktionalitet och säkerhet. Går ej att stänga av.",children:(0,t.jsx)(i.default,{branded:!0,checked:!0,onChange:()=>void 0,disabled:!0})}),(0,t.jsx)(l,{onClick:()=>f(!h),title:"Prestationscookies",description:"Kakor som används för att räkna besök och traffikkällor samt se vilka sidor som är mest respektive minst populära.",children:(0,t.jsx)(i.default,{branded:!0,checked:h,onChange:f})}),(0,t.jsx)(l,{onClick:()=>x(!p),title:"Marknadsföringscookies",description:"Kakor som används för att förbättra partners marknadsföring och visa mer relevanta annonser.",children:(0,t.jsx)(i.default,{branded:!0,checked:p,onChange:x})})]})]})})})})}],965480)},872808,e=>{"use strict";var t=e.i(670747),a=e.i(358576),n=e.i(552838),i=e.i(952513),s=e.i(357749),r=e.i(414127);e.s(["default",0,function(e){let l,o,c=(0,a.c)(32),{children:d,open:u,setOpen:m,desktopWidth:h,desktopHeight:f,desktopMinHeight:p,footer:x,mobileHeader:g,desktopHeader:b,modal:k,sheetKey:v}=e,j=(0,n.default)("(max-width: 800px)"),y=(0,r.useRef)(null);c[0]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{let{progress:t}=e;y.current&&t<.999&&y.current.focus()},c[0]=l):l=c[0];let N=l;if(j){let e,a,n,i,r,l,o,h;return c[1]!==u?(e=u&&(0,t.jsx)("div",{className:"fixed bottom-0 z-50 h-4 w-dvw bg-white"}
2),c[1]=u,c[2]=e):e=c[2],c[3]===Symbol.for("react.memo_cache_sentinel")?(a=(0,t.jsx)(s.Sheet.Backdrop,{themeColorDimming:!function(){let e=navigator.userAgent||"";if(!/iPhone|iPad|iPod/.test(e))return!1;let t=e.match(/Version\/(\d+)\./);return!!t&&null!=t[1]&&Number.parseInt(t[1],10)>=26}()&&"auto"}),c[3]=a):a=c[3],c[4]!==g?(n=g??(0,t.jsx)("div",{}),c[4]=g,c[5]=n):n=c[5],c[6]!==d?(i=(0,t.jsx)(s.Scroll.Root,{asChild:!0,children:(0,t.jsx)(s.Scroll.View,{scrollGesture:"auto",nativeScrollbar:!1,className:"[&_*]:user-select-none w-full overflow-y-auto flex-1 relative",children:d})}),c[6]=d,c[7]=i):i=c[7],c[8]!==x?(r=x&&(0,t.jsx)("div",{className:"w-full bg-white",children:x}),c[8]=x,c[9]=r):r=c[9],c[10]!==n||c[11]!==i||c[12]!==r?(l=(0,t.jsx)(s.Sheet.Portal,{children:(0,t.jsxs)(s.Sheet.View,{onTravel:N,ref:y,swipeOvershoot:!1,className:"z-50 overflow-auto!",nativeEdgeSwipePrevention:!0,children:[a,(0,t.jsxs)(s.Sheet.Content,{className:"relative rounded-t-xlg grid grid-rows-[auto_1fr] h-[calc(100dvh-60px)]!",children:[n,i,r]})]})}),c[10]=n,c[11]=i,c[12]=r,c[13]=l):l=c[13],c[14]!==u||c[15]!==m||c[16]!==l?(o=(0,t.jsx)(s.Sheet.Root,{license:"commercial",presented:u,onPresentedChange:m,children:l}),c[14]=u,c[15]=m,c[16]=l,c[17]=o):o=c[17],c[18]!==e||c[19]!==o?(h=(0,t.jsxs)(t.Fragment,{children:[e,o]}),c[18]=e,c[19]=o,c[20]=h):h=c[20],h}return c[21]!==d||c[22]!==b||c[23]!==f||c[24]!==p||c[25]!==h||c[26]!==x||c[27]!==k||c[28]!==u||c[29]!==m||c[30]!==v?(o=(0,t.jsx)(i.default,{modal:k,open:u,onOpenChange:m,height:f,width:h,footer:x,header:b,desktopMinHeight:p,sheetKey:v,children:d}),c[21]=d,c[22]=b,c[23]=f,c[24]=p,c[25]=h,c[26]=x,c[27]=k,c[28]=u,c[29]=m,c[30]=v,c[31]=o):o=c[31],o}])},966912,e=>{"use strict";var t=e.i(670747),a=e.i(730504),n=e.i(461741),i=e.i(971258);e.s(["default",0,function({children:e}){return(0,t.jsxs)("div",{className:"flex min-h-70 justify-between pl-32 pr-22 pb-8 pt-24",children:[(0,t.jsx)("div",{className:"h3",children:e}),(0,t.jsx)("div",{className:"h-full self-stretch",children:(0,t.jsx)(i.Close,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":"Stäng",className:"size-32 [&:hover_svg]:text-text active:scale-95 rounded-full grid place-items-center bg-background-2",children:(0,t.jsx)(n.FontAwesomeIcon,{className:"text-greyscale-500 h-20",icon:a.faXmark})})})})]})}])},147616,e=>{"use strict";var t=e.i(670747),a=e.i(730504),n=e.i(461741),i=e.i(357749);e.s(["default",0,function({children:e}){return(0,t.jsxs)("div",{className:"h-52 items-center rounded-t-xlg bg-white border-b border-lines flex justify-between",children:[(0,t.jsx)("div",{className:"pl-24 font-semibold text-[16px]",children:e}),(0,t.jsx)(i.Sheet.Trigger,{action:"dismiss",asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":"Stäng",className:"size-52 grid place-items-center",children:(0,t.jsx)(n.FontAwesomeIcon,{icon:a.faXmark,className:"text-2xl text-[18px] text-light-text"})})})]})}])},668259,e=>{"use strict";var t=e.i(612568);e.s(["setHighSchoolMunicipalityFilter",0,function(e,a){e("highSchool.home.filter.municipality",a),e("highSchool.home.filter.locations",(0,t.getNarrowLocations)(a))}])},673360,580775,219737,e=>{"use strict";var t=e.i(670747);let a=[{title:"🇸🇪 Svenska",id:"0"},{title:"🇬🇧 Engelska",id:"1"},{title:"🏛️ Samhällskunskap",id:"2"},{title:"📜 Historia",id:"3"},{title:"⛪️ Religion",id:"4"},{title:"🗺️ Geografi",id:"5"},{title:"🪐 Fysik",id:"6"},{title:"🧪 Kemi",id:"7"},{title:"📐 Matematik",id:"8"},{title:"🌱 Biologi",id:"9"},{title:"⚙️ Teknik",id:"Z"},{title:"🍝 Hemkunskap",id:"X"},{title:"🎨 Bild",id:"W"},{title:"🎸 Musik",id:"V"},{title:"🪚 Slöjd",id:"U"},{title:"🏀 Idrott",id:"T"},{title:"🇪🇸 Moderna språk",id:"Y",extra:!0},{title:"🗣️ Modersmål",id:"S",extra:!0},{title:"⛩️ Nybörjarsspråk (skolans val)",id:"R",extra:!0}],n="FEDCBA".split(""),i=new Map([["A",20],["B",17.5],["C",15],["D",12.5],["E",10],["F",0],["X",0]]);function s(e){return e.split(/(\w{2,2})/).filter(e=>""!==e).map(e=>{let[t,a]=e.split("");return{id:t??"",grade:a??"",error:!1}})}function r(e){for(let t of e)if(!a.some(e=>e.id===t.id)||![...n,"X"].includes(t.grade??"F"))return!1;if(new Set(e.map(e=>e.id)).size!==e.length)return!1;let t=e.filter(e=>null!=e.grade&&"X"!==e.grade);return t.length>=16&&t.length<=19}e.s(["exemptedSubjects",0,["Y","R","S"],"gradeMap",0,i,"grades",0,n,"subjects",0,a],580775),e.s(["validateGrades",0,r],219737);var l=e.i(814001),o=e.i(414127),c=e.i(299093),d=e.i(922031),u=e.i(793052);let m=(0,o.createContext)({subjects:[]});e.s(["GPACalculatorProvider",0,function({children:e}){let[n,i]=(0,o.useState)([]),[h,f]=(0,o.useState)(a.filter(e=>!e.extra||"Y"===e.id)),[p,x]=(0,o.useState)(!1),g=(0,o.useRef)(!1),[b,k]=(0,c.useMunicipality)(),[v,j]=(0,o.useState)(null),y=v??b,N=(0,o.useCallback)(e=>{(!y||"unknown"===y)&&e&&k(e),j(e)},[y,k]),{Authorization:w}=(0,u.useLogin)();return(0,l.useQuery)({queryKey:["gpa","getLatestResult",w],queryFn:async()=>{let e=await d.eden.elysia.gpa.getLatestResult.get({headers:{Authorization:w}});if(!e.data||p)return null;let t=s(e.data.grades);return i(t),f([...a.filter(e=>!e.extra),...a.filter(e=>e.extra).filter(e=>t.some(t=>t.id===e.id&&"X"!==t.grade))]),x(!0),null},enabled:!!w}),(0,o.useEffect)(()=>
2{if(g.current)return;let e=new URLSearchParams(window.location.search).get("res");if(!e)return;let t=s(e);r(t)&&(i(t),f([...a.filter(e=>!e.extra),...a.filter(e=>e.extra).filter(e=>t.some(t=>t.id===e.id&&"X"!==t.grade))]),x(!0),g.current=!0)},[]),(0,t.jsx)(m.Provider,{value:{subjects:n,setSubjects:i,availableSubjects:h,setAvailableSubjects:f,clearSubjects:()=>{i([]),f(a.filter(e=>!e.extra||"Y"===e.id))},hasCalculated:p,setHasCalculated:x,setMunicipality:N,municipality:y},children:e})},"useGpaCalculator",0,()=>(0,o.useContext)(m)],673360)},776640,e=>{"use strict";var t=e.i(670747),a=e.i(414127);let n=(0,a.createContext)(null);e.s(["default",0,function({product:e,children:a}){return(0,t.jsx)(n.Provider,{value:e,children:a})},"useProductLock",0,()=>(0,a.useContext)(n)])},667512,519257,e=>{"use strict";var t=e.i(580508);function a(e,t){return"unknown"===e?t:e}e.s(["resolveProduct",0,a],519257);var n=e.i(952691),i=e.i(288569),s=e.i(501623),r=e.i(776640);let l="highSchool";e.s(["defaultProduct",0,l,"useProduct",0,function(e){let o=(0,r.useProductLock)(),[c]=(0,n.useAtom)(s.productAtom),d=(0,i.usePathname)(),u=(0,t.useIsMounted)();return o||(u?"home"===e&&"unknown"===c?(0,s.getProductFromPathname)(d)??a(c,l):a(c,l):l)}],667512)},860588,e=>{"use strict";var t=e.i(279540),a=e.i(701164),n=e.i(666893);function i(e){return e.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").trim()}function s(e,t){let a=i(t).split(/\s+/);return e.some(e=>a.some(t=>t.startsWith(e)))}var r=e.i(700519),l=e.i(814001),o=e.i(414127);let c=t.default.env.NEXT_PUBLIC_TYPESENSE_API_KEY,d=m(a.indices.municipalities,{query_by:"name,aliases,county",query_by_weights:"4,2,1",num_typos:"5,2,1",limit:"100",include_fields:"name,slug,aliases,county",highlight_fields:"none"}),u=m(a.indices.highSchoolQuickSearch,{query_by:"name,names",query_by_weights:"2,1",num_typos:"6,3",typo_tokens_threshold:"10",limit:"20",filter_by:"hidden:=false",include_fields:"name,municipality,locationBroad",highlight_fields:"none"});function m(e,t){let a=new URL(`/collections/${e}/documents/search`,"https://api.ednia.se");for(let[e,n]of Object.entries(t))a.searchParams.set(e,n);return a}async function h({url:e,query:t,controller:a}){let n=new URL(e);n.searchParams.set("q",t);let i=await fetch(n,{signal:a.signal,headers:c?{"x-typesense-api-key":c}:void 0}).then(e=>e.json());return i.hits?.map(e=>e.document)??[]}async function f({query:e,controller:t}){let[a,r]=await Promise.all([h({url:d,query:e,controller:t}),"*"===e?[]:h({url:u,query:e,controller:t}).catch(()=>[])]);return function({query:e,documents:t,schools:a}){let r=t.map(t=>({s:t.slug,n:t.name,context:function(e,t){let a=i(e).split(/\s+/).filter(Boolean);if(!a.length||"*"===e||s(a,t.name))return;let n=t.aliases?.find(e=>{var n;let r,l,o;return s(a,e)&&(n=t.name,r=i(e),l=i(n),o=Math.min(4,r.length,l.length),r.slice(0,o)!==l.slice(0,o))});return n||(t.county&&s(a,t.county)?t.county:void 0)}(e,t)})),l=new Map(r.map(e=>[e.s,e]));for(let e of a){if(l.has(e.municipality))continue;let t={s:e.municipality,n:n.municipalities.find(t=>t.s===e.municipality)?.n??e.locationBroad};l.set(t.s,t),r.push(t)}return r}({query:e,documents:a,schools:r})}e.s(["useMunicipalitySearch",0,function({query:e,enabled:t}){let a=(0,o.useRef)(new AbortController);return(0,l.useQuery)({queryKey:["quickSearch","municipality",e],queryFn:async()=>(a.current.abort("abort"),a.current=new AbortController,await f({query:e,controller:a.current})),placeholderData:r.keepPreviousData,enabled:t})}],860588)},718401,e=>{"use strict";var t=e.i(670747),a=e.i(730504),n=e.i(461741);e.i(882790);var i=e.i(184084);e.s(["default",0,function({className:e,size:s="default",onClick:r,...l}){return(0,t.jsxs)("div",{onClick:r,className:"relative [&:hover_select]:bg-background-2 cursor-pointer",children:[(0,t.jsx)("select",{className:(0,i.cx)(e,"appearance-none cursor-pointer focus:outline-(--accent,#2464f9) bg-white border border-border-primary w-full box-border",{default:"pl-16 py-8 rounded-sm",medium:"pl-16 py-12 rounded-md",large:"pl-16 py-16 rounded-lg"}[s]),...l}),(0,t.jsx)(n.FontAwesomeIcon,{className:(0,i.cx)("absolute text-[#717171] pointer-events-none top-1/2 -translate-y-1/2",{default:"right-md",medium:"right-12",large:"right-16"}[s]),icon:a.faChevronDown})]})}])},395645,e=>{"use strict";var t=e.i(670747);e.i(882790);var a=e.i(184084);e.s(["default",0,function({checked:e,onChange:n,disabled:i,branded:s}){let r=e?s?"var(--accent)":"var(--color-blue)":"var(--lines)";
2return(0,t.jsx)("div",{tabIndex:-1,className:(0,a.cx)("relative inline-block cursor-pointer transition-all duration-200 ease-out no-tap focus:outline-none",i&&"pointer-events-none",e&&"ease-in"),onClick:()=>n(!e),children:(0,t.jsx)("div",{className:(0,a.cx)("relative h-26 w-48 overflow-hidden rounded-full border-2 border-solid select-none transition-[inherit] no-tap box-content",e&&"ease-in"),style:{background:r,borderColor:r},children:(0,t.jsx)("div",{className:"absolute top-0 left-1/2 h-[inherit] w-31 rounded-[inherit] bg-white select-none transition-transform duration-200 ease-[cubic-bezier(0.65,0,0.33,1)] no-tap",style:{transform:e?"translateX(calc(-50% + 14.5px))":"translateX(calc(-50% - 14.5px))"}})})})}])}]);
3
4//# debugId=c5eb9b28-ddc1-862e-4dbe-a90ffa0a890c

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.