/**
 * ldesign v0.2.14
 * (c) 2022/11/2 16:16 built by swimly
 * @license MIT
 */

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-def4c2ce.js';
import '../../button/index.js';
import '../../../utils/with-install.js';
import 'vue';
import '../../../config.js';
import '../../button/button.js';
import '@ldesign/icons-vue';
import '../../loading/index.js';
import '../../loading/loading.js';
import '../../../utils/dom.js';
import 'raf';
import 'lodash/isString';
import '../../../_chunks/dep-70c789e5.js';
import '../../../_chunks/dep-5210251b.js';
import '../../../utils/easing.js';
import '../../../utils/render-node.js';
import '../../../utils/transfer-dom.js';
import '../../config-provider/config-receiver.js';
import 'lodash/mergeWith';
import '../../../utils/mixins.js';
import '../../loading/props.js';
import '../../loading/icon/gradient.js';
import '../../../_chunks/dep-eb467ddf.js';
import '../../../_chunks/dep-cf772670.js';
import '../../../_chunks/dep-47d77fc8.js';
import '../../loading/plugin.js';
import '../../../utils/ripple.js';
import '../../button/props.js';

var TExtraContent = defineComponent({
  name: "LExtraContent",
  props: {
    presets: Object,
    enableTimePicker: Boolean,
    presetsPlacement: String,
    onPresetClick: Function,
    onConfirmClick: Function,
    selectedValue: String
  },
  setup(props) {
    const showPanelFooter = computed(() => props.enableTimePicker || props.presets);
    return {
      showPanelFooter
    };
  },
  render() {
    const h = arguments[0];
    const {
      showPanelFooter
    } = this;
    return showPanelFooter ? h(TDateFooter, {
      "props": {
        ...{
          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
