import{a as N,b as B,c as A}from"./chunk-Y7NDNHP3.js";import{H as j,I as q,J as F}from"./chunk-4EQLHXW7.js";import{C as G,j as V,q as M}from"./chunk-Z5RJRCWC.js";import{Ac as p,Bc as I,Cc as Q,Eb as x,Gd as S,Ja as T,Jc as _,Ka as w,Kc as v,Lc as f,Ob as b,Pc as y,Sa as P,Sb as D,Tb as o,Xa as O,bd as L,ec as m,lc as u,qc as s,qd as R,ra as h,rc as c,vc as d,wc as E,zb as r,zc as k}from"./chunk-JSJB5BKT.js";import{e as C}from"./chunk-SZAW6ZBW.js";var g,z=C(()=>{g=class{}});function W(t,a){if(t&1){let e=E();s(0,"p-button",7),k("click",function(n){T(e);let l=p();return w(l.onClickToggleOverlay(n))}),c()}if(t&2){let e=p();m("ngClass",e.switchClass)("label",e.switchLabel)("icon",e.switchIcon)}}function X(t,a){t&1&&d(0)}function Y(t,a){if(t&1&&(s(0,"div",6,2),o(2,X,1,0,"ng-container",8),c()),t&2){p();let e=y(6);r(2),m("ngTemplateOutlet",e)}}function Z(t,a){t&1&&d(0)}function $(t,a){if(t&1&&(s(0,"div",6,3),o(2,Z,1,0,"ng-container",8),c()),t&2){p();let e=y(6);r(2),m("ngTemplateOutlet",e)}}function ee(t,a){t&1&&Q(0)}var H,J,K,U,ve,te=C(()=>{S();z();A();F();G();S();F();A();H=["inLine"],J=["inOverlay"],K=["op"],U=["*"];ve=(()=>{class t extends g{constructor(e){super(),this.el=e,this.switchLabel="Show",this.switchIcon="pi pi-bars",this.onClickToggle=new P}get isPanel(){return this._isPanel}set isPanel(e){e!=null&&(this._isPanel=e,this.op.hide())}ngAfterViewInit(){this.el.nativeElement.className="c-overlay-panel-toggle"}closePanel(){this.op.hide()}onClickToggleOverlay(e){e.preventDefault(),e.stopPropagation(),this.onClickToggle.emit(e),this.op.toggle(e)}static{this.\u0275fac=function(i){return new(i||t)(x(O))}}static{this.\u0275cmp=b({type:t,selectors:[["dvl-overlay-panel-toggle"]],viewQuery:function(i,n){if(i&1&&(_(H,5),_(J,5),_(K,7)),i&2){let l;v(l=f())&&(n.inLine=l.first),v(l=f())&&(n.inOverlay=l.first),v(l=f())&&(n.op=l.first)}},inputs:{switchLabel:"switchLabel",switchIcon:"switchIcon",switchClass:"switchClass",isPanel:"isPanel"},outputs:{onClickToggle:"onClickToggle"},features:[L([{provide:g,useExisting:h(()=>t)}]),D],ngContentSelectors:U,decls:7,vars:3,consts:[["op",""],["tp",""],["inOverlay",""],["inLine",""],[1,"c-overlay-panel-toggle__switch-button",3,"ngClass","label","icon"],["appendTo","body","styleClass","c-overlay-panel-toggle__panel"],[1,"c-overlay-panel-toggle__content-wrapper"],[1,"c-overlay-panel-toggle__switch-button",3,"click","ngClass","label","icon"],[4,"ngTemplateOutlet"]],template:function(i,n){i&1&&(I(),o(0,W,1,3,"p-button",4),s(1,"p-overlayPanel",5,0),o(3,Y,3,1,"div",6),c(),o(4,$,3,1,"div",6)(5,ee,1,0,"ng-template",null,1,R)),i&2&&(u(n.isPanel?0:-1),r(3),u(n.isPanel?3:-1),r(),u(n.isPanel?-1:4))},dependencies:[q,j,B,N,V,M],encapsulation:2})}}return t})()});export{ve as a,te as b};
