import{bF as c,b as n,T as g,j as p,C as f,F as m,af as P}from"./index-ktJf6c6X.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(P,{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(m,{children:[a?n(f,{color:"inherit",size:16}):null,o.InputProps.endAdornment]})}})})}export{L as S};
