import{a as T,b as M}from"./chunk-BQPO535K.js";import{a as C,b as g,c as u}from"./chunk-U5Y75IZ5.js";import{Ib as t,Jb as l,Kb as c,Lb as f,Sa as m,Xb as d,Za as s,eb as i,ib as p}from"./chunk-GJDGQISV.js";var _=class a{constructor(e,o){this.data=e;this.dialogRef=o;this.message=e.message,this.modalConfig=new g,this.modalConfig.title=e.title,this.modalConfig.okText=e.okText?e.okText:"Yes",this.modalConfig.cancelText=e.cancelText?e.cancelText:"No",this.modalConfig.headerType=e.headerType?e.headerType:C.Success}modalConfig;message;headerType;onOk(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}static \u0275fac=function(o){return new(o||a)(i(M),i(T))};static \u0275cmp=p({type:a,selectors:[["app-modal-confirm"]],standalone:!1,decls:3,vars:2,consts:[[3,"onOk","onCancel","onClose","config"],[1,"fs-4","mb-0",3,"innerHTML"]],template:function(o,n){o&1&&(l(0,"modal-material",0),d("onOk",function(){return n.onOk()})("onCancel",function(){return n.onClose()})("onClose",function(){return n.onClose()}),l(1,"content"),f(2,"div",1),c()()),o&2&&(t("config",n.modalConfig),s(2),t("innerHTML",n.message,m))},dependencies:[u],encapsulation:2})};export{_ as a};
