import{i as e}from"./preload-helper-B45gAKPr.js";import{pn as t,t as n}from"./iframe-NOj5DEP4.js";import{a as r,s as i}from"./odata-DsBT7AZ3.js";import{n as a,r as o,t as s}from"./useODataSelectBase-BAJpNbfJ.js";import{n as c,t as l}from"./MultiSelect-DSsAj7aQ.js";function u({odata:e,segment:t,model:n,value:r,dependencies:i,onChange:s}){let c=o({odata:e,segment:t,model:n,value:r,dependencies:i}),l=e=>{s(a(e,c.selectionKey))};return{...c,handleChange:l}}var d=e((()=>{s()})),f,p,m=e((()=>{t(),i(),d(),c(),f=n(),p=({odata:e,segment:t,model:n,label:i,description:a,disabled:o,value:s,dependencies:c,onChange:d,size:p})=>{let m=u({odata:e,segment:t,model:r(n),value:s,dependencies:c,onChange:d});return(0,f.jsx)(l,{label:i,description:a,size:p,codeKey:m.codeKey,textKey:m.textKey,hideCode:t.hideCode??e.hideCode,items:m.filteredItems,value:m.selectedItems,onChange:m.handleChange,onQuery:m.setQuery,query:m.query,defaultFilter:!1,highlightQuery:m.debouncedQuery,disabled:o||m.isLoading,placeholder:m.placeholder,error:m.isError?`Ошибка загрузки`:void 0})},p.__docgenInfo={description:``,methods:[],displayName:`ODataMultiSelect`}}));export{m as n,p as t};