PageSourceSearch

https://www.berrycast.com/assets/ResetPassword.0035c726.js

js berrycast.com collected 2026-10-01 10:26:40 UTC 4,492 bytes, 1 lines download raw bytes

1import{h as v,g as f,W as w,C as m,I as _,U as P,n as p,V as h}from"./index.8c7e38b2.js";import{A as g}from"./AuthenticateLayoutWebapp.a767b395.js";import{I as b}from"./IsDesktopOnboardingMixin.1a68933e.js";import"./AuthenticateAgreement.515d03fb.js";var C=Object.defineProperty,x=Object.getOwnPropertyDescriptor,l=(s,r,e,t)=>{for(var a=t>1?void 0:t?x(r,e):r,o=s.length-1,n;o>=0;o--)(n=s[o])&&(a=(t?n(r,e,a):n(a))||a);return t&&a&&C(r,e,a),a};let i=class extends v(b,_){constructor(){super(...arguments),this.beenSubmittedOnce=!1,this.newPassword="",this.confirmPassword=""}onNewPasswordChanged(){this.beenSubmittedOnce&&this.$validator.validate("reset.newPassword",this.newPassword)}onConfirmPasswordChanged(){this.beenSubmittedOnce&&this.$validator.validate("reset.confirmPassword",this.confirmPassword)}async onSubmitResetPassword(){if(this.beenSubmittedOnce=!0,!await this.$validator.validateAll("reset"))return;const r=await f.post({url:"/auth/password/reset",data:{token:this.$route.query.prt,password:this.newPassword}});this.$AuthenticateService.authenticate(r)}};l([w("newPassword")],i.prototype,"onNewPasswordChanged",1);l([w("confirmPassword")],i.prototype,"onConfirmPasswordChanged",1);i=l([m({components:{UiButton:P}})],i);var $=function(){var s=this,r=s.$createElement,e=s._self._c||r;return e("div",[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("form",{attrs:{novalidate:"true","data-vv-scope":"reset"},on:{submit:function(t){return t.preventDefault(),s.onSubmitResetPassword(t)}}},[e("p",{staticClass:"text-black mt-8 mb-2"},[s._v("Please enter your new password")]),e("div",{staticClass:"reset-password flex flex-col"},[e("div",{staticClass:"form-group"},[e("div",{staticClass:"form-field",class:{"has-error":s.errors.has("reset.newPassword")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:s.newPassword,expression:"newPassword"},{name:"validate",rawName:"v-validate",value:Object.assign({},{required:!0},s.$config.password.length),expression:"{required: true, ...$config.password.length}"}],ref:"newPassword",attrs:{name:"newPassword",type:"password",placeholder:"Password","data-vv-as":"new password"},domProps:{value:s.newPassword},on:{input:function(t){t.target.composing||(s.newPassword=t.target.value)}}}),s.errors.has("reset.newPassword")?e("div",{staticClass:"error"},[s._v(s._s(s.errors.first("reset.newPassword")))]):s._e()])]),e("div",{staticClass:"form-group"},[e("div",{staticClass:"form-field",class:{"has-error":s.errors.has("reset.confirmPassword")}},[e("input",{directives:[{name:"model",rawName:"v-model",value:s.confirmPassword,expression:"confirmPassword"},{name:"validate",rawName:"v-validate",value:Object.assign({},{required:!0,confirmed:s.newPassword},s.$config.password.length),expression:"{required: true, confirmed: newPassword, ...$config.password.length}"}],ref:"confirmPassword",staticClass:"form-field",attrs:{name:"confirmPassword",type:"password",placeholder:"Confirm Password","data-vv-as":"password"},domProps:{value:s.confirmPassword},on:{input:function(t){t.target.composing||(s.confirmPassword=t.target.value)}}}),s.errors.has("reset.confirmPassword")?e("div",{staticClass:"error"},[s._v("Passwords do not match. Try again!")]):s._e()])]),e("div",{staticClass:"submit"},[e("ui-button",{staticClass:"btn btn--confirm btn--xl",attrs:{disabled:!s.newPassword||!s.confirmPassword,variant:"primary"}},[s._v("Reset Password!")])],1)])])])],1)},y=[];const c={};var O=p(i,$,y,!1,R,"6ffd3a85",null,null);function R(s){for(let r in c)this[r]=c[r]}var S=function(){return O.exports}(),j=Object.defineProperty,D=Object.getOwnPropertyDescriptor,A=(s,r,e,t)=>{for(var a=t>1?void 0:t?D(r,e):r,o=s.length-1,n;o>=0;o--)(n=s[o])&&(a=(t?n(r,e,a):n(a))||a);return t&&a&&j(r,e,a),a};let d=class extends h{constructor(){super(...arguments),this.layout=this.$config.app.isDesktop?"":"AuthenticateLayoutWebapp"}};d=A([m({components:{ResetPasswordForm:S,AuthenticateLayoutWebapp:g}})],d);var F=function(){var s=this,r=s.$createElement,e=s._self._c||r;return e(s.layout,{tag:"component"},[e("h2",{staticClass:"text-4xl mb-2 font-heading text-black font-bold"},[s._v("Reset Password.")]),e("p",{staticClass:"mt-4 mb-8"},[s._v("Got your password? "),e("router-link",{staticClass:"c-link -underline -current",attrs:{to:{name:"Signin"}}},[s._v("Sign in")])],1),e("ResetPasswordForm")],1)},N=[];const u={};var V=p(d,F,N,!1,q,null,null,null);function q(s){for(let r in u)this[r]=u[r]}var L=function(){return V.exports}();export{L as default};

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.