1import{$ as f,bn as b,bo as y,j as o,S as l,D as j,bp as S}from"./index-BnpGcsPS.js";import{r as P,F as a,S as V}from"./vendor-antd-hgDEJAQ2.js";const z=P.memo(({values:e,setValues:i,errors:r,readonly:n,viewonly:p})=>{const{t:s,tc:c}=f("student"),d="large",u=b.map(t=>({value:t,label:s(`studentProfile.expectations.form.purpose.options.${t}`)})),x=y.map(t=>({label:s("studentProfile.expectations.form.pastExperience.options",{returnObjects:!0})[t],value:t}));return o.jsxs(a,{layout:"vertical",children:[o.jsx(a.Item,{label:s("studentProfile.expectations.form.purpose.title"),className:p&&(!e.propose||Array.isArray(e.propose)&&e.propose.length===0)?"noViewonlyValue":"isValue",validateStatus:r?.propose?"error":"",help:r?.propose?s("wizard.errors.selection"):"",htmlFor:"stayPurpose",children:p?Array.isArray(e.propose)&&e.propose.length>0?o.jsx(l,{children:u.filter(t=>e.propose?.includes(t.value)).map(t=>t.label)?.join(", ")}):null:o.jsx(V,{options:u,value:e.propose??void 0,size:d,mode:"multiple",showSearch:!1,placeholder:s("wizard.selectPlaceholder"),disabled:n,onChange:t=>{i({...e,propose:t})},id:"stayPurpose",classNames:{popup:{root:"longOptionsTextSelectPopup"}}})}),o.jsx(a.Item,{label:c("studentProfile.aboutMeInfo.form.study.title"),className:p&&!e.study?.length?"noViewonlyValue":"isValue",validateStatus:r?.study?"error":"",help:r?.study,children:p?e.study?.length?o.jsx(l,{children:e.study}):null:o.jsx(j,{field:"study",value:e.study,size:d,disabled:n,placeholder:c("studentProfile.aboutMeInfo.form.study.placeholder")})}),o.jsx(a.Item,{label:s("studentProfile.expectations.form.pastExperience.title"),className:p&&(!e.past_experience||Array.isArray(e.past_experience)&&e.past_experience.length===0)?"noViewonlyValue":"isValue",validateStatus:r?.past_experience?"error":"",help:r?.past_experience?s("wizard.errors.selection"):"",children:p?Array.isArray(e.past_experience)&&e.past_experience.length>0?o.jsx(l,{children:x.filter(t=>e.past_experience?.includes(t.value))?.map(t=>t.label).join(", ")??""}):null:o.jsx(S,{disabled:n,value:e.past_experience??void 0,onChange:(t,h)=>{i(h==="None of the above"?{...e,past_experience:["None of the above"]}:{...e,past_experience:t.filter(m=>m!=="None of the above")})},options:x})})]})});export{z 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.