PageSourceSearch

https://cotree.jp/_next/static/chunks/app/(auth)/login/page-585b83…?dpl=dpl_DLvMYfaKRoPE1zWeGR7BS6ASr7fU

js cotree.jp collected 2026-10-02 04:25:04 UTC 15,805 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b46eb302-ac0f-47d3-b90f-f7a5eef0fe11",e._sentryDebugIdIdentifier="sentry-dbid-b46eb302-ac0f-47d3-b90f-f7a5eef0fe11")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72],{3813:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v200h-80v-40H200v400h280v80H200Zm0-560h560v-80H200v80Zm0 0v-80 80ZM560-80v-123l221-220q9-9 20-13t22-4q12 0 23 4.5t20 13.5l37 37q8 9 12.5 20t4.5 22q0 11-4 22.5T903-300L683-80H560Zm300-263-37-37 37 37ZM620-140h38l121-122-18-19-19-18-122 121v38Zm141-141-19-18 37 37-18-19Z"})})},9230:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var l=s(95155),r=s(12115),i=s(93935),h=s(27336);function n(e){let{errors:t,helpText:s,label:n="パスワード",placeholder:a,register:o}=e,[d,c]=(0,r.useState)(!1);return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(h.A,{errors:t,helpText:s,label:n,placeholder:a,register:o,type:d?"text":"password"}),(0,l.jsx)("button",{"aria-label":d?"パスワードを非表示":"パスワードを表示",className:"absolute right-3 ".concat(s?"top-[74px]":"top-[46px]"," text-gray-500"),onClick:()=>c(!d),tabIndex:0,type:"button",children:d?(0,l.jsx)(i.QM,{className:"h-5 w-5"}):(0,l.jsx)(i.bv,{className:"h-5 w-5"})})]})}},9887:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"m480-120-58-52q-101-91-167-157T150-447.5Q111-500 95.5-544T80-634q0-94 63-157t157-63q52 0 99 22t81 62q34-40 81-62t99-22q94 0 157 63t63 157q0 46-15.5 90T810-447.5Q771-395 705-329T538-172l-58 52Zm0-108q96-86 158-147.5t98-107q36-45.5 50-81t14-70.5q0-60-40-100t-100-40q-47 0-87 26.5T518-680h-76q-15-41-55-67.5T300-774q-60 0-100 40t-40 100q0 35 14 70.5t50 81q36 45.5 98 107T480-228Zm0-273Z"})})},22189:(e,t,s)=>{Promise.resolve().then(s.bind(s,98287))},25216:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"m612-292 56-56-148-148v-184h-80v216l172 172ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 320q133 0 226.5-93.5T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160Z"})})},26877:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M220-240v-480h80v480h-80Zm520 0L380-480l360-240v480Zm-80-240Zm0 90v-180l-136 90 136 90Z"})})},27336:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=e=>{let{disabled:t,errors:s,helpText:r,label:i,maxlength:h=255,onChange:n,optional:a,placeholder:o,register:d,required:c,size:m="full",type:v,...x}=e,w="".concat(d.name,"-input");return(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{htmlFor:w,className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"text-sm font-bold leading-6 tracking-wide md:text-base",children:i}),c?(0,l.jsx)("span",{className:"text-xs leading-6 text-[#F95C58]",children:"必須"}):null,a?(0,l.jsx)("span",{className:"rounded bg-[#ACACAC] px-2 text-xs leading-6 text-white",children:"任意"}):null]}),(0,l.jsx)("p",{className:"mt-2 text-sm text-gray-500",children:r}),(0,l.jsx)("div",{className:"mt-2",children:(0,l.jsx)("input",{...d,id:w,className:" ".concat(t?"bg-gray-200 text-gray-600":"bg-white"," ").concat("short"==m?"w-[248px]":""," ").concat("tiny"==m?"w-[100px]":""," ").concat("full"==m?"w-full":""," tap-highlight rounded-lg border border-gray-400 p-2.5 px-4 focus:outline-2 focus:outline-cot-green md:p-3 ")+"".concat(s?" border-none outline outline-2 outline-[#F95C58]":""),disabled:t,maxLength:h,onChange:n||d.onChange,placeholder:o,type:v,...x})}),s&&(0,l.jsx)("p",{className:"mt-1 text-sm text-[#F95C58]",children:s.message})]})}},27721:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M660-240v-480h80v480h-80Zm-440 0v-480l360 240-360 240Zm80-240Zm0 90 136-90-136-90v180Z"})})},28799:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"})})},31822:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})})},40388:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z"})})},44444:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",height:"24px",viewBox:"0 -960 960 960",width:"24px",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"})})},45491:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=e=>{let{className:t}=e;return(0,l.jsx)("svg",{className:t,fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M440-280h80v-240h-80v240Zm40-320q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm0 520q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q
1-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"})})}},57314:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"m280-400 200-200 200 200H280Z"})})},60949:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M240-400h320v-80H240v80Zm0-120h480v-80H240v80Zm0-120h480v-80H240v80ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z"})})},67909:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"})})},68399:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})})},69007:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"})})},73899:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z"})})},77761:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"})})},79316:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"})})},85271:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"})})},93935:(e,t,s)=>{"use strict";s.d(t,{bm:()=>l.A,pk:()=>i,bv:()=>h,QM:()=>n}),s(57314),s(60949),s(67909),s(69007),s(31822);var l=s(77761);s(73899),s(40388),s(3813),s(9887),s(94730),s(45491),s(28799),s(79316),s(85271),s(44444);var r=s(95155);let i=e=>{let{className:t}=e;return(0,r.jsx)("svg",{className:t,fill:"currentColor",height:"18px",viewBox:"0 -960 960 960",width:"18px",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M480-120q-33 0-56.5-23.5T400-200q0-33 23.5-56.5T480-280q33 0 56.5 23.5T560-200q0 33-23.5 56.5T480-120Zm-80-240v-480h160v480H400Z"})})};s(25216),s(68399),s(27721),s(26877),s(12115);let h=e=>{let{className:t}=e;return(0,r.jsx)("svg",{className:t,fill:"currentColor",height:"24",viewBox:"0 -960 960 960",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z"})})},n=e=>{let{className:t}=e;return(0,r.jsx)("svg",{className:t,fill:"currentColor",height:"24",viewBox:"0 -960 960 960",width:"24",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"m644-428-58-58q9-47-27-83t-83-27l-58-58q17-8 34.5-12t37.5-4q75 0 127.5 52.5T660-500q0 20-4 37.5T644-428Zm128 126-58-56q38-29 67.5-63.5T832-500q-50-101-143.5-160.5T480-720q-29 0-57 4t-55 12l-62-62q41-17 84-25.5t90-8.5q151 0 269 83.5T920-500q-23 59-60.5 109.5T772-302Zm20 246L624-222q-35 11-70.5 16.5T480-200q-151 0-269-83.5T40-500q21-53 53-98.5t73-81.5L56-792l56-56 736 736-56 56ZM222-624q-29 26-53 57t-41 67q50 101 143.5 160.5T480-280q20 0 39-2.5t39-5.5l-36-38q-11 3-21 4.5t-21 1.5q-75 0-127.5-52.5T300-500q0-11 1.5-21t4.5-21l-84-82Zm319 93Zm-151 75Z"})})}},94730:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var l=s(95155);let r=()=>(0,l.jsx)("svg",{fill:"currentColor",style:{height:"1em",width:"1em"},viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M240-200h120v
1-240h240v240h120v-360L480-740 240-560v360Zm-80 80v-480l320-240 320 240v480H520v-240h-80v240H160Zm320-350Z"})})},95868:(e,t,s)=>{"use strict";function l(e,t){return fetch("/api".concat(e),t)}function r(e,t){return l(e,{...t,method:"GET"})}function i(e,t){return l(e,{...t,method:"POST"})}s.d(t,{HE:()=>d,Jt:()=>r,Rj:()=>o,SP:()=>n,Yi:()=>h,Yv:()=>a,bE:()=>i});let h=r,n=i,a=function(e,t){return l(e,{...t,method:"PATCH"})},o=function(e,t){return l(e,{...t,method:"PUT"})},d=function(e,t){return l(e,{...t,method:"DELETE"})}},98287:(e,t,s)=>{"use strict";s.d(t,{default:()=>m});var l=s(95155),r=s(66942),i=s(12115),h=s(22544),n=s(59705),a=s(9230),o=s(27336),d=s(95868);let c=n.Ikc({email:n.YjP().email("メールアドレスを正しく入力してください"),password:n.YjP().min(1,"パスワードを入力してください")}),m=e=>{let{redirectUrl:t}=e,[s,n]=(0,i.useState)(""),[m,v]=(0,i.useState)(!1),x=t?"/signup?redirectUrl=".concat(encodeURIComponent(t)):"/signup",{formState:{errors:w},handleSubmit:g,register:u}=(0,h.mN)({defaultValues:{email:"",password:""},resolver:(0,r.u)(c)});async function p(e){v(!0);let s={email:e.email,password:e.password};try{let e=await (0,d.SP)("/auth/login",{body:JSON.stringify(s)});if(401===e.status)throw Error("メールアドレスまたはパスワードが正しくありません。");if(423===e.status)throw Error("連続してログインに失敗したため、しばらくの間ログインができません。");if(e.ok){let t=await e.json();try{t.userId&&localStorage.setItem("userId",t.userId)}catch(e){console.warn("localStorage is not available:",e)}}if(t){location.href=t;return}location.href="/users"}catch(e){var l;v(!1),n(null!=(l=null==e?void 0:e.message)?l:"ログインに失敗しました。")}}return(0,l.jsxs)(l.Fragment,{children:[s&&(0,l.jsx)("div",{className:"mt-4 text-sm text-[#F95C58]",children:s}),(0,l.jsx)("h1",{className:"text-center text-2xl font-bold md:text-3xl",children:"ログイン"}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("form",{className:"mt-6 md:mt-8",onSubmit:g(p),children:[(0,l.jsx)("div",{className:"rounded-lg border border-[#cccccc] bg-white px-4 py-10 md:p-10",children:(0,l.jsxs)("div",{className:"mx-auto max-w-[490px]",children:[(0,l.jsxs)("div",{className:"grid gap-6",children:[(0,l.jsx)(o.A,{errors:w.email,label:"メールアドレス",register:u("email"),type:"text"}),(0,l.jsx)(a.A,{errors:w.password,label:"パスワード",register:u("password")})]}),(0,l.jsx)("p",{className:"mt-3 text-sm text-gray-700",children:(0,l.jsx)("a",{className:"link-text",href:"/password-reset",children:"パスワードを忘れた方はこちら"})})]})}),(0,l.jsx)("div",{className:"mt-10 text-center",children:(0,l.jsxs)("button",{className:"".concat("button-orange"," inline-flex w-full max-w-[250px] items-center justify-center gap-2 rounded-lg px-4 py-4 font-bold text-white disabled:cursor-not-allowed disabled:bg-[#B0B0B0]"),disabled:m,type:"submit",children:[m&&(0,l.jsx)("span",{className:"h-4 w-4 animate-spin rounded-[50%] border-2 border-white border-l-transparent"}),"ログイン",m?"中...":""]})})]}),(0,l.jsx)("p",{className:"mt-4 text-center text-sm",children:(0,l.jsx)("a",{className:"link-text",href:x,children:"新規会員登録はこちら"})})]})]})}}},e=>{e.O(0,[2544,4582,9793,8441,5857,7358],()=>e(e.s=22189)),_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.