@bscjc/webui 0.0.20 → 1.0.0
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/README.md +56 -0
- package/dist/es/index.mjs +12 -12
- package/dist/index.css +2 -2
- package/dist/lib/index.cjs +6 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,2 +1,58 @@
|
|
|
1
1
|
# @bscjc/webui
|
|
2
2
|
一个 Vue3 组件库,使用 Vite,Element Plus 和 TypeScript 构建的组件库
|
|
3
|
+
|
|
4
|
+
## 组件目录介绍
|
|
5
|
+
|
|
6
|
+
@bscjc/webui 是一个基于 Element Plus 的 Vue3 组件库,包含以下组件:
|
|
7
|
+
|
|
8
|
+
| 组件名 | 说明 |
|
|
9
|
+
| ------------------ | ---------------------------------------------- |
|
|
10
|
+
| JcListLayout | 列表布局组件,支持自定义顶部和底部内容 |
|
|
11
|
+
| JcSelectQuery | 下拉选择器组件,支持多选、单选、搜索和全选功能 |
|
|
12
|
+
| JcDatePicker | 日期选择器组件,支持日期范围和月份范围选择 |
|
|
13
|
+
| JcInputSwitch | 输入切换组件,支持多字段切换输入 |
|
|
14
|
+
| JcInputComplex | 复杂输入切换组件,支持单行和多行文本输入 |
|
|
15
|
+
| JcTagQuery | 标签查询组件,用于展示和管理查询标签 |
|
|
16
|
+
| JcMoreQueryContain | 查询容器,用于包裹更多查询条件 |
|
|
17
|
+
|
|
18
|
+
## 安装使用说明
|
|
19
|
+
|
|
20
|
+
### 安装
|
|
21
|
+
|
|
22
|
+
```shell
|
|
23
|
+
npm i @bscjc/webui
|
|
24
|
+
// 或者
|
|
25
|
+
pnpm add @bscjc/webui
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### 完整导入
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
// src/main.ts
|
|
32
|
+
import { createApp } from "vue";
|
|
33
|
+
import App from "./App.vue";
|
|
34
|
+
import JcWebui from "@bscjc/webui";
|
|
35
|
+
import "@bscjc/webui/dist/index.css";
|
|
36
|
+
|
|
37
|
+
const app = createApp(App);
|
|
38
|
+
app.use(JcWebui);
|
|
39
|
+
app.mount("#app");
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### 按需导入
|
|
43
|
+
|
|
44
|
+
```vue
|
|
45
|
+
<template>
|
|
46
|
+
<JcSelectQuery
|
|
47
|
+
ref="selectRef"
|
|
48
|
+
field="selectList"
|
|
49
|
+
:options="options"
|
|
50
|
+
@change="(val:any) => console.log(val)"
|
|
51
|
+
>
|
|
52
|
+
</JcSelectQuery>
|
|
53
|
+
</template>
|
|
54
|
+
|
|
55
|
+
<script setup>
|
|
56
|
+
import { JcSelectQuery } from "@bscjc/webui";
|
|
57
|
+
</script>
|
|
58
|
+
```
|
package/dist/es/index.mjs
CHANGED
|
@@ -2774,7 +2774,7 @@ const [Yu, Ie] = Wu(
|
|
|
2774
2774
|
v === -1 ? t.tags.push(g) : t.tags.splice(v, 1, g);
|
|
2775
2775
|
}
|
|
2776
2776
|
function i(o, l) {
|
|
2777
|
-
t.queryForm[o.key] = void 0, l ? t.tags.splice(l, 1) : t.tags = t.tags.filter((u) => u.key !== o.key);
|
|
2777
|
+
o.key && t.tags.findIndex((u) => u.key === o.key) !== -1 && (t.queryForm[o.key] = void 0, l ? t.tags.splice(l, 1) : t.tags = t.tags.filter((u) => u.key !== o.key));
|
|
2778
2778
|
}
|
|
2779
2779
|
function s() {
|
|
2780
2780
|
t.tags.forEach((o) => {
|
|
@@ -3112,7 +3112,7 @@ const [Yu, Ie] = Wu(
|
|
|
3112
3112
|
setup(e, { expose: t, emit: r }) {
|
|
3113
3113
|
const n = e, i = r, s = F([]), a = F([]), o = F(""), l = F(""), { state: u, setQuery: c } = Ie(), p = () => {
|
|
3114
3114
|
n.fieldList.forEach((d) => {
|
|
3115
|
-
c(d.value,
|
|
3115
|
+
c(d.value, void 0);
|
|
3116
3116
|
});
|
|
3117
3117
|
}, h = (d) => {
|
|
3118
3118
|
p(), c(d, s.value), i("fieldChange", d);
|
|
@@ -3212,7 +3212,7 @@ const [Yu, Ie] = Wu(
|
|
|
3212
3212
|
setup(e, { expose: t, emit: r }) {
|
|
3213
3213
|
const n = e, i = r, s = F(""), a = F(""), o = F(""), l = F(""), { state: u, setQuery: c } = Ie(), p = () => {
|
|
3214
3214
|
n.fieldList.forEach((m) => {
|
|
3215
|
-
c(m.value,
|
|
3215
|
+
c(m.value, void 0);
|
|
3216
3216
|
});
|
|
3217
3217
|
}, h = () => {
|
|
3218
3218
|
s.value = "", p();
|
|
@@ -3335,7 +3335,7 @@ const [Yu, Ie] = Wu(
|
|
|
3335
3335
|
}
|
|
3336
3336
|
), h = F(""), { state: g, setQuery: v, addTag: f, reduceTag: d } = Ie(), m = {}, _ = {};
|
|
3337
3337
|
n.fieldList.forEach((E) => {
|
|
3338
|
-
m[E.value] =
|
|
3338
|
+
m[E.value] = void 0, _[E.value + "List"] = [];
|
|
3339
3339
|
});
|
|
3340
3340
|
const T = (E) => {
|
|
3341
3341
|
u.value = !1, A(), i("fieldChange", E);
|
|
@@ -3343,12 +3343,12 @@ const [Yu, Ie] = Wu(
|
|
|
3343
3343
|
g.queryForm[c.value] ? h.value = g.queryForm[c.value].join(`
|
|
3344
3344
|
`) : h.value = "";
|
|
3345
3345
|
}, z = () => {
|
|
3346
|
-
s.value = "", v(o.value,
|
|
3346
|
+
s.value = "", v(o.value, void 0), L();
|
|
3347
3347
|
}, K = () => {
|
|
3348
3348
|
for (const E in m)
|
|
3349
|
-
v(E,
|
|
3349
|
+
v(E, void 0);
|
|
3350
3350
|
}, j = () => {
|
|
3351
|
-
h.value = "", a.value = s.value, l.value = o.value, K(), v(c.value,
|
|
3351
|
+
h.value = "", a.value = s.value, l.value = o.value, K(), v(c.value, void 0), d({ key: c.value }), v(o.value, s.value.trim());
|
|
3352
3352
|
}, L = () => {
|
|
3353
3353
|
const E = h.value.split(`
|
|
3354
3354
|
`).filter((w) => !V(w));
|
|
@@ -3373,7 +3373,7 @@ const [Yu, Ie] = Wu(
|
|
|
3373
3373
|
value: w
|
|
3374
3374
|
});
|
|
3375
3375
|
} else
|
|
3376
|
-
v(c.value,
|
|
3376
|
+
v(c.value, void 0), d({ key: c.value });
|
|
3377
3377
|
R();
|
|
3378
3378
|
}, R = () => {
|
|
3379
3379
|
u.value = !1;
|
|
@@ -3385,7 +3385,7 @@ const [Yu, Ie] = Wu(
|
|
|
3385
3385
|
`), L();
|
|
3386
3386
|
});
|
|
3387
3387
|
}, y = () => {
|
|
3388
|
-
!V(s.value) && (s.value !== a.value || o.value !== l.value) ? (a.value = s.value, l.value = o.value, K(), v(c.value,
|
|
3388
|
+
!V(s.value) && (s.value !== a.value || o.value !== l.value) ? (a.value = s.value, l.value = o.value, K(), v(c.value, void 0), d({ key: c.value }), v(o.value, s.value.trim())) : V(s.value) && (a.value = s.value, v(o.value, void 0));
|
|
3389
3389
|
};
|
|
3390
3390
|
se(
|
|
3391
3391
|
() => n.fieldList,
|
|
@@ -3645,11 +3645,11 @@ const [Yu, Ie] = Wu(
|
|
|
3645
3645
|
setup(e, { expose: t }) {
|
|
3646
3646
|
const r = F(!1), n = F({}), i = e, { state: s, setQuery: a, addTag: o, reduceTag: l } = Ie(), u = () => {
|
|
3647
3647
|
r.value = !r.value, r.value && i.fieldList.forEach((f) => {
|
|
3648
|
-
n.value[f.value] = s.queryForm[f.value] ||
|
|
3648
|
+
n.value[f.value] = s.queryForm[f.value] || void 0;
|
|
3649
3649
|
});
|
|
3650
3650
|
}, c = () => {
|
|
3651
3651
|
n.value = {}, i.fieldList.forEach((f) => {
|
|
3652
|
-
a(f.value,
|
|
3652
|
+
a(f.value, void 0), l({ key: f.value });
|
|
3653
3653
|
}), r.value = !1;
|
|
3654
3654
|
}, p = (f, d) => {
|
|
3655
3655
|
var m;
|
|
@@ -3664,7 +3664,7 @@ const [Yu, Ie] = Wu(
|
|
|
3664
3664
|
});
|
|
3665
3665
|
}, h = () => {
|
|
3666
3666
|
for (const f in n.value) {
|
|
3667
|
-
a(f, n.value[f] ||
|
|
3667
|
+
a(f, n.value[f] || void 0);
|
|
3668
3668
|
const d = i.fieldList.find((m) => m.value === f);
|
|
3669
3669
|
d === void 0 && Mr.warning("传入的fieldList和表单绑定的字段不匹配"), p(f, d.label);
|
|
3670
3670
|
}
|
package/dist/index.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-recycle-scroller__slot{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-recycle-scroller__item-wrapper{-webkit-box-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex:1;flex:1;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{left:0;position:absolute;top:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{background-color:transparent;border:none;opacity:0}.resize-observer[data-v-b329ee4c],.resize-observer[data-v-b329ee4c] object{display:block;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:-1}.ak-relative{position:relative}.jc-select-popper{min-width:400px!important}.jc-select-popper .el-select-pop-search-container{padding:4px 8px;position:relative}.jc-select-popper .el-select-pop-search-container .selcet-icon{color:#a6abb4;height:14px;top:12px;width:14px}.jc-select-popper .el-select-pop-search-container .search-icon{left:10px;line-height:normal;position:absolute}.jc-select-popper .el-select-pop-search-container .circle-icon{line-height:normal;position:absolute;right:14px}.jc-select-popper .el-select-pop-search-container .circle-icon:hover{color:#005bf5;cursor:pointer}.jc-select-popper .el-select-pop__input{border-radius:0;border-style:none none solid;border-bottom:1px solid #d9dbde;box-shadow:none;box-sizing:border-box;height:32px;line-height:32px;overflow:hidden;padding-left:24px;width:100%}.jc-select-popper .el-select-pop__input:hover{border-bottom-color:#888c94}.jc-select-popper .el-select-pop__input:focus{border-bottom-color:#005bf5;outline:0}.jc-select-popper .el-select-dropdown__wrap{max-height:100%!important}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item{box-sizing:border-box;color:#33363c;cursor:pointer;font-size:12px;height:32px;line-height:32px;list-style:none;overflow:hidden;padding:0 12px;text-overflow:ellipsis;white-space:nowrap}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item .el-checkbox{width:100%}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item .el-checkbox .el-checkbox__label{flex:1;overflow:hidden;text-overflow:ellipsis}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item:hover{background-color:#ecf5ff}.jc-select-popper .el-select-dropdown__empty{color:#999;font-size:12px;margin:0;padding:10px 0;text-align:center}.jc-select-popper .custom-multi-footer{align-items:center;display:flex;justify-content:space-between;padding-right:8px}.jc-select-popper .shift-tips{color:#a6abb4;margin-left:8px}.jc-select-popper .counts{margin-left:8px}.jc-select .el-select__wrapper{font-size:12px}.jc-select .el-select__tags{height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jc-date-picker{align-items:center;display:flex;justify-content:flex-start}.jc-date-picker .select-field{display:flex;max-width:100px!important;min-width:60px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:auto!important}.jc-date-picker .select-field .el-select__prefix{color:#000;font-size:12px;max-width:50px!important;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.jc-date-picker .select-field .el-input__inner{width:0}.jc-date-picker .el-date-editor{border-bottom-left-radius:0;border-left:none!important;border-top-left-radius:0;margin-left:-1px}.jc-date-picker .el-select__wrapper{border-bottom-right-radius:0;border-top-right-radius:0;font-size:12px;max-width:100px;padding:4px 12px 4px 8px}.jc-date-picker .el-select__placeholder{font-size:12px}.el-popover.jc-input-pop .popover-body{display:flex;flex-direction:column;height:100%;left:0;position:absolute;top:0;width:100%}.el-popover.jc-input-pop{border:1px solid #e6e8eb;border-radius:4px;box-shadow:0 8px 16px #00000029;height:240px;line-height:18px;max-width:480px;min-width:auto;padding:12px;text-align:left}.el-popover.jc-input-pop .popover-body .popover-textarea{flex:1;min-height:0}.el-popover.jc-input-pop .popover-body .popover-textarea .el-textarea__inner{border:none!important;color:#333;font-size:12px;font-weight:400;height:100%;line-height:20px;outline:0;overflow:auto;padding:12px;resize:none;width:100%}.el-popover.jc-input-pop .popover-body .popover-btn{align-items:center;box-shadow:0 -1px #e6e8eb;display:flex;margin-top:-1px;padding:8px 12px;z-index:999}.el-popover.jc-input-pop .popover-body .popover-btn .popover-btn-right{margin-left:auto}[data-v-1420a179] .el-tag__content{max-height:24px;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical}.moreQuery-pop{border:1px solid #e6e8eb;border-radius:4px;box-shadow:0 8px 16px 0 rg;line-height:18px;min-width:auto;padding:12px;text-align:left}.el-popover.moreQuery-pop .popover-btn{align-items:center;display:flex;padding:4px 4px 0 10px;z-index:999}.el-popover.moreQuery-pop .popover-btn .popover-btn-right{margin-left:auto}.jc-list-layout{background:#ebeff2;display:flex;flex-direction:column;height:100%;width:100%}.jc-list-layout .top-card{border:none;box-shadow:none!important}.jc-list-layout .top-card .el-card__header{background-color:#fafafa;border-bottom:none;padding:2px 0 2px 12px}.jc-list-layout .top-card .el-card__body{padding:10px 10px 4px}.jc-list-layout .bottom-header{display:flex;flex-wrap:wrap;font-size:12px;padding:8px 18px 0}.jc-list-layout .bottom-card{flex:1;margin:6px 10px 0;min-height:0}.jc-list-layout .bottom-card .el-card__body{height:100%;overflow:auto;padding:0}.jc-list-layout .toolCss{padding-left:10px;padding-top:8px}.jc-list-layout .inputClass{width:240px}.jc-list-layout .vxe-toolbar{display:inline}.jc-list-layout .vxe-toolbar .vxe-buttons--wrapper{float:left}.jc-list-layout .vxe-toolbar .vxe-tools--operate{float:right;padding-right:
|
|
1
|
+
.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-recycle-scroller__slot{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-recycle-scroller__item-wrapper{-webkit-box-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex:1;flex:1;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{left:0;position:absolute;top:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{background-color:transparent;border:none;opacity:0}.resize-observer[data-v-b329ee4c],.resize-observer[data-v-b329ee4c] object{display:block;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:-1}.ak-relative{position:relative}.jc-select-popper{min-width:400px!important}.jc-select-popper .el-select-pop-search-container{padding:4px 8px;position:relative}.jc-select-popper .el-select-pop-search-container .selcet-icon{color:#a6abb4;height:14px;top:12px;width:14px}.jc-select-popper .el-select-pop-search-container .search-icon{left:10px;line-height:normal;position:absolute}.jc-select-popper .el-select-pop-search-container .circle-icon{line-height:normal;position:absolute;right:14px}.jc-select-popper .el-select-pop-search-container .circle-icon:hover{color:#005bf5;cursor:pointer}.jc-select-popper .el-select-pop__input{border-radius:0;border-style:none none solid;border-bottom:1px solid #d9dbde;box-shadow:none;box-sizing:border-box;height:32px;line-height:32px;overflow:hidden;padding-left:24px;width:100%}.jc-select-popper .el-select-pop__input:hover{border-bottom-color:#888c94}.jc-select-popper .el-select-pop__input:focus{border-bottom-color:#005bf5;outline:0}.jc-select-popper .el-select-dropdown__wrap{max-height:100%!important}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item{box-sizing:border-box;color:#33363c;cursor:pointer;font-size:12px;height:32px;line-height:32px;list-style:none;overflow:hidden;padding:0 12px;text-overflow:ellipsis;white-space:nowrap}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item .el-checkbox{width:100%}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item .el-checkbox .el-checkbox__label{flex:1;overflow:hidden;text-overflow:ellipsis}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item:hover{background-color:#ecf5ff}.jc-select-popper .el-select-dropdown__empty{color:#999;font-size:12px;margin:0;padding:10px 0;text-align:center}.jc-select-popper .custom-multi-footer{align-items:center;display:flex;justify-content:space-between;padding-right:8px}.jc-select-popper .shift-tips{color:#a6abb4;margin-left:8px}.jc-select-popper .counts{margin-left:8px}.jc-select .el-select__wrapper{font-size:12px}.jc-select .el-select__tags{height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jc-date-picker{align-items:center;display:flex;justify-content:flex-start}.jc-date-picker .select-field{display:flex;max-width:100px!important;min-width:60px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:auto!important}.jc-date-picker .select-field .el-select__prefix{color:#000;font-size:12px;max-width:50px!important;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.jc-date-picker .select-field .el-input__inner{width:0}.jc-date-picker .el-date-editor{border-bottom-left-radius:0;border-left:none!important;border-top-left-radius:0;margin-left:-1px}.jc-date-picker .el-select__wrapper{border-bottom-right-radius:0;border-top-right-radius:0;font-size:12px;max-width:100px;padding:4px 12px 4px 8px}.jc-date-picker .el-select__placeholder{font-size:12px}.el-popover.jc-input-pop .popover-body{display:flex;flex-direction:column;height:100%;left:0;position:absolute;top:0;width:100%}.el-popover.jc-input-pop{border:1px solid #e6e8eb;border-radius:4px;box-shadow:0 8px 16px #00000029;height:240px;line-height:18px;max-width:480px;min-width:auto;padding:12px;text-align:left}.el-popover.jc-input-pop .popover-body .popover-textarea{flex:1;min-height:0}.el-popover.jc-input-pop .popover-body .popover-textarea .el-textarea__inner{border:none!important;color:#333;font-size:12px;font-weight:400;height:100%;line-height:20px;outline:0;overflow:auto;padding:12px;resize:none;width:100%}.el-popover.jc-input-pop .popover-body .popover-btn{align-items:center;box-shadow:0 -1px #e6e8eb;display:flex;margin-top:-1px;padding:8px 12px;z-index:999}.el-popover.jc-input-pop .popover-body .popover-btn .popover-btn-right{margin-left:auto}[data-v-1420a179] .el-tag__content{max-height:24px;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical}.moreQuery-pop{border:1px solid #e6e8eb;border-radius:4px;box-shadow:0 8px 16px 0 rg;line-height:18px;min-width:auto;padding:12px;text-align:left}.el-popover.moreQuery-pop .popover-btn{align-items:center;display:flex;padding:4px 4px 0 10px;z-index:999}.el-popover.moreQuery-pop .popover-btn .popover-btn-right{margin-left:auto}.jc-list-layout{background:#ebeff2;display:flex;flex-direction:column;height:100%;width:100%}.jc-list-layout .top-card{border:none;box-shadow:none!important}.jc-list-layout .top-card .el-card__header{background-color:#fafafa;border-bottom:none;padding:2px 0 2px 12px}.jc-list-layout .top-card .el-card__body{padding:10px 10px 4px}.jc-list-layout .bottom-header{display:flex;flex-wrap:wrap;font-size:12px;padding:8px 18px 0}.jc-list-layout .bottom-card{flex:1;margin:6px 10px 0;min-height:0}.jc-list-layout .bottom-card .el-card__body{height:100%;overflow:auto;padding:0}.jc-list-layout .toolCss{padding-left:10px;padding-top:8px}.jc-list-layout .inputClass{width:240px}.jc-list-layout .vxe-toolbar{display:inline}.jc-list-layout .vxe-toolbar .vxe-buttons--wrapper{float:left}.jc-list-layout .vxe-toolbar .vxe-tools--operate{float:right;padding-right:0;padding-top:0}.jc-input.el-input-group{align-items:flex-start;display:flex}.jc-input{font-size:12px!important}.jc-input .el-input-group__prepend{background-color:var(--el-fill-color-blank);border-bottom-right-radius:0;border-top-right-radius:0;margin-right:0;min-height:auto}.jc-input .el-input-group__prepend .el-select__wrapper{font-size:12px;max-width:100px;padding:4px 8px}.jc-input .el-input-group__prepend .el-input__wrapper{box-shadow:none!important}.jc-input .suffixContent{align-items:center;display:flex;justify-content:center}.jc-input .el-input__icon{box-sizing:border-box;color:#353638;cursor:pointer;display:inline-block;line-height:1;text-align:center}.jc-input .el-icon{font-size:14px;font-weight:600}.jc-input .el-textarea{color:#0b1019;display:inline-block;font-size:12px;position:relative;vertical-align:bottom;width:100%}.jc-input .el-select--small .el-select__wrapper{line-height:1!important}.jc-input .select-field{display:flex;height:100%;max-width:100px!important;min-width:60px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:auto!important}.jc-input .select-field .el-select__prefix{color:#000;font-size:12px;max-width:50px!important;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.jc-input .select-field .el-input__inner{width:0}
|
|
2
2
|
|
|
3
|
-
.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-recycle-scroller__slot{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-recycle-scroller__item-wrapper{-webkit-box-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex:1;flex:1;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{left:0;position:absolute;top:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{background-color:transparent;border:none;opacity:0}.resize-observer[data-v-b329ee4c],.resize-observer[data-v-b329ee4c] object{display:block;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:-1}.ak-relative{position:relative}.jc-select-popper{min-width:400px!important}.jc-select-popper .el-select-pop-search-container{padding:4px 8px;position:relative}.jc-select-popper .el-select-pop-search-container .selcet-icon{color:#a6abb4;height:14px;top:12px;width:14px}.jc-select-popper .el-select-pop-search-container .search-icon{left:10px;line-height:normal;position:absolute}.jc-select-popper .el-select-pop-search-container .circle-icon{line-height:normal;position:absolute;right:14px}.jc-select-popper .el-select-pop-search-container .circle-icon:hover{color:#005bf5;cursor:pointer}.jc-select-popper .el-select-pop__input{border-radius:0;border-style:none none solid;border-bottom:1px solid #d9dbde;box-shadow:none;box-sizing:border-box;height:32px;line-height:32px;overflow:hidden;padding-left:24px;width:100%}.jc-select-popper .el-select-pop__input:hover{border-bottom-color:#888c94}.jc-select-popper .el-select-pop__input:focus{border-bottom-color:#005bf5;outline:0}.jc-select-popper .el-select-dropdown__wrap{max-height:100%!important}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item{box-sizing:border-box;color:#33363c;cursor:pointer;font-size:12px;height:32px;line-height:32px;list-style:none;overflow:hidden;padding:0 12px;text-overflow:ellipsis;white-space:nowrap}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item .el-checkbox{width:100%}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item .el-checkbox .el-checkbox__label{flex:1;overflow:hidden;text-overflow:ellipsis}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item:hover{background-color:#ecf5ff}.jc-select-popper .el-select-dropdown__empty{color:#999;font-size:12px;margin:0;padding:10px 0;text-align:center}.jc-select-popper .custom-multi-footer{align-items:center;display:flex;justify-content:space-between;padding-right:8px}.jc-select-popper .shift-tips{color:#a6abb4;margin-left:8px}.jc-select-popper .counts{margin-left:8px}.jc-select .el-select__wrapper{font-size:12px}.jc-select .el-select__tags{height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jc-date-picker{align-items:center;display:flex;justify-content:flex-start}.jc-date-picker .select-field{display:flex;max-width:100px!important;min-width:60px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:auto!important}.jc-date-picker .select-field .el-select__prefix{color:#000;font-size:12px;max-width:50px!important;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.jc-date-picker .select-field .el-input__inner{width:0}.jc-date-picker .el-date-editor{border-bottom-left-radius:0;border-left:none!important;border-top-left-radius:0;margin-left:-1px}.jc-date-picker .el-select__wrapper{border-bottom-right-radius:0;border-top-right-radius:0;font-size:12px;max-width:100px;padding:4px 12px 4px 8px}.jc-date-picker .el-select__placeholder{font-size:12px}.el-popover.jc-input-pop .popover-body{display:flex;flex-direction:column;height:100%;left:0;position:absolute;top:0;width:100%}.el-popover.jc-input-pop{border:1px solid #e6e8eb;border-radius:4px;box-shadow:0 8px 16px #00000029;height:240px;line-height:18px;max-width:480px;min-width:auto;padding:12px;text-align:left}.el-popover.jc-input-pop .popover-body .popover-textarea{flex:1;min-height:0}.el-popover.jc-input-pop .popover-body .popover-textarea .el-textarea__inner{border:none!important;color:#333;font-size:12px;font-weight:400;height:100%;line-height:20px;outline:0;overflow:auto;padding:12px;resize:none;width:100%}.el-popover.jc-input-pop .popover-body .popover-btn{align-items:center;box-shadow:0 -1px #e6e8eb;display:flex;margin-top:-1px;padding:8px 12px;z-index:999}.el-popover.jc-input-pop .popover-body .popover-btn .popover-btn-right{margin-left:auto}[data-v-1420a179] .el-tag__content{max-height:24px;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical}.moreQuery-pop{border:1px solid #e6e8eb;border-radius:4px;box-shadow:0 8px 16px 0 rg;line-height:18px;min-width:auto;padding:12px;text-align:left}.el-popover.moreQuery-pop .popover-btn{align-items:center;display:flex;padding:4px 4px 0 10px;z-index:999}.el-popover.moreQuery-pop .popover-btn .popover-btn-right{margin-left:auto}.jc-list-layout{background:#ebeff2;display:flex;flex-direction:column;height:100%;width:100%}.jc-list-layout .top-card{border:none;box-shadow:none!important}.jc-list-layout .top-card .el-card__header{background-color:#fafafa;border-bottom:none;padding:2px 0 2px 12px}.jc-list-layout .top-card .el-card__body{padding:10px 10px 4px}.jc-list-layout .bottom-header{display:flex;flex-wrap:wrap;font-size:12px;padding:8px 18px 0}.jc-list-layout .bottom-card{flex:1;margin:6px 10px 0;min-height:0}.jc-list-layout .bottom-card .el-card__body{height:100%;overflow:auto;padding:0}.jc-list-layout .toolCss{padding-left:10px;padding-top:8px}.jc-list-layout .inputClass{width:240px}.jc-list-layout .vxe-toolbar{display:inline}.jc-list-layout .vxe-toolbar .vxe-buttons--wrapper{float:left}.jc-list-layout .vxe-toolbar .vxe-tools--operate{float:right;padding-right:
|
|
3
|
+
.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-recycle-scroller__slot{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-recycle-scroller__item-wrapper{-webkit-box-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex:1;flex:1;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{left:0;position:absolute;top:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{background-color:transparent;border:none;opacity:0}.resize-observer[data-v-b329ee4c],.resize-observer[data-v-b329ee4c] object{display:block;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:-1}.ak-relative{position:relative}.jc-select-popper{min-width:400px!important}.jc-select-popper .el-select-pop-search-container{padding:4px 8px;position:relative}.jc-select-popper .el-select-pop-search-container .selcet-icon{color:#a6abb4;height:14px;top:12px;width:14px}.jc-select-popper .el-select-pop-search-container .search-icon{left:10px;line-height:normal;position:absolute}.jc-select-popper .el-select-pop-search-container .circle-icon{line-height:normal;position:absolute;right:14px}.jc-select-popper .el-select-pop-search-container .circle-icon:hover{color:#005bf5;cursor:pointer}.jc-select-popper .el-select-pop__input{border-radius:0;border-style:none none solid;border-bottom:1px solid #d9dbde;box-shadow:none;box-sizing:border-box;height:32px;line-height:32px;overflow:hidden;padding-left:24px;width:100%}.jc-select-popper .el-select-pop__input:hover{border-bottom-color:#888c94}.jc-select-popper .el-select-pop__input:focus{border-bottom-color:#005bf5;outline:0}.jc-select-popper .el-select-dropdown__wrap{max-height:100%!important}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item{box-sizing:border-box;color:#33363c;cursor:pointer;font-size:12px;height:32px;line-height:32px;list-style:none;overflow:hidden;padding:0 12px;text-overflow:ellipsis;white-space:nowrap}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item .el-checkbox{width:100%}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item .el-checkbox .el-checkbox__label{flex:1;overflow:hidden;text-overflow:ellipsis}.jc-select-popper .el-select-dropdown__wrap .el-select-dropdown__item:hover{background-color:#ecf5ff}.jc-select-popper .el-select-dropdown__empty{color:#999;font-size:12px;margin:0;padding:10px 0;text-align:center}.jc-select-popper .custom-multi-footer{align-items:center;display:flex;justify-content:space-between;padding-right:8px}.jc-select-popper .shift-tips{color:#a6abb4;margin-left:8px}.jc-select-popper .counts{margin-left:8px}.jc-select .el-select__wrapper{font-size:12px}.jc-select .el-select__tags{height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jc-date-picker{align-items:center;display:flex;justify-content:flex-start}.jc-date-picker .select-field{display:flex;max-width:100px!important;min-width:60px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:auto!important}.jc-date-picker .select-field .el-select__prefix{color:#000;font-size:12px;max-width:50px!important;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.jc-date-picker .select-field .el-input__inner{width:0}.jc-date-picker .el-date-editor{border-bottom-left-radius:0;border-left:none!important;border-top-left-radius:0;margin-left:-1px}.jc-date-picker .el-select__wrapper{border-bottom-right-radius:0;border-top-right-radius:0;font-size:12px;max-width:100px;padding:4px 12px 4px 8px}.jc-date-picker .el-select__placeholder{font-size:12px}.el-popover.jc-input-pop .popover-body{display:flex;flex-direction:column;height:100%;left:0;position:absolute;top:0;width:100%}.el-popover.jc-input-pop{border:1px solid #e6e8eb;border-radius:4px;box-shadow:0 8px 16px #00000029;height:240px;line-height:18px;max-width:480px;min-width:auto;padding:12px;text-align:left}.el-popover.jc-input-pop .popover-body .popover-textarea{flex:1;min-height:0}.el-popover.jc-input-pop .popover-body .popover-textarea .el-textarea__inner{border:none!important;color:#333;font-size:12px;font-weight:400;height:100%;line-height:20px;outline:0;overflow:auto;padding:12px;resize:none;width:100%}.el-popover.jc-input-pop .popover-body .popover-btn{align-items:center;box-shadow:0 -1px #e6e8eb;display:flex;margin-top:-1px;padding:8px 12px;z-index:999}.el-popover.jc-input-pop .popover-body .popover-btn .popover-btn-right{margin-left:auto}[data-v-1420a179] .el-tag__content{max-height:24px;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical}.moreQuery-pop{border:1px solid #e6e8eb;border-radius:4px;box-shadow:0 8px 16px 0 rg;line-height:18px;min-width:auto;padding:12px;text-align:left}.el-popover.moreQuery-pop .popover-btn{align-items:center;display:flex;padding:4px 4px 0 10px;z-index:999}.el-popover.moreQuery-pop .popover-btn .popover-btn-right{margin-left:auto}.jc-list-layout{background:#ebeff2;display:flex;flex-direction:column;height:100%;width:100%}.jc-list-layout .top-card{border:none;box-shadow:none!important}.jc-list-layout .top-card .el-card__header{background-color:#fafafa;border-bottom:none;padding:2px 0 2px 12px}.jc-list-layout .top-card .el-card__body{padding:10px 10px 4px}.jc-list-layout .bottom-header{display:flex;flex-wrap:wrap;font-size:12px;padding:8px 18px 0}.jc-list-layout .bottom-card{flex:1;margin:6px 10px 0;min-height:0}.jc-list-layout .bottom-card .el-card__body{height:100%;overflow:auto;padding:0}.jc-list-layout .toolCss{padding-left:10px;padding-top:8px}.jc-list-layout .inputClass{width:240px}.jc-list-layout .vxe-toolbar{display:inline}.jc-list-layout .vxe-toolbar .vxe-buttons--wrapper{float:left}.jc-list-layout .vxe-toolbar .vxe-tools--operate{float:right;padding-right:0;padding-top:0}.jc-input.el-input-group{align-items:flex-start;display:flex}.jc-input{font-size:12px!important}.jc-input .el-input-group__prepend{background-color:var(--el-fill-color-blank);border-bottom-right-radius:0;border-top-right-radius:0;margin-right:0;min-height:auto}.jc-input .el-input-group__prepend .el-select__wrapper{font-size:12px;max-width:100px;padding:4px 8px}.jc-input .el-input-group__prepend .el-input__wrapper{box-shadow:none!important}.jc-input .suffixContent{align-items:center;display:flex;justify-content:center}.jc-input .el-input__icon{box-sizing:border-box;color:#353638;cursor:pointer;display:inline-block;line-height:1;text-align:center}.jc-input .el-icon{font-size:14px;font-weight:600}.jc-input .el-textarea{color:#0b1019;display:inline-block;font-size:12px;position:relative;vertical-align:bottom;width:100%}.jc-input .el-select--small .el-select__wrapper{line-height:1!important}.jc-input .select-field{display:flex;height:100%;max-width:100px!important;min-width:60px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:auto!important}.jc-input .select-field .el-select__prefix{color:#000;font-size:12px;max-width:50px!important;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.jc-input .select-field .el-input__inner{width:0}
|
package/dist/lib/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),J=require("@element-plus/icons-vue"),I=require("element-plus");require("element-plus/es/components/select/style/index"),require("element-plus/es/components/option/style/index"),require("element-plus/es/components/checkbox-group/style/index"),require("element-plus/es/components/checkbox/style/index"),require("element-plus/es/components/button/style/index"),require("element-plus/es/components/input/style/index"),require("element-plus/es/components/icon/style/index"),require("element-plus/es/components/popover/style/index"),require("element-plus/es/components/message/style/index"),require("element-plus/es/components/tag/style/index"),require("element-plus/es/components/tooltip/style/index"),require("element-plus/es/components/card/style/index");var Jt=typeof global=="object"&&global&&global.Object===Object&&global,Pr=typeof self=="object"&&self&&self.Object===Object&&self,W=Jt||Pr||Function("return this")(),Q=W.Symbol,Yt=Object.prototype,Vr=Yt.hasOwnProperty,Rr=Yt.toString,he=Q?Q.toStringTag:void 0;function Ur(e){var t=Vr.call(e,he),r=e[he];try{e[he]=void 0;var n=!0}catch{}var s=Rr.call(e);return n&&(t?e[he]=r:delete e[he]),s}var Hr=Object.prototype,qr=Hr.toString;function Gr(e){return qr.call(e)}var Kr="[object Null]",Qr="[object Undefined]",gt=Q?Q.toStringTag:void 0;function oe(e){return e==null?e===void 0?Qr:Kr:gt&> in Object(e)?Ur(e):Gr(e)}function Y(e){return e!=null&&typeof e=="object"}var Wr="[object Symbol]";function $e(e){return typeof e=="symbol"||Y(e)&&oe(e)==Wr}function Xt(e,t){for(var r=-1,n=e==null?0:e.length,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s}var V=Array.isArray,vt=Q?Q.prototype:void 0,mt=vt?vt.toString:void 0;function Zt(e){if(typeof e=="string")return e;if(V(e))return Xt(e,Zt)+"";if($e(e))return mt?mt.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Jr=/\s/;function Yr(e){for(var t=e.length;t--&&Jr.test(e.charAt(t)););return t}var Xr=/^\s+/;function Zr(e){return e&&e.slice(0,Yr(e)+1).replace(Xr,"")}function X(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yt=NaN,en=/^[-+]0x[0-9a-f]+$/i,tn=/^0b[01]+$/i,rn=/^0o[0-7]+$/i,nn=parseInt;function sn(e){if(typeof e=="number")return e;if($e(e))return yt;if(X(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=X(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Zr(e);var r=tn.test(e);return r||rn.test(e)?nn(e.slice(2),r?2:8):en.test(e)?yt:+e}var bt=1/0,on=17976931348623157e292;function an(e){if(!e)return e===0?e:0;if(e=sn(e),e===bt||e===-bt){var t=e<0?-1:1;return t*on}return e===e?e:0}function ln(e){var t=an(e),r=t%1;return t===t?r?t-r:t:0}function un(e){return e}var cn="[object AsyncFunction]",fn="[object Function]",dn="[object GeneratorFunction]",hn="[object Proxy]";function er(e){if(!X(e))return!1;var t=oe(e);return t==fn||t==dn||t==cn||t==hn}var ze=W["__core-js_shared__"],wt=function(){var e=/[^.]+$/.exec(ze&&ze.keys&&ze.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pn(e){return!!wt&&wt in e}var gn=Function.prototype,vn=gn.toString;function ae(e){if(e!=null){try{return vn.call(e)}catch{}try{return e+""}catch{}}return""}var mn=/[\\^$.*+?()[\]{}|]/g,yn=/^\[object .+?Constructor\]$/,bn=Function.prototype,wn=Object.prototype,_n=bn.toString,An=wn.hasOwnProperty,Cn=RegExp("^"+_n.call(An).replace(mn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sn(e){if(!X(e)||pn(e))return!1;var t=er(e)?Cn:yn;return t.test(ae(e))}function En(e,t){return e==null?void 0:e[t]}function le(e,t){var r=En(e,t);return Sn(r)?r:void 0}var De=le(W,"WeakMap"),_t=Object.create,xn=function(){function e(){}return function(t){if(!X(t))return{};if(_t)return _t(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),At=function(){try{var e=le(Object,"defineProperty");return e({},"",{}),e}catch{}}();function $n(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function tr(e,t,r,n){for(var s=e.length,o=r+-1;++o<s;)if(t(e[o],o,e))return o;return-1}function Tn(e){return e!==e}function In(e,t,r){for(var n=r-1,s=e.length;++n<s;)if(e[n]===t)return n;return-1}function On(e,t,r){return t===t?In(e,t,r):tr(e,Tn,r)}var Mn=9007199254740991,Bn=/^(?:0|[1-9]\d*)$/;function rr(e,t){var r=typeof e;return t=t??Mn,!!t&&(r=="number"||r!="symbol"&&Bn.test(e))&&e>-1&&e%1==0&&e<t}function Fn(e,t,r){t=="__proto__"&&At?At(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function et(e,t){return e===t||e!==e&&t!==t}var zn=Object.prototype,jn=zn.hasOwnProperty;function Ln(e,t,r){var n=e[t];(!(jn.call(e,t)&&et(n,r))||r===void 0&&!(t in e))&&Fn(e,t,r)}var kn=9007199254740991;function tt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=kn}function Te(e){return e!=null&&tt(e.length)&&!er(e)}var Nn=Object.prototype;function rt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Nn;return e===r}function Dn(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Pn="[object Arguments]";function Ct(e){return Y(e)&&oe(e)==Pn}var nr=Object.prototype,Vn=nr.hasOwnProperty,Rn=nr.propertyIsEnumerable,nt=Ct(function(){return arguments}())?Ct:function(e){return Y(e)&&Vn.call(e,"callee")&&!Rn.call(e,"callee")};function Un(){return!1}var ir=typeof exports=="object"&&exports&&!exports.nodeType&&exports,St=ir&&typeof module=="object"&&module&&!module.nodeType&&module,Hn=St&&St.exports===ir,Et=Hn?W.Buffer:void 0,qn=Et?Et.isBuffer:void 0,ge=qn||Un,Gn="[object Arguments]",Kn="[object Array]",Qn="[object Boolean]",Wn="[object Date]",Jn="[object Error]",Yn="[object Function]",Xn="[object Map]",Zn="[object Number]",ei="[object Object]",ti="[object RegExp]",ri="[object Set]",ni="[object String]",ii="[object WeakMap]",si="[object ArrayBuffer]",oi="[object DataView]",ai="[object Float32Array]",li="[object Float64Array]",ui="[object Int8Array]",ci="[object Int16Array]",fi="[object Int32Array]",di="[object Uint8Array]",hi="[object Uint8ClampedArray]",pi="[object Uint16Array]",gi="[object Uint32Array]",j={};j[ai]=j[li]=j[ui]=j[ci]=j[fi]=j[di]=j[hi]=j[pi]=j[gi]=!0;j[Gn]=j[Kn]=j[si]=j[Qn]=j[oi]=j[Wn]=j[Jn]=j[Yn]=j[Xn]=j[Zn]=j[ei]=j[ti]=j[ri]=j[ni]=j[ii]=!1;function vi(e){return Y(e)&&tt(e.length)&&!!j[oe(e)]}function it(e){return function(t){return e(t)}}var sr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pe=sr&&typeof module=="object"&&module&&!module.nodeType&&module,mi=pe&&pe.exports===sr,je=mi&&Jt.process,fe=function(){try{var e=pe&&pe.require&&pe.require("util").types;return e||je&&je.binding&&je.binding("util")}catch{}}(),xt=fe&&fe.isTypedArray,st=xt?it(xt):vi,yi=Object.prototype,bi=yi.hasOwnProperty;function wi(e,t){var r=V(e),n=!r&&nt(e),s=!r&&!n&&ge(e),o=!r&&!n&&!s&&st(e),a=r||n||s||o,l=a?Dn(e.length,String):[],u=l.length;for(var c in e)bi.call(e,c)&&!(a&&(c=="length"||s&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||rr(c,u)))&&l.push(c);return l}function or(e,t){return function(r){return e(t(r))}}var _i=or(Object.keys,Object),Ai=Object.prototype,Ci=Ai.hasOwnProperty;function ar(e){if(!rt(e))return _i(e);var t=[];for(var r in Object(e))Ci.call(e,r)&&r!="constructor"&&t.push(r);return t}function Ie(e){return Te(e)?wi(e):ar(e)}var Si=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ei=/^\w*$/;function ot(e,t){if(V(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||$e(e)?!0:Ei.test(e)||!Si.test(e)||t!=null&&e in Object(t)}var ve=le(Object,"create");function xi(){this.__data__=ve?ve(null):{},this.size=0}function $i(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ti="__lodash_hash_undefined__",Ii=Object.prototype,Oi=Ii.hasOwnProperty;function Mi(e){var t=this.__data__;if(ve){var r=t[e];return r===Ti?void 0:r}return Oi.call(t,e)?t[e]:void 0}var Bi=Object.prototype,Fi=Bi.hasOwnProperty;function zi(e){var t=this.__data__;return ve?t[e]!==void 0:Fi.call(t,e)}var ji="__lodash_hash_undefined__";function Li(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ve&&t===void 0?ji:t,this}function se(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}se.prototype.clear=xi;se.prototype.delete=$i;se.prototype.get=Mi;se.prototype.has=zi;se.prototype.set=Li;function ki(){this.__data__=[],this.size=0}function Oe(e,t){for(var r=e.length;r--;)if(et(e[r][0],t))return r;return-1}var Ni=Array.prototype,Di=Ni.splice;function Pi(e){var t=this.__data__,r=Oe(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Di.call(t,r,1),--this.size,!0}function Vi(e){var t=this.__data__,r=Oe(t,e);return r<0?void 0:t[r][1]}function Ri(e){return Oe(this.__data__,e)>-1}function Ui(e,t){var r=this.__data__,n=Oe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function ee(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ee.prototype.clear=ki;ee.prototype.delete=Pi;ee.prototype.get=Vi;ee.prototype.has=Ri;ee.prototype.set=Ui;var me=le(W,"Map");function Hi(){this.size=0,this.__data__={hash:new se,map:new(me||ee),string:new se}}function qi(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Me(e,t){var r=e.__data__;return qi(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Gi(e){var t=Me(this,e).delete(e);return this.size-=t?1:0,t}function Ki(e){return Me(this,e).get(e)}function Qi(e){return Me(this,e).has(e)}function Wi(e,t){var r=Me(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function te(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}te.prototype.clear=Hi;te.prototype.delete=Gi;te.prototype.get=Ki;te.prototype.has=Qi;te.prototype.set=Wi;var Ji="Expected a function";function at(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ji);var r=function(){var n=arguments,s=t?t.apply(this,n):n[0],o=r.cache;if(o.has(s))return o.get(s);var a=e.apply(this,n);return r.cache=o.set(s,a)||o,a};return r.cache=new(at.Cache||te),r}at.Cache=te;var Yi=500;function Xi(e){var t=at(e,function(n){return r.size===Yi&&r.clear(),n}),r=t.cache;return t}var Zi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,es=/\\(\\)?/g,ts=Xi(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Zi,function(r,n,s,o){t.push(s?o.replace(es,"$1"):n||r)}),t});function rs(e){return e==null?"":Zt(e)}function lr(e,t){return V(e)?e:ot(e,t)?[e]:ts(rs(e))}function Be(e){if(typeof e=="string"||$e(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ur(e,t){t=lr(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Be(t[r++])];return r&&r==n?e:void 0}function ns(e,t,r){var n=e==null?void 0:ur(e,t);return n===void 0?r:n}function is(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}var ss=or(Object.getPrototypeOf,Object);function os(){this.__data__=new ee,this.size=0}function as(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function ls(e){return this.__data__.get(e)}function us(e){return this.__data__.has(e)}var cs=200;function fs(e,t){var r=this.__data__;if(r instanceof ee){var n=r.__data__;if(!me||n.length<cs-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new te(n)}return r.set(e,t),this.size=r.size,this}function K(e){var t=this.__data__=new ee(e);this.size=t.size}K.prototype.clear=os;K.prototype.delete=as;K.prototype.get=ls;K.prototype.has=us;K.prototype.set=fs;var cr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$t=cr&&typeof module=="object"&&module&&!module.nodeType&&module,ds=$t&&$t.exports===cr,Tt=ds?W.Buffer:void 0;Tt&&Tt.allocUnsafe;function hs(e,t){return e.slice()}function fr(e,t){for(var r=-1,n=e==null?0:e.length,s=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[s++]=a)}return o}function ps(){return[]}var gs=Object.prototype,vs=gs.propertyIsEnumerable,It=Object.getOwnPropertySymbols,ms=It?function(e){return e==null?[]:(e=Object(e),fr(It(e),function(t){return vs.call(e,t)}))}:ps;function ys(e,t,r){var n=t(e);return V(e)?n:is(n,r(e))}function Pe(e){return ys(e,Ie,ms)}var Ve=le(W,"DataView"),Re=le(W,"Promise"),Ue=le(W,"Set"),Ot="[object Map]",bs="[object Object]",Mt="[object Promise]",Bt="[object Set]",Ft="[object WeakMap]",zt="[object DataView]",ws=ae(Ve),_s=ae(me),As=ae(Re),Cs=ae(Ue),Ss=ae(De),H=oe;(Ve&&H(new Ve(new ArrayBuffer(1)))!=zt||me&&H(new me)!=Ot||Re&&H(Re.resolve())!=Mt||Ue&&H(new Ue)!=Bt||De&&H(new De)!=Ft)&&(H=function(e){var t=oe(e),r=t==bs?e.constructor:void 0,n=r?ae(r):"";if(n)switch(n){case ws:return zt;case _s:return Ot;case As:return Mt;case Cs:return Bt;case Ss:return Ft}return t});var Es=Object.prototype,xs=Es.hasOwnProperty;function $s(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&xs.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Ce=W.Uint8Array;function lt(e){var t=new e.constructor(e.byteLength);return new Ce(t).set(new Ce(e)),t}function Ts(e,t){var r=lt(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var Is=/\w*$/;function Os(e){var t=new e.constructor(e.source,Is.exec(e));return t.lastIndex=e.lastIndex,t}var jt=Q?Q.prototype:void 0,Lt=jt?jt.valueOf:void 0;function Ms(e){return Lt?Object(Lt.call(e)):{}}function Bs(e,t){var r=lt(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}var Fs="[object Boolean]",zs="[object Date]",js="[object Map]",Ls="[object Number]",ks="[object RegExp]",Ns="[object Set]",Ds="[object String]",Ps="[object Symbol]",Vs="[object ArrayBuffer]",Rs="[object DataView]",Us="[object Float32Array]",Hs="[object Float64Array]",qs="[object Int8Array]",Gs="[object Int16Array]",Ks="[object Int32Array]",Qs="[object Uint8Array]",Ws="[object Uint8ClampedArray]",Js="[object Uint16Array]",Ys="[object Uint32Array]";function Xs(e,t,r){var n=e.constructor;switch(t){case Vs:return lt(e);case Fs:case zs:return new n(+e);case Rs:return Ts(e);case Us:case Hs:case qs:case Gs:case Ks:case Qs:case Ws:case Js:case Ys:return Bs(e);case js:return new n;case Ls:case Ds:return new n(e);case ks:return Os(e);case Ns:return new n;case Ps:return Ms(e)}}function Zs(e){return typeof e.constructor=="function"&&!rt(e)?xn(ss(e)):{}}var eo="[object Map]";function to(e){return Y(e)&&H(e)==eo}var kt=fe&&fe.isMap,ro=kt?it(kt):to,no="[object Set]";function io(e){return Y(e)&&H(e)==no}var Nt=fe&&fe.isSet,so=Nt?it(Nt):io,dr="[object Arguments]",oo="[object Array]",ao="[object Boolean]",lo="[object Date]",uo="[object Error]",hr="[object Function]",co="[object GeneratorFunction]",fo="[object Map]",ho="[object Number]",pr="[object Object]",po="[object RegExp]",go="[object Set]",vo="[object String]",mo="[object Symbol]",yo="[object WeakMap]",bo="[object ArrayBuffer]",wo="[object DataView]",_o="[object Float32Array]",Ao="[object Float64Array]",Co="[object Int8Array]",So="[object Int16Array]",Eo="[object Int32Array]",xo="[object Uint8Array]",$o="[object Uint8ClampedArray]",To="[object Uint16Array]",Io="[object Uint32Array]",z={};z[dr]=z[oo]=z[bo]=z[wo]=z[ao]=z[lo]=z[_o]=z[Ao]=z[Co]=z[So]=z[Eo]=z[fo]=z[ho]=z[pr]=z[po]=z[go]=z[vo]=z[mo]=z[xo]=z[$o]=z[To]=z[Io]=!0;z[uo]=z[hr]=z[yo]=!1;function we(e,t,r,n,s,o){var a;if(a!==void 0)return a;if(!X(e))return e;var l=V(e);if(l)a=$s(e);else{var u=H(e),c=u==hr||u==co;if(ge(e))return hs(e);if(u==pr||u==dr||c&&!s)a=c?{}:Zs(e);else{if(!z[u])return s?e:{};a=Xs(e,u)}}o||(o=new K);var f=o.get(e);if(f)return f;o.set(e,a),so(e)?e.forEach(function(v){a.add(we(v,t,r,v,e,o))}):ro(e)&&e.forEach(function(v,m){a.set(m,we(v,t,r,m,e,o))});var g=Pe,p=l?void 0:g(e);return $n(p||e,function(v,m){p&&(m=v,v=e[m]),Ln(a,m,we(v,t,r,m,e,o))}),a}var Oo=1,Mo=4;function gr(e){return we(e,Oo|Mo)}var Bo="__lodash_hash_undefined__";function Fo(e){return this.__data__.set(e,Bo),this}function zo(e){return this.__data__.has(e)}function Se(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new te;++t<r;)this.add(e[t])}Se.prototype.add=Se.prototype.push=Fo;Se.prototype.has=zo;function jo(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Lo(e,t){return e.has(t)}var ko=1,No=2;function vr(e,t,r,n,s,o){var a=r&ko,l=e.length,u=t.length;if(l!=u&&!(a&&u>l))return!1;var c=o.get(e),f=o.get(t);if(c&&f)return c==t&&f==e;var g=-1,p=!0,v=r&No?new Se:void 0;for(o.set(e,t),o.set(t,e);++g<l;){var m=e[g],d=t[g];if(n)var h=a?n(d,m,g,t,e,o):n(m,d,g,e,t,o);if(h!==void 0){if(h)continue;p=!1;break}if(v){if(!jo(t,function(b,_){if(!Lo(v,_)&&(m===b||s(m,b,r,n,o)))return v.push(_)})){p=!1;break}}else if(!(m===d||s(m,d,r,n,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Do(e){var t=-1,r=Array(e.size);return e.forEach(function(n,s){r[++t]=[s,n]}),r}function Po(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Vo=1,Ro=2,Uo="[object Boolean]",Ho="[object Date]",qo="[object Error]",Go="[object Map]",Ko="[object Number]",Qo="[object RegExp]",Wo="[object Set]",Jo="[object String]",Yo="[object Symbol]",Xo="[object ArrayBuffer]",Zo="[object DataView]",Dt=Q?Q.prototype:void 0,Le=Dt?Dt.valueOf:void 0;function ea(e,t,r,n,s,o,a){switch(r){case Zo:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Xo:return!(e.byteLength!=t.byteLength||!o(new Ce(e),new Ce(t)));case Uo:case Ho:case Ko:return et(+e,+t);case qo:return e.name==t.name&&e.message==t.message;case Qo:case Jo:return e==t+"";case Go:var l=Do;case Wo:var u=n&Vo;if(l||(l=Po),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;n|=Ro,a.set(e,t);var f=vr(l(e),l(t),n,s,o,a);return a.delete(e),f;case Yo:if(Le)return Le.call(e)==Le.call(t)}return!1}var ta=1,ra=Object.prototype,na=ra.hasOwnProperty;function ia(e,t,r,n,s,o){var a=r&ta,l=Pe(e),u=l.length,c=Pe(t),f=c.length;if(u!=f&&!a)return!1;for(var g=u;g--;){var p=l[g];if(!(a?p in t:na.call(t,p)))return!1}var v=o.get(e),m=o.get(t);if(v&&m)return v==t&&m==e;var d=!0;o.set(e,t),o.set(t,e);for(var h=a;++g<u;){p=l[g];var b=e[p],_=t[p];if(n)var x=a?n(_,b,p,t,e,o):n(b,_,p,e,t,o);if(!(x===void 0?b===_||s(b,_,r,n,o):x)){d=!1;break}h||(h=p=="constructor")}if(d&&!h){var A=e.constructor,M=t.constructor;A!=M&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof M=="function"&&M instanceof M)&&(d=!1)}return o.delete(e),o.delete(t),d}var sa=1,Pt="[object Arguments]",Vt="[object Array]",ye="[object Object]",oa=Object.prototype,Rt=oa.hasOwnProperty;function aa(e,t,r,n,s,o){var a=V(e),l=V(t),u=a?Vt:H(e),c=l?Vt:H(t);u=u==Pt?ye:u,c=c==Pt?ye:c;var f=u==ye,g=c==ye,p=u==c;if(p&&ge(e)){if(!ge(t))return!1;a=!0,f=!1}if(p&&!f)return o||(o=new K),a||st(e)?vr(e,t,r,n,s,o):ea(e,t,u,r,n,s,o);if(!(r&sa)){var v=f&&Rt.call(e,"__wrapped__"),m=g&&Rt.call(t,"__wrapped__");if(v||m){var d=v?e.value():e,h=m?t.value():t;return o||(o=new K),s(d,h,r,n,o)}}return p?(o||(o=new K),ia(e,t,r,n,s,o)):!1}function ut(e,t,r,n,s){return e===t?!0:e==null||t==null||!Y(e)&&!Y(t)?e!==e&&t!==t:aa(e,t,r,n,ut,s)}var la=1,ua=2;function ca(e,t,r,n){var s=r.length,o=s;if(e==null)return!o;for(e=Object(e);s--;){var a=r[s];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++s<o;){a=r[s];var l=a[0],u=e[l],c=a[1];if(a[2]){if(u===void 0&&!(l in e))return!1}else{var f=new K,g;if(!(g===void 0?ut(c,u,la|ua,n,f):g))return!1}}return!0}function mr(e){return e===e&&!X(e)}function fa(e){for(var t=Ie(e),r=t.length;r--;){var n=t[r],s=e[n];t[r]=[n,s,mr(s)]}return t}function yr(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function da(e){var t=fa(e);return t.length==1&&t[0][2]?yr(t[0][0],t[0][1]):function(r){return r===e||ca(r,e,t)}}function ha(e,t){return e!=null&&t in Object(e)}function pa(e,t,r){t=lr(t,e);for(var n=-1,s=t.length,o=!1;++n<s;){var a=Be(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=s?o:(s=e==null?0:e.length,!!s&&tt(s)&&rr(a,s)&&(V(e)||nt(e)))}function ga(e,t){return e!=null&&pa(e,t,ha)}var va=1,ma=2;function ya(e,t){return ot(e)&&mr(t)?yr(Be(e),t):function(r){var n=ns(r,e);return n===void 0&&n===t?ga(r,e):ut(t,n,va|ma)}}function ba(e){return function(t){return t==null?void 0:t[e]}}function wa(e){return function(t){return ur(t,e)}}function _a(e){return ot(e)?ba(Be(e)):wa(e)}function br(e){return typeof e=="function"?e:e==null?un:typeof e=="object"?V(e)?ya(e[0],e[1]):da(e):_a(e)}function Aa(e){return function(t,r,n){for(var s=-1,o=Object(t),a=n(t),l=a.length;l--;){var u=a[++s];if(r(o[u],u,o)===!1)break}return t}}var Ca=Aa();function Sa(e,t){return e&&Ca(e,t,Ie)}function Ea(e,t){return function(r,n){if(r==null)return r;if(!Te(r))return e(r,n);for(var s=r.length,o=-1,a=Object(r);++o<s&&n(a[o],o,a)!==!1;);return r}}var xa=Ea(Sa);function $a(e,t){var r=[];return xa(e,function(n,s,o){t(n,s,o)&&r.push(n)}),r}function Ta(e,t){var r=V(e)?fr:$a;return r(e,br(t))}function Ia(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var s=0;return tr(e,br(t),s)}var Oa="[object String]";function Ma(e){return typeof e=="string"||!V(e)&&Y(e)&&oe(e)==Oa}function Ba(e,t){return Xt(t,function(r){return e[r]})}function Fa(e){return e==null?[]:Ba(e,Ie(e))}var za=Math.max;function ja(e,t,r,n){e=Te(e)?e:Fa(e),r=r?ln(r):0;var s=e.length;return r<0&&(r=za(s+r,0)),Ma(e)?r<=s&&e.indexOf(t,r)>-1:!!s&&On(e,t,r)>-1}var La="[object Map]",ka="[object Set]",Na=Object.prototype,Da=Na.hasOwnProperty;function N(e){if(e==null)return!0;if(Te(e)&&(V(e)||typeof e=="string"||typeof e.splice=="function"||ge(e)||st(e)||nt(e)))return!e.length;var t=H(e);if(t==La||t==ka)return!e.size;if(rt(e))return!ar(e).length;for(var r in e)if(Da.call(e,r))return!1;return!0}function Pa(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let _e;function He(){He.init||(He.init=!0,_e=Pa()!==-1)}var Fe={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){He(),i.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",_e&&this.$el.appendChild(e),e.data="about:blank",_e||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!_e&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Va=i.withScopeId("data-v-b329ee4c");i.pushScopeId("data-v-b329ee4c");const Ra={class:"resize-observer",tabindex:"-1"};i.popScopeId();const Ua=Va((e,t,r,n,s,o)=>(i.openBlock(),i.createBlock("div",Ra)));Fe.render=Ua;Fe.__scopeId="data-v-b329ee4c";Fe.__file="src/components/ResizeObserver.vue";function Ae(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(t){return typeof t}:Ae=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ae(e)}function Ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qa(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ga(e,t,r){return t&&qa(e.prototype,t),e}function Ut(e){return Ka(e)||Qa(e)||Wa(e)||Ja()}function Ka(e){if(Array.isArray(e))return qe(e)}function Qa(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Wa(e,t){if(e){if(typeof e=="string")return qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qe(e,t)}}function qe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ja(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ya(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Xa(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,s,o,a=function(u){for(var c=arguments.length,f=new Array(c>1?c-1:0),g=1;g<c;g++)f[g-1]=arguments[g];if(o=f,!(n&&u===s)){var p=r.leading;typeof p=="function"&&(p=p(u,s)),(!n||u!==s)&&p&&e.apply(void 0,[u].concat(Ut(o))),s=u,clearTimeout(n),n=setTimeout(function(){e.apply(void 0,[u].concat(Ut(o))),n=0},t)}};return a._clear=function(){clearTimeout(n),n=null},a}function wr(e,t){if(e===t)return!0;if(Ae(e)==="object"){for(var r in e)if(!wr(e[r],t[r]))return!1;return!0}return!1}var Za=function(){function e(t,r,n){Ha(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,n)}return Ga(e,[{key:"createObserver",value:function(r,n){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Ya(r),this.callback=function(l,u){s.options.callback(l,u),l&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var o=this.options.throttleOptions||{},a=o.leading;this.callback=Xa(this.callback,this.options.throttle,{leading:function(u){return a==="both"||a==="visible"&&u||a==="hidden"&&!u}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(l){var u=l[0];if(l.length>1){var c=l.find(function(g){return g.isIntersecting});c&&(u=c)}if(s.callback){var f=u.isIntersecting&&u.intersectionRatio>=s.threshold;if(f===s.oldResult)return;s.oldResult=f,s.callback(f,u)}},this.options.intersection),i.nextTick(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function _r(e,t,r){var n=t.value;if(n)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new Za(e,n,r);e._vue_visibilityState=s}}function el(e,t,r){var n=t.value,s=t.oldValue;if(!wr(n,s)){var o=e._vue_visibilityState;if(!n){Ar(e);return}o?o.createObserver(n,r):_r(e,{value:n},r)}}function Ar(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var tl={beforeMount:_r,updated:el,unmounted:Ar},rl={itemsLimit:1e3},nl=/(auto|scroll)/;function Cr(e,t){return e.parentNode===null?t:Cr(e.parentNode,t.concat([e]))}var ke=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},il=function(t){return ke(t,"overflow")+ke(t,"overflow-y")+ke(t,"overflow-x")},sl=function(t){return nl.test(il(t))};function Ht(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Cr(e.parentNode,[]),r=0;r<t.length;r+=1)if(sl(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function Ge(e){"@babel/helpers - typeof";return Ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ge(e)}var ol={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function al(){return this.items.length&&Ge(this.items[0])!=="object"}var Ke=!1;if(typeof window<"u"){Ke=!1;try{var ll=Object.defineProperty({},"passive",{get:function(){Ke=!0}});window.addEventListener("test",null,ll)}catch{}}let ul=0;var ct={name:"RecycleScroller",components:{ResizeObserver:Fe},directives:{ObserveVisibility:tl},props:{...ol,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,n=this.minItemSize;let s=1e4,o=0,a;for(let l=0,u=t.length;l<u;l++)a=t[l][r]||n,a<s&&(s=a),o+=a,e[l]={accumulator:o,size:a};return this.$_computedMinItemSize=s,e}return[]},simpleArray:al,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let n=0,s=t.length;n<s;n++)r[t[n][e]]=n;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,n,s){const o=i.markRaw({id:ul++,index:t,used:!0,key:n,type:s}),a=i.shallowReactive({item:r,position:0,nr:o});return e.push(a),a},unuseView(e,t=!1){const r=this.$_unusedViews,n=e.nr.type;let s=r.get(n);s||(s=[],r.set(n,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,n=this.gridItems||1,s=this.itemSecondarySize||r,o=this.$_computedMinItemSize,a=this.typeField,l=this.simpleArray?null:this.keyField,u=this.items,c=u.length,f=this.sizes,g=this.$_views,p=this.$_unusedViews,v=this.pool,m=this.itemIndexByKey;let d,h,b,_,x;if(!c)d=h=_=x=b=0;else if(this.$_prerender)d=_=0,h=x=Math.min(this.prerender,u.length),b=null;else{const $=this.getScroll();if(t){let w=$.start-this.$_lastUpdateScrollPosition;if(w<0&&(w=-w),r===null&&w<o||w<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=$.start;const k=this.buffer;$.start-=k,$.end+=k;let y=0;if(this.$refs.before&&(y=this.$refs.before.scrollHeight,$.start-=y),this.$refs.after){const w=this.$refs.after.scrollHeight;$.end+=w}if(r===null){let w,S=0,T=c-1,C=~~(c/2),O;do O=C,w=f[C].accumulator,w<$.start?S=C:C<c-1&&f[C+1].accumulator>$.start&&(T=C),C=~~((S+T)/2);while(C!==O);for(C<0&&(C=0),d=C,b=f[c-1].accumulator,h=C;h<c&&f[h].accumulator<$.end;h++);for(h===-1?h=u.length-1:(h++,h>c&&(h=c)),_=d;_<c&&y+f[_].accumulator<$.start;_++);for(x=_;x<c&&y+f[x].accumulator<$.end;x++);}else{d=~~($.start/r*n);const w=d%n;d-=w,h=Math.ceil($.end/r*n),_=Math.max(0,Math.floor(($.start-y)/r*n)),x=Math.floor(($.end-y)/r*n),d<0&&(d=0),h>c&&(h=c),_<0&&(_=0),x>c&&(x=c),b=Math.ceil(c/n)*r}}h-d>rl.itemsLimit&&this.itemsLimitError(),this.totalSize=b;let A;const M=d<=this.$_endIndex&&h>=this.$_startIndex;if(M)for(let $=0,k=v.length;$<k;$++)A=v[$],A.nr.used&&(e&&(A.nr.index=m[A.item[l]]),(A.nr.index==null||A.nr.index<d||A.nr.index>=h)&&this.unuseView(A));const R=M?null:new Map;let B,F,L;for(let $=d;$<h;$++){B=u[$];const k=l?B[l]:B;if(k==null)throw new Error(`Key is ${k} on item (keyField is '${l}')`);if(A=g.get(k),!r&&!f[$].size){A&&this.unuseView(A);continue}F=B[a];let y=p.get(F),w=!1;if(!A)M?y&&y.length?A=y.pop():A=this.addView(v,$,B,k,F):(L=R.get(F)||0,(!y||L>=y.length)&&(A=this.addView(v,$,B,k,F),this.unuseView(A,!0),y=p.get(F)),A=y[L],R.set(F,L+1)),g.delete(A.nr.key),A.nr.used=!0,A.nr.index=$,A.nr.key=k,A.nr.type=F,g.set(k,A),w=!0;else if(!A.nr.used&&(A.nr.used=!0,w=!0,y)){const S=y.indexOf(A);S!==-1&&y.splice(S,1)}A.item=B,w&&($===u.length-1&&this.$emit("scroll-end"),$===0&&this.$emit("scroll-start")),r===null?(A.position=f[$-1].accumulator,A.offset=0):(A.position=Math.floor($/n)*r,A.offset=$%n*s)}return this.$_startIndex=d,this.$_endIndex=h,this.emitUpdate&&this.$emit("update",d,h,_,x),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:M}},getListenerTarget(){let e=Ht(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let n;if(this.pageMode){const s=e.getBoundingClientRect(),o=r?s.height:s.width;let a=-(r?s.top:s.left),l=r?window.innerHeight:window.innerWidth;a<0&&(l+=a,a=0),a+l>o&&(l=o-a),n={start:a,end:a+l}}else r?n={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:n={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return n},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Ke?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,n,s;if(this.pageMode){const o=Ht(this.$el),a=o.tagName==="HTML"?0:o[t.scroll],l=o.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[t.start]-l[t.start];r=o,n=t.scroll,s=e+a+c}else r=this.$el,n=t.scroll,s=e;r[n]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const cl={key:0,ref:"before",class:"vue-recycle-scroller__slot"},fl={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function dl(e,t,r,n,s,o){const a=i.resolveComponent("ResizeObserver"),l=i.resolveDirective("observe-visibility");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...u)=>o.handleScroll&&o.handleScroll(...u))},[e.$slots.before?(i.openBlock(),i.createElementBlock("div",cl,[i.renderSlot(e.$slots,"before")],512)):i.createCommentVNode("v-if",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.listTag),{ref:"wrapper",style:i.normalizeStyle({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:i.normalizeClass(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.pool,u=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.itemTag),i.mergeProps({key:u.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${u.position}px) translate${e.direction==="vertical"?"X":"Y"}(${u.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===u.nr.key}]]},i.toHandlers(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=u.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{item:u.item,index:u.nr.index,active:u.nr.used})]),_:2},1040,["style","class"]))),128)),i.renderSlot(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(i.openBlock(),i.createElementBlock("div",fl,[i.renderSlot(e.$slots,"after")],512)):i.createCommentVNode("v-if",!0),i.createVNode(a,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[l,o.handleVisibilityChange]])}ct.render=dl;ct.__file="src/components/RecycleScroller.vue";function Z(e){return Array.isArray?Array.isArray(e):xr(e)==="[object Array]"}function hl(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function pl(e){return e==null?"":hl(e)}function G(e){return typeof e=="string"}function Sr(e){return typeof e=="number"}function gl(e){return e===!0||e===!1||vl(e)&&xr(e)=="[object Boolean]"}function Er(e){return typeof e=="object"}function vl(e){return Er(e)&&e!==null}function U(e){return e!=null}function Ne(e){return!e.trim().length}function xr(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ml="Incorrect 'index' type",yl=e=>`Invalid value for key ${e}`,bl=e=>`Pattern length exceeds max of ${e}.`,wl=e=>`Missing ${e} property in key`,_l=e=>`Property 'weight' in key '${e}' must be a positive integer`,qt=Object.prototype.hasOwnProperty;class Al{constructor(t){this._keys=[],this._keyMap={};let r=0;t.forEach(n=>{let s=$r(n);this._keys.push(s),this._keyMap[s.id]=s,r+=s.weight}),this._keys.forEach(n=>{n.weight/=r})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function $r(e){let t=null,r=null,n=null,s=1,o=null;if(G(e)||Z(e))n=e,t=Gt(e),r=Qe(e);else{if(!qt.call(e,"name"))throw new Error(wl("name"));const a=e.name;if(n=a,qt.call(e,"weight")&&(s=e.weight,s<=0))throw new Error(_l(a));t=Gt(a),r=Qe(a),o=e.getFn}return{path:t,id:r,weight:s,src:n,getFn:o}}function Gt(e){return Z(e)?e:e.split(".")}function Qe(e){return Z(e)?e.join("."):e}function Cl(e,t){let r=[],n=!1;const s=(o,a,l)=>{if(U(o))if(!a[l])r.push(o);else{let u=a[l];const c=o[u];if(!U(c))return;if(l===a.length-1&&(G(c)||Sr(c)||gl(c)))r.push(pl(c));else if(Z(c)){n=!0;for(let f=0,g=c.length;f<g;f+=1)s(c[f],a,l+1)}else a.length&&s(c,a,l+1)}};return s(e,G(t)?t.split("."):t,0),n?r:r[0]}const Sl={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},El={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},xl={location:0,threshold:.6,distance:100},$l={useExtendedSearch:!1,getFn:Cl,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var E={...El,...Sl,...xl,...$l};const Tl=/[^ ]+/g;function Il(e=1,t=3){const r=new Map,n=Math.pow(10,t);return{get(s){const o=s.match(Tl).length;if(r.has(o))return r.get(o);const a=1/Math.pow(o,.5*e),l=parseFloat(Math.round(a*n)/n);return r.set(o,l),l},clear(){r.clear()}}}class ft{constructor({getFn:t=E.getFn,fieldNormWeight:r=E.fieldNormWeight}={}){this.norm=Il(r,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((r,n)=>{this._keysMap[r.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,G(this.docs[0])?this.docs.forEach((t,r)=>{this._addString(t,r)}):this.docs.forEach((t,r)=>{this._addObject(t,r)}),this.norm.clear())}add(t){const r=this.size();G(t)?this._addString(t,r):this._addObject(t,r)}removeAt(t){this.records.splice(t,1);for(let r=t,n=this.size();r<n;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(t,r){return t[this._keysMap[r]]}size(){return this.records.length}_addString(t,r){if(!U(t)||Ne(t))return;let n={v:t,i:r,n:this.norm.get(t)};this.records.push(n)}_addObject(t,r){let n={i:r,$:{}};this.keys.forEach((s,o)=>{let a=s.getFn?s.getFn(t):this.getFn(t,s.path);if(U(a)){if(Z(a)){let l=[];const u=[{nestedArrIndex:-1,value:a}];for(;u.length;){const{nestedArrIndex:c,value:f}=u.pop();if(U(f))if(G(f)&&!Ne(f)){let g={v:f,i:c,n:this.norm.get(f)};l.push(g)}else Z(f)&&f.forEach((g,p)=>{u.push({nestedArrIndex:p,value:g})})}n.$[o]=l}else if(G(a)&&!Ne(a)){let l={v:a,n:this.norm.get(a)};n.$[o]=l}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function Tr(e,t,{getFn:r=E.getFn,fieldNormWeight:n=E.fieldNormWeight}={}){const s=new ft({getFn:r,fieldNormWeight:n});return s.setKeys(e.map($r)),s.setSources(t),s.create(),s}function Ol(e,{getFn:t=E.getFn,fieldNormWeight:r=E.fieldNormWeight}={}){const{keys:n,records:s}=e,o=new ft({getFn:t,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(s),o}function be(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:s=E.distance,ignoreLocation:o=E.ignoreLocation}={}){const a=t/e.length;if(o)return a;const l=Math.abs(n-r);return s?a+l/s:l?1:a}function Ml(e=[],t=E.minMatchCharLength){let r=[],n=-1,s=-1,o=0;for(let a=e.length;o<a;o+=1){let l=e[o];l&&n===-1?n=o:!l&&n!==-1&&(s=o-1,s-n+1>=t&&r.push([n,s]),n=-1)}return e[o-1]&&o-n>=t&&r.push([n,o-1]),r}const ie=32;function Bl(e,t,r,{location:n=E.location,distance:s=E.distance,threshold:o=E.threshold,findAllMatches:a=E.findAllMatches,minMatchCharLength:l=E.minMatchCharLength,includeMatches:u=E.includeMatches,ignoreLocation:c=E.ignoreLocation}={}){if(t.length>ie)throw new Error(bl(ie));const f=t.length,g=e.length,p=Math.max(0,Math.min(n,g));let v=o,m=p;const d=l>1||u,h=d?Array(g):[];let b;for(;(b=e.indexOf(t,m))>-1;){let B=be(t,{currentLocation:b,expectedLocation:p,distance:s,ignoreLocation:c});if(v=Math.min(B,v),m=b+f,d){let F=0;for(;F<f;)h[b+F]=1,F+=1}}m=-1;let _=[],x=1,A=f+g;const M=1<<f-1;for(let B=0;B<f;B+=1){let F=0,L=A;for(;F<L;)be(t,{errors:B,currentLocation:p+L,expectedLocation:p,distance:s,ignoreLocation:c})<=v?F=L:A=L,L=Math.floor((A-F)/2+F);A=L;let $=Math.max(1,p-L+1),k=a?g:Math.min(p+L,g)+f,y=Array(k+2);y[k+1]=(1<<B)-1;for(let S=k;S>=$;S-=1){let T=S-1,C=r[e.charAt(T)];if(d&&(h[T]=+!!C),y[S]=(y[S+1]<<1|1)&C,B&&(y[S]|=(_[S+1]|_[S])<<1|1|_[S+1]),y[S]&M&&(x=be(t,{errors:B,currentLocation:T,expectedLocation:p,distance:s,ignoreLocation:c}),x<=v)){if(v=x,m=T,m<=p)break;$=Math.max(1,2*p-m)}}if(be(t,{errors:B+1,currentLocation:p,expectedLocation:p,distance:s,ignoreLocation:c})>v)break;_=y}const R={isMatch:m>=0,score:Math.max(.001,x)};if(d){const B=Ml(h,l);B.length?u&&(R.indices=B):R.isMatch=!1}return R}function Fl(e){let t={};for(let r=0,n=e.length;r<n;r+=1){const s=e.charAt(r);t[s]=(t[s]||0)|1<<n-r-1}return t}const Ee=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class Ir{constructor(t,{location:r=E.location,threshold:n=E.threshold,distance:s=E.distance,includeMatches:o=E.includeMatches,findAllMatches:a=E.findAllMatches,minMatchCharLength:l=E.minMatchCharLength,isCaseSensitive:u=E.isCaseSensitive,ignoreDiacritics:c=E.ignoreDiacritics,ignoreLocation:f=E.ignoreLocation}={}){if(this.options={location:r,threshold:n,distance:s,includeMatches:o,findAllMatches:a,minMatchCharLength:l,isCaseSensitive:u,ignoreDiacritics:c,ignoreLocation:f},t=u?t:t.toLowerCase(),t=c?Ee(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const g=(v,m)=>{this.chunks.push({pattern:v,alphabet:Fl(v),startIndex:m})},p=this.pattern.length;if(p>ie){let v=0;const m=p%ie,d=p-m;for(;v<d;)g(this.pattern.substr(v,ie),v),v+=ie;if(m){const h=p-ie;g(this.pattern.substr(h),h)}}else g(this.pattern,0)}searchIn(t){const{isCaseSensitive:r,ignoreDiacritics:n,includeMatches:s}=this.options;if(t=r?t:t.toLowerCase(),t=n?Ee(t):t,this.pattern===t){let d={isMatch:!0,score:0};return s&&(d.indices=[[0,t.length-1]]),d}const{location:o,distance:a,threshold:l,findAllMatches:u,minMatchCharLength:c,ignoreLocation:f}=this.options;let g=[],p=0,v=!1;this.chunks.forEach(({pattern:d,alphabet:h,startIndex:b})=>{const{isMatch:_,score:x,indices:A}=Bl(t,d,h,{location:o+b,distance:a,threshold:l,findAllMatches:u,minMatchCharLength:c,includeMatches:s,ignoreLocation:f});_&&(v=!0),p+=x,_&&A&&(g=[...g,...A])});let m={isMatch:v,score:v?p/this.chunks.length:1};return v&&s&&(m.indices=g),m}}class ne{constructor(t){this.pattern=t}static isMultiMatch(t){return Kt(t,this.multiRegex)}static isSingleMatch(t){return Kt(t,this.singleRegex)}search(){}}function Kt(e,t){const r=e.match(t);return r?r[1]:null}class zl extends ne{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const r=t===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class jl extends ne{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Ll extends ne{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const r=t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class kl extends ne{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const r=!t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class Nl extends ne{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const r=t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Dl extends ne{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const r=!t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class Or extends ne{constructor(t,{location:r=E.location,threshold:n=E.threshold,distance:s=E.distance,includeMatches:o=E.includeMatches,findAllMatches:a=E.findAllMatches,minMatchCharLength:l=E.minMatchCharLength,isCaseSensitive:u=E.isCaseSensitive,ignoreDiacritics:c=E.ignoreDiacritics,ignoreLocation:f=E.ignoreLocation}={}){super(t),this._bitapSearch=new Ir(t,{location:r,threshold:n,distance:s,includeMatches:o,findAllMatches:a,minMatchCharLength:l,isCaseSensitive:u,ignoreDiacritics:c,ignoreLocation:f})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Mr extends ne{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let r=0,n;const s=[],o=this.pattern.length;for(;(n=t.indexOf(this.pattern,r))>-1;)r=n+o,s.push([n,r-1]);const a=!!s.length;return{isMatch:a,score:a?0:1,indices:s}}}const We=[zl,Mr,Ll,kl,Dl,Nl,jl,Or],Qt=We.length,Pl=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Vl="|";function Rl(e,t={}){return e.split(Vl).map(r=>{let n=r.trim().split(Pl).filter(o=>o&&!!o.trim()),s=[];for(let o=0,a=n.length;o<a;o+=1){const l=n[o];let u=!1,c=-1;for(;!u&&++c<Qt;){const f=We[c];let g=f.isMultiMatch(l);g&&(s.push(new f(g,t)),u=!0)}if(!u)for(c=-1;++c<Qt;){const f=We[c];let g=f.isSingleMatch(l);if(g){s.push(new f(g,t));break}}}return s})}const Ul=new Set([Or.type,Mr.type]);class Hl{constructor(t,{isCaseSensitive:r=E.isCaseSensitive,ignoreDiacritics:n=E.ignoreDiacritics,includeMatches:s=E.includeMatches,minMatchCharLength:o=E.minMatchCharLength,ignoreLocation:a=E.ignoreLocation,findAllMatches:l=E.findAllMatches,location:u=E.location,threshold:c=E.threshold,distance:f=E.distance}={}){this.query=null,this.options={isCaseSensitive:r,ignoreDiacritics:n,includeMatches:s,minMatchCharLength:o,findAllMatches:l,ignoreLocation:a,location:u,threshold:c,distance:f},t=r?t:t.toLowerCase(),t=n?Ee(t):t,this.pattern=t,this.query=Rl(this.pattern,this.options)}static condition(t,r){return r.useExtendedSearch}searchIn(t){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:s,ignoreDiacritics:o}=this.options;t=s?t:t.toLowerCase(),t=o?Ee(t):t;let a=0,l=[],u=0;for(let c=0,f=r.length;c<f;c+=1){const g=r[c];l.length=0,a=0;for(let p=0,v=g.length;p<v;p+=1){const m=g[p],{isMatch:d,indices:h,score:b}=m.search(t);if(d){if(a+=1,u+=b,n){const _=m.constructor.type;Ul.has(_)?l=[...l,...h]:l.push(h)}}else{u=0,a=0,l.length=0;break}}if(a){let p={isMatch:!0,score:u/a};return n&&(p.indices=l),p}}return{isMatch:!1,score:1}}}const Je=[];function ql(...e){Je.push(...e)}function Ye(e,t){for(let r=0,n=Je.length;r<n;r+=1){let s=Je[r];if(s.condition(e,t))return new s(e,t)}return new Ir(e,t)}const xe={AND:"$and",OR:"$or"},Xe={PATH:"$path",PATTERN:"$val"},Ze=e=>!!(e[xe.AND]||e[xe.OR]),Gl=e=>!!e[Xe.PATH],Kl=e=>!Z(e)&&Er(e)&&!Ze(e),Wt=e=>({[xe.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Br(e,t,{auto:r=!0}={}){const n=s=>{let o=Object.keys(s);const a=Gl(s);if(!a&&o.length>1&&!Ze(s))return n(Wt(s));if(Kl(s)){const u=a?s[Xe.PATH]:o[0],c=a?s[Xe.PATTERN]:s[u];if(!G(c))throw new Error(yl(u));const f={keyId:Qe(u),pattern:c};return r&&(f.searcher=Ye(c,t)),f}let l={children:[],operator:o[0]};return o.forEach(u=>{const c=s[u];Z(c)&&c.forEach(f=>{l.children.push(n(f))})}),l};return Ze(e)||(e=Wt(e)),n(e)}function Ql(e,{ignoreFieldNorm:t=E.ignoreFieldNorm}){e.forEach(r=>{let n=1;r.matches.forEach(({key:s,norm:o,score:a})=>{const l=s?s.weight:null;n*=Math.pow(a===0&&l?Number.EPSILON:a,(l||1)*(t?1:o))}),r.score=n})}function Wl(e,t){const r=e.matches;t.matches=[],U(r)&&r.forEach(n=>{if(!U(n.indices)||!n.indices.length)return;const{indices:s,value:o}=n;let a={indices:s,value:o};n.key&&(a.key=n.key.src),n.idx>-1&&(a.refIndex=n.idx),t.matches.push(a)})}function Jl(e,t){t.score=e.score}function Yl(e,t,{includeMatches:r=E.includeMatches,includeScore:n=E.includeScore}={}){const s=[];return r&&s.push(Wl),n&&s.push(Jl),e.map(o=>{const{idx:a}=o,l={item:t[a],refIndex:a};return s.length&&s.forEach(u=>{u(o,l)}),l})}class re{constructor(t,r={},n){this.options={...E,...r},this.options.useExtendedSearch,this._keyStore=new Al(this.options.keys),this.setCollection(t,n)}setCollection(t,r){if(this._docs=t,r&&!(r instanceof ft))throw new Error(ml);this._myIndex=r||Tr(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){U(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const r=[];for(let n=0,s=this._docs.length;n<s;n+=1){const o=this._docs[n];t(o,n)&&(this.removeAt(n),n-=1,s-=1,r.push(o))}return r}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:r=-1}={}){const{includeMatches:n,includeScore:s,shouldSort:o,sortFn:a,ignoreFieldNorm:l}=this.options;let u=G(t)?G(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Ql(u,{ignoreFieldNorm:l}),o&&u.sort(a),Sr(r)&&r>-1&&(u=u.slice(0,r)),Yl(u,this._docs,{includeMatches:n,includeScore:s})}_searchStringList(t){const r=Ye(t,this.options),{records:n}=this._myIndex,s=[];return n.forEach(({v:o,i:a,n:l})=>{if(!U(o))return;const{isMatch:u,score:c,indices:f}=r.searchIn(o);u&&s.push({item:o,idx:a,matches:[{score:c,value:o,norm:l,indices:f}]})}),s}_searchLogical(t){const r=Br(t,this.options),n=(l,u,c)=>{if(!l.children){const{keyId:g,searcher:p}=l,v=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(u,g),searcher:p});return v&&v.length?[{idx:c,item:u,matches:v}]:[]}const f=[];for(let g=0,p=l.children.length;g<p;g+=1){const v=l.children[g],m=n(v,u,c);if(m.length)f.push(...m);else if(l.operator===xe.AND)return[]}return f},s=this._myIndex.records,o={},a=[];return s.forEach(({$:l,i:u})=>{if(U(l)){let c=n(r,l,u);c.length&&(o[u]||(o[u]={idx:u,item:l,matches:[]},a.push(o[u])),c.forEach(({matches:f})=>{o[u].matches.push(...f)}))}}),a}_searchObjectList(t){const r=Ye(t,this.options),{keys:n,records:s}=this._myIndex,o=[];return s.forEach(({$:a,i:l})=>{if(!U(a))return;let u=[];n.forEach((c,f)=>{u.push(...this._findMatches({key:c,value:a[f],searcher:r}))}),u.length&&o.push({idx:l,item:a,matches:u})}),o}_findMatches({key:t,value:r,searcher:n}){if(!U(r))return[];let s=[];if(Z(r))r.forEach(({v:o,i:a,n:l})=>{if(!U(o))return;const{isMatch:u,score:c,indices:f}=n.searchIn(o);u&&s.push({score:c,key:t,value:o,idx:a,norm:l,indices:f})});else{const{v:o,n:a}=r,{isMatch:l,score:u,indices:c}=n.searchIn(o);l&&s.push({score:u,key:t,value:o,norm:a,indices:c})}return s}}re.version="7.1.0";re.createIndex=Tr;re.parseIndex=Ol;re.config=E;re.parseQuery=Br;ql(Hl);const ce=new WeakMap,Xl=(...e)=>{var t;const r=e[0],n=(t=i.getCurrentInstance())==null?void 0:t.proxy;if(n==null&&!i.hasInjectionContext())throw new Error("injectLocal must be called in setup");return n&&ce.has(n)&&r in ce.get(n)?ce.get(n)[r]:i.inject(...e)};function Zl(e,t){var r;const n=(r=i.getCurrentInstance())==null?void 0:r.proxy;if(n==null)throw new Error("provideLocal must be called in setup");ce.has(n)||ce.set(n,Object.create(null));const s=ce.get(n);return s[e]=t,i.provide(e,t)}function eu(e,t){const r=Symbol(e.name||"InjectionState"),n=void 0;return[(...a)=>{const l=e(...a);return Zl(r,l),l},()=>Xl(r,n)]}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const[tu,de]=eu(e=>{const t=i.reactive(e);function r(l,u){N(u)&&X(u)?t.queryForm[l]=void 0:t.queryForm[l]=u}function n(l){let{key:u,label:c,value:f}=l;if(N(f)&&!X(f))return;let g="",p=f==null?void 0:f.toString();if(typeof f=="number"||typeof f=="boolean"||typeof f=="string")g=`${c}:${p}`,p.length>50&&(g=`${c}:${p.slice(0,50)}...`);else if(V(f)&&(g=`${c}:${p}`,p.length>50)){let d=0,h=0;for(let _=0;_<f.length;_++)if(h+=f[_].length+1,h>50){d=_+1;break}let b=f.slice(0,d);g=`${c}:${b.join(",").slice(0,50)}...`,f.length>d&&(g+=`等其余${f.length-d}项`)}const v={key:u,label:c,showStr:g,value:p},m=t.tags.findIndex(d=>d.key===u);m===-1?t.tags.push(v):t.tags.splice(m,1,v)}function s(l,u){t.queryForm[l.key]=void 0,u?t.tags.splice(u,1):t.tags=t.tags.filter(c=>c.key!==l.key)}function o(){t.tags.forEach(l=>{t.queryForm[l.key]=void 0}),t.tags=[]}function a(l={}){Object.keys(t.queryForm).forEach(u=>{t.queryForm[u]=l[u]??void 0}),t.tags=[]}return{state:t,setQuery:r,addTag:n,reduceTag:s,reduceAllTag:o,clearQuery:a}}),ru={class:"el-select-pop-search-container"},nu={class:"el-select-dropdown__wrap virtual-scroll-wrap"},iu={class:"check-all ak-relative el-select-dropdown__item"},su=["title"],ou={class:"el-select-dropdown__empty"},au={class:"custom-multi-footer"},lu=i.defineComponent({name:"JcSelectQuery",__name:"index",props:{field:{type:String,required:!0,default:""},options:{type:Array,default:()=>[],required:!0},allowCreate:{type:Boolean,default:!0},keyField:{type:Array,default:()=>["label","value"]},width:{type:String,default:"160px"},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},footerBtnName:{type:String,default:"搜索"},maxScrollHeight:{type:String,default:"240px"},isNeedFooter:{type:Boolean,default:!0}},setup(e,{expose:t}){const r=e,n=i.ref(),s=i.ref([]),o=i.reactive({}),a=i.ref(""),l=i.ref(),u=i.ref([]),c=i.ref([]),f=i.ref([]),g=i.ref(!1),p=i.ref(!1),{state:v,setQuery:m}=de();let d=-1,h=!1;const b=i.ref(),_=y=>{y&&(f.value=s.value,a.value="",c.value=u.value,F(f.value),i.nextTick(()=>{var w;(w=l.value)==null||w.focus()}))},x=y=>{f.value=f.value.filter(w=>w.value!==y.value)},A=y=>{m(r.field,y)},M=()=>{const y=a.value.trim();y!==""?c.value=b.value.search(y).map(w=>w.item):c.value=u.value},R=()=>{N(a.value)||c.value.map(y=>y.value).includes(a.value)||(u.value.unshift({label:a.value,value:a.value}),f.value.push({label:a.value,value:a.value}),s.value=f.value,m(r.field,s.value),i.nextTick(()=>{b.value=new re(u.value,{keys:r.keyField}),M()}))},B=y=>{f.value=y?c.value:[],p.value=!1,r.isNeedFooter||(s.value=f.value,m(r.field,s.value))},F=y=>{if(y.length===0){g.value=!1,p.value=!1;return}const w=y.length;g.value=w===c.value.length,p.value=w>0&&w<c.value.length;const{options:S}=r;let T=0;if(y.length>0){const C=y[y.length-1];T=S.findIndex(O=>O.value===C.value)}if(h){const C=Math.abs(d-T)+1,O=Math.min(d,T);let P=0;for(;P<C;){const D=O+P;Ia(y,S[D])===-1&&f.value.push(S[D]),P++}}r.isNeedFooter||(s.value=f.value,m(r.field,s.value))},L=y=>{!h&&!f.value.includes(y)&&(d=u.value.findIndex(w=>w.value===y.value))},$=()=>{var y;(y=n.value)==null||y.blur()},k=()=>{s.value=f.value,m(r.field,s.value),$()};return i.watch(()=>r.options,()=>{var y;!V(r.options)||((y=r.options)==null?void 0:y.length)===0||(c.value=r.options,u.value=gr(r.options),b.value=new re(u.value,{keys:r.keyField,threshold:.1}))},{immediate:!0,deep:!0}),i.watch(()=>v.queryForm[r.field],y=>{N(y)?(s.value=[],f.value=[]):s.value=V(y)?y:[]},{deep:!0}),i.onMounted(()=>{window.addEventListener("keydown",y=>{y.shiftKey&&(h=!0)}),window.addEventListener("keyup",()=>{h=!1}),i.nextTick(()=>{b.value=new re(u.value,{keys:r.keyField})})}),i.onUnmounted(()=>{window.removeEventListener("keydown",y=>{y.shiftKey&&(h=!0)}),window.removeEventListener("keyup",()=>{h=!1})}),i.onMounted(()=>{var y;n.value&&(o.focus=n.value.focus,o.blur=n.value.blur,o.selectedLabel=(y=n.value)==null?void 0:y.selectedLabel)}),t(o),(y,w)=>(i.openBlock(),i.createBlock(i.unref(I.ElSelect),i.mergeProps({ref_key:"selectRef",ref:n,modelValue:s.value,"onUpdate:modelValue":w[3]||(w[3]=S=>s.value=S)},y.$attrs,{multiple:"",clearable:"","show-arrow":!1,"collapse-tags":!0,"collapse-tags-tooltip":!0,"max-collapse-tags":1,size:e.size,style:{width:e.width},class:"jc-select","popper-class":"jc-select-popper",placeholder:"请选择",onVisibleChange:_,onRemoveTag:x,onChange:A}),i.createSlots({default:i.withCtx(()=>[i.createVNode(i.unref(I.ElOption),{value:"1",hidden:""}),i.createElementVNode("div",ru,[i.createVNode(i.unref(J.Search),{class:"selcet-icon search-icon"}),i.withDirectives(i.createElementVNode("input",{ref_key:"searchInputRef",ref:l,"onUpdate:modelValue":w[0]||(w[0]=S=>a.value=S),class:"el-select-pop__input",onInput:M},null,544),[[i.vModelText,a.value]]),e.allowCreate?(i.openBlock(),i.createBlock(i.unref(J.CirclePlus),{key:0,class:"selcet-icon circle-icon",onClick:R})):i.createCommentVNode("",!0)]),i.withDirectives(i.createElementVNode("div",nu,[i.createElementVNode("li",iu,[i.createVNode(i.unref(I.ElCheckbox),{modelValue:g.value,"onUpdate:modelValue":w[1]||(w[1]=S=>g.value=S),indeterminate:p.value,size:e.size,onChange:B},{default:i.withCtx(()=>w[4]||(w[4]=[i.createTextVNode("全选")])),_:1,__:[4]},8,["modelValue","indeterminate","size"])]),i.createVNode(i.unref(I.ElCheckboxGroup),{modelValue:f.value,"onUpdate:modelValue":w[2]||(w[2]=S=>f.value=S),onChange:F,size:e.size},{default:i.withCtx(()=>[i.createVNode(i.unref(ct),{class:"recycle-scroller",items:c.value,"item-size":30,"key-field":"value",style:i.normalizeStyle({maxHeight:e.maxScrollHeight})},{default:i.withCtx(({item:S})=>[i.createElementVNode("li",{class:"el-select-dropdown__item",title:S.label},[i.createVNode(i.unref(I.ElCheckbox),{size:e.size,value:S,label:S,disabled:S.disabled,onClick:T=>L(S)},{default:i.withCtx(()=>[i.renderSlot(y.$slots,"default",{scope:S},()=>[i.createElementVNode("span",null,i.toDisplayString(S.label),1)])]),_:2},1032,["size","value","label","disabled","onClick"])],8,su)]),_:3},8,["items","style"])]),_:3},8,["modelValue","size"])],512),[[i.vShow,c.value.length>0]]),i.withDirectives(i.createElementVNode("p",ou,"无数据",512),[[i.vShow,c.value.length===0]])]),_:2},[e.isNeedFooter?{name:"footer",fn:i.withCtx(()=>[i.createElementVNode("div",au,[w[6]||(w[6]=i.createElementVNode("span",{class:"shift-tips"},[i.createElementVNode("span",null,"提示:按住Shift可以快速多选")],-1)),w[7]||(w[7]=i.createElementVNode("span",{class:"counts"},null,-1)),i.createElementVNode("span",null,[i.createVNode(i.unref(I.ElButton),{size:e.size,link:"",type:"primary",onClick:$},{default:i.withCtx(()=>w[5]||(w[5]=[i.createTextVNode("关闭")])),_:1,__:[5]},8,["size"]),i.createVNode(i.unref(I.ElButton),{type:"primary",size:e.size,onClick:k},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.footerBtnName),1)]),_:1},8,["size"])])])]),key:"0"}:void 0]),1040,["modelValue","size","style"]))}}),uu=e=>(e.install=t=>{const r=e.name;t.component(r,e)},e),Fr=uu(lu),cu={style:{"max-width":"100px"}},fu=i.defineComponent({name:"JcDatePicker",__name:"index",props:{fieldList:{type:Array,require:!0,default:()=>[]},type:{type:String,default:"daterange",validator:e=>["daterange","monthrange"].includes(e)},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},width:{type:String,default:"320px"}},emits:["fieldChange"],setup(e,{expose:t,emit:r}){const n=e,s=r,o=i.ref([]),a=i.ref([]),l=i.ref(""),u=i.ref(""),{state:c,setQuery:f}=de(),g=()=>{n.fieldList.forEach(h=>{f(h.value,null)})},p=h=>{g(),f(h,o.value),s("fieldChange",h)},v=()=>{u.value=l.value,a.value=o.value,f(l.value,o.value)};i.watch(()=>n.fieldList,h=>{!N(h)&&N(l.value)&&(l.value=h[0].value,o.value=[])},{immediate:!0,deep:!0}),i.watch(n.fieldList.map(h=>()=>c.queryForm[h.value]),h=>{const b=h.findIndex(_=>!N(_));b===-1?(l.value=n.fieldList[0].value,o.value=[]):(l.value=n.fieldList[b].value,o.value=h[b]||[])},{deep:!0});const m=i.ref(),d=i.reactive({});return i.onMounted(()=>{var h,b,_,x;m.value&&(d.focus=(h=m.value)==null?void 0:h.focus,d.blur=(b=m.value)==null?void 0:b.blur,d.handleOpen=(_=m.value)==null?void 0:_.handleOpen,d.handleClose=(x=m.value)==null?void 0:x.handleClose)}),t(d),(h,b)=>{const _=i.resolveComponent("el-option"),x=i.resolveComponent("el-select"),A=i.resolveComponent("el-date-picker");return i.openBlock(),i.createElementBlock("div",{class:"jc-date-picker",style:i.normalizeStyle({width:e.width})},[i.createElementVNode("div",cu,[i.createVNode(x,{modelValue:l.value,"onUpdate:modelValue":b[0]||(b[0]=M=>l.value=M),size:e.size,class:"select-field",onChange:p},{prefix:i.withCtx(()=>[i.createTextVNode(i.toDisplayString((e.fieldList.find(M=>M.value===l.value)||{}).label),1)]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.fieldList,M=>(i.openBlock(),i.createBlock(_,{key:M.value,label:M.label,value:M.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","size"])]),i.createVNode(A,i.mergeProps({ref_key:"datePickerRef",ref:m,modelValue:o.value,"onUpdate:modelValue":b[1]||(b[1]=M=>o.value=M),type:e.type},h.$attrs,{"range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",size:e.size,"value-format":e.type==="daterange"?"YYYY-MM-DD":"YYYY-MM",onChange:v}),null,16,["modelValue","type","size","value-format"])],4)}}}),du=e=>(e.install=t=>{const r=e.name;t.component(r,e)},e),zr=du(fu),hu={class:"suffixContent"},pu=i.defineComponent({name:"JcInputSwitch",__name:"index",props:{fieldList:{type:Array,required:!0,default:()=>[]},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},width:{type:String,default:"320px"}},emits:["fieldChange"],setup(e,{expose:t,emit:r}){const n=e,s=r,o=i.ref(""),a=i.ref(""),l=i.ref(""),u=i.ref(""),{state:c,setQuery:f}=de(),g=()=>{n.fieldList.forEach(b=>{f(b.value,null)})},p=()=>{o.value="",g()},v=b=>{g(),f(b,o.value),s("fieldChange",b)},m=()=>{a.value=o.value,u.value=l.value,f(l.value,o.value.trim())};i.watch(()=>n.fieldList,b=>{!N(b)&&N(l.value)&&(l.value=b[0].value,o.value="")},{immediate:!0,deep:!0}),i.watch(n.fieldList.map(b=>()=>c.queryForm[b.value]),b=>{const _=b.findIndex(x=>!N(x));_===-1?(l.value=n.fieldList[0].value,o.value=""):(l.value=n.fieldList[_].value,o.value=b[_]||"")},{deep:!0});const d=i.ref(),h=i.reactive({});return i.onMounted(()=>{var b,_,x,A,M,R,B,F,L,$;d.value&&(h.blur=(b=d.value)==null?void 0:b.blur,h.clear=(_=d.value)==null?void 0:_.clear,h.focus=(x=d.value)==null?void 0:x.focus,h.input=(A=d.value)==null?void 0:A.input,h.ref=(M=d.value)==null?void 0:M.ref,h.resizeTextarea=(R=d.value)==null?void 0:R.resizeTextarea,h.select=(B=d.value)==null?void 0:B.select,h.textarea=(F=d.value)==null?void 0:F.textarea,h.textareaStyle=(L=d.value)==null?void 0:L.textareaStyle,h.isComposing=($=d.value)==null?void 0:$.isComposing)}),t(h),(b,_)=>(i.openBlock(),i.createBlock(i.unref(I.ElInput),i.mergeProps({ref_key:"inputRef",ref:d,modelValue:o.value,"onUpdate:modelValue":_[1]||(_[1]=x=>o.value=x),modelModifiers:{trim:!0}},b.$attrs,{placeholder:"请输入内容",style:{width:e.width},size:e.size,class:"jc-input jc-input-switch"}),{prepend:i.withCtx(()=>[i.createVNode(i.unref(I.ElSelect),{modelValue:l.value,"onUpdate:modelValue":_[0]||(_[0]=x=>l.value=x),size:e.size,class:"select-field",onChange:v},{prefix:i.withCtx(()=>[i.createTextVNode(i.toDisplayString((e.fieldList.find(x=>x.value===l.value)||{}).label),1)]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.fieldList,x=>(i.openBlock(),i.createBlock(i.unref(I.ElOption),{key:x.value,label:x.label,value:x.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","size"])]),suffix:i.withCtx(()=>[i.createElementVNode("div",hu,[i.withDirectives(i.createVNode(i.unref(I.ElIcon),{class:"el-input__icon",onClick:p},{default:i.withCtx(()=>[i.createVNode(i.unref(J.Close))]),_:1},512),[[i.vShow,o.value]]),i.createVNode(i.unref(I.ElIcon),{class:"el-input__icon",onClick:m},{default:i.withCtx(()=>[i.createVNode(i.unref(J.Search))]),_:1})])]),_:1},16,["modelValue","style","size"]))}}),gu=e=>(e.install=t=>{const r=e.name;t.component(r,e)},e),jr=gu(pu),vu={class:"suffixContent"},mu={class:"popover-body"},yu={class:"popover-btn"},bu={class:"popover-btn-right"},wu=i.defineComponent({name:"JcInputComplex",__name:"index",props:{fieldList:{type:Array,require:!0,default:()=>[]},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},width:{type:String,default:"320px"}},emits:["fieldChange"],setup(e,{expose:t,emit:r}){const n=e,s=r,o=i.ref(""),a=i.ref(""),l=i.ref(""),u=i.ref(""),c=i.ref(!1),f=i.computed(()=>l.value+"List"),g=i.computed(()=>{var T;return((T=n.fieldList.find(C=>C.value===l.value))==null?void 0:T.label)||""}),p=i.ref(""),{state:v,setQuery:m,addTag:d,reduceTag:h}=de(),b={},_={};n.fieldList.forEach(T=>{b[T.value]=null,_[T.value+"List"]=[]});const x=T=>{c.value=!1,A(),s("fieldChange",T)},A=()=>{v.queryForm[f.value]?p.value=v.queryForm[f.value].join(`
|
|
3
|
-
`):p.value=""},M=()=>{o.value="",m(l.value,
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("vue"),J=require("@element-plus/icons-vue"),I=require("element-plus");require("element-plus/es/components/select/style/index"),require("element-plus/es/components/option/style/index"),require("element-plus/es/components/checkbox-group/style/index"),require("element-plus/es/components/checkbox/style/index"),require("element-plus/es/components/button/style/index"),require("element-plus/es/components/input/style/index"),require("element-plus/es/components/icon/style/index"),require("element-plus/es/components/popover/style/index"),require("element-plus/es/components/message/style/index"),require("element-plus/es/components/tag/style/index"),require("element-plus/es/components/tooltip/style/index"),require("element-plus/es/components/card/style/index");var Jt=typeof global=="object"&&global&&global.Object===Object&&global,Pr=typeof self=="object"&&self&&self.Object===Object&&self,W=Jt||Pr||Function("return this")(),Q=W.Symbol,Yt=Object.prototype,Vr=Yt.hasOwnProperty,Rr=Yt.toString,he=Q?Q.toStringTag:void 0;function Ur(e){var t=Vr.call(e,he),r=e[he];try{e[he]=void 0;var n=!0}catch{}var s=Rr.call(e);return n&&(t?e[he]=r:delete e[he]),s}var Hr=Object.prototype,qr=Hr.toString;function Gr(e){return qr.call(e)}var Kr="[object Null]",Qr="[object Undefined]",gt=Q?Q.toStringTag:void 0;function oe(e){return e==null?e===void 0?Qr:Kr:gt&> in Object(e)?Ur(e):Gr(e)}function Y(e){return e!=null&&typeof e=="object"}var Wr="[object Symbol]";function $e(e){return typeof e=="symbol"||Y(e)&&oe(e)==Wr}function Xt(e,t){for(var r=-1,n=e==null?0:e.length,s=Array(n);++r<n;)s[r]=t(e[r],r,e);return s}var V=Array.isArray,vt=Q?Q.prototype:void 0,mt=vt?vt.toString:void 0;function Zt(e){if(typeof e=="string")return e;if(V(e))return Xt(e,Zt)+"";if($e(e))return mt?mt.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Jr=/\s/;function Yr(e){for(var t=e.length;t--&&Jr.test(e.charAt(t)););return t}var Xr=/^\s+/;function Zr(e){return e&&e.slice(0,Yr(e)+1).replace(Xr,"")}function X(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yt=NaN,en=/^[-+]0x[0-9a-f]+$/i,tn=/^0b[01]+$/i,rn=/^0o[0-7]+$/i,nn=parseInt;function sn(e){if(typeof e=="number")return e;if($e(e))return yt;if(X(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=X(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Zr(e);var r=tn.test(e);return r||rn.test(e)?nn(e.slice(2),r?2:8):en.test(e)?yt:+e}var bt=1/0,on=17976931348623157e292;function an(e){if(!e)return e===0?e:0;if(e=sn(e),e===bt||e===-bt){var t=e<0?-1:1;return t*on}return e===e?e:0}function ln(e){var t=an(e),r=t%1;return t===t?r?t-r:t:0}function un(e){return e}var cn="[object AsyncFunction]",fn="[object Function]",dn="[object GeneratorFunction]",hn="[object Proxy]";function er(e){if(!X(e))return!1;var t=oe(e);return t==fn||t==dn||t==cn||t==hn}var ze=W["__core-js_shared__"],wt=function(){var e=/[^.]+$/.exec(ze&&ze.keys&&ze.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function pn(e){return!!wt&&wt in e}var gn=Function.prototype,vn=gn.toString;function ae(e){if(e!=null){try{return vn.call(e)}catch{}try{return e+""}catch{}}return""}var mn=/[\\^$.*+?()[\]{}|]/g,yn=/^\[object .+?Constructor\]$/,bn=Function.prototype,wn=Object.prototype,_n=bn.toString,An=wn.hasOwnProperty,Cn=RegExp("^"+_n.call(An).replace(mn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sn(e){if(!X(e)||pn(e))return!1;var t=er(e)?Cn:yn;return t.test(ae(e))}function En(e,t){return e==null?void 0:e[t]}function le(e,t){var r=En(e,t);return Sn(r)?r:void 0}var De=le(W,"WeakMap"),_t=Object.create,xn=function(){function e(){}return function(t){if(!X(t))return{};if(_t)return _t(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),At=function(){try{var e=le(Object,"defineProperty");return e({},"",{}),e}catch{}}();function $n(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}function tr(e,t,r,n){for(var s=e.length,o=r+-1;++o<s;)if(t(e[o],o,e))return o;return-1}function Tn(e){return e!==e}function In(e,t,r){for(var n=r-1,s=e.length;++n<s;)if(e[n]===t)return n;return-1}function On(e,t,r){return t===t?In(e,t,r):tr(e,Tn,r)}var Mn=9007199254740991,Bn=/^(?:0|[1-9]\d*)$/;function rr(e,t){var r=typeof e;return t=t??Mn,!!t&&(r=="number"||r!="symbol"&&Bn.test(e))&&e>-1&&e%1==0&&e<t}function Fn(e,t,r){t=="__proto__"&&At?At(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function et(e,t){return e===t||e!==e&&t!==t}var zn=Object.prototype,jn=zn.hasOwnProperty;function kn(e,t,r){var n=e[t];(!(jn.call(e,t)&&et(n,r))||r===void 0&&!(t in e))&&Fn(e,t,r)}var Ln=9007199254740991;function tt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ln}function Te(e){return e!=null&&tt(e.length)&&!er(e)}var Nn=Object.prototype;function rt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Nn;return e===r}function Dn(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Pn="[object Arguments]";function Ct(e){return Y(e)&&oe(e)==Pn}var nr=Object.prototype,Vn=nr.hasOwnProperty,Rn=nr.propertyIsEnumerable,nt=Ct(function(){return arguments}())?Ct:function(e){return Y(e)&&Vn.call(e,"callee")&&!Rn.call(e,"callee")};function Un(){return!1}var ir=typeof exports=="object"&&exports&&!exports.nodeType&&exports,St=ir&&typeof module=="object"&&module&&!module.nodeType&&module,Hn=St&&St.exports===ir,Et=Hn?W.Buffer:void 0,qn=Et?Et.isBuffer:void 0,ge=qn||Un,Gn="[object Arguments]",Kn="[object Array]",Qn="[object Boolean]",Wn="[object Date]",Jn="[object Error]",Yn="[object Function]",Xn="[object Map]",Zn="[object Number]",ei="[object Object]",ti="[object RegExp]",ri="[object Set]",ni="[object String]",ii="[object WeakMap]",si="[object ArrayBuffer]",oi="[object DataView]",ai="[object Float32Array]",li="[object Float64Array]",ui="[object Int8Array]",ci="[object Int16Array]",fi="[object Int32Array]",di="[object Uint8Array]",hi="[object Uint8ClampedArray]",pi="[object Uint16Array]",gi="[object Uint32Array]",j={};j[ai]=j[li]=j[ui]=j[ci]=j[fi]=j[di]=j[hi]=j[pi]=j[gi]=!0;j[Gn]=j[Kn]=j[si]=j[Qn]=j[oi]=j[Wn]=j[Jn]=j[Yn]=j[Xn]=j[Zn]=j[ei]=j[ti]=j[ri]=j[ni]=j[ii]=!1;function vi(e){return Y(e)&&tt(e.length)&&!!j[oe(e)]}function it(e){return function(t){return e(t)}}var sr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,pe=sr&&typeof module=="object"&&module&&!module.nodeType&&module,mi=pe&&pe.exports===sr,je=mi&&Jt.process,fe=function(){try{var e=pe&&pe.require&&pe.require("util").types;return e||je&&je.binding&&je.binding("util")}catch{}}(),xt=fe&&fe.isTypedArray,st=xt?it(xt):vi,yi=Object.prototype,bi=yi.hasOwnProperty;function wi(e,t){var r=V(e),n=!r&&nt(e),s=!r&&!n&&ge(e),o=!r&&!n&&!s&&st(e),a=r||n||s||o,l=a?Dn(e.length,String):[],u=l.length;for(var c in e)bi.call(e,c)&&!(a&&(c=="length"||s&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||rr(c,u)))&&l.push(c);return l}function or(e,t){return function(r){return e(t(r))}}var _i=or(Object.keys,Object),Ai=Object.prototype,Ci=Ai.hasOwnProperty;function ar(e){if(!rt(e))return _i(e);var t=[];for(var r in Object(e))Ci.call(e,r)&&r!="constructor"&&t.push(r);return t}function Ie(e){return Te(e)?wi(e):ar(e)}var Si=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ei=/^\w*$/;function ot(e,t){if(V(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||$e(e)?!0:Ei.test(e)||!Si.test(e)||t!=null&&e in Object(t)}var ve=le(Object,"create");function xi(){this.__data__=ve?ve(null):{},this.size=0}function $i(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ti="__lodash_hash_undefined__",Ii=Object.prototype,Oi=Ii.hasOwnProperty;function Mi(e){var t=this.__data__;if(ve){var r=t[e];return r===Ti?void 0:r}return Oi.call(t,e)?t[e]:void 0}var Bi=Object.prototype,Fi=Bi.hasOwnProperty;function zi(e){var t=this.__data__;return ve?t[e]!==void 0:Fi.call(t,e)}var ji="__lodash_hash_undefined__";function ki(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ve&&t===void 0?ji:t,this}function se(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}se.prototype.clear=xi;se.prototype.delete=$i;se.prototype.get=Mi;se.prototype.has=zi;se.prototype.set=ki;function Li(){this.__data__=[],this.size=0}function Oe(e,t){for(var r=e.length;r--;)if(et(e[r][0],t))return r;return-1}var Ni=Array.prototype,Di=Ni.splice;function Pi(e){var t=this.__data__,r=Oe(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Di.call(t,r,1),--this.size,!0}function Vi(e){var t=this.__data__,r=Oe(t,e);return r<0?void 0:t[r][1]}function Ri(e){return Oe(this.__data__,e)>-1}function Ui(e,t){var r=this.__data__,n=Oe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function ee(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ee.prototype.clear=Li;ee.prototype.delete=Pi;ee.prototype.get=Vi;ee.prototype.has=Ri;ee.prototype.set=Ui;var me=le(W,"Map");function Hi(){this.size=0,this.__data__={hash:new se,map:new(me||ee),string:new se}}function qi(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Me(e,t){var r=e.__data__;return qi(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Gi(e){var t=Me(this,e).delete(e);return this.size-=t?1:0,t}function Ki(e){return Me(this,e).get(e)}function Qi(e){return Me(this,e).has(e)}function Wi(e,t){var r=Me(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function te(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}te.prototype.clear=Hi;te.prototype.delete=Gi;te.prototype.get=Ki;te.prototype.has=Qi;te.prototype.set=Wi;var Ji="Expected a function";function at(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ji);var r=function(){var n=arguments,s=t?t.apply(this,n):n[0],o=r.cache;if(o.has(s))return o.get(s);var a=e.apply(this,n);return r.cache=o.set(s,a)||o,a};return r.cache=new(at.Cache||te),r}at.Cache=te;var Yi=500;function Xi(e){var t=at(e,function(n){return r.size===Yi&&r.clear(),n}),r=t.cache;return t}var Zi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,es=/\\(\\)?/g,ts=Xi(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Zi,function(r,n,s,o){t.push(s?o.replace(es,"$1"):n||r)}),t});function rs(e){return e==null?"":Zt(e)}function lr(e,t){return V(e)?e:ot(e,t)?[e]:ts(rs(e))}function Be(e){if(typeof e=="string"||$e(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ur(e,t){t=lr(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Be(t[r++])];return r&&r==n?e:void 0}function ns(e,t,r){var n=e==null?void 0:ur(e,t);return n===void 0?r:n}function is(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}var ss=or(Object.getPrototypeOf,Object);function os(){this.__data__=new ee,this.size=0}function as(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function ls(e){return this.__data__.get(e)}function us(e){return this.__data__.has(e)}var cs=200;function fs(e,t){var r=this.__data__;if(r instanceof ee){var n=r.__data__;if(!me||n.length<cs-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new te(n)}return r.set(e,t),this.size=r.size,this}function K(e){var t=this.__data__=new ee(e);this.size=t.size}K.prototype.clear=os;K.prototype.delete=as;K.prototype.get=ls;K.prototype.has=us;K.prototype.set=fs;var cr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$t=cr&&typeof module=="object"&&module&&!module.nodeType&&module,ds=$t&&$t.exports===cr,Tt=ds?W.Buffer:void 0;Tt&&Tt.allocUnsafe;function hs(e,t){return e.slice()}function fr(e,t){for(var r=-1,n=e==null?0:e.length,s=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[s++]=a)}return o}function ps(){return[]}var gs=Object.prototype,vs=gs.propertyIsEnumerable,It=Object.getOwnPropertySymbols,ms=It?function(e){return e==null?[]:(e=Object(e),fr(It(e),function(t){return vs.call(e,t)}))}:ps;function ys(e,t,r){var n=t(e);return V(e)?n:is(n,r(e))}function Pe(e){return ys(e,Ie,ms)}var Ve=le(W,"DataView"),Re=le(W,"Promise"),Ue=le(W,"Set"),Ot="[object Map]",bs="[object Object]",Mt="[object Promise]",Bt="[object Set]",Ft="[object WeakMap]",zt="[object DataView]",ws=ae(Ve),_s=ae(me),As=ae(Re),Cs=ae(Ue),Ss=ae(De),H=oe;(Ve&&H(new Ve(new ArrayBuffer(1)))!=zt||me&&H(new me)!=Ot||Re&&H(Re.resolve())!=Mt||Ue&&H(new Ue)!=Bt||De&&H(new De)!=Ft)&&(H=function(e){var t=oe(e),r=t==bs?e.constructor:void 0,n=r?ae(r):"";if(n)switch(n){case ws:return zt;case _s:return Ot;case As:return Mt;case Cs:return Bt;case Ss:return Ft}return t});var Es=Object.prototype,xs=Es.hasOwnProperty;function $s(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&xs.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Ce=W.Uint8Array;function lt(e){var t=new e.constructor(e.byteLength);return new Ce(t).set(new Ce(e)),t}function Ts(e,t){var r=lt(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var Is=/\w*$/;function Os(e){var t=new e.constructor(e.source,Is.exec(e));return t.lastIndex=e.lastIndex,t}var jt=Q?Q.prototype:void 0,kt=jt?jt.valueOf:void 0;function Ms(e){return kt?Object(kt.call(e)):{}}function Bs(e,t){var r=lt(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}var Fs="[object Boolean]",zs="[object Date]",js="[object Map]",ks="[object Number]",Ls="[object RegExp]",Ns="[object Set]",Ds="[object String]",Ps="[object Symbol]",Vs="[object ArrayBuffer]",Rs="[object DataView]",Us="[object Float32Array]",Hs="[object Float64Array]",qs="[object Int8Array]",Gs="[object Int16Array]",Ks="[object Int32Array]",Qs="[object Uint8Array]",Ws="[object Uint8ClampedArray]",Js="[object Uint16Array]",Ys="[object Uint32Array]";function Xs(e,t,r){var n=e.constructor;switch(t){case Vs:return lt(e);case Fs:case zs:return new n(+e);case Rs:return Ts(e);case Us:case Hs:case qs:case Gs:case Ks:case Qs:case Ws:case Js:case Ys:return Bs(e);case js:return new n;case ks:case Ds:return new n(e);case Ls:return Os(e);case Ns:return new n;case Ps:return Ms(e)}}function Zs(e){return typeof e.constructor=="function"&&!rt(e)?xn(ss(e)):{}}var eo="[object Map]";function to(e){return Y(e)&&H(e)==eo}var Lt=fe&&fe.isMap,ro=Lt?it(Lt):to,no="[object Set]";function io(e){return Y(e)&&H(e)==no}var Nt=fe&&fe.isSet,so=Nt?it(Nt):io,dr="[object Arguments]",oo="[object Array]",ao="[object Boolean]",lo="[object Date]",uo="[object Error]",hr="[object Function]",co="[object GeneratorFunction]",fo="[object Map]",ho="[object Number]",pr="[object Object]",po="[object RegExp]",go="[object Set]",vo="[object String]",mo="[object Symbol]",yo="[object WeakMap]",bo="[object ArrayBuffer]",wo="[object DataView]",_o="[object Float32Array]",Ao="[object Float64Array]",Co="[object Int8Array]",So="[object Int16Array]",Eo="[object Int32Array]",xo="[object Uint8Array]",$o="[object Uint8ClampedArray]",To="[object Uint16Array]",Io="[object Uint32Array]",z={};z[dr]=z[oo]=z[bo]=z[wo]=z[ao]=z[lo]=z[_o]=z[Ao]=z[Co]=z[So]=z[Eo]=z[fo]=z[ho]=z[pr]=z[po]=z[go]=z[vo]=z[mo]=z[xo]=z[$o]=z[To]=z[Io]=!0;z[uo]=z[hr]=z[yo]=!1;function we(e,t,r,n,s,o){var a;if(a!==void 0)return a;if(!X(e))return e;var l=V(e);if(l)a=$s(e);else{var u=H(e),c=u==hr||u==co;if(ge(e))return hs(e);if(u==pr||u==dr||c&&!s)a=c?{}:Zs(e);else{if(!z[u])return s?e:{};a=Xs(e,u)}}o||(o=new K);var f=o.get(e);if(f)return f;o.set(e,a),so(e)?e.forEach(function(v){a.add(we(v,t,r,v,e,o))}):ro(e)&&e.forEach(function(v,m){a.set(m,we(v,t,r,m,e,o))});var g=Pe,p=l?void 0:g(e);return $n(p||e,function(v,m){p&&(m=v,v=e[m]),kn(a,m,we(v,t,r,m,e,o))}),a}var Oo=1,Mo=4;function gr(e){return we(e,Oo|Mo)}var Bo="__lodash_hash_undefined__";function Fo(e){return this.__data__.set(e,Bo),this}function zo(e){return this.__data__.has(e)}function Se(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new te;++t<r;)this.add(e[t])}Se.prototype.add=Se.prototype.push=Fo;Se.prototype.has=zo;function jo(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function ko(e,t){return e.has(t)}var Lo=1,No=2;function vr(e,t,r,n,s,o){var a=r&Lo,l=e.length,u=t.length;if(l!=u&&!(a&&u>l))return!1;var c=o.get(e),f=o.get(t);if(c&&f)return c==t&&f==e;var g=-1,p=!0,v=r&No?new Se:void 0;for(o.set(e,t),o.set(t,e);++g<l;){var m=e[g],d=t[g];if(n)var h=a?n(d,m,g,t,e,o):n(m,d,g,e,t,o);if(h!==void 0){if(h)continue;p=!1;break}if(v){if(!jo(t,function(b,_){if(!ko(v,_)&&(m===b||s(m,b,r,n,o)))return v.push(_)})){p=!1;break}}else if(!(m===d||s(m,d,r,n,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function Do(e){var t=-1,r=Array(e.size);return e.forEach(function(n,s){r[++t]=[s,n]}),r}function Po(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Vo=1,Ro=2,Uo="[object Boolean]",Ho="[object Date]",qo="[object Error]",Go="[object Map]",Ko="[object Number]",Qo="[object RegExp]",Wo="[object Set]",Jo="[object String]",Yo="[object Symbol]",Xo="[object ArrayBuffer]",Zo="[object DataView]",Dt=Q?Q.prototype:void 0,ke=Dt?Dt.valueOf:void 0;function ea(e,t,r,n,s,o,a){switch(r){case Zo:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Xo:return!(e.byteLength!=t.byteLength||!o(new Ce(e),new Ce(t)));case Uo:case Ho:case Ko:return et(+e,+t);case qo:return e.name==t.name&&e.message==t.message;case Qo:case Jo:return e==t+"";case Go:var l=Do;case Wo:var u=n&Vo;if(l||(l=Po),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;n|=Ro,a.set(e,t);var f=vr(l(e),l(t),n,s,o,a);return a.delete(e),f;case Yo:if(ke)return ke.call(e)==ke.call(t)}return!1}var ta=1,ra=Object.prototype,na=ra.hasOwnProperty;function ia(e,t,r,n,s,o){var a=r&ta,l=Pe(e),u=l.length,c=Pe(t),f=c.length;if(u!=f&&!a)return!1;for(var g=u;g--;){var p=l[g];if(!(a?p in t:na.call(t,p)))return!1}var v=o.get(e),m=o.get(t);if(v&&m)return v==t&&m==e;var d=!0;o.set(e,t),o.set(t,e);for(var h=a;++g<u;){p=l[g];var b=e[p],_=t[p];if(n)var x=a?n(_,b,p,t,e,o):n(b,_,p,e,t,o);if(!(x===void 0?b===_||s(b,_,r,n,o):x)){d=!1;break}h||(h=p=="constructor")}if(d&&!h){var A=e.constructor,M=t.constructor;A!=M&&"constructor"in e&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof M=="function"&&M instanceof M)&&(d=!1)}return o.delete(e),o.delete(t),d}var sa=1,Pt="[object Arguments]",Vt="[object Array]",ye="[object Object]",oa=Object.prototype,Rt=oa.hasOwnProperty;function aa(e,t,r,n,s,o){var a=V(e),l=V(t),u=a?Vt:H(e),c=l?Vt:H(t);u=u==Pt?ye:u,c=c==Pt?ye:c;var f=u==ye,g=c==ye,p=u==c;if(p&&ge(e)){if(!ge(t))return!1;a=!0,f=!1}if(p&&!f)return o||(o=new K),a||st(e)?vr(e,t,r,n,s,o):ea(e,t,u,r,n,s,o);if(!(r&sa)){var v=f&&Rt.call(e,"__wrapped__"),m=g&&Rt.call(t,"__wrapped__");if(v||m){var d=v?e.value():e,h=m?t.value():t;return o||(o=new K),s(d,h,r,n,o)}}return p?(o||(o=new K),ia(e,t,r,n,s,o)):!1}function ut(e,t,r,n,s){return e===t?!0:e==null||t==null||!Y(e)&&!Y(t)?e!==e&&t!==t:aa(e,t,r,n,ut,s)}var la=1,ua=2;function ca(e,t,r,n){var s=r.length,o=s;if(e==null)return!o;for(e=Object(e);s--;){var a=r[s];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++s<o;){a=r[s];var l=a[0],u=e[l],c=a[1];if(a[2]){if(u===void 0&&!(l in e))return!1}else{var f=new K,g;if(!(g===void 0?ut(c,u,la|ua,n,f):g))return!1}}return!0}function mr(e){return e===e&&!X(e)}function fa(e){for(var t=Ie(e),r=t.length;r--;){var n=t[r],s=e[n];t[r]=[n,s,mr(s)]}return t}function yr(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function da(e){var t=fa(e);return t.length==1&&t[0][2]?yr(t[0][0],t[0][1]):function(r){return r===e||ca(r,e,t)}}function ha(e,t){return e!=null&&t in Object(e)}function pa(e,t,r){t=lr(t,e);for(var n=-1,s=t.length,o=!1;++n<s;){var a=Be(t[n]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++n!=s?o:(s=e==null?0:e.length,!!s&&tt(s)&&rr(a,s)&&(V(e)||nt(e)))}function ga(e,t){return e!=null&&pa(e,t,ha)}var va=1,ma=2;function ya(e,t){return ot(e)&&mr(t)?yr(Be(e),t):function(r){var n=ns(r,e);return n===void 0&&n===t?ga(r,e):ut(t,n,va|ma)}}function ba(e){return function(t){return t==null?void 0:t[e]}}function wa(e){return function(t){return ur(t,e)}}function _a(e){return ot(e)?ba(Be(e)):wa(e)}function br(e){return typeof e=="function"?e:e==null?un:typeof e=="object"?V(e)?ya(e[0],e[1]):da(e):_a(e)}function Aa(e){return function(t,r,n){for(var s=-1,o=Object(t),a=n(t),l=a.length;l--;){var u=a[++s];if(r(o[u],u,o)===!1)break}return t}}var Ca=Aa();function Sa(e,t){return e&&Ca(e,t,Ie)}function Ea(e,t){return function(r,n){if(r==null)return r;if(!Te(r))return e(r,n);for(var s=r.length,o=-1,a=Object(r);++o<s&&n(a[o],o,a)!==!1;);return r}}var xa=Ea(Sa);function $a(e,t){var r=[];return xa(e,function(n,s,o){t(n,s,o)&&r.push(n)}),r}function Ta(e,t){var r=V(e)?fr:$a;return r(e,br(t))}function Ia(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var s=0;return tr(e,br(t),s)}var Oa="[object String]";function Ma(e){return typeof e=="string"||!V(e)&&Y(e)&&oe(e)==Oa}function Ba(e,t){return Xt(t,function(r){return e[r]})}function Fa(e){return e==null?[]:Ba(e,Ie(e))}var za=Math.max;function ja(e,t,r,n){e=Te(e)?e:Fa(e),r=r?ln(r):0;var s=e.length;return r<0&&(r=za(s+r,0)),Ma(e)?r<=s&&e.indexOf(t,r)>-1:!!s&&On(e,t,r)>-1}var ka="[object Map]",La="[object Set]",Na=Object.prototype,Da=Na.hasOwnProperty;function N(e){if(e==null)return!0;if(Te(e)&&(V(e)||typeof e=="string"||typeof e.splice=="function"||ge(e)||st(e)||nt(e)))return!e.length;var t=H(e);if(t==ka||t==La)return!e.size;if(rt(e))return!ar(e).length;for(var r in e)if(Da.call(e,r))return!1;return!0}function Pa(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let _e;function He(){He.init||(He.init=!0,_e=Pa()!==-1)}var Fe={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){He(),i.nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",_e&&this.$el.appendChild(e),e.data="about:blank",_e||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!_e&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Va=i.withScopeId("data-v-b329ee4c");i.pushScopeId("data-v-b329ee4c");const Ra={class:"resize-observer",tabindex:"-1"};i.popScopeId();const Ua=Va((e,t,r,n,s,o)=>(i.openBlock(),i.createBlock("div",Ra)));Fe.render=Ua;Fe.__scopeId="data-v-b329ee4c";Fe.__file="src/components/ResizeObserver.vue";function Ae(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(t){return typeof t}:Ae=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ae(e)}function Ha(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qa(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ga(e,t,r){return t&&qa(e.prototype,t),e}function Ut(e){return Ka(e)||Qa(e)||Wa(e)||Ja()}function Ka(e){if(Array.isArray(e))return qe(e)}function Qa(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Wa(e,t){if(e){if(typeof e=="string")return qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qe(e,t)}}function qe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ja(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ya(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Xa(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,s,o,a=function(u){for(var c=arguments.length,f=new Array(c>1?c-1:0),g=1;g<c;g++)f[g-1]=arguments[g];if(o=f,!(n&&u===s)){var p=r.leading;typeof p=="function"&&(p=p(u,s)),(!n||u!==s)&&p&&e.apply(void 0,[u].concat(Ut(o))),s=u,clearTimeout(n),n=setTimeout(function(){e.apply(void 0,[u].concat(Ut(o))),n=0},t)}};return a._clear=function(){clearTimeout(n),n=null},a}function wr(e,t){if(e===t)return!0;if(Ae(e)==="object"){for(var r in e)if(!wr(e[r],t[r]))return!1;return!0}return!1}var Za=function(){function e(t,r,n){Ha(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,n)}return Ga(e,[{key:"createObserver",value:function(r,n){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Ya(r),this.callback=function(l,u){s.options.callback(l,u),l&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var o=this.options.throttleOptions||{},a=o.leading;this.callback=Xa(this.callback,this.options.throttle,{leading:function(u){return a==="both"||a==="visible"&&u||a==="hidden"&&!u}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(l){var u=l[0];if(l.length>1){var c=l.find(function(g){return g.isIntersecting});c&&(u=c)}if(s.callback){var f=u.isIntersecting&&u.intersectionRatio>=s.threshold;if(f===s.oldResult)return;s.oldResult=f,s.callback(f,u)}},this.options.intersection),i.nextTick(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function _r(e,t,r){var n=t.value;if(n)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new Za(e,n,r);e._vue_visibilityState=s}}function el(e,t,r){var n=t.value,s=t.oldValue;if(!wr(n,s)){var o=e._vue_visibilityState;if(!n){Ar(e);return}o?o.createObserver(n,r):_r(e,{value:n},r)}}function Ar(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var tl={beforeMount:_r,updated:el,unmounted:Ar},rl={itemsLimit:1e3},nl=/(auto|scroll)/;function Cr(e,t){return e.parentNode===null?t:Cr(e.parentNode,t.concat([e]))}var Le=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},il=function(t){return Le(t,"overflow")+Le(t,"overflow-y")+Le(t,"overflow-x")},sl=function(t){return nl.test(il(t))};function Ht(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Cr(e.parentNode,[]),r=0;r<t.length;r+=1)if(sl(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function Ge(e){"@babel/helpers - typeof";return Ge=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ge(e)}var ol={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function al(){return this.items.length&&Ge(this.items[0])!=="object"}var Ke=!1;if(typeof window<"u"){Ke=!1;try{var ll=Object.defineProperty({},"passive",{get:function(){Ke=!0}});window.addEventListener("test",null,ll)}catch{}}let ul=0;var ct={name:"RecycleScroller",components:{ResizeObserver:Fe},directives:{ObserveVisibility:tl},props:{...ol,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,n=this.minItemSize;let s=1e4,o=0,a;for(let l=0,u=t.length;l<u;l++)a=t[l][r]||n,a<s&&(s=a),o+=a,e[l]={accumulator:o,size:a};return this.$_computedMinItemSize=s,e}return[]},simpleArray:al,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let n=0,s=t.length;n<s;n++)r[t[n][e]]=n;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,n,s){const o=i.markRaw({id:ul++,index:t,used:!0,key:n,type:s}),a=i.shallowReactive({item:r,position:0,nr:o});return e.push(a),a},unuseView(e,t=!1){const r=this.$_unusedViews,n=e.nr.type;let s=r.get(n);s||(s=[],r.set(n,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,n=this.gridItems||1,s=this.itemSecondarySize||r,o=this.$_computedMinItemSize,a=this.typeField,l=this.simpleArray?null:this.keyField,u=this.items,c=u.length,f=this.sizes,g=this.$_views,p=this.$_unusedViews,v=this.pool,m=this.itemIndexByKey;let d,h,b,_,x;if(!c)d=h=_=x=b=0;else if(this.$_prerender)d=_=0,h=x=Math.min(this.prerender,u.length),b=null;else{const $=this.getScroll();if(t){let w=$.start-this.$_lastUpdateScrollPosition;if(w<0&&(w=-w),r===null&&w<o||w<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=$.start;const L=this.buffer;$.start-=L,$.end+=L;let y=0;if(this.$refs.before&&(y=this.$refs.before.scrollHeight,$.start-=y),this.$refs.after){const w=this.$refs.after.scrollHeight;$.end+=w}if(r===null){let w,S=0,T=c-1,C=~~(c/2),O;do O=C,w=f[C].accumulator,w<$.start?S=C:C<c-1&&f[C+1].accumulator>$.start&&(T=C),C=~~((S+T)/2);while(C!==O);for(C<0&&(C=0),d=C,b=f[c-1].accumulator,h=C;h<c&&f[h].accumulator<$.end;h++);for(h===-1?h=u.length-1:(h++,h>c&&(h=c)),_=d;_<c&&y+f[_].accumulator<$.start;_++);for(x=_;x<c&&y+f[x].accumulator<$.end;x++);}else{d=~~($.start/r*n);const w=d%n;d-=w,h=Math.ceil($.end/r*n),_=Math.max(0,Math.floor(($.start-y)/r*n)),x=Math.floor(($.end-y)/r*n),d<0&&(d=0),h>c&&(h=c),_<0&&(_=0),x>c&&(x=c),b=Math.ceil(c/n)*r}}h-d>rl.itemsLimit&&this.itemsLimitError(),this.totalSize=b;let A;const M=d<=this.$_endIndex&&h>=this.$_startIndex;if(M)for(let $=0,L=v.length;$<L;$++)A=v[$],A.nr.used&&(e&&(A.nr.index=m[A.item[l]]),(A.nr.index==null||A.nr.index<d||A.nr.index>=h)&&this.unuseView(A));const R=M?null:new Map;let B,F,k;for(let $=d;$<h;$++){B=u[$];const L=l?B[l]:B;if(L==null)throw new Error(`Key is ${L} on item (keyField is '${l}')`);if(A=g.get(L),!r&&!f[$].size){A&&this.unuseView(A);continue}F=B[a];let y=p.get(F),w=!1;if(!A)M?y&&y.length?A=y.pop():A=this.addView(v,$,B,L,F):(k=R.get(F)||0,(!y||k>=y.length)&&(A=this.addView(v,$,B,L,F),this.unuseView(A,!0),y=p.get(F)),A=y[k],R.set(F,k+1)),g.delete(A.nr.key),A.nr.used=!0,A.nr.index=$,A.nr.key=L,A.nr.type=F,g.set(L,A),w=!0;else if(!A.nr.used&&(A.nr.used=!0,w=!0,y)){const S=y.indexOf(A);S!==-1&&y.splice(S,1)}A.item=B,w&&($===u.length-1&&this.$emit("scroll-end"),$===0&&this.$emit("scroll-start")),r===null?(A.position=f[$-1].accumulator,A.offset=0):(A.position=Math.floor($/n)*r,A.offset=$%n*s)}return this.$_startIndex=d,this.$_endIndex=h,this.emitUpdate&&this.$emit("update",d,h,_,x),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:M}},getListenerTarget(){let e=Ht(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let n;if(this.pageMode){const s=e.getBoundingClientRect(),o=r?s.height:s.width;let a=-(r?s.top:s.left),l=r?window.innerHeight:window.innerWidth;a<0&&(l+=a,a=0),a+l>o&&(l=o-a),n={start:a,end:a+l}}else r?n={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:n={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return n},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Ke?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,n,s;if(this.pageMode){const o=Ht(this.$el),a=o.tagName==="HTML"?0:o[t.scroll],l=o.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[t.start]-l[t.start];r=o,n=t.scroll,s=e+a+c}else r=this.$el,n=t.scroll,s=e;r[n]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const cl={key:0,ref:"before",class:"vue-recycle-scroller__slot"},fl={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function dl(e,t,r,n,s,o){const a=i.resolveComponent("ResizeObserver"),l=i.resolveDirective("observe-visibility");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...u)=>o.handleScroll&&o.handleScroll(...u))},[e.$slots.before?(i.openBlock(),i.createElementBlock("div",cl,[i.renderSlot(e.$slots,"before")],512)):i.createCommentVNode("v-if",!0),(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.listTag),{ref:"wrapper",style:i.normalizeStyle({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:i.normalizeClass(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.pool,u=>(i.openBlock(),i.createBlock(i.resolveDynamicComponent(r.itemTag),i.mergeProps({key:u.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${u.position}px) translate${e.direction==="vertical"?"X":"Y"}(${u.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===u.nr.key}]]},i.toHandlers(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=u.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{item:u.item,index:u.nr.index,active:u.nr.used})]),_:2},1040,["style","class"]))),128)),i.renderSlot(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(i.openBlock(),i.createElementBlock("div",fl,[i.renderSlot(e.$slots,"after")],512)):i.createCommentVNode("v-if",!0),i.createVNode(a,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[l,o.handleVisibilityChange]])}ct.render=dl;ct.__file="src/components/RecycleScroller.vue";function Z(e){return Array.isArray?Array.isArray(e):xr(e)==="[object Array]"}function hl(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function pl(e){return e==null?"":hl(e)}function G(e){return typeof e=="string"}function Sr(e){return typeof e=="number"}function gl(e){return e===!0||e===!1||vl(e)&&xr(e)=="[object Boolean]"}function Er(e){return typeof e=="object"}function vl(e){return Er(e)&&e!==null}function U(e){return e!=null}function Ne(e){return!e.trim().length}function xr(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ml="Incorrect 'index' type",yl=e=>`Invalid value for key ${e}`,bl=e=>`Pattern length exceeds max of ${e}.`,wl=e=>`Missing ${e} property in key`,_l=e=>`Property 'weight' in key '${e}' must be a positive integer`,qt=Object.prototype.hasOwnProperty;class Al{constructor(t){this._keys=[],this._keyMap={};let r=0;t.forEach(n=>{let s=$r(n);this._keys.push(s),this._keyMap[s.id]=s,r+=s.weight}),this._keys.forEach(n=>{n.weight/=r})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function $r(e){let t=null,r=null,n=null,s=1,o=null;if(G(e)||Z(e))n=e,t=Gt(e),r=Qe(e);else{if(!qt.call(e,"name"))throw new Error(wl("name"));const a=e.name;if(n=a,qt.call(e,"weight")&&(s=e.weight,s<=0))throw new Error(_l(a));t=Gt(a),r=Qe(a),o=e.getFn}return{path:t,id:r,weight:s,src:n,getFn:o}}function Gt(e){return Z(e)?e:e.split(".")}function Qe(e){return Z(e)?e.join("."):e}function Cl(e,t){let r=[],n=!1;const s=(o,a,l)=>{if(U(o))if(!a[l])r.push(o);else{let u=a[l];const c=o[u];if(!U(c))return;if(l===a.length-1&&(G(c)||Sr(c)||gl(c)))r.push(pl(c));else if(Z(c)){n=!0;for(let f=0,g=c.length;f<g;f+=1)s(c[f],a,l+1)}else a.length&&s(c,a,l+1)}};return s(e,G(t)?t.split("."):t,0),n?r:r[0]}const Sl={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},El={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},xl={location:0,threshold:.6,distance:100},$l={useExtendedSearch:!1,getFn:Cl,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var E={...El,...Sl,...xl,...$l};const Tl=/[^ ]+/g;function Il(e=1,t=3){const r=new Map,n=Math.pow(10,t);return{get(s){const o=s.match(Tl).length;if(r.has(o))return r.get(o);const a=1/Math.pow(o,.5*e),l=parseFloat(Math.round(a*n)/n);return r.set(o,l),l},clear(){r.clear()}}}class ft{constructor({getFn:t=E.getFn,fieldNormWeight:r=E.fieldNormWeight}={}){this.norm=Il(r,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((r,n)=>{this._keysMap[r.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,G(this.docs[0])?this.docs.forEach((t,r)=>{this._addString(t,r)}):this.docs.forEach((t,r)=>{this._addObject(t,r)}),this.norm.clear())}add(t){const r=this.size();G(t)?this._addString(t,r):this._addObject(t,r)}removeAt(t){this.records.splice(t,1);for(let r=t,n=this.size();r<n;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(t,r){return t[this._keysMap[r]]}size(){return this.records.length}_addString(t,r){if(!U(t)||Ne(t))return;let n={v:t,i:r,n:this.norm.get(t)};this.records.push(n)}_addObject(t,r){let n={i:r,$:{}};this.keys.forEach((s,o)=>{let a=s.getFn?s.getFn(t):this.getFn(t,s.path);if(U(a)){if(Z(a)){let l=[];const u=[{nestedArrIndex:-1,value:a}];for(;u.length;){const{nestedArrIndex:c,value:f}=u.pop();if(U(f))if(G(f)&&!Ne(f)){let g={v:f,i:c,n:this.norm.get(f)};l.push(g)}else Z(f)&&f.forEach((g,p)=>{u.push({nestedArrIndex:p,value:g})})}n.$[o]=l}else if(G(a)&&!Ne(a)){let l={v:a,n:this.norm.get(a)};n.$[o]=l}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function Tr(e,t,{getFn:r=E.getFn,fieldNormWeight:n=E.fieldNormWeight}={}){const s=new ft({getFn:r,fieldNormWeight:n});return s.setKeys(e.map($r)),s.setSources(t),s.create(),s}function Ol(e,{getFn:t=E.getFn,fieldNormWeight:r=E.fieldNormWeight}={}){const{keys:n,records:s}=e,o=new ft({getFn:t,fieldNormWeight:r});return o.setKeys(n),o.setIndexRecords(s),o}function be(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:s=E.distance,ignoreLocation:o=E.ignoreLocation}={}){const a=t/e.length;if(o)return a;const l=Math.abs(n-r);return s?a+l/s:l?1:a}function Ml(e=[],t=E.minMatchCharLength){let r=[],n=-1,s=-1,o=0;for(let a=e.length;o<a;o+=1){let l=e[o];l&&n===-1?n=o:!l&&n!==-1&&(s=o-1,s-n+1>=t&&r.push([n,s]),n=-1)}return e[o-1]&&o-n>=t&&r.push([n,o-1]),r}const ie=32;function Bl(e,t,r,{location:n=E.location,distance:s=E.distance,threshold:o=E.threshold,findAllMatches:a=E.findAllMatches,minMatchCharLength:l=E.minMatchCharLength,includeMatches:u=E.includeMatches,ignoreLocation:c=E.ignoreLocation}={}){if(t.length>ie)throw new Error(bl(ie));const f=t.length,g=e.length,p=Math.max(0,Math.min(n,g));let v=o,m=p;const d=l>1||u,h=d?Array(g):[];let b;for(;(b=e.indexOf(t,m))>-1;){let B=be(t,{currentLocation:b,expectedLocation:p,distance:s,ignoreLocation:c});if(v=Math.min(B,v),m=b+f,d){let F=0;for(;F<f;)h[b+F]=1,F+=1}}m=-1;let _=[],x=1,A=f+g;const M=1<<f-1;for(let B=0;B<f;B+=1){let F=0,k=A;for(;F<k;)be(t,{errors:B,currentLocation:p+k,expectedLocation:p,distance:s,ignoreLocation:c})<=v?F=k:A=k,k=Math.floor((A-F)/2+F);A=k;let $=Math.max(1,p-k+1),L=a?g:Math.min(p+k,g)+f,y=Array(L+2);y[L+1]=(1<<B)-1;for(let S=L;S>=$;S-=1){let T=S-1,C=r[e.charAt(T)];if(d&&(h[T]=+!!C),y[S]=(y[S+1]<<1|1)&C,B&&(y[S]|=(_[S+1]|_[S])<<1|1|_[S+1]),y[S]&M&&(x=be(t,{errors:B,currentLocation:T,expectedLocation:p,distance:s,ignoreLocation:c}),x<=v)){if(v=x,m=T,m<=p)break;$=Math.max(1,2*p-m)}}if(be(t,{errors:B+1,currentLocation:p,expectedLocation:p,distance:s,ignoreLocation:c})>v)break;_=y}const R={isMatch:m>=0,score:Math.max(.001,x)};if(d){const B=Ml(h,l);B.length?u&&(R.indices=B):R.isMatch=!1}return R}function Fl(e){let t={};for(let r=0,n=e.length;r<n;r+=1){const s=e.charAt(r);t[s]=(t[s]||0)|1<<n-r-1}return t}const Ee=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class Ir{constructor(t,{location:r=E.location,threshold:n=E.threshold,distance:s=E.distance,includeMatches:o=E.includeMatches,findAllMatches:a=E.findAllMatches,minMatchCharLength:l=E.minMatchCharLength,isCaseSensitive:u=E.isCaseSensitive,ignoreDiacritics:c=E.ignoreDiacritics,ignoreLocation:f=E.ignoreLocation}={}){if(this.options={location:r,threshold:n,distance:s,includeMatches:o,findAllMatches:a,minMatchCharLength:l,isCaseSensitive:u,ignoreDiacritics:c,ignoreLocation:f},t=u?t:t.toLowerCase(),t=c?Ee(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const g=(v,m)=>{this.chunks.push({pattern:v,alphabet:Fl(v),startIndex:m})},p=this.pattern.length;if(p>ie){let v=0;const m=p%ie,d=p-m;for(;v<d;)g(this.pattern.substr(v,ie),v),v+=ie;if(m){const h=p-ie;g(this.pattern.substr(h),h)}}else g(this.pattern,0)}searchIn(t){const{isCaseSensitive:r,ignoreDiacritics:n,includeMatches:s}=this.options;if(t=r?t:t.toLowerCase(),t=n?Ee(t):t,this.pattern===t){let d={isMatch:!0,score:0};return s&&(d.indices=[[0,t.length-1]]),d}const{location:o,distance:a,threshold:l,findAllMatches:u,minMatchCharLength:c,ignoreLocation:f}=this.options;let g=[],p=0,v=!1;this.chunks.forEach(({pattern:d,alphabet:h,startIndex:b})=>{const{isMatch:_,score:x,indices:A}=Bl(t,d,h,{location:o+b,distance:a,threshold:l,findAllMatches:u,minMatchCharLength:c,includeMatches:s,ignoreLocation:f});_&&(v=!0),p+=x,_&&A&&(g=[...g,...A])});let m={isMatch:v,score:v?p/this.chunks.length:1};return v&&s&&(m.indices=g),m}}class ne{constructor(t){this.pattern=t}static isMultiMatch(t){return Kt(t,this.multiRegex)}static isSingleMatch(t){return Kt(t,this.singleRegex)}search(){}}function Kt(e,t){const r=e.match(t);return r?r[1]:null}class zl extends ne{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const r=t===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class jl extends ne{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class kl extends ne{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const r=t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class Ll extends ne{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const r=!t.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class Nl extends ne{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const r=t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Dl extends ne{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const r=!t.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class Or extends ne{constructor(t,{location:r=E.location,threshold:n=E.threshold,distance:s=E.distance,includeMatches:o=E.includeMatches,findAllMatches:a=E.findAllMatches,minMatchCharLength:l=E.minMatchCharLength,isCaseSensitive:u=E.isCaseSensitive,ignoreDiacritics:c=E.ignoreDiacritics,ignoreLocation:f=E.ignoreLocation}={}){super(t),this._bitapSearch=new Ir(t,{location:r,threshold:n,distance:s,includeMatches:o,findAllMatches:a,minMatchCharLength:l,isCaseSensitive:u,ignoreDiacritics:c,ignoreLocation:f})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Mr extends ne{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let r=0,n;const s=[],o=this.pattern.length;for(;(n=t.indexOf(this.pattern,r))>-1;)r=n+o,s.push([n,r-1]);const a=!!s.length;return{isMatch:a,score:a?0:1,indices:s}}}const We=[zl,Mr,kl,Ll,Dl,Nl,jl,Or],Qt=We.length,Pl=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Vl="|";function Rl(e,t={}){return e.split(Vl).map(r=>{let n=r.trim().split(Pl).filter(o=>o&&!!o.trim()),s=[];for(let o=0,a=n.length;o<a;o+=1){const l=n[o];let u=!1,c=-1;for(;!u&&++c<Qt;){const f=We[c];let g=f.isMultiMatch(l);g&&(s.push(new f(g,t)),u=!0)}if(!u)for(c=-1;++c<Qt;){const f=We[c];let g=f.isSingleMatch(l);if(g){s.push(new f(g,t));break}}}return s})}const Ul=new Set([Or.type,Mr.type]);class Hl{constructor(t,{isCaseSensitive:r=E.isCaseSensitive,ignoreDiacritics:n=E.ignoreDiacritics,includeMatches:s=E.includeMatches,minMatchCharLength:o=E.minMatchCharLength,ignoreLocation:a=E.ignoreLocation,findAllMatches:l=E.findAllMatches,location:u=E.location,threshold:c=E.threshold,distance:f=E.distance}={}){this.query=null,this.options={isCaseSensitive:r,ignoreDiacritics:n,includeMatches:s,minMatchCharLength:o,findAllMatches:l,ignoreLocation:a,location:u,threshold:c,distance:f},t=r?t:t.toLowerCase(),t=n?Ee(t):t,this.pattern=t,this.query=Rl(this.pattern,this.options)}static condition(t,r){return r.useExtendedSearch}searchIn(t){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:s,ignoreDiacritics:o}=this.options;t=s?t:t.toLowerCase(),t=o?Ee(t):t;let a=0,l=[],u=0;for(let c=0,f=r.length;c<f;c+=1){const g=r[c];l.length=0,a=0;for(let p=0,v=g.length;p<v;p+=1){const m=g[p],{isMatch:d,indices:h,score:b}=m.search(t);if(d){if(a+=1,u+=b,n){const _=m.constructor.type;Ul.has(_)?l=[...l,...h]:l.push(h)}}else{u=0,a=0,l.length=0;break}}if(a){let p={isMatch:!0,score:u/a};return n&&(p.indices=l),p}}return{isMatch:!1,score:1}}}const Je=[];function ql(...e){Je.push(...e)}function Ye(e,t){for(let r=0,n=Je.length;r<n;r+=1){let s=Je[r];if(s.condition(e,t))return new s(e,t)}return new Ir(e,t)}const xe={AND:"$and",OR:"$or"},Xe={PATH:"$path",PATTERN:"$val"},Ze=e=>!!(e[xe.AND]||e[xe.OR]),Gl=e=>!!e[Xe.PATH],Kl=e=>!Z(e)&&Er(e)&&!Ze(e),Wt=e=>({[xe.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Br(e,t,{auto:r=!0}={}){const n=s=>{let o=Object.keys(s);const a=Gl(s);if(!a&&o.length>1&&!Ze(s))return n(Wt(s));if(Kl(s)){const u=a?s[Xe.PATH]:o[0],c=a?s[Xe.PATTERN]:s[u];if(!G(c))throw new Error(yl(u));const f={keyId:Qe(u),pattern:c};return r&&(f.searcher=Ye(c,t)),f}let l={children:[],operator:o[0]};return o.forEach(u=>{const c=s[u];Z(c)&&c.forEach(f=>{l.children.push(n(f))})}),l};return Ze(e)||(e=Wt(e)),n(e)}function Ql(e,{ignoreFieldNorm:t=E.ignoreFieldNorm}){e.forEach(r=>{let n=1;r.matches.forEach(({key:s,norm:o,score:a})=>{const l=s?s.weight:null;n*=Math.pow(a===0&&l?Number.EPSILON:a,(l||1)*(t?1:o))}),r.score=n})}function Wl(e,t){const r=e.matches;t.matches=[],U(r)&&r.forEach(n=>{if(!U(n.indices)||!n.indices.length)return;const{indices:s,value:o}=n;let a={indices:s,value:o};n.key&&(a.key=n.key.src),n.idx>-1&&(a.refIndex=n.idx),t.matches.push(a)})}function Jl(e,t){t.score=e.score}function Yl(e,t,{includeMatches:r=E.includeMatches,includeScore:n=E.includeScore}={}){const s=[];return r&&s.push(Wl),n&&s.push(Jl),e.map(o=>{const{idx:a}=o,l={item:t[a],refIndex:a};return s.length&&s.forEach(u=>{u(o,l)}),l})}class re{constructor(t,r={},n){this.options={...E,...r},this.options.useExtendedSearch,this._keyStore=new Al(this.options.keys),this.setCollection(t,n)}setCollection(t,r){if(this._docs=t,r&&!(r instanceof ft))throw new Error(ml);this._myIndex=r||Tr(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){U(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const r=[];for(let n=0,s=this._docs.length;n<s;n+=1){const o=this._docs[n];t(o,n)&&(this.removeAt(n),n-=1,s-=1,r.push(o))}return r}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:r=-1}={}){const{includeMatches:n,includeScore:s,shouldSort:o,sortFn:a,ignoreFieldNorm:l}=this.options;let u=G(t)?G(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return Ql(u,{ignoreFieldNorm:l}),o&&u.sort(a),Sr(r)&&r>-1&&(u=u.slice(0,r)),Yl(u,this._docs,{includeMatches:n,includeScore:s})}_searchStringList(t){const r=Ye(t,this.options),{records:n}=this._myIndex,s=[];return n.forEach(({v:o,i:a,n:l})=>{if(!U(o))return;const{isMatch:u,score:c,indices:f}=r.searchIn(o);u&&s.push({item:o,idx:a,matches:[{score:c,value:o,norm:l,indices:f}]})}),s}_searchLogical(t){const r=Br(t,this.options),n=(l,u,c)=>{if(!l.children){const{keyId:g,searcher:p}=l,v=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(u,g),searcher:p});return v&&v.length?[{idx:c,item:u,matches:v}]:[]}const f=[];for(let g=0,p=l.children.length;g<p;g+=1){const v=l.children[g],m=n(v,u,c);if(m.length)f.push(...m);else if(l.operator===xe.AND)return[]}return f},s=this._myIndex.records,o={},a=[];return s.forEach(({$:l,i:u})=>{if(U(l)){let c=n(r,l,u);c.length&&(o[u]||(o[u]={idx:u,item:l,matches:[]},a.push(o[u])),c.forEach(({matches:f})=>{o[u].matches.push(...f)}))}}),a}_searchObjectList(t){const r=Ye(t,this.options),{keys:n,records:s}=this._myIndex,o=[];return s.forEach(({$:a,i:l})=>{if(!U(a))return;let u=[];n.forEach((c,f)=>{u.push(...this._findMatches({key:c,value:a[f],searcher:r}))}),u.length&&o.push({idx:l,item:a,matches:u})}),o}_findMatches({key:t,value:r,searcher:n}){if(!U(r))return[];let s=[];if(Z(r))r.forEach(({v:o,i:a,n:l})=>{if(!U(o))return;const{isMatch:u,score:c,indices:f}=n.searchIn(o);u&&s.push({score:c,key:t,value:o,idx:a,norm:l,indices:f})});else{const{v:o,n:a}=r,{isMatch:l,score:u,indices:c}=n.searchIn(o);l&&s.push({score:u,key:t,value:o,norm:a,indices:c})}return s}}re.version="7.1.0";re.createIndex=Tr;re.parseIndex=Ol;re.config=E;re.parseQuery=Br;ql(Hl);const ce=new WeakMap,Xl=(...e)=>{var t;const r=e[0],n=(t=i.getCurrentInstance())==null?void 0:t.proxy;if(n==null&&!i.hasInjectionContext())throw new Error("injectLocal must be called in setup");return n&&ce.has(n)&&r in ce.get(n)?ce.get(n)[r]:i.inject(...e)};function Zl(e,t){var r;const n=(r=i.getCurrentInstance())==null?void 0:r.proxy;if(n==null)throw new Error("provideLocal must be called in setup");ce.has(n)||ce.set(n,Object.create(null));const s=ce.get(n);return s[e]=t,i.provide(e,t)}function eu(e,t){const r=Symbol(e.name||"InjectionState"),n=void 0;return[(...a)=>{const l=e(...a);return Zl(r,l),l},()=>Xl(r,n)]}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const[tu,de]=eu(e=>{const t=i.reactive(e);function r(l,u){N(u)&&X(u)?t.queryForm[l]=void 0:t.queryForm[l]=u}function n(l){let{key:u,label:c,value:f}=l;if(N(f)&&!X(f))return;let g="",p=f==null?void 0:f.toString();if(typeof f=="number"||typeof f=="boolean"||typeof f=="string")g=`${c}:${p}`,p.length>50&&(g=`${c}:${p.slice(0,50)}...`);else if(V(f)&&(g=`${c}:${p}`,p.length>50)){let d=0,h=0;for(let _=0;_<f.length;_++)if(h+=f[_].length+1,h>50){d=_+1;break}let b=f.slice(0,d);g=`${c}:${b.join(",").slice(0,50)}...`,f.length>d&&(g+=`等其余${f.length-d}项`)}const v={key:u,label:c,showStr:g,value:p},m=t.tags.findIndex(d=>d.key===u);m===-1?t.tags.push(v):t.tags.splice(m,1,v)}function s(l,u){l.key&&t.tags.findIndex(c=>c.key===l.key)!==-1&&(t.queryForm[l.key]=void 0,u?t.tags.splice(u,1):t.tags=t.tags.filter(c=>c.key!==l.key))}function o(){t.tags.forEach(l=>{t.queryForm[l.key]=void 0}),t.tags=[]}function a(l={}){Object.keys(t.queryForm).forEach(u=>{t.queryForm[u]=l[u]??void 0}),t.tags=[]}return{state:t,setQuery:r,addTag:n,reduceTag:s,reduceAllTag:o,clearQuery:a}}),ru={class:"el-select-pop-search-container"},nu={class:"el-select-dropdown__wrap virtual-scroll-wrap"},iu={class:"check-all ak-relative el-select-dropdown__item"},su=["title"],ou={class:"el-select-dropdown__empty"},au={class:"custom-multi-footer"},lu=i.defineComponent({name:"JcSelectQuery",__name:"index",props:{field:{type:String,required:!0,default:""},options:{type:Array,default:()=>[],required:!0},allowCreate:{type:Boolean,default:!0},keyField:{type:Array,default:()=>["label","value"]},width:{type:String,default:"160px"},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},footerBtnName:{type:String,default:"搜索"},maxScrollHeight:{type:String,default:"240px"},isNeedFooter:{type:Boolean,default:!0}},setup(e,{expose:t}){const r=e,n=i.ref(),s=i.ref([]),o=i.reactive({}),a=i.ref(""),l=i.ref(),u=i.ref([]),c=i.ref([]),f=i.ref([]),g=i.ref(!1),p=i.ref(!1),{state:v,setQuery:m}=de();let d=-1,h=!1;const b=i.ref(),_=y=>{y&&(f.value=s.value,a.value="",c.value=u.value,F(f.value),i.nextTick(()=>{var w;(w=l.value)==null||w.focus()}))},x=y=>{f.value=f.value.filter(w=>w.value!==y.value)},A=y=>{m(r.field,y)},M=()=>{const y=a.value.trim();y!==""?c.value=b.value.search(y).map(w=>w.item):c.value=u.value},R=()=>{N(a.value)||c.value.map(y=>y.value).includes(a.value)||(u.value.unshift({label:a.value,value:a.value}),f.value.push({label:a.value,value:a.value}),s.value=f.value,m(r.field,s.value),i.nextTick(()=>{b.value=new re(u.value,{keys:r.keyField}),M()}))},B=y=>{f.value=y?c.value:[],p.value=!1,r.isNeedFooter||(s.value=f.value,m(r.field,s.value))},F=y=>{if(y.length===0){g.value=!1,p.value=!1;return}const w=y.length;g.value=w===c.value.length,p.value=w>0&&w<c.value.length;const{options:S}=r;let T=0;if(y.length>0){const C=y[y.length-1];T=S.findIndex(O=>O.value===C.value)}if(h){const C=Math.abs(d-T)+1,O=Math.min(d,T);let P=0;for(;P<C;){const D=O+P;Ia(y,S[D])===-1&&f.value.push(S[D]),P++}}r.isNeedFooter||(s.value=f.value,m(r.field,s.value))},k=y=>{!h&&!f.value.includes(y)&&(d=u.value.findIndex(w=>w.value===y.value))},$=()=>{var y;(y=n.value)==null||y.blur()},L=()=>{s.value=f.value,m(r.field,s.value),$()};return i.watch(()=>r.options,()=>{var y;!V(r.options)||((y=r.options)==null?void 0:y.length)===0||(c.value=r.options,u.value=gr(r.options),b.value=new re(u.value,{keys:r.keyField,threshold:.1}))},{immediate:!0,deep:!0}),i.watch(()=>v.queryForm[r.field],y=>{N(y)?(s.value=[],f.value=[]):s.value=V(y)?y:[]},{deep:!0}),i.onMounted(()=>{window.addEventListener("keydown",y=>{y.shiftKey&&(h=!0)}),window.addEventListener("keyup",()=>{h=!1}),i.nextTick(()=>{b.value=new re(u.value,{keys:r.keyField})})}),i.onUnmounted(()=>{window.removeEventListener("keydown",y=>{y.shiftKey&&(h=!0)}),window.removeEventListener("keyup",()=>{h=!1})}),i.onMounted(()=>{var y;n.value&&(o.focus=n.value.focus,o.blur=n.value.blur,o.selectedLabel=(y=n.value)==null?void 0:y.selectedLabel)}),t(o),(y,w)=>(i.openBlock(),i.createBlock(i.unref(I.ElSelect),i.mergeProps({ref_key:"selectRef",ref:n,modelValue:s.value,"onUpdate:modelValue":w[3]||(w[3]=S=>s.value=S)},y.$attrs,{multiple:"",clearable:"","show-arrow":!1,"collapse-tags":!0,"collapse-tags-tooltip":!0,"max-collapse-tags":1,size:e.size,style:{width:e.width},class:"jc-select","popper-class":"jc-select-popper",placeholder:"请选择",onVisibleChange:_,onRemoveTag:x,onChange:A}),i.createSlots({default:i.withCtx(()=>[i.createVNode(i.unref(I.ElOption),{value:"1",hidden:""}),i.createElementVNode("div",ru,[i.createVNode(i.unref(J.Search),{class:"selcet-icon search-icon"}),i.withDirectives(i.createElementVNode("input",{ref_key:"searchInputRef",ref:l,"onUpdate:modelValue":w[0]||(w[0]=S=>a.value=S),class:"el-select-pop__input",onInput:M},null,544),[[i.vModelText,a.value]]),e.allowCreate?(i.openBlock(),i.createBlock(i.unref(J.CirclePlus),{key:0,class:"selcet-icon circle-icon",onClick:R})):i.createCommentVNode("",!0)]),i.withDirectives(i.createElementVNode("div",nu,[i.createElementVNode("li",iu,[i.createVNode(i.unref(I.ElCheckbox),{modelValue:g.value,"onUpdate:modelValue":w[1]||(w[1]=S=>g.value=S),indeterminate:p.value,size:e.size,onChange:B},{default:i.withCtx(()=>w[4]||(w[4]=[i.createTextVNode("全选")])),_:1,__:[4]},8,["modelValue","indeterminate","size"])]),i.createVNode(i.unref(I.ElCheckboxGroup),{modelValue:f.value,"onUpdate:modelValue":w[2]||(w[2]=S=>f.value=S),onChange:F,size:e.size},{default:i.withCtx(()=>[i.createVNode(i.unref(ct),{class:"recycle-scroller",items:c.value,"item-size":30,"key-field":"value",style:i.normalizeStyle({maxHeight:e.maxScrollHeight})},{default:i.withCtx(({item:S})=>[i.createElementVNode("li",{class:"el-select-dropdown__item",title:S.label},[i.createVNode(i.unref(I.ElCheckbox),{size:e.size,value:S,label:S,disabled:S.disabled,onClick:T=>k(S)},{default:i.withCtx(()=>[i.renderSlot(y.$slots,"default",{scope:S},()=>[i.createElementVNode("span",null,i.toDisplayString(S.label),1)])]),_:2},1032,["size","value","label","disabled","onClick"])],8,su)]),_:3},8,["items","style"])]),_:3},8,["modelValue","size"])],512),[[i.vShow,c.value.length>0]]),i.withDirectives(i.createElementVNode("p",ou,"无数据",512),[[i.vShow,c.value.length===0]])]),_:2},[e.isNeedFooter?{name:"footer",fn:i.withCtx(()=>[i.createElementVNode("div",au,[w[6]||(w[6]=i.createElementVNode("span",{class:"shift-tips"},[i.createElementVNode("span",null,"提示:按住Shift可以快速多选")],-1)),w[7]||(w[7]=i.createElementVNode("span",{class:"counts"},null,-1)),i.createElementVNode("span",null,[i.createVNode(i.unref(I.ElButton),{size:e.size,link:"",type:"primary",onClick:$},{default:i.withCtx(()=>w[5]||(w[5]=[i.createTextVNode("关闭")])),_:1,__:[5]},8,["size"]),i.createVNode(i.unref(I.ElButton),{type:"primary",size:e.size,onClick:L},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(e.footerBtnName),1)]),_:1},8,["size"])])])]),key:"0"}:void 0]),1040,["modelValue","size","style"]))}}),uu=e=>(e.install=t=>{const r=e.name;t.component(r,e)},e),Fr=uu(lu),cu={style:{"max-width":"100px"}},fu=i.defineComponent({name:"JcDatePicker",__name:"index",props:{fieldList:{type:Array,require:!0,default:()=>[]},type:{type:String,default:"daterange",validator:e=>["daterange","monthrange"].includes(e)},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},width:{type:String,default:"320px"}},emits:["fieldChange"],setup(e,{expose:t,emit:r}){const n=e,s=r,o=i.ref([]),a=i.ref([]),l=i.ref(""),u=i.ref(""),{state:c,setQuery:f}=de(),g=()=>{n.fieldList.forEach(h=>{f(h.value,void 0)})},p=h=>{g(),f(h,o.value),s("fieldChange",h)},v=()=>{u.value=l.value,a.value=o.value,f(l.value,o.value)};i.watch(()=>n.fieldList,h=>{!N(h)&&N(l.value)&&(l.value=h[0].value,o.value=[])},{immediate:!0,deep:!0}),i.watch(n.fieldList.map(h=>()=>c.queryForm[h.value]),h=>{const b=h.findIndex(_=>!N(_));b===-1?(l.value=n.fieldList[0].value,o.value=[]):(l.value=n.fieldList[b].value,o.value=h[b]||[])},{deep:!0});const m=i.ref(),d=i.reactive({});return i.onMounted(()=>{var h,b,_,x;m.value&&(d.focus=(h=m.value)==null?void 0:h.focus,d.blur=(b=m.value)==null?void 0:b.blur,d.handleOpen=(_=m.value)==null?void 0:_.handleOpen,d.handleClose=(x=m.value)==null?void 0:x.handleClose)}),t(d),(h,b)=>{const _=i.resolveComponent("el-option"),x=i.resolveComponent("el-select"),A=i.resolveComponent("el-date-picker");return i.openBlock(),i.createElementBlock("div",{class:"jc-date-picker",style:i.normalizeStyle({width:e.width})},[i.createElementVNode("div",cu,[i.createVNode(x,{modelValue:l.value,"onUpdate:modelValue":b[0]||(b[0]=M=>l.value=M),size:e.size,class:"select-field",onChange:p},{prefix:i.withCtx(()=>[i.createTextVNode(i.toDisplayString((e.fieldList.find(M=>M.value===l.value)||{}).label),1)]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.fieldList,M=>(i.openBlock(),i.createBlock(_,{key:M.value,label:M.label,value:M.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","size"])]),i.createVNode(A,i.mergeProps({ref_key:"datePickerRef",ref:m,modelValue:o.value,"onUpdate:modelValue":b[1]||(b[1]=M=>o.value=M),type:e.type},h.$attrs,{"range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间",size:e.size,"value-format":e.type==="daterange"?"YYYY-MM-DD":"YYYY-MM",onChange:v}),null,16,["modelValue","type","size","value-format"])],4)}}}),du=e=>(e.install=t=>{const r=e.name;t.component(r,e)},e),zr=du(fu),hu={class:"suffixContent"},pu=i.defineComponent({name:"JcInputSwitch",__name:"index",props:{fieldList:{type:Array,required:!0,default:()=>[]},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},width:{type:String,default:"320px"}},emits:["fieldChange"],setup(e,{expose:t,emit:r}){const n=e,s=r,o=i.ref(""),a=i.ref(""),l=i.ref(""),u=i.ref(""),{state:c,setQuery:f}=de(),g=()=>{n.fieldList.forEach(b=>{f(b.value,void 0)})},p=()=>{o.value="",g()},v=b=>{g(),f(b,o.value),s("fieldChange",b)},m=()=>{a.value=o.value,u.value=l.value,f(l.value,o.value.trim())};i.watch(()=>n.fieldList,b=>{!N(b)&&N(l.value)&&(l.value=b[0].value,o.value="")},{immediate:!0,deep:!0}),i.watch(n.fieldList.map(b=>()=>c.queryForm[b.value]),b=>{const _=b.findIndex(x=>!N(x));_===-1?(l.value=n.fieldList[0].value,o.value=""):(l.value=n.fieldList[_].value,o.value=b[_]||"")},{deep:!0});const d=i.ref(),h=i.reactive({});return i.onMounted(()=>{var b,_,x,A,M,R,B,F,k,$;d.value&&(h.blur=(b=d.value)==null?void 0:b.blur,h.clear=(_=d.value)==null?void 0:_.clear,h.focus=(x=d.value)==null?void 0:x.focus,h.input=(A=d.value)==null?void 0:A.input,h.ref=(M=d.value)==null?void 0:M.ref,h.resizeTextarea=(R=d.value)==null?void 0:R.resizeTextarea,h.select=(B=d.value)==null?void 0:B.select,h.textarea=(F=d.value)==null?void 0:F.textarea,h.textareaStyle=(k=d.value)==null?void 0:k.textareaStyle,h.isComposing=($=d.value)==null?void 0:$.isComposing)}),t(h),(b,_)=>(i.openBlock(),i.createBlock(i.unref(I.ElInput),i.mergeProps({ref_key:"inputRef",ref:d,modelValue:o.value,"onUpdate:modelValue":_[1]||(_[1]=x=>o.value=x),modelModifiers:{trim:!0}},b.$attrs,{placeholder:"请输入内容",style:{width:e.width},size:e.size,class:"jc-input jc-input-switch"}),{prepend:i.withCtx(()=>[i.createVNode(i.unref(I.ElSelect),{modelValue:l.value,"onUpdate:modelValue":_[0]||(_[0]=x=>l.value=x),size:e.size,class:"select-field",onChange:v},{prefix:i.withCtx(()=>[i.createTextVNode(i.toDisplayString((e.fieldList.find(x=>x.value===l.value)||{}).label),1)]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.fieldList,x=>(i.openBlock(),i.createBlock(i.unref(I.ElOption),{key:x.value,label:x.label,value:x.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","size"])]),suffix:i.withCtx(()=>[i.createElementVNode("div",hu,[i.withDirectives(i.createVNode(i.unref(I.ElIcon),{class:"el-input__icon",onClick:p},{default:i.withCtx(()=>[i.createVNode(i.unref(J.Close))]),_:1},512),[[i.vShow,o.value]]),i.createVNode(i.unref(I.ElIcon),{class:"el-input__icon",onClick:m},{default:i.withCtx(()=>[i.createVNode(i.unref(J.Search))]),_:1})])]),_:1},16,["modelValue","style","size"]))}}),gu=e=>(e.install=t=>{const r=e.name;t.component(r,e)},e),jr=gu(pu),vu={class:"suffixContent"},mu={class:"popover-body"},yu={class:"popover-btn"},bu={class:"popover-btn-right"},wu=i.defineComponent({name:"JcInputComplex",__name:"index",props:{fieldList:{type:Array,require:!0,default:()=>[]},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},width:{type:String,default:"320px"}},emits:["fieldChange"],setup(e,{expose:t,emit:r}){const n=e,s=r,o=i.ref(""),a=i.ref(""),l=i.ref(""),u=i.ref(""),c=i.ref(!1),f=i.computed(()=>l.value+"List"),g=i.computed(()=>{var T;return((T=n.fieldList.find(C=>C.value===l.value))==null?void 0:T.label)||""}),p=i.ref(""),{state:v,setQuery:m,addTag:d,reduceTag:h}=de(),b={},_={};n.fieldList.forEach(T=>{b[T.value]=void 0,_[T.value+"List"]=[]});const x=T=>{c.value=!1,A(),s("fieldChange",T)},A=()=>{v.queryForm[f.value]?p.value=v.queryForm[f.value].join(`
|
|
3
|
+
`):p.value=""},M=()=>{o.value="",m(l.value,void 0),F()},R=()=>{for(const T in b)m(T,void 0)},B=()=>{p.value="",a.value=o.value,u.value=l.value,R(),m(f.value,void 0),h({key:f.value}),m(l.value,o.value.trim())},F=()=>{const T=p.value.split(`
|
|
4
4
|
`).filter(C=>!N(C));if(T.length>0){const C=[...new Set(T)],O=Ta(T,(D,q,ue)=>ja(ue,D,q+1)),P=[...new Set(O)];if(P.length>0){const D=n.fieldList.find(ue=>ue.value===l.value),q=`搜索条件中包含重复的内容:${D==null?void 0:D.label}:${P.join(`
|
|
5
5
|
`)}`;I.ElMessage.warning(q)}p.value=C.join(`
|
|
6
|
-
`),R(),m(f.value,C),d({key:f.value,label:g.value,value:C})}else m(f.value,
|
|
7
|
-
`),F()})},y=()=>{!N(o.value)&&(o.value!==a.value||l.value!==u.value)?(a.value=o.value,u.value=l.value,R(),m(f.value,
|
|
8
|
-
`))||"",V(v.queryForm[D])&&!N(v.queryForm[D])){d({key:D,label:P.label,value:v.queryForm[D]});return}else h({key:D});v.queryForm[P.value]?(O=!0,l.value=P.value,o.value=v.queryForm[P.value]||""):O||(o.value="")})},{deep:!0});const w=i.ref(),S=i.reactive({});return i.onMounted(()=>{var T,C,O,P,D,q,ue,dt,ht,pt;w.value&&(S.blur=(T=w.value)==null?void 0:T.blur,S.clear=(C=w.value)==null?void 0:C.clear,S.focus=(O=w.value)==null?void 0:O.focus,S.input=(P=w.value)==null?void 0:P.input,S.ref=(D=w.value)==null?void 0:D.ref,S.resizeTextarea=(q=w.value)==null?void 0:q.resizeTextarea,S.select=(ue=w.value)==null?void 0:ue.select,S.textarea=(dt=w.value)==null?void 0:dt.textarea,S.textareaStyle=(ht=w.value)==null?void 0:ht.textareaStyle,S.isComposing=(pt=w.value)==null?void 0:pt.isComposing)}),S.setInputValueMult=
|
|
6
|
+
`),R(),m(f.value,C),d({key:f.value,label:g.value,value:C})}else m(f.value,void 0),h({key:f.value});k()},k=()=>{c.value=!1},$=()=>{o.value="",p.value="",a.value="",k()},L=T=>{Object.keys(T).forEach(C=>{l.value=C.replace("List",""),p.value=T[C].join(`
|
|
7
|
+
`),F()})},y=()=>{!N(o.value)&&(o.value!==a.value||l.value!==u.value)?(a.value=o.value,u.value=l.value,R(),m(f.value,void 0),h({key:f.value}),m(l.value,o.value.trim())):N(o.value)&&(a.value=o.value,m(l.value,void 0))};i.watch(()=>n.fieldList,T=>{!N(T)&&N(l.value)&&(l.value=T[0].value,o.value="",p.value="")},{immediate:!0,deep:!0}),i.watch(n.fieldList.flatMap(T=>[()=>v.queryForm[T.value],()=>v.queryForm[T.value+"List"]]),T=>{if(T.findIndex(P=>!N(P))===-1){$();return}let O=!1;n.fieldList.forEach(P=>{var q;const D=P.value+"List";if(p.value=((q=v.queryForm[D])==null?void 0:q.join(`
|
|
8
|
+
`))||"",V(v.queryForm[D])&&!N(v.queryForm[D])){d({key:D,label:P.label,value:v.queryForm[D]});return}else h({key:D});v.queryForm[P.value]?(O=!0,l.value=P.value,o.value=v.queryForm[P.value]||""):O||(o.value="")})},{deep:!0});const w=i.ref(),S=i.reactive({});return i.onMounted(()=>{var T,C,O,P,D,q,ue,dt,ht,pt;w.value&&(S.blur=(T=w.value)==null?void 0:T.blur,S.clear=(C=w.value)==null?void 0:C.clear,S.focus=(O=w.value)==null?void 0:O.focus,S.input=(P=w.value)==null?void 0:P.input,S.ref=(D=w.value)==null?void 0:D.ref,S.resizeTextarea=(q=w.value)==null?void 0:q.resizeTextarea,S.select=(ue=w.value)==null?void 0:ue.select,S.textarea=(dt=w.value)==null?void 0:dt.textarea,S.textareaStyle=(ht=w.value)==null?void 0:ht.textareaStyle,S.isComposing=(pt=w.value)==null?void 0:pt.isComposing)}),S.setInputValueMult=L,S.setInputByOutside=y,t(S),(T,C)=>(i.openBlock(),i.createBlock(i.unref(I.ElInput),i.mergeProps({ref_key:"inputRef",ref:w,modelValue:o.value,"onUpdate:modelValue":C[5]||(C[5]=O=>o.value=O),modelModifiers:{trim:!0}},T.$attrs,{placeholder:"请输入内容",style:{width:e.width},class:"jc-input jc-input-complex search-input",size:e.size}),{prepend:i.withCtx(()=>[i.createVNode(i.unref(I.ElSelect),{ref:"selectRef",modelValue:l.value,"onUpdate:modelValue":C[0]||(C[0]=O=>l.value=O),size:e.size,class:"select-field",onChange:x},{prefix:i.withCtx(()=>[i.createTextVNode(i.toDisplayString((e.fieldList.find(O=>O.value===l.value)||{}).label),1)]),default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.fieldList,O=>(i.openBlock(),i.createBlock(i.unref(I.ElOption),{key:O.value,label:O.label,value:O.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","size"])]),suffix:i.withCtx(()=>[i.createElementVNode("div",vu,[i.withDirectives(i.createVNode(i.unref(I.ElIcon),{class:"el-input__icon",onClick:M},{default:i.withCtx(()=>[i.createVNode(i.unref(J.Close))]),_:1},512),[[i.vShow,o.value]]),i.createVNode(i.unref(I.ElIcon),{class:"el-input__icon",onClick:B},{default:i.withCtx(()=>[i.createVNode(i.unref(J.Search))]),_:1}),i.createVNode(i.unref(I.ElPopover),{visible:c.value,"onUpdate:visible":C[4]||(C[4]=O=>c.value=O),placement:"bottom-end",width:"240","show-arrow":!1,"popper-class":"jc-input-pop",trigger:"click"},{reference:i.withCtx(()=>[i.createVNode(i.unref(I.ElIcon),{class:"el-input__icon",title:"多项搜索",style:{"background-color":"#f0f2f5"},onClick:A},{default:i.withCtx(()=>[i.createVNode(i.unref(J.Grid))]),_:1})]),default:i.withCtx(()=>[i.createElementVNode("div",mu,[i.createVNode(i.unref(I.ElInput),i.mergeProps({modelValue:p.value,"onUpdate:modelValue":C[1]||(C[1]=O=>p.value=O),type:"textarea"},T.$attrs,{size:e.size,placeholder:"一行一项",class:"popover-textarea",wrap:"off"}),null,16,["modelValue","size"]),i.createElementVNode("div",yu,[i.createVNode(i.unref(I.ElButton),{size:e.size,onClick:C[2]||(C[2]=O=>p.value="")},{default:i.withCtx(()=>C[6]||(C[6]=[i.createTextVNode("清空")])),_:1,__:[6]},8,["size"]),i.createElementVNode("div",bu,[i.createVNode(i.unref(I.ElButton),{size:e.size,link:"",type:"primary",onClick:k},{default:i.withCtx(()=>C[7]||(C[7]=[i.createTextVNode("关闭")])),_:1,__:[7]},8,["size"]),i.createVNode(i.unref(I.ElButton),{type:"primary",size:e.size,onClick:C[3]||(C[3]=O=>F())},{default:i.withCtx(()=>C[8]||(C[8]=[i.createTextVNode("搜索")])),_:1,__:[8]},8,["size"])])])])]),_:1},8,["visible"])])]),_:1},16,["modelValue","style","size"]))}}),_u=e=>(e.install=t=>{const r=e.name;t.component(r,e)},e),kr=_u(wu),Au={style:{display:"flex","flex-wrap":"wrap",flex:"1","flex-basis":"calc(100% - 50px)","font-size":"12px","margin-top":"4px"}},Cu=i.defineComponent({name:"JcTagQuery",__name:"index",setup(e){const{state:t,reduceTag:r,reduceAllTag:n}=de();return(s,o)=>(i.openBlock(),i.createElementBlock("div",Au,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(t).tags,(a,l)=>(i.openBlock(),i.createBlock(i.unref(I.ElTag),i.mergeProps({ref_for:!0},s.$attrs,{key:a.label,closable:"",style:[{height:"auto","max-height":"28px","white-space":"normal","text-align":"left","max-width":"1800px",overflow:"hidden","word-break":"break-word","text-overflow":"ellipsis"},{marginLeft:l>0?"4px":"0px"}],onClose:u=>i.unref(r)(a,l)}),{default:i.withCtx(()=>[i.createVNode(i.unref(I.ElTooltip),{content:a.value,placement:"bottom",effect:"light"},{default:i.withCtx(()=>[i.createElementVNode("span",null,i.toDisplayString(a.showStr),1)]),_:2},1032,["content"])]),_:2},1040,["style","onClose"]))),128)),i.unref(t).tags.length>1?(i.openBlock(),i.createElementBlock("span",{key:0,style:{"margin-left":"10px","margin-top":"2px",display:"block"},onClick:o[0]||(o[0]=(...a)=>i.unref(n)&&i.unref(n)(...a))},[i.createVNode(i.unref(I.ElIcon),null,{default:i.withCtx(()=>[i.createVNode(i.unref(J.Delete))]),_:1})])):i.createCommentVNode("",!0)]))}}),Su=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},Eu=Su(Cu,[["__scopeId","data-v-1420a179"]]),xu=e=>(e.install=t=>{const r=e.name;t.component(r,e)},e),Lr=xu(Eu),$u={class:"popover-btn"},Tu={class:"popover-btn-right"},Iu=i.defineComponent({name:"JcMoreQueryContain",__name:"index",props:{fieldList:{type:Array,require:!0,default:()=>[]},customTagObj:{type:Object,default:()=>({})},width:{type:Number,default:400},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)}},setup(e,{expose:t}){const r=i.ref(!1),n=i.ref({}),s=e,{state:o,setQuery:a,addTag:l,reduceTag:u}=de(),c=()=>{r.value=!r.value,r.value&&s.fieldList.forEach(d=>{n.value[d.value]=o.queryForm[d.value]||void 0})},f=()=>{n.value={},s.fieldList.forEach(d=>{a(d.value,void 0),u({key:d.value})}),r.value=!1},g=(d,h)=>{var b;typeof n.value[d]=="string"||typeof n.value[d]=="number"?l({key:d,label:h,value:N(s.customTagObj[d])?n.value[d]:s.customTagObj[d]}):l({key:d,label:h,value:N(s.customTagObj[d])?(b=n.value[d])==null?void 0:b.join(","):s.customTagObj[d]})},p=()=>{for(const d in n.value){a(d,n.value[d]||void 0);const h=s.fieldList.find(b=>b.value===d);h===void 0&&I.ElMessage.warning("传入的fieldList和表单绑定的字段不匹配"),g(d,h.label)}r.value=!1};i.watch(s.fieldList.map(d=>()=>o.queryForm[d.value]),()=>{s.fieldList.forEach(d=>{n.value[d.value]=o.queryForm[d.value],N(o.queryForm[d.value])?u({key:d.value}):g(d.value,d.label)})},{deep:!0});const v=i.ref(),m=i.reactive({});return i.onMounted(()=>{var d;v.value&&(m.hide=(d=v.value)==null?void 0:d.hide)}),t(m),(d,h)=>(i.openBlock(),i.createBlock(i.unref(I.ElPopover),i.mergeProps({ref_key:"popoverRef",ref:v},d.$attrs,{visible:r.value,placement:"bottom",width:e.width,"show-arrow":!1,"popper-class":"moreQuery-pop",trigger:"click"}),{reference:i.withCtx(()=>[i.createVNode(i.unref(I.ElButton),{size:e.size,icon:i.unref(J.Operation),onClick:c},null,8,["size","icon"])]),default:i.withCtx(()=>[i.renderSlot(d.$slots,"default",{scopeForm:n.value}),i.createElementVNode("div",$u,[i.createVNode(i.unref(I.ElButton),{size:e.size,onClick:f},{default:i.withCtx(()=>h[1]||(h[1]=[i.createTextVNode("清空")])),_:1,__:[1]},8,["size"]),i.createElementVNode("div",Tu,[i.createVNode(i.unref(I.ElButton),{size:e.size,onClick:h[0]||(h[0]=b=>r.value=!1)},{default:i.withCtx(()=>h[2]||(h[2]=[i.createTextVNode("关闭")])),_:1,__:[2]},8,["size"]),i.createVNode(i.unref(I.ElButton),{type:"primary",size:e.size,onClick:p},{default:i.withCtx(()=>h[3]||(h[3]=[i.createTextVNode("搜索")])),_:1,__:[3]},8,["size"])])])]),_:3},16,["visible","width"]))}}),Ou=e=>(e.install=t=>{const r=e.name;t.component(r,e)},e),Nr=Ou(Iu),Mu={class:"jc-list-layout"},Bu={key:1,class:"bottom-header"},Fu=i.defineComponent({name:"JcListLayout",__name:"index",setup(e){return(t,r)=>(i.openBlock(),i.createElementBlock("div",Mu,[t.$slots["top-body"]?(i.openBlock(),i.createBlock(i.unref(I.ElCard),{key:0,class:"top-card",shadow:"never"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"top-body")]),_:3})):i.createCommentVNode("",!0),t.$slots["bottom-header"]?(i.openBlock(),i.createElementBlock("div",Bu,[i.renderSlot(t.$slots,"bottom-header")])):i.createCommentVNode("",!0),t.$slots["bottom-body"]?(i.openBlock(),i.createBlock(i.unref(I.ElCard),{key:2,class:"bottom-card",shadow:"never"},{default:i.withCtx(()=>[i.renderSlot(t.$slots,"bottom-body")]),_:3})):i.createCommentVNode("",!0)]))}}),zu=e=>(e.install=t=>{const r=e.name;t.component(r,e)},e),Dr=zu(Fu),ju=Object.freeze(Object.defineProperty({__proto__:null,JcDatePicker:zr,JcInputComplex:kr,JcInputSwitch:jr,JcListLayout:Dr,JcMoreQueryContain:Nr,JcSelectQuery:Fr,JcTagQuery:Lr},Symbol.toStringTag,{value:"Module"})),ku=(e={})=>{const t=gr(e),r=i.reactive({queryForm:t,tags:[]}),{state:n,setQuery:s,addTag:o,reduceTag:a,reduceAllTag:l,clearQuery:u}=tu(r),c=()=>{u(e)};return{queryForm:n.queryForm,setQuery:s,addTag:o,reduceTag:a,reduceAllTag:l,clearQuery:c}},Lu={install:e=>{for(const t of Object.values(ju))e.use(t)}};exports.JcDatePicker=zr;exports.JcInputComplex=kr;exports.JcInputSwitch=jr;exports.JcListLayout=Dr;exports.JcMoreQueryContain=Nr;exports.JcSelectQuery=Fr;exports.JcTagQuery=Lr;exports.default=Lu;exports.reactiveQuery=ku;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bscjc/webui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/lib/index.cjs",
|
|
7
7
|
"module": "./dist/es/index.mjs",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"cssnano": "^7.0.7",
|
|
53
53
|
"unplugin-element-plus": "^0.10.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "ecb014d62f0f22fea8318742440f845c31884f17"
|
|
56
56
|
}
|