jwt-ui 1.0.7-8 → 1.0.8-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/jwt-ui.common.js +1296 -92
- package/lib/jwt-ui.common.js.map +1 -1
- package/lib/jwt-ui.css +1 -1
- package/lib/jwt-ui.umd.js +1296 -92
- 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.common.js
CHANGED
|
@@ -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 */ "
|
|
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,
|
|
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
|
-
/***/
|
|
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=
|
|
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-
|
|
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=
|
|
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_.
|
|
40471
|
-
|
|
40472
|
-
|
|
40473
|
-
|
|
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=
|
|
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=
|
|
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,7 +40535,7 @@ 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-
|
|
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
|
|
|
@@ -41966,7 +41987,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtImagevue_typ
|
|
|
41966
41987
|
|
|
41967
41988
|
/***/ }),
|
|
41968
41989
|
|
|
41969
|
-
/***/
|
|
41990
|
+
/***/ 1914:
|
|
41970
41991
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
41971
41992
|
|
|
41972
41993
|
"use strict";
|
|
@@ -41980,7 +42001,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
41980
42001
|
|
|
41981
42002
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
41982
42003
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
41983
|
-
;// 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=
|
|
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
|
|
41984
42005
|
|
|
41985
42006
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
41986
42007
|
const _component_el_input = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("el-input");
|
|
@@ -41997,7 +42018,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41997
42018
|
onBlur: _ctx.handleBlur
|
|
41998
42019
|
}), null, 16, ["modelValue", "style", "onBlur"]);
|
|
41999
42020
|
}
|
|
42000
|
-
;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=template&id=
|
|
42021
|
+
;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=template&id=72e5e110&scoped=true
|
|
42001
42022
|
|
|
42002
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
|
|
42003
42024
|
|
|
@@ -42018,7 +42039,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42018
42039
|
changeBg: {
|
|
42019
42040
|
type: String,
|
|
42020
42041
|
default: 'blue'
|
|
42021
|
-
}
|
|
42042
|
+
},
|
|
42043
|
+
// 改变时背景颜色
|
|
42044
|
+
textColor: {
|
|
42045
|
+
type: String,
|
|
42046
|
+
default: ''
|
|
42047
|
+
} // 文字颜色
|
|
42022
42048
|
|
|
42023
42049
|
},
|
|
42024
42050
|
emits: ['update:modelValue', 'blur'],
|
|
@@ -42057,10 +42083,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42057
42083
|
}));
|
|
42058
42084
|
;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=script&lang=js
|
|
42059
42085
|
|
|
42060
|
-
;// 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=
|
|
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
|
|
42061
42087
|
// extracted by mini-css-extract-plugin
|
|
42062
42088
|
|
|
42063
|
-
;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=style&index=0&id=
|
|
42089
|
+
;// CONCATENATED MODULE: ./src/packages/JwtInput/index.vue?vue&type=style&index=0&id=72e5e110&lang=scss&scoped=true
|
|
42064
42090
|
|
|
42065
42091
|
// EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
|
|
42066
42092
|
var exportHelper = __webpack_require__(3744);
|
|
@@ -42072,7 +42098,7 @@ var exportHelper = __webpack_require__(3744);
|
|
|
42072
42098
|
;
|
|
42073
42099
|
|
|
42074
42100
|
|
|
42075
|
-
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtInputvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-
|
|
42101
|
+
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtInputvue_type_script_lang_js, [['render',render],['__scopeId',"data-v-72e5e110"]])
|
|
42076
42102
|
|
|
42077
42103
|
/* harmony default export */ var JwtInput = (__exports__);
|
|
42078
42104
|
|
|
@@ -42461,7 +42487,7 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtSelectServer
|
|
|
42461
42487
|
|
|
42462
42488
|
/***/ }),
|
|
42463
42489
|
|
|
42464
|
-
/***/
|
|
42490
|
+
/***/ 3352:
|
|
42465
42491
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42466
42492
|
|
|
42467
42493
|
"use strict";
|
|
@@ -42475,10 +42501,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
42475
42501
|
|
|
42476
42502
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
42477
42503
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(3797);
|
|
42478
|
-
;// 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=
|
|
42504
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtTable/index.vue?vue&type=template&id=0acf8680&scoped=true
|
|
42479
42505
|
|
|
42480
42506
|
|
|
42481
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
42507
|
+
const _withScopeId = n => (_pushScopeId("data-v-0acf8680"), n = n(), _popScopeId(), n);
|
|
42482
42508
|
|
|
42483
42509
|
const _hoisted_1 = {
|
|
42484
42510
|
class: "app-table-wrapper"
|
|
@@ -42675,7 +42701,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42675
42701
|
center: "",
|
|
42676
42702
|
"custom-class": "jwt-dialog-wrapper",
|
|
42677
42703
|
"destroy-on-close": "",
|
|
42678
|
-
title: _ctx.editBoxInfo.title
|
|
42704
|
+
title: _ctx.editBoxInfo.title,
|
|
42705
|
+
"append-to-body": ""
|
|
42679
42706
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createSlots)({
|
|
42680
42707
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [_ctx.editBoxInfo.visible ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_jwt_form, {
|
|
42681
42708
|
key: 0,
|
|
@@ -42719,7 +42746,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42719
42746
|
}, undefined, true)])])
|
|
42720
42747
|
} : undefined]), 1040, ["modelValue", "title"])], 64);
|
|
42721
42748
|
}
|
|
42722
|
-
;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=template&id=
|
|
42749
|
+
;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=template&id=0acf8680&scoped=true
|
|
42723
42750
|
|
|
42724
42751
|
// EXTERNAL MODULE: ./node_modules/@vueuse/shared/index.mjs
|
|
42725
42752
|
var shared = __webpack_require__(7475);
|
|
@@ -45394,42 +45421,6 @@ const focusNode = (el) => {
|
|
|
45394
45421
|
|
|
45395
45422
|
//# sourceMappingURL=aria.mjs.map
|
|
45396
45423
|
|
|
45397
|
-
;// CONCATENATED MODULE: ./node_modules/element-plus/es/utils/dom/event.mjs
|
|
45398
|
-
const on = (element, event, handler, useCapture = false) => {
|
|
45399
|
-
if (element && event && handler) {
|
|
45400
|
-
element == null ? void 0 : element.addEventListener(event, handler, useCapture);
|
|
45401
|
-
}
|
|
45402
|
-
};
|
|
45403
|
-
const off = (element, event, handler, useCapture = false) => {
|
|
45404
|
-
if (element && event && handler) {
|
|
45405
|
-
element == null ? void 0 : element.removeEventListener(event, handler, useCapture);
|
|
45406
|
-
}
|
|
45407
|
-
};
|
|
45408
|
-
const once = (el, event, fn) => {
|
|
45409
|
-
const listener = function(...args) {
|
|
45410
|
-
if (fn) {
|
|
45411
|
-
fn.apply(this, args);
|
|
45412
|
-
}
|
|
45413
|
-
off(el, event, listener);
|
|
45414
|
-
};
|
|
45415
|
-
on(el, event, listener);
|
|
45416
|
-
};
|
|
45417
|
-
const composeEventHandlers = (theirsHandler, oursHandler, { checkForDefaultPrevented = true } = {}) => {
|
|
45418
|
-
const handleEvent = (event) => {
|
|
45419
|
-
const shouldPrevent = theirsHandler == null ? void 0 : theirsHandler(event);
|
|
45420
|
-
if (checkForDefaultPrevented === false || !shouldPrevent) {
|
|
45421
|
-
return oursHandler == null ? void 0 : oursHandler(event);
|
|
45422
|
-
}
|
|
45423
|
-
};
|
|
45424
|
-
return handleEvent;
|
|
45425
|
-
};
|
|
45426
|
-
const whenMouse = (handler) => {
|
|
45427
|
-
return (e) => e.pointerType === "mouse" ? handler(e) : void 0;
|
|
45428
|
-
};
|
|
45429
|
-
|
|
45430
|
-
|
|
45431
|
-
//# sourceMappingURL=event.mjs.map
|
|
45432
|
-
|
|
45433
45424
|
;// CONCATENATED MODULE: ./node_modules/element-plus/es/directives/trap-focus/index.mjs
|
|
45434
45425
|
|
|
45435
45426
|
|
|
@@ -45437,7 +45428,6 @@ const whenMouse = (handler) => {
|
|
|
45437
45428
|
|
|
45438
45429
|
|
|
45439
45430
|
|
|
45440
|
-
|
|
45441
45431
|
const FOCUSABLE_CHILDREN = "_trap-focus-children";
|
|
45442
45432
|
const TRAP_FOCUS_HANDLER = "_trap-focus-handler";
|
|
45443
45433
|
const FOCUS_STACK = [];
|
|
@@ -45473,7 +45463,7 @@ const TrapFocus = {
|
|
|
45473
45463
|
el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements(el);
|
|
45474
45464
|
FOCUS_STACK.push(el);
|
|
45475
45465
|
if (FOCUS_STACK.length <= 1) {
|
|
45476
|
-
|
|
45466
|
+
document.addEventListener("keydown", FOCUS_HANDLER);
|
|
45477
45467
|
}
|
|
45478
45468
|
},
|
|
45479
45469
|
updated(el) {
|
|
@@ -45484,7 +45474,7 @@ const TrapFocus = {
|
|
|
45484
45474
|
unmounted() {
|
|
45485
45475
|
FOCUS_STACK.shift();
|
|
45486
45476
|
if (FOCUS_STACK.length === 0) {
|
|
45487
|
-
|
|
45477
|
+
document.removeEventListener("keydown", FOCUS_HANDLER);
|
|
45488
45478
|
}
|
|
45489
45479
|
}
|
|
45490
45480
|
};
|
|
@@ -45607,13 +45597,13 @@ const FOCUS_TRAP_INJECTION_KEY = Symbol("elFocusTrap");
|
|
|
45607
45597
|
|
|
45608
45598
|
|
|
45609
45599
|
let registeredEscapeHandlers = [];
|
|
45600
|
+
const cachedHandler = (e) => {
|
|
45601
|
+
const event = e;
|
|
45602
|
+
if (event.key === aria/* EVENT_CODE.esc */.n.esc) {
|
|
45603
|
+
registeredEscapeHandlers.forEach((registeredHandler) => registeredHandler(event));
|
|
45604
|
+
}
|
|
45605
|
+
};
|
|
45610
45606
|
const useEscapeKeydown = (handler) => {
|
|
45611
|
-
const cachedHandler = (e) => {
|
|
45612
|
-
const event = e;
|
|
45613
|
-
if (event.key === aria/* EVENT_CODE.esc */.n.esc) {
|
|
45614
|
-
registeredEscapeHandlers.forEach((registeredHandler) => registeredHandler(event));
|
|
45615
|
-
}
|
|
45616
|
-
};
|
|
45617
45607
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
45618
45608
|
if (registeredEscapeHandlers.length === 0) {
|
|
45619
45609
|
document.addEventListener("keydown", cachedHandler);
|
|
@@ -47480,6 +47470,1211 @@ const useDraggable = (targetRef, dragRef, draggable) => {
|
|
|
47480
47470
|
|
|
47481
47471
|
//# sourceMappingURL=index.mjs.map
|
|
47482
47472
|
|
|
47473
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
|
|
47474
|
+
|
|
47475
|
+
|
|
47476
|
+
function warn(msg, ...args) {
|
|
47477
|
+
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
47478
|
+
}
|
|
47479
|
+
|
|
47480
|
+
let activeEffectScope;
|
|
47481
|
+
class EffectScope {
|
|
47482
|
+
constructor(detached = false) {
|
|
47483
|
+
/**
|
|
47484
|
+
* @internal
|
|
47485
|
+
*/
|
|
47486
|
+
this.active = true;
|
|
47487
|
+
/**
|
|
47488
|
+
* @internal
|
|
47489
|
+
*/
|
|
47490
|
+
this.effects = [];
|
|
47491
|
+
/**
|
|
47492
|
+
* @internal
|
|
47493
|
+
*/
|
|
47494
|
+
this.cleanups = [];
|
|
47495
|
+
if (!detached && activeEffectScope) {
|
|
47496
|
+
this.parent = activeEffectScope;
|
|
47497
|
+
this.index =
|
|
47498
|
+
(activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
|
|
47499
|
+
}
|
|
47500
|
+
}
|
|
47501
|
+
run(fn) {
|
|
47502
|
+
if (this.active) {
|
|
47503
|
+
const currentEffectScope = activeEffectScope;
|
|
47504
|
+
try {
|
|
47505
|
+
activeEffectScope = this;
|
|
47506
|
+
return fn();
|
|
47507
|
+
}
|
|
47508
|
+
finally {
|
|
47509
|
+
activeEffectScope = currentEffectScope;
|
|
47510
|
+
}
|
|
47511
|
+
}
|
|
47512
|
+
else if ((false)) {}
|
|
47513
|
+
}
|
|
47514
|
+
/**
|
|
47515
|
+
* This should only be called on non-detached scopes
|
|
47516
|
+
* @internal
|
|
47517
|
+
*/
|
|
47518
|
+
on() {
|
|
47519
|
+
activeEffectScope = this;
|
|
47520
|
+
}
|
|
47521
|
+
/**
|
|
47522
|
+
* This should only be called on non-detached scopes
|
|
47523
|
+
* @internal
|
|
47524
|
+
*/
|
|
47525
|
+
off() {
|
|
47526
|
+
activeEffectScope = this.parent;
|
|
47527
|
+
}
|
|
47528
|
+
stop(fromParent) {
|
|
47529
|
+
if (this.active) {
|
|
47530
|
+
let i, l;
|
|
47531
|
+
for (i = 0, l = this.effects.length; i < l; i++) {
|
|
47532
|
+
this.effects[i].stop();
|
|
47533
|
+
}
|
|
47534
|
+
for (i = 0, l = this.cleanups.length; i < l; i++) {
|
|
47535
|
+
this.cleanups[i]();
|
|
47536
|
+
}
|
|
47537
|
+
if (this.scopes) {
|
|
47538
|
+
for (i = 0, l = this.scopes.length; i < l; i++) {
|
|
47539
|
+
this.scopes[i].stop(true);
|
|
47540
|
+
}
|
|
47541
|
+
}
|
|
47542
|
+
// nested scope, dereference from parent to avoid memory leaks
|
|
47543
|
+
if (this.parent && !fromParent) {
|
|
47544
|
+
// optimized O(1) removal
|
|
47545
|
+
const last = this.parent.scopes.pop();
|
|
47546
|
+
if (last && last !== this) {
|
|
47547
|
+
this.parent.scopes[this.index] = last;
|
|
47548
|
+
last.index = this.index;
|
|
47549
|
+
}
|
|
47550
|
+
}
|
|
47551
|
+
this.active = false;
|
|
47552
|
+
}
|
|
47553
|
+
}
|
|
47554
|
+
}
|
|
47555
|
+
function effectScope(detached) {
|
|
47556
|
+
return new EffectScope(detached);
|
|
47557
|
+
}
|
|
47558
|
+
function recordEffectScope(effect, scope = activeEffectScope) {
|
|
47559
|
+
if (scope && scope.active) {
|
|
47560
|
+
scope.effects.push(effect);
|
|
47561
|
+
}
|
|
47562
|
+
}
|
|
47563
|
+
function getCurrentScope() {
|
|
47564
|
+
return activeEffectScope;
|
|
47565
|
+
}
|
|
47566
|
+
function onScopeDispose(fn) {
|
|
47567
|
+
if (activeEffectScope) {
|
|
47568
|
+
activeEffectScope.cleanups.push(fn);
|
|
47569
|
+
}
|
|
47570
|
+
else if ((false)) {}
|
|
47571
|
+
}
|
|
47572
|
+
|
|
47573
|
+
const createDep = (effects) => {
|
|
47574
|
+
const dep = new Set(effects);
|
|
47575
|
+
dep.w = 0;
|
|
47576
|
+
dep.n = 0;
|
|
47577
|
+
return dep;
|
|
47578
|
+
};
|
|
47579
|
+
const wasTracked = (dep) => (dep.w & trackOpBit) > 0;
|
|
47580
|
+
const newTracked = (dep) => (dep.n & trackOpBit) > 0;
|
|
47581
|
+
const initDepMarkers = ({ deps }) => {
|
|
47582
|
+
if (deps.length) {
|
|
47583
|
+
for (let i = 0; i < deps.length; i++) {
|
|
47584
|
+
deps[i].w |= trackOpBit; // set was tracked
|
|
47585
|
+
}
|
|
47586
|
+
}
|
|
47587
|
+
};
|
|
47588
|
+
const finalizeDepMarkers = (effect) => {
|
|
47589
|
+
const { deps } = effect;
|
|
47590
|
+
if (deps.length) {
|
|
47591
|
+
let ptr = 0;
|
|
47592
|
+
for (let i = 0; i < deps.length; i++) {
|
|
47593
|
+
const dep = deps[i];
|
|
47594
|
+
if (wasTracked(dep) && !newTracked(dep)) {
|
|
47595
|
+
dep.delete(effect);
|
|
47596
|
+
}
|
|
47597
|
+
else {
|
|
47598
|
+
deps[ptr++] = dep;
|
|
47599
|
+
}
|
|
47600
|
+
// clear bits
|
|
47601
|
+
dep.w &= ~trackOpBit;
|
|
47602
|
+
dep.n &= ~trackOpBit;
|
|
47603
|
+
}
|
|
47604
|
+
deps.length = ptr;
|
|
47605
|
+
}
|
|
47606
|
+
};
|
|
47607
|
+
|
|
47608
|
+
const targetMap = new WeakMap();
|
|
47609
|
+
// The number of effects currently being tracked recursively.
|
|
47610
|
+
let effectTrackDepth = 0;
|
|
47611
|
+
let trackOpBit = 1;
|
|
47612
|
+
/**
|
|
47613
|
+
* The bitwise track markers support at most 30 levels of recursion.
|
|
47614
|
+
* This value is chosen to enable modern JS engines to use a SMI on all platforms.
|
|
47615
|
+
* When recursion depth is greater, fall back to using a full cleanup.
|
|
47616
|
+
*/
|
|
47617
|
+
const maxMarkerBits = 30;
|
|
47618
|
+
let activeEffect;
|
|
47619
|
+
const ITERATE_KEY = Symbol(( false) ? 0 : '');
|
|
47620
|
+
const MAP_KEY_ITERATE_KEY = Symbol(( false) ? 0 : '');
|
|
47621
|
+
class ReactiveEffect {
|
|
47622
|
+
constructor(fn, scheduler = null, scope) {
|
|
47623
|
+
this.fn = fn;
|
|
47624
|
+
this.scheduler = scheduler;
|
|
47625
|
+
this.active = true;
|
|
47626
|
+
this.deps = [];
|
|
47627
|
+
this.parent = undefined;
|
|
47628
|
+
recordEffectScope(this, scope);
|
|
47629
|
+
}
|
|
47630
|
+
run() {
|
|
47631
|
+
if (!this.active) {
|
|
47632
|
+
return this.fn();
|
|
47633
|
+
}
|
|
47634
|
+
let parent = activeEffect;
|
|
47635
|
+
let lastShouldTrack = shouldTrack;
|
|
47636
|
+
while (parent) {
|
|
47637
|
+
if (parent === this) {
|
|
47638
|
+
return;
|
|
47639
|
+
}
|
|
47640
|
+
parent = parent.parent;
|
|
47641
|
+
}
|
|
47642
|
+
try {
|
|
47643
|
+
this.parent = activeEffect;
|
|
47644
|
+
activeEffect = this;
|
|
47645
|
+
shouldTrack = true;
|
|
47646
|
+
trackOpBit = 1 << ++effectTrackDepth;
|
|
47647
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
47648
|
+
initDepMarkers(this);
|
|
47649
|
+
}
|
|
47650
|
+
else {
|
|
47651
|
+
cleanupEffect(this);
|
|
47652
|
+
}
|
|
47653
|
+
return this.fn();
|
|
47654
|
+
}
|
|
47655
|
+
finally {
|
|
47656
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
47657
|
+
finalizeDepMarkers(this);
|
|
47658
|
+
}
|
|
47659
|
+
trackOpBit = 1 << --effectTrackDepth;
|
|
47660
|
+
activeEffect = this.parent;
|
|
47661
|
+
shouldTrack = lastShouldTrack;
|
|
47662
|
+
this.parent = undefined;
|
|
47663
|
+
if (this.deferStop) {
|
|
47664
|
+
this.stop();
|
|
47665
|
+
}
|
|
47666
|
+
}
|
|
47667
|
+
}
|
|
47668
|
+
stop() {
|
|
47669
|
+
// stopped while running itself - defer the cleanup
|
|
47670
|
+
if (activeEffect === this) {
|
|
47671
|
+
this.deferStop = true;
|
|
47672
|
+
}
|
|
47673
|
+
else if (this.active) {
|
|
47674
|
+
cleanupEffect(this);
|
|
47675
|
+
if (this.onStop) {
|
|
47676
|
+
this.onStop();
|
|
47677
|
+
}
|
|
47678
|
+
this.active = false;
|
|
47679
|
+
}
|
|
47680
|
+
}
|
|
47681
|
+
}
|
|
47682
|
+
function cleanupEffect(effect) {
|
|
47683
|
+
const { deps } = effect;
|
|
47684
|
+
if (deps.length) {
|
|
47685
|
+
for (let i = 0; i < deps.length; i++) {
|
|
47686
|
+
deps[i].delete(effect);
|
|
47687
|
+
}
|
|
47688
|
+
deps.length = 0;
|
|
47689
|
+
}
|
|
47690
|
+
}
|
|
47691
|
+
function effect(fn, options) {
|
|
47692
|
+
if (fn.effect) {
|
|
47693
|
+
fn = fn.effect.fn;
|
|
47694
|
+
}
|
|
47695
|
+
const _effect = new ReactiveEffect(fn);
|
|
47696
|
+
if (options) {
|
|
47697
|
+
extend(_effect, options);
|
|
47698
|
+
if (options.scope)
|
|
47699
|
+
recordEffectScope(_effect, options.scope);
|
|
47700
|
+
}
|
|
47701
|
+
if (!options || !options.lazy) {
|
|
47702
|
+
_effect.run();
|
|
47703
|
+
}
|
|
47704
|
+
const runner = _effect.run.bind(_effect);
|
|
47705
|
+
runner.effect = _effect;
|
|
47706
|
+
return runner;
|
|
47707
|
+
}
|
|
47708
|
+
function stop(runner) {
|
|
47709
|
+
runner.effect.stop();
|
|
47710
|
+
}
|
|
47711
|
+
let shouldTrack = true;
|
|
47712
|
+
const trackStack = [];
|
|
47713
|
+
function pauseTracking() {
|
|
47714
|
+
trackStack.push(shouldTrack);
|
|
47715
|
+
shouldTrack = false;
|
|
47716
|
+
}
|
|
47717
|
+
function enableTracking() {
|
|
47718
|
+
trackStack.push(shouldTrack);
|
|
47719
|
+
shouldTrack = true;
|
|
47720
|
+
}
|
|
47721
|
+
function resetTracking() {
|
|
47722
|
+
const last = trackStack.pop();
|
|
47723
|
+
shouldTrack = last === undefined ? true : last;
|
|
47724
|
+
}
|
|
47725
|
+
function track(target, type, key) {
|
|
47726
|
+
if (shouldTrack && activeEffect) {
|
|
47727
|
+
let depsMap = targetMap.get(target);
|
|
47728
|
+
if (!depsMap) {
|
|
47729
|
+
targetMap.set(target, (depsMap = new Map()));
|
|
47730
|
+
}
|
|
47731
|
+
let dep = depsMap.get(key);
|
|
47732
|
+
if (!dep) {
|
|
47733
|
+
depsMap.set(key, (dep = createDep()));
|
|
47734
|
+
}
|
|
47735
|
+
const eventInfo = ( false)
|
|
47736
|
+
? 0
|
|
47737
|
+
: undefined;
|
|
47738
|
+
trackEffects(dep, eventInfo);
|
|
47739
|
+
}
|
|
47740
|
+
}
|
|
47741
|
+
function trackEffects(dep, debuggerEventExtraInfo) {
|
|
47742
|
+
let shouldTrack = false;
|
|
47743
|
+
if (effectTrackDepth <= maxMarkerBits) {
|
|
47744
|
+
if (!newTracked(dep)) {
|
|
47745
|
+
dep.n |= trackOpBit; // set newly tracked
|
|
47746
|
+
shouldTrack = !wasTracked(dep);
|
|
47747
|
+
}
|
|
47748
|
+
}
|
|
47749
|
+
else {
|
|
47750
|
+
// Full cleanup mode.
|
|
47751
|
+
shouldTrack = !dep.has(activeEffect);
|
|
47752
|
+
}
|
|
47753
|
+
if (shouldTrack) {
|
|
47754
|
+
dep.add(activeEffect);
|
|
47755
|
+
activeEffect.deps.push(dep);
|
|
47756
|
+
if (false) {}
|
|
47757
|
+
}
|
|
47758
|
+
}
|
|
47759
|
+
function trigger(target, type, key, newValue, oldValue, oldTarget) {
|
|
47760
|
+
const depsMap = targetMap.get(target);
|
|
47761
|
+
if (!depsMap) {
|
|
47762
|
+
// never been tracked
|
|
47763
|
+
return;
|
|
47764
|
+
}
|
|
47765
|
+
let deps = [];
|
|
47766
|
+
if (type === "clear" /* CLEAR */) {
|
|
47767
|
+
// collection being cleared
|
|
47768
|
+
// trigger all effects for target
|
|
47769
|
+
deps = [...depsMap.values()];
|
|
47770
|
+
}
|
|
47771
|
+
else if (key === 'length' && (0,shared_esm_bundler/* isArray */.kJ)(target)) {
|
|
47772
|
+
depsMap.forEach((dep, key) => {
|
|
47773
|
+
if (key === 'length' || key >= newValue) {
|
|
47774
|
+
deps.push(dep);
|
|
47775
|
+
}
|
|
47776
|
+
});
|
|
47777
|
+
}
|
|
47778
|
+
else {
|
|
47779
|
+
// schedule runs for SET | ADD | DELETE
|
|
47780
|
+
if (key !== void 0) {
|
|
47781
|
+
deps.push(depsMap.get(key));
|
|
47782
|
+
}
|
|
47783
|
+
// also run for iteration key on ADD | DELETE | Map.SET
|
|
47784
|
+
switch (type) {
|
|
47785
|
+
case "add" /* ADD */:
|
|
47786
|
+
if (!(0,shared_esm_bundler/* isArray */.kJ)(target)) {
|
|
47787
|
+
deps.push(depsMap.get(ITERATE_KEY));
|
|
47788
|
+
if ((0,shared_esm_bundler/* isMap */._N)(target)) {
|
|
47789
|
+
deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
47790
|
+
}
|
|
47791
|
+
}
|
|
47792
|
+
else if ((0,shared_esm_bundler/* isIntegerKey */.S0)(key)) {
|
|
47793
|
+
// new index added to array -> length changes
|
|
47794
|
+
deps.push(depsMap.get('length'));
|
|
47795
|
+
}
|
|
47796
|
+
break;
|
|
47797
|
+
case "delete" /* DELETE */:
|
|
47798
|
+
if (!(0,shared_esm_bundler/* isArray */.kJ)(target)) {
|
|
47799
|
+
deps.push(depsMap.get(ITERATE_KEY));
|
|
47800
|
+
if ((0,shared_esm_bundler/* isMap */._N)(target)) {
|
|
47801
|
+
deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
|
|
47802
|
+
}
|
|
47803
|
+
}
|
|
47804
|
+
break;
|
|
47805
|
+
case "set" /* SET */:
|
|
47806
|
+
if ((0,shared_esm_bundler/* isMap */._N)(target)) {
|
|
47807
|
+
deps.push(depsMap.get(ITERATE_KEY));
|
|
47808
|
+
}
|
|
47809
|
+
break;
|
|
47810
|
+
}
|
|
47811
|
+
}
|
|
47812
|
+
const eventInfo = ( false)
|
|
47813
|
+
? 0
|
|
47814
|
+
: undefined;
|
|
47815
|
+
if (deps.length === 1) {
|
|
47816
|
+
if (deps[0]) {
|
|
47817
|
+
if ((false)) {}
|
|
47818
|
+
else {
|
|
47819
|
+
triggerEffects(deps[0]);
|
|
47820
|
+
}
|
|
47821
|
+
}
|
|
47822
|
+
}
|
|
47823
|
+
else {
|
|
47824
|
+
const effects = [];
|
|
47825
|
+
for (const dep of deps) {
|
|
47826
|
+
if (dep) {
|
|
47827
|
+
effects.push(...dep);
|
|
47828
|
+
}
|
|
47829
|
+
}
|
|
47830
|
+
if ((false)) {}
|
|
47831
|
+
else {
|
|
47832
|
+
triggerEffects(createDep(effects));
|
|
47833
|
+
}
|
|
47834
|
+
}
|
|
47835
|
+
}
|
|
47836
|
+
function triggerEffects(dep, debuggerEventExtraInfo) {
|
|
47837
|
+
// spread into array for stabilization
|
|
47838
|
+
const effects = (0,shared_esm_bundler/* isArray */.kJ)(dep) ? dep : [...dep];
|
|
47839
|
+
for (const effect of effects) {
|
|
47840
|
+
if (effect.computed) {
|
|
47841
|
+
triggerEffect(effect, debuggerEventExtraInfo);
|
|
47842
|
+
}
|
|
47843
|
+
}
|
|
47844
|
+
for (const effect of effects) {
|
|
47845
|
+
if (!effect.computed) {
|
|
47846
|
+
triggerEffect(effect, debuggerEventExtraInfo);
|
|
47847
|
+
}
|
|
47848
|
+
}
|
|
47849
|
+
}
|
|
47850
|
+
function triggerEffect(effect, debuggerEventExtraInfo) {
|
|
47851
|
+
if (effect !== activeEffect || effect.allowRecurse) {
|
|
47852
|
+
if (false) {}
|
|
47853
|
+
if (effect.scheduler) {
|
|
47854
|
+
effect.scheduler();
|
|
47855
|
+
}
|
|
47856
|
+
else {
|
|
47857
|
+
effect.run();
|
|
47858
|
+
}
|
|
47859
|
+
}
|
|
47860
|
+
}
|
|
47861
|
+
|
|
47862
|
+
const isNonTrackableKeys = /*#__PURE__*/ (0,shared_esm_bundler/* makeMap */.fY)(`__proto__,__v_isRef,__isVue`);
|
|
47863
|
+
const builtInSymbols = new Set(
|
|
47864
|
+
/*#__PURE__*/
|
|
47865
|
+
Object.getOwnPropertyNames(Symbol)
|
|
47866
|
+
// ios10.x Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller'
|
|
47867
|
+
// but accessing them on Symbol leads to TypeError because Symbol is a strict mode
|
|
47868
|
+
// function
|
|
47869
|
+
.filter(key => key !== 'arguments' && key !== 'caller')
|
|
47870
|
+
.map(key => Symbol[key])
|
|
47871
|
+
.filter(shared_esm_bundler/* isSymbol */.yk));
|
|
47872
|
+
const reactivity_esm_bundler_get = /*#__PURE__*/ createGetter();
|
|
47873
|
+
const shallowGet = /*#__PURE__*/ createGetter(false, true);
|
|
47874
|
+
const readonlyGet = /*#__PURE__*/ createGetter(true);
|
|
47875
|
+
const shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true);
|
|
47876
|
+
const arrayInstrumentations = /*#__PURE__*/ createArrayInstrumentations();
|
|
47877
|
+
function createArrayInstrumentations() {
|
|
47878
|
+
const instrumentations = {};
|
|
47879
|
+
['includes', 'indexOf', 'lastIndexOf'].forEach(key => {
|
|
47880
|
+
instrumentations[key] = function (...args) {
|
|
47881
|
+
const arr = toRaw(this);
|
|
47882
|
+
for (let i = 0, l = this.length; i < l; i++) {
|
|
47883
|
+
track(arr, "get" /* GET */, i + '');
|
|
47884
|
+
}
|
|
47885
|
+
// we run the method using the original args first (which may be reactive)
|
|
47886
|
+
const res = arr[key](...args);
|
|
47887
|
+
if (res === -1 || res === false) {
|
|
47888
|
+
// if that didn't work, run it again using raw values.
|
|
47889
|
+
return arr[key](...args.map(toRaw));
|
|
47890
|
+
}
|
|
47891
|
+
else {
|
|
47892
|
+
return res;
|
|
47893
|
+
}
|
|
47894
|
+
};
|
|
47895
|
+
});
|
|
47896
|
+
['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => {
|
|
47897
|
+
instrumentations[key] = function (...args) {
|
|
47898
|
+
pauseTracking();
|
|
47899
|
+
const res = toRaw(this)[key].apply(this, args);
|
|
47900
|
+
resetTracking();
|
|
47901
|
+
return res;
|
|
47902
|
+
};
|
|
47903
|
+
});
|
|
47904
|
+
return instrumentations;
|
|
47905
|
+
}
|
|
47906
|
+
function createGetter(isReadonly = false, shallow = false) {
|
|
47907
|
+
return function get(target, key, receiver) {
|
|
47908
|
+
if (key === "__v_isReactive" /* IS_REACTIVE */) {
|
|
47909
|
+
return !isReadonly;
|
|
47910
|
+
}
|
|
47911
|
+
else if (key === "__v_isReadonly" /* IS_READONLY */) {
|
|
47912
|
+
return isReadonly;
|
|
47913
|
+
}
|
|
47914
|
+
else if (key === "__v_isShallow" /* IS_SHALLOW */) {
|
|
47915
|
+
return shallow;
|
|
47916
|
+
}
|
|
47917
|
+
else if (key === "__v_raw" /* RAW */ &&
|
|
47918
|
+
receiver ===
|
|
47919
|
+
(isReadonly
|
|
47920
|
+
? shallow
|
|
47921
|
+
? shallowReadonlyMap
|
|
47922
|
+
: readonlyMap
|
|
47923
|
+
: shallow
|
|
47924
|
+
? shallowReactiveMap
|
|
47925
|
+
: reactiveMap).get(target)) {
|
|
47926
|
+
return target;
|
|
47927
|
+
}
|
|
47928
|
+
const targetIsArray = (0,shared_esm_bundler/* isArray */.kJ)(target);
|
|
47929
|
+
if (!isReadonly && targetIsArray && (0,shared_esm_bundler/* hasOwn */.RI)(arrayInstrumentations, key)) {
|
|
47930
|
+
return Reflect.get(arrayInstrumentations, key, receiver);
|
|
47931
|
+
}
|
|
47932
|
+
const res = Reflect.get(target, key, receiver);
|
|
47933
|
+
if ((0,shared_esm_bundler/* isSymbol */.yk)(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
|
|
47934
|
+
return res;
|
|
47935
|
+
}
|
|
47936
|
+
if (!isReadonly) {
|
|
47937
|
+
track(target, "get" /* GET */, key);
|
|
47938
|
+
}
|
|
47939
|
+
if (shallow) {
|
|
47940
|
+
return res;
|
|
47941
|
+
}
|
|
47942
|
+
if (isRef(res)) {
|
|
47943
|
+
// ref unwrapping - skip unwrap for Array + integer key.
|
|
47944
|
+
return targetIsArray && (0,shared_esm_bundler/* isIntegerKey */.S0)(key) ? res : res.value;
|
|
47945
|
+
}
|
|
47946
|
+
if ((0,shared_esm_bundler/* isObject */.Kn)(res)) {
|
|
47947
|
+
// Convert returned value into a proxy as well. we do the isObject check
|
|
47948
|
+
// here to avoid invalid value warning. Also need to lazy access readonly
|
|
47949
|
+
// and reactive here to avoid circular dependency.
|
|
47950
|
+
return isReadonly ? readonly(res) : reactive(res);
|
|
47951
|
+
}
|
|
47952
|
+
return res;
|
|
47953
|
+
};
|
|
47954
|
+
}
|
|
47955
|
+
const set = /*#__PURE__*/ createSetter();
|
|
47956
|
+
const shallowSet = /*#__PURE__*/ createSetter(true);
|
|
47957
|
+
function createSetter(shallow = false) {
|
|
47958
|
+
return function set(target, key, value, receiver) {
|
|
47959
|
+
let oldValue = target[key];
|
|
47960
|
+
if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
|
|
47961
|
+
return false;
|
|
47962
|
+
}
|
|
47963
|
+
if (!shallow && !isReadonly(value)) {
|
|
47964
|
+
if (!isShallow(value)) {
|
|
47965
|
+
value = toRaw(value);
|
|
47966
|
+
oldValue = toRaw(oldValue);
|
|
47967
|
+
}
|
|
47968
|
+
if (!(0,shared_esm_bundler/* isArray */.kJ)(target) && isRef(oldValue) && !isRef(value)) {
|
|
47969
|
+
oldValue.value = value;
|
|
47970
|
+
return true;
|
|
47971
|
+
}
|
|
47972
|
+
}
|
|
47973
|
+
const hadKey = (0,shared_esm_bundler/* isArray */.kJ)(target) && (0,shared_esm_bundler/* isIntegerKey */.S0)(key)
|
|
47974
|
+
? Number(key) < target.length
|
|
47975
|
+
: (0,shared_esm_bundler/* hasOwn */.RI)(target, key);
|
|
47976
|
+
const result = Reflect.set(target, key, value, receiver);
|
|
47977
|
+
// don't trigger if target is something up in the prototype chain of original
|
|
47978
|
+
if (target === toRaw(receiver)) {
|
|
47979
|
+
if (!hadKey) {
|
|
47980
|
+
trigger(target, "add" /* ADD */, key, value);
|
|
47981
|
+
}
|
|
47982
|
+
else if ((0,shared_esm_bundler/* hasChanged */.aU)(value, oldValue)) {
|
|
47983
|
+
trigger(target, "set" /* SET */, key, value, oldValue);
|
|
47984
|
+
}
|
|
47985
|
+
}
|
|
47986
|
+
return result;
|
|
47987
|
+
};
|
|
47988
|
+
}
|
|
47989
|
+
function deleteProperty(target, key) {
|
|
47990
|
+
const hadKey = (0,shared_esm_bundler/* hasOwn */.RI)(target, key);
|
|
47991
|
+
const oldValue = target[key];
|
|
47992
|
+
const result = Reflect.deleteProperty(target, key);
|
|
47993
|
+
if (result && hadKey) {
|
|
47994
|
+
trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
|
|
47995
|
+
}
|
|
47996
|
+
return result;
|
|
47997
|
+
}
|
|
47998
|
+
function has(target, key) {
|
|
47999
|
+
const result = Reflect.has(target, key);
|
|
48000
|
+
if (!(0,shared_esm_bundler/* isSymbol */.yk)(key) || !builtInSymbols.has(key)) {
|
|
48001
|
+
track(target, "has" /* HAS */, key);
|
|
48002
|
+
}
|
|
48003
|
+
return result;
|
|
48004
|
+
}
|
|
48005
|
+
function ownKeys(target) {
|
|
48006
|
+
track(target, "iterate" /* ITERATE */, (0,shared_esm_bundler/* isArray */.kJ)(target) ? 'length' : ITERATE_KEY);
|
|
48007
|
+
return Reflect.ownKeys(target);
|
|
48008
|
+
}
|
|
48009
|
+
const mutableHandlers = {
|
|
48010
|
+
get: reactivity_esm_bundler_get,
|
|
48011
|
+
set,
|
|
48012
|
+
deleteProperty,
|
|
48013
|
+
has,
|
|
48014
|
+
ownKeys
|
|
48015
|
+
};
|
|
48016
|
+
const readonlyHandlers = {
|
|
48017
|
+
get: readonlyGet,
|
|
48018
|
+
set(target, key) {
|
|
48019
|
+
if ((false)) {}
|
|
48020
|
+
return true;
|
|
48021
|
+
},
|
|
48022
|
+
deleteProperty(target, key) {
|
|
48023
|
+
if ((false)) {}
|
|
48024
|
+
return true;
|
|
48025
|
+
}
|
|
48026
|
+
};
|
|
48027
|
+
const shallowReactiveHandlers = /*#__PURE__*/ (0,shared_esm_bundler/* extend */.l7)({}, mutableHandlers, {
|
|
48028
|
+
get: shallowGet,
|
|
48029
|
+
set: shallowSet
|
|
48030
|
+
});
|
|
48031
|
+
// Props handlers are special in the sense that it should not unwrap top-level
|
|
48032
|
+
// refs (in order to allow refs to be explicitly passed down), but should
|
|
48033
|
+
// retain the reactivity of the normal readonly object.
|
|
48034
|
+
const shallowReadonlyHandlers = /*#__PURE__*/ (0,shared_esm_bundler/* extend */.l7)({}, readonlyHandlers, {
|
|
48035
|
+
get: shallowReadonlyGet
|
|
48036
|
+
});
|
|
48037
|
+
|
|
48038
|
+
const toShallow = (value) => value;
|
|
48039
|
+
const getProto = (v) => Reflect.getPrototypeOf(v);
|
|
48040
|
+
function get$1(target, key, isReadonly = false, isShallow = false) {
|
|
48041
|
+
// #1772: readonly(reactive(Map)) should return readonly + reactive version
|
|
48042
|
+
// of the value
|
|
48043
|
+
target = target["__v_raw" /* RAW */];
|
|
48044
|
+
const rawTarget = toRaw(target);
|
|
48045
|
+
const rawKey = toRaw(key);
|
|
48046
|
+
if (!isReadonly) {
|
|
48047
|
+
if (key !== rawKey) {
|
|
48048
|
+
track(rawTarget, "get" /* GET */, key);
|
|
48049
|
+
}
|
|
48050
|
+
track(rawTarget, "get" /* GET */, rawKey);
|
|
48051
|
+
}
|
|
48052
|
+
const { has } = getProto(rawTarget);
|
|
48053
|
+
const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
|
|
48054
|
+
if (has.call(rawTarget, key)) {
|
|
48055
|
+
return wrap(target.get(key));
|
|
48056
|
+
}
|
|
48057
|
+
else if (has.call(rawTarget, rawKey)) {
|
|
48058
|
+
return wrap(target.get(rawKey));
|
|
48059
|
+
}
|
|
48060
|
+
else if (target !== rawTarget) {
|
|
48061
|
+
// #3602 readonly(reactive(Map))
|
|
48062
|
+
// ensure that the nested reactive `Map` can do tracking for itself
|
|
48063
|
+
target.get(key);
|
|
48064
|
+
}
|
|
48065
|
+
}
|
|
48066
|
+
function has$1(key, isReadonly = false) {
|
|
48067
|
+
const target = this["__v_raw" /* RAW */];
|
|
48068
|
+
const rawTarget = toRaw(target);
|
|
48069
|
+
const rawKey = toRaw(key);
|
|
48070
|
+
if (!isReadonly) {
|
|
48071
|
+
if (key !== rawKey) {
|
|
48072
|
+
track(rawTarget, "has" /* HAS */, key);
|
|
48073
|
+
}
|
|
48074
|
+
track(rawTarget, "has" /* HAS */, rawKey);
|
|
48075
|
+
}
|
|
48076
|
+
return key === rawKey
|
|
48077
|
+
? target.has(key)
|
|
48078
|
+
: target.has(key) || target.has(rawKey);
|
|
48079
|
+
}
|
|
48080
|
+
function reactivity_esm_bundler_size(target, isReadonly = false) {
|
|
48081
|
+
target = target["__v_raw" /* RAW */];
|
|
48082
|
+
!isReadonly && track(toRaw(target), "iterate" /* ITERATE */, ITERATE_KEY);
|
|
48083
|
+
return Reflect.get(target, 'size', target);
|
|
48084
|
+
}
|
|
48085
|
+
function add(value) {
|
|
48086
|
+
value = toRaw(value);
|
|
48087
|
+
const target = toRaw(this);
|
|
48088
|
+
const proto = getProto(target);
|
|
48089
|
+
const hadKey = proto.has.call(target, value);
|
|
48090
|
+
if (!hadKey) {
|
|
48091
|
+
target.add(value);
|
|
48092
|
+
trigger(target, "add" /* ADD */, value, value);
|
|
48093
|
+
}
|
|
48094
|
+
return this;
|
|
48095
|
+
}
|
|
48096
|
+
function set$1(key, value) {
|
|
48097
|
+
value = toRaw(value);
|
|
48098
|
+
const target = toRaw(this);
|
|
48099
|
+
const { has, get } = getProto(target);
|
|
48100
|
+
let hadKey = has.call(target, key);
|
|
48101
|
+
if (!hadKey) {
|
|
48102
|
+
key = toRaw(key);
|
|
48103
|
+
hadKey = has.call(target, key);
|
|
48104
|
+
}
|
|
48105
|
+
else if ((false)) {}
|
|
48106
|
+
const oldValue = get.call(target, key);
|
|
48107
|
+
target.set(key, value);
|
|
48108
|
+
if (!hadKey) {
|
|
48109
|
+
trigger(target, "add" /* ADD */, key, value);
|
|
48110
|
+
}
|
|
48111
|
+
else if ((0,shared_esm_bundler/* hasChanged */.aU)(value, oldValue)) {
|
|
48112
|
+
trigger(target, "set" /* SET */, key, value, oldValue);
|
|
48113
|
+
}
|
|
48114
|
+
return this;
|
|
48115
|
+
}
|
|
48116
|
+
function deleteEntry(key) {
|
|
48117
|
+
const target = toRaw(this);
|
|
48118
|
+
const { has, get } = getProto(target);
|
|
48119
|
+
let hadKey = has.call(target, key);
|
|
48120
|
+
if (!hadKey) {
|
|
48121
|
+
key = toRaw(key);
|
|
48122
|
+
hadKey = has.call(target, key);
|
|
48123
|
+
}
|
|
48124
|
+
else if ((false)) {}
|
|
48125
|
+
const oldValue = get ? get.call(target, key) : undefined;
|
|
48126
|
+
// forward the operation before queueing reactions
|
|
48127
|
+
const result = target.delete(key);
|
|
48128
|
+
if (hadKey) {
|
|
48129
|
+
trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
|
|
48130
|
+
}
|
|
48131
|
+
return result;
|
|
48132
|
+
}
|
|
48133
|
+
function clear() {
|
|
48134
|
+
const target = toRaw(this);
|
|
48135
|
+
const hadItems = target.size !== 0;
|
|
48136
|
+
const oldTarget = ( false)
|
|
48137
|
+
? 0
|
|
48138
|
+
: undefined;
|
|
48139
|
+
// forward the operation before queueing reactions
|
|
48140
|
+
const result = target.clear();
|
|
48141
|
+
if (hadItems) {
|
|
48142
|
+
trigger(target, "clear" /* CLEAR */, undefined, undefined, oldTarget);
|
|
48143
|
+
}
|
|
48144
|
+
return result;
|
|
48145
|
+
}
|
|
48146
|
+
function createForEach(isReadonly, isShallow) {
|
|
48147
|
+
return function forEach(callback, thisArg) {
|
|
48148
|
+
const observed = this;
|
|
48149
|
+
const target = observed["__v_raw" /* RAW */];
|
|
48150
|
+
const rawTarget = toRaw(target);
|
|
48151
|
+
const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
|
|
48152
|
+
!isReadonly && track(rawTarget, "iterate" /* ITERATE */, ITERATE_KEY);
|
|
48153
|
+
return target.forEach((value, key) => {
|
|
48154
|
+
// important: make sure the callback is
|
|
48155
|
+
// 1. invoked with the reactive map as `this` and 3rd arg
|
|
48156
|
+
// 2. the value received should be a corresponding reactive/readonly.
|
|
48157
|
+
return callback.call(thisArg, wrap(value), wrap(key), observed);
|
|
48158
|
+
});
|
|
48159
|
+
};
|
|
48160
|
+
}
|
|
48161
|
+
function createIterableMethod(method, isReadonly, isShallow) {
|
|
48162
|
+
return function (...args) {
|
|
48163
|
+
const target = this["__v_raw" /* RAW */];
|
|
48164
|
+
const rawTarget = toRaw(target);
|
|
48165
|
+
const targetIsMap = (0,shared_esm_bundler/* isMap */._N)(rawTarget);
|
|
48166
|
+
const isPair = method === 'entries' || (method === Symbol.iterator && targetIsMap);
|
|
48167
|
+
const isKeyOnly = method === 'keys' && targetIsMap;
|
|
48168
|
+
const innerIterator = target[method](...args);
|
|
48169
|
+
const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
|
|
48170
|
+
!isReadonly &&
|
|
48171
|
+
track(rawTarget, "iterate" /* ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);
|
|
48172
|
+
// return a wrapped iterator which returns observed versions of the
|
|
48173
|
+
// values emitted from the real iterator
|
|
48174
|
+
return {
|
|
48175
|
+
// iterator protocol
|
|
48176
|
+
next() {
|
|
48177
|
+
const { value, done } = innerIterator.next();
|
|
48178
|
+
return done
|
|
48179
|
+
? { value, done }
|
|
48180
|
+
: {
|
|
48181
|
+
value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
|
|
48182
|
+
done
|
|
48183
|
+
};
|
|
48184
|
+
},
|
|
48185
|
+
// iterable protocol
|
|
48186
|
+
[Symbol.iterator]() {
|
|
48187
|
+
return this;
|
|
48188
|
+
}
|
|
48189
|
+
};
|
|
48190
|
+
};
|
|
48191
|
+
}
|
|
48192
|
+
function createReadonlyMethod(type) {
|
|
48193
|
+
return function (...args) {
|
|
48194
|
+
if ((false)) {}
|
|
48195
|
+
return type === "delete" /* DELETE */ ? false : this;
|
|
48196
|
+
};
|
|
48197
|
+
}
|
|
48198
|
+
function createInstrumentations() {
|
|
48199
|
+
const mutableInstrumentations = {
|
|
48200
|
+
get(key) {
|
|
48201
|
+
return get$1(this, key);
|
|
48202
|
+
},
|
|
48203
|
+
get size() {
|
|
48204
|
+
return reactivity_esm_bundler_size(this);
|
|
48205
|
+
},
|
|
48206
|
+
has: has$1,
|
|
48207
|
+
add,
|
|
48208
|
+
set: set$1,
|
|
48209
|
+
delete: deleteEntry,
|
|
48210
|
+
clear,
|
|
48211
|
+
forEach: createForEach(false, false)
|
|
48212
|
+
};
|
|
48213
|
+
const shallowInstrumentations = {
|
|
48214
|
+
get(key) {
|
|
48215
|
+
return get$1(this, key, false, true);
|
|
48216
|
+
},
|
|
48217
|
+
get size() {
|
|
48218
|
+
return reactivity_esm_bundler_size(this);
|
|
48219
|
+
},
|
|
48220
|
+
has: has$1,
|
|
48221
|
+
add,
|
|
48222
|
+
set: set$1,
|
|
48223
|
+
delete: deleteEntry,
|
|
48224
|
+
clear,
|
|
48225
|
+
forEach: createForEach(false, true)
|
|
48226
|
+
};
|
|
48227
|
+
const readonlyInstrumentations = {
|
|
48228
|
+
get(key) {
|
|
48229
|
+
return get$1(this, key, true);
|
|
48230
|
+
},
|
|
48231
|
+
get size() {
|
|
48232
|
+
return reactivity_esm_bundler_size(this, true);
|
|
48233
|
+
},
|
|
48234
|
+
has(key) {
|
|
48235
|
+
return has$1.call(this, key, true);
|
|
48236
|
+
},
|
|
48237
|
+
add: createReadonlyMethod("add" /* ADD */),
|
|
48238
|
+
set: createReadonlyMethod("set" /* SET */),
|
|
48239
|
+
delete: createReadonlyMethod("delete" /* DELETE */),
|
|
48240
|
+
clear: createReadonlyMethod("clear" /* CLEAR */),
|
|
48241
|
+
forEach: createForEach(true, false)
|
|
48242
|
+
};
|
|
48243
|
+
const shallowReadonlyInstrumentations = {
|
|
48244
|
+
get(key) {
|
|
48245
|
+
return get$1(this, key, true, true);
|
|
48246
|
+
},
|
|
48247
|
+
get size() {
|
|
48248
|
+
return reactivity_esm_bundler_size(this, true);
|
|
48249
|
+
},
|
|
48250
|
+
has(key) {
|
|
48251
|
+
return has$1.call(this, key, true);
|
|
48252
|
+
},
|
|
48253
|
+
add: createReadonlyMethod("add" /* ADD */),
|
|
48254
|
+
set: createReadonlyMethod("set" /* SET */),
|
|
48255
|
+
delete: createReadonlyMethod("delete" /* DELETE */),
|
|
48256
|
+
clear: createReadonlyMethod("clear" /* CLEAR */),
|
|
48257
|
+
forEach: createForEach(true, true)
|
|
48258
|
+
};
|
|
48259
|
+
const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator];
|
|
48260
|
+
iteratorMethods.forEach(method => {
|
|
48261
|
+
mutableInstrumentations[method] = createIterableMethod(method, false, false);
|
|
48262
|
+
readonlyInstrumentations[method] = createIterableMethod(method, true, false);
|
|
48263
|
+
shallowInstrumentations[method] = createIterableMethod(method, false, true);
|
|
48264
|
+
shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true);
|
|
48265
|
+
});
|
|
48266
|
+
return [
|
|
48267
|
+
mutableInstrumentations,
|
|
48268
|
+
readonlyInstrumentations,
|
|
48269
|
+
shallowInstrumentations,
|
|
48270
|
+
shallowReadonlyInstrumentations
|
|
48271
|
+
];
|
|
48272
|
+
}
|
|
48273
|
+
const [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/ createInstrumentations();
|
|
48274
|
+
function createInstrumentationGetter(isReadonly, shallow) {
|
|
48275
|
+
const instrumentations = shallow
|
|
48276
|
+
? isReadonly
|
|
48277
|
+
? shallowReadonlyInstrumentations
|
|
48278
|
+
: shallowInstrumentations
|
|
48279
|
+
: isReadonly
|
|
48280
|
+
? readonlyInstrumentations
|
|
48281
|
+
: mutableInstrumentations;
|
|
48282
|
+
return (target, key, receiver) => {
|
|
48283
|
+
if (key === "__v_isReactive" /* IS_REACTIVE */) {
|
|
48284
|
+
return !isReadonly;
|
|
48285
|
+
}
|
|
48286
|
+
else if (key === "__v_isReadonly" /* IS_READONLY */) {
|
|
48287
|
+
return isReadonly;
|
|
48288
|
+
}
|
|
48289
|
+
else if (key === "__v_raw" /* RAW */) {
|
|
48290
|
+
return target;
|
|
48291
|
+
}
|
|
48292
|
+
return Reflect.get((0,shared_esm_bundler/* hasOwn */.RI)(instrumentations, key) && key in target
|
|
48293
|
+
? instrumentations
|
|
48294
|
+
: target, key, receiver);
|
|
48295
|
+
};
|
|
48296
|
+
}
|
|
48297
|
+
const mutableCollectionHandlers = {
|
|
48298
|
+
get: /*#__PURE__*/ createInstrumentationGetter(false, false)
|
|
48299
|
+
};
|
|
48300
|
+
const shallowCollectionHandlers = {
|
|
48301
|
+
get: /*#__PURE__*/ createInstrumentationGetter(false, true)
|
|
48302
|
+
};
|
|
48303
|
+
const readonlyCollectionHandlers = {
|
|
48304
|
+
get: /*#__PURE__*/ createInstrumentationGetter(true, false)
|
|
48305
|
+
};
|
|
48306
|
+
const shallowReadonlyCollectionHandlers = {
|
|
48307
|
+
get: /*#__PURE__*/ createInstrumentationGetter(true, true)
|
|
48308
|
+
};
|
|
48309
|
+
function checkIdentityKeys(target, has, key) {
|
|
48310
|
+
const rawKey = toRaw(key);
|
|
48311
|
+
if (rawKey !== key && has.call(target, rawKey)) {
|
|
48312
|
+
const type = toRawType(target);
|
|
48313
|
+
console.warn(`Reactive ${type} contains both the raw and reactive ` +
|
|
48314
|
+
`versions of the same object${type === `Map` ? ` as keys` : ``}, ` +
|
|
48315
|
+
`which can lead to inconsistencies. ` +
|
|
48316
|
+
`Avoid differentiating between the raw and reactive versions ` +
|
|
48317
|
+
`of an object and only use the reactive version if possible.`);
|
|
48318
|
+
}
|
|
48319
|
+
}
|
|
48320
|
+
|
|
48321
|
+
const reactiveMap = new WeakMap();
|
|
48322
|
+
const shallowReactiveMap = new WeakMap();
|
|
48323
|
+
const readonlyMap = new WeakMap();
|
|
48324
|
+
const shallowReadonlyMap = new WeakMap();
|
|
48325
|
+
function targetTypeMap(rawType) {
|
|
48326
|
+
switch (rawType) {
|
|
48327
|
+
case 'Object':
|
|
48328
|
+
case 'Array':
|
|
48329
|
+
return 1 /* COMMON */;
|
|
48330
|
+
case 'Map':
|
|
48331
|
+
case 'Set':
|
|
48332
|
+
case 'WeakMap':
|
|
48333
|
+
case 'WeakSet':
|
|
48334
|
+
return 2 /* COLLECTION */;
|
|
48335
|
+
default:
|
|
48336
|
+
return 0 /* INVALID */;
|
|
48337
|
+
}
|
|
48338
|
+
}
|
|
48339
|
+
function getTargetType(value) {
|
|
48340
|
+
return value["__v_skip" /* SKIP */] || !Object.isExtensible(value)
|
|
48341
|
+
? 0 /* INVALID */
|
|
48342
|
+
: targetTypeMap((0,shared_esm_bundler/* toRawType */.W7)(value));
|
|
48343
|
+
}
|
|
48344
|
+
function reactive(target) {
|
|
48345
|
+
// if trying to observe a readonly proxy, return the readonly version.
|
|
48346
|
+
if (isReadonly(target)) {
|
|
48347
|
+
return target;
|
|
48348
|
+
}
|
|
48349
|
+
return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
|
|
48350
|
+
}
|
|
48351
|
+
/**
|
|
48352
|
+
* Return a shallowly-reactive copy of the original object, where only the root
|
|
48353
|
+
* level properties are reactive. It also does not auto-unwrap refs (even at the
|
|
48354
|
+
* root level).
|
|
48355
|
+
*/
|
|
48356
|
+
function shallowReactive(target) {
|
|
48357
|
+
return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);
|
|
48358
|
+
}
|
|
48359
|
+
/**
|
|
48360
|
+
* Creates a readonly copy of the original object. Note the returned copy is not
|
|
48361
|
+
* made reactive, but `readonly` can be called on an already reactive object.
|
|
48362
|
+
*/
|
|
48363
|
+
function readonly(target) {
|
|
48364
|
+
return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
|
|
48365
|
+
}
|
|
48366
|
+
/**
|
|
48367
|
+
* Returns a reactive-copy of the original object, where only the root level
|
|
48368
|
+
* properties are readonly, and does NOT unwrap refs nor recursively convert
|
|
48369
|
+
* returned properties.
|
|
48370
|
+
* This is used for creating the props proxy object for stateful components.
|
|
48371
|
+
*/
|
|
48372
|
+
function shallowReadonly(target) {
|
|
48373
|
+
return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);
|
|
48374
|
+
}
|
|
48375
|
+
function createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {
|
|
48376
|
+
if (!(0,shared_esm_bundler/* isObject */.Kn)(target)) {
|
|
48377
|
+
if ((false)) {}
|
|
48378
|
+
return target;
|
|
48379
|
+
}
|
|
48380
|
+
// target is already a Proxy, return it.
|
|
48381
|
+
// exception: calling readonly() on a reactive object
|
|
48382
|
+
if (target["__v_raw" /* RAW */] &&
|
|
48383
|
+
!(isReadonly && target["__v_isReactive" /* IS_REACTIVE */])) {
|
|
48384
|
+
return target;
|
|
48385
|
+
}
|
|
48386
|
+
// target already has corresponding Proxy
|
|
48387
|
+
const existingProxy = proxyMap.get(target);
|
|
48388
|
+
if (existingProxy) {
|
|
48389
|
+
return existingProxy;
|
|
48390
|
+
}
|
|
48391
|
+
// only specific value types can be observed.
|
|
48392
|
+
const targetType = getTargetType(target);
|
|
48393
|
+
if (targetType === 0 /* INVALID */) {
|
|
48394
|
+
return target;
|
|
48395
|
+
}
|
|
48396
|
+
const proxy = new Proxy(target, targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers);
|
|
48397
|
+
proxyMap.set(target, proxy);
|
|
48398
|
+
return proxy;
|
|
48399
|
+
}
|
|
48400
|
+
function isReactive(value) {
|
|
48401
|
+
if (isReadonly(value)) {
|
|
48402
|
+
return isReactive(value["__v_raw" /* RAW */]);
|
|
48403
|
+
}
|
|
48404
|
+
return !!(value && value["__v_isReactive" /* IS_REACTIVE */]);
|
|
48405
|
+
}
|
|
48406
|
+
function isReadonly(value) {
|
|
48407
|
+
return !!(value && value["__v_isReadonly" /* IS_READONLY */]);
|
|
48408
|
+
}
|
|
48409
|
+
function isShallow(value) {
|
|
48410
|
+
return !!(value && value["__v_isShallow" /* IS_SHALLOW */]);
|
|
48411
|
+
}
|
|
48412
|
+
function isProxy(value) {
|
|
48413
|
+
return isReactive(value) || isReadonly(value);
|
|
48414
|
+
}
|
|
48415
|
+
function toRaw(observed) {
|
|
48416
|
+
const raw = observed && observed["__v_raw" /* RAW */];
|
|
48417
|
+
return raw ? toRaw(raw) : observed;
|
|
48418
|
+
}
|
|
48419
|
+
function markRaw(value) {
|
|
48420
|
+
def(value, "__v_skip" /* SKIP */, true);
|
|
48421
|
+
return value;
|
|
48422
|
+
}
|
|
48423
|
+
const toReactive = (value) => (0,shared_esm_bundler/* isObject */.Kn)(value) ? reactive(value) : value;
|
|
48424
|
+
const toReadonly = (value) => (0,shared_esm_bundler/* isObject */.Kn)(value) ? readonly(value) : value;
|
|
48425
|
+
|
|
48426
|
+
function trackRefValue(ref) {
|
|
48427
|
+
if (shouldTrack && activeEffect) {
|
|
48428
|
+
ref = toRaw(ref);
|
|
48429
|
+
if ((false)) {}
|
|
48430
|
+
else {
|
|
48431
|
+
trackEffects(ref.dep || (ref.dep = createDep()));
|
|
48432
|
+
}
|
|
48433
|
+
}
|
|
48434
|
+
}
|
|
48435
|
+
function triggerRefValue(ref, newVal) {
|
|
48436
|
+
ref = toRaw(ref);
|
|
48437
|
+
if (ref.dep) {
|
|
48438
|
+
if ((false)) {}
|
|
48439
|
+
else {
|
|
48440
|
+
triggerEffects(ref.dep);
|
|
48441
|
+
}
|
|
48442
|
+
}
|
|
48443
|
+
}
|
|
48444
|
+
function isRef(r) {
|
|
48445
|
+
return !!(r && r.__v_isRef === true);
|
|
48446
|
+
}
|
|
48447
|
+
function ref(value) {
|
|
48448
|
+
return createRef(value, false);
|
|
48449
|
+
}
|
|
48450
|
+
function shallowRef(value) {
|
|
48451
|
+
return createRef(value, true);
|
|
48452
|
+
}
|
|
48453
|
+
function createRef(rawValue, shallow) {
|
|
48454
|
+
if (isRef(rawValue)) {
|
|
48455
|
+
return rawValue;
|
|
48456
|
+
}
|
|
48457
|
+
return new RefImpl(rawValue, shallow);
|
|
48458
|
+
}
|
|
48459
|
+
class RefImpl {
|
|
48460
|
+
constructor(value, __v_isShallow) {
|
|
48461
|
+
this.__v_isShallow = __v_isShallow;
|
|
48462
|
+
this.dep = undefined;
|
|
48463
|
+
this.__v_isRef = true;
|
|
48464
|
+
this._rawValue = __v_isShallow ? value : toRaw(value);
|
|
48465
|
+
this._value = __v_isShallow ? value : toReactive(value);
|
|
48466
|
+
}
|
|
48467
|
+
get value() {
|
|
48468
|
+
trackRefValue(this);
|
|
48469
|
+
return this._value;
|
|
48470
|
+
}
|
|
48471
|
+
set value(newVal) {
|
|
48472
|
+
newVal = this.__v_isShallow ? newVal : toRaw(newVal);
|
|
48473
|
+
if (hasChanged(newVal, this._rawValue)) {
|
|
48474
|
+
this._rawValue = newVal;
|
|
48475
|
+
this._value = this.__v_isShallow ? newVal : toReactive(newVal);
|
|
48476
|
+
triggerRefValue(this, newVal);
|
|
48477
|
+
}
|
|
48478
|
+
}
|
|
48479
|
+
}
|
|
48480
|
+
function triggerRef(ref) {
|
|
48481
|
+
triggerRefValue(ref, ( false) ? 0 : void 0);
|
|
48482
|
+
}
|
|
48483
|
+
function unref(ref) {
|
|
48484
|
+
return isRef(ref) ? ref.value : ref;
|
|
48485
|
+
}
|
|
48486
|
+
const shallowUnwrapHandlers = {
|
|
48487
|
+
get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
|
|
48488
|
+
set: (target, key, value, receiver) => {
|
|
48489
|
+
const oldValue = target[key];
|
|
48490
|
+
if (isRef(oldValue) && !isRef(value)) {
|
|
48491
|
+
oldValue.value = value;
|
|
48492
|
+
return true;
|
|
48493
|
+
}
|
|
48494
|
+
else {
|
|
48495
|
+
return Reflect.set(target, key, value, receiver);
|
|
48496
|
+
}
|
|
48497
|
+
}
|
|
48498
|
+
};
|
|
48499
|
+
function proxyRefs(objectWithRefs) {
|
|
48500
|
+
return isReactive(objectWithRefs)
|
|
48501
|
+
? objectWithRefs
|
|
48502
|
+
: new Proxy(objectWithRefs, shallowUnwrapHandlers);
|
|
48503
|
+
}
|
|
48504
|
+
class CustomRefImpl {
|
|
48505
|
+
constructor(factory) {
|
|
48506
|
+
this.dep = undefined;
|
|
48507
|
+
this.__v_isRef = true;
|
|
48508
|
+
const { get, set } = factory(() => trackRefValue(this), () => triggerRefValue(this));
|
|
48509
|
+
this._get = get;
|
|
48510
|
+
this._set = set;
|
|
48511
|
+
}
|
|
48512
|
+
get value() {
|
|
48513
|
+
return this._get();
|
|
48514
|
+
}
|
|
48515
|
+
set value(newVal) {
|
|
48516
|
+
this._set(newVal);
|
|
48517
|
+
}
|
|
48518
|
+
}
|
|
48519
|
+
function customRef(factory) {
|
|
48520
|
+
return new CustomRefImpl(factory);
|
|
48521
|
+
}
|
|
48522
|
+
function toRefs(object) {
|
|
48523
|
+
if (false) {}
|
|
48524
|
+
const ret = isArray(object) ? new Array(object.length) : {};
|
|
48525
|
+
for (const key in object) {
|
|
48526
|
+
ret[key] = toRef(object, key);
|
|
48527
|
+
}
|
|
48528
|
+
return ret;
|
|
48529
|
+
}
|
|
48530
|
+
class ObjectRefImpl {
|
|
48531
|
+
constructor(_object, _key, _defaultValue) {
|
|
48532
|
+
this._object = _object;
|
|
48533
|
+
this._key = _key;
|
|
48534
|
+
this._defaultValue = _defaultValue;
|
|
48535
|
+
this.__v_isRef = true;
|
|
48536
|
+
}
|
|
48537
|
+
get value() {
|
|
48538
|
+
const val = this._object[this._key];
|
|
48539
|
+
return val === undefined ? this._defaultValue : val;
|
|
48540
|
+
}
|
|
48541
|
+
set value(newVal) {
|
|
48542
|
+
this._object[this._key] = newVal;
|
|
48543
|
+
}
|
|
48544
|
+
}
|
|
48545
|
+
function toRef(object, key, defaultValue) {
|
|
48546
|
+
const val = object[key];
|
|
48547
|
+
return isRef(val)
|
|
48548
|
+
? val
|
|
48549
|
+
: new ObjectRefImpl(object, key, defaultValue);
|
|
48550
|
+
}
|
|
48551
|
+
|
|
48552
|
+
class ComputedRefImpl {
|
|
48553
|
+
constructor(getter, _setter, isReadonly, isSSR) {
|
|
48554
|
+
this._setter = _setter;
|
|
48555
|
+
this.dep = undefined;
|
|
48556
|
+
this.__v_isRef = true;
|
|
48557
|
+
this._dirty = true;
|
|
48558
|
+
this.effect = new ReactiveEffect(getter, () => {
|
|
48559
|
+
if (!this._dirty) {
|
|
48560
|
+
this._dirty = true;
|
|
48561
|
+
triggerRefValue(this);
|
|
48562
|
+
}
|
|
48563
|
+
});
|
|
48564
|
+
this.effect.computed = this;
|
|
48565
|
+
this.effect.active = this._cacheable = !isSSR;
|
|
48566
|
+
this["__v_isReadonly" /* IS_READONLY */] = isReadonly;
|
|
48567
|
+
}
|
|
48568
|
+
get value() {
|
|
48569
|
+
// the computed ref may get wrapped by other proxies e.g. readonly() #3376
|
|
48570
|
+
const self = toRaw(this);
|
|
48571
|
+
trackRefValue(self);
|
|
48572
|
+
if (self._dirty || !self._cacheable) {
|
|
48573
|
+
self._dirty = false;
|
|
48574
|
+
self._value = self.effect.run();
|
|
48575
|
+
}
|
|
48576
|
+
return self._value;
|
|
48577
|
+
}
|
|
48578
|
+
set value(newValue) {
|
|
48579
|
+
this._setter(newValue);
|
|
48580
|
+
}
|
|
48581
|
+
}
|
|
48582
|
+
function computed(getterOrOptions, debugOptions, isSSR = false) {
|
|
48583
|
+
let getter;
|
|
48584
|
+
let setter;
|
|
48585
|
+
const onlyGetter = (0,shared_esm_bundler/* isFunction */.mf)(getterOrOptions);
|
|
48586
|
+
if (onlyGetter) {
|
|
48587
|
+
getter = getterOrOptions;
|
|
48588
|
+
setter = ( false)
|
|
48589
|
+
? 0
|
|
48590
|
+
: shared_esm_bundler/* NOOP */.dG;
|
|
48591
|
+
}
|
|
48592
|
+
else {
|
|
48593
|
+
getter = getterOrOptions.get;
|
|
48594
|
+
setter = getterOrOptions.set;
|
|
48595
|
+
}
|
|
48596
|
+
const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);
|
|
48597
|
+
if (false) {}
|
|
48598
|
+
return cRef;
|
|
48599
|
+
}
|
|
48600
|
+
|
|
48601
|
+
var _a;
|
|
48602
|
+
const tick = /*#__PURE__*/ (/* unused pure expression or super */ null && (Promise.resolve()));
|
|
48603
|
+
const queue = (/* unused pure expression or super */ null && ([]));
|
|
48604
|
+
let queued = false;
|
|
48605
|
+
const scheduler = (fn) => {
|
|
48606
|
+
queue.push(fn);
|
|
48607
|
+
if (!queued) {
|
|
48608
|
+
queued = true;
|
|
48609
|
+
tick.then(flush);
|
|
48610
|
+
}
|
|
48611
|
+
};
|
|
48612
|
+
const flush = () => {
|
|
48613
|
+
for (let i = 0; i < queue.length; i++) {
|
|
48614
|
+
queue[i]();
|
|
48615
|
+
}
|
|
48616
|
+
queue.length = 0;
|
|
48617
|
+
queued = false;
|
|
48618
|
+
};
|
|
48619
|
+
class DeferredComputedRefImpl {
|
|
48620
|
+
constructor(getter) {
|
|
48621
|
+
this.dep = undefined;
|
|
48622
|
+
this._dirty = true;
|
|
48623
|
+
this.__v_isRef = true;
|
|
48624
|
+
this[_a] = true;
|
|
48625
|
+
let compareTarget;
|
|
48626
|
+
let hasCompareTarget = false;
|
|
48627
|
+
let scheduled = false;
|
|
48628
|
+
this.effect = new ReactiveEffect(getter, (computedTrigger) => {
|
|
48629
|
+
if (this.dep) {
|
|
48630
|
+
if (computedTrigger) {
|
|
48631
|
+
compareTarget = this._value;
|
|
48632
|
+
hasCompareTarget = true;
|
|
48633
|
+
}
|
|
48634
|
+
else if (!scheduled) {
|
|
48635
|
+
const valueToCompare = hasCompareTarget ? compareTarget : this._value;
|
|
48636
|
+
scheduled = true;
|
|
48637
|
+
hasCompareTarget = false;
|
|
48638
|
+
scheduler(() => {
|
|
48639
|
+
if (this.effect.active && this._get() !== valueToCompare) {
|
|
48640
|
+
triggerRefValue(this);
|
|
48641
|
+
}
|
|
48642
|
+
scheduled = false;
|
|
48643
|
+
});
|
|
48644
|
+
}
|
|
48645
|
+
// chained upstream computeds are notified synchronously to ensure
|
|
48646
|
+
// value invalidation in case of sync access; normal effects are
|
|
48647
|
+
// deferred to be triggered in scheduler.
|
|
48648
|
+
for (const e of this.dep) {
|
|
48649
|
+
if (e.computed instanceof DeferredComputedRefImpl) {
|
|
48650
|
+
e.scheduler(true /* computedTrigger */);
|
|
48651
|
+
}
|
|
48652
|
+
}
|
|
48653
|
+
}
|
|
48654
|
+
this._dirty = true;
|
|
48655
|
+
});
|
|
48656
|
+
this.effect.computed = this;
|
|
48657
|
+
}
|
|
48658
|
+
_get() {
|
|
48659
|
+
if (this._dirty) {
|
|
48660
|
+
this._dirty = false;
|
|
48661
|
+
return (this._value = this.effect.run());
|
|
48662
|
+
}
|
|
48663
|
+
return this._value;
|
|
48664
|
+
}
|
|
48665
|
+
get value() {
|
|
48666
|
+
trackRefValue(this);
|
|
48667
|
+
// the computed ref may get wrapped by other proxies e.g. readonly() #3376
|
|
48668
|
+
return toRaw(this)._get();
|
|
48669
|
+
}
|
|
48670
|
+
}
|
|
48671
|
+
_a = "__v_isReadonly" /* IS_READONLY */;
|
|
48672
|
+
function deferredComputed(getter) {
|
|
48673
|
+
return new DeferredComputedRefImpl(getter);
|
|
48674
|
+
}
|
|
48675
|
+
|
|
48676
|
+
|
|
48677
|
+
|
|
47483
48678
|
;// CONCATENATED MODULE: ./node_modules/element-plus/es/utils/dom/scroll.mjs
|
|
47484
48679
|
|
|
47485
48680
|
|
|
@@ -47509,14 +48704,14 @@ const getScrollContainer = (el, isVertical) => {
|
|
|
47509
48704
|
return parent;
|
|
47510
48705
|
};
|
|
47511
48706
|
let scrollBarWidth;
|
|
47512
|
-
const getScrollBarWidth = () => {
|
|
48707
|
+
const getScrollBarWidth = (namespace) => {
|
|
47513
48708
|
var _a;
|
|
47514
48709
|
if (!shared/* isClient */.C5)
|
|
47515
48710
|
return 0;
|
|
47516
48711
|
if (scrollBarWidth !== void 0)
|
|
47517
48712
|
return scrollBarWidth;
|
|
47518
48713
|
const outer = document.createElement("div");
|
|
47519
|
-
outer.className =
|
|
48714
|
+
outer.className = `${namespace}-scrollbar__wrap`;
|
|
47520
48715
|
outer.style.visibility = "hidden";
|
|
47521
48716
|
outer.style.width = "100px";
|
|
47522
48717
|
outer.style.position = "absolute";
|
|
@@ -47567,11 +48762,15 @@ function scrollIntoView(container, selected) {
|
|
|
47567
48762
|
|
|
47568
48763
|
|
|
47569
48764
|
|
|
48765
|
+
|
|
48766
|
+
|
|
47570
48767
|
const useLockscreen = (trigger) => {
|
|
47571
48768
|
if (!(0,external_commonjs_vue_commonjs2_vue_root_Vue_.isRef)(trigger)) {
|
|
47572
48769
|
(0,error/* throwError */._)("[useLockscreen]", "You need to pass a ref param to this function");
|
|
47573
48770
|
}
|
|
47574
|
-
|
|
48771
|
+
const ns = (0,use_namespace/* useNamespace */.s)("popup");
|
|
48772
|
+
const hiddenCls = computed(() => ns.bm("parent", "hidden"));
|
|
48773
|
+
if (!shared/* isClient */.C5 || (0,style/* hasClass */.pv)(document.body, hiddenCls.value)) {
|
|
47575
48774
|
return;
|
|
47576
48775
|
}
|
|
47577
48776
|
let scrollBarWidth = 0;
|
|
@@ -47579,7 +48778,7 @@ const useLockscreen = (trigger) => {
|
|
|
47579
48778
|
let bodyPaddingRight = "0";
|
|
47580
48779
|
let computedBodyPaddingRight = 0;
|
|
47581
48780
|
const cleanup = () => {
|
|
47582
|
-
(0,style/* removeClass */.IV)(document.body,
|
|
48781
|
+
(0,style/* removeClass */.IV)(document.body, hiddenCls.value);
|
|
47583
48782
|
if (withoutHiddenClass) {
|
|
47584
48783
|
document.body.style.paddingRight = bodyPaddingRight;
|
|
47585
48784
|
}
|
|
@@ -47589,18 +48788,18 @@ const useLockscreen = (trigger) => {
|
|
|
47589
48788
|
cleanup();
|
|
47590
48789
|
return;
|
|
47591
48790
|
}
|
|
47592
|
-
withoutHiddenClass = !(0,style/* hasClass */.pv)(document.body,
|
|
48791
|
+
withoutHiddenClass = !(0,style/* hasClass */.pv)(document.body, hiddenCls.value);
|
|
47593
48792
|
if (withoutHiddenClass) {
|
|
47594
48793
|
bodyPaddingRight = document.body.style.paddingRight;
|
|
47595
48794
|
computedBodyPaddingRight = Number.parseInt((0,style/* getStyle */.C2)(document.body, "paddingRight"), 10);
|
|
47596
48795
|
}
|
|
47597
|
-
scrollBarWidth = getScrollBarWidth();
|
|
48796
|
+
scrollBarWidth = getScrollBarWidth(ns.namespace.value);
|
|
47598
48797
|
const bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
|
|
47599
48798
|
const bodyOverflowY = (0,style/* getStyle */.C2)(document.body, "overflowY");
|
|
47600
48799
|
if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === "scroll") && withoutHiddenClass) {
|
|
47601
48800
|
document.body.style.paddingRight = `${computedBodyPaddingRight + scrollBarWidth}px`;
|
|
47602
48801
|
}
|
|
47603
|
-
(0,style/* addClass */.cn)(document.body,
|
|
48802
|
+
(0,style/* addClass */.cn)(document.body, hiddenCls.value);
|
|
47604
48803
|
});
|
|
47605
48804
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onScopeDispose)(() => cleanup());
|
|
47606
48805
|
};
|
|
@@ -47654,7 +48853,6 @@ const useRestoreActive = (toggle, initialFocus) => {
|
|
|
47654
48853
|
|
|
47655
48854
|
|
|
47656
48855
|
|
|
47657
|
-
|
|
47658
48856
|
|
|
47659
48857
|
|
|
47660
48858
|
const src_sfc_main = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
@@ -47812,12 +49010,12 @@ const src_sfc_main = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComp
|
|
|
47812
49010
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(async () => {
|
|
47813
49011
|
await (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
47814
49012
|
if (props.closeOnHashChange) {
|
|
47815
|
-
|
|
49013
|
+
window.addEventListener("hashchange", doClose);
|
|
47816
49014
|
}
|
|
47817
49015
|
});
|
|
47818
49016
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
|
|
47819
49017
|
if (props.closeOnHashChange) {
|
|
47820
|
-
|
|
49018
|
+
window.removeEventListener("hashchange", doClose);
|
|
47821
49019
|
}
|
|
47822
49020
|
});
|
|
47823
49021
|
function doClose() {
|
|
@@ -49021,15 +50219,15 @@ const paginationDefault = {
|
|
|
49021
50219
|
}));
|
|
49022
50220
|
;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=script&lang=js
|
|
49023
50221
|
|
|
49024
|
-
;// 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=
|
|
50222
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtTable/index.vue?vue&type=style&index=0&id=0acf8680&lang=scss&scoped=true
|
|
49025
50223
|
// extracted by mini-css-extract-plugin
|
|
49026
50224
|
|
|
49027
|
-
;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=style&index=0&id=
|
|
50225
|
+
;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=style&index=0&id=0acf8680&lang=scss&scoped=true
|
|
49028
50226
|
|
|
49029
|
-
;// 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=
|
|
50227
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/packages/JwtTable/index.vue?vue&type=style&index=1&id=0acf8680&lang=scss
|
|
49030
50228
|
// extracted by mini-css-extract-plugin
|
|
49031
50229
|
|
|
49032
|
-
;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=style&index=1&id=
|
|
50230
|
+
;// CONCATENATED MODULE: ./src/packages/JwtTable/index.vue?vue&type=style&index=1&id=0acf8680&lang=scss
|
|
49033
50231
|
|
|
49034
50232
|
// EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
|
|
49035
50233
|
var exportHelper = __webpack_require__(3744);
|
|
@@ -49042,7 +50240,7 @@ var exportHelper = __webpack_require__(3744);
|
|
|
49042
50240
|
|
|
49043
50241
|
|
|
49044
50242
|
|
|
49045
|
-
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtTablevue_type_script_lang_js, [['render',render],['__scopeId',"data-v-
|
|
50243
|
+
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtTablevue_type_script_lang_js, [['render',render],['__scopeId',"data-v-0acf8680"]])
|
|
49046
50244
|
|
|
49047
50245
|
/* harmony default export */ var JwtTable = (__exports__);
|
|
49048
50246
|
|
|
@@ -50226,16 +51424,16 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(JwtUploadImagev
|
|
|
50226
51424
|
|
|
50227
51425
|
var map = {
|
|
50228
51426
|
"./JwtCascaderArea/index.vue": 3724,
|
|
50229
|
-
"./JwtEditor/index.vue":
|
|
51427
|
+
"./JwtEditor/index.vue": 8007,
|
|
50230
51428
|
"./JwtForm/index.vue": 4751,
|
|
50231
51429
|
"./JwtHeaderButton/index.vue": 6886,
|
|
50232
51430
|
"./JwtIcon/index.vue": 8916,
|
|
50233
51431
|
"./JwtIconSelect/index.vue": 7047,
|
|
50234
51432
|
"./JwtImage/index.vue": 8328,
|
|
50235
|
-
"./JwtInput/index.vue":
|
|
51433
|
+
"./JwtInput/index.vue": 1914,
|
|
50236
51434
|
"./JwtRateIcon/index.vue": 5939,
|
|
50237
51435
|
"./JwtSelectServer/index.vue": 1279,
|
|
50238
|
-
"./JwtTable/index.vue":
|
|
51436
|
+
"./JwtTable/index.vue": 3352,
|
|
50239
51437
|
"./JwtTableButton/index.vue": 9033,
|
|
50240
51438
|
"./JwtTableOnly/index.vue": 4016,
|
|
50241
51439
|
"./JwtTags/index.vue": 1382,
|
|
@@ -63820,7 +65018,9 @@ const normalizeOptions = (params) => {
|
|
|
63820
65018
|
...messageDefaults,
|
|
63821
65019
|
...options
|
|
63822
65020
|
};
|
|
63823
|
-
if (
|
|
65021
|
+
if (!normalized.appendTo) {
|
|
65022
|
+
normalized.appendTo = document.body;
|
|
65023
|
+
} else if ((0,shared_esm_bundler/* isString */.HD)(normalized.appendTo)) {
|
|
63824
65024
|
let appendTo = document.querySelector(normalized.appendTo);
|
|
63825
65025
|
if (!(0,types/* isElement */.kK)(appendTo)) {
|
|
63826
65026
|
(0,error/* debugWarn */.N)("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body.");
|
|
@@ -64196,14 +65396,18 @@ const useNamespace = (block) => {
|
|
|
64196
65396
|
const cssVar = (object) => {
|
|
64197
65397
|
const styles = {};
|
|
64198
65398
|
for (const key in object) {
|
|
64199
|
-
|
|
65399
|
+
if (object[key]) {
|
|
65400
|
+
styles[`--${namespace.value}-${key}`] = object[key];
|
|
65401
|
+
}
|
|
64200
65402
|
}
|
|
64201
65403
|
return styles;
|
|
64202
65404
|
};
|
|
64203
65405
|
const cssVarBlock = (object) => {
|
|
64204
65406
|
const styles = {};
|
|
64205
65407
|
for (const key in object) {
|
|
64206
|
-
|
|
65408
|
+
if (object[key]) {
|
|
65409
|
+
styles[`--${namespace.value}-${block}-${key}`] = object[key];
|
|
65410
|
+
}
|
|
64207
65411
|
}
|
|
64208
65412
|
return styles;
|
|
64209
65413
|
};
|