dealpos 25.50.1 → 25.50.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/browser/{chunk-WC6DBADN.js → chunk-24PYQCLS.js} +1 -1
  2. package/browser/{chunk-W26SBQKL.js → chunk-24QQSO3I.js} +1 -1
  3. package/browser/{chunk-XLKF6N3S.js → chunk-2BFJWET6.js} +1 -1
  4. package/browser/{chunk-PFIN2VSA.js → chunk-2LVKRR2R.js} +1 -1
  5. package/browser/{chunk-XAT2P7QI.js → chunk-2MVZ322B.js} +1 -1
  6. package/browser/{chunk-CMKONRKZ.js → chunk-2PV32D5Q.js} +1 -1
  7. package/browser/{chunk-KAPQ56CY.js → chunk-3QDTSIB6.js} +1 -1
  8. package/browser/{chunk-R4NTCBWJ.js → chunk-42J4XDZQ.js} +2 -2
  9. package/browser/{chunk-CCWIK546.js → chunk-54E6DGPE.js} +1 -1
  10. package/browser/{chunk-7WB7XD5V.js → chunk-54UMDIKR.js} +2 -2
  11. package/browser/{chunk-NZLZ6H6Q.js → chunk-5D6LHDW2.js} +1 -1
  12. package/browser/{chunk-TY24TZEK.js → chunk-5EDMTMQE.js} +1 -1
  13. package/browser/{chunk-VOTRMLKO.js → chunk-64YDRVDG.js} +1 -1
  14. package/browser/{chunk-BKZYMEVP.js → chunk-65FDGBJO.js} +1 -1
  15. package/browser/{chunk-B534JAF4.js → chunk-6CVIKPGY.js} +1 -1
  16. package/browser/{chunk-5Y24QJWR.js → chunk-6PBVX5TT.js} +1 -1
  17. package/browser/{chunk-S3IZOS7R.js → chunk-6QQ7TKNG.js} +2 -2
  18. package/browser/{chunk-FIHBOJV4.js → chunk-7AABZJ3Q.js} +1 -1
  19. package/browser/{chunk-EUSVY4UJ.js → chunk-7CUDTVLZ.js} +1 -1
  20. package/browser/{chunk-IGDDA2RG.js → chunk-7GCZ5FDQ.js} +1 -1
  21. package/browser/{chunk-42EJHS3A.js → chunk-7MGUJEON.js} +1 -1
  22. package/browser/{chunk-DU2VBWSN.js → chunk-7PIO3JIN.js} +1 -1
  23. package/browser/{chunk-WOLF2DPX.js → chunk-7VATOIW5.js} +1 -1
  24. package/browser/{chunk-JIE2RXLX.js → chunk-BESZUYFF.js} +3 -3
  25. package/browser/{chunk-3FAXTVQI.js → chunk-BYEJOHI5.js} +2 -2
  26. package/browser/{chunk-WK7YCGTV.js → chunk-C4DUGK4U.js} +1 -1
  27. package/browser/{chunk-TNHTSFQM.js → chunk-C6KDEINU.js} +1 -1
  28. package/browser/{chunk-L5UAK2LQ.js → chunk-CANKLN6H.js} +1 -1
  29. package/browser/{chunk-VXTQ5VEM.js → chunk-DC4YXLBE.js} +1 -1
  30. package/browser/{chunk-A72QOXN4.js → chunk-DED7477D.js} +1 -1
  31. package/browser/{chunk-TWS5PR4T.js → chunk-DGANMYLB.js} +1 -1
  32. package/browser/{chunk-34U6PVY5.js → chunk-DM3MYART.js} +1 -1
  33. package/browser/{chunk-CUDCXMJN.js → chunk-DRCWIWR4.js} +1 -1
  34. package/browser/{chunk-I3SVXKZW.js → chunk-DYZFZ736.js} +1 -1
  35. package/browser/{chunk-6ACGUR3D.js → chunk-EEJ5ZZ5K.js} +1 -1
  36. package/browser/{chunk-NYZIEOHQ.js → chunk-EGU7BITH.js} +1 -1
  37. package/browser/{chunk-JVNUQR5F.js → chunk-EO3NFUMI.js} +1 -1
  38. package/browser/{chunk-E4L4PN2C.js → chunk-GMEXYYR5.js} +1 -1
  39. package/browser/{chunk-TRCRCGLM.js → chunk-HHOJ4YQR.js} +1 -1
  40. package/browser/{chunk-DMWJZNTI.js → chunk-HVYBU6TY.js} +1 -1
  41. package/browser/{chunk-OEUCWGFD.js → chunk-J53YFCCL.js} +1 -1
  42. package/browser/{chunk-JZTKA4ST.js → chunk-JE4O3B4S.js} +1 -1
  43. package/browser/{chunk-7MCT2FSH.js → chunk-JZ5MD4LC.js} +1 -1
  44. package/browser/{chunk-JAUNAK7P.js → chunk-K3S2VA3C.js} +1 -1
  45. package/browser/{chunk-BOQBXDOK.js → chunk-KQPUNL5V.js} +1 -1
  46. package/browser/{chunk-ZT57H2NK.js → chunk-KZG4CPJW.js} +1 -1
  47. package/browser/{chunk-OQI4P5JW.js → chunk-LZ2R3WSV.js} +1 -1
  48. package/browser/{chunk-C4M7VQFI.js → chunk-MA257SYA.js} +1 -1
  49. package/browser/{chunk-RRIGLMUN.js → chunk-N6UOMCS6.js} +1 -1
  50. package/browser/{chunk-7HOW5QOQ.js → chunk-NNGM7TLL.js} +1 -1
  51. package/browser/{chunk-BEXFUC6A.js → chunk-NTXNJZOI.js} +1 -1
  52. package/browser/{chunk-7NFGGAUY.js → chunk-NZBEEY37.js} +1 -1
  53. package/browser/{chunk-HNTY7S25.js → chunk-O3WVNFF3.js} +1 -1
  54. package/browser/{chunk-BNX6XXDZ.js → chunk-O7LZALSI.js} +1 -1
  55. package/browser/{chunk-XPR2GPHE.js → chunk-OLM3XNOA.js} +1 -1
  56. package/browser/{chunk-7IKZACPQ.js → chunk-PDYPX3HL.js} +1 -1
  57. package/browser/{chunk-NEP77MPC.js → chunk-PR34T5VJ.js} +2 -2
  58. package/browser/{chunk-HGD6HRSU.js → chunk-PV6VJ5DU.js} +1 -1
  59. package/browser/{chunk-33OKCUGA.js → chunk-QBMO2OPJ.js} +1 -1
  60. package/browser/{chunk-6DMG2LMI.js → chunk-REVYYB46.js} +1 -1
  61. package/browser/{chunk-REZUKRTR.js → chunk-S7EPVPRI.js} +1 -1
  62. package/browser/{chunk-SLTQIIWW.js → chunk-SFXHBMXV.js} +1 -1
  63. package/browser/{chunk-J36LAI7P.js → chunk-SUO6DJYC.js} +1 -1
  64. package/browser/{chunk-DIFPP2ZV.js → chunk-SZB5MY63.js} +1 -1
  65. package/browser/{chunk-467KNI4M.js → chunk-SZE5I2OK.js} +1 -1
  66. package/browser/{chunk-HRM7HE6Z.js → chunk-T6FJJ74N.js} +1 -1
  67. package/browser/{chunk-CI4ULOBO.js → chunk-TBWTD5VK.js} +1 -1
  68. package/browser/{chunk-UU4IU25V.js → chunk-TKLP46GO.js} +1 -1
  69. package/browser/{chunk-E2NGOMCD.js → chunk-TNPMDRZO.js} +1 -1
  70. package/browser/{chunk-ULNAGOA3.js → chunk-U5VPMH5B.js} +1 -1
  71. package/browser/{chunk-PASO7BB6.js → chunk-UKGYRZRL.js} +1 -1
  72. package/browser/{chunk-PYSTCFF2.js → chunk-VITAWR3T.js} +1 -1
  73. package/browser/{chunk-JL4CFBF2.js → chunk-VOQLYG7T.js} +1 -1
  74. package/browser/{chunk-OWS3IW26.js → chunk-WFFRWPW6.js} +1 -1
  75. package/browser/{chunk-BFTWW3SB.js → chunk-WJKZQDGG.js} +1 -1
  76. package/browser/{chunk-OZTSXG5Y.js → chunk-WUCW3BSG.js} +1 -1
  77. package/browser/{chunk-RTYMNLFW.js → chunk-XOHCGYTO.js} +1 -1
  78. package/browser/{chunk-XSNUFD7O.js → chunk-YREC2Y5A.js} +1 -1
  79. package/browser/{chunk-VIZOMY6L.js → chunk-YZ4V72WH.js} +2 -2
  80. package/browser/{chunk-2EP6XDTW.js → chunk-Z2JW3BVY.js} +1 -1
  81. package/browser/{chunk-RSDLXHSH.js → chunk-ZE44HGGG.js} +1 -1
  82. package/browser/{chunk-4I3C6CNY.js → chunk-ZHT26XL2.js} +1 -1
  83. package/browser/{chunk-R7KECBQD.js → chunk-ZT6WLRQU.js} +1 -1
  84. package/browser/index.html +2 -2
  85. package/browser/{main-EWD2LJE4.js → main-E2WDTYZB.js} +2 -2
  86. package/package.json +1 -1
@@ -1 +1 @@
1
- import{c as Z}from"./chunk-OZTSXG5Y.js";import"./chunk-UU4IU25V.js";import"./chunk-36GWLMZX.js";import"./chunk-WFQIMZGL.js";import{a as D}from"./chunk-WUV22SZ4.js";import"./chunk-A72QOXN4.js";import{s as j}from"./chunk-LGOSIAUC.js";import{$ as _,Ab as u,Fc as k,Gc as A,Jb as o,Kb as e,Lb as f,N as b,Pb as w,Pd as G,Qb as M,Tb as S,Ub as x,Xa as l,Y as p,Za as O,aa as m,c as s,eb as c,fa as C,fc as L,hc as a,ib as P,ic as h,n as v,od as I,ta as E,ua as y,vd as R,yb as g}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function N(r,n){r&1&&(o(0,"div",13)(1,"span",20),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",21),a(4,"Click here to learn how to manually activate the location permission"),e()())}function T(r,n){if(r&1){let t=w();o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),a(4,"Geo Fencing"),e(),o(5,"p",4),a(6,"You are about to sign-in from this location"),e(),o(7,"div",5)(8,"div",6)(9,"div",7)(10,"span",8),a(11,"LAT"),e(),o(12,"span",9),a(13),e()(),o(14,"div",7)(15,"span",10),a(16,"LONG"),e(),o(17,"span",11),a(18),e()()(),o(19,"button",12),S("click",function(){E(t);let d=x();return y(d.proceed())}),a(20,"Proceed"),e()(),g(21,N,5,0,"div",13),e(),o(22,"div",14),f(23,"img",15),e()(),o(24,"div",16)(25,"div",17)(26,"div")(27,"span"),a(28,"powered by :"),e(),f(29,"a",18)(30,"img",19),e()()()()}if(r&2){let t=n,i=x();l(2),L(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),h(t.latitude),l(5),h(t.longitude),l(),M("disabled",!(t.latitude&&t.longitude)),l(2),u(t.latitude&&t.longitude?-1:21)}}var z=class r{constructor(n,t,i,d){this.ngZone=n;this.auth=t;this.http=i;this.router=d}centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong$;ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body");let n=v(navigator.permissions.query({name:"geolocation"})).pipe(m(t=>new s(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),p(1));this.latLong$=n.pipe(m(()=>new s(t=>{navigator.geolocation.getCurrentPosition(i=>this.ngZone.run(()=>{t.next({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()}),t.complete()}),()=>this.ngZone.run(()=>{t.next({latitude:"",longitude:""}),t.complete()}),{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})})),_({latitude:"",longitude:""}),p(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(m(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),C(n=>this.auth.saveLoginConfigToStorage(n)),m(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(c(O),c(Z),c(j),c(G))};static \u0275cmp=P({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-last","form-pane"],[1,"text-start"],[1,"text-start","mb-7"],[1,"d-flex","flex-column","flex-md-row",2,"column-gap","10px"],[1,"latlong-container","d-flex","flex-grow-1"],[1,"flex-grow-1","text-start","d-flex"],[1,"lat-label","fw-bold"],[1,"ps-5","lat-value","flex-grow-1","d-flex","align-items-center"],[1,"long-label","fw-bold"],[1,"ps-5","long-value","flex-grow-1","d-flex","align-items-center"],[1,"btn","btn-success","mt-5","mx-auto","mx-md-0","mt-md-0","w-25","w-md-100",3,"click","disabled"],[1,"text-start","mt-7"],[1,"col-md-5","order-md-last","order-first","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane","py-6"],["src","https://cdn.dealpos.xyz/web-image/geolocation-map.png",1,"border-0","w-100"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","https://cdn.dealpos.app/public/logo/dealpos_130.png",1,"ms-3","border-0"],[1,"text-danger"],["href","https://support.dealpos.com/en/articles/7963864-enable-location-services-for-several-browser","target","_blank",1,"d-block"]],template:function(t,i){if(t&1&&(g(0,T,31,6,"div",0),k(1,"async")),t&2){let d;u((d=A(1,1,i.latLong$))?0:-1,d)}},dependencies:[R,I],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:2rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}.latlong-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #000000;border-radius:5px}.latlong-container[_ngcontent-%COMP%] .lat-label[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{display:inline-block;padding:12px;border-right:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{border-left:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .lat-value[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-value[_ngcontent-%COMP%]{background:#d9d9d94d}"]})};export{z as AuthGeolocationComponent};
1
+ import{c as Z}from"./chunk-WUCW3BSG.js";import"./chunk-TKLP46GO.js";import"./chunk-36GWLMZX.js";import"./chunk-WFQIMZGL.js";import{a as D}from"./chunk-WUV22SZ4.js";import"./chunk-DED7477D.js";import{s as j}from"./chunk-LGOSIAUC.js";import{$ as _,Ab as u,Fc as k,Gc as A,Jb as o,Kb as e,Lb as f,N as b,Pb as w,Pd as G,Qb as M,Tb as S,Ub as x,Xa as l,Y as p,Za as O,aa as m,c as s,eb as c,fa as C,fc as L,hc as a,ib as P,ic as h,n as v,od as I,ta as E,ua as y,vd as R,yb as g}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function N(r,n){r&1&&(o(0,"div",13)(1,"span",20),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",21),a(4,"Click here to learn how to manually activate the location permission"),e()())}function T(r,n){if(r&1){let t=w();o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),a(4,"Geo Fencing"),e(),o(5,"p",4),a(6,"You are about to sign-in from this location"),e(),o(7,"div",5)(8,"div",6)(9,"div",7)(10,"span",8),a(11,"LAT"),e(),o(12,"span",9),a(13),e()(),o(14,"div",7)(15,"span",10),a(16,"LONG"),e(),o(17,"span",11),a(18),e()()(),o(19,"button",12),S("click",function(){E(t);let d=x();return y(d.proceed())}),a(20,"Proceed"),e()(),g(21,N,5,0,"div",13),e(),o(22,"div",14),f(23,"img",15),e()(),o(24,"div",16)(25,"div",17)(26,"div")(27,"span"),a(28,"powered by :"),e(),f(29,"a",18)(30,"img",19),e()()()()}if(r&2){let t=n,i=x();l(2),L(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),h(t.latitude),l(5),h(t.longitude),l(),M("disabled",!(t.latitude&&t.longitude)),l(2),u(t.latitude&&t.longitude?-1:21)}}var z=class r{constructor(n,t,i,d){this.ngZone=n;this.auth=t;this.http=i;this.router=d}centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong$;ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body");let n=v(navigator.permissions.query({name:"geolocation"})).pipe(m(t=>new s(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),p(1));this.latLong$=n.pipe(m(()=>new s(t=>{navigator.geolocation.getCurrentPosition(i=>this.ngZone.run(()=>{t.next({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()}),t.complete()}),()=>this.ngZone.run(()=>{t.next({latitude:"",longitude:""}),t.complete()}),{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})})),_({latitude:"",longitude:""}),p(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(m(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),C(n=>this.auth.saveLoginConfigToStorage(n)),m(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(c(O),c(Z),c(j),c(G))};static \u0275cmp=P({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-last","form-pane"],[1,"text-start"],[1,"text-start","mb-7"],[1,"d-flex","flex-column","flex-md-row",2,"column-gap","10px"],[1,"latlong-container","d-flex","flex-grow-1"],[1,"flex-grow-1","text-start","d-flex"],[1,"lat-label","fw-bold"],[1,"ps-5","lat-value","flex-grow-1","d-flex","align-items-center"],[1,"long-label","fw-bold"],[1,"ps-5","long-value","flex-grow-1","d-flex","align-items-center"],[1,"btn","btn-success","mt-5","mx-auto","mx-md-0","mt-md-0","w-25","w-md-100",3,"click","disabled"],[1,"text-start","mt-7"],[1,"col-md-5","order-md-last","order-first","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane","py-6"],["src","https://cdn.dealpos.xyz/web-image/geolocation-map.png",1,"border-0","w-100"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","https://cdn.dealpos.app/public/logo/dealpos_130.png",1,"ms-3","border-0"],[1,"text-danger"],["href","https://support.dealpos.com/en/articles/7963864-enable-location-services-for-several-browser","target","_blank",1,"d-block"]],template:function(t,i){if(t&1&&(g(0,T,31,6,"div",0),k(1,"async")),t&2){let d;u((d=A(1,1,i.latLong$))?0:-1,d)}},dependencies:[R,I],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:2rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}.latlong-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #000000;border-radius:5px}.latlong-container[_ngcontent-%COMP%] .lat-label[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{display:inline-block;padding:12px;border-right:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{border-left:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .lat-value[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-value[_ngcontent-%COMP%]{background:#d9d9d94d}"]})};export{z as AuthGeolocationComponent};