/**
 * 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_popup_index = require('../popup/index.js');
var hooks_useConfig = require('../../hooks/use-config.js');
var components_selectInput_hooks_useOverlayInnerstyle = require('../select-input/hooks/use-overlay-innerstyle.js');
var components_rangeInput_rangeInput = require('./range-input.js');
var components_rangeInput_props = require('./props.js');
require('../../utils/map-props.js');
require('vue');
require('../../utils/with-install.js');
require('lodash');
require('../../config.js');
require('../popup/popup.js');
require('@popperjs/core');
require('../../chunks/set-style.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/helper.js');
require('lodash/camelCase');
require('../config-provider/config-receiver.js');
require('lodash/mergeWith');
require('../config-provider/context.js');
require('../../chunks/zh_CN.js');
require('../../utils/mixins.js');
require('../popup/props.js');
require('../popup/container.js');
require('../config-provider/useConfig.js');
require('lodash/isObject');
require('lodash/isFunction');
require('@ldesign/icons-vue');
require('../input/index.js');
require('../input/input.js');
require('lodash/kebabCase');
require('../../chunks/helper2.js');
require('../../utils/event.js');
require('../input/props.js');
require('../input/group.js');
require('../../hooks/use-vmodel.js');
require('../../hooks/use-global-icon.js');
require('../../hooks/lnode.js');
require('lodash/isEmpty');
require('../../hooks/render-lnode.js');

var _RangeInputPopup = VueCompositionAPI.defineComponent({
  name: "LRangeInputPopup",
  components: {
    LPopup: components_popup_index.Popup
  },
  props: components_rangeInput_props.RangeInputPopupProps,
  setup(props2) {
    const COMPONENT_NAME = hooks_useConfig.usePrefixClass("range-input-popup");
    const {
      tOverlayInnerStyle,
      innerPopupVisible,
      onInnerPopupVisibleChange
    } = components_selectInput_hooks_useOverlayInnerstyle["default"](props2);
    const popupClasses = VueCompositionAPI.computed(() => [COMPONENT_NAME.value, {
      [`${COMPONENT_NAME.value}--visible`]: props2.popupVisible || innerPopupVisible.value
    }]);
    return {
      COMPONENT_NAME,
      tOverlayInnerStyle,
      innerPopupVisible,
      onInnerPopupVisibleChange,
      popupClasses
    };
  },
  render() {
    const h = arguments[0];
    const {
      tOverlayInnerStyle,
      innerPopupVisible,
      onInnerPopupVisibleChange,
      popupClasses
    } = this;
    return h("div", {
      "class": popupClasses
    }, [h("l-popup", {
      "attrs": {
        "hideEmptyPopup": true,
        "content": this.panel,
        "trigger": "click",
        "placement": "bottom-left",
        "visible": this.popupVisible || innerPopupVisible
      },
      "props": {
        ...{
          disabled: this.disabled,
          overlayInnerStyle: tOverlayInnerStyle,
          onVisibleChange: onInnerPopupVisibleChange,
          ...this.popupProps
        }
      }
    }, [h(components_rangeInput_rangeInput["default"], {
      "props": {
        ...{
          value: this.inputValue,
          onChange: this.onInputChange,
          disabled: this.disabled,
          status: this.status,
          tips: this.tips,
          ...this.rangeInputProps
        }
      }
    })])]);
  }
});

exports["default"] = _RangeInputPopup;
//# sourceMappingURL=range-input-popup.js.map
