dealpos 26.11.2 → 26.12.0

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 (135) hide show
  1. package/browser/{chunk-SUCSZKY6.js → chunk-26XUUMVY.js} +1 -1
  2. package/browser/{chunk-ID6ASCFN.js → chunk-2F3Z5UVP.js} +1 -1
  3. package/browser/{chunk-JBHTV33K.js → chunk-2TB4DWSF.js} +1 -1
  4. package/browser/{chunk-O47TQJRE.js → chunk-2VD2BAFV.js} +1 -1
  5. package/browser/{chunk-DIHKWZQR.js → chunk-2XCPI5BA.js} +1 -1
  6. package/browser/{chunk-YYPRMITE.js → chunk-2Y4RH3RF.js} +7 -7
  7. package/browser/{chunk-PHFHHI42.js → chunk-32HLH2WV.js} +1 -1
  8. package/browser/{chunk-AFR6CX53.js → chunk-3D5WIDB2.js} +1 -1
  9. package/browser/{chunk-SCNM5JHU.js → chunk-3GQGKC6R.js} +1 -1
  10. package/browser/chunk-4CHILPFV.js +1 -0
  11. package/browser/{chunk-FHT32FBA.js → chunk-4IXXEMEG.js} +1 -1
  12. package/browser/{chunk-QXCLLLQJ.js → chunk-52IRQ3W4.js} +1 -1
  13. package/browser/{chunk-IUKLU5VV.js → chunk-5CFLIOKI.js} +1 -1
  14. package/browser/{chunk-I7D4YJFN.js → chunk-5IL7ABDA.js} +1 -1
  15. package/browser/{chunk-HBVA6ALZ.js → chunk-5NUWZ2DA.js} +1 -1
  16. package/browser/chunk-5R7HCQNN.js +1 -0
  17. package/browser/chunk-5V6TQM7E.js +11 -0
  18. package/browser/{chunk-RJFGWOWN.js → chunk-6M4GRBHH.js} +1 -1
  19. package/browser/{chunk-ZYCRCR23.js → chunk-6NDNRWOL.js} +1 -1
  20. package/browser/{chunk-CEISBBT5.js → chunk-6X6UVFTU.js} +1 -1
  21. package/browser/{chunk-DTK256PX.js → chunk-72Z4XZNR.js} +1 -1
  22. package/browser/{chunk-ZG24OXOA.js → chunk-7EXZUXBG.js} +1 -1
  23. package/browser/{chunk-BBHPNNCV.js → chunk-7G4G3EXO.js} +1 -1
  24. package/browser/chunk-7S2HVOMP.js +1 -0
  25. package/browser/{chunk-GA6FI6X5.js → chunk-AAXHA3ZZ.js} +1 -1
  26. package/browser/{chunk-6KSO4KTP.js → chunk-AMT6MYPE.js} +1 -1
  27. package/browser/{chunk-ZMJ3YEO2.js → chunk-AXEDRWB7.js} +1 -1
  28. package/browser/{chunk-JUTDOWQO.js → chunk-AXJFR5AK.js} +1 -1
  29. package/browser/{chunk-TUJOSOTS.js → chunk-BBU7LR65.js} +1 -1
  30. package/browser/{chunk-7W3BG7BQ.js → chunk-BCPXVLM6.js} +1 -1
  31. package/browser/{chunk-PEMIAQVF.js → chunk-BHDNBMUZ.js} +1 -1
  32. package/browser/{chunk-U5OVHDM5.js → chunk-BIEMF3BN.js} +1 -1
  33. package/browser/{chunk-7LVN27X3.js → chunk-BIZEPM2U.js} +1 -1
  34. package/browser/{chunk-BTTPQNZI.js → chunk-BLMIYII7.js} +1 -1
  35. package/browser/{chunk-NE4DW323.js → chunk-C3DQQRQ2.js} +1 -1
  36. package/browser/{chunk-5O6NSC2S.js → chunk-COD2FOFZ.js} +1 -1
  37. package/browser/{chunk-BEJAFSX7.js → chunk-CRP4C2DJ.js} +1 -1
  38. package/browser/{chunk-GK27KVC6.js → chunk-CTDI4Y2H.js} +1 -1
  39. package/browser/{chunk-K4DVE5SB.js → chunk-CUQUMT3C.js} +1 -1
  40. package/browser/{chunk-WSLI3BRO.js → chunk-CYBZMVWA.js} +1 -1
  41. package/browser/{chunk-JTRTEYEQ.js → chunk-DQGWDGL6.js} +1 -1
  42. package/browser/{chunk-BCLFJBJH.js → chunk-EMYSZ4NW.js} +1 -1
  43. package/browser/{chunk-GBEH2GQK.js → chunk-EPZLV6N2.js} +1 -1
  44. package/browser/{chunk-HEPRIXQH.js → chunk-F2CXQF62.js} +1 -1
  45. package/browser/{chunk-QGESY66Q.js → chunk-FBTVKBCZ.js} +1 -1
  46. package/browser/{chunk-WSC7XOM6.js → chunk-FJNAUI6P.js} +1 -1
  47. package/browser/{chunk-K4ZEAE42.js → chunk-FMYD2SS5.js} +1 -1
  48. package/browser/{chunk-X2DFELGG.js → chunk-FVGGSFY6.js} +1 -1
  49. package/browser/{chunk-TSB5TOB7.js → chunk-GRY3K2BE.js} +1 -1
  50. package/browser/{chunk-SU3KG3X2.js → chunk-HQVRVGSE.js} +1 -1
  51. package/browser/{chunk-DODXHWV7.js → chunk-HQWMPP7N.js} +1 -1
  52. package/browser/{chunk-XMGS62L2.js → chunk-HVO4CLXC.js} +2 -2
  53. package/browser/{chunk-3RJZORPX.js → chunk-IEPOIJMJ.js} +1 -1
  54. package/browser/{chunk-E5NTTLYO.js → chunk-ILT3IVEC.js} +1 -1
  55. package/browser/{chunk-QCUFONJE.js → chunk-IYHDYYUO.js} +1 -1
  56. package/browser/{chunk-O7VAETOC.js → chunk-J32A6JBX.js} +1 -1
  57. package/browser/chunk-JDMJ5GIS.js +1 -0
  58. package/browser/{chunk-7IS52AUX.js → chunk-JEERF75Z.js} +1 -1
  59. package/browser/{chunk-B5VLRPER.js → chunk-JGLCEXFN.js} +1 -1
  60. package/browser/{chunk-RGN3LIOK.js → chunk-JHFHWXHV.js} +2 -2
  61. package/browser/{chunk-IXKO7QUE.js → chunk-JQKDNPDL.js} +1 -1
  62. package/browser/{chunk-72UIWWLR.js → chunk-JVWX4MBU.js} +1 -1
  63. package/browser/{chunk-BJ7PMMCX.js → chunk-KDZN6CLW.js} +1 -1
  64. package/browser/{chunk-4B7ERXAV.js → chunk-KNAHEF3P.js} +1 -1
  65. package/browser/{chunk-KWZBBV7Y.js → chunk-KTU7RS3D.js} +1 -1
  66. package/browser/{chunk-OX5252EU.js → chunk-KWXA5O4U.js} +2 -2
  67. package/browser/{chunk-6FJ6CQE4.js → chunk-L7FXJQ6S.js} +1 -1
  68. package/browser/{chunk-FJVUW5YI.js → chunk-LAYUOJ4E.js} +2 -2
  69. package/browser/{chunk-WW3VUA6X.js → chunk-LEE7ZT44.js} +1 -1
  70. package/browser/{chunk-GERGVPOW.js → chunk-M7K6SZC5.js} +1 -1
  71. package/browser/{chunk-XQP4FZOB.js → chunk-MD7BOYRH.js} +1 -1
  72. package/browser/{chunk-TJM4PWVK.js → chunk-MFCDS575.js} +1 -1
  73. package/browser/{chunk-QJCWPJ75.js → chunk-MIIB3ACP.js} +1 -1
  74. package/browser/{chunk-FJX7637J.js → chunk-MMIOVTIV.js} +1 -1
  75. package/browser/{chunk-INIFCYWR.js → chunk-MO3CY3WA.js} +1 -1
  76. package/browser/{chunk-77PA3T3O.js → chunk-NCCZ7JRZ.js} +1 -1
  77. package/browser/{chunk-6GGMMNQL.js → chunk-NDJDP35J.js} +1 -1
  78. package/browser/{chunk-QYFDIL7D.js → chunk-NJE4DB6K.js} +2 -2
  79. package/browser/{chunk-D3SJSCZU.js → chunk-NK4RJ4O4.js} +1 -1
  80. package/browser/{chunk-R2ARYKFC.js → chunk-NO4ULFJ4.js} +1 -1
  81. package/browser/{chunk-T4UC7AP2.js → chunk-NOT3CVTT.js} +1 -1
  82. package/browser/{chunk-5CJ4XLUW.js → chunk-NX66O4OV.js} +1 -1
  83. package/browser/{chunk-3DXZUM62.js → chunk-OO6TP4TI.js} +1 -1
  84. package/browser/{chunk-65VDHDYD.js → chunk-OUM2WZQJ.js} +1 -1
  85. package/browser/{chunk-O6WHI5IA.js → chunk-PDWB3BKO.js} +1 -1
  86. package/browser/{chunk-WJFZRJUF.js → chunk-PFB6AB4J.js} +1 -1
  87. package/browser/{chunk-UJ4GTRVM.js → chunk-PHIWPOR3.js} +1 -1
  88. package/browser/{chunk-DCYESA4K.js → chunk-PN2B4PZM.js} +1 -1
  89. package/browser/{chunk-YEK3Y4KR.js → chunk-PYZLA6NP.js} +1 -1
  90. package/browser/{chunk-O2PBDIZT.js → chunk-Q2ZBKNUJ.js} +1 -1
  91. package/browser/{chunk-BMQ5KIDO.js → chunk-Q3IG4BKG.js} +1 -1
  92. package/browser/{chunk-P3R2XMOS.js → chunk-QACC7BH5.js} +1 -1
  93. package/browser/{chunk-VNCNX2HF.js → chunk-QLPTLBJ7.js} +1 -1
  94. package/browser/{chunk-L4Z5SLAF.js → chunk-QZMWGVUE.js} +1 -1
  95. package/browser/{chunk-WVMTLWOK.js → chunk-RTLJPAFV.js} +1 -1
  96. package/browser/{chunk-A7MLI65Y.js → chunk-SEJDSOEF.js} +2 -2
  97. package/browser/{chunk-CJ2DUUTR.js → chunk-SLCERZVR.js} +1 -1
  98. package/browser/{chunk-ZLC735ZU.js → chunk-SYBO6Q54.js} +1 -1
  99. package/browser/{chunk-D24ZBSQ4.js → chunk-SYWL3HFD.js} +1 -1
  100. package/browser/{chunk-H473VFCZ.js → chunk-TK4JHGFA.js} +1 -1
  101. package/browser/{chunk-CV5K736C.js → chunk-TOUCJZBH.js} +1 -1
  102. package/browser/{chunk-I5DZML75.js → chunk-U3SEFXFE.js} +1 -1
  103. package/browser/{chunk-NVX5QZRA.js → chunk-UA3TPMIJ.js} +1 -1
  104. package/browser/{chunk-ZNGQLUB3.js → chunk-UDUBUWVS.js} +1 -1
  105. package/browser/{chunk-HZRX446E.js → chunk-V4FPJ5VR.js} +1 -1
  106. package/browser/{chunk-XNXGHR7P.js → chunk-V54IMWPL.js} +1 -1
  107. package/browser/{chunk-NCYT6VHW.js → chunk-VCKNWHFB.js} +1 -1
  108. package/browser/{chunk-PWFQBEHR.js → chunk-VPFDGUBC.js} +1 -1
  109. package/browser/{chunk-JTUBT2YM.js → chunk-WHLQ72PG.js} +1 -1
  110. package/browser/{chunk-TFO562ER.js → chunk-WQ6BE7SM.js} +1 -1
  111. package/browser/{chunk-Z7M7TS3W.js → chunk-WX6FLFBO.js} +1 -1
  112. package/browser/{chunk-H7AXZU5M.js → chunk-WZVFFBZM.js} +1 -1
  113. package/browser/{chunk-45PXE4R7.js → chunk-XALV4MYN.js} +1 -1
  114. package/browser/{chunk-HUIFULZI.js → chunk-XLUAL72H.js} +1 -1
  115. package/browser/{chunk-6C3ASKZH.js → chunk-XOXPGG4Y.js} +1 -1
  116. package/browser/{chunk-ZV4H6TTC.js → chunk-Y3OQ7O5C.js} +1 -1
  117. package/browser/chunk-YAQ7HN62.js +1 -1
  118. package/browser/{chunk-TLNY5KZS.js → chunk-YSIUCDOT.js} +1 -1
  119. package/browser/{chunk-UGHADEY5.js → chunk-YUN7ZFJX.js} +1 -1
  120. package/browser/{chunk-PQRU7ZVS.js → chunk-YWAAVL5W.js} +1 -1
  121. package/browser/{chunk-THWO44HD.js → chunk-ZAPQGZEA.js} +1 -1
  122. package/browser/{chunk-YNK3TXZF.js → chunk-ZFW7KOWA.js} +1 -1
  123. package/browser/chunk-ZJV2P4BH.js +1 -0
  124. package/browser/{chunk-MTKFEHRK.js → chunk-ZR6VGAC7.js} +1 -1
  125. package/browser/{chunk-JEIFO3EM.js → chunk-ZZHNQPQJ.js} +1 -1
  126. package/browser/{chunk-K4K4SW45.js → chunk-ZZOKMXLH.js} +1 -1
  127. package/browser/index.html +2 -2
  128. package/browser/{main-FEOIQB67.js → main-54LL7TYK.js} +2 -2
  129. package/browser/{styles-6WEVE7DN.css → styles-J4GU5MZO.css} +1 -1
  130. package/package.json +1 -1
  131. package/browser/chunk-AJEIT7WI.js +0 -1
  132. package/browser/chunk-BILYITXV.js +0 -1
  133. package/browser/chunk-MMUHQPRE.js +0 -1
  134. package/browser/chunk-PUMFGZ22.js +0 -1
  135. package/browser/chunk-TED37PBA.js +0 -11
@@ -1 +1 @@
1
- import{a as rt}from"./chunk-4VGCD2S7.js";import{c as et,d as tt,e as it}from"./chunk-EMLV5DDD.js";import{a as me}from"./chunk-G2UNSH3R.js";import{b as Je}from"./chunk-JFS6EFNT.js";import{N as nt}from"./chunk-H7AXZU5M.js";import{$ as ue,C as ae,E as We,I as N,Q as Ge,X as Ze,Y as ce,ba as le,ca as $e,f as h,ga as de,k as se,ka as Xe,n as oe,o as Ye}from"./chunk-NFVNHSX5.js";import{a as ze}from"./chunk-DHBFOXIN.js";import{$ as Se,Bb as M,Bc as I,Ca as b,Cc as te,Da as H,Db as C,Dc as ie,E as q,Fa as De,Fb as U,G as Ce,Gb as j,Hb as z,Ib as v,Ja as we,Jb as u,Ka as Fe,Kb as d,Kc as K,La as Q,Lb as E,Ma as Pe,Mb as $,N as ve,Nb as X,Nc as B,Ob as Ke,P as Ie,R as xe,Tc as Qe,Ua as Z,Ub as R,Ud as Ue,Vb as J,Wd as je,Xb as p,Za as c,Zb as l,_ as Te,aa as D,ac as Be,ba as Oe,cc as Ne,d as g,db as L,dc as qe,dd as ne,ea as m,fd as re,gb as Re,ib as V,jb as Ae,jc as ee,kb as k,lc as He,mc as f,na as G,nb as P,nc as A,oa as Ee,oc as Y,pa as T,ra as s,va as w,w as be,wa as F,x as Me,xb as O,yd as Le,za as S,zd as Ve}from"./chunk-2ERDZXCS.js";import{a as x,b as ye}from"./chunk-SNAKHGZS.js";var at=()=>["/menu/Outlets/Master/Quick_Key_Templates/Form"],_t=t=>({ID:t}),kt=t=>({OutletID:t});function yt(t,r){if(t&1&&E(0,"img",16),t&2){let e=l(2).$implicit;v("src",e.ImageURLClient,Z)}}function bt(t,r){if(t&1&&(u(0,"div",14)(1,"div",15),M(2,yt,1,1,"img",16),d()()),t&2){let e=l().$implicit;c(2),C(e.ImageURLClient?2:-1)}}function Mt(t,r){if(t&1&&(u(0,"div",15)(1,"p",17)(2,"span"),f(3),K(4,"slice"),d()()()),t&2){let e=l().$implicit;c(3),A(B(4,1,e.Display,0,3))}}function Ct(t,r){if(t&1){let e=R();u(0,"div",9)(1,"a",13),p("click",function(){let n=w(e).$implicit,o=l(4);return F(o.onSelectQuickKeyItem(n))}),M(2,bt,3,1,"div",14)(3,Mt,5,5,"div",15),u(4,"small"),f(5),K(6,"slice"),d()()()}if(t&2){let e=r.$implicit;c(2),C(e.ImageURLClient?2:3),c(3),A(B(6,2,e.Display,0,36))}}function vt(t,r){if(t&1&&(u(0,"mat-tab",6)(1,"div",7)(2,"div",8),j(3,Ct,7,6,"div",9,U),u(5,"div",10)(6,"a",11),E(7,"i",12),d()()()()()),t&2){let e=r.$implicit,i=l(3);v("label",e.Name),c(3),z(e==null?null:e.Items),c(3),v("routerLink",te(3,at))("queryParams",ie(4,_t,i.quickKey.ID))}}function It(t,r){if(t&1){let e=R();u(0,"mat-tab-group",5),p("selectedIndexChange",function(n){w(e);let o=l(2);return F(o.onChangeTab(n))}),j(1,vt,8,6,"mat-tab",6,U),d()}if(t&2){let e=l(2);v("disableRipple",!0)("selectedIndex",e.selectedTabIndex),c(),z(e.quickKey==null?null:e.quickKey.Groups)}}function xt(t,r){if(t&1&&E(0,"img",16),t&2){let e=l(2).$implicit;v("src",e.ImageURLClient,Z)}}function Tt(t,r){if(t&1&&(u(0,"div",14)(1,"div",15),M(2,xt,1,1,"img",16),d()()),t&2){let e=l().$implicit;c(2),C(e.ImageURLClient?2:-1)}}function St(t,r){if(t&1&&(u(0,"div",15)(1,"p",17)(2,"span"),f(3),K(4,"slice"),d()()()),t&2){let e=l().$implicit;c(3),A(B(4,1,e.Model,0,3))}}function Ot(t,r){if(t&1){let e=R();u(0,"div",9)(1,"a",13),p("click",function(){let n=w(e).$implicit,o=l(3);return F(o.onSelectVariant(n.ID))}),M(2,Tt,3,1,"div",14)(3,St,5,5,"div",15),u(4,"small"),f(5),K(6,"slice"),d()()()}if(t&2){let e=r.$implicit;c(2),C(e.ImageURLClient?2:3),c(3),A(B(6,2,e.Model,0,30))}}function Et(t,r){if(t&1){let e=R();u(0,"div",18)(1,"div",19),p("click",function(){w(e);let n=l(2);return F(n.quickKeyState="QUICKKEY")}),E(2,"i",20),d(),u(3,"div",21)(4,"b"),f(5),d()()(),u(6,"div",7)(7,"div",8),j(8,Ot,7,6,"div",9,U),d()()}if(t&2){let e=l(2);c(5),Y(" ",e.subQuickKeyPack.Display),c(3),z(e.subQuickKeyPack==null?null:e.subQuickKeyPack.Children)}}function Dt(t,r){if(t&1&&M(0,It,3,2,"mat-tab-group",4)(1,Et,10,1),t&2){let e=l();C(e.quickKeyState=="QUICKKEY"?0:1)}}function wt(t,r){if(t&1&&(u(0,"div",3)(1,"a",22)(2,"strong"),f(3,"QUICK KEYS UNCONFIGURED"),d(),E(4,"i",23),u(5,"span"),f(6,"Click here to setup your Quick keys"),d()()()),t&2){let e=l();c(),v("routerLink",te(2,at))("queryParams",ie(3,kt,e.outletID))}}var st=class t{sf=s(rt);quickKey;get outletID(){return this._outletID}set outletID(r){this._outletID=r,this._outletID&&(this.quickKeyState="QUICKKEY")}_outletID="";_onSelectVariant=new b;quickKeyState="QUICKKEY";subQuickKeyPack;selectedTabIndex=0;disabled=!1;onChange=r=>{};onTouched=()=>{};writeValue(r){}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.disabled=r}onSelectQuickKeyItem(r){r.Children?r.Children.length==1?this.onSelectVariant(r.Children[0].ID):(this.quickKeyState="SUBQUICKKEY",this.subQuickKeyPack={Children:r.Children,Display:r.Display}):this.onSelectVariant(r.ItemID)}onSelectVariant(r){this.quickKeyState="QUICKKEY",this._onSelectVariant.emit(r),this.onChange(r),this.sf.searchFilterNativeEl?.focus()}onChangeTab(r){this.selectedTabIndex=r}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=V({type:t,selectors:[["POS-quick-key"]],inputs:{quickKey:"quickKey",outletID:"outletID"},outputs:{_onSelectVariant:"onSelectVariant"},features:[I([{provide:ze,multi:!0,useExisting:t}])],decls:5,vars:1,consts:[[1,"row","h-100"],[1,"col-12"],[1,"quick-key-tab","h-100","pt-4"],[1,"no-quick-key"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"disableRipple","selectedIndex"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"selectedIndexChange","disableRipple","selectedIndex"],[3,"label"],[1,"container","tabItems"],[1,"row","g-0"],[1,"col-3","column","px-6"],[1,"col-3","column","px-8","add","pt-8"],[3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-plus-circle","fa-5x","d-flex","align-items-center","justify-content-center","bg-white","h-100","text-primary"],[3,"click"],[1,"img-box","d-flex","align-items-center"],[1,"ratio","ratio-1x1"],[1,"full-screen-image",3,"src"],[1,"fw-normal","fs-1","d-flex","align-items-center","justify-content-center"],[1,"row","g-0","border","align-items-center","subquicKey"],[1,"col-auto","border-end","py-5","px-7","cursor-pointer",3,"click"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"col","text-center","fw-bold","text-uppercase","fs-5"],["id","LinkConfigureQuickkey","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-regular","fa-hand-pointer"]],template:function(e,i){e&1&&(u(0,"div",0)(1,"div",1)(2,"section",2),M(3,Dt,2,1)(4,wt,7,5,"div",3),d()()()),e&2&&(c(3),C(i.quickKey&&i.quickKey.Groups?3:4))},dependencies:[Ve,je,Ue,nt,it,et,tt,Le],styles:[".quick-key-tab{width:100%;position:relative;height:100%;max-height:calc(100vh - 70px)} .quick-key-tab .mat-mdc-tab-header-pagination{display:none!important} .quick-key-tab .mat-mdc-tab-header{border:none} .quick-key-tab .mdc-tab-indicator{display:none!important} .quick-key-tab .mat-mdc-tab-body-wrapper{width:102%} .quick-key-tab .mat-mdc-tab-labels{border-bottom:0px;display:flex;flex-wrap:wrap;border-radius:6px} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab{color:#151515;opacity:1;height:38px;max-height:40px;white-space:normal!important;overflow:hidden;padding:0!important;min-width:25%!important;flex-basis:0;font-size:12px;font-weight:700;outline:none;text-transform:uppercase;background:#fff;display:flex} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab__content{white-space:normal!important;align-self:center;font-size:.875rem!important} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active{background:linear-gradient(to bottom,#fff,#eee);border-radius:6px;border:.5px solid #dadada} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active .mdc-tab__text-label{color:gray!important;font-weight:700} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab:nth-child(n+5){flex-grow:0!important} .quick-key-tab .tabItems{padding:0} .quick-key-tab .tabItems .column{margin-top:15px;margin-bottom:10px;word-break:break-all} .quick-key-tab .tabItems .column>div{border:solid 1px #cfcfcf} .quick-key-tab .tabItems .column>a{text-align:center;display:block;cursor:pointer} .quick-key-tab .tabItems .column>a div.img-box{display:block;margin:0 auto;border-top-left-radius:5px;border-bottom-right-radius:5px;border:solid 1px #dddddd} .quick-key-tab .tabItems .column>a .full-screen-image{position:absolute;object-fit:scale-down} .quick-key-tab .tabItems .column>a p{display:block;margin:0 auto;background-color:#a6a6a6;border:solid 1px #999999;border-top-left-radius:5px;border-bottom-right-radius:5px;color:#fff} .quick-key-tab .tabItems .column>a small{font-size:11px;display:block;margin:5px 0 0} .quick-key-tab .tabItems .column .ion-icon{font-size:75px;margin:10px} .quick-key-tab .col-md-3.column.add{cursor:pointer} .quick-key-tab .col-md-3.column.add i{margin-top:10px} .quick-key-tab ::-webkit-scrollbar{width:3px} .quick-key-tab ::-webkit-scrollbar-track{box-shadow:inset 0 0 5px #bfd2da} .quick-key-tab ::-webkit-scrollbar-thumb{background:#c4c4c4;border-radius:10px} .quick-key-tab .subquicKey{background:linear-gradient(to bottom,#fff,#eee);color:gray;border-radius:6px} .quick-key-tab .no-quick-key{background-image:url(https://cdn.dealpos.xyz/web-image/no-quick-key.png)!important;background-repeat:no-repeat;height:calc(100vh - 70px);background-size:contain}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{background-color:#479ccf;padding:15px 25px;color:#fff;text-decoration:none;width:240px;display:block;opacity:.85;border-radius:6px}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{position:absolute;top:200px;left:calc(50% - 120px)}a#LinkConfigureQuickkey[_ngcontent-%COMP%]:hover{opacity:.95}a#LinkConfigureQuickkey[_ngcontent-%COMP%] Strong[_ngcontent-%COMP%]{border-bottom:1px solid white;font-size:14px;margin:0 0 10px;padding:0 0 3px;display:block}a#LinkConfigureQuickkey[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;height:35px;margin:0 10px 0 0;font-size:28px}a#LinkConfigureQuickkey[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;font-size:14px;width:135px;vertical-align:top}"]})};var lt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenuGroup",""]],hostAttrs:["role","group",1,"cdk-menu-group"],exportAs:["cdkMenuGroup"],features:[I([{provide:me,useClass:me}])]})}return t})(),ge=new T("cdk-menu"),y=(function(t){return t[t.nextItem=0]="nextItem",t[t.previousItem=1]="previousItem",t[t.currentItem=2]="currentItem",t})(y||{}),_=new T("cdk-menu-stack"),Pt={provide:_,useFactory:()=>s(_,{optional:!0,skipSelf:!0})||new _e},Rt=t=>({provide:_,useFactory:()=>s(_,{optional:!0,skipSelf:!0})||_e.inline(t)}),_e=(()=>{class t{id=s(ae).getId("cdk-menu-stack-");_elements=[];_close=new g;_empty=new g;_hasFocus=new g;closed=this._close;hasFocus=this._hasFocus.pipe(D(!1),ve(0),xe());emptied=this._empty;_inlineMenuOrientation=null;static inline(e){let i=new t;return i._inlineMenuOrientation=e,i}push(e){this._elements.push(e)}close(e,i){let{focusNextOnEmpty:n,focusParentTrigger:o}=x({},i);if(this._elements.indexOf(e)>=0){let a;do a=this._elements.pop(),this._close.next({item:a,focusParentTrigger:o});while(a!==e);this.isEmpty()&&this._empty.next(n)}}closeSubMenuOf(e){let i=!1;if(this._elements.indexOf(e)>=0)for(i=this.peek()!==e;this.peek()!==e;)this._close.next({item:this._elements.pop()});return i}closeAll(e){let{focusNextOnEmpty:i,focusParentTrigger:n}=x({},e);if(!this.isEmpty()){for(;!this.isEmpty();){let o=this._elements.pop();o&&this._close.next({item:o,focusParentTrigger:n})}this._empty.next(i)}}isEmpty(){return!this._elements.length}length(){return this._elements.length}peek(){return this._elements[this._elements.length-1]}hasInlineMenu(){return this._inlineMenuOrientation!=null}inlineMenuOrientation(){return this._inlineMenuOrientation}setHasFocus(e){this._hasFocus.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),W=new T("cdk-menu-trigger"),At=new T("cdk-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=s(S);return()=>Ze(t)}}),dt=(()=>{class t{static _openMenuTrigger;update(e){t._openMenuTrigger!==e&&(t._openMenuTrigger?.close(),t._openMenuTrigger=e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mt=(()=>{class t{injector=s(S);viewContainerRef=s(Re);menuStack=s(_);menuScrollStrategy=s(At);menuPosition;opened=new b;closed=new b;menuTemplateRef=null;menuData;transformOriginSelector=null;overlayRef=null;destroyed=new g;stopOutsideClicksListener=q(this.closed,this.destroyed);childMenu;_menuPortal;_childMenuInjector;ngOnDestroy(){this._destroyOverlay(),this.destroyed.next(),this.destroyed.complete()}isOpen(){return!!this.overlayRef?.hasAttached()}registerChildMenu(e){this.childMenu=e}getMenuContentPortal(){let e=this.menuTemplateRef!==this._menuPortal?.templateRef;return this.menuTemplateRef&&(!this._menuPortal||e)&&(this._menuPortal=new Ge(this.menuTemplateRef,this.viewContainerRef,this.menuData,this._getChildMenuInjector())),this._menuPortal}isElementInsideMenuStack(e){for(let i=e;i;i=i?.parentElement??null)if(i.getAttribute("data-cdk-menu-stack-id")===this.menuStack.id)return!0;return!1}_destroyOverlay(){this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}_getChildMenuInjector(){return this._childMenuInjector=this._childMenuInjector||S.create({providers:[{provide:W,useValue:this},{provide:_,useValue:this.menuStack}],parent:this.injector}),this._childMenuInjector}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,hostVars:2,hostBindings:function(i,n){i&2&&O("aria-controls",n.childMenu==null?null:n.childMenu.id)("data-cdk-menu-stack-id",n.menuStack.id)}})}return t})();var ke=new T("cdk-menu-aim");function pt(t,r){if(!r.isTrusted)return!1;let e=t.nativeElement,i=r.keyCode;return e.nodeName==="BUTTON"&&!e.disabled?i===13||i===32:e.nodeName==="A"?i===13:!1}var Kt=(()=>{class t extends mt{_elementRef=s(Q);_ngZone=s(H);_changeDetectorRef=s(ne);_inputModalityDetector=s(oe);_directionality=s(N,{optional:!0});_renderer=s(L);_injector=s(S);_cleanupMouseenter;_menuTracker=s(dt);_parentMenu=s(ge,{optional:!0});_menuAim=s(ke,{optional:!0});constructor(){super(),this._setRole(),this._registerCloseHandler(),this._subscribeToMenuStackClosed(),this._subscribeToMouseEnter(),this._subscribeToMenuStackHasFocus(),this._setType()}toggle(){this.isOpen()?this.close():this.open()}open(){this._parentMenu||this._menuTracker.update(this),!this.isOpen()&&this.menuTemplateRef!=null&&(this.opened.next(),this.overlayRef=this.overlayRef||de(this._injector,this._getOverlayConfig()),this.overlayRef.attach(this.getMenuContentPortal()),this._changeDetectorRef.markForCheck(),this._subscribeToOutsideClicks())}close(){this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this._changeDetectorRef.markForCheck()),this._closeSiblingTriggers()}getMenu(){return this.childMenu}ngOnChanges(e){e.menuPosition&&this.overlayRef&&this.overlayRef.updatePositionStrategy(this._getOverlayPositionStrategy())}ngOnDestroy(){this._cleanupMouseenter(),super.ngOnDestroy()}_toggleOnKeydown(e){let i=this._parentMenu?.orientation==="vertical";switch(e.keyCode){case 32:case 13:!h(e)&&!pt(this._elementRef,e)&&(this.toggle(),this.childMenu?.focusFirstItem("keyboard"));break;case 39:h(e)||this._parentMenu&&i&&this._directionality?.value!=="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 37:h(e)||this._parentMenu&&i&&this._directionality?.value==="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 40:case 38:h(e)||i||(e.preventDefault(),this.open(),e.keyCode===40?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusLastItem("keyboard"));break}}_handleClick(){this.toggle(),this.childMenu?.focusFirstItem("mouse")}_setHasFocus(e){this._parentMenu||this.menuStack.setHasFocus(e)}_subscribeToMouseEnter(){this._cleanupMouseenter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{if(this._inputModalityDetector.mostRecentModality!=="touch"&&!this.menuStack.isEmpty()&&!this.isOpen()){let e=()=>this._ngZone.run(()=>{this._closeSiblingTriggers(),this.open()});this._menuAim?this._menuAim.toggle(e):e()}}))}_closeSiblingTriggers(){this._parentMenu?!this.menuStack.closeSubMenuOf(this._parentMenu)&&this.menuStack.peek()!==this._parentMenu&&this.menuStack.closeAll():this.menuStack.closeAll()}_getOverlayConfig(){return new ce({positionStrategy:this._getOverlayPositionStrategy(),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(){let e=ue(this._injector,this._elementRef).withLockedPosition().withFlexibleDimensions(!1).withPositions(this._getOverlayPositions());return this.transformOriginSelector&&e.withTransformOriginOn(this.transformOriginSelector),e}_getOverlayPositions(){return this.menuPosition??(!this._parentMenu||this._parentMenu.orientation==="horizontal"?le:$e)}_registerCloseHandler(){this._parentMenu||this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.close()})}_subscribeToOutsideClicks(){this.overlayRef&&this.overlayRef.outsidePointerEvents().pipe(m(this.stopOutsideClicksListener)).subscribe(e=>{let i=se(e),n=this._elementRef.nativeElement;i!==n&&!n.contains(i)&&(this.isElementInsideMenuStack(i)?this._closeSiblingTriggers():this.menuStack.closeAll())})}_subscribeToMenuStackHasFocus(){this._parentMenu||this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{e||this.menuStack.closeAll()})}_subscribeToMenuStackClosed(){this._parentMenu||this.menuStack.closed.subscribe(({focusParentTrigger:e})=>{e&&!this.menuStack.length()&&this._elementRef.nativeElement.focus()})}_setRole(){this._parentMenu||this._elementRef.nativeElement.setAttribute("role","button")}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenuTriggerFor",""]],hostAttrs:[1,"cdk-menu-trigger"],hostVars:2,hostBindings:function(i,n){i&1&&p("focusin",function(){return n._setHasFocus(!0)})("focusout",function(){return n._setHasFocus(!1)})("keydown",function(a){return n._toggleOnKeydown(a)})("click",function(){return n._handleClick()}),i&2&&O("aria-haspopup",n.menuTemplateRef?"menu":null)("aria-expanded",n.menuTemplateRef==null?null:n.isOpen())},inputs:{menuTemplateRef:[0,"cdkMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkMenuPosition","menuPosition"],menuData:[0,"cdkMenuTriggerData","menuData"],transformOriginSelector:[0,"cdkMenuTriggerTransformOriginOn","transformOriginSelector"]},outputs:{opened:"cdkMenuOpened",closed:"cdkMenuClosed"},exportAs:["cdkMenuTriggerFor"],features:[I([{provide:W,useExisting:t},Pt]),P,we]})}return t})(),Bt=(()=>{class t{_dir=s(N,{optional:!0});_elementRef=s(Q);_ngZone=s(H);_inputModalityDetector=s(oe);_renderer=s(L);_cleanupMouseEnter;_menuAim=s(ke,{optional:!0});_menuStack=s(_);_parentMenu=s(ge,{optional:!0});_menuTrigger=s(Kt,{optional:!0,self:!0});disabled=!1;typeaheadLabel=null;triggered=new b;get hasMenu(){return this._menuTrigger?.menuTemplateRef!=null}_tabindex=-1;closeOnSpacebarTrigger=!0;destroyed=new g;constructor(){this._setupMouseEnter(),this._setType(),this._isStandaloneItem()&&(this._tabindex=0)}ngOnDestroy(){this._cleanupMouseEnter?.(),this.destroyed.next(),this.destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}trigger(e){let{keepOpen:i}=x({},e);!this.disabled&&!this.hasMenu&&(this.triggered.next(),i||this._menuStack.closeAll({focusParentTrigger:!0}))}isMenuOpen(){return!!this._menuTrigger?.isOpen()}getMenu(){return this._menuTrigger?.getMenu()}getMenuTrigger(){return this._menuTrigger}getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}_resetTabIndex(){this._isStandaloneItem()||(this._tabindex=-1)}_setTabIndex(e){this.disabled||(!e||!this._menuStack.isEmpty())&&(this._tabindex=0)}_handleClick(e){this.disabled?(e.preventDefault(),e.stopPropagation()):this.trigger()}_onKeydown(e){switch(e.keyCode){case 32:case 13:if(!h(e)&&!pt(this._elementRef,e)){let i=this._elementRef.nativeElement.nodeName;i!=="A"&&i!=="BUTTON"&&e.preventDefault(),this.trigger({keepOpen:e.keyCode===32&&!this.closeOnSpacebarTrigger})}break;case 39:h(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._forwardArrowPressed(e):this._backArrowPressed(e));break;case 37:h(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._backArrowPressed(e):this._forwardArrowPressed(e));break}}_isStandaloneItem(){return!this._parentMenu}_backArrowPressed(e){let i=this._parentMenu;(this._menuStack.hasInlineMenu()||this._menuStack.length()>1)&&(e.preventDefault(),this._menuStack.close(i,{focusNextOnEmpty:this._menuStack.inlineMenuOrientation()==="horizontal"?y.previousItem:y.currentItem,focusParentTrigger:!0}))}_forwardArrowPressed(e){!this.hasMenu&&this._menuStack.inlineMenuOrientation()==="horizontal"&&(e.preventDefault(),this._menuStack.closeAll({focusNextOnEmpty:y.nextItem,focusParentTrigger:!0}))}_setupMouseEnter(){if(!this._isStandaloneItem()){let e=()=>this._ngZone.run(()=>this._menuStack.closeSubMenuOf(this._parentMenu));this._cleanupMouseEnter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{this._inputModalityDetector.mostRecentModality!=="touch"&&!this._menuStack.isEmpty()&&!this.hasMenu&&(this._menuAim?this._menuAim.toggle(e):e())}))}}_isParentVertical(){return this._parentMenu?.orientation==="vertical"}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenuItem",""]],hostAttrs:["role","menuitem",1,"cdk-menu-item"],hostVars:4,hostBindings:function(i,n){i&1&&p("blur",function(){return n._resetTabIndex()})("focus",function(){return n._setTabIndex()})("click",function(a){return n._handleClick(a)})("keydown",function(a){return n._onKeydown(a)}),i&2&&(J("tabIndex",n._tabindex),O("aria-disabled",n.disabled||null),ee("cdk-menu-item-disabled",n.disabled))},inputs:{disabled:[2,"cdkMenuItemDisabled","disabled",re],typeaheadLabel:[0,"cdkMenuitemTypeaheadLabel","typeaheadLabel"]},outputs:{triggered:"cdkMenuItemTriggered"},exportAs:["cdkMenuItem"]})}return t})(),fe=class{_renderer;_items;_eventCleanups;_itemsSubscription;entered=new g;exited=new g;activeElement;previousElement;constructor(r,e){this._renderer=r,this._items=e,this._bindEvents(),this.entered.subscribe(i=>this.activeElement=i),this.exited.subscribe(()=>{this.previousElement=this.activeElement,this.activeElement=void 0})}destroy(){this._cleanupEvents(),this._itemsSubscription?.unsubscribe()}_bindEvents(){this._itemsSubscription=this._items.changes.pipe(D(this._items)).subscribe(()=>{this._cleanupEvents(),this._eventCleanups=[],this._items.forEach(r=>{let e=r._elementRef.nativeElement;this._eventCleanups.push(this._renderer.listen(e,"mouseenter",()=>{this.entered.next(r)}),this._renderer.listen(e,"mouseout",()=>{this.exited.next(r)}))})})}_cleanupEvents(){this._eventCleanups?.forEach(r=>r()),this._eventCleanups=void 0}},Nt=(()=>{class t extends lt{_focusMonitor=s(Ye);ngZone=s(H);_renderer=s(L);nativeElement=s(Q).nativeElement;menuStack=s(_);menuAim=s(ke,{optional:!0,self:!0});dir=s(N,{optional:!0});_allItems;id=s(ae).getId("cdk-menu-");items=new Pe;orientation="vertical";isInline=!1;keyManager;destroyed=new g;triggerItem;pointerTracker;_menuStackHasFocus=De(!1);_tabIndexSignal=Qe(()=>{let e=this._menuStackHasFocus()?-1:0;return this.isInline?e:null});ngAfterContentInit(){this.isInline||this.menuStack.push(this),this._setItems(),this._setKeyManager(),this._handleFocus(),this._subscribeToMenuStackHasFocus(),this._subscribeToMenuOpen(),this._subscribeToMenuStackClosed(),this._setUpPointerTracker()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.nativeElement),this.keyManager?.destroy(),this.destroyed.next(),this.destroyed.complete(),this.pointerTracker?.destroy()}focusFirstItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setFirstItemActive()}focusLastItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setLastItemActive()}setActiveMenuItem(e){this.keyManager?.setActiveItem(e)}_getTabIndex(){return this._tabIndexSignal()}closeOpenMenu(e,i){let{focusParentTrigger:n}=x({},i),o=this.keyManager,a=this.triggerItem;e===a?.getMenuTrigger()?.getMenu()&&(a?.getMenuTrigger()?.close(),n&&(a?o.setActiveItem(a):o.setFirstItemActive()))}_setItems(){this._allItems.changes.pipe(D(this._allItems),m(this.destroyed)).subscribe(e=>{this.items.reset(e.filter(i=>i._parentMenu===this)),this.items.notifyOnChanges()})}_setKeyManager(){this.keyManager=new We(this.items).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1),this.orientation==="horizontal"?this.keyManager.withHorizontalOrientation(this.dir?.value||"ltr"):this.keyManager.withVerticalOrientation()}_subscribeToMenuOpen(){let e=q(this.items.changes,this.destroyed);this.items.changes.pipe(D(this.items),be(i=>i.filter(n=>n.hasMenu).map(n=>n.getMenuTrigger().opened.pipe(Ie(n),m(e)))),Me(),Oe(i=>(this.triggerItem=i,i.getMenuTrigger().closed)),m(this.destroyed)).subscribe(()=>this.triggerItem=void 0)}_subscribeToMenuStackClosed(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e,focusParentTrigger:i})=>this.closeOpenMenu(e,{focusParentTrigger:i}))}_subscribeToMenuStackHasFocus(){this.isInline&&this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{this._menuStackHasFocus.set(e)})}_setUpPointerTracker(){this.menuAim&&(this.ngZone.runOutsideAngular(()=>{this.pointerTracker=new fe(this._renderer,this.items)}),this.menuAim.initialize(this,this.pointerTracker))}_handleFocus(){this._focusMonitor.monitor(this.nativeElement,!1).pipe(m(this.destroyed)).subscribe(e=>{e!==null&&e!=="mouse"&&this.focusFirstItem(e)})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Fe(t)))(n||t)}})();static \u0275dir=k({type:t,contentQueries:function(i,n,o){if(i&1&&Be(o,Bt,5),i&2){let a;Ne(a=qe())&&(n._allItems=a)}},hostAttrs:["role","menu"],hostVars:4,hostBindings:function(i,n){i&1&&p("focusin",function(){return n.menuStack.setHasFocus(!0)})("focusout",function(){return n.menuStack.setHasFocus(!1)}),i&2&&(J("tabIndex",n._getTabIndex())("id",n.id),O("aria-orientation",n.orientation)("data-cdk-menu-stack-id",n.menuStack.id))},inputs:{id:"id"},features:[P]})}return t})(),vi=(()=>{class t extends Nt{_parentTrigger=s(W,{optional:!0});closed=new b;orientation="vertical";isInline=!this._parentTrigger;constructor(){super(),this.destroyed.subscribe(this.closed),this._parentTrigger?.registerChildMenu(this)}ngAfterContentInit(){super.ngAfterContentInit(),this._subscribeToMenuStackEmptied()}ngOnDestroy(){super.ngOnDestroy(),this.closed.complete()}_handleKeyEvent(e){let i=this.keyManager;switch(e.keyCode){case 37:case 39:h(e)||(e.preventDefault(),i.setFocusOrigin("keyboard"),i.onKeydown(e));break;case 27:h(e)||(e.preventDefault(),this.menuStack.close(this,{focusNextOnEmpty:y.currentItem,focusParentTrigger:!0}));break;case 9:h(e,"altKey","metaKey","ctrlKey")||this.menuStack.closeAll({focusParentTrigger:!0});break;default:i.onKeydown(e)}}_toggleMenuFocus(e){let i=this.keyManager;switch(e){case y.nextItem:i.setFocusOrigin("keyboard"),i.setNextItemActive();break;case y.previousItem:i.setFocusOrigin("keyboard"),i.setPreviousItemActive();break;case y.currentItem:i.activeItem&&(i.setFocusOrigin("keyboard"),i.setActiveItem(i.activeItem));break}}_subscribeToMenuStackEmptied(){this.menuStack.emptied.pipe(m(this.destroyed)).subscribe(e=>this._toggleMenuFocus(e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenu",""]],hostAttrs:["role","menu",1,"cdk-menu"],hostVars:2,hostBindings:function(i,n){i&1&&p("keydown",function(a){return n._handleKeyEvent(a)}),i&2&&ee("cdk-menu-inline",n.isInline)},outputs:{closed:"closed"},exportAs:["cdkMenu"],features:[I([{provide:lt,useExisting:t},{provide:ge,useExisting:t},Rt("vertical")]),P]})}return t})();var qt=le.map(t=>{let r=t.overlayX==="start"?2:-2,e=t.overlayY==="top"?2:-2;return ye(x({},t),{offsetX:r,offsetY:e})}),Ii=(()=>{class t extends mt{_injector=s(S);_directionality=s(N,{optional:!0});_menuTracker=s(dt);_changeDetectorRef=s(ne);disabled=!1;constructor(){super(),this._setMenuStackCloseListener()}open(e){this._open(null,e),this._changeDetectorRef.markForCheck()}close(){this.menuStack.closeAll()}_openOnContextMenu(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this._menuTracker.update(this),this._open(e,{x:e.clientX,y:e.clientY}),e.button===2?this.childMenu?.focusFirstItem("mouse"):e.button===0?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusFirstItem("program"))}_getOverlayConfig(e){return new ce({positionStrategy:this._getOverlayPositionStrategy(e),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(e){let i=ue(this._injector,e).withLockedPosition().withGrowAfterOpen().withPositions(this.menuPosition??qt);return this.transformOriginSelector&&i.withTransformOriginOn(this.transformOriginSelector),i}_setMenuStackCloseListener(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this.childMenu=void 0,this._changeDetectorRef.markForCheck())})}_subscribeToOutsideClicks(e){if(this.overlayRef){let i=this.overlayRef.outsidePointerEvents();if(e){let[n,o]=Ce(i,({type:a})=>a==="auxclick");i=q(o.pipe(Se((a,ft)=>e.ctrlKey&&ft===0&&a.ctrlKey)),n.pipe(Te(1)))}i.pipe(m(this.stopOutsideClicksListener)).subscribe(n=>{this.isElementInsideMenuStack(se(n))||this.menuStack.closeAll()})}}_open(e,i){this.disabled||(this.isOpen()?(this.menuStack.closeSubMenuOf(this.childMenu),this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):(this.opened.next(),this.overlayRef?(this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):this.overlayRef=de(this._injector,this._getOverlayConfig(i)),this.overlayRef.attach(this.getMenuContentPortal()),this._subscribeToOutsideClicks(e)))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkContextMenuTriggerFor",""]],hostVars:1,hostBindings:function(i,n){i&1&&p("contextmenu",function(a){return n._openOnContextMenu(a)}),i&2&&O("data-cdk-menu-stack-id",null)},inputs:{menuTemplateRef:[0,"cdkContextMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkContextMenuPosition","menuPosition"],menuData:[0,"cdkContextMenuTriggerData","menuData"],transformOriginSelector:[0,"cdkContextMenuTriggerTransformOriginOn","transformOriginSelector"],disabled:[2,"cdkContextMenuDisabled","disabled",re]},outputs:{opened:"cdkContextMenuOpened",closed:"cdkContextMenuClosed"},exportAs:["cdkContextMenuTriggerFor"],features:[I([{provide:W,useExisting:t},{provide:_,useClass:_e}]),P]})}return t})();var xi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Ae({type:t});static \u0275inj=Ee({imports:[Xe]})}return t})();var ht=class t{icon="";label="";truncate=!1;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=V({type:t,selectors:[["POS-dropdown-item-more-action"]],inputs:{icon:"icon",label:"label",truncate:"truncate"},decls:6,vars:3,consts:[[1,"dropdown-item","px-1"],[1,"row","g-0","d-flex","align-items-center"],[1,"col-2","px-0"],["aria-hidden","true",1,"fs-3"],[1,"col-10","pe-0","ps-4","fs-6"]],template:function(e,i){e&1&&($(0,"div",0)(1,"div",1)(2,"div",2),Ke(3,"i",3),X(),$(4,"div",4),f(5),X()()()),e&2&&(c(3),He(i.icon),c(2),Y(" ",i.label," "))},dependencies:[Je],encapsulation:2})};export{st as a,Bt as b,vi as c,Ii as d,xi as e,ht as f};
1
+ import{a as rt}from"./chunk-4VGCD2S7.js";import{c as et,d as tt,e as it}from"./chunk-EMLV5DDD.js";import{a as me}from"./chunk-G2UNSH3R.js";import{b as Je}from"./chunk-JFS6EFNT.js";import{N as nt}from"./chunk-WZVFFBZM.js";import{$ as ue,C as ae,E as We,I as N,Q as Ge,X as Ze,Y as ce,ba as le,ca as $e,f as h,ga as de,k as se,ka as Xe,n as oe,o as Ye}from"./chunk-NFVNHSX5.js";import{a as ze}from"./chunk-DHBFOXIN.js";import{$ as Se,Bb as M,Bc as I,Ca as b,Cc as te,Da as H,Db as C,Dc as ie,E as q,Fa as De,Fb as U,G as Ce,Gb as j,Hb as z,Ib as v,Ja as we,Jb as u,Ka as Fe,Kb as d,Kc as K,La as Q,Lb as E,Ma as Pe,Mb as $,N as ve,Nb as X,Nc as B,Ob as Ke,P as Ie,R as xe,Tc as Qe,Ua as Z,Ub as R,Ud as Ue,Vb as J,Wd as je,Xb as p,Za as c,Zb as l,_ as Te,aa as D,ac as Be,ba as Oe,cc as Ne,d as g,db as L,dc as qe,dd as ne,ea as m,fd as re,gb as Re,ib as V,jb as Ae,jc as ee,kb as k,lc as He,mc as f,na as G,nb as P,nc as A,oa as Ee,oc as Y,pa as T,ra as s,va as w,w as be,wa as F,x as Me,xb as O,yd as Le,za as S,zd as Ve}from"./chunk-2ERDZXCS.js";import{a as x,b as ye}from"./chunk-SNAKHGZS.js";var at=()=>["/menu/Outlets/Master/Quick_Key_Templates/Form"],_t=t=>({ID:t}),kt=t=>({OutletID:t});function yt(t,r){if(t&1&&E(0,"img",16),t&2){let e=l(2).$implicit;v("src",e.ImageURLClient,Z)}}function bt(t,r){if(t&1&&(u(0,"div",14)(1,"div",15),M(2,yt,1,1,"img",16),d()()),t&2){let e=l().$implicit;c(2),C(e.ImageURLClient?2:-1)}}function Mt(t,r){if(t&1&&(u(0,"div",15)(1,"p",17)(2,"span"),f(3),K(4,"slice"),d()()()),t&2){let e=l().$implicit;c(3),A(B(4,1,e.Display,0,3))}}function Ct(t,r){if(t&1){let e=R();u(0,"div",9)(1,"a",13),p("click",function(){let n=w(e).$implicit,o=l(4);return F(o.onSelectQuickKeyItem(n))}),M(2,bt,3,1,"div",14)(3,Mt,5,5,"div",15),u(4,"small"),f(5),K(6,"slice"),d()()()}if(t&2){let e=r.$implicit;c(2),C(e.ImageURLClient?2:3),c(3),A(B(6,2,e.Display,0,36))}}function vt(t,r){if(t&1&&(u(0,"mat-tab",6)(1,"div",7)(2,"div",8),j(3,Ct,7,6,"div",9,U),u(5,"div",10)(6,"a",11),E(7,"i",12),d()()()()()),t&2){let e=r.$implicit,i=l(3);v("label",e.Name),c(3),z(e==null?null:e.Items),c(3),v("routerLink",te(3,at))("queryParams",ie(4,_t,i.quickKey.ID))}}function It(t,r){if(t&1){let e=R();u(0,"mat-tab-group",5),p("selectedIndexChange",function(n){w(e);let o=l(2);return F(o.onChangeTab(n))}),j(1,vt,8,6,"mat-tab",6,U),d()}if(t&2){let e=l(2);v("disableRipple",!0)("selectedIndex",e.selectedTabIndex),c(),z(e.quickKey==null?null:e.quickKey.Groups)}}function xt(t,r){if(t&1&&E(0,"img",16),t&2){let e=l(2).$implicit;v("src",e.ImageURLClient,Z)}}function Tt(t,r){if(t&1&&(u(0,"div",14)(1,"div",15),M(2,xt,1,1,"img",16),d()()),t&2){let e=l().$implicit;c(2),C(e.ImageURLClient?2:-1)}}function St(t,r){if(t&1&&(u(0,"div",15)(1,"p",17)(2,"span"),f(3),K(4,"slice"),d()()()),t&2){let e=l().$implicit;c(3),A(B(4,1,e.Model,0,3))}}function Ot(t,r){if(t&1){let e=R();u(0,"div",9)(1,"a",13),p("click",function(){let n=w(e).$implicit,o=l(3);return F(o.onSelectVariant(n.ID))}),M(2,Tt,3,1,"div",14)(3,St,5,5,"div",15),u(4,"small"),f(5),K(6,"slice"),d()()()}if(t&2){let e=r.$implicit;c(2),C(e.ImageURLClient?2:3),c(3),A(B(6,2,e.Model,0,30))}}function Et(t,r){if(t&1){let e=R();u(0,"div",18)(1,"div",19),p("click",function(){w(e);let n=l(2);return F(n.quickKeyState="QUICKKEY")}),E(2,"i",20),d(),u(3,"div",21)(4,"b"),f(5),d()()(),u(6,"div",7)(7,"div",8),j(8,Ot,7,6,"div",9,U),d()()}if(t&2){let e=l(2);c(5),Y(" ",e.subQuickKeyPack.Display),c(3),z(e.subQuickKeyPack==null?null:e.subQuickKeyPack.Children)}}function Dt(t,r){if(t&1&&M(0,It,3,2,"mat-tab-group",4)(1,Et,10,1),t&2){let e=l();C(e.quickKeyState=="QUICKKEY"?0:1)}}function wt(t,r){if(t&1&&(u(0,"div",3)(1,"a",22)(2,"strong"),f(3,"QUICK KEYS UNCONFIGURED"),d(),E(4,"i",23),u(5,"span"),f(6,"Click here to setup your Quick keys"),d()()()),t&2){let e=l();c(),v("routerLink",te(2,at))("queryParams",ie(3,kt,e.outletID))}}var st=class t{sf=s(rt);quickKey;get outletID(){return this._outletID}set outletID(r){this._outletID=r,this._outletID&&(this.quickKeyState="QUICKKEY")}_outletID="";_onSelectVariant=new b;quickKeyState="QUICKKEY";subQuickKeyPack;selectedTabIndex=0;disabled=!1;onChange=r=>{};onTouched=()=>{};writeValue(r){}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.disabled=r}onSelectQuickKeyItem(r){r.Children?r.Children.length==1?this.onSelectVariant(r.Children[0].ID):(this.quickKeyState="SUBQUICKKEY",this.subQuickKeyPack={Children:r.Children,Display:r.Display}):this.onSelectVariant(r.ItemID)}onSelectVariant(r){this.quickKeyState="QUICKKEY",this._onSelectVariant.emit(r),this.onChange(r),this.sf.searchFilterNativeEl?.focus()}onChangeTab(r){this.selectedTabIndex=r}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=V({type:t,selectors:[["POS-quick-key"]],inputs:{quickKey:"quickKey",outletID:"outletID"},outputs:{_onSelectVariant:"onSelectVariant"},features:[I([{provide:ze,multi:!0,useExisting:t}])],decls:5,vars:1,consts:[[1,"row","h-100"],[1,"col-12"],[1,"quick-key-tab","h-100","pt-4"],[1,"no-quick-key"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"disableRipple","selectedIndex"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"selectedIndexChange","disableRipple","selectedIndex"],[3,"label"],[1,"container","tabItems"],[1,"row","g-0"],[1,"col-3","column","px-6"],[1,"col-3","column","px-8","add","pt-8"],[3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-plus-circle","fa-5x","d-flex","align-items-center","justify-content-center","bg-white","h-100","text-primary"],[3,"click"],[1,"img-box","d-flex","align-items-center"],[1,"ratio","ratio-1x1"],[1,"full-screen-image",3,"src"],[1,"fw-normal","fs-1","d-flex","align-items-center","justify-content-center"],[1,"row","g-0","border","align-items-center","subquicKey"],[1,"col-auto","border-end","py-5","px-7","cursor-pointer",3,"click"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"col","text-center","fw-bold","text-uppercase","fs-5"],["id","LinkConfigureQuickkey","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-regular","fa-hand-pointer"]],template:function(e,i){e&1&&(u(0,"div",0)(1,"div",1)(2,"section",2),M(3,Dt,2,1)(4,wt,7,5,"div",3),d()()()),e&2&&(c(3),C(i.quickKey&&i.quickKey.Groups?3:4))},dependencies:[Ve,je,Ue,nt,it,et,tt,Le],styles:[".quick-key-tab{width:100%;position:relative;height:100%;max-height:calc(100vh - 70px)} .quick-key-tab .mat-mdc-tab-header-pagination{display:none!important} .quick-key-tab .mat-mdc-tab-header{border:none} .quick-key-tab .mdc-tab-indicator{display:none!important} .quick-key-tab .mat-mdc-tab-body-wrapper{width:102%} .quick-key-tab .mat-mdc-tab-labels{border-bottom:0px;display:flex;flex-wrap:wrap;border-radius:6px} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab{color:#151515;opacity:1;height:38px;max-height:40px;white-space:normal!important;overflow:hidden;padding:0!important;min-width:25%!important;flex-basis:0;font-size:12px;font-weight:700;outline:none;text-transform:uppercase;background:#fff;display:flex} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab__content{white-space:normal!important;align-self:center;font-size:.875rem!important} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active{background:linear-gradient(to bottom,#fff,#eee);border-radius:6px;border:.5px solid #dadada} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active .mdc-tab__text-label{color:gray!important;font-weight:700} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab:nth-child(n+5){flex-grow:0!important} .quick-key-tab .tabItems{padding:0} .quick-key-tab .tabItems .column{margin-top:15px;margin-bottom:10px;word-break:break-all} .quick-key-tab .tabItems .column>div{border:solid 1px #cfcfcf} .quick-key-tab .tabItems .column>a{text-align:center;display:block;cursor:pointer} .quick-key-tab .tabItems .column>a div.img-box{display:block;margin:0 auto;border-top-left-radius:5px;border-bottom-right-radius:5px;border:solid 1px #dddddd} .quick-key-tab .tabItems .column>a .full-screen-image{position:absolute;object-fit:scale-down} .quick-key-tab .tabItems .column>a p{display:block;margin:0 auto;background-color:#a6a6a6;border:solid 1px #999999;border-top-left-radius:5px;border-bottom-right-radius:5px;color:#fff} .quick-key-tab .tabItems .column>a small{font-size:11px;display:block;margin:5px 0 0} .quick-key-tab .tabItems .column .ion-icon{font-size:75px;margin:10px} .quick-key-tab .col-md-3.column.add{cursor:pointer} .quick-key-tab .col-md-3.column.add i{margin-top:10px} .quick-key-tab ::-webkit-scrollbar{width:3px} .quick-key-tab ::-webkit-scrollbar-track{box-shadow:inset 0 0 5px #bfd2da} .quick-key-tab ::-webkit-scrollbar-thumb{background:#c4c4c4;border-radius:10px} .quick-key-tab .subquicKey{background:linear-gradient(to bottom,#fff,#eee);color:gray;border-radius:6px} .quick-key-tab .no-quick-key{background-image:url(https://cdn.dealpos.xyz/web-image/no-quick-key.png)!important;background-repeat:no-repeat;height:calc(100vh - 70px);background-size:contain}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{background-color:#479ccf;padding:15px 25px;color:#fff;text-decoration:none;width:240px;display:block;opacity:.85;border-radius:6px}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{position:absolute;top:200px;left:calc(50% - 120px)}a#LinkConfigureQuickkey[_ngcontent-%COMP%]:hover{opacity:.95}a#LinkConfigureQuickkey[_ngcontent-%COMP%] Strong[_ngcontent-%COMP%]{border-bottom:1px solid white;font-size:14px;margin:0 0 10px;padding:0 0 3px;display:block}a#LinkConfigureQuickkey[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;height:35px;margin:0 10px 0 0;font-size:28px}a#LinkConfigureQuickkey[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;font-size:14px;width:135px;vertical-align:top}"]})};var lt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenuGroup",""]],hostAttrs:["role","group",1,"cdk-menu-group"],exportAs:["cdkMenuGroup"],features:[I([{provide:me,useClass:me}])]})}return t})(),ge=new T("cdk-menu"),y=(function(t){return t[t.nextItem=0]="nextItem",t[t.previousItem=1]="previousItem",t[t.currentItem=2]="currentItem",t})(y||{}),_=new T("cdk-menu-stack"),Pt={provide:_,useFactory:()=>s(_,{optional:!0,skipSelf:!0})||new _e},Rt=t=>({provide:_,useFactory:()=>s(_,{optional:!0,skipSelf:!0})||_e.inline(t)}),_e=(()=>{class t{id=s(ae).getId("cdk-menu-stack-");_elements=[];_close=new g;_empty=new g;_hasFocus=new g;closed=this._close;hasFocus=this._hasFocus.pipe(D(!1),ve(0),xe());emptied=this._empty;_inlineMenuOrientation=null;static inline(e){let i=new t;return i._inlineMenuOrientation=e,i}push(e){this._elements.push(e)}close(e,i){let{focusNextOnEmpty:n,focusParentTrigger:o}=x({},i);if(this._elements.indexOf(e)>=0){let a;do a=this._elements.pop(),this._close.next({item:a,focusParentTrigger:o});while(a!==e);this.isEmpty()&&this._empty.next(n)}}closeSubMenuOf(e){let i=!1;if(this._elements.indexOf(e)>=0)for(i=this.peek()!==e;this.peek()!==e;)this._close.next({item:this._elements.pop()});return i}closeAll(e){let{focusNextOnEmpty:i,focusParentTrigger:n}=x({},e);if(!this.isEmpty()){for(;!this.isEmpty();){let o=this._elements.pop();o&&this._close.next({item:o,focusParentTrigger:n})}this._empty.next(i)}}isEmpty(){return!this._elements.length}length(){return this._elements.length}peek(){return this._elements[this._elements.length-1]}hasInlineMenu(){return this._inlineMenuOrientation!=null}inlineMenuOrientation(){return this._inlineMenuOrientation}setHasFocus(e){this._hasFocus.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),W=new T("cdk-menu-trigger"),At=new T("cdk-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=s(S);return()=>Ze(t)}}),dt=(()=>{class t{static _openMenuTrigger;update(e){t._openMenuTrigger!==e&&(t._openMenuTrigger?.close(),t._openMenuTrigger=e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mt=(()=>{class t{injector=s(S);viewContainerRef=s(Re);menuStack=s(_);menuScrollStrategy=s(At);menuPosition;opened=new b;closed=new b;menuTemplateRef=null;menuData;transformOriginSelector=null;overlayRef=null;destroyed=new g;stopOutsideClicksListener=q(this.closed,this.destroyed);childMenu;_menuPortal;_childMenuInjector;ngOnDestroy(){this._destroyOverlay(),this.destroyed.next(),this.destroyed.complete()}isOpen(){return!!this.overlayRef?.hasAttached()}registerChildMenu(e){this.childMenu=e}getMenuContentPortal(){let e=this.menuTemplateRef!==this._menuPortal?.templateRef;return this.menuTemplateRef&&(!this._menuPortal||e)&&(this._menuPortal=new Ge(this.menuTemplateRef,this.viewContainerRef,this.menuData,this._getChildMenuInjector())),this._menuPortal}isElementInsideMenuStack(e){for(let i=e;i;i=i?.parentElement??null)if(i.getAttribute("data-cdk-menu-stack-id")===this.menuStack.id)return!0;return!1}_destroyOverlay(){this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}_getChildMenuInjector(){return this._childMenuInjector=this._childMenuInjector||S.create({providers:[{provide:W,useValue:this},{provide:_,useValue:this.menuStack}],parent:this.injector}),this._childMenuInjector}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,hostVars:2,hostBindings:function(i,n){i&2&&O("aria-controls",n.childMenu==null?null:n.childMenu.id)("data-cdk-menu-stack-id",n.menuStack.id)}})}return t})();var ke=new T("cdk-menu-aim");function pt(t,r){if(!r.isTrusted)return!1;let e=t.nativeElement,i=r.keyCode;return e.nodeName==="BUTTON"&&!e.disabled?i===13||i===32:e.nodeName==="A"?i===13:!1}var Kt=(()=>{class t extends mt{_elementRef=s(Q);_ngZone=s(H);_changeDetectorRef=s(ne);_inputModalityDetector=s(oe);_directionality=s(N,{optional:!0});_renderer=s(L);_injector=s(S);_cleanupMouseenter;_menuTracker=s(dt);_parentMenu=s(ge,{optional:!0});_menuAim=s(ke,{optional:!0});constructor(){super(),this._setRole(),this._registerCloseHandler(),this._subscribeToMenuStackClosed(),this._subscribeToMouseEnter(),this._subscribeToMenuStackHasFocus(),this._setType()}toggle(){this.isOpen()?this.close():this.open()}open(){this._parentMenu||this._menuTracker.update(this),!this.isOpen()&&this.menuTemplateRef!=null&&(this.opened.next(),this.overlayRef=this.overlayRef||de(this._injector,this._getOverlayConfig()),this.overlayRef.attach(this.getMenuContentPortal()),this._changeDetectorRef.markForCheck(),this._subscribeToOutsideClicks())}close(){this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this._changeDetectorRef.markForCheck()),this._closeSiblingTriggers()}getMenu(){return this.childMenu}ngOnChanges(e){e.menuPosition&&this.overlayRef&&this.overlayRef.updatePositionStrategy(this._getOverlayPositionStrategy())}ngOnDestroy(){this._cleanupMouseenter(),super.ngOnDestroy()}_toggleOnKeydown(e){let i=this._parentMenu?.orientation==="vertical";switch(e.keyCode){case 32:case 13:!h(e)&&!pt(this._elementRef,e)&&(this.toggle(),this.childMenu?.focusFirstItem("keyboard"));break;case 39:h(e)||this._parentMenu&&i&&this._directionality?.value!=="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 37:h(e)||this._parentMenu&&i&&this._directionality?.value==="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 40:case 38:h(e)||i||(e.preventDefault(),this.open(),e.keyCode===40?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusLastItem("keyboard"));break}}_handleClick(){this.toggle(),this.childMenu?.focusFirstItem("mouse")}_setHasFocus(e){this._parentMenu||this.menuStack.setHasFocus(e)}_subscribeToMouseEnter(){this._cleanupMouseenter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{if(this._inputModalityDetector.mostRecentModality!=="touch"&&!this.menuStack.isEmpty()&&!this.isOpen()){let e=()=>this._ngZone.run(()=>{this._closeSiblingTriggers(),this.open()});this._menuAim?this._menuAim.toggle(e):e()}}))}_closeSiblingTriggers(){this._parentMenu?!this.menuStack.closeSubMenuOf(this._parentMenu)&&this.menuStack.peek()!==this._parentMenu&&this.menuStack.closeAll():this.menuStack.closeAll()}_getOverlayConfig(){return new ce({positionStrategy:this._getOverlayPositionStrategy(),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(){let e=ue(this._injector,this._elementRef).withLockedPosition().withFlexibleDimensions(!1).withPositions(this._getOverlayPositions());return this.transformOriginSelector&&e.withTransformOriginOn(this.transformOriginSelector),e}_getOverlayPositions(){return this.menuPosition??(!this._parentMenu||this._parentMenu.orientation==="horizontal"?le:$e)}_registerCloseHandler(){this._parentMenu||this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.close()})}_subscribeToOutsideClicks(){this.overlayRef&&this.overlayRef.outsidePointerEvents().pipe(m(this.stopOutsideClicksListener)).subscribe(e=>{let i=se(e),n=this._elementRef.nativeElement;i!==n&&!n.contains(i)&&(this.isElementInsideMenuStack(i)?this._closeSiblingTriggers():this.menuStack.closeAll())})}_subscribeToMenuStackHasFocus(){this._parentMenu||this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{e||this.menuStack.closeAll()})}_subscribeToMenuStackClosed(){this._parentMenu||this.menuStack.closed.subscribe(({focusParentTrigger:e})=>{e&&!this.menuStack.length()&&this._elementRef.nativeElement.focus()})}_setRole(){this._parentMenu||this._elementRef.nativeElement.setAttribute("role","button")}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenuTriggerFor",""]],hostAttrs:[1,"cdk-menu-trigger"],hostVars:2,hostBindings:function(i,n){i&1&&p("focusin",function(){return n._setHasFocus(!0)})("focusout",function(){return n._setHasFocus(!1)})("keydown",function(a){return n._toggleOnKeydown(a)})("click",function(){return n._handleClick()}),i&2&&O("aria-haspopup",n.menuTemplateRef?"menu":null)("aria-expanded",n.menuTemplateRef==null?null:n.isOpen())},inputs:{menuTemplateRef:[0,"cdkMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkMenuPosition","menuPosition"],menuData:[0,"cdkMenuTriggerData","menuData"],transformOriginSelector:[0,"cdkMenuTriggerTransformOriginOn","transformOriginSelector"]},outputs:{opened:"cdkMenuOpened",closed:"cdkMenuClosed"},exportAs:["cdkMenuTriggerFor"],features:[I([{provide:W,useExisting:t},Pt]),P,we]})}return t})(),Bt=(()=>{class t{_dir=s(N,{optional:!0});_elementRef=s(Q);_ngZone=s(H);_inputModalityDetector=s(oe);_renderer=s(L);_cleanupMouseEnter;_menuAim=s(ke,{optional:!0});_menuStack=s(_);_parentMenu=s(ge,{optional:!0});_menuTrigger=s(Kt,{optional:!0,self:!0});disabled=!1;typeaheadLabel=null;triggered=new b;get hasMenu(){return this._menuTrigger?.menuTemplateRef!=null}_tabindex=-1;closeOnSpacebarTrigger=!0;destroyed=new g;constructor(){this._setupMouseEnter(),this._setType(),this._isStandaloneItem()&&(this._tabindex=0)}ngOnDestroy(){this._cleanupMouseEnter?.(),this.destroyed.next(),this.destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}trigger(e){let{keepOpen:i}=x({},e);!this.disabled&&!this.hasMenu&&(this.triggered.next(),i||this._menuStack.closeAll({focusParentTrigger:!0}))}isMenuOpen(){return!!this._menuTrigger?.isOpen()}getMenu(){return this._menuTrigger?.getMenu()}getMenuTrigger(){return this._menuTrigger}getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}_resetTabIndex(){this._isStandaloneItem()||(this._tabindex=-1)}_setTabIndex(e){this.disabled||(!e||!this._menuStack.isEmpty())&&(this._tabindex=0)}_handleClick(e){this.disabled?(e.preventDefault(),e.stopPropagation()):this.trigger()}_onKeydown(e){switch(e.keyCode){case 32:case 13:if(!h(e)&&!pt(this._elementRef,e)){let i=this._elementRef.nativeElement.nodeName;i!=="A"&&i!=="BUTTON"&&e.preventDefault(),this.trigger({keepOpen:e.keyCode===32&&!this.closeOnSpacebarTrigger})}break;case 39:h(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._forwardArrowPressed(e):this._backArrowPressed(e));break;case 37:h(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._backArrowPressed(e):this._forwardArrowPressed(e));break}}_isStandaloneItem(){return!this._parentMenu}_backArrowPressed(e){let i=this._parentMenu;(this._menuStack.hasInlineMenu()||this._menuStack.length()>1)&&(e.preventDefault(),this._menuStack.close(i,{focusNextOnEmpty:this._menuStack.inlineMenuOrientation()==="horizontal"?y.previousItem:y.currentItem,focusParentTrigger:!0}))}_forwardArrowPressed(e){!this.hasMenu&&this._menuStack.inlineMenuOrientation()==="horizontal"&&(e.preventDefault(),this._menuStack.closeAll({focusNextOnEmpty:y.nextItem,focusParentTrigger:!0}))}_setupMouseEnter(){if(!this._isStandaloneItem()){let e=()=>this._ngZone.run(()=>this._menuStack.closeSubMenuOf(this._parentMenu));this._cleanupMouseEnter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{this._inputModalityDetector.mostRecentModality!=="touch"&&!this._menuStack.isEmpty()&&!this.hasMenu&&(this._menuAim?this._menuAim.toggle(e):e())}))}}_isParentVertical(){return this._parentMenu?.orientation==="vertical"}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenuItem",""]],hostAttrs:["role","menuitem",1,"cdk-menu-item"],hostVars:4,hostBindings:function(i,n){i&1&&p("blur",function(){return n._resetTabIndex()})("focus",function(){return n._setTabIndex()})("click",function(a){return n._handleClick(a)})("keydown",function(a){return n._onKeydown(a)}),i&2&&(J("tabIndex",n._tabindex),O("aria-disabled",n.disabled||null),ee("cdk-menu-item-disabled",n.disabled))},inputs:{disabled:[2,"cdkMenuItemDisabled","disabled",re],typeaheadLabel:[0,"cdkMenuitemTypeaheadLabel","typeaheadLabel"]},outputs:{triggered:"cdkMenuItemTriggered"},exportAs:["cdkMenuItem"]})}return t})(),fe=class{_renderer;_items;_eventCleanups;_itemsSubscription;entered=new g;exited=new g;activeElement;previousElement;constructor(r,e){this._renderer=r,this._items=e,this._bindEvents(),this.entered.subscribe(i=>this.activeElement=i),this.exited.subscribe(()=>{this.previousElement=this.activeElement,this.activeElement=void 0})}destroy(){this._cleanupEvents(),this._itemsSubscription?.unsubscribe()}_bindEvents(){this._itemsSubscription=this._items.changes.pipe(D(this._items)).subscribe(()=>{this._cleanupEvents(),this._eventCleanups=[],this._items.forEach(r=>{let e=r._elementRef.nativeElement;this._eventCleanups.push(this._renderer.listen(e,"mouseenter",()=>{this.entered.next(r)}),this._renderer.listen(e,"mouseout",()=>{this.exited.next(r)}))})})}_cleanupEvents(){this._eventCleanups?.forEach(r=>r()),this._eventCleanups=void 0}},Nt=(()=>{class t extends lt{_focusMonitor=s(Ye);ngZone=s(H);_renderer=s(L);nativeElement=s(Q).nativeElement;menuStack=s(_);menuAim=s(ke,{optional:!0,self:!0});dir=s(N,{optional:!0});_allItems;id=s(ae).getId("cdk-menu-");items=new Pe;orientation="vertical";isInline=!1;keyManager;destroyed=new g;triggerItem;pointerTracker;_menuStackHasFocus=De(!1);_tabIndexSignal=Qe(()=>{let e=this._menuStackHasFocus()?-1:0;return this.isInline?e:null});ngAfterContentInit(){this.isInline||this.menuStack.push(this),this._setItems(),this._setKeyManager(),this._handleFocus(),this._subscribeToMenuStackHasFocus(),this._subscribeToMenuOpen(),this._subscribeToMenuStackClosed(),this._setUpPointerTracker()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.nativeElement),this.keyManager?.destroy(),this.destroyed.next(),this.destroyed.complete(),this.pointerTracker?.destroy()}focusFirstItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setFirstItemActive()}focusLastItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setLastItemActive()}setActiveMenuItem(e){this.keyManager?.setActiveItem(e)}_getTabIndex(){return this._tabIndexSignal()}closeOpenMenu(e,i){let{focusParentTrigger:n}=x({},i),o=this.keyManager,a=this.triggerItem;e===a?.getMenuTrigger()?.getMenu()&&(a?.getMenuTrigger()?.close(),n&&(a?o.setActiveItem(a):o.setFirstItemActive()))}_setItems(){this._allItems.changes.pipe(D(this._allItems),m(this.destroyed)).subscribe(e=>{this.items.reset(e.filter(i=>i._parentMenu===this)),this.items.notifyOnChanges()})}_setKeyManager(){this.keyManager=new We(this.items).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1),this.orientation==="horizontal"?this.keyManager.withHorizontalOrientation(this.dir?.value||"ltr"):this.keyManager.withVerticalOrientation()}_subscribeToMenuOpen(){let e=q(this.items.changes,this.destroyed);this.items.changes.pipe(D(this.items),be(i=>i.filter(n=>n.hasMenu).map(n=>n.getMenuTrigger().opened.pipe(Ie(n),m(e)))),Me(),Oe(i=>(this.triggerItem=i,i.getMenuTrigger().closed)),m(this.destroyed)).subscribe(()=>this.triggerItem=void 0)}_subscribeToMenuStackClosed(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e,focusParentTrigger:i})=>this.closeOpenMenu(e,{focusParentTrigger:i}))}_subscribeToMenuStackHasFocus(){this.isInline&&this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{this._menuStackHasFocus.set(e)})}_setUpPointerTracker(){this.menuAim&&(this.ngZone.runOutsideAngular(()=>{this.pointerTracker=new fe(this._renderer,this.items)}),this.menuAim.initialize(this,this.pointerTracker))}_handleFocus(){this._focusMonitor.monitor(this.nativeElement,!1).pipe(m(this.destroyed)).subscribe(e=>{e!==null&&e!=="mouse"&&this.focusFirstItem(e)})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Fe(t)))(n||t)}})();static \u0275dir=k({type:t,contentQueries:function(i,n,o){if(i&1&&Be(o,Bt,5),i&2){let a;Ne(a=qe())&&(n._allItems=a)}},hostAttrs:["role","menu"],hostVars:4,hostBindings:function(i,n){i&1&&p("focusin",function(){return n.menuStack.setHasFocus(!0)})("focusout",function(){return n.menuStack.setHasFocus(!1)}),i&2&&(J("tabIndex",n._getTabIndex())("id",n.id),O("aria-orientation",n.orientation)("data-cdk-menu-stack-id",n.menuStack.id))},inputs:{id:"id"},features:[P]})}return t})(),vi=(()=>{class t extends Nt{_parentTrigger=s(W,{optional:!0});closed=new b;orientation="vertical";isInline=!this._parentTrigger;constructor(){super(),this.destroyed.subscribe(this.closed),this._parentTrigger?.registerChildMenu(this)}ngAfterContentInit(){super.ngAfterContentInit(),this._subscribeToMenuStackEmptied()}ngOnDestroy(){super.ngOnDestroy(),this.closed.complete()}_handleKeyEvent(e){let i=this.keyManager;switch(e.keyCode){case 37:case 39:h(e)||(e.preventDefault(),i.setFocusOrigin("keyboard"),i.onKeydown(e));break;case 27:h(e)||(e.preventDefault(),this.menuStack.close(this,{focusNextOnEmpty:y.currentItem,focusParentTrigger:!0}));break;case 9:h(e,"altKey","metaKey","ctrlKey")||this.menuStack.closeAll({focusParentTrigger:!0});break;default:i.onKeydown(e)}}_toggleMenuFocus(e){let i=this.keyManager;switch(e){case y.nextItem:i.setFocusOrigin("keyboard"),i.setNextItemActive();break;case y.previousItem:i.setFocusOrigin("keyboard"),i.setPreviousItemActive();break;case y.currentItem:i.activeItem&&(i.setFocusOrigin("keyboard"),i.setActiveItem(i.activeItem));break}}_subscribeToMenuStackEmptied(){this.menuStack.emptied.pipe(m(this.destroyed)).subscribe(e=>this._toggleMenuFocus(e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenu",""]],hostAttrs:["role","menu",1,"cdk-menu"],hostVars:2,hostBindings:function(i,n){i&1&&p("keydown",function(a){return n._handleKeyEvent(a)}),i&2&&ee("cdk-menu-inline",n.isInline)},outputs:{closed:"closed"},exportAs:["cdkMenu"],features:[I([{provide:lt,useExisting:t},{provide:ge,useExisting:t},Rt("vertical")]),P]})}return t})();var qt=le.map(t=>{let r=t.overlayX==="start"?2:-2,e=t.overlayY==="top"?2:-2;return ye(x({},t),{offsetX:r,offsetY:e})}),Ii=(()=>{class t extends mt{_injector=s(S);_directionality=s(N,{optional:!0});_menuTracker=s(dt);_changeDetectorRef=s(ne);disabled=!1;constructor(){super(),this._setMenuStackCloseListener()}open(e){this._open(null,e),this._changeDetectorRef.markForCheck()}close(){this.menuStack.closeAll()}_openOnContextMenu(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this._menuTracker.update(this),this._open(e,{x:e.clientX,y:e.clientY}),e.button===2?this.childMenu?.focusFirstItem("mouse"):e.button===0?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusFirstItem("program"))}_getOverlayConfig(e){return new ce({positionStrategy:this._getOverlayPositionStrategy(e),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(e){let i=ue(this._injector,e).withLockedPosition().withGrowAfterOpen().withPositions(this.menuPosition??qt);return this.transformOriginSelector&&i.withTransformOriginOn(this.transformOriginSelector),i}_setMenuStackCloseListener(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this.childMenu=void 0,this._changeDetectorRef.markForCheck())})}_subscribeToOutsideClicks(e){if(this.overlayRef){let i=this.overlayRef.outsidePointerEvents();if(e){let[n,o]=Ce(i,({type:a})=>a==="auxclick");i=q(o.pipe(Se((a,ft)=>e.ctrlKey&&ft===0&&a.ctrlKey)),n.pipe(Te(1)))}i.pipe(m(this.stopOutsideClicksListener)).subscribe(n=>{this.isElementInsideMenuStack(se(n))||this.menuStack.closeAll()})}}_open(e,i){this.disabled||(this.isOpen()?(this.menuStack.closeSubMenuOf(this.childMenu),this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):(this.opened.next(),this.overlayRef?(this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):this.overlayRef=de(this._injector,this._getOverlayConfig(i)),this.overlayRef.attach(this.getMenuContentPortal()),this._subscribeToOutsideClicks(e)))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkContextMenuTriggerFor",""]],hostVars:1,hostBindings:function(i,n){i&1&&p("contextmenu",function(a){return n._openOnContextMenu(a)}),i&2&&O("data-cdk-menu-stack-id",null)},inputs:{menuTemplateRef:[0,"cdkContextMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkContextMenuPosition","menuPosition"],menuData:[0,"cdkContextMenuTriggerData","menuData"],transformOriginSelector:[0,"cdkContextMenuTriggerTransformOriginOn","transformOriginSelector"],disabled:[2,"cdkContextMenuDisabled","disabled",re]},outputs:{opened:"cdkContextMenuOpened",closed:"cdkContextMenuClosed"},exportAs:["cdkContextMenuTriggerFor"],features:[I([{provide:W,useExisting:t},{provide:_,useClass:_e}]),P]})}return t})();var xi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Ae({type:t});static \u0275inj=Ee({imports:[Xe]})}return t})();var ht=class t{icon="";label="";truncate=!1;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=V({type:t,selectors:[["POS-dropdown-item-more-action"]],inputs:{icon:"icon",label:"label",truncate:"truncate"},decls:6,vars:3,consts:[[1,"dropdown-item","px-1"],[1,"row","g-0","d-flex","align-items-center"],[1,"col-2","px-0"],["aria-hidden","true",1,"fs-3"],[1,"col-10","pe-0","ps-4","fs-6"]],template:function(e,i){e&1&&($(0,"div",0)(1,"div",1)(2,"div",2),Ke(3,"i",3),X(),$(4,"div",4),f(5),X()()()),e&2&&(c(3),He(i.icon),c(2),Y(" ",i.label," "))},dependencies:[Je],encapsulation:2})};export{st as a,Bt as b,vi as c,Ii as d,xi as e,ht as f};
@@ -1 +1 @@
1
- import{a as A,b as bt,c as Mt,d as W,e as X,f as ht}from"./chunk-5O6NSC2S.js";import{a as G}from"./chunk-BYMQG5T4.js";import{a as vt}from"./chunk-DUBSPAA2.js";import{a as q}from"./chunk-4WL57CXW.js";import{N,n as ft,o as H,q as ut,u as xt,y as Pt}from"./chunk-H7AXZU5M.js";import{a as T}from"./chunk-3DEA4WWC.js";import{Bb as _,Db as m,Dc as V,Fa as tt,Fb as nt,Gb as et,Hb as it,Ib as c,Jb as l,Kb as a,Kc as g,Lb as s,Lc as P,Mc as M,Nc as y,Pb as v,Qb as b,Qc as _t,Rd as Ct,Sa as f,Ua as $,Ub as ot,Va as R,Xb as at,Yc as Z,Za as i,Zb as r,eb as U,hc as lt,ib as w,jb as L,kc as ct,lc as h,mc as d,md as mt,nc as x,oa as E,ob as p,oc as C,od as st,pc as O,pd as gt,qc as rt,ra as J,uc as Q,va as K,vc as j,wa as Y,wc as I,wd as S,xb as k,yc as dt,zc as pt,zd as D}from"./chunk-2ERDZXCS.js";function kt(n,o){if(n&1&&(l(0,"div",2)(1,"div",5)(2,"div",10)(3,"span"),d(4),a()()()()),n&2){let t=r(2);i(4),O("",t.config==null||t.config.PrintConfigOthers==null||t.config.PrintConfigOthers.Header==null?null:t.config.PrintConfigOthers.Header.PackingReceiptTitle," : ",t.data==null||t.data.Delivery==null?null:t.data.Delivery.Number)}}function Vt(n,o){if(n&1&&(l(0,"strong"),d(1),a()),n&2){let t=r(3);i(),x(t.data.Customer==null?null:t.data.Customer.ContactDisplay)}}function Dt(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Customer==null?null:t.data.Customer.Email)}}function Ht(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Customer==null?null:t.data.Customer.Phone)}}function Nt(n,o){if(n&1&&(l(0,"div"),s(1,"span",9),g(2,"newlines"),a()),n&2){let t=r(3);i(),c("innerHtml",P(2,1,t.data.Customer==null?null:t.data.Customer.Address),f)}}function At(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.CityName)}}function Bt(n,o){if(n&1&&(l(0,"div",3)(1,"div",11)(2,"h4"),s(3,"span",9),a(),_(4,Vt,2,1,"strong"),_(5,Dt,3,1,"div"),_(6,Ht,3,1,"div"),_(7,Nt,3,3,"div"),_(8,At,3,1,"div"),a()()),n&2){let t=r(2);i(3),c("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.Customer,f),i(),m(t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible?4:-1),i(),m(t.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible?5:-1),i(),m(t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1?6:-1),i(),m(t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible?7:-1),i(),m(t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible?8:-1)}}function Ft(n,o){if(n&1&&(l(0,"strong"),d(1),a()),n&2){let t=r(3);i(),x(t.data.Shipping.Name)}}function zt(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Shipping==null?null:t.data.Shipping.Street)}}function $t(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Shipping==null?null:t.data.Shipping.Phone)}}function Ut(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Shipping==null?null:t.data.Shipping.City)}}function Qt(n,o){if(n&1&&(l(0,"div"),s(1,"span",9),g(2,"newlines"),a()),n&2){let t=r(3);i(),c("innerHtml",P(2,1,t.data.Shipping==null?null:t.data.Shipping.Description),f)}}function jt(n,o){if(n&1&&(l(0,"div",2)(1,"div",12)(2,"div",10),s(3,"span",9),a(),_(4,Ft,2,1,"strong"),_(5,zt,3,1,"div"),_(6,$t,3,1,"div"),_(7,Ut,3,1,"div"),_(8,Qt,3,3,"div"),a()()),n&2){let t=r(2);i(3),c("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.ShippingAddress,f),i(),m(t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible?4:-1),i(),m(t.data.Shipping.Address?5:-1),i(),m(t.data.Shipping.Phone?6:-1),i(),m(t.data.Shipping.City?7:-1),i(),m(t.data.Shipping.Description?8:-1)}}function Zt(n,o){if(n&1&&(l(0,"strong"),d(1),a()),n&2){let t=r(3);i(),x(t.data.Shipping.Sender)}}function qt(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Shipping==null?null:t.data.Shipping.SenderAddress)}}function Gt(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Shipping==null?null:t.data.Shipping.SenderPhone)}}function Wt(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Shipping==null?null:t.data.Shipping.SenderCity)}}function Xt(n,o){if(n&1&&(l(0,"div",2)(1,"div",12)(2,"div",10)(3,"span"),d(4,"Ship From :"),a()(),_(5,Zt,2,1,"strong"),_(6,qt,3,1,"div"),_(7,Gt,3,1,"div"),_(8,Wt,3,1,"div"),a()()),n&2){let t=r(2);i(5),m(t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible?5:-1),i(),m(t.data.Shipping.SenderAddress?6:-1),i(),m(t.data.Shipping.SenderPhone?7:-1),i(),m(t.data.Shipping.SenderCity?8:-1)}}function Jt(n,o){if(n&1&&(l(0,"div",4)(1,"div",13)(2,"div",14)(3,"span",10),d(4),a()()()()),n&2){let t=r(2);i(4),x(t.data.TypeName)}}function Kt(n,o){if(n&1&&(l(0,"tbody")(1,"tr"),s(2,"td",19),l(3,"td"),d(4),a(),s(5,"td",19),g(6,"number"),a()()),n&2){let t=o.$implicit,e=o.$index;i(2),c("innerHtml",e+1+".",f),i(2),C(" ",t.Name," "),i(),c("innerHtml",P(6,3,t.Quantity),f)}}function Yt(n,o){if(n&1&&(l(0,"div",2)(1,"div",5)(2,"table",15)(3,"thead",16)(4,"tr")(5,"th",17),d(6,"No"),a(),l(7,"th",18),d(8,"Name"),a(),l(9,"th",17),d(10,"Qty"),a()()(),et(11,Kt,7,5,"tbody",null,nt),a()()()),n&2){let t=r(2);i(11),it(t.data.List)}}function tn(n,o){if(n&1&&(l(0,"div",2)(1,"div",5),s(2,"div",20),g(3,"newlines"),a()()),n&2){let t=r(2);i(2),c("innerHtml",P(3,1,t.data.Invoice.Note),f)}}function nn(n,o){if(n&1&&(l(0,"div"),_(1,kt,5,2,"div",2),_(2,Bt,9,6,"div",3),_(3,jt,9,6,"div",2),_(4,Xt,9,4,"div",2),_(5,Jt,5,1,"div",4),_(6,Yt,13,0,"div",2),_(7,tn,4,3,"div",2),l(8,"div",2)(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8),s(13,"span",9),g(14,"newlines"),a()()()()()()),n&2){let t=r();h(dt("packingslip_container ",t.printTemplate.PrintLX300?"lx300":"")),i(),m(t.constants.IsNotEmpty(t.data==null||t.data.Delivery==null?null:t.data.Delivery.Number)?1:-1),i(),m(t.data.Shipping!=null&&t.data.Shipping.Recipient?-1:2),i(),m(t.data.Shipping?3:-1),i(),m(t.data.Shipping!=null&&t.data.Shipping.Sender&&t.config.PrintConfigPackingSlip.ShippingAddressSenderVisible?4:-1),i(),m(t.data.TypeName?5:-1),i(),m(t.config.PrintConfigPackingSlip.ProductTableVisible?6:-1),i(),m(t.config.PrintConfigPackingSlip.RenderInvoiceNote&&(t.data.Invoice==null?null:t.data.Invoice.Note)!=null?7:-1),i(6),c("innerHtml",P(14,11,t.printTemplate.DeliveryNote),f)}}var B=class n{data;printTemplate;config;stylesheet;constants=T;static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["packing-slip"]],inputs:{data:"data",printTemplate:"printTemplate",config:"config",stylesheet:"stylesheet"},standalone:!1,decls:3,vars:4,consts:[["rel","stylesheet"],[3,"class"],[1,"row","g-0"],[1,"row","g-0","pt-3"],[1,"row","my-2"],[1,"col"],["id","signatureNote"],[1,"note"],[1,"d-flex","justify-content-md-start"],[3,"innerHtml"],[1,"fw-bold"],[1,"col","border","border-dark","py-2","px-2"],[1,"col","border","border-dark","py-2","px-2","mb-2"],[1,"col","text-end","my-2"],[1,"border","border-dark","py-2","px-2","mb-2","text-center"],[1,"table","table-striped","table-sm","table-bordered","w-100"],[2,"background","#fdf3c6"],[1,"text-end",2,"width","10%"],[2,"width","80%"],[2,"text-align","right",3,"innerHtml"],[2,"text-align","center","padding","16px","border","1px dotted black","background-color","#fceca3",3,"innerHtml"]],template:function(t,e){t&1&&(s(0,"link",0),g(1,"StylesheetSafeUrl"),_(2,nn,15,13,"div",1)),t&2&&(k("href",e.stylesheet!=null&&e.stylesheet.Size8cm?P(1,2,e.stylesheet==null?null:e.stylesheet.Size8cm):null,R),i(2),m(e.data&&e.config?2:-1))},dependencies:[S,H,A],encapsulation:2})},F=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=L({type:n});static \u0275inj=E({imports:[D,N]})};var on=n=>({width:n}),an=n=>({"align-items-end":n}),ln=n=>({"mt-6":n});function cn(n,o){if(n&1&&s(0,"POS-print-mode",3),n&2){let t=r(2);c("paperPrints",t.paperPrintMode)}}function rn(n,o){if(n&1&&s(0,"div",45),n&2){let t=r(4);c("innerHTML",t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.FooterLabel==null?null:t.config.PrintConfigInvoice.FooterLabel.CopyLabelText,f)}}function dn(n,o){n&1&&(l(0,"div",46),d(1," Void "),a())}function pn(n,o){n&1&&(l(0,"div",47),d(1," Return "),a())}function _n(n,o){if(n&1&&(l(0,"div",41),p(1,rn,1,1,"div",42)(2,dn,2,0,"div",43)(3,pn,2,0,"div",44),a()),n&2){let t=r(3);i(),c("ngIf",!t.data.Bin&&!t.data.Retur),i(),c("ngIf",t.data==null?null:t.data.Bin),i(),c("ngIf",t.data==null?null:t.data.Retur)}}function mn(n,o){if(n&1&&s(0,"img",49),n&2){let t=r(4);ct(V(3,on,t.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth+"px")),c("src",t.printTemplate==null?null:t.printTemplate.Logo,$)}}function sn(n,o){if(n&1&&(v(0),p(1,mn,1,5,"img",48),b()),n&2){let t=r(3);i(),c("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function gn(n,o){if(n&1&&s(0,"img",49),n&2){let t=r(4);c("src",t.printTemplate==null?null:t.printTemplate.Logo,$)}}function Cn(n,o){if(n&1&&p(0,gn,1,1,"img",50),n&2){let t=r(3);c("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function fn(n,o){if(n&1&&s(0,"span",13),n&2){let t=r(3);c("innerHTML",t.data==null?null:t.data.RegisterCode,f)}}function un(n,o){if(n&1&&(l(0,"span"),d(1),a()),n&2){let t=r(4);i(),C(" - ",t.data==null||t.data.Customer==null?null:t.data.Customer.Code)}}function xn(n,o){if(n&1&&(l(0,"h6",51)(1,"span"),d(2),a(),p(3,un,2,1,"span",18),a()),n&2){let t=r(3);i(2),O("",t.data==null||t.data.Customer==null?null:t.data.Customer.Title," ",t.data.Customer==null?null:t.data.Customer.Name),i(),c("ngIf",(t.data==null||t.data.Customer==null?null:t.data.Customer.Code)&&t.config.PrintConfigInvoice.DocumentVisibility.CustomerCodeVisible)}}function Pn(n,o){if(n&1&&s(0,"h6",52),n&2){let t=r(3);c("innerHTML",t.data.Customer==null?null:t.data.Customer.NationalIDNumber,f)}}function vn(n,o){if(n&1&&(s(0,"p",53),g(1,"newlines")),n&2){let t=r(3);c("innerHTML",P(1,1,t.data.Customer==null?null:t.data.Customer.Address),f)}}function bn(n,o){if(n&1&&(l(0,"span"),d(1),g(2,"lastDigit"),a()),n&2){let t=r(3),e=I(0);i(),C(" ",(e==null?null:e.PhoneCustomerVisibility)==3?M(2,1,t.data.Customer==null?null:t.data.Customer.Phone,4):t.data.Customer==null?null:t.data.Customer.Phone," ")}}function Mn(n,o){if(n&1&&(l(0,"span"),d(1),g(2,"lastDigit"),a()),n&2){let t=r(3),e=I(0);i(),C(" ",(e==null?null:e.PhoneCustomerVisibility)==3?M(2,1,t.data.Customer==null?null:t.data.Customer.Mobile,4):t.data.Customer==null?null:t.data.Customer.Mobile," ")}}function hn(n,o){if(n&1&&s(0,"p",54),n&2){let t=r(3);c("innerHTML",t.data.Customer==null?null:t.data.Customer.Email,f)}}function yn(n,o){if(n&1&&(l(0,"h2",55),d(1),a()),n&2){let t=r(3);h(t.data.PaymentState==2?"text-warning":"text-danger"),i(),C(" ",t.data.PaymentState==2?"PARTIAL":t.config.PrintConfigInvoice.DocumentLabel.BillLabel," ")}}function On(n,o){if(n&1&&(l(0,"h2",21),d(1),a()),n&2){let t=r(3);i(),C(" ",!(t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.Header==null)&&t.config.PrintConfigInvoice.Header.SalesReturnLabelText?t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.Header==null?null:t.config.PrintConfigInvoice.Header.SalesReturnLabelText:"SALES RETURN"," ")}}function In(n,o){if(n&1&&(v(0),l(1,"h3",55),d(2),a(),b()),n&2){let t=r(3);i(2),x(t.data==null?null:t.data.ParkLabel)}}function Sn(n,o){if(n&1&&(l(0,"div",22),d(1),a()),n&2){let t=r(3);i(),C("Cashier : ",t.data.Creator)}}function Tn(n,o){n&1&&(l(0,"div",56)(1,"div",57),d(2,"SERVER ERROR!"),a(),l(3,"div",58)(4,"a",59),d(5," status.dealpos.com "),a()(),l(6,"div"),d(7,"Please check if order is uploaded successfully"),a()())}function En(n,o){n&1&&(l(0,"div",60),d(1," OFFLINE ORDER "),a())}function Rn(n,o){if(n&1&&_(0,En,2,0,"div",60),n&2){let t=r(4);m(t.isOffline?0:-1)}}function wn(n,o){if(n&1&&_(0,Tn,8,0,"div",56)(1,Rn,1,1),n&2){let t=r(3);m(t.isUnknownError==!0?0:1)}}function Ln(n,o){if(n&1&&(v(0),s(1,"div",13),b()),n&2){let t=r(4);i(),c("innerHTML",t.data.HeaderTitle,f)}}function kn(n,o){if(n&1&&(l(0,"div",61),p(1,Ln,2,1,"ng-container",18),s(2,"div",13),a()),n&2){let t=r(3);i(),c("ngIf",t.data.HeaderTitle),i(),c("innerHTML",t.data.Number,f)}}function Vn(n,o){if(n&1&&(v(0),d(1),b()),n&2){let t=r().index;i(),C(" ",t+1,". ")}}function Dn(n,o){if(n&1&&(v(0),s(1,"app-serial-note",71),b()),n&2){let t=r().$implicit;i(),c("serials",t.Serial)}}function Hn(n,o){if(n&1&&(l(0,"div",72)(1,"i",73),d(2),a()()),n&2){let t=r().$implicit;i(2),C(" sold by ",t.SalesName," ")}}function Nn(n,o){if(n&1&&(s(0,"small",75),g(1,"newlines")),n&2){let t=r(2).$implicit;c("innerHTML",P(1,1,t.Note),f)}}function An(n,o){if(n&1&&(v(0),p(1,Nn,2,3,"small",74),b()),n&2){let t=r().$implicit,e=r(3);i(),c("ngIf",t.Note&&e.config.PrintConfigInvoice.ItemsTable.NoteItemVisible)}}function Bn(n,o){if(n&1&&(l(0,"span",78),d(1),a()),n&2){let t=r(2).$implicit;i(),C(" ",t.Taxable?"V":"N"," ")}}function Fn(n,o){if(n&1&&(l(0,"span",78),d(1),a()),n&2){let t=r(2).$implicit,e=r(3);i(),C(" ",t.Taxable?e.config.PrintConfigInvoice.ItemsTable.TaxableLabel:"N"," ")}}function zn(n,o){if(n&1&&(l(0,"div",76),p(1,Bn,2,1,"span",77)(2,Fn,2,1,"span",77),a()),n&2){let t=r(4);i(),c("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel==""||t.config.PrintConfigInvoice.ItemsTable.TaxableLabel=="Taxable"),i(),c("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!=""&&t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!="Taxable")}}function $n(n,o){if(n&1&&(l(0,"span",79),d(1),g(2,"number"),a()),n&2){let t=r().$implicit,e=r(3);i(),rt(" ",M(2,3,t.Quantity,"1.0-4")," ",e.config.PrintConfigInvoice.ItemsTable.UOMVisible?t.Variant.UOMName:""," ",t.UnitQuantity!=1?" x "+t.UnitQuantity:""," ")}}function Un(n,o){if(n&1&&(v(0),l(1,"span",82),d(2),g(3,"number"),a(),b()),n&2){let t=r(3).$implicit;i(2),x(P(3,1,t==null?null:t.UnitPriceOriginal))}}function Qn(n,o){if(n&1&&(v(0),p(1,Un,4,3,"ng-container",18),b()),n&2){let t=r(2).$implicit;i(),c("ngIf",(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))}}function jn(n,o){if(n&1&&(v(0),l(1,"span",80),d(2,"x"),a(),l(3,"span",81),p(4,Qn,2,1,"ng-container",18),d(5),g(6,"number"),a(),b()),n&2){let t=r().$implicit,e=r(3);i(4),c("ngIf",e.config.ModuleSell==null||e.config.ModuleSell.Promotion==null?null:e.config.ModuleSell.Promotion.StrikethroughOriginalPrice),i(),C(" ",P(6,2,t.Price)," ")}}function Zn(n,o){if(n&1&&(v(0),l(1,"i",83),d(2),g(3,"number"),a(),b()),n&2){let t=r().$implicit;i(2),C(" ","-"+P(3,1,t.Discount)+"%"," ")}}function qn(n,o){if(n&1&&(v(0),l(1,"i",84),d(2),g(3,"number"),a(),b()),n&2){let t=r().$implicit;i(2),C(" ","-"+P(3,1,t.DiscountAmount)," ")}}function Gn(n,o){if(n&1&&(l(0,"span"),d(1),g(2,"number"),g(3,"TrailingZero"),a()),n&2){let t=r().$implicit,e=r(3);i(),C(" ",M(3,3,P(2,1,(1-t.Discount/100)*t.Price*t.Quantity*t.UnitQuantity-t.DiscountAmount*t.Quantity),e.config.PrintConfigGeneral.TrailingZero)," ")}}function Wn(n,o){if(n&1&&(l(0,"div",62)(1,"div",22)(2,"div",63)(3,"div"),p(4,Vn,2,1,"ng-container",18),d(5),a(),p(6,Dn,2,1,"ng-container",18)(7,Hn,3,1,"div",64)(8,An,2,1,"ng-container",18),a(),p(9,zn,3,2,"div",65),a(),l(10,"div",66)(11,"div",67)(12,"div",68),p(13,$n,3,6,"span",69)(14,jn,7,4,"ng-container",18)(15,Zn,4,3,"ng-container",18)(16,qn,4,3,"ng-container",18),a()(),l(17,"div",70),p(18,Gn,4,6,"span",18),a()()()),n&2){let t=o.$implicit,e=r(3);i(4),c("ngIf",e.config.ModuleSell.Grid.RowNumberVisible),i(),O(" ",t.Variant.Name," ",t.Variant.Code&&e.config.PrintConfigInvoice.ItemsTable.CodeVisible?" - "+t.Variant.Code:""," "),i(),c("ngIf",t.Serial&&(t.Serial==null?null:t.Serial.length)>0),i(),c("ngIf",t.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),c("ngIf",t.Note),i(),c("ngIf",e.config.PrintConfigInvoice.ItemsTable.TaxableVisible),i(),c("ngClass",V(13,an,(e.config.ModuleSell==null||e.config.ModuleSell.Promotion==null?null:e.config.ModuleSell.Promotion.StrikethroughOriginalPrice)&&(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))),i(3),c("ngIf",e.config.PrintConfigInvoice.ItemsTable.QuantityVisible),i(),c("ngIf",e.amountVisible&&!e.priceVisibleRestriction),i(),c("ngIf",t.Discount!=0&&e.amountVisible),i(),c("ngIf",t.DiscountAmount!=0&&e.amountVisible),i(2),c("ngIf",e.amountVisible&&!e.priceVisibleRestriction)}}function Xn(n,o){if(n&1&&(l(0,"span")(1,"span"),d(2),a()()),n&2){let t=r().$implicit;i(2),C("",t.Label," :")}}function Jn(n,o){if(n&1&&(l(0,"span"),d(1),a()),n&2){let t=r().$implicit;i(),C("",t.CurrencySymbol," ")}}function Kn(n,o){if(n&1&&(l(0,"div",86),g(1,"Filter"),l(2,"div",87),d(3),_(4,Xn,3,1,"span"),a(),l(5,"div",88)(6,"div",89)(7,"div",90),p(8,Jn,2,1,"span",18),a(),l(9,"div",91)(10,"span"),d(11),g(12,"number"),g(13,"TrailingZero"),a()()()()()),n&2){let t=o.$implicit,e=o.index,u=r(4);c("ngClass",e==y(1,7,u.data.AmountSummary,1,"Type").length-1?"pb-2":""),i(2),c("ngClass",e==1?"border-top":""),i(),C(" ",e==0&&t.Label=="Amount"?u.totalItemsLabel+" :":""," "),i(),m(e!=0||t.Label!="Amount"?4:-1),i(),c("ngClass",e==1?"border-top":""),i(3),c("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(3),x(M(13,13,P(12,11,t.Amount),u.config.PrintConfigGeneral.TrailingZero))}}function Yn(n,o){if(n&1&&(l(0,"div",85),p(1,Kn,14,16,"div",29),g(2,"Filter"),a()),n&2){let t=r(3);i(),c("ngForOf",y(2,1,t.data.AmountSummary,1,"Type"))}}function te(n,o){if(n&1&&(l(0,"span"),d(1),g(2,"limitTo"),a()),n&2){let t=r().$implicit,e=r(4);i(),C(" ",e.config.PrintConfigInvoice.DocumentVisibility.PaymentCode==3?"- ***"+y(2,1,t.Code,4,t.Code.length-4):"- "+t.Code," ")}}function ne(n,o){if(n&1&&s(0,"div",13),n&2){let t=r().$implicit;c("innerHTML",t.Note,f)}}function ee(n,o){if(n&1&&(l(0,"span",90),d(1),a()),n&2){let t=r(5);i(),x(t.data.CurrencySymbol)}}function ie(n,o){if(n&1&&(l(0,"div",93)(1,"div",94),d(2),p(3,te,3,5,"span",18),_(4,ne,1,1,"div",13),a(),l(5,"div",95),p(6,ee,2,1,"span",96),l(7,"span",91),d(8),g(9,"TrailingZero"),a()()()),n&2){let t=o.$implicit,e=o.index,u=r(4);c("hidden",t.Amount==0),i(2),C(" ",u.config.PrintConfigInvoice.Footer.PaymentMethodVisible?t.MethodName:u.data.Payments.length!=1?"Payment":"Payment "+(e+1)," "),i(),c("ngIf",t.Code&&u.config.PrintConfigInvoice.DocumentVisibility.PaymentCode!=1),i(),m(!(u.config==null||u.config.PrintConfigInvoice==null||u.config.PrintConfigInvoice.DocumentVisibility==null)&&u.config.PrintConfigInvoice.DocumentVisibility.PaymentNoteVisible&&t.Note?4:-1),i(2),c("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),C(" ",M(9,6,u.change>0?t.PaidAmount:t.Amount,u.config.PrintConfigGeneral.TrailingZero))}}function oe(n,o){if(n&1&&(l(0,"div"),p(1,ie,10,9,"div",92),a()),n&2){let t=r(3);i(),c("ngForOf",t.data.Payments)}}function ae(n,o){if(n&1&&(l(0,"span",90),d(1),a()),n&2){let t=r(4);i(),x(t.currencyChange)}}function le(n,o){if(n&1&&(l(0,"div",97)(1,"div",98),d(2,"Change :"),a(),l(3,"div",95),p(4,ae,2,1,"span",96),l(5,"span",91),d(6),g(7,"TrailingZero"),a()()()),n&2){let t=r(3);i(4),c("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),C(" ",M(7,2,t.change,t.config.PrintConfigGeneral.TrailingZero))}}function ce(n,o){if(n&1&&(l(0,"span",90),d(1),a()),n&2){let t=r(4);i(),x(t.data.CurrencySymbol)}}function re(n,o){if(n&1&&(l(0,"div",97)(1,"div",98),d(2),a(),l(3,"div",95),p(4,ce,2,1,"span",96),l(5,"span",91),d(6),g(7,"TrailingZero"),a()()()),n&2){let t=r(3);i(2),C("",t.remainingLabel,":"),i(2),c("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),x(M(7,3,t.diff,t.config.PrintConfigGeneral.TrailingZero))}}function de(n,o){if(n&1&&(l(0,"span"),d(1),a()),n&2){let t=r().$implicit;i(),C("",t.CurrencySymbol," ")}}function pe(n,o){if(n&1&&(l(0,"div",86)(1,"div",99),d(2),a(),l(3,"div",100)(4,"div",89)(5,"div",90),p(6,de,2,1,"span",18),a(),l(7,"div",91)(8,"span"),d(9),g(10,"number"),g(11,"TrailingZero"),a()()()()()),n&2){let t=o.$implicit,e=o.index,u=r(3);c("ngClass",e==0?"border-top pt-2":""),i(2),C("",t.Label," :"),i(4),c("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(3),x(M(11,6,P(10,4,t.Amount),u.config.PrintConfigGeneral.TrailingZero))}}function _e(n,o){if(n&1&&(v(0),l(1,"strong",101),d(2),a(),s(3,"span",102),b()),n&2){let t=r(3);i(2),C(" ",t.config.LoyaltyLabel?t.config.LoyaltyLabel:"Loyalty Point"," "),i(),c("innerHTML",t.data.LoyaltyPoint,f)}}function me(n,o){n&1&&(l(0,"h6",103),d(1," Coupon "),a())}function se(n,o){if(n&1&&(l(0,"span",104),d(1),g(2,"limitTo"),a()),n&2){let t=r(3);i(),C(" ",t.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon==3?"***"+y(2,1,t.data.Coupon,3,t.data.Coupon.length-3):t.data.Coupon," ")}}function ge(n,o){n&1&&(l(0,"h6",103),d(1,"ToP"),a())}function Ce(n,o){if(n&1&&s(0,"span",102),n&2){let t=r(4);c("innerHTML",t.data.Due,f)}}function fe(n,o){if(n&1&&(l(0,"span",104),d(1),a()),n&2){let t=r(4);i(),C("- ",t.top," Days")}}function ue(n,o){if(n&1&&(l(0,"div",31),p(1,ge,2,0,"h6",32)(2,Ce,1,1,"span",105)(3,fe,2,1,"span",33),a()),n&2){let t=r(3);i(),c("ngIf",t.data.ToP),i(),c("ngIf",t.data.ToP),i(),c("ngIf",t.data.ToP)}}function xe(n,o){if(n&1&&(l(0,"h6",103),d(1),a()),n&2){let t=r(3);i(),C(" ",t.config.PrintConfigInvoice.DocumentLabel.SalesPerson," ")}}function Pe(n,o){if(n&1&&(l(0,"p"),d(1),a()),n&2){let t=r(3);i(),C(" ",t.data==null?null:t.data.SalesName," ")}}function ve(n,o){n&1&&(l(0,"h6",103),d(1," Note "),a())}function be(n,o){if(n&1&&(s(0,"p",13),g(1,"newlines")),n&2){let t=r(3);c("innerHTML",P(1,1,t.data==null?null:t.data.ExtraNote),f)}}function Me(n,o){n&1&&(l(0,"h6",106),d(1," Note "),a())}function he(n,o){if(n&1&&(s(0,"p",107),g(1,"newlines")),n&2){let t=r(3);c("innerHTML",P(1,1,t.data==null?null:t.data.InvoiceNote),f)}}function ye(n,o){if(n&1&&(l(0,"p",108),d(1),a()),n&2){let t=r(3);i(),C(" Printed : ",t.data==null?null:t.data.PrintDate," ")}}function Oe(n,o){if(n&1&&(l(0,"p",108),d(1),a()),n&2){let t=r(3);i(),C(" Created : ",t.data==null?null:t.data.Created," ")}}function Ie(n,o){if(n&1&&(l(0,"div",40)(1,"p",108),d(2),a()()),n&2){let t=r(3);i(2),C("Trace ID : ",t.data==null?null:t.data.InvoiceID)}}function Se(n,o){if(n&1&&(l(0,"div"),s(1,"div",109)(2,"packing-slip",110),a()),n&2){let t=r(3);i(2),c("data",t.data)("printTemplate",t.printTemplate)("config",t.config)}}function Te(n,o){if(n&1&&(l(0,"div"),p(1,_n,4,3,"div",7),l(2,"div",8),p(3,sn,2,1,"ng-container",9)(4,Cn,1,1,"ng-template",null,0,_t),a(),l(6,"div",8),s(7,"h2",10)(8,"i",11),l(9,"p",12),s(10,"span",13),g(11,"newlines"),s(12,"br"),p(13,fn,1,1,"span",14),s(14,"br")(15,"span",13),g(16,"newlines"),a(),p(17,xn,4,3,"h6",15)(18,Pn,1,1,"h6",16)(19,vn,2,3,"p",17)(20,bn,3,4,"span",18)(21,Mn,3,4,"span",18)(22,hn,1,1,"p",19),a(),_(23,yn,2,3,"h2",20),_(24,On,2,1,"h2",21),p(25,In,3,1,"ng-container",18),_(26,Sn,2,1,"div",22),_(27,wn,2,1),l(28,"div",23),p(29,kn,3,2,"div",24),l(30,"div",25)(31,"div"),d(32),a()()(),p(33,Wn,19,15,"div",26)(34,Yn,3,5,"div",27)(35,oe,2,1,"div",18)(36,le,8,5,"div",28)(37,re,8,6,"div",28)(38,pe,12,9,"div",29),g(39,"Filter"),l(40,"div",30)(41,"div",31),p(42,_e,4,2,"ng-container",18)(43,me,2,0,"h6",32)(44,se,3,5,"span",33),a(),p(45,ue,4,3,"div",34),a(),l(46,"div",35),p(47,xe,2,1,"h6",32)(48,Pe,2,1,"p",18)(49,ve,2,0,"h6",32)(50,be,2,3,"p",14)(51,Me,2,0,"h6",36)(52,he,2,3,"p",37),a(),s(53,"p",13),g(54,"SafeHtml"),l(55,"div",8),p(56,ye,2,1,"p",38),a(),l(57,"div",39),p(58,Oe,2,1,"p",38),a(),_(59,Ie,3,1,"div",40),p(60,Se,3,3,"div",18),a()),n&2){let t=lt(5),e=r(2),u=I(0);h(pt("print_container invoice_mini ",e.printTemplate!=null&&e.printTemplate.PrintLX300?"lx300":""," ",e.printTemplate==null?null:e.printTemplate.CssClass," box mt-5")),i(),c("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.Footer==null?null:e.config.PrintConfigInvoice.Footer.CopyLabelEnabled)&&!(e.printTemplate!=null&&e.printTemplate.PrintLX300)&&(e.data==null?null:e.data.PrintCopyLabel)),i(2),c("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.LogoConfig==null?null:e.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth)>0)("ngIfElse",t),i(4),c("innerHTML",e.printTemplate==null?null:e.printTemplate.Title,f),i(),c("innerHTML",e.printTemplate==null?null:e.printTemplate.Field,f),i(2),c("innerHTML",P(11,46,e.printTemplate==null?null:e.printTemplate.Address),f),i(3),c("ngIf",e.config==null||e.config.PrintConfigInvoice==null?null:e.config.PrintConfigInvoice.DocumentVisibility.RegisterCode),i(2),c("innerHTML",P(16,48,e.printTemplate==null?null:e.printTemplate.ContactInfo),f),i(2),c("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Name)),i(),c("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.NationalIDNumber)&&e.config.PrintConfigInvoice.DocumentVisibility.IdentificationVisible),i(),c("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Address)&&e.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),i(),c("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Phone)&&(u==null?null:u.PhoneCustomerVisibility)!==1&&(e.data.Customer==null?null:e.data.Customer.Phone)!==null),i(),c("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Mobile)&&(u==null?null:u.PhoneCustomerVisibility)!==1&&(e.data.Customer==null?null:e.data.Customer.Phone)==null&&(e.data.Customer==null?null:e.data.Customer.Mobile)!==null),i(),c("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),i(),m(e.data.PaymentState<3?23:-1),i(),m(e.data.Retur&&(!(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.Header==null)&&e.config.PrintConfigInvoice.Header.SalesReturnLabel)?24:-1),i(),c("ngIf",e.data.PaymentState==1),i(),m(e.data.Creator&&e.config.PrintConfigInvoice.Footer.CreatorVisiblePosition!=1?26:-1),i(),m(!(e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null)&&e.config.PrintConfigInvoice.DocumentVisibility.WritePrintOffline?27:-1),i(2),c("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.NumberVisible),i(3),x(e.data.Date),i(),c("ngForOf",e.data.Items),i(),c("ngIf",e.amountVisible&&!e.priceVisibleRestriction),i(),c("ngIf",(e.data.Payments.length>0||!(e.change>0)||e.diff>0)&&e.amountVisible),i(),c("ngIf",e.change>0&&e.amountVisible),i(),c("ngIf",e.diff>0&&!e.hasSurcharge&&e.amountVisible),i(),c("ngForOf",y(39,50,e.data.AmountSummary,2,"Type")),i(4),c("ngIf",e.config.PrintConfigInvoice.Footer.ShowLoyaltyPoint&&e.data.LoyaltyPoint),i(),c("ngIf",e.data.Coupon&&e.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),i(),c("ngIf",e.data.Coupon&&e.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),i(),c("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.InvoicePaymentTermsVisible&&e.data.PaymentState<3&&e.data.Payments.length==0),i(2),c("ngIf",e.data.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),c("ngIf",e.data.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),c("ngIf",(e.data==null?null:e.data.ExtraNote)&&e.config.PrintConfigInvoice.Footer.ParkNoteVisible),i(),c("ngIf",e.data.ExtraNote&&e.config.PrintConfigInvoice.Footer.ParkNoteVisible),i(),c("ngIf",(e.data==null?null:e.data.InvoiceNote)&&e.config.PrintConfigInvoice.Footer.NoteVisible),i(),c("ngIf",e.data.InvoiceNote&&e.config.PrintConfigInvoice.Footer.NoteVisible),i(),c("innerHTML",P(54,54,e.printTemplate!=null&&e.printTemplate.FooterLeft?e.printTemplate==null?null:e.printTemplate.FooterLeft:""),f),i(3),c("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null?null:e.config.PrintConfigInvoice.DocumentVisibility.CustomerEntryTimeVisible)&&e.data.PrintDate),i(2),c("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null?null:e.config.PrintConfigInvoice.DocumentVisibility.InvoiceCreatedTimeVisible)&&e.data.Created),i(),m(e.isOffline==!1&&(e.data!=null&&e.data.InvoiceID)&&(!(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null)&&e.config.PrintConfigInvoice.DocumentVisibility.TraceID)?59:-1),i(),c("ngIf",e.config==null||e.config.PrintConfigInvoice==null?null:e.config.PrintConfigInvoice.DocumentVisibility.PrintPackingslipAftersell)}}function Ee(n,o){if(n&1&&s(0,"qr-code",111),n&2){let t=r(3);c("value",t.data.QRContent)("size",220)("margin",3)}}function Re(n,o){if(n&1&&s(0,"ngx-barcode6",112),n&2){let t=r(3);c("bc-value",t.data.QRContent)("bc-height",40)("bc-width",1)("bc-display-value",!1)}}function we(n,o){if(n&1&&(l(0,"div",5),_(1,Ee,1,3,"qr-code",111)(2,Re,1,4,"ngx-barcode6",112),a()),n&2){r();let t=I(4),e=r();i(),m(t==e.qrPrintingTypeEnum.QRCode?1:2)}}function Le(n,o){if(n&1){let t=ot();l(0,"div",113)(1,"button",114),at("click",function(){K(t);let u=r(2);return Y(u.onPrint())}),s(2,"i",115),d(3," Print "),a()()}if(n&2){let t=r(2);h(V(2,ln,!t.data.QRContent))}}function ke(n,o){if(n&1&&(s(0,"link",2),g(1,"StylesheetSafeUrl"),_(2,cn,1,1,"POS-print-mode",3),p(3,Te,61,56,"div",4),Q(4),_(5,we,3,1,"div",5),_(6,Le,4,4,"div",6)),n&2){let t=r();k("href",t.stylesheet!=null&&t.stylesheet.Size8cm?P(1,5,t.stylesheet==null?null:t.stylesheet.Size8cm):null,R),i(2),m(t.receiptParam?2:-1),i(),c("ngIf",t.data),i();let e=j(t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.InvoiceQR==null?null:t.config.PrintConfigInvoice.InvoiceQR.MiniPrintingType);i(),m(e!=t.qrPrintingTypeEnum.None?5:-1),i(),m(t.showPrintButton()?6:-1)}}function Ve(n,o){n&1&&(l(0,"div",1)(1,"div",116)(2,"h1"),d(3," Cannot generate print preview because of client-server displaying different / mismatch items in invoice "),a()()())}var It=(e=>(e[e.None=1]="None",e[e.Barcode=2]="Barcode",e[e.QRCode=3]="QRCode",e))(It||{}),yt=class n{constructor(o,t){this.activeRoute=o;this.decimalPipe=t;this.qrPrintingTypeEnum.QRCode}printService=J(W);data;outletInfo;printTemplate;config;emailVisibleRestriction;priceVisibleRestriction;receiptParam;isUnknownError=!1;isOffline=!1;stylesheet;saveLastPrintDate=Z(!1);showPrintButton=Z(!1);invoiceQR=It;paperPrintMode;printModeType;customerVisible;amountVisible;diff;change=0;currencyChange;totalItemsLabel;hasSurcharge;top;remainingLabel;totalItemLength=tt(0);qrPrintingTypeEnum=vt;ngOnInit(){this.initRemainingLabel(),this.generateItemLabel(),this.checkAmountSummary(),this.checkSurcharge(),this.calculatePrintPrice(),this.prepareSalesCommission(),this.initPaperModeConfig(),this.parseTop(),this.initPrintListener()}initPrintListener(){this.saveLastPrintDate()&&window.addEventListener("afterprint",this.handleAfterPrint)}handleAfterPrint=()=>{let o=this.data?.ID;T.IsNotEmpty(o)&&this.printService.updateLastPrintDateTime(o).subscribe()};ngOnDestroy(){this.saveLastPrintDate()&&window.removeEventListener("afterprint",this.handleAfterPrint)}initRemainingLabel(){let o=this.config?this.config.PrintConfigInvoice.Footer.LabelRemaining:"";this.remainingLabel=o||"Remaining"}initPaperModeConfig(){if(this.receiptParam){let o=this.receiptParam;this.paperPrintMode=[{label:"8cm",link:"/print/InvoiceMini",param:o},{label:"A4",link:"/print/Invoice",param:o}]}}parseTop(){this.data&&this.data.ToP&&(this.top=parseInt(this.data.ToP.toFixed(1)))}getJSONQR(){let o,t;return this.data.OutletName!==null&&this.data.Number!=null&&(o={Outlet:this.data.OutletName,Invoice:this.data.Number},t=JSON.stringify(o)),t}calculatePrintPrice(){this.customerVisible=this.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible&&this.data.Customer;let o=this.activeRoute.snapshot.queryParamMap.get("Price");this.amountVisible=o!=="0",this.calculateChange()}calculateChange(){let o=0;this.data.Payments.forEach(e=>{o+=e.PaidAmount});let t=this.data.FinalAmount;this.calculateDiff(),this.change=o-t,this.currencyChange=this.data.CurrencySymbol}calculateDiff(){let o=0;this.data.Payments.forEach(e=>{o+=e.Amount});let t=this.data.FinalAmount;this.diff=t-o,Math.abs(this.diff)<this.config.ModuleSell.ToleranceAmount&&(this.diff=0)}generateItemLabel(){let o=0,t=this.data.Items.length;for(let z of this.data.Items)(this.config?.PrintConfigInvoice?.ItemsTable?.NonInventoryCount||z.Variant.TypeID!=2)&&(o+=z.Quantity);this.totalItemLength.set(t);let e=o>1?"s":"",u=this.decimalPipe.transform(o,"1.0-4").toString(),St=this.config.PrintConfigInvoice?.ItemsFooter?.TotalQuantityVisible;this.totalItemsLabel=`Total (Item${e}: ${t}${St?`, Qty: ${u})`:")"}`}checkSurcharge(){this.hasSurcharge=!1;for(let o of this.data.AmountSummary)o.Label.includes("Surcharge")&&(this.hasSurcharge=!0)}checkAmountSummary(){let o=this.data.AmountSummary.length;this.data.AmountSummary[o-1].Label=="Change"&&(this.change=this.data.AmountSummary[o-1].Amount,this.currencyChange=this.data.AmountSummary[o-1].CurrencySymbol,this.data.AmountSummary.pop(),this.data.AmountSummary.pop())}prepareSalesCommission(){for(let o of this.data.Items)o.SalesID!=null&&o.SalesName==null&&(o.SalesName=this.getSalesName(o.SalesID))}getSalesName(o){let t=this.outletInfo.ListSales.find(e=>e.ID==o);return T.IsNotEmpty(t)?t.Name:""}onPrint(){window.print()}static \u0275fac=function(t){return new(t||n)(U(Ct),U(S))};static \u0275cmp=w({type:n,selectors:[["pos-receipt"]],inputs:{data:"data",outletInfo:"outletInfo",printTemplate:"printTemplate",config:"config",emailVisibleRestriction:"emailVisibleRestriction",priceVisibleRestriction:"priceVisibleRestriction",receiptParam:"receiptParam",isUnknownError:"isUnknownError",isOffline:"isOffline",stylesheet:"stylesheet",saveLastPrintDate:[1,"saveLastPrintDate"],showPrintButton:[1,"showPrintButton"]},standalone:!1,decls:3,vars:2,consts:[["DEFAULTWIDTH",""],[1,"print_container"],["rel","stylesheet"],["paperType","mini",1,"d-print-none",3,"paperPrints"],[3,"class",4,"ngIf"],[1,"d-flex","justify-content-center"],[1,"d-flex","justify-content-center","d-print-none",3,"class"],["class","h5 text-center fw-bold ribbon text-white",4,"ngIf"],[1,"text-center"],[4,"ngIf","ngIfElse"],[1,"m-0","fw-bold",3,"innerHTML"],[1,"d-block",3,"innerHTML"],[1,"mt-1","mb-3"],[3,"innerHTML"],[3,"innerHTML",4,"ngIf"],["class","m-0 pt-2 fw-bold",4,"ngIf"],["class","m-0 pt-2 fw-normal",3,"innerHTML",4,"ngIf"],["class","mb-0",3,"innerHTML",4,"ngIf"],[4,"ngIf"],["class","fst-italic mb-2",3,"innerHTML",4,"ngIf"],[1,"text-center","m-0","p-1",3,"class"],[1,"text-center","m-0","p-1","text-warning"],[1,"row","g-0"],[1,"row","g-0","justify-content-between","py-2"],["class","col fw-bold",4,"ngIf"],[1,"col","text-end"],["class","border-y pt-1",4,"ngFor","ngForOf"],["class","cartAmount pt-2",4,"ngIf"],["class","row g-0 text-end",4,"ngIf"],["class","row g-0 text-end",3,"ngClass",4,"ngFor","ngForOf"],[1,"row","g-0","mt-2"],[1,"col-md-12","text-center"],["class","m-0 fw-bold",4,"ngIf"],["class","pb-3",4,"ngIf"],["class","col-md-12 text-center",4,"ngIf"],[1,"text-center","my-2"],["class","fw-bold",4,"ngIf"],["style","word-break: break-all",3,"innerHTML",4,"ngIf"],["class","m-0",4,"ngIf"],[1,"text-center","mt-3"],[1,"text-center","mt-3","trace-id"],[1,"h5","text-center","fw-bold","ribbon","text-white"],["class","bg-primary ribbon-content receipt py-3",3,"innerHTML",4,"ngIf"],["class","bg-danger void ribbon-content py-3",4,"ngIf"],["class","bg-warning retur ribbon-content py-3",4,"ngIf"],[1,"bg-primary","ribbon-content","receipt","py-3",3,"innerHTML"],[1,"bg-danger","void","ribbon-content","py-3"],[1,"bg-warning","retur","ribbon-content","py-3"],["class","img-fluid border-0",3,"style","src",4,"ngIf"],[1,"img-fluid","border-0",3,"src"],["class","img-fluid border-0",3,"src",4,"ngIf"],[1,"m-0","pt-2","fw-bold"],[1,"m-0","pt-2","fw-normal",3,"innerHTML"],[1,"mb-0",3,"innerHTML"],[1,"fst-italic","mb-2",3,"innerHTML"],[1,"text-center","m-0","p-1"],[1,"text-center","my-3","text-danger"],[1,"fw-bold","fs-4"],[1,"my-1"],["target","_blank","href","https://status.dealpos.com"],[1,"fs-5","text-danger","fw-bold","text-center","mt-1"],[1,"col","fw-bold"],[1,"border-y","pt-1"],[1,"col-11"],["class","fst-italic pt-0 mt-0",4,"ngIf"],["class","col-1 ps-2 text-end",4,"ngIf"],[1,"d-flex","g-0","pb-1",3,"ngClass"],[1,"flex-grow-1","text-end"],[1,"d-flex","align-items-end","justify-content-end","me-5"],["class","small",4,"ngIf"],[1,"col-auto","text-end"],[3,"serials"],[1,"fst-italic","pt-0","mt-0"],[1,"inlineMarginLeft"],["class","fst-italic text-success","style","overflow-wrap: break-word",3,"innerHTML",4,"ngIf"],[1,"fst-italic","text-success",2,"overflow-wrap","break-word",3,"innerHTML"],[1,"col-1","ps-2","text-end"],["class","small fst-italic text-danger",4,"ngIf"],[1,"small","fst-italic","text-danger"],[1,"small"],[1,"small","mx-1"],[1,"small","d-inline-flex","flex-column"],[1,"text-decoration-line-through","text-danger"],[1,"fw-bold","text-danger","me-2","ms-4","small"],[1,"fw-bold","text-danger","me-2","small"],[1,"cartAmount","pt-2"],[1,"row","g-0","text-end",3,"ngClass"],[1,"col-7","fw-bold",3,"ngClass"],[1,"col-5","g-0",3,"ngClass"],[1,"row"],[1,"col-auto"],[1,"col"],["class","row g-0 text-end",3,"hidden",4,"ngFor","ngForOf"],[1,"row","g-0","text-end",3,"hidden"],[1,"col-7","fw-bold","pe-3"],[1,"col-5","row","g-0"],["class","col-auto",4,"ngIf"],[1,"row","g-0","text-end"],[1,"col-7","fw-bold"],[1,"col-7"],[1,"col-5"],[1,"mt-3","mb-1","d-block"],[1,"pb-3",3,"innerHTML"],[1,"m-0","fw-bold"],[1,"pb-3"],["class","pb-3",3,"innerHTML",4,"ngIf"],[1,"fw-bold"],[2,"word-break","break-all",3,"innerHTML"],[1,"m-0"],[2,"border-top-style","dotted"],[3,"data","printTemplate","config"],[3,"value","size","margin"],["bc-element-type","svg",1,"mb-3",3,"bc-value","bc-height","bc-width","bc-display-value"],[1,"d-flex","justify-content-center","d-print-none"],[1,"btn","btn-light",3,"click"],[1,"fa","fa-print"],[1,"print-error-message"]],template:function(t,e){t&1&&(Q(0),_(1,ke,7,8)(2,Ve,4,0,"div",1)),t&2&&(j(e.config==null||e.config.PrintConfigInvoice==null?null:e.config.PrintConfigInvoice.DocumentVisibility),i(),m(e.totalItemLength()==(e.data==null||e.data.Items==null?null:e.data.Items.length)&&e.data?1:2))},dependencies:()=>[mt,st,gt,B,bt,G,q,X,S,ft,H,ut,xt,Pt,A,ht],styles:[".invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}table.plain[_ngcontent-%COMP%]{border-collapse:collapse}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:16px;padding:2px 7px;color:#fff;font-weight:700}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#000;text-shadow:none}table.plain[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px}table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:3px solid black}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%]{margin:0 5px 0 0;padding:0;float:left;display:block}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#fff;display:block;background-color:#d8dfea;border:1px solid #bbb;-webkit-border-radius:3px;border-radius:3px}table.plain[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}table.plain[_ngcontent-%COMP%] div.text[_ngcontent-%COMP%]{padding:2px 0 0}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{display:block;color:#00f;text-decoration:none}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%]:visited{font-weight:700}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin:0;padding:0;display:block}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%]{background-color:#fdf3c6!important}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}table.plain[_ngcontent-%COMP%] th.borderLRB0[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.borderLRB0[_ngcontent-%COMP%]{border-left-width:0px!important;border-right-width:0px!important;border-bottom-width:0px!important;background-color:#fff!important}table.plain[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.plain[_ngcontent-%COMP%] th.numberCenter[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:center}table.plain[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.plain[_ngcontent-%COMP%] td.top[_ngcontent-%COMP%]{vertical-align:top}table.plain[_ngcontent-%COMP%] td.noTopPad[_ngcontent-%COMP%]{padding-top:0}table.plain[_ngcontent-%COMP%] td.small[_ngcontent-%COMP%]{font-size:11px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-width:0px;background-color:#fff}table.plain[_ngcontent-%COMP%] span.serial[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 0 5px 5px;background-color:#fff}table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inlineMarginLeft[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%]{margin:0;padding:0;list-style-type:circle;list-style-position:inside}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 20px 0 0;padding:0;float:left;display:block}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.scroll[_ngcontent-%COMP%]{width:100%;overflow:auto;padding:0 0 2px}table.fixed[_ngcontent-%COMP%]{table-layout:fixed}table.footer_row[_ngcontent-%COMP%]{margin:5px 8px 0 auto}table.footer_row[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px;text-align:right;float:left}table.footer_adjust[_ngcontent-%COMP%]{margin:-10px 18px 0 auto}table.footer_adjust[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_adjust[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_adjust[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px 23px 5px 5px;text-align:right;float:left}table.total-all-grid[_ngcontent-%COMP%]{width:100%!important;border-collapse:collapse;margin-top:10px}table.manufacture[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table.manufacture[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fceca3!important}table.manufacture[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #BBBBBB!important}table.accounting[_ngcontent-%COMP%]{max-width:1000px;border-collapse:collapse}table.accounting[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:1px solid #999;border-bottom:1px solid #999;height:28px;line-height:16px;color:#444;background-color:#fceca3!important}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.accounting[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px;border-bottom:1px solid black}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#00f;text-decoration:none}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.accounting[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.accounting[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.accounting[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.accounting[_ngcontent-%COMP%] th.bordertop[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.bordertop[_ngcontent-%COMP%]{border-top:1px #999 solid}table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-bottom:20px}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(2n){background-color:#fff}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(4n-1){background-color:#f6f6f6}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:1px solid #9e9e9e;color:#000;text-shadow:none}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8;display:table-cell}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(3){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(5){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(6){width:5%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(7){width:10%!important}.listReturn[_ngcontent-%COMP%] a.head[_ngcontent-%COMP%]{padding:10px 0 10px 10px;display:block;width:50%}.listReturn[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:right!important}.listReturn[_ngcontent-%COMP%] table.summary[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-top:20px!important;display:block}table.paidAmount[_ngcontent-%COMP%]{float:right;margin-top:-10px;text-align:right;padding-right:7px}table.paidAmount[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}table.paidAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}table.paidAmount[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 5px}div.zebra[_ngcontent-%COMP%]{display:table;border-collapse:collapse}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:table-cell}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > strong[_ngcontent-%COMP%]{display:block;border:1px solid #525252;background-color:#545454;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#888),color-stop(100%,#545454));background-image:-webkit-linear-gradient(#888,#545454);background-image:-moz-linear-gradient(#888,#545454);background-image:-o-linear-gradient(#888,#545454);background-image:linear-gradient(#888,#545454);-webkit-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);-moz-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);box-shadow:inset 0 2px 0 -1px #fff3;text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:24px;border-bottom:1px solid #333;padding:2px 7px;color:#fff;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;padding:5px 7px;border:solid 1px #d8d8d8;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.number[_ngcontent-%COMP%]{text-align:right}.print_container[_ngcontent-%COMP%] > div.print-error-message[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:100vh;text-align:center}.print_container[_ngcontent-%COMP%] > div.print-error-message[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#dc3545!important;font-weight:500}"]})},Ot=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=L({type:n});static \u0275inj=E({providers:[W],imports:[D,N,F,Mt,G,q,X]})};export{B as a,F as b,yt as c,Ot as d};
1
+ import{a as A,b as bt,c as Mt,d as W,e as X,f as ht}from"./chunk-COD2FOFZ.js";import{a as G}from"./chunk-BYMQG5T4.js";import{a as vt}from"./chunk-DUBSPAA2.js";import{a as q}from"./chunk-4WL57CXW.js";import{N,n as ft,o as H,q as ut,u as xt,y as Pt}from"./chunk-WZVFFBZM.js";import{a as T}from"./chunk-3DEA4WWC.js";import{Bb as _,Db as m,Dc as V,Fa as tt,Fb as nt,Gb as et,Hb as it,Ib as c,Jb as l,Kb as a,Kc as g,Lb as s,Lc as P,Mc as M,Nc as y,Pb as v,Qb as b,Qc as _t,Rd as Ct,Sa as f,Ua as $,Ub as ot,Va as R,Xb as at,Yc as Z,Za as i,Zb as r,eb as U,hc as lt,ib as w,jb as L,kc as ct,lc as h,mc as d,md as mt,nc as x,oa as E,ob as p,oc as C,od as st,pc as O,pd as gt,qc as rt,ra as J,uc as Q,va as K,vc as j,wa as Y,wc as I,wd as S,xb as k,yc as dt,zc as pt,zd as D}from"./chunk-2ERDZXCS.js";function kt(n,o){if(n&1&&(l(0,"div",2)(1,"div",5)(2,"div",10)(3,"span"),d(4),a()()()()),n&2){let t=r(2);i(4),O("",t.config==null||t.config.PrintConfigOthers==null||t.config.PrintConfigOthers.Header==null?null:t.config.PrintConfigOthers.Header.PackingReceiptTitle," : ",t.data==null||t.data.Delivery==null?null:t.data.Delivery.Number)}}function Vt(n,o){if(n&1&&(l(0,"strong"),d(1),a()),n&2){let t=r(3);i(),x(t.data.Customer==null?null:t.data.Customer.ContactDisplay)}}function Dt(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Customer==null?null:t.data.Customer.Email)}}function Ht(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Customer==null?null:t.data.Customer.Phone)}}function Nt(n,o){if(n&1&&(l(0,"div"),s(1,"span",9),g(2,"newlines"),a()),n&2){let t=r(3);i(),c("innerHtml",P(2,1,t.data.Customer==null?null:t.data.Customer.Address),f)}}function At(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.CityName)}}function Bt(n,o){if(n&1&&(l(0,"div",3)(1,"div",11)(2,"h4"),s(3,"span",9),a(),_(4,Vt,2,1,"strong"),_(5,Dt,3,1,"div"),_(6,Ht,3,1,"div"),_(7,Nt,3,3,"div"),_(8,At,3,1,"div"),a()()),n&2){let t=r(2);i(3),c("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.Customer,f),i(),m(t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible?4:-1),i(),m(t.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible?5:-1),i(),m(t.config.PrintConfigInvoice.DocumentVisibility.PhoneCustomerVisibility!==1?6:-1),i(),m(t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible?7:-1),i(),m(t.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible?8:-1)}}function Ft(n,o){if(n&1&&(l(0,"strong"),d(1),a()),n&2){let t=r(3);i(),x(t.data.Shipping.Name)}}function zt(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Shipping==null?null:t.data.Shipping.Street)}}function $t(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Shipping==null?null:t.data.Shipping.Phone)}}function Ut(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Shipping==null?null:t.data.Shipping.City)}}function Qt(n,o){if(n&1&&(l(0,"div"),s(1,"span",9),g(2,"newlines"),a()),n&2){let t=r(3);i(),c("innerHtml",P(2,1,t.data.Shipping==null?null:t.data.Shipping.Description),f)}}function jt(n,o){if(n&1&&(l(0,"div",2)(1,"div",12)(2,"div",10),s(3,"span",9),a(),_(4,Ft,2,1,"strong"),_(5,zt,3,1,"div"),_(6,$t,3,1,"div"),_(7,Ut,3,1,"div"),_(8,Qt,3,3,"div"),a()()),n&2){let t=r(2);i(3),c("innerHtml",t.config.PrintConfigInvoice.DocumentLabel.ShippingAddress,f),i(),m(t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible?4:-1),i(),m(t.data.Shipping.Address?5:-1),i(),m(t.data.Shipping.Phone?6:-1),i(),m(t.data.Shipping.City?7:-1),i(),m(t.data.Shipping.Description?8:-1)}}function Zt(n,o){if(n&1&&(l(0,"strong"),d(1),a()),n&2){let t=r(3);i(),x(t.data.Shipping.Sender)}}function qt(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Shipping==null?null:t.data.Shipping.SenderAddress)}}function Gt(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Shipping==null?null:t.data.Shipping.SenderPhone)}}function Wt(n,o){if(n&1&&(l(0,"div")(1,"span"),d(2),a()()),n&2){let t=r(3);i(2),x(t.data.Shipping==null?null:t.data.Shipping.SenderCity)}}function Xt(n,o){if(n&1&&(l(0,"div",2)(1,"div",12)(2,"div",10)(3,"span"),d(4,"Ship From :"),a()(),_(5,Zt,2,1,"strong"),_(6,qt,3,1,"div"),_(7,Gt,3,1,"div"),_(8,Wt,3,1,"div"),a()()),n&2){let t=r(2);i(5),m(t.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible?5:-1),i(),m(t.data.Shipping.SenderAddress?6:-1),i(),m(t.data.Shipping.SenderPhone?7:-1),i(),m(t.data.Shipping.SenderCity?8:-1)}}function Jt(n,o){if(n&1&&(l(0,"div",4)(1,"div",13)(2,"div",14)(3,"span",10),d(4),a()()()()),n&2){let t=r(2);i(4),x(t.data.TypeName)}}function Kt(n,o){if(n&1&&(l(0,"tbody")(1,"tr"),s(2,"td",19),l(3,"td"),d(4),a(),s(5,"td",19),g(6,"number"),a()()),n&2){let t=o.$implicit,e=o.$index;i(2),c("innerHtml",e+1+".",f),i(2),C(" ",t.Name," "),i(),c("innerHtml",P(6,3,t.Quantity),f)}}function Yt(n,o){if(n&1&&(l(0,"div",2)(1,"div",5)(2,"table",15)(3,"thead",16)(4,"tr")(5,"th",17),d(6,"No"),a(),l(7,"th",18),d(8,"Name"),a(),l(9,"th",17),d(10,"Qty"),a()()(),et(11,Kt,7,5,"tbody",null,nt),a()()()),n&2){let t=r(2);i(11),it(t.data.List)}}function tn(n,o){if(n&1&&(l(0,"div",2)(1,"div",5),s(2,"div",20),g(3,"newlines"),a()()),n&2){let t=r(2);i(2),c("innerHtml",P(3,1,t.data.Invoice.Note),f)}}function nn(n,o){if(n&1&&(l(0,"div"),_(1,kt,5,2,"div",2),_(2,Bt,9,6,"div",3),_(3,jt,9,6,"div",2),_(4,Xt,9,4,"div",2),_(5,Jt,5,1,"div",4),_(6,Yt,13,0,"div",2),_(7,tn,4,3,"div",2),l(8,"div",2)(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8),s(13,"span",9),g(14,"newlines"),a()()()()()()),n&2){let t=r();h(dt("packingslip_container ",t.printTemplate.PrintLX300?"lx300":"")),i(),m(t.constants.IsNotEmpty(t.data==null||t.data.Delivery==null?null:t.data.Delivery.Number)?1:-1),i(),m(t.data.Shipping!=null&&t.data.Shipping.Recipient?-1:2),i(),m(t.data.Shipping?3:-1),i(),m(t.data.Shipping!=null&&t.data.Shipping.Sender&&t.config.PrintConfigPackingSlip.ShippingAddressSenderVisible?4:-1),i(),m(t.data.TypeName?5:-1),i(),m(t.config.PrintConfigPackingSlip.ProductTableVisible?6:-1),i(),m(t.config.PrintConfigPackingSlip.RenderInvoiceNote&&(t.data.Invoice==null?null:t.data.Invoice.Note)!=null?7:-1),i(6),c("innerHtml",P(14,11,t.printTemplate.DeliveryNote),f)}}var B=class n{data;printTemplate;config;stylesheet;constants=T;static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["packing-slip"]],inputs:{data:"data",printTemplate:"printTemplate",config:"config",stylesheet:"stylesheet"},standalone:!1,decls:3,vars:4,consts:[["rel","stylesheet"],[3,"class"],[1,"row","g-0"],[1,"row","g-0","pt-3"],[1,"row","my-2"],[1,"col"],["id","signatureNote"],[1,"note"],[1,"d-flex","justify-content-md-start"],[3,"innerHtml"],[1,"fw-bold"],[1,"col","border","border-dark","py-2","px-2"],[1,"col","border","border-dark","py-2","px-2","mb-2"],[1,"col","text-end","my-2"],[1,"border","border-dark","py-2","px-2","mb-2","text-center"],[1,"table","table-striped","table-sm","table-bordered","w-100"],[2,"background","#fdf3c6"],[1,"text-end",2,"width","10%"],[2,"width","80%"],[2,"text-align","right",3,"innerHtml"],[2,"text-align","center","padding","16px","border","1px dotted black","background-color","#fceca3",3,"innerHtml"]],template:function(t,e){t&1&&(s(0,"link",0),g(1,"StylesheetSafeUrl"),_(2,nn,15,13,"div",1)),t&2&&(k("href",e.stylesheet!=null&&e.stylesheet.Size8cm?P(1,2,e.stylesheet==null?null:e.stylesheet.Size8cm):null,R),i(2),m(e.data&&e.config?2:-1))},dependencies:[S,H,A],encapsulation:2})},F=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=L({type:n});static \u0275inj=E({imports:[D,N]})};var on=n=>({width:n}),an=n=>({"align-items-end":n}),ln=n=>({"mt-6":n});function cn(n,o){if(n&1&&s(0,"POS-print-mode",3),n&2){let t=r(2);c("paperPrints",t.paperPrintMode)}}function rn(n,o){if(n&1&&s(0,"div",45),n&2){let t=r(4);c("innerHTML",t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.FooterLabel==null?null:t.config.PrintConfigInvoice.FooterLabel.CopyLabelText,f)}}function dn(n,o){n&1&&(l(0,"div",46),d(1," Void "),a())}function pn(n,o){n&1&&(l(0,"div",47),d(1," Return "),a())}function _n(n,o){if(n&1&&(l(0,"div",41),p(1,rn,1,1,"div",42)(2,dn,2,0,"div",43)(3,pn,2,0,"div",44),a()),n&2){let t=r(3);i(),c("ngIf",!t.data.Bin&&!t.data.Retur),i(),c("ngIf",t.data==null?null:t.data.Bin),i(),c("ngIf",t.data==null?null:t.data.Retur)}}function mn(n,o){if(n&1&&s(0,"img",49),n&2){let t=r(4);ct(V(3,on,t.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth+"px")),c("src",t.printTemplate==null?null:t.printTemplate.Logo,$)}}function sn(n,o){if(n&1&&(v(0),p(1,mn,1,5,"img",48),b()),n&2){let t=r(3);i(),c("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function gn(n,o){if(n&1&&s(0,"img",49),n&2){let t=r(4);c("src",t.printTemplate==null?null:t.printTemplate.Logo,$)}}function Cn(n,o){if(n&1&&p(0,gn,1,1,"img",50),n&2){let t=r(3);c("ngIf",t.printTemplate==null?null:t.printTemplate.Logo)}}function fn(n,o){if(n&1&&s(0,"span",13),n&2){let t=r(3);c("innerHTML",t.data==null?null:t.data.RegisterCode,f)}}function un(n,o){if(n&1&&(l(0,"span"),d(1),a()),n&2){let t=r(4);i(),C(" - ",t.data==null||t.data.Customer==null?null:t.data.Customer.Code)}}function xn(n,o){if(n&1&&(l(0,"h6",51)(1,"span"),d(2),a(),p(3,un,2,1,"span",18),a()),n&2){let t=r(3);i(2),O("",t.data==null||t.data.Customer==null?null:t.data.Customer.Title," ",t.data.Customer==null?null:t.data.Customer.Name),i(),c("ngIf",(t.data==null||t.data.Customer==null?null:t.data.Customer.Code)&&t.config.PrintConfigInvoice.DocumentVisibility.CustomerCodeVisible)}}function Pn(n,o){if(n&1&&s(0,"h6",52),n&2){let t=r(3);c("innerHTML",t.data.Customer==null?null:t.data.Customer.NationalIDNumber,f)}}function vn(n,o){if(n&1&&(s(0,"p",53),g(1,"newlines")),n&2){let t=r(3);c("innerHTML",P(1,1,t.data.Customer==null?null:t.data.Customer.Address),f)}}function bn(n,o){if(n&1&&(l(0,"span"),d(1),g(2,"lastDigit"),a()),n&2){let t=r(3),e=I(0);i(),C(" ",(e==null?null:e.PhoneCustomerVisibility)==3?M(2,1,t.data.Customer==null?null:t.data.Customer.Phone,4):t.data.Customer==null?null:t.data.Customer.Phone," ")}}function Mn(n,o){if(n&1&&(l(0,"span"),d(1),g(2,"lastDigit"),a()),n&2){let t=r(3),e=I(0);i(),C(" ",(e==null?null:e.PhoneCustomerVisibility)==3?M(2,1,t.data.Customer==null?null:t.data.Customer.Mobile,4):t.data.Customer==null?null:t.data.Customer.Mobile," ")}}function hn(n,o){if(n&1&&s(0,"p",54),n&2){let t=r(3);c("innerHTML",t.data.Customer==null?null:t.data.Customer.Email,f)}}function yn(n,o){if(n&1&&(l(0,"h2",55),d(1),a()),n&2){let t=r(3);h(t.data.PaymentState==2?"text-warning":"text-danger"),i(),C(" ",t.data.PaymentState==2?"PARTIAL":t.config.PrintConfigInvoice.DocumentLabel.BillLabel," ")}}function On(n,o){if(n&1&&(l(0,"h2",21),d(1),a()),n&2){let t=r(3);i(),C(" ",!(t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.Header==null)&&t.config.PrintConfigInvoice.Header.SalesReturnLabelText?t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.Header==null?null:t.config.PrintConfigInvoice.Header.SalesReturnLabelText:"SALES RETURN"," ")}}function In(n,o){if(n&1&&(v(0),l(1,"h3",55),d(2),a(),b()),n&2){let t=r(3);i(2),x(t.data==null?null:t.data.ParkLabel)}}function Sn(n,o){if(n&1&&(l(0,"div",22),d(1),a()),n&2){let t=r(3);i(),C("Cashier : ",t.data.Creator)}}function Tn(n,o){n&1&&(l(0,"div",56)(1,"div",57),d(2,"SERVER ERROR!"),a(),l(3,"div",58)(4,"a",59),d(5," status.dealpos.com "),a()(),l(6,"div"),d(7,"Please check if order is uploaded successfully"),a()())}function En(n,o){n&1&&(l(0,"div",60),d(1," OFFLINE ORDER "),a())}function Rn(n,o){if(n&1&&_(0,En,2,0,"div",60),n&2){let t=r(4);m(t.isOffline?0:-1)}}function wn(n,o){if(n&1&&_(0,Tn,8,0,"div",56)(1,Rn,1,1),n&2){let t=r(3);m(t.isUnknownError==!0?0:1)}}function Ln(n,o){if(n&1&&(v(0),s(1,"div",13),b()),n&2){let t=r(4);i(),c("innerHTML",t.data.HeaderTitle,f)}}function kn(n,o){if(n&1&&(l(0,"div",61),p(1,Ln,2,1,"ng-container",18),s(2,"div",13),a()),n&2){let t=r(3);i(),c("ngIf",t.data.HeaderTitle),i(),c("innerHTML",t.data.Number,f)}}function Vn(n,o){if(n&1&&(v(0),d(1),b()),n&2){let t=r().index;i(),C(" ",t+1,". ")}}function Dn(n,o){if(n&1&&(v(0),s(1,"app-serial-note",71),b()),n&2){let t=r().$implicit;i(),c("serials",t.Serial)}}function Hn(n,o){if(n&1&&(l(0,"div",72)(1,"i",73),d(2),a()()),n&2){let t=r().$implicit;i(2),C(" sold by ",t.SalesName," ")}}function Nn(n,o){if(n&1&&(s(0,"small",75),g(1,"newlines")),n&2){let t=r(2).$implicit;c("innerHTML",P(1,1,t.Note),f)}}function An(n,o){if(n&1&&(v(0),p(1,Nn,2,3,"small",74),b()),n&2){let t=r().$implicit,e=r(3);i(),c("ngIf",t.Note&&e.config.PrintConfigInvoice.ItemsTable.NoteItemVisible)}}function Bn(n,o){if(n&1&&(l(0,"span",78),d(1),a()),n&2){let t=r(2).$implicit;i(),C(" ",t.Taxable?"V":"N"," ")}}function Fn(n,o){if(n&1&&(l(0,"span",78),d(1),a()),n&2){let t=r(2).$implicit,e=r(3);i(),C(" ",t.Taxable?e.config.PrintConfigInvoice.ItemsTable.TaxableLabel:"N"," ")}}function zn(n,o){if(n&1&&(l(0,"div",76),p(1,Bn,2,1,"span",77)(2,Fn,2,1,"span",77),a()),n&2){let t=r(4);i(),c("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel==""||t.config.PrintConfigInvoice.ItemsTable.TaxableLabel=="Taxable"),i(),c("ngIf",t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!=""&&t.config.PrintConfigInvoice.ItemsTable.TaxableLabel!="Taxable")}}function $n(n,o){if(n&1&&(l(0,"span",79),d(1),g(2,"number"),a()),n&2){let t=r().$implicit,e=r(3);i(),rt(" ",M(2,3,t.Quantity,"1.0-4")," ",e.config.PrintConfigInvoice.ItemsTable.UOMVisible?t.Variant.UOMName:""," ",t.UnitQuantity!=1?" x "+t.UnitQuantity:""," ")}}function Un(n,o){if(n&1&&(v(0),l(1,"span",82),d(2),g(3,"number"),a(),b()),n&2){let t=r(3).$implicit;i(2),x(P(3,1,t==null?null:t.UnitPriceOriginal))}}function Qn(n,o){if(n&1&&(v(0),p(1,Un,4,3,"ng-container",18),b()),n&2){let t=r(2).$implicit;i(),c("ngIf",(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))}}function jn(n,o){if(n&1&&(v(0),l(1,"span",80),d(2,"x"),a(),l(3,"span",81),p(4,Qn,2,1,"ng-container",18),d(5),g(6,"number"),a(),b()),n&2){let t=r().$implicit,e=r(3);i(4),c("ngIf",e.config.ModuleSell==null||e.config.ModuleSell.Promotion==null?null:e.config.ModuleSell.Promotion.StrikethroughOriginalPrice),i(),C(" ",P(6,2,t.Price)," ")}}function Zn(n,o){if(n&1&&(v(0),l(1,"i",83),d(2),g(3,"number"),a(),b()),n&2){let t=r().$implicit;i(2),C(" ","-"+P(3,1,t.Discount)+"%"," ")}}function qn(n,o){if(n&1&&(v(0),l(1,"i",84),d(2),g(3,"number"),a(),b()),n&2){let t=r().$implicit;i(2),C(" ","-"+P(3,1,t.DiscountAmount)," ")}}function Gn(n,o){if(n&1&&(l(0,"span"),d(1),g(2,"number"),g(3,"TrailingZero"),a()),n&2){let t=r().$implicit,e=r(3);i(),C(" ",M(3,3,P(2,1,(1-t.Discount/100)*t.Price*t.Quantity*t.UnitQuantity-t.DiscountAmount*t.Quantity),e.config.PrintConfigGeneral.TrailingZero)," ")}}function Wn(n,o){if(n&1&&(l(0,"div",62)(1,"div",22)(2,"div",63)(3,"div"),p(4,Vn,2,1,"ng-container",18),d(5),a(),p(6,Dn,2,1,"ng-container",18)(7,Hn,3,1,"div",64)(8,An,2,1,"ng-container",18),a(),p(9,zn,3,2,"div",65),a(),l(10,"div",66)(11,"div",67)(12,"div",68),p(13,$n,3,6,"span",69)(14,jn,7,4,"ng-container",18)(15,Zn,4,3,"ng-container",18)(16,qn,4,3,"ng-container",18),a()(),l(17,"div",70),p(18,Gn,4,6,"span",18),a()()()),n&2){let t=o.$implicit,e=r(3);i(4),c("ngIf",e.config.ModuleSell.Grid.RowNumberVisible),i(),O(" ",t.Variant.Name," ",t.Variant.Code&&e.config.PrintConfigInvoice.ItemsTable.CodeVisible?" - "+t.Variant.Code:""," "),i(),c("ngIf",t.Serial&&(t.Serial==null?null:t.Serial.length)>0),i(),c("ngIf",t.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),c("ngIf",t.Note),i(),c("ngIf",e.config.PrintConfigInvoice.ItemsTable.TaxableVisible),i(),c("ngClass",V(13,an,(e.config.ModuleSell==null||e.config.ModuleSell.Promotion==null?null:e.config.ModuleSell.Promotion.StrikethroughOriginalPrice)&&(t==null?null:t.UnitPriceOriginal)>(t==null?null:t.Price))),i(3),c("ngIf",e.config.PrintConfigInvoice.ItemsTable.QuantityVisible),i(),c("ngIf",e.amountVisible&&!e.priceVisibleRestriction),i(),c("ngIf",t.Discount!=0&&e.amountVisible),i(),c("ngIf",t.DiscountAmount!=0&&e.amountVisible),i(2),c("ngIf",e.amountVisible&&!e.priceVisibleRestriction)}}function Xn(n,o){if(n&1&&(l(0,"span")(1,"span"),d(2),a()()),n&2){let t=r().$implicit;i(2),C("",t.Label," :")}}function Jn(n,o){if(n&1&&(l(0,"span"),d(1),a()),n&2){let t=r().$implicit;i(),C("",t.CurrencySymbol," ")}}function Kn(n,o){if(n&1&&(l(0,"div",86),g(1,"Filter"),l(2,"div",87),d(3),_(4,Xn,3,1,"span"),a(),l(5,"div",88)(6,"div",89)(7,"div",90),p(8,Jn,2,1,"span",18),a(),l(9,"div",91)(10,"span"),d(11),g(12,"number"),g(13,"TrailingZero"),a()()()()()),n&2){let t=o.$implicit,e=o.index,u=r(4);c("ngClass",e==y(1,7,u.data.AmountSummary,1,"Type").length-1?"pb-2":""),i(2),c("ngClass",e==1?"border-top":""),i(),C(" ",e==0&&t.Label=="Amount"?u.totalItemsLabel+" :":""," "),i(),m(e!=0||t.Label!="Amount"?4:-1),i(),c("ngClass",e==1?"border-top":""),i(3),c("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(3),x(M(13,13,P(12,11,t.Amount),u.config.PrintConfigGeneral.TrailingZero))}}function Yn(n,o){if(n&1&&(l(0,"div",85),p(1,Kn,14,16,"div",29),g(2,"Filter"),a()),n&2){let t=r(3);i(),c("ngForOf",y(2,1,t.data.AmountSummary,1,"Type"))}}function te(n,o){if(n&1&&(l(0,"span"),d(1),g(2,"limitTo"),a()),n&2){let t=r().$implicit,e=r(4);i(),C(" ",e.config.PrintConfigInvoice.DocumentVisibility.PaymentCode==3?"- ***"+y(2,1,t.Code,4,t.Code.length-4):"- "+t.Code," ")}}function ne(n,o){if(n&1&&s(0,"div",13),n&2){let t=r().$implicit;c("innerHTML",t.Note,f)}}function ee(n,o){if(n&1&&(l(0,"span",90),d(1),a()),n&2){let t=r(5);i(),x(t.data.CurrencySymbol)}}function ie(n,o){if(n&1&&(l(0,"div",93)(1,"div",94),d(2),p(3,te,3,5,"span",18),_(4,ne,1,1,"div",13),a(),l(5,"div",95),p(6,ee,2,1,"span",96),l(7,"span",91),d(8),g(9,"TrailingZero"),a()()()),n&2){let t=o.$implicit,e=o.index,u=r(4);c("hidden",t.Amount==0),i(2),C(" ",u.config.PrintConfigInvoice.Footer.PaymentMethodVisible?t.MethodName:u.data.Payments.length!=1?"Payment":"Payment "+(e+1)," "),i(),c("ngIf",t.Code&&u.config.PrintConfigInvoice.DocumentVisibility.PaymentCode!=1),i(),m(!(u.config==null||u.config.PrintConfigInvoice==null||u.config.PrintConfigInvoice.DocumentVisibility==null)&&u.config.PrintConfigInvoice.DocumentVisibility.PaymentNoteVisible&&t.Note?4:-1),i(2),c("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),C(" ",M(9,6,u.change>0?t.PaidAmount:t.Amount,u.config.PrintConfigGeneral.TrailingZero))}}function oe(n,o){if(n&1&&(l(0,"div"),p(1,ie,10,9,"div",92),a()),n&2){let t=r(3);i(),c("ngForOf",t.data.Payments)}}function ae(n,o){if(n&1&&(l(0,"span",90),d(1),a()),n&2){let t=r(4);i(),x(t.currencyChange)}}function le(n,o){if(n&1&&(l(0,"div",97)(1,"div",98),d(2,"Change :"),a(),l(3,"div",95),p(4,ae,2,1,"span",96),l(5,"span",91),d(6),g(7,"TrailingZero"),a()()()),n&2){let t=r(3);i(4),c("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),C(" ",M(7,2,t.change,t.config.PrintConfigGeneral.TrailingZero))}}function ce(n,o){if(n&1&&(l(0,"span",90),d(1),a()),n&2){let t=r(4);i(),x(t.data.CurrencySymbol)}}function re(n,o){if(n&1&&(l(0,"div",97)(1,"div",98),d(2),a(),l(3,"div",95),p(4,ce,2,1,"span",96),l(5,"span",91),d(6),g(7,"TrailingZero"),a()()()),n&2){let t=r(3);i(2),C("",t.remainingLabel,":"),i(2),c("ngIf",t.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(2),x(M(7,3,t.diff,t.config.PrintConfigGeneral.TrailingZero))}}function de(n,o){if(n&1&&(l(0,"span"),d(1),a()),n&2){let t=r().$implicit;i(),C("",t.CurrencySymbol," ")}}function pe(n,o){if(n&1&&(l(0,"div",86)(1,"div",99),d(2),a(),l(3,"div",100)(4,"div",89)(5,"div",90),p(6,de,2,1,"span",18),a(),l(7,"div",91)(8,"span"),d(9),g(10,"number"),g(11,"TrailingZero"),a()()()()()),n&2){let t=o.$implicit,e=o.index,u=r(3);c("ngClass",e==0?"border-top pt-2":""),i(2),C("",t.Label," :"),i(4),c("ngIf",u.config.PrintConfigInvoice.ItemsFooter.CurrencyVisible),i(3),x(M(11,6,P(10,4,t.Amount),u.config.PrintConfigGeneral.TrailingZero))}}function _e(n,o){if(n&1&&(v(0),l(1,"strong",101),d(2),a(),s(3,"span",102),b()),n&2){let t=r(3);i(2),C(" ",t.config.LoyaltyLabel?t.config.LoyaltyLabel:"Loyalty Point"," "),i(),c("innerHTML",t.data.LoyaltyPoint,f)}}function me(n,o){n&1&&(l(0,"h6",103),d(1," Coupon "),a())}function se(n,o){if(n&1&&(l(0,"span",104),d(1),g(2,"limitTo"),a()),n&2){let t=r(3);i(),C(" ",t.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon==3?"***"+y(2,1,t.data.Coupon,3,t.data.Coupon.length-3):t.data.Coupon," ")}}function ge(n,o){n&1&&(l(0,"h6",103),d(1,"ToP"),a())}function Ce(n,o){if(n&1&&s(0,"span",102),n&2){let t=r(4);c("innerHTML",t.data.Due,f)}}function fe(n,o){if(n&1&&(l(0,"span",104),d(1),a()),n&2){let t=r(4);i(),C("- ",t.top," Days")}}function ue(n,o){if(n&1&&(l(0,"div",31),p(1,ge,2,0,"h6",32)(2,Ce,1,1,"span",105)(3,fe,2,1,"span",33),a()),n&2){let t=r(3);i(),c("ngIf",t.data.ToP),i(),c("ngIf",t.data.ToP),i(),c("ngIf",t.data.ToP)}}function xe(n,o){if(n&1&&(l(0,"h6",103),d(1),a()),n&2){let t=r(3);i(),C(" ",t.config.PrintConfigInvoice.DocumentLabel.SalesPerson," ")}}function Pe(n,o){if(n&1&&(l(0,"p"),d(1),a()),n&2){let t=r(3);i(),C(" ",t.data==null?null:t.data.SalesName," ")}}function ve(n,o){n&1&&(l(0,"h6",103),d(1," Note "),a())}function be(n,o){if(n&1&&(s(0,"p",13),g(1,"newlines")),n&2){let t=r(3);c("innerHTML",P(1,1,t.data==null?null:t.data.ExtraNote),f)}}function Me(n,o){n&1&&(l(0,"h6",106),d(1," Note "),a())}function he(n,o){if(n&1&&(s(0,"p",107),g(1,"newlines")),n&2){let t=r(3);c("innerHTML",P(1,1,t.data==null?null:t.data.InvoiceNote),f)}}function ye(n,o){if(n&1&&(l(0,"p",108),d(1),a()),n&2){let t=r(3);i(),C(" Printed : ",t.data==null?null:t.data.PrintDate," ")}}function Oe(n,o){if(n&1&&(l(0,"p",108),d(1),a()),n&2){let t=r(3);i(),C(" Created : ",t.data==null?null:t.data.Created," ")}}function Ie(n,o){if(n&1&&(l(0,"div",40)(1,"p",108),d(2),a()()),n&2){let t=r(3);i(2),C("Trace ID : ",t.data==null?null:t.data.InvoiceID)}}function Se(n,o){if(n&1&&(l(0,"div"),s(1,"div",109)(2,"packing-slip",110),a()),n&2){let t=r(3);i(2),c("data",t.data)("printTemplate",t.printTemplate)("config",t.config)}}function Te(n,o){if(n&1&&(l(0,"div"),p(1,_n,4,3,"div",7),l(2,"div",8),p(3,sn,2,1,"ng-container",9)(4,Cn,1,1,"ng-template",null,0,_t),a(),l(6,"div",8),s(7,"h2",10)(8,"i",11),l(9,"p",12),s(10,"span",13),g(11,"newlines"),s(12,"br"),p(13,fn,1,1,"span",14),s(14,"br")(15,"span",13),g(16,"newlines"),a(),p(17,xn,4,3,"h6",15)(18,Pn,1,1,"h6",16)(19,vn,2,3,"p",17)(20,bn,3,4,"span",18)(21,Mn,3,4,"span",18)(22,hn,1,1,"p",19),a(),_(23,yn,2,3,"h2",20),_(24,On,2,1,"h2",21),p(25,In,3,1,"ng-container",18),_(26,Sn,2,1,"div",22),_(27,wn,2,1),l(28,"div",23),p(29,kn,3,2,"div",24),l(30,"div",25)(31,"div"),d(32),a()()(),p(33,Wn,19,15,"div",26)(34,Yn,3,5,"div",27)(35,oe,2,1,"div",18)(36,le,8,5,"div",28)(37,re,8,6,"div",28)(38,pe,12,9,"div",29),g(39,"Filter"),l(40,"div",30)(41,"div",31),p(42,_e,4,2,"ng-container",18)(43,me,2,0,"h6",32)(44,se,3,5,"span",33),a(),p(45,ue,4,3,"div",34),a(),l(46,"div",35),p(47,xe,2,1,"h6",32)(48,Pe,2,1,"p",18)(49,ve,2,0,"h6",32)(50,be,2,3,"p",14)(51,Me,2,0,"h6",36)(52,he,2,3,"p",37),a(),s(53,"p",13),g(54,"SafeHtml"),l(55,"div",8),p(56,ye,2,1,"p",38),a(),l(57,"div",39),p(58,Oe,2,1,"p",38),a(),_(59,Ie,3,1,"div",40),p(60,Se,3,3,"div",18),a()),n&2){let t=lt(5),e=r(2),u=I(0);h(pt("print_container invoice_mini ",e.printTemplate!=null&&e.printTemplate.PrintLX300?"lx300":""," ",e.printTemplate==null?null:e.printTemplate.CssClass," box mt-5")),i(),c("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.Footer==null?null:e.config.PrintConfigInvoice.Footer.CopyLabelEnabled)&&!(e.printTemplate!=null&&e.printTemplate.PrintLX300)&&(e.data==null?null:e.data.PrintCopyLabel)),i(2),c("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.LogoConfig==null?null:e.config.PrintConfigInvoice.LogoConfig.ReceiptLogoResizedWidth)>0)("ngIfElse",t),i(4),c("innerHTML",e.printTemplate==null?null:e.printTemplate.Title,f),i(),c("innerHTML",e.printTemplate==null?null:e.printTemplate.Field,f),i(2),c("innerHTML",P(11,46,e.printTemplate==null?null:e.printTemplate.Address),f),i(3),c("ngIf",e.config==null||e.config.PrintConfigInvoice==null?null:e.config.PrintConfigInvoice.DocumentVisibility.RegisterCode),i(2),c("innerHTML",P(16,48,e.printTemplate==null?null:e.printTemplate.ContactInfo),f),i(2),c("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Name)),i(),c("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.NationalIDNumber)&&e.config.PrintConfigInvoice.DocumentVisibility.IdentificationVisible),i(),c("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Address)&&e.config.PrintConfigInvoice.DocumentVisibility.CustomerAddressVisible),i(),c("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Phone)&&(u==null?null:u.PhoneCustomerVisibility)!==1&&(e.data.Customer==null?null:e.data.Customer.Phone)!==null),i(),c("ngIf",e.customerVisible&&(e.data.Customer==null?null:e.data.Customer.Mobile)&&(u==null?null:u.PhoneCustomerVisibility)!==1&&(e.data.Customer==null?null:e.data.Customer.Phone)==null&&(e.data.Customer==null?null:e.data.Customer.Mobile)!==null),i(),c("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.CustomerEmailVisible),i(),m(e.data.PaymentState<3?23:-1),i(),m(e.data.Retur&&(!(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.Header==null)&&e.config.PrintConfigInvoice.Header.SalesReturnLabel)?24:-1),i(),c("ngIf",e.data.PaymentState==1),i(),m(e.data.Creator&&e.config.PrintConfigInvoice.Footer.CreatorVisiblePosition!=1?26:-1),i(),m(!(e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null)&&e.config.PrintConfigInvoice.DocumentVisibility.WritePrintOffline?27:-1),i(2),c("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.NumberVisible),i(3),x(e.data.Date),i(),c("ngForOf",e.data.Items),i(),c("ngIf",e.amountVisible&&!e.priceVisibleRestriction),i(),c("ngIf",(e.data.Payments.length>0||!(e.change>0)||e.diff>0)&&e.amountVisible),i(),c("ngIf",e.change>0&&e.amountVisible),i(),c("ngIf",e.diff>0&&!e.hasSurcharge&&e.amountVisible),i(),c("ngForOf",y(39,50,e.data.AmountSummary,2,"Type")),i(4),c("ngIf",e.config.PrintConfigInvoice.Footer.ShowLoyaltyPoint&&e.data.LoyaltyPoint),i(),c("ngIf",e.data.Coupon&&e.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),i(),c("ngIf",e.data.Coupon&&e.config.PrintConfigInvoice.DocumentVisibility.PromotionCoupon!=1),i(),c("ngIf",e.config.PrintConfigInvoice.DocumentVisibility.InvoicePaymentTermsVisible&&e.data.PaymentState<3&&e.data.Payments.length==0),i(2),c("ngIf",e.data.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),c("ngIf",e.data.SalesName&&e.config.PrintConfigInvoice.DocumentVisibility.SalesPersonVisible),i(),c("ngIf",(e.data==null?null:e.data.ExtraNote)&&e.config.PrintConfigInvoice.Footer.ParkNoteVisible),i(),c("ngIf",e.data.ExtraNote&&e.config.PrintConfigInvoice.Footer.ParkNoteVisible),i(),c("ngIf",(e.data==null?null:e.data.InvoiceNote)&&e.config.PrintConfigInvoice.Footer.NoteVisible),i(),c("ngIf",e.data.InvoiceNote&&e.config.PrintConfigInvoice.Footer.NoteVisible),i(),c("innerHTML",P(54,54,e.printTemplate!=null&&e.printTemplate.FooterLeft?e.printTemplate==null?null:e.printTemplate.FooterLeft:""),f),i(3),c("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null?null:e.config.PrintConfigInvoice.DocumentVisibility.CustomerEntryTimeVisible)&&e.data.PrintDate),i(2),c("ngIf",(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null?null:e.config.PrintConfigInvoice.DocumentVisibility.InvoiceCreatedTimeVisible)&&e.data.Created),i(),m(e.isOffline==!1&&(e.data!=null&&e.data.InvoiceID)&&(!(e.config==null||e.config.PrintConfigInvoice==null||e.config.PrintConfigInvoice.DocumentVisibility==null)&&e.config.PrintConfigInvoice.DocumentVisibility.TraceID)?59:-1),i(),c("ngIf",e.config==null||e.config.PrintConfigInvoice==null?null:e.config.PrintConfigInvoice.DocumentVisibility.PrintPackingslipAftersell)}}function Ee(n,o){if(n&1&&s(0,"qr-code",111),n&2){let t=r(3);c("value",t.data.QRContent)("size",220)("margin",3)}}function Re(n,o){if(n&1&&s(0,"ngx-barcode6",112),n&2){let t=r(3);c("bc-value",t.data.QRContent)("bc-height",40)("bc-width",1)("bc-display-value",!1)}}function we(n,o){if(n&1&&(l(0,"div",5),_(1,Ee,1,3,"qr-code",111)(2,Re,1,4,"ngx-barcode6",112),a()),n&2){r();let t=I(4),e=r();i(),m(t==e.qrPrintingTypeEnum.QRCode?1:2)}}function Le(n,o){if(n&1){let t=ot();l(0,"div",113)(1,"button",114),at("click",function(){K(t);let u=r(2);return Y(u.onPrint())}),s(2,"i",115),d(3," Print "),a()()}if(n&2){let t=r(2);h(V(2,ln,!t.data.QRContent))}}function ke(n,o){if(n&1&&(s(0,"link",2),g(1,"StylesheetSafeUrl"),_(2,cn,1,1,"POS-print-mode",3),p(3,Te,61,56,"div",4),Q(4),_(5,we,3,1,"div",5),_(6,Le,4,4,"div",6)),n&2){let t=r();k("href",t.stylesheet!=null&&t.stylesheet.Size8cm?P(1,5,t.stylesheet==null?null:t.stylesheet.Size8cm):null,R),i(2),m(t.receiptParam?2:-1),i(),c("ngIf",t.data),i();let e=j(t.config==null||t.config.PrintConfigInvoice==null||t.config.PrintConfigInvoice.InvoiceQR==null?null:t.config.PrintConfigInvoice.InvoiceQR.MiniPrintingType);i(),m(e!=t.qrPrintingTypeEnum.None?5:-1),i(),m(t.showPrintButton()?6:-1)}}function Ve(n,o){n&1&&(l(0,"div",1)(1,"div",116)(2,"h1"),d(3," Cannot generate print preview because of client-server displaying different / mismatch items in invoice "),a()()())}var It=(e=>(e[e.None=1]="None",e[e.Barcode=2]="Barcode",e[e.QRCode=3]="QRCode",e))(It||{}),yt=class n{constructor(o,t){this.activeRoute=o;this.decimalPipe=t;this.qrPrintingTypeEnum.QRCode}printService=J(W);data;outletInfo;printTemplate;config;emailVisibleRestriction;priceVisibleRestriction;receiptParam;isUnknownError=!1;isOffline=!1;stylesheet;saveLastPrintDate=Z(!1);showPrintButton=Z(!1);invoiceQR=It;paperPrintMode;printModeType;customerVisible;amountVisible;diff;change=0;currencyChange;totalItemsLabel;hasSurcharge;top;remainingLabel;totalItemLength=tt(0);qrPrintingTypeEnum=vt;ngOnInit(){this.initRemainingLabel(),this.generateItemLabel(),this.checkAmountSummary(),this.checkSurcharge(),this.calculatePrintPrice(),this.prepareSalesCommission(),this.initPaperModeConfig(),this.parseTop(),this.initPrintListener()}initPrintListener(){this.saveLastPrintDate()&&window.addEventListener("afterprint",this.handleAfterPrint)}handleAfterPrint=()=>{let o=this.data?.ID;T.IsNotEmpty(o)&&this.printService.updateLastPrintDateTime(o).subscribe()};ngOnDestroy(){this.saveLastPrintDate()&&window.removeEventListener("afterprint",this.handleAfterPrint)}initRemainingLabel(){let o=this.config?this.config.PrintConfigInvoice.Footer.LabelRemaining:"";this.remainingLabel=o||"Remaining"}initPaperModeConfig(){if(this.receiptParam){let o=this.receiptParam;this.paperPrintMode=[{label:"8cm",link:"/print/InvoiceMini",param:o},{label:"A4",link:"/print/Invoice",param:o}]}}parseTop(){this.data&&this.data.ToP&&(this.top=parseInt(this.data.ToP.toFixed(1)))}getJSONQR(){let o,t;return this.data.OutletName!==null&&this.data.Number!=null&&(o={Outlet:this.data.OutletName,Invoice:this.data.Number},t=JSON.stringify(o)),t}calculatePrintPrice(){this.customerVisible=this.config.PrintConfigInvoice.DocumentVisibility.CustomerVisible&&this.data.Customer;let o=this.activeRoute.snapshot.queryParamMap.get("Price");this.amountVisible=o!=="0",this.calculateChange()}calculateChange(){let o=0;this.data.Payments.forEach(e=>{o+=e.PaidAmount});let t=this.data.FinalAmount;this.calculateDiff(),this.change=o-t,this.currencyChange=this.data.CurrencySymbol}calculateDiff(){let o=0;this.data.Payments.forEach(e=>{o+=e.Amount});let t=this.data.FinalAmount;this.diff=t-o,Math.abs(this.diff)<this.config.ModuleSell.ToleranceAmount&&(this.diff=0)}generateItemLabel(){let o=0,t=this.data.Items.length;for(let z of this.data.Items)(this.config?.PrintConfigInvoice?.ItemsTable?.NonInventoryCount||z.Variant.TypeID!=2)&&(o+=z.Quantity);this.totalItemLength.set(t);let e=o>1?"s":"",u=this.decimalPipe.transform(o,"1.0-4").toString(),St=this.config.PrintConfigInvoice?.ItemsFooter?.TotalQuantityVisible;this.totalItemsLabel=`Total (Item${e}: ${t}${St?`, Qty: ${u})`:")"}`}checkSurcharge(){this.hasSurcharge=!1;for(let o of this.data.AmountSummary)o.Label.includes("Surcharge")&&(this.hasSurcharge=!0)}checkAmountSummary(){let o=this.data.AmountSummary.length;this.data.AmountSummary[o-1].Label=="Change"&&(this.change=this.data.AmountSummary[o-1].Amount,this.currencyChange=this.data.AmountSummary[o-1].CurrencySymbol,this.data.AmountSummary.pop(),this.data.AmountSummary.pop())}prepareSalesCommission(){for(let o of this.data.Items)o.SalesID!=null&&o.SalesName==null&&(o.SalesName=this.getSalesName(o.SalesID))}getSalesName(o){let t=this.outletInfo.ListSales.find(e=>e.ID==o);return T.IsNotEmpty(t)?t.Name:""}onPrint(){window.print()}static \u0275fac=function(t){return new(t||n)(U(Ct),U(S))};static \u0275cmp=w({type:n,selectors:[["pos-receipt"]],inputs:{data:"data",outletInfo:"outletInfo",printTemplate:"printTemplate",config:"config",emailVisibleRestriction:"emailVisibleRestriction",priceVisibleRestriction:"priceVisibleRestriction",receiptParam:"receiptParam",isUnknownError:"isUnknownError",isOffline:"isOffline",stylesheet:"stylesheet",saveLastPrintDate:[1,"saveLastPrintDate"],showPrintButton:[1,"showPrintButton"]},standalone:!1,decls:3,vars:2,consts:[["DEFAULTWIDTH",""],[1,"print_container"],["rel","stylesheet"],["paperType","mini",1,"d-print-none",3,"paperPrints"],[3,"class",4,"ngIf"],[1,"d-flex","justify-content-center"],[1,"d-flex","justify-content-center","d-print-none",3,"class"],["class","h5 text-center fw-bold ribbon text-white",4,"ngIf"],[1,"text-center"],[4,"ngIf","ngIfElse"],[1,"m-0","fw-bold",3,"innerHTML"],[1,"d-block",3,"innerHTML"],[1,"mt-1","mb-3"],[3,"innerHTML"],[3,"innerHTML",4,"ngIf"],["class","m-0 pt-2 fw-bold",4,"ngIf"],["class","m-0 pt-2 fw-normal",3,"innerHTML",4,"ngIf"],["class","mb-0",3,"innerHTML",4,"ngIf"],[4,"ngIf"],["class","fst-italic mb-2",3,"innerHTML",4,"ngIf"],[1,"text-center","m-0","p-1",3,"class"],[1,"text-center","m-0","p-1","text-warning"],[1,"row","g-0"],[1,"row","g-0","justify-content-between","py-2"],["class","col fw-bold",4,"ngIf"],[1,"col","text-end"],["class","border-y pt-1",4,"ngFor","ngForOf"],["class","cartAmount pt-2",4,"ngIf"],["class","row g-0 text-end",4,"ngIf"],["class","row g-0 text-end",3,"ngClass",4,"ngFor","ngForOf"],[1,"row","g-0","mt-2"],[1,"col-md-12","text-center"],["class","m-0 fw-bold",4,"ngIf"],["class","pb-3",4,"ngIf"],["class","col-md-12 text-center",4,"ngIf"],[1,"text-center","my-2"],["class","fw-bold",4,"ngIf"],["style","word-break: break-all",3,"innerHTML",4,"ngIf"],["class","m-0",4,"ngIf"],[1,"text-center","mt-3"],[1,"text-center","mt-3","trace-id"],[1,"h5","text-center","fw-bold","ribbon","text-white"],["class","bg-primary ribbon-content receipt py-3",3,"innerHTML",4,"ngIf"],["class","bg-danger void ribbon-content py-3",4,"ngIf"],["class","bg-warning retur ribbon-content py-3",4,"ngIf"],[1,"bg-primary","ribbon-content","receipt","py-3",3,"innerHTML"],[1,"bg-danger","void","ribbon-content","py-3"],[1,"bg-warning","retur","ribbon-content","py-3"],["class","img-fluid border-0",3,"style","src",4,"ngIf"],[1,"img-fluid","border-0",3,"src"],["class","img-fluid border-0",3,"src",4,"ngIf"],[1,"m-0","pt-2","fw-bold"],[1,"m-0","pt-2","fw-normal",3,"innerHTML"],[1,"mb-0",3,"innerHTML"],[1,"fst-italic","mb-2",3,"innerHTML"],[1,"text-center","m-0","p-1"],[1,"text-center","my-3","text-danger"],[1,"fw-bold","fs-4"],[1,"my-1"],["target","_blank","href","https://status.dealpos.com"],[1,"fs-5","text-danger","fw-bold","text-center","mt-1"],[1,"col","fw-bold"],[1,"border-y","pt-1"],[1,"col-11"],["class","fst-italic pt-0 mt-0",4,"ngIf"],["class","col-1 ps-2 text-end",4,"ngIf"],[1,"d-flex","g-0","pb-1",3,"ngClass"],[1,"flex-grow-1","text-end"],[1,"d-flex","align-items-end","justify-content-end","me-5"],["class","small",4,"ngIf"],[1,"col-auto","text-end"],[3,"serials"],[1,"fst-italic","pt-0","mt-0"],[1,"inlineMarginLeft"],["class","fst-italic text-success","style","overflow-wrap: break-word",3,"innerHTML",4,"ngIf"],[1,"fst-italic","text-success",2,"overflow-wrap","break-word",3,"innerHTML"],[1,"col-1","ps-2","text-end"],["class","small fst-italic text-danger",4,"ngIf"],[1,"small","fst-italic","text-danger"],[1,"small"],[1,"small","mx-1"],[1,"small","d-inline-flex","flex-column"],[1,"text-decoration-line-through","text-danger"],[1,"fw-bold","text-danger","me-2","ms-4","small"],[1,"fw-bold","text-danger","me-2","small"],[1,"cartAmount","pt-2"],[1,"row","g-0","text-end",3,"ngClass"],[1,"col-7","fw-bold",3,"ngClass"],[1,"col-5","g-0",3,"ngClass"],[1,"row"],[1,"col-auto"],[1,"col"],["class","row g-0 text-end",3,"hidden",4,"ngFor","ngForOf"],[1,"row","g-0","text-end",3,"hidden"],[1,"col-7","fw-bold","pe-3"],[1,"col-5","row","g-0"],["class","col-auto",4,"ngIf"],[1,"row","g-0","text-end"],[1,"col-7","fw-bold"],[1,"col-7"],[1,"col-5"],[1,"mt-3","mb-1","d-block"],[1,"pb-3",3,"innerHTML"],[1,"m-0","fw-bold"],[1,"pb-3"],["class","pb-3",3,"innerHTML",4,"ngIf"],[1,"fw-bold"],[2,"word-break","break-all",3,"innerHTML"],[1,"m-0"],[2,"border-top-style","dotted"],[3,"data","printTemplate","config"],[3,"value","size","margin"],["bc-element-type","svg",1,"mb-3",3,"bc-value","bc-height","bc-width","bc-display-value"],[1,"d-flex","justify-content-center","d-print-none"],[1,"btn","btn-light",3,"click"],[1,"fa","fa-print"],[1,"print-error-message"]],template:function(t,e){t&1&&(Q(0),_(1,ke,7,8)(2,Ve,4,0,"div",1)),t&2&&(j(e.config==null||e.config.PrintConfigInvoice==null?null:e.config.PrintConfigInvoice.DocumentVisibility),i(),m(e.totalItemLength()==(e.data==null||e.data.Items==null?null:e.data.Items.length)&&e.data?1:2))},dependencies:()=>[mt,st,gt,B,bt,G,q,X,S,ft,H,ut,xt,Pt,A,ht],styles:[".invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}table.plain[_ngcontent-%COMP%]{border-collapse:collapse}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:16px;padding:2px 7px;color:#fff;font-weight:700}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#000;text-shadow:none}table.plain[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px}table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:3px solid black}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%]{margin:0 5px 0 0;padding:0;float:left;display:block}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#fff;display:block;background-color:#d8dfea;border:1px solid #bbb;-webkit-border-radius:3px;border-radius:3px}table.plain[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}table.plain[_ngcontent-%COMP%] div.text[_ngcontent-%COMP%]{padding:2px 0 0}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{display:block;color:#00f;text-decoration:none}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%]:visited{font-weight:700}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin:0;padding:0;display:block}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%]{background-color:#fdf3c6!important}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}table.plain[_ngcontent-%COMP%] th.borderLRB0[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.borderLRB0[_ngcontent-%COMP%]{border-left-width:0px!important;border-right-width:0px!important;border-bottom-width:0px!important;background-color:#fff!important}table.plain[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.plain[_ngcontent-%COMP%] th.numberCenter[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:center}table.plain[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.plain[_ngcontent-%COMP%] td.top[_ngcontent-%COMP%]{vertical-align:top}table.plain[_ngcontent-%COMP%] td.noTopPad[_ngcontent-%COMP%]{padding-top:0}table.plain[_ngcontent-%COMP%] td.small[_ngcontent-%COMP%]{font-size:11px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-width:0px;background-color:#fff}table.plain[_ngcontent-%COMP%] span.serial[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 0 5px 5px;background-color:#fff}table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inlineMarginLeft[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%]{margin:0;padding:0;list-style-type:circle;list-style-position:inside}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 20px 0 0;padding:0;float:left;display:block}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.scroll[_ngcontent-%COMP%]{width:100%;overflow:auto;padding:0 0 2px}table.fixed[_ngcontent-%COMP%]{table-layout:fixed}table.footer_row[_ngcontent-%COMP%]{margin:5px 8px 0 auto}table.footer_row[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px;text-align:right;float:left}table.footer_adjust[_ngcontent-%COMP%]{margin:-10px 18px 0 auto}table.footer_adjust[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_adjust[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_adjust[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px 23px 5px 5px;text-align:right;float:left}table.total-all-grid[_ngcontent-%COMP%]{width:100%!important;border-collapse:collapse;margin-top:10px}table.manufacture[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table.manufacture[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fceca3!important}table.manufacture[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #BBBBBB!important}table.accounting[_ngcontent-%COMP%]{max-width:1000px;border-collapse:collapse}table.accounting[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:1px solid #999;border-bottom:1px solid #999;height:28px;line-height:16px;color:#444;background-color:#fceca3!important}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.accounting[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px;border-bottom:1px solid black}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#00f;text-decoration:none}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.accounting[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.accounting[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.accounting[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.accounting[_ngcontent-%COMP%] th.bordertop[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.bordertop[_ngcontent-%COMP%]{border-top:1px #999 solid}table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-bottom:20px}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(2n){background-color:#fff}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(4n-1){background-color:#f6f6f6}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:1px solid #9e9e9e;color:#000;text-shadow:none}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8;display:table-cell}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(3){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(5){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(6){width:5%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(7){width:10%!important}.listReturn[_ngcontent-%COMP%] a.head[_ngcontent-%COMP%]{padding:10px 0 10px 10px;display:block;width:50%}.listReturn[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:right!important}.listReturn[_ngcontent-%COMP%] table.summary[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-top:20px!important;display:block}table.paidAmount[_ngcontent-%COMP%]{float:right;margin-top:-10px;text-align:right;padding-right:7px}table.paidAmount[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}table.paidAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}table.paidAmount[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 5px}div.zebra[_ngcontent-%COMP%]{display:table;border-collapse:collapse}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:table-cell}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > strong[_ngcontent-%COMP%]{display:block;border:1px solid #525252;background-color:#545454;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#888),color-stop(100%,#545454));background-image:-webkit-linear-gradient(#888,#545454);background-image:-moz-linear-gradient(#888,#545454);background-image:-o-linear-gradient(#888,#545454);background-image:linear-gradient(#888,#545454);-webkit-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);-moz-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);box-shadow:inset 0 2px 0 -1px #fff3;text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:24px;border-bottom:1px solid #333;padding:2px 7px;color:#fff;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;padding:5px 7px;border:solid 1px #d8d8d8;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.number[_ngcontent-%COMP%]{text-align:right}.print_container[_ngcontent-%COMP%] > div.print-error-message[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:100vh;text-align:center}.print_container[_ngcontent-%COMP%] > div.print-error-message[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{color:#dc3545!important;font-weight:500}"]})},Ot=class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=L({type:n});static \u0275inj=E({providers:[W],imports:[D,N,F,Mt,G,q,X]})};export{B as a,F as b,yt as c,Ot as d};
@@ -1 +1 @@
1
- import{a as lt}from"./chunk-CGCAJ5NI.js";import{a as nt}from"./chunk-RM6PV7SW.js";import{a as it}from"./chunk-4VGCD2S7.js";import{a as X,b as Y}from"./chunk-JFS6EFNT.js";import{N as P,n as b}from"./chunk-H7AXZU5M.js";import{a as Z,b as tt,c as et,h as ot}from"./chunk-CPHICIOL.js";import{b as J,c as K}from"./chunk-N4STXFCX.js";import{E as H,a as G,c as U,h as $,o as q}from"./chunk-DHBFOXIN.js";import{a as M}from"./chunk-3DEA4WWC.js";import{Bb as u,Bc as j,Ca as T,Db as p,Dc as R,Eb as N,F as y,Gb as E,Hb as A,Ib as d,Jb as i,Kb as r,Kc as C,Lb as m,Mc as h,Ub as I,Xb as g,Yc as Q,Za as l,Zb as a,eb as c,ga as S,ib as _,mc as f,md as W,nc as F,oc as k,ra as w,rc as L,sc as V,tc as B,va as x,wa as v,zd as z}from"./chunk-2ERDZXCS.js";var pt=n=>({selected:n});function dt(n,t){if(n&1){let e=I();i(0,"div",1)(1,"div",4)(2,"span",5),m(3,"i",6),r(),i(4,"input",7),B("ngModelChange",function(s){x(e);let O=a();return V(O.outletQuery,s)||(O.outletQuery=s),v(s)}),r()()()}if(n&2){let e=a();l(4),L("ngModel",e.outletQuery)}}function mt(n,t){if(n&1){let e=I();i(0,"div",9),g("click",function(){x(e);let s=a().$implicit,O=a();return v(O.selectOutlet(s))}),i(1,"div",10),m(2,"i",11),i(3,"h5"),f(4),C(5,"limitTo"),r(),i(6,"div",12),f(7," VACANT "),r()()()}if(n&2){let e=a().$implicit,o=a();d("ngClass",R(5,pt,e.ID===o.id)),l(4),F(h(5,2,e.Name,15))}}function gt(n,t){if(n&1&&u(0,mt,8,7,"div",8),n&2){let e=t.$implicit,o=a();p(e.ID!==o.sourceOutletID?0:-1)}}var D=class n{constructor(t,e){this.dialogRef=t;this.data=e;this.config.title=e.dialogTitle,this.config.customWidth="600px",this.config.hideScrollbar=!0,this.config.hideFooter=!0,this.id=e.outletID,this.sourceOutletID=e.sourceOutletID,this.config.hideClose=M.IsEmpty(this.id)&&e.disableClose}outletQuery="";config=new J;name="";id="";sourceOutletID="";outlet;selectOutlet(t){this.outlet=t,this.name=t.Name,this.id=t.ID,this.saveOnSelectOutlet()}saveOnSelectOutlet(){this.outlet&&this.dialogRef.close({Name:this.name,ID:Object.prototype.hasOwnProperty.call(this.outlet,"EntityID")?this.outlet.EntityID:this.outlet.ID})}static \u0275fac=function(e){return new(e||n)(c(Z),c(tt))};static \u0275cmp=_({type:n,selectors:[["POS-modal-select-outlet"]],decls:8,vars:5,consts:[[3,"onClose","config"],[1,"p-0","search-container"],[1,"container","custom-scroll","mt-8"],[1,"row"],[1,"input-group","mb-3"],[1,"input-group-text","txtFilter","rounded-start-1","rounded-end-0"],["aria-hidden","true",1,"fa","fa-magnifying-glass"],["type","text","placeholder","Filter by Name","aria-label","Search",1,"txtFilter","form-control","border-start-0","rounded-1","rounded-start-0",3,"ngModelChange","ngModel"],[1,"col-sm-12","col-md-6","col-lg-4","pointer",2,"padding","6px",3,"ngClass"],[1,"col-sm-12","col-md-6","col-lg-4","pointer",2,"padding","6px",3,"click","ngClass"],[1,"outlet-option"],[1,"fa-solid","fa-shop"],[1,"text-center","mt-6",2,"font-size","1.25rem"]],template:function(e,o){e&1&&(i(0,"modal-material",0),g("onClose",function(){return o.dialogRef.close()}),i(1,"content"),u(2,dt,5,1,"div",1),i(3,"div",2)(4,"div",3),E(5,gt,1,1,null,null,N),C(7,"filterByName"),r()()()()),e&2&&(d("config",o.config),l(2),p(o.data&&o.data.outlets&&o.data.outlets.length>6?2:-1),l(3),A(h(7,2,o.data.outlets,o.outletQuery)))},dependencies:[z,W,K,H,U,$,q,P,lt,b],styles:[".search-container[_ngcontent-%COMP%]{transition:all .3s ease;width:97%}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{position:relative;transition:all .3s ease;height:2.3rem}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover, .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within{box-shadow:0 0 0 2px #89b03e4d,0 0 8px 4px #89b03e33;border-radius:4px}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .txtFilter.form-control[_ngcontent-%COMP%]{transition:all .3s ease;border-left:none!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .txtFilter.form-control[_ngcontent-%COMP%]:focus{box-shadow:none!important;border-color:#ced4da!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{transition:all .3s ease;background-color:#fff;border-right:none!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover .input-group-text[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within .input-group-text[_ngcontent-%COMP%]{background-color:#89b03e1a;border-color:#84cc16!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .fa-magnifying-glass[_ngcontent-%COMP%]{transition:all .3s ease}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover .fa-magnifying-glass[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within .fa-magnifying-glass[_ngcontent-%COMP%]{color:#84cc16!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within{box-shadow:0 0 0 2px #89b03e66,0 0 12px 6px #89b03e40!important}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#89b03e;border-radius:3px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#7a9e37}.container[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;max-height:260px;min-height:150px}.row[_ngcontent-%COMP%]{row-gap:20px}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]{height:110px;border:1px solid #B1AAAA;border-radius:5px;padding:0;font-size:14px;position:relative}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:absolute;top:8px;left:10px;color:#fff}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{border-radius:4px;color:#fff;background:#b1aaaa;overflow:hidden;height:30px;width:100%;display:flex;align-items:center;padding-left:38px}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]:hover, .row[_ngcontent-%COMP%] .outlet-option.selected[_ngcontent-%COMP%]{background:#ffffe1;border:1px solid #89b03e}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]:hover > h5[_ngcontent-%COMP%], .row[_ngcontent-%COMP%] .outlet-option.selected[_ngcontent-%COMP%] > h5[_ngcontent-%COMP%]{background:#89b03e}"]})};function ft(n,t){n&1&&m(0,"i",1)}var rt=class n{constructor(t){this.matDialog=t}sf=w(it);_isOpenAfterLoad;hideLocationIcon=!1;dialogTitle="Choose an Outlet";limitOutletText=25;sourceOutletID="";set isOpenAfterLoad(t){t!==void 0&&(this._isOpenAfterLoad=t,this._isOpenAfterLoad&&this._outlets?.length>1&&this.openModalSelectOutlet())}disableCloseDialog=Q(!1);_outlets;set outlets(t){if(t)if(this._outlets=t,this._outlets.length==1){let e=this._outlets[0];this.assignOutlet(e.Name,Object.prototype.hasOwnProperty.call(e,"EntityID")?e.EntityID:e.ID)}else this._isOpenAfterLoad&&this.openModalSelectOutlet()}onCloseDialog=new T;outlet={ID:"",Name:"Choose an Outlet"};disabled=!1;onChange=t=>{};onTouched=()=>{};writeValue(t){this.outlet=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}openModalSelectOutlet(){this.disabled||(this.onTouched(),this.matDialog.getDialogById("select-outlet-modal")||this.matDialog.open(D,{id:"select-outlet-modal",disableClose:this.disableCloseDialog&&M.IsEmpty(this.outlet.ID),data:{outlets:this._outlets,outletID:this.outlet.ID,dialogTitle:this.dialogTitle,sourceOutletID:this.sourceOutletID,disableClose:this.disableCloseDialog()}}).afterClosed().pipe(y(t=>t),nt("modal select outlet"),S(()=>this.onCloseDialog.emit())).subscribe(t=>{this.assignOutlet(t.Name,t.ID),this.sf.searchFilterNativeEl?.focus()}))}assignOutlet(t,e){this.outlet={ID:e,Name:t},this.onChange(this.outlet)}static \u0275fac=function(e){return new(e||n)(c(et))};static \u0275cmp=_({type:n,selectors:[["POS-select-outlet-form"]],inputs:{hideLocationIcon:"hideLocationIcon",dialogTitle:"dialogTitle",limitOutletText:"limitOutletText",sourceOutletID:"sourceOutletID",isOpenAfterLoad:"isOpenAfterLoad",disableCloseDialog:[1,"disableCloseDialog"],outlets:"outlets"},outputs:{onCloseDialog:"onCloseDialog"},features:[j([{provide:G,multi:!0,useExisting:n}])],decls:5,vars:6,consts:[["matTooltipPosition","above",1,"outlet-container","d-flex","pointer",3,"click","matTooltip"],[1,"fa-solid","fa-location-dot"],[1,"mb-0"]],template:function(e,o){e&1&&(i(0,"div",0),g("click",function(){return o.openModalSelectOutlet()}),u(1,ft,1,0,"i",1),i(2,"h3",2),f(3),C(4,"limitTo"),r()()),e&2&&(d("matTooltip",o.outlet==null?null:o.outlet.Name),l(),p(o.hideLocationIcon?-1:1),l(2),k(" ",h(4,3,!(o.outlet==null||o.outlet.Name==null)&&o.outlet.Name.length?o.outlet==null?null:o.outlet.Name:"Choose an Outlet",o.limitOutletText)," "))},dependencies:[ot,P,Y,X,b],styles:[".outlet-container[_ngcontent-%COMP%] .fa-location-dot[_ngcontent-%COMP%]{color:#fb404b!important;font-size:32px;width:32px}"]})};export{rt as a};
1
+ import{a as lt}from"./chunk-CGCAJ5NI.js";import{a as nt}from"./chunk-RM6PV7SW.js";import{a as it}from"./chunk-4VGCD2S7.js";import{a as X,b as Y}from"./chunk-JFS6EFNT.js";import{N as P,n as b}from"./chunk-WZVFFBZM.js";import{a as Z,b as tt,c as et,h as ot}from"./chunk-CPHICIOL.js";import{b as J,c as K}from"./chunk-N4STXFCX.js";import{E as H,a as G,c as U,h as $,o as q}from"./chunk-DHBFOXIN.js";import{a as M}from"./chunk-3DEA4WWC.js";import{Bb as u,Bc as j,Ca as T,Db as p,Dc as R,Eb as N,F as y,Gb as E,Hb as A,Ib as d,Jb as i,Kb as r,Kc as C,Lb as m,Mc as h,Ub as I,Xb as g,Yc as Q,Za as l,Zb as a,eb as c,ga as S,ib as _,mc as f,md as W,nc as F,oc as k,ra as w,rc as L,sc as V,tc as B,va as x,wa as v,zd as z}from"./chunk-2ERDZXCS.js";var pt=n=>({selected:n});function dt(n,t){if(n&1){let e=I();i(0,"div",1)(1,"div",4)(2,"span",5),m(3,"i",6),r(),i(4,"input",7),B("ngModelChange",function(s){x(e);let O=a();return V(O.outletQuery,s)||(O.outletQuery=s),v(s)}),r()()()}if(n&2){let e=a();l(4),L("ngModel",e.outletQuery)}}function mt(n,t){if(n&1){let e=I();i(0,"div",9),g("click",function(){x(e);let s=a().$implicit,O=a();return v(O.selectOutlet(s))}),i(1,"div",10),m(2,"i",11),i(3,"h5"),f(4),C(5,"limitTo"),r(),i(6,"div",12),f(7," VACANT "),r()()()}if(n&2){let e=a().$implicit,o=a();d("ngClass",R(5,pt,e.ID===o.id)),l(4),F(h(5,2,e.Name,15))}}function gt(n,t){if(n&1&&u(0,mt,8,7,"div",8),n&2){let e=t.$implicit,o=a();p(e.ID!==o.sourceOutletID?0:-1)}}var D=class n{constructor(t,e){this.dialogRef=t;this.data=e;this.config.title=e.dialogTitle,this.config.customWidth="600px",this.config.hideScrollbar=!0,this.config.hideFooter=!0,this.id=e.outletID,this.sourceOutletID=e.sourceOutletID,this.config.hideClose=M.IsEmpty(this.id)&&e.disableClose}outletQuery="";config=new J;name="";id="";sourceOutletID="";outlet;selectOutlet(t){this.outlet=t,this.name=t.Name,this.id=t.ID,this.saveOnSelectOutlet()}saveOnSelectOutlet(){this.outlet&&this.dialogRef.close({Name:this.name,ID:Object.prototype.hasOwnProperty.call(this.outlet,"EntityID")?this.outlet.EntityID:this.outlet.ID})}static \u0275fac=function(e){return new(e||n)(c(Z),c(tt))};static \u0275cmp=_({type:n,selectors:[["POS-modal-select-outlet"]],decls:8,vars:5,consts:[[3,"onClose","config"],[1,"p-0","search-container"],[1,"container","custom-scroll","mt-8"],[1,"row"],[1,"input-group","mb-3"],[1,"input-group-text","txtFilter","rounded-start-1","rounded-end-0"],["aria-hidden","true",1,"fa","fa-magnifying-glass"],["type","text","placeholder","Filter by Name","aria-label","Search",1,"txtFilter","form-control","border-start-0","rounded-1","rounded-start-0",3,"ngModelChange","ngModel"],[1,"col-sm-12","col-md-6","col-lg-4","pointer",2,"padding","6px",3,"ngClass"],[1,"col-sm-12","col-md-6","col-lg-4","pointer",2,"padding","6px",3,"click","ngClass"],[1,"outlet-option"],[1,"fa-solid","fa-shop"],[1,"text-center","mt-6",2,"font-size","1.25rem"]],template:function(e,o){e&1&&(i(0,"modal-material",0),g("onClose",function(){return o.dialogRef.close()}),i(1,"content"),u(2,dt,5,1,"div",1),i(3,"div",2)(4,"div",3),E(5,gt,1,1,null,null,N),C(7,"filterByName"),r()()()()),e&2&&(d("config",o.config),l(2),p(o.data&&o.data.outlets&&o.data.outlets.length>6?2:-1),l(3),A(h(7,2,o.data.outlets,o.outletQuery)))},dependencies:[z,W,K,H,U,$,q,P,lt,b],styles:[".search-container[_ngcontent-%COMP%]{transition:all .3s ease;width:97%}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{position:relative;transition:all .3s ease;height:2.3rem}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover, .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within{box-shadow:0 0 0 2px #89b03e4d,0 0 8px 4px #89b03e33;border-radius:4px}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .txtFilter.form-control[_ngcontent-%COMP%]{transition:all .3s ease;border-left:none!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .txtFilter.form-control[_ngcontent-%COMP%]:focus{box-shadow:none!important;border-color:#ced4da!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{transition:all .3s ease;background-color:#fff;border-right:none!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover .input-group-text[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within .input-group-text[_ngcontent-%COMP%]{background-color:#89b03e1a;border-color:#84cc16!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%] .fa-magnifying-glass[_ngcontent-%COMP%]{transition:all .3s ease}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:hover .fa-magnifying-glass[_ngcontent-%COMP%], .search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within .fa-magnifying-glass[_ngcontent-%COMP%]{color:#84cc16!important}.search-container[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]:focus-within{box-shadow:0 0 0 2px #89b03e66,0 0 12px 6px #89b03e40!important}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#89b03e;border-radius:3px}.custom-scroll[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#7a9e37}.container[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;max-height:260px;min-height:150px}.row[_ngcontent-%COMP%]{row-gap:20px}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]{height:110px;border:1px solid #B1AAAA;border-radius:5px;padding:0;font-size:14px;position:relative}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{position:absolute;top:8px;left:10px;color:#fff}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{border-radius:4px;color:#fff;background:#b1aaaa;overflow:hidden;height:30px;width:100%;display:flex;align-items:center;padding-left:38px}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]:hover, .row[_ngcontent-%COMP%] .outlet-option.selected[_ngcontent-%COMP%]{background:#ffffe1;border:1px solid #89b03e}.row[_ngcontent-%COMP%] .outlet-option[_ngcontent-%COMP%]:hover > h5[_ngcontent-%COMP%], .row[_ngcontent-%COMP%] .outlet-option.selected[_ngcontent-%COMP%] > h5[_ngcontent-%COMP%]{background:#89b03e}"]})};function ft(n,t){n&1&&m(0,"i",1)}var rt=class n{constructor(t){this.matDialog=t}sf=w(it);_isOpenAfterLoad;hideLocationIcon=!1;dialogTitle="Choose an Outlet";limitOutletText=25;sourceOutletID="";set isOpenAfterLoad(t){t!==void 0&&(this._isOpenAfterLoad=t,this._isOpenAfterLoad&&this._outlets?.length>1&&this.openModalSelectOutlet())}disableCloseDialog=Q(!1);_outlets;set outlets(t){if(t)if(this._outlets=t,this._outlets.length==1){let e=this._outlets[0];this.assignOutlet(e.Name,Object.prototype.hasOwnProperty.call(e,"EntityID")?e.EntityID:e.ID)}else this._isOpenAfterLoad&&this.openModalSelectOutlet()}onCloseDialog=new T;outlet={ID:"",Name:"Choose an Outlet"};disabled=!1;onChange=t=>{};onTouched=()=>{};writeValue(t){this.outlet=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}openModalSelectOutlet(){this.disabled||(this.onTouched(),this.matDialog.getDialogById("select-outlet-modal")||this.matDialog.open(D,{id:"select-outlet-modal",disableClose:this.disableCloseDialog&&M.IsEmpty(this.outlet.ID),data:{outlets:this._outlets,outletID:this.outlet.ID,dialogTitle:this.dialogTitle,sourceOutletID:this.sourceOutletID,disableClose:this.disableCloseDialog()}}).afterClosed().pipe(y(t=>t),nt("modal select outlet"),S(()=>this.onCloseDialog.emit())).subscribe(t=>{this.assignOutlet(t.Name,t.ID),this.sf.searchFilterNativeEl?.focus()}))}assignOutlet(t,e){this.outlet={ID:e,Name:t},this.onChange(this.outlet)}static \u0275fac=function(e){return new(e||n)(c(et))};static \u0275cmp=_({type:n,selectors:[["POS-select-outlet-form"]],inputs:{hideLocationIcon:"hideLocationIcon",dialogTitle:"dialogTitle",limitOutletText:"limitOutletText",sourceOutletID:"sourceOutletID",isOpenAfterLoad:"isOpenAfterLoad",disableCloseDialog:[1,"disableCloseDialog"],outlets:"outlets"},outputs:{onCloseDialog:"onCloseDialog"},features:[j([{provide:G,multi:!0,useExisting:n}])],decls:5,vars:6,consts:[["matTooltipPosition","above",1,"outlet-container","d-flex","pointer",3,"click","matTooltip"],[1,"fa-solid","fa-location-dot"],[1,"mb-0"]],template:function(e,o){e&1&&(i(0,"div",0),g("click",function(){return o.openModalSelectOutlet()}),u(1,ft,1,0,"i",1),i(2,"h3",2),f(3),C(4,"limitTo"),r()()),e&2&&(d("matTooltip",o.outlet==null?null:o.outlet.Name),l(),p(o.hideLocationIcon?-1:1),l(2),k(" ",h(4,3,!(o.outlet==null||o.outlet.Name==null)&&o.outlet.Name.length?o.outlet==null?null:o.outlet.Name:"Choose an Outlet",o.limitOutletText)," "))},dependencies:[ot,P,Y,X,b],styles:[".outlet-container[_ngcontent-%COMP%] .fa-location-dot[_ngcontent-%COMP%]{color:#fb404b!important;font-size:32px;width:32px}"]})};export{rt as a};
@@ -1 +1 @@
1
- import{a as c}from"./chunk-3DEA4WWC.js";import{a as t}from"./chunk-K4ZEAE42.js";import{na as i}from"./chunk-2ERDZXCS.js";import{a}from"./chunk-SNAKHGZS.js";var n=class o{constructor(){}inititalizeIntercom(){let e=this.getFromLocalStorage();e?.Enabled&&window.Intercom("boot",{app_id:t.intercom.appId,name:e.Name,email:e.Email,created_at:e.Created,user_hash:e.Hash})}shutdown(){this.getFromLocalStorage()?.Enabled&&(window.Intercom("shutdown"),this.clearStorage())}clearStorage(){localStorage.removeItem("Intercom")}updateLocalStorage(e){localStorage.setItem("Intercom",JSON.stringify(e))}getFromLocalStorage(){let e=localStorage.getItem("Intercom");return JSON.parse(e)}hideLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(e.hide_default_launcher=!0,window.Intercom("update",a({app_id:t.intercom.appId},e)),this.updateLocalStorage(e))}showLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(e.hide_default_launcher=!1,window.Intercom("update",a({app_id:t.intercom.appId},e)),this.updateLocalStorage(e))}isHideLauncher(){let e=this.getFromLocalStorage();return c.IsEmpty(e?.hide_default_launcher)?!1:e?.hide_default_launcher}static \u0275fac=function(r){return new(r||o)};static \u0275prov=i({token:o,factory:o.\u0275fac,providedIn:"root"})};export{n as a};
1
+ import{a as c}from"./chunk-3DEA4WWC.js";import{a as t}from"./chunk-FMYD2SS5.js";import{na as i}from"./chunk-2ERDZXCS.js";import{a}from"./chunk-SNAKHGZS.js";var n=class o{constructor(){}inititalizeIntercom(){let e=this.getFromLocalStorage();e?.Enabled&&window.Intercom("boot",{app_id:t.intercom.appId,name:e.Name,email:e.Email,created_at:e.Created,user_hash:e.Hash})}shutdown(){this.getFromLocalStorage()?.Enabled&&(window.Intercom("shutdown"),this.clearStorage())}clearStorage(){localStorage.removeItem("Intercom")}updateLocalStorage(e){localStorage.setItem("Intercom",JSON.stringify(e))}getFromLocalStorage(){let e=localStorage.getItem("Intercom");return JSON.parse(e)}hideLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(e.hide_default_launcher=!0,window.Intercom("update",a({app_id:t.intercom.appId},e)),this.updateLocalStorage(e))}showLauncher(){let e=this.getFromLocalStorage();e?.Enabled&&(e.hide_default_launcher=!1,window.Intercom("update",a({app_id:t.intercom.appId},e)),this.updateLocalStorage(e))}isHideLauncher(){let e=this.getFromLocalStorage();return c.IsEmpty(e?.hide_default_launcher)?!1:e?.hide_default_launcher}static \u0275fac=function(r){return new(r||o)};static \u0275prov=i({token:o,factory:o.\u0275fac,providedIn:"root"})};export{n as a};
@@ -1 +1 @@
1
- import{c as b}from"./chunk-PQRU7ZVS.js";import{O as s}from"./chunk-H7AXZU5M.js";import{q as D}from"./chunk-2WBWJI4D.js";import{na as y,qa as c,u as l}from"./chunk-2ERDZXCS.js";var p=class{_EntityID;_ID;_Note;_Number;_VariantID;_Quantity;_ExpiryDate;constructor(t){t&&(this.EntityID=t.EntityID,this.ID=t.ID,this.Note=t.Note,this.Number=t.Number,this.VariantID=t.VariantID,this.Quantity=t.Quantity,this.ExpiryDate=t.ExpiryDate)}get Quantity(){return this._Quantity}set Quantity(t){this._Quantity=t}get EntityID(){return this._EntityID}get ID(){return this._ID}get Note(){return this._Note}get Number(){return this._Number}get VariantID(){return this._VariantID}set EntityID(t){this._EntityID=t}set ID(t){this._ID=t}set Note(t){this._Note=t}set Number(t){this._Number=t}set VariantID(t){this._VariantID=t}get ExpiryDate(){return this._ExpiryDate}set ExpiryDate(t){this._ExpiryDate=t}};var g=class o{constructor(t,i){this.httpService=t;this.localData=i}findVariantByID(t,i,n=!0){return new Promise((a,e)=>{this.localData.isConfigFromServer().subscribe(u=>{u?this.httpService.get(s.GetVariantByID,[{key:"ID",value:t},{key:"EntityID",value:i},{key:"Promotion",value:n}]).subscribe({next:r=>{a(r)},error:r=>{e(r)}}):this.localData.findVariantById(t,i).subscribe({next:r=>{a(r)},error:r=>{e(r)}})})})}findVariantByCode(t,i,n=!1){return new Promise((a,e)=>{this.localData.isProductFromServer().subscribe(u=>{u?this.httpService.get(s.GetVariantByCode,[{key:"Code",value:t},{key:"EntityID",value:i},{key:"BarcodeSerial",value:n},{key:"Promotion",value:!0}]).subscribe({next:r=>{a(r)},error:r=>{e(r)}}):this.localData.findVariantByCode(t,i).subscribe({next:r=>{a(r)},error:r=>{e(r)}})})})}getVariantSerial(t,i){return this.httpService.post(s.GetVariantSerial,{entityID:t,variantID:i}).pipe(l(n=>n.map(e=>new p(e))))}getSerialByVarianIds(t,i){return this.httpService.post(s.GetVariantSerialByListVariantID,{EntityID:t,ListVariantID:i})}findVariantBySerial(t,i){return this.httpService.get(s.GetVariantBySerial,[{key:"Serial",value:t},{key:"EntityID",value:i}])}getStockByID(t,i){return new Promise((n,a)=>{this.httpService.get(s.GetVariantStockByID,[{key:"ID",value:t},{key:"EntityID",value:i}]).subscribe({next:e=>n(e),error:e=>a(e)})})}static \u0275fac=function(i){return new(i||o)(c(D),c(b))};static \u0275prov=y({token:o,factory:o.\u0275fac,providedIn:"root"})};export{g as a};
1
+ import{c as b}from"./chunk-YWAAVL5W.js";import{O as s}from"./chunk-WZVFFBZM.js";import{q as D}from"./chunk-2WBWJI4D.js";import{na as y,qa as c,u as l}from"./chunk-2ERDZXCS.js";var p=class{_EntityID;_ID;_Note;_Number;_VariantID;_Quantity;_ExpiryDate;constructor(t){t&&(this.EntityID=t.EntityID,this.ID=t.ID,this.Note=t.Note,this.Number=t.Number,this.VariantID=t.VariantID,this.Quantity=t.Quantity,this.ExpiryDate=t.ExpiryDate)}get Quantity(){return this._Quantity}set Quantity(t){this._Quantity=t}get EntityID(){return this._EntityID}get ID(){return this._ID}get Note(){return this._Note}get Number(){return this._Number}get VariantID(){return this._VariantID}set EntityID(t){this._EntityID=t}set ID(t){this._ID=t}set Note(t){this._Note=t}set Number(t){this._Number=t}set VariantID(t){this._VariantID=t}get ExpiryDate(){return this._ExpiryDate}set ExpiryDate(t){this._ExpiryDate=t}};var g=class o{constructor(t,i){this.httpService=t;this.localData=i}findVariantByID(t,i,n=!0){return new Promise((a,e)=>{this.localData.isConfigFromServer().subscribe(u=>{u?this.httpService.get(s.GetVariantByID,[{key:"ID",value:t},{key:"EntityID",value:i},{key:"Promotion",value:n}]).subscribe({next:r=>{a(r)},error:r=>{e(r)}}):this.localData.findVariantById(t,i).subscribe({next:r=>{a(r)},error:r=>{e(r)}})})})}findVariantByCode(t,i,n=!1){return new Promise((a,e)=>{this.localData.isProductFromServer().subscribe(u=>{u?this.httpService.get(s.GetVariantByCode,[{key:"Code",value:t},{key:"EntityID",value:i},{key:"BarcodeSerial",value:n},{key:"Promotion",value:!0}]).subscribe({next:r=>{a(r)},error:r=>{e(r)}}):this.localData.findVariantByCode(t,i).subscribe({next:r=>{a(r)},error:r=>{e(r)}})})})}getVariantSerial(t,i){return this.httpService.post(s.GetVariantSerial,{entityID:t,variantID:i}).pipe(l(n=>n.map(e=>new p(e))))}getSerialByVarianIds(t,i){return this.httpService.post(s.GetVariantSerialByListVariantID,{EntityID:t,ListVariantID:i})}findVariantBySerial(t,i){return this.httpService.get(s.GetVariantBySerial,[{key:"Serial",value:t},{key:"EntityID",value:i}])}getStockByID(t,i){return new Promise((n,a)=>{this.httpService.get(s.GetVariantStockByID,[{key:"ID",value:t},{key:"EntityID",value:i}]).subscribe({next:e=>n(e),error:e=>a(e)})})}static \u0275fac=function(i){return new(i||o)(c(D),c(b))};static \u0275prov=y({token:o,factory:o.\u0275fac,providedIn:"root"})};export{g as a};