dealpos 26.32.4 → 26.33.1

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 (160) hide show
  1. package/browser/{chunk-VEHRXSID.js → chunk-25EGHT3O.js} +1 -1
  2. package/browser/{chunk-NE6LSMXK.js → chunk-2CYZRQII.js} +1 -1
  3. package/browser/{chunk-BN46ZA5S.js → chunk-2TEIZIKP.js} +1 -1
  4. package/browser/{chunk-IFQLGAFM.js → chunk-2XD6XFT2.js} +1 -1
  5. package/browser/{chunk-RPOIMN4D.js → chunk-33VQWLZJ.js} +1 -1
  6. package/browser/{chunk-4SF4HBXQ.js → chunk-3632J6UG.js} +1 -1
  7. package/browser/{chunk-J2OAR657.js → chunk-363Q3VM5.js} +1 -1
  8. package/browser/{chunk-QR7NHMGX.js → chunk-3B5BCQBK.js} +1 -1
  9. package/browser/{chunk-Q7FGNEZD.js → chunk-3CX6VK4P.js} +1 -1
  10. package/browser/{chunk-HI4RWK7P.js → chunk-3ENHJ7KL.js} +1 -1
  11. package/browser/{chunk-RAZRQRFF.js → chunk-3FWBKAVK.js} +1 -1
  12. package/browser/{chunk-AJSS6R7Q.js → chunk-3XAXHWOP.js} +1 -1
  13. package/browser/{chunk-2KTJWTXF.js → chunk-4KGVX7TN.js} +5 -5
  14. package/browser/chunk-5DBV6I4Z.js +1 -0
  15. package/browser/{chunk-XHLFPJPB.js → chunk-5HIT7CEU.js} +1 -1
  16. package/browser/{chunk-3HC75LG4.js → chunk-5JKM3FDA.js} +1 -1
  17. package/browser/chunk-5RRQG5NU.js +11 -0
  18. package/browser/{chunk-436QBHDI.js → chunk-5SLTQFJU.js} +1 -1
  19. package/browser/{chunk-QHKT7KVI.js → chunk-5U4ZPIUV.js} +1 -1
  20. package/browser/{chunk-DBAKXSBZ.js → chunk-5VLUPWOI.js} +1 -1
  21. package/browser/{chunk-6SDQEEUU.js → chunk-5Z5ZTHVS.js} +1 -1
  22. package/browser/chunk-6KMKOMGA.js +1 -0
  23. package/browser/{chunk-WGDATIF3.js → chunk-74DNMG63.js} +1 -1
  24. package/browser/{chunk-QDLRRM2C.js → chunk-7CDCRG5V.js} +1 -1
  25. package/browser/chunk-7EQ5IYVG.js +1 -0
  26. package/browser/{chunk-YFFHV6SZ.js → chunk-7SGOOK3K.js} +1 -1
  27. package/browser/{chunk-O3LBZZKF.js → chunk-7T4XAFMN.js} +1 -1
  28. package/browser/{chunk-MVJGF7WP.js → chunk-7YEXLK4L.js} +1 -1
  29. package/browser/chunk-B55NYPHL.js +11 -0
  30. package/browser/{chunk-BBQTC3NF.js → chunk-BBAJDOL6.js} +1 -1
  31. package/browser/chunk-BN7VHFSY.js +1 -0
  32. package/browser/{chunk-KU6RELDU.js → chunk-BWEH5L7E.js} +1 -1
  33. package/browser/{chunk-IK7QBFUO.js → chunk-BWFP67L2.js} +1 -1
  34. package/browser/chunk-C2EHID6Y.js +19 -0
  35. package/browser/{chunk-63BK4MR3.js → chunk-C2IXE2CH.js} +1 -1
  36. package/browser/{chunk-DUAKLYOO.js → chunk-C7OXYN2X.js} +1 -1
  37. package/browser/{chunk-JFX7OZ2M.js → chunk-CD5YGDSH.js} +1 -1
  38. package/browser/{chunk-4QBZDWNR.js → chunk-CDU6EWIK.js} +1 -1
  39. package/browser/{chunk-7LYYMGCQ.js → chunk-COOUWWQZ.js} +1 -1
  40. package/browser/{chunk-CBXRJLBI.js → chunk-CTJFIJYF.js} +1 -1
  41. package/browser/{chunk-UJ3UWW32.js → chunk-CZXVP3RE.js} +1 -1
  42. package/browser/chunk-D6DIFRPZ.js +1 -0
  43. package/browser/{chunk-Z2RZ43CG.js → chunk-DJ66W3ML.js} +1 -1
  44. package/browser/chunk-E635WIRD.js +18 -0
  45. package/browser/chunk-FARE5LJM.js +1 -0
  46. package/browser/{chunk-SOWALOYP.js → chunk-FHNE2JSK.js} +1 -1
  47. package/browser/chunk-FRYZY7HK.js +1 -0
  48. package/browser/{chunk-QGCNTTPD.js → chunk-GIFN73AS.js} +1 -1
  49. package/browser/{chunk-GHBXIUNP.js → chunk-HNVEIDMA.js} +1 -1
  50. package/browser/{chunk-CQ3IUTYF.js → chunk-HNYA4SPK.js} +1 -1
  51. package/browser/{chunk-PYMNQKGD.js → chunk-IA4DZGVA.js} +1 -1
  52. package/browser/{chunk-N6VVUZ3U.js → chunk-IMSVWTKQ.js} +1 -1
  53. package/browser/chunk-IVH4X5NX.js +1 -0
  54. package/browser/chunk-JLP5TXAZ.js +1 -0
  55. package/browser/{chunk-6ZT2ILV3.js → chunk-JOAIN4TD.js} +1 -1
  56. package/browser/{chunk-K674P52L.js → chunk-JPHTLQRY.js} +1 -1
  57. package/browser/chunk-JX3AYK6P.js +1 -0
  58. package/browser/chunk-K7ZBMN45.js +3 -0
  59. package/browser/{chunk-WSVJF323.js → chunk-KHDSH7YL.js} +1 -1
  60. package/browser/chunk-KIIBCG6J.js +4 -0
  61. package/browser/{chunk-VNSMXUWL.js → chunk-KJWRHA5N.js} +1 -1
  62. package/browser/{chunk-ULDCH5DI.js → chunk-KKVOU2Y6.js} +1 -1
  63. package/browser/{chunk-7E32EBOV.js → chunk-KQP6YT7O.js} +1 -1
  64. package/browser/{chunk-GUR5WV7E.js → chunk-KRDRDKP2.js} +1 -1
  65. package/browser/{chunk-6CZ5QXY4.js → chunk-L3A2QWNI.js} +1 -1
  66. package/browser/{chunk-GRY5OCND.js → chunk-LHIBRUKK.js} +1 -1
  67. package/browser/chunk-LPCPIFAN.js +1 -0
  68. package/browser/{chunk-YZ5DPLR6.js → chunk-LRSOMSFT.js} +1 -1
  69. package/browser/{chunk-M7TO7ZE5.js → chunk-LRWJYJXT.js} +13 -13
  70. package/browser/{chunk-JYIHSWNY.js → chunk-MIDN72EH.js} +1 -1
  71. package/browser/{chunk-LVFOZHTD.js → chunk-MITV2WBT.js} +1 -1
  72. package/browser/{chunk-TGNCIBMG.js → chunk-MUSUE6FL.js} +1 -1
  73. package/browser/chunk-N4QV5VNH.js +4 -0
  74. package/browser/{chunk-XHWH77FE.js → chunk-NCDCL2CL.js} +1 -1
  75. package/browser/chunk-NKRMZX62.js +1 -0
  76. package/browser/{chunk-UHNHYZOF.js → chunk-NLY54WX3.js} +1 -1
  77. package/browser/{chunk-DTNWKW4U.js → chunk-NRE3ZQUV.js} +1 -1
  78. package/browser/{chunk-QOJJXKLN.js → chunk-NWZPHIKI.js} +1 -1
  79. package/browser/chunk-OAJZPIKA.js +2 -0
  80. package/browser/{chunk-R52CVC3U.js → chunk-OAVQXLRE.js} +1 -1
  81. package/browser/{chunk-CGHCO5QE.js → chunk-OKMTMFSO.js} +1 -1
  82. package/browser/{chunk-IT3KBOJS.js → chunk-ONLGVO3A.js} +1 -1
  83. package/browser/{chunk-RN5FXNGV.js → chunk-OO77A7DS.js} +1 -1
  84. package/browser/{chunk-YTY5LGUM.js → chunk-OTPKIX47.js} +1 -1
  85. package/browser/{chunk-JP4MRIZR.js → chunk-OXLKFMX6.js} +1 -1
  86. package/browser/{chunk-3Z3XUMZG.js → chunk-OXT4MCM2.js} +1 -1
  87. package/browser/{chunk-K35FS3WK.js → chunk-PCWOQ4M5.js} +1 -1
  88. package/browser/{chunk-5SYHPXSY.js → chunk-PTUHMDVC.js} +1 -1
  89. package/browser/{chunk-H3HSBSA5.js → chunk-QK25S4NM.js} +1 -1
  90. package/browser/{chunk-5HBJ5EWC.js → chunk-QQUWC6HM.js} +3 -3
  91. package/browser/{chunk-7DXKLYTC.js → chunk-RCXAOT2X.js} +1 -1
  92. package/browser/chunk-RDVRMFGV.js +1 -0
  93. package/browser/{chunk-CFAXQCTY.js → chunk-RJBNXDT3.js} +1 -1
  94. package/browser/chunk-RPBFSDTV.js +1 -0
  95. package/browser/{chunk-Q3M23VIS.js → chunk-RWPBXONI.js} +1 -1
  96. package/browser/{chunk-MAU55XSY.js → chunk-S34LSHIQ.js} +1 -1
  97. package/browser/chunk-S6S7XGHJ.js +218 -0
  98. package/browser/{chunk-WLZ44C65.js → chunk-SDC5P2IT.js} +1 -1
  99. package/browser/{chunk-AEJBOIDP.js → chunk-SEMAKHXM.js} +1 -1
  100. package/browser/chunk-SGYWO3I3.js +1 -0
  101. package/browser/chunk-SRSTG5WD.js +24 -0
  102. package/browser/{chunk-BC2TOAFN.js → chunk-SVEIKKR3.js} +1 -1
  103. package/browser/{chunk-K3VAFHFK.js → chunk-T2FGK6UI.js} +1 -1
  104. package/browser/{chunk-UTAYUN42.js → chunk-T6IMOSZU.js} +1 -1
  105. package/browser/{chunk-ILBCVXB5.js → chunk-TAONNGO2.js} +1 -1
  106. package/browser/{chunk-CNX3DBKG.js → chunk-TOOSSKVO.js} +1 -1
  107. package/browser/{chunk-XPUR44NH.js → chunk-TWDHJUVH.js} +1 -1
  108. package/browser/{chunk-CALWTO7B.js → chunk-US3K5FZB.js} +1 -1
  109. package/browser/{chunk-X6TECU3L.js → chunk-UTBNCGOB.js} +1 -1
  110. package/browser/{chunk-RE7V7V72.js → chunk-UU6XXQWK.js} +1 -1
  111. package/browser/{chunk-WZRAWBYU.js → chunk-UZU7RKKH.js} +1 -1
  112. package/browser/chunk-V7WEP2RY.js +1 -0
  113. package/browser/{chunk-2VKVPMYX.js → chunk-W4P7RPE3.js} +1 -1
  114. package/browser/{chunk-T44R7JLY.js → chunk-W4Z5VYPQ.js} +2 -2
  115. package/browser/{chunk-U5K4B7RP.js → chunk-WDYZTVCB.js} +1 -1
  116. package/browser/{chunk-6DBGEBRS.js → chunk-WQQ5F5BC.js} +1 -1
  117. package/browser/{chunk-UFTTFE4A.js → chunk-WXCYXAQO.js} +1 -1
  118. package/browser/{chunk-ZMJLIKU2.js → chunk-X5HDTBPZ.js} +1 -1
  119. package/browser/{chunk-ZS6ZMO5N.js → chunk-XBGVNATZ.js} +1 -1
  120. package/browser/chunk-XIIXDPW2.js +1 -0
  121. package/browser/{chunk-EAUCWP5D.js → chunk-Y5MAD5K5.js} +1 -1
  122. package/browser/{chunk-Z2RXZEYH.js → chunk-YLFTM46V.js} +1 -1
  123. package/browser/{chunk-P2OXTLLK.js → chunk-YNPAZSAU.js} +1 -1
  124. package/browser/{chunk-5JQDBR5D.js → chunk-YSV3IEHW.js} +1 -1
  125. package/browser/chunk-ZQFYBAQZ.js +1 -0
  126. package/browser/{chunk-YPUGXDDI.js → chunk-ZRA7GNHN.js} +1 -1
  127. package/browser/{chunk-GJJO7TJM.js → chunk-ZVGYEEAC.js} +1 -1
  128. package/browser/{chunk-5GXQZYM2.js → chunk-ZZESRLS4.js} +1 -1
  129. package/browser/index.html +2 -2
  130. package/browser/{main-XQ3HB5VT.js → main-CZKW4WAF.js} +1 -1
  131. package/package.json +1 -1
  132. package/browser/chunk-24KCDGJR.js +0 -1
  133. package/browser/chunk-2SY3XKWM.js +0 -11
  134. package/browser/chunk-2WVXA4MB.js +0 -1
  135. package/browser/chunk-3SEMY4BK.js +0 -4
  136. package/browser/chunk-7CVGSVHV.js +0 -2
  137. package/browser/chunk-BUP3F3S5.js +0 -1
  138. package/browser/chunk-C24FXL57.js +0 -1
  139. package/browser/chunk-CSAYEWPR.js +0 -1
  140. package/browser/chunk-D2FPJJV3.js +0 -1
  141. package/browser/chunk-ET4GSDIH.js +0 -1
  142. package/browser/chunk-G6QSG6EV.js +0 -1
  143. package/browser/chunk-IIEDMVGN.js +0 -1
  144. package/browser/chunk-KUC5XBW2.js +0 -11
  145. package/browser/chunk-LU2D5KKQ.js +0 -219
  146. package/browser/chunk-MLD4Z7XB.js +0 -24
  147. package/browser/chunk-MTUJX752.js +0 -1
  148. package/browser/chunk-PZIMBCS3.js +0 -1
  149. package/browser/chunk-UBWMCEUF.js +0 -1
  150. package/browser/chunk-ULJJXCRN.js +0 -4
  151. package/browser/chunk-V4DJI72H.js +0 -3
  152. package/browser/chunk-VOCVBQYC.js +0 -1
  153. package/browser/chunk-WFZWG2Y4.js +0 -1
  154. package/browser/chunk-WICW4J6H.js +0 -1
  155. package/browser/chunk-XGZAWJ2M.js +0 -18
  156. package/browser/chunk-XZU35GVK.js +0 -19
  157. package/browser/chunk-YQRWEFE6.js +0 -1
  158. package/browser/chunk-Z3E24JZW.js +0 -1
  159. package/browser/chunk-ZJNOZULT.js +0 -1
  160. package/browser/chunk-ZZ2RLD3G.js +0 -1
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-Z4JMRDJD.js";import{a as h}from"./chunk-DUAKLYOO.js";import{a as c}from"./chunk-KXQJYBG5.js";import{a as m}from"./chunk-7E32EBOV.js";import{n as u,q as d}from"./chunk-ETYXTCKV.js";import{ja as l,na as o}from"./chunk-DUSKF5IQ.js";import{j as p}from"./chunk-NF7PG5F2.js";var b=class n{toastr=o(u);httpService=o(d);copyToClipBoard=o(g);createCustomerFromNewNumberAndSendReceipt(e,r,t,i,a){t==0?this.httpService.post(h.CreateCustomerInvoice,{InvoiceID:i.ObjectID,Mobile:e}).subscribe(s=>p(this,null,function*(){this.toastr.success(s.Message,c.Success),yield this.sendReceiptToWhatsapp(e,i,r,a)})):this.toastr.info("WABA is not supported yet",c.Info)}createWhatsappReceipt(e,r,t){let i=I=>new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(I).replace("Rp","").trim().split(",00")?.[0],a=JSON.parse(localStorage.getItem("AccountInfo"))?.BrandName,{ObjectID:s,Final:y,InvoiceNumber:f}=e,v=window.location.host,w=`https://receipt.dealpos.app/s?Data=${window.btoa(`${s}_${v}`)}`;return this.convertWhatsappTemplateMessage({Amount:i(y),Brand:a,Currency:r,Number:f,ReceiptLink:w},t)}convertWhatsappTemplateMessage(e,r){let t=r||m?.whatsappTemplateMessage,i=["Brand","Number","Currency","Amount","ReceiptLink"],a=t;return i.forEach(s=>a=a.replace(`{${s}}`,e[s])),a}redirectToWhatsapp(e,r){let t=e;t=t[0]==="0"?`62${t.slice(1)}`:t;let i=`whatsapp://send?phone=${t}&text=${encodeURIComponent(r)}`;window.location.href=i,this.showToastrWhatsappNoInstalled()}showToastrWhatsappNoInstalled(){let e=!1;window.onblur=function(){e=!0},setTimeout(()=>{e||this.toastr.warning(`Currently, sending an e-receipt automatically opens WhatsApp Desktop, provided the device has the app installed
1
+ import{a as g}from"./chunk-Z4JMRDJD.js";import{a as h}from"./chunk-C7OXYN2X.js";import{a as c}from"./chunk-KXQJYBG5.js";import{a as m}from"./chunk-KQP6YT7O.js";import{n as u,q as d}from"./chunk-ETYXTCKV.js";import{ja as l,na as o}from"./chunk-DUSKF5IQ.js";import{j as p}from"./chunk-NF7PG5F2.js";var b=class n{toastr=o(u);httpService=o(d);copyToClipBoard=o(g);createCustomerFromNewNumberAndSendReceipt(e,r,t,i,a){t==0?this.httpService.post(h.CreateCustomerInvoice,{InvoiceID:i.ObjectID,Mobile:e}).subscribe(s=>p(this,null,function*(){this.toastr.success(s.Message,c.Success),yield this.sendReceiptToWhatsapp(e,i,r,a)})):this.toastr.info("WABA is not supported yet",c.Info)}createWhatsappReceipt(e,r,t){let i=I=>new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(I).replace("Rp","").trim().split(",00")?.[0],a=JSON.parse(localStorage.getItem("AccountInfo"))?.BrandName,{ObjectID:s,Final:y,InvoiceNumber:f}=e,v=window.location.host,w=`https://receipt.dealpos.app/s?Data=${window.btoa(`${s}_${v}`)}`;return this.convertWhatsappTemplateMessage({Amount:i(y),Brand:a,Currency:r,Number:f,ReceiptLink:w},t)}convertWhatsappTemplateMessage(e,r){let t=r||m?.whatsappTemplateMessage,i=["Brand","Number","Currency","Amount","ReceiptLink"],a=t;return i.forEach(s=>a=a.replace(`{${s}}`,e[s])),a}redirectToWhatsapp(e,r){let t=e;t=t[0]==="0"?`62${t.slice(1)}`:t;let i=`whatsapp://send?phone=${t}&text=${encodeURIComponent(r)}`;window.location.href=i,this.showToastrWhatsappNoInstalled()}showToastrWhatsappNoInstalled(){let e=!1;window.onblur=function(){e=!0},setTimeout(()=>{e||this.toastr.warning(`Currently, sending an e-receipt automatically opens WhatsApp Desktop, provided the device has the app installed
2
2
  `,"WhatsApp not installed")},2e3)}copyToClipboard(e){return new Promise((r,t)=>this.copyToClipBoard.copy(e).then(()=>{this.toastr.info("Message copied to clipboard. If WhatsApp doesn't show the message, please paste it manually.","Receipt Ready",{timeOut:8e3}),r("Copied to clipboard")}).catch(i=>{console.log(i),this.toastr.warning("Could not copy message to clipboard","Clipboard Error",{timeOut:8e3}),t(i)}))}sendReceiptToWhatsapp(e,r,t,i){return p(this,null,function*(){try{let a=this.createWhatsappReceipt(r,t,i);try{yield this.copyToClipboard(a)}finally{this.redirectToWhatsapp(e,a)}}catch(a){console.warn(a),this.toastr.error("Failed to send receipt")}})}static \u0275fac=function(r){return new(r||n)};static \u0275prov=l({token:n,factory:n.\u0275fac})};export{b as a};
@@ -1 +1 @@
1
- import{a as J}from"./chunk-D7OC62XU.js";import{a as G}from"./chunk-KTMZNXL5.js";import{g as Y,h as z}from"./chunk-RPOIMN4D.js";import"./chunk-RAZRQRFF.js";import{a as U}from"./chunk-6SDQEEUU.js";import"./chunk-JI7J6USO.js";import"./chunk-N7HFG3PM.js";import"./chunk-XHLFPJPB.js";import"./chunk-DXN47M53.js";import"./chunk-HPCTP4FD.js";import"./chunk-KFWGALIF.js";import"./chunk-Z7UCI72M.js";import"./chunk-PPMQE2JW.js";import"./chunk-7OCVKGLK.js";import"./chunk-VNSMXUWL.js";import"./chunk-LCBHD53Y.js";import"./chunk-IKV23X6H.js";import"./chunk-C6TJ57ES.js";import"./chunk-RJDDPGUV.js";import"./chunk-VUC4E73K.js";import"./chunk-OTSIIVCA.js";import{a as q}from"./chunk-DUAKLYOO.js";import"./chunk-KXQJYBG5.js";import"./chunk-3MLD6BQG.js";import"./chunk-LUUIBDJG.js";import"./chunk-R7VXUOCU.js";import"./chunk-NYN3E7NN.js";import"./chunk-4XQKDYF2.js";import"./chunk-RE7V7V72.js";import"./chunk-5SYHPXSY.js";import"./chunk-AGPZGAMV.js";import{b as A}from"./chunk-K74WZXBF.js";import"./chunk-PPTZHIIZ.js";import"./chunk-7E32EBOV.js";import{q as k}from"./chunk-ETYXTCKV.js";import{$ as M,$a as S,Db as d,Eb as a,Fb as n,Fc as v,Gb as c,Gc as N,Hc as _,Nd as B,Qd as $,Sd as j,Ua as r,Ub as f,X as h,da as E,db as D,hc as l,ib as P,jc as C,na as I,od as O,pc as L,qc as R,qd as H,r as b,rc as s,s as g,vd as w,wb as u,xc as T,yb as p,yc as V}from"./chunk-DUSKF5IQ.js";import{a as x,b as F}from"./chunk-NF7PG5F2.js";var Q=()=>["/menu/Logistics/Setup/Courier/Form"],W=t=>({ID:t});function X(t,m){if(t&1&&(a(0,"a",1),c(1,"i",16),l(2,"Edit"),n()),t&2){f();let e=s(0);d("routerLink",T(2,Q))("queryParams",V(3,W,e==null||e.Form==null?null:e.Form.ID))}}function Z(t,m){if(t&1&&l(0),t&2){f(2);let e=s(0);C(" / ",e.Form.Creator," ")}}function ee(t,m){if(t&1&&(l(0),v(1,"date"),u(2,Z,1,1)),t&2){f();let e=s(0);C(" ",_(1,2,e.Form.Created,"dd MMM yyyy HH:mm")," "),r(2),p(!(e==null||e.Form==null)&&e.Form.Creator?2:-1)}}function te(t,m){t&1&&l(0," - ")}function ie(t,m){if(t&1&&l(0),t&2){f(2);let e=s(0);C(" / ",e.Form.Modifier," ")}}function ne(t,m){if(t&1&&(a(0,"span",15)(1,"b"),l(2,"Modified:"),n(),l(3),v(4,"date"),u(5,ie,1,1),n()),t&2){f();let e=s(0);r(3),C(" ",_(4,2,e==null||e.Form==null?null:e.Form.Modified,"dd MMM yyyy HH:mm")," "),r(2),p(!(e==null||e.Form==null)&&e.Form.Modified&&(!(e==null||e.Form==null)&&e.Form.Modifier)?5:-1)}}var K=class t extends G{constructor(e,o){super(e);this.pageSetupService=e;this.role=o;this.initCourierInfo()}pageSetupService;role;httpService=I(k);activeRoute=I(B);courierInfo$;ngOnInit(){}initCourierInfo(){this.courierInfo$=g([this.menuData$,this.activeRoute.queryParams]).pipe(M(([e,o])=>this.httpService.get(`${q.GetCourierInfo}/${o.ID}`)),b(e=>{let o=e?.Form?.EntityName?e?.Form?.EntityName?.join(", "):"";return e.Form=F(x({},e.Form),{Entity:o}),e}),E(e=>{this.menuData.update(o=>F(x({},o),{H:e?.PageTitle||"Courier Info"}))}),h(1))}static \u0275fac=function(o){return new(o||t)(S(U),S(A))};static \u0275cmp=D({type:t,selectors:[["app-courier-info"]],features:[P],decls:32,vars:12,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown"],["role","button","matTooltipPosition","above","matTooltip","Edit",1,"btn","btn-outline-secondary","me-3",3,"routerLink","queryParams"],[1,"container-fluid","mt-5"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-6"],[1,"form-floating-outline"],["labelValue","Name",3,"inputValue"],["labelValue","Suspend",3,"inputValue"],["labelValue","Destination Outlet Filter",3,"inputValue"],[1,"alert","alert-warning"],["aria-hidden","true",1,"fa","fa-file-text-o"],[1,"ms-3"],["aria-hidden","true",1,"fa-solid","fa-pen-to-square","me-3"]],template:function(o,y){if(o&1&&(L(0),v(1,"async"),a(2,"mainpanel-cmp",0)(3,"actions"),u(4,X,3,5,"a",1),n(),a(5,"content")(6,"div",2)(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"h3"),l(12,"General"),n()(),a(13,"div",7)(14,"div",3)(15,"div",8)(16,"div",9),c(17,"lib-info-page-input",10),n()(),a(18,"div",8)(19,"div",9),c(20,"lib-info-page-input",11),n()(),a(21,"div",8)(22,"div",9),c(23,"lib-info-page-input",12),n()()()()()()(),a(24,"div",13),c(25,"i",14),a(26,"span")(27,"b"),l(28,"Created: "),n(),u(29,ee,3,5)(30,te,1,0),n(),u(31,ne,6,5,"span",15),n()()()()),o&2){let i=R(N(1,9,y.courierInfo$));r(2),d("pageData",y.menuData())("hideSearchBox",!0)("hideSearchDropdown",!0),r(2),p(y.role.logistic.Edit?4:-1),r(13),d("inputValue",i==null||i.Form==null?null:i.Form.Name),r(3),d("inputValue",!(i==null||i.Form==null)&&i.Form.Bin?"Yes":"No"),r(3),d("inputValue",i==null||i.Form==null?null:i.Form.Entity),r(6),p(!(i==null||i.Form==null)&&i.Form.Created?29:30),r(2),p(!(i==null||i.Form==null)&&i.Form.Modified?31:-1)}},dependencies:[w,z,Y,j,$,J,O,H],encapsulation:2,changeDetection:0})};export{K as CourierInfoComponent};
1
+ import{a as J}from"./chunk-D7OC62XU.js";import{a as G}from"./chunk-KTMZNXL5.js";import{g as Y,h as z}from"./chunk-33VQWLZJ.js";import"./chunk-3FWBKAVK.js";import{a as U}from"./chunk-5Z5ZTHVS.js";import"./chunk-JI7J6USO.js";import"./chunk-N7HFG3PM.js";import"./chunk-5HIT7CEU.js";import"./chunk-DXN47M53.js";import"./chunk-HPCTP4FD.js";import"./chunk-KFWGALIF.js";import"./chunk-Z7UCI72M.js";import"./chunk-PPMQE2JW.js";import"./chunk-7OCVKGLK.js";import"./chunk-KJWRHA5N.js";import"./chunk-LCBHD53Y.js";import"./chunk-IKV23X6H.js";import"./chunk-C6TJ57ES.js";import"./chunk-RJDDPGUV.js";import"./chunk-VUC4E73K.js";import"./chunk-OTSIIVCA.js";import{a as q}from"./chunk-C7OXYN2X.js";import"./chunk-KXQJYBG5.js";import"./chunk-3MLD6BQG.js";import"./chunk-LUUIBDJG.js";import"./chunk-R7VXUOCU.js";import"./chunk-NYN3E7NN.js";import"./chunk-4XQKDYF2.js";import"./chunk-UU6XXQWK.js";import"./chunk-PTUHMDVC.js";import"./chunk-AGPZGAMV.js";import{b as A}from"./chunk-K74WZXBF.js";import"./chunk-PPTZHIIZ.js";import"./chunk-KQP6YT7O.js";import{q as k}from"./chunk-ETYXTCKV.js";import{$ as M,$a as S,Db as d,Eb as a,Fb as n,Fc as v,Gb as c,Gc as N,Hc as _,Nd as B,Qd as $,Sd as j,Ua as r,Ub as f,X as h,da as E,db as D,hc as l,ib as P,jc as C,na as I,od as O,pc as L,qc as R,qd as H,r as b,rc as s,s as g,vd as w,wb as u,xc as T,yb as p,yc as V}from"./chunk-DUSKF5IQ.js";import{a as x,b as F}from"./chunk-NF7PG5F2.js";var Q=()=>["/menu/Logistics/Setup/Courier/Form"],W=t=>({ID:t});function X(t,m){if(t&1&&(a(0,"a",1),c(1,"i",16),l(2,"Edit"),n()),t&2){f();let e=s(0);d("routerLink",T(2,Q))("queryParams",V(3,W,e==null||e.Form==null?null:e.Form.ID))}}function Z(t,m){if(t&1&&l(0),t&2){f(2);let e=s(0);C(" / ",e.Form.Creator," ")}}function ee(t,m){if(t&1&&(l(0),v(1,"date"),u(2,Z,1,1)),t&2){f();let e=s(0);C(" ",_(1,2,e.Form.Created,"dd MMM yyyy HH:mm")," "),r(2),p(!(e==null||e.Form==null)&&e.Form.Creator?2:-1)}}function te(t,m){t&1&&l(0," - ")}function ie(t,m){if(t&1&&l(0),t&2){f(2);let e=s(0);C(" / ",e.Form.Modifier," ")}}function ne(t,m){if(t&1&&(a(0,"span",15)(1,"b"),l(2,"Modified:"),n(),l(3),v(4,"date"),u(5,ie,1,1),n()),t&2){f();let e=s(0);r(3),C(" ",_(4,2,e==null||e.Form==null?null:e.Form.Modified,"dd MMM yyyy HH:mm")," "),r(2),p(!(e==null||e.Form==null)&&e.Form.Modified&&(!(e==null||e.Form==null)&&e.Form.Modifier)?5:-1)}}var K=class t extends G{constructor(e,o){super(e);this.pageSetupService=e;this.role=o;this.initCourierInfo()}pageSetupService;role;httpService=I(k);activeRoute=I(B);courierInfo$;ngOnInit(){}initCourierInfo(){this.courierInfo$=g([this.menuData$,this.activeRoute.queryParams]).pipe(M(([e,o])=>this.httpService.get(`${q.GetCourierInfo}/${o.ID}`)),b(e=>{let o=e?.Form?.EntityName?e?.Form?.EntityName?.join(", "):"";return e.Form=F(x({},e.Form),{Entity:o}),e}),E(e=>{this.menuData.update(o=>F(x({},o),{H:e?.PageTitle||"Courier Info"}))}),h(1))}static \u0275fac=function(o){return new(o||t)(S(U),S(A))};static \u0275cmp=D({type:t,selectors:[["app-courier-info"]],features:[P],decls:32,vars:12,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown"],["role","button","matTooltipPosition","above","matTooltip","Edit",1,"btn","btn-outline-secondary","me-3",3,"routerLink","queryParams"],[1,"container-fluid","mt-5"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-6"],[1,"form-floating-outline"],["labelValue","Name",3,"inputValue"],["labelValue","Suspend",3,"inputValue"],["labelValue","Destination Outlet Filter",3,"inputValue"],[1,"alert","alert-warning"],["aria-hidden","true",1,"fa","fa-file-text-o"],[1,"ms-3"],["aria-hidden","true",1,"fa-solid","fa-pen-to-square","me-3"]],template:function(o,y){if(o&1&&(L(0),v(1,"async"),a(2,"mainpanel-cmp",0)(3,"actions"),u(4,X,3,5,"a",1),n(),a(5,"content")(6,"div",2)(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"h3"),l(12,"General"),n()(),a(13,"div",7)(14,"div",3)(15,"div",8)(16,"div",9),c(17,"lib-info-page-input",10),n()(),a(18,"div",8)(19,"div",9),c(20,"lib-info-page-input",11),n()(),a(21,"div",8)(22,"div",9),c(23,"lib-info-page-input",12),n()()()()()()(),a(24,"div",13),c(25,"i",14),a(26,"span")(27,"b"),l(28,"Created: "),n(),u(29,ee,3,5)(30,te,1,0),n(),u(31,ne,6,5,"span",15),n()()()()),o&2){let i=R(N(1,9,y.courierInfo$));r(2),d("pageData",y.menuData())("hideSearchBox",!0)("hideSearchDropdown",!0),r(2),p(y.role.logistic.Edit?4:-1),r(13),d("inputValue",i==null||i.Form==null?null:i.Form.Name),r(3),d("inputValue",!(i==null||i.Form==null)&&i.Form.Bin?"Yes":"No"),r(3),d("inputValue",i==null||i.Form==null?null:i.Form.Entity),r(6),p(!(i==null||i.Form==null)&&i.Form.Created?29:30),r(2),p(!(i==null||i.Form==null)&&i.Form.Modified?31:-1)}},dependencies:[w,z,Y,j,$,J,O,H],encapsulation:2,changeDetection:0})};export{K as CourierInfoComponent};
@@ -1 +1 @@
1
- import{a as o}from"./chunk-PPTZHIIZ.js";import{a as i}from"./chunk-7E32EBOV.js";import{$ as u,Cd as h,Gd as d,ja as m,na as g,r as s}from"./chunk-DUSKF5IQ.js";var c=class n{http=g(d);uploadFile(t,e){o.IsEmpty(e)&&(e="testfolder");let r=new h({"Cache-Control":"no-cache"});return this.http.put(`${i.uppy.storageHost}/api/upload/binary/${e}/${t.name}`,t,{headers:r})}uploadFileThroughPreSignedUrl(t,e,r=!0,a){o.IsEmpty(e)&&(e="testfolder");let l=new File([t],t.name.replace(/ /g,"_"),{type:t.type});return a=a||(r?"small":void 0),this.generatePreSignedURL(l,e,a).pipe(u(p=>this.http.put(p.Authorization,l).pipe(s(()=>({url:p.URL,thumbnail:p.Thumbnail})))))}uploadFileToServer(t,e){return this.uploadFile(t,e).pipe(s(r=>r.URL))}uploadWithSignedUrl(t,e){return this.http.put(t,e)}generatePreSignedURL(t,e,r){return this.http.get(`${i.uppy.storageHost}/api/GeneratePresigned/${e}/${t.name}${r?`?thumbnail=${r}`:""}`)}deleteImageInBucket(t,e){return this.http.delete(`${i.uppy.storageHost}/api/Upload/Delete/${e}/${t}`)}uploadRemoteURLToCloudflare(t){return this.http.post(`${i.uppy.storageHost}/api/upload/MultiURL`,t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})};export{c as a};
1
+ import{a as o}from"./chunk-PPTZHIIZ.js";import{a as i}from"./chunk-KQP6YT7O.js";import{$ as u,Cd as h,Gd as d,ja as m,na as g,r as s}from"./chunk-DUSKF5IQ.js";var c=class n{http=g(d);uploadFile(t,e){o.IsEmpty(e)&&(e="testfolder");let r=new h({"Cache-Control":"no-cache"});return this.http.put(`${i.uppy.storageHost}/api/upload/binary/${e}/${t.name}`,t,{headers:r})}uploadFileThroughPreSignedUrl(t,e,r=!0,a){o.IsEmpty(e)&&(e="testfolder");let l=new File([t],t.name.replace(/ /g,"_"),{type:t.type});return a=a||(r?"small":void 0),this.generatePreSignedURL(l,e,a).pipe(u(p=>this.http.put(p.Authorization,l).pipe(s(()=>({url:p.URL,thumbnail:p.Thumbnail})))))}uploadFileToServer(t,e){return this.uploadFile(t,e).pipe(s(r=>r.URL))}uploadWithSignedUrl(t,e){return this.http.put(t,e)}generatePreSignedURL(t,e,r){return this.http.get(`${i.uppy.storageHost}/api/GeneratePresigned/${e}/${t.name}${r?`?thumbnail=${r}`:""}`)}deleteImageInBucket(t,e){return this.http.delete(`${i.uppy.storageHost}/api/Upload/Delete/${e}/${t}`)}uploadRemoteURLToCloudflare(t){return this.http.post(`${i.uppy.storageHost}/api/upload/MultiURL`,t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=m({token:n,factory:n.\u0275fac,providedIn:"root"})};export{c as a};
@@ -1 +1 @@
1
- import{a as U}from"./chunk-ES6YUR3X.js";import{a as X}from"./chunk-H3HSBSA5.js";import{a as j}from"./chunk-U2JF2UMO.js";import{N as G,g as H}from"./chunk-7OCVKGLK.js";import{Bb as E,Cb as D,Db as m,Eb as a,Fb as c,Fc as P,Gb as s,Gc as u,Hc as v,Na as x,Oc as p,Qa as w,Ra as O,Tc as M,Ua as o,Ub as g,Yb as z,Zb as A,_b as L,db as N,hc as d,ic as C,id as B,jc as f,qd as R,sb as T,sd as Q,vd as F,wb as l,yb as r,yc as h,zb as I}from"./chunk-DUSKF5IQ.js";import{a as V,b as S}from"./chunk-NF7PG5F2.js";var q=["barcode"],J=n=>({"col-12 border-0":n}),K=n=>({"col-12":n});function W(n,i){n&1&&s(0,"link",15)}function Y(n,i){n&1&&s(0,"link",16)}function Z(n,i){n&1&&s(0,"link",17)}function nn(n,i){if(n&1&&(a(0,"div",7)(1,"span"),d(2),P(3,"date"),c()()),n&2){let t,e=g();o(2),C(v(3,1,(t=e.receipt())==null||t.Invoice==null?null:t.Invoice.Date,"dd MMM yy"))}}function tn(n,i){if(n&1&&(a(0,"div",8)(1,"span",18),d(2,"Invoice Number:"),c(),a(3,"span"),d(4),c()()),n&2){let t,e=g();o(4),C((t=e.receipt())==null||t.Invoice==null?null:t.Invoice.Number)}}function en(n,i){n&1&&s(0,"img",19,0)}function on(n,i){if(n&1&&s(0,"qr-code",20),n&2){let t=g(2);m("value",t.invoiceNumber())("size",t.packingSlipConfig().General.QrCodeHeight)("margin",3)}}function cn(n,i){if(n&1&&(a(0,"div",9),l(1,en,2,0,"img",19)(2,on,1,3,"qr-code",20),c()),n&2){let t,e=g();o(),r((t=(t=e.packingSlipConfig())==null||t.General==null?null:t.General.BarcodeVisibleV2)===e.PackingSlipCodeType.Barcode?1:t===e.PackingSlipCodeType.QR?2:-1)}}function an(n,i){if(n&1&&(a(0,"h6"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.receipt())==null||t.Customer==null?null:t.Customer.ContactDisplay)}}function ln(n,i){if(n&1&&(a(0,"span"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.receipt())==null||t.Customer==null?null:t.Customer.Mobile)}}function rn(n,i){if(n&1&&(a(0,"div",23),d(1),c()),n&2){let t,e=g(2);o(),f(" ",(t=e.receipt())==null||t.Customer==null?null:t.Customer.Address," ")}}function gn(n,i){if(n&1&&(a(0,"div",11)(1,"div",21)(2,"h6",22),d(3,"Receiver:"),c(),a(4,"div"),l(5,an,2,1,"h6"),l(6,ln,2,1,"span"),c()(),l(7,rn,2,1,"div",23),c()),n&2){let t=g();o(5),r(t.customerNameVisible()?5:-1),o(),r(t.CustomerMobileVisible()?6:-1),o(),r(t.customerAddressVisible()?7:-1)}}function dn(n,i){if(n&1&&(a(0,"h6"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.template())==null?null:t.DisplayName)}}function pn(n,i){if(n&1&&(a(0,"span"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.template())==null?null:t.ContactInfo)}}function _n(n,i){if(n&1&&(a(0,"div",24),d(1),c()),n&2){let t,e=g(2);o(),f(" ",(t=e.template())==null?null:t.Address," ")}}function Cn(n,i){if(n&1&&(a(0,"div",11)(1,"div",21)(2,"h6",22),d(3,"Sender:"),c(),a(4,"div"),l(5,dn,2,1,"h6"),l(6,pn,2,1,"span"),c()(),l(7,_n,2,1,"div",24),c()),n&2){let t=g();o(5),r(t.storeNameVisible()?5:-1),o(),r(t.storePhoneVisible()?6:-1),o(),r(t.storeAddressVisible()?7:-1)}}function sn(n,i){if(n&1&&(a(0,"div",25)(1,"h5"),d(2),c()()),n&2){let t,e,_=g(2);m("ngClass",h(2,J,!_.invoiceNoteVisible()||!(!((t=_.receipt())==null||t.Invoice==null)&&t.Invoice.Note))),o(2),C((e=_.receipt())==null?null:e.Tag)}}function mn(n,i){if(n&1&&(a(0,"div",26),s(1,"p",27),c()),n&2){let t,e,_=g(2);m("ngClass",h(2,K,!_.orderTagVisible()||!((t=_.receipt())!=null&&t.Tag))),o(),m("innerHTML",(e=_.receipt())==null||e.Invoice==null?null:e.Invoice.Note,x)}}function Pn(n,i){if(n&1&&(a(0,"div",12),l(1,sn,3,4,"div",25),l(2,mn,2,4,"div",26),c()),n&2){let t,e=g();o(),r(e.orderTagVisible()?1:-1),o(),r(e.invoiceNoteVisible()&&(!((t=e.receipt())==null||t.Invoice==null)&&t.Invoice.Note)?2:-1)}}function Mn(n,i){n&1&&(a(0,"th",29),d(1,"Name"),c())}function bn(n,i){n&1&&(a(0,"th",30),d(1,"Code"),c())}function On(n,i){n&1&&(a(0,"th",30),d(1,"QTy"),c())}function un(n,i){if(n&1&&s(0,"span",33),n&2){let t=g(2).$implicit;m("innerHTML",t==null?null:t.Note,x)}}function xn(n,i){if(n&1&&(a(0,"td",32)(1,"div"),d(2),c(),l(3,un,1,1,"span",33),c()),n&2){let t=g().$implicit,e=g(2);o(2),C(t==null?null:t.Name),o(),r(e.itemNotesVisible()?3:-1)}}function fn(n,i){if(n&1&&(a(0,"td",30),d(1),c()),n&2){let t=g().$implicit;o(),C(t==null?null:t.Code)}}function hn(n,i){if(n&1&&(a(0,"td",30),d(1),P(2,"number"),c()),n&2){let t=g().$implicit;o(),C(u(2,1,t==null?null:t.Quantity))}}function vn(n,i){if(n&1&&(a(0,"tr")(1,"td",30),d(2),c(),l(3,xn,4,2,"td",32),l(4,fn,2,1,"td",30),l(5,hn,3,3,"td",30),c()),n&2){let t=i.$index,e=g(2);o(2),C(t+1),o(),r(e.productNameVisible()?3:-1),o(),r(e.productCodeVisible()?4:-1),o(),r(e.producctQtyVisible()?5:-1)}}function yn(n,i){if(n&1&&s(0,"td",34),n&2){let t=g(3);m("colSpan",t.getVisibleColumnCount())}}function kn(n,i){if(n&1&&(a(0,"tfoot",31)(1,"tr",31),l(2,yn,1,1,"td",34),a(3,"td",35)(4,"span",36),d(5,"Total"),c()(),a(6,"td",35)(7,"span",36),d(8),P(9,"sum"),P(10,"number"),c()()()()),n&2){let t,e=g(2);o(2),r(e.productCodeVisible()||e.productNameVisible()?2:-1),o(6),C(u(10,5,v(9,2,(t=e.receipt())==null?null:t.List,"Quantity")))}}function Vn(n,i){if(n&1&&(a(0,"table",14)(1,"thead")(2,"tr")(3,"th",28),d(4,"No"),c(),l(5,Mn,2,0,"th",29),l(6,bn,2,0,"th",30),l(7,On,2,0,"th",30),c()(),a(8,"tbody"),E(9,vn,6,4,"tr",null,I),c(),l(11,kn,11,7,"tfoot",31),c()),n&2){let t,e=g();o(5),r(e.productNameVisible()?5:-1),o(),r(e.productCodeVisible()?6:-1),o(),r(e.producctQtyVisible()?7:-1),o(2),D((t=e.receipt())==null?null:t.List),o(2),r(e.producctQtyVisible()?11:-1)}}var $=class n{receipt=M();config=M();template=M();css=M();_barcodeElement;invoiceNumber=p(()=>this.receipt()?.Invoice?.Number);packingSlipConfig=p(()=>this.config().PrintConfigPackingSlip);invoiceNumberVisible=p(()=>this.packingSlipConfig()?.General?.InvoiceNumberVisible);invoiceDateVisible=p(()=>this.packingSlipConfig()?.General?.InvoiceDateVisible);barcodeVisible=p(()=>this.packingSlipConfig()?.General?.BarcodeVisibleV2!==1);storeNameVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StoreNameVisible);storeAddressVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StoreAddressVisible);storePhoneVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StorePhoneVisible);customerNameVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerNameVisible);customerAddressVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerAddressVisible);CustomerMobileVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerMobileVisible);producctQtyVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductQuantityVisible);productNameVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductNameVisible);productCodeVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductCodeVisible);invoiceNoteVisible=p(()=>this.packingSlipConfig()?.Footer?.InvoiceNoteVisible);orderTagVisible=p(()=>this.packingSlipConfig()?.Footer?.SalesOrderTagVisible);itemNotesVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductNoteVisible);getVisibleColumnCount=p(()=>{let i=0;return this.productNameVisible()&&i++,this.productCodeVisible()&&i++,i});PackingSlipCodeType=U;barcodeOptions={width:1,height:46,displayValue:!1,backgroundColor:"",lineColor:"#000",margin:0,format:"CODE128",flat:!0};set content(i){i&&(this._barcodeElement=i,this.renderBarcode())}renderBarcode(){let i=this.packingSlipConfig()?.General.BarcodeHeight||46,t=this.packingSlipConfig()?.BarcodeWidthPercent||1,e=this.invoiceNumber(),_=S(V({},this.barcodeOptions),{height:i,width:t});JsBarcode(this._barcodeElement.nativeElement,e,_)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=N({type:n,selectors:[["app-packing-slip-v2"]],viewQuery:function(t,e){if(t&1&&z(q,5),t&2){let _;A(_=L())&&(e.content=_.first)}},inputs:{receipt:[1,"receipt"],config:[1,"config"],template:[1,"template"],css:[1,"css"]},decls:18,vars:13,consts:[["barcode",""],["href","/Styles/Print/Master.css","rel","stylesheet","type","text/css"],["href","/Styles/Print/LX300_Core.css","rel","stylesheet","type","text/css"],["href","/Styles/Print/LX300.css","rel","stylesheet","type","text/css"],["rel","stylesheet","type","text/css"],[1,"print_container_delivery","border","border-dark","px-4",2,"width","378px"],[1,"d-flex","align-items-center","position-relative","justify-content-center","border-bottom","border-dark","py-6"],[1,"position-absolute","end-0","me-4","fw-bold"],[1,"text-center","mt-4","fw-bold"],[1,"w-100","d-flex","justify-content-center","mt-4","barcode-container"],[1,"row","mt-6"],[1,"col"],[1,"row","mt-8","border","rounded-1","border-dark","g-0"],[1,"mt-8","mb-5"],[1,"w-100","table","table-sm","table-bordered"],["href",O`/Styles/Print/Master.css`,"rel","stylesheet","type","text/css"],["href",O`/Styles/Print/LX300_Core.css`,"rel","stylesheet","type","text/css"],["href",O`/Styles/Print/LX300.css`,"rel","stylesheet","type","text/css"],[1,"me-2"],["id","barcode",1,"barcode-image"],[3,"value","size","margin"],[1,"d-flex","justify-content-start"],[1,"me-3"],[1,"mt-3",2,"text-align","left"],[1,"mt-3",2,"text-align","right"],[1,"col-5","text-center","py-4","border-end","border-dark","d-flex","align-items-center","justify-content-center",3,"ngClass"],[1,"col-7","text-center","py-4","d-flex","align-items-center","justify-content-center",3,"ngClass"],[1,"mt-0","fst-italic",3,"innerHTML"],[1,"text-center",2,"width","10px"],[1,"text-start"],[1,"text-center"],[1,"border-0"],[1,"text-start","lh-base"],[1,"text-muted","fst-italic","note-text",3,"innerHTML"],[1,"border-0",3,"colSpan"],[1,"text-center","border-0"],[1,"fw-bold"]],template:function(t,e){if(t&1&&(l(0,W,1,0,"link",1),l(1,Y,1,0,"link",2),l(2,Z,1,0,"link",3),s(3,"link",4),P(4,"StylesheetSafeUrl"),a(5,"div",5)(6,"div",6)(7,"h3"),d(8,"PACKING SLIP"),c(),l(9,nn,4,4,"div",7),c(),l(10,tn,5,1,"div",8),l(11,cn,3,1,"div",9),a(12,"div",10),l(13,gn,8,3,"div",11),l(14,Cn,8,3,"div",11),c(),l(15,Pn,3,2,"div",12),a(16,"div",13),l(17,Vn,12,4,"table",14),c()()),t&2){let _,y,k,b;r((_=e.template())!=null&&_.PrintLX300?0:-1),o(),r((y=e.template())!=null&&y.PrintLX300?1:-1),o(),r((k=e.template())!=null&&k.PrintLX300?2:-1),o(),T("href",(b=e.css())!=null&&b.Size8cm?u(4,11,(b=e.css())==null?null:b.Size8cm):null,w),o(6),r(e.invoiceDateVisible()?9:-1),o(),r(e.invoiceNumberVisible()?10:-1),o(),r(e.barcodeVisible()?11:-1),o(2),r(e.customerNameVisible()||e.CustomerMobileVisible()||e.customerAddressVisible()?13:-1),o(),r(e.storeNameVisible()||e.storePhoneVisible()||e.storeAddressVisible()?14:-1),o(),r(e.orderTagVisible()||e.invoiceNoteVisible()?15:-1),o(2),r(e.productNameVisible()||e.productCodeVisible()?17:-1)}},dependencies:[F,B,G,j,Q,R,H,X],styles:["div.signature[_ngcontent-%COMP%], div.signature-b[_ngcontent-%COMP%]{clear:both;height:111px;margin-top:25px}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:70px;width:150px}div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%]{float:left;margin-left:155px;width:150px}div.signature[_ngcontent-%COMP%] div.noLeftMargin[_ngcontent-%COMP%]{margin-left:0!important}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:120px!important}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:150px;margin-right:5px}div.print_container[_ngcontent-%COMP%] div.footerNote[_ngcontent-%COMP%]{padding-left:5px;width:150px}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.fullSignatureNote[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%]{display:table-row-group}body[_ngcontent-%COMP%]{margin:0;padding:0;font-family:Arial;font-size:12px}div.print_container_delivery[_ngcontent-%COMP%]{margin:0 auto;width:230px;text-align:left;padding:0 4px}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{display:none}div.print_container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{width:100%;text-align:center;display:none}div.sign[_ngcontent-%COMP%]{margin:0 auto!important;display:block!important}div.signature[_ngcontent-%COMP%]{clear:both;height:111px;margin:25px auto 0;padding:0}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{margin-left:10px;max-width:80px;float:left}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:10px!important}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;max-width:80px;margin-left:5px;text-align:left}div.signature[_ngcontent-%COMP%] div.name[_ngcontent-%COMP%]{border-top:solid 1px Gray;height:15px;text-align:center}div.signature[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0 0 80px;padding:0;font-size:12px;font-weight:700}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.divDate[_ngcontent-%COMP%]{width:100%;text-align:center}div.print_container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%}div.print_container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:Garamond;font-weight:700!important;margin:0;padding:0;text-align:center}small[_ngcontent-%COMP%]{font-size:12px;text-align:center!important;font-style:italic;display:block;margin:0 0 10px}div.address[_ngcontent-%COMP%]{width:100%;padding:0 0 5px;margin-top:3px;text-align:center!important;line-height:18px}div.details[_ngcontent-%COMP%]{border-bottom:solid 1px Black;margin:5px 0 8px;text-align:center;font-size:11px;font-weight:700;padding:5px 0}h2[_ngcontent-%COMP%]{font-size:14px;margin:10px 0;padding:0;text-align:center}div.customer[_ngcontent-%COMP%]{margin:0 0 10px;text-align:center;font-size:11px;padding:5px 0}div.customer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:12px}div.customer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:16px}div.customer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;line-height:16px}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left}table[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}div.cartAmount[_ngcontent-%COMP%]{margin-top:3px;text-align:right;padding-right:1px}div.cartAmount[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}div.cartAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}div.section[_ngcontent-%COMP%]{margin:5px 0 0;min-height:30px}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{width:229px;padding:5px 0}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font-weight:700;text-align:center;margin:0 0 2px}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%], div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border:1px dotted black;margin:0;padding:10px 5px;background-color:#ffffbf;list-style:none;display:block;text-align:center}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;display:block;text-align:center}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font-weight:700;text-align:center}div.extra[_ngcontent-%COMP%]{clear:both}div.extra[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;text-align:center}div.extra[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{border:1px dotted black;margin:3px 0 0;padding:10px 5px;background-color:#ffffbf;display:block;text-align:center}p[_ngcontent-%COMP%]{margin:3px 0 0;padding:0}div.note[_ngcontent-%COMP%]{padding-top:13px}div.note[_ngcontent-%COMP%] u[_ngcontent-%COMP%]{display:block;font-weight:700;margin:2px 0 15px;text-align:center;font-style:italic}div.note[_ngcontent-%COMP%] .mid[_ngcontent-%COMP%]{text-align:center}div.note[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:3px 0 0 18px;padding:0;list-style-type:disc}div.note[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0;padding:0;line-height:16px;font-size:11px}div.note[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:3px 0 0 20px;padding:0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] span.single[_ngcontent-%COMP%]{display:block}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] span.strike[_ngcontent-%COMP%]{display:block;text-decoration:line-through}table[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{font-size:11px}table.rightAuto[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 3px}footer[_ngcontent-%COMP%]{font-size:12px;text-align:center;display:block;margin:15px 0 0;font-weight:700}div.mode[_ngcontent-%COMP%]{color:gray;font-size:11px;text-align:right;height:20px;padding-top:2px}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}.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}}.barcode-container[_ngcontent-%COMP%]{width:100%;overflow:hidden;padding:0 5px;box-sizing:border-box}.barcode-image[_ngcontent-%COMP%]{max-width:100%;display:block;margin:0 auto}.barcode-image[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:100%;height:auto}.note-text[_ngcontent-%COMP%]{font-size:.656rem;white-space:normal;word-break:break-word;overflow-wrap:break-word}"]})};export{$ as a};
1
+ import{a as U}from"./chunk-ES6YUR3X.js";import{a as X}from"./chunk-QK25S4NM.js";import{a as j}from"./chunk-U2JF2UMO.js";import{N as G,g as H}from"./chunk-7OCVKGLK.js";import{Bb as E,Cb as D,Db as m,Eb as a,Fb as c,Fc as P,Gb as s,Gc as u,Hc as v,Na as x,Oc as p,Qa as w,Ra as O,Tc as M,Ua as o,Ub as g,Yb as z,Zb as A,_b as L,db as N,hc as d,ic as C,id as B,jc as f,qd as R,sb as T,sd as Q,vd as F,wb as l,yb as r,yc as h,zb as I}from"./chunk-DUSKF5IQ.js";import{a as V,b as S}from"./chunk-NF7PG5F2.js";var q=["barcode"],J=n=>({"col-12 border-0":n}),K=n=>({"col-12":n});function W(n,i){n&1&&s(0,"link",15)}function Y(n,i){n&1&&s(0,"link",16)}function Z(n,i){n&1&&s(0,"link",17)}function nn(n,i){if(n&1&&(a(0,"div",7)(1,"span"),d(2),P(3,"date"),c()()),n&2){let t,e=g();o(2),C(v(3,1,(t=e.receipt())==null||t.Invoice==null?null:t.Invoice.Date,"dd MMM yy"))}}function tn(n,i){if(n&1&&(a(0,"div",8)(1,"span",18),d(2,"Invoice Number:"),c(),a(3,"span"),d(4),c()()),n&2){let t,e=g();o(4),C((t=e.receipt())==null||t.Invoice==null?null:t.Invoice.Number)}}function en(n,i){n&1&&s(0,"img",19,0)}function on(n,i){if(n&1&&s(0,"qr-code",20),n&2){let t=g(2);m("value",t.invoiceNumber())("size",t.packingSlipConfig().General.QrCodeHeight)("margin",3)}}function cn(n,i){if(n&1&&(a(0,"div",9),l(1,en,2,0,"img",19)(2,on,1,3,"qr-code",20),c()),n&2){let t,e=g();o(),r((t=(t=e.packingSlipConfig())==null||t.General==null?null:t.General.BarcodeVisibleV2)===e.PackingSlipCodeType.Barcode?1:t===e.PackingSlipCodeType.QR?2:-1)}}function an(n,i){if(n&1&&(a(0,"h6"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.receipt())==null||t.Customer==null?null:t.Customer.ContactDisplay)}}function ln(n,i){if(n&1&&(a(0,"span"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.receipt())==null||t.Customer==null?null:t.Customer.Mobile)}}function rn(n,i){if(n&1&&(a(0,"div",23),d(1),c()),n&2){let t,e=g(2);o(),f(" ",(t=e.receipt())==null||t.Customer==null?null:t.Customer.Address," ")}}function gn(n,i){if(n&1&&(a(0,"div",11)(1,"div",21)(2,"h6",22),d(3,"Receiver:"),c(),a(4,"div"),l(5,an,2,1,"h6"),l(6,ln,2,1,"span"),c()(),l(7,rn,2,1,"div",23),c()),n&2){let t=g();o(5),r(t.customerNameVisible()?5:-1),o(),r(t.CustomerMobileVisible()?6:-1),o(),r(t.customerAddressVisible()?7:-1)}}function dn(n,i){if(n&1&&(a(0,"h6"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.template())==null?null:t.DisplayName)}}function pn(n,i){if(n&1&&(a(0,"span"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.template())==null?null:t.ContactInfo)}}function _n(n,i){if(n&1&&(a(0,"div",24),d(1),c()),n&2){let t,e=g(2);o(),f(" ",(t=e.template())==null?null:t.Address," ")}}function Cn(n,i){if(n&1&&(a(0,"div",11)(1,"div",21)(2,"h6",22),d(3,"Sender:"),c(),a(4,"div"),l(5,dn,2,1,"h6"),l(6,pn,2,1,"span"),c()(),l(7,_n,2,1,"div",24),c()),n&2){let t=g();o(5),r(t.storeNameVisible()?5:-1),o(),r(t.storePhoneVisible()?6:-1),o(),r(t.storeAddressVisible()?7:-1)}}function sn(n,i){if(n&1&&(a(0,"div",25)(1,"h5"),d(2),c()()),n&2){let t,e,_=g(2);m("ngClass",h(2,J,!_.invoiceNoteVisible()||!(!((t=_.receipt())==null||t.Invoice==null)&&t.Invoice.Note))),o(2),C((e=_.receipt())==null?null:e.Tag)}}function mn(n,i){if(n&1&&(a(0,"div",26),s(1,"p",27),c()),n&2){let t,e,_=g(2);m("ngClass",h(2,K,!_.orderTagVisible()||!((t=_.receipt())!=null&&t.Tag))),o(),m("innerHTML",(e=_.receipt())==null||e.Invoice==null?null:e.Invoice.Note,x)}}function Pn(n,i){if(n&1&&(a(0,"div",12),l(1,sn,3,4,"div",25),l(2,mn,2,4,"div",26),c()),n&2){let t,e=g();o(),r(e.orderTagVisible()?1:-1),o(),r(e.invoiceNoteVisible()&&(!((t=e.receipt())==null||t.Invoice==null)&&t.Invoice.Note)?2:-1)}}function Mn(n,i){n&1&&(a(0,"th",29),d(1,"Name"),c())}function bn(n,i){n&1&&(a(0,"th",30),d(1,"Code"),c())}function On(n,i){n&1&&(a(0,"th",30),d(1,"QTy"),c())}function un(n,i){if(n&1&&s(0,"span",33),n&2){let t=g(2).$implicit;m("innerHTML",t==null?null:t.Note,x)}}function xn(n,i){if(n&1&&(a(0,"td",32)(1,"div"),d(2),c(),l(3,un,1,1,"span",33),c()),n&2){let t=g().$implicit,e=g(2);o(2),C(t==null?null:t.Name),o(),r(e.itemNotesVisible()?3:-1)}}function fn(n,i){if(n&1&&(a(0,"td",30),d(1),c()),n&2){let t=g().$implicit;o(),C(t==null?null:t.Code)}}function hn(n,i){if(n&1&&(a(0,"td",30),d(1),P(2,"number"),c()),n&2){let t=g().$implicit;o(),C(u(2,1,t==null?null:t.Quantity))}}function vn(n,i){if(n&1&&(a(0,"tr")(1,"td",30),d(2),c(),l(3,xn,4,2,"td",32),l(4,fn,2,1,"td",30),l(5,hn,3,3,"td",30),c()),n&2){let t=i.$index,e=g(2);o(2),C(t+1),o(),r(e.productNameVisible()?3:-1),o(),r(e.productCodeVisible()?4:-1),o(),r(e.producctQtyVisible()?5:-1)}}function yn(n,i){if(n&1&&s(0,"td",34),n&2){let t=g(3);m("colSpan",t.getVisibleColumnCount())}}function kn(n,i){if(n&1&&(a(0,"tfoot",31)(1,"tr",31),l(2,yn,1,1,"td",34),a(3,"td",35)(4,"span",36),d(5,"Total"),c()(),a(6,"td",35)(7,"span",36),d(8),P(9,"sum"),P(10,"number"),c()()()()),n&2){let t,e=g(2);o(2),r(e.productCodeVisible()||e.productNameVisible()?2:-1),o(6),C(u(10,5,v(9,2,(t=e.receipt())==null?null:t.List,"Quantity")))}}function Vn(n,i){if(n&1&&(a(0,"table",14)(1,"thead")(2,"tr")(3,"th",28),d(4,"No"),c(),l(5,Mn,2,0,"th",29),l(6,bn,2,0,"th",30),l(7,On,2,0,"th",30),c()(),a(8,"tbody"),E(9,vn,6,4,"tr",null,I),c(),l(11,kn,11,7,"tfoot",31),c()),n&2){let t,e=g();o(5),r(e.productNameVisible()?5:-1),o(),r(e.productCodeVisible()?6:-1),o(),r(e.producctQtyVisible()?7:-1),o(2),D((t=e.receipt())==null?null:t.List),o(2),r(e.producctQtyVisible()?11:-1)}}var $=class n{receipt=M();config=M();template=M();css=M();_barcodeElement;invoiceNumber=p(()=>this.receipt()?.Invoice?.Number);packingSlipConfig=p(()=>this.config().PrintConfigPackingSlip);invoiceNumberVisible=p(()=>this.packingSlipConfig()?.General?.InvoiceNumberVisible);invoiceDateVisible=p(()=>this.packingSlipConfig()?.General?.InvoiceDateVisible);barcodeVisible=p(()=>this.packingSlipConfig()?.General?.BarcodeVisibleV2!==1);storeNameVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StoreNameVisible);storeAddressVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StoreAddressVisible);storePhoneVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StorePhoneVisible);customerNameVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerNameVisible);customerAddressVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerAddressVisible);CustomerMobileVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerMobileVisible);producctQtyVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductQuantityVisible);productNameVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductNameVisible);productCodeVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductCodeVisible);invoiceNoteVisible=p(()=>this.packingSlipConfig()?.Footer?.InvoiceNoteVisible);orderTagVisible=p(()=>this.packingSlipConfig()?.Footer?.SalesOrderTagVisible);itemNotesVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductNoteVisible);getVisibleColumnCount=p(()=>{let i=0;return this.productNameVisible()&&i++,this.productCodeVisible()&&i++,i});PackingSlipCodeType=U;barcodeOptions={width:1,height:46,displayValue:!1,backgroundColor:"",lineColor:"#000",margin:0,format:"CODE128",flat:!0};set content(i){i&&(this._barcodeElement=i,this.renderBarcode())}renderBarcode(){let i=this.packingSlipConfig()?.General.BarcodeHeight||46,t=this.packingSlipConfig()?.BarcodeWidthPercent||1,e=this.invoiceNumber(),_=S(V({},this.barcodeOptions),{height:i,width:t});JsBarcode(this._barcodeElement.nativeElement,e,_)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=N({type:n,selectors:[["app-packing-slip-v2"]],viewQuery:function(t,e){if(t&1&&z(q,5),t&2){let _;A(_=L())&&(e.content=_.first)}},inputs:{receipt:[1,"receipt"],config:[1,"config"],template:[1,"template"],css:[1,"css"]},decls:18,vars:13,consts:[["barcode",""],["href","/Styles/Print/Master.css","rel","stylesheet","type","text/css"],["href","/Styles/Print/LX300_Core.css","rel","stylesheet","type","text/css"],["href","/Styles/Print/LX300.css","rel","stylesheet","type","text/css"],["rel","stylesheet","type","text/css"],[1,"print_container_delivery","border","border-dark","px-4",2,"width","378px"],[1,"d-flex","align-items-center","position-relative","justify-content-center","border-bottom","border-dark","py-6"],[1,"position-absolute","end-0","me-4","fw-bold"],[1,"text-center","mt-4","fw-bold"],[1,"w-100","d-flex","justify-content-center","mt-4","barcode-container"],[1,"row","mt-6"],[1,"col"],[1,"row","mt-8","border","rounded-1","border-dark","g-0"],[1,"mt-8","mb-5"],[1,"w-100","table","table-sm","table-bordered"],["href",O`/Styles/Print/Master.css`,"rel","stylesheet","type","text/css"],["href",O`/Styles/Print/LX300_Core.css`,"rel","stylesheet","type","text/css"],["href",O`/Styles/Print/LX300.css`,"rel","stylesheet","type","text/css"],[1,"me-2"],["id","barcode",1,"barcode-image"],[3,"value","size","margin"],[1,"d-flex","justify-content-start"],[1,"me-3"],[1,"mt-3",2,"text-align","left"],[1,"mt-3",2,"text-align","right"],[1,"col-5","text-center","py-4","border-end","border-dark","d-flex","align-items-center","justify-content-center",3,"ngClass"],[1,"col-7","text-center","py-4","d-flex","align-items-center","justify-content-center",3,"ngClass"],[1,"mt-0","fst-italic",3,"innerHTML"],[1,"text-center",2,"width","10px"],[1,"text-start"],[1,"text-center"],[1,"border-0"],[1,"text-start","lh-base"],[1,"text-muted","fst-italic","note-text",3,"innerHTML"],[1,"border-0",3,"colSpan"],[1,"text-center","border-0"],[1,"fw-bold"]],template:function(t,e){if(t&1&&(l(0,W,1,0,"link",1),l(1,Y,1,0,"link",2),l(2,Z,1,0,"link",3),s(3,"link",4),P(4,"StylesheetSafeUrl"),a(5,"div",5)(6,"div",6)(7,"h3"),d(8,"PACKING SLIP"),c(),l(9,nn,4,4,"div",7),c(),l(10,tn,5,1,"div",8),l(11,cn,3,1,"div",9),a(12,"div",10),l(13,gn,8,3,"div",11),l(14,Cn,8,3,"div",11),c(),l(15,Pn,3,2,"div",12),a(16,"div",13),l(17,Vn,12,4,"table",14),c()()),t&2){let _,y,k,b;r((_=e.template())!=null&&_.PrintLX300?0:-1),o(),r((y=e.template())!=null&&y.PrintLX300?1:-1),o(),r((k=e.template())!=null&&k.PrintLX300?2:-1),o(),T("href",(b=e.css())!=null&&b.Size8cm?u(4,11,(b=e.css())==null?null:b.Size8cm):null,w),o(6),r(e.invoiceDateVisible()?9:-1),o(),r(e.invoiceNumberVisible()?10:-1),o(),r(e.barcodeVisible()?11:-1),o(2),r(e.customerNameVisible()||e.CustomerMobileVisible()||e.customerAddressVisible()?13:-1),o(),r(e.storeNameVisible()||e.storePhoneVisible()||e.storeAddressVisible()?14:-1),o(),r(e.orderTagVisible()||e.invoiceNoteVisible()?15:-1),o(2),r(e.productNameVisible()||e.productCodeVisible()?17:-1)}},dependencies:[F,B,G,j,Q,R,H,X],styles:["div.signature[_ngcontent-%COMP%], div.signature-b[_ngcontent-%COMP%]{clear:both;height:111px;margin-top:25px}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:70px;width:150px}div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%]{float:left;margin-left:155px;width:150px}div.signature[_ngcontent-%COMP%] div.noLeftMargin[_ngcontent-%COMP%]{margin-left:0!important}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:120px!important}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:150px;margin-right:5px}div.print_container[_ngcontent-%COMP%] div.footerNote[_ngcontent-%COMP%]{padding-left:5px;width:150px}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.fullSignatureNote[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%]{display:table-row-group}body[_ngcontent-%COMP%]{margin:0;padding:0;font-family:Arial;font-size:12px}div.print_container_delivery[_ngcontent-%COMP%]{margin:0 auto;width:230px;text-align:left;padding:0 4px}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{display:none}div.print_container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{width:100%;text-align:center;display:none}div.sign[_ngcontent-%COMP%]{margin:0 auto!important;display:block!important}div.signature[_ngcontent-%COMP%]{clear:both;height:111px;margin:25px auto 0;padding:0}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{margin-left:10px;max-width:80px;float:left}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:10px!important}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;max-width:80px;margin-left:5px;text-align:left}div.signature[_ngcontent-%COMP%] div.name[_ngcontent-%COMP%]{border-top:solid 1px Gray;height:15px;text-align:center}div.signature[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0 0 80px;padding:0;font-size:12px;font-weight:700}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.divDate[_ngcontent-%COMP%]{width:100%;text-align:center}div.print_container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%}div.print_container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:Garamond;font-weight:700!important;margin:0;padding:0;text-align:center}small[_ngcontent-%COMP%]{font-size:12px;text-align:center!important;font-style:italic;display:block;margin:0 0 10px}div.address[_ngcontent-%COMP%]{width:100%;padding:0 0 5px;margin-top:3px;text-align:center!important;line-height:18px}div.details[_ngcontent-%COMP%]{border-bottom:solid 1px Black;margin:5px 0 8px;text-align:center;font-size:11px;font-weight:700;padding:5px 0}h2[_ngcontent-%COMP%]{font-size:14px;margin:10px 0;padding:0;text-align:center}div.customer[_ngcontent-%COMP%]{margin:0 0 10px;text-align:center;font-size:11px;padding:5px 0}div.customer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:12px}div.customer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:16px}div.customer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;line-height:16px}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left}table[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}div.cartAmount[_ngcontent-%COMP%]{margin-top:3px;text-align:right;padding-right:1px}div.cartAmount[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}div.cartAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}div.section[_ngcontent-%COMP%]{margin:5px 0 0;min-height:30px}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{width:229px;padding:5px 0}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font-weight:700;text-align:center;margin:0 0 2px}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%], div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border:1px dotted black;margin:0;padding:10px 5px;background-color:#ffffbf;list-style:none;display:block;text-align:center}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;display:block;text-align:center}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font-weight:700;text-align:center}div.extra[_ngcontent-%COMP%]{clear:both}div.extra[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;text-align:center}div.extra[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{border:1px dotted black;margin:3px 0 0;padding:10px 5px;background-color:#ffffbf;display:block;text-align:center}p[_ngcontent-%COMP%]{margin:3px 0 0;padding:0}div.note[_ngcontent-%COMP%]{padding-top:13px}div.note[_ngcontent-%COMP%] u[_ngcontent-%COMP%]{display:block;font-weight:700;margin:2px 0 15px;text-align:center;font-style:italic}div.note[_ngcontent-%COMP%] .mid[_ngcontent-%COMP%]{text-align:center}div.note[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:3px 0 0 18px;padding:0;list-style-type:disc}div.note[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0;padding:0;line-height:16px;font-size:11px}div.note[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:3px 0 0 20px;padding:0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] span.single[_ngcontent-%COMP%]{display:block}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] span.strike[_ngcontent-%COMP%]{display:block;text-decoration:line-through}table[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{font-size:11px}table.rightAuto[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 3px}footer[_ngcontent-%COMP%]{font-size:12px;text-align:center;display:block;margin:15px 0 0;font-weight:700}div.mode[_ngcontent-%COMP%]{color:gray;font-size:11px;text-align:right;height:20px;padding-top:2px}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}.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}}.barcode-container[_ngcontent-%COMP%]{width:100%;overflow:hidden;padding:0 5px;box-sizing:border-box}.barcode-image[_ngcontent-%COMP%]{max-width:100%;display:block;margin:0 auto}.barcode-image[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:100%;height:auto}.note-text[_ngcontent-%COMP%]{font-size:.656rem;white-space:normal;word-break:break-word;overflow-wrap:break-word}"]})};export{$ as a};
@@ -1,4 +1,4 @@
1
- import{a as se}from"./chunk-RAZRQRFF.js";import{a as _t}from"./chunk-JI7J6USO.js";import{a as kt,b as ce}from"./chunk-N7HFG3PM.js";import{b as wt,c as St,f as Vt}from"./chunk-XHLFPJPB.js";import{a as re,b as le}from"./chunk-Z7UCI72M.js";import{N as xt,n as yt}from"./chunk-7OCVKGLK.js";import{c as vt}from"./chunk-LCBHD53Y.js";import{b as Tt,c as Mt,f as pe}from"./chunk-C6TJ57ES.js";import{a as Ge}from"./chunk-VUC4E73K.js";import{u as Ct}from"./chunk-OTSIIVCA.js";import{d as bt}from"./chunk-R7VXUOCU.js";import{B as lt,Ca as mt,Da as ft,Fa as gt,G as oe,Ga as ht,Ha as j,N as st,X as ve,ca as ct,da as pt,oa as dt,ra as ut,s as rt,sa as ae}from"./chunk-NYN3E7NN.js";import{F as ie,c as et,h as te,i as tt,l as nt,p as ne,q as it}from"./chunk-4XQKDYF2.js";import{a as Je,c as at}from"./chunk-RE7V7V72.js";import{a as ot}from"./chunk-5SYHPXSY.js";import{a as Xe}from"./chunk-PPTZHIIZ.js";import{$ as Ve,$a as y,$c as ze,Ab as V,Ba as De,Bb as k,Cb as T,Da as ge,Db as g,Eb as r,Fa as he,Fb as l,Fc as Y,Gb as h,Gc as Ne,Hc as Re,M as fe,Oc as Ce,Pb as b,Qd as Ze,Rd as qe,Sb as f,Sc as He,Sd as Ye,Ta as Ie,Tc as w,Ua as s,Ub as c,Uc as G,Vb as U,Wb as M,Xb as Z,Xc as je,Zb as D,_b as I,ac as Oe,ad as X,ba as ke,bc as Ke,bd as Qe,d as we,db as K,eb as $,ec as R,fc as Le,gb as Ee,gc as _e,hb as Fe,hc as _,ib as Pe,ic as L,id as We,ja as B,jb as be,jc as A,ka as W,la as Te,mc as E,md as $e,na as O,nc as F,nd as Ue,oc as P,r as Se,ra as p,sa as d,sb as Be,sc as H,vd as J,wb as u,wc as Ae,wd as ee,xc as q,ya as v,yb as m,yc as x,za as Me}from"./chunk-DUSKF5IQ.js";import{a as S,b as Q}from"./chunk-NF7PG5F2.js";var de=class t{_openDialog=new we;openDialog$=this._openDialog.asObservable();openDialog(o){this._openDialog.next(o??{})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})};var Dt=`
1
+ import{a as se}from"./chunk-3FWBKAVK.js";import{a as _t}from"./chunk-JI7J6USO.js";import{a as kt,b as ce}from"./chunk-N7HFG3PM.js";import{b as wt,c as St,f as Vt}from"./chunk-5HIT7CEU.js";import{a as re,b as le}from"./chunk-Z7UCI72M.js";import{N as xt,n as yt}from"./chunk-7OCVKGLK.js";import{c as vt}from"./chunk-LCBHD53Y.js";import{b as Tt,c as Mt,f as pe}from"./chunk-C6TJ57ES.js";import{a as Ge}from"./chunk-VUC4E73K.js";import{u as Ct}from"./chunk-OTSIIVCA.js";import{d as bt}from"./chunk-R7VXUOCU.js";import{B as lt,Ca as mt,Da as ft,Fa as gt,G as oe,Ga as ht,Ha as j,N as st,X as ve,ca as ct,da as pt,oa as dt,ra as ut,s as rt,sa as ae}from"./chunk-NYN3E7NN.js";import{F as ie,c as et,h as te,i as tt,l as nt,p as ne,q as it}from"./chunk-4XQKDYF2.js";import{a as Je,c as at}from"./chunk-UU6XXQWK.js";import{a as ot}from"./chunk-PTUHMDVC.js";import{a as Xe}from"./chunk-PPTZHIIZ.js";import{$ as Ve,$a as y,$c as ze,Ab as V,Ba as De,Bb as k,Cb as T,Da as ge,Db as g,Eb as r,Fa as he,Fb as l,Fc as Y,Gb as h,Gc as Ne,Hc as Re,M as fe,Oc as Ce,Pb as b,Qd as Ze,Rd as qe,Sb as f,Sc as He,Sd as Ye,Ta as Ie,Tc as w,Ua as s,Ub as c,Uc as G,Vb as U,Wb as M,Xb as Z,Xc as je,Zb as D,_b as I,ac as Oe,ad as X,ba as ke,bc as Ke,bd as Qe,d as we,db as K,eb as $,ec as R,fc as Le,gb as Ee,gc as _e,hb as Fe,hc as _,ib as Pe,ic as L,id as We,ja as B,jb as be,jc as A,ka as W,la as Te,mc as E,md as $e,na as O,nc as F,nd as Ue,oc as P,r as Se,ra as p,sa as d,sb as Be,sc as H,vd as J,wb as u,wc as Ae,wd as ee,xc as q,ya as v,yb as m,yc as x,za as Me}from"./chunk-DUSKF5IQ.js";import{a as S,b as Q}from"./chunk-NF7PG5F2.js";var de=class t{_openDialog=new we;openDialog$=this._openDialog.asObservable();openDialog(o){this._openDialog.next(o??{})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})};var Dt=`
2
2
  .p-popover {
3
3
  margin-block-start: dt('popover.gutter');
4
4
  background: dt('popover.background');
@@ -1 +1 @@
1
- import{a as ne,b as ae}from"./chunk-SOWALOYP.js";import"./chunk-H3HSBSA5.js";import"./chunk-U2JF2UMO.js";import"./chunk-K33O52MA.js";import"./chunk-7FQSGPHL.js";import{a as ie}from"./chunk-4XJKVTWO.js";import{p as te}from"./chunk-5DDN7F2G.js";import"./chunk-5VZWXSVF.js";import"./chunk-CBVW2WXV.js";import"./chunk-AGI6OY3T.js";import"./chunk-CPOQEU6C.js";import"./chunk-6XNSSWFM.js";import"./chunk-G3RF7GBQ.js";import"./chunk-TDI2ZUL6.js";import"./chunk-AOXQWAVH.js";import"./chunk-CKHJNQTW.js";import{a as ee}from"./chunk-K35FS3WK.js";import"./chunk-U34R74K4.js";import{a as Q}from"./chunk-QHKT7KVI.js";import"./chunk-ORJAUIF4.js";import"./chunk-KU6RELDU.js";import"./chunk-KTMZNXL5.js";import"./chunk-LZBHDTSD.js";import{a as K,g as Z,h as $}from"./chunk-RPOIMN4D.js";import"./chunk-MF3BDWCO.js";import"./chunk-BF42EMHQ.js";import"./chunk-QOZCJI3Q.js";import"./chunk-WURU2W3C.js";import"./chunk-UEFG7JV5.js";import"./chunk-ZSK2V6PP.js";import"./chunk-2KEPYDRB.js";import"./chunk-EUIKMR24.js";import"./chunk-7VXCKSAE.js";import"./chunk-3GAEZ6NJ.js";import"./chunk-RAZRQRFF.js";import{a as Y}from"./chunk-6SDQEEUU.js";import"./chunk-JI7J6USO.js";import"./chunk-N7HFG3PM.js";import"./chunk-XHLFPJPB.js";import"./chunk-DXN47M53.js";import"./chunk-HPCTP4FD.js";import"./chunk-KFWGALIF.js";import"./chunk-Z7UCI72M.js";import"./chunk-PPMQE2JW.js";import"./chunk-7OCVKGLK.js";import"./chunk-NF7H3LPQ.js";import"./chunk-Z2RXZEYH.js";import"./chunk-OKQYRKDJ.js";import"./chunk-R52CVC3U.js";import{d as X}from"./chunk-QHP5XZP6.js";import"./chunk-DU6XSMWH.js";import"./chunk-VNSMXUWL.js";import"./chunk-LCBHD53Y.js";import"./chunk-IKV23X6H.js";import"./chunk-C6TJ57ES.js";import"./chunk-RJDDPGUV.js";import"./chunk-VUC4E73K.js";import"./chunk-OTSIIVCA.js";import{a as k}from"./chunk-DUAKLYOO.js";import"./chunk-TJT2EEUH.js";import"./chunk-IX2NXO5F.js";import"./chunk-ZRB4EZI3.js";import{a as J}from"./chunk-KXQJYBG5.js";import"./chunk-3MLD6BQG.js";import"./chunk-LUUIBDJG.js";import"./chunk-R7VXUOCU.js";import"./chunk-NYN3E7NN.js";import{F as z,h as U,p as q}from"./chunk-4XQKDYF2.js";import"./chunk-RE7V7V72.js";import"./chunk-5SYHPXSY.js";import"./chunk-AGPZGAMV.js";import"./chunk-K74WZXBF.js";import"./chunk-PPTZHIIZ.js";import"./chunk-7E32EBOV.js";import{n as H,q as G}from"./chunk-ETYXTCKV.js";import{$a as y,Ba as A,Bb as W,Cb as V,Db as l,Eb as a,Fb as r,Fc as w,Gb as b,Gc as F,Lc as N,Pb as T,Sb as v,Ua as c,Ub as p,X as I,da as B,db as O,e as x,hc as u,ib as E,jb as M,mc as C,na as P,nc as g,oc as _,od as j,ra as m,sa as s,vd as R,wb as D,yb as S,zb as L}from"./chunk-DUSKF5IQ.js";import"./chunk-NF7PG5F2.js";function oe(o,d){if(o&1){let t=T();a(0,"button",6),v("click",function(){m(t);let e=p();return s(e.onPrint())}),b(1,"i",7),a(2,"span"),u(3,"Print"),r()()}}function le(o,d){if(o&1){let t=T();a(0,"div",8)(1,"h6"),u(2,"Outlet"),r(),a(3,"outlet-selector",9),v("ngModelChange",function(e){m(t);let n=p();return s(n.onEntityIDChange(e))}),r(),a(4,"h6"),u(5,"Sales Order Tag"),r(),a(6,"ng-select",10),_("ngModelChange",function(e){m(t);let n=p();return g(n.pageData().Filter.SalesOrderTagID,e)||(n.pageData().Filter.SalesOrderTagID=e),s(e)}),r(),a(7,"h6"),u(8,"From"),r(),a(9,"div",11)(10,"div",12)(11,"datepicker",13),_("dateChange",function(e){m(t);let n=p();return g(n.pageData().Filter.From,e)||(n.pageData().Filter.From=e),s(e)}),r()(),a(12,"div",12)(13,"app-timepicker",14),_("timeChange",function(e){m(t);let n=p();return g(n.pageData().Filter.StartTime,e)||(n.pageData().Filter.StartTime=e),s(e)}),r()()(),a(14,"h6"),u(15,"To"),r(),a(16,"div",11)(17,"div",12)(18,"datepicker",15),_("dateChange",function(e){m(t);let n=p();return g(n.pageData().Filter.To,e)||(n.pageData().Filter.To=e),s(e)}),r()(),a(19,"div",12)(20,"app-timepicker",14),_("timeChange",function(e){m(t);let n=p();return g(n.pageData().Filter.EndTime,e)||(n.pageData().Filter.EndTime=e),s(e)}),r()()()()}if(o&2){let t,i=p();c(3),l("accessType",2)("ngModel",i.pageData().Filter.EntityID),c(3),l("items",(t=i.pageData())==null||t.Options==null?null:t.Options.SalesOrderTags),C("ngModel",i.pageData().Filter.SalesOrderTagID),c(5),l("isFloatingLabel",!1),C("date",i.pageData().Filter.From),l("hidelClearBtn",!0),c(2),C("time",i.pageData().Filter.StartTime),l("fullWidth",!0),c(5),l("isFloatingLabel",!1)("hidelClearBtn",!0),C("date",i.pageData().Filter.To),c(2),C("time",i.pageData().Filter.EndTime),l("fullWidth",!0)}}function pe(o,d){o&1&&(a(0,"div",19),u(1,"\xA0"),r())}function me(o,d){if(o&1&&(b(0,"pos-receipt-a4",16),a(1,"div",17),b(2,"div",18),r(),D(3,pe,2,0,"div",19)),o&2){let t=d.$implicit,i=d.$index,e=p(),n=p();l("data",t)("printTemplate",n.printTemplates==null?null:n.printTemplates.get(t.PrintTemplateID))("config",e.AppConfig)("workOrderMode",!1)("fullMode",!0)("stylesheet",e.StylesSheet),c(3),S(i!==(e.Data==null?null:e.Data.length)-1?3:-1)}}function se(o,d){o&1&&W(0,me,4,7,null,null,L),o&2&&V(d.Data)}var re=class o extends Q{constructor(t,i,e){super(t,i,"Tool/GetBulkPrintLoader","Tool/GetBulkPrintLoader",e,null,!0);this.httpService=i;this.initPrintListener()}httpService;dialogFilter=P(K);receipts$;printTemplates;invoiceIds=A([]);validatedSubject=new x(!1);preInitList(){this.pageData().Filter.From=new Date,this.pageData().Filter.To=new Date,this.pageData().Filter.StartTime="00:00",this.pageData().Filter.EndTime="23:59"}onFilter(){this.receipts$=this.httpService.post(k.GetBulkPrintA4,this.pageData().Filter).pipe(B(t=>{t?.Data?.length==0?this.toastrService.info("There are no transaction",J.Info):this.generatePrintTemplate(t.PrintTemplates),this.invoiceIds.set(t.Data.map(i=>i?.Invoice?.ID))}),I(1))}generatePrintTemplate(t=[]){this.printTemplates=new Map(t.map(i=>[i.ID,i]))}getOpenDialogOptions(){return{validated$:this.validatedSubject.asObservable()}}onEntityIDChange(t){this.pageData().Filter.EntityID=t,this.validatedSubject.next(!!t)}onNewPrint(){this.dialogFilter.openDialog({validated$:this.validatedSubject.asObservable()})}onPrint(){window.setTimeout(function(){window.print()},500)}initPrintListener(){window.addEventListener("afterprint",this.handleAfterPrint)}handleAfterPrint=()=>{this.invoiceIds()?.length>0&&this.httpService.post(k.UpdateLastPrintByListID,{ListID:this.invoiceIds()}).subscribe()};ngOnDestroy(){window.removeEventListener("afterprint",this.handleAfterPrint)}static \u0275fac=function(i){return new(i||o)(y(Y),y(G),y(H))};static \u0275cmp=O({type:o,selectors:[["bulk-invoice-A4"]],features:[E],decls:13,vars:11,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","hideSearchBox","text","filter","isFilterOnDropdown"],[1,"btn","btn-outline-secondary","me-3"],[1,"btn","btn-success",3,"click"],["filters",""],[1,"container-fluid","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa","fa-print","me-3"],[1,"dialog-filter"],["placeholder","Choose an Outlet",3,"ngModelChange","accessType","ngModel"],["bindLabel","Name","bindValue","ID","placeholder","Choose Sales Order Tag",3,"ngModelChange","items","ngModel"],[1,"d-flex","align-items-center","gap-5"],[1,"w-100"],["placeholder","From","appearance","outline","name","From",1,"me-4",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[3,"timeChange","time","fullWidth"],["placeholder","To","appearance","outline","name","To",1,"me-4",3,"dateChange","isFloatingLabel","hidelClearBtn","date"],["customContainerClass","pos-bulk-invoice",3,"data","printTemplate","config","workOrderMode","fullMode","stylesheet"],[1,"d-print-none","mt-8"],[2,"border-top-style","dotted","margin-bottom","5px"],[1,"page-break"]],template:function(i,e){if(i&1){let n=T();a(0,"mainpanel-cmp",1),_("textChange",function(f){return m(n),g(e.pageData().Filter.Number,f)||(e.pageData().Filter.Number=f),s(f)}),v("onSubmit",function(){return e.onFilter()}),_("filterChange",function(f){return m(n),g(e.pageData().Filter,f)||(e.pageData().Filter=f),s(f)}),a(1,"actions"),D(2,oe,4,0,"button",2),w(3,"async"),a(4,"button",3),v("click",function(){return e.onNewPrint()}),u(5,"New"),r()(),a(6,"div",4),M(7,le,21,14,"ng-template",null,0,N),r(),a(9,"content")(10,"div",5),D(11,se,2,0),w(12,"async"),r()()()}if(i&2){let n,h;l("pageData",e.menuData())("hideSearchBox",!0),C("text",e.pageData().Filter.Number)("filter",e.pageData().Filter),l("isFilterOnDropdown",!1),c(2),S(((n=F(3,7,e.receipts$))==null||n.Data==null?null:n.Data.length)>0?2:-1),c(9),S((h=F(12,9,e.printTemplates&&e.receipts$))?11:-1,h)}},dependencies:[R,ae,ne,$,Z,ee,X,te,z,U,q,ie,j],styles:["input.p-inputtext{height:46.63px;border-color:#0000001f!important} input.p-inputtext :hover{border-color:#0000001f!important}@media print{.page-break[_ngcontent-%COMP%]{page-break-after:always}}"],changeDetection:0})};export{re as BulkInvoiceA4Component};
1
+ import{a as ne,b as ae}from"./chunk-FHNE2JSK.js";import"./chunk-QK25S4NM.js";import"./chunk-U2JF2UMO.js";import"./chunk-K33O52MA.js";import"./chunk-7FQSGPHL.js";import{a as ie}from"./chunk-4XJKVTWO.js";import{p as te}from"./chunk-5DDN7F2G.js";import"./chunk-5VZWXSVF.js";import"./chunk-CBVW2WXV.js";import"./chunk-AGI6OY3T.js";import"./chunk-CPOQEU6C.js";import"./chunk-6XNSSWFM.js";import"./chunk-G3RF7GBQ.js";import"./chunk-TDI2ZUL6.js";import"./chunk-AOXQWAVH.js";import"./chunk-CKHJNQTW.js";import{a as ee}from"./chunk-PCWOQ4M5.js";import"./chunk-U34R74K4.js";import{a as Q}from"./chunk-5U4ZPIUV.js";import"./chunk-ORJAUIF4.js";import"./chunk-BWEH5L7E.js";import"./chunk-KTMZNXL5.js";import"./chunk-LZBHDTSD.js";import{a as K,g as Z,h as $}from"./chunk-33VQWLZJ.js";import"./chunk-MF3BDWCO.js";import"./chunk-BF42EMHQ.js";import"./chunk-QOZCJI3Q.js";import"./chunk-WURU2W3C.js";import"./chunk-UEFG7JV5.js";import"./chunk-ZSK2V6PP.js";import"./chunk-2KEPYDRB.js";import"./chunk-EUIKMR24.js";import"./chunk-7VXCKSAE.js";import"./chunk-3GAEZ6NJ.js";import"./chunk-3FWBKAVK.js";import{a as Y}from"./chunk-5Z5ZTHVS.js";import"./chunk-JI7J6USO.js";import"./chunk-N7HFG3PM.js";import"./chunk-5HIT7CEU.js";import"./chunk-DXN47M53.js";import"./chunk-HPCTP4FD.js";import"./chunk-KFWGALIF.js";import"./chunk-Z7UCI72M.js";import"./chunk-PPMQE2JW.js";import"./chunk-7OCVKGLK.js";import"./chunk-NF7H3LPQ.js";import"./chunk-YLFTM46V.js";import"./chunk-OKQYRKDJ.js";import"./chunk-OAVQXLRE.js";import{d as X}from"./chunk-QHP5XZP6.js";import"./chunk-DU6XSMWH.js";import"./chunk-KJWRHA5N.js";import"./chunk-LCBHD53Y.js";import"./chunk-IKV23X6H.js";import"./chunk-C6TJ57ES.js";import"./chunk-RJDDPGUV.js";import"./chunk-VUC4E73K.js";import"./chunk-OTSIIVCA.js";import{a as k}from"./chunk-C7OXYN2X.js";import"./chunk-TJT2EEUH.js";import"./chunk-IX2NXO5F.js";import"./chunk-ZRB4EZI3.js";import{a as J}from"./chunk-KXQJYBG5.js";import"./chunk-3MLD6BQG.js";import"./chunk-LUUIBDJG.js";import"./chunk-R7VXUOCU.js";import"./chunk-NYN3E7NN.js";import{F as z,h as U,p as q}from"./chunk-4XQKDYF2.js";import"./chunk-UU6XXQWK.js";import"./chunk-PTUHMDVC.js";import"./chunk-AGPZGAMV.js";import"./chunk-K74WZXBF.js";import"./chunk-PPTZHIIZ.js";import"./chunk-KQP6YT7O.js";import{n as H,q as G}from"./chunk-ETYXTCKV.js";import{$a as y,Ba as A,Bb as W,Cb as V,Db as l,Eb as a,Fb as r,Fc as w,Gb as b,Gc as F,Lc as N,Pb as T,Sb as v,Ua as c,Ub as p,X as I,da as B,db as O,e as x,hc as u,ib as E,jb as M,mc as C,na as P,nc as g,oc as _,od as j,ra as m,sa as s,vd as R,wb as D,yb as S,zb as L}from"./chunk-DUSKF5IQ.js";import"./chunk-NF7PG5F2.js";function oe(o,d){if(o&1){let t=T();a(0,"button",6),v("click",function(){m(t);let e=p();return s(e.onPrint())}),b(1,"i",7),a(2,"span"),u(3,"Print"),r()()}}function le(o,d){if(o&1){let t=T();a(0,"div",8)(1,"h6"),u(2,"Outlet"),r(),a(3,"outlet-selector",9),v("ngModelChange",function(e){m(t);let n=p();return s(n.onEntityIDChange(e))}),r(),a(4,"h6"),u(5,"Sales Order Tag"),r(),a(6,"ng-select",10),_("ngModelChange",function(e){m(t);let n=p();return g(n.pageData().Filter.SalesOrderTagID,e)||(n.pageData().Filter.SalesOrderTagID=e),s(e)}),r(),a(7,"h6"),u(8,"From"),r(),a(9,"div",11)(10,"div",12)(11,"datepicker",13),_("dateChange",function(e){m(t);let n=p();return g(n.pageData().Filter.From,e)||(n.pageData().Filter.From=e),s(e)}),r()(),a(12,"div",12)(13,"app-timepicker",14),_("timeChange",function(e){m(t);let n=p();return g(n.pageData().Filter.StartTime,e)||(n.pageData().Filter.StartTime=e),s(e)}),r()()(),a(14,"h6"),u(15,"To"),r(),a(16,"div",11)(17,"div",12)(18,"datepicker",15),_("dateChange",function(e){m(t);let n=p();return g(n.pageData().Filter.To,e)||(n.pageData().Filter.To=e),s(e)}),r()(),a(19,"div",12)(20,"app-timepicker",14),_("timeChange",function(e){m(t);let n=p();return g(n.pageData().Filter.EndTime,e)||(n.pageData().Filter.EndTime=e),s(e)}),r()()()()}if(o&2){let t,i=p();c(3),l("accessType",2)("ngModel",i.pageData().Filter.EntityID),c(3),l("items",(t=i.pageData())==null||t.Options==null?null:t.Options.SalesOrderTags),C("ngModel",i.pageData().Filter.SalesOrderTagID),c(5),l("isFloatingLabel",!1),C("date",i.pageData().Filter.From),l("hidelClearBtn",!0),c(2),C("time",i.pageData().Filter.StartTime),l("fullWidth",!0),c(5),l("isFloatingLabel",!1)("hidelClearBtn",!0),C("date",i.pageData().Filter.To),c(2),C("time",i.pageData().Filter.EndTime),l("fullWidth",!0)}}function pe(o,d){o&1&&(a(0,"div",19),u(1,"\xA0"),r())}function me(o,d){if(o&1&&(b(0,"pos-receipt-a4",16),a(1,"div",17),b(2,"div",18),r(),D(3,pe,2,0,"div",19)),o&2){let t=d.$implicit,i=d.$index,e=p(),n=p();l("data",t)("printTemplate",n.printTemplates==null?null:n.printTemplates.get(t.PrintTemplateID))("config",e.AppConfig)("workOrderMode",!1)("fullMode",!0)("stylesheet",e.StylesSheet),c(3),S(i!==(e.Data==null?null:e.Data.length)-1?3:-1)}}function se(o,d){o&1&&W(0,me,4,7,null,null,L),o&2&&V(d.Data)}var re=class o extends Q{constructor(t,i,e){super(t,i,"Tool/GetBulkPrintLoader","Tool/GetBulkPrintLoader",e,null,!0);this.httpService=i;this.initPrintListener()}httpService;dialogFilter=P(K);receipts$;printTemplates;invoiceIds=A([]);validatedSubject=new x(!1);preInitList(){this.pageData().Filter.From=new Date,this.pageData().Filter.To=new Date,this.pageData().Filter.StartTime="00:00",this.pageData().Filter.EndTime="23:59"}onFilter(){this.receipts$=this.httpService.post(k.GetBulkPrintA4,this.pageData().Filter).pipe(B(t=>{t?.Data?.length==0?this.toastrService.info("There are no transaction",J.Info):this.generatePrintTemplate(t.PrintTemplates),this.invoiceIds.set(t.Data.map(i=>i?.Invoice?.ID))}),I(1))}generatePrintTemplate(t=[]){this.printTemplates=new Map(t.map(i=>[i.ID,i]))}getOpenDialogOptions(){return{validated$:this.validatedSubject.asObservable()}}onEntityIDChange(t){this.pageData().Filter.EntityID=t,this.validatedSubject.next(!!t)}onNewPrint(){this.dialogFilter.openDialog({validated$:this.validatedSubject.asObservable()})}onPrint(){window.setTimeout(function(){window.print()},500)}initPrintListener(){window.addEventListener("afterprint",this.handleAfterPrint)}handleAfterPrint=()=>{this.invoiceIds()?.length>0&&this.httpService.post(k.UpdateLastPrintByListID,{ListID:this.invoiceIds()}).subscribe()};ngOnDestroy(){window.removeEventListener("afterprint",this.handleAfterPrint)}static \u0275fac=function(i){return new(i||o)(y(Y),y(G),y(H))};static \u0275cmp=O({type:o,selectors:[["bulk-invoice-A4"]],features:[E],decls:13,vars:11,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","hideSearchBox","text","filter","isFilterOnDropdown"],[1,"btn","btn-outline-secondary","me-3"],[1,"btn","btn-success",3,"click"],["filters",""],[1,"container-fluid","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],[1,"fa","fa-print","me-3"],[1,"dialog-filter"],["placeholder","Choose an Outlet",3,"ngModelChange","accessType","ngModel"],["bindLabel","Name","bindValue","ID","placeholder","Choose Sales Order Tag",3,"ngModelChange","items","ngModel"],[1,"d-flex","align-items-center","gap-5"],[1,"w-100"],["placeholder","From","appearance","outline","name","From",1,"me-4",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[3,"timeChange","time","fullWidth"],["placeholder","To","appearance","outline","name","To",1,"me-4",3,"dateChange","isFloatingLabel","hidelClearBtn","date"],["customContainerClass","pos-bulk-invoice",3,"data","printTemplate","config","workOrderMode","fullMode","stylesheet"],[1,"d-print-none","mt-8"],[2,"border-top-style","dotted","margin-bottom","5px"],[1,"page-break"]],template:function(i,e){if(i&1){let n=T();a(0,"mainpanel-cmp",1),_("textChange",function(f){return m(n),g(e.pageData().Filter.Number,f)||(e.pageData().Filter.Number=f),s(f)}),v("onSubmit",function(){return e.onFilter()}),_("filterChange",function(f){return m(n),g(e.pageData().Filter,f)||(e.pageData().Filter=f),s(f)}),a(1,"actions"),D(2,oe,4,0,"button",2),w(3,"async"),a(4,"button",3),v("click",function(){return e.onNewPrint()}),u(5,"New"),r()(),a(6,"div",4),M(7,le,21,14,"ng-template",null,0,N),r(),a(9,"content")(10,"div",5),D(11,se,2,0),w(12,"async"),r()()()}if(i&2){let n,h;l("pageData",e.menuData())("hideSearchBox",!0),C("text",e.pageData().Filter.Number)("filter",e.pageData().Filter),l("isFilterOnDropdown",!1),c(2),S(((n=F(3,7,e.receipts$))==null||n.Data==null?null:n.Data.length)>0?2:-1),c(9),S((h=F(12,9,e.printTemplates&&e.receipts$))?11:-1,h)}},dependencies:[R,ae,ne,$,Z,ee,X,te,z,U,q,ie,j],styles:["input.p-inputtext{height:46.63px;border-color:#0000001f!important} input.p-inputtext :hover{border-color:#0000001f!important}@media print{.page-break[_ngcontent-%COMP%]{page-break-after:always}}"],changeDetection:0})};export{re as BulkInvoiceA4Component};
@@ -1 +1 @@
1
- import{a as de}from"./chunk-G3OKW7RE.js";import{a as le}from"./chunk-J7D4A2JN.js";import"./chunk-BYXBJQAS.js";import{g as ae,h as se}from"./chunk-RPOIMN4D.js";import"./chunk-SLMXA7HD.js";import"./chunk-RAZRQRFF.js";import{a as re}from"./chunk-6SDQEEUU.js";import"./chunk-JI7J6USO.js";import"./chunk-N7HFG3PM.js";import"./chunk-XHLFPJPB.js";import"./chunk-DXN47M53.js";import"./chunk-HPCTP4FD.js";import"./chunk-KFWGALIF.js";import"./chunk-Z7UCI72M.js";import"./chunk-PPMQE2JW.js";import"./chunk-7OCVKGLK.js";import"./chunk-VNSMXUWL.js";import{a as oe,b as ie,c as ne}from"./chunk-LCBHD53Y.js";import"./chunk-IKV23X6H.js";import"./chunk-C6TJ57ES.js";import"./chunk-RJDDPGUV.js";import"./chunk-VUC4E73K.js";import"./chunk-OTSIIVCA.js";import{a as V}from"./chunk-DUAKLYOO.js";import{b as ee,c as te}from"./chunk-KXQJYBG5.js";import"./chunk-3MLD6BQG.js";import"./chunk-LUUIBDJG.js";import"./chunk-R7VXUOCU.js";import"./chunk-NYN3E7NN.js";import{F as W,G as X,c as G,h as J,p as Q}from"./chunk-4XQKDYF2.js";import"./chunk-RE7V7V72.js";import"./chunk-5SYHPXSY.js";import"./chunk-AGPZGAMV.js";import{b as Z}from"./chunk-K74WZXBF.js";import"./chunk-PPTZHIIZ.js";import"./chunk-7E32EBOV.js";import{n as q,q as z}from"./chunk-ETYXTCKV.js";import{$a as f,Ba as b,Bb as C,Cb as v,D as T,Db as _,Eb as i,Fb as a,Gb as H,Kb as A,Lb as N,Lc as $,Mb as K,Nd as Y,Oc as L,Pb as M,Sb as m,Ua as l,Ub as u,cc as j,db as k,hc as d,ib as F,ic as O,jb as E,kc as B,mc as S,na as h,nc as x,nd as U,oc as w,ra as c,sa as p,vd as R,wb as I,yb as P,zb as g}from"./chunk-DUSKF5IQ.js";import"./chunk-NF7PG5F2.js";function he(n,r){if(n&1){let e=M();i(0,"tr")(1,"td")(2,"div",11)(3,"i",15),m("click",function(){let t=c(e).$index,s=u();return p(s.onRemoveHeader(t))}),a()()(),i(4,"td")(5,"input",16),w("ngModelChange",function(t){let s=c(e).$implicit;return x(s.Key,t)||(s.Key=t),p(t)}),a()(),i(6,"td")(7,"input",17),w("ngModelChange",function(t){let s=c(e).$implicit;return x(s.Value,t)||(s.Value=t),p(t)}),a()()()}if(n&2){let e=r.$implicit;l(5),S("ngModel",e.Key),l(2),S("ngModel",e.Value)}}var y=class n{dialogRef=h(oe);toastr=h(q);config;headers=b([{Value:"",Key:""}]);host=b("");data=h(ie);lastHeader=L(()=>this.headers()[this.headers()?.length-1]);constructor(){this.initModalConfig(),this.data&&(this.host.set(this.data.Host),this.headers.set(this.data.Headers))}initModalConfig(){this.config=new ee,this.config.title="Host Request Header",this.config.customWidth="600px"}onRemoveHeader(r){let e=this.headers();e.splice(r,1),this.headers.set([...e])}onSave(){if(!this.validateForm())return;let r={Host:this.host(),Headers:this.headers()};this.dialogRef.close(r)}validateForm(){let r=!0;return this.host()||(this.toastr.error("Host is required","Invalid Host"),r=!1),this.headers().length===0&&r&&(this.toastr.error("At least one header is required","No Headers"),r=!1),this.headers().forEach((e,o)=>{(!e.Key||!e.Value)&&r&&(this.toastr.error(`Header ${o+1} is incomplete`,"Invalid Header"),r=!1)}),r}onClose(){this.dialogRef.close()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=k({type:n,selectors:[["app-modal-webhook-request-header"]],decls:25,vars:3,consts:[[3,"onOk","onCancel","onClose","config"],[1,"container-fluid","pt-4"],[1,"row"],[1,"col-12"],[1,"form-floating-outline","mb-8"],["type","text","id","host","name","host","placeholder","Host",1,"form-control","bg-white",3,"ngModelChange","ngModel"],["for","host"],[1,"card-title"],[1,"table","table-bordered","custom-table"],[1,"thead-light","sticky-top-thead-webhook-request-header"],[2,"width","20px"],[1,"d-flex","justify-content-center"],["type","button",1,"btn","btn-outline-dark","btn-sm","bg-white","text-black",3,"click","disabled"],["aria-hidden","true",1,"fa","fa-plus"],[2,"width","100px"],[1,"fa","fa-xmark","text-danger","cursor-pointer",3,"click"],["type","text","id","key","name","key","placeholder","Key",1,"form-control","bg-white",3,"ngModelChange","ngModel"],["type","text","id","value","name","value","placeholder","Value",1,"form-control","bg-white",3,"ngModelChange","ngModel"]],template:function(e,o){if(e&1&&(i(0,"modal-material",0),m("onOk",function(){return o.onSave()})("onCancel",function(){return o.onClose()})("onClose",function(){return o.onClose()}),i(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"input",5),w("ngModelChange",function(s){return x(o.host,s)||(o.host=s),s}),a(),i(7,"label",6),d(8,"Host"),a()(),i(9,"h5",7),d(10,"Headers"),a(),i(11,"table",8)(12,"thead",9)(13,"tr")(14,"th",10)(15,"div",11)(16,"button",12),m("click",function(){return o.headers.set([...o.headers(),{Key:"",Value:""}])}),H(17,"i",13),a()()(),i(18,"th",14),d(19,"Key"),a(),i(20,"th"),d(21,"Value"),a()()(),i(22,"tbody"),C(23,he,8,2,"tr",null,g),a()()()()()()()),e&2){let t;_("config",o.config),l(6),S("ngModel",o.host),l(10),_("disabled",(!((t=o.lastHeader())!=null&&t.Key)||!((t=o.lastHeader())!=null&&t.Value))&&o.headers().length>0),l(7),v(o.headers())}},dependencies:[R,X,G,J,te,W,Q],styles:[".sticky-top-thead-webhook-request-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:sticky!important;top:-16px!important;z-index:1020!important}"]})};function fe(n,r){if(n&1&&(i(0,"div"),d(1),a()),n&2){let e=r.$implicit;l(),B(" ",e.Key," : ",e.Value," ")}}function _e(n,r){if(n&1){let e=M();i(0,"tr",11),m("click",function(){let t=c(e),s=t.$implicit,D=t.$index,ce=u(2);return p(ce.onUpdateHost(s,D))}),i(1,"td")(2,"div",12)(3,"i",13),m("click",function(){let t=c(e).$index,s=u(2);return p(s.onRemoveHeader(t))}),a()()(),i(4,"td"),d(5),a(),i(6,"td"),C(7,fe,2,2,"div",null,g),a()()}if(n&2){let e=r.$implicit;l(5),O(e.Host),l(2),v(e.Headers)}}function be(n,r){if(n&1&&C(0,_e,9,1,"tr",10,g),n&2){let e=u();v(e.host())}}function ge(n,r){n&1&&K(0)}function Ce(n,r){if(n&1&&E(0,ge,1,0,"ng-container",14),n&2){u();let e=j(20);_("ngTemplateOutlet",e)}}function ve(n,r){n&1&&(i(0,"tr",15)(1,"td",16),H(2,"empty-state-table"),a()())}var me=class n extends de{constructor(e,o,t,s,D){super(e,o,V.WebhookRequestCustomHeaderLoader,t);this.activatedRoute=t;this.role=s;this.dialog=D}activatedRoute;role;dialog;host=b([]);toastr=h(q);postBindForm(e){let o=e.Form?.CustomHeaders;this.host.set(o)}addCustomHeader(){this.dialog.open(y).afterClosed().pipe(T(e=>!!e)).subscribe(e=>{if(e){let o=[...this.host(),e];this.saveHost(o)}})}onUpdateHost(e,o){this.dialog.open(y,{data:e}).afterClosed().pipe(T(t=>!!t)).subscribe(t=>{if(t){let s=[...this.host()];s[o]=t,this.saveHost(s)}})}onRemoveHeader(e){let o=this.host();o.splice(e,1);let t=[...o];this.saveHost(t)}saveHost(e){this.httpService.post(V.WebhookRequestCustomHeaderSave,e).subscribe({next:()=>{this.host.set(e),this.toastr.success("Host and headers saved successfully","Success")}})}static \u0275fac=function(o){return new(o||n)(f(re),f(z),f(Y),f(Z),f(ne))};static \u0275cmp=k({type:n,selectors:[["app-webhook-request-header"]],features:[F],decls:21,vars:4,consts:[["EMPTY_STATE",""],[3,"pageData","hideSearchDropdown","hideSearchBox"],["ngProjectAs","actions",5,["actions"]],["type","button","role","button",1,"btn","btn-success",3,"click"],[1,"container-fluid","mt-6"],[1,"row"],[1,"col-12"],[1,"table","table-stripped","custom-table"],[1,"thead-light","sticky-top-thead"],["width","30"],[1,"cursor-pointer"],[1,"cursor-pointer",3,"click"],[1,"d-flex","justify-content-center"],[1,"fa","fa-xmark","text-danger","cursor-pointer",3,"click"],[4,"ngTemplateOutlet"],[1,"table-border-bottom-0"],["colspan","3"]],template:function(o,t){o&1&&(i(0,"mainpanel-cmp",1),A(1,2),i(2,"button",3),m("click",function(){return t.addCustomHeader()}),d(3," Add "),a(),N(),i(4,"content")(5,"div",4)(6,"div",5)(7,"div",6)(8,"table",7)(9,"thead",8)(10,"tr"),H(11,"th",9),i(12,"th"),d(13,"Host"),a(),i(14,"th"),d(15,"Headers"),a()()(),i(16,"tbody"),I(17,be,2,0)(18,Ce,1,1,"ng-container"),a()()()()(),E(19,ve,3,0,"ng-template",null,0,$),a()()),o&2&&(_("pageData",t.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(17),P(t.host().length>0?17:18))},dependencies:[R,U,se,ae,W,le],encapsulation:2})};export{me as WebhookRequestHeaderComponent};
1
+ import{a as de}from"./chunk-G3OKW7RE.js";import{a as le}from"./chunk-J7D4A2JN.js";import"./chunk-BYXBJQAS.js";import{g as ae,h as se}from"./chunk-33VQWLZJ.js";import"./chunk-SLMXA7HD.js";import"./chunk-3FWBKAVK.js";import{a as re}from"./chunk-5Z5ZTHVS.js";import"./chunk-JI7J6USO.js";import"./chunk-N7HFG3PM.js";import"./chunk-5HIT7CEU.js";import"./chunk-DXN47M53.js";import"./chunk-HPCTP4FD.js";import"./chunk-KFWGALIF.js";import"./chunk-Z7UCI72M.js";import"./chunk-PPMQE2JW.js";import"./chunk-7OCVKGLK.js";import"./chunk-KJWRHA5N.js";import{a as oe,b as ie,c as ne}from"./chunk-LCBHD53Y.js";import"./chunk-IKV23X6H.js";import"./chunk-C6TJ57ES.js";import"./chunk-RJDDPGUV.js";import"./chunk-VUC4E73K.js";import"./chunk-OTSIIVCA.js";import{a as V}from"./chunk-C7OXYN2X.js";import{b as ee,c as te}from"./chunk-KXQJYBG5.js";import"./chunk-3MLD6BQG.js";import"./chunk-LUUIBDJG.js";import"./chunk-R7VXUOCU.js";import"./chunk-NYN3E7NN.js";import{F as W,G as X,c as G,h as J,p as Q}from"./chunk-4XQKDYF2.js";import"./chunk-UU6XXQWK.js";import"./chunk-PTUHMDVC.js";import"./chunk-AGPZGAMV.js";import{b as Z}from"./chunk-K74WZXBF.js";import"./chunk-PPTZHIIZ.js";import"./chunk-KQP6YT7O.js";import{n as q,q as z}from"./chunk-ETYXTCKV.js";import{$a as f,Ba as b,Bb as C,Cb as v,D as T,Db as _,Eb as i,Fb as a,Gb as H,Kb as A,Lb as N,Lc as $,Mb as K,Nd as Y,Oc as L,Pb as M,Sb as m,Ua as l,Ub as u,cc as j,db as k,hc as d,ib as F,ic as O,jb as E,kc as B,mc as S,na as h,nc as x,nd as U,oc as w,ra as c,sa as p,vd as R,wb as I,yb as P,zb as g}from"./chunk-DUSKF5IQ.js";import"./chunk-NF7PG5F2.js";function he(n,r){if(n&1){let e=M();i(0,"tr")(1,"td")(2,"div",11)(3,"i",15),m("click",function(){let t=c(e).$index,s=u();return p(s.onRemoveHeader(t))}),a()()(),i(4,"td")(5,"input",16),w("ngModelChange",function(t){let s=c(e).$implicit;return x(s.Key,t)||(s.Key=t),p(t)}),a()(),i(6,"td")(7,"input",17),w("ngModelChange",function(t){let s=c(e).$implicit;return x(s.Value,t)||(s.Value=t),p(t)}),a()()()}if(n&2){let e=r.$implicit;l(5),S("ngModel",e.Key),l(2),S("ngModel",e.Value)}}var y=class n{dialogRef=h(oe);toastr=h(q);config;headers=b([{Value:"",Key:""}]);host=b("");data=h(ie);lastHeader=L(()=>this.headers()[this.headers()?.length-1]);constructor(){this.initModalConfig(),this.data&&(this.host.set(this.data.Host),this.headers.set(this.data.Headers))}initModalConfig(){this.config=new ee,this.config.title="Host Request Header",this.config.customWidth="600px"}onRemoveHeader(r){let e=this.headers();e.splice(r,1),this.headers.set([...e])}onSave(){if(!this.validateForm())return;let r={Host:this.host(),Headers:this.headers()};this.dialogRef.close(r)}validateForm(){let r=!0;return this.host()||(this.toastr.error("Host is required","Invalid Host"),r=!1),this.headers().length===0&&r&&(this.toastr.error("At least one header is required","No Headers"),r=!1),this.headers().forEach((e,o)=>{(!e.Key||!e.Value)&&r&&(this.toastr.error(`Header ${o+1} is incomplete`,"Invalid Header"),r=!1)}),r}onClose(){this.dialogRef.close()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=k({type:n,selectors:[["app-modal-webhook-request-header"]],decls:25,vars:3,consts:[[3,"onOk","onCancel","onClose","config"],[1,"container-fluid","pt-4"],[1,"row"],[1,"col-12"],[1,"form-floating-outline","mb-8"],["type","text","id","host","name","host","placeholder","Host",1,"form-control","bg-white",3,"ngModelChange","ngModel"],["for","host"],[1,"card-title"],[1,"table","table-bordered","custom-table"],[1,"thead-light","sticky-top-thead-webhook-request-header"],[2,"width","20px"],[1,"d-flex","justify-content-center"],["type","button",1,"btn","btn-outline-dark","btn-sm","bg-white","text-black",3,"click","disabled"],["aria-hidden","true",1,"fa","fa-plus"],[2,"width","100px"],[1,"fa","fa-xmark","text-danger","cursor-pointer",3,"click"],["type","text","id","key","name","key","placeholder","Key",1,"form-control","bg-white",3,"ngModelChange","ngModel"],["type","text","id","value","name","value","placeholder","Value",1,"form-control","bg-white",3,"ngModelChange","ngModel"]],template:function(e,o){if(e&1&&(i(0,"modal-material",0),m("onOk",function(){return o.onSave()})("onCancel",function(){return o.onClose()})("onClose",function(){return o.onClose()}),i(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"input",5),w("ngModelChange",function(s){return x(o.host,s)||(o.host=s),s}),a(),i(7,"label",6),d(8,"Host"),a()(),i(9,"h5",7),d(10,"Headers"),a(),i(11,"table",8)(12,"thead",9)(13,"tr")(14,"th",10)(15,"div",11)(16,"button",12),m("click",function(){return o.headers.set([...o.headers(),{Key:"",Value:""}])}),H(17,"i",13),a()()(),i(18,"th",14),d(19,"Key"),a(),i(20,"th"),d(21,"Value"),a()()(),i(22,"tbody"),C(23,he,8,2,"tr",null,g),a()()()()()()()),e&2){let t;_("config",o.config),l(6),S("ngModel",o.host),l(10),_("disabled",(!((t=o.lastHeader())!=null&&t.Key)||!((t=o.lastHeader())!=null&&t.Value))&&o.headers().length>0),l(7),v(o.headers())}},dependencies:[R,X,G,J,te,W,Q],styles:[".sticky-top-thead-webhook-request-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:sticky!important;top:-16px!important;z-index:1020!important}"]})};function fe(n,r){if(n&1&&(i(0,"div"),d(1),a()),n&2){let e=r.$implicit;l(),B(" ",e.Key," : ",e.Value," ")}}function _e(n,r){if(n&1){let e=M();i(0,"tr",11),m("click",function(){let t=c(e),s=t.$implicit,D=t.$index,ce=u(2);return p(ce.onUpdateHost(s,D))}),i(1,"td")(2,"div",12)(3,"i",13),m("click",function(){let t=c(e).$index,s=u(2);return p(s.onRemoveHeader(t))}),a()()(),i(4,"td"),d(5),a(),i(6,"td"),C(7,fe,2,2,"div",null,g),a()()}if(n&2){let e=r.$implicit;l(5),O(e.Host),l(2),v(e.Headers)}}function be(n,r){if(n&1&&C(0,_e,9,1,"tr",10,g),n&2){let e=u();v(e.host())}}function ge(n,r){n&1&&K(0)}function Ce(n,r){if(n&1&&E(0,ge,1,0,"ng-container",14),n&2){u();let e=j(20);_("ngTemplateOutlet",e)}}function ve(n,r){n&1&&(i(0,"tr",15)(1,"td",16),H(2,"empty-state-table"),a()())}var me=class n extends de{constructor(e,o,t,s,D){super(e,o,V.WebhookRequestCustomHeaderLoader,t);this.activatedRoute=t;this.role=s;this.dialog=D}activatedRoute;role;dialog;host=b([]);toastr=h(q);postBindForm(e){let o=e.Form?.CustomHeaders;this.host.set(o)}addCustomHeader(){this.dialog.open(y).afterClosed().pipe(T(e=>!!e)).subscribe(e=>{if(e){let o=[...this.host(),e];this.saveHost(o)}})}onUpdateHost(e,o){this.dialog.open(y,{data:e}).afterClosed().pipe(T(t=>!!t)).subscribe(t=>{if(t){let s=[...this.host()];s[o]=t,this.saveHost(s)}})}onRemoveHeader(e){let o=this.host();o.splice(e,1);let t=[...o];this.saveHost(t)}saveHost(e){this.httpService.post(V.WebhookRequestCustomHeaderSave,e).subscribe({next:()=>{this.host.set(e),this.toastr.success("Host and headers saved successfully","Success")}})}static \u0275fac=function(o){return new(o||n)(f(re),f(z),f(Y),f(Z),f(ne))};static \u0275cmp=k({type:n,selectors:[["app-webhook-request-header"]],features:[F],decls:21,vars:4,consts:[["EMPTY_STATE",""],[3,"pageData","hideSearchDropdown","hideSearchBox"],["ngProjectAs","actions",5,["actions"]],["type","button","role","button",1,"btn","btn-success",3,"click"],[1,"container-fluid","mt-6"],[1,"row"],[1,"col-12"],[1,"table","table-stripped","custom-table"],[1,"thead-light","sticky-top-thead"],["width","30"],[1,"cursor-pointer"],[1,"cursor-pointer",3,"click"],[1,"d-flex","justify-content-center"],[1,"fa","fa-xmark","text-danger","cursor-pointer",3,"click"],[4,"ngTemplateOutlet"],[1,"table-border-bottom-0"],["colspan","3"]],template:function(o,t){o&1&&(i(0,"mainpanel-cmp",1),A(1,2),i(2,"button",3),m("click",function(){return t.addCustomHeader()}),d(3," Add "),a(),N(),i(4,"content")(5,"div",4)(6,"div",5)(7,"div",6)(8,"table",7)(9,"thead",8)(10,"tr"),H(11,"th",9),i(12,"th"),d(13,"Host"),a(),i(14,"th"),d(15,"Headers"),a()()(),i(16,"tbody"),I(17,be,2,0)(18,Ce,1,1,"ng-container"),a()()()()(),E(19,ve,3,0,"ng-template",null,0,$),a()()),o&2&&(_("pageData",t.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(17),P(t.host().length>0?17:18))},dependencies:[R,U,se,ae,W,le],encapsulation:2})};export{me as WebhookRequestHeaderComponent};
@@ -1 +1 @@
1
- import{a as ae}from"./chunk-4XJKVTWO.js";import{p as ie}from"./chunk-5DDN7F2G.js";import{b as K,c as U}from"./chunk-7GBU7E7F.js";import{a as te}from"./chunk-K35FS3WK.js";import{a as X}from"./chunk-QHKT7KVI.js";import{b as Z}from"./chunk-VBJRQLYD.js";import{g as ee}from"./chunk-RPOIMN4D.js";import{a as $}from"./chunk-6SDQEEUU.js";import{c as Y}from"./chunk-LCBHD53Y.js";import{h as Q,p as z}from"./chunk-4XQKDYF2.js";import{b as J}from"./chunk-K74WZXBF.js";import{n as H,q as G}from"./chunk-ETYXTCKV.js";import{$a as C,Ab as M,Ac as B,Bb as V,Cb as P,Db as g,Dc as N,Eb as n,Fb as r,Fc as h,Gb as k,Hc as x,Lc as O,Nd as A,Pb as f,Qd as q,Sb as v,Ua as l,Ub as m,db as b,hc as o,ib as I,ic as T,jb as W,jc as R,mc as u,nc as y,oc as S,qd as j,ra as s,sa as d,wb as L,yb as E}from"./chunk-DUSKF5IQ.js";import{a as w,b as F}from"./chunk-NF7PG5F2.js";var re=(p,c,t,a,e,i)=>({LogisticServiceID:p,EntityID:c,From:t,To:a,StartTime:e,EndTime:i}),oe=(p,c,t)=>({From:p,To:c,LogisticsServiceID:t});function pe(p,c){if(p&1){let t=f();n(0,"button",4),v("click",function(){s(t);let e=m();return d(e.openExportModal())}),k(1,"i",5),o(2," Export "),r()}}function le(p,c){if(p&1){let t=f();n(0,"div",6)(1,"h6"),o(2,"Outlet"),r(),n(3,"outlet-selector",7),S("ngModelChange",function(e){s(t);let i=m();return y(i.pageData().Filter.EntityID,e)||(i.pageData().Filter.EntityID=e),d(e)}),r(),n(4,"h6"),o(5,"From"),r(),n(6,"datepicker",8),S("dateChange",function(e){s(t);let i=m();return y(i.pageData().Filter.From,e)||(i.pageData().Filter.From=e),d(e)}),r(),n(7,"h6"),o(8,"To"),r(),n(9,"datepicker",9),S("dateChange",function(e){s(t);let i=m();return y(i.pageData().Filter.To,e)||(i.pageData().Filter.To=e),d(e)}),r(),n(10,"h6"),o(11,"Time"),r(),n(12,"div",10)(13,"div",11)(14,"app-timepicker",12),S("timeChange",function(e){s(t);let i=m();return y(i.pageData().Filter.StartTime,e)||(i.pageData().Filter.StartTime=e),d(e)}),r()(),n(15,"div",11)(16,"app-timepicker",12),S("timeChange",function(e){s(t);let i=m();return y(i.pageData().Filter.EndTime,e)||(i.pageData().Filter.EndTime=e),d(e)}),r()()()()}if(p&2){let t,a=m();l(3),g("accessType",2),u("ngModel",a.pageData().Filter.EntityID),g("outlets",(t=a.pageData().Options)==null?null:t.Entities),l(3),u("date",a.pageData().Filter.From),l(3),u("date",a.pageData().Filter.To),l(5),g("fullWidth",!0),u("time",a.pageData().Filter.StartTime),l(2),g("fullWidth",!0),u("time",a.pageData().Filter.EndTime)}}function me(p,c){if(p&1&&(n(0,"tr")(1,"td"),o(2),r(),n(3,"td"),o(4),r(),n(5,"td",21)(6,"a",22),h(7,"date"),h(8,"date"),o(9),r()(),n(10,"td",21)(11,"a",23),h(12,"date"),h(13,"date"),o(14),r()(),n(15,"td",21),o(16),r()()),p&2){let t=c.$implicit,a=c.$index,e=m(2);l(2),T(a+1),l(2),T(t.Name),l(2),g("queryParams",N(19,re,t.ID,e.pageData().Filter.EntityID,x(7,7,e.pageData().Filter.From,"yyyy-MM-dd"),x(8,10,e.pageData().Filter.To,"yyyy-MM-dd"),e.pageData().Filter.StartTime,e.pageData().Filter.EndTime)),l(3),R(" ",t.Trans," "),l(2),g("queryParams",B(26,oe,x(12,13,e.pageData().Filter.From,"yyyy-MM-dd"),x(13,16,e.pageData().Filter.To,"yyyy-MM-dd"),t.ID)),l(3),R(" ",t.Qty," "),l(2),T(t.Weight)}}function ce(p,c){if(p&1){let t=f();n(0,"content")(1,"div",13)(2,"table",14),v("matSortChange",function(e){s(t);let i=m();return d(i.sortData(e))}),n(3,"thead",15)(4,"tr")(5,"th",16),o(6,"No"),r(),n(7,"th"),o(8,"Logistics Service Name"),r(),n(9,"th",17),o(10,"Trans"),r(),n(11,"th",18),o(12,"Qty"),r(),n(13,"th",19),o(14," Weight "),n(15,"small",20),o(16,"(gram)"),r()()()(),n(17,"tbody"),V(18,me,17,30,"tr",null,M),r()()()()}if(p&2){let t=m();l(18),P(t.data().Data)}}var ne=class p extends X{constructor(t,a,e,i,D,_){super(t,a,"Report/GetLogisticsService","ReportLoader/GetLogisticsService",e,i);this.matDialog=D;this.roleService=_}matDialog;roleService;originalData=[];postInit(t){this.originalData=t.Data}sortData(t){let a=this.data().Data.slice();if(!t.active||t.direction===""){this.data.update(i=>F(w({},i),{Data:this.originalData}));return}let e=a.sort((i,D)=>this.compare(i[t.active],D[t.active],t.direction==="asc"));this.data.update(i=>F(w({},i),{Data:e}))}openExportModal(){this.matDialog.open(Z,{data:{title:"Logistic Service",exportTypes:[{ID:"ReportExport/LogisticService",Value:"Default",FileName:"Logistics Service"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"",pagination:!1}})}onChangeTime(t,a){let e=t.toTimeString().split(" ")[0].slice(0,5);this.pageData().Filter[a]=e}static \u0275fac=function(a){return new(a||p)(C($),C(G),C(H),C(A),C(Y),C(J))};static \u0275cmp=b({type:p,selectors:[["POS-logistics-service-report"]],standalone:!1,features:[I],decls:9,vars:6,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","outlets"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"row"],[1,"col-6"],[3,"timeChange","fullWidth","time"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","50px"],["mat-sort-header","Trans",1,"align-right"],["mat-sort-header","Qty",1,"align-right"],["mat-sort-header","Weight",1,"align-right",2,"width","180px"],[1,"fst-italic","text-dark"],[1,"text-end"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",3,"queryParams"],["routerLink","/menu/Reports/Sales_Report/Standard/Products_Sold",3,"queryParams"]],template:function(a,e){if(a&1){let i=f();n(0,"mainpanel-cmp",1),S("textChange",function(_){return s(i),y(e.pageData().Filter.Name,_)||(e.pageData().Filter.Name=_),d(_)}),v("onSubmit",function(){return e.searchFromPageOne()}),S("filterChange",function(_){return s(i),y(e.pageData().Filter,_)||(e.pageData().Filter=_),d(_)}),n(1,"actions"),L(2,pe,3,0,"button",2),n(3,"a",3),o(4," View Detail "),r()(),n(5,"filters"),W(6,le,17,9,"ng-template",null,0,O),r(),L(8,ce,20,0,"content"),r()}a&2&&(g("pageData",e.menuData()),u("text",e.pageData().Filter.Name),g("isFilterOnDropdown",!1),u("filter",e.pageData().Filter),l(2),E(e.roleService.global.Export?2:-1),l(6),E(e.data()?8:-1))},dependencies:[q,Q,z,ee,ie,K,U,ae,te,j],encapsulation:2,changeDetection:0})};export{ne as a};
1
+ import{a as ae}from"./chunk-4XJKVTWO.js";import{p as ie}from"./chunk-5DDN7F2G.js";import{b as K,c as U}from"./chunk-7GBU7E7F.js";import{a as te}from"./chunk-PCWOQ4M5.js";import{a as X}from"./chunk-5U4ZPIUV.js";import{b as Z}from"./chunk-VBJRQLYD.js";import{g as ee}from"./chunk-33VQWLZJ.js";import{a as $}from"./chunk-5Z5ZTHVS.js";import{c as Y}from"./chunk-LCBHD53Y.js";import{h as Q,p as z}from"./chunk-4XQKDYF2.js";import{b as J}from"./chunk-K74WZXBF.js";import{n as H,q as G}from"./chunk-ETYXTCKV.js";import{$a as C,Ab as M,Ac as B,Bb as V,Cb as P,Db as g,Dc as N,Eb as n,Fb as r,Fc as h,Gb as k,Hc as x,Lc as O,Nd as A,Pb as f,Qd as q,Sb as v,Ua as l,Ub as m,db as b,hc as o,ib as I,ic as T,jb as W,jc as R,mc as u,nc as y,oc as S,qd as j,ra as s,sa as d,wb as L,yb as E}from"./chunk-DUSKF5IQ.js";import{a as w,b as F}from"./chunk-NF7PG5F2.js";var re=(p,c,t,a,e,i)=>({LogisticServiceID:p,EntityID:c,From:t,To:a,StartTime:e,EndTime:i}),oe=(p,c,t)=>({From:p,To:c,LogisticsServiceID:t});function pe(p,c){if(p&1){let t=f();n(0,"button",4),v("click",function(){s(t);let e=m();return d(e.openExportModal())}),k(1,"i",5),o(2," Export "),r()}}function le(p,c){if(p&1){let t=f();n(0,"div",6)(1,"h6"),o(2,"Outlet"),r(),n(3,"outlet-selector",7),S("ngModelChange",function(e){s(t);let i=m();return y(i.pageData().Filter.EntityID,e)||(i.pageData().Filter.EntityID=e),d(e)}),r(),n(4,"h6"),o(5,"From"),r(),n(6,"datepicker",8),S("dateChange",function(e){s(t);let i=m();return y(i.pageData().Filter.From,e)||(i.pageData().Filter.From=e),d(e)}),r(),n(7,"h6"),o(8,"To"),r(),n(9,"datepicker",9),S("dateChange",function(e){s(t);let i=m();return y(i.pageData().Filter.To,e)||(i.pageData().Filter.To=e),d(e)}),r(),n(10,"h6"),o(11,"Time"),r(),n(12,"div",10)(13,"div",11)(14,"app-timepicker",12),S("timeChange",function(e){s(t);let i=m();return y(i.pageData().Filter.StartTime,e)||(i.pageData().Filter.StartTime=e),d(e)}),r()(),n(15,"div",11)(16,"app-timepicker",12),S("timeChange",function(e){s(t);let i=m();return y(i.pageData().Filter.EndTime,e)||(i.pageData().Filter.EndTime=e),d(e)}),r()()()()}if(p&2){let t,a=m();l(3),g("accessType",2),u("ngModel",a.pageData().Filter.EntityID),g("outlets",(t=a.pageData().Options)==null?null:t.Entities),l(3),u("date",a.pageData().Filter.From),l(3),u("date",a.pageData().Filter.To),l(5),g("fullWidth",!0),u("time",a.pageData().Filter.StartTime),l(2),g("fullWidth",!0),u("time",a.pageData().Filter.EndTime)}}function me(p,c){if(p&1&&(n(0,"tr")(1,"td"),o(2),r(),n(3,"td"),o(4),r(),n(5,"td",21)(6,"a",22),h(7,"date"),h(8,"date"),o(9),r()(),n(10,"td",21)(11,"a",23),h(12,"date"),h(13,"date"),o(14),r()(),n(15,"td",21),o(16),r()()),p&2){let t=c.$implicit,a=c.$index,e=m(2);l(2),T(a+1),l(2),T(t.Name),l(2),g("queryParams",N(19,re,t.ID,e.pageData().Filter.EntityID,x(7,7,e.pageData().Filter.From,"yyyy-MM-dd"),x(8,10,e.pageData().Filter.To,"yyyy-MM-dd"),e.pageData().Filter.StartTime,e.pageData().Filter.EndTime)),l(3),R(" ",t.Trans," "),l(2),g("queryParams",B(26,oe,x(12,13,e.pageData().Filter.From,"yyyy-MM-dd"),x(13,16,e.pageData().Filter.To,"yyyy-MM-dd"),t.ID)),l(3),R(" ",t.Qty," "),l(2),T(t.Weight)}}function ce(p,c){if(p&1){let t=f();n(0,"content")(1,"div",13)(2,"table",14),v("matSortChange",function(e){s(t);let i=m();return d(i.sortData(e))}),n(3,"thead",15)(4,"tr")(5,"th",16),o(6,"No"),r(),n(7,"th"),o(8,"Logistics Service Name"),r(),n(9,"th",17),o(10,"Trans"),r(),n(11,"th",18),o(12,"Qty"),r(),n(13,"th",19),o(14," Weight "),n(15,"small",20),o(16,"(gram)"),r()()()(),n(17,"tbody"),V(18,me,17,30,"tr",null,M),r()()()()}if(p&2){let t=m();l(18),P(t.data().Data)}}var ne=class p extends X{constructor(t,a,e,i,D,_){super(t,a,"Report/GetLogisticsService","ReportLoader/GetLogisticsService",e,i);this.matDialog=D;this.roleService=_}matDialog;roleService;originalData=[];postInit(t){this.originalData=t.Data}sortData(t){let a=this.data().Data.slice();if(!t.active||t.direction===""){this.data.update(i=>F(w({},i),{Data:this.originalData}));return}let e=a.sort((i,D)=>this.compare(i[t.active],D[t.active],t.direction==="asc"));this.data.update(i=>F(w({},i),{Data:e}))}openExportModal(){this.matDialog.open(Z,{data:{title:"Logistic Service",exportTypes:[{ID:"ReportExport/LogisticService",Value:"Default",FileName:"Logistics Service"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"",pagination:!1}})}onChangeTime(t,a){let e=t.toTimeString().split(" ")[0].slice(0,5);this.pageData().Filter[a]=e}static \u0275fac=function(a){return new(a||p)(C($),C(G),C(H),C(A),C(Y),C(J))};static \u0275cmp=b({type:p,selectors:[["POS-logistics-service-report"]],standalone:!1,features:[I],decls:9,vars:6,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","outlets"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"row"],[1,"col-6"],[3,"timeChange","fullWidth","time"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","50px"],["mat-sort-header","Trans",1,"align-right"],["mat-sort-header","Qty",1,"align-right"],["mat-sort-header","Weight",1,"align-right",2,"width","180px"],[1,"fst-italic","text-dark"],[1,"text-end"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",3,"queryParams"],["routerLink","/menu/Reports/Sales_Report/Standard/Products_Sold",3,"queryParams"]],template:function(a,e){if(a&1){let i=f();n(0,"mainpanel-cmp",1),S("textChange",function(_){return s(i),y(e.pageData().Filter.Name,_)||(e.pageData().Filter.Name=_),d(_)}),v("onSubmit",function(){return e.searchFromPageOne()}),S("filterChange",function(_){return s(i),y(e.pageData().Filter,_)||(e.pageData().Filter=_),d(_)}),n(1,"actions"),L(2,pe,3,0,"button",2),n(3,"a",3),o(4," View Detail "),r()(),n(5,"filters"),W(6,le,17,9,"ng-template",null,0,O),r(),L(8,ce,20,0,"content"),r()}a&2&&(g("pageData",e.menuData()),u("text",e.pageData().Filter.Name),g("isFilterOnDropdown",!1),u("filter",e.pageData().Filter),l(2),E(e.roleService.global.Export?2:-1),l(6),E(e.data()?8:-1))},dependencies:[q,Q,z,ee,ie,K,U,ae,te,j],encapsulation:2,changeDetection:0})};export{ne as a};
@@ -1 +1 @@
1
- import{b as ge}from"./chunk-3HC75LG4.js";import{p as L}from"./chunk-5DDN7F2G.js";import{N as pe}from"./chunk-7OCVKGLK.js";import{d as F}from"./chunk-QHP5XZP6.js";import{a as ce,b as ue}from"./chunk-LCBHD53Y.js";import{b as me,c as W}from"./chunk-KXQJYBG5.js";import{A as ae,B as le,F as de,G as se,c as Y,g as Z,h as $,i as ee,l as te,p as ne,q as ie,y as oe,z as re}from"./chunk-4XQKDYF2.js";import{a as X}from"./chunk-PPTZHIIZ.js";import{$a as E,Ab as j,Ba as q,Bb as K,Cb as U,Db as m,Eb as a,Fb as r,Ga as R,Gb as z,Pb as v,Sb as w,Tc as P,Ua as o,Ub as u,cc as h,db as G,eb as A,fb as H,hc as c,id as J,jc as x,ka as B,mc as f,na as D,nc as b,oc as y,ra as C,sa as _,tc as O,vd as Q,wb as p,yb as g,yc as M}from"./chunk-DUSKF5IQ.js";var V=class n{elementRef=D(R);control=D(Z,{optional:!0,self:!0});trimInputPrefix=P(null);trimInputSuffix=P(null);trimInputWhitespace=P(!0);onBlur(){let d=this.elementRef.nativeElement;if(!d)return;let e=d.value??"",t=e,l=this.trimInputPrefix(),s=this.trimInputSuffix(),i=this.trimInputWhitespace();i&&(e=e.trim()),l&&e.startsWith(l)&&(e=e.slice(l.length)),s&&e.endsWith(s)&&(e=e.slice(0,e.length-s.length)),i&&(e=e.trim()),e!==t&&(d.value=e,this.control?.control?(this.control.control.setValue(e,{emitEvent:!1}),this.control.control.updateValueAndValidity()):d.dispatchEvent(new Event("input",{bubbles:!0})))}static \u0275fac=function(e){return new(e||n)};static \u0275dir=H({type:n,selectors:[["","trimInput",""]],hostBindings:function(e,t){e&1&&w("blur",function(){return t.onBlur()})},inputs:{trimInputPrefix:[1,"trimInputPrefix"],trimInputSuffix:[1,"trimInputSuffix"],trimInputWhitespace:[1,"trimInputWhitespace"]}})};var T=n=>({selected:n}),ye=n=>({"border border-danger":n}),I=n=>({"is-invalid":n}),he=n=>({"is-invalid border border-danger":n}),Me=n=>({"has-error":n});function ve(n,d){if(n&1){let e=v();a(0,"a",12),w("click",function(){C(e);let l=u();return _(l.chooiceDetail("id"))}),c(1," ID "),r()}if(n&2){let e=u();m("ngClass",M(1,T,e.tabState=="id"))}}function we(n,d){if(n&1&&z(0,"option",21),n&2){let e=d.$implicit;m("value",e.Name)}}function xe(n,d){if(n&1&&(a(0,"div",24)(1,"i",47),c(2," Name is mandatory."),r()()),n&2){u();let e=h(26);m("ngClass",M(1,Me,e.touched&&e.invalid))}}function Se(n,d){n&1&&(a(0,"div",40),c(1," Mobile Phone is mandatory "),r())}function Ne(n,d){if(n&1&&(a(0,"div",40),c(1),r()),n&2){u(2);let e=h(38);o(),x(" ",e.errors==null||e.errors.minLength==null?null:e.errors.minLength.message," ")}}function Ie(n,d){if(n&1&&(p(0,Se,2,0,"div",40),p(1,Ne,2,1,"div",40)),n&2){u();let e=h(38);g(e.getError("required")&&!e.getError("minLength")?0:-1),o(),g(e.getError("minLength")?1:-1)}}function Te(n,d){n&1&&(a(0,"div",40),c(1," Email must be a valid email address "),r())}function Ee(n,d){n&1&&(a(0,"div",40),c(1,"Email is mandatory"),r())}function Pe(n,d){if(n&1&&(p(0,Te,2,0,"div",40),p(1,Ee,2,0,"div",40)),n&2){u();let e=h(45);g(e.errors!=null&&e.errors.email?0:-1),o(),g(e.errors!=null&&e.errors.required?1:-1)}}function Ve(n,d){n&1&&(a(0,"div",40),c(1," Birthdate is mandatory "),r())}function De(n,d){if(n&1&&p(0,Ve,2,0,"div",40),n&2){u();let e=h(3);g(e.invalid?0:-1)}}function Oe(n,d){if(n&1){let e=v();a(0,"div",33)(1,"div",17)(2,"datepicker",48,6),y("ngModelChange",function(l){C(e);let s=u();return b(s.customer.Birthdate,l)||(s.customer.Birthdate=l),_(l)}),r(),p(4,De,1,1),r()()}if(n&2){let e=h(3),t=u();o(2),f("ngModel",t.customer.Birthdate),m("required",t.requiredField().Birthdate)("ngClass",M(4,I,e.invalid&&(e.dirty||e.touched))),o(2),g(e.dirty||e.touched?4:-1)}}function We(n,d){if(n&1&&(a(0,"div",40),c(1),r()),n&2){let e=u(2);o(),x(" ",e.type=="supplier"?"Supplier":"Customer"," code is mandatory. ")}}function Fe(n,d){if(n&1){let e=v();a(0,"div",33)(1,"div",17)(2,"input",49,7),y("ngModelChange",function(l){C(e);let s=u();return b(s.customer.Code,l)||(s.customer.Code=l),_(l)}),r(),p(4,We,2,1,"div",40),a(5,"label",50),c(6),r()()()}if(n&2){let e=h(3),t=u();o(2),m("placeholder",O("",t.type=="supplier"?"Supplier":"Member"," code")),f("ngModel",t.customer.Code),m("required",t.requiredField().Code)("ngClass",M(7,I,e.invalid&&(e.dirty||e.touched))),o(2),g(e.invalid&&(e.dirty||e.touched)?4:-1),o(2),x("",t.type=="supplier"?"Supplier":"Member"," Code")}}function Le(n,d){if(n&1&&(a(0,"div",40),c(1),r()),n&2){let e=u(2);o(),x(" ",e.type=="supplier"?"Supplier":"Customer"," code is mandatory. ")}}function ke(n,d){if(n&1){let e=v();a(0,"div",36)(1,"div",17)(2,"input",49,7),y("ngModelChange",function(l){C(e);let s=u();return b(s.customer.Code,l)||(s.customer.Code=l),_(l)}),r(),p(4,Le,2,1,"div",40),a(5,"label",50),c(6),r()()()}if(n&2){let e=h(3),t=u();o(2),m("placeholder",O("",t.type=="supplier"?"Supplier":"Member"," code")),f("ngModel",t.customer.Code),m("required",t.requiredField().Code)("ngClass",M(7,I,e.invalid&&(e.dirty||e.touched))),o(2),g(e.invalid&&(e.dirty||e.touched)?4:-1),o(2),x("",t.type=="supplier"?"Supplier":"Member"," Code")}}function Be(n,d){if(n&1){let e=v();a(0,"div",36)(1,"div",51)(2,"ng-select",52),y("ngModelChange",function(l){C(e);let s=u();return b(s.customer.Group,l)||(s.customer.Group=l),_(l)}),r(),a(3,"label",53),c(4,"Group"),r()()()}if(n&2){let e=u();o(),m("ngClass",M(3,T,e.isNotEmpty(e.customer.Group))),o(),f("ngModel",e.customer.Group),m("items",e.options==null?null:e.options.Groups)}}function qe(n,d){if(n&1){let e=v();a(0,"div",36)(1,"div",51)(2,"ng-select",54),y("ngModelChange",function(l){C(e);let s=u();return b(s.customer.City,l)||(s.customer.City=l),_(l)}),r(),a(3,"label",55),c(4,"City"),r()()()}if(n&2){let e=u();o(),m("ngClass",M(3,T,e.isNotEmpty(e.customer.City))),o(),f("ngModel",e.customer.City),m("items",e.options==null?null:e.options.Cities)}}function Re(n,d){n&1&&(a(0,"div",40),c(1,"Address is mandatory."),r())}function Ge(n,d){if(n&1&&(a(0,"div",40),c(1),r()),n&2){u();let e=h(68);o(),x(" ",e.errors==null||e.errors.minLength==null?null:e.errors.minLength.message," ")}}var Ce=class n{constructor(d,e,t){this.dialogRef=d;this.data=e;this._CustomerHttpService=t;this.modalConfig=new me,this.modalConfig.title=this.data.title,this.modalConfig.customWidth="650px",this.options=this.data.options,this.options?.Genders||(this.options.Genders=[{Key:0,Value:"Male"},{Key:1,Value:"Female"}]),this.config=this.data.config,this.type=this.data.type}dialogRef;data;_CustomerHttpService;customer;options;type;config;more;modalConfig;detailVisible;tabState="general";requiredField=q({Mobile:!1,Email:!1,Code:!1,Address:!1,SignUpOutlet:!1,Birthdate:!1});ngOnInit(){this.customer=new k,this.initFirstName(),this.customer.Gender=this.config.DefaultValue.Gender,this.more=!1,this.initRequiredField()}initRequiredField(){let d=this.config.Advance?.RequiredFields;d&&this.type!="supplier"&&d.forEach(e=>{this.requiredField.update(t=>(t[e]=!0,t))})}initFirstName(){this.data&&this.data.inputTextName&&(this.customer.FirstName=this.data.inputTextName)}onOk(d){if(d.form?.markAllAsTouched(),d.form.invalid)return;let e=this.customer.Title?this.customer.Title:"";e+=" "+this.customer.FirstName,e+=" "+(this.customer.LastName?this.customer.LastName:""),e=e.trim(),this.customer.Name=e,this.type=="customer"?this._CustomerHttpService.addCustomer(this.customer).then(t=>{this.dialogRef.close({ContactName:e,CustomerID:t.ID})}).catch(t=>{this.dialogRef.close({Error:t})}):this.type=="supplier"&&this.dialogRef.close({supplier:this.customer})}chooiceDetail(d){this.tabState=d}isNotEmpty(d){return X.IsNotEmpty(d)||d==0}static \u0275fac=function(e){return new(e||n)(E(ce),E(ue),E(ge))};static \u0275cmp=G({type:n,selectors:[["POS-modal-customer"]],standalone:!1,decls:81,vars:55,consts:[["f","ngForm"],["FirstName","ngModel"],["phoneNumber","ngModel"],["Email","ngModel"],["addressCtrl","ngModel"],["nationalId","ngModel"],["birthdateCtrl","ngModel"],["codeCtrl","ngModel"],[3,"onOk","onCancel","onClose","config"],[1,"container",2,"height","270px"],["name","form"],[1,"row","align-items-center","border-bottom"],[1,"btn","btn-link",3,"click","ngClass"],[1,"btn","btn-link",3,"ngClass"],[1,"mt-6"],[1,"row","g-4",3,"hidden"],[1,"col-md-2","mt-4"],[1,"form-floating-outline"],["list","cust-title","id","Title","name","Title","placeholder","Title",1,"form-control",3,"ngModelChange","ngModel"],["for","Title"],["id","cust-title"],[3,"value"],[1,"col-md-5","mt-4"],["type","text","id","FirstName","name","FirstName","placeholder","First Name","trimInput","",1,"form-control",3,"ngModelChange","ngClass","ngModel","required"],[3,"ngClass"],["for","FirstName"],["type","text","id","LastName","name","LastName","placeholder","Last Name","trimInput","",1,"form-control",3,"ngModelChange","ngModel"],["for","LastName"],[1,"col-md-6","mt-4"],["type","text","name","Phone","placeholder","Mobile",1,"form-control",3,"ngModelChange","ngModel","required","ngClass"],["for","Phone"],["type","email","name","Email","placeholder","Email","email","",1,"form-control",3,"ngModelChange","ngClass","ngModel","required"],["for","email"],[1,"col-6","mt-4"],["name","gender","bindLabel","Value","bindValue","Key","placeholder","Gender","dropdownPosition","buttom",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],[1,"row","g-4","mt-2",3,"hidden"],[1,"col-4","mt-4"],[1,"col-md-12","mt-4"],["id","address","name","address","placeholder","Address",1,"form-control","h-100",3,"ngModelChange","rows","ngModel","required","ngClass"],["for","address"],[1,"invalid-feedback"],["type","text","id","Identification","name","Identification","placeholder","NationalID","numericInputOnly","nationalId",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","Identification"],["type","text","id","TaxId","name","TaxId","placeholder","TaxID",1,"form-control",3,"ngModelChange","ngModel"],["for","TaxId"],["name","NationalityID","bindLabel","Name","bindValue","ID","placeholder","Nationality","appendTo","body",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],["name","race","bindLabel","Name","bindValue","ID","placeholder","Race","appendTo","body",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],[1,"control-label","text-danger"],["placeholder","Birthdate","name","birthDate",3,"ngModelChange","ngModel","required","ngClass"],["type","text","name","code","id","code",1,"form-control",3,"ngModelChange","ngModel","placeholder","required","ngClass"],["for","code"],[1,"form-floating-outline","flexRow",3,"ngClass"],["id","customerGroup","bindLabel","Name","bindValue","ID","name","customerGroup","appendTo","body",1,"productform","tall",3,"ngModelChange","ngModel","items"],["for","customerGroup",1,"ng-select"],["id","city","bindLabel","Name","bindValue","ID","name","city","appendTo","body",1,"productform","tall",3,"ngModelChange","ngModel","items"],["for","city",1,"ng-select"]],template:function(e,t){if(e&1){let l=v();a(0,"modal-material",8),w("onOk",function(){C(l);let i=h(4);return _(t.onOk(i))})("onCancel",function(){return t.dialogRef.close()})("onClose",function(){return t.dialogRef.close()}),a(1,"content")(2,"div",9)(3,"form",10,0)(5,"div",11)(6,"div")(7,"a",12),w("click",function(){return t.chooiceDetail("general")}),c(8," General "),r(),a(9,"a",12),w("click",function(){return t.chooiceDetail("detail")}),c(10," Detail "),r(),p(11,ve,2,3,"a",13),r()(),a(12,"div")(13,"div",14)(14,"div",15)(15,"div",16)(16,"div",17)(17,"input",18),y("ngModelChange",function(i){return C(l),b(t.customer.Title,i)||(t.customer.Title=i),_(i)}),r(),a(18,"label",19),c(19,"Title"),r(),a(20,"datalist",20),K(21,we,1,1,"option",21,j),r()()(),a(23,"div",22)(24,"div",17)(25,"input",23,1),y("ngModelChange",function(i){return C(l),b(t.customer.FirstName,i)||(t.customer.FirstName=i),_(i)}),r(),p(27,xe,3,3,"div",24),a(28,"label",25),c(29,"First Name"),r()()(),a(30,"div",22)(31,"div",17)(32,"input",26),y("ngModelChange",function(i){return C(l),b(t.customer.LastName,i)||(t.customer.LastName=i),_(i)}),r(),a(33,"label",27),c(34,"Last Name"),r()()(),a(35,"div",28)(36,"div",17)(37,"input",29,2),y("ngModelChange",function(i){return C(l),b(t.customer.Mobile,i)||(t.customer.Mobile=i),_(i)}),r(),p(39,Ie,2,2),a(40,"label",30),c(41,"Mobile"),r()()(),a(42,"div",28)(43,"div",17)(44,"input",31,3),y("ngModelChange",function(i){return C(l),b(t.customer.Email,i)||(t.customer.Email=i),_(i)}),r(),p(46,Pe,2,2),a(47,"label",32),c(48,"Email"),r()()(),p(49,Oe,5,6,"div",33),p(50,Fe,7,9,"div",33),a(51,"div",28)(52,"ng-select",34),y("ngModelChange",function(i){return C(l),b(t.customer.Gender,i)||(t.customer.Gender=i),_(i)}),r()()(),a(53,"div",35),p(54,ke,7,9,"div",36),p(55,Be,5,5,"div",36),p(56,qe,5,5,"div",36),a(57,"div",37)(58,"div",17)(59,"textarea",38,4),y("ngModelChange",function(i){return C(l),b(t.customer.Address,i)||(t.customer.Address=i),_(i)}),r(),a(61,"label",39),c(62,"Address"),r(),p(63,Re,2,0,"div",40),r()()(),a(64,"div",35)(65,"div",28)(66,"div",17)(67,"input",41,5),y("ngModelChange",function(i){return C(l),b(t.customer.NationalIDNumber,i)||(t.customer.NationalIDNumber=i),_(i)}),r(),p(69,Ge,2,1,"div",40),a(70,"label",42),c(71,"National ID"),r()()(),a(72,"div",28)(73,"div",17)(74,"input",43),y("ngModelChange",function(i){return C(l),b(t.customer.TaxIDNumber,i)||(t.customer.TaxIDNumber=i),_(i)}),r(),a(75,"label",44),c(76,"Tax ID"),r()()(),a(77,"div",28)(78,"ng-select",45),y("ngModelChange",function(i){return C(l),b(t.customer.NationalityID,i)||(t.customer.NationalityID=i),_(i)}),r()(),a(79,"div",33)(80,"ng-select",46),y("ngModelChange",function(i){return C(l),b(t.customer.RaceID,i)||(t.customer.RaceID=i),_(i)}),r()()()()()()()()()}if(e&2){let l=h(26),s=h(38),i=h(45),S=h(60),N=h(68);m("config",t.modalConfig),o(7),m("ngClass",M(41,T,t.tabState=="general")),o(2),m("ngClass",M(43,T,t.tabState=="detail")),o(2),g(t.type!="supplier"?11:-1),o(3),m("hidden",t.tabState!="general"),o(3),f("ngModel",t.customer.Title),o(4),U(t.options==null?null:t.options.Titles),o(4),m("ngClass",M(45,ye,l.touched&&l.invalid)),f("ngModel",t.customer.FirstName),m("required",!0),o(2),g(l.touched&&l.invalid?27:-1),o(5),f("ngModel",t.customer.LastName),o(5),f("ngModel",t.customer.Mobile),m("required",t.requiredField().Mobile)("ngClass",M(47,I,s.invalid&&(s.dirty||s.touched))),o(2),g(s.invalid&&(s.dirty||s.touched)?39:-1),o(5),m("ngClass",M(49,he,i.invalid&&(i.dirty||i.touched))),f("ngModel",t.customer.Email),m("required",t.requiredField().Email),o(2),g(i.invalid&&(i.dirty||i.touched)?46:-1),o(3),g(t.type!="supplier"?49:-1),o(),g(t.type=="supplier"?50:-1),o(2),f("ngModel",t.customer.Gender),m("items",t.options==null?null:t.options.Genders),o(),m("hidden",t.tabState!="detail"),o(),g(t.type!="supplier"?54:-1),o(),g(t.type!="supplier"?55:-1),o(),g(t.type!="supplier"?56:-1),o(3),m("rows",t.type!="supplier"?6:9),f("ngModel",t.customer.Address),m("required",t.requiredField().Address)("ngClass",M(51,I,S.invalid&&(S.dirty||S.touched))),o(4),g(S.invalid&&(S.dirty||S.touched)?63:-1),o(),m("hidden",t.tabState!="id"),o(3),f("ngModel",t.customer.NationalIDNumber),m("ngClass",M(53,I,N.invalid&&(N.dirty||N.touched))),o(2),g(N.invalid&&(N.dirty||N.touched)?69:-1),o(5),f("ngModel",t.customer.TaxIDNumber),o(4),f("ngModel",t.customer.NationalityID),m("items",t.options==null?null:t.options.Nationalities),o(2),f("ngModel",t.customer.RaceID),m("items",t.options==null?null:t.options.Races)}},dependencies:()=>[J,W,ie,oe,re,Y,$,ee,ae,le,ne,te,L,F,V],styles:[".text-warning[_ngcontent-%COMP%]{color:var(--bs-warning)!important}.bg-light-gray[_ngcontent-%COMP%]{background-color:var(--bs-light-gray);--bs-bg-opacity: .15 !important}.bg-gradient-danger[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px 30px)!important}.bg-gradient-success[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#beeebb,#beeebb 15px,#afeba8 15px 30px)!important}.bg-gradient-warning[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#fcf3cf,#fcf3cf 15px,#f9e79f 15px 30px)!important}.bg-light-orange[_ngcontent-%COMP%]{background-color:var(--bs-light-orange);--bs-bg-opacity: .15 !important}.text-danger[_ngcontent-%COMP%]{color:#fb404b!important}.text-dark[_ngcontent-%COMP%]{color:#5e5e5e!important}.text-success[_ngcontent-%COMP%]{color:#87cb16!important}.text-black[_ngcontent-%COMP%]{color:#000!important}.text-white[_ngcontent-%COMP%]{color:var(--bs-white)!important}.btn-light-blue[_ngcontent-%COMP%]{color:#212529;background-color:#dfeffc!important;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:hover{color:#212529;background-color:#bcdef9;border-color:#b0d8f8}.btn-light-blue[_ngcontent-%COMP%]:focus, .btn-light-blue.focus[_ngcontent-%COMP%]{color:#212529;background-color:#bcdef9;border-color:#b0d8f8;box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-blue.disabled[_ngcontent-%COMP%], .btn-light-blue[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#dfeffc;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#b0d8f8;border-color:#a5d2f7}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-danger[_ngcontent-%COMP%]{color:#212529;background-color:#f8d7da!important;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:hover{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5}.btn-light-danger[_ngcontent-%COMP%]:focus, .btn-light-danger.focus[_ngcontent-%COMP%]{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5;box-shadow:0 0 0 .2rem #dc354540}.btn-light-danger.disabled[_ngcontent-%COMP%], .btn-light-danger[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#f8d7da;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#f1aeb5;border-color:#ea868f}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #dc354540}.btn-link[_ngcontent-%COMP%]{padding-top:0;color:#868686;padding-bottom:8px;border-radius:unset;font-family:Roboto Slab,serif}.btn-link.selected[_ngcontent-%COMP%]{color:#3b3b3b;border-bottom:2px solid #07a519}.form-floating-outline[_ngcontent-%COMP%]{margin-bottom:.2rem!important}"]})},_e=class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=A({type:n});static \u0275inj=B({imports:[Q,pe,W,de,se,L,F]})},k=class{Title;FirstName;LastName;Name;Gender;Mobile;Email;TaxIDNumber;TaxID;Group;Code;City;Address;Birthdate;MemberIdentification;NationalIDNumber;NationalityID;RaceID;CreatorEntityID};export{V as a,Ce as b,_e as c,k as d};
1
+ import{b as ge}from"./chunk-5JKM3FDA.js";import{p as L}from"./chunk-5DDN7F2G.js";import{N as pe}from"./chunk-7OCVKGLK.js";import{d as F}from"./chunk-QHP5XZP6.js";import{a as ce,b as ue}from"./chunk-LCBHD53Y.js";import{b as me,c as W}from"./chunk-KXQJYBG5.js";import{A as ae,B as le,F as de,G as se,c as Y,g as Z,h as $,i as ee,l as te,p as ne,q as ie,y as oe,z as re}from"./chunk-4XQKDYF2.js";import{a as X}from"./chunk-PPTZHIIZ.js";import{$a as E,Ab as j,Ba as q,Bb as K,Cb as U,Db as m,Eb as a,Fb as r,Ga as R,Gb as z,Pb as v,Sb as w,Tc as P,Ua as o,Ub as u,cc as h,db as G,eb as A,fb as H,hc as c,id as J,jc as x,ka as B,mc as f,na as D,nc as b,oc as y,ra as C,sa as _,tc as O,vd as Q,wb as p,yb as g,yc as M}from"./chunk-DUSKF5IQ.js";var V=class n{elementRef=D(R);control=D(Z,{optional:!0,self:!0});trimInputPrefix=P(null);trimInputSuffix=P(null);trimInputWhitespace=P(!0);onBlur(){let d=this.elementRef.nativeElement;if(!d)return;let e=d.value??"",t=e,l=this.trimInputPrefix(),s=this.trimInputSuffix(),i=this.trimInputWhitespace();i&&(e=e.trim()),l&&e.startsWith(l)&&(e=e.slice(l.length)),s&&e.endsWith(s)&&(e=e.slice(0,e.length-s.length)),i&&(e=e.trim()),e!==t&&(d.value=e,this.control?.control?(this.control.control.setValue(e,{emitEvent:!1}),this.control.control.updateValueAndValidity()):d.dispatchEvent(new Event("input",{bubbles:!0})))}static \u0275fac=function(e){return new(e||n)};static \u0275dir=H({type:n,selectors:[["","trimInput",""]],hostBindings:function(e,t){e&1&&w("blur",function(){return t.onBlur()})},inputs:{trimInputPrefix:[1,"trimInputPrefix"],trimInputSuffix:[1,"trimInputSuffix"],trimInputWhitespace:[1,"trimInputWhitespace"]}})};var T=n=>({selected:n}),ye=n=>({"border border-danger":n}),I=n=>({"is-invalid":n}),he=n=>({"is-invalid border border-danger":n}),Me=n=>({"has-error":n});function ve(n,d){if(n&1){let e=v();a(0,"a",12),w("click",function(){C(e);let l=u();return _(l.chooiceDetail("id"))}),c(1," ID "),r()}if(n&2){let e=u();m("ngClass",M(1,T,e.tabState=="id"))}}function we(n,d){if(n&1&&z(0,"option",21),n&2){let e=d.$implicit;m("value",e.Name)}}function xe(n,d){if(n&1&&(a(0,"div",24)(1,"i",47),c(2," Name is mandatory."),r()()),n&2){u();let e=h(26);m("ngClass",M(1,Me,e.touched&&e.invalid))}}function Se(n,d){n&1&&(a(0,"div",40),c(1," Mobile Phone is mandatory "),r())}function Ne(n,d){if(n&1&&(a(0,"div",40),c(1),r()),n&2){u(2);let e=h(38);o(),x(" ",e.errors==null||e.errors.minLength==null?null:e.errors.minLength.message," ")}}function Ie(n,d){if(n&1&&(p(0,Se,2,0,"div",40),p(1,Ne,2,1,"div",40)),n&2){u();let e=h(38);g(e.getError("required")&&!e.getError("minLength")?0:-1),o(),g(e.getError("minLength")?1:-1)}}function Te(n,d){n&1&&(a(0,"div",40),c(1," Email must be a valid email address "),r())}function Ee(n,d){n&1&&(a(0,"div",40),c(1,"Email is mandatory"),r())}function Pe(n,d){if(n&1&&(p(0,Te,2,0,"div",40),p(1,Ee,2,0,"div",40)),n&2){u();let e=h(45);g(e.errors!=null&&e.errors.email?0:-1),o(),g(e.errors!=null&&e.errors.required?1:-1)}}function Ve(n,d){n&1&&(a(0,"div",40),c(1," Birthdate is mandatory "),r())}function De(n,d){if(n&1&&p(0,Ve,2,0,"div",40),n&2){u();let e=h(3);g(e.invalid?0:-1)}}function Oe(n,d){if(n&1){let e=v();a(0,"div",33)(1,"div",17)(2,"datepicker",48,6),y("ngModelChange",function(l){C(e);let s=u();return b(s.customer.Birthdate,l)||(s.customer.Birthdate=l),_(l)}),r(),p(4,De,1,1),r()()}if(n&2){let e=h(3),t=u();o(2),f("ngModel",t.customer.Birthdate),m("required",t.requiredField().Birthdate)("ngClass",M(4,I,e.invalid&&(e.dirty||e.touched))),o(2),g(e.dirty||e.touched?4:-1)}}function We(n,d){if(n&1&&(a(0,"div",40),c(1),r()),n&2){let e=u(2);o(),x(" ",e.type=="supplier"?"Supplier":"Customer"," code is mandatory. ")}}function Fe(n,d){if(n&1){let e=v();a(0,"div",33)(1,"div",17)(2,"input",49,7),y("ngModelChange",function(l){C(e);let s=u();return b(s.customer.Code,l)||(s.customer.Code=l),_(l)}),r(),p(4,We,2,1,"div",40),a(5,"label",50),c(6),r()()()}if(n&2){let e=h(3),t=u();o(2),m("placeholder",O("",t.type=="supplier"?"Supplier":"Member"," code")),f("ngModel",t.customer.Code),m("required",t.requiredField().Code)("ngClass",M(7,I,e.invalid&&(e.dirty||e.touched))),o(2),g(e.invalid&&(e.dirty||e.touched)?4:-1),o(2),x("",t.type=="supplier"?"Supplier":"Member"," Code")}}function Le(n,d){if(n&1&&(a(0,"div",40),c(1),r()),n&2){let e=u(2);o(),x(" ",e.type=="supplier"?"Supplier":"Customer"," code is mandatory. ")}}function ke(n,d){if(n&1){let e=v();a(0,"div",36)(1,"div",17)(2,"input",49,7),y("ngModelChange",function(l){C(e);let s=u();return b(s.customer.Code,l)||(s.customer.Code=l),_(l)}),r(),p(4,Le,2,1,"div",40),a(5,"label",50),c(6),r()()()}if(n&2){let e=h(3),t=u();o(2),m("placeholder",O("",t.type=="supplier"?"Supplier":"Member"," code")),f("ngModel",t.customer.Code),m("required",t.requiredField().Code)("ngClass",M(7,I,e.invalid&&(e.dirty||e.touched))),o(2),g(e.invalid&&(e.dirty||e.touched)?4:-1),o(2),x("",t.type=="supplier"?"Supplier":"Member"," Code")}}function Be(n,d){if(n&1){let e=v();a(0,"div",36)(1,"div",51)(2,"ng-select",52),y("ngModelChange",function(l){C(e);let s=u();return b(s.customer.Group,l)||(s.customer.Group=l),_(l)}),r(),a(3,"label",53),c(4,"Group"),r()()()}if(n&2){let e=u();o(),m("ngClass",M(3,T,e.isNotEmpty(e.customer.Group))),o(),f("ngModel",e.customer.Group),m("items",e.options==null?null:e.options.Groups)}}function qe(n,d){if(n&1){let e=v();a(0,"div",36)(1,"div",51)(2,"ng-select",54),y("ngModelChange",function(l){C(e);let s=u();return b(s.customer.City,l)||(s.customer.City=l),_(l)}),r(),a(3,"label",55),c(4,"City"),r()()()}if(n&2){let e=u();o(),m("ngClass",M(3,T,e.isNotEmpty(e.customer.City))),o(),f("ngModel",e.customer.City),m("items",e.options==null?null:e.options.Cities)}}function Re(n,d){n&1&&(a(0,"div",40),c(1,"Address is mandatory."),r())}function Ge(n,d){if(n&1&&(a(0,"div",40),c(1),r()),n&2){u();let e=h(68);o(),x(" ",e.errors==null||e.errors.minLength==null?null:e.errors.minLength.message," ")}}var Ce=class n{constructor(d,e,t){this.dialogRef=d;this.data=e;this._CustomerHttpService=t;this.modalConfig=new me,this.modalConfig.title=this.data.title,this.modalConfig.customWidth="650px",this.options=this.data.options,this.options?.Genders||(this.options.Genders=[{Key:0,Value:"Male"},{Key:1,Value:"Female"}]),this.config=this.data.config,this.type=this.data.type}dialogRef;data;_CustomerHttpService;customer;options;type;config;more;modalConfig;detailVisible;tabState="general";requiredField=q({Mobile:!1,Email:!1,Code:!1,Address:!1,SignUpOutlet:!1,Birthdate:!1});ngOnInit(){this.customer=new k,this.initFirstName(),this.customer.Gender=this.config.DefaultValue.Gender,this.more=!1,this.initRequiredField()}initRequiredField(){let d=this.config.Advance?.RequiredFields;d&&this.type!="supplier"&&d.forEach(e=>{this.requiredField.update(t=>(t[e]=!0,t))})}initFirstName(){this.data&&this.data.inputTextName&&(this.customer.FirstName=this.data.inputTextName)}onOk(d){if(d.form?.markAllAsTouched(),d.form.invalid)return;let e=this.customer.Title?this.customer.Title:"";e+=" "+this.customer.FirstName,e+=" "+(this.customer.LastName?this.customer.LastName:""),e=e.trim(),this.customer.Name=e,this.type=="customer"?this._CustomerHttpService.addCustomer(this.customer).then(t=>{this.dialogRef.close({ContactName:e,CustomerID:t.ID})}).catch(t=>{this.dialogRef.close({Error:t})}):this.type=="supplier"&&this.dialogRef.close({supplier:this.customer})}chooiceDetail(d){this.tabState=d}isNotEmpty(d){return X.IsNotEmpty(d)||d==0}static \u0275fac=function(e){return new(e||n)(E(ce),E(ue),E(ge))};static \u0275cmp=G({type:n,selectors:[["POS-modal-customer"]],standalone:!1,decls:81,vars:55,consts:[["f","ngForm"],["FirstName","ngModel"],["phoneNumber","ngModel"],["Email","ngModel"],["addressCtrl","ngModel"],["nationalId","ngModel"],["birthdateCtrl","ngModel"],["codeCtrl","ngModel"],[3,"onOk","onCancel","onClose","config"],[1,"container",2,"height","270px"],["name","form"],[1,"row","align-items-center","border-bottom"],[1,"btn","btn-link",3,"click","ngClass"],[1,"btn","btn-link",3,"ngClass"],[1,"mt-6"],[1,"row","g-4",3,"hidden"],[1,"col-md-2","mt-4"],[1,"form-floating-outline"],["list","cust-title","id","Title","name","Title","placeholder","Title",1,"form-control",3,"ngModelChange","ngModel"],["for","Title"],["id","cust-title"],[3,"value"],[1,"col-md-5","mt-4"],["type","text","id","FirstName","name","FirstName","placeholder","First Name","trimInput","",1,"form-control",3,"ngModelChange","ngClass","ngModel","required"],[3,"ngClass"],["for","FirstName"],["type","text","id","LastName","name","LastName","placeholder","Last Name","trimInput","",1,"form-control",3,"ngModelChange","ngModel"],["for","LastName"],[1,"col-md-6","mt-4"],["type","text","name","Phone","placeholder","Mobile",1,"form-control",3,"ngModelChange","ngModel","required","ngClass"],["for","Phone"],["type","email","name","Email","placeholder","Email","email","",1,"form-control",3,"ngModelChange","ngClass","ngModel","required"],["for","email"],[1,"col-6","mt-4"],["name","gender","bindLabel","Value","bindValue","Key","placeholder","Gender","dropdownPosition","buttom",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],[1,"row","g-4","mt-2",3,"hidden"],[1,"col-4","mt-4"],[1,"col-md-12","mt-4"],["id","address","name","address","placeholder","Address",1,"form-control","h-100",3,"ngModelChange","rows","ngModel","required","ngClass"],["for","address"],[1,"invalid-feedback"],["type","text","id","Identification","name","Identification","placeholder","NationalID","numericInputOnly","nationalId",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","Identification"],["type","text","id","TaxId","name","TaxId","placeholder","TaxID",1,"form-control",3,"ngModelChange","ngModel"],["for","TaxId"],["name","NationalityID","bindLabel","Name","bindValue","ID","placeholder","Nationality","appendTo","body",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],["name","race","bindLabel","Name","bindValue","ID","placeholder","Race","appendTo","body",1,"tall","outlet","auto-grow",3,"ngModelChange","ngModel","items"],[1,"control-label","text-danger"],["placeholder","Birthdate","name","birthDate",3,"ngModelChange","ngModel","required","ngClass"],["type","text","name","code","id","code",1,"form-control",3,"ngModelChange","ngModel","placeholder","required","ngClass"],["for","code"],[1,"form-floating-outline","flexRow",3,"ngClass"],["id","customerGroup","bindLabel","Name","bindValue","ID","name","customerGroup","appendTo","body",1,"productform","tall",3,"ngModelChange","ngModel","items"],["for","customerGroup",1,"ng-select"],["id","city","bindLabel","Name","bindValue","ID","name","city","appendTo","body",1,"productform","tall",3,"ngModelChange","ngModel","items"],["for","city",1,"ng-select"]],template:function(e,t){if(e&1){let l=v();a(0,"modal-material",8),w("onOk",function(){C(l);let i=h(4);return _(t.onOk(i))})("onCancel",function(){return t.dialogRef.close()})("onClose",function(){return t.dialogRef.close()}),a(1,"content")(2,"div",9)(3,"form",10,0)(5,"div",11)(6,"div")(7,"a",12),w("click",function(){return t.chooiceDetail("general")}),c(8," General "),r(),a(9,"a",12),w("click",function(){return t.chooiceDetail("detail")}),c(10," Detail "),r(),p(11,ve,2,3,"a",13),r()(),a(12,"div")(13,"div",14)(14,"div",15)(15,"div",16)(16,"div",17)(17,"input",18),y("ngModelChange",function(i){return C(l),b(t.customer.Title,i)||(t.customer.Title=i),_(i)}),r(),a(18,"label",19),c(19,"Title"),r(),a(20,"datalist",20),K(21,we,1,1,"option",21,j),r()()(),a(23,"div",22)(24,"div",17)(25,"input",23,1),y("ngModelChange",function(i){return C(l),b(t.customer.FirstName,i)||(t.customer.FirstName=i),_(i)}),r(),p(27,xe,3,3,"div",24),a(28,"label",25),c(29,"First Name"),r()()(),a(30,"div",22)(31,"div",17)(32,"input",26),y("ngModelChange",function(i){return C(l),b(t.customer.LastName,i)||(t.customer.LastName=i),_(i)}),r(),a(33,"label",27),c(34,"Last Name"),r()()(),a(35,"div",28)(36,"div",17)(37,"input",29,2),y("ngModelChange",function(i){return C(l),b(t.customer.Mobile,i)||(t.customer.Mobile=i),_(i)}),r(),p(39,Ie,2,2),a(40,"label",30),c(41,"Mobile"),r()()(),a(42,"div",28)(43,"div",17)(44,"input",31,3),y("ngModelChange",function(i){return C(l),b(t.customer.Email,i)||(t.customer.Email=i),_(i)}),r(),p(46,Pe,2,2),a(47,"label",32),c(48,"Email"),r()()(),p(49,Oe,5,6,"div",33),p(50,Fe,7,9,"div",33),a(51,"div",28)(52,"ng-select",34),y("ngModelChange",function(i){return C(l),b(t.customer.Gender,i)||(t.customer.Gender=i),_(i)}),r()()(),a(53,"div",35),p(54,ke,7,9,"div",36),p(55,Be,5,5,"div",36),p(56,qe,5,5,"div",36),a(57,"div",37)(58,"div",17)(59,"textarea",38,4),y("ngModelChange",function(i){return C(l),b(t.customer.Address,i)||(t.customer.Address=i),_(i)}),r(),a(61,"label",39),c(62,"Address"),r(),p(63,Re,2,0,"div",40),r()()(),a(64,"div",35)(65,"div",28)(66,"div",17)(67,"input",41,5),y("ngModelChange",function(i){return C(l),b(t.customer.NationalIDNumber,i)||(t.customer.NationalIDNumber=i),_(i)}),r(),p(69,Ge,2,1,"div",40),a(70,"label",42),c(71,"National ID"),r()()(),a(72,"div",28)(73,"div",17)(74,"input",43),y("ngModelChange",function(i){return C(l),b(t.customer.TaxIDNumber,i)||(t.customer.TaxIDNumber=i),_(i)}),r(),a(75,"label",44),c(76,"Tax ID"),r()()(),a(77,"div",28)(78,"ng-select",45),y("ngModelChange",function(i){return C(l),b(t.customer.NationalityID,i)||(t.customer.NationalityID=i),_(i)}),r()(),a(79,"div",33)(80,"ng-select",46),y("ngModelChange",function(i){return C(l),b(t.customer.RaceID,i)||(t.customer.RaceID=i),_(i)}),r()()()()()()()()()}if(e&2){let l=h(26),s=h(38),i=h(45),S=h(60),N=h(68);m("config",t.modalConfig),o(7),m("ngClass",M(41,T,t.tabState=="general")),o(2),m("ngClass",M(43,T,t.tabState=="detail")),o(2),g(t.type!="supplier"?11:-1),o(3),m("hidden",t.tabState!="general"),o(3),f("ngModel",t.customer.Title),o(4),U(t.options==null?null:t.options.Titles),o(4),m("ngClass",M(45,ye,l.touched&&l.invalid)),f("ngModel",t.customer.FirstName),m("required",!0),o(2),g(l.touched&&l.invalid?27:-1),o(5),f("ngModel",t.customer.LastName),o(5),f("ngModel",t.customer.Mobile),m("required",t.requiredField().Mobile)("ngClass",M(47,I,s.invalid&&(s.dirty||s.touched))),o(2),g(s.invalid&&(s.dirty||s.touched)?39:-1),o(5),m("ngClass",M(49,he,i.invalid&&(i.dirty||i.touched))),f("ngModel",t.customer.Email),m("required",t.requiredField().Email),o(2),g(i.invalid&&(i.dirty||i.touched)?46:-1),o(3),g(t.type!="supplier"?49:-1),o(),g(t.type=="supplier"?50:-1),o(2),f("ngModel",t.customer.Gender),m("items",t.options==null?null:t.options.Genders),o(),m("hidden",t.tabState!="detail"),o(),g(t.type!="supplier"?54:-1),o(),g(t.type!="supplier"?55:-1),o(),g(t.type!="supplier"?56:-1),o(3),m("rows",t.type!="supplier"?6:9),f("ngModel",t.customer.Address),m("required",t.requiredField().Address)("ngClass",M(51,I,S.invalid&&(S.dirty||S.touched))),o(4),g(S.invalid&&(S.dirty||S.touched)?63:-1),o(),m("hidden",t.tabState!="id"),o(3),f("ngModel",t.customer.NationalIDNumber),m("ngClass",M(53,I,N.invalid&&(N.dirty||N.touched))),o(2),g(N.invalid&&(N.dirty||N.touched)?69:-1),o(5),f("ngModel",t.customer.TaxIDNumber),o(4),f("ngModel",t.customer.NationalityID),m("items",t.options==null?null:t.options.Nationalities),o(2),f("ngModel",t.customer.RaceID),m("items",t.options==null?null:t.options.Races)}},dependencies:()=>[J,W,ie,oe,re,Y,$,ee,ae,le,ne,te,L,F,V],styles:[".text-warning[_ngcontent-%COMP%]{color:var(--bs-warning)!important}.bg-light-gray[_ngcontent-%COMP%]{background-color:var(--bs-light-gray);--bs-bg-opacity: .15 !important}.bg-gradient-danger[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#f8d7da,#f8d7da 15px,#f5c6cb 15px 30px)!important}.bg-gradient-success[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#beeebb,#beeebb 15px,#afeba8 15px 30px)!important}.bg-gradient-warning[_ngcontent-%COMP%]{background:repeating-linear-gradient(-60deg,#fcf3cf,#fcf3cf 15px,#f9e79f 15px 30px)!important}.bg-light-orange[_ngcontent-%COMP%]{background-color:var(--bs-light-orange);--bs-bg-opacity: .15 !important}.text-danger[_ngcontent-%COMP%]{color:#fb404b!important}.text-dark[_ngcontent-%COMP%]{color:#5e5e5e!important}.text-success[_ngcontent-%COMP%]{color:#87cb16!important}.text-black[_ngcontent-%COMP%]{color:#000!important}.text-white[_ngcontent-%COMP%]{color:var(--bs-white)!important}.btn-light-blue[_ngcontent-%COMP%]{color:#212529;background-color:#dfeffc!important;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:hover{color:#212529;background-color:#bcdef9;border-color:#b0d8f8}.btn-light-blue[_ngcontent-%COMP%]:focus, .btn-light-blue.focus[_ngcontent-%COMP%]{color:#212529;background-color:#bcdef9;border-color:#b0d8f8;box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-blue.disabled[_ngcontent-%COMP%], .btn-light-blue[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#dfeffc;border-color:#dfeffc}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#b0d8f8;border-color:#a5d2f7}.btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-blue[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-blue.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #c3d1dc80}.btn-light-danger[_ngcontent-%COMP%]{color:#212529;background-color:#f8d7da!important;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:hover{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5}.btn-light-danger[_ngcontent-%COMP%]:focus, .btn-light-danger.focus[_ngcontent-%COMP%]{color:#212529;background-color:#f5c2c7;border-color:#f1aeb5;box-shadow:0 0 0 .2rem #dc354540}.btn-light-danger.disabled[_ngcontent-%COMP%], .btn-light-danger[_ngcontent-%COMP%]:disabled{color:#212529;background-color:#f8d7da;border-color:#f8d7da}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]{color:#212529;background-color:#f1aeb5;border-color:#ea868f}.btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active:focus, .btn-light-danger[_ngcontent-%COMP%]:not(:disabled):not(.disabled).active:focus, .show[_ngcontent-%COMP%] > .btn-light-danger.dropdown-toggle[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 .2rem #dc354540}.btn-link[_ngcontent-%COMP%]{padding-top:0;color:#868686;padding-bottom:8px;border-radius:unset;font-family:Roboto Slab,serif}.btn-link.selected[_ngcontent-%COMP%]{color:#3b3b3b;border-bottom:2px solid #07a519}.form-floating-outline[_ngcontent-%COMP%]{margin-bottom:.2rem!important}"]})},_e=class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=A({type:n});static \u0275inj=B({imports:[Q,pe,W,de,se,L,F]})},k=class{Title;FirstName;LastName;Name;Gender;Mobile;Email;TaxIDNumber;TaxID;Group;Code;City;Address;Birthdate;MemberIdentification;NationalIDNumber;NationalityID;RaceID;CreatorEntityID};export{V as a,Ce as b,_e as c,k as d};
@@ -1 +1 @@
1
- import{g as z,h as M}from"./chunk-RPOIMN4D.js";import"./chunk-RAZRQRFF.js";import"./chunk-JI7J6USO.js";import"./chunk-N7HFG3PM.js";import"./chunk-XHLFPJPB.js";import"./chunk-DXN47M53.js";import"./chunk-HPCTP4FD.js";import"./chunk-KFWGALIF.js";import"./chunk-Z7UCI72M.js";import"./chunk-PPMQE2JW.js";import"./chunk-7OCVKGLK.js";import"./chunk-VNSMXUWL.js";import"./chunk-LCBHD53Y.js";import"./chunk-IKV23X6H.js";import"./chunk-C6TJ57ES.js";import"./chunk-RJDDPGUV.js";import"./chunk-VUC4E73K.js";import"./chunk-OTSIIVCA.js";import"./chunk-DUAKLYOO.js";import"./chunk-KXQJYBG5.js";import"./chunk-3MLD6BQG.js";import"./chunk-LUUIBDJG.js";import"./chunk-R7VXUOCU.js";import"./chunk-NYN3E7NN.js";import"./chunk-4XQKDYF2.js";import"./chunk-RE7V7V72.js";import"./chunk-5SYHPXSY.js";import"./chunk-AGPZGAMV.js";import"./chunk-K74WZXBF.js";import"./chunk-PPTZHIIZ.js";import"./chunk-7E32EBOV.js";import"./chunk-ETYXTCKV.js";import{$a as l,Db as h,Eb as i,Fb as n,Gb as g,Pd as y,Sd as p,Ua as d,db as f,eb as m,hc as r,ic as x,ka as s,vd as v}from"./chunk-DUSKF5IQ.js";import"./chunk-NF7PG5F2.js";var u=class t{constructor(a){this.router=a;let e=this.router.currentNavigation();e?.extras?.state&&(this.role=e.extras.state.role);let o=this.router.lastSuccessfulNavigation();o&&(this.previousPage=o.extractedUrl.toString())}router;previousPage="";role="";menuData={H:"Unauthorized"};static \u0275fac=function(e){return new(e||t)(l(y))};static \u0275cmp=f({type:t,selectors:[["POS-unauthorized"]],standalone:!1,decls:13,vars:4,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[1,"text-center"],["src","https://cdn.dealpos.xyz/web-image/locked.svg",2,"width","200px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(e,o){e&1&&(i(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div"),g(5,"img",3),n(),i(6,"h1",4),r(7,"You are not authorized"),n(),i(8,"p"),r(9," This page require "),i(10,"span",5),r(11),n(),r(12," role. Please contact your Administrator to gain access! "),n()()()()()),e&2&&(h("pageData",o.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),d(11),x(o.role))},dependencies:[z],encapsulation:2})};var U=[{path:"Main/Unauthorized",component:u},{path:"",redirectTo:"Main/Unauthorized",pathMatch:"full"}],c=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=m({type:t});static \u0275inj=s({imports:[p.forChild(U),p]})};var S=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=m({type:t});static \u0275inj=s({imports:[v,c,M]})};export{S as UnauthorizedModule};
1
+ import{g as z,h as M}from"./chunk-33VQWLZJ.js";import"./chunk-3FWBKAVK.js";import"./chunk-JI7J6USO.js";import"./chunk-N7HFG3PM.js";import"./chunk-5HIT7CEU.js";import"./chunk-DXN47M53.js";import"./chunk-HPCTP4FD.js";import"./chunk-KFWGALIF.js";import"./chunk-Z7UCI72M.js";import"./chunk-PPMQE2JW.js";import"./chunk-7OCVKGLK.js";import"./chunk-KJWRHA5N.js";import"./chunk-LCBHD53Y.js";import"./chunk-IKV23X6H.js";import"./chunk-C6TJ57ES.js";import"./chunk-RJDDPGUV.js";import"./chunk-VUC4E73K.js";import"./chunk-OTSIIVCA.js";import"./chunk-C7OXYN2X.js";import"./chunk-KXQJYBG5.js";import"./chunk-3MLD6BQG.js";import"./chunk-LUUIBDJG.js";import"./chunk-R7VXUOCU.js";import"./chunk-NYN3E7NN.js";import"./chunk-4XQKDYF2.js";import"./chunk-UU6XXQWK.js";import"./chunk-PTUHMDVC.js";import"./chunk-AGPZGAMV.js";import"./chunk-K74WZXBF.js";import"./chunk-PPTZHIIZ.js";import"./chunk-KQP6YT7O.js";import"./chunk-ETYXTCKV.js";import{$a as l,Db as h,Eb as i,Fb as n,Gb as g,Pd as y,Sd as p,Ua as d,db as f,eb as m,hc as r,ic as x,ka as s,vd as v}from"./chunk-DUSKF5IQ.js";import"./chunk-NF7PG5F2.js";var u=class t{constructor(a){this.router=a;let e=this.router.currentNavigation();e?.extras?.state&&(this.role=e.extras.state.role);let o=this.router.lastSuccessfulNavigation();o&&(this.previousPage=o.extractedUrl.toString())}router;previousPage="";role="";menuData={H:"Unauthorized"};static \u0275fac=function(e){return new(e||t)(l(y))};static \u0275cmp=f({type:t,selectors:[["POS-unauthorized"]],standalone:!1,decls:13,vars:4,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[1,"text-center"],["src","https://cdn.dealpos.xyz/web-image/locked.svg",2,"width","200px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(e,o){e&1&&(i(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div"),g(5,"img",3),n(),i(6,"h1",4),r(7,"You are not authorized"),n(),i(8,"p"),r(9," This page require "),i(10,"span",5),r(11),n(),r(12," role. Please contact your Administrator to gain access! "),n()()()()()),e&2&&(h("pageData",o.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),d(11),x(o.role))},dependencies:[z],encapsulation:2})};var U=[{path:"Main/Unauthorized",component:u},{path:"",redirectTo:"Main/Unauthorized",pathMatch:"full"}],c=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=m({type:t});static \u0275inj=s({imports:[p.forChild(U),p]})};var S=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=m({type:t});static \u0275inj=s({imports:[v,c,M]})};export{S as UnauthorizedModule};
@@ -1,4 +1,4 @@
1
- import{a as N,c as I}from"./chunk-RE7V7V72.js";import{a as p}from"./chunk-PPTZHIIZ.js";import{$a as r,Db as o,Eb as c,Fb as l,Pd as C,Qd as M,Sd as D,Ua as n,Ub as h,db as S,gc as y,hc as u,id as g,jc as v,vd as f,wa as m,wb as b,xc as E,yb as d,yc as a}from"./chunk-DUSKF5IQ.js";var _=e=>({"pe-none":e}),O=()=>["/menu/Profile/Main/My_Subscription"],k=e=>({"text-decoration-none":e}),A=e=>({"text-capitalize":e});function L(e,i){if(e&1&&(c(0,"div",1)(1,"h5",2),u(2),c(3,"a",3)(4,"u",4)(5,"span",4),u(6,"please"),l(),u(7," process your payment! "),l()()()()),e&2){let t=h();y("alert rounded-0 mb-0 text-center border-bottom "+(t.subscriptionState==null?null:t.subscriptionState.class)),n(2),v(" ",t.subscriptionState==null?null:t.subscriptionState.message," "),n(),o("ngClass",a(7,_,t.isMySubscriptionMenu))("routerLink",E(9,O)),n(),o("ngClass",a(10,k,t.isMySubscriptionMenu)),n(),o("ngClass",a(12,A,t.isNotEmpty(t.currentSubStatus)&&t.currentSubStatus!=t.subsStatusEnum.OVERDUE))}}var x=class e{constructor(i,t,s){this.document=i;this.router=t;this.authService=s}document;router;authService;subscriptionStatus;subscriptionState;currentSubStatus;subsStatusEnum=N;isMySubscriptionMenu;htmlStyleElement;htmlBodyElement;ngOnInit(){this.checkMySubscriptionMenu(),this.initSubscriptionStatus(),this.getCurrentSubscriptionStatus()}getCurrentSubscriptionStatus(){this.overrideCssStickyHeader()}checkMySubscriptionMenu(){this.isMySubscriptionMenu=!1,this.router.url.includes("/Profile/Main/My_Subscription")&&(this.isMySubscriptionMenu=!0)}isNotEmpty(i){return p.IsNotEmpty(i)}overrideCssStickyHeader(){if(p.IsNotEmpty(this.currentSubStatus)&&this.currentSubStatus!==0){let i=`.sticky-top-thead th {
1
+ import{a as N,c as I}from"./chunk-UU6XXQWK.js";import{a as p}from"./chunk-PPTZHIIZ.js";import{$a as r,Db as o,Eb as c,Fb as l,Pd as C,Qd as M,Sd as D,Ua as n,Ub as h,db as S,gc as y,hc as u,id as g,jc as v,vd as f,wa as m,wb as b,xc as E,yb as d,yc as a}from"./chunk-DUSKF5IQ.js";var _=e=>({"pe-none":e}),O=()=>["/menu/Profile/Main/My_Subscription"],k=e=>({"text-decoration-none":e}),A=e=>({"text-capitalize":e});function L(e,i){if(e&1&&(c(0,"div",1)(1,"h5",2),u(2),c(3,"a",3)(4,"u",4)(5,"span",4),u(6,"please"),l(),u(7," process your payment! "),l()()()()),e&2){let t=h();y("alert rounded-0 mb-0 text-center border-bottom "+(t.subscriptionState==null?null:t.subscriptionState.class)),n(2),v(" ",t.subscriptionState==null?null:t.subscriptionState.message," "),n(),o("ngClass",a(7,_,t.isMySubscriptionMenu))("routerLink",E(9,O)),n(),o("ngClass",a(10,k,t.isMySubscriptionMenu)),n(),o("ngClass",a(12,A,t.isNotEmpty(t.currentSubStatus)&&t.currentSubStatus!=t.subsStatusEnum.OVERDUE))}}var x=class e{constructor(i,t,s){this.document=i;this.router=t;this.authService=s}document;router;authService;subscriptionStatus;subscriptionState;currentSubStatus;subsStatusEnum=N;isMySubscriptionMenu;htmlStyleElement;htmlBodyElement;ngOnInit(){this.checkMySubscriptionMenu(),this.initSubscriptionStatus(),this.getCurrentSubscriptionStatus()}getCurrentSubscriptionStatus(){this.overrideCssStickyHeader()}checkMySubscriptionMenu(){this.isMySubscriptionMenu=!1,this.router.url.includes("/Profile/Main/My_Subscription")&&(this.isMySubscriptionMenu=!0)}isNotEmpty(i){return p.IsNotEmpty(i)}overrideCssStickyHeader(){if(p.IsNotEmpty(this.currentSubStatus)&&this.currentSubStatus!==0){let i=`.sticky-top-thead th {
2
2
  top: 100px !important;
3
3
  z-index: 1020;
4
4
  }`;this.htmlBodyElement=this.document.getElementsByTagName("body")[0],this.htmlStyleElement=this.document.createElement("style"),this.htmlStyleElement.appendChild(this.document.createTextNode(i)),this.htmlBodyElement.appendChild(this.htmlStyleElement)}}initSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus(),this.subscriptionStatus=[{status:1,class:"alert-warning",message:"Your subscription is overdue. To avoid suspension, "},{status:2,class:"alert-danger",message:"Your subscription is partially suspended."},{status:3,class:"alert-danger",message:"Your subscription is suspended."}],this.subscriptionState=this.subscriptionStatus.filter(i=>i.status==this.currentSubStatus)[0]}ngOnDestroy(){this.htmlBodyElement&&this.htmlBodyElement.removeChild(this.htmlStyleElement)}static \u0275fac=function(t){return new(t||e)(r(m),r(C),r(I))};static \u0275cmp=S({type:e,selectors:[["subscription-alert"]],decls:1,vars:1,consts:[["role","alert",3,"class"],["role","alert"],[1,"fw-normal"],[1,"alert-link",3,"ngClass","routerLink"],[3,"ngClass"]],template:function(t,s){t&1&&b(0,L,8,14,"div",0),t&2&&d((s.subscriptionState==null?null:s.subscriptionState.status)==s.currentSubStatus&&s.isNotEmpty(s.currentSubStatus)?0:-1)},dependencies:[f,g,D,M],encapsulation:2})};export{x as a};