(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17521,38213],{9999:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tilbakestill-passord",function(){return t(5597)}])},63651:function(e,n,t){"use strict";t.d(n,{I:function(){return l}});var r=t(52676),s=t(60289);let l=e=>{var n;let{type:t,name:l,label:a,disabled:i,required:o,placeholder:c,hideLabel:d,register:u,errors:m,value:x,onChange:p,onKeyDown:f,size:h,defaultValue:g,className:b}=e,k=(0,s.cn)("w-full border-dark/20 !outline-none transition-colors hover:border-dark/50 focus:border-dark/100 focus:ring-dark disabled:bg-dark/5 disabled:text-muted disabled:hover:border-dark/20","lg"===h?"h-14 px-5 text-lg sm:h-16 sm:px-6":"h-12 px-4 sm:h-14 sm:px-5",b);return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsxs)("label",{children:[(0,r.jsxs)("span",{className:(0,s.cn)(d?"sr-only":"mb-1.5 block w-full text-left text-sm font-semibold"),children:[a,o&&(0,r.jsx)("span",{className:"text-danger",children:"*"})]}),(0,r.jsx)("input",{type:t,disabled:i,placeholder:c,value:x,...u?u(l):{},onChange:p,onKeyDown:f,defaultValue:g,className:k})]}),(null==m?void 0:m[l])&&(0,r.jsx)("p",{className:"bg-danger/10 px-2 py-1 text-xs text-danger",children:null===(n=m[l])||void 0===n?void 0:n.message})]})}},61395:function(e,n,t){"use strict";t.d(n,{E:function(){return i}});var r=t(52676),s=t(44212),l=t(4998),a=t(74355);let i=e=>(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(a.X,{level:2,size:4,className:"mb-4 md:mb-4",children:e.heading}),e.description,(0,r.jsx)(l.Y,{content:e.content}),e.button&&(0,r.jsx)(s.z,{...e.button,linkType:"internal",size:"xl",className:"mt-6 justify-center md:mt-8",children:e.button.text})]})},52592:function(e,n,t){"use strict";t.d(n,{W:function(){return c}});var r=t(52676),s=t(60399),l=t(4998),a=t(74355),i=t(28097),o=t(60289);let c=e=>{let{whiteDomainBackground:n}=(0,i.wP)(),{heading:t,description:c,content:d,children:u}=e;return(0,r.jsx)(s.W,{className:"mt-8 mb-20",children:(0,r.jsxs)("div",{className:"mx-auto max-w-xl",children:[(0,r.jsxs)("div",{className:"mb-8 text-center md:mb-10",children:[(0,r.jsx)(a.X,{level:1,size:2,children:t}),c&&(0,r.jsx)("p",{className:"mt-4 md:mt-7",children:c}),(0,r.jsx)(l.Y,{content:d,className:"mt-4 md:mt-7"})]}),(0,r.jsx)("div",{className:(0,o.cn)("mx-auto max-w-xl p-6 sm:p-10",n?"bg-dark/5":"bg-white "),children:u})]})})}},5597:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return x},default:function(){return p}});var r=t(52676),s=t(52592),l=t(63651),a=t(61395),i=t(44212),o=t(24100),c=t(38213),d=t(75271);let u=e=>{let{successMessage:n}=e,[t,s]=(0,d.useState)(""),u=o.h.passwords.resetUserPassword.useMutation(),m=()=>{u.mutate({email:t})};return u.isSuccess?(0,r.jsx)(a.E,{heading:n.heading,content:n.content,button:{type:"loginPage",text:"Logg inn"}}):(0,r.jsxs)("form",{onSubmit:e=>{e.preventDefault(),m()},className:"flex flex-col gap-y-3",children:[(0,r.jsx)(l.I,{type:"email",name:"email",label:"Din e-postadresse",placeholder:"Din e-postadresse",hideLabel:!0,value:t,size:"lg",onChange:e=>s(e.target.value)}),(0,r.jsx)(i.z,{size:"xl",linkType:"button",buttonType:"submit",className:"sm:text-lg",icon:c.default,disabled:u.isLoading,children:u.isLoading?"Sender...":"Send link"}),u.error&&(0,r.jsx)("p",{className:"bg-danger/10 px-4 py-3 text-sm text-danger",children:u.error.message})]})},m=e=>{let{data:n}=e,{title:t,intro:l}=n;return(0,r.jsx)(s.W,{heading:t,content:l,children:(0,r.jsx)(u,{...n})})};var x=!0,p=e=>(0,r.jsx)(m,{...e})},38213:function(e,n,t){"use strict";t.r(n);var r=t(75271),s=t(95672),l=t(38306),a=new Map;a.set("bold",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))}),a.set("duotone",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}),a.set("fill",function(){return r.createElement(r.Fragment,null,r.createElement("path",{d:"M104,192a8.5,8.5,0,0,1-5.7-2.3l-56-56a8.1,8.1,0,0,1,11.4-11.4L104,172.7,210.3,66.3a8.1,8.1,0,0,1,11.4,11.4l-112,112A8.5,8.5,0,0,1,104,192Z"}))}),a.set("light",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))}),a.set("thin",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))}),a.set("regular",function(e){return r.createElement(r.Fragment,null,r.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))});var i=function(e,n){return(0,s._)(e,n,a)},o=(0,r.forwardRef)(function(e,n){return r.createElement(l.Z,Object.assign({ref:n},e,{renderPath:i}))});o.displayName="Check",n.default=o}},function(e){e.O(0,[92888,49774,40179],function(){return e(e.s=9999)}),_N_E=e.O()}]);