PageSourceSearch

https://www.tasteinmotion.com/_nuxt/reset-password.988d031e.js

js tasteinmotion.com collected 2026-10-05 02:11:42 UTC 2,752 bytes, 1 lines download raw bytes

1import{_ as x}from"./nuxt-link.928736e8.js";import{_ as y}from"./Field.7322a01b.js";import{_ as k}from"./Error.f57eebfb.js";import{d as C,b as P}from"./entry.7d939621.js";import{a as c,h as I,q as _,x as R,y as e,E as d,I as S,X as T,u as o,O as B,H as M,A as V,V as E,R as F,U as L}from"./swiper-vue.1b2a8b42.js";import{u as N}from"./cookie.c2dfd3c6.js";import{u as j}from"./useAccounts.cb6f3929.js";import{_ as A}from"./editorial-image.b61b89b6.js";import{_ as $}from"./axios.93df6217.js";import{_ as q}from"./_plugin-vue_export-helper.c27b6911.js";const m=r=>(F("data-v-f1481224"),r=r(),L(),r),D={class:"flex flex-col md:flex-row pt-12 md:pt-16 pb-16 md:pb-0 items-center"},H=m(()=>e("div",{class:"w-full md:w-1/2 img-container mb-8 md:mb-0"},[e("figure",{class:"w-full h-full"},[e("img",{class:"w-full h-full object-cover",src:A})])],-1)),O={class:"w-full md:w-1/2 px-4 md:px-8 lg:px-32"},U={class:"flex items-end justify-between w-full mb-8"},W=m(()=>e("h1",{class:"text-heading"},"Reset Password",-1)),X=m(()=>e("span",{class:"block text-body-small -mt-2",textContent:"Password must be at least 8 characters"},null,-1)),z=["disabled","textContent"],G={__name:"reset-password",setup(r){const p=N($),n=c(!1),t=c(""),l=c(""),s=c(""),f=C();P();const{customerResetPassword:h}=j(),g=I(()=>!t.value.length||!l.value.length),v=async()=>{try{if(!t.value.length||!l.value.length)return s.value="Fields Missing.";if(t.value.length<8)return s.value="Password Too Short. Must be a minimum of 8 characters.";if(t.value!==l.value)return s.value="Passwords do not match.";n.value=!0;const a=await h(t.value,"https://aeneid.myshopify.com/account/reset/5970030723117/5b3bdc136fa2abc5c41eabd49d656e72-1668019693");
1if(a.msg)return s.value=a.msg;a.accessToken&&(p.value=a.accessToken,f.push("/customers/account")),n.value=!1}catch(a){console.log(a),n.value=!1,s.value="Whoops, something went wrong on our end. Please refresh the page and try again."}};return(a,J)=>{const w=x,i=y,b=k;return _(),R("div",D,[H,e("div",O,[e("div",U,[W,d(w,{to:"/customers/login"},{default:S(()=>[E("Back to Log In")]),_:1})]),e("form",{onSubmit:T(v,["prevent"]),class:"flex flex-col gap-y-4 mb-4"},[d(i,{type:"password",label:"Password",value:o(t),handleChange:u=>t.value=u.target.value},null,8,["value","handleChange"]),X,d(i,{type:"password",label:"Confirm Password",value:o(l),handleChange:u=>l.value=u.target.value},null,8,["value","handleChange"]),e("button",{disabled:o(g)||o(n),type:"submit",class:"mt-4 btn btn-fill-dark",textContent:B(o(n)?"Loading...":"Log In")},null,8,z)],32),o(s).length?(_(),M(b,{key:0,class:"text-center",msg:o(s),clearMessage:()=>s.value=""},null,8,["msg","clearMessage"])):V("",!0)])])}}},le=q(G,[["__scopeId","data-v-f1481224"]]);export{le 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.