jwt-ui 1.0.7 → 1.0.8

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
+ /***/ 4282:
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=6d77c825&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-6d77c825"), 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,12 @@ 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: "",
42702
+ "custom-class": "jwt-dialog-wrapper",
42703
+ "destroy-on-close": "",
42662
42704
  title: _ctx.editBoxInfo.title
42663
42705
  }), (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, {
42706
+ 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, {
42707
+ key: 0,
42665
42708
  ref: "editBoxRef",
42666
42709
  modelValue: _ctx.editBoxInfo.model,
42667
42710
  "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.editBoxInfo.model = $event),
@@ -42670,6 +42713,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
42670
42713
  request: _ctx.request,
42671
42714
  "upload-img-url": _ctx.uploadUrl,
42672
42715
  "upload-rich-text-url": _ctx.uploadRichTextUrl,
42716
+ responseKey: _ctx.responseKey,
42673
42717
  onAddSuccess: _ctx.handleAddSuccess,
42674
42718
  onEditSuccess: _ctx.handleEditSuccess
42675
42719
  }, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createSlots)({
@@ -42681,7 +42725,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
42681
42725
  model: _ctx.editBoxInfo.model
42682
42726
  }, undefined, true)])
42683
42727
  };
42684
- })]), 1032, ["modelValue", "config", "fill-url", "request", "upload-img-url", "upload-rich-text-url", "onAddSuccess", "onEditSuccess"])]),
42728
+ })]), 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
42729
  _: 2
42686
42730
  }, [_ctx.appConfig[_ctx.editBoxInfo.boxName]?.footer ? {
42687
42731
  name: "footer",
@@ -42701,7 +42745,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
42701
42745
  }, undefined, true)])])
42702
42746
  } : undefined]), 1040, ["modelValue", "title"])], 64);
42703
42747
  }
42704
- ;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=template&id=ec416c72&scoped=true
42748
+ ;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=template&id=6d77c825&scoped=true
42705
42749
 
42706
42750
  // EXTERNAL MODULE: ./node_modules/@vueuse/shared/index.mjs
42707
42751
  var shared = __webpack_require__(7475);
@@ -45376,42 +45420,6 @@ const focusNode = (el) => {
45376
45420
 
45377
45421
  //# sourceMappingURL=aria.mjs.map
45378
45422
 
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
45423
  ;// CONCATENATED MODULE: ./node_modules/element-plus/es/directives/trap-focus/index.mjs
45416
45424
 
45417
45425
 
@@ -45419,7 +45427,6 @@ const whenMouse = (handler) => {
45419
45427
 
45420
45428
 
45421
45429
 
45422
-
45423
45430
  const FOCUSABLE_CHILDREN = "_trap-focus-children";
45424
45431
  const TRAP_FOCUS_HANDLER = "_trap-focus-handler";
45425
45432
  const FOCUS_STACK = [];
@@ -45455,7 +45462,7 @@ const TrapFocus = {
45455
45462
  el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements(el);
45456
45463
  FOCUS_STACK.push(el);
45457
45464
  if (FOCUS_STACK.length <= 1) {
45458
- on(document, "keydown", FOCUS_HANDLER);
45465
+ document.addEventListener("keydown", FOCUS_HANDLER);
45459
45466
  }
45460
45467
  },
45461
45468
  updated(el) {
@@ -45466,7 +45473,7 @@ const TrapFocus = {
45466
45473
  unmounted() {
45467
45474
  FOCUS_STACK.shift();
45468
45475
  if (FOCUS_STACK.length === 0) {
45469
- off(document, "keydown", FOCUS_HANDLER);
45476
+ document.removeEventListener("keydown", FOCUS_HANDLER);
45470
45477
  }
45471
45478
  }
45472
45479
  };
@@ -45589,13 +45596,13 @@ const FOCUS_TRAP_INJECTION_KEY = Symbol("elFocusTrap");
45589
45596
 
45590
45597
 
45591
45598
  let registeredEscapeHandlers = [];
45599
+ const cachedHandler = (e) => {
45600
+ const event = e;
45601
+ if (event.key === aria/* EVENT_CODE.esc */.n.esc) {
45602
+ registeredEscapeHandlers.forEach((registeredHandler) => registeredHandler(event));
45603
+ }
45604
+ };
45592
45605
  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
45606
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
45600
45607
  if (registeredEscapeHandlers.length === 0) {
45601
45608
  document.addEventListener("keydown", cachedHandler);
@@ -47462,6 +47469,1211 @@ const useDraggable = (targetRef, dragRef, draggable) => {
47462
47469
 
47463
47470
  //# sourceMappingURL=index.mjs.map
47464
47471
 
47472
+ ;// CONCATENATED MODULE: ./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
47473
+
47474
+
47475
+ function warn(msg, ...args) {
47476
+ console.warn(`[Vue warn] ${msg}`, ...args);
47477
+ }
47478
+
47479
+ let activeEffectScope;
47480
+ class EffectScope {
47481
+ constructor(detached = false) {
47482
+ /**
47483
+ * @internal
47484
+ */
47485
+ this.active = true;
47486
+ /**
47487
+ * @internal
47488
+ */
47489
+ this.effects = [];
47490
+ /**
47491
+ * @internal
47492
+ */
47493
+ this.cleanups = [];
47494
+ if (!detached && activeEffectScope) {
47495
+ this.parent = activeEffectScope;
47496
+ this.index =
47497
+ (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
47498
+ }
47499
+ }
47500
+ run(fn) {
47501
+ if (this.active) {
47502
+ const currentEffectScope = activeEffectScope;
47503
+ try {
47504
+ activeEffectScope = this;
47505
+ return fn();
47506
+ }
47507
+ finally {
47508
+ activeEffectScope = currentEffectScope;
47509
+ }
47510
+ }
47511
+ else if ((false)) {}
47512
+ }
47513
+ /**
47514
+ * This should only be called on non-detached scopes
47515
+ * @internal
47516
+ */
47517
+ on() {
47518
+ activeEffectScope = this;
47519
+ }
47520
+ /**
47521
+ * This should only be called on non-detached scopes
47522
+ * @internal
47523
+ */
47524
+ off() {
47525
+ activeEffectScope = this.parent;
47526
+ }
47527
+ stop(fromParent) {
47528
+ if (this.active) {
47529
+ let i, l;
47530
+ for (i = 0, l = this.effects.length; i < l; i++) {
47531
+ this.effects[i].stop();
47532
+ }
47533
+ for (i = 0, l = this.cleanups.length; i < l; i++) {
47534
+ this.cleanups[i]();
47535
+ }
47536
+ if (this.scopes) {
47537
+ for (i = 0, l = this.scopes.length; i < l; i++) {
47538
+ this.scopes[i].stop(true);
47539
+ }
47540
+ }
47541
+ // nested scope, dereference from parent to avoid memory leaks
47542
+ if (this.parent && !fromParent) {
47543
+ // optimized O(1) removal
47544
+ const last = this.parent.scopes.pop();
47545
+ if (last && last !== this) {
47546
+ this.parent.scopes[this.index] = last;
47547
+ last.index = this.index;
47548
+ }
47549
+ }
47550
+ this.active = false;
47551
+ }
47552
+ }
47553
+ }
47554
+ function effectScope(detached) {
47555
+ return new EffectScope(detached);
47556
+ }
47557
+ function recordEffectScope(effect, scope = activeEffectScope) {
47558
+ if (scope && scope.active) {
47559
+ scope.effects.push(effect);
47560
+ }
47561
+ }
47562
+ function getCurrentScope() {
47563
+ return activeEffectScope;
47564
+ }
47565
+ function onScopeDispose(fn) {
47566
+ if (activeEffectScope) {
47567
+ activeEffectScope.cleanups.push(fn);
47568
+ }
47569
+ else if ((false)) {}
47570
+ }
47571
+
47572
+ const createDep = (effects) => {
47573
+ const dep = new Set(effects);
47574
+ dep.w = 0;
47575
+ dep.n = 0;
47576
+ return dep;
47577
+ };
47578
+ const wasTracked = (dep) => (dep.w & trackOpBit) > 0;
47579
+ const newTracked = (dep) => (dep.n & trackOpBit) > 0;
47580
+ const initDepMarkers = ({ deps }) => {
47581
+ if (deps.length) {
47582
+ for (let i = 0; i < deps.length; i++) {
47583
+ deps[i].w |= trackOpBit; // set was tracked
47584
+ }
47585
+ }
47586
+ };
47587
+ const finalizeDepMarkers = (effect) => {
47588
+ const { deps } = effect;
47589
+ if (deps.length) {
47590
+ let ptr = 0;
47591
+ for (let i = 0; i < deps.length; i++) {
47592
+ const dep = deps[i];
47593
+ if (wasTracked(dep) && !newTracked(dep)) {
47594
+ dep.delete(effect);
47595
+ }
47596
+ else {
47597
+ deps[ptr++] = dep;
47598
+ }
47599
+ // clear bits
47600
+ dep.w &= ~trackOpBit;
47601
+ dep.n &= ~trackOpBit;
47602
+ }
47603
+ deps.length = ptr;
47604
+ }
47605
+ };
47606
+
47607
+ const targetMap = new WeakMap();
47608
+ // The number of effects currently being tracked recursively.
47609
+ let effectTrackDepth = 0;
47610
+ let trackOpBit = 1;
47611
+ /**
47612
+ * The bitwise track markers support at most 30 levels of recursion.
47613
+ * This value is chosen to enable modern JS engines to use a SMI on all platforms.
47614
+ * When recursion depth is greater, fall back to using a full cleanup.
47615
+ */
47616
+ const maxMarkerBits = 30;
47617
+ let activeEffect;
47618
+ const ITERATE_KEY = Symbol(( false) ? 0 : '');
47619
+ const MAP_KEY_ITERATE_KEY = Symbol(( false) ? 0 : '');
47620
+ class ReactiveEffect {
47621
+ constructor(fn, scheduler = null, scope) {
47622
+ this.fn = fn;
47623
+ this.scheduler = scheduler;
47624
+ this.active = true;
47625
+ this.deps = [];
47626
+ this.parent = undefined;
47627
+ recordEffectScope(this, scope);
47628
+ }
47629
+ run() {
47630
+ if (!this.active) {
47631
+ return this.fn();
47632
+ }
47633
+ let parent = activeEffect;
47634
+ let lastShouldTrack = shouldTrack;
47635
+ while (parent) {
47636
+ if (parent === this) {
47637
+ return;
47638
+ }
47639
+ parent = parent.parent;
47640
+ }
47641
+ try {
47642
+ this.parent = activeEffect;
47643
+ activeEffect = this;
47644
+ shouldTrack = true;
47645
+ trackOpBit = 1 << ++effectTrackDepth;
47646
+ if (effectTrackDepth <= maxMarkerBits) {
47647
+ initDepMarkers(this);
47648
+ }
47649
+ else {
47650
+ cleanupEffect(this);
47651
+ }
47652
+ return this.fn();
47653
+ }
47654
+ finally {
47655
+ if (effectTrackDepth <= maxMarkerBits) {
47656
+ finalizeDepMarkers(this);
47657
+ }
47658
+ trackOpBit = 1 << --effectTrackDepth;
47659
+ activeEffect = this.parent;
47660
+ shouldTrack = lastShouldTrack;
47661
+ this.parent = undefined;
47662
+ if (this.deferStop) {
47663
+ this.stop();
47664
+ }
47665
+ }
47666
+ }
47667
+ stop() {
47668
+ // stopped while running itself - defer the cleanup
47669
+ if (activeEffect === this) {
47670
+ this.deferStop = true;
47671
+ }
47672
+ else if (this.active) {
47673
+ cleanupEffect(this);
47674
+ if (this.onStop) {
47675
+ this.onStop();
47676
+ }
47677
+ this.active = false;
47678
+ }
47679
+ }
47680
+ }
47681
+ function cleanupEffect(effect) {
47682
+ const { deps } = effect;
47683
+ if (deps.length) {
47684
+ for (let i = 0; i < deps.length; i++) {
47685
+ deps[i].delete(effect);
47686
+ }
47687
+ deps.length = 0;
47688
+ }
47689
+ }
47690
+ function effect(fn, options) {
47691
+ if (fn.effect) {
47692
+ fn = fn.effect.fn;
47693
+ }
47694
+ const _effect = new ReactiveEffect(fn);
47695
+ if (options) {
47696
+ extend(_effect, options);
47697
+ if (options.scope)
47698
+ recordEffectScope(_effect, options.scope);
47699
+ }
47700
+ if (!options || !options.lazy) {
47701
+ _effect.run();
47702
+ }
47703
+ const runner = _effect.run.bind(_effect);
47704
+ runner.effect = _effect;
47705
+ return runner;
47706
+ }
47707
+ function stop(runner) {
47708
+ runner.effect.stop();
47709
+ }
47710
+ let shouldTrack = true;
47711
+ const trackStack = [];
47712
+ function pauseTracking() {
47713
+ trackStack.push(shouldTrack);
47714
+ shouldTrack = false;
47715
+ }
47716
+ function enableTracking() {
47717
+ trackStack.push(shouldTrack);
47718
+ shouldTrack = true;
47719
+ }
47720
+ function resetTracking() {
47721
+ const last = trackStack.pop();
47722
+ shouldTrack = last === undefined ? true : last;
47723
+ }
47724
+ function track(target, type, key) {
47725
+ if (shouldTrack && activeEffect) {
47726
+ let depsMap = targetMap.get(target);
47727
+ if (!depsMap) {
47728
+ targetMap.set(target, (depsMap = new Map()));
47729
+ }
47730
+ let dep = depsMap.get(key);
47731
+ if (!dep) {
47732
+ depsMap.set(key, (dep = createDep()));
47733
+ }
47734
+ const eventInfo = ( false)
47735
+ ? 0
47736
+ : undefined;
47737
+ trackEffects(dep, eventInfo);
47738
+ }
47739
+ }
47740
+ function trackEffects(dep, debuggerEventExtraInfo) {
47741
+ let shouldTrack = false;
47742
+ if (effectTrackDepth <= maxMarkerBits) {
47743
+ if (!newTracked(dep)) {
47744
+ dep.n |= trackOpBit; // set newly tracked
47745
+ shouldTrack = !wasTracked(dep);
47746
+ }
47747
+ }
47748
+ else {
47749
+ // Full cleanup mode.
47750
+ shouldTrack = !dep.has(activeEffect);
47751
+ }
47752
+ if (shouldTrack) {
47753
+ dep.add(activeEffect);
47754
+ activeEffect.deps.push(dep);
47755
+ if (false) {}
47756
+ }
47757
+ }
47758
+ function trigger(target, type, key, newValue, oldValue, oldTarget) {
47759
+ const depsMap = targetMap.get(target);
47760
+ if (!depsMap) {
47761
+ // never been tracked
47762
+ return;
47763
+ }
47764
+ let deps = [];
47765
+ if (type === "clear" /* CLEAR */) {
47766
+ // collection being cleared
47767
+ // trigger all effects for target
47768
+ deps = [...depsMap.values()];
47769
+ }
47770
+ else if (key === 'length' && (0,shared_esm_bundler/* isArray */.kJ)(target)) {
47771
+ depsMap.forEach((dep, key) => {
47772
+ if (key === 'length' || key >= newValue) {
47773
+ deps.push(dep);
47774
+ }
47775
+ });
47776
+ }
47777
+ else {
47778
+ // schedule runs for SET | ADD | DELETE
47779
+ if (key !== void 0) {
47780
+ deps.push(depsMap.get(key));
47781
+ }
47782
+ // also run for iteration key on ADD | DELETE | Map.SET
47783
+ switch (type) {
47784
+ case "add" /* ADD */:
47785
+ if (!(0,shared_esm_bundler/* isArray */.kJ)(target)) {
47786
+ deps.push(depsMap.get(ITERATE_KEY));
47787
+ if ((0,shared_esm_bundler/* isMap */._N)(target)) {
47788
+ deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
47789
+ }
47790
+ }
47791
+ else if ((0,shared_esm_bundler/* isIntegerKey */.S0)(key)) {
47792
+ // new index added to array -> length changes
47793
+ deps.push(depsMap.get('length'));
47794
+ }
47795
+ break;
47796
+ case "delete" /* DELETE */:
47797
+ if (!(0,shared_esm_bundler/* isArray */.kJ)(target)) {
47798
+ deps.push(depsMap.get(ITERATE_KEY));
47799
+ if ((0,shared_esm_bundler/* isMap */._N)(target)) {
47800
+ deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
47801
+ }
47802
+ }
47803
+ break;
47804
+ case "set" /* SET */:
47805
+ if ((0,shared_esm_bundler/* isMap */._N)(target)) {
47806
+ deps.push(depsMap.get(ITERATE_KEY));
47807
+ }
47808
+ break;
47809
+ }
47810
+ }
47811
+ const eventInfo = ( false)
47812
+ ? 0
47813
+ : undefined;
47814
+ if (deps.length === 1) {
47815
+ if (deps[0]) {
47816
+ if ((false)) {}
47817
+ else {
47818
+ triggerEffects(deps[0]);
47819
+ }
47820
+ }
47821
+ }
47822
+ else {
47823
+ const effects = [];
47824
+ for (const dep of deps) {
47825
+ if (dep) {
47826
+ effects.push(...dep);
47827
+ }
47828
+ }
47829
+ if ((false)) {}
47830
+ else {
47831
+ triggerEffects(createDep(effects));
47832
+ }
47833
+ }
47834
+ }
47835
+ function triggerEffects(dep, debuggerEventExtraInfo) {
47836
+ // spread into array for stabilization
47837
+ const effects = (0,shared_esm_bundler/* isArray */.kJ)(dep) ? dep : [...dep];
47838
+ for (const effect of effects) {
47839
+ if (effect.computed) {
47840
+ triggerEffect(effect, debuggerEventExtraInfo);
47841
+ }
47842
+ }
47843
+ for (const effect of effects) {
47844
+ if (!effect.computed) {
47845
+ triggerEffect(effect, debuggerEventExtraInfo);
47846
+ }
47847
+ }
47848
+ }
47849
+ function triggerEffect(effect, debuggerEventExtraInfo) {
47850
+ if (effect !== activeEffect || effect.allowRecurse) {
47851
+ if (false) {}
47852
+ if (effect.scheduler) {
47853
+ effect.scheduler();
47854
+ }
47855
+ else {
47856
+ effect.run();
47857
+ }
47858
+ }
47859
+ }
47860
+
47861
+ const isNonTrackableKeys = /*#__PURE__*/ (0,shared_esm_bundler/* makeMap */.fY)(`__proto__,__v_isRef,__isVue`);
47862
+ const builtInSymbols = new Set(
47863
+ /*#__PURE__*/
47864
+ Object.getOwnPropertyNames(Symbol)
47865
+ // ios10.x Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller'
47866
+ // but accessing them on Symbol leads to TypeError because Symbol is a strict mode
47867
+ // function
47868
+ .filter(key => key !== 'arguments' && key !== 'caller')
47869
+ .map(key => Symbol[key])
47870
+ .filter(shared_esm_bundler/* isSymbol */.yk));
47871
+ const reactivity_esm_bundler_get = /*#__PURE__*/ createGetter();
47872
+ const shallowGet = /*#__PURE__*/ createGetter(false, true);
47873
+ const readonlyGet = /*#__PURE__*/ createGetter(true);
47874
+ const shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true);
47875
+ const arrayInstrumentations = /*#__PURE__*/ createArrayInstrumentations();
47876
+ function createArrayInstrumentations() {
47877
+ const instrumentations = {};
47878
+ ['includes', 'indexOf', 'lastIndexOf'].forEach(key => {
47879
+ instrumentations[key] = function (...args) {
47880
+ const arr = toRaw(this);
47881
+ for (let i = 0, l = this.length; i < l; i++) {
47882
+ track(arr, "get" /* GET */, i + '');
47883
+ }
47884
+ // we run the method using the original args first (which may be reactive)
47885
+ const res = arr[key](...args);
47886
+ if (res === -1 || res === false) {
47887
+ // if that didn't work, run it again using raw values.
47888
+ return arr[key](...args.map(toRaw));
47889
+ }
47890
+ else {
47891
+ return res;
47892
+ }
47893
+ };
47894
+ });
47895
+ ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => {
47896
+ instrumentations[key] = function (...args) {
47897
+ pauseTracking();
47898
+ const res = toRaw(this)[key].apply(this, args);
47899
+ resetTracking();
47900
+ return res;
47901
+ };
47902
+ });
47903
+ return instrumentations;
47904
+ }
47905
+ function createGetter(isReadonly = false, shallow = false) {
47906
+ return function get(target, key, receiver) {
47907
+ if (key === "__v_isReactive" /* IS_REACTIVE */) {
47908
+ return !isReadonly;
47909
+ }
47910
+ else if (key === "__v_isReadonly" /* IS_READONLY */) {
47911
+ return isReadonly;
47912
+ }
47913
+ else if (key === "__v_isShallow" /* IS_SHALLOW */) {
47914
+ return shallow;
47915
+ }
47916
+ else if (key === "__v_raw" /* RAW */ &&
47917
+ receiver ===
47918
+ (isReadonly
47919
+ ? shallow
47920
+ ? shallowReadonlyMap
47921
+ : readonlyMap
47922
+ : shallow
47923
+ ? shallowReactiveMap
47924
+ : reactiveMap).get(target)) {
47925
+ return target;
47926
+ }
47927
+ const targetIsArray = (0,shared_esm_bundler/* isArray */.kJ)(target);
47928
+ if (!isReadonly && targetIsArray && (0,shared_esm_bundler/* hasOwn */.RI)(arrayInstrumentations, key)) {
47929
+ return Reflect.get(arrayInstrumentations, key, receiver);
47930
+ }
47931
+ const res = Reflect.get(target, key, receiver);
47932
+ if ((0,shared_esm_bundler/* isSymbol */.yk)(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
47933
+ return res;
47934
+ }
47935
+ if (!isReadonly) {
47936
+ track(target, "get" /* GET */, key);
47937
+ }
47938
+ if (shallow) {
47939
+ return res;
47940
+ }
47941
+ if (isRef(res)) {
47942
+ // ref unwrapping - skip unwrap for Array + integer key.
47943
+ return targetIsArray && (0,shared_esm_bundler/* isIntegerKey */.S0)(key) ? res : res.value;
47944
+ }
47945
+ if ((0,shared_esm_bundler/* isObject */.Kn)(res)) {
47946
+ // Convert returned value into a proxy as well. we do the isObject check
47947
+ // here to avoid invalid value warning. Also need to lazy access readonly
47948
+ // and reactive here to avoid circular dependency.
47949
+ return isReadonly ? readonly(res) : reactive(res);
47950
+ }
47951
+ return res;
47952
+ };
47953
+ }
47954
+ const set = /*#__PURE__*/ createSetter();
47955
+ const shallowSet = /*#__PURE__*/ createSetter(true);
47956
+ function createSetter(shallow = false) {
47957
+ return function set(target, key, value, receiver) {
47958
+ let oldValue = target[key];
47959
+ if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
47960
+ return false;
47961
+ }
47962
+ if (!shallow && !isReadonly(value)) {
47963
+ if (!isShallow(value)) {
47964
+ value = toRaw(value);
47965
+ oldValue = toRaw(oldValue);
47966
+ }
47967
+ if (!(0,shared_esm_bundler/* isArray */.kJ)(target) && isRef(oldValue) && !isRef(value)) {
47968
+ oldValue.value = value;
47969
+ return true;
47970
+ }
47971
+ }
47972
+ const hadKey = (0,shared_esm_bundler/* isArray */.kJ)(target) && (0,shared_esm_bundler/* isIntegerKey */.S0)(key)
47973
+ ? Number(key) < target.length
47974
+ : (0,shared_esm_bundler/* hasOwn */.RI)(target, key);
47975
+ const result = Reflect.set(target, key, value, receiver);
47976
+ // don't trigger if target is something up in the prototype chain of original
47977
+ if (target === toRaw(receiver)) {
47978
+ if (!hadKey) {
47979
+ trigger(target, "add" /* ADD */, key, value);
47980
+ }
47981
+ else if ((0,shared_esm_bundler/* hasChanged */.aU)(value, oldValue)) {
47982
+ trigger(target, "set" /* SET */, key, value, oldValue);
47983
+ }
47984
+ }
47985
+ return result;
47986
+ };
47987
+ }
47988
+ function deleteProperty(target, key) {
47989
+ const hadKey = (0,shared_esm_bundler/* hasOwn */.RI)(target, key);
47990
+ const oldValue = target[key];
47991
+ const result = Reflect.deleteProperty(target, key);
47992
+ if (result && hadKey) {
47993
+ trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
47994
+ }
47995
+ return result;
47996
+ }
47997
+ function has(target, key) {
47998
+ const result = Reflect.has(target, key);
47999
+ if (!(0,shared_esm_bundler/* isSymbol */.yk)(key) || !builtInSymbols.has(key)) {
48000
+ track(target, "has" /* HAS */, key);
48001
+ }
48002
+ return result;
48003
+ }
48004
+ function ownKeys(target) {
48005
+ track(target, "iterate" /* ITERATE */, (0,shared_esm_bundler/* isArray */.kJ)(target) ? 'length' : ITERATE_KEY);
48006
+ return Reflect.ownKeys(target);
48007
+ }
48008
+ const mutableHandlers = {
48009
+ get: reactivity_esm_bundler_get,
48010
+ set,
48011
+ deleteProperty,
48012
+ has,
48013
+ ownKeys
48014
+ };
48015
+ const readonlyHandlers = {
48016
+ get: readonlyGet,
48017
+ set(target, key) {
48018
+ if ((false)) {}
48019
+ return true;
48020
+ },
48021
+ deleteProperty(target, key) {
48022
+ if ((false)) {}
48023
+ return true;
48024
+ }
48025
+ };
48026
+ const shallowReactiveHandlers = /*#__PURE__*/ (0,shared_esm_bundler/* extend */.l7)({}, mutableHandlers, {
48027
+ get: shallowGet,
48028
+ set: shallowSet
48029
+ });
48030
+ // Props handlers are special in the sense that it should not unwrap top-level
48031
+ // refs (in order to allow refs to be explicitly passed down), but should
48032
+ // retain the reactivity of the normal readonly object.
48033
+ const shallowReadonlyHandlers = /*#__PURE__*/ (0,shared_esm_bundler/* extend */.l7)({}, readonlyHandlers, {
48034
+ get: shallowReadonlyGet
48035
+ });
48036
+
48037
+ const toShallow = (value) => value;
48038
+ const getProto = (v) => Reflect.getPrototypeOf(v);
48039
+ function get$1(target, key, isReadonly = false, isShallow = false) {
48040
+ // #1772: readonly(reactive(Map)) should return readonly + reactive version
48041
+ // of the value
48042
+ target = target["__v_raw" /* RAW */];
48043
+ const rawTarget = toRaw(target);
48044
+ const rawKey = toRaw(key);
48045
+ if (!isReadonly) {
48046
+ if (key !== rawKey) {
48047
+ track(rawTarget, "get" /* GET */, key);
48048
+ }
48049
+ track(rawTarget, "get" /* GET */, rawKey);
48050
+ }
48051
+ const { has } = getProto(rawTarget);
48052
+ const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
48053
+ if (has.call(rawTarget, key)) {
48054
+ return wrap(target.get(key));
48055
+ }
48056
+ else if (has.call(rawTarget, rawKey)) {
48057
+ return wrap(target.get(rawKey));
48058
+ }
48059
+ else if (target !== rawTarget) {
48060
+ // #3602 readonly(reactive(Map))
48061
+ // ensure that the nested reactive `Map` can do tracking for itself
48062
+ target.get(key);
48063
+ }
48064
+ }
48065
+ function has$1(key, isReadonly = false) {
48066
+ const target = this["__v_raw" /* RAW */];
48067
+ const rawTarget = toRaw(target);
48068
+ const rawKey = toRaw(key);
48069
+ if (!isReadonly) {
48070
+ if (key !== rawKey) {
48071
+ track(rawTarget, "has" /* HAS */, key);
48072
+ }
48073
+ track(rawTarget, "has" /* HAS */, rawKey);
48074
+ }
48075
+ return key === rawKey
48076
+ ? target.has(key)
48077
+ : target.has(key) || target.has(rawKey);
48078
+ }
48079
+ function reactivity_esm_bundler_size(target, isReadonly = false) {
48080
+ target = target["__v_raw" /* RAW */];
48081
+ !isReadonly && track(toRaw(target), "iterate" /* ITERATE */, ITERATE_KEY);
48082
+ return Reflect.get(target, 'size', target);
48083
+ }
48084
+ function add(value) {
48085
+ value = toRaw(value);
48086
+ const target = toRaw(this);
48087
+ const proto = getProto(target);
48088
+ const hadKey = proto.has.call(target, value);
48089
+ if (!hadKey) {
48090
+ target.add(value);
48091
+ trigger(target, "add" /* ADD */, value, value);
48092
+ }
48093
+ return this;
48094
+ }
48095
+ function set$1(key, value) {
48096
+ value = toRaw(value);
48097
+ const target = toRaw(this);
48098
+ const { has, get } = getProto(target);
48099
+ let hadKey = has.call(target, key);
48100
+ if (!hadKey) {
48101
+ key = toRaw(key);
48102
+ hadKey = has.call(target, key);
48103
+ }
48104
+ else if ((false)) {}
48105
+ const oldValue = get.call(target, key);
48106
+ target.set(key, value);
48107
+ if (!hadKey) {
48108
+ trigger(target, "add" /* ADD */, key, value);
48109
+ }
48110
+ else if ((0,shared_esm_bundler/* hasChanged */.aU)(value, oldValue)) {
48111
+ trigger(target, "set" /* SET */, key, value, oldValue);
48112
+ }
48113
+ return this;
48114
+ }
48115
+ function deleteEntry(key) {
48116
+ const target = toRaw(this);
48117
+ const { has, get } = getProto(target);
48118
+ let hadKey = has.call(target, key);
48119
+ if (!hadKey) {
48120
+ key = toRaw(key);
48121
+ hadKey = has.call(target, key);
48122
+ }
48123
+ else if ((false)) {}
48124
+ const oldValue = get ? get.call(target, key) : undefined;
48125
+ // forward the operation before queueing reactions
48126
+ const result = target.delete(key);
48127
+ if (hadKey) {
48128
+ trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
48129
+ }
48130
+ return result;
48131
+ }
48132
+ function clear() {
48133
+ const target = toRaw(this);
48134
+ const hadItems = target.size !== 0;
48135
+ const oldTarget = ( false)
48136
+ ? 0
48137
+ : undefined;
48138
+ // forward the operation before queueing reactions
48139
+ const result = target.clear();
48140
+ if (hadItems) {
48141
+ trigger(target, "clear" /* CLEAR */, undefined, undefined, oldTarget);
48142
+ }
48143
+ return result;
48144
+ }
48145
+ function createForEach(isReadonly, isShallow) {
48146
+ return function forEach(callback, thisArg) {
48147
+ const observed = this;
48148
+ const target = observed["__v_raw" /* RAW */];
48149
+ const rawTarget = toRaw(target);
48150
+ const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
48151
+ !isReadonly && track(rawTarget, "iterate" /* ITERATE */, ITERATE_KEY);
48152
+ return target.forEach((value, key) => {
48153
+ // important: make sure the callback is
48154
+ // 1. invoked with the reactive map as `this` and 3rd arg
48155
+ // 2. the value received should be a corresponding reactive/readonly.
48156
+ return callback.call(thisArg, wrap(value), wrap(key), observed);
48157
+ });
48158
+ };
48159
+ }
48160
+ function createIterableMethod(method, isReadonly, isShallow) {
48161
+ return function (...args) {
48162
+ const target = this["__v_raw" /* RAW */];
48163
+ const rawTarget = toRaw(target);
48164
+ const targetIsMap = (0,shared_esm_bundler/* isMap */._N)(rawTarget);
48165
+ const isPair = method === 'entries' || (method === Symbol.iterator && targetIsMap);
48166
+ const isKeyOnly = method === 'keys' && targetIsMap;
48167
+ const innerIterator = target[method](...args);
48168
+ const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
48169
+ !isReadonly &&
48170
+ track(rawTarget, "iterate" /* ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);
48171
+ // return a wrapped iterator which returns observed versions of the
48172
+ // values emitted from the real iterator
48173
+ return {
48174
+ // iterator protocol
48175
+ next() {
48176
+ const { value, done } = innerIterator.next();
48177
+ return done
48178
+ ? { value, done }
48179
+ : {
48180
+ value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
48181
+ done
48182
+ };
48183
+ },
48184
+ // iterable protocol
48185
+ [Symbol.iterator]() {
48186
+ return this;
48187
+ }
48188
+ };
48189
+ };
48190
+ }
48191
+ function createReadonlyMethod(type) {
48192
+ return function (...args) {
48193
+ if ((false)) {}
48194
+ return type === "delete" /* DELETE */ ? false : this;
48195
+ };
48196
+ }
48197
+ function createInstrumentations() {
48198
+ const mutableInstrumentations = {
48199
+ get(key) {
48200
+ return get$1(this, key);
48201
+ },
48202
+ get size() {
48203
+ return reactivity_esm_bundler_size(this);
48204
+ },
48205
+ has: has$1,
48206
+ add,
48207
+ set: set$1,
48208
+ delete: deleteEntry,
48209
+ clear,
48210
+ forEach: createForEach(false, false)
48211
+ };
48212
+ const shallowInstrumentations = {
48213
+ get(key) {
48214
+ return get$1(this, key, false, true);
48215
+ },
48216
+ get size() {
48217
+ return reactivity_esm_bundler_size(this);
48218
+ },
48219
+ has: has$1,
48220
+ add,
48221
+ set: set$1,
48222
+ delete: deleteEntry,
48223
+ clear,
48224
+ forEach: createForEach(false, true)
48225
+ };
48226
+ const readonlyInstrumentations = {
48227
+ get(key) {
48228
+ return get$1(this, key, true);
48229
+ },
48230
+ get size() {
48231
+ return reactivity_esm_bundler_size(this, true);
48232
+ },
48233
+ has(key) {
48234
+ return has$1.call(this, key, true);
48235
+ },
48236
+ add: createReadonlyMethod("add" /* ADD */),
48237
+ set: createReadonlyMethod("set" /* SET */),
48238
+ delete: createReadonlyMethod("delete" /* DELETE */),
48239
+ clear: createReadonlyMethod("clear" /* CLEAR */),
48240
+ forEach: createForEach(true, false)
48241
+ };
48242
+ const shallowReadonlyInstrumentations = {
48243
+ get(key) {
48244
+ return get$1(this, key, true, true);
48245
+ },
48246
+ get size() {
48247
+ return reactivity_esm_bundler_size(this, true);
48248
+ },
48249
+ has(key) {
48250
+ return has$1.call(this, key, true);
48251
+ },
48252
+ add: createReadonlyMethod("add" /* ADD */),
48253
+ set: createReadonlyMethod("set" /* SET */),
48254
+ delete: createReadonlyMethod("delete" /* DELETE */),
48255
+ clear: createReadonlyMethod("clear" /* CLEAR */),
48256
+ forEach: createForEach(true, true)
48257
+ };
48258
+ const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator];
48259
+ iteratorMethods.forEach(method => {
48260
+ mutableInstrumentations[method] = createIterableMethod(method, false, false);
48261
+ readonlyInstrumentations[method] = createIterableMethod(method, true, false);
48262
+ shallowInstrumentations[method] = createIterableMethod(method, false, true);
48263
+ shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true);
48264
+ });
48265
+ return [
48266
+ mutableInstrumentations,
48267
+ readonlyInstrumentations,
48268
+ shallowInstrumentations,
48269
+ shallowReadonlyInstrumentations
48270
+ ];
48271
+ }
48272
+ const [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/ createInstrumentations();
48273
+ function createInstrumentationGetter(isReadonly, shallow) {
48274
+ const instrumentations = shallow
48275
+ ? isReadonly
48276
+ ? shallowReadonlyInstrumentations
48277
+ : shallowInstrumentations
48278
+ : isReadonly
48279
+ ? readonlyInstrumentations
48280
+ : mutableInstrumentations;
48281
+ return (target, key, receiver) => {
48282
+ if (key === "__v_isReactive" /* IS_REACTIVE */) {
48283
+ return !isReadonly;
48284
+ }
48285
+ else if (key === "__v_isReadonly" /* IS_READONLY */) {
48286
+ return isReadonly;
48287
+ }
48288
+ else if (key === "__v_raw" /* RAW */) {
48289
+ return target;
48290
+ }
48291
+ return Reflect.get((0,shared_esm_bundler/* hasOwn */.RI)(instrumentations, key) && key in target
48292
+ ? instrumentations
48293
+ : target, key, receiver);
48294
+ };
48295
+ }
48296
+ const mutableCollectionHandlers = {
48297
+ get: /*#__PURE__*/ createInstrumentationGetter(false, false)
48298
+ };
48299
+ const shallowCollectionHandlers = {
48300
+ get: /*#__PURE__*/ createInstrumentationGetter(false, true)
48301
+ };
48302
+ const readonlyCollectionHandlers = {
48303
+ get: /*#__PURE__*/ createInstrumentationGetter(true, false)
48304
+ };
48305
+ const shallowReadonlyCollectionHandlers = {
48306
+ get: /*#__PURE__*/ createInstrumentationGetter(true, true)
48307
+ };
48308
+ function checkIdentityKeys(target, has, key) {
48309
+ const rawKey = toRaw(key);
48310
+ if (rawKey !== key && has.call(target, rawKey)) {
48311
+ const type = toRawType(target);
48312
+ console.warn(`Reactive ${type} contains both the raw and reactive ` +
48313
+ `versions of the same object${type === `Map` ? ` as keys` : ``}, ` +
48314
+ `which can lead to inconsistencies. ` +
48315
+ `Avoid differentiating between the raw and reactive versions ` +
48316
+ `of an object and only use the reactive version if possible.`);
48317
+ }
48318
+ }
48319
+
48320
+ const reactiveMap = new WeakMap();
48321
+ const shallowReactiveMap = new WeakMap();
48322
+ const readonlyMap = new WeakMap();
48323
+ const shallowReadonlyMap = new WeakMap();
48324
+ function targetTypeMap(rawType) {
48325
+ switch (rawType) {
48326
+ case 'Object':
48327
+ case 'Array':
48328
+ return 1 /* COMMON */;
48329
+ case 'Map':
48330
+ case 'Set':
48331
+ case 'WeakMap':
48332
+ case 'WeakSet':
48333
+ return 2 /* COLLECTION */;
48334
+ default:
48335
+ return 0 /* INVALID */;
48336
+ }
48337
+ }
48338
+ function getTargetType(value) {
48339
+ return value["__v_skip" /* SKIP */] || !Object.isExtensible(value)
48340
+ ? 0 /* INVALID */
48341
+ : targetTypeMap((0,shared_esm_bundler/* toRawType */.W7)(value));
48342
+ }
48343
+ function reactive(target) {
48344
+ // if trying to observe a readonly proxy, return the readonly version.
48345
+ if (isReadonly(target)) {
48346
+ return target;
48347
+ }
48348
+ return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
48349
+ }
48350
+ /**
48351
+ * Return a shallowly-reactive copy of the original object, where only the root
48352
+ * level properties are reactive. It also does not auto-unwrap refs (even at the
48353
+ * root level).
48354
+ */
48355
+ function shallowReactive(target) {
48356
+ return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);
48357
+ }
48358
+ /**
48359
+ * Creates a readonly copy of the original object. Note the returned copy is not
48360
+ * made reactive, but `readonly` can be called on an already reactive object.
48361
+ */
48362
+ function readonly(target) {
48363
+ return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
48364
+ }
48365
+ /**
48366
+ * Returns a reactive-copy of the original object, where only the root level
48367
+ * properties are readonly, and does NOT unwrap refs nor recursively convert
48368
+ * returned properties.
48369
+ * This is used for creating the props proxy object for stateful components.
48370
+ */
48371
+ function shallowReadonly(target) {
48372
+ return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);
48373
+ }
48374
+ function createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {
48375
+ if (!(0,shared_esm_bundler/* isObject */.Kn)(target)) {
48376
+ if ((false)) {}
48377
+ return target;
48378
+ }
48379
+ // target is already a Proxy, return it.
48380
+ // exception: calling readonly() on a reactive object
48381
+ if (target["__v_raw" /* RAW */] &&
48382
+ !(isReadonly && target["__v_isReactive" /* IS_REACTIVE */])) {
48383
+ return target;
48384
+ }
48385
+ // target already has corresponding Proxy
48386
+ const existingProxy = proxyMap.get(target);
48387
+ if (existingProxy) {
48388
+ return existingProxy;
48389
+ }
48390
+ // only specific value types can be observed.
48391
+ const targetType = getTargetType(target);
48392
+ if (targetType === 0 /* INVALID */) {
48393
+ return target;
48394
+ }
48395
+ const proxy = new Proxy(target, targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers);
48396
+ proxyMap.set(target, proxy);
48397
+ return proxy;
48398
+ }
48399
+ function isReactive(value) {
48400
+ if (isReadonly(value)) {
48401
+ return isReactive(value["__v_raw" /* RAW */]);
48402
+ }
48403
+ return !!(value && value["__v_isReactive" /* IS_REACTIVE */]);
48404
+ }
48405
+ function isReadonly(value) {
48406
+ return !!(value && value["__v_isReadonly" /* IS_READONLY */]);
48407
+ }
48408
+ function isShallow(value) {
48409
+ return !!(value && value["__v_isShallow" /* IS_SHALLOW */]);
48410
+ }
48411
+ function isProxy(value) {
48412
+ return isReactive(value) || isReadonly(value);
48413
+ }
48414
+ function toRaw(observed) {
48415
+ const raw = observed && observed["__v_raw" /* RAW */];
48416
+ return raw ? toRaw(raw) : observed;
48417
+ }
48418
+ function markRaw(value) {
48419
+ def(value, "__v_skip" /* SKIP */, true);
48420
+ return value;
48421
+ }
48422
+ const toReactive = (value) => (0,shared_esm_bundler/* isObject */.Kn)(value) ? reactive(value) : value;
48423
+ const toReadonly = (value) => (0,shared_esm_bundler/* isObject */.Kn)(value) ? readonly(value) : value;
48424
+
48425
+ function trackRefValue(ref) {
48426
+ if (shouldTrack && activeEffect) {
48427
+ ref = toRaw(ref);
48428
+ if ((false)) {}
48429
+ else {
48430
+ trackEffects(ref.dep || (ref.dep = createDep()));
48431
+ }
48432
+ }
48433
+ }
48434
+ function triggerRefValue(ref, newVal) {
48435
+ ref = toRaw(ref);
48436
+ if (ref.dep) {
48437
+ if ((false)) {}
48438
+ else {
48439
+ triggerEffects(ref.dep);
48440
+ }
48441
+ }
48442
+ }
48443
+ function isRef(r) {
48444
+ return !!(r && r.__v_isRef === true);
48445
+ }
48446
+ function ref(value) {
48447
+ return createRef(value, false);
48448
+ }
48449
+ function shallowRef(value) {
48450
+ return createRef(value, true);
48451
+ }
48452
+ function createRef(rawValue, shallow) {
48453
+ if (isRef(rawValue)) {
48454
+ return rawValue;
48455
+ }
48456
+ return new RefImpl(rawValue, shallow);
48457
+ }
48458
+ class RefImpl {
48459
+ constructor(value, __v_isShallow) {
48460
+ this.__v_isShallow = __v_isShallow;
48461
+ this.dep = undefined;
48462
+ this.__v_isRef = true;
48463
+ this._rawValue = __v_isShallow ? value : toRaw(value);
48464
+ this._value = __v_isShallow ? value : toReactive(value);
48465
+ }
48466
+ get value() {
48467
+ trackRefValue(this);
48468
+ return this._value;
48469
+ }
48470
+ set value(newVal) {
48471
+ newVal = this.__v_isShallow ? newVal : toRaw(newVal);
48472
+ if (hasChanged(newVal, this._rawValue)) {
48473
+ this._rawValue = newVal;
48474
+ this._value = this.__v_isShallow ? newVal : toReactive(newVal);
48475
+ triggerRefValue(this, newVal);
48476
+ }
48477
+ }
48478
+ }
48479
+ function triggerRef(ref) {
48480
+ triggerRefValue(ref, ( false) ? 0 : void 0);
48481
+ }
48482
+ function unref(ref) {
48483
+ return isRef(ref) ? ref.value : ref;
48484
+ }
48485
+ const shallowUnwrapHandlers = {
48486
+ get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
48487
+ set: (target, key, value, receiver) => {
48488
+ const oldValue = target[key];
48489
+ if (isRef(oldValue) && !isRef(value)) {
48490
+ oldValue.value = value;
48491
+ return true;
48492
+ }
48493
+ else {
48494
+ return Reflect.set(target, key, value, receiver);
48495
+ }
48496
+ }
48497
+ };
48498
+ function proxyRefs(objectWithRefs) {
48499
+ return isReactive(objectWithRefs)
48500
+ ? objectWithRefs
48501
+ : new Proxy(objectWithRefs, shallowUnwrapHandlers);
48502
+ }
48503
+ class CustomRefImpl {
48504
+ constructor(factory) {
48505
+ this.dep = undefined;
48506
+ this.__v_isRef = true;
48507
+ const { get, set } = factory(() => trackRefValue(this), () => triggerRefValue(this));
48508
+ this._get = get;
48509
+ this._set = set;
48510
+ }
48511
+ get value() {
48512
+ return this._get();
48513
+ }
48514
+ set value(newVal) {
48515
+ this._set(newVal);
48516
+ }
48517
+ }
48518
+ function customRef(factory) {
48519
+ return new CustomRefImpl(factory);
48520
+ }
48521
+ function toRefs(object) {
48522
+ if (false) {}
48523
+ const ret = isArray(object) ? new Array(object.length) : {};
48524
+ for (const key in object) {
48525
+ ret[key] = toRef(object, key);
48526
+ }
48527
+ return ret;
48528
+ }
48529
+ class ObjectRefImpl {
48530
+ constructor(_object, _key, _defaultValue) {
48531
+ this._object = _object;
48532
+ this._key = _key;
48533
+ this._defaultValue = _defaultValue;
48534
+ this.__v_isRef = true;
48535
+ }
48536
+ get value() {
48537
+ const val = this._object[this._key];
48538
+ return val === undefined ? this._defaultValue : val;
48539
+ }
48540
+ set value(newVal) {
48541
+ this._object[this._key] = newVal;
48542
+ }
48543
+ }
48544
+ function toRef(object, key, defaultValue) {
48545
+ const val = object[key];
48546
+ return isRef(val)
48547
+ ? val
48548
+ : new ObjectRefImpl(object, key, defaultValue);
48549
+ }
48550
+
48551
+ class ComputedRefImpl {
48552
+ constructor(getter, _setter, isReadonly, isSSR) {
48553
+ this._setter = _setter;
48554
+ this.dep = undefined;
48555
+ this.__v_isRef = true;
48556
+ this._dirty = true;
48557
+ this.effect = new ReactiveEffect(getter, () => {
48558
+ if (!this._dirty) {
48559
+ this._dirty = true;
48560
+ triggerRefValue(this);
48561
+ }
48562
+ });
48563
+ this.effect.computed = this;
48564
+ this.effect.active = this._cacheable = !isSSR;
48565
+ this["__v_isReadonly" /* IS_READONLY */] = isReadonly;
48566
+ }
48567
+ get value() {
48568
+ // the computed ref may get wrapped by other proxies e.g. readonly() #3376
48569
+ const self = toRaw(this);
48570
+ trackRefValue(self);
48571
+ if (self._dirty || !self._cacheable) {
48572
+ self._dirty = false;
48573
+ self._value = self.effect.run();
48574
+ }
48575
+ return self._value;
48576
+ }
48577
+ set value(newValue) {
48578
+ this._setter(newValue);
48579
+ }
48580
+ }
48581
+ function computed(getterOrOptions, debugOptions, isSSR = false) {
48582
+ let getter;
48583
+ let setter;
48584
+ const onlyGetter = (0,shared_esm_bundler/* isFunction */.mf)(getterOrOptions);
48585
+ if (onlyGetter) {
48586
+ getter = getterOrOptions;
48587
+ setter = ( false)
48588
+ ? 0
48589
+ : shared_esm_bundler/* NOOP */.dG;
48590
+ }
48591
+ else {
48592
+ getter = getterOrOptions.get;
48593
+ setter = getterOrOptions.set;
48594
+ }
48595
+ const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);
48596
+ if (false) {}
48597
+ return cRef;
48598
+ }
48599
+
48600
+ var _a;
48601
+ const tick = /*#__PURE__*/ (/* unused pure expression or super */ null && (Promise.resolve()));
48602
+ const queue = (/* unused pure expression or super */ null && ([]));
48603
+ let queued = false;
48604
+ const scheduler = (fn) => {
48605
+ queue.push(fn);
48606
+ if (!queued) {
48607
+ queued = true;
48608
+ tick.then(flush);
48609
+ }
48610
+ };
48611
+ const flush = () => {
48612
+ for (let i = 0; i < queue.length; i++) {
48613
+ queue[i]();
48614
+ }
48615
+ queue.length = 0;
48616
+ queued = false;
48617
+ };
48618
+ class DeferredComputedRefImpl {
48619
+ constructor(getter) {
48620
+ this.dep = undefined;
48621
+ this._dirty = true;
48622
+ this.__v_isRef = true;
48623
+ this[_a] = true;
48624
+ let compareTarget;
48625
+ let hasCompareTarget = false;
48626
+ let scheduled = false;
48627
+ this.effect = new ReactiveEffect(getter, (computedTrigger) => {
48628
+ if (this.dep) {
48629
+ if (computedTrigger) {
48630
+ compareTarget = this._value;
48631
+ hasCompareTarget = true;
48632
+ }
48633
+ else if (!scheduled) {
48634
+ const valueToCompare = hasCompareTarget ? compareTarget : this._value;
48635
+ scheduled = true;
48636
+ hasCompareTarget = false;
48637
+ scheduler(() => {
48638
+ if (this.effect.active && this._get() !== valueToCompare) {
48639
+ triggerRefValue(this);
48640
+ }
48641
+ scheduled = false;
48642
+ });
48643
+ }
48644
+ // chained upstream computeds are notified synchronously to ensure
48645
+ // value invalidation in case of sync access; normal effects are
48646
+ // deferred to be triggered in scheduler.
48647
+ for (const e of this.dep) {
48648
+ if (e.computed instanceof DeferredComputedRefImpl) {
48649
+ e.scheduler(true /* computedTrigger */);
48650
+ }
48651
+ }
48652
+ }
48653
+ this._dirty = true;
48654
+ });
48655
+ this.effect.computed = this;
48656
+ }
48657
+ _get() {
48658
+ if (this._dirty) {
48659
+ this._dirty = false;
48660
+ return (this._value = this.effect.run());
48661
+ }
48662
+ return this._value;
48663
+ }
48664
+ get value() {
48665
+ trackRefValue(this);
48666
+ // the computed ref may get wrapped by other proxies e.g. readonly() #3376
48667
+ return toRaw(this)._get();
48668
+ }
48669
+ }
48670
+ _a = "__v_isReadonly" /* IS_READONLY */;
48671
+ function deferredComputed(getter) {
48672
+ return new DeferredComputedRefImpl(getter);
48673
+ }
48674
+
48675
+
48676
+
47465
48677
  ;// CONCATENATED MODULE: ./node_modules/element-plus/es/utils/dom/scroll.mjs
47466
48678
 
47467
48679
 
@@ -47491,14 +48703,14 @@ const getScrollContainer = (el, isVertical) => {
47491
48703
  return parent;
47492
48704
  };
47493
48705
  let scrollBarWidth;
47494
- const getScrollBarWidth = () => {
48706
+ const getScrollBarWidth = (namespace) => {
47495
48707
  var _a;
47496
48708
  if (!shared/* isClient */.C5)
47497
48709
  return 0;
47498
48710
  if (scrollBarWidth !== void 0)
47499
48711
  return scrollBarWidth;
47500
48712
  const outer = document.createElement("div");
47501
- outer.className = "el-scrollbar__wrap";
48713
+ outer.className = `${namespace}-scrollbar__wrap`;
47502
48714
  outer.style.visibility = "hidden";
47503
48715
  outer.style.width = "100px";
47504
48716
  outer.style.position = "absolute";
@@ -47549,11 +48761,15 @@ function scrollIntoView(container, selected) {
47549
48761
 
47550
48762
 
47551
48763
 
48764
+
48765
+
47552
48766
  const useLockscreen = (trigger) => {
47553
48767
  if (!(0,external_commonjs_vue_commonjs2_vue_root_Vue_.isRef)(trigger)) {
47554
48768
  (0,error/* throwError */._)("[useLockscreen]", "You need to pass a ref param to this function");
47555
48769
  }
47556
- if (!shared/* isClient */.C5 || (0,style/* hasClass */.pv)(document.body, "el-popup-parent--hidden")) {
48770
+ const ns = (0,use_namespace/* useNamespace */.s)("popup");
48771
+ const hiddenCls = computed(() => ns.bm("parent", "hidden"));
48772
+ if (!shared/* isClient */.C5 || (0,style/* hasClass */.pv)(document.body, hiddenCls.value)) {
47557
48773
  return;
47558
48774
  }
47559
48775
  let scrollBarWidth = 0;
@@ -47561,7 +48777,7 @@ const useLockscreen = (trigger) => {
47561
48777
  let bodyPaddingRight = "0";
47562
48778
  let computedBodyPaddingRight = 0;
47563
48779
  const cleanup = () => {
47564
- (0,style/* removeClass */.IV)(document.body, "el-popup-parent--hidden");
48780
+ (0,style/* removeClass */.IV)(document.body, hiddenCls.value);
47565
48781
  if (withoutHiddenClass) {
47566
48782
  document.body.style.paddingRight = bodyPaddingRight;
47567
48783
  }
@@ -47571,18 +48787,18 @@ const useLockscreen = (trigger) => {
47571
48787
  cleanup();
47572
48788
  return;
47573
48789
  }
47574
- withoutHiddenClass = !(0,style/* hasClass */.pv)(document.body, "el-popup-parent--hidden");
48790
+ withoutHiddenClass = !(0,style/* hasClass */.pv)(document.body, hiddenCls.value);
47575
48791
  if (withoutHiddenClass) {
47576
48792
  bodyPaddingRight = document.body.style.paddingRight;
47577
48793
  computedBodyPaddingRight = Number.parseInt((0,style/* getStyle */.C2)(document.body, "paddingRight"), 10);
47578
48794
  }
47579
- scrollBarWidth = getScrollBarWidth();
48795
+ scrollBarWidth = getScrollBarWidth(ns.namespace.value);
47580
48796
  const bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
47581
48797
  const bodyOverflowY = (0,style/* getStyle */.C2)(document.body, "overflowY");
47582
48798
  if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === "scroll") && withoutHiddenClass) {
47583
48799
  document.body.style.paddingRight = `${computedBodyPaddingRight + scrollBarWidth}px`;
47584
48800
  }
47585
- (0,style/* addClass */.cn)(document.body, "el-popup-parent--hidden");
48801
+ (0,style/* addClass */.cn)(document.body, hiddenCls.value);
47586
48802
  });
47587
48803
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onScopeDispose)(() => cleanup());
47588
48804
  };
@@ -47636,7 +48852,6 @@ const useRestoreActive = (toggle, initialFocus) => {
47636
48852
 
47637
48853
 
47638
48854
 
47639
-
47640
48855
 
47641
48856
 
47642
48857
  const src_sfc_main = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
@@ -47794,12 +49009,12 @@ const src_sfc_main = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComp
47794
49009
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(async () => {
47795
49010
  await (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
47796
49011
  if (props.closeOnHashChange) {
47797
- on(window, "hashchange", doClose);
49012
+ window.addEventListener("hashchange", doClose);
47798
49013
  }
47799
49014
  });
47800
49015
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
47801
49016
  if (props.closeOnHashChange) {
47802
- off(window, "hashchange", doClose);
49017
+ window.removeEventListener("hashchange", doClose);
47803
49018
  }
47804
49019
  });
47805
49020
  function doClose() {
@@ -48308,6 +49523,11 @@ const paginationDefault = {
48308
49523
  type: String,
48309
49524
  default: ''
48310
49525
  },
49526
+ responseKey: {
49527
+ type: String,
49528
+ default: 'relative_path'
49529
+ },
49530
+ // 图片上传返回地址key
48311
49531
  fillUrl: {
48312
49532
  type: Function,
48313
49533
  default: null
@@ -48434,11 +49654,10 @@ const paginationDefault = {
48434
49654
  type,
48435
49655
  startKey,
48436
49656
  endKey,
48437
- formAttrs: {
48438
- multiple,
48439
- valueType
48440
- }
49657
+ formAttrs
48441
49658
  } = item;
49659
+ const multiple = formAttrs?.multiple || false;
49660
+ const valueType = formAttrs?.valueType || '';
48442
49661
 
48443
49662
  if (row[key] && type === 'inputNumber') {
48444
49663
  result[key] = +row[key];
@@ -48807,8 +50026,6 @@ const paginationDefault = {
48807
50026
  editBoxInfo.boxName = editBoxName;
48808
50027
  editBoxInfo.visible = true;
48809
50028
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
48810
- editBoxInfo.visible = true;
48811
-
48812
50029
  if (row) {
48813
50030
  if (appConfig?.[editBoxName]?.form?.api?.detail) {
48814
50031
  handleGetDetail(row, editBoxName);
@@ -49001,10 +50218,15 @@ const paginationDefault = {
49001
50218
  }));
49002
50219
  ;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=script&lang=js
49003
50220
 
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
50221
+ ;// 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=6d77c825&lang=scss&scoped=true
50222
+ // extracted by mini-css-extract-plugin
50223
+
50224
+ ;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=style&index=0&id=6d77c825&lang=scss&scoped=true
50225
+
50226
+ ;// 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=6d77c825&lang=scss
49005
50227
  // extracted by mini-css-extract-plugin
49006
50228
 
49007
- ;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=style&index=0&id=ec416c72&lang=scss&scoped=true
50229
+ ;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=style&index=1&id=6d77c825&lang=scss
49008
50230
 
49009
50231
  // EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
49010
50232
  var exportHelper = __webpack_require__(3744);
@@ -49016,7 +50238,8 @@ var exportHelper = __webpack_require__(3744);
49016
50238
  ;
49017
50239
 
49018
50240
 
49019
- const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtTablevue_type_script_lang_js, [['render',render],['__scopeId',"data-v-ec416c72"]])
50241
+
50242
+ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtTablevue_type_script_lang_js, [['render',render],['__scopeId',"data-v-6d77c825"]])
49020
50243
 
49021
50244
  /* harmony default export */ var JwtTable = (__exports__);
49022
50245
 
@@ -49856,7 +51079,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtTagsvue_type
49856
51079
 
49857
51080
  /***/ }),
49858
51081
 
49859
- /***/ 5486:
51082
+ /***/ 8719:
49860
51083
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
49861
51084
 
49862
51085
  "use strict";
@@ -49870,7 +51093,7 @@ __webpack_require__.d(__webpack_exports__, {
49870
51093
 
49871
51094
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
49872
51095
  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
51096
+ ;// 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
51097
 
49875
51098
  const _hoisted_1 = ["src"];
49876
51099
  function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -49919,7 +51142,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
49919
51142
  _: 1
49920
51143
  }, 8, ["modelValue"])], 64);
49921
51144
  }
49922
- ;// CONCATENATED MODULE: ./src/packages/JwtUploadImage/index.vue?vue&type=template&id=8300837c
51145
+ ;// CONCATENATED MODULE: ./src/packages/JwtUploadImage/index.vue?vue&type=template&id=bc5a72e2
49923
51146
 
49924
51147
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
49925
51148
  var es_array_includes = __webpack_require__(6699);
@@ -49976,6 +51199,11 @@ var commons = __webpack_require__(3310);
49976
51199
  uploadParam: {
49977
51200
  type: Object,
49978
51201
  default: () => {}
51202
+ },
51203
+ // 服务端返回的值的key
51204
+ responseKey: {
51205
+ type: String,
51206
+ default: 'relative_path'
49979
51207
  }
49980
51208
  },
49981
51209
  emits: ['update:modelValue', 'onChange'],
@@ -50050,8 +51278,6 @@ var commons = __webpack_require__(3310);
50050
51278
  // console.log('person变化了', newValue)
50051
51279
  // 这里直接执行的话是在onBeforeMount之前所以放在nextTick一个微任务里面
50052
51280
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
50053
- console.log('person变化了 nextTick', newValue);
50054
-
50055
51281
  if (!state.initOnce) {
50056
51282
  if (newValue) {
50057
51283
  const fileList = handleInitImgPath();
@@ -50061,9 +51287,8 @@ var commons = __webpack_require__(3310);
50061
51287
  }
50062
51288
  }
50063
51289
  });
50064
- }, {
50065
- immediate: true
50066
- });
51290
+ } // { immediate: true }
51291
+ );
50067
51292
  const headers = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
50068
51293
  return {
50069
51294
  Authorization: sessionStorage.getItem('admin-token') || localStorage.getItem('admin-token')
@@ -50127,10 +51352,13 @@ var commons = __webpack_require__(3310);
50127
51352
  };
50128
51353
 
50129
51354
  const handleUploadChange = fileList => {
51355
+ const {
51356
+ responseKey
51357
+ } = props;
50130
51358
  state.initOnce = true;
50131
51359
  let result = [];
50132
51360
  fileList.map(item => {
50133
- const url = item?.response?.data?.relative_path || item.org_url;
51361
+ const url = (responseKey ? item?.response?.data?.[responseKey] : item?.response?.data) || item.org_url;
50134
51362
 
50135
51363
  if (url) {
50136
51364
  result.push(url);
@@ -50169,10 +51397,10 @@ var commons = __webpack_require__(3310);
50169
51397
  }));
50170
51398
  ;// CONCATENATED MODULE: ./src/packages/JwtUploadImage/index.vue?vue&type=script&lang=js
50171
51399
 
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
51400
+ ;// 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
51401
  // extracted by mini-css-extract-plugin
50174
51402
 
50175
- ;// CONCATENATED MODULE: ./src/packages/JwtUploadImage/index.vue?vue&type=style&index=0&id=8300837c&lang=scss
51403
+ ;// CONCATENATED MODULE: ./src/packages/JwtUploadImage/index.vue?vue&type=style&index=0&id=bc5a72e2&lang=scss
50176
51404
 
50177
51405
  // EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
50178
51406
  var exportHelper = __webpack_require__(3744);
@@ -50195,20 +51423,20 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtUploadImagev
50195
51423
 
50196
51424
  var map = {
50197
51425
  "./JwtCascaderArea/index.vue": 3724,
50198
- "./JwtEditor/index.vue": 5462,
50199
- "./JwtForm/index.vue": 5347,
50200
- "./JwtHeaderButton/index.vue": 3663,
51426
+ "./JwtEditor/index.vue": 8007,
51427
+ "./JwtForm/index.vue": 4751,
51428
+ "./JwtHeaderButton/index.vue": 6886,
50201
51429
  "./JwtIcon/index.vue": 8916,
50202
51430
  "./JwtIconSelect/index.vue": 7047,
50203
51431
  "./JwtImage/index.vue": 8328,
50204
- "./JwtInput/index.vue": 5859,
51432
+ "./JwtInput/index.vue": 1914,
50205
51433
  "./JwtRateIcon/index.vue": 5939,
50206
- "./JwtSelectServer/index.vue": 6742,
50207
- "./JwtTable/index.vue": 8560,
51434
+ "./JwtSelectServer/index.vue": 1279,
51435
+ "./JwtTable/index.vue": 4282,
50208
51436
  "./JwtTableButton/index.vue": 9033,
50209
51437
  "./JwtTableOnly/index.vue": 4016,
50210
51438
  "./JwtTags/index.vue": 1382,
50211
- "./JwtUploadImage/index.vue": 5486
51439
+ "./JwtUploadImage/index.vue": 8719
50212
51440
  };
50213
51441
 
50214
51442
 
@@ -63789,7 +65017,9 @@ const normalizeOptions = (params) => {
63789
65017
  ...messageDefaults,
63790
65018
  ...options
63791
65019
  };
63792
- if ((0,shared_esm_bundler/* isString */.HD)(normalized.appendTo)) {
65020
+ if (!normalized.appendTo) {
65021
+ normalized.appendTo = document.body;
65022
+ } else if ((0,shared_esm_bundler/* isString */.HD)(normalized.appendTo)) {
63793
65023
  let appendTo = document.querySelector(normalized.appendTo);
63794
65024
  if (!(0,types/* isElement */.kK)(appendTo)) {
63795
65025
  (0,error/* debugWarn */.N)("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body.");
@@ -64165,14 +65395,18 @@ const useNamespace = (block) => {
64165
65395
  const cssVar = (object) => {
64166
65396
  const styles = {};
64167
65397
  for (const key in object) {
64168
- styles[`--${namespace.value}-${key}`] = object[key];
65398
+ if (object[key]) {
65399
+ styles[`--${namespace.value}-${key}`] = object[key];
65400
+ }
64169
65401
  }
64170
65402
  return styles;
64171
65403
  };
64172
65404
  const cssVarBlock = (object) => {
64173
65405
  const styles = {};
64174
65406
  for (const key in object) {
64175
- styles[`--${namespace.value}-${block}-${key}`] = object[key];
65407
+ if (object[key]) {
65408
+ styles[`--${namespace.value}-${block}-${key}`] = object[key];
65409
+ }
64176
65410
  }
64177
65411
  return styles;
64178
65412
  };