dealpos 25.48.1 → 25.48.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/browser/{chunk-DZ6FWYAF.js → chunk-2RYEXHZV.js} +1 -1
  2. package/browser/{chunk-YLLLGS4S.js → chunk-356KM5DR.js} +1 -1
  3. package/browser/{chunk-4RYYICV5.js → chunk-36NP63VM.js} +2 -2
  4. package/browser/{chunk-HS44M5L3.js → chunk-3DAJFE6H.js} +1 -1
  5. package/browser/{chunk-UILJOKEL.js → chunk-3ESMPFFS.js} +1 -1
  6. package/browser/{chunk-P6LF5RPW.js → chunk-3G264AW4.js} +1 -1
  7. package/browser/{chunk-HUYWGTVQ.js → chunk-3VQBBLWE.js} +1 -1
  8. package/browser/{chunk-SVECNUUA.js → chunk-3YHMSAWW.js} +1 -1
  9. package/browser/{chunk-YU4JSVLL.js → chunk-4ISL77CE.js} +1 -1
  10. package/browser/{chunk-NDSWUR7R.js → chunk-4NNOZ2BP.js} +1 -1
  11. package/browser/{chunk-2YJP5PQJ.js → chunk-4VSJH5SL.js} +1 -1
  12. package/browser/{chunk-GHBBRGW2.js → chunk-5K7KFVM3.js} +1 -1
  13. package/browser/{chunk-4KLLS7S5.js → chunk-6EJSHQWL.js} +1 -1
  14. package/browser/{chunk-22Q4GFCS.js → chunk-6ONTAEOO.js} +1 -1
  15. package/browser/{chunk-3N7EBSCG.js → chunk-6PR53KNR.js} +1 -1
  16. package/browser/{chunk-N7SUEV3C.js → chunk-6YHYVBRQ.js} +1 -1
  17. package/browser/{chunk-BWEEC6HM.js → chunk-7HRIPBOK.js} +1 -1
  18. package/browser/{chunk-DEOVGQZC.js → chunk-7MD5PKPB.js} +2 -2
  19. package/browser/{chunk-RDAIK2LU.js → chunk-7NEKXENA.js} +1 -1
  20. package/browser/{chunk-T2IWW7SS.js → chunk-7V3SLYOQ.js} +1 -1
  21. package/browser/{chunk-KR2YGW5S.js → chunk-7ZUYXNKP.js} +2 -2
  22. package/browser/{chunk-GTJDUG56.js → chunk-ANPUR4EP.js} +1 -1
  23. package/browser/{chunk-NETNL55X.js → chunk-BJF3WGIP.js} +1 -1
  24. package/browser/{chunk-M3CGB5RK.js → chunk-BOLUBS5R.js} +2 -2
  25. package/browser/{chunk-MP4RQSWT.js → chunk-BYFPLENU.js} +2 -2
  26. package/browser/{chunk-CDFNRJAQ.js → chunk-CFU6YCXT.js} +1 -1
  27. package/browser/{chunk-QA67WF7E.js → chunk-CLX7PIH6.js} +1 -1
  28. package/browser/{chunk-6QBYWFJ4.js → chunk-DHY5NYN2.js} +1 -1
  29. package/browser/{chunk-7DCWSNUN.js → chunk-DV63TLIP.js} +1 -1
  30. package/browser/{chunk-62V34GYI.js → chunk-DWNXML7N.js} +1 -1
  31. package/browser/{chunk-IMSDBLRH.js → chunk-E55DAXRW.js} +1 -1
  32. package/browser/{chunk-GEMHTJVB.js → chunk-E5IXDLDT.js} +1 -1
  33. package/browser/{chunk-UAIR26OK.js → chunk-E7AQSX2U.js} +1 -1
  34. package/browser/{chunk-REBD6XHD.js → chunk-EIHC54J5.js} +1 -1
  35. package/browser/{chunk-KQYNW4DG.js → chunk-F7KTXCW4.js} +2 -2
  36. package/browser/{chunk-HVFAKTAO.js → chunk-FO5ZTXDH.js} +1 -1
  37. package/browser/{chunk-GZ7UUU3F.js → chunk-G4G5P6ZQ.js} +1 -1
  38. package/browser/{chunk-CZYGX5TM.js → chunk-GCP2MGQL.js} +1 -1
  39. package/browser/{chunk-T2ECIFZW.js → chunk-HCCADOVL.js} +1 -1
  40. package/browser/{chunk-HNK3XQEI.js → chunk-I7FZGSZZ.js} +1 -1
  41. package/browser/{chunk-3VKLSTEH.js → chunk-IVJVUXLS.js} +1 -1
  42. package/browser/{chunk-M4HEF65P.js → chunk-IVVSNJJ3.js} +1 -1
  43. package/browser/{chunk-L5KVMIM3.js → chunk-J76F72FK.js} +1 -1
  44. package/browser/{chunk-O5CTER4C.js → chunk-K6CUAFH7.js} +2 -2
  45. package/browser/{chunk-W4ZCLNTU.js → chunk-KD24MXAU.js} +1 -1
  46. package/browser/{chunk-3ALHEPKV.js → chunk-KPHOGUDM.js} +1 -1
  47. package/browser/{chunk-5U73W2IZ.js → chunk-KRPYY55C.js} +1 -1
  48. package/browser/{chunk-ETLWM6MW.js → chunk-KZBNUY2K.js} +1 -1
  49. package/browser/{chunk-A4TTSCQT.js → chunk-LELZTT7A.js} +1 -1
  50. package/browser/{chunk-X2JCAGKP.js → chunk-LLHBXZ6B.js} +1 -1
  51. package/browser/{chunk-EHJXCRPX.js → chunk-MFLQHYOR.js} +1 -1
  52. package/browser/{chunk-FY3CQQFL.js → chunk-N3L2CE6S.js} +1 -1
  53. package/browser/{chunk-IMM4P55U.js → chunk-NJD4GKTM.js} +1 -1
  54. package/browser/{chunk-4OD3JW2M.js → chunk-NZ4SK6LY.js} +1 -1
  55. package/browser/{chunk-33ZBZA3U.js → chunk-OTUYSGSK.js} +1 -1
  56. package/browser/{chunk-LVC4ZU2C.js → chunk-OWGJVIYJ.js} +1 -1
  57. package/browser/{chunk-S3K63CGI.js → chunk-P7BRWWWC.js} +1 -1
  58. package/browser/{chunk-QFWPOP7L.js → chunk-R36QPCUA.js} +1 -1
  59. package/browser/{chunk-ZQGXWDT6.js → chunk-RJMVCGIG.js} +1 -1
  60. package/browser/{chunk-7T6YO3VY.js → chunk-S7X7547X.js} +1 -1
  61. package/browser/{chunk-FYMATMVS.js → chunk-SLDKONZE.js} +1 -1
  62. package/browser/{chunk-THUJIHI7.js → chunk-TARA6KGA.js} +1 -1
  63. package/browser/{chunk-6F4WKG7M.js → chunk-TON7E347.js} +1 -1
  64. package/browser/{chunk-CSURZQS6.js → chunk-TT2F5I7H.js} +1 -1
  65. package/browser/{chunk-37E4SNZ3.js → chunk-U4N5AZIO.js} +1 -1
  66. package/browser/{chunk-E7ISSVA3.js → chunk-U5LNORQV.js} +1 -1
  67. package/browser/{chunk-3DZLNGPO.js → chunk-UAQU4IQS.js} +1 -1
  68. package/browser/{chunk-BXOQMC5N.js → chunk-UCOXEQFM.js} +1 -1
  69. package/browser/{chunk-HIQKF5X3.js → chunk-UQ5F3YKZ.js} +1 -1
  70. package/browser/{chunk-P32JEM3L.js → chunk-USMW7JHL.js} +1 -1
  71. package/browser/{chunk-EX6JLLRB.js → chunk-UZKEO2IO.js} +1 -1
  72. package/browser/{chunk-A5WQMHVO.js → chunk-VNBCF2XF.js} +1 -1
  73. package/browser/{chunk-UHVNH2XA.js → chunk-VVYOMXKJ.js} +1 -1
  74. package/browser/{chunk-PD5SVXID.js → chunk-WBFJWUUR.js} +1 -1
  75. package/browser/{chunk-D2JKYGM3.js → chunk-WKXWWL55.js} +1 -1
  76. package/browser/{chunk-W7CJ25G5.js → chunk-WQMNK3UX.js} +1 -1
  77. package/browser/{chunk-N5SEZOII.js → chunk-WXH4A4T7.js} +1 -1
  78. package/browser/{chunk-NHWTJY64.js → chunk-X3UFVTIQ.js} +1 -1
  79. package/browser/{chunk-VAVKHKIO.js → chunk-XSHCTIUH.js} +1 -1
  80. package/browser/{chunk-327LILIU.js → chunk-YBIA6E5J.js} +1 -1
  81. package/browser/{chunk-4F6J35GL.js → chunk-YBVDBTTE.js} +1 -1
  82. package/browser/{chunk-CUU2G2CM.js → chunk-YQOU4WGG.js} +1 -1
  83. package/browser/{chunk-OU7YY2CV.js → chunk-YV4LSCS5.js} +1 -1
  84. package/browser/index.html +2 -2
  85. package/browser/{main-NN7FZ4DK.js → main-BTMX7TBF.js} +2 -2
  86. package/package.json +1 -1
@@ -1 +1 @@
1
- import{a as ae,b as le}from"./chunk-I5W4NCFM.js";import"./chunk-MVUVDYGQ.js";import{a as ie}from"./chunk-LAZZHDUO.js";import"./chunk-WNZKCNMC.js";import"./chunk-6GLKD66N.js";import"./chunk-CBSYYTXQ.js";import{e as de,f as ce}from"./chunk-YLLLGS4S.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-3VKLSTEH.js";import{a as pe,b as me}from"./chunk-HIQKF5X3.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import{O as H}from"./chunk-T25N3EEG.js";import{d as ue,e as se}from"./chunk-7TBS7SPQ.js";import{a as re}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as te,c as Y,h as Z,o as ee}from"./chunk-RNLSEEMX.js";import"./chunk-E7ISSVA3.js";import"./chunk-HVFAKTAO.js";import{a as h,d as oe}from"./chunk-USJ6ILEE.js";import"./chunk-NETNL55X.js";import{$d as X,Ab as V,Bb as k,Bc as d,Ca as D,Cb as s,Cc as f,Db as o,Dc as A,Eb as r,Fb as O,Hc as j,Mb as w,Ob as G,Qa as L,Qb as u,Wd as K,Xa as l,Y as b,Zd as Q,db as M,dc as p,ec as g,ee as ne,fa as R,hb as U,ic as P,jc as I,kc as E,kd as q,lb as B,lc as N,md as z,nb as F,pa as v,rd as J,ta as c,tc as W,ua as _,uc as $,vb as y,xb as C,zb as T}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import{a as x,b as S}from"./chunk-SNAKHGZS.js";var ge=()=>["/menu/Users/User/Groups/Info"],fe=i=>({ID:i});function he(i,m){if(i&1){let e=w();o(0,"div",9)(1,"h6"),p(2,"Group"),r(),o(3,"ng-select",10),E("ngModelChange",function(t){c(e);let a=u(2);return I(a.filter().GroupID,t)||(a.filter().GroupID=t),_(t)}),r(),o(4,"h6"),p(5,"Row Count"),r(),o(6,"input",11),E("ngModelChange",function(t){c(e);let a=u(2);return I(a.filter().RowCount,t)||(a.filter().RowCount=t),_(t)}),r()()}if(i&2){let e=u(2);l(3),s("items",e.options().Groups),P("ngModel",e.filter().GroupID),l(3),s("max",1e4),P("ngModel",e.filter().RowCount)}}function ye(i,m){if(i&1&&(o(0,"a",12),p(1),r()),i&2){let e=u().$implicit;s("routerLink",W(3,ge))("queryParams",$(4,fe,e._source==null||e._source.Log==null?null:e._source.Log.id)),l(),g(e._source==null||e._source.Log==null?null:e._source.Log.name)}}function Ce(i,m){if(i&1&&(o(0,"span"),p(1),r()),i&2){let e=u().$implicit;l(),g(e._source==null||e._source.Log==null?null:e._source.Log.name)}}function xe(i,m){if(i&1&&(o(0,"tr",7)(1,"td"),y(2,ye,2,6,"a",12),y(3,Ce,2,1,"span"),r(),o(4,"td"),p(5),d(6,"date"),r(),o(7,"td"),p(8),r(),O(9,"td",13),d(10,"newlines"),r()),i&2){let e=m.$implicit,n=u(2);l(2),C(n.role.users.Edit?2:-1),l(),C(n.role.users.Edit?-1:3),l(2),g(A(6,5,e._source["@timestamp"],"dd MMM yyyy HH:mm")),l(3),g(e._source==null||e._source.Log==null?null:e._source.Log.creator),l(),s("innerHtml",f(10,8,e._source==null||e._source.Log==null?null:e._source.Log.note),L)}}function Se(i,m){if(i&1){let e=w();o(0,"mainpanel-cmp",2),G("onSubmit",function(){c(e);let t=u();return _(t.initData())}),o(1,"filters"),F(2,he,7,4,"ng-template",null,0,j),r(),o(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr")(10,"th"),p(11,"Group"),r(),o(12,"th"),p(13,"Modified"),r(),o(14,"th"),p(15,"Modify By"),r(),o(16,"th"),p(17,"Note"),r()()(),o(18,"tbody"),V(19,xe,11,10,"tr",7,T),d(21,"async"),r()(),o(22,"div"),N(23),d(24,"async"),o(25,"mat-paginator",8),G("page",function(t){c(e);let a=u();return _(a.onPaginationChange(t))}),r()()()()()()}if(i&2){let e,n,t=u();s("pageData",t.menuData)("isFilterOnDropdown",!1)("hideSearchBox",!0),l(19),k((e=f(21,6,t.data$))==null||e.Data==null?null:e.Data.hits);let a=(n=f(24,8,t.data$))==null||n.Data==null||n.Data.hits==null?null:n.Data.hits.length;l(6),s("length",a)("pageSize",t.filter().RowCount)("pageIndex",t.filter().PageNumber==0?0:t.filter().PageNumber-1)}}var _e=class i extends pe{constructor(e,n){super(e);this.role=n;this.menuData$.pipe(re()).subscribe();let t=this.routeSnapshot.snapshot?.queryParams?.ID;h.IsNotEmpty(t)&&(this.filter.update(a=>S(x({},a),{GroupID:t})),this.initData())}httpService=v(ne);routeSnapshot=v(K);filter=D({PageNumber:1,RowCount:20,GroupID:h.GuidEmpty});options=D({Groups:[]});loader$=this.httpService.get(H.GroupHistoryLoader).pipe(R(e=>{this.options.set(e.Options),this.initData()}),b(1));data$;initData(){let e=h.IsNotEmpty(this.filter().GroupID)?this.filter().GroupID:h.GuidEmpty;this.data$=this.httpService.get(H.GroupHistoryData,[{key:"PageNumber",value:this.filter().PageNumber},{key:"RowCount",value:this.filter().RowCount},{key:"GroupID",value:e}]).pipe(b(1))}onPaginationChange(e){this.filter.update(n=>S(x({},n),{PageNumber:e.pageIndex+1})),this.initData()}static \u0275fac=function(n){return new(n||i)(M(me),M(oe))};static \u0275cmp=U({type:i,selectors:[["app-group-update-history"]],features:[B],decls:3,vars:3,consts:[["pageFilterTemplate",""],["searchBoxPlaceholder","Search Note...",3,"pageData","isFilterOnDropdown","hideSearchBox"],["searchBoxPlaceholder","Search Note...",3,"onSubmit","pageData","isFilterOnDropdown","hideSearchBox"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"border-bottom"],[3,"page","length","pageSize","pageIndex"],[1,"dialog-filter"],["bindLabel","Name","bindValue","ID","placeholder","Choose a group","appendTo","body",3,"ngModelChange","items","ngModel"],["type","text","autoNum","",1,"input-left","w-100","form-control","input-filter",3,"ngModelChange","max","ngModel"],[3,"routerLink","queryParams"],[3,"innerHtml"]],template:function(n,t){if(n&1&&(N(0),d(1,"async"),y(2,Se,26,10,"mainpanel-cmp",1)),n&2){let a=f(1,1,t.loader$);l(2),C(a?2:-1)}},dependencies:[J,ce,de,le,ae,X,Q,te,Y,Z,ee,se,ue,q,z,ie],encapsulation:2})};export{_e as GroupUpdateHistoryComponent};
1
+ import{a as ae,b as le}from"./chunk-I5W4NCFM.js";import"./chunk-MVUVDYGQ.js";import{a as ie}from"./chunk-LAZZHDUO.js";import"./chunk-WNZKCNMC.js";import"./chunk-6GLKD66N.js";import"./chunk-CBSYYTXQ.js";import{e as de,f as ce}from"./chunk-356KM5DR.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-IVJVUXLS.js";import{a as pe,b as me}from"./chunk-UQ5F3YKZ.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import{O as H}from"./chunk-T25N3EEG.js";import{d as ue,e as se}from"./chunk-7TBS7SPQ.js";import{a as re}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as te,c as Y,h as Z,o as ee}from"./chunk-RNLSEEMX.js";import"./chunk-U5LNORQV.js";import"./chunk-FO5ZTXDH.js";import{a as h,d as oe}from"./chunk-USJ6ILEE.js";import"./chunk-BJF3WGIP.js";import{$d as X,Ab as V,Bb as k,Bc as d,Ca as D,Cb as s,Cc as f,Db as o,Dc as A,Eb as r,Fb as O,Hc as j,Mb as w,Ob as G,Qa as L,Qb as u,Wd as K,Xa as l,Y as b,Zd as Q,db as M,dc as p,ec as g,ee as ne,fa as R,hb as U,ic as P,jc as I,kc as E,kd as q,lb as B,lc as N,md as z,nb as F,pa as v,rd as J,ta as c,tc as W,ua as _,uc as $,vb as y,xb as C,zb as T}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import{a as x,b as S}from"./chunk-SNAKHGZS.js";var ge=()=>["/menu/Users/User/Groups/Info"],fe=i=>({ID:i});function he(i,m){if(i&1){let e=w();o(0,"div",9)(1,"h6"),p(2,"Group"),r(),o(3,"ng-select",10),E("ngModelChange",function(t){c(e);let a=u(2);return I(a.filter().GroupID,t)||(a.filter().GroupID=t),_(t)}),r(),o(4,"h6"),p(5,"Row Count"),r(),o(6,"input",11),E("ngModelChange",function(t){c(e);let a=u(2);return I(a.filter().RowCount,t)||(a.filter().RowCount=t),_(t)}),r()()}if(i&2){let e=u(2);l(3),s("items",e.options().Groups),P("ngModel",e.filter().GroupID),l(3),s("max",1e4),P("ngModel",e.filter().RowCount)}}function ye(i,m){if(i&1&&(o(0,"a",12),p(1),r()),i&2){let e=u().$implicit;s("routerLink",W(3,ge))("queryParams",$(4,fe,e._source==null||e._source.Log==null?null:e._source.Log.id)),l(),g(e._source==null||e._source.Log==null?null:e._source.Log.name)}}function Ce(i,m){if(i&1&&(o(0,"span"),p(1),r()),i&2){let e=u().$implicit;l(),g(e._source==null||e._source.Log==null?null:e._source.Log.name)}}function xe(i,m){if(i&1&&(o(0,"tr",7)(1,"td"),y(2,ye,2,6,"a",12),y(3,Ce,2,1,"span"),r(),o(4,"td"),p(5),d(6,"date"),r(),o(7,"td"),p(8),r(),O(9,"td",13),d(10,"newlines"),r()),i&2){let e=m.$implicit,n=u(2);l(2),C(n.role.users.Edit?2:-1),l(),C(n.role.users.Edit?-1:3),l(2),g(A(6,5,e._source["@timestamp"],"dd MMM yyyy HH:mm")),l(3),g(e._source==null||e._source.Log==null?null:e._source.Log.creator),l(),s("innerHtml",f(10,8,e._source==null||e._source.Log==null?null:e._source.Log.note),L)}}function Se(i,m){if(i&1){let e=w();o(0,"mainpanel-cmp",2),G("onSubmit",function(){c(e);let t=u();return _(t.initData())}),o(1,"filters"),F(2,he,7,4,"ng-template",null,0,j),r(),o(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr")(10,"th"),p(11,"Group"),r(),o(12,"th"),p(13,"Modified"),r(),o(14,"th"),p(15,"Modify By"),r(),o(16,"th"),p(17,"Note"),r()()(),o(18,"tbody"),V(19,xe,11,10,"tr",7,T),d(21,"async"),r()(),o(22,"div"),N(23),d(24,"async"),o(25,"mat-paginator",8),G("page",function(t){c(e);let a=u();return _(a.onPaginationChange(t))}),r()()()()()()}if(i&2){let e,n,t=u();s("pageData",t.menuData)("isFilterOnDropdown",!1)("hideSearchBox",!0),l(19),k((e=f(21,6,t.data$))==null||e.Data==null?null:e.Data.hits);let a=(n=f(24,8,t.data$))==null||n.Data==null||n.Data.hits==null?null:n.Data.hits.length;l(6),s("length",a)("pageSize",t.filter().RowCount)("pageIndex",t.filter().PageNumber==0?0:t.filter().PageNumber-1)}}var _e=class i extends pe{constructor(e,n){super(e);this.role=n;this.menuData$.pipe(re()).subscribe();let t=this.routeSnapshot.snapshot?.queryParams?.ID;h.IsNotEmpty(t)&&(this.filter.update(a=>S(x({},a),{GroupID:t})),this.initData())}httpService=v(ne);routeSnapshot=v(K);filter=D({PageNumber:1,RowCount:20,GroupID:h.GuidEmpty});options=D({Groups:[]});loader$=this.httpService.get(H.GroupHistoryLoader).pipe(R(e=>{this.options.set(e.Options),this.initData()}),b(1));data$;initData(){let e=h.IsNotEmpty(this.filter().GroupID)?this.filter().GroupID:h.GuidEmpty;this.data$=this.httpService.get(H.GroupHistoryData,[{key:"PageNumber",value:this.filter().PageNumber},{key:"RowCount",value:this.filter().RowCount},{key:"GroupID",value:e}]).pipe(b(1))}onPaginationChange(e){this.filter.update(n=>S(x({},n),{PageNumber:e.pageIndex+1})),this.initData()}static \u0275fac=function(n){return new(n||i)(M(me),M(oe))};static \u0275cmp=U({type:i,selectors:[["app-group-update-history"]],features:[B],decls:3,vars:3,consts:[["pageFilterTemplate",""],["searchBoxPlaceholder","Search Note...",3,"pageData","isFilterOnDropdown","hideSearchBox"],["searchBoxPlaceholder","Search Note...",3,"onSubmit","pageData","isFilterOnDropdown","hideSearchBox"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"border-bottom"],[3,"page","length","pageSize","pageIndex"],[1,"dialog-filter"],["bindLabel","Name","bindValue","ID","placeholder","Choose a group","appendTo","body",3,"ngModelChange","items","ngModel"],["type","text","autoNum","",1,"input-left","w-100","form-control","input-filter",3,"ngModelChange","max","ngModel"],[3,"routerLink","queryParams"],[3,"innerHtml"]],template:function(n,t){if(n&1&&(N(0),d(1,"async"),y(2,Se,26,10,"mainpanel-cmp",1)),n&2){let a=f(1,1,t.loader$);l(2),C(a?2:-1)}},dependencies:[J,ce,de,le,ae,X,Q,te,Y,Z,ee,se,ue,q,z,ie],encapsulation:2})};export{_e as GroupUpdateHistoryComponent};
@@ -1 +1 @@
1
- import{a as V,b as W}from"./chunk-ZW5E2GIN.js";import{a as B}from"./chunk-QFWPOP7L.js";import{e as J,f as q}from"./chunk-YLLLGS4S.js";import"./chunk-3VKLSTEH.js";import{b as I}from"./chunk-HIQKF5X3.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import{b as E,c as P}from"./chunk-C4WJKF7R.js";import"./chunk-T25N3EEG.js";import"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import"./chunk-RNLSEEMX.js";import"./chunk-E7ISSVA3.js";import"./chunk-HVFAKTAO.js";import"./chunk-USJ6ILEE.js";import"./chunk-NETNL55X.js";import{Bc as d,Cb as r,Cc as D,Db as o,Dc as C,Eb as t,Fb as c,Mb as j,Ob as v,Qb as b,Wd as M,Xa as l,db as m,dc as a,ec as L,ee as T,fc as x,hb as f,lb as y,md as _,nd as k,od as w,rd as R,ta as u,ua as g,vb as h,xb as S}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function A(p,i){if(p&1){let e=j();o(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"h3"),a(8,"General"),t()(),o(9,"div",6)(10,"div",2)(11,"div",7),c(12,"floatinglabel",8),d(13,"date"),t(),o(14,"div",7),c(15,"floatinglabel",9),d(16,"number"),t()(),o(17,"div",2)(18,"div",7),c(19,"floatinglabel",10),t()()()()()(),o(20,"div",2)(21,"div",7)(22,"div",4)(23,"div",11)(24,"div",12)(25,"h3"),a(26,"Request"),t()(),o(27,"div",13)(28,"button",14),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null?null:n.jobLogsDetail.log.req,"Request"))}),a(29,"Copy Request to Clipboard"),t()()(),o(30,"div",6)(31,"pre",15),a(32),d(33,"json"),t()()()(),o(34,"div",7)(35,"div",4)(36,"div",11)(37,"div",12)(38,"h3"),a(39,"Response"),t()(),o(40,"div",13)(41,"button",16),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null||n.jobLogsDetail.log==null?null:n.jobLogsDetail.log.res,"Response"))}),a(42,"Copy Response to Clipboard"),t()()(),o(43,"div",6)(44,"pre",17),a(45),d(46,"json"),t()()()()()()()()}if(p&2){let e=b();r("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(12),r("model",C(13,10,e.jobLogsDetail["@timestamp_received"],"dd MMM yyyy")),l(3),r("model",C(16,13,e.jobLogsDetail==null?null:e.jobLogsDetail.DurationInSecond,"1.1-1")+" s"),l(4),r("model",e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.respCode),l(9),r("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),L(D(33,16,e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.req)),l(9),r("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),x('"',D(46,18,e.jobLogsDetail==null?null:e.jobLogsDetail.log.res),'"')}}var F=class p extends B{jobLogsDetail;copyStatus;msgCopyClipboard;constructor(i,e,s){super(i,e,"Developer/DeveloperSpace/Webhook/JobLogDetail",s)}postBindForm(i){this.jobLogsDetail=i?.hits[0]?._source,this.jobLogsDetail&&(this.jobLogsDetail.DurationInSecond=parseInt(this.jobLogsDetail?.Duration)/1e3)}copyClipboard(i,e){this.copyStatus=!0,this.msgCopyClipboard=e+" has been coppied to clipboard!",navigator.clipboard.writeText(JSON.stringify(i)),setTimeout(()=>{this.copyStatus=!1},3e3)}static \u0275fac=function(e){return new(e||p)(m(I),m(T),m(M))};static \u0275cmp=f({type:p,selectors:[["app-webhook-job-logs-detail"]],features:[y],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],["id","webhook-logs",1,"container-fluid","pt-5"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-sm-6"],["label","Created",3,"model"],["label","Duration",3,"model"],["label","Response Code",3,"model"],[1,"card-header","d-lg-flex"],[1,"me-auto","mt-5"],[1,"d-sm-block","mt-2"],["id","btnCopyRequest","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","requestValue",2,"font-size","13px"],["id","btnCopyResponse","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","responseValue",2,"font-size","13px"]],template:function(e,s){e&1&&h(0,A,47,20,"mainpanel-cmp",0),e&2&&S(s.jobLogsDetail?0:-1)},dependencies:[R,q,J,W,V,P,E,k,w,_],encapsulation:2})};export{F as WebhookJobLogsDetailComponent};
1
+ import{a as V,b as W}from"./chunk-ZW5E2GIN.js";import{a as B}from"./chunk-R36QPCUA.js";import{e as J,f as q}from"./chunk-356KM5DR.js";import"./chunk-IVJVUXLS.js";import{b as I}from"./chunk-UQ5F3YKZ.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import{b as E,c as P}from"./chunk-C4WJKF7R.js";import"./chunk-T25N3EEG.js";import"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import"./chunk-RNLSEEMX.js";import"./chunk-U5LNORQV.js";import"./chunk-FO5ZTXDH.js";import"./chunk-USJ6ILEE.js";import"./chunk-BJF3WGIP.js";import{Bc as d,Cb as r,Cc as D,Db as o,Dc as C,Eb as t,Fb as c,Mb as j,Ob as v,Qb as b,Wd as M,Xa as l,db as m,dc as a,ec as L,ee as T,fc as x,hb as f,lb as y,md as _,nd as k,od as w,rd as R,ta as u,ua as g,vb as h,xb as S}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function A(p,i){if(p&1){let e=j();o(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"h3"),a(8,"General"),t()(),o(9,"div",6)(10,"div",2)(11,"div",7),c(12,"floatinglabel",8),d(13,"date"),t(),o(14,"div",7),c(15,"floatinglabel",9),d(16,"number"),t()(),o(17,"div",2)(18,"div",7),c(19,"floatinglabel",10),t()()()()()(),o(20,"div",2)(21,"div",7)(22,"div",4)(23,"div",11)(24,"div",12)(25,"h3"),a(26,"Request"),t()(),o(27,"div",13)(28,"button",14),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null?null:n.jobLogsDetail.log.req,"Request"))}),a(29,"Copy Request to Clipboard"),t()()(),o(30,"div",6)(31,"pre",15),a(32),d(33,"json"),t()()()(),o(34,"div",7)(35,"div",4)(36,"div",11)(37,"div",12)(38,"h3"),a(39,"Response"),t()(),o(40,"div",13)(41,"button",16),v("click",function(){u(e);let n=b();return g(n.copyClipboard(n.jobLogsDetail==null||n.jobLogsDetail.log==null?null:n.jobLogsDetail.log.res,"Response"))}),a(42,"Copy Response to Clipboard"),t()()(),o(43,"div",6)(44,"pre",17),a(45),d(46,"json"),t()()()()()()()()}if(p&2){let e=b();r("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),l(12),r("model",C(13,10,e.jobLogsDetail["@timestamp_received"],"dd MMM yyyy")),l(3),r("model",C(16,13,e.jobLogsDetail==null?null:e.jobLogsDetail.DurationInSecond,"1.1-1")+" s"),l(4),r("model",e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.respCode),l(9),r("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),L(D(33,16,e.jobLogsDetail==null||e.jobLogsDetail.log==null?null:e.jobLogsDetail.log.req)),l(9),r("matTooltip",e.copyStatus?e.msgCopyClipboard:"Copy to clipboard"),l(4),x('"',D(46,18,e.jobLogsDetail==null?null:e.jobLogsDetail.log.res),'"')}}var F=class p extends B{jobLogsDetail;copyStatus;msgCopyClipboard;constructor(i,e,s){super(i,e,"Developer/DeveloperSpace/Webhook/JobLogDetail",s)}postBindForm(i){this.jobLogsDetail=i?.hits[0]?._source,this.jobLogsDetail&&(this.jobLogsDetail.DurationInSecond=parseInt(this.jobLogsDetail?.Duration)/1e3)}copyClipboard(i,e){this.copyStatus=!0,this.msgCopyClipboard=e+" has been coppied to clipboard!",navigator.clipboard.writeText(JSON.stringify(i)),setTimeout(()=>{this.copyStatus=!1},3e3)}static \u0275fac=function(e){return new(e||p)(m(I),m(T),m(M))};static \u0275cmp=f({type:p,selectors:[["app-webhook-job-logs-detail"]],features:[y],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],["id","webhook-logs",1,"container-fluid","pt-5"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-sm-6"],["label","Created",3,"model"],["label","Duration",3,"model"],["label","Response Code",3,"model"],[1,"card-header","d-lg-flex"],[1,"me-auto","mt-5"],[1,"d-sm-block","mt-2"],["id","btnCopyRequest","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","requestValue",2,"font-size","13px"],["id","btnCopyResponse","matTooltipPosition","above",1,"btn","btn-secondary","btn-sm",3,"click","matTooltip"],["id","responseValue",2,"font-size","13px"]],template:function(e,s){e&1&&h(0,A,47,20,"mainpanel-cmp",0),e&2&&S(s.jobLogsDetail?0:-1)},dependencies:[R,q,J,W,V,P,E,k,w,_],encapsulation:2})};export{F as WebhookJobLogsDetailComponent};
@@ -1 +1 @@
1
- import{c as W,d as X}from"./chunk-4KLLS7S5.js";import{a as Y,b as Z}from"./chunk-QFON23YX.js";import{b as Q,c as U}from"./chunk-C4WJKF7R.js";import{a as B}from"./chunk-RLQLFW36.js";import{oa as K}from"./chunk-O5SLP4JK.js";import{F as J,h as q,o as G}from"./chunk-RNLSEEMX.js";import{a as d}from"./chunk-USJ6ILEE.js";import{Bc as k,Cb as l,Cc as F,Db as c,Eb as m,Hc as N,Lb as L,Mb as j,Ob as E,Qb as n,Xa as _,Y as f,Ya as M,_b as I,ca as S,d as x,db as b,dc as v,ee as C,fa as T,fc as R,ga as u,hb as $,jd as P,kd as z,la as w,nb as a,o as h,oa as O,pa as D,rd as A,ta as p,ua as g,vb as H,xb as V}from"./chunk-JYZTRN6N.js";var y=class o{signalRClient=D(B);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):h(e),[]),f(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):h(e),[]),f(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(C))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function re(o,t){o&1&&L(0)}function ne(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,re,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ae(o,t){o&1&&L(0)}function le(o,t){if(o&1&&a(0,ae,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function ce(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),R(" ",e.selectedCategoryLabel," ")}}function se(o,t){if(o&1){let e=j();c(0,"p-treeSelect",4),k(1,"async"),E("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,ce,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",F(1,4,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)("placeholder",e.placeholder)}}var ee=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;placeholder="Select Storage Location";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&&(d.IsEmpty(this.selectedCategoryID)&&d.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=this.placeholder}findSelectedCategory(t,e){if(d.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(C),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",placeholder:"placeholder",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",3,"click","ngModelChange","onClear","options","ngModel","showClear","placeholder"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&(H(0,ne,4,1,"p-floatLabel",1)(1,le,1,1,"ng-container"),a(2,se,3,6,"ng-template",null,0,N)),e&2&&V(i.showLabel?0:1)},dependencies:[A,P,U,Q,X,W,K,J,q,G,Z,Y,z],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{ee as a};
1
+ import{c as W,d as X}from"./chunk-6EJSHQWL.js";import{a as Y,b as Z}from"./chunk-QFON23YX.js";import{b as Q,c as U}from"./chunk-C4WJKF7R.js";import{a as B}from"./chunk-RLQLFW36.js";import{oa as K}from"./chunk-O5SLP4JK.js";import{F as J,h as q,o as G}from"./chunk-RNLSEEMX.js";import{a as d}from"./chunk-USJ6ILEE.js";import{Bc as k,Cb as l,Cc as F,Db as c,Eb as m,Hc as N,Lb as L,Mb as j,Ob as E,Qb as n,Xa as _,Y as f,Ya as M,_b as I,ca as S,d as x,db as b,dc as v,ee as C,fa as T,fc as R,ga as u,hb as $,jd as P,kd as z,la as w,nb as a,o as h,oa as O,pa as D,rd as A,ta as p,ua as g,vb as H,xb as V}from"./chunk-JYZTRN6N.js";var y=class o{signalRClient=D(B);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):h(e),[]),f(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):h(e),[]),f(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(C))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function re(o,t){o&1&&L(0)}function ne(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,re,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ae(o,t){o&1&&L(0)}function le(o,t){if(o&1&&a(0,ae,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function ce(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),R(" ",e.selectedCategoryLabel," ")}}function se(o,t){if(o&1){let e=j();c(0,"p-treeSelect",4),k(1,"async"),E("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,ce,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",F(1,4,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)("placeholder",e.placeholder)}}var ee=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;placeholder="Select Storage Location";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&&(d.IsEmpty(this.selectedCategoryID)&&d.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=this.placeholder}findSelectedCategory(t,e){if(d.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(C),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",placeholder:"placeholder",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",3,"click","ngModelChange","onClear","options","ngModel","showClear","placeholder"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&(H(0,ne,4,1,"p-floatLabel",1)(1,le,1,1,"ng-container"),a(2,se,3,6,"ng-template",null,0,N)),e&2&&V(i.showLabel?0:1)},dependencies:[A,P,U,Q,X,W,K,J,q,G,Z,Y,z],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{ee as a};
@@ -1 +1 @@
1
- import{b as X}from"./chunk-I5W4NCFM.js";import"./chunk-MVUVDYGQ.js";import{d as se,e as ge}from"./chunk-QPOOLLKY.js";import"./chunk-CSFFF2YO.js";import"./chunk-3RK6DDJD.js";import"./chunk-WNZKCNMC.js";import"./chunk-LOD3JYZW.js";import"./chunk-3KSZCJ6T.js";import"./chunk-6GLKD66N.js";import"./chunk-CBSYYTXQ.js";import"./chunk-G4IW5GPY.js";import{a as me,b as ce}from"./chunk-I3ABVEQL.js";import{b as ie}from"./chunk-T2H2XAEJ.js";import{a as Z}from"./chunk-LVC4ZU2C.js";import"./chunk-7DCWSNUN.js";import{a as ae}from"./chunk-4QM23MMO.js";import{e as pe,f as le}from"./chunk-YLLLGS4S.js";import"./chunk-VX5HH3BW.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-KKLNFVVN.js";import"./chunk-3VKLSTEH.js";import{b as ne}from"./chunk-HIQKF5X3.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import{G as oe,N as re}from"./chunk-T25N3EEG.js";import{d as ee,e as te}from"./chunk-7TBS7SPQ.js";import{g as $}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as Y,h as K,o as U}from"./chunk-RNLSEEMX.js";import"./chunk-E7ISSVA3.js";import"./chunk-HVFAKTAO.js";import{d as Q}from"./chunk-USJ6ILEE.js";import"./chunk-NETNL55X.js";import{$d as J,Ab as L,Bb as A,Bc as b,Cb as c,Db as n,Dc as v,Eb as i,Ed as R,Fb as F,Hc as j,Jb as y,Kb as h,Mb as D,Ob as I,Qb as m,Vc as B,Xa as p,Zd as H,be as q,db as C,dc as l,ec as f,ee as z,fc as W,fd as N,hb as E,ic as _,jc as d,kc as u,lb as P,nb as x,pa as w,rd as G,ta as s,tc as k,ua as g,uc as O,yb as V}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import{a as T,b as M}from"./chunk-SNAKHGZS.js";var ue=()=>["/menu/Contacts/Contact/Customers/Info"],Se=o=>({ID:o});function Ce(o,S){if(o&1){let e=D();n(0,"button",9),I("click",function(){s(e);let t=m(2);return g(t.openExportModal())}),F(1,"i",10),l(2," Export "),i()}}function xe(o,S){if(o&1){let e=D();n(0,"div")(1,"div",11)(2,"h6"),l(3,"Status"),i(),n(4,"ng-select",12),u("ngModelChange",function(t){s(e);let a=m(2);return d(a.contactState,t)||(a.contactState=t),g(t)}),i(),n(5,"h6"),l(6,"Outlet Sign Up"),i(),n(7,"ng-select",13),u("ngModelChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.CreatorEntityID,t)||(a.pageData.Filter.CreatorEntityID=t),g(t)}),i(),n(8,"h6"),l(9,"Group"),i(),n(10,"ng-select",14),u("ngModelChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.GroupID,t)||(a.pageData.Filter.GroupID=t),g(t)}),i(),n(11,"h6"),l(12,"Join Date Range"),i(),n(13,"div")(14,"datepicker",15),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.From,t)||(a.pageData.Filter.From=t),g(t)}),i()(),n(15,"div",16)(16,"datepicker",17),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.To,t)||(a.pageData.Filter.To=t),g(t)}),i()(),n(17,"h6"),l(18,"Sign In Date Range"),i(),n(19,"div")(20,"datepicker",15),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.SignFrom,t)||(a.pageData.Filter.SignFrom=t),g(t)}),i()(),n(21,"div",16)(22,"datepicker",17),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.SignTo,t)||(a.pageData.Filter.SignTo=t),g(t)}),i()()()()}if(o&2){let e=m(2);p(4),_("ngModel",e.contactState),c("items",e.pageData.Options.ContactStates)("clearable",!1),p(3),_("ngModel",e.pageData.Filter.CreatorEntityID),c("items",e.pageData.Options.Entities),p(3),_("ngModel",e.pageData.Filter.GroupID),c("items",e.pageData.Options.Groups),p(4),c("isFloatingLabel",!1),_("date",e.pageData.Filter.From),p(2),c("isFloatingLabel",!1),_("date",e.pageData.Filter.To),p(4),c("isFloatingLabel",!1),_("date",e.pageData.Filter.SignFrom),p(2),c("isFloatingLabel",!1),_("date",e.pageData.Filter.SignTo)}}function fe(o,S){if(o&1&&(n(0,"tr")(1,"th")(2,"a",28),l(3),i()(),n(4,"td"),l(5),i(),n(6,"td"),l(7),i(),n(8,"td"),l(9),i(),n(10,"td"),l(11),b(12,"IsMinDate"),i(),n(13,"td"),l(14),b(15,"IsMinDate"),i()()),o&2){let e=S.$implicit;p(2),c("routerLink",k(14,ue))("queryParams",O(15,Se,e.ID)),p(),f(e.Name),p(2),f(e.Code),p(2),f(e.Mobile),p(2),f(e.Email),p(2),f(v(12,8,e.JoinDate,"dd MMM yyyy")),p(3),W(" ",v(15,11,e.AppLastSignIn,"dd MMM yyyy HH:mm")," ")}}function De(o,S){if(o&1){let e=D();n(0,"div",29)(1,"POS-complex-pagination",30),I("jumpToPage",function(){s(e);let t=m(3);return g(t.getListData())})("previousPage",function(){s(e);let t=m(3);return g(t.getListData())})("nextPage",function(){s(e);let t=m(3);return g(t.getListData())}),i()()}if(o&2){let e=m(3);p(),c("total",e.data.Data.length)("pageData",e.pageData)}}function ye(o,S){if(o&1&&(y(0,18),n(1,"div",19)(2,"div",20)(3,"table",21)(4,"thead",22)(5,"tr",23)(6,"th"),l(7,"Name"),i(),n(8,"th",24),l(9,"Code"),i(),n(10,"th",24),l(11,"Mobile"),i(),n(12,"th",25),l(13,"Email"),i(),n(14,"th",26),l(15,"Join Date"),i(),n(16,"th",24),l(17,"Last Sign In"),i()()(),n(18,"tbody"),L(19,fe,16,17,"tr",null,V),i()()(),x(21,De,2,2,"div",27),i(),h()),o&2){let e=m(2);p(19),A(e.data.Data),p(2),c("ngIf",e.pageData.Filter)}}function he(o,S){if(o&1){let e=D();n(0,"mainpanel-cmp",2),u("textChange",function(t){s(e);let a=m();return d(a.pageData.Filter.Text,t)||(a.pageData.Filter.Text=t),g(t)}),I("onSubmit",function(){s(e);let t=m();return g(t.searchFromPageOne())}),u("filterChange",function(t){s(e);let a=m();return d(a.pageData.Filter,t)||(a.pageData.Filter=t),g(t)}),y(1,3),n(2,"a",4),F(3,"i",5),l(4,"Get Your Brand Loyalty App "),i(),x(5,Ce,3,0,"button",6),h(),y(6,7),x(7,xe,23,15,"ng-template",null,0,j),h(),x(9,ye,22,1,"ng-container",8),i()}if(o&2){let e=m();c("pageData",e.menuData),_("text",e.pageData.Filter.Text),c("isFilterOnDropdown",!1),_("filter",e.pageData.Filter),p(5),c("ngIf",e.role.global.Export),p(4),c("ngIf",e.data&&e.data.Data)}}var _e=class o extends Z{constructor(e,r,t,a,de,Ie){super(e,r,"Contact/CustomerAppSignInList","ContactLoader/CustomerList",de);this.httpService=r;this.csvConverter=t;this.matDialog=a;this.role=Ie}cdr=w(B);title=w(R);contactState;ngOnInit(){let e=JSON.parse(localStorage.getItem("AccountInfo"));this.title.setTitle(e.BrandName+" POS | App Sign In")}postInit(e){this.menuData.H="App Sign In",this.cdr.markForCheck()}preInitList(){this.contactState=this.pageData.Filter.ContactStateID,this.pageData.Options.ContactStates=[{Key:0,Value:"All"},...this.pageData.Options.ContactStates],this.pageData.Filter=M(T({},this.pageData.Filter),{SignFrom:this.pageData.Filter.SignFrom?this.pageData.Filter.SignFrom:"0001-01-01T00:00:00",SignTo:this.pageData.Filter.SignTo?this.pageData.Filter.SignTo:"0001-01-01T00:00:00"})}openExportModal(){this.matDialog.open(ie,{data:{title:"Loyalty App Last Sign In",exportTypes:[{ID:"ContactExport/LoyaltyLastSignIn",Value:"Default",FileName:"LoyaltyAppLastSignIn"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}preGetList(){this.pageData.Filter.ContactStateID=this.contactState==0?null:this.contactState}static \u0275fac=function(r){return new(r||o)(C(ne),C(z),C(ae),C($),C(q),C(Q))};static \u0275cmp=E({type:o,selectors:[["pos-app-sign-in"]],features:[P],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","text","isFilterOnDropdown","filter","textChange","onSubmit","filterChange",4,"ngIf"],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["ngProjectAs","actions",5,["actions"]],["target","_blank","href","https://www.dealpos.co.id/tour/customer-loyalty-program",1,"btn","btn-outline-secondary"],[1,"fa-solid","fa-mobile","me-1"],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"],4,"ngIf"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose Status",3,"ngModelChange","ngModel","items","clearable"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose an Outlet...",3,"ngModelChange","ngModel","items"],["bindLabel","Name","bindValue","ID","placeholder","Choose a Group...",3,"ngModelChange","ngModel","items"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date"],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","150px"],[2,"width","200px"],[2,"width","100px"],["class","mt-2",4,"ngIf"],[1,"fw-normal",3,"routerLink","queryParams"],[1,"mt-2"],["api","Contact/CustomerAppSignInCount",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(r,t){r&1&&x(0,he,10,6,"mainpanel-cmp",1),r&2&&c("ngIf",t.pageData.Filter)},dependencies:[G,N,le,pe,ge,se,Y,K,U,J,H,X,te,ee,ce,me,re,oe],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{_e as AppSignInComponent};
1
+ import{b as X}from"./chunk-I5W4NCFM.js";import"./chunk-MVUVDYGQ.js";import{d as se,e as ge}from"./chunk-QPOOLLKY.js";import"./chunk-CSFFF2YO.js";import"./chunk-3RK6DDJD.js";import"./chunk-WNZKCNMC.js";import"./chunk-LOD3JYZW.js";import"./chunk-3KSZCJ6T.js";import"./chunk-6GLKD66N.js";import"./chunk-CBSYYTXQ.js";import"./chunk-G4IW5GPY.js";import{a as me,b as ce}from"./chunk-I3ABVEQL.js";import{b as ie}from"./chunk-T2H2XAEJ.js";import{a as Z}from"./chunk-OWGJVIYJ.js";import"./chunk-DV63TLIP.js";import{a as ae}from"./chunk-4QM23MMO.js";import{e as pe,f as le}from"./chunk-356KM5DR.js";import"./chunk-VX5HH3BW.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-KKLNFVVN.js";import"./chunk-IVJVUXLS.js";import{b as ne}from"./chunk-UQ5F3YKZ.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import{G as oe,N as re}from"./chunk-T25N3EEG.js";import{d as ee,e as te}from"./chunk-7TBS7SPQ.js";import{g as $}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as Y,h as K,o as U}from"./chunk-RNLSEEMX.js";import"./chunk-U5LNORQV.js";import"./chunk-FO5ZTXDH.js";import{d as Q}from"./chunk-USJ6ILEE.js";import"./chunk-BJF3WGIP.js";import{$d as J,Ab as L,Bb as A,Bc as b,Cb as c,Db as n,Dc as v,Eb as i,Ed as R,Fb as F,Hc as j,Jb as y,Kb as h,Mb as D,Ob as I,Qb as m,Vc as B,Xa as p,Zd as H,be as q,db as C,dc as l,ec as f,ee as z,fc as W,fd as N,hb as E,ic as _,jc as d,kc as u,lb as P,nb as x,pa as w,rd as G,ta as s,tc as k,ua as g,uc as O,yb as V}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import{a as T,b as M}from"./chunk-SNAKHGZS.js";var ue=()=>["/menu/Contacts/Contact/Customers/Info"],Se=o=>({ID:o});function Ce(o,S){if(o&1){let e=D();n(0,"button",9),I("click",function(){s(e);let t=m(2);return g(t.openExportModal())}),F(1,"i",10),l(2," Export "),i()}}function xe(o,S){if(o&1){let e=D();n(0,"div")(1,"div",11)(2,"h6"),l(3,"Status"),i(),n(4,"ng-select",12),u("ngModelChange",function(t){s(e);let a=m(2);return d(a.contactState,t)||(a.contactState=t),g(t)}),i(),n(5,"h6"),l(6,"Outlet Sign Up"),i(),n(7,"ng-select",13),u("ngModelChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.CreatorEntityID,t)||(a.pageData.Filter.CreatorEntityID=t),g(t)}),i(),n(8,"h6"),l(9,"Group"),i(),n(10,"ng-select",14),u("ngModelChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.GroupID,t)||(a.pageData.Filter.GroupID=t),g(t)}),i(),n(11,"h6"),l(12,"Join Date Range"),i(),n(13,"div")(14,"datepicker",15),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.From,t)||(a.pageData.Filter.From=t),g(t)}),i()(),n(15,"div",16)(16,"datepicker",17),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.To,t)||(a.pageData.Filter.To=t),g(t)}),i()(),n(17,"h6"),l(18,"Sign In Date Range"),i(),n(19,"div")(20,"datepicker",15),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.SignFrom,t)||(a.pageData.Filter.SignFrom=t),g(t)}),i()(),n(21,"div",16)(22,"datepicker",17),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.SignTo,t)||(a.pageData.Filter.SignTo=t),g(t)}),i()()()()}if(o&2){let e=m(2);p(4),_("ngModel",e.contactState),c("items",e.pageData.Options.ContactStates)("clearable",!1),p(3),_("ngModel",e.pageData.Filter.CreatorEntityID),c("items",e.pageData.Options.Entities),p(3),_("ngModel",e.pageData.Filter.GroupID),c("items",e.pageData.Options.Groups),p(4),c("isFloatingLabel",!1),_("date",e.pageData.Filter.From),p(2),c("isFloatingLabel",!1),_("date",e.pageData.Filter.To),p(4),c("isFloatingLabel",!1),_("date",e.pageData.Filter.SignFrom),p(2),c("isFloatingLabel",!1),_("date",e.pageData.Filter.SignTo)}}function fe(o,S){if(o&1&&(n(0,"tr")(1,"th")(2,"a",28),l(3),i()(),n(4,"td"),l(5),i(),n(6,"td"),l(7),i(),n(8,"td"),l(9),i(),n(10,"td"),l(11),b(12,"IsMinDate"),i(),n(13,"td"),l(14),b(15,"IsMinDate"),i()()),o&2){let e=S.$implicit;p(2),c("routerLink",k(14,ue))("queryParams",O(15,Se,e.ID)),p(),f(e.Name),p(2),f(e.Code),p(2),f(e.Mobile),p(2),f(e.Email),p(2),f(v(12,8,e.JoinDate,"dd MMM yyyy")),p(3),W(" ",v(15,11,e.AppLastSignIn,"dd MMM yyyy HH:mm")," ")}}function De(o,S){if(o&1){let e=D();n(0,"div",29)(1,"POS-complex-pagination",30),I("jumpToPage",function(){s(e);let t=m(3);return g(t.getListData())})("previousPage",function(){s(e);let t=m(3);return g(t.getListData())})("nextPage",function(){s(e);let t=m(3);return g(t.getListData())}),i()()}if(o&2){let e=m(3);p(),c("total",e.data.Data.length)("pageData",e.pageData)}}function ye(o,S){if(o&1&&(y(0,18),n(1,"div",19)(2,"div",20)(3,"table",21)(4,"thead",22)(5,"tr",23)(6,"th"),l(7,"Name"),i(),n(8,"th",24),l(9,"Code"),i(),n(10,"th",24),l(11,"Mobile"),i(),n(12,"th",25),l(13,"Email"),i(),n(14,"th",26),l(15,"Join Date"),i(),n(16,"th",24),l(17,"Last Sign In"),i()()(),n(18,"tbody"),L(19,fe,16,17,"tr",null,V),i()()(),x(21,De,2,2,"div",27),i(),h()),o&2){let e=m(2);p(19),A(e.data.Data),p(2),c("ngIf",e.pageData.Filter)}}function he(o,S){if(o&1){let e=D();n(0,"mainpanel-cmp",2),u("textChange",function(t){s(e);let a=m();return d(a.pageData.Filter.Text,t)||(a.pageData.Filter.Text=t),g(t)}),I("onSubmit",function(){s(e);let t=m();return g(t.searchFromPageOne())}),u("filterChange",function(t){s(e);let a=m();return d(a.pageData.Filter,t)||(a.pageData.Filter=t),g(t)}),y(1,3),n(2,"a",4),F(3,"i",5),l(4,"Get Your Brand Loyalty App "),i(),x(5,Ce,3,0,"button",6),h(),y(6,7),x(7,xe,23,15,"ng-template",null,0,j),h(),x(9,ye,22,1,"ng-container",8),i()}if(o&2){let e=m();c("pageData",e.menuData),_("text",e.pageData.Filter.Text),c("isFilterOnDropdown",!1),_("filter",e.pageData.Filter),p(5),c("ngIf",e.role.global.Export),p(4),c("ngIf",e.data&&e.data.Data)}}var _e=class o extends Z{constructor(e,r,t,a,de,Ie){super(e,r,"Contact/CustomerAppSignInList","ContactLoader/CustomerList",de);this.httpService=r;this.csvConverter=t;this.matDialog=a;this.role=Ie}cdr=w(B);title=w(R);contactState;ngOnInit(){let e=JSON.parse(localStorage.getItem("AccountInfo"));this.title.setTitle(e.BrandName+" POS | App Sign In")}postInit(e){this.menuData.H="App Sign In",this.cdr.markForCheck()}preInitList(){this.contactState=this.pageData.Filter.ContactStateID,this.pageData.Options.ContactStates=[{Key:0,Value:"All"},...this.pageData.Options.ContactStates],this.pageData.Filter=M(T({},this.pageData.Filter),{SignFrom:this.pageData.Filter.SignFrom?this.pageData.Filter.SignFrom:"0001-01-01T00:00:00",SignTo:this.pageData.Filter.SignTo?this.pageData.Filter.SignTo:"0001-01-01T00:00:00"})}openExportModal(){this.matDialog.open(ie,{data:{title:"Loyalty App Last Sign In",exportTypes:[{ID:"ContactExport/LoyaltyLastSignIn",Value:"Default",FileName:"LoyaltyAppLastSignIn"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}preGetList(){this.pageData.Filter.ContactStateID=this.contactState==0?null:this.contactState}static \u0275fac=function(r){return new(r||o)(C(ne),C(z),C(ae),C($),C(q),C(Q))};static \u0275cmp=E({type:o,selectors:[["pos-app-sign-in"]],features:[P],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","text","isFilterOnDropdown","filter","textChange","onSubmit","filterChange",4,"ngIf"],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["ngProjectAs","actions",5,["actions"]],["target","_blank","href","https://www.dealpos.co.id/tour/customer-loyalty-program",1,"btn","btn-outline-secondary"],[1,"fa-solid","fa-mobile","me-1"],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"],4,"ngIf"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose Status",3,"ngModelChange","ngModel","items","clearable"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose an Outlet...",3,"ngModelChange","ngModel","items"],["bindLabel","Name","bindValue","ID","placeholder","Choose a Group...",3,"ngModelChange","ngModel","items"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date"],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","150px"],[2,"width","200px"],[2,"width","100px"],["class","mt-2",4,"ngIf"],[1,"fw-normal",3,"routerLink","queryParams"],[1,"mt-2"],["api","Contact/CustomerAppSignInCount",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(r,t){r&1&&x(0,he,10,6,"mainpanel-cmp",1),r&2&&c("ngIf",t.pageData.Filter)},dependencies:[G,N,le,pe,ge,se,Y,K,U,J,H,X,te,ee,ce,me,re,oe],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{_e as AppSignInComponent};
@@ -1 +1 @@
1
- import{a as z}from"./chunk-HL3ONSX6.js";import{d as $,e as tt}from"./chunk-GN3HVOCN.js";import"./chunk-G4IW5GPY.js";import{a as k,b as G,c as A}from"./chunk-AEXXXOEQ.js";import{a as ot,b as nt}from"./chunk-I3ABVEQL.js";import{f as et}from"./chunk-4KLLS7S5.js";import{c as it}from"./chunk-EHJXCRPX.js";import{b as Q}from"./chunk-T2H2XAEJ.js";import{a as q}from"./chunk-LVC4ZU2C.js";import"./chunk-7DCWSNUN.js";import"./chunk-QFON23YX.js";import"./chunk-FIUZN6JU.js";import{e as Y,f as Z}from"./chunk-YLLLGS4S.js";import"./chunk-S3K63CGI.js";import"./chunk-JEL3OND6.js";import"./chunk-IDQUQBKL.js";import"./chunk-VX5HH3BW.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-KKLNFVVN.js";import"./chunk-X57HWGVJ.js";import"./chunk-5SFUSWFY.js";import"./chunk-534MIVWD.js";import"./chunk-TGEQUV6Z.js";import"./chunk-3VKLSTEH.js";import{b as K}from"./chunk-HIQKF5X3.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import{N as X,g as U}from"./chunk-T25N3EEG.js";import"./chunk-7TBS7SPQ.js";import"./chunk-RLQLFW36.js";import"./chunk-EQLHPWVB.js";import{g as J}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-6SGN7MNX.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as W,h as B,o as R}from"./chunk-RNLSEEMX.js";import"./chunk-E7ISSVA3.js";import"./chunk-HVFAKTAO.js";import{d as H}from"./chunk-USJ6ILEE.js";import"./chunk-NETNL55X.js";import{Ab as T,Bb as V,Bc as y,Cb as s,Cc as L,Db as i,Dc as F,Eb as o,Fb as v,Hc as N,Mb as _,Ob as S,Qb as m,Xa as p,db as u,dc as l,ec as w,ee as j,fc as P,hb as b,ic as C,jc as x,kc as f,lb as I,nb as M,ta as c,ua as d,vb as D,xb as h,yb as O}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function rt(r,g){if(r&1){let t=_();i(0,"button",5),S("click",function(){c(t);let e=m();return d(e.openExportModal())}),v(1,"i",6),l(2," Export "),o()}}function lt(r,g){if(r&1){let t=_();i(0,"h6"),l(1,"Outlet"),o(),i(2,"outlet-selector",7),f("ngModelChange",function(e){c(t);let a=m();return x(a.pageData.Filter.Outlet,e)||(a.pageData.Filter.Outlet=e),d(e)}),o(),i(3,"h6"),l(4,"Category"),o(),i(5,"POS-product-category-select",8),f("selectedCategoryIDChange",function(e){c(t);let a=m();return x(a.pageData.Filter.Category,e)||(a.pageData.Filter.Category=e),d(e)}),o(),i(6,"h6"),l(7,"Discontinued"),o(),i(8,"radio-options",9),f("modelChange",function(e){c(t);let a=m();return x(a.pageData.Filter.Discontinued,e)||(a.pageData.Filter.Discontinued=e),d(e)}),o()}if(r&2){let t=m();p(2),s("accessType",2),C("ngModel",t.pageData.Filter.Outlet),p(3),C("selectedCategoryID",t.pageData.Filter.Category),s("showClear",!0),p(3),s("options",t.pageData==null||t.pageData.Options==null?null:t.pageData.Options.Discontinued),C("model",t.pageData.Filter.Discontinued)}}function pt(r,g){if(r&1&&(i(0,"tr")(1,"td"),l(2),o(),i(3,"td"),l(4),o(),i(5,"td",19),l(6),y(7,"quantityFraction"),o()()),r&2){let t=g.$implicit;p(2),w(t.EntityName),p(2),w(t.Name),p(2),P(" ",L(7,3,t.Inventory)," ")}}function mt(r,g){if(r&1){let t=_();i(0,"div",4)(1,"div",10)(2,"table",11),S("matSortChange",function(e){c(t);let a=m();return d(a.onSortData(e))}),i(3,"thead",12)(4,"tr",13)(5,"th",14),l(6,"Outlet"),o(),i(7,"th",15),l(8,"Storage Location"),o(),i(9,"th",16),l(10," On Hand "),o()()(),i(11,"tbody"),T(12,pt,8,5,"tr",null,O),o(),i(14,"tfoot")(15,"tr",17),v(16,"td",18),i(17,"td",18),l(18,"Total :"),o(),i(19,"td",19),l(20),y(21,"sum"),y(22,"quantityFraction"),o()()()(),i(23,"POS-complex-pagination",20),S("jumpToPage",function(){c(t);let e=m();return d(e.getListData())})("previousPage",function(){c(t);let e=m();return d(e.getListData())})("nextPage",function(){c(t);let e=m();return d(e.getListData())}),o()()()}if(r&2){let t=m();p(12),V(t.data.Data),p(8),P(" ",L(22,6,F(21,3,t.data.Data,"Inventory"))," "),p(3),s("total",t.data.Data==null?null:t.data.Data.length)("pageData",t.pageData)}}var at=class r extends q{constructor(t,n,e,a){super(t,n,"Inventory/GetProductStorageLocation","InventoryLoader/InventoryReport");this.httpService=n;this.dialog=e;this.roleService=a}datasource;postInit(t){this.datasource=JSON.parse(JSON.stringify(t.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(t){let n=this.data.Data?.slice();if(!t.active||t.direction===""){this.data.Data=this.datasource;return}let e=t.direction==="asc";this.data.Data=n.sort((a,E)=>this.compare(a[t.active],E[t.active],e))}static \u0275fac=function(n){return new(n||r)(u(K),u(j),u(J),u(H))};static \u0275cmp=b({type:r,selectors:[["app-storage-location"]],features:[I],decls:9,vars:5,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"d-flex"],[1,"btn","btn-outline-secondary","me-3"],[1,"container-fluid","mt-3"],[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,"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,e){if(n&1){let a=_();i(0,"mainpanel-cmp",1),S("onSubmit",function(){return c(a),d(e.searchFromPageOne())}),i(1,"actions")(2,"div",2),D(3,rt,3,0,"button",3),o()(),i(4,"filters"),M(5,lt,9,6,"ng-template",null,0,N),o(),i(7,"content"),D(8,mt,24,8,"div",4),o()()}n&2&&(s("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(3),h(e.roleService.global.Export?3:-1),p(5),h(e.data?8:-1))},dependencies:[Z,Y,X,tt,$,et,it,W,B,R,nt,ot,A,k,G,z,U],encapsulation:2})};export{at as StorageLocationComponent};
1
+ import{a as z}from"./chunk-HL3ONSX6.js";import{d as $,e as tt}from"./chunk-GN3HVOCN.js";import"./chunk-G4IW5GPY.js";import{a as k,b as G,c as A}from"./chunk-AEXXXOEQ.js";import{a as ot,b as nt}from"./chunk-I3ABVEQL.js";import{f as et}from"./chunk-6EJSHQWL.js";import{c as it}from"./chunk-MFLQHYOR.js";import{b as Q}from"./chunk-T2H2XAEJ.js";import{a as q}from"./chunk-OWGJVIYJ.js";import"./chunk-DV63TLIP.js";import"./chunk-QFON23YX.js";import"./chunk-FIUZN6JU.js";import{e as Y,f as Z}from"./chunk-356KM5DR.js";import"./chunk-P7BRWWWC.js";import"./chunk-JEL3OND6.js";import"./chunk-IDQUQBKL.js";import"./chunk-VX5HH3BW.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-KKLNFVVN.js";import"./chunk-X57HWGVJ.js";import"./chunk-5SFUSWFY.js";import"./chunk-534MIVWD.js";import"./chunk-TGEQUV6Z.js";import"./chunk-IVJVUXLS.js";import{b as K}from"./chunk-UQ5F3YKZ.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import{N as X,g as U}from"./chunk-T25N3EEG.js";import"./chunk-7TBS7SPQ.js";import"./chunk-RLQLFW36.js";import"./chunk-EQLHPWVB.js";import{g as J}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-6SGN7MNX.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as W,h as B,o as R}from"./chunk-RNLSEEMX.js";import"./chunk-U5LNORQV.js";import"./chunk-FO5ZTXDH.js";import{d as H}from"./chunk-USJ6ILEE.js";import"./chunk-BJF3WGIP.js";import{Ab as T,Bb as V,Bc as y,Cb as s,Cc as L,Db as i,Dc as F,Eb as o,Fb as v,Hc as N,Mb as _,Ob as S,Qb as m,Xa as p,db as u,dc as l,ec as w,ee as j,fc as P,hb as b,ic as C,jc as x,kc as f,lb as I,nb as M,ta as c,ua as d,vb as D,xb as h,yb as O}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function rt(r,g){if(r&1){let t=_();i(0,"button",5),S("click",function(){c(t);let e=m();return d(e.openExportModal())}),v(1,"i",6),l(2," Export "),o()}}function lt(r,g){if(r&1){let t=_();i(0,"h6"),l(1,"Outlet"),o(),i(2,"outlet-selector",7),f("ngModelChange",function(e){c(t);let a=m();return x(a.pageData.Filter.Outlet,e)||(a.pageData.Filter.Outlet=e),d(e)}),o(),i(3,"h6"),l(4,"Category"),o(),i(5,"POS-product-category-select",8),f("selectedCategoryIDChange",function(e){c(t);let a=m();return x(a.pageData.Filter.Category,e)||(a.pageData.Filter.Category=e),d(e)}),o(),i(6,"h6"),l(7,"Discontinued"),o(),i(8,"radio-options",9),f("modelChange",function(e){c(t);let a=m();return x(a.pageData.Filter.Discontinued,e)||(a.pageData.Filter.Discontinued=e),d(e)}),o()}if(r&2){let t=m();p(2),s("accessType",2),C("ngModel",t.pageData.Filter.Outlet),p(3),C("selectedCategoryID",t.pageData.Filter.Category),s("showClear",!0),p(3),s("options",t.pageData==null||t.pageData.Options==null?null:t.pageData.Options.Discontinued),C("model",t.pageData.Filter.Discontinued)}}function pt(r,g){if(r&1&&(i(0,"tr")(1,"td"),l(2),o(),i(3,"td"),l(4),o(),i(5,"td",19),l(6),y(7,"quantityFraction"),o()()),r&2){let t=g.$implicit;p(2),w(t.EntityName),p(2),w(t.Name),p(2),P(" ",L(7,3,t.Inventory)," ")}}function mt(r,g){if(r&1){let t=_();i(0,"div",4)(1,"div",10)(2,"table",11),S("matSortChange",function(e){c(t);let a=m();return d(a.onSortData(e))}),i(3,"thead",12)(4,"tr",13)(5,"th",14),l(6,"Outlet"),o(),i(7,"th",15),l(8,"Storage Location"),o(),i(9,"th",16),l(10," On Hand "),o()()(),i(11,"tbody"),T(12,pt,8,5,"tr",null,O),o(),i(14,"tfoot")(15,"tr",17),v(16,"td",18),i(17,"td",18),l(18,"Total :"),o(),i(19,"td",19),l(20),y(21,"sum"),y(22,"quantityFraction"),o()()()(),i(23,"POS-complex-pagination",20),S("jumpToPage",function(){c(t);let e=m();return d(e.getListData())})("previousPage",function(){c(t);let e=m();return d(e.getListData())})("nextPage",function(){c(t);let e=m();return d(e.getListData())}),o()()()}if(r&2){let t=m();p(12),V(t.data.Data),p(8),P(" ",L(22,6,F(21,3,t.data.Data,"Inventory"))," "),p(3),s("total",t.data.Data==null?null:t.data.Data.length)("pageData",t.pageData)}}var at=class r extends q{constructor(t,n,e,a){super(t,n,"Inventory/GetProductStorageLocation","InventoryLoader/InventoryReport");this.httpService=n;this.dialog=e;this.roleService=a}datasource;postInit(t){this.datasource=JSON.parse(JSON.stringify(t.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(t){let n=this.data.Data?.slice();if(!t.active||t.direction===""){this.data.Data=this.datasource;return}let e=t.direction==="asc";this.data.Data=n.sort((a,E)=>this.compare(a[t.active],E[t.active],e))}static \u0275fac=function(n){return new(n||r)(u(K),u(j),u(J),u(H))};static \u0275cmp=b({type:r,selectors:[["app-storage-location"]],features:[I],decls:9,vars:5,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"d-flex"],[1,"btn","btn-outline-secondary","me-3"],[1,"container-fluid","mt-3"],[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,"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,e){if(n&1){let a=_();i(0,"mainpanel-cmp",1),S("onSubmit",function(){return c(a),d(e.searchFromPageOne())}),i(1,"actions")(2,"div",2),D(3,rt,3,0,"button",3),o()(),i(4,"filters"),M(5,lt,9,6,"ng-template",null,0,N),o(),i(7,"content"),D(8,mt,24,8,"div",4),o()()}n&2&&(s("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(3),h(e.roleService.global.Export?3:-1),p(5),h(e.data?8:-1))},dependencies:[Z,Y,X,tt,$,et,it,W,B,R,nt,ot,A,k,G,z,U],encapsulation:2})};export{at as StorageLocationComponent};
@@ -1 +1 @@
1
- import{a as $}from"./chunk-QFWPOP7L.js";import{a as J,b as K}from"./chunk-MVUVDYGQ.js";import{a as G}from"./chunk-WNZKCNMC.js";import{e as Y,f as Z}from"./chunk-YLLLGS4S.js";import{a as Q,c as U}from"./chunk-KKLNFVVN.js";import{b as X}from"./chunk-HIQKF5X3.js";import{h as H,m as q,q as z}from"./chunk-BA3BDB5Y.js";import{b as R,c as j}from"./chunk-C4WJKF7R.js";import{a as V}from"./chunk-2FWFPV5I.js";import{F as k,c as A,h as v,o as b}from"./chunk-RNLSEEMX.js";import{Ab as P,Bb as w,Cb as p,Db as o,Eb as a,Mb as I,Ob as c,Pc as g,Qb as d,Wd as W,Xa as m,Ya as C,be as L,db as h,dc as r,ec as F,ee as B,hb as M,ic as T,jc as S,kc as E,lb as D,ta as u,ua as f,vb as N,xb as O,yb as y}from"./chunk-JYZTRN6N.js";var x=class s{stringPrefixMask=g();stringSuffixMask=g();stringPrefixMaskChange=new C;stringSuffixMaskChange=new C;onStringPrefixMaskChange(l){this.stringPrefixMaskChange.emit(l)}onStringSuffixMaskChange(l){this.stringSuffixMaskChange.emit(l)}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=M({type:s,selectors:[["masking-config"]],inputs:{stringPrefixMask:[1,"stringPrefixMask"],stringSuffixMask:[1,"stringSuffixMask"]},outputs:{stringPrefixMaskChange:"stringPrefixMaskChange",stringSuffixMaskChange:"stringSuffixMaskChange"},decls:18,vars:2,consts:[[1,"row","my-10","ms-2"],[1,"col-md-2"],[1,"notes","text-muted"],[1,"col-md-10"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Sets the number of characters at the beginning of the sensitive field that remain visible",1,"form-floating-outline"],["type","text","id","name","placeholder","Max Visible Prefix","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["matTooltipPosition","above","matTooltip","Sets the number of characters at the end of the sensitive field that remain visible",1,"form-floating-outline"],["type","text","id","name","placeholder","Max Visible Suffix","autoNum","",1,"form-control",3,"ngModelChange","ngModel"]],template:function(e,i){e&1&&(o(0,"div",0)(1,"div",1)(2,"h5"),r(3,"Visible Masking Settings"),a(),o(4,"i",2),r(5," Configure how many characters at the beginning and end of sensitive fields remain visible. "),a()(),o(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"input",7),c("ngModelChange",function(n){return i.onStringPrefixMaskChange(n)}),a(),o(11,"label"),r(12,"Max Visible Prefix"),a()()(),o(13,"div",5)(14,"div",8)(15,"input",9),c("ngModelChange",function(n){return i.onStringSuffixMaskChange(n)}),a(),o(16,"label"),r(17,"Max Visible Suffix"),a()()()()()()),e&2&&(m(10),p("ngModel",i.stringPrefixMask()),m(5),p("ngModel",i.stringSuffixMask()))},dependencies:[k,A,v,b,Q,U,j,R],encapsulation:2})};function oe(s,l){if(s&1&&(o(0,"mat-option",10),r(1),a()),s&2){let e=l.$implicit;p("value",e),m(),F(e)}}function ae(s,l){if(s&1&&(o(0,"mat-option",10),r(1),a()),s&2){let e=l.$implicit;p("value",e),m(),F(e)}}var _=class s{options=g();contacts=g([]);products=g([]);contactsChange=new C;productsChange=new C;onContactsChange(l){this.contactsChange.emit(l)}onProductsChange(l){this.productsChange.emit(l)}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=M({type:s,selectors:[["masking-options"]],inputs:{options:[1,"options"],contacts:[1,"contacts"],products:[1,"products"]},outputs:{contactsChange:"contactsChange",productsChange:"productsChange"},decls:27,vars:2,consts:[[1,"row","my-10","ms-2"],[1,"col-md-2"],[1,"notes","text-muted"],["href","https://support.dealpos.com/en/articles/8278008-sensitive-field-roles-configuration-for-contacts","target","_blank"],[1,"col-md-10"],[1,"row"],[1,"col-6"],["appearance","outline",1,"w-100"],[1,"fs-4"],["placeholder","Product","multiple","",3,"ngModelChange","ngModel"],[3,"value"],["placeholder","Contact","multiple","",3,"ngModelChange","ngModel"]],template:function(e,i){if(e&1&&(o(0,"div",0)(1,"div",1)(2,"h5"),r(3,"Sensitive Field"),a(),o(4,"i",2),r(5,"When you mark a property as sensitive, the property value cannot be viewed to users without 'sensitive field' role. Please refer this "),o(6,"a",3),r(7,"Article"),a(),r(8," for more information"),a()(),o(9,"div",4)(10,"div",5)(11,"div",6)(12,"mat-form-field",7)(13,"mat-label")(14,"span",8),r(15,"Product"),a()(),o(16,"mat-select",9),c("ngModelChange",function(n){return i.onProductsChange(n)}),P(17,oe,2,2,"mat-option",10,y),a()()(),o(19,"div",6)(20,"mat-form-field",7)(21,"mat-label")(22,"span",8),r(23,"Contact"),a()(),o(24,"mat-select",11),c("ngModelChange",function(n){return i.onContactsChange(n)}),P(25,ae,2,2,"mat-option",10,y),a()()()()()()),e&2){let t,n;m(16),p("ngModel",i.products()),m(),w((t=i.options())==null?null:t.Product),m(7),p("ngModel",i.contacts()),m(),w((n=i.options())==null?null:n.Customer)}},dependencies:[K,q,H,J,z,G,k,v,b],encapsulation:2})};function re(s,l){if(s&1){let e=I();o(0,"mainpanel-cmp",0)(1,"actions")(2,"button",1),c("click",function(){u(e);let t=d();return f(t.onSubmit("Setup/Configuration/SubmitSensitiveFieldConfigurationV2"))}),r(3," Save "),a()(),o(4,"content")(5,"div",2)(6,"ul",3)(7,"li",4)(8,"button",5),r(9," Objects "),a()(),o(10,"li",4)(11,"button",6),r(12," Masking "),a()()(),o(13,"div",7)(14,"div",8)(15,"masking-options",9),E("productsChange",function(t){u(e);let n=d();return S(n.data.Form.Product,t)||(n.data.Form.Product=t),f(t)})("contactsChange",function(t){u(e);let n=d();return S(n.data.Form.Customer,t)||(n.data.Form.Customer=t),f(t)}),a()(),o(16,"div",10)(17,"masking-config",11),E("stringPrefixMaskChange",function(t){u(e);let n=d();return S(n.data.Form.Masking.StringPrefixMaskVisibleCharacterLength,t)||(n.data.Form.Masking.StringPrefixMaskVisibleCharacterLength=t),f(t)})("stringSuffixMaskChange",function(t){u(e);let n=d();return S(n.data.Form.Masking.StringSuffixMaskVisibleCharacterLength,t)||(n.data.Form.Masking.StringSuffixMaskVisibleCharacterLength=t),f(t)}),a()()()()()()}if(s&2){let e=d();p("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),m(15),p("options",e.data.Options),T("products",e.data.Form.Product)("contacts",e.data.Form.Customer),m(2),T("stringPrefixMask",e.data.Form.Masking.StringPrefixMaskVisibleCharacterLength)("stringSuffixMask",e.data.Form.Masking.StringSuffixMaskVisibleCharacterLength)}}var ie=class s extends ${constructor(e,i,t,n){super(e,i,"Setup/ConfigurationLoader/SensitiveFieldConfigurationV2",t);this.httpService=i;this.activatedRoute=t;this.toaster=n}onSubmitSuccess(e){e?.MessageWarning?this.toaster.warning(e.MessageWarning,V.Warning):this.toaster.success("Config has been updated succesfully!",V.Success)}static \u0275fac=function(i){return new(i||s)(h(X),h(B),h(W),h(L))};static \u0275cmp=M({type:s,selectors:[["app-sensitive-field"]],features:[D],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click"],[1,"container-fluid","py-5","bg-light-white"],["id","myTab","role","tablist",1,"nav","nav-tabs"],[1,"nav-item"],["id","masking-options-tab","data-bs-toggle","tab","data-bs-target","#masking-options","role","tab","aria-controls","masking-options","aria-selected","true",1,"nav-link","active"],["id","masking-tab","data-bs-toggle","tab","data-bs-target","#masking","role","tab","aria-controls","masking","aria-selected","false",1,"nav-link"],["id","myTabContent",1,"tab-content","border-top-0","bg-white"],["id","masking-options","aria-labelledby","masking-options-tab","role","tabpanel",1,"tab-pane","fade","mt-0","p-7","show","active"],[3,"productsChange","contactsChange","options","products","contacts"],["id","masking","aria-labelledby","masking-tab","role","tabpanel",1,"tab-pane","fade","mt-0","p-7"],[3,"stringPrefixMaskChange","stringSuffixMaskChange","stringPrefixMask","stringSuffixMask"]],template:function(i,t){i&1&&N(0,re,18,8,"mainpanel-cmp",0),i&2&&O(t.formData?0:-1)},dependencies:[Z,Y,x,_],encapsulation:2})};export{ie as a};
1
+ import{a as $}from"./chunk-R36QPCUA.js";import{a as J,b as K}from"./chunk-MVUVDYGQ.js";import{a as G}from"./chunk-WNZKCNMC.js";import{e as Y,f as Z}from"./chunk-356KM5DR.js";import{a as Q,c as U}from"./chunk-KKLNFVVN.js";import{b as X}from"./chunk-UQ5F3YKZ.js";import{h as H,m as q,q as z}from"./chunk-BA3BDB5Y.js";import{b as R,c as j}from"./chunk-C4WJKF7R.js";import{a as V}from"./chunk-2FWFPV5I.js";import{F as k,c as A,h as v,o as b}from"./chunk-RNLSEEMX.js";import{Ab as P,Bb as w,Cb as p,Db as o,Eb as a,Mb as I,Ob as c,Pc as g,Qb as d,Wd as W,Xa as m,Ya as C,be as L,db as h,dc as r,ec as F,ee as B,hb as M,ic as T,jc as S,kc as E,lb as D,ta as u,ua as f,vb as N,xb as O,yb as y}from"./chunk-JYZTRN6N.js";var x=class s{stringPrefixMask=g();stringSuffixMask=g();stringPrefixMaskChange=new C;stringSuffixMaskChange=new C;onStringPrefixMaskChange(l){this.stringPrefixMaskChange.emit(l)}onStringSuffixMaskChange(l){this.stringSuffixMaskChange.emit(l)}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=M({type:s,selectors:[["masking-config"]],inputs:{stringPrefixMask:[1,"stringPrefixMask"],stringSuffixMask:[1,"stringSuffixMask"]},outputs:{stringPrefixMaskChange:"stringPrefixMaskChange",stringSuffixMaskChange:"stringSuffixMaskChange"},decls:18,vars:2,consts:[[1,"row","my-10","ms-2"],[1,"col-md-2"],[1,"notes","text-muted"],[1,"col-md-10"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Sets the number of characters at the beginning of the sensitive field that remain visible",1,"form-floating-outline"],["type","text","id","name","placeholder","Max Visible Prefix","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["matTooltipPosition","above","matTooltip","Sets the number of characters at the end of the sensitive field that remain visible",1,"form-floating-outline"],["type","text","id","name","placeholder","Max Visible Suffix","autoNum","",1,"form-control",3,"ngModelChange","ngModel"]],template:function(e,i){e&1&&(o(0,"div",0)(1,"div",1)(2,"h5"),r(3,"Visible Masking Settings"),a(),o(4,"i",2),r(5," Configure how many characters at the beginning and end of sensitive fields remain visible. "),a()(),o(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"input",7),c("ngModelChange",function(n){return i.onStringPrefixMaskChange(n)}),a(),o(11,"label"),r(12,"Max Visible Prefix"),a()()(),o(13,"div",5)(14,"div",8)(15,"input",9),c("ngModelChange",function(n){return i.onStringSuffixMaskChange(n)}),a(),o(16,"label"),r(17,"Max Visible Suffix"),a()()()()()()),e&2&&(m(10),p("ngModel",i.stringPrefixMask()),m(5),p("ngModel",i.stringSuffixMask()))},dependencies:[k,A,v,b,Q,U,j,R],encapsulation:2})};function oe(s,l){if(s&1&&(o(0,"mat-option",10),r(1),a()),s&2){let e=l.$implicit;p("value",e),m(),F(e)}}function ae(s,l){if(s&1&&(o(0,"mat-option",10),r(1),a()),s&2){let e=l.$implicit;p("value",e),m(),F(e)}}var _=class s{options=g();contacts=g([]);products=g([]);contactsChange=new C;productsChange=new C;onContactsChange(l){this.contactsChange.emit(l)}onProductsChange(l){this.productsChange.emit(l)}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=M({type:s,selectors:[["masking-options"]],inputs:{options:[1,"options"],contacts:[1,"contacts"],products:[1,"products"]},outputs:{contactsChange:"contactsChange",productsChange:"productsChange"},decls:27,vars:2,consts:[[1,"row","my-10","ms-2"],[1,"col-md-2"],[1,"notes","text-muted"],["href","https://support.dealpos.com/en/articles/8278008-sensitive-field-roles-configuration-for-contacts","target","_blank"],[1,"col-md-10"],[1,"row"],[1,"col-6"],["appearance","outline",1,"w-100"],[1,"fs-4"],["placeholder","Product","multiple","",3,"ngModelChange","ngModel"],[3,"value"],["placeholder","Contact","multiple","",3,"ngModelChange","ngModel"]],template:function(e,i){if(e&1&&(o(0,"div",0)(1,"div",1)(2,"h5"),r(3,"Sensitive Field"),a(),o(4,"i",2),r(5,"When you mark a property as sensitive, the property value cannot be viewed to users without 'sensitive field' role. Please refer this "),o(6,"a",3),r(7,"Article"),a(),r(8," for more information"),a()(),o(9,"div",4)(10,"div",5)(11,"div",6)(12,"mat-form-field",7)(13,"mat-label")(14,"span",8),r(15,"Product"),a()(),o(16,"mat-select",9),c("ngModelChange",function(n){return i.onProductsChange(n)}),P(17,oe,2,2,"mat-option",10,y),a()()(),o(19,"div",6)(20,"mat-form-field",7)(21,"mat-label")(22,"span",8),r(23,"Contact"),a()(),o(24,"mat-select",11),c("ngModelChange",function(n){return i.onContactsChange(n)}),P(25,ae,2,2,"mat-option",10,y),a()()()()()()),e&2){let t,n;m(16),p("ngModel",i.products()),m(),w((t=i.options())==null?null:t.Product),m(7),p("ngModel",i.contacts()),m(),w((n=i.options())==null?null:n.Customer)}},dependencies:[K,q,H,J,z,G,k,v,b],encapsulation:2})};function re(s,l){if(s&1){let e=I();o(0,"mainpanel-cmp",0)(1,"actions")(2,"button",1),c("click",function(){u(e);let t=d();return f(t.onSubmit("Setup/Configuration/SubmitSensitiveFieldConfigurationV2"))}),r(3," Save "),a()(),o(4,"content")(5,"div",2)(6,"ul",3)(7,"li",4)(8,"button",5),r(9," Objects "),a()(),o(10,"li",4)(11,"button",6),r(12," Masking "),a()()(),o(13,"div",7)(14,"div",8)(15,"masking-options",9),E("productsChange",function(t){u(e);let n=d();return S(n.data.Form.Product,t)||(n.data.Form.Product=t),f(t)})("contactsChange",function(t){u(e);let n=d();return S(n.data.Form.Customer,t)||(n.data.Form.Customer=t),f(t)}),a()(),o(16,"div",10)(17,"masking-config",11),E("stringPrefixMaskChange",function(t){u(e);let n=d();return S(n.data.Form.Masking.StringPrefixMaskVisibleCharacterLength,t)||(n.data.Form.Masking.StringPrefixMaskVisibleCharacterLength=t),f(t)})("stringSuffixMaskChange",function(t){u(e);let n=d();return S(n.data.Form.Masking.StringSuffixMaskVisibleCharacterLength,t)||(n.data.Form.Masking.StringSuffixMaskVisibleCharacterLength=t),f(t)}),a()()()()()()}if(s&2){let e=d();p("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),m(15),p("options",e.data.Options),T("products",e.data.Form.Product)("contacts",e.data.Form.Customer),m(2),T("stringPrefixMask",e.data.Form.Masking.StringPrefixMaskVisibleCharacterLength)("stringSuffixMask",e.data.Form.Masking.StringSuffixMaskVisibleCharacterLength)}}var ie=class s extends ${constructor(e,i,t,n){super(e,i,"Setup/ConfigurationLoader/SensitiveFieldConfigurationV2",t);this.httpService=i;this.activatedRoute=t;this.toaster=n}onSubmitSuccess(e){e?.MessageWarning?this.toaster.warning(e.MessageWarning,V.Warning):this.toaster.success("Config has been updated succesfully!",V.Success)}static \u0275fac=function(i){return new(i||s)(h(X),h(B),h(W),h(L))};static \u0275cmp=M({type:s,selectors:[["app-sensitive-field"]],features:[D],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click"],[1,"container-fluid","py-5","bg-light-white"],["id","myTab","role","tablist",1,"nav","nav-tabs"],[1,"nav-item"],["id","masking-options-tab","data-bs-toggle","tab","data-bs-target","#masking-options","role","tab","aria-controls","masking-options","aria-selected","true",1,"nav-link","active"],["id","masking-tab","data-bs-toggle","tab","data-bs-target","#masking","role","tab","aria-controls","masking","aria-selected","false",1,"nav-link"],["id","myTabContent",1,"tab-content","border-top-0","bg-white"],["id","masking-options","aria-labelledby","masking-options-tab","role","tabpanel",1,"tab-pane","fade","mt-0","p-7","show","active"],[3,"productsChange","contactsChange","options","products","contacts"],["id","masking","aria-labelledby","masking-tab","role","tabpanel",1,"tab-pane","fade","mt-0","p-7"],[3,"stringPrefixMaskChange","stringSuffixMaskChange","stringPrefixMask","stringSuffixMask"]],template:function(i,t){i&1&&N(0,re,18,8,"mainpanel-cmp",0),i&2&&O(t.formData?0:-1)},dependencies:[Z,Y,x,_],encapsulation:2})};export{ie as a};
@@ -1 +1 @@
1
- import{a as U}from"./chunk-HVFAKTAO.js";import{a as f,d as R,e as O}from"./chunk-USJ6ILEE.js";import{Ma as v,Yd as C,ee as h,fa as S,la as u,oa as p,pa as g,sd as N,ya as d}from"./chunk-JYZTRN6N.js";var k=(t=>(t[t.PAID=0]="PAID",t[t.OVERDUE=1]="OVERDUE",t[t.SELL_ONLY=2]="SELL_ONLY",t[t.SUSPENDED=3]="SUSPENDED",t))(k||{});var D=(()=>{let e=class e{constructor(){this.document=g(d),this.platformId=g(v),this.documentIsAccessible=N(this.platformId)}static getCookieRegExp(i){let t=i.replace(/([[\]{}()|=;+?,.*^$\\])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(i){try{return decodeURIComponent(i)}catch{return i}}check(i){return this.documentIsAccessible?(i=encodeURIComponent(i),e.getCookieRegExp(i).test(this.document.cookie)):!1}get(i){if(this.check(i)){i=encodeURIComponent(i);let n=e.getCookieRegExp(i).exec(this.document.cookie);return n?.[1]?e.safeDecodeURIComponent(n[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let i={},t=this.document;return t.cookie&&t.cookie!==""&&t.cookie.split(";").forEach(n=>{let[s,c]=n.split("=");i[e.safeDecodeURIComponent(s.replace(/^ /,""))]=e.safeDecodeURIComponent(c)}),i}set(i,t,n,s,c,l,T,b){if(!this.documentIsAccessible)return;if(typeof n=="number"||n instanceof Date||s||c||l||T){let I={expires:n,path:s,domain:c,secure:l,sameSite:T||"Lax",partitioned:b};this.set(i,t,I);return}let a=encodeURIComponent(i)+"="+encodeURIComponent(t)+";",r=n||{};if(r.expires)if(typeof r.expires=="number"){let I=new Date(new Date().getTime()+r.expires*1e3*60*60*24);a+="expires="+I.toUTCString()+";"}else a+="expires="+r.expires.toUTCString()+";";r.path&&(a+="path="+r.path+";"),r.domain&&(a+="domain="+r.domain+";"),r.secure===!1&&r.sameSite==="None"&&(r.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${i} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),r.secure&&(a+="secure;"),r.sameSite||(r.sameSite="Lax"),a+="sameSite="+r.sameSite+";",r.partitioned&&(a+="Partitioned;"),this.document.cookie=a}delete(i,t,n,s,c="Lax"){if(!this.documentIsAccessible)return;let l=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(i,"",{expires:l,path:t,domain:n,secure:s,sameSite:c})}deleteAll(i,t,n,s="Lax"){if(!this.documentIsAccessible)return;let c=this.getAll();for(let l in c)c.hasOwnProperty(l)&&this.delete(l,i,t,n,s)}};e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=u({token:e,factory:e.\u0275fac,providedIn:"root"});let m=e;return m})();var E=class m{constructor(e,o,i,t,n,s){this.httpService=e;this.cookieService=o;this.router=i;this.roleService=t;this.intercomService=n;this.fraction=s}role=[];_returnUrl;_loginResponse;_jwtToken;set returnUrl(e){this._returnUrl=e}get returnUrl(){return this._returnUrl}login(e){return this.httpService.post("/api/Login/Web",e).pipe(S(o=>{this._loginResponse=o,o.Type=="geo"||o.Type=="totp"||this.saveLoginConfigToStorage(o)}))}loginLoader(){return this.httpService.get("/api/login/Loader")}getRedirectUrl(){let e=this.getSubscriptionStatus(),o=this.getRedirectUrlByRole();return(e==2||e==3)&&(o="/menu/Profile/Main/My_Subscription"),o}getRedirectUrlByRole(){let e,o=this.roleService;return o.dashboard.View?e="/menu/Dashboard":o.product.View?e="/menu/Products":e="/menu/Sell",e}logout(){localStorage.removeItem("ConfigData"),localStorage.removeItem("Token"),localStorage.removeItem("Roles"),localStorage.removeItem("AccountInfo"),localStorage.removeItem("CloudinaryConfig"),localStorage.removeItem("SubscriptionStatus"),this.cookieService.delete("ReportFilter","/"),this.intercomService.shutdown(),this._jwtToken=null,this.roleService.resetRoles(),this.router.navigate(["/"])}refreshToken(){this.httpService.post("/API/Authentication/RefreshToken",{}).subscribe(e=>{localStorage.removeItem("Token"),localStorage.setItem("Token",e.Token),this._jwtToken=null,this.roleService.resetRoles(),this.roleService.parseJWTRoles()})}isTokenExpired(){let e=localStorage.getItem("Token");if(e){let o=f.parseJwt(e),i=this.convertUnixTimesTamp(o.exp),t=new Date;if(i.getTime()-t.getTime()>0)return!1}return!0}isInRole(e){e.forEach(o=>o(this.role))}convertUnixTimesTamp(e){return new Date(e*1e3)}saveLoginConfigToStorage(e){localStorage.setItem("quantityFraction",JSON.stringify(e.UIConfig.Fraction.Quantity)),localStorage.setItem("amountFraction",JSON.stringify(e.UIConfig.Fraction.Amount)),this.fraction.setAmountFraction(e.UIConfig.Fraction.Amount.Minimum,e.UIConfig.Fraction.Amount.Maximum),this.fraction.setQuantityFraction(e.UIConfig.Fraction.Quantity.Minimum,e.UIConfig.Fraction.Quantity.Maximum),localStorage.setItem("AccountInfo",JSON.stringify(e?.AccountInfo)),localStorage.setItem("Token",e?.Token),localStorage.setItem("TinyMCEPlugins",e?.UIConfig.TinyMCE),this.intercomService.updateLocalStorage(e?.Intercom),localStorage.setItem("CloudinaryConfig",e?.UIConfig.CloudinaryConfig),localStorage.setItem("DataDaysRange",e?.UIConfig.DataDaysRange),localStorage.setItem("SubscriptionStatus",JSON.stringify(e?.SubscriptionStatus));let o=this.getParseToken();f.IsNotEmpty(o?.NotificationOutletID)&&localStorage.setItem("NotificationOutletID",o?.NotificationOutletID),this.roleService.parseJWTRoles(),this._loginResponse=null}getParseToken(){let e=localStorage.getItem("Token");return e&&!this._jwtToken&&(this._jwtToken=f.parseJwt(e)),this._jwtToken}get loginResponse(){return this._loginResponse}getSubscriptionStatus(){let e=localStorage.getItem("SubscriptionStatus");return e?parseInt(e):null}static \u0275fac=function(o){return new(o||m)(p(h),p(D),p(C),p(R),p(U),p(O))};static \u0275prov=u({token:m,factory:m.\u0275fac,providedIn:"root"})};export{k as a,D as b,E as c};
1
+ import{a as U}from"./chunk-FO5ZTXDH.js";import{a as f,d as R,e as O}from"./chunk-USJ6ILEE.js";import{Ma as v,Yd as C,ee as h,fa as S,la as u,oa as p,pa as g,sd as N,ya as d}from"./chunk-JYZTRN6N.js";var k=(t=>(t[t.PAID=0]="PAID",t[t.OVERDUE=1]="OVERDUE",t[t.SELL_ONLY=2]="SELL_ONLY",t[t.SUSPENDED=3]="SUSPENDED",t))(k||{});var D=(()=>{let e=class e{constructor(){this.document=g(d),this.platformId=g(v),this.documentIsAccessible=N(this.platformId)}static getCookieRegExp(i){let t=i.replace(/([[\]{}()|=;+?,.*^$\\])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(i){try{return decodeURIComponent(i)}catch{return i}}check(i){return this.documentIsAccessible?(i=encodeURIComponent(i),e.getCookieRegExp(i).test(this.document.cookie)):!1}get(i){if(this.check(i)){i=encodeURIComponent(i);let n=e.getCookieRegExp(i).exec(this.document.cookie);return n?.[1]?e.safeDecodeURIComponent(n[1]):""}else return""}getAll(){if(!this.documentIsAccessible)return{};let i={},t=this.document;return t.cookie&&t.cookie!==""&&t.cookie.split(";").forEach(n=>{let[s,c]=n.split("=");i[e.safeDecodeURIComponent(s.replace(/^ /,""))]=e.safeDecodeURIComponent(c)}),i}set(i,t,n,s,c,l,T,b){if(!this.documentIsAccessible)return;if(typeof n=="number"||n instanceof Date||s||c||l||T){let I={expires:n,path:s,domain:c,secure:l,sameSite:T||"Lax",partitioned:b};this.set(i,t,I);return}let a=encodeURIComponent(i)+"="+encodeURIComponent(t)+";",r=n||{};if(r.expires)if(typeof r.expires=="number"){let I=new Date(new Date().getTime()+r.expires*1e3*60*60*24);a+="expires="+I.toUTCString()+";"}else a+="expires="+r.expires.toUTCString()+";";r.path&&(a+="path="+r.path+";"),r.domain&&(a+="domain="+r.domain+";"),r.secure===!1&&r.sameSite==="None"&&(r.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${i} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),r.secure&&(a+="secure;"),r.sameSite||(r.sameSite="Lax"),a+="sameSite="+r.sameSite+";",r.partitioned&&(a+="Partitioned;"),this.document.cookie=a}delete(i,t,n,s,c="Lax"){if(!this.documentIsAccessible)return;let l=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(i,"",{expires:l,path:t,domain:n,secure:s,sameSite:c})}deleteAll(i,t,n,s="Lax"){if(!this.documentIsAccessible)return;let c=this.getAll();for(let l in c)c.hasOwnProperty(l)&&this.delete(l,i,t,n,s)}};e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=u({token:e,factory:e.\u0275fac,providedIn:"root"});let m=e;return m})();var E=class m{constructor(e,o,i,t,n,s){this.httpService=e;this.cookieService=o;this.router=i;this.roleService=t;this.intercomService=n;this.fraction=s}role=[];_returnUrl;_loginResponse;_jwtToken;set returnUrl(e){this._returnUrl=e}get returnUrl(){return this._returnUrl}login(e){return this.httpService.post("/api/Login/Web",e).pipe(S(o=>{this._loginResponse=o,o.Type=="geo"||o.Type=="totp"||this.saveLoginConfigToStorage(o)}))}loginLoader(){return this.httpService.get("/api/login/Loader")}getRedirectUrl(){let e=this.getSubscriptionStatus(),o=this.getRedirectUrlByRole();return(e==2||e==3)&&(o="/menu/Profile/Main/My_Subscription"),o}getRedirectUrlByRole(){let e,o=this.roleService;return o.dashboard.View?e="/menu/Dashboard":o.product.View?e="/menu/Products":e="/menu/Sell",e}logout(){localStorage.removeItem("ConfigData"),localStorage.removeItem("Token"),localStorage.removeItem("Roles"),localStorage.removeItem("AccountInfo"),localStorage.removeItem("CloudinaryConfig"),localStorage.removeItem("SubscriptionStatus"),this.cookieService.delete("ReportFilter","/"),this.intercomService.shutdown(),this._jwtToken=null,this.roleService.resetRoles(),this.router.navigate(["/"])}refreshToken(){this.httpService.post("/API/Authentication/RefreshToken",{}).subscribe(e=>{localStorage.removeItem("Token"),localStorage.setItem("Token",e.Token),this._jwtToken=null,this.roleService.resetRoles(),this.roleService.parseJWTRoles()})}isTokenExpired(){let e=localStorage.getItem("Token");if(e){let o=f.parseJwt(e),i=this.convertUnixTimesTamp(o.exp),t=new Date;if(i.getTime()-t.getTime()>0)return!1}return!0}isInRole(e){e.forEach(o=>o(this.role))}convertUnixTimesTamp(e){return new Date(e*1e3)}saveLoginConfigToStorage(e){localStorage.setItem("quantityFraction",JSON.stringify(e.UIConfig.Fraction.Quantity)),localStorage.setItem("amountFraction",JSON.stringify(e.UIConfig.Fraction.Amount)),this.fraction.setAmountFraction(e.UIConfig.Fraction.Amount.Minimum,e.UIConfig.Fraction.Amount.Maximum),this.fraction.setQuantityFraction(e.UIConfig.Fraction.Quantity.Minimum,e.UIConfig.Fraction.Quantity.Maximum),localStorage.setItem("AccountInfo",JSON.stringify(e?.AccountInfo)),localStorage.setItem("Token",e?.Token),localStorage.setItem("TinyMCEPlugins",e?.UIConfig.TinyMCE),this.intercomService.updateLocalStorage(e?.Intercom),localStorage.setItem("CloudinaryConfig",e?.UIConfig.CloudinaryConfig),localStorage.setItem("DataDaysRange",e?.UIConfig.DataDaysRange),localStorage.setItem("SubscriptionStatus",JSON.stringify(e?.SubscriptionStatus));let o=this.getParseToken();f.IsNotEmpty(o?.NotificationOutletID)&&localStorage.setItem("NotificationOutletID",o?.NotificationOutletID),this.roleService.parseJWTRoles(),this._loginResponse=null}getParseToken(){let e=localStorage.getItem("Token");return e&&!this._jwtToken&&(this._jwtToken=f.parseJwt(e)),this._jwtToken}get loginResponse(){return this._loginResponse}getSubscriptionStatus(){let e=localStorage.getItem("SubscriptionStatus");return e?parseInt(e):null}static \u0275fac=function(o){return new(o||m)(p(h),p(D),p(C),p(R),p(U),p(O))};static \u0275prov=u({token:m,factory:m.\u0275fac,providedIn:"root"})};export{k as a,D as b,E as c};