import{G as O,H as w,u as x,aO as A,w as k,r as E,A as c,o as m,e as f,f as o,i as r,F as L,J as T,B as y,E as B,O as C,a3 as _,bq as g,bm as F,M as I,h as b,aV as N}from"./index.737529e8.1750111005555.js";import{V as R,a as S,_ as P,A as D}from"./VTabs.2f491dc6.1750111005555.js";import"./validators.ecb9ff09.1750111005555.js";import"./AppTextField.969b9caf.1750111005555.js";import"./VForm.0aa10138.1750111005555.js";import"./VRow.65155936.1750111005555.js";import"./_plugin-vue_export-helper.c27b6911.1750111005555.js";import"./VDialog.e4612af5.1750111005555.js";import"./VSlideGroup.2678f30f.1750111005555.js";const G={key:0},M=b("h3",{class:"text-lg font-semibold mb-1"},"Configurações da conta",-1),U=b("p",{class:"text-sm mb-6"},"Gerencie suas informações pessoais, segurança, notificações, conexões e planos de assinatura.",-1),Y={__name:"[tab]",setup(W){const u=window.location.href;console.log("url",u);const V=u.includes("app"),h=O(),l=w(),a=x("userData").value,{setAlert:d}=N();let i;(!a||!a.id)&&(V?A(()=>import("./index.737529e8.1750111005555.js").then(t=>t.cF),["assets/index.737529e8.1750111005555.js","assets/index.33f7acd5.1750111005555.css"]).then(t=>{const{useModalLoginOpen:n}=t;i=n(),k(()=>i.isOpen,e=>{console.log("modalLoginOpen.isOpen",e),e||l.push("/")}),(!a||!a.id)&&(i.isOpen=!0)}).catch(t=>{console.error("Erro ao carregar o módulo:",t)}):(d("Você não está logado. Faça login para acessar esta página.","error","tabler-alert-triangle",5e3),l.push("/")));const p=a&&a.id;p&&(a==null?void 0:a.role)=="entregador"&&(d("Você é um entregador. Para alterar os seus dados, acesse a área do seu perfil no painel do gestor!","info","tabler-info-circle",5e3),l.push("/"));const v=[{title:"Informações da conta",icon:"tabler-users",tab:"conta"},{title:"Segurança",icon:"tabler-lock",tab:"seguranca"}],s=E(h.params.tab||"conta");return(t,n)=>c(p)?(m(),f("div",G,[M,U,o(S,{modelValue:c(s),"onUpdate:modelValue":n[0]||(n[0]=e=>_(s)?s.value=e:null),class:"v-tabs-pill"},{default:r(()=>[(m(),f(L,null,T(v,e=>o(R,{key:e.icon,value:e.tab},{default:r(()=>[o(y,{size:"20",start:"",icon:e.icon},null,8,["icon"]),B(" "+C(e.title),1)]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"]),o(F,{modelValue:c(s),"onUpdate:modelValue":n[1]||(n[1]=e=>_(s)?s.value=e:null),class:"mt-6 disable-tab-transition",touch:!1},{default:r(()=>[o(g,{value:"conta"},{default:r(()=>[o(P)]),_:1}),o(g,{value:"seguranca"},{default:r(()=>[o(D)]),_:1})]),_:1},8,["modelValue"])])):I("",!0)}};export{Y as default};
