dealpos 12.10.1 → 12.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[4297],{74297:(ne,P,f)=>{f.d(P,{$R:()=>S,$k:()=>V,B_:()=>B,CW:()=>D,Fo:()=>R,If:()=>M,J1:()=>H,JG:()=>Z,LZ:()=>z,Mj:()=>_,OI:()=>g,QC:()=>T,Qc:()=>Y,Rt:()=>G,VZ:()=>A,W3:()=>ee,W7:()=>$,WV:()=>j,X6:()=>q,Z0:()=>x,aJ:()=>K,aQ:()=>U,bs:()=>k,cU:()=>N,d5:()=>v,dr:()=>re,eO:()=>E,f4:()=>Q,i4:()=>I,l:()=>X,mr:()=>W,o4:()=>b,qU:()=>y,rU:()=>w,sH:()=>C,sT:()=>J,wn:()=>L,zX:()=>O});var u=f(81180),m=f(96814),h=f(86864),o=f(65879),F=f(6593);let Z=(()=>{var t;class r{transform(e,n){const a=e.filter(l=>l.Key==n);return 0==a.length?0:a[0].Value}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"groupStock",type:t,pure:!0})),r})(),w=(()=>{var t;class r{transform(e){return null!=e?e.replace(/\n/g,"<br />"):e}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"images",type:t,pure:!0})),r})(),S=(()=>{var t;class r{transform(e){var n=new Date(e),l=(new Date).valueOf()-n.valueOf(),s=Math.floor(l%864e5/36e5),c=Math.round(l%864e5%36e5/6e4);return s>0?c+60*s:c}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"durationTime",type:t,pure:!0})),r})(),D=(()=>{var t;class r{transform(e){let a="",l=e<1440?null:(e-e%1440)/1440;l&&(a=`${l} Day`,l>1&&(a+="s"));let s=(e%1440-e%1440%60)/60;s&&(a+=` ${s} Hour`,s>1&&(a+="s"));let c=e%60;return c&&(a+=` ${c} Minute`,c>1&&(a+="s")),a.trim()}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"durationDaysHour",type:t,pure:!0})),r})(),y=(()=>{var t;class r{transform(e,n,a,l){let s=0;return e&&!a&&!l&&e.forEach(c=>s+=c[n]-0),a&&l&&e.forEach(c=>{c[a]==l&&(s+=c[n]-0)}),s}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"sum",type:t,pure:!1})),r})(),v=(()=>{var t;class r{transform(e,n,a){let l=0;return e&&e.forEach(s=>l+=s[n][a]),l}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"sumArray",type:t,pure:!1})),r})(),T=(()=>{var t;class r{transform(e,n,a,l){let s=0;return e&&e.forEach(c=>{h.g.IsNotEmpty(c[n][a])&&(s+=c[n][a][l])}),s}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"sumNestedArray",type:t,pure:!1})),r})(),M=(()=>{var t;class r{transform(e,n,a,l,s){let c=0;return e&&e.forEach(p=>{const d=p[n].find(te=>te[l]===a);void 0!==d&&(c+=d[s])}),c}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"sumWithID",type:t,pure:!1})),r})(),b=(()=>{var t;class r{transform(e,n,a){let l=0;return e&&e.forEach(s=>l+=s[n]*s[a]),l}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"sumMultiply",type:t,pure:!1})),r})(),N=(()=>{var t;class r{transform(e,n,a){let l=0;return e&&e.forEach(s=>l+=s[n][a]-0),l}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"SumWithIndex",type:t,pure:!1})),r})(),_=(()=>{var t;class r{transform(e=[],n){let a=JSON.parse(JSON.stringify(e));if(a.length>0){a=a.sort((s,c)=>s[n]-c[n]);const l=a[0][n];if(a.length>1){const s=a[a.length-1][n];return l===s?l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"):l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")+" - "+s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}return l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")}return"-"}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"MinToMax",type:t,pure:!0})),r})(),g=(()=>{var t;class r{transform(e,n,a=0){if(!e)return e;const l=n?parseInt(n,10):10;return e.length>l?e.substr(a,l):e}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"limitTo",type:t,pure:!0})),r})(),C=(()=>{var t;class r{transform(e){return null!=e?e.replace(/\n/g,"<br />"):e}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"newlines",type:t,pure:!0})),r})(),I=(()=>{var t;class r{transform(e,n,a){n=n??2;const l=Math.pow(10,n);return a&&(e-=e*l%5/l),Math.round(e*l)/l}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"DecimalRound",type:t,pure:!0})),r})(),Y=(()=>{var t;class r{constructor(e){(0,u.Z)(this,"decimalPipe",void 0),this.decimalPipe=e}transform(e,n){n=n??0,"string"==typeof e&&(e=e.split(",").join(""),e=parseFloat(e));let a=e.toFixed(4);for(a=a.substr(a.length-4);"0"==a.substr(a.length-1,1);)a=a.substr(0,a.length-1);const l=a.length>n?a.length:n,s="1."+l.toString()+"-"+l.toString();return this.decimalPipe.transform(e,s)}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)(o.Y36(m.JJ,16))}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"TrailingZero",type:t,pure:!0})),r})(),x=(()=>{var t;class r{transform(e,n,a){return e.find(s=>s[n]==a)??{}}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"find",type:t,pure:!0})),r})(),j=(()=>{var t;class r{transform(e,n){return""==e||null==e?"":(""==n||null==n||(n=n.replace("{0}",e)),n)}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"showIfNotNullOrEmptyString",type:t,pure:!0})),r})(),A=(()=>{var t;class r{transform(e,n){return e.filter(a=>a.Tab==n)}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"FilterByTab",type:t,pure:!0})),r})(),k=(()=>{var t;class r{transform(e,n){return void 0===n||""===n?e:e.filter(a=>-1!==a.Name.toLowerCase().indexOf(n.toLowerCase()))}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"FilterByName",type:t,pure:!0})),r})(),L=(()=>{var t;class r{transform(e,n,a="Name"){return void 0===n?e:e.filter("number"==typeof n?l=>l[a]==n:l=>-1!==l[a].toString().toLowerCase().indexOf(n.toLowerCase()))}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"Filter",type:t,pure:!0})),r})(),E=(()=>{var t;class r{transform(e,n,a){let l=[];return l=e.filter(s=>s[n]<a),l}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"GetArrayWithSmallerCondition",type:t,pure:!0})),r})(),B=(()=>{var t;class r{transform(e,n,a){let l=[];return l=e.filter(s=>s[n]>a),l}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"GetArrayWithGreaterCondition",type:t,pure:!0})),r})(),G=(()=>{var t;class r{transform(e,n,a){if(e){if(""==a||null==a||null==a)return e;{let l=[];for(let s=0;s<n.length;s++){let c=e.filter(p=>null!=p[n[s]]);c=c.filter(p=>p[n[s]].toLowerCase().indexOf(a.toLowerCase())>-1),l=l.concat(c)}return l}}return[]}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"FilterByArray",type:t,pure:!0})),r})(),O=(()=>{var t;class r{constructor(e){(0,u.Z)(this,"sanitizer",void 0),this.sanitizer=e}transform(e){return this.sanitizer.bypassSecurityTrustHtml(e)}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)(o.Y36(F.H7,16))}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"SafeHtml",type:t,pure:!0})),r})(),R=(()=>{var t;class r{transform(e){return Math.ceil(e)}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"RoundUp",type:t,pure:!0})),r})(),W=(()=>{var t;class r{transform(e){let n;switch(e){case 1:n="January";break;case 2:n="February";break;case 3:n="March";break;case 4:n="April";break;case 5:n="May";break;case 6:n="June";break;case 7:n="July";break;case 8:n="August";break;case 9:n="September";break;case 10:n="October";break;case 11:n="November";break;case 12:n="December";break;default:n="-"}return n}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"Month",type:t,pure:!0})),r})(),H=(()=>{var t;class r{transform(e,n){const a=[];return e.forEach(l=>{l[n].forEach(s=>{a.push(s)})}),a}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"GetChildrenArray",type:t,pure:!0})),r})(),U=(()=>{var t;class r{transform(e,n){let a=0;return e.forEach(l=>{0!=l&&(a+=l[n])}),a>0}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"HideSumZero",type:t,pure:!0})),r})(),J=(()=>{var t;class r{transform(e,n){var a=new Date(e),s=new Date(n).getTime()-a.getTime();return Math.round(s/6e4)}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"DateDiffInMinute",type:t,pure:!0})),r})(),K=(()=>{var t;class r{transform(e){return new Date(e)}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"ToDateString",type:t,pure:!0})),r})(),$=(()=>{var t;class r{transform(e,n="",a=""){return!e||""===n||!n||e.length<=1?e:a&&""!==a?e=e.sort((l,s)=>{const c="asc"===n;switch(typeof l[a]){case"string":return this.compare(l[a]?.toLocaleLowerCase(),s[a]?.toLocaleLowerCase(),c);case"number":return this.compare(l[a],s[a],c);default:return 0}}):"asc"===n?e.sort():e.sort().reverse()}compare(e,n,a){return(e<n?-1:1)*(a?1:-1)}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"sortBy",type:t,pure:!0})),r})(),V=(()=>{var t;class r{constructor(e){(0,u.Z)(this,"datePipe",void 0),this.datePipe=e}transform(e,n){return n=n||"dd/MM/yyyy",e&&"0001-01-01T00:00:00"!=e?this.datePipe.transform(e,n):"-"}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)(o.Y36(m.uU,16))}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"IsMinDate",type:t,pure:!0})),r})(),z=(()=>{var t;class r{transform(e,n){let a=!0;try{let l="";return n=n||"Name",e.forEach((s,c)=>{0==c?l=s[n]:l!=s[n]&&(a=!1)}),a}catch{return!0}}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"checkPropValueIsSame",type:t,pure:!0})),r})(),Q=(()=>{var t;class r{transform(e,n,a,l){let s=e.filter(c=>c[n]==a);return s.length>0?s[0][l]:0}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"FilterGetAmount",type:t,pure:!0})),r})(),X=(()=>{var t;class r{transform(e){return e?"Yes":"No"}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"YesNo",type:t,pure:!0})),r})(),q=(()=>{var t;class r{transform(e,n,a){let l=n.Sales/100*e[0].Rate;return 1==a&&(l=n.Tax-l),l}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"TaxDefault",type:t,pure:!0})),r})(),ee=(()=>{var t;class r{transform(e,n,a){let s;return s=e.toLowerCase().replace(n,`<b class="${a}">${n}</b>`),s}}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275pipe",o.Yjl({name:"SearchNote",type:t,pure:!0})),r})(),re=(()=>{var t;class r{}return t=r,(0,u.Z)(r,"\u0275fac",function(e){return new(e||t)}),(0,u.Z)(r,"\u0275mod",o.oAB({type:t})),(0,u.Z)(r,"\u0275inj",o.cJS({providers:[m.JJ,y,m.uU,_]})),r})()}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[6142],{57457:(tn,D,P)=>{P.d(D,{S:()=>K,m:()=>G});var d=P(81180),T=P(96814),y=P(74297),e=P(86864),a=P(65879);function n(f,v){if(1&f&&(a.ynx(0),a.TgZ(1,"div",10)(2,"div",11)(3,"div",9)(4,"span"),a._uU(5),a.qZA()()()(),a.BQk()),2&f){const g=a.oxw(2);a.xp6(5),a.AsE("",null==g.config||null==g.config.PrintConfigOthers||null==g.config.PrintConfigOthers.Header?null:g.config.PrintConfigOthers.Header.PackingReceiptTitle," : ",null==g.data||null==g.data.Delivery?null:g.data.Delivery.Number,"")}}function N(f,v){if(1&f&&(a.TgZ(0,"strong"),a._uU(1),a.qZA()),2&f){const g=a.oxw(3);a.xp6(1),a.Oqu(null==g.data.Customer?null:g.data.Customer.ContactDisplay)}}function J(f,v){if(1&f&&(a.TgZ(0,"div")(1,"span"),a._uU(2),a.qZA()()),2&f){const g=a.oxw(3);a.xp6(2),a.Oqu(null==g.data.Customer?null:g.data.Customer.Email)}}function t(f,v){if(1&f&&(a.TgZ(0,"div")(1,"span"),a._uU(2),a.qZA()()),2&f){const g=a.oxw(3);a.xp6(2),a.Oqu(null==g.data.Customer?null:g.data.Customer.Phone)}}function S(f,v){if(1&f&&(a.TgZ(0,"div"),a._UZ(1,"span",15),a.ALo(2,"newlines"),a.qZA()),2&f){const g=a.oxw(3);a.xp6(1),a.Q6J("innerHtml",a.lcZ(2,1,null==g.data.Customer?null:g.data.Customer.Address),a.oJD)}}function R(f,v){if(1&f&&(a.TgZ(0,"div")(1,"span"),a._uU(2),a.qZA()()),2&f){const g=a.oxw(3);a.xp6(2),a.Oqu(g.data.CityName)}}function L(f,v){if(1&f&&(a.TgZ(0,"div",16)(1,"div",17)(2,"h4"),a._UZ(3,"span",15),a.qZA(),a.YNc(4,N,2,1,"strong",3),a.YNc(5,J,3,1,"div",3),a.YNc(6,t,3,1,"div",3),a.YNc(7,S,3,3,"div",3),a.YNc(8,R,3,1,"div",3),a.qZA()()),2&f){const g=a.oxw(2);a.xp6(3),a.Q6J("innerHtml",g.config.PrintConfigInvoice.DocumentLabel.Customer,a.oJD),a.xp6(1),a.Q6J("ngIf",g.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),a.xp6(1),a.Q6J("ngIf",g.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),a.xp6(1),a.Q6J("ngIf",1!==g.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility),a.xp6(1),a.Q6J("ngIf",g.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),a.xp6(1),a.Q6J("ngIf",g.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible)}}function b(f,v){if(1&f&&(a.TgZ(0,"strong"),a._uU(1),a.qZA()),2&f){const g=a.oxw(3);a.xp6(1),a.Oqu(g.data.Shipping.Name)}}function Z(f,v){if(1&f&&(a.TgZ(0,"div")(1,"span"),a._uU(2),a.qZA()()),2&f){const g=a.oxw(3);a.xp6(2),a.Oqu(null==g.data.Shipping?null:g.data.Shipping.Street)}}function M(f,v){if(1&f&&(a.TgZ(0,"div")(1,"span"),a._uU(2),a.qZA()()),2&f){const g=a.oxw(3);a.xp6(2),a.Oqu(null==g.data.Shipping?null:g.data.Shipping.Phone)}}function O(f,v){if(1&f&&(a.TgZ(0,"div")(1,"span"),a._uU(2),a.qZA()()),2&f){const g=a.oxw(3);a.xp6(2),a.Oqu(null==g.data.Shipping?null:g.data.Shipping.City)}}function w(f,v){if(1&f&&(a.TgZ(0,"div"),a._UZ(1,"span",15),a.ALo(2,"newlines"),a.qZA()),2&f){const g=a.oxw(3);a.xp6(1),a.Q6J("innerHtml",a.lcZ(2,1,null==g.data.Shipping?null:g.data.Shipping.Description),a.oJD)}}function V(f,v){if(1&f&&(a.TgZ(0,"div",10)(1,"div",18)(2,"div",9),a._UZ(3,"span",15),a.qZA(),a.YNc(4,b,2,1,"strong",3),a.YNc(5,Z,3,1,"div",3),a.YNc(6,M,3,1,"div",3),a.YNc(7,O,3,1,"div",3),a.YNc(8,w,3,3,"div",3),a.qZA()()),2&f){const g=a.oxw(2);a.xp6(3),a.Q6J("innerHtml",g.config.PrintConfigInvoice.DocumentLabel.ShippingAddress,a.oJD),a.xp6(1),a.Q6J("ngIf",g.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),a.xp6(1),a.Q6J("ngIf",g.data.Shipping.Address),a.xp6(1),a.Q6J("ngIf",g.data.Shipping.Phone),a.xp6(1),a.Q6J("ngIf",g.data.Shipping.City),a.xp6(1),a.Q6J("ngIf",g.data.Shipping.Description)}}function k(f,v){if(1&f&&(a.TgZ(0,"strong"),a._uU(1),a.qZA()),2&f){const g=a.oxw(3);a.xp6(1),a.Oqu(g.data.Shipping.Sender)}}function H(f,v){if(1&f&&(a.TgZ(0,"div")(1,"span"),a._uU(2),a.qZA()()),2&f){const g=a.oxw(3);a.xp6(2),a.Oqu(null==g.data.Shipping?null:g.data.Shipping.SenderAddress)}}function E(f,v){if(1&f&&(a.TgZ(0,"div")(1,"span"),a._uU(2),a.qZA()()),2&f){const g=a.oxw(3);a.xp6(2),a.Oqu(null==g.data.Shipping?null:g.data.Shipping.SenderPhone)}}function F(f,v){if(1&f&&(a.TgZ(0,"div")(1,"span"),a._uU(2),a.qZA()()),2&f){const g=a.oxw(3);a.xp6(2),a.Oqu(null==g.data.Shipping?null:g.data.Shipping.SenderCity)}}function B(f,v){if(1&f&&(a.TgZ(0,"div",10)(1,"div",18)(2,"div",9)(3,"span"),a._uU(4,"Ship From :"),a.qZA()(),a.YNc(5,k,2,1,"strong",3),a.YNc(6,H,3,1,"div",3),a.YNc(7,E,3,1,"div",3),a.YNc(8,F,3,1,"div",3),a.qZA()()),2&f){const g=a.oxw(2);a.xp6(5),a.Q6J("ngIf",g.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),a.xp6(1),a.Q6J("ngIf",g.data.Shipping.SenderAddress),a.xp6(1),a.Q6J("ngIf",g.data.Shipping.SenderPhone),a.xp6(1),a.Q6J("ngIf",g.data.Shipping.SenderCity)}}function j(f,v){if(1&f&&(a.TgZ(0,"tbody")(1,"tr"),a._UZ(2,"td",24),a.TgZ(3,"td"),a._uU(4),a.qZA(),a._UZ(5,"td",24),a.ALo(6,"number"),a.qZA()()),2&f){const g=v.$implicit,Q=v.index;a.xp6(2),a.Q6J("innerHtml",Q+1+".",a.oJD),a.xp6(2),a.hij(" ",g.Name," "),a.xp6(1),a.Q6J("innerHtml",a.lcZ(6,3,g.Quantity),a.oJD)}}function $(f,v){if(1&f&&(a.TgZ(0,"div",10)(1,"div",11)(2,"table",19)(3,"thead",20)(4,"tr")(5,"th",21),a._uU(6,"No"),a.qZA(),a.TgZ(7,"th",22),a._uU(8,"Name"),a.qZA(),a.TgZ(9,"th",21),a._uU(10,"Qty"),a.qZA()()(),a.YNc(11,j,7,5,"tbody",23),a.qZA()()()),2&f){const g=a.oxw(2);a.xp6(11),a.Q6J("ngForOf",g.data.List)}}function z(f,v){if(1&f&&(a.TgZ(0,"div",10)(1,"div",11),a._UZ(2,"div",25),a.ALo(3,"newlines"),a.qZA()()),2&f){const g=a.oxw(2);a.xp6(2),a.Q6J("innerHtml",a.lcZ(3,1,g.data.Invoice.Note),a.oJD)}}function W(f,v){if(1&f&&(a.TgZ(0,"div"),a.YNc(1,n,6,2,"ng-container",3),a.YNc(2,L,9,6,"div",4),a.YNc(3,V,9,6,"div",5),a.YNc(4,B,9,4,"div",5),a.TgZ(5,"div",6)(6,"div",7)(7,"div",8)(8,"span",9),a._uU(9),a.qZA()()()(),a.YNc(10,$,12,1,"div",5),a.YNc(11,z,4,3,"div",5),a.TgZ(12,"div",10)(13,"div",11)(14,"div",12)(15,"div",13)(16,"div",14),a._UZ(17,"span",15),a.ALo(18,"newlines"),a.qZA()()()()()()),2&f){const g=a.oxw();a.Gre("packingslip_container ",g.printTemplate.PrintLX300?"lx300":"",""),a.xp6(1),a.Q6J("ngIf",g.constants.IsNotEmpty(null==g.data||null==g.data.Delivery?null:g.data.Delivery.Number)),a.xp6(1),a.Q6J("ngIf",!(null!=g.data.Shipping&&g.data.Shipping.Recipient)),a.xp6(1),a.Q6J("ngIf",g.data.Shipping),a.xp6(1),a.Q6J("ngIf",(null==g.data.Shipping?null:g.data.Shipping.Sender)&&g.config.PrintConfigPackingSlip.ShippingAddressSenderVisible),a.xp6(5),a.hij(" ",g.data.TypeName,""),a.xp6(1),a.Q6J("ngIf",g.config.PrintConfigPackingSlip.ProductTableVisible),a.xp6(1),a.Q6J("ngIf",g.config.PrintConfigPackingSlip.RenderInvoiceNote&&null!=(null==g.data.Invoice?null:g.data.Invoice.Note)),a.xp6(6),a.Q6J("innerHtml",a.lcZ(18,11,g.printTemplate.DeliveryNote),a.oJD)}}let K=(()=>{var f;class v{constructor(){(0,d.Z)(this,"data",void 0),(0,d.Z)(this,"printTemplate",void 0),(0,d.Z)(this,"config",void 0),(0,d.Z)(this,"constants",e.g)}}return f=v,(0,d.Z)(v,"\u0275fac",function(Q){return new(Q||f)}),(0,d.Z)(v,"\u0275cmp",a.Xpm({type:f,selectors:[["packing-slip"]],inputs:{data:"data",printTemplate:"printTemplate",config:"config"},decls:3,vars:1,consts:[["rel","stylesheet","href","/Styles/Master/app_custom.css"],["rel","stylesheet","href","/Styles/Print/PaperSize8cm_custom.css"],[3,"class",4,"ngIf"],[4,"ngIf"],["class","row g-0 pt-3",4,"ngIf"],["class","row g-0",4,"ngIf"],[1,"row","my-2"],[1,"col","text-end","my-2"],[1,"border","border-dark","py-2","px-2","mb-2","text-center"],[1,"fw-bold"],[1,"row","g-0"],[1,"col"],["id","signatureNote"],[1,"note"],[1,"d-flex","justify-content-md-start"],[3,"innerHtml"],[1,"row","g-0","pt-3"],[1,"col","border","border-dark","py-2","px-2"],[1,"col","border","border-dark","py-2","px-2","mb-2"],[1,"table","table-striped","table-sm","table-bordered","w-100"],[2,"background","#FDF3C6"],[1,"text-end",2,"width","10%"],[2,"width","80%"],[4,"ngFor","ngForOf"],[2,"text-align","right",3,"innerHtml"],[2,"text-align","center","padding","16px","border","1px dotted black","background-color","#FCECA3",3,"innerHtml"]],template:function(Q,p){1&Q&&(a._UZ(0,"link",0)(1,"link",1),a.YNc(2,W,19,13,"div",2)),2&Q&&(a.xp6(2),a.Q6J("ngIf",p.data&&p.config))},dependencies:[T.sg,T.O5,T.JJ,y.sH]})),v})(),G=(()=>{var f;class v{}return f=v,(0,d.Z)(v,"\u0275fac",function(Q){return new(Q||f)}),(0,d.Z)(v,"\u0275mod",a.oAB({type:f})),(0,d.Z)(v,"\u0275inj",a.cJS({imports:[T.ez,y.dr]})),v})()},42500:(tn,D,P)=>{P.d(D,{g:()=>g,I:()=>Q});var d=P(81180),T=P(96814),y=P(74297),e=P(65879);function a(p,x){if(1&p&&(e.TgZ(0,"div",4),e._uU(1),e.ALo(2,"TrailingZero"),e.ALo(3,"DecimalRound"),e.qZA()),2&p){const _=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,e.xi3(3,4,(1-_.item.Discount/100)*_.item.Price*_.item.Quantity*_.item.UnitQuantity,4),_.decimal)," ")}}function n(p,x){if(1&p&&(e.TgZ(0,"div",2)(1,"div"),e._uU(2),e.ALo(3,"number"),e.TgZ(4,"span"),e._uU(5),e.qZA(),e.TgZ(6,"i"),e._uU(7),e.qZA()(),e.YNc(8,a,4,7,"div",3),e.qZA()),2&p){const _=e.oxw();e.Gre("d-flex justify-content-between ms-2 ",_.item.Quantity<0?"cancel":"",""),e.xp6(2),e.hij(" ",e.lcZ(3,8,_.item.Quantity)," x "),e.xp6(3),e.AsE(" ",null==_.item.Variant?null:_.item.Variant.Name," ",null!=_.item.Variant&&_.item.Variant.Code&&_.code?" - "+(null==_.item.Variant?null:_.item.Variant.Code):""," "),e.xp6(2),e.Oqu(_.amount&&0!=_.item.Discount?_.item.Discount+" %":""),e.xp6(1),e.Q6J("ngIf",_.amount)}}function N(p,x){if(1&p&&(e._UZ(0,"mark",5),e.ALo(1,"newlines")),2&p){const _=e.oxw();e.Q6J("innerHtml",e.lcZ(1,1,_.item.Note),e.oJD)}}let J=(()=>{var p;class x{constructor(){(0,d.Z)(this,"item",void 0),(0,d.Z)(this,"decimal",void 0),(0,d.Z)(this,"code",void 0),(0,d.Z)(this,"amount",void 0),(0,d.Z)(this,"note",void 0)}ngOnInit(){}}return p=x,(0,d.Z)(x,"\u0275fac",function(I){return new(I||p)}),(0,d.Z)(x,"\u0275cmp",e.Xpm({type:p,selectors:[["park-item"]],inputs:{item:"item",decimal:"decimal",code:"code",amount:"amount",note:"note"},decls:2,vars:2,consts:[["style","font-family:Arial, Helvetica, sans-serif !important;",3,"class",4,"ngIf"],[3,"innerHtml",4,"ngIf"],[2,"font-family","Arial, Helvetica, sans-serif !important"],["class","text-start",4,"ngIf"],[1,"text-start"],[3,"innerHtml"]],template:function(I,A){1&I&&(e.YNc(0,n,9,10,"div",0),e.YNc(1,N,2,3,"mark",1)),2&I&&(e.Q6J("ngIf",A.item),e.xp6(1),e.Q6J("ngIf",A.item.Note&&A.note))},dependencies:[T.O5,T.JJ,y.sH,y.Qc,y.i4]})),x})();function t(p,x){if(1&p&&e._UZ(0,"div",19),2&p){const _=e.oxw(2);e.Q6J("innerHtml",_.printTemplate.Field,e.oJD)}}function S(p,x){if(1&p&&(e.TgZ(0,"div",20),e._UZ(1,"div",13),e.ALo(2,"newlines"),e._UZ(3,"div",13),e.ALo(4,"newlines"),e.qZA()),2&p){const _=e.oxw(2);e.xp6(1),e.Q6J("innerHtml",e.lcZ(2,2,null==_.printTemplate?null:_.printTemplate.Address),e.oJD),e.xp6(2),e.Q6J("innerHtml",e.lcZ(4,4,null==_.printTemplate?null:_.printTemplate.ContactInfo),e.oJD)}}function R(p,x){if(1&p&&e._UZ(0,"h3",13),2&p){const _=e.oxw(3);e.Q6J("innerHtml",null==_.data?null:_.data.Customer.Name,e.oJD)}}function L(p,x){if(1&p&&e._UZ(0,"h3",13),2&p){const _=e.oxw(3);e.Q6J("innerHtml",null==_.data?null:_.data.Customer.MemberIdentification,e.oJD)}}function b(p,x){if(1&p&&(e._UZ(0,"p",13),e.ALo(1,"newlines")),2&p){const _=e.oxw(3);e.Q6J("innerHtml",e.lcZ(1,1,null==_.data?null:_.data.Customer.Address),e.oJD)}}function Z(p,x){if(1&p&&e._UZ(0,"span",13),2&p){const _=e.oxw(3);e.Q6J("innerHtml",null==_.data?null:_.data.Customer.Phone,e.oJD)}}function M(p,x){if(1&p&&e._UZ(0,"span",13),2&p){const _=e.oxw(3);e.Q6J("innerHtml",null==_.data?null:_.data.Customer.Email,e.oJD)}}function O(p,x){if(1&p&&(e.TgZ(0,"div",20),e.YNc(1,R,1,1,"h3",21),e.YNc(2,L,1,1,"h3",21),e.YNc(3,b,2,3,"p",21),e.YNc(4,Z,1,1,"span",21),e.YNc(5,M,1,1,"span",21),e.qZA()),2&p){const _=e.oxw(2);e.xp6(1),e.Q6J("ngIf",null==_.data?null:_.data.Customer.Name),e.xp6(1),e.Q6J("ngIf",null==_.data?null:_.data.Customer.MemberIdentification),e.xp6(1),e.Q6J("ngIf",_.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),e.xp6(1),e.Q6J("ngIf",1!==_.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility),e.xp6(1),e.Q6J("ngIf",_.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible)}}function w(p,x){if(1&p&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&p){const _=e.oxw(2);e.xp6(1),e.hij(" ",null==_.data?null:_.data.Title," ")}}function V(p,x){if(1&p&&(e.TgZ(0,"div",25),e._UZ(1,"park-item",26),e.qZA()),2&p){const _=x.$implicit,I=e.oxw(3);e.xp6(1),e.Q6J("item",_)("code",I.config.PrintConfigInvoice.ItemsTable.CodeVisible)("decimal",I.config.PrintConfigGeneral.TrailingZero)("amount",I.config.ApplicationParkAndRetrieve.PrintOutput.AmountVisible)("note",I.config.PrintConfigInvoice.Footer.NoteVisible)}}function k(p,x){if(1&p&&(e.TgZ(0,"div",22)(1,"h6",23),e._uU(2),e.qZA(),e.YNc(3,V,2,5,"div",24),e.qZA()),2&p){const _=x.$implicit;e.xp6(2),e.Oqu(_.Name),e.xp6(1),e.Q6J("ngForOf",_.Items)}}function H(p,x){if(1&p&&(e.TgZ(0,"div",29),e._UZ(1,"park-item",26),e.qZA()),2&p){const _=x.$implicit,I=e.oxw(3);e.xp6(1),e.Q6J("item",_)("code",I.config.PrintConfigInvoice.ItemsTable.CodeVisible)("decimal",I.config.PrintConfigGeneral.TrailingZero)("amount",I.config.ApplicationParkAndRetrieve.PrintOutput.AmountVisible)("note",I.config.PrintConfigInvoice.Footer.NoteVisible)}}function E(p,x){if(1&p&&(e.TgZ(0,"div",27),e.YNc(1,H,2,5,"div",28),e.qZA()),2&p){const _=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",_.data.Items)}}function F(p,x){if(1&p&&(e.TgZ(0,"tr")(1,"th",35),e._uU(2),e.ALo(3,"number"),e.ALo(4,"sum"),e.qZA(),e.TgZ(5,"td",36),e._uU(6,":"),e.qZA(),e.TgZ(7,"td",36),e._uU(8),e.qZA(),e.TgZ(9,"td",37),e._uU(10),e.ALo(11,"TrailingZero"),e.qZA()()),2&p){const _=x.$implicit,I=x.index,A=e.oxw(4);e.xp6(2),e.AsE("",1==I&&A.data.Items.length>1?"Qty: "+e.lcZ(3,4,e.xi3(4,6,A.data.Items,"Quantity")):""," ",_.Label,""),e.xp6(6),e.Oqu(_.CurrencySymbol),e.xp6(2),e.Oqu(e.xi3(11,9,_.Amount,A.config.PrintConfigGeneral.TrailingZero))}}function B(p,x){if(1&p&&(e.TgZ(0,"div",32)(1,"table",33)(2,"tbody"),e.YNc(3,F,12,12,"tr",34),e.qZA()()()),2&p){const _=e.oxw(3);e.xp6(3),e.Q6J("ngForOf",_.data.AmountSummary)}}function j(p,x){1&p&&e._UZ(0,"div",32)}function $(p,x){if(1&p&&(e.TgZ(0,"div",30),e.YNc(1,B,4,1,"div",31),e.YNc(2,j,1,0,"div",31),e.qZA()),2&p){const _=e.oxw(2);e.xp6(1),e.Q6J("ngIf",_.data.AmountSummary.length>0),e.xp6(1),e.Q6J("ngIf",_.data.AmountSummary.length>0)}}function z(p,x){if(1&p&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&p){const _=e.oxw(2);e.xp6(1),e.hij("Number of Person: ",e.lcZ(2,1,_.data.NumberOfPerson),"")}}function W(p,x){if(1&p&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&p){const _=e.oxw(2);e.xp6(1),e.AsE("",_.config.PrintConfigInvoice.DocumentLabel.SalesPerson," : ",_.data.SalesName," ")}}function K(p,x){1&p&&(e.TgZ(0,"h6",38),e._uU(1,"Note : "),e.qZA())}function G(p,x){if(1&p&&(e._UZ(0,"div",39),e.ALo(1,"newlines")),2&p){const _=e.oxw(2);e.Q6J("innerHTML",e.lcZ(1,1,_.data.InvoiceNote),e.oJD)}}function f(p,x){if(1&p&&e._UZ(0,"small",40),2&p){const _=e.oxw(2);e.Q6J("innerHtml",_.data.Creator,e.oJD)}}function v(p,x){if(1&p&&(e.TgZ(0,"div"),e._UZ(1,"div",3),e.YNc(2,t,1,1,"div",4),e.YNc(3,S,5,6,"div",5),e.YNc(4,O,6,5,"div",5),e.TgZ(5,"div",6),e.YNc(6,w,2,1,"div",7),e.TgZ(7,"div"),e._uU(8),e.qZA()(),e.TgZ(9,"div",8),e.YNc(10,k,4,2,"div",9),e.YNc(11,E,2,1,"div",10),e.qZA(),e.YNc(12,$,3,2,"div",11),e.TgZ(13,"div",12),e.YNc(14,z,3,3,"div",7),e.YNc(15,W,2,2,"div",7),e._UZ(16,"div",13),e.ALo(17,"newlines"),e.YNc(18,K,2,0,"h6",14),e.YNc(19,G,2,3,"div",15),e.qZA(),e._UZ(20,"div",16),e.ALo(21,"SafeHtml"),e._UZ(22,"small",17),e.ALo(23,"date"),e.YNc(24,f,1,1,"small",18),e.qZA()),2&p){const _=e.oxw();e.MT6("print_container sales_order_mini ",_.printTemplate.PrintLX300?"lx300":""," ",_.printTemplate.CssClass,""),e.xp6(1),e.Q6J("innerHtml",null==_.printTemplate?null:_.printTemplate.Name,e.oJD),e.xp6(1),e.Q6J("ngIf",_.config.ApplicationParkAndRetrieve.PrintOutput.OutletAddressVisible),e.xp6(1),e.Q6J("ngIf",_.config.ApplicationParkAndRetrieve.PrintOutput.OutletAddressVisible),e.xp6(1),e.Q6J("ngIf",_.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible&&_.data.Customer),e.xp6(2),e.Q6J("ngIf",_.config.PrintConfigInvoice.DocumentVisibility.NumberVisible),e.xp6(2),e.hij(" ",null==_.data?null:_.data.Date," "),e.xp6(2),e.Q6J("ngForOf",_.itembyCategory),e.xp6(1),e.Q6J("ngIf",!_.config.ApplicationParkAndRetrieve.PrintOutput.GroupByCategory),e.xp6(1),e.Q6J("ngIf",_.data.AmountSummary),e.xp6(2),e.Q6J("ngIf",_.data.NumberOfPerson&&_.config.ApplicationParkAndRetrieve.PrintOutput.ShowNumberOfPerson),e.xp6(1),e.Q6J("ngIf",_.data.SalesName),e.xp6(1),e.Q6J("innerHtml",e.lcZ(17,21,null==_.data?null:_.data.ExtraNote),e.oJD),e.xp6(2),e.Q6J("ngIf",_.data.InvoiceNote&&_.config.PrintConfigInvoice.Footer.NoteVisible),e.xp6(1),e.Q6J("ngIf",_.data.InvoiceNote&&_.config.PrintConfigInvoice.Footer.NoteVisible),e.xp6(1),e.Q6J("innerHtml",e.lcZ(21,23,_.printTemplate.FooterRight?_.printTemplate.FooterRight:""),e.oJD),e.xp6(2),e.Q6J("innerHtml",e.xi3(23,25,_.data.PrintDate,"dd MMM yyyy HH:mm"),e.oJD),e.xp6(2),e.Q6J("ngIf",1!=_.config.PrintConfigInvoice.Footer.CreatorVisiblePosition)}}let g=(()=>{var p;class x{constructor(){(0,d.Z)(this,"data",void 0),(0,d.Z)(this,"printTemplate",void 0),(0,d.Z)(this,"config",void 0),(0,d.Z)(this,"itembyCategory",[])}ngOnInit(){this.config.ApplicationParkAndRetrieve.PrintOutput.GroupByCategory&&this.data.Items.forEach(I=>{let A=this.itembyCategory.find(X=>X.Name==I.Variant.CategoryName);null==A&&(A={},A.Name=I.Variant.CategoryName,A.Items=this.data.Items.filter(X=>X.Variant.CategoryName==A.Name),this.itembyCategory.push(A))})}}return p=x,(0,d.Z)(x,"\u0275fac",function(I){return new(I||p)}),(0,d.Z)(x,"\u0275cmp",e.Xpm({type:p,selectors:[["park-order"]],inputs:{data:"data",printTemplate:"printTemplate",config:"config"},decls:3,vars:1,consts:[["rel","stylesheet","href","/Styles/Master/app_custom.css"],["rel","stylesheet","href","/Styles/Print/PaperSize8cm_custom.css"],[3,"class",4,"ngIf"],[1,"text-center","invoiceHeader","h1",3,"innerHtml"],["class","text-center",3,"innerHtml",4,"ngIf"],["class","d-block text-center",4,"ngIf"],[1,"d-flex","justify-content-between"],[4,"ngIf"],[1,"park-items"],["class","border border-dark p-0 pe-1 mt-4 border-bottom",4,"ngFor","ngForOf"],["class","border-bottom border-dark",4,"ngIf"],["class","row",4,"ngIf"],[1,"text-center"],[3,"innerHtml"],["class","m-0 fw-bold",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"note",3,"innerHtml"],[1,"d-flex","justify-content-center",3,"innerHtml"],["class","d-flex justify-content-center fw-bold",3,"innerHtml",4,"ngIf"],[1,"text-center",3,"innerHtml"],[1,"d-block","text-center"],[3,"innerHtml",4,"ngIf"],[1,"border","border-dark","p-0","pe-1","mt-4","border-bottom"],[1,"text-center",2,"font-size","12px!important"],["style","font-size:10px !important;",4,"ngFor","ngForOf"],[2,"font-size","10px !important"],[3,"item","code","decimal","amount","note"],[1,"border-bottom","border-dark"],["class","border-top border-dark p-0 pt-1 pe-1",4,"ngFor","ngForOf"],[1,"border-top","border-dark","p-0","pt-1","pe-1"],[1,"row"],["class","col-md-12",4,"ngIf"],[1,"col-md-12"],[1,"table","table-borderless","table-sm","float-end","border-bottom","border-dark"],[4,"ngFor","ngForOf"],[1,"text-end"],[2,"width","10px"],[1,"text-end",2,"width","80px"],[1,"m-0","fw-bold"],[3,"innerHTML"],[1,"d-flex","justify-content-center","fw-bold",3,"innerHtml"]],template:function(I,A){1&I&&(e._UZ(0,"link",0)(1,"link",1),e.YNc(2,v,25,28,"div",2)),2&I&&(e.xp6(2),e.Q6J("ngIf",A.data))},dependencies:function(){return[T.sg,T.O5,J,T.JJ,T.uU,y.qU,y.sH,y.Qc,y.zX]},styles:[".UOMWidth[_ngcontent-%COMP%]{width:40px!important;font-size:10px;font-style:italic}.sellPayment[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{font-size:55px}div.print_container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:10px!important}.invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}"]})),x})(),Q=(()=>{var p;class x{}return p=x,(0,d.Z)(x,"\u0275fac",function(I){return new(I||p)}),(0,d.Z)(x,"\u0275mod",e.oAB({type:p})),(0,d.Z)(x,"\u0275inj",e.cJS({imports:[T.ez,y.dr]})),x})()},92138:(tn,D,P)=>{P.d(D,{Y:()=>Rt,o:()=>Lt});var d=P(81180),T=P(96814),y=P(86864),e=P(74297),a=P(36842),n=P(65879),N=P(64190),J=P(96244);const t=["barcode"];function S(o,r){if(1&o&&n._UZ(0,"POS-print-mode",5),2&o){const i=n.oxw();n.Q6J("paperPrints",i.paperPrintMode)("paperType","A4")}}const R=function(o){return{width:o}};function L(o,r){if(1&o&&n._UZ(0,"img",54),2&o){const i=n.oxw(4);n.Akn(n.VKq(3,R,(null==i.config||null==i.config.PrintConfigInvoice||null==i.config.PrintConfigInvoice.LogoConfig?null:i.config.PrintConfigInvoice.LogoConfig.UploadedImageResizedWidth)+"px")),n.Q6J("src",i.printTemplate.Logo,n.LSH)}}const b=function(o,r){return{"col-3":o,"col-auto":r}};function Z(o,r){if(1&o&&(n.TgZ(0,"div",52),n.YNc(1,L,1,5,"img",53),n.qZA()),2&o){const i=n.oxw(3);n.Q6J("ngClass",n.WLB(2,b,i.printTemplate.Name,!i.printTemplate.Name)),n.xp6(1),n.Q6J("ngIf",i.printTemplate.Logo)}}const M=function(o,r){return{"col-8":o,col:r}};function O(o,r){if(1&o&&(n.TgZ(0,"div",49),n.YNc(1,Z,2,5,"div",50),n.TgZ(2,"div",51),n._UZ(3,"h2",22)(4,"small",22),n.TgZ(5,"div"),n._UZ(6,"div",22),n.ALo(7,"newlines"),n._UZ(8,"div",22),n.ALo(9,"newlines"),n.qZA()()()),2&o){const i=n.oxw(2);n.xp6(1),n.Q6J("ngIf",i.printTemplate.Logo),n.xp6(1),n.Q6J("ngClass",n.WLB(10,M,i.printTemplate.Name,!i.printTemplate.Name)),n.xp6(1),n.Q6J("innerHtml",i.printTemplate.Name,n.oJD),n.xp6(1),n.Q6J("innerHtml",i.printTemplate.Field,n.oJD),n.xp6(2),n.Q6J("innerHtml",n.lcZ(7,6,i.printTemplate.Address),n.oJD),n.xp6(2),n.Q6J("innerHtml",n.lcZ(9,8,i.printTemplate.ContactInfo),n.oJD)}}function w(o,r){if(1&o&&n._UZ(0,"h3",60),2&o){const i=n.oxw(3);n.Q6J("innerHtml",i.config.PrintConfigInvoice.DocumentLabel.Customer,n.oJD)}}function V(o,r){if(1&o&&(n.TgZ(0,"span",62),n._uU(1),n.qZA()),2&o){const i=n.oxw(4);n.xp6(1),n.hij(" - ",null==i.data?null:i.data.Contact.Code,"")}}function k(o,r){if(1&o&&(n.TgZ(0,"strong")(1,"span"),n._uU(2),n.qZA(),n.YNc(3,V,2,1,"span",61),n.qZA()),2&o){const i=n.oxw(3);n.xp6(2),n.Oqu((null==i.data||null==i.data.Shipping?null:i.data.Shipping.Sender)||(null==i.data?null:i.data.ContactDisplay)),n.xp6(1),n.Q6J("ngIf",(null==i.data?null:i.data.Contact.Code)&&i.config.PrintConfigInvoice.DocumentVisibility.CustomerCodeVisible)}}function H(o,r){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&o){const i=n.oxw(3);n.xp6(1),n.Oqu(null==i.data?null:i.data.Contact.NationalIDNumber)}}function E(o,r){if(1&o&&n._UZ(0,"div",22),2&o){const i=n.oxw(3);n.Q6J("innerHtml",null==i.data?null:i.data.Contact.Email,n.oJD)}}function F(o,r){if(1&o&&(n._UZ(0,"div",22),n.ALo(1,"newlines"),n.ALo(2,"newlines")),2&o){const i=n.oxw(3);n.Q6J("innerHtml",null!=i.data&&null!=i.data.Shipping&&i.data.Shipping.Sender?n.lcZ(1,1,null==i.data||null==i.data.Shipping?null:i.data.Shipping.SenderAddress):n.lcZ(2,3,null==i.data?null:i.data.Contact.Address),n.oJD)}}function B(o,r){if(1&o&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"limitTo"),n.ALo(3,"limitTo"),n.qZA()),2&o){const i=n.oxw(3);n.xp6(1),n.hij(" ",null!=i.data&&null!=i.data.Shipping&&i.data.Shipping.Sender?3==i.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility?"*****"+n.Dn7(2,1,null==i.data||null==i.data.Shipping?null:i.data.Shipping.SenderPhone,4,(null==i.data||null==i.data.Shipping?null:i.data.Shipping.SenderPhone.length)-4):" "+(null==i.data||null==i.data.Shipping?null:i.data.Shipping.SenderPhone):3==i.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility?"*****"+n.Dn7(3,5,null==i.data?null:i.data.Contact.Phone,4,(null==i.data?null:i.data.Contact.Phone.length)-4):" "+(null==i.data?null:i.data.Contact.Phone)," ")}}function j(o,r){if(1&o&&(n.TgZ(0,"div"),n._uU(1),n.ALo(2,"limitTo"),n.ALo(3,"limitTo"),n.qZA()),2&o){const i=n.oxw(3);n.xp6(1),n.hij(" ",null!=i.data&&null!=i.data.Shipping&&i.data.Shipping.Sender?3==i.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility?"*****"+n.Dn7(2,1,null==i.data||null==i.data.Shipping?null:i.data.Shipping.SenderPhone,4,(null==i.data||null==i.data.Shipping?null:i.data.Shipping.SenderPhone.length)-4):" "+(null==i.data||null==i.data.Shipping?null:i.data.Shipping.SenderPhone):3==i.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility?"*****"+n.Dn7(3,5,null==i.data?null:i.data.Contact.PhoneNMobile,4,(null==i.data?null:i.data.Contact.PhoneNMobile.length)-4):" "+(null==i.data?null:i.data.Contact.PhoneNMobile)," ")}}function $(o,r){if(1&o&&n._UZ(0,"div",22),2&o){const i=n.oxw(3);n.Q6J("innerHtml",(null==i.data||null==i.data.Shipping?null:i.data.Shipping.SenderCity)||(null==i.data?null:i.data.Contact.CityName),n.oJD)}}function z(o,r){if(1&o&&(n.TgZ(0,"div",55)(1,"div",56),n.YNc(2,w,1,1,"h3",57),n.TgZ(3,"div",58),n.YNc(4,k,4,2,"strong",14),n.TgZ(5,"div",59),n.YNc(6,H,2,1,"span",14),n.YNc(7,E,1,1,"div",23),n.YNc(8,F,3,5,"div",23),n.YNc(9,B,4,9,"div",14),n.YNc(10,j,4,9,"div",14),n.YNc(11,$,1,1,"div",23),n.qZA()()()()),2&o){const i=n.oxw(2);n.xp6(2),n.Q6J("ngIf",i.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible||i.config.PrintConfigInvoice.DocumentVisibility.CustomerCodeVisible||i.config.PrintConfigInvoice.DocumentVisibility.IdentificationVisible||i.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible||i.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),n.xp6(2),n.Q6J("ngIf",i.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),n.xp6(2),n.Q6J("ngIf",(null==i.data?null:i.data.Contact.NationalIDNumber)&&i.config.PrintConfigInvoice.DocumentVisibility.IdentificationVisible),n.xp6(1),n.Q6J("ngIf",i.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible&&(null==i.data?null:i.data.Contact.Email)),n.xp6(1),n.Q6J("ngIf",i.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),n.xp6(1),n.Q6J("ngIf",1!==i.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility&&null!==(null==i.data?null:i.data.Contact.Phone)),n.xp6(1),n.Q6J("ngIf",1!==i.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility&&null==(null==i.data?null:i.data.Contact.Phone)),n.xp6(1),n.Q6J("ngIf",i.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible)}}function W(o,r){1&o&&(n.ynx(0),n._UZ(1,"img",63,64),n.BQk())}function K(o,r){if(1&o&&(n.TgZ(0,"strong",65),n._uU(1),n.qZA()),2&o){const i=n.oxw(2);n.xp6(1),n.AsE(" ",i.modifiedlabel," ",null==i.data?null:i.data.HeaderTitle," # ")}}function G(o,r){if(1&o&&(n.TgZ(0,"strong",65),n._uU(1),n.qZA()),2&o){const i=n.oxw(2);n.xp6(1),n.hij(" ",i.config.PrintConfigInvoice.HeaderTitle," # ")}}function f(o,r){if(1&o&&n._UZ(0,"span",66),2&o){const i=n.oxw(2);n.Q6J("innerHtml",null==i.data||null==i.data.Invoice?null:i.data.Invoice.Number,n.oJD)}}function v(o,r){if(1&o&&(n.TgZ(0,"strong",65),n._uU(1),n.qZA()),2&o){const i=n.oxw(2);n.xp6(1),n.Oqu(null==i.data?null:i.data.Title)}}function g(o,r){1&o&&(n.TgZ(0,"th"),n._uU(1," Due"),n.qZA())}function Q(o,r){1&o&&(n.TgZ(0,"th"),n._uU(1," ToP"),n.qZA())}function p(o,r){1&o&&(n.TgZ(0,"th"),n._uU(1,"Sales"),n.qZA())}function x(o,r){1&o&&(n.ynx(0),n.TgZ(1,"th"),n._uU(2,"PO#"),n.qZA(),n.BQk())}function _(o,r){if(1&o&&(n._UZ(0,"td",22),n.ALo(1,"date")),2&o){const i=n.oxw(2);n.Q6J("innerHtml",n.xi3(1,1,null==i.data||null==i.data.Invoice?null:i.data.Invoice.Due,"dd MMM yyyy"),n.oJD)}}function I(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw(2);n.Q6J("innerHtml",(null==i.data||null==i.data.Invoice?null:i.data.Invoice.ToP)+" Days",n.oJD)}}function A(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw(2);n.Q6J("innerHtml",null==i.data?null:i.data.SalesName,n.oJD)}}function X(o,r){if(1&o&&(n.ynx(0),n._UZ(1,"td",22),n.BQk()),2&o){const i=n.oxw(2);n.xp6(1),n.Q6J("innerHtml",null==i.data||null==i.data.Order?null:i.data.Order.ReferenceNumber,n.oJD)}}function rn(o,r){if(1&o&&(n.TgZ(0,"div",67),n._UZ(1,"h3",22),n.TgZ(2,"div"),n._uU(3),n._UZ(4,"div",22)(5,"div",22),n.qZA()()),2&o){const i=n.oxw(2);n.Udp("margin-right","15px"),n.xp6(1),n.Q6J("innerHtml",i.config.PrintConfigInvoice.DocumentLabel.ShippingAddress,n.oJD),n.xp6(2),n.AsE(" ",null==i.data||null==i.data.Shipping?null:i.data.Shipping.Name," ",null!=i.data&&null!=i.data.Shipping&&i.data.Shipping.Phone?", "+(null==i.data||null==i.data.Shipping?null:i.data.Shipping.Phone):""," "),n.xp6(1),n.Q6J("innerHtml",null==i.data||null==i.data.Shipping?null:i.data.Shipping.Address,n.oJD),n.xp6(1),n.Q6J("innerHtml",null==i.data||null==i.data.Shipping?null:i.data.Shipping.City,n.oJD)}}const nn=function(){return{width:"80px"}},en=function(){return{width:"65px"}};function _n(o,r){if(1&o&&(n.TgZ(0,"th"),n._uU(1," Category "),n.qZA()),2&o){const i=n.oxw(2);n.Akn(i.printTemplate.PrintLX300&&n.DdM(2,nn)||n.DdM(3,en))}}function dn(o,r){1&o&&(n.TgZ(0,"th"),n._uU(1," Brand "),n.qZA())}function gn(o,r){if(1&o&&(n.TgZ(0,"th"),n._uU(1," Model "),n.qZA()),2&o){const i=n.oxw(2);n.Akn(i.printTemplate.PrintLX300&&n.DdM(2,nn)||n.DdM(3,en))}}const an=function(){return{width:"75px"}};function pn(o,r){if(1&o&&(n.TgZ(0,"th"),n._uU(1),n.qZA()),2&o){const i=n.oxw(2);n.Akn(i.printTemplate.PrintLX300&&n.DdM(3,nn)||n.DdM(4,an)),n.xp6(1),n.hij(" ",i.config.PrintConfigInvoice.ItemsTable.ProductCodeVisibleTitle?i.config.PrintConfigInvoice.ItemsTable.ProductCodeVisibleTitle:"Product Code"," ")}}function sn(o,r){if(1&o&&(n.TgZ(0,"th"),n._uU(1),n.qZA()),2&o){const i=n.oxw(2);n.Akn(i.printTemplate.PrintLX300&&n.DdM(3,nn)||n.DdM(4,an)),n.xp6(1),n.hij(" ",""!=i.config.PrintConfigInvoice.ItemsTable.CodeVisibleTitle?i.config.PrintConfigInvoice.ItemsTable.CodeVisibleTitle:"Code"," ")}}const mn=function(){return{width:"50px"}};function un(o,r){if(1&o&&(n.TgZ(0,"th",68),n._uU(1," Qty "),n.qZA()),2&o){const i=n.oxw(2);n.Akn(i.printTemplate.PrintLX300&&n.DdM(2,mn)||n.DdM(3,en))}}function fn(o,r){if(1&o&&(n.TgZ(0,"th",69),n._uU(1),n.qZA()),2&o){const i=n.oxw(2);n.xp6(1),n.hij(" ",null==i.config.ModuleSell?null:i.config.ModuleSell.ProductDialog.UnitQtyLabel," ")}}function Cn(o,r){if(1&o&&(n.TgZ(0,"th",70),n._uU(1),n.qZA()),2&o){const i=n.oxw(2);n.xp6(1),n.hij(" ",""!=i.config.PrintConfigInvoice.ItemsTable.UOMVisibleTitle?i.config.PrintConfigInvoice.ItemsTable.UOMVisibleTitle:"UOM"," ")}}const Pn=function(){return{width:"110px"}};function xn(o,r){if(1&o&&(n.TgZ(0,"th",71),n._uU(1),n.qZA()),2&o){const i=n.oxw(2);n.Akn(i.printTemplate.PrintLX300&&n.DdM(3,Pn)||n.DdM(4,nn)),n.xp6(1),n.hij(" Price (",null==i.data?null:i.data.CurrencySymbol,") ")}}function On(o,r){1&o&&(n.TgZ(0,"th",72),n._uU(1," Disc "),n.qZA())}const Mn=function(){return{width:"155px"}},vn=function(){return{width:"90px"}};function hn(o,r){if(1&o&&(n.TgZ(0,"th",71),n._uU(1),n.qZA()),2&o){const i=n.oxw(2);n.Akn(i.printTemplate.PrintLX300&&n.DdM(3,Mn)||n.DdM(4,vn)),n.xp6(1),n.hij(" Total (",null==i.data?null:i.data.CurrencySymbol,") ")}}function bn(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.Category,n.oJD)}}function Tn(o,r){if(1&o&&(n._UZ(0,"p",22),n.ALo(1,"SafeHtml")),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",n.lcZ(1,1,i.Note),n.oJD)}}function Zn(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.ProductBrand,n.oJD)}}function In(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.Model,n.oJD)}}function yn(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.ProductCode,n.oJD)}}function An(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.Code,n.oJD)}}function wn(o,r){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&o){const i=n.oxw(2).$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,i.Quantity)," ")}}function Jn(o,r){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&o){const i=n.oxw(2).$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,i.Quantity)," ")}}function Qn(o,r){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&o){const i=n.oxw(2).$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,i.Quantity)," ")}}function Dn(o,r){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&o){const i=n.oxw(2).$implicit;n.xp6(1),n.hij(" x ",n.lcZ(2,1,i.UnitQuantity),"")}}function Nn(o,r){if(1&o&&(n.TgZ(0,"td",71),n.YNc(1,wn,3,3,"span",14),n.YNc(2,Jn,3,3,"span",14),n.YNc(3,Qn,3,3,"span",14),n.YNc(4,Dn,3,3,"span",14),n.qZA()),2&o){const i=n.oxw().$implicit,C=n.oxw(2);n.xp6(1),n.Q6J("ngIf",C.config.PrintConfigInvoice.ItemsTable.NonInventoryCount&&2!=i.TypeID),n.xp6(1),n.Q6J("ngIf",2==i.TypeID&&C.config.PrintConfigInvoice.ItemsTable.NonInventoryCount),n.xp6(1),n.Q6J("ngIf",!C.config.PrintConfigInvoice.ItemsTable.NonInventoryCount),n.xp6(1),n.Q6J("ngIf",1!=i.UnitQuantity&&C.config.PrintConfigInvoice.ItemsTable.UnitQuantityVisible)}}function Un(o,r){if(1&o&&(n.TgZ(0,"td"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&o){const i=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,i.Quantity*i.UnitQuantity)," ")}}function Sn(o,r){if(1&o&&n._UZ(0,"td",79),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.UOMName,n.oJD)}}function Rn(o,r){if(1&o&&(n._UZ(0,"td",80),n.ALo(1,"number")),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",n.lcZ(1,1,i.UnitPrice),n.oJD)}}function Ln(o,r){if(1&o&&(n.TgZ(0,"td",71),n._UZ(1,"div",81)(2,"div",81),n.ALo(3,"number"),n.qZA()),2&o){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("innerHtml",i.Discount?-i.Discount+"%":"",n.oJD),n.xp6(1),n.Q6J("innerHtml",i.DiscountAmount?"-"+n.lcZ(3,2,i.DiscountAmount):"",n.oJD)}}function Vn(o,r){if(1&o&&(n._UZ(0,"td",80),n.ALo(1,"number")),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",n.lcZ(1,1,i.Total),n.oJD)}}function kn(o,r){if(1&o&&(n.TgZ(0,"tr"),n._UZ(1,"td",22),n.YNc(2,bn,1,1,"td",23),n.TgZ(3,"td",73),n._UZ(4,"span",74)(5,"app-serial-note",75),n.YNc(6,Tn,2,3,"p",23),n.qZA(),n.YNc(7,Zn,1,1,"td",23),n.YNc(8,In,1,1,"td",23),n.YNc(9,yn,1,1,"td",23),n.YNc(10,An,1,1,"td",23),n.YNc(11,Nn,5,4,"td",76),n.YNc(12,Un,3,3,"td",14),n.YNc(13,Sn,1,1,"td",77),n.YNc(14,Rn,2,3,"td",78),n.YNc(15,Ln,4,4,"td",76),n.YNc(16,Vn,2,3,"td",78),n.qZA()),2&o){const i=r.$implicit,C=r.index,u=n.oxw(2);n.xp6(1),n.Q6J("innerHtml",C+1,n.oJD),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigGeneral.Visibility.CategoryVisible),n.xp6(2),n.Q6J("innerHtml",u.config.PrintConfigOthers.OrderCartDisplayedField?i.ProductName:i.Name,n.oJD),n.xp6(1),n.Q6J("serials",i.Serial),n.xp6(1),n.Q6J("ngIf",i.Note&&u.config.PrintConfigInvoice.ItemsTable.NoteItemVisible),n.xp6(1),n.Q6J("ngIf",null==u.config.ModuleSell?null:u.config.ModuleSell.Grid.ShowBrandItemCart),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigOthers.OrderCartDisplayedField),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigInvoice.ItemsTable.ProductCodeWithCodeVariantVisible),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigInvoice.ItemsTable.CodeVisible),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigInvoice.ItemsTable.QuantityVisible),n.xp6(1),n.Q6J("ngIf",(null==u.config.ModuleSell?null:u.config.ModuleSell.ProductDialog.UnitQtyLabel)&&u.config.PrintConfigInvoice.ItemsTable.UnitQuantityMultiplicationVisible),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigInvoice.ItemsTable.UOMVisible),n.xp6(1),n.Q6J("ngIf",u.amountVisible&&u.config.PrintConfigInvoice.ItemsTable.UnitPriceVisible),n.xp6(1),n.Q6J("ngIf",u.amountVisible&&u.config.PrintConfigInvoice.ItemsTable.PercentageVisible&&u.isDiscColumnVisible),n.xp6(1),n.Q6J("ngIf",null!=i.Total&&u.amountVisible)}}function qn(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.Category,n.oJD)}}function Yn(o,r){if(1&o&&(n._UZ(0,"p",22),n.ALo(1,"newlines")),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",n.lcZ(1,1,i.Note),n.oJD)}}function Hn(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.ProductBrand,n.oJD)}}function En(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.Model,n.oJD)}}function Fn(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.ProductCode,n.oJD)}}function Bn(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.Code,n.oJD)}}function jn(o,r){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&o){const i=n.oxw(2).$implicit;n.xp6(1),n.hij(" x ",n.lcZ(2,1,i.UnitQuantity),"")}}function $n(o,r){if(1&o&&(n.TgZ(0,"td",71),n._uU(1),n.ALo(2,"number"),n.YNc(3,jn,3,3,"span",14),n.qZA()),2&o){const i=n.oxw().$implicit,C=n.oxw(2);n.xp6(1),n.hij(" ",n.lcZ(2,2,i.Quantity)," "),n.xp6(2),n.Q6J("ngIf",1!=i.UnitQuantity&&C.config.PrintConfigInvoice.ItemsTable.UnitQuantityVisible)}}function ln(o,r){if(1&o&&(n.TgZ(0,"td"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&o){const i=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,i.Quantity*i.UnitQuantity)," ")}}function zn(o,r){if(1&o&&n._UZ(0,"td",84),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.UOMName,n.oJD)}}function Wn(o,r){if(1&o&&(n._UZ(0,"td",80),n.ALo(1,"number")),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",n.lcZ(1,1,i.UnitPrice),n.oJD)}}function l(o,r){if(1&o&&(n.TgZ(0,"td",71),n._UZ(1,"div",81)(2,"div",81),n.ALo(3,"number"),n.qZA()),2&o){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("innerHtml",i.Discount?-i.Discount+"%":"",n.oJD),n.xp6(1),n.Q6J("innerHtml",i.DiscountAmount?"-"+n.lcZ(3,2,i.DiscountAmount):"",n.oJD)}}function s(o,r){if(1&o&&(n._UZ(0,"td",80),n.ALo(1,"TrailingZero"),n.ALo(2,"number")),2&o){const i=n.oxw().$implicit,C=n.oxw(2);n.Q6J("innerHtml",n.xi3(1,1,n.lcZ(2,4,i.Total),null==C.data?null:C.data.TrailingZero),n.oJD)}}function c(o,r){if(1&o&&(n.TgZ(0,"tr",82),n._UZ(1,"td",22),n.YNc(2,qn,1,1,"td",23),n.TgZ(3,"td"),n._UZ(4,"span",22),n.YNc(5,Yn,2,3,"p",23),n.qZA(),n.YNc(6,Hn,1,1,"td",23),n.YNc(7,En,1,1,"td",23),n.YNc(8,Fn,1,1,"td",23),n.YNc(9,Bn,1,1,"td",23),n.YNc(10,$n,4,4,"td",76),n.YNc(11,ln,3,3,"td",14),n.YNc(12,zn,1,1,"td",83),n.YNc(13,Wn,2,3,"td",78),n.YNc(14,l,4,4,"td",76),n.YNc(15,s,3,6,"td",78),n.qZA()),2&o){const i=r.$implicit,C=r.index,u=n.oxw(2);n.xp6(1),n.Q6J("innerHtml",u.cart.Main.length+C+1,n.oJD),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigGeneral.Visibility.CategoryVisible),n.xp6(2),n.Q6J("innerHtml",u.config.PrintConfigOthers.OrderCartDisplayedField?i.ProductName:i.Name,n.oJD),n.xp6(1),n.Q6J("ngIf",i.Note&&i.Note&&(u.config.PrintConfigInvoice.ItemsTable.NoteItemVisible||u.config.POS.Default.PromotionVisible)),n.xp6(1),n.Q6J("ngIf",null==u.config.ModuleSell?null:u.config.ModuleSell.Grid.ShowBrandItemCart),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigOthers.OrderCartDisplayedField),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigInvoice.ItemsTable.ProductCodeWithCodeVariantVisible),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigInvoice.ItemsTable.CodeVisible),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigInvoice.ItemsTable.QuantityVisible),n.xp6(1),n.Q6J("ngIf",(null==u.config.ModuleSell?null:u.config.ModuleSell.ProductDialog.UnitQtyLabel)&&u.config.PrintConfigInvoice.ItemsTable.UnitQuantityMultiplicationVisible),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigInvoice.ItemsTable.UOMVisible),n.xp6(1),n.Q6J("ngIf",u.amountVisible&&u.config.PrintConfigInvoice.ItemsTable.UnitPriceVisible),n.xp6(1),n.Q6J("ngIf",u.amountVisible&&u.config.PrintConfigInvoice.ItemsTable.PercentageVisible),n.xp6(1),n.Q6J("ngIf",null!=i.Total&&u.amountVisible)}}function m(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.Category,n.oJD)}}function h(o,r){if(1&o&&(n._UZ(0,"p",86),n.ALo(1,"SafeHtml")),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",n.lcZ(1,1,i.Note),n.oJD)}}function q(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.ProductBrand,n.oJD)}}function on(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.Model,n.oJD)}}function cn(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.ProductCode,n.oJD)}}function Gn(o,r){if(1&o&&n._UZ(0,"td",22),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.Code,n.oJD)}}function Xn(o,r){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&o){const i=n.oxw(2).$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,i.Quantity)," ")}}function nt(o,r){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&o){const i=n.oxw(2).$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,i.Quantity)," ")}}function tt(o,r){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&o){const i=n.oxw(2).$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,i.Quantity)," ")}}function it(o,r){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&o){const i=n.oxw(2).$implicit;n.xp6(1),n.hij(" x ",n.lcZ(2,1,i.UnitQuantity),"")}}function et(o,r){if(1&o&&(n.TgZ(0,"td",71),n.YNc(1,Xn,3,3,"span",14),n.YNc(2,nt,3,3,"span",14),n.YNc(3,tt,3,3,"span",14),n.YNc(4,it,3,3,"span",14),n.qZA()),2&o){const i=n.oxw().$implicit,C=n.oxw(2);n.xp6(1),n.Q6J("ngIf",C.config.PrintConfigInvoice.ItemsTable.NonInventoryCount&&2!=i.TypeID),n.xp6(1),n.Q6J("ngIf",2==i.TypeID&&C.config.PrintConfigInvoice.ItemsTable.NonInventoryCount),n.xp6(1),n.Q6J("ngIf",!C.config.PrintConfigInvoice.ItemsTable.NonInventoryCount),n.xp6(1),n.Q6J("ngIf",1!=i.UnitQuantity&&C.config.PrintConfigInvoice.ItemsTable.UnitQuantityVisible)}}function ot(o,r){if(1&o&&(n.TgZ(0,"td"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&o){const i=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,i.Quantity*i.UnitQuantity)," ")}}function ct(o,r){if(1&o&&n._UZ(0,"td",79),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",i.UOMName,n.oJD)}}function at(o,r){if(1&o&&(n._UZ(0,"td",80),n.ALo(1,"number")),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",n.lcZ(1,1,i.UnitPrice),n.oJD)}}function lt(o,r){if(1&o&&(n.TgZ(0,"td",71),n._UZ(1,"div",81)(2,"div",81),n.ALo(3,"number"),n.qZA()),2&o){const i=n.oxw().$implicit;n.xp6(1),n.Q6J("innerHtml",i.Discount?-i.Discount+"%":"",n.oJD),n.xp6(1),n.Q6J("innerHtml",i.DiscountAmount?"-"+n.lcZ(3,2,i.DiscountAmount):"",n.oJD)}}function rt(o,r){if(1&o&&(n._UZ(0,"td",80),n.ALo(1,"TrailingZero"),n.ALo(2,"number")),2&o){const i=n.oxw().$implicit,C=n.oxw(2);n.Q6J("innerHtml",n.xi3(1,1,n.lcZ(2,4,i.Total),C.config.PrintConfigGeneral.TrailingZero),n.oJD)}}function _t(o,r){if(1&o&&(n.TgZ(0,"tr"),n._UZ(1,"td",22),n.YNc(2,m,1,1,"td",23),n.TgZ(3,"td",73),n._UZ(4,"span",22),n.YNc(5,h,2,3,"p",85),n.qZA(),n.YNc(6,q,1,1,"td",23),n.YNc(7,on,1,1,"td",23),n.YNc(8,cn,1,1,"td",23),n.YNc(9,Gn,1,1,"td",23),n.YNc(10,et,5,4,"td",76),n.YNc(11,ot,3,3,"td",14),n.YNc(12,ct,1,1,"td",77),n.YNc(13,at,2,3,"td",78),n.YNc(14,lt,4,4,"td",76),n.YNc(15,rt,3,6,"td",78),n.qZA()),2&o){const i=r.$implicit,C=r.index,u=n.oxw(2);n.xp6(1),n.Q6J("innerHtml",C+1,n.oJD),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigGeneral.Visibility.CategoryVisible),n.xp6(2),n.Q6J("innerHtml",u.config.PrintConfigOthers.OrderCartDisplayedField?i.ProductName:i.Name,n.oJD),n.xp6(1),n.Q6J("ngIf",i.Note&&u.config.PrintConfigInvoice.ItemsTable.NoteItemVisible),n.xp6(1),n.Q6J("ngIf",null==u.config.ModuleSell?null:u.config.ModuleSell.Grid.ShowBrandItemCart),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigOthers.OrderCartDisplayedField),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigInvoice.ItemsTable.ProductCodeWithCodeVariantVisible),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigInvoice.ItemsTable.CodeVisible),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigInvoice.ItemsTable.QuantityVisible),n.xp6(1),n.Q6J("ngIf",(null==u.config.ModuleSell?null:u.config.ModuleSell.ProductDialog.UnitQtyLabel)&&u.config.PrintConfigInvoice.ItemsTable.UnitQuantityMultiplicationVisible),n.xp6(1),n.Q6J("ngIf",u.config.PrintConfigInvoice.ItemsTable.UOMVisible),n.xp6(1),n.Q6J("ngIf",u.amountVisible&&u.config.PrintConfigInvoice.ItemsTable.UnitPriceVisible),n.xp6(1),n.Q6J("ngIf",u.amountVisible&&u.config.PrintConfigInvoice.ItemsTable.PercentageVisible&&u.isDiscColumnVisible),n.xp6(1),n.Q6J("ngIf",null!=i.Total&&u.amountVisible)}}function dt(o,r){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&o){const i=n.oxw().index,C=n.oxw(3);n.xp6(1),n.hij(" ",0==i&&(null==C.data?null:C.data.Items.length)>1?"Qty: "+C.totalItemsLabel:"","")}}function gt(o,r){if(1&o&&(n.TgZ(0,"tr")(1,"th",87),n.YNc(2,dt,2,1,"span",14),n._uU(3),n.qZA(),n.TgZ(4,"th"),n._uU(5,":"),n.qZA(),n.TgZ(6,"th",88),n._uU(7),n.qZA(),n.TgZ(8,"th",70),n._uU(9),n.ALo(10,"TrailingZero"),n.ALo(11,"number"),n.qZA()()),2&o){const i=r.$implicit,C=r.index,u=n.oxw(3);n.xp6(2),n.Q6J("ngIf",u.config.PrintConfigInvoice.ItemsFooter.TotalQuantityVisible),n.xp6(1),n.hij(" ",(null==u.data?null:u.data.Payments.length)>1&&u.change>0&&C==(null==u.data?null:u.data.AmountSummary.length)-2?"Payment":i.Label," "),n.xp6(4),n.Oqu(i.CurrencySymbol),n.xp6(2),n.hij(" ",n.xi3(10,4,n.lcZ(11,7,i.Amount),null==u.data?null:u.data.TrailingZero),"")}}function pt(o,r){if(1&o&&(n.TgZ(0,"tbody"),n.YNc(1,gt,12,9,"tr",37),n.qZA()),2&o){const i=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",null==i.data?null:i.data.AmountSummary)}}function st(o,r){if(1&o&&(n.TgZ(0,"tr")(1,"th"),n._uU(2),n.qZA(),n.TgZ(3,"td"),n._uU(4,":"),n.qZA(),n.TgZ(5,"td",88),n._uU(6),n.qZA(),n.TgZ(7,"td",89),n._uU(8),n.ALo(9,"TrailingZero"),n.ALo(10,"number"),n.qZA()()),2&o){const i=r.$implicit,C=n.oxw(2);n.xp6(2),n.Oqu(i.Label),n.xp6(4),n.Oqu(i.CurrencySymbol),n.xp6(2),n.Oqu(n.xi3(9,3,n.lcZ(10,6,i.Amount),null==C.data?null:C.data.TrailingZero))}}function mt(o,r){if(1&o&&(n._UZ(0,"td",22),n.ALo(1,"newlines")),2&o){const i=n.oxw(4);n.Q6J("innerHtml",n.lcZ(1,1,null==i.data?null:i.data.TotalInWord),n.oJD)}}function ut(o,r){if(1&o&&(n.TgZ(0,"tr"),n._UZ(1,"th",92),n.TgZ(2,"td"),n._uU(3,":"),n.qZA(),n.YNc(4,mt,2,3,"td",23),n.qZA()),2&o){const i=n.oxw(3);n.xp6(1),n.Q6J("innerHtml",i.config.PrintConfigGeneral.Wordify.WordifyLanguageDefault?"Wordify":"Terbilang",n.oJD),n.xp6(3),n.Q6J("ngIf",null==i.data?null:i.data.TotalInWord)}}function ft(o,r){if(1&o&&(n.TgZ(0,"tr"),n._UZ(1,"th",92),n.TgZ(2,"td"),n._uU(3,":"),n.qZA(),n._UZ(4,"td",22),n.ALo(5,"date"),n.qZA()),2&o){const i=n.oxw(3);n.xp6(1),n.Q6J("innerHtml",null==i.config.ModuleSell?null:i.config.ModuleSell.Shipping.DateLabel,n.oJD),n.xp6(3),n.Q6J("innerHtml",n.xi3(5,2,null==i.data||null==i.data.Invoice?null:i.data.Invoice.CustomDateField,"dd MMM yyyy (HH:mm)"),n.oJD)}}function Ct(o,r){if(1&o&&(n._UZ(0,"span",22),n.ALo(1,"date")),2&o){const i=n.oxw().$implicit;n.Q6J("innerHtml",n.xi3(1,1,i.Date,"dd MMM yy")+" ~ ",n.oJD)}}function Pt(o,r){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"limitTo"),n.qZA()),2&o){const i=n.oxw().$implicit,C=n.oxw(4);n.xp6(1),n.hij(" ",3==C.config.PrintConfigInvoice.DocumentVisibility.PaymentCode?"- ***"+n.Dn7(2,1,i.Code,4,i.Code.length-4):"- "+i.Code," ")}}function xt(o,r){if(1&o&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&o){const i=n.oxw().$implicit;n.xp6(1),n.hij(" ",i.Note?i.Note:""," ")}}function Ot(o,r){if(1&o&&(n.TgZ(0,"span"),n.YNc(1,Ct,2,4,"span",23),n.ALo(2,"checkPropValueIsSame"),n.TgZ(3,"span"),n._uU(4),n.qZA(),n.YNc(5,Pt,3,5,"span",14),n.YNc(6,xt,2,1,"span",14),n._uU(7),n.ALo(8,"number"),n._UZ(9,"br"),n.qZA()),2&o){const i=r.$implicit,C=n.oxw(4);n.xp6(1),n.Q6J("ngIf",!n.xi3(2,5,null==C.data?null:C.data.Payments,"Date")),n.xp6(3),n.Oqu(i.MethodName),n.xp6(1),n.Q6J("ngIf",(null==i?null:i.Code)&&1!=C.config.PrintConfigInvoice.DocumentVisibility.PaymentCode),n.xp6(1),n.Q6J("ngIf",C.config.PrintConfigInvoice.DocumentVisibility.PaymentNoteVisible),n.xp6(1),n.hij(" ",i.Amount<(null==C.data?null:C.data.FinalAmount)?" - "+n.lcZ(8,8,C.change>0?i.PaidAmount:i.Amount):""," ")}}function Mt(o,r){if(1&o&&(n.TgZ(0,"tr"),n._UZ(1,"th",92),n.TgZ(2,"td"),n._uU(3,":"),n.qZA(),n.TgZ(4,"td"),n.YNc(5,Ot,10,10,"span",37),n.qZA()()),2&o){const i=n.oxw(3);n.xp6(1),n.Q6J("innerHtml",2==(null==i.data||null==i.data.Invoice?null:i.data.Invoice.PaymentStateID)?"Down Payment":"Payment",n.oJD),n.xp6(4),n.Q6J("ngForOf",null==i.data?null:i.data.Payments)}}function vt(o,r){if(1&o&&(n.TgZ(0,"tr")(1,"th",20),n._uU(2),n.qZA(),n.TgZ(3,"td"),n._uU(4," :"),n.qZA(),n._UZ(5,"td",22),n.ALo(6,"number"),n.ALo(7,"sum"),n.qZA()),2&o){const i=n.oxw(3);n.xp6(2),n.Oqu(i.config.PrintConfigInvoice.Footer.LabelRemaining?i.config.PrintConfigInvoice.Footer.LabelRemaining:"Remaining"),n.xp6(3),n.Q6J("innerHtml",n.lcZ(6,2,(null==i.data?null:i.data.FinalAmount)-n.xi3(7,4,null==i.data?null:i.data.Payments,"Amount")),n.oJD)}}function ht(o,r){if(1&o&&(n.TgZ(0,"tr")(1,"th",20),n._uU(2," Delivery"),n.qZA(),n.TgZ(3,"td"),n._uU(4," :"),n.qZA(),n._UZ(5,"td",22),n.qZA()),2&o){const i=n.oxw(3);n.xp6(5),n.Q6J("innerHtml",null==i.data||null==i.data.Order?null:i.data.Order.DeliveryStateString,n.oJD)}}function bt(o,r){if(1&o&&(n.TgZ(0,"tr")(1,"th",20),n._uU(2,"Note"),n.qZA(),n.TgZ(3,"td"),n._uU(4,":"),n.qZA(),n._UZ(5,"td",93),n.ALo(6,"newlines"),n.ALo(7,"newlines"),n.qZA()),2&o){const i=n.oxw(3);n.xp6(5),n.Q6J("innerHtml",null!=i.data&&null!=i.data.Invoice&&i.data.Invoice.Note?n.lcZ(6,1,null==i.data||null==i.data.Invoice?null:i.data.Invoice.Note):n.lcZ(7,3,null==i.data||null==i.data.Order?null:i.data.Order.Note),n.oJD)}}function Tt(o,r){if(1&o&&(n.TgZ(0,"tr")(1,"th",20),n._uU(2,"Point"),n.qZA(),n.TgZ(3,"td"),n._uU(4,":"),n.qZA(),n._UZ(5,"td",22),n.qZA()),2&o){const i=n.oxw(3);n.xp6(5),n.Q6J("innerHtml",null==i.data?null:i.data.LoyaltyPoint,n.oJD)}}function Zt(o,r){if(1&o&&(n.TgZ(0,"div",17)(1,"div",90)(2,"table",91),n.YNc(3,ut,5,2,"tr",14),n.YNc(4,ft,6,5,"tr",14),n.YNc(5,Mt,6,2,"tr",14),n.YNc(6,vt,8,7,"tr",14),n.YNc(7,ht,6,1,"tr",14),n.YNc(8,bt,8,5,"tr",14),n.YNc(9,Tt,6,1,"tr",14),n.qZA()()()),2&o){const i=n.oxw(2);n.xp6(3),n.Q6J("ngIf",i.config.PrintConfigGeneral.Wordify.WordifyTotalAmountVisible&&!i.workOrderMode),n.xp6(1),n.Q6J("ngIf","0001-01-01T00:00:00"!=(null==i.data||null==i.data.Invoice?null:i.data.Invoice.CustomDateField)),n.xp6(1),n.Q6J("ngIf",i.config.PrintConfigInvoice.Footer.PaymentMethodVisible&&!i.workOrderMode&&(null==i.data?null:i.data.Payments.length)),n.xp6(1),n.Q6J("ngIf",null!=(null==i.data||null==i.data.Invoice?null:i.data.Invoice.PaymentStateID)&&(null==i.data||null==i.data.Invoice?null:i.data.Invoice.PaymentStateID)<3),n.xp6(1),n.Q6J("ngIf",3!=(null==i.data||null==i.data.Order?null:i.data.Order.DeliveryStateID)&&i.config.PrintConfigInvoice.Footer.DeliveryInfoVisible),n.xp6(1),n.Q6J("ngIf",i.config.PrintConfigInvoice.Footer.NoteVisible&&((null==i.data||null==i.data.Invoice?null:i.data.Invoice.Note)||(null==i.data||null==i.data.Order?null:i.data.Order.Note))),n.xp6(1),n.Q6J("ngIf",(null==i.data?null:i.data.LoyaltyPoint)&&(null==i.config||null==i.config.PrintConfigInvoice?null:i.config.PrintConfigInvoice.Footer.ShowLoyaltyPoint))}}function It(o,r){if(1&o&&(n.TgZ(0,"div",97),n._UZ(1,"h5",98),n.TgZ(2,"div",99),n._uU(3," \xa0 "),n.qZA()()),2&o){const i=n.oxw(3);n.xp6(1),n.Q6J("innerHtml",i.config.PrintConfigInvoice.Signature.Column1,n.oJD)}}function yt(o,r){if(1&o&&(n.TgZ(0,"div",97),n._UZ(1,"h5",98),n.TgZ(2,"div",99),n._uU(3," \xa0 "),n.qZA()()),2&o){const i=n.oxw(3);n.xp6(1),n.Q6J("innerHtml",i.config.PrintConfigInvoice.Signature.Column2,n.oJD)}}function At(o,r){if(1&o&&(n.TgZ(0,"div",97),n._UZ(1,"h5",98),n.TgZ(2,"div",99),n._uU(3," \xa0 "),n.qZA()()),2&o){const i=n.oxw(3);n.xp6(1),n.Q6J("innerHtml",i.config.PrintConfigInvoice.Signature.Column3,n.oJD)}}function wt(o,r){if(1&o&&(n.TgZ(0,"div",97),n._UZ(1,"h5",98),n.TgZ(2,"div",99),n._uU(3," \xa0 "),n.qZA()()),2&o){const i=n.oxw(3);n.xp6(1),n.Q6J("innerHtml",i.config.PrintConfigInvoice.Signature.Column4,n.oJD)}}function Jt(o,r){if(1&o&&(n.TgZ(0,"div",94)(1,"div",95),n.YNc(2,It,4,1,"div",96),n.YNc(3,yt,4,1,"div",96),n.YNc(4,At,4,1,"div",96),n.YNc(5,wt,4,1,"div",96),n.qZA()()),2&o){const i=n.oxw(2);n.xp6(2),n.Q6J("ngIf",i.config.PrintConfigInvoice.Signature.Column1),n.xp6(1),n.Q6J("ngIf",i.config.PrintConfigInvoice.Signature.Column2),n.xp6(1),n.Q6J("ngIf",i.config.PrintConfigInvoice.Signature.Column3),n.xp6(1),n.Q6J("ngIf",i.config.PrintConfigInvoice.Signature.Column4)}}function Qt(o,r){if(1&o&&(n._UZ(0,"div",100),n.ALo(1,"SafeHtml")),2&o){const i=n.oxw(2);n.Q6J("innerHtml",n.lcZ(1,1,i.printTemplate.FooterRight?i.printTemplate.FooterRight:""),n.oJD)}}function Dt(o,r){if(1&o&&(n.TgZ(0,"small",101),n._uU(1),n.qZA()),2&o){const i=n.oxw(2);n.xp6(1),n.AsE(" Print by: ",null==i.data?null:i.data.PrintPerson,", ",null==i.data?null:i.data.PrintTime," ")}}const Nt=function(o){return{"full-mode":o}};function Ut(o,r){if(1&o&&(n.TgZ(0,"div",6)(1,"div",7)(2,"div",8),n.YNc(3,O,10,13,"div",9),n.YNc(4,z,12,8,"div",10),n.qZA(),n.TgZ(5,"div",11)(6,"div",12)(7,"div",13),n.YNc(8,W,3,0,"ng-container",14),n.qZA(),n.TgZ(9,"div",13),n.YNc(10,K,2,2,"strong",15),n.YNc(11,G,2,1,"strong",15),n.YNc(12,f,1,1,"span",16),n.YNc(13,v,2,1,"strong",15),n.qZA(),n.TgZ(14,"div",13)(15,"div",17)(16,"div",18)(17,"table",19)(18,"thead",20)(19,"tr")(20,"th"),n._uU(21,"Date"),n.qZA(),n.YNc(22,g,2,0,"th",14),n.YNc(23,Q,2,0,"th",14),n.YNc(24,p,2,0,"th",14),n.YNc(25,x,3,0,"ng-container",14),n.qZA()(),n.TgZ(26,"tbody")(27,"tr",21),n._UZ(28,"td",22),n.ALo(29,"date"),n.YNc(30,_,2,4,"td",23),n.YNc(31,I,1,1,"td",23),n.YNc(32,A,1,1,"td",23),n.YNc(33,X,2,1,"ng-container",14),n.qZA()()()()()()(),n.TgZ(34,"div",24),n.YNc(35,rn,6,7,"div",25),n.qZA()()(),n.TgZ(36,"div",26)(37,"div",27)(38,"table",28)(39,"thead",29)(40,"tr")(41,"th",30),n._uU(42," No "),n.qZA(),n.YNc(43,_n,2,4,"th",31),n.TgZ(44,"th"),n._uU(45," Name "),n.qZA(),n.YNc(46,dn,2,0,"th",14),n.YNc(47,gn,2,4,"th",31),n.YNc(48,pn,2,5,"th",31),n.YNc(49,sn,2,5,"th",31),n.YNc(50,un,2,4,"th",32),n.YNc(51,fn,2,1,"th",33),n.YNc(52,Cn,2,1,"th",34),n.YNc(53,xn,2,5,"th",35),n.YNc(54,On,2,0,"th",36),n.YNc(55,hn,2,5,"th",35),n.qZA()(),n.TgZ(56,"tbody"),n.YNc(57,kn,17,15,"tr",37),n.YNc(58,c,16,14,"tr",38),n.YNc(59,_t,16,14,"tr",37),n.qZA()()(),n.TgZ(60,"div",39)(61,"table",40),n.YNc(62,pt,2,1,"tbody",14),n.TgZ(63,"tbody"),n.YNc(64,st,11,8,"tr",37),n.qZA()()()(),n.YNc(65,Zt,10,7,"div",41),n.TgZ(66,"div",17),n.YNc(67,Jt,6,4,"div",42),n.qZA(),n.TgZ(68,"div",43),n._UZ(69,"div",44),n.ALo(70,"SafeHtml"),n.YNc(71,Qt,2,3,"div",45),n.qZA(),n.TgZ(72,"div",46)(73,"div",47),n.YNc(74,Dt,2,2,"small",48),n.qZA()()()),2&o){const i=n.oxw();n.MT6("",i.printTemplate.CssClass," ",i.workOrderMode?"workorder_container":"invoice_print_container"," printing d-print-block"),n.Q6J("ngClass",n.VKq(51,Nt,i.fullMode&&(null==i.config||null==i.config.PrintConfigInvoice||null==i.config.PrintConfigInvoice.A4PaperConfig?null:i.config.PrintConfigInvoice.A4PaperConfig.DockBottom))),n.xp6(3),n.Q6J("ngIf",i.config.PrintConfigInvoice.DocumentVisibility.CompanyVisible),n.xp6(1),n.Q6J("ngIf",(null==i.data||null==i.data.Shipping?null:i.data.Shipping.Sender)||(null==i.data?null:i.data.ContactDisplay)),n.xp6(4),n.Q6J("ngIf",2==(null==i.config||null==i.config.PrintConfigInvoice||null==i.config.PrintConfigInvoice.InvoiceQR?null:i.config.PrintConfigInvoice.InvoiceQR.TransformTo)&&!i.hidebarcodeunderminimum),n.xp6(2),n.Q6J("ngIf",null==(null==i.data?null:i.data.Title)&&!(null!=i.data&&i.data.IsInvoiceAndDelivery)),n.xp6(1),n.Q6J("ngIf",null==(null==i.data?null:i.data.Title)&&(null==i.data?null:i.data.IsInvoiceAndDelivery)),n.xp6(1),n.Q6J("ngIf",null==(null==i.data?null:i.data.Title)),n.xp6(1),n.Q6J("ngIf",null!=(null==i.data?null:i.data.Title)),n.xp6(9),n.Q6J("ngIf",i.data.Invoice.Due&&(null==i.data||null==i.data.Invoice?null:i.data.Invoice.Due)!=i.mindate&&i.config.PrintConfigInvoice.DocumentVisibility.InvoicePaymentTermsVisible),n.xp6(1),n.Q6J("ngIf",i.data.Invoice.Due&&(null==i.data||null==i.data.Invoice?null:i.data.Invoice.Due)!=i.mindate&&i.config.PrintConfigInvoice.DocumentVisibility.InvoicePaymentTermsVisible),n.xp6(1),n.Q6J("ngIf",null==i.data?null:i.data.SalesName),n.xp6(1),n.Q6J("ngIf",(null==i.config||null==i.config.PrintConfigDelivery||null==i.config.PrintConfigDelivery.Advanced?null:i.config.PrintConfigDelivery.Advanced.PrintPONumber)&&(null==i.data||null==i.data.Order?null:i.data.Order.ReferenceNumber)),n.xp6(3),n.Q6J("innerHtml",n.xi3(29,46,null==i.data||null==i.data.Invoice?null:i.data.Invoice.Date,"dd MMM yyyy"),n.oJD),n.xp6(2),n.Q6J("ngIf",i.data.Invoice.Due&&(null==i.data||null==i.data.Invoice?null:i.data.Invoice.Due)!=i.mindate&&i.config.PrintConfigInvoice.DocumentVisibility.InvoicePaymentTermsVisible),n.xp6(1),n.Q6J("ngIf",i.data.Invoice.Due&&(null==i.data||null==i.data.Invoice?null:i.data.Invoice.Due)!=i.mindate&&i.config.PrintConfigInvoice.DocumentVisibility.InvoicePaymentTermsVisible),n.xp6(1),n.Q6J("ngIf",null==i.data?null:i.data.SalesName),n.xp6(1),n.Q6J("ngIf",(null==i.config||null==i.config.PrintConfigDelivery||null==i.config.PrintConfigDelivery.Advanced?null:i.config.PrintConfigDelivery.Advanced.PrintPONumber)&&(null==i.data||null==i.data.Order?null:i.data.Order.ReferenceNumber)),n.xp6(1),n.Udp("margin-top","35px"),n.xp6(1),n.Q6J("ngIf",null==i.data||null==i.data.Shipping?null:i.data.Shipping.Name),n.xp6(8),n.Q6J("ngIf",i.config.PrintConfigGeneral.Visibility.CategoryVisible),n.xp6(3),n.Q6J("ngIf",null==i.config.ModuleSell?null:i.config.ModuleSell.Grid.ShowBrandItemCart),n.xp6(1),n.Q6J("ngIf",i.config.PrintConfigOthers.OrderCartDisplayedField),n.xp6(1),n.Q6J("ngIf",i.config.PrintConfigInvoice.ItemsTable.ProductCodeWithCodeVariantVisible&&i.cart.Main.length>0),n.xp6(1),n.Q6J("ngIf",i.config.PrintConfigInvoice.ItemsTable.CodeVisible),n.xp6(1),n.Q6J("ngIf",i.config.PrintConfigInvoice.ItemsTable.QuantityVisible),n.xp6(1),n.Q6J("ngIf",(null==i.config.ModuleSell?null:i.config.ModuleSell.ProductDialog.UnitQtyLabel)&&i.config.PrintConfigInvoice.ItemsTable.UnitQuantityMultiplicationVisible),n.xp6(1),n.Q6J("ngIf",i.config.PrintConfigInvoice.ItemsTable.UOMVisible),n.xp6(1),n.Q6J("ngIf",i.amountVisible&&i.config.PrintConfigInvoice.ItemsTable.UnitPriceVisible),n.xp6(1),n.Q6J("ngIf",i.amountVisible&&i.config.PrintConfigInvoice.ItemsTable.PercentageVisible&&i.isDiscColumnVisible),n.xp6(1),n.Q6J("ngIf",i.amountVisible),n.xp6(2),n.Q6J("ngForOf",i.cart.Main),n.xp6(1),n.Q6J("ngForOf",i.cart.NonTaxable),n.xp6(1),n.Q6J("ngForOf",i.cart.Return),n.xp6(3),n.Q6J("ngIf",i.amountVisible),n.xp6(2),n.Q6J("ngForOf",null==i.data?null:i.data.PaidAmountSummary),n.xp6(1),n.Q6J("ngIf",!(null!=i.data&&i.data.offlineMode)),n.xp6(2),n.Q6J("ngIf",(null==i.config||null==i.config.PrintConfigGeneral||null==i.config.PrintConfigGeneral.Visibility?null:i.config.PrintConfigGeneral.Visibility.Visible)&&(i.config.PrintConfigInvoice.Signature.Column1||i.config.PrintConfigInvoice.Signature.Column2||i.config.PrintConfigInvoice.Signature.Column3||i.config.PrintConfigInvoice.Signature.Column4)),n.xp6(2),n.Q6J("ngClass",!i.printTemplate.FooterRight&&"single")("innerHtml",n.lcZ(70,49,i.printTemplate.FooterLeft?i.printTemplate.FooterLeft:""),n.oJD),n.xp6(2),n.Q6J("ngIf",i.printTemplate.FooterRight),n.xp6(3),n.Q6J("ngIf",1!=i.config.PrintConfigInvoice.Footer.CreatorVisiblePosition)}}const St=function(o,r){return{lx300:o,"print-normal":r}};let Rt=(()=>{var o;class r{set content(C){C&&JsBarcode("#barcode",this.data?.Invoice?.Number,{displayValue:!1})}constructor(C,u){(0,d.Z)(this,"activeRoute",void 0),(0,d.Z)(this,"decimalPipe",void 0),(0,d.Z)(this,"barcodeOptions",void 0),(0,d.Z)(this,"data",void 0),(0,d.Z)(this,"printTemplate",void 0),(0,d.Z)(this,"config",void 0),(0,d.Z)(this,"workOrderMode",!1),(0,d.Z)(this,"fullMode",void 0),(0,d.Z)(this,"receiptParam",void 0),(0,d.Z)(this,"invoiceOption",!0),(0,d.Z)(this,"modifiedlabel",void 0),(0,d.Z)(this,"workModelabel",void 0),(0,d.Z)(this,"cart",void 0),(0,d.Z)(this,"amountVisible",void 0),(0,d.Z)(this,"change",void 0),(0,d.Z)(this,"isDiscColumnVisible",!1),(0,d.Z)(this,"paperPrintMode",void 0),(0,d.Z)(this,"printModeType",void 0),(0,d.Z)(this,"totalItemsLabel",void 0),(0,d.Z)(this,"mindate",y.g.MinDate),(0,d.Z)(this,"hidebarcodeunderminimum",!1),this.activeRoute=C,this.decimalPipe=u}ngOnChanges(){if(this.config&&this.data){null!=this.config.PrintConfigOthers&&(this.modifiedlabel=this.workOrderMode?this.config.PrintConfigOthers.Modified.WorkOrder:this.config.PrintConfigOthers.Modified.CustomerDelivery),this.workModelabel=null,this.modifiedlabel&&this.data.Invoice.Modified!=y.g.MinDate&&(this.modifiedlabel="("+this.modifiedlabel+")",this.workModelabel=this.modifiedlabel);let C=this.activeRoute.snapshot.queryParamMap.get("Price");this.amountVisible=!this.workOrderMode&&(null==C||"1"==C)&&this.data.PriceVisible,this.cart={},this.cart.Main=this.data.Items,this.isDiscColumnVisible=this.cart.Main.filter(U=>0!=U.Discount||0!=U.DiscountAmount).length,this.cart.NonTaxable=[],this.cart.Return=[],this.config.PrintConfigInvoice.ItemsTable.SeparateRetur&&(this.cart.Main=this.data.Items.filter(U=>U.Quantity>0),this.cart.Return=this.data.Items.filter(U=>U.Quantity<0)),this.config.PrintConfigInvoice.ItemsTable.SeparateTaxable&&(this.cart.NonTaxable=this.cart.Main.filter(U=>!U.Taxable),this.cart.Main=this.cart.Main.filter(U=>U.Taxable));const Y=this.data.FinalAmount;let Kn=0;null!=this.data.Payments&&this.data.Payments.forEach(U=>{Kn+=U.PaidAmount}),this.change=Kn-Y,this.data.Invoice.ToP&&(this.data.Invoice.ToP=parseInt(this.data.Invoice.ToP.toFixed(1)))}}ngOnInit(){this.initPaperModeConfig(),this.generateItemLabel()}initPaperModeConfig(){if(this.receiptParam){let C=this.receiptParam;this.paperPrintMode=[{label:"A4",link:"/print/Invoice",param:C},{label:"8cm",link:"/print/InvoiceMini",param:C}]}}generateItemLabel(){let C=0,u=0;for(let Y of this.data.Items)(this.config.PrintConfigInvoice.ItemsTable.NonInventoryCount||2!=Y.TypeID)&&(C+=Y.Quantity,u+=Y.Total);u<this.config.PrintConfigInvoice.InvoiceQR.MinimumAmount&&(this.hidebarcodeunderminimum=!0),this.totalItemsLabel=y.g.StringFormat("{0}",this.decimalPipe.transform(C).toString())}}return o=r,(0,d.Z)(r,"\u0275fac",function(C){return new(C||o)(n.Y36(N.gz),n.Y36(T.JJ))}),(0,d.Z)(r,"\u0275cmp",n.Xpm({type:o,selectors:[["pos-receipt-a4"]],viewQuery:function(C,u){if(1&C&&n.Gf(t,5),2&C){let Y;n.iGM(Y=n.CRH())&&(u.content=Y.first)}},inputs:{barcodeOptions:"barcodeOptions",data:"data",printTemplate:"printTemplate",config:"config",workOrderMode:"workOrderMode",fullMode:"fullMode",receiptParam:"receiptParam",invoiceOption:"invoiceOption"},features:[n.TTD],decls:5,vars:6,consts:[["rel","stylesheet","href","/Styles/Master/app_custom.css"],["rel","stylesheet","href","/Styles/Print/PaperSizeA4_custom.css"],[1,"print_container",3,"ngClass"],["class","d-print-none",3,"paperPrints","paperType",4,"ngIf"],[3,"class","ngClass",4,"ngIf"],[1,"d-print-none",3,"paperPrints","paperType"],[3,"ngClass"],[1,"row","g-0","py-3","d-flex","justify-content-between","header","overflow-hidden"],[1,"header-left-invoice","col-7","p-0","ms-2","header-left"],["class","row ms-0",4,"ngIf"],["class","row ms-0 mt-3 header-customer",4,"ngIf"],[1,"col","p-0","m-0","header_right"],[1,"row","me-0","invoice_number"],[1,"w-100","d-flex","justify-content-end"],[4,"ngIf"],["class","h3",4,"ngIf"],["class","h3",3,"innerHtml",4,"ngIf"],[1,"row"],[1,"col-12","d-flex","justify-content-end"],[1,"table","table-bordered","w-auto","float-none"],[1,"bg-light-gray"],[1,"border"],[3,"innerHtml"],[3,"innerHtml",4,"ngIf"],[1,"row","d-flex","justify-content-end"],["class","col-11 border contact shippingAddress",3,"margin-right",4,"ngIf"],[1,"row","d-print-block","g-0"],[1,"col-md-12","cartItems"],[1,"w-100","table","table-sm","table-bordered","plain"],[2,"background","#FDF3C6"],[2,"width","20px"],[3,"style",4,"ngIf"],["class","text-end","style","width:65px",3,"style",4,"ngIf"],["style","width:65px",4,"ngIf"],["class","text-end","style","width:50px",4,"ngIf"],["class","text-end",3,"style",4,"ngIf"],["class","text-end","style","width:80px",4,"ngIf"],[4,"ngFor","ngForOf"],["class","separator-row separator-row-notaxable",4,"ngFor","ngForOf"],[1,"col-12"],[1,"table","table-sm","table-borderless","d-flex","justify-content-end"],["class","row",4,"ngIf"],["class","col-12 signature",4,"ngIf"],[1,"row","footer","h-auto","mt-8"],[1,"col",3,"ngClass","innerHtml"],["class","col",3,"innerHtml",4,"ngIf"],[1,"row","w-100","mt-5"],[1,"col-md","d-flex","justify-content-center","printed"],["class","d-block text-center fst-italic py-2","style","font-size: 12px;",4,"ngIf"],[1,"row","ms-0"],["class","shop-logo",3,"ngClass",4,"ngIf"],[1,"g-0","p-0","m-0","shop-description",3,"ngClass"],[1,"shop-logo",3,"ngClass"],["class","col-md-12 px-0",3,"style","src",4,"ngIf"],[1,"col-md-12","px-0",3,"src"],[1,"row","ms-0","mt-3","header-customer"],[1,"col-6","border"],["class","fw-bold",3,"innerHtml",4,"ngIf"],[1,"box"],[1,"customer_info"],[1,"fw-bold",3,"innerHtml"],["class","codecustomer",4,"ngIf"],[1,"codecustomer"],["id","barcode",2,"height","30px"],["barcode",""],[1,"h3"],[1,"h3",3,"innerHtml"],[1,"col-11","border","contact","shippingAddress"],[1,"text-end",2,"width","65px"],[2,"width","65px"],[1,"text-end",2,"width","50px"],[1,"text-end"],[1,"text-end",2,"width","80px"],[2,"word-break","break-word"],[1,"d-block",3,"innerHtml"],[3,"serials"],["class","text-end",4,"ngIf"],["class","number",3,"innerHtml",4,"ngIf"],["class","text-end",3,"innerHtml",4,"ngIf"],[1,"number",3,"innerHtml"],[1,"text-end",3,"innerHtml"],[1,"text-danger",3,"innerHtml"],[1,"separator-row","separator-row-notaxable"],["class","UOMWidth",3,"innerHtml",4,"ngIf"],[1,"UOMWidth",3,"innerHtml"],["class","special-TinyMCE",3,"innerHtml",4,"ngIf"],[1,"special-TinyMCE",3,"innerHtml"],["colspan","3"],[1,"currency"],[2,"width","50px"],[1,"col-auto"],[1,"table","table-sm","table-bordered","table-secondary","info"],[1,"bg-light-gray",3,"innerHtml"],[2,"word-break","break-all",3,"innerHtml"],[1,"col-12","signature"],[1,"row","justify-content-between"],["class","col-3","style","height: 120px;",4,"ngIf"],[1,"col-3",2,"height","120px"],[1,"text-center","mb-0",2,"line-height","20px",3,"innerHtml"],[1,"border-bottom","border-dark",2,"height","100px"],[1,"col",3,"innerHtml"],[1,"d-block","text-center","fst-italic","py-2",2,"font-size","12px"]],template:function(C,u){1&C&&(n._UZ(0,"link",0)(1,"link",1),n.TgZ(2,"div",2),n.YNc(3,S,1,2,"POS-print-mode",3),n.YNc(4,Ut,75,53,"div",4),n.qZA()),2&C&&(n.xp6(2),n.Q6J("ngClass",n.WLB(3,St,u.printTemplate.PrintLX300,!u.printTemplate.PrintLX300)),n.xp6(1),n.Q6J("ngIf",u.invoiceOption),n.xp6(1),n.Q6J("ngIf",u.data))},dependencies:[T.mk,T.sg,T.O5,a.g,J.B,T.JJ,T.uU,e.OI,e.qU,e.sH,e.Qc,e.zX,e.LZ],styles:['div.print_container[_ngcontent-%COMP%]{margin:0 auto!important;text-align:left;color:#000;position:relative}div.mode[_ngcontent-%COMP%]{color:gray;text-align:right;height:20px;padding-top:2px;font-size:10px}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{float:left;display:block;margin:0 5px 0 0;padding:0}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{float:left;display:block;margin:0;padding:0}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{float:left;display:block;margin:0 5px 0 0;padding:0 5px 0 0;border-right:solid 1px gray}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{border-right:none}div.header[_ngcontent-%COMP%]{width:100%;overflow:auto}.company[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:30%}div.copy[_ngcontent-%COMP%]{background-image:url(/Images/Print/copy_bg.png);background-repeat:no-repeat;background-position:50% 70px}div.note[_ngcontent-%COMP%]{position:relative}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:5px;width:440px;text-align:left}.special-TinyMCE[_ngcontent-%COMP%]{padding-top:10px!important}@media print{body[_ngcontent-%COMP%]{font-family:Arial;color:#000}}@-moz-document url-prefix(){}div.signature[_ngcontent-%COMP%], div.signature-b[_ngcontent-%COMP%]{clear:both;height:111px;margin-top:25px}div.signature[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0 0 80px;padding:0;font-size:12px;font-weight:700}div.signature[_ngcontent-%COMP%] div.name[_ngcontent-%COMP%]{border-top:solid 1px Gray;height:15px;text-align:center}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:70px;width:150px}div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%]{float:left;margin-left:155px;width:150px}div.signature[_ngcontent-%COMP%] div.noLeftMargin[_ngcontent-%COMP%]{margin-left:0!important}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:120px!important}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:150px;margin-right:5px}div.print_container[_ngcontent-%COMP%] div.footerNote[_ngcontent-%COMP%]{padding-left:5px;width:150px}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.fullSignatureNote[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%]{display:table-row-group}body[_ngcontent-%COMP%]{padding:0;font-size:12px}a.linkMini[_ngcontent-%COMP%]{left:130px;position:absolute;top:.5px;text-decoration:none;color:#3b5998}div.print_container[_ngcontent-%COMP%]{margin:0 auto;width:900px;text-align:left;color:#000;position:relative}div.print_container[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important;background-color:#fff}div.mode[_ngcontent-%COMP%]{color:gray;font-size:11px;text-align:right;height:20px;padding-top:2px}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%], div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{float:left;display:block;margin:0;padding:0}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child{padding-right:5px;margin-right:5px;border-right:solid 1px gray}div.mode[_ngcontent-%COMP%] div.printer[_ngcontent-%COMP%]{float:left}div.mode[_ngcontent-%COMP%] div.template[_ngcontent-%COMP%]{float:right}div.mode[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#3b5998;text-decoration:none}div.mode[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.mode[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{color:gray}div.mode[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]:hover{text-decoration:none}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:0 5px}div.header_left[_ngcontent-%COMP%]{float:left;padding:5px 0 0 5px;max-width:425px}div.header_left[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:5px 0 0;padding:0;font-size:18px}div.header_right[_ngcontent-%COMP%]{float:right;padding:0 5px 0 0;max-width:425px}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;padding:0;text-align:right}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin:0 5px 0 0;text-transform:uppercase}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:18px;font-weight:400}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{float:right;border-collapse:collapse}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #9E9E9E;padding:4px}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#f6f6f6}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-bottom:6px}div.header[_ngcontent-%COMP%] img.float[_ngcontent-%COMP%]{margin:5px 0 0 5px;float:left}div.header[_ngcontent-%COMP%] div.company[_ngcontent-%COMP%]{width:100%;overflow:auto;margin:0 0 8px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%]{float:left}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin:0;padding:0}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:11px;text-align:left;font-weight:400}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%]{margin-top:3px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%] div.address[_ngcontent-%COMP%]{float:left;min-width:125px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%] div.number[_ngcontent-%COMP%]{margin-right:5px;min-width:160px}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%]{width:calc(100% - 12px);overflow:auto;border:solid 1px #9E9E9E;padding:5px}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:12px;margin:0 5px 0 0;padding:0;font-weight:700;float:left}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%] div.box[_ngcontent-%COMP%]{float:left}div.cartItems[_ngcontent-%COMP%]{padding:10px 3px 2px 5px}div.copy[_ngcontent-%COMP%]{background-image:url(/Images/Print/copy_bg.png);background-repeat:no-repeat;background-position:50% 70px}div.topNote[_ngcontent-%COMP%]{clear:both;text-align:right}div.invoiceNote[_ngcontent-%COMP%]{padding:10px 0 0 7px}div.note[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:700;font-size:12px;margin:0 0 3px;padding:0}div.note[_ngcontent-%COMP%] div.single[_ngcontent-%COMP%]{width:895px!important}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:5px;width:440px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:5px 0 0;padding:0 0 0 20px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 0 2px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:2px 0 5px;padding:0 0 0 20px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 0 2px}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:440px;border-left:solid 1px #CACACA;padding-left:8px;margin-right:5px}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h3.closing[_ngcontent-%COMP%]{margin-top:10px;text-align:right}div.note-info[_ngcontent-%COMP%]{margin:auto;width:23%}table.info[_ngcontent-%COMP%]{border-collapse:collapse;margin-top:5px;margin-left:5px}table.info[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.info[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px;border:solid 1px #d8d8d8}table.info[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#f6f6f6}div.fullContainer[_ngcontent-%COMP%] div.print_container[_ngcontent-%COMP%]{min-height:970px;position:relative}.clearfix[_ngcontent-%COMP%]:before, .clearfix[_ngcontent-%COMP%]:after{content:"";display:table}.clearfix[_ngcontent-%COMP%]:after{clear:both}.clearfix[_ngcontent-%COMP%]{zoom:1}div.reportMargin[_ngcontent-%COMP%]{margin:20px 0 0}@media print{div.mode[_ngcontent-%COMP%], .linkMini[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}thead[_ngcontent-%COMP%]{display:table-header-group}}small.timestamp[_ngcontent-%COMP%], small.creator[_ngcontent-%COMP%], small.printed[_ngcontent-%COMP%]{font-size:12px;text-align:center;display:block;font-style:italic;padding:2px 0}small.creator[_ngcontent-%COMP%]{padding:2px 0 20px;font-style:normal}span.titleJB[_ngcontent-%COMP%]{font-weight:700;padding:10px 0 7px 8px;display:block}.topHolder[_ngcontent-%COMP%]{margin-top:15px!important}h1.jobOrderHeader[_ngcontent-%COMP%]{text-align:center}.shippingAddress[_ngcontent-%COMP%]{text-align:right;min-width:240px;clear:both}.shippingAddress[_ngcontent-%COMP%] div.box[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child{text-align:left;font-weight:700}.packingSlip[_ngcontent-%COMP%]{min-width:150px}.customer_info[_ngcontent-%COMP%]{min-width:310px}table.plain[_ngcontent-%COMP%]{border-collapse:collapse}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:16px;padding:2px 7px;color:#fff;font-weight:700}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#000;text-shadow:none}table.plain[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px}table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:3px solid black}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%]{margin:0 5px 0 0;padding:0;float:left;display:block}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#fff;display:block;background-color:#d8dfea;border:1px solid #bbb;border-radius:3px}table.plain[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}table.plain[_ngcontent-%COMP%] div.text[_ngcontent-%COMP%]{padding:2px 0 0}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{display:block;color:#00f;text-decoration:none}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a, table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a:visited{font-weight:700}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin:0;padding:0;display:block}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%]{background-color:#fdf3c6!important}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}table.plain[_ngcontent-%COMP%] th.borderLRB0[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.borderLRB0[_ngcontent-%COMP%]{border-left-width:0px!important;border-right-width:0px!important;border-bottom-width:0px!important;background-color:#fff!important}table.plain[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.plain[_ngcontent-%COMP%] th.numberCenter[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:center}table.plain[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.plain[_ngcontent-%COMP%] td.top[_ngcontent-%COMP%]{vertical-align:top}table.plain[_ngcontent-%COMP%] td.noTopPad[_ngcontent-%COMP%]{padding-top:0}table.plain[_ngcontent-%COMP%] td.small[_ngcontent-%COMP%]{font-size:11px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-width:0px;background-color:#fff}table.plain[_ngcontent-%COMP%] span.serial[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 0 5px 5px;background-color:#fff}table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inlineMarginLeft[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%]{margin:0;padding:0;list-style-type:circle;list-style-position:inside}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 20px 0 0;padding:0;float:left;display:block}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.scroll[_ngcontent-%COMP%]{width:100%;overflow:auto;padding:0 0 2px}table.fixed[_ngcontent-%COMP%]{table-layout:fixed}table.footer_row[_ngcontent-%COMP%]{margin:5px 8px 0 auto}table.footer_row[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px;text-align:right;float:left}table.footer_adjust[_ngcontent-%COMP%]{margin:-10px 18px 0 auto}table.footer_adjust[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_adjust[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_adjust[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px 23px 5px 5px;text-align:right;float:left}table.total-all-grid[_ngcontent-%COMP%]{width:100%!important;border-collapse:collapse;margin-top:10px}table.manufacture[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table.manufacture[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fceca3!important}table.manufacture[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #BBBBBB!important}table.accounting[_ngcontent-%COMP%]{max-width:1000px;border-collapse:collapse}table.accounting[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:1px solid #999;border-bottom:1px solid #999;height:28px;line-height:16px;color:#444;background-color:#fceca3!important}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.accounting[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px;border-bottom:1px solid black}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#00f;text-decoration:none}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.accounting[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.accounting[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.accounting[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.accounting[_ngcontent-%COMP%] th.bordertop[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.bordertop[_ngcontent-%COMP%]{border-top:1px #999 solid}table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-bottom:20px}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(2n){background-color:#fff}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(4n-1){background-color:#f6f6f6}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:1px solid #9e9e9e;color:#000;text-shadow:none}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8;display:table-cell}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(3){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(5){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(6){width:5%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(7){width:10%!important}.listReturn[_ngcontent-%COMP%] a.head[_ngcontent-%COMP%]{padding:10px 0 10px 10px;display:block;width:50%}.listReturn[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:right!important}.listReturn[_ngcontent-%COMP%] table.summary[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-top:20px!important;display:block}table.paidAmount[_ngcontent-%COMP%]{float:right;margin-top:-10px;text-align:right;padding-right:7px}table.paidAmount[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}table.paidAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}table.paidAmount[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 5px}div.zebra[_ngcontent-%COMP%]{display:table;border-collapse:collapse}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:table-cell}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > strong[_ngcontent-%COMP%]{display:block;border:1px solid #525252;background-color:#545454;background-image:linear-gradient(#888,#545454);box-shadow:inset 0 2px 0 -1px #fff3;text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:24px;border-bottom:1px solid #333;padding:2px 7px;color:#fff;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;padding:5px 7px;border:solid 1px #d8d8d8;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.number[_ngcontent-%COMP%]{text-align:right}.full-mode[_ngcontent-%COMP%]{min-height:970px;position:relative}']})),r})(),Lt=(()=>{var o;class r{}return o=r,(0,d.Z)(r,"\u0275fac",function(C){return new(C||o)}),(0,d.Z)(r,"\u0275mod",n.oAB({type:o})),(0,d.Z)(r,"\u0275inj",n.cJS({imports:[T.ez,e.dr,a.y]})),r})()},13875:(tn,D,P)=>{P.d(D,{e:()=>Wn,t:()=>zn});var d=P(81180),T=P(96814),y=P(86864),e=P(74297),a=P(62279),n=P(78645),N=P(57457),J=P(36842),t=P(65879),S=P(64190),R=P(19121),L=P(96244);function b(l,s){if(1&l&&t._UZ(0,"div",41),2&l){const c=t.oxw(3);t.Q6J("innerHTML",null==c.config||null==c.config.PrintConfigInvoice||null==c.config.PrintConfigInvoice.FooterLabel?null:c.config.PrintConfigInvoice.FooterLabel.CopyLabelText,t.oJD)}}function Z(l,s){1&l&&(t.TgZ(0,"div",42),t._uU(1,"Void"),t.qZA())}function M(l,s){1&l&&(t.TgZ(0,"div",43),t._uU(1,"Return"),t.qZA())}function O(l,s){if(1&l&&(t.TgZ(0,"div",37),t.YNc(1,b,1,1,"div",38),t.YNc(2,Z,2,0,"div",39),t.YNc(3,M,2,0,"div",40),t.qZA()),2&l){const c=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!c.data.Bin&&!c.data.Retur),t.xp6(1),t.Q6J("ngIf",null==c.data?null:c.data.Bin),t.xp6(1),t.Q6J("ngIf",null==c.data?null:c.data.Retur)}}const w=function(l){return{width:l}};function V(l,s){if(1&l&&t._UZ(0,"img",44),2&l){const c=t.oxw(2);t.Akn(t.VKq(3,w,c.config.PrintConfigInvoice.LogoConfig.UploadedImageResizedWidth+"px")),t.Q6J("src",null==c.printTemplate?null:c.printTemplate.Logo,t.LSH)}}function k(l,s){if(1&l&&t._UZ(0,"span",11),2&l){const c=t.oxw(2);t.Q6J("innerHTML",null==c.data?null:c.data.RegisterCode,t.oJD)}}function H(l,s){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&l){const c=t.oxw(3);t.xp6(1),t.AsE(", ",null==c.data||null==c.data.Customer?null:c.data.Customer.Title," - ",null==c.data||null==c.data.Customer?null:c.data.Customer.Code,"")}}function E(l,s){if(1&l&&(t.TgZ(0,"h6",45)(1,"span"),t._uU(2),t.qZA(),t.YNc(3,H,2,2,"span",16),t.qZA()),2&l){const c=t.oxw(2);t.xp6(2),t.Oqu(null==c.data.Customer?null:c.data.Customer.Name),t.xp6(1),t.Q6J("ngIf",(null==c.data||null==c.data.Customer?null:c.data.Customer.Code)&&c.config.PrintConfigInvoice.DocumentVisibility.CustomerCodeVisible)}}function F(l,s){if(1&l&&t._UZ(0,"h6",46),2&l){const c=t.oxw(2);t.Q6J("innerHTML",null==c.data.Customer?null:c.data.Customer.NationalIDNumber,t.oJD)}}function B(l,s){if(1&l&&(t._UZ(0,"p",47),t.ALo(1,"newlines")),2&l){const c=t.oxw(2);t.Q6J("innerHTML",t.lcZ(1,1,null==c.data.Customer?null:c.data.Customer.Address),t.oJD)}}function j(l,s){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"limitTo"),t.qZA()),2&l){const c=t.oxw(2);t.xp6(1),t.hij(" ",3==c.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility?"*****"+t.Dn7(2,1,null==c.data.Customer?null:c.data.Customer.Phone,4,(null==c.data.Customer?null:c.data.Customer.Phone.length)-4):" "+(null==c.data.Customer?null:c.data.Customer.Phone)," ")}}function $(l,s){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"limitTo"),t.qZA()),2&l){const c=t.oxw(2);t.xp6(1),t.hij(" ",3==c.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility?"*****"+t.Dn7(2,1,null==c.data.Customer?null:c.data.Customer.Mobile,4,(null==c.data.Customer||null==c.data.Customer.Mobile?null:c.data.Customer.Mobile.length)-4):" "+(null==c.data.Customer?null:c.data.Customer.Mobile)," ")}}function z(l,s){if(1&l&&t._UZ(0,"p",48),2&l){const c=t.oxw(2);t.Q6J("innerHTML",null==c.data.Customer?null:c.data.Customer.Email,t.oJD)}}function W(l,s){if(1&l&&(t.TgZ(0,"h2",49),t._uU(1),t.qZA()),2&l){const c=t.oxw(2);t.Tol(2==c.data.paymentState?"text-warning":"text-danger"),t.xp6(1),t.hij(" ",2==c.data.paymentState?"PARTIAL":c.config.PrintConfigInvoice.DocumentLabel.BillLabel," ")}}function K(l,s){if(1&l&&(t.ynx(0),t.TgZ(1,"h3",49),t._uU(2),t.qZA(),t.BQk()),2&l){const c=t.oxw(2);t.xp6(2),t.Oqu(null==c.data?null:c.data.ParkLabel)}}function G(l,s){if(1&l&&(t.TgZ(0,"div",50),t._uU(1),t.qZA()),2&l){const c=t.oxw(2);t.xp6(1),t.hij(" Cashier : ",c.data.Creator," ")}}function f(l,s){if(1&l&&(t.ynx(0),t._UZ(1,"div",11),t.BQk()),2&l){const c=t.oxw(3);t.xp6(1),t.Q6J("innerHTML",c.data.HeaderTitle,t.oJD)}}function v(l,s){if(1&l&&(t.TgZ(0,"div",51),t.YNc(1,f,2,1,"ng-container",16),t._UZ(2,"div",11),t.qZA()),2&l){const c=t.oxw(2);t.xp6(1),t.Q6J("ngIf",c.data.HeaderTitle),t.xp6(1),t.Q6J("innerHTML",c.data.Number,t.oJD)}}function g(l,s){if(1&l&&(t.ynx(0),t._uU(1),t.BQk()),2&l){const c=t.oxw().index;t.xp6(1),t.hij(" ",c+1,". ")}}function Q(l,s){if(1&l&&(t.ynx(0),t._UZ(1,"app-serial-note",61),t.BQk()),2&l){const c=t.oxw().$implicit;t.xp6(1),t.Q6J("serials",c.Serial)}}function p(l,s){if(1&l&&(t.TgZ(0,"div",62)(1,"i",63),t._uU(2),t.qZA()()),2&l){const c=t.oxw().$implicit;t.xp6(2),t.hij(" sold by ",c.SalesName," ")}}function x(l,s){if(1&l&&(t._UZ(0,"small",65),t.ALo(1,"newlines")),2&l){const c=t.oxw(2).$implicit;t.Q6J("innerHTML",t.lcZ(1,1,c.Note),t.oJD)}}function _(l,s){if(1&l&&(t.ynx(0),t.YNc(1,x,2,3,"small",64),t.BQk()),2&l){const c=t.oxw().$implicit,m=t.oxw(2);t.xp6(1),t.Q6J("ngIf",c.Note&&m.config.PrintConfigInvoice.ItemsTable.NoteItemVisible)}}function I(l,s){if(1&l&&(t.TgZ(0,"span",68),t._uU(1),t.qZA()),2&l){const c=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",c.Taxable?"V":"N"," ")}}function A(l,s){if(1&l&&(t.TgZ(0,"span",68),t._uU(1),t.qZA()),2&l){const c=t.oxw(2).$implicit,m=t.oxw(2);t.xp6(1),t.hij(" ",c.Taxable?m.config.PrintConfigInvoice.ItemsTable.TaxableLabel:"N"," ")}}function X(l,s){if(1&l&&(t.TgZ(0,"div",66),t.YNc(1,I,2,1,"span",67),t.YNc(2,A,2,1,"span",67),t.qZA()),2&l){const c=t.oxw(3);t.xp6(1),t.Q6J("ngIf",""==c.config.PrintConfigInvoice.ItemsTable.TaxableLabel||"Taxable"==c.config.PrintConfigInvoice.ItemsTable.TaxableLabel),t.xp6(1),t.Q6J("ngIf",""!=c.config.PrintConfigInvoice.ItemsTable.TaxableLabel&&"Taxable"!=c.config.PrintConfigInvoice.ItemsTable.TaxableLabel)}}function rn(l,s){if(1&l&&(t.TgZ(0,"span",69),t._uU(1),t.ALo(2,"number"),t.qZA()),2&l){const c=t.oxw().$implicit,m=t.oxw(2);t.xp6(1),t.lnq(" ",t.xi3(2,3,c.Quantity,"1.0-4")," ",m.config.PrintConfigInvoice.ItemsTable.UOMVisible?c.Variant.UOMName:""," ",1!=c.UnitQuantity?" x "+c.UnitQuantity:""," ")}}function nn(l,s){if(1&l&&(t.ynx(0),t.TgZ(1,"span",72),t._uU(2),t.ALo(3,"number"),t.qZA(),t.BQk()),2&l){const c=t.oxw(3).$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==c?null:c.UnitPriceOriginal))}}function en(l,s){if(1&l&&(t.ynx(0),t.YNc(1,nn,4,3,"ng-container",16),t.BQk()),2&l){const c=t.oxw(2).$implicit;t.xp6(1),t.Q6J("ngIf",(null==c?null:c.UnitPriceOriginal)>(null==c?null:c.Price))}}function _n(l,s){if(1&l&&(t.ynx(0),t.TgZ(1,"span",70),t._uU(2,"x"),t.qZA(),t.TgZ(3,"span",71),t.YNc(4,en,2,1,"ng-container",16),t._uU(5),t.ALo(6,"number"),t.qZA(),t.BQk()),2&l){const c=t.oxw().$implicit,m=t.oxw(2);t.xp6(4),t.Q6J("ngIf",null==m.config.ModuleSell||null==m.config.ModuleSell.Promotion?null:m.config.ModuleSell.Promotion.StrikethroughOriginalPrice),t.xp6(1),t.hij(" ",t.lcZ(6,2,c.Price)," ")}}function dn(l,s){if(1&l&&(t.ynx(0),t.TgZ(1,"i",73),t._uU(2),t.ALo(3,"number"),t.qZA(),t.BQk()),2&l){const c=t.oxw().$implicit;t.xp6(2),t.hij(" ","-"+t.lcZ(3,1,c.Discount)+"%"," ")}}function gn(l,s){if(1&l&&(t.ynx(0),t.TgZ(1,"i",74),t._uU(2),t.ALo(3,"number"),t.qZA(),t.BQk()),2&l){const c=t.oxw().$implicit;t.xp6(2),t.hij(" ","-"+t.lcZ(3,1,c.DiscountAmount)," ")}}function an(l,s){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"TrailingZero"),t.ALo(3,"number"),t.qZA()),2&l){const c=t.oxw().$implicit,m=t.oxw(2);t.xp6(1),t.hij(" ",t.xi3(2,1,t.lcZ(3,4,(1-c.Discount/100)*c.Price*c.Quantity*c.UnitQuantity-c.DiscountAmount*c.Quantity),m.config.PrintConfigGeneral.TrailingZero)," ")}}const pn=function(l){return{"align-items-end":l}};function sn(l,s){if(1&l&&(t.TgZ(0,"div",52)(1,"div",50)(2,"div",53)(3,"div"),t.YNc(4,g,2,1,"ng-container",16),t._uU(5),t.qZA(),t.YNc(6,Q,2,1,"ng-container",16),t.YNc(7,p,3,1,"div",54),t.YNc(8,_,2,1,"ng-container",16),t.qZA(),t.YNc(9,X,3,2,"div",55),t.qZA(),t.TgZ(10,"div",56)(11,"div",57)(12,"div",58),t.YNc(13,rn,3,6,"span",59),t.YNc(14,_n,7,4,"ng-container",16),t.YNc(15,dn,4,3,"ng-container",16),t.YNc(16,gn,4,3,"ng-container",16),t.qZA()(),t.TgZ(17,"div",60),t.YNc(18,an,4,6,"span",16),t.qZA()()()),2&l){const c=s.$implicit,m=t.oxw(2);t.xp6(4),t.Q6J("ngIf",m.config.ModuleSell.Grid.RowNumberVisible),t.xp6(1),t.AsE(" ",c.Variant.Name," ",c.Variant.Code&&m.config.PrintConfigInvoice.ItemsTable.CodeVisible?" - "+c.Variant.Code:""," "),t.xp6(1),t.Q6J("ngIf",c.Serial&&(null==c.Serial?null:c.Serial.length)>0),t.xp6(1),t.Q6J("ngIf",c.SalesName&&m.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),t.xp6(1),t.Q6J("ngIf",c.Note),t.xp6(1),t.Q6J("ngIf",m.config.PrintConfigInvoice.ItemsTable.TaxableVisible),t.xp6(1),t.Q6J("ngClass",t.VKq(13,pn,(null==m.config.ModuleSell||null==m.config.ModuleSell.Promotion?null:m.config.ModuleSell.Promotion.StrikethroughOriginalPrice)&&(null==c?null:c.UnitPriceOriginal)>(null==c?null:c.Price))),t.xp6(3),t.Q6J("ngIf",m.config.PrintConfigInvoice.ItemsTable.QuantityVisible),t.xp6(1),t.Q6J("ngIf",m.amountVisible&&!m.priceVisibleRestriction),t.xp6(1),t.Q6J("ngIf",0!=c.Discount&&m.amountVisible),t.xp6(1),t.Q6J("ngIf",0!=c.DiscountAmount&&m.amountVisible),t.xp6(2),t.Q6J("ngIf",m.amountVisible&&!m.priceVisibleRestriction)}}function mn(l,s){if(1&l&&(t.TgZ(0,"span")(1,"span"),t._uU(2),t.qZA()()),2&l){const c=t.oxw().$implicit;t.xp6(2),t.hij("",c.Label," :")}}function un(l,s){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&l){const c=t.oxw().$implicit;t.xp6(1),t.hij("",c.CurrencySymbol," ")}}function fn(l,s){if(1&l&&(t.TgZ(0,"div",76),t.ALo(1,"Filter"),t.TgZ(2,"div",77),t._uU(3),t.YNc(4,mn,3,1,"span",16),t.qZA(),t.TgZ(5,"div",78)(6,"div",79)(7,"div",80),t.YNc(8,un,2,1,"span",16),t.qZA(),t.TgZ(9,"div",81)(10,"span"),t._uU(11),t.ALo(12,"TrailingZero"),t.ALo(13,"number"),t.qZA()()()()()),2&l){const c=s.$implicit,m=s.index,h=t.oxw(3);t.Q6J("ngClass",m==t.Dn7(1,7,h.data.AmountSummary,1,"Type").length-1?"pb-2":""),t.xp6(2),t.Q6J("ngClass",1==m?"border-top":""),t.xp6(1),t.hij(" ",0==m?h.totalItemsLabel+" :":""," "),t.xp6(1),t.Q6J("ngIf",0!=m),t.xp6(1),t.Q6J("ngClass",1==m?"border-top":""),t.xp6(3),t.Q6J("ngIf",h.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),t.xp6(3),t.Oqu(t.xi3(12,11,t.lcZ(13,14,c.Amount),h.config.PrintConfigGeneral.TrailingZero))}}function Cn(l,s){if(1&l&&(t.TgZ(0,"div",75),t.YNc(1,fn,14,16,"div",26),t.ALo(2,"Filter"),t.qZA()),2&l){const c=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",t.Dn7(2,1,c.data.AmountSummary,1,"Type"))}}function Pn(l,s){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"limitTo"),t.qZA()),2&l){const c=t.oxw().$implicit,m=t.oxw(3);t.xp6(1),t.hij(" ",3==m.config.PrintConfigInvoice.DocumentVisibility.PaymentCode?"- ***"+t.Dn7(2,1,c.Code,4,c.Code.length-4):"- "+c.Code," ")}}function xn(l,s){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&l){const c=t.oxw().$implicit;t.xp6(1),t.hij(" ",c.Note," : ")}}function On(l,s){if(1&l&&(t.TgZ(0,"span",80),t._uU(1),t.qZA()),2&l){const c=t.oxw(4);t.xp6(1),t.Oqu(c.data.CurrencySymbol)}}function Mn(l,s){if(1&l&&(t.TgZ(0,"div",83)(1,"div",84),t._uU(2),t.YNc(3,Pn,3,5,"span",16),t.YNc(4,xn,2,1,"span",16),t.qZA(),t.TgZ(5,"div",85),t.YNc(6,On,2,1,"span",86),t.TgZ(7,"span",81),t._uU(8),t.ALo(9,"TrailingZero"),t.qZA()()()),2&l){const c=s.$implicit,m=s.index,h=t.oxw(3);t.Q6J("hidden",0==c.Amount),t.xp6(2),t.hij(" ",h.config.PrintConfigInvoice.Footer.PaymentMethodVisible?c.MethodName:1!=h.data.Payments.length?"Payment":"Payment "+(m+1)," "),t.xp6(1),t.Q6J("ngIf",c.Code&&1!=h.config.PrintConfigInvoice.DocumentVisibility.PaymentCode),t.xp6(1),t.Q6J("ngIf",h.config.PrintConfigInvoice.DocumentVisibility.PaymentNoteVisible),t.xp6(2),t.Q6J("ngIf",h.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),t.xp6(2),t.hij(" ",t.xi3(9,6,h.change>0?c.PaidAmount:c.Amount,h.config.PrintConfigGeneral.TrailingZero),"")}}function vn(l,s){if(1&l&&(t.TgZ(0,"div"),t.YNc(1,Mn,10,9,"div",82),t.qZA()),2&l){const c=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",c.data.Payments)}}function hn(l,s){if(1&l&&(t.TgZ(0,"span",80),t._uU(1),t.qZA()),2&l){const c=t.oxw(3);t.xp6(1),t.Oqu(c.currencyChange)}}function bn(l,s){if(1&l&&(t.TgZ(0,"div",87)(1,"div",84),t._uU(2," Change : "),t.qZA(),t.TgZ(3,"div",85),t.YNc(4,hn,2,1,"span",86),t.TgZ(5,"span",81),t._uU(6),t.ALo(7,"TrailingZero"),t.qZA()()()),2&l){const c=t.oxw(2);t.xp6(4),t.Q6J("ngIf",c.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),t.xp6(2),t.hij(" ",t.xi3(7,2,c.change,c.config.PrintConfigGeneral.TrailingZero),"")}}function Tn(l,s){if(1&l&&(t.TgZ(0,"span",80),t._uU(1),t.qZA()),2&l){const c=t.oxw(3);t.xp6(1),t.Oqu(c.data.CurrencySymbol)}}function Zn(l,s){if(1&l&&(t.TgZ(0,"div",87)(1,"div",84),t._uU(2),t.qZA(),t.TgZ(3,"div",85),t.YNc(4,Tn,2,1,"span",86),t.TgZ(5,"span",81),t._uU(6),t.ALo(7,"TrailingZero"),t.qZA()()()),2&l){const c=t.oxw(2);t.xp6(2),t.hij(" ",c.remainingLabel,": "),t.xp6(2),t.Q6J("ngIf",c.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),t.xp6(2),t.Oqu(t.xi3(7,3,c.diff,c.config.PrintConfigGeneral.TrailingZero))}}function In(l,s){if(1&l&&(t.TgZ(0,"div",92)(1,"span"),t._uU(2),t.qZA()()),2&l){const c=t.oxw().$implicit;t.xp6(2),t.Oqu(c.CurrencySymbol)}}function yn(l,s){if(1&l&&(t.TgZ(0,"div",76)(1,"div",88),t._uU(2),t.qZA(),t.TgZ(3,"div",89),t._uU(4," : "),t.qZA(),t.YNc(5,In,3,1,"div",90),t.TgZ(6,"div",91),t._uU(7),t.ALo(8,"TrailingZero"),t.qZA()()),2&l){const c=s.$implicit,m=s.index,h=t.oxw(2);t.Q6J("ngClass",0==m?"border-top pt-8":""),t.xp6(2),t.hij(" ",c.Label," "),t.xp6(3),t.Q6J("ngIf",h.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),t.xp6(2),t.hij(" ",t.xi3(8,4,c.Amount,h.config.PrintConfigGeneral.TrailingZero)," ")}}function An(l,s){if(1&l&&(t.ynx(0),t.TgZ(1,"strong",93),t._uU(2),t.qZA(),t._UZ(3,"span",94),t.BQk()),2&l){const c=t.oxw(2);t.xp6(2),t.hij(" ",c.config.LoyaltyLabel?c.config.LoyaltyLabel:"Loyalty Point"," "),t.xp6(1),t.Q6J("innerHTML",c.data.LoyaltyPoint,t.oJD)}}function wn(l,s){1&l&&(t.TgZ(0,"h6",95),t._uU(1,"Coupon"),t.qZA())}function Jn(l,s){if(1&l&&(t.TgZ(0,"span",96),t._uU(1),t.ALo(2,"limitTo"),t.qZA()),2&l){const c=t.oxw(2);t.xp6(1),t.hij(" ",3==c.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon?"***"+t.Dn7(2,1,c.data.Coupon,3,c.data.Coupon.length-3):c.data.Coupon," ")}}function Qn(l,s){1&l&&(t.TgZ(0,"h6",95),t._uU(1,"ToP"),t.qZA())}function Dn(l,s){if(1&l&&t._UZ(0,"span",94),2&l){const c=t.oxw(3);t.Q6J("innerHTML",c.data.Due,t.oJD)}}function Nn(l,s){if(1&l&&(t.TgZ(0,"span",96),t._uU(1),t.qZA()),2&l){const c=t.oxw(3);t.xp6(1),t.hij("- ",c.top," Days")}}function Un(l,s){if(1&l&&(t.TgZ(0,"div",28),t.YNc(1,Qn,2,0,"h6",29),t.YNc(2,Dn,1,1,"span",97),t.YNc(3,Nn,2,1,"span",30),t.qZA()),2&l){const c=t.oxw(2);t.xp6(1),t.Q6J("ngIf",c.data.ToP),t.xp6(1),t.Q6J("ngIf",c.data.ToP),t.xp6(1),t.Q6J("ngIf",c.data.ToP)}}function Sn(l,s){if(1&l&&(t.TgZ(0,"h6",95),t._uU(1),t.qZA()),2&l){const c=t.oxw(2);t.xp6(1),t.Oqu(c.config.PrintConfigInvoice.DocumentLabel.SalesPerson)}}function Rn(l,s){if(1&l&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&l){const c=t.oxw(2);t.xp6(1),t.hij(" ",null==c.data?null:c.data.SalesName," ")}}function Ln(l,s){1&l&&(t.TgZ(0,"h6",95),t._uU(1," Note "),t.qZA())}function Vn(l,s){if(1&l&&(t._UZ(0,"p",11),t.ALo(1,"newlines")),2&l){const c=t.oxw(2);t.Q6J("innerHTML",t.lcZ(1,1,null==c.data?null:c.data.ExtraNote),t.oJD)}}function kn(l,s){1&l&&(t.TgZ(0,"h6",98),t._uU(1,"Note "),t.qZA())}function qn(l,s){if(1&l&&(t._UZ(0,"p",99),t.ALo(1,"newlines")),2&l){const c=t.oxw(2);t.Q6J("innerHTML",t.lcZ(1,1,null==c.data?null:c.data.InvoiceNote),t.oJD)}}function Yn(l,s){if(1&l&&(t.TgZ(0,"p",100),t._uU(1),t.qZA()),2&l){const c=t.oxw(2);t.xp6(1),t.hij(" Printed : ",null==c.data?null:c.data.PrintDate," ")}}function Hn(l,s){if(1&l&&(t.TgZ(0,"p",100),t._uU(1),t.qZA()),2&l){const c=t.oxw(2);t.xp6(1),t.hij(" Created : ",null==c.data?null:c.data.Created," ")}}function En(l,s){1&l&&(t.ynx(0),t.TgZ(1,"div",36),t._uU(2," ( OFFLINE ) "),t.qZA(),t.BQk())}function Fn(l,s){if(1&l&&(t.TgZ(0,"div"),t._UZ(1,"div",101)(2,"packing-slip",102),t.qZA()),2&l){const c=t.oxw(2);t.xp6(2),t.Q6J("data",c.data)("printTemplate",c.printTemplate)("config",c.config)}}function Bn(l,s){if(1&l&&(t.TgZ(0,"div"),t.YNc(1,O,4,3,"div",5),t.TgZ(2,"div",6),t.YNc(3,V,1,5,"img",7),t.qZA(),t.TgZ(4,"div",6),t._UZ(5,"h2",8)(6,"i",9),t.TgZ(7,"p",10),t._UZ(8,"span",11),t.ALo(9,"newlines"),t._UZ(10,"br"),t.YNc(11,k,1,1,"span",12),t._UZ(12,"br")(13,"span",11),t.ALo(14,"newlines"),t.qZA(),t.YNc(15,E,4,2,"h6",13),t.YNc(16,F,1,1,"h6",14),t.YNc(17,B,2,3,"p",15),t.YNc(18,j,3,5,"span",16),t.YNc(19,$,3,5,"span",16),t.YNc(20,z,1,1,"p",17),t.qZA(),t.YNc(21,W,2,3,"h2",18),t.YNc(22,K,3,1,"ng-container",16),t.YNc(23,G,2,1,"div",19),t.TgZ(24,"div",20),t.YNc(25,v,3,2,"div",21),t.TgZ(26,"div",22),t._uU(27),t.qZA()(),t.YNc(28,sn,19,15,"div",23),t.YNc(29,Cn,3,5,"div",24),t.YNc(30,vn,2,1,"div",16),t.YNc(31,bn,8,5,"div",25),t.YNc(32,Zn,8,6,"div",25),t.YNc(33,yn,9,7,"div",26),t.ALo(34,"Filter"),t.TgZ(35,"div",27)(36,"div",28),t.YNc(37,An,4,2,"ng-container",16),t.YNc(38,wn,2,0,"h6",29),t.YNc(39,Jn,3,5,"span",30),t.qZA(),t.YNc(40,Un,4,3,"div",31),t.qZA(),t.TgZ(41,"div",32),t.YNc(42,Sn,2,1,"h6",29),t.YNc(43,Rn,2,1,"p",16),t.YNc(44,Ln,2,0,"h6",29),t.YNc(45,Vn,2,3,"p",12),t.YNc(46,kn,2,0,"h6",33),t.YNc(47,qn,2,3,"p",34),t.qZA(),t._UZ(48,"p",11),t.ALo(49,"SafeHtml"),t.TgZ(50,"div",6),t.YNc(51,Yn,2,1,"p",35),t.qZA(),t.TgZ(52,"div",36),t.YNc(53,Hn,2,1,"p",35),t.qZA(),t.YNc(54,En,3,0,"ng-container",16),t.YNc(55,Fn,3,3,"div",16),t.qZA()),2&l){const c=t.oxw();t.MT6("print_container invoice_mini ",c.printTemplate.PrintLX300?"lx300":""," ",c.printTemplate.CssClass," box mt-5"),t.xp6(1),t.Q6J("ngIf",(null==c.config||null==c.config.PrintConfigInvoice||null==c.config.PrintConfigInvoice.Footer?null:c.config.PrintConfigInvoice.Footer.CopyLabelEnabled)&&!(null!=c.printTemplate&&c.printTemplate.PrintLX300)&&(null==c.data?null:c.data.PrintCopyLabel)),t.xp6(2),t.Q6J("ngIf",null==c.printTemplate?null:c.printTemplate.Logo),t.xp6(2),t.Q6J("innerHTML",c.printTemplate.Name,t.oJD),t.xp6(1),t.Q6J("innerHTML",c.printTemplate.Field,t.oJD),t.xp6(2),t.Q6J("innerHTML",t.lcZ(9,43,null==c.printTemplate?null:c.printTemplate.Address),t.oJD),t.xp6(3),t.Q6J("ngIf",null==c.config||null==c.config.PrintConfigInvoice?null:c.config.PrintConfigInvoice.DocumentVisibility.RegisterCode),t.xp6(2),t.Q6J("innerHTML",t.lcZ(14,45,null==c.printTemplate?null:c.printTemplate.ContactInfo),t.oJD),t.xp6(2),t.Q6J("ngIf",c.customerVisible&&(null==c.data.Customer?null:c.data.Customer.Name)),t.xp6(1),t.Q6J("ngIf",c.customerVisible&&(null==c.data.Customer?null:c.data.Customer.NationalIDNumber)&&c.config.PrintConfigInvoice.DocumentVisibility.IdentificationVisible),t.xp6(1),t.Q6J("ngIf",c.customerVisible&&(null==c.data.Customer?null:c.data.Customer.Address)&&c.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),t.xp6(1),t.Q6J("ngIf",c.customerVisible&&(null==c.data.Customer?null:c.data.Customer.Phone)&&1!==c.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility&&null!==(null==c.data.Customer?null:c.data.Customer.Phone)),t.xp6(1),t.Q6J("ngIf",c.customerVisible&&(null==c.data.Customer?null:c.data.Customer.Mobile)&&1!==c.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility&&null==(null==c.data.Customer?null:c.data.Customer.Phone)&&null!==(null==c.data.Customer?null:c.data.Customer.Mobile)),t.xp6(1),t.Q6J("ngIf",c.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),t.xp6(1),t.Q6J("ngIf",c.data.paymentState<3),t.xp6(1),t.Q6J("ngIf",1==c.data.paymentState),t.xp6(1),t.Q6J("ngIf",1!=c.config.PrintConfigInvoice.Footer.CreatorVisiblePosition),t.xp6(2),t.Q6J("ngIf",c.config.PrintConfigInvoice.DocumentVisibility.NumberVisible),t.xp6(2),t.Oqu(c.data.Date),t.xp6(1),t.Q6J("ngForOf",c.data.Items),t.xp6(1),t.Q6J("ngIf",c.amountVisible&&!c.priceVisibleRestriction),t.xp6(1),t.Q6J("ngIf",(c.data.Payments.length>0||!(c.change>0)||c.diff>0)&&c.amountVisible),t.xp6(1),t.Q6J("ngIf",c.change>0&&c.amountVisible),t.xp6(1),t.Q6J("ngIf",c.diff>0&&!c.hasSurcharge&&c.amountVisible),t.xp6(1),t.Q6J("ngForOf",t.Dn7(34,47,c.data.AmountSummary,2,"Type")),t.xp6(4),t.Q6J("ngIf",c.config.PrintConfigInvoice.Footer.ShowLoyaltyPoint&&c.data.LoyaltyPoint),t.xp6(1),t.Q6J("ngIf",c.data.Coupon&&1!=c.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon),t.xp6(1),t.Q6J("ngIf",c.data.Coupon&&1!=c.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon),t.xp6(1),t.Q6J("ngIf",c.config.PrintConfigInvoice.DocumentVisibility.InvoicePaymentTermsVisible&&c.data.paymentState<3&&0==c.data.Payments.length),t.xp6(2),t.Q6J("ngIf",c.data.SalesName&&c.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),t.xp6(1),t.Q6J("ngIf",c.data.SalesName&&c.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),t.xp6(1),t.Q6J("ngIf",(null==c.data?null:c.data.ExtraNote)&&c.config.PrintConfigInvoice.Footer.ParkNoteVisible),t.xp6(1),t.Q6J("ngIf",c.data.ExtraNote&&c.config.PrintConfigInvoice.Footer.ParkNoteVisible),t.xp6(1),t.Q6J("ngIf",(null==c.data?null:c.data.InvoiceNote)&&c.config.PrintConfigInvoice.Footer.NoteVisible),t.xp6(1),t.Q6J("ngIf",c.data.InvoiceNote&&c.config.PrintConfigInvoice.Footer.NoteVisible),t.xp6(1),t.Q6J("innerHTML",t.lcZ(49,51,c.printTemplate.FooterLeft?c.printTemplate.FooterLeft:""),t.oJD),t.xp6(3),t.Q6J("ngIf",(null==c.config||null==c.config.PrintConfigInvoice||null==c.config.PrintConfigInvoice.DocumentVisibility?null:c.config.PrintConfigInvoice.DocumentVisibility.CustomerEntryTimeVisible)&&c.data.PrintDate),t.xp6(2),t.Q6J("ngIf",(null==c.config||null==c.config.PrintConfigInvoice||null==c.config.PrintConfigInvoice.DocumentVisibility?null:c.config.PrintConfigInvoice.DocumentVisibility.InvoiceCreatedTimeVisible)&&c.data.Created),t.xp6(1),t.Q6J("ngIf",c.data.offlineMode&&c.config.PrintConfigInvoice.DocumentVisibility.WritePrintOffline),t.xp6(1),t.Q6J("ngIf",null==c.config||null==c.config.PrintConfigInvoice?null:c.config.PrintConfigInvoice.DocumentVisibility.PrintPackingslipAftersell)}}function jn(l,s){if(1&l&&(t.ynx(0),t._UZ(1,"qr-code",104),t.BQk()),2&l){const c=t.oxw(2);t.xp6(1),t.Q6J("value",c.data.QRContent)("size",250)}}function $n(l,s){if(1&l&&(t.TgZ(0,"div",103),t.YNc(1,jn,2,2,"ng-container",16),t.qZA()),2&l){const c=t.oxw();t.xp6(1),t.Q6J("ngIf",(null==c.config||null==c.config.PrintConfigInvoice?null:c.config.PrintConfigInvoice.InvoiceQR.TransformTo)==c.invoiceQR.QRCode)}}var ln=function(l){return l[l.None=1]="None",l[l.Barcode=2]="Barcode",l[l.QRCode=3]="QRCode",l}(ln||{});let zn=(()=>{var l;class s{constructor(m,h,q){(0,d.Z)(this,"activeRoute",void 0),(0,d.Z)(this,"_onlineStatusService",void 0),(0,d.Z)(this,"decimalPipe",void 0),(0,d.Z)(this,"invoiceQR",ln),(0,d.Z)(this,"data",void 0),(0,d.Z)(this,"outletInfo",void 0),(0,d.Z)(this,"printTemplate",void 0),(0,d.Z)(this,"config",void 0),(0,d.Z)(this,"emailVisibleRestriction",void 0),(0,d.Z)(this,"priceVisibleRestriction",void 0),(0,d.Z)(this,"receiptParam",void 0),(0,d.Z)(this,"paperPrintMode",void 0),(0,d.Z)(this,"printModeType",void 0),(0,d.Z)(this,"destroy$",void 0),(0,d.Z)(this,"customerVisible",void 0),(0,d.Z)(this,"amountVisible",void 0),(0,d.Z)(this,"diff",void 0),(0,d.Z)(this,"change",0),(0,d.Z)(this,"currencyChange",void 0),(0,d.Z)(this,"totalItemsLabel",void 0),(0,d.Z)(this,"hasSurcharge",void 0),(0,d.Z)(this,"top",void 0),(0,d.Z)(this,"remainingLabel",void 0),(0,d.Z)(this,"isOnline",void 0),this.activeRoute=m,this._onlineStatusService=h,this.decimalPipe=q,this.destroy$=new n.x,this._onlineStatusService.getOnlineStatus$().subscribe(on=>{this.isOnline=on})}ngOnInit(){this.initRemainingLabel(),this.generateItemLabel(),this.checkAmountSummary(),this.checkSurcharge(),this.calculatePrintPrice(),this.prepareSalesCommission(),this.initPaperModeConfig(),this.parseTop()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}initRemainingLabel(){this.remainingLabel=(this.config?this.config.PrintConfigInvoice.Footer.LabelRemaining:"")||"Remaining"}initPaperModeConfig(){if(this.receiptParam){const m=this.receiptParam;this.paperPrintMode=[{label:"8cm",link:"/print/InvoiceMini",param:m},{label:"A4",link:"/print/Invoice",param:m}]}}parseTop(){this.data&&this.data.ToP&&(this.top=parseInt(this.data.ToP.toFixed(1)))}getJSONQR(){let m,h;return null!==this.data.OutletName&&null!=this.data.Number&&(m={Outlet:this.data.OutletName,Invoice:this.data.Number},h=JSON.stringify(m)),h}calculatePrintPrice(){this.data.offlineMode=!this.isOnline,this.customerVisible=this.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible&&this.data.Customer;let m=this.activeRoute.snapshot.queryParamMap.get("Price");this.amountVisible="0"!==m,this.calculateChange()}calculateChange(){let m=0;this.data.Payments.forEach(q=>{m+=q.PaidAmount});const h=this.data.FinalAmount;this.calculateDiff(),this.change=m-h,this.currencyChange=this.data.CurrencySymbol}calculateDiff(){let m=0;this.data.Payments.forEach(q=>{m+=q.Amount}),this.diff=this.data.FinalAmount-m,Math.abs(this.diff)<this.config.ModuleSell.ToleranceAmount&&(this.diff=0)}generateItemLabel(){let m=0;const h=this.data.Items.length;for(let cn of this.data.Items)(this.config.PrintConfigInvoice.ItemsTable.NonInventoryCount||2!=cn.Variant.TypeID)&&(m+=cn.Quantity);const q=m>1?"s":"",on=this.decimalPipe.transform(m,"1.0-4").toString();this.totalItemsLabel=`Total (Item${q}: ${h}, Qty: ${on})`}checkSurcharge(){this.hasSurcharge=!1;for(const m of this.data.AmountSummary)m.Label.includes("Surcharge")&&(this.hasSurcharge=!0)}checkAmountSummary(){const m=this.data.AmountSummary.length;"Change"==this.data.AmountSummary[m-1].Label&&(this.change=this.data.AmountSummary[m-1].Amount,this.currencyChange=this.data.AmountSummary[m-1].CurrencySymbol,this.data.AmountSummary.pop(),this.data.AmountSummary.pop())}prepareSalesCommission(){for(const m of this.data.Items)null!=m.SalesID&&null==m.SalesName&&(m.SalesName=this.getSalesName(m.SalesID))}getSalesName(m){const h=this.outletInfo.ListSales.find(q=>q.ID==m);return y.g.IsNotEmpty(h)?h.Name:""}}return l=s,(0,d.Z)(s,"\u0275fac",function(m){return new(m||l)(t.Y36(S.gz),t.Y36(R.q),t.Y36(T.JJ))}),(0,d.Z)(s,"\u0275cmp",t.Xpm({type:l,selectors:[["pos-receipt"]],inputs:{data:"data",outletInfo:"outletInfo",printTemplate:"printTemplate",config:"config",emailVisibleRestriction:"emailVisibleRestriction",priceVisibleRestriction:"priceVisibleRestriction",receiptParam:"receiptParam"},decls:5,vars:4,consts:[["rel","stylesheet","href","/Styles/Master/app_custom.css"],["rel","stylesheet","href","/Styles/Print/PaperSize8cm_custom.css"],[1,"d-print-none",3,"paperPrints","paperType"],[3,"class",4,"ngIf"],["class","d-flex justify-content-center",4,"ngIf"],["class","h5 text-center fw-bold ribbon text-white",4,"ngIf"],[1,"text-center"],["class","img-fluid border-0",3,"style","src",4,"ngIf"],[1,"m-0","fw-bold",3,"innerHTML"],[1,"d-block",3,"innerHTML"],[1,"mt-1","mb-3"],[3,"innerHTML"],[3,"innerHTML",4,"ngIf"],["class","m-0 pt-2 fw-bold",4,"ngIf"],["class","m-0 pt-2 fw-normal",3,"innerHTML",4,"ngIf"],["class","mb-0",3,"innerHTML",4,"ngIf"],[4,"ngIf"],["class","fst-italic mb-2",3,"innerHTML",4,"ngIf"],["class","text-center m-0 p-1",3,"class",4,"ngIf"],["class","row g-0",4,"ngIf"],[1,"row","g-0","justify-content-between","py-2"],["class","col fw-bold",4,"ngIf"],[1,"col","text-end"],["class","border-y pt-1",4,"ngFor","ngForOf"],["class","cartAmount pt-2",4,"ngIf"],["class","row g-0 text-end",4,"ngIf"],["class","row g-0 text-end",3,"ngClass",4,"ngFor","ngForOf"],[1,"row","g-0","mt-2"],[1,"col-md-12","text-center"],["class","m-0 fw-bold",4,"ngIf"],["class","pb-3",4,"ngIf"],["class","col-md-12 text-center",4,"ngIf"],[1,"text-center","my-2"],["class","fw-bold",4,"ngIf"],["style","word-break: break-all",3,"innerHTML",4,"ngIf"],["class","m-0",4,"ngIf"],[1,"text-center","mt-3"],[1,"h5","text-center","fw-bold","ribbon","text-white"],["class","bg-primary ribbon-content receipt py-3",3,"innerHTML",4,"ngIf"],["class","bg-danger void ribbon-content py-3",4,"ngIf"],["class","bg-warning retur ribbon-content py-3",4,"ngIf"],[1,"bg-primary","ribbon-content","receipt","py-3",3,"innerHTML"],[1,"bg-danger","void","ribbon-content","py-3"],[1,"bg-warning","retur","ribbon-content","py-3"],[1,"img-fluid","border-0",3,"src"],[1,"m-0","pt-2","fw-bold"],[1,"m-0","pt-2","fw-normal",3,"innerHTML"],[1,"mb-0",3,"innerHTML"],[1,"fst-italic","mb-2",3,"innerHTML"],[1,"text-center","m-0","p-1"],[1,"row","g-0"],[1,"col","fw-bold"],[1,"border-y","pt-1"],[1,"col-11"],["class","fst-italic pt-0 mt-0",4,"ngIf"],["class","col-1 ps-2 text-end",4,"ngIf"],[1,"d-flex","g-0","pb-1",3,"ngClass"],[1,"flex-grow-1","text-end"],[1,"d-flex","align-items-end","justify-content-end","me-5"],["class","small",4,"ngIf"],[1,"col-auto","text-end"],[3,"serials"],[1,"fst-italic","pt-0","mt-0"],[1,"inlineMarginLeft"],["class","fst-italic text-success","style","overflow-wrap: break-word;",3,"innerHTML",4,"ngIf"],[1,"fst-italic","text-success",2,"overflow-wrap","break-word",3,"innerHTML"],[1,"col-1","ps-2","text-end"],["class","small fst-italic text-danger",4,"ngIf"],[1,"small","fst-italic","text-danger"],[1,"small"],[1,"small","mx-1"],[1,"small","d-inline-flex","flex-column"],[1,"text-decoration-line-through","text-danger"],[1,"fw-bold","text-danger","me-2","ms-4","small"],[1,"fw-bold","text-danger","me-2","small"],[1,"cartAmount","pt-2"],[1,"row","g-0","text-end",3,"ngClass"],[1,"col-7","fw-bold",3,"ngClass"],[1,"col-5","g-0",3,"ngClass"],[1,"row"],[1,"col-auto"],[1,"col"],["class","row g-0 text-end",3,"hidden",4,"ngFor","ngForOf"],[1,"row","g-0","text-end",3,"hidden"],[1,"col-7","fw-bold"],[1,"col-5","row","g-0"],["class","col-auto",4,"ngIf"],[1,"row","g-0","text-end"],[1,"col-5","text-start"],[1,"col-1","text-center"],["class","col-1",4,"ngIf"],[1,"col-3"],[1,"col-1"],[1,"mt-3","mb-1","d-block"],[1,"pb-3",3,"innerHTML"],[1,"m-0","fw-bold"],[1,"pb-3"],["class","pb-3",3,"innerHTML",4,"ngIf"],[1,"fw-bold"],[2,"word-break","break-all",3,"innerHTML"],[1,"m-0"],[2,"border-top-style","dotted"],[3,"data","printTemplate","config"],[1,"d-flex","justify-content-center"],[1,"qrcode-custom",3,"value","size"]],template:function(m,h){1&m&&(t._UZ(0,"link",0)(1,"link",1)(2,"POS-print-mode",2),t.YNc(3,Bn,56,53,"div",3),t.YNc(4,$n,2,1,"div",4)),2&m&&(t.xp6(2),t.Q6J("paperPrints",h.paperPrintMode)("paperType","mini"),t.xp6(1),t.Q6J("ngIf",h.data),t.xp6(1),t.Q6J("ngIf",(null==h.config||null==h.config.PrintConfigInvoice?null:h.config.PrintConfigInvoice.InvoiceQR.TransformTo)!=h.invoiceQR.None))},dependencies:[T.mk,T.sg,T.O5,N.S,J.g,a.uU,L.B,T.JJ,e.OI,e.sH,e.Qc,e.wn,e.zX],styles:[".invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}table.plain[_ngcontent-%COMP%]{border-collapse:collapse}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:16px;padding:2px 7px;color:#fff;font-weight:700}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#000;text-shadow:none}table.plain[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px}table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:3px solid black}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%]{margin:0 5px 0 0;padding:0;float:left;display:block}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#fff;display:block;background-color:#d8dfea;border:1px solid #bbb;border-radius:3px}table.plain[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}table.plain[_ngcontent-%COMP%] div.text[_ngcontent-%COMP%]{padding:2px 0 0}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{display:block;color:#00f;text-decoration:none}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a, table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a:visited{font-weight:700}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin:0;padding:0;display:block}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%]{background-color:#fdf3c6!important}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}table.plain[_ngcontent-%COMP%] th.borderLRB0[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.borderLRB0[_ngcontent-%COMP%]{border-left-width:0px!important;border-right-width:0px!important;border-bottom-width:0px!important;background-color:#fff!important}table.plain[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.plain[_ngcontent-%COMP%] th.numberCenter[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:center}table.plain[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.plain[_ngcontent-%COMP%] td.top[_ngcontent-%COMP%]{vertical-align:top}table.plain[_ngcontent-%COMP%] td.noTopPad[_ngcontent-%COMP%]{padding-top:0}table.plain[_ngcontent-%COMP%] td.small[_ngcontent-%COMP%]{font-size:11px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-width:0px;background-color:#fff}table.plain[_ngcontent-%COMP%] span.serial[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 0 5px 5px;background-color:#fff}table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inlineMarginLeft[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%]{margin:0;padding:0;list-style-type:circle;list-style-position:inside}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 20px 0 0;padding:0;float:left;display:block}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.scroll[_ngcontent-%COMP%]{width:100%;overflow:auto;padding:0 0 2px}table.fixed[_ngcontent-%COMP%]{table-layout:fixed}table.footer_row[_ngcontent-%COMP%]{margin:5px 8px 0 auto}table.footer_row[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px;text-align:right;float:left}table.footer_adjust[_ngcontent-%COMP%]{margin:-10px 18px 0 auto}table.footer_adjust[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_adjust[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_adjust[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px 23px 5px 5px;text-align:right;float:left}table.total-all-grid[_ngcontent-%COMP%]{width:100%!important;border-collapse:collapse;margin-top:10px}table.manufacture[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table.manufacture[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fceca3!important}table.manufacture[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #BBBBBB!important}table.accounting[_ngcontent-%COMP%]{max-width:1000px;border-collapse:collapse}table.accounting[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:1px solid #999;border-bottom:1px solid #999;height:28px;line-height:16px;color:#444;background-color:#fceca3!important}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.accounting[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px;border-bottom:1px solid black}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#00f;text-decoration:none}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.accounting[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.accounting[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.accounting[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.accounting[_ngcontent-%COMP%] th.bordertop[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.bordertop[_ngcontent-%COMP%]{border-top:1px #999 solid}table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-bottom:20px}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(2n){background-color:#fff}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(4n-1){background-color:#f6f6f6}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:1px solid #9e9e9e;color:#000;text-shadow:none}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8;display:table-cell}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(3){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(5){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(6){width:5%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(7){width:10%!important}.listReturn[_ngcontent-%COMP%] a.head[_ngcontent-%COMP%]{padding:10px 0 10px 10px;display:block;width:50%}.listReturn[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:right!important}.listReturn[_ngcontent-%COMP%] table.summary[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-top:20px!important;display:block}table.paidAmount[_ngcontent-%COMP%]{float:right;margin-top:-10px;text-align:right;padding-right:7px}table.paidAmount[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}table.paidAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}table.paidAmount[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 5px}div.zebra[_ngcontent-%COMP%]{display:table;border-collapse:collapse}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:table-cell}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > strong[_ngcontent-%COMP%]{display:block;border:1px solid #525252;background-color:#545454;background-image:linear-gradient(#888,#545454);box-shadow:inset 0 2px 0 -1px #fff3;text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:24px;border-bottom:1px solid #333;padding:2px 7px;color:#fff;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;padding:5px 7px;border:solid 1px #d8d8d8;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.number[_ngcontent-%COMP%]{text-align:right}qrcode.qrcode-custom[_ngcontent-%COMP%]{margin-top:-20px}"]})),s})(),Wn=(()=>{var l;class s{}return l=s,(0,d.Z)(s,"\u0275fac",function(m){return new(m||l)}),(0,d.Z)(s,"\u0275mod",t.oAB({type:l})),(0,d.Z)(s,"\u0275inj",t.cJS({imports:[T.ez,e.dr,N.m,J.y,a.OF]})),s})()},36842:(tn,D,P)=>{P.d(D,{g:()=>R,y:()=>L});var d=P(81180),T=P(96814),y=P(64190),e=P(65879);const a=function(b){return[b]},n=function(b,Z,M,O){return{ID:b,Template:Z,Price:M,Print:O}};function N(b,Z){if(1&b&&(e.ynx(0),e.TgZ(1,"div",5)(2,"a",6)(3,"small"),e._uU(4),e.qZA()()(),e.BQk()),2&b){const M=Z.$implicit,O=Z.index;e.xp6(1),e.Tol(O>0?"border-start border-light":""),e.xp6(1),e.Q6J("routerLink",e.VKq(5,a,M.link))("queryParams",e.l5B(7,n,M.param.ID,null==M||null==M.param?null:M.param.Template,M.param.Price,M.param.Print)),e.xp6(2),e.Oqu(null==M?null:M.label)}}function J(b,Z){if(1&b&&(e.ynx(0),e.TgZ(1,"div",2)(2,"div",3)(3,"small"),e._uU(4,"Paper Size :"),e.qZA()(),e.YNc(5,N,5,12,"ng-container",4),e.qZA(),e.BQk()),2&b){const M=e.oxw();e.xp6(5),e.Q6J("ngForOf",M.paperPrints)}}function t(b,Z){if(1&b&&(e.TgZ(0,"li")(1,"a",6)(2,"medium"),e._uU(3),e.qZA()()()),2&b){const M=Z.$implicit;e.xp6(1),e.Q6J("routerLink",e.VKq(3,a,M.link))("queryParams",e.l5B(5,n,M.param.ID,null==M||null==M.param?null:M.param.Template,M.param.Price,M.param.Print)),e.xp6(2),e.Oqu(null==M?null:M.label)}}function S(b,Z){if(1&b&&(e.TgZ(0,"div",7)(1,"span"),e._uU(2,"Paper Size :"),e.qZA(),e.TgZ(3,"ul"),e.YNc(4,t,4,10,"li",4),e.qZA()()),2&b){const M=e.oxw();e.xp6(4),e.Q6J("ngForOf",M.paperPrints)}}let R=(()=>{var b;class Z{constructor(){(0,d.Z)(this,"paperPrints",void 0),(0,d.Z)(this,"paperType",void 0)}}return b=Z,(0,d.Z)(Z,"\u0275fac",function(O){return new(O||b)}),(0,d.Z)(Z,"\u0275cmp",e.Xpm({type:b,selectors:[["POS-print-mode"]],inputs:{paperPrints:"paperPrints",paperType:"paperType"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["A4",""],[1,"row","g-0","invoice_mini"],[1,"col-auto"],[4,"ngFor","ngForOf"],[1,"col-auto","ps-3","pe-3"],[3,"routerLink","queryParams"],[1,"mode"]],template:function(O,w){if(1&O&&(e.YNc(0,J,6,1,"ng-container",0),e.YNc(1,S,5,1,"ng-template",null,1,e.W1O)),2&O){const V=e.MAs(2);e.Q6J("ngIf","mini"==w.paperType)("ngIfElse",V)}},dependencies:[T.sg,T.O5,y.rH],styles:['.invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}body[_ngcontent-%COMP%]{padding:0;font-size:12px}a.linkMini[_ngcontent-%COMP%]{left:130px;position:absolute;top:.5px;text-decoration:none;color:#3b5998}div.print_container[_ngcontent-%COMP%]{margin:0 auto;width:900px;text-align:left;color:#000;position:relative}div.print_container[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important;background-color:#fff}div.mode[_ngcontent-%COMP%]{color:gray;font-size:11px;text-align:right;height:20px;padding-top:2px}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%], div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{float:left;display:block;margin:0;padding:0}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child{padding-right:5px;margin-right:5px;border-right:solid 1px gray}div.mode[_ngcontent-%COMP%] div.printer[_ngcontent-%COMP%]{float:left}div.mode[_ngcontent-%COMP%] div.template[_ngcontent-%COMP%]{float:right}div.mode[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#3b5998;text-decoration:none}div.mode[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.mode[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{color:gray}div.mode[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]:hover{text-decoration:none}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:0 5px}div.header_left[_ngcontent-%COMP%]{float:left;padding:5px 0 0 5px;max-width:425px}div.header_left[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:5px 0 0;padding:0;font-size:18px}div.header_right[_ngcontent-%COMP%]{float:right;padding:0 5px 0 0;max-width:425px}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;padding:0;text-align:right}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin:0 5px 0 0;text-transform:uppercase}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:18px;font-weight:400}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{float:right;border-collapse:collapse}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #9E9E9E;padding:4px}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#f6f6f6}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-bottom:6px}div.header[_ngcontent-%COMP%] img.float[_ngcontent-%COMP%]{margin:5px 0 0 5px;float:left}div.header[_ngcontent-%COMP%] div.company[_ngcontent-%COMP%]{width:100%;overflow:auto;margin:0 0 8px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%]{float:left}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin:0;padding:0}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:11px;text-align:left;font-weight:400}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%]{margin-top:3px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%] div.address[_ngcontent-%COMP%]{float:left;min-width:125px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%] div.number[_ngcontent-%COMP%]{margin-right:5px;min-width:160px}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%]{width:calc(100% - 12px);overflow:auto;border:solid 1px #9E9E9E;padding:5px}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:12px;margin:0 5px 0 0;padding:0;font-weight:700;float:left}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%] div.box[_ngcontent-%COMP%]{float:left}div.cartItems[_ngcontent-%COMP%]{padding:10px 3px 2px 5px}div.copy[_ngcontent-%COMP%]{background-image:url(/Images/Print/copy_bg.png);background-repeat:no-repeat;background-position:50% 70px}div.topNote[_ngcontent-%COMP%]{clear:both;text-align:right}div.invoiceNote[_ngcontent-%COMP%]{padding:10px 0 0 7px}div.note[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:700;font-size:12px;margin:0 0 3px;padding:0}div.note[_ngcontent-%COMP%] div.single[_ngcontent-%COMP%]{width:895px!important}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:5px;width:440px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:5px 0 0;padding:0 0 0 20px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 0 2px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:2px 0 5px;padding:0 0 0 20px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 0 2px}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:440px;border-left:solid 1px #CACACA;padding-left:8px;margin-right:5px}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h3.closing[_ngcontent-%COMP%]{margin-top:10px;text-align:right}div.note-info[_ngcontent-%COMP%]{margin:auto;width:23%}table.info[_ngcontent-%COMP%]{border-collapse:collapse;margin-top:5px;margin-left:5px}table.info[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.info[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px;border:solid 1px #d8d8d8}table.info[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#f6f6f6}div.fullContainer[_ngcontent-%COMP%] div.print_container[_ngcontent-%COMP%]{min-height:970px;position:relative}.clearfix[_ngcontent-%COMP%]:before, .clearfix[_ngcontent-%COMP%]:after{content:"";display:table}.clearfix[_ngcontent-%COMP%]:after{clear:both}.clearfix[_ngcontent-%COMP%]{zoom:1}div.reportMargin[_ngcontent-%COMP%]{margin:20px 0 0}@media print{div.mode[_ngcontent-%COMP%], .linkMini[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}thead[_ngcontent-%COMP%]{display:table-header-group}}small.timestamp[_ngcontent-%COMP%], small.creator[_ngcontent-%COMP%], small.printed[_ngcontent-%COMP%]{font-size:12px;text-align:center;display:block;font-style:italic;padding:2px 0}small.creator[_ngcontent-%COMP%]{padding:2px 0 20px;font-style:normal}span.titleJB[_ngcontent-%COMP%]{font-weight:700;padding:10px 0 7px 8px;display:block}.topHolder[_ngcontent-%COMP%]{margin-top:15px!important}h1.jobOrderHeader[_ngcontent-%COMP%]{text-align:center}.shippingAddress[_ngcontent-%COMP%]{text-align:right;min-width:240px;clear:both}.shippingAddress[_ngcontent-%COMP%] div.box[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child{text-align:left;font-weight:700}.packingSlip[_ngcontent-%COMP%]{min-width:150px}.customer_info[_ngcontent-%COMP%]{min-width:310px}']})),Z})(),L=(()=>{var b;class Z{}return b=Z,(0,d.Z)(Z,"\u0275fac",function(O){return new(O||b)}),(0,d.Z)(Z,"\u0275mod",e.oAB({type:b})),(0,d.Z)(Z,"\u0275inj",e.cJS({imports:[T.ez,y.Bz]})),Z})()},1650:(tn,D,P)=>{P.d(D,{LA:()=>y,vb:()=>T});var d=P(81180);class T{constructor(){(0,d.Z)(this,"ID",void 0),(0,d.Z)(this,"Code",void 0),(0,d.Z)(this,"Name",void 0),(0,d.Z)(this,"Field",void 0),(0,d.Z)(this,"Address",void 0),(0,d.Z)(this,"ContactInfo",void 0),(0,d.Z)(this,"Logo",void 0),(0,d.Z)(this,"FooterLeft",void 0),(0,d.Z)(this,"FooterRight",void 0),(0,d.Z)(this,"FooterNote",void 0),(0,d.Z)(this,"PrintMode",void 0),(0,d.Z)(this,"PrintLX300",void 0),(0,d.Z)(this,"DeliveryNote",void 0),(0,d.Z)(this,"AppendQR",void 0),(0,d.Z)(this,"ItemRenderMode",void 0),(0,d.Z)(this,"CssClass",void 0),(0,d.Z)(this,"RemoveImage",void 0),(0,d.Z)(this,"DisplayName",void 0),(0,d.Z)(this,"DisplayNameCode",void 0)}}var y=function(a){return a[a.A4=1]="A4",a[a.Mini=2]="Mini",a}(y||{})},19121:(tn,D,P)=>{P.d(D,{q:()=>L});var d=P(81180),T=P(65619),y=P(63019),e=P(92438),a=P(52572),n=P(37398),N=P(27921),J=P(83311),t=P(65879),S=P(11119),R=P(2425);let L=(()=>{var b;class Z{get isOnline(){return navigator.onLine}constructor(O,w){(0,d.Z)(this,"localDataService",void 0),(0,d.Z)(this,"toastr",void 0),(0,d.Z)(this,"localConfig",new J.Z),(0,d.Z)(this,"_offlineConfigSubject",new T.X(this.localConfig)),(0,d.Z)(this,"offlineConfig$",this._offlineConfigSubject.asObservable()),(0,d.Z)(this,"online$",(0,y.T)((0,e.R)(window,"offline").pipe((0,n.U)(()=>!1)),(0,e.R)(window,"online").pipe((0,n.U)(()=>!0))).pipe((0,N.O)(navigator.onLine))),this.localDataService=O,this.toastr=w,this.initLocalDataConfig()}initLocalDataConfig(){this.localDataService.getOfflineConfig().subscribe({next:O=>{const w=new J.Z(O.configUsingLocal,O.productUsingLocal,O.orderUsingLocal);this.pushNewValue(w),this.localConfig=w,this.updateOfflineConfigDB(O)},error:O=>{this.onErrorInitConfig()}})}onErrorInitConfig(){const O=new J.Z;this.pushNewValue(O),this.localConfig=O,this.updateOfflineConfigDB(O)}getOnlineStatus$(){return(0,a.a)([this.offlineConfig$.pipe((0,n.U)(O=>O.configUsingLocal)),this.online$]).pipe((0,n.U)(O=>{let k;return k=!0!==O[0]&&O[1]&&this.isOnline,k}))}pushNewValue(O){this._offlineConfigSubject.next(O)}updateOfflineConfigDB(O){this.localDataService.updateOfflineConfig(O).subscribe({next:w=>{this.pushNewValue(O)}})}}return b=Z,(0,d.Z)(Z,"\u0275fac",function(O){return new(O||b)(t.LFG(S.T),t.LFG(R._W))}),(0,d.Z)(Z,"\u0275prov",t.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"})),Z})()}}]);
package/POS/index.html CHANGED
@@ -20,7 +20,7 @@
20
20
  <script>
21
21
  (function () { var w = window; var ic = w.Intercom; if (typeof ic === "function") { ic('reattach_activator'); ic('update', w.intercomSettings); } else { var d = document; var i = function () { i.c(arguments); }; i.q = []; i.c = function (args) { i.q.push(args); }; w.Intercom = i; var l = function () { var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://widget.intercom.io/widget/xv1oomgl'; var x = d.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); }; if (w.attachEvent) { w.attachEvent('onload', l); } else { w.addEventListener('load', l, false); } } })();
22
22
  </script>
23
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dealpos@12.10.1/POS/styles.4e75ca4e4b8892b5.css"></head>
23
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/dealpos@12.10.2/POS/styles.4e75ca4e4b8892b5.css"></head>
24
24
 
25
25
 
26
26
  <body>
@@ -29,6 +29,6 @@
29
29
  <!--This attribute allows the elimination of parser-blocking JavaScript where the
30
30
  browser would have to load and evaluate scripts before continuing to parse. defer has a similar effect in this case.-->
31
31
  <script async="" src="https://cdn.jsdelivr.net/npm/dealpos-tm@6.7.3/tinymce.min.js"></script>
32
- <script src="https://cdn.jsdelivr.net/npm/dealpos@12.10.1/POS/runtime.236485a05323b6de.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/dealpos@12.10.1/POS/polyfills.3f7b3f1661f81693.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/dealpos@12.10.1/POS/scripts.01ef6dc10d9c7809.js" defer></script><script src="https://cdn.jsdelivr.net/npm/dealpos@12.10.1/POS/main.e59791741981d44a.js" type="module"></script></body>
32
+ <script src="https://cdn.jsdelivr.net/npm/dealpos@12.10.2/POS/runtime.916d5f63ede54365.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/dealpos@12.10.2/POS/polyfills.3f7b3f1661f81693.js" type="module"></script><script src="https://cdn.jsdelivr.net/npm/dealpos@12.10.2/POS/scripts.01ef6dc10d9c7809.js" defer></script><script src="https://cdn.jsdelivr.net/npm/dealpos@12.10.2/POS/main.4b4c87f1db8dfc61.js" type="module"></script></body>
33
33
 
34
34
  </html>