import{aF as c,b as n,T as g,j as p,C as m,F as P,O as f}from"./index-DWFi48i_.js";function L({value:s,onChange:i,label:t="Storage Location",required:r=!1,disabled:l=!1,size:d="small"}){const{data:u=[],isLoading:a}=c();return n(f,{options:u,getOptionLabel:o=>o.locationPath||`${o.name}${o.code?` (${o.code})`:""}`,value:s,onChange:(o,e)=>i(e),disabled:l,loading:a,isOptionEqualToValue:(o,e)=>o.id===e.id,renderInput:o=>n(g,{...o,label:r?`${t} *`:t,size:d,fullWidth:!0,InputProps:{...o.InputProps,endAdornment:p(P,{children:[a?n(m,{color:"inherit",size:16}):null,o.InputProps.endAdornment]})}})})}export{L as S};
