1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`b979a1dd72c17209561bcc184e5e50b6a97d9243`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`e08a8bff-2feb-40e2-b266-3f229a022049`,e._sentryDebugIdIdentifier=`sentry-dbid-e08a8bff-2feb-40e2-b266-3f229a022049`)}catch{}})();import{a as e}from"./DJ6kPw7i.js";import{A as t,C as n,E as r,Et as i,Ht as a,J as o,L as s,M as c,Pt as l,T as u,V as d,X as f,a as p,et as m,k as h,nn as g,pt as _,rt as v,sn as y,t as b,vt as x,w as S,xt as C}from"./-0IMIAo4.js";import{f as ee,u as te}from"./BMjoMti8.js";import{r as w}from"./Dnyja5b0.js";import{t as T}from"./Bdehdbl8.js";import{t as E}from"./C1mdIw25.js";import{A as D,M as O,P as k,i as A,t as j}from"./Ci6VYL1U.js";import{n as M,r as N}from"./Cc0iIR5B.js";import{t as P}from"./OWac10Vw.js";import{t as F}from"./DcqMwzDu.js";import{t as I}from"./CV3VI_JF.js";import{t as L}from"./oB4srAJL2.js";var R=w(`/icons/check.svg`);s(),a();var z={class:`type-headline-lg mb-16`},B={class:`type-sm leading-single`},V={class:`flex items-center gap-8 mb-8`},H={class:`flex items-center gap-8 mb-8`},U={class:`flex items-center gap-8 mb-8`},W=c({__name:`NoAccountCTA`,props:{onSignupPage:{type:Boolean,default:!1},headline:{default:`signup.noAccount`}},setup(e){return(t,i)=>{let a=T;return f(),r(`div`,{class:g({"border-t border-stroke mt-24 pt-24 -mx-24 p-24":!e.onSignupPage})},[n(`div`,z,y(t.$t(e.headline)),1),m(t.$slots,`default`),n(`div`,B,[n(`div`,V,[i[0]||=n(`img`,{src:R,alt:``,class:`w-24 h-24 shrink-0`},null,-1),n(`span`,null,y(t.$t(`signup.usp1`)),1)]),n(`div`,H,[i[1]||=n(`img`,{src:R,alt:``,class:`w-24 h-24 shrink-0`},null,-1),n(`span`,null,y(t.$t(`signup.usp2`)),1)]),n(`div`,U,[i[2]||=n(`img`,{src:R,alt:``,class:`w-24 h-24 shrink-0`},null,-1),n(`span`,null,y(t.$t(`signup.usp3`)),1)]),e.onSignupPage?u(``,!0):(f(),S(a,{key:0,to:t.$manualUrl(`/account/signup`),class:`btn btn--secondary w-full mt-18`},{default:_(()=>[h(y(t.$t(`signup.cta`)),1)]),_:1},8,[`to`]))])],2)}}});x(),s(),a(),p();var G={class:`mb-12`},K={class:`mb-12`},q={key:0,class:`bg-surface -m-8`},J={class:`type-sm mb-16`},Y=[`disabled`],X={key:1,class:`mt-16 type-headline-sm text-center`},Z=c({__name:`SigninModal`,props:{asModal:{type:Boolean,default:!0},stayOnPage:{type:Boolean,default:!1},forceReload:{type:Boolean,default:!1}},setup(a){let{validateRequired:s,startValidate:c,validateEmail:p}=F(),m=E(),h=A(),x=i(!1),w=i(``),T=i(``),R=i(``),z=i(!1),B=i(!1),{apiPost:V,accountToken:H,handleApiError:U}=O(),{$t:Z}=e(),ne=()=>{x.value=!0,m.setShowModalBg(!0)},Q=a;o(()=>{m.clearFormErrorMsg()});let{manualUrl:$}=k();H.value&&h.userProfile&&(te(h.userProfile.role.type===D.Sales?$(`/salestool`):$(`/account`)),m.closeAllModal());let re=async()=>{B.value=!0;let e=!ee().path.includes(`checkout`);(m.stayOnPageAfterLogin||Q.stayOnPage)&&(e=!1);let t=await h.logIn({email:w.value,password:R.value,toAccountPage:e});B.value=!1,t&&Q.forceReload&&window.location.reload()},ie=j(),ae=async()=>{B.value=!0;let e={email:T.value,url:`${window.location.protocol}//${window.location.host}/${ie.getPrependPathForManualLinksWithTrailingSlash}account/resetpassword/${encodeURIComponent(T.value)}`};await V(`/password/forgot`,e)?z.value=!0:U(),B.value=!1};return(e,i)=>(f(),S(v(a.asModal?I:`div`),{position:`right`,"content-class":``,title:l(Z)(`signin.modalTitle`)},{default:_(()=>[t(l(N),{onSubmit:re,onClick:l(c)},{default:_(()=>[n(`div`,G,[t(l(M),{type:`email`,name:`email`,rules:l(p)},{default:_(({field:e,meta:n,errors:r})=>[t(P,d(e,{modelValue:l(w),"onUpdate:modelValue":i[0]||=e=>C(w)?w.value=e:null,"server-name":`email`,type:`email`,label:l(Z)(`signin.emailPlaceholder`),"show-error":n.validated&&!n.valid,errors:r,autocomplete:`email`,tabindex:1e3}),null,16,[`modelValue`,`label`,`show-error`,`errors`])]),_:1},8,[`rules`])]),n(`div`,K,[t(l(M),{type:`password`,name:`password`,rules:l(s)},{default:_(({field:e,meta:n,errors:r})=>[t(P,d(e,{modelValue:l(R),"onUpdate:modelValue":i[1]||=e=>C(R)?R.value=e:null,"server-name":`password`,type:`password`,label:l(Z)(`signin.passwordPlaceholder`),"show-error":n.validated&&!n.valid,errors:r,autocomplete:`current-password`,tabindex:1001}),null,16,[`modelValue`,`label`,`show-error`,`errors`])]),_:1},8,[`rules`])]),n(`button`,{type:`submit`,class:g([{loading:l(B)},`btn w-full`])},y(l(Z)(`signin.signin`)),3),t(L,{context:`login`})]),_:1},8,[`onClick`]),n(`button`,{type:`button`,class:`btn--text`,onClick:ne},y(l(Z)(`signin.forgotPassword`)),1),t(W),t(b,{name:`fromRight`},{default:_(()=>[l(x)?(f(),S(I,{key:0,position:`right`,"show-back":!0,title:l(Z)(`signin.forgot.title`),onBack:i[3]||=e=>x.value=!1},{default:_(()=>[l(z)?(f(),r(`div`,X,y(l(Z)(`signin.forgot.confirmationText`)),1)):(f(),r(`div`,q,[n(`div`,J,y(l(Z)(`signin.forgot.text`)),1),t(l(N),{onSubmit:ae,onClick:l(c)},{default:_(()=>[t(l(M),{type:`email`,name:`resetEmail`,rules:l(p)}
1,{default:_(({field:e,meta:n,errors:r})=>[t(P,d(e,{modelValue:l(T),"onUpdate:modelValue":i[2]||=e=>C(T)?T.value=e:null,type:`email`,label:l(Z)(`signin.emailPlaceholder`),"show-error":n.validated&&!n.valid,errors:r,autocomplete:`email`}),null,16,[`modelValue`,`label`,`show-error`,`errors`])]),_:1},8,[`rules`]),n(`button`,{type:`submit`,disabled:l(B),class:g([{loading:l(B)},`btn btn w-full my-12`])},y(l(Z)(`signin.forgot.button`)),11,Y)]),_:1},8,[`onClick`])]))]),_:1},8,[`title`])):u(``,!0)]),_:1})]),_:1},8,[`title`]))}});export{Z as t}; 2//# sourceMappingURL=BDZKPMsp2.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.