import "../styles/reset.css";
import "./dialog.less";
import { AlignEnum as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_AlignEnum__, PropTypes as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__, ThemeEnum as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_ThemeEnum__, alignType as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_alignType__, dialogTypeUnion as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_dialogTypeUnion__, withInstall as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_withInstall__ } from "../shared";
import { Comment as __WEBPACK_EXTERNAL_MODULE_vue_Comment__, Fragment as __WEBPACK_EXTERNAL_MODULE_vue_Fragment__, computed as __WEBPACK_EXTERNAL_MODULE_vue_computed__, createVNode as __WEBPACK_EXTERNAL_MODULE_vue_createVNode__, defineComponent as __WEBPACK_EXTERNAL_MODULE_vue_defineComponent__, getCurrentInstance as __WEBPACK_EXTERNAL_MODULE_vue_getCurrentInstance__, isVNode as __WEBPACK_EXTERNAL_MODULE_vue_isVNode__, mergeProps as __WEBPACK_EXTERNAL_MODULE_vue_mergeProps__, reactive as __WEBPACK_EXTERNAL_MODULE_vue_reactive__, ref as __WEBPACK_EXTERNAL_MODULE_vue_ref__, useAttrs as __WEBPACK_EXTERNAL_MODULE_vue_useAttrs__, useSlots as __WEBPACK_EXTERNAL_MODULE_vue_useSlots__ } from "vue";
import { default as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a_default__ } from "../button";
import "../button/button.less";
import { useLocale as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3_useLocale__, usePrefix as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3_usePrefix__ } from "../config-provider";
import { Error as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3_Error__ } from "../icon";
import { default as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388_default__, propsMixin as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388_propsMixin__ } from "../modal";
import "../modal/modal.less";
import { default as __WEBPACK_EXTERNAL_MODULE_lodash_cloneDeep_13f2b125_default__ } from "lodash/cloneDeep";
/******/ 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/typeof.js
function _typeof(o) {
  "@babel/helpers - typeof";

  return _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;
  }, _typeof(o);
}

;// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js

function toPrimitive(t, r) {
  if ("object" != _typeof(t) || !t) return t;
  var e = t[Symbol.toPrimitive];
  if (void 0 !== e) {
    var i = e.call(t, r || "default");
    if ("object" != _typeof(i)) return i;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return ("string" === r ? String : Number)(t);
}

;// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js


function toPropertyKey(t) {
  var i = toPrimitive(t, "string");
  return "symbol" == _typeof(i) ? i : i + "";
}

;// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js

function _defineProperty(e, r, t) {
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
    value: t,
    enumerable: !0,
    configurable: !0,
    writable: !0
  }) : e[r] = t, e;
}

;// ../../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 "../button"

;// external "../button/button.less"

;// external "../config-provider"

;// external "../icon"

;// external "../modal"

;// external "../modal/modal.less"

;// external "lodash/cloneDeep"

;// ../../packages/dialog/src/props.ts

function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
/*
 * 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 dialogProps = __WEBPACK_EXTERNAL_MODULE_lodash_cloneDeep_13f2b125_default__(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388_propsMixin__);
dialogProps.width["default"] = '480';
var props = _objectSpread(_objectSpread({}, dialogProps), {}, {
  // 是否可拖拽
  draggable: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.bool.def(false),
  // 确认按钮文字
  // confirmText: PropTypes.string.def('确定'),
  confirmText: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.string,
  // 取消按钮文字
  // cancelText: PropTypes.string.def('取消'),
  cancelText: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.string,
  // 步骤按钮文字
  // prevText: PropTypes.string.def('上一步'),
  prevText: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.string,
  // nextText: PropTypes.string.def('下一步'),
  nextText: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.string,
  // 当前步骤
  current: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.number.def(1),
  // 总步数
  totalStep: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.number,
  // 弹框的标题
  title: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.string.def(''),
  // 显示 header 的位置
  headerAlign: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_alignType__().def(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_AlignEnum__.LEFT),
  // 显示 footer 的位置
  footerAlign: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_alignType__().def(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_AlignEnum__.RIGHT),
  // 颜色 按钮类型
  confirmButtonTheme: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.theme().def(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_ThemeEnum__.PRIMARY),
  // 对话框类型
  dialogType: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_dialogTypeUnion__(),
  // 按钮loading
  isLoading: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.bool.def(false),
  // 是否为默认内容区包裹 dialog-content 样式类
  showContentClass: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.bool.def(true),
  // 是否显示在body内即与#app同级
  transfer: __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_PropTypes__.oneOfType([Boolean, String, HTMLElement]).def(true)
});
/* harmony default export */ const src_props = (props);
;// ../../packages/dialog/src/dialog.tsx






function dialog_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
function dialog_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? dialog_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : dialog_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }

/*
 * 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.
 */








function _isSlot(s) {
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !__WEBPACK_EXTERNAL_MODULE_vue_isVNode__(s);
}
/* harmony default export */ const dialog = (__WEBPACK_EXTERNAL_MODULE_vue_defineComponent__({
  name: 'Dialog',
  inheritAttrs: false,
  props: src_props,
  emits: {
    closed: function closed() {
      return true;
    },
    shown: function shown() {
      return true;
    },
    hidden: function hidden() {
      return true;
    },
    'update:isShow': function updateIsShow(value) {
      return value !== undefined;
    },
    confirm: function confirm() {
      return true;
    },
    prev: function prev() {
      return true;
    },
    next: function next() {
      return true;
    }
  },
  setup: function setup(props, _ref) {
    var emit = _ref.emit;
    var t = __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3_useLocale__('dialog');
    var attrs = __WEBPACK_EXTERNAL_MODULE_vue_useAttrs__();
    var slots = __WEBPACK_EXTERNAL_MODULE_vue_useSlots__();
    var _usePrefix = __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3_usePrefix__(),
      resolveClassName = _usePrefix.resolveClassName;
    var instance = __WEBPACK_EXTERNAL_MODULE_vue_getCurrentInstance__();
    var isMoveing = __WEBPACK_EXTERNAL_MODULE_vue_ref__(false);
    var positionData = __WEBPACK_EXTERNAL_MODULE_vue_reactive__({
      moveStyle: {
        top: '50%',
        left: '50%'
      }
    });
    var localConfirmText = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      if (props.confirmText === undefined) {
        return t.value.ok;
      }
      return props.confirmText;
    });
    var localCancelText = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      if (props.cancelText === undefined) {
        return t.value.cancel;
      }
      return props.cancelText;
    });
    var localPrevText = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      if (props.prevText === undefined) {
        return t.value.prev;
      }
      return props.prevText;
    });
    var localNextText = __WEBPACK_EXTERNAL_MODULE_vue_computed__(function () {
      if (props.nextText === undefined) {
        return t.value.next;
      }
      return props.nextText;
    });
    // 关闭弹框
    var handleClose = /*#__PURE__*/function () {
      var _ref2 = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
        var shouldClose;
        return regenerator_default().wrap(function (_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              shouldClose = true;
              if (!(typeof props.beforeClose === 'function')) {
                _context.next = 2;
                break;
              }
              _context.next = 1;
              return props.beforeClose();
            case 1:
              shouldClose = _context.sent;
            case 2:
              if (shouldClose) {
                emit('update:isShow', false);
                emit('closed');
              }
            case 3:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }));
      return function handleClose() {
        return _ref2.apply(this, arguments);
      };
    }();
    var handleConfirm = function handleConfirm() {
      emit('update:isShow', false);
      emit('confirm');
    };
    var handleShown = function handleShown() {
      emit('shown');
    };
    var handleHidden = function handleHidden() {
      emit('hidden');
    };
    // 上一步
    var handlePrevStep = function handlePrevStep() {
      emit('prev');
    };
    // 下一步
    var handleNextStep = function handleNextStep() {
      emit('next');
    };
    // 拖拽事件
    var handleMousedown = function handleMousedown(e) {
      if (props.fullscreen) {
        return false;
      }
      if (!props.draggable) {
        return false;
      }
      var clientRect = e.currentTarget.parentNode.parentNode.getBoundingClientRect();
      var boxLeft = clientRect.left + clientRect.width / 2;
      var boxTop = clientRect.top + clientRect.height / 2;
      isMoveing.value = true;
      var startX = e.clientX;
      var startY = e.clientY;
      document.onmousemove = function (evt) {
        var diffX = evt.clientX - startX;
        var diffY = evt.clientY - startY;
        positionData.moveStyle.left = "".concat(boxLeft + diffX, "px");
        positionData.moveStyle.top = "".concat(boxTop + diffY, "px");
      };
      document.onmouseup = function () {
        document.onmousemove = null;
        document.onmouseup = null;
        isMoveing.value = false;
      };
    };
    var _isSlotContentEmpty = function isSlotContentEmpty(content) {
      if (!content) return true;
      if (Array.isArray(content)) return content.every(_isSlotContentEmpty);
      if (!__WEBPACK_EXTERNAL_MODULE_vue_isVNode__(content)) return false;
      if (content.type === __WEBPACK_EXTERNAL_MODULE_vue_Comment__) return true;
      if (content.type === __WEBPACK_EXTERNAL_MODULE_vue_Fragment__) return _isSlotContentEmpty(content.children);
      return false;
    };
    return function () {
      var _slots$header;
      var headerSlotContent = (_slots$header = slots.header) === null || _slots$header === void 0 ? void 0 : _slots$header.call(slots);
      var hasHeaderSlot = !!slots.header;
      var shouldRenderHeader = hasHeaderSlot ? !_isSlotContentEmpty(headerSlotContent) : Boolean(props.title);
      var dialogSlot = {
        header: function header() {
          var _slots$tools;
          if (!shouldRenderHeader) {
            return null;
          }
          return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_vue_Fragment__, null, [!props.fullscreen && props.draggable && __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
            "class": resolveClassName('dialog-tool'),
            "onMousedown": handleMousedown
          }, [(_slots$tools = slots.tools) === null || _slots$tools === void 0 ? void 0 : _slots$tools.call(slots)]), __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
            "class": resolveClassName('dialog-header')
          }, [__WEBPACK_EXTERNAL_MODULE_vue_createVNode__("span", {
            "style": "text-align: ".concat(props.headerAlign),
            "class": resolveClassName('dialog-title')
          }, [hasHeaderSlot ? headerSlotContent : props.title])])]);
        },
        "default": function _default() {
          if (!slots["default"]) {
            return null;
          }
          var defaultSlotContent = slots["default"]();
          if (!props.showContentClass) {
            return defaultSlotContent;
          }
          return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
            "class": resolveClassName('dialog-content')
          }, [defaultSlotContent]);
        },
        footer: function footer() {
          if (slots.footer) {
            return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
              "style": "text-align: ".concat(props.footerAlign),
              "class": resolveClassName('dialog-footer')
            }, [slots.footer()]);
          }
          if (!['process', 'operation', 'confirm'].includes(props.dialogType)) {
            return null;
          }
          var renderFooterAction = function renderFooterAction() {
            if (props.dialogType === 'operation') {
              return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_vue_Fragment__, null, [__WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a_default__, {
                "loading": props.isLoading,
                "theme": props.confirmButtonTheme,
                "onClick": handleConfirm
              }, {
                "default": function _default() {
                  return [localConfirmText.value];
                }
              }), __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a_default__, {
                "class": resolveClassName('dialog-cancel'),
                "disabled": props.isLoading,
                "onClick": handleClose
              }, {
                "default": function _default() {
                  return [localCancelText.value];
                }
              })]);
            }
            if (props.dialogType === 'confirm') {
              return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a_default__, {
                "loading": props.isLoading,
                "theme": props.confirmButtonTheme,
                "onClick": handleConfirm
              }, {
                "default": function _default() {
                  return [localConfirmText.value];
                }
              });
            }
            if (props.dialogType === 'process') {
              return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_vue_Fragment__, null, [props.current > 1 && __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a_default__, {
                "class": resolveClassName('dialog-perv'),
                "onClick": handlePrevStep
              }, {
                "default": function _default() {
                  return [localPrevText.value];
                }
              }), props.current >= 1 && props.current < props.totalStep && __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a_default__, {
                "class": resolveClassName('dialog-next'),
                "onClick": handleNextStep
              }, {
                "default": function _default() {
                  return [localNextText.value];
                }
              }), props.current >= 1 && props.current === props.totalStep && __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a_default__, {
                "loading": props.isLoading,
                "theme": props.confirmButtonTheme,
                "onClick": handleConfirm
              }, {
                "default": function _default() {
                  return [localConfirmText.value];
                }
              }), __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_button_a2ea7c9a_default__, {
                "class": resolveClassName('dialog-cancel'),
                "disabled": props.isLoading,
                "onClick": handleClose
              }, {
                "default": function _default() {
                  return [localCancelText.value];
                }
              })]);
            }
          };
          return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__("div", {
            "style": "text-align: ".concat(props.footerAlign),
            "class": resolveClassName('dialog-footer')
          }, [renderFooterAction()]);
        },
        close: function close() {
          return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3_Error__, null, null);
        }
      };
      var inheritAttrs = dialog_objectSpread({}, attrs);
      if (instance.vnode.scopeId) {
        inheritAttrs[instance.vnode.scopeId] = '';
      }
      return __WEBPACK_EXTERNAL_MODULE_vue_createVNode__(__WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_modal_d1344388_default__, __WEBPACK_EXTERNAL_MODULE_vue_mergeProps__(inheritAttrs, {
        "width": props.fullscreen ? 'auto' : props.width,
        "class": _defineProperty(_defineProperty({}, resolveClassName('dialog'), true), 'is-fullscreen', props.fullscreen),
        "animateType": "fadein",
        "beforeClose": props.beforeClose,
        "closeIcon": props.closeIcon,
        "escClose": props.escClose,
        "fullscreen": props.fullscreen,
        "isShow": props.isShow,
        "left": props.fullscreen ? '0px' : positionData.moveStyle.left,
        "quickClose": props.quickClose,
        "renderDirective": props.renderDirective,
        "showMask": props.showMask,
        "top": props.fullscreen ? '0px' : positionData.moveStyle.top,
        "transfer": props.transfer,
        "zIndex": props.zIndex,
        "onClose": handleClose,
        "onHidden": handleHidden,
        "onShown": handleShown
      }), _isSlot(dialogSlot) ? dialogSlot : {
        "default": function _default() {
          return [dialogSlot];
        }
      });
    };
  }
}));
;// ../../packages/dialog/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 BkDialog = __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03_withInstall__(dialog);
/* harmony default export */ const src = (BkDialog);
export { src as default };
