1import{j as e,ab as h,ao as j,a7 as s,B as A,o as m,T as l,S as O}from"./mui-CRsYZxVY.js";import{b as B,r as T,N as L,e as H,x as P,bd as D,dg as v,dh as E,s as f,br as n,di as R,dj as N,_ as W,dk as U,bw as F,dl as G,dm as q,dn as V,dp as Y,dq as K,cY as M,O as Z,be as J,T as Q}from"./index-TALscxEc.js";import{r as X}from"./vendor-Dwao9eNC.js";import{F as $}from"./index-DdiYuG-v.js";import{u as ee}from"./useWebCatalogSettingsSave-Byg91ItV.js";import{L as oe}from"./LogoDialog-CwK8h_CU.js";import{H as a}from"./HubRow-DdcKuFLd.js";import{I as ie}from"./icons-D8aatgQ4.js";import"./query-8ViTdhdk.js";import"./datePickers-BIJXYOKG.js";import"./lab-DSem1Osk.js";import"./StatusDotLine-CR-EBrxL.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"2ad85febf9735404429b0670d4acf56a0af5a0a2"}}catch{}})();try{(function(){var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new o.Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="4fb3c867-460d-438c-a6c0-3b30361aa992",o._sentryDebugIdIdentifier="sentry-dbid-4fb3c867-460d-438c-a6c0-3b30361aa992")})()}catch{}const se=()=>{const o=B(),{triggerPaywall:r}=T(),{catalog:i,isLoading:_}=ee(),{storeUrl:p,isLoading:I}=L(),{data:w}=H(),k=P(w),y=D(w),[z,C]=X.useState(!1);if(_)return e.jsxs(h,{spacing:1.5,children:[e.jsx(j,{variant:"rounded",height:108,sx:{borderRadius:"12px"}}),Array.from({length:12}).map((t,g)=>e.jsx(j,{variant:"rounded",height:64,sx:{borderRadius:"12px"}},g))]});const c=(i==null?void 0:i.habilitado)??!1,x=e.jsx(Z,{variant:k?"cutout":"contained",fontSize:11}),b=e.jsx(J,{variant:y?"cutout":"contained",fontSize:11}),d=(t,g,u)=>{g==="pro"&&!k?u?r(u,{pageAction:()=>o("/profile/paywall?initialPlan=pro"),source:"store_settings_hub"}):o("/profile/paywall?initialPlan=pro"):g==="black"&&!y?u?r(u,{pageAction:()=>o("/profile/paywall?initialPlan=black"),source:"store_settings_hub"}):o("/profile/paywall?initialPlan=black"):o(t)},S=((i==null?void 0:i.nome_loja)||"").trim().split(/\s+/).slice(0,2).map(t=>t[0]).join("").toUpperCase();return e.jsxs(h,{spacing:3,children:[e.jsxs(s,{sx:{bgcolor:"white",borderRadius:"12px",p:2},children:[e.jsxs(h,{direction:"row",spacing:1.5,alignItems:"center",children:[e.jsx(A,{onClick:()=>C(!0),focusRipple:!0,"aria-label":"Abrir logo",sx:{width:60,height:60,borderRadius:"12px",bgcolor:t=>m(t.palette.text.primary,.06),display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,overflow:"hidden",color:"text.secondary"},children:i!=null&&i.logo_url?e.jsx(s,{component:"img",src:i.logo_url,alt:i.nome_loja||"Logo da loja",sx:{width:"100%",height:"100%",objectFit:"contain",p:.5}}):S?e.jsx(l,{sx:{fontWeight:700,fontSize:"1.25rem"},children:S}):e.jsx(v,{size:26})}),e.jsxs(s,{sx:{flex:1,minWidth:0},children:[e.jsxs(h,{direction:"row",alignItems:"center",spacing:1,children:[e.jsx(l,{variant:"h6",sx:{fontWeight:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1},children:(i==null?void 0:i.nome_loja)||"Sua loja"}),e.jsx(O,{size:"small",label:c?"Ativa":"Desativada",onClick:c?void 0:()=>o("/profile/web-catalog/identity"),sx:{flexShrink:0,fontWeight:600,bgcolor:c?m("#2e7d32",.12):m("#ed6c02",.14),color:c?"#2e7d32":"#b25b00",cursor:c?"default":"pointer"}})]}),I?e.jsx(j,{variant:"text",width:180,sx:{mt:.25}}):p?e.jsxs(s,{component:"span",role:"link",tabIndex:0,onClick:()=>window.open(p,"_blank","noopener"),onKeyDown:t=>{(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),window.open(p,"_blank","noopener"))},sx:{mt:.25,display:"inline-flex",alignItems:"center",gap:.5,cursor:"pointer",borderRadius:1,maxWidth:"100%","&:hover .store-url-text":{textDecoration:"underline"}},children:[e.jsx(l,{className:"store-url-text",variant:"caption",color:"text.secondary",sx:{fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},children:p.replace(/^https?:\/\//,"")}),e.jsx(E,{size:12,style:{flexShrink:0,opacity:.6}})]}):null]})]}),!c&&e.jsx(s,{component:"button",type:"button",onClick:()=>o("/profile/web-catalog/identity"),sx:{display:"block",mt:1.25,p:0,border:"none",background:"none",textAlign:"left",cursor:"pointer",color:"text.secondary",font:"inherit",width:"100%","&:hover .
1store-warning-text":{textDecoration:"underline"}},children:e.jsx(l,{className:"store-warning-text",variant:"caption",color:"text.secondary",sx:{display:"block"},children:"Sua loja não está acessÃvel ao público. Ative em Identidade da loja."})})]}),e.jsxs(s,{children:[e.jsx(l,{sx:f,children:"Loja"}),e.jsxs(s,{children:[e.jsx(a,{icon:e.jsx(v,{size:n}),label:"Identidade da loja",description:"Nome, link, descrição e status",onClick:()=>o("/profile/web-catalog/identity")}),e.jsx(a,{icon:e.jsx(R,{size:n}),label:"Personalizar loja",description:"Página inicial, logo, cor, fonte, banners, rodapé",badge:N("home_layout")?e.jsx(W,{label:"Novo",tint:"brand"}):void 0,onClick:()=>o("/profile/store-appearance")}),e.jsx(a,{icon:e.jsx(U,{size:n}),label:"DomÃnio próprio",badge:b,onClick:()=>d("/profile/domain","black","custom_domain")}),e.jsx(a,{icon:e.jsx(F,{size:n}),label:"Páginas de conteúdo",badge:x,onClick:()=>d("/custom-pages","pro","content_pages")})]})]}),e.jsxs(s,{children:[e.jsx(l,{sx:f,children:"Vendas"}),e.jsxs(s,{children:[e.jsx(a,{icon:e.jsx(G,{size:n}),label:"Checkout",description:"Dados do cliente e pedido mÃnimo",badge:x,onClick:()=>o("/profile/web-catalog/checkout")}),e.jsx(a,{icon:e.jsx(q,{size:n}),label:"Produtos esgotados",description:"Como produtos sem estoque aparecem",badge:x,onClick:()=>o("/profile/web-catalog/catalog")})]})]}),e.jsxs(s,{children:[e.jsx(l,{sx:f,children:"Canais e marketing"}),e.jsxs(s,{children:[e.jsx(a,{icon:e.jsx(V,{size:n}),label:"Analytics e pixels",description:"Meta, Google e TikTok para medir resultados",badge:x,onClick:()=>d("/profile/analytics","pro","pixels")}),e.jsx(a,{icon:e.jsx($,{size:18}),label:"Google Shopping",badge:b,onClick:()=>d("/profile/google-merchant-center","black","google_shopping")}),e.jsx(a,{icon:e.jsx(ie,{sx:{fontSize:n}}),label:"Sacolinha do Instagram",badge:b,onClick:()=>d("/profile/instagram-shopping","black","instagram_shopping")})]})]}),e.jsxs(s,{children:[e.jsx(l,{sx:f,children:"Atendimento"}),e.jsxs(s,{children:[e.jsx(a,{icon:e.jsx(Y,{size:n}),label:"Contato e redes sociais",onClick:()=>o("/profile/web-catalog/contact")}),e.jsx(a,{icon:e.jsx(K,{size:n}),label:"Chat",description:"Chat com IA ou botão de WhatsApp",onClick:()=>o("/profile/web-catalog/chat")}),e.jsx(a,{icon:e.jsx(M,{size:n}),label:"E-mails ao cliente",description:"E-mails automáticos sobre o pedido",badge:b,onClick:()=>o("/profile/web-catalog/notifications")})]})]}),e.jsx(oe,{open:z,onClose:()=>C(!1),logoUrl:i==null?void 0:i.logo_url,storeName:i==null?void 0:i.nome_loja})]})},he=()=>e.jsxs(s,{children:[e.jsx(Q,{title:"Configurar loja",navigateBack:!0}),e.jsx(s,{sx:{px:2,py:2},children:e.jsx(se,{})})]});export{he 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.