1import{a as z}from"./chunk-2VB2Y33F.js";import{$ as E,Aa as H,Ba as y,D as b,F as I,J as u,Ja as P,K as w,Lb as A,Pb as x,Qb as i,Sb as e,Tb as h,Ua as T,Ub as r,V as O,Ya as V,aa as c,ba as v,fc as F,ja as C,la as l,ma as D,mb as X,na as k,ob as Y,ra as d,sa as p,ta as S,ua as B,va as M,xa as _,ya as f,yb as j,za as m}from"./chunk-IWGG67GH.js";function K(o,s){if(o&1){let a=_();d(0,"div",7),f("click",function(){u(a);let n=m(2);return w(n.emitClose())}),S(1,"app-icon",8),p()}if(o&2){let a=m(2);l("ngClass",a.closeBtnClasses[a.position]),c(),l("name","x")}}var L=(o,s,a)=>({"!z-10":o,"!z-20":s,"!bg-white/50":a});function q(o,s){if(o&1){let a=_();B(0),d(1,"div",1),f("click",function(){u(a);let n=m();return w(n.emitClose())}),p(),d(2,"div",2),C(3,K,2,2,"div",3),d(4,"div",4,5),y(6),p(),d(7,"div",6),y(8,1),p()(),M()}if(o&2){let a=P(5),t=m();c(),l("@fadeInAnimation",void 0)("ngClass",V(11,L,t.level==0,t.level>0,t.level)),c(),D("width",t.position==="left"||t.position==="right"?t.width:null)("height",t.position==="top"||t.position==="bottom"?t.width:null),l("@slideInAnimation",t.position)("ngClass",t.drawerClasses[t.position]),c(),l("ngIf",t.showCloseBtn),c(),k("hidden",a.children.length===0)}}var G=[[["","title",""]],"*"],J=["[title]","*"],at=(()=>{let s=class s{constructor(t,n){this.titleService=t,this.service=n,this.show=!1,this.width="50%",this.level=0,this.closeOnEscape=!0,this.showCloseBtn=!0,this.position="right",this.close=new b,this.drawerClasses={top:"drawer-y top-0 rounded-b-lg",bottom:"drawer-y bottom-0 rounded-t-lg",right:"drawer-x right-0 rounded-l-lg !py-0",left:"drawer-x left-0 rounded-r-lg !py-0"},this.closeBtnClasses={top:"bottom-4 right-0 -translate-x-1/2 translate-y-1/20",bottom:"top-6 right-0 -translate-x-1/2 translate-y-1/20",right:"-left-16 top-10 -translate-y-1/2",left:"-right-16 top-10 -translate-y-1/2"}}ngOnChanges(t){this.closeOnEscape&&(this.show?this.service.add(this):this.service.remove(this))}ngOnDestroy(){this.service.remove(this)}emitClose(){this.close.emit()}onKeydownHandler(t){this.closeOnEscape&&this.service.pop(this)&&this.emitClose()}};s.\u0275fac=function(n){return new(n||s)(v(A),v(z))},s.\u0275cmp=I({type:s,selectors:[["app-drawer"]],hostBindings:function(n,g){n&1&&f("keydown.escape",function(N){return g.onKeydownHandler(N)},!1,E)},inputs:{show:"show",width:"width",level:"level",closeOnEscape:"closeOnEscape",showCloseBtn:"showCloseBtn",position:"position"},outputs:{close:"close"},standalone:!0,features:[O,T],ngContentSelectors:J,decls:1,vars:1,consts:[[4,"ngIf"],[1,"overlay",3,"ngClass","click"],[1,"fixed","z-[60]","bg-gray-100","drop-shadow-2xl","flex","flex-col","h-full","py-4",3,"ngClass"],["class","close-btn",3,"ngClass","click",4,"ngIf"],[1,"w-full","flex","flex-row","rounded-t-lg","px-5","py-3","border-b","border-b-gray-200","bg-gray-50","text-lg","font-semibold"],["titleContent",""],[1,"flex-1","w-full","h-full","overflow-auto"],[1,"close-btn",3,"ngClass","click"],[3,"name"]],template:function(n,g){n&1&&(H(G),C(0,q,9,15,"ng-container",0)),n&2&&l("ngIf",g.show)},dependencies:[j,X,Y,F],styles:[".drawer-y[_ngcontent-%COMP%]{min-height:8rem;width:100%}.drawer-x[_ngcontent-%COMP%]{top:0;height:100%;min-width:8rem}.close-btn[_ngcontent-%COMP%]{position:absolute;cursor:pointer;border-radius:.5rem;border-width:1px;border-color:transparent;background-color:rgb(156 163 175 / var(--tw-bg-opacity));--tw-bg-opacity: .8;padding:.5rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.close-btn[_ngcontent-%COMP%]:hover{--tw-bg-opacity: .6 }"],data:{animation:[x("fadeInAnimation",[r(":enter",[e({opacity:0}
1),i("300ms ease-out",e({opacity:1}))]),r(":leave",[i("300ms ease-out",e({opacity:0}))])]),x("slideInAnimation",[h("right",e({transform:"translateX(0%)"})),h("left",e({transform:"translateX(0%)"})),h("top",e({transform:"translateY(0%)"})),h("bottom",e({transform:"translateY(0%)"})),r("void => right",[e({transform:"translateX(100%)"}),i("300ms ease-out")]),r("right => void",[i("300ms ease-out",e({transform:"translateX(100%)"}))]),r("void => left",[e({transform:"translateX(-100%)"}),i("300ms ease-out")]),r("left => void",[i("300ms ease-out",e({transform:"translateX(-100%)"}))]),r("void => top",[e({transform:"translateY(-100%)"}),i("300ms ease-out")]),r("top => void",[i("300ms ease-out",e({transform:"translateY(-100%)"}))]),r("void => bottom",[e({transform:"translateY(100%)"}),i("300ms ease-out")]),r("bottom => void",[i("300ms ease-out",e({transform:"translateY(100%)"}))])])]}});let o=s;return o})();export{at as a};
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.