PageSourceSearch

https://gojo-good.com/_next/static/chunks/pages/settings/profile-5a232e87de7a2f10.js

js gojo-good.com collected 2026-10-04 12:15:42 UTC 30,006 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2014],{52584:function(e,t,n){"use strict";var r,a=n(67294);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}t.Z=function(e){return a.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),r||(r=a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.707 5.293a1 1 0 0 1 0 1.414L9.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0",clipRule:"evenodd"})))}},58271:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/profile",function(){return n(55)}])},79310:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(85893),a=n(14440);let o=(0,n(13264).Z)(a.Z)(e=>{let{theme:t,customPosition:n="fixed"}=e;return{position:n,bottom:0,left:0,right:0,width:"100%",background:"var(--Color-Primitive-WhiteAlpha-900, 0.90)",padding:t.spacing(4,6,6),display:"flex",justifyContent:"center",alignItems:"center",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",boxShadow:"0px 8px 24px -0.68px rgba(0, 0, 0, 0.05), 0px 12px 32px -5px rgba(0, 0, 0, 0.05)",backdropFilter:"blur(80px)",marginLeft:"auto",marginRight:"auto","&.inside-filter":{borderTop:"1px solid var(--Color-Functional-Border-Neutral-Low)",boxShadow:"0px 12px 32px -5px rgba(0, 0, 0, 0.05), 0px 8px 24px -0.68px rgba(0, 0, 0, 0.05);",backdropFilter:"blur(40px)"}}});var i=e=>{let{children:t,isInsideFilter:n,position:a,...i}=e;return(0,r.jsx)(o,{sx:{maxWidth:424},className:n?"inside-filter":"",customPosition:a,...i,children:t})}},1264:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(85893),a=n(67294),o=n(39626),i=n(35465),l=n(94246),s=n(91606),c=n(14440),d=n(33367),u=n(89262);let p=(0,u.ZP)(s.Z)({position:"relative","& .MuiDrawer-paper":{borderTopLeftRadius:"10px",borderTopRightRadius:"10px",display:"flex",flexDirection:"column",marginLeft:"auto",marginRight:"auto"}}),g=(0,u.ZP)(c.Z)({display:"flex",flexDirection:"column",height:"100%",borderTopLeftRadius:"10px",borderTopRightRadius:"10px",background:"var(--Color-Functional-Background-Primary)"}),x=(0,u.ZP)(c.Z)({flex:1,width:"100%",overflowY:"auto","&::-webkit-scrollbar":{width:"0 !important",display:"none !important"},scrollbarWidth:"none",position:"relative"}),h=(0,u.ZP)(i.Z)({borderBottom:"1px solid var(--Color-Functional-Border-Neutral-Low)"}),m=(0,u.ZP)(c.Z)({width:"36px",height:"5px",borderRadius:"2.5px",backgroundColor:"#3C3C434D",marginTop:"3px",marginBottom:"3px","&.no-header":{position:"absolute",left:"calc(50% - 18px)",zIndex:2,backgroundColor:"#FFFFFF99"}}),f=(0,u.ZP)(i.Z)({position:"absolute",left:12}),v=(0,u.ZP)(d.Z)(e=>{let{theme:t}=e;return{position:"absolute",right:12,padding:2,borderRadius:"var(--Border-Radius-Round)","&.no-header":{top:12,zIndex:2,padding:t.spacing(2),backgroundColor:"var(--Color-Functional-Background-Primary)",color:"var(--Color-Functional-Icon-Primary)"}}});var b=e=>{let{title:t,onClose:n,leftControl:a}=e;return(0,r.jsxs)(h,{className:"full-width",alignItems:"center",children:[(0,r.jsx)(m,{}),(0,r.jsxs)(i.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",paddingY:1.5,paddingX:3,height:52,children:[a&&(0,r.jsx)(f,{children:a}),(0,r.jsx)(l.Z,{variant:"subtitle1",fontWeight:"bold",children:t}),(0,r.jsx)(v,{onClick:n,children:(0,r.jsx)(o.Z,{sx:{fontSize:24}})})]})]})},Z=e=>{let{title:t,open:n,onClose:i,leftControl:l,children:s,maxHeight:c="calc(100vh - 40px)",showHeader:d=!0,containerProps:u,modalProps:h,height:f,fitContentHeight:Z=!1}=e,j=(0,a.useRef)(null),w=()=>{i(),setTimeout(()=>{var e;document.activeElement&&(null===(e=j.current)||void 0===e?void 0:e.contains(document.activeElement))&&document.activeElement.blur()},10)},C={position:"relative",maxHeight:c,...!Z&&f?{height:f}:{}};return(0,r.jsx)(p,{ref:j,anchor:"bottom",open:n,onClose:w,onOpen:()=>{},disableBackdropTransition:!0,disableDiscovery:!0,ModalProps:{...h,onClose:(e,t)=>{"backdropClick"===t&&null!=h&&h.disableBackdropClick||w()}},PaperProps:{sx:{maxWidth:424}},children:(0,r.jsxs)(g,{sx:C,...u,children:[d?(0,r.jsx)(b,{title:t,leftControl:l,onClose:w}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m,{className:"no-header"}),(0,r.jsx)(v,{className:"no-header",onClick:w,children:(0,r.jsx)(o.Z,{sx:{fontSize:16}})})]}),(0,r.jsx)(x,{children:s})]})})}},54705:function(e,t,n){"use strict";n.d(t,{I:function(){return p}});var r=n(85893),a=n(67294),o=n(6201),i=n(92487),l=n(14440),s=n(35465),c=n(94246),d=n(68573),u=n(66817);let p=(0,a.forwardRef)((e,t)=>{let{label:n,required:a,validationError:p,...g}=e;return(0,r.jsxs)(l.Z,{className:"full-width",display:"inline-flex",flexDirection:"column",children:[n&&(0,r.jsxs)(s.Z,{direction:"row",alignItems:"center",mb:1,gap:1,children:[(0,r.jsx)(c.Z,{variant:"subtitle2",fontWeight:"bold",children:n}),a&&(0,r.jsx)(u.Z,{})]}),(0,r.jsx)(d.M,{ref:t,format:"yyyy/MM/dd",slots:{openPickerIcon:o.Z},slotProps:{openPickerIcon:{sx:{fontSize:20,color:"var(--Color-Functional-Icon-Neutral)"}},textField:{fullWidth:!0,error:!!p,placeholder:"----/--/--",helperText:(null==p?void 0:p.message)&&(0,r.jsxs)(l.Z,{display:"flex",alignItems:"center",fontWeight:"bold",children:[(0,r.jsx)(i.Z,{sx:{fontSize:16,mr:1.5}}),(0,r.jsx)(r.Fragment,{children:null==p?void 0:p.message})]})}},...g})]})});p.displayName="FormDatePicker"},6191:function(e,t,n){"use strict";n.d(t,{H:function(){return h}});var r=n(85893),a=n(67294),o=n(92487),i=n(14440),l=n(35465),s=n(94246),c=n(6799),d=n(26457),u=n(72984),p=n(3859),g=n(12739),x=n(66817);let h=(0,a.forwardRef)((e,t)=>{let{label:n,note:a,required:h,validationError:m,options:f,radioSize:v="small",...b}=e;return(0,r.jsxs)(i.Z,{className:"full-width",display:"inline-flex",flexDirection:"column",children:[n&&(0,r.jsxs)(l.Z,{direction:"row",alignItems:"center",mb:1,gap:1,children:[(0,r.jsx)(s.Z,{variant:"subtitle2",fontWeight:"bold",children:n}),h&&(0,r.jsx)(x.Z,{})]}),a&&(0,r.jsx)(s.Z,{lineHeight:1.5,pb:1,color:"text.secondary",children:a}),(0,r.jsxs)(c.Z,{error:!!m,component:"fieldset",children:[(0,r.jsx)(d.Z,{row:!0,ref:t,sx:{justifyContent:"space-between"},...b,children:f.map(e=>(0,r.jsx)(u.Z,{value:e.value,control:(0,r.jsx)(p.Z,{size:v}),label:(0,r.jsx)(s.Z,{fontSize:14,lineHeight:1.5,children:e.label}),sx:{ml:-2}},e.value))}),(null==m?void 0:m.message)&&(0,r.jsx)(g.Z,{component:"div",sx:{mx:0},children:(0,r.jsxs)(i.Z,{display:"flex",alignItems:"center",fontWeight:"bold",children:[(0,r.jsx)(o.Z,{sx:{fontSize:16,mr:1.5}}),(0,r.jsx)(r.Fragment,{children:String(null==m?void 0:m.message)})]})})]})]})});h.displayName="FormRadioGroup"},77053:function(e,t,n){"use strict";n.d(t,{X:function(){return p}});var r=n(85893),a=n(67294),o=n(92487),i=n(14440),l=n(35465),s=n(94246),c=n(14e3);let d=(0,n(89262).ZP)(c.Z,{shouldForwardProp:e=>"customDisabledStyle"!==e})(e=>{let{customDisabledStyle:t}=e;return{...t&&{"& .MuiOutlinedInput-root.Mui-disabled":{backgroundColor:"var(--Color-Functional-Backgroun
1d-Deprecated_Secondary)"},"& .MuiOutlinedInput-notchedOutline.Mui-disabled":{borderColor:"var(--Color-Functional-Border-Neutral-Middle)"},"& .MuiInputBase-input.Mui-disabled":{color:"var(--Color-Functional-Text-Neutral-Middle)",WebkitTextFillColor:"var(--Color-Functional-Text-Neutral-Middle)"},"& .MuiInputLabel-root.Mui-disabled":{color:"var(--Color-Functional-Background-Deprecated_Secondary)"}}}});var u=n(66817);let p=(0,a.forwardRef)((e,t)=>{var n;let{label:a,subLabel:c,note:p,required:g,validationError:x,endNote:h,customDisabledStyle:m,...f}=e;return(0,r.jsxs)(i.Z,{className:"full-width",display:"inline-flex",flexDirection:"column",children:[a&&(0,r.jsxs)(l.Z,{direction:"row",alignItems:"center",mb:1,gap:1,children:[(0,r.jsx)(s.Z,{variant:"subtitle2",fontWeight:"bold",children:a}),g&&(0,r.jsx)(u.Z,{})]}),c&&(0,r.jsx)(s.Z,{mb:1,variant:"body1",color:"var(--Color-Functional-Text-Neutral-Low)",children:c}),p&&(0,r.jsx)(i.Z,{mb:1,sx:{lineHeight:1.5},children:p}),(0,r.jsx)(d,{ref:t,error:!!x,helperText:(null==x?void 0:x.message)&&(0,r.jsxs)(i.Z,{component:"span",display:"flex",alignItems:"center",fontWeight:"bold",children:[(0,r.jsx)(o.Z,{sx:{fontSize:16,mr:1.5}}),(0,r.jsx)(r.Fragment,{children:"string"==typeof(null==x?void 0:x.message)?x.message:""})]}),...f,customDisabledStyle:m,inputProps:{inputMode:"number"===f.type?"numeric":void 0,...f.inputProps},InputProps:{sx:{"& input::-webkit-outer-spin-button":{display:"none"},"& input::-webkit-inner-spin-button":{display:"none"},"& input[type=number]":{MozAppearance:"textfield"},...null==f?void 0:null===(n=f.InputProps)||void 0===n?void 0:n.sx},...f.InputProps}}),h&&(0,r.jsx)(i.Z,{sx:{lineHeight:1.5},children:h})]})});p.displayName="FormTextField"},44823:function(e,t,n){"use strict";n.d(t,{FR:function(){return c},Nj:function(){return d},kI:function(){return s}});var r=n(41664),a=n.n(r),o=n(94246),i=n(9546),l=n(89262);let s=(0,l.ZP)(o.Z)(()=>({lineHeight:1.5})),c=(0,l.ZP)(a())(()=>({textDecoration:"none",color:"var(--Color-Functional-Text-Neutral-High)",height:24})),d=(0,l.ZP)(i.Z)(()=>({fontSize:24,color:"var(--Color-Functional-Icon-Primary)"}))},19475:function(e,t,n){"use strict";var r=n(85893),a=n(35465),o=n(52584),i=n(44823);t.Z=e=>{let{href:t,title:n}=e;return(0,r.jsxs)(a.Z,{direction:"row",alignItems:"center",ml:-3,children:[(0,r.jsx)(i.FR,{href:t,children:(0,r.jsx)(i.Nj,{children:(0,r.jsx)(o.Z,{})})}),(0,r.jsx)(i.kI,{variant:"h2",children:n})]})}},66817:function(e,t,n){"use strict";var r=n(85893),a=n(35465);t.Z=()=>(0,r.jsx)(a.Z,{sx:{height:16,justifyContent:"center",paddingX:1.5,border:"1px solid var(--Color-Functional-Border-Danger-High)",borderRadius:"var(--Border-Radius-Round)",color:"var(--Color-Functional-Text-Danger-Middle)",fontSize:10,lineHeight:1.25,wordBreak:"keep-all"},children:"必須"})},69974:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(85893),a=n(35465),o=n(27105);function i(){return(0,r.jsxs)(a.Z,{px:6,py:5,gap:5,alignItems:"center",children:[(0,r.jsxs)(a.Z,{gap:2,children:[(0,r.jsx)(o.Z,{variant:"text",sx:{fontSize:"1rem",width:120},animation:"wave"}),(0,r.jsx)(o.Z,{variant:"rounded",width:300,height:50,animation:"wave"})]}),(0,r.jsxs)(a.Z,{gap:2,children:[(0,r.jsx)(o.Z,{variant:"text",sx:{fontSize:"1rem",width:120},animation:"wave"}),(0,r.jsx)(o.Z,{variant:"rounded",width:300,height:50,animation:"wave"}),(0,r.jsx)(o.Z,{variant:"rounded",width:300,height:50,animation:"wave"})]})]})}},98350:function(e,t,n){"use strict";n.d(t,{Av:function(){return d},C3:function(){return f},CU:function(){return c},Cv:function(){return m},DG:function(){return p},MC:function(){return j},SS:function(){return v},U8:function(){return x},Ux:function(){return Z},VP:function(){return b},_D:function(){return h},_l:function(){return u},sh:function(){return g}});let r="\\-!\"#$%&'()*+,.:;<=>?@\\[\\]^_`{|}~",a="(?=.*[a-zA-Z])",o="(?=.*[0-9])",i="(?=.*[".concat(r,"])"),l="(?:".concat(a).concat(o,"|")+"".concat(a).concat(i,"|")+"".concat(o).concat(i,")"),s="[a-zA-Z0-9".concat(r,"]+"),c=/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/,d=/^\d{6}$/,u=/^[A-Za-z\d\W_]{8,32}$/,p=new RegExp("^".concat(s,"$")),g=new RegExp("^".concat(l).concat(s,"$")),x=/^[\u30A0-\u30FF]+$/,h=/^\d{9,16}$/,m=/^0[789]0\d{8}$/,f=/^\d{7}$/,v=/^\d{14,16}$/,b=/^(0[1-9]|1[0-2])\/\d{2}$/,Z=/^\d{3,4}$/,j=/^[a-zA-Z0-9 ]{1,40}$/},55:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Q}});var r,a=n(85893),o=n(67294),i=n(66306),l=n(33299),s=n(11163),c=n(87536),d=n(45007),u=n(92487),p=n(14440),g=n(35465),x=n(59505),h=n(94246),m=n(14e3),f=n(98163),v=n(72565),b=n(54705),Z=n(6191),j=n(77053),w=n(69974),C=n(19475),y=n(66817),P=n(20276),_=n(93568),S=n(98350),k=n(59436),T=n(36455),F=n(75173),R=n(63864),I=n(10382),L=n(33367),N=n(9546),M=n(34934);function D(){return(D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var z=function(e){return o.createElement("svg",D({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),r||(r=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.732 3.36A1 1 0 0 1 9.5 3h5a1 1 0 0 1 .768.36l2.2 2.64H20a3 3 0 0 1 3 3v9a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h2.532zM9.968 5l-2.2 2.64A1 1 0 0 1 7 8H4a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1h-3a1 1 0 0 1-.768-.36L14.032 5zM12 11a2 2 0 1 0 0 4 2 2 0 0 0 0-4m-4 2a4 4 0 1 1 8 0 4 4 0 0 1-8 0",clipRule:"evenodd"})))},A=n(80242),E=n(87461),B=n(79310),W=n(1264);async function U(e,t){let n=await new Promise((t,n)=>{let r=new Image;r.addEventListener("load",()=>t(r)),r.addEventListener("error",e=>n(e)),r.setAttribute("crossOrigin","anonymous"),r.src=e}),r=document.createElement("canvas"),a=r.getContext("2d"),o=t.width,i=t.height;if(o>400||i>400){let e=Math.min(400/o,400/i);o=Math.floor(t.width*e),i=Math.floor(t.height*e)}return r.width=o,r.height=i,a.drawImage(n,t.x,t.y,t.width,t.height,0,0,o,i),await new Promise((e,t)=>
1{r.toBlob(n=>{n?e(n):t(Error("Canvas toBlob failed"))},"image/png")})}var H=e=>{let{open:t,onClose:n,imageSrc:r="",onCropped:i}=e,[l,s]=(0,o.useState)({x:0,y:0}),[c,d]=(0,o.useState)(1),[u,x]=(0,o.useState)(null),h=(0,o.useCallback)((e,t)=>{x(t)},[]),m=(0,o.useCallback)(async()=>{if(r&&u)try{let e=await U(r,u);e&&i&&i(e),n()}catch(e){console.error("handleCrop fail:",e)}},[r,u,n,i]);return(0,a.jsx)(W.Z,{open:t,onClose:n,title:"プロフィール写真",children:r?(0,a.jsxs)(p.Z,{children:[(0,a.jsx)(p.Z,{children:(0,a.jsxs)(g.Z,{spacing:"10px",py:6,pb:10,sx:{background:"var(--Color-Primitive-Black)"},children:[(0,a.jsx)(p.Z,{sx:{position:"relative",width:"100%",height:376},children:(0,a.jsx)(A.ZP,{image:r,crop:l,zoom:c,cropShape:"round",aspect:1,cropSize:{width:280,height:280},onCropChange:s,onZoomChange:d,onCropComplete:h})}),(0,a.jsx)(p.Z,{sx:{py:6,px:4},children:(0,a.jsx)(E.ZP,{value:c,min:1,max:3,step:.1,onChange:(e,t)=>d(t)})})]})}),(0,a.jsx)(B.Z,{position:"sticky",isInsideFilter:!0,sx:{background:"var(--Color-Primitive-Black)",borderRadius:0},children:(0,a.jsxs)(g.Z,{direction:"row",gap:5,sx:{width:"100%"},children:[(0,a.jsx)(f.Z,{onClick:n,sx:{px:0,color:"var(--Color-Functional-Text-Inverse-High)",background:"var(--Color-Primitive-Black)",flexGrow:1},children:"キャンセル"}),(0,a.jsx)(f.Z,{variant:"contained",sx:{flexGrow:1},onClick:m,children:"決定"})]})})]}):(0,a.jsx)(p.Z,{p:2,children:"画像が選択されていません"})})},O=e=>{let{avatarUrl:t="",onUploadSuccess:n}=e,r=(0,o.useRef)(null),[i,l]=(0,o.useState)(t||""),{setSnackbarParams:s}=(0,k.Z)(),[c,d]=(0,o.useState)(!1),{renderImageUploadSheet:u,onOpen:x,setImageSrc:h}=function(){let[e,t]=(0,o.useState)(!1),[n,r]=(0,o.useState)(""),i=()=>t(!1);return{renderImageUploadSheet:t=>(0,a.jsx)(H,{open:e,onClose:i,imageSrc:n,...t}),onOpen:()=>t(!0),setImageSrc:r}}(),m=async e=>{if(e instanceof Blob)try{d(!0);let t=new File([e],"cropped-image.jpg",{type:"image/jpeg"}),r=new FormData;r.append("file",t);let{data:a}=await T.Z.postProfileImage((0,P.a)(),r);n(a.file,a.url),l(a.url)}catch(e){console.log("Cannot upload image",e),s({message:"画像のアップロードに失敗しました",severity:"error"},!0)}finally{d(!1)}};return(0,a.jsxs)(g.Z,{alignItems:"center",children:[(0,a.jsxs)(p.Z,{position:"relative",children:[c?(0,a.jsx)(p.Z,{sx:{width:72,height:72,alignItems:"center",justifyContent:"center",display:"flex",borderRadius:"50%",backgroundColor:"var(--Color-Semantic-Neutral-200)"},children:(0,a.jsx)(M.Z,{sx:{color:"var(--Color-Semantic-Neutral-100)"}})}):(0,a.jsx)(I.Z,{alt:"Profile",src:i,sx:{width:72,height:72}}),(0,a.jsx)(L.Z,{onClick:()=>{var e;null===(e=r.current)||void 0===e||e.click()},sx:{backgroundColor:"var(--Color-Functional-Background-Primary)",position:"absolute",right:"-8.5px",bottom:"-8px","&:hover":{backgroundColor:"var(--Color-Functional-Background-Primary)"}},children:(0,a.jsx)(N.Z,{component:z,sx:{width:16,height:16,color:"var(--Color-Functional-Icon-Primary)"}})})]}),(0,a.jsx)("input",{type:"file",accept:"image/*",ref:r,style:{display:"none"},onChange:e=>{var t;let n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(!n)return;let r=new FileReader;r.onload=()=>{r.result&&(h(r.result),x())},r.readAsDataURL(n),e.target.value=""}}),u({onCropped:m})]})},$=()=>{var e,t,n,r,i;let I=(0,s.useRouter)(),{setSnackbarParams:L}=(0,k.Z)(),{data:N,loading:M}=(0,d.v9)(e=>e.settingsProfile),{data:D,update:z}=(0,l.useSession)(),[A,E]=(0,o.useState)(!1),B=(0,o.useMemo)(()=>[{label:"男性",value:R.s.MALE},{label:"女性",value:R.s.FEMALE},{label:"その他",value:R.s.OTHER},{label:"無回答",value:R.s.NO_ANSWER}],[]),{control:W,handleSubmit:U,reset:H,setValue:$,formState:{isValid:q,errors:V}}=(0,c.cI)({mode:"onChange",defaultValues:{user_name:"",last_name:"",first_name:"",last_name_kana:"",first_name_kana:"",birthday:null,gender:R.s.MALE,uploaded_file_avatar:"",uploaded_url_avatar:""}}),Q=async e=>{let t={ユーザー名:e.user_name,姓:e.last_name,名:e.first_name,セイ:e.last_name_kana,メイ:e.first_name_kana,生年月日:(0,v.Z)(e.birthday,"yyyy/MM/dd"),性別タイプ:e.gender};e.uploaded_file_avatar&&(t["アイコンファイル"]=e.uploaded_file_avatar);try{E(!0);let{data:e}=await T.Z.postProfile((0,P.a)(),t);
1if(D){var n,r,a;await z({...D,user:{...null==D?void 0:D.user,image:(null==e?void 0:null===(n=e["アイコンファイル"])||void 0===n?void 0:n.url)||(null==D?void 0:null===(r=D.user)||void 0===r?void 0:r.image),name:(null==e?void 0:e["ユーザー名"])||(null==D?void 0:null===(a=D.user)||void 0===a?void 0:a.name)}})}L({message:"変更内容を保存しました",severity:"success"}),await I.push(_._.settings.profile)}catch(e){console.error("Cannot Save",e),L({message:"保存に失敗しました",severity:"error"},!0)}finally{E(!1)}};return((0,o.useEffect)(()=>{N&&H({user_name:N.username||"",last_name:N.lastName||"",first_name:N.firstName||"",last_name_kana:N.lastNameKana||"",first_name_kana:N.firstNameKana||"",birthday:N.dob?new Date(N.dob):null,gender:N.gender||""})},[N,H]),M)?(0,a.jsx)(F.Lg,{children:(0,a.jsx)(w.Z,{})}):(0,a.jsx)(F.Lg,{children:(0,a.jsx)(p.Z,{className:"full-width",component:"form",onSubmit:U(Q),noValidate:!0,children:(0,a.jsxs)(g.Z,{spacing:8,children:[(0,a.jsx)(F.jO,{children:(0,a.jsx)(C.Z,{href:_._.settings.index,title:"プロフィール編集"})}),(0,a.jsx)(g.Z,{children:(0,a.jsx)(O,{avatarUrl:(null==N?void 0:null===(e=N.avatar)||void 0===e?void 0:e.url)||"",onUploadSuccess:(e,t)=>{$("uploaded_file_avatar",e),$("uploaded_url_avatar",t)}})}),(0,a.jsx)(g.Z,{children:(0,a.jsxs)(F.rg,{sx:{pt:3},children:[(0,a.jsx)(p.Z,{pt:4,pb:6,px:5,children:(0,a.jsx)(c.Qr,{name:"user_name",control:W,rules:{required:"ユーザー名を入力してください。",maxLength:{value:35,message:"ユーザー名は35文字以内で入力してください。"}},render:e=>{let{field:t,fieldState:{error:n}}=e;return(0,a.jsx)(j.X,{label:"ユーザー名",required:!0,...t,validationError:n})}})}),(0,a.jsx)(x.Z,{}),(0,a.jsxs)(p.Z,{pt:4,pb:6,px:5,children:[(0,a.jsxs)(g.Z,{direction:"row",alignItems:"center",mb:1,gap:1,children:[(0,a.jsx)(h.Z,{variant:"subtitle2",fontWeight:"bold",children:"氏名"}),(0,a.jsx)(y.Z,{})]}),(0,a.jsxs)(g.Z,{direction:"row",gap:2,children:[(0,a.jsx)(c.Qr,{name:"last_name",control:W,rules:{required:"姓を入力してください。",maxLength:{value:35,message:"姓は35文字以内で入力してください。"}},render:e=>{let{field:t}=e;return(0,a.jsx)(m.Z,{...t,error:!!V.last_name})}}),(0,a.jsx)(c.Qr,{name:"first_name",control:W,rules:{required:"名を入力してください。",maxLength:{value:35,message:"名は35文字以内で入力してください。"}},render:e=>{let{field:t}=e;return(0,a.jsx)(m.Z,{...t,error:!!V.first_name})}})]}),((null==V?void 0:V.last_name)||(null==V?void 0:V.first_name))&&(0,a.jsxs)(h.Z,{color:"error",display:"flex",alignItems:"center",fontWeight:"bold",marginY:1,children:[(0,a.jsx)(u.Z,{sx:{fontSize:16,mr:1.5}}),(0,a.jsx)("span",{children:(null==V?void 0:null===(t=V.last_name)||void 0===t?void 0:t.message)||(null==V?void 0:null===(n=V.first_name)||void 0===n?void 0:n.message)})]})]}),(0,a.jsxs)(p.Z,{pt:4,pb:6,px:5,children:[(0,a.jsxs)(g.Z,{direction:"row",alignItems:"center",mb:1,gap:1,children:[(0,a.jsx)(h.Z,{variant:"subtitle2",fontWeight:"bold",children:"氏名カナ"}),(0,a.jsx)(y.Z,{})]}),(0,a.jsxs)(g.Z,{direction:"row",gap:2,children:[(0,a.jsx)(c.Qr,{name:"last_name_kana",control:W,rules:{required:"セイを入力してください。",maxLength:{value:35,message:"セイは35文字以内で入力してください。"},pattern:{value:S.U8,message:"セイは全角カタカナで入力してください。"}},render:e=>{let{field:t}=e;return(0,a.jsx)(m.Z,{...t,error:!!V.last_name_kana})}}),(0,a.jsx)(c.Qr,{name:"first_name_kana",control:W,rules:{required:"メイを入力してください。",maxLength:{value:35,message:"メイは35文字以内で入力してください。"},pattern:{value:S.U8,message:"メイは全角カタカナで入力してください。"}},render:e=>{let{field:t}=e;return(0,a.jsx)(m.Z,{...t,error:!!V.first_name_kana})}})]}),((null==V?void 0:V.last_name_kana)||(null==V?void 0:V.first_name_kana))&&(0,a.jsxs)(h.Z,{color:"error",display:"flex",alignItems:"center",fontWeight:"bold",marginY:1,children:[(0,a.jsx)(u.Z,{sx:{fontSize:16,mr:1.5}}),(0,a.jsx)("span",{children:(null==V?void 0:null===(r=V.last_name_kana)||void 0===r?void 0:r.message)||(null==V?void 0:null===(i=V.first_name_kana)||void 0===i?void 0:i.message)})]})]})]})}),(0,a.jsxs)(g.Z,{spacing:3,children:[(0,a.jsx)(p.Z,{px:5,children:(0,a.jsx)(h.Z,{variant:"h5",children:"属性"})}),(0,a.jsxs)(F.rg,{sx:{pt:3},children:[(0,a.jsx)(p.Z,{pt:4,pb:6,px:5,children:(0,a.jsx)(c.Qr,{name:"birthday",control:W,rules:{required:"生年月日を入力してください。",validate:e=>{if(!e)return"生年月日を入力してください。";let t=new Date;return t.setHours(0,0,0,0),!(isNaN(e.getTime())||e.getTime()>t.getTime())||"正しい生年月日を入力してください。"}},render:e=>{let{field:t}=e;return(0,a.jsx)(b.I,{...t,label:"生年月日",required:!0,value:t.value?new Date(t.value):null,onChange:e=>t.onChange(e),validationError:V.birthday,maxDate:new Date})}})}),(0,a.jsx)(x.Z,{}),(0,a.jsx)(p.Z,{pt:4,pb:6,px:5,children:(0,a.jsx)(c.Qr,{name:"gender",control:W,rules:{required:"性別を選択してください。"},render:e=>{let{field:t}=e;return(0,a.jsx)(Z.H,{...t,label:"性別",required:!0,options:B})}})})]})]}),(0,a.jsxs)(F.qt,{children:[(0,a.jsx)(F.gY,{onClick:()=>I.push(_._.settings.index),variant:"text",children:"キャンセル"}),(0,a.jsx)(f.Z,{type:"submit",variant:"contained",className:A?"loading":"",sx:{maxWidth:240,flexGrow:2},disabled:!q,children:"保存"})]})]})})})},q=n(5929),V=n(36911),Q=()=>{let e=(0,q.Z)();return(0,o.useEffect)(()=>{(async()=>{await e((0,V.A)())})()},[e]),(0,a.jsx)(i.Z,{children:(0,a.jsx)($,{})})}},36911:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(85839),a=n(29204),o=n(20276),i=n(36455);let l=(0,r.hg)("settings/profile/get",async(e,t)=>{let{rejectWithValue:n,extra:r}=t;try{let e=(0,o.a)({req:null==r?void 0:r.req,res:null==r?void 0:r.res}),{data:t}=await i.Z.getProfile(e);return t}catch(t){let e={message:(null==t?void 0:t.message)||"An unknown error occurred",data:null};if(t instanceof a.d7){var l;e.data=(null===(l=t.response)||void 0===l?void 0:l.data.errors)||null}return n(e)}})},36455:function(e,t,n){"use strict";var r=n(71665),a=n(73647);t.Z={get:e=>
1e.get("".concat(r.T5,"/app/settings")),getProfile:e=>e.get("".concat(r.T5,"/app/settings/profile")),postProfile:(e,t)=>e.post("".concat(r.T5,"/app/settings/profile"),new URLSearchParams(t)),postProfileImage:(e,t)=>e.post("".concat(r.T5,"/app/settings/profile_upload"),t,{headers:{"Content-Type":"multipart/form-data"}}),getAddress:e=>e.get("".concat(r.T5,"/app/settings/address")),postAddress:(e,t)=>e.post("".concat(r.T5,"/app/settings/address"),new URLSearchParams(t)),getTap:e=>e.get("".concat(r.T5,"/app/settings/payment_method")),postTap:(e,t)=>e.post("".concat(r.T5,"/app/settings/payment_method"),new URLSearchParams(t)),getPhone:e=>e.get("".concat(r.T5,"/app/settings/tel")),postPhone:(e,t)=>e.post("".concat(r.T5,"/app/settings/tel"),new URLSearchParams(t)),postPhoneVerifyCode:(e,t)=>e.post("".concat(r.T5,"/app/settings/tel_send_sms"),new URLSearchParams(t)),postPhoneVerify:(e,t)=>e.post("".concat(r.T5,"/app/settings/tel_sms_verify"),new URLSearchParams(t)),getAccount:e=>e.get("".concat(r.T5,"/app/settings/account")),postAccountEmailChange:(e,t)=>
1e.post("".concat(r.T5,"/app/settings/account/email_send"),new URLSearchParams(t)),postAccountEmailVerify:(e,t)=>e.post("".concat(r.T5,"/app/settings/account/email_verify"),new URLSearchParams(t)),postAccountPasswordChange:(e,t)=>e.post("".concat(r.T5,"/app/settings/account/password"),new URLSearchParams(t)),postPasswordLoginFlg:(e,t)=>e.post("".concat(r.T5,"/app/settings/account/password_login_flg"),new URLSearchParams({enabled:t?a.B.ON:a.B.OFF})),deleteAccount:(e,t)=>e.delete("".concat(r.T5,"/app/settings/account/delete"),{data:new URLSearchParams(t)}),getCodes:e=>e.get("".concat(r.T5,"/app/settings/codes")),postCode:(e,t)=>e.post("".concat(r.T5,"/app/settings/codes/create"),new URLSearchParams(t)),getCodeSearch:(e,t)=>e.get("".concat(r.T5,"/app/settings/codes/create_search?code=").concat(t)),getCodeDetail:(e,t)=>e.get("".concat(r.T5,"/app/settings/codes/").concat(t,"/read")),postCodeDetail:(e,t,n)=>e.post("".concat(r.T5,"/app/settings/codes/").concat(t,"/update"),new URLSearchParams(n)),deleteCodeDetail:(e,t)=>e.delete("".concat(r.T5,"/app/settings/codes/").concat(t,"/delete")),getCurrentCard:e=>e.get("".concat(r.T5,"/app/settings/card")),postCard:(e,t)=>e.post("".concat(r.T5,"/app/settings/card"),new URLSearchParams(t)),deleteCard:e=>e.delete("".concat(r.T5,"/app/settings/card")),getStripeInfo:e=>e.get("".concat(r.T5,"/app/settings/card/stripe/info")),postStripeSetupIntent:e=>e.post("".concat(r.T5,"/app/settings/card/stripe/setup_intent")),postStripeCard:(e,t)=>e.post("".concat(r.T5,"/app/settings/card/stripe"),new URLSearchParams(t)),deleteStripeCard:e=>e.delete("".concat(r.T5,"/app/settings/card/stripe"))}},75173:function(e,t,n){"use strict";n.d(t,{$8:function(){return h},Lg:function(){return s},gY:function(){return p},jO:function(){return c},jY:function(){return m},qt:function(){return u},rg:function(){return d},sx:function(){return x},vL:function(){return g}});var r=n(14440),a=n(35465),o=n(98163),i=n(73821),l=n(89262);let s=(0,l.ZP)(r.Z)(e=>{let{theme:t}=e;return{flexGrow:2,padding:t.spacing(6,0,12),background:"linear-gradient(0deg, rgba(239, 240, 241, 0.60) 0%, rgba(239, 240, 241, 0.60) 100%), var(--Color-Functional-Background-Primary)"}}),c=(0,l.ZP)(a.Z)(e=>{let{theme:t}=e;return{flexDirection:"row",alignItems:"center",paddingLeft:t.spacing(5),paddingRight:t.spacing(5)}});(0,l.ZP)(a.Z)(e=>{let{theme:t}=e;return{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingLeft:t.spacing(5),paddingRight:t.spacing(5)}}),(0,l.ZP)(o.Z)(()=>({fontSize:14,fontWeight:400,padding:0,height:"auto"}));let d=(0,l.ZP)(i.Z)(()=>({boxShadow:"none",borderRadius:0})),u=(0,l.ZP)(r.Z)(e=>{let{theme:t}=e;return{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:t.spacing(5),paddingRight:t.spacing(5),width:"100%",gap:t.spacing(5)}}),p=(0,l.ZP)(o.Z)(()=>({color:"var(--Color-Functional-Text-Neutral-Low)"})),g=(0,l.ZP)(r.Z)(e=>{let{theme:t}=e;return{".current-info":{".MuiListItem-root":{padding:t.spacing(4,5)},".list-item-content":{width:"100%",flexDirection:"row",justifyContent:"space-between",color:"var(--Color-Functional-Text-Neutral-Middle)",".item-name":{fontSize:14,color:"var(--Color-Functional-Text-Neutral-Low)"},".item-value":{fontSize:16,lineHeight:1.5}}}}}),x=(0,l.ZP)(a.Z)(e=>{let{theme:t}=e;return{padding:t.spacing(0,5),gap:t.spacing(6),".code-count":{flexDirection:"row",alignItems:"center",lineHeight:1.5,color:"var(--Color-Functional-Text-Neutral-High)",".number":{fontSize:20,fontWeight:"bold"},".unit":{fontSize:16,fontWeight:590}},".action-title":{textAlign:"center",fontSize:14,fontWeight:"bold",color:"var(--Color-Functional-Text-Neutral-Low)"},".action-description":{textAlign:"center",fontSize:12,lineHeight:1.5,color:"var(--Color-Functional-Text-Neutral-Low)"},".action-button":{boxShadow:"none","&.Mui-disabled":{PointerEvent:"none",color:"var(--Color-Functional-Text-Inverse-Disabled)",background:"var(--Color-Semantic-Primary-300)"}}}}),h=(0,l.ZP)(a.Z)(e=>{let{theme:t}=e;return{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:t.spacing(3),".icon-wrapper":{width:56,height:56,padding:t.spacing(1),alignItems:"center",justifyContent:"center",border:"1px solid var(--Color-Functional-Border-Neutral-Middle)",borderRadius:2*t.shape.borderRadius,color:"var(--Color-Functional-Icon-Disabled)"},".title":{color:"var(--Color-Functional-Text-Neutral-High)"}}}),m=(0,l.ZP)(a.Z)(e=>{let{theme:t}=e;
1return{background:"var(--Color-Functional-Background-Base)",padding:t.spacing(6,5,12),gap:t.spacing(6),minHeight:"calc(100vh - 104px)",".note":{"&.MuiAlert-outlined":{fontWeight:400}},".confirm-button":{boxShadow:"none","&.Mui-disabled":{PointerEvent:"none",color:"var(--Color-Functional-Text-Primary-Disabled)",background:"var(--Color-Primitive-WhiteAlpha-500)",border:"1px solid var(--Color-Functional-Border-Primary-Low)"}},".add-button":{boxShadow:"none","&.Mui-disabled":{PointerEvent:"none",color:"var(--Color-Functional-Text-Inverse-Disabled)",background:"var(--Color-Semantic-Primary-300)"}}}})}},function(e){e.O(0,[3714,3662,4927,9410,5465,6589,4503,5007,1664,8031,2238,3927,1086,3523,4011,280,318,9371,4e3,627,4965,8489,4438,9861,60,7536,2565,5041,9754,190,5652,1015,6306,2888,9774,179],function(){return e(e.s=58271)}),_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.