/**
 * ldesign v0.2.2
 * (c) 2022年9月20日 swimly
 * @license MIT
 */

import _defineProperty from '@babel/runtime/helpers/defineProperty';
import { defineComponent, computed } from '@vue/composition-api';
import TDateFooter from '../base/Footer.js';
import '../../../hooks/use-config.js';
import '../../config-provider/useConfig.js';
import '../../config-provider/context.js';
import 'lodash';
import '../../../_chunks/dep-a0f2090c.js';
import '../../button/index.js';
import '../../button/button.js';
import '@ldesign/icons-vue';
import '../../loading/index.js';
import '../../loading/loading.js';
import '../../loading/icon/gradient.js';
import 'vue';
import '../../../_chunks/dep-33b15d9d.js';
import '../../../_chunks/dep-85e8b23b.js';
import '../../../_chunks/dep-fc383775.js';
import '@babel/runtime/helpers/toConsumableArray';
import '@babel/runtime/helpers/slicedToArray';
import '../../../config.js';
import '../../../utils/dom.js';
import 'raf';
import 'lodash/isString';
import '../../../utils/easing.js';
import '../../../utils/render-node.js';
import '@babel/runtime/helpers/typeof';
import 'lodash/camelCase';
import 'lodash/kebabCase';
import '../../../utils/transfer-dom.js';
import '../../loading/props.js';
import '../../config-provider/config-receiver.js';
import 'lodash/mergeWith';
import '../../../utils/mixins.js';
import '../../../utils/with-install.js';
import '../../loading/plugin.js';
import '../../button/props.js';
import '../../../utils/ripple.js';

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var TExtraContent = defineComponent({
  name: "LExtraContent",
  props: {
    presets: Object,
    enableTimePicker: Boolean,
    presetsPlacement: String,
    onPresetClick: Function,
    onConfirmClick: Function,
    selectedValue: String
  },
  setup: function setup(props) {
    var showPanelFooter = computed(function () {
      return props.enableTimePicker || props.presets;
    });
    return {
      showPanelFooter: showPanelFooter
    };
  },
  render: function render() {
    var h = arguments[0];
    var showPanelFooter = this.showPanelFooter;
    return showPanelFooter ? h(TDateFooter, {
      "props": _objectSpread({}, {
        presets: this.presets,
        onPresetClick: this.onPresetClick,
        enableTimePicker: this.enableTimePicker,
        onConfirmClick: this.onConfirmClick,
        presetsPlacement: this.presetsPlacement,
        selectedValue: this.selectedValue
      })
    }) : null;
  }
});

export { TExtraContent as default };
//# sourceMappingURL=extra-content.js.map
