jwt-ui 1.0.7-8 → 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.
- package/lib/jwt-ui.common.js +1286 -83
- package/lib/jwt-ui.common.js.map +1 -1
- package/lib/jwt-ui.css +1 -1
- package/lib/jwt-ui.umd.js +1286 -83
- package/lib/jwt-ui.umd.js.map +1 -1
- package/lib/jwt-ui.umd.min.js +15 -15
- package/lib/jwt-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
package/lib/jwt-ui.umd.js
CHANGED
|
@@ -19,11 +19,19 @@ return /******/ (function() { // webpackBootstrap
|
|
|
19
19
|
/* harmony export */ "HD": function() { return /* binding */ isString; },
|
|
20
20
|
/* harmony export */ "Kn": function() { return /* binding */ isObject; },
|
|
21
21
|
/* harmony export */ "RI": function() { return /* binding */ hasOwn; },
|
|
22
|
+
/* harmony export */ "S0": function() { return /* binding */ isIntegerKey; },
|
|
23
|
+
/* harmony export */ "W7": function() { return /* binding */ toRawType; },
|
|
22
24
|
/* harmony export */ "_A": function() { return /* binding */ camelize; },
|
|
25
|
+
/* harmony export */ "_N": function() { return /* binding */ isMap; },
|
|
26
|
+
/* harmony export */ "aU": function() { return /* binding */ hasChanged; },
|
|
23
27
|
/* harmony export */ "dG": function() { return /* binding */ NOOP; },
|
|
24
|
-
/* harmony export */ "
|
|
28
|
+
/* harmony export */ "fY": function() { return /* binding */ makeMap; },
|
|
29
|
+
/* harmony export */ "kJ": function() { return /* binding */ isArray; },
|
|
30
|
+
/* harmony export */ "l7": function() { return /* binding */ extend; },
|
|
31
|
+
/* harmony export */ "mf": function() { return /* binding */ isFunction; },
|
|
32
|
+
/* harmony export */ "yk": function() { return /* binding */ isSymbol; }
|
|
25
33
|
/* harmony export */ });
|
|
26
|
-
/* unused harmony exports EMPTY_ARR, EMPTY_OBJ, NO, PatchFlagNames, capitalize, def, escapeHtml, escapeHtmlComment,
|
|
34
|
+
/* 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 */
|
|
27
35
|
/**
|
|
28
36
|
* Make a map and return a function for checking if a key
|
|
29
37
|
* is in that map.
|
|
@@ -40044,7 +40052,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtCascaderArea
|
|
|
40044
40052
|
|
|
40045
40053
|
/***/ }),
|
|
40046
40054
|
|
|
40047
|
-
/***/
|
|
40055
|
+
/***/ 5060:
|
|
40048
40056
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
40049
40057
|
|
|
40050
40058
|
"use strict";
|
|
@@ -40058,10 +40066,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
40058
40066
|
|
|
40059
40067
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
40060
40068
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
40061
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
40069
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
40062
40070
|
|
|
40063
40071
|
|
|
40064
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
40072
|
+
const _withScopeId = n => (_pushScopeId("data-v-0d651e8c"), n = n(), _popScopeId(), n);
|
|
40065
40073
|
|
|
40066
40074
|
const _hoisted_1 = {
|
|
40067
40075
|
class: "base-wang-editor-wrapper",
|
|
@@ -40097,7 +40105,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40097
40105
|
onOnFocus: _ctx.handleFocus
|
|
40098
40106
|
}, null, 8, ["default-config", "default-html", "mode", "onCustomAlert", "onOnBlur", "onOnChange", "onOnCreated", "onOnDestroyed", "onOnFocus"])]);
|
|
40099
40107
|
}
|
|
40100
|
-
;// CONCATENATED MODULE: ./src/packages/JwtEditor/index.vue?vue&type=template&id=
|
|
40108
|
+
;// CONCATENATED MODULE: ./src/packages/JwtEditor/index.vue?vue&type=template&id=0d651e8c&scoped=true
|
|
40101
40109
|
|
|
40102
40110
|
// EXTERNAL MODULE: ./node_modules/@wangeditor/editor/dist/index.esm.js
|
|
40103
40111
|
var index_esm = __webpack_require__(7877);
|
|
@@ -40359,7 +40367,8 @@ var Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
|
40359
40367
|
|
|
40360
40368
|
const state = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
40361
40369
|
// defaultHtml,
|
|
40362
|
-
defaultContent
|
|
40370
|
+
defaultContent,
|
|
40371
|
+
initOnce: false
|
|
40363
40372
|
});
|
|
40364
40373
|
const toolbarConfig = {
|
|
40365
40374
|
insertKeys: {
|
|
@@ -40458,6 +40467,7 @@ var Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
|
40458
40467
|
}); // 1.2 插入内容
|
|
40459
40468
|
|
|
40460
40469
|
editor.dangerouslyInsertHtml(defaultHtml.value);
|
|
40470
|
+
state.initOnce = true;
|
|
40461
40471
|
}; // 替换附件里面的内容
|
|
40462
40472
|
|
|
40463
40473
|
|
|
@@ -40477,10 +40487,21 @@ var Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
|
40477
40487
|
return html;
|
|
40478
40488
|
};
|
|
40479
40489
|
|
|
40480
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
40481
|
-
|
|
40482
|
-
|
|
40483
|
-
|
|
40490
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, newValue => {
|
|
40491
|
+
// console.log('person变化了', newValue)
|
|
40492
|
+
// 这里直接执行的话是在onBeforeMount之前所以放在nextTick一个微任务里面
|
|
40493
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
40494
|
+
if (!state.initOnce) {
|
|
40495
|
+
if (newValue && newValue !== '<p><br></p>') {
|
|
40496
|
+
updateContent();
|
|
40497
|
+
}
|
|
40498
|
+
}
|
|
40499
|
+
});
|
|
40500
|
+
} // { immediate: true }
|
|
40501
|
+
);
|
|
40502
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {// setTimeout(() => {
|
|
40503
|
+
// updateContent();
|
|
40504
|
+
// }, 200);
|
|
40484
40505
|
}); // 组件销毁时,也及时销毁编辑器
|
|
40485
40506
|
|
|
40486
40507
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
|
|
@@ -40509,10 +40530,10 @@ var Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
|
40509
40530
|
}));
|
|
40510
40531
|
;// CONCATENATED MODULE: ./src/packages/JwtEditor/index.vue?vue&type=script&lang=js
|
|
40511
40532
|
|
|
40512
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtEditor/index.vue?vue&type=style&index=0&id=
|
|
40533
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
|
|
40513
40534
|
// extracted by mini-css-extract-plugin
|
|
40514
40535
|
|
|
40515
|
-
;// CONCATENATED MODULE: ./src/packages/JwtEditor/index.vue?vue&type=style&index=0&id=
|
|
40536
|
+
;// CONCATENATED MODULE: ./src/packages/JwtEditor/index.vue?vue&type=style&index=0&id=0d651e8c&lang=scss&scoped=true
|
|
40516
40537
|
|
|
40517
40538
|
// EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
|
|
40518
40539
|
var exportHelper = __webpack_require__(3744);
|
|
@@ -40524,7 +40545,7 @@ var exportHelper = __webpack_require__(3744);
|
|
|
40524
40545
|
;
|
|
40525
40546
|
|
|
40526
40547
|
|
|
40527
|
-
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtEditorvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-
|
|
40548
|
+
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtEditorvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-0d651e8c"]])
|
|
40528
40549
|
|
|
40529
40550
|
/* harmony default export */ var JwtEditor = (__exports__);
|
|
40530
40551
|
|
|
@@ -41976,7 +41997,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtImagevue_typ
|
|
|
41976
41997
|
|
|
41977
41998
|
/***/ }),
|
|
41978
41999
|
|
|
41979
|
-
/***/
|
|
42000
|
+
/***/ 2570:
|
|
41980
42001
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41981
42002
|
|
|
41982
42003
|
"use strict";
|
|
@@ -41990,7 +42011,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
41990
42011
|
|
|
41991
42012
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
41992
42013
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
|
41993
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
42014
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
41994
42015
|
|
|
41995
42016
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
41996
42017
|
const _component_el_input = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("el-input");
|
|
@@ -42007,7 +42028,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42007
42028
|
onBlur: _ctx.handleBlur
|
|
42008
42029
|
}), null, 16, ["modelValue", "style", "onBlur"]);
|
|
42009
42030
|
}
|
|
42010
|
-
;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=template&id=
|
|
42031
|
+
;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=template&id=72e5e110&scoped=true
|
|
42011
42032
|
|
|
42012
42033
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtInput/index.vue?vue&type=script&lang=js
|
|
42013
42034
|
|
|
@@ -42028,7 +42049,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42028
42049
|
changeBg: {
|
|
42029
42050
|
type: String,
|
|
42030
42051
|
default: 'blue'
|
|
42031
|
-
}
|
|
42052
|
+
},
|
|
42053
|
+
// 改变时背景颜色
|
|
42054
|
+
textColor: {
|
|
42055
|
+
type: String,
|
|
42056
|
+
default: ''
|
|
42057
|
+
} // 文字颜色
|
|
42032
42058
|
|
|
42033
42059
|
},
|
|
42034
42060
|
emits: ['update:modelValue', 'blur'],
|
|
@@ -42067,10 +42093,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42067
42093
|
}));
|
|
42068
42094
|
;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=script&lang=js
|
|
42069
42095
|
|
|
42070
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtInput/index.vue?vue&type=style&index=0&id=
|
|
42096
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
|
|
42071
42097
|
// extracted by mini-css-extract-plugin
|
|
42072
42098
|
|
|
42073
|
-
;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=style&index=0&id=
|
|
42099
|
+
;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=style&index=0&id=72e5e110&lang=scss&scoped=true
|
|
42074
42100
|
|
|
42075
42101
|
// EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
|
|
42076
42102
|
var exportHelper = __webpack_require__(3744);
|
|
@@ -42082,7 +42108,7 @@ var exportHelper = __webpack_require__(3744);
|
|
|
42082
42108
|
;
|
|
42083
42109
|
|
|
42084
42110
|
|
|
42085
|
-
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtInputvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-
|
|
42111
|
+
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtInputvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-72e5e110"]])
|
|
42086
42112
|
|
|
42087
42113
|
/* harmony default export */ var JwtInput = (__exports__);
|
|
42088
42114
|
|
|
@@ -42471,7 +42497,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtSelectServer
|
|
|
42471
42497
|
|
|
42472
42498
|
/***/ }),
|
|
42473
42499
|
|
|
42474
|
-
/***/
|
|
42500
|
+
/***/ 183:
|
|
42475
42501
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42476
42502
|
|
|
42477
42503
|
"use strict";
|
|
@@ -45404,42 +45430,6 @@ const focusNode = (el) => {
|
|
|
45404
45430
|
|
|
45405
45431
|
//# sourceMappingURL=aria.mjs.map
|
|
45406
45432
|
|
|
45407
|
-
;// CONCATENATED MODULE: ./node_modules/element-plus/es/utils/dom/event.mjs
|
|
45408
|
-
const on = (element, event, handler, useCapture = false) => {
|
|
45409
|
-
if (element && event && handler) {
|
|
45410
|
-
element == null ? void 0 : element.addEventListener(event, handler, useCapture);
|
|
45411
|
-
}
|
|
45412
|
-
};
|
|
45413
|
-
const off = (element, event, handler, useCapture = false) => {
|
|
45414
|
-
if (element && event && handler) {
|
|
45415
|
-
element == null ? void 0 : element.removeEventListener(event, handler, useCapture);
|
|
45416
|
-
}
|
|
45417
|
-
};
|
|
45418
|
-
const once = (el, event, fn) => {
|
|
45419
|
-
const listener = function(...args) {
|
|
45420
|
-
if (fn) {
|
|
45421
|
-
fn.apply(this, args);
|
|
45422
|
-
}
|
|
45423
|
-
off(el, event, listener);
|
|
45424
|
-
};
|
|
45425
|
-
on(el, event, listener);
|
|
45426
|
-
};
|
|
45427
|
-
const composeEventHandlers = (theirsHandler, oursHandler, { checkForDefaultPrevented = true } = {}) => {
|
|
45428
|
-
const handleEvent = (event) => {
|
|
45429
|
-
const shouldPrevent = theirsHandler == null ? void 0 : theirsHandler(event);
|
|
45430
|
-
if (checkForDefaultPrevented === false || !shouldPrevent) {
|
|
45431
|
-
return oursHandler == null ? void 0 : oursHandler(event);
|
|
45432
|
-
}
|
|
45433
|
-
};
|
|
45434
|
-
return handleEvent;
|
|
45435
|
-
};
|
|
45436
|
-
const whenMouse = (handler) => {
|
|
45437
|
-
return (e) => e.pointerType === "mouse" ? handler(e) : void 0;
|
|
45438
|
-
};
|
|
45439
|
-
|
|
45440
|
-
|
|
45441
|
-
//# sourceMappingURL=event.mjs.map
|
|
45442
|
-
|
|
45443
45433
|
;// CONCATENATED MODULE: ./node_modules/element-plus/es/directives/trap-focus/index.mjs
|
|
45444
45434
|
|
|
45445
45435
|
|
|
@@ -45447,7 +45437,6 @@ const whenMouse = (handler) => {
|
|
|
45447
45437
|
|
|
45448
45438
|
|
|
45449
45439
|
|
|
45450
|
-
|
|
45451
45440
|
const FOCUSABLE_CHILDREN = "_trap-focus-children";
|
|
45452
45441
|
const TRAP_FOCUS_HANDLER = "_trap-focus-handler";
|
|
45453
45442
|
const FOCUS_STACK = [];
|
|
@@ -45483,7 +45472,7 @@ const TrapFocus = {
|
|
|
45483
45472
|
el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements(el);
|
|
45484
45473
|
FOCUS_STACK.push(el);
|
|
45485
45474
|
if (FOCUS_STACK.length <= 1) {
|
|
45486
|
-
|
|
45475
|
+
document.addEventListener("keydown", FOCUS_HANDLER);
|
|
45487
45476
|
}
|
|
45488
45477
|
},
|
|
45489
45478
|
updated(el) {
|
|
@@ -45494,7 +45483,7 @@ const TrapFocus = {
|
|
|
45494
45483
|
unmounted() {
|
|
45495
45484
|
FOCUS_STACK.shift();
|
|
45496
45485
|
if (FOCUS_STACK.length === 0) {
|
|
45497
|
-
|
|
45486
|
+
document.removeEventListener("keydown", FOCUS_HANDLER);
|
|
45498
45487
|
}
|
|
45499
45488
|
}
|
|
45500
45489
|
};
|
|
@@ -45617,13 +45606,13 @@ const FOCUS_TRAP_INJECTION_KEY = Symbol("elFocusTrap");
|
|
|
45617
45606
|
|
|
45618
45607
|
|
|
45619
45608
|
let registeredEscapeHandlers = [];
|
|
45609
|
+
const cachedHandler = (e) => {
|
|
45610
|
+
const event = e;
|
|
45611
|
+
if (event.key === aria/* EVENT_CODE.esc */.n.esc) {
|
|
45612
|
+
registeredEscapeHandlers.forEach((registeredHandler) => registeredHandler(event));
|
|
45613
|
+
}
|
|
45614
|
+
};
|
|
45620
45615
|
const useEscapeKeydown = (handler) => {
|
|
45621
|
-
const cachedHandler = (e) => {
|
|
45622
|
-
const event = e;
|
|
45623
|
-
if (event.key === aria/* EVENT_CODE.esc */.n.esc) {
|
|
45624
|
-
registeredEscapeHandlers.forEach((registeredHandler) => registeredHandler(event));
|
|
45625
|
-
}
|
|
45626
|
-
};
|
|
45627
45616
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
45628
45617
|
if (registeredEscapeHandlers.length === 0) {
|
|
45629
45618
|
document.addEventListener("keydown", cachedHandler);
|
|
@@ -47490,6 +47479,1211 @@ const useDraggable = (targetRef, dragRef, draggable) => {
|
|
|
47490
47479
|
|
|
47491
47480
|
//# sourceMappingURL=index.mjs.map
|
|
47492
47481
|
|
|
47482
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
|
|
47483
|
+
|
|
47484
|
+
|
|
47485
|
+
function warn(msg, ...args) {
|
|
47486
|
+
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
47487
|
+
}
|
|
47488
|
+
|
|
47489
|
+
let activeEffectScope;
|
|
47490
|
+
class EffectScope {
|
|
47491
|
+
constructor(detached = false) {
|
|
47492
|
+
/**
|
|
47493
|
+
* @internal
|
|
47494
|
+
*/
|
|
47495
|
+
this.active = true;
|
|
47496
|
+
/**
|
|
47497
|
+
* @internal
|
|
47498
|
+
*/
|
|
47499
|
+
this.effects = [];
|
|
47500
|
+
/**
|
|
47501
|
+
* @internal
|
|
47502
|
+
*/
|
|
47503
|
+
this.cleanups = [];
|
|
47504
|
+
if (!detached && activeEffectScope) {
|
|
47505
|
+
this.parent = activeEffectScope;
|
|
47506
|
+
this.index =
|
|
47507
|
+
(activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
|
|
47508
|
+
}
|
|
47509
|
+
}
|
|
47510
|
+
run(fn) {
|
|
47511
|
+
if (this.active) {
|
|
47512
|
+
const currentEffectScope = activeEffectScope;
|
|
47513
|
+
try {
|
|
47514
|
+
activeEffectScope = this;
|
|
47515
|
+
return fn();
|
|
47516
|
+
}
|
|
47517
|
+
finally {
|
|
47518
|
+
activeEffectScope = currentEffectScope;
|
|
47519
|
+
}
|
|
47520
|
+
}
|
|
47521
|
+
else if ((false)) {}
|
|
47522
|
+
}
|
|
47523
|
+
/**
|
|
47524
|
+
* This should only be called on non-detached scopes
|
|
47525
|
+
* @internal
|
|
47526
|
+
*/
|
|
47527
|
+
on() {
|
|
47528
|
+
activeEffectScope = this;
|
|
47529
|
+
}
|
|
47530
|
+
/**
|
|
47531
|
+
* This should only be called on non-detached scopes
|
|
47532
|
+
* @internal
|
|
47533
|
+
*/
|
|
47534
|
+
off() {
|
|
47535
|
+
activeEffectScope = this.parent;
|
|
47536
|
+
}
|
|
47537
|
+
stop(fromParent) {
|
|
47538
|
+
if (this.active) {
|
|
47539
|
+
let i, l;
|
|
47540
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
47541
|
+
this.effects[i].stop();
|
|
47542
|
+
}
|
|
47543
|
+
for (i = 0, l = this.cleanups.length; i < l; i++) {
|
|
47544
|
+
this.cleanups[i]();
|
|
47545
|
+
}
|
|
47546
|
+
if (this.scopes) {
|
|
47547
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
47548
|
+
this.scopes[i].stop(true);
|
|
47549
|
+
}
|
|
47550
|
+
}
|
|
47551
|
+
// nested scope, dereference from parent to avoid memory leaks
|
|
47552
|
+
if (this.parent && !fromParent) {
|
|
47553
|
+
// optimized O(1) removal
|
|
47554
|
+
const last = this.parent.scopes.pop();
|
|
47555
|
+
if (last && last !== this) {
|
|
47556
|
+
this.parent.scopes[this.index] = last;
|
|
47557
|
+
last.index = this.index;
|
|
47558
|
+
}
|
|
47559
|
+
}
|
|
47560
|
+
this.active = false;
|
|
47561
|
+
}
|
|
47562
|
+
}
|
|
47563
|
+
}
|
|
47564
|
+
function effectScope(detached) {
|
|
47565
|
+
return new EffectScope(detached);
|
|
47566
|
+
}
|
|
47567
|
+
function recordEffectScope(effect, scope = activeEffectScope) {
|
|
47568
|
+
if (scope && scope.active) {
|
|
47569
|
+
scope.effects.push(effect);
|
|
47570
|
+
}
|
|
47571
|
+
}
|
|
47572
|
+
function getCurrentScope() {
|
|
47573
|
+
return activeEffectScope;
|
|
47574
|
+
}
|
|
47575
|
+
function onScopeDispose(fn) {
|
|
47576
|
+
if (activeEffectScope) {
|
|
47577
|
+
activeEffectScope.cleanups.push(fn);
|
|
47578
|
+
}
|
|
47579
|
+
else if ((false)) {}
|
|
47580
|
+
}
|
|
47581
|
+
|
|
47582
|
+
const createDep = (effects) => {
|
|
47583
|
+
const dep = new Set(effects);
|
|
47584
|
+
dep.w = 0;
|
|
47585
|
+
dep.n = 0;
|
|
47586
|
+
return dep;
|
|
47587
|
+
};
|
|
47588
|
+
const wasTracked = (dep) => (dep.w & trackOpBit) > 0;
|
|
47589
|
+
const newTracked = (dep) => (dep.n & trackOpBit) > 0;
|
|
47590
|
+
const initDepMarkers = ({ deps }) => {
|
|
47591
|
+
if (deps.length) {
|
|
47592
|
+
for (let i = 0; i < deps.length; i++) {
|
|
47593
|
+
deps[i].w |= trackOpBit; // set was tracked
|
|
47594
|
+
}
|
|
47595
|
+
}
|
|
47596
|
+
};
|
|
47597
|
+
const finalizeDepMarkers = (effect) => {
|
|
47598
|
+
const { deps } = effect;
|
|
47599
|
+
if (deps.length) {
|
|
47600
|
+
let ptr = 0;
|
|
47601
|
+
for (let i = 0; i < deps.length; i++) {
|
|
47602
|
+
const dep = deps[i];
|
|
47603
|
+
if (wasTracked(dep) && !newTracked(dep)) {
|
|
47604
|
+
dep.delete(effect);
|
|
47605
|
+
}
|
|
47606
|
+
else {
|
|
47607
|
+
deps[ptr++] = dep;
|
|
47608
|
+
}
|
|
47609
|
+
// clear bits
|
|
47610
|
+
dep.w &= ~trackOpBit;
|
|
47611
|
+
dep.n &= ~trackOpBit;
|
|
47612
|
+
}
|
|
47613
|
+
deps.length = ptr;
|
|
47614
|
+
}
|
|
47615
|
+
};
|
|
47616
|
+
|
|
47617
|
+
const targetMap = new WeakMap();
|
|
47618
|
+
// The number of effects currently being tracked recursively.
|
|
47619
|
+
let effectTrackDepth = 0;
|
|
47620
|
+
let trackOpBit = 1;
|
|
47621
|
+
/**
|
|
47622
|
+
* The bitwise track markers support at most 30 levels of recursion.
|
|
47623
|
+
* This value is chosen to enable modern JS engines to use a SMI on all platforms.
|
|
47624
|
+
* When recursion depth is greater, fall back to using a full cleanup.
|
|
47625
|
+
*/
|
|
47626
|
+
const maxMarkerBits = 30;
|
|
47627
|
+
let activeEffect;
|
|
47628
|
+
const ITERATE_KEY = Symbol(( false) ? 0 : '');
|
|
47629
|
+
const MAP_KEY_ITERATE_KEY = Symbol(( false) ? 0 : '');
|
|
47630
|
+
class ReactiveEffect {
|
|
47631
|
+
constructor(fn, scheduler = null, scope) {
|
|
47632
|
+
this.fn = fn;
|
|
47633
|
+
this.scheduler = scheduler;
|
|
47634
|
+
this.active = true;
|
|
47635
|
+
this.deps = [];
|
|
47636
|
+
this.parent = undefined;
|
|
47637
|
+
recordEffectScope(this, scope);
|
|
47638
|
+
}
|
|
47639
|
+
run() {
|
|
47640
|
+
if (!this.active) {
|
|
47641
|
+
return this.fn();
|
|
47642
|
+
}
|
|
47643
|
+
let parent = activeEffect;
|
|
47644
|
+
let lastShouldTrack = shouldTrack;
|
|
47645
|
+
while (parent) {
|
|
47646
|
+
if (parent === this) {
|
|
47647
|
+
return;
|
|
47648
|
+
}
|
|
47649
|
+
parent = parent.parent;
|
|
47650
|
+
}
|
|
47651
|
+
try {
|
|
47652
|
+
this.parent = activeEffect;
|
|
47653
|
+
activeEffect = this;
|
|
47654
|
+
shouldTrack = true;
|
|
47655
|
+
trackOpBit = 1 << ++effectTrackDepth;
|
|
47656
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
47657
|
+
initDepMarkers(this);
|
|
47658
|
+
}
|
|
47659
|
+
else {
|
|
47660
|
+
cleanupEffect(this);
|
|
47661
|
+
}
|
|
47662
|
+
return this.fn();
|
|
47663
|
+
}
|
|
47664
|
+
finally {
|
|
47665
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
47666
|
+
finalizeDepMarkers(this);
|
|
47667
|
+
}
|
|
47668
|
+
trackOpBit = 1 << --effectTrackDepth;
|
|
47669
|
+
activeEffect = this.parent;
|
|
47670
|
+
shouldTrack = lastShouldTrack;
|
|
47671
|
+
this.parent = undefined;
|
|
47672
|
+
if (this.deferStop) {
|
|
47673
|
+
this.stop();
|
|
47674
|
+
}
|
|
47675
|
+
}
|
|
47676
|
+
}
|
|
47677
|
+
stop() {
|
|
47678
|
+
// stopped while running itself - defer the cleanup
|
|
47679
|
+
if (activeEffect === this) {
|
|
47680
|
+
this.deferStop = true;
|
|
47681
|
+
}
|
|
47682
|
+
else if (this.active) {
|
|
47683
|
+
cleanupEffect(this);
|
|
47684
|
+
if (this.onStop) {
|
|
47685
|
+
this.onStop();
|
|
47686
|
+
}
|
|
47687
|
+
this.active = false;
|
|
47688
|
+
}
|
|
47689
|
+
}
|
|
47690
|
+
}
|
|
47691
|
+
function cleanupEffect(effect) {
|
|
47692
|
+
const { deps } = effect;
|
|
47693
|
+
if (deps.length) {
|
|
47694
|
+
for (let i = 0; i < deps.length; i++) {
|
|
47695
|
+
deps[i].delete(effect);
|
|
47696
|
+
}
|
|
47697
|
+
deps.length = 0;
|
|
47698
|
+
}
|
|
47699
|
+
}
|
|
47700
|
+
function effect(fn, options) {
|
|
47701
|
+
if (fn.effect) {
|
|
47702
|
+
fn = fn.effect.fn;
|
|
47703
|
+
}
|
|
47704
|
+
const _effect = new ReactiveEffect(fn);
|
|
47705
|
+
if (options) {
|
|
47706
|
+
extend(_effect, options);
|
|
47707
|
+
if (options.scope)
|
|
47708
|
+
recordEffectScope(_effect, options.scope);
|
|
47709
|
+
}
|
|
47710
|
+
if (!options || !options.lazy) {
|
|
47711
|
+
_effect.run();
|
|
47712
|
+
}
|
|
47713
|
+
const runner = _effect.run.bind(_effect);
|
|
47714
|
+
runner.effect = _effect;
|
|
47715
|
+
return runner;
|
|
47716
|
+
}
|
|
47717
|
+
function stop(runner) {
|
|
47718
|
+
runner.effect.stop();
|
|
47719
|
+
}
|
|
47720
|
+
let shouldTrack = true;
|
|
47721
|
+
const trackStack = [];
|
|
47722
|
+
function pauseTracking() {
|
|
47723
|
+
trackStack.push(shouldTrack);
|
|
47724
|
+
shouldTrack = false;
|
|
47725
|
+
}
|
|
47726
|
+
function enableTracking() {
|
|
47727
|
+
trackStack.push(shouldTrack);
|
|
47728
|
+
shouldTrack = true;
|
|
47729
|
+
}
|
|
47730
|
+
function resetTracking() {
|
|
47731
|
+
const last = trackStack.pop();
|
|
47732
|
+
shouldTrack = last === undefined ? true : last;
|
|
47733
|
+
}
|
|
47734
|
+
function track(target, type, key) {
|
|
47735
|
+
if (shouldTrack && activeEffect) {
|
|
47736
|
+
let depsMap = targetMap.get(target);
|
|
47737
|
+
if (!depsMap) {
|
|
47738
|
+
targetMap.set(target, (depsMap = new Map()));
|
|
47739
|
+
}
|
|
47740
|
+
let dep = depsMap.get(key);
|
|
47741
|
+
if (!dep) {
|
|
47742
|
+
depsMap.set(key, (dep = createDep()));
|
|
47743
|
+
}
|
|
47744
|
+
const eventInfo = ( false)
|
|
47745
|
+
? 0
|
|
47746
|
+
: undefined;
|
|
47747
|
+
trackEffects(dep, eventInfo);
|
|
47748
|
+
}
|
|
47749
|
+
}
|
|
47750
|
+
function trackEffects(dep, debuggerEventExtraInfo) {
|
|
47751
|
+
let shouldTrack = false;
|
|
47752
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
47753
|
+
if (!newTracked(dep)) {
|
|
47754
|
+
dep.n |= trackOpBit; // set newly tracked
|
|
47755
|
+
shouldTrack = !wasTracked(dep);
|
|
47756
|
+
}
|
|
47757
|
+
}
|
|
47758
|
+
else {
|
|
47759
|
+
// Full cleanup mode.
|
|
47760
|
+
shouldTrack = !dep.has(activeEffect);
|
|
47761
|
+
}
|
|
47762
|
+
if (shouldTrack) {
|
|
47763
|
+
dep.add(activeEffect);
|
|
47764
|
+
activeEffect.deps.push(dep);
|
|
47765
|
+
if (false) {}
|
|
47766
|
+
}
|
|
47767
|
+
}
|
|
47768
|
+
function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
47769
|
+
const depsMap = targetMap.get(target);
|
|
47770
|
+
if (!depsMap) {
|
|
47771
|
+
// never been tracked
|
|
47772
|
+
return;
|
|
47773
|
+
}
|
|
47774
|
+
let deps = [];
|
|
47775
|
+
if (type === "clear" /* CLEAR */) {
|
|
47776
|
+
// collection being cleared
|
|
47777
|
+
// trigger all effects for target
|
|
47778
|
+
deps = [...depsMap.values()];
|
|
47779
|
+
}
|
|
47780
|
+
else if (key === 'length' && (0,shared_esm_bundler/* isArray */.kJ)(target)) {
|
|
47781
|
+
depsMap.forEach((dep, key) => {
|
|
47782
|
+
if (key === 'length' || key >= newValue) {
|
|
47783
|
+
deps.push(dep);
|
|
47784
|
+
}
|
|
47785
|
+
});
|
|
47786
|
+
}
|
|
47787
|
+
else {
|
|
47788
|
+
// schedule runs for SET | ADD | DELETE
|
|
47789
|
+
if (key !== void 0) {
|
|
47790
|
+
deps.push(depsMap.get(key));
|
|
47791
|
+
}
|
|
47792
|
+
// also run for iteration key on ADD | DELETE | Map.SET
|
|
47793
|
+
switch (type) {
|
|
47794
|
+
case "add" /* ADD */:
|
|
47795
|
+
if (!(0,shared_esm_bundler/* isArray */.kJ)(target)) {
|
|
47796
|
+
deps.push(depsMap.get(ITERATE_KEY));
|
|
47797
|
+
if ((0,shared_esm_bundler/* isMap */._N)(target)) {
|
|
47798
|
+
deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
47799
|
+
}
|
|
47800
|
+
}
|
|
47801
|
+
else if ((0,shared_esm_bundler/* isIntegerKey */.S0)(key)) {
|
|
47802
|
+
// new index added to array -> length changes
|
|
47803
|
+
deps.push(depsMap.get('length'));
|
|
47804
|
+
}
|
|
47805
|
+
break;
|
|
47806
|
+
case "delete" /* DELETE */:
|
|
47807
|
+
if (!(0,shared_esm_bundler/* isArray */.kJ)(target)) {
|
|
47808
|
+
deps.push(depsMap.get(ITERATE_KEY));
|
|
47809
|
+
if ((0,shared_esm_bundler/* isMap */._N)(target)) {
|
|
47810
|
+
deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
47811
|
+
}
|
|
47812
|
+
}
|
|
47813
|
+
break;
|
|
47814
|
+
case "set" /* SET */:
|
|
47815
|
+
if ((0,shared_esm_bundler/* isMap */._N)(target)) {
|
|
47816
|
+
deps.push(depsMap.get(ITERATE_KEY));
|
|
47817
|
+
}
|
|
47818
|
+
break;
|
|
47819
|
+
}
|
|
47820
|
+
}
|
|
47821
|
+
const eventInfo = ( false)
|
|
47822
|
+
? 0
|
|
47823
|
+
: undefined;
|
|
47824
|
+
if (deps.length === 1) {
|
|
47825
|
+
if (deps[0]) {
|
|
47826
|
+
if ((false)) {}
|
|
47827
|
+
else {
|
|
47828
|
+
triggerEffects(deps[0]);
|
|
47829
|
+
}
|
|
47830
|
+
}
|
|
47831
|
+
}
|
|
47832
|
+
else {
|
|
47833
|
+
const effects = [];
|
|
47834
|
+
for (const dep of deps) {
|
|
47835
|
+
if (dep) {
|
|
47836
|
+
effects.push(...dep);
|
|
47837
|
+
}
|
|
47838
|
+
}
|
|
47839
|
+
if ((false)) {}
|
|
47840
|
+
else {
|
|
47841
|
+
triggerEffects(createDep(effects));
|
|
47842
|
+
}
|
|
47843
|
+
}
|
|
47844
|
+
}
|
|
47845
|
+
function triggerEffects(dep, debuggerEventExtraInfo) {
|
|
47846
|
+
// spread into array for stabilization
|
|
47847
|
+
const effects = (0,shared_esm_bundler/* isArray */.kJ)(dep) ? dep : [...dep];
|
|
47848
|
+
for (const effect of effects) {
|
|
47849
|
+
if (effect.computed) {
|
|
47850
|
+
triggerEffect(effect, debuggerEventExtraInfo);
|
|
47851
|
+
}
|
|
47852
|
+
}
|
|
47853
|
+
for (const effect of effects) {
|
|
47854
|
+
if (!effect.computed) {
|
|
47855
|
+
triggerEffect(effect, debuggerEventExtraInfo);
|
|
47856
|
+
}
|
|
47857
|
+
}
|
|
47858
|
+
}
|
|
47859
|
+
function triggerEffect(effect, debuggerEventExtraInfo) {
|
|
47860
|
+
if (effect !== activeEffect || effect.allowRecurse) {
|
|
47861
|
+
if (false) {}
|
|
47862
|
+
if (effect.scheduler) {
|
|
47863
|
+
effect.scheduler();
|
|
47864
|
+
}
|
|
47865
|
+
else {
|
|
47866
|
+
effect.run();
|
|
47867
|
+
}
|
|
47868
|
+
}
|
|
47869
|
+
}
|
|
47870
|
+
|
|
47871
|
+
const isNonTrackableKeys = /*#__PURE__*/ (0,shared_esm_bundler/* makeMap */.fY)(`__proto__,__v_isRef,__isVue`);
|
|
47872
|
+
const builtInSymbols = new Set(
|
|
47873
|
+
/*#__PURE__*/
|
|
47874
|
+
Object.getOwnPropertyNames(Symbol)
|
|
47875
|
+
// ios10.x Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller'
|
|
47876
|
+
// but accessing them on Symbol leads to TypeError because Symbol is a strict mode
|
|
47877
|
+
// function
|
|
47878
|
+
.filter(key => key !== 'arguments' && key !== 'caller')
|
|
47879
|
+
.map(key => Symbol[key])
|
|
47880
|
+
.filter(shared_esm_bundler/* isSymbol */.yk));
|
|
47881
|
+
const reactivity_esm_bundler_get = /*#__PURE__*/ createGetter();
|
|
47882
|
+
const shallowGet = /*#__PURE__*/ createGetter(false, true);
|
|
47883
|
+
const readonlyGet = /*#__PURE__*/ createGetter(true);
|
|
47884
|
+
const shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true);
|
|
47885
|
+
const arrayInstrumentations = /*#__PURE__*/ createArrayInstrumentations();
|
|
47886
|
+
function createArrayInstrumentations() {
|
|
47887
|
+
const instrumentations = {};
|
|
47888
|
+
['includes', 'indexOf', 'lastIndexOf'].forEach(key => {
|
|
47889
|
+
instrumentations[key] = function (...args) {
|
|
47890
|
+
const arr = toRaw(this);
|
|
47891
|
+
for (let i = 0, l = this.length; i < l; i++) {
|
|
47892
|
+
track(arr, "get" /* GET */, i + '');
|
|
47893
|
+
}
|
|
47894
|
+
// we run the method using the original args first (which may be reactive)
|
|
47895
|
+
const res = arr[key](...args);
|
|
47896
|
+
if (res === -1 || res === false) {
|
|
47897
|
+
// if that didn't work, run it again using raw values.
|
|
47898
|
+
return arr[key](...args.map(toRaw));
|
|
47899
|
+
}
|
|
47900
|
+
else {
|
|
47901
|
+
return res;
|
|
47902
|
+
}
|
|
47903
|
+
};
|
|
47904
|
+
});
|
|
47905
|
+
['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => {
|
|
47906
|
+
instrumentations[key] = function (...args) {
|
|
47907
|
+
pauseTracking();
|
|
47908
|
+
const res = toRaw(this)[key].apply(this, args);
|
|
47909
|
+
resetTracking();
|
|
47910
|
+
return res;
|
|
47911
|
+
};
|
|
47912
|
+
});
|
|
47913
|
+
return instrumentations;
|
|
47914
|
+
}
|
|
47915
|
+
function createGetter(isReadonly = false, shallow = false) {
|
|
47916
|
+
return function get(target, key, receiver) {
|
|
47917
|
+
if (key === "__v_isReactive" /* IS_REACTIVE */) {
|
|
47918
|
+
return !isReadonly;
|
|
47919
|
+
}
|
|
47920
|
+
else if (key === "__v_isReadonly" /* IS_READONLY */) {
|
|
47921
|
+
return isReadonly;
|
|
47922
|
+
}
|
|
47923
|
+
else if (key === "__v_isShallow" /* IS_SHALLOW */) {
|
|
47924
|
+
return shallow;
|
|
47925
|
+
}
|
|
47926
|
+
else if (key === "__v_raw" /* RAW */ &&
|
|
47927
|
+
receiver ===
|
|
47928
|
+
(isReadonly
|
|
47929
|
+
? shallow
|
|
47930
|
+
? shallowReadonlyMap
|
|
47931
|
+
: readonlyMap
|
|
47932
|
+
: shallow
|
|
47933
|
+
? shallowReactiveMap
|
|
47934
|
+
: reactiveMap).get(target)) {
|
|
47935
|
+
return target;
|
|
47936
|
+
}
|
|
47937
|
+
const targetIsArray = (0,shared_esm_bundler/* isArray */.kJ)(target);
|
|
47938
|
+
if (!isReadonly && targetIsArray && (0,shared_esm_bundler/* hasOwn */.RI)(arrayInstrumentations, key)) {
|
|
47939
|
+
return Reflect.get(arrayInstrumentations, key, receiver);
|
|
47940
|
+
}
|
|
47941
|
+
const res = Reflect.get(target, key, receiver);
|
|
47942
|
+
if ((0,shared_esm_bundler/* isSymbol */.yk)(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
|
|
47943
|
+
return res;
|
|
47944
|
+
}
|
|
47945
|
+
if (!isReadonly) {
|
|
47946
|
+
track(target, "get" /* GET */, key);
|
|
47947
|
+
}
|
|
47948
|
+
if (shallow) {
|
|
47949
|
+
return res;
|
|
47950
|
+
}
|
|
47951
|
+
if (isRef(res)) {
|
|
47952
|
+
// ref unwrapping - skip unwrap for Array + integer key.
|
|
47953
|
+
return targetIsArray && (0,shared_esm_bundler/* isIntegerKey */.S0)(key) ? res : res.value;
|
|
47954
|
+
}
|
|
47955
|
+
if ((0,shared_esm_bundler/* isObject */.Kn)(res)) {
|
|
47956
|
+
// Convert returned value into a proxy as well. we do the isObject check
|
|
47957
|
+
// here to avoid invalid value warning. Also need to lazy access readonly
|
|
47958
|
+
// and reactive here to avoid circular dependency.
|
|
47959
|
+
return isReadonly ? readonly(res) : reactive(res);
|
|
47960
|
+
}
|
|
47961
|
+
return res;
|
|
47962
|
+
};
|
|
47963
|
+
}
|
|
47964
|
+
const set = /*#__PURE__*/ createSetter();
|
|
47965
|
+
const shallowSet = /*#__PURE__*/ createSetter(true);
|
|
47966
|
+
function createSetter(shallow = false) {
|
|
47967
|
+
return function set(target, key, value, receiver) {
|
|
47968
|
+
let oldValue = target[key];
|
|
47969
|
+
if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
|
|
47970
|
+
return false;
|
|
47971
|
+
}
|
|
47972
|
+
if (!shallow && !isReadonly(value)) {
|
|
47973
|
+
if (!isShallow(value)) {
|
|
47974
|
+
value = toRaw(value);
|
|
47975
|
+
oldValue = toRaw(oldValue);
|
|
47976
|
+
}
|
|
47977
|
+
if (!(0,shared_esm_bundler/* isArray */.kJ)(target) && isRef(oldValue) && !isRef(value)) {
|
|
47978
|
+
oldValue.value = value;
|
|
47979
|
+
return true;
|
|
47980
|
+
}
|
|
47981
|
+
}
|
|
47982
|
+
const hadKey = (0,shared_esm_bundler/* isArray */.kJ)(target) && (0,shared_esm_bundler/* isIntegerKey */.S0)(key)
|
|
47983
|
+
? Number(key) < target.length
|
|
47984
|
+
: (0,shared_esm_bundler/* hasOwn */.RI)(target, key);
|
|
47985
|
+
const result = Reflect.set(target, key, value, receiver);
|
|
47986
|
+
// don't trigger if target is something up in the prototype chain of original
|
|
47987
|
+
if (target === toRaw(receiver)) {
|
|
47988
|
+
if (!hadKey) {
|
|
47989
|
+
trigger(target, "add" /* ADD */, key, value);
|
|
47990
|
+
}
|
|
47991
|
+
else if ((0,shared_esm_bundler/* hasChanged */.aU)(value, oldValue)) {
|
|
47992
|
+
trigger(target, "set" /* SET */, key, value, oldValue);
|
|
47993
|
+
}
|
|
47994
|
+
}
|
|
47995
|
+
return result;
|
|
47996
|
+
};
|
|
47997
|
+
}
|
|
47998
|
+
function deleteProperty(target, key) {
|
|
47999
|
+
const hadKey = (0,shared_esm_bundler/* hasOwn */.RI)(target, key);
|
|
48000
|
+
const oldValue = target[key];
|
|
48001
|
+
const result = Reflect.deleteProperty(target, key);
|
|
48002
|
+
if (result && hadKey) {
|
|
48003
|
+
trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
|
|
48004
|
+
}
|
|
48005
|
+
return result;
|
|
48006
|
+
}
|
|
48007
|
+
function has(target, key) {
|
|
48008
|
+
const result = Reflect.has(target, key);
|
|
48009
|
+
if (!(0,shared_esm_bundler/* isSymbol */.yk)(key) || !builtInSymbols.has(key)) {
|
|
48010
|
+
track(target, "has" /* HAS */, key);
|
|
48011
|
+
}
|
|
48012
|
+
return result;
|
|
48013
|
+
}
|
|
48014
|
+
function ownKeys(target) {
|
|
48015
|
+
track(target, "iterate" /* ITERATE */, (0,shared_esm_bundler/* isArray */.kJ)(target) ? 'length' : ITERATE_KEY);
|
|
48016
|
+
return Reflect.ownKeys(target);
|
|
48017
|
+
}
|
|
48018
|
+
const mutableHandlers = {
|
|
48019
|
+
get: reactivity_esm_bundler_get,
|
|
48020
|
+
set,
|
|
48021
|
+
deleteProperty,
|
|
48022
|
+
has,
|
|
48023
|
+
ownKeys
|
|
48024
|
+
};
|
|
48025
|
+
const readonlyHandlers = {
|
|
48026
|
+
get: readonlyGet,
|
|
48027
|
+
set(target, key) {
|
|
48028
|
+
if ((false)) {}
|
|
48029
|
+
return true;
|
|
48030
|
+
},
|
|
48031
|
+
deleteProperty(target, key) {
|
|
48032
|
+
if ((false)) {}
|
|
48033
|
+
return true;
|
|
48034
|
+
}
|
|
48035
|
+
};
|
|
48036
|
+
const shallowReactiveHandlers = /*#__PURE__*/ (0,shared_esm_bundler/* extend */.l7)({}, mutableHandlers, {
|
|
48037
|
+
get: shallowGet,
|
|
48038
|
+
set: shallowSet
|
|
48039
|
+
});
|
|
48040
|
+
// Props handlers are special in the sense that it should not unwrap top-level
|
|
48041
|
+
// refs (in order to allow refs to be explicitly passed down), but should
|
|
48042
|
+
// retain the reactivity of the normal readonly object.
|
|
48043
|
+
const shallowReadonlyHandlers = /*#__PURE__*/ (0,shared_esm_bundler/* extend */.l7)({}, readonlyHandlers, {
|
|
48044
|
+
get: shallowReadonlyGet
|
|
48045
|
+
});
|
|
48046
|
+
|
|
48047
|
+
const toShallow = (value) => value;
|
|
48048
|
+
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
48049
|
+
function get$1(target, key, isReadonly = false, isShallow = false) {
|
|
48050
|
+
// #1772: readonly(reactive(Map)) should return readonly + reactive version
|
|
48051
|
+
// of the value
|
|
48052
|
+
target = target["__v_raw" /* RAW */];
|
|
48053
|
+
const rawTarget = toRaw(target);
|
|
48054
|
+
const rawKey = toRaw(key);
|
|
48055
|
+
if (!isReadonly) {
|
|
48056
|
+
if (key !== rawKey) {
|
|
48057
|
+
track(rawTarget, "get" /* GET */, key);
|
|
48058
|
+
}
|
|
48059
|
+
track(rawTarget, "get" /* GET */, rawKey);
|
|
48060
|
+
}
|
|
48061
|
+
const { has } = getProto(rawTarget);
|
|
48062
|
+
const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
|
|
48063
|
+
if (has.call(rawTarget, key)) {
|
|
48064
|
+
return wrap(target.get(key));
|
|
48065
|
+
}
|
|
48066
|
+
else if (has.call(rawTarget, rawKey)) {
|
|
48067
|
+
return wrap(target.get(rawKey));
|
|
48068
|
+
}
|
|
48069
|
+
else if (target !== rawTarget) {
|
|
48070
|
+
// #3602 readonly(reactive(Map))
|
|
48071
|
+
// ensure that the nested reactive `Map` can do tracking for itself
|
|
48072
|
+
target.get(key);
|
|
48073
|
+
}
|
|
48074
|
+
}
|
|
48075
|
+
function has$1(key, isReadonly = false) {
|
|
48076
|
+
const target = this["__v_raw" /* RAW */];
|
|
48077
|
+
const rawTarget = toRaw(target);
|
|
48078
|
+
const rawKey = toRaw(key);
|
|
48079
|
+
if (!isReadonly) {
|
|
48080
|
+
if (key !== rawKey) {
|
|
48081
|
+
track(rawTarget, "has" /* HAS */, key);
|
|
48082
|
+
}
|
|
48083
|
+
track(rawTarget, "has" /* HAS */, rawKey);
|
|
48084
|
+
}
|
|
48085
|
+
return key === rawKey
|
|
48086
|
+
? target.has(key)
|
|
48087
|
+
: target.has(key) || target.has(rawKey);
|
|
48088
|
+
}
|
|
48089
|
+
function reactivity_esm_bundler_size(target, isReadonly = false) {
|
|
48090
|
+
target = target["__v_raw" /* RAW */];
|
|
48091
|
+
!isReadonly && track(toRaw(target), "iterate" /* ITERATE */, ITERATE_KEY);
|
|
48092
|
+
return Reflect.get(target, 'size', target);
|
|
48093
|
+
}
|
|
48094
|
+
function add(value) {
|
|
48095
|
+
value = toRaw(value);
|
|
48096
|
+
const target = toRaw(this);
|
|
48097
|
+
const proto = getProto(target);
|
|
48098
|
+
const hadKey = proto.has.call(target, value);
|
|
48099
|
+
if (!hadKey) {
|
|
48100
|
+
target.add(value);
|
|
48101
|
+
trigger(target, "add" /* ADD */, value, value);
|
|
48102
|
+
}
|
|
48103
|
+
return this;
|
|
48104
|
+
}
|
|
48105
|
+
function set$1(key, value) {
|
|
48106
|
+
value = toRaw(value);
|
|
48107
|
+
const target = toRaw(this);
|
|
48108
|
+
const { has, get } = getProto(target);
|
|
48109
|
+
let hadKey = has.call(target, key);
|
|
48110
|
+
if (!hadKey) {
|
|
48111
|
+
key = toRaw(key);
|
|
48112
|
+
hadKey = has.call(target, key);
|
|
48113
|
+
}
|
|
48114
|
+
else if ((false)) {}
|
|
48115
|
+
const oldValue = get.call(target, key);
|
|
48116
|
+
target.set(key, value);
|
|
48117
|
+
if (!hadKey) {
|
|
48118
|
+
trigger(target, "add" /* ADD */, key, value);
|
|
48119
|
+
}
|
|
48120
|
+
else if ((0,shared_esm_bundler/* hasChanged */.aU)(value, oldValue)) {
|
|
48121
|
+
trigger(target, "set" /* SET */, key, value, oldValue);
|
|
48122
|
+
}
|
|
48123
|
+
return this;
|
|
48124
|
+
}
|
|
48125
|
+
function deleteEntry(key) {
|
|
48126
|
+
const target = toRaw(this);
|
|
48127
|
+
const { has, get } = getProto(target);
|
|
48128
|
+
let hadKey = has.call(target, key);
|
|
48129
|
+
if (!hadKey) {
|
|
48130
|
+
key = toRaw(key);
|
|
48131
|
+
hadKey = has.call(target, key);
|
|
48132
|
+
}
|
|
48133
|
+
else if ((false)) {}
|
|
48134
|
+
const oldValue = get ? get.call(target, key) : undefined;
|
|
48135
|
+
// forward the operation before queueing reactions
|
|
48136
|
+
const result = target.delete(key);
|
|
48137
|
+
if (hadKey) {
|
|
48138
|
+
trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
|
|
48139
|
+
}
|
|
48140
|
+
return result;
|
|
48141
|
+
}
|
|
48142
|
+
function clear() {
|
|
48143
|
+
const target = toRaw(this);
|
|
48144
|
+
const hadItems = target.size !== 0;
|
|
48145
|
+
const oldTarget = ( false)
|
|
48146
|
+
? 0
|
|
48147
|
+
: undefined;
|
|
48148
|
+
// forward the operation before queueing reactions
|
|
48149
|
+
const result = target.clear();
|
|
48150
|
+
if (hadItems) {
|
|
48151
|
+
trigger(target, "clear" /* CLEAR */, undefined, undefined, oldTarget);
|
|
48152
|
+
}
|
|
48153
|
+
return result;
|
|
48154
|
+
}
|
|
48155
|
+
function createForEach(isReadonly, isShallow) {
|
|
48156
|
+
return function forEach(callback, thisArg) {
|
|
48157
|
+
const observed = this;
|
|
48158
|
+
const target = observed["__v_raw" /* RAW */];
|
|
48159
|
+
const rawTarget = toRaw(target);
|
|
48160
|
+
const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
|
|
48161
|
+
!isReadonly && track(rawTarget, "iterate" /* ITERATE */, ITERATE_KEY);
|
|
48162
|
+
return target.forEach((value, key) => {
|
|
48163
|
+
// important: make sure the callback is
|
|
48164
|
+
// 1. invoked with the reactive map as `this` and 3rd arg
|
|
48165
|
+
// 2. the value received should be a corresponding reactive/readonly.
|
|
48166
|
+
return callback.call(thisArg, wrap(value), wrap(key), observed);
|
|
48167
|
+
});
|
|
48168
|
+
};
|
|
48169
|
+
}
|
|
48170
|
+
function createIterableMethod(method, isReadonly, isShallow) {
|
|
48171
|
+
return function (...args) {
|
|
48172
|
+
const target = this["__v_raw" /* RAW */];
|
|
48173
|
+
const rawTarget = toRaw(target);
|
|
48174
|
+
const targetIsMap = (0,shared_esm_bundler/* isMap */._N)(rawTarget);
|
|
48175
|
+
const isPair = method === 'entries' || (method === Symbol.iterator && targetIsMap);
|
|
48176
|
+
const isKeyOnly = method === 'keys' && targetIsMap;
|
|
48177
|
+
const innerIterator = target[method](...args);
|
|
48178
|
+
const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
|
|
48179
|
+
!isReadonly &&
|
|
48180
|
+
track(rawTarget, "iterate" /* ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);
|
|
48181
|
+
// return a wrapped iterator which returns observed versions of the
|
|
48182
|
+
// values emitted from the real iterator
|
|
48183
|
+
return {
|
|
48184
|
+
// iterator protocol
|
|
48185
|
+
next() {
|
|
48186
|
+
const { value, done } = innerIterator.next();
|
|
48187
|
+
return done
|
|
48188
|
+
? { value, done }
|
|
48189
|
+
: {
|
|
48190
|
+
value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
|
|
48191
|
+
done
|
|
48192
|
+
};
|
|
48193
|
+
},
|
|
48194
|
+
// iterable protocol
|
|
48195
|
+
[Symbol.iterator]() {
|
|
48196
|
+
return this;
|
|
48197
|
+
}
|
|
48198
|
+
};
|
|
48199
|
+
};
|
|
48200
|
+
}
|
|
48201
|
+
function createReadonlyMethod(type) {
|
|
48202
|
+
return function (...args) {
|
|
48203
|
+
if ((false)) {}
|
|
48204
|
+
return type === "delete" /* DELETE */ ? false : this;
|
|
48205
|
+
};
|
|
48206
|
+
}
|
|
48207
|
+
function createInstrumentations() {
|
|
48208
|
+
const mutableInstrumentations = {
|
|
48209
|
+
get(key) {
|
|
48210
|
+
return get$1(this, key);
|
|
48211
|
+
},
|
|
48212
|
+
get size() {
|
|
48213
|
+
return reactivity_esm_bundler_size(this);
|
|
48214
|
+
},
|
|
48215
|
+
has: has$1,
|
|
48216
|
+
add,
|
|
48217
|
+
set: set$1,
|
|
48218
|
+
delete: deleteEntry,
|
|
48219
|
+
clear,
|
|
48220
|
+
forEach: createForEach(false, false)
|
|
48221
|
+
};
|
|
48222
|
+
const shallowInstrumentations = {
|
|
48223
|
+
get(key) {
|
|
48224
|
+
return get$1(this, key, false, true);
|
|
48225
|
+
},
|
|
48226
|
+
get size() {
|
|
48227
|
+
return reactivity_esm_bundler_size(this);
|
|
48228
|
+
},
|
|
48229
|
+
has: has$1,
|
|
48230
|
+
add,
|
|
48231
|
+
set: set$1,
|
|
48232
|
+
delete: deleteEntry,
|
|
48233
|
+
clear,
|
|
48234
|
+
forEach: createForEach(false, true)
|
|
48235
|
+
};
|
|
48236
|
+
const readonlyInstrumentations = {
|
|
48237
|
+
get(key) {
|
|
48238
|
+
return get$1(this, key, true);
|
|
48239
|
+
},
|
|
48240
|
+
get size() {
|
|
48241
|
+
return reactivity_esm_bundler_size(this, true);
|
|
48242
|
+
},
|
|
48243
|
+
has(key) {
|
|
48244
|
+
return has$1.call(this, key, true);
|
|
48245
|
+
},
|
|
48246
|
+
add: createReadonlyMethod("add" /* ADD */),
|
|
48247
|
+
set: createReadonlyMethod("set" /* SET */),
|
|
48248
|
+
delete: createReadonlyMethod("delete" /* DELETE */),
|
|
48249
|
+
clear: createReadonlyMethod("clear" /* CLEAR */),
|
|
48250
|
+
forEach: createForEach(true, false)
|
|
48251
|
+
};
|
|
48252
|
+
const shallowReadonlyInstrumentations = {
|
|
48253
|
+
get(key) {
|
|
48254
|
+
return get$1(this, key, true, true);
|
|
48255
|
+
},
|
|
48256
|
+
get size() {
|
|
48257
|
+
return reactivity_esm_bundler_size(this, true);
|
|
48258
|
+
},
|
|
48259
|
+
has(key) {
|
|
48260
|
+
return has$1.call(this, key, true);
|
|
48261
|
+
},
|
|
48262
|
+
add: createReadonlyMethod("add" /* ADD */),
|
|
48263
|
+
set: createReadonlyMethod("set" /* SET */),
|
|
48264
|
+
delete: createReadonlyMethod("delete" /* DELETE */),
|
|
48265
|
+
clear: createReadonlyMethod("clear" /* CLEAR */),
|
|
48266
|
+
forEach: createForEach(true, true)
|
|
48267
|
+
};
|
|
48268
|
+
const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator];
|
|
48269
|
+
iteratorMethods.forEach(method => {
|
|
48270
|
+
mutableInstrumentations[method] = createIterableMethod(method, false, false);
|
|
48271
|
+
readonlyInstrumentations[method] = createIterableMethod(method, true, false);
|
|
48272
|
+
shallowInstrumentations[method] = createIterableMethod(method, false, true);
|
|
48273
|
+
shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true);
|
|
48274
|
+
});
|
|
48275
|
+
return [
|
|
48276
|
+
mutableInstrumentations,
|
|
48277
|
+
readonlyInstrumentations,
|
|
48278
|
+
shallowInstrumentations,
|
|
48279
|
+
shallowReadonlyInstrumentations
|
|
48280
|
+
];
|
|
48281
|
+
}
|
|
48282
|
+
const [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/ createInstrumentations();
|
|
48283
|
+
function createInstrumentationGetter(isReadonly, shallow) {
|
|
48284
|
+
const instrumentations = shallow
|
|
48285
|
+
? isReadonly
|
|
48286
|
+
? shallowReadonlyInstrumentations
|
|
48287
|
+
: shallowInstrumentations
|
|
48288
|
+
: isReadonly
|
|
48289
|
+
? readonlyInstrumentations
|
|
48290
|
+
: mutableInstrumentations;
|
|
48291
|
+
return (target, key, receiver) => {
|
|
48292
|
+
if (key === "__v_isReactive" /* IS_REACTIVE */) {
|
|
48293
|
+
return !isReadonly;
|
|
48294
|
+
}
|
|
48295
|
+
else if (key === "__v_isReadonly" /* IS_READONLY */) {
|
|
48296
|
+
return isReadonly;
|
|
48297
|
+
}
|
|
48298
|
+
else if (key === "__v_raw" /* RAW */) {
|
|
48299
|
+
return target;
|
|
48300
|
+
}
|
|
48301
|
+
return Reflect.get((0,shared_esm_bundler/* hasOwn */.RI)(instrumentations, key) && key in target
|
|
48302
|
+
? instrumentations
|
|
48303
|
+
: target, key, receiver);
|
|
48304
|
+
};
|
|
48305
|
+
}
|
|
48306
|
+
const mutableCollectionHandlers = {
|
|
48307
|
+
get: /*#__PURE__*/ createInstrumentationGetter(false, false)
|
|
48308
|
+
};
|
|
48309
|
+
const shallowCollectionHandlers = {
|
|
48310
|
+
get: /*#__PURE__*/ createInstrumentationGetter(false, true)
|
|
48311
|
+
};
|
|
48312
|
+
const readonlyCollectionHandlers = {
|
|
48313
|
+
get: /*#__PURE__*/ createInstrumentationGetter(true, false)
|
|
48314
|
+
};
|
|
48315
|
+
const shallowReadonlyCollectionHandlers = {
|
|
48316
|
+
get: /*#__PURE__*/ createInstrumentationGetter(true, true)
|
|
48317
|
+
};
|
|
48318
|
+
function checkIdentityKeys(target, has, key) {
|
|
48319
|
+
const rawKey = toRaw(key);
|
|
48320
|
+
if (rawKey !== key && has.call(target, rawKey)) {
|
|
48321
|
+
const type = toRawType(target);
|
|
48322
|
+
console.warn(`Reactive ${type} contains both the raw and reactive ` +
|
|
48323
|
+
`versions of the same object${type === `Map` ? ` as keys` : ``}, ` +
|
|
48324
|
+
`which can lead to inconsistencies. ` +
|
|
48325
|
+
`Avoid differentiating between the raw and reactive versions ` +
|
|
48326
|
+
`of an object and only use the reactive version if possible.`);
|
|
48327
|
+
}
|
|
48328
|
+
}
|
|
48329
|
+
|
|
48330
|
+
const reactiveMap = new WeakMap();
|
|
48331
|
+
const shallowReactiveMap = new WeakMap();
|
|
48332
|
+
const readonlyMap = new WeakMap();
|
|
48333
|
+
const shallowReadonlyMap = new WeakMap();
|
|
48334
|
+
function targetTypeMap(rawType) {
|
|
48335
|
+
switch (rawType) {
|
|
48336
|
+
case 'Object':
|
|
48337
|
+
case 'Array':
|
|
48338
|
+
return 1 /* COMMON */;
|
|
48339
|
+
case 'Map':
|
|
48340
|
+
case 'Set':
|
|
48341
|
+
case 'WeakMap':
|
|
48342
|
+
case 'WeakSet':
|
|
48343
|
+
return 2 /* COLLECTION */;
|
|
48344
|
+
default:
|
|
48345
|
+
return 0 /* INVALID */;
|
|
48346
|
+
}
|
|
48347
|
+
}
|
|
48348
|
+
function getTargetType(value) {
|
|
48349
|
+
return value["__v_skip" /* SKIP */] || !Object.isExtensible(value)
|
|
48350
|
+
? 0 /* INVALID */
|
|
48351
|
+
: targetTypeMap((0,shared_esm_bundler/* toRawType */.W7)(value));
|
|
48352
|
+
}
|
|
48353
|
+
function reactive(target) {
|
|
48354
|
+
// if trying to observe a readonly proxy, return the readonly version.
|
|
48355
|
+
if (isReadonly(target)) {
|
|
48356
|
+
return target;
|
|
48357
|
+
}
|
|
48358
|
+
return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
|
|
48359
|
+
}
|
|
48360
|
+
/**
|
|
48361
|
+
* Return a shallowly-reactive copy of the original object, where only the root
|
|
48362
|
+
* level properties are reactive. It also does not auto-unwrap refs (even at the
|
|
48363
|
+
* root level).
|
|
48364
|
+
*/
|
|
48365
|
+
function shallowReactive(target) {
|
|
48366
|
+
return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);
|
|
48367
|
+
}
|
|
48368
|
+
/**
|
|
48369
|
+
* Creates a readonly copy of the original object. Note the returned copy is not
|
|
48370
|
+
* made reactive, but `readonly` can be called on an already reactive object.
|
|
48371
|
+
*/
|
|
48372
|
+
function readonly(target) {
|
|
48373
|
+
return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
|
|
48374
|
+
}
|
|
48375
|
+
/**
|
|
48376
|
+
* Returns a reactive-copy of the original object, where only the root level
|
|
48377
|
+
* properties are readonly, and does NOT unwrap refs nor recursively convert
|
|
48378
|
+
* returned properties.
|
|
48379
|
+
* This is used for creating the props proxy object for stateful components.
|
|
48380
|
+
*/
|
|
48381
|
+
function shallowReadonly(target) {
|
|
48382
|
+
return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);
|
|
48383
|
+
}
|
|
48384
|
+
function createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {
|
|
48385
|
+
if (!(0,shared_esm_bundler/* isObject */.Kn)(target)) {
|
|
48386
|
+
if ((false)) {}
|
|
48387
|
+
return target;
|
|
48388
|
+
}
|
|
48389
|
+
// target is already a Proxy, return it.
|
|
48390
|
+
// exception: calling readonly() on a reactive object
|
|
48391
|
+
if (target["__v_raw" /* RAW */] &&
|
|
48392
|
+
!(isReadonly && target["__v_isReactive" /* IS_REACTIVE */])) {
|
|
48393
|
+
return target;
|
|
48394
|
+
}
|
|
48395
|
+
// target already has corresponding Proxy
|
|
48396
|
+
const existingProxy = proxyMap.get(target);
|
|
48397
|
+
if (existingProxy) {
|
|
48398
|
+
return existingProxy;
|
|
48399
|
+
}
|
|
48400
|
+
// only specific value types can be observed.
|
|
48401
|
+
const targetType = getTargetType(target);
|
|
48402
|
+
if (targetType === 0 /* INVALID */) {
|
|
48403
|
+
return target;
|
|
48404
|
+
}
|
|
48405
|
+
const proxy = new Proxy(target, targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers);
|
|
48406
|
+
proxyMap.set(target, proxy);
|
|
48407
|
+
return proxy;
|
|
48408
|
+
}
|
|
48409
|
+
function isReactive(value) {
|
|
48410
|
+
if (isReadonly(value)) {
|
|
48411
|
+
return isReactive(value["__v_raw" /* RAW */]);
|
|
48412
|
+
}
|
|
48413
|
+
return !!(value && value["__v_isReactive" /* IS_REACTIVE */]);
|
|
48414
|
+
}
|
|
48415
|
+
function isReadonly(value) {
|
|
48416
|
+
return !!(value && value["__v_isReadonly" /* IS_READONLY */]);
|
|
48417
|
+
}
|
|
48418
|
+
function isShallow(value) {
|
|
48419
|
+
return !!(value && value["__v_isShallow" /* IS_SHALLOW */]);
|
|
48420
|
+
}
|
|
48421
|
+
function isProxy(value) {
|
|
48422
|
+
return isReactive(value) || isReadonly(value);
|
|
48423
|
+
}
|
|
48424
|
+
function toRaw(observed) {
|
|
48425
|
+
const raw = observed && observed["__v_raw" /* RAW */];
|
|
48426
|
+
return raw ? toRaw(raw) : observed;
|
|
48427
|
+
}
|
|
48428
|
+
function markRaw(value) {
|
|
48429
|
+
def(value, "__v_skip" /* SKIP */, true);
|
|
48430
|
+
return value;
|
|
48431
|
+
}
|
|
48432
|
+
const toReactive = (value) => (0,shared_esm_bundler/* isObject */.Kn)(value) ? reactive(value) : value;
|
|
48433
|
+
const toReadonly = (value) => (0,shared_esm_bundler/* isObject */.Kn)(value) ? readonly(value) : value;
|
|
48434
|
+
|
|
48435
|
+
function trackRefValue(ref) {
|
|
48436
|
+
if (shouldTrack && activeEffect) {
|
|
48437
|
+
ref = toRaw(ref);
|
|
48438
|
+
if ((false)) {}
|
|
48439
|
+
else {
|
|
48440
|
+
trackEffects(ref.dep || (ref.dep = createDep()));
|
|
48441
|
+
}
|
|
48442
|
+
}
|
|
48443
|
+
}
|
|
48444
|
+
function triggerRefValue(ref, newVal) {
|
|
48445
|
+
ref = toRaw(ref);
|
|
48446
|
+
if (ref.dep) {
|
|
48447
|
+
if ((false)) {}
|
|
48448
|
+
else {
|
|
48449
|
+
triggerEffects(ref.dep);
|
|
48450
|
+
}
|
|
48451
|
+
}
|
|
48452
|
+
}
|
|
48453
|
+
function isRef(r) {
|
|
48454
|
+
return !!(r && r.__v_isRef === true);
|
|
48455
|
+
}
|
|
48456
|
+
function ref(value) {
|
|
48457
|
+
return createRef(value, false);
|
|
48458
|
+
}
|
|
48459
|
+
function shallowRef(value) {
|
|
48460
|
+
return createRef(value, true);
|
|
48461
|
+
}
|
|
48462
|
+
function createRef(rawValue, shallow) {
|
|
48463
|
+
if (isRef(rawValue)) {
|
|
48464
|
+
return rawValue;
|
|
48465
|
+
}
|
|
48466
|
+
return new RefImpl(rawValue, shallow);
|
|
48467
|
+
}
|
|
48468
|
+
class RefImpl {
|
|
48469
|
+
constructor(value, __v_isShallow) {
|
|
48470
|
+
this.__v_isShallow = __v_isShallow;
|
|
48471
|
+
this.dep = undefined;
|
|
48472
|
+
this.__v_isRef = true;
|
|
48473
|
+
this._rawValue = __v_isShallow ? value : toRaw(value);
|
|
48474
|
+
this._value = __v_isShallow ? value : toReactive(value);
|
|
48475
|
+
}
|
|
48476
|
+
get value() {
|
|
48477
|
+
trackRefValue(this);
|
|
48478
|
+
return this._value;
|
|
48479
|
+
}
|
|
48480
|
+
set value(newVal) {
|
|
48481
|
+
newVal = this.__v_isShallow ? newVal : toRaw(newVal);
|
|
48482
|
+
if (hasChanged(newVal, this._rawValue)) {
|
|
48483
|
+
this._rawValue = newVal;
|
|
48484
|
+
this._value = this.__v_isShallow ? newVal : toReactive(newVal);
|
|
48485
|
+
triggerRefValue(this, newVal);
|
|
48486
|
+
}
|
|
48487
|
+
}
|
|
48488
|
+
}
|
|
48489
|
+
function triggerRef(ref) {
|
|
48490
|
+
triggerRefValue(ref, ( false) ? 0 : void 0);
|
|
48491
|
+
}
|
|
48492
|
+
function unref(ref) {
|
|
48493
|
+
return isRef(ref) ? ref.value : ref;
|
|
48494
|
+
}
|
|
48495
|
+
const shallowUnwrapHandlers = {
|
|
48496
|
+
get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
|
|
48497
|
+
set: (target, key, value, receiver) => {
|
|
48498
|
+
const oldValue = target[key];
|
|
48499
|
+
if (isRef(oldValue) && !isRef(value)) {
|
|
48500
|
+
oldValue.value = value;
|
|
48501
|
+
return true;
|
|
48502
|
+
}
|
|
48503
|
+
else {
|
|
48504
|
+
return Reflect.set(target, key, value, receiver);
|
|
48505
|
+
}
|
|
48506
|
+
}
|
|
48507
|
+
};
|
|
48508
|
+
function proxyRefs(objectWithRefs) {
|
|
48509
|
+
return isReactive(objectWithRefs)
|
|
48510
|
+
? objectWithRefs
|
|
48511
|
+
: new Proxy(objectWithRefs, shallowUnwrapHandlers);
|
|
48512
|
+
}
|
|
48513
|
+
class CustomRefImpl {
|
|
48514
|
+
constructor(factory) {
|
|
48515
|
+
this.dep = undefined;
|
|
48516
|
+
this.__v_isRef = true;
|
|
48517
|
+
const { get, set } = factory(() => trackRefValue(this), () => triggerRefValue(this));
|
|
48518
|
+
this._get = get;
|
|
48519
|
+
this._set = set;
|
|
48520
|
+
}
|
|
48521
|
+
get value() {
|
|
48522
|
+
return this._get();
|
|
48523
|
+
}
|
|
48524
|
+
set value(newVal) {
|
|
48525
|
+
this._set(newVal);
|
|
48526
|
+
}
|
|
48527
|
+
}
|
|
48528
|
+
function customRef(factory) {
|
|
48529
|
+
return new CustomRefImpl(factory);
|
|
48530
|
+
}
|
|
48531
|
+
function toRefs(object) {
|
|
48532
|
+
if (false) {}
|
|
48533
|
+
const ret = isArray(object) ? new Array(object.length) : {};
|
|
48534
|
+
for (const key in object) {
|
|
48535
|
+
ret[key] = toRef(object, key);
|
|
48536
|
+
}
|
|
48537
|
+
return ret;
|
|
48538
|
+
}
|
|
48539
|
+
class ObjectRefImpl {
|
|
48540
|
+
constructor(_object, _key, _defaultValue) {
|
|
48541
|
+
this._object = _object;
|
|
48542
|
+
this._key = _key;
|
|
48543
|
+
this._defaultValue = _defaultValue;
|
|
48544
|
+
this.__v_isRef = true;
|
|
48545
|
+
}
|
|
48546
|
+
get value() {
|
|
48547
|
+
const val = this._object[this._key];
|
|
48548
|
+
return val === undefined ? this._defaultValue : val;
|
|
48549
|
+
}
|
|
48550
|
+
set value(newVal) {
|
|
48551
|
+
this._object[this._key] = newVal;
|
|
48552
|
+
}
|
|
48553
|
+
}
|
|
48554
|
+
function toRef(object, key, defaultValue) {
|
|
48555
|
+
const val = object[key];
|
|
48556
|
+
return isRef(val)
|
|
48557
|
+
? val
|
|
48558
|
+
: new ObjectRefImpl(object, key, defaultValue);
|
|
48559
|
+
}
|
|
48560
|
+
|
|
48561
|
+
class ComputedRefImpl {
|
|
48562
|
+
constructor(getter, _setter, isReadonly, isSSR) {
|
|
48563
|
+
this._setter = _setter;
|
|
48564
|
+
this.dep = undefined;
|
|
48565
|
+
this.__v_isRef = true;
|
|
48566
|
+
this._dirty = true;
|
|
48567
|
+
this.effect = new ReactiveEffect(getter, () => {
|
|
48568
|
+
if (!this._dirty) {
|
|
48569
|
+
this._dirty = true;
|
|
48570
|
+
triggerRefValue(this);
|
|
48571
|
+
}
|
|
48572
|
+
});
|
|
48573
|
+
this.effect.computed = this;
|
|
48574
|
+
this.effect.active = this._cacheable = !isSSR;
|
|
48575
|
+
this["__v_isReadonly" /* IS_READONLY */] = isReadonly;
|
|
48576
|
+
}
|
|
48577
|
+
get value() {
|
|
48578
|
+
// the computed ref may get wrapped by other proxies e.g. readonly() #3376
|
|
48579
|
+
const self = toRaw(this);
|
|
48580
|
+
trackRefValue(self);
|
|
48581
|
+
if (self._dirty || !self._cacheable) {
|
|
48582
|
+
self._dirty = false;
|
|
48583
|
+
self._value = self.effect.run();
|
|
48584
|
+
}
|
|
48585
|
+
return self._value;
|
|
48586
|
+
}
|
|
48587
|
+
set value(newValue) {
|
|
48588
|
+
this._setter(newValue);
|
|
48589
|
+
}
|
|
48590
|
+
}
|
|
48591
|
+
function computed(getterOrOptions, debugOptions, isSSR = false) {
|
|
48592
|
+
let getter;
|
|
48593
|
+
let setter;
|
|
48594
|
+
const onlyGetter = (0,shared_esm_bundler/* isFunction */.mf)(getterOrOptions);
|
|
48595
|
+
if (onlyGetter) {
|
|
48596
|
+
getter = getterOrOptions;
|
|
48597
|
+
setter = ( false)
|
|
48598
|
+
? 0
|
|
48599
|
+
: shared_esm_bundler/* NOOP */.dG;
|
|
48600
|
+
}
|
|
48601
|
+
else {
|
|
48602
|
+
getter = getterOrOptions.get;
|
|
48603
|
+
setter = getterOrOptions.set;
|
|
48604
|
+
}
|
|
48605
|
+
const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);
|
|
48606
|
+
if (false) {}
|
|
48607
|
+
return cRef;
|
|
48608
|
+
}
|
|
48609
|
+
|
|
48610
|
+
var _a;
|
|
48611
|
+
const tick = /*#__PURE__*/ (/* unused pure expression or super */ null && (Promise.resolve()));
|
|
48612
|
+
const queue = (/* unused pure expression or super */ null && ([]));
|
|
48613
|
+
let queued = false;
|
|
48614
|
+
const scheduler = (fn) => {
|
|
48615
|
+
queue.push(fn);
|
|
48616
|
+
if (!queued) {
|
|
48617
|
+
queued = true;
|
|
48618
|
+
tick.then(flush);
|
|
48619
|
+
}
|
|
48620
|
+
};
|
|
48621
|
+
const flush = () => {
|
|
48622
|
+
for (let i = 0; i < queue.length; i++) {
|
|
48623
|
+
queue[i]();
|
|
48624
|
+
}
|
|
48625
|
+
queue.length = 0;
|
|
48626
|
+
queued = false;
|
|
48627
|
+
};
|
|
48628
|
+
class DeferredComputedRefImpl {
|
|
48629
|
+
constructor(getter) {
|
|
48630
|
+
this.dep = undefined;
|
|
48631
|
+
this._dirty = true;
|
|
48632
|
+
this.__v_isRef = true;
|
|
48633
|
+
this[_a] = true;
|
|
48634
|
+
let compareTarget;
|
|
48635
|
+
let hasCompareTarget = false;
|
|
48636
|
+
let scheduled = false;
|
|
48637
|
+
this.effect = new ReactiveEffect(getter, (computedTrigger) => {
|
|
48638
|
+
if (this.dep) {
|
|
48639
|
+
if (computedTrigger) {
|
|
48640
|
+
compareTarget = this._value;
|
|
48641
|
+
hasCompareTarget = true;
|
|
48642
|
+
}
|
|
48643
|
+
else if (!scheduled) {
|
|
48644
|
+
const valueToCompare = hasCompareTarget ? compareTarget : this._value;
|
|
48645
|
+
scheduled = true;
|
|
48646
|
+
hasCompareTarget = false;
|
|
48647
|
+
scheduler(() => {
|
|
48648
|
+
if (this.effect.active && this._get() !== valueToCompare) {
|
|
48649
|
+
triggerRefValue(this);
|
|
48650
|
+
}
|
|
48651
|
+
scheduled = false;
|
|
48652
|
+
});
|
|
48653
|
+
}
|
|
48654
|
+
// chained upstream computeds are notified synchronously to ensure
|
|
48655
|
+
// value invalidation in case of sync access; normal effects are
|
|
48656
|
+
// deferred to be triggered in scheduler.
|
|
48657
|
+
for (const e of this.dep) {
|
|
48658
|
+
if (e.computed instanceof DeferredComputedRefImpl) {
|
|
48659
|
+
e.scheduler(true /* computedTrigger */);
|
|
48660
|
+
}
|
|
48661
|
+
}
|
|
48662
|
+
}
|
|
48663
|
+
this._dirty = true;
|
|
48664
|
+
});
|
|
48665
|
+
this.effect.computed = this;
|
|
48666
|
+
}
|
|
48667
|
+
_get() {
|
|
48668
|
+
if (this._dirty) {
|
|
48669
|
+
this._dirty = false;
|
|
48670
|
+
return (this._value = this.effect.run());
|
|
48671
|
+
}
|
|
48672
|
+
return this._value;
|
|
48673
|
+
}
|
|
48674
|
+
get value() {
|
|
48675
|
+
trackRefValue(this);
|
|
48676
|
+
// the computed ref may get wrapped by other proxies e.g. readonly() #3376
|
|
48677
|
+
return toRaw(this)._get();
|
|
48678
|
+
}
|
|
48679
|
+
}
|
|
48680
|
+
_a = "__v_isReadonly" /* IS_READONLY */;
|
|
48681
|
+
function deferredComputed(getter) {
|
|
48682
|
+
return new DeferredComputedRefImpl(getter);
|
|
48683
|
+
}
|
|
48684
|
+
|
|
48685
|
+
|
|
48686
|
+
|
|
47493
48687
|
;// CONCATENATED MODULE: ./node_modules/element-plus/es/utils/dom/scroll.mjs
|
|
47494
48688
|
|
|
47495
48689
|
|
|
@@ -47519,14 +48713,14 @@ const getScrollContainer = (el, isVertical) => {
|
|
|
47519
48713
|
return parent;
|
|
47520
48714
|
};
|
|
47521
48715
|
let scrollBarWidth;
|
|
47522
|
-
const getScrollBarWidth = () => {
|
|
48716
|
+
const getScrollBarWidth = (namespace) => {
|
|
47523
48717
|
var _a;
|
|
47524
48718
|
if (!shared/* isClient */.C5)
|
|
47525
48719
|
return 0;
|
|
47526
48720
|
if (scrollBarWidth !== void 0)
|
|
47527
48721
|
return scrollBarWidth;
|
|
47528
48722
|
const outer = document.createElement("div");
|
|
47529
|
-
outer.className =
|
|
48723
|
+
outer.className = `${namespace}-scrollbar__wrap`;
|
|
47530
48724
|
outer.style.visibility = "hidden";
|
|
47531
48725
|
outer.style.width = "100px";
|
|
47532
48726
|
outer.style.position = "absolute";
|
|
@@ -47577,11 +48771,15 @@ function scrollIntoView(container, selected) {
|
|
|
47577
48771
|
|
|
47578
48772
|
|
|
47579
48773
|
|
|
48774
|
+
|
|
48775
|
+
|
|
47580
48776
|
const useLockscreen = (trigger) => {
|
|
47581
48777
|
if (!(0,external_commonjs_vue_commonjs2_vue_root_Vue_.isRef)(trigger)) {
|
|
47582
48778
|
(0,error/* throwError */._)("[useLockscreen]", "You need to pass a ref param to this function");
|
|
47583
48779
|
}
|
|
47584
|
-
|
|
48780
|
+
const ns = (0,use_namespace/* useNamespace */.s)("popup");
|
|
48781
|
+
const hiddenCls = computed(() => ns.bm("parent", "hidden"));
|
|
48782
|
+
if (!shared/* isClient */.C5 || (0,style/* hasClass */.pv)(document.body, hiddenCls.value)) {
|
|
47585
48783
|
return;
|
|
47586
48784
|
}
|
|
47587
48785
|
let scrollBarWidth = 0;
|
|
@@ -47589,7 +48787,7 @@ const useLockscreen = (trigger) => {
|
|
|
47589
48787
|
let bodyPaddingRight = "0";
|
|
47590
48788
|
let computedBodyPaddingRight = 0;
|
|
47591
48789
|
const cleanup = () => {
|
|
47592
|
-
(0,style/* removeClass */.IV)(document.body,
|
|
48790
|
+
(0,style/* removeClass */.IV)(document.body, hiddenCls.value);
|
|
47593
48791
|
if (withoutHiddenClass) {
|
|
47594
48792
|
document.body.style.paddingRight = bodyPaddingRight;
|
|
47595
48793
|
}
|
|
@@ -47599,18 +48797,18 @@ const useLockscreen = (trigger) => {
|
|
|
47599
48797
|
cleanup();
|
|
47600
48798
|
return;
|
|
47601
48799
|
}
|
|
47602
|
-
withoutHiddenClass = !(0,style/* hasClass */.pv)(document.body,
|
|
48800
|
+
withoutHiddenClass = !(0,style/* hasClass */.pv)(document.body, hiddenCls.value);
|
|
47603
48801
|
if (withoutHiddenClass) {
|
|
47604
48802
|
bodyPaddingRight = document.body.style.paddingRight;
|
|
47605
48803
|
computedBodyPaddingRight = Number.parseInt((0,style/* getStyle */.C2)(document.body, "paddingRight"), 10);
|
|
47606
48804
|
}
|
|
47607
|
-
scrollBarWidth = getScrollBarWidth();
|
|
48805
|
+
scrollBarWidth = getScrollBarWidth(ns.namespace.value);
|
|
47608
48806
|
const bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
|
|
47609
48807
|
const bodyOverflowY = (0,style/* getStyle */.C2)(document.body, "overflowY");
|
|
47610
48808
|
if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === "scroll") && withoutHiddenClass) {
|
|
47611
48809
|
document.body.style.paddingRight = `${computedBodyPaddingRight + scrollBarWidth}px`;
|
|
47612
48810
|
}
|
|
47613
|
-
(0,style/* addClass */.cn)(document.body,
|
|
48811
|
+
(0,style/* addClass */.cn)(document.body, hiddenCls.value);
|
|
47614
48812
|
});
|
|
47615
48813
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onScopeDispose)(() => cleanup());
|
|
47616
48814
|
};
|
|
@@ -47664,7 +48862,6 @@ const useRestoreActive = (toggle, initialFocus) => {
|
|
|
47664
48862
|
|
|
47665
48863
|
|
|
47666
48864
|
|
|
47667
|
-
|
|
47668
48865
|
|
|
47669
48866
|
|
|
47670
48867
|
const src_sfc_main = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
@@ -47822,12 +49019,12 @@ const src_sfc_main = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComp
|
|
|
47822
49019
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(async () => {
|
|
47823
49020
|
await (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
47824
49021
|
if (props.closeOnHashChange) {
|
|
47825
|
-
|
|
49022
|
+
window.addEventListener("hashchange", doClose);
|
|
47826
49023
|
}
|
|
47827
49024
|
});
|
|
47828
49025
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
|
|
47829
49026
|
if (props.closeOnHashChange) {
|
|
47830
|
-
|
|
49027
|
+
window.removeEventListener("hashchange", doClose);
|
|
47831
49028
|
}
|
|
47832
49029
|
});
|
|
47833
49030
|
function doClose() {
|
|
@@ -50236,16 +51433,16 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtUploadImagev
|
|
|
50236
51433
|
|
|
50237
51434
|
var map = {
|
|
50238
51435
|
"./JwtCascaderArea/index.vue": 8161,
|
|
50239
|
-
"./JwtEditor/index.vue":
|
|
51436
|
+
"./JwtEditor/index.vue": 5060,
|
|
50240
51437
|
"./JwtForm/index.vue": 9823,
|
|
50241
51438
|
"./JwtHeaderButton/index.vue": 1345,
|
|
50242
51439
|
"./JwtIcon/index.vue": 3514,
|
|
50243
51440
|
"./JwtIconSelect/index.vue": 6082,
|
|
50244
51441
|
"./JwtImage/index.vue": 6409,
|
|
50245
|
-
"./JwtInput/index.vue":
|
|
51442
|
+
"./JwtInput/index.vue": 2570,
|
|
50246
51443
|
"./JwtRateIcon/index.vue": 897,
|
|
50247
51444
|
"./JwtSelectServer/index.vue": 4192,
|
|
50248
|
-
"./JwtTable/index.vue":
|
|
51445
|
+
"./JwtTable/index.vue": 183,
|
|
50249
51446
|
"./JwtTableButton/index.vue": 3682,
|
|
50250
51447
|
"./JwtTableOnly/index.vue": 955,
|
|
50251
51448
|
"./JwtTags/index.vue": 4332,
|
|
@@ -63830,7 +65027,9 @@ const normalizeOptions = (params) => {
|
|
|
63830
65027
|
...messageDefaults,
|
|
63831
65028
|
...options
|
|
63832
65029
|
};
|
|
63833
|
-
if (
|
|
65030
|
+
if (!normalized.appendTo) {
|
|
65031
|
+
normalized.appendTo = document.body;
|
|
65032
|
+
} else if ((0,shared_esm_bundler/* isString */.HD)(normalized.appendTo)) {
|
|
63834
65033
|
let appendTo = document.querySelector(normalized.appendTo);
|
|
63835
65034
|
if (!(0,types/* isElement */.kK)(appendTo)) {
|
|
63836
65035
|
(0,error/* debugWarn */.N)("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
@@ -64206,14 +65405,18 @@ const useNamespace = (block) => {
|
|
|
64206
65405
|
const cssVar = (object) => {
|
|
64207
65406
|
const styles = {};
|
|
64208
65407
|
for (const key in object) {
|
|
64209
|
-
|
|
65408
|
+
if (object[key]) {
|
|
65409
|
+
styles[`--${namespace.value}-${key}`] = object[key];
|
|
65410
|
+
}
|
|
64210
65411
|
}
|
|
64211
65412
|
return styles;
|
|
64212
65413
|
};
|
|
64213
65414
|
const cssVarBlock = (object) => {
|
|
64214
65415
|
const styles = {};
|
|
64215
65416
|
for (const key in object) {
|
|
64216
|
-
|
|
65417
|
+
if (object[key]) {
|
|
65418
|
+
styles[`--${namespace.value}-${block}-${key}`] = object[key];
|
|
65419
|
+
}
|
|
64217
65420
|
}
|
|
64218
65421
|
return styles;
|
|
64219
65422
|
};
|