PageSourceSearch

https://jp.toto.com/_next/static/chunks/pages/mypage/remodelclub/mail/password-fcde781ccab29028.js

js toto.com collected 2026-09-24 08:48:50 UTC 11,869 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[566],{7930:(e,a,s)=>{"use strict";s.d(a,{Ct:()=>l,qQ:()=>r});var n=s(26237),t=s.n(n);s(48041);var o=s(6107);let i=t()("https://api.jp.toto.com","/oneTimeToken"),r=async e=>{let a=[];a.push("".concat(encodeURIComponent("token"),"=").concat(encodeURIComponent(e.token))),a.push("".concat(encodeURIComponent("disabled"),"=").concat(encodeURIComponent(e.disabled)));let s=await fetch(i,{method:"PUT",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a.join("&")});return await s.json()},l=async e=>{let a=await (0,o.H4)(fetch("".concat(i,"/remodelPasswordReminder"),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"".concat(encodeURIComponent("mail"),"=").concat(encodeURIComponent(e.mail))}));return a?await a.json():null}},18318:(e,a,s)=>{"use strict";s.d(a,{_:()=>d});var n=s(48041),t=s.n(n),o=s(26237),i=s.n(o),r=s(6107);let l=i()("https://api.jp.toto.com","/validate"),d=async e=>{let a=t().stringify({...e}),s=await (0,r.H4)(fetch("".concat(l,"/remodel/mailaddress?").concat(a)));return s?await s.json():null}},21875:(e,a,s)=>{"use strict";s.d(a,{OS:()=>t,P:()=>o,e:()=>i});var n=s(14232),t=function(e){return e.MACOS="macos",e.IOS="ios",e.WiNDOWS="windows",e.ANDROID="android",e}({}),o=function(e){return e.CHROME="chrome",e.SAFARI="safari",e.EDGE="edge",e}({});let i=()=>{let[e,a]=(0,n.useState)({os:null,browser:null});return(0,n.useEffect)(()=>{let e=window.navigator.userAgent.toLowerCase(),s=(e=>-1!==e.indexOf("windows nt")?"windows":-1!==e.indexOf("android")?"android":-1!==e.indexOf("iphone")||-1!==e.indexOf("ipad")?"ios":-1!==e.indexOf("mac os x")?"macos":null)(e);a({os:s,browser:(e=>-1!==e.indexOf("edge")||-1!==e.indexOf("edga")||-1!==e.indexOf("edgios")?"edge":-1!==e.indexOf("chrome")||-1!==e.indexOf("crios")?"chrome":-1!==e.indexOf("safari")?"safari":null)(e)})},[]),e}},35935:e=>{e.exports={"base-component":"complete_base-component__B3p6k","section-mainvisual":"complete_section-mainvisual__Fr27Q","section-description":"complete_section-description__Lv17a",text:"complete_text__VPhpt",button:"complete_button__YTHw5",fadeIn:"complete_fadeIn__V08ue",slideIn:"complete_slideIn__vSEmx",scaleIn:"complete_scaleIn__L7_zI"}},36477:e=>{e.exports={"main-visual-lv2-no-image":"MainVisualLv2NoImage_main-visual-lv2-no-image__rrwXO",title:"MainVisualLv2NoImage_title__dtaNC",navigation:"MainVisualLv2NoImage_navigation__XV5sE",fadeIn:"MainVisualLv2NoImage_fadeIn__5P2ED",slideIn:"MainVisualLv2NoImage_slideIn__2KJHw",scaleIn:"MainVisualLv2NoImage_scaleIn__E2iBW"}},55019:(e,a,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/mypage/remodelclub/mail/password",function(){return s(80147)}])},56692:(e,a,s)=>{"use strict";s.d(a,{b:()=>i});var n=s(89099),t=s(14232),o=s(21875);let i=function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"このページから移動しますか?\nこのページを離れると加えられた編集は全て破棄されます。",s=(0,n.useRouter)(),{os:i,browser:r}=(0,o.e)(),[l,d]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if(i===o.OS.IOS&&r===o.P.SAFARI||l)return;let n=n=>{if(s.asPath!==n&&e&&!confirm(a))throw s.push(s.asPath),"Abort route change confirmation"},t=s=>{if(e)return s.preventDefault(),s.returnValue=a,a};return window.addEventListener("beforeunload",t),s.events.on("beforeHistoryChange",n),()=>{window.removeEventListener("beforeunload",t),s.events.off("beforeHistoryChange",n)}},[e,l]),{unLeaveConfirm:()=>{d(!0)}}}},56781:(e,a,s)=>{"use strict";s.d(a,{A:()=>l});var n=s(37876);s(14232);var t=s(22054),o=s(36477),i=s.n(o),r=s(12850);let l=e=>{let{title:a,languageList:s,articleType:o,articleID:l,versionGroupId:d,rcFavoriteData:c,noFavorite:m,noNavigation:u,noPrint:p,noShare:_,usageClickHandler:f}=e,h=(0,t.h)();return(0,n.jsxs)("div",{className:i()["main-visual-lv2-no-image"],children:[(0,n.jsx)("h1",{className:i().title,children:a}),!u&&(0,n.jsx)("div",{className:i().navigation,children:(0,n.jsx)(r.A,{languageList:s,noPrint:h||p,articleType:o,articleID:l,versionGroupId:d,rcFavoriteData:c,noFavorite:m,noShare:_,usageClickHandler:f})})]})}},58759:(e,a,s)=>{"use strict";s.r(a),s.d(a,{__N_SSP:()=>d,default:()=>c});var n=s(37876);s(14232);var t=s(89099),o=s(35935),i=s.n(o),r=s(56781),l=s(22061),d=!0;let c=()=>{let e=(0,t.useRouter)();return(0,n.jsxs)("div",{className:i()["base-component"],children:[(0,n.jsx)("div",{className:i()["section-mainvisual"],children:(0,n.jsx)(r.A,{title:"パスワード再設定",noNavigation:!0})}),(0,n.jsxs)("div",{className:i()["section-description"],children:[(0,n.jsx)("div",{className:i().text,children:"新しいパスワードの設定が完了しました。"}),(0,n.jsx)("div",{className:i().button,children:(0,n.jsx)(l.A,{full:!0,onClick:()=>e.push("/mypage/transfer/"),children:"ログインページへ"})})]})]})}},61161:e=>{e.exports={"base-component":"password_base-component__oQPh8","section-mainvisual":"password_section-mainvisual__tr4wx","section-form":"password_section-form__IX8X1",form:"password_form__QL5WF",input:"password_input__8CyXX",button:"password_button__EXceF",fadeIn:"password_fadeIn__os5dx",slideIn:"password_slideIn__Z7ge_",scaleIn:"password_scaleIn__9t8ql"}},80147:(e,a,s)=>{"use strict";s.r(a),s.d(a,{__N_SSP:()=>b,default:()=>N});var n=s(37876),t=s(14232),o=s(89099),i=s(61161),r=s.n(i),l=s(56781),d=s(88992),c=s(48288),m=s(22061),u=s(7930),p=s(18318),_=s(80747),f=s(58759),h=s(56692),w=s(1095),v=s(96168);
1let g="8〜32文字で入力してください。",x="メールアドレスを入力してください。",j={mailAddress:{formLabel:"ご登録のメールアドレス",required:!0,placeholder:"[email protected](半角英数字)"},password:{formLabel:"新しいパスワード",required:!0,placeholder:"8~15文字の半角英数字の組み合わせ"},passwordConfirm:{formLabel:"新しいパスワード(確認)",required:!0,placeholder:"8~15文字の半角英数字の組み合わせ"}};var b=!0;let N=e=>{let{token:a,disabled:s}=e,i=(0,o.useRouter)(),{register:b,handleSubmit:N,formState:{errors:I,isValid:A,isDirty:y},getValues:C}=(0,d.mN)({mode:"onBlur"}),{unLeaveConfirm:S}=(0,h.b)(y),[O,T]=t.useState(""),[k,L]=t.useState(!1),[D,P]=t.useState(s),E=async e=>{let s=await (0,p._)({mailAddress:e.mailAddress});if(!s)return;let{mailAddressExists:n}=s;if(n){if(!await (0,_.ov)({mailAddress:e.mailAddress,password:e.password}))return;await (0,u.qQ)({token:a,disabled:!0}),S(),i.replace("/mypage/remodelclub/mail/password/",void 0,{shallow:!0}),L(!0)}else T("このメールアドレスは登録されていません。")};return s?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.A,{open:D,description:"メールの有効期限が切れています。再度メールを送信してお試しください。",onClose:()=>{P(!1),S(),i.replace("/mypage/remodelclub/mail/")}}),(0,n.jsx)(w.A,{})]}):(0,n.jsx)(n.Fragment,{children:k?(0,n.jsx)(f.default,{}):(0,n.jsxs)("div",{className:r()["base-component"],children:[(0,n.jsx)("div",{className:r()["section-mainvisual"],children:(0,n.jsx)(l.A,{title:"パスワード再設定",noNavigation:!0})}),(0,n.jsx)("div",{className:r()["section-form"],children:(0,n.jsxs)("form",{className:r().form,onSubmit:N(E),children:[(0,n.jsx)("div",{className:r().input,children:(0,n.jsx)(c.G6,{formLabel:j.mailAddress.formLabel,required:!0,type:"text",placeholder:j.mailAddress.placeholder,errorMessage:I.mailAddress?I.mailAddress.message:O,invalid:!!I.mailAddress,...b("mailAddress",{required:x,pattern:{value:/\S+@\S+\.\S+/,message:x}}),onChange:async()=>{T("")}})}),(0,n.jsx)("div",{className:r().input,children:(0,n.jsx)(c.Dk,{formLabel:j.password.formLabel,required:j.password.required,type:"password",placeholder:j.password.placeholder,errorMessage:I.password?I.password.message:"",invalid:!!I.password,...b("password",{minLength:{value:8,message:g},maxLength:{value:32,message:g},validate:{hasNumber:e=>/[0-9]/.test(e)||"数字を一文字以上含んで入力してください。",hasAlphabet:e=>/[a-zA-Z]/.test(e)||"英字を一文字以上含んで入力してください。"}})})}),(0,n.jsx)("div",{className:r().input,children:(0,n.jsx)(c.Dk,{formLabel:j.passwordConfirm.formLabel,required:j.passwordConfirm.required,type:"password",placeholder:j.passwordConfirm.placeholder,errorMessage:I.passwordConfirm?I.passwordConfirm.message:"",invalid:!!I.passwordConfirm,...b("passwordConfirm",{validate:e=>e===C("password")||"パスワードが一致しません"})})}),(0,n.jsx)("div",{className:r().button,children:(0,n.jsx)(m.A,{type:"submit",full:!0,fill:!0,disabled:!A,children:"パスワードを再設定する"})})]})})]})})}},80747:(e,a,s)=>{"use strict";s.d(a,{At:()=>u,Cr:()=>m,QX:()=>_,Yy:()=>f,nX:()=>p,ov:()=>c});var n=s(33191),t=s.n(n),o=s(26237),i=s.n(o),r=s(96558),l=s(6107);let d=i()("https://api.jp.toto.com","/auth/remodel"),c=async e=>{let a=await await (0,l.H4)((0,r.sw)(i()(d,"/account/password/reset"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}));return a?await a.json():null},m=async e=>{let a=await (0,l.H4)(fetch("".concat(d,"/login"),{method:"POST",headers:{"Content-Type":"application/json","Id-Token":t().get("idToken")||""},body:JSON.stringify(e)}));return a?await a.json():null},u=async e=>{let a=await (0,l.H4)(fetch("".concat(d,"/account/create"),{method:"POST",headers:{"Content-Type":"application/json","Id-Token":t().get("idToken")||""},body:JSON.stringify(e)}));return a?await a.json():null},p=async function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=a?l.V1:l.H4,n=await s(fetch("".concat(d,"/account/update"),{method:"POST",headers:{"Content-Type":"application/json","Id-Token":t().get("idToken")||""},body:JSON.stringify(e)}));return n?await n.json():null},_=async()=>{let e=await (0,l.$8)(fetch("".concat(d,"/account"),{method:"GET",headers:{"Content-Type":"application/json","Id-Token":t().get("idToken")||""}}));return await e.json()},f=async e=>{let a=await (0,l.H4)(fetch("".concat(d,"/inquiries/create"),{method:"POST",headers:{"Content-Type":"application/json","Id-Token":t().get("idToken")||""},body:JSON.stringify(e)}));return a?await a.json():null}},90310:e=>{e.exports={"dialog-wrap":"AlertDialog_dialog-wrap__PPCBK","dialog-contents":"AlertDialog_dialog-contents__0erHB",text:"AlertDialog_text__WeAm5",title:"AlertDialog_title__OqErx",description:"AlertDialog_description__m10Db",button:"AlertDialog_button__8kL6u","-confirm":"AlertDialog_-confirm__jh4Ou",close:"AlertDialog_close__TSKPM",cancel:"AlertDialog_cancel__vag6T",fadeIn:"AlertDialog_fadeIn__KHFdA",slideIn:"AlertDialog_slideIn___rmNH",scaleIn:"AlertDialog_scaleIn__j_amN"}},96168:(e,a,s)=>{"use strict";s.d(a,{A:()=>m});var n=s(37876),t=s(15039),o=s.n(t),i=s(14232),r=s(22061),l=s(39771),d=s(90310),c=s.n(d);let m=e=>{var a;let{open:s,title:t,description:d,buttonText:m="閉じる",onClose:u,isConfirm:p=!1}=e,_=e.isConfirm?null!=(a=e.cancelButtonText)?a:"キャンセル":void 0,f=e.isConfirm?e.onCancel:void 0,h=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=h.current;if(e)if(s){if(e.hasAttribute("open"))return;e.showModal()}else{if(!e.hasAttribute("open"))return;e.close()}},[s]),(0,l.y)(s,h,!1),(0,n.jsx)("dialog",{className:c()["dialog-wrap"],role:"alertdialog","aria-label":t||d,ref:h,onCancel:e=>{e.preventDefault(),p&&f?f():u()},children:(0,n.jsxs)("div",{className:c()["dialog-contents"],children:[(0,n.jsxs)("div",{className:c().text,children:[t&&(0,n.jsx)("h2",{className:c().title,children:t}),d&&(0,n.jsx)("p",{className:c().description,children:d})]}),(0,n.jsxs)("div",{className:o()(c().button,{[c()["-confirm"]]:p}),children:[p&&(0,n.jsx)(r.A,{className:c().cancel,medium:!0,onClick:f,children:_}),(0,n.jsx)(r.A,{className:c().close,fill:!0,medium:!0,onClick:u,children:m})]})]})})}}},e=>{e.O(0,[8992,8288,636,6593,8792],()=>e(e.s=55019)),_N_E=e.O()}]);

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.