dealpos 25.36.2 → 25.36.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 (80) hide show
  1. package/browser/{chunk-UBFPWZKK.js → chunk-2BJ64H7R.js} +1 -1
  2. package/browser/{chunk-MIUDUL5O.js → chunk-2LKOMKF7.js} +1 -1
  3. package/browser/{chunk-6WVUJYF7.js → chunk-2P7A5QSW.js} +1 -1
  4. package/browser/{chunk-WN5WLSWK.js → chunk-2WELHORE.js} +12 -12
  5. package/browser/{chunk-HTXNZ5OH.js → chunk-36TT3WJZ.js} +2 -2
  6. package/browser/{chunk-RTD4PUTS.js → chunk-3AEZZSNR.js} +1 -1
  7. package/browser/{chunk-VCINTCFP.js → chunk-3K4NHIJV.js} +1 -1
  8. package/browser/{chunk-NFTUD5LZ.js → chunk-4KJQEYIR.js} +1 -1
  9. package/browser/{chunk-3BWRE4P6.js → chunk-4OMZQ5HK.js} +1 -1
  10. package/browser/{chunk-4WIPVW4V.js → chunk-64PRCTR2.js} +1 -1
  11. package/browser/{chunk-446SIVDN.js → chunk-6Z7ZGTB4.js} +1 -1
  12. package/browser/{chunk-SEJO3YK3.js → chunk-7F6H3VFX.js} +1 -1
  13. package/browser/{chunk-55VMNRO2.js → chunk-7FRXJGU7.js} +1 -1
  14. package/browser/{chunk-FTG6OSPJ.js → chunk-7HX2ZEHC.js} +1 -1
  15. package/browser/{chunk-WYTXXYFH.js → chunk-A3OULNF5.js} +1 -1
  16. package/browser/{chunk-KKQ3PBCF.js → chunk-A4K4RDXW.js} +1 -1
  17. package/browser/{chunk-FWSWIKNJ.js → chunk-AOAAVKWR.js} +1 -1
  18. package/browser/{chunk-7DIY4CBI.js → chunk-C7EZEQZQ.js} +1 -1
  19. package/browser/{chunk-NQEHGV4G.js → chunk-CURXE4WR.js} +1 -1
  20. package/browser/{chunk-JHNH2AF7.js → chunk-DJHIHS3W.js} +1 -1
  21. package/browser/{chunk-M5255JXQ.js → chunk-DQXE767S.js} +1 -1
  22. package/browser/{chunk-ZDEUKETL.js → chunk-EIHAMJHD.js} +1 -1
  23. package/browser/{chunk-KI3VDGWO.js → chunk-GHYJCSNA.js} +1 -1
  24. package/browser/{chunk-72CYGG3F.js → chunk-GM7AHKLZ.js} +1 -1
  25. package/browser/{chunk-RPHXTGV4.js → chunk-HID7MO2S.js} +1 -1
  26. package/browser/{chunk-445MKY7P.js → chunk-I3JXGYPZ.js} +1 -1
  27. package/browser/{chunk-236T5WSU.js → chunk-IB3KMJOZ.js} +1 -1
  28. package/browser/{chunk-K3CBCNVT.js → chunk-IBTIOJOZ.js} +1 -1
  29. package/browser/{chunk-LEGX56U6.js → chunk-IPI25TWA.js} +1 -1
  30. package/browser/{chunk-5YNQL2WY.js → chunk-ITSEL53X.js} +1 -1
  31. package/browser/{chunk-JST7PLQM.js → chunk-JM6WDW37.js} +1 -1
  32. package/browser/{chunk-NKWIQ32C.js → chunk-JYTOIAQL.js} +1 -1
  33. package/browser/{chunk-STXBDXCJ.js → chunk-KRC5LE5H.js} +1 -1
  34. package/browser/{chunk-P6XHDVFD.js → chunk-L2GLJO5X.js} +1 -1
  35. package/browser/{chunk-LET3RO6U.js → chunk-LP2Z5VKX.js} +2 -2
  36. package/browser/{chunk-HNUM6CZZ.js → chunk-LQTBKFXH.js} +1 -1
  37. package/browser/{chunk-24BK4GZ2.js → chunk-LRSTQA5B.js} +1 -1
  38. package/browser/{chunk-UGTEWCC7.js → chunk-LVK7ESIU.js} +2 -2
  39. package/browser/{chunk-TMQHZ27I.js → chunk-M5PTO2R2.js} +1 -1
  40. package/browser/{chunk-75OXW5FF.js → chunk-N4OAT3FW.js} +1 -1
  41. package/browser/{chunk-5XPT5NMN.js → chunk-N7T6HUYA.js} +1 -1
  42. package/browser/{chunk-GPNQBF7Z.js → chunk-NFBE3ZMT.js} +1 -1
  43. package/browser/{chunk-CAHMIN3M.js → chunk-NH3OND33.js} +1 -1
  44. package/browser/{chunk-YCDAVU5S.js → chunk-NQ25BYIN.js} +1 -1
  45. package/browser/{chunk-XH75PP4O.js → chunk-NR54XPL4.js} +1 -1
  46. package/browser/{chunk-GWRTBYUS.js → chunk-NRWF3XBS.js} +1 -1
  47. package/browser/chunk-OG4QEJCU.js +1 -0
  48. package/browser/{chunk-RU6ZFZ7D.js → chunk-OLSVR34W.js} +1 -1
  49. package/browser/{chunk-AQUIB7DB.js → chunk-PTXDA5BK.js} +1 -1
  50. package/browser/{chunk-VWY6NDHT.js → chunk-PY6BNBHP.js} +1 -1
  51. package/browser/{chunk-OZAJEAR6.js → chunk-Q23EKNIO.js} +1 -1
  52. package/browser/{chunk-ADO2SKYQ.js → chunk-Q7GVJZBF.js} +1 -1
  53. package/browser/{chunk-GOS6KCY4.js → chunk-QYXTSGSR.js} +1 -1
  54. package/browser/{chunk-X33IUA3S.js → chunk-R3JXU6L4.js} +1 -1
  55. package/browser/{chunk-WWHY6YW5.js → chunk-RKIIOMW3.js} +1 -1
  56. package/browser/{chunk-XLVCNQHR.js → chunk-RQLTUOIG.js} +1 -1
  57. package/browser/{chunk-ZWSIMORT.js → chunk-RWHRX53O.js} +1 -1
  58. package/browser/{chunk-RDKRZMFS.js → chunk-TFRMAVDX.js} +1 -1
  59. package/browser/{chunk-JUFO6GHQ.js → chunk-UG37H4GU.js} +1 -1
  60. package/browser/{chunk-ND4SQ7JK.js → chunk-UJUI5ETY.js} +1 -1
  61. package/browser/{chunk-IRINITYM.js → chunk-UV6PSJXI.js} +1 -1
  62. package/browser/{chunk-OONLQN47.js → chunk-VP36G4HT.js} +1 -1
  63. package/browser/{chunk-K2ZWKEBA.js → chunk-WD3MA4MA.js} +1 -1
  64. package/browser/{chunk-AZU6HW5D.js → chunk-WSJHXTI4.js} +1 -1
  65. package/browser/{chunk-4E2SGUYD.js → chunk-WW5AU5JJ.js} +1 -1
  66. package/browser/{chunk-5DXZCDDX.js → chunk-X6IMSSTG.js} +2 -2
  67. package/browser/{chunk-GX4LLL35.js → chunk-XGHFDJFY.js} +1 -1
  68. package/browser/{chunk-EDH67DEI.js → chunk-XSZLLHRW.js} +1 -1
  69. package/browser/{chunk-4NZA4IG2.js → chunk-Y545FJCR.js} +1 -1
  70. package/browser/{chunk-5PMSCBJJ.js → chunk-YJSNPROE.js} +1 -1
  71. package/browser/{chunk-GWPSMBLW.js → chunk-YKXNLBIB.js} +2 -2
  72. package/browser/{chunk-MW7RJQ7L.js → chunk-YPF7BMPI.js} +1 -1
  73. package/browser/{chunk-ATIZNVIC.js → chunk-YUGYXJ5G.js} +1 -1
  74. package/browser/{chunk-AC66NWU7.js → chunk-YVBFA7MT.js} +1 -1
  75. package/browser/{chunk-INVGSUVG.js → chunk-ZY2QH5WA.js} +1 -1
  76. package/browser/{chunk-QWHALQ42.js → chunk-ZYVROOL4.js} +1 -1
  77. package/browser/index.html +2 -2
  78. package/browser/{main-SYCMIOD6.js → main-LFZKZ6WQ.js} +2 -2
  79. package/package.json +1 -1
  80. package/browser/chunk-A7VZLQPZ.js +0 -1
@@ -1 +1 @@
1
- import{a as k}from"./chunk-VWY6NDHT.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-P7HKWFZT.js";import{c as D}from"./chunk-75OXW5FF.js";import"./chunk-K3CBCNVT.js";import{a as p}from"./chunk-AHCRE4GP.js";import"./chunk-STXBDXCJ.js";import{$a as b,$b as x,Ib as i,Jb as n,Kb as u,Ob as C,Qb as g,Qd as M,Vd 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-DZT5XHBQ.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-PY6BNBHP.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-P7HKWFZT.js";import{c as D}from"./chunk-N4OAT3FW.js";import"./chunk-IBTIOJOZ.js";import{a as p}from"./chunk-AHCRE4GP.js";import"./chunk-KRC5LE5H.js";import{$a as b,$b as x,Ib as i,Jb as n,Kb as u,Ob as C,Qb as g,Qd as M,Vd 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-DZT5XHBQ.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};