1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-BLyXSZLt.js","assets/index-B4zRp9L1.js","assets/index-DvP66-mD.css","assets/arrow-right-CddTGOkT.js","assets/repeat-2-B4P8s87o.js","assets/package-Cyjsv0xh.js","assets/Seo-Dg0ZZKuB.js","assets/log-out-DpUo-Di8.js","assets/Assinaturas-2e8HvqIZ.js","assets/useMutation-CC32rD8y.js","assets/index-j2cazksy.js","assets/index-KJtOrSQf.js","assets/dialog-C0EakbJu.js","assets/input-BXc2b5h3.js","assets/label--AEkfAZf.js","assets/product-pricing-DTettBgg.js","assets/subscription-service-BkeoFCCP.js","assets/loader-circle-yaGQmIMj.js","assets/sparkles-uqC82yhl.js","assets/calendar-days-DBP-6D5a.js","assets/credit-card-CtDXxJHN.js","assets/Pedidos-BEioJTCC.js","assets/Perfil-OOgaJaQV.js","assets/save-BHe6KHq3.js","assets/key-round-U2JwpikG.js","assets/Caneforas-23cU1coJ.js","assets/points-rules-JedlfBnV.js"])))=>i.map(i=>d[i]); 2import{c as j,r as t,a1 as s,a as b,b as g,v as _,j as a,m as c,L as v,aR as y,aS as e,aT as w,aP as N,a5 as k}from"./index-B4zRp9L1.js";import{S as C}from"./Seo-Dg0ZZKuB.js";import{L as P}from"./log-out-DpUo-Di8.js";import{R as E}from"./repeat-2-B4P8s87o.js";import{P as M}from"./package-Cyjsv0xh.js";/** 3 * @license lucide-react v0.462.0 - ISC 4 * 5 * This source code is licensed under the ISC license. 6 * See the LICENSE file in the root directory of this source tree. 7 */const S=j("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),L=t.lazy(()=>s(()=>import("./Dashboard-BLyXSZLt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),O=t.lazy(()=>s(()=>import("./Assinaturas-2e8HvqIZ.js"),__vite__mapDeps([8,1,2,9,10,11,12,13,14,15,16,17,4,3,18,19,20]))),R=t.lazy(()=>s(()=>import("./Pedidos-BEioJTCC.js"),__vite__mapDeps([21,1,2,15,17,5,3]))),z=t.lazy(()=>s(()=>import("./Perfil-OOgaJaQV.js"),__vite__mapDeps([22,1,2,13,14,23,24]))),I=t.lazy(()=>s(()=>import("./Caneforas-23cU1coJ.js"),__vite__mapDeps([25,1,2,15,26,17]))),A=[{to:"/minha-conta",label:"InÃcio",icon:N,exact:!0},{to:"/minha-conta/assinaturas",label:"Assinaturas",icon:E},{to:"/minha-conta/pedidos",label:"Pedidos",icon:M},{to:"/minha-conta/caneforas",label:"Canéforas",icon:k},{to:"/minha-conta/perfil",label:"Perfil",icon:S}],T=()=>{var r;const{customer:i,signOut:m}=b(),{toast:p}=g(),o=_(),x=async()=>{try{await m()}catch{p({title:"Erro ao sair.",variant:"destructive"})}},d=((r=i==null?void 0:i.name)==null?void 0:r.split(" ")[0])??"cliente";return a.jsxs("div",{className:"min-h-screen bg-background pt-16",children:[a.jsx(C,{title:"Minha Conta",description:"Gerencie suas assinaturas e pedidos.",canonical:"/minha-conta"}),a.jsx("section",{className:"bg-coffee-dark pt-12 pb-0 sm:pt-16 lg:pt-20",children:a.jsxs("div",{className:"container mx-auto px-6",children:[a.jsxs(c.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"flex flex-col gap-6 sm:flex-row sm:items-end sm:justify-between",children:[a.jsxs("div",{className:"min-w-0",children:[a.jsx("p",{className:"mb-3 font-body text-[11px] uppercase tracking-[0.3em] text-white/50",children:"Minha Conta"}),a.jsxs("h1",{className:"font-display text-3xl leading-[1.1] text-white sm:text-4xl lg:text-5xl",children:["Olá, ",a.jsx("span",{className:"italic",children:d})]})]}),a.jsxs("button",{type:"button",onClick:x,className:"inline-flex shrink-0 items-center justify-center gap-2 border border-white/25 bg-white/0 px-5 py-2.5 text-[11px] font-semibold uppercase tracking-[0.2em] text-white/80 transition-colors hover:bg-white/10 hover:text-white",children:[a.jsx(P,{size:14}),"Sair"]})]}),a.jsx("nav",{className:"-mx-6 mt-8 flex gap-6 overflow-x-auto px-6 sm:mt-10 sm:gap-8 lg:mt-12 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden","aria-label":"Seções da conta",children:A.map(({to:n,label:h,icon:u,exact:f})=>{const l=f?o.pathname===n:o.pathname.startsWith(n);return a.jsxs(v,{to:n,className:`relative flex shrink-0 items-center gap-2 whitespace-nowrap pb-4 text-xs font-semibold uppercase tracking-[0.2em] transition-colors ${l?"text-white":"text-white/55 hover:text-white/85"}`,children:[a.jsx(u,{size:14}),h,l&&a.jsx(c.span,{layoutId:"account-tab-underline",className:"absolute inset-x-0 -bottom-px h-[2px] bg-white",transition:{type:"spring",stiffness:400,damping:30}})]},n)})})]})}),a.jsx("main",{className:"container mx-auto px-6 py-14 sm:py-16 lg:py-20",children:a.jsx(t.Suspense,{fallback:a.jsx("div",{className:"py-24 text-center text-sm uppercase tracking-[0.2em] text-muted-foreground",children:"Carregando..."}),children:a.jsxs(y,{children:[a.jsx(e,{index:!0,element:a.jsx(L,{})}),a.jsx(e,{path:"assinaturas",element:a.jsx(O,{})}),a.jsx(e,{path:"pedidos",element:a.jsx(R,{})}),a.jsx(e,{path:"caneforas",element:a.jsx(I,{})}),a.jsx(e,{path:"perfil",element:a.jsx(z,{})}),a.jsx(e,{path:"*",element:a.jsx(w,{to:"/minha-conta",replace:!0})})]})})})]})},G=Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"}));
7export{G as M,S};
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.