1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[290],{80290:function(e,t,s){s.r(t);var n=s(52676),l=s(75271),r=s(35033),a=s(45027),i=s(90557),o=s(1682),c=s.n(o),x=s(24141),d=s(49148),m=s(67893),p=s(99016),h=s(62081),g=s(5891),v=s(25381),u=s(81247),f=s(85110),j=s(9663),b=s(33821),N=s(31536),k=s.n(N);t.default=()=>{let{locale:e}=(0,r.useRouter)(),{show:t,isOpen:s}=(0,j.o)(),{width:o,height:N}=(0,x.Z)();(0,l.useEffect)(()=>{let e=window.visualViewport;if(!s||!e)return;let t=document.documentElement,n=()=>{t.style.setProperty("--vvh","".concat(e.height,"px"));let s=window.innerHeight-e.height,n=Math.min(e.offsetTop,s);t.style.setProperty("--vv-offset","".concat(n,"px"))};return n(),e.addEventListener("resize",n),e.addEventListener("scroll",n),()=>{e.removeEventListener("resize",n),e.removeEventListener("scroll",n),t.style.removeProperty("--vvh"),t.style.removeProperty("--vv-offset")}},[s]),(0,l.useEffect)(()=>{if(!s)return;let e=e=>{if(!e||!(e instanceof HTMLElement))return;let t=e.closest(".overflow-auto");if(!t)return;let s=e.getBoundingClientRect(),n=t.getBoundingClientRect();s.bottom>n.bottom-16?t.scrollTop+=s.bottom-n.bottom+16:s.top<n.top+16&&(t.scrollTop-=n.top-s.top+16)},t=t=>{let s=t.target;requestAnimationFrame(()=>requestAnimationFrame(()=>e(s)))};document.addEventListener("focusin",t);let n=window.visualViewport,l=()=>e(document.activeElement);return null==n||n.addEventListener("resize",l),()=>{document.removeEventListener("focusin",t),null==n||n.removeEventListener("resize",l)}},[s]);let[w,y]=(0,l.useState)(!1),[D,C]=(0,l.useState)(!1);return(0,n.jsx)(n.Fragment,{children:o&&o>640&&N>590?(0,n.jsx)(u.fC,{open:s,onOpenChange:e=>t(e),children:(0,n.jsxs)(u.h_,{children:[(0,n.jsx)(u.aV,{className:"fixed inset-0 bg-black bg-opacity-30 z-[10050]"}),(0,n.jsx)(u.VY,{className:"overflow-auto max-h-full fixed top-1/2 left-1/2 bg-white w-full max-w-[647px] transform -translate-x-1/2 -translate-y-1/2 z-[10050] rounded-[50px]",children:(0,n.jsxs)("div",{className:"flex flex-col items-center py-14",children:[(0,n.jsx)(u.Dx,{className:"text-[#241D2D] text-[45px]",children:(0,d.d)("Kom i gang med Svenn",e)}),(0,n.jsxs)("div",{className:"flex flex-col gap-5 items-center justify-center w-full max-w-[428px]",children:[(0,n.jsx)("p",{className:"text-center text-[#848484] mb-5 text-[15px]",children:(0,d.d)("Pr\xf8v gratis i 14 dager n\xe5. Krever ikke kredittkort. Ingen auto-abonnement. 100% uforpliktende.",e)}),(0,n.jsxs)(p.Z,{shape:"rectangle",onClick:()=>(0,f.signIn)("google"),children:[(0,n.jsx)(v.Z,{}),(0,n.jsx)("span",{className:"normal-case",children:(0,d.d)("Fortsett med Google",e)})]}),(0,n.jsxs)("div",{className:"flex gap-4 w-full items-center",children:[(0,n.jsx)("div",{className:"h-[1px] bg-[#C1C7D6] w-full"}),(0,n.jsx)("span",{className:"text-[15px] text-[#C1C7D6]",children:(0,d.d)("Eller",e)}),(0,n.jsx)("div",{className:"h-[1px] bg-[#C1C7D6] w-full"})]}),(0,n.jsx)(m.Z,{handleSuccess:()=>y(!0)}),(0,n.jsx)("div",{className:"mx-4 text-[#4D4D4D] justify-center items-start",children:(0,n.jsxs)("p",{className:"leading-5 text-[13px] text-center mb-0",children:[(0,n.jsx)(i.JO,{icon:"clarity:lock-solid",className:"inline text-sm -mt-[5px] mr-1"}),(0,n.jsx)("span",{children:(0,d.d)("Vi tar ditt personvern p\xe5 alvor og behandler din data ihht. GDPR.",e)})," ",(0,n.jsx)(k(),{href:"no"===e?"/personvern":"/de/datenschutzerklarung",target:"_blank",children:(0,d.d)("Les v\xe5r personvernerkl\xe6ring",e)})]})})]}),(0,n.jsx)(u.x8,{className:"absolute top-6 right-8",children:(0,n.jsx)(i.JO,{icon:"heroicons:x-mark-20-solid",className:"text-3xl hover:scale-125 transition-transform origin-center text-[#848484]"})})]})})]})}):(0,n.jsx)(a.dy.Root,{open:s,onOpenChange:e=>t(e),closeThreshold:.25,children:(0,n.jsxs)(a.dy.Portal,{children:[(0,n.jsx)(a.dy.Content,{className:"shadow-[0_2px_10px_0_rgb(0_0_0_/_25%)] rounded-t-3xl px-5 pt-8 bg-white flex flex-col mt-24 fixed bottom-0 left-0 right-0 z-[10050]",style:{maxHeight:"var(--vvh, 100%)",marginBottom:"calc(-1 * var(--vv-offset, 0px))"},children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"absolute top-0 left-0 right-0 m-auto mt-[7px] w-9 h-[5px] bg-[#848484] rounded-sm cursor-pointer"}),!w&&(0,n.jsxs)("div",{className:"flex flex-col w-full gap-5 max-w-xs m-auto pb-11",children:[(0,n.jsx)("h6",{className:"text-xl font-bold m-auto",children:(0,d.d)("Kom i gang med Svenn",e)}),(0,n.jsx)("p",{className:"text-center text-[#848484] mb-3 text-[15px] leading-5 mx-4",children:(0,d.d)("Pr\xf8v gratis i 14 dager n\xe5. Krever ikke kredittkort. Ingen auto-abonnement. 100% uforpliktende.",e)}),(0,n.jsxs)(p.Z,{onClick:()=>(0,f.signIn)("google"),children:[(0,n.jsx)(v.Z,{}),(0,n.jsx)("span",{children:(0,d.d)("Fortsett med Google",e)})]}),(0,n.jsx)(p.Z,{onClick:()=>y(!0),children:(0,d.d)("Epost",e)}),(0,n.jsx)("div",{className:"flex items-start mt-3 m-auto text-[#4D4D4D]",children:(0,n.jsxs)("p",{className:"max-w-[360px] leading-5 text-xs text-center mb-0",children:[(0,n.jsx)(i.JO,{icon:"clarity:lock-solid",className:"inline text-sm -mt-[5px] mr-1"}),(0,n.jsx)("span",{children:(0,d.d)("Vi tar ditt personvern p\xe5 alvor og behandler din data ihht. GDPR.",e)})," ",(0,n.jsx)(k(),{href:"no"===e?"/personvern":"/de/datenschutzerklarung",target:"_blank",children:(0,d.d)("Les v\xe5r personvernerkl\xe6ring",e)})]})})]}),w&&!D&&(0,n.jsx)("div",{className:"overflow-auto pb-11",children:(0,n.jsxs)("div",{className:"flex flex-col w-full gap-5 relative max-w-xs m-auto",children:[(0,n.jsx)("button",{onClick:()=>y(!1),className:"absolute flex gap-1 top-[2px] -left-1 opacity-50",children:(0,n.jsx)(i.JO,{icon:"heroicons:chevron-left-20-solid",className:"text-[36px]"})}),(0,n.jsx)("h6",{className:"text-xl font-bold m-auto",children:(0,d.d)("Pr\xf8v gratis",e)}),(0,n.jsx)("p",{className:"text-center text-[#848484] text-[15px] mb-0",children:(0,d.d)("Kom i gang og pr\xf8v Svenn gratis i 14 dager!",e)}),(0,n.jsx)(m.Z,{handleSuccess:e=>C(e)}),(0,n.jsx)("div",{className:"flex items-start m-auto text-[#4D4D4D]",children:(0,n.jsxs)("p",{className:"max-w-[360px] leading-5 text-xs text-center mb-0",children:[(0,n.jsx)(i.JO,{icon:"clarity:lock-solid",className:"inline text-sm -mt-[5px] mr-1"}),(0,n.jsx)("span",{children:(0,d.d)("Vi tar ditt personvern p\xe5 alvor og behandler din data ihht. GDPR.",e)})," ",(0,n.jsx)(k(),{href:"no"===e?"/personvern":"/de/datenschutzerklarung",target:"_blank",children:(0,d.d)("Les v\xe5r personvernerkl\xe6ring",e)})]})})]})}),D&&(0,n.jsxs)("div",{className:"flex flex-col gap-5 justify-center items-center pt-6",children:[(0,n.jsx)("div",{className:"h-24 w-24",children:(0,n.jsx)(c(),{loop:!1,autoplay:!0,height:"40px",animationData:b})}),(0,n.jsx)("h5",{className:"mb-3 text-center px-2",children:(0,d.d)("Kontoen din er n\xe5 opprettet!",e)}),(0,n.jsxs)("div",{className:"bg-[#F4F6FB] px-8 py-9 flex flex-col gap-5 items-center rounded-3xl",children:[(0,n.jsx)("h6",{className:"font-bold text-[24px] text-center mb-3",children:(0,d.d)("Last ned appen og logg inn for \xe5 komme i gang.",e)}),(0,n.jsx)(h.Z,{locale:e}),(0,n.jsx)(g.Z,{locale:e})]})]})]})}),(0,n.jsx)(a.dy.Overlay,{className:"fixed inset-0 bg-black/40 z-[
110040]"})]})})})}}}]);
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.