dealpos 12.53.2 → 12.53.4
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.
- package/POS/{chunk-4F6HGCG6.js → chunk-263EGWPA.js} +1 -1
- package/POS/{chunk-OZR2JQRX.js → chunk-2A3YHYAA.js} +1 -1
- package/POS/{chunk-QOSPJUZ7.js → chunk-2C23CTO2.js} +1 -1
- package/POS/{chunk-TRMKPPG2.js → chunk-2IWSSIED.js} +1 -1
- package/POS/{chunk-LDVCLKNY.js → chunk-2SXA6N6A.js} +1 -1
- package/POS/{chunk-YMITIC3Y.js → chunk-2WEKKSVS.js} +1 -1
- package/POS/{chunk-ZZ2PJVYB.js → chunk-3LUAQGET.js} +1 -1
- package/POS/{chunk-YIMIME3A.js → chunk-3M5QLQV6.js} +1 -1
- package/POS/{chunk-JN4UI374.js → chunk-43RHJ4WO.js} +1 -1
- package/POS/{chunk-U4WGM4ZT.js → chunk-4PEPDK5P.js} +1 -1
- package/POS/{chunk-IM72DQEF.js → chunk-5CT73NXW.js} +1 -1
- package/POS/{chunk-EP5IHAYA.js → chunk-5DYQLV6I.js} +1 -1
- package/POS/{chunk-5CDMLTMQ.js → chunk-6CIOJNLR.js} +1 -1
- package/POS/chunk-6HR3BLPL.js +1 -0
- package/POS/{chunk-7Z6MJ7OJ.js → chunk-6KIRKKDJ.js} +5 -5
- package/POS/{chunk-CR3BZ33H.js → chunk-74QZ4CGF.js} +1 -1
- package/POS/{chunk-HQD2OWNR.js → chunk-77LB6EYO.js} +1 -1
- package/POS/{chunk-I7HWPD4P.js → chunk-7IJBUZNT.js} +1 -1
- package/POS/{chunk-ZLS7MTA7.js → chunk-7JNN66RL.js} +1 -1
- package/POS/{chunk-GQMHIK5L.js → chunk-7LPNDWWM.js} +1 -1
- package/POS/{chunk-O7NPB7GR.js → chunk-A62NABWL.js} +1 -1
- package/POS/{chunk-VXCOGYRR.js → chunk-AINLMQ5L.js} +1 -1
- package/POS/{chunk-L22KFTPL.js → chunk-AMJX6YGG.js} +1 -1
- package/POS/{chunk-XCEHCPD2.js → chunk-APCZSM6V.js} +1 -1
- package/POS/{chunk-CTMB6PNM.js → chunk-B22TVX6J.js} +1 -1
- package/POS/chunk-B3YY5UJH.js +1 -0
- package/POS/{chunk-D6AK5X5A.js → chunk-BL2SR2N4.js} +1 -1
- package/POS/{chunk-6DHDZWPI.js → chunk-BN3BJFCQ.js} +1 -1
- package/POS/{chunk-FJJXLOFI.js → chunk-BWIJ44RZ.js} +1 -1
- package/POS/{chunk-JP55VA3S.js → chunk-C2AMR72M.js} +1 -1
- package/POS/{chunk-2G3SWGHE.js → chunk-CFBXPCUH.js} +1 -1
- package/POS/{chunk-ODFLELED.js → chunk-CJAMZHUZ.js} +1 -1
- package/POS/{chunk-HKHMNNRW.js → chunk-CUKBHJ2K.js} +1 -1
- package/POS/{chunk-WUEUJRYE.js → chunk-DGKMVYL6.js} +1 -1
- package/POS/{chunk-XQJ4XUOR.js → chunk-DJRMMBFT.js} +1 -1
- package/POS/{chunk-5FVI76U2.js → chunk-DWPGUQCE.js} +1 -1
- package/POS/{chunk-6G5O445A.js → chunk-EBLHHEZV.js} +2 -2
- package/POS/{chunk-DNOKEI47.js → chunk-EBZV37MD.js} +1 -1
- package/POS/{chunk-AVSJACUB.js → chunk-ELT7C4YB.js} +1 -1
- package/POS/{chunk-Z7NQQXHG.js → chunk-FD3JBJ2C.js} +1 -1
- package/POS/{chunk-KIO7AZGA.js → chunk-FRLTPSO7.js} +1 -1
- package/POS/{chunk-3MT7H3US.js → chunk-G2HJUPEE.js} +1 -1
- package/POS/{chunk-OQO2NQOS.js → chunk-GCDO56K2.js} +1 -1
- package/POS/{chunk-RLJGCY5C.js → chunk-GUKUHH5C.js} +1 -1
- package/POS/{chunk-QS3M5LXP.js → chunk-GYLX77MK.js} +1 -1
- package/POS/{chunk-KJFFFIHK.js → chunk-HTLLCBIU.js} +1 -1
- package/POS/{chunk-WS5THARA.js → chunk-I75GU5GH.js} +1 -1
- package/POS/{chunk-V6NSX6WZ.js → chunk-J7VC5SOK.js} +1 -1
- package/POS/{chunk-KU6WVJZA.js → chunk-JHF5KX3I.js} +1 -1
- package/POS/chunk-JJIDN4FM.js +4 -0
- package/POS/{chunk-JWNJ5JGX.js → chunk-JKWGI4UP.js} +1 -1
- package/POS/{chunk-E3H4T222.js → chunk-JOZP3OQ5.js} +1 -1
- package/POS/{chunk-34UCPDJB.js → chunk-JRBRGS6G.js} +1 -1
- package/POS/{chunk-FG5ZTN7A.js → chunk-JT4FNB5F.js} +1 -1
- package/POS/{chunk-BL3JO75W.js → chunk-KJENL66X.js} +1 -1
- package/POS/chunk-KLWYCGKZ.js +1 -0
- package/POS/{chunk-3WPT2MDL.js → chunk-KZKUNZP4.js} +1 -1
- package/POS/{chunk-Z5JX4OYO.js → chunk-LAUP6JZ7.js} +1 -1
- package/POS/{chunk-BHSSL77K.js → chunk-LNU3S5GR.js} +1 -1
- package/POS/{chunk-LFTFZ2DM.js → chunk-M63LK6AN.js} +1 -1
- package/POS/{chunk-IJW2HXGX.js → chunk-M6DW34Y7.js} +1 -1
- package/POS/{chunk-DWQGPTVM.js → chunk-M6EYMRB2.js} +1 -1
- package/POS/{chunk-7I6FV577.js → chunk-MBIENQYQ.js} +1 -1
- package/POS/{chunk-J6R62LPG.js → chunk-ML6BFT4Z.js} +1 -1
- package/POS/{chunk-AB7UHMTA.js → chunk-N63NO7CS.js} +1 -1
- package/POS/{chunk-FKZTRMY5.js → chunk-N7DTNBTH.js} +1 -1
- package/POS/{chunk-YDQX4RWT.js → chunk-NDPZ5E4R.js} +1 -1
- package/POS/{chunk-WTJZAVYO.js → chunk-NHNCNGMZ.js} +1 -1
- package/POS/{chunk-T4L7ZWKA.js → chunk-NOUD7KRH.js} +1 -1
- package/POS/{chunk-WYZQ25YO.js → chunk-NUTLCIGA.js} +1 -1
- package/POS/{chunk-DOZSR3AH.js → chunk-O6GWKIKT.js} +1 -1
- package/POS/{chunk-3HTZEMG5.js → chunk-OWWEC7VB.js} +1 -1
- package/POS/{chunk-5UQFRHQK.js → chunk-OY2NKNK5.js} +1 -1
- package/POS/{chunk-5WZ3BX23.js → chunk-P6KQG36M.js} +1 -1
- package/POS/{chunk-EEMRLDZ5.js → chunk-PVB66RCD.js} +1 -1
- package/POS/{chunk-7JBCZJTS.js → chunk-Q2B2RGHO.js} +1 -1
- package/POS/{chunk-6JBW4HZS.js → chunk-QPEDJWJ5.js} +1 -1
- package/POS/{chunk-PFUTOXKZ.js → chunk-QVHWZPC3.js} +1 -1
- package/POS/{chunk-UB35JRLG.js → chunk-R7EYUUBK.js} +1 -1
- package/POS/{chunk-6S7R3GMG.js → chunk-RBUGRSYX.js} +1 -1
- package/POS/{chunk-E6DG5JTB.js → chunk-RMVPTZRX.js} +1 -1
- package/POS/{chunk-45CZZLSM.js → chunk-SKNHLHYS.js} +1 -1
- package/POS/{chunk-ZLXK7URR.js → chunk-SYVAIREK.js} +1 -1
- package/POS/{chunk-RXBQ2IBA.js → chunk-TBRCDWGK.js} +2 -2
- package/POS/{chunk-ELAZUB6E.js → chunk-TFBYAD5Q.js} +1 -1
- package/POS/{chunk-D7M2HQ2N.js → chunk-TIR6AAOY.js} +1 -1
- package/POS/{chunk-AWDYHXY6.js → chunk-TWJPI43E.js} +1 -1
- package/POS/{chunk-MWMLC2BK.js → chunk-V5HWECYC.js} +1 -1
- package/POS/{chunk-AEM2Y5F6.js → chunk-V76STEBL.js} +1 -1
- package/POS/chunk-VDCRYQNT.js +1 -0
- package/POS/{chunk-WNS6P4JR.js → chunk-VIJOWABW.js} +1 -1
- package/POS/{chunk-7WDJOYQQ.js → chunk-VZPAXO4R.js} +1 -1
- package/POS/{chunk-BV3ZWJPG.js → chunk-W37LMQZP.js} +1 -1
- package/POS/{chunk-3N3R5S5T.js → chunk-WRAI2M3T.js} +1 -1
- package/POS/{chunk-JGKQEOVL.js → chunk-WV4VNR6O.js} +1 -1
- package/POS/{chunk-EQDWO4OO.js → chunk-WXH5IA4H.js} +1 -1
- package/POS/{chunk-C5B4TDR7.js → chunk-XQCAK7ZV.js} +1 -1
- package/POS/{chunk-PA7BOIZI.js → chunk-XXSJFYRF.js} +1 -1
- package/POS/{chunk-6RXK2ED5.js → chunk-Y2O7M3R7.js} +1 -1
- package/POS/{chunk-BHWFXY6D.js → chunk-Y3FGTNGB.js} +1 -1
- package/POS/{chunk-RJT5LB7R.js → chunk-YAG4COYT.js} +1 -1
- package/POS/chunk-ZA42VSQF.js +1 -0
- package/POS/{chunk-OCHNDKCU.js → chunk-ZCMCBH3S.js} +1 -1
- package/POS/index.html +2 -2
- package/POS/{main-B2I2Z2XV.js → main-HT7MV4DQ.js} +2 -2
- package/package.json +1 -1
- package/POS/chunk-233SVMQX.js +0 -1
- package/POS/chunk-F3KMW5RZ.js +0 -1
- package/POS/chunk-OS2ZWNLM.js +0 -1
- package/POS/chunk-PGWJ53BN.js +0 -1
- package/POS/chunk-QXQRUUK2.js +0 -1
- package/POS/chunk-UIBFQDHR.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as R}from"./chunk-SIEUNTYO.js";import{i as E,j as T}from"./chunk-
|
|
1
|
+
import{b as R}from"./chunk-SIEUNTYO.js";import{i as E,j as T}from"./chunk-2WEKKSVS.js";import{c as b,d as w}from"./chunk-BN3BJFCQ.js";import{a as h}from"./chunk-2FWFPV5I.js";import{c as _,h as S,n as v}from"./chunk-7UM6XERA.js";import{b as y}from"./chunk-W37LMQZP.js";import{$b as p,Eb as M,Od as C,Sa as l,Ta as r,Vb as m,ac as d,bc as c,ib as g,na as u,vb as t,wb as a}from"./chunk-ZCFRJGRH.js";var N=class s{constructor(f,i,e,n){this.httpService=f;this.toaster=i;this.dialogRef=e;this.data=n;this.configModal=new E,this.configModal.title="Export Contact",this.configModal.headerType=h.Success,this.configModal.okText="<i class='fas fa-upload'></i> Export",this.Filter={PageNumber:1,RowCount:1e4}}Filter;configModal;onOk(){this.dialogRef.close({PageNumber:this.Filter.PageNumber,RowCount:this.Filter.RowCount})}static \u0275fac=function(i){return new(i||s)(r(y),r(C),r(b),r(w))};static \u0275cmp=u({type:s,selectors:[["ng-component"]],decls:11,vars:3,consts:[[3,"onOk","onCancel","onClose","config"],[1,"container",2,"width","350px"],[1,"row"],[1,"ps-0","mb-4"],["type","text","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],[1,"ps-0","my-4"]],template:function(i,e){i&1&&(t(0,"modal-material",0),M("onOk",function(){return e.onOk()})("onCancel",function(){return e.dialogRef.close()})("onClose",function(){return e.dialogRef.close()}),t(1,"content")(2,"div",1)(3,"div",2)(4,"label",3),m(5,"Page Number"),a(),t(6,"input",4),c("ngModelChange",function(o){return d(e.Filter.PageNumber,o)||(e.Filter.PageNumber=o),o}),a()(),t(7,"div",2)(8,"label",5),m(9,"Page Size"),a(),t(10,"input",4),c("ngModelChange",function(o){return d(e.Filter.RowCount,o)||(e.Filter.RowCount=o),o}),a()()()()()),i&2&&(g("config",e.configModal),l(6),p("ngModel",e.Filter.PageNumber),l(4),p("ngModel",e.Filter.RowCount))},dependencies:[_,S,v,T,R]})};export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Pt,b as xt}from"./chunk-3LKE4M2Q.js";import{a as ft}from"./chunk-RJT5LB7R.js";import{a as nt}from"./chunk-ZMX5K3VS.js";import{N as V,g as gt,n as _t,o as w,p as st,q as H,v as Ct,z as j}from"./chunk-V32Y6YNZ.js";import{a as mt}from"./chunk-6DHDZWPI.js";import{a as $}from"./chunk-3TXPK37I.js";import{Gb as c,Hd as ct,Kd as pt,Lc as rt,Md as dt,Na as _,Nc as k,Oa as Y,Oc as b,Pa as h,Sa as e,Ta as N,Ub as z,Vb as p,Vc as lt,Wb as C,Xb as s,Xc as y,Yb as O,Zb as at,_c as E,c as it,eb as d,fc as R,ga as I,ib as a,ic as tt,lb as ot,mb as D,na as M,nb as A,nc as g,oa as S,ob as L,oc as f,pc as v,qb as F,qc as T,tc as B,vb as l,wb as r,xb as m,yb as x,zb as u}from"./chunk-ZCFRJGRH.js";var ut=n=>[n],vt=(n,o,t,i)=>({ID:n,Template:o,Price:t,Print:i});function Tt(n,o){if(n&1&&(x(0),l(1,"div",5)(2,"a",6)(3,"small"),p(4),r()()(),u()),n&2){let t=o.$implicit,i=o.index;e(),D(i>0?"border-start border-light":""),e(),a("routerLink",R(5,ut,t.link))("queryParams",tt(7,vt,t.param.ID,t==null||t.param==null?null:t.param.Template,t.param.Price,t.param.Print)),e(2),C(t==null?null:t.label)}}function kt(n,o){if(n&1&&(x(0),l(1,"div",2)(2,"div",3)(3,"small"),p(4,"Paper Size :"),r()(),d(5,Tt,5,12,"ng-container",4),r(),u()),n&2){let t=c();e(5),a("ngForOf",t.paperPrints)}}function Et(n,o){if(n&1&&(l(0,"li")(1,"a",6)(2,"medium"),p(3),r()()()),n&2){let t=o.$implicit;e(),a("routerLink",R(3,ut,t.link))("queryParams",tt(5,vt,t.param.ID,t==null||t.param==null?null:t.param.Template,t.param.Price,t.param.Print)),e(2),C(t==null?null:t.label)}}function wt(n,o){if(n&1&&(l(0,"div",7)(1,"span"),p(2,"Paper Size :"),r(),l(3,"ul"),d(4,Et,4,10,"li",4),r()()),n&2){let t=c();e(4),a("ngForOf",t.paperPrints)}}var Q=class n{paperPrints;paperType;constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=M({type:n,selectors:[["POS-print-mode"]],inputs:{paperPrints:"paperPrints",paperType:"paperType"},decls:3,vars:2,consts:[["A4",""],[4,"ngIf","ngIfElse"],[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(t,i){if(t&1&&d(0,kt,6,1,"ng-container",1)(1,wt,5,1,"ng-template",null,0,B),t&2){let P=z(2);a("ngIf",i.paperType=="mini")("ngIfElse",P)}},dependencies:[k,b,pt],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}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}']})},U=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=S({type:n});static \u0275inj=I({imports:[E,dt]})};function Ht(n,o){if(n&1&&(x(0),l(1,"div",6)(2,"div",7)(3,"div",12)(4,"span"),p(5),r()()()(),u()),n&2){let t=c(2);e(5),O("",t.config==null||t.config.PrintConfigOthers==null||t.config.PrintConfigOthers.Header==null?null:t.config.PrintConfigOthers.Header.PackingReceiptTitle," : ",t.data==null||t.data.Delivery==null?null:t.data.Delivery.Number,"")}}function Vt(n,o){if(n&1&&(l(0,"strong"),p(1),r()),n&2){let t=c(3);e(),C(t.data.Customer==null?null:t.data.Customer.ContactDisplay)}}function Nt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Customer==null?null:t.data.Customer.Email)}}function Dt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Customer==null?null:t.data.Customer.Phone)}}function At(n,o){if(n&1&&(l(0,"div"),m(1,"span",11),g(2,"newlines"),r()),n&2){let t=c(3);e(),a("innerHtml",f(2,1,t.data.Customer==null?null:t.data.Customer.Address),_)}}function Lt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.CityName)}}function Ft(n,o){if(n&1&&(l(0,"div",13)(1,"div",14)(2,"h4"),m(3,"span",11),r(),d(4,Vt,2,1,"strong",3)(5,Nt,3,1,"div",3)(6,Dt,3,1,"div",3)(7,At,3,3,"div",3)(8,Lt,3,1,"div",3),r()()),n&2){let t=c(2);e(3),a("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.Customer,_),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible)}}function zt(n,o){if(n&1&&(l(0,"strong"),p(1),r()),n&2){let t=c(3);e(),C(t.data.Shipping.Name)}}function Bt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Shipping==null?null:t.data.Shipping.Street)}}function $t(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Shipping==null?null:t.data.Shipping.Phone)}}function jt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Shipping==null?null:t.data.Shipping.City)}}function Qt(n,o){if(n&1&&(l(0,"div"),m(1,"span",11),g(2,"newlines"),r()),n&2){let t=c(3);e(),a("innerHtml",f(2,1,t.data.Shipping==null?null:t.data.Shipping.Description),_)}}function Ut(n,o){if(n&1&&(l(0,"div",6)(1,"div",15)(2,"div",12),m(3,"span",11),r(),d(4,zt,2,1,"strong",3)(5,Bt,3,1,"div",3)(6,$t,3,1,"div",3)(7,jt,3,1,"div",3)(8,Qt,3,3,"div",3),r()()),n&2){let t=c(2);e(3),a("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.ShippingAddress,_),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),e(),a("ngIf",t.data.Shipping.Address),e(),a("ngIf",t.data.Shipping.Phone),e(),a("ngIf",t.data.Shipping.City),e(),a("ngIf",t.data.Shipping.Description)}}function Zt(n,o){if(n&1&&(l(0,"strong"),p(1),r()),n&2){let t=c(3);e(),C(t.data.Shipping.Sender)}}function Gt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderAddress)}}function qt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderPhone)}}function Wt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderCity)}}function Xt(n,o){if(n&1&&(l(0,"div",6)(1,"div",15)(2,"div",12)(3,"span"),p(4,"Ship From :"),r()(),d(5,Zt,2,1,"strong",3)(6,Gt,3,1,"div",3)(7,qt,3,1,"div",3)(8,Wt,3,1,"div",3),r()()),n&2){let t=c(2);e(5),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),e(),a("ngIf",t.data.Shipping.SenderAddress),e(),a("ngIf",t.data.Shipping.SenderPhone),e(),a("ngIf",t.data.Shipping.SenderCity)}}function Jt(n,o){if(n&1&&(x(0),l(1,"div",16)(2,"div",17)(3,"div",18)(4,"span",12),p(5),r()()()(),u()),n&2){let t=c(2);e(5),C(t.data.TypeName)}}function Kt(n,o){if(n&1&&(l(0,"tbody")(1,"tr"),m(2,"td",24),l(3,"td"),p(4),r(),m(5,"td",24),g(6,"number"),r()()),n&2){let t=o.$implicit,i=o.index;e(2),a("innerHtml",i+1+".",_),e(2),s(" ",t.Name," "),e(),a("innerHtml",f(6,3,t.Quantity),_)}}function Yt(n,o){if(n&1&&(l(0,"div",6)(1,"div",7)(2,"table",19)(3,"thead",20)(4,"tr")(5,"th",21),p(6,"No"),r(),l(7,"th",22),p(8,"Name"),r(),l(9,"th",21),p(10,"Qty"),r()()(),d(11,Kt,7,5,"tbody",23),r()()()),n&2){let t=c(2);e(11),a("ngForOf",t.data.List)}}function tn(n,o){if(n&1&&(l(0,"div",6)(1,"div",7),m(2,"div",25),g(3,"newlines"),r()()),n&2){let t=c(2);e(2),a("innerHtml",f(3,1,t.data.Invoice.Note),_)}}function nn(n,o){if(n&1&&(l(0,"div"),d(1,Ht,6,2,"ng-container",3)(2,Ft,9,6,"div",4)(3,Ut,9,6,"div",5)(4,Xt,9,4,"div",5)(5,Jt,6,1,"ng-container",3)(6,Yt,12,1,"div",5)(7,tn,4,3,"div",5),l(8,"div",6)(9,"div",7)(10,"div",8)(11,"div",9)(12,"div",10),m(13,"span",11),g(14,"newlines"),r()()()()()()),n&2){let t=c();A("packingslip_container ",t.printTemplate.PrintLX300?"lx300":"",""),e(),a("ngIf",t.constants.IsNotEmpty(t.data==null||t.data.Delivery==null?null:t.data.Delivery.Number)),e(),a("ngIf",!(t.data.Shipping!=null&&t.data.Shipping.Recipient)),e(),a("ngIf",t.data.Shipping),e(),a("ngIf",(t.data.Shipping==null?null:t.data.Shipping.Sender)&&t.config.PrintConfigPackingSlip.ShippingAddressSenderVisible),e(),a("ngIf",t.data.TypeName),e(),a("ngIf",t.config.PrintConfigPackingSlip.ProductTableVisible),e(),a("ngIf",t.config.PrintConfigPackingSlip.RenderInvoiceNote&&(t.data.Invoice==null?null:t.data.Invoice.Note)!=null),e(6),a("innerHtml",f(14,11,t.printTemplate.DeliveryNote),_)}}var W=class n{data;printTemplate;config;constants=$;static \u0275fac=function(t){return new(t||n)};static \u0275cmp=M({type:n,selectors:[["packing-slip"]],inputs:{data:"data",printTemplate:"printTemplate",config:"config"},decls:3,vars:1,consts:[["rel","stylesheet","href",h`/Styles/Master/app_custom.css`],["rel","stylesheet","href",h`/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","g-0"],[1,"col"],["id","signatureNote"],[1,"note"],[1,"d-flex","justify-content-md-start"],[3,"innerHtml"],[1,"fw-bold"],[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,"row","my-2"],[1,"col","text-end","my-2"],[1,"border","border-dark","py-2","px-2","mb-2","text-center"],[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(t,i){t&1&&(m(0,"link",0)(1,"link",1),d(2,nn,15,13,"div",2)),t&2&&(e(2),a("ngIf",i.data&&i.config))},dependencies:[k,b,y,w]})},X=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=S({type:n});static \u0275inj=I({imports:[E,V]})};var on=n=>({width:n}),an=n=>({"align-items-end":n});function rn(n,o){if(n&1&&m(0,"div",43),n&2){let t=c(3);a("innerHTML",t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.FooterLabel==null?null:t.config.PrintConfigInvoice.FooterLabel.CopyLabelText,_)}}function ln(n,o){n&1&&(l(0,"div",44),p(1,"Void"),r())}function cn(n,o){n&1&&(l(0,"div",45),p(1," Return "),r())}function pn(n,o){if(n&1&&(l(0,"div",39),d(1,rn,1,1,"div",40)(2,ln,2,0,"div",41)(3,cn,2,0,"div",42),r()),n&2){let t=c(2);e(),a("ngIf",!t.data.Bin&&!t.data.Retur),e(),a("ngIf",t.data==null?null:t.data.Bin),e(),a("ngIf",t.data==null?null:t.data.Retur)}}function dn(n,o){if(n&1&&m(0,"img",47),n&2){let t=c(3);ot(R(3,on,t.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth+"px")),a("src",t.printTemplate==null?null:t.printTemplate.Logo,Y)}}function mn(n,o){if(n&1&&(x(0),d(1,dn,1,5,"img",46),u()),n&2){let t=c(2);e(),a("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function gn(n,o){if(n&1&&m(0,"img",47),n&2){let t=c(3);a("src",t.printTemplate==null?null:t.printTemplate.Logo,Y)}}function _n(n,o){if(n&1&&d(0,gn,1,1,"img",48),n&2){let t=c(2);a("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function sn(n,o){if(n&1&&m(0,"span",12),n&2){let t=c(2);a("innerHTML",t.data==null?null:t.data.RegisterCode,_)}}function Cn(n,o){if(n&1&&(l(0,"span"),p(1),r()),n&2){let t=c(3);e(),O(", ",t.data==null||t.data.Customer==null?null:t.data.Customer.Title," - ",t.data==null||t.data.Customer==null?null:t.data.Customer.Code,"")}}function fn(n,o){if(n&1&&(l(0,"h6",49)(1,"span"),p(2),r(),d(3,Cn,2,2,"span",17),r()),n&2){let t=c(2);e(2),C(t.data.Customer==null?null:t.data.Customer.Name),e(),a("ngIf",(t.data==null||t.data.Customer==null?null:t.data.Customer.Code)&&t.config.PrintConfigInvoice.DocumentVisibility.CustomerCodeVisible)}}function Pn(n,o){if(n&1&&m(0,"h6",50),n&2){let t=c(2);a("innerHTML",t.data.Customer==null?null:t.data.Customer.NationalIDNumber,_)}}function xn(n,o){if(n&1&&(m(0,"p",51),g(1,"newlines")),n&2){let t=c(2);a("innerHTML",f(1,1,t.data.Customer==null?null:t.data.Customer.Address),_)}}function un(n,o){if(n&1&&(l(0,"span"),p(1),g(2,"limitTo"),r()),n&2){let t=c(2);e(),s(" ",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility==3?"*****"+T(2,1,t.data.Customer==null?null:t.data.Customer.Phone,4,(t.data.Customer==null?null:t.data.Customer.Phone.length)-4):" "+(t.data.Customer==null?null:t.data.Customer.Phone)," ")}}function vn(n,o){if(n&1&&(l(0,"span"),p(1),g(2,"limitTo"),r()),n&2){let t=c(2);e(),s(" ",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility==3?"*****"+T(2,1,t.data.Customer==null?null:t.data.Customer.Mobile,4,(t.data.Customer==null||t.data.Customer.Mobile==null?null:t.data.Customer.Mobile.length)-4):" "+(t.data.Customer==null?null:t.data.Customer.Mobile)," ")}}function Mn(n,o){if(n&1&&m(0,"p",52),n&2){let t=c(2);a("innerHTML",t.data.Customer==null?null:t.data.Customer.Email,_)}}function On(n,o){if(n&1&&(l(0,"h2",53),p(1),r()),n&2){let t=c(2);D(t.data.paymentState==2?"text-warning":"text-danger"),e(),s(" ",t.data.paymentState==2?"PARTIAL":t.config.PrintConfigInvoice.DocumentLabel.BillLabel," ")}}function bn(n,o){if(n&1&&(l(0,"h2",20),p(1),r()),n&2){let t=c(2);e(),s(" ",!(t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.Header==null)&&t.config.PrintConfigInvoice.Header.SalesReturnLabelText?t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.Header==null?null:t.config.PrintConfigInvoice.Header.SalesReturnLabelText:"SALES RETURN"," ")}}function hn(n,o){if(n&1&&(x(0),l(1,"h3",53),p(2),r(),u()),n&2){let t=c(2);e(2),C(t.data==null?null:t.data.ParkLabel)}}function yn(n,o){if(n&1&&(l(0,"div",54),p(1),r()),n&2){let t=c(2);e(),s(" Cashier : ",t.data.Creator," ")}}function In(n,o){if(n&1&&(x(0),m(1,"div",12),u()),n&2){let t=c(3);e(),a("innerHTML",t.data.HeaderTitle,_)}}function Sn(n,o){if(n&1&&(l(0,"div",55),d(1,In,2,1,"ng-container",17),m(2,"div",12),r()),n&2){let t=c(2);e(),a("ngIf",t.data.HeaderTitle),e(),a("innerHTML",t.data.Number,_)}}function Tn(n,o){if(n&1&&(x(0),p(1),u()),n&2){let t=c().index;e(),s(" ",t+1,". ")}}function kn(n,o){if(n&1&&(x(0),m(1,"app-serial-note",65),u()),n&2){let t=c().$implicit;e(),a("serials",t.Serial)}}function En(n,o){if(n&1&&(l(0,"div",66)(1,"i",67),p(2),r()()),n&2){let t=c().$implicit;e(2),s(" sold by ",t.SalesName," ")}}function wn(n,o){if(n&1&&(m(0,"small",69),g(1,"newlines")),n&2){let t=c(2).$implicit;a("innerHTML",f(1,1,t.Note),_)}}function Rn(n,o){if(n&1&&(x(0),d(1,wn,2,3,"small",68),u()),n&2){let t=c().$implicit,i=c(2);e(),a("ngIf",t.Note&&i.config.PrintConfigInvoice.ItemsTable.NoteItemVisible)}}function Hn(n,o){if(n&1&&(l(0,"span",72),p(1),r()),n&2){let t=c(2).$implicit;e(),s(" ",t.Taxable?"V":"N"," ")}}function Vn(n,o){if(n&1&&(l(0,"span",72),p(1),r()),n&2){let t=c(2).$implicit,i=c(2);e(),s(" ",t.Taxable?i.config.PrintConfigInvoice.ItemsTable.TaxableLabel:"N"," ")}}function Nn(n,o){if(n&1&&(l(0,"div",70),d(1,Hn,2,1,"span",71)(2,Vn,2,1,"span",71),r()),n&2){let t=c(3);e(),a("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel==""||t.config.PrintConfigInvoice.ItemsTable.TaxableLabel=="Taxable"),e(),a("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!=""&&t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!="Taxable")}}function Dn(n,o){if(n&1&&(l(0,"span",73),p(1),g(2,"number"),r()),n&2){let t=c().$implicit,i=c(2);e(),at(" ",v(2,3,t.Quantity,"1.0-4")," ",i.config.PrintConfigInvoice.ItemsTable.UOMVisible?t.Variant.UOMName:""," ",t.UnitQuantity!=1?" x "+t.UnitQuantity:""," ")}}function An(n,o){if(n&1&&(x(0),l(1,"span",76),p(2),g(3,"number"),r(),u()),n&2){let t=c(3).$implicit;e(2),C(f(3,1,t==null?null:t.UnitPriceOriginal))}}function Ln(n,o){if(n&1&&(x(0),d(1,An,4,3,"ng-container",17),u()),n&2){let t=c(2).$implicit;e(),a("ngIf",(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))}}function Fn(n,o){if(n&1&&(x(0),l(1,"span",74),p(2,"x"),r(),l(3,"span",75),d(4,Ln,2,1,"ng-container",17),p(5),g(6,"number"),r(),u()),n&2){let t=c().$implicit,i=c(2);e(4),a("ngIf",i.config.ModuleSell==null||i.config.ModuleSell.Promotion==null?null:i.config.ModuleSell.Promotion.StrikethroughOriginalPrice),e(),s(" ",f(6,2,t.Price)," ")}}function zn(n,o){if(n&1&&(x(0),l(1,"i",77),p(2),g(3,"number"),r(),u()),n&2){let t=c().$implicit;e(2),s(" ","-"+f(3,1,t.Discount)+"%"," ")}}function Bn(n,o){if(n&1&&(x(0),l(1,"i",78),p(2),g(3,"number"),r(),u()),n&2){let t=c().$implicit;e(2),s(" ","-"+f(3,1,t.DiscountAmount)," ")}}function $n(n,o){if(n&1&&(l(0,"span"),p(1),g(2,"number"),g(3,"TrailingZero"),r()),n&2){let t=c().$implicit,i=c(2);e(),s(" ",v(3,3,f(2,1,(1-t.Discount/100)*t.Price*t.Quantity*t.UnitQuantity-t.DiscountAmount*t.Quantity),i.config.PrintConfigGeneral.TrailingZero)," ")}}function jn(n,o){if(n&1&&(l(0,"div",56)(1,"div",54)(2,"div",57)(3,"div"),d(4,Tn,2,1,"ng-container",17),p(5),r(),d(6,kn,2,1,"ng-container",17)(7,En,3,1,"div",58)(8,Rn,2,1,"ng-container",17),r(),d(9,Nn,3,2,"div",59),r(),l(10,"div",60)(11,"div",61)(12,"div",62),d(13,Dn,3,6,"span",63)(14,Fn,7,4,"ng-container",17)(15,zn,4,3,"ng-container",17)(16,Bn,4,3,"ng-container",17),r()(),l(17,"div",64),d(18,$n,4,6,"span",17),r()()()),n&2){let t=o.$implicit,i=c(2);e(4),a("ngIf",i.config.ModuleSell.Grid.RowNumberVisible),e(),O(" ",t.Variant.Name," ",t.Variant.Code&&i.config.PrintConfigInvoice.ItemsTable.CodeVisible?" - "+t.Variant.Code:""," "),e(),a("ngIf",t.Serial&&(t.Serial==null?null:t.Serial.length)>0),e(),a("ngIf",t.SalesName&&i.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),e(),a("ngIf",t.Note),e(),a("ngIf",i.config.PrintConfigInvoice.ItemsTable.TaxableVisible),e(),a("ngClass",R(13,an,(i.config.ModuleSell==null||i.config.ModuleSell.Promotion==null?null:i.config.ModuleSell.Promotion.StrikethroughOriginalPrice)&&(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))),e(3),a("ngIf",i.config.PrintConfigInvoice.ItemsTable.QuantityVisible),e(),a("ngIf",i.amountVisible&&!i.priceVisibleRestriction),e(),a("ngIf",t.Discount!=0&&i.amountVisible),e(),a("ngIf",t.DiscountAmount!=0&&i.amountVisible),e(2),a("ngIf",i.amountVisible&&!i.priceVisibleRestriction)}}function Qn(n,o){if(n&1&&(l(0,"span")(1,"span"),p(2),r()()),n&2){let t=c().$implicit;e(2),s("",t.Label," :")}}function Un(n,o){if(n&1&&(l(0,"span"),p(1),r()),n&2){let t=c().$implicit;e(),s("",t.CurrencySymbol," ")}}function Zn(n,o){if(n&1&&(l(0,"div",80),g(1,"Filter"),l(2,"div",81),p(3),d(4,Qn,3,1,"span"),r(),l(5,"div",82)(6,"div",83)(7,"div",84),d(8,Un,2,1,"span",17),r(),l(9,"div",85)(10,"span"),p(11),g(12,"number"),g(13,"TrailingZero"),r()()()()()),n&2){let t=o.$implicit,i=o.index,P=c(3);a("ngClass",i==T(1,7,P.data.AmountSummary,1,"Type").length-1?"pb-2":""),e(2),a("ngClass",i==1?"border-top":""),e(),s(" ",i==0?P.totalItemsLabel+" :":""," "),e(),F(i!=0?4:-1),e(),a("ngClass",i==1?"border-top":""),e(3),a("ngIf",P.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),e(3),C(v(13,13,f(12,11,t.Amount),P.config.PrintConfigGeneral.TrailingZero))}}function Gn(n,o){if(n&1&&(l(0,"div",79),d(1,Zn,14,16,"div",28),g(2,"Filter"),r()),n&2){let t=c(2);e(),a("ngForOf",T(2,1,t.data.AmountSummary,1,"Type"))}}function qn(n,o){if(n&1&&(l(0,"span"),p(1),g(2,"limitTo"),r()),n&2){let t=c().$implicit,i=c(3);e(),s(" ",i.config.PrintConfigInvoice.DocumentVisibility.PaymentCode==3?"- ***"+T(2,1,t.Code,4,t.Code.length-4):"- "+t.Code," ")}}function Wn(n,o){if(n&1&&m(0,"div",12),n&2){let t=c().$implicit;a("innerHTML",t.Note,_)}}function Xn(n,o){if(n&1&&(l(0,"span",84),p(1),r()),n&2){let t=c(4);e(),C(t.data.CurrencySymbol)}}function Jn(n,o){if(n&1&&(l(0,"div",87)(1,"div",88),p(2),d(3,qn,3,5,"span",17)(4,Wn,1,1,"div",12),r(),l(5,"div",89),d(6,Xn,2,1,"span",90),l(7,"span",85),p(8),g(9,"TrailingZero"),r()()()),n&2){let t=o.$implicit,i=o.index,P=c(3);a("hidden",t.Amount==0),e(2),s(" ",P.config.PrintConfigInvoice.Footer.PaymentMethodVisible?t.MethodName:P.data.Payments.length!=1?"Payment":"Payment "+(i+1)," "),e(),a("ngIf",t.Code&&P.config.PrintConfigInvoice.DocumentVisibility.PaymentCode!=1),e(),F(!(P.config==null||P.config.PrintConfigInvoice==null||P.config.PrintConfigInvoice.DocumentVisibility==null)&&P.config.PrintConfigInvoice.DocumentVisibility.PaymentNoteVisible&&t.Note?4:-1),e(2),a("ngIf",P.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),e(2),s(" ",v(9,6,P.change>0?t.PaidAmount:t.Amount,P.config.PrintConfigGeneral.TrailingZero),"")}}function Kn(n,o){if(n&1&&(l(0,"div"),d(1,Jn,10,9,"div",86),r()),n&2){let t=c(2);e(),a("ngForOf",t.data.Payments)}}function Yn(n,o){if(n&1&&(l(0,"span",84),p(1),r()),n&2){let t=c(3);e(),C(t.currencyChange)}}function te(n,o){if(n&1&&(l(0,"div",91)(1,"div",92),p(2,"Change :"),r(),l(3,"div",89),d(4,Yn,2,1,"span",90),l(5,"span",85),p(6),g(7,"TrailingZero"),r()()()),n&2){let t=c(2);e(4),a("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),e(2),s(" ",v(7,2,t.change,t.config.PrintConfigGeneral.TrailingZero),"")}}function ne(n,o){if(n&1&&(l(0,"span",84),p(1),r()),n&2){let t=c(3);e(),C(t.data.CurrencySymbol)}}function ee(n,o){if(n&1&&(l(0,"div",91)(1,"div",92),p(2),r(),l(3,"div",89),d(4,ne,2,1,"span",90),l(5,"span",85),p(6),g(7,"TrailingZero"),r()()()),n&2){let t=c(2);e(2),s("",t.remainingLabel,":"),e(2),a("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),e(2),C(v(7,3,t.diff,t.config.PrintConfigGeneral.TrailingZero))}}function ie(n,o){if(n&1&&(l(0,"span"),p(1),r()),n&2){let t=c().$implicit;e(),s("",t.CurrencySymbol," ")}}function oe(n,o){if(n&1&&(l(0,"div",80)(1,"div",93),p(2),r(),l(3,"div",94)(4,"div",83)(5,"div",84),d(6,ie,2,1,"span",17),r(),l(7,"div",85)(8,"span"),p(9),g(10,"number"),g(11,"TrailingZero"),r()()()()()),n&2){let t=o.$implicit,i=o.index,P=c(2);a("ngClass",i==0?"border-top pt-2":""),e(2),s("",t.Label," :"),e(4),a("ngIf",P.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),e(3),C(v(11,6,f(10,4,t.Amount),P.config.PrintConfigGeneral.TrailingZero))}}function ae(n,o){if(n&1&&(x(0),l(1,"strong",95),p(2),r(),m(3,"span",96),u()),n&2){let t=c(2);e(2),s(" ",t.config.LoyaltyLabel?t.config.LoyaltyLabel:"Loyalty Point"," "),e(),a("innerHTML",t.data.LoyaltyPoint,_)}}function re(n,o){n&1&&(l(0,"h6",97),p(1," Coupon "),r())}function le(n,o){if(n&1&&(l(0,"span",98),p(1),g(2,"limitTo"),r()),n&2){let t=c(2);e(),s(" ",t.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon==3?"***"+T(2,1,t.data.Coupon,3,t.data.Coupon.length-3):t.data.Coupon," ")}}function ce(n,o){n&1&&(l(0,"h6",97),p(1,"ToP"),r())}function pe(n,o){if(n&1&&m(0,"span",96),n&2){let t=c(3);a("innerHTML",t.data.Due,_)}}function de(n,o){if(n&1&&(l(0,"span",98),p(1),r()),n&2){let t=c(3);e(),s("- ",t.top," Days")}}function me(n,o){if(n&1&&(l(0,"div",30),d(1,ce,2,0,"h6",31)(2,pe,1,1,"span",99)(3,de,2,1,"span",32),r()),n&2){let t=c(2);e(),a("ngIf",t.data.ToP),e(),a("ngIf",t.data.ToP),e(),a("ngIf",t.data.ToP)}}function ge(n,o){if(n&1&&(l(0,"h6",97),p(1),r()),n&2){let t=c(2);e(),s(" ",t.config.PrintConfigInvoice.DocumentLabel.SalesPerson," ")}}function _e(n,o){if(n&1&&(l(0,"p"),p(1),r()),n&2){let t=c(2);e(),s(" ",t.data==null?null:t.data.SalesName," ")}}function se(n,o){n&1&&(l(0,"h6",97),p(1," Note "),r())}function Ce(n,o){if(n&1&&(m(0,"p",12),g(1,"newlines")),n&2){let t=c(2);a("innerHTML",f(1,1,t.data==null?null:t.data.ExtraNote),_)}}function fe(n,o){n&1&&(l(0,"h6",100),p(1," Note "),r())}function Pe(n,o){if(n&1&&(m(0,"p",101),g(1,"newlines")),n&2){let t=c(2);a("innerHTML",f(1,1,t.data==null?null:t.data.InvoiceNote),_)}}function xe(n,o){if(n&1&&(l(0,"p",102),p(1),r()),n&2){let t=c(2);e(),s(" Printed : ",t.data==null?null:t.data.PrintDate," ")}}function ue(n,o){if(n&1&&(l(0,"p",102),p(1),r()),n&2){let t=c(2);e(),s(" Created : ",t.data==null?null:t.data.Created," ")}}function ve(n,o){n&1&&(x(0),l(1,"div",38),p(2,"( OFFLINE )"),r(),u())}function Me(n,o){if(n&1&&(l(0,"div"),m(1,"div",103)(2,"packing-slip",104),r()),n&2){let t=c(2);e(2),a("data",t.data)("printTemplate",t.printTemplate)("config",t.config)}}function Oe(n,o){if(n&1&&(l(0,"div"),d(1,pn,4,3,"div",6),l(2,"div",7),d(3,mn,2,1,"ng-container",8)(4,_n,1,1,"ng-template",null,0,B),r(),l(6,"div",7),m(7,"h2",9)(8,"i",10),l(9,"p",11),m(10,"span",12),g(11,"newlines"),m(12,"br"),d(13,sn,1,1,"span",13),m(14,"br")(15,"span",12),g(16,"newlines"),r(),d(17,fn,4,2,"h6",14)(18,Pn,1,1,"h6",15)(19,xn,2,3,"p",16)(20,un,3,5,"span",17)(21,vn,3,5,"span",17)(22,Mn,1,1,"p",18),r(),d(23,On,2,3,"h2",19)(24,bn,2,1,"h2",20)(25,hn,3,1,"ng-container",17)(26,yn,2,1,"div",21),l(27,"div",22),d(28,Sn,3,2,"div",23),l(29,"div",24),p(30),r()(),d(31,jn,19,15,"div",25)(32,Gn,3,5,"div",26)(33,Kn,2,1,"div",17)(34,te,8,5,"div",27)(35,ee,8,6,"div",27)(36,oe,12,9,"div",28),g(37,"Filter"),l(38,"div",29)(39,"div",30),d(40,ae,4,2,"ng-container",17)(41,re,2,0,"h6",31)(42,le,3,5,"span",32),r(),d(43,me,4,3,"div",33),r(),l(44,"div",34),d(45,ge,2,1,"h6",31)(46,_e,2,1,"p",17)(47,se,2,0,"h6",31)(48,Ce,2,3,"p",13)(49,fe,2,0,"h6",35)(50,Pe,2,3,"p",36),r(),m(51,"p",12),g(52,"SafeHtml"),l(53,"div",7),d(54,xe,2,1,"p",37),r(),l(55,"div",38),d(56,ue,2,1,"p",37),r(),d(57,ve,3,0,"ng-container",17)(58,Me,3,3,"div",17),r()),n&2){let t=z(5),i=c();L("print_container invoice_mini ",i.printTemplate.PrintLX300?"lx300":""," ",i.printTemplate.CssClass," box mt-5"),e(),a("ngIf",(i.config==null||i.config.PrintConfigInvoice==null||i.config.PrintConfigInvoice.Footer==null?null:i.config.PrintConfigInvoice.Footer.CopyLabelEnabled)&&!(i.printTemplate!=null&&i.printTemplate.PrintLX300)&&(i.data==null?null:i.data.PrintCopyLabel)),e(2),a("ngIf",(i.config==null||i.config.PrintConfigInvoice==null||i.config.PrintConfigInvoice.LogoConfig==null?null:i.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth)>0)("ngIfElse",t),e(4),a("innerHTML",i.printTemplate.Title,_),e(),a("innerHTML",i.printTemplate.Field,_),e(2),a("innerHTML",f(11,45,i.printTemplate==null?null:i.printTemplate.Address),_),e(3),a("ngIf",i.config==null||i.config.PrintConfigInvoice==null?null:i.config.PrintConfigInvoice.DocumentVisibility.RegisterCode),e(2),a("innerHTML",f(16,47,i.printTemplate==null?null:i.printTemplate.ContactInfo),_),e(2),a("ngIf",i.customerVisible&&(i.data.Customer==null?null:i.data.Customer.Name)),e(),a("ngIf",i.customerVisible&&(i.data.Customer==null?null:i.data.Customer.NationalIDNumber)&&i.config.PrintConfigInvoice.DocumentVisibility.IdentificationVisible),e(),a("ngIf",i.customerVisible&&(i.data.Customer==null?null:i.data.Customer.Address)&&i.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),e(),a("ngIf",i.customerVisible&&(i.data.Customer==null?null:i.data.Customer.Phone)&&i.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1&&(i.data.Customer==null?null:i.data.Customer.Phone)!==null),e(),a("ngIf",i.customerVisible&&(i.data.Customer==null?null:i.data.Customer.Mobile)&&i.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1&&(i.data.Customer==null?null:i.data.Customer.Phone)==null&&(i.data.Customer==null?null:i.data.Customer.Mobile)!==null),e(),a("ngIf",i.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),e(),a("ngIf",i.data.paymentState<3),e(),F(i.data.Retur&&(!(i.config==null||i.config.PrintConfigInvoice==null||i.config.PrintConfigInvoice.Header==null)&&i.config.PrintConfigInvoice.Header.SalesReturnLabel)?24:-1),e(),a("ngIf",i.data.paymentState==1),e(),a("ngIf",i.config.PrintConfigInvoice.Footer.CreatorVisiblePosition!=1),e(2),a("ngIf",i.config.PrintConfigInvoice.DocumentVisibility.NumberVisible),e(2),C(i.data.Date),e(),a("ngForOf",i.data.Items),e(),a("ngIf",i.amountVisible&&!i.priceVisibleRestriction),e(),a("ngIf",(i.data.Payments.length>0||!(i.change>0)||i.diff>0)&&i.amountVisible),e(),a("ngIf",i.change>0&&i.amountVisible),e(),a("ngIf",i.diff>0&&!i.hasSurcharge&&i.amountVisible),e(),a("ngForOf",T(37,49,i.data.AmountSummary,2,"Type")),e(4),a("ngIf",i.config.PrintConfigInvoice.Footer.ShowLoyaltyPoint&&i.data.LoyaltyPoint),e(),a("ngIf",i.data.Coupon&&i.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),e(),a("ngIf",i.data.Coupon&&i.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),e(),a("ngIf",i.config.PrintConfigInvoice.DocumentVisibility.InvoicePaymentTermsVisible&&i.data.paymentState<3&&i.data.Payments.length==0),e(2),a("ngIf",i.data.SalesName&&i.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),e(),a("ngIf",i.data.SalesName&&i.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),e(),a("ngIf",(i.data==null?null:i.data.ExtraNote)&&i.config.PrintConfigInvoice.Footer.ParkNoteVisible),e(),a("ngIf",i.data.ExtraNote&&i.config.PrintConfigInvoice.Footer.ParkNoteVisible),e(),a("ngIf",(i.data==null?null:i.data.InvoiceNote)&&i.config.PrintConfigInvoice.Footer.NoteVisible),e(),a("ngIf",i.data.InvoiceNote&&i.config.PrintConfigInvoice.Footer.NoteVisible),e(),a("innerHTML",f(52,53,i.printTemplate.FooterLeft?i.printTemplate.FooterLeft:""),_),e(3),a("ngIf",(i.config==null||i.config.PrintConfigInvoice==null||i.config.PrintConfigInvoice.DocumentVisibility==null?null:i.config.PrintConfigInvoice.DocumentVisibility.CustomerEntryTimeVisible)&&i.data.PrintDate),e(2),a("ngIf",(i.config==null||i.config.PrintConfigInvoice==null||i.config.PrintConfigInvoice.DocumentVisibility==null?null:i.config.PrintConfigInvoice.DocumentVisibility.InvoiceCreatedTimeVisible)&&i.data.Created),e(),a("ngIf",i.data.offlineMode&&i.config.PrintConfigInvoice.DocumentVisibility.WritePrintOffline),e(),a("ngIf",i.config==null||i.config.PrintConfigInvoice==null?null:i.config.PrintConfigInvoice.DocumentVisibility.PrintPackingslipAftersell)}}function be(n,o){if(n&1&&(x(0),m(1,"qr-code",106),u()),n&2){let t=c(2);e(),a("value",t.data.QRContent)("size",250)}}function he(n,o){if(n&1&&(l(0,"div",105),d(1,be,2,2,"ng-container",17),r()),n&2){let t=c();e(),a("ngIf",(t.config==null||t.config.PrintConfigInvoice==null?null:t.config.PrintConfigInvoice.InvoiceQR.TransformTo)==t.invoiceQR.QRCode)}}var bt=(i=>(i[i.None=1]="None",i[i.Barcode=2]="Barcode",i[i.QRCode=3]="QRCode",i))(bt||{}),Mt=class n{constructor(o,t,i){this.activeRoute=o;this._onlineStatusService=t;this.decimalPipe=i;this.destroy$=new it,this._onlineStatusService.getOnlineStatus$().pipe(mt()).subscribe(P=>{this.isOnline=P})}invoiceQR=bt;data;outletInfo;printTemplate;config;emailVisibleRestriction;priceVisibleRestriction;receiptParam;paperPrintMode;printModeType;destroy$;customerVisible;amountVisible;diff;change=0;currencyChange;totalItemsLabel;hasSurcharge;top;remainingLabel;isOnline;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(){let o=this.config?this.config.PrintConfigInvoice.Footer.LabelRemaining:"";this.remainingLabel=o||"Remaining"}initPaperModeConfig(){if(this.receiptParam){let o=this.receiptParam;this.paperPrintMode=[{label:"8cm",link:"/print/InvoiceMini",param:o},{label:"A4",link:"/print/Invoice",param:o}]}}parseTop(){this.data&&this.data.ToP&&(this.top=parseInt(this.data.ToP.toFixed(1)))}getJSONQR(){let o,t;return this.data.OutletName!==null&&this.data.Number!=null&&(o={Outlet:this.data.OutletName,Invoice:this.data.Number},t=JSON.stringify(o)),t}calculatePrintPrice(){this.isOnline?this.data.offlineMode=!1:this.data.offlineMode=!0,this.customerVisible=this.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible&&this.data.Customer;let o=this.activeRoute.snapshot.queryParamMap.get("Price");this.amountVisible=o!=="0",this.calculateChange()}calculateChange(){let o=0;this.data.Payments.forEach(i=>{o+=i.PaidAmount});let t=this.data.FinalAmount;this.calculateDiff(),this.change=o-t,this.currencyChange=this.data.CurrencySymbol}calculateDiff(){let o=0;this.data.Payments.forEach(i=>{o+=i.Amount});let t=this.data.FinalAmount;this.diff=t-o,Math.abs(this.diff)<this.config.ModuleSell.ToleranceAmount&&(this.diff=0)}generateItemLabel(){let o=0,t=this.data.Items.length;for(let K of this.data.Items)(this.config?.PrintConfigInvoice?.ItemsTable?.NonInventoryCount||K.Variant.TypeID!=2)&&(o+=K.Quantity);let i=o>1?"s":"",P=this.decimalPipe.transform(o,"1.0-4").toString(),It=this.config.PrintConfigInvoice?.ItemsFooter?.TotalQuantityVisible;this.totalItemsLabel=`Total (Item${i}: ${t}${It?`, Qty: ${P})`:")"}`}checkSurcharge(){this.hasSurcharge=!1;for(let o of this.data.AmountSummary)o.Label.includes("Surcharge")&&(this.hasSurcharge=!0)}checkAmountSummary(){let o=this.data.AmountSummary.length;this.data.AmountSummary[o-1].Label=="Change"&&(this.change=this.data.AmountSummary[o-1].Amount,this.currencyChange=this.data.AmountSummary[o-1].CurrencySymbol,this.data.AmountSummary.pop(),this.data.AmountSummary.pop())}prepareSalesCommission(){for(let o of this.data.Items)o.SalesID!=null&&o.SalesName==null&&(o.SalesName=this.getSalesName(o.SalesID))}getSalesName(o){let t=this.outletInfo.ListSales.find(i=>i.ID==o);return $.IsNotEmpty(t)?t.Name:""}static \u0275fac=function(t){return new(t||n)(N(ct),N(ft),N(y))};static \u0275cmp=M({type:n,selectors:[["pos-receipt"]],inputs:{data:"data",outletInfo:"outletInfo",printTemplate:"printTemplate",config:"config",emailVisibleRestriction:"emailVisibleRestriction",priceVisibleRestriction:"priceVisibleRestriction",receiptParam:"receiptParam"},decls:5,vars:4,consts:[["DEFAULTWIDTH",""],["rel","stylesheet","href",h`/Styles/Master/app_custom.css`],["rel","stylesheet","href",h`/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"],[4,"ngIf","ngIfElse"],[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"],[1,"text-center","m-0","p-1","text-warning"],["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"],["class","img-fluid border-0",3,"style","src",4,"ngIf"],[1,"img-fluid","border-0",3,"src"],["class","img-fluid border-0",3,"src",4,"ngIf"],[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","pe-3"],[1,"col-5","row","g-0"],["class","col-auto",4,"ngIf"],[1,"row","g-0","text-end"],[1,"col-7","fw-bold"],[1,"col-7"],[1,"col-5"],[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(t,i){t&1&&(m(0,"link",1)(1,"link",2)(2,"POS-print-mode",3),d(3,Oe,59,55,"div",4)(4,he,2,1,"div",5)),t&2&&(e(2),a("paperPrints",i.paperPrintMode)("paperType","mini"),e(),a("ngIf",i.data),e(),a("ngIf",(i.config==null||i.config.PrintConfigInvoice==null?null:i.config.PrintConfigInvoice.InvoiceQR.TransformTo)!=i.invoiceQR.None))},dependencies:()=>[rt,k,b,W,Q,Pt,nt,y,_t,w,H,Ct,j],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;-webkit-border-radius:3px;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[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%]: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:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#888),color-stop(100%,#545454));background-image:-webkit-linear-gradient(#888,#545454);background-image:-moz-linear-gradient(#888,#545454);background-image:-o-linear-gradient(#888,#545454);background-image:linear-gradient(#888,#545454);-webkit-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);-moz-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);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}"]})},Ot=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=S({type:n});static \u0275inj=I({imports:[E,V,X,U,xt,nt]})};function ye(n,o){if(n&1&&(l(0,"div",4),p(1),g(2,"DecimalRound"),g(3,"TrailingZero"),r()),n&2){let t=c(2);e(),s(" ",v(3,4,v(2,1,(1-t.item.Discount/100)*t.item.Price*t.item.Quantity*t.item.UnitQuantity,4),t.decimal)," ")}}function Ie(n,o){if(n&1&&(l(0,"div",2)(1,"div"),p(2),g(3,"number"),l(4,"span"),p(5),r(),l(6,"i"),p(7),r()(),d(8,ye,4,7,"div",3),r()),n&2){let t=c();A("d-flex justify-content-between ms-2 ",t.item.Quantity<0?"cancel":"",""),e(2),s(" ",f(3,8,t.item.Quantity)," x "),e(3),O(" ",t.item.Variant==null?null:t.item.Variant.Name," ",t.item.Variant!=null&&t.item.Variant.Code&&t.code?" - "+(t.item.Variant==null?null:t.item.Variant.Code):""," "),e(2),C(t.amount&&t.item.Discount!=0?t.item.Discount+" %":""),e(),a("ngIf",t.amount)}}function Se(n,o){if(n&1&&(m(0,"mark",5),g(1,"newlines")),n&2){let t=c();a("innerHtml",f(1,1,t.item.Note),_)}}var J=class n{item;decimal;code;amount;note;constructor(){}ngOnInit(){}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=M({type:n,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(t,i){t&1&&d(0,Ie,9,10,"div",0)(1,Se,2,3,"mark",1),t&2&&(a("ngIf",i.item),e(),a("ngIf",i.item.Note&&i.note))},dependencies:[b,y,w,H,st]})};function Te(n,o){if(n&1&&m(0,"div",19),n&2){let t=c(2);a("innerHtml",t.printTemplate.Field,_)}}function ke(n,o){if(n&1&&(l(0,"div",20),m(1,"div",13),g(2,"newlines"),m(3,"div",13),g(4,"newlines"),r()),n&2){let t=c(2);e(),a("innerHtml",f(2,2,t.printTemplate==null?null:t.printTemplate.Address),_),e(2),a("innerHtml",f(4,4,t.printTemplate==null?null:t.printTemplate.ContactInfo),_)}}function Ee(n,o){if(n&1&&m(0,"h3",13),n&2){let t=c(3);a("innerHtml",t.data==null?null:t.data.Customer.Name,_)}}function we(n,o){if(n&1&&m(0,"h3",13),n&2){let t=c(3);a("innerHtml",t.data==null?null:t.data.Customer.MemberIdentification,_)}}function Re(n,o){if(n&1&&(m(0,"p",13),g(1,"newlines")),n&2){let t=c(3);a("innerHtml",f(1,1,t.data==null?null:t.data.Customer.Address),_)}}function He(n,o){if(n&1&&m(0,"span",13),n&2){let t=c(3);a("innerHtml",t.data==null?null:t.data.Customer.Phone,_)}}function Ve(n,o){if(n&1&&m(0,"span",13),n&2){let t=c(3);a("innerHtml",t.data==null?null:t.data.Customer.Email,_)}}function Ne(n,o){if(n&1&&(l(0,"div",20),d(1,Ee,1,1,"h3",21)(2,we,1,1,"h3",21)(3,Re,2,3,"p",21)(4,He,1,1,"span",21)(5,Ve,1,1,"span",21),r()),n&2){let t=c(2);e(),a("ngIf",t.data==null?null:t.data.Customer.Name),e(),a("ngIf",t.data==null?null:t.data.Customer.MemberIdentification),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible)}}function De(n,o){if(n&1&&(l(0,"div"),p(1),r()),n&2){let t=c(2);e(),s(" ",t.data==null?null:t.data.Title," ")}}function Ae(n,o){if(n&1&&(l(0,"div",25),m(1,"park-item",26),r()),n&2){let t=o.$implicit,i=c(3);e(),a("item",t)("code",i.config.PrintConfigInvoice.ItemsTable.CodeVisible)("decimal",i.config.PrintConfigGeneral.TrailingZero)("amount",i.config.ApplicationParkAndRetrieve.PrintOutput.AmountVisible)("note",i.config.PrintConfigInvoice.Footer.NoteVisible)}}function Le(n,o){if(n&1&&(l(0,"div",22)(1,"h6",23),p(2),r(),d(3,Ae,2,5,"div",24),r()),n&2){let t=o.$implicit;e(2),C(t.Name),e(),a("ngForOf",t.Items)}}function Fe(n,o){if(n&1&&(l(0,"div",29),m(1,"park-item",26),r()),n&2){let t=o.$implicit,i=c(3);e(),a("item",t)("code",i.config.PrintConfigInvoice.ItemsTable.CodeVisible)("decimal",i.config.PrintConfigGeneral.TrailingZero)("amount",i.config.ApplicationParkAndRetrieve.PrintOutput.AmountVisible)("note",i.config.PrintConfigInvoice.Footer.NoteVisible)}}function ze(n,o){if(n&1&&(l(0,"div",27),d(1,Fe,2,5,"div",28),r()),n&2){let t=c(2);e(),a("ngForOf",t.data.Items)}}function Be(n,o){if(n&1&&(l(0,"tr")(1,"th",35),p(2),g(3,"sum"),g(4,"number"),r(),l(5,"td",36),p(6,":"),r(),l(7,"td",36),p(8),r(),l(9,"td",37),p(10),g(11,"TrailingZero"),r()()),n&2){let t=o.$implicit,i=o.index,P=c(4);e(2),O("",i==1&&P.data.Items.length>1?"Qty: "+f(4,7,v(3,4,P.data.Items,"Quantity")):""," ",t.Label,""),e(6),C(t.CurrencySymbol),e(2),C(v(11,9,t.Amount,P.config.PrintConfigGeneral.TrailingZero))}}function $e(n,o){if(n&1&&(l(0,"div",32)(1,"table",33)(2,"tbody"),d(3,Be,12,12,"tr",34),r()()()),n&2){let t=c(3);e(3),a("ngForOf",t.data.AmountSummary)}}function je(n,o){n&1&&m(0,"div",32)}function Qe(n,o){if(n&1&&(l(0,"div",30),d(1,$e,4,1,"div",31)(2,je,1,0,"div",31),r()),n&2){let t=c(2);e(),a("ngIf",t.data.AmountSummary.length>0),e(),a("ngIf",t.data.AmountSummary.length>0)}}function Ue(n,o){if(n&1&&(l(0,"div"),p(1),g(2,"number"),r()),n&2){let t=c(2);e(),s("Number of Person: ",f(2,1,t.data.NumberOfPerson),"")}}function Ze(n,o){if(n&1&&(l(0,"div"),p(1),r()),n&2){let t=c(2);e(),O("",t.config.PrintConfigInvoice.DocumentLabel.SalesPerson," : ",t.data.SalesName," ")}}function Ge(n,o){n&1&&(l(0,"h6",38),p(1,"Note : "),r())}function qe(n,o){if(n&1&&(m(0,"div",39),g(1,"newlines")),n&2){let t=c(2);a("innerHTML",f(1,1,t.data.InvoiceNote),_)}}function We(n,o){if(n&1&&m(0,"small",40),n&2){let t=c(2);a("innerHtml",t.data.Creator,_)}}function Xe(n,o){if(n&1&&(l(0,"div"),m(1,"div",3),d(2,Te,1,1,"div",4)(3,ke,5,6,"div",5)(4,Ne,6,5,"div",5),l(5,"div",6),d(6,De,2,1,"div",7),l(7,"div"),p(8),r()(),l(9,"div",8),d(10,Le,4,2,"div",9)(11,ze,2,1,"div",10),r(),d(12,Qe,3,2,"div",11),l(13,"div",12),d(14,Ue,3,3,"div",7)(15,Ze,2,2,"div",7),m(16,"div",13),g(17,"newlines"),d(18,Ge,2,0,"h6",14)(19,qe,2,3,"div",15),r(),m(20,"div",16),g(21,"SafeHtml"),m(22,"small",17),g(23,"date"),d(24,We,1,1,"small",18),r()),n&2){let t=c();L("print_container sales_order_mini ",t.printTemplate.PrintLX300?"lx300":""," ",t.printTemplate.CssClass,""),e(),a("innerHtml",t.printTemplate==null?null:t.printTemplate.Title,_),e(),a("ngIf",t.config.ApplicationParkAndRetrieve.PrintOutput.OutletAddressVisible),e(),a("ngIf",t.config.ApplicationParkAndRetrieve.PrintOutput.OutletAddressVisible),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible&&t.data.Customer),e(2),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.NumberVisible),e(2),s(" ",t.data==null?null:t.data.Date," "),e(2),a("ngForOf",t.itembyCategory),e(),a("ngIf",!t.config.ApplicationParkAndRetrieve.PrintOutput.GroupByCategory),e(),a("ngIf",t.data.AmountSummary),e(2),a("ngIf",t.data.NumberOfPerson&&t.config.ApplicationParkAndRetrieve.PrintOutput.ShowNumberOfPerson),e(),a("ngIf",t.data.SalesName),e(),a("innerHtml",f(17,21,t.data==null?null:t.data.ExtraNote),_),e(2),a("ngIf",t.data.InvoiceNote&&t.config.PrintConfigInvoice.Footer.NoteVisible),e(),a("ngIf",t.data.InvoiceNote&&t.config.PrintConfigInvoice.Footer.NoteVisible),e(),a("innerHtml",f(21,23,t.printTemplate.FooterRight?t.printTemplate.FooterRight:""),_),e(2),a("innerHtml",v(23,25,t.data.PrintDate,"dd MMM yyyy HH:mm"),_),e(2),a("ngIf",t.config.PrintConfigInvoice.Footer.CreatorVisiblePosition!=1)}}var ht=class n{data;printTemplate;config;itembyCategory=[];constructor(){}ngOnInit(){this.config.ApplicationParkAndRetrieve.PrintOutput.GroupByCategory&&this.data.Items.forEach(o=>{let t=this.itembyCategory.find(i=>i.Name==o.Variant.CategoryName);t==null&&(t={},t.Name=o.Variant.CategoryName,t.Items=this.data.Items.filter(i=>i.Variant.CategoryName==t.Name),this.itembyCategory.push(t))})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=M({type:n,selectors:[["park-order"]],inputs:{data:"data",printTemplate:"printTemplate",config:"config"},decls:3,vars:1,consts:[["rel","stylesheet","href",h`/Styles/Master/app_custom.css`],["rel","stylesheet","href",h`/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(t,i){t&1&&(m(0,"link",0)(1,"link",1),d(2,Xe,25,28,"div",2)),t&2&&(e(2),a("ngIf",i.data))},dependencies:()=>[k,b,J,y,lt,gt,w,H,j],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}}"]})},yt=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=S({type:n});static \u0275inj=I({imports:[E,V]})};export{X as a,Q as b,U as c,Mt as d,Ot as e,ht as f,yt as g};
|
|
1
|
+
import{a as Pt,b as xt}from"./chunk-3LKE4M2Q.js";import{a as ft}from"./chunk-YAG4COYT.js";import{a as nt}from"./chunk-ZMX5K3VS.js";import{N as V,g as gt,n as _t,o as w,p as st,q as H,v as Ct,z as j}from"./chunk-V32Y6YNZ.js";import{a as mt}from"./chunk-BN3BJFCQ.js";import{a as $}from"./chunk-3TXPK37I.js";import{Gb as c,Hd as ct,Kd as pt,Lc as rt,Md as dt,Na as _,Nc as k,Oa as Y,Oc as b,Pa as h,Sa as e,Ta as N,Ub as z,Vb as p,Vc as lt,Wb as C,Xb as s,Xc as y,Yb as O,Zb as at,_c as E,c as it,eb as d,fc as R,ga as I,ib as a,ic as tt,lb as ot,mb as D,na as M,nb as A,nc as g,oa as S,ob as L,oc as f,pc as v,qb as F,qc as T,tc as B,vb as l,wb as r,xb as m,yb as x,zb as u}from"./chunk-ZCFRJGRH.js";var ut=n=>[n],vt=(n,o,t,i)=>({ID:n,Template:o,Price:t,Print:i});function Tt(n,o){if(n&1&&(x(0),l(1,"div",5)(2,"a",6)(3,"small"),p(4),r()()(),u()),n&2){let t=o.$implicit,i=o.index;e(),D(i>0?"border-start border-light":""),e(),a("routerLink",R(5,ut,t.link))("queryParams",tt(7,vt,t.param.ID,t==null||t.param==null?null:t.param.Template,t.param.Price,t.param.Print)),e(2),C(t==null?null:t.label)}}function kt(n,o){if(n&1&&(x(0),l(1,"div",2)(2,"div",3)(3,"small"),p(4,"Paper Size :"),r()(),d(5,Tt,5,12,"ng-container",4),r(),u()),n&2){let t=c();e(5),a("ngForOf",t.paperPrints)}}function Et(n,o){if(n&1&&(l(0,"li")(1,"a",6)(2,"medium"),p(3),r()()()),n&2){let t=o.$implicit;e(),a("routerLink",R(3,ut,t.link))("queryParams",tt(5,vt,t.param.ID,t==null||t.param==null?null:t.param.Template,t.param.Price,t.param.Print)),e(2),C(t==null?null:t.label)}}function wt(n,o){if(n&1&&(l(0,"div",7)(1,"span"),p(2,"Paper Size :"),r(),l(3,"ul"),d(4,Et,4,10,"li",4),r()()),n&2){let t=c();e(4),a("ngForOf",t.paperPrints)}}var Q=class n{paperPrints;paperType;constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=M({type:n,selectors:[["POS-print-mode"]],inputs:{paperPrints:"paperPrints",paperType:"paperType"},decls:3,vars:2,consts:[["A4",""],[4,"ngIf","ngIfElse"],[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(t,i){if(t&1&&d(0,kt,6,1,"ng-container",1)(1,wt,5,1,"ng-template",null,0,B),t&2){let P=z(2);a("ngIf",i.paperType=="mini")("ngIfElse",P)}},dependencies:[k,b,pt],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}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}']})},U=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=S({type:n});static \u0275inj=I({imports:[E,dt]})};function Ht(n,o){if(n&1&&(x(0),l(1,"div",6)(2,"div",7)(3,"div",12)(4,"span"),p(5),r()()()(),u()),n&2){let t=c(2);e(5),O("",t.config==null||t.config.PrintConfigOthers==null||t.config.PrintConfigOthers.Header==null?null:t.config.PrintConfigOthers.Header.PackingReceiptTitle," : ",t.data==null||t.data.Delivery==null?null:t.data.Delivery.Number,"")}}function Vt(n,o){if(n&1&&(l(0,"strong"),p(1),r()),n&2){let t=c(3);e(),C(t.data.Customer==null?null:t.data.Customer.ContactDisplay)}}function Nt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Customer==null?null:t.data.Customer.Email)}}function Dt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Customer==null?null:t.data.Customer.Phone)}}function At(n,o){if(n&1&&(l(0,"div"),m(1,"span",11),g(2,"newlines"),r()),n&2){let t=c(3);e(),a("innerHtml",f(2,1,t.data.Customer==null?null:t.data.Customer.Address),_)}}function Lt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.CityName)}}function Ft(n,o){if(n&1&&(l(0,"div",13)(1,"div",14)(2,"h4"),m(3,"span",11),r(),d(4,Vt,2,1,"strong",3)(5,Nt,3,1,"div",3)(6,Dt,3,1,"div",3)(7,At,3,3,"div",3)(8,Lt,3,1,"div",3),r()()),n&2){let t=c(2);e(3),a("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.Customer,_),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible)}}function zt(n,o){if(n&1&&(l(0,"strong"),p(1),r()),n&2){let t=c(3);e(),C(t.data.Shipping.Name)}}function Bt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Shipping==null?null:t.data.Shipping.Street)}}function $t(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Shipping==null?null:t.data.Shipping.Phone)}}function jt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Shipping==null?null:t.data.Shipping.City)}}function Qt(n,o){if(n&1&&(l(0,"div"),m(1,"span",11),g(2,"newlines"),r()),n&2){let t=c(3);e(),a("innerHtml",f(2,1,t.data.Shipping==null?null:t.data.Shipping.Description),_)}}function Ut(n,o){if(n&1&&(l(0,"div",6)(1,"div",15)(2,"div",12),m(3,"span",11),r(),d(4,zt,2,1,"strong",3)(5,Bt,3,1,"div",3)(6,$t,3,1,"div",3)(7,jt,3,1,"div",3)(8,Qt,3,3,"div",3),r()()),n&2){let t=c(2);e(3),a("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.ShippingAddress,_),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),e(),a("ngIf",t.data.Shipping.Address),e(),a("ngIf",t.data.Shipping.Phone),e(),a("ngIf",t.data.Shipping.City),e(),a("ngIf",t.data.Shipping.Description)}}function Zt(n,o){if(n&1&&(l(0,"strong"),p(1),r()),n&2){let t=c(3);e(),C(t.data.Shipping.Sender)}}function Gt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderAddress)}}function qt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderPhone)}}function Wt(n,o){if(n&1&&(l(0,"div")(1,"span"),p(2),r()()),n&2){let t=c(3);e(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderCity)}}function Xt(n,o){if(n&1&&(l(0,"div",6)(1,"div",15)(2,"div",12)(3,"span"),p(4,"Ship From :"),r()(),d(5,Zt,2,1,"strong",3)(6,Gt,3,1,"div",3)(7,qt,3,1,"div",3)(8,Wt,3,1,"div",3),r()()),n&2){let t=c(2);e(5),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),e(),a("ngIf",t.data.Shipping.SenderAddress),e(),a("ngIf",t.data.Shipping.SenderPhone),e(),a("ngIf",t.data.Shipping.SenderCity)}}function Jt(n,o){if(n&1&&(x(0),l(1,"div",16)(2,"div",17)(3,"div",18)(4,"span",12),p(5),r()()()(),u()),n&2){let t=c(2);e(5),C(t.data.TypeName)}}function Kt(n,o){if(n&1&&(l(0,"tbody")(1,"tr"),m(2,"td",24),l(3,"td"),p(4),r(),m(5,"td",24),g(6,"number"),r()()),n&2){let t=o.$implicit,i=o.index;e(2),a("innerHtml",i+1+".",_),e(2),s(" ",t.Name," "),e(),a("innerHtml",f(6,3,t.Quantity),_)}}function Yt(n,o){if(n&1&&(l(0,"div",6)(1,"div",7)(2,"table",19)(3,"thead",20)(4,"tr")(5,"th",21),p(6,"No"),r(),l(7,"th",22),p(8,"Name"),r(),l(9,"th",21),p(10,"Qty"),r()()(),d(11,Kt,7,5,"tbody",23),r()()()),n&2){let t=c(2);e(11),a("ngForOf",t.data.List)}}function tn(n,o){if(n&1&&(l(0,"div",6)(1,"div",7),m(2,"div",25),g(3,"newlines"),r()()),n&2){let t=c(2);e(2),a("innerHtml",f(3,1,t.data.Invoice.Note),_)}}function nn(n,o){if(n&1&&(l(0,"div"),d(1,Ht,6,2,"ng-container",3)(2,Ft,9,6,"div",4)(3,Ut,9,6,"div",5)(4,Xt,9,4,"div",5)(5,Jt,6,1,"ng-container",3)(6,Yt,12,1,"div",5)(7,tn,4,3,"div",5),l(8,"div",6)(9,"div",7)(10,"div",8)(11,"div",9)(12,"div",10),m(13,"span",11),g(14,"newlines"),r()()()()()()),n&2){let t=c();A("packingslip_container ",t.printTemplate.PrintLX300?"lx300":"",""),e(),a("ngIf",t.constants.IsNotEmpty(t.data==null||t.data.Delivery==null?null:t.data.Delivery.Number)),e(),a("ngIf",!(t.data.Shipping!=null&&t.data.Shipping.Recipient)),e(),a("ngIf",t.data.Shipping),e(),a("ngIf",(t.data.Shipping==null?null:t.data.Shipping.Sender)&&t.config.PrintConfigPackingSlip.ShippingAddressSenderVisible),e(),a("ngIf",t.data.TypeName),e(),a("ngIf",t.config.PrintConfigPackingSlip.ProductTableVisible),e(),a("ngIf",t.config.PrintConfigPackingSlip.RenderInvoiceNote&&(t.data.Invoice==null?null:t.data.Invoice.Note)!=null),e(6),a("innerHtml",f(14,11,t.printTemplate.DeliveryNote),_)}}var W=class n{data;printTemplate;config;constants=$;static \u0275fac=function(t){return new(t||n)};static \u0275cmp=M({type:n,selectors:[["packing-slip"]],inputs:{data:"data",printTemplate:"printTemplate",config:"config"},decls:3,vars:1,consts:[["rel","stylesheet","href",h`/Styles/Master/app_custom.css`],["rel","stylesheet","href",h`/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","g-0"],[1,"col"],["id","signatureNote"],[1,"note"],[1,"d-flex","justify-content-md-start"],[3,"innerHtml"],[1,"fw-bold"],[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,"row","my-2"],[1,"col","text-end","my-2"],[1,"border","border-dark","py-2","px-2","mb-2","text-center"],[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(t,i){t&1&&(m(0,"link",0)(1,"link",1),d(2,nn,15,13,"div",2)),t&2&&(e(2),a("ngIf",i.data&&i.config))},dependencies:[k,b,y,w]})},X=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=S({type:n});static \u0275inj=I({imports:[E,V]})};var on=n=>({width:n}),an=n=>({"align-items-end":n});function rn(n,o){if(n&1&&m(0,"div",43),n&2){let t=c(3);a("innerHTML",t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.FooterLabel==null?null:t.config.PrintConfigInvoice.FooterLabel.CopyLabelText,_)}}function ln(n,o){n&1&&(l(0,"div",44),p(1,"Void"),r())}function cn(n,o){n&1&&(l(0,"div",45),p(1," Return "),r())}function pn(n,o){if(n&1&&(l(0,"div",39),d(1,rn,1,1,"div",40)(2,ln,2,0,"div",41)(3,cn,2,0,"div",42),r()),n&2){let t=c(2);e(),a("ngIf",!t.data.Bin&&!t.data.Retur),e(),a("ngIf",t.data==null?null:t.data.Bin),e(),a("ngIf",t.data==null?null:t.data.Retur)}}function dn(n,o){if(n&1&&m(0,"img",47),n&2){let t=c(3);ot(R(3,on,t.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth+"px")),a("src",t.printTemplate==null?null:t.printTemplate.Logo,Y)}}function mn(n,o){if(n&1&&(x(0),d(1,dn,1,5,"img",46),u()),n&2){let t=c(2);e(),a("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function gn(n,o){if(n&1&&m(0,"img",47),n&2){let t=c(3);a("src",t.printTemplate==null?null:t.printTemplate.Logo,Y)}}function _n(n,o){if(n&1&&d(0,gn,1,1,"img",48),n&2){let t=c(2);a("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function sn(n,o){if(n&1&&m(0,"span",12),n&2){let t=c(2);a("innerHTML",t.data==null?null:t.data.RegisterCode,_)}}function Cn(n,o){if(n&1&&(l(0,"span"),p(1),r()),n&2){let t=c(3);e(),O(", ",t.data==null||t.data.Customer==null?null:t.data.Customer.Title," - ",t.data==null||t.data.Customer==null?null:t.data.Customer.Code,"")}}function fn(n,o){if(n&1&&(l(0,"h6",49)(1,"span"),p(2),r(),d(3,Cn,2,2,"span",17),r()),n&2){let t=c(2);e(2),C(t.data.Customer==null?null:t.data.Customer.Name),e(),a("ngIf",(t.data==null||t.data.Customer==null?null:t.data.Customer.Code)&&t.config.PrintConfigInvoice.DocumentVisibility.CustomerCodeVisible)}}function Pn(n,o){if(n&1&&m(0,"h6",50),n&2){let t=c(2);a("innerHTML",t.data.Customer==null?null:t.data.Customer.NationalIDNumber,_)}}function xn(n,o){if(n&1&&(m(0,"p",51),g(1,"newlines")),n&2){let t=c(2);a("innerHTML",f(1,1,t.data.Customer==null?null:t.data.Customer.Address),_)}}function un(n,o){if(n&1&&(l(0,"span"),p(1),g(2,"limitTo"),r()),n&2){let t=c(2);e(),s(" ",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility==3?"*****"+T(2,1,t.data.Customer==null?null:t.data.Customer.Phone,4,(t.data.Customer==null?null:t.data.Customer.Phone.length)-4):" "+(t.data.Customer==null?null:t.data.Customer.Phone)," ")}}function vn(n,o){if(n&1&&(l(0,"span"),p(1),g(2,"limitTo"),r()),n&2){let t=c(2);e(),s(" ",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility==3?"*****"+T(2,1,t.data.Customer==null?null:t.data.Customer.Mobile,4,(t.data.Customer==null||t.data.Customer.Mobile==null?null:t.data.Customer.Mobile.length)-4):" "+(t.data.Customer==null?null:t.data.Customer.Mobile)," ")}}function Mn(n,o){if(n&1&&m(0,"p",52),n&2){let t=c(2);a("innerHTML",t.data.Customer==null?null:t.data.Customer.Email,_)}}function On(n,o){if(n&1&&(l(0,"h2",53),p(1),r()),n&2){let t=c(2);D(t.data.paymentState==2?"text-warning":"text-danger"),e(),s(" ",t.data.paymentState==2?"PARTIAL":t.config.PrintConfigInvoice.DocumentLabel.BillLabel," ")}}function bn(n,o){if(n&1&&(l(0,"h2",20),p(1),r()),n&2){let t=c(2);e(),s(" ",!(t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.Header==null)&&t.config.PrintConfigInvoice.Header.SalesReturnLabelText?t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.Header==null?null:t.config.PrintConfigInvoice.Header.SalesReturnLabelText:"SALES RETURN"," ")}}function hn(n,o){if(n&1&&(x(0),l(1,"h3",53),p(2),r(),u()),n&2){let t=c(2);e(2),C(t.data==null?null:t.data.ParkLabel)}}function yn(n,o){if(n&1&&(l(0,"div",54),p(1),r()),n&2){let t=c(2);e(),s(" Cashier : ",t.data.Creator," ")}}function In(n,o){if(n&1&&(x(0),m(1,"div",12),u()),n&2){let t=c(3);e(),a("innerHTML",t.data.HeaderTitle,_)}}function Sn(n,o){if(n&1&&(l(0,"div",55),d(1,In,2,1,"ng-container",17),m(2,"div",12),r()),n&2){let t=c(2);e(),a("ngIf",t.data.HeaderTitle),e(),a("innerHTML",t.data.Number,_)}}function Tn(n,o){if(n&1&&(x(0),p(1),u()),n&2){let t=c().index;e(),s(" ",t+1,". ")}}function kn(n,o){if(n&1&&(x(0),m(1,"app-serial-note",65),u()),n&2){let t=c().$implicit;e(),a("serials",t.Serial)}}function En(n,o){if(n&1&&(l(0,"div",66)(1,"i",67),p(2),r()()),n&2){let t=c().$implicit;e(2),s(" sold by ",t.SalesName," ")}}function wn(n,o){if(n&1&&(m(0,"small",69),g(1,"newlines")),n&2){let t=c(2).$implicit;a("innerHTML",f(1,1,t.Note),_)}}function Rn(n,o){if(n&1&&(x(0),d(1,wn,2,3,"small",68),u()),n&2){let t=c().$implicit,i=c(2);e(),a("ngIf",t.Note&&i.config.PrintConfigInvoice.ItemsTable.NoteItemVisible)}}function Hn(n,o){if(n&1&&(l(0,"span",72),p(1),r()),n&2){let t=c(2).$implicit;e(),s(" ",t.Taxable?"V":"N"," ")}}function Vn(n,o){if(n&1&&(l(0,"span",72),p(1),r()),n&2){let t=c(2).$implicit,i=c(2);e(),s(" ",t.Taxable?i.config.PrintConfigInvoice.ItemsTable.TaxableLabel:"N"," ")}}function Nn(n,o){if(n&1&&(l(0,"div",70),d(1,Hn,2,1,"span",71)(2,Vn,2,1,"span",71),r()),n&2){let t=c(3);e(),a("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel==""||t.config.PrintConfigInvoice.ItemsTable.TaxableLabel=="Taxable"),e(),a("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!=""&&t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!="Taxable")}}function Dn(n,o){if(n&1&&(l(0,"span",73),p(1),g(2,"number"),r()),n&2){let t=c().$implicit,i=c(2);e(),at(" ",v(2,3,t.Quantity,"1.0-4")," ",i.config.PrintConfigInvoice.ItemsTable.UOMVisible?t.Variant.UOMName:""," ",t.UnitQuantity!=1?" x "+t.UnitQuantity:""," ")}}function An(n,o){if(n&1&&(x(0),l(1,"span",76),p(2),g(3,"number"),r(),u()),n&2){let t=c(3).$implicit;e(2),C(f(3,1,t==null?null:t.UnitPriceOriginal))}}function Ln(n,o){if(n&1&&(x(0),d(1,An,4,3,"ng-container",17),u()),n&2){let t=c(2).$implicit;e(),a("ngIf",(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))}}function Fn(n,o){if(n&1&&(x(0),l(1,"span",74),p(2,"x"),r(),l(3,"span",75),d(4,Ln,2,1,"ng-container",17),p(5),g(6,"number"),r(),u()),n&2){let t=c().$implicit,i=c(2);e(4),a("ngIf",i.config.ModuleSell==null||i.config.ModuleSell.Promotion==null?null:i.config.ModuleSell.Promotion.StrikethroughOriginalPrice),e(),s(" ",f(6,2,t.Price)," ")}}function zn(n,o){if(n&1&&(x(0),l(1,"i",77),p(2),g(3,"number"),r(),u()),n&2){let t=c().$implicit;e(2),s(" ","-"+f(3,1,t.Discount)+"%"," ")}}function Bn(n,o){if(n&1&&(x(0),l(1,"i",78),p(2),g(3,"number"),r(),u()),n&2){let t=c().$implicit;e(2),s(" ","-"+f(3,1,t.DiscountAmount)," ")}}function $n(n,o){if(n&1&&(l(0,"span"),p(1),g(2,"number"),g(3,"TrailingZero"),r()),n&2){let t=c().$implicit,i=c(2);e(),s(" ",v(3,3,f(2,1,(1-t.Discount/100)*t.Price*t.Quantity*t.UnitQuantity-t.DiscountAmount*t.Quantity),i.config.PrintConfigGeneral.TrailingZero)," ")}}function jn(n,o){if(n&1&&(l(0,"div",56)(1,"div",54)(2,"div",57)(3,"div"),d(4,Tn,2,1,"ng-container",17),p(5),r(),d(6,kn,2,1,"ng-container",17)(7,En,3,1,"div",58)(8,Rn,2,1,"ng-container",17),r(),d(9,Nn,3,2,"div",59),r(),l(10,"div",60)(11,"div",61)(12,"div",62),d(13,Dn,3,6,"span",63)(14,Fn,7,4,"ng-container",17)(15,zn,4,3,"ng-container",17)(16,Bn,4,3,"ng-container",17),r()(),l(17,"div",64),d(18,$n,4,6,"span",17),r()()()),n&2){let t=o.$implicit,i=c(2);e(4),a("ngIf",i.config.ModuleSell.Grid.RowNumberVisible),e(),O(" ",t.Variant.Name," ",t.Variant.Code&&i.config.PrintConfigInvoice.ItemsTable.CodeVisible?" - "+t.Variant.Code:""," "),e(),a("ngIf",t.Serial&&(t.Serial==null?null:t.Serial.length)>0),e(),a("ngIf",t.SalesName&&i.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),e(),a("ngIf",t.Note),e(),a("ngIf",i.config.PrintConfigInvoice.ItemsTable.TaxableVisible),e(),a("ngClass",R(13,an,(i.config.ModuleSell==null||i.config.ModuleSell.Promotion==null?null:i.config.ModuleSell.Promotion.StrikethroughOriginalPrice)&&(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))),e(3),a("ngIf",i.config.PrintConfigInvoice.ItemsTable.QuantityVisible),e(),a("ngIf",i.amountVisible&&!i.priceVisibleRestriction),e(),a("ngIf",t.Discount!=0&&i.amountVisible),e(),a("ngIf",t.DiscountAmount!=0&&i.amountVisible),e(2),a("ngIf",i.amountVisible&&!i.priceVisibleRestriction)}}function Qn(n,o){if(n&1&&(l(0,"span")(1,"span"),p(2),r()()),n&2){let t=c().$implicit;e(2),s("",t.Label," :")}}function Un(n,o){if(n&1&&(l(0,"span"),p(1),r()),n&2){let t=c().$implicit;e(),s("",t.CurrencySymbol," ")}}function Zn(n,o){if(n&1&&(l(0,"div",80),g(1,"Filter"),l(2,"div",81),p(3),d(4,Qn,3,1,"span"),r(),l(5,"div",82)(6,"div",83)(7,"div",84),d(8,Un,2,1,"span",17),r(),l(9,"div",85)(10,"span"),p(11),g(12,"number"),g(13,"TrailingZero"),r()()()()()),n&2){let t=o.$implicit,i=o.index,P=c(3);a("ngClass",i==T(1,7,P.data.AmountSummary,1,"Type").length-1?"pb-2":""),e(2),a("ngClass",i==1?"border-top":""),e(),s(" ",i==0?P.totalItemsLabel+" :":""," "),e(),F(i!=0?4:-1),e(),a("ngClass",i==1?"border-top":""),e(3),a("ngIf",P.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),e(3),C(v(13,13,f(12,11,t.Amount),P.config.PrintConfigGeneral.TrailingZero))}}function Gn(n,o){if(n&1&&(l(0,"div",79),d(1,Zn,14,16,"div",28),g(2,"Filter"),r()),n&2){let t=c(2);e(),a("ngForOf",T(2,1,t.data.AmountSummary,1,"Type"))}}function qn(n,o){if(n&1&&(l(0,"span"),p(1),g(2,"limitTo"),r()),n&2){let t=c().$implicit,i=c(3);e(),s(" ",i.config.PrintConfigInvoice.DocumentVisibility.PaymentCode==3?"- ***"+T(2,1,t.Code,4,t.Code.length-4):"- "+t.Code," ")}}function Wn(n,o){if(n&1&&m(0,"div",12),n&2){let t=c().$implicit;a("innerHTML",t.Note,_)}}function Xn(n,o){if(n&1&&(l(0,"span",84),p(1),r()),n&2){let t=c(4);e(),C(t.data.CurrencySymbol)}}function Jn(n,o){if(n&1&&(l(0,"div",87)(1,"div",88),p(2),d(3,qn,3,5,"span",17)(4,Wn,1,1,"div",12),r(),l(5,"div",89),d(6,Xn,2,1,"span",90),l(7,"span",85),p(8),g(9,"TrailingZero"),r()()()),n&2){let t=o.$implicit,i=o.index,P=c(3);a("hidden",t.Amount==0),e(2),s(" ",P.config.PrintConfigInvoice.Footer.PaymentMethodVisible?t.MethodName:P.data.Payments.length!=1?"Payment":"Payment "+(i+1)," "),e(),a("ngIf",t.Code&&P.config.PrintConfigInvoice.DocumentVisibility.PaymentCode!=1),e(),F(!(P.config==null||P.config.PrintConfigInvoice==null||P.config.PrintConfigInvoice.DocumentVisibility==null)&&P.config.PrintConfigInvoice.DocumentVisibility.PaymentNoteVisible&&t.Note?4:-1),e(2),a("ngIf",P.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),e(2),s(" ",v(9,6,P.change>0?t.PaidAmount:t.Amount,P.config.PrintConfigGeneral.TrailingZero),"")}}function Kn(n,o){if(n&1&&(l(0,"div"),d(1,Jn,10,9,"div",86),r()),n&2){let t=c(2);e(),a("ngForOf",t.data.Payments)}}function Yn(n,o){if(n&1&&(l(0,"span",84),p(1),r()),n&2){let t=c(3);e(),C(t.currencyChange)}}function te(n,o){if(n&1&&(l(0,"div",91)(1,"div",92),p(2,"Change :"),r(),l(3,"div",89),d(4,Yn,2,1,"span",90),l(5,"span",85),p(6),g(7,"TrailingZero"),r()()()),n&2){let t=c(2);e(4),a("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),e(2),s(" ",v(7,2,t.change,t.config.PrintConfigGeneral.TrailingZero),"")}}function ne(n,o){if(n&1&&(l(0,"span",84),p(1),r()),n&2){let t=c(3);e(),C(t.data.CurrencySymbol)}}function ee(n,o){if(n&1&&(l(0,"div",91)(1,"div",92),p(2),r(),l(3,"div",89),d(4,ne,2,1,"span",90),l(5,"span",85),p(6),g(7,"TrailingZero"),r()()()),n&2){let t=c(2);e(2),s("",t.remainingLabel,":"),e(2),a("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),e(2),C(v(7,3,t.diff,t.config.PrintConfigGeneral.TrailingZero))}}function ie(n,o){if(n&1&&(l(0,"span"),p(1),r()),n&2){let t=c().$implicit;e(),s("",t.CurrencySymbol," ")}}function oe(n,o){if(n&1&&(l(0,"div",80)(1,"div",93),p(2),r(),l(3,"div",94)(4,"div",83)(5,"div",84),d(6,ie,2,1,"span",17),r(),l(7,"div",85)(8,"span"),p(9),g(10,"number"),g(11,"TrailingZero"),r()()()()()),n&2){let t=o.$implicit,i=o.index,P=c(2);a("ngClass",i==0?"border-top pt-2":""),e(2),s("",t.Label," :"),e(4),a("ngIf",P.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),e(3),C(v(11,6,f(10,4,t.Amount),P.config.PrintConfigGeneral.TrailingZero))}}function ae(n,o){if(n&1&&(x(0),l(1,"strong",95),p(2),r(),m(3,"span",96),u()),n&2){let t=c(2);e(2),s(" ",t.config.LoyaltyLabel?t.config.LoyaltyLabel:"Loyalty Point"," "),e(),a("innerHTML",t.data.LoyaltyPoint,_)}}function re(n,o){n&1&&(l(0,"h6",97),p(1," Coupon "),r())}function le(n,o){if(n&1&&(l(0,"span",98),p(1),g(2,"limitTo"),r()),n&2){let t=c(2);e(),s(" ",t.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon==3?"***"+T(2,1,t.data.Coupon,3,t.data.Coupon.length-3):t.data.Coupon," ")}}function ce(n,o){n&1&&(l(0,"h6",97),p(1,"ToP"),r())}function pe(n,o){if(n&1&&m(0,"span",96),n&2){let t=c(3);a("innerHTML",t.data.Due,_)}}function de(n,o){if(n&1&&(l(0,"span",98),p(1),r()),n&2){let t=c(3);e(),s("- ",t.top," Days")}}function me(n,o){if(n&1&&(l(0,"div",30),d(1,ce,2,0,"h6",31)(2,pe,1,1,"span",99)(3,de,2,1,"span",32),r()),n&2){let t=c(2);e(),a("ngIf",t.data.ToP),e(),a("ngIf",t.data.ToP),e(),a("ngIf",t.data.ToP)}}function ge(n,o){if(n&1&&(l(0,"h6",97),p(1),r()),n&2){let t=c(2);e(),s(" ",t.config.PrintConfigInvoice.DocumentLabel.SalesPerson," ")}}function _e(n,o){if(n&1&&(l(0,"p"),p(1),r()),n&2){let t=c(2);e(),s(" ",t.data==null?null:t.data.SalesName," ")}}function se(n,o){n&1&&(l(0,"h6",97),p(1," Note "),r())}function Ce(n,o){if(n&1&&(m(0,"p",12),g(1,"newlines")),n&2){let t=c(2);a("innerHTML",f(1,1,t.data==null?null:t.data.ExtraNote),_)}}function fe(n,o){n&1&&(l(0,"h6",100),p(1," Note "),r())}function Pe(n,o){if(n&1&&(m(0,"p",101),g(1,"newlines")),n&2){let t=c(2);a("innerHTML",f(1,1,t.data==null?null:t.data.InvoiceNote),_)}}function xe(n,o){if(n&1&&(l(0,"p",102),p(1),r()),n&2){let t=c(2);e(),s(" Printed : ",t.data==null?null:t.data.PrintDate," ")}}function ue(n,o){if(n&1&&(l(0,"p",102),p(1),r()),n&2){let t=c(2);e(),s(" Created : ",t.data==null?null:t.data.Created," ")}}function ve(n,o){n&1&&(x(0),l(1,"div",38),p(2,"( OFFLINE )"),r(),u())}function Me(n,o){if(n&1&&(l(0,"div"),m(1,"div",103)(2,"packing-slip",104),r()),n&2){let t=c(2);e(2),a("data",t.data)("printTemplate",t.printTemplate)("config",t.config)}}function Oe(n,o){if(n&1&&(l(0,"div"),d(1,pn,4,3,"div",6),l(2,"div",7),d(3,mn,2,1,"ng-container",8)(4,_n,1,1,"ng-template",null,0,B),r(),l(6,"div",7),m(7,"h2",9)(8,"i",10),l(9,"p",11),m(10,"span",12),g(11,"newlines"),m(12,"br"),d(13,sn,1,1,"span",13),m(14,"br")(15,"span",12),g(16,"newlines"),r(),d(17,fn,4,2,"h6",14)(18,Pn,1,1,"h6",15)(19,xn,2,3,"p",16)(20,un,3,5,"span",17)(21,vn,3,5,"span",17)(22,Mn,1,1,"p",18),r(),d(23,On,2,3,"h2",19)(24,bn,2,1,"h2",20)(25,hn,3,1,"ng-container",17)(26,yn,2,1,"div",21),l(27,"div",22),d(28,Sn,3,2,"div",23),l(29,"div",24),p(30),r()(),d(31,jn,19,15,"div",25)(32,Gn,3,5,"div",26)(33,Kn,2,1,"div",17)(34,te,8,5,"div",27)(35,ee,8,6,"div",27)(36,oe,12,9,"div",28),g(37,"Filter"),l(38,"div",29)(39,"div",30),d(40,ae,4,2,"ng-container",17)(41,re,2,0,"h6",31)(42,le,3,5,"span",32),r(),d(43,me,4,3,"div",33),r(),l(44,"div",34),d(45,ge,2,1,"h6",31)(46,_e,2,1,"p",17)(47,se,2,0,"h6",31)(48,Ce,2,3,"p",13)(49,fe,2,0,"h6",35)(50,Pe,2,3,"p",36),r(),m(51,"p",12),g(52,"SafeHtml"),l(53,"div",7),d(54,xe,2,1,"p",37),r(),l(55,"div",38),d(56,ue,2,1,"p",37),r(),d(57,ve,3,0,"ng-container",17)(58,Me,3,3,"div",17),r()),n&2){let t=z(5),i=c();L("print_container invoice_mini ",i.printTemplate.PrintLX300?"lx300":""," ",i.printTemplate.CssClass," box mt-5"),e(),a("ngIf",(i.config==null||i.config.PrintConfigInvoice==null||i.config.PrintConfigInvoice.Footer==null?null:i.config.PrintConfigInvoice.Footer.CopyLabelEnabled)&&!(i.printTemplate!=null&&i.printTemplate.PrintLX300)&&(i.data==null?null:i.data.PrintCopyLabel)),e(2),a("ngIf",(i.config==null||i.config.PrintConfigInvoice==null||i.config.PrintConfigInvoice.LogoConfig==null?null:i.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth)>0)("ngIfElse",t),e(4),a("innerHTML",i.printTemplate.Title,_),e(),a("innerHTML",i.printTemplate.Field,_),e(2),a("innerHTML",f(11,45,i.printTemplate==null?null:i.printTemplate.Address),_),e(3),a("ngIf",i.config==null||i.config.PrintConfigInvoice==null?null:i.config.PrintConfigInvoice.DocumentVisibility.RegisterCode),e(2),a("innerHTML",f(16,47,i.printTemplate==null?null:i.printTemplate.ContactInfo),_),e(2),a("ngIf",i.customerVisible&&(i.data.Customer==null?null:i.data.Customer.Name)),e(),a("ngIf",i.customerVisible&&(i.data.Customer==null?null:i.data.Customer.NationalIDNumber)&&i.config.PrintConfigInvoice.DocumentVisibility.IdentificationVisible),e(),a("ngIf",i.customerVisible&&(i.data.Customer==null?null:i.data.Customer.Address)&&i.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),e(),a("ngIf",i.customerVisible&&(i.data.Customer==null?null:i.data.Customer.Phone)&&i.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1&&(i.data.Customer==null?null:i.data.Customer.Phone)!==null),e(),a("ngIf",i.customerVisible&&(i.data.Customer==null?null:i.data.Customer.Mobile)&&i.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1&&(i.data.Customer==null?null:i.data.Customer.Phone)==null&&(i.data.Customer==null?null:i.data.Customer.Mobile)!==null),e(),a("ngIf",i.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),e(),a("ngIf",i.data.paymentState<3),e(),F(i.data.Retur&&(!(i.config==null||i.config.PrintConfigInvoice==null||i.config.PrintConfigInvoice.Header==null)&&i.config.PrintConfigInvoice.Header.SalesReturnLabel)?24:-1),e(),a("ngIf",i.data.paymentState==1),e(),a("ngIf",i.config.PrintConfigInvoice.Footer.CreatorVisiblePosition!=1),e(2),a("ngIf",i.config.PrintConfigInvoice.DocumentVisibility.NumberVisible),e(2),C(i.data.Date),e(),a("ngForOf",i.data.Items),e(),a("ngIf",i.amountVisible&&!i.priceVisibleRestriction),e(),a("ngIf",(i.data.Payments.length>0||!(i.change>0)||i.diff>0)&&i.amountVisible),e(),a("ngIf",i.change>0&&i.amountVisible),e(),a("ngIf",i.diff>0&&!i.hasSurcharge&&i.amountVisible),e(),a("ngForOf",T(37,49,i.data.AmountSummary,2,"Type")),e(4),a("ngIf",i.config.PrintConfigInvoice.Footer.ShowLoyaltyPoint&&i.data.LoyaltyPoint),e(),a("ngIf",i.data.Coupon&&i.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),e(),a("ngIf",i.data.Coupon&&i.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),e(),a("ngIf",i.config.PrintConfigInvoice.DocumentVisibility.InvoicePaymentTermsVisible&&i.data.paymentState<3&&i.data.Payments.length==0),e(2),a("ngIf",i.data.SalesName&&i.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),e(),a("ngIf",i.data.SalesName&&i.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),e(),a("ngIf",(i.data==null?null:i.data.ExtraNote)&&i.config.PrintConfigInvoice.Footer.ParkNoteVisible),e(),a("ngIf",i.data.ExtraNote&&i.config.PrintConfigInvoice.Footer.ParkNoteVisible),e(),a("ngIf",(i.data==null?null:i.data.InvoiceNote)&&i.config.PrintConfigInvoice.Footer.NoteVisible),e(),a("ngIf",i.data.InvoiceNote&&i.config.PrintConfigInvoice.Footer.NoteVisible),e(),a("innerHTML",f(52,53,i.printTemplate.FooterLeft?i.printTemplate.FooterLeft:""),_),e(3),a("ngIf",(i.config==null||i.config.PrintConfigInvoice==null||i.config.PrintConfigInvoice.DocumentVisibility==null?null:i.config.PrintConfigInvoice.DocumentVisibility.CustomerEntryTimeVisible)&&i.data.PrintDate),e(2),a("ngIf",(i.config==null||i.config.PrintConfigInvoice==null||i.config.PrintConfigInvoice.DocumentVisibility==null?null:i.config.PrintConfigInvoice.DocumentVisibility.InvoiceCreatedTimeVisible)&&i.data.Created),e(),a("ngIf",i.data.offlineMode&&i.config.PrintConfigInvoice.DocumentVisibility.WritePrintOffline),e(),a("ngIf",i.config==null||i.config.PrintConfigInvoice==null?null:i.config.PrintConfigInvoice.DocumentVisibility.PrintPackingslipAftersell)}}function be(n,o){if(n&1&&(x(0),m(1,"qr-code",106),u()),n&2){let t=c(2);e(),a("value",t.data.QRContent)("size",250)}}function he(n,o){if(n&1&&(l(0,"div",105),d(1,be,2,2,"ng-container",17),r()),n&2){let t=c();e(),a("ngIf",(t.config==null||t.config.PrintConfigInvoice==null?null:t.config.PrintConfigInvoice.InvoiceQR.TransformTo)==t.invoiceQR.QRCode)}}var bt=(i=>(i[i.None=1]="None",i[i.Barcode=2]="Barcode",i[i.QRCode=3]="QRCode",i))(bt||{}),Mt=class n{constructor(o,t,i){this.activeRoute=o;this._onlineStatusService=t;this.decimalPipe=i;this.destroy$=new it,this._onlineStatusService.getOnlineStatus$().pipe(mt()).subscribe(P=>{this.isOnline=P})}invoiceQR=bt;data;outletInfo;printTemplate;config;emailVisibleRestriction;priceVisibleRestriction;receiptParam;paperPrintMode;printModeType;destroy$;customerVisible;amountVisible;diff;change=0;currencyChange;totalItemsLabel;hasSurcharge;top;remainingLabel;isOnline;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(){let o=this.config?this.config.PrintConfigInvoice.Footer.LabelRemaining:"";this.remainingLabel=o||"Remaining"}initPaperModeConfig(){if(this.receiptParam){let o=this.receiptParam;this.paperPrintMode=[{label:"8cm",link:"/print/InvoiceMini",param:o},{label:"A4",link:"/print/Invoice",param:o}]}}parseTop(){this.data&&this.data.ToP&&(this.top=parseInt(this.data.ToP.toFixed(1)))}getJSONQR(){let o,t;return this.data.OutletName!==null&&this.data.Number!=null&&(o={Outlet:this.data.OutletName,Invoice:this.data.Number},t=JSON.stringify(o)),t}calculatePrintPrice(){this.isOnline?this.data.offlineMode=!1:this.data.offlineMode=!0,this.customerVisible=this.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible&&this.data.Customer;let o=this.activeRoute.snapshot.queryParamMap.get("Price");this.amountVisible=o!=="0",this.calculateChange()}calculateChange(){let o=0;this.data.Payments.forEach(i=>{o+=i.PaidAmount});let t=this.data.FinalAmount;this.calculateDiff(),this.change=o-t,this.currencyChange=this.data.CurrencySymbol}calculateDiff(){let o=0;this.data.Payments.forEach(i=>{o+=i.Amount});let t=this.data.FinalAmount;this.diff=t-o,Math.abs(this.diff)<this.config.ModuleSell.ToleranceAmount&&(this.diff=0)}generateItemLabel(){let o=0,t=this.data.Items.length;for(let K of this.data.Items)(this.config?.PrintConfigInvoice?.ItemsTable?.NonInventoryCount||K.Variant.TypeID!=2)&&(o+=K.Quantity);let i=o>1?"s":"",P=this.decimalPipe.transform(o,"1.0-4").toString(),It=this.config.PrintConfigInvoice?.ItemsFooter?.TotalQuantityVisible;this.totalItemsLabel=`Total (Item${i}: ${t}${It?`, Qty: ${P})`:")"}`}checkSurcharge(){this.hasSurcharge=!1;for(let o of this.data.AmountSummary)o.Label.includes("Surcharge")&&(this.hasSurcharge=!0)}checkAmountSummary(){let o=this.data.AmountSummary.length;this.data.AmountSummary[o-1].Label=="Change"&&(this.change=this.data.AmountSummary[o-1].Amount,this.currencyChange=this.data.AmountSummary[o-1].CurrencySymbol,this.data.AmountSummary.pop(),this.data.AmountSummary.pop())}prepareSalesCommission(){for(let o of this.data.Items)o.SalesID!=null&&o.SalesName==null&&(o.SalesName=this.getSalesName(o.SalesID))}getSalesName(o){let t=this.outletInfo.ListSales.find(i=>i.ID==o);return $.IsNotEmpty(t)?t.Name:""}static \u0275fac=function(t){return new(t||n)(N(ct),N(ft),N(y))};static \u0275cmp=M({type:n,selectors:[["pos-receipt"]],inputs:{data:"data",outletInfo:"outletInfo",printTemplate:"printTemplate",config:"config",emailVisibleRestriction:"emailVisibleRestriction",priceVisibleRestriction:"priceVisibleRestriction",receiptParam:"receiptParam"},decls:5,vars:4,consts:[["DEFAULTWIDTH",""],["rel","stylesheet","href",h`/Styles/Master/app_custom.css`],["rel","stylesheet","href",h`/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"],[4,"ngIf","ngIfElse"],[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"],[1,"text-center","m-0","p-1","text-warning"],["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"],["class","img-fluid border-0",3,"style","src",4,"ngIf"],[1,"img-fluid","border-0",3,"src"],["class","img-fluid border-0",3,"src",4,"ngIf"],[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","pe-3"],[1,"col-5","row","g-0"],["class","col-auto",4,"ngIf"],[1,"row","g-0","text-end"],[1,"col-7","fw-bold"],[1,"col-7"],[1,"col-5"],[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(t,i){t&1&&(m(0,"link",1)(1,"link",2)(2,"POS-print-mode",3),d(3,Oe,59,55,"div",4)(4,he,2,1,"div",5)),t&2&&(e(2),a("paperPrints",i.paperPrintMode)("paperType","mini"),e(),a("ngIf",i.data),e(),a("ngIf",(i.config==null||i.config.PrintConfigInvoice==null?null:i.config.PrintConfigInvoice.InvoiceQR.TransformTo)!=i.invoiceQR.None))},dependencies:()=>[rt,k,b,W,Q,Pt,nt,y,_t,w,H,Ct,j],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;-webkit-border-radius:3px;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[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%]: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:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#888),color-stop(100%,#545454));background-image:-webkit-linear-gradient(#888,#545454);background-image:-moz-linear-gradient(#888,#545454);background-image:-o-linear-gradient(#888,#545454);background-image:linear-gradient(#888,#545454);-webkit-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);-moz-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);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}"]})},Ot=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=S({type:n});static \u0275inj=I({imports:[E,V,X,U,xt,nt]})};function ye(n,o){if(n&1&&(l(0,"div",4),p(1),g(2,"DecimalRound"),g(3,"TrailingZero"),r()),n&2){let t=c(2);e(),s(" ",v(3,4,v(2,1,(1-t.item.Discount/100)*t.item.Price*t.item.Quantity*t.item.UnitQuantity,4),t.decimal)," ")}}function Ie(n,o){if(n&1&&(l(0,"div",2)(1,"div"),p(2),g(3,"number"),l(4,"span"),p(5),r(),l(6,"i"),p(7),r()(),d(8,ye,4,7,"div",3),r()),n&2){let t=c();A("d-flex justify-content-between ms-2 ",t.item.Quantity<0?"cancel":"",""),e(2),s(" ",f(3,8,t.item.Quantity)," x "),e(3),O(" ",t.item.Variant==null?null:t.item.Variant.Name," ",t.item.Variant!=null&&t.item.Variant.Code&&t.code?" - "+(t.item.Variant==null?null:t.item.Variant.Code):""," "),e(2),C(t.amount&&t.item.Discount!=0?t.item.Discount+" %":""),e(),a("ngIf",t.amount)}}function Se(n,o){if(n&1&&(m(0,"mark",5),g(1,"newlines")),n&2){let t=c();a("innerHtml",f(1,1,t.item.Note),_)}}var J=class n{item;decimal;code;amount;note;constructor(){}ngOnInit(){}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=M({type:n,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(t,i){t&1&&d(0,Ie,9,10,"div",0)(1,Se,2,3,"mark",1),t&2&&(a("ngIf",i.item),e(),a("ngIf",i.item.Note&&i.note))},dependencies:[b,y,w,H,st]})};function Te(n,o){if(n&1&&m(0,"div",19),n&2){let t=c(2);a("innerHtml",t.printTemplate.Field,_)}}function ke(n,o){if(n&1&&(l(0,"div",20),m(1,"div",13),g(2,"newlines"),m(3,"div",13),g(4,"newlines"),r()),n&2){let t=c(2);e(),a("innerHtml",f(2,2,t.printTemplate==null?null:t.printTemplate.Address),_),e(2),a("innerHtml",f(4,4,t.printTemplate==null?null:t.printTemplate.ContactInfo),_)}}function Ee(n,o){if(n&1&&m(0,"h3",13),n&2){let t=c(3);a("innerHtml",t.data==null?null:t.data.Customer.Name,_)}}function we(n,o){if(n&1&&m(0,"h3",13),n&2){let t=c(3);a("innerHtml",t.data==null?null:t.data.Customer.MemberIdentification,_)}}function Re(n,o){if(n&1&&(m(0,"p",13),g(1,"newlines")),n&2){let t=c(3);a("innerHtml",f(1,1,t.data==null?null:t.data.Customer.Address),_)}}function He(n,o){if(n&1&&m(0,"span",13),n&2){let t=c(3);a("innerHtml",t.data==null?null:t.data.Customer.Phone,_)}}function Ve(n,o){if(n&1&&m(0,"span",13),n&2){let t=c(3);a("innerHtml",t.data==null?null:t.data.Customer.Email,_)}}function Ne(n,o){if(n&1&&(l(0,"div",20),d(1,Ee,1,1,"h3",21)(2,we,1,1,"h3",21)(3,Re,2,3,"p",21)(4,He,1,1,"span",21)(5,Ve,1,1,"span",21),r()),n&2){let t=c(2);e(),a("ngIf",t.data==null?null:t.data.Customer.Name),e(),a("ngIf",t.data==null?null:t.data.Customer.MemberIdentification),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible)}}function De(n,o){if(n&1&&(l(0,"div"),p(1),r()),n&2){let t=c(2);e(),s(" ",t.data==null?null:t.data.Title," ")}}function Ae(n,o){if(n&1&&(l(0,"div",25),m(1,"park-item",26),r()),n&2){let t=o.$implicit,i=c(3);e(),a("item",t)("code",i.config.PrintConfigInvoice.ItemsTable.CodeVisible)("decimal",i.config.PrintConfigGeneral.TrailingZero)("amount",i.config.ApplicationParkAndRetrieve.PrintOutput.AmountVisible)("note",i.config.PrintConfigInvoice.Footer.NoteVisible)}}function Le(n,o){if(n&1&&(l(0,"div",22)(1,"h6",23),p(2),r(),d(3,Ae,2,5,"div",24),r()),n&2){let t=o.$implicit;e(2),C(t.Name),e(),a("ngForOf",t.Items)}}function Fe(n,o){if(n&1&&(l(0,"div",29),m(1,"park-item",26),r()),n&2){let t=o.$implicit,i=c(3);e(),a("item",t)("code",i.config.PrintConfigInvoice.ItemsTable.CodeVisible)("decimal",i.config.PrintConfigGeneral.TrailingZero)("amount",i.config.ApplicationParkAndRetrieve.PrintOutput.AmountVisible)("note",i.config.PrintConfigInvoice.Footer.NoteVisible)}}function ze(n,o){if(n&1&&(l(0,"div",27),d(1,Fe,2,5,"div",28),r()),n&2){let t=c(2);e(),a("ngForOf",t.data.Items)}}function Be(n,o){if(n&1&&(l(0,"tr")(1,"th",35),p(2),g(3,"sum"),g(4,"number"),r(),l(5,"td",36),p(6,":"),r(),l(7,"td",36),p(8),r(),l(9,"td",37),p(10),g(11,"TrailingZero"),r()()),n&2){let t=o.$implicit,i=o.index,P=c(4);e(2),O("",i==1&&P.data.Items.length>1?"Qty: "+f(4,7,v(3,4,P.data.Items,"Quantity")):""," ",t.Label,""),e(6),C(t.CurrencySymbol),e(2),C(v(11,9,t.Amount,P.config.PrintConfigGeneral.TrailingZero))}}function $e(n,o){if(n&1&&(l(0,"div",32)(1,"table",33)(2,"tbody"),d(3,Be,12,12,"tr",34),r()()()),n&2){let t=c(3);e(3),a("ngForOf",t.data.AmountSummary)}}function je(n,o){n&1&&m(0,"div",32)}function Qe(n,o){if(n&1&&(l(0,"div",30),d(1,$e,4,1,"div",31)(2,je,1,0,"div",31),r()),n&2){let t=c(2);e(),a("ngIf",t.data.AmountSummary.length>0),e(),a("ngIf",t.data.AmountSummary.length>0)}}function Ue(n,o){if(n&1&&(l(0,"div"),p(1),g(2,"number"),r()),n&2){let t=c(2);e(),s("Number of Person: ",f(2,1,t.data.NumberOfPerson),"")}}function Ze(n,o){if(n&1&&(l(0,"div"),p(1),r()),n&2){let t=c(2);e(),O("",t.config.PrintConfigInvoice.DocumentLabel.SalesPerson," : ",t.data.SalesName," ")}}function Ge(n,o){n&1&&(l(0,"h6",38),p(1,"Note : "),r())}function qe(n,o){if(n&1&&(m(0,"div",39),g(1,"newlines")),n&2){let t=c(2);a("innerHTML",f(1,1,t.data.InvoiceNote),_)}}function We(n,o){if(n&1&&m(0,"small",40),n&2){let t=c(2);a("innerHtml",t.data.Creator,_)}}function Xe(n,o){if(n&1&&(l(0,"div"),m(1,"div",3),d(2,Te,1,1,"div",4)(3,ke,5,6,"div",5)(4,Ne,6,5,"div",5),l(5,"div",6),d(6,De,2,1,"div",7),l(7,"div"),p(8),r()(),l(9,"div",8),d(10,Le,4,2,"div",9)(11,ze,2,1,"div",10),r(),d(12,Qe,3,2,"div",11),l(13,"div",12),d(14,Ue,3,3,"div",7)(15,Ze,2,2,"div",7),m(16,"div",13),g(17,"newlines"),d(18,Ge,2,0,"h6",14)(19,qe,2,3,"div",15),r(),m(20,"div",16),g(21,"SafeHtml"),m(22,"small",17),g(23,"date"),d(24,We,1,1,"small",18),r()),n&2){let t=c();L("print_container sales_order_mini ",t.printTemplate.PrintLX300?"lx300":""," ",t.printTemplate.CssClass,""),e(),a("innerHtml",t.printTemplate==null?null:t.printTemplate.Title,_),e(),a("ngIf",t.config.ApplicationParkAndRetrieve.PrintOutput.OutletAddressVisible),e(),a("ngIf",t.config.ApplicationParkAndRetrieve.PrintOutput.OutletAddressVisible),e(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible&&t.data.Customer),e(2),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.NumberVisible),e(2),s(" ",t.data==null?null:t.data.Date," "),e(2),a("ngForOf",t.itembyCategory),e(),a("ngIf",!t.config.ApplicationParkAndRetrieve.PrintOutput.GroupByCategory),e(),a("ngIf",t.data.AmountSummary),e(2),a("ngIf",t.data.NumberOfPerson&&t.config.ApplicationParkAndRetrieve.PrintOutput.ShowNumberOfPerson),e(),a("ngIf",t.data.SalesName),e(),a("innerHtml",f(17,21,t.data==null?null:t.data.ExtraNote),_),e(2),a("ngIf",t.data.InvoiceNote&&t.config.PrintConfigInvoice.Footer.NoteVisible),e(),a("ngIf",t.data.InvoiceNote&&t.config.PrintConfigInvoice.Footer.NoteVisible),e(),a("innerHtml",f(21,23,t.printTemplate.FooterRight?t.printTemplate.FooterRight:""),_),e(2),a("innerHtml",v(23,25,t.data.PrintDate,"dd MMM yyyy HH:mm"),_),e(2),a("ngIf",t.config.PrintConfigInvoice.Footer.CreatorVisiblePosition!=1)}}var ht=class n{data;printTemplate;config;itembyCategory=[];constructor(){}ngOnInit(){this.config.ApplicationParkAndRetrieve.PrintOutput.GroupByCategory&&this.data.Items.forEach(o=>{let t=this.itembyCategory.find(i=>i.Name==o.Variant.CategoryName);t==null&&(t={},t.Name=o.Variant.CategoryName,t.Items=this.data.Items.filter(i=>i.Variant.CategoryName==t.Name),this.itembyCategory.push(t))})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=M({type:n,selectors:[["park-order"]],inputs:{data:"data",printTemplate:"printTemplate",config:"config"},decls:3,vars:1,consts:[["rel","stylesheet","href",h`/Styles/Master/app_custom.css`],["rel","stylesheet","href",h`/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(t,i){t&1&&(m(0,"link",0)(1,"link",1),d(2,Xe,25,28,"div",2)),t&2&&(e(2),a("ngIf",i.data))},dependencies:()=>[k,b,J,y,lt,gt,w,H,j],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}}"]})},yt=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=S({type:n});static \u0275inj=I({imports:[E,V]})};export{X as a,Q as b,U as c,Mt as d,Ot as e,ht as f,yt as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as e}from"./chunk-
|
|
1
|
+
import{k as e}from"./chunk-2WEKKSVS.js";import{_c as r,ga as t,oa as i}from"./chunk-ZCFRJGRH.js";var m=class o{static \u0275fac=function(n){return new(n||o)};static \u0275mod=i({type:o});static \u0275inj=t({imports:[r,e]})};export{m as a};
|