dealpos 25.43.1 → 25.43.3

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 (91) hide show
  1. package/browser/{chunk-BYKM6B3Q.js → chunk-2T23RRH7.js} +1 -1
  2. package/browser/{chunk-4CNWLAOB.js → chunk-2U6TFCQR.js} +1 -1
  3. package/browser/{chunk-7N5UGQ7Y.js → chunk-3BEMJU35.js} +1 -1
  4. package/browser/{chunk-LNYS472E.js → chunk-3CI52E2L.js} +1 -1
  5. package/browser/{chunk-Z37RWBOK.js → chunk-3TC5WDAM.js} +1 -1
  6. package/browser/{chunk-T5WB2M55.js → chunk-4DFXK2JY.js} +1 -1
  7. package/browser/{chunk-3GMOIUSS.js → chunk-4PXYKNOZ.js} +1 -1
  8. package/browser/{chunk-UP6OSHOB.js → chunk-5M2ONNSI.js} +1 -1
  9. package/browser/{chunk-W32SMIPG.js → chunk-5QOOHCTV.js} +2 -2
  10. package/browser/{chunk-KAVRH6F5.js → chunk-5QSXC4W7.js} +1 -1
  11. package/browser/{chunk-ZT4JJ72K.js → chunk-6VVDV6OB.js} +1 -1
  12. package/browser/{chunk-CDKC2IEJ.js → chunk-6WOSPTAY.js} +1 -1
  13. package/browser/{chunk-JYLR5O5Q.js → chunk-7ISTXFAJ.js} +1 -1
  14. package/browser/{chunk-VENGWIVD.js → chunk-7TQ35BHS.js} +2 -2
  15. package/browser/{chunk-P4CJOEI6.js → chunk-BZCRY5I3.js} +1 -1
  16. package/browser/{chunk-XFE22V65.js → chunk-CFXUVQEK.js} +1 -1
  17. package/browser/chunk-E72S2LHD.js +1 -0
  18. package/browser/{chunk-2JIKUIDL.js → chunk-ECHIQUJ3.js} +1 -1
  19. package/browser/{chunk-IFZ2NAV2.js → chunk-EDNG7F5W.js} +2 -2
  20. package/browser/{chunk-ZRLTY3JK.js → chunk-EGX4E74T.js} +1 -1
  21. package/browser/{chunk-E6PWTYNB.js → chunk-EPLTC3XW.js} +1 -1
  22. package/browser/chunk-EUUECKIR.js +112 -0
  23. package/browser/{chunk-WRHHRT4D.js → chunk-F3BESYJ7.js} +1 -1
  24. package/browser/{chunk-52ZEPEED.js → chunk-F53IFT2D.js} +1 -1
  25. package/browser/{chunk-JS46U7DQ.js → chunk-FT6SO2N5.js} +1 -1
  26. package/browser/{chunk-CNAUUTLV.js → chunk-H7S2QFVB.js} +1 -1
  27. package/browser/{chunk-RN5G3YLF.js → chunk-HN3SNXCS.js} +2 -2
  28. package/browser/{chunk-TDQR33OS.js → chunk-HZ2RZ5MO.js} +1 -1
  29. package/browser/{chunk-4D4MCKGG.js → chunk-ICEJAH2W.js} +1 -1
  30. package/browser/{chunk-JMXQLXVT.js → chunk-IIQ6LDWB.js} +1 -1
  31. package/browser/{chunk-NHKBCTZ6.js → chunk-IPIYHMST.js} +14 -14
  32. package/browser/chunk-IRPBE2LR.js +14 -0
  33. package/browser/{chunk-OV75G3U6.js → chunk-IXGB2FJD.js} +1 -1
  34. package/browser/{chunk-Y2OQ4XO7.js → chunk-JFO7BKSD.js} +1 -1
  35. package/browser/{chunk-BCG3SRBR.js → chunk-JH7RSTLL.js} +1 -1
  36. package/browser/{chunk-U5PGKEGA.js → chunk-JQ2CTBYN.js} +1 -1
  37. package/browser/{chunk-GXORILER.js → chunk-KTN2QAG5.js} +1 -1
  38. package/browser/{chunk-UGXAYAI3.js → chunk-LHAAHTCW.js} +1 -1
  39. package/browser/{chunk-NO3WSZS5.js → chunk-LOCMI7X3.js} +1 -1
  40. package/browser/{chunk-GFLMSLNA.js → chunk-LRUNSERJ.js} +1 -1
  41. package/browser/{chunk-WQJI7XHD.js → chunk-LTBIATTB.js} +1 -1
  42. package/browser/{chunk-C6IQAVJS.js → chunk-LWDKTKIO.js} +1 -1
  43. package/browser/{chunk-JVMOM4H4.js → chunk-MXY6MJSV.js} +1 -1
  44. package/browser/chunk-NO54NIU2.js +1 -0
  45. package/browser/{chunk-57MXTPFO.js → chunk-O2OM4KZ4.js} +1 -1
  46. package/browser/{chunk-W7ENV5BI.js → chunk-OCZ26AJX.js} +2 -2
  47. package/browser/{chunk-2GLNGDED.js → chunk-P2VNALSH.js} +1 -1
  48. package/browser/{chunk-NGCYLGR7.js → chunk-P4YX3O6Z.js} +1 -1
  49. package/browser/{chunk-LIBVAZGG.js → chunk-PDITH6YS.js} +1 -1
  50. package/browser/{chunk-6RZ53266.js → chunk-PH5UUPBH.js} +1 -1
  51. package/browser/{chunk-NFOTQGFN.js → chunk-PIH6FRU7.js} +1 -1
  52. package/browser/{chunk-BO3347ID.js → chunk-QNV4IQZO.js} +1 -1
  53. package/browser/{chunk-YVHW6R5M.js → chunk-QXNKJEFJ.js} +1 -1
  54. package/browser/{chunk-UBUK5KM7.js → chunk-R4CKFZOX.js} +1 -1
  55. package/browser/{chunk-3IKQFILS.js → chunk-RCIKNBK5.js} +2 -2
  56. package/browser/{chunk-RCY7OLTB.js → chunk-RPMNLKME.js} +1 -1
  57. package/browser/{chunk-DOQHHRXL.js → chunk-RTTAC3D7.js} +2 -2
  58. package/browser/{chunk-DE6YZETL.js → chunk-RWTASQKI.js} +1 -1
  59. package/browser/{chunk-NI5NXM2W.js → chunk-RXPJH2TJ.js} +1 -1
  60. package/browser/{chunk-PVJW7F4C.js → chunk-SDYCFHGV.js} +1 -1
  61. package/browser/{chunk-NQOLXD3A.js → chunk-TDEZNO6A.js} +1 -1
  62. package/browser/{chunk-OLSCBS7E.js → chunk-TPXHRKLW.js} +1 -1
  63. package/browser/{chunk-3XLXCEOJ.js → chunk-U2WXP62J.js} +1 -1
  64. package/browser/{chunk-SRYUX7SP.js → chunk-U4J2CGHT.js} +1 -1
  65. package/browser/{chunk-VYI363VS.js → chunk-UA4GJ4QW.js} +1 -1
  66. package/browser/{chunk-RQMKNBVM.js → chunk-UIBALHRL.js} +1 -1
  67. package/browser/{chunk-UDLO26TH.js → chunk-UM56IRZ7.js} +1 -1
  68. package/browser/{chunk-Z2CJVOIM.js → chunk-UO2WS3FY.js} +1 -1
  69. package/browser/{chunk-PQETJOPQ.js → chunk-V4GG2QDB.js} +1 -1
  70. package/browser/{chunk-GNWOJUDL.js → chunk-V6GJ3FHO.js} +1 -1
  71. package/browser/{chunk-6HRNGZFH.js → chunk-VA763X6D.js} +1 -1
  72. package/browser/{chunk-XSFHNUQ6.js → chunk-VGJS2WAH.js} +2 -2
  73. package/browser/{chunk-H6GRYEQ4.js → chunk-VNS7H2EW.js} +2 -2
  74. package/browser/{chunk-U4L3DUPD.js → chunk-VO4FGSHM.js} +1 -1
  75. package/browser/{chunk-52JGOESX.js → chunk-WBQBYKK5.js} +1 -1
  76. package/browser/{chunk-SGMOAMW4.js → chunk-WMJJC6JF.js} +1 -1
  77. package/browser/{chunk-5EQYYGRS.js → chunk-X3KF7Z7X.js} +1 -1
  78. package/browser/{chunk-3Z3OMRKK.js → chunk-X6LAB5QB.js} +1 -1
  79. package/browser/{chunk-I6HHFYJH.js → chunk-YADEYTZ3.js} +1 -1
  80. package/browser/{chunk-CRD6NHJP.js → chunk-YKYFZMSN.js} +1 -1
  81. package/browser/{chunk-6YAUV6CS.js → chunk-YL5C4Q63.js} +1 -1
  82. package/browser/{chunk-YWN3ZCUG.js → chunk-YV7CUPB7.js} +1 -1
  83. package/browser/{chunk-A2TEU2OJ.js → chunk-ZGBJCXMB.js} +1 -1
  84. package/browser/{chunk-H3BDFRHN.js → chunk-ZHRB7E57.js} +1 -1
  85. package/browser/index.html +2 -2
  86. package/browser/{main-CSOK2PD4.js → main-ZBDFYIFR.js} +2 -2
  87. package/package.json +1 -1
  88. package/browser/chunk-B353J3HM.js +0 -1
  89. package/browser/chunk-EY5ARDBV.js +0 -112
  90. package/browser/chunk-JD2KU6EZ.js +0 -1
  91. package/browser/chunk-XFH6XZNJ.js +0 -14
@@ -1 +1 @@
1
- import{b as c}from"./chunk-2JIKUIDL.js";import{ja as r,na as s}from"./chunk-UXRO4UFY.js";var i=class{to;from;constructor(){this.to=new Date,this.from=new Date}};var n=class o{cookiesService=s(c);_cookiesName="PaymentDate";dateFilter={from:new Date,to:new Date};set(e){this.saveFilterToCookie(e),this.dateFilter=e}initFilterDate(e){let t;if(this.checkCookieExists())t=this.get();else{let a=e.From||new Date,m=e.To||new Date;t={from:a,to:m}}return e.From=t.from,e.To=t.to,e}get(){return this.checkCookieExists()?this.dateFilter=JSON.parse(this.cookiesService.get(this._cookiesName)):this.dateFilter=new i,this.dateFilter}checkCookieExists(){return this.cookiesService.check(this._cookiesName)}saveFilterToCookie(e){this.cookiesService.set(this._cookiesName,JSON.stringify(e),this.getExpiredDate(),"/")}clear(){this.cookiesService.delete(this._cookiesName,"/"),this.dateFilter=new i}getExpiredDate(){let e=new Date,a=1*60*60*1e3;return e.setTime(e.getTime()+a),e}static \u0275fac=function(t){return new(t||o)};static \u0275prov=r({token:o,factory:o.\u0275fac,providedIn:"root"})};export{n as a};
1
+ import{b as c}from"./chunk-ECHIQUJ3.js";import{ja as r,na as s}from"./chunk-UXRO4UFY.js";var i=class{to;from;constructor(){this.to=new Date,this.from=new Date}};var n=class o{cookiesService=s(c);_cookiesName="PaymentDate";dateFilter={from:new Date,to:new Date};set(e){this.saveFilterToCookie(e),this.dateFilter=e}initFilterDate(e){let t;if(this.checkCookieExists())t=this.get();else{let a=e.From||new Date,m=e.To||new Date;t={from:a,to:m}}return e.From=t.from,e.To=t.to,e}get(){return this.checkCookieExists()?this.dateFilter=JSON.parse(this.cookiesService.get(this._cookiesName)):this.dateFilter=new i,this.dateFilter}checkCookieExists(){return this.cookiesService.check(this._cookiesName)}saveFilterToCookie(e){this.cookiesService.set(this._cookiesName,JSON.stringify(e),this.getExpiredDate(),"/")}clear(){this.cookiesService.delete(this._cookiesName,"/"),this.dateFilter=new i}getExpiredDate(){let e=new Date,a=1*60*60*1e3;return e.setTime(e.getTime()+a),e}static \u0275fac=function(t){return new(t||o)};static \u0275prov=r({token:o,factory:o.\u0275fac,providedIn:"root"})};export{n as a};
@@ -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-2GLNGDED.js";import{c as ie}from"./chunk-VENGWIVD.js";import{b as Q}from"./chunk-QHBWVJIQ.js";import{a as q}from"./chunk-JYLR5O5Q.js";import"./chunk-NI5NXM2W.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{e as Y,f as Z}from"./chunk-OLSCBS7E.js";import"./chunk-LIBVAZGG.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-JVMOM4H4.js";import{b as K}from"./chunk-P4CJOEI6.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-2JIKUIDL.js";import"./chunk-NO3WSZS5.js";import{d as k}from"./chunk-ZZGSAFGO.js";import"./chunk-TDQR33OS.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-P2VNALSH.js";import{c as ie}from"./chunk-7TQ35BHS.js";import{b as Q}from"./chunk-QHBWVJIQ.js";import{a as q}from"./chunk-7ISTXFAJ.js";import"./chunk-RXPJH2TJ.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{e as Y,f as Z}from"./chunk-TPXHRKLW.js";import"./chunk-PDITH6YS.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-MXY6MJSV.js";import{b as K}from"./chunk-BZCRY5I3.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-ECHIQUJ3.js";import"./chunk-LOCMI7X3.js";import{d as k}from"./chunk-ZZGSAFGO.js";import"./chunk-HZ2RZ5MO.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-BYKM6B3Q.js";import{a as Me}from"./chunk-YNDNTAII.js";import{a as Pe}from"./chunk-NI5NXM2W.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-2JIKUIDL.js";import{a as ge}from"./chunk-NO3WSZS5.js";import{a as M,d as I}from"./chunk-ZZGSAFGO.js";import{a as ce}from"./chunk-TDQR33OS.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-YVHW6R5M.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-EY5ARDBV.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[U]},{path:"Sell",loadChildren:()=>import("./chunk-W7ENV5BI.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-57MXTPFO.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-BCG3SRBR.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-E6PWTYNB.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-U4L3DUPD.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-H6GRYEQ4.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-UBUK5KM7.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-NHKBCTZ6.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-IFZ2NAV2.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-XSFHNUQ6.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-3IKQFILS.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-XFE22V65.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-52ZEPEED.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-RN5G3YLF.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-XFH6XZNJ.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-W32SMIPG.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-CDKC2IEJ.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-GNWOJUDL.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-ZRLTY3JK.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[L]},{path:"Promotion",loadChildren:()=>import("./chunk-WRHHRT4D.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-DOQHHRXL.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-Y2OQ4XO7.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-OV75G3U6.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-C6IQAVJS.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-LNYS472E.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-2T23RRH7.js";import{a as Me}from"./chunk-YNDNTAII.js";import{a as Pe}from"./chunk-RXPJH2TJ.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-ECHIQUJ3.js";import{a as ge}from"./chunk-LOCMI7X3.js";import{a as M,d as I}from"./chunk-ZZGSAFGO.js";import{a as ce}from"./chunk-HZ2RZ5MO.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-QXNKJEFJ.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-EUUECKIR.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[U]},{path:"Sell",loadChildren:()=>import("./chunk-OCZ26AJX.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-O2OM4KZ4.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-JH7RSTLL.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-EPLTC3XW.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-VO4FGSHM.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-VNS7H2EW.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-R4CKFZOX.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-IPIYHMST.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-EDNG7F5W.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-VGJS2WAH.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-RCIKNBK5.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-CFXUVQEK.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-F53IFT2D.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-HN3SNXCS.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-IRPBE2LR.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-5QOOHCTV.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-6WOSPTAY.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-V6GJ3FHO.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-EGX4E74T.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[L]},{path:"Promotion",loadChildren:()=>import("./chunk-F3BESYJ7.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-RTTAC3D7.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-JFO7BKSD.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-IXGB2FJD.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-LWDKTKIO.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-3CI52E2L.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 +1 @@
1
- import{f as l}from"./chunk-OLSCBS7E.js";import"./chunk-JVMOM4H4.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-H7F34T25.js";import"./chunk-JOXTERIM.js";import"./chunk-TSIYPTYI.js";import"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import"./chunk-RVXZOIFQ.js";import"./chunk-2JIKUIDL.js";import"./chunk-NO3WSZS5.js";import"./chunk-ZZGSAFGO.js";import"./chunk-TDQR33OS.js";import{Ib as o,Jb as m,Kb as c,Td as d,ec as p,jd as f,ka as n,kb as u,lb as i}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var a=class t{menuData={H:"Not Found"};constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=u({type:t,selectors:[["POS-not-found-page"]],standalone:!1,decls:12,vars:0,consts:[[1,"container-fluid","mt-12"],[1,"row"],[1,"col-1"],[1,"col-6","d-flex","align-items-center","justify-content-center","pe-0"],[1,"ms-12"],[1,"mb-0","fw-normal",2,"margin-top","20px","font-size","55px"],[1,"fs-4"],[1,"col-5","ps-0"],["src","//res.cloudinary.com/pos/image/upload/v1652836870/POS/Images/MicrosoftTeams-image.jpg","alt","",2,"width","50%"]],template:function(e,y){e&1&&(o(0,"content")(1,"div",0)(2,"div",1),c(3,"div",2),o(4,"div",3)(5,"div",4)(6,"h1",5),p(7," Page Not Found "),m(),o(8,"p",6),p(9,"The page you are trying to access cannot be found"),m()()(),o(10,"div",7),c(11,"img",8),m()()()())},encapsulation:2})};var M=[{path:"",component:a}],r=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=i({type:t});static \u0275inj=n({imports:[d.forChild(M),d]})};var N=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=i({type:t});static \u0275inj=n({imports:[f,r,l]})};export{N as NotFoundModule};
1
+ import{f as l}from"./chunk-TPXHRKLW.js";import"./chunk-MXY6MJSV.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-H7F34T25.js";import"./chunk-JOXTERIM.js";import"./chunk-TSIYPTYI.js";import"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import"./chunk-RVXZOIFQ.js";import"./chunk-ECHIQUJ3.js";import"./chunk-LOCMI7X3.js";import"./chunk-ZZGSAFGO.js";import"./chunk-HZ2RZ5MO.js";import{Ib as o,Jb as m,Kb as c,Td as d,ec as p,jd as f,ka as n,kb as u,lb as i}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var a=class t{menuData={H:"Not Found"};constructor(){}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=u({type:t,selectors:[["POS-not-found-page"]],standalone:!1,decls:12,vars:0,consts:[[1,"container-fluid","mt-12"],[1,"row"],[1,"col-1"],[1,"col-6","d-flex","align-items-center","justify-content-center","pe-0"],[1,"ms-12"],[1,"mb-0","fw-normal",2,"margin-top","20px","font-size","55px"],[1,"fs-4"],[1,"col-5","ps-0"],["src","//res.cloudinary.com/pos/image/upload/v1652836870/POS/Images/MicrosoftTeams-image.jpg","alt","",2,"width","50%"]],template:function(e,y){e&1&&(o(0,"content")(1,"div",0)(2,"div",1),c(3,"div",2),o(4,"div",3)(5,"div",4)(6,"h1",5),p(7," Page Not Found "),m(),o(8,"p",6),p(9,"The page you are trying to access cannot be found"),m()()(),o(10,"div",7),c(11,"img",8),m()()()())},encapsulation:2})};var M=[{path:"",component:a}],r=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=i({type:t});static \u0275inj=n({imports:[d.forChild(M),d]})};var N=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=i({type:t});static \u0275inj=n({imports:[f,r,l]})};export{N as NotFoundModule};
@@ -1 +1 @@
1
- import{a as de}from"./chunk-UGXAYAI3.js";import{e as me,f as se}from"./chunk-OLSCBS7E.js";import"./chunk-JVMOM4H4.js";import{b as le}from"./chunk-P4CJOEI6.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import{u as ae,v as ne,w as re}from"./chunk-H7F34T25.js";import"./chunk-JOXTERIM.js";import"./chunk-TSIYPTYI.js";import{e as te,f as ie,g as oe}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-LE3BKIDY.js";import{a as ee}from"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import{A as Q,E as X,F as Z,c as G,h as z,o as J}from"./chunk-RVXZOIFQ.js";import"./chunk-2JIKUIDL.js";import"./chunk-NO3WSZS5.js";import{a as W}from"./chunk-ZZGSAFGO.js";import"./chunk-TDQR33OS.js";import{$a as m,Ac as B,Db as F,E as A,Ib as o,Jb as a,Kb as w,Lb as T,Ma as Y,Mb as g,Ob as y,Od as H,Qb as _,Rb as u,Vd as q,Wc as U,Yc as j,Yd as $,Zc as v,db as f,dc as O,ec as r,fc as R,gc as x,gd as K,jc as E,jd as h,kb as b,kc as M,lc as P,ob as L,qb as S,rc as D,va as d,vb as c,wa as p,zc as k}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var I=(s=>(s.TRANSACTIONS="TRANSACTIONS",s.PRODUCTS="PRODUCTS",s.CONTACTS="CONTACTS",s.LOYALTY_POINTS="LOYALTY_POINTS",s.RECYCLE_BIN="RECYCLE_BIN",s.INVENTORY="INVENTORY",s))(I||{});function _e(n,l){if(n&1&&(T(0),o(1,"div",4)(2,"div",5)(3,"div",16),w(4,"i",17),o(5,"span"),r(6),a()()()(),g()),n&2){let i=u();m(6),x(" ",i.selectedClearData.message," ")}}function Se(n,l){n&1&&(T(0),o(1,"small",18),r(2," *Subdomain is required "),a(),g())}function Te(n,l){n&1&&(T(0),o(1,"small",18),r(2," *Password is required "),a(),g())}function ge(n,l){n&1&&w(0,"i",14)}function be(n,l){n&1&&w(0,"i",15)}var N=class n{constructor(l,i,t){this.data=l;this.dialogRef=i;this.fb=t;this.modalConfig.title=this.modalTitle[this.data.type],this.subdomain="",this.subdomainPlaceholder=l.subDomain}clearData=[{type:"TRANSACTIONS",api:"Setup/Data/ClearTransaction",message:"Your Invoice, Bill, Adjustment, TransferOrder will be deleted"},{type:"PRODUCTS",api:"Setup/Data/ClearProduct",message:"Your Category, Product and Variant will be deleted"},{type:"LOYALTY_POINTS",api:"Setup/Data/ClearLoyaltyPoint"},{type:"RECYCLE_BIN",api:"Setup/Data/ClearRecycleBin"},{type:"INVENTORY",api:"Setup/Data/ClearInventory",message:"Your Product Inventory will be set to 0"},{type:"CONTACTS",api:"Setup/Data/ClearContact",message:"Your Customer, Supplier and Sales Person will be deleted"}];selectedClearData;modalConfig=new ae;modalTitle={TRANSACTIONS:"Clear Transactions",PRODUCTS:"Clear Products",LOYALTY_POINTS:"Clear Loyalty Points",RECYCLE_BIN:"Clear Recycle Bin",CONTACTS:"Clear Contacts",INVENTORY:"Clear Inventory"};subdomain;subdomainPlaceholder;password;form;passwordVisibility=Y(!1);ngOnInit(){this.initSelectedClearData(),this.form=this.fb.group({subdomain:[""],password:[""]})}initSelectedClearData(){this.selectedClearData=this.clearData.find(l=>l.type===this.data.type)}onSubmit(){let l={password:this.password,subdomain:this.subdomain,apiUrl:this.selectedClearData.api};this.dialogRef.close(l)}static \u0275fac=function(i){return new(i||n)(f(ie),f(te),f(X))};static \u0275cmp=b({type:n,selectors:[["app-confirmation-modal"]],decls:24,vars:10,consts:[["subdomainCtrl","ngModel"],["passwordCtrl","ngModel"],[3,"onOk","onClose","onCancel","config","dynamicValidated"],[4,"ngIf"],[1,"row"],[1,"col-12"],[1,"form-floating-outline","mt-5"],["type","text","id","subdomain","placeholder","Subdomain","name","subdomain","autofocus","","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"form-floating-outline"],["id","pass","placeholder","Password","name","password","required","",1,"form-control",3,"ngModelChange","type","ngModel"],["for","pass"],[1,"password-visibility"],["type","button",1,"btn","btn-link",3,"click"],[1,"fa-solid","fa-eye"],[1,"fa-solid","fa-eye-slash"],[1,"alert","alert-warning","cursor","w-100"],[1,"fa-solid","fa-circle-exclamation","me-2"],[1,"control-label","text-danger"]],template:function(i,t){if(i&1){let e=y();o(0,"modal-material",2),_("onOk",function(){return d(e),p(t.onSubmit())})("onClose",function(){return d(e),p(t.dialogRef.close())})("onCancel",function(){return d(e),p(t.dialogRef.close())}),o(1,"content"),S(2,_e,7,1,"ng-container",3),o(3,"div",4)(4,"div",5)(5,"strong"),r(6),a(),o(7,"div",6)(8,"input",7,0),P("ngModelChange",function(s){return d(e),M(t.subdomain,s)||(t.subdomain=s),p(s)}),a(),o(10,"label",8),r(11,"Subdomain"),a(),S(12,Se,3,0,"ng-container",3),a()(),o(13,"div",5)(14,"div",9)(15,"input",10,1),P("ngModelChange",function(s){return d(e),M(t.password,s)||(t.password=s),p(s)}),a(),o(17,"label",11),r(18,"Password"),a(),S(19,Te,3,0,"ng-container",3),o(20,"div",12)(21,"button",13),_("click",function(){return d(e),p(t.passwordVisibility.set(!t.passwordVisibility()))}),S(22,ge,1,0,"i",14)(23,be,1,0,"i",15),a()()()()()()()}if(i&2){let e=O(9),C=O(16);c("config",t.modalConfig)("dynamicValidated",t.password&&t.subdomain),m(2),c("ngIf",t.selectedClearData.message),m(4),x("Enter the following subdomain to confirm: ",t.subdomainPlaceholder,""),m(2),E("ngModel",t.subdomain),m(4),c("ngIf",e.invalid&&(e.dirty||e.touched)),m(3),c("type",t.passwordVisibility()?"text":"password"),E("ngModel",t.password),m(4),c("ngIf",C.invalid&&(C.dirty||C.touched)),m(3),F(t.passwordVisibility()?22:23)}},dependencies:[h,v,re,ne,Z,G,z,Q,J],styles:[".password-visibility[_ngcontent-%COMP%]{position:absolute;right:0;top:50%;transform:translateY(-50%);cursor:pointer;font-size:1.5rem}"]})};var V=n=>({"border border-0":n});function we(n,l){if(n&1&&(T(0),o(1,"tr",23)(2,"td",23),r(3),a(),o(4,"td",24),r(5),k(6,"number"),a()(),g()),n&2){let i=l.$implicit,t=l.index,e=u(2);m(),c("ngClass",D(7,V,t==e.data.Data.length-1)),m(),c("ngClass",D(9,V,t==e.data.Data.length-1)),m(),R(i.Key),m(),c("ngClass",D(11,V,t==e.data.Data.length-1)),m(),R(B(6,5,i.Value))}}function ye(n,l){if(n&1){let i=y();o(0,"mainpanel-cmp",1)(1,"actions")(2,"div",2)(3,"div",3)(4,"button",4),r(5," Format Data "),a(),o(6,"ul",5)(7,"li")(8,"a",6),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.TRANSACTIONS))}),r(9," 1. Clear Transactions "),a()(),o(10,"li")(11,"a",7),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.INVENTORY))}),r(12," 2. Clear Inventory "),a()(),o(13,"li")(14,"a",8),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.PRODUCTS))}),r(15," 3. Clear Products "),a()(),o(16,"li")(17,"a",9),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.CONTACTS))}),r(18," 4. Clear Contacts "),a()(),o(19,"li")(20,"a",10),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.LOYALTY_POINTS))}),r(21," 5. Clear Loyalty Point "),a()(),o(22,"li")(23,"a",11),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.RECYCLE_BIN))}),r(24," 6. Clear Recycle Bin "),a()()()()()(),o(25,"content")(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5"),r(30,"Database Records"),a(),o(31,"i"),r(32,"Current data count"),a()(),o(33,"div",15)(34,"div",16)(35,"div",17)(36,"table",18)(37,"thead",19)(38,"tr",20)(39,"th"),r(40,"Table"),a(),o(41,"th",21),r(42,"Rows"),a()()(),o(43,"tbody"),S(44,we,7,13,"ng-container",22),a()()()()()()()()()}if(n&2){let i=u();c("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),m(44),c("ngForOf",i.data.Data)}}var pe=class n extends de{constructor(i,t,e,C,s){super(i,t,"Setup/DataLoader/clearformatdata",e);this.httpService=t;this.activatedRoute=e;this.toaster=C;this.dialog=s}clearDataType=I;onClearRecord(i){this.dialog.open(N,{data:{type:i,subDomain:this.data.SubDomain}}).afterClosed().pipe(A(t=>W.IsNotEmpty(t))).subscribe(t=>{this.formData={Subdomain:t.subdomain,Password:t.password},this.onSubmit(t.apiUrl),i=="PRODUCTS"?this.data.Data.find(e=>e.Key=="Product").Value=0:i=="CONTACTS"?this.data.Data.find(e=>e.Key=="Customer").Value=0:i=="INVENTORY"?this.data.Data.find(e=>e.Key=="ItemTransfer").Value=0:i=="LOYALTY_POINTS"?this.data.Data.find(e=>e.Key=="JournalHeader").Value=0:i=="RECYCLE_BIN"?this.data.Data.find(e=>e.Key=="Recycle Bin").Value=0:i=="TRANSACTIONS"&&(this.data.Data.find(e=>e.Key=="SalesOrder").Value=0)})}onSubmitSuccess(i){this.toaster.success(i.Message,ee.Success)}static \u0275fac=function(t){return new(t||n)(f(le),f($),f(H),f(q),f(oe))};static \u0275cmp=b({type:n,selectors:[["POS-format-data"]],features:[L],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex"],[1,"dropdown"],["type","button","data-bs-toggle","dropdown","aria-expanded","false","confirm-message","Are you sure you want to clear the record?",1,"btn","btn-outline-secondary","dropdown-toggle"],[1,"dropdown-menu","dropdown-menu-end"],["role","button","matTooltipPosition","above","matTooltip","Clear Transaction",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Inventory",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Products",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Contacts",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Loyalty Point",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Recycle Bin",1,"dropdown-item",3,"click"],[1,"container","pt-3"],[1,"row","border-bottom","mt-10","ms-2"],[1,"col-sm-2"],[1,"col-sm-10"],[1,"row"],[1,"col-md-12"],["id","tableGrid",1,"table",2,"width","250px"],[1,"thead-light","sticky-top-thead"],[1,"header"],[1,"text-end"],[4,"ngFor","ngForOf"],[3,"ngClass"],[1,"text-end",3,"ngClass"]],template:function(t,e){t&1&&S(0,ye,45,4,"mainpanel-cmp",0),t&2&&c("ngIf",e.formData)},dependencies:[h,U,j,v,K,se,me],encapsulation:2})};export{pe as FormatDataComponent};
1
+ import{a as de}from"./chunk-LHAAHTCW.js";import{e as me,f as se}from"./chunk-TPXHRKLW.js";import"./chunk-MXY6MJSV.js";import{b as le}from"./chunk-BZCRY5I3.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import{u as ae,v as ne,w as re}from"./chunk-H7F34T25.js";import"./chunk-JOXTERIM.js";import"./chunk-TSIYPTYI.js";import{e as te,f as ie,g as oe}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-LE3BKIDY.js";import{a as ee}from"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import{A as Q,E as X,F as Z,c as G,h as z,o as J}from"./chunk-RVXZOIFQ.js";import"./chunk-ECHIQUJ3.js";import"./chunk-LOCMI7X3.js";import{a as W}from"./chunk-ZZGSAFGO.js";import"./chunk-HZ2RZ5MO.js";import{$a as m,Ac as B,Db as F,E as A,Ib as o,Jb as a,Kb as w,Lb as T,Ma as Y,Mb as g,Ob as y,Od as H,Qb as _,Rb as u,Vd as q,Wc as U,Yc as j,Yd as $,Zc as v,db as f,dc as O,ec as r,fc as R,gc as x,gd as K,jc as E,jd as h,kb as b,kc as M,lc as P,ob as L,qb as S,rc as D,va as d,vb as c,wa as p,zc as k}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var I=(s=>(s.TRANSACTIONS="TRANSACTIONS",s.PRODUCTS="PRODUCTS",s.CONTACTS="CONTACTS",s.LOYALTY_POINTS="LOYALTY_POINTS",s.RECYCLE_BIN="RECYCLE_BIN",s.INVENTORY="INVENTORY",s))(I||{});function _e(n,l){if(n&1&&(T(0),o(1,"div",4)(2,"div",5)(3,"div",16),w(4,"i",17),o(5,"span"),r(6),a()()()(),g()),n&2){let i=u();m(6),x(" ",i.selectedClearData.message," ")}}function Se(n,l){n&1&&(T(0),o(1,"small",18),r(2," *Subdomain is required "),a(),g())}function Te(n,l){n&1&&(T(0),o(1,"small",18),r(2," *Password is required "),a(),g())}function ge(n,l){n&1&&w(0,"i",14)}function be(n,l){n&1&&w(0,"i",15)}var N=class n{constructor(l,i,t){this.data=l;this.dialogRef=i;this.fb=t;this.modalConfig.title=this.modalTitle[this.data.type],this.subdomain="",this.subdomainPlaceholder=l.subDomain}clearData=[{type:"TRANSACTIONS",api:"Setup/Data/ClearTransaction",message:"Your Invoice, Bill, Adjustment, TransferOrder will be deleted"},{type:"PRODUCTS",api:"Setup/Data/ClearProduct",message:"Your Category, Product and Variant will be deleted"},{type:"LOYALTY_POINTS",api:"Setup/Data/ClearLoyaltyPoint"},{type:"RECYCLE_BIN",api:"Setup/Data/ClearRecycleBin"},{type:"INVENTORY",api:"Setup/Data/ClearInventory",message:"Your Product Inventory will be set to 0"},{type:"CONTACTS",api:"Setup/Data/ClearContact",message:"Your Customer, Supplier and Sales Person will be deleted"}];selectedClearData;modalConfig=new ae;modalTitle={TRANSACTIONS:"Clear Transactions",PRODUCTS:"Clear Products",LOYALTY_POINTS:"Clear Loyalty Points",RECYCLE_BIN:"Clear Recycle Bin",CONTACTS:"Clear Contacts",INVENTORY:"Clear Inventory"};subdomain;subdomainPlaceholder;password;form;passwordVisibility=Y(!1);ngOnInit(){this.initSelectedClearData(),this.form=this.fb.group({subdomain:[""],password:[""]})}initSelectedClearData(){this.selectedClearData=this.clearData.find(l=>l.type===this.data.type)}onSubmit(){let l={password:this.password,subdomain:this.subdomain,apiUrl:this.selectedClearData.api};this.dialogRef.close(l)}static \u0275fac=function(i){return new(i||n)(f(ie),f(te),f(X))};static \u0275cmp=b({type:n,selectors:[["app-confirmation-modal"]],decls:24,vars:10,consts:[["subdomainCtrl","ngModel"],["passwordCtrl","ngModel"],[3,"onOk","onClose","onCancel","config","dynamicValidated"],[4,"ngIf"],[1,"row"],[1,"col-12"],[1,"form-floating-outline","mt-5"],["type","text","id","subdomain","placeholder","Subdomain","name","subdomain","autofocus","","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"form-floating-outline"],["id","pass","placeholder","Password","name","password","required","",1,"form-control",3,"ngModelChange","type","ngModel"],["for","pass"],[1,"password-visibility"],["type","button",1,"btn","btn-link",3,"click"],[1,"fa-solid","fa-eye"],[1,"fa-solid","fa-eye-slash"],[1,"alert","alert-warning","cursor","w-100"],[1,"fa-solid","fa-circle-exclamation","me-2"],[1,"control-label","text-danger"]],template:function(i,t){if(i&1){let e=y();o(0,"modal-material",2),_("onOk",function(){return d(e),p(t.onSubmit())})("onClose",function(){return d(e),p(t.dialogRef.close())})("onCancel",function(){return d(e),p(t.dialogRef.close())}),o(1,"content"),S(2,_e,7,1,"ng-container",3),o(3,"div",4)(4,"div",5)(5,"strong"),r(6),a(),o(7,"div",6)(8,"input",7,0),P("ngModelChange",function(s){return d(e),M(t.subdomain,s)||(t.subdomain=s),p(s)}),a(),o(10,"label",8),r(11,"Subdomain"),a(),S(12,Se,3,0,"ng-container",3),a()(),o(13,"div",5)(14,"div",9)(15,"input",10,1),P("ngModelChange",function(s){return d(e),M(t.password,s)||(t.password=s),p(s)}),a(),o(17,"label",11),r(18,"Password"),a(),S(19,Te,3,0,"ng-container",3),o(20,"div",12)(21,"button",13),_("click",function(){return d(e),p(t.passwordVisibility.set(!t.passwordVisibility()))}),S(22,ge,1,0,"i",14)(23,be,1,0,"i",15),a()()()()()()()}if(i&2){let e=O(9),C=O(16);c("config",t.modalConfig)("dynamicValidated",t.password&&t.subdomain),m(2),c("ngIf",t.selectedClearData.message),m(4),x("Enter the following subdomain to confirm: ",t.subdomainPlaceholder,""),m(2),E("ngModel",t.subdomain),m(4),c("ngIf",e.invalid&&(e.dirty||e.touched)),m(3),c("type",t.passwordVisibility()?"text":"password"),E("ngModel",t.password),m(4),c("ngIf",C.invalid&&(C.dirty||C.touched)),m(3),F(t.passwordVisibility()?22:23)}},dependencies:[h,v,re,ne,Z,G,z,Q,J],styles:[".password-visibility[_ngcontent-%COMP%]{position:absolute;right:0;top:50%;transform:translateY(-50%);cursor:pointer;font-size:1.5rem}"]})};var V=n=>({"border border-0":n});function we(n,l){if(n&1&&(T(0),o(1,"tr",23)(2,"td",23),r(3),a(),o(4,"td",24),r(5),k(6,"number"),a()(),g()),n&2){let i=l.$implicit,t=l.index,e=u(2);m(),c("ngClass",D(7,V,t==e.data.Data.length-1)),m(),c("ngClass",D(9,V,t==e.data.Data.length-1)),m(),R(i.Key),m(),c("ngClass",D(11,V,t==e.data.Data.length-1)),m(),R(B(6,5,i.Value))}}function ye(n,l){if(n&1){let i=y();o(0,"mainpanel-cmp",1)(1,"actions")(2,"div",2)(3,"div",3)(4,"button",4),r(5," Format Data "),a(),o(6,"ul",5)(7,"li")(8,"a",6),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.TRANSACTIONS))}),r(9," 1. Clear Transactions "),a()(),o(10,"li")(11,"a",7),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.INVENTORY))}),r(12," 2. Clear Inventory "),a()(),o(13,"li")(14,"a",8),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.PRODUCTS))}),r(15," 3. Clear Products "),a()(),o(16,"li")(17,"a",9),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.CONTACTS))}),r(18," 4. Clear Contacts "),a()(),o(19,"li")(20,"a",10),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.LOYALTY_POINTS))}),r(21," 5. Clear Loyalty Point "),a()(),o(22,"li")(23,"a",11),_("click",function(){d(i);let e=u();return p(e.onClearRecord(e.clearDataType.RECYCLE_BIN))}),r(24," 6. Clear Recycle Bin "),a()()()()()(),o(25,"content")(26,"div",12)(27,"div",13)(28,"div",14)(29,"h5"),r(30,"Database Records"),a(),o(31,"i"),r(32,"Current data count"),a()(),o(33,"div",15)(34,"div",16)(35,"div",17)(36,"table",18)(37,"thead",19)(38,"tr",20)(39,"th"),r(40,"Table"),a(),o(41,"th",21),r(42,"Rows"),a()()(),o(43,"tbody"),S(44,we,7,13,"ng-container",22),a()()()()()()()()()}if(n&2){let i=u();c("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),m(44),c("ngForOf",i.data.Data)}}var pe=class n extends de{constructor(i,t,e,C,s){super(i,t,"Setup/DataLoader/clearformatdata",e);this.httpService=t;this.activatedRoute=e;this.toaster=C;this.dialog=s}clearDataType=I;onClearRecord(i){this.dialog.open(N,{data:{type:i,subDomain:this.data.SubDomain}}).afterClosed().pipe(A(t=>W.IsNotEmpty(t))).subscribe(t=>{this.formData={Subdomain:t.subdomain,Password:t.password},this.onSubmit(t.apiUrl),i=="PRODUCTS"?this.data.Data.find(e=>e.Key=="Product").Value=0:i=="CONTACTS"?this.data.Data.find(e=>e.Key=="Customer").Value=0:i=="INVENTORY"?this.data.Data.find(e=>e.Key=="ItemTransfer").Value=0:i=="LOYALTY_POINTS"?this.data.Data.find(e=>e.Key=="JournalHeader").Value=0:i=="RECYCLE_BIN"?this.data.Data.find(e=>e.Key=="Recycle Bin").Value=0:i=="TRANSACTIONS"&&(this.data.Data.find(e=>e.Key=="SalesOrder").Value=0)})}onSubmitSuccess(i){this.toaster.success(i.Message,ee.Success)}static \u0275fac=function(t){return new(t||n)(f(le),f($),f(H),f(q),f(oe))};static \u0275cmp=b({type:n,selectors:[["POS-format-data"]],features:[L],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox",4,"ngIf"],[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex"],[1,"dropdown"],["type","button","data-bs-toggle","dropdown","aria-expanded","false","confirm-message","Are you sure you want to clear the record?",1,"btn","btn-outline-secondary","dropdown-toggle"],[1,"dropdown-menu","dropdown-menu-end"],["role","button","matTooltipPosition","above","matTooltip","Clear Transaction",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Inventory",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Products",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Contacts",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Loyalty Point",1,"dropdown-item",3,"click"],["role","button","matTooltipPosition","above","matTooltip","Clear Recycle Bin",1,"dropdown-item",3,"click"],[1,"container","pt-3"],[1,"row","border-bottom","mt-10","ms-2"],[1,"col-sm-2"],[1,"col-sm-10"],[1,"row"],[1,"col-md-12"],["id","tableGrid",1,"table",2,"width","250px"],[1,"thead-light","sticky-top-thead"],[1,"header"],[1,"text-end"],[4,"ngFor","ngForOf"],[3,"ngClass"],[1,"text-end",3,"ngClass"]],template:function(t,e){t&1&&S(0,ye,45,4,"mainpanel-cmp",0),t&2&&c("ngIf",e.formData)},dependencies:[h,U,j,v,K,se,me],encapsulation:2})};export{pe as FormatDataComponent};
@@ -1 +1 @@
1
- import{c as F,d as H}from"./chunk-2GLNGDED.js";import{a as N,b as P}from"./chunk-6JAL37Y4.js";import{la as E}from"./chunk-EEEAUYZ6.js";import{F as k,h as j,o as A}from"./chunk-RVXZOIFQ.js";import{a as G}from"./chunk-ZZGSAFGO.js";import{$a as p,Ac as L,Fa as v,Ib as u,Jb as i,Qb as _,Rb as w,Y as g,Yd as s,Zc as M,ca as S,cd as x,d as f,db as a,ec as h,fa as b,gc as T,ja as I,jd as $,kb as y,na as C,o as O,qb as d,vb as m,zc as D}from"./chunk-UXRO4UFY.js";var c=class l{http=C(s);onOpenTreeSelector$=new f;outletGroups$=this.onOpenTreeSelector$.pipe(S(e=>e.length?O(e):this.http.get("/API/outlet/ActiveOptions"),[]),g(1));constructor(){}loadOutletGroups(){this.onOpenTreeSelector$.next()}static \u0275fac=function(t){return new(t||l)};static \u0275prov=I({token:l,factory:l.\u0275fac,providedIn:"root"})};function q(l,e){if(l&1&&(u(0,"div"),h(1),i()),l&2){let t=w();p(),T(" ",t.selectedOutletGroupLabel," ")}}function z(l,e){l&1&&(u(0,"label",4),h(1,"Outlet Group"),i())}var R=class l{constructor(e,t){this.http=e;this.outletGroup=t}outletGroups=[];showClear=!1;showLabel=!1;selectedOutletGroup;selectedOutletGroupID;selectedOutletGroupIDChange=new v;selectedOutletGroupLabel;isLoadOutletGroups=!1;top=0;outletGroups$;ngAfterViewInit(){let e=document.querySelector("body");this.top=e.getBoundingClientRect().top*-1}ngOnInit(){this.outletGroups.length>0&&(G.IsEmpty(this.selectedOutletGroupID)&&(this.selectedOutletGroupID=this.outletGroups[0]?.key),this.selectedOutletGroup=this.findSelectedOutletGroup(this.outletGroups,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)),this.outletGroups$=this.outletGroup.outletGroups$.pipe(b(e=>{console.log(e),this.selectedOutletGroup=this.findSelectedOutletGroup(e,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)}))}onSelectOutletGroup(e){this.selectedOutletGroup=e,this.generateLabelSelectedOutletGroup(this.selectedOutletGroup),this.selectedOutletGroupID=e?.key,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}generateLabelSelectedOutletGroup(e){if(e){let t=[];this.selectedOutletGroupLabel="";do t=[...t,e.label],e=e.parent;while(e!==void 0);this.selectedOutletGroupLabel=t.reverse().join("/")}else this.selectedOutletGroupLabel="Select OutletGroup"}findSelectedOutletGroup(e,t){if(G.IsNotEmpty(t))for(let o of e){if(o.key===t)return o;{o.children=o.children?o.children:[],o.children=o.children.map(n=>(n.parent=o,n));let r=this.findSelectedOutletGroup(o.children,t);if(r)return r}}else return null}loadOutletGroups(){let e=document.querySelector(".p-overlay.p-component"),t=this.top+e.getBoundingClientRect().top,o=e.getAttribute("style")||"";e.setAttribute("style",`${o} top: ${t+this.top}px;`),this.outletGroup.loadOutletGroups()}onClear(){this.selectedOutletGroupID=null,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}static \u0275fac=function(t){return new(t||l)(a(s),a(c))};static \u0275cmp=y({type:l,selectors:[["POS-outlet-group-tree-select"]],inputs:{outletGroups:"outletGroups",showClear:"showClear",showLabel:"showLabel",selectedOutletGroupID:"selectedOutletGroupID"},outputs:{selectedOutletGroupIDChange:"selectedOutletGroupIDChange"},decls:5,vars:6,consts:[["variant","on",1,"w-full","md:w-80"],["appendTo","body","inputId","selectOutletGroup","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectOutletGroup",3,"click","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["for","selectOutletGroup",4,"ngIf"],["for","selectOutletGroup"]],template:function(t,o){t&1&&(u(0,"p-floatlabel",0)(1,"p-treeSelect",1),D(2,"async"),_("click",function(){return o.loadOutletGroups()})("ngModelChange",function(n){return o.onSelectOutletGroup(n)})("onClear",function(){return o.onClear()}),d(3,q,2,1,"ng-template",2),i(),d(4,z,2,0,"label",3),i()),t&2&&(p(),m("options",L(2,4,o.outletGroups$))("ngModel",o.selectedOutletGroup)("showClear",o.showClear),p(3),m("ngIf",o.showLabel))},dependencies:[$,M,x,H,F,E,k,j,A,P,N],styles:[".p-overlay.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important}"]})};export{R as a};
1
+ import{c as F,d as H}from"./chunk-P2VNALSH.js";import{a as N,b as P}from"./chunk-6JAL37Y4.js";import{la as E}from"./chunk-EEEAUYZ6.js";import{F as k,h as j,o as A}from"./chunk-RVXZOIFQ.js";import{a as G}from"./chunk-ZZGSAFGO.js";import{$a as p,Ac as L,Fa as v,Ib as u,Jb as i,Qb as _,Rb as w,Y as g,Yd as s,Zc as M,ca as S,cd as x,d as f,db as a,ec as h,fa as b,gc as T,ja as I,jd as $,kb as y,na as C,o as O,qb as d,vb as m,zc as D}from"./chunk-UXRO4UFY.js";var c=class l{http=C(s);onOpenTreeSelector$=new f;outletGroups$=this.onOpenTreeSelector$.pipe(S(e=>e.length?O(e):this.http.get("/API/outlet/ActiveOptions"),[]),g(1));constructor(){}loadOutletGroups(){this.onOpenTreeSelector$.next()}static \u0275fac=function(t){return new(t||l)};static \u0275prov=I({token:l,factory:l.\u0275fac,providedIn:"root"})};function q(l,e){if(l&1&&(u(0,"div"),h(1),i()),l&2){let t=w();p(),T(" ",t.selectedOutletGroupLabel," ")}}function z(l,e){l&1&&(u(0,"label",4),h(1,"Outlet Group"),i())}var R=class l{constructor(e,t){this.http=e;this.outletGroup=t}outletGroups=[];showClear=!1;showLabel=!1;selectedOutletGroup;selectedOutletGroupID;selectedOutletGroupIDChange=new v;selectedOutletGroupLabel;isLoadOutletGroups=!1;top=0;outletGroups$;ngAfterViewInit(){let e=document.querySelector("body");this.top=e.getBoundingClientRect().top*-1}ngOnInit(){this.outletGroups.length>0&&(G.IsEmpty(this.selectedOutletGroupID)&&(this.selectedOutletGroupID=this.outletGroups[0]?.key),this.selectedOutletGroup=this.findSelectedOutletGroup(this.outletGroups,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)),this.outletGroups$=this.outletGroup.outletGroups$.pipe(b(e=>{console.log(e),this.selectedOutletGroup=this.findSelectedOutletGroup(e,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)}))}onSelectOutletGroup(e){this.selectedOutletGroup=e,this.generateLabelSelectedOutletGroup(this.selectedOutletGroup),this.selectedOutletGroupID=e?.key,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}generateLabelSelectedOutletGroup(e){if(e){let t=[];this.selectedOutletGroupLabel="";do t=[...t,e.label],e=e.parent;while(e!==void 0);this.selectedOutletGroupLabel=t.reverse().join("/")}else this.selectedOutletGroupLabel="Select OutletGroup"}findSelectedOutletGroup(e,t){if(G.IsNotEmpty(t))for(let o of e){if(o.key===t)return o;{o.children=o.children?o.children:[],o.children=o.children.map(n=>(n.parent=o,n));let r=this.findSelectedOutletGroup(o.children,t);if(r)return r}}else return null}loadOutletGroups(){let e=document.querySelector(".p-overlay.p-component"),t=this.top+e.getBoundingClientRect().top,o=e.getAttribute("style")||"";e.setAttribute("style",`${o} top: ${t+this.top}px;`),this.outletGroup.loadOutletGroups()}onClear(){this.selectedOutletGroupID=null,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}static \u0275fac=function(t){return new(t||l)(a(s),a(c))};static \u0275cmp=y({type:l,selectors:[["POS-outlet-group-tree-select"]],inputs:{outletGroups:"outletGroups",showClear:"showClear",showLabel:"showLabel",selectedOutletGroupID:"selectedOutletGroupID"},outputs:{selectedOutletGroupIDChange:"selectedOutletGroupIDChange"},decls:5,vars:6,consts:[["variant","on",1,"w-full","md:w-80"],["appendTo","body","inputId","selectOutletGroup","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectOutletGroup",3,"click","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["for","selectOutletGroup",4,"ngIf"],["for","selectOutletGroup"]],template:function(t,o){t&1&&(u(0,"p-floatlabel",0)(1,"p-treeSelect",1),D(2,"async"),_("click",function(){return o.loadOutletGroups()})("ngModelChange",function(n){return o.onSelectOutletGroup(n)})("onClear",function(){return o.onClear()}),d(3,q,2,1,"ng-template",2),i(),d(4,z,2,0,"label",3),i()),t&2&&(p(),m("options",L(2,4,o.outletGroups$))("ngModel",o.selectedOutletGroup)("showClear",o.showClear),p(3),m("ngIf",o.showLabel))},dependencies:[$,M,x,H,F,E,k,j,A,P,N],styles:[".p-overlay.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important}"]})};export{R as a};
@@ -1 +1 @@
1
- import{c as U,d as W}from"./chunk-2GLNGDED.js";import{a as X,b as Y}from"./chunk-6JAL37Y4.js";import{b as K,c as Q}from"./chunk-JOXTERIM.js";import{a as A}from"./chunk-7VKFVS7K.js";import{la as J}from"./chunk-EEEAUYZ6.js";import{F as G,h as B,o as q}from"./chunk-RVXZOIFQ.js";import{a as C}from"./chunk-ZZGSAFGO.js";import{$a as _,Ac as k,Db as H,Fa as M,Fc as F,Ib as c,Jb as m,Nb as L,Ob as V,Qb as j,Rb as n,Y as S,Yd as d,bd as N,ca as h,cd as P,d as x,db as b,dc as I,ec as v,fa as T,ga as u,gc as E,ja as w,jd as z,kb as $,ma as O,na as D,o as f,qb as a,va as p,vb as l,wa as g,zc as R}from"./chunk-UXRO4UFY.js";var y=class o{signalRClient=D(A);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),h((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):f(e),[]),S(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),h((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):f(e),[]),S(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(d))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function ie(o,t){o&1&&L(0)}function re(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,ie,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ne(o,t){o&1&&L(0)}function ae(o,t){if(o&1&&a(0,ne,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function le(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),E(" ",e.selectedCategoryLabel," ")}}function ce(o,t){if(o&1){let e=V();c(0,"p-treeSelect",4),R(1,"async"),j("click",function(){p(e);let r=n();return g(r.loadCategories())})("ngModelChange",function(r){p(e);let s=n();return g(s.onSelectCategory(r))})("onClear",function(){p(e);let r=n();return g(r.onClear())}),a(2,le,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",k(1,3,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)}}var Z=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;selectedCategory;selectedCategoryID;selectedCategoryIDChange=new M;selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let t=document.querySelector("body");this.top=t.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(C.IsEmpty(this.selectedCategoryID)&&C.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(T(t=>{this.selectedCategory=this.findSelectedCategory(t,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(t){this.selectedCategory=t,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=t?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}generateLabelSelectedCategory(t){if(t){let e=[];this.selectedCategoryLabel="";do e=[...e,t.label],t=t.parent;while(t!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel="Select Storage Location"}findSelectedCategory(t,e){if(C.IsNotEmpty(e))for(let i of t){if(i.key===e)return i;{i.children=i.children?i.children:[],i.children=i.children.map(s=>(s.parent=i,s));let r=this.findSelectedCategory(i.children,e);if(r)return r}}else return null}loadCategories(){this.treeSelector.onOpenTreeSelector()}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||o)(b(d),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory","placeholder","Select Storage Location",3,"click","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&a(0,re,4,1,"p-floatLabel",1)(1,ae,1,1,"ng-container")(2,ce,3,5,"ng-template",null,0,F),e&2&&H(i.showLabel?0:1)},dependencies:[z,N,P,Q,K,W,U,J,G,B,q,Y,X],styles:[".p-popover.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{Z as a};
1
+ import{c as U,d as W}from"./chunk-P2VNALSH.js";import{a as X,b as Y}from"./chunk-6JAL37Y4.js";import{b as K,c as Q}from"./chunk-JOXTERIM.js";import{a as A}from"./chunk-7VKFVS7K.js";import{la as J}from"./chunk-EEEAUYZ6.js";import{F as G,h as B,o as q}from"./chunk-RVXZOIFQ.js";import{a as C}from"./chunk-ZZGSAFGO.js";import{$a as _,Ac as k,Db as H,Fa as M,Fc as F,Ib as c,Jb as m,Nb as L,Ob as V,Qb as j,Rb as n,Y as S,Yd as d,bd as N,ca as h,cd as P,d as x,db as b,dc as I,ec as v,fa as T,ga as u,gc as E,ja as w,jd as z,kb as $,ma as O,na as D,o as f,qb as a,va as p,vb as l,wa as g,zc as R}from"./chunk-UXRO4UFY.js";var y=class o{signalRClient=D(A);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),h((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):f(e),[]),S(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),h((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):f(e),[]),S(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(d))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function ie(o,t){o&1&&L(0)}function re(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,ie,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ne(o,t){o&1&&L(0)}function ae(o,t){if(o&1&&a(0,ne,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function le(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),E(" ",e.selectedCategoryLabel," ")}}function ce(o,t){if(o&1){let e=V();c(0,"p-treeSelect",4),R(1,"async"),j("click",function(){p(e);let r=n();return g(r.loadCategories())})("ngModelChange",function(r){p(e);let s=n();return g(s.onSelectCategory(r))})("onClear",function(){p(e);let r=n();return g(r.onClear())}),a(2,le,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",k(1,3,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)}}var Z=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;selectedCategory;selectedCategoryID;selectedCategoryIDChange=new M;selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let t=document.querySelector("body");this.top=t.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(C.IsEmpty(this.selectedCategoryID)&&C.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(T(t=>{this.selectedCategory=this.findSelectedCategory(t,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(t){this.selectedCategory=t,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=t?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}generateLabelSelectedCategory(t){if(t){let e=[];this.selectedCategoryLabel="";do e=[...e,t.label],t=t.parent;while(t!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel="Select Storage Location"}findSelectedCategory(t,e){if(C.IsNotEmpty(e))for(let i of t){if(i.key===e)return i;{i.children=i.children?i.children:[],i.children=i.children.map(s=>(s.parent=i,s));let r=this.findSelectedCategory(i.children,e);if(r)return r}}else return null}loadCategories(){this.treeSelector.onOpenTreeSelector()}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||o)(b(d),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory","placeholder","Select Storage Location",3,"click","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&a(0,re,4,1,"p-floatLabel",1)(1,ae,1,1,"ng-container")(2,ce,3,5,"ng-template",null,0,F),e&2&&H(i.showLabel?0:1)},dependencies:[z,N,P,Q,K,W,U,J,G,B,q,Y,X],styles:[".p-popover.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{Z as a};
@@ -1 +1 @@
1
- import{a as me,b as ce,c as de,d as _e,e as se,f as ge}from"./chunk-DE6YZETL.js";import"./chunk-B5SDXVDR.js";import"./chunk-YWN3ZCUG.js";import"./chunk-L7YSVT7G.js";import"./chunk-RX7JS4CO.js";import{e as pe}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 ae,e as re}from"./chunk-6647Y35T.js";import"./chunk-VHAM2DWK.js";import{a as ee}from"./chunk-JPXXXD26.js";import{a as $}from"./chunk-WO3LDDSF.js";import{c as le}from"./chunk-VENGWIVD.js";import{b as Z}from"./chunk-QHBWVJIQ.js";import{a as X}from"./chunk-JYLR5O5Q.js";import"./chunk-NI5NXM2W.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{a as ne}from"./chunk-XZR3IMWZ.js";import{e as ie,f as oe}from"./chunk-OLSCBS7E.js";import"./chunk-LIBVAZGG.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-JVMOM4H4.js";import{b as te}from"./chunk-P4CJOEI6.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-H7F34T25.js";import{b as K,c as U}from"./chunk-JOXTERIM.js";import"./chunk-TSIYPTYI.js";import"./chunk-XYB3YDKL.js";import"./chunk-7VKFVS7K.js";import"./chunk-ZVDY66SR.js";import{g as Y}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-VFTGIP5A.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import{la as J}from"./chunk-EEEAUYZ6.js";import{F as q,c as N,h as k,o as Q,q as j}from"./chunk-RVXZOIFQ.js";import"./chunk-2JIKUIDL.js";import"./chunk-NO3WSZS5.js";import{d as z}from"./chunk-ZZGSAFGO.js";import"./chunk-TDQR33OS.js";import{$a as a,Ac as s,Bc as D,Db as P,Fc as V,Ib as o,Jb as i,Kb as C,Ob as I,Qb as h,Rb as m,Rd as W,Td as A,Ub as E,Yd as G,Zc as O,db as x,ec as l,fc as M,gc as g,gd as L,jc as v,jd as R,kb as B,kc as S,lc as b,ob as F,qb as f,qc as T,rc as w,va as u,vb as p,wa as y,wd as H,zc as _}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var fe=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),Ce=()=>["/menu/Products/Catalog/Products"],ue=t=>({CategoryID:t}),xe=()=>["/menu/Inventory/Quantity/Valuation"];function ve(t,c){if(t&1){let e=I();o(0,"button",10),h("click",function(){u(e);let n=m(2);return y(n.openExportModal())}),C(1,"i",11),l(2," Export "),i()}}function Se(t,c){if(t&1){let e=I();o(0,"div",12)(1,"h6"),l(2,"Outlet"),i(),o(3,"outlet-selector",13),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.ListIDs,n)||(d.pageData.Filter.ListIDs=n),y(n)}),i(),o(4,"h6"),l(5,"Quantity From - To"),i(),o(6,"div",14)(7,"input",15),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityFrom,n)||(d.pageData.Filter.QuantityFrom=n),y(n)}),i(),o(8,"span",16),l(9,"-"),i(),o(10,"input",17),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityTo,n)||(d.pageData.Filter.QuantityTo=n),y(n)}),i()(),o(11,"h6"),l(12,"Discontinued"),i(),o(13,"radio-options",18),b("modelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.Discontinued,n)||(d.pageData.Filter.Discontinued=n),y(n)}),i()()}if(t&2){let e=m(2);a(3),p("multiple",!0)("accessType",2),v("ngModel",e.pageData.Filter.ListIDs),a(4),v("ngModel",e.pageData.Filter.QuantityFrom),a(3),v("ngModel",e.pageData.Filter.QuantityTo),a(3),v("model",e.pageData.Filter.Discontinued),p("options",e.pageData.Options.Discontinued)}}function be(t,c){t&1&&(o(0,"th",27),l(1," Cost "),C(2,"p-treeTableSortIcon",28),i())}function Ie(t,c){t&1&&(o(0,"th",29),l(1," Price "),C(2,"p-treeTableSortIcon",30),i())}function Te(t,c){t&1&&(o(0,"th",31),l(1," % "),C(2,"p-treeTableSortIcon",32),i())}function De(t,c){if(t&1&&(o(0,"tr",19)(1,"th",20),l(2," Category "),C(3,"p-treeTableSortIcon",21),i(),o(4,"th",22),l(5," On Hand "),C(6,"p-treeTableSortIcon",23),i(),f(7,be,3,0,"th",24)(8,Ie,3,0,"th",25)(9,Te,3,0,"th",26),i()),t&2){let e=m(2);a(7),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function he(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedCost)," ")}}function we(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedPrice)," ")}}function Be(t,c){if(t&1&&(o(0,"td")(1,"span",38),_(2,"number"),l(3),_(4,"number"),i()()),t&2){let e=m().rowData;a(),p("matTooltip",D(2,2,e.DisplayedPercentage,"1.0-5")+"%"),a(2),g(" ",D(4,5,e.DisplayedPercentage,"1.0-0"),"% ")}}function Fe(t,c){if(t&1&&(o(0,"tr",33)(1,"td"),C(2,"p-treeTableToggler",34),o(3,"a",35),l(4),i()(),o(5,"td")(6,"a",36),_(7,"number"),_(8,"number"),_(9,"number"),l(10),_(11,"quantityFraction"),i()(),f(12,he,3,3,"td",37)(13,we,3,3,"td",37)(14,Be,5,8,"td",37),i()),t&2){let e=c.$implicit,r=c.rowData,n=m(2);p("ttRow",e),a(2),p("rowNode",e),a(),p("routerLink",T(20,Ce))("queryParams",w(21,ue,r.ID)),a(),M(r.Name),a(2),E("matTooltip",r.OnHandIndirect&&r.OnHand?"Direct ("+s(7,12,r.OnHand)+") Indirect ("+s(8,14,r.OnHandIndirect)+")":r.OnHandIndirect?"Indirect ("+s(9,16,r.OnHandIndirect)+")":""),p("routerLink",T(23,xe))("queryParams",w(24,ue,r.ID)),a(4),g("",s(11,18,r.DisplayedOnHand)," "),a(2),p("ngIf",n.roleService.product.Cost),a(),p("ngIf",n.roleService.product.Price),a(),p("ngIf",n.roleService.product.Cost&&n.roleService.product.Price)}}function Pe(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalCost)," ")}}function Ee(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPrice)," ")}}function Me(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"number"),i()),t&2){let e=m(3);a(),g(" ",D(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPercentage,"1.0-0"),"% ")}}function Ve(t,c){if(t&1&&(o(0,"tr",39)(1,"td",40),l(2,"Total:"),i(),o(3,"td",40),l(4),_(5,"quantityFraction"),i(),f(6,Pe,3,3,"td",41)(7,Ee,3,3,"td",41)(8,Me,3,4,"td",41),i()),t&2){let e=m(2);a(4),g(" ",s(5,4,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalOnHand)," "),a(2),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function Oe(t,c){if(t&1){let e=I();o(0,"mainpanel-cmp",2),h("onSubmit",function(){u(e);let n=m();return y(n.searchFromPageOne())}),b("filterChange",function(n){u(e);let d=m();return S(d.pageData.Filter,n)||(d.pageData.Filter=n),y(n)}),o(1,"actions"),f(2,ve,3,0,"button",3),i(),o(3,"div",4),f(4,Se,14,7,"ng-template",null,0,V),i(),o(6,"content")(7,"div",5)(8,"p-treeTable",6),f(9,De,10,3,"ng-template",7)(10,Fe,15,26,"ng-template",8)(11,Ve,9,6,"ng-template",9),i()()()()}if(t&2){let e=m();p("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),v("filter",e.pageData.Filter),a(2),P(e.roleService.global.Export?2:-1),a(6),p("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",T(9,fe))}}var ye=class t extends X{constructor(e,r,n,d,Le,Re){super(e,r,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=r;this.csvConverter=n;this.pageTitle=d;this.roleService=Le;this.dialog=Re}openExportModal(){this.dialog.open(Z,{data:{title:"Inventory By Category",exportTypes:[{ID:"inventoryexport/GetExportInventoryByCategory",Value:"Default",FileName:"Inventory By Category"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}static \u0275fac=function(r){return new(r||t)(x(te),x(G),x(ne),x(H),x(z),x(Y))};static \u0275cmp=B({type:t,selectors:[["app-inventory-by-category"]],features:[F],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter","onSubmit","filterChange",4,"ngIf"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["filters",""],[1,"container-fluid","mt-3"],[3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["pTemplate","footer"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["placeholder","Choose Outlet",1,"ng-select-multiple",3,"ngModelChange","multiple","accessType","ngModel"],[1,"d-flex","align-items-center"],["type","number","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],[1,"mx-3"],["type","number","placeholder","To",1,"form-control",3,"ngModelChange","ngModel"],[3,"modelChange","model","options"],[1,"custom-header"],["ttSortableColumn","Name",1,"text-uppercase"],["field","Name"],["ttSortableColumn","DisplayedOnHand",1,"text-uppercase"],["field","DisplayedOnHand"],["class","text-uppercase","ttSortableColumn","DisplayedCost",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPrice",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPercentage",4,"ngIf"],["ttSortableColumn","DisplayedCost",1,"text-uppercase"],["field","DisplayedCost"],["ttSortableColumn","DisplayedPrice",1,"text-uppercase"],["field","DisplayedPrice"],["ttSortableColumn","DisplayedPercentage",1,"text-uppercase"],["field","DisplayedPercentage"],[3,"ttRow"],[3,"rowNode"],["target","_blank",3,"routerLink","queryParams"],["matTooltipPosition","above",3,"routerLink","queryParams","matTooltip"],[4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[1,"table-footer"],[1,"text-end"],["class","text-end",4,"ngIf"]],template:function(r,n){r&1&&f(0,Oe,12,10,"mainpanel-cmp",1),r&2&&p("ngIf",n.data)},dependencies:[R,O,L,oe,ie,A,W,ge,me,J,se,ce,de,_e,$,ee,le,pe,re,ae,q,N,j,k,Q,U,K],styles:[".p-treetable-scrollable-header-box{padding-right:0!important} .p-treetable .p-treetable-thead>tr>th:not(:first-child){text-align:right!important} .p-treetable .p-treetable-tbody>tr>td:not(:first-child){text-align:right!important} .p-treetable-scrollable-footer-box{padding-right:0!important} .table-header-styles, .p-treetable-tfoot td, .p-treetable-thead th{background:#f6f6f6!important;color:#3b3b3b!important;text-transform:uppercase!important;font-weight:700!important;line-height:25px!important;font-size:12px!important;font-family:Roboto,sans-serif!important} .p-component.p-iconwrapper>svg{height:11px!important} .p-treetable .p-treetable-tbody>tr>td{border-bottom-width:1px;border-color:#dee2e6}"]})};export{ye as InventoryByCategoryComponent};
1
+ import{a as me,b as ce,c as de,d as _e,e as se,f as ge}from"./chunk-RWTASQKI.js";import"./chunk-B5SDXVDR.js";import"./chunk-YV7CUPB7.js";import"./chunk-L7YSVT7G.js";import"./chunk-RX7JS4CO.js";import{e as pe}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 ae,e as re}from"./chunk-6647Y35T.js";import"./chunk-VHAM2DWK.js";import{a as ee}from"./chunk-JPXXXD26.js";import{a as $}from"./chunk-WO3LDDSF.js";import{c as le}from"./chunk-7TQ35BHS.js";import{b as Z}from"./chunk-QHBWVJIQ.js";import{a as X}from"./chunk-7ISTXFAJ.js";import"./chunk-RXPJH2TJ.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{a as ne}from"./chunk-XZR3IMWZ.js";import{e as ie,f as oe}from"./chunk-TPXHRKLW.js";import"./chunk-PDITH6YS.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-MXY6MJSV.js";import{b as te}from"./chunk-BZCRY5I3.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-H7F34T25.js";import{b as K,c as U}from"./chunk-JOXTERIM.js";import"./chunk-TSIYPTYI.js";import"./chunk-XYB3YDKL.js";import"./chunk-7VKFVS7K.js";import"./chunk-ZVDY66SR.js";import{g as Y}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-VFTGIP5A.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import{la as J}from"./chunk-EEEAUYZ6.js";import{F as q,c as N,h as k,o as Q,q as j}from"./chunk-RVXZOIFQ.js";import"./chunk-ECHIQUJ3.js";import"./chunk-LOCMI7X3.js";import{d as z}from"./chunk-ZZGSAFGO.js";import"./chunk-HZ2RZ5MO.js";import{$a as a,Ac as s,Bc as D,Db as P,Fc as V,Ib as o,Jb as i,Kb as C,Ob as I,Qb as h,Rb as m,Rd as W,Td as A,Ub as E,Yd as G,Zc as O,db as x,ec as l,fc as M,gc as g,gd as L,jc as v,jd as R,kb as B,kc as S,lc as b,ob as F,qb as f,qc as T,rc as w,va as u,vb as p,wa as y,wd as H,zc as _}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var fe=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),Ce=()=>["/menu/Products/Catalog/Products"],ue=t=>({CategoryID:t}),xe=()=>["/menu/Inventory/Quantity/Valuation"];function ve(t,c){if(t&1){let e=I();o(0,"button",10),h("click",function(){u(e);let n=m(2);return y(n.openExportModal())}),C(1,"i",11),l(2," Export "),i()}}function Se(t,c){if(t&1){let e=I();o(0,"div",12)(1,"h6"),l(2,"Outlet"),i(),o(3,"outlet-selector",13),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.ListIDs,n)||(d.pageData.Filter.ListIDs=n),y(n)}),i(),o(4,"h6"),l(5,"Quantity From - To"),i(),o(6,"div",14)(7,"input",15),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityFrom,n)||(d.pageData.Filter.QuantityFrom=n),y(n)}),i(),o(8,"span",16),l(9,"-"),i(),o(10,"input",17),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityTo,n)||(d.pageData.Filter.QuantityTo=n),y(n)}),i()(),o(11,"h6"),l(12,"Discontinued"),i(),o(13,"radio-options",18),b("modelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.Discontinued,n)||(d.pageData.Filter.Discontinued=n),y(n)}),i()()}if(t&2){let e=m(2);a(3),p("multiple",!0)("accessType",2),v("ngModel",e.pageData.Filter.ListIDs),a(4),v("ngModel",e.pageData.Filter.QuantityFrom),a(3),v("ngModel",e.pageData.Filter.QuantityTo),a(3),v("model",e.pageData.Filter.Discontinued),p("options",e.pageData.Options.Discontinued)}}function be(t,c){t&1&&(o(0,"th",27),l(1," Cost "),C(2,"p-treeTableSortIcon",28),i())}function Ie(t,c){t&1&&(o(0,"th",29),l(1," Price "),C(2,"p-treeTableSortIcon",30),i())}function Te(t,c){t&1&&(o(0,"th",31),l(1," % "),C(2,"p-treeTableSortIcon",32),i())}function De(t,c){if(t&1&&(o(0,"tr",19)(1,"th",20),l(2," Category "),C(3,"p-treeTableSortIcon",21),i(),o(4,"th",22),l(5," On Hand "),C(6,"p-treeTableSortIcon",23),i(),f(7,be,3,0,"th",24)(8,Ie,3,0,"th",25)(9,Te,3,0,"th",26),i()),t&2){let e=m(2);a(7),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function he(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedCost)," ")}}function we(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedPrice)," ")}}function Be(t,c){if(t&1&&(o(0,"td")(1,"span",38),_(2,"number"),l(3),_(4,"number"),i()()),t&2){let e=m().rowData;a(),p("matTooltip",D(2,2,e.DisplayedPercentage,"1.0-5")+"%"),a(2),g(" ",D(4,5,e.DisplayedPercentage,"1.0-0"),"% ")}}function Fe(t,c){if(t&1&&(o(0,"tr",33)(1,"td"),C(2,"p-treeTableToggler",34),o(3,"a",35),l(4),i()(),o(5,"td")(6,"a",36),_(7,"number"),_(8,"number"),_(9,"number"),l(10),_(11,"quantityFraction"),i()(),f(12,he,3,3,"td",37)(13,we,3,3,"td",37)(14,Be,5,8,"td",37),i()),t&2){let e=c.$implicit,r=c.rowData,n=m(2);p("ttRow",e),a(2),p("rowNode",e),a(),p("routerLink",T(20,Ce))("queryParams",w(21,ue,r.ID)),a(),M(r.Name),a(2),E("matTooltip",r.OnHandIndirect&&r.OnHand?"Direct ("+s(7,12,r.OnHand)+") Indirect ("+s(8,14,r.OnHandIndirect)+")":r.OnHandIndirect?"Indirect ("+s(9,16,r.OnHandIndirect)+")":""),p("routerLink",T(23,xe))("queryParams",w(24,ue,r.ID)),a(4),g("",s(11,18,r.DisplayedOnHand)," "),a(2),p("ngIf",n.roleService.product.Cost),a(),p("ngIf",n.roleService.product.Price),a(),p("ngIf",n.roleService.product.Cost&&n.roleService.product.Price)}}function Pe(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalCost)," ")}}function Ee(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPrice)," ")}}function Me(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"number"),i()),t&2){let e=m(3);a(),g(" ",D(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPercentage,"1.0-0"),"% ")}}function Ve(t,c){if(t&1&&(o(0,"tr",39)(1,"td",40),l(2,"Total:"),i(),o(3,"td",40),l(4),_(5,"quantityFraction"),i(),f(6,Pe,3,3,"td",41)(7,Ee,3,3,"td",41)(8,Me,3,4,"td",41),i()),t&2){let e=m(2);a(4),g(" ",s(5,4,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalOnHand)," "),a(2),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function Oe(t,c){if(t&1){let e=I();o(0,"mainpanel-cmp",2),h("onSubmit",function(){u(e);let n=m();return y(n.searchFromPageOne())}),b("filterChange",function(n){u(e);let d=m();return S(d.pageData.Filter,n)||(d.pageData.Filter=n),y(n)}),o(1,"actions"),f(2,ve,3,0,"button",3),i(),o(3,"div",4),f(4,Se,14,7,"ng-template",null,0,V),i(),o(6,"content")(7,"div",5)(8,"p-treeTable",6),f(9,De,10,3,"ng-template",7)(10,Fe,15,26,"ng-template",8)(11,Ve,9,6,"ng-template",9),i()()()()}if(t&2){let e=m();p("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),v("filter",e.pageData.Filter),a(2),P(e.roleService.global.Export?2:-1),a(6),p("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",T(9,fe))}}var ye=class t extends X{constructor(e,r,n,d,Le,Re){super(e,r,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=r;this.csvConverter=n;this.pageTitle=d;this.roleService=Le;this.dialog=Re}openExportModal(){this.dialog.open(Z,{data:{title:"Inventory By Category",exportTypes:[{ID:"inventoryexport/GetExportInventoryByCategory",Value:"Default",FileName:"Inventory By Category"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}static \u0275fac=function(r){return new(r||t)(x(te),x(G),x(ne),x(H),x(z),x(Y))};static \u0275cmp=B({type:t,selectors:[["app-inventory-by-category"]],features:[F],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter","onSubmit","filterChange",4,"ngIf"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["filters",""],[1,"container-fluid","mt-3"],[3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["pTemplate","footer"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["placeholder","Choose Outlet",1,"ng-select-multiple",3,"ngModelChange","multiple","accessType","ngModel"],[1,"d-flex","align-items-center"],["type","number","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],[1,"mx-3"],["type","number","placeholder","To",1,"form-control",3,"ngModelChange","ngModel"],[3,"modelChange","model","options"],[1,"custom-header"],["ttSortableColumn","Name",1,"text-uppercase"],["field","Name"],["ttSortableColumn","DisplayedOnHand",1,"text-uppercase"],["field","DisplayedOnHand"],["class","text-uppercase","ttSortableColumn","DisplayedCost",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPrice",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPercentage",4,"ngIf"],["ttSortableColumn","DisplayedCost",1,"text-uppercase"],["field","DisplayedCost"],["ttSortableColumn","DisplayedPrice",1,"text-uppercase"],["field","DisplayedPrice"],["ttSortableColumn","DisplayedPercentage",1,"text-uppercase"],["field","DisplayedPercentage"],[3,"ttRow"],[3,"rowNode"],["target","_blank",3,"routerLink","queryParams"],["matTooltipPosition","above",3,"routerLink","queryParams","matTooltip"],[4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[1,"table-footer"],[1,"text-end"],["class","text-end",4,"ngIf"]],template:function(r,n){r&1&&f(0,Oe,12,10,"mainpanel-cmp",1),r&2&&p("ngIf",n.data)},dependencies:[R,O,L,oe,ie,A,W,ge,me,J,se,ce,de,_e,$,ee,le,pe,re,ae,q,N,j,k,Q,U,K],styles:[".p-treetable-scrollable-header-box{padding-right:0!important} .p-treetable .p-treetable-thead>tr>th:not(:first-child){text-align:right!important} .p-treetable .p-treetable-tbody>tr>td:not(:first-child){text-align:right!important} .p-treetable-scrollable-footer-box{padding-right:0!important} .table-header-styles, .p-treetable-tfoot td, .p-treetable-thead th{background:#f6f6f6!important;color:#3b3b3b!important;text-transform:uppercase!important;font-weight:700!important;line-height:25px!important;font-size:12px!important;font-family:Roboto,sans-serif!important} .p-component.p-iconwrapper>svg{height:11px!important} .p-treetable .p-treetable-tbody>tr>td{border-bottom-width:1px;border-color:#dee2e6}"]})};export{ye as InventoryByCategoryComponent};