@bobbykim/mcl-forms 0.11.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +338 -154
- package/dist/mcl-forms.js +1789 -1540
- package/dist/mcl-forms.umd.cjs +3 -3
- package/package.json +1 -1
package/dist/mcl-forms.js
CHANGED
|
@@ -1,270 +1,483 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { generateClass as
|
|
4
|
-
import { useResizeObserver as
|
|
5
|
-
const
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.switch[data-v-784930f6]{width:var(--switch-width);height:var(--switch-height)}.slider[data-v-784930f6]:before{content:"";height:var(--slider-size);width:var(--slider-size);left:var(--gutter-size);bottom:var(--gutter-size)}input:checked+.slider[data-v-784930f6]:before{transform:translate(var(--slider-size))}.options-enter-active[data-v-2695c901],.options-leave-active[data-v-2695c901]{opacity:1;transition:opacity .3s linear,transform .3s linear}.options-enter-from[data-v-2695c901],.options-leave-to[data-v-2695c901]{opacity:0;transform:translateY(-10px)}.options-leave-active[data-v-2695c901]{pointer-events:none}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
import { defineComponent as de, openBlock as O, createElementBlock as D, renderSlot as ie, createElementVNode as H, toDisplayString as Ne, createCommentVNode as I, inject as qn, computed as S, toValue as ge, provide as jn, useId as Gn, useSlots as Yn, unref as d, normalizeClass as K, createTextVNode as Fr, createBlock as De, withCtx as Pe, useModel as We, ref as te, createVNode as St, mergeModels as pe, withDirectives as ze, vModelRadio as Xn, normalizeStyle as ar, vModelCheckbox as gn, vModelDynamic as Kn, h as Zn, shallowRef as Jn, watch as _e, getCurrentScope as Qn, onScopeDispose as eo, shallowReadonly as Ze, vModelText as pn, Transition as to, Fragment as ro, renderList as no } from "vue";
|
|
3
|
+
import { generateClass as P } from "@bobbykim/manguito-theme";
|
|
4
|
+
import { useResizeObserver as oo } from "@vueuse/core";
|
|
5
|
+
const io = ["id"], ao = { class: "text-xs text-danger" }, rt = /* @__PURE__ */ de({
|
|
6
|
+
__name: "FieldFeedback",
|
|
7
|
+
props: {
|
|
8
|
+
id: {},
|
|
9
|
+
invalid: { type: Boolean, default: !1 },
|
|
10
|
+
text: { default: "" }
|
|
11
|
+
},
|
|
12
|
+
setup(e) {
|
|
13
|
+
return (t, r) => e.invalid ? (O(), D("div", {
|
|
14
|
+
key: 0,
|
|
15
|
+
id: e.id,
|
|
16
|
+
role: "alert",
|
|
17
|
+
class: "ml-3xs"
|
|
18
|
+
}, [
|
|
19
|
+
ie(t.$slots, "default", {}, () => [
|
|
20
|
+
H("span", ao, Ne(e.text), 1)
|
|
21
|
+
])
|
|
22
|
+
], 8, io)) : I("", !0);
|
|
23
|
+
}
|
|
24
|
+
}), mn = /* @__PURE__ */ Symbol("mcl-field");
|
|
25
|
+
let lo = 0;
|
|
26
|
+
const Rt = (e) => e !== void 0 && e !== "" ? e : void 0, bn = (e) => Rt(e) ?? Rt(Gn()) ?? `mcl-field-${++lo}`, hn = (e, t, r) => S(() => {
|
|
27
|
+
const n = [];
|
|
28
|
+
return e && n.push(e), r.value && t !== void 0 && n.push(t), n.length > 0 ? n.join(" ") : void 0;
|
|
29
|
+
}), so = (e) => {
|
|
30
|
+
const t = bn(e.fieldId), r = S(() => ge(e.invalid) ?? !1), n = `${t}-error`, i = e.hasHelpText ? `${t}-description` : void 0, a = {
|
|
31
|
+
id: t,
|
|
32
|
+
// Defaulting name to the field id is what lets a radio group work without
|
|
33
|
+
// the consumer having to invent one.
|
|
34
|
+
name: S(() => ge(e.name) ?? t),
|
|
35
|
+
errorId: n,
|
|
36
|
+
descriptionId: i,
|
|
37
|
+
invalid: r,
|
|
38
|
+
required: S(() => ge(e.required) ?? !1),
|
|
39
|
+
disabled: S(() => ge(e.disabled) ?? !1),
|
|
40
|
+
describedBy: hn(i, n, r),
|
|
41
|
+
feedbackOwnedByGroup: e.ownsFeedback,
|
|
42
|
+
isGroupLabel: e.isGroupLabel
|
|
43
|
+
};
|
|
44
|
+
return jn(mn, a), a;
|
|
45
|
+
}, qe = (e, t) => {
|
|
46
|
+
const r = qn(mn, null), n = t?.rendersOwnFeedback ?? !0, i = bn(void 0), a = Rt(e.id), l = r !== null && !r.isGroupLabel ? Rt(r.id) : void 0, s = a ?? l ?? i, u = r?.feedbackOwnedByGroup ?? !1, c = u ? r.errorId : `${s}-error`, f = u || n, m = r?.descriptionId, g = S(
|
|
47
|
+
() => e.invalid ?? r?.invalid.value ?? !1
|
|
48
|
+
);
|
|
49
|
+
return {
|
|
50
|
+
id: s,
|
|
51
|
+
// No id fallback here on purpose: it would apply to all eight controls,
|
|
52
|
+
// making text/textarea/select/file emit a generated `name` into native
|
|
53
|
+
// form submissions where they previously emitted none, with no way to opt
|
|
54
|
+
// out. Grouped controls still inherit a usable name because the provider
|
|
55
|
+
// defaults its own `name` to the field id; a standalone radio supplies its
|
|
56
|
+
// own fallback in MclInputRadio, where it is actually needed.
|
|
57
|
+
name: S(() => e.name ?? ge(r?.name)),
|
|
58
|
+
errorId: c,
|
|
59
|
+
descriptionId: m,
|
|
60
|
+
invalid: g,
|
|
61
|
+
required: S(
|
|
62
|
+
() => e.required ?? r?.required.value ?? !1
|
|
63
|
+
),
|
|
64
|
+
disabled: S(
|
|
65
|
+
() => e.disabled ?? r?.disabled.value ?? !1
|
|
66
|
+
),
|
|
67
|
+
describedBy: hn(
|
|
68
|
+
m,
|
|
69
|
+
f ? c : void 0,
|
|
70
|
+
g
|
|
71
|
+
),
|
|
72
|
+
feedbackOwnedByGroup: u,
|
|
73
|
+
// Reported truthfully, not hardcoded: this value is inert for
|
|
74
|
+
// provide/inject (a leaf never re-provides it), but the control's own
|
|
75
|
+
// template reads its own returned context, and a control inside a
|
|
76
|
+
// fieldset needs to know it — e.g. MclInputRadio renders differently as
|
|
77
|
+
// part of a set than alone. `false` here would be a lie it could act on.
|
|
78
|
+
isGroupLabel: r?.isGroupLabel ?? !1
|
|
79
|
+
};
|
|
80
|
+
}, co = {
|
|
81
|
+
key: 0,
|
|
82
|
+
class: "m-0 min-w-0 border-0 p-0"
|
|
83
|
+
}, uo = {
|
|
84
|
+
key: 0,
|
|
85
|
+
class: "inline-block"
|
|
86
|
+
}, fo = ["id"], go = { key: 1 }, po = ["for"], mo = ["id"], Bl = /* @__PURE__ */ de({
|
|
6
87
|
__name: "MclFormGroup",
|
|
7
88
|
props: {
|
|
8
|
-
|
|
89
|
+
fieldId: {},
|
|
90
|
+
groupLabel: { type: Boolean, default: !1 },
|
|
91
|
+
label: {},
|
|
92
|
+
helpText: {},
|
|
93
|
+
invalidFeedback: {},
|
|
94
|
+
invalid: { type: Boolean, default: void 0 },
|
|
95
|
+
required: { type: Boolean, default: void 0 },
|
|
96
|
+
disabled: { type: Boolean, default: void 0 },
|
|
9
97
|
textColor: { default: "dark-3" },
|
|
10
98
|
textSize: { default: "md" },
|
|
11
|
-
textBold: { type: Boolean, default: !1 }
|
|
12
|
-
label: {}
|
|
99
|
+
textBold: { type: Boolean, default: !1 }
|
|
13
100
|
},
|
|
14
101
|
setup(e) {
|
|
15
|
-
const t = e
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
102
|
+
const t = e, r = Yn(), n = r["invalid-feedback"] !== void 0, i = t.helpText !== void 0 || r.help !== void 0, a = t.invalidFeedback !== void 0 || n, l = t.groupLabel, s = so({
|
|
103
|
+
fieldId: t.fieldId,
|
|
104
|
+
invalid: () => t.invalid,
|
|
105
|
+
required: () => t.required,
|
|
106
|
+
disabled: () => t.disabled,
|
|
107
|
+
hasHelpText: i,
|
|
108
|
+
ownsFeedback: a,
|
|
109
|
+
isGroupLabel: l
|
|
110
|
+
}), u = S(() => {
|
|
111
|
+
const c = [
|
|
112
|
+
P.textColorVariant({ color: t.textColor }),
|
|
113
|
+
P.bodyTextVariant({ size: t.textSize })
|
|
21
114
|
];
|
|
22
|
-
return
|
|
115
|
+
return t.textBold && c.push("font-bold"), c.join(" ");
|
|
23
116
|
});
|
|
24
|
-
return (
|
|
25
|
-
|
|
26
|
-
|
|
117
|
+
return (c, f) => d(l) ? (O(), D("fieldset", co, [
|
|
118
|
+
e.label || c.$slots.label ? (O(), D("legend", uo, [
|
|
119
|
+
ie(c.$slots, "label", {}, () => [
|
|
120
|
+
H("span", {
|
|
121
|
+
class: K(["mb-2xs block", u.value])
|
|
122
|
+
}, Ne(e.label), 3)
|
|
123
|
+
])
|
|
124
|
+
])) : I("", !0),
|
|
125
|
+
d(i) ? (O(), D("p", {
|
|
126
|
+
key: 1,
|
|
127
|
+
id: d(s).descriptionId,
|
|
128
|
+
class: "mb-2xs text-xs"
|
|
129
|
+
}, [
|
|
130
|
+
ie(c.$slots, "help", {}, () => [
|
|
131
|
+
Fr(Ne(e.helpText), 1)
|
|
132
|
+
])
|
|
133
|
+
], 8, fo)) : I("", !0),
|
|
134
|
+
ie(c.$slots, "default"),
|
|
135
|
+
d(a) ? (O(), De(rt, {
|
|
136
|
+
key: 2,
|
|
137
|
+
id: d(s).errorId,
|
|
138
|
+
invalid: d(s).invalid.value,
|
|
139
|
+
text: e.invalidFeedback
|
|
140
|
+
}, {
|
|
141
|
+
default: Pe(() => [
|
|
142
|
+
n ? ie(c.$slots, "invalid-feedback", { key: 0 }) : I("", !0)
|
|
143
|
+
]),
|
|
144
|
+
_: 3
|
|
145
|
+
}, 8, ["id", "invalid", "text"])) : I("", !0)
|
|
146
|
+
])) : (O(), D("div", go, [
|
|
147
|
+
e.label || c.$slots.label ? (O(), D("label", {
|
|
148
|
+
key: 0,
|
|
149
|
+
for: d(s).id,
|
|
27
150
|
class: "inline-block"
|
|
28
151
|
}, [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class:
|
|
32
|
-
},
|
|
152
|
+
ie(c.$slots, "label", {}, () => [
|
|
153
|
+
H("span", {
|
|
154
|
+
class: K(["mb-2xs block", u.value])
|
|
155
|
+
}, Ne(e.label), 3)
|
|
33
156
|
])
|
|
34
|
-
], 8,
|
|
35
|
-
|
|
157
|
+
], 8, po)) : I("", !0),
|
|
158
|
+
d(i) ? (O(), D("p", {
|
|
159
|
+
key: 1,
|
|
160
|
+
id: d(s).descriptionId,
|
|
161
|
+
class: "mb-2xs text-xs"
|
|
162
|
+
}, [
|
|
163
|
+
ie(c.$slots, "help", {}, () => [
|
|
164
|
+
Fr(Ne(e.helpText), 1)
|
|
165
|
+
])
|
|
166
|
+
], 8, mo)) : I("", !0),
|
|
167
|
+
ie(c.$slots, "default"),
|
|
168
|
+
d(a) ? (O(), De(rt, {
|
|
169
|
+
key: 2,
|
|
170
|
+
id: d(s).errorId,
|
|
171
|
+
invalid: d(s).invalid.value,
|
|
172
|
+
text: e.invalidFeedback
|
|
173
|
+
}, {
|
|
174
|
+
default: Pe(() => [
|
|
175
|
+
n ? ie(c.$slots, "invalid-feedback", { key: 0 }) : I("", !0)
|
|
176
|
+
]),
|
|
177
|
+
_: 3
|
|
178
|
+
}, 8, ["id", "invalid", "text"])) : I("", !0)
|
|
36
179
|
]));
|
|
37
180
|
}
|
|
38
|
-
}),
|
|
181
|
+
}), vn = /* @__PURE__ */ de({
|
|
182
|
+
__name: "XMark",
|
|
183
|
+
props: {
|
|
184
|
+
color: { default: "dark-4" },
|
|
185
|
+
className: { default: "" }
|
|
186
|
+
},
|
|
187
|
+
setup(e) {
|
|
188
|
+
const t = e, r = S(
|
|
189
|
+
() => [P.svgFillColorVariant({ color: t.color }), t.className].filter(Boolean).join(" ")
|
|
190
|
+
);
|
|
191
|
+
return (n, i) => (O(), D("svg", {
|
|
192
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
193
|
+
viewBox: "0 0 384 512",
|
|
194
|
+
"aria-hidden": "true",
|
|
195
|
+
focusable: "false",
|
|
196
|
+
class: K(r.value)
|
|
197
|
+
}, [...i[0] || (i[0] = [
|
|
198
|
+
H("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
|
|
199
|
+
])], 2));
|
|
200
|
+
}
|
|
201
|
+
}), Dt = (e) => S(() => {
|
|
202
|
+
const { bgColor: t, textColor: r, borderColor: n, showBorder: i, showShadow: a, rounded: l } = e, s = e.showHighlight ?? !1, u = [
|
|
203
|
+
P.bgColorVariant({ color: t }),
|
|
204
|
+
P.textColorVariant({ color: r })
|
|
205
|
+
];
|
|
206
|
+
return i && u.push(
|
|
207
|
+
"border-2",
|
|
208
|
+
P.borderColorVariant({ color: n })
|
|
209
|
+
), s || u.push(
|
|
210
|
+
"focus-visible:ring-4 ring-offset-2 transition-all duration-300 ease-linear",
|
|
211
|
+
P.focusVisibleRingColorVariant({ color: n })
|
|
212
|
+
), a && u.push("shadow-md"), l && u.push("rounded-md"), u.join(" ");
|
|
213
|
+
}), bo = { class: "my-3xs mr-xs ml-3xs shrink-0" }, ho = ["aria-controls", "disabled"], vo = ["id", "name", "accept", "required", "disabled", "aria-invalid", "aria-describedby"], xo = {
|
|
214
|
+
key: 0,
|
|
215
|
+
class: "my-3xs mr-3xs self-stretch"
|
|
216
|
+
}, yo = ["disabled"], Ml = /* @__PURE__ */ de({
|
|
39
217
|
__name: "MclInputFile",
|
|
40
|
-
props: /* @__PURE__ */
|
|
218
|
+
props: /* @__PURE__ */ pe({
|
|
41
219
|
id: {},
|
|
220
|
+
name: {},
|
|
221
|
+
accept: { default: "image/jpg,image/jpeg,image/png" },
|
|
222
|
+
buttonText: { default: "Browse File" },
|
|
223
|
+
buttonTextColor: { default: "dark-3" },
|
|
224
|
+
buttonColor: { default: "light-4" },
|
|
42
225
|
showBorder: { type: Boolean, default: !1 },
|
|
43
226
|
borderColor: { default: "light-4" },
|
|
44
227
|
rounded: { type: Boolean, default: !1 },
|
|
45
228
|
bgColor: { default: "light-1" },
|
|
46
|
-
buttonText: { default: "Browse File" },
|
|
47
|
-
buttonTextColor: { default: "dark-3" },
|
|
48
|
-
buttonColor: { default: "light-4" },
|
|
49
|
-
showShadow: { type: Boolean, default: !0 },
|
|
50
229
|
textColor: { default: "black" },
|
|
230
|
+
showShadow: { type: Boolean, default: !0 },
|
|
51
231
|
showClear: { type: Boolean, default: !1 },
|
|
52
|
-
|
|
53
|
-
|
|
232
|
+
invalidFeedback: {},
|
|
233
|
+
invalid: { type: Boolean, default: void 0 },
|
|
234
|
+
required: { type: Boolean, default: void 0 },
|
|
235
|
+
disabled: { type: Boolean, default: void 0 }
|
|
54
236
|
}, {
|
|
55
237
|
modelValue: {},
|
|
56
238
|
modelModifiers: {}
|
|
57
239
|
}),
|
|
58
240
|
emits: ["update:modelValue"],
|
|
59
241
|
setup(e) {
|
|
60
|
-
const t = e, r =
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
const
|
|
64
|
-
r.value =
|
|
65
|
-
},
|
|
66
|
-
r.value = null,
|
|
67
|
-
},
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
return g && v.push("rounded-md"), u && (v.push("border-2"), v.push(R.borderColorVariant({ color: b }))), w && v.push("shadow-md"), v.join(" ");
|
|
72
|
-
}), c = O(() => {
|
|
73
|
-
const { textColor: g } = t;
|
|
74
|
-
return [
|
|
75
|
-
R.textColorVariant({ color: g })
|
|
76
|
-
].join(" ");
|
|
77
|
-
}), f = O(() => {
|
|
78
|
-
const { buttonColor: g, buttonTextColor: u, rounded: b } = t, w = [
|
|
79
|
-
R.bgColorVariant({ color: g }),
|
|
80
|
-
R.textColorVariant({ color: u })
|
|
242
|
+
const t = e, r = We(e, "modelValue"), n = qe(t), i = Dt(t), a = te(), l = te(0), s = () => {
|
|
243
|
+
a.value?.click();
|
|
244
|
+
}, u = (g) => {
|
|
245
|
+
const b = g.target.files;
|
|
246
|
+
r.value = b && b.length > 0 ? b[0] : null;
|
|
247
|
+
}, c = () => {
|
|
248
|
+
r.value = null, l.value++;
|
|
249
|
+
}, f = S(() => {
|
|
250
|
+
const g = [
|
|
251
|
+
P.bgColorVariant({ color: t.buttonColor }),
|
|
252
|
+
P.textColorVariant({ color: t.buttonTextColor })
|
|
81
253
|
];
|
|
82
|
-
return
|
|
83
|
-
}),
|
|
84
|
-
const
|
|
85
|
-
|
|
254
|
+
return t.rounded && g.push("rounded-l-md"), g.join(" ");
|
|
255
|
+
}), m = S(() => {
|
|
256
|
+
const g = [
|
|
257
|
+
P.bgColorVariant({ color: t.buttonColor })
|
|
86
258
|
];
|
|
87
|
-
return
|
|
259
|
+
return t.rounded && g.push("rounded-r-md"), g.join(" ");
|
|
88
260
|
});
|
|
89
|
-
return (g,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
M("div", Wn, [
|
|
93
|
-
M("button", {
|
|
94
|
-
type: "button",
|
|
95
|
-
"aria-controls": e.id,
|
|
96
|
-
class: H(["max-w-full px-xs py-2xs transition-all duration-200 ease-linear hover:bg-opacity-70", f.value]),
|
|
97
|
-
onClick: a
|
|
98
|
-
}, ct(e.buttonText), 11, jn)
|
|
99
|
-
]),
|
|
100
|
-
($(), q("input", {
|
|
101
|
-
type: "file",
|
|
102
|
-
id: e.id,
|
|
103
|
-
ref_key: "inputRef",
|
|
104
|
-
ref: n,
|
|
105
|
-
class: H(["w-full bg-transparent file:hidden", [c.value]]),
|
|
106
|
-
required: e.required,
|
|
107
|
-
accept: e.accept,
|
|
108
|
-
key: i.value,
|
|
109
|
-
onChange: l
|
|
110
|
-
}, null, 42, Gn)),
|
|
111
|
-
e.showClear ? ($(), q("div", {
|
|
112
|
-
key: 0,
|
|
113
|
-
class: "my-3xs mr-3xs self-stretch",
|
|
114
|
-
onClick: d
|
|
261
|
+
return (g, b) => (O(), D("div", null, [
|
|
262
|
+
H("div", {
|
|
263
|
+
class: K(["flex items-center overflow-hidden", d(i)])
|
|
115
264
|
}, [
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
265
|
+
H("div", bo, [
|
|
266
|
+
H("button", {
|
|
267
|
+
type: "button",
|
|
268
|
+
"aria-controls": d(n).id,
|
|
269
|
+
disabled: d(n).disabled.value,
|
|
270
|
+
class: K(["max-w-full px-xs py-2xs transition-all duration-200 ease-linear hover:bg-opacity-70 disabled:cursor-not-allowed disabled:opacity-50", f.value]),
|
|
271
|
+
onClick: s
|
|
272
|
+
}, Ne(e.buttonText), 11, ho)
|
|
273
|
+
]),
|
|
274
|
+
(O(), D("input", {
|
|
275
|
+
id: d(n).id,
|
|
276
|
+
ref_key: "inputRef",
|
|
277
|
+
ref: a,
|
|
278
|
+
key: l.value,
|
|
279
|
+
type: "file",
|
|
280
|
+
class: "w-full bg-transparent file:hidden",
|
|
281
|
+
name: d(n).name.value,
|
|
282
|
+
accept: e.accept,
|
|
283
|
+
required: d(n).required.value,
|
|
284
|
+
disabled: d(n).disabled.value,
|
|
285
|
+
"aria-invalid": d(n).invalid.value || void 0,
|
|
286
|
+
"aria-describedby": d(n).describedBy.value,
|
|
287
|
+
onChange: u
|
|
288
|
+
}, null, 40, vo)),
|
|
289
|
+
e.showClear ? (O(), D("div", xo, [
|
|
290
|
+
H("button", {
|
|
291
|
+
type: "button",
|
|
292
|
+
"aria-label": "Clear selected file",
|
|
293
|
+
disabled: d(n).disabled.value,
|
|
294
|
+
class: K(["flex h-full items-center px-xs py-2xs transition-all duration-200 ease-linear hover:bg-opacity-70 disabled:cursor-not-allowed disabled:opacity-50", m.value]),
|
|
295
|
+
onClick: c
|
|
296
|
+
}, [
|
|
297
|
+
St(vn, {
|
|
298
|
+
color: e.buttonTextColor,
|
|
299
|
+
"class-name": "h-xs"
|
|
300
|
+
}, null, 8, ["color"])
|
|
301
|
+
], 10, yo)
|
|
302
|
+
])) : I("", !0)
|
|
303
|
+
], 2),
|
|
304
|
+
d(n).feedbackOwnedByGroup ? I("", !0) : (O(), De(rt, {
|
|
305
|
+
key: 0,
|
|
306
|
+
id: d(n).errorId,
|
|
307
|
+
invalid: d(n).invalid.value,
|
|
308
|
+
text: e.invalidFeedback
|
|
309
|
+
}, {
|
|
310
|
+
default: Pe(() => [
|
|
311
|
+
g.$slots["invalid-feedback"] ? ie(g.$slots, "invalid-feedback", { key: 0 }) : I("", !0)
|
|
312
|
+
]),
|
|
313
|
+
_: 3
|
|
314
|
+
}, 8, ["id", "invalid", "text"]))
|
|
315
|
+
]));
|
|
316
|
+
}
|
|
317
|
+
}), ko = {
|
|
318
|
+
sm: "h-xs w-xs before:h-2xs before:w-2xs",
|
|
319
|
+
md: "h-sm w-sm before:h-[12px] before:w-[12px]",
|
|
320
|
+
lg: "h-md w-md before:h-xs before:w-xs"
|
|
321
|
+
}, wo = {
|
|
322
|
+
sm: {
|
|
323
|
+
"--switch-width": "30px",
|
|
324
|
+
"--switch-height": "17px",
|
|
325
|
+
"--slider-size": "13px",
|
|
326
|
+
"--gutter-size": "2px"
|
|
327
|
+
},
|
|
328
|
+
md: {
|
|
329
|
+
"--switch-width": "45px",
|
|
330
|
+
"--switch-height": "25.5px",
|
|
331
|
+
"--slider-size": "19.5px",
|
|
332
|
+
"--gutter-size": "3px"
|
|
333
|
+
},
|
|
334
|
+
lg: {
|
|
335
|
+
"--switch-width": "60px",
|
|
336
|
+
"--switch-height": "34px",
|
|
337
|
+
"--slider-size": "26px",
|
|
338
|
+
"--gutter-size": "4px"
|
|
339
|
+
}
|
|
340
|
+
}, Co = "rounded-md before:rounded-[3px]", ur = (e) => {
|
|
341
|
+
const t = S(() => {
|
|
342
|
+
const { bgColor: i, borderColor: a, indicatorColor: l, checkedBgColor: s, showShadow: u } = e, c = e.rounded ?? !1, f = [
|
|
343
|
+
P.bgColorVariant({ color: i }),
|
|
344
|
+
P.borderColorVariant({ color: a }),
|
|
345
|
+
P.beforeBgColorVariant({ color: l }),
|
|
346
|
+
P.peerCheckedBgColorVariant({ color: s }),
|
|
347
|
+
// The native input is visually transparent, so the focus indicator has to
|
|
348
|
+
// be projected onto this span. Without it there is none at all.
|
|
349
|
+
"peer-focus-visible:ring-2 ring-offset-2",
|
|
350
|
+
P.peerFocusVisibleRingColorVariant({ color: a })
|
|
351
|
+
];
|
|
352
|
+
return u && f.push("drop-shadow-md"), c && f.push(e.roundedClass ?? Co), f.join(" ");
|
|
353
|
+
}), r = S(() => ko[e.size]), n = S(() => ({
|
|
354
|
+
...wo[e.size]
|
|
355
|
+
}));
|
|
356
|
+
return { boxClass: t, sizeClass: r, switchVars: n };
|
|
357
|
+
}, To = { class: "relative inline-flex" }, Ao = ["id", "name", "value", "required", "disabled", "aria-invalid", "aria-describedby"], Fl = /* @__PURE__ */ de({
|
|
133
358
|
__name: "MclInputRadio",
|
|
134
|
-
props: {
|
|
359
|
+
props: /* @__PURE__ */ pe({
|
|
135
360
|
id: {},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
361
|
+
name: {},
|
|
362
|
+
size: { default: "md" },
|
|
363
|
+
bgColor: { default: "light-1" },
|
|
364
|
+
checkedBgColor: { default: "success" },
|
|
365
|
+
indicatorColor: { default: "light-1" },
|
|
366
|
+
borderColor: { default: "dark-1" },
|
|
139
367
|
showShadow: { type: Boolean, default: !1 },
|
|
140
368
|
value: { default: "" },
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
369
|
+
invalid: { type: Boolean, default: void 0 },
|
|
370
|
+
required: { type: Boolean, default: void 0 },
|
|
371
|
+
disabled: { type: Boolean, default: void 0 }
|
|
372
|
+
}, {
|
|
373
|
+
modelValue: { default: null },
|
|
374
|
+
modelModifiers: {}
|
|
375
|
+
}),
|
|
376
|
+
emits: /* @__PURE__ */ pe(["change"], ["update:modelValue"]),
|
|
144
377
|
setup(e, { emit: t }) {
|
|
145
|
-
const r = e, n =
|
|
146
|
-
|
|
147
|
-
}, l = O(() => {
|
|
148
|
-
const { radioSize: f } = r;
|
|
149
|
-
return f === "sm" ? "h-xs w-xs" : f === "lg" ? "h-md w-md" : "h-sm w-sm";
|
|
150
|
-
}), d = O(() => {
|
|
151
|
-
const { radioSize: f } = r;
|
|
152
|
-
return f === "sm" ? "peer-checked:before:h-2xs peer-checked:before:w-2xs" : f === "lg" ? "peer-checked:before:h-xs peer-checked:before:w-xs" : "peer-checked:before:h-[12px] peer-checked:before:w-[12px]";
|
|
153
|
-
}), p = O(() => {
|
|
154
|
-
const { bgColor: f, checkedColor: s, showShadow: g } = r, u = [
|
|
155
|
-
R.bgColorVariant({ color: f }),
|
|
156
|
-
R.beforeBgColorVariant({ color: s })
|
|
157
|
-
];
|
|
158
|
-
return g && u.push("drop-shadow-md"), u.join(" ");
|
|
159
|
-
}), c = (f) => {
|
|
160
|
-
const s = f.target.value;
|
|
161
|
-
i("change", f, s);
|
|
378
|
+
const r = e, n = We(e, "modelValue"), i = t, a = qe(r, { rendersOwnFeedback: !1 }), { boxClass: l, sizeClass: s } = ur(r), u = S(() => a.name.value ?? a.id), c = (f) => {
|
|
379
|
+
i("change", f);
|
|
162
380
|
};
|
|
163
|
-
return (f,
|
|
164
|
-
|
|
165
|
-
id:
|
|
381
|
+
return (f, m) => (O(), D("div", To, [
|
|
382
|
+
ze(H("input", {
|
|
383
|
+
id: d(a).id,
|
|
384
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => n.value = g),
|
|
166
385
|
type: "radio",
|
|
167
|
-
class: "peer appearance-none",
|
|
168
|
-
|
|
169
|
-
ref: n,
|
|
386
|
+
class: "peer absolute inset-0 z-10 h-full w-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed",
|
|
387
|
+
name: u.value,
|
|
170
388
|
value: e.value,
|
|
171
|
-
|
|
389
|
+
required: d(a).required.value,
|
|
390
|
+
disabled: d(a).disabled.value,
|
|
391
|
+
"aria-invalid": d(a).invalid.value || void 0,
|
|
392
|
+
"aria-describedby": d(a).describedBy.value,
|
|
172
393
|
onChange: c
|
|
173
|
-
}, null, 40,
|
|
174
|
-
|
|
394
|
+
}, null, 40, Ao), [
|
|
395
|
+
[Xn, n.value]
|
|
396
|
+
]),
|
|
397
|
+
H("span", {
|
|
175
398
|
"aria-hidden": "true",
|
|
176
|
-
class:
|
|
177
|
-
onClick: a
|
|
399
|
+
class: K(["relative inline-block rounded-full border transition-colors duration-200 ease-linear peer-disabled:opacity-50 before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:rounded-full before:opacity-0 before:transition-opacity before:duration-200 peer-checked:before:opacity-100", [d(l), d(s)]])
|
|
178
400
|
}, null, 2)
|
|
179
401
|
]));
|
|
180
402
|
}
|
|
181
|
-
}),
|
|
403
|
+
}), So = ["id", "name", "required", "disabled", "aria-invalid", "aria-describedby"], Eo = "rounded-full before:rounded-full", Ro = /* @__PURE__ */ de({
|
|
182
404
|
__name: "MclInputSwitch",
|
|
183
|
-
props: /* @__PURE__ */
|
|
405
|
+
props: /* @__PURE__ */ pe({
|
|
184
406
|
id: {},
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
407
|
+
name: {},
|
|
408
|
+
size: { default: "md" },
|
|
409
|
+
bgColor: { default: "dark-1" },
|
|
410
|
+
checkedBgColor: { default: "success" },
|
|
411
|
+
indicatorColor: { default: "light-1" },
|
|
412
|
+
borderColor: { default: "dark-1" },
|
|
413
|
+
showShadow: { type: Boolean, default: !1 },
|
|
414
|
+
rounded: { type: Boolean, default: !0 },
|
|
415
|
+
invalid: { type: Boolean, default: void 0 },
|
|
416
|
+
required: { type: Boolean, default: void 0 },
|
|
417
|
+
disabled: { type: Boolean, default: void 0 }
|
|
190
418
|
}, {
|
|
191
419
|
modelValue: { type: Boolean },
|
|
192
420
|
modelModifiers: {}
|
|
193
421
|
}),
|
|
194
|
-
emits: ["update:modelValue"],
|
|
195
|
-
setup(e) {
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
"
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
"--switch-height": "34px",
|
|
224
|
-
"--slider-size": "26px",
|
|
225
|
-
"--gutter-size": "4px"
|
|
226
|
-
} : {
|
|
227
|
-
"--switch-width": "45px",
|
|
228
|
-
"--switch-height": "25.5px",
|
|
229
|
-
"--slider-size": "19.5px",
|
|
230
|
-
"--gutter-size": "3px"
|
|
231
|
-
}), d = O(() => {
|
|
232
|
-
const { sliderColor: p, onColor: c, offColor: f, rounded: s } = t, g = [
|
|
233
|
-
R.bgColorVariant({ color: f }),
|
|
234
|
-
R.beforeBgColorVariant({ color: p }),
|
|
235
|
-
i[c]
|
|
236
|
-
];
|
|
237
|
-
return s && g.push("rounded-full before:rounded-full"), g.join(" ");
|
|
238
|
-
});
|
|
239
|
-
return (p, c) => ($(), q("div", {
|
|
422
|
+
emits: /* @__PURE__ */ pe(["change"], ["update:modelValue"]),
|
|
423
|
+
setup(e, { emit: t }) {
|
|
424
|
+
const r = e, n = We(e, "modelValue"), i = t, a = qe(r, { rendersOwnFeedback: !1 }), l = {
|
|
425
|
+
get size() {
|
|
426
|
+
return r.size;
|
|
427
|
+
},
|
|
428
|
+
get bgColor() {
|
|
429
|
+
return r.bgColor;
|
|
430
|
+
},
|
|
431
|
+
get checkedBgColor() {
|
|
432
|
+
return r.checkedBgColor;
|
|
433
|
+
},
|
|
434
|
+
get indicatorColor() {
|
|
435
|
+
return r.indicatorColor;
|
|
436
|
+
},
|
|
437
|
+
get borderColor() {
|
|
438
|
+
return r.borderColor;
|
|
439
|
+
},
|
|
440
|
+
get showShadow() {
|
|
441
|
+
return r.showShadow;
|
|
442
|
+
},
|
|
443
|
+
get rounded() {
|
|
444
|
+
return r.rounded;
|
|
445
|
+
},
|
|
446
|
+
roundedClass: Eo
|
|
447
|
+
}, { boxClass: s, switchVars: u } = ur(l), c = (f) => {
|
|
448
|
+
i("change", f);
|
|
449
|
+
};
|
|
450
|
+
return (f, m) => (O(), D("div", {
|
|
240
451
|
class: "switch relative",
|
|
241
|
-
style:
|
|
242
|
-
onClick: a
|
|
452
|
+
style: ar(d(u))
|
|
243
453
|
}, [
|
|
244
|
-
|
|
245
|
-
id:
|
|
246
|
-
|
|
247
|
-
"onUpdate:modelValue": c[0] || (c[0] = (f) => r.value = f),
|
|
248
|
-
ref_key: "inputRef",
|
|
249
|
-
ref: n,
|
|
454
|
+
ze(H("input", {
|
|
455
|
+
id: d(a).id,
|
|
456
|
+
"onUpdate:modelValue": m[0] || (m[0] = (g) => n.value = g),
|
|
250
457
|
type: "checkbox",
|
|
251
458
|
role: "switch",
|
|
252
|
-
"
|
|
253
|
-
|
|
254
|
-
|
|
459
|
+
class: "peer absolute inset-0 z-10 h-full w-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed",
|
|
460
|
+
name: d(a).name.value,
|
|
461
|
+
required: d(a).required.value,
|
|
462
|
+
disabled: d(a).disabled.value,
|
|
463
|
+
"aria-invalid": d(a).invalid.value || void 0,
|
|
464
|
+
"aria-describedby": d(a).describedBy.value,
|
|
465
|
+
onChange: c
|
|
466
|
+
}, null, 40, So), [
|
|
467
|
+
[gn, n.value]
|
|
255
468
|
]),
|
|
256
|
-
|
|
469
|
+
H("span", {
|
|
257
470
|
"aria-hidden": "true",
|
|
258
|
-
class:
|
|
471
|
+
class: K(["slider absolute inset-0 transition-all duration-300 peer-disabled:opacity-50 before:absolute before:transition-all before:duration-300", d(s)])
|
|
259
472
|
}, null, 2)
|
|
260
473
|
], 4));
|
|
261
474
|
}
|
|
262
|
-
}),
|
|
475
|
+
}), xn = (e, t) => {
|
|
263
476
|
const r = e.__vccOpts || e;
|
|
264
477
|
for (const [n, i] of t)
|
|
265
478
|
r[n] = i;
|
|
266
479
|
return r;
|
|
267
|
-
},
|
|
480
|
+
}, $l = /* @__PURE__ */ xn(Ro, [["__scopeId", "data-v-784930f6"]]), yn = /* @__PURE__ */ de({
|
|
268
481
|
__name: "InputHighlight",
|
|
269
482
|
props: {
|
|
270
483
|
color: { default: "primary" },
|
|
@@ -275,20 +488,24 @@ const Un = ["for"], Qa = /* @__PURE__ */ xe({
|
|
|
275
488
|
const t = e, r = {
|
|
276
489
|
1: "-top-1",
|
|
277
490
|
2.5: "-top-2.5"
|
|
278
|
-
}, n =
|
|
491
|
+
}, n = S(() => {
|
|
279
492
|
const i = [
|
|
280
|
-
|
|
493
|
+
P.beforeBgColorVariant({ color: t.color })
|
|
281
494
|
];
|
|
282
495
|
return t.rounded && i.push("rounded-b-md"), i.push(r[t.offset]), i.join(" ");
|
|
283
496
|
});
|
|
284
|
-
return (i, a) => (
|
|
285
|
-
class:
|
|
497
|
+
return (i, a) => (O(), D("div", {
|
|
498
|
+
class: K(["relative h-3xs overflow-hidden before:absolute before:bottom-0 before:left-0 before:h-full before:w-0 before:transition-[width] before:duration-300 before:ease-linear peer-focus:before:w-full", n.value])
|
|
286
499
|
}, null, 2));
|
|
287
500
|
}
|
|
288
|
-
}),
|
|
501
|
+
}), Oo = ["id", "type", "name", "placeholder", "autocomplete", "minlength", "maxlength", "pattern", "required", "disabled", "aria-invalid", "aria-describedby"], Pl = /* @__PURE__ */ de({
|
|
289
502
|
__name: "MclInputText",
|
|
290
|
-
props: /* @__PURE__ */
|
|
503
|
+
props: /* @__PURE__ */ pe({
|
|
291
504
|
id: {},
|
|
505
|
+
name: {},
|
|
506
|
+
type: { default: "text" },
|
|
507
|
+
placeholder: { default: "" },
|
|
508
|
+
autocomplete: {},
|
|
292
509
|
showBorder: { type: Boolean, default: !1 },
|
|
293
510
|
borderColor: { default: "light-4" },
|
|
294
511
|
rounded: { type: Boolean, default: !1 },
|
|
@@ -296,114 +513,102 @@ const Un = ["for"], Qa = /* @__PURE__ */ xe({
|
|
|
296
513
|
highlightColor: { default: "primary" },
|
|
297
514
|
textColor: { default: "black" },
|
|
298
515
|
bgColor: { default: "light-1" },
|
|
299
|
-
placeholder: { default: "" },
|
|
300
|
-
type: { default: "text" },
|
|
301
516
|
showShadow: { type: Boolean, default: !0 },
|
|
302
|
-
required: { type: Boolean, default: !1 },
|
|
303
|
-
invalid: { type: Boolean, default: !1 },
|
|
304
517
|
invalidFeedback: {},
|
|
305
518
|
minLength: {},
|
|
306
519
|
maxLength: {},
|
|
307
|
-
pattern: {}
|
|
520
|
+
pattern: {},
|
|
521
|
+
invalid: { type: Boolean, default: void 0 },
|
|
522
|
+
required: { type: Boolean, default: void 0 },
|
|
523
|
+
disabled: { type: Boolean, default: void 0 }
|
|
308
524
|
}, {
|
|
309
525
|
modelValue: {},
|
|
310
526
|
modelModifiers: {}
|
|
311
527
|
}),
|
|
312
528
|
emits: ["update:modelValue"],
|
|
313
529
|
setup(e) {
|
|
314
|
-
const t = e, r =
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
showShadow: p,
|
|
321
|
-
rounded: c,
|
|
322
|
-
textColor: f
|
|
323
|
-
} = t, s = [
|
|
324
|
-
R.bgColorVariant({ color: i }),
|
|
325
|
-
R.textColorVariant({ color: f })
|
|
326
|
-
];
|
|
327
|
-
return a && (s.push("border-2"), s.push(R.borderColorVariant({ color: l }))), d || (s.push(
|
|
328
|
-
"focus:ring-4 ring-offset-2 transition-all duration-300 ease-linear"
|
|
329
|
-
), s.push(R.focusRingColorVariant({ color: l }))), p && s.push("shadow-md"), c && s.push("rounded-md"), s.join(" ");
|
|
330
|
-
});
|
|
331
|
-
return (i, a) => ($(), q("div", null, [
|
|
332
|
-
qe(M("input", {
|
|
333
|
-
id: e.id,
|
|
530
|
+
const t = e, r = We(e, "modelValue"), n = qe(t), i = Dt(t);
|
|
531
|
+
return (a, l) => (O(), D("div", null, [
|
|
532
|
+
ze(H("input", {
|
|
533
|
+
id: d(n).id,
|
|
534
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => r.value = s),
|
|
535
|
+
class: K(["peer w-full p-2xs outline-none disabled:cursor-not-allowed disabled:opacity-50", d(i)]),
|
|
334
536
|
type: e.type,
|
|
335
|
-
|
|
336
|
-
"onUpdate:modelValue": a[0] || (a[0] = (l) => r.value = l),
|
|
537
|
+
name: d(n).name.value,
|
|
337
538
|
placeholder: e.placeholder,
|
|
338
|
-
|
|
339
|
-
"aria-invalid": e.invalid || void 0,
|
|
340
|
-
"aria-describedby": e.invalid ? `${e.id}-error` : void 0,
|
|
539
|
+
autocomplete: e.autocomplete,
|
|
341
540
|
minlength: e.minLength,
|
|
342
541
|
maxlength: e.maxLength,
|
|
343
|
-
pattern: e.pattern
|
|
344
|
-
|
|
345
|
-
|
|
542
|
+
pattern: e.pattern,
|
|
543
|
+
required: d(n).required.value,
|
|
544
|
+
disabled: d(n).disabled.value,
|
|
545
|
+
"aria-invalid": d(n).invalid.value || void 0,
|
|
546
|
+
"aria-describedby": d(n).describedBy.value
|
|
547
|
+
}, null, 10, Oo), [
|
|
548
|
+
[Kn, r.value]
|
|
346
549
|
]),
|
|
347
|
-
e.showHighlight ? (
|
|
550
|
+
e.showHighlight ? (O(), De(yn, {
|
|
348
551
|
key: 0,
|
|
349
552
|
color: e.highlightColor,
|
|
350
553
|
rounded: e.rounded
|
|
351
|
-
}, null, 8, ["color", "rounded"])) :
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
554
|
+
}, null, 8, ["color", "rounded"])) : I("", !0),
|
|
555
|
+
d(n).feedbackOwnedByGroup ? I("", !0) : (O(), De(rt, {
|
|
556
|
+
key: 1,
|
|
557
|
+
id: d(n).errorId,
|
|
558
|
+
invalid: d(n).invalid.value,
|
|
559
|
+
text: e.invalidFeedback
|
|
560
|
+
}, {
|
|
561
|
+
default: Pe(() => [
|
|
562
|
+
a.$slots["invalid-feedback"] ? ie(a.$slots, "invalid-feedback", { key: 0 }) : I("", !0)
|
|
563
|
+
]),
|
|
564
|
+
_: 3
|
|
565
|
+
}, 8, ["id", "invalid", "text"]))
|
|
361
566
|
]));
|
|
362
567
|
}
|
|
363
568
|
});
|
|
364
|
-
function
|
|
569
|
+
function kn(e) {
|
|
365
570
|
var t, r, n = "";
|
|
366
571
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
367
572
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
368
573
|
var i = e.length;
|
|
369
|
-
for (t = 0; t < i; t++) e[t] && (r =
|
|
574
|
+
for (t = 0; t < i; t++) e[t] && (r = kn(e[t])) && (n && (n += " "), n += r);
|
|
370
575
|
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
371
576
|
return n;
|
|
372
577
|
}
|
|
373
|
-
function
|
|
374
|
-
for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t =
|
|
578
|
+
function _o() {
|
|
579
|
+
for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = kn(e)) && (n && (n += " "), n += t);
|
|
375
580
|
return n;
|
|
376
581
|
}
|
|
377
|
-
const
|
|
582
|
+
const $r = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Pr = _o, v = (e, t) => (r) => {
|
|
378
583
|
var n;
|
|
379
|
-
if (t?.variants == null) return
|
|
584
|
+
if (t?.variants == null) return Pr(e, r?.class, r?.className);
|
|
380
585
|
const { variants: i, defaultVariants: a } = t, l = Object.keys(i).map((c) => {
|
|
381
|
-
const f = r?.[c],
|
|
586
|
+
const f = r?.[c], m = a?.[c];
|
|
382
587
|
if (f === null) return null;
|
|
383
|
-
const g =
|
|
588
|
+
const g = $r(f) || $r(m);
|
|
384
589
|
return i[c][g];
|
|
385
|
-
}),
|
|
386
|
-
let [
|
|
387
|
-
return g === void 0 || (c[
|
|
388
|
-
}, {}),
|
|
389
|
-
let { class:
|
|
390
|
-
return Object.entries(
|
|
391
|
-
let [
|
|
392
|
-
return Array.isArray(
|
|
590
|
+
}), s = r && Object.entries(r).reduce((c, f) => {
|
|
591
|
+
let [m, g] = f;
|
|
592
|
+
return g === void 0 || (c[m] = g), c;
|
|
593
|
+
}, {}), u = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((c, f) => {
|
|
594
|
+
let { class: m, className: g, ...b } = f;
|
|
595
|
+
return Object.entries(b).every((x) => {
|
|
596
|
+
let [k, y] = x;
|
|
597
|
+
return Array.isArray(y) ? y.includes({
|
|
393
598
|
...a,
|
|
394
|
-
...
|
|
395
|
-
}[
|
|
599
|
+
...s
|
|
600
|
+
}[k]) : {
|
|
396
601
|
...a,
|
|
397
|
-
...
|
|
398
|
-
}[
|
|
602
|
+
...s
|
|
603
|
+
}[k] === y;
|
|
399
604
|
}) ? [
|
|
400
605
|
...c,
|
|
401
|
-
|
|
606
|
+
m,
|
|
402
607
|
g
|
|
403
608
|
] : c;
|
|
404
609
|
}, []);
|
|
405
|
-
return
|
|
406
|
-
},
|
|
610
|
+
return Pr(e, l, u, r?.class, r?.className);
|
|
611
|
+
}, No = v("", {
|
|
407
612
|
variants: {
|
|
408
613
|
color: {
|
|
409
614
|
primary: "mcl-bg-primary",
|
|
@@ -425,7 +630,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
425
630
|
transparent: "mcl-bg-transparent"
|
|
426
631
|
}
|
|
427
632
|
}
|
|
428
|
-
}),
|
|
633
|
+
}), Lo = v("", {
|
|
429
634
|
variants: {
|
|
430
635
|
color: {
|
|
431
636
|
primary: "hover:bg-primary",
|
|
@@ -447,7 +652,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
447
652
|
transparent: "hover:bg-transparent"
|
|
448
653
|
}
|
|
449
654
|
}
|
|
450
|
-
}),
|
|
655
|
+
}), Do = v("", {
|
|
451
656
|
variants: {
|
|
452
657
|
color: {
|
|
453
658
|
primary: "focus:bg-primary",
|
|
@@ -469,7 +674,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
469
674
|
transparent: "focus:bg-transparent"
|
|
470
675
|
}
|
|
471
676
|
}
|
|
472
|
-
}),
|
|
677
|
+
}), Io = v("", {
|
|
473
678
|
variants: {
|
|
474
679
|
color: {
|
|
475
680
|
primary: "before:bg-primary",
|
|
@@ -491,7 +696,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
491
696
|
transparent: "before:bg-transparent"
|
|
492
697
|
}
|
|
493
698
|
}
|
|
494
|
-
}),
|
|
699
|
+
}), Vo = v("", {
|
|
495
700
|
variants: {
|
|
496
701
|
color: {
|
|
497
702
|
primary: "after:bg-primary",
|
|
@@ -513,7 +718,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
513
718
|
transparent: "after:bg-transparent"
|
|
514
719
|
}
|
|
515
720
|
}
|
|
516
|
-
}),
|
|
721
|
+
}), Bo = v("", {
|
|
517
722
|
variants: {
|
|
518
723
|
color: {
|
|
519
724
|
primary: "active:bg-primary",
|
|
@@ -535,7 +740,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
535
740
|
transparent: "active:bg-transparent"
|
|
536
741
|
}
|
|
537
742
|
}
|
|
538
|
-
}),
|
|
743
|
+
}), Mo = v("", {
|
|
539
744
|
variants: {
|
|
540
745
|
color: {
|
|
541
746
|
primary: "text-primary",
|
|
@@ -557,7 +762,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
557
762
|
transparent: "text-transparent"
|
|
558
763
|
}
|
|
559
764
|
}
|
|
560
|
-
}),
|
|
765
|
+
}), Fo = v("", {
|
|
561
766
|
variants: {
|
|
562
767
|
color: {
|
|
563
768
|
primary: "hover:text-primary",
|
|
@@ -579,7 +784,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
579
784
|
transparent: "hover:text-transparent"
|
|
580
785
|
}
|
|
581
786
|
}
|
|
582
|
-
}),
|
|
787
|
+
}), $o = v("", {
|
|
583
788
|
variants: {
|
|
584
789
|
color: {
|
|
585
790
|
primary: "focus:text-primary",
|
|
@@ -601,7 +806,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
601
806
|
transparent: "focus:text-transparent"
|
|
602
807
|
}
|
|
603
808
|
}
|
|
604
|
-
}),
|
|
809
|
+
}), Po = v("", {
|
|
605
810
|
variants: {
|
|
606
811
|
color: {
|
|
607
812
|
primary: "disabled:text-primary",
|
|
@@ -623,7 +828,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
623
828
|
transparent: "disabled:text-transparent"
|
|
624
829
|
}
|
|
625
830
|
}
|
|
626
|
-
}),
|
|
831
|
+
}), zo = v("", {
|
|
627
832
|
variants: {
|
|
628
833
|
color: {
|
|
629
834
|
primary: "fill-primary",
|
|
@@ -645,7 +850,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
645
850
|
transparent: "fill-transparent"
|
|
646
851
|
}
|
|
647
852
|
}
|
|
648
|
-
}),
|
|
853
|
+
}), Ho = v("", {
|
|
649
854
|
variants: {
|
|
650
855
|
color: {
|
|
651
856
|
primary: "ring-primary",
|
|
@@ -667,7 +872,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
667
872
|
transparent: "ring-transparent"
|
|
668
873
|
}
|
|
669
874
|
}
|
|
670
|
-
}),
|
|
875
|
+
}), Uo = v("", {
|
|
671
876
|
variants: {
|
|
672
877
|
color: {
|
|
673
878
|
primary: "focus:ring-primary",
|
|
@@ -689,7 +894,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
689
894
|
transparent: "focus:ring-transparent"
|
|
690
895
|
}
|
|
691
896
|
}
|
|
692
|
-
}),
|
|
897
|
+
}), Wo = v("", {
|
|
693
898
|
variants: {
|
|
694
899
|
color: {
|
|
695
900
|
primary: "active:ring-primary",
|
|
@@ -711,7 +916,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
711
916
|
transparent: "active:ring-transparent"
|
|
712
917
|
}
|
|
713
918
|
}
|
|
714
|
-
}),
|
|
919
|
+
}), qo = v("", {
|
|
715
920
|
variants: {
|
|
716
921
|
color: {
|
|
717
922
|
primary: "peer-checked:bg-primary",
|
|
@@ -733,7 +938,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
733
938
|
transparent: "peer-checked:bg-transparent"
|
|
734
939
|
}
|
|
735
940
|
}
|
|
736
|
-
}),
|
|
941
|
+
}), jo = v("", {
|
|
737
942
|
variants: {
|
|
738
943
|
color: {
|
|
739
944
|
primary: "peer-focus-visible:ring-primary",
|
|
@@ -755,7 +960,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
755
960
|
transparent: "peer-focus-visible:ring-transparent"
|
|
756
961
|
}
|
|
757
962
|
}
|
|
758
|
-
}),
|
|
963
|
+
}), Go = v("", {
|
|
759
964
|
variants: {
|
|
760
965
|
color: {
|
|
761
966
|
primary: "focus-visible:ring-primary",
|
|
@@ -777,7 +982,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
777
982
|
transparent: "focus-visible:ring-transparent"
|
|
778
983
|
}
|
|
779
984
|
}
|
|
780
|
-
}),
|
|
985
|
+
}), Yo = v("", {
|
|
781
986
|
variants: {
|
|
782
987
|
color: {
|
|
783
988
|
primary: "ring-offset-primary",
|
|
@@ -799,7 +1004,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
799
1004
|
transparent: "ring-offset-transparent"
|
|
800
1005
|
}
|
|
801
1006
|
}
|
|
802
|
-
}),
|
|
1007
|
+
}), Xo = v("", {
|
|
803
1008
|
variants: {
|
|
804
1009
|
color: {
|
|
805
1010
|
primary: "mcl-outline-primary",
|
|
@@ -821,7 +1026,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
821
1026
|
transparent: "mcl-outline-transparent"
|
|
822
1027
|
}
|
|
823
1028
|
}
|
|
824
|
-
}),
|
|
1029
|
+
}), Ko = v("", {
|
|
825
1030
|
variants: {
|
|
826
1031
|
color: {
|
|
827
1032
|
primary: "focus:mcl-outline-primary",
|
|
@@ -843,7 +1048,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
843
1048
|
transparent: "focus:mcl-outline-transparent"
|
|
844
1049
|
}
|
|
845
1050
|
}
|
|
846
|
-
}),
|
|
1051
|
+
}), Zo = v("", {
|
|
847
1052
|
variants: {
|
|
848
1053
|
color: {
|
|
849
1054
|
primary: "active:mcl-outline-primary",
|
|
@@ -865,7 +1070,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
865
1070
|
transparent: "active:mcl-outline-transparent"
|
|
866
1071
|
}
|
|
867
1072
|
}
|
|
868
|
-
}),
|
|
1073
|
+
}), Jo = v("", {
|
|
869
1074
|
variants: {
|
|
870
1075
|
color: {
|
|
871
1076
|
primary: "btn-primary",
|
|
@@ -887,7 +1092,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
887
1092
|
transparent: "btn-transparent"
|
|
888
1093
|
}
|
|
889
1094
|
}
|
|
890
|
-
}),
|
|
1095
|
+
}), Qo = v("", {
|
|
891
1096
|
variants: {
|
|
892
1097
|
color: {
|
|
893
1098
|
primary: "mcl-list-primary",
|
|
@@ -909,7 +1114,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
909
1114
|
transparent: "mcl-list-transparent"
|
|
910
1115
|
}
|
|
911
1116
|
}
|
|
912
|
-
}),
|
|
1117
|
+
}), ei = v("", {
|
|
913
1118
|
variants: {
|
|
914
1119
|
color: {
|
|
915
1120
|
primary: "border-primary",
|
|
@@ -931,7 +1136,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
931
1136
|
transparent: "border-transparent"
|
|
932
1137
|
}
|
|
933
1138
|
}
|
|
934
|
-
}),
|
|
1139
|
+
}), ti = v("", {
|
|
935
1140
|
variants: {
|
|
936
1141
|
color: {
|
|
937
1142
|
primary: "border-x-primary",
|
|
@@ -953,7 +1158,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
953
1158
|
transparent: "border-x-transparent"
|
|
954
1159
|
}
|
|
955
1160
|
}
|
|
956
|
-
}),
|
|
1161
|
+
}), ri = v("", {
|
|
957
1162
|
variants: {
|
|
958
1163
|
color: {
|
|
959
1164
|
primary: "border-y-primary",
|
|
@@ -975,7 +1180,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
975
1180
|
transparent: "border-y-transparent"
|
|
976
1181
|
}
|
|
977
1182
|
}
|
|
978
|
-
}),
|
|
1183
|
+
}), ni = v("", {
|
|
979
1184
|
variants: {
|
|
980
1185
|
color: {
|
|
981
1186
|
primary: "border-t-primary",
|
|
@@ -997,7 +1202,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
997
1202
|
transparent: "border-t-transparent"
|
|
998
1203
|
}
|
|
999
1204
|
}
|
|
1000
|
-
}),
|
|
1205
|
+
}), oi = v("", {
|
|
1001
1206
|
variants: {
|
|
1002
1207
|
color: {
|
|
1003
1208
|
primary: "border-b-primary",
|
|
@@ -1019,7 +1224,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1019
1224
|
transparent: "border-b-transparent"
|
|
1020
1225
|
}
|
|
1021
1226
|
}
|
|
1022
|
-
}),
|
|
1227
|
+
}), ii = v("", {
|
|
1023
1228
|
variants: {
|
|
1024
1229
|
color: {
|
|
1025
1230
|
primary: "border-l-primary",
|
|
@@ -1041,7 +1246,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1041
1246
|
transparent: "border-l-transparent"
|
|
1042
1247
|
}
|
|
1043
1248
|
}
|
|
1044
|
-
}),
|
|
1249
|
+
}), ai = v("", {
|
|
1045
1250
|
variants: {
|
|
1046
1251
|
color: {
|
|
1047
1252
|
primary: "border-r-primary",
|
|
@@ -1063,7 +1268,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1063
1268
|
transparent: "border-r-transparent"
|
|
1064
1269
|
}
|
|
1065
1270
|
}
|
|
1066
|
-
}),
|
|
1271
|
+
}), li = v("", {
|
|
1067
1272
|
variants: {
|
|
1068
1273
|
size: {
|
|
1069
1274
|
xs: "text-xs",
|
|
@@ -1073,7 +1278,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1073
1278
|
xl: "text-xl"
|
|
1074
1279
|
}
|
|
1075
1280
|
}
|
|
1076
|
-
}),
|
|
1281
|
+
}), si = v("", {
|
|
1077
1282
|
variants: {
|
|
1078
1283
|
weight: {
|
|
1079
1284
|
light: "font-light",
|
|
@@ -1081,7 +1286,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1081
1286
|
bold: "font-bold"
|
|
1082
1287
|
}
|
|
1083
1288
|
}
|
|
1084
|
-
}),
|
|
1289
|
+
}), ci = v("", {
|
|
1085
1290
|
variants: {
|
|
1086
1291
|
align: {
|
|
1087
1292
|
left: "text-left",
|
|
@@ -1089,7 +1294,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1089
1294
|
right: "text-right"
|
|
1090
1295
|
}
|
|
1091
1296
|
}
|
|
1092
|
-
}),
|
|
1297
|
+
}), di = v("", {
|
|
1093
1298
|
variants: {
|
|
1094
1299
|
size: {
|
|
1095
1300
|
sm: "h1-sm",
|
|
@@ -1098,7 +1303,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1098
1303
|
xl: "h1-xl"
|
|
1099
1304
|
}
|
|
1100
1305
|
}
|
|
1101
|
-
}),
|
|
1306
|
+
}), ui = v("", {
|
|
1102
1307
|
variants: {
|
|
1103
1308
|
size: {
|
|
1104
1309
|
sm: "h2-sm",
|
|
@@ -1107,7 +1312,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1107
1312
|
xl: "h2-xl"
|
|
1108
1313
|
}
|
|
1109
1314
|
}
|
|
1110
|
-
}),
|
|
1315
|
+
}), fi = v("", {
|
|
1111
1316
|
variants: {
|
|
1112
1317
|
size: {
|
|
1113
1318
|
sm: "h3-sm",
|
|
@@ -1116,7 +1321,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1116
1321
|
xl: "h3-xl"
|
|
1117
1322
|
}
|
|
1118
1323
|
}
|
|
1119
|
-
}),
|
|
1324
|
+
}), gi = v("", {
|
|
1120
1325
|
variants: {
|
|
1121
1326
|
size: {
|
|
1122
1327
|
sm: "h4-sm",
|
|
@@ -1125,7 +1330,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1125
1330
|
xl: "h4-xl"
|
|
1126
1331
|
}
|
|
1127
1332
|
}
|
|
1128
|
-
}),
|
|
1333
|
+
}), pi = {
|
|
1129
1334
|
1: "border-[1px]",
|
|
1130
1335
|
2: "border-[2px]",
|
|
1131
1336
|
3: "border-[3px]",
|
|
@@ -1138,7 +1343,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1138
1343
|
10: "border-[10px]",
|
|
1139
1344
|
11: "border-[11px]",
|
|
1140
1345
|
12: "border-[12px]"
|
|
1141
|
-
},
|
|
1346
|
+
}, mi = {
|
|
1142
1347
|
1: "border-x-[1px]",
|
|
1143
1348
|
2: "border-x-[2px]",
|
|
1144
1349
|
3: "border-x-[3px]",
|
|
@@ -1151,7 +1356,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1151
1356
|
10: "border-x-[10px]",
|
|
1152
1357
|
11: "border-x-[11px]",
|
|
1153
1358
|
12: "border-x-[12px]"
|
|
1154
|
-
},
|
|
1359
|
+
}, bi = {
|
|
1155
1360
|
1: "border-y-[1px]",
|
|
1156
1361
|
2: "border-y-[2px]",
|
|
1157
1362
|
3: "border-y-[3px]",
|
|
@@ -1164,7 +1369,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1164
1369
|
10: "border-y-[10px]",
|
|
1165
1370
|
11: "border-y-[11px]",
|
|
1166
1371
|
12: "border-y-[12px]"
|
|
1167
|
-
},
|
|
1372
|
+
}, hi = {
|
|
1168
1373
|
1: "border-t-[1px]",
|
|
1169
1374
|
2: "border-t-[2px]",
|
|
1170
1375
|
3: "border-t-[3px]",
|
|
@@ -1177,7 +1382,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1177
1382
|
10: "border-t-[10px]",
|
|
1178
1383
|
11: "border-t-[11px]",
|
|
1179
1384
|
12: "border-t-[12px]"
|
|
1180
|
-
},
|
|
1385
|
+
}, vi = {
|
|
1181
1386
|
1: "border-b-[1px]",
|
|
1182
1387
|
2: "border-b-[2px]",
|
|
1183
1388
|
3: "border-b-[3px]",
|
|
@@ -1190,7 +1395,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1190
1395
|
10: "border-b-[10px]",
|
|
1191
1396
|
11: "border-b-[11px]",
|
|
1192
1397
|
12: "border-b-[12px]"
|
|
1193
|
-
},
|
|
1398
|
+
}, xi = {
|
|
1194
1399
|
1: "border-l-[1px]",
|
|
1195
1400
|
2: "border-l-[2px]",
|
|
1196
1401
|
3: "border-l-[3px]",
|
|
@@ -1203,7 +1408,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1203
1408
|
10: "border-l-[10px]",
|
|
1204
1409
|
11: "border-l-[11px]",
|
|
1205
1410
|
12: "border-l-[12px]"
|
|
1206
|
-
},
|
|
1411
|
+
}, yi = {
|
|
1207
1412
|
1: "border-r-[1px]",
|
|
1208
1413
|
2: "border-r-[2px]",
|
|
1209
1414
|
3: "border-r-[3px]",
|
|
@@ -1216,7 +1421,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1216
1421
|
10: "border-r-[10px]",
|
|
1217
1422
|
11: "border-r-[11px]",
|
|
1218
1423
|
12: "border-r-[12px]"
|
|
1219
|
-
},
|
|
1424
|
+
}, ki = (e) => pi[e.width] ?? "", wi = (e) => mi[e.width] ?? "", Ci = (e) => bi[e.width] ?? "", Ti = (e) => hi[e.width] ?? "", Ai = (e) => vi[e.width] ?? "", Si = (e) => xi[e.width] ?? "", Ei = (e) => yi[e.width] ?? "", Ri = {
|
|
1220
1425
|
10: "opacity-10",
|
|
1221
1426
|
20: "opacity-20",
|
|
1222
1427
|
30: "opacity-30",
|
|
@@ -1227,7 +1432,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1227
1432
|
80: "opacity-80",
|
|
1228
1433
|
90: "opacity-90",
|
|
1229
1434
|
100: "opacity-100"
|
|
1230
|
-
},
|
|
1435
|
+
}, Oi = {
|
|
1231
1436
|
10: "bg-opacity-10",
|
|
1232
1437
|
20: "bg-opacity-20",
|
|
1233
1438
|
30: "bg-opacity-30",
|
|
@@ -1238,7 +1443,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1238
1443
|
80: "bg-opacity-80",
|
|
1239
1444
|
90: "bg-opacity-90",
|
|
1240
1445
|
100: "bg-opacity-100"
|
|
1241
|
-
},
|
|
1446
|
+
}, _i = {
|
|
1242
1447
|
10: "outline-opacity-10",
|
|
1243
1448
|
20: "outline-opacity-20",
|
|
1244
1449
|
30: "outline-opacity-30",
|
|
@@ -1249,7 +1454,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1249
1454
|
80: "outline-opacity-80",
|
|
1250
1455
|
90: "outline-opacity-90",
|
|
1251
1456
|
100: "outline-opacity-100"
|
|
1252
|
-
},
|
|
1457
|
+
}, Ni = (e) => Ri[e.opacity] ?? "", Li = (e) => Oi[e.opacity] ?? "", Di = (e) => _i[e.opacity] ?? "", Ii = v("", {
|
|
1253
1458
|
variants: {
|
|
1254
1459
|
spacing: {
|
|
1255
1460
|
0: "m-0",
|
|
@@ -1264,7 +1469,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1264
1469
|
"3xl": "m-3xl"
|
|
1265
1470
|
}
|
|
1266
1471
|
}
|
|
1267
|
-
}),
|
|
1472
|
+
}), Vi = v("", {
|
|
1268
1473
|
variants: {
|
|
1269
1474
|
spacing: {
|
|
1270
1475
|
0: "mx-0",
|
|
@@ -1279,7 +1484,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1279
1484
|
"3xl": "mx-3xl"
|
|
1280
1485
|
}
|
|
1281
1486
|
}
|
|
1282
|
-
}),
|
|
1487
|
+
}), Bi = v("", {
|
|
1283
1488
|
variants: {
|
|
1284
1489
|
spacing: {
|
|
1285
1490
|
0: "my-0",
|
|
@@ -1294,7 +1499,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1294
1499
|
"3xl": "my-3xl"
|
|
1295
1500
|
}
|
|
1296
1501
|
}
|
|
1297
|
-
}),
|
|
1502
|
+
}), Mi = v("", {
|
|
1298
1503
|
variants: {
|
|
1299
1504
|
spacing: {
|
|
1300
1505
|
0: "mt-0",
|
|
@@ -1309,7 +1514,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1309
1514
|
"3xl": "mt-3xl"
|
|
1310
1515
|
}
|
|
1311
1516
|
}
|
|
1312
|
-
}),
|
|
1517
|
+
}), Fi = v("", {
|
|
1313
1518
|
variants: {
|
|
1314
1519
|
spacing: {
|
|
1315
1520
|
0: "mb-0",
|
|
@@ -1324,7 +1529,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1324
1529
|
"3xl": "mb-3xl"
|
|
1325
1530
|
}
|
|
1326
1531
|
}
|
|
1327
|
-
}),
|
|
1532
|
+
}), $i = v("", {
|
|
1328
1533
|
variants: {
|
|
1329
1534
|
spacing: {
|
|
1330
1535
|
0: "ml-0",
|
|
@@ -1339,7 +1544,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1339
1544
|
"3xl": "ml-3xl"
|
|
1340
1545
|
}
|
|
1341
1546
|
}
|
|
1342
|
-
}),
|
|
1547
|
+
}), Pi = v("", {
|
|
1343
1548
|
variants: {
|
|
1344
1549
|
spacing: {
|
|
1345
1550
|
0: "mr-0",
|
|
@@ -1354,7 +1559,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1354
1559
|
"3xl": "mr-3xl"
|
|
1355
1560
|
}
|
|
1356
1561
|
}
|
|
1357
|
-
}),
|
|
1562
|
+
}), zi = v("", {
|
|
1358
1563
|
variants: {
|
|
1359
1564
|
spacing: {
|
|
1360
1565
|
0: "p-0",
|
|
@@ -1369,7 +1574,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1369
1574
|
"3xl": "p-3xl"
|
|
1370
1575
|
}
|
|
1371
1576
|
}
|
|
1372
|
-
}),
|
|
1577
|
+
}), Hi = v("", {
|
|
1373
1578
|
variants: {
|
|
1374
1579
|
spacing: {
|
|
1375
1580
|
0: "px-0",
|
|
@@ -1384,7 +1589,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1384
1589
|
"3xl": "px-3xl"
|
|
1385
1590
|
}
|
|
1386
1591
|
}
|
|
1387
|
-
}),
|
|
1592
|
+
}), Ui = v("", {
|
|
1388
1593
|
variants: {
|
|
1389
1594
|
spacing: {
|
|
1390
1595
|
0: "py-0",
|
|
@@ -1399,7 +1604,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1399
1604
|
"3xl": "py-3xl"
|
|
1400
1605
|
}
|
|
1401
1606
|
}
|
|
1402
|
-
}),
|
|
1607
|
+
}), Wi = v("", {
|
|
1403
1608
|
variants: {
|
|
1404
1609
|
spacing: {
|
|
1405
1610
|
0: "pt-0",
|
|
@@ -1414,7 +1619,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1414
1619
|
"3xl": "pt-3xl"
|
|
1415
1620
|
}
|
|
1416
1621
|
}
|
|
1417
|
-
}),
|
|
1622
|
+
}), qi = v("", {
|
|
1418
1623
|
variants: {
|
|
1419
1624
|
spacing: {
|
|
1420
1625
|
0: "pb-0",
|
|
@@ -1429,7 +1634,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1429
1634
|
"3xl": "pb-3xl"
|
|
1430
1635
|
}
|
|
1431
1636
|
}
|
|
1432
|
-
}),
|
|
1637
|
+
}), ji = v("", {
|
|
1433
1638
|
variants: {
|
|
1434
1639
|
spacing: {
|
|
1435
1640
|
0: "pl-0",
|
|
@@ -1444,7 +1649,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1444
1649
|
"3xl": "pl-3xl"
|
|
1445
1650
|
}
|
|
1446
1651
|
}
|
|
1447
|
-
}),
|
|
1652
|
+
}), Gi = v("", {
|
|
1448
1653
|
variants: {
|
|
1449
1654
|
spacing: {
|
|
1450
1655
|
0: "pr-0",
|
|
@@ -1459,7 +1664,7 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1459
1664
|
"3xl": "pr-3xl"
|
|
1460
1665
|
}
|
|
1461
1666
|
}
|
|
1462
|
-
}),
|
|
1667
|
+
}), Yi = v("", {
|
|
1463
1668
|
variants: {
|
|
1464
1669
|
spacing: {
|
|
1465
1670
|
0: "gap-0",
|
|
@@ -1474,267 +1679,267 @@ const Er = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Rr = eo, y
|
|
|
1474
1679
|
"3xl": "gap-3xl"
|
|
1475
1680
|
}
|
|
1476
1681
|
}
|
|
1477
|
-
}),
|
|
1682
|
+
}), zr = {
|
|
1478
1683
|
// color
|
|
1479
|
-
bgColorVariant:
|
|
1480
|
-
hoverBgColorVariant:
|
|
1481
|
-
focusBgColorVariant:
|
|
1482
|
-
beforeBgColorVariant:
|
|
1483
|
-
afterBgColorVariant:
|
|
1484
|
-
activeBgColorVariant:
|
|
1485
|
-
textColorVariant:
|
|
1486
|
-
hoverTextColorVariant:
|
|
1487
|
-
focusTextColorVariant:
|
|
1488
|
-
disabledTextColorVariant:
|
|
1489
|
-
svgFillColorVariant:
|
|
1490
|
-
ringColorVariant:
|
|
1491
|
-
focusRingColorVariant:
|
|
1492
|
-
activeRingColorVariant:
|
|
1493
|
-
peerCheckedBgColorVariant:
|
|
1494
|
-
peerFocusVisibleRingColorVariant:
|
|
1495
|
-
focusVisibleRingColorVariant:
|
|
1496
|
-
ringOffsetColorVariant:
|
|
1497
|
-
outlineColorVariant:
|
|
1498
|
-
focusOutlineColorVariant:
|
|
1499
|
-
activeOutlineColorVariant:
|
|
1500
|
-
btnColorVariant:
|
|
1501
|
-
listColorVariant:
|
|
1502
|
-
borderColorVariant:
|
|
1503
|
-
borderXColorVariant:
|
|
1504
|
-
borderYColorVariant:
|
|
1505
|
-
borderTopColorVariant:
|
|
1506
|
-
borderBottomColorVariant:
|
|
1507
|
-
borderLeftColorVariant:
|
|
1508
|
-
borderRightColorVariant:
|
|
1684
|
+
bgColorVariant: No,
|
|
1685
|
+
hoverBgColorVariant: Lo,
|
|
1686
|
+
focusBgColorVariant: Do,
|
|
1687
|
+
beforeBgColorVariant: Io,
|
|
1688
|
+
afterBgColorVariant: Vo,
|
|
1689
|
+
activeBgColorVariant: Bo,
|
|
1690
|
+
textColorVariant: Mo,
|
|
1691
|
+
hoverTextColorVariant: Fo,
|
|
1692
|
+
focusTextColorVariant: $o,
|
|
1693
|
+
disabledTextColorVariant: Po,
|
|
1694
|
+
svgFillColorVariant: zo,
|
|
1695
|
+
ringColorVariant: Ho,
|
|
1696
|
+
focusRingColorVariant: Uo,
|
|
1697
|
+
activeRingColorVariant: Wo,
|
|
1698
|
+
peerCheckedBgColorVariant: qo,
|
|
1699
|
+
peerFocusVisibleRingColorVariant: jo,
|
|
1700
|
+
focusVisibleRingColorVariant: Go,
|
|
1701
|
+
ringOffsetColorVariant: Yo,
|
|
1702
|
+
outlineColorVariant: Xo,
|
|
1703
|
+
focusOutlineColorVariant: Ko,
|
|
1704
|
+
activeOutlineColorVariant: Zo,
|
|
1705
|
+
btnColorVariant: Jo,
|
|
1706
|
+
listColorVariant: Qo,
|
|
1707
|
+
borderColorVariant: ei,
|
|
1708
|
+
borderXColorVariant: ti,
|
|
1709
|
+
borderYColorVariant: ri,
|
|
1710
|
+
borderTopColorVariant: ni,
|
|
1711
|
+
borderBottomColorVariant: oi,
|
|
1712
|
+
borderLeftColorVariant: ii,
|
|
1713
|
+
borderRightColorVariant: ai,
|
|
1509
1714
|
// typography
|
|
1510
|
-
bodyTextVariant:
|
|
1511
|
-
fontWeightVariant:
|
|
1512
|
-
textAlignVariant:
|
|
1513
|
-
h1Variant:
|
|
1514
|
-
h2Variant:
|
|
1515
|
-
h3Variant:
|
|
1516
|
-
h4Variant:
|
|
1715
|
+
bodyTextVariant: li,
|
|
1716
|
+
fontWeightVariant: si,
|
|
1717
|
+
textAlignVariant: ci,
|
|
1718
|
+
h1Variant: di,
|
|
1719
|
+
h2Variant: ui,
|
|
1720
|
+
h3Variant: fi,
|
|
1721
|
+
h4Variant: gi,
|
|
1517
1722
|
// border width
|
|
1518
|
-
borderWidthVariant:
|
|
1519
|
-
borderXWidthVariant:
|
|
1520
|
-
borderYWidthVariant:
|
|
1521
|
-
borderTopWidthVariant:
|
|
1522
|
-
borderBottomWidthVariant:
|
|
1523
|
-
borderLeftWidthVariant:
|
|
1524
|
-
borderRightWidthVariant:
|
|
1723
|
+
borderWidthVariant: ki,
|
|
1724
|
+
borderXWidthVariant: wi,
|
|
1725
|
+
borderYWidthVariant: Ci,
|
|
1726
|
+
borderTopWidthVariant: Ti,
|
|
1727
|
+
borderBottomWidthVariant: Ai,
|
|
1728
|
+
borderLeftWidthVariant: Si,
|
|
1729
|
+
borderRightWidthVariant: Ei,
|
|
1525
1730
|
// opacity
|
|
1526
|
-
opacityVariant:
|
|
1527
|
-
bgOpacityVariant:
|
|
1528
|
-
outlineOpacityVariant:
|
|
1731
|
+
opacityVariant: Ni,
|
|
1732
|
+
bgOpacityVariant: Li,
|
|
1733
|
+
outlineOpacityVariant: Di,
|
|
1529
1734
|
// spacing
|
|
1530
|
-
marginVariant:
|
|
1531
|
-
marginXVariant:
|
|
1532
|
-
marginYVariant:
|
|
1533
|
-
marginTopVariant:
|
|
1534
|
-
marginBottomVariant:
|
|
1535
|
-
marginLeftVariant:
|
|
1536
|
-
marginRightVariant:
|
|
1537
|
-
paddingVariant:
|
|
1538
|
-
paddingXVariant:
|
|
1539
|
-
paddingYVariant:
|
|
1540
|
-
paddingTopVariant:
|
|
1541
|
-
paddingBottomVariant:
|
|
1542
|
-
paddingLeftVariant:
|
|
1543
|
-
paddingRightVariant:
|
|
1544
|
-
gapVariant:
|
|
1545
|
-
},
|
|
1735
|
+
marginVariant: Ii,
|
|
1736
|
+
marginXVariant: Vi,
|
|
1737
|
+
marginYVariant: Bi,
|
|
1738
|
+
marginTopVariant: Mi,
|
|
1739
|
+
marginBottomVariant: Fi,
|
|
1740
|
+
marginLeftVariant: $i,
|
|
1741
|
+
marginRightVariant: Pi,
|
|
1742
|
+
paddingVariant: zi,
|
|
1743
|
+
paddingXVariant: Hi,
|
|
1744
|
+
paddingYVariant: Ui,
|
|
1745
|
+
paddingTopVariant: Wi,
|
|
1746
|
+
paddingBottomVariant: qi,
|
|
1747
|
+
paddingLeftVariant: ji,
|
|
1748
|
+
paddingRightVariant: Gi,
|
|
1749
|
+
gapVariant: Yi
|
|
1750
|
+
}, Xi = (e, t, r) => !t || !(t instanceof Node) || e === t || e.contains(t) ? !1 : r?.length ? !r.some(
|
|
1546
1751
|
(n) => n === t || n.contains(t)
|
|
1547
|
-
) : !0,
|
|
1752
|
+
) : !0, wt = (e) => typeof e.value == "function" ? {
|
|
1548
1753
|
handler: e.value,
|
|
1549
1754
|
events: ["click"]
|
|
1550
1755
|
} : {
|
|
1551
1756
|
handler: e.value.handler,
|
|
1552
1757
|
events: e.value.events || ["click"],
|
|
1553
1758
|
excludeElements: e.value.excludeElements
|
|
1554
|
-
},
|
|
1555
|
-
|
|
1556
|
-
},
|
|
1759
|
+
}, Hr = (e, t, r) => (n) => {
|
|
1760
|
+
Xi(e, n.target, r) && t(n);
|
|
1761
|
+
}, Ki = {
|
|
1557
1762
|
mounted(e, t) {
|
|
1558
|
-
const { handler: r, events: n, excludeElements: i } =
|
|
1559
|
-
e.__ClickOutsideHandler =
|
|
1763
|
+
const { handler: r, events: n, excludeElements: i } = wt(t);
|
|
1764
|
+
e.__ClickOutsideHandler = Hr(e, r, i), n.forEach((a) => {
|
|
1560
1765
|
document.addEventListener(a, e.__ClickOutsideHandler, !0);
|
|
1561
1766
|
});
|
|
1562
1767
|
},
|
|
1563
1768
|
updated(e, t) {
|
|
1564
|
-
e.__ClickOutsideHandler &&
|
|
1769
|
+
e.__ClickOutsideHandler && wt({
|
|
1565
1770
|
...t,
|
|
1566
1771
|
value: t.oldValue
|
|
1567
1772
|
}).events.forEach((a) => {
|
|
1568
1773
|
document.removeEventListener(a, e.__ClickOutsideHandler, !0);
|
|
1569
1774
|
});
|
|
1570
|
-
const { handler: r, events: n, excludeElements: i } =
|
|
1571
|
-
e.__ClickOutsideHandler =
|
|
1775
|
+
const { handler: r, events: n, excludeElements: i } = wt(t);
|
|
1776
|
+
e.__ClickOutsideHandler = Hr(e, r, i), n.forEach((a) => {
|
|
1572
1777
|
document.addEventListener(a, e.__ClickOutsideHandler, !0);
|
|
1573
1778
|
});
|
|
1574
1779
|
},
|
|
1575
1780
|
unmounted(e, t) {
|
|
1576
1781
|
if (e.__ClickOutsideHandler) {
|
|
1577
|
-
const { events: r } =
|
|
1782
|
+
const { events: r } = wt(t);
|
|
1578
1783
|
r.forEach((n) => {
|
|
1579
1784
|
document.removeEventListener(n, e.__ClickOutsideHandler, !0);
|
|
1580
1785
|
}), delete e.__ClickOutsideHandler;
|
|
1581
1786
|
}
|
|
1582
1787
|
}
|
|
1583
1788
|
}, {
|
|
1584
|
-
entries:
|
|
1585
|
-
setPrototypeOf:
|
|
1586
|
-
isFrozen:
|
|
1587
|
-
getPrototypeOf:
|
|
1588
|
-
getOwnPropertyDescriptor:
|
|
1789
|
+
entries: wn,
|
|
1790
|
+
setPrototypeOf: Ur,
|
|
1791
|
+
isFrozen: Zi,
|
|
1792
|
+
getPrototypeOf: Ji,
|
|
1793
|
+
getOwnPropertyDescriptor: Qi
|
|
1589
1794
|
} = Object;
|
|
1590
1795
|
let {
|
|
1591
|
-
freeze:
|
|
1592
|
-
seal:
|
|
1593
|
-
create:
|
|
1796
|
+
freeze: ae,
|
|
1797
|
+
seal: ue,
|
|
1798
|
+
create: Qe
|
|
1594
1799
|
} = Object, {
|
|
1595
|
-
apply:
|
|
1596
|
-
construct:
|
|
1800
|
+
apply: lr,
|
|
1801
|
+
construct: sr
|
|
1597
1802
|
} = typeof Reflect < "u" && Reflect;
|
|
1598
|
-
|
|
1803
|
+
ae || (ae = function(e) {
|
|
1599
1804
|
return e;
|
|
1600
1805
|
});
|
|
1601
|
-
|
|
1806
|
+
ue || (ue = function(e) {
|
|
1602
1807
|
return e;
|
|
1603
1808
|
});
|
|
1604
|
-
|
|
1809
|
+
lr || (lr = function(e, t) {
|
|
1605
1810
|
for (var r = arguments.length, n = new Array(r > 2 ? r - 2 : 0), i = 2; i < r; i++)
|
|
1606
1811
|
n[i - 2] = arguments[i];
|
|
1607
1812
|
return e.apply(t, n);
|
|
1608
1813
|
});
|
|
1609
|
-
|
|
1814
|
+
sr || (sr = function(e) {
|
|
1610
1815
|
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
|
|
1611
1816
|
r[n - 1] = arguments[n];
|
|
1612
1817
|
return new e(...r);
|
|
1613
1818
|
});
|
|
1614
|
-
const
|
|
1615
|
-
function
|
|
1819
|
+
const st = q(Array.prototype.forEach), ea = q(Array.prototype.lastIndexOf), Wr = q(Array.prototype.pop), ct = q(Array.prototype.push), ta = q(Array.prototype.splice), oe = Array.isArray, gt = q(String.prototype.toLowerCase), Qt = q(String.prototype.toString), qr = q(String.prototype.match), Je = q(String.prototype.replace), jr = q(String.prototype.indexOf), ra = q(String.prototype.trim), na = q(Number.prototype.toString), oa = q(Boolean.prototype.toString), Gr = typeof BigInt > "u" ? null : q(BigInt.prototype.toString), Yr = typeof Symbol > "u" ? null : q(Symbol.prototype.toString), $ = q(Object.prototype.hasOwnProperty), dt = q(Object.prototype.toString), ee = q(RegExp.prototype.test), Ct = ia(TypeError);
|
|
1820
|
+
function q(e) {
|
|
1616
1821
|
return function(t) {
|
|
1617
1822
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
1618
1823
|
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
1619
1824
|
n[i - 1] = arguments[i];
|
|
1620
|
-
return
|
|
1825
|
+
return lr(e, t, n);
|
|
1621
1826
|
};
|
|
1622
1827
|
}
|
|
1623
|
-
function
|
|
1828
|
+
function ia(e) {
|
|
1624
1829
|
return function() {
|
|
1625
1830
|
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
1626
1831
|
r[n] = arguments[n];
|
|
1627
|
-
return
|
|
1832
|
+
return sr(e, r);
|
|
1628
1833
|
};
|
|
1629
1834
|
}
|
|
1630
|
-
function
|
|
1631
|
-
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
1632
|
-
if (
|
|
1835
|
+
function A(e, t) {
|
|
1836
|
+
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : gt;
|
|
1837
|
+
if (Ur && Ur(e, null), !oe(t))
|
|
1633
1838
|
return e;
|
|
1634
1839
|
let n = t.length;
|
|
1635
1840
|
for (; n--; ) {
|
|
1636
1841
|
let i = t[n];
|
|
1637
1842
|
if (typeof i == "string") {
|
|
1638
1843
|
const a = r(i);
|
|
1639
|
-
a !== i && (
|
|
1844
|
+
a !== i && (Zi(t) || (t[n] = a), i = a);
|
|
1640
1845
|
}
|
|
1641
1846
|
e[i] = !0;
|
|
1642
1847
|
}
|
|
1643
1848
|
return e;
|
|
1644
1849
|
}
|
|
1645
|
-
function
|
|
1850
|
+
function aa(e) {
|
|
1646
1851
|
for (let t = 0; t < e.length; t++)
|
|
1647
|
-
|
|
1852
|
+
$(e, t) || (e[t] = null);
|
|
1648
1853
|
return e;
|
|
1649
1854
|
}
|
|
1650
|
-
function
|
|
1651
|
-
const t =
|
|
1652
|
-
for (const [r, n] of
|
|
1653
|
-
|
|
1855
|
+
function se(e) {
|
|
1856
|
+
const t = Qe(null);
|
|
1857
|
+
for (const [r, n] of wn(e))
|
|
1858
|
+
$(e, r) && (oe(n) ? t[r] = aa(n) : n && typeof n == "object" && n.constructor === Object ? t[r] = se(n) : t[r] = n);
|
|
1654
1859
|
return t;
|
|
1655
1860
|
}
|
|
1656
|
-
function
|
|
1861
|
+
function la(e) {
|
|
1657
1862
|
switch (typeof e) {
|
|
1658
1863
|
case "string":
|
|
1659
1864
|
return e;
|
|
1660
1865
|
case "number":
|
|
1661
|
-
return
|
|
1866
|
+
return na(e);
|
|
1662
1867
|
case "boolean":
|
|
1663
|
-
return
|
|
1868
|
+
return oa(e);
|
|
1664
1869
|
case "bigint":
|
|
1665
|
-
return
|
|
1870
|
+
return Gr ? Gr(e) : "0";
|
|
1666
1871
|
case "symbol":
|
|
1667
|
-
return
|
|
1872
|
+
return Yr ? Yr(e) : "Symbol()";
|
|
1668
1873
|
case "undefined":
|
|
1669
|
-
return
|
|
1874
|
+
return dt(e);
|
|
1670
1875
|
case "function":
|
|
1671
1876
|
case "object": {
|
|
1672
1877
|
if (e === null)
|
|
1673
|
-
return
|
|
1674
|
-
const t = e, r =
|
|
1878
|
+
return dt(e);
|
|
1879
|
+
const t = e, r = et(t, "toString");
|
|
1675
1880
|
if (typeof r == "function") {
|
|
1676
1881
|
const n = r(t);
|
|
1677
|
-
return typeof n == "string" ? n :
|
|
1882
|
+
return typeof n == "string" ? n : dt(n);
|
|
1678
1883
|
}
|
|
1679
|
-
return
|
|
1884
|
+
return dt(e);
|
|
1680
1885
|
}
|
|
1681
1886
|
default:
|
|
1682
|
-
return
|
|
1887
|
+
return dt(e);
|
|
1683
1888
|
}
|
|
1684
1889
|
}
|
|
1685
|
-
function
|
|
1890
|
+
function et(e, t) {
|
|
1686
1891
|
for (; e !== null; ) {
|
|
1687
|
-
const n =
|
|
1892
|
+
const n = Qi(e, t);
|
|
1688
1893
|
if (n) {
|
|
1689
1894
|
if (n.get)
|
|
1690
|
-
return
|
|
1895
|
+
return q(n.get);
|
|
1691
1896
|
if (typeof n.value == "function")
|
|
1692
|
-
return
|
|
1897
|
+
return q(n.value);
|
|
1693
1898
|
}
|
|
1694
|
-
e =
|
|
1899
|
+
e = Ji(e);
|
|
1695
1900
|
}
|
|
1696
1901
|
function r() {
|
|
1697
1902
|
return null;
|
|
1698
1903
|
}
|
|
1699
1904
|
return r;
|
|
1700
1905
|
}
|
|
1701
|
-
function
|
|
1906
|
+
function sa(e) {
|
|
1702
1907
|
try {
|
|
1703
|
-
return
|
|
1908
|
+
return ee(e, ""), !0;
|
|
1704
1909
|
} catch {
|
|
1705
1910
|
return !1;
|
|
1706
1911
|
}
|
|
1707
1912
|
}
|
|
1708
|
-
const
|
|
1913
|
+
const Xr = ae(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), er = ae(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), tr = ae(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), ca = ae(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), rr = ae(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), da = ae(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Kr = ae(["#text"]), Zr = ae(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns"]), nr = ae(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Jr = ae(["accent", "accentunder", "align", "bevelled", "close", "columnalign", "columnlines", "columnspacing", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lquote", "lspace", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Tt = ae(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ua = ue(/\{\{[\w\W]*|[\w\W]*\}\}/gm), fa = ue(/<%[\w\W]*|[\w\W]*%>/gm), ga = ue(/\$\{[\w\W]*/gm), pa = ue(/^data-[\-\w.\u00B7-\uFFFF]+$/), ma = ue(/^aria-[\-\w]+$/), Cn = ue(
|
|
1709
1914
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
1710
1915
|
// eslint-disable-line no-useless-escape
|
|
1711
|
-
),
|
|
1916
|
+
), ba = ue(/^(?:\w+script|data):/i), ha = ue(
|
|
1712
1917
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
1713
1918
|
// eslint-disable-line no-control-regex
|
|
1714
|
-
),
|
|
1715
|
-
var
|
|
1919
|
+
), Tn = ue(/^html$/i), va = ue(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
1920
|
+
var Qr = /* @__PURE__ */ Object.freeze({
|
|
1716
1921
|
__proto__: null,
|
|
1717
|
-
ARIA_ATTR:
|
|
1718
|
-
ATTR_WHITESPACE:
|
|
1719
|
-
CUSTOM_ELEMENT:
|
|
1720
|
-
DATA_ATTR:
|
|
1721
|
-
DOCTYPE_NAME:
|
|
1722
|
-
ERB_EXPR:
|
|
1723
|
-
IS_ALLOWED_URI:
|
|
1724
|
-
IS_SCRIPT_OR_DATA:
|
|
1725
|
-
MUSTACHE_EXPR:
|
|
1726
|
-
TMPLIT_EXPR:
|
|
1922
|
+
ARIA_ATTR: ma,
|
|
1923
|
+
ATTR_WHITESPACE: ha,
|
|
1924
|
+
CUSTOM_ELEMENT: va,
|
|
1925
|
+
DATA_ATTR: pa,
|
|
1926
|
+
DOCTYPE_NAME: Tn,
|
|
1927
|
+
ERB_EXPR: fa,
|
|
1928
|
+
IS_ALLOWED_URI: Cn,
|
|
1929
|
+
IS_SCRIPT_OR_DATA: ba,
|
|
1930
|
+
MUSTACHE_EXPR: ua,
|
|
1931
|
+
TMPLIT_EXPR: ga
|
|
1727
1932
|
});
|
|
1728
|
-
const
|
|
1933
|
+
const ut = {
|
|
1729
1934
|
element: 1,
|
|
1730
1935
|
text: 3,
|
|
1731
1936
|
// Deprecated
|
|
1732
1937
|
progressingInstruction: 7,
|
|
1733
1938
|
comment: 8,
|
|
1734
1939
|
document: 9
|
|
1735
|
-
},
|
|
1940
|
+
}, xa = function() {
|
|
1736
1941
|
return typeof window > "u" ? null : window;
|
|
1737
|
-
},
|
|
1942
|
+
}, ya = function(e, t) {
|
|
1738
1943
|
if (typeof e != "object" || typeof e.createPolicy != "function")
|
|
1739
1944
|
return null;
|
|
1740
1945
|
let r = null;
|
|
@@ -1753,7 +1958,7 @@ const it = {
|
|
|
1753
1958
|
} catch {
|
|
1754
1959
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
1755
1960
|
}
|
|
1756
|
-
},
|
|
1961
|
+
}, en = function() {
|
|
1757
1962
|
return {
|
|
1758
1963
|
afterSanitizeAttributes: [],
|
|
1759
1964
|
afterSanitizeElements: [],
|
|
@@ -1766,10 +1971,10 @@ const it = {
|
|
|
1766
1971
|
uponSanitizeShadowNode: []
|
|
1767
1972
|
};
|
|
1768
1973
|
};
|
|
1769
|
-
function
|
|
1770
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
1771
|
-
const t = (o) =>
|
|
1772
|
-
if (t.version = "3.4.2", t.removed = [], !e || !e.document || e.document.nodeType !==
|
|
1974
|
+
function An() {
|
|
1975
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : xa();
|
|
1976
|
+
const t = (o) => An(o);
|
|
1977
|
+
if (t.version = "3.4.2", t.removed = [], !e || !e.document || e.document.nodeType !== ut.document || !e.Element)
|
|
1773
1978
|
return t.isSupported = !1, t;
|
|
1774
1979
|
let {
|
|
1775
1980
|
document: r
|
|
@@ -1777,46 +1982,46 @@ function fn() {
|
|
|
1777
1982
|
const n = r, i = n.currentScript, {
|
|
1778
1983
|
DocumentFragment: a,
|
|
1779
1984
|
HTMLTemplateElement: l,
|
|
1780
|
-
Node:
|
|
1781
|
-
Element:
|
|
1985
|
+
Node: s,
|
|
1986
|
+
Element: u,
|
|
1782
1987
|
NodeFilter: c,
|
|
1783
1988
|
NamedNodeMap: f = e.NamedNodeMap || e.MozNamedAttrMap,
|
|
1784
|
-
HTMLFormElement:
|
|
1989
|
+
HTMLFormElement: m,
|
|
1785
1990
|
DOMParser: g,
|
|
1786
|
-
trustedTypes:
|
|
1787
|
-
} = e,
|
|
1991
|
+
trustedTypes: b
|
|
1992
|
+
} = e, x = u.prototype, k = et(x, "cloneNode"), y = et(x, "remove"), w = et(x, "nextSibling"), E = et(x, "childNodes"), R = et(x, "parentNode");
|
|
1788
1993
|
if (typeof l == "function") {
|
|
1789
1994
|
const o = r.createElement("template");
|
|
1790
1995
|
o.content && o.content.ownerDocument && (r = o.content.ownerDocument);
|
|
1791
1996
|
}
|
|
1792
|
-
let
|
|
1997
|
+
let C, V = "";
|
|
1793
1998
|
const {
|
|
1794
|
-
implementation:
|
|
1795
|
-
createNodeIterator:
|
|
1796
|
-
createDocumentFragment:
|
|
1797
|
-
getElementsByTagName:
|
|
1999
|
+
implementation: M,
|
|
2000
|
+
createNodeIterator: N,
|
|
2001
|
+
createDocumentFragment: Z,
|
|
2002
|
+
getElementsByTagName: fe
|
|
1798
2003
|
} = r, {
|
|
1799
|
-
importNode:
|
|
2004
|
+
importNode: he
|
|
1800
2005
|
} = n;
|
|
1801
|
-
let
|
|
1802
|
-
t.isSupported = typeof
|
|
2006
|
+
let U = en();
|
|
2007
|
+
t.isSupported = typeof wn == "function" && typeof R == "function" && M && M.createHTMLDocument !== void 0;
|
|
1803
2008
|
const {
|
|
1804
|
-
MUSTACHE_EXPR:
|
|
1805
|
-
ERB_EXPR:
|
|
2009
|
+
MUSTACHE_EXPR: ve,
|
|
2010
|
+
ERB_EXPR: Ae,
|
|
1806
2011
|
TMPLIT_EXPR: re,
|
|
1807
|
-
DATA_ATTR:
|
|
1808
|
-
ARIA_ATTR:
|
|
1809
|
-
IS_SCRIPT_OR_DATA:
|
|
1810
|
-
ATTR_WHITESPACE:
|
|
1811
|
-
CUSTOM_ELEMENT:
|
|
1812
|
-
} =
|
|
2012
|
+
DATA_ATTR: T,
|
|
2013
|
+
ARIA_ATTR: L,
|
|
2014
|
+
IS_SCRIPT_OR_DATA: B,
|
|
2015
|
+
ATTR_WHITESPACE: W,
|
|
2016
|
+
CUSTOM_ELEMENT: le
|
|
2017
|
+
} = Qr;
|
|
1813
2018
|
let {
|
|
1814
|
-
IS_ALLOWED_URI:
|
|
1815
|
-
} =
|
|
1816
|
-
const
|
|
1817
|
-
let
|
|
1818
|
-
const
|
|
1819
|
-
let
|
|
2019
|
+
IS_ALLOWED_URI: bt
|
|
2020
|
+
} = Qr, Y = null;
|
|
2021
|
+
const br = A({}, [...Xr, ...er, ...tr, ...rr, ...Kr]);
|
|
2022
|
+
let J = null;
|
|
2023
|
+
const hr = A({}, [...Zr, ...nr, ...Jr, ...Tt]);
|
|
2024
|
+
let z = Object.seal(Qe(null, {
|
|
1820
2025
|
tagNameCheck: {
|
|
1821
2026
|
writable: !0,
|
|
1822
2027
|
configurable: !1,
|
|
@@ -1835,8 +2040,8 @@ function fn() {
|
|
|
1835
2040
|
enumerable: !0,
|
|
1836
2041
|
value: !1
|
|
1837
2042
|
}
|
|
1838
|
-
})),
|
|
1839
|
-
const
|
|
2043
|
+
})), ot = null, ht = null;
|
|
2044
|
+
const Re = Object.seal(Qe(null, {
|
|
1840
2045
|
tagCheck: {
|
|
1841
2046
|
writable: !0,
|
|
1842
2047
|
configurable: !1,
|
|
@@ -1850,335 +2055,335 @@ function fn() {
|
|
|
1850
2055
|
value: null
|
|
1851
2056
|
}
|
|
1852
2057
|
}));
|
|
1853
|
-
let
|
|
1854
|
-
const
|
|
1855
|
-
let
|
|
1856
|
-
const
|
|
1857
|
-
let
|
|
1858
|
-
const
|
|
1859
|
-
let
|
|
1860
|
-
const
|
|
1861
|
-
let
|
|
1862
|
-
const
|
|
1863
|
-
let
|
|
1864
|
-
const
|
|
1865
|
-
let
|
|
1866
|
-
const
|
|
1867
|
-
let G = null,
|
|
1868
|
-
const
|
|
2058
|
+
let vr = !0, Pt = !0, xr = !1, yr = !0, Ve = !1, it = !0, Be = !1, zt = !1, Ht = !1, Ge = !1, vt = !1, xt = !1, kr = !0, wr = !1;
|
|
2059
|
+
const Cr = "user-content-";
|
|
2060
|
+
let Ut = !0, at = !1, Ye = {}, xe = null;
|
|
2061
|
+
const Wt = A({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
2062
|
+
let Tr = null;
|
|
2063
|
+
const Ar = A({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2064
|
+
let qt = null;
|
|
2065
|
+
const Sr = A({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), yt = "http://www.w3.org/1998/Math/MathML", kt = "http://www.w3.org/2000/svg", ye = "http://www.w3.org/1999/xhtml";
|
|
2066
|
+
let Xe = ye, jt = !1, Gt = null;
|
|
2067
|
+
const Mn = A({}, [yt, kt, ye], Qt);
|
|
2068
|
+
let Yt = A({}, ["mi", "mo", "mn", "ms", "mtext"]), Xt = A({}, ["annotation-xml"]);
|
|
2069
|
+
const Fn = A({}, ["title", "style", "font", "a", "script"]);
|
|
2070
|
+
let lt = null;
|
|
2071
|
+
const $n = ["application/xhtml+xml", "text/html"], Pn = "text/html";
|
|
2072
|
+
let G = null, Ke = null;
|
|
2073
|
+
const zn = r.createElement("form"), Er = function(o) {
|
|
1869
2074
|
return o instanceof RegExp || o instanceof Function;
|
|
1870
|
-
},
|
|
2075
|
+
}, Kt = function() {
|
|
1871
2076
|
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1872
|
-
if (
|
|
2077
|
+
if (Ke && Ke === o)
|
|
1873
2078
|
return;
|
|
1874
|
-
(!o || typeof o != "object") && (o = {}), o =
|
|
1875
|
-
|
|
1876
|
-
const
|
|
1877
|
-
if (
|
|
2079
|
+
(!o || typeof o != "object") && (o = {}), o = se(o), lt = // eslint-disable-next-line unicorn/prefer-includes
|
|
2080
|
+
$n.indexOf(o.PARSER_MEDIA_TYPE) === -1 ? Pn : o.PARSER_MEDIA_TYPE, G = lt === "application/xhtml+xml" ? Qt : gt, Y = $(o, "ALLOWED_TAGS") && oe(o.ALLOWED_TAGS) ? A({}, o.ALLOWED_TAGS, G) : br, J = $(o, "ALLOWED_ATTR") && oe(o.ALLOWED_ATTR) ? A({}, o.ALLOWED_ATTR, G) : hr, Gt = $(o, "ALLOWED_NAMESPACES") && oe(o.ALLOWED_NAMESPACES) ? A({}, o.ALLOWED_NAMESPACES, Qt) : Mn, qt = $(o, "ADD_URI_SAFE_ATTR") && oe(o.ADD_URI_SAFE_ATTR) ? A(se(Sr), o.ADD_URI_SAFE_ATTR, G) : Sr, Tr = $(o, "ADD_DATA_URI_TAGS") && oe(o.ADD_DATA_URI_TAGS) ? A(se(Ar), o.ADD_DATA_URI_TAGS, G) : Ar, xe = $(o, "FORBID_CONTENTS") && oe(o.FORBID_CONTENTS) ? A({}, o.FORBID_CONTENTS, G) : Wt, ot = $(o, "FORBID_TAGS") && oe(o.FORBID_TAGS) ? A({}, o.FORBID_TAGS, G) : se({}), ht = $(o, "FORBID_ATTR") && oe(o.FORBID_ATTR) ? A({}, o.FORBID_ATTR, G) : se({}), Ye = $(o, "USE_PROFILES") ? o.USE_PROFILES && typeof o.USE_PROFILES == "object" ? se(o.USE_PROFILES) : o.USE_PROFILES : !1, vr = o.ALLOW_ARIA_ATTR !== !1, Pt = o.ALLOW_DATA_ATTR !== !1, xr = o.ALLOW_UNKNOWN_PROTOCOLS || !1, yr = o.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ve = o.SAFE_FOR_TEMPLATES || !1, it = o.SAFE_FOR_XML !== !1, Be = o.WHOLE_DOCUMENT || !1, Ge = o.RETURN_DOM || !1, vt = o.RETURN_DOM_FRAGMENT || !1, xt = o.RETURN_TRUSTED_TYPE || !1, Ht = o.FORCE_BODY || !1, kr = o.SANITIZE_DOM !== !1, wr = o.SANITIZE_NAMED_PROPS || !1, Ut = o.KEEP_CONTENT !== !1, at = o.IN_PLACE || !1, bt = sa(o.ALLOWED_URI_REGEXP) ? o.ALLOWED_URI_REGEXP : Cn, Xe = typeof o.NAMESPACE == "string" ? o.NAMESPACE : ye, Yt = $(o, "MATHML_TEXT_INTEGRATION_POINTS") && o.MATHML_TEXT_INTEGRATION_POINTS && typeof o.MATHML_TEXT_INTEGRATION_POINTS == "object" ? se(o.MATHML_TEXT_INTEGRATION_POINTS) : A({}, ["mi", "mo", "mn", "ms", "mtext"]), Xt = $(o, "HTML_INTEGRATION_POINTS") && o.HTML_INTEGRATION_POINTS && typeof o.HTML_INTEGRATION_POINTS == "object" ? se(o.HTML_INTEGRATION_POINTS) : A({}, ["annotation-xml"]);
|
|
2081
|
+
const p = $(o, "CUSTOM_ELEMENT_HANDLING") && o.CUSTOM_ELEMENT_HANDLING && typeof o.CUSTOM_ELEMENT_HANDLING == "object" ? se(o.CUSTOM_ELEMENT_HANDLING) : Qe(null);
|
|
2082
|
+
if (z = Qe(null), $(p, "tagNameCheck") && Er(p.tagNameCheck) && (z.tagNameCheck = p.tagNameCheck), $(p, "attributeNameCheck") && Er(p.attributeNameCheck) && (z.attributeNameCheck = p.attributeNameCheck), $(p, "allowCustomizedBuiltInElements") && typeof p.allowCustomizedBuiltInElements == "boolean" && (z.allowCustomizedBuiltInElements = p.allowCustomizedBuiltInElements), Ve && (Pt = !1), vt && (Ge = !0), Ye && (Y = A({}, Kr), J = Qe(null), Ye.html === !0 && (A(Y, Xr), A(J, Zr)), Ye.svg === !0 && (A(Y, er), A(J, nr), A(J, Tt)), Ye.svgFilters === !0 && (A(Y, tr), A(J, nr), A(J, Tt)), Ye.mathMl === !0 && (A(Y, rr), A(J, Jr), A(J, Tt))), Re.tagCheck = null, Re.attributeCheck = null, $(o, "ADD_TAGS") && (typeof o.ADD_TAGS == "function" ? Re.tagCheck = o.ADD_TAGS : oe(o.ADD_TAGS) && (Y === br && (Y = se(Y)), A(Y, o.ADD_TAGS, G))), $(o, "ADD_ATTR") && (typeof o.ADD_ATTR == "function" ? Re.attributeCheck = o.ADD_ATTR : oe(o.ADD_ATTR) && (J === hr && (J = se(J)), A(J, o.ADD_ATTR, G))), $(o, "ADD_URI_SAFE_ATTR") && oe(o.ADD_URI_SAFE_ATTR) && A(qt, o.ADD_URI_SAFE_ATTR, G), $(o, "FORBID_CONTENTS") && oe(o.FORBID_CONTENTS) && (xe === Wt && (xe = se(xe)), A(xe, o.FORBID_CONTENTS, G)), $(o, "ADD_FORBID_CONTENTS") && oe(o.ADD_FORBID_CONTENTS) && (xe === Wt && (xe = se(xe)), A(xe, o.ADD_FORBID_CONTENTS, G)), Ut && (Y["#text"] = !0), Be && A(Y, ["html", "head", "body"]), Y.table && (A(Y, ["tbody"]), delete ot.tbody), o.TRUSTED_TYPES_POLICY) {
|
|
1878
2083
|
if (typeof o.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
1879
|
-
throw
|
|
2084
|
+
throw Ct('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
1880
2085
|
if (typeof o.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
1881
|
-
throw
|
|
1882
|
-
|
|
2086
|
+
throw Ct('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
2087
|
+
C = o.TRUSTED_TYPES_POLICY, V = C.createHTML("");
|
|
1883
2088
|
} else
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
},
|
|
1887
|
-
let
|
|
1888
|
-
(!
|
|
1889
|
-
namespaceURI:
|
|
2089
|
+
C === void 0 && (C = ya(b, i)), C !== null && typeof V == "string" && (V = C.createHTML(""));
|
|
2090
|
+
ae && ae(o), Ke = o;
|
|
2091
|
+
}, Rr = A({}, [...er, ...tr, ...ca]), Or = A({}, [...rr, ...da]), Hn = function(o) {
|
|
2092
|
+
let p = R(o);
|
|
2093
|
+
(!p || !p.tagName) && (p = {
|
|
2094
|
+
namespaceURI: Xe,
|
|
1890
2095
|
tagName: "template"
|
|
1891
2096
|
});
|
|
1892
|
-
const
|
|
1893
|
-
return
|
|
1894
|
-
},
|
|
1895
|
-
|
|
2097
|
+
const h = gt(o.tagName), _ = gt(p.tagName);
|
|
2098
|
+
return Gt[o.namespaceURI] ? o.namespaceURI === kt ? p.namespaceURI === ye ? h === "svg" : p.namespaceURI === yt ? h === "svg" && (_ === "annotation-xml" || Yt[_]) : !!Rr[h] : o.namespaceURI === yt ? p.namespaceURI === ye ? h === "math" : p.namespaceURI === kt ? h === "math" && Xt[_] : !!Or[h] : o.namespaceURI === ye ? p.namespaceURI === kt && !Xt[_] || p.namespaceURI === yt && !Yt[_] ? !1 : !Or[h] && (Fn[h] || !Rr[h]) : !!(lt === "application/xhtml+xml" && Gt[o.namespaceURI]) : !1;
|
|
2099
|
+
}, Me = function(o) {
|
|
2100
|
+
ct(t.removed, {
|
|
1896
2101
|
element: o
|
|
1897
2102
|
});
|
|
1898
2103
|
try {
|
|
1899
|
-
|
|
2104
|
+
R(o).removeChild(o);
|
|
1900
2105
|
} catch {
|
|
1901
|
-
|
|
2106
|
+
y(o);
|
|
1902
2107
|
}
|
|
1903
|
-
},
|
|
2108
|
+
}, Fe = function(o, p) {
|
|
1904
2109
|
try {
|
|
1905
|
-
|
|
1906
|
-
attribute:
|
|
1907
|
-
from:
|
|
2110
|
+
ct(t.removed, {
|
|
2111
|
+
attribute: p.getAttributeNode(o),
|
|
2112
|
+
from: p
|
|
1908
2113
|
});
|
|
1909
2114
|
} catch {
|
|
1910
|
-
|
|
2115
|
+
ct(t.removed, {
|
|
1911
2116
|
attribute: null,
|
|
1912
|
-
from:
|
|
2117
|
+
from: p
|
|
1913
2118
|
});
|
|
1914
2119
|
}
|
|
1915
|
-
if (
|
|
1916
|
-
if (
|
|
2120
|
+
if (p.removeAttribute(o), o === "is")
|
|
2121
|
+
if (Ge || vt)
|
|
1917
2122
|
try {
|
|
1918
|
-
|
|
2123
|
+
Me(p);
|
|
1919
2124
|
} catch {
|
|
1920
2125
|
}
|
|
1921
2126
|
else
|
|
1922
2127
|
try {
|
|
1923
|
-
|
|
2128
|
+
p.setAttribute(o, "");
|
|
1924
2129
|
} catch {
|
|
1925
2130
|
}
|
|
1926
|
-
},
|
|
1927
|
-
let
|
|
1928
|
-
if (
|
|
2131
|
+
}, _r = function(o) {
|
|
2132
|
+
let p = null, h = null;
|
|
2133
|
+
if (Ht)
|
|
1929
2134
|
o = "<remove></remove>" + o;
|
|
1930
2135
|
else {
|
|
1931
|
-
const
|
|
1932
|
-
|
|
2136
|
+
const F = qr(o, /^[\r\n\t ]+/);
|
|
2137
|
+
h = F && F[0];
|
|
1933
2138
|
}
|
|
1934
|
-
|
|
1935
|
-
const
|
|
1936
|
-
if (
|
|
2139
|
+
lt === "application/xhtml+xml" && Xe === ye && (o = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + o + "</body></html>");
|
|
2140
|
+
const _ = C ? C.createHTML(o) : o;
|
|
2141
|
+
if (Xe === ye)
|
|
1937
2142
|
try {
|
|
1938
|
-
|
|
2143
|
+
p = new g().parseFromString(_, lt);
|
|
1939
2144
|
} catch {
|
|
1940
2145
|
}
|
|
1941
|
-
if (!
|
|
1942
|
-
|
|
2146
|
+
if (!p || !p.documentElement) {
|
|
2147
|
+
p = M.createDocument(Xe, "template", null);
|
|
1943
2148
|
try {
|
|
1944
|
-
|
|
2149
|
+
p.documentElement.innerHTML = jt ? V : _;
|
|
1945
2150
|
} catch {
|
|
1946
2151
|
}
|
|
1947
2152
|
}
|
|
1948
|
-
const
|
|
1949
|
-
return o &&
|
|
1950
|
-
},
|
|
1951
|
-
return
|
|
2153
|
+
const Q = p.body || p.documentElement;
|
|
2154
|
+
return o && h && Q.insertBefore(r.createTextNode(h), Q.childNodes[0] || null), Xe === ye ? fe.call(p, Be ? "html" : "body")[0] : Be ? p.documentElement : Q;
|
|
2155
|
+
}, Nr = function(o) {
|
|
2156
|
+
return N.call(
|
|
1952
2157
|
o.ownerDocument || o,
|
|
1953
2158
|
o,
|
|
1954
2159
|
// eslint-disable-next-line no-bitwise
|
|
1955
2160
|
c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION,
|
|
1956
2161
|
null
|
|
1957
2162
|
);
|
|
1958
|
-
},
|
|
1959
|
-
return o instanceof
|
|
1960
|
-
},
|
|
1961
|
-
return typeof
|
|
2163
|
+
}, Zt = function(o) {
|
|
2164
|
+
return o instanceof m && (typeof o.nodeName != "string" || typeof o.textContent != "string" || typeof o.removeChild != "function" || !(o.attributes instanceof f) || typeof o.removeAttribute != "function" || typeof o.setAttribute != "function" || typeof o.namespaceURI != "string" || typeof o.insertBefore != "function" || typeof o.hasChildNodes != "function");
|
|
2165
|
+
}, Jt = function(o) {
|
|
2166
|
+
return typeof s == "function" && o instanceof s;
|
|
1962
2167
|
};
|
|
1963
|
-
function
|
|
1964
|
-
|
|
1965
|
-
|
|
2168
|
+
function Se(o, p, h) {
|
|
2169
|
+
st(o, (_) => {
|
|
2170
|
+
_.call(t, p, h, Ke);
|
|
1966
2171
|
});
|
|
1967
2172
|
}
|
|
1968
|
-
const
|
|
1969
|
-
let
|
|
1970
|
-
if (
|
|
1971
|
-
return
|
|
1972
|
-
const
|
|
1973
|
-
if (
|
|
1974
|
-
tagName:
|
|
1975
|
-
allowedTags:
|
|
1976
|
-
}),
|
|
1977
|
-
return
|
|
1978
|
-
if (
|
|
1979
|
-
if (!
|
|
2173
|
+
const Lr = function(o) {
|
|
2174
|
+
let p = null;
|
|
2175
|
+
if (Se(U.beforeSanitizeElements, o, null), Zt(o))
|
|
2176
|
+
return Me(o), !0;
|
|
2177
|
+
const h = G(o.nodeName);
|
|
2178
|
+
if (Se(U.uponSanitizeElement, o, {
|
|
2179
|
+
tagName: h,
|
|
2180
|
+
allowedTags: Y
|
|
2181
|
+
}), it && o.hasChildNodes() && !Jt(o.firstElementChild) && ee(/<[/\w!]/g, o.innerHTML) && ee(/<[/\w!]/g, o.textContent) || it && o.namespaceURI === ye && h === "style" && Jt(o.firstElementChild) || o.nodeType === ut.progressingInstruction || it && o.nodeType === ut.comment && ee(/<[/\w]/g, o.data))
|
|
2182
|
+
return Me(o), !0;
|
|
2183
|
+
if (ot[h] || !(Re.tagCheck instanceof Function && Re.tagCheck(h)) && !Y[h]) {
|
|
2184
|
+
if (!ot[h] && Ir(h) && (z.tagNameCheck instanceof RegExp && ee(z.tagNameCheck, h) || z.tagNameCheck instanceof Function && z.tagNameCheck(h)))
|
|
1980
2185
|
return !1;
|
|
1981
|
-
if (
|
|
1982
|
-
const
|
|
1983
|
-
if (
|
|
1984
|
-
const
|
|
1985
|
-
for (let
|
|
1986
|
-
const
|
|
1987
|
-
|
|
2186
|
+
if (Ut && !xe[h]) {
|
|
2187
|
+
const _ = R(o) || o.parentNode, Q = E(o) || o.childNodes;
|
|
2188
|
+
if (Q && _) {
|
|
2189
|
+
const F = Q.length;
|
|
2190
|
+
for (let Ee = F - 1; Ee >= 0; --Ee) {
|
|
2191
|
+
const ke = k(Q[Ee], !0);
|
|
2192
|
+
_.insertBefore(ke, w(o));
|
|
1988
2193
|
}
|
|
1989
2194
|
}
|
|
1990
2195
|
}
|
|
1991
|
-
return
|
|
2196
|
+
return Me(o), !0;
|
|
1992
2197
|
}
|
|
1993
|
-
return o instanceof
|
|
1994
|
-
|
|
1995
|
-
}), o.textContent !==
|
|
2198
|
+
return o instanceof u && !Hn(o) || (h === "noscript" || h === "noembed" || h === "noframes") && ee(/<\/no(script|embed|frames)/i, o.innerHTML) ? (Me(o), !0) : (Ve && o.nodeType === ut.text && (p = o.textContent, st([ve, Ae, re], (_) => {
|
|
2199
|
+
p = Je(p, _, " ");
|
|
2200
|
+
}), o.textContent !== p && (ct(t.removed, {
|
|
1996
2201
|
element: o.cloneNode()
|
|
1997
|
-
}), o.textContent =
|
|
1998
|
-
},
|
|
1999
|
-
if (
|
|
2202
|
+
}), o.textContent = p)), Se(U.afterSanitizeElements, o, null), !1);
|
|
2203
|
+
}, Dr = function(o, p, h) {
|
|
2204
|
+
if (ht[p] || kr && (p === "id" || p === "name") && (h in r || h in zn))
|
|
2000
2205
|
return !1;
|
|
2001
|
-
const
|
|
2002
|
-
if (!(
|
|
2003
|
-
if (!
|
|
2206
|
+
const _ = J[p] || Re.attributeCheck instanceof Function && Re.attributeCheck(p, o);
|
|
2207
|
+
if (!(Pt && !ht[p] && ee(T, p)) && !(vr && ee(L, p))) {
|
|
2208
|
+
if (!_ || ht[p]) {
|
|
2004
2209
|
if (
|
|
2005
2210
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
2006
2211
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2007
2212
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
2008
|
-
!(
|
|
2213
|
+
!(Ir(o) && (z.tagNameCheck instanceof RegExp && ee(z.tagNameCheck, o) || z.tagNameCheck instanceof Function && z.tagNameCheck(o)) && (z.attributeNameCheck instanceof RegExp && ee(z.attributeNameCheck, p) || z.attributeNameCheck instanceof Function && z.attributeNameCheck(p, o)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
2009
2214
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
2010
|
-
|
|
2215
|
+
p === "is" && z.allowCustomizedBuiltInElements && (z.tagNameCheck instanceof RegExp && ee(z.tagNameCheck, h) || z.tagNameCheck instanceof Function && z.tagNameCheck(h)))
|
|
2011
2216
|
) return !1;
|
|
2012
|
-
} else if (!
|
|
2217
|
+
} else if (!qt[p] && !ee(bt, Je(h, W, "")) && !((p === "src" || p === "xlink:href" || p === "href") && o !== "script" && jr(h, "data:") === 0 && Tr[o]) && !(xr && !ee(B, Je(h, W, ""))) && h)
|
|
2013
2218
|
return !1;
|
|
2014
2219
|
}
|
|
2015
2220
|
return !0;
|
|
2016
|
-
},
|
|
2017
|
-
return !
|
|
2018
|
-
},
|
|
2019
|
-
|
|
2221
|
+
}, Un = A({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), Ir = function(o) {
|
|
2222
|
+
return !Un[gt(o)] && ee(le, o);
|
|
2223
|
+
}, Vr = function(o) {
|
|
2224
|
+
Se(U.beforeSanitizeAttributes, o, null);
|
|
2020
2225
|
const {
|
|
2021
|
-
attributes:
|
|
2226
|
+
attributes: p
|
|
2022
2227
|
} = o;
|
|
2023
|
-
if (!
|
|
2228
|
+
if (!p || Zt(o))
|
|
2024
2229
|
return;
|
|
2025
|
-
const
|
|
2230
|
+
const h = {
|
|
2026
2231
|
attrName: "",
|
|
2027
2232
|
attrValue: "",
|
|
2028
2233
|
keepAttr: !0,
|
|
2029
|
-
allowedAttributes:
|
|
2234
|
+
allowedAttributes: J,
|
|
2030
2235
|
forceKeepAttr: void 0
|
|
2031
2236
|
};
|
|
2032
|
-
let
|
|
2033
|
-
for (;
|
|
2034
|
-
const
|
|
2035
|
-
name:
|
|
2036
|
-
namespaceURI:
|
|
2037
|
-
value:
|
|
2038
|
-
} =
|
|
2039
|
-
let X =
|
|
2040
|
-
if (
|
|
2041
|
-
|
|
2237
|
+
let _ = p.length;
|
|
2238
|
+
for (; _--; ) {
|
|
2239
|
+
const Q = p[_], {
|
|
2240
|
+
name: F,
|
|
2241
|
+
namespaceURI: Ee,
|
|
2242
|
+
value: ke
|
|
2243
|
+
} = Q, ne = G(F), Oe = ke;
|
|
2244
|
+
let X = F === "value" ? Oe : ra(Oe);
|
|
2245
|
+
if (h.attrName = ne, h.attrValue = X, h.keepAttr = !0, h.forceKeepAttr = void 0, Se(U.uponSanitizeAttribute, o, h), X = h.attrValue, wr && (ne === "id" || ne === "name") && jr(X, Cr) !== 0 && (Fe(F, o), X = Cr + X), it && ee(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, X)) {
|
|
2246
|
+
Fe(F, o);
|
|
2042
2247
|
continue;
|
|
2043
2248
|
}
|
|
2044
|
-
if (
|
|
2045
|
-
|
|
2249
|
+
if (ne === "attributename" && qr(X, "href")) {
|
|
2250
|
+
Fe(F, o);
|
|
2046
2251
|
continue;
|
|
2047
2252
|
}
|
|
2048
|
-
if (
|
|
2253
|
+
if (h.forceKeepAttr)
|
|
2049
2254
|
continue;
|
|
2050
|
-
if (!
|
|
2051
|
-
|
|
2255
|
+
if (!h.keepAttr) {
|
|
2256
|
+
Fe(F, o);
|
|
2052
2257
|
continue;
|
|
2053
2258
|
}
|
|
2054
|
-
if (!
|
|
2055
|
-
|
|
2259
|
+
if (!yr && ee(/\/>/i, X)) {
|
|
2260
|
+
Fe(F, o);
|
|
2056
2261
|
continue;
|
|
2057
2262
|
}
|
|
2058
|
-
|
|
2059
|
-
X =
|
|
2263
|
+
Ve && st([ve, Ae, re], (Wn) => {
|
|
2264
|
+
X = Je(X, Wn, " ");
|
|
2060
2265
|
});
|
|
2061
|
-
const
|
|
2062
|
-
if (!
|
|
2063
|
-
|
|
2266
|
+
const Mr = G(o.nodeName);
|
|
2267
|
+
if (!Dr(Mr, ne, X)) {
|
|
2268
|
+
Fe(F, o);
|
|
2064
2269
|
continue;
|
|
2065
2270
|
}
|
|
2066
|
-
if (
|
|
2067
|
-
switch (
|
|
2271
|
+
if (C && typeof b == "object" && typeof b.getAttributeType == "function" && !Ee)
|
|
2272
|
+
switch (b.getAttributeType(Mr, ne)) {
|
|
2068
2273
|
case "TrustedHTML": {
|
|
2069
|
-
X =
|
|
2274
|
+
X = C.createHTML(X);
|
|
2070
2275
|
break;
|
|
2071
2276
|
}
|
|
2072
2277
|
case "TrustedScriptURL": {
|
|
2073
|
-
X =
|
|
2278
|
+
X = C.createScriptURL(X);
|
|
2074
2279
|
break;
|
|
2075
2280
|
}
|
|
2076
2281
|
}
|
|
2077
|
-
if (X !==
|
|
2282
|
+
if (X !== Oe)
|
|
2078
2283
|
try {
|
|
2079
|
-
|
|
2284
|
+
Ee ? o.setAttributeNS(Ee, F, X) : o.setAttribute(F, X), Zt(o) ? Me(o) : Wr(t.removed);
|
|
2080
2285
|
} catch {
|
|
2081
|
-
|
|
2286
|
+
Fe(F, o);
|
|
2082
2287
|
}
|
|
2083
2288
|
}
|
|
2084
|
-
|
|
2085
|
-
},
|
|
2086
|
-
let
|
|
2087
|
-
const
|
|
2088
|
-
for (
|
|
2089
|
-
|
|
2090
|
-
|
|
2289
|
+
Se(U.afterSanitizeAttributes, o, null);
|
|
2290
|
+
}, Br = function(o) {
|
|
2291
|
+
let p = null;
|
|
2292
|
+
const h = Nr(o);
|
|
2293
|
+
for (Se(U.beforeSanitizeShadowDOM, o, null); p = h.nextNode(); )
|
|
2294
|
+
Se(U.uponSanitizeShadowNode, p, null), Lr(p), Vr(p), p.content instanceof a && Br(p.content);
|
|
2295
|
+
Se(U.afterSanitizeShadowDOM, o, null);
|
|
2091
2296
|
};
|
|
2092
2297
|
return t.sanitize = function(o) {
|
|
2093
|
-
let
|
|
2094
|
-
if (
|
|
2095
|
-
throw
|
|
2298
|
+
let p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, h = null, _ = null, Q = null, F = null;
|
|
2299
|
+
if (jt = !o, jt && (o = "<!-->"), typeof o != "string" && !Jt(o) && (o = la(o), typeof o != "string"))
|
|
2300
|
+
throw Ct("dirty is not a string, aborting");
|
|
2096
2301
|
if (!t.isSupported)
|
|
2097
2302
|
return o;
|
|
2098
|
-
if (
|
|
2099
|
-
const
|
|
2100
|
-
if (typeof
|
|
2101
|
-
const
|
|
2102
|
-
if (!
|
|
2103
|
-
throw
|
|
2303
|
+
if (zt || Kt(p), t.removed = [], typeof o == "string" && (at = !1), at) {
|
|
2304
|
+
const ne = o.nodeName;
|
|
2305
|
+
if (typeof ne == "string") {
|
|
2306
|
+
const Oe = G(ne);
|
|
2307
|
+
if (!Y[Oe] || ot[Oe])
|
|
2308
|
+
throw Ct("root node is forbidden and cannot be sanitized in-place");
|
|
2104
2309
|
}
|
|
2105
|
-
} else if (o instanceof
|
|
2106
|
-
|
|
2310
|
+
} else if (o instanceof s)
|
|
2311
|
+
h = _r("<!---->"), _ = h.ownerDocument.importNode(o, !0), _.nodeType === ut.element && _.nodeName === "BODY" || _.nodeName === "HTML" ? h = _ : h.appendChild(_);
|
|
2107
2312
|
else {
|
|
2108
|
-
if (!
|
|
2313
|
+
if (!Ge && !Ve && !Be && // eslint-disable-next-line unicorn/prefer-includes
|
|
2109
2314
|
o.indexOf("<") === -1)
|
|
2110
|
-
return
|
|
2111
|
-
if (
|
|
2112
|
-
return
|
|
2113
|
-
}
|
|
2114
|
-
|
|
2115
|
-
const
|
|
2116
|
-
for (;
|
|
2117
|
-
|
|
2118
|
-
if (
|
|
2315
|
+
return C && xt ? C.createHTML(o) : o;
|
|
2316
|
+
if (h = _r(o), !h)
|
|
2317
|
+
return Ge ? null : xt ? V : "";
|
|
2318
|
+
}
|
|
2319
|
+
h && Ht && Me(h.firstChild);
|
|
2320
|
+
const Ee = Nr(at ? o : h);
|
|
2321
|
+
for (; Q = Ee.nextNode(); )
|
|
2322
|
+
Lr(Q), Vr(Q), Q.content instanceof a && Br(Q.content);
|
|
2323
|
+
if (at)
|
|
2119
2324
|
return o;
|
|
2120
|
-
if (
|
|
2121
|
-
if (
|
|
2122
|
-
|
|
2123
|
-
let
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
}),
|
|
2325
|
+
if (Ge) {
|
|
2326
|
+
if (Ve) {
|
|
2327
|
+
h.normalize();
|
|
2328
|
+
let ne = h.innerHTML;
|
|
2329
|
+
st([ve, Ae, re], (Oe) => {
|
|
2330
|
+
ne = Je(ne, Oe, " ");
|
|
2331
|
+
}), h.innerHTML = ne;
|
|
2127
2332
|
}
|
|
2128
|
-
if (
|
|
2129
|
-
for (
|
|
2130
|
-
|
|
2333
|
+
if (vt)
|
|
2334
|
+
for (F = Z.call(h.ownerDocument); h.firstChild; )
|
|
2335
|
+
F.appendChild(h.firstChild);
|
|
2131
2336
|
else
|
|
2132
|
-
|
|
2133
|
-
return (
|
|
2134
|
-
}
|
|
2135
|
-
let
|
|
2136
|
-
return
|
|
2137
|
-
` +
|
|
2138
|
-
|
|
2139
|
-
}),
|
|
2337
|
+
F = h;
|
|
2338
|
+
return (J.shadowroot || J.shadowrootmode) && (F = he.call(n, F, !0)), F;
|
|
2339
|
+
}
|
|
2340
|
+
let ke = Be ? h.outerHTML : h.innerHTML;
|
|
2341
|
+
return Be && Y["!doctype"] && h.ownerDocument && h.ownerDocument.doctype && h.ownerDocument.doctype.name && ee(Tn, h.ownerDocument.doctype.name) && (ke = "<!DOCTYPE " + h.ownerDocument.doctype.name + `>
|
|
2342
|
+
` + ke), Ve && st([ve, Ae, re], (ne) => {
|
|
2343
|
+
ke = Je(ke, ne, " ");
|
|
2344
|
+
}), C && xt ? C.createHTML(ke) : ke;
|
|
2140
2345
|
}, t.setConfig = function() {
|
|
2141
2346
|
let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2142
|
-
|
|
2347
|
+
Kt(o), zt = !0;
|
|
2143
2348
|
}, t.clearConfig = function() {
|
|
2144
|
-
|
|
2145
|
-
}, t.isValidAttribute = function(o,
|
|
2146
|
-
|
|
2147
|
-
const
|
|
2148
|
-
return
|
|
2149
|
-
}, t.addHook = function(o,
|
|
2150
|
-
typeof
|
|
2151
|
-
}, t.removeHook = function(o,
|
|
2152
|
-
if (
|
|
2153
|
-
const
|
|
2154
|
-
return
|
|
2155
|
-
}
|
|
2156
|
-
return
|
|
2349
|
+
Ke = null, zt = !1;
|
|
2350
|
+
}, t.isValidAttribute = function(o, p, h) {
|
|
2351
|
+
Ke || Kt({});
|
|
2352
|
+
const _ = G(o), Q = G(p);
|
|
2353
|
+
return Dr(_, Q, h);
|
|
2354
|
+
}, t.addHook = function(o, p) {
|
|
2355
|
+
typeof p == "function" && ct(U[o], p);
|
|
2356
|
+
}, t.removeHook = function(o, p) {
|
|
2357
|
+
if (p !== void 0) {
|
|
2358
|
+
const h = ea(U[o], p);
|
|
2359
|
+
return h === -1 ? void 0 : ta(U[o], h, 1)[0];
|
|
2360
|
+
}
|
|
2361
|
+
return Wr(U[o]);
|
|
2157
2362
|
}, t.removeHooks = function(o) {
|
|
2158
|
-
|
|
2363
|
+
U[o] = [];
|
|
2159
2364
|
}, t.removeAllHooks = function() {
|
|
2160
|
-
|
|
2365
|
+
U = en();
|
|
2161
2366
|
}, t;
|
|
2162
2367
|
}
|
|
2163
|
-
var
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
const
|
|
2368
|
+
var j = An(), ka = j;
|
|
2369
|
+
j.sanitize.bind(j);
|
|
2370
|
+
j.isSupported;
|
|
2371
|
+
j.addHook.bind(j);
|
|
2372
|
+
j.removeHook.bind(j);
|
|
2373
|
+
j.removeHooks.bind(j);
|
|
2374
|
+
j.removeAllHooks.bind(j);
|
|
2375
|
+
j.setConfig.bind(j);
|
|
2376
|
+
j.clearConfig.bind(j);
|
|
2377
|
+
j.isValidAttribute.bind(j);
|
|
2378
|
+
j.version;
|
|
2379
|
+
j.removed;
|
|
2380
|
+
const tn = {
|
|
2176
2381
|
left: "tooltip-left",
|
|
2177
2382
|
top: "tooltip-top",
|
|
2178
2383
|
bottom: "tooltip-bottom",
|
|
2179
2384
|
right: "tooltip-right"
|
|
2180
2385
|
};
|
|
2181
|
-
|
|
2386
|
+
de({
|
|
2182
2387
|
name: "Tooltip",
|
|
2183
2388
|
props: {
|
|
2184
2389
|
id: {
|
|
@@ -2211,96 +2416,96 @@ xe({
|
|
|
2211
2416
|
}
|
|
2212
2417
|
},
|
|
2213
2418
|
setup(e) {
|
|
2214
|
-
const t = "invisible opacity-0 group-hover:visible group-hover:opacity-100 group-focus:visible group-focus:opacity-100 z-[100] tooltip", r =
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
].join(" ")), n =
|
|
2419
|
+
const t = "invisible opacity-0 group-hover:visible group-hover:opacity-100 group-focus:visible group-focus:opacity-100 z-[100] tooltip", r = S(() => [
|
|
2420
|
+
zr.bgColorVariant({ color: e.color }),
|
|
2421
|
+
zr.textColorVariant({ color: e.textColor })
|
|
2422
|
+
].join(" ")), n = S(() => ({ width: `${e.width}px` })), i = S(() => tn[e.direction] || tn.right), a = S(() => [
|
|
2218
2423
|
t,
|
|
2219
2424
|
i.value,
|
|
2220
2425
|
r.value,
|
|
2221
2426
|
e.customClass
|
|
2222
2427
|
]);
|
|
2223
|
-
return () =>
|
|
2428
|
+
return () => Zn("div", {
|
|
2224
2429
|
id: e.id,
|
|
2225
2430
|
class: a.value,
|
|
2226
2431
|
role: "tooltip",
|
|
2227
|
-
innerHTML:
|
|
2432
|
+
innerHTML: ka.sanitize(e.content),
|
|
2228
2433
|
style: [n.value]
|
|
2229
2434
|
});
|
|
2230
2435
|
}
|
|
2231
2436
|
});
|
|
2232
|
-
const
|
|
2437
|
+
const Ot = Math.min, $e = Math.max, _t = Math.round, At = Math.floor, we = (e) => ({
|
|
2233
2438
|
x: e,
|
|
2234
2439
|
y: e
|
|
2235
|
-
}),
|
|
2440
|
+
}), wa = {
|
|
2236
2441
|
left: "right",
|
|
2237
2442
|
right: "left",
|
|
2238
2443
|
bottom: "top",
|
|
2239
2444
|
top: "bottom"
|
|
2240
|
-
},
|
|
2445
|
+
}, Ca = {
|
|
2241
2446
|
start: "end",
|
|
2242
2447
|
end: "start"
|
|
2243
2448
|
};
|
|
2244
|
-
function
|
|
2245
|
-
return
|
|
2449
|
+
function rn(e, t, r) {
|
|
2450
|
+
return $e(e, Ot(t, r));
|
|
2246
2451
|
}
|
|
2247
|
-
function
|
|
2452
|
+
function It(e, t) {
|
|
2248
2453
|
return typeof e == "function" ? e(t) : e;
|
|
2249
2454
|
}
|
|
2250
|
-
function
|
|
2455
|
+
function He(e) {
|
|
2251
2456
|
return e.split("-")[0];
|
|
2252
2457
|
}
|
|
2253
|
-
function
|
|
2458
|
+
function Vt(e) {
|
|
2254
2459
|
return e.split("-")[1];
|
|
2255
2460
|
}
|
|
2256
|
-
function
|
|
2461
|
+
function Sn(e) {
|
|
2257
2462
|
return e === "x" ? "y" : "x";
|
|
2258
2463
|
}
|
|
2259
|
-
function
|
|
2464
|
+
function En(e) {
|
|
2260
2465
|
return e === "y" ? "height" : "width";
|
|
2261
2466
|
}
|
|
2262
|
-
const
|
|
2263
|
-
function
|
|
2264
|
-
return
|
|
2467
|
+
const Ta = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
2468
|
+
function Le(e) {
|
|
2469
|
+
return Ta.has(He(e)) ? "y" : "x";
|
|
2265
2470
|
}
|
|
2266
|
-
function
|
|
2267
|
-
return
|
|
2471
|
+
function Rn(e) {
|
|
2472
|
+
return Sn(Le(e));
|
|
2268
2473
|
}
|
|
2269
|
-
function
|
|
2474
|
+
function Aa(e, t, r) {
|
|
2270
2475
|
r === void 0 && (r = !1);
|
|
2271
|
-
const n =
|
|
2476
|
+
const n = Vt(e), i = Rn(e), a = En(i);
|
|
2272
2477
|
let l = i === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
2273
|
-
return t.reference[a] > t.floating[a] && (l =
|
|
2478
|
+
return t.reference[a] > t.floating[a] && (l = Nt(l)), [l, Nt(l)];
|
|
2274
2479
|
}
|
|
2275
|
-
function
|
|
2276
|
-
const t =
|
|
2277
|
-
return [
|
|
2480
|
+
function Sa(e) {
|
|
2481
|
+
const t = Nt(e);
|
|
2482
|
+
return [cr(e), t, cr(t)];
|
|
2278
2483
|
}
|
|
2279
|
-
function
|
|
2280
|
-
return e.replace(/start|end/g, (t) =>
|
|
2484
|
+
function cr(e) {
|
|
2485
|
+
return e.replace(/start|end/g, (t) => Ca[t]);
|
|
2281
2486
|
}
|
|
2282
|
-
const
|
|
2283
|
-
function
|
|
2487
|
+
const nn = ["left", "right"], on = ["right", "left"], Ea = ["top", "bottom"], Ra = ["bottom", "top"];
|
|
2488
|
+
function Oa(e, t, r) {
|
|
2284
2489
|
switch (e) {
|
|
2285
2490
|
case "top":
|
|
2286
2491
|
case "bottom":
|
|
2287
|
-
return r ? t ?
|
|
2492
|
+
return r ? t ? on : nn : t ? nn : on;
|
|
2288
2493
|
case "left":
|
|
2289
2494
|
case "right":
|
|
2290
|
-
return t ?
|
|
2495
|
+
return t ? Ea : Ra;
|
|
2291
2496
|
default:
|
|
2292
2497
|
return [];
|
|
2293
2498
|
}
|
|
2294
2499
|
}
|
|
2295
|
-
function
|
|
2296
|
-
const i =
|
|
2297
|
-
let a =
|
|
2298
|
-
return i && (a = a.map((l) => l + "-" + i), t && (a = a.concat(a.map(
|
|
2500
|
+
function _a(e, t, r, n) {
|
|
2501
|
+
const i = Vt(e);
|
|
2502
|
+
let a = Oa(He(e), r === "start", n);
|
|
2503
|
+
return i && (a = a.map((l) => l + "-" + i), t && (a = a.concat(a.map(cr)))), a;
|
|
2299
2504
|
}
|
|
2300
|
-
function
|
|
2301
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
2505
|
+
function Nt(e) {
|
|
2506
|
+
return e.replace(/left|right|bottom|top/g, (t) => wa[t]);
|
|
2302
2507
|
}
|
|
2303
|
-
function
|
|
2508
|
+
function Na(e) {
|
|
2304
2509
|
return {
|
|
2305
2510
|
top: 0,
|
|
2306
2511
|
right: 0,
|
|
@@ -2309,15 +2514,15 @@ function ra(e) {
|
|
|
2309
2514
|
...e
|
|
2310
2515
|
};
|
|
2311
2516
|
}
|
|
2312
|
-
function
|
|
2313
|
-
return typeof e != "number" ?
|
|
2517
|
+
function La(e) {
|
|
2518
|
+
return typeof e != "number" ? Na(e) : {
|
|
2314
2519
|
top: e,
|
|
2315
2520
|
right: e,
|
|
2316
2521
|
bottom: e,
|
|
2317
2522
|
left: e
|
|
2318
2523
|
};
|
|
2319
2524
|
}
|
|
2320
|
-
function
|
|
2525
|
+
function Lt(e) {
|
|
2321
2526
|
const {
|
|
2322
2527
|
x: t,
|
|
2323
2528
|
y: r,
|
|
@@ -2335,55 +2540,55 @@ function Et(e) {
|
|
|
2335
2540
|
y: r
|
|
2336
2541
|
};
|
|
2337
2542
|
}
|
|
2338
|
-
function
|
|
2543
|
+
function an(e, t, r) {
|
|
2339
2544
|
let {
|
|
2340
2545
|
reference: n,
|
|
2341
2546
|
floating: i
|
|
2342
2547
|
} = e;
|
|
2343
|
-
const a =
|
|
2344
|
-
let
|
|
2345
|
-
switch (
|
|
2548
|
+
const a = Le(t), l = Rn(t), s = En(l), u = He(t), c = a === "y", f = n.x + n.width / 2 - i.width / 2, m = n.y + n.height / 2 - i.height / 2, g = n[s] / 2 - i[s] / 2;
|
|
2549
|
+
let b;
|
|
2550
|
+
switch (u) {
|
|
2346
2551
|
case "top":
|
|
2347
|
-
|
|
2552
|
+
b = {
|
|
2348
2553
|
x: f,
|
|
2349
2554
|
y: n.y - i.height
|
|
2350
2555
|
};
|
|
2351
2556
|
break;
|
|
2352
2557
|
case "bottom":
|
|
2353
|
-
|
|
2558
|
+
b = {
|
|
2354
2559
|
x: f,
|
|
2355
2560
|
y: n.y + n.height
|
|
2356
2561
|
};
|
|
2357
2562
|
break;
|
|
2358
2563
|
case "right":
|
|
2359
|
-
|
|
2564
|
+
b = {
|
|
2360
2565
|
x: n.x + n.width,
|
|
2361
|
-
y:
|
|
2566
|
+
y: m
|
|
2362
2567
|
};
|
|
2363
2568
|
break;
|
|
2364
2569
|
case "left":
|
|
2365
|
-
|
|
2570
|
+
b = {
|
|
2366
2571
|
x: n.x - i.width,
|
|
2367
|
-
y:
|
|
2572
|
+
y: m
|
|
2368
2573
|
};
|
|
2369
2574
|
break;
|
|
2370
2575
|
default:
|
|
2371
|
-
|
|
2576
|
+
b = {
|
|
2372
2577
|
x: n.x,
|
|
2373
2578
|
y: n.y
|
|
2374
2579
|
};
|
|
2375
2580
|
}
|
|
2376
|
-
switch (
|
|
2581
|
+
switch (Vt(t)) {
|
|
2377
2582
|
case "start":
|
|
2378
|
-
|
|
2583
|
+
b[l] -= g * (r && c ? -1 : 1);
|
|
2379
2584
|
break;
|
|
2380
2585
|
case "end":
|
|
2381
|
-
|
|
2586
|
+
b[l] += g * (r && c ? -1 : 1);
|
|
2382
2587
|
break;
|
|
2383
2588
|
}
|
|
2384
|
-
return
|
|
2589
|
+
return b;
|
|
2385
2590
|
}
|
|
2386
|
-
async function
|
|
2591
|
+
async function Da(e, t) {
|
|
2387
2592
|
var r;
|
|
2388
2593
|
t === void 0 && (t = {});
|
|
2389
2594
|
const {
|
|
@@ -2391,108 +2596,108 @@ async function oa(e, t) {
|
|
|
2391
2596
|
y: i,
|
|
2392
2597
|
platform: a,
|
|
2393
2598
|
rects: l,
|
|
2394
|
-
elements:
|
|
2395
|
-
strategy:
|
|
2599
|
+
elements: s,
|
|
2600
|
+
strategy: u
|
|
2396
2601
|
} = e, {
|
|
2397
2602
|
boundary: c = "clippingAncestors",
|
|
2398
2603
|
rootBoundary: f = "viewport",
|
|
2399
|
-
elementContext:
|
|
2604
|
+
elementContext: m = "floating",
|
|
2400
2605
|
altBoundary: g = !1,
|
|
2401
|
-
padding:
|
|
2402
|
-
} =
|
|
2403
|
-
element: (r = await (a.isElement == null ? void 0 : a.isElement(
|
|
2606
|
+
padding: b = 0
|
|
2607
|
+
} = It(t, e), x = La(b), y = s[g ? m === "floating" ? "reference" : "floating" : m], w = Lt(await a.getClippingRect({
|
|
2608
|
+
element: (r = await (a.isElement == null ? void 0 : a.isElement(y))) == null || r ? y : y.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
|
|
2404
2609
|
boundary: c,
|
|
2405
2610
|
rootBoundary: f,
|
|
2406
|
-
strategy:
|
|
2407
|
-
})),
|
|
2611
|
+
strategy: u
|
|
2612
|
+
})), E = m === "floating" ? {
|
|
2408
2613
|
x: n,
|
|
2409
2614
|
y: i,
|
|
2410
2615
|
width: l.floating.width,
|
|
2411
2616
|
height: l.floating.height
|
|
2412
|
-
} : l.reference,
|
|
2617
|
+
} : l.reference, R = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), C = await (a.isElement == null ? void 0 : a.isElement(R)) ? await (a.getScale == null ? void 0 : a.getScale(R)) || {
|
|
2413
2618
|
x: 1,
|
|
2414
2619
|
y: 1
|
|
2415
2620
|
} : {
|
|
2416
2621
|
x: 1,
|
|
2417
2622
|
y: 1
|
|
2418
|
-
},
|
|
2419
|
-
elements:
|
|
2420
|
-
rect:
|
|
2421
|
-
offsetParent:
|
|
2422
|
-
strategy:
|
|
2423
|
-
}) :
|
|
2623
|
+
}, V = Lt(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
2624
|
+
elements: s,
|
|
2625
|
+
rect: E,
|
|
2626
|
+
offsetParent: R,
|
|
2627
|
+
strategy: u
|
|
2628
|
+
}) : E);
|
|
2424
2629
|
return {
|
|
2425
|
-
top: (
|
|
2426
|
-
bottom: (
|
|
2427
|
-
left: (
|
|
2428
|
-
right: (
|
|
2630
|
+
top: (w.top - V.top + x.top) / C.y,
|
|
2631
|
+
bottom: (V.bottom - w.bottom + x.bottom) / C.y,
|
|
2632
|
+
left: (w.left - V.left + x.left) / C.x,
|
|
2633
|
+
right: (V.right - w.right + x.right) / C.x
|
|
2429
2634
|
};
|
|
2430
2635
|
}
|
|
2431
|
-
const
|
|
2636
|
+
const Ia = async (e, t, r) => {
|
|
2432
2637
|
const {
|
|
2433
2638
|
placement: n = "bottom",
|
|
2434
2639
|
strategy: i = "absolute",
|
|
2435
2640
|
middleware: a = [],
|
|
2436
2641
|
platform: l
|
|
2437
|
-
} = r,
|
|
2642
|
+
} = r, s = a.filter(Boolean), u = await (l.isRTL == null ? void 0 : l.isRTL(t));
|
|
2438
2643
|
let c = await l.getElementRects({
|
|
2439
2644
|
reference: e,
|
|
2440
2645
|
floating: t,
|
|
2441
2646
|
strategy: i
|
|
2442
2647
|
}), {
|
|
2443
2648
|
x: f,
|
|
2444
|
-
y:
|
|
2445
|
-
} =
|
|
2446
|
-
for (let
|
|
2447
|
-
var
|
|
2649
|
+
y: m
|
|
2650
|
+
} = an(c, n, u), g = n, b = {}, x = 0;
|
|
2651
|
+
for (let y = 0; y < s.length; y++) {
|
|
2652
|
+
var k;
|
|
2448
2653
|
const {
|
|
2449
|
-
name:
|
|
2450
|
-
fn:
|
|
2451
|
-
} =
|
|
2452
|
-
x:
|
|
2453
|
-
y:
|
|
2454
|
-
data:
|
|
2455
|
-
reset:
|
|
2456
|
-
} = await
|
|
2654
|
+
name: w,
|
|
2655
|
+
fn: E
|
|
2656
|
+
} = s[y], {
|
|
2657
|
+
x: R,
|
|
2658
|
+
y: C,
|
|
2659
|
+
data: V,
|
|
2660
|
+
reset: M
|
|
2661
|
+
} = await E({
|
|
2457
2662
|
x: f,
|
|
2458
|
-
y:
|
|
2663
|
+
y: m,
|
|
2459
2664
|
initialPlacement: n,
|
|
2460
2665
|
placement: g,
|
|
2461
2666
|
strategy: i,
|
|
2462
|
-
middlewareData:
|
|
2667
|
+
middlewareData: b,
|
|
2463
2668
|
rects: c,
|
|
2464
2669
|
platform: {
|
|
2465
2670
|
...l,
|
|
2466
|
-
detectOverflow: (
|
|
2671
|
+
detectOverflow: (k = l.detectOverflow) != null ? k : Da
|
|
2467
2672
|
},
|
|
2468
2673
|
elements: {
|
|
2469
2674
|
reference: e,
|
|
2470
2675
|
floating: t
|
|
2471
2676
|
}
|
|
2472
2677
|
});
|
|
2473
|
-
f =
|
|
2474
|
-
...
|
|
2475
|
-
[
|
|
2476
|
-
...
|
|
2477
|
-
...
|
|
2678
|
+
f = R ?? f, m = C ?? m, b = {
|
|
2679
|
+
...b,
|
|
2680
|
+
[w]: {
|
|
2681
|
+
...b[w],
|
|
2682
|
+
...V
|
|
2478
2683
|
}
|
|
2479
|
-
},
|
|
2684
|
+
}, M && x <= 50 && (x++, typeof M == "object" && (M.placement && (g = M.placement), M.rects && (c = M.rects === !0 ? await l.getElementRects({
|
|
2480
2685
|
reference: e,
|
|
2481
2686
|
floating: t,
|
|
2482
2687
|
strategy: i
|
|
2483
|
-
}) :
|
|
2688
|
+
}) : M.rects), {
|
|
2484
2689
|
x: f,
|
|
2485
|
-
y:
|
|
2486
|
-
} =
|
|
2690
|
+
y: m
|
|
2691
|
+
} = an(c, g, u)), y = -1);
|
|
2487
2692
|
}
|
|
2488
2693
|
return {
|
|
2489
2694
|
x: f,
|
|
2490
|
-
y:
|
|
2695
|
+
y: m,
|
|
2491
2696
|
placement: g,
|
|
2492
2697
|
strategy: i,
|
|
2493
|
-
middlewareData:
|
|
2698
|
+
middlewareData: b
|
|
2494
2699
|
};
|
|
2495
|
-
},
|
|
2700
|
+
}, Va = function(e) {
|
|
2496
2701
|
return e === void 0 && (e = {}), {
|
|
2497
2702
|
name: "flip",
|
|
2498
2703
|
options: e,
|
|
@@ -2502,106 +2707,106 @@ const ia = async (e, t, r) => {
|
|
|
2502
2707
|
placement: i,
|
|
2503
2708
|
middlewareData: a,
|
|
2504
2709
|
rects: l,
|
|
2505
|
-
initialPlacement:
|
|
2506
|
-
platform:
|
|
2710
|
+
initialPlacement: s,
|
|
2711
|
+
platform: u,
|
|
2507
2712
|
elements: c
|
|
2508
2713
|
} = t, {
|
|
2509
2714
|
mainAxis: f = !0,
|
|
2510
|
-
crossAxis:
|
|
2715
|
+
crossAxis: m = !0,
|
|
2511
2716
|
fallbackPlacements: g,
|
|
2512
|
-
fallbackStrategy:
|
|
2513
|
-
fallbackAxisSideDirection:
|
|
2514
|
-
flipAlignment:
|
|
2515
|
-
...
|
|
2516
|
-
} =
|
|
2717
|
+
fallbackStrategy: b = "bestFit",
|
|
2718
|
+
fallbackAxisSideDirection: x = "none",
|
|
2719
|
+
flipAlignment: k = !0,
|
|
2720
|
+
...y
|
|
2721
|
+
} = It(e, t);
|
|
2517
2722
|
if ((r = a.arrow) != null && r.alignmentOffset)
|
|
2518
2723
|
return {};
|
|
2519
|
-
const
|
|
2520
|
-
!g &&
|
|
2521
|
-
const
|
|
2522
|
-
let
|
|
2523
|
-
if (f &&
|
|
2524
|
-
const re =
|
|
2525
|
-
|
|
2724
|
+
const w = He(i), E = Le(s), R = He(s) === s, C = await (u.isRTL == null ? void 0 : u.isRTL(c.floating)), V = g || (R || !k ? [Nt(s)] : Sa(s)), M = x !== "none";
|
|
2725
|
+
!g && M && V.push(..._a(s, k, x, C));
|
|
2726
|
+
const N = [s, ...V], Z = await u.detectOverflow(t, y), fe = [];
|
|
2727
|
+
let he = ((n = a.flip) == null ? void 0 : n.overflows) || [];
|
|
2728
|
+
if (f && fe.push(Z[w]), m) {
|
|
2729
|
+
const re = Aa(i, l, C);
|
|
2730
|
+
fe.push(Z[re[0]], Z[re[1]]);
|
|
2526
2731
|
}
|
|
2527
|
-
if (
|
|
2732
|
+
if (he = [...he, {
|
|
2528
2733
|
placement: i,
|
|
2529
|
-
overflows:
|
|
2530
|
-
}], !
|
|
2531
|
-
var
|
|
2532
|
-
const re = (((
|
|
2533
|
-
if (
|
|
2734
|
+
overflows: fe
|
|
2735
|
+
}], !fe.every((re) => re <= 0)) {
|
|
2736
|
+
var U, ve;
|
|
2737
|
+
const re = (((U = a.flip) == null ? void 0 : U.index) || 0) + 1, T = N[re];
|
|
2738
|
+
if (T && (!(m === "alignment" ? E !== Le(T) : !1) || // We leave the current main axis only if every placement on that axis
|
|
2534
2739
|
// overflows the main axis.
|
|
2535
|
-
|
|
2740
|
+
he.every((W) => Le(W.placement) === E ? W.overflows[0] > 0 : !0)))
|
|
2536
2741
|
return {
|
|
2537
2742
|
data: {
|
|
2538
2743
|
index: re,
|
|
2539
|
-
overflows:
|
|
2744
|
+
overflows: he
|
|
2540
2745
|
},
|
|
2541
2746
|
reset: {
|
|
2542
|
-
placement:
|
|
2747
|
+
placement: T
|
|
2543
2748
|
}
|
|
2544
2749
|
};
|
|
2545
|
-
let
|
|
2546
|
-
if (!
|
|
2547
|
-
switch (
|
|
2750
|
+
let L = (ve = he.filter((B) => B.overflows[0] <= 0).sort((B, W) => B.overflows[1] - W.overflows[1])[0]) == null ? void 0 : ve.placement;
|
|
2751
|
+
if (!L)
|
|
2752
|
+
switch (b) {
|
|
2548
2753
|
case "bestFit": {
|
|
2549
|
-
var
|
|
2550
|
-
const
|
|
2551
|
-
if (
|
|
2552
|
-
const
|
|
2553
|
-
return
|
|
2754
|
+
var Ae;
|
|
2755
|
+
const B = (Ae = he.filter((W) => {
|
|
2756
|
+
if (M) {
|
|
2757
|
+
const le = Le(W.placement);
|
|
2758
|
+
return le === E || // Create a bias to the `y` side axis due to horizontal
|
|
2554
2759
|
// reading directions favoring greater width.
|
|
2555
|
-
|
|
2760
|
+
le === "y";
|
|
2556
2761
|
}
|
|
2557
2762
|
return !0;
|
|
2558
|
-
}).map((
|
|
2559
|
-
|
|
2763
|
+
}).map((W) => [W.placement, W.overflows.filter((le) => le > 0).reduce((le, bt) => le + bt, 0)]).sort((W, le) => W[1] - le[1])[0]) == null ? void 0 : Ae[0];
|
|
2764
|
+
B && (L = B);
|
|
2560
2765
|
break;
|
|
2561
2766
|
}
|
|
2562
2767
|
case "initialPlacement":
|
|
2563
|
-
|
|
2768
|
+
L = s;
|
|
2564
2769
|
break;
|
|
2565
2770
|
}
|
|
2566
|
-
if (i !==
|
|
2771
|
+
if (i !== L)
|
|
2567
2772
|
return {
|
|
2568
2773
|
reset: {
|
|
2569
|
-
placement:
|
|
2774
|
+
placement: L
|
|
2570
2775
|
}
|
|
2571
2776
|
};
|
|
2572
2777
|
}
|
|
2573
2778
|
return {};
|
|
2574
2779
|
}
|
|
2575
2780
|
};
|
|
2576
|
-
},
|
|
2577
|
-
async function
|
|
2781
|
+
}, Ba = /* @__PURE__ */ new Set(["left", "top"]);
|
|
2782
|
+
async function Ma(e, t) {
|
|
2578
2783
|
const {
|
|
2579
2784
|
placement: r,
|
|
2580
2785
|
platform: n,
|
|
2581
2786
|
elements: i
|
|
2582
|
-
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), l =
|
|
2787
|
+
} = e, a = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), l = He(r), s = Vt(r), u = Le(r) === "y", c = Ba.has(l) ? -1 : 1, f = a && u ? -1 : 1, m = It(t, e);
|
|
2583
2788
|
let {
|
|
2584
2789
|
mainAxis: g,
|
|
2585
|
-
crossAxis:
|
|
2586
|
-
alignmentAxis:
|
|
2587
|
-
} = typeof
|
|
2588
|
-
mainAxis:
|
|
2790
|
+
crossAxis: b,
|
|
2791
|
+
alignmentAxis: x
|
|
2792
|
+
} = typeof m == "number" ? {
|
|
2793
|
+
mainAxis: m,
|
|
2589
2794
|
crossAxis: 0,
|
|
2590
2795
|
alignmentAxis: null
|
|
2591
2796
|
} : {
|
|
2592
|
-
mainAxis:
|
|
2593
|
-
crossAxis:
|
|
2594
|
-
alignmentAxis:
|
|
2797
|
+
mainAxis: m.mainAxis || 0,
|
|
2798
|
+
crossAxis: m.crossAxis || 0,
|
|
2799
|
+
alignmentAxis: m.alignmentAxis
|
|
2595
2800
|
};
|
|
2596
|
-
return
|
|
2597
|
-
x:
|
|
2801
|
+
return s && typeof x == "number" && (b = s === "end" ? x * -1 : x), u ? {
|
|
2802
|
+
x: b * f,
|
|
2598
2803
|
y: g * c
|
|
2599
2804
|
} : {
|
|
2600
2805
|
x: g * c,
|
|
2601
|
-
y:
|
|
2806
|
+
y: b * f
|
|
2602
2807
|
};
|
|
2603
2808
|
}
|
|
2604
|
-
const
|
|
2809
|
+
const Fa = function(e) {
|
|
2605
2810
|
return e === void 0 && (e = 0), {
|
|
2606
2811
|
name: "offset",
|
|
2607
2812
|
options: e,
|
|
@@ -2611,19 +2816,19 @@ const ca = function(e) {
|
|
|
2611
2816
|
x: i,
|
|
2612
2817
|
y: a,
|
|
2613
2818
|
placement: l,
|
|
2614
|
-
middlewareData:
|
|
2615
|
-
} = t,
|
|
2616
|
-
return l === ((r =
|
|
2617
|
-
x: i +
|
|
2618
|
-
y: a +
|
|
2819
|
+
middlewareData: s
|
|
2820
|
+
} = t, u = await Ma(t, e);
|
|
2821
|
+
return l === ((r = s.offset) == null ? void 0 : r.placement) && (n = s.arrow) != null && n.alignmentOffset ? {} : {
|
|
2822
|
+
x: i + u.x,
|
|
2823
|
+
y: a + u.y,
|
|
2619
2824
|
data: {
|
|
2620
|
-
...
|
|
2825
|
+
...u,
|
|
2621
2826
|
placement: l
|
|
2622
2827
|
}
|
|
2623
2828
|
};
|
|
2624
2829
|
}
|
|
2625
2830
|
};
|
|
2626
|
-
},
|
|
2831
|
+
}, $a = function(e) {
|
|
2627
2832
|
return e === void 0 && (e = {}), {
|
|
2628
2833
|
name: "shift",
|
|
2629
2834
|
options: e,
|
|
@@ -2635,95 +2840,95 @@ const ca = function(e) {
|
|
|
2635
2840
|
platform: a
|
|
2636
2841
|
} = t, {
|
|
2637
2842
|
mainAxis: l = !0,
|
|
2638
|
-
crossAxis:
|
|
2639
|
-
limiter:
|
|
2640
|
-
fn: (
|
|
2843
|
+
crossAxis: s = !1,
|
|
2844
|
+
limiter: u = {
|
|
2845
|
+
fn: (w) => {
|
|
2641
2846
|
let {
|
|
2642
|
-
x:
|
|
2643
|
-
y:
|
|
2644
|
-
} =
|
|
2847
|
+
x: E,
|
|
2848
|
+
y: R
|
|
2849
|
+
} = w;
|
|
2645
2850
|
return {
|
|
2646
|
-
x:
|
|
2647
|
-
y:
|
|
2851
|
+
x: E,
|
|
2852
|
+
y: R
|
|
2648
2853
|
};
|
|
2649
2854
|
}
|
|
2650
2855
|
},
|
|
2651
2856
|
...c
|
|
2652
|
-
} =
|
|
2857
|
+
} = It(e, t), f = {
|
|
2653
2858
|
x: r,
|
|
2654
2859
|
y: n
|
|
2655
|
-
},
|
|
2656
|
-
let
|
|
2860
|
+
}, m = await a.detectOverflow(t, c), g = Le(He(i)), b = Sn(g);
|
|
2861
|
+
let x = f[b], k = f[g];
|
|
2657
2862
|
if (l) {
|
|
2658
|
-
const
|
|
2659
|
-
|
|
2863
|
+
const w = b === "y" ? "top" : "left", E = b === "y" ? "bottom" : "right", R = x + m[w], C = x - m[E];
|
|
2864
|
+
x = rn(R, x, C);
|
|
2660
2865
|
}
|
|
2661
|
-
if (
|
|
2662
|
-
const
|
|
2663
|
-
|
|
2866
|
+
if (s) {
|
|
2867
|
+
const w = g === "y" ? "top" : "left", E = g === "y" ? "bottom" : "right", R = k + m[w], C = k - m[E];
|
|
2868
|
+
k = rn(R, k, C);
|
|
2664
2869
|
}
|
|
2665
|
-
const
|
|
2870
|
+
const y = u.fn({
|
|
2666
2871
|
...t,
|
|
2667
|
-
[
|
|
2668
|
-
[g]:
|
|
2872
|
+
[b]: x,
|
|
2873
|
+
[g]: k
|
|
2669
2874
|
});
|
|
2670
2875
|
return {
|
|
2671
|
-
...
|
|
2876
|
+
...y,
|
|
2672
2877
|
data: {
|
|
2673
|
-
x:
|
|
2674
|
-
y:
|
|
2878
|
+
x: y.x - r,
|
|
2879
|
+
y: y.y - n,
|
|
2675
2880
|
enabled: {
|
|
2676
|
-
[
|
|
2677
|
-
[g]:
|
|
2881
|
+
[b]: l,
|
|
2882
|
+
[g]: s
|
|
2678
2883
|
}
|
|
2679
2884
|
}
|
|
2680
2885
|
};
|
|
2681
2886
|
}
|
|
2682
2887
|
};
|
|
2683
2888
|
};
|
|
2684
|
-
function
|
|
2889
|
+
function Bt() {
|
|
2685
2890
|
return typeof window < "u";
|
|
2686
2891
|
}
|
|
2687
|
-
function
|
|
2688
|
-
return
|
|
2892
|
+
function je(e) {
|
|
2893
|
+
return fr(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2689
2894
|
}
|
|
2690
|
-
function
|
|
2895
|
+
function ce(e) {
|
|
2691
2896
|
var t;
|
|
2692
2897
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
2693
2898
|
}
|
|
2694
|
-
function
|
|
2899
|
+
function Te(e) {
|
|
2695
2900
|
var t;
|
|
2696
|
-
return (t = (
|
|
2901
|
+
return (t = (fr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
2697
2902
|
}
|
|
2698
|
-
function
|
|
2699
|
-
return
|
|
2903
|
+
function fr(e) {
|
|
2904
|
+
return Bt() ? e instanceof Node || e instanceof ce(e).Node : !1;
|
|
2700
2905
|
}
|
|
2701
|
-
function
|
|
2702
|
-
return
|
|
2906
|
+
function me(e) {
|
|
2907
|
+
return Bt() ? e instanceof Element || e instanceof ce(e).Element : !1;
|
|
2703
2908
|
}
|
|
2704
|
-
function
|
|
2705
|
-
return
|
|
2909
|
+
function Ce(e) {
|
|
2910
|
+
return Bt() ? e instanceof HTMLElement || e instanceof ce(e).HTMLElement : !1;
|
|
2706
2911
|
}
|
|
2707
|
-
function
|
|
2708
|
-
return !
|
|
2912
|
+
function ln(e) {
|
|
2913
|
+
return !Bt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ce(e).ShadowRoot;
|
|
2709
2914
|
}
|
|
2710
|
-
const
|
|
2711
|
-
function
|
|
2915
|
+
const Pa = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
2916
|
+
function mt(e) {
|
|
2712
2917
|
const {
|
|
2713
2918
|
overflow: t,
|
|
2714
2919
|
overflowX: r,
|
|
2715
2920
|
overflowY: n,
|
|
2716
2921
|
display: i
|
|
2717
|
-
} =
|
|
2718
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !
|
|
2922
|
+
} = be(e);
|
|
2923
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && !Pa.has(i);
|
|
2719
2924
|
}
|
|
2720
|
-
const
|
|
2721
|
-
function
|
|
2722
|
-
return
|
|
2925
|
+
const za = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
2926
|
+
function Ha(e) {
|
|
2927
|
+
return za.has(je(e));
|
|
2723
2928
|
}
|
|
2724
|
-
const
|
|
2725
|
-
function
|
|
2726
|
-
return
|
|
2929
|
+
const Ua = [":popover-open", ":modal"];
|
|
2930
|
+
function Mt(e) {
|
|
2931
|
+
return Ua.some((t) => {
|
|
2727
2932
|
try {
|
|
2728
2933
|
return e.matches(t);
|
|
2729
2934
|
} catch {
|
|
@@ -2731,34 +2936,34 @@ function Lt(e) {
|
|
|
2731
2936
|
}
|
|
2732
2937
|
});
|
|
2733
2938
|
}
|
|
2734
|
-
const
|
|
2735
|
-
function
|
|
2736
|
-
const t =
|
|
2737
|
-
return
|
|
2939
|
+
const Wa = ["transform", "translate", "scale", "rotate", "perspective"], qa = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ja = ["paint", "layout", "strict", "content"];
|
|
2940
|
+
function gr(e) {
|
|
2941
|
+
const t = pr(), r = me(e) ? be(e) : e;
|
|
2942
|
+
return Wa.some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || qa.some((n) => (r.willChange || "").includes(n)) || ja.some((n) => (r.contain || "").includes(n));
|
|
2738
2943
|
}
|
|
2739
|
-
function
|
|
2740
|
-
let t =
|
|
2741
|
-
for (;
|
|
2742
|
-
if (
|
|
2944
|
+
function Ga(e) {
|
|
2945
|
+
let t = Ie(e);
|
|
2946
|
+
for (; Ce(t) && !nt(t); ) {
|
|
2947
|
+
if (gr(t))
|
|
2743
2948
|
return t;
|
|
2744
|
-
if (
|
|
2949
|
+
if (Mt(t))
|
|
2745
2950
|
return null;
|
|
2746
|
-
t =
|
|
2951
|
+
t = Ie(t);
|
|
2747
2952
|
}
|
|
2748
2953
|
return null;
|
|
2749
2954
|
}
|
|
2750
|
-
function
|
|
2955
|
+
function pr() {
|
|
2751
2956
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
2752
2957
|
}
|
|
2753
|
-
const
|
|
2754
|
-
function
|
|
2755
|
-
return
|
|
2958
|
+
const Ya = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
2959
|
+
function nt(e) {
|
|
2960
|
+
return Ya.has(je(e));
|
|
2756
2961
|
}
|
|
2757
|
-
function
|
|
2758
|
-
return
|
|
2962
|
+
function be(e) {
|
|
2963
|
+
return ce(e).getComputedStyle(e);
|
|
2759
2964
|
}
|
|
2760
|
-
function
|
|
2761
|
-
return
|
|
2965
|
+
function Ft(e) {
|
|
2966
|
+
return me(e) ? {
|
|
2762
2967
|
scrollLeft: e.scrollLeft,
|
|
2763
2968
|
scrollTop: e.scrollTop
|
|
2764
2969
|
} : {
|
|
@@ -2766,189 +2971,189 @@ function Dt(e) {
|
|
|
2766
2971
|
scrollTop: e.scrollY
|
|
2767
2972
|
};
|
|
2768
2973
|
}
|
|
2769
|
-
function
|
|
2770
|
-
if (
|
|
2974
|
+
function Ie(e) {
|
|
2975
|
+
if (je(e) === "html")
|
|
2771
2976
|
return e;
|
|
2772
2977
|
const t = (
|
|
2773
2978
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
2774
2979
|
e.assignedSlot || // DOM Element detected.
|
|
2775
2980
|
e.parentNode || // ShadowRoot detected.
|
|
2776
|
-
|
|
2777
|
-
|
|
2981
|
+
ln(e) && e.host || // Fallback.
|
|
2982
|
+
Te(e)
|
|
2778
2983
|
);
|
|
2779
|
-
return
|
|
2984
|
+
return ln(t) ? t.host : t;
|
|
2780
2985
|
}
|
|
2781
|
-
function
|
|
2782
|
-
const t =
|
|
2783
|
-
return
|
|
2986
|
+
function On(e) {
|
|
2987
|
+
const t = Ie(e);
|
|
2988
|
+
return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ce(t) && mt(t) ? t : On(t);
|
|
2784
2989
|
}
|
|
2785
|
-
function
|
|
2990
|
+
function pt(e, t, r) {
|
|
2786
2991
|
var n;
|
|
2787
2992
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
2788
|
-
const i =
|
|
2993
|
+
const i = On(e), a = i === ((n = e.ownerDocument) == null ? void 0 : n.body), l = ce(i);
|
|
2789
2994
|
if (a) {
|
|
2790
|
-
const
|
|
2791
|
-
return t.concat(l, l.visualViewport || [],
|
|
2995
|
+
const s = dr(l);
|
|
2996
|
+
return t.concat(l, l.visualViewport || [], mt(i) ? i : [], s && r ? pt(s) : []);
|
|
2792
2997
|
}
|
|
2793
|
-
return t.concat(i,
|
|
2998
|
+
return t.concat(i, pt(i, [], r));
|
|
2794
2999
|
}
|
|
2795
|
-
function
|
|
3000
|
+
function dr(e) {
|
|
2796
3001
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2797
3002
|
}
|
|
2798
|
-
function
|
|
2799
|
-
const t =
|
|
3003
|
+
function _n(e) {
|
|
3004
|
+
const t = be(e);
|
|
2800
3005
|
let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
|
|
2801
|
-
const i =
|
|
2802
|
-
return
|
|
3006
|
+
const i = Ce(e), a = i ? e.offsetWidth : r, l = i ? e.offsetHeight : n, s = _t(r) !== a || _t(n) !== l;
|
|
3007
|
+
return s && (r = a, n = l), {
|
|
2803
3008
|
width: r,
|
|
2804
3009
|
height: n,
|
|
2805
|
-
$:
|
|
3010
|
+
$: s
|
|
2806
3011
|
};
|
|
2807
3012
|
}
|
|
2808
|
-
function
|
|
2809
|
-
return
|
|
3013
|
+
function mr(e) {
|
|
3014
|
+
return me(e) ? e : e.contextElement;
|
|
2810
3015
|
}
|
|
2811
|
-
function
|
|
2812
|
-
const t =
|
|
2813
|
-
if (!
|
|
2814
|
-
return
|
|
3016
|
+
function tt(e) {
|
|
3017
|
+
const t = mr(e);
|
|
3018
|
+
if (!Ce(t))
|
|
3019
|
+
return we(1);
|
|
2815
3020
|
const r = t.getBoundingClientRect(), {
|
|
2816
3021
|
width: n,
|
|
2817
3022
|
height: i,
|
|
2818
3023
|
$: a
|
|
2819
|
-
} =
|
|
2820
|
-
let l = (a ?
|
|
2821
|
-
return (!l || !Number.isFinite(l)) && (l = 1), (!
|
|
3024
|
+
} = _n(t);
|
|
3025
|
+
let l = (a ? _t(r.width) : r.width) / n, s = (a ? _t(r.height) : r.height) / i;
|
|
3026
|
+
return (!l || !Number.isFinite(l)) && (l = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
2822
3027
|
x: l,
|
|
2823
|
-
y:
|
|
3028
|
+
y: s
|
|
2824
3029
|
};
|
|
2825
3030
|
}
|
|
2826
|
-
const
|
|
2827
|
-
function
|
|
2828
|
-
const t =
|
|
2829
|
-
return !
|
|
3031
|
+
const Xa = /* @__PURE__ */ we(0);
|
|
3032
|
+
function Nn(e) {
|
|
3033
|
+
const t = ce(e);
|
|
3034
|
+
return !pr() || !t.visualViewport ? Xa : {
|
|
2830
3035
|
x: t.visualViewport.offsetLeft,
|
|
2831
3036
|
y: t.visualViewport.offsetTop
|
|
2832
3037
|
};
|
|
2833
3038
|
}
|
|
2834
|
-
function
|
|
2835
|
-
return t === void 0 && (t = !1), !r || t && r !==
|
|
3039
|
+
function Ka(e, t, r) {
|
|
3040
|
+
return t === void 0 && (t = !1), !r || t && r !== ce(e) ? !1 : t;
|
|
2836
3041
|
}
|
|
2837
|
-
function
|
|
3042
|
+
function Ue(e, t, r, n) {
|
|
2838
3043
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
2839
|
-
const i = e.getBoundingClientRect(), a =
|
|
2840
|
-
let l =
|
|
2841
|
-
t && (n ?
|
|
2842
|
-
const
|
|
2843
|
-
let
|
|
3044
|
+
const i = e.getBoundingClientRect(), a = mr(e);
|
|
3045
|
+
let l = we(1);
|
|
3046
|
+
t && (n ? me(n) && (l = tt(n)) : l = tt(e));
|
|
3047
|
+
const s = Ka(a, r, n) ? Nn(a) : we(0);
|
|
3048
|
+
let u = (i.left + s.x) / l.x, c = (i.top + s.y) / l.y, f = i.width / l.x, m = i.height / l.y;
|
|
2844
3049
|
if (a) {
|
|
2845
|
-
const g =
|
|
2846
|
-
let
|
|
2847
|
-
for (;
|
|
2848
|
-
const
|
|
2849
|
-
|
|
3050
|
+
const g = ce(a), b = n && me(n) ? ce(n) : n;
|
|
3051
|
+
let x = g, k = dr(x);
|
|
3052
|
+
for (; k && n && b !== x; ) {
|
|
3053
|
+
const y = tt(k), w = k.getBoundingClientRect(), E = be(k), R = w.left + (k.clientLeft + parseFloat(E.paddingLeft)) * y.x, C = w.top + (k.clientTop + parseFloat(E.paddingTop)) * y.y;
|
|
3054
|
+
u *= y.x, c *= y.y, f *= y.x, m *= y.y, u += R, c += C, x = ce(k), k = dr(x);
|
|
2850
3055
|
}
|
|
2851
3056
|
}
|
|
2852
|
-
return
|
|
3057
|
+
return Lt({
|
|
2853
3058
|
width: f,
|
|
2854
|
-
height:
|
|
2855
|
-
x:
|
|
3059
|
+
height: m,
|
|
3060
|
+
x: u,
|
|
2856
3061
|
y: c
|
|
2857
3062
|
});
|
|
2858
3063
|
}
|
|
2859
|
-
function
|
|
2860
|
-
const r =
|
|
2861
|
-
return t ? t.left + r :
|
|
3064
|
+
function $t(e, t) {
|
|
3065
|
+
const r = Ft(e).scrollLeft;
|
|
3066
|
+
return t ? t.left + r : Ue(Te(e)).left + r;
|
|
2862
3067
|
}
|
|
2863
|
-
function
|
|
2864
|
-
const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft -
|
|
3068
|
+
function Ln(e, t) {
|
|
3069
|
+
const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - $t(e, r), i = r.top + t.scrollTop;
|
|
2865
3070
|
return {
|
|
2866
3071
|
x: n,
|
|
2867
3072
|
y: i
|
|
2868
3073
|
};
|
|
2869
3074
|
}
|
|
2870
|
-
function
|
|
3075
|
+
function Za(e) {
|
|
2871
3076
|
let {
|
|
2872
3077
|
elements: t,
|
|
2873
3078
|
rect: r,
|
|
2874
3079
|
offsetParent: n,
|
|
2875
3080
|
strategy: i
|
|
2876
3081
|
} = e;
|
|
2877
|
-
const a = i === "fixed", l =
|
|
2878
|
-
if (n === l ||
|
|
3082
|
+
const a = i === "fixed", l = Te(n), s = t ? Mt(t.floating) : !1;
|
|
3083
|
+
if (n === l || s && a)
|
|
2879
3084
|
return r;
|
|
2880
|
-
let
|
|
3085
|
+
let u = {
|
|
2881
3086
|
scrollLeft: 0,
|
|
2882
3087
|
scrollTop: 0
|
|
2883
|
-
}, c =
|
|
2884
|
-
const f =
|
|
2885
|
-
if ((
|
|
2886
|
-
const
|
|
2887
|
-
c =
|
|
3088
|
+
}, c = we(1);
|
|
3089
|
+
const f = we(0), m = Ce(n);
|
|
3090
|
+
if ((m || !m && !a) && ((je(n) !== "body" || mt(l)) && (u = Ft(n)), Ce(n))) {
|
|
3091
|
+
const b = Ue(n);
|
|
3092
|
+
c = tt(n), f.x = b.x + n.clientLeft, f.y = b.y + n.clientTop;
|
|
2888
3093
|
}
|
|
2889
|
-
const g = l && !
|
|
3094
|
+
const g = l && !m && !a ? Ln(l, u) : we(0);
|
|
2890
3095
|
return {
|
|
2891
3096
|
width: r.width * c.x,
|
|
2892
3097
|
height: r.height * c.y,
|
|
2893
|
-
x: r.x * c.x -
|
|
2894
|
-
y: r.y * c.y -
|
|
3098
|
+
x: r.x * c.x - u.scrollLeft * c.x + f.x + g.x,
|
|
3099
|
+
y: r.y * c.y - u.scrollTop * c.y + f.y + g.y
|
|
2895
3100
|
};
|
|
2896
3101
|
}
|
|
2897
|
-
function
|
|
3102
|
+
function Ja(e) {
|
|
2898
3103
|
return Array.from(e.getClientRects());
|
|
2899
3104
|
}
|
|
2900
|
-
function
|
|
2901
|
-
const t =
|
|
2902
|
-
let l = -r.scrollLeft +
|
|
2903
|
-
const
|
|
2904
|
-
return
|
|
3105
|
+
function Qa(e) {
|
|
3106
|
+
const t = Te(e), r = Ft(e), n = e.ownerDocument.body, i = $e(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), a = $e(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
|
|
3107
|
+
let l = -r.scrollLeft + $t(e);
|
|
3108
|
+
const s = -r.scrollTop;
|
|
3109
|
+
return be(n).direction === "rtl" && (l += $e(t.clientWidth, n.clientWidth) - i), {
|
|
2905
3110
|
width: i,
|
|
2906
3111
|
height: a,
|
|
2907
3112
|
x: l,
|
|
2908
|
-
y:
|
|
3113
|
+
y: s
|
|
2909
3114
|
};
|
|
2910
3115
|
}
|
|
2911
|
-
const
|
|
2912
|
-
function
|
|
2913
|
-
const r =
|
|
2914
|
-
let a = n.clientWidth, l = n.clientHeight,
|
|
3116
|
+
const sn = 25;
|
|
3117
|
+
function el(e, t) {
|
|
3118
|
+
const r = ce(e), n = Te(e), i = r.visualViewport;
|
|
3119
|
+
let a = n.clientWidth, l = n.clientHeight, s = 0, u = 0;
|
|
2915
3120
|
if (i) {
|
|
2916
3121
|
a = i.width, l = i.height;
|
|
2917
|
-
const f =
|
|
2918
|
-
(!f || f && t === "fixed") && (
|
|
3122
|
+
const f = pr();
|
|
3123
|
+
(!f || f && t === "fixed") && (s = i.offsetLeft, u = i.offsetTop);
|
|
2919
3124
|
}
|
|
2920
|
-
const c =
|
|
3125
|
+
const c = $t(n);
|
|
2921
3126
|
if (c <= 0) {
|
|
2922
|
-
const f = n.ownerDocument,
|
|
2923
|
-
|
|
2924
|
-
} else c <=
|
|
3127
|
+
const f = n.ownerDocument, m = f.body, g = getComputedStyle(m), b = f.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, x = Math.abs(n.clientWidth - m.clientWidth - b);
|
|
3128
|
+
x <= sn && (a -= x);
|
|
3129
|
+
} else c <= sn && (a += c);
|
|
2925
3130
|
return {
|
|
2926
3131
|
width: a,
|
|
2927
3132
|
height: l,
|
|
2928
|
-
x:
|
|
2929
|
-
y:
|
|
3133
|
+
x: s,
|
|
3134
|
+
y: u
|
|
2930
3135
|
};
|
|
2931
3136
|
}
|
|
2932
|
-
const
|
|
2933
|
-
function
|
|
2934
|
-
const r =
|
|
3137
|
+
const tl = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
3138
|
+
function rl(e, t) {
|
|
3139
|
+
const r = Ue(e, !0, t === "fixed"), n = r.top + e.clientTop, i = r.left + e.clientLeft, a = Ce(e) ? tt(e) : we(1), l = e.clientWidth * a.x, s = e.clientHeight * a.y, u = i * a.x, c = n * a.y;
|
|
2935
3140
|
return {
|
|
2936
3141
|
width: l,
|
|
2937
|
-
height:
|
|
2938
|
-
x:
|
|
3142
|
+
height: s,
|
|
3143
|
+
x: u,
|
|
2939
3144
|
y: c
|
|
2940
3145
|
};
|
|
2941
3146
|
}
|
|
2942
|
-
function
|
|
3147
|
+
function cn(e, t, r) {
|
|
2943
3148
|
let n;
|
|
2944
3149
|
if (t === "viewport")
|
|
2945
|
-
n =
|
|
3150
|
+
n = el(e, r);
|
|
2946
3151
|
else if (t === "document")
|
|
2947
|
-
n =
|
|
2948
|
-
else if (
|
|
2949
|
-
n =
|
|
3152
|
+
n = Qa(Te(e));
|
|
3153
|
+
else if (me(t))
|
|
3154
|
+
n = rl(t, r);
|
|
2950
3155
|
else {
|
|
2951
|
-
const i =
|
|
3156
|
+
const i = Nn(e);
|
|
2952
3157
|
n = {
|
|
2953
3158
|
x: t.x - i.x,
|
|
2954
3159
|
y: t.y - i.y,
|
|
@@ -2956,110 +3161,110 @@ function Kr(e, t, r) {
|
|
|
2956
3161
|
height: t.height
|
|
2957
3162
|
};
|
|
2958
3163
|
}
|
|
2959
|
-
return
|
|
3164
|
+
return Lt(n);
|
|
2960
3165
|
}
|
|
2961
|
-
function
|
|
2962
|
-
const r =
|
|
2963
|
-
return r === t || !
|
|
3166
|
+
function Dn(e, t) {
|
|
3167
|
+
const r = Ie(e);
|
|
3168
|
+
return r === t || !me(r) || nt(r) ? !1 : be(r).position === "fixed" || Dn(r, t);
|
|
2964
3169
|
}
|
|
2965
|
-
function
|
|
3170
|
+
function nl(e, t) {
|
|
2966
3171
|
const r = t.get(e);
|
|
2967
3172
|
if (r)
|
|
2968
3173
|
return r;
|
|
2969
|
-
let n =
|
|
2970
|
-
const a =
|
|
2971
|
-
let l = a ?
|
|
2972
|
-
for (;
|
|
2973
|
-
const
|
|
2974
|
-
!
|
|
3174
|
+
let n = pt(e, [], !1).filter((s) => me(s) && je(s) !== "body"), i = null;
|
|
3175
|
+
const a = be(e).position === "fixed";
|
|
3176
|
+
let l = a ? Ie(e) : e;
|
|
3177
|
+
for (; me(l) && !nt(l); ) {
|
|
3178
|
+
const s = be(l), u = gr(l);
|
|
3179
|
+
!u && s.position === "fixed" && (i = null), (a ? !u && !i : !u && s.position === "static" && !!i && tl.has(i.position) || mt(l) && !u && Dn(e, l)) ? n = n.filter((f) => f !== l) : i = s, l = Ie(l);
|
|
2975
3180
|
}
|
|
2976
3181
|
return t.set(e, n), n;
|
|
2977
3182
|
}
|
|
2978
|
-
function
|
|
3183
|
+
function ol(e) {
|
|
2979
3184
|
let {
|
|
2980
3185
|
element: t,
|
|
2981
3186
|
boundary: r,
|
|
2982
3187
|
rootBoundary: n,
|
|
2983
3188
|
strategy: i
|
|
2984
3189
|
} = e;
|
|
2985
|
-
const l = [...r === "clippingAncestors" ?
|
|
2986
|
-
const
|
|
2987
|
-
return c.top =
|
|
2988
|
-
},
|
|
3190
|
+
const l = [...r === "clippingAncestors" ? Mt(t) ? [] : nl(t, this._c) : [].concat(r), n], s = l[0], u = l.reduce((c, f) => {
|
|
3191
|
+
const m = cn(t, f, i);
|
|
3192
|
+
return c.top = $e(m.top, c.top), c.right = Ot(m.right, c.right), c.bottom = Ot(m.bottom, c.bottom), c.left = $e(m.left, c.left), c;
|
|
3193
|
+
}, cn(t, s, i));
|
|
2989
3194
|
return {
|
|
2990
|
-
width:
|
|
2991
|
-
height:
|
|
2992
|
-
x:
|
|
2993
|
-
y:
|
|
3195
|
+
width: u.right - u.left,
|
|
3196
|
+
height: u.bottom - u.top,
|
|
3197
|
+
x: u.left,
|
|
3198
|
+
y: u.top
|
|
2994
3199
|
};
|
|
2995
3200
|
}
|
|
2996
|
-
function
|
|
3201
|
+
function il(e) {
|
|
2997
3202
|
const {
|
|
2998
3203
|
width: t,
|
|
2999
3204
|
height: r
|
|
3000
|
-
} =
|
|
3205
|
+
} = _n(e);
|
|
3001
3206
|
return {
|
|
3002
3207
|
width: t,
|
|
3003
3208
|
height: r
|
|
3004
3209
|
};
|
|
3005
3210
|
}
|
|
3006
|
-
function
|
|
3007
|
-
const n =
|
|
3008
|
-
let
|
|
3211
|
+
function al(e, t, r) {
|
|
3212
|
+
const n = Ce(t), i = Te(t), a = r === "fixed", l = Ue(e, !0, a, t);
|
|
3213
|
+
let s = {
|
|
3009
3214
|
scrollLeft: 0,
|
|
3010
3215
|
scrollTop: 0
|
|
3011
3216
|
};
|
|
3012
|
-
const
|
|
3217
|
+
const u = we(0);
|
|
3013
3218
|
function c() {
|
|
3014
|
-
|
|
3219
|
+
u.x = $t(i);
|
|
3015
3220
|
}
|
|
3016
3221
|
if (n || !n && !a)
|
|
3017
|
-
if ((
|
|
3018
|
-
const
|
|
3019
|
-
|
|
3222
|
+
if ((je(t) !== "body" || mt(i)) && (s = Ft(t)), n) {
|
|
3223
|
+
const b = Ue(t, !0, a, t);
|
|
3224
|
+
u.x = b.x + t.clientLeft, u.y = b.y + t.clientTop;
|
|
3020
3225
|
} else i && c();
|
|
3021
3226
|
a && !n && i && c();
|
|
3022
|
-
const f = i && !n && !a ?
|
|
3227
|
+
const f = i && !n && !a ? Ln(i, s) : we(0), m = l.left + s.scrollLeft - u.x - f.x, g = l.top + s.scrollTop - u.y - f.y;
|
|
3023
3228
|
return {
|
|
3024
|
-
x:
|
|
3229
|
+
x: m,
|
|
3025
3230
|
y: g,
|
|
3026
3231
|
width: l.width,
|
|
3027
3232
|
height: l.height
|
|
3028
3233
|
};
|
|
3029
3234
|
}
|
|
3030
|
-
function
|
|
3031
|
-
return
|
|
3235
|
+
function or(e) {
|
|
3236
|
+
return be(e).position === "static";
|
|
3032
3237
|
}
|
|
3033
|
-
function
|
|
3034
|
-
if (!
|
|
3238
|
+
function dn(e, t) {
|
|
3239
|
+
if (!Ce(e) || be(e).position === "fixed")
|
|
3035
3240
|
return null;
|
|
3036
3241
|
if (t)
|
|
3037
3242
|
return t(e);
|
|
3038
3243
|
let r = e.offsetParent;
|
|
3039
|
-
return
|
|
3244
|
+
return Te(e) === r && (r = r.ownerDocument.body), r;
|
|
3040
3245
|
}
|
|
3041
|
-
function
|
|
3042
|
-
const r =
|
|
3043
|
-
if (
|
|
3246
|
+
function In(e, t) {
|
|
3247
|
+
const r = ce(e);
|
|
3248
|
+
if (Mt(e))
|
|
3044
3249
|
return r;
|
|
3045
|
-
if (!
|
|
3046
|
-
let i =
|
|
3047
|
-
for (; i && !
|
|
3048
|
-
if (
|
|
3250
|
+
if (!Ce(e)) {
|
|
3251
|
+
let i = Ie(e);
|
|
3252
|
+
for (; i && !nt(i); ) {
|
|
3253
|
+
if (me(i) && !or(i))
|
|
3049
3254
|
return i;
|
|
3050
|
-
i =
|
|
3255
|
+
i = Ie(i);
|
|
3051
3256
|
}
|
|
3052
3257
|
return r;
|
|
3053
3258
|
}
|
|
3054
|
-
let n =
|
|
3055
|
-
for (; n &&
|
|
3056
|
-
n =
|
|
3057
|
-
return n &&
|
|
3259
|
+
let n = dn(e, t);
|
|
3260
|
+
for (; n && Ha(n) && or(n); )
|
|
3261
|
+
n = dn(n, t);
|
|
3262
|
+
return n && nt(n) && or(n) && !gr(n) ? r : n || Ga(e) || r;
|
|
3058
3263
|
}
|
|
3059
|
-
const
|
|
3060
|
-
const t = this.getOffsetParent ||
|
|
3264
|
+
const ll = async function(e) {
|
|
3265
|
+
const t = this.getOffsetParent || In, r = this.getDimensions, n = await r(e.floating);
|
|
3061
3266
|
return {
|
|
3062
|
-
reference:
|
|
3267
|
+
reference: al(e.reference, await t(e.floating), e.strategy),
|
|
3063
3268
|
floating: {
|
|
3064
3269
|
x: 0,
|
|
3065
3270
|
y: 0,
|
|
@@ -3068,224 +3273,312 @@ const Da = async function(e) {
|
|
|
3068
3273
|
}
|
|
3069
3274
|
};
|
|
3070
3275
|
};
|
|
3071
|
-
function
|
|
3072
|
-
return
|
|
3073
|
-
}
|
|
3074
|
-
const
|
|
3075
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
3076
|
-
getDocumentElement:
|
|
3077
|
-
getClippingRect:
|
|
3078
|
-
getOffsetParent:
|
|
3079
|
-
getElementRects:
|
|
3080
|
-
getClientRects:
|
|
3081
|
-
getDimensions:
|
|
3082
|
-
getScale:
|
|
3083
|
-
isElement:
|
|
3084
|
-
isRTL:
|
|
3276
|
+
function sl(e) {
|
|
3277
|
+
return be(e).direction === "rtl";
|
|
3278
|
+
}
|
|
3279
|
+
const cl = {
|
|
3280
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Za,
|
|
3281
|
+
getDocumentElement: Te,
|
|
3282
|
+
getClippingRect: ol,
|
|
3283
|
+
getOffsetParent: In,
|
|
3284
|
+
getElementRects: ll,
|
|
3285
|
+
getClientRects: Ja,
|
|
3286
|
+
getDimensions: il,
|
|
3287
|
+
getScale: tt,
|
|
3288
|
+
isElement: me,
|
|
3289
|
+
isRTL: sl
|
|
3085
3290
|
};
|
|
3086
|
-
function
|
|
3291
|
+
function Vn(e, t) {
|
|
3087
3292
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
3088
3293
|
}
|
|
3089
|
-
function
|
|
3294
|
+
function dl(e, t) {
|
|
3090
3295
|
let r = null, n;
|
|
3091
|
-
const i =
|
|
3296
|
+
const i = Te(e);
|
|
3092
3297
|
function a() {
|
|
3093
|
-
var
|
|
3094
|
-
clearTimeout(n), (
|
|
3298
|
+
var s;
|
|
3299
|
+
clearTimeout(n), (s = r) == null || s.disconnect(), r = null;
|
|
3095
3300
|
}
|
|
3096
|
-
function l(
|
|
3097
|
-
|
|
3301
|
+
function l(s, u) {
|
|
3302
|
+
s === void 0 && (s = !1), u === void 0 && (u = 1), a();
|
|
3098
3303
|
const c = e.getBoundingClientRect(), {
|
|
3099
3304
|
left: f,
|
|
3100
|
-
top:
|
|
3305
|
+
top: m,
|
|
3101
3306
|
width: g,
|
|
3102
|
-
height:
|
|
3307
|
+
height: b
|
|
3103
3308
|
} = c;
|
|
3104
|
-
if (
|
|
3309
|
+
if (s || t(), !g || !b)
|
|
3105
3310
|
return;
|
|
3106
|
-
const
|
|
3107
|
-
rootMargin: -
|
|
3108
|
-
threshold:
|
|
3311
|
+
const x = At(m), k = At(i.clientWidth - (f + g)), y = At(i.clientHeight - (m + b)), w = At(f), R = {
|
|
3312
|
+
rootMargin: -x + "px " + -k + "px " + -y + "px " + -w + "px",
|
|
3313
|
+
threshold: $e(0, Ot(1, u)) || 1
|
|
3109
3314
|
};
|
|
3110
|
-
let
|
|
3111
|
-
function
|
|
3112
|
-
const
|
|
3113
|
-
if (
|
|
3114
|
-
if (!
|
|
3315
|
+
let C = !0;
|
|
3316
|
+
function V(M) {
|
|
3317
|
+
const N = M[0].intersectionRatio;
|
|
3318
|
+
if (N !== u) {
|
|
3319
|
+
if (!C)
|
|
3115
3320
|
return l();
|
|
3116
|
-
|
|
3321
|
+
N ? l(!1, N) : n = setTimeout(() => {
|
|
3117
3322
|
l(!1, 1e-7);
|
|
3118
3323
|
}, 1e3);
|
|
3119
3324
|
}
|
|
3120
|
-
|
|
3325
|
+
N === 1 && !Vn(c, e.getBoundingClientRect()) && l(), C = !1;
|
|
3121
3326
|
}
|
|
3122
3327
|
try {
|
|
3123
|
-
r = new IntersectionObserver(
|
|
3124
|
-
...
|
|
3328
|
+
r = new IntersectionObserver(V, {
|
|
3329
|
+
...R,
|
|
3125
3330
|
// Handle <iframe>s
|
|
3126
3331
|
root: i.ownerDocument
|
|
3127
3332
|
});
|
|
3128
3333
|
} catch {
|
|
3129
|
-
r = new IntersectionObserver(
|
|
3334
|
+
r = new IntersectionObserver(V, R);
|
|
3130
3335
|
}
|
|
3131
3336
|
r.observe(e);
|
|
3132
3337
|
}
|
|
3133
3338
|
return l(!0), a;
|
|
3134
3339
|
}
|
|
3135
|
-
function
|
|
3340
|
+
function ul(e, t, r, n) {
|
|
3136
3341
|
n === void 0 && (n = {});
|
|
3137
3342
|
const {
|
|
3138
3343
|
ancestorScroll: i = !0,
|
|
3139
3344
|
ancestorResize: a = !0,
|
|
3140
3345
|
elementResize: l = typeof ResizeObserver == "function",
|
|
3141
|
-
layoutShift:
|
|
3142
|
-
animationFrame:
|
|
3143
|
-
} = n, c =
|
|
3144
|
-
f.forEach((
|
|
3145
|
-
i &&
|
|
3346
|
+
layoutShift: s = typeof IntersectionObserver == "function",
|
|
3347
|
+
animationFrame: u = !1
|
|
3348
|
+
} = n, c = mr(e), f = i || a ? [...c ? pt(c) : [], ...pt(t)] : [];
|
|
3349
|
+
f.forEach((w) => {
|
|
3350
|
+
i && w.addEventListener("scroll", r, {
|
|
3146
3351
|
passive: !0
|
|
3147
|
-
}), a &&
|
|
3352
|
+
}), a && w.addEventListener("resize", r);
|
|
3148
3353
|
});
|
|
3149
|
-
const
|
|
3150
|
-
let g = -1,
|
|
3151
|
-
l && (
|
|
3152
|
-
let [
|
|
3153
|
-
|
|
3154
|
-
var
|
|
3155
|
-
(
|
|
3354
|
+
const m = c && s ? dl(c, r) : null;
|
|
3355
|
+
let g = -1, b = null;
|
|
3356
|
+
l && (b = new ResizeObserver((w) => {
|
|
3357
|
+
let [E] = w;
|
|
3358
|
+
E && E.target === c && b && (b.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
|
|
3359
|
+
var R;
|
|
3360
|
+
(R = b) == null || R.observe(t);
|
|
3156
3361
|
})), r();
|
|
3157
|
-
}), c && !
|
|
3158
|
-
let
|
|
3159
|
-
|
|
3160
|
-
function
|
|
3161
|
-
const
|
|
3162
|
-
|
|
3362
|
+
}), c && !u && b.observe(c), b.observe(t));
|
|
3363
|
+
let x, k = u ? Ue(e) : null;
|
|
3364
|
+
u && y();
|
|
3365
|
+
function y() {
|
|
3366
|
+
const w = Ue(e);
|
|
3367
|
+
k && !Vn(k, w) && r(), k = w, x = requestAnimationFrame(y);
|
|
3163
3368
|
}
|
|
3164
3369
|
return r(), () => {
|
|
3165
|
-
var
|
|
3166
|
-
f.forEach((
|
|
3167
|
-
i &&
|
|
3168
|
-
}),
|
|
3370
|
+
var w;
|
|
3371
|
+
f.forEach((E) => {
|
|
3372
|
+
i && E.removeEventListener("scroll", r), a && E.removeEventListener("resize", r);
|
|
3373
|
+
}), m?.(), (w = b) == null || w.disconnect(), b = null, u && cancelAnimationFrame(x);
|
|
3169
3374
|
};
|
|
3170
3375
|
}
|
|
3171
|
-
const
|
|
3376
|
+
const fl = Fa, gl = $a, pl = Va, ml = (e, t, r) => {
|
|
3172
3377
|
const n = /* @__PURE__ */ new Map(), i = {
|
|
3173
|
-
platform:
|
|
3378
|
+
platform: cl,
|
|
3174
3379
|
...r
|
|
3175
3380
|
}, a = {
|
|
3176
3381
|
...i.platform,
|
|
3177
3382
|
_c: n
|
|
3178
3383
|
};
|
|
3179
|
-
return
|
|
3384
|
+
return Ia(e, t, {
|
|
3180
3385
|
...i,
|
|
3181
3386
|
platform: a
|
|
3182
3387
|
});
|
|
3183
3388
|
};
|
|
3184
|
-
function
|
|
3389
|
+
function bl(e) {
|
|
3185
3390
|
return e != null && typeof e == "object" && "$el" in e;
|
|
3186
3391
|
}
|
|
3187
|
-
function
|
|
3188
|
-
if (
|
|
3392
|
+
function un(e) {
|
|
3393
|
+
if (bl(e)) {
|
|
3189
3394
|
const t = e.$el;
|
|
3190
|
-
return
|
|
3395
|
+
return fr(t) && je(t) === "#comment" ? null : t;
|
|
3191
3396
|
}
|
|
3192
3397
|
return e;
|
|
3193
3398
|
}
|
|
3194
|
-
function
|
|
3195
|
-
return typeof e == "function" ? e() :
|
|
3399
|
+
function ft(e) {
|
|
3400
|
+
return typeof e == "function" ? e() : d(e);
|
|
3196
3401
|
}
|
|
3197
|
-
function
|
|
3402
|
+
function Bn(e) {
|
|
3198
3403
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
3199
3404
|
}
|
|
3200
|
-
function
|
|
3201
|
-
const r =
|
|
3405
|
+
function fn(e, t) {
|
|
3406
|
+
const r = Bn(e);
|
|
3202
3407
|
return Math.round(t * r) / r;
|
|
3203
3408
|
}
|
|
3204
|
-
function
|
|
3409
|
+
function hl(e, t, r) {
|
|
3205
3410
|
r === void 0 && (r = {});
|
|
3206
|
-
const n = r.whileElementsMounted, i =
|
|
3207
|
-
var
|
|
3208
|
-
return (
|
|
3209
|
-
}), a =
|
|
3210
|
-
var
|
|
3211
|
-
return (
|
|
3212
|
-
}),
|
|
3213
|
-
var
|
|
3214
|
-
return (
|
|
3215
|
-
}),
|
|
3216
|
-
var
|
|
3217
|
-
return (
|
|
3218
|
-
}), c =
|
|
3219
|
-
const
|
|
3220
|
-
position:
|
|
3411
|
+
const n = r.whileElementsMounted, i = S(() => {
|
|
3412
|
+
var N;
|
|
3413
|
+
return (N = ft(r.open)) != null ? N : !0;
|
|
3414
|
+
}), a = S(() => ft(r.middleware)), l = S(() => {
|
|
3415
|
+
var N;
|
|
3416
|
+
return (N = ft(r.placement)) != null ? N : "bottom";
|
|
3417
|
+
}), s = S(() => {
|
|
3418
|
+
var N;
|
|
3419
|
+
return (N = ft(r.strategy)) != null ? N : "absolute";
|
|
3420
|
+
}), u = S(() => {
|
|
3421
|
+
var N;
|
|
3422
|
+
return (N = ft(r.transform)) != null ? N : !0;
|
|
3423
|
+
}), c = S(() => un(e.value)), f = S(() => un(t.value)), m = te(0), g = te(0), b = te(s.value), x = te(l.value), k = Jn({}), y = te(!1), w = S(() => {
|
|
3424
|
+
const N = {
|
|
3425
|
+
position: b.value,
|
|
3221
3426
|
left: "0",
|
|
3222
3427
|
top: "0"
|
|
3223
3428
|
};
|
|
3224
3429
|
if (!f.value)
|
|
3225
|
-
return
|
|
3226
|
-
const
|
|
3227
|
-
return
|
|
3228
|
-
...
|
|
3229
|
-
transform: "translate(" +
|
|
3230
|
-
...
|
|
3430
|
+
return N;
|
|
3431
|
+
const Z = fn(f.value, m.value), fe = fn(f.value, g.value);
|
|
3432
|
+
return u.value ? {
|
|
3433
|
+
...N,
|
|
3434
|
+
transform: "translate(" + Z + "px, " + fe + "px)",
|
|
3435
|
+
...Bn(f.value) >= 1.5 && {
|
|
3231
3436
|
willChange: "transform"
|
|
3232
3437
|
}
|
|
3233
3438
|
} : {
|
|
3234
|
-
position:
|
|
3235
|
-
left:
|
|
3236
|
-
top:
|
|
3439
|
+
position: b.value,
|
|
3440
|
+
left: Z + "px",
|
|
3441
|
+
top: fe + "px"
|
|
3237
3442
|
};
|
|
3238
3443
|
});
|
|
3239
|
-
let
|
|
3240
|
-
function
|
|
3444
|
+
let E;
|
|
3445
|
+
function R() {
|
|
3241
3446
|
if (c.value == null || f.value == null)
|
|
3242
3447
|
return;
|
|
3243
|
-
const
|
|
3244
|
-
|
|
3448
|
+
const N = i.value;
|
|
3449
|
+
ml(c.value, f.value, {
|
|
3245
3450
|
middleware: a.value,
|
|
3246
3451
|
placement: l.value,
|
|
3247
|
-
strategy:
|
|
3248
|
-
}).then((
|
|
3249
|
-
|
|
3452
|
+
strategy: s.value
|
|
3453
|
+
}).then((Z) => {
|
|
3454
|
+
m.value = Z.x, g.value = Z.y, b.value = Z.strategy, x.value = Z.placement, k.value = Z.middlewareData, y.value = N !== !1;
|
|
3250
3455
|
});
|
|
3251
3456
|
}
|
|
3252
|
-
function
|
|
3253
|
-
typeof
|
|
3457
|
+
function C() {
|
|
3458
|
+
typeof E == "function" && (E(), E = void 0);
|
|
3254
3459
|
}
|
|
3255
|
-
function
|
|
3256
|
-
if (
|
|
3257
|
-
|
|
3460
|
+
function V() {
|
|
3461
|
+
if (C(), n === void 0) {
|
|
3462
|
+
R();
|
|
3258
3463
|
return;
|
|
3259
3464
|
}
|
|
3260
3465
|
if (c.value != null && f.value != null) {
|
|
3261
|
-
|
|
3466
|
+
E = n(c.value, f.value, R);
|
|
3262
3467
|
return;
|
|
3263
3468
|
}
|
|
3264
3469
|
}
|
|
3265
|
-
function
|
|
3266
|
-
i.value || (
|
|
3470
|
+
function M() {
|
|
3471
|
+
i.value || (y.value = !1);
|
|
3267
3472
|
}
|
|
3268
|
-
return
|
|
3473
|
+
return _e([a, l, s, i], R, {
|
|
3269
3474
|
flush: "sync"
|
|
3270
|
-
}),
|
|
3475
|
+
}), _e([c, f], V, {
|
|
3271
3476
|
flush: "sync"
|
|
3272
|
-
}),
|
|
3477
|
+
}), _e(i, M, {
|
|
3273
3478
|
flush: "sync"
|
|
3274
|
-
}),
|
|
3275
|
-
x:
|
|
3276
|
-
y:
|
|
3277
|
-
strategy:
|
|
3278
|
-
placement:
|
|
3279
|
-
middlewareData:
|
|
3280
|
-
isPositioned:
|
|
3281
|
-
floatingStyles:
|
|
3282
|
-
update:
|
|
3479
|
+
}), Qn() && eo(C), {
|
|
3480
|
+
x: Ze(m),
|
|
3481
|
+
y: Ze(g),
|
|
3482
|
+
strategy: Ze(b),
|
|
3483
|
+
placement: Ze(x),
|
|
3484
|
+
middlewareData: Ze(k),
|
|
3485
|
+
isPositioned: Ze(y),
|
|
3486
|
+
floatingStyles: w,
|
|
3487
|
+
update: R
|
|
3283
3488
|
};
|
|
3284
3489
|
}
|
|
3285
|
-
const
|
|
3490
|
+
const vl = /* @__PURE__ */ de({
|
|
3491
|
+
__name: "CaretDown",
|
|
3492
|
+
props: {
|
|
3493
|
+
color: { default: "dark-4" },
|
|
3494
|
+
className: { default: "" }
|
|
3495
|
+
},
|
|
3496
|
+
setup(e) {
|
|
3497
|
+
const t = e, r = S(
|
|
3498
|
+
() => [P.svgFillColorVariant({ color: t.color }), t.className].filter(Boolean).join(" ")
|
|
3499
|
+
);
|
|
3500
|
+
return (n, i) => (O(), D("svg", {
|
|
3501
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3502
|
+
viewBox: "0 0 320 512",
|
|
3503
|
+
"aria-hidden": "true",
|
|
3504
|
+
focusable: "false",
|
|
3505
|
+
class: K(r.value)
|
|
3506
|
+
}, [...i[0] || (i[0] = [
|
|
3507
|
+
H("path", { d: "M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z" }, null, -1)
|
|
3508
|
+
])], 2));
|
|
3509
|
+
}
|
|
3510
|
+
}), xl = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Et = (e) => typeof e == "string" ? e : e.text, ir = (e) => typeof e == "string" ? e : e.value, yl = (e, t) => S(() => {
|
|
3511
|
+
const r = ge(e), n = ge(t);
|
|
3512
|
+
if (n === "")
|
|
3513
|
+
return r;
|
|
3514
|
+
const i = new RegExp(xl(n), "i");
|
|
3515
|
+
return r.filter((a) => i.test(Et(a)));
|
|
3516
|
+
}), kl = (e) => {
|
|
3517
|
+
const { isOpen: t, activeIndex: r, onSelect: n, onClear: i, onActiveChange: a } = e, l = (f) => {
|
|
3518
|
+
const m = ge(e.optionCount);
|
|
3519
|
+
if (m <= 0) {
|
|
3520
|
+
r.value = -1;
|
|
3521
|
+
return;
|
|
3522
|
+
}
|
|
3523
|
+
const g = Math.max(0, Math.min(f, m - 1));
|
|
3524
|
+
r.value = g, a?.(g);
|
|
3525
|
+
}, s = () => {
|
|
3526
|
+
t.value = !1, r.value = -1;
|
|
3527
|
+
}, u = (f) => {
|
|
3528
|
+
switch (f.key) {
|
|
3529
|
+
case "ArrowDown":
|
|
3530
|
+
if (f.preventDefault(), !t.value) {
|
|
3531
|
+
t.value = !0;
|
|
3532
|
+
return;
|
|
3533
|
+
}
|
|
3534
|
+
if (f.altKey) return;
|
|
3535
|
+
l(r.value + 1);
|
|
3536
|
+
return;
|
|
3537
|
+
case "ArrowUp":
|
|
3538
|
+
if (f.preventDefault(), !t.value) {
|
|
3539
|
+
t.value = !0;
|
|
3540
|
+
return;
|
|
3541
|
+
}
|
|
3542
|
+
l(
|
|
3543
|
+
r.value < 0 ? ge(e.optionCount) - 1 : r.value - 1
|
|
3544
|
+
);
|
|
3545
|
+
return;
|
|
3546
|
+
case "Home":
|
|
3547
|
+
if (!t.value) return;
|
|
3548
|
+
f.preventDefault(), l(0);
|
|
3549
|
+
return;
|
|
3550
|
+
case "End":
|
|
3551
|
+
if (!t.value) return;
|
|
3552
|
+
f.preventDefault(), l(ge(e.optionCount) - 1);
|
|
3553
|
+
return;
|
|
3554
|
+
case "Enter":
|
|
3555
|
+
if (!t.value || r.value < 0) return;
|
|
3556
|
+
f.preventDefault(), n(r.value);
|
|
3557
|
+
return;
|
|
3558
|
+
case "Escape":
|
|
3559
|
+
if (t.value) {
|
|
3560
|
+
s();
|
|
3561
|
+
return;
|
|
3562
|
+
}
|
|
3563
|
+
i();
|
|
3564
|
+
return;
|
|
3565
|
+
case "Tab":
|
|
3566
|
+
t.value && s();
|
|
3567
|
+
return;
|
|
3568
|
+
default:
|
|
3569
|
+
return;
|
|
3570
|
+
}
|
|
3571
|
+
}, c = S(
|
|
3572
|
+
() => t.value && r.value >= 0 ? `${ge(e.idPrefix)}-option-${r.value}` : void 0
|
|
3573
|
+
);
|
|
3574
|
+
return { onKeydown: u, activeDescendantId: c };
|
|
3575
|
+
}, wl = ["id", "placeholder", "disabled", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-required", "aria-invalid", "aria-describedby"], Cl = ["disabled"], Tl = ["disabled"], Al = ["id"], Sl = ["id", "aria-selected", "onClick", "onMouseenter"], El = ["id"], Rl = ["name", "value"], Ol = /* @__PURE__ */ de({
|
|
3286
3576
|
__name: "MclSelect",
|
|
3287
|
-
props: /* @__PURE__ */
|
|
3577
|
+
props: /* @__PURE__ */ pe({
|
|
3578
|
+
options: {},
|
|
3288
3579
|
id: {},
|
|
3580
|
+
name: {},
|
|
3581
|
+
placeholder: { default: "" },
|
|
3289
3582
|
showBorder: { type: Boolean, default: !1 },
|
|
3290
3583
|
borderColor: { default: "light-4" },
|
|
3291
3584
|
rounded: { type: Boolean, default: !1 },
|
|
@@ -3294,399 +3587,355 @@ const Ua = ["id", "placeholder", "aria-expanded", "aria-controls", "aria-actived
|
|
|
3294
3587
|
textColor: { default: "black" },
|
|
3295
3588
|
bgColor: { default: "light-1" },
|
|
3296
3589
|
iconColor: { default: "dark-4" },
|
|
3297
|
-
placeholder: { default: "" },
|
|
3298
|
-
showShadow: { type: Boolean, default: !0 },
|
|
3299
|
-
required: { type: Boolean, default: !1 },
|
|
3300
|
-
invalid: { type: Boolean, default: !1 },
|
|
3301
|
-
options: {},
|
|
3302
3590
|
optionHoverColor: { default: "primary" },
|
|
3303
|
-
|
|
3591
|
+
showShadow: { type: Boolean, default: !0 },
|
|
3592
|
+
noMatchText: { default: "No match." },
|
|
3593
|
+
invalidFeedback: {},
|
|
3594
|
+
invalid: { type: Boolean, default: void 0 },
|
|
3595
|
+
required: { type: Boolean, default: void 0 },
|
|
3596
|
+
disabled: { type: Boolean, default: void 0 }
|
|
3304
3597
|
}, {
|
|
3305
3598
|
modelValue: { default: null },
|
|
3306
3599
|
modelModifiers: {}
|
|
3307
3600
|
}),
|
|
3308
|
-
emits: /* @__PURE__ */
|
|
3601
|
+
emits: /* @__PURE__ */ pe(["open", "close", "clear", "changed", "select"], ["update:modelValue"]),
|
|
3309
3602
|
setup(e, { emit: t }) {
|
|
3310
|
-
const r = e
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
},
|
|
3317
|
-
|
|
3603
|
+
const r = e, n = We(e, "modelValue"), i = t, a = qe(r), l = Dt(r), s = te(), u = te(), c = te(), f = te([]), m = te(), g = te(!1), b = te(-1), x = (T) => {
|
|
3604
|
+
if (T === null || T === "") return "";
|
|
3605
|
+
const L = r.options.find(
|
|
3606
|
+
(B) => ir(B) === T
|
|
3607
|
+
);
|
|
3608
|
+
return L ? Et(L) : String(T);
|
|
3609
|
+
}, k = te(x(n.value)), y = te(!1), w = yl(
|
|
3610
|
+
() => r.options,
|
|
3611
|
+
() => y.value ? k.value : ""
|
|
3612
|
+
), E = (T, L) => {
|
|
3613
|
+
f.value[L] = T;
|
|
3614
|
+
}, R = (T) => {
|
|
3615
|
+
f.value[T]?.scrollIntoView?.({ block: "nearest" });
|
|
3318
3616
|
}, C = () => {
|
|
3319
|
-
|
|
3320
|
-
},
|
|
3321
|
-
|
|
3322
|
-
},
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
},
|
|
3327
|
-
|
|
3328
|
-
},
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
];
|
|
3349
|
-
return k && (_.push("border-2"), _.push(R.borderColorVariant({ color: V }))), D || _.push("ring-offset-2 transition-all duration-300 ease-linear"), oe && _.push("shadow-md"), j && _.push("rounded-md"), _.join(" ");
|
|
3350
|
-
}), le = O(() => {
|
|
3351
|
-
const { highlightColor: x, rounded: k } = r, V = [
|
|
3352
|
-
R.beforeBgColorVariant({ color: x })
|
|
3617
|
+
g.value || (g.value = !0, y.value = !1, b.value = -1);
|
|
3618
|
+
}, V = () => {
|
|
3619
|
+
g.value = !1, b.value = -1;
|
|
3620
|
+
}, M = (T) => {
|
|
3621
|
+
k.value = Et(T);
|
|
3622
|
+
const L = ir(T);
|
|
3623
|
+
n.value = L, y.value = !1, g.value = !1, b.value = -1, i("select", L);
|
|
3624
|
+
}, N = () => {
|
|
3625
|
+
k.value = "", b.value = -1, n.value = null, y.value = !1, i("clear"), u.value?.focus();
|
|
3626
|
+
}, { onKeydown: Z, activeDescendantId: fe } = kl({
|
|
3627
|
+
isOpen: g,
|
|
3628
|
+
activeIndex: b,
|
|
3629
|
+
optionCount: () => w.value.length,
|
|
3630
|
+
idPrefix: () => a.id,
|
|
3631
|
+
onSelect: (T) => {
|
|
3632
|
+
const L = w.value[T];
|
|
3633
|
+
L !== void 0 && M(L);
|
|
3634
|
+
},
|
|
3635
|
+
onClear: N,
|
|
3636
|
+
onActiveChange: R
|
|
3637
|
+
}), he = () => {
|
|
3638
|
+
if (g.value) {
|
|
3639
|
+
V();
|
|
3640
|
+
return;
|
|
3641
|
+
}
|
|
3642
|
+
C(), u.value?.focus();
|
|
3643
|
+
}, U = S(() => {
|
|
3644
|
+
const T = [
|
|
3645
|
+
P.beforeBgColorVariant({ color: r.highlightColor })
|
|
3353
3646
|
];
|
|
3354
|
-
return
|
|
3355
|
-
}),
|
|
3356
|
-
const
|
|
3357
|
-
|
|
3358
|
-
|
|
3647
|
+
return r.rounded && T.push("rounded-b-md"), T.join(" ");
|
|
3648
|
+
}), ve = S(() => {
|
|
3649
|
+
const T = [
|
|
3650
|
+
P.bgColorVariant({ color: r.bgColor }),
|
|
3651
|
+
P.borderColorVariant({ color: r.borderColor })
|
|
3359
3652
|
];
|
|
3360
|
-
return
|
|
3361
|
-
}),
|
|
3362
|
-
|
|
3363
|
-
return typeof k == "string" ? k.match(V) : k.text.match(V);
|
|
3364
|
-
})), fe = (x) => {
|
|
3365
|
-
s.value && (x === "up" && u.value > 0 && u.value--, x === "down" && u.value < I.value.length - 1 && u.value++);
|
|
3366
|
-
}, ve = () => {
|
|
3367
|
-
if (!s.value) return;
|
|
3368
|
-
const x = I.value[u.value];
|
|
3369
|
-
let k;
|
|
3370
|
-
typeof x == "string" ? (g.value = x, k = x) : (g.value = x.text, k = x.value), i.value = k, s.value = !1, n("select", k);
|
|
3371
|
-
}, re = O(() => ({ width: `${f.value}px` })), Ne = (x) => i.value === null || i.value === "" ? !1 : typeof x == "string" ? x === i.value : x.value === i.value, ke = O(
|
|
3372
|
-
() => s.value && I.value.length > 0 ? `${r.id}-option-${u.value}` : void 0
|
|
3373
|
-
), { floatingStyles: se } = $a(a, d, {
|
|
3374
|
-
whileElementsMounted: Ma,
|
|
3653
|
+
return r.showHighlight || T.push("mt-2xs"), r.rounded && T.push("rounded-md"), T.join(" ");
|
|
3654
|
+
}), Ae = (T) => n.value !== null && n.value !== "" && ir(T) === n.value, { floatingStyles: re } = hl(s, c, {
|
|
3655
|
+
whileElementsMounted: ul,
|
|
3375
3656
|
strategy: "absolute",
|
|
3376
|
-
open:
|
|
3657
|
+
open: g,
|
|
3377
3658
|
transform: !1,
|
|
3378
3659
|
placement: "bottom",
|
|
3379
|
-
middleware: [
|
|
3660
|
+
middleware: [pl(), fl(-2.2), gl()]
|
|
3380
3661
|
});
|
|
3381
|
-
return
|
|
3382
|
-
|
|
3383
|
-
}),
|
|
3384
|
-
|
|
3385
|
-
}),
|
|
3386
|
-
if (
|
|
3387
|
-
|
|
3662
|
+
return oo(s, () => {
|
|
3663
|
+
s.value && (m.value = s.value.clientWidth);
|
|
3664
|
+
}), _e(w, () => {
|
|
3665
|
+
b.value = -1;
|
|
3666
|
+
}), _e(g, (T) => {
|
|
3667
|
+
if (T) {
|
|
3668
|
+
i("open");
|
|
3388
3669
|
return;
|
|
3389
3670
|
}
|
|
3390
|
-
n("
|
|
3391
|
-
}),
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3671
|
+
y.value && (k.value = x(n.value), y.value = !1), i("close");
|
|
3672
|
+
}), _e(
|
|
3673
|
+
() => a.disabled.value,
|
|
3674
|
+
(T) => {
|
|
3675
|
+
T && V();
|
|
3676
|
+
}
|
|
3677
|
+
), _e(
|
|
3678
|
+
() => r.options,
|
|
3679
|
+
() => {
|
|
3680
|
+
y.value || (k.value = x(n.value));
|
|
3681
|
+
}
|
|
3682
|
+
), _e(n, (T) => {
|
|
3683
|
+
k.value = x(T), y.value = !1, T !== null && i("changed", T);
|
|
3684
|
+
}), (T, L) => ze((O(), D("div", {
|
|
3685
|
+
ref_key: "rootRef",
|
|
3686
|
+
ref: s,
|
|
3402
3687
|
class: "relative"
|
|
3403
3688
|
}, [
|
|
3404
|
-
|
|
3405
|
-
class:
|
|
3406
|
-
|
|
3407
|
-
|
|
3689
|
+
H("div", {
|
|
3690
|
+
class: K(["relative flex gap-3xs p-2xs", [
|
|
3691
|
+
d(l),
|
|
3692
|
+
!e.showHighlight && g.value && d(P).ringColorVariant({ color: e.borderColor }) + " ring-4"
|
|
3408
3693
|
]])
|
|
3409
3694
|
}, [
|
|
3410
|
-
|
|
3411
|
-
id:
|
|
3695
|
+
ze(H("input", {
|
|
3696
|
+
id: d(a).id,
|
|
3697
|
+
ref_key: "inputRef",
|
|
3698
|
+
ref: u,
|
|
3699
|
+
"onUpdate:modelValue": L[0] || (L[0] = (B) => k.value = B),
|
|
3412
3700
|
type: "text",
|
|
3413
|
-
class: "w-full bg-transparent outline-none",
|
|
3414
|
-
"onUpdate:modelValue": k[0] || (k[0] = (V) => g.value = V),
|
|
3415
|
-
ref_key: "inputBox",
|
|
3416
|
-
ref: l,
|
|
3417
3701
|
role: "combobox",
|
|
3418
3702
|
autocomplete: "off",
|
|
3703
|
+
class: "w-full bg-transparent outline-none disabled:cursor-not-allowed",
|
|
3419
3704
|
placeholder: e.placeholder,
|
|
3705
|
+
disabled: d(a).disabled.value,
|
|
3420
3706
|
"aria-autocomplete": "list",
|
|
3421
|
-
"aria-expanded":
|
|
3422
|
-
"aria-controls": `${
|
|
3423
|
-
"aria-activedescendant":
|
|
3424
|
-
"aria-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3707
|
+
"aria-expanded": g.value,
|
|
3708
|
+
"aria-controls": `${d(a).id}-listbox`,
|
|
3709
|
+
"aria-activedescendant": d(fe),
|
|
3710
|
+
"aria-required": d(a).required.value || void 0,
|
|
3711
|
+
"aria-invalid": d(a).invalid.value || void 0,
|
|
3712
|
+
"aria-describedby": d(a).describedBy.value,
|
|
3713
|
+
onFocus: C,
|
|
3714
|
+
onInput: L[1] || (L[1] = (B) => y.value = !0),
|
|
3715
|
+
onKeydown: L[2] || (L[2] = //@ts-ignore
|
|
3716
|
+
(...B) => d(Z) && d(Z)(...B))
|
|
3717
|
+
}, null, 40, wl), [
|
|
3718
|
+
[pn, k.value]
|
|
3428
3719
|
]),
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3720
|
+
k.value !== "" ? (O(), D("button", {
|
|
3721
|
+
key: 0,
|
|
3722
|
+
"data-mcl": "clear",
|
|
3723
|
+
type: "button",
|
|
3724
|
+
"aria-label": "Clear selection",
|
|
3725
|
+
class: "flex items-center px-3xs",
|
|
3726
|
+
disabled: d(a).disabled.value,
|
|
3727
|
+
onClick: N
|
|
3434
3728
|
}, [
|
|
3435
|
-
(
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3729
|
+
St(vn, {
|
|
3730
|
+
color: e.iconColor,
|
|
3731
|
+
"class-name": "h-xs opacity-70"
|
|
3732
|
+
}, null, 8, ["color"])
|
|
3733
|
+
], 8, Cl)) : I("", !0),
|
|
3734
|
+
H("button", {
|
|
3735
|
+
"data-mcl": "caret",
|
|
3736
|
+
type: "button",
|
|
3737
|
+
tabindex: "-1",
|
|
3738
|
+
"aria-label": "Toggle options",
|
|
3444
3739
|
class: "flex items-center px-3xs",
|
|
3445
|
-
|
|
3740
|
+
disabled: d(a).disabled.value,
|
|
3741
|
+
onClick: he
|
|
3446
3742
|
}, [
|
|
3447
|
-
(
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
"transition-transform duration-300 ease-in",
|
|
3453
|
-
Te(R).svgFillColorVariant({ color: e.iconColor })
|
|
3454
|
-
]])
|
|
3455
|
-
}, [...k[4] || (k[4] = [
|
|
3456
|
-
M("path", { d: "M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z" }, null, -1)
|
|
3457
|
-
])], 2))
|
|
3458
|
-
])
|
|
3743
|
+
St(vl, {
|
|
3744
|
+
color: e.iconColor,
|
|
3745
|
+
"class-name": `h-xs transition-transform duration-300 ease-in ${g.value ? "rotate-180" : "rotate-0"}`
|
|
3746
|
+
}, null, 8, ["color", "class-name"])
|
|
3747
|
+
], 8, Tl)
|
|
3459
3748
|
], 2),
|
|
3460
|
-
e.showHighlight ? (
|
|
3749
|
+
e.showHighlight ? (O(), D("div", {
|
|
3461
3750
|
key: 0,
|
|
3462
|
-
class:
|
|
3463
|
-
}, null, 2)) :
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
onEnter: F
|
|
3468
|
-
}, {
|
|
3469
|
-
default: Pn(() => [
|
|
3470
|
-
s.value ? ($(), q("ul", {
|
|
3751
|
+
class: K(["relative -top-1 h-3xs overflow-hidden before:absolute before:bottom-0 before:left-0 before:h-full before:transition-[width] before:duration-300 before:ease-linear", [g.value ? "before:w-full" : "before:w-0", U.value]])
|
|
3752
|
+
}, null, 2)) : I("", !0),
|
|
3753
|
+
St(to, { name: "options" }, {
|
|
3754
|
+
default: Pe(() => [
|
|
3755
|
+
g.value && d(w).length > 0 ? (O(), D("ul", {
|
|
3471
3756
|
key: 0,
|
|
3472
|
-
id: `${
|
|
3473
|
-
class: H([[ue.value], "max-h-50 overflow-y-auto border-2"]),
|
|
3474
|
-
style: tn({ ...re.value, ...Te(se) }),
|
|
3475
|
-
role: "listbox",
|
|
3757
|
+
id: `${d(a).id}-listbox`,
|
|
3476
3758
|
ref_key: "dropdownRef",
|
|
3477
|
-
ref:
|
|
3759
|
+
ref: c,
|
|
3760
|
+
role: "listbox",
|
|
3761
|
+
class: K(["max-h-[12.5rem] overflow-y-auto border-2", ve.value]),
|
|
3762
|
+
style: ar({ width: `${m.value}px`, ...d(re) })
|
|
3478
3763
|
}, [
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
activeIndex: u.value,
|
|
3764
|
+
ie(T.$slots, "dropdown", {
|
|
3765
|
+
options: d(w),
|
|
3766
|
+
activeIndex: b.value,
|
|
3767
|
+
optionClick: M,
|
|
3484
3768
|
setRef: E,
|
|
3485
|
-
hover:
|
|
3769
|
+
hover: (B) => b.value = B,
|
|
3770
|
+
optionId: (B) => `${d(a).id}-option-${B}`
|
|
3486
3771
|
}, () => [
|
|
3487
|
-
(
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
class: H(["cursor-pointer p-2xs", [
|
|
3491
|
-
u.value === D && Te(R).bgColorVariant({ color: e.highlightColor })
|
|
3492
|
-
]]),
|
|
3493
|
-
role: "option",
|
|
3494
|
-
"aria-selected": Ne(V),
|
|
3772
|
+
(O(!0), D(ro, null, no(d(w), (B, W) => (O(), D("li", {
|
|
3773
|
+
id: `${d(a).id}-option-${W}`,
|
|
3774
|
+
key: W,
|
|
3495
3775
|
ref_for: !0,
|
|
3496
|
-
ref: (
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
], !0) : st(x.$slots, "no-match", { key: 1 }, () => [
|
|
3501
|
-
M("li", {
|
|
3502
|
-
class: H(["cursor-pointer p-2xs", [
|
|
3503
|
-
Te(R).hoverBgColorVariant({ color: e.optionHoverColor })
|
|
3776
|
+
ref: (le) => E(le, W),
|
|
3777
|
+
role: "option",
|
|
3778
|
+
class: K(["cursor-pointer p-2xs", [
|
|
3779
|
+
b.value === W && d(P).bgColorVariant({ color: e.optionHoverColor })
|
|
3504
3780
|
]]),
|
|
3505
|
-
"aria-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3781
|
+
"aria-selected": Ae(B),
|
|
3782
|
+
onClick: (le) => M(B),
|
|
3783
|
+
onMouseenter: (le) => b.value = W
|
|
3784
|
+
}, Ne(d(Et)(B)), 43, Sl))), 128))
|
|
3509
3785
|
], !0)
|
|
3510
|
-
], 14,
|
|
3786
|
+
], 14, Al)) : I("", !0)
|
|
3511
3787
|
]),
|
|
3512
3788
|
_: 3
|
|
3513
|
-
})
|
|
3514
|
-
|
|
3515
|
-
|
|
3789
|
+
}),
|
|
3790
|
+
g.value && d(w).length === 0 ? (O(), D("div", {
|
|
3791
|
+
key: 1,
|
|
3792
|
+
id: `${d(a).id}-listbox`,
|
|
3793
|
+
ref_key: "dropdownRef",
|
|
3794
|
+
ref: c,
|
|
3795
|
+
role: "status",
|
|
3796
|
+
class: K(["border-2 p-2xs", ve.value]),
|
|
3797
|
+
style: ar({ width: `${m.value}px`, ...d(re) })
|
|
3798
|
+
}, [
|
|
3799
|
+
ie(T.$slots, "no-match", {}, () => [
|
|
3800
|
+
H("span", null, Ne(e.noMatchText), 1)
|
|
3801
|
+
], !0)
|
|
3802
|
+
], 14, El)) : I("", !0),
|
|
3803
|
+
d(a).name.value ? (O(), D("input", {
|
|
3804
|
+
key: 2,
|
|
3805
|
+
type: "hidden",
|
|
3806
|
+
name: d(a).name.value,
|
|
3807
|
+
value: n.value ?? ""
|
|
3808
|
+
}, null, 8, Rl)) : I("", !0),
|
|
3809
|
+
d(a).feedbackOwnedByGroup ? I("", !0) : (O(), De(rt, {
|
|
3810
|
+
key: 3,
|
|
3811
|
+
id: d(a).errorId,
|
|
3812
|
+
invalid: d(a).invalid.value,
|
|
3813
|
+
text: e.invalidFeedback
|
|
3814
|
+
}, {
|
|
3815
|
+
default: Pe(() => [
|
|
3816
|
+
T.$slots["invalid-feedback"] ? ie(T.$slots, "invalid-feedback", { key: 0 }, void 0, !0) : I("", !0)
|
|
3817
|
+
]),
|
|
3818
|
+
_: 3
|
|
3819
|
+
}, 8, ["id", "invalid", "text"]))
|
|
3820
|
+
])), [
|
|
3821
|
+
[d(Ki), V]
|
|
3516
3822
|
]);
|
|
3517
3823
|
}
|
|
3518
|
-
}),
|
|
3824
|
+
}), zl = /* @__PURE__ */ xn(Ol, [["__scopeId", "data-v-2695c901"]]), _l = ["id", "name", "rows", "placeholder", "required", "disabled", "aria-invalid", "aria-describedby"], Hl = /* @__PURE__ */ de({
|
|
3519
3825
|
__name: "MclTextArea",
|
|
3520
|
-
props: /* @__PURE__ */
|
|
3826
|
+
props: /* @__PURE__ */ pe({
|
|
3521
3827
|
id: {},
|
|
3828
|
+
name: {},
|
|
3829
|
+
placeholder: { default: "" },
|
|
3830
|
+
rows: { default: 5 },
|
|
3522
3831
|
showBorder: { type: Boolean, default: !1 },
|
|
3523
3832
|
borderColor: { default: "light-4" },
|
|
3524
3833
|
rounded: { type: Boolean, default: !1 },
|
|
3525
3834
|
showHighlight: { type: Boolean, default: !0 },
|
|
3526
3835
|
highlightColor: { default: "primary" },
|
|
3527
|
-
bgColor: { default: "light-1" },
|
|
3528
3836
|
textColor: { default: "black" },
|
|
3529
|
-
|
|
3837
|
+
bgColor: { default: "light-1" },
|
|
3530
3838
|
showShadow: { type: Boolean, default: !0 },
|
|
3531
|
-
|
|
3532
|
-
invalid: { type: Boolean, default:
|
|
3533
|
-
|
|
3839
|
+
invalidFeedback: {},
|
|
3840
|
+
invalid: { type: Boolean, default: void 0 },
|
|
3841
|
+
required: { type: Boolean, default: void 0 },
|
|
3842
|
+
disabled: { type: Boolean, default: void 0 }
|
|
3534
3843
|
}, {
|
|
3535
3844
|
modelValue: {},
|
|
3536
3845
|
modelModifiers: {}
|
|
3537
3846
|
}),
|
|
3538
3847
|
emits: ["update:modelValue"],
|
|
3539
3848
|
setup(e) {
|
|
3540
|
-
const t = e, r =
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
textColor: f
|
|
3549
|
-
} = t, s = [
|
|
3550
|
-
R.bgColorVariant({ color: i }),
|
|
3551
|
-
R.textColorVariant({ color: f })
|
|
3552
|
-
];
|
|
3553
|
-
return a && (s.push("border-2"), s.push(R.borderColorVariant({ color: l }))), d || (s.push(
|
|
3554
|
-
"focus:ring-4 ring-offset-2 transition-all duration-300 ease-linear"
|
|
3555
|
-
), s.push(R.focusRingColorVariant({ color: l }))), p && s.push("shadow-md"), c && s.push("rounded-md"), s.join(" ");
|
|
3556
|
-
});
|
|
3557
|
-
return (i, a) => ($(), q("div", null, [
|
|
3558
|
-
qe(M("textarea", {
|
|
3559
|
-
id: e.id,
|
|
3560
|
-
class: H(["input__text peer w-full p-2xs outline-none", n.value]),
|
|
3561
|
-
"onUpdate:modelValue": a[0] || (a[0] = (l) => r.value = l),
|
|
3849
|
+
const t = e, r = We(e, "modelValue"), n = qe(t), i = Dt(t);
|
|
3850
|
+
return (a, l) => (O(), D("div", null, [
|
|
3851
|
+
ze(H("textarea", {
|
|
3852
|
+
id: d(n).id,
|
|
3853
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => r.value = s),
|
|
3854
|
+
class: K(["peer w-full p-2xs outline-none disabled:cursor-not-allowed disabled:opacity-50", d(i)]),
|
|
3855
|
+
name: d(n).name.value,
|
|
3856
|
+
rows: e.rows,
|
|
3562
3857
|
placeholder: e.placeholder,
|
|
3563
|
-
required:
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3858
|
+
required: d(n).required.value,
|
|
3859
|
+
disabled: d(n).disabled.value,
|
|
3860
|
+
"aria-invalid": d(n).invalid.value || void 0,
|
|
3861
|
+
"aria-describedby": d(n).describedBy.value
|
|
3862
|
+
}, null, 10, _l), [
|
|
3863
|
+
[pn, r.value]
|
|
3568
3864
|
]),
|
|
3569
|
-
e.showHighlight ? (
|
|
3865
|
+
e.showHighlight ? (O(), De(yn, {
|
|
3570
3866
|
key: 0,
|
|
3571
3867
|
color: e.highlightColor,
|
|
3572
3868
|
rounded: e.rounded,
|
|
3573
3869
|
offset: 2.5
|
|
3574
|
-
}, null, 8, ["color", "rounded"])) :
|
|
3870
|
+
}, null, 8, ["color", "rounded"])) : I("", !0),
|
|
3871
|
+
d(n).feedbackOwnedByGroup ? I("", !0) : (O(), De(rt, {
|
|
3872
|
+
key: 1,
|
|
3873
|
+
id: d(n).errorId,
|
|
3874
|
+
invalid: d(n).invalid.value,
|
|
3875
|
+
text: e.invalidFeedback
|
|
3876
|
+
}, {
|
|
3877
|
+
default: Pe(() => [
|
|
3878
|
+
a.$slots["invalid-feedback"] ? ie(a.$slots, "invalid-feedback", { key: 0 }) : I("", !0)
|
|
3879
|
+
]),
|
|
3880
|
+
_: 3
|
|
3881
|
+
}, 8, ["id", "invalid", "text"]))
|
|
3575
3882
|
]));
|
|
3576
3883
|
}
|
|
3577
|
-
}),
|
|
3884
|
+
}), Nl = { class: "relative inline-flex" }, Ll = ["id", "name", "value", "required", "disabled", "aria-invalid", "aria-describedby"], Ul = /* @__PURE__ */ de({
|
|
3578
3885
|
__name: "MclCheckbox",
|
|
3579
|
-
props: /* @__PURE__ */
|
|
3886
|
+
props: /* @__PURE__ */ pe({
|
|
3580
3887
|
id: {},
|
|
3581
|
-
|
|
3888
|
+
name: {},
|
|
3889
|
+
size: { default: "md" },
|
|
3582
3890
|
bgColor: { default: "light-1" },
|
|
3583
3891
|
checkedBgColor: { default: "warning" },
|
|
3584
|
-
|
|
3892
|
+
indicatorColor: { default: "dark-3" },
|
|
3585
3893
|
borderColor: { default: "dark-1" },
|
|
3586
3894
|
showShadow: { type: Boolean, default: !1 },
|
|
3587
3895
|
rounded: { type: Boolean, default: !1 },
|
|
3588
3896
|
value: {},
|
|
3589
|
-
|
|
3897
|
+
invalid: { type: Boolean, default: void 0 },
|
|
3898
|
+
required: { type: Boolean, default: void 0 },
|
|
3899
|
+
disabled: { type: Boolean, default: void 0 }
|
|
3590
3900
|
}, {
|
|
3591
3901
|
modelValue: { type: Boolean },
|
|
3592
3902
|
modelModifiers: {}
|
|
3593
3903
|
}),
|
|
3594
|
-
emits: /* @__PURE__ */
|
|
3904
|
+
emits: /* @__PURE__ */ pe(["change"], ["update:modelValue"]),
|
|
3595
3905
|
setup(e, { emit: t }) {
|
|
3596
|
-
const r = {
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
"light-1": "peer-checked/input:bg-light-1",
|
|
3604
|
-
"light-2": "peer-checked/input:bg-light-2",
|
|
3605
|
-
"light-3": "peer-checked/input:bg-light-3",
|
|
3606
|
-
"light-4": "peer-checked/input:bg-light-4",
|
|
3607
|
-
"dark-1": "peer-checked/input:bg-dark-1",
|
|
3608
|
-
"dark-2": "peer-checked/input:bg-dark-2",
|
|
3609
|
-
"dark-3": "peer-checked/input:bg-dark-3",
|
|
3610
|
-
"dark-4": "peer-checked/input:bg-dark-1",
|
|
3611
|
-
transparent: "peer-checked/input:bg-transparent",
|
|
3612
|
-
black: "peer-checked/input:bg-black",
|
|
3613
|
-
white: "peer-checked/input:bg-white"
|
|
3614
|
-
}, n = {
|
|
3615
|
-
primary: "before:bg-primary",
|
|
3616
|
-
secondary: "before:bg-secondary",
|
|
3617
|
-
success: "before:bg-success",
|
|
3618
|
-
info: "before:bg-info",
|
|
3619
|
-
warning: "before:bg-warning",
|
|
3620
|
-
danger: "before:bg-danger",
|
|
3621
|
-
"light-1": "before:bg-light-1",
|
|
3622
|
-
"light-2": "before:bg-light-2",
|
|
3623
|
-
"light-3": "before:bg-light-3",
|
|
3624
|
-
"light-4": "before:bg-light-4",
|
|
3625
|
-
"dark-1": "before:bg-dark-1",
|
|
3626
|
-
"dark-2": "before:bg-dark-2",
|
|
3627
|
-
"dark-3": "before:bg-dark-3",
|
|
3628
|
-
"dark-4": "before:bg-dark-1",
|
|
3629
|
-
transparent: "before:bg-transparent",
|
|
3630
|
-
black: "before:bg-black",
|
|
3631
|
-
white: "before:bg-white"
|
|
3632
|
-
}, i = e, a = Ze(e, "modelValue"), l = Y(), d = t, p = () => {
|
|
3633
|
-
l.value?.click();
|
|
3634
|
-
}, c = (g) => {
|
|
3635
|
-
const u = g.target.value;
|
|
3636
|
-
d(
|
|
3637
|
-
"checkbox-click",
|
|
3638
|
-
g,
|
|
3639
|
-
l.value.checked,
|
|
3640
|
-
l.value?.checked ? u : ""
|
|
3641
|
-
);
|
|
3642
|
-
}, f = O(() => {
|
|
3643
|
-
const { inputSize: g } = i;
|
|
3644
|
-
return g === "sm" ? "h-xs w-xs before:h-2xs before:w-2xs" : g === "lg" ? "h-md w-md before:h-xs before:w-xs" : "h-sm w-sm before:w-[12px] before:h-[12px]";
|
|
3645
|
-
}), s = O(() => {
|
|
3646
|
-
const {
|
|
3647
|
-
bgColor: g,
|
|
3648
|
-
borderColor: u,
|
|
3649
|
-
showShadow: b,
|
|
3650
|
-
rounded: w,
|
|
3651
|
-
checkedBgColor: C,
|
|
3652
|
-
checkColor: v
|
|
3653
|
-
} = i, S = [
|
|
3654
|
-
R.bgColorVariant({ color: g }),
|
|
3655
|
-
R.borderColorVariant({ color: u }),
|
|
3656
|
-
n[v],
|
|
3657
|
-
r[C]
|
|
3658
|
-
];
|
|
3659
|
-
return b && S.push("drop-shadow-md"), w && S.push("rounded-md before:rounded-[3px]"), S.join(" ");
|
|
3660
|
-
});
|
|
3661
|
-
return (g, u) => ($(), q("div", Xa, [
|
|
3662
|
-
qe(M("input", {
|
|
3663
|
-
id: e.id,
|
|
3664
|
-
ref_key: "checkboxRef",
|
|
3665
|
-
ref: l,
|
|
3906
|
+
const r = e, n = We(e, "modelValue"), i = t, a = qe(r, { rendersOwnFeedback: !1 }), { boxClass: l, sizeClass: s } = ur(r), u = (c) => {
|
|
3907
|
+
i("change", c);
|
|
3908
|
+
};
|
|
3909
|
+
return (c, f) => (O(), D("div", Nl, [
|
|
3910
|
+
ze(H("input", {
|
|
3911
|
+
id: d(a).id,
|
|
3912
|
+
"onUpdate:modelValue": f[0] || (f[0] = (m) => n.value = m),
|
|
3666
3913
|
type: "checkbox",
|
|
3914
|
+
class: "peer absolute inset-0 z-10 h-full w-full cursor-pointer appearance-none opacity-0 disabled:cursor-not-allowed",
|
|
3915
|
+
name: d(a).name.value,
|
|
3667
3916
|
value: e.value,
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3917
|
+
required: d(a).required.value,
|
|
3918
|
+
disabled: d(a).disabled.value,
|
|
3919
|
+
"aria-invalid": d(a).invalid.value || void 0,
|
|
3920
|
+
"aria-describedby": d(a).describedBy.value,
|
|
3921
|
+
onChange: u
|
|
3922
|
+
}, null, 40, Ll), [
|
|
3923
|
+
[gn, n.value]
|
|
3674
3924
|
]),
|
|
3675
|
-
|
|
3925
|
+
H("span", {
|
|
3676
3926
|
"aria-hidden": "true",
|
|
3677
|
-
class:
|
|
3678
|
-
onClick: p
|
|
3927
|
+
class: K(["relative inline-block border p-3xs transition-colors duration-200 ease-linear peer-disabled:opacity-50 before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:opacity-0 before:transition-opacity before:duration-200 peer-checked:before:opacity-100", [d(l), d(s)]])
|
|
3679
3928
|
}, null, 2)
|
|
3680
3929
|
]));
|
|
3681
3930
|
}
|
|
3682
3931
|
});
|
|
3683
3932
|
export {
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3933
|
+
Ul as MclCheckbox,
|
|
3934
|
+
Bl as MclFormGroup,
|
|
3935
|
+
Ml as MclInputFile,
|
|
3936
|
+
Fl as MclInputRadio,
|
|
3937
|
+
$l as MclInputSwitch,
|
|
3938
|
+
Pl as MclInputText,
|
|
3939
|
+
zl as MclSelect,
|
|
3940
|
+
Hl as MclTextArea
|
|
3692
3941
|
};
|