const e=require("../config-provider/hooks/useConfigInject.js"),t=require("./injectionKey.js"),n=require("./style/index.js");let r=require("vue");var i=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function a({suffixCls:t,tagName:n,name:a}){return o=>(0,r.defineComponent)({compatConfig:{MODE:3},name:a,props:i(),setup(i,{slots:a}){let{prefixCls:s}=e.default(t,i);return()=>(0,r.createVNode)(o,{...i,prefixCls:s.value,tagName:n},a)}})}var o=(0,r.defineComponent)({compatConfig:{MODE:3},props:i(),setup(e,{slots:t}){return()=>(0,r.createVNode)(e.tagName,{class:e.prefixCls},t)}}),s=(0,r.defineComponent)({compatConfig:{MODE:3},inheritAttrs:!1,props:i(),setup(i,{slots:a,attrs:o}){let{prefixCls:s,direction:c}=e.default(``,i),[l,u]=n.default(s),d=(0,r.ref)([]);(0,r.provide)(t.SiderHookProviderKey,{addSider:e=>{d.value=[...d.value,e]},removeSider:e=>{d.value=d.value.filter(t=>t!==e)}});let f=(0,r.computed)(()=>{let{prefixCls:e,hasSider:t}=i;return{[u.value]:!0,[`${e}`]:!0,[`${e}-has-sider`]:typeof t==`boolean`?t:d.value.length>0,[`${e}-rtl`]:c.value===`rtl`}});return()=>{let{tagName:e}=i;return l((0,r.createVNode)(e,{...o,class:[f.value,o.class]},a))}}}),c=a({suffixCls:`layout`,tagName:`section`,name:`ALayout`})(s),l=a({suffixCls:`layout-header`,tagName:`header`,name:`ALayoutHeader`})(o),u=a({suffixCls:`layout-footer`,tagName:`footer`,name:`ALayoutFooter`})(o),d=a({suffixCls:`layout-content`,tagName:`main`,name:`ALayoutContent`})(o);exports.Content=d,exports.Footer=u,exports.Header=l,exports.basicProps=i,exports.default=c;