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