dealpos 25.32.3 → 25.32.4

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 (71) hide show
  1. package/browser/{chunk-TTISIM4S.js → chunk-2LETQKAU.js} +1 -1
  2. package/browser/{chunk-TTYJ26EL.js → chunk-2WC36DDU.js} +1 -1
  3. package/browser/{chunk-AI3PATKL.js → chunk-3LI3CQSB.js} +1 -1
  4. package/browser/{chunk-APTTWDU5.js → chunk-3QTP7NMT.js} +1 -1
  5. package/browser/{chunk-DFB3MXOW.js → chunk-4D7U7T57.js} +1 -1
  6. package/browser/{chunk-E4QLEW25.js → chunk-4ZC2NT43.js} +1 -1
  7. package/browser/{chunk-RNDQ5522.js → chunk-5FFWE5ZY.js} +1 -1
  8. package/browser/{chunk-MWRMFGG5.js → chunk-6AJU3BN5.js} +1 -1
  9. package/browser/{chunk-MHSCMW2F.js → chunk-B7QN67LL.js} +1 -1
  10. package/browser/{chunk-NGCZ73VH.js → chunk-BHH2JDS2.js} +1 -1
  11. package/browser/{chunk-NBIGYDJQ.js → chunk-BLJQHEGE.js} +1 -1
  12. package/browser/{chunk-73ZD5TBM.js → chunk-BRAXEMYT.js} +1 -1
  13. package/browser/{chunk-L3DETDJV.js → chunk-BUEZ7V4B.js} +1 -1
  14. package/browser/{chunk-5NVDHYMR.js → chunk-BZNULMMR.js} +1 -1
  15. package/browser/{chunk-WGYWUMZW.js → chunk-C6GPVEAJ.js} +1 -1
  16. package/browser/{chunk-VSLBL3CM.js → chunk-DE646BMA.js} +1 -1
  17. package/browser/{chunk-C4JDSJD7.js → chunk-DNYFWLOC.js} +1 -1
  18. package/browser/{chunk-SWIIZL3R.js → chunk-E2IKPO2K.js} +1 -1
  19. package/browser/{chunk-Q447NXK2.js → chunk-EDLSMJCW.js} +1 -1
  20. package/browser/{chunk-OGEHS67Y.js → chunk-EEVHGYB6.js} +2 -2
  21. package/browser/{chunk-FBGTYVS7.js → chunk-EKQDKLG7.js} +1 -1
  22. package/browser/{chunk-SZCKDUDZ.js → chunk-FBR6BIFO.js} +1 -1
  23. package/browser/{chunk-NQSDZTWC.js → chunk-G4TS2PWL.js} +1 -1
  24. package/browser/{chunk-CVQ7YKL7.js → chunk-GG5T72WD.js} +1 -1
  25. package/browser/{chunk-XA3SWV75.js → chunk-GHVW7FI5.js} +1 -1
  26. package/browser/{chunk-YVW7EXNB.js → chunk-GKC52SLZ.js} +1 -1
  27. package/browser/{chunk-SP7K6W24.js → chunk-HCCQ7YYO.js} +1 -1
  28. package/browser/{chunk-JBKTANON.js → chunk-IMYLFOH6.js} +1 -1
  29. package/browser/{chunk-MNMBSV3F.js → chunk-IRBMVBWO.js} +1 -1
  30. package/browser/{chunk-IIAXTP7E.js → chunk-IUHD7TKR.js} +1 -1
  31. package/browser/{chunk-UHWSIA44.js → chunk-JEGMSSMP.js} +1 -1
  32. package/browser/{chunk-YYGZUYNF.js → chunk-JKO7PMVS.js} +1 -1
  33. package/browser/{chunk-XASK4JLV.js → chunk-JLMFEA3Z.js} +2 -2
  34. package/browser/{chunk-JYVBIUNP.js → chunk-JM256E2N.js} +1 -1
  35. package/browser/{chunk-MN37QCGF.js → chunk-KFWWI6V6.js} +1 -1
  36. package/browser/{chunk-DOCZM3AP.js → chunk-LL3CBTWJ.js} +1 -1
  37. package/browser/{chunk-TI3VWF6U.js → chunk-LSDR3I2F.js} +1 -1
  38. package/browser/{chunk-UDBPWTX6.js → chunk-LU2TU6I2.js} +2 -2
  39. package/browser/{chunk-U46WCD6I.js → chunk-LVAKV3ZJ.js} +1 -1
  40. package/browser/{chunk-QIMFVBG4.js → chunk-MHXYP43G.js} +1 -1
  41. package/browser/{chunk-S2WNUWNT.js → chunk-NMOLJJE7.js} +1 -1
  42. package/browser/{chunk-A4JWIZML.js → chunk-NPJ4GT5B.js} +1 -1
  43. package/browser/{chunk-SNEZD2DF.js → chunk-NVCSXKEA.js} +1 -1
  44. package/browser/{chunk-QW6ZCNCY.js → chunk-OHDH5CSX.js} +1 -1
  45. package/browser/{chunk-GMRS7ESM.js → chunk-P56QH2DL.js} +1 -1
  46. package/browser/{chunk-2ZNA5ARG.js → chunk-PHPESZND.js} +1 -1
  47. package/browser/{chunk-DIQDOQZW.js → chunk-QNEI7FAD.js} +1 -1
  48. package/browser/{chunk-DIGCR6KY.js → chunk-QXAYFT3C.js} +1 -1
  49. package/browser/{chunk-XDGHFSQ4.js → chunk-S7HHHEWL.js} +1 -1
  50. package/browser/{chunk-WVFXYMJZ.js → chunk-SJTMXBVY.js} +1 -1
  51. package/browser/{chunk-WKVHOZNC.js → chunk-TEBKRDH7.js} +2 -2
  52. package/browser/{chunk-CUEYUN4L.js → chunk-U6NPZDGD.js} +1 -1
  53. package/browser/{chunk-VVUAWT7M.js → chunk-UWW5ABR6.js} +1 -1
  54. package/browser/{chunk-H2VYIA6G.js → chunk-UYISGD52.js} +1 -1
  55. package/browser/{chunk-SHLDMXUL.js → chunk-VTE2RRZF.js} +1 -1
  56. package/browser/{chunk-FYGK2DVG.js → chunk-WPN37GGN.js} +1 -1
  57. package/browser/{chunk-MDULIW7A.js → chunk-X6T67EWT.js} +1 -1
  58. package/browser/{chunk-6RPIVSSG.js → chunk-XOHDKULE.js} +1 -1
  59. package/browser/{chunk-K4Y6P32J.js → chunk-XUC6JP4U.js} +1 -1
  60. package/browser/{chunk-FYHJMC4C.js → chunk-XXDB3SL6.js} +2 -2
  61. package/browser/{chunk-ILIIIY6E.js → chunk-YBEDYT5T.js} +1 -1
  62. package/browser/{chunk-UNKHYM7H.js → chunk-YC3TRUS5.js} +1 -1
  63. package/browser/{chunk-GVG275WR.js → chunk-YJKRI3ON.js} +1 -1
  64. package/browser/{chunk-JZHIPJL6.js → chunk-Z4PPVWOZ.js} +1 -1
  65. package/browser/{chunk-X45TI4LP.js → chunk-Z6ZVVWH4.js} +1 -1
  66. package/browser/{chunk-PPBUAJHH.js → chunk-Z776W7Z4.js} +1 -1
  67. package/browser/{chunk-Y4QNQF2U.js → chunk-ZUCBKPHQ.js} +1 -1
  68. package/browser/{chunk-3KYY5FYO.js → chunk-ZVE2FEVJ.js} +1 -1
  69. package/browser/index.html +2 -2
  70. package/browser/{main-MVYE7NYX.js → main-FJ2UQDO2.js} +2 -2
  71. package/package.json +1 -1
@@ -1 +1 @@
1
- import{a as k}from"./chunk-MHSCMW2F.js";import{A as N,D as L,E as j,c as E,h as A,i as V,k as I,o as R,p as U}from"./chunk-J577JGRK.js";import{c as D}from"./chunk-NBIGYDJQ.js";import"./chunk-A4JWIZML.js";import{a as p}from"./chunk-EQ6536VC.js";import"./chunk-L3DETDJV.js";import{$a as b,$b as x,Ib as i,Jb as n,Kb as u,Ob as C,Od as M,Qb as g,Td as P,Zb as S,_b as _,d as f,da as v,db as d,ec as s,jc as w,kb as y,kc as O,lc as T,va as l,wa as m}from"./chunk-ONCTFURX.js";import"./chunk-7DCB7DB2.js";var z=["totpCode"],F=class h{constructor(e,t,o,r){this.authenticatorService=e;this.router=t;this.authService=o;this.toastrService=r;this.redirectUrl=this.authService.returnUrl,this.destroy$=new f,this.checkOnRefreshPage()}validationCodeEl;validationCode;redirectUrl;destroy$;ngOnInit(){document.body.classList.add("login-body")}ngAfterViewInit(){this.validationCodeEl.nativeElement.focus()}ngOnDestroy(){document.body.classList.remove("login-body"),this.destroy$.next(!0),this.destroy$.complete()}checkOnRefreshPage(){p.IsEmpty(this.authService.loginResponse)&&this.router.navigate(["/"])}onSubmit(){this.validateOnVerfiyCode()&&this.authenticatorService.validateCode(this.validationCode,this.authService.loginResponse.UserID).pipe(v(this.destroy$)).subscribe({next:e=>{if(this.authService.saveLoginConfigToStorage(e),p.IsNotEmpty(this.redirectUrl))this.router.navigateByUrl(this.redirectUrl),this.authService.returnUrl=null;else{let t=this.authService.getRedirectUrl();this.router.navigate([t])}}})}validateOnVerfiyCode(){let e=!0;return p.IsEmpty(this.validationCode)?(e=!1,this.toastrService.warning("You must enter a authentication code.","Warning")):(this.validationCode.length<6||this.validationCode.length>6)&&(e=!1,this.toastrService.warning("The authentication code must be six digits long.","Warning")),e}numberOnly(e){return p.numberOnly(e)}submitOnFullOTP(e){e.length==6&&this.onSubmit()}static \u0275fac=function(t){return new(t||h)(d(k),d(M),d(D),d(P))};static \u0275cmp=y({type:h,selectors:[["POS-auth-totp"]],viewQuery:function(t,o){if(t&1&&S(z,5),t&2){let r;_(r=x())&&(o.validationCodeEl=r.first)}},decls:28,vars:1,consts:[["totpCode",""],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-first","form-pane"],[1,"text-start"],[1,"mt-6","text-start"],[3,"submit"],[1,"row","mt-3"],[1,"col-12","text-start","otp-container","position-relative"],["for","totpCode",1,"form-label"],["type","text","maxlength","6","data-cy","totp-code","aria-label","Username","name","totp-code","id","totpCode",1,"border-0",3,"ngModelChange","keypress","ngModel"],[1,"stripe"],["type","submit",1,"btn","btn-lg","btn-primary","rounded-1","fw-normal","rounded-0"],[1,"col-md-5","order-md-last","order-last","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane"],[1,"d-flex","align-items-center","justify-content-center","mb-6"],["src","//res.cloudinary.com/pos/image/upload/v1666079494/POS/Images/Login/TOTP.png",1,"border-0",2,"width","50%"],[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"]],template:function(t,o){if(t&1){let r=C();i(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),s(4,"Enter time-based OTP"),n(),i(5,"p",5),s(6,"Enter the OTP generated on your authenticator app"),n(),i(7,"form",6),g("submit",function(){return l(r),m(o.onSubmit())}),i(8,"div",7)(9,"div",8)(10,"label",9),s(11,"AUTHENTICATION CODE"),n(),i(12,"input",10,0),T("ngModelChange",function(a){return l(r),O(o.validationCode,a)||(o.validationCode=a),m(a)}),g("keypress",function(a){return l(r),m(o.numberOnly(a))})("ngModelChange",function(a){return l(r),m(o.submitOnFullOTP(a))}),n(),i(14,"span",11),s(15,"______"),n(),i(16,"button",12),s(17," Verify "),n()()()()(),i(18,"div",13)(19,"div",14),u(20,"img",15),n()()(),i(21,"div",16)(22,"div",17)(23,"div")(24,"span"),s(25,"powered by :"),n(),u(26,"a",18)(27,"img",19),n()()()()}t&2&&(b(12),w("ngModel",o.validationCode))},dependencies:[j,U,E,A,V,N,L,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:3rem}@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}"]})};export{F as AuthTotpComponent};
1
+ import{a as k}from"./chunk-B7QN67LL.js";import{A as N,D as L,E as j,c as E,h as A,i as V,k as I,o as R,p as U}from"./chunk-J577JGRK.js";import{c as D}from"./chunk-BLJQHEGE.js";import"./chunk-NPJ4GT5B.js";import{a as p}from"./chunk-EQ6536VC.js";import"./chunk-BUEZ7V4B.js";import{$a as b,$b as x,Ib as i,Jb as n,Kb as u,Ob as C,Od as M,Qb as g,Td as P,Zb as S,_b as _,d as f,da as v,db as d,ec as s,jc as w,kb as y,kc as O,lc as T,va as l,wa as m}from"./chunk-ONCTFURX.js";import"./chunk-7DCB7DB2.js";var z=["totpCode"],F=class h{constructor(e,t,o,r){this.authenticatorService=e;this.router=t;this.authService=o;this.toastrService=r;this.redirectUrl=this.authService.returnUrl,this.destroy$=new f,this.checkOnRefreshPage()}validationCodeEl;validationCode;redirectUrl;destroy$;ngOnInit(){document.body.classList.add("login-body")}ngAfterViewInit(){this.validationCodeEl.nativeElement.focus()}ngOnDestroy(){document.body.classList.remove("login-body"),this.destroy$.next(!0),this.destroy$.complete()}checkOnRefreshPage(){p.IsEmpty(this.authService.loginResponse)&&this.router.navigate(["/"])}onSubmit(){this.validateOnVerfiyCode()&&this.authenticatorService.validateCode(this.validationCode,this.authService.loginResponse.UserID).pipe(v(this.destroy$)).subscribe({next:e=>{if(this.authService.saveLoginConfigToStorage(e),p.IsNotEmpty(this.redirectUrl))this.router.navigateByUrl(this.redirectUrl),this.authService.returnUrl=null;else{let t=this.authService.getRedirectUrl();this.router.navigate([t])}}})}validateOnVerfiyCode(){let e=!0;return p.IsEmpty(this.validationCode)?(e=!1,this.toastrService.warning("You must enter a authentication code.","Warning")):(this.validationCode.length<6||this.validationCode.length>6)&&(e=!1,this.toastrService.warning("The authentication code must be six digits long.","Warning")),e}numberOnly(e){return p.numberOnly(e)}submitOnFullOTP(e){e.length==6&&this.onSubmit()}static \u0275fac=function(t){return new(t||h)(d(k),d(M),d(D),d(P))};static \u0275cmp=y({type:h,selectors:[["POS-auth-totp"]],viewQuery:function(t,o){if(t&1&&S(z,5),t&2){let r;_(r=x())&&(o.validationCodeEl=r.first)}},decls:28,vars:1,consts:[["totpCode",""],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-first","form-pane"],[1,"text-start"],[1,"mt-6","text-start"],[3,"submit"],[1,"row","mt-3"],[1,"col-12","text-start","otp-container","position-relative"],["for","totpCode",1,"form-label"],["type","text","maxlength","6","data-cy","totp-code","aria-label","Username","name","totp-code","id","totpCode",1,"border-0",3,"ngModelChange","keypress","ngModel"],[1,"stripe"],["type","submit",1,"btn","btn-lg","btn-primary","rounded-1","fw-normal","rounded-0"],[1,"col-md-5","order-md-last","order-last","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane"],[1,"d-flex","align-items-center","justify-content-center","mb-6"],["src","//res.cloudinary.com/pos/image/upload/v1666079494/POS/Images/Login/TOTP.png",1,"border-0",2,"width","50%"],[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"]],template:function(t,o){if(t&1){let r=C();i(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),s(4,"Enter time-based OTP"),n(),i(5,"p",5),s(6,"Enter the OTP generated on your authenticator app"),n(),i(7,"form",6),g("submit",function(){return l(r),m(o.onSubmit())}),i(8,"div",7)(9,"div",8)(10,"label",9),s(11,"AUTHENTICATION CODE"),n(),i(12,"input",10,0),T("ngModelChange",function(a){return l(r),O(o.validationCode,a)||(o.validationCode=a),m(a)}),g("keypress",function(a){return l(r),m(o.numberOnly(a))})("ngModelChange",function(a){return l(r),m(o.submitOnFullOTP(a))}),n(),i(14,"span",11),s(15,"______"),n(),i(16,"button",12),s(17," Verify "),n()()()()(),i(18,"div",13)(19,"div",14),u(20,"img",15),n()()(),i(21,"div",16)(22,"div",17)(23,"div")(24,"span"),s(25,"powered by :"),n(),u(26,"a",18)(27,"img",19),n()()()()}t&2&&(b(12),w("ngModel",o.validationCode))},dependencies:[j,U,E,A,V,N,L,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:3rem}@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}"]})};export{F as AuthTotpComponent};