import{a as b}from"./chunk-LDWSFHA3.js";import{ba as O,ca as y}from"./chunk-JTDXTMDS.js";import{ia as w,ya as C}from"./chunk-QSMHDGIB.js";import{Ab as c,Ea as s,Fb as l,Nc as i,Pc as x,Tb as p,cc as m,dc as u,gd as _,hc as h,mb as a,oc as v,qc as g,rb as d,rc as f}from"./chunk-QMYHTLAJ.js";var P=["*"],D=()=>({duration:0}),T=(e,r)=>({show:e,hide:r}),F=()=>({class:"dx-custom-popover"});function M(e,r){e&1&&h(0)}var q=(()=>{class e{get target(){return typeof this.for=="string"||typeof this.for=="number"?`#${this.for}`:this.for}get position(){return b(this.alignment)}constructor(n){this._cdr=n,this.alignment="left bottom",this.isOpen=!1,this.closed=new s}toggle(){this.isOpen=!this.isOpen,this._cdr.detectChanges()}close(){this.isOpen=!1,this._cdr.detectChanges(),this.closed.emit()}static{this.\u0275fac=function(o){return new(o||e)(d(_))}}static{this.\u0275cmp=c({type:e,selectors:[["tis-popover"]],inputs:{for:"for",template:"template",alignment:"alignment",minWidth:"minWidth",isOpen:"isOpen"},outputs:{closed:"closed"},ngContentSelectors:P,decls:3,vars:14,consts:[[3,"onHiding","target","visible","position","minWidth","hideOnOutsideClick","animation","wrapperAttr"],[4,"ngTemplateOutlet"]],template:function(o,t){o&1&&(g(),m(0,"dx-popover",0),v("onHiding",function(){return t.close()}),l(1,M,1,0,"ng-container",1),f(2),u()),o&2&&(p("target",t.target)("visible",t.isOpen)("position",t.position)("minWidth",t.minWidth)("hideOnOutsideClick",!0)("animation",x(10,T,i(8,D),i(9,D)))("wrapperAttr",i(13,F)),a(),p("ngTemplateOutlet",t.template))},dependencies:[C,w,y,O],styles:[`.dx-custom-popover{color:inherit}.dx-custom-popover .dx-popup-content{padding:var(--space-vertical-snudge) var(--space-horizontal-snudge)}.dx-custom-popover .dx-popover-arrow{display:none}.dx-custom-popover .dx-overlay-content.dx-popup-normal.dx-resizable.dx-popup-fullscreen-width.dx-popup-inherit-height,.dx-custom-popover .dx-overlay-content.dx-popup-normal.dx-resizable.dx-popup-inherit-height{width:fit-content;max-width:400px;color:inherit;background:var(--popover-bg);border:none;border-radius:var(--radius-medium);box-shadow:var(--shadow-16)}.dx-custom-popover .dx-popup-content.dx-popup-content-scrollable[role=tooltip]{padding:var(--space-vertical-snudge) var(--space-horizontal-snudge)}.dx-custom-popover .dx-overlay-wrapper.dx-popup-wrapper.dx-popover-wrapper.dx-popover-without-title{font:inherit;color:inherit}
`],encapsulation:2,changeDetection:0})}}return e})();export{q as a};
