dealpos 25.41.0 → 25.41.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/browser/{chunk-GBCEUME2.js → chunk-2EQ7Y56O.js} +2 -2
  2. package/browser/{chunk-OID2F56F.js → chunk-34DMF3QT.js} +1 -1
  3. package/browser/{chunk-CHVYE7JV.js → chunk-3MDUYQJU.js} +1 -1
  4. package/browser/{chunk-AZMKFBK2.js → chunk-4VMXYBU3.js} +2 -2
  5. package/browser/{chunk-HPOSI4EB.js → chunk-5MZEP3D7.js} +1 -1
  6. package/browser/{chunk-ZPQXV57H.js → chunk-5PE5X2VB.js} +1 -1
  7. package/browser/{chunk-A5S5YAD4.js → chunk-65CKGM2C.js} +1 -1
  8. package/browser/{chunk-2Q63FHAZ.js → chunk-6BXO4MVU.js} +1 -1
  9. package/browser/{chunk-MWZWI55C.js → chunk-6IIF7CKF.js} +2 -2
  10. package/browser/chunk-7E6SMB44.js +1 -0
  11. package/browser/{chunk-BIRF2ABZ.js → chunk-7S5F6JOF.js} +1 -1
  12. package/browser/chunk-AAR4B3HZ.js +112 -0
  13. package/browser/{chunk-SXVT4ARO.js → chunk-AFYPHUZX.js} +1 -1
  14. package/browser/{chunk-S7PUQN3L.js → chunk-AKTKAREU.js} +1 -1
  15. package/browser/{chunk-T7SZQ5ER.js → chunk-BZHL4W7T.js} +1 -1
  16. package/browser/{chunk-WWMFBTW6.js → chunk-CIEDGY7H.js} +1 -1
  17. package/browser/{chunk-ICZOEWBT.js → chunk-D5LBI5TH.js} +1 -1
  18. package/browser/{chunk-TBLF6HGT.js → chunk-DE2STA2G.js} +2 -2
  19. package/browser/{chunk-SK5RQIZA.js → chunk-E4R5MW6J.js} +1 -1
  20. package/browser/{chunk-D66QGFWL.js → chunk-EYV7AZ42.js} +1 -1
  21. package/browser/chunk-EZCQYLCW.js +1 -0
  22. package/browser/chunk-F4FAZ5ZL.js +1 -0
  23. package/browser/{chunk-6LF24U22.js → chunk-FBH7LG5C.js} +1 -1
  24. package/browser/{chunk-7AKAJDA6.js → chunk-FRO3O6SU.js} +1 -1
  25. package/browser/{chunk-EGYLYR4R.js → chunk-FZNAOCWZ.js} +2 -2
  26. package/browser/{chunk-E32TPBTM.js → chunk-G7VSP6EW.js} +1 -1
  27. package/browser/{chunk-JZGPSRHE.js → chunk-GHLCUW72.js} +1 -1
  28. package/browser/{chunk-7EM2LL7R.js → chunk-GMX2JWEW.js} +1 -1
  29. package/browser/{chunk-MO72TCM3.js → chunk-GVI4QM2F.js} +1 -1
  30. package/browser/{chunk-2335JJ7I.js → chunk-GVSOBS5Q.js} +2 -2
  31. package/browser/{chunk-32VED5SX.js → chunk-GZ2EJLH3.js} +1 -1
  32. package/browser/{chunk-26Z4OH2A.js → chunk-H54MTXKN.js} +1 -1
  33. package/browser/{chunk-7YKJZAV2.js → chunk-HBC5DBVS.js} +1 -1
  34. package/browser/{chunk-WYAOC74R.js → chunk-HVMUCZ5I.js} +1 -1
  35. package/browser/{chunk-FS3WBME7.js → chunk-I45IV26L.js} +1 -1
  36. package/browser/{chunk-5BMWUUZC.js → chunk-IXHBD564.js} +1 -1
  37. package/browser/{chunk-NTYGQQVE.js → chunk-JY5XX3QX.js} +6 -6
  38. package/browser/{chunk-IKWOYHRW.js → chunk-K3367VWX.js} +1 -1
  39. package/browser/{chunk-4DC2TBLV.js → chunk-KMA5VOEA.js} +1 -1
  40. package/browser/{chunk-UIFA2SDY.js → chunk-LDEAORXA.js} +1 -1
  41. package/browser/{chunk-RM6J5M7M.js → chunk-LGCRFIIA.js} +1 -1
  42. package/browser/{chunk-XBKHQX2Z.js → chunk-LID6CN6L.js} +1 -1
  43. package/browser/{chunk-F6SLXCNW.js → chunk-M7G3WT32.js} +1 -1
  44. package/browser/{chunk-KAIC6JKI.js → chunk-MFIRFGE2.js} +1 -1
  45. package/browser/{chunk-GXZ2EIQO.js → chunk-N22LFPQL.js} +2 -2
  46. package/browser/{chunk-BSVRNBBT.js → chunk-NA7ZJQET.js} +1 -1
  47. package/browser/{chunk-QGSVNOUM.js → chunk-O3HYW3PV.js} +1 -1
  48. package/browser/{chunk-KLIM7HC4.js → chunk-OFGVLEEZ.js} +1 -1
  49. package/browser/{chunk-E25FM2KY.js → chunk-PPWXHE7X.js} +1 -1
  50. package/browser/{chunk-PKXXNSOA.js → chunk-PQUVDF3D.js} +1 -1
  51. package/browser/{chunk-AZG6NVGX.js → chunk-PZID6T4A.js} +1 -1
  52. package/browser/{chunk-PWFFXKPT.js → chunk-QE22VQQ7.js} +1 -1
  53. package/browser/{chunk-UBCZUCAI.js → chunk-QHX74QID.js} +1 -1
  54. package/browser/{chunk-HLB5LHMM.js → chunk-QHYHGORX.js} +1 -1
  55. package/browser/{chunk-J5G2T7JL.js → chunk-QJWMNNK6.js} +2 -2
  56. package/browser/{chunk-SPCOCDB5.js → chunk-RP636SRQ.js} +1 -1
  57. package/browser/{chunk-VF4OMJUM.js → chunk-RZFAYPJW.js} +1 -1
  58. package/browser/{chunk-EWKPKHEM.js → chunk-SDADDOK4.js} +1 -1
  59. package/browser/{chunk-K24FIZWW.js → chunk-SO3422SX.js} +1 -1
  60. package/browser/{chunk-U2PLVLVX.js → chunk-SQC25JWL.js} +1 -1
  61. package/browser/{chunk-VNDXYRE3.js → chunk-SSE7KV5S.js} +1 -1
  62. package/browser/{chunk-INKPSHU5.js → chunk-TLWH7QTW.js} +1 -1
  63. package/browser/{chunk-FNC65DTW.js → chunk-TNLZPCYK.js} +1 -1
  64. package/browser/{chunk-2HPAHDH3.js → chunk-UBMYMSUW.js} +1 -1
  65. package/browser/{chunk-T57FXNTH.js → chunk-UERDXH3W.js} +2 -2
  66. package/browser/chunk-V3YO2TDM.js +1 -0
  67. package/browser/{chunk-FVV3OZGL.js → chunk-VP42CBUF.js} +1 -1
  68. package/browser/{chunk-2PLZSFZT.js → chunk-W4BJ4JBG.js} +1 -1
  69. package/browser/{chunk-INZNIUUT.js → chunk-X4LYU5XA.js} +1 -1
  70. package/browser/{chunk-7LAIQ66I.js → chunk-XHAPRGGF.js} +1 -1
  71. package/browser/{chunk-MMBFUP5P.js → chunk-Y4MHZTLF.js} +1 -1
  72. package/browser/{chunk-MRV7ZBNN.js → chunk-YDXY6QHK.js} +1 -1
  73. package/browser/{chunk-YQNCI5SR.js → chunk-Z3OYXF5N.js} +1 -1
  74. package/browser/{chunk-HHL6JGRR.js → chunk-ZC4V4XIM.js} +1 -1
  75. package/browser/{chunk-KC52V6JH.js → chunk-ZFNJGBST.js} +1 -1
  76. package/browser/{chunk-3CGMC22M.js → chunk-ZIQAYIU4.js} +1 -1
  77. package/browser/{chunk-2PYNUKOZ.js → chunk-ZKRFSVUW.js} +2 -2
  78. package/browser/index.html +2 -2
  79. package/browser/{main-D4SWIXO5.js → main-6UNPCULN.js} +2 -2
  80. package/package.json +1 -1
  81. package/browser/chunk-B7NI6C35.js +0 -1
  82. package/browser/chunk-HOODBZSK.js +0 -112
  83. package/browser/chunk-JXWFGUDB.js +0 -1
  84. package/browser/chunk-MG5VMZYP.js +0 -1
  85. package/browser/chunk-P4D3ZFU6.js +0 -1
@@ -1 +1 @@
1
- import{c as N}from"./chunk-INKPSHU5.js";import"./chunk-FNC65DTW.js";import{a as D}from"./chunk-TYBAV5LT.js";import"./chunk-QGSVNOUM.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-DJOHANFC.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-TLWH7QTW.js";import"./chunk-TNLZPCYK.js";import{a as D}from"./chunk-TYBAV5LT.js";import"./chunk-O3HYW3PV.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-DJOHANFC.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};