dealpos 25.32.2 → 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 (73) hide show
  1. package/browser/{chunk-U6GZZKLZ.js → chunk-2LETQKAU.js} +1 -1
  2. package/browser/{chunk-6THPJHMQ.js → chunk-2WC36DDU.js} +1 -1
  3. package/browser/{chunk-6ZKXKIPB.js → chunk-3LI3CQSB.js} +1 -1
  4. package/browser/{chunk-KR3JCXDQ.js → chunk-3QTP7NMT.js} +1 -1
  5. package/browser/{chunk-47TF4O2L.js → chunk-4D7U7T57.js} +4 -4
  6. package/browser/{chunk-3SRUJJ6G.js → chunk-4ZC2NT43.js} +1 -1
  7. package/browser/{chunk-MZDT5S4Y.js → chunk-5FFWE5ZY.js} +1 -1
  8. package/browser/{chunk-QLTG2D75.js → chunk-6AJU3BN5.js} +1 -1
  9. package/browser/{chunk-2PTTCVFQ.js → chunk-B7QN67LL.js} +1 -1
  10. package/browser/{chunk-F4Y6BS2M.js → chunk-BHH2JDS2.js} +1 -1
  11. package/browser/{chunk-7P2INFVM.js → chunk-BLJQHEGE.js} +1 -1
  12. package/browser/{chunk-QZC2AATI.js → chunk-BRAXEMYT.js} +1 -1
  13. package/browser/{chunk-ZZ33EHCQ.js → chunk-BUEZ7V4B.js} +1 -1
  14. package/browser/{chunk-GX3N6CKR.js → chunk-BZNULMMR.js} +1 -1
  15. package/browser/{chunk-KWLJQH42.js → chunk-C6GPVEAJ.js} +1 -1
  16. package/browser/{chunk-TNKIGPBP.js → chunk-DE646BMA.js} +1 -1
  17. package/browser/{chunk-MLEZTHWZ.js → chunk-DNYFWLOC.js} +1 -1
  18. package/browser/{chunk-R3SYCIJT.js → chunk-E2IKPO2K.js} +1 -1
  19. package/browser/{chunk-3H43P5YA.js → chunk-EDLSMJCW.js} +1 -1
  20. package/browser/{chunk-MMCM7B5Z.js → chunk-EEVHGYB6.js} +2 -2
  21. package/browser/{chunk-UILC7AVT.js → chunk-EKQDKLG7.js} +1 -1
  22. package/browser/{chunk-ADUMDXZG.js → chunk-FBR6BIFO.js} +1 -1
  23. package/browser/{chunk-DGM743IJ.js → chunk-G4TS2PWL.js} +1 -1
  24. package/browser/{chunk-LTIAN3DJ.js → chunk-GG5T72WD.js} +1 -1
  25. package/browser/{chunk-SVPBMCHF.js → chunk-GHVW7FI5.js} +1 -1
  26. package/browser/{chunk-OAJ5KECL.js → chunk-GKC52SLZ.js} +1 -1
  27. package/browser/{chunk-H42QJQ56.js → chunk-HCCQ7YYO.js} +1 -1
  28. package/browser/{chunk-7UEXOSTA.js → chunk-IMYLFOH6.js} +1 -1
  29. package/browser/{chunk-KMVCVCCD.js → chunk-IRBMVBWO.js} +1 -1
  30. package/browser/{chunk-25QFQDV7.js → chunk-IUHD7TKR.js} +1 -1
  31. package/browser/{chunk-CU7IWKXB.js → chunk-JEGMSSMP.js} +1 -1
  32. package/browser/{chunk-HDG7HN7O.js → chunk-JKO7PMVS.js} +1 -1
  33. package/browser/{chunk-W5XUYOZS.js → chunk-JLMFEA3Z.js} +2 -2
  34. package/browser/chunk-JM256E2N.js +1 -0
  35. package/browser/{chunk-WPFM3ZGY.js → chunk-KFWWI6V6.js} +1 -1
  36. package/browser/{chunk-XVW4JKBX.js → chunk-LL3CBTWJ.js} +1 -1
  37. package/browser/{chunk-TKRCAX4C.js → chunk-LSDR3I2F.js} +1 -1
  38. package/browser/{chunk-QB74573V.js → chunk-LU2TU6I2.js} +2 -2
  39. package/browser/{chunk-XV2R2LYT.js → chunk-LVAKV3ZJ.js} +1 -1
  40. package/browser/{chunk-HIFPWLFR.js → chunk-MHXYP43G.js} +1 -1
  41. package/browser/{chunk-C7SBDH6E.js → chunk-NMOLJJE7.js} +1 -1
  42. package/browser/{chunk-RACFHMSM.js → chunk-NPJ4GT5B.js} +1 -1
  43. package/browser/{chunk-HCGM3SVB.js → chunk-NVCSXKEA.js} +1 -1
  44. package/browser/{chunk-O36QNAMF.js → chunk-OHDH5CSX.js} +1 -1
  45. package/browser/{chunk-AVIHEFZ3.js → chunk-P56QH2DL.js} +1 -1
  46. package/browser/{chunk-5KFKRR6I.js → chunk-PHPESZND.js} +1 -1
  47. package/browser/{chunk-L7235LXI.js → chunk-QNEI7FAD.js} +1 -1
  48. package/browser/{chunk-OI47XFJO.js → chunk-QXAYFT3C.js} +1 -1
  49. package/browser/{chunk-Q6DGG2JP.js → chunk-S7HHHEWL.js} +1 -1
  50. package/browser/{chunk-R5GVVUMP.js → chunk-SJTMXBVY.js} +1 -1
  51. package/browser/{chunk-6KABYQ7Y.js → chunk-TEBKRDH7.js} +2 -2
  52. package/browser/{chunk-6DCFTPUD.js → chunk-U6NPZDGD.js} +1 -1
  53. package/browser/{chunk-S2GLPFVJ.js → chunk-UWW5ABR6.js} +1 -1
  54. package/browser/{chunk-QSFZXQNP.js → chunk-UYISGD52.js} +1 -1
  55. package/browser/{chunk-UIL2X6EZ.js → chunk-VTE2RRZF.js} +1 -1
  56. package/browser/{chunk-WGKL5OIB.js → chunk-WPN37GGN.js} +1 -1
  57. package/browser/{chunk-NT3GFLD4.js → chunk-X6T67EWT.js} +1 -1
  58. package/browser/{chunk-3M2BUDUB.js → chunk-XOHDKULE.js} +1 -1
  59. package/browser/{chunk-6DO5AW57.js → chunk-XUC6JP4U.js} +1 -1
  60. package/browser/{chunk-K6KQDJU7.js → chunk-XXDB3SL6.js} +2 -2
  61. package/browser/{chunk-5GH2UM6Y.js → chunk-YBEDYT5T.js} +1 -1
  62. package/browser/{chunk-GDXXQ6LD.js → chunk-YC3TRUS5.js} +1 -1
  63. package/browser/{chunk-PYX4Z6HP.js → chunk-YJKRI3ON.js} +1 -1
  64. package/browser/{chunk-AIJM455Q.js → chunk-Z4PPVWOZ.js} +1 -1
  65. package/browser/chunk-Z6ZVVWH4.js +1 -0
  66. package/browser/{chunk-XBEEV2NG.js → chunk-Z776W7Z4.js} +1 -1
  67. package/browser/{chunk-TYEOX5VV.js → chunk-ZUCBKPHQ.js} +1 -1
  68. package/browser/{chunk-5XRERMVQ.js → chunk-ZVE2FEVJ.js} +1 -1
  69. package/browser/index.html +2 -2
  70. package/browser/{main-KYIE53MH.js → main-FJ2UQDO2.js} +2 -2
  71. package/package.json +1 -1
  72. package/browser/chunk-F2V3ZAGL.js +0 -1
  73. package/browser/chunk-SPYVACLB.js +0 -1
@@ -1 +1 @@
1
- import{a as k}from"./chunk-2PTTCVFQ.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-7P2INFVM.js";import"./chunk-RACFHMSM.js";import{a as p}from"./chunk-EQ6536VC.js";import"./chunk-ZZ33EHCQ.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};