PageSourceSearch

https://empresas.grupogamma.com/chunk-NC63WUIJ.js

js grupogamma.com collected 2026-09-25 00:35:02 UTC 35,030 bytes, 274 lines download raw bytes

1import{a as it}from"./chunk-WMOCXVPV.js";import{i as tt,j as nt}from"./chunk-RA2PSMVK.js";import{a as Je,b as Xe}from"./chunk-FH5JID4N.js";import"./chunk-PN2RXRI2.js";import"./chunk-BUTAKNGP.js";import{f as Re,i as $e,q as qe}from"./chunk-MBBVYQX5.js";import{b as He,e as Ge,f as Ke,i as B,k as Ye,l as et}from"./chunk-4VOS7QCB.js";import{c as Ue,d as We,j as E,k as Z}from"./chunk-FZIA5U2W.js";import{b as Qe,c as Ze,d as A}from"./chunk-XAZL5KZH.js";import{P as ee,b as X,d as ze,ja as q,na as Ve,oa as je,p as Y,va as Fe}from"./chunk-UKQML5NO.js";import{a as Q}from"./chunk-ZZDY4OCV.js";import{a as te}from"./chunk-ZZMJSPMK.js";import{d as Ne,e as $,f as Ae,g as Be}from"./chunk-P2BRFOSJ.js";import{f as Ee,h as Pe,j as De,m as Le}from"./chunk-J5KLU5DX.js";import{$ as v,Ab as k,Eb as m,Ec as O,Fb as d,Fc as Ie,Gb as ge,Hb as _e,Ia as le,Ib as ve,Jb as Ce,Ka as r,Kb as M,Lb as T,Pb as J,Qb as j,Rb as F,Sb as L,Tb as C,Ub as I,Vb as ye,W as oe,Wb as we,Ya as y,Yb as xe,Z as re,Zb as ke,_b as Me,a as P,ab as pe,b as ie,bb as de,cb as x,cc as R,dc as Te,ea as f,ec as Se,fa as b,ga as ae,ib as h,la as z,lb as g,mb as _,ob as ce,oc as Oe,pb as me,qa as V,qb as p,rb as s,sb as l,sc as c,ta as se,tb as w,ub as ue,va as K,vb as fe,vc as N,wc as S,xb as be,yb as he,zb as D}from"./chunk-OK372EBD.js";var ot=`
2    .p-drawer {
3        display: flex;
4        flex-direction: column;
5        transform: translate3d(0px, 0px, 0px);
6        position: relative;
7        transition: transform 0.3s;
8        background: dt('drawer.background');
9        color: dt('drawer.color');
10        border-style: solid;
11        border-color: dt('drawer.border.color');
12        box-shadow: dt('drawer.shadow');
13    }
14
15    .p-drawer-content {
16        overflow-y: auto;
17        flex-grow: 1;
18        padding: dt('drawer.content.padding');
19    }
20
21    .p-drawer-header {
22        display: flex;
23        align-items: center;
24        justify-content: space-between;
25        flex-shrink: 0;
26        padding: dt('drawer.header.padding');
27    }
28
29    .p-drawer-footer {
30        padding: dt('drawer.footer.padding');
31    }
32
33    .p-drawer-title {
34        font-weight: dt('drawer.title.font.weight');
35        font-size: dt('drawer.title.font.size');
36    }
37
38    .p-drawer-full .p-drawer {
39        transition: none;
40        transform: none;
41        width: 100vw !important;
42        height: 100vh !important;
43        max-height: 100%;
44        top: 0px !important;
45        left: 0px !important;
46        border-width: 1px;
47    }
48
49    .p-drawer-left .p-drawer-enter-active {
50        animation: p-animate-drawer-enter-left 0.5s cubic-bezier(0.32, 0.72, 0, 1);
51    }
52    .p-drawer-left .p-drawer-leave-active {
53        animation: p-animate-drawer-leave-left 0.5s cubic-bezier(0.32, 0.72, 0, 1);
54    }
55
56    .p-drawer-right .p-drawer-enter-active {
57        animation: p-animate-drawer-enter-right 0.5s cubic-bezier(0.32, 0.72, 0, 1);
58    }
59    .p-drawer-right .p-drawer-leave-active {
60        animation: p-animate-drawer-leave-right 0.5s cubic-bezier(0.32, 0.72, 0, 1);
61    }
62
63    .p-drawer-top .p-drawer-enter-active {
64        animation: p-animate-drawer-enter-top 0.5s cubic-bezier(0.32, 0.72, 0, 1);
65    }
66    .p-drawer-top .p-drawer-leave-active {
67        animation: p-animate-drawer-leave-top 0.5s cubic-bezier(0.32, 0.72, 0, 1);
68    }
69
70    .p-drawer-bottom .p-drawer-enter-active {
71        animation: p-animate-drawer-enter-bottom 0.5s cubic-bezier(0.32, 0.72, 0, 1);
72    }
73    .p-drawer-bottom .p-drawer-leave-active {
74        animation: p-animate-drawer-leave-bottom 0.5s cubic-bezier(0.32, 0.72, 0, 1);
75    }
76
77    .p-drawer-full .p-drawer-enter-active {
78        animation: p-animate-drawer-enter-full 0.5s cubic-bezier(0.32, 0.72, 0, 1);
79    }
80    .p-drawer-full .p-drawer-leave-active {
81        animation: p-animate-drawer-leave-full 0.5s cubic-bezier(0.32, 0.72, 0, 1);
82    }
83    
84    .p-drawer-left .p-drawer {
85        width: 20rem;
86        height: 100%;
87        border-inline-end-width: 1px;
88    }
89
90    .p-drawer-right .p-drawer {
91        width: 20rem;
92        height: 100%;
93        border-inline-start-width: 1px;
94    }
95
96    .p-drawer-top .p-drawer {
97        height: 10rem;
98        width: 100%;
99        border-block-end-width: 1px;
100    }
101
102    .p-drawer-bottom .p-drawer {
103        height: 10rem;
104        width: 100%;
105        border-block-start-width: 1px;
106    }
107
108    .p-drawer-left .p-drawer-content,
109    .p-drawer-right .p-drawer-content,
110    .p-drawer-top .p-drawer-content,
111    .p-drawer-bottom .p-drawer-content {
112        width: 100%;
113        height: 100%;
114    }
115
116    .p-drawer-open {
117        display: flex;
118    }
119
120    .p-drawer-mask:dir(rtl) {
121        flex-direction: row-reverse;
122    }
123
124    @keyframes p-animate-drawer-enter-left {
125        from {
126            transform: translate3d(-100%, 0px, 0px);
127        }
128    }
129
130    @keyframes p-animate-drawer-leave-left {
131        to {
132            transform: translate3d(-100%, 0px, 0px);
133        }
134    }
135
136    @keyframes p-animate-drawer-enter-right {
137        from {
138            transform: translate3d(100%, 0px, 0px);
139        }
140    }
141
142    @keyframes p-animate-drawer-leave-right {
143        to {
144            transform: translate3d(100%, 0px, 0px);
145        }
146    }
147
148    @keyframes p-animate-drawer-enter-top {
149        from {
150            transform: translate3d(0px, -100%, 0px);
151        }
152    }
153
154    @keyframes p-animate-drawer-leave-top {
155        to {
156            transform: translate3d(0px, -100%, 0px);
157        }
158    }
159
160    @keyframes p-animate-drawer-enter-bottom {
161        from {
162            transform: translate3d(0px, 100%, 0px);
163        }
164    }
165
166    @keyframes p-animate-drawer-leave-bottom {
167        to {
168            transform: translate3d(0px, 100%, 0px);
169        }
170    }
171
172    @keyframes p-animate-drawer-enter-full {
173        from {
174            opacity: 0;
175            transform: scale(0.93);
176        }
177    }
178
179    @keyframes p-animate-drawer-leave-full {
180        to {
181            opacity: 0;
182            transform: scale(0.93);
183        }
184    }
185`;var dt=["header"],ct=["footer"],mt=["content"],ut=["closeicon"],ft=["headless"],bt=["container"],ht=["closeButton"],gt=["*"];function _t(t,i){t&1&&D(0)}function vt(t,i){if(t&1&&x(0,_t,1,0,"ng-container",4),t&2){let e=d(2);p("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)}}function Ct(t,i){t&1&&D(0)}function yt(t,i){if(t&1&&(s(0,"div",9),C(1),l()),t&2){let e=d(3);L(e.cx("title")),p("pBind",e.ptm("title")),r(),I(e.header)}}function wt(t,i){t&1&&(ae(),w(0,"svg",12)),t&2&&h("data-pc-section","closeicon")}function xt(t,i){}function kt(t,i){t&1&&x(0,xt,0,0,"ng-template")}function Mt(t,i){if(t&1&&x(0,wt,1,1,"svg",11)(1,kt,1,0,null,4),t&2){let e=d(4);p("ngIf",!e.closeIconTemplate&&!e._closeIconTemplate),r(),p("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Tt(t,i){if(t&1){let e=k();s(0,"p-button",10),m("onClick",function(o){f(e);let a=d(3);return b(a.close(o))})("keydown.enter",function(o){f(e);let a=d(3);return b(a.close(o))}),x(1,Mt,2,2,"ng-template",null,1,Oe),l()}if(t&2){let e=d(3);p("pt",e.ptm("pcCloseButton"))("ngClass",e.cx("pcCloseButton"))("buttonProps",e.closeButtonProps)("ariaLabel",e.ariaCloseLabel)("unstyled",e.unstyled()),h("data-pc-group-section","iconcontainer")}}function St(t,i){t&1&&D(0)}function Ot(t,i){t&1&&D(0)}function It(t,i){if(t&1&&(be(0),s(1,"div",5),x(2,Ot,1,0,"ng-container",4),l(),he()),t&2){let e=d(3);r(),p("pBind",e.ptm("footer"))("ngClass",e.cx("footer")),h("data-pc-section","footer"),r(),p("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function Et(t,i){if(t&1&&(s(0,"div",5),x(1,Ct,1,0,"ng-container",4)(2,yt,2,4,"div",6)(3,Tt,3,6,"p-button",7),l(),s(4,"div",5),_e(5),x(6,St,1,0,"ng-container",4),l(),x(7,It,3,4,"ng-container",8)),t&2){let e=d(2);p("pBind",e.ptm("header"))("ngClass",e.cx("header")),h("data-pc-section","header"),r(),p("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),r(),p("ngIf",e.header),r(),p("ngIf",e.showCloseIcon&&e.closable),r(),p("pBind",e.ptm("content"))("ngClass",e.cx("content")),h("data-pc-section","content"),r(2),p("ngTemplateOutlet",e.contentTemplate||e._contentTemplate),r(),p("ngIf",e.footerTemplate||e._footerTemplate)}}function Pt(t,i){if(t&1){let e=k();s(0,"div",3,0),m("pMotionOnBeforeEnter",function(o){f(e);let a=d();return b(a.onBeforeEnter(o))})("pMotionOnAfterLeave",function(o){f(e);let a=d();return b(a.onAfterLeave(o))})("keydown",function(o){f(e);let a=d();return b(a.onKeyDown(o))}),g(2,vt,1,1,"ng-container")(3,Et,8,11),l()}if(t&2){let e=d();F(e.style),L(e.cn(e.cx("root"),e.styleClass)),p("pBind",e.ptm("root"))("pMotion",e.visible)("pMotionAppear",!0)("pMotionEnterActiveClass",e.$enterAnimation())("pMotionLeaveActiveClass",e.$leaveAnimation())("pMotionOptions",e.computedMotionOptions()),h("data-p",e.dataP)("data-p-open",e.visible),r(2),_(e.headlessTemplate||e._headlessTemplate?2:3)}}var Dt=`
186${ot}
187
188/** For PrimeNG **/
189.p-drawer {
190    position: fixed;
191}
192
193.p-drawer-left {
194    top: 0;
195    left: 0;
196    width: 20rem;
197    height: 100%;
198    border-inline-end-width: 1px;
199}
200
201.p-drawer-right {
202    top: 0;
203    right: 0;
204    width: 20rem;
205    height: 100%;
206    border-inline-start-width: 1px;
207}
208
209.p-drawer-top {
210    top: 0;
211    left: 0;
212    width: 100%;
213    height: 10rem;
214    border-block-end-width: 1px;
215}
216
217.p-drawer-bottom {
218    bottom: 0;
219    left: 0;
220    width: 100%;
221    height: 10rem;
222    border-block-start-width: 1px;
223}
224
225.p-drawer-full {
226    width: 100%;
227    height: 100%;
228    top: 0;
229    left: 0;
230    -webkit-transition: none;
231    transition: none;
232}
233
234/* Animations */
235.p-drawer-enter-left {
236    animation: p-animate-drawer-enter-left 0.5s cubic-bezier(0.32, 0.72, 0, 1);
237}
238
239.p-drawer-leave-left {
240    animation: p-animate-drawer-leave-left 0.5s cubic-bezier(0.32, 0.72, 0, 1);
241}
242
243.p-drawer-enter-right {
244    animation: p-animate-drawer-enter-right 0.5s cubic-bezier(0.32, 0.72, 0, 1);
245}
246
247.p-drawer-leave-right {
248    animation: p-animate-drawer-leave-right 0.5s cubic-bezier(0.32, 0.72, 0, 1);
249}
250
251.p-drawer-enter-top {
252    animation: p-animate-drawer-enter-top 0.5s cubic-bezier(0.32, 0.72, 0, 1);
253}
254
255.p-drawer-leave-top {
256    animation: p-animate-drawer-leave-top 0.5s cubic-bezier(0.32, 0.72, 0, 1);
257}
258
259.p-drawer-enter-bottom {
260    animation: p-animate-drawer-enter-bottom 0.5s cubic-bezier(0.32, 0.72, 0, 1);
261}
262
263.p-drawer-leave-bottom {
264    animation: p-animate-drawer-leave-bottom 0.5s cubic-bezier(0.32, 0.72, 0, 1);
265}
266
267.p-drawer-enter-full {
268    animation: p-animate-drawer-enter-full 0.5s cubic-bezier(0.32, 0.72, 0, 1);
269}
270
271.p-drawer-leave-full {
272    animation: p-animate-drawer-leave-full 0.5s cubic-bezier(0.32, 0.72, 0, 1);
273}
274`,Lt={mask:({instance:t})=>["p-drawer-mask",{"p-overlay-mask p-overlay-mask-enter-active":t.modal},{"p-drawer-full":t.fullScreen()}],root:({instance:t})=>["p-drawer p-component",{"p-drawer-full":t.fullScreen(),"p-drawer-open":t.visible},`p-drawer-${t.position()}`],header:"p-drawer-header",title:"p-drawer-title",pcCloseButton:"p-drawer-close-button",content:"p-drawer-content",footer:"p-drawer-footer"},rt=(()=>{class t extends Fe{name="drawer";style=Dt;classes=Lt;static \u0275fac=(()=>{let e;return function(o){return(e||(e=K(t)))(o||t)}})();static \u0275prov=oe({token:t,factory:t.\u0275fac})}return t})();var at=new re("DRAWER_INSTANCE"),st=(()=>{class t extends Ze{componentName="Drawer";$pcDrawer=v(at,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=v(A,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}appendTo=S(void 0);motionOptions=S(void 0);computedMotionOptions=c(()=>P(P({},this.ptm("motion")),this.motionOptions()));blockScroll=!1;style;styleClass;ariaCloseLabel;autoZIndex=!0;baseZIndex=0;modal=!0;closeButtonProps={severity:"secondary",text:!0,rounded:!0};dismissible=!0;showCloseIcon=!0;closeOnEscape=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible??!1}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}position=S("left");fullScreen=S(!1);$enterAnimation=c(()=>this.fullScreen()?"p-drawer-enter-full":`p-drawer-enter-${this.position()}`);$leaveAnimation=c(()=>this.fullScreen()?"p-drawer-leave-full":`p-drawer-leave-${this.position()}`);header;maskStyle;closable=!0;onShow=new z;onHide=new z;visibleChange=new z;containerViewChild;closeButtonViewChild;initialized;_visible;_position="left";_fullScreen=!1;modalVisible=!1;container;mask;maskClickListener;documentEscapeListener;animationEndListener;_componentStyle=v(rt);onAfterViewInit(){this.initialized=!0}headerTemplate;footerTemplate;contentTemplate;closeIconTemplate;headlessTemplate;$appendTo=c(()=>this.appendTo()||this.config.overlayAppendTo());_headerTemplate;_footerTemplate;_contentTemplate;_closeIconTemplate;_headlessTemplate;templates;
274onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break;case"headless":this._headlessTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}onKeyDown(e){e.code==="Escape"&&this.hide(!1)}show(){this.container?.setAttribute(this.$attrSelector,""),this.autoZIndex&&B.set("modal",this.container,this.baseZIndex||this.config.zIndex.modal),this.modal&&this.enableModality(),this.onShow.emit({}),this.visibleChange.emit(!0)}hide(e=!0){e&&this.onHide.emit({}),this.modal&&this.disableModality()}close(e){this.hide(),this.visibleChange.emit(!1),e.preventDefault()}enableModality(){let e=this.document.querySelectorAll('[data-p-open="true"]'),n=e.length,o=n==1?String(parseInt(this.container.style.zIndex)-1):String(parseInt(e[n-1].style.zIndex)-1);if(!this.mask){if(this.mask=this.renderer.createElement("div"),this.mask){let a=`z-index: ${o};${this.getMaskStyle()}`;ee(this.mask,"style",a),ee(this.mask,"data-p",this.dataP),X(this.mask,this.cx("mask"))}this.dismissible&&(this.maskClickListener=this.renderer.listen(this.mask,"click",a=>{this.dismissible&&this.close(a)})),this.renderer.appendChild(this.document.body,this.mask),this.blockScroll&&Ue()}}getMaskStyle(){return this.maskStyle?Object.entries(this.maskStyle).map(([e,n])=>`${e}: ${n}`).join("; "):""}disableModality(){this.mask&&(!this.$unstyled()&&ze(this.mask,"p-overlay-mask-enter-active"),!this.$unstyled()&&X(this.mask,"p-overlay-mask-leave-active"),this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyModal.bind(this)))}destroyModal(){this.unbindMaskClickListener(),this.mask&&this.renderer.removeChild(this.document.body,this.mask),this.blockScroll&&We(),this.unbindAnimationEndListener(),this.mask=null}onBeforeEnter(e){this.container=e.element,this.appendContainer(),this.show(),this.closeOnEscape&&this.bindDocumentEscapeListener()}onAfterLeave(){this.hide(!1),B.clear(this.container),this.unbindGlobalListeners(),this.modalVisible=!1,this.container=null}appendContainer(){this.$appendTo()&&this.$appendTo()!=="self"&&(this.$appendTo()==="body"?Y(this.document.body,this.container):Y(this.$appendTo(),this.container))}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{n.which==27&&parseInt(this.container?.style.zIndex)===B.get(this.container)&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindGlobalListeners(){this.unbindMaskClickListener(),this.unbindDocumentEscapeListener()}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}onDestroy(){this.initialized=!1,this.visible&&this.modal&&this.destroyModal(),this.$appendTo()&&this.container&&this.renderer.appendChild(this.el.nativeElement,this.container),this.container&&this.autoZIndex&&B.clear(this.container),this.container=null,this.unbindGlobalListeners(),this.unbindAnimationEndListener()}get dataP(){return this.cn({"full-screen":this.position()==="full",[this.position()]:this.position(),open:this.visible,modal:this.modal})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=K(t)))(o||t)}})();static \u0275cmp=y({type:t,selectors:[["p-drawer"]],contentQueries:function(n,o,a){if(n&1&&ve(a,dt,4)(a,ct,4)(a,mt,4)(a,ut,4)(a,ft,4)(a,Ve,4),n&2){let u;M(u=T())&&(o.headerTemplate=u.first),M(u=T())&&(o.footerTemplate=u.first),M(u=T())&&(o.contentTemplate=u.first),M(u=T())&&(o.closeIconTemplate=u.first),M(u=T())&&(o.headlessTemplate=u.first),M(u=T())&&(o.templates=u)}},viewQuery:function(n,o){if(n&1&&Ce(bt,5)(ht,5),n&2){let a;M(a=T())&&(o.containerViewChild=a.first),M(a=T())&&(o.closeButtonViewChild=a.first)}},inputs:{appendTo:[1,"appendTo"],motionOptions:[1,"motionOptions"],blockScroll:[2,"blockScroll","blockScroll",O],style:"style",styleClass:"styleClass",ariaCloseLabel:"ariaCloseLabel",autoZIndex:[2,"autoZIndex","autoZIndex",O],baseZIndex:[2,"baseZIndex","baseZIndex",Ie],modal:[2,"modal","modal",O],closeButtonProps:"closeButtonProps",dismissible:[2,"dismissible","dismissible",O],showCloseIcon:[2,"showCloseIcon","showCloseIcon",O],
274closeOnEscape:[2,"closeOnEscape","closeOnEscape",O],transitionOptions:"transitionOptions",visible:"visible",position:[1,"position"],fullScreen:[1,"fullScreen"],header:"header",maskStyle:"maskStyle",closable:[2,"closable","closable",O]},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange"},features:[R([rt,{provide:at,useExisting:t},{provide:Qe,useExisting:t}]),pe([A]),de],ngContentSelectors:gt,decls:1,vars:1,consts:[["container",""],["icon",""],["role","complementary","pFocusTrap","",3,"pBind","pMotion","pMotionAppear","pMotionEnterActiveClass","pMotionLeaveActiveClass","pMotionOptions","class","style"],["role","complementary","pFocusTrap","",3,"pMotionOnBeforeEnter","pMotionOnAfterLeave","keydown","pBind","pMotion","pMotionAppear","pMotionEnterActiveClass","pMotionLeaveActiveClass","pMotionOptions"],[4,"ngTemplateOutlet"],[3,"pBind","ngClass"],[3,"pBind","class",4,"ngIf"],[3,"pt","ngClass","buttonProps","ariaLabel","unstyled","onClick","keydown.enter",4,"ngIf"],[4,"ngIf"],[3,"pBind"],[3,"onClick","keydown.enter","pt","ngClass","buttonProps","ariaLabel","unstyled"],["data-p-icon","times",4,"ngIf"],["data-p-icon","times"]],template:function(n,o){n&1&&(ge(),g(0,Pt,4,13,"div",2)),n&2&&_(o.modalVisible?0:-1)},dependencies:[Le,Ee,Pe,De,E,He,je,A,Xe,Je,Ke,Ge],encapsulation:2,changeDetection:0})}return t})();var lt=[{label:"Inicio",icon:"pi pi-home",routerLink:"/",exact:!0,permission:null},{label:"Empresas",icon:"pi pi-building",permission:"instituciones.ver",items:[{label:"Empresas",icon:"pi pi-building",routerLink:"/instituciones",permission:"instituciones.ver"}]},{label:"Usuarios Empresa",icon:"pi pi-id-card",routerLink:"/usuarios-institucion",permission:"usuarios_institucion.ver",subjectType:"usuario"},{label:"Estudios",icon:"pi pi-file",routerLink:"/derivantes",permission:"derivantes.ver",subjectType:"usuario_institucion"},{label:"Turnos",icon:"pi pi-calendar-plus",routerLink:"/turnos",permission:"turnos.ver",subjectType:"usuario_institucion"},{label:"Mi Empresa",icon:"pi pi-building",permission:null,subjectType:"usuario_institucion",items:[{label:"Empresa",icon:"pi pi-building",routerLink:"/mi-institucion",exact:!0,permission:"instituciones.ver_propia"},{label:"Equipo",icon:"pi pi-users",routerLink:"/mi-institucion/usuarios",permission:"usuarios_institucion.ver"}]},{label:"Estudios",icon:"pi pi-file",routerLink:"/derivantes/admin/estudios",permission:"derivantes.admin",subjectType:"usuario"},{label:"Turnos",icon:"pi pi-calendar-plus",routerLink:"/turnos/admin",permission:"turnos.admin",subjectType:"usuario"},{label:"Administraci\xF3n",icon:"pi pi-cog",permission:null,items:[{label:"Administradores",icon:"pi pi-users",routerLink:"/usuarios",permission:"usuarios.ver"},{label:"Roles",icon:"pi pi-shield",routerLink:"/roles",permission:"roles.ver"}]},{label:"Perfil",icon:"pi pi-user",routerLink:"/perfil",permission:"perfil.ver"}];var W=class t{env=te.name;version=te.version;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-env-badge"]],decls:2,vars:2,consts:[[1,"env-label"]],template:function(e,n){e&1&&(ue(0,"span",0),C(1),fe()),e&2&&(r(),we("",n.env.toUpperCase()," \xB7 v",n.version))},styles:[".env-label[_ngcontent-%COMP%]{font-family:var(--gamma-font-family);font-size:.65rem;font-weight:500;color:var(--gamma-gray-400);letter-spacing:.02em}"]})};var At=t=>({exact:t}),Bt=(t,i)=>i.routerLink;function zt(t,i){if(t&1){let e=k();s(0,"p-button",10),m("onClick",function(){f(e);let o=d();return b(o.toggleCollapse.emit())}),l()}t&2&&p("text",!0)("rounded",!0)}function Vt(t,i){t&1&&w(0,"img",3)}function jt(t,i){if(t&1&&(s(0,"span"),C(1),l()),t&2){let e=d().$implicit;r(),I(e.label)}}function Ft(t,i){if(t&1){let e=k();s(0,"a",11),m("click",function(){f(e);let o=d();return b(o.closeSidebar.emit())}),w(1,"i"),g(2,jt,2,1,"span"),l()}if(t&2){let e=i.$implicit,n=d();p("routerLink",e.routerLink)("routerLinkActiveOptions",Se(6,At,e.exact)),h("title",n.collapsed()?e.label:null),r(),L(e.icon+" sidebar-link-icon"),r(),_(n.collapsed()?-1:2)}}function Rt(t,i){t&1&&(s(0,"span"),C(1,"Cerrar Sesi\xF3n"),l())}function $t(t,i){t&1&&(s(0,"div",9),w(1,"app-env-badge"),l())}var H=class t{authService=v(Q);router=v($);collapsed=S(!1);closeSidebar=N();toggleCollapse=N();navItems=c(()=>{let i=this.filterMenu(lt);return this.flattenMenu(i)});filterMenu(i){let e=this.authService.subjectType();return i.filter(n=>!(n.permission!==null&&!this.authService.hasPermission(n.permission)||n.subjectType&&n.subjectType!==e)).map(n=>{if(n.items){let o=this.filterMenu(n.items);return o.length===0?null:ie(P({},n),{items:o})}return n}).filter(n=>n!==null)}flattenMenu(i){let e=[];for(let n of i)if(n.routerLink&&e.push({label:n.label,icon:n.icon||"pi pi-circle",routerLink:n.routerLink,exact:n.exact??n.routerLink==="/"}),n.items)for(let o of n.items)o.routerLink&&e.push({label:o.label,icon:o.icon||n.icon||"pi pi-circle",routerLink:o.routerLink,exact:o.exact??!1});return e}logout(){this.authService.logout()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-sidebar"]],inputs:{collapsed:[1,"collapsed"]},outputs:{closeSidebar:"closeSidebar",toggleCollapse:"toggleCollapse"},decls:12,vars:6,consts:[[1,"sidebar-nav"],[1,"sidebar-header"],["icon","pi pi-bars","severity","secondary",3,"text","rounded"],["src","images/logo.png","alt","Grupo Gamma",1,"sidebar-logo-img"],[1,"sidebar-menu"],["routerLinkActive","sidebar-link-active",1,"sidebar-link",3,"routerLink","routerLinkActiveOptions"],[1,"sidebar-footer"],[1,"sidebar-logout",3,"click"],[1,"pi","pi-sign-out","sidebar-link-icon"],[1,"sidebar-footer__badge"],["icon","pi pi-bars","severity","secondary",3,"onClick","text","rounded"],["routerLinkActive","sidebar-link-active",1,"sidebar-link",3,"click","routerLink","routerLinkActiveOptions"]],template:function(e,n){e&1&&(s(0,"nav",0)(1,"div",1),g(2,zt,1,2,"p-button",2)(3,Vt,1,0,"img",3),l(),s(4,"div",4),ce(5,Ft,3,8,"a",5,Bt),l(),s(7,"div",6)(8,"button",7),m("click",function(){return n.logout()}
274),w(9,"i",8),g(10,Rt,2,0,"span"),l(),g(11,$t,2,0,"div",9),l()()),e&2&&(j("sidebar-nav--collapsed",n.collapsed()),r(2),_(n.collapsed()?2:3),r(3),me(n.navItems()),r(3),h("title",n.collapsed()?"Cerrar Sesi\xF3n":null),r(2),_(n.collapsed()?-1:10),r(),_(n.collapsed()?-1:11))},dependencies:[Ae,Be,W,Z,E],styles:["[_nghost-%COMP%]{display:block;height:100%}.sidebar-nav[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;background:#fafcfb;border-right:none;overflow:hidden}.sidebar-header[_ngcontent-%COMP%]{padding:1.5rem 1.5rem 2rem}.sidebar-logo-img[_ngcontent-%COMP%]{height:2rem;width:auto;object-fit:contain}.sidebar-menu[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:0 1rem;display:flex;flex-direction:column;gap:.125rem}.sidebar-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;border-radius:var(--gamma-radius-lg);font-size:.875rem;font-weight:600;color:var(--gamma-gray-500);text-decoration:none;transition:all .2s ease;cursor:pointer;border-right:4px solid transparent;white-space:nowrap}.sidebar-link[_ngcontent-%COMP%]:hover{color:var(--gamma-primary);background:#2d6a510a}.sidebar-link-active[_ngcontent-%COMP%]{color:var(--gamma-primary-dark)!important;background:#2b5c4314!important;font-weight:700}.sidebar-link-active[_ngcontent-%COMP%]   .sidebar-link-icon[_ngcontent-%COMP%]{color:var(--gamma-primary)}.sidebar-link-icon[_ngcontent-%COMP%]{font-size:1.125rem;width:1.25rem;text-align:center;color:var(--gamma-gray-400);transition:color .2s ease}.sidebar-link[_ngcontent-%COMP%]:hover   .sidebar-link-icon[_ngcontent-%COMP%]{color:var(--gamma-primary)}.sidebar-footer[_ngcontent-%COMP%]{padding:1rem;margin-top:auto}.sidebar-logout[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;width:100%;padding:.75rem 1rem;border-radius:var(--gamma-radius-lg);border:none;background:transparent;font-size:.875rem;font-weight:600;color:var(--gamma-gray-500);cursor:pointer;transition:all .2s ease;font-family:inherit;white-space:nowrap}.sidebar-logout[_ngcontent-%COMP%]:hover{background:#ef44440f;color:#ef4444}.sidebar-logout[_ngcontent-%COMP%]:hover   .sidebar-link-icon[_ngcontent-%COMP%]{color:#ef4444}.sidebar-footer__badge[_ngcontent-%COMP%]{padding:.5rem 1rem 0}.sidebar-nav--collapsed[_ngcontent-%COMP%]   .sidebar-header[_ngcontent-%COMP%]{padding:.75rem .5rem;display:flex;justify-content:center;align-items:center}.sidebar-nav--collapsed[_ngcontent-%COMP%]   .sidebar-menu[_ngcontent-%COMP%]{padding:0 .5rem}.sidebar-nav--collapsed[_ngcontent-%COMP%]   .sidebar-link[_ngcontent-%COMP%]{justify-content:center;padding:.75rem 0;gap:0;border-right:none}.sidebar-nav--collapsed[_ngcontent-%COMP%]   .sidebar-link-active[_ngcontent-%COMP%]{border-right-color:transparent}.sidebar-nav--collapsed[_ngcontent-%COMP%]   .sidebar-footer[_ngcontent-%COMP%]{padding:1rem .5rem}.sidebar-nav--collapsed[_ngcontent-%COMP%]   .sidebar-logout[_ngcontent-%COMP%]{justify-content:center;padding:.75rem 0;gap:0}"]})};function qt(t,i){if(t&1){let e=k();s(0,"p-button",10),m("onClick",function(){f(e);let o=d();return b(o.toggleSidebar.emit())}),l()}t&2&&p("text",!0)("rounded",!0)}function Qt(t,i){if(t&1){let e=k();s(0,"div",3)(1,"p-select",11),m("ngModelChange",function(o){f(e);let a=d();return b(a.onInstitucionChange(o))}),l()()}if(t&2){let e=d();r(),p("options",e.institucionOptions())("ngModel",e.activeInstitucionId())("filter",e.institucionOptions().length>6)}}function Zt(t,i){if(t&1&&(s(0,"span",8),C(1),l()),t&2){let e=d();r(),I(e.userRole())}}var G=class t{authService=v(Q);router=v($);messageService=v(q);sidebarCollapsed=S(!1);toggleSidebar=N();institucionesRequested=!1;constructor(){se(()=>{this.authService.subjectType()==="usuario_institucion"&&!this.institucionesRequested&&(this.institucionesRequested=!0,this.authService.loadMisInstituciones().catch(()=>{}))})}activeInstitucionId=this.authService.activeInstitucionId;institucionOptions=c(()=>this.authService.misInstituciones().map(i=>({label:i.nombre,value:i.id})).sort(it));showInstitucionSelector=c(()=>this.authService.subjectType()==="usuario_institucion"&&this.authService.misInstituciones().length>1);async onInstitucionChange(i){if(!(i==null||i===this.authService.activeInstitucionId()))try{await this.authService.switchInstitucion(i),await this.refreshActiveView()}catch{this.messageService.add({severity:"error",summary:"No se pudo cambiar de empresa",detail
274:"Intent\xE1 nuevamente en unos instantes.",life:5e3})}}async refreshActiveView(){let i=this.router.url;i!=="/"&&(await this.router.navigateByUrl("/",{skipLocationChange:!0}),await this.router.navigateByUrl(i,{skipLocationChange:!0}))}userName=c(()=>{let i=this.authService.currentUser();return i?[i.nombre,i.apellido].filter(Boolean).join(" "):""});userRole=c(()=>this.authService.currentUser()?.roles?.map(e=>e.nombre).join(", ")??"");userInitials=c(()=>{let i=this.authService.currentUser();if(!i)return"";let e=(i.nombre||"")[0]||"",n=(i.apellido||"")[0]||"";return(e+n).toUpperCase()});canVerPerfil=c(()=>this.authService.hasPermission("perfil.ver"));goToPerfil(){this.router.navigate(["/perfil"])}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-topbar"]],inputs:{sidebarCollapsed:[1,"sidebarCollapsed"]},outputs:{toggleSidebar:"toggleSidebar"},decls:12,vars:9,consts:[[1,"topbar"],[1,"topbar-left"],["icon","pi pi-bars","severity","secondary","styleClass","topbar-hamburger",3,"text","rounded"],["title","Empresa activa",1,"topbar-institucion"],[1,"topbar-right"],["type","button",1,"topbar-user",3,"click","disabled"],[1,"topbar-user-info"],[1,"topbar-user-name"],[1,"topbar-user-role"],[1,"topbar-avatar"],["icon","pi pi-bars","severity","secondary","styleClass","topbar-hamburger",3,"onClick","text","rounded"],["optionLabel","label","optionValue","value","filterBy","label","appendTo","body","styleClass","topbar-institucion-select",3,"ngModelChange","options","ngModel","filter"]],template:function(e,n){e&1&&(s(0,"header",0)(1,"div",1),g(2,qt,1,2,"p-button",2),g(3,Qt,2,3,"div",3),l(),s(4,"div",4)(5,"button",5),m("click",function(){return n.goToPerfil()}),s(6,"div",6)(7,"span",7),C(8),l(),g(9,Zt,2,1,"span",8),l(),s(10,"div",9),C(11),l()()()()),e&2&&(r(2),_(n.sidebarCollapsed()?-1:2),r(),_(n.showInstitucionSelector()?3:-1),r(2),j("topbar-user--link",n.canVerPerfil()),p("disabled",!n.canVerPerfil()),h("title",n.canVerPerfil()?"Mi perfil":null),r(3),I(n.userName()),r(),_(n.userRole()?9:-1),r(2),ye(" ",n.userInitials()," "))},dependencies:[Z,E,nt,tt,qe,Re,$e],styles:["[_nghost-%COMP%]{display:block}.topbar[_ngcontent-%COMP%]{height:4rem;background:#fffc;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:none;box-shadow:0 1px 3px #0000000a;display:flex;align-items:center;justify-content:space-between;padding:0 2rem;position:sticky;top:0;z-index:50}.topbar-left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}.topbar-institucion[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]     .topbar-institucion-select{min-width:11rem;max-width:18rem}[_nghost-%COMP%]     .topbar-institucion-select.p-select{background:transparent;border-color:transparent;box-shadow:none;transition:background .15s ease;display:inline-flex;align-items:center}[_nghost-%COMP%]     .topbar-institucion-select.p-select:hover{background:var(--gamma-gray-100)}[_nghost-%COMP%]     .topbar-institucion-select .p-select-label{display:flex;align-items:center;line-height:1;font-size:.8125rem;font-weight:600;color:var(--gamma-gray-500);padding-right:.5rem}[_nghost-%COMP%]     .topbar-institucion-select .p-select-dropdown{color:var(--gamma-gray-400);width:1.5rem}@media(max-width:1023px){[_nghost-%COMP%]     .topbar-institucion-select{min-width:9rem;max-width:12rem}}.topbar-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem}.topbar-user[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;background:none;border:none;margin:0;padding:.25rem .375rem;border-radius:var(--gamma-radius-md);font:inherit;color:inherit;text-align:inherit}.topbar-user--link[_ngcontent-%COMP%]{cursor:pointer;transition:background .15s ease}.topbar-user--link[_ngcontent-%COMP%]:hover{background:var(--gamma-gray-100)}.topbar-user[_ngcontent-%COMP%]:disabled{cursor:default;opacity:1}.topbar-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}.topbar-user-name[_ngcontent-%COMP%]{font-size:.8125rem;font-weight:600;color:var(--gamma-gray-900);line-height:1.2}.topbar-user-role[_ngcontent-%COMP%]{font-size:.625rem;color:var(--gamma-gray-400);text-transform:uppercase;letter-spacing:.05em}
274.topbar-avatar[_ngcontent-%COMP%]{width:2.5rem;height:2.5rem;border-radius:50%;background:linear-gradient(135deg,var(--gamma-primary),var(--gamma-secondary));color:#fff;font-weight:700;font-size:.75rem;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 3px #2d6a511a}@media(max-width:1023px){.topbar-user-info[_ngcontent-%COMP%]{display:none}.topbar[_ngcontent-%COMP%]{padding:0 1rem}}"]})};var Ut=()=>({width:"280px"}),pt=class t{sidebarOpen=V(!1);sidebarCollapsed=V(!1);isDesktop=V(this.computeIsDesktop());sidebarWidth=c(()=>this.sidebarCollapsed()?"64px":"260px");contentOffset=c(()=>this.isDesktop()?this.sidebarWidth():"0");computeIsDesktop(){return typeof window<"u"&&window.innerWidth>=1024}onResize(){let i=this.isDesktop(),e=this.computeIsDesktop();i!==e&&(this.isDesktop.set(e),!i&&e&&this.sidebarOpen.set(!1))}toggleSidebar(){this.isDesktop()?this.sidebarCollapsed.update(i=>!i):this.sidebarOpen.update(i=>!i)}closeSidebar(){this.isDesktop()||this.sidebarOpen.set(!1)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-layout"]],hostBindings:function(e,n){e&1&&m("resize",function(){return n.onResize()},le)},features:[R([q])],decls:9,vars:15,consts:[[1,"layout-sidebar-desktop"],[3,"closeSidebar","toggleCollapse","collapsed"],["position","left","styleClass","layout-drawer",3,"visibleChange","visible","modal","showCloseIcon"],[3,"closeSidebar","collapsed"],[1,"layout-main"],[3,"toggleSidebar","sidebarCollapsed"],[1,"layout-content"]],template:function(e,n){e&1&&(w(0,"p-toast"),s(1,"aside",0)(2,"app-sidebar",1),m("closeSidebar",function(){return n.closeSidebar()})("toggleCollapse",function(){return n.toggleSidebar()}),l()(),s(3,"p-drawer",2),Me("visibleChange",function(a){return ke(n.sidebarOpen,a)||(n.sidebarOpen=a),a}),s(4,"app-sidebar",3),m("closeSidebar",function(){return n.closeSidebar()}),l()(),s(5,"div",4)(6,"app-topbar",5),m("toggleSidebar",function(){return n.toggleSidebar()}),l(),s(7,"main",6),w(8,"router-outlet"),l()()),e&2&&(r(),J("width",n.sidebarWidth()),r(),p("collapsed",n.sidebarCollapsed()),r(),F(Te(14,Ut)),xe("visible",n.sidebarOpen),p("modal",!0)("showCloseIcon",!1),r(),p("collapsed",!1),r(),J("margin-left",n.contentOffset())("--layout-content-left",n.contentOffset()),r(),p("sidebarCollapsed",n.sidebarCollapsed()))},dependencies:[Ne,H,G,st,et,Ye],styles:["[_nghost-%COMP%]{display:flex;height:100vh;background-color:var(--gamma-gray-50)}.layout-sidebar-desktop[_ngcontent-%COMP%]{display:none;flex-shrink:0;height:100vh;position:fixed;left:0;top:0;z-index:100;overflow:hidden;transition:width .25s ease}@media(min-width:1024px){.layout-sidebar-desktop[_ngcontent-%COMP%]{display:block}}.layout-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:100vh;overflow:hidden;transition:margin-left .25s ease}.layout-content[_ngcontent-%COMP%]{flex:1;overflow-y:auto;--layout-content-padding-x: 2.5rem;padding:2rem var(--layout-content-padding-x) 3rem}@media(max-width:1023px){.layout-content[_ngcontent-%COMP%]{--layout-content-padding-x: 1.25rem;padding:1.25rem}}"]})};export{pt as LayoutComponent};

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.