PageSourceSearch

https://app.stoqui.com.br/assets/ProfilePage-ChTBqs47.js

js stoqui.com.br collected 2026-09-24 11:57:32 UTC 5,949 bytes, 1 lines download raw bytes

1import{j as o,a7 as c,a8 as M,a9 as K,aa as z,ab as k,ac as G,Q as q,T as a,I as Q}from"./mui-CRsYZxVY.js";import{b as d}from"./vendor-Dwao9eNC.js";import{d as $}from"./Edit-BiqqVQWD.js";import{u as J,b as X,c as Z,d as V,e as ee,f as C,T as oe,U as ne,s as _,M as l,H as te,g as se,h as ae,j as ie,k as re,S as le,A as ce,t as S,l as g}from"./index-TALscxEc.js";import{L as de}from"./LogoDialog-CwK8h_CU.js";import{W as pe,I as fe,F as he,L as xe}from"./icons-D8aatgQ4.js";import"./query-8ViTdhdk.js";import"./datePickers-BIJXYOKG.js";import"./lab-DSem1Osk.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};s.SENTRY_RELEASE={id:"2ad85febf9735404429b0670d4acf56a0af5a0a2"}}catch{}})();try{(function(){var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new s.Error().stack;n&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[n]="2e5cad2f-72a1-4279-bf3c-34bf73a52f79",s._sentryDebugIdIdentifier="sentry-dbid-2e5cad2f-72a1-4279-bf3c-34bf73a52f79")})()}catch{}const U={title:"Siga o Stoqui nas redes sociais",items:[{key:"INSTAGRAM_URL",icon:o.jsx(fe,{}),label:"Instagram"},{key:"FACEBOOK_URL",icon:o.jsx(he,{}),label:"Facebook"},{key:"LINKEDIN_URL",icon:o.jsx(xe,{}),label:"LinkedIn"},{key:"YOUTUBE_URL",icon:o.jsx(le,{style:{fontSize:24}}),label:"YouTube"}]},me="invert(64%) sepia(98%) saturate(451%) hue-rotate(87deg) brightness(92%) contrast(86%)",ke=()=>{var I,L,j,y;const{signOut:s,user:n}=J(),[w,E]=d.useState(0),[A,R]=d.useState(!1),p=X(),[u,P]=d.useState(null),{data:e,isLoading:T}=Z(),{data:t}=V(),{data:f}=ee(),b=!!(f!=null&&f.gives_access),h=e==null?void 0:e.SUPPORT_URL,x=e==null?void 0:e.WHATSAPP_GROUP_URL,m=e==null?void 0:e.WHATSAPP_CHANNEL_URL,O=h&&(b||(e==null?void 0:e.FREE_USER_SUPPORT_ENABLED)==="true"),v=!!x,N=!!m;d.useEffect(()=>{(async()=>{try{const r=await ce.getInfo();P(r.version)}catch(r){console.error("Error fetching app info:",r)}})()},[]);const W=()=>{E(i=>i+1),w>=10&&p("/debug")},Y=()=>{R(!0)},F=()=>{h&&(S(g.SUPPORT.SUPPORT_CLICK),window.open(h,"_blank"))},D=()=>{x&&(S(g.SUPPORT.WHATSAPP_CLICK),window.open(x,"_blank"))},H=()=>{m&&(S(g.SUPPORT.WHATSAPP_CLICK),window.open(m,"_blank"))};if(!n)return null;const B=n.phone?C(n.phone):n.new_phone?C(n.new_phone):n.email||n.new_email||((I=n.user_metadata)==null?void 0:I.email);return o.jsxs(c,{sx:{overflowY:"auto"},children:[o.jsx(M,{}),o.jsx(oe,{title:"Perfil",navigateBack:!0}),o.jsxs(c,{sx:{m:2},children:[o.jsx(K,{children:o.jsx(z,{children:o.jsxs(k,{direction:"row",spacing:2,justifyContent:"space-between",alignItems:"center",children:[o.jsx(ne,{onClick:Y,sx:{width:64,height:64,minWidth:64,minHeight:64,border:"2px solid",borderColor:"primary.main",cursor:"pointer"},alt:(t==null?void 0:t.nome_loja)||((L=n==null?void 0:n.user_metadata)==null?void 0:L.nome),src:(t==null?void 0:t.logo_url)||void 0}),o.jsx(G,{sx:{whiteSpace:"nowrap",overflow:"hidden",display:"block",textOverflow:"ellipsis"},primary:o.jsx("span",{onClick:W,style:{marginRight:"10px",whiteSpace:"nowrap",overflow:"hidden",display:"block",textOverflow:"ellipsis"},children:((j=n==null?void 0:n.user_metadata)==null?void 0:j.nome)||"Sem nome"}),secondary:o.jsx("span",{style:{marginRight:"10px",whiteSpace:"nowrap",overflow:"hidden",display:"block",textOverflow:"ellipsis"},children:B||""})})]})})}),o.jsxs(q,{component:"nav",sx:{mt:2},children:[o.jsx(a,{sx:_,children:"Opções de conta"}),o.jsx(l,{icon:o.jsx($,{}),label:"Editar perfil",onClick:()=>p("/profile/edit-profile")}),o.jsx(l,{icon:o.jsx(te,{}),label:"Endereço de cobrança",onClick:()=>p("/profile/billing-address")}),o.jsx(l,{icon:o.jsx(se,{}),label:"Sair",trailingIcon:"none",onClick:()=>s()})]}),o.jsx(a,{sx:{..._,mt:2},children:"Suporte"}),O&&o.jsx(l,{icon:o.jsx(ae,{}),label:"Suporte",trailingIcon:"external",onClick:F}),v&&o.jsx(l,{icon:o.jsx(pe,{}),iconColor:ie,label:"Entre no grupo do WhatsApp",trailingIcon:"external",onClick:D}),N&&o.jsx(l,{icon:o.jsx(c,{component:"img",src:re,sx:{filter:me}}),label:"Siga nosso canal",trailingIcon:"external",onClick:H}),!T&&((e==null?void 0:e.INSTAGRAM_URL)||(e==null?void 0:e.FACEBOOK_URL)||(e==null?void 0:e.LINKEDIN_URL)||(e==null?void 0:e.YOUTUBE_URL))&&o.jsxs(o.Fragment,{children:[o.jsx(a,{sx:{..._,mt:2},children:U.title}),o.jsx(k,{direction:"row",spacing:1,children:U.items.map(i=>{const r=e==null?void 0:e[i.key];return r?o.jsx(Q,{onClick:()=>window.open(r,"_blank"),sx:{width:48,height:48,color:"text.secondary"},"aria-label":i.label,children:i.icon},i.key):null})})]}),o.jsxs(c,{sx:{mt:5,mb:2,textAlign:"center"},children:[o.jsx(a,{variant:"caption",color:"text.secondary",sx:{fontSize:"0.7rem",opacity:.8,display:"block",mb:.5},children:"© Stoqui, um produto da Versi - Todos os direitos reservados."}),((e==null?void 0:e.TERMS_OF_USE_URL)||(e==null?void 0:e.PRIVACY_POLICY_URL))&&o.jsxs(a,{variant:"caption",color:"text.secondary",sx:{fontSize:"0.65rem",opacity:.7,display:"block",mb:.5},children:[(e==null?void 0:e.TERMS_OF_USE_URL)&&o.jsx(a,{component:"a",href:e.TERMS_OF_USE_URL,target:"_blank",rel:"noopener noreferrer",sx:{color:"text.secondary",textDecoration:"underline",cursor:"pointer",fontSize:"0.65rem"},children:"Termos de uso"}),(e==null?void 0:e.TERMS_OF_USE_URL)&&(e==null?void 0:e.PRIVACY_POLICY_URL)&&" • ",(e==null?void 0:e.PRIVACY_POLICY_URL)&&o.jsx(a,{component:"a",href:e.PRIVACY_POLICY_URL,target:"_blank",rel:"noopener noreferrer",sx:{color:"text.secondary",textDecoration:"underline",cursor:"pointer",fontSize:"0.65rem"},children:"Política de privacidade"})]}),o.jsx(a,{variant:"caption",color:"text.secondary",sx:{fontSize:"0.65rem",opacity:.7},children:u?`Versão ${u}`:"Versão web"})]}),o.jsx(de,{open:A,onClose:()=>R(!1),logoUrl:t==null?void 0:t.logo_url,storeName:(t==null?void 0:t.nome_loja)||((y=n==null?void 0:n.user_metadata)==null?void 0:y.nome)})]})]})};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.