dealpos 25.44.2 → 25.44.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/browser/{chunk-J2QBKYVZ.js → chunk-2CXL6IDS.js} +1 -1
  2. package/browser/{chunk-J7JOV2UE.js → chunk-2GALXGGK.js} +1 -1
  3. package/browser/{chunk-CLIFAF7L.js → chunk-2HLP4RJY.js} +2 -2
  4. package/browser/{chunk-XMABGEYA.js → chunk-42NBSIMT.js} +1 -1
  5. package/browser/{chunk-AXITAME4.js → chunk-4XV2ANDU.js} +1 -1
  6. package/browser/{chunk-OGM6TARA.js → chunk-57UEET7E.js} +2 -2
  7. package/browser/{chunk-PW7JCR65.js → chunk-5FSR4IZJ.js} +1 -1
  8. package/browser/{chunk-JXNDVG64.js → chunk-6XO6NT6E.js} +1 -1
  9. package/browser/{chunk-W5EJQZB4.js → chunk-7LEIOTZN.js} +1 -1
  10. package/browser/{chunk-CW2D4XVM.js → chunk-7QZ26SB7.js} +1 -1
  11. package/browser/{chunk-7M35JNER.js → chunk-A3JFNOMC.js} +1 -1
  12. package/browser/{chunk-DHQWJAOX.js → chunk-ABOGLWVN.js} +1 -1
  13. package/browser/{chunk-KAJ5NYU6.js → chunk-AJM4N35T.js} +1 -1
  14. package/browser/{chunk-MS67N3VC.js → chunk-BKK7PT4Q.js} +1 -1
  15. package/browser/{chunk-BA64MIHJ.js → chunk-BLSJR63P.js} +1 -1
  16. package/browser/{chunk-T6TPCDSC.js → chunk-BXSCBMI2.js} +1 -1
  17. package/browser/{chunk-7QOZKOAW.js → chunk-CDCIW4H7.js} +1 -1
  18. package/browser/{chunk-4WAY7P2M.js → chunk-CXKH3Y7Q.js} +1 -1
  19. package/browser/{chunk-APFUVBFJ.js → chunk-DDJ6XGOR.js} +1 -1
  20. package/browser/{chunk-QPS677LS.js → chunk-DK2SUVKT.js} +1 -1
  21. package/browser/{chunk-5E64BHHD.js → chunk-DOYS2PZE.js} +1 -1
  22. package/browser/{chunk-RUFSPHPN.js → chunk-DTFMCXRP.js} +1 -1
  23. package/browser/{chunk-Y3YIK27D.js → chunk-DWZ6HNBA.js} +1 -1
  24. package/browser/{chunk-ZIUOCAE2.js → chunk-EGRFS63E.js} +1 -1
  25. package/browser/{chunk-PJTFJKGS.js → chunk-EIYVPVSH.js} +1 -1
  26. package/browser/{chunk-PMEWJS46.js → chunk-EKX3MMTJ.js} +1 -1
  27. package/browser/{chunk-3FD5W6K2.js → chunk-ESMCBLSB.js} +2 -2
  28. package/browser/{chunk-YH3UWFOD.js → chunk-EUY2EQVP.js} +1 -1
  29. package/browser/{chunk-SPTLCHEU.js → chunk-EY2BEKKH.js} +1 -1
  30. package/browser/{chunk-CT7VQIZ7.js → chunk-FDFNWO3I.js} +1 -1
  31. package/browser/{chunk-YR223T2R.js → chunk-FEHHVG4G.js} +2 -2
  32. package/browser/{chunk-QMBZSWSZ.js → chunk-FEW55RO5.js} +1 -1
  33. package/browser/{chunk-2X7JXLPO.js → chunk-FTRVMNGV.js} +1 -1
  34. package/browser/{chunk-CFDWM2SO.js → chunk-GGOZMZWR.js} +1 -1
  35. package/browser/{chunk-PKT3SIRZ.js → chunk-GKFPNF3O.js} +1 -1
  36. package/browser/{chunk-BO6JXHTU.js → chunk-GN6RJLLA.js} +1 -1
  37. package/browser/{chunk-ODOX327P.js → chunk-GQO3Q75J.js} +1 -1
  38. package/browser/{chunk-NHKASBAN.js → chunk-GUURROIV.js} +1 -1
  39. package/browser/{chunk-DTWCNQ4N.js → chunk-HRDXDHQN.js} +2 -2
  40. package/browser/{chunk-M57BBETM.js → chunk-IYV6WHO4.js} +1 -1
  41. package/browser/{chunk-XFP34FRB.js → chunk-J4HLBSTR.js} +1 -1
  42. package/browser/{chunk-XMABJJGK.js → chunk-JMQDEPZK.js} +1 -1
  43. package/browser/{chunk-3UXPJWJQ.js → chunk-JUYFABKK.js} +1 -1
  44. package/browser/{chunk-655R7PDY.js → chunk-K7BQAEUZ.js} +1 -1
  45. package/browser/{chunk-WM2ISZEL.js → chunk-KH3Y6E5S.js} +1 -1
  46. package/browser/{chunk-AAX2TBEM.js → chunk-LAJ6WFQN.js} +1 -1
  47. package/browser/{chunk-QR4VV4GM.js → chunk-LED2YGBL.js} +1 -1
  48. package/browser/{chunk-UKFG66EY.js → chunk-LKII7K7T.js} +1 -1
  49. package/browser/{chunk-J2HRW2OD.js → chunk-LKXAGCSU.js} +1 -1
  50. package/browser/{chunk-2RZHUSQU.js → chunk-LQ63SW7R.js} +1 -1
  51. package/browser/{chunk-5XINUUVX.js → chunk-MB5ABPXA.js} +2 -2
  52. package/browser/{chunk-PLZ3ODXT.js → chunk-MBJ5EVQM.js} +1 -1
  53. package/browser/{chunk-2ZDXMF6S.js → chunk-MBRMFZQD.js} +1 -1
  54. package/browser/{chunk-CMAE52E3.js → chunk-MJYYXEWE.js} +1 -1
  55. package/browser/{chunk-D4G24QCQ.js → chunk-ML4F7QSG.js} +1 -1
  56. package/browser/{chunk-3Q3FUJ44.js → chunk-MO4GVGHJ.js} +1 -1
  57. package/browser/{chunk-IJVIVNVH.js → chunk-MPCAKU6Y.js} +1 -1
  58. package/browser/{chunk-OZG5SOW6.js → chunk-NMBTXI33.js} +1 -1
  59. package/browser/{chunk-O35SSVC5.js → chunk-PDDA2XEV.js} +1 -1
  60. package/browser/{chunk-V77ELRLY.js → chunk-PKRB5QHY.js} +1 -1
  61. package/browser/{chunk-P63I2MBK.js → chunk-PMFQUQRF.js} +1 -1
  62. package/browser/{chunk-YCTTD62Z.js → chunk-QO6OCZ2F.js} +2 -2
  63. package/browser/{chunk-53I2NSFZ.js → chunk-RDMLIBMG.js} +1 -1
  64. package/browser/{chunk-6PSJSHPW.js → chunk-RJEOTZXL.js} +1 -1
  65. package/browser/{chunk-BC4RWXWV.js → chunk-S5QHJZP7.js} +1 -1
  66. package/browser/{chunk-SAAWSHJS.js → chunk-SJIRHP7T.js} +1 -1
  67. package/browser/{chunk-EPUDCYJW.js → chunk-SXKMJUZG.js} +1 -1
  68. package/browser/{chunk-CKNSQS62.js → chunk-T4LU2Z4H.js} +1 -1
  69. package/browser/chunk-UGRZNVJI.js +1 -0
  70. package/browser/{chunk-SZ7M2HSN.js → chunk-UTP22HZJ.js} +1 -1
  71. package/browser/{chunk-ZJHWFDGD.js → chunk-V3Y7QS6E.js} +1 -1
  72. package/browser/{chunk-SCB5WW4J.js → chunk-VHLIFXL2.js} +1 -1
  73. package/browser/{chunk-BSFKTGRH.js → chunk-VK6JMOTL.js} +1 -1
  74. package/browser/{chunk-34KJ7YHX.js → chunk-VPQTKMSG.js} +1 -1
  75. package/browser/{chunk-FOF7BQHC.js → chunk-VTUDAX3L.js} +1 -1
  76. package/browser/{chunk-AUTKQFDZ.js → chunk-WEZJHAOW.js} +1 -1
  77. package/browser/{chunk-RW5SHW7P.js → chunk-WOQG2RJS.js} +1 -1
  78. package/browser/{chunk-ZIT77RS6.js → chunk-WTXHMI64.js} +2 -2
  79. package/browser/{chunk-VFEOT7L6.js → chunk-XM2Q4S3I.js} +1 -1
  80. package/browser/{chunk-YV6PGG6H.js → chunk-YPHODEQB.js} +1 -1
  81. package/browser/{chunk-RKZPHRAC.js → chunk-YTS3IROV.js} +1 -1
  82. package/browser/{chunk-47RLR2PC.js → chunk-ZB4A4IBA.js} +1 -1
  83. package/browser/index.html +2 -2
  84. package/browser/{main-4NFW4OXW.js → main-CNAQ374V.js} +2 -2
  85. package/package.json +1 -1
  86. package/browser/chunk-OTEI4GZK.js +0 -1
@@ -1 +1 @@
1
- import{d as $,e as ee}from"./chunk-6647Y35T.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-VQBXUZ6U.js";import{a as oe,b as ne}from"./chunk-BBGWXLHJ.js";import{f as te}from"./chunk-UKFG66EY.js";import{c as ie}from"./chunk-JXNDVG64.js";import{b as Q}from"./chunk-QHBWVJIQ.js";import{a as q}from"./chunk-IJVIVNVH.js";import"./chunk-KAJ5NYU6.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{e as Y,f as Z}from"./chunk-BA64MIHJ.js";import"./chunk-2RZHUSQU.js";import"./chunk-5JJSLRVS.js";import"./chunk-B6LPY2IZ.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-ZJHWFDGD.js";import{b as K}from"./chunk-SPTLCHEU.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-H7F34T25.js";import"./chunk-JOXTERIM.js";import{N as X,g as U}from"./chunk-TSIYPTYI.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-PW7JCR65.js";import"./chunk-XMABJJGK.js";import{d as k}from"./chunk-ZZGSAFGO.js";import"./chunk-QPS677LS.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-6647Y35T.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-VQBXUZ6U.js";import{a as oe,b as ne}from"./chunk-BBGWXLHJ.js";import{f as te}from"./chunk-LKII7K7T.js";import{c as ie}from"./chunk-6XO6NT6E.js";import{b as Q}from"./chunk-QHBWVJIQ.js";import{a as q}from"./chunk-MPCAKU6Y.js";import"./chunk-AJM4N35T.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{e as Y,f as Z}from"./chunk-BLSJR63P.js";import"./chunk-LQ63SW7R.js";import"./chunk-5JJSLRVS.js";import"./chunk-B6LPY2IZ.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-V3Y7QS6E.js";import{b as K}from"./chunk-EY2BEKKH.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-H7F34T25.js";import"./chunk-JOXTERIM.js";import{N as X,g as U}from"./chunk-TSIYPTYI.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-5FSR4IZJ.js";import"./chunk-JMQDEPZK.js";import{d as k}from"./chunk-ZZGSAFGO.js";import"./chunk-DK2SUVKT.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 k}from"./chunk-7M35JNER.js";import{C as N,F as L,G as j,c as E,h as A,i as V,k as I,o as R,p as U}from"./chunk-RVXZOIFQ.js";import{c as D}from"./chunk-PW7JCR65.js";import"./chunk-XMABJJGK.js";import{a as p}from"./chunk-ZZGSAFGO.js";import"./chunk-QPS677LS.js";import{$a as b,$b as x,Ib as i,Jb as n,Kb as u,Ob as C,Qb as g,Qd as M,Vd as P,Zb as S,_b as _,d as f,da as v,db as d,ec as s,jc as w,kb as y,kc as O,lc as T,va as l,wa as m}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var z=["totpCode"],F=class h{constructor(e,t,o,r){this.authenticatorService=e;this.router=t;this.authService=o;this.toastrService=r;this.redirectUrl=this.authService.returnUrl,this.destroy$=new f,this.checkOnRefreshPage()}validationCodeEl;validationCode;redirectUrl;destroy$;ngOnInit(){document.body.classList.add("login-body")}ngAfterViewInit(){this.validationCodeEl.nativeElement.focus()}ngOnDestroy(){document.body.classList.remove("login-body"),this.destroy$.next(!0),this.destroy$.complete()}checkOnRefreshPage(){p.IsEmpty(this.authService.loginResponse)&&this.router.navigate(["/"])}onSubmit(){this.validateOnVerfiyCode()&&this.authenticatorService.validateCode(this.validationCode,this.authService.loginResponse.UserID).pipe(v(this.destroy$)).subscribe({next:e=>{if(this.authService.saveLoginConfigToStorage(e),p.IsNotEmpty(this.redirectUrl))this.router.navigateByUrl(this.redirectUrl),this.authService.returnUrl=null;else{let t=this.authService.getRedirectUrl();this.router.navigate([t])}}})}validateOnVerfiyCode(){let e=!0;return p.IsEmpty(this.validationCode)?(e=!1,this.toastrService.warning("You must enter a authentication code.","Warning")):(this.validationCode.length<6||this.validationCode.length>6)&&(e=!1,this.toastrService.warning("The authentication code must be six digits long.","Warning")),e}numberOnly(e){return p.numberOnly(e)}submitOnFullOTP(e){e.length==6&&this.onSubmit()}static \u0275fac=function(t){return new(t||h)(d(k),d(M),d(D),d(P))};static \u0275cmp=y({type:h,selectors:[["POS-auth-totp"]],viewQuery:function(t,o){if(t&1&&S(z,5),t&2){let r;_(r=x())&&(o.validationCodeEl=r.first)}},decls:28,vars:1,consts:[["totpCode",""],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-first","form-pane"],[1,"text-start"],[1,"mt-6","text-start"],[3,"submit"],[1,"row","mt-3"],[1,"col-12","text-start","otp-container","position-relative"],["for","totpCode",1,"form-label"],["type","text","maxlength","6","data-cy","totp-code","aria-label","Username","name","totp-code","id","totpCode",1,"border-0",3,"ngModelChange","keypress","ngModel"],[1,"stripe"],["type","submit",1,"btn","btn-lg","btn-primary","rounded-1","fw-normal","rounded-0"],[1,"col-md-5","order-md-last","order-last","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane"],[1,"d-flex","align-items-center","justify-content-center","mb-6"],["src","//res.cloudinary.com/pos/image/upload/v1666079494/POS/Images/Login/TOTP.png",1,"border-0",2,"width","50%"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"ms-3","border-0"]],template:function(t,o){if(t&1){let r=C();i(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),s(4,"Enter time-based OTP"),n(),i(5,"p",5),s(6,"Enter the OTP generated on your authenticator app"),n(),i(7,"form",6),g("submit",function(){return l(r),m(o.onSubmit())}),i(8,"div",7)(9,"div",8)(10,"label",9),s(11,"AUTHENTICATION CODE"),n(),i(12,"input",10,0),T("ngModelChange",function(a){return l(r),O(o.validationCode,a)||(o.validationCode=a),m(a)}),g("keypress",function(a){return l(r),m(o.numberOnly(a))})("ngModelChange",function(a){return l(r),m(o.submitOnFullOTP(a))}),n(),i(14,"span",11),s(15,"______"),n(),i(16,"button",12),s(17," Verify "),n()()()()(),i(18,"div",13)(19,"div",14),u(20,"img",15),n()()(),i(21,"div",16)(22,"div",17)(23,"div")(24,"span"),s(25,"powered by :"),n(),u(26,"a",18)(27,"img",19),n()()()()}t&2&&(b(12),w("ngModel",o.validationCode))},dependencies:[j,U,E,A,V,N,L,R,I],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:3rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}"]})};export{F as AuthTotpComponent};
1
+ import{a as k}from"./chunk-A3JFNOMC.js";import{C as N,F as L,G as j,c as E,h as A,i as V,k as I,o as R,p as U}from"./chunk-RVXZOIFQ.js";import{c as D}from"./chunk-5FSR4IZJ.js";import"./chunk-JMQDEPZK.js";import{a as p}from"./chunk-ZZGSAFGO.js";import"./chunk-DK2SUVKT.js";import{$a as b,$b as x,Ib as i,Jb as n,Kb as u,Ob as C,Qb as g,Qd as M,Vd as P,Zb as S,_b as _,d as f,da as v,db as d,ec as s,jc as w,kb as y,kc as O,lc as T,va as l,wa as m}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var z=["totpCode"],F=class h{constructor(e,t,o,r){this.authenticatorService=e;this.router=t;this.authService=o;this.toastrService=r;this.redirectUrl=this.authService.returnUrl,this.destroy$=new f,this.checkOnRefreshPage()}validationCodeEl;validationCode;redirectUrl;destroy$;ngOnInit(){document.body.classList.add("login-body")}ngAfterViewInit(){this.validationCodeEl.nativeElement.focus()}ngOnDestroy(){document.body.classList.remove("login-body"),this.destroy$.next(!0),this.destroy$.complete()}checkOnRefreshPage(){p.IsEmpty(this.authService.loginResponse)&&this.router.navigate(["/"])}onSubmit(){this.validateOnVerfiyCode()&&this.authenticatorService.validateCode(this.validationCode,this.authService.loginResponse.UserID).pipe(v(this.destroy$)).subscribe({next:e=>{if(this.authService.saveLoginConfigToStorage(e),p.IsNotEmpty(this.redirectUrl))this.router.navigateByUrl(this.redirectUrl),this.authService.returnUrl=null;else{let t=this.authService.getRedirectUrl();this.router.navigate([t])}}})}validateOnVerfiyCode(){let e=!0;return p.IsEmpty(this.validationCode)?(e=!1,this.toastrService.warning("You must enter a authentication code.","Warning")):(this.validationCode.length<6||this.validationCode.length>6)&&(e=!1,this.toastrService.warning("The authentication code must be six digits long.","Warning")),e}numberOnly(e){return p.numberOnly(e)}submitOnFullOTP(e){e.length==6&&this.onSubmit()}static \u0275fac=function(t){return new(t||h)(d(k),d(M),d(D),d(P))};static \u0275cmp=y({type:h,selectors:[["POS-auth-totp"]],viewQuery:function(t,o){if(t&1&&S(z,5),t&2){let r;_(r=x())&&(o.validationCodeEl=r.first)}},decls:28,vars:1,consts:[["totpCode",""],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-first","form-pane"],[1,"text-start"],[1,"mt-6","text-start"],[3,"submit"],[1,"row","mt-3"],[1,"col-12","text-start","otp-container","position-relative"],["for","totpCode",1,"form-label"],["type","text","maxlength","6","data-cy","totp-code","aria-label","Username","name","totp-code","id","totpCode",1,"border-0",3,"ngModelChange","keypress","ngModel"],[1,"stripe"],["type","submit",1,"btn","btn-lg","btn-primary","rounded-1","fw-normal","rounded-0"],[1,"col-md-5","order-md-last","order-last","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane"],[1,"d-flex","align-items-center","justify-content-center","mb-6"],["src","//res.cloudinary.com/pos/image/upload/v1666079494/POS/Images/Login/TOTP.png",1,"border-0",2,"width","50%"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"ms-3","border-0"]],template:function(t,o){if(t&1){let r=C();i(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),s(4,"Enter time-based OTP"),n(),i(5,"p",5),s(6,"Enter the OTP generated on your authenticator app"),n(),i(7,"form",6),g("submit",function(){return l(r),m(o.onSubmit())}),i(8,"div",7)(9,"div",8)(10,"label",9),s(11,"AUTHENTICATION CODE"),n(),i(12,"input",10,0),T("ngModelChange",function(a){return l(r),O(o.validationCode,a)||(o.validationCode=a),m(a)}),g("keypress",function(a){return l(r),m(o.numberOnly(a))})("ngModelChange",function(a){return l(r),m(o.submitOnFullOTP(a))}),n(),i(14,"span",11),s(15,"______"),n(),i(16,"button",12),s(17," Verify "),n()()()()(),i(18,"div",13)(19,"div",14),u(20,"img",15),n()()(),i(21,"div",16)(22,"div",17)(23,"div")(24,"span"),s(25,"powered by :"),n(),u(26,"a",18)(27,"img",19),n()()()()}t&2&&(b(12),w("ngModel",o.validationCode))},dependencies:[j,U,E,A,V,N,L,R,I],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:3rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}"]})};export{F as AuthTotpComponent};
@@ -1 +1 @@
1
- import{a as _t,b as ut}from"./chunk-3UXPJWJQ.js";import{a as pt}from"./chunk-FKDZ5OWB.js";import{a as mt}from"./chunk-M57BBETM.js";import{a as st}from"./chunk-BXQFYW4R.js";import"./chunk-4UYZJCFI.js";import"./chunk-BYXBJQAS.js";import{d as ct,e as dt}from"./chunk-GIDGCFLX.js";import"./chunk-XBRBYCWJ.js";import"./chunk-3RK6DDJD.js";import"./chunk-FP4HFB5J.js";import"./chunk-H3OZSV6V.js";import"./chunk-YEDKRNXU.js";import"./chunk-VZEPVRCY.js";import"./chunk-7QWJJPNG.js";import{d as at,e as rt}from"./chunk-6647Y35T.js";import"./chunk-VHAM2DWK.js";import{a as Z}from"./chunk-JPXXXD26.js";import{a as U}from"./chunk-PLZ3ODXT.js";import{f as lt}from"./chunk-UKFG66EY.js";import{b as Y}from"./chunk-QHBWVJIQ.js";import"./chunk-IJVIVNVH.js";import"./chunk-KAJ5NYU6.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-BA64MIHJ.js";import"./chunk-B6LPY2IZ.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-ZJHWFDGD.js";import{b as $}from"./chunk-SPTLCHEU.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-H7F34T25.js";import{b as Q,c as J}from"./chunk-JOXTERIM.js";import{N as it,g as et}from"./chunk-TSIYPTYI.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-PW7JCR65.js";import"./chunk-XMABJJGK.js";import{d as K}from"./chunk-ZZGSAFGO.js";import"./chunk-QPS677LS.js";import{$a as i,Ac as u,Bc as C,Db as p,Eb as k,Fc as j,Gb as M,Hb as N,Ib as o,Jb as n,Kb as E,Ob as P,Qb as h,Rb as c,Rd as R,Yd as z,Zc as q,db as T,ec as r,fc as w,gc as s,gd as W,jc as g,jd as A,kb as L,kc as I,lc as S,ob as O,qb as y,qc as D,rc as b,ub as V,va as x,vb as _,wa as v,wd as G,zc as d}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var xt=()=>["/menu/Outlets/Master/Outlets/Info"],ft=t=>({ID:t}),vt=()=>["/menu/Products/Catalog/Products/Info"];function yt(t,l){if(t&1){let e=P();o(0,"button",11),h("click",function(){x(e);let a=c();return v(a.openExportModal())}),E(1,"i",12),r(2," Export "),n()}}function Tt(t,l){if(t&1){let e=P();o(0,"div",13)(1,"h6"),r(2,"Outlet Group"),n(),o(3,"POS-outlet-group-tree-select",14),S("selectedOutletGroupIDChange",function(a){x(e);let f=c();return I(f.pageData.Filter.OutletGroupID,a)||(f.pageData.Filter.OutletGroupID=a),v(a)}),n(),o(4,"h6"),r(5,"Category"),n(),o(6,"POS-product-category-select",15),S("selectedCategoryIDChange",function(a){x(e);let f=c();return I(f.pageData.Filter.CategoryID,a)||(f.pageData.Filter.CategoryID=a),v(a)}),n(),o(7,"autocompleteV3",16),S("modelNameChange",function(a){x(e);let f=c();return I(f.pageData.Filter.ListProductID,a)||(f.pageData.Filter.ListProductID=a),v(a)}),n(),o(8,"h6"),r(9,"From - To"),n(),o(10,"div")(11,"datepicker",17),S("dateChange",function(a){x(e);let f=c();return I(f.pageData.Filter.From,a)||(f.pageData.Filter.From=a),v(a)}),n()(),o(12,"div",18)(13,"datepicker",19),S("dateChange",function(a){x(e);let f=c();return I(f.pageData.Filter.To,a)||(f.pageData.Filter.To=a),v(a)}),n()(),o(14,"h6"),r(15,"Inventory Type"),n(),o(16,"radio-options",20),S("modelChange",function(a){x(e);let f=c();return I(f.pageData.Filter.InventoryType,a)||(f.pageData.Filter.InventoryType=a),v(a)}),n()()}if(t&2){let e=c();i(3),_("showClear",!0),g("selectedOutletGroupID",e.pageData.Filter.OutletGroupID),i(3),g("selectedCategoryID",e.pageData.Filter.CategoryID),_("showClear",!0),i(),g("modelName",e.pageData.Filter.ListProductID),_("placeholder","Search Product")("isShowEmptyMessage",!0)("emptyMessage","No Product found")("tooltipMessage","Search by product name")("label","Product to Analyze")("listDataEndpoint","/api/ac/GetProductSuggestionByCodeNName")("valueField","Key"),i(4),_("isFloatingLabel",!1),g("date",e.pageData.Filter.From),_("hidelClearBtn",!0),i(2),_("isFloatingLabel",!1),g("date",e.pageData.Filter.To),_("hidelClearBtn",!0),i(3),g("model",e.pageData.Filter.InventoryType),_("options",e.pageData.Options.InventoryTypes)}}function gt(t,l){t&1&&(o(0,"th",8),r(1,"Code"),n())}function It(t,l){t&1&&(o(0,"th",9)(1,"span",21),r(2," Start "),n()())}function St(t,l){t&1&&(o(0,"th",9)(1,"span",22),r(2," Bought "),n()())}function Pt(t,l){t&1&&(o(0,"th",9)(1,"span",23),r(2," Sold "),n()())}function ht(t,l){t&1&&(o(0,"th",9)(1,"span",24),r(2," T.In "),n()())}function Ft(t,l){t&1&&(o(0,"th",9)(1,"span",25),r(2," T.Out "),n()())}function Et(t,l){t&1&&(o(0,"th",9)(1,"span",26),r(2," Adj "),n()())}function wt(t,l){t&1&&(o(0,"th",9)(1,"span",27),r(2," End "),n()())}function Dt(t,l){t&1&&(o(0,"th",9)(1,"span",28),r(2," Now "),n()())}function bt(t,l){t&1&&(o(0,"th",9)(1,"span",29),r(2," % "),n()())}function Bt(t,l){if(t&1&&(o(0,"td",31),r(1),n()),t&2){let e=c().$implicit;i(),s(" ",e.ProductCode," ")}}function Lt(t,l){if(t&1&&(o(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;_("colsFontColor",e.Start),i(),s(" ",u(2,2,e.Start)," ")}}function Ot(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),s(" ",u(2,1,e.Bought)," ")}}function Vt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),s(" ",u(2,1,e.Sold)," ")}}function kt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),s(" ",u(2,1,e.TransferredIn)," ")}}function Mt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),s(" ",u(2,1,e.TransferredOut)," ")}}function Nt(t,l){if(t&1&&(o(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;_("colsFontColor",e.Adjustment),i(),s(" ",e.Adjustment<0?e.Adjustment*-1:u(2,2,e.Adjustment)," ")}}function jt(t,l){if(t&1&&(o(0,"td",32),r(1),n()),t&2){let e=c().$implicit;_("colsFontColor",e.End),i(),s(" ",e.End," ")}}function qt(t,l){if(t&1&&(o(0,"td",32),r(1),n()),t&2){let e=c().$implicit;_("colsFontColor",e.Now),i(),s(" ",e.Now," ")}}function Wt(t,l){if(t&1&&(o(0,"td",31),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),s(" ",u(2,1,e.SellTransferInRate)," ")}}function At(t,l){if(t&1&&(o(0,"tr")(1,"td")(2,"a",30),r(3),n()(),o(4,"td")(5,"a",30),r(6),n()(),y(7,Bt,2,1,"td",31)(8,Lt,3,4,"td",32)(9,Ot,3,3,"td",33)(10,Vt,3,3,"td",34)(11,kt,3,3,"td",33)(12,Mt,3,3,"td",34)(13,Nt,3,4,"td",32)(14,jt,2,2,"td",32)(15,qt,2,2,"td",32)(16,Wt,3,3,"td",31),n()),t&2){let e=l.$implicit,m=c(2);i(2),_("routerLink",D(16,xt))("queryParams",b(17,ft,e.OutletID)),i(),s(" ",e.OutletName," "),i(2),_("routerLink",D(19,vt))("queryParams",b(20,ft,e.ProductID)),i(),w(e.ProductName),i(),p(m.column.code.selected?7:-1),i(),p(m.column.start.selected?8:-1),i(),p(m.column.bought.selected?9:-1),i(),p(m.column.sold.selected?10:-1),i(),p(m.column.transferredIn.selected?11:-1),i(),p(m.column.transferredOut.selected?12:-1),i(),p(m.column.adjust.selected?13:-1),i(),p(m.column.end.selected?14:-1),i(),p(m.column.now.selected?15:-1),i(),p(m.column.percent.selected?16:-1)}}function Gt(t,l){if(t&1&&M(0,At,17,22,"tr",null,k),t&2){let e=c();N(e.infiniteList)}}function Rt(t,l){t&1&&(o(0,"tr")(1,"td",35),E(2,"app-empty-state"),n()())}function Ht(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",u(2,5,C(1,2,e.infiniteList,"Start"))),i(3),s(" ",u(5,10,C(4,7,e.infiniteList,"Start"))," ")}}function zt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),s(" ",u(3,4,C(2,1,e.infiniteList,"Bought"))," ")}}function Kt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),s(" ",u(3,4,C(2,1,e.infiniteList,"Sold"))," ")}}function Qt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),s(" ",u(3,4,C(2,1,e.infiniteList,"TransferredIn"))," ")}}function Jt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),s(" ",u(3,4,C(2,1,e.infiniteList,"TransferredOut"))," ")}}function Ut(t,l){if(t&1&&(o(0,"td",38),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",u(2,5,C(1,2,e.infiniteList,"Adjustment"))),i(3),s(" ",u(5,10,C(4,7,e.infiniteList,"Adjustment"))," ")}}function Xt(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",u(2,5,C(1,2,e.infiniteList,"End"))),i(3),s(" ",u(5,10,C(4,7,e.infiniteList,"End"))," ")}}function Yt(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",u(2,5,C(1,2,e.infiniteList,"Now"))),i(3),s(" ",u(5,10,C(4,7,e.infiniteList,"Now"))," ")}}function Zt(t,l){if(t&1&&(o(0,"tfoot")(1,"tr",36)(2,"th",37),r(3," Total: "),n(),y(4,Ht,6,12,"td",32)(5,zt,4,6,"td",33)(6,Kt,4,6,"td",34)(7,Qt,4,6,"td",33)(8,Jt,4,6,"td",34)(9,Ut,6,12,"td",38)(10,Xt,6,12,"td",32)(11,Yt,6,12,"td",32),n()()),t&2){let e=c();i(2),V("colspan",e.column.code.selected?3:2),i(2),p(e.column.start.selected?4:-1),i(),p(e.column.bought.selected?5:-1),i(),p(e.column.sold.selected?6:-1),i(),p(e.column.transferredIn.selected?7:-1),i(),p(e.column.transferredOut.selected?8:-1),i(),p(e.column.adjust.selected?9:-1),i(),p(e.column.end.selected?10:-1),i(),p(e.column.now.selected?11:-1)}}function $t(t,l){if(t&1){let e=P();o(0,"span",45),h("click",function(){x(e);let a=c(2);return v(a.StoreRowsCountAPIResult("inventory/GetCountProductInventoryTraffic"))}),o(1,"i",46),r(2,"?"),n()()}}function te(t,l){if(t&1&&(o(0,"span"),r(1),d(2,"number"),n()),t&2){let e=c(2);i(),w(u(2,1,e.listTotal))}}function ee(t,l){if(t&1){let e=P();o(0,"div",10)(1,"div",39)(2,"div",40),r(3),d(4,"number"),y(5,$t,3,0,"span",41)(6,te,3,3,"span",42),r(7),n()(),o(8,"a",43),h("click",function(){x(e);let a=c();return v(a.NextPage(!0))}),E(9,"i",44),r(10," Next"),n()()}if(t&2){let e=c();i(3),s(" Showing 1 - ",u(4,4,e.infiniteList.length)," of "),i(2),_("ngIf",!e.pageData.HideStoreApiCount),i(),_("ngIf",e.pageData.HideStoreApiCount),i(),s(" records ~ ",e.pageData.Filter.PageNumber," Page ")}}var Ct=class t extends U{constructor(e,m,a,f,B,F,ie){super(e,m,"inventory/GetProductInventoryTraffic","inventoryloader/GetProductInventoryTraffic",void 0,void 0,!0);this.httpService=m;this.csvConverter=a;this.pageTitle=f;this.converter=B;this.roleService=F;this.matDialog=ie;this.pageTitle.setTitle(this.menuData.T)}column={code:{selected:!0,name:"Code"},start:{selected:!0,name:"Start"},bought:{selected:!1,name:"Bought"},sold:{selected:!0,name:"Sold"},transferredIn:{selected:!0,name:"T.In"},transferredOut:{selected:!0,name:"T.Out"},adjust:{selected:!1,name:"Adjust"},end:{selected:!0,name:"End"},now:{selected:!0,name:"Now"},percent:{selected:!1,name:"Percentage"}};selectedProduct=[];postBindData(){this.menuData.H=this.data.PageTitle}openExportModal(){this.matDialog.open(Y,{data:{title:"Product Inventory Traffic",exportTypes:[{ID:"inventoryexport/GetExportProductInventoryTraffic",Value:"Default",FileName:"Product Inventory Traffic"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!0}})}static \u0275fac=function(m){return new(m||t)(T($),T(z),T(tt),T(G),T(pt),T(K),T(X))};static \u0275cmp=L({type:t,selectors:[["POS-product-inventory-traffic"]],features:[O],decls:31,vars:19,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter","column"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[2,"width","150px"],[1,"text-end",2,"width","100px"],[1,"text-end",2,"width","80px"],[1,"d-flex","justify-content-between","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[1,"tree-select-as-filter",3,"selectedOutletGroupIDChange","showClear","selectedOutletGroupID"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],[3,"modelNameChange","modelName","placeholder","isShowEmptyMessage","emptyMessage","tooltipMessage","label","listDataEndpoint","valueField"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],["name","ProductTypeId",3,"modelChange","model","options"],["matTooltip","Stock based on start date (from date filter)","matTooltipPosition","above"],["matTooltip","Movement Stock from Inbound Logistics (Supplier Bill)","matTooltipPosition","above"],["matTooltip","Movement Stock from Outbound Logistics (Customer Invoice)","matTooltipPosition","above"],["matTooltip","Stock received from other outlets","matTooltipPosition","above"],["matTooltip","Stock sent to other outlets","matTooltipPosition","above"],["matTooltip","Total stock adjustments made","matTooltipPosition","above"],["matTooltip","Stock based on end date (to date filter)","matTooltipPosition","above"],["matTooltip","Current on-hand inventory","matTooltipPosition","above"],["matTooltip","Percentage of sold items compared to the total items received from other outlets.","matTooltipPosition","above",1,"text-end"],[3,"routerLink","queryParams"],[1,"text-end"],[1,"text-end",3,"colsFontColor"],[1,"text-end","text-success"],[1,"text-end","text-danger"],["colspan","12"],[1,"table-footer"],[1,"empty-column","text-end"],[1,"text-end","text-success",3,"colsFontColor"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[4,"ngIf"],["role","button",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["matTooltipPosition","above","matTooltip","Retrieve rows count",1,"border","p-3"]],template:function(m,a){if(m&1){let f=P();o(0,"mainpanel-cmp",1),h("onSubmit",function(){return x(f),v(a.searchFromPageOne())}),S("filterChange",function(F){return x(f),I(a.pageData.Filter,F)||(a.pageData.Filter=F),v(F)}),o(1,"actions"),y(2,yt,3,0,"button",2),n(),o(3,"filters"),y(4,Tt,17,20,"ng-template",null,0,j),n(),o(6,"content")(7,"div",3)(8,"div",4)(9,"table",5)(10,"thead",6)(11,"tr")(12,"th",7),r(13,"Outlet"),n(),o(14,"th"),r(15,"Product"),n(),y(16,gt,2,0,"th",8)(17,It,3,0,"th",9)(18,St,3,0,"th",9)(19,Pt,3,0,"th",9)(20,ht,3,0,"th",9)(21,Ft,3,0,"th",9)(22,Et,3,0,"th",9)(23,wt,3,0,"th",9)(24,Dt,3,0,"th",9)(25,bt,3,0,"th",9),n()(),o(26,"tbody"),y(27,Gt,2,0)(28,Rt,3,0,"tr"),n(),y(29,Zt,12,9,"tfoot"),n()(),y(30,ee,11,6,"div",10),n()()()}m&2&&(_("pageData",a.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),g("filter",a.pageData.Filter),_("column",a.column),i(2),_("ngIf",a.roleService.global.Export),i(14),p(a.column.code.selected?16:-1),i(),p(a.column.start.selected?17:-1),i(),p(a.column.bought.selected?18:-1),i(),p(a.column.sold.selected?19:-1),i(),p(a.column.transferredIn.selected?20:-1),i(),p(a.column.transferredOut.selected?21:-1),i(),p(a.column.adjust.selected?22:-1),i(),p(a.column.end.selected?23:-1),i(),p(a.column.now.selected?24:-1),i(),p(a.column.percent.selected?25:-1),i(2),p(a.infiniteList&&a.infiniteList.length>0?27:28),i(2),p(a.infiniteList&&a.infiniteList.length>0?29:-1),i(),p(a.infiniteList&&a.infiniteList.length>0?30:-1))},dependencies:[ot,nt,A,q,W,H,mt,lt,_t,it,et,R,Z,dt,ct,rt,at,st,ut,J,Q],encapsulation:2})};export{Ct as Product_Inventory_TrafficComponent};
1
+ import{a as _t,b as ut}from"./chunk-JUYFABKK.js";import{a as pt}from"./chunk-FKDZ5OWB.js";import{a as mt}from"./chunk-IYV6WHO4.js";import{a as st}from"./chunk-BXQFYW4R.js";import"./chunk-4UYZJCFI.js";import"./chunk-BYXBJQAS.js";import{d as ct,e as dt}from"./chunk-GIDGCFLX.js";import"./chunk-XBRBYCWJ.js";import"./chunk-3RK6DDJD.js";import"./chunk-FP4HFB5J.js";import"./chunk-H3OZSV6V.js";import"./chunk-YEDKRNXU.js";import"./chunk-VZEPVRCY.js";import"./chunk-7QWJJPNG.js";import{d as at,e as rt}from"./chunk-6647Y35T.js";import"./chunk-VHAM2DWK.js";import{a as Z}from"./chunk-JPXXXD26.js";import{a as U}from"./chunk-MBJ5EVQM.js";import{f as lt}from"./chunk-LKII7K7T.js";import{b as Y}from"./chunk-QHBWVJIQ.js";import"./chunk-MPCAKU6Y.js";import"./chunk-AJM4N35T.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-BLSJR63P.js";import"./chunk-B6LPY2IZ.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-V3Y7QS6E.js";import{b as $}from"./chunk-EY2BEKKH.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-H7F34T25.js";import{b as Q,c as J}from"./chunk-JOXTERIM.js";import{N as it,g as et}from"./chunk-TSIYPTYI.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-5FSR4IZJ.js";import"./chunk-JMQDEPZK.js";import{d as K}from"./chunk-ZZGSAFGO.js";import"./chunk-DK2SUVKT.js";import{$a as i,Ac as u,Bc as C,Db as p,Eb as k,Fc as j,Gb as M,Hb as N,Ib as o,Jb as n,Kb as E,Ob as P,Qb as h,Rb as c,Rd as R,Yd as z,Zc as q,db as T,ec as r,fc as w,gc as s,gd as W,jc as g,jd as A,kb as L,kc as I,lc as S,ob as O,qb as y,qc as D,rc as b,ub as V,va as x,vb as _,wa as v,wd as G,zc as d}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var xt=()=>["/menu/Outlets/Master/Outlets/Info"],ft=t=>({ID:t}),vt=()=>["/menu/Products/Catalog/Products/Info"];function yt(t,l){if(t&1){let e=P();o(0,"button",11),h("click",function(){x(e);let a=c();return v(a.openExportModal())}),E(1,"i",12),r(2," Export "),n()}}function Tt(t,l){if(t&1){let e=P();o(0,"div",13)(1,"h6"),r(2,"Outlet Group"),n(),o(3,"POS-outlet-group-tree-select",14),S("selectedOutletGroupIDChange",function(a){x(e);let f=c();return I(f.pageData.Filter.OutletGroupID,a)||(f.pageData.Filter.OutletGroupID=a),v(a)}),n(),o(4,"h6"),r(5,"Category"),n(),o(6,"POS-product-category-select",15),S("selectedCategoryIDChange",function(a){x(e);let f=c();return I(f.pageData.Filter.CategoryID,a)||(f.pageData.Filter.CategoryID=a),v(a)}),n(),o(7,"autocompleteV3",16),S("modelNameChange",function(a){x(e);let f=c();return I(f.pageData.Filter.ListProductID,a)||(f.pageData.Filter.ListProductID=a),v(a)}),n(),o(8,"h6"),r(9,"From - To"),n(),o(10,"div")(11,"datepicker",17),S("dateChange",function(a){x(e);let f=c();return I(f.pageData.Filter.From,a)||(f.pageData.Filter.From=a),v(a)}),n()(),o(12,"div",18)(13,"datepicker",19),S("dateChange",function(a){x(e);let f=c();return I(f.pageData.Filter.To,a)||(f.pageData.Filter.To=a),v(a)}),n()(),o(14,"h6"),r(15,"Inventory Type"),n(),o(16,"radio-options",20),S("modelChange",function(a){x(e);let f=c();return I(f.pageData.Filter.InventoryType,a)||(f.pageData.Filter.InventoryType=a),v(a)}),n()()}if(t&2){let e=c();i(3),_("showClear",!0),g("selectedOutletGroupID",e.pageData.Filter.OutletGroupID),i(3),g("selectedCategoryID",e.pageData.Filter.CategoryID),_("showClear",!0),i(),g("modelName",e.pageData.Filter.ListProductID),_("placeholder","Search Product")("isShowEmptyMessage",!0)("emptyMessage","No Product found")("tooltipMessage","Search by product name")("label","Product to Analyze")("listDataEndpoint","/api/ac/GetProductSuggestionByCodeNName")("valueField","Key"),i(4),_("isFloatingLabel",!1),g("date",e.pageData.Filter.From),_("hidelClearBtn",!0),i(2),_("isFloatingLabel",!1),g("date",e.pageData.Filter.To),_("hidelClearBtn",!0),i(3),g("model",e.pageData.Filter.InventoryType),_("options",e.pageData.Options.InventoryTypes)}}function gt(t,l){t&1&&(o(0,"th",8),r(1,"Code"),n())}function It(t,l){t&1&&(o(0,"th",9)(1,"span",21),r(2," Start "),n()())}function St(t,l){t&1&&(o(0,"th",9)(1,"span",22),r(2," Bought "),n()())}function Pt(t,l){t&1&&(o(0,"th",9)(1,"span",23),r(2," Sold "),n()())}function ht(t,l){t&1&&(o(0,"th",9)(1,"span",24),r(2," T.In "),n()())}function Ft(t,l){t&1&&(o(0,"th",9)(1,"span",25),r(2," T.Out "),n()())}function Et(t,l){t&1&&(o(0,"th",9)(1,"span",26),r(2," Adj "),n()())}function wt(t,l){t&1&&(o(0,"th",9)(1,"span",27),r(2," End "),n()())}function Dt(t,l){t&1&&(o(0,"th",9)(1,"span",28),r(2," Now "),n()())}function bt(t,l){t&1&&(o(0,"th",9)(1,"span",29),r(2," % "),n()())}function Bt(t,l){if(t&1&&(o(0,"td",31),r(1),n()),t&2){let e=c().$implicit;i(),s(" ",e.ProductCode," ")}}function Lt(t,l){if(t&1&&(o(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;_("colsFontColor",e.Start),i(),s(" ",u(2,2,e.Start)," ")}}function Ot(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),s(" ",u(2,1,e.Bought)," ")}}function Vt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),s(" ",u(2,1,e.Sold)," ")}}function kt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),s(" ",u(2,1,e.TransferredIn)," ")}}function Mt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),s(" ",u(2,1,e.TransferredOut)," ")}}function Nt(t,l){if(t&1&&(o(0,"td",32),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;_("colsFontColor",e.Adjustment),i(),s(" ",e.Adjustment<0?e.Adjustment*-1:u(2,2,e.Adjustment)," ")}}function jt(t,l){if(t&1&&(o(0,"td",32),r(1),n()),t&2){let e=c().$implicit;_("colsFontColor",e.End),i(),s(" ",e.End," ")}}function qt(t,l){if(t&1&&(o(0,"td",32),r(1),n()),t&2){let e=c().$implicit;_("colsFontColor",e.Now),i(),s(" ",e.Now," ")}}function Wt(t,l){if(t&1&&(o(0,"td",31),r(1),d(2,"quantityFraction"),n()),t&2){let e=c().$implicit;i(),s(" ",u(2,1,e.SellTransferInRate)," ")}}function At(t,l){if(t&1&&(o(0,"tr")(1,"td")(2,"a",30),r(3),n()(),o(4,"td")(5,"a",30),r(6),n()(),y(7,Bt,2,1,"td",31)(8,Lt,3,4,"td",32)(9,Ot,3,3,"td",33)(10,Vt,3,3,"td",34)(11,kt,3,3,"td",33)(12,Mt,3,3,"td",34)(13,Nt,3,4,"td",32)(14,jt,2,2,"td",32)(15,qt,2,2,"td",32)(16,Wt,3,3,"td",31),n()),t&2){let e=l.$implicit,m=c(2);i(2),_("routerLink",D(16,xt))("queryParams",b(17,ft,e.OutletID)),i(),s(" ",e.OutletName," "),i(2),_("routerLink",D(19,vt))("queryParams",b(20,ft,e.ProductID)),i(),w(e.ProductName),i(),p(m.column.code.selected?7:-1),i(),p(m.column.start.selected?8:-1),i(),p(m.column.bought.selected?9:-1),i(),p(m.column.sold.selected?10:-1),i(),p(m.column.transferredIn.selected?11:-1),i(),p(m.column.transferredOut.selected?12:-1),i(),p(m.column.adjust.selected?13:-1),i(),p(m.column.end.selected?14:-1),i(),p(m.column.now.selected?15:-1),i(),p(m.column.percent.selected?16:-1)}}function Gt(t,l){if(t&1&&M(0,At,17,22,"tr",null,k),t&2){let e=c();N(e.infiniteList)}}function Rt(t,l){t&1&&(o(0,"tr")(1,"td",35),E(2,"app-empty-state"),n()())}function Ht(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",u(2,5,C(1,2,e.infiniteList,"Start"))),i(3),s(" ",u(5,10,C(4,7,e.infiniteList,"Start"))," ")}}function zt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),s(" ",u(3,4,C(2,1,e.infiniteList,"Bought"))," ")}}function Kt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),s(" ",u(3,4,C(2,1,e.infiniteList,"Sold"))," ")}}function Qt(t,l){if(t&1&&(o(0,"td",33),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),s(" ",u(3,4,C(2,1,e.infiniteList,"TransferredIn"))," ")}}function Jt(t,l){if(t&1&&(o(0,"td",34),r(1),d(2,"sum"),d(3,"quantityFraction"),n()),t&2){let e=c(2);i(),s(" ",u(3,4,C(2,1,e.infiniteList,"TransferredOut"))," ")}}function Ut(t,l){if(t&1&&(o(0,"td",38),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",u(2,5,C(1,2,e.infiniteList,"Adjustment"))),i(3),s(" ",u(5,10,C(4,7,e.infiniteList,"Adjustment"))," ")}}function Xt(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",u(2,5,C(1,2,e.infiniteList,"End"))),i(3),s(" ",u(5,10,C(4,7,e.infiniteList,"End"))," ")}}function Yt(t,l){if(t&1&&(o(0,"td",32),d(1,"sum"),d(2,"quantityFraction"),r(3),d(4,"sum"),d(5,"quantityFraction"),n()),t&2){let e=c(2);_("colsFontColor",u(2,5,C(1,2,e.infiniteList,"Now"))),i(3),s(" ",u(5,10,C(4,7,e.infiniteList,"Now"))," ")}}function Zt(t,l){if(t&1&&(o(0,"tfoot")(1,"tr",36)(2,"th",37),r(3," Total: "),n(),y(4,Ht,6,12,"td",32)(5,zt,4,6,"td",33)(6,Kt,4,6,"td",34)(7,Qt,4,6,"td",33)(8,Jt,4,6,"td",34)(9,Ut,6,12,"td",38)(10,Xt,6,12,"td",32)(11,Yt,6,12,"td",32),n()()),t&2){let e=c();i(2),V("colspan",e.column.code.selected?3:2),i(2),p(e.column.start.selected?4:-1),i(),p(e.column.bought.selected?5:-1),i(),p(e.column.sold.selected?6:-1),i(),p(e.column.transferredIn.selected?7:-1),i(),p(e.column.transferredOut.selected?8:-1),i(),p(e.column.adjust.selected?9:-1),i(),p(e.column.end.selected?10:-1),i(),p(e.column.now.selected?11:-1)}}function $t(t,l){if(t&1){let e=P();o(0,"span",45),h("click",function(){x(e);let a=c(2);return v(a.StoreRowsCountAPIResult("inventory/GetCountProductInventoryTraffic"))}),o(1,"i",46),r(2,"?"),n()()}}function te(t,l){if(t&1&&(o(0,"span"),r(1),d(2,"number"),n()),t&2){let e=c(2);i(),w(u(2,1,e.listTotal))}}function ee(t,l){if(t&1){let e=P();o(0,"div",10)(1,"div",39)(2,"div",40),r(3),d(4,"number"),y(5,$t,3,0,"span",41)(6,te,3,3,"span",42),r(7),n()(),o(8,"a",43),h("click",function(){x(e);let a=c();return v(a.NextPage(!0))}),E(9,"i",44),r(10," Next"),n()()}if(t&2){let e=c();i(3),s(" Showing 1 - ",u(4,4,e.infiniteList.length)," of "),i(2),_("ngIf",!e.pageData.HideStoreApiCount),i(),_("ngIf",e.pageData.HideStoreApiCount),i(),s(" records ~ ",e.pageData.Filter.PageNumber," Page ")}}var Ct=class t extends U{constructor(e,m,a,f,B,F,ie){super(e,m,"inventory/GetProductInventoryTraffic","inventoryloader/GetProductInventoryTraffic",void 0,void 0,!0);this.httpService=m;this.csvConverter=a;this.pageTitle=f;this.converter=B;this.roleService=F;this.matDialog=ie;this.pageTitle.setTitle(this.menuData.T)}column={code:{selected:!0,name:"Code"},start:{selected:!0,name:"Start"},bought:{selected:!1,name:"Bought"},sold:{selected:!0,name:"Sold"},transferredIn:{selected:!0,name:"T.In"},transferredOut:{selected:!0,name:"T.Out"},adjust:{selected:!1,name:"Adjust"},end:{selected:!0,name:"End"},now:{selected:!0,name:"Now"},percent:{selected:!1,name:"Percentage"}};selectedProduct=[];postBindData(){this.menuData.H=this.data.PageTitle}openExportModal(){this.matDialog.open(Y,{data:{title:"Product Inventory Traffic",exportTypes:[{ID:"inventoryexport/GetExportProductInventoryTraffic",Value:"Default",FileName:"Product Inventory Traffic"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!0}})}static \u0275fac=function(m){return new(m||t)(T($),T(z),T(tt),T(G),T(pt),T(K),T(X))};static \u0275cmp=L({type:t,selectors:[["POS-product-inventory-traffic"]],features:[O],decls:31,vars:19,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter","column"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[2,"width","150px"],[1,"text-end",2,"width","100px"],[1,"text-end",2,"width","80px"],[1,"d-flex","justify-content-between","mt-5"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[1,"tree-select-as-filter",3,"selectedOutletGroupIDChange","showClear","selectedOutletGroupID"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],[3,"modelNameChange","modelName","placeholder","isShowEmptyMessage","emptyMessage","tooltipMessage","label","listDataEndpoint","valueField"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date","hidelClearBtn"],["name","ProductTypeId",3,"modelChange","model","options"],["matTooltip","Stock based on start date (from date filter)","matTooltipPosition","above"],["matTooltip","Movement Stock from Inbound Logistics (Supplier Bill)","matTooltipPosition","above"],["matTooltip","Movement Stock from Outbound Logistics (Customer Invoice)","matTooltipPosition","above"],["matTooltip","Stock received from other outlets","matTooltipPosition","above"],["matTooltip","Stock sent to other outlets","matTooltipPosition","above"],["matTooltip","Total stock adjustments made","matTooltipPosition","above"],["matTooltip","Stock based on end date (to date filter)","matTooltipPosition","above"],["matTooltip","Current on-hand inventory","matTooltipPosition","above"],["matTooltip","Percentage of sold items compared to the total items received from other outlets.","matTooltipPosition","above",1,"text-end"],[3,"routerLink","queryParams"],[1,"text-end"],[1,"text-end",3,"colsFontColor"],[1,"text-end","text-success"],[1,"text-end","text-danger"],["colspan","12"],[1,"table-footer"],[1,"empty-column","text-end"],[1,"text-end","text-success",3,"colsFontColor"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],["style","cursor: pointer",3,"click",4,"ngIf"],[4,"ngIf"],["role","button",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["matTooltipPosition","above","matTooltip","Retrieve rows count",1,"border","p-3"]],template:function(m,a){if(m&1){let f=P();o(0,"mainpanel-cmp",1),h("onSubmit",function(){return x(f),v(a.searchFromPageOne())}),S("filterChange",function(F){return x(f),I(a.pageData.Filter,F)||(a.pageData.Filter=F),v(F)}),o(1,"actions"),y(2,yt,3,0,"button",2),n(),o(3,"filters"),y(4,Tt,17,20,"ng-template",null,0,j),n(),o(6,"content")(7,"div",3)(8,"div",4)(9,"table",5)(10,"thead",6)(11,"tr")(12,"th",7),r(13,"Outlet"),n(),o(14,"th"),r(15,"Product"),n(),y(16,gt,2,0,"th",8)(17,It,3,0,"th",9)(18,St,3,0,"th",9)(19,Pt,3,0,"th",9)(20,ht,3,0,"th",9)(21,Ft,3,0,"th",9)(22,Et,3,0,"th",9)(23,wt,3,0,"th",9)(24,Dt,3,0,"th",9)(25,bt,3,0,"th",9),n()(),o(26,"tbody"),y(27,Gt,2,0)(28,Rt,3,0,"tr"),n(),y(29,Zt,12,9,"tfoot"),n()(),y(30,ee,11,6,"div",10),n()()()}m&2&&(_("pageData",a.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),g("filter",a.pageData.Filter),_("column",a.column),i(2),_("ngIf",a.roleService.global.Export),i(14),p(a.column.code.selected?16:-1),i(),p(a.column.start.selected?17:-1),i(),p(a.column.bought.selected?18:-1),i(),p(a.column.sold.selected?19:-1),i(),p(a.column.transferredIn.selected?20:-1),i(),p(a.column.transferredOut.selected?21:-1),i(),p(a.column.adjust.selected?22:-1),i(),p(a.column.end.selected?23:-1),i(),p(a.column.now.selected?24:-1),i(),p(a.column.percent.selected?25:-1),i(2),p(a.infiniteList&&a.infiniteList.length>0?27:28),i(2),p(a.infiniteList&&a.infiniteList.length>0?29:-1),i(),p(a.infiniteList&&a.infiniteList.length>0?30:-1))},dependencies:[ot,nt,A,q,W,H,mt,lt,_t,it,et,R,Z,dt,ct,rt,at,st,ut,J,Q],encapsulation:2})};export{Ct as Product_Inventory_TrafficComponent};
@@ -1 +1 @@
1
- import{b as Q}from"./chunk-EOVI4KWG.js";import"./chunk-XJ7SOVB2.js";import{d as ce,e as se}from"./chunk-GIDGCFLX.js";import"./chunk-XBRBYCWJ.js";import"./chunk-3RK6DDJD.js";import"./chunk-FP4HFB5J.js";import"./chunk-H3OZSV6V.js";import"./chunk-YEDKRNXU.js";import"./chunk-VZEPVRCY.js";import"./chunk-7QWJJPNG.js";import"./chunk-VHAM2DWK.js";import{a as le,b as me}from"./chunk-BBGWXLHJ.js";import{b as te}from"./chunk-QHBWVJIQ.js";import{a as X}from"./chunk-IJVIVNVH.js";import"./chunk-KAJ5NYU6.js";import{a as ne}from"./chunk-XZR3IMWZ.js";import{e as re,f as pe}from"./chunk-BA64MIHJ.js";import"./chunk-B6LPY2IZ.js";import"./chunk-QHRP323Q.js";import"./chunk-WDQ4UKKY.js";import"./chunk-MFCXEITE.js";import"./chunk-MUJ6277G.js";import"./chunk-ZJHWFDGD.js";import{b as ie}from"./chunk-SPTLCHEU.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-H7F34T25.js";import"./chunk-JOXTERIM.js";import{G as ae,N as oe}from"./chunk-TSIYPTYI.js";import{d as $,e as ee}from"./chunk-XYB3YDKL.js";import{g as Z}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import{F as U,h as q,o as K}from"./chunk-RVXZOIFQ.js";import"./chunk-PW7JCR65.js";import"./chunk-XMABJJGK.js";import{d as z}from"./chunk-ZZGSAFGO.js";import"./chunk-QPS677LS.js";import{$a as p,Bc as v,Eb as V,Fc as O,Gb as L,Hb as A,Ib as n,Jb as i,Kb as F,Kc as j,Lb as y,Mb as h,Ob as D,Qb as I,Rb as m,Rd as R,Td as H,Vd as J,Yd as Y,Zc as B,db as C,ec as l,fc as x,jc as _,jd as N,kb as E,kc as d,lc as u,na as w,ob as P,qb as f,qc as W,rc as k,va as s,vb as c,wa as g,wd as G,zc as b}from"./chunk-UXRO4UFY.js";import{a as T,b as M}from"./chunk-7DCB7DB2.js";var de=()=>["/menu/Contacts/Contact/Customers/Info"],ue=o=>({ID:o});function Se(o,S){if(o&1){let e=D();n(0,"button",9),I("click",function(){s(e);let t=m(2);return g(t.openExportModal())}),F(1,"i",10),l(2," Export "),i()}}function Ce(o,S){if(o&1){let e=D();n(0,"div")(1,"div",11)(2,"h6"),l(3,"Status"),i(),n(4,"ng-select",12),u("ngModelChange",function(t){s(e);let a=m(2);return d(a.contactState,t)||(a.contactState=t),g(t)}),i(),n(5,"h6"),l(6,"Outlet Sign Up"),i(),n(7,"ng-select",13),u("ngModelChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.CreatorEntityID,t)||(a.pageData.Filter.CreatorEntityID=t),g(t)}),i(),n(8,"h6"),l(9,"Group"),i(),n(10,"ng-select",14),u("ngModelChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.GroupID,t)||(a.pageData.Filter.GroupID=t),g(t)}),i(),n(11,"h6"),l(12,"Join Date Range"),i(),n(13,"div")(14,"datepicker",15),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.From,t)||(a.pageData.Filter.From=t),g(t)}),i()(),n(15,"div",16)(16,"datepicker",17),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.To,t)||(a.pageData.Filter.To=t),g(t)}),i()(),n(17,"h6"),l(18,"Sign In Date Range"),i(),n(19,"div")(20,"datepicker",15),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.SignFrom,t)||(a.pageData.Filter.SignFrom=t),g(t)}),i()(),n(21,"div",16)(22,"datepicker",17),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.SignTo,t)||(a.pageData.Filter.SignTo=t),g(t)}),i()()()()}if(o&2){let e=m(2);p(4),_("ngModel",e.contactState),c("items",e.pageData.Options.ContactStates)("clearable",!1),p(3),_("ngModel",e.pageData.Filter.CreatorEntityID),c("items",e.pageData.Options.Entities),p(3),_("ngModel",e.pageData.Filter.GroupID),c("items",e.pageData.Options.Groups),p(4),c("isFloatingLabel",!1),_("date",e.pageData.Filter.From),p(2),c("isFloatingLabel",!1),_("date",e.pageData.Filter.To),p(4),c("isFloatingLabel",!1),_("date",e.pageData.Filter.SignFrom),p(2),c("isFloatingLabel",!1),_("date",e.pageData.Filter.SignTo)}}function xe(o,S){if(o&1&&(n(0,"tr")(1,"th")(2,"a",28),l(3),i()(),n(4,"td"),l(5),i(),n(6,"td"),l(7),i(),n(8,"td"),l(9),i(),n(10,"td"),l(11),b(12,"IsMinDate"),i(),n(13,"td"),l(14),b(15,"IsMinDate"),i()()),o&2){let e=S.$implicit;p(2),c("routerLink",W(14,de))("queryParams",k(15,ue,e.ID)),p(),x(e.Name),p(2),x(e.Code),p(2),x(e.Mobile),p(2),x(e.Email),p(2),x(v(12,8,e.JoinDate,"dd MMM yyyy")),p(3),x(v(15,11,e.AppLastSignIn,"dd MMM yyyy HH:mm"))}}function fe(o,S){if(o&1){let e=D();n(0,"div",29)(1,"POS-complex-pagination",30),I("jumpToPage",function(){s(e);let t=m(3);return g(t.getListData())})("previousPage",function(){s(e);let t=m(3);return g(t.getListData())})("nextPage",function(){s(e);let t=m(3);return g(t.getListData())}),i()()}if(o&2){let e=m(3);p(),c("total",e.data.Data.length)("pageData",e.pageData)}}function De(o,S){if(o&1&&(y(0,18),n(1,"div",19)(2,"div",20)(3,"table",21)(4,"thead",22)(5,"tr",23)(6,"th"),l(7,"Name"),i(),n(8,"th",24),l(9,"Code"),i(),n(10,"th",24),l(11,"Mobile"),i(),n(12,"th",25),l(13,"Email"),i(),n(14,"th",26),l(15,"Join Date"),i(),n(16,"th",24),l(17,"Last Sign In"),i()()(),n(18,"tbody"),L(19,xe,16,17,"tr",null,V),i()()(),f(21,fe,2,2,"div",27),i(),h()),o&2){let e=m(2);p(19),A(e.data.Data),p(2),c("ngIf",e.pageData.Filter)}}function ye(o,S){if(o&1){let e=D();n(0,"mainpanel-cmp",2),u("textChange",function(t){s(e);let a=m();return d(a.pageData.Filter.Text,t)||(a.pageData.Filter.Text=t),g(t)}),I("onSubmit",function(){s(e);let t=m();return g(t.searchFromPageOne())}),u("filterChange",function(t){s(e);let a=m();return d(a.pageData.Filter,t)||(a.pageData.Filter=t),g(t)}),y(1,3),n(2,"a",4),F(3,"i",5),l(4,"Get Your Brand Loyalty App "),i(),f(5,Se,3,0,"button",6),h(),y(6,7),f(7,Ce,23,15,"ng-template",null,0,O),h(),f(9,De,22,1,"ng-container",8),i()}if(o&2){let e=m();c("pageData",e.menuData),_("text",e.pageData.Filter.Text),c("isFilterOnDropdown",!1),_("filter",e.pageData.Filter),p(5),c("ngIf",e.role.global.Export),p(4),c("ngIf",e.data&&e.data.Data)}}var ge=class o extends X{constructor(e,r,t,a,_e,he){super(e,r,"Contact/CustomerAppSignInList","ContactLoader/CustomerList",_e);this.httpService=r;this.csvConverter=t;this.matDialog=a;this.role=he}cdr=w(j);title=w(G);contactState;ngOnInit(){let e=JSON.parse(localStorage.getItem("AccountInfo"));this.title.setTitle(e.BrandName+" POS | App Sign In")}postInit(e){this.menuData.H="App Sign In",this.cdr.markForCheck()}preInitList(){this.contactState=this.pageData.Filter.ContactStateID,this.pageData.Options.ContactStates=[{Key:0,Value:"All"},...this.pageData.Options.ContactStates],this.pageData.Filter=M(T({},this.pageData.Filter),{SignFrom:this.pageData.Filter.SignFrom?this.pageData.Filter.SignFrom:"0001-01-01T00:00:00",SignTo:this.pageData.Filter.SignTo?this.pageData.Filter.SignTo:"0001-01-01T00:00:00"})}openExportModal(){this.matDialog.open(te,{data:{title:"Loyalty App Last Sign In",exportTypes:[{ID:"ContactExport/LoyaltyLastSignIn",Value:"Default",FileName:"LoyaltyAppLastSignIn"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}preGetList(){this.pageData.Filter.ContactStateID=this.contactState==0?null:this.contactState}static \u0275fac=function(r){return new(r||o)(C(ie),C(Y),C(ne),C(Z),C(J),C(z))};static \u0275cmp=E({type:o,selectors:[["pos-app-sign-in"]],features:[P],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","text","isFilterOnDropdown","filter","textChange","onSubmit","filterChange",4,"ngIf"],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["ngProjectAs","actions",5,["actions"]],["target","_blank","href","https://www.dealpos.co.id/tour/customer-loyalty-program",1,"btn","btn-outline-secondary"],[1,"fa-solid","fa-mobile","me-1"],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"],4,"ngIf"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose Status",3,"ngModelChange","ngModel","items","clearable"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose an Outlet...",3,"ngModelChange","ngModel","items"],["bindLabel","Name","bindValue","ID","placeholder","Choose a Group...",3,"ngModelChange","ngModel","items"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date"],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","150px"],[2,"width","200px"],[2,"width","100px"],["class","mt-2",4,"ngIf"],[1,"fw-normal",3,"routerLink","queryParams"],[1,"mt-2"],["api","Contact/CustomerAppSignInCount",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(r,t){r&1&&f(0,ye,10,6,"mainpanel-cmp",1),r&2&&c("ngIf",t.pageData.Filter)},dependencies:[pe,re,se,ce,N,B,U,q,K,H,R,Q,ee,$,me,le,oe,ae],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{ge as AppSignInComponent};
1
+ import{b as Q}from"./chunk-EOVI4KWG.js";import"./chunk-XJ7SOVB2.js";import{d as ce,e as se}from"./chunk-GIDGCFLX.js";import"./chunk-XBRBYCWJ.js";import"./chunk-3RK6DDJD.js";import"./chunk-FP4HFB5J.js";import"./chunk-H3OZSV6V.js";import"./chunk-YEDKRNXU.js";import"./chunk-VZEPVRCY.js";import"./chunk-7QWJJPNG.js";import"./chunk-VHAM2DWK.js";import{a as le,b as me}from"./chunk-BBGWXLHJ.js";import{b as te}from"./chunk-QHBWVJIQ.js";import{a as X}from"./chunk-MPCAKU6Y.js";import"./chunk-AJM4N35T.js";import{a as ne}from"./chunk-XZR3IMWZ.js";import{e as re,f as pe}from"./chunk-BLSJR63P.js";import"./chunk-B6LPY2IZ.js";import"./chunk-QHRP323Q.js";import"./chunk-WDQ4UKKY.js";import"./chunk-MFCXEITE.js";import"./chunk-MUJ6277G.js";import"./chunk-V3Y7QS6E.js";import{b as ie}from"./chunk-EY2BEKKH.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-H7F34T25.js";import"./chunk-JOXTERIM.js";import{G as ae,N as oe}from"./chunk-TSIYPTYI.js";import{d as $,e as ee}from"./chunk-XYB3YDKL.js";import{g as Z}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import{F as U,h as q,o as K}from"./chunk-RVXZOIFQ.js";import"./chunk-5FSR4IZJ.js";import"./chunk-JMQDEPZK.js";import{d as z}from"./chunk-ZZGSAFGO.js";import"./chunk-DK2SUVKT.js";import{$a as p,Bc as v,Eb as V,Fc as O,Gb as L,Hb as A,Ib as n,Jb as i,Kb as F,Kc as j,Lb as y,Mb as h,Ob as D,Qb as I,Rb as m,Rd as R,Td as H,Vd as J,Yd as Y,Zc as B,db as C,ec as l,fc as x,jc as _,jd as N,kb as E,kc as d,lc as u,na as w,ob as P,qb as f,qc as W,rc as k,va as s,vb as c,wa as g,wd as G,zc as b}from"./chunk-UXRO4UFY.js";import{a as T,b as M}from"./chunk-7DCB7DB2.js";var de=()=>["/menu/Contacts/Contact/Customers/Info"],ue=o=>({ID:o});function Se(o,S){if(o&1){let e=D();n(0,"button",9),I("click",function(){s(e);let t=m(2);return g(t.openExportModal())}),F(1,"i",10),l(2," Export "),i()}}function Ce(o,S){if(o&1){let e=D();n(0,"div")(1,"div",11)(2,"h6"),l(3,"Status"),i(),n(4,"ng-select",12),u("ngModelChange",function(t){s(e);let a=m(2);return d(a.contactState,t)||(a.contactState=t),g(t)}),i(),n(5,"h6"),l(6,"Outlet Sign Up"),i(),n(7,"ng-select",13),u("ngModelChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.CreatorEntityID,t)||(a.pageData.Filter.CreatorEntityID=t),g(t)}),i(),n(8,"h6"),l(9,"Group"),i(),n(10,"ng-select",14),u("ngModelChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.GroupID,t)||(a.pageData.Filter.GroupID=t),g(t)}),i(),n(11,"h6"),l(12,"Join Date Range"),i(),n(13,"div")(14,"datepicker",15),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.From,t)||(a.pageData.Filter.From=t),g(t)}),i()(),n(15,"div",16)(16,"datepicker",17),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.To,t)||(a.pageData.Filter.To=t),g(t)}),i()(),n(17,"h6"),l(18,"Sign In Date Range"),i(),n(19,"div")(20,"datepicker",15),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.SignFrom,t)||(a.pageData.Filter.SignFrom=t),g(t)}),i()(),n(21,"div",16)(22,"datepicker",17),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.SignTo,t)||(a.pageData.Filter.SignTo=t),g(t)}),i()()()()}if(o&2){let e=m(2);p(4),_("ngModel",e.contactState),c("items",e.pageData.Options.ContactStates)("clearable",!1),p(3),_("ngModel",e.pageData.Filter.CreatorEntityID),c("items",e.pageData.Options.Entities),p(3),_("ngModel",e.pageData.Filter.GroupID),c("items",e.pageData.Options.Groups),p(4),c("isFloatingLabel",!1),_("date",e.pageData.Filter.From),p(2),c("isFloatingLabel",!1),_("date",e.pageData.Filter.To),p(4),c("isFloatingLabel",!1),_("date",e.pageData.Filter.SignFrom),p(2),c("isFloatingLabel",!1),_("date",e.pageData.Filter.SignTo)}}function xe(o,S){if(o&1&&(n(0,"tr")(1,"th")(2,"a",28),l(3),i()(),n(4,"td"),l(5),i(),n(6,"td"),l(7),i(),n(8,"td"),l(9),i(),n(10,"td"),l(11),b(12,"IsMinDate"),i(),n(13,"td"),l(14),b(15,"IsMinDate"),i()()),o&2){let e=S.$implicit;p(2),c("routerLink",W(14,de))("queryParams",k(15,ue,e.ID)),p(),x(e.Name),p(2),x(e.Code),p(2),x(e.Mobile),p(2),x(e.Email),p(2),x(v(12,8,e.JoinDate,"dd MMM yyyy")),p(3),x(v(15,11,e.AppLastSignIn,"dd MMM yyyy HH:mm"))}}function fe(o,S){if(o&1){let e=D();n(0,"div",29)(1,"POS-complex-pagination",30),I("jumpToPage",function(){s(e);let t=m(3);return g(t.getListData())})("previousPage",function(){s(e);let t=m(3);return g(t.getListData())})("nextPage",function(){s(e);let t=m(3);return g(t.getListData())}),i()()}if(o&2){let e=m(3);p(),c("total",e.data.Data.length)("pageData",e.pageData)}}function De(o,S){if(o&1&&(y(0,18),n(1,"div",19)(2,"div",20)(3,"table",21)(4,"thead",22)(5,"tr",23)(6,"th"),l(7,"Name"),i(),n(8,"th",24),l(9,"Code"),i(),n(10,"th",24),l(11,"Mobile"),i(),n(12,"th",25),l(13,"Email"),i(),n(14,"th",26),l(15,"Join Date"),i(),n(16,"th",24),l(17,"Last Sign In"),i()()(),n(18,"tbody"),L(19,xe,16,17,"tr",null,V),i()()(),f(21,fe,2,2,"div",27),i(),h()),o&2){let e=m(2);p(19),A(e.data.Data),p(2),c("ngIf",e.pageData.Filter)}}function ye(o,S){if(o&1){let e=D();n(0,"mainpanel-cmp",2),u("textChange",function(t){s(e);let a=m();return d(a.pageData.Filter.Text,t)||(a.pageData.Filter.Text=t),g(t)}),I("onSubmit",function(){s(e);let t=m();return g(t.searchFromPageOne())}),u("filterChange",function(t){s(e);let a=m();return d(a.pageData.Filter,t)||(a.pageData.Filter=t),g(t)}),y(1,3),n(2,"a",4),F(3,"i",5),l(4,"Get Your Brand Loyalty App "),i(),f(5,Se,3,0,"button",6),h(),y(6,7),f(7,Ce,23,15,"ng-template",null,0,O),h(),f(9,De,22,1,"ng-container",8),i()}if(o&2){let e=m();c("pageData",e.menuData),_("text",e.pageData.Filter.Text),c("isFilterOnDropdown",!1),_("filter",e.pageData.Filter),p(5),c("ngIf",e.role.global.Export),p(4),c("ngIf",e.data&&e.data.Data)}}var ge=class o extends X{constructor(e,r,t,a,_e,he){super(e,r,"Contact/CustomerAppSignInList","ContactLoader/CustomerList",_e);this.httpService=r;this.csvConverter=t;this.matDialog=a;this.role=he}cdr=w(j);title=w(G);contactState;ngOnInit(){let e=JSON.parse(localStorage.getItem("AccountInfo"));this.title.setTitle(e.BrandName+" POS | App Sign In")}postInit(e){this.menuData.H="App Sign In",this.cdr.markForCheck()}preInitList(){this.contactState=this.pageData.Filter.ContactStateID,this.pageData.Options.ContactStates=[{Key:0,Value:"All"},...this.pageData.Options.ContactStates],this.pageData.Filter=M(T({},this.pageData.Filter),{SignFrom:this.pageData.Filter.SignFrom?this.pageData.Filter.SignFrom:"0001-01-01T00:00:00",SignTo:this.pageData.Filter.SignTo?this.pageData.Filter.SignTo:"0001-01-01T00:00:00"})}openExportModal(){this.matDialog.open(te,{data:{title:"Loyalty App Last Sign In",exportTypes:[{ID:"ContactExport/LoyaltyLastSignIn",Value:"Default",FileName:"LoyaltyAppLastSignIn"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}preGetList(){this.pageData.Filter.ContactStateID=this.contactState==0?null:this.contactState}static \u0275fac=function(r){return new(r||o)(C(ie),C(Y),C(ne),C(Z),C(J),C(z))};static \u0275cmp=E({type:o,selectors:[["pos-app-sign-in"]],features:[P],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","text","isFilterOnDropdown","filter","textChange","onSubmit","filterChange",4,"ngIf"],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["ngProjectAs","actions",5,["actions"]],["target","_blank","href","https://www.dealpos.co.id/tour/customer-loyalty-program",1,"btn","btn-outline-secondary"],[1,"fa-solid","fa-mobile","me-1"],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"],4,"ngIf"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose Status",3,"ngModelChange","ngModel","items","clearable"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose an Outlet...",3,"ngModelChange","ngModel","items"],["bindLabel","Name","bindValue","ID","placeholder","Choose a Group...",3,"ngModelChange","ngModel","items"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date"],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","150px"],[2,"width","200px"],[2,"width","100px"],["class","mt-2",4,"ngIf"],[1,"fw-normal",3,"routerLink","queryParams"],[1,"mt-2"],["api","Contact/CustomerAppSignInCount",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(r,t){r&1&&f(0,ye,10,6,"mainpanel-cmp",1),r&2&&c("ngIf",t.pageData.Filter)},dependencies:[pe,re,se,ce,N,B,U,q,K,H,R,Q,ee,$,me,le,oe,ae],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{ge as AppSignInComponent};
@@ -1,4 +1,4 @@
1
- var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},pos:{indexedDBVersion:3,submitOrderTimeout:2e4,fileSizeLimit:9e5},version:"25442",outletMaximumSubscription:10,midtransClientKey:"Mid-client-rdi5ridKhHfeIvTj",ngHttpLoaderDebounceDelay:175,news:"https://changelog.dealpos.app/umbraco/delivery/api/v2/content?fetch=children:web&sort=sortOrder:asc",changelog:[],uppy:{invoicePayment:25e5,receiptTemplate:25e5},intercom:{appId:"xv1oomgl"},whatsappTemplateMessage:`Thank you for shopping at {Brand}
1
+ var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},pos:{indexedDBVersion:3,submitOrderTimeout:2e4,fileSizeLimit:9e5},version:"25444",outletMaximumSubscription:10,midtransClientKey:"Mid-client-rdi5ridKhHfeIvTj",ngHttpLoaderDebounceDelay:175,news:"https://changelog.dealpos.app/umbraco/delivery/api/v2/content?fetch=children:web&sort=sortOrder:asc",changelog:[],uppy:{invoicePayment:25e5,receiptTemplate:25e5},intercom:{appId:"xv1oomgl"},whatsappTemplateMessage:`Thank you for shopping at {Brand}
2
2
  Here is the receipt for your purchase {Number} - {Currency} {Amount}
3
3
  {ReceiptLink}
4
4
  Please let us know about your shopping experience using the receipt link.`,FALLBACK_PRODUCT_IMAGE_URL:"https://cdn.dealpos.app/template/products_thumb.png"};export{e as a};