1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4225],{13977:(e,t,r)=>{r.d(t,{M:()=>f});var a=r(37876),n=r(7369);r(3084);let s=e=>{let{finishTime:t,setNegativeAsZero:r}=e,a=t?Date.parse(t)-Date.now():0;if(r&&a<0)return{totalTime:0,durations:[0,0,0,0]};let n=Math.floor(a/864e5),s=Math.floor(a/36e5%24),l=Math.floor(a/1e3/60%60),o=Math.floor(a/1e3%60);return{totalTime:a,durations:[n,s,l,o]}};var l=r(14232),o=r(91549);let i=(0,r(34197).S)({theme:o.Z}),d=i({as:"div",slot:"base"}),m=i({as:"h4",slot:"title"}),u=i({as:"div",slot:"group"}),c=i({as:"div",slot:"duration"}),h=Object.assign(d,{Title:m,Group:u,Duration:c,DurationLabel:i({as:"span",slot:"durationLabel"}),Finished:i({as:"h4",slot:"finished"})}),x=["Dagar","Timmar","Minuter","Sekunder"],p=e=>{var t;let{title:r,finishTime:n,finishContent:o,...i}=e,[d,m]=(0,l.useState)(s({finishTime:n,setNegativeAsZero:!0}));return(0,l.useEffect)(()=>{if(d.totalTime<=0)return;let e=setInterval(()=>{let t=s({finishTime:n});m(t),(t.totalTime<=1e3||!t.totalTime)&&clearInterval(e)},1e3);return()=>clearInterval(e)},[n]),(0,a.jsx)(h,{...i,children:o&&(null!=(t=null==d?void 0:d.totalTime)?t:0)<=1e3?(0,a.jsx)(h.Finished,{children:o}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.Title,{children:r}),(0,a.jsx)(h.Group,{children:x.map((e,t)=>(0,a.jsxs)(h.Duration,{suppressHydrationWarning:!0,children:[null==d?void 0:d.durations[t],(0,a.jsx)(h.DurationLabel,{children:e})]},e))})]})})},f=(0,n.Qj)(e=>(0,a.jsx)(p,{...e}))},16907:(e,t,r)=>{r.d(t,{o:()=>a});let a=r(9906).tw.theme({slots:{base:"",item:""}})},16929:(e,t,r)=>{r.d(t,{H2:()=>n,fI:()=>o,l6:()=>m,lM:()=>h});var a=r(37876);let n=e=>{let{children:t}=e;return(0,a.jsx)("div",{className:"flex flex-wrap gap-6 bg-primary-100 p-3",children:t})};var s=r(28886),l=r(61343);let o=e=>{let{options:t,content:r,...n}=e;return"residence"===(0,l.m)()?null:(0,a.jsx)(s.f,{content:(0,a.jsx)("div",{className:"max-w-full resize-x overflow-x-hidden",children:r}),options:{className:"mx-0 max-w-full flex flex-col",...t},...n})};var i=r(18562);r(14232);let d=["\uD83D\uDC35","\uD83D\uDC36","\uD83D\uDC3A","\uD83E\uDD8A","\uD83E\uDD9D","\uD83D\uDC31","\uD83E\uDD81","\uD83D\uDC2F","\uD83D\uDC2E","\uD83D\uDC37","\uD83D\uDC2D","\uD83D\uDC39","\uD83D\uDC30","\uD83D\uDC3B","\uD83D\uDC3Bââï¸","\uD83D\uDC28","\uD83D\uDC3C"],m=e=>{let{label:t,items:r,onChange:n,defaultValue:s,disabled:l}=e;return(0,a.jsxs)("label",{className:"space-x-2",children:[(0,a.jsxs)("span",{children:[t,":"]}),(0,a.jsxs)("select",{onChange:e=>{let{target:{value:t}}=e;n(t||void 0)},defaultValue:s,disabled:l,children:[(0,a.jsx)("option",{value:"",suppressHydrationWarning:!0,children:d[(0,i.A)(0,d.length-1)]}),r.map(e=>(0,a.jsx)("option",{value:e,children:e},e))]})]})};var u=r(56102),c=r(3084);let h=e=>{let{onChange:t,checked:r,defaultChecked:n,disabled:s,...l}=e;return(0,a.jsx)(u.S,{...(0,c.v6)({options:{$input:{onChange:e=>{let{target:{checked:r}}=e;return t(r)},checked:r,defaultChecked:n,disabled:s}}},l)})}},18562:(e,t,r)=>{r.d(t,{A:()=>m});var a=Math.floor,n=Math.random,s=r(41373),l=r(51099),o=parseFloat,i=Math.min,d=Math.random;let m=function(e,t,r){if(r&&"boolean"!=typeof r&&(0,s.A)(e,t,r)&&(t=r=void 0),void 0===r&&("boolean"==typeof t?(r=t,t=void 0):"boolean"==typeof e&&(r=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=(0,l.A)(e),void 0===t?(t=e,e=0):t=(0,l.A)(t)),e>t){var m,u,c=e;e=t,t=c}if(r||e%1||t%1){var h=d();return i(e+h*(t-e+o("1e-"+((h+"").length-1))),t)}return m=e,u=t,m+a(n()*(u-m+1))}},28886:(e,t,r)=>{r.d(t,{f:()=>f});var a=r(37876),n=r(7369),s=r(3084),l=r(48314),o=r(43506),i=r(34197);let d=(0,i.S)({theme:o.a}),m=d({as:"div",slot:"base"}),u=d({as:"div",slot:"headline"}),c=d({as:"div",slot:"caption"}),h=Object.assign(m,{Headline:u,Caption:c,Footer:d({as:"footer",slot:"footer"}),Button:(0,i.Q)({as:l.$,theme:o.a.Button})}),x=e=>{var t;let{button:r,caption:n,content:l,footer:o,headline:i,...d}=e;return(0,a.jsxs)(h,{...d,children:[i&&(0,a.jsx)(h.Headline,{children:i}),n&&(0,a.jsx)(h.Caption,{children:n}),l,(o||r)&&(0,a.jsxs)(h.Footer,{children:[o,r&&(0,a.jsx)(h.Button,{...(0,s.v6)({options:null==(t=d.options)?void 0:t.$button},r)})]})]})},p=e=>{var t;let{className:r}=null!=(t=e.options)?t:{},n=null==r?void 0:r.split(" ").includes("bg");return(0,a.jsx)(x,{...(0,s.v6)({options:{size:n?"secondary":"primary"}},e)})},f=(0,n.Qj)(e=>(0,a.jsx)(p,{...e}))},37438:(e,t,r)=>{r.d(t,{B:()=>m});var a=r(37876),n=r(7369);r(3084);var s=r(15965),l=r(16907);let o=(0,r(34197).S)({theme:l.o}),i=Object.assign(o({as:"ul"}),{Item:o({as:"li",slot:"item"})}),d=e=>{let{items:t,...r}=e;return Array.isArray(t)?(0,a.jsx)(i,{...r,children:t.map((e,t)=>(0,a.jsx)(i.Item,{children:e},t))}):(s.v.warn("List's `items` property is not an array"),null)},m=(0,n.Qj)(e=>(0,a.jsx)(d,{...e}))},43506:(e,t,r)=>{r.d(t,{a:()=>o});var a=r(9906);let n=r(3601).O,s=Object.assign(a.tw.theme({slots:{base:["group/row","row","relative","mx-auto","grid","w-full","max-w-grid","auto-rows-min","grid-cols-12","gap-grid","empty:hidden","group-[]/row:flex","group-[]/row:flex-col","[&:not(:has(.box))]:flex","[&:not(:has(.box))]:flex-col","[&:not(:has(:not(.box:empty)))]:hidden","[&.bg]:py-grid-gap"],headline:["col-span-12","w-full","text-black","text-headline-sm","after:h-0.25","after:bg-black","sm:text-headline-md"],caption:["col-span-12","w-full","text-black","text-body-sm"],footer:["col-span-12","flex","w-full","items-center","justify-center","[&:not(:first-child)]:mt-12"]}}),{Button:n}),{Button:l}=s,o=Object.assign(a.tw.theme({extend:s,slots:{base:["bg-no-repeat","data-[row-type=courseFilter]:bg-yellow-sea-100","data-[row-type=courseFilter]:bg-[url('/image/course/course-filter-blob.svg')]"],headline:["sm:-mb-4","group-[.courses]/front:-mb-1","sm:text-headline-alternative-sm group-[.courses]/front:font-bold"],footer:["[&:not(:first-child)]:mt-5.5"]},variants:{size:{primary:{base:["data-[row-type=courseFilter]:left-1/2","data-[row-type=courseFilter]:w-screen","data-[row-type=courseFilter]:max-w-none","data-[row-type=courseFilter]:-translate-x-1/2","data-[row-type=courseFilter]:py-8","md:gap-y-6"],footer:["group-[.courses]/front:[&:not(:first-child)]:mb-2","group-[.courses]/front:[&:not(:first-child)]:mt-0","sm:group-[.courses]/front:[&:not(:first-child)]:mt-1.5"]},secondary:{base:["group-[.courses]/front:has-[article]:pb-8","group-[.courses]/front:has-[article]:pt-6","group-[.courses]/front:has-[article]:last:mb-12","md:gap-y-6"],footer:["group-[.courses]/front:[&:not(:first-child)]:mt-0"]}}},defaultVariants:{size:"primary"}}),{Button:l})},51099:(e,t,r)=>{r.d(t,{A:()=>p});var a=/\s/;let n=function(e){for(var t=e.length;t--&&a.test(e.charAt(t)););return t};var s=/^\s+/,l=r(29356),o=r(94147),i=0/0,d=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;let h=function(e){if("number"==typeof e)return e;if((0,o.A)(e))return i;if((0,l.A)(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=(0,l.A)(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,n(t)+1).replace(s,""):t;var a=m.test(e);return a||u.test(e)?c(e.slice(2),a?2:8):d.test(e)?i:+e};var x=1/0;let p=function(e){return e?(e=h(e))===x||e===-x?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},54225:(e,t,r)=>{r.r(t),r.d(t,{ConfirmationPreview:()=>l,default:()=>o});var a=r(37876),n=r(58943),s=r(16929);let l=()=>(0,a.jsx)(s.fI,{headline:"Confirmation",content:(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)(n.m,{})})}),o=l},58943:(e,t,r)=>{r.d(t,{m:()=>$});var a=r(37876),n=r(7369),s=r(3084),l=r(23508),o=r(37438),i=r(53370),d=r(61248),m=r(48314),u=r(91549),c=r(9906);let h=r(3601).O,x=u.Z,p=Object.assign(c.tw.theme({slots:{base:"p-6",title:"",banner:"",bannerHeader:"",bannerParagraph:"",content:""}}),{Button:h,Timer:x}),{Button:f}=p,b=c.tw.theme({extend:u.Z,slots:{base:"bg-yellow-sea-100 my-8 max-w-[786px] bg-[url(/image/course/confirmation-banner-background.svg)] bg-cover bg-center bg-no-repeat py-6",group:"gap-2 md:gap-3"}}),g=Object.assign(c.tw.theme({extend:p,slots:{base:"px-0 pt-0 sm:px-6",title:"mb-6 text-center text-headline-md md:mb-8 md:text-headline-lg",banner:"bg-yellow-sea-100 mx-auto max-w-[786px] px-4 py-6 md:p-10",bannerHeader:"mb-2 text-headline-sm md:mb-3 md:text-headline-lg",bannerParagraph:"mb-4 text-headline-xs last-of-type:mb-0 md:mb-6 md:text-headline-sm",content:"mb-10 mt-4 text-center text-headline-xs md:text-headline-sm"}}),{Button:f,Timer:b});var v=r(13977),j=r(34197);let w=(0,j.S)({theme:g}),y=w({as:"section",slot:"base"}),k=w({as:"h2",slot:"title"}),N=w({as:"div",slot:"banner"}),B=w({as:"h3",slot:"bannerHeader"}),F=w({as:"section",slot:"content"}),A=(0,j.Q)({as:v.M,theme:g.Timer}),O=(0,j.Q)({as:m.$,theme:g.Button}),T=Object.assign(y,{Banner:Object.assign(N,{Header:B}),Timer:A,Button:O,Title:k,Content:F}),M=e=>{var t,r;let{title:n,banner:l,button:o,content:i,timer:d,...m}=e;return(0,a.jsxs)(T,{...m,children:[n&&(0,a.jsx)(T.Title,{children:n}),(0,a.jsxs)(T.Banner,{children:[(null==l?void 0:l.header)&&(0,a.jsx)(T.Banner.Header,{children:null==l?void 0:l.header}),null==l?void 0:l.content]}
1),i&&(0,a.jsx)(T.Content,{children:i}),d&&(0,a.jsx)(T.Timer,{...(0,s.v6)(null==m||null==(t=m.options)?void 0:t.$timer,d)}),o&&(0,a.jsx)(T.Button,{...(0,s.v6)(null==m||null==(r=m.options)?void 0:r.$button,o)})]})};var C=r(87808);let H=(0,j.S)({theme:g})({as:"p",slot:"bannerParagraph"}),S=e=>{let{logInUrl:t,isUserLoggedIn:r}=(0,d.A)({customReturnTo:"".concat((0,C.F)(!1),"/mina-sidor")}),n=(0,i.XC)({title:"21 dagar kost & tr\xe4ning",banner:{header:"Tack f\xf6r din anm\xe4lan â innan vi b\xf6rjar:",content:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(H,{children:["Vi har skickat ett bekr\xe4ftelsemejl till e-postadressen du angav. F\xf6r att f\xe5 tillg\xe5ng till tj\xe4nsten"," ",(0,a.jsx)("span",{className:"bold",children:"m\xe5ste du f\xf6rst g\xf6ra tv\xe5 viktiga saker:"})]}),(0,a.jsx)(o.B,{as:"ol",items:["S\xe4kerst\xe4ll att du har f\xe5tt en bekr\xe4ftelse skickad till din mejl","Klicka p\xe5 l\xe4nken i mejlet f\xf6r att bekr\xe4fta ditt konto"],options:{className:"list-decimal flex flex-col gap-3 text-headline-sm md:text-headline-md pl-6 md:pl-7 mb-4 md:mb-6"}}),(0,a.jsxs)(H,{children:["Om du inte har f\xe5tt ett bekr\xe4ftelsemejl inom 72 timmar kontakta kundservice"," ",(0,a.jsx)(l.N,{href:"mailto:[email protected]",content:"[email protected]",options:{className:"text-cherry-blossom-500 font-bold underline hover:no-underline"}})]}),(0,a.jsx)(H,{className:"bold",children:"Du m\xe5ste bekr\xe4fta ditt konto f\xf6r att f\xe5 tillg\xe5ng till tj\xe4nsten. Vi rekommenderar att du g\xf6r det direkt."})]})},content:r?(0,a.jsx)(l.N,{href:"/mina-sidor",content:"G\xe5 till mina sidor",options:{className:"underline hover:no-underline"}}):(0,a.jsxs)(a.Fragment,{children:["Redan medlem?"," ",(0,a.jsx)(l.N,{href:t,content:"Logga in h\xe4r",options:{className:"underline hover:no-underline"}})]}),button:{content:"L\xe4s det senaste fr\xe5n M\xe5Bra",link:{href:"/"},options:{className:"mx-auto md:mb-4 w-fit !block"}}},e);return(0,a.jsx)(M,{...n})},$=(0,n.Qj)(e=>(0,a.jsx)(S,{...e}))},91549:(e,t,r)=>{r.d(t,{Z:()=>s});var a=r(9906);let n=a.tw.theme({slots:{base:"",title:"",group:"gap-3 flex justify-center",duration:"flex flex-col items-center justify-center",durationLabel:"",finished:""}}),s=a.tw.theme({extend:n,slots:{base:"mx-auto",title:"mb-3 text-center text-headline-xs",group:"",duration:"h-[56px] w-[66px] rounded-xl bg-white !font-bold text-headline-sm md:text-headline-md",durationLabel:"text-headline-2xs",finished:"text-center text-headline-sm md:max-w-[380px] md:text-headline-md lg:max-w-[580px]"}})}}]); 2//# sourceMappingURL=4225.220299618cd96de3.js.map
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.