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