dealpos 25.43.0 → 25.43.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/browser/chunk-2HUEFC2T.js +1 -0
  2. package/browser/{chunk-QDE7PB5F.js → chunk-2LMF4IMC.js} +1 -1
  3. package/browser/{chunk-NIAATSHN.js → chunk-2QU24F5P.js} +1 -1
  4. package/browser/{chunk-HIALMESF.js → chunk-346EL5B3.js} +1 -1
  5. package/browser/{chunk-ZH7IWOYT.js → chunk-3CUWPIMQ.js} +1 -1
  6. package/browser/{chunk-PHGUFK7B.js → chunk-3XR3MVQE.js} +1 -1
  7. package/browser/{chunk-QCXWKQ7Z.js → chunk-4G344XSZ.js} +1 -1
  8. package/browser/{chunk-JORCTO5O.js → chunk-4QQF4IJE.js} +1 -1
  9. package/browser/{chunk-RDLECCOU.js → chunk-4RRARGON.js} +2 -2
  10. package/browser/{chunk-NXXNEU5Q.js → chunk-4UYZJCFI.js} +1 -1
  11. package/browser/{chunk-7O3BTVW2.js → chunk-5EEOIYLP.js} +1 -1
  12. package/browser/{chunk-KBO5VO7S.js → chunk-5QXTT2Q4.js} +1 -1
  13. package/browser/{chunk-R6NHGFCL.js → chunk-5YJ2OEBF.js} +1 -1
  14. package/browser/{chunk-UEQT5HE5.js → chunk-5YRS6BWA.js} +1 -1
  15. package/browser/{chunk-UP43YMU4.js → chunk-5YUUUZD3.js} +1 -1
  16. package/browser/{chunk-VSF6PYZW.js → chunk-6647Y35T.js} +1 -1
  17. package/browser/{chunk-EENVAF36.js → chunk-6CWGCLY5.js} +1 -1
  18. package/browser/{chunk-5SRC2QUI.js → chunk-6EOWD655.js} +1 -1
  19. package/browser/{chunk-RADHAROZ.js → chunk-6FSVJ3O6.js} +1 -1
  20. package/browser/{chunk-ZPZDGQWP.js → chunk-6HXB7UO4.js} +3 -3
  21. package/browser/{chunk-4SFHOQ3Y.js → chunk-6KPCTTDA.js} +1 -1
  22. package/browser/{chunk-64EULF5I.js → chunk-6VOFZE3V.js} +1 -1
  23. package/browser/chunk-7527AL7Q.js +1 -0
  24. package/browser/{chunk-NGLW2JVN.js → chunk-A7FNJM6G.js} +1 -1
  25. package/browser/{chunk-CX4UR7ZZ.js → chunk-ACD7MZMQ.js} +3 -3
  26. package/browser/{chunk-2CU7XQYN.js → chunk-AER2U57P.js} +1 -1
  27. package/browser/{chunk-IQ4IMICT.js → chunk-ALNSA73T.js} +1 -1
  28. package/browser/{chunk-R4FFGZYI.js → chunk-AWSD3VOK.js} +1 -1
  29. package/browser/{chunk-E7L36INB.js → chunk-AXLH4KKX.js} +1 -1
  30. package/browser/{chunk-GINOZV6C.js → chunk-B6LPY2IZ.js} +1 -1
  31. package/browser/{chunk-U5OIRIFT.js → chunk-B6STMZWX.js} +14 -14
  32. package/browser/chunk-BBGWXLHJ.js +1 -0
  33. package/browser/{chunk-TROJCJRS.js → chunk-BCMMSVJJ.js} +1 -1
  34. package/browser/{chunk-A7R2DZD3.js → chunk-BJ4ZY3VJ.js} +1 -1
  35. package/browser/{chunk-MMX7JWK6.js → chunk-BJMIDKW4.js} +1 -1
  36. package/browser/{chunk-F2Z6MRHX.js → chunk-BPWQFTXE.js} +1 -1
  37. package/browser/{chunk-WYHR2ET7.js → chunk-CFSBMQ5D.js} +2 -2
  38. package/browser/{chunk-772SQL5I.js → chunk-CM4CUWDT.js} +1 -1
  39. package/browser/{chunk-FF56HWOF.js → chunk-CODMBGPI.js} +7 -7
  40. package/browser/{chunk-2DCP5K6S.js → chunk-CSLHA6EL.js} +1 -1
  41. package/browser/{chunk-ASGXDOOQ.js → chunk-CURYSM3Y.js} +1 -1
  42. package/browser/{chunk-3RWVYWJF.js → chunk-DEBIFZGN.js} +1 -1
  43. package/browser/{chunk-2L54CRB2.js → chunk-DH3PTQ3P.js} +1 -1
  44. package/browser/{chunk-TZKLOUVL.js → chunk-DK44EJTX.js} +1 -1
  45. package/browser/{chunk-ZBTG35T6.js → chunk-DKDOVSVH.js} +1 -1
  46. package/browser/chunk-E4DPE3J5.js +1 -0
  47. package/browser/{chunk-ZSE5MOHQ.js → chunk-EDXMXTEK.js} +1 -1
  48. package/browser/{chunk-RXIPRX4H.js → chunk-EJDRY7MH.js} +1 -1
  49. package/browser/{chunk-TTHREZAR.js → chunk-EKDNW5AX.js} +1 -1
  50. package/browser/{chunk-QJ4LGJCR.js → chunk-EOVI4KWG.js} +1 -1
  51. package/browser/{chunk-HAGFCQCM.js → chunk-FIHWJAIR.js} +1 -1
  52. package/browser/{chunk-UQP7S73H.js → chunk-FRDFUCRO.js} +1 -1
  53. package/browser/{chunk-D5P4CYL5.js → chunk-FSTDHLYH.js} +1 -1
  54. package/browser/{chunk-7S4WUQBK.js → chunk-FSXDAB7C.js} +1 -1
  55. package/browser/chunk-FXKRIVYT.js +1 -0
  56. package/browser/{chunk-OL6COSQS.js → chunk-FYACJ2YI.js} +1 -1
  57. package/browser/{chunk-SHMXCJ6Q.js → chunk-G454AF6P.js} +1 -1
  58. package/browser/{chunk-6G37ZXRX.js → chunk-GIDGCFLX.js} +1 -1
  59. package/browser/{chunk-6CQ6XYJG.js → chunk-H3OZSV6V.js} +1 -1
  60. package/browser/{chunk-CD3BSGAP.js → chunk-H7F34T25.js} +1 -1
  61. package/browser/{chunk-JLL2ILJJ.js → chunk-HFYSK74N.js} +1 -1
  62. package/browser/{chunk-CXRVPHHO.js → chunk-HJVO2MYG.js} +1 -1
  63. package/browser/{chunk-Y6VMIGXC.js → chunk-HKJLMHAD.js} +1 -1
  64. package/browser/{chunk-JU6MGU3M.js → chunk-HKUGK6HF.js} +1 -1
  65. package/browser/{chunk-TP762HYD.js → chunk-HMU3DWZJ.js} +1 -1
  66. package/browser/{chunk-GPP3J3W4.js → chunk-HOM424UE.js} +1 -1
  67. package/browser/{chunk-LGVT3CR2.js → chunk-I3YPVX5L.js} +1 -1
  68. package/browser/{chunk-7C7GJT3E.js → chunk-I7HV744J.js} +1 -1
  69. package/browser/{chunk-AEHOTFB4.js → chunk-IAZFUBFX.js} +1 -1
  70. package/browser/chunk-IFFXFKVP.js +14 -0
  71. package/browser/{chunk-MXUYJQOT.js → chunk-INZKDGM2.js} +13 -13
  72. package/browser/{chunk-5CDAHDI5.js → chunk-ITUXL4IU.js} +1 -1
  73. package/browser/{chunk-EJDIY62U.js → chunk-JEZGFXOM.js} +1 -1
  74. package/browser/{chunk-JYNN4IZB.js → chunk-JLXCN2NR.js} +1 -1
  75. package/browser/chunk-K5KGHSAP.js +1 -0
  76. package/browser/{chunk-YCN42CZP.js → chunk-KIQXPGXN.js} +1 -1
  77. package/browser/{chunk-RAIYXIUN.js → chunk-KTD4OMXY.js} +1 -1
  78. package/browser/{chunk-G2NUOEHT.js → chunk-KUN2P3RN.js} +1 -1
  79. package/browser/{chunk-3A4C23H5.js → chunk-KWTU2B2D.js} +1 -1
  80. package/browser/{chunk-IUDDIQMT.js → chunk-L7IGIQVH.js} +2 -2
  81. package/browser/{chunk-INCYKSJF.js → chunk-LAFPISY6.js} +1 -1
  82. package/browser/{chunk-GNXJCMBC.js → chunk-LDF4ZCJN.js} +1 -1
  83. package/browser/chunk-MBA7MORK.js +1 -0
  84. package/browser/{chunk-FAJUK2PL.js → chunk-MK4KDIMG.js} +1 -1
  85. package/browser/{chunk-IGEAG6HP.js → chunk-MSBIWISH.js} +1 -1
  86. package/browser/{chunk-IE6UBT7C.js → chunk-N4FKAPLW.js} +1 -1
  87. package/browser/{chunk-7WLFUG2A.js → chunk-NSXCBKM4.js} +1 -1
  88. package/browser/chunk-NUV6F5WN.js +1 -0
  89. package/browser/chunk-O2QDJGKT.js +112 -0
  90. package/browser/{chunk-NZXT22JH.js → chunk-OB764IZP.js} +1 -1
  91. package/browser/{chunk-MDGMZ65B.js → chunk-ON5DTHAP.js} +1 -1
  92. package/browser/chunk-PBEIFRAA.js +1 -0
  93. package/browser/{chunk-Q3SBBXUT.js → chunk-PD445FIT.js} +1 -1
  94. package/browser/{chunk-W6A2EZUH.js → chunk-PGSKQYIL.js} +2 -2
  95. package/browser/{chunk-TZ74SUXJ.js → chunk-QHBWVJIQ.js} +1 -1
  96. package/browser/{chunk-RJ5DYWUR.js → chunk-QSWKUXSH.js} +1 -1
  97. package/browser/{chunk-7V7Q67KX.js → chunk-QVTFZ7LA.js} +1 -1
  98. package/browser/{chunk-M7QHMLIG.js → chunk-R4CTK5NZ.js} +1 -1
  99. package/browser/{chunk-THXV6YJP.js → chunk-RFO7MTFT.js} +1 -1
  100. package/browser/{chunk-EMP32K7Q.js → chunk-RHUDY63D.js} +1 -1
  101. package/browser/{chunk-H6LHYTUN.js → chunk-RKCLO5OA.js} +1 -1
  102. package/browser/chunk-ROR3RTY5.js +3 -0
  103. package/browser/{chunk-AQUQUDDZ.js → chunk-RP455IK5.js} +1 -1
  104. package/browser/{chunk-TJOJSY2L.js → chunk-S4IKR42Q.js} +1 -1
  105. package/browser/{chunk-D6VG5PSE.js → chunk-SEXUIUP5.js} +1 -1
  106. package/browser/{chunk-4R4W625N.js → chunk-SGFSKIUE.js} +1 -1
  107. package/browser/{chunk-TUQ4INQ4.js → chunk-SRRURHLT.js} +1 -1
  108. package/browser/{chunk-LC3XCQL2.js → chunk-SYQCAXOC.js} +1 -1
  109. package/browser/{chunk-EYE63KIO.js → chunk-T4OMGJF4.js} +1 -1
  110. package/browser/chunk-TE3WGV2Q.js +1 -0
  111. package/browser/{chunk-SEXQYEXV.js → chunk-TLJ2NGVG.js} +1 -1
  112. package/browser/chunk-TSIYPTYI.js +1 -0
  113. package/browser/{chunk-HQQWO76P.js → chunk-U6TUYK6J.js} +1 -1
  114. package/browser/{chunk-DNSE6AZ3.js → chunk-UO2JNN6O.js} +1 -1
  115. package/browser/{chunk-3LKY4V7E.js → chunk-V2LFW5D3.js} +1 -1
  116. package/browser/{chunk-3WSASNIT.js → chunk-V73DMOF7.js} +1 -1
  117. package/browser/{chunk-VFGDPNH2.js → chunk-VPFQM3LL.js} +1 -1
  118. package/browser/{chunk-ITLMINSX.js → chunk-VQBXUZ6U.js} +1 -1
  119. package/browser/{chunk-TQZQYUFG.js → chunk-VZEPVRCY.js} +1 -1
  120. package/browser/{chunk-QEZV5DGZ.js → chunk-WEGDL4GR.js} +1 -1
  121. package/browser/{chunk-AQC5G2DR.js → chunk-WEQFFBAF.js} +1 -1
  122. package/browser/{chunk-5BZEOCFN.js → chunk-WXQELZWQ.js} +1 -1
  123. package/browser/{chunk-XDJ4AOAR.js → chunk-X5OST3RI.js} +1 -1
  124. package/browser/{chunk-BXAYNP7A.js → chunk-XBRBYCWJ.js} +1 -1
  125. package/browser/{chunk-DKPNAGIM.js → chunk-XJ7SOVB2.js} +1 -1
  126. package/browser/{chunk-5NDARG5X.js → chunk-XTL4S3XK.js} +1 -1
  127. package/browser/{chunk-PRBPKAI4.js → chunk-Y75LR4GR.js} +1 -1
  128. package/browser/chunk-YEAPJ2OC.js +1 -0
  129. package/browser/{chunk-IQ26VFNR.js → chunk-YZHVQD5P.js} +1 -1
  130. package/browser/{chunk-IJ3Y6CA4.js → chunk-Z65FTA7V.js} +1 -1
  131. package/browser/{chunk-Q3T47ZI6.js → chunk-ZEQ2QQEK.js} +1 -1
  132. package/browser/{chunk-GFT5QOAV.js → chunk-ZMOEZBOV.js} +1 -1
  133. package/browser/{chunk-3REOXXPI.js → chunk-ZT3ATOCA.js} +1 -1
  134. package/browser/{chunk-HYRNR45J.js → chunk-ZZVT4VHZ.js} +1 -1
  135. package/browser/{chunk-A7PNRSF2.js → chunk-ZZYILM3B.js} +1 -1
  136. package/browser/index.html +2 -2
  137. package/browser/main-QGKQ75P4.js +3 -0
  138. package/package.json +1 -1
  139. package/browser/chunk-4G2HIE3A.js +0 -1
  140. package/browser/chunk-5OS5VELO.js +0 -1
  141. package/browser/chunk-AJCH3WAF.js +0 -1
  142. package/browser/chunk-EH6IO5FW.js +0 -1
  143. package/browser/chunk-FMHXEKSH.js +0 -1
  144. package/browser/chunk-HMER2IC5.js +0 -1
  145. package/browser/chunk-IFQV5GDJ.js +0 -1
  146. package/browser/chunk-JDZEWPPQ.js +0 -1
  147. package/browser/chunk-MDY5R453.js +0 -112
  148. package/browser/chunk-OEEJBHA6.js +0 -1
  149. package/browser/chunk-QU4LPPFI.js +0 -14
  150. package/browser/chunk-RE4ILURJ.js +0 -1
  151. package/browser/chunk-YWGMCAEP.js +0 -3
  152. package/browser/main-XJRM5GZV.js +0 -3
@@ -1 +1 @@
1
- import{a as H,b as rt,c as pt,d as Q}from"./chunk-AEHOTFB4.js";import{a as j}from"./chunk-6774R2EL.js";import{a as U}from"./chunk-MPSML3FA.js";import{N as D,n as ot,o as V,q as at,u as lt,y as ct}from"./chunk-5OS5VELO.js";import{a as O}from"./chunk-ZZGSAFGO.js";import{$a as i,Ab as J,Ac as f,Bb as K,Bc as b,Cc as M,Db as v,Fc as nt,Ib as c,Ja as G,Jb as l,Kb as _,Lb as x,Ma as q,Mb as P,Od as it,Rb as r,Va as g,Wa as z,Wc as et,Xa as S,Yc as w,Zc as L,db as B,dc as Y,ec as p,fc as C,gc as s,gd as y,hc as h,ic as tt,jd as k,ka as I,kb as T,lb as E,na as Z,qb as d,rc as $,ub as R,vb as a,yb as W,zb as X,zc as m}from"./chunk-UXRO4UFY.js";function Pt(n,o){if(n&1&&(x(0),c(1,"div",5)(2,"div",6)(3,"div",11)(4,"span"),p(5),l()()()(),P()),n&2){let t=r(2);i(5),h("",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&&(c(0,"strong"),p(1),l()),n&2){let t=r(3);i(),C(t.data.Customer==null?null:t.data.Customer.ContactDisplay)}}function bt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Customer==null?null:t.data.Customer.Email)}}function Mt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Customer==null?null:t.data.Customer.Phone)}}function ht(n,o){if(n&1&&(c(0,"div"),_(1,"span",10),m(2,"newlines"),l()),n&2){let t=r(3);i(),a("innerHtml",f(2,1,t.data.Customer==null?null:t.data.Customer.Address),g)}}function yt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.CityName)}}function Ot(n,o){if(n&1&&(c(0,"div",12)(1,"div",13)(2,"h4"),_(3,"span",10),l(),d(4,vt,2,1,"strong",2)(5,bt,3,1,"div",2)(6,Mt,3,1,"div",2)(7,ht,3,3,"div",2)(8,yt,3,1,"div",2),l()()),n&2){let t=r(2);i(3),a("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.Customer,g),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible)}}function It(n,o){if(n&1&&(c(0,"strong"),p(1),l()),n&2){let t=r(3);i(),C(t.data.Shipping.Name)}}function St(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.Street)}}function Tt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.Phone)}}function Et(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.City)}}function Rt(n,o){if(n&1&&(c(0,"div"),_(1,"span",10),m(2,"newlines"),l()),n&2){let t=r(3);i(),a("innerHtml",f(2,1,t.data.Shipping==null?null:t.data.Shipping.Description),g)}}function wt(n,o){if(n&1&&(c(0,"div",5)(1,"div",14)(2,"div",11),_(3,"span",10),l(),d(4,It,2,1,"strong",2)(5,St,3,1,"div",2)(6,Tt,3,1,"div",2)(7,Et,3,1,"div",2)(8,Rt,3,3,"div",2),l()()),n&2){let t=r(2);i(3),a("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.ShippingAddress,g),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),i(),a("ngIf",t.data.Shipping.Address),i(),a("ngIf",t.data.Shipping.Phone),i(),a("ngIf",t.data.Shipping.City),i(),a("ngIf",t.data.Shipping.Description)}}function Lt(n,o){if(n&1&&(c(0,"strong"),p(1),l()),n&2){let t=r(3);i(),C(t.data.Shipping.Sender)}}function kt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderAddress)}}function Vt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderPhone)}}function Dt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderCity)}}function Ht(n,o){if(n&1&&(c(0,"div",5)(1,"div",14)(2,"div",11)(3,"span"),p(4,"Ship From :"),l()(),d(5,Lt,2,1,"strong",2)(6,kt,3,1,"div",2)(7,Vt,3,1,"div",2)(8,Dt,3,1,"div",2),l()()),n&2){let t=r(2);i(5),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),i(),a("ngIf",t.data.Shipping.SenderAddress),i(),a("ngIf",t.data.Shipping.SenderPhone),i(),a("ngIf",t.data.Shipping.SenderCity)}}function Nt(n,o){if(n&1&&(x(0),c(1,"div",15)(2,"div",16)(3,"div",17)(4,"span",11),p(5),l()()()(),P()),n&2){let t=r(2);i(5),C(t.data.TypeName)}}function At(n,o){if(n&1&&(c(0,"tbody")(1,"tr"),_(2,"td",23),c(3,"td"),p(4),l(),_(5,"td",23),m(6,"number"),l()()),n&2){let t=o.$implicit,e=o.index;i(2),a("innerHtml",e+1+".",g),i(2),s(" ",t.Name," "),i(),a("innerHtml",f(6,3,t.Quantity),g)}}function Ft(n,o){if(n&1&&(c(0,"div",5)(1,"div",6)(2,"table",18)(3,"thead",19)(4,"tr")(5,"th",20),p(6,"No"),l(),c(7,"th",21),p(8,"Name"),l(),c(9,"th",20),p(10,"Qty"),l()()(),d(11,At,7,5,"tbody",22),l()()()),n&2){let t=r(2);i(11),a("ngForOf",t.data.List)}}function zt(n,o){if(n&1&&(c(0,"div",5)(1,"div",6),_(2,"div",24),m(3,"newlines"),l()()),n&2){let t=r(2);i(2),a("innerHtml",f(3,1,t.data.Invoice.Note),g)}}function Bt(n,o){if(n&1&&(c(0,"div"),d(1,Pt,6,2,"ng-container",2)(2,Ot,9,6,"div",3)(3,wt,9,6,"div",4)(4,Ht,9,4,"div",4)(5,Nt,6,1,"ng-container",2)(6,Ft,12,1,"div",4)(7,zt,4,3,"div",4),c(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"div",9),_(13,"span",10),m(14,"newlines"),l()()()()()()),n&2){let t=r();J("packingslip_container ",t.printTemplate.PrintLX300?"lx300":"",""),i(),a("ngIf",t.constants.IsNotEmpty(t.data==null||t.data.Delivery==null?null:t.data.Delivery.Number)),i(),a("ngIf",!(t.data.Shipping!=null&&t.data.Shipping.Recipient)),i(),a("ngIf",t.data.Shipping),i(),a("ngIf",(t.data.Shipping==null?null:t.data.Shipping.Sender)&&t.config.PrintConfigPackingSlip.ShippingAddressSenderVisible),i(),a("ngIf",t.data.TypeName),i(),a("ngIf",t.config.PrintConfigPackingSlip.ProductTableVisible),i(),a("ngIf",t.config.PrintConfigPackingSlip.RenderInvoiceNote&&(t.data.Invoice==null?null:t.data.Invoice.Note)!=null),i(6),a("innerHtml",f(14,11,t.printTemplate.DeliveryNote),g)}}var N=class n{data;printTemplate;config;stylesheet;constants=O;static \u0275fac=function(t){return new(t||n)};static \u0275cmp=T({type:n,selectors:[["packing-slip"]],inputs:{data:"data",printTemplate:"printTemplate",config:"config",stylesheet:"stylesheet"},standalone:!1,decls:3,vars:4,consts:[["rel","stylesheet"],[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,e){t&1&&(_(0,"link",0),m(1,"StylesheetSafeUrl"),d(2,Bt,15,13,"div",1)),t&2&&(R("href",e.stylesheet!=null&&e.stylesheet.Size8cm?f(1,2,e.stylesheet==null?null:e.stylesheet.Size8cm):null,S),i(2),a("ngIf",e.data&&e.config))},dependencies:[w,L,y,V,H],encapsulation:2})},A=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=E({type:n});static \u0275inj=I({imports:[k,D]})};var Ut=n=>({width:n}),jt=n=>({"align-items-end":n});function Qt(n,o){if(n&1&&_(0,"POS-print-mode",3),n&2){let t=r(2);a("paperPrints",t.paperPrintMode)}}function Zt(n,o){if(n&1&&_(0,"div",44),n&2){let t=r(4);a("innerHTML",t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.FooterLabel==null?null:t.config.PrintConfigInvoice.FooterLabel.CopyLabelText,g)}}function Gt(n,o){n&1&&(c(0,"div",45),p(1," Void "),l())}function qt(n,o){n&1&&(c(0,"div",46),p(1," Return "),l())}function Wt(n,o){if(n&1&&(c(0,"div",40),d(1,Zt,1,1,"div",41)(2,Gt,2,0,"div",42)(3,qt,2,0,"div",43),l()),n&2){let t=r(3);i(),a("ngIf",!t.data.Bin&&!t.data.Retur),i(),a("ngIf",t.data==null?null:t.data.Bin),i(),a("ngIf",t.data==null?null:t.data.Retur)}}function Xt(n,o){if(n&1&&_(0,"img",48),n&2){let t=r(4);W($(3,Ut,t.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth+"px")),a("src",t.printTemplate==null?null:t.printTemplate.Logo,z)}}function Jt(n,o){if(n&1&&(x(0),d(1,Xt,1,5,"img",47),P()),n&2){let t=r(3);i(),a("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function Kt(n,o){if(n&1&&_(0,"img",48),n&2){let t=r(4);a("src",t.printTemplate==null?null:t.printTemplate.Logo,z)}}function Yt(n,o){if(n&1&&d(0,Kt,1,1,"img",49),n&2){let t=r(3);a("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function tn(n,o){if(n&1&&_(0,"span",12),n&2){let t=r(3);a("innerHTML",t.data==null?null:t.data.RegisterCode,g)}}function nn(n,o){if(n&1&&(c(0,"span"),p(1),l()),n&2){let t=r(4);i(),s(" - ",t.data==null||t.data.Customer==null?null:t.data.Customer.Code,"")}}function en(n,o){if(n&1&&(c(0,"h6",50)(1,"span"),p(2),l(),d(3,nn,2,1,"span",17),l()),n&2){let t=r(3);i(2),h("",t.data==null||t.data.Customer==null?null:t.data.Customer.Title," ",t.data.Customer==null?null:t.data.Customer.Name,""),i(),a("ngIf",(t.data==null||t.data.Customer==null?null:t.data.Customer.Code)&&t.config.PrintConfigInvoice.DocumentVisibility.CustomerCodeVisible)}}function on(n,o){if(n&1&&_(0,"h6",51),n&2){let t=r(3);a("innerHTML",t.data.Customer==null?null:t.data.Customer.NationalIDNumber,g)}}function an(n,o){if(n&1&&(_(0,"p",52),m(1,"newlines")),n&2){let t=r(3);a("innerHTML",f(1,1,t.data.Customer==null?null:t.data.Customer.Address),g)}}function ln(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"limitTo"),l()),n&2){let t=r(3);i(),s(" ",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility==3?"*****"+M(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 cn(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"limitTo"),l()),n&2){let t=r(3);i(),s(" ",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility==3?"*****"+M(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 rn(n,o){if(n&1&&_(0,"p",53),n&2){let t=r(3);a("innerHTML",t.data.Customer==null?null:t.data.Customer.Email,g)}}function pn(n,o){if(n&1&&(c(0,"h2",54),p(1),l()),n&2){let t=r(3);X(t.data.PaymentState==2?"text-warning":"text-danger"),i(),s(" ",t.data.PaymentState==2?"PARTIAL":t.config.PrintConfigInvoice.DocumentLabel.BillLabel," ")}}function dn(n,o){if(n&1&&(c(0,"h2",20),p(1),l()),n&2){let t=r(3);i(),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 mn(n,o){if(n&1&&(x(0),c(1,"h3",54),p(2),l(),P()),n&2){let t=r(3);i(2),C(t.data==null?null:t.data.ParkLabel)}}function _n(n,o){if(n&1&&(c(0,"div",21),p(1),l()),n&2){let t=r(3);i(),s("Cashier : ",t.data.Creator,"")}}function sn(n,o){n&1&&(c(0,"div",55)(1,"div",56),p(2,"SERVER ERROR!"),l(),c(3,"div",57)(4,"a",58),p(5," status.dealpos.com "),l()(),c(6,"div"),p(7,"Please check if order is uploaded successfully"),l()())}function gn(n,o){n&1&&(c(0,"div",59),p(1," OFFLINE ORDER "),l())}function Cn(n,o){if(n&1&&d(0,gn,2,0,"div",59),n&2){let t=r(4);v(t.isOffline?0:-1)}}function fn(n,o){if(n&1&&d(0,sn,8,0,"div",55)(1,Cn,1,1),n&2){let t=r(3);v(t.isUnknownError==!0?0:1)}}function un(n,o){if(n&1&&(x(0),_(1,"div",12),P()),n&2){let t=r(4);i(),a("innerHTML",t.data.HeaderTitle,g)}}function xn(n,o){if(n&1&&(c(0,"div",60),d(1,un,2,1,"ng-container",17),_(2,"div",12),l()),n&2){let t=r(3);i(),a("ngIf",t.data.HeaderTitle),i(),a("innerHTML",t.data.Number,g)}}function Pn(n,o){if(n&1&&(x(0),p(1),P()),n&2){let t=r().index;i(),s(" ",t+1,". ")}}function vn(n,o){if(n&1&&(x(0),_(1,"app-serial-note",70),P()),n&2){let t=r().$implicit;i(),a("serials",t.Serial)}}function bn(n,o){if(n&1&&(c(0,"div",71)(1,"i",72),p(2),l()()),n&2){let t=r().$implicit;i(2),s(" sold by ",t.SalesName," ")}}function Mn(n,o){if(n&1&&(_(0,"small",74),m(1,"newlines")),n&2){let t=r(2).$implicit;a("innerHTML",f(1,1,t.Note),g)}}function hn(n,o){if(n&1&&(x(0),d(1,Mn,2,3,"small",73),P()),n&2){let t=r().$implicit,e=r(3);i(),a("ngIf",t.Note&&e.config.PrintConfigInvoice.ItemsTable.NoteItemVisible)}}function yn(n,o){if(n&1&&(c(0,"span",77),p(1),l()),n&2){let t=r(2).$implicit;i(),s(" ",t.Taxable?"V":"N"," ")}}function On(n,o){if(n&1&&(c(0,"span",77),p(1),l()),n&2){let t=r(2).$implicit,e=r(3);i(),s(" ",t.Taxable?e.config.PrintConfigInvoice.ItemsTable.TaxableLabel:"N"," ")}}function In(n,o){if(n&1&&(c(0,"div",75),d(1,yn,2,1,"span",76)(2,On,2,1,"span",76),l()),n&2){let t=r(4);i(),a("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel==""||t.config.PrintConfigInvoice.ItemsTable.TaxableLabel=="Taxable"),i(),a("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!=""&&t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!="Taxable")}}function Sn(n,o){if(n&1&&(c(0,"span",78),p(1),m(2,"number"),l()),n&2){let t=r().$implicit,e=r(3);i(),tt(" ",b(2,3,t.Quantity,"1.0-4")," ",e.config.PrintConfigInvoice.ItemsTable.UOMVisible?t.Variant.UOMName:""," ",t.UnitQuantity!=1?" x "+t.UnitQuantity:""," ")}}function Tn(n,o){if(n&1&&(x(0),c(1,"span",81),p(2),m(3,"number"),l(),P()),n&2){let t=r(3).$implicit;i(2),C(f(3,1,t==null?null:t.UnitPriceOriginal))}}function En(n,o){if(n&1&&(x(0),d(1,Tn,4,3,"ng-container",17),P()),n&2){let t=r(2).$implicit;i(),a("ngIf",(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))}}function Rn(n,o){if(n&1&&(x(0),c(1,"span",79),p(2,"x"),l(),c(3,"span",80),d(4,En,2,1,"ng-container",17),p(5),m(6,"number"),l(),P()),n&2){let t=r().$implicit,e=r(3);i(4),a("ngIf",e.config.ModuleSell==null||e.config.ModuleSell.Promotion==null?null:e.config.ModuleSell.Promotion.StrikethroughOriginalPrice),i(),s(" ",f(6,2,t.Price)," ")}}function wn(n,o){if(n&1&&(x(0),c(1,"i",82),p(2),m(3,"number"),l(),P()),n&2){let t=r().$implicit;i(2),s(" ","-"+f(3,1,t.Discount)+"%"," ")}}function Ln(n,o){if(n&1&&(x(0),c(1,"i",83),p(2),m(3,"number"),l(),P()),n&2){let t=r().$implicit;i(2),s(" ","-"+f(3,1,t.DiscountAmount)," ")}}function kn(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"number"),m(3,"TrailingZero"),l()),n&2){let t=r().$implicit,e=r(3);i(),s(" ",b(3,3,f(2,1,(1-t.Discount/100)*t.Price*t.Quantity*t.UnitQuantity-t.DiscountAmount*t.Quantity),e.config.PrintConfigGeneral.TrailingZero)," ")}}function Vn(n,o){if(n&1&&(c(0,"div",61)(1,"div",21)(2,"div",62)(3,"div"),d(4,Pn,2,1,"ng-container",17),p(5),l(),d(6,vn,2,1,"ng-container",17)(7,bn,3,1,"div",63)(8,hn,2,1,"ng-container",17),l(),d(9,In,3,2,"div",64),l(),c(10,"div",65)(11,"div",66)(12,"div",67),d(13,Sn,3,6,"span",68)(14,Rn,7,4,"ng-container",17)(15,wn,4,3,"ng-container",17)(16,Ln,4,3,"ng-container",17),l()(),c(17,"div",69),d(18,kn,4,6,"span",17),l()()()),n&2){let t=o.$implicit,e=r(3);i(4),a("ngIf",e.config.ModuleSell.Grid.RowNumberVisible),i(),h(" ",t.Variant.Name," ",t.Variant.Code&&e.config.PrintConfigInvoice.ItemsTable.CodeVisible?" - "+t.Variant.Code:""," "),i(),a("ngIf",t.Serial&&(t.Serial==null?null:t.Serial.length)>0),i(),a("ngIf",t.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),a("ngIf",t.Note),i(),a("ngIf",e.config.PrintConfigInvoice.ItemsTable.TaxableVisible),i(),a("ngClass",$(13,jt,(e.config.ModuleSell==null||e.config.ModuleSell.Promotion==null?null:e.config.ModuleSell.Promotion.StrikethroughOriginalPrice)&&(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))),i(3),a("ngIf",e.config.PrintConfigInvoice.ItemsTable.QuantityVisible),i(),a("ngIf",e.amountVisible&&!e.priceVisibleRestriction),i(),a("ngIf",t.Discount!=0&&e.amountVisible),i(),a("ngIf",t.DiscountAmount!=0&&e.amountVisible),i(2),a("ngIf",e.amountVisible&&!e.priceVisibleRestriction)}}function Dn(n,o){if(n&1&&(c(0,"span")(1,"span"),p(2),l()()),n&2){let t=r().$implicit;i(2),s("",t.Label," :")}}function Hn(n,o){if(n&1&&(c(0,"span"),p(1),l()),n&2){let t=r().$implicit;i(),s("",t.CurrencySymbol," ")}}function Nn(n,o){if(n&1&&(c(0,"div",85),m(1,"Filter"),c(2,"div",86),p(3),d(4,Dn,3,1,"span"),l(),c(5,"div",87)(6,"div",88)(7,"div",89),d(8,Hn,2,1,"span",17),l(),c(9,"div",90)(10,"span"),p(11),m(12,"number"),m(13,"TrailingZero"),l()()()()()),n&2){let t=o.$implicit,e=o.index,u=r(4);a("ngClass",e==M(1,7,u.data.AmountSummary,1,"Type").length-1?"pb-2":""),i(2),a("ngClass",e==1?"border-top":""),i(),s(" ",e==0&&t.Label=="Amount"?u.totalItemsLabel+" :":""," "),i(),v(e!=0||t.Label!="Amount"?4:-1),i(),a("ngClass",e==1?"border-top":""),i(3),a("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(3),C(b(13,13,f(12,11,t.Amount),u.config.PrintConfigGeneral.TrailingZero))}}function An(n,o){if(n&1&&(c(0,"div",84),d(1,Nn,14,16,"div",28),m(2,"Filter"),l()),n&2){let t=r(3);i(),a("ngForOf",M(2,1,t.data.AmountSummary,1,"Type"))}}function Fn(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"limitTo"),l()),n&2){let t=r().$implicit,e=r(4);i(),s(" ",e.config.PrintConfigInvoice.DocumentVisibility.PaymentCode==3?"- ***"+M(2,1,t.Code,4,t.Code.length-4):"- "+t.Code," ")}}function zn(n,o){if(n&1&&_(0,"div",12),n&2){let t=r().$implicit;a("innerHTML",t.Note,g)}}function Bn(n,o){if(n&1&&(c(0,"span",89),p(1),l()),n&2){let t=r(5);i(),C(t.data.CurrencySymbol)}}function $n(n,o){if(n&1&&(c(0,"div",92)(1,"div",93),p(2),d(3,Fn,3,5,"span",17)(4,zn,1,1,"div",12),l(),c(5,"div",94),d(6,Bn,2,1,"span",95),c(7,"span",90),p(8),m(9,"TrailingZero"),l()()()),n&2){let t=o.$implicit,e=o.index,u=r(4);a("hidden",t.Amount==0),i(2),s(" ",u.config.PrintConfigInvoice.Footer.PaymentMethodVisible?t.MethodName:u.data.Payments.length!=1?"Payment":"Payment "+(e+1)," "),i(),a("ngIf",t.Code&&u.config.PrintConfigInvoice.DocumentVisibility.PaymentCode!=1),i(),v(!(u.config==null||u.config.PrintConfigInvoice==null||u.config.PrintConfigInvoice.DocumentVisibility==null)&&u.config.PrintConfigInvoice.DocumentVisibility.PaymentNoteVisible&&t.Note?4:-1),i(2),a("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),s(" ",b(9,6,u.change>0?t.PaidAmount:t.Amount,u.config.PrintConfigGeneral.TrailingZero),"")}}function Un(n,o){if(n&1&&(c(0,"div"),d(1,$n,10,9,"div",91),l()),n&2){let t=r(3);i(),a("ngForOf",t.data.Payments)}}function jn(n,o){if(n&1&&(c(0,"span",89),p(1),l()),n&2){let t=r(4);i(),C(t.currencyChange)}}function Qn(n,o){if(n&1&&(c(0,"div",96)(1,"div",97),p(2,"Change :"),l(),c(3,"div",94),d(4,jn,2,1,"span",95),c(5,"span",90),p(6),m(7,"TrailingZero"),l()()()),n&2){let t=r(3);i(4),a("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),s(" ",b(7,2,t.change,t.config.PrintConfigGeneral.TrailingZero),"")}}function Zn(n,o){if(n&1&&(c(0,"span",89),p(1),l()),n&2){let t=r(4);i(),C(t.data.CurrencySymbol)}}function Gn(n,o){if(n&1&&(c(0,"div",96)(1,"div",97),p(2),l(),c(3,"div",94),d(4,Zn,2,1,"span",95),c(5,"span",90),p(6),m(7,"TrailingZero"),l()()()),n&2){let t=r(3);i(2),s("",t.remainingLabel,":"),i(2),a("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),C(b(7,3,t.diff,t.config.PrintConfigGeneral.TrailingZero))}}function qn(n,o){if(n&1&&(c(0,"span"),p(1),l()),n&2){let t=r().$implicit;i(),s("",t.CurrencySymbol," ")}}function Wn(n,o){if(n&1&&(c(0,"div",85)(1,"div",98),p(2),l(),c(3,"div",99)(4,"div",88)(5,"div",89),d(6,qn,2,1,"span",17),l(),c(7,"div",90)(8,"span"),p(9),m(10,"number"),m(11,"TrailingZero"),l()()()()()),n&2){let t=o.$implicit,e=o.index,u=r(3);a("ngClass",e==0?"border-top pt-2":""),i(2),s("",t.Label," :"),i(4),a("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(3),C(b(11,6,f(10,4,t.Amount),u.config.PrintConfigGeneral.TrailingZero))}}function Xn(n,o){if(n&1&&(x(0),c(1,"strong",100),p(2),l(),_(3,"span",101),P()),n&2){let t=r(3);i(2),s(" ",t.config.LoyaltyLabel?t.config.LoyaltyLabel:"Loyalty Point"," "),i(),a("innerHTML",t.data.LoyaltyPoint,g)}}function Jn(n,o){n&1&&(c(0,"h6",102),p(1," Coupon "),l())}function Kn(n,o){if(n&1&&(c(0,"span",103),p(1),m(2,"limitTo"),l()),n&2){let t=r(3);i(),s(" ",t.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon==3?"***"+M(2,1,t.data.Coupon,3,t.data.Coupon.length-3):t.data.Coupon," ")}}function Yn(n,o){n&1&&(c(0,"h6",102),p(1,"ToP"),l())}function te(n,o){if(n&1&&_(0,"span",101),n&2){let t=r(4);a("innerHTML",t.data.Due,g)}}function ne(n,o){if(n&1&&(c(0,"span",103),p(1),l()),n&2){let t=r(4);i(),s("- ",t.top," Days")}}function ee(n,o){if(n&1&&(c(0,"div",30),d(1,Yn,2,0,"h6",31)(2,te,1,1,"span",104)(3,ne,2,1,"span",32),l()),n&2){let t=r(3);i(),a("ngIf",t.data.ToP),i(),a("ngIf",t.data.ToP),i(),a("ngIf",t.data.ToP)}}function ie(n,o){if(n&1&&(c(0,"h6",102),p(1),l()),n&2){let t=r(3);i(),s(" ",t.config.PrintConfigInvoice.DocumentLabel.SalesPerson," ")}}function oe(n,o){if(n&1&&(c(0,"p"),p(1),l()),n&2){let t=r(3);i(),s(" ",t.data==null?null:t.data.SalesName," ")}}function ae(n,o){n&1&&(c(0,"h6",102),p(1," Note "),l())}function le(n,o){if(n&1&&(_(0,"p",12),m(1,"newlines")),n&2){let t=r(3);a("innerHTML",f(1,1,t.data==null?null:t.data.ExtraNote),g)}}function ce(n,o){n&1&&(c(0,"h6",105),p(1," Note "),l())}function re(n,o){if(n&1&&(_(0,"p",106),m(1,"newlines")),n&2){let t=r(3);a("innerHTML",f(1,1,t.data==null?null:t.data.InvoiceNote),g)}}function pe(n,o){if(n&1&&(c(0,"p",107),p(1),l()),n&2){let t=r(3);i(),s(" Printed : ",t.data==null?null:t.data.PrintDate," ")}}function de(n,o){if(n&1&&(c(0,"p",107),p(1),l()),n&2){let t=r(3);i(),s(" Created : ",t.data==null?null:t.data.Created," ")}}function me(n,o){if(n&1&&(c(0,"div",39)(1,"p",107),p(2),l()()),n&2){let t=r(3);i(2),s("Trace ID : ",t.data==null?null:t.data.InvoiceID,"")}}function _e(n,o){if(n&1&&(c(0,"div"),_(1,"div",108)(2,"packing-slip",109),l()),n&2){let t=r(3);i(2),a("data",t.data)("printTemplate",t.printTemplate)("config",t.config)}}function se(n,o){if(n&1&&(c(0,"div"),d(1,Wt,4,3,"div",6),c(2,"div",7),d(3,Jt,2,1,"ng-container",8)(4,Yt,1,1,"ng-template",null,0,nt),l(),c(6,"div",7),_(7,"h2",9)(8,"i",10),c(9,"p",11),_(10,"span",12),m(11,"newlines"),_(12,"br"),d(13,tn,1,1,"span",13),_(14,"br")(15,"span",12),m(16,"newlines"),l(),d(17,en,4,3,"h6",14)(18,on,1,1,"h6",15)(19,an,2,3,"p",16)(20,ln,3,5,"span",17)(21,cn,3,5,"span",17)(22,rn,1,1,"p",18),l(),d(23,pn,2,3,"h2",19)(24,dn,2,1,"h2",20)(25,mn,3,1,"ng-container",17)(26,_n,2,1,"div",21)(27,fn,2,1),c(28,"div",22),d(29,xn,3,2,"div",23),c(30,"div",24)(31,"div"),p(32),l()()(),d(33,Vn,19,15,"div",25)(34,An,3,5,"div",26)(35,Un,2,1,"div",17)(36,Qn,8,5,"div",27)(37,Gn,8,6,"div",27)(38,Wn,12,9,"div",28),m(39,"Filter"),c(40,"div",29)(41,"div",30),d(42,Xn,4,2,"ng-container",17)(43,Jn,2,0,"h6",31)(44,Kn,3,5,"span",32),l(),d(45,ee,4,3,"div",33),l(),c(46,"div",34),d(47,ie,2,1,"h6",31)(48,oe,2,1,"p",17)(49,ae,2,0,"h6",31)(50,le,2,3,"p",13)(51,ce,2,0,"h6",35)(52,re,2,3,"p",36),l(),_(53,"p",12),m(54,"SafeHtml"),c(55,"div",7),d(56,pe,2,1,"p",37),l(),c(57,"div",38),d(58,de,2,1,"p",37),l(),d(59,me,3,1,"div",39)(60,_e,3,3,"div",17),l()),n&2){let t=Y(5),e=r(2);K("print_container invoice_mini ",e.printTemplate!=null&&e.printTemplate.PrintLX300?"lx300":""," ",e.printTemplate==null?null:e.printTemplate.CssClass," box mt-5"),i(),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.Footer==null?null:e.config.PrintConfigInvoice.Footer.CopyLabelEnabled)&&!(e.printTemplate!=null&&e.printTemplate.PrintLX300)&&(e.data==null?null:e.data.PrintCopyLabel)),i(2),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.LogoConfig==null?null:e.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth)>0)("ngIfElse",t),i(4),a("innerHTML",e.printTemplate==null?null:e.printTemplate.Title,g),i(),a("innerHTML",e.printTemplate==null?null:e.printTemplate.Field,g),i(2),a("innerHTML",f(11,46,e.printTemplate==null?null:e.printTemplate.Address),g),i(3),a("ngIf",e.config==null||e.config.PrintConfigInvoice==null?null:e.config.PrintConfigInvoice.DocumentVisibility.RegisterCode),i(2),a("innerHTML",f(16,48,e.printTemplate==null?null:e.printTemplate.ContactInfo),g),i(2),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Name)),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.NationalIDNumber)&&e.config.PrintConfigInvoice.DocumentVisibility.IdentificationVisible),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Address)&&e.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Phone)&&e.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1&&(e.data.Customer==null?null:e.data.Customer.Phone)!==null),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Mobile)&&e.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1&&(e.data.Customer==null?null:e.data.Customer.Phone)==null&&(e.data.Customer==null?null:e.data.Customer.Mobile)!==null),i(),a("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),i(),v(e.data.PaymentState<3?23:-1),i(),v(e.data.Retur&&(!(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.Header==null)&&e.config.PrintConfigInvoice.Header.SalesReturnLabel)?24:-1),i(),a("ngIf",e.data.PaymentState==1),i(),v(e.data.Creator&&e.config.PrintConfigInvoice.Footer.CreatorVisiblePosition!=1?26:-1),i(),v(!(e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null)&&e.config.PrintConfigInvoice.DocumentVisibility.WritePrintOffline?27:-1),i(2),a("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.NumberVisible),i(3),C(e.data.Date),i(),a("ngForOf",e.data.Items),i(),a("ngIf",e.amountVisible&&!e.priceVisibleRestriction),i(),a("ngIf",(e.data.Payments.length>0||!(e.change>0)||e.diff>0)&&e.amountVisible),i(),a("ngIf",e.change>0&&e.amountVisible),i(),a("ngIf",e.diff>0&&!e.hasSurcharge&&e.amountVisible),i(),a("ngForOf",M(39,50,e.data.AmountSummary,2,"Type")),i(4),a("ngIf",e.config.PrintConfigInvoice.Footer.ShowLoyaltyPoint&&e.data.LoyaltyPoint),i(),a("ngIf",e.data.Coupon&&e.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),i(),a("ngIf",e.data.Coupon&&e.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),i(),a("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.InvoicePaymentTermsVisible&&e.data.PaymentState<3&&e.data.Payments.length==0),i(2),a("ngIf",e.data.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),a("ngIf",e.data.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),a("ngIf",(e.data==null?null:e.data.ExtraNote)&&e.config.PrintConfigInvoice.Footer.ParkNoteVisible),i(),a("ngIf",e.data.ExtraNote&&e.config.PrintConfigInvoice.Footer.ParkNoteVisible),i(),a("ngIf",(e.data==null?null:e.data.InvoiceNote)&&e.config.PrintConfigInvoice.Footer.NoteVisible),i(),a("ngIf",e.data.InvoiceNote&&e.config.PrintConfigInvoice.Footer.NoteVisible),i(),a("innerHTML",f(54,54,e.printTemplate!=null&&e.printTemplate.FooterLeft?e.printTemplate==null?null:e.printTemplate.FooterLeft:""),g),i(3),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null?null:e.config.PrintConfigInvoice.DocumentVisibility.CustomerEntryTimeVisible)&&e.data.PrintDate),i(2),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null?null:e.config.PrintConfigInvoice.DocumentVisibility.InvoiceCreatedTimeVisible)&&e.data.Created),i(),v(e.isOffline==!1&&(e.data!=null&&e.data.InvoiceID)&&(!(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null)&&e.config.PrintConfigInvoice.DocumentVisibility.TraceID)?59:-1),i(),a("ngIf",e.config==null||e.config.PrintConfigInvoice==null?null:e.config.PrintConfigInvoice.DocumentVisibility.PrintPackingslipAftersell)}}function ge(n,o){if(n&1&&(x(0),_(1,"qr-code",111),P()),n&2){let t=r(3);i(),a("value",t.data.QRContent)("size",250)}}function Ce(n,o){if(n&1&&(c(0,"div",110),d(1,ge,2,2,"ng-container",17),l()),n&2){let t=r(2);i(),a("ngIf",(t.config==null||t.config.PrintConfigInvoice==null?null:t.config.PrintConfigInvoice.InvoiceQR.TransformTo)==t.invoiceQR.QRCode)}}function fe(n,o){if(n&1&&(_(0,"link",2),m(1,"StylesheetSafeUrl"),d(2,Qt,1,1,"POS-print-mode",3)(3,se,61,56,"div",4)(4,Ce,2,1,"div",5)),n&2){let t=r();R("href",t.stylesheet!=null&&t.stylesheet.Size8cm?f(1,4,t.stylesheet==null?null:t.stylesheet.Size8cm):null,S),i(2),v(t.receiptParam?2:-1),i(),a("ngIf",t.data),i(),a("ngIf",(t.config==null||t.config.PrintConfigInvoice==null?null:t.config.PrintConfigInvoice.InvoiceQR.TransformTo)!=t.invoiceQR.None)}}function ue(n,o){n&1&&(c(0,"div",1)(1,"div",112)(2,"h1"),p(3," Cannot generate print preview because of client-server displaying different / mismatch items in invoice "),l()()())}var _t=(e=>(e[e.None=1]="None",e[e.Barcode=2]="Barcode",e[e.QRCode=3]="QRCode",e))(_t||{}),dt=class n{constructor(o,t){this.activeRoute=o;this.decimalPipe=t}printService=Z(Q);data;outletInfo;printTemplate;config;emailVisibleRestriction;priceVisibleRestriction;receiptParam;isUnknownError=!1;isOffline=!1;stylesheet;saveLastPrintDate=G(!1);invoiceQR=_t;paperPrintMode;printModeType;customerVisible;amountVisible;diff;change=0;currencyChange;totalItemsLabel;hasSurcharge;top;remainingLabel;totalItemLength=q(0);ngOnInit(){this.initRemainingLabel(),this.generateItemLabel(),this.checkAmountSummary(),this.checkSurcharge(),this.calculatePrintPrice(),this.prepareSalesCommission(),this.initPaperModeConfig(),this.parseTop(),this.initPrintListener()}initPrintListener(){this.saveLastPrintDate()&&window.addEventListener("afterprint",this.handleAfterPrint)}handleAfterPrint=()=>{let o=this.data?.ID;O.IsNotEmpty(o)&&this.printService.updateLastPrintDateTime(o).subscribe()};ngOnDestroy(){this.saveLastPrintDate()&&window.removeEventListener("afterprint",this.handleAfterPrint)}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.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(e=>{o+=e.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(e=>{o+=e.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 F of this.data.Items)(this.config?.PrintConfigInvoice?.ItemsTable?.NonInventoryCount||F.Variant.TypeID!=2)&&(o+=F.Quantity);this.totalItemLength.set(t);let e=o>1?"s":"",u=this.decimalPipe.transform(o,"1.0-4").toString(),st=this.config.PrintConfigInvoice?.ItemsFooter?.TotalQuantityVisible;this.totalItemsLabel=`Total (Item${e}: ${t}${st?`, Qty: ${u})`:")"}`}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(e=>e.ID==o);return O.IsNotEmpty(t)?t.Name:""}static \u0275fac=function(t){return new(t||n)(B(it),B(y))};static \u0275cmp=T({type:n,selectors:[["pos-receipt"]],inputs:{data:"data",outletInfo:"outletInfo",printTemplate:"printTemplate",config:"config",emailVisibleRestriction:"emailVisibleRestriction",priceVisibleRestriction:"priceVisibleRestriction",receiptParam:"receiptParam",isUnknownError:"isUnknownError",isOffline:"isOffline",stylesheet:"stylesheet",saveLastPrintDate:[1,"saveLastPrintDate"]},standalone:!1,decls:2,vars:1,consts:[["DEFAULTWIDTH",""],[1,"print_container"],["rel","stylesheet"],["paperType","mini",1,"d-print-none",3,"paperPrints"],[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"],[1,"text-center","m-0","p-1",3,"class"],[1,"text-center","m-0","p-1","text-warning"],[1,"row","g-0"],[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,"text-center","mt-3","trace-id"],[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,"text-center","my-3","text-danger"],[1,"fw-bold","fs-4"],[1,"my-1"],["target","_blank","href","https://status.dealpos.com"],[1,"fs-5","text-danger","fw-bold","text-center","mt-1"],[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"],[1,"print-error-message"]],template:function(t,e){t&1&&d(0,fe,5,6)(1,ue,4,0,"div",1),t&2&&v(e.totalItemLength()==(e.data==null||e.data.Items==null?null:e.data.Items.length)&&e.data?0:1)},dependencies:()=>[et,w,L,N,rt,j,U,y,ot,V,at,lt,ct,H],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}.print_container[_ngcontent-%COMP%] > div.print-error-message[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:100vh;text-align:center}.print_container[_ngcontent-%COMP%] > div.print-error-message[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#dc3545!important;font-weight:500}"]})},mt=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=E({type:n});static \u0275inj=I({providers:[Q],imports:[k,D,A,pt,j,U]})};export{N as a,A as b,dt as c,mt as d};
1
+ import{a as H,b as rt,c as pt,d as Q}from"./chunk-IAZFUBFX.js";import{a as j}from"./chunk-6774R2EL.js";import{a as U}from"./chunk-MPSML3FA.js";import{N as D,n as ot,o as V,q as at,u as lt,y as ct}from"./chunk-TSIYPTYI.js";import{a as O}from"./chunk-ZZGSAFGO.js";import{$a as i,Ab as J,Ac as f,Bb as K,Bc as b,Cc as M,Db as v,Fc as nt,Ib as c,Ja as G,Jb as l,Kb as _,Lb as x,Ma as q,Mb as P,Od as it,Rb as r,Va as g,Wa as z,Wc as et,Xa as S,Yc as w,Zc as L,db as B,dc as Y,ec as p,fc as C,gc as s,gd as y,hc as h,ic as tt,jd as k,ka as I,kb as T,lb as E,na as Z,qb as d,rc as $,ub as R,vb as a,yb as W,zb as X,zc as m}from"./chunk-UXRO4UFY.js";function Pt(n,o){if(n&1&&(x(0),c(1,"div",5)(2,"div",6)(3,"div",11)(4,"span"),p(5),l()()()(),P()),n&2){let t=r(2);i(5),h("",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&&(c(0,"strong"),p(1),l()),n&2){let t=r(3);i(),C(t.data.Customer==null?null:t.data.Customer.ContactDisplay)}}function bt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Customer==null?null:t.data.Customer.Email)}}function Mt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Customer==null?null:t.data.Customer.Phone)}}function ht(n,o){if(n&1&&(c(0,"div"),_(1,"span",10),m(2,"newlines"),l()),n&2){let t=r(3);i(),a("innerHtml",f(2,1,t.data.Customer==null?null:t.data.Customer.Address),g)}}function yt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.CityName)}}function Ot(n,o){if(n&1&&(c(0,"div",12)(1,"div",13)(2,"h4"),_(3,"span",10),l(),d(4,vt,2,1,"strong",2)(5,bt,3,1,"div",2)(6,Mt,3,1,"div",2)(7,ht,3,3,"div",2)(8,yt,3,1,"div",2),l()()),n&2){let t=r(2);i(3),a("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.Customer,g),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible)}}function It(n,o){if(n&1&&(c(0,"strong"),p(1),l()),n&2){let t=r(3);i(),C(t.data.Shipping.Name)}}function St(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.Street)}}function Tt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.Phone)}}function Et(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.City)}}function Rt(n,o){if(n&1&&(c(0,"div"),_(1,"span",10),m(2,"newlines"),l()),n&2){let t=r(3);i(),a("innerHtml",f(2,1,t.data.Shipping==null?null:t.data.Shipping.Description),g)}}function wt(n,o){if(n&1&&(c(0,"div",5)(1,"div",14)(2,"div",11),_(3,"span",10),l(),d(4,It,2,1,"strong",2)(5,St,3,1,"div",2)(6,Tt,3,1,"div",2)(7,Et,3,1,"div",2)(8,Rt,3,3,"div",2),l()()),n&2){let t=r(2);i(3),a("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.ShippingAddress,g),i(),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),i(),a("ngIf",t.data.Shipping.Address),i(),a("ngIf",t.data.Shipping.Phone),i(),a("ngIf",t.data.Shipping.City),i(),a("ngIf",t.data.Shipping.Description)}}function Lt(n,o){if(n&1&&(c(0,"strong"),p(1),l()),n&2){let t=r(3);i(),C(t.data.Shipping.Sender)}}function kt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderAddress)}}function Vt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderPhone)}}function Dt(n,o){if(n&1&&(c(0,"div")(1,"span"),p(2),l()()),n&2){let t=r(3);i(2),C(t.data.Shipping==null?null:t.data.Shipping.SenderCity)}}function Ht(n,o){if(n&1&&(c(0,"div",5)(1,"div",14)(2,"div",11)(3,"span"),p(4,"Ship From :"),l()(),d(5,Lt,2,1,"strong",2)(6,kt,3,1,"div",2)(7,Vt,3,1,"div",2)(8,Dt,3,1,"div",2),l()()),n&2){let t=r(2);i(5),a("ngIf",t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible),i(),a("ngIf",t.data.Shipping.SenderAddress),i(),a("ngIf",t.data.Shipping.SenderPhone),i(),a("ngIf",t.data.Shipping.SenderCity)}}function Nt(n,o){if(n&1&&(x(0),c(1,"div",15)(2,"div",16)(3,"div",17)(4,"span",11),p(5),l()()()(),P()),n&2){let t=r(2);i(5),C(t.data.TypeName)}}function At(n,o){if(n&1&&(c(0,"tbody")(1,"tr"),_(2,"td",23),c(3,"td"),p(4),l(),_(5,"td",23),m(6,"number"),l()()),n&2){let t=o.$implicit,e=o.index;i(2),a("innerHtml",e+1+".",g),i(2),s(" ",t.Name," "),i(),a("innerHtml",f(6,3,t.Quantity),g)}}function Ft(n,o){if(n&1&&(c(0,"div",5)(1,"div",6)(2,"table",18)(3,"thead",19)(4,"tr")(5,"th",20),p(6,"No"),l(),c(7,"th",21),p(8,"Name"),l(),c(9,"th",20),p(10,"Qty"),l()()(),d(11,At,7,5,"tbody",22),l()()()),n&2){let t=r(2);i(11),a("ngForOf",t.data.List)}}function zt(n,o){if(n&1&&(c(0,"div",5)(1,"div",6),_(2,"div",24),m(3,"newlines"),l()()),n&2){let t=r(2);i(2),a("innerHtml",f(3,1,t.data.Invoice.Note),g)}}function Bt(n,o){if(n&1&&(c(0,"div"),d(1,Pt,6,2,"ng-container",2)(2,Ot,9,6,"div",3)(3,wt,9,6,"div",4)(4,Ht,9,4,"div",4)(5,Nt,6,1,"ng-container",2)(6,Ft,12,1,"div",4)(7,zt,4,3,"div",4),c(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"div",9),_(13,"span",10),m(14,"newlines"),l()()()()()()),n&2){let t=r();J("packingslip_container ",t.printTemplate.PrintLX300?"lx300":"",""),i(),a("ngIf",t.constants.IsNotEmpty(t.data==null||t.data.Delivery==null?null:t.data.Delivery.Number)),i(),a("ngIf",!(t.data.Shipping!=null&&t.data.Shipping.Recipient)),i(),a("ngIf",t.data.Shipping),i(),a("ngIf",(t.data.Shipping==null?null:t.data.Shipping.Sender)&&t.config.PrintConfigPackingSlip.ShippingAddressSenderVisible),i(),a("ngIf",t.data.TypeName),i(),a("ngIf",t.config.PrintConfigPackingSlip.ProductTableVisible),i(),a("ngIf",t.config.PrintConfigPackingSlip.RenderInvoiceNote&&(t.data.Invoice==null?null:t.data.Invoice.Note)!=null),i(6),a("innerHtml",f(14,11,t.printTemplate.DeliveryNote),g)}}var N=class n{data;printTemplate;config;stylesheet;constants=O;static \u0275fac=function(t){return new(t||n)};static \u0275cmp=T({type:n,selectors:[["packing-slip"]],inputs:{data:"data",printTemplate:"printTemplate",config:"config",stylesheet:"stylesheet"},standalone:!1,decls:3,vars:4,consts:[["rel","stylesheet"],[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,e){t&1&&(_(0,"link",0),m(1,"StylesheetSafeUrl"),d(2,Bt,15,13,"div",1)),t&2&&(R("href",e.stylesheet!=null&&e.stylesheet.Size8cm?f(1,2,e.stylesheet==null?null:e.stylesheet.Size8cm):null,S),i(2),a("ngIf",e.data&&e.config))},dependencies:[w,L,y,V,H],encapsulation:2})},A=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=E({type:n});static \u0275inj=I({imports:[k,D]})};var Ut=n=>({width:n}),jt=n=>({"align-items-end":n});function Qt(n,o){if(n&1&&_(0,"POS-print-mode",3),n&2){let t=r(2);a("paperPrints",t.paperPrintMode)}}function Zt(n,o){if(n&1&&_(0,"div",44),n&2){let t=r(4);a("innerHTML",t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.FooterLabel==null?null:t.config.PrintConfigInvoice.FooterLabel.CopyLabelText,g)}}function Gt(n,o){n&1&&(c(0,"div",45),p(1," Void "),l())}function qt(n,o){n&1&&(c(0,"div",46),p(1," Return "),l())}function Wt(n,o){if(n&1&&(c(0,"div",40),d(1,Zt,1,1,"div",41)(2,Gt,2,0,"div",42)(3,qt,2,0,"div",43),l()),n&2){let t=r(3);i(),a("ngIf",!t.data.Bin&&!t.data.Retur),i(),a("ngIf",t.data==null?null:t.data.Bin),i(),a("ngIf",t.data==null?null:t.data.Retur)}}function Xt(n,o){if(n&1&&_(0,"img",48),n&2){let t=r(4);W($(3,Ut,t.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth+"px")),a("src",t.printTemplate==null?null:t.printTemplate.Logo,z)}}function Jt(n,o){if(n&1&&(x(0),d(1,Xt,1,5,"img",47),P()),n&2){let t=r(3);i(),a("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function Kt(n,o){if(n&1&&_(0,"img",48),n&2){let t=r(4);a("src",t.printTemplate==null?null:t.printTemplate.Logo,z)}}function Yt(n,o){if(n&1&&d(0,Kt,1,1,"img",49),n&2){let t=r(3);a("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function tn(n,o){if(n&1&&_(0,"span",12),n&2){let t=r(3);a("innerHTML",t.data==null?null:t.data.RegisterCode,g)}}function nn(n,o){if(n&1&&(c(0,"span"),p(1),l()),n&2){let t=r(4);i(),s(" - ",t.data==null||t.data.Customer==null?null:t.data.Customer.Code,"")}}function en(n,o){if(n&1&&(c(0,"h6",50)(1,"span"),p(2),l(),d(3,nn,2,1,"span",17),l()),n&2){let t=r(3);i(2),h("",t.data==null||t.data.Customer==null?null:t.data.Customer.Title," ",t.data.Customer==null?null:t.data.Customer.Name,""),i(),a("ngIf",(t.data==null||t.data.Customer==null?null:t.data.Customer.Code)&&t.config.PrintConfigInvoice.DocumentVisibility.CustomerCodeVisible)}}function on(n,o){if(n&1&&_(0,"h6",51),n&2){let t=r(3);a("innerHTML",t.data.Customer==null?null:t.data.Customer.NationalIDNumber,g)}}function an(n,o){if(n&1&&(_(0,"p",52),m(1,"newlines")),n&2){let t=r(3);a("innerHTML",f(1,1,t.data.Customer==null?null:t.data.Customer.Address),g)}}function ln(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"limitTo"),l()),n&2){let t=r(3);i(),s(" ",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility==3?"*****"+M(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 cn(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"limitTo"),l()),n&2){let t=r(3);i(),s(" ",t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility==3?"*****"+M(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 rn(n,o){if(n&1&&_(0,"p",53),n&2){let t=r(3);a("innerHTML",t.data.Customer==null?null:t.data.Customer.Email,g)}}function pn(n,o){if(n&1&&(c(0,"h2",54),p(1),l()),n&2){let t=r(3);X(t.data.PaymentState==2?"text-warning":"text-danger"),i(),s(" ",t.data.PaymentState==2?"PARTIAL":t.config.PrintConfigInvoice.DocumentLabel.BillLabel," ")}}function dn(n,o){if(n&1&&(c(0,"h2",20),p(1),l()),n&2){let t=r(3);i(),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 mn(n,o){if(n&1&&(x(0),c(1,"h3",54),p(2),l(),P()),n&2){let t=r(3);i(2),C(t.data==null?null:t.data.ParkLabel)}}function _n(n,o){if(n&1&&(c(0,"div",21),p(1),l()),n&2){let t=r(3);i(),s("Cashier : ",t.data.Creator,"")}}function sn(n,o){n&1&&(c(0,"div",55)(1,"div",56),p(2,"SERVER ERROR!"),l(),c(3,"div",57)(4,"a",58),p(5," status.dealpos.com "),l()(),c(6,"div"),p(7,"Please check if order is uploaded successfully"),l()())}function gn(n,o){n&1&&(c(0,"div",59),p(1," OFFLINE ORDER "),l())}function Cn(n,o){if(n&1&&d(0,gn,2,0,"div",59),n&2){let t=r(4);v(t.isOffline?0:-1)}}function fn(n,o){if(n&1&&d(0,sn,8,0,"div",55)(1,Cn,1,1),n&2){let t=r(3);v(t.isUnknownError==!0?0:1)}}function un(n,o){if(n&1&&(x(0),_(1,"div",12),P()),n&2){let t=r(4);i(),a("innerHTML",t.data.HeaderTitle,g)}}function xn(n,o){if(n&1&&(c(0,"div",60),d(1,un,2,1,"ng-container",17),_(2,"div",12),l()),n&2){let t=r(3);i(),a("ngIf",t.data.HeaderTitle),i(),a("innerHTML",t.data.Number,g)}}function Pn(n,o){if(n&1&&(x(0),p(1),P()),n&2){let t=r().index;i(),s(" ",t+1,". ")}}function vn(n,o){if(n&1&&(x(0),_(1,"app-serial-note",70),P()),n&2){let t=r().$implicit;i(),a("serials",t.Serial)}}function bn(n,o){if(n&1&&(c(0,"div",71)(1,"i",72),p(2),l()()),n&2){let t=r().$implicit;i(2),s(" sold by ",t.SalesName," ")}}function Mn(n,o){if(n&1&&(_(0,"small",74),m(1,"newlines")),n&2){let t=r(2).$implicit;a("innerHTML",f(1,1,t.Note),g)}}function hn(n,o){if(n&1&&(x(0),d(1,Mn,2,3,"small",73),P()),n&2){let t=r().$implicit,e=r(3);i(),a("ngIf",t.Note&&e.config.PrintConfigInvoice.ItemsTable.NoteItemVisible)}}function yn(n,o){if(n&1&&(c(0,"span",77),p(1),l()),n&2){let t=r(2).$implicit;i(),s(" ",t.Taxable?"V":"N"," ")}}function On(n,o){if(n&1&&(c(0,"span",77),p(1),l()),n&2){let t=r(2).$implicit,e=r(3);i(),s(" ",t.Taxable?e.config.PrintConfigInvoice.ItemsTable.TaxableLabel:"N"," ")}}function In(n,o){if(n&1&&(c(0,"div",75),d(1,yn,2,1,"span",76)(2,On,2,1,"span",76),l()),n&2){let t=r(4);i(),a("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel==""||t.config.PrintConfigInvoice.ItemsTable.TaxableLabel=="Taxable"),i(),a("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!=""&&t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!="Taxable")}}function Sn(n,o){if(n&1&&(c(0,"span",78),p(1),m(2,"number"),l()),n&2){let t=r().$implicit,e=r(3);i(),tt(" ",b(2,3,t.Quantity,"1.0-4")," ",e.config.PrintConfigInvoice.ItemsTable.UOMVisible?t.Variant.UOMName:""," ",t.UnitQuantity!=1?" x "+t.UnitQuantity:""," ")}}function Tn(n,o){if(n&1&&(x(0),c(1,"span",81),p(2),m(3,"number"),l(),P()),n&2){let t=r(3).$implicit;i(2),C(f(3,1,t==null?null:t.UnitPriceOriginal))}}function En(n,o){if(n&1&&(x(0),d(1,Tn,4,3,"ng-container",17),P()),n&2){let t=r(2).$implicit;i(),a("ngIf",(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))}}function Rn(n,o){if(n&1&&(x(0),c(1,"span",79),p(2,"x"),l(),c(3,"span",80),d(4,En,2,1,"ng-container",17),p(5),m(6,"number"),l(),P()),n&2){let t=r().$implicit,e=r(3);i(4),a("ngIf",e.config.ModuleSell==null||e.config.ModuleSell.Promotion==null?null:e.config.ModuleSell.Promotion.StrikethroughOriginalPrice),i(),s(" ",f(6,2,t.Price)," ")}}function wn(n,o){if(n&1&&(x(0),c(1,"i",82),p(2),m(3,"number"),l(),P()),n&2){let t=r().$implicit;i(2),s(" ","-"+f(3,1,t.Discount)+"%"," ")}}function Ln(n,o){if(n&1&&(x(0),c(1,"i",83),p(2),m(3,"number"),l(),P()),n&2){let t=r().$implicit;i(2),s(" ","-"+f(3,1,t.DiscountAmount)," ")}}function kn(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"number"),m(3,"TrailingZero"),l()),n&2){let t=r().$implicit,e=r(3);i(),s(" ",b(3,3,f(2,1,(1-t.Discount/100)*t.Price*t.Quantity*t.UnitQuantity-t.DiscountAmount*t.Quantity),e.config.PrintConfigGeneral.TrailingZero)," ")}}function Vn(n,o){if(n&1&&(c(0,"div",61)(1,"div",21)(2,"div",62)(3,"div"),d(4,Pn,2,1,"ng-container",17),p(5),l(),d(6,vn,2,1,"ng-container",17)(7,bn,3,1,"div",63)(8,hn,2,1,"ng-container",17),l(),d(9,In,3,2,"div",64),l(),c(10,"div",65)(11,"div",66)(12,"div",67),d(13,Sn,3,6,"span",68)(14,Rn,7,4,"ng-container",17)(15,wn,4,3,"ng-container",17)(16,Ln,4,3,"ng-container",17),l()(),c(17,"div",69),d(18,kn,4,6,"span",17),l()()()),n&2){let t=o.$implicit,e=r(3);i(4),a("ngIf",e.config.ModuleSell.Grid.RowNumberVisible),i(),h(" ",t.Variant.Name," ",t.Variant.Code&&e.config.PrintConfigInvoice.ItemsTable.CodeVisible?" - "+t.Variant.Code:""," "),i(),a("ngIf",t.Serial&&(t.Serial==null?null:t.Serial.length)>0),i(),a("ngIf",t.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),a("ngIf",t.Note),i(),a("ngIf",e.config.PrintConfigInvoice.ItemsTable.TaxableVisible),i(),a("ngClass",$(13,jt,(e.config.ModuleSell==null||e.config.ModuleSell.Promotion==null?null:e.config.ModuleSell.Promotion.StrikethroughOriginalPrice)&&(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))),i(3),a("ngIf",e.config.PrintConfigInvoice.ItemsTable.QuantityVisible),i(),a("ngIf",e.amountVisible&&!e.priceVisibleRestriction),i(),a("ngIf",t.Discount!=0&&e.amountVisible),i(),a("ngIf",t.DiscountAmount!=0&&e.amountVisible),i(2),a("ngIf",e.amountVisible&&!e.priceVisibleRestriction)}}function Dn(n,o){if(n&1&&(c(0,"span")(1,"span"),p(2),l()()),n&2){let t=r().$implicit;i(2),s("",t.Label," :")}}function Hn(n,o){if(n&1&&(c(0,"span"),p(1),l()),n&2){let t=r().$implicit;i(),s("",t.CurrencySymbol," ")}}function Nn(n,o){if(n&1&&(c(0,"div",85),m(1,"Filter"),c(2,"div",86),p(3),d(4,Dn,3,1,"span"),l(),c(5,"div",87)(6,"div",88)(7,"div",89),d(8,Hn,2,1,"span",17),l(),c(9,"div",90)(10,"span"),p(11),m(12,"number"),m(13,"TrailingZero"),l()()()()()),n&2){let t=o.$implicit,e=o.index,u=r(4);a("ngClass",e==M(1,7,u.data.AmountSummary,1,"Type").length-1?"pb-2":""),i(2),a("ngClass",e==1?"border-top":""),i(),s(" ",e==0&&t.Label=="Amount"?u.totalItemsLabel+" :":""," "),i(),v(e!=0||t.Label!="Amount"?4:-1),i(),a("ngClass",e==1?"border-top":""),i(3),a("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(3),C(b(13,13,f(12,11,t.Amount),u.config.PrintConfigGeneral.TrailingZero))}}function An(n,o){if(n&1&&(c(0,"div",84),d(1,Nn,14,16,"div",28),m(2,"Filter"),l()),n&2){let t=r(3);i(),a("ngForOf",M(2,1,t.data.AmountSummary,1,"Type"))}}function Fn(n,o){if(n&1&&(c(0,"span"),p(1),m(2,"limitTo"),l()),n&2){let t=r().$implicit,e=r(4);i(),s(" ",e.config.PrintConfigInvoice.DocumentVisibility.PaymentCode==3?"- ***"+M(2,1,t.Code,4,t.Code.length-4):"- "+t.Code," ")}}function zn(n,o){if(n&1&&_(0,"div",12),n&2){let t=r().$implicit;a("innerHTML",t.Note,g)}}function Bn(n,o){if(n&1&&(c(0,"span",89),p(1),l()),n&2){let t=r(5);i(),C(t.data.CurrencySymbol)}}function $n(n,o){if(n&1&&(c(0,"div",92)(1,"div",93),p(2),d(3,Fn,3,5,"span",17)(4,zn,1,1,"div",12),l(),c(5,"div",94),d(6,Bn,2,1,"span",95),c(7,"span",90),p(8),m(9,"TrailingZero"),l()()()),n&2){let t=o.$implicit,e=o.index,u=r(4);a("hidden",t.Amount==0),i(2),s(" ",u.config.PrintConfigInvoice.Footer.PaymentMethodVisible?t.MethodName:u.data.Payments.length!=1?"Payment":"Payment "+(e+1)," "),i(),a("ngIf",t.Code&&u.config.PrintConfigInvoice.DocumentVisibility.PaymentCode!=1),i(),v(!(u.config==null||u.config.PrintConfigInvoice==null||u.config.PrintConfigInvoice.DocumentVisibility==null)&&u.config.PrintConfigInvoice.DocumentVisibility.PaymentNoteVisible&&t.Note?4:-1),i(2),a("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),s(" ",b(9,6,u.change>0?t.PaidAmount:t.Amount,u.config.PrintConfigGeneral.TrailingZero),"")}}function Un(n,o){if(n&1&&(c(0,"div"),d(1,$n,10,9,"div",91),l()),n&2){let t=r(3);i(),a("ngForOf",t.data.Payments)}}function jn(n,o){if(n&1&&(c(0,"span",89),p(1),l()),n&2){let t=r(4);i(),C(t.currencyChange)}}function Qn(n,o){if(n&1&&(c(0,"div",96)(1,"div",97),p(2,"Change :"),l(),c(3,"div",94),d(4,jn,2,1,"span",95),c(5,"span",90),p(6),m(7,"TrailingZero"),l()()()),n&2){let t=r(3);i(4),a("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),s(" ",b(7,2,t.change,t.config.PrintConfigGeneral.TrailingZero),"")}}function Zn(n,o){if(n&1&&(c(0,"span",89),p(1),l()),n&2){let t=r(4);i(),C(t.data.CurrencySymbol)}}function Gn(n,o){if(n&1&&(c(0,"div",96)(1,"div",97),p(2),l(),c(3,"div",94),d(4,Zn,2,1,"span",95),c(5,"span",90),p(6),m(7,"TrailingZero"),l()()()),n&2){let t=r(3);i(2),s("",t.remainingLabel,":"),i(2),a("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),C(b(7,3,t.diff,t.config.PrintConfigGeneral.TrailingZero))}}function qn(n,o){if(n&1&&(c(0,"span"),p(1),l()),n&2){let t=r().$implicit;i(),s("",t.CurrencySymbol," ")}}function Wn(n,o){if(n&1&&(c(0,"div",85)(1,"div",98),p(2),l(),c(3,"div",99)(4,"div",88)(5,"div",89),d(6,qn,2,1,"span",17),l(),c(7,"div",90)(8,"span"),p(9),m(10,"number"),m(11,"TrailingZero"),l()()()()()),n&2){let t=o.$implicit,e=o.index,u=r(3);a("ngClass",e==0?"border-top pt-2":""),i(2),s("",t.Label," :"),i(4),a("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(3),C(b(11,6,f(10,4,t.Amount),u.config.PrintConfigGeneral.TrailingZero))}}function Xn(n,o){if(n&1&&(x(0),c(1,"strong",100),p(2),l(),_(3,"span",101),P()),n&2){let t=r(3);i(2),s(" ",t.config.LoyaltyLabel?t.config.LoyaltyLabel:"Loyalty Point"," "),i(),a("innerHTML",t.data.LoyaltyPoint,g)}}function Jn(n,o){n&1&&(c(0,"h6",102),p(1," Coupon "),l())}function Kn(n,o){if(n&1&&(c(0,"span",103),p(1),m(2,"limitTo"),l()),n&2){let t=r(3);i(),s(" ",t.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon==3?"***"+M(2,1,t.data.Coupon,3,t.data.Coupon.length-3):t.data.Coupon," ")}}function Yn(n,o){n&1&&(c(0,"h6",102),p(1,"ToP"),l())}function te(n,o){if(n&1&&_(0,"span",101),n&2){let t=r(4);a("innerHTML",t.data.Due,g)}}function ne(n,o){if(n&1&&(c(0,"span",103),p(1),l()),n&2){let t=r(4);i(),s("- ",t.top," Days")}}function ee(n,o){if(n&1&&(c(0,"div",30),d(1,Yn,2,0,"h6",31)(2,te,1,1,"span",104)(3,ne,2,1,"span",32),l()),n&2){let t=r(3);i(),a("ngIf",t.data.ToP),i(),a("ngIf",t.data.ToP),i(),a("ngIf",t.data.ToP)}}function ie(n,o){if(n&1&&(c(0,"h6",102),p(1),l()),n&2){let t=r(3);i(),s(" ",t.config.PrintConfigInvoice.DocumentLabel.SalesPerson," ")}}function oe(n,o){if(n&1&&(c(0,"p"),p(1),l()),n&2){let t=r(3);i(),s(" ",t.data==null?null:t.data.SalesName," ")}}function ae(n,o){n&1&&(c(0,"h6",102),p(1," Note "),l())}function le(n,o){if(n&1&&(_(0,"p",12),m(1,"newlines")),n&2){let t=r(3);a("innerHTML",f(1,1,t.data==null?null:t.data.ExtraNote),g)}}function ce(n,o){n&1&&(c(0,"h6",105),p(1," Note "),l())}function re(n,o){if(n&1&&(_(0,"p",106),m(1,"newlines")),n&2){let t=r(3);a("innerHTML",f(1,1,t.data==null?null:t.data.InvoiceNote),g)}}function pe(n,o){if(n&1&&(c(0,"p",107),p(1),l()),n&2){let t=r(3);i(),s(" Printed : ",t.data==null?null:t.data.PrintDate," ")}}function de(n,o){if(n&1&&(c(0,"p",107),p(1),l()),n&2){let t=r(3);i(),s(" Created : ",t.data==null?null:t.data.Created," ")}}function me(n,o){if(n&1&&(c(0,"div",39)(1,"p",107),p(2),l()()),n&2){let t=r(3);i(2),s("Trace ID : ",t.data==null?null:t.data.InvoiceID,"")}}function _e(n,o){if(n&1&&(c(0,"div"),_(1,"div",108)(2,"packing-slip",109),l()),n&2){let t=r(3);i(2),a("data",t.data)("printTemplate",t.printTemplate)("config",t.config)}}function se(n,o){if(n&1&&(c(0,"div"),d(1,Wt,4,3,"div",6),c(2,"div",7),d(3,Jt,2,1,"ng-container",8)(4,Yt,1,1,"ng-template",null,0,nt),l(),c(6,"div",7),_(7,"h2",9)(8,"i",10),c(9,"p",11),_(10,"span",12),m(11,"newlines"),_(12,"br"),d(13,tn,1,1,"span",13),_(14,"br")(15,"span",12),m(16,"newlines"),l(),d(17,en,4,3,"h6",14)(18,on,1,1,"h6",15)(19,an,2,3,"p",16)(20,ln,3,5,"span",17)(21,cn,3,5,"span",17)(22,rn,1,1,"p",18),l(),d(23,pn,2,3,"h2",19)(24,dn,2,1,"h2",20)(25,mn,3,1,"ng-container",17)(26,_n,2,1,"div",21)(27,fn,2,1),c(28,"div",22),d(29,xn,3,2,"div",23),c(30,"div",24)(31,"div"),p(32),l()()(),d(33,Vn,19,15,"div",25)(34,An,3,5,"div",26)(35,Un,2,1,"div",17)(36,Qn,8,5,"div",27)(37,Gn,8,6,"div",27)(38,Wn,12,9,"div",28),m(39,"Filter"),c(40,"div",29)(41,"div",30),d(42,Xn,4,2,"ng-container",17)(43,Jn,2,0,"h6",31)(44,Kn,3,5,"span",32),l(),d(45,ee,4,3,"div",33),l(),c(46,"div",34),d(47,ie,2,1,"h6",31)(48,oe,2,1,"p",17)(49,ae,2,0,"h6",31)(50,le,2,3,"p",13)(51,ce,2,0,"h6",35)(52,re,2,3,"p",36),l(),_(53,"p",12),m(54,"SafeHtml"),c(55,"div",7),d(56,pe,2,1,"p",37),l(),c(57,"div",38),d(58,de,2,1,"p",37),l(),d(59,me,3,1,"div",39)(60,_e,3,3,"div",17),l()),n&2){let t=Y(5),e=r(2);K("print_container invoice_mini ",e.printTemplate!=null&&e.printTemplate.PrintLX300?"lx300":""," ",e.printTemplate==null?null:e.printTemplate.CssClass," box mt-5"),i(),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.Footer==null?null:e.config.PrintConfigInvoice.Footer.CopyLabelEnabled)&&!(e.printTemplate!=null&&e.printTemplate.PrintLX300)&&(e.data==null?null:e.data.PrintCopyLabel)),i(2),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.LogoConfig==null?null:e.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth)>0)("ngIfElse",t),i(4),a("innerHTML",e.printTemplate==null?null:e.printTemplate.Title,g),i(),a("innerHTML",e.printTemplate==null?null:e.printTemplate.Field,g),i(2),a("innerHTML",f(11,46,e.printTemplate==null?null:e.printTemplate.Address),g),i(3),a("ngIf",e.config==null||e.config.PrintConfigInvoice==null?null:e.config.PrintConfigInvoice.DocumentVisibility.RegisterCode),i(2),a("innerHTML",f(16,48,e.printTemplate==null?null:e.printTemplate.ContactInfo),g),i(2),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Name)),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.NationalIDNumber)&&e.config.PrintConfigInvoice.DocumentVisibility.IdentificationVisible),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Address)&&e.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Phone)&&e.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1&&(e.data.Customer==null?null:e.data.Customer.Phone)!==null),i(),a("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Mobile)&&e.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1&&(e.data.Customer==null?null:e.data.Customer.Phone)==null&&(e.data.Customer==null?null:e.data.Customer.Mobile)!==null),i(),a("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),i(),v(e.data.PaymentState<3?23:-1),i(),v(e.data.Retur&&(!(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.Header==null)&&e.config.PrintConfigInvoice.Header.SalesReturnLabel)?24:-1),i(),a("ngIf",e.data.PaymentState==1),i(),v(e.data.Creator&&e.config.PrintConfigInvoice.Footer.CreatorVisiblePosition!=1?26:-1),i(),v(!(e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null)&&e.config.PrintConfigInvoice.DocumentVisibility.WritePrintOffline?27:-1),i(2),a("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.NumberVisible),i(3),C(e.data.Date),i(),a("ngForOf",e.data.Items),i(),a("ngIf",e.amountVisible&&!e.priceVisibleRestriction),i(),a("ngIf",(e.data.Payments.length>0||!(e.change>0)||e.diff>0)&&e.amountVisible),i(),a("ngIf",e.change>0&&e.amountVisible),i(),a("ngIf",e.diff>0&&!e.hasSurcharge&&e.amountVisible),i(),a("ngForOf",M(39,50,e.data.AmountSummary,2,"Type")),i(4),a("ngIf",e.config.PrintConfigInvoice.Footer.ShowLoyaltyPoint&&e.data.LoyaltyPoint),i(),a("ngIf",e.data.Coupon&&e.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),i(),a("ngIf",e.data.Coupon&&e.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),i(),a("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.InvoicePaymentTermsVisible&&e.data.PaymentState<3&&e.data.Payments.length==0),i(2),a("ngIf",e.data.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),a("ngIf",e.data.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),a("ngIf",(e.data==null?null:e.data.ExtraNote)&&e.config.PrintConfigInvoice.Footer.ParkNoteVisible),i(),a("ngIf",e.data.ExtraNote&&e.config.PrintConfigInvoice.Footer.ParkNoteVisible),i(),a("ngIf",(e.data==null?null:e.data.InvoiceNote)&&e.config.PrintConfigInvoice.Footer.NoteVisible),i(),a("ngIf",e.data.InvoiceNote&&e.config.PrintConfigInvoice.Footer.NoteVisible),i(),a("innerHTML",f(54,54,e.printTemplate!=null&&e.printTemplate.FooterLeft?e.printTemplate==null?null:e.printTemplate.FooterLeft:""),g),i(3),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null?null:e.config.PrintConfigInvoice.DocumentVisibility.CustomerEntryTimeVisible)&&e.data.PrintDate),i(2),a("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null?null:e.config.PrintConfigInvoice.DocumentVisibility.InvoiceCreatedTimeVisible)&&e.data.Created),i(),v(e.isOffline==!1&&(e.data!=null&&e.data.InvoiceID)&&(!(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null)&&e.config.PrintConfigInvoice.DocumentVisibility.TraceID)?59:-1),i(),a("ngIf",e.config==null||e.config.PrintConfigInvoice==null?null:e.config.PrintConfigInvoice.DocumentVisibility.PrintPackingslipAftersell)}}function ge(n,o){if(n&1&&(x(0),_(1,"qr-code",111),P()),n&2){let t=r(3);i(),a("value",t.data.QRContent)("size",250)}}function Ce(n,o){if(n&1&&(c(0,"div",110),d(1,ge,2,2,"ng-container",17),l()),n&2){let t=r(2);i(),a("ngIf",(t.config==null||t.config.PrintConfigInvoice==null?null:t.config.PrintConfigInvoice.InvoiceQR.TransformTo)==t.invoiceQR.QRCode)}}function fe(n,o){if(n&1&&(_(0,"link",2),m(1,"StylesheetSafeUrl"),d(2,Qt,1,1,"POS-print-mode",3)(3,se,61,56,"div",4)(4,Ce,2,1,"div",5)),n&2){let t=r();R("href",t.stylesheet!=null&&t.stylesheet.Size8cm?f(1,4,t.stylesheet==null?null:t.stylesheet.Size8cm):null,S),i(2),v(t.receiptParam?2:-1),i(),a("ngIf",t.data),i(),a("ngIf",(t.config==null||t.config.PrintConfigInvoice==null?null:t.config.PrintConfigInvoice.InvoiceQR.TransformTo)!=t.invoiceQR.None)}}function ue(n,o){n&1&&(c(0,"div",1)(1,"div",112)(2,"h1"),p(3," Cannot generate print preview because of client-server displaying different / mismatch items in invoice "),l()()())}var _t=(e=>(e[e.None=1]="None",e[e.Barcode=2]="Barcode",e[e.QRCode=3]="QRCode",e))(_t||{}),dt=class n{constructor(o,t){this.activeRoute=o;this.decimalPipe=t}printService=Z(Q);data;outletInfo;printTemplate;config;emailVisibleRestriction;priceVisibleRestriction;receiptParam;isUnknownError=!1;isOffline=!1;stylesheet;saveLastPrintDate=G(!1);invoiceQR=_t;paperPrintMode;printModeType;customerVisible;amountVisible;diff;change=0;currencyChange;totalItemsLabel;hasSurcharge;top;remainingLabel;totalItemLength=q(0);ngOnInit(){this.initRemainingLabel(),this.generateItemLabel(),this.checkAmountSummary(),this.checkSurcharge(),this.calculatePrintPrice(),this.prepareSalesCommission(),this.initPaperModeConfig(),this.parseTop(),this.initPrintListener()}initPrintListener(){this.saveLastPrintDate()&&window.addEventListener("afterprint",this.handleAfterPrint)}handleAfterPrint=()=>{let o=this.data?.ID;O.IsNotEmpty(o)&&this.printService.updateLastPrintDateTime(o).subscribe()};ngOnDestroy(){this.saveLastPrintDate()&&window.removeEventListener("afterprint",this.handleAfterPrint)}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.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(e=>{o+=e.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(e=>{o+=e.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 F of this.data.Items)(this.config?.PrintConfigInvoice?.ItemsTable?.NonInventoryCount||F.Variant.TypeID!=2)&&(o+=F.Quantity);this.totalItemLength.set(t);let e=o>1?"s":"",u=this.decimalPipe.transform(o,"1.0-4").toString(),st=this.config.PrintConfigInvoice?.ItemsFooter?.TotalQuantityVisible;this.totalItemsLabel=`Total (Item${e}: ${t}${st?`, Qty: ${u})`:")"}`}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(e=>e.ID==o);return O.IsNotEmpty(t)?t.Name:""}static \u0275fac=function(t){return new(t||n)(B(it),B(y))};static \u0275cmp=T({type:n,selectors:[["pos-receipt"]],inputs:{data:"data",outletInfo:"outletInfo",printTemplate:"printTemplate",config:"config",emailVisibleRestriction:"emailVisibleRestriction",priceVisibleRestriction:"priceVisibleRestriction",receiptParam:"receiptParam",isUnknownError:"isUnknownError",isOffline:"isOffline",stylesheet:"stylesheet",saveLastPrintDate:[1,"saveLastPrintDate"]},standalone:!1,decls:2,vars:1,consts:[["DEFAULTWIDTH",""],[1,"print_container"],["rel","stylesheet"],["paperType","mini",1,"d-print-none",3,"paperPrints"],[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"],[1,"text-center","m-0","p-1",3,"class"],[1,"text-center","m-0","p-1","text-warning"],[1,"row","g-0"],[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,"text-center","mt-3","trace-id"],[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,"text-center","my-3","text-danger"],[1,"fw-bold","fs-4"],[1,"my-1"],["target","_blank","href","https://status.dealpos.com"],[1,"fs-5","text-danger","fw-bold","text-center","mt-1"],[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"],[1,"print-error-message"]],template:function(t,e){t&1&&d(0,fe,5,6)(1,ue,4,0,"div",1),t&2&&v(e.totalItemLength()==(e.data==null||e.data.Items==null?null:e.data.Items.length)&&e.data?0:1)},dependencies:()=>[et,w,L,N,rt,j,U,y,ot,V,at,lt,ct,H],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}.print_container[_ngcontent-%COMP%] > div.print-error-message[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:100vh;text-align:center}.print_container[_ngcontent-%COMP%] > div.print-error-message[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#dc3545!important;font-weight:500}"]})},mt=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=E({type:n});static \u0275inj=I({providers:[Q],imports:[k,D,A,pt,j,U]})};export{N as a,A as b,dt as c,mt as d};
@@ -1 +1 @@
1
- import{a as r}from"./chunk-TZKLOUVL.js";import{K as a}from"./chunk-UXRO4UFY.js";var s=class extends r{constructor(t,e,o,n){super(t);this.httpService=e;let p=this.getInfoID(n);this.menuData$.pipe(a(()=>this.getBindDataObservable(o,p))).subscribe({next:i=>{this.bindData(i),this.postBindData(i)}})}data;getInfoID(t){return t.snapshot.queryParams.ID}getBindDataObservable(t,e){return this.httpService.post(`/API/${t}`,{ID:e})}bindData(t){this.data=t}postBindData(t){}};export{s as a};
1
+ import{a as r}from"./chunk-DK44EJTX.js";import{K as a}from"./chunk-UXRO4UFY.js";var s=class extends r{constructor(t,e,o,n){super(t);this.httpService=e;let p=this.getInfoID(n);this.menuData$.pipe(a(()=>this.getBindDataObservable(o,p))).subscribe({next:i=>{this.bindData(i),this.postBindData(i)}})}data;getInfoID(t){return t.snapshot.queryParams.ID}getBindDataObservable(t,e){return this.httpService.post(`/API/${t}`,{ID:e})}bindData(t){this.data=t}postBindData(t){}};export{s as a};
@@ -1 +1 @@
1
- import{a as V,b as W}from"./chunk-7WKHBXTJ.js";import{a as q}from"./chunk-IE6UBT7C.js";import{e as J,f as B}from"./chunk-7V7Q67KX.js";import"./chunk-RXIPRX4H.js";import{b as P}from"./chunk-TZKLOUVL.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-CD3BSGAP.js";import{b as I,c as E}from"./chunk-JOXTERIM.js";import"./chunk-5OS5VELO.js";import"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import"./chunk-RVXZOIFQ.js";import"./chunk-D5P4CYL5.js";import"./chunk-QEZV5DGZ.js";import"./chunk-ZZGSAFGO.js";import"./chunk-HIALMESF.js";import{$a as l,Ac as D,Bc as f,Ib as o,Jb as t,Kb as c,Ob as S,Od as M,Qb as v,Rb as b,Yd as T,Zc as x,db as m,ec as p,ed as _,fc as j,fd as k,gc as L,gd as w,jd as R,kb as h,ob as C,qb as y,va as u,vb as a,wa as g,zc as d}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";function N(r,i){if(r&1){let e=S();o(0,"mainpanel-cmp",1)(1,"content")(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"h3"),p(8,"General"),t()(),o(9,"div",7)(10,"div",3)(11,"div",8),c(12,"floatinglabel",9),d(13,"date"),t(),o(14,"div",8),c(15,"floatinglabel",10),d(16,"number"),t()(),o(17,"div",3)(18,"div",8),c(19,"floatinglabel",11),t()()()()()(),o(20,"div",3)(21,"div",8)(22,"div",5)(23,"div",12)(24,"div",13)(25,"h3"),p(26,"Request"),t()(),o(27,"div",14)(28,"button",15),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null?null:n.jobLogsDetail.log.req,"Request"))}),p(29,"Copy Request to Clipboard"),t()()(),o(30,"div",7)(31,"pre",16),p(32),d(33,"json"),t()()()(),o(34,"div",8)(35,"div",5)(36,"div",12)(37,"div",13)(38,"h3"),p(39,"Response"),t()(),o(40,"div",14)(41,"button",17),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null||n.jobLogsDetail.log==null?null:n.jobLogsDetail.log.res,"Response"))}),p(42,"Copy Response to Clipboard"),t()()(),o(43,"div",7)(44,"pre",18),p(45),d(46,"json"),t()()()()()()()()}if(r&2){let e=b();a("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(12),a("model",f(13,10,e.jobLogsDetail["@timestamp_received"],"dd MMM yyyy")),l(3),a("model",f(16,13,e.jobLogsDetail==null?null:e.jobLogsDetail.DurationInSecond,"1.1-1")+" s"),l(4),a("model",e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.respCode),l(9),a("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),j(D(33,16,e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.req)),l(9),a("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),L('"',D(46,18,e.jobLogsDetail==null?null:e.jobLogsDetail.log.res),'"')}}var F=class r extends q{jobLogsDetail;copyStatus;msgCopyClipboard;constructor(i,e,s){super(i,e,"Developer/DeveloperSpace/Webhook/JobLogDetail",s)}postBindForm(i){this.jobLogsDetail=i?.hits[0]?._source,this.jobLogsDetail&&(this.jobLogsDetail.DurationInSecond=parseInt(this.jobLogsDetail?.Duration)/1e3)}copyClipboard(i,e){this.copyStatus=!0,this.msgCopyClipboard=e+" has been coppied to clipboard!",navigator.clipboard.writeText(JSON.stringify(i)),setTimeout(()=>{this.copyStatus=!1},3e3)}static \u0275fac=function(e){return new(e||r)(m(P),m(T),m(M))};static \u0275cmp=h({type:r,selectors:[["app-webhook-job-logs-detail"]],features:[C],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["id","webhook-logs",1,"container-fluid","pt-5"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-sm-6"],["label","Created",3,"model"],["label","Duration",3,"model"],["label","Response Code",3,"model"],[1,"card-header","d-lg-flex"],[1,"me-auto","mt-5"],[1,"d-sm-block","mt-2"],["id","btnCopyRequest","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","requestValue",2,"font-size","13px"],["id","btnCopyResponse","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","responseValue",2,"font-size","13px"]],template:function(e,s){e&1&&y(0,N,47,20,"mainpanel-cmp",0),e&2&&a("ngIf",s.jobLogsDetail)},dependencies:[R,x,k,w,_,B,J,W,V,E,I],encapsulation:2})};export{F as WebhookJobLogsDetailComponent};
1
+ import{a as V,b as W}from"./chunk-7WKHBXTJ.js";import{a as q}from"./chunk-N4FKAPLW.js";import{e as J,f as B}from"./chunk-QVTFZ7LA.js";import"./chunk-EJDRY7MH.js";import{b as P}from"./chunk-DK44EJTX.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-H7F34T25.js";import{b as I,c as E}from"./chunk-JOXTERIM.js";import"./chunk-TSIYPTYI.js";import"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import"./chunk-RVXZOIFQ.js";import"./chunk-FSTDHLYH.js";import"./chunk-WEGDL4GR.js";import"./chunk-ZZGSAFGO.js";import"./chunk-346EL5B3.js";import{$a as l,Ac as D,Bc as f,Ib as o,Jb as t,Kb as c,Ob as S,Od as M,Qb as v,Rb as b,Yd as T,Zc as x,db as m,ec as p,ed as _,fc as j,fd as k,gc as L,gd as w,jd as R,kb as h,ob as C,qb as y,va as u,vb as a,wa as g,zc as d}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";function N(r,i){if(r&1){let e=S();o(0,"mainpanel-cmp",1)(1,"content")(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"h3"),p(8,"General"),t()(),o(9,"div",7)(10,"div",3)(11,"div",8),c(12,"floatinglabel",9),d(13,"date"),t(),o(14,"div",8),c(15,"floatinglabel",10),d(16,"number"),t()(),o(17,"div",3)(18,"div",8),c(19,"floatinglabel",11),t()()()()()(),o(20,"div",3)(21,"div",8)(22,"div",5)(23,"div",12)(24,"div",13)(25,"h3"),p(26,"Request"),t()(),o(27,"div",14)(28,"button",15),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null?null:n.jobLogsDetail.log.req,"Request"))}),p(29,"Copy Request to Clipboard"),t()()(),o(30,"div",7)(31,"pre",16),p(32),d(33,"json"),t()()()(),o(34,"div",8)(35,"div",5)(36,"div",12)(37,"div",13)(38,"h3"),p(39,"Response"),t()(),o(40,"div",14)(41,"button",17),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null||n.jobLogsDetail.log==null?null:n.jobLogsDetail.log.res,"Response"))}),p(42,"Copy Response to Clipboard"),t()()(),o(43,"div",7)(44,"pre",18),p(45),d(46,"json"),t()()()()()()()()}if(r&2){let e=b();a("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(12),a("model",f(13,10,e.jobLogsDetail["@timestamp_received"],"dd MMM yyyy")),l(3),a("model",f(16,13,e.jobLogsDetail==null?null:e.jobLogsDetail.DurationInSecond,"1.1-1")+" s"),l(4),a("model",e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.respCode),l(9),a("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),j(D(33,16,e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.req)),l(9),a("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),L('"',D(46,18,e.jobLogsDetail==null?null:e.jobLogsDetail.log.res),'"')}}var F=class r extends q{jobLogsDetail;copyStatus;msgCopyClipboard;constructor(i,e,s){super(i,e,"Developer/DeveloperSpace/Webhook/JobLogDetail",s)}postBindForm(i){this.jobLogsDetail=i?.hits[0]?._source,this.jobLogsDetail&&(this.jobLogsDetail.DurationInSecond=parseInt(this.jobLogsDetail?.Duration)/1e3)}copyClipboard(i,e){this.copyStatus=!0,this.msgCopyClipboard=e+" has been coppied to clipboard!",navigator.clipboard.writeText(JSON.stringify(i)),setTimeout(()=>{this.copyStatus=!1},3e3)}static \u0275fac=function(e){return new(e||r)(m(P),m(T),m(M))};static \u0275cmp=h({type:r,selectors:[["app-webhook-job-logs-detail"]],features:[C],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["id","webhook-logs",1,"container-fluid","pt-5"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-sm-6"],["label","Created",3,"model"],["label","Duration",3,"model"],["label","Response Code",3,"model"],[1,"card-header","d-lg-flex"],[1,"me-auto","mt-5"],[1,"d-sm-block","mt-2"],["id","btnCopyRequest","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","requestValue",2,"font-size","13px"],["id","btnCopyResponse","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","responseValue",2,"font-size","13px"]],template:function(e,s){e&1&&y(0,N,47,20,"mainpanel-cmp",0),e&2&&a("ngIf",s.jobLogsDetail)},dependencies:[R,x,k,w,_,B,J,W,V,E,I],encapsulation:2})};export{F as WebhookJobLogsDetailComponent};
@@ -1 +1 @@
1
- import{O as A}from"./chunk-5OS5VELO.js";import{$a as o,Fc as y,Ib as c,Jb as r,Lb as d,Mb as _,Rb as l,Rd as T,Td as I,Yc as w,Yd as E,Zc as k,db as f,dc as b,ec as g,fc as P,ja as m,jd as S,ka as O,kb as x,lb as h,na as s,nb as v,qb as p,rc as C,uc as M,vb as a,xd as z,zb as u}from"./chunk-UXRO4UFY.js";var U=t=>[t],N=(t,e,n,i)=>({ID:t,Template:e,Price:n,Print:i});function H(t,e){if(t&1&&(d(0),c(1,"div",5)(2,"a",6)(3,"small"),g(4),r()()(),_()),t&2){let n=e.$implicit,i=e.index;o(),u(i>0?"border-start border-light":""),o(),a("routerLink",C(5,U,n.link))("queryParams",M(7,N,n.param.ID,n==null||n.param==null?null:n.param.Template,n.param.Price,n.param.Print)),o(2),P(n==null?null:n.label)}}function $(t,e){if(t&1&&(d(0),c(1,"div",2)(2,"div",3)(3,"small"),g(4,"Paper Size :"),r()(),p(5,H,5,12,"ng-container",4),r(),_()),t&2){let n=l();o(5),a("ngForOf",n.paperPrints)}}function q(t,e){if(t&1&&(c(0,"li")(1,"a",6)(2,"medium"),g(3),r()()()),t&2){let n=e.$implicit;o(),a("routerLink",C(3,U,n.link))("queryParams",M(5,N,n.param.ID,n==null||n.param==null?null:n.param.Template,n.param.Price,n.param.Print)),o(2),P(n==null?null:n.label)}}function J(t,e){if(t&1&&(c(0,"div",7)(1,"span"),g(2,"Paper Size :"),r(),c(3,"ul"),p(4,q,4,10,"li",4),r()()),t&2){let n=l();o(4),a("ngForOf",n.paperPrints)}}var F=class t{paperPrints;paperType;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=x({type:t,selectors:[["POS-print-mode"]],inputs:{paperPrints:"paperPrints",paperType:"paperType"},standalone:!1,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(n,i){if(n&1&&p(0,$,6,1,"ng-container",1)(1,J,5,1,"ng-template",null,0,y),n&2){let L=b(2);a("ngIf",i.paperType=="mini")("ngIfElse",L)}},dependencies:[w,k,T],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:max-content;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.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}']})},D=class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=h({type:t});static \u0275inj=O({imports:[S,I]})};var j=class t{constructor(e){this.sanitizer=e}transform(e){if(this.isResourceUrl(e))return this.sanitizer.bypassSecurityTrustResourceUrl(e);{let i=`${window.location.origin}/${e}`;return this.sanitizer.bypassSecurityTrustResourceUrl(i)}}isResourceUrl(e){return/^(https?:\/\/|\/)/i.test(e)}static \u0275fac=function(n){return new(n||t)(f(z,16))};static \u0275pipe=v({name:"StylesheetSafeUrl",type:t,pure:!0})};var B=class t{httpService=s(E);updateLastPrintDateTime(e){return this.httpService.put(`${A.UpdateLastPrintDateTime}/${e}`)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=m({token:t,factory:t.\u0275fac})};export{j as a,F as b,D as c,B as d};
1
+ import{O as A}from"./chunk-TSIYPTYI.js";import{$a as o,Fc as y,Ib as a,Jb as r,Lb as d,Mb as _,Rb as l,Rd as I,Td as T,Yc as w,Yd as E,Zc as k,db as f,dc as b,ec as g,fc as P,ja as m,jd as S,ka as O,kb as x,lb as h,na as s,nb as v,qb as p,rc as C,uc as M,vb as c,xd as z,zb as u}from"./chunk-UXRO4UFY.js";var U=t=>[t],N=(t,e,n,i)=>({ID:t,Template:e,Price:n,Print:i});function H(t,e){if(t&1&&(d(0),a(1,"div",5)(2,"a",6)(3,"small"),g(4),r()()(),_()),t&2){let n=e.$implicit,i=e.index;o(),u(i>0?"border-start border-light":""),o(),c("routerLink",C(5,U,n.link))("queryParams",M(7,N,n.param.ID,n==null||n.param==null?null:n.param.Template,n.param.Price,n.param.Print)),o(2),P(n==null?null:n.label)}}function $(t,e){if(t&1&&(d(0),a(1,"div",2)(2,"div",3)(3,"small"),g(4,"Paper Size :"),r()(),p(5,H,5,12,"ng-container",4),r(),_()),t&2){let n=l();o(5),c("ngForOf",n.paperPrints)}}function q(t,e){if(t&1&&(a(0,"li")(1,"a",6)(2,"medium"),g(3),r()()()),t&2){let n=e.$implicit;o(),c("routerLink",C(3,U,n.link))("queryParams",M(5,N,n.param.ID,n==null||n.param==null?null:n.param.Template,n.param.Price,n.param.Print)),o(2),P(n==null?null:n.label)}}function J(t,e){if(t&1&&(a(0,"div",7)(1,"span"),g(2,"Paper Size :"),r(),a(3,"ul"),p(4,q,4,10,"li",4),r()()),t&2){let n=l();o(4),c("ngForOf",n.paperPrints)}}var D=class t{paperPrints;paperType;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=x({type:t,selectors:[["POS-print-mode"]],inputs:{paperPrints:"paperPrints",paperType:"paperType"},standalone:!1,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(n,i){if(n&1&&p(0,$,6,1,"ng-container",1)(1,J,5,1,"ng-template",null,0,y),n&2){let L=b(2);c("ngIf",i.paperType=="mini")("ngIfElse",L)}},dependencies:[w,k,I],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:max-content;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.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}']})},F=class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=h({type:t});static \u0275inj=O({imports:[S,T]})};var j=class t{constructor(e){this.sanitizer=e}transform(e){if(this.isResourceUrl(e))return this.sanitizer.bypassSecurityTrustResourceUrl(e);{let i=`${window.location.origin}/${e}`;return this.sanitizer.bypassSecurityTrustResourceUrl(i)}}isResourceUrl(e){return/^(https?:\/\/|\/)/i.test(e)}static \u0275fac=function(n){return new(n||t)(f(z,16))};static \u0275pipe=v({name:"StylesheetSafeUrl",type:t,pure:!0})};var B=class t{httpService=s(E);updateLastPrintDateTime(e){return this.httpService.post(`${A.UpdateLastPrintDateTime}`,{InvoiceID:e})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=m({token:t,factory:t.\u0275fac})};export{j as a,D as b,F as c,B as d};