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