/**
 * ldesign v0.2.3
 * (c) 2022年9月24日 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_rangeInput_rangeInput = require('./range-input.js');
var components_rangeInput_props = require('./props.js');
var components_selectInput_hooks_useOverlayInnerstyle = require('../select-input/hooks/use-overlay-innerstyle.js');
require('../popup/popup.js');
require('@popperjs/core');
require('../../chunks/set-style.js');
require('../../utils/dom.js');
require('vue');
require('raf');
require('lodash/isString');
require('../../utils/easing.js');
require('../../utils/render-node.js');
require('lodash/camelCase');
require('lodash/kebabCase');
require('../../utils/helper.js');
require('../popup/props.js');
require('../popup/container.js');
require('../config-provider/config-receiver.js');
require('lodash/mergeWith');
require('lodash');
require('../config-provider/context.js');
require('../../chunks/zh_CN.js');
require('../../utils/mixins.js');
require('../../utils/map-props.js');
require('../../utils/with-install.js');
require('../../config.js');
require('../config-provider/useConfig.js');
require('@ldesign/icons-vue');
require('../input/index.js');
require('../input/input.js');
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('lodash/isFunction');
require('../../hooks/render-lnode.js');
require('lodash/isObject');

var _RangeInputPopup = VueCompositionAPI.defineComponent({
  name: "LRangeInputPopup",
  props: components_rangeInput_props.RangeInputPopupProps,
  components: {
    LPopup: components_popup_index.Popup
  },

  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
