1import{a as J,b as Q,c as X}from"./chunk-XMLGAWCH.js";import{a as $}from"./chunk-U6LWEPXV.js";import"./chunk-XDMBUZGS.js";import{b as W}from"./chunk-ZTB5BK2O.js";import"./chunk-KAQ2VCQ2.js";import"./chunk-SDYCNOPX.js";import"./chunk-HJEDSNMU.js";import"./chunk-QUOK3ZFK.js";import"./chunk-EYITKG5L.js";import{A as q}from"./chunk-5XMBELDX.js";import"./chunk-XLYNHXVS.js";import{a as K}from"./chunk-3QU7A7VL.js";import{a as G}from"./chunk-5IXNES5Y.js";import"./chunk-LXECQZI5.js";import"./chunk-STXJ6CHD.js";import{I as N,J as R,R as V,S as U,W as D,X as H,Y as j,ba as T,j as z}from"./chunk-4N6OC7AV.js";import{Fa as C,Ga as f,Lb as E,Lc as I,Mc as l,Nc as p,Oc as B,Rb as x,Yb as M,Zb as r,ac as h,ad as c,cc as b,gc as A,hc as F,id as m,jc as w,jd as u,kc as P,lc as a,mc as o,md as L,nc as k,qc as g,rc as S,va as _,xb as O,xc as y,yc as v,zb as n}from"./chunk-VYR66D5O.js";var Z=t=>({title:"Nombre",content:t}),ee=t=>({title:"Direcci\xF3n",content:t}),te=t=>({title:"Provincia",content:t,last:!0}),ne=t=>({title:"CIF",content:t}),ie=t=>({title:"Poblaci\xF3n",content:t}),oe=t=>({title:"Pa\xEDs",content:t,last:!0}),ae=t=>({title:"Nombre fiscal de la empresa",content:t}),re=t=>({title:"C\xF3digo postal",content:t,last:!0}),le=t=>({title:"Tel\xE9fono fijo",content:t}),ce=t=>({title:"Correo electr\xF3nico",content:t,last:!0}),pe=t=>({title:"Nombre de usuario",content:t,last:!0}),me=t=>[t];function ue(t,s){if(t&1&&(a(0,"div")(1,"p",3),l(2),m(3,"translate"),o(),a(4,"p",4),l(5),o()()),t&2){let e=s.title,i=s.content,d=s.last;b("mb-5 ",d?"mb-lg-0":"",""),n(2),p(u(3,5,e)),n(3),p(i)}}function se(t,s){if(t&1){let e=S();a(0,"div",5)(1,"h1",6),l(2),m(3,"translate"),o(),a(4,"div",7),y("linkEmitter",function(){C(e);let d=v();return f(d.authService.logout())}),o()(),a(5,"div",8)(6,"div",9)(7,"div",10)(8,"mat-icon",11),l(9,"account_circle"),o(),a(10,"p",12),l(11),m(12,"translate"),o()(),a(13,"div",13)(14,"div",14),g(15,15)(16,15)(17,15),o(),a(18,"div",14),g(19,15)(20,15)(21,15),o(),a(22,"div",14),g(23,15)(24,15),o()()(),a(25,"div",16)(26,"div",10)(27,"mat-icon",11),l(28,"call_quality"),o(),a(29,"p",12),l(30),m(31,"translate"),o()(),g(32,15)(33,15),o(),a(34,"div",16)(35,"div",10)(36,"mat-icon",11),l(37,"lock_person"),o(),a(38,"p",12),l(39),m(40,"translate"),o()(),g(41,15),o()()}if(t&2){let e=v(),i=I(1);n(2),p(u(3,30,"Perfil de")+" "+(e.user==null?null:e.user.username)),n(2),h("link"),r("text","Cerrar sesi\xF3n")("classList","text-error-000 p-0"),n(7),p(u(12,32,"Datos de la agencia")),n(4),r("ngTemplateOutlet",i)("ngTemplateOutletContext",c(38,Z,e.userAgency.name)),n(),r("ngTemplateOutlet",i)("ngTemplateOutletContext",c(40,ee,e.userAgency.address==""?"--":e.userAgency.address)),n(),r("ngTemplateOutlet",i)("ngTemplateOutletContext",c(42,te,e.userAgency.province==""?"--":e.userAgency.province)),n(2),r("ngTemplateOutlet",i)("ngTemplateOutletContext",c(44,ne,e.userAgency.cif==""?"--":e.userAgency.cif)),n(),r("ngTemplateOutlet",i)("ngTemplateOutletContext",c(46,ie,e.userAgency.town==""?"--":e.userAgency.town)),n(),r("ngTemplateOutlet",i)("ngTemplateOutletContext",c(48,oe,e.userAgency.language==""?"--":e.userAgency.language)),n(2),r("ngTemplateOutlet",i)("ngTemplateOutletContext",c(50,ae,e.userAgency.companyName==""?"--":e.userAgency.companyName)),n(),r("ngTemplateOutlet",i)("ngTemplateOutletContext",c(52,re,e.userAgency.postalCode==""?"--":e.userAgency.postalCode)),n(6),p(u(31,34,"Contacto principal")),n(2),r("ngTemplateOutlet",i)("ngTemplateOutletContext",c(54,le,e.userAgency.phone==""?"--":e.userAgency.phone)),n(),r("ngTemplateOutlet",i)("ngTemplateOutletContext",c(56,ce,e.userAgency.email==""?"--":e.userAgency.email)),n(6),p(u(40,36,"Datos de acceso")),n(2),r("ngTemplateOutlet",i)("ngTemplateOutletContext",c(58,pe,e.userAgency.username==""?"--":e.userAgency.username))}}function de(t,s){if(t&1&&(a(0,"div",19)(1,"a",20),m(2,"localize"),a(3,"mat-icon",21),l(4),o(),a(5,"span",22),l(6),m(7,"translate"),o()()()),t&2){let e=s.$implicit;n(),r("routerLink",u(2,4,c(8,me,e.url))),n(2),M("translate","no"),n(),p(e.icon),n(2),p(u(7,6,e.label))}}function ge(t,s){if(t&1&&(a(0,"div",18),w(1,de,8,10,"div",19,F),o()),t&2){let e=v(2);n(),P(e.menuitems)}}function ve(t,s){t&1&&k(0,"app-my-account-menu")}function _e(t,s){if(t&1){let e=S();a(0,"div",5)(1,"h1",6),l(2),m(3,"translate"),o(),a(4,"div",7),y("linkEmitter",function(){C(e);let d=v();return f(d.authService.logout())}),o()(),a(5,"p",17),l(6),m(7,"translate"),o(),x(8,ge,3,0,"div",18)(9,ve,1,0,"app-my-account-menu")}if(t&2){let e=v();n(2),B("",u(3,7,"\xA1Hola")+" "+(e.user==null?null:e.user.fullName),"!"),n(2),h("link"),r("text","Cerrar sesi\xF3n")("classList","text-error-000 p-0"),n(2),p(u(7,9,"Selecciona el apartado de tu cuenta que quieras consultar o actualizar.")),n(2),A(e.mainService.isLG()?8:9)}}var Ne=(()=>{class t{constructor(){this._localizeService=_(D),this._router=_(N),this.accountOptionsEnum=J,this.ROUTES=T,this.mainService=_(G),this.authService=_(W),this.user=this.authService.authUser,this.userAgency=this.authService.authAgencyUser,this.menuitems=Q}onPageShow(e){if(e.persisted&&!this.authService.authUser){let i=this._localizeService.translateRoute([T.HOME]);this._router.navigate(i)}}ngOnInit(){this.mainService.appSendNavKey("my_account")}
1setActive(e){this.menuitems.forEach(i=>i.active=!1),e.active=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-my-account"]],hostBindings:function(i,d){i&1&&y("pageshow",function(Y){return d.onPageShow(Y)},!1,O)},decls:6,vars:1,consts:[["dataVisualizer",""],[1,"container","bg-ac-900","mt-4","mt-lg-6","mb-64"],[1,"g-col-12","g-col-lg-3","py-5","px-5","px-lg-0","py-lg-0"],[1,"font-subhead","text-neutral-100","mb-0"],[1,"font-headline","text-first-level","mb-0"],[1,"d-block","d-lg-flex","justify-content-between","align-items-center","mb-5"],[1,"font-title-1","m-0"],["app-button","",3,"linkEmitter","text","classList"],[1,"grid","mb-5","mt-6","mx-0","gap-5"],[1,"g-col-12","bg-neutral-900","rounded-3","border-neutral-800","p-6"],[1,"d-flex","flex-column","gap-4"],[1,"icon-size-8","h-100","w-100","material-symbols-outlined","text-ac-100"],[1,"text-neutral-000","font-title-2","mb-6"],[1,"grid","gap-lg-10"],[1,"g-col-10","g-col-md-6","g-col-lg-4"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"g-col-12","g-col-lg-6","bg-neutral-900","rounded-3","border-neutral-800","p-6"],[1,"text-neutral-100","fw-500"],[1,"grid","mb-5","mt-6","mx-5","mx-lg-0","gap-5"],[1,"g-col-12","g-col-lg-4","bg-neutral-900","rounded-3"],[1,"card-over","cursor-pointer","text-decoration-none","d-flex","col-12","gap-5","border-neutral-800","rounded-3","py-6","px-5",3,"routerLink"],[1,"material-symbols-outlined","text-neutral-100"],[1,"text-neutral-100","font-headline","mb-0"]],template:function(i,d){i&1&&(x(0,ue,6,7,"ng-template",null,0,L),a(2,"div",1)(3,"div",2),x(4,se,42,60)(5,_e,10,11),o()()),i&2&&(n(4),A(d.userAgency?4:5))},dependencies:[q,U,V,$,j,H,R,K,X,z],styles:[".card-over[_ngcontent-%COMP%]:hover{background-color:var(--bs-ac-700)!important;border:1px solid var(--bs-ac-100)!important}.card-over[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{color:#000!important}.card-over[_ngcontent-%COMP%]:hover .mat-icon[_ngcontent-%COMP%]{color:var(--bs-ac-100)!important}.ml--6[_ngcontent-%COMP%]{margin-left:-6px}.sticky[_ngcontent-%COMP%]{position:sticky;top:139px}.w-80px[_ngcontent-%COMP%]{width:80px}"]})}}return t})();export{Ne as MyAccountComponent};
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.