import{a as O}from"./chunk-54VUHDZ6.js";import{a as A,b as v}from"./chunk-BQPO535K.js";import{a as y,b as N,c as h}from"./chunk-U5Y75IZ5.js";import{h as _,o as C}from"./chunk-MDIMQ3H3.js";import{a as u}from"./chunk-3DEA4WWC.js";import{Ib as s,Jb as l,Kb as c,Xb as p,Za as r,eb as a,ib as m,rc as f,sc as g,tc as M}from"./chunk-GJDGQISV.js";var T=class d{constructor(n,e){this.dialogRef=n;this.data=e;this.note=e,this.configModal=new N,this.configModal.headerType=y.Success,this.configModal.title="Note Invoice",this.configModal.customWidth="600px"}note;configModal;isNotEmpty(n){return u.IsNotEmpty(n)}onOk(){this.dialogRef.close(this.note)}static \u0275fac=function(e){return new(e||d)(a(A),a(v))};static \u0275cmp=m({type:d,selectors:[["POS-modal-add-note"]],standalone:!1,decls:6,vars:2,consts:[[3,"onOk","onCancel","onClose","config"],[1,"container-fluid","px-0"],[1,"row"],[1,"col-sm-12"],[3,"ngModelChange","ngModel"]],template:function(e,o){e&1&&(l(0,"modal-material",0),p("onOk",function(){return o.onOk()})("onCancel",function(){return o.dialogRef.close()})("onClose",function(){return o.dialogRef.close()}),l(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"POS-tinymce-editor",4),M("ngModelChange",function(i){return g(o.note,i)||(o.note=i),i}),c()()()()()()),e&2&&(s("config",o.configModal),r(5),f("ngModel",o.note))},dependencies:[_,C,h,O],encapsulation:2})};export{T as a};
