1"use strict";(self.webpackChunkredefine_retail=self.webpackChunkredefine_retail||[]).push([[4625],{4625(M,m,n){n.d(m,{LoginComponent:()=>b});var d=n(467),t=n(1360),c=n(6213),l=n(9417),_=n(3925),r=n(8),f=n(1942),p=n(4599),h=n(643),u=n(1358),v=n(7198),P=n(5327);let b=(()=>{class a{router;toasterService;commonService;ngZone;websiteService;loginForm;user$;website$;storageService=(0,t.WQX)(p.n);userService=(0,t.WQX)(_.w);createcolumns;fields=[{type:"email",label:"Email Address",name:"Email",placeholder:"Enter Email Address",value:"",wrapperClass:"col-md-12",id:"email",validators:{required:!0,email:!0},hideClearIcon:!0},{type:"password",label:"Password",name:"Password",placeholder:"Enter Password",value:"",wrapperClass:"col-md-12",id:"Password",validators:{required:!0}}];websiteList$;websiteList;websiteId;title=r.w5.WELCOME;constructor(i,e,o,s,g){this.router=i,this.toasterService=e,this.commonService=o,this.ngZone=s,this.websiteService=g}ngOnInit(){this.createcolumns=[{value:this.fields}]}onSubmit(i){this.user$=this.commonService.post(`${r.ts.USER_LOGIN}`,i),this.user$.subscribe({next:e=>{this.ngZone.run(()=>{this.storageService.set("Tour",1,"local"),this.storageService.set(r.fW.TOKEN_TAT,e.data.ExpiresIn),this.storageService.set(r.fW.JWT_TOKEN,e.data.Token),this.storageService.set(r.fW.USER,e.data),this.userService.setUser({...e.data}),this.getWebsiteDropdown(e),this.router.navigate(["admin/dashboard"]).then(()=>{this.toasterService.success(e.message,2e3)})})},complete:()=>{},error:e=>{}})}forgotPassword(){this.router.navigate(["forgot-password"])}brokersignup(){this.router.navigate(["admin/signup"])}getWebsiteDropdown(i){var e=this;return(0,d.A)(function*(){e.websiteList$=yield e.websiteService.getWebsite(),e.websiteList$.subscribe({next:o=>{if(e.websiteList=o,e.storageService.set(r.fW.WEBSITES,e.websiteList),e.websiteList.length>0)e.websiteId=e.websiteList[0].Id;else if(i.data.User.WebsiteId){let s=i.data.User.WebsiteId.split(",");e.websiteId=s[0]}e.storageService.set(r.fW.WEBSITE_IDS,e.websiteId)}})})()}static \u0275fac=function(e){return new(e||a)(t.rXU(h.Ix),t.rXU(u.f),t.rXU(v.h),t.rXU(t.SKi),t.rXU(P.j))};static \u0275cmp=t.VBU({type:a,selectors:[["app-login"]],decls:13,vars:10,consts:[[1,"container-fluid","login-section","vh-100"],[1,"row","h-100"],[1,"col-md-6","px-0","login-bg-container"],["src","assets/images/logo-new-bg.jpg","alt","Login",1,"w-100","vh-100","image-login-custom"],[1,"col-md-6","h-100","login-form-wrapper"],[1,"d-flex","flex-column","justify-content-center","login-form-container","py-2"],[1,"mb-3"],["href","/"],["src","assets/images/logo.svg","alt","logo"],[1,"greeting-msg","mb-2"],["id","greeting-msg",1,"rd-heading","rd-heading-lg","mb-3"],[3,"formSubmit","sendPasswordMail","fields","columns","submitButtonText","forgot","showcancelbutton","module","enableFooterLink","footerButtonLabel","footerButtonLink"]],template:function(e,o){1&e&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"img",3),t.k0s(),t.j41(4,"div",4)(5,"div",5)(6,"div",6)(7,"a",7),t.nrm(8,"img",8),t.k0s()(),t.j41(9,"div",9)(10,"div",10),t.EFF(11),t.k0s()(),t.j41(12,"app-dynamic-form",11),t.bIt("formSubmit",function(g){return o.onSubmit(g)})("sendPasswordMail",function(){return o.forgotPassword()}),t.k0s()()()()()),2&e&&(t.R7$(11),t.SpI(" ",o.title," "),t.R7$(),t.Y8G("fields",o.fields)("columns",o.createcolumns)("submitButtonText","Login")("forgot",!0)("showcancelbutton",!1)("module","login-page")("enableFooterLink",!0)("footerButtonLabel","Redefine staff login")("footerButtonLink","/pre-login"))},dependencies:[c.MD,l.X1,f.f],styles:['.login-form-container[_ngcontent-%COMP%]{width:100%;max-width:800px;height:100%;padding:0 7%}[_nghost-%COMP%] .login-form-container .form.form-container{padding:0!important;border:none;width:100%}[_nghost-%COMP%] .rd-form-footer{border:none!important;align-items:center}[_nghost-%COMP%] .login-section .col-12.d-flex.flex-wrap.gap-3.justify-content-center{justify-content:end!important}.login-form-wrapper[_ngcontent-%COMP%]{overflow:auto}.image-login-custom[_ngcontent-%COMP%]{object-fit:cover;object-position:left} .rd-form-footer{justify-content:end!important}.greeting-msg[_ngcontent-%COMP%] .rd-heading[_ngcontent-%COMP%]{font-size:min(2.2vw,2rem)!important;line-height:1.3!important;white-space:nowrap!important}@media(max-width:767px){.login-section[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{position:relative}.login-bg-container[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.login-bg-container[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:#8d8d8d4d;z-index:1}.image-login-custom[_ngcontent-%COMP%]{position:relative;z-index:0}.login-form-wrapper[_ngcontent-%COMP%]{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;background:transparent}.login-form-container[_ngcontent-%COMP%]{padding:2rem 1.5rem;max-width:100%}.login-form-container[_ngcontent-%COMP%] .mb-3[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}.greeting-msg[_ngcontent-%COMP%]{color:#f2f0f0;margin-bottom:1.5rem}.greeting-msg[_ngcontent-%COMP%] .rd-heading[_ngcontent-%COMP%]{font-size:4vw!important;line-height:1.3!important;white-space:nowrap!important}[_nghost-%COMP%] .login-form-container .form.form-container{background:#fff;border-radius:12px;padding:2rem 1.5rem!important;box-shadow:0 4px 20px #0003}[_nghost-%COMP%] .login-form-container label{color:#000!important;text-align:left}[_nghost-%COMP%] .login-form-container .form-text, [_nghost-%COMP%] .login-form-container a{color:#c8102e!important}}@media(max-width:576px){.greeting-msg[_ngcontent-%COMP%] .rd-heading[_ngcontent-%COMP%]{font-size:1.9rem!important}}@media(max-width:375px){.greeting-msg[_ngcontent-%COMP%] .rd-heading[_ngcontent-%COMP%]{font-size:1.6rem!important}}@media(max-width:320px){.greeting-msg[_ngcontent-%COMP%] .rd-heading[_ngcontent-%COMP%]{font-size:1.3rem!important}}']})}return a})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.