PageSourceSearch

https://smastart.jp/_nuxt/DI_KTU0A.js

js smastart.jp collected 2026-09-26 08:15:27 UTC 4,967 bytes, 1 lines download raw bytes

1import{_ as x}from"./e8rnGzKW.js";import{_ as C}from"./D5qWB2Sl.js";import{f as M,G as N,r,B,J as f,c as d,b as e,d as b,C as T,v as h,a as o,t as _,x as w,e as v,K as D,ax as R,w as S,o as p,I as V}from"./BEOHgUK_.js";import{u as j}from"./DDAddwBq.js";const A={class:"p-login-container"},U={class:"p-login-card"},L={class:"p-login-logo-section"},Y={class:"p-login-logo-img-wrapper"},E={key:0,class:"p-login-error"},I={key:1,class:"p-login-success"},K={class:"p-login-input-group"},O=["disabled"],P={class:"p-login-input-group"},X={class:"p-login-input-wrapper"},$=["type","disabled"],q=["disabled"],F={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"p-login-eye-icon"},Z={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"p-login-eye-icon"},G=["disabled"],H={class:"p-login-link"},et=M({__name:"reset-password",setup(J){j({title:"パスワード再発行",meta:[{name:"description",content:"スマスタマイページ - パスワード再発行"},{name:"robots",content:"noindex, nofollow"}]});const{isAuthenticated:y}=N(),i=r({contract_tel:"",birth_date:""});B(async()=>{y.value&&await f("/mypage")});const s=r(!1),n=r(""),l=r(""),c=r(!1),k=async()=>{if(s.value=!0,n.value="",l.value="",!i.value.contract_tel){n.value="契約電話番号を入力してください。",s.value=!1;return}if(!i.value.birth_date){n.value="生年月日を入力してください。",s.value=!1;return}try{const a=document.cookie.split("; ").find(m=>m.startsWith("XSRF-TOKEN="))?.split("=")[1],t=V(),g=await $fetch("/mypage/reset-password",{method:"POST",baseURL:t.public.apiUrl,credentials:"include",headers:{Accept:"application/json","X-XSRF-TOKEN":a?decodeURIComponent(a):""},body:i.value});l.value=g.message||"パスワードを再発行しました。",setTimeout(()=>{f("/mypage/login")},3e3)}catch(a){if(a&&typeof a=="object"&&"data"in a){const t=a;t.data?.errors?.contract_tel?n.value=t.data.errors.contract_tel[0]:t.data?.message?n.value=t.data.message:n.value="パスワードの再発行に失敗しました。もう一度お試しください。"}else n.value="パスワードの再発行に失敗しました。もう一度お試しください。"}finally{s.value=!1}};return(a,t)=>{const g=x,m=C;return p(),d("div",A,[e("div",U,[e("div",L,[e("div",Y,[b(g,{src:"/images/logo_b.png",width:"160",height:"40",alt:"スマスタ",class:"p-login-logo-img"})]),t[3]||(t[3]=e("p",{class:"p-login-logo-text"}," スマートフォン / iPhone の格安レンタル ",-1)),t[4]||(t[4]=e("h1",{class:"p-login-title"},"パスワード再発行",-1)),t[5]||(t[5]=e("p",{class:"p-login-subtitle"},"契約電話番号と生年月日を入力してください",-1))]),e("form",{onSubmit:T(k,["prevent"]),class:"p-login-form"},[o(n)?(p(),d("div",E,_(o(n)),1)):h("",!0),o(l)?(p(),d("div",I,_(o(l)),1)):h("",!0),e("div",K,[t[6]||(t[6]=e("label",{for:"contract_tel",class:"p-login-label"},[v(" 契約電話番号 "),e("span",{class:"p-required-badge"},"必須")],-1)),w(e("input",{id:"contract_tel","onUpdate:modelValue":t[0]||(t[0]=u=>o(i).contract_tel=u),type:"text",placeholder:"00000000000",class:"p-login-input",disabled:o(s)||!!o(l)},null,8,O),[[D,o(i).contract_tel]])]),e("div",P,[t[9]||(t[9]=e("label",{for:"birth_date",class:"p-login-label"},[v(" 生年月日 "),e("span",{class:"p-required-badge"},"必須")],-1)),e("div",X,[w(e("input",{id:"birth_date","onUpdate:modelValue":t[1]||(t[1]=u=>o(i).birth_date=u),type:o(c)?"text":"password",placeholder:"YYYYMMDD",class:"p-login-input",disabled:o(s)||!!o(l)},null,8,$),[[R,o(i).birth_date]]),e("button",{type:"button",class:"p-login-toggle-visibility",onClick:t[2]||(t[2]=u=>c.value=!o(c)),disabled:o(s)||!!o(l)},[o(c)?(p(),d("svg",F,[...t[7]||(t[7]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.64 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.64 0-8.577-3.007-9.964-7.178Z"},null,-1),e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"},null,-1)])])):(p(),d("svg",Z,[...t[8]||(t[8]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"}
1,null,-1)])]))],8,q)])]),e("button",{type:"submit",disabled:o(s)||!!o(l),class:"p-login-button"},_(o(s)?"処理中...":o(l)?"再発行完了":"パスワード再発行"),9,G),e("div",H,[b(m,{to:"/mypage/login"},{default:S(()=>[...t[10]||(t[10]=[v("ログイン画面に戻る",-1)])]),_:1})])],32)])])}}});export{et 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.