dealpos 25.42.2 → 25.42.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/browser/{chunk-JU5FQANB.js → chunk-2UQLDUAC.js} +1 -1
  2. package/browser/{chunk-W7R2NCKA.js → chunk-2X5ASLFQ.js} +2 -2
  3. package/browser/{chunk-CKSMLIVU.js → chunk-2ZZ6LRSK.js} +4 -4
  4. package/browser/chunk-3TPCIQTX.js +1 -0
  5. package/browser/{chunk-QCEQZT7E.js → chunk-3VZD4NHF.js} +1 -1
  6. package/browser/{chunk-IJ3Y6CA4.js → chunk-426IRMLK.js} +1 -1
  7. package/browser/{chunk-4WW3BBDP.js → chunk-4QIOM7LI.js} +1 -1
  8. package/browser/{chunk-4WYJGX5K.js → chunk-4QUBIODV.js} +1 -1
  9. package/browser/{chunk-SHMXCJ6Q.js → chunk-56IONBTZ.js} +1 -1
  10. package/browser/{chunk-DKPNAGIM.js → chunk-56K6E74R.js} +1 -1
  11. package/browser/{chunk-7R3X2A2H.js → chunk-5OTEU5ZX.js} +1 -1
  12. package/browser/{chunk-BVVYVR6R.js → chunk-6NX4GWBD.js} +1 -1
  13. package/browser/{chunk-HQQWO76P.js → chunk-6PPRM5TJ.js} +1 -1
  14. package/browser/{chunk-A3CWPPXF.js → chunk-6SQ55MY2.js} +1 -1
  15. package/browser/{chunk-HA6VJJLI.js → chunk-7HOWFXKG.js} +1 -1
  16. package/browser/{chunk-SV4HJFAL.js → chunk-7O5TK73M.js} +1 -1
  17. package/browser/chunk-7PMDXUYJ.js +1 -0
  18. package/browser/{chunk-FKYUI33J.js → chunk-7SJSO64L.js} +1 -1
  19. package/browser/{chunk-DV4MQXAE.js → chunk-7WT2CL3Y.js} +1 -1
  20. package/browser/{chunk-ZSE5MOHQ.js → chunk-AAXRMRTM.js} +1 -1
  21. package/browser/{chunk-XBMOSDDE.js → chunk-AUOW2T4F.js} +1 -1
  22. package/browser/{chunk-EHV62EGB.js → chunk-B3EZA6CX.js} +12 -12
  23. package/browser/{chunk-7X35YY3T.js → chunk-B6L52L6A.js} +1 -1
  24. package/browser/chunk-BBGWXLHJ.js +1 -0
  25. package/browser/chunk-BKCZEGZR.js +14 -0
  26. package/browser/{chunk-QJ4LGJCR.js → chunk-BUPX3XPT.js} +1 -1
  27. package/browser/{chunk-P6LA3P5N.js → chunk-BW5D7NMN.js} +1 -1
  28. package/browser/chunk-BXQFETBZ.js +1 -0
  29. package/browser/chunk-CEKWDJF4.js +1 -0
  30. package/browser/{chunk-XGGQUHUR.js → chunk-CHETA67M.js} +1 -1
  31. package/browser/{chunk-VSF6PYZW.js → chunk-CKNQ2YZ5.js} +1 -1
  32. package/browser/{chunk-TQZQYUFG.js → chunk-CMHBQ7I6.js} +1 -1
  33. package/browser/{chunk-5BZEOCFN.js → chunk-CVL2DR7E.js} +1 -1
  34. package/browser/{chunk-QFO3KUMD.js → chunk-D5YUOO4X.js} +1 -1
  35. package/browser/{chunk-K7ON3WKW.js → chunk-D7S3W7TY.js} +1 -1
  36. package/browser/{chunk-GPP3J3W4.js → chunk-DBERRJC6.js} +1 -1
  37. package/browser/{chunk-4ODUHZAT.js → chunk-DDILJVFU.js} +1 -1
  38. package/browser/{chunk-VD4QQDNI.js → chunk-DKQHZLAC.js} +1 -1
  39. package/browser/{chunk-ZFXZABWG.js → chunk-DZM2KQQZ.js} +1 -1
  40. package/browser/chunk-E4DPE3J5.js +1 -0
  41. package/browser/{chunk-2CU7XQYN.js → chunk-EG4UO6IY.js} +1 -1
  42. package/browser/{chunk-NOQM2VPB.js → chunk-ELIDPKL7.js} +1 -1
  43. package/browser/{chunk-PDKNFOY7.js → chunk-EMW2WRXZ.js} +1 -1
  44. package/browser/{chunk-6A45AGTK.js → chunk-FCUQZ5CM.js} +1 -1
  45. package/browser/{chunk-Y6VMIGXC.js → chunk-FKLSH2TV.js} +1 -1
  46. package/browser/{chunk-47W54HJY.js → chunk-FUV2BXRH.js} +1 -1
  47. package/browser/{chunk-SEXQYEXV.js → chunk-FVG3VTH5.js} +1 -1
  48. package/browser/{chunk-5OS5VELO.js → chunk-FVKF2ZOS.js} +1 -1
  49. package/browser/{chunk-UEQT5HE5.js → chunk-FXLWJQC3.js} +1 -1
  50. package/browser/{chunk-IQ26VFNR.js → chunk-FZCJDAJY.js} +1 -1
  51. package/browser/{chunk-VGNMBCUC.js → chunk-G2NZ3D7U.js} +1 -1
  52. package/browser/{chunk-HAGFCQCM.js → chunk-G3XRMYTN.js} +1 -1
  53. package/browser/{chunk-2O3TR26P.js → chunk-GRXET2IV.js} +8 -8
  54. package/browser/{chunk-IU526HWZ.js → chunk-GTLBCZKI.js} +1 -1
  55. package/browser/{chunk-LQ3Q52LD.js → chunk-GVQSFCBR.js} +1 -1
  56. package/browser/{chunk-IQ4IMICT.js → chunk-GZSXRIAG.js} +1 -1
  57. package/browser/{chunk-EENVAF36.js → chunk-HUH7L2ZO.js} +1 -1
  58. package/browser/{chunk-772SQL5I.js → chunk-HZIKNLNL.js} +1 -1
  59. package/browser/chunk-I6NYJUEM.js +1 -0
  60. package/browser/{chunk-HGADEAZ4.js → chunk-IA7CYVCE.js} +1 -1
  61. package/browser/{chunk-CD3BSGAP.js → chunk-IJ6QEGE5.js} +1 -1
  62. package/browser/{chunk-TUQ4INQ4.js → chunk-IMEZ6PAI.js} +1 -1
  63. package/browser/{chunk-H6LHYTUN.js → chunk-J75KTT4W.js} +1 -1
  64. package/browser/{chunk-IRIE5DZT.js → chunk-J7BBAETB.js} +1 -1
  65. package/browser/{chunk-FAJUK2PL.js → chunk-JNZU3NGN.js} +1 -1
  66. package/browser/{chunk-PZANARAM.js → chunk-JOEBVACW.js} +1 -1
  67. package/browser/{chunk-UE53BLCC.js → chunk-JULIPCEM.js} +4 -4
  68. package/browser/{chunk-FNUNWZ2W.js → chunk-KIFEAYRI.js} +1 -1
  69. package/browser/{chunk-T5HYNGEA.js → chunk-KM74FUZX.js} +1 -1
  70. package/browser/{chunk-GOZYJRWV.js → chunk-KUPGFZQE.js} +1 -1
  71. package/browser/chunk-L35K766G.js +1 -0
  72. package/browser/{chunk-4XWCWJZC.js → chunk-L4BVAFES.js} +1 -1
  73. package/browser/{chunk-EOY5VQKV.js → chunk-LC77SA54.js} +2 -2
  74. package/browser/{chunk-Z5HBVHYO.js → chunk-LNYKIRHF.js} +1 -1
  75. package/browser/{chunk-AEHOTFB4.js → chunk-LQW5KOAB.js} +1 -1
  76. package/browser/{chunk-ERTAWD4X.js → chunk-LXSLO5QA.js} +1 -1
  77. package/browser/chunk-LZJVR4FQ.js +1 -0
  78. package/browser/{chunk-OG45AMIC.js → chunk-M5273AKK.js} +1 -1
  79. package/browser/chunk-MEUJUJB2.js +1 -0
  80. package/browser/{chunk-CRJOVQ56.js → chunk-MJ4WF7R3.js} +2 -2
  81. package/browser/{chunk-DNSE6AZ3.js → chunk-MLU3FELE.js} +1 -1
  82. package/browser/{chunk-TU4O5BX3.js → chunk-MXYELOCB.js} +1 -1
  83. package/browser/{chunk-QPXWIIQK.js → chunk-N6JJCZ2M.js} +1 -1
  84. package/browser/{chunk-G5P4GFMX.js → chunk-NGYW35CT.js} +1 -1
  85. package/browser/{chunk-AQC5G2DR.js → chunk-NKGA724S.js} +1 -1
  86. package/browser/{chunk-Q5IKPX3P.js → chunk-NM5ZUXKR.js} +1 -1
  87. package/browser/{chunk-GGPT7WIY.js → chunk-NUQK6FIB.js} +1 -1
  88. package/browser/{chunk-TRUZ46QL.js → chunk-NXSTJXP3.js} +1 -1
  89. package/browser/{chunk-W7Z44R3C.js → chunk-NZ5JPAQ5.js} +1 -1
  90. package/browser/{chunk-GINOZV6C.js → chunk-O6PVWRA5.js} +1 -1
  91. package/browser/{chunk-BXAYNP7A.js → chunk-O7SRWU2B.js} +1 -1
  92. package/browser/{chunk-QCXWKQ7Z.js → chunk-P3HCTQ6S.js} +1 -1
  93. package/browser/{chunk-SIH5NVFR.js → chunk-PGBIXI75.js} +1 -1
  94. package/browser/{chunk-HYZX6TUF.js → chunk-PLDUPO6N.js} +1 -1
  95. package/browser/{chunk-NXXNEU5Q.js → chunk-PNMCM55F.js} +1 -1
  96. package/browser/{chunk-VKJIDCM7.js → chunk-PTJ5SIZX.js} +1 -1
  97. package/browser/{chunk-HGM42PVN.js → chunk-PTZ5432I.js} +1 -1
  98. package/browser/{chunk-TIX624OU.js → chunk-PXTRJOQN.js} +1 -1
  99. package/browser/{chunk-GKKKOTYZ.js → chunk-Q4BNG6BK.js} +1 -1
  100. package/browser/{chunk-UQP7S73H.js → chunk-Q6HOM6AN.js} +1 -1
  101. package/browser/{chunk-53ACYG5V.js → chunk-Q6RSS3F7.js} +1 -1
  102. package/browser/{chunk-3A4C23H5.js → chunk-QIC57EUK.js} +1 -1
  103. package/browser/{chunk-2L54CRB2.js → chunk-QMNZ3US5.js} +1 -1
  104. package/browser/{chunk-PRBPKAI4.js → chunk-QOPR5ZBR.js} +1 -1
  105. package/browser/{chunk-ITLMINSX.js → chunk-QWYLRTIQ.js} +1 -1
  106. package/browser/{chunk-THXV6YJP.js → chunk-R24JXSUW.js} +1 -1
  107. package/browser/{chunk-3RWVYWJF.js → chunk-R6G33VWA.js} +1 -1
  108. package/browser/{chunk-3JVX2T6M.js → chunk-RDD5CPPK.js} +1 -1
  109. package/browser/{chunk-ZHIGBBGN.js → chunk-RJKR4QDZ.js} +7 -7
  110. package/browser/{chunk-KBO5VO7S.js → chunk-RQGT2FPJ.js} +1 -1
  111. package/browser/{chunk-DNBZTRXL.js → chunk-S3Y4J5BM.js} +1 -1
  112. package/browser/{chunk-EJFVZSWQ.js → chunk-SA2OFGXH.js} +1 -1
  113. package/browser/{chunk-SHPUXNKO.js → chunk-SDOP6ILP.js} +1 -1
  114. package/browser/{chunk-JYNN4IZB.js → chunk-SS5QJI73.js} +1 -1
  115. package/browser/{chunk-LWDGMGFV.js → chunk-SVCDSCAK.js} +1 -1
  116. package/browser/{chunk-TZ74SUXJ.js → chunk-SZUQ6U7I.js} +1 -1
  117. package/browser/{chunk-6G37ZXRX.js → chunk-T3BPEHU7.js} +1 -1
  118. package/browser/{chunk-C32V5IHL.js → chunk-TIRPKUJZ.js} +1 -1
  119. package/browser/{chunk-V52QD5BS.js → chunk-U54UEN3C.js} +1 -1
  120. package/browser/{chunk-XPEGAYJO.js → chunk-UCXUJQTY.js} +1 -1
  121. package/browser/chunk-UR42CPXD.js +3 -0
  122. package/browser/{chunk-O3NKN7KT.js → chunk-UX44UC2P.js} +1 -1
  123. package/browser/{chunk-H66NFIQQ.js → chunk-UYTJTLZV.js} +1 -1
  124. package/browser/{chunk-OSSHGIDA.js → chunk-VELV6XCP.js} +1 -1
  125. package/browser/{chunk-ZH7IWOYT.js → chunk-VQARO64W.js} +1 -1
  126. package/browser/{chunk-6IQQC2YT.js → chunk-W3FK7XY3.js} +1 -1
  127. package/browser/{chunk-R7Y776E5.js → chunk-WDXFLK4E.js} +1 -1
  128. package/browser/{chunk-EMP32K7Q.js → chunk-WGHPXYWX.js} +1 -1
  129. package/browser/{chunk-6CQ6XYJG.js → chunk-WP4MYTR2.js} +1 -1
  130. package/browser/{chunk-A7PNRSF2.js → chunk-XPQKTZA5.js} +1 -1
  131. package/browser/{chunk-TSBV5MA4.js → chunk-XU7DNLG3.js} +1 -1
  132. package/browser/{chunk-TDO7VOF5.js → chunk-Y7V4JJ46.js} +1 -1
  133. package/browser/{chunk-OAY4ZDTS.js → chunk-YCQYZPDK.js} +1 -1
  134. package/browser/{chunk-7275MAOI.js → chunk-YIJ62FAK.js} +1 -1
  135. package/browser/{chunk-4R4W625N.js → chunk-ZIWHZGBX.js} +1 -1
  136. package/browser/{chunk-D5QLS4SZ.js → chunk-ZRKESXDB.js} +1 -1
  137. package/browser/index.html +2 -2
  138. package/browser/main-2YFFQ7PU.js +3 -0
  139. package/package.json +1 -1
  140. package/browser/chunk-7MYFXXHY.js +0 -1
  141. package/browser/chunk-FMHXEKSH.js +0 -1
  142. package/browser/chunk-HMER2IC5.js +0 -1
  143. package/browser/chunk-I6NIUHOQ.js +0 -1
  144. package/browser/chunk-MW6BE5UI.js +0 -1
  145. package/browser/chunk-NII66FBK.js +0 -3
  146. package/browser/chunk-NM2P4KR5.js +0 -1
  147. package/browser/chunk-PNQGP25W.js +0 -1
  148. package/browser/chunk-Q7GDNJAI.js +0 -14
  149. package/browser/chunk-ZOIQWHQE.js +0 -1
  150. package/browser/main-C7YDPF2T.js +0 -3
@@ -1 +1 @@
1
- import{c as f}from"./chunk-TDO7VOF5.js";import{a as m}from"./chunk-PZANARAM.js";import{I as c,Vd as v,Yd as u,ja as s,k as n,ma as e,qd as h,td as l}from"./chunk-UXRO4UFY.js";var d=class o{constructor(t,r,p,i){this.httpService=t;this.authService=r;this.httpClientService=p;this.toastr=i}port=window.location.href.split("localhost:")[1]?.split("/")[0];hostURL=t=>m.production?t:`https://localhost:${this.port}${t}`;configure2FA(t){return this.httpService.post("/api/Authentication/Setup_2FA",t)}validateCode(t,r){let p=this.authService.loginResponse?.Token,i=new h({"Content-Type":"application/json","Cache-Control":"no-cache"});i=i.append("Authorization","Bearer "+p);let S={ValidationCode:t,UserID:r};return this.httpClientService.post(this.hostURL("/api/Login/Validate_2FA "),S,{headers:i}).pipe(c(a=>(this.toastr.error(a?.error?.Message,"Error - "+a.status),n)))}disableTwoFactorAuthentication(){let t={enabled:!1};return this.httpService.post("/api/Authentication/Setup_2FA",t)}static \u0275fac=function(r){return new(r||o)(e(u),e(f),e(l),e(v))};static \u0275prov=s({token:o,factory:o.\u0275fac,providedIn:"root"})};export{d as a};
1
+ import{c as f}from"./chunk-Y7V4JJ46.js";import{a as m}from"./chunk-JOEBVACW.js";import{I as c,Vd as v,Yd as u,ja as s,k as n,ma as e,qd as h,td as l}from"./chunk-UXRO4UFY.js";var d=class o{constructor(t,r,p,i){this.httpService=t;this.authService=r;this.httpClientService=p;this.toastr=i}port=window.location.href.split("localhost:")[1]?.split("/")[0];hostURL=t=>m.production?t:`https://localhost:${this.port}${t}`;configure2FA(t){return this.httpService.post("/api/Authentication/Setup_2FA",t)}validateCode(t,r){let p=this.authService.loginResponse?.Token,i=new h({"Content-Type":"application/json","Cache-Control":"no-cache"});i=i.append("Authorization","Bearer "+p);let S={ValidationCode:t,UserID:r};return this.httpClientService.post(this.hostURL("/api/Login/Validate_2FA "),S,{headers:i}).pipe(c(a=>(this.toastr.error(a?.error?.Message,"Error - "+a.status),n)))}disableTwoFactorAuthentication(){let t={enabled:!1};return this.httpService.post("/api/Authentication/Setup_2FA",t)}static \u0275fac=function(r){return new(r||o)(e(u),e(f),e(l),e(v))};static \u0275prov=s({token:o,factory:o.\u0275fac,providedIn:"root"})};export{d as a};
@@ -1 +1 @@
1
- import{O as A}from"./chunk-5OS5VELO.js";import{$a as o,Fc as y,Ib as c,Jb as r,Lb as d,Mb as _,Rb as l,Rd as T,Td as I,Yc as w,Yd as E,Zc as k,db as f,dc as b,ec as g,fc as P,ja as m,jd as S,ka as O,kb as x,lb as h,na as s,nb as v,qb as p,rc as C,uc as M,vb as a,xd as z,zb as u}from"./chunk-UXRO4UFY.js";var U=t=>[t],N=(t,e,n,i)=>({ID:t,Template:e,Price:n,Print:i});function H(t,e){if(t&1&&(d(0),c(1,"div",5)(2,"a",6)(3,"small"),g(4),r()()(),_()),t&2){let n=e.$implicit,i=e.index;o(),u(i>0?"border-start border-light":""),o(),a("routerLink",C(5,U,n.link))("queryParams",M(7,N,n.param.ID,n==null||n.param==null?null:n.param.Template,n.param.Price,n.param.Print)),o(2),P(n==null?null:n.label)}}function $(t,e){if(t&1&&(d(0),c(1,"div",2)(2,"div",3)(3,"small"),g(4,"Paper Size :"),r()(),p(5,H,5,12,"ng-container",4),r(),_()),t&2){let n=l();o(5),a("ngForOf",n.paperPrints)}}function q(t,e){if(t&1&&(c(0,"li")(1,"a",6)(2,"medium"),g(3),r()()()),t&2){let n=e.$implicit;o(),a("routerLink",C(3,U,n.link))("queryParams",M(5,N,n.param.ID,n==null||n.param==null?null:n.param.Template,n.param.Price,n.param.Print)),o(2),P(n==null?null:n.label)}}function J(t,e){if(t&1&&(c(0,"div",7)(1,"span"),g(2,"Paper Size :"),r(),c(3,"ul"),p(4,q,4,10,"li",4),r()()),t&2){let n=l();o(4),a("ngForOf",n.paperPrints)}}var F=class t{paperPrints;paperType;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=x({type:t,selectors:[["POS-print-mode"]],inputs:{paperPrints:"paperPrints",paperType:"paperType"},standalone:!1,decls:3,vars:2,consts:[["A4",""],[4,"ngIf","ngIfElse"],[1,"row","g-0","invoice_mini"],[1,"col-auto"],[4,"ngFor","ngForOf"],[1,"col-auto","ps-3","pe-3"],[3,"routerLink","queryParams"],[1,"mode"]],template:function(n,i){if(n&1&&p(0,$,6,1,"ng-container",1)(1,J,5,1,"ng-template",null,0,y),n&2){let L=b(2);a("ngIf",i.paperType=="mini")("ngIfElse",L)}},dependencies:[w,k,T],styles:['.invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}body[_ngcontent-%COMP%]{padding:0;font-size:12px}a.linkMini[_ngcontent-%COMP%]{left:130px;position:absolute;top:.5px;text-decoration:none;color:#3b5998}div.print_container[_ngcontent-%COMP%]{margin:0 auto;width:900px;text-align:left;color:#000;position:relative}div.print_container[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important;background-color:#fff}div.mode[_ngcontent-%COMP%]{color:gray;font-size:11px;text-align:right;height:20px;padding-top:2px}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%], div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{float:left;display:block;margin:0;padding:0}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child{padding-right:5px;margin-right:5px;border-right:solid 1px gray}div.mode[_ngcontent-%COMP%] div.printer[_ngcontent-%COMP%]{float:left}div.mode[_ngcontent-%COMP%] div.template[_ngcontent-%COMP%]{float:right}div.mode[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#3b5998;text-decoration:none}div.mode[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.mode[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{color:gray}div.mode[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]:hover{text-decoration:none}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:0 5px}div.header_left[_ngcontent-%COMP%]{float:left;padding:5px 0 0 5px}div.header_left[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:5px 0 0;padding:0;font-size:18px}div.header_right[_ngcontent-%COMP%]{float:right;padding:0 5px 0 0;max-width:425px}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;padding:0;text-align:right}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin:0 5px 0 0;text-transform:uppercase}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:18px;font-weight:400}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{float:right;border-collapse:collapse}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #9E9E9E;padding:4px}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#f6f6f6}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-bottom:6px}div.header[_ngcontent-%COMP%] img.float[_ngcontent-%COMP%]{margin:5px 0 0 5px;float:left}div.header[_ngcontent-%COMP%] div.company[_ngcontent-%COMP%]{width:100%;overflow:auto;margin:0 0 8px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%]{float:left}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin:0;padding:0}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:11px;text-align:left;font-weight:400}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%]{margin-top:3px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%] div.address[_ngcontent-%COMP%]{float:left;min-width:125px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%] div.number[_ngcontent-%COMP%]{margin-right:5px;min-width:160px}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%]{width:max-content;overflow:auto;border:solid 1px #9E9E9E;padding:5px}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:12px;margin:0 5px 0 0;padding:0;font-weight:700;float:left}div.cartItems[_ngcontent-%COMP%]{padding:10px 3px 2px 5px}div.copy[_ngcontent-%COMP%]{background-image:url(/Images/Print/copy_bg.png);background-repeat:no-repeat;background-position:50% 70px}div.topNote[_ngcontent-%COMP%]{clear:both;text-align:right}div.invoiceNote[_ngcontent-%COMP%]{padding:10px 0 0 7px}div.note[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:700;font-size:12px;margin:0 0 3px;padding:0}div.note[_ngcontent-%COMP%] div.single[_ngcontent-%COMP%]{width:895px!important}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:5px;width:440px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:5px 0 0;padding:0 0 0 20px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 0 2px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:2px 0 5px;padding:0 0 0 20px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 0 2px}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:440px;border-left:solid 1px #CACACA;padding-left:8px;margin-right:5px}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h3.closing[_ngcontent-%COMP%]{margin-top:10px;text-align:right}div.note-info[_ngcontent-%COMP%]{margin:auto;width:23%}table.info[_ngcontent-%COMP%]{border-collapse:collapse;margin-top:5px;margin-left:5px}table.info[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.info[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px;border:solid 1px #d8d8d8}table.info[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#f6f6f6}div.fullContainer[_ngcontent-%COMP%] div.print_container[_ngcontent-%COMP%]{min-height:970px;position:relative}.clearfix[_ngcontent-%COMP%]:before, .clearfix[_ngcontent-%COMP%]:after{content:"";display:table}.clearfix[_ngcontent-%COMP%]:after{clear:both}.clearfix[_ngcontent-%COMP%]{zoom:1}div.reportMargin[_ngcontent-%COMP%]{margin:20px 0 0}@media print{div.mode[_ngcontent-%COMP%], .linkMini[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}thead[_ngcontent-%COMP%]{display:table-header-group}}small.timestamp[_ngcontent-%COMP%], small.creator[_ngcontent-%COMP%], small.printed[_ngcontent-%COMP%]{font-size:12px;text-align:center;display:block;font-style:italic;padding:2px 0}small.creator[_ngcontent-%COMP%]{padding:2px 0 20px;font-style:normal}span.titleJB[_ngcontent-%COMP%]{font-weight:700;padding:10px 0 7px 8px;display:block}.topHolder[_ngcontent-%COMP%]{margin-top:15px!important}h1.jobOrderHeader[_ngcontent-%COMP%]{text-align:center}.shippingAddress[_ngcontent-%COMP%]{text-align:right;min-width:240px;clear:both}.shippingAddress[_ngcontent-%COMP%] div.box[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child{text-align:left;font-weight:700}.packingSlip[_ngcontent-%COMP%]{min-width:150px}.customer_info[_ngcontent-%COMP%]{min-width:310px}']})},D=class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=h({type:t});static \u0275inj=O({imports:[S,I]})};var j=class t{constructor(e){this.sanitizer=e}transform(e){if(this.isResourceUrl(e))return this.sanitizer.bypassSecurityTrustResourceUrl(e);{let i=`${window.location.origin}/${e}`;return this.sanitizer.bypassSecurityTrustResourceUrl(i)}}isResourceUrl(e){return/^(https?:\/\/|\/)/i.test(e)}static \u0275fac=function(n){return new(n||t)(f(z,16))};static \u0275pipe=v({name:"StylesheetSafeUrl",type:t,pure:!0})};var B=class t{httpService=s(E);updateLastPrintDateTime(e){return this.httpService.put(`${A.UpdateLastPrintDateTime}/${e}`)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=m({token:t,factory:t.\u0275fac})};export{j as a,F as b,D as c,B as d};
1
+ import{O as A}from"./chunk-FVKF2ZOS.js";import{$a as o,Fc as y,Ib as a,Jb as r,Lb as d,Mb as _,Rb as l,Rd as I,Td as T,Yc as w,Yd as E,Zc as k,db as f,dc as b,ec as g,fc as P,ja as m,jd as S,ka as O,kb as x,lb as h,na as s,nb as v,qb as p,rc as C,uc as M,vb as c,xd as z,zb as u}from"./chunk-UXRO4UFY.js";var U=t=>[t],N=(t,e,n,i)=>({ID:t,Template:e,Price:n,Print:i});function H(t,e){if(t&1&&(d(0),a(1,"div",5)(2,"a",6)(3,"small"),g(4),r()()(),_()),t&2){let n=e.$implicit,i=e.index;o(),u(i>0?"border-start border-light":""),o(),c("routerLink",C(5,U,n.link))("queryParams",M(7,N,n.param.ID,n==null||n.param==null?null:n.param.Template,n.param.Price,n.param.Print)),o(2),P(n==null?null:n.label)}}function $(t,e){if(t&1&&(d(0),a(1,"div",2)(2,"div",3)(3,"small"),g(4,"Paper Size :"),r()(),p(5,H,5,12,"ng-container",4),r(),_()),t&2){let n=l();o(5),c("ngForOf",n.paperPrints)}}function q(t,e){if(t&1&&(a(0,"li")(1,"a",6)(2,"medium"),g(3),r()()()),t&2){let n=e.$implicit;o(),c("routerLink",C(3,U,n.link))("queryParams",M(5,N,n.param.ID,n==null||n.param==null?null:n.param.Template,n.param.Price,n.param.Print)),o(2),P(n==null?null:n.label)}}function J(t,e){if(t&1&&(a(0,"div",7)(1,"span"),g(2,"Paper Size :"),r(),a(3,"ul"),p(4,q,4,10,"li",4),r()()),t&2){let n=l();o(4),c("ngForOf",n.paperPrints)}}var D=class t{paperPrints;paperType;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=x({type:t,selectors:[["POS-print-mode"]],inputs:{paperPrints:"paperPrints",paperType:"paperType"},standalone:!1,decls:3,vars:2,consts:[["A4",""],[4,"ngIf","ngIfElse"],[1,"row","g-0","invoice_mini"],[1,"col-auto"],[4,"ngFor","ngForOf"],[1,"col-auto","ps-3","pe-3"],[3,"routerLink","queryParams"],[1,"mode"]],template:function(n,i){if(n&1&&p(0,$,6,1,"ng-container",1)(1,J,5,1,"ng-template",null,0,y),n&2){let L=b(2);c("ngIf",i.paperType=="mini")("ngIfElse",L)}},dependencies:[w,k,I],styles:['.invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}body[_ngcontent-%COMP%]{padding:0;font-size:12px}a.linkMini[_ngcontent-%COMP%]{left:130px;position:absolute;top:.5px;text-decoration:none;color:#3b5998}div.print_container[_ngcontent-%COMP%]{margin:0 auto;width:900px;text-align:left;color:#000;position:relative}div.print_container[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important;background-color:#fff}div.mode[_ngcontent-%COMP%]{color:gray;font-size:11px;text-align:right;height:20px;padding-top:2px}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%], div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{float:left;display:block;margin:0;padding:0}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child{padding-right:5px;margin-right:5px;border-right:solid 1px gray}div.mode[_ngcontent-%COMP%] div.printer[_ngcontent-%COMP%]{float:left}div.mode[_ngcontent-%COMP%] div.template[_ngcontent-%COMP%]{float:right}div.mode[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#3b5998;text-decoration:none}div.mode[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.mode[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{color:gray}div.mode[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]:hover{text-decoration:none}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:0 5px}div.header_left[_ngcontent-%COMP%]{float:left;padding:5px 0 0 5px}div.header_left[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:5px 0 0;padding:0;font-size:18px}div.header_right[_ngcontent-%COMP%]{float:right;padding:0 5px 0 0;max-width:425px}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;padding:0;text-align:right}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin:0 5px 0 0;text-transform:uppercase}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:18px;font-weight:400}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{float:right;border-collapse:collapse}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #9E9E9E;padding:4px}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#f6f6f6}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-bottom:6px}div.header[_ngcontent-%COMP%] img.float[_ngcontent-%COMP%]{margin:5px 0 0 5px;float:left}div.header[_ngcontent-%COMP%] div.company[_ngcontent-%COMP%]{width:100%;overflow:auto;margin:0 0 8px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%]{float:left}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin:0;padding:0}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:11px;text-align:left;font-weight:400}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%]{margin-top:3px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%] div.address[_ngcontent-%COMP%]{float:left;min-width:125px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%] div.number[_ngcontent-%COMP%]{margin-right:5px;min-width:160px}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%]{width:max-content;overflow:auto;border:solid 1px #9E9E9E;padding:5px}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:12px;margin:0 5px 0 0;padding:0;font-weight:700;float:left}div.cartItems[_ngcontent-%COMP%]{padding:10px 3px 2px 5px}div.copy[_ngcontent-%COMP%]{background-image:url(/Images/Print/copy_bg.png);background-repeat:no-repeat;background-position:50% 70px}div.topNote[_ngcontent-%COMP%]{clear:both;text-align:right}div.invoiceNote[_ngcontent-%COMP%]{padding:10px 0 0 7px}div.note[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:700;font-size:12px;margin:0 0 3px;padding:0}div.note[_ngcontent-%COMP%] div.single[_ngcontent-%COMP%]{width:895px!important}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:5px;width:440px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:5px 0 0;padding:0 0 0 20px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 0 2px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:2px 0 5px;padding:0 0 0 20px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 0 2px}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:440px;border-left:solid 1px #CACACA;padding-left:8px;margin-right:5px}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h3.closing[_ngcontent-%COMP%]{margin-top:10px;text-align:right}div.note-info[_ngcontent-%COMP%]{margin:auto;width:23%}table.info[_ngcontent-%COMP%]{border-collapse:collapse;margin-top:5px;margin-left:5px}table.info[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.info[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px;border:solid 1px #d8d8d8}table.info[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#f6f6f6}div.fullContainer[_ngcontent-%COMP%] div.print_container[_ngcontent-%COMP%]{min-height:970px;position:relative}.clearfix[_ngcontent-%COMP%]:before, .clearfix[_ngcontent-%COMP%]:after{content:"";display:table}.clearfix[_ngcontent-%COMP%]:after{clear:both}.clearfix[_ngcontent-%COMP%]{zoom:1}div.reportMargin[_ngcontent-%COMP%]{margin:20px 0 0}@media print{div.mode[_ngcontent-%COMP%], .linkMini[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}thead[_ngcontent-%COMP%]{display:table-header-group}}small.timestamp[_ngcontent-%COMP%], small.creator[_ngcontent-%COMP%], small.printed[_ngcontent-%COMP%]{font-size:12px;text-align:center;display:block;font-style:italic;padding:2px 0}small.creator[_ngcontent-%COMP%]{padding:2px 0 20px;font-style:normal}span.titleJB[_ngcontent-%COMP%]{font-weight:700;padding:10px 0 7px 8px;display:block}.topHolder[_ngcontent-%COMP%]{margin-top:15px!important}h1.jobOrderHeader[_ngcontent-%COMP%]{text-align:center}.shippingAddress[_ngcontent-%COMP%]{text-align:right;min-width:240px;clear:both}.shippingAddress[_ngcontent-%COMP%] div.box[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child{text-align:left;font-weight:700}.packingSlip[_ngcontent-%COMP%]{min-width:150px}.customer_info[_ngcontent-%COMP%]{min-width:310px}']})},F=class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=h({type:t});static \u0275inj=O({imports:[S,T]})};var j=class t{constructor(e){this.sanitizer=e}transform(e){if(this.isResourceUrl(e))return this.sanitizer.bypassSecurityTrustResourceUrl(e);{let i=`${window.location.origin}/${e}`;return this.sanitizer.bypassSecurityTrustResourceUrl(i)}}isResourceUrl(e){return/^(https?:\/\/|\/)/i.test(e)}static \u0275fac=function(n){return new(n||t)(f(z,16))};static \u0275pipe=v({name:"StylesheetSafeUrl",type:t,pure:!0})};var B=class t{httpService=s(E);updateLastPrintDateTime(e){return this.httpService.post(`${A.UpdateLastPrintDateTime}`,{InvoiceID:e})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=m({token:t,factory:t.\u0275fac})};export{j as a,D as b,F as c,B as d};
@@ -1 +1 @@
1
- import{a as me,b as ce,c as de,d as _e,e as se,f as ge}from"./chunk-QFO3KUMD.js";import"./chunk-B5SDXVDR.js";import"./chunk-7275MAOI.js";import"./chunk-L7YSVT7G.js";import"./chunk-RX7JS4CO.js";import{e as pe}from"./chunk-6G37ZXRX.js";import"./chunk-BXAYNP7A.js";import"./chunk-3RK6DDJD.js";import"./chunk-FP4HFB5J.js";import"./chunk-6CQ6XYJG.js";import"./chunk-YEDKRNXU.js";import"./chunk-TQZQYUFG.js";import"./chunk-7QWJJPNG.js";import{d as ae,e as re}from"./chunk-VSF6PYZW.js";import"./chunk-VHAM2DWK.js";import{a as ee}from"./chunk-JPXXXD26.js";import{a as $}from"./chunk-WO3LDDSF.js";import{c as le}from"./chunk-SV4HJFAL.js";import{b as Z}from"./chunk-TZ74SUXJ.js";import{a as X}from"./chunk-V52QD5BS.js";import"./chunk-IU526HWZ.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{a as ne}from"./chunk-XZR3IMWZ.js";import{e as ie,f as oe}from"./chunk-TSBV5MA4.js";import"./chunk-BVVYVR6R.js";import"./chunk-5JJSLRVS.js";import"./chunk-GINOZV6C.js";import"./chunk-CWITQVZH.js";import"./chunk-QHRP323Q.js";import"./chunk-WDQ4UKKY.js";import"./chunk-MFCXEITE.js";import"./chunk-MUJ6277G.js";import"./chunk-LMJVRREP.js";import"./chunk-3LBZDIW2.js";import"./chunk-KTCV3KOE.js";import"./chunk-KZDE63UL.js";import"./chunk-VGNMBCUC.js";import{b as te}from"./chunk-DV4MQXAE.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-CD3BSGAP.js";import{b as K,c as U}from"./chunk-JOXTERIM.js";import"./chunk-5OS5VELO.js";import"./chunk-XYB3YDKL.js";import"./chunk-6ZN7JR6K.js";import"./chunk-GIKR6Y2K.js";import{g as Y}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-VFTGIP5A.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import{la as J}from"./chunk-EEEAUYZ6.js";import{F as q,c as N,h as k,o as Q,q as j}from"./chunk-RVXZOIFQ.js";import"./chunk-TDO7VOF5.js";import"./chunk-NOQM2VPB.js";import{d as z}from"./chunk-ZZGSAFGO.js";import"./chunk-PZANARAM.js";import{$a as a,Ac as s,Bc as D,Db as P,Fc as V,Ib as o,Jb as i,Kb as C,Ob as I,Qb as h,Rb as m,Rd as W,Td as A,Ub as E,Yd as G,Zc as O,db as x,ec as l,fc as M,gc as g,gd as L,jc as v,jd as R,kb as B,kc as S,lc as b,ob as F,qb as f,qc as T,rc as w,va as u,vb as p,wa as y,wd as H,zc as _}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var fe=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),Ce=()=>["/menu/Products/Catalog/Products"],ue=t=>({CategoryID:t}),xe=()=>["/menu/Inventory/Quantity/Valuation"];function ve(t,c){if(t&1){let e=I();o(0,"button",10),h("click",function(){u(e);let n=m(2);return y(n.openExportModal())}),C(1,"i",11),l(2," Export "),i()}}function Se(t,c){if(t&1){let e=I();o(0,"div",12)(1,"h6"),l(2,"Outlet"),i(),o(3,"outlet-selector",13),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.ListIDs,n)||(d.pageData.Filter.ListIDs=n),y(n)}),i(),o(4,"h6"),l(5,"Quantity From - To"),i(),o(6,"div",14)(7,"input",15),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityFrom,n)||(d.pageData.Filter.QuantityFrom=n),y(n)}),i(),o(8,"span",16),l(9,"-"),i(),o(10,"input",17),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityTo,n)||(d.pageData.Filter.QuantityTo=n),y(n)}),i()(),o(11,"h6"),l(12,"Discontinued"),i(),o(13,"radio-options",18),b("modelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.Discontinued,n)||(d.pageData.Filter.Discontinued=n),y(n)}),i()()}if(t&2){let e=m(2);a(3),p("multiple",!0)("accessType",2),v("ngModel",e.pageData.Filter.ListIDs),a(4),v("ngModel",e.pageData.Filter.QuantityFrom),a(3),v("ngModel",e.pageData.Filter.QuantityTo),a(3),v("model",e.pageData.Filter.Discontinued),p("options",e.pageData.Options.Discontinued)}}function be(t,c){t&1&&(o(0,"th",27),l(1," Cost "),C(2,"p-treeTableSortIcon",28),i())}function Ie(t,c){t&1&&(o(0,"th",29),l(1," Price "),C(2,"p-treeTableSortIcon",30),i())}function Te(t,c){t&1&&(o(0,"th",31),l(1," % "),C(2,"p-treeTableSortIcon",32),i())}function De(t,c){if(t&1&&(o(0,"tr",19)(1,"th",20),l(2," Category "),C(3,"p-treeTableSortIcon",21),i(),o(4,"th",22),l(5," On Hand "),C(6,"p-treeTableSortIcon",23),i(),f(7,be,3,0,"th",24)(8,Ie,3,0,"th",25)(9,Te,3,0,"th",26),i()),t&2){let e=m(2);a(7),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function he(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedCost)," ")}}function we(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedPrice)," ")}}function Be(t,c){if(t&1&&(o(0,"td")(1,"span",38),_(2,"number"),l(3),_(4,"number"),i()()),t&2){let e=m().rowData;a(),p("matTooltip",D(2,2,e.DisplayedPercentage,"1.0-5")+"%"),a(2),g(" ",D(4,5,e.DisplayedPercentage,"1.0-0"),"% ")}}function Fe(t,c){if(t&1&&(o(0,"tr",33)(1,"td"),C(2,"p-treeTableToggler",34),o(3,"a",35),l(4),i()(),o(5,"td")(6,"a",36),_(7,"number"),_(8,"number"),_(9,"number"),l(10),_(11,"quantityFraction"),i()(),f(12,he,3,3,"td",37)(13,we,3,3,"td",37)(14,Be,5,8,"td",37),i()),t&2){let e=c.$implicit,r=c.rowData,n=m(2);p("ttRow",e),a(2),p("rowNode",e),a(),p("routerLink",T(20,Ce))("queryParams",w(21,ue,r.ID)),a(),M(r.Name),a(2),E("matTooltip",r.OnHandIndirect&&r.OnHand?"Direct ("+s(7,12,r.OnHand)+") Indirect ("+s(8,14,r.OnHandIndirect)+")":r.OnHandIndirect?"Indirect ("+s(9,16,r.OnHandIndirect)+")":""),p("routerLink",T(23,xe))("queryParams",w(24,ue,r.ID)),a(4),g("",s(11,18,r.DisplayedOnHand)," "),a(2),p("ngIf",n.roleService.product.Cost),a(),p("ngIf",n.roleService.product.Price),a(),p("ngIf",n.roleService.product.Cost&&n.roleService.product.Price)}}function Pe(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalCost)," ")}}function Ee(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPrice)," ")}}function Me(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"number"),i()),t&2){let e=m(3);a(),g(" ",D(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPercentage,"1.0-0"),"% ")}}function Ve(t,c){if(t&1&&(o(0,"tr",39)(1,"td",40),l(2,"Total:"),i(),o(3,"td",40),l(4),_(5,"quantityFraction"),i(),f(6,Pe,3,3,"td",41)(7,Ee,3,3,"td",41)(8,Me,3,4,"td",41),i()),t&2){let e=m(2);a(4),g(" ",s(5,4,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalOnHand)," "),a(2),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function Oe(t,c){if(t&1){let e=I();o(0,"mainpanel-cmp",2),h("onSubmit",function(){u(e);let n=m();return y(n.searchFromPageOne())}),b("filterChange",function(n){u(e);let d=m();return S(d.pageData.Filter,n)||(d.pageData.Filter=n),y(n)}),o(1,"actions"),f(2,ve,3,0,"button",3),i(),o(3,"div",4),f(4,Se,14,7,"ng-template",null,0,V),i(),o(6,"content")(7,"div",5)(8,"p-treeTable",6),f(9,De,10,3,"ng-template",7)(10,Fe,15,26,"ng-template",8)(11,Ve,9,6,"ng-template",9),i()()()()}if(t&2){let e=m();p("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),v("filter",e.pageData.Filter),a(2),P(e.roleService.global.Export?2:-1),a(6),p("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",T(9,fe))}}var ye=class t extends X{constructor(e,r,n,d,Le,Re){super(e,r,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=r;this.csvConverter=n;this.pageTitle=d;this.roleService=Le;this.dialog=Re}openExportModal(){this.dialog.open(Z,{data:{title:"Inventory By Category",exportTypes:[{ID:"inventoryexport/GetExportInventoryByCategory",Value:"Default",FileName:"Inventory By Category"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}static \u0275fac=function(r){return new(r||t)(x(te),x(G),x(ne),x(H),x(z),x(Y))};static \u0275cmp=B({type:t,selectors:[["app-inventory-by-category"]],features:[F],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter","onSubmit","filterChange",4,"ngIf"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["filters",""],[1,"container-fluid","mt-3"],[3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["pTemplate","footer"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["placeholder","Choose Outlet",1,"ng-select-multiple",3,"ngModelChange","multiple","accessType","ngModel"],[1,"d-flex","align-items-center"],["type","number","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],[1,"mx-3"],["type","number","placeholder","To",1,"form-control",3,"ngModelChange","ngModel"],[3,"modelChange","model","options"],[1,"custom-header"],["ttSortableColumn","Name",1,"text-uppercase"],["field","Name"],["ttSortableColumn","DisplayedOnHand",1,"text-uppercase"],["field","DisplayedOnHand"],["class","text-uppercase","ttSortableColumn","DisplayedCost",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPrice",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPercentage",4,"ngIf"],["ttSortableColumn","DisplayedCost",1,"text-uppercase"],["field","DisplayedCost"],["ttSortableColumn","DisplayedPrice",1,"text-uppercase"],["field","DisplayedPrice"],["ttSortableColumn","DisplayedPercentage",1,"text-uppercase"],["field","DisplayedPercentage"],[3,"ttRow"],[3,"rowNode"],["target","_blank",3,"routerLink","queryParams"],["matTooltipPosition","above",3,"routerLink","queryParams","matTooltip"],[4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[1,"table-footer"],[1,"text-end"],["class","text-end",4,"ngIf"]],template:function(r,n){r&1&&f(0,Oe,12,10,"mainpanel-cmp",1),r&2&&p("ngIf",n.data)},dependencies:[R,O,L,oe,ie,A,W,ge,me,J,se,ce,de,_e,$,ee,le,pe,re,ae,q,N,j,k,Q,U,K],styles:[".p-treetable-scrollable-header-box{padding-right:0!important} .p-treetable .p-treetable-thead>tr>th:not(:first-child){text-align:right!important} .p-treetable .p-treetable-tbody>tr>td:not(:first-child){text-align:right!important} .p-treetable-scrollable-footer-box{padding-right:0!important} .table-header-styles, .p-treetable-tfoot td, .p-treetable-thead th{background:#f6f6f6!important;color:#3b3b3b!important;text-transform:uppercase!important;font-weight:700!important;line-height:25px!important;font-size:12px!important;font-family:Roboto,sans-serif!important} .p-component.p-iconwrapper>svg{height:11px!important} .p-treetable .p-treetable-tbody>tr>td{border-bottom-width:1px;border-color:#dee2e6}"]})};export{ye as InventoryByCategoryComponent};
1
+ import{a as me,b as ce,c as de,d as _e,e as se,f as ge}from"./chunk-D5YUOO4X.js";import"./chunk-B5SDXVDR.js";import"./chunk-YIJ62FAK.js";import"./chunk-L7YSVT7G.js";import"./chunk-RX7JS4CO.js";import{e as pe}from"./chunk-T3BPEHU7.js";import"./chunk-O7SRWU2B.js";import"./chunk-3RK6DDJD.js";import"./chunk-FP4HFB5J.js";import"./chunk-WP4MYTR2.js";import"./chunk-YEDKRNXU.js";import"./chunk-CMHBQ7I6.js";import"./chunk-7QWJJPNG.js";import{d as ae,e as re}from"./chunk-CKNQ2YZ5.js";import"./chunk-VHAM2DWK.js";import{a as ee}from"./chunk-JPXXXD26.js";import{a as $}from"./chunk-WO3LDDSF.js";import{c as le}from"./chunk-7O5TK73M.js";import{b as Z}from"./chunk-SZUQ6U7I.js";import{a as X}from"./chunk-U54UEN3C.js";import"./chunk-GTLBCZKI.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{a as ne}from"./chunk-XZR3IMWZ.js";import{e as ie,f as oe}from"./chunk-XU7DNLG3.js";import"./chunk-6NX4GWBD.js";import"./chunk-5JJSLRVS.js";import"./chunk-O6PVWRA5.js";import"./chunk-CWITQVZH.js";import"./chunk-QHRP323Q.js";import"./chunk-WDQ4UKKY.js";import"./chunk-MFCXEITE.js";import"./chunk-MUJ6277G.js";import"./chunk-LMJVRREP.js";import"./chunk-3LBZDIW2.js";import"./chunk-KTCV3KOE.js";import"./chunk-KZDE63UL.js";import"./chunk-G2NZ3D7U.js";import{b as te}from"./chunk-7WT2CL3Y.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-IJ6QEGE5.js";import{b as K,c as U}from"./chunk-JOXTERIM.js";import"./chunk-FVKF2ZOS.js";import"./chunk-XYB3YDKL.js";import"./chunk-6ZN7JR6K.js";import"./chunk-GIKR6Y2K.js";import{g as Y}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-VFTGIP5A.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import{la as J}from"./chunk-EEEAUYZ6.js";import{F as q,c as N,h as k,o as Q,q as j}from"./chunk-RVXZOIFQ.js";import"./chunk-Y7V4JJ46.js";import"./chunk-ELIDPKL7.js";import{d as z}from"./chunk-ZZGSAFGO.js";import"./chunk-JOEBVACW.js";import{$a as a,Ac as s,Bc as D,Db as P,Fc as V,Ib as o,Jb as i,Kb as C,Ob as I,Qb as h,Rb as m,Rd as W,Td as A,Ub as E,Yd as G,Zc as O,db as x,ec as l,fc as M,gc as g,gd as L,jc as v,jd as R,kb as B,kc as S,lc as b,ob as F,qb as f,qc as T,rc as w,va as u,vb as p,wa as y,wd as H,zc as _}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var fe=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),Ce=()=>["/menu/Products/Catalog/Products"],ue=t=>({CategoryID:t}),xe=()=>["/menu/Inventory/Quantity/Valuation"];function ve(t,c){if(t&1){let e=I();o(0,"button",10),h("click",function(){u(e);let n=m(2);return y(n.openExportModal())}),C(1,"i",11),l(2," Export "),i()}}function Se(t,c){if(t&1){let e=I();o(0,"div",12)(1,"h6"),l(2,"Outlet"),i(),o(3,"outlet-selector",13),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.ListIDs,n)||(d.pageData.Filter.ListIDs=n),y(n)}),i(),o(4,"h6"),l(5,"Quantity From - To"),i(),o(6,"div",14)(7,"input",15),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityFrom,n)||(d.pageData.Filter.QuantityFrom=n),y(n)}),i(),o(8,"span",16),l(9,"-"),i(),o(10,"input",17),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityTo,n)||(d.pageData.Filter.QuantityTo=n),y(n)}),i()(),o(11,"h6"),l(12,"Discontinued"),i(),o(13,"radio-options",18),b("modelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.Discontinued,n)||(d.pageData.Filter.Discontinued=n),y(n)}),i()()}if(t&2){let e=m(2);a(3),p("multiple",!0)("accessType",2),v("ngModel",e.pageData.Filter.ListIDs),a(4),v("ngModel",e.pageData.Filter.QuantityFrom),a(3),v("ngModel",e.pageData.Filter.QuantityTo),a(3),v("model",e.pageData.Filter.Discontinued),p("options",e.pageData.Options.Discontinued)}}function be(t,c){t&1&&(o(0,"th",27),l(1," Cost "),C(2,"p-treeTableSortIcon",28),i())}function Ie(t,c){t&1&&(o(0,"th",29),l(1," Price "),C(2,"p-treeTableSortIcon",30),i())}function Te(t,c){t&1&&(o(0,"th",31),l(1," % "),C(2,"p-treeTableSortIcon",32),i())}function De(t,c){if(t&1&&(o(0,"tr",19)(1,"th",20),l(2," Category "),C(3,"p-treeTableSortIcon",21),i(),o(4,"th",22),l(5," On Hand "),C(6,"p-treeTableSortIcon",23),i(),f(7,be,3,0,"th",24)(8,Ie,3,0,"th",25)(9,Te,3,0,"th",26),i()),t&2){let e=m(2);a(7),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function he(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedCost)," ")}}function we(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedPrice)," ")}}function Be(t,c){if(t&1&&(o(0,"td")(1,"span",38),_(2,"number"),l(3),_(4,"number"),i()()),t&2){let e=m().rowData;a(),p("matTooltip",D(2,2,e.DisplayedPercentage,"1.0-5")+"%"),a(2),g(" ",D(4,5,e.DisplayedPercentage,"1.0-0"),"% ")}}function Fe(t,c){if(t&1&&(o(0,"tr",33)(1,"td"),C(2,"p-treeTableToggler",34),o(3,"a",35),l(4),i()(),o(5,"td")(6,"a",36),_(7,"number"),_(8,"number"),_(9,"number"),l(10),_(11,"quantityFraction"),i()(),f(12,he,3,3,"td",37)(13,we,3,3,"td",37)(14,Be,5,8,"td",37),i()),t&2){let e=c.$implicit,r=c.rowData,n=m(2);p("ttRow",e),a(2),p("rowNode",e),a(),p("routerLink",T(20,Ce))("queryParams",w(21,ue,r.ID)),a(),M(r.Name),a(2),E("matTooltip",r.OnHandIndirect&&r.OnHand?"Direct ("+s(7,12,r.OnHand)+") Indirect ("+s(8,14,r.OnHandIndirect)+")":r.OnHandIndirect?"Indirect ("+s(9,16,r.OnHandIndirect)+")":""),p("routerLink",T(23,xe))("queryParams",w(24,ue,r.ID)),a(4),g("",s(11,18,r.DisplayedOnHand)," "),a(2),p("ngIf",n.roleService.product.Cost),a(),p("ngIf",n.roleService.product.Price),a(),p("ngIf",n.roleService.product.Cost&&n.roleService.product.Price)}}function Pe(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalCost)," ")}}function Ee(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPrice)," ")}}function Me(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"number"),i()),t&2){let e=m(3);a(),g(" ",D(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPercentage,"1.0-0"),"% ")}}function Ve(t,c){if(t&1&&(o(0,"tr",39)(1,"td",40),l(2,"Total:"),i(),o(3,"td",40),l(4),_(5,"quantityFraction"),i(),f(6,Pe,3,3,"td",41)(7,Ee,3,3,"td",41)(8,Me,3,4,"td",41),i()),t&2){let e=m(2);a(4),g(" ",s(5,4,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalOnHand)," "),a(2),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function Oe(t,c){if(t&1){let e=I();o(0,"mainpanel-cmp",2),h("onSubmit",function(){u(e);let n=m();return y(n.searchFromPageOne())}),b("filterChange",function(n){u(e);let d=m();return S(d.pageData.Filter,n)||(d.pageData.Filter=n),y(n)}),o(1,"actions"),f(2,ve,3,0,"button",3),i(),o(3,"div",4),f(4,Se,14,7,"ng-template",null,0,V),i(),o(6,"content")(7,"div",5)(8,"p-treeTable",6),f(9,De,10,3,"ng-template",7)(10,Fe,15,26,"ng-template",8)(11,Ve,9,6,"ng-template",9),i()()()()}if(t&2){let e=m();p("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),v("filter",e.pageData.Filter),a(2),P(e.roleService.global.Export?2:-1),a(6),p("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",T(9,fe))}}var ye=class t extends X{constructor(e,r,n,d,Le,Re){super(e,r,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=r;this.csvConverter=n;this.pageTitle=d;this.roleService=Le;this.dialog=Re}openExportModal(){this.dialog.open(Z,{data:{title:"Inventory By Category",exportTypes:[{ID:"inventoryexport/GetExportInventoryByCategory",Value:"Default",FileName:"Inventory By Category"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}static \u0275fac=function(r){return new(r||t)(x(te),x(G),x(ne),x(H),x(z),x(Y))};static \u0275cmp=B({type:t,selectors:[["app-inventory-by-category"]],features:[F],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter","onSubmit","filterChange",4,"ngIf"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["filters",""],[1,"container-fluid","mt-3"],[3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["pTemplate","footer"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["placeholder","Choose Outlet",1,"ng-select-multiple",3,"ngModelChange","multiple","accessType","ngModel"],[1,"d-flex","align-items-center"],["type","number","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],[1,"mx-3"],["type","number","placeholder","To",1,"form-control",3,"ngModelChange","ngModel"],[3,"modelChange","model","options"],[1,"custom-header"],["ttSortableColumn","Name",1,"text-uppercase"],["field","Name"],["ttSortableColumn","DisplayedOnHand",1,"text-uppercase"],["field","DisplayedOnHand"],["class","text-uppercase","ttSortableColumn","DisplayedCost",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPrice",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPercentage",4,"ngIf"],["ttSortableColumn","DisplayedCost",1,"text-uppercase"],["field","DisplayedCost"],["ttSortableColumn","DisplayedPrice",1,"text-uppercase"],["field","DisplayedPrice"],["ttSortableColumn","DisplayedPercentage",1,"text-uppercase"],["field","DisplayedPercentage"],[3,"ttRow"],[3,"rowNode"],["target","_blank",3,"routerLink","queryParams"],["matTooltipPosition","above",3,"routerLink","queryParams","matTooltip"],[4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[1,"table-footer"],[1,"text-end"],["class","text-end",4,"ngIf"]],template:function(r,n){r&1&&f(0,Oe,12,10,"mainpanel-cmp",1),r&2&&p("ngIf",n.data)},dependencies:[R,O,L,oe,ie,A,W,ge,me,J,se,ce,de,_e,$,ee,le,pe,re,ae,q,N,j,k,Q,U,K],styles:[".p-treetable-scrollable-header-box{padding-right:0!important} .p-treetable .p-treetable-thead>tr>th:not(:first-child){text-align:right!important} .p-treetable .p-treetable-tbody>tr>td:not(:first-child){text-align:right!important} .p-treetable-scrollable-footer-box{padding-right:0!important} .table-header-styles, .p-treetable-tfoot td, .p-treetable-thead th{background:#f6f6f6!important;color:#3b3b3b!important;text-transform:uppercase!important;font-weight:700!important;line-height:25px!important;font-size:12px!important;font-family:Roboto,sans-serif!important} .p-component.p-iconwrapper>svg{height:11px!important} .p-treetable .p-treetable-tbody>tr>td{border-bottom-width:1px;border-color:#dee2e6}"]})};export{ye as InventoryByCategoryComponent};
@@ -0,0 +1 @@
1
+ import{a}from"./chunk-PGBIXI75.js";import"./chunk-BUPX3XPT.js";import"./chunk-56K6E74R.js";import"./chunk-T3BPEHU7.js";import"./chunk-O7SRWU2B.js";import"./chunk-3RK6DDJD.js";import"./chunk-FP4HFB5J.js";import"./chunk-WP4MYTR2.js";import"./chunk-YEDKRNXU.js";import"./chunk-CMHBQ7I6.js";import"./chunk-7QWJJPNG.js";import"./chunk-VHAM2DWK.js";import"./chunk-U54UEN3C.js";import"./chunk-GTLBCZKI.js";import"./chunk-XU7DNLG3.js";import"./chunk-QHRP323Q.js";import"./chunk-WDQ4UKKY.js";import"./chunk-MFCXEITE.js";import"./chunk-G2NZ3D7U.js";import"./chunk-7WT2CL3Y.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-IJ6QEGE5.js";import"./chunk-JOXTERIM.js";import"./chunk-FVKF2ZOS.js";import"./chunk-XYB3YDKL.js";import"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import"./chunk-RVXZOIFQ.js";import"./chunk-Y7V4JJ46.js";import"./chunk-ELIDPKL7.js";import"./chunk-ZZGSAFGO.js";import"./chunk-JOEBVACW.js";import"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";export{a as WebhookJobLogsComponent};
@@ -1 +1 @@
1
- import{a as D}from"./chunk-FAJUK2PL.js";import{a as E,b as k}from"./chunk-OISKO6QJ.js";import{u as m,v,w as O}from"./chunk-CD3BSGAP.js";import{e as N,f as y}from"./chunk-3YKVLHZG.js";import{F as T,h,o as b}from"./chunk-RVXZOIFQ.js";import{$a as l,Ib as s,Jb as u,Qb as _,db as a,jc as C,jd as S,ka as c,kb as d,kc as g,lb as p,lc as M,vb as f}from"./chunk-UXRO4UFY.js";var R=class e{constructor(i,t,o){this.data=i;this._backEndService=t;this._dialogRef=o;this.config=new m,this.config.title="Note",this.Note=this.data.transactionData?.Order?.Note,this.config.customWidth="500px"}config=new m;Note="";onOk(i){i!="Enter"&&(this.data.transactionData.Items.forEach(t=>{delete t.UnitPriceOriginal}),this.data.transactionData.Order.Note=this.Note,this._backEndService.submitTransaction(this.data.transactionData,this.data.api).subscribe(t=>{this._dialogRef.close(t)}))}onClose(){this._dialogRef.close()}static \u0275fac=function(t){return new(t||e)(a(y),a(D),a(N))};static \u0275cmp=d({type:e,selectors:[["POS-submit-transaction"]],standalone:!1,decls:5,vars:2,consts:[[3,"onOk","onCancel","onClose","config"],[1,"row"],[1,"col-sm-12"],[3,"ngModelChange","ngModel"]],template:function(t,o){t&1&&(s(0,"modal-material",0),_("onOk",function(n){return o.onOk(n)})("onCancel",function(){return o.onClose()})("onClose",function(){return o.onClose()}),s(1,"content")(2,"div",1)(3,"div",2)(4,"POS-tinymce-editor",3),M("ngModelChange",function(n){return g(o.Note,n)||(o.Note=n),n}),u()()()()()),t&2&&(f("config",o.config),l(4),C("ngModel",o.Note))},dependencies:[v,h,b,E],encapsulation:2})},w=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=p({type:e});static \u0275inj=c({imports:[S,O,T,k]})};export{R as a,w as b};
1
+ import{a as D}from"./chunk-JNZU3NGN.js";import{a as E,b as k}from"./chunk-OISKO6QJ.js";import{u as m,v,w as O}from"./chunk-IJ6QEGE5.js";import{e as N,f as y}from"./chunk-3YKVLHZG.js";import{F as T,h,o as b}from"./chunk-RVXZOIFQ.js";import{$a as l,Ib as s,Jb as u,Qb as _,db as a,jc as C,jd as S,ka as c,kb as d,kc as g,lb as p,lc as M,vb as f}from"./chunk-UXRO4UFY.js";var R=class e{constructor(i,t,o){this.data=i;this._backEndService=t;this._dialogRef=o;this.config=new m,this.config.title="Note",this.Note=this.data.transactionData?.Order?.Note,this.config.customWidth="500px"}config=new m;Note="";onOk(i){i!="Enter"&&(this.data.transactionData.Items.forEach(t=>{delete t.UnitPriceOriginal}),this.data.transactionData.Order.Note=this.Note,this._backEndService.submitTransaction(this.data.transactionData,this.data.api).subscribe(t=>{this._dialogRef.close(t)}))}onClose(){this._dialogRef.close()}static \u0275fac=function(t){return new(t||e)(a(y),a(D),a(N))};static \u0275cmp=d({type:e,selectors:[["POS-submit-transaction"]],standalone:!1,decls:5,vars:2,consts:[[3,"onOk","onCancel","onClose","config"],[1,"row"],[1,"col-sm-12"],[3,"ngModelChange","ngModel"]],template:function(t,o){t&1&&(s(0,"modal-material",0),_("onOk",function(n){return o.onOk(n)})("onCancel",function(){return o.onClose()})("onClose",function(){return o.onClose()}),s(1,"content")(2,"div",1)(3,"div",2)(4,"POS-tinymce-editor",3),M("ngModelChange",function(n){return g(o.Note,n)||(o.Note=n),n}),u()()()()()),t&2&&(f("config",o.config),l(4),C("ngModel",o.Note))},dependencies:[v,h,b,E],encapsulation:2})},w=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=p({type:e});static \u0275inj=c({imports:[S,O,T,k]})};export{R as a,w as b};
@@ -0,0 +1 @@
1
+ import{a as _t,b as ut}from"./chunk-PXTRJOQN.js";import{a as pt}from"./chunk-FKDZ5OWB.js";import{a as mt}from"./chunk-FUV2BXRH.js";import{a as st}from"./chunk-BXQFYW4R.js";import"./chunk-PNMCM55F.js";import"./chunk-BYXBJQAS.js";import{d as ct,e as dt}from"./chunk-T3BPEHU7.js";import"./chunk-O7SRWU2B.js";import"./chunk-3RK6DDJD.js";import"./chunk-FP4HFB5J.js";import"./chunk-WP4MYTR2.js";import"./chunk-YEDKRNXU.js";import"./chunk-CMHBQ7I6.js";import"./chunk-7QWJJPNG.js";import{d as at,e as rt}from"./chunk-CKNQ2YZ5.js";import"./chunk-VHAM2DWK.js";import{a as Z}from"./chunk-JPXXXD26.js";import{a as U}from"./chunk-NXSTJXP3.js";import{f as lt}from"./chunk-7HOWFXKG.js";import{b as Y}from"./chunk-SZUQ6U7I.js";import"./chunk-U54UEN3C.js";import"./chunk-GTLBCZKI.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{a as tt}from"./chunk-XZR3IMWZ.js";import{e as nt,f as ot}from"./chunk-XU7DNLG3.js";import"./chunk-O6PVWRA5.js";import"./chunk-CWITQVZH.js";import"./chunk-QHRP323Q.js";import"./chunk-WDQ4UKKY.js";import"./chunk-MFCXEITE.js";import"./chunk-MUJ6277G.js";import"./chunk-LMJVRREP.js";import"./chunk-3LBZDIW2.js";import"./chunk-KTCV3KOE.js";import"./chunk-KZDE63UL.js";import"./chunk-G2NZ3D7U.js";import{b as $}from"./chunk-7WT2CL3Y.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-IJ6QEGE5.js";import{b as Q,c as J}from"./chunk-JOXTERIM.js";import{N as it,g as et}from"./chunk-FVKF2ZOS.js";import"./chunk-XYB3YDKL.js";import"./chunk-6ZN7JR6K.js";import"./chunk-GIKR6Y2K.js";import{g as X}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-VFTGIP5A.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import{F as H}from"./chunk-RVXZOIFQ.js";import"./chunk-Y7V4JJ46.js";import"./chunk-ELIDPKL7.js";import{d as K}from"./chunk-ZZGSAFGO.js";import"./chunk-JOEBVACW.js";import{$a as i,Ac as u,Bc as C,Db as p,Eb as k,Fc as j,Gb as M,Hb as N,Ib as o,Jb as n,Kb as E,Ob as P,Qb as h,Rb as c,Rd as R,Yd as z,Zc as q,db as T,ec as r,fc as w,gc as s,gd as W,jc as g,jd as A,kb as L,kc as I,lc as S,ob as O,qb as y,qc as D,rc as b,ub as V,va as x,vb as _,wa as v,wd as G,zc as d}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var xt=()=>["/menu/Outlets/Master/Outlets/Info"],ft=t=>({ID:t}),vt=()=>["/menu/Products/Catalog/Products/Info"];function yt(t,l){if(t&1){let e=P();o(0,"button",11),h("click",function(){x(e);let a=c();return v(a.openExportModal())}),E(1,"i",12),r(2," Export "),n()}}function Tt(t,l){if(t&1){let e=P();o(0,"div",13)(1,"h6"),r(2,"Outlet Group"),n(),o(3,"POS-outlet-group-tree-select",14),S("selectedOutletGroupIDChange",function(a){x(e);let f=c();return I(f.pageData.Filter.OutletGroupID,a)||(f.pageData.Filter.OutletGroupID=a),v(a)}),n(),o(4,"h6"),r(5,"Category"),n(),o(6,"POS-product-category-select",15),S("selectedCategoryIDChange",function(a){x(e);let f=c();return I(f.pageData.Filter.CategoryID,a)||(f.pageData.Filter.CategoryID=a),v(a)}),n(),o(7,"autocompleteV3",16),S("modelNameChange",function(a){x(e);let f=c();return I(f.pageData.Filter.ListProductID,a)||(f.pageData.Filter.ListProductID=a),v(a)}),n(),o(8,"h6"),r(9,"From - To"),n(),o(10,"div")(11,"datepicker",17),S("dateChange",function(a){x(e);let f=c();return I(f.pageData.Filter.From,a)||(f.pageData.Filter.From=a),v(a)}),n()(),o(12,"div",18)(13,"datepicker",19),S("dateChange",function(a){x(e);let f=c();return I(f.pageData.Filter.To,a)||(f.pageData.Filter.To=a),v(a)}),n()(),o(14,"h6"),r(15,"Inventory Type"),n(),o(16,"radio-options",20),S("modelChange",function(a){x(e);let f=c();return I(f.pageData.Filter.InventoryType,a)||(f.pageData.Filter.InventoryType=a),v(a)}),n()()}if(t&2){let e=c();i(3),_("showClear",!0),g("selectedOutletGroupID",e.pageData.Filter.OutletGroupID),i(3),g("selectedCategoryID",e.pageData.Filter.CategoryID),_("showClear",!0),i(),g("modelName",e.pageData.Filter.ListProductID),_("placeholder","Search Product")("isShowEmptyMessage",!0)("emptyMessage","No Product found")("tooltipMessage","Search by product name")("label","Product to Analyze")("listDataEndpoint","/api/ac/GetProductSuggestionByCodeNName")("valueField","Key"),i(4),_("isFloatingLabel",!1),g("date",e.pageData.Filter.From),_("hidelClearBtn",!0),i(2),_("isFloatingLabel",!1),g("date",e.pageData.Filter.To),_("hidelClearBtn",!0),i(3),g("model",e.pageData.Filter.InventoryType),_("options",e.pageData.Options.InventoryTypes)}}function gt(t,l){t&1&&(o(0,"th",8),r(1,"Code"),n())}function It(t,l){t&1&&(o(0,"th",9)(1,"span",21),r(2," Start "),n()())}function St(t,l){t&1&&(o(0,"th",9)(1,"span",22),r(2," Bought "),n()())}function Pt(t,l){t&1&&(o(0,"th",9)(1,"span",23),r(2," Sold "),n()())}function ht(t,l){t&1&&(o(0,"th",9)(1,"span",24),r(2," T.In "),n()())}function Ft(t,l){t&1&&(o(0,"th",9)(1,"span",25),r(2," T.Out "),n()())}function Et(t,l){t&1&&(o(0,"th",9)(1,"span",26),r(2," Adj "),n()())}function wt(t,l){t&1&&(o(0,"th",9)(1,"span",27),r(2," End "),n()())}function Dt(t,l){t&1&&(o(0,"th",9)(1,"span",28),r(2," Now "),n()())}function bt(t,l){t&1&&(o(0,"th",9)(1,"span",29),r(2," % "),n()())}function Bt(t,l){if(t&1&&(o(0,"td",31),r(1),n()),t&2){let e=c().$implicit;i(),s(" ",e.ProductCode," ")}}function Lt(t,l){if(t&1&&(o(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;_("colsFontColor",e.Start),i(),s(" ",u(2,2,e.Start)," ")}}function Ot(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),s(" ",u(2,1,e.Bought)," ")}}function Vt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),s(" ",u(2,1,e.Sold)," ")}}function kt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),s(" ",u(2,1,e.TransferredIn)," ")}}function Mt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),s(" ",u(2,1,e.TransferredOut)," ")}}function Nt(t,l){if(t&1&&(o(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;_("colsFontColor",e.Adjustment),i(),s(" ",e.Adjustment<0?e.Adjustment*-1:u(2,2,e.Adjustment)," ")}}function jt(t,l){if(t&1&&(o(0,"td",32),r(1),n()),t&2){let e=c().$implicit;_("colsFontColor",e.End),i(),s(" ",e.End," ")}}function qt(t,l){if(t&1&&(o(0,"td",32),r(1),n()),t&2){let e=c().$implicit;_("colsFontColor",e.Now),i(),s(" ",e.Now," ")}}function Wt(t,l){if(t&1&&(o(0,"td",31),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),s(" ",u(2,1,e.SellTransferInRate)," ")}}function At(t,l){if(t&1&&(o(0,"tr")(1,"td")(2,"a",30),r(3),n()(),o(4,"td")(5,"a",30),r(6),n()(),y(7,Bt,2,1,"td",31)(8,Lt,3,4,"td",32)(9,Ot,3,3,"td",33)(10,Vt,3,3,"td",34)(11,kt,3,3,"td",33)(12,Mt,3,3,"td",34)(13,Nt,3,4,"td",32)(14,jt,2,2,"td",32)(15,qt,2,2,"td",32)(16,Wt,3,3,"td",31),n()),t&2){let e=l.$implicit,m=c(2);i(2),_("routerLink",D(16,xt))("queryParams",b(17,ft,e.OutletID)),i(),s(" ",e.OutletName," "),i(2),_("routerLink",D(19,vt))("queryParams",b(20,ft,e.ProductID)),i(),w(e.ProductName),i(),p(m.column.code.selected?7:-1),i(),p(m.column.start.selected?8:-1),i(),p(m.column.bought.selected?9:-1),i(),p(m.column.sold.selected?10:-1),i(),p(m.column.transferredIn.selected?11:-1),i(),p(m.column.transferredOut.selected?12:-1),i(),p(m.column.adjust.selected?13:-1),i(),p(m.column.end.selected?14:-1),i(),p(m.column.now.selected?15:-1),i(),p(m.column.percent.selected?16:-1)}}function Gt(t,l){if(t&1&&M(0,At,17,22,"tr",null,k),t&2){let e=c();N(e.infiniteList)}}function Rt(t,l){t&1&&(o(0,"tr")(1,"td",35),E(2,"app-empty-state"),n()())}function Ht(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",u(2,5,C(1,2,e.infiniteList,"Start"))),i(3),s(" ",u(5,10,C(4,7,e.infiniteList,"Start"))," ")}}function zt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),s(" ",u(3,4,C(2,1,e.infiniteList,"Bought"))," ")}}function Kt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),s(" ",u(3,4,C(2,1,e.infiniteList,"Sold"))," ")}}function Qt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),s(" ",u(3,4,C(2,1,e.infiniteList,"TransferredIn"))," ")}}function Jt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),s(" ",u(3,4,C(2,1,e.infiniteList,"TransferredOut"))," ")}}function Ut(t,l){if(t&1&&(o(0,"td",38),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",u(2,5,C(1,2,e.infiniteList,"Adjustment"))),i(3),s(" ",u(5,10,C(4,7,e.infiniteList,"Adjustment"))," ")}}function Xt(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",u(2,5,C(1,2,e.infiniteList,"End"))),i(3),s(" ",u(5,10,C(4,7,e.infiniteList,"End"))," ")}}function Yt(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",u(2,5,C(1,2,e.infiniteList,"Now"))),i(3),s(" ",u(5,10,C(4,7,e.infiniteList,"Now"))," ")}}function Zt(t,l){if(t&1&&(o(0,"tfoot")(1,"tr",36)(2,"th",37),r(3," Total: "),n(),y(4,Ht,6,12,"td",32)(5,zt,4,6,"td",33)(6,Kt,4,6,"td",34)(7,Qt,4,6,"td",33)(8,Jt,4,6,"td",34)(9,Ut,6,12,"td",38)(10,Xt,6,12,"td",32)(11,Yt,6,12,"td",32),n()()),t&2){let e=c();i(2),V("colspan",e.column.code.selected?3:2),i(2),p(e.column.start.selected?4:-1),i(),p(e.column.bought.selected?5:-1),i(),p(e.column.sold.selected?6:-1),i(),p(e.column.transferredIn.selected?7:-1),i(),p(e.column.transferredOut.selected?8:-1),i(),p(e.column.adjust.selected?9:-1),i(),p(e.column.end.selected?10:-1),i(),p(e.column.now.selected?11:-1)}}function $t(t,l){if(t&1){let e=P();o(0,"span",45),h("click",function(){x(e);let a=c(2);return v(a.StoreRowsCountAPIResult("inventory/GetCountProductInventoryTraffic"))}),o(1,"i",46),r(2,"?"),n()()}}function te(t,l){if(t&1&&(o(0,"span"),r(1),d(2,"number"),n()),t&2){let e=c(2);i(),w(u(2,1,e.listTotal))}}function ee(t,l){if(t&1){let e=P();o(0,"div",10)(1,"div",39)(2,"div",40),r(3),d(4,"number"),y(5,$t,3,0,"span",41)(6,te,3,3,"span",42),r(7),n()(),o(8,"a",43),h("click",function(){x(e);let a=c();return v(a.NextPage(!0))}),E(9,"i",44),r(10," Next"),n()()}if(t&2){let e=c();i(3),s(" Showing 1 - ",u(4,4,e.infiniteList.length)," of "),i(2),_("ngIf",!e.pageData.HideStoreApiCount),i(),_("ngIf",e.pageData.HideStoreApiCount),i(),s(" records ~ ",e.pageData.Filter.PageNumber," Page ")}}var Ct=class t extends U{constructor(e,m,a,f,B,F,ie){super(e,m,"inventory/GetProductInventoryTraffic","inventoryloader/GetProductInventoryTraffic",void 0,void 0,!0);this.httpService=m;this.csvConverter=a;this.pageTitle=f;this.converter=B;this.roleService=F;this.matDialog=ie;this.pageTitle.setTitle(this.menuData.T)}column={code:{selected:!0,name:"Code"},start:{selected:!0,name:"Start"},bought:{selected:!1,name:"Bought"},sold:{selected:!0,name:"Sold"},transferredIn:{selected:!0,name:"T.In"},transferredOut:{selected:!0,name:"T.Out"},adjust:{selected:!1,name:"Adjust"},end:{selected:!0,name:"End"},now:{selected:!0,name:"Now"},percent:{selected:!1,name:"Percentage"}};selectedProduct=[];postBindData(){this.menuData.H=this.data.PageTitle}openExportModal(){this.matDialog.open(Y,{data:{title:"Product Inventory Traffic",exportTypes:[{ID:"inventoryexport/GetExportProductInventoryTraffic",Value:"Default",FileName:"Product Inventory Traffic"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!0}})}static \u0275fac=function(m){return new(m||t)(T($),T(z),T(tt),T(G),T(pt),T(K),T(X))};static \u0275cmp=L({type:t,selectors:[["POS-product-inventory-traffic"]],features:[O],decls:31,vars:19,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter","column"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[2,"width","150px"],[1,"text-end",2,"width","100px"],[1,"text-end",2,"width","80px"],[1,"d-flex","justify-content-between","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[1,"tree-select-as-filter",3,"selectedOutletGroupIDChange","showClear","selectedOutletGroupID"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],[3,"modelNameChange","modelName","placeholder","isShowEmptyMessage","emptyMessage","tooltipMessage","label","listDataEndpoint","valueField"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],["name","ProductTypeId",3,"modelChange","model","options"],["matTooltip","Stock based on start date (from date filter)","matTooltipPosition","above"],["matTooltip","Movement Stock from Inbound Logistics (Supplier Bill)","matTooltipPosition","above"],["matTooltip","Movement Stock from Outbound Logistics (Customer Invoice)","matTooltipPosition","above"],["matTooltip","Stock received from other outlets","matTooltipPosition","above"],["matTooltip","Stock sent to other outlets","matTooltipPosition","above"],["matTooltip","Total stock adjustments made","matTooltipPosition","above"],["matTooltip","Stock based on end date (to date filter)","matTooltipPosition","above"],["matTooltip","Current on-hand inventory","matTooltipPosition","above"],["matTooltip","Percentage of sold items compared to the total items received from other outlets.","matTooltipPosition","above",1,"text-end"],[3,"routerLink","queryParams"],[1,"text-end"],[1,"text-end",3,"colsFontColor"],[1,"text-end","text-success"],[1,"text-end","text-danger"],["colspan","12"],[1,"table-footer"],[1,"empty-column","text-end"],[1,"text-end","text-success",3,"colsFontColor"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[4,"ngIf"],["role","button",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["matTooltipPosition","above","matTooltip","Retrieve rows count",1,"border","p-3"]],template:function(m,a){if(m&1){let f=P();o(0,"mainpanel-cmp",1),h("onSubmit",function(){return x(f),v(a.searchFromPageOne())}),S("filterChange",function(F){return x(f),I(a.pageData.Filter,F)||(a.pageData.Filter=F),v(F)}),o(1,"actions"),y(2,yt,3,0,"button",2),n(),o(3,"filters"),y(4,Tt,17,20,"ng-template",null,0,j),n(),o(6,"content")(7,"div",3)(8,"div",4)(9,"table",5)(10,"thead",6)(11,"tr")(12,"th",7),r(13,"Outlet"),n(),o(14,"th"),r(15,"Product"),n(),y(16,gt,2,0,"th",8)(17,It,3,0,"th",9)(18,St,3,0,"th",9)(19,Pt,3,0,"th",9)(20,ht,3,0,"th",9)(21,Ft,3,0,"th",9)(22,Et,3,0,"th",9)(23,wt,3,0,"th",9)(24,Dt,3,0,"th",9)(25,bt,3,0,"th",9),n()(),o(26,"tbody"),y(27,Gt,2,0)(28,Rt,3,0,"tr"),n(),y(29,Zt,12,9,"tfoot"),n()(),y(30,ee,11,6,"div",10),n()()()}m&2&&(_("pageData",a.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),g("filter",a.pageData.Filter),_("column",a.column),i(2),_("ngIf",a.roleService.global.Export),i(14),p(a.column.code.selected?16:-1),i(),p(a.column.start.selected?17:-1),i(),p(a.column.bought.selected?18:-1),i(),p(a.column.sold.selected?19:-1),i(),p(a.column.transferredIn.selected?20:-1),i(),p(a.column.transferredOut.selected?21:-1),i(),p(a.column.adjust.selected?22:-1),i(),p(a.column.end.selected?23:-1),i(),p(a.column.now.selected?24:-1),i(),p(a.column.percent.selected?25:-1),i(2),p(a.infiniteList&&a.infiniteList.length>0?27:28),i(2),p(a.infiniteList&&a.infiniteList.length>0?29:-1),i(),p(a.infiniteList&&a.infiniteList.length>0?30:-1))},dependencies:[ot,nt,A,q,W,H,mt,lt,_t,it,et,R,Z,dt,ct,rt,at,st,ut,J,Q],encapsulation:2})};export{Ct as Product_Inventory_TrafficComponent};