dealpos 25.34.2 → 25.34.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 (75) hide show
  1. package/browser/{chunk-N6VULU5K.js → chunk-2CPEVVR2.js} +1 -1
  2. package/browser/{chunk-UWVVQXFV.js → chunk-2ERN2OKP.js} +1 -1
  3. package/browser/{chunk-D2XFIIRV.js → chunk-2WLLBM7V.js} +1 -1
  4. package/browser/{chunk-5CQCPILV.js → chunk-37N7R4MR.js} +1 -1
  5. package/browser/{chunk-Z5SXUHI6.js → chunk-467BIY5Y.js} +1 -1
  6. package/browser/{chunk-CQK5VZ5U.js → chunk-4BRQFXWB.js} +1 -1
  7. package/browser/{chunk-OYKMBHH3.js → chunk-5IXIBUUE.js} +1 -1
  8. package/browser/{chunk-CUZHOUTT.js → chunk-5QCPESVX.js} +2 -2
  9. package/browser/{chunk-GWQ4DDRC.js → chunk-6B7BR3YH.js} +1 -1
  10. package/browser/{chunk-RMREHOQS.js → chunk-6QTEJ62U.js} +1 -1
  11. package/browser/{chunk-JN6CQ5QY.js → chunk-6RNNEBZN.js} +1 -1
  12. package/browser/{chunk-7Z2SV5BR.js → chunk-7755VIBU.js} +1 -1
  13. package/browser/{chunk-AJRF756I.js → chunk-AAZHVBLN.js} +1 -1
  14. package/browser/{chunk-E5ORAYAT.js → chunk-AXPUTX5G.js} +1 -1
  15. package/browser/{chunk-AHS5SF2F.js → chunk-B2YWLIS7.js} +1 -1
  16. package/browser/{chunk-KT3FCUIJ.js → chunk-BA4FLS6F.js} +1 -1
  17. package/browser/{chunk-4PR4BJUK.js → chunk-BH7BMMUJ.js} +1 -1
  18. package/browser/{chunk-ZZO3UETT.js → chunk-BLXTOQAY.js} +1 -1
  19. package/browser/{chunk-C3H5RJ53.js → chunk-BQTTOONV.js} +1 -1
  20. package/browser/{chunk-2BDJSELV.js → chunk-BTIJQJC2.js} +1 -1
  21. package/browser/{chunk-25BC7SZ4.js → chunk-D3FCGJFW.js} +1 -1
  22. package/browser/{chunk-UA2K3ZOT.js → chunk-DFA6X3CI.js} +1 -1
  23. package/browser/{chunk-L4347XVN.js → chunk-DQYT5ZDJ.js} +1 -1
  24. package/browser/{chunk-QOCXUHST.js → chunk-EEAFMPYC.js} +1 -1
  25. package/browser/{chunk-HV6RH7IP.js → chunk-EWCQLU6J.js} +1 -1
  26. package/browser/{chunk-SWSPY4BC.js → chunk-FEG7HXQ2.js} +1 -1
  27. package/browser/{chunk-H7MG6BZV.js → chunk-FGQYSSXA.js} +1 -1
  28. package/browser/{chunk-3BG6ASGM.js → chunk-FIZ56HLI.js} +1 -1
  29. package/browser/{chunk-SE46QMUZ.js → chunk-FRTQ3OHD.js} +1 -1
  30. package/browser/{chunk-7NO4UMH2.js → chunk-G3FPLXZZ.js} +1 -1
  31. package/browser/{chunk-WCY6QKIK.js → chunk-GQLQA3LT.js} +1 -1
  32. package/browser/{chunk-SPAKEDRE.js → chunk-GSDOQUNY.js} +1 -1
  33. package/browser/{chunk-WOA7FL24.js → chunk-ICIWFVQE.js} +2 -2
  34. package/browser/{chunk-EAWBXXCY.js → chunk-JYWNYW5X.js} +2 -2
  35. package/browser/{chunk-XO4AWRUP.js → chunk-KI43CLXR.js} +1 -1
  36. package/browser/{chunk-EQ2X33Y7.js → chunk-KPF7ENCB.js} +1 -1
  37. package/browser/{chunk-YB3KY7OI.js → chunk-LJNRMCRZ.js} +1 -1
  38. package/browser/{chunk-NAXPCX5Z.js → chunk-MASKTING.js} +1 -1
  39. package/browser/{chunk-BRQWRKJL.js → chunk-ME3AIQB7.js} +2 -2
  40. package/browser/{chunk-U66Y6MUA.js → chunk-MF6JJCUO.js} +1 -1
  41. package/browser/{chunk-72XYSM6H.js → chunk-MHUVQ5PI.js} +1 -1
  42. package/browser/{chunk-NJDZFFP2.js → chunk-MKQIUN2R.js} +1 -1
  43. package/browser/{chunk-LACWVEXI.js → chunk-MWQHLWSO.js} +1 -1
  44. package/browser/{chunk-4NZOKTH5.js → chunk-NN4P7GLZ.js} +1 -1
  45. package/browser/{chunk-WNZ62LV6.js → chunk-NUZ3EKC4.js} +1 -1
  46. package/browser/{chunk-5GH4ZXOF.js → chunk-NVC2QHFA.js} +1 -1
  47. package/browser/{chunk-PDRVE7KS.js → chunk-O77ELFCR.js} +1 -1
  48. package/browser/{chunk-FCFX7UK4.js → chunk-OQWDNSIP.js} +1 -1
  49. package/browser/{chunk-GF2O25PD.js → chunk-PCVOETI5.js} +2 -2
  50. package/browser/{chunk-CN5MONMQ.js → chunk-PR3I6YOU.js} +1 -1
  51. package/browser/{chunk-ESP5Q6M4.js → chunk-PXV3RTUZ.js} +1 -1
  52. package/browser/chunk-S5TGRGIJ.js +16 -0
  53. package/browser/{chunk-I2PXSKTR.js → chunk-SDL53POT.js} +1 -1
  54. package/browser/{chunk-SWDAMUEG.js → chunk-SL32OUPB.js} +1 -1
  55. package/browser/{chunk-XKCGHK65.js → chunk-T6GBHW4D.js} +1 -1
  56. package/browser/{chunk-RQ6V6FSE.js → chunk-TGM4RF7T.js} +1 -1
  57. package/browser/{chunk-DMFQV366.js → chunk-TMHBLOWN.js} +1 -1
  58. package/browser/{chunk-2HHBXJEO.js → chunk-TQJIYGPC.js} +1 -1
  59. package/browser/{chunk-YSSOFAAI.js → chunk-UDVNFVRD.js} +1 -1
  60. package/browser/{chunk-U66O4HUW.js → chunk-ULAMVGZ4.js} +1 -1
  61. package/browser/{chunk-PDRERXXI.js → chunk-UM54CBDV.js} +1 -1
  62. package/browser/{chunk-GQHEZKF4.js → chunk-UQSIVFO6.js} +1 -1
  63. package/browser/{chunk-F22SO2DI.js → chunk-UUYHGAAD.js} +1 -1
  64. package/browser/{chunk-EU46AUBS.js → chunk-VFNXTNHT.js} +1 -1
  65. package/browser/{chunk-N3Q5L6AW.js → chunk-W2KH5DZE.js} +1 -1
  66. package/browser/{chunk-TTZXIO6J.js → chunk-WAOSLAZE.js} +1 -1
  67. package/browser/{chunk-OU6CKG3G.js → chunk-WM64HICS.js} +2 -2
  68. package/browser/{chunk-62UWQT4T.js → chunk-WOAEI33W.js} +1 -1
  69. package/browser/{chunk-EOMRO75T.js → chunk-XDXPT2LZ.js} +1 -1
  70. package/browser/{chunk-EDHRH3CR.js → chunk-YZXYURYD.js} +1 -1
  71. package/browser/{chunk-UYK6ATMD.js → chunk-ZQLIRZT2.js} +1 -1
  72. package/browser/index.html +2 -2
  73. package/browser/{main-4APAI7VK.js → main-AUGGVTCG.js} +2 -2
  74. package/package.json +1 -1
  75. package/browser/chunk-NFRDO3AW.js +0 -16
@@ -1 +1 @@
1
- import{a as G}from"./chunk-ZZO3UETT.js";import"./chunk-CN5MONMQ.js";import"./chunk-EXXHAXIE.js";import{a as J}from"./chunk-H443OY7B.js";import{h as q,i as z}from"./chunk-EQ2X33Y7.js";import"./chunk-UA2K3ZOT.js";import{b as A}from"./chunk-L4347XVN.js";import"./chunk-R252C5HM.js";import"./chunk-AFTCPQ2Z.js";import"./chunk-BSUUV75R.js";import{ga as j,ha as k}from"./chunk-H34CGBCE.js";import"./chunk-23F7BAD4.js";import"./chunk-IXGNTK76.js";import"./chunk-GIKR6Y2K.js";import"./chunk-6Y6JUUIW.js";import"./chunk-LS4HUMWF.js";import"./chunk-SDIK6O2Z.js";import"./chunk-2FWFPV5I.js";import"./chunk-4SXNNKVU.js";import{D as W,h as B,o as H}from"./chunk-K2RY2UAW.js";import"./chunk-2BDJSELV.js";import"./chunk-5GH4ZXOF.js";import"./chunk-7JSHH4R2.js";import"./chunk-25BC7SZ4.js";import{$a as l,Ac as F,Bc as T,Eb as x,Fc as E,Gb as M,Hb as w,Ib as i,Jb as n,Ob as v,Qb as N,Rb as S,Vd as V,Yd as R,db as c,ec as o,ed as P,fc as u,gd as L,jc as _,jd as O,kb as D,kc as b,lc as h,ob as y,qb as I,va as p,vb as d,wa as s,zc as C}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";function U(r,g){if(r&1){let e=v();i(0,"div")(1,"div",9)(2,"h6"),o(3,"Outlet"),n(),i(4,"outlet-selector",10),h("ngModelChange",function(t){p(e);let m=S();return b(m.pageData.Filter.ListIDs,t)||(m.pageData.Filter.ListIDs=t),s(t)}),n()()()}if(r&2){let e=S();l(4),d("accessType",2),_("ngModel",e.pageData.Filter.ListIDs),d("multiple",!0)}}function X(r,g){if(r&1&&(i(0,"tr")(1,"td"),o(2),n(),i(3,"td"),o(4),C(5,"number"),n(),i(6,"td"),o(7),C(8,"date"),n()()),r&2){let e=g.$implicit;l(2),u(e==null?null:e.EntityName),l(2),u(F(5,3,e==null?null:e.Number)),l(3),u(T(8,5,e==null?null:e.Modified,"dd MMM yyyy HH:mm"))}}var K=class r extends G{constructor(e,a,t){super(e,a,"Setup/Data/TransactionInvoiceNumber",null,t);this.httpService=a}preGetList(){let e=this.pageData.Filter?.ListIDs?this.pageData.Filter?.ListIDs:[];this.pageData.Filter={ListIDs:e}}static \u0275fac=function(a){return new(a||r)(c(A),c(R),c(V))};static \u0275cmp=D({type:r,selectors:[["app-invoice-numbering"]],features:[y],decls:19,vars:4,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","isFilterOnDropdown","hideSearchBox","filter"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],["matTooltip","Next invoice number index to be generated",2,"width","200px"],[2,"width","200px"],[1,"dialog-filter"],["placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","multiple"]],template:function(a,t){if(a&1){let m=v();i(0,"mainpanel-cmp",1),N("onSubmit",function(){return p(m),s(t.searchFromPageOne())}),h("filterChange",function(f){return p(m),b(t.pageData.Filter,f)||(t.pageData.Filter=f),s(f)}),i(1,"filters"),I(2,U,5,3,"ng-template",null,0,E),n(),i(4,"content")(5,"div",2)(6,"div",3)(7,"table",4)(8,"thead",5)(9,"tr",6)(10,"th"),o(11,"Outlet"),n(),i(12,"th",7),o(13," Next Number "),n(),i(14,"th",8),o(15,"Modified"),n()()(),i(16,"tbody"),M(17,X,9,8,"tr",null,x),n()()()()()()}a&2&&(d("pageData",t.menuData)("isFilterOnDropdown",!1)("hideSearchBox",!0),_("filter",t.pageData.Filter),l(17),w(t.data==null?null:t.data.Data))},dependencies:[O,L,P,z,q,J,W,B,H,k,j],encapsulation:2})};export{K as InvoiceNumberingComponent};
1
+ import{a as G}from"./chunk-BLXTOQAY.js";import"./chunk-PR3I6YOU.js";import"./chunk-EXXHAXIE.js";import{a as J}from"./chunk-H443OY7B.js";import{h as q,i as z}from"./chunk-KPF7ENCB.js";import"./chunk-DFA6X3CI.js";import{b as A}from"./chunk-DQYT5ZDJ.js";import"./chunk-R252C5HM.js";import"./chunk-AFTCPQ2Z.js";import"./chunk-BSUUV75R.js";import{ga as j,ha as k}from"./chunk-H34CGBCE.js";import"./chunk-23F7BAD4.js";import"./chunk-IXGNTK76.js";import"./chunk-GIKR6Y2K.js";import"./chunk-6Y6JUUIW.js";import"./chunk-LS4HUMWF.js";import"./chunk-SDIK6O2Z.js";import"./chunk-2FWFPV5I.js";import"./chunk-4SXNNKVU.js";import{D as W,h as B,o as H}from"./chunk-K2RY2UAW.js";import"./chunk-BTIJQJC2.js";import"./chunk-NVC2QHFA.js";import"./chunk-7JSHH4R2.js";import"./chunk-D3FCGJFW.js";import{$a as l,Ac as F,Bc as T,Eb as x,Fc as E,Gb as M,Hb as w,Ib as i,Jb as n,Ob as v,Qb as N,Rb as S,Vd as V,Yd as R,db as c,ec as o,ed as P,fc as u,gd as L,jc as _,jd as O,kb as D,kc as b,lc as h,ob as y,qb as I,va as p,vb as d,wa as s,zc as C}from"./chunk-4JRXN7L6.js";import"./chunk-7DCB7DB2.js";function U(r,g){if(r&1){let e=v();i(0,"div")(1,"div",9)(2,"h6"),o(3,"Outlet"),n(),i(4,"outlet-selector",10),h("ngModelChange",function(t){p(e);let m=S();return b(m.pageData.Filter.ListIDs,t)||(m.pageData.Filter.ListIDs=t),s(t)}),n()()()}if(r&2){let e=S();l(4),d("accessType",2),_("ngModel",e.pageData.Filter.ListIDs),d("multiple",!0)}}function X(r,g){if(r&1&&(i(0,"tr")(1,"td"),o(2),n(),i(3,"td"),o(4),C(5,"number"),n(),i(6,"td"),o(7),C(8,"date"),n()()),r&2){let e=g.$implicit;l(2),u(e==null?null:e.EntityName),l(2),u(F(5,3,e==null?null:e.Number)),l(3),u(T(8,5,e==null?null:e.Modified,"dd MMM yyyy HH:mm"))}}var K=class r extends G{constructor(e,a,t){super(e,a,"Setup/Data/TransactionInvoiceNumber",null,t);this.httpService=a}preGetList(){let e=this.pageData.Filter?.ListIDs?this.pageData.Filter?.ListIDs:[];this.pageData.Filter={ListIDs:e}}static \u0275fac=function(a){return new(a||r)(c(A),c(R),c(V))};static \u0275cmp=D({type:r,selectors:[["app-invoice-numbering"]],features:[y],decls:19,vars:4,consts:[["pageFilterTemplate",""],[3,"onSubmit","filterChange","pageData","isFilterOnDropdown","hideSearchBox","filter"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],["matTooltip","Next invoice number index to be generated",2,"width","200px"],[2,"width","200px"],[1,"dialog-filter"],["placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","multiple"]],template:function(a,t){if(a&1){let m=v();i(0,"mainpanel-cmp",1),N("onSubmit",function(){return p(m),s(t.searchFromPageOne())}),h("filterChange",function(f){return p(m),b(t.pageData.Filter,f)||(t.pageData.Filter=f),s(f)}),i(1,"filters"),I(2,U,5,3,"ng-template",null,0,E),n(),i(4,"content")(5,"div",2)(6,"div",3)(7,"table",4)(8,"thead",5)(9,"tr",6)(10,"th"),o(11,"Outlet"),n(),i(12,"th",7),o(13," Next Number "),n(),i(14,"th",8),o(15,"Modified"),n()()(),i(16,"tbody"),M(17,X,9,8,"tr",null,x),n()()()()()()}a&2&&(d("pageData",t.menuData)("isFilterOnDropdown",!1)("hideSearchBox",!0),_("filter",t.pageData.Filter),l(17),w(t.data==null?null:t.data.Data))},dependencies:[O,L,P,z,q,J,W,B,H,k,j],encapsulation:2})};export{K as InvoiceNumberingComponent};
@@ -1 +1 @@
1
- import{c as N}from"./chunk-2BDJSELV.js";import"./chunk-5GH4ZXOF.js";import{a as D}from"./chunk-7JSHH4R2.js";import"./chunk-25BC7SZ4.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-4JRXN7L6.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-BTIJQJC2.js";import"./chunk-NVC2QHFA.js";import{a as D}from"./chunk-7JSHH4R2.js";import"./chunk-D3FCGJFW.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-4JRXN7L6.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};