text: "use strict";
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  
  var _defineProperty2 = require("babel-runtime/helpers/defineProperty");
  
  var _defineProperty3 = _interopRequireDefault(_defineProperty2);
  
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
  
  function noop() {}
  exports["default"] = {
    functional: true,
    render: function render(h, context) {
      var _className;
  
      var props = context.props,
          _context$listeners = context.listeners,
          listeners = _context$listeners === undefined ? {} : _context$listeners;
      var prefixCls = props.prefixCls,
          locale = props.locale,
          showTimePicker = props.showTimePicker,
          timePickerDisabled = props.timePickerDisabled;
      var _listeners$closeTimeP = listeners.closeTimePicker,
          closeTimePicker = _listeners$closeTimeP === undefined ? noop : _listeners$closeTimeP,
          _listeners$openTimePi = listeners.openTimePicker,
          openTimePicker = _listeners$openTimePi === undefined ? noop : _listeners$openTimePi;
  
      var className = (_className = {}, (0, _defineProperty3["default"])(_className, prefixCls + "-time-picker-btn", true), (0, _defineProperty3["default"])(_className, prefixCls + "-time-picker-btn-disabled", timePickerDisabled), _className);
      var onClick = noop;
      if (!timePickerDisabled) {
        onClick = showTimePicker ? closeTimePicker : openTimePicker;
      }
      return h(
        "a",
        { "class": className, attrs: { role: "button" },
          on: {
            "click": onClick
          }
        },
        [showTimePicker ? locale.dateSelect : locale.timeSelect]
      );
    }
  };