1import{bb as R,bq as F,bs as O,bt as q,bu as H,cU as K,bz as W,cc as k,b4 as f,b5 as o,b7 as n,b8 as a,be as G,bf as J,bc as t,bI as Q,bj as d,ba as X,by as Y,b3 as c,bk as w,b6 as C,b9 as Z,bg as ee,bd as te,cV as oe}from"./DVKR6D2q.js";import{_ as ne}from"./8YS-q7nV.js";import{_ as se}from"./2RVJxNfa.js";import{_ as ae}from"./DQJeOOzA.js";import{_ as le}from"./CIzaTgW_.js";import"./BfH2CooI.js";import"./DnRWIRB3.js";import"./BQ77zyE_.js";import"./mF_SGacF.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},l=new s.Error().stack;l&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[l]="12851e68-44c2-4ddd-be8c-ea9d14e5143f",s._sentryDebugIdIdentifier="sentry-dbid-12851e68-44c2-4ddd-be8c-ea9d14e5143f")}catch{}})();const ce={class:"min-h-screen flex flex-col transition-colors duration-300"},ie={class:"sticky top-0 inset-x-0 z-20 py-4 transition-colors duration-300",style:{backgroundColor:"var(--header-bg-color)",color:"var(--header-text-color)"}},re={class:"container flex items-center justify-between"},ue={key:1,class:"text-lg font-semibold"},de={class:"flex items-center gap-1 md:gap-3"},pe={class:"flex items-center p-1 rounded-full hover:bg-white/10 transition-colors cursor-pointer"},_e={class:"p-1"},me={class:"flex-1 bg-(--current-page-bg,#fafafa)"},fe={class:"container py-6"},Ue=R({__name:"helpcenter",async setup(s){let l,p;const i=F(),r=O(),{userLogged:_,getLogoutRedirectPath:S,logout:U}=q(),{helpcenterConfig:h,loadConfig:I,isProfileEnabled:A,isEnabled:B,canCreateTickets:b,isKnowledgeBaseEnabled:m}=H(),{currentStyle:g}=K();[l,p]=W(()=>I()),await l,p(),B.value||k(m.value?"/":"/login");const v=d(()=>h.value?.name||g.value?.header?.title||"Central de Ajuda"),y=d(()=>g.value?.header?.logoUrl||h.value?.logoUrl||""),N=d(()=>{const e=[{to:"/helpcenter",label:"Solicitações"}];return b.value&&e.push({to:"/helpcenter/new-ticket",label:"Nova solicitação"}),m.value&&e.push({to:"/",label:"Base de conhecimento"}),e}),T=e=>D(e)?"opacity-100":"opacity-60 hover:opacity-100",D=e=>e==="/helpcenter"?i.path==="/helpcenter"||i.path.startsWith("/helpcenter/ticket/"):i.path===e,L=d(()=>{const e=[];return e.push({label:"Solicitações",icon:"i-mdi-ticket-outline",onSelect:()=>r.push("/helpcenter")}),b.value&&e.push({label:"Nova solicitação",icon:"i-mdi-plus-circle-outline",onSelect:()=>r.push("/helpcenter/new-ticket")}),A.value&&e.push({label:"Meu perfil",icon:"i-mdi-account-outline",onSelect:()=>r.push("/helpcenter/profile")}),m.value&&e.push({label:"Base de conhecimento",icon:"i-mdi-book-outline",onSelect:()=>r.push("/")}),e.push({label:"Sair",icon:"i-mdi-logout",onSelect:async()=>{await U(),k(S(i.fullPath))}}),[e]});return(e,he)=>{const $=oe,x=X,z=te,E=ne,M=se,V=ae,j=Y,P=le;return c(),f("div",ce,[o("header",ie,[o("div",re,[n(x,{to:"/helpcenter",class:"flex items-center gap-2"},{default:a(()=>[t(y)?(c(),w($,{key:0,src:t(y),alt:t(v),height:"32",class:"h-8 w-auto max-w-48",loading:"eager"},null,8,["src","alt"])):(c(),f("span",ue,C(t(v)),1))]),_:1}),o("nav",de,[(c(!0),f(G,null,J(t(N),u=>(c(),w(x,{key:u.to,to:u.to,class:ee(["hidden md:inline-flex items-center px-3 py-1.5 rounded-md text-sm font-medium transition-colors",T(u.to)])},{default:a(()=>[Z(C(u.label),1)]),_:2},1032,["to","class"]))),128)),n(j,null,{fallback:a(()=>[o("div",_e,[n(V,{class:"size-6 rounded-full"})])]),default:a(()=>[n(M,{items:t(L),content:{align:"end",sideOffset:8}},{default:a(()=>[n(E,{arrow:"",text:t(_)?.email},{default:a(()=>[o("button",pe,[n(z,{src:t(_)?.imageUrl,alt:t(_)?.name,size:"xs"},null,8,["src","alt"])])]),_:1},8,["text"])]),_:1},8,["items"])]),_:1})])])]),o("main",me,[o("div",fe,[Q(e.$slots,"default")])]),n(P)])}}});
1export{Ue 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.