1import{a as B}from"./chunk-KW7DBSQZ.js";import{$ as T}from"./chunk-GDICY5PE.js";import{$b as k,Ac as M,Bc as h,Ea as b,Fb as O,Kc as x,Mc as P,Na as y,Yc as D,Zb as _,ad as F,ec as a,fc as d,gc as l,hd as S,ka as r,nb as c,qc as w,sa as g,ta as m,xa as f,xc as u,ya as v,zc as p}from"./chunk-UHCKRBMZ.js";var z=[[["","header",""]],[["","body",""]]],N=["[header]","[body]"],H=t=>({background:t}),L=(t,n,e,s,o,i,C,E)=>({width:t,padding:n,left:e,right:s,top:o,"box-shadow":i,border:C,background:E});function I(t,n){if(t&1){let e=w();d(0,"div",4),u("click",function(){g(e);let o=p();return m(o.onBodyClick())}),d(1,"div"),h(2,1),l()()}if(t&2){let e=p();P(D("bodyPopover ",e.bodyClass)),a("ngStyle",S(4,L,e.width,e.padding,e.left,e.right,e.top,e.boxShadow,e.border,e.background))}}var J=(()=>{let n=class n{constructor(){this.allowContentDrop=!1,this.allowBackdropClose=!0,this.bodyClass="pop-over-body",this.isToggleHeaderClick=!0,this.isOpenHeaderClick=!1,this.isFlyoutMenu=b(!1),this.document=r(f),this.elementRef=r(y),this.eventService=r(B),this.destroyRef=r(v),this.destroyRef.onDestroy(()=>{this.unbindOutsideClose()})}ngOnInit(){}toggleFlyoutMenu(){this.isToggleHeaderClick?this.isDisabled||this.isFlyoutMenu.update(s=>!s):this.isOpenHeaderClick&&this.isFlyoutMenu.set(!0),this.syncOutsideCloseListener(),this.callPopOverEvent()}close(){this.isFlyoutMenu.set(!1),this.unbindOutsideClose()}open(){this.isFlyoutMenu.set(!0),this.bindOutsideClose(),this.callPopOverEvent()}onBodyClick(){this.allowContentDrop&&this.close()}callPopOverEvent(){this.componentName&&this.isFlyoutMenu()&&setTimeout(()=>{this.eventService.showPopoverEvent.emit({componentName:this.componentName})},500)}syncOutsideCloseListener(){this.isFlyoutMenu()?this.bindOutsideClose():this.unbindOutsideClose()}bindOutsideClose(){this.unbindOutsideClose(),this.allowBackdropClose&&(this.outsideCloseTimerId=setTimeout(()=>{let s=o=>{let i=o.target;i instanceof Node&&(this.elementRef.nativeElement.contains(i)||this.close())};this.document.addEventListener("pointerdown",s,!0),this.removeOutsideCloseListener=()=>{this.document.removeEventListener("pointerdown",s,!0)}},0))}unbindOutsideClose(){this.outsideCloseTimerId!==void 0&&(clearTimeout(this.outsideCloseTimerId),this.outsideCloseTimerId=void 0),this.removeOutsideCloseListener?.(),this.removeOutsideCloseListener=void 0}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=O({type:n,selectors:[["app-b2b-popover-v1"]],inputs:{allowContentDrop:"allowContentDrop",allowBackdropClose:"allowBackdropClose",bodyClass:"bodyClass",componentName:"componentName",isDisabled:"isDisabled",isToggleHeaderClick:"isToggleHeaderClick",isOpenHeaderClick:"isOpenHeaderClick",padding:"padding",width:"width",left:"left",right:"right",top:"top",background:"background",border:"border",boxShadow:"boxShadow"},ngContentSelectors:N,decls:5,vars:8,consts:[[1,"popOverBox"],[1,"headerBox",3,"ngStyle"],["tabindex","0",1,"w-full",3,"click"],[3,"class","ngStyle"],[3,"click","ngStyle"]],template:function(o,i){o&1&&(M(z),d(0,"div",0)(1,"div",1)(2,"div",2),u("click",function(){return i.toggleFlyoutMenu()}),h(3),l()(),_(4,I,3,13,"div",3),l()),o&2&&(x("z-9999",i.isFlyoutMenu())("z-10",!i.isFlyoutMenu()),c(),a("ngStyle",F(6,H,i.background)),c(3),k(i.isFlyoutMenu()?4:-1))},dependencies:[T],styles:['@charset "UTF-8";.popOverBox[_ngcontent-%COMP%]{position:relative;border-radius:4px}.popOverBox[_ngcontent-%COMP%] .headerBox[_ngcontent-%COMP%]{background:var(--ion-color-primary)}.popOverBox[_ngcontent-%COMP%] .headerBox[_ngcontent-%COMP%] .w-full[_ngcontent-%COMP%]{width:100%}.z-10[_ngcontent-%COMP%]{z-index:10}.z-9999[_ngcontent-%COMP%]{z-index:9999}.z-99[_ngcontent-%COMP%]{z-index:99}.bodyPopover[_ngcontent-%COMP%]{position:absolute;top:27px;left:0;right:0;z-index:99;background:#fff;cursor:pointer;box-shadow:#0000003d 0 3px 8px;border:1px solid #ddd;border-radius:4px}'],changeDetection:0});let t=n;return t})();export{J 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.