dealpos 25.42.1 → 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 (159) hide show
  1. package/browser/{chunk-ROQHG6JX.js → chunk-2CU7XQYN.js} +1 -1
  2. package/browser/{chunk-OIQL44PV.js → chunk-2DCP5K6S.js} +1 -1
  3. package/browser/{chunk-YIKW3UR6.js → chunk-2L54CRB2.js} +1 -1
  4. package/browser/{chunk-ZTHPT62A.js → chunk-3A4C23H5.js} +1 -1
  5. package/browser/{chunk-QYWAJKFK.js → chunk-3LKY4V7E.js} +1 -1
  6. package/browser/{chunk-PVDNKSRC.js → chunk-3REOXXPI.js} +1 -1
  7. package/browser/{chunk-GHA3WIJU.js → chunk-3RWVYWJF.js} +1 -1
  8. package/browser/{chunk-2YMLZZTQ.js → chunk-3WSASNIT.js} +1 -1
  9. package/browser/chunk-4G2HIE3A.js +1 -0
  10. package/browser/{chunk-C2CGBWBH.js → chunk-4JM455M6.js} +1 -1
  11. package/browser/chunk-4PPRFE5H.js +1 -0
  12. package/browser/{chunk-NJS6IQX6.js → chunk-4R4W625N.js} +1 -1
  13. package/browser/{chunk-UECAH6V7.js → chunk-4SFHOQ3Y.js} +1 -1
  14. package/browser/{chunk-UU55EO4X.js → chunk-5BZEOCFN.js} +1 -1
  15. package/browser/{chunk-5BKBBN4I.js → chunk-5CDAHDI5.js} +1 -1
  16. package/browser/{chunk-ZSOLQ2F4.js → chunk-5NDARG5X.js} +1 -1
  17. package/browser/{chunk-46DETXA6.js → chunk-5OS5VELO.js} +1 -1
  18. package/browser/{chunk-X2WGP6SP.js → chunk-5SRC2QUI.js} +1 -1
  19. package/browser/{chunk-UOWOBHQL.js → chunk-64EULF5I.js} +1 -1
  20. package/browser/{chunk-DLONNLPI.js → chunk-6CQ6XYJG.js} +1 -1
  21. package/browser/{chunk-IC3DZAMU.js → chunk-6G37ZXRX.js} +1 -1
  22. package/browser/{chunk-TLXGEI76.js → chunk-772SQL5I.js} +1 -1
  23. package/browser/{chunk-NPUWXK3K.js → chunk-7C7GJT3E.js} +1 -1
  24. package/browser/{chunk-FOWSNZZX.js → chunk-7O3BTVW2.js} +1 -1
  25. package/browser/{chunk-5VIFPZ5D.js → chunk-7S4WUQBK.js} +1 -1
  26. package/browser/{chunk-ADE4IPMV.js → chunk-7V7Q67KX.js} +1 -1
  27. package/browser/{chunk-6ZN7JR6K.js → chunk-7VKFVS7K.js} +1 -1
  28. package/browser/{chunk-ENTVT5C2.js → chunk-7WLFUG2A.js} +1 -1
  29. package/browser/{chunk-N6QITTR2.js → chunk-A7PNRSF2.js} +1 -1
  30. package/browser/{chunk-IC7LV3SK.js → chunk-A7R2DZD3.js} +1 -1
  31. package/browser/{chunk-4HEESH5A.js → chunk-AEHOTFB4.js} +1 -1
  32. package/browser/chunk-AJCH3WAF.js +1 -0
  33. package/browser/{chunk-RDXTLLRW.js → chunk-AQC5G2DR.js} +1 -1
  34. package/browser/{chunk-XZRKMN4V.js → chunk-AQUQUDDZ.js} +1 -1
  35. package/browser/{chunk-5HJ6VGWE.js → chunk-ASGXDOOQ.js} +1 -1
  36. package/browser/{chunk-YPFMEFOD.js → chunk-BXAYNP7A.js} +1 -1
  37. package/browser/{chunk-EFDAS2KA.js → chunk-CD3BSGAP.js} +1 -1
  38. package/browser/chunk-CX4UR7ZZ.js +18 -0
  39. package/browser/{chunk-MQKEWZMW.js → chunk-CXRVPHHO.js} +1 -1
  40. package/browser/{chunk-OZ5JEMRA.js → chunk-D5P4CYL5.js} +1 -1
  41. package/browser/{chunk-VIJ7B625.js → chunk-D6VG5PSE.js} +1 -1
  42. package/browser/{chunk-SIRUW7U2.js → chunk-DKPNAGIM.js} +1 -1
  43. package/browser/{chunk-HG3CFH36.js → chunk-DNSE6AZ3.js} +1 -1
  44. package/browser/{chunk-EKKU5TMC.js → chunk-E7L36INB.js} +1 -1
  45. package/browser/{chunk-I3ZGST4N.js → chunk-EENVAF36.js} +1 -1
  46. package/browser/chunk-EH6IO5FW.js +1 -0
  47. package/browser/{chunk-VGPJKK3G.js → chunk-EJDIY62U.js} +1 -1
  48. package/browser/{chunk-T26KVRGE.js → chunk-EMP32K7Q.js} +1 -1
  49. package/browser/{chunk-MGQ5I7BK.js → chunk-EYE63KIO.js} +1 -1
  50. package/browser/chunk-F2Z6MRHX.js +1 -0
  51. package/browser/{chunk-N23TC7B4.js → chunk-FAJUK2PL.js} +1 -1
  52. package/browser/chunk-FF56HWOF.js +127 -0
  53. package/browser/{chunk-STUDNF4L.js → chunk-G2NUOEHT.js} +1 -1
  54. package/browser/{chunk-KCZNKMQH.js → chunk-GFT5QOAV.js} +1 -1
  55. package/browser/{chunk-LO3FAFDO.js → chunk-GINOZV6C.js} +1 -1
  56. package/browser/{chunk-RIRZVGFR.js → chunk-GNXJCMBC.js} +1 -1
  57. package/browser/{chunk-7BNQDGUO.js → chunk-GPP3J3W4.js} +1 -1
  58. package/browser/{chunk-UMT5IJRJ.js → chunk-H6LHYTUN.js} +1 -1
  59. package/browser/{chunk-WPFMJVWU.js → chunk-HAGFCQCM.js} +1 -1
  60. package/browser/{chunk-YAWVVMMS.js → chunk-HIALMESF.js} +1 -1
  61. package/browser/{chunk-EGIDHMPA.js → chunk-HQQWO76P.js} +1 -1
  62. package/browser/{chunk-7WNL4VON.js → chunk-HYRNR45J.js} +1 -1
  63. package/browser/{chunk-7SC45GNA.js → chunk-IE6UBT7C.js} +1 -1
  64. package/browser/chunk-IFQV5GDJ.js +1 -0
  65. package/browser/{chunk-D5K5VZVN.js → chunk-IGEAG6HP.js} +1 -1
  66. package/browser/{chunk-5BE43QU3.js → chunk-IJ3Y6CA4.js} +1 -1
  67. package/browser/{chunk-XJ25XOBC.js → chunk-INCYKSJF.js} +1 -1
  68. package/browser/{chunk-N47VNTBG.js → chunk-IQ26VFNR.js} +1 -1
  69. package/browser/{chunk-N5UW2RHA.js → chunk-IQ4IMICT.js} +1 -1
  70. package/browser/{chunk-FLCAZ4FS.js → chunk-ITLMINSX.js} +1 -1
  71. package/browser/{chunk-XHG7GWS5.js → chunk-IUDDIQMT.js} +2 -2
  72. package/browser/chunk-JDZEWPPQ.js +1 -0
  73. package/browser/{chunk-5Y67S5BV.js → chunk-JLL2ILJJ.js} +1 -1
  74. package/browser/{chunk-UY6FY532.js → chunk-JORCTO5O.js} +1 -1
  75. package/browser/{chunk-RFAAXFT5.js → chunk-JU6MGU3M.js} +1 -1
  76. package/browser/{chunk-TBHZV7EF.js → chunk-JYNN4IZB.js} +1 -1
  77. package/browser/{chunk-MH6ADXRE.js → chunk-KBO5VO7S.js} +1 -1
  78. package/browser/{chunk-F6Z777C5.js → chunk-LC3XCQL2.js} +1 -1
  79. package/browser/{chunk-IYF464XX.js → chunk-LGVT3CR2.js} +1 -1
  80. package/browser/{chunk-PAXXDG73.js → chunk-M7QHMLIG.js} +1 -1
  81. package/browser/{chunk-WNVQWJ2T.js → chunk-MDGMZ65B.js} +1 -1
  82. package/browser/{chunk-ZWBEJM56.js → chunk-MDY5R453.js} +8 -8
  83. package/browser/{chunk-JKLJ4KAW.js → chunk-MMX7JWK6.js} +1 -1
  84. package/browser/chunk-MXUYJQOT.js +57 -0
  85. package/browser/{chunk-R3KCKK52.js → chunk-NGLW2JVN.js} +1 -1
  86. package/browser/{chunk-5EJERM6E.js → chunk-NIAATSHN.js} +1 -1
  87. package/browser/{chunk-AZO64X7U.js → chunk-NXXNEU5Q.js} +1 -1
  88. package/browser/{chunk-XO6RYTAS.js → chunk-NZXT22JH.js} +1 -1
  89. package/browser/chunk-OEEJBHA6.js +1 -0
  90. package/browser/{chunk-WRBZW62O.js → chunk-OL6COSQS.js} +1 -1
  91. package/browser/{chunk-MCQ4J3UT.js → chunk-PHGUFK7B.js} +1 -1
  92. package/browser/{chunk-U4U76CXH.js → chunk-PRBPKAI4.js} +1 -1
  93. package/browser/chunk-Q3SBBXUT.js +1 -0
  94. package/browser/{chunk-ITQF6HII.js → chunk-Q3T47ZI6.js} +1 -1
  95. package/browser/{chunk-WM2AITL6.js → chunk-QCXWKQ7Z.js} +1 -1
  96. package/browser/chunk-QDE7PB5F.js +1 -0
  97. package/browser/{chunk-4E2KYPJT.js → chunk-QEZV5DGZ.js} +1 -1
  98. package/browser/{chunk-YPOODN5H.js → chunk-QJ4LGJCR.js} +1 -1
  99. package/browser/{chunk-IW63ASKB.js → chunk-QU4LPPFI.js} +8 -8
  100. package/browser/{chunk-WTP4E6M5.js → chunk-R4FFGZYI.js} +1 -1
  101. package/browser/{chunk-5AJG5HDI.js → chunk-R6NHGFCL.js} +1 -1
  102. package/browser/{chunk-XZWMENTO.js → chunk-RADHAROZ.js} +1 -1
  103. package/browser/{chunk-5SEFV3QG.js → chunk-RAIYXIUN.js} +1 -1
  104. package/browser/{chunk-GNAF5D23.js → chunk-RDLECCOU.js} +2 -2
  105. package/browser/chunk-RE4ILURJ.js +1 -0
  106. package/browser/{chunk-AY5QZ3W6.js → chunk-RJ5DYWUR.js} +1 -1
  107. package/browser/{chunk-RK5QSVFP.js → chunk-RXIPRX4H.js} +1 -1
  108. package/browser/{chunk-W4UISTRM.js → chunk-SEXQYEXV.js} +1 -1
  109. package/browser/{chunk-Z56AQWHN.js → chunk-SHMXCJ6Q.js} +1 -1
  110. package/browser/{chunk-W7I2T4SZ.js → chunk-TAVO3B4U.js} +1 -1
  111. package/browser/{chunk-XYZNPGYI.js → chunk-THXV6YJP.js} +1 -1
  112. package/browser/{chunk-AAI6JWC5.js → chunk-TJOJSY2L.js} +1 -1
  113. package/browser/{chunk-TFE7D7VV.js → chunk-TP762HYD.js} +2 -2
  114. package/browser/{chunk-T2IJ4MCB.js → chunk-TQZQYUFG.js} +1 -1
  115. package/browser/{chunk-HIKFNCGX.js → chunk-TROJCJRS.js} +1 -1
  116. package/browser/{chunk-RTE36RZ4.js → chunk-TTHREZAR.js} +1 -1
  117. package/browser/{chunk-H3ARLDNZ.js → chunk-TUQ4INQ4.js} +1 -1
  118. package/browser/{chunk-JUT3PXG2.js → chunk-TZ74SUXJ.js} +1 -1
  119. package/browser/{chunk-KGLFSTLG.js → chunk-TZKLOUVL.js} +1 -1
  120. package/browser/{chunk-PDJ7PMBB.js → chunk-U5OIRIFT.js} +14 -14
  121. package/browser/{chunk-ZJ23VRN3.js → chunk-UEQT5HE5.js} +1 -1
  122. package/browser/{chunk-6OOS5QHG.js → chunk-UP43YMU4.js} +1 -1
  123. package/browser/{chunk-5NDP4IKK.js → chunk-UQP7S73H.js} +1 -1
  124. package/browser/{chunk-BEPFMRGE.js → chunk-VFGDPNH2.js} +1 -1
  125. package/browser/{chunk-TVEGYRXE.js → chunk-VSF6PYZW.js} +1 -1
  126. package/browser/chunk-W3VF2RCW.js +1 -0
  127. package/browser/{chunk-6CAS42OB.js → chunk-W6A2EZUH.js} +1 -1
  128. package/browser/{chunk-BSIHS2EA.js → chunk-WYHR2ET7.js} +2 -2
  129. package/browser/{chunk-EGQ2HW7A.js → chunk-XDJ4AOAR.js} +1 -1
  130. package/browser/{chunk-PGWC5FQQ.js → chunk-Y6VMIGXC.js} +1 -1
  131. package/browser/{chunk-B4HMFP42.js → chunk-YCN42CZP.js} +1 -1
  132. package/browser/chunk-YWGMCAEP.js +3 -0
  133. package/browser/{chunk-5ZIFEEGI.js → chunk-ZBTG35T6.js} +1 -1
  134. package/browser/{chunk-YN74XRON.js → chunk-ZH7IWOYT.js} +1 -1
  135. package/browser/chunk-ZPZDGQWP.js +16 -0
  136. package/browser/{chunk-SZPU2EUQ.js → chunk-ZSE5MOHQ.js} +1 -1
  137. package/browser/{chunk-GIKR6Y2K.js → chunk-ZVDY66SR.js} +1 -1
  138. package/browser/index.html +2 -2
  139. package/browser/{main-SZ6HFSZZ.js → main-XJRM5GZV.js} +2 -2
  140. package/browser/{styles-EM6OTRT2.css → styles-SJXE22QD.css} +1 -1
  141. package/package.json +1 -1
  142. package/browser/chunk-4MOSTNVA.js +0 -3
  143. package/browser/chunk-55U65HSD.js +0 -1
  144. package/browser/chunk-5EKTXVHQ.js +0 -1
  145. package/browser/chunk-5MPRE3II.js +0 -1
  146. package/browser/chunk-BKUC3UED.js +0 -1
  147. package/browser/chunk-HFCVE2EL.js +0 -16
  148. package/browser/chunk-KPXHDKIY.js +0 -1
  149. package/browser/chunk-KTBBWEI2.js +0 -1
  150. package/browser/chunk-O47TK53N.js +0 -1
  151. package/browser/chunk-OEARSIZR.js +0 -1
  152. package/browser/chunk-QMRUEU6Q.js +0 -1
  153. package/browser/chunk-SA6YKTKS.js +0 -57
  154. package/browser/chunk-STIS4QW6.js +0 -1
  155. package/browser/chunk-VAMTYISE.js +0 -18
  156. package/browser/chunk-YQL4ALTP.js +0 -127
  157. package/browser/chunk-YTGZYBEI.js +0 -1
  158. package/browser/chunk-YWGXM2C3.js +0 -1
  159. package/browser/chunk-ZRCTLVL4.js +0 -1
@@ -1 +1 @@
1
- import{w as p}from"./chunk-EFDAS2KA.js";import{jd as f,ka as m,lb as n}from"./chunk-UXRO4UFY.js";var c=class i{static \u0275fac=function(s){return new(s||i)};static \u0275mod=n({type:i});static \u0275inj=m({imports:[f,p]})};var u=(r=>(r[r.TYPE=0]="TYPE",r[r.NOTE=1]="NOTE",r[r.INTERNAL_NOTE=2]="INTERNAL_NOTE",r[r.OTHER=3]="OTHER",r[r.LOGISTICS=4]="LOGISTICS",r[r.NUMBER=5]="NUMBER",r))(u||{});export{c as a,u as b};
1
+ import{w as p}from"./chunk-CD3BSGAP.js";import{jd as f,ka as m,lb as n}from"./chunk-UXRO4UFY.js";var c=class i{static \u0275fac=function(s){return new(s||i)};static \u0275mod=n({type:i});static \u0275inj=m({imports:[f,p]})};var u=(r=>(r[r.TYPE=0]="TYPE",r[r.NOTE=1]="NOTE",r[r.INTERNAL_NOTE=2]="INTERNAL_NOTE",r[r.OTHER=3]="OTHER",r[r.LOGISTICS=4]="LOGISTICS",r[r.NUMBER=5]="NUMBER",r))(u||{});export{c as a,u as b};
@@ -1 +1 @@
1
- import{c as N}from"./chunk-OZ5JEMRA.js";import"./chunk-4E2KYPJT.js";import{a as D}from"./chunk-ZZGSAFGO.js";import"./chunk-YAWVVMMS.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{u as T,v as M}from"./chunk-EFDAS2KA.js";import{e as g,f as u}from"./chunk-3YKVLHZG.js";import{a as C}from"./chunk-2FWFPV5I.js";import{$a as s,Ib as l,Jb as c,Kb as f,Qb as d,Va as m,db as i,kb as p,vb as t}from"./chunk-UXRO4UFY.js";var _=class a{constructor(e,o){this.data=e;this.dialogRef=o;this.message=e.message,this.modalConfig=new T,this.modalConfig.title=e.title,this.modalConfig.okText=e.okText?e.okText:"Yes",this.modalConfig.cancelText=e.cancelText?e.cancelText:"No",this.modalConfig.headerType=e.headerType?e.headerType:C.Success}modalConfig;message;headerType;onOk(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}static \u0275fac=function(o){return new(o||a)(i(u),i(g))};static \u0275cmp=p({type:a,selectors:[["app-modal-confirm"]],standalone:!1,decls:3,vars:2,consts:[[3,"onOk","onCancel","onClose","config"],[1,"fs-4","mb-0",3,"innerHTML"]],template:function(o,n){o&1&&(l(0,"modal-material",0),d("onOk",function(){return n.onOk()})("onCancel",function(){return n.onClose()})("onClose",function(){return n.onClose()}),l(1,"content"),f(2,"div",1),c()()),o&2&&(t("config",n.modalConfig),s(2),t("innerHTML",n.message,m))},dependencies:[M],encapsulation:2})};export{_ as a};
1
+ import{u as T,v as M}from"./chunk-CD3BSGAP.js";import{e as g,f as u}from"./chunk-3YKVLHZG.js";import{a as C}from"./chunk-2FWFPV5I.js";import{$a as s,Ib as l,Jb as c,Kb as f,Qb as d,Va as m,db as i,kb as p,vb as t}from"./chunk-UXRO4UFY.js";var _=class a{constructor(e,o){this.data=e;this.dialogRef=o;this.message=e.message,this.modalConfig=new T,this.modalConfig.title=e.title,this.modalConfig.okText=e.okText?e.okText:"Yes",this.modalConfig.cancelText=e.cancelText?e.cancelText:"No",this.modalConfig.headerType=e.headerType?e.headerType:C.Success}modalConfig;message;headerType;onOk(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}static \u0275fac=function(o){return new(o||a)(i(u),i(g))};static \u0275cmp=p({type:a,selectors:[["app-modal-confirm"]],standalone:!1,decls:3,vars:2,consts:[[3,"onOk","onCancel","onClose","config"],[1,"fs-4","mb-0",3,"innerHTML"]],template:function(o,n){o&1&&(l(0,"modal-material",0),d("onOk",function(){return n.onOk()})("onCancel",function(){return n.onClose()})("onClose",function(){return n.onClose()}),l(1,"content"),f(2,"div",1),c()()),o&2&&(t("config",n.modalConfig),s(2),t("innerHTML",n.message,m))},dependencies:[M],encapsulation:2})};export{_ as a};
@@ -1 +1 @@
1
- import{b as L,c as O}from"./chunk-JOXTERIM.js";import{N as S,o as h}from"./chunk-46DETXA6.js";import{a as F}from"./chunk-ZZGSAFGO.js";import{$a as o,Ac as d,Db as g,Ib as l,Jb as s,Kb as x,Lb as V,Mb as T,Rb as p,Va as C,Wa as I,Wc as v,Zc as N,ec as u,gc as m,gd as E,jd as k,ka as b,kb as _,lb as y,qb as r,rc as M,sc as P,vb as a,zb as f,zc as c}from"./chunk-UXRO4UFY.js";var D=t=>({disabled:t}),H=(t,i)=>({labelFilledInput:t,labelEmptyInput:i});function B(t,i){if(t&1&&(l(0,"a",4),u(1),c(2,"number"),s()),t&2){let e=p(2);a("href",e.inputValue,I),o(),m(" ",e.inputValueType()==="number"?d(2,2,e.inputValue):e.inputValue," ")}}function j(t,i){if(t&1&&(u(0),c(1,"number")),t&2){let e=p(2);m(" ",e.inputValueType()==="number"?d(1,1,e.inputValue):e.inputValue," ")}}function U(t,i){if(t&1&&(l(0,"p",1),r(1,B,3,4,"a",4)(2,j,2,3),s()),t&2){let e=p();o(),g(e.isLink?1:2)}}function q(t,i){if(t&1&&(x(0,"p",5),c(1,"newlines")),t&2){let e=p();a("innerHTML",d(1,1,e.inputValue),C)}}function A(t,i){if(t&1&&(V(0),u(1),T()),t&2){let e=p();o(),m(" ",e.labelValue," ")}}var z=class t{inputValue;labelValue;inputType="input";labelVisible=!0;disabled=!1;class="mb-8 ";tooltip;isLink=!1;isInputFilled;isNotEmpty=F.IsNotEmpty;inputValueType(){return typeof this.inputValue}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["POS-info-page-input"]],inputs:{inputValue:"inputValue",labelValue:"labelValue",inputType:"inputType",labelVisible:"labelVisible",disabled:"disabled",class:"class",tooltip:"tooltip",isLink:"isLink"},standalone:!1,decls:5,vars:14,consts:[["matTooltipPosition","above",3,"ngClass","matTooltip"],[1,"text-truncate"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],["target","_blank",3,"href"],[3,"innerHTML"]],template:function(e,n){e&1&&(l(0,"div",0),r(1,U,3,1,"p",1)(2,q,2,3,"p",2),l(3,"label"),r(4,A,2,1,"ng-container",3),s()()),e&2&&(f(n.class),a("ngClass",M(9,D,n.disabled))("matTooltip",n.tooltip),o(),g(n.isNotEmpty(n.inputValue)&&n.inputType=="input"?1:-1),o(),a("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="textarea"),o(),f(P(11,H,n.isNotEmpty(n.inputValue),!n.isNotEmpty(n.inputValue))),o(),a("ngIf",n.labelVisible))},dependencies:[v,N,L,E,h],styles:["div[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;border-radius:.25rem!important}p[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem}a[_ngcontent-%COMP%]{color:#007bff;text-decoration:none}.labelFilledInput[_ngcontent-%COMP%]{position:absolute;top:-10px;left:10px;background:#fff;padding-left:4px;padding-right:4px;font-size:.75rem!important;color:#9da2a6}.labelEmptyInput[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem;color:#ccc}.disabled[_ngcontent-%COMP%]{background-color:#e9ecef;opacity:1}"]})},w=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=y({type:t});static \u0275inj=b({imports:[k,S,O]})};export{z as a,w as b};
1
+ import{b as L,c as O}from"./chunk-JOXTERIM.js";import{N as S,o as h}from"./chunk-5OS5VELO.js";import{a as F}from"./chunk-ZZGSAFGO.js";import{$a as o,Ac as d,Db as g,Ib as l,Jb as s,Kb as x,Lb as V,Mb as T,Rb as p,Va as C,Wa as I,Wc as v,Zc as N,ec as u,gc as m,gd as E,jd as k,ka as b,kb as _,lb as y,qb as r,rc as M,sc as P,vb as a,zb as f,zc as c}from"./chunk-UXRO4UFY.js";var D=t=>({disabled:t}),H=(t,i)=>({labelFilledInput:t,labelEmptyInput:i});function B(t,i){if(t&1&&(l(0,"a",4),u(1),c(2,"number"),s()),t&2){let e=p(2);a("href",e.inputValue,I),o(),m(" ",e.inputValueType()==="number"?d(2,2,e.inputValue):e.inputValue," ")}}function j(t,i){if(t&1&&(u(0),c(1,"number")),t&2){let e=p(2);m(" ",e.inputValueType()==="number"?d(1,1,e.inputValue):e.inputValue," ")}}function U(t,i){if(t&1&&(l(0,"p",1),r(1,B,3,4,"a",4)(2,j,2,3),s()),t&2){let e=p();o(),g(e.isLink?1:2)}}function q(t,i){if(t&1&&(x(0,"p",5),c(1,"newlines")),t&2){let e=p();a("innerHTML",d(1,1,e.inputValue),C)}}function A(t,i){if(t&1&&(V(0),u(1),T()),t&2){let e=p();o(),m(" ",e.labelValue," ")}}var z=class t{inputValue;labelValue;inputType="input";labelVisible=!0;disabled=!1;class="mb-8 ";tooltip;isLink=!1;isInputFilled;isNotEmpty=F.IsNotEmpty;inputValueType(){return typeof this.inputValue}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=_({type:t,selectors:[["POS-info-page-input"]],inputs:{inputValue:"inputValue",labelValue:"labelValue",inputType:"inputType",labelVisible:"labelVisible",disabled:"disabled",class:"class",tooltip:"tooltip",isLink:"isLink"},standalone:!1,decls:5,vars:14,consts:[["matTooltipPosition","above",3,"ngClass","matTooltip"],[1,"text-truncate"],[3,"innerHTML",4,"ngIf"],[4,"ngIf"],["target","_blank",3,"href"],[3,"innerHTML"]],template:function(e,n){e&1&&(l(0,"div",0),r(1,U,3,1,"p",1)(2,q,2,3,"p",2),l(3,"label"),r(4,A,2,1,"ng-container",3),s()()),e&2&&(f(n.class),a("ngClass",M(9,D,n.disabled))("matTooltip",n.tooltip),o(),g(n.isNotEmpty(n.inputValue)&&n.inputType=="input"?1:-1),o(),a("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="textarea"),o(),f(P(11,H,n.isNotEmpty(n.inputValue),!n.isNotEmpty(n.inputValue))),o(),a("ngIf",n.labelVisible))},dependencies:[v,N,L,E,h],styles:["div[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;border-radius:.25rem!important}p[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem}a[_ngcontent-%COMP%]{color:#007bff;text-decoration:none}.labelFilledInput[_ngcontent-%COMP%]{position:absolute;top:-10px;left:10px;background:#fff;padding-left:4px;padding-right:4px;font-size:.75rem!important;color:#9da2a6}.labelEmptyInput[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem;color:#ccc}.disabled[_ngcontent-%COMP%]{background-color:#e9ecef;opacity:1}"]})},w=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=y({type:t});static \u0275inj=b({imports:[k,S,O]})};export{z as a,w as b};
@@ -1 +1 @@
1
- import{a as re}from"./chunk-MUJ6277G.js";import{u as ae,v as se,w as le}from"./chunk-EFDAS2KA.js";import{O as ce}from"./chunk-46DETXA6.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-YPOODN5H.js";import{d as Z,e as $}from"./chunk-IC3DZAMU.js";import{a as K}from"./chunk-D5K5VZVN.js";import{e as X,f as Y}from"./chunk-ADE4IPMV.js";import{b as U}from"./chunk-KGLFSTLG.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};
@@ -1 +1 @@
1
- import{G as h,N as E}from"./chunk-46DETXA6.js";import{$a as a,Bc as c,Ia as f,Ib as n,Ja as u,Jb as o,Kb as v,Qb as _,Rb as D,Zc as y,ec as l,fc as p,gc as I,jd as k,kb as C,qb as d,rc as M,vb as m,zb as g,zc as s}from"./chunk-UXRO4UFY.js";var A=i=>({"cursor-pointer":i});function S(i,r){i&1&&(n(0,"span"),l(1,"/"),o())}function T(i,r){i&1&&(n(0,"span"),l(1,"/"),o())}function b(i,r){if(i&1&&(n(0,"div",2)(1,"span",3),l(2,"Modified:"),o(),n(3,"span"),l(4),s(5,"IsMinDate"),o(),d(6,T,2,0,"span",4),n(7,"span"),l(8),o()()),i&2){let t=D();a(4),p(c(5,3,t.modified==null?null:t.modified.Date,"dd MMM yyyy HH:mm:ss")),a(2),m("ngIf",t.modified==null?null:t.modified.User),a(2),p(t.modified==null?null:t.modified.User)}}var F=class i{created;modified;hasClick=u(!1);onClickEvent=f();isNotMinimumDateTime(r){let t=new Date("0001-01-01T00:00:00");return new Date(r).getTime()!==t.getTime()}onClick(){this.hasClick()&&this.onClickEvent.emit()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=C({type:i,selectors:[["pos-footer-alert"]],inputs:{created:"created",modified:"modified",hasClick:[1,"hasClick"]},outputs:{onClickEvent:"onClickEvent"},decls:12,vars:11,consts:[[1,"alert","alert-warning","d-flex","align-items-center","gap-3",3,"click"],["aria-hidden","true",1,"fa-regular","fa-file"],[1,"d-flex","gap-2"],[1,"fw-bold"],[4,"ngIf"],["class","d-flex gap-2",4,"ngIf"]],template:function(t,e){t&1&&(n(0,"div",0),_("click",function(){return e.onClick()}),v(1,"i",1),n(2,"div",2)(3,"span",3),l(4,"Created:"),o(),n(5,"span"),l(6),s(7,"IsMinDate"),o(),d(8,S,2,0,"span",4),n(9,"span"),l(10),o()(),d(11,b,9,6,"div",5),o()),t&2&&(g(M(9,A,e.hasClick())),a(6),I(" ",c(7,6,e.created==null?null:e.created.Date,"dd MMM yyyy HH:mm:ss"),""),a(2),m("ngIf",e.created==null?null:e.created.User),a(2),p(e.created==null?null:e.created.User),a(),m("ngIf",(e.modified==null?null:e.modified.Date)&&e.isNotMinimumDateTime(e.modified==null?null:e.modified.Date)||(e.modified==null?null:e.modified.User)))},dependencies:[k,y,E,h],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{F as a};
1
+ import{G as h,N as E}from"./chunk-5OS5VELO.js";import{$a as a,Bc as c,Ia as f,Ib as n,Ja as u,Jb as o,Kb as v,Qb as _,Rb as D,Zc as y,ec as l,fc as p,gc as I,jd as k,kb as C,qb as d,rc as M,vb as m,zb as g,zc as s}from"./chunk-UXRO4UFY.js";var A=i=>({"cursor-pointer":i});function S(i,r){i&1&&(n(0,"span"),l(1,"/"),o())}function T(i,r){i&1&&(n(0,"span"),l(1,"/"),o())}function b(i,r){if(i&1&&(n(0,"div",2)(1,"span",3),l(2,"Modified:"),o(),n(3,"span"),l(4),s(5,"IsMinDate"),o(),d(6,T,2,0,"span",4),n(7,"span"),l(8),o()()),i&2){let t=D();a(4),p(c(5,3,t.modified==null?null:t.modified.Date,"dd MMM yyyy HH:mm:ss")),a(2),m("ngIf",t.modified==null?null:t.modified.User),a(2),p(t.modified==null?null:t.modified.User)}}var F=class i{created;modified;hasClick=u(!1);onClickEvent=f();isNotMinimumDateTime(r){let t=new Date("0001-01-01T00:00:00");return new Date(r).getTime()!==t.getTime()}onClick(){this.hasClick()&&this.onClickEvent.emit()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=C({type:i,selectors:[["pos-footer-alert"]],inputs:{created:"created",modified:"modified",hasClick:[1,"hasClick"]},outputs:{onClickEvent:"onClickEvent"},decls:12,vars:11,consts:[[1,"alert","alert-warning","d-flex","align-items-center","gap-3",3,"click"],["aria-hidden","true",1,"fa-regular","fa-file"],[1,"d-flex","gap-2"],[1,"fw-bold"],[4,"ngIf"],["class","d-flex gap-2",4,"ngIf"]],template:function(t,e){t&1&&(n(0,"div",0),_("click",function(){return e.onClick()}),v(1,"i",1),n(2,"div",2)(3,"span",3),l(4,"Created:"),o(),n(5,"span"),l(6),s(7,"IsMinDate"),o(),d(8,S,2,0,"span",4),n(9,"span"),l(10),o()(),d(11,b,9,6,"div",5),o()),t&2&&(g(M(9,A,e.hasClick())),a(6),I(" ",c(7,6,e.created==null?null:e.created.Date,"dd MMM yyyy HH:mm:ss"),""),a(2),m("ngIf",e.created==null?null:e.created.User),a(2),p(e.created==null?null:e.created.User),a(),m("ngIf",(e.modified==null?null:e.modified.Date)&&e.isNotMinimumDateTime(e.modified==null?null:e.modified.Date)||(e.modified==null?null:e.modified.User)))},dependencies:[k,y,E,h],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{F as a};