PageSourceSearch

https://ucon-i.jp/assets/create-DlWSIA8z.js

js ucon-i.jp collected 2026-09-25 05:58:12 UTC 7,278 bytes, 1 lines download raw bytes

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.