import{MenuItem_default as e,TextField_default as t,jsx as n,useAppSelector as r}from"./index-CA65pJ_5.js";import{RootTypeEnum as i}from"./root-type.enum-C3eBp3GL.js";const a=({value:a,onChange:o,rootTypeIdFilter:s,enabledStateIds:c})=>{let l=r(e=>{var t;return(t=e.common.lookupTables)?.rootStates}),u=Object.values(l??{});return n(t,{select:!0,variant:`outlined`,fullWidth:!0,label:`${s==i.LADLE?`Ladle`:`Tundish`} State`,value:a,onChange:o,children:u.filter(e=>e.rootTypeId===s).map(t=>n(e,{value:t.rootStateId,disabled:c?!c.includes(t.rootStateId):!1,children:t.rootStateName},`rootStates/${t.rootStateId}`))})};export{a as RootStateSelector};
//# sourceMappingURL=RootStateSelector-B5OI2gcr.js.map