import{aw as s,j as t,ax as r}from"./app-BgLa5dit.js";const o=e=>`${e.name}${e.code?` (${e.code})`:""}`;function u(e){var l;const i=s();return t.jsxs(r,{as:"select",label:"Rating",name:"rating",id:"rating",value:(l=i.values.rating)==null?void 0:l.id,onChange:a=>i.setFieldValue("rating",a.target.value?{id:a.target.value}:null),disabled:e.disabled,showRequiredStar:e.showRequiredStar,children:[t.jsx("option",{value:"",children:"Please select a rating"}),e.ratings.map((a,n)=>t.jsx("option",{value:a.id,children:o(a)},n))]})}export{u as R};
//# sourceMappingURL=CzlLCJUp.chunk.js.map
