PageSourceSearch

https://www.nordicnest.dk/static/2156.91f72b21522f71b3.js

js nordicnest.dk collected 2026-09-25 09:50:44 UTC 9,910 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunknestcom=self.webpackChunknestcom||[]).push([["2156"],{1623:function(e,i,n){n.r(i),n.d(i,{ViewType:()=>A,default:()=>C});var t,a=n(8931),o=n(3587),r=n(6003),s=n(9330),l=n(4116),c=n(7630),g=n(2743),d=n(2018),p=n(2063),h=n(3144),m=n(2041),x=n(7124),u=n(8201),S=n(8725);let w=(0,r.I4)(e=>(0,a.jsxs)(f,{children:[(0,a.jsx)(j,{children:e.heading}),(0,a.jsx)(y,{children:e.text}),!c.VY&&(0,a.jsx)(u.$n,{as:c.Sx.Secondary,onClick:e.close,children:(0,d.Tl)(e=>e.ariaLabelCloseButton)})]})),f=r.I4.div({textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",padding:{x:e=>e.sharedSpacing.xl}},c.VY&&(0,p.TG)({marginTop:e=>e.sharedSpacing.xxl})),j=r.I4.h2({textAlign:"center",fontWeight:e=>e.fontWeight?.bold,marginBottom:e=>e.sharedSpacing.l},!c.VY&&{textTransform:"uppercase"}),y=r.I4.p({marginBottom:e=>e.sharedSpacing.xl});var T=n(6140),I=n(2454),A=((t={})[t.Login=0]="Login",t[t.Registration=1]="Registration",t[t.ResetPassword=2]="ResetPassword",t);let C=o.memo(function(e){let[i]=(0,d.T7)({},"NordicNest.ContentApi.DynamicData.AuthenticationDetailsApiModel,NordicNest.ContentApi"),{close:n,changeView:t}=(0,g.X)("Login"),r=(0,g.a)(),p="Login"===e.view||"Registration"===e.view||"Success"===e.view||"Verification"===e.view||"ResetPassword"===e.view,h=(0,d.d3)();return o.useLayoutEffect(()=>{t(e.view)},[e.view]),(0,a.jsxs)(B,{position:s.yX.Right,visible:p,onClose:n,zIndex:l.P.Overlay,children:[(0,a.jsxs)(P,{...I.Sv.AuthFlyoutHeader,children:["Login"!==r&&"Success"!==r&&(0,a.jsx)(b,{as:c.Sx.Transparent,disableRippleEffect:!0,onClick:()=>t("Login"),square:!0,children:(0,a.jsx)(S.Z3,{})}),h&&(0,a.jsx)(D,{}),(0,a.jsx)(N,{onClick:n,as:c.Sx.Transparent,square:!0,children:(0,a.jsx)(S.US,{})})]}),"Login"===r&&(0,a.jsx)(k,{changeView:t,heading:i?.loginHeading??"",description:i?.loginDescription??[],css:F,showRegistrationLink:!0,close:n}),"Registration"===r&&(0,a.jsx)(v,{css:F,heading:i?.registrationHeading??"",description:i?.registrationDescription??[],changeView:t,registrationFormFields:i?.registrationFormFields}),"ResetPassword"===r&&(0,a.jsx)(m.ForgotPasswordForm,{css:F,close:n}),("Success"===r||"Verification"===r)&&(0,a.jsx)(w,{close:n,css:F,heading:"Verification"===r?(0,d.Tl)(e=>e.registration.verifyAccountLinkSentHeading):(0,d.Tl)(e=>e.registration.successHeading),text:"Verification"===r?(0,d.Tl)(e=>e.registration.verifyAccountLinkSentMessage):(0,d.Tl)(e=>e.registration.successMessage)})]})}),k=(0,r.I4)(h.LoginForm,(0,p.TG)({marginTop:e=>e.spacing.xl})),v=(0,r.I4)(x.RegistrationForm,(0,p.TG)({marginTop:0}),{overflowY:"auto",marginTop:0}),P=r.I4.header((0,p.H_)({marginBottom:80}),{display:"grid",gridTemplateAreas:'"back logo close"',gridTemplateColumns:"48px 1fr 48px",alignItems:"center",backgroundColor:e=>e.flyout.backgroundColor,margin:{bottom:e=>e.sharedSpacing.m,top:e=>e.sharedSpacing.xs}}),b=(0,r.I4)(u.$n,{gridArea:"back"}),D=(0,r.I4)(T.hY,{gridArea:"logo",margin:{x:"auto"}}),N=(0,r.I4)(u.$n,{gridArea:"close"}),B=(0,r.I4)(s.Ay,{backgroundColor:e=>e.flyout.backgroundColor}),F=(0,r.I4)({margin:{top:0}})},2041:function(e,i,n){n.r(i),n.d(i,{ForgotPasswordForm:()=>p,default:()=>h});var t=n(8931),a=n(3587),o=n(6003),r=n(2018),s=n(4414),l=n(2063),c=n(8201),g=n(7043),d=n(7630);let p=(0,o.I4)(e=>{let[i,n]=a.useState(""),[o,l]=(0,c.j8)(),[g,p]=a.useState(!1),[h,j]=a.useState(!1),y=(0,r.T7)({},"NordicNest.ContentApi.DynamicData.WellknownPagesApiModel,NordicNest.ContentApi")[0]?.startPageUrl??"",T=a.useCallback(e=>{e.preventDefault(),l(new Promise(async(e,n)=>{(await (0,s.BD)({email:i})).success?(p(!0),e()):(j(!0),n())}))},[i,l]);return(0,t.jsxs)(u,{onSubmit:T,children:[(0,t.jsx)(x,{children:(0,r.Tl)(e=>e.login.resetPassword)}),g?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{children:(0,r.Tl)(e=>e.login.resetPasswordSuccessMessage,{email:i})}),(0,t.jsx)(f,{to:y,as:d.Sx.Secondary,onClick:e.close,children:(0,r.Tl)(e=>e.continueShopping)})]}):(0,t.jsxs)(t.Fragment,{children:[d.VY&&(0,t.jsx)(w,{children:(0,r.Tl)(e=>e.login.resetPasswordDescription)}),(0,t.jsx)(m,{as:d.VY?d.Sx.Monochrome:d.Sx.White,required:!0,type:"email",value:i,onChange:e=>n(e.target.value),placeholder:(0,r.Tl)(e=>e.customer.email)}),h&&(0,t.jsx)(S,{children:(0,r.Tl)(e=>e.login.resetPasswordErrorMessage)}),(0,t.jsx)(c.y6,{state:o,type:"submit",as:d.VY?d.Sx.Primary:d.Sx.Secondary,children:(0,r.Tl)(e=>e.login.resetPassword)})]})]})}),h=(0,r.Nj)(()=>(0,t.jsx)(p,{})),m=(0,o.I4)(g.A_,{marginBottom:e=>e.sharedSpacing.m}),x=o.I4.h2({fontWeight:e=>e.fontWeight?.bold,fontSize:e=>e.sharedFontSize.xl,marginBottom:e=>e.sharedSpacing.l},!d.VY&&{textTransform:"uppercase"}),u=o.I4.form((0,l.TG)({marginTop:e=>e.sharedSpacing.m,padding:{x:e=>e.sharedSpacing.m},width:"100%"}),{margin:{x:"auto",top:e=>e.sharedSpacing.xl},padding:{x:e=>e.sharedSpacing.xl},width:430,fontSize:e=>e.fontSize.xs,textAlign:"center",display:"flex",flexDirection:"column",alignContent:"center"}),S=o.I4.p({fontSize:e=>e.fontSize.xxs,color:e=>e.negative.color}),w=o.I4.p({fontSize:e=>e.fontSize.xs,marginBottom:e=>e.sharedSpacing.m}),f=(0,o.I4)(c.vx,{textTransform:"none",padding:{y:e=>e.spacing.xs}})},3144:function(e,i,n){let t;n.r(i),n.d(i,{LoginForm:()=>I,RegisteredLoginPage:()=>T});var a=n(8931),o=n(3587),r=n(2018),s=n(7016),l=n(2454),c=n(2743),g=n(2768),d=n(4414),p=n(7630),h=n(8201),m=n(6003),x=n(7043),u=n(2562),S=n(2063),w=n(8992),f=n(9268),j=n(1062),y=n(3538);let T=(0,r.Nj)(function(e){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.O,{heading:(0,r.Tl)(e=>e.login.heading)}
1),(0,a.jsx)(I,{heading:e.page.heading,description:e.page.content,showRegistrationLink:!0})]})}),I=(0,m.I4)(({changeView:e,heading:i,description:n,showRegistrationLink:t=!1,close:g})=>{let[m,x]=o.useState(""),[u,S]=o.useState(""),[f,T]=o.useState(!1),[I,L]=(0,h.j8)(),W=(0,r.T7)({},"NordicNest.ContentApi.DynamicData.WellknownPagesApiModel,NordicNest.ContentApi")[0]?.registrationPageUrl,R=(0,r.T7)({},"NordicNest.ContentApi.DynamicData.WellknownPagesApiModel,NordicNest.ContentApi")[0]?.forgotPasswordPageUrl,[z]=(0,r.T7)({selector:e=>e?.myPagesStartPageUrl},"NordicNest.ContentApi.DynamicData.WellknownPagesApiModel,NordicNest.ContentApi"),[V]=(0,r.T7)({},"NordicNest.ContentApi.DynamicData.AuthenticationDetailsApiModel,NordicNest.ContentApi"),{source:U}=(0,c.X)("Login");o.useEffect(()=>{M(V,async i=>{await j.Ek.emit(),"PDP"===U&&e?e("Success"):(g?.(),i!==(0,r.bS)().toString()?await (0,r.c8)(i):await (0,r.Uu)())})},[V,g,e,U]);let E=o.useCallback(i=>{i.preventDefault(),L(new Promise(async(i,n)=>{(await (0,d.iD)(m,u)).success?(i(),"PDP"===U&&e?e("Success"):(g?.(),(0,r.bS)().pathname.toString()===z?await (0,r.Uu)():z&&await (0,r.c8)(z))):(n(),T(!0))}))},[L,m,u,g,e,z,U]),Y=o.useCallback((i,n)=>{e&&(i.preventDefault(),i.stopPropagation(),e(n))},[e]),K=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P,{as:p.Sx.Transparent,keepBorder:!0,type:"email",value:m,onChange:e=>x(e.target.value),placeholder:(0,r.Tl)(e=>e.login.email),autoComplete:"username"}),(0,a.jsx)(b,{as:p.Sx.Transparent,keepBorder:!0,type:"password",value:u,onChange:e=>S(e.target.value),placeholder:(0,r.Tl)(e=>e.login.password),autoComplete:"current-password"})]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(A,{onSubmit:E,children:[i&&(0,a.jsx)(k,{children:i}),(0,a.jsx)(C,{id:"sign-in-with-klarna-container"})]}),(0,a.jsxs)(A,{onSubmit:E,...l.Sv.MyPagesLoginForm,children:[(0,a.jsx)(s.yo,{elements:n}),p.E6?(0,a.jsxs)(v,{children:[(0,a.jsx)(F,{}),K]}):K,f&&(0,a.jsx)(N,{children:(0,r.Tl)(e=>e.login.failedLogin)}),(0,a.jsx)(D,{type:"submit",state:I,as:p.VY?p.Sx.Primary:p.Sx.Secondary,size:w.S9.Large,id:"login-button",children:(0,r.Tl)(e=>e.login.loginAction)}),t&&(0,a.jsx)(B,{...y.Ug.RegisterButton,onClick:e=>Y(e,"Registration"),to:W||"",children:(0,r.Tl)(e=>e.login.createAccount)}),(0,a.jsx)(B,{onClick:e=>Y(e,"ResetPassword"),to:R||"",children:(0,r.Tl)(e=>e.login.resetPassword)}),(0,a.jsx)("div",{...l.Sv.SignUpFlyoutUspArea})]})]})}),A=m.I4.form((0,S.TG)({marginTop:e=>e.sharedSpacing.m}),{padding:{x:e=>e.sharedSpacing.xl,bottom:0},width:430,fontSize:e=>e.fontSize.xs,textAlign:"center",maxWidth:"100%",display:"flex",flexDirection:"column",alignContent:"center",margin:{x:"auto"}}),C=m.I4.div({width:"100%",marginBottom:e=>e.sharedSpacing.l,minHeight:48}),k=m.I4.h2({fontSize:e=>e.fontSize.l,fontWeight:"bold",marginBottom:e=>e.sharedSpacing.l}),v=m.I4.div({position:"relative",marginTop:48}),P=(0,m.I4)(x.A_,{marginBottom:e=>e.sharedSpacing.m,width:"100%"}),b=(0,m.I4)(x.A_,{marginBottom:e=>e.sharedSpacing.m,width:"100%"}),D=(0,m.I4)(h.y6,{margin:{x:"auto",bottom:e=>e.sharedSpacing.l},padding:{x:e=>e.sharedSpacing.xxl},marginBottom:e=>e.sharedSpacing.xl,width:"100%"}),N=m.I4.div({fontSize:e=>e.sharedFontSize.xxs,marginBottom:e=>e.sharedSpacing.xs,color:e=>e.negative.color}),B=(0,m.I4)(u.A,{marginBottom:e=>e.sharedSpacing.m,textDecoration:"underline",alignSelf:"center"}),F=(0,m.I4)(f.ML,{position:"absolute",bottom:"100%",right:"25%",transform:"translateX(50%)",width:60}),L=!1;async function M(e,i){if(t=i,e?.signInWithKlarnaScriptModel){await (0,r.k0)("https://js.klarna.com/web-sdk/v1/klarna.js");let i=await window.Klarna.init({clientId:e.signInWithKlarnaScriptModel.clientId});L||(i.Identity.on("error",async e=>{console.error(e.message)}),i.Identity.on("signin",async i=>{await (0,r.B2)(new r.Ac("/api/signInWithKlarna/logincallback"),i).then(async i=>{"succeeded"===i.result?await t?.(e.signInWithKlarnaScriptModel.redirectUrl):"needsUpdate"===i.result||i.result}),console.log(i)}),L=!0);let n=i.Identity.button({scope:e.signInWithKlarnaScriptModel.scope,redirectUri:e.signInWithKlarnaScriptModel.redirectUrl,locale:e.signInWithKlarnaScriptModel.locale,theme:"outlined",shape:"rect",interactionMode:"DEVICE_BEST"});document.getElementById("sign-in-with-klarna-container")?.hasChildNodes()||n.mou
1nt("#sign-in-with-klarna-container")}}}}]);
2//# sourceMappingURL=2156.91f72b21522f71b3.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.