1import{j as e,r as c,S as N,ar as S,u as T,as as C,a2 as m,at as A,D as q,au as x,ai as v,J as W,a1 as k}from"./index-DxrXdkiz.js";import{O as E}from"./organization-C2dz7GSQ.js";import{E as O,c as U}from"./index-D3Qnhxr9.js";import{F as z}from"./index-D2Vrk3FL.js";import{g as M}from"./form-BbxAUgDD.js";import{A as R,p as w}from"./util-Df29Xwnj.js";import{U as r}from"./form-BxtertGJ.js";import{S as I}from"./index-CVtS-LX_.js";import{W as t}from"./index-gpgDwSmB.js";import{W as i}from"./index-D5CsIkFO.js";import{g as L,a as D,b as B}from"./antd-Cw5vuhRQ.js";import{F as l}from"./index-tKtJDP5w.js";import{P as G}from"./index-Cz16RUxl.js";import{P as p}from"./warpField-yvpjgWE-.js";import{P as f}from"./index-CXB8jb_X.js";import{W as K}from"./index-B_KaWWu3.js";import{P as V}from"./index-DFME_6bs.js";import{B as J}from"./Button-Bb5sVw_A.js";import{s as h}from"./index-iu-S8i3E.js";import{s as Q}from"./index-B_Jo56mA.js";import{T as X}from"./index-DID3Sdeu.js";import"./auto_complete_form_item-CNaCrZDP.js";import"./index-D__3aU62.js";import"./index-DI3-hVmV.js";import"./dayjs.min-CKB53mmG.js";import"./dayjs.min-u3zuoSR8.js";import"./index-DiQuuU5D.js";import"./index-C52pJfyR.js";import"./util-BZpXxe0i.js";import"./index-mQbU3Ns7.js";import"./CopyOutlined-DsH2cOrT.js";import"./LoadingOutlined-DmAuQhWa.js";import"./DeleteOutlined-CB-MajDV.js";import"./row-CfCVciVj.js";import"./useBreakpoint-C4pX8e7u.js";import"./index-C0hcmiOE.js";import"./index-BR6PWYPc.js";import"./useZIndex-TRLtTEiQ.js";import"./PlusOutlined-8oDxPo0L.js";import"./PurePanel-BOQd_FVB.js";import"./index-BUEthEb1.js";import"./Overflow-Ck1l4h0d.js";import"./extends-CF3RwP-h.js";import"./compact-item-Chxd3wTb.js";import"./index-BuuhGoQ9.js";import"./useMergedValue-CZ0q-gyM.js";import"./CloseCircleFilled-C5F2nngo.js";import"./fallbackProp-BatLkbJh.js";import"./move-GBWKt-Yn.js";import"./useIcons-C1vrozaD.js";import"./CheckOutlined-BLFWKGuU.js";import"./CloseOutlined-D-ZVPTZf.js";import"./DownOutlined--91ZDl7w.js";import"./Input-MMh_EPGy.js";import"./index-DGQH7sp_.js";import"./antd_error-DzjBTMZd.js";import"./modal_form-CF5PtguI.js";import"./util-e1mpUw0C.js";import"./index-Cc3HvYbE.js";import"./index-YxhidOJl.js";import"./render-CNZxpWhY.js";import"./ExclamationCircleFilled-rv43dlKl.js";import"./InfoCircleFilled-ByolKqVL.js";import"./useFocusable-Cvf4agNg.js";import"./Skeleton-D0IptJvK.js";import"./context-2r6_lcex.js";import"./useMergedMask-DxR0Cumk.js";import"./useClosable-C0mI5_ck.js";import"./mergeProps-BaWfa3Kk.js";import"./BaseForm-CWbn90SA.js";import"./cloneDeep-DXsuNx8a.js";import"./_initCloneObject-CK9H3rYZ.js";import"./gapSize-CrneQdj1.js";import"./index-CTvrCFvx.js";import"./index-c1BusaAH.js";import"./EyeOutlined-DIYggjTA.js";import"./TextArea-BDGcsRrL.js";import"./index-CsQ_ijg5.js";import"./index-Dn7ZB7xV.js";import"./array-s9k_bQ_p.js";import"./CSSMotionList-BsXw-wgI.js";import"./useForm-DPVh4NtO.js";import"./index-DxfywUJ7.js";import"./index-BvxlF-ZP.js";import"./dropdown-BB-qdlqg.js";import"./LeftOutlined-CI65XR6i.js";import"./EllipsisOutlined-Cof_97-w.js";import"./ArrowRightOutlined-hgTzebrQ.js";import"./toList-DduQpfZZ.js";import"./index-Ds83uIqR.js";import"./merge-DPRY6Zo4.js";import"./index-CPh9-8YC.js";import"./index-JZjkmpuc.js";import"./index-_auMuneO.js";import"./useBubbleLock-DJA27iA1.js";const Z=({form:s})=>e.jsxs(e.Fragment,{children:[e.jsxs(I,{children:[e.jsx(t,{label:"éµä¾¿çªå·",name:r.postalCode,rules:[{required:!0}],allowClear:!1,fieldProps:{minLength:7,maxLength:7},placeholder:""}),e.jsx(R,{form:s})]}),e.jsx(i,{label:"é½éåºç",name:r.prefecture,rules:[{required:!0}],options:w,fieldProps:{style:{maxWidth:100}},allowClear:!1,placeholder:""}),e.jsx(t,{label:"å¸åºçºæ",name:r.city,rules:[{required:!0}],fieldProps:{style:{maxWidth:400}},allowClear:!1,placeholder:""}),e.jsx(t,{label:"çºåã»çªå°ç",name:r.block,rules:[{required:!0}],fieldProps:{style:{maxWidth:400}},allowClear:!1,placeholder:""}),e.jsx(t,{label:"建ç©å",name:r.building,fieldProps:{style:{maxWidth:400}},allowClear:!1,placeholder:""})]}),Rr=()=>{const{systemValues:s}=c.useContext(N),n=s?.emailDoNotSendList??"",[j,{loading:b}]=S(),u=T(),{data:g}=C(),[a]=l.useForm(),d=l.useWatch(r.type,a);return c.useEffect(()=>{d===m.Admin&&a.setFieldsValue({[r.organizationName]:"大å¦ã³ã³ã½ã¼ã·ã¢ã ç³å·"})},[d,a]),e.jsx(G,{title:"ã¦ã¼ã¶ã¼ä½æ",children:e.jsxs(z,{form:a,layout:"vertical",onFinish:o=>{const{organizationName:y,...P}=o;j({variables:{input:{...P,...M(y,k(g?.organizations)??[])}},onCompleted:({createUser:F})=>{u(v(F.id)),h.success("ã¦ã¼ã¶ã¼ã使ãã¾ãã"),Q.success({message:"ã¦ã¼ã¶ã¼ã使ãã¾ãã",description:e.jsxs("span",{children:["ãã¹ã¯ã¼ãè¨å®ã¡ã¼ã«ã¯",e.jsx(X.Link,{onClick:()=>u(W.index),children:"ãã¹ã¯ã¼ãã®è¨å®"}),"ã®ãã¼ã¸ããéä¿¡ãã¦ãã ããã"]}),duration:0})},onError:()=>{h.error("ã¦ã¼ã¶ã¼ã®ä½æã«å¤±æãã¾ãã")}})},initialValues:{[r.isReceiveAnnouncementEmail]:!0,[r.parkingTicket]:!1,[r.isSharedPc]:!1},children:[e.jsx(O,{label:"ã¡ã¼ã«ã¢ãã¬ã¹",name:r.emailAddress,applyCareerMailRule:!1,extra:e.jsxs(e.Fragment,{children:[e.jsx("div",{children:U}
1),n!=""&&e.jsxs("div",{children:["ã¡ã¼ã«ã¢ãã¬ã¹ããªãã¦ã¼ã¶ã¼ã®å ´åã",n,"ããå
¥åãã¦ãã ãã"]})]})}),e.jsx(t,{label:"é»è©±çªå·",name:r.phoneNumber,rules:[{required:!0}],placeholder:""}),e.jsx(t,{label:"é»è©±çªå·ï¼ç·æ¥ç¨ï¼",name:r.emergencyPhoneNumber,placeholder:""}),e.jsx(t,{label:"FAX",name:r.faxNumber,placeholder:""}),e.jsx(t,{label:"å§",name:r.lastName,rules:[{required:!0}],placeholder:""}),e.jsx(t,{label:"å",name:r.firstName,rules:[{required:!0}],placeholder:""}),e.jsx(t,{label:"å§ã«ã",name:r.lastNameKana,rules:[{required:!0}],placeholder:""}),e.jsx(t,{label:"åã«ã",name:r.firstNameKana,rules:[{required:!0}],placeholder:""}),e.jsx(i,{label:"æ§å¥",name:r.gender,options:L(),rules:[{required:!0}],placeholder:""}),e.jsx(i,{label:"ã¦ã¼ã¶ã¼ã¿ã¤ã",name:r.type,options:D(),rules:[{required:!0}],placeholder:""}),e.jsx(p,{name:[r.type],children:({type:o})=>A(o)?e.jsx(i,{label:"å¦çã¿ã¤ã",name:r.studentType,options:B(),rules:[{required:o===m.Student}],placeholder:""}):null}),e.jsx(E,{formItemProps:{label:q,name:r.organizationName,extra:"ç³å·çã®å¦çã®å ´åã鏿è¢ã®ä¸ããé¸ãã§ãã ãã"}}),e.jsx(f,{label:x.isReceiveAnnouncementEmail.field,name:r.isReceiveAnnouncementEmail}),e.jsx(f,{label:x.isSharedPc.field,name:r.isSharedPc,extra:"ãªã³ã«ããã¨ããã®ã¦ã¼ã¶ã¼ã§ãã°ã¤ã³ããã»ãã·ã§ã³ã¯ç¿æ¥ã®åå2æï¼JSTï¼ã«èªåã§åãã¾ãã"}),e.jsx(Z,{form:a}),e.jsx(p,{name:[r.type],children:({type:o})=>o!==m.Student?null:e.jsx(K.Group,{label:"é§è»å¸ãå¿
è¦ã",name:r.parkingTicket,radioType:"button",options:[{label:"å¿
è¦",value:!0},{label:"ä¸è¦",value:!1}],rules:[{required:!0}],placeholder:""})}),e.jsx(p,{name:[r.parkingTicket],children:({parkingTicket:o})=>o!==!0?null:e.jsx(V,{label:"é§è»å¸ãå¿
è¦ãªçç±",name:r.parkingTicketReason,disabled:o===!1,rules:[{required:!0}],placeholder:""})}),e.jsx(l.Item,{children:e.jsx(J,{type:"primary",htmlType:"submit",loading:b,children:"使"})})]})})};export{Rr 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.