/**
 * tdesign v0.32.0
 * (c) 2021 tdesign
 * @license MIT
 */

import Vue from 'vue';
import { Button } from '../button/index.js';
import { prefix } from '../config.js';
import '../button/button.js';
import '@babel/runtime/helpers/defineProperty';
import '../utils/classnames.js';
import '../loading/index.js';
import '../loading/loading.js';
import '../loading/icon/gradient.js';
import '../utils/set-style.js';
import '../utils/dom.js';
import 'raf';
import 'lodash/isString';
import '../utils/easing.js';
import '../utils/render-tnode.js';
import '@babel/runtime/helpers/typeof';
import '../utils/transfer-dom.js';
import '../loading/props.js';
import '../utils/withInstall.js';
import 'lodash/capitalize';
import './style/css.js';
import '../loading/type.js';
import '../loading/plugin.js';
import '../button/props.js';
import '../utils/ripple.js';
import '../button/type.js';

var CalendarPresets = Vue.extend({
  components: {
    TButton: Button
  },
  props: {
    global: {
      type: Object
    },
    presets: {
      type: Object
    },
    onClick: Function
  },
  methods: {
    clickPreset: function clickPreset(value) {
      this.onClick(value);
    }
  },
  render: function render() {
    var _this = this;

    var h = arguments[0];
    var presets = this.presets;
    return h("div", {
      "class": "".concat(prefix, "-date-picker__presets")
    }, [h("ul", [presets && Object.keys(presets).map(function (key) {
      return h("li", {
        "key": key
      }, [h("a", {
        "on": {
          "click": function click() {
            return _this.clickPreset(presets[key]);
          }
        }
      }, [key])]);
    })])]);
  }
});

export { CalendarPresets as default };
//# sourceMappingURL=calendar-presets.js.map
