dealpos 26.4.0 → 26.4.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 (110) hide show
  1. package/browser/{chunk-3RJOTZUN.js → chunk-22OMZA77.js} +1 -1
  2. package/browser/{chunk-X4KOUP7K.js → chunk-2FBBKIPN.js} +1 -1
  3. package/browser/{chunk-TZ5YFX5C.js → chunk-2O5GUIQ3.js} +1 -1
  4. package/browser/chunk-2YMNZL3G.js +1 -0
  5. package/browser/{chunk-IL4QSZHM.js → chunk-3E7ST3BV.js} +1 -1
  6. package/browser/{chunk-6VVA4O2D.js → chunk-3F3YVPLF.js} +1 -1
  7. package/browser/{chunk-BJBWYRRH.js → chunk-3UDCHB2P.js} +1 -1
  8. package/browser/chunk-476Q5XNX.js +1 -0
  9. package/browser/chunk-5I3GRLOK.js +1 -0
  10. package/browser/{chunk-433M2UVS.js → chunk-5YMARALB.js} +1 -1
  11. package/browser/{chunk-DM5BLZ6V.js → chunk-6CKBVQDM.js} +1 -1
  12. package/browser/{chunk-NRJ4PU3O.js → chunk-6JSUKQBX.js} +1 -1
  13. package/browser/{chunk-PWEXW3NF.js → chunk-6RBKYWMZ.js} +1 -1
  14. package/browser/{chunk-JBMT57UD.js → chunk-72A7CHH3.js} +3 -3
  15. package/browser/{chunk-INCMQHBZ.js → chunk-7V75JDWC.js} +1 -1
  16. package/browser/{chunk-IZDLUACZ.js → chunk-AUFHEZCV.js} +1 -1
  17. package/browser/{chunk-LUCT5DHX.js → chunk-BK7PCS2K.js} +1 -1
  18. package/browser/chunk-C6EFDCAR.js +1 -0
  19. package/browser/{chunk-YX2H555K.js → chunk-CUYIQLPT.js} +3 -3
  20. package/browser/{chunk-3ZAOEBOJ.js → chunk-DA5HNWKX.js} +1 -1
  21. package/browser/chunk-DYMSQJ4A.js +1 -0
  22. package/browser/{chunk-GUUTLWEG.js → chunk-DZYB5JK7.js} +1 -1
  23. package/browser/{chunk-L7TA2DUI.js → chunk-EZIRMRUB.js} +1 -1
  24. package/browser/chunk-FOPCT7PJ.js +1 -0
  25. package/browser/{chunk-Z7CRNE2Q.js → chunk-FTSIAOY2.js} +1 -1
  26. package/browser/{chunk-VVBLHK3G.js → chunk-FVCEA766.js} +1 -1
  27. package/browser/{chunk-YN4DSZBR.js → chunk-FZOCO4V2.js} +2 -2
  28. package/browser/{chunk-IHXN75AW.js → chunk-G52EU6EE.js} +9 -7
  29. package/browser/{chunk-FTOELSUT.js → chunk-GCJKWBX2.js} +1 -1
  30. package/browser/{chunk-3MHCJQRS.js → chunk-GEQL4SH2.js} +1 -1
  31. package/browser/{chunk-HIB6FWMC.js → chunk-H3SM6SIC.js} +1 -1
  32. package/browser/{chunk-5HDEHQKP.js → chunk-H5YE2NN5.js} +1 -1
  33. package/browser/{chunk-4535ZV2A.js → chunk-HJWAAOFP.js} +1 -1
  34. package/browser/{chunk-BZXW27UH.js → chunk-HR6EFPKE.js} +1 -1
  35. package/browser/{chunk-DQLCJJ6G.js → chunk-HYC64ZWD.js} +1 -1
  36. package/browser/{chunk-VLEWEODM.js → chunk-I4BOAUNT.js} +1 -1
  37. package/browser/{chunk-7UEWGQ74.js → chunk-IDRHF2MK.js} +1 -1
  38. package/browser/chunk-IWXYTNFB.js +1 -0
  39. package/browser/chunk-JCGDBXLH.js +1 -0
  40. package/browser/{chunk-JGBWKDBQ.js → chunk-JI2XIJKP.js} +1 -1
  41. package/browser/{chunk-ZZSJQETA.js → chunk-KB5PV2N4.js} +1 -1
  42. package/browser/chunk-LL5S5SZI.js +1 -0
  43. package/browser/{chunk-XJAHBIL6.js → chunk-M2PCDO55.js} +2 -2
  44. package/browser/{chunk-DTIDKORL.js → chunk-MQJYDD5Z.js} +1 -1
  45. package/browser/{chunk-ZPB4RCLI.js → chunk-N3RKRQRQ.js} +1 -1
  46. package/browser/{chunk-BKNQ6IVU.js → chunk-PCBKHBO2.js} +1 -1
  47. package/browser/{chunk-E76O3KCT.js → chunk-PLIVWERU.js} +1 -1
  48. package/browser/{chunk-4IKFZRLN.js → chunk-PUJNWAOD.js} +1 -1
  49. package/browser/{chunk-4FUAUVLP.js → chunk-Q25NJOWL.js} +1 -1
  50. package/browser/chunk-QAUG5K3J.js +1 -0
  51. package/browser/{chunk-6OOHHORS.js → chunk-QKA56UGP.js} +1 -1
  52. package/browser/{chunk-RUCIIUGM.js → chunk-QM2DTL3Q.js} +1 -1
  53. package/browser/{chunk-4PN64RSM.js → chunk-R2TFL6J6.js} +1 -1
  54. package/browser/{chunk-M2Q4FY2T.js → chunk-RSJI5JD7.js} +1 -1
  55. package/browser/chunk-S3IOVKT3.js +11 -0
  56. package/browser/chunk-SFYFJVJB.js +1 -0
  57. package/browser/{chunk-4KLH7P6M.js → chunk-SGP6TSVE.js} +1 -1
  58. package/browser/chunk-SH5GKPEP.js +18 -0
  59. package/browser/{chunk-7664OYMP.js → chunk-SHMVVLDT.js} +2 -2
  60. package/browser/{chunk-5NHQ6CV5.js → chunk-T3CBL2VU.js} +1 -1
  61. package/browser/chunk-TDQVT4SD.js +1 -0
  62. package/browser/{chunk-GNFJDALD.js → chunk-TJ2ZYWAW.js} +1 -1
  63. package/browser/chunk-TKP3K6NI.js +1 -0
  64. package/browser/chunk-TLWKJ4TI.js +1 -0
  65. package/browser/{chunk-3QW7ZI4T.js → chunk-UHCQW5SR.js} +9 -9
  66. package/browser/{chunk-CDFBQ67X.js → chunk-V65GPQPI.js} +2 -2
  67. package/browser/{chunk-LUHPDBI6.js → chunk-VIQH4A64.js} +6 -6
  68. package/browser/{chunk-HSMNYEYM.js → chunk-W2WEHKZR.js} +1 -1
  69. package/browser/{chunk-LDHRYL3W.js → chunk-WKJ6VMUL.js} +2 -2
  70. package/browser/chunk-WOW7BN7X.js +1 -0
  71. package/browser/{chunk-3DZSBCZ5.js → chunk-WTVD2U23.js} +1 -1
  72. package/browser/{chunk-6UDOC3ZT.js → chunk-WVGAKP5M.js} +1 -1
  73. package/browser/chunk-X4SMAOWM.js +1 -0
  74. package/browser/{chunk-JD34XX3E.js → chunk-XIDCASA5.js} +1 -1
  75. package/browser/{chunk-4ECNOSBW.js → chunk-XP3U2FNL.js} +1 -1
  76. package/browser/{chunk-QLGHQ5V5.js → chunk-XUZS7R72.js} +1 -1
  77. package/browser/chunk-Y5GUJN7G.js +1 -0
  78. package/browser/{chunk-AGHXWO7A.js → chunk-YDOLPGKY.js} +1 -1
  79. package/browser/{chunk-RZJM6JPW.js → chunk-YMYX2H2Z.js} +1 -1
  80. package/browser/chunk-YT2U23SW.js +11 -0
  81. package/browser/{chunk-XDRTA7AK.js → chunk-YWOTWM23.js} +1 -1
  82. package/browser/{chunk-3ODMAPY4.js → chunk-YZ4O4NKS.js} +1 -1
  83. package/browser/{chunk-UYER5C3I.js → chunk-YZWVRMVV.js} +1 -1
  84. package/browser/{chunk-SCH3JBX6.js → chunk-Z6TX6UYR.js} +1 -1
  85. package/browser/chunk-ZC5X7YUT.js +1 -0
  86. package/browser/{chunk-DZDBM43P.js → chunk-ZGMWDYF2.js} +1 -1
  87. package/browser/index.html +2 -2
  88. package/browser/{main-VRDCMKW4.js → main-YULQHMH3.js} +2 -2
  89. package/package.json +1 -1
  90. package/browser/chunk-42GSDL5R.js +0 -1
  91. package/browser/chunk-5Q3IYZI4.js +0 -1
  92. package/browser/chunk-6FPQNZ3E.js +0 -1
  93. package/browser/chunk-CJ6ZZSXT.js +0 -11
  94. package/browser/chunk-G2TFSYGY.js +0 -1
  95. package/browser/chunk-G3RDHB4C.js +0 -1
  96. package/browser/chunk-GG4WMA7W.js +0 -1
  97. package/browser/chunk-GN3TDBB2.js +0 -1
  98. package/browser/chunk-KLEZTXMK.js +0 -1
  99. package/browser/chunk-KMJVVWSI.js +0 -1
  100. package/browser/chunk-LZ4WYX73.js +0 -18
  101. package/browser/chunk-NF37X7PS.js +0 -1
  102. package/browser/chunk-RHSLGITT.js +0 -1
  103. package/browser/chunk-VQC6PDYE.js +0 -1
  104. package/browser/chunk-VSKA2H3J.js +0 -1
  105. package/browser/chunk-VYAC7WSQ.js +0 -1
  106. package/browser/chunk-WRNIO7QV.js +0 -1
  107. package/browser/chunk-WSLWKUDF.js +0 -1
  108. package/browser/chunk-WWFF4Y4H.js +0 -11
  109. package/browser/chunk-YZQDAFXO.js +0 -1
  110. package/browser/chunk-ZAL5MGIU.js +0 -1
@@ -1 +1 @@
1
- import{c as Z}from"./chunk-DTIDKORL.js";import"./chunk-DM5BLZ6V.js";import"./chunk-DQLTY6WY.js";import"./chunk-AL3ZHUTZ.js";import{a as D}from"./chunk-WUV22SZ4.js";import"./chunk-4535ZV2A.js";import{s as j}from"./chunk-ELAN2H2C.js";import{$ as _,Bb as g,Db as u,Ic as k,Jc as A,Mb as o,N as b,Nb as e,Ob as f,Sb as w,Tb as M,Td as G,Wb as S,Xb as x,Y as p,Ya as l,_a as O,aa as m,c as s,fa as C,fb as c,ic as L,jb as P,kc as a,lc as h,n as v,sd as I,ua as E,va as y,zd as R}from"./chunk-Y2L5QWEJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function N(r,n){r&1&&(o(0,"div",13)(1,"span",20),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",21),a(4,"Click here to learn how to manually activate the location permission"),e()())}function T(r,n){if(r&1){let t=w();o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),a(4,"Geo Fencing"),e(),o(5,"p",4),a(6,"You are about to sign-in from this location"),e(),o(7,"div",5)(8,"div",6)(9,"div",7)(10,"span",8),a(11,"LAT"),e(),o(12,"span",9),a(13),e()(),o(14,"div",7)(15,"span",10),a(16,"LONG"),e(),o(17,"span",11),a(18),e()()(),o(19,"button",12),S("click",function(){E(t);let d=x();return y(d.proceed())}),a(20,"Proceed"),e()(),g(21,N,5,0,"div",13),e(),o(22,"div",14),f(23,"img",15),e()(),o(24,"div",16)(25,"div",17)(26,"div")(27,"span"),a(28,"powered by :"),e(),f(29,"a",18)(30,"img",19),e()()()()}if(r&2){let t=n,i=x();l(2),L(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),h(t.latitude),l(5),h(t.longitude),l(),M("disabled",!(t.latitude&&t.longitude)),l(2),u(t.latitude&&t.longitude?-1:21)}}var z=class r{constructor(n,t,i,d){this.ngZone=n;this.auth=t;this.http=i;this.router=d}centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong$;ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body");let n=v(navigator.permissions.query({name:"geolocation"})).pipe(m(t=>new s(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),p(1));this.latLong$=n.pipe(m(()=>new s(t=>{navigator.geolocation.getCurrentPosition(i=>this.ngZone.run(()=>{t.next({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()}),t.complete()}),()=>this.ngZone.run(()=>{t.next({latitude:"",longitude:""}),t.complete()}),{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})})),_({latitude:"",longitude:""}),p(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(m(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),C(n=>this.auth.saveLoginConfigToStorage(n)),m(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(c(O),c(Z),c(j),c(G))};static \u0275cmp=P({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-last","form-pane"],[1,"text-start"],[1,"text-start","mb-7"],[1,"d-flex","flex-column","flex-md-row",2,"column-gap","10px"],[1,"latlong-container","d-flex","flex-grow-1"],[1,"flex-grow-1","text-start","d-flex"],[1,"lat-label","fw-bold"],[1,"ps-5","lat-value","flex-grow-1","d-flex","align-items-center"],[1,"long-label","fw-bold"],[1,"ps-5","long-value","flex-grow-1","d-flex","align-items-center"],[1,"btn","btn-success","mt-5","mx-auto","mx-md-0","mt-md-0","w-25","w-md-100",3,"click","disabled"],[1,"text-start","mt-7"],[1,"col-md-5","order-md-last","order-first","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane","py-6"],["src","https://cdn.dealpos.xyz/web-image/geolocation-map.png",1,"border-0","w-100"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","https://cdn.dealpos.app/public/logo/dealpos_130.png",1,"ms-3","border-0"],[1,"text-danger"],["href","https://support.dealpos.com/en/articles/7963864-enable-location-services-for-several-browser","target","_blank",1,"d-block"]],template:function(t,i){if(t&1&&(g(0,T,31,6,"div",0),k(1,"async")),t&2){let d;u((d=A(1,1,i.latLong$))?0:-1,d)}},dependencies:[R,I],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:2rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}.latlong-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #000000;border-radius:5px}.latlong-container[_ngcontent-%COMP%] .lat-label[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{display:inline-block;padding:12px;border-right:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{border-left:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .lat-value[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-value[_ngcontent-%COMP%]{background:#d9d9d94d}"]})};export{z as AuthGeolocationComponent};
1
+ import{c as Z}from"./chunk-MQJYDD5Z.js";import"./chunk-6CKBVQDM.js";import"./chunk-DQLTY6WY.js";import"./chunk-AL3ZHUTZ.js";import{a as D}from"./chunk-WUV22SZ4.js";import"./chunk-HJWAAOFP.js";import{s as j}from"./chunk-ELAN2H2C.js";import{$ as _,Bb as g,Db as u,Ic as k,Jc as A,Mb as o,N as b,Nb as e,Ob as f,Sb as w,Tb as M,Td as G,Wb as S,Xb as x,Y as p,Ya as l,_a as O,aa as m,c as s,fa as C,fb as c,ic as L,jb as P,kc as a,lc as h,n as v,sd as I,ua as E,va as y,zd as R}from"./chunk-Y2L5QWEJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function N(r,n){r&1&&(o(0,"div",13)(1,"span",20),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",21),a(4,"Click here to learn how to manually activate the location permission"),e()())}function T(r,n){if(r&1){let t=w();o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),a(4,"Geo Fencing"),e(),o(5,"p",4),a(6,"You are about to sign-in from this location"),e(),o(7,"div",5)(8,"div",6)(9,"div",7)(10,"span",8),a(11,"LAT"),e(),o(12,"span",9),a(13),e()(),o(14,"div",7)(15,"span",10),a(16,"LONG"),e(),o(17,"span",11),a(18),e()()(),o(19,"button",12),S("click",function(){E(t);let d=x();return y(d.proceed())}),a(20,"Proceed"),e()(),g(21,N,5,0,"div",13),e(),o(22,"div",14),f(23,"img",15),e()(),o(24,"div",16)(25,"div",17)(26,"div")(27,"span"),a(28,"powered by :"),e(),f(29,"a",18)(30,"img",19),e()()()()}if(r&2){let t=n,i=x();l(2),L(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),h(t.latitude),l(5),h(t.longitude),l(),M("disabled",!(t.latitude&&t.longitude)),l(2),u(t.latitude&&t.longitude?-1:21)}}var z=class r{constructor(n,t,i,d){this.ngZone=n;this.auth=t;this.http=i;this.router=d}centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong$;ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body");let n=v(navigator.permissions.query({name:"geolocation"})).pipe(m(t=>new s(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),p(1));this.latLong$=n.pipe(m(()=>new s(t=>{navigator.geolocation.getCurrentPosition(i=>this.ngZone.run(()=>{t.next({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()}),t.complete()}),()=>this.ngZone.run(()=>{t.next({latitude:"",longitude:""}),t.complete()}),{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})})),_({latitude:"",longitude:""}),p(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(m(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),C(n=>this.auth.saveLoginConfigToStorage(n)),m(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(c(O),c(Z),c(j),c(G))};static \u0275cmp=P({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-last","form-pane"],[1,"text-start"],[1,"text-start","mb-7"],[1,"d-flex","flex-column","flex-md-row",2,"column-gap","10px"],[1,"latlong-container","d-flex","flex-grow-1"],[1,"flex-grow-1","text-start","d-flex"],[1,"lat-label","fw-bold"],[1,"ps-5","lat-value","flex-grow-1","d-flex","align-items-center"],[1,"long-label","fw-bold"],[1,"ps-5","long-value","flex-grow-1","d-flex","align-items-center"],[1,"btn","btn-success","mt-5","mx-auto","mx-md-0","mt-md-0","w-25","w-md-100",3,"click","disabled"],[1,"text-start","mt-7"],[1,"col-md-5","order-md-last","order-first","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane","py-6"],["src","https://cdn.dealpos.xyz/web-image/geolocation-map.png",1,"border-0","w-100"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","https://cdn.dealpos.app/public/logo/dealpos_130.png",1,"ms-3","border-0"],[1,"text-danger"],["href","https://support.dealpos.com/en/articles/7963864-enable-location-services-for-several-browser","target","_blank",1,"d-block"]],template:function(t,i){if(t&1&&(g(0,T,31,6,"div",0),k(1,"async")),t&2){let d;u((d=A(1,1,i.latLong$))?0:-1,d)}},dependencies:[R,I],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:2rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}.latlong-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #000000;border-radius:5px}.latlong-container[_ngcontent-%COMP%] .lat-label[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{display:inline-block;padding:12px;border-right:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{border-left:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .lat-value[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-value[_ngcontent-%COMP%]{background:#d9d9d94d}"]})};export{z as AuthGeolocationComponent};
@@ -1 +1 @@
1
- import{a as Ge}from"./chunk-YSSTG3C7.js";import{a as Ne,f as Ae}from"./chunk-4KLH7P6M.js";import{b as Le,c as Re,d as Be,e as We,f as je,g as ze}from"./chunk-5EJZ4SLS.js";import"./chunk-QV7JAXIQ.js";import{b as $e}from"./chunk-ZHFXBX4S.js";import"./chunk-I2VRQAVX.js";import"./chunk-WZ4H2QCH.js";import"./chunk-MAZTVHVF.js";import{d as Fe}from"./chunk-JNIORAXC.js";import"./chunk-FYL3GGVQ.js";import{b as ve}from"./chunk-LENDLHAV.js";import{a as Se}from"./chunk-P2Z4YGQM.js";import"./chunk-VL2K4VS6.js";import{c as xe}from"./chunk-NXZ3FBIN.js";import"./chunk-VUTMWXCW.js";import"./chunk-RXYWOHIG.js";import"./chunk-WD2MPWG4.js";import"./chunk-M2Q4FY2T.js";import"./chunk-WJQ2ONA3.js";import"./chunk-Y2SIZH42.js";import"./chunk-5JBGYOM3.js";import"./chunk-2RXQF7XL.js";import"./chunk-TTIBJA6T.js";import{b as De,c as ke,f as Ue,g as Ve}from"./chunk-6OOHHORS.js";import"./chunk-HIB6FWMC.js";import"./chunk-EI6LHFOD.js";import"./chunk-HKRRRS5Z.js";import"./chunk-VUQURUMC.js";import"./chunk-PSWOJ5IT.js";import"./chunk-KUQLG62N.js";import"./chunk-UKR6WSMU.js";import"./chunk-EXDHBZKS.js";import"./chunk-7JQAOKYW.js";import{e as Pe,f as Oe}from"./chunk-NRJ4PU3O.js";import{a as be,b as Ee}from"./chunk-LUCT5DHX.js";import"./chunk-D7IVR7NS.js";import"./chunk-TTUOKG4X.js";import"./chunk-F3X26H2E.js";import{a as Te,b as Me}from"./chunk-ET5PLR24.js";import"./chunk-73QKSUFY.js";import"./chunk-65TS2FI5.js";import"./chunk-BQATLA3U.js";import"./chunk-YMCW77AL.js";import"./chunk-YNQPX5G6.js";import{O as q}from"./chunk-YIUT3U63.js";import"./chunk-KBGHJVCP.js";import{a as we,b as Ie,c as ye}from"./chunk-MI6NPOA7.js";import"./chunk-XYUERTH2.js";import"./chunk-PXAONONR.js";import"./chunk-WCNEGT6N.js";import"./chunk-433OILLE.js";import"./chunk-K3VG42QW.js";import"./chunk-62FLHAOF.js";import"./chunk-UPFQNTMD.js";import"./chunk-YOLOS4V7.js";import"./chunk-2FWFPV5I.js";import{pa as he}from"./chunk-JYQVZO6Y.js";import{F as W,G as ge,h as _e,o as fe}from"./chunk-GI3LYHJ6.js";import"./chunk-DTIDKORL.js";import"./chunk-DM5BLZ6V.js";import"./chunk-DQLTY6WY.js";import"./chunk-AL3ZHUTZ.js";import"./chunk-WUV22SZ4.js";import{a as ue}from"./chunk-4535ZV2A.js";import{s as Ce}from"./chunk-ELAN2H2C.js";import{$b as F,Ac as le,Bb as v,Bc as ae,Da as V,Db as b,Dc as pe,E as Y,Eb as te,Gb as ie,Hb as ne,I as J,Ib as c,Ic as g,Jb as n,Jc as C,Kb as o,Kc as me,Lb as w,Pb as E,Qb as P,Sb as x,Ta as Z,Vb as f,Wc as H,Xb as s,Xc as R,Y as z,Ya as p,Yb as oe,Zb as Q,aa as X,ac as N,bc as A,fa as $,fb as G,fc as L,hc as re,jb as y,k as K,kc as l,kd as se,lc as d,mc as I,nb as ee,pb as T,pc as O,qa as M,qc as D,rc as k,sd as de,ua as u,va as _,wd as ce,zd as B}from"./chunk-Y2L5QWEJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Ye=["stepperRef"],Je=[[["preview"]],[["complete"]]],Xe=["preview","complete"];function Ze(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function et(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function tt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function it(t,r){t&1&&(w(0,"i",8),n(1,"span"),l(2,"Upload"),o())}function nt(t,r){if(t&1){let e=x();n(0,"div",9)(1,"div",10)(2,"POS-uppy",11),f("fileUploaded",function(i){u(e);let m=s(2);return _(m.onDropFile(i))}),o()(),n(3,"div",12)(4,"p",13),l(5," Please refer this "),n(6,"a",14),l(7,"article"),o(),l(8," for more information "),o()()()}if(t&2){let e=s(2);p(2),c("sampleUrl",e.sampleUrl())("subtitle","Accepted file formats: .csv & max file size: 1 MB"),p(4),c("href",e.articleLink(),Z)}}function ot(t,r){if(t&1&&v(0,nt,9,3,"div",9),t&2){s();let e=L(1);b(e.selectedIndex===0?0:-1)}}function rt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function lt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function at(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function pt(t,r){t&1&&(w(0,"i",15),n(1,"span"),l(2,"Preview"),o())}function mt(t,r){t&1&&Q(0)}function st(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function dt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function ct(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function ut(t,r){t&1&&(w(0,"i",16),n(1,"span"),l(2,"Finish"),o())}function _t(t,r){t&1&&Q(0,1)}var S=(function(t){return t[t.UPLOAD=0]="UPLOAD",t[t.PREVIEW=1]="PREVIEW",t[t.COMPLETE=2]="COMPLETE",t})(S||{}),He=(()=>{let r=class r{constructor(){this.sampleUrl=R(""),this.articleLink=R(),this._onDropFile=H({alias:"onDropFile"}),this.disabledEdit=R(!1),this._onStateChange=H({alias:"onStateChange"}),console.log("Import Stepper Component Initialized")}get stepper(){return this._stepper}nextStep(){this._stepper&&(this.stepper.selected&&(this.stepper.selected.completed=!0),this._stepper.next())}previousStep(){this._stepper&&this._stepper.previous()}resetStep(){this._stepper&&this._stepper.reset()}onStepChange(a){a.selectedIndex===1?this._onStateChange.emit(S.PREVIEW):a.selectedIndex===2?this._onStateChange.emit(S.COMPLETE):this._onStateChange.emit(S.UPLOAD)}onDropFile(a){this._onDropFile.emit(a)}onRemoveFile(){}stateUpload(){}};r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=y({type:r,selectors:[["pos-import-stepper"]],viewQuery:function(i,m){if(i&1&&F(Ye,5),i&2){let h;N(h=A())&&(m._stepper=h.first)}},inputs:{sampleUrl:[1,"sampleUrl"],articleLink:[1,"articleLink"],disabledEdit:[1,"disabledEdit"]},outputs:{_onDropFile:"onDropFile",_onStateChange:"onStateChange"},ngContentSelectors:Xe,decls:20,vars:7,consts:[["stepperRef",""],[3,"selectionChange","linear"],[3,"completed","editable"],["matStepperIcon","done"],["matStepperIcon","create"],["matStepperIcon","edit"],["matStepLabel",""],["matStepContent",""],[1,"fa-solid","fa-upload","me-3"],[1,"d-flex","flex-column","align-items-center","justify-content-center","gap-2"],[2,"max-width","580px"],["file","",3,"fileUploaded","sampleUrl","subtitle"],[1,"d-flex","w-100",2,"max-width","580px"],[1,"fst-italic"],["target","_blank",3,"href"],[1,"fa-regular","fa-file","me-3"],[1,"fa-solid","fa-check","me-3"]],template:function(i,m){if(i&1){let h=x();oe(Je),n(0,"mat-stepper",1,0),f("selectionChange",function(Ke){return u(h),_(m.onStepChange(Ke))}),n(2,"mat-step",2),T(3,Ze,1,1,"ng-template",3)(4,et,1,1,"ng-template",4)(5,tt,1,1,"ng-template",5)(6,it,3,0,"ng-template",6)(7,ot,1,1,"ng-template",7),o(),n(8,"mat-step",2),T(9,rt,1,1,"ng-template",3)(10,lt,1,1,"ng-template",4)(11,at,1,1,"ng-template",5)(12,pt,3,0,"ng-template",6)(13,mt,1,0,"ng-template",7),o(),n(14,"mat-step",2),T(15,st,1,1,"ng-template",3)(16,dt,1,1,"ng-template",4)(17,ct,1,1,"ng-template",5)(18,ut,3,0,"ng-template",6)(19,_t,1,0,"ng-template",7),o()()}i&2&&(c("linear",!0),p(2),c("completed",!1)("editable",!m.disabledEdit()),p(6),c("completed",!1)("editable",!m.disabledEdit()),p(6),c("completed",!1)("editable",!1))},dependencies:[xe,W,ge,Se,ve,$e,Fe,ze,We,Le,je,Re,Be],styles:[".mat-horizontal-stepper-header-container{width:50%!important;margin:0 auto} .mat-horizontal-stepper-wrapper{gap:1rem} .mat-horizontal-stepper-content{display:flex;justify-content:center} p-table .p-datatable-tbody>tr{border-bottom-width:1px;border-color:#dee2e6} p-table .p-datatable-tbody>tr>th{font-family:Roboto,system-ui!important;font-weight:400;font-style:normal} .p-datatable .p-datatable-wrapper .p-datatable-table .p-datatable-thead>tr>th{font-family:Roboto,Courier,monospace;font-weight:700;font-style:normal;color:#333} .p-datatable .p-datatable-wrapper .p-datatable-table .p-datatable-tbody>tr>td{font-family:Roboto,Courier,monospace;font-weight:400;font-style:normal;color:#333}"]});let t=r;return t})();var j=class t{configModal=new Te;dialogRef=M(we);data=M(Ie);constructor(){this.initDialogConfig()}initDialogConfig(){this.configModal.title="Preview Summary",this.configModal.hideCancel=!0,this.configModal.okText="Import (F2)",this.configModal.customWidth="500px"}onOk(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-dialog-import-preview"]],decls:30,vars:10,consts:[[3,"onOk","onCancel","onClose","config"],[1,"card","mb-0"],[1,"card-header","py-6","bg-gradient-success"],[1,"card-body"],[1,"row"],[1,"col"],[1,"d-flex","flex-column","gap-2"],[2,"font-size","1.9rem"],[2,"font-size","1rem"]],template:function(e,a){e&1&&(n(0,"modal-material",0),f("onOk",function(){return a.onOk()})("onCancel",function(){return a.onClose()})("onClose",function(){return a.onClose()}),w(1,"header"),n(2,"content")(3,"div",1)(4,"div",2)(5,"h3"),l(6,"Import Summary"),o()(),n(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"span",7),l(12),g(13,"number"),o(),n(14,"span",8),l(15,"New Outlet"),o()()(),n(16,"div",5)(17,"div",6)(18,"span",7),l(19),g(20,"number"),o(),n(21,"span",8),l(22,"Update Outlet"),o()()(),n(23,"div",5)(24,"div",6)(25,"span",7),l(26),g(27,"number"),o(),n(28,"span",8),l(29,"New Outlet Group"),o()()()()()()()()),e&2&&(c("config",a.configModal),p(12),d(C(13,4,a.data==null?null:a.data.new)),p(7),d(C(20,6,a.data==null?null:a.data.update)),p(7),d(C(27,8,a.data==null?null:a.data.newOutletGroup)))},dependencies:[B,Me,ce],encapsulation:2})};var Ct=["importStepper"],ht=()=>({"min-width":"50rem"}),xt=(t,r,e)=>({"btn-success":t,"btn-outline-secondary":r,"not-allowed":e}),St=t=>({"mb-1":t});function vt(t,r){if(t&1){let e=x();n(0,"button",14),f("click",function(){u(e);let i=s();return _(i.onPreviousStep())}),l(1," Back "),o()}}function bt(t,r){if(t&1){let e=x();n(0,"button",15),g(1,"async"),g(2,"async"),f("click",function(){u(e);let i=s();return _(i.onNextStep())}),l(3," Next "),o()}if(t&2){let e,a,i=s();c("ngClass",pe(6,xt,i.currentState()===1,i.currentState()!==1,!((e=C(1,2,i.importPreview$))!=null&&e.CanProceed)))("disabled",!((a=C(2,4,i.importPreview$))!=null&&a.CanProceed)&&i.currentState()===1)}}function wt(t,r){if(t&1){let e=x();n(0,"button",14),f("click",function(){u(e);let i=s();return _(i.onReset())}),l(1," New "),o()}}function It(t,r){if(t&1){let e=x();n(0,"tr")(1,"th",16),l(2,"Name"),o(),n(3,"th",17),l(4,"Code"),o(),n(5,"th",18),l(6," Status "),n(7,"i",19),f("click",function(i){u(e);let m=L(9);return _(m.toggle(i))}),o(),n(8,"p-popover",null,1)(10,"div",20)(11,"div",21)(12,"p-checkbox",22),f("ngModelChange",function(i){u(e);let m=s();return _(m.selectAll(i))}),o(),n(13,"label",23),l(14,"All"),o()(),n(15,"div",24)(16,"p-checkbox",25),k("ngModelChange",function(i){u(e);let m=s();return D(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(17,"label",26),l(18,"Unchanged"),o()(),n(19,"div",24)(20,"p-checkbox",27),k("ngModelChange",function(i){u(e);let m=s();return D(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(21,"label",28),l(22,"New"),o()(),n(23,"div",24)(24,"p-checkbox",29),k("ngModelChange",function(i){u(e);let m=s();return D(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(25,"label",30),l(26,"Error"),o()(),n(27,"div",24)(28,"p-checkbox",31),k("ngModelChange",function(i){u(e);let m=s();return D(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(29,"label",32),l(30,"Update"),o()()()()(),n(31,"th"),l(32,"Message"),o()()}if(t&2){let e=s();p(12),c("ngModel",e.pickAll),p(4),O("ngModel",e.filterTreeCondition),p(4),O("ngModel",e.filterTreeCondition),p(4),O("ngModel",e.filterTreeCondition),p(4),O("ngModel",e.filterTreeCondition)}}function yt(t,r){if(t&1&&(n(0,"div",33)(1,"span",34),l(2),o(),n(3,"span"),l(4),o()()),t&2){let e=r.$implicit,a=r.$index,i=s().$implicit;c("ngClass",ae(3,St,a<i.Issues.length-1)),p(2),I(" ",e.Issue,". "),p(2),I("",e.Solution," ")}}function Tt(t,r){if(t&1&&(n(0,"tr")(1,"td"),l(2),o(),n(3,"td"),l(4),o(),n(5,"td"),l(6),o(),n(7,"td"),ie(8,yt,5,5,"div",33,te),o()()),t&2){let e=r.$implicit;p(2),d(e.Name),p(2),d(e.Code),p(),re("bg-gradient-success",e.Action=="New")("bg-gradient-warning",e.Action=="Update")("bg-gradient-danger",e.Action=="Error"),p(),I(" ",e.Action," "),p(2),ne(e.Issues)}}function Mt(t,r){if(t&1&&(n(0,"div",37)(1,"span"),l(2),o(),l(3,", "),n(4,"span"),l(5),o(),n(6,"span"),l(7),o(),n(8,"span"),l(9,"succesfully imported"),o()()),t&2){let e=r;p(2),I("",e==null?null:e.Summary.NewOutlet," New Outlets"),p(3),I("",e==null?null:e.Summary.UpdateOutlet," Updated Outlets"),p(2),I("and ",e==null?null:e.Summary.NewOutletGroup," New Outlet Group")}}function Et(t,r){if(t&1&&(n(0,"div",13),w(1,"i",35),n(2,"h1",36),l(3,"Upload Complete!"),o(),v(4,Mt,10,3,"div",37),g(5,"async"),o()),t&2){let e,a=s();p(4),b((e=C(5,1,a.importPreview$))?4:-1,e)}}var qe=class t extends be{constructor(e,a){super(e);this.httpService=a;this.menuData$.subscribe()}pickAll=["All"];filterTreeCondition=["Unchanged","New","Error","Update"];importStepper;fileToImport=V(null);importPreview$;sampleImportFileUrl=ue.files.csv.outlet_import;articleLink="https://support.dealpos.com/en/articles/11069092-import-new-outlet";currentState=V(S.UPLOAD);confirmImport$;importPreview=V(null);dialog=M(ye);onDropFile(e){this.fileToImport.set(e)}onNextStep(){switch(this.currentState()){case S.UPLOAD:this.onPreviewImport();break;case S.PREVIEW:this.onImport();break;default:break}}onPreviousStep(){this.importStepper.previousStep()}onReset(){this.importPreview.set(null),this.importPreview$=null,this.confirmImport$=null,this.fileToImport.set(null),this.currentState.update(()=>S.UPLOAD),this.importStepper.resetStep()}onStateChange(e){this.currentState.update(()=>e)}onPreviewImport(){this.pickAll=["All"],this.filterTreeCondition=["Unchanged","New","Error","Update"];let e=new FormData;e.append("file",this.fileToImport()),this.importPreview$=this.httpService.postFormData(q.previewImportOutlet,e).pipe($(a=>{this.importPreview.set(a),this.importStepper.nextStep()}),z(1))}onImport(){this.confirmImport$=this.dialog.open(j,{data:{new:this.importPreview()?.Summary?.NewOutlet,update:this.importPreview()?.Summary?.UpdateOutlet,newOutletGroup:this.importPreview()?.Summary?.NewOutletGroup}}).afterClosed().pipe(Y(e=>e==!0),X(()=>this.httpService.post(q.importOutlet,{CacheKey:this.importPreview()?.CacheKey})),$(e=>{this.importStepper.nextStep()}),J(e=>(this.pickAll=[],this.filterTreeCondition=["Error"],K)),z(1))}selectAll(e){this.pickAll=e,this.pickAll.length==0?this.filterTreeCondition=[]:this.filterTreeCondition=["Unchanged","New","Error","Update"]}static \u0275fac=function(a){return new(a||t)(G(Ee),G(Ce))};static \u0275cmp=y({type:t,selectors:[["app-outlet-import"]],viewQuery:function(a,i){if(a&1&&F(Ct,5),a&2){let m;N(m=A())&&(i.importStepper=m.first)}},features:[ee],decls:17,vars:21,consts:[["importStepper",""],["op",""],[3,"pageData","hideSearchBox","hideSearchDropdown"],["ngProjectAs","actions",5,["actions"]],["type","button",1,"btn","btn-outline-secondary"],[1,"btn",3,"ngClass","disabled"],["ngProjectAs","content",5,["content"]],[3,"onDropFile","onStateChange","sampleUrl","disabledEdit","articleLink"],["ngProjectAs","preview",5,["preview"]],[1,"w-100",3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["ngProjectAs","complete",5,["complete"]],[1,"d-flex","flex-column","align-items-center"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"btn",3,"click","ngClass","disabled"],[2,"width","300px"],[2,"width","200px"],[2,"width","100px"],[1,"fa","fa-filter","pointer",3,"click"],[2,"width","150px"],[1,"border-bottom","pb-3","d-flex","align-items-center","column-gap-3"],["label","Select All","name","filterTreeCondition","value","All","inputId","all",3,"ngModelChange","ngModel"],["for","all",1,"ms-2"],[1,"mt-4","d-flex","align-items-center","column-gap-3"],["label","Unchanged","name","filterTreeCondition","value","Unchanged","inputId","unchanged",3,"ngModelChange","ngModel"],["for","unchanged",1,"ms-2"],["label","New","name","filterTreeCondition","value","New","inputId","new",3,"ngModelChange","ngModel"],["for","new",1,"ms-2"],["label","Error","name","filterTreeCondition","value","Error","inputId","error",3,"ngModelChange","ngModel"],["for","error",1,"ms-2"],["label","Updated","name","filterTreeCondition","value","Update","inputId","update",3,"ngModelChange","ngModel"],["for","update",1,"ms-2"],[3,"ngClass"],[1,"me-1"],[1,"fa-solid","fa-circle-check","text-success",2,"font-size","110px"],[1,"mt-8"],[1,"d-flex","gap-2","fw-normal","fs-4","mt-2"]],template:function(a,i){if(a&1){let m=x();n(0,"mainpanel-cmp",2),E(1,3),v(2,vt,2,0,"button",4),v(3,bt,4,10,"button",5),v(4,wt,2,0,"button",4),P(),E(5,6),n(6,"pos-import-stepper",7,0),f("onDropFile",function(U){return u(m),_(i.onDropFile(U))})("onStateChange",function(U){return u(m),_(i.onStateChange(U))}),E(8,8),n(9,"p-table",9),g(10,"async"),g(11,"filterTree"),T(12,It,33,5,"ng-template",10)(13,Tt,10,9,"ng-template",11),o(),P(),E(14,12),v(15,Et,6,3,"div",13),g(16,"async"),P(),o(),P(),o()}if(a&2){let m,h;c("pageData",i.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),p(2),b(i.currentState()==1?2:-1),p(),b(i.fileToImport()&&((m=i.fileToImport())==null?null:m.size)>0&&i.currentState()<2?3:-1),p(),b(i.currentState()===2?4:-1),p(2),c("sampleUrl",i.sampleImportFileUrl)("disabledEdit",i.currentState()===2)("articleLink",i.articleLink),p(3),c("value",me(11,15,(h=C(10,13,i.importPreview$))==null?null:h.DataRow,i.filterTreeCondition))("scrollable",!0)("tableStyle",le(20,ht)),p(6),b(C(16,18,i.confirmImport$)?15:-1)}},dependencies:[B,se,He,Ve,Ue,Ae,Ne,he,Oe,Pe,W,_e,fe,ke,De,de,Ge],encapsulation:2})};export{qe as OutletImportComponent};
1
+ import{a as Ge}from"./chunk-YSSTG3C7.js";import{a as Ne,f as Ae}from"./chunk-SGP6TSVE.js";import{b as Le,c as Re,d as Be,e as We,f as je,g as ze}from"./chunk-5EJZ4SLS.js";import"./chunk-QV7JAXIQ.js";import{b as $e}from"./chunk-ZHFXBX4S.js";import"./chunk-I2VRQAVX.js";import"./chunk-WZ4H2QCH.js";import"./chunk-MAZTVHVF.js";import{d as Fe}from"./chunk-JNIORAXC.js";import"./chunk-FYL3GGVQ.js";import{b as ve}from"./chunk-LENDLHAV.js";import{a as Se}from"./chunk-P2Z4YGQM.js";import"./chunk-VL2K4VS6.js";import{c as xe}from"./chunk-NXZ3FBIN.js";import"./chunk-VUTMWXCW.js";import"./chunk-RXYWOHIG.js";import"./chunk-WD2MPWG4.js";import"./chunk-RSJI5JD7.js";import"./chunk-WJQ2ONA3.js";import"./chunk-Y2SIZH42.js";import"./chunk-5JBGYOM3.js";import"./chunk-2RXQF7XL.js";import"./chunk-TTIBJA6T.js";import{b as De,c as ke,f as Ue,g as Ve}from"./chunk-QKA56UGP.js";import"./chunk-H3SM6SIC.js";import"./chunk-EI6LHFOD.js";import"./chunk-HKRRRS5Z.js";import"./chunk-VUQURUMC.js";import"./chunk-PSWOJ5IT.js";import"./chunk-KUQLG62N.js";import"./chunk-UKR6WSMU.js";import"./chunk-EXDHBZKS.js";import"./chunk-7JQAOKYW.js";import{e as Pe,f as Oe}from"./chunk-6JSUKQBX.js";import{a as be,b as Ee}from"./chunk-BK7PCS2K.js";import"./chunk-D7IVR7NS.js";import"./chunk-TTUOKG4X.js";import"./chunk-F3X26H2E.js";import{a as Te,b as Me}from"./chunk-ET5PLR24.js";import"./chunk-73QKSUFY.js";import"./chunk-65TS2FI5.js";import"./chunk-BQATLA3U.js";import"./chunk-YMCW77AL.js";import"./chunk-YNQPX5G6.js";import{O as q}from"./chunk-YIUT3U63.js";import"./chunk-KBGHJVCP.js";import{a as we,b as Ie,c as ye}from"./chunk-MI6NPOA7.js";import"./chunk-XYUERTH2.js";import"./chunk-PXAONONR.js";import"./chunk-WCNEGT6N.js";import"./chunk-433OILLE.js";import"./chunk-K3VG42QW.js";import"./chunk-62FLHAOF.js";import"./chunk-UPFQNTMD.js";import"./chunk-YOLOS4V7.js";import"./chunk-2FWFPV5I.js";import{pa as he}from"./chunk-JYQVZO6Y.js";import{F as W,G as ge,h as _e,o as fe}from"./chunk-GI3LYHJ6.js";import"./chunk-MQJYDD5Z.js";import"./chunk-6CKBVQDM.js";import"./chunk-DQLTY6WY.js";import"./chunk-AL3ZHUTZ.js";import"./chunk-WUV22SZ4.js";import{a as ue}from"./chunk-HJWAAOFP.js";import{s as Ce}from"./chunk-ELAN2H2C.js";import{$b as F,Ac as le,Bb as v,Bc as ae,Da as V,Db as b,Dc as pe,E as Y,Eb as te,Gb as ie,Hb as ne,I as J,Ib as c,Ic as g,Jb as n,Jc as C,Kb as o,Kc as me,Lb as w,Pb as E,Qb as P,Sb as x,Ta as Z,Vb as f,Wc as H,Xb as s,Xc as R,Y as z,Ya as p,Yb as oe,Zb as Q,aa as X,ac as N,bc as A,fa as $,fb as G,fc as L,hc as re,jb as y,k as K,kc as l,kd as se,lc as d,mc as I,nb as ee,pb as T,pc as O,qa as M,qc as D,rc as k,sd as de,ua as u,va as _,wd as ce,zd as B}from"./chunk-Y2L5QWEJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Ye=["stepperRef"],Je=[[["preview"]],[["complete"]]],Xe=["preview","complete"];function Ze(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function et(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function tt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function it(t,r){t&1&&(w(0,"i",8),n(1,"span"),l(2,"Upload"),o())}function nt(t,r){if(t&1){let e=x();n(0,"div",9)(1,"div",10)(2,"POS-uppy",11),f("fileUploaded",function(i){u(e);let m=s(2);return _(m.onDropFile(i))}),o()(),n(3,"div",12)(4,"p",13),l(5," Please refer this "),n(6,"a",14),l(7,"article"),o(),l(8," for more information "),o()()()}if(t&2){let e=s(2);p(2),c("sampleUrl",e.sampleUrl())("subtitle","Accepted file formats: .csv & max file size: 1 MB"),p(4),c("href",e.articleLink(),Z)}}function ot(t,r){if(t&1&&v(0,nt,9,3,"div",9),t&2){s();let e=L(1);b(e.selectedIndex===0?0:-1)}}function rt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function lt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function at(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function pt(t,r){t&1&&(w(0,"i",15),n(1,"span"),l(2,"Preview"),o())}function mt(t,r){t&1&&Q(0)}function st(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function dt(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function ct(t,r){if(t&1&&l(0),t&2){let e=r.index;d(e+1)}}function ut(t,r){t&1&&(w(0,"i",16),n(1,"span"),l(2,"Finish"),o())}function _t(t,r){t&1&&Q(0,1)}var S=(function(t){return t[t.UPLOAD=0]="UPLOAD",t[t.PREVIEW=1]="PREVIEW",t[t.COMPLETE=2]="COMPLETE",t})(S||{}),He=(()=>{let r=class r{constructor(){this.sampleUrl=R(""),this.articleLink=R(),this._onDropFile=H({alias:"onDropFile"}),this.disabledEdit=R(!1),this._onStateChange=H({alias:"onStateChange"}),console.log("Import Stepper Component Initialized")}get stepper(){return this._stepper}nextStep(){this._stepper&&(this.stepper.selected&&(this.stepper.selected.completed=!0),this._stepper.next())}previousStep(){this._stepper&&this._stepper.previous()}resetStep(){this._stepper&&this._stepper.reset()}onStepChange(a){a.selectedIndex===1?this._onStateChange.emit(S.PREVIEW):a.selectedIndex===2?this._onStateChange.emit(S.COMPLETE):this._onStateChange.emit(S.UPLOAD)}onDropFile(a){this._onDropFile.emit(a)}onRemoveFile(){}stateUpload(){}};r.\u0275fac=function(i){return new(i||r)},r.\u0275cmp=y({type:r,selectors:[["pos-import-stepper"]],viewQuery:function(i,m){if(i&1&&F(Ye,5),i&2){let h;N(h=A())&&(m._stepper=h.first)}},inputs:{sampleUrl:[1,"sampleUrl"],articleLink:[1,"articleLink"],disabledEdit:[1,"disabledEdit"]},outputs:{_onDropFile:"onDropFile",_onStateChange:"onStateChange"},ngContentSelectors:Xe,decls:20,vars:7,consts:[["stepperRef",""],[3,"selectionChange","linear"],[3,"completed","editable"],["matStepperIcon","done"],["matStepperIcon","create"],["matStepperIcon","edit"],["matStepLabel",""],["matStepContent",""],[1,"fa-solid","fa-upload","me-3"],[1,"d-flex","flex-column","align-items-center","justify-content-center","gap-2"],[2,"max-width","580px"],["file","",3,"fileUploaded","sampleUrl","subtitle"],[1,"d-flex","w-100",2,"max-width","580px"],[1,"fst-italic"],["target","_blank",3,"href"],[1,"fa-regular","fa-file","me-3"],[1,"fa-solid","fa-check","me-3"]],template:function(i,m){if(i&1){let h=x();oe(Je),n(0,"mat-stepper",1,0),f("selectionChange",function(Ke){return u(h),_(m.onStepChange(Ke))}),n(2,"mat-step",2),T(3,Ze,1,1,"ng-template",3)(4,et,1,1,"ng-template",4)(5,tt,1,1,"ng-template",5)(6,it,3,0,"ng-template",6)(7,ot,1,1,"ng-template",7),o(),n(8,"mat-step",2),T(9,rt,1,1,"ng-template",3)(10,lt,1,1,"ng-template",4)(11,at,1,1,"ng-template",5)(12,pt,3,0,"ng-template",6)(13,mt,1,0,"ng-template",7),o(),n(14,"mat-step",2),T(15,st,1,1,"ng-template",3)(16,dt,1,1,"ng-template",4)(17,ct,1,1,"ng-template",5)(18,ut,3,0,"ng-template",6)(19,_t,1,0,"ng-template",7),o()()}i&2&&(c("linear",!0),p(2),c("completed",!1)("editable",!m.disabledEdit()),p(6),c("completed",!1)("editable",!m.disabledEdit()),p(6),c("completed",!1)("editable",!1))},dependencies:[xe,W,ge,Se,ve,$e,Fe,ze,We,Le,je,Re,Be],styles:[".mat-horizontal-stepper-header-container{width:50%!important;margin:0 auto} .mat-horizontal-stepper-wrapper{gap:1rem} .mat-horizontal-stepper-content{display:flex;justify-content:center} p-table .p-datatable-tbody>tr{border-bottom-width:1px;border-color:#dee2e6} p-table .p-datatable-tbody>tr>th{font-family:Roboto,system-ui!important;font-weight:400;font-style:normal} .p-datatable .p-datatable-wrapper .p-datatable-table .p-datatable-thead>tr>th{font-family:Roboto,Courier,monospace;font-weight:700;font-style:normal;color:#333} .p-datatable .p-datatable-wrapper .p-datatable-table .p-datatable-tbody>tr>td{font-family:Roboto,Courier,monospace;font-weight:400;font-style:normal;color:#333}"]});let t=r;return t})();var j=class t{configModal=new Te;dialogRef=M(we);data=M(Ie);constructor(){this.initDialogConfig()}initDialogConfig(){this.configModal.title="Preview Summary",this.configModal.hideCancel=!0,this.configModal.okText="Import (F2)",this.configModal.customWidth="500px"}onOk(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}ngOnInit(){}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=y({type:t,selectors:[["app-dialog-import-preview"]],decls:30,vars:10,consts:[[3,"onOk","onCancel","onClose","config"],[1,"card","mb-0"],[1,"card-header","py-6","bg-gradient-success"],[1,"card-body"],[1,"row"],[1,"col"],[1,"d-flex","flex-column","gap-2"],[2,"font-size","1.9rem"],[2,"font-size","1rem"]],template:function(e,a){e&1&&(n(0,"modal-material",0),f("onOk",function(){return a.onOk()})("onCancel",function(){return a.onClose()})("onClose",function(){return a.onClose()}),w(1,"header"),n(2,"content")(3,"div",1)(4,"div",2)(5,"h3"),l(6,"Import Summary"),o()(),n(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"span",7),l(12),g(13,"number"),o(),n(14,"span",8),l(15,"New Outlet"),o()()(),n(16,"div",5)(17,"div",6)(18,"span",7),l(19),g(20,"number"),o(),n(21,"span",8),l(22,"Update Outlet"),o()()(),n(23,"div",5)(24,"div",6)(25,"span",7),l(26),g(27,"number"),o(),n(28,"span",8),l(29,"New Outlet Group"),o()()()()()()()()),e&2&&(c("config",a.configModal),p(12),d(C(13,4,a.data==null?null:a.data.new)),p(7),d(C(20,6,a.data==null?null:a.data.update)),p(7),d(C(27,8,a.data==null?null:a.data.newOutletGroup)))},dependencies:[B,Me,ce],encapsulation:2})};var Ct=["importStepper"],ht=()=>({"min-width":"50rem"}),xt=(t,r,e)=>({"btn-success":t,"btn-outline-secondary":r,"not-allowed":e}),St=t=>({"mb-1":t});function vt(t,r){if(t&1){let e=x();n(0,"button",14),f("click",function(){u(e);let i=s();return _(i.onPreviousStep())}),l(1," Back "),o()}}function bt(t,r){if(t&1){let e=x();n(0,"button",15),g(1,"async"),g(2,"async"),f("click",function(){u(e);let i=s();return _(i.onNextStep())}),l(3," Next "),o()}if(t&2){let e,a,i=s();c("ngClass",pe(6,xt,i.currentState()===1,i.currentState()!==1,!((e=C(1,2,i.importPreview$))!=null&&e.CanProceed)))("disabled",!((a=C(2,4,i.importPreview$))!=null&&a.CanProceed)&&i.currentState()===1)}}function wt(t,r){if(t&1){let e=x();n(0,"button",14),f("click",function(){u(e);let i=s();return _(i.onReset())}),l(1," New "),o()}}function It(t,r){if(t&1){let e=x();n(0,"tr")(1,"th",16),l(2,"Name"),o(),n(3,"th",17),l(4,"Code"),o(),n(5,"th",18),l(6," Status "),n(7,"i",19),f("click",function(i){u(e);let m=L(9);return _(m.toggle(i))}),o(),n(8,"p-popover",null,1)(10,"div",20)(11,"div",21)(12,"p-checkbox",22),f("ngModelChange",function(i){u(e);let m=s();return _(m.selectAll(i))}),o(),n(13,"label",23),l(14,"All"),o()(),n(15,"div",24)(16,"p-checkbox",25),k("ngModelChange",function(i){u(e);let m=s();return D(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(17,"label",26),l(18,"Unchanged"),o()(),n(19,"div",24)(20,"p-checkbox",27),k("ngModelChange",function(i){u(e);let m=s();return D(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(21,"label",28),l(22,"New"),o()(),n(23,"div",24)(24,"p-checkbox",29),k("ngModelChange",function(i){u(e);let m=s();return D(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(25,"label",30),l(26,"Error"),o()(),n(27,"div",24)(28,"p-checkbox",31),k("ngModelChange",function(i){u(e);let m=s();return D(m.filterTreeCondition,i)||(m.filterTreeCondition=i),_(i)}),o(),n(29,"label",32),l(30,"Update"),o()()()()(),n(31,"th"),l(32,"Message"),o()()}if(t&2){let e=s();p(12),c("ngModel",e.pickAll),p(4),O("ngModel",e.filterTreeCondition),p(4),O("ngModel",e.filterTreeCondition),p(4),O("ngModel",e.filterTreeCondition),p(4),O("ngModel",e.filterTreeCondition)}}function yt(t,r){if(t&1&&(n(0,"div",33)(1,"span",34),l(2),o(),n(3,"span"),l(4),o()()),t&2){let e=r.$implicit,a=r.$index,i=s().$implicit;c("ngClass",ae(3,St,a<i.Issues.length-1)),p(2),I(" ",e.Issue,". "),p(2),I("",e.Solution," ")}}function Tt(t,r){if(t&1&&(n(0,"tr")(1,"td"),l(2),o(),n(3,"td"),l(4),o(),n(5,"td"),l(6),o(),n(7,"td"),ie(8,yt,5,5,"div",33,te),o()()),t&2){let e=r.$implicit;p(2),d(e.Name),p(2),d(e.Code),p(),re("bg-gradient-success",e.Action=="New")("bg-gradient-warning",e.Action=="Update")("bg-gradient-danger",e.Action=="Error"),p(),I(" ",e.Action," "),p(2),ne(e.Issues)}}function Mt(t,r){if(t&1&&(n(0,"div",37)(1,"span"),l(2),o(),l(3,", "),n(4,"span"),l(5),o(),n(6,"span"),l(7),o(),n(8,"span"),l(9,"succesfully imported"),o()()),t&2){let e=r;p(2),I("",e==null?null:e.Summary.NewOutlet," New Outlets"),p(3),I("",e==null?null:e.Summary.UpdateOutlet," Updated Outlets"),p(2),I("and ",e==null?null:e.Summary.NewOutletGroup," New Outlet Group")}}function Et(t,r){if(t&1&&(n(0,"div",13),w(1,"i",35),n(2,"h1",36),l(3,"Upload Complete!"),o(),v(4,Mt,10,3,"div",37),g(5,"async"),o()),t&2){let e,a=s();p(4),b((e=C(5,1,a.importPreview$))?4:-1,e)}}var qe=class t extends be{constructor(e,a){super(e);this.httpService=a;this.menuData$.subscribe()}pickAll=["All"];filterTreeCondition=["Unchanged","New","Error","Update"];importStepper;fileToImport=V(null);importPreview$;sampleImportFileUrl=ue.files.csv.outlet_import;articleLink="https://support.dealpos.com/en/articles/11069092-import-new-outlet";currentState=V(S.UPLOAD);confirmImport$;importPreview=V(null);dialog=M(ye);onDropFile(e){this.fileToImport.set(e)}onNextStep(){switch(this.currentState()){case S.UPLOAD:this.onPreviewImport();break;case S.PREVIEW:this.onImport();break;default:break}}onPreviousStep(){this.importStepper.previousStep()}onReset(){this.importPreview.set(null),this.importPreview$=null,this.confirmImport$=null,this.fileToImport.set(null),this.currentState.update(()=>S.UPLOAD),this.importStepper.resetStep()}onStateChange(e){this.currentState.update(()=>e)}onPreviewImport(){this.pickAll=["All"],this.filterTreeCondition=["Unchanged","New","Error","Update"];let e=new FormData;e.append("file",this.fileToImport()),this.importPreview$=this.httpService.postFormData(q.previewImportOutlet,e).pipe($(a=>{this.importPreview.set(a),this.importStepper.nextStep()}),z(1))}onImport(){this.confirmImport$=this.dialog.open(j,{data:{new:this.importPreview()?.Summary?.NewOutlet,update:this.importPreview()?.Summary?.UpdateOutlet,newOutletGroup:this.importPreview()?.Summary?.NewOutletGroup}}).afterClosed().pipe(Y(e=>e==!0),X(()=>this.httpService.post(q.importOutlet,{CacheKey:this.importPreview()?.CacheKey})),$(e=>{this.importStepper.nextStep()}),J(e=>(this.pickAll=[],this.filterTreeCondition=["Error"],K)),z(1))}selectAll(e){this.pickAll=e,this.pickAll.length==0?this.filterTreeCondition=[]:this.filterTreeCondition=["Unchanged","New","Error","Update"]}static \u0275fac=function(a){return new(a||t)(G(Ee),G(Ce))};static \u0275cmp=y({type:t,selectors:[["app-outlet-import"]],viewQuery:function(a,i){if(a&1&&F(Ct,5),a&2){let m;N(m=A())&&(i.importStepper=m.first)}},features:[ee],decls:17,vars:21,consts:[["importStepper",""],["op",""],[3,"pageData","hideSearchBox","hideSearchDropdown"],["ngProjectAs","actions",5,["actions"]],["type","button",1,"btn","btn-outline-secondary"],[1,"btn",3,"ngClass","disabled"],["ngProjectAs","content",5,["content"]],[3,"onDropFile","onStateChange","sampleUrl","disabledEdit","articleLink"],["ngProjectAs","preview",5,["preview"]],[1,"w-100",3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["ngProjectAs","complete",5,["complete"]],[1,"d-flex","flex-column","align-items-center"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"btn",3,"click","ngClass","disabled"],[2,"width","300px"],[2,"width","200px"],[2,"width","100px"],[1,"fa","fa-filter","pointer",3,"click"],[2,"width","150px"],[1,"border-bottom","pb-3","d-flex","align-items-center","column-gap-3"],["label","Select All","name","filterTreeCondition","value","All","inputId","all",3,"ngModelChange","ngModel"],["for","all",1,"ms-2"],[1,"mt-4","d-flex","align-items-center","column-gap-3"],["label","Unchanged","name","filterTreeCondition","value","Unchanged","inputId","unchanged",3,"ngModelChange","ngModel"],["for","unchanged",1,"ms-2"],["label","New","name","filterTreeCondition","value","New","inputId","new",3,"ngModelChange","ngModel"],["for","new",1,"ms-2"],["label","Error","name","filterTreeCondition","value","Error","inputId","error",3,"ngModelChange","ngModel"],["for","error",1,"ms-2"],["label","Updated","name","filterTreeCondition","value","Update","inputId","update",3,"ngModelChange","ngModel"],["for","update",1,"ms-2"],[3,"ngClass"],[1,"me-1"],[1,"fa-solid","fa-circle-check","text-success",2,"font-size","110px"],[1,"mt-8"],[1,"d-flex","gap-2","fw-normal","fs-4","mt-2"]],template:function(a,i){if(a&1){let m=x();n(0,"mainpanel-cmp",2),E(1,3),v(2,vt,2,0,"button",4),v(3,bt,4,10,"button",5),v(4,wt,2,0,"button",4),P(),E(5,6),n(6,"pos-import-stepper",7,0),f("onDropFile",function(U){return u(m),_(i.onDropFile(U))})("onStateChange",function(U){return u(m),_(i.onStateChange(U))}),E(8,8),n(9,"p-table",9),g(10,"async"),g(11,"filterTree"),T(12,It,33,5,"ng-template",10)(13,Tt,10,9,"ng-template",11),o(),P(),E(14,12),v(15,Et,6,3,"div",13),g(16,"async"),P(),o(),P(),o()}if(a&2){let m,h;c("pageData",i.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),p(2),b(i.currentState()==1?2:-1),p(),b(i.fileToImport()&&((m=i.fileToImport())==null?null:m.size)>0&&i.currentState()<2?3:-1),p(),b(i.currentState()===2?4:-1),p(2),c("sampleUrl",i.sampleImportFileUrl)("disabledEdit",i.currentState()===2)("articleLink",i.articleLink),p(3),c("value",me(11,15,(h=C(10,13,i.importPreview$))==null?null:h.DataRow,i.filterTreeCondition))("scrollable",!0)("tableStyle",le(20,ht)),p(6),b(C(16,18,i.confirmImport$)?15:-1)}},dependencies:[B,se,He,Ve,Ue,Ae,Ne,he,Oe,Pe,W,_e,fe,ke,De,de,Ge],encapsulation:2})};export{qe as OutletImportComponent};
@@ -1 +1 @@
1
- import{c as u}from"./chunk-DTIDKORL.js";import{b as s}from"./chunk-AL3ZHUTZ.js";import{Td as a,qa as e}from"./chunk-Y2L5QWEJ.js";var g=(t,c)=>{let r=e(a),i=e(u);if(i.isTokenExpired())return i.returnUrl=c.url,r.navigate(["/"]),!1;let d=e(s),o=t.data?.roles;if(o){let n=t.data?.unauthorizedRedirect;if(!o.some(l=>d.isUserHasRole(l)))return n?r.navigate([n]):r.navigate(["menu/Unauthorized/Main/Unauthorized"]),!1}return!0};export{g as a};
1
+ import{c as u}from"./chunk-MQJYDD5Z.js";import{b as s}from"./chunk-AL3ZHUTZ.js";import{Td as a,qa as e}from"./chunk-Y2L5QWEJ.js";var g=(t,c)=>{let r=e(a),i=e(u);if(i.isTokenExpired())return i.returnUrl=c.url,r.navigate(["/"]),!1;let d=e(s),o=t.data?.roles;if(o){let n=t.data?.unauthorizedRedirect;if(!o.some(l=>d.isUserHasRole(l)))return n?r.navigate([n]):r.navigate(["menu/Unauthorized/Main/Unauthorized"]),!1}return!0};export{g as a};
@@ -0,0 +1 @@
1
+ import{a as K}from"./chunk-47ZKJUZF.js";import{d as tt}from"./chunk-DUZVJYZN.js";import"./chunk-63PUYCTB.js";import{a as G,b as A,c as q}from"./chunk-UUGQPHXA.js";import{a as ot,b as nt}from"./chunk-CGAW4NI4.js";import{f as et}from"./chunk-IDRHF2MK.js";import{c as it}from"./chunk-W2WEHKZR.js";import{b as z}from"./chunk-UDFSIFNO.js";import{a as J}from"./chunk-5I3GRLOK.js";import"./chunk-YZWVRMVV.js";import"./chunk-XD4KE4AE.js";import"./chunk-GSO62TD4.js";import{f as Z,g as $}from"./chunk-QKA56UGP.js";import"./chunk-H3SM6SIC.js";import"./chunk-EI6LHFOD.js";import"./chunk-HKRRRS5Z.js";import"./chunk-VUQURUMC.js";import"./chunk-PSWOJ5IT.js";import"./chunk-I4P7BY3B.js";import"./chunk-KUQLG62N.js";import"./chunk-UKR6WSMU.js";import"./chunk-EXDHBZKS.js";import"./chunk-7JQAOKYW.js";import"./chunk-P3LYQU7S.js";import"./chunk-MESO3AH6.js";import"./chunk-GMJBQR3Q.js";import"./chunk-AHYB2TRD.js";import"./chunk-6JSUKQBX.js";import{b as U}from"./chunk-BK7PCS2K.js";import"./chunk-D7IVR7NS.js";import"./chunk-TTUOKG4X.js";import"./chunk-F3X26H2E.js";import"./chunk-ET5PLR24.js";import"./chunk-73QKSUFY.js";import"./chunk-65TS2FI5.js";import"./chunk-BQATLA3U.js";import"./chunk-YMCW77AL.js";import"./chunk-YNQPX5G6.js";import{N as Y,g as X}from"./chunk-YIUT3U63.js";import"./chunk-KWRWTFOP.js";import"./chunk-EQLHPWVB.js";import"./chunk-7BKTFPO6.js";import"./chunk-KBGHJVCP.js";import{c as Q}from"./chunk-MI6NPOA7.js";import"./chunk-XYUERTH2.js";import"./chunk-PXAONONR.js";import"./chunk-WCNEGT6N.js";import"./chunk-433OILLE.js";import"./chunk-K3VG42QW.js";import"./chunk-62FLHAOF.js";import"./chunk-UPFQNTMD.js";import"./chunk-YOLOS4V7.js";import"./chunk-2FWFPV5I.js";import"./chunk-JYQVZO6Y.js";import{F as j,h as R,o as W}from"./chunk-GI3LYHJ6.js";import"./chunk-MQJYDD5Z.js";import"./chunk-6CKBVQDM.js";import"./chunk-DQLTY6WY.js";import{b as k}from"./chunk-AL3ZHUTZ.js";import"./chunk-WUV22SZ4.js";import"./chunk-HJWAAOFP.js";import{s as H}from"./chunk-ELAN2H2C.js";import{Bb as D,Db as h,Eb as T,Gb as O,Hb as V,Ib as s,Ic as y,Jb as i,Jc as L,Kb as o,Kc as F,Lb as v,Oc as N,Sb as _,Vb as S,Xb as m,Ya as p,fb as u,jb as b,kc as l,lc as w,mc as P,nb as I,pb as M,pc as C,qc as x,rc as f,ua as c,va as d,zd as B}from"./chunk-Y2L5QWEJ.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"),O(12,pt,8,5,"tr",null,T),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 J{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(z,{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(U),u(H),u(Q),u(k))};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:[B,$,Z,Y,tt,et,it,j,R,W,nt,ot,q,G,A,K,X],encapsulation:2})};export{at as StorageLocationComponent};
@@ -1 +1 @@
1
- import{a as $}from"./chunk-6UDOC3ZT.js";import{a as K,b as Q}from"./chunk-NST4ROR4.js";import{a as J}from"./chunk-P2Z4YGQM.js";import{f as Y,g as Z}from"./chunk-6OOHHORS.js";import{a as U}from"./chunk-AHYB2TRD.js";import{b as X}from"./chunk-LUCT5DHX.js";import{b as q,g as z,k as G}from"./chunk-73QKSUFY.js";import{a as j,b as H}from"./chunk-YMCW77AL.js";import{a as V}from"./chunk-2FWFPV5I.js";import{F as k,c as A,h as v,o as b}from"./chunk-GI3LYHJ6.js";import{p as B,s as R}from"./chunk-ELAN2H2C.js";import{Bb as N,Db as O,Eb as y,Gb as P,Hb as w,Ib as p,Jb as o,Kb as a,Rd as L,Sb as I,Vb as c,Xb as d,Xc as g,Ya as m,Za as C,fb as h,jb as M,kc as r,lc as F,nb as D,pc as T,qc as S,rc as E,ua as u,va as f,zd as W}from"./chunk-Y2L5QWEJ.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:[W,k,A,v,b,U,H,j],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:[Q,z,q,K,G,J,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(R),h(L),h(B))};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-WVGAKP5M.js";import{a as K,b as Q}from"./chunk-NST4ROR4.js";import{a as J}from"./chunk-P2Z4YGQM.js";import{f as Y,g as Z}from"./chunk-QKA56UGP.js";import{a as U}from"./chunk-AHYB2TRD.js";import{b as X}from"./chunk-BK7PCS2K.js";import{b as q,g as z,k as G}from"./chunk-73QKSUFY.js";import{a as j,b as H}from"./chunk-YMCW77AL.js";import{a as V}from"./chunk-2FWFPV5I.js";import{F as k,c as A,h as v,o as b}from"./chunk-GI3LYHJ6.js";import{p as B,s as R}from"./chunk-ELAN2H2C.js";import{Bb as N,Db as O,Eb as y,Gb as P,Hb as w,Ib as p,Jb as o,Kb as a,Rd as L,Sb as I,Vb as c,Xb as d,Xc as g,Ya as m,Za as C,fb as h,jb as M,kc as r,lc as F,nb as D,pc as T,qc as S,rc as E,ua as u,va as f,zd as W}from"./chunk-Y2L5QWEJ.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:[W,k,A,v,b,U,H,j],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:[Q,z,q,K,G,J,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(R),h(L),h(B))};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 V}from"./chunk-2PK2FKKO.js";import{a as B}from"./chunk-6UDOC3ZT.js";import{f as J,g as q}from"./chunk-6OOHHORS.js";import"./chunk-NRJ4PU3O.js";import{b as I}from"./chunk-LUCT5DHX.js";import"./chunk-D7IVR7NS.js";import"./chunk-TTUOKG4X.js";import"./chunk-F3X26H2E.js";import"./chunk-ET5PLR24.js";import"./chunk-73QKSUFY.js";import"./chunk-65TS2FI5.js";import"./chunk-BQATLA3U.js";import{a as E,b as P}from"./chunk-YMCW77AL.js";import"./chunk-YNQPX5G6.js";import"./chunk-YIUT3U63.js";import"./chunk-KBGHJVCP.js";import"./chunk-MI6NPOA7.js";import"./chunk-XYUERTH2.js";import"./chunk-PXAONONR.js";import"./chunk-62FLHAOF.js";import"./chunk-UPFQNTMD.js";import"./chunk-YOLOS4V7.js";import"./chunk-2FWFPV5I.js";import"./chunk-JYQVZO6Y.js";import"./chunk-GI3LYHJ6.js";import"./chunk-DTIDKORL.js";import"./chunk-DM5BLZ6V.js";import"./chunk-DQLTY6WY.js";import"./chunk-AL3ZHUTZ.js";import"./chunk-WUV22SZ4.js";import"./chunk-4535ZV2A.js";import{s as M}from"./chunk-ELAN2H2C.js";import{Bb as h,Db as S,Ib as r,Ic as d,Jb as o,Jc as D,Kb as t,Kc as C,Lb as c,Rd as T,Sb as j,Vb as v,Xb as b,Ya as l,fb as m,jb as f,kc as a,lc as L,mc as x,nb as y,ua as u,ud as _,va as g,vd as k,wd as w,zd as R}from"./chunk-Y2L5QWEJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function F(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 W=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(M),m(T))};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,F,47,20,"mainpanel-cmp",0),e&2&&S(s.jobLogsDetail?0:-1)},dependencies:[R,q,J,V,P,E,k,w,_],encapsulation:2})};export{W as WebhookJobLogsDetailComponent};
1
+ import{a as V}from"./chunk-2PK2FKKO.js";import{a as B}from"./chunk-WVGAKP5M.js";import{f as J,g as q}from"./chunk-QKA56UGP.js";import"./chunk-6JSUKQBX.js";import{b as I}from"./chunk-BK7PCS2K.js";import"./chunk-D7IVR7NS.js";import"./chunk-TTUOKG4X.js";import"./chunk-F3X26H2E.js";import"./chunk-ET5PLR24.js";import"./chunk-73QKSUFY.js";import"./chunk-65TS2FI5.js";import"./chunk-BQATLA3U.js";import{a as E,b as P}from"./chunk-YMCW77AL.js";import"./chunk-YNQPX5G6.js";import"./chunk-YIUT3U63.js";import"./chunk-KBGHJVCP.js";import"./chunk-MI6NPOA7.js";import"./chunk-XYUERTH2.js";import"./chunk-PXAONONR.js";import"./chunk-62FLHAOF.js";import"./chunk-UPFQNTMD.js";import"./chunk-YOLOS4V7.js";import"./chunk-2FWFPV5I.js";import"./chunk-JYQVZO6Y.js";import"./chunk-GI3LYHJ6.js";import"./chunk-MQJYDD5Z.js";import"./chunk-6CKBVQDM.js";import"./chunk-DQLTY6WY.js";import"./chunk-AL3ZHUTZ.js";import"./chunk-WUV22SZ4.js";import"./chunk-HJWAAOFP.js";import{s as M}from"./chunk-ELAN2H2C.js";import{Bb as h,Db as S,Ib as r,Ic as d,Jb as o,Jc as D,Kb as t,Kc as C,Lb as c,Rd as T,Sb as j,Vb as v,Xb as b,Ya as l,fb as m,jb as f,kc as a,lc as L,mc as x,nb as y,ua as u,ud as _,va as g,vd as k,wd as w,zd as R}from"./chunk-Y2L5QWEJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function F(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 W=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(M),m(T))};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,F,47,20,"mainpanel-cmp",0),e&2&&S(s.jobLogsDetail?0:-1)},dependencies:[R,q,J,V,P,E,k,w,_],encapsulation:2})};export{W as WebhookJobLogsDetailComponent};