dealpos 25.31.1 → 25.31.2
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.
- package/browser/{chunk-IQ6RFZ5S.js → chunk-2BIGSZO5.js} +1 -1
- package/browser/{chunk-2SOGIEWV.js → chunk-2VRY7O77.js} +1 -1
- package/browser/{chunk-3XXNFJJ5.js → chunk-356IV4ZE.js} +1 -1
- package/browser/{chunk-W4XQ5DKR.js → chunk-4F5WEZVF.js} +1 -1
- package/browser/{chunk-TUMGNSSG.js → chunk-4GNV76N3.js} +1 -1
- package/browser/{chunk-ZYKH2C6R.js → chunk-4KJRE3GP.js} +1 -1
- package/browser/{chunk-DP46NUW4.js → chunk-4PC6PQ7Q.js} +1 -1
- package/browser/{chunk-FMLRA5XH.js → chunk-4TP7S3U3.js} +1 -1
- package/browser/{chunk-NDY4KZR7.js → chunk-5233FXFY.js} +1 -1
- package/browser/{chunk-REOKW3HE.js → chunk-5WBNHRSF.js} +1 -1
- package/browser/{chunk-AY3YOHGT.js → chunk-6BSPRF7M.js} +1 -1
- package/browser/{chunk-GGZUD2KJ.js → chunk-6EI3EXE7.js} +1 -1
- package/browser/{chunk-VNTG35UI.js → chunk-6HUVTRYH.js} +1 -1
- package/browser/{chunk-XV7A7YTQ.js → chunk-6IFNMT72.js} +1 -1
- package/browser/{chunk-XB33M363.js → chunk-6K77FOTH.js} +1 -1
- package/browser/{chunk-FG7QBACB.js → chunk-74ZM5NHT.js} +1 -1
- package/browser/{chunk-CLAKUCJG.js → chunk-7MB4HURG.js} +1 -1
- package/browser/{chunk-2SZLN7C3.js → chunk-A2QB6KDW.js} +2 -2
- package/browser/{chunk-DPUSXBI5.js → chunk-AHKKBRLR.js} +1 -1
- package/browser/{chunk-4YPD7UH7.js → chunk-AWUM3KMS.js} +1 -1
- package/browser/{chunk-5SUX6ZNW.js → chunk-B7DKFLLG.js} +1 -1
- package/browser/{chunk-RQGQWLFQ.js → chunk-CY4FO26Z.js} +1 -1
- package/browser/{chunk-PCQLOEIW.js → chunk-DMSBV63C.js} +1 -1
- package/browser/{chunk-GRNVPJO3.js → chunk-DX2NQ3TK.js} +1 -1
- package/browser/{chunk-2LYDVSWL.js → chunk-EWLYV6PD.js} +2 -2
- package/browser/{chunk-GPIPW4YR.js → chunk-HIUH7JJU.js} +1 -1
- package/browser/{chunk-7TV5WKNO.js → chunk-HR5WLTC4.js} +1 -1
- package/browser/{chunk-FCHQAB7C.js → chunk-IPTLWEIL.js} +1 -1
- package/browser/{chunk-DDJKPHO7.js → chunk-J4GCFDIV.js} +1 -1
- package/browser/{chunk-NAAO6ZOQ.js → chunk-J6RZLLDH.js} +1 -1
- package/browser/{chunk-HLMWKNVN.js → chunk-JALOTTYL.js} +1 -1
- package/browser/{chunk-ZGJ4TRZD.js → chunk-JK75ENMS.js} +1 -1
- package/browser/{chunk-S45NMNLU.js → chunk-K4YULPNU.js} +2 -2
- package/browser/{chunk-VWT32Q5D.js → chunk-L27WHOBJ.js} +1 -1
- package/browser/{chunk-ESHESDRD.js → chunk-LOHRG6CW.js} +1 -1
- package/browser/{chunk-RWFIJSVW.js → chunk-LWQAPXWM.js} +1 -1
- package/browser/{chunk-L5FJOPFR.js → chunk-MAFIFJSJ.js} +1 -1
- package/browser/{chunk-NYQISX25.js → chunk-MGZYE4DB.js} +1 -1
- package/browser/{chunk-FNKFETSF.js → chunk-MLQCCNEW.js} +2 -2
- package/browser/{chunk-PLWZSTWZ.js → chunk-N27F227W.js} +1 -1
- package/browser/{chunk-BLWVWRVF.js → chunk-NARPOKGG.js} +1 -1
- package/browser/{chunk-BTKE7LGO.js → chunk-NCR5B5Y4.js} +2 -2
- package/browser/{chunk-WWZM7AAB.js → chunk-NRY2MTXW.js} +1 -1
- package/browser/{chunk-KSQYIDAI.js → chunk-OBZMOT6W.js} +1 -1
- package/browser/{chunk-OL3Z36UO.js → chunk-OPOZFMCV.js} +1 -1
- package/browser/{chunk-6YXOEKO2.js → chunk-PXKTG2K3.js} +1 -1
- package/browser/{chunk-N7K5OSWB.js → chunk-Q2ITLIW2.js} +1 -1
- package/browser/{chunk-XG4KOCGE.js → chunk-RGM2KZ5L.js} +1 -1
- package/browser/{chunk-S3SV7V3K.js → chunk-RVEF5C4M.js} +1 -1
- package/browser/{chunk-IZTOY5MQ.js → chunk-S2MC4OUN.js} +1 -1
- package/browser/{chunk-TVGSMZS3.js → chunk-SDGA5WRP.js} +1 -1
- package/browser/{chunk-JXT76I5Q.js → chunk-SGTPMFH6.js} +1 -1
- package/browser/{chunk-RSHIMZ5V.js → chunk-SJHBFLM7.js} +1 -1
- package/browser/{chunk-J7P6BRKJ.js → chunk-SMHJ3JIG.js} +1 -1
- package/browser/{chunk-YL6MOVLM.js → chunk-TU4O6KBQ.js} +1 -1
- package/browser/{chunk-ZQ2IWZAB.js → chunk-UD4WWZOI.js} +1 -1
- package/browser/{chunk-L6EYB75T.js → chunk-UHGOF24M.js} +1 -1
- package/browser/{chunk-YNIEDDDQ.js → chunk-VIYE2OFI.js} +1 -1
- package/browser/{chunk-VIKFXLKK.js → chunk-W5PF5BAF.js} +1 -1
- package/browser/{chunk-IHJNKEC5.js → chunk-XETIOXLN.js} +1 -1
- package/browser/{chunk-Q73OU5X3.js → chunk-XHBIIXPS.js} +1 -1
- package/browser/{chunk-T6DIPRDJ.js → chunk-Y5HNNIJE.js} +1 -1
- package/browser/{chunk-M6VZPCA2.js → chunk-YU32SBPB.js} +1 -1
- package/browser/{chunk-HQLAADHA.js → chunk-YUROCGY4.js} +1 -1
- package/browser/{chunk-H5ELG5JJ.js → chunk-ZAJCD6I2.js} +1 -1
- package/browser/{chunk-2H22PSYN.js → chunk-ZESJJFN2.js} +1 -1
- package/browser/{chunk-LMI3TQ2W.js → chunk-ZOSMCW2A.js} +1 -1
- package/browser/{chunk-BN254E72.js → chunk-ZSUZVVVK.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-AXE74WRR.js → main-2NK4AXEX.js} +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k}from"./chunk-
|
|
1
|
+
import{a as k}from"./chunk-NRY2MTXW.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-DMSBV63C.js";import"./chunk-MAFIFJSJ.js";import{a as p}from"./chunk-MP62IGYR.js";import"./chunk-J6RZLLDH.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,4 +1,4 @@
|
|
|
1
|
-
import{a as N,c as D}from"./chunk-
|
|
1
|
+
import{a as N,c as D}from"./chunk-DMSBV63C.js";import{a as p}from"./chunk-MP62IGYR.js";import{$a as n,Ib as c,Jb as l,Od as M,Pd as C,Qc as g,Rb as d,Rd as I,Uc as v,Xc as f,db as o,ec as u,gc as h,hd as E,kb as m,oc as y,pc as a,qb as S,vb as r,zb as b}from"./chunk-EDB2BAIG.js";var _=e=>({"pe-none":e}),O=()=>["/menu/Profile/Main/My_Subscription"],k=e=>({"text-decoration-none":e}),A=e=>({"text-capitalize":e});function L(e,i){if(e&1&&(c(0,"div",1)(1,"h5",2),u(2),c(3,"a",3)(4,"u",4)(5,"span",4),u(6,"please"),l(),u(7," process your payment! "),l()()()()),e&2){let t=d();b("alert rounded-0 mb-0 text-center border-bottom "+(t.subscriptionState==null?null:t.subscriptionState.class)),n(2),h(" ",t.subscriptionState==null?null:t.subscriptionState.message," "),n(),r("ngClass",a(7,_,t.isMySubscriptionMenu))("routerLink",y(9,O)),n(),r("ngClass",a(10,k,t.isMySubscriptionMenu)),n(),r("ngClass",a(12,A,t.isNotEmpty(t.currentSubStatus)&&t.currentSubStatus!=t.subsStatusEnum.OVERDUE))}}var x=class e{constructor(i,t,s){this.document=i;this.router=t;this.authService=s}subscriptionStatus;subscriptionState;currentSubStatus;subsStatusEnum=N;isMySubscriptionMenu;htmlStyleElement;htmlBodyElement;ngOnInit(){this.checkMySubscriptionMenu(),this.initSubscriptionStatus(),this.getCurrentSubscriptionStatus()}getCurrentSubscriptionStatus(){this.overrideCssStickyHeader()}checkMySubscriptionMenu(){this.isMySubscriptionMenu=!1,this.router.url.includes("/Profile/Main/My_Subscription")&&(this.isMySubscriptionMenu=!0)}isNotEmpty(i){return p.IsNotEmpty(i)}overrideCssStickyHeader(){if(p.IsNotEmpty(this.currentSubStatus)&&this.currentSubStatus!==0){let i=`.sticky-top-thead th {
|
|
2
2
|
top: 100px !important;
|
|
3
3
|
z-index: 1020;
|
|
4
4
|
}`;this.htmlBodyElement=this.document.getElementsByTagName("body")[0],this.htmlStyleElement=this.document.createElement("style"),this.htmlStyleElement.appendChild(this.document.createTextNode(i)),this.htmlBodyElement.appendChild(this.htmlStyleElement)}}initSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus(),this.subscriptionStatus=[{status:1,class:"alert-warning",message:"Your subscription is overdue. To avoid suspension, "},{status:2,class:"alert-danger",message:"Your subscription is partially suspended."},{status:3,class:"alert-danger",message:"Your subscription is suspended."}],this.subscriptionState=this.subscriptionStatus.filter(i=>i.status==this.currentSubStatus)[0]}ngOnDestroy(){this.htmlBodyElement&&this.htmlBodyElement.removeChild(this.htmlStyleElement)}static \u0275fac=function(t){return new(t||e)(o(g),o(M),o(D))};static \u0275cmp=m({type:e,selectors:[["subscription-alert"]],decls:1,vars:1,consts:[["role","alert",3,"class",4,"ngIf"],["role","alert"],[1,"fw-normal"],[1,"alert-link",3,"ngClass","routerLink"],[3,"ngClass"]],template:function(t,s){t&1&&S(0,L,8,14,"div",0),t&2&&r("ngIf",(s.subscriptionState==null?null:s.subscriptionState.status)==s.currentSubStatus&&s.isNotEmpty(s.currentSubStatus))},dependencies:[E,v,f,I,C],encapsulation:2})};export{x as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as z,i as S}from"./chunk-
|
|
1
|
+
import{h as z,i as S}from"./chunk-6IFNMT72.js";import"./chunk-4KJRE3GP.js";import"./chunk-YQGBGJ5U.js";import"./chunk-XUP2FY5D.js";import"./chunk-5UTBAGIS.js";import"./chunk-JLOQTYOI.js";import"./chunk-YJVLRBSS.js";import"./chunk-B4243VJD.js";import"./chunk-7COMDF6M.js";import"./chunk-2FWFPV5I.js";import"./chunk-NEEN2JO2.js";import"./chunk-LNLGRZBB.js";import"./chunk-DMSBV63C.js";import"./chunk-MAFIFJSJ.js";import"./chunk-MP62IGYR.js";import"./chunk-J6RZLLDH.js";import{$a as p,Ib as o,Jb as i,Kb as g,Od as x,Rd as l,db as d,ec as r,fc as v,hd as M,ka as a,kb as h,lb as s,vb as f}from"./chunk-EDB2BAIG.js";import"./chunk-7DCB7DB2.js";var m=class e{constructor(n){this.router=n;console.log(this.router.getCurrentNavigation()),console.log(this.router.lastSuccessfulNavigation),this.previousPage=this.router.lastSuccessfulNavigation?.finalUrl?.root?.children?.primary?.segments?.join("/"),this.role=this.router.getCurrentNavigation()?.extras?.state.role??localStorage.getItem("role"),localStorage.setItem("role",this.role),console.log(this.previousPage)}previousPage="";role="";menuData={H:"Unauthorized"};static \u0275fac=function(t){return new(t||e)(d(x))};static \u0275cmp=h({type:e,selectors:[["POS-unauthorized"]],standalone:!1,decls:13,vars:4,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[1,"text-center"],["src","https://res.cloudinary.com/pos/image/upload/v1702547639/POS/Images/Dashboard/locked.svg",2,"width","200px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(t,c){t&1&&(o(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div"),g(5,"img",3),i(),o(6,"h1",4),r(7,"You are not authorized"),i(),o(8,"p"),r(9," This page require "),o(10,"span",5),r(11),i(),r(12," role. Please contact your Administrator to gain access! "),i()()()()()),t&2&&(f("pageData",c.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),p(11),v(c.role))},dependencies:[z],encapsulation:2})};var D=[{path:"Main/Unauthorized",component:m},{path:"",redirectTo:"Main/Unauthorized",pathMatch:"full"}],u=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=s({type:e});static \u0275inj=a({imports:[l.forChild(D),l]})};var y=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=s({type:e});static \u0275inj=a({imports:[M,u,S]})};export{y as UnauthorizedModule};
|