PageSourceSearch

https://www.daily-tohoku.news/_nuxt/CXGdU73i.js

js daily-tohoku.news collected 2026-10-02 03:58:13 UTC 4,512 bytes, 1 lines download raw bytes

1import{_ as B}from"./UFXGtyZ_.js";import{h as P,aJ as E,y as k,i3 as H,aL as C,r as U,e as z,c as M,o as g,E as e,a as _,s as t,M as A,aM as L,q as s,aA as q,K as G,R as N,f as R,a0 as F,n as T,a7 as Z,aS as j}from"./ceBh_ItQ.js";import{_ as D}from"./Bfhh8gto.js";import{u as I,_ as J}from"./Cble8g9a.js";import{z as l}from"./Dq5512Q0.js";const K=l.object({currentPassword:l.string().min(1,"現在のパスワードは必須です"),password:l.string().min(1,"パスワードは必須です").regex(/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d!@#$%^&*()_\-+=[\]{};:'",.<>/?\\|`~]{8,20}$/,"パスワードは半角英字・数字を含めて8文字以上で入力してください"),passwordConfirmation:l.string().min(1,"パスワード(確認)は必須です")}).refine(i=>i.password&&i.passwordConfirmation?i.password===i.passwordConfirmation:!0,{message:"パスワードが一致しません",path:["passwordConfirmation"]}),O={class:"flex w-full flex-col px-5 pb-15"},W={class:"mx-auto mt-4 flex w-full max-w-[600px] flex-col"},Y={class:"flex-center mt-10"},Q=P({__name:"index",setup(i){const d=E(),p=k(),{handleError:b}=R(),{changePassword:x}=H(),{handleValidationError:u}=I(),r=C({currentPassword:"",password:"",passwordConfirmation:""}),o=C({currentPassword:!1,password:!1,passwordConfirmation:!1}),c=U(!1),h=z(()=>c.value),V=async y=>{try{c.value=!0,(await x(y.data)).success&&d.add({title:"パスワードを更新しました",color:"success"}),p.push({name:N.MYPAGE})}catch(a){b(a)}finally{c.value=!1}};return(y,a)=>{const v=B,m=q,w=L,f=D,$=G,S=J;return g(),M("div",O,[e(v,null,{default:t(()=>a[6]||(a[6]=[A("パスワード変更",-1)])),_:1,__:[6]}),_("div",W,[e(S,{schema:s(K),state:s(r),onSubmit:V,onError:s(u),class:"flex w-full flex-col space-y-4"},{default:t(()=>[e(f,{name:"currentPassword",label:"現在のパスワード",required:""},{default:t(()=>[e(w,{class:"w-full",autocomplete:"off",modelValue:s(r).currentPassword,"onUpdate:modelValue":a[1]||(a[1]=n=>s(r).currentPassword=n),type:s(o).currentPassword?"text":"password",maxLength:20},{trailing:t(()=>[e(m,{color:"neutral",variant:"link",size:"sm",icon:s(o).currentPassword?"i-lucide-eye-off":"i-lucide-eye","aria-label":s(o).currentPassword?"Hide password":"Show password","aria-pressed":s(o).currentPassword?"Hide password":"Show password","aria-controls":"currentPassword",onClick:a[0]||(a[0]=n=>s(o).currentPassword=!s(o).currentPassword)},null,8,["icon","aria-label","aria-pressed"])]),_:1},8,["modelValue","type"])]),_:1}),e(f,{name:"password",label:"パスワード",required:""},{default:t(()=>[e(w,{class:"w-full",autocomplete:"off",modelValue:s(r).password,"onUpdate:modelValue":a[3]||(a[3]=n=>s(r).password=n),type:s(o).password?"text":"password",maxLength:20},{trailing:t(()=>[e(m,{color:"neutral",variant:"link",size:"sm",icon:s(o).password?"i-lucide-eye-off":"i-lucide-eye","aria-label":s(o).password?"Hide password":"Show password","aria-pressed":s(o).password?"Hide password":"Show password","aria-controls":"password",onClick:a[2]||(a[2]=n=>s(o).password=!s(o).password)},null,8,["icon","aria-label","aria-pressed"])]),_:1},8,["modelValue","type"]),a[7]||(a[7]=_("p",{class:"mt-1 text-sm text-gray-500"}," パスワードは、半角英字・数字を含む8文字以上で入力してください。 ",-1))]),_:1,__:[7]}),e(f,{name:"passwordConfirmation",label:"パスワード(確認)",required:""},{default:t(()=>[e(w,{class:"w-full",autocomplete:"off",modelValue:s(r).passwordConfirmation,"onUpdate:modelValue":a[5]||(a[5]=n=>s(r).passwordConfirmation=n),type:s(o).passwordConfirmation?"text":"password",maxLength:20},{trailing:t(()=>[e(m,{color:"neutral",variant:"link",size:"sm",icon:s(o).passwordConfirmation?"i-lucide-eye-off":"i-lucide-eye","aria-label":s(o).passwordConfirmation?"Hide password":"Show password","aria-pressed":s(o).passwordConfirmation?"Hide password":"Show password","aria-controls":"passwordConfirmation",onClick:a[4]||(a[4]=n=>s(o).passwordConfirmation=!s(o).passwordConfirmation)},null,8,["icon","aria-label","aria-pressed"])]),_:1},8,["modelValue","type"])]),_:1}),_("div",Y,[e($,{buttonStyle:"primary",type:"submit",label:"パスワード更新",disabled:s(h)},null,8,["disabled"])])]),_:1},8,["schema","state","onError"])])])}}}),rs=P({__name:"password",setup(i){const d=F(),{generateBreadcrumbPaths:p}=j();return(b,x)=>{const u=Q,r=Z;return g(),T(r,{breadcrumbPaths:s(p)({route:s(d)}),showGeneralSideBar:!1},{default:t(()=>[e(u)]),_:1},8,["breadcrumbPaths"])}}});
1export{rs 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.