1import{b as $}from"./chunk-QXGTY5DK.js";import"./chunk-EGTU7BYW.js";import{a as F,b as A}from"./chunk-K6VRTCYS.js";import{d as D,f as R}from"./chunk-XF5NA6XF.js";import{g as T}from"./chunk-GFTUE3OT.js";import{a as V,b as P}from"./chunk-WKFRYP6H.js";import"./chunk-GVL6QB5O.js";import{b as E,e as O,f as N}from"./chunk-25VPV4CX.js";import"./chunk-UUG5UTW6.js";import{Ab as i,Bb as r,Cb as u,Jb as S,Ka as v,Lb as M,Nb as o,Pa as c,Y as s,Yb as m,Zb as _,ba as b,ca as f,cb as w,da as p,ea as y,ha as k,qb as d,sb as x,tc as C,ub as g,xb as I,yb as L,zb as h}from"./chunk-7ZY26YK2.js";import"./chunk-FT7VBN3L.js";var z=(n,t)=>t.label;function B(n,t){if(n&1&&(i(0,"a",10)(1,"span"),m(2),r(),i(3,"span",14),p(),i(4,"svg",15),u(5,"polyline",16),r()()()),n&2){let e=o().$implicit,a=o(),l=o();h("href",e.href,v),c(2),_(l.getItemLabel(a,e))}}function H(n,t){if(n&1){let e=S();i(0,"a",17),M("click",function(l){b(e);let j=o().$implicit,G=o(2);return f(G.onNavigationItemClick(l,j))}),i(1,"span"),m(2),r(),i(3,"span",14),p(),i(4,"svg",15),u(5,"polyline",16),r()()()}if(n&2){let e=o().$implicit,a=o(),l=o();d("href",e.route,v),c(2),_(l.getItemLabel(a,e))}}function Z(n,t){if(n&1&&(i(0,"a",12)(1,"span"),m(2),r(),i(3,"span",14),p(),i(4,"svg",15),u(5,"polyline",16),r()()()),n&2){let e=o().$implicit,a=o(),l=o();h("routerLink",e.route),d("target",e.openInNewTab?"_blank":null)("rel",e.openInNewTab?"noopener noreferrer":null),c(2),_(l.getItemLabel(a,e))}}function q(n,t){if(n&1&&(i(0,"span",13)(1,"span"),m(2),r(),i(3,"span",14),p(),i(4,"svg",15),u(5,"polyline",16),r()()()),n&2){let e=o().$implicit,a=o(),l=o();d("title",e.title??null),c(2),_(l.getItemLabel(a,e))}}function J(n,t){if(n&1&&x(0,B,6,2,"a",10)(1,H,6,2,"a",11)(2,Z,6,4,"a",12)(3,q,6,2,"span",13),n&2){let e=t.$implicit,a=o(2);g(e.external&&e.href?0:e.route&&a.isShowareItem(e)?1:e.route?2:e.disabled?3:-1)}}function K(n,t){if(n&1){let e=S();i(0,"button",18),M("click",function(){b(e);let l=o(2);return f(l.onLogout())}),i(1,"span"),m(2,"Sair"),r()()}}function Q(n,t){if(n&1&&(i(0,"nav",7),I(1,J,4,1,null,null,z),x(3,K,3,0,"button",9),r()),n&2){let e=t,a=o();d("aria-label",a.title()),c(),L(e.items),c(2),g(e.id==="perfil"?3:-1)}}function W(n,t){n&1&&(i(0,"p",8),m(1,"Menu indispon\xEDvel no momento."),r())}var U=class n{destroyRef=s(k);route=s(E);router=s(O);authService=s(T);contaExternalLinksService=s(A);contaShowareLaunchService=s($);paginasPrivadasMenuService=s(F);routeSectionId=P(this.route.paramMap,{initialValue:this.route.snapshot.paramMap});paginasPrivadasMenu=P(this.paginasPrivadasMenuService.getMenuItems(),{initialValue:[]});menuSections=C(()=>R(this.contaExternalLinksService.links(),this.paginasPrivadasMenu()));activeSection=C(()=>{let t=this.routeSectionId().get("sectionId");return this.menuSections().find(e=>e.id===t)??null});title=C(()=>{let t=this.activeSection();return t?t.id==="perfil"?"MEU PERFIL":t.title:"MINHA CONTA"});onNavigationItemClick(t,e){this.contaShowareLaunchService.isShowareRoute(e.route)&&(t.preventDefault(),t.stopPropagation(),this.contaShowareLaunchService.abrirBilheteriaEmNovaAba())}isShowareItem(t){return this.contaShowareLaunchService.isShowareRoute(t.route)}getItemLabel(t,e){return t.id==="perfil"&&e.route===D.minhaConta?"Dados Pessoais":e.label}onLogout(){this.authService.logout().pipe(V(this.destroyRef)).subscribe(()=>{this.router.navigateByUrl("/login")})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=w({type:n,selectors:[["app-conta-menu-page"]],decls:11,vars:2,consts:[["aria-label","Menu da conta",1,"conta-menu-mobile"],[1,"conta-menu-mobile__backbar"],["routerLink","/conta","aria-label","Voltar",1,"conta-menu-mobile__back"],["width","18","height","18","viewBox","0 0 19 19","fill","none","aria-hidden","true"],["d","M4.4625 10.5L10.9958 17.0333L9.33333 18.6667L0 9.33333L9.33333 0L10.9958 1.63333L4.4625 8.16667H18.6667V10.5H4.4625Z","fill","currentColor"],[1,"conta-menu-mobile__back-label"],[1,"conta-menu-mobile__title"],[1,"conta-menu-mobile__list"],[1,"conta-menu-mobile__empty"],["type","button",1,"conta-menu-mobile__item","conta-menu-mobile__logout"],["target","_blank","rel","noopener noreferrer",1,"conta-menu-mobile__item",3,"href"],[1,"conta-menu-mobile__item"],[1,"conta-menu-mobile__item",3,"routerLink"],["aria-disabled","true",1,"conta-menu-mobile__item","conta-menu-mobile__item--disabled"],["aria-hidden","true",1,"conta-menu-mobile__arrow"],["width","17","height","17","viewBox","0 0 24 24","fill","none"],["points","9,18 15,12 9,6","stroke","currentColor","stroke-width","2.2","stroke-linecap","round","stroke-linejoin","round"],[1,"conta-menu-mobile__item",3,"click"],["type","button",1,"conta-menu-mobile__item","conta-menu-mobile__logout",3,"click"]],template:function(e,a){if(e&1&&(i(0,"section",0)(1,"header",1)(2,"a",2),p(),i(3,"svg",3),u(4,"path",4),r()(),y(),i(5,"span",5),m(6,"Minha Conta"),r()(),i(7,"h1",6),m(8),r(),x(9,Q,4,2,"nav",7)(10,W,2,0,"p",8),r()),e&2){let l;c(8),_(a.title()),c(),g((l=a.activeSection())?9:10,l)}},dependencies:[N],styles:["[_nghost-%COMP%]{display:block}.conta-menu-mobile[_ngcontent-%COMP%]{min-height:100%;padding:14px 18px calc(26px + var(--cap-safe-area-bottom));border-top:4px solid var(--cap-primary-400);background:#efefef}
1.conta-menu-mobile__backbar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;min-height:34px}.conta-menu-mobile__back[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;color:var(--cap-primary-400);text-decoration:none}.conta-menu-mobile__back-label[_ngcontent-%COMP%]{font:500 13px/1.2 Poppins,sans-serif;color:#3f3f3f}.conta-menu-mobile__title[_ngcontent-%COMP%]{margin:24px 0 26px;text-align:center;color:#4a4a4a;font-family:Neubau,Oswald,sans-serif;font-size:clamp(30px,9vw,38px);font-weight:700;line-height:1;letter-spacing:1px}.conta-menu-mobile__list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.conta-menu-mobile__item[_ngcontent-%COMP%]{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:14px 18px;border:1px solid #dedede;border-radius:8px;background:var(--cap-white);color:#4f4f4f;text-align:left;text-decoration:none;font:500 16px/1.25 Poppins,sans-serif}.conta-menu-mobile__arrow[_ngcontent-%COMP%]{display:inline-flex;color:var(--cap-primary-400);flex-shrink:0}.conta-menu-mobile__item--disabled[_ngcontent-%COMP%]{color:#9d9d9d}.conta-menu-mobile__item--disabled[_ngcontent-%COMP%] .conta-menu-mobile__arrow[_ngcontent-%COMP%]{color:#c8c8c8}.conta-menu-mobile__logout[_ngcontent-%COMP%]{justify-content:flex-start;color:var(--cap-primary-400);cursor:pointer}.conta-menu-mobile__empty[_ngcontent-%COMP%]{margin:0;color:#666;text-align:center;font:500 14px/1.5 Poppins,sans-serif}@media (max-width: 360px){.conta-menu-mobile[_ngcontent-%COMP%]{padding-inline:12px}.conta-menu-mobile__item[_ngcontent-%COMP%]{min-height:52px;padding-inline:14px;font-size:15px}}"],changeDetection:0})};export{U as ContaMenuPageComponent};
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.