dealpos 25.36.1 → 25.37.0

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 (187) hide show
  1. package/browser/chunk-24PZBJDX.js +1 -0
  2. package/browser/{chunk-EKEEMJNX.js → chunk-2A2FK5LQ.js} +1 -1
  3. package/browser/{chunk-EEWDJWT3.js → chunk-2N32YZ7F.js} +2 -2
  4. package/browser/chunk-2ROJZVYG.js +1 -0
  5. package/browser/{chunk-P7HKWFZT.js → chunk-2RSBMS36.js} +1 -1
  6. package/browser/{chunk-UX2MPDGZ.js → chunk-3TVSUUBD.js} +1 -1
  7. package/browser/chunk-42GZELPL.js +3 -0
  8. package/browser/{chunk-LV2O7EFQ.js → chunk-46N7UCK4.js} +1 -1
  9. package/browser/{chunk-OWMQRA2K.js → chunk-46YKB6FF.js} +1 -1
  10. package/browser/{chunk-DVIZA6JG.js → chunk-4DVZDOPA.js} +1 -1
  11. package/browser/{chunk-HRMJHSXP.js → chunk-4F7XKKDX.js} +1 -1
  12. package/browser/{chunk-7A3GWGOJ.js → chunk-4MQM5WKF.js} +1 -1
  13. package/browser/{chunk-OYBJ4O4G.js → chunk-4PAT6OG2.js} +1 -1
  14. package/browser/chunk-4SQ7LDSX.js +16 -0
  15. package/browser/{chunk-CYZCAS5M.js → chunk-4WQSHRH2.js} +1 -1
  16. package/browser/{chunk-WAXN55HD.js → chunk-5HPGSO2H.js} +1 -1
  17. package/browser/{chunk-44HVAZIE.js → chunk-5UVEMM3K.js} +1 -1
  18. package/browser/{chunk-GSQJO7HP.js → chunk-5Y6LNGZI.js} +1 -1
  19. package/browser/{chunk-ZMJRYDVB.js → chunk-6EYQ2WU4.js} +1 -1
  20. package/browser/{chunk-ASAEDLD7.js → chunk-6GD3RYJT.js} +1 -1
  21. package/browser/{chunk-HK2LGXLR.js → chunk-6GDGY3QJ.js} +2 -2
  22. package/browser/chunk-6KVSC3SY.js +1 -0
  23. package/browser/{chunk-5CTVOG3M.js → chunk-6VZV7MGQ.js} +1 -1
  24. package/browser/{chunk-IKUPNBO5.js → chunk-73LN2NNG.js} +1 -1
  25. package/browser/chunk-7JQTRIEY.js +12 -0
  26. package/browser/{chunk-7LHQ4DZG.js → chunk-7LBB7GZS.js} +1 -1
  27. package/browser/chunk-A6EXQHD5.js +1 -0
  28. package/browser/chunk-AD6WDFXK.js +56 -0
  29. package/browser/{chunk-DJ7VQO4C.js → chunk-AFOWQSNS.js} +1 -1
  30. package/browser/{chunk-ADQDT34O.js → chunk-AIRALBLX.js} +1 -1
  31. package/browser/chunk-BAHRLYTL.js +1 -0
  32. package/browser/{chunk-HOTMNALX.js → chunk-BBBJXAJC.js} +1 -1
  33. package/browser/chunk-BJRHO7B6.js +1 -0
  34. package/browser/{chunk-PUIYTAAZ.js → chunk-BMXD4XFY.js} +1 -1
  35. package/browser/{chunk-XC72RJMW.js → chunk-BPRFPZEB.js} +1 -1
  36. package/browser/{chunk-XX3PHR2L.js → chunk-BVGEZF5R.js} +1 -1
  37. package/browser/chunk-BWOG3YI3.js +1 -0
  38. package/browser/{chunk-KG4DA565.js → chunk-CAB2DX2Y.js} +1 -1
  39. package/browser/{chunk-KDHMQXW2.js → chunk-CDHS2KPQ.js} +1 -1
  40. package/browser/{chunk-SO74RWRX.js → chunk-CHGBO35F.js} +2 -2
  41. package/browser/{chunk-M6P3HBWJ.js → chunk-CKB6AES2.js} +1 -1
  42. package/browser/chunk-D3PKJLSL.js +1 -0
  43. package/browser/{chunk-Y4VV2HSW.js → chunk-DJX5T4HW.js} +1 -1
  44. package/browser/chunk-DTGBADKW.js +231 -0
  45. package/browser/{chunk-IUVGWNPX.js → chunk-DWWBB3GE.js} +1 -1
  46. package/browser/{chunk-NRAL4DDE.js → chunk-E5YR3WZZ.js} +1 -1
  47. package/browser/chunk-E7OGKKDF.js +1 -0
  48. package/browser/{chunk-EW42TM43.js → chunk-EBVXAICN.js} +1 -1
  49. package/browser/{chunk-4JAQKA6N.js → chunk-EDWPAQ6M.js} +1 -1
  50. package/browser/{chunk-QSSEP6OG.js → chunk-EWXIFMSD.js} +1 -1
  51. package/browser/{chunk-HMS2X4LR.js → chunk-FQVW7CGL.js} +1 -1
  52. package/browser/{chunk-XVHW6GX6.js → chunk-FSTU67H4.js} +1 -1
  53. package/browser/{chunk-BI62JVGE.js → chunk-FY72UF62.js} +1 -1
  54. package/browser/{chunk-KC4BHFEB.js → chunk-GRQCNGGD.js} +1 -1
  55. package/browser/{chunk-WZ52CSPQ.js → chunk-GTGAF77W.js} +1 -1
  56. package/browser/{chunk-4WIPVW4V.js → chunk-GW74DTO5.js} +1 -1
  57. package/browser/chunk-HN5FVXT3.js +2 -0
  58. package/browser/{chunk-TPXSXDZD.js → chunk-HZNLV6RA.js} +1 -1
  59. package/browser/{chunk-5Q5T67DH.js → chunk-I5K3C5EY.js} +1 -1
  60. package/browser/chunk-I7QI76VZ.js +125 -0
  61. package/browser/{chunk-UHJRDVRX.js → chunk-I7VBCYOO.js} +1 -1
  62. package/browser/chunk-IDC6L6JH.js +1 -0
  63. package/browser/{chunk-5UCQBOD6.js → chunk-IX5URHI7.js} +1 -1
  64. package/browser/{chunk-APZ5IBSQ.js → chunk-JI5ZYBTO.js} +1 -1
  65. package/browser/{chunk-OLFWZQFT.js → chunk-JTWFMMM2.js} +1 -1
  66. package/browser/chunk-KC3ILZPL.js +3 -0
  67. package/browser/{chunk-AHYXCJZT.js → chunk-KGEZPUKQ.js} +1 -1
  68. package/browser/{chunk-J3FDWOZE.js → chunk-KH2UDF7R.js} +1 -1
  69. package/browser/chunk-KRYHSAUY.js +1 -0
  70. package/browser/chunk-L2BZNKXK.js +218 -0
  71. package/browser/chunk-LEJBHNYP.js +1 -0
  72. package/browser/{chunk-HA2GY7XU.js → chunk-LNVTHMH7.js} +1 -1
  73. package/browser/{chunk-KKHLLX4I.js → chunk-LP34YRUB.js} +2 -2
  74. package/browser/{chunk-VMY3JQDA.js → chunk-LPGMI3V2.js} +2 -2
  75. package/browser/chunk-LZNTSIJX.js +30 -0
  76. package/browser/{chunk-IUKQX4L5.js → chunk-M6LI6JL5.js} +1 -1
  77. package/browser/chunk-M7KCDBAN.js +1 -0
  78. package/browser/{chunk-5QL4XB63.js → chunk-N5LL2GVO.js} +1 -1
  79. package/browser/chunk-NCV64WUQ.js +1 -0
  80. package/browser/{chunk-2KYHJWM4.js → chunk-NF6DNR4C.js} +1 -1
  81. package/browser/{chunk-JXKXAC3X.js → chunk-NILHRRUO.js} +1 -1
  82. package/browser/{chunk-SQGLTFQU.js → chunk-NKVJFEGS.js} +1 -1
  83. package/browser/chunk-NMFTKX47.js +1 -0
  84. package/browser/{chunk-EHPA6ZPR.js → chunk-NPQSMHJ5.js} +1 -1
  85. package/browser/{chunk-3CAN5VUX.js → chunk-NXQT6LJS.js} +1 -1
  86. package/browser/{chunk-MTNH6S2O.js → chunk-NZBTAJVH.js} +1 -1
  87. package/browser/{chunk-BSCVK4ZC.js → chunk-O2ZVYLBU.js} +1 -1
  88. package/browser/{chunk-HR64LU2Y.js → chunk-O3BPVSF4.js} +1 -1
  89. package/browser/{chunk-IIO6IRO6.js → chunk-O7KNQINR.js} +1 -1
  90. package/browser/{chunk-ITEHBWAC.js → chunk-ODE5SZH6.js} +1 -1
  91. package/browser/{chunk-Y5K2L5MB.js → chunk-ODQBAQBJ.js} +1 -1
  92. package/browser/{chunk-TDPQGADK.js → chunk-OJGFPN3S.js} +1 -1
  93. package/browser/{chunk-X6LIVARI.js → chunk-ONUC6T7C.js} +1 -1
  94. package/browser/{chunk-WIIB5BP5.js → chunk-OPIK5VF5.js} +1 -1
  95. package/browser/{chunk-YCFGQQNY.js → chunk-OQD6YPIV.js} +1 -1
  96. package/browser/{chunk-Z5L5OWOY.js → chunk-OYBCYKI3.js} +1 -1
  97. package/browser/{chunk-KOA2X46P.js → chunk-OZURIMA5.js} +1 -1
  98. package/browser/{chunk-HMXJAWXH.js → chunk-PKQIL6XI.js} +1 -1
  99. package/browser/{chunk-CILKE53W.js → chunk-PNIMYMZP.js} +1 -1
  100. package/browser/{chunk-RSDCLKM5.js → chunk-POVSBSKX.js} +1 -1
  101. package/browser/{chunk-OUDB3GIC.js → chunk-QBVLPTV5.js} +1 -1
  102. package/browser/{chunk-NKWIQ32C.js → chunk-QC47T2D6.js} +1 -1
  103. package/browser/{chunk-A5K2PQQ4.js → chunk-QHX47K74.js} +1 -1
  104. package/browser/{chunk-MJH5CWJK.js → chunk-QZ3Q6NRS.js} +1 -1
  105. package/browser/{chunk-JTNYYPAS.js → chunk-QZIRZTPY.js} +1 -1
  106. package/browser/{chunk-EMUB6LRW.js → chunk-R2SCZAYC.js} +1 -1
  107. package/browser/{chunk-DZ5W52O7.js → chunk-R6DWCBDE.js} +1 -1
  108. package/browser/chunk-RBCKIP6D.js +1 -0
  109. package/browser/chunk-RFWWJGW4.js +1 -0
  110. package/browser/{chunk-SDCEXGQQ.js → chunk-RMPEAMU7.js} +1 -1
  111. package/browser/{chunk-YIGAOWNK.js → chunk-RNTEPBDE.js} +1 -1
  112. package/browser/{chunk-HCMAXIF5.js → chunk-RQ6BETUF.js} +1 -1
  113. package/browser/{chunk-S3FHQFMA.js → chunk-SNJEJYG2.js} +1 -1
  114. package/browser/chunk-SRND2A73.js +1 -0
  115. package/browser/{chunk-QUEQTUK6.js → chunk-T3GW7VTG.js} +1 -1
  116. package/browser/{chunk-7WG3DPCO.js → chunk-TAJ6RGE7.js} +1 -1
  117. package/browser/chunk-TB75D3IU.js +401 -0
  118. package/browser/{chunk-H2VTVYZY.js → chunk-TBQI2P7D.js} +1 -1
  119. package/browser/{chunk-OUO645DX.js → chunk-TE4BS674.js} +1 -1
  120. package/browser/{chunk-MRXZBHTG.js → chunk-TKFYO4Z7.js} +1 -1
  121. package/browser/{chunk-HVA5YCEF.js → chunk-UB3H2XOK.js} +1 -1
  122. package/browser/{chunk-Z32NRI5K.js → chunk-UCICCJTH.js} +1 -1
  123. package/browser/{chunk-L4DGSDB5.js → chunk-UGMPRPX4.js} +1 -1
  124. package/browser/{chunk-EMIOHZG3.js → chunk-USIHDJYD.js} +1 -1
  125. package/browser/{chunk-AYO4NOIG.js → chunk-UTZWX547.js} +1 -1
  126. package/browser/{chunk-IYORR7HN.js → chunk-UWNXD5ZO.js} +1 -1
  127. package/browser/{chunk-NUJ4H75O.js → chunk-V2XQVY7J.js} +1 -1
  128. package/browser/chunk-VPYNMPI2.js +18 -0
  129. package/browser/{chunk-LLMFFOB3.js → chunk-VTPT2NPM.js} +1 -1
  130. package/browser/chunk-W4E3XWPN.js +5 -0
  131. package/browser/{chunk-I5T3YLJW.js → chunk-WJWWBE6Y.js} +1 -1
  132. package/browser/{chunk-JCT27TRG.js → chunk-WNGIPTOJ.js} +1 -1
  133. package/browser/chunk-X35FSHRI.js +1 -0
  134. package/browser/{chunk-XWD54EOV.js → chunk-X3HEHRBU.js} +1 -1
  135. package/browser/{chunk-KAMUAZNJ.js → chunk-XPQVQT3S.js} +1 -1
  136. package/browser/chunk-XQDOEZXX.js +1 -0
  137. package/browser/{chunk-DILWG5FB.js → chunk-XZYKB3CY.js} +1 -1
  138. package/browser/{chunk-RFGEPCV2.js → chunk-YFVKU4AG.js} +1 -1
  139. package/browser/{chunk-F5ERAH5D.js → chunk-YKOMJJTD.js} +1 -1
  140. package/browser/{chunk-4RFXQF2Y.js → chunk-YTXPIPA3.js} +1 -1
  141. package/browser/{chunk-SEJO3YK3.js → chunk-YVLMNAFQ.js} +1 -1
  142. package/browser/{chunk-TIN7QXDO.js → chunk-ZCDMIPJU.js} +1 -1
  143. package/browser/{chunk-M6MJFESP.js → chunk-ZCFM5BQX.js} +1 -1
  144. package/browser/{chunk-SXVO2KX6.js → chunk-ZDC75EES.js} +1 -1
  145. package/browser/chunk-ZGUZW56H.js +1 -0
  146. package/browser/{chunk-CAMFGC4E.js → chunk-ZSHFCUED.js} +1 -1
  147. package/browser/{chunk-KJ6NWQLT.js → chunk-ZU22CVVV.js} +1 -1
  148. package/browser/{chunk-JNJJYDP7.js → chunk-ZXBQDGF2.js} +1 -1
  149. package/browser/index.html +2 -2
  150. package/browser/{main-WZ3WJTI6.js → main-ODGVJKPE.js} +2 -2
  151. package/browser/{styles-H2UJWE23.css → styles-AWHBZGFK.css} +1 -1
  152. package/package.json +1 -1
  153. package/browser/chunk-3WOJF55N.js +0 -1
  154. package/browser/chunk-4MCVJOVJ.js +0 -222
  155. package/browser/chunk-54BBCBUH.js +0 -1
  156. package/browser/chunk-565ZGXZY.js +0 -1
  157. package/browser/chunk-6M2WIF6W.js +0 -1
  158. package/browser/chunk-6MXSAOYM.js +0 -102
  159. package/browser/chunk-6ZBC7CDZ.js +0 -3
  160. package/browser/chunk-7YUP2K7W.js +0 -1
  161. package/browser/chunk-ADKUN2DI.js +0 -231
  162. package/browser/chunk-ATKMC4PC.js +0 -79
  163. package/browser/chunk-AXKOBWXV.js +0 -1
  164. package/browser/chunk-CZRXIQJD.js +0 -1
  165. package/browser/chunk-DNC7PRJV.js +0 -1
  166. package/browser/chunk-F7IL5M6Q.js +0 -1
  167. package/browser/chunk-GCFUFHPD.js +0 -1
  168. package/browser/chunk-I4T5OHY2.js +0 -12
  169. package/browser/chunk-KXFQH7B3.js +0 -3
  170. package/browser/chunk-LK37OXNX.js +0 -16
  171. package/browser/chunk-MOKDUPLE.js +0 -1
  172. package/browser/chunk-MUCQWTKH.js +0 -1
  173. package/browser/chunk-NUW4MIT6.js +0 -1
  174. package/browser/chunk-ONRDB4BH.js +0 -1
  175. package/browser/chunk-P2PP7Q7Y.js +0 -18
  176. package/browser/chunk-PNDEFRQK.js +0 -1
  177. package/browser/chunk-Q2PVP75W.js +0 -1
  178. package/browser/chunk-R76ADTCK.js +0 -125
  179. package/browser/chunk-SSLOF5EH.js +0 -1
  180. package/browser/chunk-TROBIOWI.js +0 -218
  181. package/browser/chunk-TZUN74UC.js +0 -56
  182. package/browser/chunk-UGIJJJUC.js +0 -1
  183. package/browser/chunk-UUB2HY4I.js +0 -1
  184. package/browser/chunk-V4AIUFPL.js +0 -2
  185. package/browser/chunk-WXF4SX6R.js +0 -1
  186. package/browser/chunk-X7G45LGM.js +0 -30
  187. package/browser/chunk-Y4MOEVLJ.js +0 -5
@@ -1 +1 @@
1
- import{a as k}from"./chunk-OYBJ4O4G.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-44HVAZIE.js";import"./chunk-YCFGQQNY.js";import{a as p}from"./chunk-AHCRE4GP.js";import"./chunk-XVHW6GX6.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-4PAT6OG2.js";import{C as N,F as L,G as j,c as E,h as A,i as V,k as I,o as R,p as U}from"./chunk-2RSBMS36.js";import{c as D}from"./chunk-5UVEMM3K.js";import"./chunk-OQD6YPIV.js";import{a as p}from"./chunk-AHCRE4GP.js";import"./chunk-FSTU67H4.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,4 +1,4 @@
1
- var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},pos:{indexedDBVersion:3,submitOrderTimeout:2e4,fileSizeLimit:9e5},version:"25361",outletMaximumSubscription:10,midtransClientKey:"Mid-client-rdi5ridKhHfeIvTj",ngHttpLoaderDebounceDelay:175,news:"https://changelog.dealpos.app/umbraco/delivery/api/v2/content?fetch=children:web&sort=sortOrder:asc",changelog:[],uppy:{invoicePayment:25e5,receiptTemplate:25e5},intercom:{appId:"xv1oomgl"},whatsappTemplateMessage:`Thank you for shopping at {Brand}
1
+ var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},pos:{indexedDBVersion:3,submitOrderTimeout:2e4,fileSizeLimit:9e5},version:"25370",outletMaximumSubscription:10,midtransClientKey:"Mid-client-rdi5ridKhHfeIvTj",ngHttpLoaderDebounceDelay:175,news:"https://changelog.dealpos.app/umbraco/delivery/api/v2/content?fetch=children:web&sort=sortOrder:asc",changelog:[],uppy:{invoicePayment:25e5,receiptTemplate:25e5},intercom:{appId:"xv1oomgl"},whatsappTemplateMessage:`Thank you for shopping at {Brand}
2
2
  Here is the receipt for your purchase {Number} - {Currency} {Amount}
3
3
  {ReceiptLink}
4
4
  Please let us know about your shopping experience using the receipt link.`,FALLBACK_PRODUCT_IMAGE_URL:"https://cdn.dealpos.app/template/products_thumb.png"};export{e as a};
@@ -1 +1 @@
1
- import{c as F}from"./chunk-CIBQBSM6.js";import{D as x}from"./chunk-P7HKWFZT.js";import{$a as i,Ib as l,Jb as m,Kb as c,Rb as r,Yc as b,Zc as v,ec as p,fc as s,jd as _,ka as f,kb as g,lb as u,qb as d,vb as a}from"./chunk-DZT5XHBQ.js";function I(e,n){if(e&1&&(l(0,"div",3),c(1,"input",4),l(2,"label",5),p(3),m()()),e&2){let t=r();i(),a("value",t.model)("placeholder",t.label),i(2),s(t.label)}}function S(e,n){if(e&1&&(l(0,"span",9),p(1),m()),e&2){let t=n.$implicit;i(),s(t)}}function M(e,n){if(e&1&&(l(0,"div",6)(1,"div",7),d(2,S,2,1,"span",8),m(),l(3,"label",5),p(4),m()()),e&2){let t=r();i(2),a("ngForOf",t.model),i(2),s(t.label)}}function T(e,n){if(e&1&&(l(0,"div",3),c(1,"input",4),l(2,"label",5),p(3),m()()),e&2){let t=n.$implicit,o=r(2);i(),a("value",t.Name)("placeholder",o.label),i(2),s(o.label)}}function E(e,n){if(e&1&&(l(0,"div"),d(1,T,4,3,"div",10),m()),e&2){let t=r();i(),a("ngForOf",t.model)}}var C=class e{model;label;multiple;tags;static \u0275fac=function(t){return new(t||e)};static \u0275cmp=g({type:e,selectors:[["floatinglabel"]],inputs:{model:"model",label:"label",multiple:"multiple",tags:"tags"},standalone:!1,decls:3,vars:3,consts:[["class","form-floating-outline",4,"ngIf"],["class","form-floating-outline label-floating",4,"ngIf"],[4,"ngIf"],[1,"form-floating-outline"],["type","text","id","inputTitle","disabled","",1,"form-control","bg-white",2,"cursor","auto",3,"value","placeholder"],["for","inputTitle"],[1,"form-floating-outline","label-floating"],[1,"form-control","tags"],["class","bg-secondary",4,"ngFor","ngForOf"],[1,"bg-secondary"],["class","form-floating-outline",4,"ngFor","ngForOf"]],template:function(t,o){t&1&&d(0,I,4,3,"div",0)(1,M,5,2,"div",1)(2,E,2,1,"div",2),t&2&&(a("ngIf",!o.multiple&&!o.tags),i(),a("ngIf",!o.multiple&&o.tags),i(),a("ngIf",o.multiple))},dependencies:[b,v],encapsulation:2})},y=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=u({type:e});static \u0275inj=f({imports:[_,x,F]})};export{C as a,y as b};
1
+ import{c as F}from"./chunk-CIBQBSM6.js";import{F as x}from"./chunk-2RSBMS36.js";import{$a as i,Ib as l,Jb as m,Kb as c,Rb as r,Yc as b,Zc as v,ec as p,fc as s,jd as _,ka as f,kb as g,lb as u,qb as d,vb as a}from"./chunk-DZT5XHBQ.js";function I(e,n){if(e&1&&(l(0,"div",3),c(1,"input",4),l(2,"label",5),p(3),m()()),e&2){let t=r();i(),a("value",t.model)("placeholder",t.label),i(2),s(t.label)}}function S(e,n){if(e&1&&(l(0,"span",9),p(1),m()),e&2){let t=n.$implicit;i(),s(t)}}function M(e,n){if(e&1&&(l(0,"div",6)(1,"div",7),d(2,S,2,1,"span",8),m(),l(3,"label",5),p(4),m()()),e&2){let t=r();i(2),a("ngForOf",t.model),i(2),s(t.label)}}function T(e,n){if(e&1&&(l(0,"div",3),c(1,"input",4),l(2,"label",5),p(3),m()()),e&2){let t=n.$implicit,o=r(2);i(),a("value",t.Name)("placeholder",o.label),i(2),s(o.label)}}function E(e,n){if(e&1&&(l(0,"div"),d(1,T,4,3,"div",10),m()),e&2){let t=r();i(),a("ngForOf",t.model)}}var C=class e{model;label;multiple;tags;static \u0275fac=function(t){return new(t||e)};static \u0275cmp=g({type:e,selectors:[["floatinglabel"]],inputs:{model:"model",label:"label",multiple:"multiple",tags:"tags"},standalone:!1,decls:3,vars:3,consts:[["class","form-floating-outline",4,"ngIf"],["class","form-floating-outline label-floating",4,"ngIf"],[4,"ngIf"],[1,"form-floating-outline"],["type","text","id","inputTitle","disabled","",1,"form-control","bg-white",2,"cursor","auto",3,"value","placeholder"],["for","inputTitle"],[1,"form-floating-outline","label-floating"],[1,"form-control","tags"],["class","bg-secondary",4,"ngFor","ngForOf"],[1,"bg-secondary"],["class","form-floating-outline",4,"ngFor","ngForOf"]],template:function(t,o){t&1&&d(0,I,4,3,"div",0)(1,M,5,2,"div",1)(2,E,2,1,"div",2),t&2&&(a("ngIf",!o.multiple&&!o.tags),i(),a("ngIf",!o.multiple&&o.tags),i(),a("ngIf",o.multiple))},dependencies:[b,v],encapsulation:2})},y=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=u({type:e});static \u0275inj=f({imports:[_,x,F]})};export{C as a,y as b};