PageSourceSearch

https://www.ossisnorwich.uk/3147.26e3fb03d5e1fa59.js

js ossisnorwich.uk collected 2026-10-07 09:14:14 UTC 6,179 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkyofoodie_angular=self.webpackChunkyofoodie_angular||[]).push([[3147],{63147:(Y,c,e)=>{e.r(c),e.d(c,{ResetpasswordModule:()=>k});var a=e(60177),p=e(63040),n=e(89417),f=e(81383),m=e(32988),v=e(28258),w=e(75243),g=e(7575),t=e(17705),P=e(36247),d=e(76965),y=e(10874),b=e(99511),F=e(16389),T=e(2986),h=e(97529),l=e(38927),u=e(21011),C=e(19033);function S(r,O){1&r&&t.nrm(0,"app-verify-otp",6),2&r&&t.Y8G("fromPage","resSetpassword")}function R(r,O){if(1&r){const s=t.RV6();t.j41(0,"div",7)(1,"div",8)(2,"h2"),t.EFF(3,"Create New Password"),t.k0s()(),t.j41(4,"div",9)(5,"div",10)(6,"form",11),t.bIt("ngSubmit",function(){t.eBV(s);const i=t.XpG();return t.Njj(i.submitForm(i.validatePasswordForm.value))}),t.j41(7,"nz-form-item",12)(8,"nz-form-control",13)(9,"nz-input-group",14)(10,"div",15),t.nrm(11,"i",16),t.k0s(),t.nrm(12,"input",17),t.j41(13,"label",18),t.EFF(14,"Enter new password"),t.k0s(),t.j41(15,"div",19),t.bIt("click",function(){t.eBV(s);const i=t.XpG();return t.Njj(i.passwordToggle(0))}),t.nrm(16,"i",20),t.k0s()()()(),t.j41(17,"nz-form-item",12)(18,"nz-form-control",21)(19,"nz-input-group",14)(20,"div",15),t.nrm(21,"i",16),t.k0s(),t.nrm(22,"input",22),t.j41(23,"label",18),t.EFF(24,"Enter confirm password"),t.k0s(),t.j41(25,"div",19),t.bIt("click",function(){t.eBV(s);const i=t.XpG();return t.Njj(i.passwordToggle(1))}),t.nrm(26,"i",20),t.k0s()()()(),t.j41(27,"label",23),t.EFF(28,"Do you want to logout from other devices?"),t.k0s(),t.j41(29,"button",24),t.EFF(30," Submit "),t.k0s()()()()()}if(2&r){const s=t.XpG();t.R7$(6),t.Y8G("formGroup",s.validatePasswordForm),t.R7$(6),t.Y8G("type",s.passwordVisible[0]?"text":"password"),t.R7$(4),t.Y8G("ngClass",s.passwordVisible[0]?"flaticon-show":"flaticon-hide"),t.R7$(6),t.Y8G("type",s.passwordVisible[1]?"text":"password"),t.R7$(4),t.Y8G("ngClass",s.passwordVisible[1]?"flaticon-show":"flaticon-hide"),t.R7$(3),t.Y8G("disabled",s.validatePasswordForm.invalid)}}const j=[{path:"",component:(()=>{class r{constructor(s,o,i,A,E,x,X,U){this.fb=s,this.userService=o,this.routeStore=i,this.helper=A,this.cookieService=E,this.userStore=x,this.deviceStore=X,this.modalService=U,this.passwordVisible=[],this.showOTPArea=!0,this.subs=new g.a,this.routeInfo={forgetPass:!0},this.deviceId="",this.showOTPArea=!!this.cookieService.getCookie("fromForgetPassword"),console.log("reset password")}ngOnInit(){this.subs.sink=this.routeStore.select(w.Y7).subscribe(s=>{if(console.log("showOTPArea",this.showOTPArea,s),s&&!0===this.showOTPArea){if(s.hasOwnProperty("queryParams")){let o=this.helper.decrypt(s.queryParams);console.log(o,"ResetPassword",s),this.routeInfo={...o,forgetPass:!0}}}else s.queryParams&&this.cookieService.setCookie("tempToken",s.queryParams,1)}),this.subs.sink=this.userService.switchToOTP.subscribe(s=>{console.log("send otp area 2:",this.showOTPArea),this.showOTPArea=!!s}),this.subs.sink=this.deviceStore.select(v.Xf).subscribe(s=>{this.deviceId=s}),this.validatePasswordForm=this.fb.group({new_password:[null,[n.k0.required]],confirm_password:[null,[n.k0.required]],logoutalldevice:[!1]})}get new_password(){return this.validatePasswordForm.get("new_password")}get confirm_password(){return this.validatePasswordForm.get("confirm_password")}submitOTP(s){console.log(s);let o=this.cookieService.getCookie("userinformation"),i={...s,userID:o.userID};this.userStore.dispatch(new m.tI({body:i}))}submitForm(s){if(console.log("this.validatePasswordForm",s),this.validatePasswordForm.valid)if(s.new_password!==s.confirm_password)this.modalService.showErrorModal("setpass","Your password and confirmation password do not match.");else{let o={...s,deviceID:this.deviceId};console.log("body",o),this.cookieService.setCookie("fromPage","resSetpassword",1),this.userStore.dispatch(new m.Zf({body:o}))}else for(const o in this.validatePasswordForm.controls)this.validatePasswordForm.controls[o].markAsDirty(),this.validatePasswordForm.controls[o].updateValueAndValidity()}passwordToggle(s){this.passwordVisible[s]=!this.passwordVisible[s]}ngOnDestroy(){this.subs.unsubscribe()}static#t=this.\u0275fac=function(o){return new(o||r)(t.rXU(n.ze),t.rXU(P.D),t.rXU(d.il),t.rXU(f.A),t.rXU(y.O),t.rXU(d.il),t.rXU(d.il),t.rXU(b.U))};static#s=this.\u0275cmp=t.VBU({type:r,selectors:[["app-resetpassword"]],decls:6,vars:2,consts:[[1,"authentication-section"],[1,"container"],[1,"row","justify-content-center"],[1,"col-sm-10","col-md-8","col-lg-6","col-xl-6"],[3,"fromPage",4,"ngIf"],["class","authentication-box",4,"ngIf"],[3,"fromPage"],[1,"authentication-box"],[1,"authentication-header"],[1,"authentication-body"],[1,"authentication-body-form","authentication-body-form-signin"],["nz-form","",1,"authentication-form-self",3,"formGroup","ngSubmit"],[1,"authentication-form-item"],["nzErrorTip","Please enter your password!"],[1,"authentication-input-group"],[1,"input-prepend-text"],[1,"flaticon-padlock-2"],["nz-input","","formControlName","new_password","placeholder","Enter new password",1,"authentication-input-field",3,"type"],[1,"authentication-input-label"],[1,"input-append-text","authentication-input-append",3,"click"],[3,"ngClass"],["nzErrorTip","Please enter your confirm password!"],["nz-input","","formControlName","confirm_password","placeholder","Enter confirm password",1,"authentication-input-field",3,"type"],["nz-checkbox","","formControlName","logoutalldevice"],["type","submit",1,"main-btn","w-100",3,"disabled"]],template:function(o,i){1&o&&(t.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3),t.DNE(4,S,1,1,"app-verify-otp",4),t.DNE(5,R,31,6,"div",5),t.k0s()()()()),2&o&&(t.R
17$(4),t.Y8G("ngIf",i.showOTPArea),t.R7$(1),t.Y8G("ngIf",!i.showOTPArea))},dependencies:[a.YU,a.bT,F.c,T.$g,h.Uq,h.e,l.CA,l.Ls,l.zS,u.Sy,u.tg,n.qT,n.me,n.BC,n.cb,n.j4,n.JD,C.a]})}return r})()}];let z=(()=>{class r{static#t=this.\u0275fac=function(o){return new(o||r)};static#s=this.\u0275mod=t.$C({type:r});static#o=this.\u0275inj=t.G2t({imports:[p.iI.forChild(j),p.iI]})}return r})();var I=e(53446),G=e(14910);let k=(()=>{class r{static#t=this.\u0275fac=function(o){return new(o||r)};static#s=this.\u0275mod=t.$C({type:r});static#o=this.\u0275inj=t.G2t({imports:[a.MD,z,I.G,G.h]})}return r})()}}]);

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.