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

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var VueCompositionAPI = require('@vue/composition-api');
var components_datePicker_base_Footer = require('../base/Footer.js');
require('../../../hooks/use-config.js');
require('../../config-provider/useConfig.js');
require('../../config-provider/context.js');
require('lodash');
require('../../../chunks/zh_CN.js');
require('../../button/index.js');
require('../../../utils/with-install.js');
require('vue');
require('../../../config.js');
require('../../button/button.js');
require('@ldesign/icons-vue');
require('../../loading/index.js');
require('../../loading/loading.js');
require('../../../utils/dom.js');
require('raf');
require('lodash/isString');
require('../../../chunks/log.js');
require('../../../chunks/_commonjsHelpers-2e6815bd.js');
require('../../../utils/easing.js');
require('../../../utils/render-node.js');
require('../../../utils/transfer-dom.js');
require('../../config-provider/config-receiver.js');
require('lodash/mergeWith');
require('../../../utils/mixins.js');
require('../../loading/props.js');
require('../../loading/icon/gradient.js');
require('../../../chunks/defineProperty-838e4192.js');
require('../../../chunks/set-style.js');
require('../../../chunks/helper2.js');
require('../../loading/plugin.js');
require('../../../utils/ripple.js');
require('../../button/props.js');

var TExtraContent = VueCompositionAPI.defineComponent({
  name: "LExtraContent",
  props: {
    presets: Object,
    enableTimePicker: Boolean,
    presetsPlacement: String,
    onPresetClick: Function,
    onConfirmClick: Function,
    selectedValue: String
  },
  setup(props) {
    const showPanelFooter = VueCompositionAPI.computed(() => props.enableTimePicker || props.presets);
    return {
      showPanelFooter
    };
  },
  render() {
    const h = arguments[0];
    const {
      showPanelFooter
    } = this;
    return showPanelFooter ? h(components_datePicker_base_Footer["default"], {
      "props": {
        ...{
          presets: this.presets,
          onPresetClick: this.onPresetClick,
          enableTimePicker: this.enableTimePicker,
          onConfirmClick: this.onConfirmClick,
          presetsPlacement: this.presetsPlacement,
          selectedValue: this.selectedValue
        }
      }
    }) : null;
  }
});

exports["default"] = TExtraContent;
//# sourceMappingURL=extra-content.js.map
