@cregis/ui 0.2.4 → 0.2.6
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/dist/es/cregis-ui.js +894 -834
- package/dist/index.css +1 -1
- package/dist/types/index.d.ts +5 -0
- package/dist/umd/cregis-ui.umd.cjs +1 -1
- package/dist/umd/index.css +1 -1
- package/package.json +1 -1
package/dist/es/cregis-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as G, useSlots as ur, computed as
|
|
1
|
+
import { defineComponent as G, useSlots as ur, computed as h, createElementBlock as O, openBlock as y, createElementVNode as D, createCommentVNode as q, mergeProps as xe, createBlock as Me, resolveDynamicComponent as Ft, normalizeStyle as ie, renderSlot as Y, normalizeClass as L, toDisplayString as j, unref as ae, ref as I, watch as J, withDirectives as Le, vModelDynamic as dr, withModifiers as fr, vModelText as pr, createVNode as X, withCtx as Z, createTextVNode as $e, nextTick as Ke, reactive as je, provide as Ht, toRef as vr, Fragment as lt, renderList as ct, inject as qt, onMounted as et, onUnmounted as Ve, onBeforeUnmount as Ut, Transition as vt, render as Qe, h as Yt, toHandlers as Vt, vShow as mt } from "vue";
|
|
2
2
|
import { EdsLoad as mr, EdsCloseCircleFill as gr, EdsWarningFill as hr, EdsSearch as Xt, EdsArrowDownMiniIos as Kt, EdsArrowRightMiniIos as br } from "@cregis/icon";
|
|
3
3
|
const yr = {
|
|
4
4
|
key: 0,
|
|
@@ -24,10 +24,10 @@ const yr = {
|
|
|
24
24
|
isActive: { type: Boolean }
|
|
25
25
|
},
|
|
26
26
|
setup(e) {
|
|
27
|
-
const t = e, r = ur(), n =
|
|
28
|
-
const s = t,
|
|
29
|
-
return !s.icon && typeof
|
|
30
|
-
}), a =
|
|
27
|
+
const t = e, r = ur(), n = h(() => {
|
|
28
|
+
const s = t, u = r.icon;
|
|
29
|
+
return !s.icon && typeof u == "function";
|
|
30
|
+
}), a = h(() => t.size === "large" ? "20px" : t.size === "medium" ? "16px" : "12px"), i = h(() => t.size === "large" || t.size === "medium" ? "16px" : "12px"), l = h(() => t.width ? { width: t.width } : void 0), o = h(() => {
|
|
31
31
|
if (t.plain || t.text)
|
|
32
32
|
switch (t.type) {
|
|
33
33
|
case "primary":
|
|
@@ -44,8 +44,8 @@ const yr = {
|
|
|
44
44
|
else
|
|
45
45
|
return t.type === "secondary" ? "var(--material-foreground-base-secondary)" : t.type === "foreground" ? "var(--text-face-primary)" : t.type === "sameWhite" ? "var(--text-same-black)" : "var(--material-same-white)";
|
|
46
46
|
});
|
|
47
|
-
return (s,
|
|
48
|
-
|
|
47
|
+
return (s, u) => e.icon || s.$slots.icon ? (y(), O("div", yr, [
|
|
48
|
+
D("button", xe(s.$attrs, {
|
|
49
49
|
class: ["cregis-button__icon", {
|
|
50
50
|
[`cregis-button__icon--${e.iconType}`]: e.iconType,
|
|
51
51
|
[`cregis-button__icon--${e.size}`]: e.size,
|
|
@@ -55,22 +55,22 @@ const yr = {
|
|
|
55
55
|
}],
|
|
56
56
|
disabled: e.disabled || e.loading
|
|
57
57
|
}), [
|
|
58
|
-
e.icon ? (
|
|
58
|
+
e.icon ? (y(), Me(Ft(e.icon), {
|
|
59
59
|
key: 0,
|
|
60
60
|
size: a.value
|
|
61
|
-
}, null, 8, ["size"])) : (
|
|
61
|
+
}, null, 8, ["size"])) : (y(), O("span", {
|
|
62
62
|
key: 1,
|
|
63
63
|
class: "cregis-button__icon-slot-inner",
|
|
64
64
|
style: ie({ "--cregis-btn-icon-slot-size": a.value })
|
|
65
65
|
}, [
|
|
66
|
-
|
|
66
|
+
Y(s.$slots, "icon")
|
|
67
67
|
], 4))
|
|
68
68
|
], 16, wr),
|
|
69
|
-
e.iconText ? (
|
|
69
|
+
e.iconText ? (y(), O("span", {
|
|
70
70
|
key: 0,
|
|
71
|
-
class:
|
|
72
|
-
},
|
|
73
|
-
])) : e.link ? (
|
|
71
|
+
class: L(["cregis-button__icon-text", { "is-disabled": e.disabled }])
|
|
72
|
+
}, j(e.iconText), 3)) : q("", !0)
|
|
73
|
+
])) : e.link ? (y(), O("button", xe({ key: 1 }, s.$attrs, {
|
|
74
74
|
class: ["cregis-button__link", {
|
|
75
75
|
[`cregis-button__link--${e.type}`]: e.type,
|
|
76
76
|
[`cregis-button__link--${e.size}`]: e.size,
|
|
@@ -79,8 +79,8 @@ const yr = {
|
|
|
79
79
|
}],
|
|
80
80
|
disabled: e.disabled || e.loading
|
|
81
81
|
}), [
|
|
82
|
-
|
|
83
|
-
], 16, xr)) : (
|
|
82
|
+
Y(s.$slots, "default")
|
|
83
|
+
], 16, xr)) : (y(), O("button", xe({
|
|
84
84
|
key: 2,
|
|
85
85
|
ref: "buttonRef"
|
|
86
86
|
}, s.$attrs, {
|
|
@@ -98,18 +98,18 @@ const yr = {
|
|
|
98
98
|
}],
|
|
99
99
|
disabled: e.disabled || e.loading
|
|
100
100
|
}), [
|
|
101
|
-
e.loading ? (
|
|
101
|
+
e.loading ? (y(), Me(ae(mr), {
|
|
102
102
|
key: 0,
|
|
103
103
|
class: "loading",
|
|
104
104
|
size: i.value,
|
|
105
105
|
color: o.value
|
|
106
|
-
}, null, 8, ["size", "color"])) :
|
|
106
|
+
}, null, 8, ["size", "color"])) : Y(s.$slots, "default", { key: 1 })
|
|
107
107
|
], 16, Or));
|
|
108
108
|
}
|
|
109
109
|
}), $r = {
|
|
110
110
|
key: 0,
|
|
111
111
|
class: "cregis-input__prefix"
|
|
112
|
-
}, kr = ["type", "placeholder", "disabled"], Tr = {
|
|
112
|
+
}, kr = ["type", "placeholder", "min", "disabled"], Tr = {
|
|
113
113
|
key: 2,
|
|
114
114
|
class: "cregis-input__suffix"
|
|
115
115
|
}, Sr = ["disabled", "placeholder", "rows"], Cr = {
|
|
@@ -130,160 +130,220 @@ const yr = {
|
|
|
130
130
|
inputStyle: {},
|
|
131
131
|
unit: {},
|
|
132
132
|
rows: { default: 3 },
|
|
133
|
+
nonNegative: { type: Boolean, default: !1 },
|
|
134
|
+
decimals: {},
|
|
133
135
|
pasteText: { default: "Paste" },
|
|
134
136
|
clearText: { default: "Clear" }
|
|
135
137
|
},
|
|
136
138
|
emits: ["update:modelValue", "input", "change", "focus", "blur", "clear"],
|
|
137
139
|
setup(e, { expose: t, emit: r }) {
|
|
138
|
-
const n = e, a = r, i =
|
|
140
|
+
const n = e, a = r, i = (d) => {
|
|
141
|
+
if (d === "" || d === null || d === void 0) return "";
|
|
142
|
+
const f = String(d).trim();
|
|
143
|
+
if (f === "") return "";
|
|
144
|
+
const g = Number(f.replace(/,/g, ""));
|
|
145
|
+
if (!Number.isNaN(g) && g < 0) return Math.abs(g);
|
|
146
|
+
if (/^-/.test(f)) {
|
|
147
|
+
const P = f.replace(/^-+/, "");
|
|
148
|
+
return P === "" ? "" : P;
|
|
149
|
+
}
|
|
150
|
+
return d;
|
|
151
|
+
}, l = h(() => {
|
|
152
|
+
const d = n.decimals;
|
|
153
|
+
return d === void 0 || !Number.isFinite(d) ? null : Math.max(0, Math.floor(d));
|
|
154
|
+
}), o = (d) => {
|
|
155
|
+
const f = l.value;
|
|
156
|
+
if (f === null) return d;
|
|
157
|
+
if (d === "" || d === null || d === void 0) return "";
|
|
158
|
+
const g = String(d).trim();
|
|
159
|
+
if (g === "") return "";
|
|
160
|
+
const P = g.startsWith("-");
|
|
161
|
+
let F = P ? g.slice(1) : g;
|
|
162
|
+
const H = F.indexOf(".");
|
|
163
|
+
if (H === -1) return d;
|
|
164
|
+
const N = F.slice(0, H), _ = F.slice(H + 1);
|
|
165
|
+
return f === 0 ? (P ? "-" : "") + N : _.length <= f ? d : (P ? "-" : "") + N + "." + _.slice(0, f);
|
|
166
|
+
}, s = (d) => {
|
|
167
|
+
let f = d;
|
|
168
|
+
return n.nonNegative && (f = i(f)), l.value !== null && (f = o(f)), f;
|
|
169
|
+
}, u = I(
|
|
170
|
+
n.type === "number" ? s(n.modelValue) : n.modelValue
|
|
171
|
+
);
|
|
139
172
|
J(
|
|
140
173
|
() => n.modelValue,
|
|
141
|
-
(
|
|
142
|
-
|
|
174
|
+
(d) => {
|
|
175
|
+
u.value = n.type === "number" ? s(d) : d;
|
|
143
176
|
}
|
|
144
177
|
);
|
|
145
|
-
const
|
|
146
|
-
let
|
|
147
|
-
const
|
|
148
|
-
await Ke(),
|
|
149
|
-
},
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
178
|
+
const c = I(), x = I(0), k = I(!1);
|
|
179
|
+
let m = null;
|
|
180
|
+
const V = async () => {
|
|
181
|
+
await Ke(), c.value?.focus();
|
|
182
|
+
}, $ = async () => {
|
|
183
|
+
if (n.type === "number") {
|
|
184
|
+
const d = s(u.value);
|
|
185
|
+
d !== u.value && (u.value = d);
|
|
186
|
+
}
|
|
187
|
+
a("update:modelValue", u.value), a("input", u.value), await Ke(), S();
|
|
188
|
+
}, T = () => {
|
|
189
|
+
a("change", u.value);
|
|
190
|
+
}, E = (d) => {
|
|
191
|
+
k.value = !0, a("focus", d);
|
|
192
|
+
}, A = (d) => {
|
|
193
|
+
k.value = !1, a("blur", d);
|
|
194
|
+
}, W = h(() => n.clearable && !n.disabled && !!u.value && k.value), w = () => {
|
|
195
|
+
u.value = "", a("update:modelValue", ""), a("clear"), a("input", ""), a("change", "");
|
|
196
|
+
}, S = () => {
|
|
197
|
+
m && cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
198
|
+
if (!c.value || c.value.tagName !== "INPUT") return;
|
|
199
|
+
const d = c.value, f = d.value, g = document.createElement("span");
|
|
200
|
+
g.style.position = "absolute", g.style.visibility = "hidden", g.style.whiteSpace = "pre", g.style.font = window.getComputedStyle(d).font, g.style.letterSpacing = window.getComputedStyle(d).letterSpacing, g.textContent = f || " ", document.body.appendChild(g), x.value = g.getBoundingClientRect().width, document.body.removeChild(g);
|
|
164
201
|
});
|
|
165
|
-
},
|
|
166
|
-
const
|
|
167
|
-
return
|
|
168
|
-
}),
|
|
202
|
+
}, p = h(() => {
|
|
203
|
+
const d = {};
|
|
204
|
+
return x.value > 0 && (d.position = "absolute", d.left = `${x.value + 16}px`), d;
|
|
205
|
+
}), C = async () => {
|
|
169
206
|
try {
|
|
170
|
-
|
|
171
|
-
} catch (
|
|
172
|
-
console.error("paste error:",
|
|
207
|
+
u.value = await navigator.clipboard.readText(), a("update:modelValue", u.value);
|
|
208
|
+
} catch (d) {
|
|
209
|
+
console.error("paste error:", d);
|
|
210
|
+
}
|
|
211
|
+
}, R = h(
|
|
212
|
+
() => n.type === "number" && n.nonNegative ? 0 : void 0
|
|
213
|
+
), z = (d) => {
|
|
214
|
+
if (n.type !== "number" || d.isComposing) return;
|
|
215
|
+
const f = l.value;
|
|
216
|
+
if ((n.nonNegative || f !== null) && (d.key === "e" || d.key === "E")) {
|
|
217
|
+
d.preventDefault();
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
if (n.nonNegative && (d.key === "-" || d.key === "+")) {
|
|
221
|
+
d.preventDefault();
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
if (f === 0 && d.key === ".") {
|
|
225
|
+
d.preventDefault();
|
|
226
|
+
return;
|
|
227
|
+
}
|
|
228
|
+
if (f !== null && f > 0 && d.key !== "." && /^\d$/.test(d.key)) {
|
|
229
|
+
const g = d.target, P = g.value, F = g.selectionStart ?? P.length, H = g.selectionEnd ?? P.length, N = P.slice(0, F) + d.key + P.slice(H), _ = N.indexOf(".");
|
|
230
|
+
_ !== -1 && N.slice(_ + 1).replace(/\D/g, "").length > f && d.preventDefault();
|
|
173
231
|
}
|
|
174
232
|
};
|
|
175
233
|
return t({
|
|
176
|
-
focus:
|
|
177
|
-
updateTextWidth:
|
|
178
|
-
}), (
|
|
234
|
+
focus: V,
|
|
235
|
+
updateTextWidth: S
|
|
236
|
+
}), (d, f) => e.type !== "textarea" ? (y(), O("div", {
|
|
179
237
|
key: 0,
|
|
180
|
-
class:
|
|
238
|
+
class: L(["cregis-input", {
|
|
181
239
|
[`cregis-input--${e.size}`]: e.size,
|
|
182
240
|
"is-disabled": e.disabled,
|
|
183
|
-
"is-prefix":
|
|
184
|
-
"is-suffix":
|
|
241
|
+
"is-prefix": d.$slots.prefix,
|
|
242
|
+
"is-suffix": d.$slots.suffix
|
|
185
243
|
}]),
|
|
186
244
|
style: ie([{ width: e.width }, e.inputStyle])
|
|
187
245
|
}, [
|
|
188
|
-
|
|
189
|
-
class:
|
|
246
|
+
D("div", {
|
|
247
|
+
class: L(["cregis-input__wrapper", { "is-focus": k.value }])
|
|
190
248
|
}, [
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
])) :
|
|
194
|
-
|
|
249
|
+
d.$slots.prefix ? (y(), O("span", $r, [
|
|
250
|
+
Y(d.$slots, "prefix")
|
|
251
|
+
])) : q("", !0),
|
|
252
|
+
Le(D("input", xe({
|
|
195
253
|
class: "cregis-input__inner",
|
|
196
|
-
"onUpdate:modelValue":
|
|
254
|
+
"onUpdate:modelValue": f[0] || (f[0] = (g) => u.value = g),
|
|
197
255
|
ref_key: "inputRef",
|
|
198
|
-
ref:
|
|
256
|
+
ref: c,
|
|
199
257
|
type: e.type,
|
|
200
258
|
placeholder: e.placeholder
|
|
201
|
-
},
|
|
259
|
+
}, d.$attrs, {
|
|
260
|
+
min: R.value,
|
|
202
261
|
spellcheck: "false",
|
|
203
262
|
disabled: e.disabled,
|
|
204
|
-
onInput:
|
|
205
|
-
onChange:
|
|
206
|
-
onFocus:
|
|
207
|
-
onBlur:
|
|
263
|
+
onInput: $,
|
|
264
|
+
onChange: T,
|
|
265
|
+
onFocus: E,
|
|
266
|
+
onBlur: A,
|
|
267
|
+
onKeydown: z
|
|
208
268
|
}), null, 16, kr), [
|
|
209
|
-
[dr,
|
|
269
|
+
[dr, u.value]
|
|
210
270
|
]),
|
|
211
|
-
e.unit &&
|
|
271
|
+
e.unit && u.value ? (y(), O("span", {
|
|
212
272
|
key: 1,
|
|
213
|
-
style: ie(
|
|
273
|
+
style: ie(p.value),
|
|
214
274
|
class: "cregis-input__unit"
|
|
215
|
-
},
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
275
|
+
}, j(e.unit), 5)) : q("", !0),
|
|
276
|
+
d.$slots.suffix || W.value ? (y(), O("span", Tr, [
|
|
277
|
+
Y(d.$slots, "suffix"),
|
|
278
|
+
W.value ? (y(), Me(Ye, {
|
|
219
279
|
key: 0,
|
|
220
|
-
icon:
|
|
280
|
+
icon: ae(gr),
|
|
221
281
|
"icon-type": "square",
|
|
222
|
-
onClick:
|
|
223
|
-
onMousedown:
|
|
282
|
+
onClick: w,
|
|
283
|
+
onMousedown: f[1] || (f[1] = fr(() => {
|
|
224
284
|
}, ["prevent"]))
|
|
225
|
-
}, null, 8, ["icon"])) :
|
|
226
|
-
])) :
|
|
285
|
+
}, null, 8, ["icon"])) : q("", !0)
|
|
286
|
+
])) : q("", !0)
|
|
227
287
|
], 2)
|
|
228
|
-
], 6)) : (
|
|
288
|
+
], 6)) : (y(), O("div", {
|
|
229
289
|
key: 1,
|
|
230
|
-
class:
|
|
290
|
+
class: L(["cregis-textarea", { "is-disabled": e.disabled }]),
|
|
231
291
|
style: ie([{ width: e.width }, e.inputStyle])
|
|
232
292
|
}, [
|
|
233
|
-
|
|
293
|
+
Le(D("textarea", xe({ class: "cregis-textarea__wrapper" }, d.$attrs, {
|
|
234
294
|
spellcheck: "false",
|
|
235
295
|
ref_key: "inputRef",
|
|
236
|
-
ref:
|
|
296
|
+
ref: c,
|
|
237
297
|
disabled: e.disabled,
|
|
238
298
|
placeholder: e.placeholder,
|
|
239
299
|
rows: e.rows,
|
|
240
|
-
"onUpdate:modelValue":
|
|
241
|
-
onInput:
|
|
242
|
-
onChange:
|
|
243
|
-
onFocus:
|
|
244
|
-
onBlur:
|
|
300
|
+
"onUpdate:modelValue": f[2] || (f[2] = (g) => u.value = g),
|
|
301
|
+
onInput: $,
|
|
302
|
+
onChange: T,
|
|
303
|
+
onFocus: E,
|
|
304
|
+
onBlur: A
|
|
245
305
|
}), null, 16, Sr), [
|
|
246
|
-
[pr,
|
|
306
|
+
[pr, u.value]
|
|
247
307
|
]),
|
|
248
|
-
e.disabled ?
|
|
249
|
-
|
|
308
|
+
e.disabled ? q("", !0) : (y(), O("div", Cr, [
|
|
309
|
+
X(Ye, {
|
|
250
310
|
class: "cregis-textarea__button",
|
|
251
311
|
link: "",
|
|
252
312
|
size: "small",
|
|
253
|
-
onClick:
|
|
313
|
+
onClick: C
|
|
254
314
|
}, {
|
|
255
315
|
default: Z(() => [
|
|
256
|
-
$e(
|
|
316
|
+
$e(j(e.pasteText), 1)
|
|
257
317
|
]),
|
|
258
318
|
_: 1
|
|
259
319
|
}),
|
|
260
|
-
|
|
320
|
+
X(Ye, {
|
|
261
321
|
class: "cregis-textarea__button",
|
|
262
322
|
link: "",
|
|
263
323
|
size: "small",
|
|
264
|
-
disabled: !
|
|
265
|
-
onClick:
|
|
324
|
+
disabled: !u.value,
|
|
325
|
+
onClick: w
|
|
266
326
|
}, {
|
|
267
327
|
default: Z(() => [
|
|
268
|
-
$e(
|
|
328
|
+
$e(j(e.clearText), 1)
|
|
269
329
|
]),
|
|
270
330
|
_: 1
|
|
271
331
|
}, 8, ["disabled"])
|
|
272
332
|
]))
|
|
273
333
|
], 6));
|
|
274
334
|
}
|
|
275
|
-
}), Pr = ["width", "height"],
|
|
335
|
+
}), Pr = ["width", "height"], Er = {
|
|
276
336
|
stroke: "none",
|
|
277
337
|
"stroke-width": "1",
|
|
278
338
|
fill: "none",
|
|
279
339
|
"fill-rule": "evenodd"
|
|
280
|
-
},
|
|
340
|
+
}, Vr = { transform: "translate(-394.000000, -457.000000)" }, Br = { transform: "translate(394.000000, 457.000000)" }, Dr = ["width", "height"], Ar = /* @__PURE__ */ G({
|
|
281
341
|
__name: "checked-basis",
|
|
282
342
|
props: {
|
|
283
343
|
size: { default: "16px" }
|
|
284
344
|
},
|
|
285
345
|
setup(e) {
|
|
286
|
-
return (t, r) => (
|
|
346
|
+
return (t, r) => (y(), O("svg", {
|
|
287
347
|
width: e.size,
|
|
288
348
|
height: e.size,
|
|
289
349
|
viewBox: "0 0 16 16",
|
|
@@ -291,16 +351,16 @@ const yr = {
|
|
|
291
351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
292
352
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
293
353
|
}, [
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
354
|
+
D("g", Er, [
|
|
355
|
+
D("g", Vr, [
|
|
356
|
+
D("g", Br, [
|
|
357
|
+
D("rect", {
|
|
298
358
|
x: "0",
|
|
299
359
|
y: "0",
|
|
300
360
|
width: e.size,
|
|
301
361
|
height: e.size
|
|
302
|
-
}, null, 8,
|
|
303
|
-
r[0] || (r[0] =
|
|
362
|
+
}, null, 8, Dr),
|
|
363
|
+
r[0] || (r[0] = D("path", {
|
|
304
364
|
d: "M6.67713976,13.5709642 C7.12567714,13.5709642 7.468039,13.3943662 7.70422535,13.0411701 L13.7562297,3.77789816 C13.8407367,3.65005417 13.9024919,3.52546046 13.9414951,3.40411701 C13.9804984,3.28277356 14,3.16468039 14,3.04983749 C14,2.74647887 13.8976165,2.49566631 13.6928494,2.29739978 C13.4880823,2.09913326 13.2307692,2 12.9209101,2 C12.7063922,2 12.5265439,2.04225352 12.3813651,2.12676056 C12.2361863,2.21126761 12.0975081,2.35536295 11.9653304,2.55904659 L6.65113759,10.9512459 L3.95016251,7.60346696 C3.71830986,7.32177681 3.43011918,7.18093174 3.08559047,7.18093174 C2.77139762,7.18093174 2.51191766,7.28169014 2.3071506,7.48320693 C2.10238353,7.68472373 2,7.93824485 2,8.24377031 C2,8.38028169 2.02329361,8.51083424 2.06988082,8.63542795 C2.11646804,8.76002167 2.19826652,8.88949079 2.31527627,9.02383532 L5.67280607,13.0899242 C5.94149512,13.4106176 6.27627302,13.5709642 6.67713976,13.5709642 Z",
|
|
305
365
|
fill: "currentColor",
|
|
306
366
|
"fill-rule": "nonzero"
|
|
@@ -310,7 +370,7 @@ const yr = {
|
|
|
310
370
|
])
|
|
311
371
|
], 8, Pr));
|
|
312
372
|
}
|
|
313
|
-
}),
|
|
373
|
+
}), Rr = {
|
|
314
374
|
key: 0,
|
|
315
375
|
class: "cregis-checkbox--indeterminate"
|
|
316
376
|
}, ei = /* @__PURE__ */ G({
|
|
@@ -325,7 +385,7 @@ const yr = {
|
|
|
325
385
|
},
|
|
326
386
|
emits: ["update:modelValue", "change"],
|
|
327
387
|
setup(e, { emit: t }) {
|
|
328
|
-
const r = e, n = t, a =
|
|
388
|
+
const r = e, n = t, a = h(() => r.modelValue), i = () => {
|
|
329
389
|
r.disabled || n("update:modelValue", !a.value);
|
|
330
390
|
};
|
|
331
391
|
return J(
|
|
@@ -333,31 +393,31 @@ const yr = {
|
|
|
333
393
|
() => {
|
|
334
394
|
n("change", a.value);
|
|
335
395
|
}
|
|
336
|
-
), (l, o) => (
|
|
396
|
+
), (l, o) => (y(), O("div", {
|
|
337
397
|
class: "cregis-checkbox__wrapper",
|
|
338
398
|
onClick: i
|
|
339
399
|
}, [
|
|
340
|
-
|
|
341
|
-
class:
|
|
400
|
+
D("div", {
|
|
401
|
+
class: L(["cregis-checkbox", {
|
|
342
402
|
"is-disabled": e.disabled,
|
|
343
403
|
"is-checked": a.value,
|
|
344
404
|
"is-circle": e.circle,
|
|
345
405
|
"is-indeterminate": e.indeterminate
|
|
346
406
|
}])
|
|
347
407
|
}, [
|
|
348
|
-
e.indeterminate ? (
|
|
408
|
+
e.indeterminate ? (y(), O("div", Rr)) : (y(), Me(Ar, {
|
|
349
409
|
key: 1,
|
|
350
410
|
size: "10px"
|
|
351
411
|
}))
|
|
352
412
|
], 2),
|
|
353
|
-
l.$slots.default || e.label ? (
|
|
413
|
+
l.$slots.default || e.label ? (y(), O("span", {
|
|
354
414
|
key: 0,
|
|
355
|
-
class:
|
|
415
|
+
class: L(["cregis-checkbox__label", { "is-disabled": e.disabled }])
|
|
356
416
|
}, [
|
|
357
|
-
|
|
358
|
-
$e(
|
|
417
|
+
Y(l.$slots, "default", {}, () => [
|
|
418
|
+
$e(j(e.label), 1)
|
|
359
419
|
])
|
|
360
|
-
], 2)) :
|
|
420
|
+
], 2)) : q("", !0)
|
|
361
421
|
]));
|
|
362
422
|
}
|
|
363
423
|
}), ti = /* @__PURE__ */ G({
|
|
@@ -371,29 +431,29 @@ const yr = {
|
|
|
371
431
|
},
|
|
372
432
|
emits: ["update:modelValue", "change"],
|
|
373
433
|
setup(e, { emit: t }) {
|
|
374
|
-
const r = e, n = t, a =
|
|
434
|
+
const r = e, n = t, a = h(() => r.modelValue === r.value), i = () => {
|
|
375
435
|
r.disabled || (n("update:modelValue", r.value), n("change", r.value));
|
|
376
436
|
};
|
|
377
|
-
return (l, o) => (
|
|
437
|
+
return (l, o) => (y(), O("div", {
|
|
378
438
|
class: "cregis-radio__wrapper",
|
|
379
439
|
onClick: i
|
|
380
440
|
}, [
|
|
381
|
-
|
|
382
|
-
class:
|
|
441
|
+
D("div", {
|
|
442
|
+
class: L(["cregis-radio", {
|
|
383
443
|
"is-disabled": e.disabled,
|
|
384
444
|
"is-checked": a.value
|
|
385
445
|
}])
|
|
386
446
|
}, [...o[0] || (o[0] = [
|
|
387
|
-
|
|
447
|
+
D("div", { class: "cregis-radio__inner" }, null, -1)
|
|
388
448
|
])], 2),
|
|
389
|
-
l.$slots.default || e.label ? (
|
|
449
|
+
l.$slots.default || e.label ? (y(), O("span", {
|
|
390
450
|
key: 0,
|
|
391
|
-
class:
|
|
451
|
+
class: L(["cregis-radio__label", { "is-disabled": e.disabled }])
|
|
392
452
|
}, [
|
|
393
|
-
|
|
394
|
-
$e(
|
|
453
|
+
Y(l.$slots, "default", {}, () => [
|
|
454
|
+
$e(j(e.label), 1)
|
|
395
455
|
])
|
|
396
|
-
], 2)) :
|
|
456
|
+
], 2)) : q("", !0)
|
|
397
457
|
]));
|
|
398
458
|
}
|
|
399
459
|
}), ri = /* @__PURE__ */ G({
|
|
@@ -408,13 +468,13 @@ const yr = {
|
|
|
408
468
|
length: {}
|
|
409
469
|
},
|
|
410
470
|
setup(e) {
|
|
411
|
-
const t = e, r =
|
|
471
|
+
const t = e, r = h(() => {
|
|
412
472
|
if (Array.isArray(t.margin)) {
|
|
413
473
|
const [a, i] = t.margin;
|
|
414
474
|
return t.direction === "horizontal" ? `${a} 0 ${i} 0` : `0 ${i} 0 ${a}`;
|
|
415
475
|
} else
|
|
416
476
|
return t.direction === "horizontal" ? `${t.margin} 0` : `0 ${t.margin}`;
|
|
417
|
-
}), n =
|
|
477
|
+
}), n = h(() => t.direction === "horizontal" ? {
|
|
418
478
|
width: t.length || "100%",
|
|
419
479
|
borderTopWidth: t.lineThickness,
|
|
420
480
|
borderTopStyle: t.borderStyle,
|
|
@@ -427,14 +487,14 @@ const yr = {
|
|
|
427
487
|
borderLeftColor: t.color,
|
|
428
488
|
margin: r.value
|
|
429
489
|
});
|
|
430
|
-
return (a, i) => (
|
|
431
|
-
class:
|
|
490
|
+
return (a, i) => (y(), O("div", {
|
|
491
|
+
class: L(["cregis-divider", {
|
|
432
492
|
[`cregis-divider--${e.direction}`]: e.direction
|
|
433
493
|
}]),
|
|
434
494
|
style: ie(n.value)
|
|
435
495
|
}, null, 6));
|
|
436
496
|
}
|
|
437
|
-
}), Gt = Symbol("TABS_KEY"), zr = ["onClick"], Wr = { style: { display: "none" } },
|
|
497
|
+
}), Gt = Symbol("TABS_KEY"), zr = ["onClick"], Wr = { style: { display: "none" } }, ni = /* @__PURE__ */ G({
|
|
438
498
|
name: "Tabs",
|
|
439
499
|
__name: "Tabs",
|
|
440
500
|
props: {
|
|
@@ -444,12 +504,12 @@ const yr = {
|
|
|
444
504
|
},
|
|
445
505
|
emits: ["update:modelValue"],
|
|
446
506
|
setup(e) {
|
|
447
|
-
const t = e, r =
|
|
507
|
+
const t = e, r = je([]), n = (l) => {
|
|
448
508
|
r.some((o) => o.name === l.name) || r.push(l);
|
|
449
509
|
}, a = (l) => {
|
|
450
510
|
const o = r.findIndex((s) => s.name === l);
|
|
451
511
|
o !== -1 && r.splice(o, 1);
|
|
452
|
-
}, i =
|
|
512
|
+
}, i = h(() => t.type === "card" ? t.size === "large" ? {
|
|
453
513
|
borderRadius: "13px"
|
|
454
514
|
} : t.size === "medium" ? {
|
|
455
515
|
borderRadius: "11px"
|
|
@@ -462,26 +522,26 @@ const yr = {
|
|
|
462
522
|
activeName: vr(t, "modelValue"),
|
|
463
523
|
registerTab: n,
|
|
464
524
|
unregisterTab: a
|
|
465
|
-
}), (l, o) => (
|
|
466
|
-
class:
|
|
525
|
+
}), (l, o) => (y(), O("div", {
|
|
526
|
+
class: L(["cregis-tabs", {
|
|
467
527
|
[`cregis-tabs--${e.type}`]: e.type,
|
|
468
528
|
[`cregis-tabs--${e.size}`]: e.size
|
|
469
529
|
}])
|
|
470
530
|
}, [
|
|
471
|
-
(
|
|
531
|
+
(y(!0), O(lt, null, ct(r, (s) => (y(), O("div", {
|
|
472
532
|
key: s.name,
|
|
473
|
-
class:
|
|
533
|
+
class: L(["cregis-tabs__item", { "is-active": e.modelValue === s.name }]),
|
|
474
534
|
style: ie(i.value),
|
|
475
|
-
onClick: (
|
|
535
|
+
onClick: (u) => l.$emit("update:modelValue", s.name)
|
|
476
536
|
}, [
|
|
477
|
-
|
|
537
|
+
D("span", null, j(s.label), 1)
|
|
478
538
|
], 14, zr))), 128)),
|
|
479
|
-
|
|
480
|
-
|
|
539
|
+
D("div", Wr, [
|
|
540
|
+
Y(l.$slots, "default")
|
|
481
541
|
])
|
|
482
542
|
], 2));
|
|
483
543
|
}
|
|
484
|
-
}),
|
|
544
|
+
}), ai = /* @__PURE__ */ G({
|
|
485
545
|
name: "TabPane",
|
|
486
546
|
__name: "TabPane",
|
|
487
547
|
props: {
|
|
@@ -498,16 +558,16 @@ const yr = {
|
|
|
498
558
|
(n) => {
|
|
499
559
|
r.unregisterTab(t.name), r.registerTab({ label: n, name: t.name });
|
|
500
560
|
}
|
|
501
|
-
),
|
|
561
|
+
), Ve(() => {
|
|
502
562
|
r.unregisterTab(t.name);
|
|
503
563
|
}), (n, a) => null;
|
|
504
564
|
}
|
|
505
|
-
}),
|
|
565
|
+
}), Mr = { class: "cregis-message__wrapper" }, Lr = {
|
|
506
566
|
key: 0,
|
|
507
567
|
class: "cregis-message",
|
|
508
568
|
role: "status",
|
|
509
569
|
"aria-live": "polite"
|
|
510
|
-
},
|
|
570
|
+
}, jr = /* @__PURE__ */ G({
|
|
511
571
|
name: "Message",
|
|
512
572
|
__name: "Message",
|
|
513
573
|
props: {
|
|
@@ -516,7 +576,7 @@ const yr = {
|
|
|
516
576
|
onVanish: {}
|
|
517
577
|
},
|
|
518
578
|
setup(e) {
|
|
519
|
-
const t = e, r =
|
|
579
|
+
const t = e, r = I(!1);
|
|
520
580
|
let n;
|
|
521
581
|
const a = () => {
|
|
522
582
|
n = window.setTimeout(() => {
|
|
@@ -529,14 +589,14 @@ const yr = {
|
|
|
529
589
|
n !== void 0 && clearTimeout(n);
|
|
530
590
|
}), Ke(() => {
|
|
531
591
|
r.value = !0;
|
|
532
|
-
}), (l, o) => (
|
|
533
|
-
|
|
592
|
+
}), (l, o) => (y(), O("div", Mr, [
|
|
593
|
+
X(vt, {
|
|
534
594
|
name: "cregis-message",
|
|
535
595
|
onAfterEnter: a,
|
|
536
596
|
onAfterLeave: i
|
|
537
597
|
}, {
|
|
538
598
|
default: Z(() => [
|
|
539
|
-
r.value ? (
|
|
599
|
+
r.value ? (y(), O("div", Lr, j(e.message), 1)) : q("", !0)
|
|
540
600
|
]),
|
|
541
601
|
_: 1
|
|
542
602
|
})
|
|
@@ -544,7 +604,7 @@ const yr = {
|
|
|
544
604
|
}
|
|
545
605
|
});
|
|
546
606
|
let it = !1;
|
|
547
|
-
function
|
|
607
|
+
function Nr(e) {
|
|
548
608
|
return typeof e == "string" ? { message: e, duration: 1e3 } : {
|
|
549
609
|
message: e.message,
|
|
550
610
|
duration: e.duration ?? 1e3
|
|
@@ -552,11 +612,11 @@ function _r(e) {
|
|
|
552
612
|
}
|
|
553
613
|
function ii(e) {
|
|
554
614
|
if (it) return;
|
|
555
|
-
const { message: t, duration: r } =
|
|
615
|
+
const { message: t, duration: r } = Nr(e);
|
|
556
616
|
it = !0;
|
|
557
617
|
const n = document.createElement("div");
|
|
558
618
|
document.body.appendChild(n), Qe(
|
|
559
|
-
Yt(
|
|
619
|
+
Yt(jr, {
|
|
560
620
|
message: t,
|
|
561
621
|
duration: r,
|
|
562
622
|
onVanish: () => {
|
|
@@ -566,7 +626,7 @@ function ii(e) {
|
|
|
566
626
|
n
|
|
567
627
|
);
|
|
568
628
|
}
|
|
569
|
-
const
|
|
629
|
+
const _r = { class: "cregis-notification__wrapper" }, Ir = {
|
|
570
630
|
key: 0,
|
|
571
631
|
class: "cregis-notification",
|
|
572
632
|
role: "status",
|
|
@@ -582,7 +642,7 @@ const Ir = { class: "cregis-notification__wrapper" }, Nr = {
|
|
|
582
642
|
onVanish: {}
|
|
583
643
|
},
|
|
584
644
|
setup(e) {
|
|
585
|
-
const t = e, r =
|
|
645
|
+
const t = e, r = I(!1), n = () => {
|
|
586
646
|
r.value = !1;
|
|
587
647
|
}, a = () => {
|
|
588
648
|
t.onVanish?.();
|
|
@@ -590,31 +650,31 @@ const Ir = { class: "cregis-notification__wrapper" }, Nr = {
|
|
|
590
650
|
return Ut(() => {
|
|
591
651
|
}), Ke(() => {
|
|
592
652
|
r.value = !0;
|
|
593
|
-
}), (i, l) => (
|
|
594
|
-
|
|
653
|
+
}), (i, l) => (y(), O("div", _r, [
|
|
654
|
+
X(vt, {
|
|
595
655
|
name: "cregis-notification",
|
|
596
656
|
onAfterLeave: a
|
|
597
657
|
}, {
|
|
598
658
|
default: Z(() => [
|
|
599
|
-
r.value ? (
|
|
600
|
-
(
|
|
659
|
+
r.value ? (y(), O("div", Ir, [
|
|
660
|
+
(y(), Me(Ft(ae(hr)), {
|
|
601
661
|
size: "18px",
|
|
602
662
|
color: "var(--material-vibrant-error-primary)"
|
|
603
663
|
})),
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
664
|
+
D("div", Fr, [
|
|
665
|
+
D("div", Hr, j(e.title), 1),
|
|
666
|
+
D("div", qr, j(e.message), 1)
|
|
607
667
|
]),
|
|
608
|
-
|
|
668
|
+
X(Ye, {
|
|
609
669
|
type: "sameWhite",
|
|
610
670
|
onClick: n
|
|
611
671
|
}, {
|
|
612
672
|
default: Z(() => [
|
|
613
|
-
$e(
|
|
673
|
+
$e(j(e.btnText), 1)
|
|
614
674
|
]),
|
|
615
675
|
_: 1
|
|
616
676
|
})
|
|
617
|
-
])) :
|
|
677
|
+
])) : q("", !0)
|
|
618
678
|
]),
|
|
619
679
|
_: 1
|
|
620
680
|
})
|
|
@@ -652,36 +712,36 @@ const Yr = { class: "cregis-progress__wrapper" }, Xr = { class: "cregis-progress
|
|
|
652
712
|
showPercentage: { type: Boolean, default: !0 }
|
|
653
713
|
},
|
|
654
714
|
setup(e) {
|
|
655
|
-
const t = e, r =
|
|
715
|
+
const t = e, r = h(() => Math.min(100, Math.max(0, t.percentage - 1))), n = h(() => ({
|
|
656
716
|
width: `${t.percentage}%`,
|
|
657
717
|
height: `${t.strokeWidth}px`
|
|
658
|
-
})), a =
|
|
718
|
+
})), a = h(() => ({
|
|
659
719
|
"--cregis-progress-tip-left": `${r.value}%`
|
|
660
|
-
})), i =
|
|
661
|
-
return (l, o) => (
|
|
662
|
-
|
|
663
|
-
e.showPercentage && t.percentage > 0 ? (
|
|
720
|
+
})), i = h(() => `${Math.round(t.percentage)}%`);
|
|
721
|
+
return (l, o) => (y(), O("div", Yr, [
|
|
722
|
+
D("div", Xr, [
|
|
723
|
+
e.showPercentage && t.percentage > 0 ? (y(), O("div", {
|
|
664
724
|
key: 0,
|
|
665
725
|
class: "cregis-progress__tip",
|
|
666
726
|
style: ie(a.value),
|
|
667
727
|
"aria-live": "polite"
|
|
668
|
-
},
|
|
669
|
-
|
|
670
|
-
|
|
728
|
+
}, j(i.value), 5)) : q("", !0),
|
|
729
|
+
D("div", Kr, [
|
|
730
|
+
D("div", {
|
|
671
731
|
class: "cregis-progress__bar",
|
|
672
732
|
style: ie(n.value)
|
|
673
733
|
}, null, 4),
|
|
674
|
-
t.percentage === 0 ? (
|
|
734
|
+
t.percentage === 0 ? (y(), O("div", Qr)) : q("", !0)
|
|
675
735
|
])
|
|
676
736
|
])
|
|
677
737
|
]));
|
|
678
738
|
}
|
|
679
739
|
});
|
|
680
|
-
var ee = "top", se = "bottom", le = "right", te = "left", gt = "auto",
|
|
681
|
-
return e.concat([t + "-" + Se, t + "-" +
|
|
682
|
-
}, []), Jt = /* @__PURE__ */ [].concat(
|
|
683
|
-
return e.concat([t, t + "-" + Se, t + "-" +
|
|
684
|
-
}, []), Jr = "beforeRead",
|
|
740
|
+
var ee = "top", se = "bottom", le = "right", te = "left", gt = "auto", Ie = [ee, se, le, te], Se = "start", Ne = "end", Gr = "clippingParents", Zt = "viewport", Ae = "popper", Zr = "reference", Bt = /* @__PURE__ */ Ie.reduce(function(e, t) {
|
|
741
|
+
return e.concat([t + "-" + Se, t + "-" + Ne]);
|
|
742
|
+
}, []), Jt = /* @__PURE__ */ [].concat(Ie, [gt]).reduce(function(e, t) {
|
|
743
|
+
return e.concat([t, t + "-" + Se, t + "-" + Ne]);
|
|
744
|
+
}, []), Jr = "beforeRead", en = "read", tn = "afterRead", rn = "beforeMain", nn = "main", an = "afterMain", on = "beforeWrite", sn = "write", ln = "afterWrite", cn = [Jr, en, tn, rn, nn, an, on, sn, ln];
|
|
685
745
|
function ve(e) {
|
|
686
746
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
687
747
|
}
|
|
@@ -708,7 +768,7 @@ function ht(e) {
|
|
|
708
768
|
var t = re(e).ShadowRoot;
|
|
709
769
|
return e instanceof t || e instanceof ShadowRoot;
|
|
710
770
|
}
|
|
711
|
-
function
|
|
771
|
+
function un(e) {
|
|
712
772
|
var t = e.state;
|
|
713
773
|
Object.keys(t.elements).forEach(function(r) {
|
|
714
774
|
var n = t.styles[r] || {}, a = t.attributes[r] || {}, i = t.elements[r];
|
|
@@ -718,7 +778,7 @@ function ca(e) {
|
|
|
718
778
|
}));
|
|
719
779
|
});
|
|
720
780
|
}
|
|
721
|
-
function
|
|
781
|
+
function dn(e) {
|
|
722
782
|
var t = e.state, r = {
|
|
723
783
|
popper: {
|
|
724
784
|
position: t.options.strategy,
|
|
@@ -733,8 +793,8 @@ function ua(e) {
|
|
|
733
793
|
};
|
|
734
794
|
return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
|
|
735
795
|
Object.keys(t.elements).forEach(function(n) {
|
|
736
|
-
var a = t.elements[n], i = t.attributes[n] || {}, l = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), o = l.reduce(function(s,
|
|
737
|
-
return s[
|
|
796
|
+
var a = t.elements[n], i = t.attributes[n] || {}, l = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), o = l.reduce(function(s, u) {
|
|
797
|
+
return s[u] = "", s;
|
|
738
798
|
}, {});
|
|
739
799
|
!oe(a) || !ve(a) || (Object.assign(a.style, o), Object.keys(i).forEach(function(s) {
|
|
740
800
|
a.removeAttribute(s);
|
|
@@ -742,12 +802,12 @@ function ua(e) {
|
|
|
742
802
|
});
|
|
743
803
|
};
|
|
744
804
|
}
|
|
745
|
-
const
|
|
805
|
+
const fn = {
|
|
746
806
|
name: "applyStyles",
|
|
747
807
|
enabled: !0,
|
|
748
808
|
phase: "write",
|
|
749
|
-
fn:
|
|
750
|
-
effect:
|
|
809
|
+
fn: un,
|
|
810
|
+
effect: dn,
|
|
751
811
|
requires: ["computeStyles"]
|
|
752
812
|
};
|
|
753
813
|
function pe(e) {
|
|
@@ -767,15 +827,15 @@ function Pe(e, t, r) {
|
|
|
767
827
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
768
828
|
var n = e.getBoundingClientRect(), a = 1, i = 1;
|
|
769
829
|
t && oe(e) && (a = e.offsetWidth > 0 && Ce(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && Ce(n.height) / e.offsetHeight || 1);
|
|
770
|
-
var l = ke(e) ? re(e) : window, o = l.visualViewport, s = !er() && r,
|
|
830
|
+
var l = ke(e) ? re(e) : window, o = l.visualViewport, s = !er() && r, u = (n.left + (s && o ? o.offsetLeft : 0)) / a, c = (n.top + (s && o ? o.offsetTop : 0)) / i, x = n.width / a, k = n.height / i;
|
|
771
831
|
return {
|
|
772
|
-
width:
|
|
832
|
+
width: x,
|
|
773
833
|
height: k,
|
|
774
834
|
top: c,
|
|
775
|
-
right:
|
|
835
|
+
right: u + x,
|
|
776
836
|
bottom: c + k,
|
|
777
|
-
left:
|
|
778
|
-
x:
|
|
837
|
+
left: u,
|
|
838
|
+
x: u,
|
|
779
839
|
y: c
|
|
780
840
|
};
|
|
781
841
|
}
|
|
@@ -805,7 +865,7 @@ function tr(e, t) {
|
|
|
805
865
|
function ge(e) {
|
|
806
866
|
return re(e).getComputedStyle(e);
|
|
807
867
|
}
|
|
808
|
-
function
|
|
868
|
+
function pn(e) {
|
|
809
869
|
return ["table", "td", "th"].indexOf(ve(e)) >= 0;
|
|
810
870
|
}
|
|
811
871
|
function be(e) {
|
|
@@ -826,11 +886,11 @@ function tt(e) {
|
|
|
826
886
|
be(e)
|
|
827
887
|
);
|
|
828
888
|
}
|
|
829
|
-
function
|
|
889
|
+
function Dt(e) {
|
|
830
890
|
return !oe(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
831
891
|
ge(e).position === "fixed" ? null : e.offsetParent;
|
|
832
892
|
}
|
|
833
|
-
function
|
|
893
|
+
function vn(e) {
|
|
834
894
|
var t = /firefox/i.test(ut()), r = /Trident/i.test(ut());
|
|
835
895
|
if (r && oe(e)) {
|
|
836
896
|
var n = ge(e);
|
|
@@ -847,9 +907,9 @@ function pa(e) {
|
|
|
847
907
|
return null;
|
|
848
908
|
}
|
|
849
909
|
function Fe(e) {
|
|
850
|
-
for (var t = re(e), r =
|
|
851
|
-
r =
|
|
852
|
-
return r && (ve(r) === "html" || ve(r) === "body" && ge(r).position === "static") ? t : r ||
|
|
910
|
+
for (var t = re(e), r = Dt(e); r && pn(r) && ge(r).position === "static"; )
|
|
911
|
+
r = Dt(r);
|
|
912
|
+
return r && (ve(r) === "html" || ve(r) === "body" && ge(r).position === "static") ? t : r || vn(e) || t;
|
|
853
913
|
}
|
|
854
914
|
function yt(e) {
|
|
855
915
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
@@ -857,7 +917,7 @@ function yt(e) {
|
|
|
857
917
|
function ze(e, t, r) {
|
|
858
918
|
return Oe(e, Ge(t, r));
|
|
859
919
|
}
|
|
860
|
-
function
|
|
920
|
+
function mn(e, t, r) {
|
|
861
921
|
var n = ze(e, t, r);
|
|
862
922
|
return n > r ? r : n;
|
|
863
923
|
}
|
|
@@ -869,114 +929,114 @@ function rr() {
|
|
|
869
929
|
left: 0
|
|
870
930
|
};
|
|
871
931
|
}
|
|
872
|
-
function
|
|
932
|
+
function nr(e) {
|
|
873
933
|
return Object.assign({}, rr(), e);
|
|
874
934
|
}
|
|
875
|
-
function
|
|
935
|
+
function ar(e, t) {
|
|
876
936
|
return t.reduce(function(r, n) {
|
|
877
937
|
return r[n] = e, r;
|
|
878
938
|
}, {});
|
|
879
939
|
}
|
|
880
|
-
var
|
|
940
|
+
var gn = function(t, r) {
|
|
881
941
|
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
882
942
|
placement: r.placement
|
|
883
|
-
})) : t,
|
|
943
|
+
})) : t, nr(typeof t != "number" ? t : ar(t, Ie));
|
|
884
944
|
};
|
|
885
|
-
function
|
|
886
|
-
var t, r = e.state, n = e.name, a = e.options, i = r.elements.arrow, l = r.modifiersData.popperOffsets, o = pe(r.placement), s = yt(o),
|
|
945
|
+
function hn(e) {
|
|
946
|
+
var t, r = e.state, n = e.name, a = e.options, i = r.elements.arrow, l = r.modifiersData.popperOffsets, o = pe(r.placement), s = yt(o), u = [te, le].indexOf(o) >= 0, c = u ? "height" : "width";
|
|
887
947
|
if (!(!i || !l)) {
|
|
888
|
-
var
|
|
889
|
-
r.modifiersData[n] = (t = {}, t[
|
|
948
|
+
var x = gn(a.padding, r), k = bt(i), m = s === "y" ? ee : te, V = s === "y" ? se : le, $ = r.rects.reference[c] + r.rects.reference[s] - l[s] - r.rects.popper[c], T = l[s] - r.rects.reference[s], E = Fe(i), A = E ? s === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0, W = $ / 2 - T / 2, w = x[m], S = A - k[c] - x[V], p = A / 2 - k[c] / 2 + W, C = ze(w, p, S), R = s;
|
|
949
|
+
r.modifiersData[n] = (t = {}, t[R] = C, t.centerOffset = C - p, t);
|
|
890
950
|
}
|
|
891
951
|
}
|
|
892
|
-
function
|
|
952
|
+
function bn(e) {
|
|
893
953
|
var t = e.state, r = e.options, n = r.element, a = n === void 0 ? "[data-popper-arrow]" : n;
|
|
894
954
|
a != null && (typeof a == "string" && (a = t.elements.popper.querySelector(a), !a) || tr(t.elements.popper, a) && (t.elements.arrow = a));
|
|
895
955
|
}
|
|
896
|
-
const
|
|
956
|
+
const yn = {
|
|
897
957
|
name: "arrow",
|
|
898
958
|
enabled: !0,
|
|
899
959
|
phase: "main",
|
|
900
|
-
fn:
|
|
901
|
-
effect:
|
|
960
|
+
fn: hn,
|
|
961
|
+
effect: bn,
|
|
902
962
|
requires: ["popperOffsets"],
|
|
903
963
|
requiresIfExists: ["preventOverflow"]
|
|
904
964
|
};
|
|
905
|
-
function
|
|
965
|
+
function Ee(e) {
|
|
906
966
|
return e.split("-")[1];
|
|
907
967
|
}
|
|
908
|
-
var
|
|
968
|
+
var wn = {
|
|
909
969
|
top: "auto",
|
|
910
970
|
right: "auto",
|
|
911
971
|
bottom: "auto",
|
|
912
972
|
left: "auto"
|
|
913
973
|
};
|
|
914
|
-
function
|
|
974
|
+
function xn(e, t) {
|
|
915
975
|
var r = e.x, n = e.y, a = t.devicePixelRatio || 1;
|
|
916
976
|
return {
|
|
917
977
|
x: Ce(r * a) / a || 0,
|
|
918
978
|
y: Ce(n * a) / a || 0
|
|
919
979
|
};
|
|
920
980
|
}
|
|
921
|
-
function
|
|
922
|
-
var t, r = e.popper, n = e.popperRect, a = e.placement, i = e.variation, l = e.offsets, o = e.position, s = e.gpuAcceleration,
|
|
923
|
-
x:
|
|
924
|
-
y:
|
|
981
|
+
function At(e) {
|
|
982
|
+
var t, r = e.popper, n = e.popperRect, a = e.placement, i = e.variation, l = e.offsets, o = e.position, s = e.gpuAcceleration, u = e.adaptive, c = e.roundOffsets, x = e.isFixed, k = l.x, m = k === void 0 ? 0 : k, V = l.y, $ = V === void 0 ? 0 : V, T = typeof c == "function" ? c({
|
|
983
|
+
x: m,
|
|
984
|
+
y: $
|
|
925
985
|
}) : {
|
|
926
|
-
x:
|
|
927
|
-
y:
|
|
986
|
+
x: m,
|
|
987
|
+
y: $
|
|
928
988
|
};
|
|
929
|
-
|
|
930
|
-
var
|
|
931
|
-
if (
|
|
932
|
-
var
|
|
933
|
-
if (
|
|
934
|
-
|
|
935
|
-
var
|
|
989
|
+
m = T.x, $ = T.y;
|
|
990
|
+
var E = l.hasOwnProperty("x"), A = l.hasOwnProperty("y"), W = te, w = ee, S = window;
|
|
991
|
+
if (u) {
|
|
992
|
+
var p = Fe(r), C = "clientHeight", R = "clientWidth";
|
|
993
|
+
if (p === re(r) && (p = be(r), ge(p).position !== "static" && o === "absolute" && (C = "scrollHeight", R = "scrollWidth")), p = p, a === ee || (a === te || a === le) && i === Ne) {
|
|
994
|
+
w = se;
|
|
995
|
+
var z = x && p === S && S.visualViewport ? S.visualViewport.height : (
|
|
936
996
|
// $FlowFixMe[prop-missing]
|
|
937
|
-
|
|
997
|
+
p[C]
|
|
938
998
|
);
|
|
939
|
-
|
|
999
|
+
$ -= z - n.height, $ *= s ? 1 : -1;
|
|
940
1000
|
}
|
|
941
|
-
if (a === te || (a === ee || a === se) && i ===
|
|
942
|
-
|
|
943
|
-
var
|
|
1001
|
+
if (a === te || (a === ee || a === se) && i === Ne) {
|
|
1002
|
+
W = le;
|
|
1003
|
+
var d = x && p === S && S.visualViewport ? S.visualViewport.width : (
|
|
944
1004
|
// $FlowFixMe[prop-missing]
|
|
945
|
-
|
|
1005
|
+
p[R]
|
|
946
1006
|
);
|
|
947
|
-
|
|
1007
|
+
m -= d - n.width, m *= s ? 1 : -1;
|
|
948
1008
|
}
|
|
949
1009
|
}
|
|
950
|
-
var
|
|
1010
|
+
var f = Object.assign({
|
|
951
1011
|
position: o
|
|
952
|
-
},
|
|
953
|
-
x:
|
|
954
|
-
y:
|
|
1012
|
+
}, u && wn), g = c === !0 ? xn({
|
|
1013
|
+
x: m,
|
|
1014
|
+
y: $
|
|
955
1015
|
}, re(r)) : {
|
|
956
|
-
x:
|
|
957
|
-
y:
|
|
1016
|
+
x: m,
|
|
1017
|
+
y: $
|
|
958
1018
|
};
|
|
959
|
-
if (
|
|
960
|
-
var
|
|
961
|
-
return Object.assign({},
|
|
1019
|
+
if (m = g.x, $ = g.y, s) {
|
|
1020
|
+
var P;
|
|
1021
|
+
return Object.assign({}, f, (P = {}, P[w] = A ? "0" : "", P[W] = E ? "0" : "", P.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + $ + "px)" : "translate3d(" + m + "px, " + $ + "px, 0)", P));
|
|
962
1022
|
}
|
|
963
|
-
return Object.assign({},
|
|
1023
|
+
return Object.assign({}, f, (t = {}, t[w] = A ? $ + "px" : "", t[W] = E ? m + "px" : "", t.transform = "", t));
|
|
964
1024
|
}
|
|
965
|
-
function
|
|
966
|
-
var t = e.state, r = e.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, i = r.adaptive, l = i === void 0 ? !0 : i, o = r.roundOffsets, s = o === void 0 ? !0 : o,
|
|
1025
|
+
function On(e) {
|
|
1026
|
+
var t = e.state, r = e.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, i = r.adaptive, l = i === void 0 ? !0 : i, o = r.roundOffsets, s = o === void 0 ? !0 : o, u = {
|
|
967
1027
|
placement: pe(t.placement),
|
|
968
|
-
variation:
|
|
1028
|
+
variation: Ee(t.placement),
|
|
969
1029
|
popper: t.elements.popper,
|
|
970
1030
|
popperRect: t.rects.popper,
|
|
971
1031
|
gpuAcceleration: a,
|
|
972
1032
|
isFixed: t.options.strategy === "fixed"
|
|
973
1033
|
};
|
|
974
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper,
|
|
1034
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, At(Object.assign({}, u, {
|
|
975
1035
|
offsets: t.modifiersData.popperOffsets,
|
|
976
1036
|
position: t.options.strategy,
|
|
977
1037
|
adaptive: l,
|
|
978
1038
|
roundOffsets: s
|
|
979
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow,
|
|
1039
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, At(Object.assign({}, u, {
|
|
980
1040
|
offsets: t.modifiersData.arrow,
|
|
981
1041
|
position: "absolute",
|
|
982
1042
|
adaptive: !1,
|
|
@@ -985,36 +1045,36 @@ function xa(e) {
|
|
|
985
1045
|
"data-popper-placement": t.placement
|
|
986
1046
|
});
|
|
987
1047
|
}
|
|
988
|
-
const
|
|
1048
|
+
const $n = {
|
|
989
1049
|
name: "computeStyles",
|
|
990
1050
|
enabled: !0,
|
|
991
1051
|
phase: "beforeWrite",
|
|
992
|
-
fn:
|
|
1052
|
+
fn: On,
|
|
993
1053
|
data: {}
|
|
994
1054
|
};
|
|
995
1055
|
var Ue = {
|
|
996
1056
|
passive: !0
|
|
997
1057
|
};
|
|
998
|
-
function
|
|
999
|
-
var t = e.state, r = e.instance, n = e.options, a = n.scroll, i = a === void 0 ? !0 : a, l = n.resize, o = l === void 0 ? !0 : l, s = re(t.elements.popper),
|
|
1000
|
-
return i &&
|
|
1058
|
+
function kn(e) {
|
|
1059
|
+
var t = e.state, r = e.instance, n = e.options, a = n.scroll, i = a === void 0 ? !0 : a, l = n.resize, o = l === void 0 ? !0 : l, s = re(t.elements.popper), u = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
1060
|
+
return i && u.forEach(function(c) {
|
|
1001
1061
|
c.addEventListener("scroll", r.update, Ue);
|
|
1002
1062
|
}), o && s.addEventListener("resize", r.update, Ue), function() {
|
|
1003
|
-
i &&
|
|
1063
|
+
i && u.forEach(function(c) {
|
|
1004
1064
|
c.removeEventListener("scroll", r.update, Ue);
|
|
1005
1065
|
}), o && s.removeEventListener("resize", r.update, Ue);
|
|
1006
1066
|
};
|
|
1007
1067
|
}
|
|
1008
|
-
const
|
|
1068
|
+
const Tn = {
|
|
1009
1069
|
name: "eventListeners",
|
|
1010
1070
|
enabled: !0,
|
|
1011
1071
|
phase: "write",
|
|
1012
1072
|
fn: function() {
|
|
1013
1073
|
},
|
|
1014
|
-
effect:
|
|
1074
|
+
effect: kn,
|
|
1015
1075
|
data: {}
|
|
1016
1076
|
};
|
|
1017
|
-
var
|
|
1077
|
+
var Sn = {
|
|
1018
1078
|
left: "right",
|
|
1019
1079
|
right: "left",
|
|
1020
1080
|
bottom: "top",
|
|
@@ -1022,16 +1082,16 @@ var Ta = {
|
|
|
1022
1082
|
};
|
|
1023
1083
|
function Xe(e) {
|
|
1024
1084
|
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
1025
|
-
return
|
|
1085
|
+
return Sn[t];
|
|
1026
1086
|
});
|
|
1027
1087
|
}
|
|
1028
|
-
var
|
|
1088
|
+
var Cn = {
|
|
1029
1089
|
start: "end",
|
|
1030
1090
|
end: "start"
|
|
1031
1091
|
};
|
|
1032
|
-
function
|
|
1092
|
+
function Rt(e) {
|
|
1033
1093
|
return e.replace(/start|end/g, function(t) {
|
|
1034
|
-
return
|
|
1094
|
+
return Cn[t];
|
|
1035
1095
|
});
|
|
1036
1096
|
}
|
|
1037
1097
|
function wt(e) {
|
|
@@ -1044,12 +1104,12 @@ function wt(e) {
|
|
|
1044
1104
|
function xt(e) {
|
|
1045
1105
|
return Pe(be(e)).left + wt(e).scrollLeft;
|
|
1046
1106
|
}
|
|
1047
|
-
function
|
|
1107
|
+
function Pn(e, t) {
|
|
1048
1108
|
var r = re(e), n = be(e), a = r.visualViewport, i = n.clientWidth, l = n.clientHeight, o = 0, s = 0;
|
|
1049
1109
|
if (a) {
|
|
1050
1110
|
i = a.width, l = a.height;
|
|
1051
|
-
var
|
|
1052
|
-
(
|
|
1111
|
+
var u = er();
|
|
1112
|
+
(u || !u && t === "fixed") && (o = a.offsetLeft, s = a.offsetTop);
|
|
1053
1113
|
}
|
|
1054
1114
|
return {
|
|
1055
1115
|
width: i,
|
|
@@ -1058,7 +1118,7 @@ function Ca(e, t) {
|
|
|
1058
1118
|
y: s
|
|
1059
1119
|
};
|
|
1060
1120
|
}
|
|
1061
|
-
function
|
|
1121
|
+
function En(e) {
|
|
1062
1122
|
var t, r = be(e), n = wt(e), a = (t = e.ownerDocument) == null ? void 0 : t.body, i = Oe(r.scrollWidth, r.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), l = Oe(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), o = -n.scrollLeft + xt(e), s = -n.scrollTop;
|
|
1063
1123
|
return ge(a || r).direction === "rtl" && (o += Oe(r.clientWidth, a ? a.clientWidth : 0) - i), {
|
|
1064
1124
|
width: i,
|
|
@@ -1091,28 +1151,28 @@ function dt(e) {
|
|
|
1091
1151
|
bottom: e.y + e.height
|
|
1092
1152
|
});
|
|
1093
1153
|
}
|
|
1094
|
-
function
|
|
1154
|
+
function Vn(e, t) {
|
|
1095
1155
|
var r = Pe(e, !1, t === "fixed");
|
|
1096
1156
|
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
1097
1157
|
}
|
|
1098
1158
|
function zt(e, t, r) {
|
|
1099
|
-
return t === Zt ? dt(
|
|
1159
|
+
return t === Zt ? dt(Pn(e, r)) : ke(t) ? Vn(t, r) : dt(En(be(e)));
|
|
1100
1160
|
}
|
|
1101
|
-
function
|
|
1161
|
+
function Bn(e) {
|
|
1102
1162
|
var t = We(tt(e)), r = ["absolute", "fixed"].indexOf(ge(e).position) >= 0, n = r && oe(e) ? Fe(e) : e;
|
|
1103
1163
|
return ke(n) ? t.filter(function(a) {
|
|
1104
1164
|
return ke(a) && tr(a, n) && ve(a) !== "body";
|
|
1105
1165
|
}) : [];
|
|
1106
1166
|
}
|
|
1107
|
-
function
|
|
1108
|
-
var a = t === "clippingParents" ?
|
|
1109
|
-
var c = zt(e,
|
|
1167
|
+
function Dn(e, t, r, n) {
|
|
1168
|
+
var a = t === "clippingParents" ? Bn(e) : [].concat(t), i = [].concat(a, [r]), l = i[0], o = i.reduce(function(s, u) {
|
|
1169
|
+
var c = zt(e, u, n);
|
|
1110
1170
|
return s.top = Oe(c.top, s.top), s.right = Ge(c.right, s.right), s.bottom = Ge(c.bottom, s.bottom), s.left = Oe(c.left, s.left), s;
|
|
1111
1171
|
}, zt(e, l, n));
|
|
1112
1172
|
return o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
|
|
1113
1173
|
}
|
|
1114
1174
|
function or(e) {
|
|
1115
|
-
var t = e.reference, r = e.element, n = e.placement, a = n ? pe(n) : null, i = n ?
|
|
1175
|
+
var t = e.reference, r = e.element, n = e.placement, a = n ? pe(n) : null, i = n ? Ee(n) : null, l = t.x + t.width / 2 - r.width / 2, o = t.y + t.height / 2 - r.height / 2, s;
|
|
1116
1176
|
switch (a) {
|
|
1117
1177
|
case ee:
|
|
1118
1178
|
s = {
|
|
@@ -1144,120 +1204,120 @@ function or(e) {
|
|
|
1144
1204
|
y: t.y
|
|
1145
1205
|
};
|
|
1146
1206
|
}
|
|
1147
|
-
var
|
|
1148
|
-
if (
|
|
1149
|
-
var c =
|
|
1207
|
+
var u = a ? yt(a) : null;
|
|
1208
|
+
if (u != null) {
|
|
1209
|
+
var c = u === "y" ? "height" : "width";
|
|
1150
1210
|
switch (i) {
|
|
1151
1211
|
case Se:
|
|
1152
|
-
s[
|
|
1212
|
+
s[u] = s[u] - (t[c] / 2 - r[c] / 2);
|
|
1153
1213
|
break;
|
|
1154
|
-
case
|
|
1155
|
-
s[
|
|
1214
|
+
case Ne:
|
|
1215
|
+
s[u] = s[u] + (t[c] / 2 - r[c] / 2);
|
|
1156
1216
|
break;
|
|
1157
1217
|
}
|
|
1158
1218
|
}
|
|
1159
1219
|
return s;
|
|
1160
1220
|
}
|
|
1161
|
-
function
|
|
1221
|
+
function _e(e, t) {
|
|
1162
1222
|
t === void 0 && (t = {});
|
|
1163
|
-
var r = t, n = r.placement, a = n === void 0 ? e.placement : n, i = r.strategy, l = i === void 0 ? e.strategy : i, o = r.boundary, s = o === void 0 ? Gr : o,
|
|
1164
|
-
reference:
|
|
1165
|
-
element:
|
|
1223
|
+
var r = t, n = r.placement, a = n === void 0 ? e.placement : n, i = r.strategy, l = i === void 0 ? e.strategy : i, o = r.boundary, s = o === void 0 ? Gr : o, u = r.rootBoundary, c = u === void 0 ? Zt : u, x = r.elementContext, k = x === void 0 ? Ae : x, m = r.altBoundary, V = m === void 0 ? !1 : m, $ = r.padding, T = $ === void 0 ? 0 : $, E = nr(typeof T != "number" ? T : ar(T, Ie)), A = k === Ae ? Zr : Ae, W = e.rects.popper, w = e.elements[V ? A : k], S = Dn(ke(w) ? w : w.contextElement || be(e.elements.popper), s, c, l), p = Pe(e.elements.reference), C = or({
|
|
1224
|
+
reference: p,
|
|
1225
|
+
element: W,
|
|
1166
1226
|
placement: a
|
|
1167
|
-
}),
|
|
1168
|
-
top:
|
|
1169
|
-
bottom:
|
|
1170
|
-
left:
|
|
1171
|
-
right:
|
|
1172
|
-
},
|
|
1173
|
-
if (k ===
|
|
1174
|
-
var
|
|
1175
|
-
Object.keys(
|
|
1176
|
-
var
|
|
1177
|
-
|
|
1227
|
+
}), R = dt(Object.assign({}, W, C)), z = k === Ae ? R : p, d = {
|
|
1228
|
+
top: S.top - z.top + E.top,
|
|
1229
|
+
bottom: z.bottom - S.bottom + E.bottom,
|
|
1230
|
+
left: S.left - z.left + E.left,
|
|
1231
|
+
right: z.right - S.right + E.right
|
|
1232
|
+
}, f = e.modifiersData.offset;
|
|
1233
|
+
if (k === Ae && f) {
|
|
1234
|
+
var g = f[a];
|
|
1235
|
+
Object.keys(d).forEach(function(P) {
|
|
1236
|
+
var F = [le, se].indexOf(P) >= 0 ? 1 : -1, H = [ee, se].indexOf(P) >= 0 ? "y" : "x";
|
|
1237
|
+
d[P] += g[H] * F;
|
|
1178
1238
|
});
|
|
1179
1239
|
}
|
|
1180
|
-
return
|
|
1240
|
+
return d;
|
|
1181
1241
|
}
|
|
1182
|
-
function
|
|
1242
|
+
function An(e, t) {
|
|
1183
1243
|
t === void 0 && (t = {});
|
|
1184
|
-
var r = t, n = r.placement, a = r.boundary, i = r.rootBoundary, l = r.padding, o = r.flipVariations, s = r.allowedAutoPlacements,
|
|
1185
|
-
return
|
|
1186
|
-
}) :
|
|
1187
|
-
return
|
|
1244
|
+
var r = t, n = r.placement, a = r.boundary, i = r.rootBoundary, l = r.padding, o = r.flipVariations, s = r.allowedAutoPlacements, u = s === void 0 ? Jt : s, c = Ee(n), x = c ? o ? Bt : Bt.filter(function(V) {
|
|
1245
|
+
return Ee(V) === c;
|
|
1246
|
+
}) : Ie, k = x.filter(function(V) {
|
|
1247
|
+
return u.indexOf(V) >= 0;
|
|
1188
1248
|
});
|
|
1189
|
-
k.length === 0 && (k =
|
|
1190
|
-
var
|
|
1191
|
-
return
|
|
1192
|
-
placement:
|
|
1249
|
+
k.length === 0 && (k = x);
|
|
1250
|
+
var m = k.reduce(function(V, $) {
|
|
1251
|
+
return V[$] = _e(e, {
|
|
1252
|
+
placement: $,
|
|
1193
1253
|
boundary: a,
|
|
1194
1254
|
rootBoundary: i,
|
|
1195
1255
|
padding: l
|
|
1196
|
-
})[pe(
|
|
1256
|
+
})[pe($)], V;
|
|
1197
1257
|
}, {});
|
|
1198
|
-
return Object.keys(
|
|
1199
|
-
return
|
|
1258
|
+
return Object.keys(m).sort(function(V, $) {
|
|
1259
|
+
return m[V] - m[$];
|
|
1200
1260
|
});
|
|
1201
1261
|
}
|
|
1202
|
-
function
|
|
1262
|
+
function Rn(e) {
|
|
1203
1263
|
if (pe(e) === gt)
|
|
1204
1264
|
return [];
|
|
1205
1265
|
var t = Xe(e);
|
|
1206
|
-
return [
|
|
1266
|
+
return [Rt(e), t, Rt(t)];
|
|
1207
1267
|
}
|
|
1208
|
-
function
|
|
1268
|
+
function zn(e) {
|
|
1209
1269
|
var t = e.state, r = e.options, n = e.name;
|
|
1210
1270
|
if (!t.modifiersData[n]._skip) {
|
|
1211
|
-
for (var a = r.mainAxis, i = a === void 0 ? !0 : a, l = r.altAxis, o = l === void 0 ? !0 : l, s = r.fallbackPlacements,
|
|
1212
|
-
return he.concat(pe(fe) === gt ?
|
|
1271
|
+
for (var a = r.mainAxis, i = a === void 0 ? !0 : a, l = r.altAxis, o = l === void 0 ? !0 : l, s = r.fallbackPlacements, u = r.padding, c = r.boundary, x = r.rootBoundary, k = r.altBoundary, m = r.flipVariations, V = m === void 0 ? !0 : m, $ = r.allowedAutoPlacements, T = t.options.placement, E = pe(T), A = E === T, W = s || (A || !V ? [Xe(T)] : Rn(T)), w = [T].concat(W).reduce(function(he, fe) {
|
|
1272
|
+
return he.concat(pe(fe) === gt ? An(t, {
|
|
1213
1273
|
placement: fe,
|
|
1214
1274
|
boundary: c,
|
|
1215
|
-
rootBoundary:
|
|
1216
|
-
padding:
|
|
1217
|
-
flipVariations:
|
|
1218
|
-
allowedAutoPlacements:
|
|
1275
|
+
rootBoundary: x,
|
|
1276
|
+
padding: u,
|
|
1277
|
+
flipVariations: V,
|
|
1278
|
+
allowedAutoPlacements: $
|
|
1219
1279
|
}) : fe);
|
|
1220
|
-
}, []),
|
|
1221
|
-
var
|
|
1222
|
-
placement:
|
|
1280
|
+
}, []), S = t.rects.reference, p = t.rects.popper, C = /* @__PURE__ */ new Map(), R = !0, z = w[0], d = 0; d < w.length; d++) {
|
|
1281
|
+
var f = w[d], g = pe(f), P = Ee(f) === Se, F = [ee, se].indexOf(g) >= 0, H = F ? "width" : "height", N = _e(t, {
|
|
1282
|
+
placement: f,
|
|
1223
1283
|
boundary: c,
|
|
1224
|
-
rootBoundary:
|
|
1284
|
+
rootBoundary: x,
|
|
1225
1285
|
altBoundary: k,
|
|
1226
|
-
padding:
|
|
1227
|
-
}),
|
|
1228
|
-
|
|
1229
|
-
var de = Xe(
|
|
1230
|
-
if (i && ce.push(
|
|
1286
|
+
padding: u
|
|
1287
|
+
}), _ = F ? P ? le : te : P ? se : ee;
|
|
1288
|
+
S[H] > p[H] && (_ = Xe(_));
|
|
1289
|
+
var de = Xe(_), ce = [];
|
|
1290
|
+
if (i && ce.push(N[g] <= 0), o && ce.push(N[_] <= 0, N[de] <= 0), ce.every(function(he) {
|
|
1231
1291
|
return he;
|
|
1232
1292
|
})) {
|
|
1233
|
-
|
|
1293
|
+
z = f, R = !1;
|
|
1234
1294
|
break;
|
|
1235
1295
|
}
|
|
1236
|
-
|
|
1296
|
+
C.set(f, ce);
|
|
1237
1297
|
}
|
|
1238
|
-
if (
|
|
1239
|
-
for (var
|
|
1240
|
-
var ye =
|
|
1241
|
-
var me =
|
|
1298
|
+
if (R)
|
|
1299
|
+
for (var b = V ? 3 : 1, U = function(fe) {
|
|
1300
|
+
var ye = w.find(function(Te) {
|
|
1301
|
+
var me = C.get(Te);
|
|
1242
1302
|
if (me)
|
|
1243
1303
|
return me.slice(0, fe).every(function(Be) {
|
|
1244
1304
|
return Be;
|
|
1245
1305
|
});
|
|
1246
1306
|
});
|
|
1247
1307
|
if (ye)
|
|
1248
|
-
return
|
|
1249
|
-
}, K =
|
|
1250
|
-
var ue =
|
|
1308
|
+
return z = ye, "break";
|
|
1309
|
+
}, K = b; K > 0; K--) {
|
|
1310
|
+
var ue = U(K);
|
|
1251
1311
|
if (ue === "break") break;
|
|
1252
1312
|
}
|
|
1253
|
-
t.placement !==
|
|
1313
|
+
t.placement !== z && (t.modifiersData[n]._skip = !0, t.placement = z, t.reset = !0);
|
|
1254
1314
|
}
|
|
1255
1315
|
}
|
|
1256
|
-
const
|
|
1316
|
+
const Wn = {
|
|
1257
1317
|
name: "flip",
|
|
1258
1318
|
enabled: !0,
|
|
1259
1319
|
phase: "main",
|
|
1260
|
-
fn:
|
|
1320
|
+
fn: zn,
|
|
1261
1321
|
requiresIfExists: ["offset"],
|
|
1262
1322
|
data: {
|
|
1263
1323
|
_skip: !1
|
|
@@ -1274,35 +1334,35 @@ function Wt(e, t, r) {
|
|
|
1274
1334
|
left: e.left - t.width - r.x
|
|
1275
1335
|
};
|
|
1276
1336
|
}
|
|
1277
|
-
function
|
|
1337
|
+
function Mt(e) {
|
|
1278
1338
|
return [ee, le, se, te].some(function(t) {
|
|
1279
1339
|
return e[t] >= 0;
|
|
1280
1340
|
});
|
|
1281
1341
|
}
|
|
1282
|
-
function
|
|
1283
|
-
var t = e.state, r = e.name, n = t.rects.reference, a = t.rects.popper, i = t.modifiersData.preventOverflow, l =
|
|
1342
|
+
function Mn(e) {
|
|
1343
|
+
var t = e.state, r = e.name, n = t.rects.reference, a = t.rects.popper, i = t.modifiersData.preventOverflow, l = _e(t, {
|
|
1284
1344
|
elementContext: "reference"
|
|
1285
|
-
}), o =
|
|
1345
|
+
}), o = _e(t, {
|
|
1286
1346
|
altBoundary: !0
|
|
1287
|
-
}), s = Wt(l, n),
|
|
1347
|
+
}), s = Wt(l, n), u = Wt(o, a, i), c = Mt(s), x = Mt(u);
|
|
1288
1348
|
t.modifiersData[r] = {
|
|
1289
1349
|
referenceClippingOffsets: s,
|
|
1290
|
-
popperEscapeOffsets:
|
|
1350
|
+
popperEscapeOffsets: u,
|
|
1291
1351
|
isReferenceHidden: c,
|
|
1292
|
-
hasPopperEscaped:
|
|
1352
|
+
hasPopperEscaped: x
|
|
1293
1353
|
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
1294
1354
|
"data-popper-reference-hidden": c,
|
|
1295
|
-
"data-popper-escaped":
|
|
1355
|
+
"data-popper-escaped": x
|
|
1296
1356
|
});
|
|
1297
1357
|
}
|
|
1298
|
-
const
|
|
1358
|
+
const Ln = {
|
|
1299
1359
|
name: "hide",
|
|
1300
1360
|
enabled: !0,
|
|
1301
1361
|
phase: "main",
|
|
1302
1362
|
requiresIfExists: ["preventOverflow"],
|
|
1303
|
-
fn:
|
|
1363
|
+
fn: Mn
|
|
1304
1364
|
};
|
|
1305
|
-
function
|
|
1365
|
+
function jn(e, t, r) {
|
|
1306
1366
|
var n = pe(e), a = [te, ee].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
|
|
1307
1367
|
placement: e
|
|
1308
1368
|
})) : r, l = i[0], o = i[1];
|
|
@@ -1314,20 +1374,20 @@ function ja(e, t, r) {
|
|
|
1314
1374
|
y: o
|
|
1315
1375
|
};
|
|
1316
1376
|
}
|
|
1317
|
-
function
|
|
1318
|
-
var t = e.state, r = e.options, n = e.name, a = r.offset, i = a === void 0 ? [0, 0] : a, l = Jt.reduce(function(c,
|
|
1319
|
-
return c[
|
|
1320
|
-
}, {}), o = l[t.placement], s = o.x,
|
|
1321
|
-
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y +=
|
|
1377
|
+
function Nn(e) {
|
|
1378
|
+
var t = e.state, r = e.options, n = e.name, a = r.offset, i = a === void 0 ? [0, 0] : a, l = Jt.reduce(function(c, x) {
|
|
1379
|
+
return c[x] = jn(x, t.rects, i), c;
|
|
1380
|
+
}, {}), o = l[t.placement], s = o.x, u = o.y;
|
|
1381
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += u), t.modifiersData[n] = l;
|
|
1322
1382
|
}
|
|
1323
|
-
const
|
|
1383
|
+
const _n = {
|
|
1324
1384
|
name: "offset",
|
|
1325
1385
|
enabled: !0,
|
|
1326
1386
|
phase: "main",
|
|
1327
1387
|
requires: ["popperOffsets"],
|
|
1328
|
-
fn:
|
|
1388
|
+
fn: Nn
|
|
1329
1389
|
};
|
|
1330
|
-
function
|
|
1390
|
+
function In(e) {
|
|
1331
1391
|
var t = e.state, r = e.name;
|
|
1332
1392
|
t.modifiersData[r] = or({
|
|
1333
1393
|
reference: t.rects.reference,
|
|
@@ -1335,72 +1395,72 @@ function Ia(e) {
|
|
|
1335
1395
|
placement: t.placement
|
|
1336
1396
|
});
|
|
1337
1397
|
}
|
|
1338
|
-
const
|
|
1398
|
+
const Fn = {
|
|
1339
1399
|
name: "popperOffsets",
|
|
1340
1400
|
enabled: !0,
|
|
1341
1401
|
phase: "read",
|
|
1342
|
-
fn:
|
|
1402
|
+
fn: In,
|
|
1343
1403
|
data: {}
|
|
1344
1404
|
};
|
|
1345
|
-
function
|
|
1405
|
+
function Hn(e) {
|
|
1346
1406
|
return e === "x" ? "y" : "x";
|
|
1347
1407
|
}
|
|
1348
|
-
function
|
|
1349
|
-
var t = e.state, r = e.options, n = e.name, a = r.mainAxis, i = a === void 0 ? !0 : a, l = r.altAxis, o = l === void 0 ? !1 : l, s = r.boundary,
|
|
1408
|
+
function qn(e) {
|
|
1409
|
+
var t = e.state, r = e.options, n = e.name, a = r.mainAxis, i = a === void 0 ? !0 : a, l = r.altAxis, o = l === void 0 ? !1 : l, s = r.boundary, u = r.rootBoundary, c = r.altBoundary, x = r.padding, k = r.tether, m = k === void 0 ? !0 : k, V = r.tetherOffset, $ = V === void 0 ? 0 : V, T = _e(t, {
|
|
1350
1410
|
boundary: s,
|
|
1351
|
-
rootBoundary:
|
|
1352
|
-
padding:
|
|
1411
|
+
rootBoundary: u,
|
|
1412
|
+
padding: x,
|
|
1353
1413
|
altBoundary: c
|
|
1354
|
-
}),
|
|
1414
|
+
}), E = pe(t.placement), A = Ee(t.placement), W = !A, w = yt(E), S = Hn(w), p = t.modifiersData.popperOffsets, C = t.rects.reference, R = t.rects.popper, z = typeof $ == "function" ? $(Object.assign({}, t.rects, {
|
|
1355
1415
|
placement: t.placement
|
|
1356
|
-
})) :
|
|
1357
|
-
mainAxis:
|
|
1358
|
-
altAxis:
|
|
1416
|
+
})) : $, d = typeof z == "number" ? {
|
|
1417
|
+
mainAxis: z,
|
|
1418
|
+
altAxis: z
|
|
1359
1419
|
} : Object.assign({
|
|
1360
1420
|
mainAxis: 0,
|
|
1361
1421
|
altAxis: 0
|
|
1362
|
-
},
|
|
1422
|
+
}, z), f = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, g = {
|
|
1363
1423
|
x: 0,
|
|
1364
1424
|
y: 0
|
|
1365
1425
|
};
|
|
1366
|
-
if (
|
|
1426
|
+
if (p) {
|
|
1367
1427
|
if (i) {
|
|
1368
|
-
var
|
|
1428
|
+
var P, F = w === "y" ? ee : te, H = w === "y" ? se : le, N = w === "y" ? "height" : "width", _ = p[w], de = _ + T[F], ce = _ - T[H], b = m ? -R[N] / 2 : 0, U = A === Se ? C[N] : R[N], K = A === Se ? -R[N] : -C[N], ue = t.elements.arrow, he = m && ue ? bt(ue) : {
|
|
1369
1429
|
width: 0,
|
|
1370
1430
|
height: 0
|
|
1371
|
-
}, fe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : rr(), ye = fe[
|
|
1372
|
-
|
|
1431
|
+
}, fe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : rr(), ye = fe[F], Te = fe[H], me = ze(0, C[N], he[N]), Be = W ? C[N] / 2 - b - me - ye - d.mainAxis : U - me - ye - d.mainAxis, He = W ? -C[N] / 2 + b + me + Te + d.mainAxis : K + me + Te + d.mainAxis, De = t.elements.arrow && Fe(t.elements.arrow), rt = De ? w === "y" ? De.clientTop || 0 : De.clientLeft || 0 : 0, v = (P = f?.[w]) != null ? P : 0, M = _ + Be - v - rt, B = _ + He - v, ne = ze(m ? Ge(de, M) : de, _, m ? Oe(ce, B) : ce);
|
|
1432
|
+
p[w] = ne, g[w] = ne - _;
|
|
1373
1433
|
}
|
|
1374
1434
|
if (o) {
|
|
1375
|
-
var Q,
|
|
1376
|
-
|
|
1435
|
+
var Q, nt = w === "x" ? ee : te, $t = w === "x" ? se : le, we = p[S], qe = S === "y" ? "height" : "width", kt = we + T[nt], Tt = we - T[$t], at = [ee, te].indexOf(E) !== -1, St = (Q = f?.[S]) != null ? Q : 0, Ct = at ? kt : we - C[qe] - R[qe] - St + d.altAxis, Pt = at ? we + C[qe] + R[qe] - St - d.altAxis : Tt, Et = m && at ? mn(Ct, we, Pt) : ze(m ? Ct : kt, we, m ? Pt : Tt);
|
|
1436
|
+
p[S] = Et, g[S] = Et - we;
|
|
1377
1437
|
}
|
|
1378
|
-
t.modifiersData[n] =
|
|
1438
|
+
t.modifiersData[n] = g;
|
|
1379
1439
|
}
|
|
1380
1440
|
}
|
|
1381
|
-
const
|
|
1441
|
+
const Un = {
|
|
1382
1442
|
name: "preventOverflow",
|
|
1383
1443
|
enabled: !0,
|
|
1384
1444
|
phase: "main",
|
|
1385
|
-
fn:
|
|
1445
|
+
fn: qn,
|
|
1386
1446
|
requiresIfExists: ["offset"]
|
|
1387
1447
|
};
|
|
1388
|
-
function
|
|
1448
|
+
function Yn(e) {
|
|
1389
1449
|
return {
|
|
1390
1450
|
scrollLeft: e.scrollLeft,
|
|
1391
1451
|
scrollTop: e.scrollTop
|
|
1392
1452
|
};
|
|
1393
1453
|
}
|
|
1394
|
-
function
|
|
1395
|
-
return e === re(e) || !oe(e) ? wt(e) :
|
|
1454
|
+
function Xn(e) {
|
|
1455
|
+
return e === re(e) || !oe(e) ? wt(e) : Yn(e);
|
|
1396
1456
|
}
|
|
1397
|
-
function
|
|
1457
|
+
function Kn(e) {
|
|
1398
1458
|
var t = e.getBoundingClientRect(), r = Ce(t.width) / e.offsetWidth || 1, n = Ce(t.height) / e.offsetHeight || 1;
|
|
1399
1459
|
return r !== 1 || n !== 1;
|
|
1400
1460
|
}
|
|
1401
|
-
function
|
|
1461
|
+
function Qn(e, t, r) {
|
|
1402
1462
|
r === void 0 && (r = !1);
|
|
1403
|
-
var n = oe(t), a = oe(t) &&
|
|
1463
|
+
var n = oe(t), a = oe(t) && Kn(t), i = be(t), l = Pe(e, a, r), o = {
|
|
1404
1464
|
scrollLeft: 0,
|
|
1405
1465
|
scrollTop: 0
|
|
1406
1466
|
}, s = {
|
|
@@ -1408,14 +1468,14 @@ function Ka(e, t, r) {
|
|
|
1408
1468
|
y: 0
|
|
1409
1469
|
};
|
|
1410
1470
|
return (n || !n && !r) && ((ve(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
1411
|
-
Ot(i)) && (o =
|
|
1471
|
+
Ot(i)) && (o = Xn(t)), oe(t) ? (s = Pe(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = xt(i))), {
|
|
1412
1472
|
x: l.left + o.scrollLeft - s.x,
|
|
1413
1473
|
y: l.top + o.scrollTop - s.y,
|
|
1414
1474
|
width: l.width,
|
|
1415
1475
|
height: l.height
|
|
1416
1476
|
};
|
|
1417
1477
|
}
|
|
1418
|
-
function
|
|
1478
|
+
function Gn(e) {
|
|
1419
1479
|
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
|
1420
1480
|
e.forEach(function(i) {
|
|
1421
1481
|
t.set(i.name, i);
|
|
@@ -1434,15 +1494,15 @@ function Qa(e) {
|
|
|
1434
1494
|
r.has(i.name) || a(i);
|
|
1435
1495
|
}), n;
|
|
1436
1496
|
}
|
|
1437
|
-
function
|
|
1438
|
-
var t =
|
|
1439
|
-
return
|
|
1497
|
+
function Zn(e) {
|
|
1498
|
+
var t = Gn(e);
|
|
1499
|
+
return cn.reduce(function(r, n) {
|
|
1440
1500
|
return r.concat(t.filter(function(a) {
|
|
1441
1501
|
return a.phase === n;
|
|
1442
1502
|
}));
|
|
1443
1503
|
}, []);
|
|
1444
1504
|
}
|
|
1445
|
-
function
|
|
1505
|
+
function Jn(e) {
|
|
1446
1506
|
var t;
|
|
1447
1507
|
return function() {
|
|
1448
1508
|
return t || (t = new Promise(function(r) {
|
|
@@ -1452,7 +1512,7 @@ function Za(e) {
|
|
|
1452
1512
|
})), t;
|
|
1453
1513
|
};
|
|
1454
1514
|
}
|
|
1455
|
-
function
|
|
1515
|
+
function ea(e) {
|
|
1456
1516
|
var t = e.reduce(function(r, n) {
|
|
1457
1517
|
var a = r[n.name];
|
|
1458
1518
|
return r[n.name] = a ? Object.assign({}, a, n, {
|
|
@@ -1464,27 +1524,27 @@ function Ja(e) {
|
|
|
1464
1524
|
return t[r];
|
|
1465
1525
|
});
|
|
1466
1526
|
}
|
|
1467
|
-
var
|
|
1527
|
+
var Lt = {
|
|
1468
1528
|
placement: "bottom",
|
|
1469
1529
|
modifiers: [],
|
|
1470
1530
|
strategy: "absolute"
|
|
1471
1531
|
};
|
|
1472
|
-
function
|
|
1532
|
+
function jt() {
|
|
1473
1533
|
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
1474
1534
|
t[r] = arguments[r];
|
|
1475
1535
|
return !t.some(function(n) {
|
|
1476
1536
|
return !(n && typeof n.getBoundingClientRect == "function");
|
|
1477
1537
|
});
|
|
1478
1538
|
}
|
|
1479
|
-
function
|
|
1539
|
+
function ta(e) {
|
|
1480
1540
|
e === void 0 && (e = {});
|
|
1481
|
-
var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, a = t.defaultOptions, i = a === void 0 ?
|
|
1482
|
-
return function(o, s,
|
|
1483
|
-
|
|
1541
|
+
var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, a = t.defaultOptions, i = a === void 0 ? Lt : a;
|
|
1542
|
+
return function(o, s, u) {
|
|
1543
|
+
u === void 0 && (u = i);
|
|
1484
1544
|
var c = {
|
|
1485
1545
|
placement: "bottom",
|
|
1486
1546
|
orderedModifiers: [],
|
|
1487
|
-
options: Object.assign({},
|
|
1547
|
+
options: Object.assign({}, Lt, i),
|
|
1488
1548
|
modifiersData: {},
|
|
1489
1549
|
elements: {
|
|
1490
1550
|
reference: o,
|
|
@@ -1492,18 +1552,18 @@ function en(e) {
|
|
|
1492
1552
|
},
|
|
1493
1553
|
attributes: {},
|
|
1494
1554
|
styles: {}
|
|
1495
|
-
},
|
|
1555
|
+
}, x = [], k = !1, m = {
|
|
1496
1556
|
state: c,
|
|
1497
|
-
setOptions: function(
|
|
1498
|
-
var
|
|
1499
|
-
|
|
1557
|
+
setOptions: function(E) {
|
|
1558
|
+
var A = typeof E == "function" ? E(c.options) : E;
|
|
1559
|
+
$(), c.options = Object.assign({}, i, c.options, A), c.scrollParents = {
|
|
1500
1560
|
reference: ke(o) ? We(o) : o.contextElement ? We(o.contextElement) : [],
|
|
1501
1561
|
popper: We(s)
|
|
1502
1562
|
};
|
|
1503
|
-
var
|
|
1504
|
-
return c.orderedModifiers =
|
|
1505
|
-
return
|
|
1506
|
-
}),
|
|
1563
|
+
var W = Zn(ea([].concat(n, c.options.modifiers)));
|
|
1564
|
+
return c.orderedModifiers = W.filter(function(w) {
|
|
1565
|
+
return w.enabled;
|
|
1566
|
+
}), V(), m.update();
|
|
1507
1567
|
},
|
|
1508
1568
|
// Sync update – it will always be executed, even if not necessary. This
|
|
1509
1569
|
// is useful for low frequency updates where sync behavior simplifies the
|
|
@@ -1512,25 +1572,25 @@ function en(e) {
|
|
|
1512
1572
|
// prefer the async Popper#update method
|
|
1513
1573
|
forceUpdate: function() {
|
|
1514
1574
|
if (!k) {
|
|
1515
|
-
var
|
|
1516
|
-
if (
|
|
1575
|
+
var E = c.elements, A = E.reference, W = E.popper;
|
|
1576
|
+
if (jt(A, W)) {
|
|
1517
1577
|
c.rects = {
|
|
1518
|
-
reference:
|
|
1519
|
-
popper: bt(
|
|
1520
|
-
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(
|
|
1521
|
-
return c.modifiersData[
|
|
1578
|
+
reference: Qn(A, Fe(W), c.options.strategy === "fixed"),
|
|
1579
|
+
popper: bt(W)
|
|
1580
|
+
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(d) {
|
|
1581
|
+
return c.modifiersData[d.name] = Object.assign({}, d.data);
|
|
1522
1582
|
});
|
|
1523
|
-
for (var
|
|
1583
|
+
for (var w = 0; w < c.orderedModifiers.length; w++) {
|
|
1524
1584
|
if (c.reset === !0) {
|
|
1525
|
-
c.reset = !1,
|
|
1585
|
+
c.reset = !1, w = -1;
|
|
1526
1586
|
continue;
|
|
1527
1587
|
}
|
|
1528
|
-
var
|
|
1529
|
-
typeof
|
|
1588
|
+
var S = c.orderedModifiers[w], p = S.fn, C = S.options, R = C === void 0 ? {} : C, z = S.name;
|
|
1589
|
+
typeof p == "function" && (c = p({
|
|
1530
1590
|
state: c,
|
|
1531
|
-
options:
|
|
1532
|
-
name:
|
|
1533
|
-
instance:
|
|
1591
|
+
options: R,
|
|
1592
|
+
name: z,
|
|
1593
|
+
instance: m
|
|
1534
1594
|
}) || c);
|
|
1535
1595
|
}
|
|
1536
1596
|
}
|
|
@@ -1538,173 +1598,173 @@ function en(e) {
|
|
|
1538
1598
|
},
|
|
1539
1599
|
// Async and optimistically optimized update – it will not be executed if
|
|
1540
1600
|
// not necessary (debounced to run at most once-per-tick)
|
|
1541
|
-
update:
|
|
1542
|
-
return new Promise(function(
|
|
1543
|
-
|
|
1601
|
+
update: Jn(function() {
|
|
1602
|
+
return new Promise(function(T) {
|
|
1603
|
+
m.forceUpdate(), T(c);
|
|
1544
1604
|
});
|
|
1545
1605
|
}),
|
|
1546
1606
|
destroy: function() {
|
|
1547
|
-
|
|
1607
|
+
$(), k = !0;
|
|
1548
1608
|
}
|
|
1549
1609
|
};
|
|
1550
|
-
if (!
|
|
1551
|
-
return
|
|
1552
|
-
|
|
1553
|
-
!k &&
|
|
1610
|
+
if (!jt(o, s))
|
|
1611
|
+
return m;
|
|
1612
|
+
m.setOptions(u).then(function(T) {
|
|
1613
|
+
!k && u.onFirstUpdate && u.onFirstUpdate(T);
|
|
1554
1614
|
});
|
|
1555
|
-
function
|
|
1556
|
-
c.orderedModifiers.forEach(function(
|
|
1557
|
-
var
|
|
1558
|
-
if (typeof
|
|
1559
|
-
var
|
|
1615
|
+
function V() {
|
|
1616
|
+
c.orderedModifiers.forEach(function(T) {
|
|
1617
|
+
var E = T.name, A = T.options, W = A === void 0 ? {} : A, w = T.effect;
|
|
1618
|
+
if (typeof w == "function") {
|
|
1619
|
+
var S = w({
|
|
1560
1620
|
state: c,
|
|
1561
|
-
name:
|
|
1562
|
-
instance:
|
|
1563
|
-
options:
|
|
1564
|
-
}),
|
|
1621
|
+
name: E,
|
|
1622
|
+
instance: m,
|
|
1623
|
+
options: W
|
|
1624
|
+
}), p = function() {
|
|
1565
1625
|
};
|
|
1566
|
-
|
|
1626
|
+
x.push(S || p);
|
|
1567
1627
|
}
|
|
1568
1628
|
});
|
|
1569
1629
|
}
|
|
1570
|
-
function
|
|
1571
|
-
|
|
1572
|
-
return
|
|
1573
|
-
}),
|
|
1630
|
+
function $() {
|
|
1631
|
+
x.forEach(function(T) {
|
|
1632
|
+
return T();
|
|
1633
|
+
}), x = [];
|
|
1574
1634
|
}
|
|
1575
|
-
return
|
|
1635
|
+
return m;
|
|
1576
1636
|
};
|
|
1577
1637
|
}
|
|
1578
|
-
var
|
|
1579
|
-
defaultModifiers:
|
|
1580
|
-
}),
|
|
1581
|
-
function
|
|
1582
|
-
var t =
|
|
1638
|
+
var ra = [Tn, Fn, $n, fn, _n, Wn, Un, yn, Ln], na = /* @__PURE__ */ ta({
|
|
1639
|
+
defaultModifiers: ra
|
|
1640
|
+
}), aa = typeof global == "object" && global && global.Object === Object && global, ia = typeof self == "object" && self && self.Object === Object && self, sr = aa || ia || Function("return this")(), Ze = sr.Symbol, lr = Object.prototype, oa = lr.hasOwnProperty, sa = lr.toString, Re = Ze ? Ze.toStringTag : void 0;
|
|
1641
|
+
function la(e) {
|
|
1642
|
+
var t = oa.call(e, Re), r = e[Re];
|
|
1583
1643
|
try {
|
|
1584
|
-
e[
|
|
1644
|
+
e[Re] = void 0;
|
|
1585
1645
|
var n = !0;
|
|
1586
1646
|
} catch {
|
|
1587
1647
|
}
|
|
1588
|
-
var a =
|
|
1589
|
-
return n && (t ? e[
|
|
1648
|
+
var a = sa.call(e);
|
|
1649
|
+
return n && (t ? e[Re] = r : delete e[Re]), a;
|
|
1590
1650
|
}
|
|
1591
|
-
var
|
|
1592
|
-
function
|
|
1593
|
-
return
|
|
1651
|
+
var ca = Object.prototype, ua = ca.toString;
|
|
1652
|
+
function da(e) {
|
|
1653
|
+
return ua.call(e);
|
|
1594
1654
|
}
|
|
1595
|
-
var
|
|
1596
|
-
function
|
|
1597
|
-
return e == null ? e === void 0 ?
|
|
1655
|
+
var fa = "[object Null]", pa = "[object Undefined]", Nt = Ze ? Ze.toStringTag : void 0;
|
|
1656
|
+
function va(e) {
|
|
1657
|
+
return e == null ? e === void 0 ? pa : fa : Nt && Nt in Object(e) ? la(e) : da(e);
|
|
1598
1658
|
}
|
|
1599
|
-
function
|
|
1659
|
+
function ma(e) {
|
|
1600
1660
|
return e != null && typeof e == "object";
|
|
1601
1661
|
}
|
|
1602
|
-
var
|
|
1603
|
-
function
|
|
1604
|
-
return typeof e == "symbol" ||
|
|
1662
|
+
var ga = "[object Symbol]";
|
|
1663
|
+
function ha(e) {
|
|
1664
|
+
return typeof e == "symbol" || ma(e) && va(e) == ga;
|
|
1605
1665
|
}
|
|
1606
|
-
var
|
|
1607
|
-
function
|
|
1608
|
-
for (var t = e.length; t-- &&
|
|
1666
|
+
var ba = /\s/;
|
|
1667
|
+
function ya(e) {
|
|
1668
|
+
for (var t = e.length; t-- && ba.test(e.charAt(t)); )
|
|
1609
1669
|
;
|
|
1610
1670
|
return t;
|
|
1611
1671
|
}
|
|
1612
|
-
var
|
|
1613
|
-
function
|
|
1614
|
-
return e && e.slice(0,
|
|
1672
|
+
var wa = /^\s+/;
|
|
1673
|
+
function xa(e) {
|
|
1674
|
+
return e && e.slice(0, ya(e) + 1).replace(wa, "");
|
|
1615
1675
|
}
|
|
1616
1676
|
function Je(e) {
|
|
1617
1677
|
var t = typeof e;
|
|
1618
1678
|
return e != null && (t == "object" || t == "function");
|
|
1619
1679
|
}
|
|
1620
|
-
var
|
|
1621
|
-
function
|
|
1680
|
+
var _t = NaN, Oa = /^[-+]0x[0-9a-f]+$/i, $a = /^0b[01]+$/i, ka = /^0o[0-7]+$/i, Ta = parseInt;
|
|
1681
|
+
function It(e) {
|
|
1622
1682
|
if (typeof e == "number")
|
|
1623
1683
|
return e;
|
|
1624
|
-
if (
|
|
1625
|
-
return
|
|
1684
|
+
if (ha(e))
|
|
1685
|
+
return _t;
|
|
1626
1686
|
if (Je(e)) {
|
|
1627
1687
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
1628
1688
|
e = Je(t) ? t + "" : t;
|
|
1629
1689
|
}
|
|
1630
1690
|
if (typeof e != "string")
|
|
1631
1691
|
return e === 0 ? e : +e;
|
|
1632
|
-
e =
|
|
1633
|
-
var r = $
|
|
1634
|
-
return r ||
|
|
1692
|
+
e = xa(e);
|
|
1693
|
+
var r = $a.test(e);
|
|
1694
|
+
return r || ka.test(e) ? Ta(e.slice(2), r ? 2 : 8) : Oa.test(e) ? _t : +e;
|
|
1635
1695
|
}
|
|
1636
1696
|
var st = function() {
|
|
1637
1697
|
return sr.Date.now();
|
|
1638
|
-
},
|
|
1698
|
+
}, Sa = "Expected a function", Ca = Math.max, Pa = Math.min;
|
|
1639
1699
|
function ft(e, t, r) {
|
|
1640
|
-
var n, a, i, l, o, s,
|
|
1700
|
+
var n, a, i, l, o, s, u = 0, c = !1, x = !1, k = !0;
|
|
1641
1701
|
if (typeof e != "function")
|
|
1642
|
-
throw new TypeError(
|
|
1643
|
-
t =
|
|
1644
|
-
function
|
|
1645
|
-
var
|
|
1646
|
-
return n = a = void 0,
|
|
1702
|
+
throw new TypeError(Sa);
|
|
1703
|
+
t = It(t) || 0, Je(r) && (c = !!r.leading, x = "maxWait" in r, i = x ? Ca(It(r.maxWait) || 0, t) : i, k = "trailing" in r ? !!r.trailing : k);
|
|
1704
|
+
function m(p) {
|
|
1705
|
+
var C = n, R = a;
|
|
1706
|
+
return n = a = void 0, u = p, l = e.apply(R, C), l;
|
|
1647
1707
|
}
|
|
1648
|
-
function
|
|
1649
|
-
return
|
|
1708
|
+
function V(p) {
|
|
1709
|
+
return u = p, o = setTimeout(E, t), c ? m(p) : l;
|
|
1650
1710
|
}
|
|
1651
|
-
function
|
|
1652
|
-
var
|
|
1653
|
-
return
|
|
1711
|
+
function $(p) {
|
|
1712
|
+
var C = p - s, R = p - u, z = t - C;
|
|
1713
|
+
return x ? Pa(z, i - R) : z;
|
|
1654
1714
|
}
|
|
1655
|
-
function
|
|
1656
|
-
var
|
|
1657
|
-
return s === void 0 ||
|
|
1715
|
+
function T(p) {
|
|
1716
|
+
var C = p - s, R = p - u;
|
|
1717
|
+
return s === void 0 || C >= t || C < 0 || x && R >= i;
|
|
1658
1718
|
}
|
|
1659
|
-
function
|
|
1660
|
-
var
|
|
1661
|
-
if (
|
|
1662
|
-
return
|
|
1663
|
-
o = setTimeout(
|
|
1719
|
+
function E() {
|
|
1720
|
+
var p = st();
|
|
1721
|
+
if (T(p))
|
|
1722
|
+
return A(p);
|
|
1723
|
+
o = setTimeout(E, $(p));
|
|
1664
1724
|
}
|
|
1665
|
-
function
|
|
1666
|
-
return o = void 0, k && n ?
|
|
1725
|
+
function A(p) {
|
|
1726
|
+
return o = void 0, k && n ? m(p) : (n = a = void 0, l);
|
|
1667
1727
|
}
|
|
1668
|
-
function
|
|
1669
|
-
o !== void 0 && clearTimeout(o),
|
|
1728
|
+
function W() {
|
|
1729
|
+
o !== void 0 && clearTimeout(o), u = 0, n = s = a = o = void 0;
|
|
1670
1730
|
}
|
|
1671
|
-
function
|
|
1672
|
-
return o === void 0 ? l :
|
|
1731
|
+
function w() {
|
|
1732
|
+
return o === void 0 ? l : A(st());
|
|
1673
1733
|
}
|
|
1674
|
-
function
|
|
1675
|
-
var
|
|
1676
|
-
if (n = arguments, a = this, s =
|
|
1734
|
+
function S() {
|
|
1735
|
+
var p = st(), C = T(p);
|
|
1736
|
+
if (n = arguments, a = this, s = p, C) {
|
|
1677
1737
|
if (o === void 0)
|
|
1678
|
-
return
|
|
1679
|
-
if (
|
|
1680
|
-
return clearTimeout(o), o = setTimeout(
|
|
1738
|
+
return V(s);
|
|
1739
|
+
if (x)
|
|
1740
|
+
return clearTimeout(o), o = setTimeout(E, t), m(s);
|
|
1681
1741
|
}
|
|
1682
|
-
return o === void 0 && (o = setTimeout(
|
|
1742
|
+
return o === void 0 && (o = setTimeout(E, t)), l;
|
|
1683
1743
|
}
|
|
1684
|
-
return
|
|
1744
|
+
return S.cancel = W, S.flush = w, S;
|
|
1685
1745
|
}
|
|
1686
|
-
var
|
|
1687
|
-
function
|
|
1746
|
+
var Ea = "Expected a function";
|
|
1747
|
+
function Va(e, t, r) {
|
|
1688
1748
|
var n = !0, a = !0;
|
|
1689
1749
|
if (typeof e != "function")
|
|
1690
|
-
throw new TypeError(
|
|
1750
|
+
throw new TypeError(Ea);
|
|
1691
1751
|
return Je(r) && (n = "leading" in r ? !!r.leading : n, a = "trailing" in r ? !!r.trailing : a), ft(e, t, {
|
|
1692
1752
|
leading: n,
|
|
1693
1753
|
maxWait: t,
|
|
1694
1754
|
trailing: a
|
|
1695
1755
|
});
|
|
1696
1756
|
}
|
|
1697
|
-
const
|
|
1757
|
+
const Ba = (e, t) => {
|
|
1698
1758
|
const r = (n) => {
|
|
1699
1759
|
const a = e.value, i = n.target;
|
|
1700
1760
|
!a || !i || !(i instanceof Node) || a.contains(i) || t(n);
|
|
1701
1761
|
};
|
|
1702
1762
|
et(() => {
|
|
1703
1763
|
document.addEventListener("click", r, !0);
|
|
1704
|
-
}),
|
|
1764
|
+
}), Ve(() => {
|
|
1705
1765
|
document.removeEventListener("click", r, !0);
|
|
1706
1766
|
});
|
|
1707
|
-
},
|
|
1767
|
+
}, Da = 80, pt = /* @__PURE__ */ G({
|
|
1708
1768
|
name: "Popover",
|
|
1709
1769
|
__name: "Popover",
|
|
1710
1770
|
props: {
|
|
@@ -1723,19 +1783,19 @@ const Bn = (e, t) => {
|
|
|
1723
1783
|
},
|
|
1724
1784
|
emits: ["visible-change", "click-outside", "scroll"],
|
|
1725
1785
|
setup(e, { expose: t, emit: r }) {
|
|
1726
|
-
const n =
|
|
1727
|
-
let
|
|
1728
|
-
const
|
|
1729
|
-
const
|
|
1730
|
-
return
|
|
1731
|
-
}),
|
|
1732
|
-
const
|
|
1733
|
-
if (
|
|
1734
|
-
const
|
|
1735
|
-
|
|
1786
|
+
const n = I(!1), a = e, i = h(() => a.preserveContentMount || n.value), l = h(() => !a.preserveContentMount || n.value), o = r, s = I(), u = I(), c = I();
|
|
1787
|
+
let x = null, k = je({}), m = je({});
|
|
1788
|
+
const V = (f) => typeof f == "number" ? `${f}px` : f, $ = h(() => {
|
|
1789
|
+
const f = a.maxPopperHeight;
|
|
1790
|
+
return f != null && f !== "";
|
|
1791
|
+
}), T = h(() => {
|
|
1792
|
+
const f = {}, g = a.popperWidth;
|
|
1793
|
+
if (g != null && g !== "" && (f.width = V(g)), $.value) {
|
|
1794
|
+
const P = a.maxPopperHeight;
|
|
1795
|
+
f.maxHeight = V(P), f.overflowY = "auto", f.scrollbarWidth = "none", f.msOverflowStyle = "none";
|
|
1736
1796
|
}
|
|
1737
|
-
return
|
|
1738
|
-
}),
|
|
1797
|
+
return f.padding = V(a.padding), f;
|
|
1798
|
+
}), E = h(() => ({
|
|
1739
1799
|
placement: a.placement,
|
|
1740
1800
|
modifiers: [
|
|
1741
1801
|
{
|
|
@@ -1746,99 +1806,99 @@ const Bn = (e, t) => {
|
|
|
1746
1806
|
}
|
|
1747
1807
|
],
|
|
1748
1808
|
...a.popoverOptions
|
|
1749
|
-
})),
|
|
1809
|
+
})), A = () => {
|
|
1750
1810
|
a.disabled || (n.value = !0, o("visible-change", !0));
|
|
1751
|
-
},
|
|
1811
|
+
}, W = () => {
|
|
1752
1812
|
n.value = !1, o("visible-change", !1);
|
|
1753
|
-
},
|
|
1754
|
-
a.disabled || (
|
|
1755
|
-
},
|
|
1756
|
-
|
|
1813
|
+
}, w = ft(A, a.openDelay), S = ft(W, a.closeDelay), p = () => {
|
|
1814
|
+
a.disabled || (S.cancel(), w());
|
|
1815
|
+
}, C = () => {
|
|
1816
|
+
w.cancel(), S();
|
|
1757
1817
|
};
|
|
1758
|
-
|
|
1759
|
-
a.trigger === "click" && n.value && !a.manual &&
|
|
1818
|
+
Ba(s, () => {
|
|
1819
|
+
a.trigger === "click" && n.value && !a.manual && C(), n.value && o("click-outside", !0);
|
|
1760
1820
|
});
|
|
1761
|
-
const
|
|
1762
|
-
a.disabled || (n.value ?
|
|
1763
|
-
},
|
|
1764
|
-
a.trigger === "hover" ? (
|
|
1821
|
+
const R = () => {
|
|
1822
|
+
a.disabled || (n.value ? C() : p());
|
|
1823
|
+
}, z = () => {
|
|
1824
|
+
a.trigger === "hover" ? (m.mouseenter = p, k.mouseleave = C) : a.trigger === "click" && (m.click = R);
|
|
1765
1825
|
};
|
|
1766
1826
|
J(
|
|
1767
1827
|
() => n.value,
|
|
1768
|
-
(
|
|
1769
|
-
|
|
1828
|
+
(f) => {
|
|
1829
|
+
f && (u.value && c.value ? x = na(u.value, c.value, E.value) : x?.destroy());
|
|
1770
1830
|
},
|
|
1771
1831
|
{ flush: "post" }
|
|
1772
1832
|
), J(
|
|
1773
1833
|
() => a.manual,
|
|
1774
|
-
(
|
|
1775
|
-
|
|
1834
|
+
(f) => {
|
|
1835
|
+
f ? (m = {}, k = {}) : z();
|
|
1776
1836
|
}
|
|
1777
1837
|
), J(
|
|
1778
1838
|
() => a.trigger,
|
|
1779
|
-
(
|
|
1780
|
-
|
|
1839
|
+
(f, g) => {
|
|
1840
|
+
f !== g && (m = {}, k = {}, z());
|
|
1781
1841
|
}
|
|
1782
1842
|
), J(
|
|
1783
1843
|
() => a.disabled,
|
|
1784
|
-
(
|
|
1785
|
-
|
|
1844
|
+
(f) => {
|
|
1845
|
+
f && C();
|
|
1786
1846
|
}
|
|
1787
1847
|
), et(() => {
|
|
1788
|
-
a.manual ||
|
|
1848
|
+
a.manual || z();
|
|
1789
1849
|
});
|
|
1790
|
-
const
|
|
1791
|
-
const
|
|
1792
|
-
o("scroll", { scrollTop:
|
|
1793
|
-
},
|
|
1794
|
-
return
|
|
1795
|
-
|
|
1850
|
+
const d = Va((f) => {
|
|
1851
|
+
const g = f.target;
|
|
1852
|
+
o("scroll", { scrollTop: g.scrollTop, scrollLeft: g.scrollLeft });
|
|
1853
|
+
}, Da);
|
|
1854
|
+
return Ve(() => {
|
|
1855
|
+
d.cancel(), x?.destroy();
|
|
1796
1856
|
}), t({
|
|
1797
1857
|
isOpen: n,
|
|
1798
|
-
open:
|
|
1799
|
-
close:
|
|
1800
|
-
}), (
|
|
1858
|
+
open: p,
|
|
1859
|
+
close: C
|
|
1860
|
+
}), (f, g) => (y(), O("div", xe({
|
|
1801
1861
|
class: "cregis-popover",
|
|
1802
1862
|
ref_key: "popoverRef",
|
|
1803
1863
|
ref: s
|
|
1804
|
-
},
|
|
1805
|
-
|
|
1864
|
+
}, Vt(ae(k), !0)), [
|
|
1865
|
+
D("div", xe({
|
|
1806
1866
|
class: ["cregis-popover__trigger", { "cregis-popover__trigger--disabled": e.disabled }],
|
|
1807
1867
|
ref_key: "popoverTriggerRef",
|
|
1808
|
-
ref:
|
|
1809
|
-
},
|
|
1810
|
-
|
|
1868
|
+
ref: u
|
|
1869
|
+
}, Vt(ae(m), !0)), [
|
|
1870
|
+
Y(f.$slots, "reference")
|
|
1811
1871
|
], 16),
|
|
1812
|
-
|
|
1872
|
+
X(vt, { name: "fade" }, {
|
|
1813
1873
|
default: Z(() => [
|
|
1814
|
-
i.value ?
|
|
1874
|
+
i.value ? Le((y(), O("div", {
|
|
1815
1875
|
key: 0,
|
|
1816
|
-
class:
|
|
1876
|
+
class: L(["cregis-popover__content", { "cregis-popover__content--hide-scrollbar": $.value }]),
|
|
1817
1877
|
ref_key: "popoverContentRef",
|
|
1818
1878
|
ref: c,
|
|
1819
|
-
style: ie(
|
|
1820
|
-
onScroll:
|
|
1821
|
-
(...
|
|
1879
|
+
style: ie(T.value),
|
|
1880
|
+
onScroll: g[0] || (g[0] = //@ts-ignore
|
|
1881
|
+
(...P) => ae(d) && ae(d)(...P))
|
|
1822
1882
|
}, [
|
|
1823
|
-
|
|
1883
|
+
Y(f.$slots, "default")
|
|
1824
1884
|
], 38)), [
|
|
1825
1885
|
[mt, l.value]
|
|
1826
|
-
]) :
|
|
1886
|
+
]) : q("", !0)
|
|
1827
1887
|
]),
|
|
1828
1888
|
_: 3
|
|
1829
1889
|
})
|
|
1830
1890
|
], 16));
|
|
1831
1891
|
}
|
|
1832
|
-
}), cr = Symbol("CregisSelect"),
|
|
1892
|
+
}), cr = Symbol("CregisSelect"), Aa = { class: "cregis-select__trigger-label" }, Ra = { class: "cregis-select__selected" }, za = {
|
|
1833
1893
|
key: 1,
|
|
1834
1894
|
class: "cregis-select__placeholder"
|
|
1835
|
-
},
|
|
1895
|
+
}, Wa = {
|
|
1836
1896
|
key: 0,
|
|
1837
1897
|
class: "cregis-select__dropdown-empty"
|
|
1838
|
-
},
|
|
1898
|
+
}, Ma = {
|
|
1839
1899
|
key: 2,
|
|
1840
1900
|
class: "cregis-select__dropdown-filter-empty"
|
|
1841
|
-
},
|
|
1901
|
+
}, La = { class: "cregis-select__dropdown-content" }, li = /* @__PURE__ */ G({
|
|
1842
1902
|
name: "Select",
|
|
1843
1903
|
__name: "Select",
|
|
1844
1904
|
props: {
|
|
@@ -1858,86 +1918,86 @@ const Bn = (e, t) => {
|
|
|
1858
1918
|
},
|
|
1859
1919
|
emits: ["update:modelValue", "change", "visible-change", "filter-input", "filter-clear"],
|
|
1860
1920
|
setup(e, { emit: t }) {
|
|
1861
|
-
const r = e, n = t, a =
|
|
1921
|
+
const r = e, n = t, a = I(null), i = I(!1);
|
|
1862
1922
|
let l = null;
|
|
1863
1923
|
const o = () => {
|
|
1864
1924
|
l !== null && (clearTimeout(l), l = null);
|
|
1865
|
-
}, s = (
|
|
1866
|
-
i.value =
|
|
1867
|
-
},
|
|
1868
|
-
const ue =
|
|
1869
|
-
return k.value++, c[ue] =
|
|
1870
|
-
k.value--, delete c[ue], delete
|
|
1925
|
+
}, s = (b) => {
|
|
1926
|
+
i.value = b, n("visible-change", b), !b && r.filterable && (w.value = "", S.value = "", o());
|
|
1927
|
+
}, u = (b) => typeof b == "number" ? `n:${b}` : `s:${b}`, c = je({}), x = je({}), k = I(0), m = I(null), V = (b, U, K) => {
|
|
1928
|
+
const ue = u(b);
|
|
1929
|
+
return k.value++, c[ue] = U, x[ue] = K ?? U, () => {
|
|
1930
|
+
k.value--, delete c[ue], delete x[ue];
|
|
1871
1931
|
};
|
|
1872
|
-
},
|
|
1932
|
+
}, $ = h(() => k.value === 0);
|
|
1873
1933
|
J(
|
|
1874
1934
|
() => r.modelValue,
|
|
1875
|
-
(
|
|
1876
|
-
if (
|
|
1877
|
-
|
|
1935
|
+
(b) => {
|
|
1936
|
+
if (b == null || b === "") {
|
|
1937
|
+
m.value = null;
|
|
1878
1938
|
return;
|
|
1879
1939
|
}
|
|
1880
|
-
|
|
1940
|
+
m.value && m.value.value !== b && (m.value = null);
|
|
1881
1941
|
}
|
|
1882
1942
|
);
|
|
1883
|
-
const
|
|
1884
|
-
const
|
|
1885
|
-
return
|
|
1886
|
-
}),
|
|
1887
|
-
if (
|
|
1888
|
-
const
|
|
1889
|
-
return
|
|
1890
|
-
}),
|
|
1891
|
-
r.disabled || (
|
|
1892
|
-
},
|
|
1893
|
-
const
|
|
1894
|
-
return !r.filterable || !
|
|
1895
|
-
}),
|
|
1896
|
-
() => r.filterable && !!
|
|
1897
|
-
),
|
|
1943
|
+
const T = h(() => {
|
|
1944
|
+
const b = r.modelValue;
|
|
1945
|
+
return b != null && b !== "";
|
|
1946
|
+
}), E = h(() => {
|
|
1947
|
+
if (!T.value) return "";
|
|
1948
|
+
const b = r.modelValue;
|
|
1949
|
+
return m.value?.value === b ? m.value.label : c[u(b)] ?? String(b);
|
|
1950
|
+
}), A = (b) => r.modelValue === b, W = (b, U) => {
|
|
1951
|
+
r.disabled || (m.value = { value: b, label: U }, n("update:modelValue", b), n("change", b), a.value?.close());
|
|
1952
|
+
}, w = I(""), S = I(""), p = h(() => S.value.trim().toLowerCase()), C = h(() => {
|
|
1953
|
+
const b = p.value;
|
|
1954
|
+
return !r.filterable || !b ? !0 : Object.keys(c).some((U) => (x[U] ?? c[U]).toLowerCase().includes(b));
|
|
1955
|
+
}), R = h(
|
|
1956
|
+
() => r.filterable && !!p.value && !C.value && !$.value
|
|
1957
|
+
), z = () => {
|
|
1898
1958
|
r.filterable && (o(), l = setTimeout(() => {
|
|
1899
|
-
|
|
1959
|
+
S.value = w.value.trim(), l = null;
|
|
1900
1960
|
}, r.filterDebounceMs));
|
|
1901
1961
|
};
|
|
1902
|
-
J(
|
|
1903
|
-
r.filterable &&
|
|
1962
|
+
J(w, () => {
|
|
1963
|
+
r.filterable && z();
|
|
1904
1964
|
}), J(
|
|
1905
1965
|
() => r.filterable,
|
|
1906
|
-
(
|
|
1907
|
-
|
|
1966
|
+
(b) => {
|
|
1967
|
+
b || (w.value = "", S.value = "", o());
|
|
1908
1968
|
}
|
|
1909
|
-
),
|
|
1910
|
-
const
|
|
1911
|
-
n("filter-input", String(
|
|
1912
|
-
},
|
|
1913
|
-
|
|
1969
|
+
), Ve(() => o());
|
|
1970
|
+
const d = (b) => {
|
|
1971
|
+
n("filter-input", String(b ?? ""));
|
|
1972
|
+
}, f = () => {
|
|
1973
|
+
S.value = "", o(), n("filter-clear");
|
|
1914
1974
|
};
|
|
1915
1975
|
Ht(cr, {
|
|
1916
|
-
modelValue:
|
|
1917
|
-
disabled:
|
|
1918
|
-
selectOption:
|
|
1919
|
-
isOptionSelected:
|
|
1920
|
-
registerOption:
|
|
1921
|
-
filterQuery:
|
|
1976
|
+
modelValue: h(() => r.modelValue),
|
|
1977
|
+
disabled: h(() => !!r.disabled),
|
|
1978
|
+
selectOption: W,
|
|
1979
|
+
isOptionSelected: A,
|
|
1980
|
+
registerOption: V,
|
|
1981
|
+
filterQuery: p
|
|
1922
1982
|
});
|
|
1923
|
-
const
|
|
1924
|
-
if (r.popperWidth) return
|
|
1925
|
-
const
|
|
1926
|
-
return typeof
|
|
1927
|
-
}),
|
|
1928
|
-
width:
|
|
1929
|
-
})),
|
|
1930
|
-
de.value =
|
|
1983
|
+
const g = (b) => typeof b == "number" ? `${b}px` : b, P = h(() => {
|
|
1984
|
+
if (r.popperWidth) return g(r.popperWidth);
|
|
1985
|
+
const b = r.triggerWidth;
|
|
1986
|
+
return typeof b == "number" ? b + 8 : `calc(${b} + 8px)`;
|
|
1987
|
+
}), F = h(() => typeof P.value == "number" ? `${P.value - 12}px` : `calc(${P.value} - 12px)`), H = h(() => r.align === "center" ? "bottom" : r.align === "left" ? "bottom-start" : "bottom-end"), N = h(() => ({
|
|
1988
|
+
width: g(r.triggerWidth)
|
|
1989
|
+
})), _ = h(() => r.size === "large" ? "20px" : r.size === "medium" ? "14px" : "12px"), de = I(0), ce = (b) => {
|
|
1990
|
+
de.value = b.scrollTop;
|
|
1931
1991
|
};
|
|
1932
|
-
return (
|
|
1933
|
-
class:
|
|
1992
|
+
return (b, U) => (y(), O("div", {
|
|
1993
|
+
class: L(["cregis-select", { "is-disabled": e.disabled }])
|
|
1934
1994
|
}, [
|
|
1935
|
-
|
|
1995
|
+
X(pt, {
|
|
1936
1996
|
ref_key: "popoverRef",
|
|
1937
1997
|
ref: a,
|
|
1938
1998
|
"preserve-content-mount": "",
|
|
1939
|
-
"popper-width":
|
|
1940
|
-
placement:
|
|
1999
|
+
"popper-width": P.value,
|
|
2000
|
+
placement: H.value,
|
|
1941
2001
|
disabled: !!e.disabled,
|
|
1942
2002
|
padding: 0,
|
|
1943
2003
|
"max-popper-height": e.maxPopperHeight,
|
|
@@ -1945,59 +2005,59 @@ const Bn = (e, t) => {
|
|
|
1945
2005
|
onScroll: ce
|
|
1946
2006
|
}, {
|
|
1947
2007
|
reference: Z(() => [
|
|
1948
|
-
|
|
1949
|
-
class:
|
|
1950
|
-
style: ie(
|
|
2008
|
+
D("div", {
|
|
2009
|
+
class: L(["cregis-select__trigger", { [`cregis-select__trigger--${e.size}`]: e.size, [`cregis-select__trigger--${e.type}`]: e.type }]),
|
|
2010
|
+
style: ie(N.value)
|
|
1951
2011
|
}, [
|
|
1952
|
-
|
|
1953
|
-
|
|
2012
|
+
D("div", Aa, [
|
|
2013
|
+
T.value ? Y(b.$slots, "label", {
|
|
1954
2014
|
key: 0,
|
|
1955
2015
|
modelValue: e.modelValue,
|
|
1956
|
-
displayText:
|
|
2016
|
+
displayText: E.value,
|
|
1957
2017
|
placeholder: e.placeholder,
|
|
1958
|
-
hasSelection:
|
|
2018
|
+
hasSelection: T.value
|
|
1959
2019
|
}, () => [
|
|
1960
|
-
|
|
1961
|
-
]) : (
|
|
2020
|
+
D("p", Ra, j(E.value), 1)
|
|
2021
|
+
]) : (y(), O("p", za, j(e.placeholder), 1))
|
|
1962
2022
|
]),
|
|
1963
|
-
|
|
1964
|
-
class:
|
|
2023
|
+
D("span", {
|
|
2024
|
+
class: L(["cregis-select__icon", { "is-open": i.value }])
|
|
1965
2025
|
}, [
|
|
1966
|
-
|
|
1967
|
-
size:
|
|
2026
|
+
X(ae(Kt), {
|
|
2027
|
+
size: _.value,
|
|
1968
2028
|
color: e.disabled ? "var(--text-base-quaternary)" : "var(--material-foreground-base-secondary)"
|
|
1969
2029
|
}, null, 8, ["size", "color"])
|
|
1970
2030
|
], 2)
|
|
1971
2031
|
], 6)
|
|
1972
2032
|
]),
|
|
1973
2033
|
default: Z(() => [
|
|
1974
|
-
|
|
1975
|
-
class:
|
|
2034
|
+
D("div", {
|
|
2035
|
+
class: L(["cregis-select__dropdown", { "is-empty": $.value }])
|
|
1976
2036
|
}, [
|
|
1977
|
-
|
|
1978
|
-
e.filterable &&
|
|
2037
|
+
$.value ? (y(), O("p", Wa, j(e.noDataText), 1)) : q("", !0),
|
|
2038
|
+
e.filterable && !$.value ? (y(), O("div", {
|
|
1979
2039
|
key: 1,
|
|
1980
|
-
class:
|
|
2040
|
+
class: L(["cregis-select__dropdown-filter", { "backdrop-fixed-header": de.value > 10 }])
|
|
1981
2041
|
}, [
|
|
1982
|
-
|
|
1983
|
-
modelValue:
|
|
1984
|
-
"onUpdate:modelValue":
|
|
2042
|
+
X(Qt, {
|
|
2043
|
+
modelValue: w.value,
|
|
2044
|
+
"onUpdate:modelValue": U[0] || (U[0] = (K) => w.value = K),
|
|
1985
2045
|
placeholder: "search",
|
|
1986
|
-
width:
|
|
2046
|
+
width: F.value,
|
|
1987
2047
|
size: "small",
|
|
1988
2048
|
clearable: "",
|
|
1989
|
-
onInput:
|
|
1990
|
-
onClear:
|
|
2049
|
+
onInput: d,
|
|
2050
|
+
onClear: f
|
|
1991
2051
|
}, {
|
|
1992
2052
|
prefix: Z(() => [
|
|
1993
|
-
|
|
2053
|
+
X(ae(Xt), { size: "14px" })
|
|
1994
2054
|
]),
|
|
1995
2055
|
_: 1
|
|
1996
2056
|
}, 8, ["modelValue", "width"])
|
|
1997
|
-
], 2)) :
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2057
|
+
], 2)) : q("", !0),
|
|
2058
|
+
R.value ? (y(), O("p", Ma, j(e.noMatchText), 1)) : q("", !0),
|
|
2059
|
+
D("div", La, [
|
|
2060
|
+
Y(b.$slots, "default")
|
|
2001
2061
|
])
|
|
2002
2062
|
], 2)
|
|
2003
2063
|
]),
|
|
@@ -2005,7 +2065,7 @@ const Bn = (e, t) => {
|
|
|
2005
2065
|
}, 8, ["popper-width", "placement", "disabled", "max-popper-height"])
|
|
2006
2066
|
], 2));
|
|
2007
2067
|
}
|
|
2008
|
-
}),
|
|
2068
|
+
}), ja = ["aria-selected"], ci = /* @__PURE__ */ G({
|
|
2009
2069
|
name: "Option",
|
|
2010
2070
|
__name: "Option",
|
|
2011
2071
|
props: {
|
|
@@ -2020,47 +2080,47 @@ const Bn = (e, t) => {
|
|
|
2020
2080
|
const a = () => t.filterText ?? t.label, i = () => {
|
|
2021
2081
|
n?.(), r && (n = r.registerOption(t.value, t.label, a()));
|
|
2022
2082
|
};
|
|
2023
|
-
et(i),
|
|
2024
|
-
const l =
|
|
2083
|
+
et(i), Ve(() => n?.()), J(() => [t.value, t.label, t.filterText], i);
|
|
2084
|
+
const l = h(() => r?.isOptionSelected(t.value) ?? !1), o = () => {
|
|
2025
2085
|
t.disabled || r?.disabled.value || r?.selectOption(t.value, t.label);
|
|
2026
|
-
}, s =
|
|
2086
|
+
}, s = h(() => r?.filterQuery?.value ?? ""), u = h(() => {
|
|
2027
2087
|
const c = s.value;
|
|
2028
2088
|
return c ? a().toLowerCase().includes(c) : !0;
|
|
2029
2089
|
});
|
|
2030
|
-
return (c,
|
|
2031
|
-
class:
|
|
2090
|
+
return (c, x) => Le((y(), O("div", {
|
|
2091
|
+
class: L(["cregis-select__option", { "is-selected": l.value, "is-disabled": e.disabled }]),
|
|
2032
2092
|
role: "option",
|
|
2033
2093
|
"aria-selected": l.value,
|
|
2034
2094
|
onClick: o
|
|
2035
2095
|
}, [
|
|
2036
|
-
|
|
2096
|
+
Y(c.$slots, "default", {
|
|
2037
2097
|
label: e.label,
|
|
2038
2098
|
value: e.value,
|
|
2039
2099
|
disabled: !!e.disabled,
|
|
2040
2100
|
selected: l.value
|
|
2041
2101
|
}, () => [
|
|
2042
|
-
$e(
|
|
2102
|
+
$e(j(e.label), 1)
|
|
2043
2103
|
])
|
|
2044
|
-
], 10,
|
|
2045
|
-
[mt,
|
|
2104
|
+
], 10, ja)), [
|
|
2105
|
+
[mt, u.value]
|
|
2046
2106
|
]);
|
|
2047
2107
|
}
|
|
2048
|
-
}),
|
|
2108
|
+
}), Na = { class: "cregis-cascader__trigger-label" }, _a = { class: "cregis-cascader__selected" }, Ia = {
|
|
2049
2109
|
key: 1,
|
|
2050
2110
|
class: "cregis-cascader__placeholder"
|
|
2051
|
-
},
|
|
2111
|
+
}, Fa = {
|
|
2052
2112
|
key: 0,
|
|
2053
2113
|
class: "cregis-cascader__dropdown-empty"
|
|
2054
|
-
},
|
|
2114
|
+
}, Ha = {
|
|
2055
2115
|
key: 2,
|
|
2056
2116
|
class: "cregis-cascader__dropdown-filter-empty"
|
|
2057
|
-
},
|
|
2117
|
+
}, qa = { class: "cregis-cascader__dropdown-content" }, Ua = {
|
|
2058
2118
|
key: 0,
|
|
2059
2119
|
class: "cregis-cascader__dropdown-item-popover"
|
|
2060
|
-
},
|
|
2120
|
+
}, Ya = { class: "cregis-cascader__suboption-amount-container" }, Xa = {
|
|
2061
2121
|
key: 0,
|
|
2062
2122
|
class: "cregis-cascader__suboption-amount"
|
|
2063
|
-
},
|
|
2123
|
+
}, Ka = { class: "cregis-cascader__suboption-panel" }, Qa = ["onClick"], Ga = ["onClick"], ui = /* @__PURE__ */ G({
|
|
2064
2124
|
name: "Cascader",
|
|
2065
2125
|
__name: "Cascader",
|
|
2066
2126
|
props: {
|
|
@@ -2084,111 +2144,111 @@ const Bn = (e, t) => {
|
|
|
2084
2144
|
},
|
|
2085
2145
|
emits: ["update:modelValue", "change", "visible-change", "filter-input", "filter-clear"],
|
|
2086
2146
|
setup(e, { emit: t }) {
|
|
2087
|
-
const r = e, n = t, a =
|
|
2147
|
+
const r = e, n = t, a = I(null), i = I(!1);
|
|
2088
2148
|
let l = null;
|
|
2089
2149
|
const o = () => {
|
|
2090
2150
|
l !== null && (clearTimeout(l), l = null);
|
|
2091
|
-
}, s =
|
|
2151
|
+
}, s = I(""), u = I(""), c = h(() => u.value.trim().toLowerCase()), x = () => {
|
|
2092
2152
|
r.filterable && (o(), l = setTimeout(() => {
|
|
2093
|
-
|
|
2153
|
+
u.value = s.value.trim(), l = null;
|
|
2094
2154
|
}, r.filterDebounceMs));
|
|
2095
2155
|
};
|
|
2096
2156
|
J(s, () => {
|
|
2097
|
-
r.filterable &&
|
|
2157
|
+
r.filterable && x();
|
|
2098
2158
|
}), J(
|
|
2099
2159
|
() => r.filterable,
|
|
2100
|
-
(
|
|
2101
|
-
|
|
2160
|
+
(v) => {
|
|
2161
|
+
v || (s.value = "", u.value = "", o());
|
|
2102
2162
|
}
|
|
2103
|
-
),
|
|
2104
|
-
const k = (
|
|
2105
|
-
n("filter-input", String(
|
|
2106
|
-
},
|
|
2107
|
-
|
|
2108
|
-
},
|
|
2109
|
-
const
|
|
2110
|
-
return !
|
|
2111
|
-
},
|
|
2112
|
-
const
|
|
2113
|
-
return !
|
|
2114
|
-
},
|
|
2115
|
-
() => r.filterable && !!
|
|
2116
|
-
),
|
|
2117
|
-
i.value =
|
|
2118
|
-
},
|
|
2119
|
-
const
|
|
2120
|
-
if (
|
|
2163
|
+
), Ve(() => o());
|
|
2164
|
+
const k = (v) => {
|
|
2165
|
+
n("filter-input", String(v ?? ""));
|
|
2166
|
+
}, m = () => {
|
|
2167
|
+
u.value = "", o(), n("filter-clear");
|
|
2168
|
+
}, V = (v) => (v.filterText ?? v.label).toLowerCase(), $ = (v) => {
|
|
2169
|
+
const M = c.value;
|
|
2170
|
+
return !M || V(v).includes(M) ? !0 : (v.children ?? []).some((ne) => V(ne).includes(M));
|
|
2171
|
+
}, T = (v, M) => {
|
|
2172
|
+
const B = c.value;
|
|
2173
|
+
return !B || V(v).includes(B) ? !0 : V(M).includes(B);
|
|
2174
|
+
}, E = h(() => r.options.filter((v) => $(v))), A = h(() => r.options.length === 0), W = h(() => (c.value, r.options.some((v) => $(v)))), w = h(
|
|
2175
|
+
() => r.filterable && !!u.value.trim() && !W.value && !A.value
|
|
2176
|
+
), S = (v) => {
|
|
2177
|
+
i.value = v, n("visible-change", v), !v && r.filterable && (s.value = "", u.value = "", o());
|
|
2178
|
+
}, p = I(null), C = (v) => {
|
|
2179
|
+
const M = r.options.find((B) => B.value === v);
|
|
2180
|
+
if (M)
|
|
2121
2181
|
return {
|
|
2122
2182
|
level: 1,
|
|
2123
|
-
label:
|
|
2124
|
-
primary:
|
|
2183
|
+
label: M.label,
|
|
2184
|
+
primary: M,
|
|
2125
2185
|
sub: void 0
|
|
2126
2186
|
};
|
|
2127
|
-
for (const
|
|
2128
|
-
const
|
|
2129
|
-
if (
|
|
2187
|
+
for (const B of r.options) {
|
|
2188
|
+
const ne = B.children?.find((Q) => Q.value === v);
|
|
2189
|
+
if (ne)
|
|
2130
2190
|
return {
|
|
2131
2191
|
level: 2,
|
|
2132
|
-
label:
|
|
2133
|
-
primary:
|
|
2134
|
-
sub:
|
|
2192
|
+
label: ne.label,
|
|
2193
|
+
primary: B,
|
|
2194
|
+
sub: ne
|
|
2135
2195
|
};
|
|
2136
2196
|
}
|
|
2137
2197
|
return {
|
|
2138
2198
|
level: 0,
|
|
2139
|
-
label: String(
|
|
2199
|
+
label: String(v),
|
|
2140
2200
|
primary: void 0,
|
|
2141
2201
|
sub: void 0
|
|
2142
2202
|
};
|
|
2143
|
-
},
|
|
2144
|
-
const
|
|
2145
|
-
return
|
|
2203
|
+
}, R = h(() => {
|
|
2204
|
+
const v = r.modelValue;
|
|
2205
|
+
return v == null || v === "" ? {
|
|
2146
2206
|
level: 0,
|
|
2147
2207
|
label: "",
|
|
2148
2208
|
primary: void 0,
|
|
2149
2209
|
sub: void 0
|
|
2150
|
-
} :
|
|
2151
|
-
level:
|
|
2152
|
-
label:
|
|
2153
|
-
primary:
|
|
2154
|
-
sub:
|
|
2155
|
-
} :
|
|
2210
|
+
} : p.value !== null && p.value.value === v ? {
|
|
2211
|
+
level: p.value.level,
|
|
2212
|
+
label: p.value.label,
|
|
2213
|
+
primary: p.value.primary,
|
|
2214
|
+
sub: p.value.sub
|
|
2215
|
+
} : C(v);
|
|
2156
2216
|
});
|
|
2157
2217
|
J(
|
|
2158
2218
|
() => r.modelValue,
|
|
2159
|
-
(
|
|
2160
|
-
if (
|
|
2161
|
-
|
|
2219
|
+
(v) => {
|
|
2220
|
+
if (v == null || v === "") {
|
|
2221
|
+
p.value = null;
|
|
2162
2222
|
return;
|
|
2163
2223
|
}
|
|
2164
|
-
|
|
2224
|
+
p.value !== null && p.value.value !== v && (p.value = null);
|
|
2165
2225
|
}
|
|
2166
2226
|
);
|
|
2167
|
-
const
|
|
2168
|
-
const
|
|
2169
|
-
return
|
|
2170
|
-
}, ce = (
|
|
2171
|
-
r.disabled ||
|
|
2172
|
-
},
|
|
2173
|
-
r.disabled ||
|
|
2174
|
-
},
|
|
2227
|
+
const z = h(() => R.value.level > 0), d = h(() => R.value.label), f = h(() => r.modelValue), g = h(() => d.value), P = h(() => R.value.level), F = h(() => R.value.primary), H = h(() => R.value.sub), N = (v) => (v.children?.length ?? 0) > 0, _ = (v) => r.modelValue === v, de = (v) => {
|
|
2228
|
+
const M = r.modelValue;
|
|
2229
|
+
return M == null || M === "" ? !1 : (v.children ?? []).some((B) => B.value === M);
|
|
2230
|
+
}, ce = (v, M) => {
|
|
2231
|
+
r.disabled || v.disabled || M.disabled || (p.value = { value: M.value, label: M.label, level: 2, primary: v, sub: M }, n("update:modelValue", M.value), n("change", M.value), a.value?.close());
|
|
2232
|
+
}, b = (v) => {
|
|
2233
|
+
r.disabled || v.disabled || N(v) || (p.value = { value: v.value, label: v.label, level: 1, primary: v }, n("update:modelValue", v.value), n("change", v.value), a.value?.close());
|
|
2234
|
+
}, U = (v) => typeof v == "number" ? `${v}px` : v, K = h(() => {
|
|
2175
2235
|
if (r.popperWidth !== void 0 && r.popperWidth !== null && r.popperWidth !== "")
|
|
2176
|
-
return
|
|
2177
|
-
const
|
|
2178
|
-
return typeof
|
|
2179
|
-
}), ue =
|
|
2180
|
-
maxHeight:
|
|
2236
|
+
return U(r.popperWidth);
|
|
2237
|
+
const v = r.triggerWidth;
|
|
2238
|
+
return typeof v == "number" ? `${v + 8}px` : `calc(${v} + 8px)`;
|
|
2239
|
+
}), ue = h(() => U(r.subPopperWidth)), he = h(() => typeof K.value == "number" ? `${K.value - 12}px` : `calc(${K.value} - 12px)`), fe = h(() => ({
|
|
2240
|
+
maxHeight: U(r.maxPopperHeight),
|
|
2181
2241
|
overflowY: "auto"
|
|
2182
|
-
})), ye = { strategy: "fixed" }, Te =
|
|
2183
|
-
width:
|
|
2184
|
-
})), Be =
|
|
2185
|
-
const
|
|
2186
|
-
He.value =
|
|
2242
|
+
})), ye = { strategy: "fixed" }, Te = h(() => r.align === "center" ? "bottom" : r.align === "left" ? "bottom-start" : "bottom-end"), me = h(() => ({
|
|
2243
|
+
width: U(r.triggerWidth)
|
|
2244
|
+
})), Be = h(() => r.size === "large" ? "20px" : r.size === "medium" ? "14px" : "12px"), He = I(0), De = (v) => {
|
|
2245
|
+
const M = v.target;
|
|
2246
|
+
He.value = M.scrollTop;
|
|
2187
2247
|
}, rt = [-16, -8];
|
|
2188
|
-
return (
|
|
2189
|
-
class:
|
|
2248
|
+
return (v, M) => (y(), O("div", {
|
|
2249
|
+
class: L(["cregis-cascader", { "is-disabled": e.disabled }])
|
|
2190
2250
|
}, [
|
|
2191
|
-
|
|
2251
|
+
X(pt, {
|
|
2192
2252
|
ref_key: "popoverRef",
|
|
2193
2253
|
ref: a,
|
|
2194
2254
|
"preserve-content-mount": "",
|
|
@@ -2197,43 +2257,43 @@ const Bn = (e, t) => {
|
|
|
2197
2257
|
offset: e.offset,
|
|
2198
2258
|
disabled: !!e.disabled,
|
|
2199
2259
|
padding: 0,
|
|
2200
|
-
onVisibleChange:
|
|
2260
|
+
onVisibleChange: S
|
|
2201
2261
|
}, {
|
|
2202
2262
|
reference: Z(() => [
|
|
2203
|
-
|
|
2263
|
+
v.$slots.trigger ? Y(v.$slots, "trigger", {
|
|
2204
2264
|
key: 0,
|
|
2205
|
-
modelValue:
|
|
2206
|
-
selectedLabel:
|
|
2207
|
-
level:
|
|
2208
|
-
primaryOption:
|
|
2209
|
-
subOption:
|
|
2265
|
+
modelValue: f.value,
|
|
2266
|
+
selectedLabel: g.value,
|
|
2267
|
+
level: P.value,
|
|
2268
|
+
primaryOption: F.value,
|
|
2269
|
+
subOption: H.value,
|
|
2210
2270
|
placeholder: e.placeholder,
|
|
2211
|
-
hasSelection:
|
|
2271
|
+
hasSelection: z.value,
|
|
2212
2272
|
open: i.value,
|
|
2213
2273
|
disabled: !!e.disabled
|
|
2214
|
-
}) : (
|
|
2274
|
+
}) : (y(), O("div", {
|
|
2215
2275
|
key: 1,
|
|
2216
|
-
class:
|
|
2276
|
+
class: L(["cregis-cascader__trigger", { [`cregis-cascader__trigger--${e.size}`]: e.size, [`cregis-cascader__trigger--${e.type}`]: e.type }]),
|
|
2217
2277
|
style: ie(me.value)
|
|
2218
2278
|
}, [
|
|
2219
|
-
|
|
2220
|
-
|
|
2279
|
+
D("div", Na, [
|
|
2280
|
+
z.value ? Y(v.$slots, "label", {
|
|
2221
2281
|
key: 0,
|
|
2222
|
-
modelValue:
|
|
2223
|
-
selectedLabel:
|
|
2224
|
-
level:
|
|
2225
|
-
primaryOption:
|
|
2226
|
-
subOption:
|
|
2282
|
+
modelValue: f.value,
|
|
2283
|
+
selectedLabel: g.value,
|
|
2284
|
+
level: P.value,
|
|
2285
|
+
primaryOption: F.value,
|
|
2286
|
+
subOption: H.value,
|
|
2227
2287
|
placeholder: e.placeholder,
|
|
2228
|
-
hasSelection:
|
|
2288
|
+
hasSelection: z.value
|
|
2229
2289
|
}, () => [
|
|
2230
|
-
|
|
2231
|
-
]) : (
|
|
2290
|
+
D("p", _a, j(d.value), 1)
|
|
2291
|
+
]) : (y(), O("p", Ia, j(e.placeholder), 1))
|
|
2232
2292
|
]),
|
|
2233
|
-
|
|
2234
|
-
class:
|
|
2293
|
+
D("span", {
|
|
2294
|
+
class: L(["cregis-cascader__icon", { "is-open": i.value }])
|
|
2235
2295
|
}, [
|
|
2236
|
-
|
|
2296
|
+
X(ae(Kt), {
|
|
2237
2297
|
size: Be.value,
|
|
2238
2298
|
color: e.disabled ? "var(--text-base-quaternary)" : "var(--material-foreground-base-secondary)"
|
|
2239
2299
|
}, null, 8, ["size", "color"])
|
|
@@ -2241,72 +2301,72 @@ const Bn = (e, t) => {
|
|
|
2241
2301
|
], 6))
|
|
2242
2302
|
]),
|
|
2243
2303
|
default: Z(() => [
|
|
2244
|
-
|
|
2245
|
-
class:
|
|
2304
|
+
D("div", {
|
|
2305
|
+
class: L(["cregis-cascader__dropdown", { "is-empty": A.value }]),
|
|
2246
2306
|
style: ie(fe.value),
|
|
2247
|
-
onScroll:
|
|
2307
|
+
onScroll: De
|
|
2248
2308
|
}, [
|
|
2249
|
-
|
|
2250
|
-
e.filterable && !
|
|
2309
|
+
A.value ? (y(), O("p", Fa, j(e.noDataText), 1)) : q("", !0),
|
|
2310
|
+
e.filterable && !A.value ? (y(), O("div", {
|
|
2251
2311
|
key: 1,
|
|
2252
|
-
class:
|
|
2312
|
+
class: L(["cregis-cascader__dropdown-filter", { "backdrop-fixed-header": He.value > 10 }])
|
|
2253
2313
|
}, [
|
|
2254
|
-
|
|
2314
|
+
X(Qt, {
|
|
2255
2315
|
modelValue: s.value,
|
|
2256
|
-
"onUpdate:modelValue":
|
|
2316
|
+
"onUpdate:modelValue": M[0] || (M[0] = (B) => s.value = B),
|
|
2257
2317
|
placeholder: "search",
|
|
2258
2318
|
width: he.value,
|
|
2259
2319
|
size: "small",
|
|
2260
2320
|
clearable: "",
|
|
2261
2321
|
onInput: k,
|
|
2262
|
-
onClear:
|
|
2322
|
+
onClear: m
|
|
2263
2323
|
}, {
|
|
2264
2324
|
prefix: Z(() => [
|
|
2265
|
-
|
|
2325
|
+
X(ae(Xt), { size: "14px" })
|
|
2266
2326
|
]),
|
|
2267
2327
|
_: 1
|
|
2268
2328
|
}, 8, ["modelValue", "width"])
|
|
2269
|
-
], 2)) :
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
(
|
|
2273
|
-
key:
|
|
2274
|
-
class:
|
|
2329
|
+
], 2)) : q("", !0),
|
|
2330
|
+
w.value ? (y(), O("p", Ha, j(e.noMatchText), 1)) : q("", !0),
|
|
2331
|
+
D("ul", qa, [
|
|
2332
|
+
(y(!0), O(lt, null, ct(E.value, (B, ne) => (y(), O("li", {
|
|
2333
|
+
key: B.value,
|
|
2334
|
+
class: L(["cregis-cascader__dropdown-item", { "is-disabled": B.disabled }])
|
|
2275
2335
|
}, [
|
|
2276
|
-
|
|
2277
|
-
|
|
2336
|
+
N(B) ? (y(), O("div", Ua, [
|
|
2337
|
+
X(pt, {
|
|
2278
2338
|
trigger: "hover",
|
|
2279
2339
|
placement: "right-start",
|
|
2280
2340
|
offset: rt,
|
|
2281
2341
|
"popover-options": ye,
|
|
2282
2342
|
"popper-width": ue.value,
|
|
2283
2343
|
padding: 4,
|
|
2284
|
-
disabled: !!
|
|
2344
|
+
disabled: !!B.disabled || !!e.disabled
|
|
2285
2345
|
}, {
|
|
2286
2346
|
reference: Z(() => [
|
|
2287
|
-
|
|
2288
|
-
class:
|
|
2289
|
-
"is-disabled":
|
|
2290
|
-
"is-parent-active": de(
|
|
2347
|
+
D("div", {
|
|
2348
|
+
class: L(["cregis-cascader__suboption-trigger", {
|
|
2349
|
+
"is-disabled": B.disabled,
|
|
2350
|
+
"is-parent-active": de(B)
|
|
2291
2351
|
}])
|
|
2292
2352
|
}, [
|
|
2293
|
-
|
|
2294
|
-
modelValue:
|
|
2295
|
-
selectedLabel:
|
|
2296
|
-
level:
|
|
2297
|
-
primaryOption:
|
|
2298
|
-
subOption:
|
|
2299
|
-
option:
|
|
2300
|
-
index:
|
|
2301
|
-
disabled: !!
|
|
2302
|
-
selected:
|
|
2303
|
-
isParentOfSelected: de(
|
|
2353
|
+
Y(v.$slots, "option", {
|
|
2354
|
+
modelValue: f.value,
|
|
2355
|
+
selectedLabel: g.value,
|
|
2356
|
+
level: P.value,
|
|
2357
|
+
primaryOption: F.value,
|
|
2358
|
+
subOption: H.value,
|
|
2359
|
+
option: B,
|
|
2360
|
+
index: ne,
|
|
2361
|
+
disabled: !!B.disabled,
|
|
2362
|
+
selected: _(B.value),
|
|
2363
|
+
isParentOfSelected: de(B)
|
|
2304
2364
|
}, () => [
|
|
2305
|
-
|
|
2365
|
+
D("p", null, j(B.label), 1)
|
|
2306
2366
|
]),
|
|
2307
|
-
|
|
2308
|
-
e.showSubOptionAmount ? (
|
|
2309
|
-
|
|
2367
|
+
D("div", Ya, [
|
|
2368
|
+
e.showSubOptionAmount ? (y(), O("div", Xa, j(B.children.length), 1)) : q("", !0),
|
|
2369
|
+
X(ae(br), {
|
|
2310
2370
|
size: "14px",
|
|
2311
2371
|
color: "currentColor"
|
|
2312
2372
|
})
|
|
@@ -2314,58 +2374,58 @@ const Bn = (e, t) => {
|
|
|
2314
2374
|
], 2)
|
|
2315
2375
|
]),
|
|
2316
2376
|
default: Z(() => [
|
|
2317
|
-
|
|
2318
|
-
(
|
|
2377
|
+
D("div", Ka, [
|
|
2378
|
+
(y(!0), O(lt, null, ct(B.children, (Q, nt) => Le((y(), O("div", {
|
|
2319
2379
|
key: Q.value,
|
|
2320
|
-
class:
|
|
2321
|
-
"is-active":
|
|
2380
|
+
class: L(["cregis-cascader__suboption-row", {
|
|
2381
|
+
"is-active": _(Q.value),
|
|
2322
2382
|
"is-disabled": Q.disabled
|
|
2323
2383
|
}]),
|
|
2324
2384
|
role: "menuitem",
|
|
2325
|
-
onClick: ($t) => ce(
|
|
2385
|
+
onClick: ($t) => ce(B, Q)
|
|
2326
2386
|
}, [
|
|
2327
|
-
|
|
2328
|
-
modelValue:
|
|
2329
|
-
selectedLabel:
|
|
2330
|
-
level:
|
|
2331
|
-
primaryOption:
|
|
2332
|
-
subOption:
|
|
2387
|
+
Y(v.$slots, "subOption", {
|
|
2388
|
+
modelValue: f.value,
|
|
2389
|
+
selectedLabel: g.value,
|
|
2390
|
+
level: P.value,
|
|
2391
|
+
primaryOption: F.value,
|
|
2392
|
+
subOption: H.value,
|
|
2333
2393
|
option: Q,
|
|
2334
|
-
index:
|
|
2335
|
-
parent:
|
|
2336
|
-
parentIndex:
|
|
2337
|
-
selected:
|
|
2394
|
+
index: nt,
|
|
2395
|
+
parent: B,
|
|
2396
|
+
parentIndex: ne,
|
|
2397
|
+
selected: _(Q.value),
|
|
2338
2398
|
disabled: !!Q.disabled
|
|
2339
2399
|
}, () => [
|
|
2340
|
-
$e(
|
|
2400
|
+
$e(j(Q.label), 1)
|
|
2341
2401
|
])
|
|
2342
|
-
], 10,
|
|
2343
|
-
[mt,
|
|
2402
|
+
], 10, Qa)), [
|
|
2403
|
+
[mt, T(B, Q)]
|
|
2344
2404
|
])), 128))
|
|
2345
2405
|
])
|
|
2346
2406
|
]),
|
|
2347
2407
|
_: 2
|
|
2348
2408
|
}, 1032, ["popper-width", "disabled"])
|
|
2349
|
-
])) : (
|
|
2409
|
+
])) : (y(), O("div", {
|
|
2350
2410
|
key: 1,
|
|
2351
2411
|
class: "cregis-cascader__leaf-only",
|
|
2352
|
-
onClick: (Q) =>
|
|
2412
|
+
onClick: (Q) => b(B)
|
|
2353
2413
|
}, [
|
|
2354
|
-
|
|
2355
|
-
modelValue:
|
|
2356
|
-
selectedLabel:
|
|
2357
|
-
level:
|
|
2358
|
-
primaryOption:
|
|
2359
|
-
subOption:
|
|
2360
|
-
option:
|
|
2361
|
-
index:
|
|
2362
|
-
disabled: !!
|
|
2363
|
-
selected:
|
|
2414
|
+
Y(v.$slots, "option", {
|
|
2415
|
+
modelValue: f.value,
|
|
2416
|
+
selectedLabel: g.value,
|
|
2417
|
+
level: P.value,
|
|
2418
|
+
primaryOption: F.value,
|
|
2419
|
+
subOption: H.value,
|
|
2420
|
+
option: B,
|
|
2421
|
+
index: ne,
|
|
2422
|
+
disabled: !!B.disabled,
|
|
2423
|
+
selected: _(B.value),
|
|
2364
2424
|
isParentOfSelected: !1
|
|
2365
2425
|
}, () => [
|
|
2366
|
-
|
|
2426
|
+
D("p", null, j(B.label), 1)
|
|
2367
2427
|
])
|
|
2368
|
-
], 8,
|
|
2428
|
+
], 8, Ga))
|
|
2369
2429
|
], 2))), 128))
|
|
2370
2430
|
])
|
|
2371
2431
|
], 38)
|
|
@@ -2389,7 +2449,7 @@ export {
|
|
|
2389
2449
|
ti as Radio,
|
|
2390
2450
|
li as Select,
|
|
2391
2451
|
Gt as TABS_KEY,
|
|
2392
|
-
|
|
2393
|
-
|
|
2452
|
+
ai as TabPane,
|
|
2453
|
+
ni as Tabs,
|
|
2394
2454
|
cr as selectInjectKey
|
|
2395
2455
|
};
|