jwt-ui 1.0.7 → 1.0.8-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,11 +9,19 @@
9
9
  /* harmony export */ "HD": function() { return /* binding */ isString; },
10
10
  /* harmony export */ "Kn": function() { return /* binding */ isObject; },
11
11
  /* harmony export */ "RI": function() { return /* binding */ hasOwn; },
12
+ /* harmony export */ "S0": function() { return /* binding */ isIntegerKey; },
13
+ /* harmony export */ "W7": function() { return /* binding */ toRawType; },
12
14
  /* harmony export */ "_A": function() { return /* binding */ camelize; },
15
+ /* harmony export */ "_N": function() { return /* binding */ isMap; },
16
+ /* harmony export */ "aU": function() { return /* binding */ hasChanged; },
13
17
  /* harmony export */ "dG": function() { return /* binding */ NOOP; },
14
- /* harmony export */ "mf": function() { return /* binding */ isFunction; }
18
+ /* harmony export */ "fY": function() { return /* binding */ makeMap; },
19
+ /* harmony export */ "kJ": function() { return /* binding */ isArray; },
20
+ /* harmony export */ "l7": function() { return /* binding */ extend; },
21
+ /* harmony export */ "mf": function() { return /* binding */ isFunction; },
22
+ /* harmony export */ "yk": function() { return /* binding */ isSymbol; }
15
23
  /* harmony export */ });
16
- /* unused harmony exports EMPTY_ARR, EMPTY_OBJ, NO, PatchFlagNames, capitalize, def, escapeHtml, escapeHtmlComment, extend, genPropsAccessExp, generateCodeFrame, getGlobalThis, hasChanged, hyphenate, includeBooleanAttr, invokeArrayFns, isArray, isBooleanAttr, isBuiltInDirective, isDate, isGloballyWhitelisted, isHTMLTag, isIntegerKey, isKnownHtmlAttr, isKnownSvgAttr, isMap, isModelListener, isNoUnitNumericStyleProp, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isSymbol, isVoidTag, looseEqual, looseIndexOf, makeMap, normalizeClass, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString */
24
+ /* unused harmony exports EMPTY_ARR, EMPTY_OBJ, NO, PatchFlagNames, capitalize, def, escapeHtml, escapeHtmlComment, genPropsAccessExp, generateCodeFrame, getGlobalThis, hyphenate, includeBooleanAttr, invokeArrayFns, isBooleanAttr, isBuiltInDirective, isDate, isGloballyWhitelisted, isHTMLTag, isKnownHtmlAttr, isKnownSvgAttr, isModelListener, isNoUnitNumericStyleProp, isOn, isPlainObject, isPromise, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isVoidTag, looseEqual, looseIndexOf, normalizeClass, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toTypeString */
17
25
  /**
18
26
  * Make a map and return a function for checking if a key
19
27
  * is in that map.
@@ -40034,7 +40042,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtCascaderArea
40034
40042
 
40035
40043
  /***/ }),
40036
40044
 
40037
- /***/ 5462:
40045
+ /***/ 8007:
40038
40046
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
40039
40047
 
40040
40048
  "use strict";
@@ -40048,10 +40056,10 @@ __webpack_require__.d(__webpack_exports__, {
40048
40056
 
40049
40057
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
40050
40058
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
40051
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtEditor/index.vue?vue&type=template&id=15382e44&scoped=true
40059
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtEditor/index.vue?vue&type=template&id=0d651e8c&scoped=true
40052
40060
 
40053
40061
 
40054
- const _withScopeId = n => (_pushScopeId("data-v-15382e44"), n = n(), _popScopeId(), n);
40062
+ const _withScopeId = n => (_pushScopeId("data-v-0d651e8c"), n = n(), _popScopeId(), n);
40055
40063
 
40056
40064
  const _hoisted_1 = {
40057
40065
  class: "base-wang-editor-wrapper",
@@ -40087,7 +40095,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
40087
40095
  onOnFocus: _ctx.handleFocus
40088
40096
  }, null, 8, ["default-config", "default-html", "mode", "onCustomAlert", "onOnBlur", "onOnChange", "onOnCreated", "onOnDestroyed", "onOnFocus"])]);
40089
40097
  }
40090
- ;// CONCATENATED MODULE: ./src/packages/JwtEditor/index.vue?vue&type=template&id=15382e44&scoped=true
40098
+ ;// CONCATENATED MODULE: ./src/packages/JwtEditor/index.vue?vue&type=template&id=0d651e8c&scoped=true
40091
40099
 
40092
40100
  // EXTERNAL MODULE: ./node_modules/@wangeditor/editor/dist/index.esm.js
40093
40101
  var index_esm = __webpack_require__(7877);
@@ -40349,7 +40357,8 @@ var Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
40349
40357
 
40350
40358
  const state = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
40351
40359
  // defaultHtml,
40352
- defaultContent
40360
+ defaultContent,
40361
+ initOnce: false
40353
40362
  });
40354
40363
  const toolbarConfig = {
40355
40364
  insertKeys: {
@@ -40448,6 +40457,7 @@ var Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
40448
40457
  }); // 1.2 插入内容
40449
40458
 
40450
40459
  editor.dangerouslyInsertHtml(defaultHtml.value);
40460
+ state.initOnce = true;
40451
40461
  }; // 替换附件里面的内容
40452
40462
 
40453
40463
 
@@ -40467,10 +40477,21 @@ var Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
40467
40477
  return html;
40468
40478
  };
40469
40479
 
40470
- (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
40471
- setTimeout(() => {
40472
- updateContent();
40473
- }, 200);
40480
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, newValue => {
40481
+ // console.log('person变化了', newValue)
40482
+ // 这里直接执行的话是在onBeforeMount之前所以放在nextTick一个微任务里面
40483
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
40484
+ if (!state.initOnce) {
40485
+ if (newValue && newValue !== '<p><br></p>') {
40486
+ updateContent();
40487
+ }
40488
+ }
40489
+ });
40490
+ } // { immediate: true }
40491
+ );
40492
+ (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {// setTimeout(() => {
40493
+ // updateContent();
40494
+ // }, 200);
40474
40495
  }); // 组件销毁时,也及时销毁编辑器
40475
40496
 
40476
40497
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
@@ -40499,10 +40520,10 @@ var Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
40499
40520
  }));
40500
40521
  ;// CONCATENATED MODULE: ./src/packages/JwtEditor/index.vue?vue&type=script&lang=js
40501
40522
 
40502
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtEditor/index.vue?vue&type=style&index=0&id=15382e44&lang=scss&scoped=true
40523
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtEditor/index.vue?vue&type=style&index=0&id=0d651e8c&lang=scss&scoped=true
40503
40524
  // extracted by mini-css-extract-plugin
40504
40525
 
40505
- ;// CONCATENATED MODULE: ./src/packages/JwtEditor/index.vue?vue&type=style&index=0&id=15382e44&lang=scss&scoped=true
40526
+ ;// CONCATENATED MODULE: ./src/packages/JwtEditor/index.vue?vue&type=style&index=0&id=0d651e8c&lang=scss&scoped=true
40506
40527
 
40507
40528
  // EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
40508
40529
  var exportHelper = __webpack_require__(3744);
@@ -40514,13 +40535,13 @@ var exportHelper = __webpack_require__(3744);
40514
40535
  ;
40515
40536
 
40516
40537
 
40517
- const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtEditorvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-15382e44"]])
40538
+ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtEditorvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-0d651e8c"]])
40518
40539
 
40519
40540
  /* harmony default export */ var JwtEditor = (__exports__);
40520
40541
 
40521
40542
  /***/ }),
40522
40543
 
40523
- /***/ 5347:
40544
+ /***/ 4751:
40524
40545
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
40525
40546
 
40526
40547
  "use strict";
@@ -40534,7 +40555,7 @@ __webpack_require__.d(__webpack_exports__, {
40534
40555
 
40535
40556
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
40536
40557
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
40537
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtForm/index.vue?vue&type=template&id=f13919b8&scoped=true
40558
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtForm/index.vue?vue&type=template&id=21b561a1&scoped=true
40538
40559
 
40539
40560
  function render(_ctx, _cache, $props, $setup, $data, $options) {
40540
40561
  const _component_el_radio_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("el-radio-button");
@@ -40705,7 +40726,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
40705
40726
  }, item.formAttrs, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toHandlers)(item.formEvents)), null, 16, ["modelValue", "onUpdate:modelValue"])) : item.type === 'inputNumber' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_input_number, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
40706
40727
  key: 5,
40707
40728
  modelValue: _ctx.appModel[item.key],
40708
- "onUpdate:modelValue": $event => _ctx.appModel[item.key] = $event
40729
+ "onUpdate:modelValue": $event => _ctx.appModel[item.key] = $event,
40730
+ "controls-position": "right"
40709
40731
  }, item.formAttrs, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toHandlers)(item.formEvents)), null, 16, ["modelValue", "onUpdate:modelValue"])) : item.type === 'select' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_el_select, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
40710
40732
  key: 6,
40711
40733
  modelValue: _ctx.appModel[item.key],
@@ -40836,8 +40858,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
40836
40858
  "onUpdate:modelValue": $event => _ctx.appModel[item.key] = $event
40837
40859
  }, item.formAttrs, {
40838
40860
  "fill-url": _ctx.fillUrl,
40861
+ "response-key": _ctx.responseKey,
40839
40862
  "upload-url": _ctx.uploadImgUrl
40840
- }, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toHandlers)(item.formEvents)), null, 16, ["modelValue", "onUpdate:modelValue", "fill-url", "upload-url"])) : item.type === 'tag' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_jwt_tags, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
40863
+ }, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toHandlers)(item.formEvents)), null, 16, ["modelValue", "onUpdate:modelValue", "fill-url", "response-key", "upload-url"])) : item.type === 'tag' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_jwt_tags, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)({
40841
40864
  key: 17,
40842
40865
  modelValue: _ctx.appModel[item.key],
40843
40866
  "onUpdate:modelValue": $event => _ctx.appModel[item.key] = $event
@@ -40910,7 +40933,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
40910
40933
  _: 3
40911
40934
  }, 16, ["model"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true);
40912
40935
  }
40913
- ;// CONCATENATED MODULE: ./src/packages/JwtForm/index.vue?vue&type=template&id=f13919b8&scoped=true
40936
+ ;// CONCATENATED MODULE: ./src/packages/JwtForm/index.vue?vue&type=template&id=21b561a1&scoped=true
40914
40937
 
40915
40938
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
40916
40939
  var es_array_includes = __webpack_require__(6699);
@@ -41092,7 +41115,12 @@ var commons = __webpack_require__(3310);
41092
41115
  uploadRichTextUrl: {
41093
41116
  type: String,
41094
41117
  default: ''
41095
- } // 富文本图片、视频上传地址
41118
+ },
41119
+ // 富文本图片、视频上传地址
41120
+ responseKey: {
41121
+ type: String,
41122
+ default: 'relative_path'
41123
+ } // 图片上传返回地址key
41096
41124
 
41097
41125
  },
41098
41126
  emits: ['submit', 'reset', 'update:modelValue', 'addSuccess', 'editSuccess', 'get-detail-success'],
@@ -41107,8 +41135,26 @@ var commons = __webpack_require__(3310);
41107
41135
 
41108
41136
  const formConfig = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
41109
41137
  if (props.config) {
41138
+ // console.log('props.config', props.config)
41110
41139
  // console.log('F', F)
41111
- return commons.F.copy(props.config) || {};
41140
+ let result = commons.F.copy(props.config) || {}; // let result = props.config || {}
41141
+
41142
+ if (result?.formList?.length && commons.F.hasArray(result?.formList)) {
41143
+ result.formList = result?.formList?.map(item => {
41144
+ if (!item.formEvents) item.formEvents = {};
41145
+
41146
+ if (item.type === 'submit') {
41147
+ if (item.submit && !item.submit.attrs) item.submit.attrs = {};
41148
+ if (item.submit && !item.submit.events) item.submit.events = {};
41149
+ if (item.reset && !item.reset.attrs) item.reset.attrs = {};
41150
+ if (item.reset && !item.reset.events) item.reset.events = {};
41151
+ }
41152
+
41153
+ return item;
41154
+ });
41155
+ }
41156
+
41157
+ return result;
41112
41158
  }
41113
41159
 
41114
41160
  return {};
@@ -41296,21 +41342,8 @@ var commons = __webpack_require__(3310);
41296
41342
  const formReset = () => {
41297
41343
  formRef.value.resetFields();
41298
41344
  emit('reset', props.modelValue);
41299
- }; // 初始化表单数据
41300
-
41301
-
41302
- formConfig.value.formList = formConfig.value.formList.map(item => {
41303
- if (!item.formEvents) item.formEvents = {};
41304
-
41305
- if (item.type === 'submit') {
41306
- if (item.submit && !item.submit.attrs) item.submit.attrs = {};
41307
- if (item.submit && !item.submit.events) item.submit.events = {};
41308
- if (item.reset && !item.reset.attrs) item.reset.attrs = {};
41309
- if (item.reset && !item.reset.events) item.reset.events = {};
41310
- }
41345
+ }; // 处理级联选择
41311
41346
 
41312
- return item;
41313
- }); // 处理级联选择
41314
41347
 
41315
41348
  const handleCascaderChange = (val, key, item) => {
41316
41349
  if (val && val.length) {
@@ -41337,7 +41370,7 @@ var commons = __webpack_require__(3310);
41337
41370
 
41338
41371
  const getDetail = () => {
41339
41372
  // 关键参数判断
41340
- if (formConfig.value?.api?.detailParams && formConfig.value?.api?.detailParams[formConfig.value?.api?.detailParamsKey || 'id']) {
41373
+ if (formConfig.value?.api?.detail && formConfig.value?.api?.detailParams && formConfig.value?.api?.detailParams[formConfig.value?.api?.detailParamsKey || 'id']) {
41341
41374
  // console.log('根据ID获得数据', formConfig.value.api.detailParams);
41342
41375
  props.request({
41343
41376
  url: formConfig.value.api.detail,
@@ -41376,10 +41409,10 @@ var commons = __webpack_require__(3310);
41376
41409
  }));
41377
41410
  ;// CONCATENATED MODULE: ./src/packages/JwtForm/index.vue?vue&type=script&lang=js
41378
41411
 
41379
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtForm/index.vue?vue&type=style&index=0&id=f13919b8&lang=scss&scoped=true
41412
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtForm/index.vue?vue&type=style&index=0&id=21b561a1&lang=scss&scoped=true
41380
41413
  // extracted by mini-css-extract-plugin
41381
41414
 
41382
- ;// CONCATENATED MODULE: ./src/packages/JwtForm/index.vue?vue&type=style&index=0&id=f13919b8&lang=scss&scoped=true
41415
+ ;// CONCATENATED MODULE: ./src/packages/JwtForm/index.vue?vue&type=style&index=0&id=21b561a1&lang=scss&scoped=true
41383
41416
 
41384
41417
  // EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
41385
41418
  var exportHelper = __webpack_require__(3744);
@@ -41391,13 +41424,13 @@ var exportHelper = __webpack_require__(3744);
41391
41424
  ;
41392
41425
 
41393
41426
 
41394
- const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtFormvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-f13919b8"]])
41427
+ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtFormvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-21b561a1"]])
41395
41428
 
41396
41429
  /* harmony default export */ var JwtForm = (__exports__);
41397
41430
 
41398
41431
  /***/ }),
41399
41432
 
41400
- /***/ 3663:
41433
+ /***/ 6886:
41401
41434
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
41402
41435
 
41403
41436
  "use strict";
@@ -41413,7 +41446,7 @@ __webpack_require__.d(__webpack_exports__, {
41413
41446
  var es_array_includes = __webpack_require__(6699);
41414
41447
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
41415
41448
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
41416
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtHeaderButton/index.vue?vue&type=template&id=ce044e74
41449
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtHeaderButton/index.vue?vue&type=template&id=9d236274
41417
41450
 
41418
41451
 
41419
41452
  const _hoisted_1 = {
@@ -41441,7 +41474,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
41441
41474
  }, 1032, ["disabled", "loading", "type", "onClick"]);
41442
41475
  }), 128))])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true);
41443
41476
  }
41444
- ;// CONCATENATED MODULE: ./src/packages/JwtHeaderButton/index.vue?vue&type=template&id=ce044e74
41477
+ ;// CONCATENATED MODULE: ./src/packages/JwtHeaderButton/index.vue?vue&type=template&id=9d236274
41445
41478
 
41446
41479
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtHeaderButton/index.vue?vue&type=script&lang=js
41447
41480
 
@@ -41475,6 +41508,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
41475
41508
  setup(props, {
41476
41509
  emit
41477
41510
  }) {
41511
+ // 数据接收
41478
41512
  let headerButtonActions = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
41479
41513
  const currentPageActions = (props?.menusObj || {})[props?.currentPath];
41480
41514
 
@@ -41953,7 +41987,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtImagevue_typ
41953
41987
 
41954
41988
  /***/ }),
41955
41989
 
41956
- /***/ 5859:
41990
+ /***/ 1914:
41957
41991
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
41958
41992
 
41959
41993
  "use strict";
@@ -41967,7 +42001,7 @@ __webpack_require__.d(__webpack_exports__, {
41967
42001
 
41968
42002
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
41969
42003
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
41970
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtInput/index.vue?vue&type=template&id=172e66e8&scoped=true
42004
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtInput/index.vue?vue&type=template&id=72e5e110&scoped=true
41971
42005
 
41972
42006
  function render(_ctx, _cache, $props, $setup, $data, $options) {
41973
42007
  const _component_el_input = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("el-input");
@@ -41984,7 +42018,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
41984
42018
  onBlur: _ctx.handleBlur
41985
42019
  }), null, 16, ["modelValue", "style", "onBlur"]);
41986
42020
  }
41987
- ;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=template&id=172e66e8&scoped=true
42021
+ ;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=template&id=72e5e110&scoped=true
41988
42022
 
41989
42023
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtInput/index.vue?vue&type=script&lang=js
41990
42024
 
@@ -42005,7 +42039,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
42005
42039
  changeBg: {
42006
42040
  type: String,
42007
42041
  default: 'blue'
42008
- } // 改变时背景颜色
42042
+ },
42043
+ // 改变时背景颜色
42044
+ textColor: {
42045
+ type: String,
42046
+ default: ''
42047
+ } // 文字颜色
42009
42048
 
42010
42049
  },
42011
42050
  emits: ['update:modelValue', 'blur'],
@@ -42044,10 +42083,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
42044
42083
  }));
42045
42084
  ;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=script&lang=js
42046
42085
 
42047
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtInput/index.vue?vue&type=style&index=0&id=172e66e8&lang=scss&scoped=true
42086
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtInput/index.vue?vue&type=style&index=0&id=72e5e110&lang=scss&scoped=true
42048
42087
  // extracted by mini-css-extract-plugin
42049
42088
 
42050
- ;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=style&index=0&id=172e66e8&lang=scss&scoped=true
42089
+ ;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=style&index=0&id=72e5e110&lang=scss&scoped=true
42051
42090
 
42052
42091
  // EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
42053
42092
  var exportHelper = __webpack_require__(3744);
@@ -42059,7 +42098,7 @@ var exportHelper = __webpack_require__(3744);
42059
42098
  ;
42060
42099
 
42061
42100
 
42062
- const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtInputvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-172e66e8"]])
42101
+ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtInputvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-72e5e110"]])
42063
42102
 
42064
42103
  /* harmony default export */ var JwtInput = (__exports__);
42065
42104
 
@@ -42230,7 +42269,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtRateIconvue_
42230
42269
 
42231
42270
  /***/ }),
42232
42271
 
42233
- /***/ 6742:
42272
+ /***/ 1279:
42234
42273
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
42235
42274
 
42236
42275
  "use strict";
@@ -42244,7 +42283,7 @@ __webpack_require__.d(__webpack_exports__, {
42244
42283
 
42245
42284
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
42246
42285
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
42247
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtSelectServer/index.vue?vue&type=template&id=34bc368e
42286
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtSelectServer/index.vue?vue&type=template&id=bd2d1c4a
42248
42287
 
42249
42288
  const _hoisted_1 = {
42250
42289
  key: 0,
@@ -42288,7 +42327,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
42288
42327
  _: 1
42289
42328
  }, 8, ["modelValue", "remote-method", "onChange"]);
42290
42329
  }
42291
- ;// CONCATENATED MODULE: ./src/packages/JwtSelectServer/index.vue?vue&type=template&id=34bc368e
42330
+ ;// CONCATENATED MODULE: ./src/packages/JwtSelectServer/index.vue?vue&type=template&id=bd2d1c4a
42292
42331
 
42293
42332
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtSelectServer/index.vue?vue&type=script&lang=js
42294
42333
 
@@ -42323,7 +42362,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
42323
42362
  },
42324
42363
  // 额外扩展参数
42325
42364
  modelValue: {
42326
- type: String,
42365
+ type: [String, Number, Array],
42327
42366
  default: ''
42328
42367
  },
42329
42368
  searchValueKey: {
@@ -42427,10 +42466,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
42427
42466
  }));
42428
42467
  ;// CONCATENATED MODULE: ./src/packages/JwtSelectServer/index.vue?vue&type=script&lang=js
42429
42468
 
42430
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtSelectServer/index.vue?vue&type=style&index=0&id=34bc368e&lang=scss
42469
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtSelectServer/index.vue?vue&type=style&index=0&id=bd2d1c4a&lang=scss
42431
42470
  // extracted by mini-css-extract-plugin
42432
42471
 
42433
- ;// CONCATENATED MODULE: ./src/packages/JwtSelectServer/index.vue?vue&type=style&index=0&id=34bc368e&lang=scss
42472
+ ;// CONCATENATED MODULE: ./src/packages/JwtSelectServer/index.vue?vue&type=style&index=0&id=bd2d1c4a&lang=scss
42434
42473
 
42435
42474
  // EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
42436
42475
  var exportHelper = __webpack_require__(3744);
@@ -42448,7 +42487,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtSelectServer
42448
42487
 
42449
42488
  /***/ }),
42450
42489
 
42451
- /***/ 8560:
42490
+ /***/ 3352:
42452
42491
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
42453
42492
 
42454
42493
  "use strict";
@@ -42462,10 +42501,10 @@ __webpack_require__.d(__webpack_exports__, {
42462
42501
 
42463
42502
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
42464
42503
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
42465
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtTable/index.vue?vue&type=template&id=ec416c72&scoped=true
42504
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtTable/index.vue?vue&type=template&id=0acf8680&scoped=true
42466
42505
 
42467
42506
 
42468
- const _withScopeId = n => (_pushScopeId("data-v-ec416c72"), n = n(), _popScopeId(), n);
42507
+ const _withScopeId = n => (_pushScopeId("data-v-0acf8680"), n = n(), _popScopeId(), n);
42469
42508
 
42470
42509
  const _hoisted_1 = {
42471
42510
  class: "app-table-wrapper"
@@ -42527,9 +42566,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
42527
42566
  request: _ctx.request,
42528
42567
  "upload-img-url": _ctx.uploadUrl,
42529
42568
  "upload-rich-text-url": _ctx.uploadRichTextUrl,
42569
+ responseKey: _ctx.responseKey,
42530
42570
  onReset: _ctx.onSearchReset,
42531
42571
  onSubmit: _ctx.onSearchSubmit
42532
- }, null, 8, ["modelValue", "config", "fill-url", "request", "upload-img-url", "upload-rich-text-url", "onReset", "onSubmit"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "header-button-before", {}, undefined, true), _ctx.appConfig.headerActionsShow ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_jwt_header_button, {
42572
+ }, null, 8, ["modelValue", "config", "fill-url", "request", "upload-img-url", "upload-rich-text-url", "responseKey", "onReset", "onSubmit"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", _hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "header-button-before", {}, undefined, true), _ctx.appConfig.headerActionsShow ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_jwt_header_button, {
42533
42573
  key: 0,
42534
42574
  "action-list": _ctx.appConfig?.headerActions?.list,
42535
42575
  "current-path": _ctx.currentPagePath,
@@ -42659,9 +42699,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
42659
42699
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.editBoxInfo.visible = $event)
42660
42700
  }, _ctx.appConfig[_ctx.editBoxInfo.boxName].dialog, {
42661
42701
  center: "",
42662
- title: _ctx.editBoxInfo.title
42702
+ "custom-class": "jwt-dialog-wrapper",
42703
+ "destroy-on-close": "",
42704
+ title: _ctx.editBoxInfo.title,
42705
+ "append-to-body": ""
42663
42706
  }), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createSlots)({
42664
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_jwt_form, {
42707
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [_ctx.editBoxInfo.visible ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_jwt_form, {
42708
+ key: 0,
42665
42709
  ref: "editBoxRef",
42666
42710
  modelValue: _ctx.editBoxInfo.model,
42667
42711
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.editBoxInfo.model = $event),
@@ -42670,6 +42714,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
42670
42714
  request: _ctx.request,
42671
42715
  "upload-img-url": _ctx.uploadUrl,
42672
42716
  "upload-rich-text-url": _ctx.uploadRichTextUrl,
42717
+ responseKey: _ctx.responseKey,
42673
42718
  onAddSuccess: _ctx.handleAddSuccess,
42674
42719
  onEditSuccess: _ctx.handleEditSuccess
42675
42720
  }, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createSlots)({
@@ -42681,7 +42726,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
42681
42726
  model: _ctx.editBoxInfo.model
42682
42727
  }, undefined, true)])
42683
42728
  };
42684
- })]), 1032, ["modelValue", "config", "fill-url", "request", "upload-img-url", "upload-rich-text-url", "onAddSuccess", "onEditSuccess"])]),
42729
+ })]), 1032, ["modelValue", "config", "fill-url", "request", "upload-img-url", "upload-rich-text-url", "responseKey", "onAddSuccess", "onEditSuccess"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]),
42685
42730
  _: 2
42686
42731
  }, [_ctx.appConfig[_ctx.editBoxInfo.boxName]?.footer ? {
42687
42732
  name: "footer",
@@ -42701,7 +42746,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
42701
42746
  }, undefined, true)])])
42702
42747
  } : undefined]), 1040, ["modelValue", "title"])], 64);
42703
42748
  }
42704
- ;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=template&id=ec416c72&scoped=true
42749
+ ;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=template&id=0acf8680&scoped=true
42705
42750
 
42706
42751
  // EXTERNAL MODULE: ./node_modules/@vueuse/shared/index.mjs
42707
42752
  var shared = __webpack_require__(7475);
@@ -45376,42 +45421,6 @@ const focusNode = (el) => {
45376
45421
 
45377
45422
  //# sourceMappingURL=aria.mjs.map
45378
45423
 
45379
- ;// CONCATENATED MODULE: ./node_modules/element-plus/es/utils/dom/event.mjs
45380
- const on = (element, event, handler, useCapture = false) => {
45381
- if (element && event && handler) {
45382
- element == null ? void 0 : element.addEventListener(event, handler, useCapture);
45383
- }
45384
- };
45385
- const off = (element, event, handler, useCapture = false) => {
45386
- if (element && event && handler) {
45387
- element == null ? void 0 : element.removeEventListener(event, handler, useCapture);
45388
- }
45389
- };
45390
- const once = (el, event, fn) => {
45391
- const listener = function(...args) {
45392
- if (fn) {
45393
- fn.apply(this, args);
45394
- }
45395
- off(el, event, listener);
45396
- };
45397
- on(el, event, listener);
45398
- };
45399
- const composeEventHandlers = (theirsHandler, oursHandler, { checkForDefaultPrevented = true } = {}) => {
45400
- const handleEvent = (event) => {
45401
- const shouldPrevent = theirsHandler == null ? void 0 : theirsHandler(event);
45402
- if (checkForDefaultPrevented === false || !shouldPrevent) {
45403
- return oursHandler == null ? void 0 : oursHandler(event);
45404
- }
45405
- };
45406
- return handleEvent;
45407
- };
45408
- const whenMouse = (handler) => {
45409
- return (e) => e.pointerType === "mouse" ? handler(e) : void 0;
45410
- };
45411
-
45412
-
45413
- //# sourceMappingURL=event.mjs.map
45414
-
45415
45424
  ;// CONCATENATED MODULE: ./node_modules/element-plus/es/directives/trap-focus/index.mjs
45416
45425
 
45417
45426
 
@@ -45419,7 +45428,6 @@ const whenMouse = (handler) => {
45419
45428
 
45420
45429
 
45421
45430
 
45422
-
45423
45431
  const FOCUSABLE_CHILDREN = "_trap-focus-children";
45424
45432
  const TRAP_FOCUS_HANDLER = "_trap-focus-handler";
45425
45433
  const FOCUS_STACK = [];
@@ -45455,7 +45463,7 @@ const TrapFocus = {
45455
45463
  el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements(el);
45456
45464
  FOCUS_STACK.push(el);
45457
45465
  if (FOCUS_STACK.length <= 1) {
45458
- on(document, "keydown", FOCUS_HANDLER);
45466
+ document.addEventListener("keydown", FOCUS_HANDLER);
45459
45467
  }
45460
45468
  },
45461
45469
  updated(el) {
@@ -45466,7 +45474,7 @@ const TrapFocus = {
45466
45474
  unmounted() {
45467
45475
  FOCUS_STACK.shift();
45468
45476
  if (FOCUS_STACK.length === 0) {
45469
- off(document, "keydown", FOCUS_HANDLER);
45477
+ document.removeEventListener("keydown", FOCUS_HANDLER);
45470
45478
  }
45471
45479
  }
45472
45480
  };
@@ -45589,13 +45597,13 @@ const FOCUS_TRAP_INJECTION_KEY = Symbol("elFocusTrap");
45589
45597
 
45590
45598
 
45591
45599
  let registeredEscapeHandlers = [];
45600
+ const cachedHandler = (e) => {
45601
+ const event = e;
45602
+ if (event.key === aria/* EVENT_CODE.esc */.n.esc) {
45603
+ registeredEscapeHandlers.forEach((registeredHandler) => registeredHandler(event));
45604
+ }
45605
+ };
45592
45606
  const useEscapeKeydown = (handler) => {
45593
- const cachedHandler = (e) => {
45594
- const event = e;
45595
- if (event.key === aria/* EVENT_CODE.esc */.n.esc) {
45596
- registeredEscapeHandlers.forEach((registeredHandler) => registeredHandler(event));
45597
- }
45598
- };
45599
45607
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
45600
45608
  if (registeredEscapeHandlers.length === 0) {
45601
45609
  document.addEventListener("keydown", cachedHandler);
@@ -47462,6 +47470,1211 @@ const useDraggable = (targetRef, dragRef, draggable) => {
47462
47470
 
47463
47471
  //# sourceMappingURL=index.mjs.map
47464
47472
 
47473
+ ;// CONCATENATED MODULE: ./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
47474
+
47475
+
47476
+ function warn(msg, ...args) {
47477
+ console.warn(`[Vue warn] ${msg}`, ...args);
47478
+ }
47479
+
47480
+ let activeEffectScope;
47481
+ class EffectScope {
47482
+ constructor(detached = false) {
47483
+ /**
47484
+ * @internal
47485
+ */
47486
+ this.active = true;
47487
+ /**
47488
+ * @internal
47489
+ */
47490
+ this.effects = [];
47491
+ /**
47492
+ * @internal
47493
+ */
47494
+ this.cleanups = [];
47495
+ if (!detached && activeEffectScope) {
47496
+ this.parent = activeEffectScope;
47497
+ this.index =
47498
+ (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
47499
+ }
47500
+ }
47501
+ run(fn) {
47502
+ if (this.active) {
47503
+ const currentEffectScope = activeEffectScope;
47504
+ try {
47505
+ activeEffectScope = this;
47506
+ return fn();
47507
+ }
47508
+ finally {
47509
+ activeEffectScope = currentEffectScope;
47510
+ }
47511
+ }
47512
+ else if ((false)) {}
47513
+ }
47514
+ /**
47515
+ * This should only be called on non-detached scopes
47516
+ * @internal
47517
+ */
47518
+ on() {
47519
+ activeEffectScope = this;
47520
+ }
47521
+ /**
47522
+ * This should only be called on non-detached scopes
47523
+ * @internal
47524
+ */
47525
+ off() {
47526
+ activeEffectScope = this.parent;
47527
+ }
47528
+ stop(fromParent) {
47529
+ if (this.active) {
47530
+ let i, l;
47531
+ for (i = 0, l = this.effects.length; i < l; i++) {
47532
+ this.effects[i].stop();
47533
+ }
47534
+ for (i = 0, l = this.cleanups.length; i < l; i++) {
47535
+ this.cleanups[i]();
47536
+ }
47537
+ if (this.scopes) {
47538
+ for (i = 0, l = this.scopes.length; i < l; i++) {
47539
+ this.scopes[i].stop(true);
47540
+ }
47541
+ }
47542
+ // nested scope, dereference from parent to avoid memory leaks
47543
+ if (this.parent && !fromParent) {
47544
+ // optimized O(1) removal
47545
+ const last = this.parent.scopes.pop();
47546
+ if (last && last !== this) {
47547
+ this.parent.scopes[this.index] = last;
47548
+ last.index = this.index;
47549
+ }
47550
+ }
47551
+ this.active = false;
47552
+ }
47553
+ }
47554
+ }
47555
+ function effectScope(detached) {
47556
+ return new EffectScope(detached);
47557
+ }
47558
+ function recordEffectScope(effect, scope = activeEffectScope) {
47559
+ if (scope && scope.active) {
47560
+ scope.effects.push(effect);
47561
+ }
47562
+ }
47563
+ function getCurrentScope() {
47564
+ return activeEffectScope;
47565
+ }
47566
+ function onScopeDispose(fn) {
47567
+ if (activeEffectScope) {
47568
+ activeEffectScope.cleanups.push(fn);
47569
+ }
47570
+ else if ((false)) {}
47571
+ }
47572
+
47573
+ const createDep = (effects) => {
47574
+ const dep = new Set(effects);
47575
+ dep.w = 0;
47576
+ dep.n = 0;
47577
+ return dep;
47578
+ };
47579
+ const wasTracked = (dep) => (dep.w & trackOpBit) > 0;
47580
+ const newTracked = (dep) => (dep.n & trackOpBit) > 0;
47581
+ const initDepMarkers = ({ deps }) => {
47582
+ if (deps.length) {
47583
+ for (let i = 0; i < deps.length; i++) {
47584
+ deps[i].w |= trackOpBit; // set was tracked
47585
+ }
47586
+ }
47587
+ };
47588
+ const finalizeDepMarkers = (effect) => {
47589
+ const { deps } = effect;
47590
+ if (deps.length) {
47591
+ let ptr = 0;
47592
+ for (let i = 0; i < deps.length; i++) {
47593
+ const dep = deps[i];
47594
+ if (wasTracked(dep) && !newTracked(dep)) {
47595
+ dep.delete(effect);
47596
+ }
47597
+ else {
47598
+ deps[ptr++] = dep;
47599
+ }
47600
+ // clear bits
47601
+ dep.w &= ~trackOpBit;
47602
+ dep.n &= ~trackOpBit;
47603
+ }
47604
+ deps.length = ptr;
47605
+ }
47606
+ };
47607
+
47608
+ const targetMap = new WeakMap();
47609
+ // The number of effects currently being tracked recursively.
47610
+ let effectTrackDepth = 0;
47611
+ let trackOpBit = 1;
47612
+ /**
47613
+ * The bitwise track markers support at most 30 levels of recursion.
47614
+ * This value is chosen to enable modern JS engines to use a SMI on all platforms.
47615
+ * When recursion depth is greater, fall back to using a full cleanup.
47616
+ */
47617
+ const maxMarkerBits = 30;
47618
+ let activeEffect;
47619
+ const ITERATE_KEY = Symbol(( false) ? 0 : '');
47620
+ const MAP_KEY_ITERATE_KEY = Symbol(( false) ? 0 : '');
47621
+ class ReactiveEffect {
47622
+ constructor(fn, scheduler = null, scope) {
47623
+ this.fn = fn;
47624
+ this.scheduler = scheduler;
47625
+ this.active = true;
47626
+ this.deps = [];
47627
+ this.parent = undefined;
47628
+ recordEffectScope(this, scope);
47629
+ }
47630
+ run() {
47631
+ if (!this.active) {
47632
+ return this.fn();
47633
+ }
47634
+ let parent = activeEffect;
47635
+ let lastShouldTrack = shouldTrack;
47636
+ while (parent) {
47637
+ if (parent === this) {
47638
+ return;
47639
+ }
47640
+ parent = parent.parent;
47641
+ }
47642
+ try {
47643
+ this.parent = activeEffect;
47644
+ activeEffect = this;
47645
+ shouldTrack = true;
47646
+ trackOpBit = 1 << ++effectTrackDepth;
47647
+ if (effectTrackDepth <= maxMarkerBits) {
47648
+ initDepMarkers(this);
47649
+ }
47650
+ else {
47651
+ cleanupEffect(this);
47652
+ }
47653
+ return this.fn();
47654
+ }
47655
+ finally {
47656
+ if (effectTrackDepth <= maxMarkerBits) {
47657
+ finalizeDepMarkers(this);
47658
+ }
47659
+ trackOpBit = 1 << --effectTrackDepth;
47660
+ activeEffect = this.parent;
47661
+ shouldTrack = lastShouldTrack;
47662
+ this.parent = undefined;
47663
+ if (this.deferStop) {
47664
+ this.stop();
47665
+ }
47666
+ }
47667
+ }
47668
+ stop() {
47669
+ // stopped while running itself - defer the cleanup
47670
+ if (activeEffect === this) {
47671
+ this.deferStop = true;
47672
+ }
47673
+ else if (this.active) {
47674
+ cleanupEffect(this);
47675
+ if (this.onStop) {
47676
+ this.onStop();
47677
+ }
47678
+ this.active = false;
47679
+ }
47680
+ }
47681
+ }
47682
+ function cleanupEffect(effect) {
47683
+ const { deps } = effect;
47684
+ if (deps.length) {
47685
+ for (let i = 0; i < deps.length; i++) {
47686
+ deps[i].delete(effect);
47687
+ }
47688
+ deps.length = 0;
47689
+ }
47690
+ }
47691
+ function effect(fn, options) {
47692
+ if (fn.effect) {
47693
+ fn = fn.effect.fn;
47694
+ }
47695
+ const _effect = new ReactiveEffect(fn);
47696
+ if (options) {
47697
+ extend(_effect, options);
47698
+ if (options.scope)
47699
+ recordEffectScope(_effect, options.scope);
47700
+ }
47701
+ if (!options || !options.lazy) {
47702
+ _effect.run();
47703
+ }
47704
+ const runner = _effect.run.bind(_effect);
47705
+ runner.effect = _effect;
47706
+ return runner;
47707
+ }
47708
+ function stop(runner) {
47709
+ runner.effect.stop();
47710
+ }
47711
+ let shouldTrack = true;
47712
+ const trackStack = [];
47713
+ function pauseTracking() {
47714
+ trackStack.push(shouldTrack);
47715
+ shouldTrack = false;
47716
+ }
47717
+ function enableTracking() {
47718
+ trackStack.push(shouldTrack);
47719
+ shouldTrack = true;
47720
+ }
47721
+ function resetTracking() {
47722
+ const last = trackStack.pop();
47723
+ shouldTrack = last === undefined ? true : last;
47724
+ }
47725
+ function track(target, type, key) {
47726
+ if (shouldTrack && activeEffect) {
47727
+ let depsMap = targetMap.get(target);
47728
+ if (!depsMap) {
47729
+ targetMap.set(target, (depsMap = new Map()));
47730
+ }
47731
+ let dep = depsMap.get(key);
47732
+ if (!dep) {
47733
+ depsMap.set(key, (dep = createDep()));
47734
+ }
47735
+ const eventInfo = ( false)
47736
+ ? 0
47737
+ : undefined;
47738
+ trackEffects(dep, eventInfo);
47739
+ }
47740
+ }
47741
+ function trackEffects(dep, debuggerEventExtraInfo) {
47742
+ let shouldTrack = false;
47743
+ if (effectTrackDepth <= maxMarkerBits) {
47744
+ if (!newTracked(dep)) {
47745
+ dep.n |= trackOpBit; // set newly tracked
47746
+ shouldTrack = !wasTracked(dep);
47747
+ }
47748
+ }
47749
+ else {
47750
+ // Full cleanup mode.
47751
+ shouldTrack = !dep.has(activeEffect);
47752
+ }
47753
+ if (shouldTrack) {
47754
+ dep.add(activeEffect);
47755
+ activeEffect.deps.push(dep);
47756
+ if (false) {}
47757
+ }
47758
+ }
47759
+ function trigger(target, type, key, newValue, oldValue, oldTarget) {
47760
+ const depsMap = targetMap.get(target);
47761
+ if (!depsMap) {
47762
+ // never been tracked
47763
+ return;
47764
+ }
47765
+ let deps = [];
47766
+ if (type === "clear" /* CLEAR */) {
47767
+ // collection being cleared
47768
+ // trigger all effects for target
47769
+ deps = [...depsMap.values()];
47770
+ }
47771
+ else if (key === 'length' && (0,shared_esm_bundler/* isArray */.kJ)(target)) {
47772
+ depsMap.forEach((dep, key) => {
47773
+ if (key === 'length' || key >= newValue) {
47774
+ deps.push(dep);
47775
+ }
47776
+ });
47777
+ }
47778
+ else {
47779
+ // schedule runs for SET | ADD | DELETE
47780
+ if (key !== void 0) {
47781
+ deps.push(depsMap.get(key));
47782
+ }
47783
+ // also run for iteration key on ADD | DELETE | Map.SET
47784
+ switch (type) {
47785
+ case "add" /* ADD */:
47786
+ if (!(0,shared_esm_bundler/* isArray */.kJ)(target)) {
47787
+ deps.push(depsMap.get(ITERATE_KEY));
47788
+ if ((0,shared_esm_bundler/* isMap */._N)(target)) {
47789
+ deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
47790
+ }
47791
+ }
47792
+ else if ((0,shared_esm_bundler/* isIntegerKey */.S0)(key)) {
47793
+ // new index added to array -> length changes
47794
+ deps.push(depsMap.get('length'));
47795
+ }
47796
+ break;
47797
+ case "delete" /* DELETE */:
47798
+ if (!(0,shared_esm_bundler/* isArray */.kJ)(target)) {
47799
+ deps.push(depsMap.get(ITERATE_KEY));
47800
+ if ((0,shared_esm_bundler/* isMap */._N)(target)) {
47801
+ deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
47802
+ }
47803
+ }
47804
+ break;
47805
+ case "set" /* SET */:
47806
+ if ((0,shared_esm_bundler/* isMap */._N)(target)) {
47807
+ deps.push(depsMap.get(ITERATE_KEY));
47808
+ }
47809
+ break;
47810
+ }
47811
+ }
47812
+ const eventInfo = ( false)
47813
+ ? 0
47814
+ : undefined;
47815
+ if (deps.length === 1) {
47816
+ if (deps[0]) {
47817
+ if ((false)) {}
47818
+ else {
47819
+ triggerEffects(deps[0]);
47820
+ }
47821
+ }
47822
+ }
47823
+ else {
47824
+ const effects = [];
47825
+ for (const dep of deps) {
47826
+ if (dep) {
47827
+ effects.push(...dep);
47828
+ }
47829
+ }
47830
+ if ((false)) {}
47831
+ else {
47832
+ triggerEffects(createDep(effects));
47833
+ }
47834
+ }
47835
+ }
47836
+ function triggerEffects(dep, debuggerEventExtraInfo) {
47837
+ // spread into array for stabilization
47838
+ const effects = (0,shared_esm_bundler/* isArray */.kJ)(dep) ? dep : [...dep];
47839
+ for (const effect of effects) {
47840
+ if (effect.computed) {
47841
+ triggerEffect(effect, debuggerEventExtraInfo);
47842
+ }
47843
+ }
47844
+ for (const effect of effects) {
47845
+ if (!effect.computed) {
47846
+ triggerEffect(effect, debuggerEventExtraInfo);
47847
+ }
47848
+ }
47849
+ }
47850
+ function triggerEffect(effect, debuggerEventExtraInfo) {
47851
+ if (effect !== activeEffect || effect.allowRecurse) {
47852
+ if (false) {}
47853
+ if (effect.scheduler) {
47854
+ effect.scheduler();
47855
+ }
47856
+ else {
47857
+ effect.run();
47858
+ }
47859
+ }
47860
+ }
47861
+
47862
+ const isNonTrackableKeys = /*#__PURE__*/ (0,shared_esm_bundler/* makeMap */.fY)(`__proto__,__v_isRef,__isVue`);
47863
+ const builtInSymbols = new Set(
47864
+ /*#__PURE__*/
47865
+ Object.getOwnPropertyNames(Symbol)
47866
+ // ios10.x Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller'
47867
+ // but accessing them on Symbol leads to TypeError because Symbol is a strict mode
47868
+ // function
47869
+ .filter(key => key !== 'arguments' && key !== 'caller')
47870
+ .map(key => Symbol[key])
47871
+ .filter(shared_esm_bundler/* isSymbol */.yk));
47872
+ const reactivity_esm_bundler_get = /*#__PURE__*/ createGetter();
47873
+ const shallowGet = /*#__PURE__*/ createGetter(false, true);
47874
+ const readonlyGet = /*#__PURE__*/ createGetter(true);
47875
+ const shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true);
47876
+ const arrayInstrumentations = /*#__PURE__*/ createArrayInstrumentations();
47877
+ function createArrayInstrumentations() {
47878
+ const instrumentations = {};
47879
+ ['includes', 'indexOf', 'lastIndexOf'].forEach(key => {
47880
+ instrumentations[key] = function (...args) {
47881
+ const arr = toRaw(this);
47882
+ for (let i = 0, l = this.length; i < l; i++) {
47883
+ track(arr, "get" /* GET */, i + '');
47884
+ }
47885
+ // we run the method using the original args first (which may be reactive)
47886
+ const res = arr[key](...args);
47887
+ if (res === -1 || res === false) {
47888
+ // if that didn't work, run it again using raw values.
47889
+ return arr[key](...args.map(toRaw));
47890
+ }
47891
+ else {
47892
+ return res;
47893
+ }
47894
+ };
47895
+ });
47896
+ ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => {
47897
+ instrumentations[key] = function (...args) {
47898
+ pauseTracking();
47899
+ const res = toRaw(this)[key].apply(this, args);
47900
+ resetTracking();
47901
+ return res;
47902
+ };
47903
+ });
47904
+ return instrumentations;
47905
+ }
47906
+ function createGetter(isReadonly = false, shallow = false) {
47907
+ return function get(target, key, receiver) {
47908
+ if (key === "__v_isReactive" /* IS_REACTIVE */) {
47909
+ return !isReadonly;
47910
+ }
47911
+ else if (key === "__v_isReadonly" /* IS_READONLY */) {
47912
+ return isReadonly;
47913
+ }
47914
+ else if (key === "__v_isShallow" /* IS_SHALLOW */) {
47915
+ return shallow;
47916
+ }
47917
+ else if (key === "__v_raw" /* RAW */ &&
47918
+ receiver ===
47919
+ (isReadonly
47920
+ ? shallow
47921
+ ? shallowReadonlyMap
47922
+ : readonlyMap
47923
+ : shallow
47924
+ ? shallowReactiveMap
47925
+ : reactiveMap).get(target)) {
47926
+ return target;
47927
+ }
47928
+ const targetIsArray = (0,shared_esm_bundler/* isArray */.kJ)(target);
47929
+ if (!isReadonly && targetIsArray && (0,shared_esm_bundler/* hasOwn */.RI)(arrayInstrumentations, key)) {
47930
+ return Reflect.get(arrayInstrumentations, key, receiver);
47931
+ }
47932
+ const res = Reflect.get(target, key, receiver);
47933
+ if ((0,shared_esm_bundler/* isSymbol */.yk)(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
47934
+ return res;
47935
+ }
47936
+ if (!isReadonly) {
47937
+ track(target, "get" /* GET */, key);
47938
+ }
47939
+ if (shallow) {
47940
+ return res;
47941
+ }
47942
+ if (isRef(res)) {
47943
+ // ref unwrapping - skip unwrap for Array + integer key.
47944
+ return targetIsArray && (0,shared_esm_bundler/* isIntegerKey */.S0)(key) ? res : res.value;
47945
+ }
47946
+ if ((0,shared_esm_bundler/* isObject */.Kn)(res)) {
47947
+ // Convert returned value into a proxy as well. we do the isObject check
47948
+ // here to avoid invalid value warning. Also need to lazy access readonly
47949
+ // and reactive here to avoid circular dependency.
47950
+ return isReadonly ? readonly(res) : reactive(res);
47951
+ }
47952
+ return res;
47953
+ };
47954
+ }
47955
+ const set = /*#__PURE__*/ createSetter();
47956
+ const shallowSet = /*#__PURE__*/ createSetter(true);
47957
+ function createSetter(shallow = false) {
47958
+ return function set(target, key, value, receiver) {
47959
+ let oldValue = target[key];
47960
+ if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
47961
+ return false;
47962
+ }
47963
+ if (!shallow && !isReadonly(value)) {
47964
+ if (!isShallow(value)) {
47965
+ value = toRaw(value);
47966
+ oldValue = toRaw(oldValue);
47967
+ }
47968
+ if (!(0,shared_esm_bundler/* isArray */.kJ)(target) && isRef(oldValue) && !isRef(value)) {
47969
+ oldValue.value = value;
47970
+ return true;
47971
+ }
47972
+ }
47973
+ const hadKey = (0,shared_esm_bundler/* isArray */.kJ)(target) && (0,shared_esm_bundler/* isIntegerKey */.S0)(key)
47974
+ ? Number(key) < target.length
47975
+ : (0,shared_esm_bundler/* hasOwn */.RI)(target, key);
47976
+ const result = Reflect.set(target, key, value, receiver);
47977
+ // don't trigger if target is something up in the prototype chain of original
47978
+ if (target === toRaw(receiver)) {
47979
+ if (!hadKey) {
47980
+ trigger(target, "add" /* ADD */, key, value);
47981
+ }
47982
+ else if ((0,shared_esm_bundler/* hasChanged */.aU)(value, oldValue)) {
47983
+ trigger(target, "set" /* SET */, key, value, oldValue);
47984
+ }
47985
+ }
47986
+ return result;
47987
+ };
47988
+ }
47989
+ function deleteProperty(target, key) {
47990
+ const hadKey = (0,shared_esm_bundler/* hasOwn */.RI)(target, key);
47991
+ const oldValue = target[key];
47992
+ const result = Reflect.deleteProperty(target, key);
47993
+ if (result && hadKey) {
47994
+ trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
47995
+ }
47996
+ return result;
47997
+ }
47998
+ function has(target, key) {
47999
+ const result = Reflect.has(target, key);
48000
+ if (!(0,shared_esm_bundler/* isSymbol */.yk)(key) || !builtInSymbols.has(key)) {
48001
+ track(target, "has" /* HAS */, key);
48002
+ }
48003
+ return result;
48004
+ }
48005
+ function ownKeys(target) {
48006
+ track(target, "iterate" /* ITERATE */, (0,shared_esm_bundler/* isArray */.kJ)(target) ? 'length' : ITERATE_KEY);
48007
+ return Reflect.ownKeys(target);
48008
+ }
48009
+ const mutableHandlers = {
48010
+ get: reactivity_esm_bundler_get,
48011
+ set,
48012
+ deleteProperty,
48013
+ has,
48014
+ ownKeys
48015
+ };
48016
+ const readonlyHandlers = {
48017
+ get: readonlyGet,
48018
+ set(target, key) {
48019
+ if ((false)) {}
48020
+ return true;
48021
+ },
48022
+ deleteProperty(target, key) {
48023
+ if ((false)) {}
48024
+ return true;
48025
+ }
48026
+ };
48027
+ const shallowReactiveHandlers = /*#__PURE__*/ (0,shared_esm_bundler/* extend */.l7)({}, mutableHandlers, {
48028
+ get: shallowGet,
48029
+ set: shallowSet
48030
+ });
48031
+ // Props handlers are special in the sense that it should not unwrap top-level
48032
+ // refs (in order to allow refs to be explicitly passed down), but should
48033
+ // retain the reactivity of the normal readonly object.
48034
+ const shallowReadonlyHandlers = /*#__PURE__*/ (0,shared_esm_bundler/* extend */.l7)({}, readonlyHandlers, {
48035
+ get: shallowReadonlyGet
48036
+ });
48037
+
48038
+ const toShallow = (value) => value;
48039
+ const getProto = (v) => Reflect.getPrototypeOf(v);
48040
+ function get$1(target, key, isReadonly = false, isShallow = false) {
48041
+ // #1772: readonly(reactive(Map)) should return readonly + reactive version
48042
+ // of the value
48043
+ target = target["__v_raw" /* RAW */];
48044
+ const rawTarget = toRaw(target);
48045
+ const rawKey = toRaw(key);
48046
+ if (!isReadonly) {
48047
+ if (key !== rawKey) {
48048
+ track(rawTarget, "get" /* GET */, key);
48049
+ }
48050
+ track(rawTarget, "get" /* GET */, rawKey);
48051
+ }
48052
+ const { has } = getProto(rawTarget);
48053
+ const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
48054
+ if (has.call(rawTarget, key)) {
48055
+ return wrap(target.get(key));
48056
+ }
48057
+ else if (has.call(rawTarget, rawKey)) {
48058
+ return wrap(target.get(rawKey));
48059
+ }
48060
+ else if (target !== rawTarget) {
48061
+ // #3602 readonly(reactive(Map))
48062
+ // ensure that the nested reactive `Map` can do tracking for itself
48063
+ target.get(key);
48064
+ }
48065
+ }
48066
+ function has$1(key, isReadonly = false) {
48067
+ const target = this["__v_raw" /* RAW */];
48068
+ const rawTarget = toRaw(target);
48069
+ const rawKey = toRaw(key);
48070
+ if (!isReadonly) {
48071
+ if (key !== rawKey) {
48072
+ track(rawTarget, "has" /* HAS */, key);
48073
+ }
48074
+ track(rawTarget, "has" /* HAS */, rawKey);
48075
+ }
48076
+ return key === rawKey
48077
+ ? target.has(key)
48078
+ : target.has(key) || target.has(rawKey);
48079
+ }
48080
+ function reactivity_esm_bundler_size(target, isReadonly = false) {
48081
+ target = target["__v_raw" /* RAW */];
48082
+ !isReadonly && track(toRaw(target), "iterate" /* ITERATE */, ITERATE_KEY);
48083
+ return Reflect.get(target, 'size', target);
48084
+ }
48085
+ function add(value) {
48086
+ value = toRaw(value);
48087
+ const target = toRaw(this);
48088
+ const proto = getProto(target);
48089
+ const hadKey = proto.has.call(target, value);
48090
+ if (!hadKey) {
48091
+ target.add(value);
48092
+ trigger(target, "add" /* ADD */, value, value);
48093
+ }
48094
+ return this;
48095
+ }
48096
+ function set$1(key, value) {
48097
+ value = toRaw(value);
48098
+ const target = toRaw(this);
48099
+ const { has, get } = getProto(target);
48100
+ let hadKey = has.call(target, key);
48101
+ if (!hadKey) {
48102
+ key = toRaw(key);
48103
+ hadKey = has.call(target, key);
48104
+ }
48105
+ else if ((false)) {}
48106
+ const oldValue = get.call(target, key);
48107
+ target.set(key, value);
48108
+ if (!hadKey) {
48109
+ trigger(target, "add" /* ADD */, key, value);
48110
+ }
48111
+ else if ((0,shared_esm_bundler/* hasChanged */.aU)(value, oldValue)) {
48112
+ trigger(target, "set" /* SET */, key, value, oldValue);
48113
+ }
48114
+ return this;
48115
+ }
48116
+ function deleteEntry(key) {
48117
+ const target = toRaw(this);
48118
+ const { has, get } = getProto(target);
48119
+ let hadKey = has.call(target, key);
48120
+ if (!hadKey) {
48121
+ key = toRaw(key);
48122
+ hadKey = has.call(target, key);
48123
+ }
48124
+ else if ((false)) {}
48125
+ const oldValue = get ? get.call(target, key) : undefined;
48126
+ // forward the operation before queueing reactions
48127
+ const result = target.delete(key);
48128
+ if (hadKey) {
48129
+ trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
48130
+ }
48131
+ return result;
48132
+ }
48133
+ function clear() {
48134
+ const target = toRaw(this);
48135
+ const hadItems = target.size !== 0;
48136
+ const oldTarget = ( false)
48137
+ ? 0
48138
+ : undefined;
48139
+ // forward the operation before queueing reactions
48140
+ const result = target.clear();
48141
+ if (hadItems) {
48142
+ trigger(target, "clear" /* CLEAR */, undefined, undefined, oldTarget);
48143
+ }
48144
+ return result;
48145
+ }
48146
+ function createForEach(isReadonly, isShallow) {
48147
+ return function forEach(callback, thisArg) {
48148
+ const observed = this;
48149
+ const target = observed["__v_raw" /* RAW */];
48150
+ const rawTarget = toRaw(target);
48151
+ const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
48152
+ !isReadonly && track(rawTarget, "iterate" /* ITERATE */, ITERATE_KEY);
48153
+ return target.forEach((value, key) => {
48154
+ // important: make sure the callback is
48155
+ // 1. invoked with the reactive map as `this` and 3rd arg
48156
+ // 2. the value received should be a corresponding reactive/readonly.
48157
+ return callback.call(thisArg, wrap(value), wrap(key), observed);
48158
+ });
48159
+ };
48160
+ }
48161
+ function createIterableMethod(method, isReadonly, isShallow) {
48162
+ return function (...args) {
48163
+ const target = this["__v_raw" /* RAW */];
48164
+ const rawTarget = toRaw(target);
48165
+ const targetIsMap = (0,shared_esm_bundler/* isMap */._N)(rawTarget);
48166
+ const isPair = method === 'entries' || (method === Symbol.iterator && targetIsMap);
48167
+ const isKeyOnly = method === 'keys' && targetIsMap;
48168
+ const innerIterator = target[method](...args);
48169
+ const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
48170
+ !isReadonly &&
48171
+ track(rawTarget, "iterate" /* ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);
48172
+ // return a wrapped iterator which returns observed versions of the
48173
+ // values emitted from the real iterator
48174
+ return {
48175
+ // iterator protocol
48176
+ next() {
48177
+ const { value, done } = innerIterator.next();
48178
+ return done
48179
+ ? { value, done }
48180
+ : {
48181
+ value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
48182
+ done
48183
+ };
48184
+ },
48185
+ // iterable protocol
48186
+ [Symbol.iterator]() {
48187
+ return this;
48188
+ }
48189
+ };
48190
+ };
48191
+ }
48192
+ function createReadonlyMethod(type) {
48193
+ return function (...args) {
48194
+ if ((false)) {}
48195
+ return type === "delete" /* DELETE */ ? false : this;
48196
+ };
48197
+ }
48198
+ function createInstrumentations() {
48199
+ const mutableInstrumentations = {
48200
+ get(key) {
48201
+ return get$1(this, key);
48202
+ },
48203
+ get size() {
48204
+ return reactivity_esm_bundler_size(this);
48205
+ },
48206
+ has: has$1,
48207
+ add,
48208
+ set: set$1,
48209
+ delete: deleteEntry,
48210
+ clear,
48211
+ forEach: createForEach(false, false)
48212
+ };
48213
+ const shallowInstrumentations = {
48214
+ get(key) {
48215
+ return get$1(this, key, false, true);
48216
+ },
48217
+ get size() {
48218
+ return reactivity_esm_bundler_size(this);
48219
+ },
48220
+ has: has$1,
48221
+ add,
48222
+ set: set$1,
48223
+ delete: deleteEntry,
48224
+ clear,
48225
+ forEach: createForEach(false, true)
48226
+ };
48227
+ const readonlyInstrumentations = {
48228
+ get(key) {
48229
+ return get$1(this, key, true);
48230
+ },
48231
+ get size() {
48232
+ return reactivity_esm_bundler_size(this, true);
48233
+ },
48234
+ has(key) {
48235
+ return has$1.call(this, key, true);
48236
+ },
48237
+ add: createReadonlyMethod("add" /* ADD */),
48238
+ set: createReadonlyMethod("set" /* SET */),
48239
+ delete: createReadonlyMethod("delete" /* DELETE */),
48240
+ clear: createReadonlyMethod("clear" /* CLEAR */),
48241
+ forEach: createForEach(true, false)
48242
+ };
48243
+ const shallowReadonlyInstrumentations = {
48244
+ get(key) {
48245
+ return get$1(this, key, true, true);
48246
+ },
48247
+ get size() {
48248
+ return reactivity_esm_bundler_size(this, true);
48249
+ },
48250
+ has(key) {
48251
+ return has$1.call(this, key, true);
48252
+ },
48253
+ add: createReadonlyMethod("add" /* ADD */),
48254
+ set: createReadonlyMethod("set" /* SET */),
48255
+ delete: createReadonlyMethod("delete" /* DELETE */),
48256
+ clear: createReadonlyMethod("clear" /* CLEAR */),
48257
+ forEach: createForEach(true, true)
48258
+ };
48259
+ const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator];
48260
+ iteratorMethods.forEach(method => {
48261
+ mutableInstrumentations[method] = createIterableMethod(method, false, false);
48262
+ readonlyInstrumentations[method] = createIterableMethod(method, true, false);
48263
+ shallowInstrumentations[method] = createIterableMethod(method, false, true);
48264
+ shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true);
48265
+ });
48266
+ return [
48267
+ mutableInstrumentations,
48268
+ readonlyInstrumentations,
48269
+ shallowInstrumentations,
48270
+ shallowReadonlyInstrumentations
48271
+ ];
48272
+ }
48273
+ const [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/ createInstrumentations();
48274
+ function createInstrumentationGetter(isReadonly, shallow) {
48275
+ const instrumentations = shallow
48276
+ ? isReadonly
48277
+ ? shallowReadonlyInstrumentations
48278
+ : shallowInstrumentations
48279
+ : isReadonly
48280
+ ? readonlyInstrumentations
48281
+ : mutableInstrumentations;
48282
+ return (target, key, receiver) => {
48283
+ if (key === "__v_isReactive" /* IS_REACTIVE */) {
48284
+ return !isReadonly;
48285
+ }
48286
+ else if (key === "__v_isReadonly" /* IS_READONLY */) {
48287
+ return isReadonly;
48288
+ }
48289
+ else if (key === "__v_raw" /* RAW */) {
48290
+ return target;
48291
+ }
48292
+ return Reflect.get((0,shared_esm_bundler/* hasOwn */.RI)(instrumentations, key) && key in target
48293
+ ? instrumentations
48294
+ : target, key, receiver);
48295
+ };
48296
+ }
48297
+ const mutableCollectionHandlers = {
48298
+ get: /*#__PURE__*/ createInstrumentationGetter(false, false)
48299
+ };
48300
+ const shallowCollectionHandlers = {
48301
+ get: /*#__PURE__*/ createInstrumentationGetter(false, true)
48302
+ };
48303
+ const readonlyCollectionHandlers = {
48304
+ get: /*#__PURE__*/ createInstrumentationGetter(true, false)
48305
+ };
48306
+ const shallowReadonlyCollectionHandlers = {
48307
+ get: /*#__PURE__*/ createInstrumentationGetter(true, true)
48308
+ };
48309
+ function checkIdentityKeys(target, has, key) {
48310
+ const rawKey = toRaw(key);
48311
+ if (rawKey !== key && has.call(target, rawKey)) {
48312
+ const type = toRawType(target);
48313
+ console.warn(`Reactive ${type} contains both the raw and reactive ` +
48314
+ `versions of the same object${type === `Map` ? ` as keys` : ``}, ` +
48315
+ `which can lead to inconsistencies. ` +
48316
+ `Avoid differentiating between the raw and reactive versions ` +
48317
+ `of an object and only use the reactive version if possible.`);
48318
+ }
48319
+ }
48320
+
48321
+ const reactiveMap = new WeakMap();
48322
+ const shallowReactiveMap = new WeakMap();
48323
+ const readonlyMap = new WeakMap();
48324
+ const shallowReadonlyMap = new WeakMap();
48325
+ function targetTypeMap(rawType) {
48326
+ switch (rawType) {
48327
+ case 'Object':
48328
+ case 'Array':
48329
+ return 1 /* COMMON */;
48330
+ case 'Map':
48331
+ case 'Set':
48332
+ case 'WeakMap':
48333
+ case 'WeakSet':
48334
+ return 2 /* COLLECTION */;
48335
+ default:
48336
+ return 0 /* INVALID */;
48337
+ }
48338
+ }
48339
+ function getTargetType(value) {
48340
+ return value["__v_skip" /* SKIP */] || !Object.isExtensible(value)
48341
+ ? 0 /* INVALID */
48342
+ : targetTypeMap((0,shared_esm_bundler/* toRawType */.W7)(value));
48343
+ }
48344
+ function reactive(target) {
48345
+ // if trying to observe a readonly proxy, return the readonly version.
48346
+ if (isReadonly(target)) {
48347
+ return target;
48348
+ }
48349
+ return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
48350
+ }
48351
+ /**
48352
+ * Return a shallowly-reactive copy of the original object, where only the root
48353
+ * level properties are reactive. It also does not auto-unwrap refs (even at the
48354
+ * root level).
48355
+ */
48356
+ function shallowReactive(target) {
48357
+ return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);
48358
+ }
48359
+ /**
48360
+ * Creates a readonly copy of the original object. Note the returned copy is not
48361
+ * made reactive, but `readonly` can be called on an already reactive object.
48362
+ */
48363
+ function readonly(target) {
48364
+ return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
48365
+ }
48366
+ /**
48367
+ * Returns a reactive-copy of the original object, where only the root level
48368
+ * properties are readonly, and does NOT unwrap refs nor recursively convert
48369
+ * returned properties.
48370
+ * This is used for creating the props proxy object for stateful components.
48371
+ */
48372
+ function shallowReadonly(target) {
48373
+ return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);
48374
+ }
48375
+ function createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {
48376
+ if (!(0,shared_esm_bundler/* isObject */.Kn)(target)) {
48377
+ if ((false)) {}
48378
+ return target;
48379
+ }
48380
+ // target is already a Proxy, return it.
48381
+ // exception: calling readonly() on a reactive object
48382
+ if (target["__v_raw" /* RAW */] &&
48383
+ !(isReadonly && target["__v_isReactive" /* IS_REACTIVE */])) {
48384
+ return target;
48385
+ }
48386
+ // target already has corresponding Proxy
48387
+ const existingProxy = proxyMap.get(target);
48388
+ if (existingProxy) {
48389
+ return existingProxy;
48390
+ }
48391
+ // only specific value types can be observed.
48392
+ const targetType = getTargetType(target);
48393
+ if (targetType === 0 /* INVALID */) {
48394
+ return target;
48395
+ }
48396
+ const proxy = new Proxy(target, targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers);
48397
+ proxyMap.set(target, proxy);
48398
+ return proxy;
48399
+ }
48400
+ function isReactive(value) {
48401
+ if (isReadonly(value)) {
48402
+ return isReactive(value["__v_raw" /* RAW */]);
48403
+ }
48404
+ return !!(value && value["__v_isReactive" /* IS_REACTIVE */]);
48405
+ }
48406
+ function isReadonly(value) {
48407
+ return !!(value && value["__v_isReadonly" /* IS_READONLY */]);
48408
+ }
48409
+ function isShallow(value) {
48410
+ return !!(value && value["__v_isShallow" /* IS_SHALLOW */]);
48411
+ }
48412
+ function isProxy(value) {
48413
+ return isReactive(value) || isReadonly(value);
48414
+ }
48415
+ function toRaw(observed) {
48416
+ const raw = observed && observed["__v_raw" /* RAW */];
48417
+ return raw ? toRaw(raw) : observed;
48418
+ }
48419
+ function markRaw(value) {
48420
+ def(value, "__v_skip" /* SKIP */, true);
48421
+ return value;
48422
+ }
48423
+ const toReactive = (value) => (0,shared_esm_bundler/* isObject */.Kn)(value) ? reactive(value) : value;
48424
+ const toReadonly = (value) => (0,shared_esm_bundler/* isObject */.Kn)(value) ? readonly(value) : value;
48425
+
48426
+ function trackRefValue(ref) {
48427
+ if (shouldTrack && activeEffect) {
48428
+ ref = toRaw(ref);
48429
+ if ((false)) {}
48430
+ else {
48431
+ trackEffects(ref.dep || (ref.dep = createDep()));
48432
+ }
48433
+ }
48434
+ }
48435
+ function triggerRefValue(ref, newVal) {
48436
+ ref = toRaw(ref);
48437
+ if (ref.dep) {
48438
+ if ((false)) {}
48439
+ else {
48440
+ triggerEffects(ref.dep);
48441
+ }
48442
+ }
48443
+ }
48444
+ function isRef(r) {
48445
+ return !!(r && r.__v_isRef === true);
48446
+ }
48447
+ function ref(value) {
48448
+ return createRef(value, false);
48449
+ }
48450
+ function shallowRef(value) {
48451
+ return createRef(value, true);
48452
+ }
48453
+ function createRef(rawValue, shallow) {
48454
+ if (isRef(rawValue)) {
48455
+ return rawValue;
48456
+ }
48457
+ return new RefImpl(rawValue, shallow);
48458
+ }
48459
+ class RefImpl {
48460
+ constructor(value, __v_isShallow) {
48461
+ this.__v_isShallow = __v_isShallow;
48462
+ this.dep = undefined;
48463
+ this.__v_isRef = true;
48464
+ this._rawValue = __v_isShallow ? value : toRaw(value);
48465
+ this._value = __v_isShallow ? value : toReactive(value);
48466
+ }
48467
+ get value() {
48468
+ trackRefValue(this);
48469
+ return this._value;
48470
+ }
48471
+ set value(newVal) {
48472
+ newVal = this.__v_isShallow ? newVal : toRaw(newVal);
48473
+ if (hasChanged(newVal, this._rawValue)) {
48474
+ this._rawValue = newVal;
48475
+ this._value = this.__v_isShallow ? newVal : toReactive(newVal);
48476
+ triggerRefValue(this, newVal);
48477
+ }
48478
+ }
48479
+ }
48480
+ function triggerRef(ref) {
48481
+ triggerRefValue(ref, ( false) ? 0 : void 0);
48482
+ }
48483
+ function unref(ref) {
48484
+ return isRef(ref) ? ref.value : ref;
48485
+ }
48486
+ const shallowUnwrapHandlers = {
48487
+ get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
48488
+ set: (target, key, value, receiver) => {
48489
+ const oldValue = target[key];
48490
+ if (isRef(oldValue) && !isRef(value)) {
48491
+ oldValue.value = value;
48492
+ return true;
48493
+ }
48494
+ else {
48495
+ return Reflect.set(target, key, value, receiver);
48496
+ }
48497
+ }
48498
+ };
48499
+ function proxyRefs(objectWithRefs) {
48500
+ return isReactive(objectWithRefs)
48501
+ ? objectWithRefs
48502
+ : new Proxy(objectWithRefs, shallowUnwrapHandlers);
48503
+ }
48504
+ class CustomRefImpl {
48505
+ constructor(factory) {
48506
+ this.dep = undefined;
48507
+ this.__v_isRef = true;
48508
+ const { get, set } = factory(() => trackRefValue(this), () => triggerRefValue(this));
48509
+ this._get = get;
48510
+ this._set = set;
48511
+ }
48512
+ get value() {
48513
+ return this._get();
48514
+ }
48515
+ set value(newVal) {
48516
+ this._set(newVal);
48517
+ }
48518
+ }
48519
+ function customRef(factory) {
48520
+ return new CustomRefImpl(factory);
48521
+ }
48522
+ function toRefs(object) {
48523
+ if (false) {}
48524
+ const ret = isArray(object) ? new Array(object.length) : {};
48525
+ for (const key in object) {
48526
+ ret[key] = toRef(object, key);
48527
+ }
48528
+ return ret;
48529
+ }
48530
+ class ObjectRefImpl {
48531
+ constructor(_object, _key, _defaultValue) {
48532
+ this._object = _object;
48533
+ this._key = _key;
48534
+ this._defaultValue = _defaultValue;
48535
+ this.__v_isRef = true;
48536
+ }
48537
+ get value() {
48538
+ const val = this._object[this._key];
48539
+ return val === undefined ? this._defaultValue : val;
48540
+ }
48541
+ set value(newVal) {
48542
+ this._object[this._key] = newVal;
48543
+ }
48544
+ }
48545
+ function toRef(object, key, defaultValue) {
48546
+ const val = object[key];
48547
+ return isRef(val)
48548
+ ? val
48549
+ : new ObjectRefImpl(object, key, defaultValue);
48550
+ }
48551
+
48552
+ class ComputedRefImpl {
48553
+ constructor(getter, _setter, isReadonly, isSSR) {
48554
+ this._setter = _setter;
48555
+ this.dep = undefined;
48556
+ this.__v_isRef = true;
48557
+ this._dirty = true;
48558
+ this.effect = new ReactiveEffect(getter, () => {
48559
+ if (!this._dirty) {
48560
+ this._dirty = true;
48561
+ triggerRefValue(this);
48562
+ }
48563
+ });
48564
+ this.effect.computed = this;
48565
+ this.effect.active = this._cacheable = !isSSR;
48566
+ this["__v_isReadonly" /* IS_READONLY */] = isReadonly;
48567
+ }
48568
+ get value() {
48569
+ // the computed ref may get wrapped by other proxies e.g. readonly() #3376
48570
+ const self = toRaw(this);
48571
+ trackRefValue(self);
48572
+ if (self._dirty || !self._cacheable) {
48573
+ self._dirty = false;
48574
+ self._value = self.effect.run();
48575
+ }
48576
+ return self._value;
48577
+ }
48578
+ set value(newValue) {
48579
+ this._setter(newValue);
48580
+ }
48581
+ }
48582
+ function computed(getterOrOptions, debugOptions, isSSR = false) {
48583
+ let getter;
48584
+ let setter;
48585
+ const onlyGetter = (0,shared_esm_bundler/* isFunction */.mf)(getterOrOptions);
48586
+ if (onlyGetter) {
48587
+ getter = getterOrOptions;
48588
+ setter = ( false)
48589
+ ? 0
48590
+ : shared_esm_bundler/* NOOP */.dG;
48591
+ }
48592
+ else {
48593
+ getter = getterOrOptions.get;
48594
+ setter = getterOrOptions.set;
48595
+ }
48596
+ const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);
48597
+ if (false) {}
48598
+ return cRef;
48599
+ }
48600
+
48601
+ var _a;
48602
+ const tick = /*#__PURE__*/ (/* unused pure expression or super */ null && (Promise.resolve()));
48603
+ const queue = (/* unused pure expression or super */ null && ([]));
48604
+ let queued = false;
48605
+ const scheduler = (fn) => {
48606
+ queue.push(fn);
48607
+ if (!queued) {
48608
+ queued = true;
48609
+ tick.then(flush);
48610
+ }
48611
+ };
48612
+ const flush = () => {
48613
+ for (let i = 0; i < queue.length; i++) {
48614
+ queue[i]();
48615
+ }
48616
+ queue.length = 0;
48617
+ queued = false;
48618
+ };
48619
+ class DeferredComputedRefImpl {
48620
+ constructor(getter) {
48621
+ this.dep = undefined;
48622
+ this._dirty = true;
48623
+ this.__v_isRef = true;
48624
+ this[_a] = true;
48625
+ let compareTarget;
48626
+ let hasCompareTarget = false;
48627
+ let scheduled = false;
48628
+ this.effect = new ReactiveEffect(getter, (computedTrigger) => {
48629
+ if (this.dep) {
48630
+ if (computedTrigger) {
48631
+ compareTarget = this._value;
48632
+ hasCompareTarget = true;
48633
+ }
48634
+ else if (!scheduled) {
48635
+ const valueToCompare = hasCompareTarget ? compareTarget : this._value;
48636
+ scheduled = true;
48637
+ hasCompareTarget = false;
48638
+ scheduler(() => {
48639
+ if (this.effect.active && this._get() !== valueToCompare) {
48640
+ triggerRefValue(this);
48641
+ }
48642
+ scheduled = false;
48643
+ });
48644
+ }
48645
+ // chained upstream computeds are notified synchronously to ensure
48646
+ // value invalidation in case of sync access; normal effects are
48647
+ // deferred to be triggered in scheduler.
48648
+ for (const e of this.dep) {
48649
+ if (e.computed instanceof DeferredComputedRefImpl) {
48650
+ e.scheduler(true /* computedTrigger */);
48651
+ }
48652
+ }
48653
+ }
48654
+ this._dirty = true;
48655
+ });
48656
+ this.effect.computed = this;
48657
+ }
48658
+ _get() {
48659
+ if (this._dirty) {
48660
+ this._dirty = false;
48661
+ return (this._value = this.effect.run());
48662
+ }
48663
+ return this._value;
48664
+ }
48665
+ get value() {
48666
+ trackRefValue(this);
48667
+ // the computed ref may get wrapped by other proxies e.g. readonly() #3376
48668
+ return toRaw(this)._get();
48669
+ }
48670
+ }
48671
+ _a = "__v_isReadonly" /* IS_READONLY */;
48672
+ function deferredComputed(getter) {
48673
+ return new DeferredComputedRefImpl(getter);
48674
+ }
48675
+
48676
+
48677
+
47465
48678
  ;// CONCATENATED MODULE: ./node_modules/element-plus/es/utils/dom/scroll.mjs
47466
48679
 
47467
48680
 
@@ -47491,14 +48704,14 @@ const getScrollContainer = (el, isVertical) => {
47491
48704
  return parent;
47492
48705
  };
47493
48706
  let scrollBarWidth;
47494
- const getScrollBarWidth = () => {
48707
+ const getScrollBarWidth = (namespace) => {
47495
48708
  var _a;
47496
48709
  if (!shared/* isClient */.C5)
47497
48710
  return 0;
47498
48711
  if (scrollBarWidth !== void 0)
47499
48712
  return scrollBarWidth;
47500
48713
  const outer = document.createElement("div");
47501
- outer.className = "el-scrollbar__wrap";
48714
+ outer.className = `${namespace}-scrollbar__wrap`;
47502
48715
  outer.style.visibility = "hidden";
47503
48716
  outer.style.width = "100px";
47504
48717
  outer.style.position = "absolute";
@@ -47549,11 +48762,15 @@ function scrollIntoView(container, selected) {
47549
48762
 
47550
48763
 
47551
48764
 
48765
+
48766
+
47552
48767
  const useLockscreen = (trigger) => {
47553
48768
  if (!(0,external_commonjs_vue_commonjs2_vue_root_Vue_.isRef)(trigger)) {
47554
48769
  (0,error/* throwError */._)("[useLockscreen]", "You need to pass a ref param to this function");
47555
48770
  }
47556
- if (!shared/* isClient */.C5 || (0,style/* hasClass */.pv)(document.body, "el-popup-parent--hidden")) {
48771
+ const ns = (0,use_namespace/* useNamespace */.s)("popup");
48772
+ const hiddenCls = computed(() => ns.bm("parent", "hidden"));
48773
+ if (!shared/* isClient */.C5 || (0,style/* hasClass */.pv)(document.body, hiddenCls.value)) {
47557
48774
  return;
47558
48775
  }
47559
48776
  let scrollBarWidth = 0;
@@ -47561,7 +48778,7 @@ const useLockscreen = (trigger) => {
47561
48778
  let bodyPaddingRight = "0";
47562
48779
  let computedBodyPaddingRight = 0;
47563
48780
  const cleanup = () => {
47564
- (0,style/* removeClass */.IV)(document.body, "el-popup-parent--hidden");
48781
+ (0,style/* removeClass */.IV)(document.body, hiddenCls.value);
47565
48782
  if (withoutHiddenClass) {
47566
48783
  document.body.style.paddingRight = bodyPaddingRight;
47567
48784
  }
@@ -47571,18 +48788,18 @@ const useLockscreen = (trigger) => {
47571
48788
  cleanup();
47572
48789
  return;
47573
48790
  }
47574
- withoutHiddenClass = !(0,style/* hasClass */.pv)(document.body, "el-popup-parent--hidden");
48791
+ withoutHiddenClass = !(0,style/* hasClass */.pv)(document.body, hiddenCls.value);
47575
48792
  if (withoutHiddenClass) {
47576
48793
  bodyPaddingRight = document.body.style.paddingRight;
47577
48794
  computedBodyPaddingRight = Number.parseInt((0,style/* getStyle */.C2)(document.body, "paddingRight"), 10);
47578
48795
  }
47579
- scrollBarWidth = getScrollBarWidth();
48796
+ scrollBarWidth = getScrollBarWidth(ns.namespace.value);
47580
48797
  const bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
47581
48798
  const bodyOverflowY = (0,style/* getStyle */.C2)(document.body, "overflowY");
47582
48799
  if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === "scroll") && withoutHiddenClass) {
47583
48800
  document.body.style.paddingRight = `${computedBodyPaddingRight + scrollBarWidth}px`;
47584
48801
  }
47585
- (0,style/* addClass */.cn)(document.body, "el-popup-parent--hidden");
48802
+ (0,style/* addClass */.cn)(document.body, hiddenCls.value);
47586
48803
  });
47587
48804
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onScopeDispose)(() => cleanup());
47588
48805
  };
@@ -47636,7 +48853,6 @@ const useRestoreActive = (toggle, initialFocus) => {
47636
48853
 
47637
48854
 
47638
48855
 
47639
-
47640
48856
 
47641
48857
 
47642
48858
  const src_sfc_main = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
@@ -47794,12 +49010,12 @@ const src_sfc_main = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComp
47794
49010
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(async () => {
47795
49011
  await (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
47796
49012
  if (props.closeOnHashChange) {
47797
- on(window, "hashchange", doClose);
49013
+ window.addEventListener("hashchange", doClose);
47798
49014
  }
47799
49015
  });
47800
49016
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
47801
49017
  if (props.closeOnHashChange) {
47802
- off(window, "hashchange", doClose);
49018
+ window.removeEventListener("hashchange", doClose);
47803
49019
  }
47804
49020
  });
47805
49021
  function doClose() {
@@ -48308,6 +49524,11 @@ const paginationDefault = {
48308
49524
  type: String,
48309
49525
  default: ''
48310
49526
  },
49527
+ responseKey: {
49528
+ type: String,
49529
+ default: 'relative_path'
49530
+ },
49531
+ // 图片上传返回地址key
48311
49532
  fillUrl: {
48312
49533
  type: Function,
48313
49534
  default: null
@@ -48434,11 +49655,10 @@ const paginationDefault = {
48434
49655
  type,
48435
49656
  startKey,
48436
49657
  endKey,
48437
- formAttrs: {
48438
- multiple,
48439
- valueType
48440
- }
49658
+ formAttrs
48441
49659
  } = item;
49660
+ const multiple = formAttrs?.multiple || false;
49661
+ const valueType = formAttrs?.valueType || '';
48442
49662
 
48443
49663
  if (row[key] && type === 'inputNumber') {
48444
49664
  result[key] = +row[key];
@@ -48807,8 +50027,6 @@ const paginationDefault = {
48807
50027
  editBoxInfo.boxName = editBoxName;
48808
50028
  editBoxInfo.visible = true;
48809
50029
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
48810
- editBoxInfo.visible = true;
48811
-
48812
50030
  if (row) {
48813
50031
  if (appConfig?.[editBoxName]?.form?.api?.detail) {
48814
50032
  handleGetDetail(row, editBoxName);
@@ -49001,10 +50219,15 @@ const paginationDefault = {
49001
50219
  }));
49002
50220
  ;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=script&lang=js
49003
50221
 
49004
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtTable/index.vue?vue&type=style&index=0&id=ec416c72&lang=scss&scoped=true
50222
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtTable/index.vue?vue&type=style&index=0&id=0acf8680&lang=scss&scoped=true
50223
+ // extracted by mini-css-extract-plugin
50224
+
50225
+ ;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=style&index=0&id=0acf8680&lang=scss&scoped=true
50226
+
50227
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtTable/index.vue?vue&type=style&index=1&id=0acf8680&lang=scss
49005
50228
  // extracted by mini-css-extract-plugin
49006
50229
 
49007
- ;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=style&index=0&id=ec416c72&lang=scss&scoped=true
50230
+ ;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=style&index=1&id=0acf8680&lang=scss
49008
50231
 
49009
50232
  // EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
49010
50233
  var exportHelper = __webpack_require__(3744);
@@ -49016,7 +50239,8 @@ var exportHelper = __webpack_require__(3744);
49016
50239
  ;
49017
50240
 
49018
50241
 
49019
- const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtTablevue_type_script_lang_js, [['render',render],['__scopeId',"data-v-ec416c72"]])
50242
+
50243
+ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtTablevue_type_script_lang_js, [['render',render],['__scopeId',"data-v-0acf8680"]])
49020
50244
 
49021
50245
  /* harmony default export */ var JwtTable = (__exports__);
49022
50246
 
@@ -49856,7 +51080,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtTagsvue_type
49856
51080
 
49857
51081
  /***/ }),
49858
51082
 
49859
- /***/ 5486:
51083
+ /***/ 8719:
49860
51084
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
49861
51085
 
49862
51086
  "use strict";
@@ -49870,7 +51094,7 @@ __webpack_require__.d(__webpack_exports__, {
49870
51094
 
49871
51095
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
49872
51096
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
49873
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtUploadImage/index.vue?vue&type=template&id=8300837c
51097
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtUploadImage/index.vue?vue&type=template&id=bc5a72e2
49874
51098
 
49875
51099
  const _hoisted_1 = ["src"];
49876
51100
  function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -49919,7 +51143,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
49919
51143
  _: 1
49920
51144
  }, 8, ["modelValue"])], 64);
49921
51145
  }
49922
- ;// CONCATENATED MODULE: ./src/packages/JwtUploadImage/index.vue?vue&type=template&id=8300837c
51146
+ ;// CONCATENATED MODULE: ./src/packages/JwtUploadImage/index.vue?vue&type=template&id=bc5a72e2
49923
51147
 
49924
51148
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
49925
51149
  var es_array_includes = __webpack_require__(6699);
@@ -49976,6 +51200,11 @@ var commons = __webpack_require__(3310);
49976
51200
  uploadParam: {
49977
51201
  type: Object,
49978
51202
  default: () => {}
51203
+ },
51204
+ // 服务端返回的值的key
51205
+ responseKey: {
51206
+ type: String,
51207
+ default: 'relative_path'
49979
51208
  }
49980
51209
  },
49981
51210
  emits: ['update:modelValue', 'onChange'],
@@ -50050,8 +51279,6 @@ var commons = __webpack_require__(3310);
50050
51279
  // console.log('person变化了', newValue)
50051
51280
  // 这里直接执行的话是在onBeforeMount之前所以放在nextTick一个微任务里面
50052
51281
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
50053
- console.log('person变化了 nextTick', newValue);
50054
-
50055
51282
  if (!state.initOnce) {
50056
51283
  if (newValue) {
50057
51284
  const fileList = handleInitImgPath();
@@ -50061,9 +51288,8 @@ var commons = __webpack_require__(3310);
50061
51288
  }
50062
51289
  }
50063
51290
  });
50064
- }, {
50065
- immediate: true
50066
- });
51291
+ } // { immediate: true }
51292
+ );
50067
51293
  const headers = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
50068
51294
  return {
50069
51295
  Authorization: sessionStorage.getItem('admin-token') || localStorage.getItem('admin-token')
@@ -50127,10 +51353,13 @@ var commons = __webpack_require__(3310);
50127
51353
  };
50128
51354
 
50129
51355
  const handleUploadChange = fileList => {
51356
+ const {
51357
+ responseKey
51358
+ } = props;
50130
51359
  state.initOnce = true;
50131
51360
  let result = [];
50132
51361
  fileList.map(item => {
50133
- const url = item?.response?.data?.relative_path || item.org_url;
51362
+ const url = (responseKey ? item?.response?.data?.[responseKey] : item?.response?.data) || item.org_url;
50134
51363
 
50135
51364
  if (url) {
50136
51365
  result.push(url);
@@ -50169,10 +51398,10 @@ var commons = __webpack_require__(3310);
50169
51398
  }));
50170
51399
  ;// CONCATENATED MODULE: ./src/packages/JwtUploadImage/index.vue?vue&type=script&lang=js
50171
51400
 
50172
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtUploadImage/index.vue?vue&type=style&index=0&id=8300837c&lang=scss
51401
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtUploadImage/index.vue?vue&type=style&index=0&id=bc5a72e2&lang=scss
50173
51402
  // extracted by mini-css-extract-plugin
50174
51403
 
50175
- ;// CONCATENATED MODULE: ./src/packages/JwtUploadImage/index.vue?vue&type=style&index=0&id=8300837c&lang=scss
51404
+ ;// CONCATENATED MODULE: ./src/packages/JwtUploadImage/index.vue?vue&type=style&index=0&id=bc5a72e2&lang=scss
50176
51405
 
50177
51406
  // EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
50178
51407
  var exportHelper = __webpack_require__(3744);
@@ -50195,20 +51424,20 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtUploadImagev
50195
51424
 
50196
51425
  var map = {
50197
51426
  "./JwtCascaderArea/index.vue": 3724,
50198
- "./JwtEditor/index.vue": 5462,
50199
- "./JwtForm/index.vue": 5347,
50200
- "./JwtHeaderButton/index.vue": 3663,
51427
+ "./JwtEditor/index.vue": 8007,
51428
+ "./JwtForm/index.vue": 4751,
51429
+ "./JwtHeaderButton/index.vue": 6886,
50201
51430
  "./JwtIcon/index.vue": 8916,
50202
51431
  "./JwtIconSelect/index.vue": 7047,
50203
51432
  "./JwtImage/index.vue": 8328,
50204
- "./JwtInput/index.vue": 5859,
51433
+ "./JwtInput/index.vue": 1914,
50205
51434
  "./JwtRateIcon/index.vue": 5939,
50206
- "./JwtSelectServer/index.vue": 6742,
50207
- "./JwtTable/index.vue": 8560,
51435
+ "./JwtSelectServer/index.vue": 1279,
51436
+ "./JwtTable/index.vue": 3352,
50208
51437
  "./JwtTableButton/index.vue": 9033,
50209
51438
  "./JwtTableOnly/index.vue": 4016,
50210
51439
  "./JwtTags/index.vue": 1382,
50211
- "./JwtUploadImage/index.vue": 5486
51440
+ "./JwtUploadImage/index.vue": 8719
50212
51441
  };
50213
51442
 
50214
51443
 
@@ -63789,7 +65018,9 @@ const normalizeOptions = (params) => {
63789
65018
  ...messageDefaults,
63790
65019
  ...options
63791
65020
  };
63792
- if ((0,shared_esm_bundler/* isString */.HD)(normalized.appendTo)) {
65021
+ if (!normalized.appendTo) {
65022
+ normalized.appendTo = document.body;
65023
+ } else if ((0,shared_esm_bundler/* isString */.HD)(normalized.appendTo)) {
63793
65024
  let appendTo = document.querySelector(normalized.appendTo);
63794
65025
  if (!(0,types/* isElement */.kK)(appendTo)) {
63795
65026
  (0,error/* debugWarn */.N)("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body.");
@@ -64165,14 +65396,18 @@ const useNamespace = (block) => {
64165
65396
  const cssVar = (object) => {
64166
65397
  const styles = {};
64167
65398
  for (const key in object) {
64168
- styles[`--${namespace.value}-${key}`] = object[key];
65399
+ if (object[key]) {
65400
+ styles[`--${namespace.value}-${key}`] = object[key];
65401
+ }
64169
65402
  }
64170
65403
  return styles;
64171
65404
  };
64172
65405
  const cssVarBlock = (object) => {
64173
65406
  const styles = {};
64174
65407
  for (const key in object) {
64175
- styles[`--${namespace.value}-${block}-${key}`] = object[key];
65408
+ if (object[key]) {
65409
+ styles[`--${namespace.value}-${block}-${key}`] = object[key];
65410
+ }
64176
65411
  }
64177
65412
  return styles;
64178
65413
  };