PageSourceSearch

https://www.tiendaiusa.com/38.a246777beaf1e49dc757.js

js tiendaiusa.com collected 2026-10-08 10:03:06 UTC 4,818 bytes, 25 lines download raw bytes

1/*! @version pwa-studio: 12.6.0, @magento/venia-ui: ~9.6.0, @magento/upward-security-headers: ~1.0.10, @magento/pwa-theme-venia: ~1.3.0, @magento/pwa-buildpack: ~11.4.0, @magento/peregrine: ~12.5.1, @magento/pagebuilder: ~7.4.1, @magento/eslint-config: ~1.5.0, @magento/babel-preset-peregrine: ~1.2.1, @apollo/client: ~3.5.0 */
2(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{"0nlE":function(e,t,n){"use strict"
3var o=n("JPst"),a=n.n(o)()(function(e){return e[1]})
4a.push([e.i,".myAccount-root-CnY {\n}\n",""]),a.locals={root:"myAccount-root-CnY gap-y-sm grid grid-flow-row"},t.a=a},IdFA:function(e,t,n){"use strict"
5var o=n("JPst"),a=n.n(o),c=n("ZEcL"),s=n("gJOL"),u=a()(function(e){return e[1]})
6u.i(c.a,"",!0),u.i(s.a,"",!0),u.push([e.i,".authModal-root-1-t {\n}\n\n.authModal-createAccountActions-3ky {\n}\n\n.authModal-createAccountSubmitButton-NJ6 {\n}\n",""]),u.locals={root:"authModal-root-1-t block",createAccountActions:"authModal-createAccountActions-3ky "+c.a.locals.actions+" grid-flow-row",createAccountSubmitButton:"authModal-createAccountSubmitButton-NJ6 "+s.a.locals.root_highPriority+" col-start-auto"},t.a=u},ui8x:function(e,t,n){"use strict"
7n.r(t),n.d(t,"default",function(){return B})
8var o,a=n("ERkP"),c=n.n(a),s=n("aWzz"),u=n("VtSi"),r=n.n(u),i=n("cbiG"),l=n.n(i),d=n("ddV6"),h=n.n(d),O=n("zCf4"),b=n("xiH9"),w=n("YyrX"),g=n("o353"),f=n("7wq/"),A=n.n(f),C=n("Z4DO"),S={signOutMutation:Object(C.a)(o||(o=A()(["\n    mutation SignOutFromModal {\n        revokeCustomerToken {\n            result\n        }\n    }\n"])))},m=n("BqF+"),p=["CREATE_ACCOUNT","FORGOT_PASSWORD","SIGN_IN"],j=n("pcRz"),M=n("rupb"),y=n("I3q4"),k=n("tVLJ"),E=n("LboF"),v=n.n(E),R=n("0nlE"),T={injectType:"singletonStyleTag",insert:"head",singleton:!0},_=(v()(R.a,T),R.a.locals||{}),N=function MyAccount(e){var t=e.classes,n=e.onSignOut,o=e.onClose,s=Object(w.a)(_,t),u=function useMyAccount(e){var t=e.onSignOut,n=Object(y.b)(),o=h()(n,2)[1].closeDrawer,c=Object(O.h)(),s=Object(a.useRef)(!1),u=Object(a.useCallback)(function(){o(),t()},[o,t])
9return Object(a.useEffect)(function(){s.current?o():s.current=!0},[o,c.key]),{handleSignOut:u}}({onSignOut:n,onClose:o}),r=u.handleSignOut,i=u.handleClose
10return c.a.createElement("div",{className:s.root},c.a.createElement(k.a,{onSignOut:r,onClose:i}))},F=N
11N.propTypes={classes:Object(s.shape)({actions:s.string,root:s.string,subtitle:s.string,title:s.string,user:s.string}),onSignOut:s.func.isRequired}
12var I=n("lx4Y"),P=n("IdFA"),U={injectType:"singletonStyleTag",insert:"head",singleton:!0},q=(v()(P.a,U),P.a.locals||{}),J=function AuthModal(e){var t=function useAuthModal(e){var t=e.closeDrawer,n=e.showCreateAccount,o=e.showForgotPassword,c=e.showMainMenu,s=e.showMyAccount,u=e.showSignIn,i=e.view,d=Object(w.a)(S,e.operations).signOutMutation,f=Object(a.useState)(!1),A=h()(f,2),C=A[0],j=A[1],M=Object(a.useState)(""),y=h()(M,2),k=y[0],E=y[1],v=Object(g.b)(),R=h()(v,2),T=R[0],_=T.currentUser,N=T.isSignedIn,F=R[1].signOut,I=Object(b.a)(d),P=h()(I,1)[0],U=Object(O.g)(),q=Object(m.b)(),J=h()(q,2)[1].dispatch
13Object(a.useEffect)(function(){_&&_.email&&p.includes(i)&&s()},[_,s,i]),Object(a.useEffect)(function(){N||"MY_ACCOUNT"!==i||C||c()},[N,C,c,i])
14var B=Object(a.useCallback)(function(){c(),t()},[t,c])
15return{handleCancel:Object(a.useCallback)(function(){u()},[u]),handleClose:B,handleCreateAccount:Object(a.useCallback)(function(){s()},[s]),handleSignOut:Object(a.useCallback)(l()(r.a.mark(function _callee(){return r.a.wrap(function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return j(!0),J({type:"USER_SIGN_OUT",payload:_}),e.next=4,F({revokeToken:P})
16case 4:U.go(0)
17case 5:case"end":return e.stop()}},_callee)})),[U,P,F,J,_]),setUsername:E,showCreateAccount:n,showForgotPassword:o,showMyAccount:s,username:k,dispatch:J,currentUser:_}}(e),n=t.handleCancel,o=t.handleCreateAccount,s=t.handleSignOut,u=t.setUsername,i=t.showCreateAccount,d=t.showForgotPassword,f=t.showMyAccount,A=t.username,C=Object(w.a)(q,e.classes),y=null
18switch(e.view){case"CREATE_ACCOUNT":y=c.a.createElement(j.a,{classes:{actions:C.createAccountActions,submitButton:C.createAccountSubmitButton},initialValues:{email:A},isCancelButtonHidden:!1,onSubmit:o,onCancel:n})
19break
20case"FORGOT_PASSWORD":y=c.a.createElement(M.a,{initialValues:{email:A},onCancel:n})
21break
22case"MY_ACCOUNT":y=c.a.createElement(F,{onSignOut:s})
23break
24case"SIGN_IN":default:y=c.a.createElement(I.a,{setDefaultUsername:u,showCreateAccount:i,showForgotPassword:d,showMyAccount:f})}return c.a.createElement("div",{className:C.root},y)},B=J
25J.propTypes={classes:Object(s.shape)({root:s.string}),closeDrawer:s.func.isRequired,showCreateAccount:s.func.isRequired,showForgotPassword:s.func.isRequired,showMyAccount:s.func.isRequired,showMainMenu:s.func.isRequired,showSignIn:s.func.isRequired,view:s.string}}}])

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.