dealpos 25.31.3 → 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 (72) hide show
  1. package/browser/{chunk-J7DAVGHL.js → chunk-2F2I63OS.js} +1 -1
  2. package/browser/{chunk-JVDAP5PW.js → chunk-2PU34CZS.js} +1 -1
  3. package/browser/{chunk-OUSV72N6.js → chunk-35JXCDXZ.js} +1 -1
  4. package/browser/{chunk-2OQ5CGDZ.js → chunk-3CP4OVDZ.js} +1 -1
  5. package/browser/{chunk-XBVJ7UUC.js → chunk-3QBO465E.js} +1 -1
  6. package/browser/{chunk-LNQFPG7E.js → chunk-3YT55GU5.js} +1 -1
  7. package/browser/{chunk-JVBQVJGY.js → chunk-4Z7PPV63.js} +5 -5
  8. package/browser/{chunk-UN3S23DX.js → chunk-6FBA6WD4.js} +1 -1
  9. package/browser/{chunk-VO66LJVM.js → chunk-7IIEL4TZ.js} +1 -1
  10. package/browser/{chunk-YI6KEE7Q.js → chunk-7OUO4K3P.js} +1 -1
  11. package/browser/{chunk-DI72TVEV.js → chunk-A77ASSVQ.js} +1 -1
  12. package/browser/{chunk-KKTDFA34.js → chunk-ADDDECOT.js} +1 -1
  13. package/browser/{chunk-S4LIME7D.js → chunk-B3C56QJG.js} +1 -1
  14. package/browser/{chunk-26WIZL6M.js → chunk-B6DV5UWR.js} +1 -1
  15. package/browser/{chunk-324YW32W.js → chunk-B6PTDZCD.js} +1 -1
  16. package/browser/{chunk-MZPCKRS4.js → chunk-BAKJDOKX.js} +1 -1
  17. package/browser/{chunk-UNSEWD4O.js → chunk-BFSM6DJ7.js} +2 -2
  18. package/browser/{chunk-JDV2UBEW.js → chunk-BMGI5FDR.js} +1 -1
  19. package/browser/{chunk-3HZQ2MWE.js → chunk-CG4HZBO3.js} +1 -1
  20. package/browser/{chunk-AYNFEJS7.js → chunk-CIYADTSZ.js} +1 -1
  21. package/browser/{chunk-6IWEI2S7.js → chunk-EDB7M45J.js} +1 -1
  22. package/browser/{chunk-RUK3LROA.js → chunk-FI4WD7F6.js} +1 -1
  23. package/browser/{chunk-QYHR4HH4.js → chunk-GB6WI6F3.js} +1 -1
  24. package/browser/{chunk-3ESJIRJI.js → chunk-GZZLJ7RV.js} +1 -1
  25. package/browser/{chunk-QWGD3H2A.js → chunk-HTO44HJR.js} +1 -1
  26. package/browser/chunk-HXR5D6CC.js +1 -0
  27. package/browser/{chunk-SV4FKYKZ.js → chunk-IH5VF2TY.js} +1 -1
  28. package/browser/{chunk-ROCCL6ZZ.js → chunk-JEXO3QH5.js} +1 -1
  29. package/browser/{chunk-M5L4RIM5.js → chunk-JRJF67DG.js} +1 -1
  30. package/browser/{chunk-TTNKBC6N.js → chunk-JZRSNO3S.js} +1 -1
  31. package/browser/{chunk-A4WFJLPW.js → chunk-KIF6W7SN.js} +1 -1
  32. package/browser/{chunk-GYGWAZRQ.js → chunk-KZGDDXDA.js} +1 -1
  33. package/browser/{chunk-4LCG2U7W.js → chunk-LIYK5XEZ.js} +1 -1
  34. package/browser/{chunk-VK7PYTOE.js → chunk-LXNGYYGL.js} +2 -2
  35. package/browser/{chunk-MNFGMEQY.js → chunk-M262YURB.js} +1 -1
  36. package/browser/{chunk-TOYMRMYW.js → chunk-NHH25ES4.js} +1 -1
  37. package/browser/{chunk-X5TDTRYL.js → chunk-NO5M5AGE.js} +1 -1
  38. package/browser/{chunk-NJ2M4SPG.js → chunk-NOGJJ6RI.js} +2 -2
  39. package/browser/{chunk-KFKCXJAT.js → chunk-O7454TD7.js} +1 -1
  40. package/browser/{chunk-ACQ5WGFA.js → chunk-PQLVRYNH.js} +1 -1
  41. package/browser/{chunk-TB76PPLM.js → chunk-PU3EOXK5.js} +1 -1
  42. package/browser/{chunk-BU6O2DK4.js → chunk-PWLJTDFO.js} +1 -1
  43. package/browser/{chunk-GYU26T5D.js → chunk-PZWCGLF2.js} +1 -1
  44. package/browser/{chunk-QGOX7DS2.js → chunk-QHH7XAJN.js} +1 -1
  45. package/browser/{chunk-HVMYNIC7.js → chunk-QYONAYOJ.js} +1 -1
  46. package/browser/{chunk-EBBLJUWQ.js → chunk-R2HARETG.js} +2 -2
  47. package/browser/{chunk-6W2MNUMT.js → chunk-SZ4BCFWA.js} +1 -1
  48. package/browser/{chunk-UKS3DBYD.js → chunk-SZFBXLQH.js} +1 -1
  49. package/browser/{chunk-SYJVFU7L.js → chunk-TGD3XGPD.js} +1 -1
  50. package/browser/{chunk-BNP5MTYZ.js → chunk-TKU5D4B6.js} +2 -2
  51. package/browser/{chunk-2Y7RQ5GK.js → chunk-TPAWZTXM.js} +1 -1
  52. package/browser/{chunk-XME4MZYW.js → chunk-TRJ66HTT.js} +1 -1
  53. package/browser/{chunk-2272UHVJ.js → chunk-U4CKERZL.js} +1 -1
  54. package/browser/{chunk-4NCDQTGK.js → chunk-U7H6CAKH.js} +1 -1
  55. package/browser/{chunk-NYXJPCQQ.js → chunk-UFMB3E7Y.js} +1 -1
  56. package/browser/{chunk-I3DTU2HT.js → chunk-UOKHIV37.js} +1 -1
  57. package/browser/{chunk-FETPS43Y.js → chunk-UUOMPSJS.js} +1 -1
  58. package/browser/{chunk-QLHKMGW3.js → chunk-V7O7Q4OU.js} +1 -1
  59. package/browser/{chunk-L3UTRSNX.js → chunk-WADEZ6UH.js} +1 -1
  60. package/browser/{chunk-2ZRIS5SY.js → chunk-WC6KFFLR.js} +1 -1
  61. package/browser/{chunk-S376SJCF.js → chunk-WFBF5J6Q.js} +1 -1
  62. package/browser/{chunk-VXJJ2WHN.js → chunk-WOMERBFJ.js} +1 -1
  63. package/browser/{chunk-67AKWIMD.js → chunk-XL5D7HL3.js} +1 -1
  64. package/browser/{chunk-WZV65ZPB.js → chunk-YKFLTLP6.js} +1 -1
  65. package/browser/{chunk-SGBQHIZU.js → chunk-YYNTPABW.js} +1 -1
  66. package/browser/{chunk-C6XGSCT2.js → chunk-Z7D7WFP5.js} +1 -1
  67. package/browser/{chunk-XN3D4O7F.js → chunk-Z7TGQ3KM.js} +1 -1
  68. package/browser/{chunk-CC72HMXK.js → chunk-ZU6XNWIF.js} +1 -1
  69. package/browser/index.html +2 -2
  70. package/browser/{main-GCKOWN2G.js → main-CD5XHTZS.js} +2 -2
  71. package/package.json +1 -1
  72. package/browser/chunk-CQR6IIYD.js +0 -1
@@ -1 +1 @@
1
- import{a as k}from"./chunk-6IWEI2S7.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-2OQ5CGDZ.js";import"./chunk-RUK3LROA.js";import{a as p}from"./chunk-MP62IGYR.js";import"./chunk-26WIZL6M.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};