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