dealpos 25.42.2 → 25.43.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 (105) hide show
  1. package/browser/{chunk-QCEQZT7E.js → chunk-2DCP5K6S.js} +1 -1
  2. package/browser/{chunk-GGPT7WIY.js → chunk-3LKY4V7E.js} +1 -1
  3. package/browser/{chunk-SIH5NVFR.js → chunk-3REOXXPI.js} +1 -1
  4. package/browser/{chunk-OSSHGIDA.js → chunk-3WSASNIT.js} +1 -1
  5. package/browser/chunk-4G2HIE3A.js +1 -0
  6. package/browser/{chunk-C2CGBWBH.js → chunk-4JM455M6.js} +1 -1
  7. package/browser/chunk-4PPRFE5H.js +1 -0
  8. package/browser/{chunk-LQ3Q52LD.js → chunk-4SFHOQ3Y.js} +1 -1
  9. package/browser/{chunk-53ACYG5V.js → chunk-5CDAHDI5.js} +1 -1
  10. package/browser/{chunk-QFO3KUMD.js → chunk-5NDARG5X.js} +1 -1
  11. package/browser/{chunk-Q5IKPX3P.js → chunk-5SRC2QUI.js} +1 -1
  12. package/browser/{chunk-P6LA3P5N.js → chunk-64EULF5I.js} +1 -1
  13. package/browser/{chunk-HGADEAZ4.js → chunk-7C7GJT3E.js} +1 -1
  14. package/browser/{chunk-TU4O5BX3.js → chunk-7O3BTVW2.js} +1 -1
  15. package/browser/{chunk-BVVYVR6R.js → chunk-7S4WUQBK.js} +1 -1
  16. package/browser/{chunk-TSBV5MA4.js → chunk-7V7Q67KX.js} +1 -1
  17. package/browser/{chunk-6ZN7JR6K.js → chunk-7VKFVS7K.js} +1 -1
  18. package/browser/{chunk-VKJIDCM7.js → chunk-7WLFUG2A.js} +1 -1
  19. package/browser/{chunk-C32V5IHL.js → chunk-A7R2DZD3.js} +1 -1
  20. package/browser/{chunk-7MYFXXHY.js → chunk-AJCH3WAF.js} +1 -1
  21. package/browser/{chunk-D5QLS4SZ.js → chunk-AQUQUDDZ.js} +1 -1
  22. package/browser/{chunk-Z5HBVHYO.js → chunk-ASGXDOOQ.js} +1 -1
  23. package/browser/{chunk-CKSMLIVU.js → chunk-CX4UR7ZZ.js} +4 -4
  24. package/browser/{chunk-A3CWPPXF.js → chunk-CXRVPHHO.js} +1 -1
  25. package/browser/{chunk-TDO7VOF5.js → chunk-D5P4CYL5.js} +1 -1
  26. package/browser/{chunk-6IQQC2YT.js → chunk-D6VG5PSE.js} +1 -1
  27. package/browser/{chunk-XGGQUHUR.js → chunk-E7L36INB.js} +1 -1
  28. package/browser/{chunk-MW6BE5UI.js → chunk-EH6IO5FW.js} +1 -1
  29. package/browser/{chunk-GOZYJRWV.js → chunk-EJDIY62U.js} +1 -1
  30. package/browser/{chunk-IU526HWZ.js → chunk-EYE63KIO.js} +1 -1
  31. package/browser/{chunk-ERTAWD4X.js → chunk-F2Z6MRHX.js} +1 -1
  32. package/browser/{chunk-ZHIGBBGN.js → chunk-FF56HWOF.js} +5 -5
  33. package/browser/{chunk-TIX624OU.js → chunk-G2NUOEHT.js} +1 -1
  34. package/browser/{chunk-PDKNFOY7.js → chunk-GFT5QOAV.js} +1 -1
  35. package/browser/{chunk-LWDGMGFV.js → chunk-GNXJCMBC.js} +1 -1
  36. package/browser/{chunk-PZANARAM.js → chunk-HIALMESF.js} +1 -1
  37. package/browser/{chunk-O3NKN7KT.js → chunk-HYRNR45J.js} +1 -1
  38. package/browser/{chunk-G5P4GFMX.js → chunk-IE6UBT7C.js} +1 -1
  39. package/browser/chunk-IFQV5GDJ.js +1 -0
  40. package/browser/{chunk-V52QD5BS.js → chunk-IGEAG6HP.js} +1 -1
  41. package/browser/{chunk-3JVX2T6M.js → chunk-INCYKSJF.js} +1 -1
  42. package/browser/{chunk-CRJOVQ56.js → chunk-IUDDIQMT.js} +2 -2
  43. package/browser/{chunk-ZOIQWHQE.js → chunk-JDZEWPPQ.js} +1 -1
  44. package/browser/{chunk-XPEGAYJO.js → chunk-JLL2ILJJ.js} +1 -1
  45. package/browser/{chunk-QPXWIIQK.js → chunk-JORCTO5O.js} +1 -1
  46. package/browser/{chunk-DNBZTRXL.js → chunk-JU6MGU3M.js} +1 -1
  47. package/browser/{chunk-HYZX6TUF.js → chunk-LC3XCQL2.js} +1 -1
  48. package/browser/{chunk-GKKKOTYZ.js → chunk-LGVT3CR2.js} +1 -1
  49. package/browser/{chunk-TRUZ46QL.js → chunk-M7QHMLIG.js} +1 -1
  50. package/browser/{chunk-H66NFIQQ.js → chunk-MDGMZ65B.js} +1 -1
  51. package/browser/{chunk-2O3TR26P.js → chunk-MDY5R453.js} +1 -1
  52. package/browser/{chunk-IRIE5DZT.js → chunk-MMX7JWK6.js} +1 -1
  53. package/browser/chunk-MXUYJQOT.js +57 -0
  54. package/browser/{chunk-R7Y776E5.js → chunk-NGLW2JVN.js} +1 -1
  55. package/browser/{chunk-HGM42PVN.js → chunk-NIAATSHN.js} +1 -1
  56. package/browser/{chunk-EJFVZSWQ.js → chunk-NZXT22JH.js} +1 -1
  57. package/browser/{chunk-I6NIUHOQ.js → chunk-OEEJBHA6.js} +1 -1
  58. package/browser/{chunk-K7ON3WKW.js → chunk-OL6COSQS.js} +1 -1
  59. package/browser/{chunk-HA6VJJLI.js → chunk-PHGUFK7B.js} +1 -1
  60. package/browser/chunk-Q3SBBXUT.js +1 -0
  61. package/browser/{chunk-W7Z44R3C.js → chunk-Q3T47ZI6.js} +1 -1
  62. package/browser/chunk-QDE7PB5F.js +1 -0
  63. package/browser/{chunk-NOQM2VPB.js → chunk-QEZV5DGZ.js} +1 -1
  64. package/browser/{chunk-Q7GDNJAI.js → chunk-QU4LPPFI.js} +8 -8
  65. package/browser/{chunk-7R3X2A2H.js → chunk-R4FFGZYI.js} +1 -1
  66. package/browser/{chunk-7X35YY3T.js → chunk-R6NHGFCL.js} +1 -1
  67. package/browser/{chunk-4WYJGX5K.js → chunk-RADHAROZ.js} +1 -1
  68. package/browser/{chunk-FKYUI33J.js → chunk-RAIYXIUN.js} +1 -1
  69. package/browser/{chunk-W7R2NCKA.js → chunk-RDLECCOU.js} +2 -2
  70. package/browser/chunk-RE4ILURJ.js +1 -0
  71. package/browser/{chunk-FNUNWZ2W.js → chunk-RJ5DYWUR.js} +1 -1
  72. package/browser/{chunk-VGNMBCUC.js → chunk-RXIPRX4H.js} +1 -1
  73. package/browser/{chunk-W7I2T4SZ.js → chunk-TAVO3B4U.js} +1 -1
  74. package/browser/{chunk-47W54HJY.js → chunk-TJOJSY2L.js} +1 -1
  75. package/browser/{chunk-4WW3BBDP.js → chunk-TP762HYD.js} +2 -2
  76. package/browser/{chunk-7275MAOI.js → chunk-TROJCJRS.js} +1 -1
  77. package/browser/{chunk-4XWCWJZC.js → chunk-TTHREZAR.js} +1 -1
  78. package/browser/{chunk-DV4MQXAE.js → chunk-TZKLOUVL.js} +1 -1
  79. package/browser/{chunk-ZFXZABWG.js → chunk-U5OIRIFT.js} +1 -1
  80. package/browser/{chunk-OAY4ZDTS.js → chunk-UP43YMU4.js} +1 -1
  81. package/browser/{chunk-SHPUXNKO.js → chunk-VFGDPNH2.js} +1 -1
  82. package/browser/chunk-W3VF2RCW.js +1 -0
  83. package/browser/{chunk-SV4HJFAL.js → chunk-W6A2EZUH.js} +1 -1
  84. package/browser/{chunk-EOY5VQKV.js → chunk-WYHR2ET7.js} +2 -2
  85. package/browser/{chunk-XBMOSDDE.js → chunk-XDJ4AOAR.js} +1 -1
  86. package/browser/{chunk-VD4QQDNI.js → chunk-YCN42CZP.js} +1 -1
  87. package/browser/chunk-YWGMCAEP.js +3 -0
  88. package/browser/{chunk-T5HYNGEA.js → chunk-ZBTG35T6.js} +1 -1
  89. package/browser/chunk-ZPZDGQWP.js +16 -0
  90. package/browser/{chunk-GIKR6Y2K.js → chunk-ZVDY66SR.js} +1 -1
  91. package/browser/index.html +2 -2
  92. package/browser/{main-C7YDPF2T.js → main-XJRM5GZV.js} +2 -2
  93. package/browser/{styles-EM6OTRT2.css → styles-SJXE22QD.css} +1 -1
  94. package/package.json +1 -1
  95. package/browser/chunk-4ODUHZAT.js +0 -1
  96. package/browser/chunk-6A45AGTK.js +0 -1
  97. package/browser/chunk-BKUC3UED.js +0 -1
  98. package/browser/chunk-EHV62EGB.js +0 -57
  99. package/browser/chunk-JU5FQANB.js +0 -1
  100. package/browser/chunk-NII66FBK.js +0 -3
  101. package/browser/chunk-NM2P4KR5.js +0 -1
  102. package/browser/chunk-OG45AMIC.js +0 -1
  103. package/browser/chunk-PNQGP25W.js +0 -1
  104. package/browser/chunk-UE53BLCC.js +0 -16
  105. package/browser/chunk-YTGZYBEI.js +0 -1
@@ -1 +1 @@
1
- import{a as _t,b as ut}from"./chunk-TIX624OU.js";import{a as pt}from"./chunk-FKDZ5OWB.js";import{a as mt}from"./chunk-47W54HJY.js";import{a as st}from"./chunk-BXQFYW4R.js";import"./chunk-NXXNEU5Q.js";import"./chunk-BYXBJQAS.js";import{d as ct,e as dt}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 at,e as rt}from"./chunk-VSF6PYZW.js";import"./chunk-VHAM2DWK.js";import{a as Z}from"./chunk-JPXXXD26.js";import{a as U}from"./chunk-TRUZ46QL.js";import{f as lt}from"./chunk-HA6VJJLI.js";import{b as Y}from"./chunk-TZ74SUXJ.js";import"./chunk-V52QD5BS.js";import"./chunk-IU526HWZ.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-TSBV5MA4.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 $}from"./chunk-DV4MQXAE.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-CD3BSGAP.js";import{b as Q,c as J}from"./chunk-JOXTERIM.js";import{N as it,g as et}from"./chunk-5OS5VELO.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-TDO7VOF5.js";import"./chunk-NOQM2VPB.js";import{d as K}from"./chunk-ZZGSAFGO.js";import"./chunk-PZANARAM.js";import{$a as i,Ac as f,Bc as C,Db as p,Eb as k,Fc as j,Gb as M,Hb as N,Ib as a,Jb as n,Kb as w,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 E,gc as u,gd as W,jc as g,jd as A,kb as L,kc as I,lc as S,ob as O,qb as v,qc as D,rc as b,ub as V,va as x,vb as _,wa as y,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}),yt=()=>["/menu/Products/Catalog/Products/Info"];function vt(t,l){if(t&1){let e=P();a(0,"button",11),h("click",function(){x(e);let o=c();return y(o.openExportModal())}),w(1,"i",12),r(2," Export "),n()}}function Tt(t,l){if(t&1){let e=P();a(0,"div",13)(1,"h6"),r(2,"Outlet Group"),n(),a(3,"POS-outlet-group-tree-select",14),S("selectedOutletGroupIDChange",function(o){x(e);let s=c();return I(s.pageData.Filter.OutletGroupID,o)||(s.pageData.Filter.OutletGroupID=o),y(o)}),n(),a(4,"h6"),r(5,"Category"),n(),a(6,"POS-product-category-select",15),S("selectedCategoryIDChange",function(o){x(e);let s=c();return I(s.pageData.Filter.CategoryID,o)||(s.pageData.Filter.CategoryID=o),y(o)}),n(),a(7,"autocompleteV3",16),S("modelNameChange",function(o){x(e);let s=c();return I(s.pageData.Filter.ListProductID,o)||(s.pageData.Filter.ListProductID=o),y(o)}),n(),a(8,"h6"),r(9,"From - To"),n(),a(10,"div")(11,"datepicker",17),S("dateChange",function(o){x(e);let s=c();return I(s.pageData.Filter.From,o)||(s.pageData.Filter.From=o),y(o)}),n()(),a(12,"div",18)(13,"datepicker",19),S("dateChange",function(o){x(e);let s=c();return I(s.pageData.Filter.To,o)||(s.pageData.Filter.To=o),y(o)}),n()(),a(14,"h6"),r(15,"Inventory Type"),n(),a(16,"radio-options",20),S("modelChange",function(o){x(e);let s=c();return I(s.pageData.Filter.InventoryType,o)||(s.pageData.Filter.InventoryType=o),y(o)}),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&&(a(0,"th",8),r(1,"Code"),n())}function It(t,l){t&1&&(a(0,"th",9)(1,"span",21),r(2," Start "),n()())}function St(t,l){t&1&&(a(0,"th",9)(1,"span",22),r(2," Bought "),n()())}function Pt(t,l){t&1&&(a(0,"th",9)(1,"span",23),r(2," Sold "),n()())}function ht(t,l){t&1&&(a(0,"th",9)(1,"span",24),r(2," T.In "),n()())}function Ft(t,l){t&1&&(a(0,"th",9)(1,"span",25),r(2," T.Out "),n()())}function wt(t,l){t&1&&(a(0,"th",9)(1,"span",26),r(2," Adj "),n()())}function Et(t,l){t&1&&(a(0,"th",9)(1,"span",27),r(2," End "),n()())}function Dt(t,l){t&1&&(a(0,"th",9)(1,"span",28),r(2," Now "),n()())}function bt(t,l){if(t&1&&(a(0,"td",30),r(1),n()),t&2){let e=c().$implicit;i(),u(" ",e.ProductCode," ")}}function Bt(t,l){if(t&1&&(a(0,"td",31),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;_("colsFontColor",e.Start),i(),u(" ",f(2,2,e.Start)," ")}}function Lt(t,l){if(t&1&&(a(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.Bought)," ")}}function Ot(t,l){if(t&1&&(a(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.Sold)," ")}}function Vt(t,l){if(t&1&&(a(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.TransferredIn)," ")}}function kt(t,l){if(t&1&&(a(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.TransferredOut)," ")}}function Mt(t,l){if(t&1&&(a(0,"td",31),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;_("colsFontColor",e.Adjustment),i(),u(" ",e.Adjustment<0?e.Adjustment*-1:f(2,2,e.Adjustment)," ")}}function Nt(t,l){if(t&1&&(a(0,"td",31),r(1),n()),t&2){let e=c().$implicit;_("colsFontColor",e.End),i(),u(" ",e.End," ")}}function jt(t,l){if(t&1&&(a(0,"td",31),r(1),n()),t&2){let e=c().$implicit;_("colsFontColor",e.Now),i(),u(" ",e.Now," ")}}function qt(t,l){if(t&1&&(a(0,"tr")(1,"td")(2,"a",29),r(3),n()(),a(4,"td")(5,"a",29),r(6),n()(),v(7,bt,2,1,"td",30)(8,Bt,3,4,"td",31)(9,Lt,3,3,"td",32)(10,Ot,3,3,"td",33)(11,Vt,3,3,"td",32)(12,kt,3,3,"td",33)(13,Mt,3,4,"td",31)(14,Nt,2,2,"td",31)(15,jt,2,2,"td",31),n()),t&2){let e=l.$implicit,m=c(2);i(2),_("routerLink",D(15,xt))("queryParams",b(16,ft,e.OutletID)),i(),u(" ",e.OutletName," "),i(2),_("routerLink",D(18,yt))("queryParams",b(19,ft,e.ProductID)),i(),E(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)}}function Wt(t,l){if(t&1&&M(0,qt,16,21,"tr",null,k),t&2){let e=c();N(e.infiniteList)}}function At(t,l){t&1&&(a(0,"tr")(1,"td",34),w(2,"app-empty-state"),n()())}function Gt(t,l){if(t&1&&(a(0,"td",31),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",f(2,5,C(1,2,e.infiniteList,"Start"))),i(3),u(" ",f(5,10,C(4,7,e.infiniteList,"Start"))," ")}}function Rt(t,l){if(t&1&&(a(0,"td",32),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,C(2,1,e.infiniteList,"Bought"))," ")}}function Ht(t,l){if(t&1&&(a(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,C(2,1,e.infiniteList,"Sold"))," ")}}function zt(t,l){if(t&1&&(a(0,"td",32),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,C(2,1,e.infiniteList,"TransferredIn"))," ")}}function Kt(t,l){if(t&1&&(a(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,C(2,1,e.infiniteList,"TransferredOut"))," ")}}function Qt(t,l){if(t&1&&(a(0,"td",37),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",f(2,5,C(1,2,e.infiniteList,"Adjustment"))),i(3),u(" ",f(5,10,C(4,7,e.infiniteList,"Adjustment"))," ")}}function Jt(t,l){if(t&1&&(a(0,"td",31),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",f(2,5,C(1,2,e.infiniteList,"End"))),i(3),u(" ",f(5,10,C(4,7,e.infiniteList,"End"))," ")}}function Ut(t,l){if(t&1&&(a(0,"td",31),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",f(2,5,C(1,2,e.infiniteList,"Now"))),i(3),u(" ",f(5,10,C(4,7,e.infiniteList,"Now"))," ")}}function Xt(t,l){if(t&1&&(a(0,"tfoot")(1,"tr",35)(2,"th",36),r(3," Total: "),n(),v(4,Gt,6,12,"td",31)(5,Rt,4,6,"td",32)(6,Ht,4,6,"td",33)(7,zt,4,6,"td",32)(8,Kt,4,6,"td",33)(9,Qt,6,12,"td",37)(10,Jt,6,12,"td",31)(11,Ut,6,12,"td",31),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 Yt(t,l){if(t&1){let e=P();a(0,"span",44),h("click",function(){x(e);let o=c(2);return y(o.StoreRowsCountAPIResult("inventory/GetCountProductInventoryTraffic"))}),a(1,"i",45),r(2,"?"),n()()}}function Zt(t,l){if(t&1&&(a(0,"span"),r(1),d(2,"number"),n()),t&2){let e=c(2);i(),E(f(2,1,e.listTotal))}}function $t(t,l){if(t&1){let e=P();a(0,"div",10)(1,"div",38)(2,"div",39),r(3),d(4,"number"),v(5,Yt,3,0,"span",40)(6,Zt,3,3,"span",41),r(7),n()(),a(8,"a",42),h("click",function(){x(e);let o=c();return y(o.NextPage(!0))}),w(9,"i",43),r(10," Next"),n()()}if(t&2){let e=c();i(3),u(" Showing 1 - ",f(4,4,e.infiniteList.length)," of "),i(2),_("ngIf",!e.pageData.HideStoreApiCount),i(),_("ngIf",e.pageData.HideStoreApiCount),i(),u(" records ~ ",e.pageData.Filter.PageNumber," Page ")}}var Ct=class t extends U{constructor(e,m,o,s,B,F,te){super(e,m,"inventory/GetProductInventoryTraffic","inventoryloader/GetProductInventoryTraffic",void 0,void 0,!0);this.httpService=m;this.csvConverter=o;this.pageTitle=s;this.converter=B;this.roleService=F;this.matDialog=te;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"}};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:30,vars:18,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"],[3,"routerLink","queryParams"],[1,"text-end"],[1,"text-end",3,"colsFontColor"],[1,"text-end","text-success"],[1,"text-end","text-danger"],["colspan","11"],[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,o){if(m&1){let s=P();a(0,"mainpanel-cmp",1),h("onSubmit",function(){return x(s),y(o.searchFromPageOne())}),S("filterChange",function(F){return x(s),I(o.pageData.Filter,F)||(o.pageData.Filter=F),y(F)}),a(1,"actions"),v(2,vt,3,0,"button",2),n(),a(3,"filters"),v(4,Tt,17,20,"ng-template",null,0,j),n(),a(6,"content")(7,"div",3)(8,"div",4)(9,"table",5)(10,"thead",6)(11,"tr")(12,"th",7),r(13,"Outlet"),n(),a(14,"th"),r(15,"Product"),n(),v(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,wt,3,0,"th",9)(23,Et,3,0,"th",9)(24,Dt,3,0,"th",9),n()(),a(25,"tbody"),v(26,Wt,2,0)(27,At,3,0,"tr"),n(),v(28,Xt,12,9,"tfoot"),n()(),v(29,$t,11,6,"div",10),n()()()}m&2&&(_("pageData",o.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),g("filter",o.pageData.Filter),_("column",o.column),i(2),_("ngIf",o.roleService.global.Export),i(14),p(o.column.code.selected?16:-1),i(),p(o.column.start.selected?17:-1),i(),p(o.column.bought.selected?18:-1),i(),p(o.column.sold.selected?19:-1),i(),p(o.column.transferredIn.selected?20:-1),i(),p(o.column.transferredOut.selected?21:-1),i(),p(o.column.adjust.selected?22:-1),i(),p(o.column.end.selected?23:-1),i(),p(o.column.now.selected?24:-1),i(2),p(o.infiniteList&&o.infiniteList.length>0?26:27),i(2),p(o.infiniteList&&o.infiniteList.length>0?28:-1),i(),p(o.infiniteList&&o.infiniteList.length>0?29:-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};
1
+ import{a as _t,b as ut}from"./chunk-G2NUOEHT.js";import{a as pt}from"./chunk-FKDZ5OWB.js";import{a as mt}from"./chunk-TJOJSY2L.js";import{a as st}from"./chunk-BXQFYW4R.js";import"./chunk-NXXNEU5Q.js";import"./chunk-BYXBJQAS.js";import{d as ct,e as dt}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 at,e as rt}from"./chunk-VSF6PYZW.js";import"./chunk-VHAM2DWK.js";import{a as Z}from"./chunk-JPXXXD26.js";import{a as U}from"./chunk-M7QHMLIG.js";import{f as lt}from"./chunk-PHGUFK7B.js";import{b as Y}from"./chunk-TZ74SUXJ.js";import"./chunk-IGEAG6HP.js";import"./chunk-EYE63KIO.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-7V7Q67KX.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-RXIPRX4H.js";import{b as $}from"./chunk-TZKLOUVL.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-CD3BSGAP.js";import{b as Q,c as J}from"./chunk-JOXTERIM.js";import{N as it,g as et}from"./chunk-5OS5VELO.js";import"./chunk-XYB3YDKL.js";import"./chunk-7VKFVS7K.js";import"./chunk-ZVDY66SR.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-D5P4CYL5.js";import"./chunk-QEZV5DGZ.js";import{d as K}from"./chunk-ZZGSAFGO.js";import"./chunk-HIALMESF.js";import{$a as i,Ac as f,Bc as C,Db as p,Eb as k,Fc as j,Gb as M,Hb as N,Ib as a,Jb as n,Kb as w,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 E,gc as u,gd as W,jc as g,jd as A,kb as L,kc as I,lc as S,ob as O,qb as v,qc as D,rc as b,ub as V,va as x,vb as _,wa as y,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}),yt=()=>["/menu/Products/Catalog/Products/Info"];function vt(t,l){if(t&1){let e=P();a(0,"button",11),h("click",function(){x(e);let o=c();return y(o.openExportModal())}),w(1,"i",12),r(2," Export "),n()}}function Tt(t,l){if(t&1){let e=P();a(0,"div",13)(1,"h6"),r(2,"Outlet Group"),n(),a(3,"POS-outlet-group-tree-select",14),S("selectedOutletGroupIDChange",function(o){x(e);let s=c();return I(s.pageData.Filter.OutletGroupID,o)||(s.pageData.Filter.OutletGroupID=o),y(o)}),n(),a(4,"h6"),r(5,"Category"),n(),a(6,"POS-product-category-select",15),S("selectedCategoryIDChange",function(o){x(e);let s=c();return I(s.pageData.Filter.CategoryID,o)||(s.pageData.Filter.CategoryID=o),y(o)}),n(),a(7,"autocompleteV3",16),S("modelNameChange",function(o){x(e);let s=c();return I(s.pageData.Filter.ListProductID,o)||(s.pageData.Filter.ListProductID=o),y(o)}),n(),a(8,"h6"),r(9,"From - To"),n(),a(10,"div")(11,"datepicker",17),S("dateChange",function(o){x(e);let s=c();return I(s.pageData.Filter.From,o)||(s.pageData.Filter.From=o),y(o)}),n()(),a(12,"div",18)(13,"datepicker",19),S("dateChange",function(o){x(e);let s=c();return I(s.pageData.Filter.To,o)||(s.pageData.Filter.To=o),y(o)}),n()(),a(14,"h6"),r(15,"Inventory Type"),n(),a(16,"radio-options",20),S("modelChange",function(o){x(e);let s=c();return I(s.pageData.Filter.InventoryType,o)||(s.pageData.Filter.InventoryType=o),y(o)}),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&&(a(0,"th",8),r(1,"Code"),n())}function It(t,l){t&1&&(a(0,"th",9)(1,"span",21),r(2," Start "),n()())}function St(t,l){t&1&&(a(0,"th",9)(1,"span",22),r(2," Bought "),n()())}function Pt(t,l){t&1&&(a(0,"th",9)(1,"span",23),r(2," Sold "),n()())}function ht(t,l){t&1&&(a(0,"th",9)(1,"span",24),r(2," T.In "),n()())}function Ft(t,l){t&1&&(a(0,"th",9)(1,"span",25),r(2," T.Out "),n()())}function wt(t,l){t&1&&(a(0,"th",9)(1,"span",26),r(2," Adj "),n()())}function Et(t,l){t&1&&(a(0,"th",9)(1,"span",27),r(2," End "),n()())}function Dt(t,l){t&1&&(a(0,"th",9)(1,"span",28),r(2," Now "),n()())}function bt(t,l){if(t&1&&(a(0,"td",30),r(1),n()),t&2){let e=c().$implicit;i(),u(" ",e.ProductCode," ")}}function Bt(t,l){if(t&1&&(a(0,"td",31),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;_("colsFontColor",e.Start),i(),u(" ",f(2,2,e.Start)," ")}}function Lt(t,l){if(t&1&&(a(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.Bought)," ")}}function Ot(t,l){if(t&1&&(a(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.Sold)," ")}}function Vt(t,l){if(t&1&&(a(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.TransferredIn)," ")}}function kt(t,l){if(t&1&&(a(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),u(" ",f(2,1,e.TransferredOut)," ")}}function Mt(t,l){if(t&1&&(a(0,"td",31),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;_("colsFontColor",e.Adjustment),i(),u(" ",e.Adjustment<0?e.Adjustment*-1:f(2,2,e.Adjustment)," ")}}function Nt(t,l){if(t&1&&(a(0,"td",31),r(1),n()),t&2){let e=c().$implicit;_("colsFontColor",e.End),i(),u(" ",e.End," ")}}function jt(t,l){if(t&1&&(a(0,"td",31),r(1),n()),t&2){let e=c().$implicit;_("colsFontColor",e.Now),i(),u(" ",e.Now," ")}}function qt(t,l){if(t&1&&(a(0,"tr")(1,"td")(2,"a",29),r(3),n()(),a(4,"td")(5,"a",29),r(6),n()(),v(7,bt,2,1,"td",30)(8,Bt,3,4,"td",31)(9,Lt,3,3,"td",32)(10,Ot,3,3,"td",33)(11,Vt,3,3,"td",32)(12,kt,3,3,"td",33)(13,Mt,3,4,"td",31)(14,Nt,2,2,"td",31)(15,jt,2,2,"td",31),n()),t&2){let e=l.$implicit,m=c(2);i(2),_("routerLink",D(15,xt))("queryParams",b(16,ft,e.OutletID)),i(),u(" ",e.OutletName," "),i(2),_("routerLink",D(18,yt))("queryParams",b(19,ft,e.ProductID)),i(),E(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)}}function Wt(t,l){if(t&1&&M(0,qt,16,21,"tr",null,k),t&2){let e=c();N(e.infiniteList)}}function At(t,l){t&1&&(a(0,"tr")(1,"td",34),w(2,"app-empty-state"),n()())}function Gt(t,l){if(t&1&&(a(0,"td",31),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",f(2,5,C(1,2,e.infiniteList,"Start"))),i(3),u(" ",f(5,10,C(4,7,e.infiniteList,"Start"))," ")}}function Rt(t,l){if(t&1&&(a(0,"td",32),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,C(2,1,e.infiniteList,"Bought"))," ")}}function Ht(t,l){if(t&1&&(a(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,C(2,1,e.infiniteList,"Sold"))," ")}}function zt(t,l){if(t&1&&(a(0,"td",32),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,C(2,1,e.infiniteList,"TransferredIn"))," ")}}function Kt(t,l){if(t&1&&(a(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),u(" ",f(3,4,C(2,1,e.infiniteList,"TransferredOut"))," ")}}function Qt(t,l){if(t&1&&(a(0,"td",37),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",f(2,5,C(1,2,e.infiniteList,"Adjustment"))),i(3),u(" ",f(5,10,C(4,7,e.infiniteList,"Adjustment"))," ")}}function Jt(t,l){if(t&1&&(a(0,"td",31),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",f(2,5,C(1,2,e.infiniteList,"End"))),i(3),u(" ",f(5,10,C(4,7,e.infiniteList,"End"))," ")}}function Ut(t,l){if(t&1&&(a(0,"td",31),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",f(2,5,C(1,2,e.infiniteList,"Now"))),i(3),u(" ",f(5,10,C(4,7,e.infiniteList,"Now"))," ")}}function Xt(t,l){if(t&1&&(a(0,"tfoot")(1,"tr",35)(2,"th",36),r(3," Total: "),n(),v(4,Gt,6,12,"td",31)(5,Rt,4,6,"td",32)(6,Ht,4,6,"td",33)(7,zt,4,6,"td",32)(8,Kt,4,6,"td",33)(9,Qt,6,12,"td",37)(10,Jt,6,12,"td",31)(11,Ut,6,12,"td",31),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 Yt(t,l){if(t&1){let e=P();a(0,"span",44),h("click",function(){x(e);let o=c(2);return y(o.StoreRowsCountAPIResult("inventory/GetCountProductInventoryTraffic"))}),a(1,"i",45),r(2,"?"),n()()}}function Zt(t,l){if(t&1&&(a(0,"span"),r(1),d(2,"number"),n()),t&2){let e=c(2);i(),E(f(2,1,e.listTotal))}}function $t(t,l){if(t&1){let e=P();a(0,"div",10)(1,"div",38)(2,"div",39),r(3),d(4,"number"),v(5,Yt,3,0,"span",40)(6,Zt,3,3,"span",41),r(7),n()(),a(8,"a",42),h("click",function(){x(e);let o=c();return y(o.NextPage(!0))}),w(9,"i",43),r(10," Next"),n()()}if(t&2){let e=c();i(3),u(" Showing 1 - ",f(4,4,e.infiniteList.length)," of "),i(2),_("ngIf",!e.pageData.HideStoreApiCount),i(),_("ngIf",e.pageData.HideStoreApiCount),i(),u(" records ~ ",e.pageData.Filter.PageNumber," Page ")}}var Ct=class t extends U{constructor(e,m,o,s,B,F,te){super(e,m,"inventory/GetProductInventoryTraffic","inventoryloader/GetProductInventoryTraffic",void 0,void 0,!0);this.httpService=m;this.csvConverter=o;this.pageTitle=s;this.converter=B;this.roleService=F;this.matDialog=te;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"}};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:30,vars:18,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"],[3,"routerLink","queryParams"],[1,"text-end"],[1,"text-end",3,"colsFontColor"],[1,"text-end","text-success"],[1,"text-end","text-danger"],["colspan","11"],[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,o){if(m&1){let s=P();a(0,"mainpanel-cmp",1),h("onSubmit",function(){return x(s),y(o.searchFromPageOne())}),S("filterChange",function(F){return x(s),I(o.pageData.Filter,F)||(o.pageData.Filter=F),y(F)}),a(1,"actions"),v(2,vt,3,0,"button",2),n(),a(3,"filters"),v(4,Tt,17,20,"ng-template",null,0,j),n(),a(6,"content")(7,"div",3)(8,"div",4)(9,"table",5)(10,"thead",6)(11,"tr")(12,"th",7),r(13,"Outlet"),n(),a(14,"th"),r(15,"Product"),n(),v(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,wt,3,0,"th",9)(23,Et,3,0,"th",9)(24,Dt,3,0,"th",9),n()(),a(25,"tbody"),v(26,Wt,2,0)(27,At,3,0,"tr"),n(),v(28,Xt,12,9,"tfoot"),n()(),v(29,$t,11,6,"div",10),n()()()}m&2&&(_("pageData",o.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),g("filter",o.pageData.Filter),_("column",o.column),i(2),_("ngIf",o.roleService.global.Export),i(14),p(o.column.code.selected?16:-1),i(),p(o.column.start.selected?17:-1),i(),p(o.column.bought.selected?18:-1),i(),p(o.column.sold.selected?19:-1),i(),p(o.column.transferredIn.selected?20:-1),i(),p(o.column.transferredOut.selected?21:-1),i(),p(o.column.adjust.selected?22:-1),i(),p(o.column.end.selected?23:-1),i(),p(o.column.now.selected?24:-1),i(2),p(o.infiniteList&&o.infiniteList.length>0?26:27),i(2),p(o.infiniteList&&o.infiniteList.length>0?28:-1),i(),p(o.infiniteList&&o.infiniteList.length>0?29:-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};
@@ -1 +1 @@
1
- import{d as $,e as ee}from"./chunk-VSF6PYZW.js";import"./chunk-VHAM2DWK.js";import{a as z}from"./chunk-JPXXXD26.js";import{a as H,b as G,c as A}from"./chunk-ITLMINSX.js";import{a as oe,b as ne}from"./chunk-HMER2IC5.js";import{f as te}from"./chunk-HA6VJJLI.js";import{c as ie}from"./chunk-SV4HJFAL.js";import{b as Q}from"./chunk-TZ74SUXJ.js";import{a as q}from"./chunk-V52QD5BS.js";import"./chunk-IU526HWZ.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{e as Y,f as Z}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 K}from"./chunk-DV4MQXAE.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-CD3BSGAP.js";import"./chunk-JOXTERIM.js";import{N as X,g as U}from"./chunk-5OS5VELO.js";import"./chunk-XYB3YDKL.js";import"./chunk-6ZN7JR6K.js";import"./chunk-GIKR6Y2K.js";import{g as J}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 W,h as B,o as R}from"./chunk-RVXZOIFQ.js";import"./chunk-TDO7VOF5.js";import"./chunk-NOQM2VPB.js";import{d as k}from"./chunk-ZZGSAFGO.js";import"./chunk-PZANARAM.js";import{$a as p,Ac as P,Bc as T,Eb as b,Fc as V,Gb as M,Hb as O,Ib as i,Jb as o,Kb as v,Ob as _,Qb as S,Rb as m,Yd as j,Zc as F,db as u,ec as l,fc as h,gc as w,jc as x,jd as N,kb as E,kc as C,lc as y,ob as I,qb as f,va as c,vb as d,wa as s,zc as D}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";function re(r,g){if(r&1){let e=_();i(0,"button",5),S("click",function(){c(e);let t=m();return s(t.openExportModal())}),v(1,"i",6),l(2," Export "),o()}}function le(r,g){if(r&1){let e=_();i(0,"h6"),l(1,"Outlet"),o(),i(2,"outlet-selector",7),y("ngModelChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Outlet,t)||(a.pageData.Filter.Outlet=t),s(t)}),o(),i(3,"h6"),l(4,"Category"),o(),i(5,"POS-product-category-select",8),y("selectedCategoryIDChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Category,t)||(a.pageData.Filter.Category=t),s(t)}),o(),i(6,"h6"),l(7,"Discontinued"),o(),i(8,"radio-options",9),y("modelChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Discontinued,t)||(a.pageData.Filter.Discontinued=t),s(t)}),o()}if(r&2){let e=m();p(2),d("accessType",2),x("ngModel",e.pageData.Filter.Outlet),p(3),x("selectedCategoryID",e.pageData.Filter.Category),d("showClear",!0),p(3),d("options",e.pageData==null||e.pageData.Options==null?null:e.pageData.Options.Discontinued),x("model",e.pageData.Filter.Discontinued)}}function pe(r,g){if(r&1&&(i(0,"tr")(1,"td"),l(2),o(),i(3,"td"),l(4),o(),i(5,"td",20),l(6),D(7,"quantityFraction"),o()()),r&2){let e=g.$implicit;p(2),h(e.EntityName),p(2),h(e.Name),p(2),w(" ",P(7,3,e.Inventory)," ")}}function me(r,g){if(r&1){let e=_();i(0,"div",10)(1,"div",11)(2,"table",12),S("matSortChange",function(t){c(e);let a=m();return s(a.onSortData(t))}),i(3,"thead",13)(4,"tr",14)(5,"th",15),l(6,"Outlet"),o(),i(7,"th",16),l(8,"Storage Location"),o(),i(9,"th",17),l(10," On Hand "),o()()(),i(11,"tbody"),M(12,pe,8,5,"tr",null,b),o(),i(14,"tfoot")(15,"tr",18),v(16,"td",19),i(17,"td",19),l(18,"Total :"),o(),i(19,"td",20),l(20),D(21,"sum"),D(22,"quantityFraction"),o()()()(),i(23,"POS-complex-pagination",21),S("jumpToPage",function(){c(e);let t=m();return s(t.getListData())})("previousPage",function(){c(e);let t=m();return s(t.getListData())})("nextPage",function(){c(e);let t=m();return s(t.getListData())}),o()()()}if(r&2){let e=m();p(12),O(e.data.Data),p(8),w(" ",P(22,6,T(21,3,e.data.Data,"Inventory"))," "),p(3),d("total",e.data.Data==null?null:e.data.Data.length)("pageData",e.pageData)}}var ae=class r extends q{constructor(e,n,t,a){super(e,n,"Inventory/GetProductStorageLocation","InventoryLoader/InventoryReport");this.httpService=n;this.dialog=t;this.roleService=a}datasource;postInit(e){this.datasource=JSON.parse(JSON.stringify(e.Data))}openExportModal(){this.dialog.open(Q,{data:{title:"Storage Location",exportTypes:[{ID:"Inventory/GetProductStorageLocation",Value:"Default",FileName:"Storage Location"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"inventory/GetCountProductStorageLocation",pagination:!0}})}onSortData(e){let n=this.data.Data?.slice();if(!e.active||e.direction===""){this.data.Data=this.datasource;return}let t=e.direction==="asc";this.data.Data=n.sort((a,L)=>this.compare(a[e.active],L[e.active],t))}static \u0275fac=function(n){return new(n||r)(u(K),u(j),u(J),u(k))};static \u0275cmp=E({type:r,selectors:[["app-storage-location"]],features:[I],decls:9,vars:5,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"d-flex"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["class","container-fluid mt-3",4,"ngIf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],["placeholder","Choose an outlet","appendTo","body",3,"ngModelChange","accessType","ngModel"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","Discontinued",3,"modelChange","options","model"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[1,"header"],["mat-sort-header","EntityName",2,"width","450px"],["mat-sort-header","Brand"],["mat-sort-header","Inventory","arrowPosition","before",1,"text-end",2,"padding-right","100px","width","190px"],[1,"table-footer","fw-bold"],[1,"empty-column"],[1,"text-end",2,"padding-right","100px"],["api","inventory/GetCountProductStorageLocation",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(n,t){if(n&1){let a=_();i(0,"mainpanel-cmp",1),S("onSubmit",function(){return c(a),s(t.searchFromPageOne())}),i(1,"actions")(2,"div",2),f(3,re,3,0,"button",3),o()(),i(4,"filters"),f(5,le,9,6,"ng-template",null,0,V),o(),i(7,"content"),f(8,me,24,8,"div",4),o()()}n&2&&(d("pageData",t.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(3),d("ngIf",t.roleService.global.Export),p(5),d("ngIf",t.data))},dependencies:[N,F,Z,Y,z,X,U,ee,$,te,ie,W,B,R,ne,oe,A,H,G],encapsulation:2})};export{ae as StorageLocationComponent};
1
+ import{d as $,e as ee}from"./chunk-VSF6PYZW.js";import"./chunk-VHAM2DWK.js";import{a as z}from"./chunk-JPXXXD26.js";import{a as H,b as G,c as A}from"./chunk-ITLMINSX.js";import{a as oe,b as ne}from"./chunk-HMER2IC5.js";import{f as te}from"./chunk-PHGUFK7B.js";import{c as ie}from"./chunk-W6A2EZUH.js";import{b as Q}from"./chunk-TZ74SUXJ.js";import{a as q}from"./chunk-IGEAG6HP.js";import"./chunk-EYE63KIO.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{e as Y,f as Z}from"./chunk-7V7Q67KX.js";import"./chunk-7S4WUQBK.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-RXIPRX4H.js";import{b as K}from"./chunk-TZKLOUVL.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-CD3BSGAP.js";import"./chunk-JOXTERIM.js";import{N as X,g as U}from"./chunk-5OS5VELO.js";import"./chunk-XYB3YDKL.js";import"./chunk-7VKFVS7K.js";import"./chunk-ZVDY66SR.js";import{g as J}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 W,h as B,o as R}from"./chunk-RVXZOIFQ.js";import"./chunk-D5P4CYL5.js";import"./chunk-QEZV5DGZ.js";import{d as k}from"./chunk-ZZGSAFGO.js";import"./chunk-HIALMESF.js";import{$a as p,Ac as P,Bc as T,Eb as b,Fc as V,Gb as M,Hb as O,Ib as i,Jb as o,Kb as v,Ob as _,Qb as S,Rb as m,Yd as j,Zc as F,db as u,ec as l,fc as h,gc as w,jc as x,jd as N,kb as E,kc as C,lc as y,ob as I,qb as f,va as c,vb as d,wa as s,zc as D}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";function re(r,g){if(r&1){let e=_();i(0,"button",5),S("click",function(){c(e);let t=m();return s(t.openExportModal())}),v(1,"i",6),l(2," Export "),o()}}function le(r,g){if(r&1){let e=_();i(0,"h6"),l(1,"Outlet"),o(),i(2,"outlet-selector",7),y("ngModelChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Outlet,t)||(a.pageData.Filter.Outlet=t),s(t)}),o(),i(3,"h6"),l(4,"Category"),o(),i(5,"POS-product-category-select",8),y("selectedCategoryIDChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Category,t)||(a.pageData.Filter.Category=t),s(t)}),o(),i(6,"h6"),l(7,"Discontinued"),o(),i(8,"radio-options",9),y("modelChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Discontinued,t)||(a.pageData.Filter.Discontinued=t),s(t)}),o()}if(r&2){let e=m();p(2),d("accessType",2),x("ngModel",e.pageData.Filter.Outlet),p(3),x("selectedCategoryID",e.pageData.Filter.Category),d("showClear",!0),p(3),d("options",e.pageData==null||e.pageData.Options==null?null:e.pageData.Options.Discontinued),x("model",e.pageData.Filter.Discontinued)}}function pe(r,g){if(r&1&&(i(0,"tr")(1,"td"),l(2),o(),i(3,"td"),l(4),o(),i(5,"td",20),l(6),D(7,"quantityFraction"),o()()),r&2){let e=g.$implicit;p(2),h(e.EntityName),p(2),h(e.Name),p(2),w(" ",P(7,3,e.Inventory)," ")}}function me(r,g){if(r&1){let e=_();i(0,"div",10)(1,"div",11)(2,"table",12),S("matSortChange",function(t){c(e);let a=m();return s(a.onSortData(t))}),i(3,"thead",13)(4,"tr",14)(5,"th",15),l(6,"Outlet"),o(),i(7,"th",16),l(8,"Storage Location"),o(),i(9,"th",17),l(10," On Hand "),o()()(),i(11,"tbody"),M(12,pe,8,5,"tr",null,b),o(),i(14,"tfoot")(15,"tr",18),v(16,"td",19),i(17,"td",19),l(18,"Total :"),o(),i(19,"td",20),l(20),D(21,"sum"),D(22,"quantityFraction"),o()()()(),i(23,"POS-complex-pagination",21),S("jumpToPage",function(){c(e);let t=m();return s(t.getListData())})("previousPage",function(){c(e);let t=m();return s(t.getListData())})("nextPage",function(){c(e);let t=m();return s(t.getListData())}),o()()()}if(r&2){let e=m();p(12),O(e.data.Data),p(8),w(" ",P(22,6,T(21,3,e.data.Data,"Inventory"))," "),p(3),d("total",e.data.Data==null?null:e.data.Data.length)("pageData",e.pageData)}}var ae=class r extends q{constructor(e,n,t,a){super(e,n,"Inventory/GetProductStorageLocation","InventoryLoader/InventoryReport");this.httpService=n;this.dialog=t;this.roleService=a}datasource;postInit(e){this.datasource=JSON.parse(JSON.stringify(e.Data))}openExportModal(){this.dialog.open(Q,{data:{title:"Storage Location",exportTypes:[{ID:"Inventory/GetProductStorageLocation",Value:"Default",FileName:"Storage Location"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"inventory/GetCountProductStorageLocation",pagination:!0}})}onSortData(e){let n=this.data.Data?.slice();if(!e.active||e.direction===""){this.data.Data=this.datasource;return}let t=e.direction==="asc";this.data.Data=n.sort((a,L)=>this.compare(a[e.active],L[e.active],t))}static \u0275fac=function(n){return new(n||r)(u(K),u(j),u(J),u(k))};static \u0275cmp=E({type:r,selectors:[["app-storage-location"]],features:[I],decls:9,vars:5,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"d-flex"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["class","container-fluid mt-3",4,"ngIf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],["placeholder","Choose an outlet","appendTo","body",3,"ngModelChange","accessType","ngModel"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","Discontinued",3,"modelChange","options","model"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[1,"header"],["mat-sort-header","EntityName",2,"width","450px"],["mat-sort-header","Brand"],["mat-sort-header","Inventory","arrowPosition","before",1,"text-end",2,"padding-right","100px","width","190px"],[1,"table-footer","fw-bold"],[1,"empty-column"],[1,"text-end",2,"padding-right","100px"],["api","inventory/GetCountProductStorageLocation",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(n,t){if(n&1){let a=_();i(0,"mainpanel-cmp",1),S("onSubmit",function(){return c(a),s(t.searchFromPageOne())}),i(1,"actions")(2,"div",2),f(3,re,3,0,"button",3),o()(),i(4,"filters"),f(5,le,9,6,"ng-template",null,0,V),o(),i(7,"content"),f(8,me,24,8,"div",4),o()()}n&2&&(d("pageData",t.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(3),d("ngIf",t.roleService.global.Export),p(5),d("ngIf",t.data))},dependencies:[N,F,Z,Y,z,X,U,ee,$,te,ie,W,B,R,ne,oe,A,H,G],encapsulation:2})};export{ae as StorageLocationComponent};
@@ -1 +1 @@
1
- import{a as Ce}from"./chunk-A3CWPPXF.js";import{a as Me}from"./chunk-YNDNTAII.js";import{a as Pe}from"./chunk-IU526HWZ.js";import{a as ve}from"./chunk-XMYLHF4C.js";import{b as be,c as Se}from"./chunk-JOXTERIM.js";import{a as ue}from"./chunk-6ZN7JR6K.js";import"./chunk-GIKR6Y2K.js";import"./chunk-ZHY3BUQJ.js";import{F as he,b as de,h as me,o as fe}from"./chunk-RVXZOIFQ.js";import{a as T,c as h}from"./chunk-TDO7VOF5.js";import{a as ge}from"./chunk-NOQM2VPB.js";import{a as M,d as I}from"./chunk-ZZGSAFGO.js";import{a as ce}from"./chunk-PZANARAM.js";import{$ as H,$a as c,Bc as te,E,Ib as o,Jb as s,Kb as p,Nd as oe,Pd as ae,Qb as C,Qd as b,Rb as Q,Rd as se,Sd as le,Td as B,Vb as Z,Vd as pe,Wa as J,Wc as ie,Yc as ne,d as G,da as D,db as v,ec as m,fc as V,gc as $,ja as d,jd as re,ka as y,kb as q,lb as x,ma as _,na as l,qb as j,rc as K,sc as X,ub as Y,vb as f,xb as W,zb as F,zc as ee}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var r=class e{constructor(i,t){this.authService=i;this.router=t}canLoad(i,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(i){let t="/menu";i.forEach(a=>t+=`/${a.path}`);let n=this.router.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(h),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(i){this.toastrService=i;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(i){console.error(i)}}showAlert(i,t,n,u){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:i,icon:u});g.onerror=R=>{this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}}catch(g){console.error(g)}else this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}setBody(i,t){return this.hasUrl(t)&&(i=`<a href="${t}" target="_blank" class="ps-0">${i}</a>`),i}hasUrl(i){return!!(i&&i.length!==0)}static \u0275fac=function(t){return new(t||e)(_(pe))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var _e=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=l(I);authService=l(h);menu=_e;filteredMenu=[];initFilteredMenu(){this.filteredMenu=this.menu.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?this.role.report.View:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(i){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var A=class e{role=l(I);authService=l(h);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=Oe.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&i!=2&&i!=3:t.T=="My Sales"?i!=2&&i!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,i)=>({"full-container":e,"subscription-bar-visible":i}),Ue=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",35),p(1,"i",36),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;f("routerLink",t==null?null:t.U),c(),F((t==null?null:t.I)+" me-2"),c(2),V(t==null?null:t.T)}}function Re(e,i){if(e&1&&(o(0,"li",37,0)(2,"a",38),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Q();f("routerLinkActiveOptions",n.isActiveMatchOptions),Y("data-cy",t==null?null:t.T),c(2),f("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",K(7,Ue,t==null?null:t.U)),c(),F(t==null?null:t.I),c(2),V(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,R,z){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;R.initFilteredMenu(),z.initFilteredMenu(),this.leftSidebarMenu=R.filteredMenu,this.topMenu=z.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(xe=>this.isNavOpen=xe),this.destroy$=new G,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=ce.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(i=>i instanceof oe),H(null),D(this.destroy$)).subscribe(i=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill"))&&(this.isFullContainer=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let i=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(i)&&M.isGuid(i)?this.signalRClientService.SubscribeGroup(i):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let n=JSON.parse(t),u="//res.cloudinary.com/pos/image/upload/v1657006791/icons/info-new.png";M.IsNotEmpty(n.Icon)&&(u=n.Icon),this.notificationAlertService.showAlert(n.Body,n.Header,n.URL,u)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(i){return M.IsNotEmpty(i)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(ve),v(ue),v(w),v(b),v(h),v(ge),v(k),v(A))};static \u0275cmp=q({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:52,vars:19,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],["class","dropdown-item h5",3,"routerLink",4,"ngFor","ngForOf"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions",4,"ngFor","ngForOf"],["id","full-container",1,"main-panel",3,"ngClass"],[1,"dropdown-item","h5",3,"routerLink"],["aria-hidden","true"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,n){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return n.toggleMenu()}),p(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return n.onShowDropdown()}),m(7),ee(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),j(13,Ne,4,4,"a",11),o(14,"a",12)(15,"div",13)(16,"div"),p(17,"i",14),o(18,"span"),m(19,"Chat Support"),s()(),o(20,"div",15),C("click",function(a){return a.stopPropagation()}),o(21,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(22,"label",17),s()()(),o(23,"a",18),C("click",function(){return n.logout()}),p(24,"i",19),o(25,"span"),m(26,"Log Out"),s()(),p(27,"div",20),o(28,"div",21),m(29," Links "),s(),o(30,"a",22),p(31,"i",23),o(32,"span"),m(33,"What's New"),p(34,"i",24),s()(),o(35,"a",25),p(36,"i",26),o(37,"span"),m(38,"Help Center"),s()(),o(39,"a",27),p(40,"i",28),o(41,"span"),m(42,"App Store"),s()(),o(43,"a",29),p(44,"i",30),o(45,"span"),m(46,"Company Blog"),s()()()()(),o(47,"div",31)(48,"ul",32),j(49,Re,6,9,"li",33),s()()(),o(50,"div",34),p(51,"router-outlet"),s()()),t&2&&(W("nav-open",n.isNavOpen),c(),f("ngClass",n.toggleSideMenu?"collapses":""),c(2),f("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),f("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),$(" ",te(8,13,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),$("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),f("ngForOf",n.topMenu),c(8),f("ngModel",!n.isHideIntercomLauncher),c(9),Z("href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion,"",J),c(19),f("ngForOf",n.leftSidebarMenu),c(),f("ngClass",X(16,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[be,ae,se,le,de,me,fe,ie,ne,Me],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}}.full-container[_ngcontent-%COMP%]{padding-top:0!important}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function Ee(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}var O=(e,i)=>{let t=l(h),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=Ee(i),u.navigate(["/"]),!1):e.path=="Dashboard"?De():!0};function De(){let e=l(b),i=l(h),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var L=class e{paymentStorageService=l(Ce);canActivate(i,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var U=class e{reportService=l(Pe);canActivate(i,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var je=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-O3NKN7KT.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-2O3TR26P.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[U]},{path:"Sell",loadChildren:()=>import("./chunk-EHV62EGB.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-7MYFXXHY.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-OAY4ZDTS.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-H66NFIQQ.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-3JVX2T6M.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-ZHIGBBGN.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-IRIE5DZT.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-ZFXZABWG.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-NII66FBK.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-EOY5VQKV.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-CKSMLIVU.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-FKYUI33J.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-OSSHGIDA.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-CRJOVQ56.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-Q7GDNJAI.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-XGGQUHUR.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-4ODUHZAT.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-4WW3BBDP.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-LQ3Q52LD.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[L]},{path:"Promotion",loadChildren:()=>import("./chunk-EJFVZSWQ.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-W7R2NCKA.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-T5HYNGEA.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-D5QLS4SZ.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-6IQQC2YT.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-C32V5IHL.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],N=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[B.forChild(je),B]})};var ye=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Se,N,he,re]})};export{ye as MenuMasterModule};
1
+ import{a as Ce}from"./chunk-CXRVPHHO.js";import{a as Me}from"./chunk-YNDNTAII.js";import{a as Pe}from"./chunk-EYE63KIO.js";import{a as ve}from"./chunk-XMYLHF4C.js";import{b as be,c as Se}from"./chunk-JOXTERIM.js";import{a as ue}from"./chunk-7VKFVS7K.js";import"./chunk-ZVDY66SR.js";import"./chunk-ZHY3BUQJ.js";import{F as he,b as de,h as me,o as fe}from"./chunk-RVXZOIFQ.js";import{a as T,c as h}from"./chunk-D5P4CYL5.js";import{a as ge}from"./chunk-QEZV5DGZ.js";import{a as M,d as I}from"./chunk-ZZGSAFGO.js";import{a as ce}from"./chunk-HIALMESF.js";import{$ as H,$a as c,Bc as te,E,Ib as o,Jb as s,Kb as p,Nd as oe,Pd as ae,Qb as C,Qd as b,Rb as Q,Rd as se,Sd as le,Td as B,Vb as Z,Vd as pe,Wa as J,Wc as ie,Yc as ne,d as G,da as D,db as v,ec as m,fc as V,gc as $,ja as d,jd as re,ka as y,kb as q,lb as x,ma as _,na as l,qb as j,rc as K,sc as X,ub as Y,vb as f,xb as W,zb as F,zc as ee}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var r=class e{constructor(i,t){this.authService=i;this.router=t}canLoad(i,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(i){let t="/menu";i.forEach(a=>t+=`/${a.path}`);let n=this.router.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(h),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(i){this.toastrService=i;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(i){console.error(i)}}showAlert(i,t,n,u){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:i,icon:u});g.onerror=R=>{this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}}catch(g){console.error(g)}else this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}setBody(i,t){return this.hasUrl(t)&&(i=`<a href="${t}" target="_blank" class="ps-0">${i}</a>`),i}hasUrl(i){return!!(i&&i.length!==0)}static \u0275fac=function(t){return new(t||e)(_(pe))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var _e=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=l(I);authService=l(h);menu=_e;filteredMenu=[];initFilteredMenu(){this.filteredMenu=this.menu.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?this.role.report.View:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(i){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var A=class e{role=l(I);authService=l(h);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=Oe.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&i!=2&&i!=3:t.T=="My Sales"?i!=2&&i!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,i)=>({"full-container":e,"subscription-bar-visible":i}),Ue=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",35),p(1,"i",36),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;f("routerLink",t==null?null:t.U),c(),F((t==null?null:t.I)+" me-2"),c(2),V(t==null?null:t.T)}}function Re(e,i){if(e&1&&(o(0,"li",37,0)(2,"a",38),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Q();f("routerLinkActiveOptions",n.isActiveMatchOptions),Y("data-cy",t==null?null:t.T),c(2),f("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",K(7,Ue,t==null?null:t.U)),c(),F(t==null?null:t.I),c(2),V(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,R,z){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;R.initFilteredMenu(),z.initFilteredMenu(),this.leftSidebarMenu=R.filteredMenu,this.topMenu=z.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(xe=>this.isNavOpen=xe),this.destroy$=new G,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=ce.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(i=>i instanceof oe),H(null),D(this.destroy$)).subscribe(i=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill"))&&(this.isFullContainer=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let i=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(i)&&M.isGuid(i)?this.signalRClientService.SubscribeGroup(i):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let n=JSON.parse(t),u="//res.cloudinary.com/pos/image/upload/v1657006791/icons/info-new.png";M.IsNotEmpty(n.Icon)&&(u=n.Icon),this.notificationAlertService.showAlert(n.Body,n.Header,n.URL,u)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(i){return M.IsNotEmpty(i)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(ve),v(ue),v(w),v(b),v(h),v(ge),v(k),v(A))};static \u0275cmp=q({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:52,vars:19,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],["class","dropdown-item h5",3,"routerLink",4,"ngFor","ngForOf"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions",4,"ngFor","ngForOf"],["id","full-container",1,"main-panel",3,"ngClass"],[1,"dropdown-item","h5",3,"routerLink"],["aria-hidden","true"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,n){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return n.toggleMenu()}),p(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return n.onShowDropdown()}),m(7),ee(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),j(13,Ne,4,4,"a",11),o(14,"a",12)(15,"div",13)(16,"div"),p(17,"i",14),o(18,"span"),m(19,"Chat Support"),s()(),o(20,"div",15),C("click",function(a){return a.stopPropagation()}),o(21,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(22,"label",17),s()()(),o(23,"a",18),C("click",function(){return n.logout()}),p(24,"i",19),o(25,"span"),m(26,"Log Out"),s()(),p(27,"div",20),o(28,"div",21),m(29," Links "),s(),o(30,"a",22),p(31,"i",23),o(32,"span"),m(33,"What's New"),p(34,"i",24),s()(),o(35,"a",25),p(36,"i",26),o(37,"span"),m(38,"Help Center"),s()(),o(39,"a",27),p(40,"i",28),o(41,"span"),m(42,"App Store"),s()(),o(43,"a",29),p(44,"i",30),o(45,"span"),m(46,"Company Blog"),s()()()()(),o(47,"div",31)(48,"ul",32),j(49,Re,6,9,"li",33),s()()(),o(50,"div",34),p(51,"router-outlet"),s()()),t&2&&(W("nav-open",n.isNavOpen),c(),f("ngClass",n.toggleSideMenu?"collapses":""),c(2),f("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),f("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),$(" ",te(8,13,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),$("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),f("ngForOf",n.topMenu),c(8),f("ngModel",!n.isHideIntercomLauncher),c(9),Z("href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion,"",J),c(19),f("ngForOf",n.leftSidebarMenu),c(),f("ngClass",X(16,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[be,ae,se,le,de,me,fe,ie,ne,Me],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}}.full-container[_ngcontent-%COMP%]{padding-top:0!important}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function Ee(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}var O=(e,i)=>{let t=l(h),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=Ee(i),u.navigate(["/"]),!1):e.path=="Dashboard"?De():!0};function De(){let e=l(b),i=l(h),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var L=class e{paymentStorageService=l(Ce);canActivate(i,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var U=class e{reportService=l(Pe);canActivate(i,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var je=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-HYRNR45J.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-MDY5R453.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[U]},{path:"Sell",loadChildren:()=>import("./chunk-MXUYJQOT.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-AJCH3WAF.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-UP43YMU4.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-MDGMZ65B.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-INCYKSJF.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-FF56HWOF.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-MMX7JWK6.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-U5OIRIFT.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-YWGMCAEP.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-WYHR2ET7.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-CX4UR7ZZ.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-RAIYXIUN.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-3WSASNIT.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-IUDDIQMT.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-QU4LPPFI.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-E7L36INB.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-QDE7PB5F.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-TP762HYD.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-4SFHOQ3Y.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[L]},{path:"Promotion",loadChildren:()=>import("./chunk-NZXT22JH.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-RDLECCOU.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-ZBTG35T6.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-AQUQUDDZ.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-D6VG5PSE.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-A7R2DZD3.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],N=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[B.forChild(je),B]})};var ye=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Se,N,he,re]})};export{ye as MenuMasterModule};
@@ -1,4 +1,4 @@
1
- import{a as Be}from"./chunk-5ZMTBZT3.js";import{a as pt,b as cn}from"./chunk-PRBPKAI4.js";import{a as xe}from"./chunk-K7KRPIN7.js";import{a as mn}from"./chunk-3RWVYWJF.js";import{a as pn}from"./chunk-XA6BOS45.js";import{a as sn}from"./chunk-G5P4GFMX.js";import{a as ln}from"./chunk-42T2PR4J.js";import{b as rn}from"./chunk-YRGGDRUH.js";import{a as ee}from"./chunk-M3HHWYKD.js";import{a as te,b as ne}from"./chunk-3A4C23H5.js";import"./chunk-BYXBJQAS.js";import{a as Zt}from"./chunk-PIYM2FOP.js";import{b as qt,c as jt,d as Qt,e as zt}from"./chunk-EMP32K7Q.js";import{e as en,f as tn}from"./chunk-TSBV5MA4.js";import{a as on,b as an}from"./chunk-5JJSLRVS.js";import{a as Jt}from"./chunk-CWITQVZH.js";import{a as nn}from"./chunk-KTCV3KOE.js";import{a as Xt}from"./chunk-KZDE63UL.js";import"./chunk-VGNMBCUC.js";import{b as Wt}from"./chunk-DV4MQXAE.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import{C as Ae}from"./chunk-CD3BSGAP.js";import{b as J,c as X}from"./chunk-JOXTERIM.js";import{G as Re,N as ce,O as Yt,o as Kt}from"./chunk-5OS5VELO.js";import{g as Gt}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import{a as st}from"./chunk-LE3BKIDY.js";import{a as ve}from"./chunk-2FWFPV5I.js";import{C as lt,G as we,ea as $t,k as Lt,la as rt,ma as Ve,r as Nt,s as ye,t as Ht,u as Z,ua as Ut}from"./chunk-EEEAUYZ6.js";import{F as Bt}from"./chunk-RVXZOIFQ.js";import"./chunk-TDO7VOF5.js";import"./chunk-NOQM2VPB.js";import{a as Pe,d as A}from"./chunk-ZZGSAFGO.js";import"./chunk-PZANARAM.js";import{$a as l,$b as F,Ac as x,Bc as W,Db as _,Eb as Ce,Fa as le,Fb as Tt,Fc as E,Gb as se,Hb as pe,Ib as o,Ja as h,Jb as a,Kb as p,Lb as Ie,Ma as nt,Mb as Se,Mc as fe,Nb as M,Nc as wt,Ob as N,Od as Ot,Qb as O,Qc as Vt,Qd as Rt,Rb as d,Rd as j,Sb as ot,Tb as at,Td as Q,Vd as At,Wa as vt,Wc as q,Y as _t,Yb as G,Yc as kt,Yd as Oe,Zb as de,Zc as H,_b as D,aa as tt,ad as Dt,bd as $,cd as Ft,db as re,dc as I,ec as m,ed as me,fa as bt,fc as y,gc as V,gd as Y,hc as It,ia as gt,ja as Ct,jc as St,jd as C,ka as ht,kb as g,kc as Et,kd as Me,lb as yt,lc as Pt,na as v,ob as Te,pc as Ee,qb as u,qc as k,rc as S,sc as U,t as et,tc as he,ub as z,va as P,vb as s,wa as w,wd as Mt,xb as Fe,yb as xt,za as De,zb as it,zc as b}from"./chunk-UXRO4UFY.js";import{a as ut,b as dt,j as ft}from"./chunk-7DCB7DB2.js";var un=["content"],hn=["header"],vn=["lefticon"],yn=["righticon"],xn=["closeicon"],dn=["*"];function Tn(t,r){t&1&&M(0)}function In(t,r){if(t&1&&(Ie(0),u(1,Tn,1,0,"ng-container",3),Se()),t&2){let e=d(2);l(),s("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)}}function Sn(t,r){if(t&1&&(o(0,"div",1),at(1),u(2,In,2,1,"ng-container",2),a()),t&2){let e=d();s("hidden",!e.selected),z("id",e.tabView.getTabContentId(e.id))("aria-hidden",!e.selected)("aria-labelledby",e.tabView.getTabHeaderActionId(e.id))("data-pc-name","tabpanel"),l(2),s("ngIf",(e.contentTemplate||e._contentTemplate)&&(e.cache?e.loaded:e.selected))}}var En=["previousicon"],Pn=["nexticon"],wn=["navbar"],Vn=["prevBtn"],kn=["nextBtn"],Dn=["inkbar"],Fn=["elementToObserve"],Mn=t=>({"p-tablist-viewport":t}),On=(t,r)=>({"p-tab":!0,"p-tab-active":t,"p-disabled":r});function Rn(t,r){t&1&&p(0,"ChevronLeftIcon"),t&2&&z("aria-hidden",!0)}function An(t,r){}function Bn(t,r){t&1&&u(0,An,0,0,"ng-template")}function Ln(t,r){if(t&1){let e=N();o(0,"button",12,3),O("click",function(){P(e);let n=d();return w(n.navBackward())}),u(2,Rn,1,1,"ChevronLeftIcon",13)(3,Bn,1,0,null,14),a()}if(t&2){let e=d();z("tabindex",e.tabindex)("aria-label",e.prevButtonAriaLabel),l(2),s("ngIf",!e.previousIconTemplate&&!e._previousIconTemplate),l(),s("ngTemplateOutlet",e.previousIconTemplate&&e._previousIconTemplate)}}function Nn(t,r){t&1&&M(0)}function Hn(t,r){if(t&1&&u(0,Nn,1,0,"ng-container",14),t&2){let e=d(2).$implicit;s("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function $n(t,r){}function Un(t,r){t&1&&u(0,$n,0,0,"ng-template")}function qn(t,r){if(t&1&&u(0,Un,1,0,null,14),t&2){let e=d(3).$implicit;s("ngTemplateOutlet",e.leftIconTemplate||e._leftIconTemplate)}}function jn(t,r){if(t&1&&p(0,"span",17),t&2){let e=d(3).$implicit;s("ngClass",e.leftIcon)}}function Qn(t,r){}function zn(t,r){t&1&&u(0,Qn,0,0,"ng-template")}function Gn(t,r){if(t&1&&u(0,zn,1,0,null,14),t&2){let e=d(3).$implicit;s("ngTemplateOutlet",e.rightIconTemplate||e._rightIconTemplate)}}function Wn(t,r){if(t&1&&p(0,"span",18),t&2){let e=d(3).$implicit;s("ngClass",e.rightIcon)}}function Kn(t,r){}function Yn(t,r){t&1&&u(0,Kn,0,0,"ng-template")}function Zn(t,r){if(t&1&&u(0,Yn,1,0,null,14),t&2){let e=d(4).$implicit;s("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Jn(t,r){if(t&1){let e=N();o(0,"TimesIcon",19),O("click",function(n){P(e);let c=d(4).$implicit,f=d();return w(f.close(n,c))}),a()}}function Xn(t,r){if(t&1&&u(0,Zn,1,1)(1,Jn,1,0,"TimesIcon"),t&2){let e=d(3).$implicit;_(e.closeIconTemplate||e._closeIconTemplate?0:1)}}function ei(t,r){if(t&1&&(u(0,qn,1,1)(1,jn,1,1,"span",17),m(2),u(3,Gn,1,1)(4,Wn,1,1,"span",18)(5,Xn,2,1)),t&2){let e=d(2).$implicit;_(e.leftIconTemplate||e._leftIconTemplate?0:e.leftIcon&&!e.leftIconTemplate&&!e._leftIconTemplate?1:-1),l(2),V(" ",e.header," "),l(),_(e.rightIconTemplate||e._rightIconTemplate?3:e.rightIcon&&!e.rightIconTemplate&&!e._rightIconTemplate?4:-1),l(2),_(e.closable?5:-1)}}function ti(t,r){if(t&1){let e=N();o(0,"button",15),O("click",function(n){P(e);let c=d().$implicit,f=d();return w(f.open(n,c))})("keydown",function(n){P(e);let c=d().$implicit,f=d();return w(f.onTabKeyDown(n,c))}),u(1,Hn,1,1,"ng-container")(2,ei,6,4),a(),p(3,"span",16,4)}if(t&2){let e=d(),i=e.$implicit,n=e.$index,c=d();it(i.headerStyleClass),s("ngClass",U(22,On,i.selected,i.disabled))("ngStyle",i.headerStyle)("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("disabled",i.disabled),z("role","tab")("id",c.getTabHeaderActionId(i.id))("aria-controls",c.getTabContentId(i.id))("aria-selected",i.selected)("tabindex",i.disabled||!i.selected?"-1":c.tabindex)("aria-disabled",i.disabled)("data-pc-index",n)("data-p-disabled",i.disabled)("data-pc-section","headeraction")("data-p-active",i.selected),l(),_(i.headerTemplate||i._headerTemplate?1:2),l(2),z("aria-hidden",!0)("data-pc-section","inkbar")}}function ni(t,r){if(t&1&&u(0,ti,5,25),t&2){let e=r.$implicit;_(e.closed?-1:0)}}function ii(t,r){}function oi(t,r){t&1&&u(0,ii,0,0,"ng-template")}function ai(t,r){if(t&1&&u(0,oi,1,0,null,14),t&2){let e=d(2);s("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function li(t,r){t&1&&p(0,"ChevronRightIcon"),t&2&&z("aria-hidden",!0)}function ri(t,r){if(t&1){let e=N();o(0,"button",20,5),O("click",function(){P(e);let n=d();return w(n.navForward())}),u(2,ai,1,1)(3,li,1,1,"ChevronRightIcon"),a()}if(t&2){let e=d();z("tabindex",e.tabindex)("aria-label",e.nextButtonAriaLabel),l(2),_(e.nextIconTemplate||e._nextIconTemplate?2:3)}}var si=({dt:t})=>`
1
+ import{a as Be}from"./chunk-5ZMTBZT3.js";import{a as pt,b as cn}from"./chunk-PRBPKAI4.js";import{a as xe}from"./chunk-K7KRPIN7.js";import{a as mn}from"./chunk-3RWVYWJF.js";import{a as pn}from"./chunk-XA6BOS45.js";import{a as sn}from"./chunk-IE6UBT7C.js";import{a as ln}from"./chunk-42T2PR4J.js";import{b as rn}from"./chunk-YRGGDRUH.js";import{a as ee}from"./chunk-M3HHWYKD.js";import{a as te,b as ne}from"./chunk-3A4C23H5.js";import"./chunk-BYXBJQAS.js";import{a as Zt}from"./chunk-PIYM2FOP.js";import{b as qt,c as jt,d as Qt,e as zt}from"./chunk-EMP32K7Q.js";import{e as en,f as tn}from"./chunk-7V7Q67KX.js";import{a as on,b as an}from"./chunk-5JJSLRVS.js";import{a as Jt}from"./chunk-CWITQVZH.js";import{a as nn}from"./chunk-KTCV3KOE.js";import{a as Xt}from"./chunk-KZDE63UL.js";import"./chunk-RXIPRX4H.js";import{b as Wt}from"./chunk-TZKLOUVL.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import{C as Ae}from"./chunk-CD3BSGAP.js";import{b as J,c as X}from"./chunk-JOXTERIM.js";import{G as Re,N as ce,O as Yt,o as Kt}from"./chunk-5OS5VELO.js";import{g as Gt}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import{a as st}from"./chunk-LE3BKIDY.js";import{a as ve}from"./chunk-2FWFPV5I.js";import{C as lt,G as we,ea as $t,k as Lt,la as rt,ma as Ve,r as Nt,s as ye,t as Ht,u as Z,ua as Ut}from"./chunk-EEEAUYZ6.js";import{F as Bt}from"./chunk-RVXZOIFQ.js";import"./chunk-D5P4CYL5.js";import"./chunk-QEZV5DGZ.js";import{a as Pe,d as A}from"./chunk-ZZGSAFGO.js";import"./chunk-HIALMESF.js";import{$a as l,$b as F,Ac as x,Bc as W,Db as _,Eb as Ce,Fa as le,Fb as Tt,Fc as E,Gb as se,Hb as pe,Ib as o,Ja as h,Jb as a,Kb as p,Lb as Ie,Ma as nt,Mb as Se,Mc as fe,Nb as M,Nc as wt,Ob as N,Od as Ot,Qb as O,Qc as Vt,Qd as Rt,Rb as d,Rd as j,Sb as ot,Tb as at,Td as Q,Vd as At,Wa as vt,Wc as q,Y as _t,Yb as G,Yc as kt,Yd as Oe,Zb as de,Zc as H,_b as D,aa as tt,ad as Dt,bd as $,cd as Ft,db as re,dc as I,ec as m,ed as me,fa as bt,fc as y,gc as V,gd as Y,hc as It,ia as gt,ja as Ct,jc as St,jd as C,ka as ht,kb as g,kc as Et,kd as Me,lb as yt,lc as Pt,na as v,ob as Te,pc as Ee,qb as u,qc as k,rc as S,sc as U,t as et,tc as he,ub as z,va as P,vb as s,wa as w,wd as Mt,xb as Fe,yb as xt,za as De,zb as it,zc as b}from"./chunk-UXRO4UFY.js";import{a as ut,b as dt,j as ft}from"./chunk-7DCB7DB2.js";var un=["content"],hn=["header"],vn=["lefticon"],yn=["righticon"],xn=["closeicon"],dn=["*"];function Tn(t,r){t&1&&M(0)}function In(t,r){if(t&1&&(Ie(0),u(1,Tn,1,0,"ng-container",3),Se()),t&2){let e=d(2);l(),s("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)}}function Sn(t,r){if(t&1&&(o(0,"div",1),at(1),u(2,In,2,1,"ng-container",2),a()),t&2){let e=d();s("hidden",!e.selected),z("id",e.tabView.getTabContentId(e.id))("aria-hidden",!e.selected)("aria-labelledby",e.tabView.getTabHeaderActionId(e.id))("data-pc-name","tabpanel"),l(2),s("ngIf",(e.contentTemplate||e._contentTemplate)&&(e.cache?e.loaded:e.selected))}}var En=["previousicon"],Pn=["nexticon"],wn=["navbar"],Vn=["prevBtn"],kn=["nextBtn"],Dn=["inkbar"],Fn=["elementToObserve"],Mn=t=>({"p-tablist-viewport":t}),On=(t,r)=>({"p-tab":!0,"p-tab-active":t,"p-disabled":r});function Rn(t,r){t&1&&p(0,"ChevronLeftIcon"),t&2&&z("aria-hidden",!0)}function An(t,r){}function Bn(t,r){t&1&&u(0,An,0,0,"ng-template")}function Ln(t,r){if(t&1){let e=N();o(0,"button",12,3),O("click",function(){P(e);let n=d();return w(n.navBackward())}),u(2,Rn,1,1,"ChevronLeftIcon",13)(3,Bn,1,0,null,14),a()}if(t&2){let e=d();z("tabindex",e.tabindex)("aria-label",e.prevButtonAriaLabel),l(2),s("ngIf",!e.previousIconTemplate&&!e._previousIconTemplate),l(),s("ngTemplateOutlet",e.previousIconTemplate&&e._previousIconTemplate)}}function Nn(t,r){t&1&&M(0)}function Hn(t,r){if(t&1&&u(0,Nn,1,0,"ng-container",14),t&2){let e=d(2).$implicit;s("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function $n(t,r){}function Un(t,r){t&1&&u(0,$n,0,0,"ng-template")}function qn(t,r){if(t&1&&u(0,Un,1,0,null,14),t&2){let e=d(3).$implicit;s("ngTemplateOutlet",e.leftIconTemplate||e._leftIconTemplate)}}function jn(t,r){if(t&1&&p(0,"span",17),t&2){let e=d(3).$implicit;s("ngClass",e.leftIcon)}}function Qn(t,r){}function zn(t,r){t&1&&u(0,Qn,0,0,"ng-template")}function Gn(t,r){if(t&1&&u(0,zn,1,0,null,14),t&2){let e=d(3).$implicit;s("ngTemplateOutlet",e.rightIconTemplate||e._rightIconTemplate)}}function Wn(t,r){if(t&1&&p(0,"span",18),t&2){let e=d(3).$implicit;s("ngClass",e.rightIcon)}}function Kn(t,r){}function Yn(t,r){t&1&&u(0,Kn,0,0,"ng-template")}function Zn(t,r){if(t&1&&u(0,Yn,1,0,null,14),t&2){let e=d(4).$implicit;s("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Jn(t,r){if(t&1){let e=N();o(0,"TimesIcon",19),O("click",function(n){P(e);let c=d(4).$implicit,f=d();return w(f.close(n,c))}),a()}}function Xn(t,r){if(t&1&&u(0,Zn,1,1)(1,Jn,1,0,"TimesIcon"),t&2){let e=d(3).$implicit;_(e.closeIconTemplate||e._closeIconTemplate?0:1)}}function ei(t,r){if(t&1&&(u(0,qn,1,1)(1,jn,1,1,"span",17),m(2),u(3,Gn,1,1)(4,Wn,1,1,"span",18)(5,Xn,2,1)),t&2){let e=d(2).$implicit;_(e.leftIconTemplate||e._leftIconTemplate?0:e.leftIcon&&!e.leftIconTemplate&&!e._leftIconTemplate?1:-1),l(2),V(" ",e.header," "),l(),_(e.rightIconTemplate||e._rightIconTemplate?3:e.rightIcon&&!e.rightIconTemplate&&!e._rightIconTemplate?4:-1),l(2),_(e.closable?5:-1)}}function ti(t,r){if(t&1){let e=N();o(0,"button",15),O("click",function(n){P(e);let c=d().$implicit,f=d();return w(f.open(n,c))})("keydown",function(n){P(e);let c=d().$implicit,f=d();return w(f.onTabKeyDown(n,c))}),u(1,Hn,1,1,"ng-container")(2,ei,6,4),a(),p(3,"span",16,4)}if(t&2){let e=d(),i=e.$implicit,n=e.$index,c=d();it(i.headerStyleClass),s("ngClass",U(22,On,i.selected,i.disabled))("ngStyle",i.headerStyle)("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("disabled",i.disabled),z("role","tab")("id",c.getTabHeaderActionId(i.id))("aria-controls",c.getTabContentId(i.id))("aria-selected",i.selected)("tabindex",i.disabled||!i.selected?"-1":c.tabindex)("aria-disabled",i.disabled)("data-pc-index",n)("data-p-disabled",i.disabled)("data-pc-section","headeraction")("data-p-active",i.selected),l(),_(i.headerTemplate||i._headerTemplate?1:2),l(2),z("aria-hidden",!0)("data-pc-section","inkbar")}}function ni(t,r){if(t&1&&u(0,ti,5,25),t&2){let e=r.$implicit;_(e.closed?-1:0)}}function ii(t,r){}function oi(t,r){t&1&&u(0,ii,0,0,"ng-template")}function ai(t,r){if(t&1&&u(0,oi,1,0,null,14),t&2){let e=d(2);s("ngTemplateOutlet",e.nextIconTemplate||e._nextIconTemplate)}}function li(t,r){t&1&&p(0,"ChevronRightIcon"),t&2&&z("aria-hidden",!0)}function ri(t,r){if(t&1){let e=N();o(0,"button",20,5),O("click",function(){P(e);let n=d();return w(n.navForward())}),u(2,ai,1,1)(3,li,1,1,"ChevronRightIcon"),a()}if(t&2){let e=d();z("tabindex",e.tabindex)("aria-label",e.nextButtonAriaLabel),l(2),_(e.nextIconTemplate||e._nextIconTemplate?2:3)}}var si=({dt:t})=>`
2
2
  .p-tabs {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1,2 +1,2 @@
1
- import{O as b}from"./chunk-5OS5VELO.js";import{a as m}from"./chunk-2FWFPV5I.js";import{a as u}from"./chunk-PZANARAM.js";import{Vd as d,Yd as h,ja as n,na as c}from"./chunk-UXRO4UFY.js";import{j as l}from"./chunk-7DCB7DB2.js";var p=class a{constructor(){}copy(t){return new Promise((o,r)=>{try{if(navigator.clipboard)navigator.clipboard.writeText(t).then(o,r);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")?o():r(new Error("Failed to copy with execCommand"))}catch(i){r(i)}finally{document.body.removeChild(e)}}}catch(e){r(e)}})}static \u0275fac=function(o){return new(o||a)};static \u0275prov=n({token:a,factory:a.\u0275fac,providedIn:"root"})};var y=class a{toastr=c(d);httpService=c(h);copyToClipBoard=c(p);createCustomerFromNewNumberAndSendReceipt(t,o,r,e,i){r==0?this.httpService.post(b.CreateCustomerInvoice,{InvoiceID:e.ObjectID,Mobile:t}).subscribe(s=>l(this,null,function*(){this.toastr.success(s.Message,m.Success),yield this.sendReceiptToWhatsapp(t,e,o,i)})):this.toastr.info("WABA is not supported yet",m.Info)}createWhatsappReceipt(t,o,r){let e=I=>new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(I).replace("Rp","").trim().split(",00")?.[0],i=JSON.parse(localStorage.getItem("AccountInfo"))?.BrandName,{ObjectID:s,Final:g,InvoiceNumber:f}=t,v=window.location.host,w=`https://receipt.dealpos.app/s?Data=${window.btoa(`${s}_${v}`)}`;return this.convertWhatsappTemplateMessage({Amount:e(g),Brand:i,Currency:o,Number:f,ReceiptLink:w},r)}convertWhatsappTemplateMessage(t,o){let r=o||u?.whatsappTemplateMessage,e=["Brand","Number","Currency","Amount","ReceiptLink"],i=r;return e.forEach(s=>i=i.replace(`{${s}}`,t[s])),i}redirectToWhatsapp(t,o){let r=t;r=r[0]==="0"?`62${r.slice(1)}`:r;let e=`whatsapp://send?phone=${r}&text=${encodeURIComponent(o)}`;window.location.href=e,this.showToastrWhatsappNoInstalled()}showToastrWhatsappNoInstalled(){let t=!1;window.onblur=function(){t=!0},setTimeout(()=>{t||this.toastr.warning(`Currently, sending an e-receipt automatically opens WhatsApp Desktop, provided the device has the app installed
1
+ import{O as b}from"./chunk-5OS5VELO.js";import{a as m}from"./chunk-2FWFPV5I.js";import{a as u}from"./chunk-HIALMESF.js";import{Vd as d,Yd as h,ja as n,na as c}from"./chunk-UXRO4UFY.js";import{j as l}from"./chunk-7DCB7DB2.js";var p=class a{constructor(){}copy(t){return new Promise((o,r)=>{try{if(navigator.clipboard)navigator.clipboard.writeText(t).then(o,r);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")?o():r(new Error("Failed to copy with execCommand"))}catch(i){r(i)}finally{document.body.removeChild(e)}}}catch(e){r(e)}})}static \u0275fac=function(o){return new(o||a)};static \u0275prov=n({token:a,factory:a.\u0275fac,providedIn:"root"})};var y=class a{toastr=c(d);httpService=c(h);copyToClipBoard=c(p);createCustomerFromNewNumberAndSendReceipt(t,o,r,e,i){r==0?this.httpService.post(b.CreateCustomerInvoice,{InvoiceID:e.ObjectID,Mobile:t}).subscribe(s=>l(this,null,function*(){this.toastr.success(s.Message,m.Success),yield this.sendReceiptToWhatsapp(t,e,o,i)})):this.toastr.info("WABA is not supported yet",m.Info)}createWhatsappReceipt(t,o,r){let e=I=>new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(I).replace("Rp","").trim().split(",00")?.[0],i=JSON.parse(localStorage.getItem("AccountInfo"))?.BrandName,{ObjectID:s,Final:g,InvoiceNumber:f}=t,v=window.location.host,w=`https://receipt.dealpos.app/s?Data=${window.btoa(`${s}_${v}`)}`;return this.convertWhatsappTemplateMessage({Amount:e(g),Brand:i,Currency:o,Number:f,ReceiptLink:w},r)}convertWhatsappTemplateMessage(t,o){let r=o||u?.whatsappTemplateMessage,e=["Brand","Number","Currency","Amount","ReceiptLink"],i=r;return e.forEach(s=>i=i.replace(`{${s}}`,t[s])),i}redirectToWhatsapp(t,o){let r=t;r=r[0]==="0"?`62${r.slice(1)}`:r;let e=`whatsapp://send?phone=${r}&text=${encodeURIComponent(o)}`;window.location.href=e,this.showToastrWhatsappNoInstalled()}showToastrWhatsappNoInstalled(){let t=!1;window.onblur=function(){t=!0},setTimeout(()=>{t||this.toastr.warning(`Currently, sending an e-receipt automatically opens WhatsApp Desktop, provided the device has the app installed
2
2
  `,"WhatsApp not installed")},2e3)}copyToClipboard(t){return new Promise((o,r)=>this.copyToClipBoard.copy(t).then(()=>{this.toastr.info("Message copied to clipboard. If WhatsApp doesn't show the message, please paste it manually.","Receipt Ready",{timeOut:8e3}),o("Copied to clipboard")}).catch(e=>{console.log(e),this.toastr.warning("Could not copy message to clipboard","Clipboard Error",{timeOut:8e3}),r(e)}))}sendReceiptToWhatsapp(t,o,r,e){return l(this,null,function*(){try{let i=this.createWhatsappReceipt(o,r,e);try{yield this.copyToClipboard(i)}finally{this.redirectToWhatsapp(t,i)}}catch(i){console.warn(i),this.toastr.error("Failed to send receipt")}})}static \u0275fac=function(o){return new(o||a)};static \u0275prov=n({token:a,factory:a.\u0275fac})};export{y as a};
@@ -1 +1 @@
1
- import{a as r}from"./chunk-DV4MQXAE.js";import{K as a}from"./chunk-UXRO4UFY.js";var s=class extends r{constructor(t,e,o,n){super(t);this.httpService=e;let p=this.getInfoID(n);this.menuData$.pipe(a(()=>this.getBindDataObservable(o,p))).subscribe({next:i=>{this.bindData(i),this.postBindData(i)}})}data;getInfoID(t){return t.snapshot.queryParams.ID}getBindDataObservable(t,e){return this.httpService.post(`/API/${t}`,{ID:e})}bindData(t){this.data=t}postBindData(t){}};export{s as a};
1
+ import{a as r}from"./chunk-TZKLOUVL.js";import{K as a}from"./chunk-UXRO4UFY.js";var s=class extends r{constructor(t,e,o,n){super(t);this.httpService=e;let p=this.getInfoID(n);this.menuData$.pipe(a(()=>this.getBindDataObservable(o,p))).subscribe({next:i=>{this.bindData(i),this.postBindData(i)}})}data;getInfoID(t){return t.snapshot.queryParams.ID}getBindDataObservable(t,e){return this.httpService.post(`/API/${t}`,{ID:e})}bindData(t){this.data=t}postBindData(t){}};export{s as a};
@@ -1 +1 @@
1
- import{a as p}from"./chunk-V52QD5BS.js";import{Ma as l,Qc as h,e as c}from"./chunk-UXRO4UFY.js";var g=class extends p{constructor(t,e,s,i,n,a,o,r){super(t,e,s,i,n,a,o);this.httpService=e;this.toastrService=n;this.route=a;this.cdr=r;r&&h(()=>{this.infiniteListSignal(),this.cdr.markForCheck()})}toastrCount=0;nextPageDisabled=!1;extendData=!1;goToLast=!1;listTotal=0;_infiniteList$=new c([]);infiniteListSignal=l([]);get infiniteList(){return this._infiniteList$.value}set infiniteList(t){this._infiniteList$.next(t),this.infiniteListSignal.set(t)}originalData=[];StoreRowsCountAPIResult(t,e=!1){this.httpService.post("/api/"+t,this.pageData.Filter).subscribe(s=>{this.listTotal=s.Count,this.pageData.HideStoreApiCount=!0,e&&(this.pageData.Filter.RowCount=this.listTotal,this.goToLast=!0,this.pageData.Filter.PageNumber=1,this.getListData()),this.cdr&&this.cdr.markForCheck()})}NextPage(t){this.pageData.Filter.PageNumber=this.pageData.Filter.PageNumber||1,this.pageData.Filter.PageNumber+=1,this.extendData=t,this.getListData()}postInit(t){t?.Data?.length>0&&(this.toastrCount=0),t?.Data?.length===0&&this.toastrCount===0&&(this.toastrService?.info("No more data to load","Info"),this.toastrCount=1);let e=Array.isArray(t.Data?.hits),s=Array.isArray(t.Data?.[0]?.Variants),i=[...this.infiniteList];if(this.extendData){let a=i.at(-1),o=t.Data.find(r=>r.ID===a?.ID);if(s&&a)if(o){let r=t.Data.filter(u=>u.ID!==a?.ID);a.Variants=a.Variants.concat(o.Variants||[]),i=i.concat(r)}else i=i.concat(t.Data);else i=i.concat(e?t.Data.hits:t.Data);this.postExtendData(t),this.extendData=!1}else i=e?t.Data.hits:t.Data,this.assignAggregate(t);this.infiniteList=i,this.originalData=[...i];let n=e?t.Data.hits.length:t.Data.length;this.nextPageDisabled=n<this.pageData.Filter.RowCount,this.menuData.H=this.data.PageTitle||this.menuData.H,this.afterPostInit(t),this.cdr?.markForCheck?.()}afterPostInit(t){}preSearchFromPageOne(){this.goToLast=!1}postExtendData(t){}assignAggregate(t){}};export{g as a};
1
+ import{a as p}from"./chunk-IGEAG6HP.js";import{Ma as l,Qc as h,e as c}from"./chunk-UXRO4UFY.js";var g=class extends p{constructor(t,e,s,i,n,a,o,r){super(t,e,s,i,n,a,o);this.httpService=e;this.toastrService=n;this.route=a;this.cdr=r;r&&h(()=>{this.infiniteListSignal(),this.cdr.markForCheck()})}toastrCount=0;nextPageDisabled=!1;extendData=!1;goToLast=!1;listTotal=0;_infiniteList$=new c([]);infiniteListSignal=l([]);get infiniteList(){return this._infiniteList$.value}set infiniteList(t){this._infiniteList$.next(t),this.infiniteListSignal.set(t)}originalData=[];StoreRowsCountAPIResult(t,e=!1){this.httpService.post("/api/"+t,this.pageData.Filter).subscribe(s=>{this.listTotal=s.Count,this.pageData.HideStoreApiCount=!0,e&&(this.pageData.Filter.RowCount=this.listTotal,this.goToLast=!0,this.pageData.Filter.PageNumber=1,this.getListData()),this.cdr&&this.cdr.markForCheck()})}NextPage(t){this.pageData.Filter.PageNumber=this.pageData.Filter.PageNumber||1,this.pageData.Filter.PageNumber+=1,this.extendData=t,this.getListData()}postInit(t){t?.Data?.length>0&&(this.toastrCount=0),t?.Data?.length===0&&this.toastrCount===0&&(this.toastrService?.info("No more data to load","Info"),this.toastrCount=1);let e=Array.isArray(t.Data?.hits),s=Array.isArray(t.Data?.[0]?.Variants),i=[...this.infiniteList];if(this.extendData){let a=i.at(-1),o=t.Data.find(r=>r.ID===a?.ID);if(s&&a)if(o){let r=t.Data.filter(u=>u.ID!==a?.ID);a.Variants=a.Variants.concat(o.Variants||[]),i=i.concat(r)}else i=i.concat(t.Data);else i=i.concat(e?t.Data.hits:t.Data);this.postExtendData(t),this.extendData=!1}else i=e?t.Data.hits:t.Data,this.assignAggregate(t);this.infiniteList=i,this.originalData=[...i];let n=e?t.Data.hits.length:t.Data.length;this.nextPageDisabled=n<this.pageData.Filter.RowCount,this.menuData.H=this.data.PageTitle||this.menuData.H,this.afterPostInit(t),this.cdr?.markForCheck?.()}afterPostInit(t){}preSearchFromPageOne(){this.goToLast=!1}postExtendData(t){}assignAggregate(t){}};export{g as a};