PageSourceSearch

https://www.aohostels.com/build/assets/Reset-Password-BCsZgZI4.js

js aohostels.com collected 2026-10-02 03:26:45 UTC 11,105 bytes, 1 lines download raw bytes

1import{V as m}from"./vendor-vue-DSVczLiO.js";import{p as i}from"./parameters-BOJKtTSs.js";import{n as c}from"./_plugin-vue2_normalizer-p4i_2SC9.js";import{L as u}from"./LoadingSpinner-CmYt22Eu.js";const p={name:"Password",data(){return{submitClicked:!1,data:{email:""}}},methods:{validateBeforeSubmit(){this.submitClicked||this.$validator.validateAll().then(t=>{t&&(this.submitClicked=!0,m.axios.post(i.passwordApi,{data:btoa(encodeURIComponent(JSON.stringify(this.data)))}).then(s=>{s.status===200?s.data.status==="success"?this.update_status(s.data):this.update_status(s.data):(this.submitClicked=!1,this.update_status(s.data))}).catch(()=>{this.submitClicked=!1}))})}},mounted(){this.setPassowrdDictonary(),this.$root.$emit("pageLoading",!1)},computed:{tool(){return window.TOOL},forgotTool(){return i.forgotTool}}};var w=function(){var s=this,e=s._self._c;return e("div",{staticClass:"register-block"},[s.status?[e("div",{staticClass:"alert",class:s.status_class},[s._v(" "+s._s(s.decode_description(s.message))+" ")])]:s._e(),e("div",{staticClass:"register-box",attrs:{id:"form"}},[e("div",{staticClass:"row form-group"},[e("div",{staticClass:"col-xs-12"},[e("h2",[s._v(s._s(s.$t("content.forgot_headline")))]),e("p",[s._v(s._s(s.$t("content.forgot_description")))]),e("input",{directives:[{name:"model",rawName:"v-model",value:s.data.email,expression:"data.email"},{name:"validate",rawName:"v-validate",value:"required|email",expression:"'required|email'"}],class:{"form-control":!0,input:!0,"is-danger":s.errors.first("email")},attrs:{type:"email",name:"email",id:"email",placeholder:s.$t("bookingtool.email")},domProps:{value:s.data.email},on:{input:function(a){a.target.composing||s.$set(s.data,"email",a.target.value)}}}),e("div",{staticClass:"help-block with-errors is-danger"},[s._v(s._s(s.errors.first("email")))])])]),e("div",{staticClass:"row form-group"},[e("div",{staticClass:"col-xs-12"},[e("button",{staticClass:"btn btn orangeButton btn-lg",attrs:{type:"button",id:"button",disabled:s.submitClicked},on:{click:s.validateBeforeSubmit}},[s._v(s._s(s.$t("content.forgot_submit"))+" ")]),s.tool!==s.forgotTool?e("div",{staticClass:"register_login-msg"},[s._v(" "+s._s(s.$t("content.registerNow"))+" "),e("a",{staticClass:"register-login-link",on:{click:s.gotoRegistration}},[s._v(s._s(s.$t("content.transRegister")))])]):s._e()])])])],2)},f=[],h=c(p,w,f,!1,null,"f9b5635d");const q=h.exports,v={name:"Index",components:{LoadingSpinner:u},mixins:[i],data(){return{isLoading:!0}},methods:{hide(){return i.mainUrl===this.$route.path},getClass(){return this.tool.toUpperCase()===this.clubTool?this.isQuickSignup||this.$route.name==="Login"?"quickSignup":"fullsizeHeader":"fullsizeHeaderReseller"}},computed:{tool(){return window.TOOL},clubTool(){return i.clubTool},isQuickSignup(){return window.location.href.includes("quick-signup")}},created(){this.$root.$on("pageLoading",t=>this.isLoading=t)},beforeDestroy(){this.$root.$off("pageLoading",t=>this.isLoading=t)}};var _=function(){var s=this,e=s._self._c;return e("div",[e("loading-spinner",{attrs:{id:"itemOverlay",fullScreen:!0,size:"lg"}}),s.$route.name==="Step1"||s.$route.name==="Login"||s.$route.name==="Upgrade"||s.$route.name==="Registration"||s.$route.name==="QuickRegistration"||s.$route.name==="Password"||s.$route.name==="ResetPassword"||s.$route.name==="Error"||s.$route.name==="NoCategories"?[e("div",{class:s.getClass()},[s.tool===s.clubTool.toLowerCase()?[!s.isQuickSignup&&s.$route.name!=="Login"?e("div",{attrs:{id:"fullsizeHeaderGradient"}}):s._e(),s.isQuickSignup?e("img",{staticClass:"yellow-lama",staticStyle:{width:"100%"},attrs:{src:"https://cdn.aohostels.com/img/club/yellow-lama.jpg",alt:"yellow-lama"}}):s.$route.name==="Login"?e("img",{staticClass:"yellow-lama hidden-xs hidden-sm hidden-md",staticStyle:{width:"100%"},attrs:{src:"https://cdn.aohostels.com/img/club/yellow-lama.jpg",alt:"yellow-lama"}}):e("img",{staticClass:"visible-xs hidden-sm hidden-md hidden-lg",attrs:{src:"https://cdn.aohostels.com/img/club/new/ao-club-header-mobile.jpg"}})]:[e("img",{staticClass:"visible-xs hidden-sm hidden-md hidden-lg",attrs:{src:"https://cdn.aohostels.com/img/reseller/header-reseller-mobile.jpg"}})]],2)]:s._e(),e("div",{class:s.$route.name,attrs:{id:"clubWrapper"}},[e("loading-spinner",{attrs:{id:"pageLoader",show:s.isLoading,color:"#293a88"}}),e("router-view",{directives:[{name:"show",rawName:"v-show",value:!s.isLoading,expression:"!isLoading"}],key:s.$route.path})],1)],2)},g=[],b=c(v,_,g,!1,null,null);const S=b.exports,C={name:"Reset-Password",computed:{token(){return this.$route.query.token},tool(){return window.TOOL},forgotTool(){return i.forgotTool}},data(){return{submitClicked:!1,showPassword:!1,showConfirmPassword:!1,password:"",confirm_password:""}},methods:{validateBeforeSubmit(){this.submitClicked||this.$validator.validateAll().then(t=>{if(t&&this.token){this.submitClicked=!0;const s={password:this.password,confirm_password:this.confirm_password,token:this.token};m.axios.post(i.passwordReset,{data:btoa(encodeURIComponent(JSON.stringify(s)))}).then(e=>{e.status===200?e.data.status==="success"?this.update_status(e.data):this.update_status(e.data):(this.submitClicked=!1,this.update_status(e.data))}).catch(()=>{this.submitClicked=!1})}})}},mounted(){this.setPassowrdDictonary(),this.$root.$emit("pageLoading",!1)}};var k=function(){var s=this,e=s._self._c;return e("div",{staticClass:"register-block"},[s.status?[e("div",{staticClass:"alert",class:s.status_class},[s._v(" "+s._s(s.decode_description(s.message))+" ")])]:s._e(),e("div",{staticClass:"register-box",attrs:{id:"form"}},[e("h2",[s._v(s._s(s.$t("content.forgotPass")))]),e("div",{staticClass:"row form-group"},[e("div",{staticClass:"col-xs-12"},[e("div",{staticClass:"pwd-shell"},[(s.showPassword?"text":"password")=="checkbox"?e("input",{directives:[{name:"model",rawName:"v-model",value:s.password,expression:"password"},{name:"validate",rawName:"v-validate",value:"required|min:6",expression:"'required|min:6'"}],ref:"password",class:{"form-control":!0,input:!0,"is-danger":s.errors.first("password")},attrs:{name:"password",id:"password",placeholder:s.$t("index.newPassword"),type:"checkbox"},domProps:{checked:Array.isArray(s.password)?s._i(s.password,null)>-1:s.password},on:{change:function(a){var r=s.password,d=a.target,l=!!d.checked;if(Array.isArray(r)){var n=null,o=s._i(r,n);d.checked?o<0&&(s.password=r.concat([n])):o>
1-1&&(s.password=r.slice(0,o).concat(r.slice(o+1)))}else s.password=l}}}):(s.showPassword?"text":"password")=="radio"?e("input",{directives:[{name:"model",rawName:"v-model",value:s.password,expression:"password"},{name:"validate",rawName:"v-validate",value:"required|min:6",expression:"'required|min:6'"}],ref:"password",class:{"form-control":!0,input:!0,"is-danger":s.errors.first("password")},attrs:{name:"password",id:"password",placeholder:s.$t("index.newPassword"),type:"radio"},domProps:{checked:s._q(s.password,null)},on:{change:function(a){s.password=null}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:s.password,expression:"password"},{name:"validate",rawName:"v-validate",value:"required|min:6",expression:"'required|min:6'"}],ref:"password",class:{"form-control":!0,input:!0,"is-danger":s.errors.first("password")},attrs:{name:"password",id:"password",placeholder:s.$t("index.newPassword"),type:s.showPassword?"text":"password"},domProps:{value:s.password},on:{input:function(a){a.target.composing||(s.password=a.target.value)}}}),e("button",{staticClass:"show-hide-password",class:{show:s.showPassword},attrs:{type:"button","aria-label":s.showPassword?"Hide password":"Show password"},on:{click:function(a){s.showPassword=!s.showPassword}}},[e("i",{staticClass:"fa fa-eye-slash",attrs:{"aria-hidden":"true"}}),e("i",{staticClass:"fa fa-eye",attrs:{"aria-hidden":"true"}})])]),e("div",{staticClass:"help-block with-errors is-danger"},[s._v(s._s(s.errors.first("password")))])])]),e("div",{staticClass:"row form-group"},[e("div",{staticClass:"col-xs-12"},[e("div",{staticClass:"pwd-shell"},[(s.showConfirmPassword?"text":"password")=="checkbox"?e("input",{directives:[{name:"model",rawName:"v-model",value:s.confirm_password,expression:"confirm_password"},{name:"validate",rawName:"v-validate",value:"required|confirmed:password",expression:"'required|confirmed:password'"}],class:{"form-control":!0,input:!0,"is-danger":s.errors.first("confirm_password")},attrs:{name:"confirm_password",id:"confirm_password",placeholder:s.$t("index.confirmNewPassword"),type:"checkbox"},domProps:{checked:Array.isArray(s.confirm_password)?s._i(s.confirm_password,null)>-1:s.confirm_password},on:{change:function(a){var r=s.confirm_password,d=a.target,l=!!d.checked;if(Array.isArray(r)){var n=null,o=s._i(r,n);d.checked?o<0&&(s.confirm_password=r.concat([n])):o>-1&&(s.confirm_password=r.slice(0,o).concat(r.slice(o+1)))}else s.confirm_password=l}}}):(s.showConfirmPassword?"text":"password")=="radio"?e("input",{directives:[{name:"model",rawName:"v-model",value:s.confirm_password,expression:"confirm_password"},{name:"validate",rawName:"v-validate",value:"required|confirmed:password",expression:"'required|confirmed:password'"}],class:{"form-control":!0,input:!0,"is-danger":s.errors.first("confirm_password")},attrs:{name:"confirm_password",id:"confirm_password",placeholder:s.$t("index.confirmNewPassword"),type:"radio"},domProps:{checked:s._q(s.confirm_password,null)},on:{change:function(a){s.confirm_password=null}}}):e("input",{directives:[{name:"model",rawName:"v-model",value:s.confirm_password,expression:"confirm_password"},{name:"validate",rawName:"v-validate",value:"required|confirmed:password",expression:"'required|confirmed:password'"}],class:{"form-control":!0,input:!0,"is-danger":s.errors.first("confirm_password")},attrs:{name:"confirm_password",id:"confirm_password",placeholder:s.$t("index.confirmNewPassword"),type:s.showConfirmPassword?"text":"password"},domProps:{value:s.confirm_password},on:{input:function(a){a.target.composing||(s.confirm_password=a.target.value)}}}),e("button",{staticClass:"show-hide-password",class:{show:s.showConfirmPassword},attrs:{type:"button","aria-label":s.showConfirmPassword?"Hide confirm password":"Show confirm password"},on:{click:function(a){s.showConfirmPassword=!s.showConfirmPassword}}},[e("i",{staticClass:"fa fa-eye-slash",attrs:{"aria-hidden":"true"}}),e("i",{staticClass:"fa fa-eye",attrs:{"aria-hidden":"true"}})])]),e("div",{staticClass:"help-block with-errors is-danger"},[s._v(s._s(s.errors.first("confirm_password")))])])]),e("div",{staticClass:"row form-group"},[e("div",{staticClass:"col-xs-12"},[e("button",{staticClass:"btn btn orangeButton btn-lg",attrs:{type:"button",id:"button",disabled:s.submitClicked},on:{click:s.validateBeforeSubmit}},[s._v(s._s(s.$t("bookingtool.next_step"))+" ")])])]),s.tool!==s.forgotTool?e("div",{staticClass:"register_login-msg"},[s._v(" "+s._s(s.$t("content.loginNow"))+" "),e("a",{staticClass:"register-login-link",on:{click:s.goToLogin}},[s._v(s._s(s.$t("content.login")))])]):s._e()])],2)},x=[],$=c(C,k,x,!1,null,"ad30821f");const R=$.exports;export{S as I,q as P,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.