dealpos 25.42.2 → 25.43.0

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 (105) hide show
  1. package/browser/{chunk-QCEQZT7E.js → chunk-2DCP5K6S.js} +1 -1
  2. package/browser/{chunk-GGPT7WIY.js → chunk-3LKY4V7E.js} +1 -1
  3. package/browser/{chunk-SIH5NVFR.js → chunk-3REOXXPI.js} +1 -1
  4. package/browser/{chunk-OSSHGIDA.js → chunk-3WSASNIT.js} +1 -1
  5. package/browser/chunk-4G2HIE3A.js +1 -0
  6. package/browser/{chunk-C2CGBWBH.js → chunk-4JM455M6.js} +1 -1
  7. package/browser/chunk-4PPRFE5H.js +1 -0
  8. package/browser/{chunk-LQ3Q52LD.js → chunk-4SFHOQ3Y.js} +1 -1
  9. package/browser/{chunk-53ACYG5V.js → chunk-5CDAHDI5.js} +1 -1
  10. package/browser/{chunk-QFO3KUMD.js → chunk-5NDARG5X.js} +1 -1
  11. package/browser/{chunk-Q5IKPX3P.js → chunk-5SRC2QUI.js} +1 -1
  12. package/browser/{chunk-P6LA3P5N.js → chunk-64EULF5I.js} +1 -1
  13. package/browser/{chunk-HGADEAZ4.js → chunk-7C7GJT3E.js} +1 -1
  14. package/browser/{chunk-TU4O5BX3.js → chunk-7O3BTVW2.js} +1 -1
  15. package/browser/{chunk-BVVYVR6R.js → chunk-7S4WUQBK.js} +1 -1
  16. package/browser/{chunk-TSBV5MA4.js → chunk-7V7Q67KX.js} +1 -1
  17. package/browser/{chunk-6ZN7JR6K.js → chunk-7VKFVS7K.js} +1 -1
  18. package/browser/{chunk-VKJIDCM7.js → chunk-7WLFUG2A.js} +1 -1
  19. package/browser/{chunk-C32V5IHL.js → chunk-A7R2DZD3.js} +1 -1
  20. package/browser/{chunk-7MYFXXHY.js → chunk-AJCH3WAF.js} +1 -1
  21. package/browser/{chunk-D5QLS4SZ.js → chunk-AQUQUDDZ.js} +1 -1
  22. package/browser/{chunk-Z5HBVHYO.js → chunk-ASGXDOOQ.js} +1 -1
  23. package/browser/{chunk-CKSMLIVU.js → chunk-CX4UR7ZZ.js} +4 -4
  24. package/browser/{chunk-A3CWPPXF.js → chunk-CXRVPHHO.js} +1 -1
  25. package/browser/{chunk-TDO7VOF5.js → chunk-D5P4CYL5.js} +1 -1
  26. package/browser/{chunk-6IQQC2YT.js → chunk-D6VG5PSE.js} +1 -1
  27. package/browser/{chunk-XGGQUHUR.js → chunk-E7L36INB.js} +1 -1
  28. package/browser/{chunk-MW6BE5UI.js → chunk-EH6IO5FW.js} +1 -1
  29. package/browser/{chunk-GOZYJRWV.js → chunk-EJDIY62U.js} +1 -1
  30. package/browser/{chunk-IU526HWZ.js → chunk-EYE63KIO.js} +1 -1
  31. package/browser/{chunk-ERTAWD4X.js → chunk-F2Z6MRHX.js} +1 -1
  32. package/browser/{chunk-ZHIGBBGN.js → chunk-FF56HWOF.js} +5 -5
  33. package/browser/{chunk-TIX624OU.js → chunk-G2NUOEHT.js} +1 -1
  34. package/browser/{chunk-PDKNFOY7.js → chunk-GFT5QOAV.js} +1 -1
  35. package/browser/{chunk-LWDGMGFV.js → chunk-GNXJCMBC.js} +1 -1
  36. package/browser/{chunk-PZANARAM.js → chunk-HIALMESF.js} +1 -1
  37. package/browser/{chunk-O3NKN7KT.js → chunk-HYRNR45J.js} +1 -1
  38. package/browser/{chunk-G5P4GFMX.js → chunk-IE6UBT7C.js} +1 -1
  39. package/browser/chunk-IFQV5GDJ.js +1 -0
  40. package/browser/{chunk-V52QD5BS.js → chunk-IGEAG6HP.js} +1 -1
  41. package/browser/{chunk-3JVX2T6M.js → chunk-INCYKSJF.js} +1 -1
  42. package/browser/{chunk-CRJOVQ56.js → chunk-IUDDIQMT.js} +2 -2
  43. package/browser/{chunk-ZOIQWHQE.js → chunk-JDZEWPPQ.js} +1 -1
  44. package/browser/{chunk-XPEGAYJO.js → chunk-JLL2ILJJ.js} +1 -1
  45. package/browser/{chunk-QPXWIIQK.js → chunk-JORCTO5O.js} +1 -1
  46. package/browser/{chunk-DNBZTRXL.js → chunk-JU6MGU3M.js} +1 -1
  47. package/browser/{chunk-HYZX6TUF.js → chunk-LC3XCQL2.js} +1 -1
  48. package/browser/{chunk-GKKKOTYZ.js → chunk-LGVT3CR2.js} +1 -1
  49. package/browser/{chunk-TRUZ46QL.js → chunk-M7QHMLIG.js} +1 -1
  50. package/browser/{chunk-H66NFIQQ.js → chunk-MDGMZ65B.js} +1 -1
  51. package/browser/{chunk-2O3TR26P.js → chunk-MDY5R453.js} +1 -1
  52. package/browser/{chunk-IRIE5DZT.js → chunk-MMX7JWK6.js} +1 -1
  53. package/browser/chunk-MXUYJQOT.js +57 -0
  54. package/browser/{chunk-R7Y776E5.js → chunk-NGLW2JVN.js} +1 -1
  55. package/browser/{chunk-HGM42PVN.js → chunk-NIAATSHN.js} +1 -1
  56. package/browser/{chunk-EJFVZSWQ.js → chunk-NZXT22JH.js} +1 -1
  57. package/browser/{chunk-I6NIUHOQ.js → chunk-OEEJBHA6.js} +1 -1
  58. package/browser/{chunk-K7ON3WKW.js → chunk-OL6COSQS.js} +1 -1
  59. package/browser/{chunk-HA6VJJLI.js → chunk-PHGUFK7B.js} +1 -1
  60. package/browser/chunk-Q3SBBXUT.js +1 -0
  61. package/browser/{chunk-W7Z44R3C.js → chunk-Q3T47ZI6.js} +1 -1
  62. package/browser/chunk-QDE7PB5F.js +1 -0
  63. package/browser/{chunk-NOQM2VPB.js → chunk-QEZV5DGZ.js} +1 -1
  64. package/browser/{chunk-Q7GDNJAI.js → chunk-QU4LPPFI.js} +8 -8
  65. package/browser/{chunk-7R3X2A2H.js → chunk-R4FFGZYI.js} +1 -1
  66. package/browser/{chunk-7X35YY3T.js → chunk-R6NHGFCL.js} +1 -1
  67. package/browser/{chunk-4WYJGX5K.js → chunk-RADHAROZ.js} +1 -1
  68. package/browser/{chunk-FKYUI33J.js → chunk-RAIYXIUN.js} +1 -1
  69. package/browser/{chunk-W7R2NCKA.js → chunk-RDLECCOU.js} +2 -2
  70. package/browser/chunk-RE4ILURJ.js +1 -0
  71. package/browser/{chunk-FNUNWZ2W.js → chunk-RJ5DYWUR.js} +1 -1
  72. package/browser/{chunk-VGNMBCUC.js → chunk-RXIPRX4H.js} +1 -1
  73. package/browser/{chunk-W7I2T4SZ.js → chunk-TAVO3B4U.js} +1 -1
  74. package/browser/{chunk-47W54HJY.js → chunk-TJOJSY2L.js} +1 -1
  75. package/browser/{chunk-4WW3BBDP.js → chunk-TP762HYD.js} +2 -2
  76. package/browser/{chunk-7275MAOI.js → chunk-TROJCJRS.js} +1 -1
  77. package/browser/{chunk-4XWCWJZC.js → chunk-TTHREZAR.js} +1 -1
  78. package/browser/{chunk-DV4MQXAE.js → chunk-TZKLOUVL.js} +1 -1
  79. package/browser/{chunk-ZFXZABWG.js → chunk-U5OIRIFT.js} +1 -1
  80. package/browser/{chunk-OAY4ZDTS.js → chunk-UP43YMU4.js} +1 -1
  81. package/browser/{chunk-SHPUXNKO.js → chunk-VFGDPNH2.js} +1 -1
  82. package/browser/chunk-W3VF2RCW.js +1 -0
  83. package/browser/{chunk-SV4HJFAL.js → chunk-W6A2EZUH.js} +1 -1
  84. package/browser/{chunk-EOY5VQKV.js → chunk-WYHR2ET7.js} +2 -2
  85. package/browser/{chunk-XBMOSDDE.js → chunk-XDJ4AOAR.js} +1 -1
  86. package/browser/{chunk-VD4QQDNI.js → chunk-YCN42CZP.js} +1 -1
  87. package/browser/chunk-YWGMCAEP.js +3 -0
  88. package/browser/{chunk-T5HYNGEA.js → chunk-ZBTG35T6.js} +1 -1
  89. package/browser/chunk-ZPZDGQWP.js +16 -0
  90. package/browser/{chunk-GIKR6Y2K.js → chunk-ZVDY66SR.js} +1 -1
  91. package/browser/index.html +2 -2
  92. package/browser/{main-C7YDPF2T.js → main-XJRM5GZV.js} +2 -2
  93. package/browser/{styles-EM6OTRT2.css → styles-SJXE22QD.css} +1 -1
  94. package/package.json +1 -1
  95. package/browser/chunk-4ODUHZAT.js +0 -1
  96. package/browser/chunk-6A45AGTK.js +0 -1
  97. package/browser/chunk-BKUC3UED.js +0 -1
  98. package/browser/chunk-EHV62EGB.js +0 -57
  99. package/browser/chunk-JU5FQANB.js +0 -1
  100. package/browser/chunk-NII66FBK.js +0 -3
  101. package/browser/chunk-NM2P4KR5.js +0 -1
  102. package/browser/chunk-OG45AMIC.js +0 -1
  103. package/browser/chunk-PNQGP25W.js +0 -1
  104. package/browser/chunk-UE53BLCC.js +0 -16
  105. package/browser/chunk-YTGZYBEI.js +0 -1
@@ -1 +1 @@
1
- import{c as N}from"./chunk-TDO7VOF5.js";import"./chunk-NOQM2VPB.js";import{a as D}from"./chunk-ZZGSAFGO.js";import"./chunk-PZANARAM.js";import{$ as _,$a as l,Ac as k,Ga as P,Ib as o,Jb as e,Kb as u,N as b,Ob as S,Qb as I,Qd as G,Rb as f,Y as m,Yd as j,Zc as A,aa as s,c as p,cd as E,db as d,ec as a,fa as y,fc as x,jd as R,kb as w,n as v,qb as g,va as C,vb as c,wa as O,yb as M,zc as L}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";function T(r,n){r&1&&(o(0,"div",21)(1,"span",22),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",23),a(4,"Click here to learn how to manually activate the location permission"),e()())}function z(r,n){if(r&1){let t=S();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),a(4,"Geo Fencing"),e(),o(5,"p",5),a(6,"You are about to sign-in from this location"),e(),o(7,"div",6)(8,"div",7)(9,"div",8)(10,"span",9),a(11,"LAT"),e(),o(12,"span",10),a(13),e()(),o(14,"div",8)(15,"span",11),a(16,"LONG"),e(),o(17,"span",12),a(18),e()()(),o(19,"button",13),I("click",function(){C(t);let h=f();return O(h.proceed())}),a(20,"Proceed"),e()(),g(21,T,5,0,"div",14),e(),o(22,"div",15),u(23,"img",16),e()(),o(24,"div",17)(25,"div",18)(26,"div")(27,"span"),a(28,"powered by :"),e(),u(29,"a",19)(30,"img",20),e()()()()}if(r&2){let t=n.ngIf,i=f();l(2),M(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),x(t.latitude),l(5),x(t.longitude),l(),c("disabled",!(t.latitude&&t.longitude)),l(2),c("ngIf",!(t.latitude&&t.longitude))}}var Z=class r{constructor(n,t,i,h){this.ngZone=n;this.auth=t;this.http=i;this.router=h}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(s(t=>new p(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),m(1));this.latLong$=n.pipe(s(()=>new p(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:""}),m(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(s(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),y(n=>this.auth.saveLoginConfigToStorage(n)),s(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(d(P),d(N),d(j),d(G))};static \u0275cmp=w({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[["class","container-fluid",4,"ngIf"],[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"],["class","text-start mt-7",4,"ngIf"],[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://res.cloudinary.com/pos/image/upload/v1685343992/POS/Images/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","//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"ms-3","border-0"],[1,"text-start","mt-7"],[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){t&1&&(g(0,z,31,6,"div",0),L(1,"async")),t&2&&c("ngIf",k(1,1,i.latLong$))},dependencies:[R,A,E],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 N}from"./chunk-D5P4CYL5.js";import"./chunk-QEZV5DGZ.js";import{a as D}from"./chunk-ZZGSAFGO.js";import"./chunk-HIALMESF.js";import{$ as _,$a as l,Ac as k,Ga as P,Ib as o,Jb as e,Kb as u,N as b,Ob as S,Qb as I,Qd as G,Rb as f,Y as m,Yd as j,Zc as A,aa as s,c as p,cd as E,db as d,ec as a,fa as y,fc as x,jd as R,kb as w,n as v,qb as g,va as C,vb as c,wa as O,yb as M,zc as L}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";function T(r,n){r&1&&(o(0,"div",21)(1,"span",22),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",23),a(4,"Click here to learn how to manually activate the location permission"),e()())}function z(r,n){if(r&1){let t=S();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),a(4,"Geo Fencing"),e(),o(5,"p",5),a(6,"You are about to sign-in from this location"),e(),o(7,"div",6)(8,"div",7)(9,"div",8)(10,"span",9),a(11,"LAT"),e(),o(12,"span",10),a(13),e()(),o(14,"div",8)(15,"span",11),a(16,"LONG"),e(),o(17,"span",12),a(18),e()()(),o(19,"button",13),I("click",function(){C(t);let h=f();return O(h.proceed())}),a(20,"Proceed"),e()(),g(21,T,5,0,"div",14),e(),o(22,"div",15),u(23,"img",16),e()(),o(24,"div",17)(25,"div",18)(26,"div")(27,"span"),a(28,"powered by :"),e(),u(29,"a",19)(30,"img",20),e()()()()}if(r&2){let t=n.ngIf,i=f();l(2),M(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),x(t.latitude),l(5),x(t.longitude),l(),c("disabled",!(t.latitude&&t.longitude)),l(2),c("ngIf",!(t.latitude&&t.longitude))}}var Z=class r{constructor(n,t,i,h){this.ngZone=n;this.auth=t;this.http=i;this.router=h}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(s(t=>new p(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),m(1));this.latLong$=n.pipe(s(()=>new p(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:""}),m(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(s(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),y(n=>this.auth.saveLoginConfigToStorage(n)),s(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(d(P),d(N),d(j),d(G))};static \u0275cmp=w({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[["class","container-fluid",4,"ngIf"],[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"],["class","text-start mt-7",4,"ngIf"],[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://res.cloudinary.com/pos/image/upload/v1685343992/POS/Images/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","//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png",1,"ms-3","border-0"],[1,"text-start","mt-7"],[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){t&1&&(g(0,z,31,6,"div",0),L(1,"async")),t&2&&c("ngIf",k(1,1,i.latLong$))},dependencies:[R,A,E],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 re}from"./chunk-MUJ6277G.js";import{u as ae,v as se,w as le}from"./chunk-CD3BSGAP.js";import{O as ce}from"./chunk-5OS5VELO.js";import{a as z,c as K}from"./chunk-GIKR6Y2K.js";import{e as oe}from"./chunk-3YKVLHZG.js";import{a as g}from"./chunk-2FWFPV5I.js";import{E as te,G as ie,c as X,e as v,h as Y,i as Z,t as $,w as ee}from"./chunk-RVXZOIFQ.js";import{a as M}from"./chunk-ZZGSAFGO.js";import{$a as s,Db as T,E as D,Fa as I,H as G,I as B,Ib as r,Jb as a,Kb as E,Qb as w,Rb as F,T as L,Vd as Q,W as S,Wc as W,Y as N,Yd as ne,Zc as A,aa as U,db as P,e as h,ec as f,fa as H,ja as V,kb as q,la as j,n as k,na as p,o as _,p as x,qb as d,rc as O,sd as J,t as y,v as R,vb as l}from"./chunk-UXRO4UFY.js";import{j as u}from"./chunk-7DCB7DB2.js";var C=class{};var Be=new j("baseURL"),b=class n extends C{connection;_cache=new Map;_Data=new h({});Data=this._Data.asObservable();previousCountByEpc={};httpService=p(ne);toastService=p(Q);_isConnected=new h(!1);isConnected=this._isConnected.asObservable();_bufferTime=new h(100);set bufferTime(i){this._bufferTime.next(i)}get bufferTime(){return this._bufferTime.getValue()}intializeWebSocket(i="/"){return u(this,null,function*(){if(i.length<=0){this.toastService.error("RFID URL cannot be empty",g.Error);return}this.connection=new K().withUrl(i).configureLogging(z.Information).build();try{yield this.connection.start(),yield this.initiateGroupSubscription(),this.onWebSocketMessageReceived(),this._isConnected.next(!0),this.toastService.success("RFID Connected",g.Success)}catch(t){throw this._isConnected.next(!1),this.toastService.error(JSON.stringify(t),g.Error),setTimeout(()=>this.intializeWebSocket(),5e3),new Error(JSON.stringify(t))}})}initiateGroupSubscription(){return u(this,null,function*(){try{yield this.connection.invoke("SubscribeGroup",{CurrentID:"TransferOrder"})}catch(i){throw this.toastService.error(JSON.stringify(i),g.Error),new Error(JSON.stringify(i))}})}onWebSocketMessageReceived(){try{this.connection.on("ReceiveSignal",i=>{this._Data.next(i)})}catch(i){throw new Error(JSON.stringify(i))}}getVariantByCode(i,t=M.GuidEmpty){let e=[{key:"Code",value:i},{key:"EntityID",value:t}];return this.httpService.get(ce.GetVariantByCode,e).pipe(B(o=>o instanceof J?_(null):x(()=>new Error(o.message))))}processGroupedData(i=M.GuidEmpty){return this._Data.pipe(D(t=>t!==null&&t&&Object.keys(t).length>0),G(this._bufferTime.getValue()),R(t=>k(t)),L(t=>t.epc),R(t=>t.pipe(S((e,o)=>[...e,o],[]),U(e=>{let o=t.key;if(this._cache.has(o))return this._cache.get(o).pipe(y(c=>({epc:o,items:e,response:c})));{let c=this.getVariantByCode(o,i).pipe(D(m=>m),H(m=>this._cache.set(o,_(m))));return this._cache.set(o,c),c.pipe(y(m=>({epc:o,items:e,response:m})))}}))),S((t,e)=>{let o=this.previousCountByEpc&&this.previousCountByEpc[e.epc]||0,c=e.items.length,m=c-o;return t[e.epc]={data:e.items,count:m,variant:e.response},this.previousCountByEpc[e.epc]=c,t},{}),N({bufferSize:1,refCount:!0}))}constructor(){super()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=V({token:n,factory:n.\u0275fac,providedIn:"root"})};var me=n=>({"is-invalid":n});function ue(n,i){n&1&&(r(0,"span"),f(1,"Host URL is required."),a())}function de(n,i){if(n&1&&(r(0,"div",6),d(1,ue,2,0,"span",8),E(2,"span"),a()),n&2){let t,e=F();s(),l("ngIf",(t=e.form.get("hostURL").errors)==null?null:t.required)}}function ge(n,i){n&1&&(r(0,"span"),f(1,"Host URL is required."),a())}function he(n,i){n&1&&(r(0,"span"),f(1,"BufferTime must be at least 100"),a())}function ve(n,i){if(n&1&&(r(0,"div",6),d(1,ge,2,0,"span",8)(2,he,2,0,"span",8),a()),n&2){let t,e,o=F();s(),l("ngIf",(t=o.form.get("bufferTime").errors)==null?null:t.required),s(),l("ngIf",(e=o.form.get("bufferTime").errors)==null?null:e.min)}}var fe=class n{constructor(i){this.dialogRef=i;this.form=this.fb.group({hostURL:["https://localhost:5001/rfidhub",[v.required]],bufferTime:["100",[v.required,v.min(100)]]},{updateOn:"change"}),this.config.title="Connect RFID",this.config.customWidth="400px"}config=new ae;isConnect=new I(!1);RFIDConnectionService=p(b);fb=p(te);onOK=new I;form;ok(){return u(this,null,function*(){this.onOK.emit(this.form.value),this.dialogRef.close("void")})}close(){this.dialogRef.close()}onBlur(i){this.form.patchValue({bufferTime:Number(i.value)})}static \u0275fac=function(t){return new(t||n)(P(oe))};static \u0275cmp=q({type:n,selectors:[["POS-dialog-connect-rfid"]],outputs:{onOK:"onOK"},decls:15,vars:12,consts:[[3,"onCancel","onClose","onOk","dynamicValidated","config"],[1,"d-flex","flex-column",2,"row-gap","1rem"],[1,"fw-normal"],[1,"form-floating-outline",3,"formGroup"],["formControlName","hostURL","id","floatingInput","placeholder","https://localhost:5030/rfidhub","type","text",1,"form-control",3,"ngClass"],["for","floatingInput"],["id","",1,"invalid-feedback"],["formControlName","bufferTime","id","floatingInput","placeholder","100","type","text",1,"form-control",3,"blur","ngClass"],[4,"ngIf"]],template:function(t,e){t&1&&(r(0,"modal-material",0),w("onCancel",function(){return e.close()})("onClose",function(){return e.close()})("onOk",function(){return e.ok()}),r(1,"content")(2,"div",1)(3,"h4",2),f(4,"Please input the RFID Host URL:"),a(),r(5,"div",3),E(6,"input",4),r(7,"label",5),f(8,"Host URL"),a(),d(9,de,3,1,"div",6),a(),r(10,"div",3)(11,"input",7),w("blur",function(){return e.onBlur(e.form.get("bufferTime"))}),a(),r(12,"label",5),f(13,"Buffer Time (ms)"),a(),d(14,ve,3,2,"div",6),a()()()()),t&2&&(l("dynamicValidated",e.form.valid)("config",e.config),s(5),l("formGroup",e.form),s(),l("ngClass",O(8,me,e.form.invalid&&e.form.touched)),s(3),T(e.form.get("hostURL").invalid&&e.form.get("hostURL").touched?9:-1),s(),l("formGroup",e.form),s(),l("ngClass",O(10,me,e.form.invalid&&e.form.touched)),s(3),T(e.form.get("bufferTime").invalid&&e.form.get("bufferTime").touched?14:-1))},dependencies:[le,se,re,A,ie,X,Y,Z,$,ee,W],styles:[".form-control.is-invalid[_ngcontent-%COMP%]:focus{box-shadow:none!important}"]})};export{C as a,b,fe as c};
1
+ import{a as re}from"./chunk-MUJ6277G.js";import{u as ae,v as se,w as le}from"./chunk-CD3BSGAP.js";import{O as ce}from"./chunk-5OS5VELO.js";import{a as z,c as K}from"./chunk-ZVDY66SR.js";import{e as oe}from"./chunk-3YKVLHZG.js";import{a as g}from"./chunk-2FWFPV5I.js";import{E as te,G as ie,c as X,e as v,h as Y,i as Z,t as $,w as ee}from"./chunk-RVXZOIFQ.js";import{a as M}from"./chunk-ZZGSAFGO.js";import{$a as s,Db as T,E as D,Fa as I,H as G,I as B,Ib as r,Jb as a,Kb as E,Qb as w,Rb as F,T as L,Vd as Q,W as S,Wc as W,Y as N,Yd as ne,Zc as A,aa as U,db as P,e as h,ec as f,fa as H,ja as V,kb as q,la as j,n as k,na as p,o as _,p as x,qb as d,rc as O,sd as J,t as y,v as R,vb as l}from"./chunk-UXRO4UFY.js";import{j as u}from"./chunk-7DCB7DB2.js";var C=class{};var Be=new j("baseURL"),b=class n extends C{connection;_cache=new Map;_Data=new h({});Data=this._Data.asObservable();previousCountByEpc={};httpService=p(ne);toastService=p(Q);_isConnected=new h(!1);isConnected=this._isConnected.asObservable();_bufferTime=new h(100);set bufferTime(i){this._bufferTime.next(i)}get bufferTime(){return this._bufferTime.getValue()}intializeWebSocket(i="/"){return u(this,null,function*(){if(i.length<=0){this.toastService.error("RFID URL cannot be empty",g.Error);return}this.connection=new K().withUrl(i).configureLogging(z.Information).build();try{yield this.connection.start(),yield this.initiateGroupSubscription(),this.onWebSocketMessageReceived(),this._isConnected.next(!0),this.toastService.success("RFID Connected",g.Success)}catch(t){throw this._isConnected.next(!1),this.toastService.error(JSON.stringify(t),g.Error),setTimeout(()=>this.intializeWebSocket(),5e3),new Error(JSON.stringify(t))}})}initiateGroupSubscription(){return u(this,null,function*(){try{yield this.connection.invoke("SubscribeGroup",{CurrentID:"TransferOrder"})}catch(i){throw this.toastService.error(JSON.stringify(i),g.Error),new Error(JSON.stringify(i))}})}onWebSocketMessageReceived(){try{this.connection.on("ReceiveSignal",i=>{this._Data.next(i)})}catch(i){throw new Error(JSON.stringify(i))}}getVariantByCode(i,t=M.GuidEmpty){let e=[{key:"Code",value:i},{key:"EntityID",value:t}];return this.httpService.get(ce.GetVariantByCode,e).pipe(B(o=>o instanceof J?_(null):x(()=>new Error(o.message))))}processGroupedData(i=M.GuidEmpty){return this._Data.pipe(D(t=>t!==null&&t&&Object.keys(t).length>0),G(this._bufferTime.getValue()),R(t=>k(t)),L(t=>t.epc),R(t=>t.pipe(S((e,o)=>[...e,o],[]),U(e=>{let o=t.key;if(this._cache.has(o))return this._cache.get(o).pipe(y(c=>({epc:o,items:e,response:c})));{let c=this.getVariantByCode(o,i).pipe(D(m=>m),H(m=>this._cache.set(o,_(m))));return this._cache.set(o,c),c.pipe(y(m=>({epc:o,items:e,response:m})))}}))),S((t,e)=>{let o=this.previousCountByEpc&&this.previousCountByEpc[e.epc]||0,c=e.items.length,m=c-o;return t[e.epc]={data:e.items,count:m,variant:e.response},this.previousCountByEpc[e.epc]=c,t},{}),N({bufferSize:1,refCount:!0}))}constructor(){super()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=V({token:n,factory:n.\u0275fac,providedIn:"root"})};var me=n=>({"is-invalid":n});function ue(n,i){n&1&&(r(0,"span"),f(1,"Host URL is required."),a())}function de(n,i){if(n&1&&(r(0,"div",6),d(1,ue,2,0,"span",8),E(2,"span"),a()),n&2){let t,e=F();s(),l("ngIf",(t=e.form.get("hostURL").errors)==null?null:t.required)}}function ge(n,i){n&1&&(r(0,"span"),f(1,"Host URL is required."),a())}function he(n,i){n&1&&(r(0,"span"),f(1,"BufferTime must be at least 100"),a())}function ve(n,i){if(n&1&&(r(0,"div",6),d(1,ge,2,0,"span",8)(2,he,2,0,"span",8),a()),n&2){let t,e,o=F();s(),l("ngIf",(t=o.form.get("bufferTime").errors)==null?null:t.required),s(),l("ngIf",(e=o.form.get("bufferTime").errors)==null?null:e.min)}}var fe=class n{constructor(i){this.dialogRef=i;this.form=this.fb.group({hostURL:["https://localhost:5001/rfidhub",[v.required]],bufferTime:["100",[v.required,v.min(100)]]},{updateOn:"change"}),this.config.title="Connect RFID",this.config.customWidth="400px"}config=new ae;isConnect=new I(!1);RFIDConnectionService=p(b);fb=p(te);onOK=new I;form;ok(){return u(this,null,function*(){this.onOK.emit(this.form.value),this.dialogRef.close("void")})}close(){this.dialogRef.close()}onBlur(i){this.form.patchValue({bufferTime:Number(i.value)})}static \u0275fac=function(t){return new(t||n)(P(oe))};static \u0275cmp=q({type:n,selectors:[["POS-dialog-connect-rfid"]],outputs:{onOK:"onOK"},decls:15,vars:12,consts:[[3,"onCancel","onClose","onOk","dynamicValidated","config"],[1,"d-flex","flex-column",2,"row-gap","1rem"],[1,"fw-normal"],[1,"form-floating-outline",3,"formGroup"],["formControlName","hostURL","id","floatingInput","placeholder","https://localhost:5030/rfidhub","type","text",1,"form-control",3,"ngClass"],["for","floatingInput"],["id","",1,"invalid-feedback"],["formControlName","bufferTime","id","floatingInput","placeholder","100","type","text",1,"form-control",3,"blur","ngClass"],[4,"ngIf"]],template:function(t,e){t&1&&(r(0,"modal-material",0),w("onCancel",function(){return e.close()})("onClose",function(){return e.close()})("onOk",function(){return e.ok()}),r(1,"content")(2,"div",1)(3,"h4",2),f(4,"Please input the RFID Host URL:"),a(),r(5,"div",3),E(6,"input",4),r(7,"label",5),f(8,"Host URL"),a(),d(9,de,3,1,"div",6),a(),r(10,"div",3)(11,"input",7),w("blur",function(){return e.onBlur(e.form.get("bufferTime"))}),a(),r(12,"label",5),f(13,"Buffer Time (ms)"),a(),d(14,ve,3,2,"div",6),a()()()()),t&2&&(l("dynamicValidated",e.form.valid)("config",e.config),s(5),l("formGroup",e.form),s(),l("ngClass",O(8,me,e.form.invalid&&e.form.touched)),s(3),T(e.form.get("hostURL").invalid&&e.form.get("hostURL").touched?9:-1),s(),l("formGroup",e.form),s(),l("ngClass",O(10,me,e.form.invalid&&e.form.touched)),s(3),T(e.form.get("bufferTime").invalid&&e.form.get("bufferTime").touched?14:-1))},dependencies:[le,se,re,A,ie,X,Y,Z,$,ee,W],styles:[".form-control.is-invalid[_ngcontent-%COMP%]:focus{box-shadow:none!important}"]})};export{C as a,b,fe as c};
@@ -1 +1 @@
1
- import{a as A,b as G}from"./chunk-QJ4LGJCR.js";import{d as Z,e as $}from"./chunk-6G37ZXRX.js";import{a as K}from"./chunk-V52QD5BS.js";import{e as X,f as Y}from"./chunk-TSBV5MA4.js";import{b as U}from"./chunk-DV4MQXAE.js";import{d as Q}from"./chunk-XYB3YDKL.js";import{F as H,c as B,h as R,o as j}from"./chunk-RVXZOIFQ.js";import{d as q}from"./chunk-ZZGSAFGO.js";import{$a as p,Bc as y,Fc as W,Ib as i,Jb as o,Ob as S,Qb as C,Rb as s,Rd as V,Td as N,Vd as O,Wc as M,Yc as I,Yd as z,Zc as T,db as _,ec as m,ed as E,gc as x,gd as P,jc as b,jd as J,kb as F,kc as h,lc as f,ob as v,qb as u,qc as w,rc as L,sc as k,va as d,vb as l,wa as g,zc as D}from"./chunk-UXRO4UFY.js";var te=()=>["/menu/Developer/Webhook/Job_Logs/Detail"],ie=a=>({ID:a}),oe=(a,c)=>({"text-success":a,"text-danger":c});function ae(a,c){if(a&1){let e=S();i(0,"div",12)(1,"h6"),m(2,"Status"),o(),i(3,"ng-select",13),f("ngModelChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.Status,t)||(r.pageData.Filter.Status=t),g(t)}),o(),i(4,"h6"),m(5,"Job ID"),o(),i(6,"input",14),f("ngModelChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.JobID,t)||(r.pageData.Filter.JobID=t),g(t)}),o(),i(7,"h6"),m(8,"From"),o(),i(9,"datepicker",15),f("dateChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.From,t)||(r.pageData.Filter.From=t),g(t)}),o(),i(10,"h6"),m(11,"To"),o(),i(12,"datepicker",16),f("dateChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.To,t)||(r.pageData.Filter.To=t),g(t)}),o()()}if(a&2){let e=s(2);p(3),l("disabled",!e.role.developer.Edit)("items",e.pageData.Options.Status),b("ngModel",e.pageData.Filter.Status),p(3),b("ngModel",e.pageData.Filter.JobID),p(3),l("isFloatingLabel",!1),b("date",e.pageData.Filter.From),p(3),l("isFloatingLabel",!1),b("date",e.pageData.Filter.To)}}function ne(a,c){if(a&1&&(i(0,"tr",17)(1,"td")(2,"a",18),m(3),D(4,"date"),o()(),i(5,"td"),m(6),D(7,"number"),o(),i(8,"td",19),m(9),o()()),a&2){let e=c.$implicit;p(2),l("routerLink",w(12,te))("queryParams",L(13,ie,e._id)),p(),x(" ",y(4,6,e._source["@timestamp_received"],"dd MMM yyyy HH:mm")," "),p(3),x("",y(7,9,e.DurationInSecond,"1.1-1")," s"),p(2),l("ngClass",k(15,oe,e._source.log.respCode==200,e._source.log.respCode!=200)),p(),x(" ",e._source.log.respCode," ")}}function re(a,c){if(a&1){let e=S();i(0,"mat-paginator",20),C("page",function(t){d(e);let r=s(2);return g(r.onPaginationChange(t))}),o()}if(a&2){let e=s(2);l("length",e.pagination.listTotal)("pageSize",e.pagination.pageSize)("pageIndex",e.pageData.Filter.PageNumber==0?0:e.pageData.Filter.PageNumber-1)}}function pe(a,c){if(a&1){let e=S();i(0,"mainpanel-cmp",2),C("onSubmit",function(){d(e);let t=s();return g(t.searchFromPageOne())}),i(1,"filters"),u(2,ae,13,8,"ng-template",null,0,W),o(),i(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr",7)(10,"th",8),m(11,"Created"),o(),i(12,"th",8),m(13,"Duration"),o(),i(14,"th",8),m(15,"Status"),o()()(),i(16,"tbody"),u(17,ne,10,18,"tr",9),o()()(),i(18,"div",10),u(19,re,1,3,"mat-paginator",11),o()()()()}if(a&2){let e=s();l("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(17),l("ngForOf",e.data.hits),p(2),l("ngIf",e.pagination.listTotal>0)}}var ee=class a extends K{constructor(e,n,t,r){super(e,n,"Developer/DeveloperSpace/Webhook/JobLogs","Developer/DeveloperSpace/WebhookLoader/GetLogs",t);this.httpService=n;this.role=r}postInit(e){this.data.hits=this.data?.hits.map(n=>(n.DurationInSecond=parseInt(n._source?.Duration)/1e3,n)),this.data.ListTotal=e?.total?.value}static \u0275fac=function(n){return new(n||a)(_(U),_(z),_(O),_(q))};static \u0275cmp=F({type:a,selectors:[["app-webhook-job-logs"]],features:[v],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","onSubmit",4,"ngIf"],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","50px"],["class","border-bottom",4,"ngFor","ngForOf"],[1,"mt-2"],[3,"length","pageSize","pageIndex","page",4,"ngIf"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose a status","appendTo","body",3,"ngModelChange","disabled","items","ngModel"],["type","text",1,"form-control",3,"ngModelChange","ngModel"],["placeholder","From","appearance","outline",3,"dateChange","isFloatingLabel","date"],["placeholder","To","appearance","outline",3,"dateChange","isFloatingLabel","date"],[1,"border-bottom"],[3,"routerLink","queryParams"],[3,"ngClass"],[3,"page","length","pageSize","pageIndex"]],template:function(n,t){n&1&&u(0,pe,20,5,"mainpanel-cmp",1),n&2&&l("ngIf",t.data)},dependencies:[J,M,I,T,P,E,Y,X,$,Z,G,A,Q,H,B,R,j,N,V],encapsulation:2})};export{ee as a};
1
+ import{a as A,b as G}from"./chunk-QJ4LGJCR.js";import{d as Z,e as $}from"./chunk-6G37ZXRX.js";import{a as K}from"./chunk-IGEAG6HP.js";import{e as X,f as Y}from"./chunk-7V7Q67KX.js";import{b as U}from"./chunk-TZKLOUVL.js";import{d as Q}from"./chunk-XYB3YDKL.js";import{F as H,c as B,h as R,o as j}from"./chunk-RVXZOIFQ.js";import{d as q}from"./chunk-ZZGSAFGO.js";import{$a as p,Bc as y,Fc as W,Ib as i,Jb as o,Ob as S,Qb as C,Rb as s,Rd as V,Td as N,Vd as O,Wc as M,Yc as I,Yd as z,Zc as T,db as _,ec as m,ed as E,gc as x,gd as P,jc as b,jd as J,kb as F,kc as h,lc as f,ob as v,qb as u,qc as w,rc as L,sc as k,va as d,vb as l,wa as g,zc as D}from"./chunk-UXRO4UFY.js";var te=()=>["/menu/Developer/Webhook/Job_Logs/Detail"],ie=a=>({ID:a}),oe=(a,c)=>({"text-success":a,"text-danger":c});function ae(a,c){if(a&1){let e=S();i(0,"div",12)(1,"h6"),m(2,"Status"),o(),i(3,"ng-select",13),f("ngModelChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.Status,t)||(r.pageData.Filter.Status=t),g(t)}),o(),i(4,"h6"),m(5,"Job ID"),o(),i(6,"input",14),f("ngModelChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.JobID,t)||(r.pageData.Filter.JobID=t),g(t)}),o(),i(7,"h6"),m(8,"From"),o(),i(9,"datepicker",15),f("dateChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.From,t)||(r.pageData.Filter.From=t),g(t)}),o(),i(10,"h6"),m(11,"To"),o(),i(12,"datepicker",16),f("dateChange",function(t){d(e);let r=s(2);return h(r.pageData.Filter.To,t)||(r.pageData.Filter.To=t),g(t)}),o()()}if(a&2){let e=s(2);p(3),l("disabled",!e.role.developer.Edit)("items",e.pageData.Options.Status),b("ngModel",e.pageData.Filter.Status),p(3),b("ngModel",e.pageData.Filter.JobID),p(3),l("isFloatingLabel",!1),b("date",e.pageData.Filter.From),p(3),l("isFloatingLabel",!1),b("date",e.pageData.Filter.To)}}function ne(a,c){if(a&1&&(i(0,"tr",17)(1,"td")(2,"a",18),m(3),D(4,"date"),o()(),i(5,"td"),m(6),D(7,"number"),o(),i(8,"td",19),m(9),o()()),a&2){let e=c.$implicit;p(2),l("routerLink",w(12,te))("queryParams",L(13,ie,e._id)),p(),x(" ",y(4,6,e._source["@timestamp_received"],"dd MMM yyyy HH:mm")," "),p(3),x("",y(7,9,e.DurationInSecond,"1.1-1")," s"),p(2),l("ngClass",k(15,oe,e._source.log.respCode==200,e._source.log.respCode!=200)),p(),x(" ",e._source.log.respCode," ")}}function re(a,c){if(a&1){let e=S();i(0,"mat-paginator",20),C("page",function(t){d(e);let r=s(2);return g(r.onPaginationChange(t))}),o()}if(a&2){let e=s(2);l("length",e.pagination.listTotal)("pageSize",e.pagination.pageSize)("pageIndex",e.pageData.Filter.PageNumber==0?0:e.pageData.Filter.PageNumber-1)}}function pe(a,c){if(a&1){let e=S();i(0,"mainpanel-cmp",2),C("onSubmit",function(){d(e);let t=s();return g(t.searchFromPageOne())}),i(1,"filters"),u(2,ae,13,8,"ng-template",null,0,W),o(),i(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr",7)(10,"th",8),m(11,"Created"),o(),i(12,"th",8),m(13,"Duration"),o(),i(14,"th",8),m(15,"Status"),o()()(),i(16,"tbody"),u(17,ne,10,18,"tr",9),o()()(),i(18,"div",10),u(19,re,1,3,"mat-paginator",11),o()()()()}if(a&2){let e=s();l("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(17),l("ngForOf",e.data.hits),p(2),l("ngIf",e.pagination.listTotal>0)}}var ee=class a extends K{constructor(e,n,t,r){super(e,n,"Developer/DeveloperSpace/Webhook/JobLogs","Developer/DeveloperSpace/WebhookLoader/GetLogs",t);this.httpService=n;this.role=r}postInit(e){this.data.hits=this.data?.hits.map(n=>(n.DurationInSecond=parseInt(n._source?.Duration)/1e3,n)),this.data.ListTotal=e?.total?.value}static \u0275fac=function(n){return new(n||a)(_(U),_(z),_(O),_(q))};static \u0275cmp=F({type:a,selectors:[["app-webhook-job-logs"]],features:[v],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","onSubmit",4,"ngIf"],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","50px"],["class","border-bottom",4,"ngFor","ngForOf"],[1,"mt-2"],[3,"length","pageSize","pageIndex","page",4,"ngIf"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose a status","appendTo","body",3,"ngModelChange","disabled","items","ngModel"],["type","text",1,"form-control",3,"ngModelChange","ngModel"],["placeholder","From","appearance","outline",3,"dateChange","isFloatingLabel","date"],["placeholder","To","appearance","outline",3,"dateChange","isFloatingLabel","date"],[1,"border-bottom"],[3,"routerLink","queryParams"],[3,"ngClass"],[3,"page","length","pageSize","pageIndex"]],template:function(n,t){n&1&&u(0,pe,20,5,"mainpanel-cmp",1),n&2&&l("ngIf",t.data)},dependencies:[J,M,I,T,P,E,Y,X,$,Z,G,A,Q,H,B,R,j,N,V],encapsulation:2})};export{ee as a};