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