/**
 * ldesign v0.4.2
 * (c) 2023 ldesign
 * @license MIT
 */

import _defineProperty from '@babel/runtime/helpers/defineProperty';
import { defineComponent, ref, computed, provide, createVNode } from 'vue';
import { usePrefixClass } from '../hooks/useConfig.js';
import { useTNodeJSX } from '../hooks/tnode.js';
import '../config-provider/useConfig.js';
import 'lodash/cloneDeep';
import 'lodash/isFunction';
import 'lodash/isString';
import '../config-provider/context.js';
import 'lodash/mergeWith';
import 'lodash/merge';
import 'lodash/isArray';
import '../_common/js/global-config/default-config.js';
import '../_common/js/global-config/locale/zh_CN.js';
import '@babel/runtime/helpers/typeof';
import '../_chunks/dep-2e5d8948.js';
import 'dayjs';
import '../_chunks/dep-4580aabe.js';
import '../config-provider/type.js';
import 'lodash/camelCase';
import 'lodash/kebabCase';
import '../utils/render-tnode.js';
import 'lodash/isEmpty';
import 'lodash/isObject';

var _Layout = defineComponent({
  name: "TLayout",
  setup: function setup() {
    var hasSide = ref(false);
    var renderTNodeJSX = useTNodeJSX();
    var COMPONENT_NAME = usePrefixClass("layout");
    var classes = computed(function () {
      return [COMPONENT_NAME.value, _defineProperty({}, "".concat(COMPONENT_NAME.value, "--with-sider"), hasSide.value)];
    });
    provide("layout", {
      hasSide: hasSide
    });
    return function () {
      return createVNode("section", {
        "class": classes.value
      }, [renderTNodeJSX("default")]);
    };
  }
});

export { _Layout as default };
//# sourceMappingURL=layout.js.map
