dealpos 25.42.2 → 25.42.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 (89) hide show
  1. package/browser/{chunk-C32V5IHL.js → chunk-2PBMTCNB.js} +1 -1
  2. package/browser/{chunk-H66NFIQQ.js → chunk-32HLQMIF.js} +1 -1
  3. package/browser/{chunk-O3NKN7KT.js → chunk-3C333WA4.js} +1 -1
  4. package/browser/{chunk-PZANARAM.js → chunk-3HEL5YEK.js} +1 -1
  5. package/browser/{chunk-4WW3BBDP.js → chunk-44ZWYZS2.js} +1 -1
  6. package/browser/{chunk-ZFXZABWG.js → chunk-4NW7A5EC.js} +1 -1
  7. package/browser/chunk-4QBEH76F.js +1 -0
  8. package/browser/{chunk-TDO7VOF5.js → chunk-537VP6ZK.js} +1 -1
  9. package/browser/{chunk-TIX624OU.js → chunk-5JGMZUVO.js} +1 -1
  10. package/browser/{chunk-LWDGMGFV.js → chunk-5R4YDHD4.js} +1 -1
  11. package/browser/{chunk-3JVX2T6M.js → chunk-6EEZ723H.js} +1 -1
  12. package/browser/{chunk-6IQQC2YT.js → chunk-6O33MUM6.js} +1 -1
  13. package/browser/{chunk-P6LA3P5N.js → chunk-6PHBFF3O.js} +1 -1
  14. package/browser/chunk-6WBSRYV3.js +1 -0
  15. package/browser/{chunk-TRUZ46QL.js → chunk-75EESXJE.js} +1 -1
  16. package/browser/{chunk-GOZYJRWV.js → chunk-7ERQEWVF.js} +1 -1
  17. package/browser/{chunk-GKKKOTYZ.js → chunk-7LAYIAWW.js} +1 -1
  18. package/browser/{chunk-QFO3KUMD.js → chunk-7STOC3NI.js} +1 -1
  19. package/browser/{chunk-53ACYG5V.js → chunk-7Z6VQ4SB.js} +1 -1
  20. package/browser/{chunk-DNBZTRXL.js → chunk-AOHNHNJ4.js} +1 -1
  21. package/browser/{chunk-T5HYNGEA.js → chunk-BCWXNNN7.js} +1 -1
  22. package/browser/{chunk-EOY5VQKV.js → chunk-BDN45ELK.js} +2 -2
  23. package/browser/{chunk-CRJOVQ56.js → chunk-BLLHTNS3.js} +2 -2
  24. package/browser/{chunk-BVVYVR6R.js → chunk-BNYTLFGU.js} +1 -1
  25. package/browser/chunk-BO3TFY6M.js +1 -0
  26. package/browser/{chunk-SHPUXNKO.js → chunk-CEPFELMI.js} +1 -1
  27. package/browser/{chunk-K7ON3WKW.js → chunk-DQQS3EIT.js} +1 -1
  28. package/browser/{chunk-XBMOSDDE.js → chunk-DTU55DE5.js} +1 -1
  29. package/browser/{chunk-EHV62EGB.js → chunk-DV7Z45N7.js} +12 -12
  30. package/browser/{chunk-VGNMBCUC.js → chunk-F6XARCNS.js} +1 -1
  31. package/browser/{chunk-VKJIDCM7.js → chunk-FBCM6PP2.js} +1 -1
  32. package/browser/{chunk-R7Y776E5.js → chunk-G37NEDUK.js} +1 -1
  33. package/browser/{chunk-OSSHGIDA.js → chunk-GC3UJT2Q.js} +1 -1
  34. package/browser/{chunk-D5QLS4SZ.js → chunk-GHPZLWLY.js} +1 -1
  35. package/browser/{chunk-SV4HJFAL.js → chunk-GI3H7BEZ.js} +1 -1
  36. package/browser/{chunk-HGM42PVN.js → chunk-IAY6YLM3.js} +1 -1
  37. package/browser/{chunk-V52QD5BS.js → chunk-JATL56N2.js} +1 -1
  38. package/browser/{chunk-SIH5NVFR.js → chunk-JPA7JINL.js} +1 -1
  39. package/browser/{chunk-A3CWPPXF.js → chunk-KGTS7TDO.js} +1 -1
  40. package/browser/{chunk-QCEQZT7E.js → chunk-KQXOWLTB.js} +1 -1
  41. package/browser/{chunk-NOQM2VPB.js → chunk-LH2QJXQV.js} +1 -1
  42. package/browser/{chunk-ERTAWD4X.js → chunk-LNLKT2JE.js} +1 -1
  43. package/browser/{chunk-FNUNWZ2W.js → chunk-M3CM7YGB.js} +1 -1
  44. package/browser/{chunk-QPXWIIQK.js → chunk-NGOXBKLO.js} +1 -1
  45. package/browser/{chunk-4XWCWJZC.js → chunk-OZMOBU7L.js} +1 -1
  46. package/browser/{chunk-VD4QQDNI.js → chunk-PDXIH2U4.js} +1 -1
  47. package/browser/{chunk-W7R2NCKA.js → chunk-PFAAD3XG.js} +2 -2
  48. package/browser/{chunk-7275MAOI.js → chunk-PYAKNXHZ.js} +1 -1
  49. package/browser/{chunk-MW6BE5UI.js → chunk-Q4H53ZUG.js} +1 -1
  50. package/browser/{chunk-7X35YY3T.js → chunk-RB5D6LBP.js} +1 -1
  51. package/browser/{chunk-UE53BLCC.js → chunk-RD5CYEVA.js} +4 -4
  52. package/browser/{chunk-PDKNFOY7.js → chunk-RGMTX4XI.js} +1 -1
  53. package/browser/{chunk-2O3TR26P.js → chunk-RPHW7OGR.js} +1 -1
  54. package/browser/{chunk-G5P4GFMX.js → chunk-SK3O35VZ.js} +1 -1
  55. package/browser/{chunk-47W54HJY.js → chunk-SN4VGYRI.js} +1 -1
  56. package/browser/{chunk-Z5HBVHYO.js → chunk-SRPF6NEK.js} +1 -1
  57. package/browser/{chunk-XPEGAYJO.js → chunk-SYXYAJTH.js} +1 -1
  58. package/browser/{chunk-FKYUI33J.js → chunk-TIZ2QYSJ.js} +1 -1
  59. package/browser/{chunk-OAY4ZDTS.js → chunk-TKNGHZIN.js} +1 -1
  60. package/browser/{chunk-Q7GDNJAI.js → chunk-TM46LANH.js} +2 -2
  61. package/browser/{chunk-TU4O5BX3.js → chunk-TY4CJST2.js} +1 -1
  62. package/browser/{chunk-EJFVZSWQ.js → chunk-UAZRVFNB.js} +1 -1
  63. package/browser/{chunk-NII66FBK.js → chunk-UDE6XZO3.js} +2 -2
  64. package/browser/{chunk-DV4MQXAE.js → chunk-URAQZQ3A.js} +1 -1
  65. package/browser/{chunk-CKSMLIVU.js → chunk-UVRUHQSK.js} +4 -4
  66. package/browser/{chunk-XGGQUHUR.js → chunk-UZCYUQUH.js} +1 -1
  67. package/browser/{chunk-W7Z44R3C.js → chunk-V7HLUR6T.js} +1 -1
  68. package/browser/{chunk-LQ3Q52LD.js → chunk-VOH7SSVN.js} +1 -1
  69. package/browser/chunk-VPC43VHO.js +1 -0
  70. package/browser/{chunk-TSBV5MA4.js → chunk-VVIPBL5F.js} +1 -1
  71. package/browser/{chunk-IRIE5DZT.js → chunk-WAABNVJP.js} +1 -1
  72. package/browser/{chunk-HGADEAZ4.js → chunk-WCS36NF2.js} +1 -1
  73. package/browser/{chunk-4ODUHZAT.js → chunk-WJOZLY6Q.js} +1 -1
  74. package/browser/{chunk-4WYJGX5K.js → chunk-WQ7RE4CS.js} +1 -1
  75. package/browser/{chunk-IU526HWZ.js → chunk-XHUPVI6X.js} +1 -1
  76. package/browser/{chunk-7R3X2A2H.js → chunk-XNJJHLJK.js} +1 -1
  77. package/browser/{chunk-ZHIGBBGN.js → chunk-XYXJ6BJZ.js} +2 -2
  78. package/browser/{chunk-HA6VJJLI.js → chunk-YLVSXMRV.js} +1 -1
  79. package/browser/{chunk-PNQGP25W.js → chunk-ZGGEHIOZ.js} +1 -1
  80. package/browser/{chunk-HYZX6TUF.js → chunk-ZTJ2EZKC.js} +1 -1
  81. package/browser/{chunk-Q5IKPX3P.js → chunk-ZTTYI7IT.js} +1 -1
  82. package/browser/index.html +2 -2
  83. package/browser/main-MFGSWEQQ.js +3 -0
  84. package/package.json +1 -1
  85. package/browser/chunk-FMHXEKSH.js +0 -1
  86. package/browser/chunk-I6NIUHOQ.js +0 -1
  87. package/browser/chunk-NM2P4KR5.js +0 -1
  88. package/browser/chunk-ZOIQWHQE.js +0 -1
  89. package/browser/main-C7YDPF2T.js +0 -3
@@ -1 +1 @@
1
- import{a}from"./chunk-DV4MQXAE.js";import{K as o}from"./chunk-UXRO4UFY.js";var s=class extends a{constructor(t,e,r,n){super(t);this.httpService=e;this.formDataAPI=r;this.route=n;let p=this.route.snapshot.queryParams;this.menuData$.pipe(o(()=>this.httpService.post(`/api/${this.formDataAPI}`,p))).subscribe(i=>{this.data=i,this.postBindForm(i)})}data={};get formData(){return this.data.Form}set formData(t){this.data.Form=t}get options(){return this.data.Options?this.data.Options:{}}get Roles(){return this.data.Roles?this.data.Roles:{}}postBindForm(t){}onSubmit(t,e=!1){this.preSubmitForm(),this.httpService.post(`/api/${t}`,this.formData).subscribe({next:r=>{this.onSubmitSuccess(r)},error:r=>{this.onSubmitError(r)}})}compare(t,e,r){return(t<e?-1:1)*(r?1:-1)}preSubmitForm(){}onSubmitSuccess(t){}onSubmitError(t){}};export{s as a};
1
+ import{a}from"./chunk-URAQZQ3A.js";import{K as o}from"./chunk-UXRO4UFY.js";var s=class extends a{constructor(t,e,r,n){super(t);this.httpService=e;this.formDataAPI=r;this.route=n;let p=this.route.snapshot.queryParams;this.menuData$.pipe(o(()=>this.httpService.post(`/api/${this.formDataAPI}`,p))).subscribe(i=>{this.data=i,this.postBindForm(i)})}data={};get formData(){return this.data.Form}set formData(t){this.data.Form=t}get options(){return this.data.Options?this.data.Options:{}}get Roles(){return this.data.Roles?this.data.Roles:{}}postBindForm(t){}onSubmit(t,e=!1){this.preSubmitForm(),this.httpService.post(`/api/${t}`,this.formData).subscribe({next:r=>{this.onSubmitSuccess(r)},error:r=>{this.onSubmitError(r)}})}compare(t,e,r){return(t<e?-1:1)*(r?1:-1)}preSubmitForm(){}onSubmitSuccess(t){}onSubmitError(t){}};export{s as a};
@@ -1 +1 @@
1
- import{c as F,d as H}from"./chunk-HA6VJJLI.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-YLVSXMRV.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 f}from"./chunk-TDO7VOF5.js";import{a as m}from"./chunk-PZANARAM.js";import{I as c,Vd as v,Yd as u,ja as s,k as n,ma as e,qd as h,td as l}from"./chunk-UXRO4UFY.js";var d=class o{constructor(t,r,p,i){this.httpService=t;this.authService=r;this.httpClientService=p;this.toastr=i}port=window.location.href.split("localhost:")[1]?.split("/")[0];hostURL=t=>m.production?t:`https://localhost:${this.port}${t}`;configure2FA(t){return this.httpService.post("/api/Authentication/Setup_2FA",t)}validateCode(t,r){let p=this.authService.loginResponse?.Token,i=new h({"Content-Type":"application/json","Cache-Control":"no-cache"});i=i.append("Authorization","Bearer "+p);let S={ValidationCode:t,UserID:r};return this.httpClientService.post(this.hostURL("/api/Login/Validate_2FA "),S,{headers:i}).pipe(c(a=>(this.toastr.error(a?.error?.Message,"Error - "+a.status),n)))}disableTwoFactorAuthentication(){let t={enabled:!1};return this.httpService.post("/api/Authentication/Setup_2FA",t)}static \u0275fac=function(r){return new(r||o)(e(u),e(f),e(l),e(v))};static \u0275prov=s({token:o,factory:o.\u0275fac,providedIn:"root"})};export{d as a};
1
+ import{c as f}from"./chunk-537VP6ZK.js";import{a as m}from"./chunk-3HEL5YEK.js";import{I as c,Vd as v,Yd as u,ja as s,k as n,ma as e,qd as h,td as l}from"./chunk-UXRO4UFY.js";var d=class o{constructor(t,r,p,i){this.httpService=t;this.authService=r;this.httpClientService=p;this.toastr=i}port=window.location.href.split("localhost:")[1]?.split("/")[0];hostURL=t=>m.production?t:`https://localhost:${this.port}${t}`;configure2FA(t){return this.httpService.post("/api/Authentication/Setup_2FA",t)}validateCode(t,r){let p=this.authService.loginResponse?.Token,i=new h({"Content-Type":"application/json","Cache-Control":"no-cache"});i=i.append("Authorization","Bearer "+p);let S={ValidationCode:t,UserID:r};return this.httpClientService.post(this.hostURL("/api/Login/Validate_2FA "),S,{headers:i}).pipe(c(a=>(this.toastr.error(a?.error?.Message,"Error - "+a.status),n)))}disableTwoFactorAuthentication(){let t={enabled:!1};return this.httpService.post("/api/Authentication/Setup_2FA",t)}static \u0275fac=function(r){return new(r||o)(e(u),e(f),e(l),e(v))};static \u0275prov=s({token:o,factory:o.\u0275fac,providedIn:"root"})};export{d as a};
@@ -1 +1 @@
1
- import{d as $,e as ee}from"./chunk-VSF6PYZW.js";import"./chunk-VHAM2DWK.js";import{a as z}from"./chunk-JPXXXD26.js";import{a as H,b as G,c as A}from"./chunk-ITLMINSX.js";import{a as oe,b as ne}from"./chunk-HMER2IC5.js";import{f as te}from"./chunk-HA6VJJLI.js";import{c as ie}from"./chunk-SV4HJFAL.js";import{b as Q}from"./chunk-TZ74SUXJ.js";import{a as q}from"./chunk-V52QD5BS.js";import"./chunk-IU526HWZ.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{e as Y,f as Z}from"./chunk-TSBV5MA4.js";import"./chunk-BVVYVR6R.js";import"./chunk-5JJSLRVS.js";import"./chunk-GINOZV6C.js";import"./chunk-CWITQVZH.js";import"./chunk-QHRP323Q.js";import"./chunk-WDQ4UKKY.js";import"./chunk-MFCXEITE.js";import"./chunk-MUJ6277G.js";import"./chunk-LMJVRREP.js";import"./chunk-3LBZDIW2.js";import"./chunk-KTCV3KOE.js";import"./chunk-KZDE63UL.js";import"./chunk-VGNMBCUC.js";import{b as K}from"./chunk-DV4MQXAE.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-CD3BSGAP.js";import"./chunk-JOXTERIM.js";import{N as X,g as U}from"./chunk-5OS5VELO.js";import"./chunk-XYB3YDKL.js";import"./chunk-6ZN7JR6K.js";import"./chunk-GIKR6Y2K.js";import{g as J}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-VFTGIP5A.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import{F as W,h as B,o as R}from"./chunk-RVXZOIFQ.js";import"./chunk-TDO7VOF5.js";import"./chunk-NOQM2VPB.js";import{d as k}from"./chunk-ZZGSAFGO.js";import"./chunk-PZANARAM.js";import{$a as p,Ac as P,Bc as T,Eb as b,Fc as V,Gb as M,Hb as O,Ib as i,Jb as o,Kb as v,Ob as _,Qb as S,Rb as m,Yd as j,Zc as F,db as u,ec as l,fc as h,gc as w,jc as x,jd as N,kb as E,kc as C,lc as y,ob as I,qb as f,va as c,vb as d,wa as s,zc as D}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";function re(r,g){if(r&1){let e=_();i(0,"button",5),S("click",function(){c(e);let t=m();return s(t.openExportModal())}),v(1,"i",6),l(2," Export "),o()}}function le(r,g){if(r&1){let e=_();i(0,"h6"),l(1,"Outlet"),o(),i(2,"outlet-selector",7),y("ngModelChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Outlet,t)||(a.pageData.Filter.Outlet=t),s(t)}),o(),i(3,"h6"),l(4,"Category"),o(),i(5,"POS-product-category-select",8),y("selectedCategoryIDChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Category,t)||(a.pageData.Filter.Category=t),s(t)}),o(),i(6,"h6"),l(7,"Discontinued"),o(),i(8,"radio-options",9),y("modelChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Discontinued,t)||(a.pageData.Filter.Discontinued=t),s(t)}),o()}if(r&2){let e=m();p(2),d("accessType",2),x("ngModel",e.pageData.Filter.Outlet),p(3),x("selectedCategoryID",e.pageData.Filter.Category),d("showClear",!0),p(3),d("options",e.pageData==null||e.pageData.Options==null?null:e.pageData.Options.Discontinued),x("model",e.pageData.Filter.Discontinued)}}function pe(r,g){if(r&1&&(i(0,"tr")(1,"td"),l(2),o(),i(3,"td"),l(4),o(),i(5,"td",20),l(6),D(7,"quantityFraction"),o()()),r&2){let e=g.$implicit;p(2),h(e.EntityName),p(2),h(e.Name),p(2),w(" ",P(7,3,e.Inventory)," ")}}function me(r,g){if(r&1){let e=_();i(0,"div",10)(1,"div",11)(2,"table",12),S("matSortChange",function(t){c(e);let a=m();return s(a.onSortData(t))}),i(3,"thead",13)(4,"tr",14)(5,"th",15),l(6,"Outlet"),o(),i(7,"th",16),l(8,"Storage Location"),o(),i(9,"th",17),l(10," On Hand "),o()()(),i(11,"tbody"),M(12,pe,8,5,"tr",null,b),o(),i(14,"tfoot")(15,"tr",18),v(16,"td",19),i(17,"td",19),l(18,"Total :"),o(),i(19,"td",20),l(20),D(21,"sum"),D(22,"quantityFraction"),o()()()(),i(23,"POS-complex-pagination",21),S("jumpToPage",function(){c(e);let t=m();return s(t.getListData())})("previousPage",function(){c(e);let t=m();return s(t.getListData())})("nextPage",function(){c(e);let t=m();return s(t.getListData())}),o()()()}if(r&2){let e=m();p(12),O(e.data.Data),p(8),w(" ",P(22,6,T(21,3,e.data.Data,"Inventory"))," "),p(3),d("total",e.data.Data==null?null:e.data.Data.length)("pageData",e.pageData)}}var ae=class r extends q{constructor(e,n,t,a){super(e,n,"Inventory/GetProductStorageLocation","InventoryLoader/InventoryReport");this.httpService=n;this.dialog=t;this.roleService=a}datasource;postInit(e){this.datasource=JSON.parse(JSON.stringify(e.Data))}openExportModal(){this.dialog.open(Q,{data:{title:"Storage Location",exportTypes:[{ID:"Inventory/GetProductStorageLocation",Value:"Default",FileName:"Storage Location"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"inventory/GetCountProductStorageLocation",pagination:!0}})}onSortData(e){let n=this.data.Data?.slice();if(!e.active||e.direction===""){this.data.Data=this.datasource;return}let t=e.direction==="asc";this.data.Data=n.sort((a,L)=>this.compare(a[e.active],L[e.active],t))}static \u0275fac=function(n){return new(n||r)(u(K),u(j),u(J),u(k))};static \u0275cmp=E({type:r,selectors:[["app-storage-location"]],features:[I],decls:9,vars:5,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"d-flex"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["class","container-fluid mt-3",4,"ngIf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],["placeholder","Choose an outlet","appendTo","body",3,"ngModelChange","accessType","ngModel"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","Discontinued",3,"modelChange","options","model"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[1,"header"],["mat-sort-header","EntityName",2,"width","450px"],["mat-sort-header","Brand"],["mat-sort-header","Inventory","arrowPosition","before",1,"text-end",2,"padding-right","100px","width","190px"],[1,"table-footer","fw-bold"],[1,"empty-column"],[1,"text-end",2,"padding-right","100px"],["api","inventory/GetCountProductStorageLocation",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(n,t){if(n&1){let a=_();i(0,"mainpanel-cmp",1),S("onSubmit",function(){return c(a),s(t.searchFromPageOne())}),i(1,"actions")(2,"div",2),f(3,re,3,0,"button",3),o()(),i(4,"filters"),f(5,le,9,6,"ng-template",null,0,V),o(),i(7,"content"),f(8,me,24,8,"div",4),o()()}n&2&&(d("pageData",t.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(3),d("ngIf",t.roleService.global.Export),p(5),d("ngIf",t.data))},dependencies:[N,F,Z,Y,z,X,U,ee,$,te,ie,W,B,R,ne,oe,A,H,G],encapsulation:2})};export{ae as StorageLocationComponent};
1
+ import{d as $,e as ee}from"./chunk-VSF6PYZW.js";import"./chunk-VHAM2DWK.js";import{a as z}from"./chunk-JPXXXD26.js";import{a as H,b as G,c as A}from"./chunk-ITLMINSX.js";import{a as oe,b as ne}from"./chunk-HMER2IC5.js";import{f as te}from"./chunk-YLVSXMRV.js";import{c as ie}from"./chunk-GI3H7BEZ.js";import{b as Q}from"./chunk-TZ74SUXJ.js";import{a as q}from"./chunk-JATL56N2.js";import"./chunk-XHUPVI6X.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{e as Y,f as Z}from"./chunk-VVIPBL5F.js";import"./chunk-BNYTLFGU.js";import"./chunk-5JJSLRVS.js";import"./chunk-GINOZV6C.js";import"./chunk-CWITQVZH.js";import"./chunk-QHRP323Q.js";import"./chunk-WDQ4UKKY.js";import"./chunk-MFCXEITE.js";import"./chunk-MUJ6277G.js";import"./chunk-LMJVRREP.js";import"./chunk-3LBZDIW2.js";import"./chunk-KTCV3KOE.js";import"./chunk-KZDE63UL.js";import"./chunk-F6XARCNS.js";import{b as K}from"./chunk-URAQZQ3A.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-CD3BSGAP.js";import"./chunk-JOXTERIM.js";import{N as X,g as U}from"./chunk-5OS5VELO.js";import"./chunk-XYB3YDKL.js";import"./chunk-6ZN7JR6K.js";import"./chunk-GIKR6Y2K.js";import{g as J}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-VFTGIP5A.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import"./chunk-EEEAUYZ6.js";import{F as W,h as B,o as R}from"./chunk-RVXZOIFQ.js";import"./chunk-537VP6ZK.js";import"./chunk-LH2QJXQV.js";import{d as k}from"./chunk-ZZGSAFGO.js";import"./chunk-3HEL5YEK.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};