PageSourceSearch

https://order.cmthaiandsushi.com/539.3a91e18dec2bd33c.js

js cmthaiandsushi.com collected 2026-10-08 12:02:10 UTC 3,757 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunktakeoutbutton_app=self.webpackChunktakeoutbutton_app||[]).push([[539],{5539:(P,d,t)=>{t.r(d),t.d(d,{ChangePasswordComponent:()=>f});var o=t(9417),c=t(177),u=t(2193),s=t(8699),g=t(8064),h=t(8898),l=t(4344);function p(e,i){if(1&e&&(s.j41(0,"div",13),s.EFF(1),s.k0s()),2&e){const r=s.XpG(2);s.R7$(1),s.JRh(r.errorMessage)}}const m=function(e,i){return{"is-invalid":e,"is-valid":i}};function _(e,i){if(1&e){const r=s.RV6();s.j41(0,"div")(1,"p"),s.EFF(2,"To complete the password reset process fill out the form below by selecting a new password."),s.k0s(),s.j41(3,"form",3),s.bIt("ngSubmit",function(){s.eBV(r);const n=s.XpG();return s.Njj(n.onSubmit())}),s.j41(4,"h3",4),s.EFF(5,"Change Password"),s.k0s(),s.j41(6,"div",5)(7,"div",6),s.nrm(8,"input",7),s.j41(9,"label",8),s.EFF(10,"Password"),s.k0s()(),s.j41(11,"div",6),s.nrm(12,"input",9),s.j41(13,"label",10),s.EFF(14,"Confirm Password"),s.k0s()()(),s.DNE(15,p,2,1,"div",11),s.j41(16,"button",12),s.EFF(17,"Reset Password"),s.k0s()()()}if(2&e){const r=s.XpG();s.R7$(3),s.Y8G("formGroup",r.changePasswordForm),s.R7$(5),s.Y8G("ngClass",s.l_i(4,m,r.formService.isInValid("password",r.changePasswordForm),r.formService.isValid("password",r.changePasswordForm))),s.R7$(4),s.Y8G("ngClass",s.l_i(7,m,r.formService.isInValid("password2",r.changePasswordForm),r.formService.isValid("password2",r.changePasswordForm))),s.R7$(3),s.Y8G("ngIf",r.errorMessage.length>0)}}function w(e,i){1&e&&(s.j41(0,"div")(1,"div",14),s.EFF(2,"Password has been reset"),s.k0s()())}let f=(()=>{class e{constructor(r,a,n,v){this.formService=r,this.customerService=a,this.route=n,this.fb=v,this.changePasswordForm=new o.gE({}),this.guid=null,this.isSuccess=!1,this.errorMessage=""}ngOnInit(){this.changePasswordForm=this.fb.group({password:["",o.k0.required],password2:["",o.k0.required]}),this.routeSubscription=this.route.paramMap.subscribe(r=>{this.guid=r.get("guid")})}ngOnDestroy(){this.routeSubscription&&this.routeSubscription.unsubscribe()}onSubmit(){if(!this.changePasswordForm.invalid){if(this.changePasswordForm.value.password!==this.changePasswordForm.value.password2)return void(this.errorMessage="Passwords do not match");this.customerService.changePassword({guid:this.guid,password:this.changePasswordForm.value.password}).subscribe({next:()=>{this.isSuccess=!0},error:r=>{this.errorMessage=r.error}})}}static#s=this.\u0275fac=function(a){return new(a||e)(s.rXU(g.u),s.rXU(h.m),s.rXU(l.nX),s.rXU(o.ok))};static#r=this.\u0275cmp=s.VBU({type:e,selectors:[["tob-change-password"]],standalone:!0,features:[s.aNF],decls:4,vars:3,consts:[[1,"container","change-password"],["pageName","Change Password",3,"showCategoryBreadcrumb"],[4,"ngIf"],["novalidate","",1,"change-password-form",3,"formGroup","ngSubmit"],[1,"mb-3","mt-3"],[1,"row"],[1,"form-floating","m-3"],["type","password","id","password","formControlName","password","minlength","8","required","",1,"form-control",3,"ngClass"],["for","password"],["type","password","id","password2","formControlName","password2","minlength","8","required","",1,"form-control",3,"ngClass"],["for","password2"],["class","alert alert-danger",4,"ngIf"],["type","submit",1,"btn","btn-primary","mt-3"],[1,"alert","alert-danger"],[1,"alert","alert-primary"]],template:function(a,n){1&a&&(s.j41(0,"div",0),s.nrm(1,"tob-breadcrumb-nav",1),s.DNE(2,_,18,10,"div",2),s.DNE(3,w,3,0,"div",2),s.k0s()),2&a&&(s.R7$(1),s.Y8G("showCategoryBreadcrumb",!0),s.R7$(1),s.Y8G("ngIf",!n.isSuccess),s.R7$(1),s.Y8G("ngIf",n.isSuccess))},dependencies:[c.bT,o.YN,o.qT,o.me,o.BC,o.cb,o.YS,o.xh,o.X1,o.j4,o.JD,c.YU,u.k],styles:["[_nghost-%COMP%]{width:100%}.change-password[_ngcontent-%COMP%]{max-width:850px}div.form-floating[_ngcontent-%COMP%]{margin-bottom:10px}"]})}return e})()}}]);

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.