1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81994],{25175:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>w});var n=s(96300),i=s(26809),l=s(18047),r=s(81909),a=s(92960),c=s(43961),o=s(40777),h=s(6587),x=s(39193),d=s(68367),u=s(49817),m=s(61964),g=s(45634),j=s.n(g),p=s(89997),b=s.n(p),k=s(45374),_=s(43545),f=s(5654),z=s(4288),S=s(59070);let C=e=>{let{authenticatedState:t}=e,s=(0,m.b)(),[l,r]=(0,a.useState)(""),[g,p]=(0,a.useState)(""),[C,v]=(0,a.useState)([]),[T,w]=(0,a.useState)(!1),[y]=(0,u.n)(f.$,{client:k.G.apollo});(0,a.useEffect)(()=>{var e;let s=t.user,n="ãªãªã_".concat(s.id.slice(0,4));r(s.hasCustomNickname?s.nickname:n),p(null!=(e=s.bio)?e:"")},[t.user]);let E=(0,a.useCallback)(()=>{let e=[];return 0===l.trim().length&&e.push("ããã¯ãã¼ã ãå
¥åãã¦ãã ãã"),l.length>S.P&&e.push("ããã¯ãã¼ã ã¯".concat(S.P,"æå以å
ã§å
¥åãã¦ãã ãã")),g.length>S.z&&e.push("ãããã£ã¼ã«ã¯".concat(S.z,"æå以å
ã§å
¥åãã¦ãã ãã")),e},[l,g]),N=(0,a.useCallback)(async()=>{let e=E();if(v(e),!(e.length>0)){w(!0);try{await y({variables:{input:{nickname:l.trim(),bio:g.trim()||null}}}),s.push("/byoki_community/users/".concat(t.user.id))}catch(t){v(["æ´æ°ã«å¤±æãã¾ãããããä¸åº¦ã試ããã ããã"]),w(!1);let e=t instanceof Error?t:Error(String(t));z.C.errorLog(e)}}},[l,g,E,t,y,s]);return(0,n.jsx)("div",{className:j().commonLayoutContentWidth,children:(0,n.jsx)("div",{className:b().formInner,children:(0,n.jsx)(c.Box,{px:"md",width:"100%",children:(0,n.jsxs)(i.Stack,{spacing:"lg",children:[(0,n.jsx)(o.Text,{as:"h1",size:"lg",bold:!0,children:"ãããã£ã¼ã«ç·¨é"}),(0,n.jsxs)(i.Stack,{spacing:"sm",children:[(0,n.jsx)(o.Text,{as:"label",size:"sm",bold:!0,children:"ããã¯ãã¼ã ï¼è¡¨ç¤ºåï¼"}),(0,n.jsx)(_.A,{type:"text",value:l,onChange:e=>r(e.target.value),maxLength:S.P,placeholder:"ããã¯ãã¼ã ãå
¥å"}),(0,n.jsxs)(o.Text,{size:"xs",textAlign:"right",color:"sub",children:[l.length," / ",S.P," æå"]}),(0,n.jsx)(o.Text,{size:"xs",color:"sub",children:"ããã¯ãã¼ã ï¼è¡¨ç¤ºåï¼ã¯ä»ã®ã¦ã¼ã¶ã¼ã¨éè¤OKãªæååã§ãå½ãµã¤ãå
ã§ã®è¡¨ç¤ºã«ä½¿ããã¾ãã"}),(0,n.jsx)(o.Text,{size:"xs",color:"red",children:"æ¬åãªã©å人ãç¹å®ããããããªããã¯ãã¼ã ï¼è¡¨ç¤ºåï¼ã¯ä½¿ç¨ããªãããã«ã注æãã ããã"})]}),(0,n.jsxs)(i.Stack,{spacing:"sm",children:[(0,n.jsx)(o.Text,{as:"label",size:"sm",bold:!0,children:"ãããã£ã¼ã«"}),(0,n.jsx)(h.TextArea,{value:g,onChange:e=>p(e.target.value),placeholder:"ãããã£ã¼ã«ãå
¥åï¼ä»»æï¼",rows:6,maxLength:S.z}),(0,n.jsxs)(o.Text,{size:"xs",textAlign:"right",color:"sub",children:[g.length," / ",S.z," æå"]})]}),C.length>0&&(0,n.jsx)(i.Stack,{spacing:"xs",children:C.map((e,t)=>(0,n.jsx)(o.Text,{size:"sm",color:"red",children:e},t))}),(0,n.jsx)(x.Flex,{justifyContent:"center",children:(0,n.jsx)(c.Box,{maxWidth:"358px",width:"100%",children:(0,n.jsx)(d.Button,{variant:"primary",onClick:N,disabled:T,block:!0,children:T?"æ´æ°ä¸...":"æ´æ°ãã"})})})]})})})})};var v=s(48683),T=s(30425);let w=()=>{let e=(0,T.u)();return"initializing"===e.status?null:!1===e.isSignedIn?(0,n.jsx)(v.R,{isStatic:!0}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.a,{title:"ãããã£ã¼ã«ç·¨é"}),(0,n.jsxs)(i.Stack,{alignItems:"center",spacing:"md",children:[(0,n.jsx)(C,{authenticatedState:e}),(0,n.jsx)(r.z,{})]})]})}},29068:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/byoki_community/settings/profile",function(){return s(25175)}])},89997:e=>{e.exports={formInner:"ProfileEditForm_formInner__hNCY4"}}},e=>{e.O(0,[81909,33217,90636,46593,38792],()=>e(e.s=29068)),_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.