'use strict';

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

var vue = require('vue');
require('../../../../../../utils/index.js');
require('../../../numberInterval/index.js');
var useWatchModelChange = require('../../composables/useWatchModelChange.js');
var searchFormNumberInterval = require('./searchFormNumberInterval.js');
var event = require('../../../../../../utils/src/elementPlus/event.js');
var numberInterval = require('../../../numberInterval/numberInterval.js');

var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  ...{
    name: searchFormNumberInterval.SearchFormNumberIntervalName
  },
  __name: "SearchFormNumberInterval",
  props: /* @__PURE__ */ vue.mergeModels(searchFormNumberInterval.searchFormNumberIntervalProps, {
    "modelValue": {},
    "modelModifiers": {}
  }),
  emits: /* @__PURE__ */ vue.mergeModels(searchFormNumberInterval.searchFormNumberIntervalEmits, ["update:modelValue"]),
  setup(__props, { emit: __emit }) {
    const props = __props;
    const modelValue = vue.useModel(__props, "modelValue");
    const emit = __emit;
    const numberIntervalEvents = event.getGmEvent(numberInterval.numIntervalEmits, emit);
    useWatchModelChange.useWatchModelChange(modelValue, { prop: props.prop, noDefaultSync: props.noDefaultSync });
    return (_ctx, _cache) => {
      const _component_gm_number_interval = vue.resolveComponent("gm-number-interval");
      const _component_gm_form_item = vue.resolveComponent("gm-form-item");
      return vue.openBlock(), vue.createBlock(_component_gm_form_item, { prop: _ctx.prop }, {
        default: vue.withCtx(() => [
          vue.createVNode(_component_gm_number_interval, vue.mergeProps({
            modelValue: modelValue.value,
            "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
            disabled: _ctx.disabled,
            separator: _ctx.separator,
            modelSeparator: _ctx.modelSeparator,
            minPlaceholder: `${_ctx.label}\u6700\u5C0F\u503C`,
            maxPlaceholder: `${_ctx.label}\u6700\u5927\u503C`,
            multiple: false,
            clearable: ""
          }, vue.toHandlers(vue.unref(numberIntervalEvents))), null, 16, ["modelValue", "disabled", "separator", "modelSeparator", "minPlaceholder", "maxPlaceholder"])
        ]),
        _: 1
        /* STABLE */
      }, 8, ["prop"]);
    };
  }
});

exports.default = _sfc_main;
//# sourceMappingURL=SearchFormNumberInterval.vue2.js.map
