dealpos 25.31.4 → 25.31.5

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-QVGY4BMQ.js → chunk-2F2I63OS.js} +1 -1
  2. package/browser/{chunk-PDZHVC4S.js → chunk-2PU34CZS.js} +1 -1
  3. package/browser/{chunk-OKIY24GE.js → chunk-35JXCDXZ.js} +1 -1
  4. package/browser/{chunk-DAVZ5ZHF.js → chunk-3CP4OVDZ.js} +1 -1
  5. package/browser/{chunk-GWKGRN77.js → chunk-3QBO465E.js} +1 -1
  6. package/browser/{chunk-2T7IINRT.js → chunk-3YT55GU5.js} +1 -1
  7. package/browser/{chunk-OTNH2BIJ.js → chunk-4Z7PPV63.js} +5 -5
  8. package/browser/{chunk-46H7MV5K.js → chunk-6FBA6WD4.js} +1 -1
  9. package/browser/{chunk-TBK74DIQ.js → chunk-7IIEL4TZ.js} +1 -1
  10. package/browser/{chunk-OMIMFRRI.js → chunk-7OUO4K3P.js} +1 -1
  11. package/browser/{chunk-32OZVFJK.js → chunk-A77ASSVQ.js} +1 -1
  12. package/browser/{chunk-2DUED7ZR.js → chunk-ADDDECOT.js} +1 -1
  13. package/browser/{chunk-WYL36OXL.js → chunk-B3C56QJG.js} +1 -1
  14. package/browser/{chunk-A2WJJXY7.js → chunk-B6DV5UWR.js} +1 -1
  15. package/browser/{chunk-NXTRSCQX.js → chunk-B6PTDZCD.js} +1 -1
  16. package/browser/{chunk-466WTRXG.js → chunk-BAKJDOKX.js} +1 -1
  17. package/browser/{chunk-ASTXFBCH.js → chunk-BFSM6DJ7.js} +2 -2
  18. package/browser/{chunk-BKVMGGS5.js → chunk-BMGI5FDR.js} +1 -1
  19. package/browser/{chunk-P6VK2PBY.js → chunk-CG4HZBO3.js} +1 -1
  20. package/browser/{chunk-GFZOMKOU.js → chunk-CIYADTSZ.js} +1 -1
  21. package/browser/{chunk-W2TWTKY6.js → chunk-EDB7M45J.js} +1 -1
  22. package/browser/{chunk-VYR4I7QG.js → chunk-FI4WD7F6.js} +1 -1
  23. package/browser/{chunk-K7YL5PGK.js → chunk-GB6WI6F3.js} +1 -1
  24. package/browser/{chunk-2EVNVVFK.js → chunk-GZZLJ7RV.js} +1 -1
  25. package/browser/{chunk-CW5S3DQO.js → chunk-HTO44HJR.js} +1 -1
  26. package/browser/{chunk-4XHFFY73.js → chunk-HXR5D6CC.js} +1 -1
  27. package/browser/{chunk-XOQX24GP.js → chunk-IH5VF2TY.js} +1 -1
  28. package/browser/{chunk-MGZTCXBX.js → chunk-JEXO3QH5.js} +1 -1
  29. package/browser/{chunk-KWFATZFJ.js → chunk-JRJF67DG.js} +1 -1
  30. package/browser/{chunk-CDA6RYZQ.js → chunk-JZRSNO3S.js} +1 -1
  31. package/browser/{chunk-KMN3C6MP.js → chunk-KIF6W7SN.js} +1 -1
  32. package/browser/{chunk-3G5ELBPD.js → chunk-KZGDDXDA.js} +1 -1
  33. package/browser/{chunk-BK5ZN3WX.js → chunk-LIYK5XEZ.js} +1 -1
  34. package/browser/{chunk-RVIZKQK2.js → chunk-LXNGYYGL.js} +2 -2
  35. package/browser/{chunk-LV35QVNA.js → chunk-M262YURB.js} +1 -1
  36. package/browser/{chunk-VI33QAIU.js → chunk-NHH25ES4.js} +1 -1
  37. package/browser/{chunk-EPD7WB57.js → chunk-NO5M5AGE.js} +1 -1
  38. package/browser/{chunk-TW4WEQON.js → chunk-NOGJJ6RI.js} +2 -2
  39. package/browser/{chunk-ATPD7KTM.js → chunk-O7454TD7.js} +1 -1
  40. package/browser/{chunk-K7ZF26GE.js → chunk-PQLVRYNH.js} +1 -1
  41. package/browser/{chunk-PCE2GBLC.js → chunk-PU3EOXK5.js} +1 -1
  42. package/browser/{chunk-PIJ2427T.js → chunk-PWLJTDFO.js} +1 -1
  43. package/browser/{chunk-4UQJISWF.js → chunk-PZWCGLF2.js} +1 -1
  44. package/browser/{chunk-7PKREZ2F.js → chunk-QHH7XAJN.js} +1 -1
  45. package/browser/{chunk-NIZ2TPWB.js → chunk-QYONAYOJ.js} +1 -1
  46. package/browser/{chunk-L2CVC562.js → chunk-R2HARETG.js} +2 -2
  47. package/browser/{chunk-NZ7ZSG7T.js → chunk-SZ4BCFWA.js} +1 -1
  48. package/browser/{chunk-YANTEHGF.js → chunk-SZFBXLQH.js} +1 -1
  49. package/browser/{chunk-UIHT537E.js → chunk-TGD3XGPD.js} +1 -1
  50. package/browser/{chunk-XESOCXQ6.js → chunk-TKU5D4B6.js} +2 -2
  51. package/browser/{chunk-URR2AQGO.js → chunk-TPAWZTXM.js} +1 -1
  52. package/browser/{chunk-PQMUNABI.js → chunk-TRJ66HTT.js} +1 -1
  53. package/browser/{chunk-B3SK6KY7.js → chunk-U4CKERZL.js} +1 -1
  54. package/browser/{chunk-YBMMLF6J.js → chunk-U7H6CAKH.js} +1 -1
  55. package/browser/{chunk-2ZGK5566.js → chunk-UFMB3E7Y.js} +1 -1
  56. package/browser/{chunk-GIUQ2MII.js → chunk-UOKHIV37.js} +1 -1
  57. package/browser/{chunk-TZWHX2KG.js → chunk-UUOMPSJS.js} +1 -1
  58. package/browser/{chunk-CN4GZXKR.js → chunk-V7O7Q4OU.js} +1 -1
  59. package/browser/{chunk-PQEPUK2L.js → chunk-WADEZ6UH.js} +1 -1
  60. package/browser/{chunk-KAFG3VKC.js → chunk-WC6KFFLR.js} +1 -1
  61. package/browser/{chunk-7O4KILVO.js → chunk-WFBF5J6Q.js} +1 -1
  62. package/browser/{chunk-BJ7PWFZL.js → chunk-WOMERBFJ.js} +1 -1
  63. package/browser/{chunk-LIPAZGM2.js → chunk-XL5D7HL3.js} +1 -1
  64. package/browser/{chunk-D3M4Y45V.js → chunk-YKFLTLP6.js} +1 -1
  65. package/browser/{chunk-CMJ47WH5.js → chunk-YYNTPABW.js} +1 -1
  66. package/browser/{chunk-6EQJIS3K.js → chunk-Z7D7WFP5.js} +1 -1
  67. package/browser/{chunk-TMIMCOHS.js → chunk-Z7TGQ3KM.js} +1 -1
  68. package/browser/{chunk-4P46Z6BK.js → chunk-ZU6XNWIF.js} +1 -1
  69. package/browser/index.html +2 -2
  70. package/browser/{main-UTJ7MSD7.js → main-CD5XHTZS.js} +2 -2
  71. package/package.json +1 -1
@@ -1 +1 @@
1
- import{a as k}from"./chunk-W2TWTKY6.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-LNLGRZBB.js";import{c as D}from"./chunk-DAVZ5ZHF.js";import"./chunk-VYR4I7QG.js";import{a as p}from"./chunk-MP62IGYR.js";import"./chunk-A2WJJXY7.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-EDB2BAIG.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-EDB7M45J.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-LNLGRZBB.js";import{c as D}from"./chunk-3CP4OVDZ.js";import"./chunk-FI4WD7F6.js";import{a as p}from"./chunk-MP62IGYR.js";import"./chunk-B6DV5UWR.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-EDB2BAIG.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};