zohodealpos 2.4.9 → 2.5.1
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/package.json +1 -1
- package/zoho/{101.54e965d82f04484b.js → 101.c7fd3dfc78ed6b36.js} +1 -1
- package/zoho/178.4caec9603124caff.js +1 -0
- package/zoho/index.html +2 -2
- package/zoho/ngsw.json +7 -7
- package/zoho/{runtime.7141a472e9233644.js → runtime.e410ecba13e659ab.js} +1 -1
- package/zoho/178.1b1cbb9a79d19e23.js +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"zohodealpos","version":"2.
|
|
1
|
+
{"name":"zohodealpos","version":"2.5.1"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkzoho=self.webpackChunkzoho||[]).push([[101],{7101:(P,p,s)=>{s.r(p),s.d(p,{LoginModule:()=>T});var v=s(6814),i=s(95),m=s(4408),c=s(8069),t=s(5879),b=s(9397),y=s(6340);let u=(()=>{var o;class a{get loginResponse(){return this._loginResponse}constructor(e,n){this.httpService=e,this.router=n}login(e,n){return this.httpService.post("/api/Authentication/Login",JSON.stringify({client_id:e,client_secret:n})).pipe((0,b.b)(d=>{this._loginResponse=d,c.g.IsEmpty(d.UserID)&&c.g.IsNotEmpty(d.access_token)&&this.saveLoginResponse(d)}))}saveLoginResponse(e){localStorage.setItem("user",JSON.stringify(e))}redirectAfterLogin(){this.router.navigate(["pages/customer-tab/customer"])}}return(o=a).\u0275fac=function(e){return new(e||o)(t.LFG(y.O),t.LFG(m.F0))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),a})();var f=s(9229);let C=(()=>{var o;class a{constructor(e,n,r,d,g){this.router=e,this.formBuilder=n,this.elementRef=r,this.authService=d,this.toastr=g;var h=JSON.parse(window.localStorage.getItem("user"));let _=new Date;null!=h&&new Date(h.expiredAt)>_&&this.router.navigate(["pages/customer-tab/customer"]),this.loginForm=this.formBuilder.group({username:["",i.kI.required],password:["",i.kI.required]})}ngOnInit(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="#c3f3f7"}ngOnDestroy(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="white"}onSubmit(){this.authService.login(this.loginForm.controls.username.value,this.loginForm.controls.password.value).subscribe({next:r=>{this.handlingSuccessLogin(r)},error:r=>{this.toastr.error(r.error,"Error")}})}handlingSuccessLogin(e){localStorage.setItem("username",this.loginForm.controls.username.value),c.g.IsNotEmpty(e.UserID)&&c.g.IsEmpty(e.access_token)?this.router.navigate(["/verify-2fa"]):this.authService.redirectAfterLogin()}}return(o=a).\u0275fac=function(e){return new(e||o)(t.Y36(m.F0),t.Y36(i.QS),t.Y36(t.SBq),t.Y36(u),t.Y36(f._W))},o.\u0275cmp=t.Xpm({type:o,selectors:[["ng-component"]],decls:37,vars:1,consts:[[1,"container"],[1,"row","mt-5","mt-md-0","align-self-center"],[1,"col-12","col-md-7","text-center"],["src","https://res.cloudinary.com/pos/image/upload/w_450/v1603265432/zohobooksxdealpos.png","alt","integration-image",1,"img-fluid"],[1,"col-12","col-md-5","order-first","order-md-last"],[1,"card"],[1,"card-body"],[1,"card-title"],[1,"ms-2","fw-normal","font-xl","robotoslab"],[1,"mt-6",3,"formGroup"],[1,"form-label-group"],["type","text","formControlName","username","name","username","id","inputUsername","placeholder","Username","required","",1,"form-control","text-start"],["for","inputPassword",1,"text-start"],["type","password","formControlName","password","name","password","id","inputPassword","placeholder","Password","required","",1,"form-control","text-start"],["type","submit",1,"btn","btn-lg","btn-primary","w-100",3,"click"],[1,"col-12","d-block","d-md-none","text-center"],[1,"pt-1rem","me-3"],["target","_blank","href","https://www.dealpos.com"],["src","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png","alt","dealpos-logo",1,"img-fluid"],[1,"mx-5","pb-5","mb-5","d-none","d-md-block"],[1,"row","justify-content-between","align-items-center"],[1,"col-auto","d-inline-flex"],[1,"col-auto"],["href","https://changelog.dealpos.com/?categories=cat_V5iwt9cDrwQcE&view=complete","target","_blank"],[1,"pt-1rem","fst-italic"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"img",3),t.qZA(),t.TgZ(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"h2",8),t._uU(9,"Sign in"),t.qZA()(),t.TgZ(10,"form",9)(11,"div",10),t._UZ(12,"input",11),t.TgZ(13,"label",12),t._uU(14,"Username"),t.qZA()(),t.TgZ(15,"div",10),t._UZ(16,"input",13),t.TgZ(17,"label",12),t._uU(18,"Password"),t.qZA()(),t.TgZ(19,"button",14),t.NdJ("click",function(){return n.onSubmit()}),t._uU(20,"Sign in"),t.qZA()()()()(),t.TgZ(21,"div",15)(22,"p",16),t._uU(23,"Powered by : "),t.qZA(),t.TgZ(24,"a",17),t._UZ(25,"img",18),t.qZA()()()(),t.TgZ(26,"footer",19)(27,"div",20)(28,"div",21)(29,"p",16),t._uU(30,"Powered by : "),t.qZA(),t.TgZ(31,"a",17),t._UZ(32,"img",18),t.qZA()(),t.TgZ(33,"div",22)(34,"a",23)(35,"p",24),t._uU(36,"Version 2.
|
|
1
|
+
"use strict";(self.webpackChunkzoho=self.webpackChunkzoho||[]).push([[101],{7101:(P,p,s)=>{s.r(p),s.d(p,{LoginModule:()=>T});var v=s(6814),i=s(95),m=s(4408),c=s(8069),t=s(5879),b=s(9397),y=s(6340);let u=(()=>{var o;class a{get loginResponse(){return this._loginResponse}constructor(e,n){this.httpService=e,this.router=n}login(e,n){return this.httpService.post("/api/Authentication/Login",JSON.stringify({client_id:e,client_secret:n})).pipe((0,b.b)(d=>{this._loginResponse=d,c.g.IsEmpty(d.UserID)&&c.g.IsNotEmpty(d.access_token)&&this.saveLoginResponse(d)}))}saveLoginResponse(e){localStorage.setItem("user",JSON.stringify(e))}redirectAfterLogin(){this.router.navigate(["pages/customer-tab/customer"])}}return(o=a).\u0275fac=function(e){return new(e||o)(t.LFG(y.O),t.LFG(m.F0))},o.\u0275prov=t.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),a})();var f=s(9229);let C=(()=>{var o;class a{constructor(e,n,r,d,g){this.router=e,this.formBuilder=n,this.elementRef=r,this.authService=d,this.toastr=g;var h=JSON.parse(window.localStorage.getItem("user"));let _=new Date;null!=h&&new Date(h.expiredAt)>_&&this.router.navigate(["pages/customer-tab/customer"]),this.loginForm=this.formBuilder.group({username:["",i.kI.required],password:["",i.kI.required]})}ngOnInit(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="#c3f3f7"}ngOnDestroy(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="white"}onSubmit(){this.authService.login(this.loginForm.controls.username.value,this.loginForm.controls.password.value).subscribe({next:r=>{this.handlingSuccessLogin(r)},error:r=>{this.toastr.error(r.error,"Error")}})}handlingSuccessLogin(e){localStorage.setItem("username",this.loginForm.controls.username.value),c.g.IsNotEmpty(e.UserID)&&c.g.IsEmpty(e.access_token)?this.router.navigate(["/verify-2fa"]):this.authService.redirectAfterLogin()}}return(o=a).\u0275fac=function(e){return new(e||o)(t.Y36(m.F0),t.Y36(i.QS),t.Y36(t.SBq),t.Y36(u),t.Y36(f._W))},o.\u0275cmp=t.Xpm({type:o,selectors:[["ng-component"]],decls:37,vars:1,consts:[[1,"container"],[1,"row","mt-5","mt-md-0","align-self-center"],[1,"col-12","col-md-7","text-center"],["src","https://res.cloudinary.com/pos/image/upload/w_450/v1603265432/zohobooksxdealpos.png","alt","integration-image",1,"img-fluid"],[1,"col-12","col-md-5","order-first","order-md-last"],[1,"card"],[1,"card-body"],[1,"card-title"],[1,"ms-2","fw-normal","font-xl","robotoslab"],[1,"mt-6",3,"formGroup"],[1,"form-label-group"],["type","text","formControlName","username","name","username","id","inputUsername","placeholder","Username","required","",1,"form-control","text-start"],["for","inputPassword",1,"text-start"],["type","password","formControlName","password","name","password","id","inputPassword","placeholder","Password","required","",1,"form-control","text-start"],["type","submit",1,"btn","btn-lg","btn-primary","w-100",3,"click"],[1,"col-12","d-block","d-md-none","text-center"],[1,"pt-1rem","me-3"],["target","_blank","href","https://www.dealpos.com"],["src","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png","alt","dealpos-logo",1,"img-fluid"],[1,"mx-5","pb-5","mb-5","d-none","d-md-block"],[1,"row","justify-content-between","align-items-center"],[1,"col-auto","d-inline-flex"],[1,"col-auto"],["href","https://changelog.dealpos.com/?categories=cat_V5iwt9cDrwQcE&view=complete","target","_blank"],[1,"pt-1rem","fst-italic"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"img",3),t.qZA(),t.TgZ(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"h2",8),t._uU(9,"Sign in"),t.qZA()(),t.TgZ(10,"form",9)(11,"div",10),t._UZ(12,"input",11),t.TgZ(13,"label",12),t._uU(14,"Username"),t.qZA()(),t.TgZ(15,"div",10),t._UZ(16,"input",13),t.TgZ(17,"label",12),t._uU(18,"Password"),t.qZA()(),t.TgZ(19,"button",14),t.NdJ("click",function(){return n.onSubmit()}),t._uU(20,"Sign in"),t.qZA()()()()(),t.TgZ(21,"div",15)(22,"p",16),t._uU(23,"Powered by : "),t.qZA(),t.TgZ(24,"a",17),t._UZ(25,"img",18),t.qZA()()()(),t.TgZ(26,"footer",19)(27,"div",20)(28,"div",21)(29,"p",16),t._uU(30,"Powered by : "),t.qZA(),t.TgZ(31,"a",17),t._UZ(32,"img",18),t.qZA()(),t.TgZ(33,"div",22)(34,"a",23)(35,"p",24),t._uU(36,"Version 2.5.1"),t.qZA()()()()()),2&e&&(t.xp6(10),t.Q6J("formGroup",n.loginForm))},dependencies:[i._Y,i.Fj,i.JJ,i.JL,i.Q7,i.sg,i.u],styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.passwordIcon[_ngcontent-%COMP%]{top:1.5rem;right:.5rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:500;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:90%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:2.5rem}}@media (min-width: 1200px){.container[_ngcontent-%COMP%]{max-width:70%}.big-display[_ngcontent-%COMP%]{font-size:3rem}}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{height:100%}body[_ngcontent-%COMP%]{display:flex;align-items:center;padding-top:40px;padding-bottom:40px}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.pt-1rem[_ngcontent-%COMP%]{padding-top:1rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}"]}),a})();var w=s(8645),x=s(9903);const O=["totpCode"],Z=[{path:"",component:C,data:{title:"Dealpos x ZohoBook"}},{path:"verify-2fa",component:(()=>{var o;class a{constructor(e,n,r,d,g){this.totpService=e,this.authService=n,this.toastrService=r,this.elementRef=d,this.router=g,this.destroy$=new w.x,this.checkOnRefreshPage()}ngOnInit(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="#c3f3f7"}ngAfterViewInit(){this.validationCodeEl.nativeElement.focus()}ngOnDestroy(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="white",this.destroy$.next(!0),this.destroy$.complete()}checkOnRefreshPage(){c.g.IsEmpty(this.authService.loginResponse)&&this.router.navigate(["/"])}onSubmit(){if(!this.validateOnVerfiyCode())return;const e=this.authService.loginResponse?.UserID;this.totpService.validateCode(this.validationCode,e).subscribe(n=>{this.authService.saveLoginResponse(n),this.authService.redirectAfterLogin()})}validateOnVerfiyCode(){let e=!0;return c.g.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 c.g.numberOnly(e)}}return(o=a).\u0275fac=function(e){return new(e||o)(t.Y36(x.g),t.Y36(u),t.Y36(f._W),t.Y36(t.SBq),t.Y36(m.F0))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-totp"]],viewQuery:function(e,n){if(1&e&&t.Gf(O,5),2&e){let r;t.iGM(r=t.CRH())&&(n.validationCodeEl=r.first)}},decls:28,vars:1,consts:[[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","fw-bold"],[1,"mt-6","text-start"],[3,"submit"],[1,"row","mt-3"],[1,"col-12","text-start"],["for","totpCode",1,"form-label"],["type","text","data-cy","totp-code","placeholder","6-digit code","aria-label","Username","name","totp-code","id","totpCode",1,"form-control","form-control-lg","rounded","ps-6",2,"height","50px",3,"ngModel","ngModelChange","keypress"],["totpCode",""],[1,"d-md-flex","justify-content-end","mt-6"],[1,"order-md-last"],["type","submit",1,"btn","btn-lg","btn-primary","rounded-1","font-weight-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(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),t._uU(4,"Enter time-based OTP"),t.qZA(),t.TgZ(5,"p",4),t._uU(6,"Enter the OTP generated on your authenticator app"),t.qZA(),t.TgZ(7,"form",5),t.NdJ("submit",function(){return n.onSubmit()}),t.TgZ(8,"div",6)(9,"div",7)(10,"label",8),t._uU(11,"AUTHENTICATION CODE"),t.qZA(),t.TgZ(12,"input",9,10),t.NdJ("ngModelChange",function(d){return n.validationCode=d})("keypress",function(d){return n.numberOnly(d)}),t.qZA()()(),t.TgZ(14,"div",11)(15,"div",12)(16,"button",13),t._uU(17," Verify "),t.qZA()()()()(),t.TgZ(18,"div",14)(19,"div",15),t._UZ(20,"img",16),t.qZA()()(),t.TgZ(21,"div",17)(22,"div",18)(23,"div")(24,"span"),t._uU(25,"powered by :"),t.qZA(),t._UZ(26,"a",19)(27,"img",20),t.qZA()()()()),2&e&&(t.xp6(12),t.Q6J("ngModel",n.validationCode))},dependencies:[i._Y,i.Fj,i.JJ,i.JL,i.On,i.F],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:54rem;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}}"]}),a})(),data:{title:"Dealpos x ZohoBook"}}];let S=(()=>{var o;class a{}return(o=a).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[m.Bz.forChild(Z),m.Bz]}),a})(),T=(()=>{var o;class a{}return(o=a).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[v.ez,i.u5,i.UX,S]}),a})()}}]);
|