PageSourceSearch

https://www.mondaymerch.com/shop/_nuxt/UOSbYnmQ.js

js mondaymerch.com collected 2026-09-25 19:54:25 UTC 5,979 bytes, 1 lines download raw bytes

1import{d as se,aH as oe,D as ie,h as ne,e as re,aK as le,aL as ue,a0 as k,n as de,_ as L,c as _,aM as ce,u as e,w as f,k as p,g as c,o as v,s as N,p as y,aN as ge,q as D,t as E,aO as me,v as V,aP as pe,aQ as ve,aR as he,aI as fe,aS as we,W as Le,aJ as h,$ as R,aT as _e,aU as ye,aV as q}from"./BkFNd4Gq.js";import{u as Ee}from"./CYKVgf_y.js";import{u as Se}from"./C_wo6giS.js";import{A as Ie}from"./C-ADQpgE.js";import{u as Oe,d as Pe,b as ke}from"./oWM-g8FS.js";import{_ as Ne}from"./DlAUqK2U.js";import"./zFMjUu_4.js";import"./BX_AFHFX.js";import"./BR8ME3Ce.js";import"./9w6Og10j.js";import"./CArcnfth.js";const Re={class:"auth-header-icon","aria-hidden":"true"},be={key:0},Te={key:0,class:"mt-4 flex items-center justify-center gap-1"},Ae={class:"auth-text-sm auth-font-inter auth-text-gray-900"},Me=se({__name:"index",setup(xe){const t=oe(),B=Ee(),g=ie(),S=ne(),{t:i}=re(),b=_e(),G=p(()=>S.query[h.EMAIL]?.replace(/ /g,"+")||""),n=p(()=>{const a=S.query[h.REDIRECT];return ye(a)}),l=c(""),u=c(""),m=c(null),w=c(null),T=c(""),d=c(!1),o=c("primary");let A=!1;const H={getItem:a=>A&&typeof window<"u"?(()=>{try{return window.localStorage.getItem(a)}catch{return null}})():null,setItem:(a,s)=>{if(typeof window<"u")try{window.localStorage.setItem(a,s)}catch{}},removeItem:a=>{if(typeof window<"u")try{window.localStorage.removeItem(a)}catch{}}},{method:I,refresh:F}=le(H),W=p(()=>I.value===q.LOGIN_LINK||I.value===q.LOGIN_OTP),$=p(()=>o.value==="passwordless-sent"),K=p(()=>o.value==="passwordless-sent"?i("auth.passwordless.sent.title"):o.value==="passwordless-2fa"?i("auth.2fa.title"):i("auth.login.title")),M=p(()=>o.value==="primary"||o.value==="password"?i("auth.login.description"):""),Q=async a=>{if(l.value=a.email,await t.login(a.email,a.password,n.value,{silentFailure:!0})||t.tempCredentials||t.loggedIn)return;const r=await B.checkUserExists(a.email).catch(()=>null);if(!r){b.show({title:i("errors.toastMessages.loginInvalidCredentials"),variant:"error"});return}if(r?.exists){b.show({title:i("errors.toastMessages.loginInvalidCredentials"),variant:"error"});return}const C={[h.EMAIL]:a.email,source:"login_unknown_email"};n.value&&(C[h.REDIRECT]=n.value),R({path:g(L.SIGNUP),query:C})},X=()=>{o.value="password"},Y=a=>{const s={},r=a||l.value;r&&(s[h.EMAIL]=r),R({path:g(L.FORGOT_PASSWORD),query:s})},x=()=>{const a={};n.value&&(a[h.REDIRECT]=n.value),R({path:g(L.SIGNUP),query:a})},j=a=>{a.auth_url&&t.redirectToOAuth(a.auth_url,a.name)},z=async a=>{m.value=null,l.value=a.email,u.value=a.email.toLowerCase(),await t.requestPasswordless(u.value,n.value)&&(o.value="passwordless-sent")},J=async()=>{if(!u.value){o.value="primary";return}m.value=null,await t.requestPasswordless(u.value,n.value)},Z=async a=>{m.value=null,d.value=!0;const s=await t.verifyLoginOtp(u.value,a,{silent:!0,localePath:g,redirect:n.value}).catch(()=>null);if(s?.redirect_2fa){T.value=a,w.value=null,d.value=!1,o.value="passwordless-2fa";return}s||(d.value=!1,t.error==="LOGIN_CHALLENGE_EXPIRED"?m.value=i("auth.login.errors.challengeExpired"):m.value=i("auth.login.errors.invalidOtp"))},ee=async a=>{w.value=null,d.value=!0;const s=await t.verifyLoginOtp(u.value,T.value,{silent:!0,localePath:g,totpToken:a,redirect:n.value}).catch(()=>null);(!s||s.redirect_2fa)&&(d.value=!1,w.value=t.error==="LOGIN_CHALLENGE_EXPIRED"?i("auth.login.errors.challengeExpired"):i("auth.login.errors.invalidOtp"))},{goBack:O}=ue(o,"primary"),{trustpilotData:P}=Se(),U=k.TRUSTPILOT_REVIEW_LINK,ae=k.SCHEMA_WEBSITE_NAME,te=k.MONDAYMERCH_WEBSITE_URL;return de(()=>{l.value=G.value,A=!0,F();const a=`${window.location.origin}${n.value||g(L.HOME)}`;t.getOAuthProviders(a)}),Oe([Pe({name:"Monday Merch",sameAs:U,aggregateRating:P.value?.rating?{bestRating:5,worstRating:1,ratingValue:P.value.rating,reviewCount:P.value.reviewCount,url:U}:void 0}),ke({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:ae,item:te},{"@type":"ListItem",position:2,name:i("auth.login.title"),item:`${S.fullPath}`}]})]),(a,s)=>(v(),_(Ie,null,ce({title:f(()=>[D(E(e(K)),1)]),content:f(()=>[y(e(me),null,{default:f(()=>[e(o)==="primary"?(v(),V("div",be,[y(e(pe),{"initial-email":e(l),"is-loading":e(t).loadingStates.passwordlessLoader?.isLoading,"show-back-link":!1,"show-description":!1,"is-last-used":e(W),"onUpdate:email":s[0]||(s[0]=r=>l.value=r),onSubmit:z},null,8,["initial-email","is-loading","is-last-used"]),y(e(ve),{class:"px-3",methods:["password","oauth"],"oauth-providers":e(t).oauthProviders,"providers-loading":e(t).loadingStates.oauthProvidersLoader?.isLoading,"last-used-method":e(I),onPassword:X,onOauth:j},null,8,["oauth-providers","providers-loading","last-used-method"])])):e(o)==="password"?(v(),_(e(he),{key:1,"initial-email":e(l),"is-loading":e(t).loadingStates.loginLoader?.isLoading,"show-signup":!1,"show-back-link":!0,"onUpdate:email":s[1]||(s[1]=r=>l.value=r),onSubmit:Q,"onNavigate:forgotPassword":Y,"onNavigate:signup":x,"onNavigate:back":e(O)},null,8,["initial-email","is-loading","onNavigate:back"])):e(o)==="passwordless-2fa"?(v(),_(e(fe),{key:2,"is-loading":e(t).loadingStates.loginOtpVerifyLoader?.isLoading||e(d),error:e(w),onSubmit:ee,"onNavigate:login":e(O)},null,8,["is-loading","error","onNavigate:login"])):(v(),_(e(we),{key:3,email:e(u),"is-loading":e(t).loadingStates.loginOtpVerifyLoader?.isLoading||e(d),error:e(m),"show-icon":!1,onSubmit:Z,onResend:J,"onNavigate:back":e(O)},null,8,["email","is-loading","error","onNavigate:back"]))]),_:1}),e(o)==="primary"||e(o)==="password"?(v(),V("div",Te,[N("p",Ae,E(e(i)("auth.login.dontHaveAnAccount")),1),N("button",{type:"button",class:"auth-text-button",onClick:x},E(e(i)("auth.login.signUp")),1)])):Le("",!0)]),_:2},[e($)?{name:"header-icon",fn:f(()=>[N("div",Re,[y(e(ge),{name:"mail","icon-class":"auth-header-icon-svg"})])]),key:"0"}:void 0,e(M)?{name:"description",fn:f(()=>[D(E(e(M)),1)]),key:"1"}:void 0]),1024))}}),Ke=Ne(Me,[["__scopeId","data-v-bbef9174"]]);export{Ke as default};

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.