import{a as E}from"./chunk-4VRCKWUY.js";import{a as S,b as T}from"./chunk-BQPO535K.js";import{b as H,c as D}from"./chunk-U5Y75IZ5.js";import{Bb as C,Db as y,Eb as _,Gb as h,Hb as u,Ib as g,Jb as i,Kb as n,Kc as m,Lb as x,Mc as p,Xb as M,Za as l,Zb as v,eb as c,ib as f,mc as o,nc as d,oc as P,ra as s,vd as b}from"./chunk-GJDGQISV.js";function w(t,a){if(t&1&&(i(0,"tr")(1,"td",5),o(2),n(),i(3,"td",8),o(4),m(5,"date"),n(),i(6,"td",8),o(7),m(8,"date"),n()()),t&2){let e=a.$implicit;l(2),d(e.CreatorName),l(2),P(" ",p(5,3,e.PrintDate,"dd MMM yyyy")," "),l(3),d(p(8,6,e.PrintDate,"HH:mm:ss"))}}function R(t,a){if(t&1&&h(0,w,9,9,"tr",null,_),t&2){let e=v();u(e.data)}}function A(t,a){t&1&&(i(0,"tr")(1,"td",9),x(2,"app-empty-state",10),n()())}var I=class t{constructor(a){this.data=a;this.config.title="Reprint History",this.config.hideOk=!0,this.config.cancelText="Close"}config=new H;dialogRef=s(S);static \u0275fac=function(e){return new(e||t)(c(T))};static \u0275cmp=f({type:t,selectors:[["POS-modal-print-history"]],decls:16,vars:2,consts:[[3,"onCancel","onClose","config"],[1,"container-fluid"],[1,"table-responsive",2,"max-height","300px","width","400px"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light"],[1,"text-start"],[1,"text-end",2,"width","100px"],[1,"text-end",2,"width","80px"],[1,"text-end"],["colspan","3"],["title","No reprint history","message","No reprint history available for this invoice"]],template:function(e,r){e&1&&(i(0,"modal-material",0),M("onCancel",function(){return r.dialogRef.close()})("onClose",function(){return r.dialogRef.close()}),i(1,"content")(2,"div",1)(3,"div",2)(4,"table",3)(5,"thead",4)(6,"tr")(7,"th",5),o(8,"Users"),n(),i(9,"th",6),o(10,"Date"),n(),i(11,"th",7),o(12,"Time"),n()()(),i(13,"tbody"),C(14,R,2,0)(15,A,3,0,"tr"),n()()()()()()),e&2&&(g("config",r.config),l(14),y(r.data&&r.data.length>0?14:15))},dependencies:[D,E,b],encapsulation:2})};export{I as a};
