import{MenuItem_default as e,TextField_default as t,jsx as n,useAppSelector as r}from"./index-hCP7Trns.js";const i=({value:i,onChange:a,rootTypeIdFilter:o,contains:s=``,label:c=`Location`,disabled:l=!1,error:u=``})=>{let d=r(e=>{var t;return(t=e.common.lookupTables)?.locations}),f=Object.values(d??{});return n(t,{select:!0,style:{minWidth:100,width:`100%`,maxWidth:`100%`},variant:`outlined`,fullWidth:!0,disabled:l,label:c,value:i,onChange:a,error:!!u,helperText:u,children:f&&f.filter(e=>e.rootTypeId===o?!(s&&!e.locationName.includes(s)):!1).map(t=>n(e,{value:t.locationId,children:t.locationName},`location/${t.locationId}`))})};export{i as LocationSelector};
//# sourceMappingURL=location-selector-C9U7F9S3.js.map