PageSourceSearch

https://woop.com.br/_next/static/chunks/5792-f683a94224fc9ff4.js

js woop.com.br collected 2026-09-24 14:35:59 UTC 22,822 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5792],{8954:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(5669),l=n(9331);let i=async(e,t,n,i,a)=>{var o,s,u,d,c,p,f,h,m,v;let g={};n&&(g["cf-turnstile-token"]=n),i&&(g["cf-turnstile-bypass"]=i);try{let n=await (0,r.jD)().post("/v1/auth/sign-in",{email:e,password:t,...a?{accountShortId:a}:{}},{headers:g});if(!(null==(o=n.data)?void 0:o.auth))return{error:"Authenticate fail",user:null,credentials:null};let l={token:n.data.auth.token,refreshToken:n.data.auth.refreshToken,expiresIn:Date.now()+1e3*Number(n.data.auth.expiresIn||0)};return{user:null==(s=n.data)?void 0:s.user,credentials:l}}catch(e){if(console.error("error signing in",e),!(null==e?void 0:e.response)||(null==e?void 0:e.message)==="Network Error")return(0,l.N)(e,{message:"Error on sign in",context:{path:"/v1/auth/sign-in"}}),{error:"N\xe3o foi poss\xedvel fazer login. Tente novamente.",user:null,credentials:null};if((null==e||null==(u=e.response)?void 0:u.status)===403&&(null==e||null==(p=e.response)||null==(c=p.data)||null==(d=c.errors[0])?void 0:d.code)==="invalid-cf-turnstile")return{error:(null==e||null==(v=e.response)||null==(m=v.data)?void 0:m.message)||"N\xe3o foi poss\xedvel fazer login. Verifique seu e-mail e senha e tente novamente.",user:null,credentials:null};if((null==e||null==(f=e.response)?void 0:f.status)>=400&&(null==e||null==(h=e.response)?void 0:h.status)<500)return{error:"N\xe3o foi poss\xedvel fazer login. Verifique seu e-mail e senha e tente novamente.",user:null,credentials:null};return(0,l.N)(e,{message:"Error on sign in",context:{path:"/v1/auth/sign-in"}}),{error:e.message,user:null,credentials:null}}}},9423:(e,t,n)=>{"use strict";let r,l;n.d(t,{k:()=>i});let i=(e,t,n)=>{r=n,l!==t&&(e.initialize({client_id:t,callback:async e=>null==r?void 0:r(null==e?void 0:e.credential)}),l=t)}},17081:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(95155);let l=e=>{let{title:t,description:n,children:l}=e;return(0,r.jsxs)("div",{children:[(0,r.jsx)("title",{children:t}),(0,r.jsx)("meta",{name:"description",content:n}),l]})}},21447:(e,t,n)=>{"use strict";let r;n.d(t,{A:()=>f,X:()=>h});var l=n(95155),i=n(12115),a=n(80317),o=n(37440);let s="cf-turnstile-script",u={normal:65,flexible:65,compact:140},d=new Set,c=e=>{r=e,d.forEach(t=>t(e))},p=()=>{var e;if(window.turnstile)return c("loaded");if("loading"===r)return;null==(e=document.getElementById(s))||e.remove(),c("loading"),window.onloadTurnstileCallback=()=>c("loaded");let t=document.createElement("script");t.id=s,t.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=onloadTurnstileCallback",t.async=!0,t.defer=!0,t.onerror=()=>c("failed"),document.head.appendChild(t)},f=()=>{let e=(0,i.useRef)(null),[t,n]=(0,i.useState)(""),r=(0,i.useCallback)(()=>n(""),[]);return{token:t,reset:(0,i.useCallback)(()=>{var t;n(""),null==(t=e.current)||t.reset()},[]),widgetProps:{ref:e,onVerify:n,onExpire:r,onError:r}}},h=e=>{let{ref:t,siteKey:n,onVerify:r,onError:s,onExpire:c,onLoad:f,id:h="turnstile-widget",className:m,theme:v="auto",tabIndex:g,responseField:x=!0,responseFieldName:y="cf-turnstile-response",size:j="flexible",retry:w="auto",retryInterval:b=8e3,refreshExpired:k="auto",appearance:A="always",execution:I="render",cData:S,language:E="pt-br",sandbox:C=!1}=e,T=(0,i.useRef)(void 0),W=(0,i.useRef)(null),N=(0,i.useRef)({onVerify:r,onError:s,onExpire:c,onLoad:f}),[R,_]=(0,i.useState)(!1);(0,i.useEffect)(()=>{N.current={onVerify:r,onError:s,onExpire:c,onLoad:f}},[r,s,c,f]);let z=(0,i.useCallback)(()=>{if(T.current){var e;null==(e=window.turnstile)||e.remove(T.current),T.current=void 0}},[]),D=()=>{W.current&&window.turnstile&&(z(),T.current=window.turnstile.render(W.current,{sitekey:C?"1x00000000000000000000AA":n,callback:e=>{var t,n;_(!1),null==(t=(n=N.current).onVerify)||t.call(n,e)},"error-callback":e=>{var t,n;return _(!0),null==(t=(n=N.current).onError)||t.call(n,e),!0},"expired-callback":()=>{var e,t;return null==(e=(t=N.current).onExpire)?void 0:e.call(t)},theme:v,tabindex:g,"response-field":x,"response-field-name":y,size:j,retry:w,"retry-interval":b,"refresh-expired":k,appearance:A,execution:I,cdata:S,language:E}))};(0,i.useEffect)(()=>{let e=e=>{var t,n;if("failed"===e)return _(!0);"loaded"===e&&(D(),null==(t=(n=N.current).onLoad)||t.call(n))};return d.add(e),window.turnstile?e("loaded"):p(),()=>{d.delete(e),z()}},[n,C]);let G=()=>(_(!1),window.turnstile)?T.current?window.turnstile.reset(T.current):void D():p();return(0,i.useImperativeHandle)(t,()=>({reset:G})),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:W,id:h,className:m,style:{minHeight:"always"===A?u[j]:void 0}}),R&&(0,l.jsxs)(a.default,{variant:"caption",color:"error",display:"block",textAlign:"center",children:["Verifica\xe7\xe3o de seguran\xe7a indispon\xedvel."," ",(0,l.jsx)(o.A,{component:"button",type:"button",variant:"caption",onClick:G,children:"Tentar novamente"})]})]})}}
1,22648:(e,t,n)=>{"use strict";n.d(t,{default:()=>R});var r=n(95155),l=n(52619),i=n.n(l),a=n(12115),o=n(20063),s=n(80357),u=n(97179),d=n(70539),c=n(96869),p=n(80317),f=n(66245),h=n(17081),m=n(87360),v=n(24008),g=n(8954),x=n(58390),y=n(96241),j=n(38201),w=n(5669),b=n(9331);let k=async e=>{try{return await (0,w.Ay)().post("".concat(j.FH.url,"/v1/site/accounts/").concat(e,"/customers/join")),{success:!0}}catch(e){return(0,b.N)(e,{message:"Error on join account as customer",context:{path:"/v1/site/accounts/{account}/customers/join"}}),{success:!1}}};var A=n(69924),I=n(11097),S=n(9431),E=n(75688),C=n(28079),T=n(92048),W=n(66075),N=n(58569);function R(e){let{accountShortId:t}=e,n=(0,A.W3)(),l=(0,A.A$)(),j=(0,S.Q)(),w=(0,S.d)(),[b,R]=(0,a.useState)(""),{sendNotification:_}=(0,C.A)(),z=(0,o.useRouter)(),D=(0,o.useSearchParams)(),G=D.get("next")||"",U=D.get("accountShortId")||"",H=(0,a.useMemo)(()=>(t||U||"").trim(),[t,U]),L=(0,a.useMemo)(()=>H?{accountShortId:H}:void 0,[H]),$=(0,a.useCallback)(()=>H?(0,N.S)(H,G||null):G||I.q.DEFAULT_LOGGED,[H,G]);(0,a.useEffect)(()=>{if(n.isAuthenticated){if(H)return void k(H).finally(()=>z.replace($()));z.replace($())}},[n.isAuthenticated,H,$,z]);let q=e=>{w({type:"SET_LOADING",payload:e})},P=async e=>{q(!0);let{error:t,user:n,credentials:r}=await (0,g.J)(e.email,e.password,e.cfToken,void 0,H||void 0);if(t||!n||!r){R(t||"Os dados informados n\xe3o conferem. Revise e tente novamente."),_(t||"Os dados informados n\xe3o conferem. Revise e tente novamente."),q(!1);return}q(!1),l({type:"SET_AUTH_STATE",payload:{isReady:!0,isAuthenticated:!0,user:n,credentials:r}}),z.replace($())},B=async e=>{let{idToken:t,cfToken:n}=e;q(!0);let{error:r,user:i,credentials:a}=await (0,y.G)(t,n,void 0,L);if(r||!i||!a){R(r||"Os dados informados n\xe3o conferem. Revise e tente novamente."),_(r||"Os dados informados n\xe3o conferem. Revise e tente novamente."),q(!1);return}q(!1),l({type:"SET_AUTH_STATE",payload:{isReady:!0,isAuthenticated:!0,user:i,credentials:a}}),z.replace($())},M=async e=>{let{idToken:t,user:n,cfToken:r}=e;q(!0);let{error:i,user:a,credentials:o}=await (0,x.Z)(t,n,r,void 0,L);if(i||!a||!o){R(i||"Os dados informados n\xe3o conferem. Revise e tente novamente."),_(i||"Os dados informados n\xe3o conferem. Revise e tente novamente."),q(!1);return}q(!1),l({type:"SET_AUTH_STATE",payload:{isReady:!0,isAuthenticated:!0,user:a,credentials:o}}),z.replace($())},O=!!H||G.startsWith("/a/"),F=O?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(T.default,{}),V=(0,W.K)(G,H);return(0,r.jsxs)(h.A,{title:"Entrar na sua conta Woop",description:"Fa\xe7a login na sua conta Woop!",children:[F,(0,r.jsx)(E.default,{}),O?(0,r.jsx)(f.default,{maxWidth:"lg",disableGutters:!0,sx:{mt:1,pb:3,px:{xs:.75,md:1}},children:(0,r.jsx)(u.default,{container:!0,spacing:0,justifyContent:"center",sx:{height:"80vh",mb:3},children:(0,r.jsx)(u.default,{size:{xs:12},display:"flex",justifyContent:"center",alignItems:"center",children:(0,r.jsxs)(d.default,{elevation:0,sx:{p:1,zIndex:1,width:"100%"},children:[(0,r.jsx)(p.default,{variant:"h1",color:"primary",textAlign:"center",children:"Entrar"}),(0,r.jsx)(v.A,{onSubmit:P,onGoogleSignIn:B,onAppleSignIn:M,loading:j.isLoading,error:b,subtitle:(0,r.jsxs)(c.default,{direction:"row",spacing:1,justifyContent:"center",pt:2,pb:2,children:[(0,r.jsx)(p.default,{color:"textSecondary",fontWeight:"400",lineHeight:1,children:"Novo por aqui?"}),(0,r.jsx)(p.default,{component:i(),href:V,fontWeight:"400",lineHeight:1,sx:{textDecoration:"none",color:"primary.main"},children:"Criar uma conta"})]})})]})})})}):(0,r.jsx)(s.default,{sx:{mx:1},children:(0,r.jsx)(u.default,{container:!0,spacing:0,justifyContent:"center",sx:{height:"80vh"},children:(0,r.jsx)(u.default,{size:{xs:12,sm:12,lg:4,xl:3},display:"flex",justifyContent:"center",alignItems:"center",children:(0,r.jsxs)(d.default,{elevation:9,sx:{p:2,zIndex:1,width:"100%",maxWidth:"400px"},children:[(0,r.jsx)(s.default,{display:"flex",alignItems:"center",justifyContent:"center",children:(0,r.jsx)(m.default,{variant:"light",size:"large"})}
1),(0,r.jsx)(v.A,{onSubmit:P,onGoogleSignIn:B,onAppleSignIn:M,loading:j.isLoading,error:b,subtitle:(0,r.jsxs)(c.default,{direction:"row",spacing:1,justifyContent:"center",pt:4,pb:2,children:[(0,r.jsx)(p.default,{color:"textSecondary",fontWeight:"400",lineHeight:1,children:"Novo por aqui?"}),(0,r.jsx)(p.default,{component:i(),href:V,fontWeight:"400",lineHeight:1,sx:{textDecoration:"none",color:"primary.main"},children:"Criar uma conta"})]})})]})})})})]})}},24008:(e,t,n)=>{"use strict";n.d(t,{A:()=>W});var r=n(95155),l=n(12115),i=n(66245),a=n(80317),o=n(80357),s=n(27855),u=n(84389),d=n(96869),c=n(37440),p=n(4615),f=n(68321),h=n(22544),m=n(88820),v=n(11450),g=n(66942),x=n(41508);let y={email:"",password:""},j=x.object({email:x.email("E-mail inv\xe1lido"),password:x.string().min(6,"Senha inv\xe1lida")}).required();var w=n(88005),b=n(72367),k=n(11097),A=n(32612),I=n(28079),S=n(21447),E=n(46274),C=n(38201),T=n(9423);let W=e=>{let{embeded:t,title:n,subtitle:x,subtext:W,loading:N,error:R,colors:_,onSubmit:z,onGoogleSignIn:D,onAppleSignIn:G}=e,{token:U,reset:H,widgetProps:L}=(0,S.A)(),[$,q]=(0,l.useState)(!1),[P,B]=(0,l.useState)(!1),[M,O]=(0,l.useState)(!1),[F,V]=(0,l.useState)(!1),{sendNotification:X}=(0,I.A)(),Q=(0,l.useRef)(null),K=(0,l.useRef)(null),J=(0,l.useRef)(!1),Z=(null==_?void 0:_.primary)||A.A.palette.primary.main,Y=C.$W.site.cf.turnstile.enabled,{handleSubmit:ee,control:et}=(0,h.mN)({defaultValues:y,resolver:(0,g.u)(j)}),en=async e=>{if(!U&&Y)return void X("N\xe3o foi poss\xedvel validar o usu\xe1rio");try{q(!0),await z({...e,cfToken:U})}finally{q(!1),H()}},er=()=>!N&&(!Y||!!U),el=()=>!N&&!$&&!!G&&!F&&!!C.$W.auth.apple.clientId&&!!M,ei=!!(D&&C.$W.auth.google.clientId||G&&C.$W.auth.apple.clientId),ea=async()=>{var e,t,n;if(!el())return;let r=null==(e=window)?void 0:e.AppleID;if(!(null==r||null==(t=r.auth)?void 0:t.signIn))return void X("N\xe3o foi poss\xedvel autenticar com a Apple");try{q(!0);let e=await r.auth.signIn(),t=null==e||null==(n=e.authorization)?void 0:n.id_token;if(!t||"string"!=typeof t)return void X("N\xe3o foi poss\xedvel autenticar com a Apple");let l=null==e?void 0:e.user,i=l?{...l.name?{name:{firstName:l.name.firstName,lastName:l.name.lastName}}:{},...l.email?{email:l.email}:{}}:void 0;await G({idToken:t,user:i,cfToken:U})}catch(e){if((null==e?void 0:e.error)==="popup_closed_by_user")return;X((null==e?void 0:e.message)||"N\xe3o foi poss\xedvel autenticar com a Apple")}finally{q(!1)}};return(0,l.useEffect)(()=>{var e,t;if(!M||!C.$W.auth.apple.clientId)return;let n=null==(e=window)?void 0:e.AppleID;(null==n||null==(t=n.auth)?void 0:t.init)&&n.auth.init({clientId:C.$W.auth.apple.clientId,scope:"name email",redirectURI:C.$W.auth.apple.redirectUri,usePopup:!0})},[M]),(0,l.useEffect)(()=>{var e,t,n;try{V(window.self!==window.top)}catch(e){V(!0)}let r=null==(e=window)?void 0:e.google;(null==r||null==(t=r.accounts)?void 0:t.id)&&B(!0);let l=null==(n=window)?void 0:n.AppleID;return(null==l?void 0:l.auth)&&O(!0),()=>{J.current=!1,K.current&&(K.current.innerHTML="")}},[]),(0,l.useEffect)(()=>{var e,t,n,r,l;if(!D||F||!P)return;if(J.current)if(!K.current||0!==K.current.childElementCount)return;else J.current=!1;if(!C.$W.auth.google.clientId||N||$||!K.current||!Q.current)return;let i=Math.max(240,Math.floor(Q.current.clientWidth||360)),a=null==(e=window)?void 0:e.google;(null==a||null==(n=a.accounts)||null==(t=n.id)?void 0:t.initialize)&&(null==a||null==(l=a.accounts)||null==(r=l.id)?void 0:r.renderButton)&&((0,T.k)(a.accounts.id,C.$W.auth.google.clientId,async e=>{if(!e||"string"!=typeof e)return void X("N\xe3o foi poss\xedvel autenticar com o Google");try{q(!0),await D({idToken:e,cfToken:U})}catch(e){X((null==e?void 0:e.message)||"N\xe3o foi poss\xedvel autenticar com o Google")}finally{q(!1)}}),a.accounts.id.renderButton(K.current,{theme:"outline",size:"large",width:i,text:"signin_with",shape:"rectangular",logo_alignment:"center"}),J.current=!0)},[D,P,N,$,t,F]),(0,r.jsxs)(i.default,{maxWidth:"xs",sx:{mt:2},children:[n?(0,r.jsx)(a.default,{fontWeight:600,variant:"h5",textAlign:"center",mb:2,mt:1,children:n}):null,W,ei&&!F&&(0,r.jsxs)(o.default,{mt:4,p:"0px",maxWidth:400,mx:"auto",children:[D&&C.$W.auth.google.clientId&&(0,r.jsxs)(o.default,{mb:1,children:[(0,r.jsx)(f.default,{src:"https://accounts.google.com/gsi/client",strategy:"afterInteractive",onLoad:()=>B(!0)}),(0,r.jsx)(o.default,{ref:Q,sx:{width:"100%",minHeight:44},children:(0,r.jsx)("div",{ref:K,style:{width:"100%"}})})]}),G&&C.$W.auth.apple.clientId&&(0,r.jsxs)(o.default,{mb:2,children:[(0,r.jsx)(f.default,{src:"https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",strategy:"afterInteractive",onLoad:()=>O(!0)}),(0,r.jsx)(s.default,{variant:"outlined",size:"large",fullWidth:!0,disabled:!el(),onClick:ea,startIcon:(0,r.jsx)(b.A,{}),sx:{backgroundColor:"#fff",color:"rgba(0, 0, 0, 0.87)",fontWeight:400,borderColor:"rgba(0, 0, 0, 0.35)","&:hover":{backgroundColor:"#f5f5f5",borderColor:"rgba(0, 0, 0, 0.5)"}
1,"&.Mui-disabled":{backgroundColor:"action.disabledBackground",color:"action.disabled"},textTransform:"none"},children:"Continuar com a Apple"})]}),(0,r.jsx)(u.default,{sx:{my:3},children:(0,r.jsx)(a.default,{variant:"caption",color:"text.secondary",fontWeight:600,sx:{fontSize:10,letterSpacing:.5},children:"OU USE SEU E-MAIL"})})]}),$?(0,r.jsx)(E.default,{}):(0,r.jsxs)(o.default,{component:"form",onSubmit:ee(en),noValidate:!0,children:[(0,r.jsxs)(d.default,{spacing:1,sx:{padding:"0px"},children:[(0,r.jsx)(o.default,{sx:{paddingTop:"5px"},children:(0,r.jsx)(m.Q,{name:"email",fixedLabel:!0,control:et,label:"E-mail",placeholder:"E-mail",rules:{required:!0},autoComplete:"email"})}),(0,r.jsx)(o.default,{sx:{paddingTop:"5px"},children:(0,r.jsx)(v.W,{name:"password",control:et,fixedLabel:!0,label:"Senha",placeholder:"Senha",rules:{required:!0},autoComplete:"current-password"})}),(0,r.jsx)(d.default,{justifyContent:"flex-end",direction:"row",alignItems:"center",my:2,width:"100%",children:(0,r.jsx)(a.default,{component:c.A,href:k.q.REQUEST_RESET_PASSWORD,target:t?"_blank":"_self",fontWeight:"400",sx:{textDecoration:"none",color:Z,fontSize:12},children:"Esqueceu sua senha?"})})]}),Y&&(0,r.jsx)(o.default,{mt:2,justifyContent:"center",alignItems:"center",alignContent:"center",textAlign:"center",children:(0,r.jsx)(S.X,{siteKey:C.$W.site.cf.turnstile.siteKey,refreshExpired:"auto",retry:"auto",theme:"light",sandbox:"development"===C.$W.site.env,...L})}),R&&(0,r.jsx)(p.A,{icon:(0,r.jsx)(w.A,{}),severity:"error",color:"error",children:R}),!er()&&(0,r.jsx)(s.default,{loading:!0,sx:{color:Z,mt:3},variant:"contained",size:"large",fullWidth:!0,children:"Entrar"}),er()&&(0,r.jsx)(s.default,{sx:{backgroundColor:Z,mt:3},variant:"contained",size:"large",fullWidth:!0,type:"submit",children:"Entrar"})]}),x]})}},46274:(e,t,n)=>{"use strict";n.d(t,{default:()=>h});var r=n(3648),l=n(95155),i=n(76031),a=n(80357),o=n(98638),s=n(80317),u=n(87360),d=n(10225),c=n(12115);function p(){let e=(0,r._)(["\n  0% {\n    opacity: 0;\n    transform: translateX(60px);\n  }\n  60% {\n    opacity: 1;\n    transform: translateX(-8px);\n  }\n  80% {\n    transform: translateX(4px);\n  }\n  100% {\n    opacity: 1;\n    transform: translateX(0);\n  }\n"]);return p=function(){return e},e}let f=(0,d.i7)(p());function h(e){let{message:t,animationDuration:n=2e3,onFinish:r}=e,[d,p]=(0,c.useState)(0),h=Array.isArray(t)?t:[t];return(0,c.useEffect)(()=>{if(1!==h.length)if(d<h.length){let e=setTimeout(()=>{p(d+1)},n);return()=>clearTimeout(e)}else null==r||r()},[d,h.length,n,r]),(0,l.jsx)(i.A,{in:!0,children:(0,l.jsxs)(a.default,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",minHeight:"150px",gap:2,bgcolor:"gray.400",borderRadius:2},children:[(0,l.jsxs)(a.default,{sx:{position:"relative",display:"inline-flex"},children:[(0,l.jsx)(o.A,{size:100,thickness:1.5,color:"primary",sx:{"& .MuiCircularProgress-circle":{animationDuration:"3s"}}}),(0,l.jsx)(a.default,{sx:{position:"absolute",top:0,left:0,width:100,height:100,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,l.jsx)(u.default,{variant:"light",size:"large",link:!1,iconOnly:!0})})]}),h[d]&&(0,l.jsx)(s.default,{variant:"h6",color:"primary",sx:{mt:0,pt:0,animation:"".concat(f," 3s cubic-bezier(.6,-0.01,0,1.01)")},children:h[d]})]})})}},58390:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(5669),l=n(9331);let i=async(e,t,n,i,a)=>{var o,s,u,d,c,p,f,h,m,v;let g={};g["x-woop-client"]="site",n&&(g["cf-turnstile-token"]=n),i&&(g["cf-turnstile-bypass"]=i);let x={idToken:e};(null==a?void 0:a.accountShortId)&&(x.accountShortId=a.accountShortId),(null==a?void 0:a.inviteToken)&&(x.inviteToken=a.inviteToken),t&&(x.user=t);try{let e=await (0,r.jD)().post("/v1/auth/oauth/apple",x,{headers:g});if(!(null==(o=e.data)?void 0:o.auth))return{error:"Authenticate fail",user:null,credentials:null};let t={token:e.data.auth.token,refreshToken:e.data.auth.refreshToken,expiresIn:Date.now()+1e3*Number(e.data.auth.expiresIn||0)};return{user:null==(s=e.data)?void 0:s.user,credentials:t}}catch(e){if(console.error("error signing in with apple",e),!(null==e?void 0:e.response)||(null==e?void 0:e.message)==="Network Error")return(0,l.N
1)(e,{message:"Error on sign in with Apple",context:{path:"/v1/auth/oauth/apple"}}),{error:"N\xe3o foi poss\xedvel fazer login com a Apple. Tente novamente.",user:null,credentials:null};if((null==e||null==(u=e.response)?void 0:u.status)===403&&(null==e||null==(p=e.response)||null==(c=p.data)||null==(d=c.errors[0])?void 0:d.code)==="invalid-cf-turnstile")return{error:(null==e||null==(v=e.response)||null==(m=v.data)?void 0:m.message)||"Credenciais inv\xe1lidas",user:null,credentials:null};if((null==e||null==(f=e.response)?void 0:f.status)>=400&&(null==e||null==(h=e.response)?void 0:h.status)<500)return{error:"Credenciais inv\xe1lidas",user:null,credentials:null};return(0,l.N)(e,{message:"Error on sign in with Apple",context:{path:"/v1/auth/oauth/apple"}}),{error:e.message,user:null,credentials:null}}}},66075:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var r=n(11097),l=n(58569);let i=(e,t)=>{let n=(0,l.R)(e)||(null==t?void 0:t.trim())||"";return n?e?"/a/".concat(n,"/registro?next=").concat(encodeURIComponent(e)):"/a/".concat(n,"/registro"):e?"".concat(r.q.SIGNUP,"?next=").concat(encodeURIComponent(e)):r.q.SIGNUP}},75688:(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var r=n(95155),l=n(89041),i=n(9431);let a=()=>{let e=(0,i.Q)();if(null==e?void 0:e.isLoading)return(0,r.jsx)(l.A,{color:"primary"})}},88820:(e,t,n)=>{"use strict";n.d(t,{Q:()=>s});var r=n(95155),l=n(22544),i=n(50355),a=n(34782),o=n(32612);let s=e=>{let{name:t,control:n,label:s,rules:u,autoComplete:d,disabled:c,multiline:p,rows:f,minRows:h,maxRows:m,fixedLabel:v,placeholder:g,tabIndex:x,sx:y,startIcon:j,helperText:w}=e,b=(null==u?void 0:u.required)?"string"==typeof s?"* ".concat(s):(0,r.jsxs)(r.Fragment,{children:["* ",s]}):s;return(0,r.jsx)(l.xI,{name:t,rules:u,control:n,render:e=>{let{field:{onChange:t,onBlur:n,value:l,name:s},fieldState:{error:u}}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i.A,{multiline:p||!1,rows:p?f||void 0:1,minRows:p?h||3:1,maxRows:p?m||10:1,helperText:u||w?(null==u?void 0:u.message)||w:null,size:"small",error:!!u,onChange:t,onBlur:n,value:null!=l?l:"",disabled:c,fullWidth:!0,label:b,variant:"outlined",autoComplete:d,name:s,placeholder:g,sx:{...y,backgroundColor:c?"action.disabledBackground":o.A.palette.background.paper,"& .MuiInputBase-input:-webkit-autofill, & .MuiInputBase-input:-webkit-autofill:hover, & .MuiInputBase-input:-webkit-autofill:focus":{WebkitBoxShadow:"0 0 0 1000px ".concat(o.A.palette.background.paper," inset"),WebkitTextFillColor:o.A.palette.text.primary,transition:"background-color 9999s ease-out 0s"}},slotProps:{inputLabel:{shrink:v||void 0},input:{startAdornment:j?(0,r.jsx)(a.A,{position:"start",children:j}):null,inputProps:{tabIndex:x,style:{cursor:c?"not-allowed":"inherit",paddingTop:"8px",paddingBottom:"8px"}}},formHelperText:{style:{color:u?void 0:"#aaa",marginTop:"-1px"}}}})})}})}},95792:(e,t,n)=>{Promise.resolve().then(n.bind(n,22648)),Promise.resolve().then(n.bind(n,75688))},96241:(e,t,n)=>{"use strict";n.d(t,{G:()=>i});var r=n(5669),l=n(9331);let i=async(e,t,n,i)=>{var a,o,s,u,d,c,p,f,h,m;let v={};v["x-woop-client"]="site",t&&(v["cf-turnstile-token"]=t),n&&(v["cf-turnstile-bypass"]=n);let g={idToken:e};(null==i?void 0:i.accountShortId)&&(g.accountShortId=i.accountShortId),(null==i?void 0:i.inviteToken)&&(g.inviteToken=i.inviteToken);try{let e=await (0,r.jD)().post("/v1/auth/oauth/google",g,{headers:v});if(!(null==(a=e.data)?void 0:a.auth))return{error:"Authenticate fail",user:null,credentials:null};let t={token:e.data.auth.token,refreshToken:e.data.auth.refreshToken,expiresIn:Date.now()+1e3*Number(e.data.auth.expiresIn||0)};return{user:null==(o=e.data)?void 0:o.user,credentials:t}}catch(e){if(console.error("error signing in with google",e),!(null==e?void 0:e.response)||(null==e?void 0:e.message)==="Network Error")return(0,l.N)(e,{message:"Error on sign in with Google",context:{path:"/v1/auth/oauth/google"}}),{error:"N\xe3o foi poss\xedvel fazer login com o Google. Tente novamente.",user:null,credentials:null};if((null==e||null==(s=e.response)?void 0:s.status)===403&&(null==e||null==(c=e.response)||null==(d=c.data)||null==(u=d.errors[0])?void 0:u.code)==="invalid-cf-turnstile")return{error:(null==e||null==(m
1=e.response)||null==(h=m.data)?void 0:h.message)||"Credenciais inv\xe1lidas",user:null,credentials:null};if((null==e||null==(p=e.response)?void 0:p.status)>=400&&(null==e||null==(f=e.response)?void 0:f.status)<500)return{error:"Credenciais inv\xe1lidas",user:null,credentials:null};return(0,l.N)(e,{message:"Error on sign in with Google",context:{path:"/v1/auth/oauth/google"}}),{error:e.message,user:null,credentials:null}}}}}]);

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.