PageSourceSearch

https://www.jomashop.com/dist/js/5513.fe8a6c469a14d32497f7.bundle.js

js jomashop.com collected 2026-09-24 08:55:45 UTC 5,917 bytes, 14 lines download raw bytes

1"use strict";(self.webpackChunkJomashop=self.webpackChunkJomashop||[]).push([[5513],{36834:(e,a,t)=>{t.d(a,{A:()=>SocialLoginRegisterForm})
2var i=t(16522),s=t(96540),r=t(58614),l=t(82435),n=t(92626),c=t(95498),d=t(6417),o=t(85436),m=t(34027),u=t(22022),h=t(30053),x=t(41465),p=t(7134),f=t(99365),y=t(74848)
3const SocialLoginRegisterForm=e=>{const a=(0,i.c)(128),{email:t,sessionId:j,updateEmail:v}=e,[g]=(0,u.Bd)(),{authState:b,dispatch:A}=(0,s.useContext)(o.aS),_=(0,m.Sl)(),{exchangeJomaToken:N,createAccount:S}=(0,f.U)(),[k,q]=(0,s.useState)(!1)
4let T
5a[0]!==S||a[1]!==A||a[2]!==N||a[3]!==_?(T=e=>{const{session_id:a,...t}=e
6q(!0),S(a,t).then(()=>N(a)).then(e=>_(e)).catch(()=>{A({type:"SET_AUTH_ERROR",error:"The account sign-in was incorrect please try again."})})},a[0]=S,a[1]=A,a[2]=N,a[3]=_,a[4]=T):T=a[4]
7const w=T
8let C
9a[5]!==b?.user?.stytchMetadata?.user?.name?(C=b?.user?.stytchMetadata?.user?.name||{},a[5]=b?.user?.stytchMetadata?.user?.name,a[6]=C):C=a[6]
10const{first_name:E,last_name:V}=C
11if(k){let e
12return a[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,y.jsx)(p.A,{}),a[7]=e):e=a[7],e}let B,D,F,O,I,J,L,M,R,H,U,W,z,G,K,P,Q,X,Y,Z,$,ee,ae,te,ie,se,re,le,ne,ce,de,oe,me,ue,he,xe,pe,fe,ye,je,ve,ge,be,Ae,_e
13return a[8]!==g?(B=g("Welcome"),a[8]=g,a[9]=B):B=a[9],a[10]!==B?(D=(0,y.jsxs)("div",{className:"welcome",children:[B,"!"]}),a[10]=B,a[11]=D):D=a[11],a[12]!==g?(F=g("Add first name and last name to create your account"),a[12]=g,a[13]=F):F=a[13],a[14]!==F?(O=(0,y.jsx)("div",{className:"title",children:F}),a[14]=F,a[15]=O):O=a[15],a[16]!==g?(I=g("Email"),a[16]=g,a[17]=I):I=a[17],a[18]!==g?(J=g("email"),a[18]=g,a[19]=J):J=a[19],a[20]!==g?(L=g("Email"),a[20]=g,a[21]=L):L=a[21],a[22]!==t||a[23]!==L?(M=(0,y.jsx)(l.A,{field:"email",type:"hidden",placeholder:L,id:"social_email",initialValue:t}),a[22]=t,a[23]=L,a[24]=M):M=a[24],a[25]!==M||a[26]!==I||a[27]!==J?(R=(0,y.jsx)(n.D,{label:I,labelText:J,children:M}),a[25]=M,a[26]=I,a[27]=J,a[28]=R):R=a[28],a[29]!==g?(H=g("First Name"),a[29]=g,a[30]=H):H=a[30],a[31]!==g?(U=g("first_name"),a[31]=g,a[32]=U):U=a[32],a[33]!==g?(W=g("First Name"),a[33]=g,a[34]=W):W=a[34],a[35]!==g?(z=(0,d.A)([{fn:c.gx,text:g("First Name required")}]),a[35]=g,a[36]=z):z=a[36],a[37]!==E||a[38]!==W||a[39]!==z?(G=(0,y.jsx)(l.A,{field:"firstname",type:"text",autoComplete:"given-name",placeholder:W,id:"first_name","aria-required":"true",validate:z,validateOnBlur:!0,initialValue:E}),a[37]=E,a[38]=W,a[39]=z,a[40]=G):G=a[40],a[41]!==H||a[42]!==U||a[43]!==G?(K=(0,y.jsx)(n.D,{label:H,labelText:U,required:!0,children:G}),a[41]=H,a[42]=U,a[43]=G,a[44]=K):K=a[44],a[45]!==g?(P=g("Last Name"),a[45]=g,a[46]=P):P=a[46],a[47]!==g?(Q=g("last_name"),a[47]=g,a[48]=Q):Q=a[48],a[49]!==g?(X=g("Last Name"),a[49]=g,a[50]=X):X=a[50],a[51]!==g?(Y=(0,d.A)([{fn:c.gx,text:g("Last Name required")}]),a[51]=g,a[52]=Y):Y=a[52],a[53]!==V||a[54]!==X||a[55]!==Y?(Z=(0,y.jsx)(l.A,{field:"lastname",type:"text",autoComplete:"family-name",placeholder:X,id:"last_name","aria-required":"true",validate:Y,validateOnBlur:!0,initialValue:V}),a[53]=V,a[54]=X,a[55]=Y,a[56]=Z):Z=a[56],a[57]!==P||a[58]!==Q||a[59]!==Z?($=(0,y.jsx)(n.D,{label:P,labelText:Q,required:!0,children:Z}),a[57]=P,a[58]=Q,a[59]=Z,a[60]=$):$=a[60],a[61]!==g?(ee=g("Stytch session id"),a[61]=g,a[62]=ee):ee=a[62],a[63]!==g?(ae=g("session_id"),a[63]=g,a[64]=ae):ae=a[64],a[65]!==j?(te=(0,y.jsx)(l.A,{field:"session_id",type:"hidden",id:"session_id",initialValue:j,"aria-required":"true"}),a[65]=j,a[66]=te):te=a[66],a[67]!==ee||a[68]!==ae||a[69]!==te?(ie=(0,y.jsx)(n.D,{label:ee,labelText:ae,required:!0,children:te}),a[67]=ee,a[68]=ae,a[69]=te,a[70]=ie):ie=a[70],a[71]!==g?(se=g("Create Account"),a[71]=g,a[72]=se):se=a[72],a[73]!==se?(re=(0,y.jsx)(x.A,{type:"submit",variant:"primary",children:se}),a[73]=se,a[74]=re):re=a[74],a[75]!==w||a[76]!==R||a[77]!==K||a[78]!==$||a[79]!==ie||a[80]!==re?(le=(0,y.jsxs)(r.lV,{onSubmit:w,id:"social-email-registration-form",children:[R,K,$,ie,re]}),a[75]=w,a[76]=R,a[77]=K,a[78]=$,a[79]=ie,a[80]=re,a[81]=le):le=a[81],a[82]!==g?(ne=g("By creating an account, you are agreeing to our "),a[82]=g,a[83]=ne):ne=a[83],a[84]!==g?(ce=g("privacy policy"),a[84]=g,a[85]=ce):ce=a[85],a[86]!==g?(de=g("privacy policy"),a[86]=g,a[87]=de):de=a[87],a[88]!==ce||a[89]!==de?(oe=(0,y.jsx)("a",{title:ce,href:h.Oy,children:de}),a[88]=ce,a[89]=de,a[90]=oe):oe=a[90],a[91]!==g?(me=g("and"),a[91]=g,a[92]=me):me=a[92],a[93]!==g?(ue=g("terms of use"),a[93]=g,a[94]=ue):ue=a[94],a[95]!==g?(he=g("terms of use"),a[95]=g,a[96]=he):he=a[96],a[97]!==ue||a[98]!==he?(xe=(0,y.jsx)("a",{title:ue,href:h.Fe,children:he}),a[97]=ue,a[98]=he,a[99]=xe):xe=a[99],a[100]!==ne||a[101]!==oe||a[102]!==me||a[103]!==xe?(pe=(0,y.jsx)("div",{className:"terms-wrapper",children:(0,y.jsx)("div",{className:"terms",children:(0,y.jsxs)("span",{children:[ne,oe,me,xe,"."]})})}),a[100]=ne,a[101]=oe,a[102]=me,a[103]=xe,a[104]=pe):pe=a[104],a[105]!==g?(fe=g("Have an account?"),a[105]=g,a[106]=fe):fe=a[106],a[107]!==fe?(ye=(0,y.jsx)("span",{className:"text",children:fe}),a[107]=fe,a[108]=ye):ye=a[108],a[109]!==g?(je=g("Sign In"),a[109]=g,a[110]=je):je
13=a[110],a[111]!==v?(ve=()=>{v(" ")},a[111]=v,a[112]=ve):ve=a[112],a[113]!==g?(ge=g("Sign In"),a[113]=g,a[114]=ge):ge=a[114],a[115]!==je||a[116]!==ve||a[117]!==ge?(be=(0,y.jsx)(x.A,{variant:"link",title:je,to:"#",onClick:ve,children:ge}),a[115]=je,a[116]=ve,a[117]=ge,a[118]=be):be=a[118],a[119]!==ye||a[120]!==be?(Ae=(0,y.jsxs)("div",{className:"sign-in-link-wrapper",children:[ye,be]}),a[119]=ye,a[120]=be,a[121]=Ae):Ae=a[121],a[122]!==le||a[123]!==pe||a[124]!==D||a[125]!==Ae||a[126]!==O?(_e=(0,y.jsxs)("div",{"aria-labelledby":"account-register-form-heading",className:"account-register-form account-form-wrapper",children:[D,O,le,pe,Ae]}),a[122]=le,a[123]=pe,a[124]=D,a[125]=Ae,a[126]=O,a[127]=_e):_e=a[127],_e}},95513:(e,a,t)=>{t.r(a),t.d(a,{default:()=>i.A})
14var i=t(36834)}}])

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.