import{inject as b,h as j,computed as n}from"vue";import{useInjectDisabled as z}from"../DisabledContext.mjs";import{useInjectSize as E}from"../SizeContext.mjs";import{configProviderKey as M,defaultConfigProvider as T}from"../context.mjs";import{DefaultRenderEmpty as W}from"../renderEmpty.mjs";const R=(a,t)=>{const i=E(),c=z(),e=b(M,{...T,renderEmpty:y=>j(W,{componentName:y})}),r=n(()=>e.getPrefixCls(a,t.prefixCls)),l=n(()=>t.direction??e.direction?.value),s=n(()=>t.iconPrefixCls??e.iconPrefixCls.value),u=n(()=>e.getPrefixCls()),d=n(()=>e.autoInsertSpaceInButton?.value),f=e.renderEmpty,v=e.space,m=e.pageHeader,C=e.form,g=n(()=>t.getTargetContainer??e.getTargetContainer?.value),P=n(()=>t.getContainer??t.getPopupContainer??e.getPopupContainer?.value),o=n(()=>t.dropdownMatchSelectWidth??e.dropdownMatchSelectWidth?.value),x=n(()=>(t.virtual===void 0?e.virtual?.value!==!1:t.virtual!==!1)&&o.value!==!1),p=n(()=>t.size||i.value),h=n(()=>t.autocomplete??e.input?.value?.autocomplete),I=n(()=>t.disabled??c.value),w=n(()=>t.csp??e.csp),S=n(()=>t.wave??e.wave?.value);return{configProvider:e,prefixCls:r,direction:l,size:p,getTargetContainer:g,getPopupContainer:P,space:v,pageHeader:m,form:C,autoInsertSpaceInButton:d,renderEmpty:f,virtual:x,dropdownMatchSelectWidth:o,rootPrefixCls:u,getPrefixCls:e.getPrefixCls,autocomplete:h,csp:w,iconPrefixCls:s,disabled:I,select:e.select,wave:S}};export{R as default};
