import "../styles/reset.css";
import "./slider.less";
import { PlacementEnum as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PlacementEnum__, PropTypes as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__, withInstall as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_withInstall__ } from "../shared";
import { Fragment as __WEBPACK_EXTERNAL_MODULE_vue_Fragment__, computed as __WEBPACK_EXTERNAL_MODULE_vue_computed__, createTextVNode as __WEBPACK_EXTERNAL_MODULE_vue_createTextVNode__, createVNode as __WEBPACK_EXTERNAL_MODULE_vue_createVNode__, defineComponent as __WEBPACK_EXTERNAL_MODULE_vue_defineComponent__, nextTick as __WEBPACK_EXTERNAL_MODULE_vue_nextTick__, onMounted as __WEBPACK_EXTERNAL_MODULE_vue_onMounted__, ref as __WEBPACK_EXTERNAL_MODULE_vue_ref__, watch as __WEBPACK_EXTERNAL_MODULE_vue_watch__ } from "vue";
import { usePrefix as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3_usePrefix__ } from "../config-provider";
import { default as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e_default__ } from "../input";
import "../input/input.less";
import { default as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d_default__ } from "../popover";
import "../popover/popover.less";
/******/ var __webpack_modules__ = ({

/***/ 6699
(module) {

function _OverloadYield(e, d) {
  this.v = e, this.k = d;
}
module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ },

/***/ 5726
(module, __unused_webpack_exports, __webpack_require__) {

var regeneratorDefine = __webpack_require__(645);
function _regenerator() {
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
  var e,
    t,
    r = "function" == typeof Symbol ? Symbol : {},
    n = r.iterator || "@@iterator",
    o = r.toStringTag || "@@toStringTag";
  function i(r, n, o, i) {
    var c = n && n.prototype instanceof Generator ? n : Generator,
      u = Object.create(c.prototype);
    return regeneratorDefine(u, "_invoke", function (r, n, o) {
      var i,
        c,
        u,
        f = 0,
        p = o || [],
        y = !1,
        G = {
          p: 0,
          n: 0,
          v: e,
          a: d,
          f: d.bind(e, 4),
          d: function d(t, r) {
            return i = t, c = 0, u = e, G.n = r, a;
          }
        };
      function d(r, n) {
        for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
          var o,
            i = p[t],
            d = G.p,
            l = i[2];
          r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
        }
        if (o || r > 1) return a;
        throw y = !0, n;
      }
      return function (o, p, l) {
        if (f > 1) throw TypeError("Generator is already running");
        for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
          i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
          try {
            if (f = 2, i) {
              if (c || (o = "next"), t = i[o]) {
                if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
                if (!t.done) return t;
                u = t.value, c < 2 && (c = 0);
              } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
              i = e;
            } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
          } catch (t) {
            i = e, c = 1, u = t;
          } finally {
            f = 1;
          }
        }
        return {
          value: t,
          done: y
        };
      };
    }(r, o, i), !0), u;
  }
  var a = {};
  function Generator() {}
  function GeneratorFunction() {}
  function GeneratorFunctionPrototype() {}
  t = Object.getPrototypeOf;
  var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () {
      return this;
    }), t),
    u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
  function f(e) {
    return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
  }
  return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function () {
    return this;
  }), regeneratorDefine(u, "toString", function () {
    return "[object Generator]";
  }), (module.exports = _regenerator = function _regenerator() {
    return {
      w: i,
      m: f
    };
  }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
}
module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ },

/***/ 9540
(module, __unused_webpack_exports, __webpack_require__) {

var regeneratorAsyncGen = __webpack_require__(5800);
function _regeneratorAsync(n, e, r, t, o) {
  var a = regeneratorAsyncGen(n, e, r, t, o);
  return a.next().then(function (n) {
    return n.done ? n.value : a.next();
  });
}
module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ },

/***/ 5800
(module, __unused_webpack_exports, __webpack_require__) {

var regenerator = __webpack_require__(5726);
var regeneratorAsyncIterator = __webpack_require__(4686);
function _regeneratorAsyncGen(r, e, t, o, n) {
  return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise);
}
module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ },

/***/ 4686
(module, __unused_webpack_exports, __webpack_require__) {

var OverloadYield = __webpack_require__(6699);
var regeneratorDefine = __webpack_require__(645);
function AsyncIterator(t, e) {
  function n(r, o, i, f) {
    try {
      var c = t[r](o),
        u = c.value;
      return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) {
        n("next", t, i, f);
      }, function (t) {
        n("throw", t, i, f);
      }) : e.resolve(u).then(function (t) {
        c.value = t, i(c);
      }, function (t) {
        return n("throw", t, i, f);
      });
    } catch (t) {
      f(t);
    }
  }
  var r;
  this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
    return this;
  })), regeneratorDefine(this, "_invoke", function (t, o, i) {
    function f() {
      return new e(function (e, r) {
        n(t, i, e, r);
      });
    }
    return r = r ? r.then(f, f) : f();
  }, !0);
}
module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ },

/***/ 645
(module) {

function _regeneratorDefine(e, r, n, t) {
  var i = Object.defineProperty;
  try {
    i({}, "", {});
  } catch (e) {
    i = 0;
  }
  module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) {
    function o(r, n) {
      _regeneratorDefine(e, r, function (e) {
        return this._invoke(r, n, e);
      });
    }
    r ? i ? i(e, r, {
      value: n,
      enumerable: !t,
      configurable: !t,
      writable: !t
    }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
  }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t);
}
module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ },

/***/ 1918
(module) {

function _regeneratorKeys(e) {
  var n = Object(e),
    r = [];
  for (var t in n) r.unshift(t);
  return function e() {
    for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e;
    return e.done = !0, e;
  };
}
module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ },

/***/ 7048
(module, __unused_webpack_exports, __webpack_require__) {

var OverloadYield = __webpack_require__(6699);
var regenerator = __webpack_require__(5726);
var regeneratorAsync = __webpack_require__(9540);
var regeneratorAsyncGen = __webpack_require__(5800);
var regeneratorAsyncIterator = __webpack_require__(4686);
var regeneratorKeys = __webpack_require__(1918);
var regeneratorValues = __webpack_require__(2696);
function _regeneratorRuntime() {
  "use strict";

  var r = regenerator(),
    e = r.m(_regeneratorRuntime),
    t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
  function n(r) {
    var e = "function" == typeof r && r.constructor;
    return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
  }
  var o = {
    "throw": 1,
    "return": 2,
    "break": 3,
    "continue": 3
  };
  function a(r) {
    var e, t;
    return function (n) {
      e || (e = {
        stop: function stop() {
          return t(n.a, 2);
        },
        "catch": function _catch() {
          return n.v;
        },
        abrupt: function abrupt(r, e) {
          return t(n.a, o[r], e);
        },
        delegateYield: function delegateYield(r, o, a) {
          return e.resultName = o, t(n.d, regeneratorValues(r), a);
        },
        finish: function finish(r) {
          return t(n.f, r);
        }
      }, t = function t(r, _t, o) {
        n.p = e.prev, n.n = e.next;
        try {
          return r(_t, o);
        } finally {
          e.next = n.n;
        }
      }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
      try {
        return r.call(this, e);
      } finally {
        n.p = e.prev, n.n = e.next;
      }
    };
  }
  return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
    return {
      wrap: function wrap(e, t, n, o) {
        return r.w(a(e), t, n, o && o.reverse());
      },
      isGeneratorFunction: n,
      mark: r.m,
      awrap: function awrap(r, e) {
        return new OverloadYield(r, e);
      },
      AsyncIterator: regeneratorAsyncIterator,
      async: function async(r, e, t, o, u) {
        return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u);
      },
      keys: regeneratorKeys,
      values: regeneratorValues
    };
  }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
}
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ },

/***/ 2696
(module, __unused_webpack_exports, __webpack_require__) {

var _typeof = (__webpack_require__(4319)["default"]);
function _regeneratorValues(e) {
  if (null != e) {
    var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
      r = 0;
    if (t) return t.call(e);
    if ("function" == typeof e.next) return e;
    if (!isNaN(e.length)) return {
      next: function next() {
        return e && r >= e.length && (e = void 0), {
          value: e && e[r++],
          done: !e
        };
      }
    };
  }
  throw new TypeError(_typeof(e) + " is not iterable");
}
module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ },

/***/ 4319
(module) {

function _typeof(o) {
  "@babel/helpers - typeof";

  return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
    return typeof o;
  } : function (o) {
    return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
}
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;

/***/ },

/***/ 5799
(module, __unused_webpack_exports, __webpack_require__) {

// TODO(Babel 8): Remove this file.

var runtime = __webpack_require__(7048)();
module.exports = runtime;

// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
try {
  regeneratorRuntime = runtime;
} catch (accidentalStrictMode) {
  if (typeof globalThis === "object") {
    globalThis.regeneratorRuntime = runtime;
  } else {
    Function("r", "regeneratorRuntime = r")(runtime);
  }
}


/***/ }

/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/ 
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ 	// Check if module is in cache
/******/ 	var cachedModule = __webpack_module_cache__[moduleId];
/******/ 	if (cachedModule !== undefined) {
/******/ 		return cachedModule.exports;
/******/ 	}
/******/ 	// Create a new module (and put it into the cache)
/******/ 	var module = __webpack_module_cache__[moduleId] = {
/******/ 		// no module.id needed
/******/ 		// no module.loaded needed
/******/ 		exports: {}
/******/ 	};
/******/ 
/******/ 	// Execute the module function
/******/ 	__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/ 
/******/ 	// Return the exports of the module
/******/ 	return module.exports;
/******/ }
/******/ 
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
/******/ (() => {
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = (module) => {
/******/ 		var getter = module && module.__esModule ?
/******/ 			() => (module['default']) :
/******/ 			() => (module);
/******/ 		__webpack_require__.d(getter, { a: getter });
/******/ 		return getter;
/******/ 	};
/******/ })();
/******/ 
/******/ /* webpack/runtime/define property getters */
/******/ (() => {
/******/ 	// define getter functions for harmony exports
/******/ 	__webpack_require__.d = (exports, definition) => {
/******/ 		for(var key in definition) {
/******/ 			if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ 				Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ 			}
/******/ 		}
/******/ 	};
/******/ })();
/******/ 
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ (() => {
/******/ 	__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ })();
/******/ 
/************************************************************************/

;// external "../shared"

;// external "vue"

;// ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
function asyncGeneratorStep(n, t, e, r, o, a, c) {
  try {
    var i = n[a](c),
      u = i.value;
  } catch (n) {
    return void e(n);
  }
  i.done ? t(u) : Promise.resolve(u).then(r, o);
}
function _asyncToGenerator(n) {
  return function () {
    var t = this,
      e = arguments;
    return new Promise(function (r, o) {
      var a = n.apply(t, e);
      function _next(n) {
        asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
      }
      function _throw(n) {
        asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
      }
      _next(void 0);
    });
  };
}

// EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
var regenerator = __webpack_require__(5799);
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
;// external "../config-provider"

;// external "../input"

;// external "../input/input.less"

;// external "../popover"

;// external "../popover/popover.less"

;// ../../packages/slider/src/slider-button.tsx
/**
 * Tencent is pleased to support the open source community by making
 * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
 *
 * Copyright (C) 2025 Tencent.  All rights reserved.
 *
 * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
 *
 * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
 *
 * ---------------------------------------------------
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
 * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
 * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
 * the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
 * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 */






/* harmony default export */ const slider_button = (__WEBPACK_EXTERNAL_MODULE_vue_defineComponent__({
  name: 'SliderButton',
  props: {
    modelValue: {
      type: Number,
      "default": 0
    },
    params: {
      type: Object,
      "default": function _default() {
        return {};
      }
    }
  },
  emits: ['emitChange', 'resetSize', 'update:modelValue'],
  setup: function setup(props, _ref) {
    var emit = _ref.emit;
    var dragging = __WEBPACK_EXTERNAL_MODULE_vue_ref__(false);
    var isClick = __WEBPACK_EXTERNAL_MODULE_vue_ref__(false);
    var startY = __WEBPACK_EXTERNAL_MODULE_vue_ref__(0);
    var startX = __WEBPACK_EXTERNAL_MODULE_vue_ref__(0);
    var startPosition = __WEBPACK_EXTERNAL_MODULE_vue_ref__(0);
    var newPosition = __WEBPACK_EXTERNAL_MODULE_vue_ref__(null);
    var oldValue = __WEBPACK_EXTERNAL_MODULE_vue_ref__(props.modelValue);
    var currentY = __WEBPACK_EXTERNAL_MODULE_vue_ref__(0);
    var currentX = __WEBPACK_EXTERNAL_MODULE_vue_ref__(0);
    var isMove = __WEBPACK_EXTERNAL_MODULE_vue_ref__(false);
    var button = __WEBPACK_EXTERNAL_MODULE_vue_ref__(null);
    var tip = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      var _props$params$customC, _props$params;
      var tip = '';
      if ((_props$params$customC = props.params.customContent) !== null && _props$params$customC !== void 0 && _props$params$customC[props.modelValue]) {
        var customContent = props.params.customContent[props.modelValue];
        tip = customContent.tip || customContent.label || '';
      }
      var placement = props.params.vertical ? __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PlacementEnum__.RIGHT : __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PlacementEnum__.TOP;
      if ((_props$params = props.params) !== null && _props$params !== void 0 && _props$params.showTip) {
        return {
          content: props.params.formatterTipLabel("".concat(tip || (props === null || props === void 0 ? void 0 : props.modelValue) || '0')),
          placement: placement
        };
      }
      return {
        content: '',
        placement: placement
      };
    });
    var currentPosition = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      return "".concat((props.modelValue - props.params.minValue) / (props.params.maxValue - props.params.minValue) * 100, "%");
    });
    var wrapperStyle = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      return props.params.vertical ? {
        bottom: currentPosition.value
      } : {
        left: currentPosition.value
      };
    });
    var buttonLabel = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      return props.params.formatterButtonLabel(props.modelValue);
    });
    var onButtonDown = function onButtonDown(event) {
      if (props.params.disable) return;
      event.preventDefault();
      onDragStart(event);
      on(window, 'mousemove', onDragging);
      on(window, 'touchmove', onDragging);
      on(window, 'mouseup', _onDragEnd);
      on(window, 'touchend', _onDragEnd);
    };
    var onDragStart = function onDragStart(event) {
      dragging.value = true;
      isClick.value = true;
      if (props.params.vertical) {
        startY.value = event.clientY;
      } else {
        startX.value = event.clientX;
      }
      startPosition.value = parseFloat(currentPosition.value);
      newPosition.value = startPosition.value;
    };
    var onDragging = function onDragging(event) {
      if (dragging.value) {
        isClick.value = false;
        emit('resetSize');
        var diff = 0;
        if (props.params.vertical) {
          currentY.value = event.clientY;
          diff = (startY.value - currentY.value) / props.params.sliderSize * 100;
        } else {
          currentX.value = event.clientX;
          diff = (currentX.value - startX.value) / props.params.sliderSize * 100;
        }
        newPosition.value = startPosition.value + diff;
        setPosition(newPosition.value);
      }
    };
    var _onDragEnd = function onDragEnd() {
      isMove.value = false;
      if (dragging.value) {
        setTimeout(function () {
          dragging.value = false;
          if (!isClick.value) {
            setPosition(newPosition.value);
            emit('emitChange');
          }
        }, 0);
        off(window, 'mousemove', onDragging);
        off(window, 'touchmove', onDragging);
        off(window, 'mouseup', _onDragEnd);
        off(window, 'touchend', _onDragEnd);
      }
    };
    var setPosition = function setPosition(position) {
      if (position === null || isNaN(position)) return;
      if (position < 0) {
        newPosition.value = 0;
      } else if (position > 100) {
        newPosition.value = 100;
      }
      var lengthPerStep = 100 / ((props.params.maxValue - props.params.minValue) / props.params.step);
      var steps = Math.round(position / lengthPerStep);
      var value = steps * lengthPerStep * (props.params.maxValue - props.params.minValue) * 0.01 + props.params.minValue;
      value = parseFloat(value.toFixed(props.params.precision));
      emit('update:modelValue', value);
      if (!dragging.value && props.modelValue !== oldValue.value) {
        oldValue.value = props.modelValue;
      }
    };
    var _usePrefix = __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3_usePrefix__(),
      resolveClassName = _usePrefix.resolveClassName;
    var renderDom = function renderDom() {
      return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
        "ref": button,
        "style": wrapperStyle.value,
        "class": ["".concat(resolveClassName('slider-button')), props.params.vertical ? 'vertical' : 'horizontal', {
          grabbing: dragging.value
        }],
        "tabindex": "0",
        "onClick": function onClick(event) {
          return event.stopPropagation();
        },
        "onMousedown": onButtonDown
      }, [Boolean(tip.value.content) ? __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_vue_Fragment__, null, [__WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d_default__, {
        "boundary": document.body,
        "content": tip.value.content,
        "placement": tip.value.placement,
        "theme": 'dark'
      }, {
        "default": function _default() {
          return [__WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
            "class": ['slider-button', {
              'slider-button-disable': props.params.disable
            }]
          }, null)];
        }
      })]) : __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_vue_Fragment__, null, [__WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
        "class": ['slider-button', {
          'slider-button-disable': props.params.disable
        }]
      }, null)]), props.params.showButtonLabel && !props.params.showIntervalLabel ? __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_vue_Fragment__, null, [__WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
        "class": ['slider-button-label', props.params.vertical ? 'vertical' : 'horizontal']
      }, [buttonLabel.value])]) : null]);
    };
    return {
      renderDom: renderDom,
      setPosition: setPosition,
      tip: tip
    };
  },
  render: function render() {
    return this.renderDom();
  }
}));
;// ../../packages/slider/src/slider.tsx




/**
 * Tencent is pleased to support the open source community by making
 * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
 *
 * Copyright (C) 2025 Tencent.  All rights reserved.
 *
 * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
 *
 * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
 *
 * ---------------------------------------------------
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
 * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
 * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
 * the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
 * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 */






var on = function on(element, event, handler) {
  if (element && event && handler) {
    element.addEventListener(event, handler, false);
  }
};
var off = function off(element, event, handler) {
  if (element && event && handler) {
    element.removeEventListener(event, handler, false);
  }
};
/* harmony default export */ const slider = (__WEBPACK_EXTERNAL_MODULE_vue_defineComponent__({
  name: 'Slider',
  props: {
    modelValue: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.oneOfType([__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.arrayOf(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.number), __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.number]),
    extCls: {
      type: String,
      "default": ''
    },
    // 自定义class
    vertical: {
      type: Boolean,
      "default": false
    },
    // 是否为垂直模式
    height: {
      type: String,
      "default": '200px'
    },
    // 滑动选择器高度 vertical为true时使用
    disable: {
      type: Boolean,
      "default": false
    },
    // 是否禁用
    showTip: {
      type: Boolean,
      "default": false
    },
    // 是否显示tip
    maxValue: {
      type: [Number],
      "default": 100
    },
    // 最大值
    minValue: {
      type: [Number],
      "default": 0
    },
    // 最小值
    step: {
      type: [Number],
      "default": 1
    },
    // 每一步的距离
    range: {
      type: Boolean,
      "default": false
    },
    // 是否为分段式滑块
    showInterval: {
      type: Boolean,
      "default": false
    },
    // 是否显示间断点
    showIntervalLabel: {
      type: Boolean,
      "default": false
    },
    // 是否显示间断点下的文字
    showButtonLabel: {
      type: Boolean,
      "default": false
    },
    // 滑块下是否显示值不可与间断点下的文字同时使用
    showBetweenLabel: {
      type: Boolean,
      "default": false
    },
    // 是否只显示首尾刻度
    showInput: {
      type: Boolean,
      "default": false
    },
    // 是否显示输入框
    customContent: {
      type: Object,
      "default": null
    },
    // 自定义内容
    formatterLabel: {
      type: Function,
      "default": function _default(value) {
        return value;
      }
    },
    // 自定义间断点下文字格式
    formatterButtonLabel: {
      type: Function,
      "default": function _default(value) {
        return value;
      }
    },
    // 自定义滑块下文字格式
    formatterTipLabel: {
      type: Function,
      "default": function _default(value) {
        return value;
      }
    },
    // 自定义tip格式
    labelClick: {
      type: [Boolean, Function],
      "default": false
    }
  },
  emits: ['update:modelValue', 'change'],
  setup: function setup(props, _ref) {
    var slots = _ref.slots,
      emit = _ref.emit;
    /* 滑动选择器长度 */
    var sliderSize = __WEBPACK_EXTERNAL_MODULE_vue_ref__(1);
    /* 第一个滑块与第二个滑块的值 */
    var firstValue = __WEBPACK_EXTERNAL_MODULE_vue_ref__(null);
    var secondValue = __WEBPACK_EXTERNAL_MODULE_vue_ref__(null);
    var oldValue = __WEBPACK_EXTERNAL_MODULE_vue_ref__(null);
    /* 第一个输入框与第二个输入框的值 */
    var firstInput = __WEBPACK_EXTERNAL_MODULE_vue_ref__(0);
    var secondInput = __WEBPACK_EXTERNAL_MODULE_vue_ref__(0);
    /* 以下为refDom */
    var slider = __WEBPACK_EXTERNAL_MODULE_vue_ref__(null);
    var firstbutton = __WEBPACK_EXTERNAL_MODULE_vue_ref__(null);
    var secondbutton = __WEBPACK_EXTERNAL_MODULE_vue_ref__(null);
    var curButtonRef = __WEBPACK_EXTERNAL_MODULE_vue_ref__(null);
    // 小数点后最大位数
    var precision = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      var precisions = [props.minValue, props.maxValue, props.step].map(function (item) {
        var decimal = "".concat(item).split('.')[1];
        return decimal ? decimal.length : 0;
      });
      return Math.max.apply(null, precisions);
    });
    /* 当前滑块的最小值与最大值 */
    var rangeMinValue = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      return Math.min(firstValue.value, secondValue.value);
    });
    var rangeMaxValue = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      return Math.max(firstValue.value, secondValue.value);
    });
    var barSize = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      return props.range ? "".concat(100 * (rangeMaxValue.value - rangeMinValue.value) / (props.maxValue - props.minValue), "%") : "".concat(100 * (firstValue.value - props.minValue) / (props.maxValue - props.minValue), "%");
    });
    var barStart = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      return props.range ? "".concat(100 * (rangeMinValue.value - props.minValue) / (props.maxValue - props.minValue), "%") : '0%';
    });
    /* 当前滑动区域的位置与长度 */
    var barStyle = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      return props.vertical ? {
        height: barSize.value,
        bottom: barStart.value
      } : {
        width: barSize.value,
        left: barStart.value
      };
    });
    /* 断点 */
    var intervals = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      if (!props.showInterval || props.minValue > props.maxValue) return [];
      if (props.step === 0) {
        console.warn('WARNNING:step should not be 0');
        return [];
      }
      var stopCount = (props.maxValue - props.minValue) / props.step;
      var stepWidth = 100 * props.step / (props.maxValue - props.minValue);
      var result = [];
      for (var i = 1; i < stopCount; i++) {
        result.push(i * stepWidth);
      }
      if (props.range) {
        return result.filter(function (step) {
          return step < 100 * (rangeMinValue.value - props.minValue) / (props.maxValue - props.minValue) || step > 100 * (rangeMaxValue.value - props.minValue) / (props.maxValue - props.minValue);
        });
      }
      return result.filter(function (step) {
        return step > 100 * (firstValue.value - props.minValue) / (props.maxValue - props.minValue);
      });
    });
    /* 可滑动区域的样式 */
    var runwayStyle = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      return props.vertical ? {
        height: props.height,
        width: '4px'
      } : {};
    });
    /* 断点下方的文案 */
    var intervalLabels = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      if (!props.showIntervalLabel) return [];
      if (props.step === 0) {
        console.warn('WARNNING:step should not be 0');
        return [];
      }
      var stepWidth = 100 * props.step / (props.maxValue - props.minValue);
      var result = [];
      for (var i = props.minValue, j = 0; i <= props.maxValue; i += props.step, j++) {
        var item = {
          stepWidth: j * stepWidth,
          stepLabel: props.formatterLabel(i)
        };
        result.push(item);
      }
      return result;
    });
    /* 是否显示第二个输入框 */
    var showSecondInput = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      return Array.isArray(props.modelValue);
    });
    /* 自定义断点 */
    var customList = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      if (!props.customContent) {
        return [];
      }
      return Object.keys(props.customContent).sort(function (a, b) {
        return Number(a) - Number(b);
      }).filter(function (value) {
        return Number(value) >= props.minValue && Number(value) <= props.maxValue;
      }).map(function (item) {
        var tip = props.customContent[item].tip;
        var label = props.customContent[item].label;
        return {
          tip: tip || label || '',
          label: label || '',
          percent: (Number(item) - props.minValue) / (props.maxValue - props.minValue) * 100
        };
      });
    });
    /* 传入到滑块的参数 */
    var buttonParms = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      return {
        vertical: props.vertical,
        showTip: props.showTip,
        disable: props.disable,
        maxValue: props.maxValue,
        minValue: props.minValue,
        step: props.step,
        precision: precision.value,
        showButtonLabel: props.showButtonLabel,
        formatterButtonLabel: props.formatterButtonLabel,
        showIntervalLabel: props.showIntervalLabel,
        customContent: props.customContent,
        sliderSize: sliderSize.value,
        formatterTipLabel: props.formatterTipLabel
      };
    });
    // 监听
    __WEBPACK_EXTERNAL_MODULE_vue_watch__(function () {
      return props.modelValue;
    }, function () {
      setValues();
    });
    __WEBPACK_EXTERNAL_MODULE_vue_watch__(function () {
      return firstValue.value;
    }, function (val) {
      if (props.range) {
        emit('update:modelValue', [rangeMinValue.value, rangeMaxValue.value]);
      } else {
        emit('update:modelValue', val);
      }
      firstInput.value = val;
    });
    __WEBPACK_EXTERNAL_MODULE_vue_watch__(function () {
      return secondValue.value;
    }, function (val) {
      emit('update:modelValue', [rangeMinValue.value, rangeMaxValue.value]);
      secondInput.value = val;
    });
    /* 初始化 */
    __WEBPACK_EXTERNAL_MODULE_vue_onMounted__(function () {
      if (props.range) {
        if (Array.isArray(props.modelValue)) {
          firstValue.value = Math.max(props.minValue, Number(props.modelValue[0]));
          secondValue.value = Math.min(props.maxValue, Number(props.modelValue[1]));
        } else {
          firstValue.value = props.minValue;
          secondValue.value = props.maxValue;
        }
        oldValue.value = [firstValue.value, secondValue.value];
      } else {
        if (typeof props.modelValue !== 'number' || isNaN(props.modelValue)) {
          firstValue.value = props.minValue;
        } else {
          firstValue.value = Math.min(props.maxValue, Math.max(props.minValue, props.modelValue));
        }
        oldValue.value = firstValue.value;
      }
      resetSize();
      on(window, 'resize', resetSize());
    });
    var resetSize = function resetSize() {
      if (slider.value) {
        sliderSize.value = slider.value["client".concat(props.vertical ? 'Height' : 'Width')];
      }
    };
    /* 点击容器时设置滑块位置 */
    var setButtonPos = function setButtonPos(event) {
      event.stopPropagation();
      if (props.disable) return;
      resetSize();
      if (props.vertical) {
        var _slider$value;
        var offsetBottom = (_slider$value = slider.value) === null || _slider$value === void 0 ? void 0 : _slider$value.getBoundingClientRect().bottom;
        setPosition((offsetBottom - event.clientY) / sliderSize.value * 100);
      } else {
        var _slider$value2;
        var offsetLeft = (_slider$value2 = slider.value) === null || _slider$value2 === void 0 ? void 0 : _slider$value2.getBoundingClientRect().left;
        setPosition((event.clientX - offsetLeft) / sliderSize.value * 100);
      }
      emitChange();
    };
    /* 是否更改了值 */
    var valueChanged = function valueChanged() {
      if (props.range) {
        return ![rangeMinValue.value, rangeMaxValue.value].every(function (item, index) {
          var _oldValue$value;
          return item === ((_oldValue$value = oldValue.value) === null || _oldValue$value === void 0 ? void 0 : _oldValue$value[index]);
        });
      }
      return props.modelValue !== oldValue.value;
    };
    /* emit */
    var setValues = function setValues() {
      if (props.minValue > props.maxValue) {
        console.error('min should not be greater than max.');
        return;
      }
      var val = props.modelValue;
      if (props.range && Array.isArray(val)) {
        if (val[1] < props.minValue) {
          emit('update:modelValue', [props.minValue, props.minValue]);
        } else if (val[0] > props.maxValue) {
          emit('update:modelValue', [props.maxValue, props.maxValue]);
        } else if (val[0] < props.minValue) {
          emit('update:modelValue', [props.minValue, val[1]]);
        } else if (val[1] > props.maxValue) {
          emit('update:modelValue', [val[0], props.maxValue]);
        } else {
          firstValue.value = Number(val[0]);
          secondValue.value = Number(val[1]);
          if (valueChanged()) {
            oldValue.value = val.slice();
          }
        }
      } else if (!props.range && typeof val === 'number' && !isNaN(val)) {
        if (val < props.minValue) {
          emit('update:modelValue', props.minValue);
        } else if (val > props.maxValue) {
          emit('update:modelValue', props.maxValue);
        } else {
          firstValue.value = val;
          if (valueChanged()) {
            oldValue.value = val;
          }
        }
      }
    };
    /* 派出事件 */
    var emitChange = /*#__PURE__*/function () {
      var _ref2 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
        return regenerator_default().wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 1;
              return __WEBPACK_EXTERNAL_MODULE_vue_nextTick__();
            case 1:
              emit('change', props.range ? [rangeMinValue.value, rangeMaxValue.value] : props.modelValue);
            case 2:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }));
      return function emitChange() {
        return _ref2.apply(this, arguments);
      };
    }();
    /* 断点样式 */
    var getIntervalStyle = function getIntervalStyle(position) {
      return props.vertical ? {
        bottom: "".concat(position, "%")
      } : {
        left: "".concat(position, "%")
      };
    };
    /* 设置滑块位置 */
    var setPosition = function setPosition(percent) {
      if (!props.range) {
        firstbutton.value.setPosition(percent);
        return;
      }
      var targetValue = props.minValue + percent * (props.maxValue - props.minValue) / 100;
      // 绝对值
      if (Math.abs(rangeMinValue.value - targetValue) < Math.abs(rangeMaxValue.value - targetValue)) {
        curButtonRef.value = firstValue.value < secondValue.value ? firstbutton.value : secondbutton.value;
      } else {
        curButtonRef.value = firstValue.value > secondValue.value ? firstbutton.value : secondbutton.value;
      }
      curButtonRef.value.setPosition(percent);
    };
    var firstInputChange = function firstInputChange(v) {
      if (v === '') {
        return;
      }
      var val = parseFloat(v);
      if (val < props.minValue) {
        firstInput.value = props.minValue;
        firstValue.value = props.minValue;
      } else if (val > props.maxValue) {
        firstInput.value = props.maxValue;
        firstValue.value = props.maxValue;
      } else {
        firstValue.value = val;
      }
    };
    var secondInputChange = function secondInputChange(v) {
      if (v === '') {
        return;
      }
      var val = parseFloat(v.toString());
      if (val < props.minValue) {
        secondInput.value = props.minValue;
        secondValue.value = props.minValue;
      } else if (val > props.maxValue) {
        secondInput.value = props.maxValue;
        secondValue.value = props.maxValue;
      } else {
        secondValue.value = val;
      }
    };
    var betweenLabelStyle = function betweenLabelStyle(postion) {
      var value = 0;
      if (postion === 'start') {
        value = props.vertical ? props.maxValue : props.minValue;
      } else {
        value = props.vertical ? props.minValue : props.maxValue;
      }
      if (props.showButtonLabel && [firstValue.value, secondValue.value].includes(value)) {
        return '0';
      }
      return '1';
    };
    var _usePrefix = __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3_usePrefix__(),
      resolveClassName = _usePrefix.resolveClassName;
    var handleStepLabelClick = function handleStepLabelClick(e, step) {
      var _ref3, _step$stepWidth;
      var percent = (_ref3 = (_step$stepWidth = step.stepWidth) !== null && _step$stepWidth !== void 0 ? _step$stepWidth : step.percent) !== null && _ref3 !== void 0 ? _ref3 : step;
      if (props.labelClick) {
        e.stopPropagation();
        e.stopImmediatePropagation();
        e.preventDefault();
        var fnResult;
        if (typeof props.labelClick === 'function') {
          var args = {
            percent: percent,
            step: step
          };
          fnResult = props.labelClick(e, args);
          if (fnResult === false) {
            return;
          }
        }
        percent = typeof fnResult === 'number' ? fnResult : percent;
        console.log('handleStepLabelClick', percent);
        setPosition(percent);
        return;
      }
    };
    var renderDom = function renderDom() {
      var _slots$start, _slots$end;
      return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
        "class": ["".concat(resolveClassName('slider')), props.extCls]
      }, [(_slots$start = slots.start) === null || _slots$start === void 0 ? void 0 : _slots$start.call(slots), __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
        "ref": slider,
        "style": runwayStyle.value,
        "class": "".concat(resolveClassName('slider-runway')),
        "onClick": setButtonPos
      }, [__WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
        "style": barStyle.value,
        "class": ["".concat(resolveClassName('slider-bar')), props.vertical ? 'vertical' : 'horizontal', {
          disable: props.disable
        }]
      }, null), props.showInterval ? intervals.value.map(function (interval, index) {
        if (index === 0 || index === intervals.value.length - 1) {
          return null;
        }
        return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
          "key": index,
          "style": getIntervalStyle(interval),
          "class": ["".concat(resolveClassName('slider-interval')), {
            vertical: props.vertical
          }],
          "onClick": function onClick(e) {
            return handleStepLabelClick(e, interval);
          }
        }, null);
      }) : null, props.customContent ? customList.value.map(function (custom, index) {
        if (index === 0 || index === customList.value.length - 1) {
          return null;
        }
        return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
          "key": index,
          "style": getIntervalStyle(custom.percent),
          "class": ["".concat(resolveClassName('slider-interval')), {
            vertical: props.vertical
          }],
          "onClick": function onClick(e) {
            return handleStepLabelClick(e, custom);
          }
        }, null);
      }) : undefined, props.showBetweenLabel || props.showIntervalLabel || props.customContent ? __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
        "class": ["".concat(resolveClassName('slider-labels')), props.vertical ? 'vertical' : 'horizontal']
      }, [function () {
        if (props.showBetweenLabel) {
          return [__WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
            "style": [{
              opacity: betweenLabelStyle('start')
            }],
            "class": "label-start"
          }, [props.formatterLabel(props.minValue)]), __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
            "style": [{
              opacity: betweenLabelStyle('end')
            }],
            "class": "label-end"
          }, [props.formatterLabel(props.maxValue)])];
        }
        if (props.showIntervalLabel) {
          return intervalLabels.value.map(function (intervalLabel, index) {
            return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
              "key": index,
              "style": getIntervalStyle(intervalLabel.stepWidth),
              "class": ["".concat(resolveClassName('slider-label')), props.vertical ? 'vertical' : 'horizontal'],
              "onClick": function onClick(e) {
                return handleStepLabelClick(e, intervalLabel);
              }
            }, [intervalLabel.stepLabel]);
          });
        }
        if (props.customContent) {
          return customList.value.map(function (item, index) {
            return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
              "key": index,
              "style": getIntervalStyle(item.percent),
              "class": ["".concat(resolveClassName('slider-label')), props.vertical ? 'vertical' : 'horizontal'],
              "onClick": function onClick(e) {
                return handleStepLabelClick(e, item);
              }
            }, [item.label]);
          });
        }
        return undefined;
      }()]) : undefined, __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(slider_button, {
        "ref": firstbutton,
        "modelValue": firstValue.value,
        "onUpdate:modelValue": function onUpdateModelValue($event) {
          return firstValue.value = $event;
        },
        "params": buttonParms.value,
        "onEmitChange": emitChange,
        "onResetSize": resetSize
      }, null), props.range ? __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(slider_button, {
        "ref": secondbutton,
        "modelValue": secondValue.value,
        "onUpdate:modelValue": function onUpdateModelValue($event) {
          return secondValue.value = $event;
        },
        "params": buttonParms.value,
        "onEmitChange": emitChange,
        "onResetSize": resetSize
      }, null) : undefined]), props.showInput && !props.vertical ? __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
        "class": "".concat(resolveClassName('slider-input'))
      }, [__WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
        "class": "input-item"
      }, [__WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e_default__, {
        "max": props.maxValue,
        "min": props.minValue,
        "modelValue": firstInput.value,
        "type": "number",
        "onChange": firstInputChange
      }, null)]), showSecondInput.value && secondValue.value ? [__WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
        "class": "input-center"
      }, [__WEBPACK_EXTERNAL_MODULE_vue_createTextVNode__("\uFF5E")]), __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
        "class": "input-item"
      }, [__WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e_default__, {
        "max": props.maxValue,
        "min": props.minValue,
        "modelValue": secondInput.value,
        "type": "number",
        "onChange": secondInputChange
      }, null)])] : undefined]) : undefined, (_slots$end = slots.end) === null || _slots$end === void 0 ? void 0 : _slots$end.call(slots)]);
    };
    return {
      renderDom: renderDom
    };
  },
  render: function render() {
    return this.renderDom();
  }
}));
;// ../../packages/slider/src/index.ts
/**
 * Tencent is pleased to support the open source community by making
 * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
 *
 * Copyright (C) 2025 Tencent.  All rights reserved.
 *
 * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
 *
 * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
 *
 * ---------------------------------------------------
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
 * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
 * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
 * the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
 * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 */


var Slider = __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_withInstall__(slider);
/* harmony default export */ const src = (Slider);
export { src as default };
