@tempots/beatui 0.80.0 → 0.82.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/{ar-DwHLVgKj.cjs → ar-D7CXDmVZ.cjs} +1 -1
- package/dist/{ar-Bo_FZZi7.js → ar-nOSKXpIW.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +101 -99
- package/dist/beatui.css +393 -0
- package/dist/beatui.tailwind.css +393 -0
- package/dist/{de-zI5mdV4M.cjs → de-WzsOu9Gn.cjs} +1 -1
- package/dist/{de-CCqwOkqN.js → de-f2xcEb34.js} +1 -1
- package/dist/{deep-merge-1uN6CG6K.js → deep-merge-CiOwVWn8.js} +269 -284
- package/dist/deep-merge-DxZqCkE5.cjs +1 -0
- package/dist/{duration-input-C9kpsw-t.js → duration-input-B3vnnwBZ.js} +30 -29
- package/dist/duration-input-Dg5SX3lM.cjs +1 -0
- package/dist/{es-BF02UrPL.js → es-CDqqzpCw.js} +1 -1
- package/dist/{es-Cw90CAbu.cjs → es-Ds2Xf3wV.cjs} +1 -1
- package/dist/{fa-DPQV4YB8.js → fa-C7tE_hR3.js} +1 -1
- package/dist/{fa-B4lssnzR.cjs → fa-Ct1UtDB7.cjs} +1 -1
- package/dist/{fr-1Kd6z1F-.cjs → fr-CzAkRFed.cjs} +1 -1
- package/dist/{fr-dmxPhwkD.js → fr-yOW_68YY.js} +1 -1
- package/dist/{he-BtQbrVt3.js → he-D2oUloCJ.js} +1 -1
- package/dist/{he-CJ3XnuPm.cjs → he-DlXALrK7.cjs} +1 -1
- package/dist/{hi-BpfnFKHp.cjs → hi-3dBhLwDs.cjs} +1 -1
- package/dist/{hi-D_Le4Yka.js → hi-D5ZlZoQq.js} +1 -1
- package/dist/{index-CfaWytS2.cjs → index-C5YCCgnn.cjs} +1 -1
- package/dist/{index-K6u33-GC.cjs → index-ChsRjiIp.cjs} +17 -17
- package/dist/{index-CGEzILlC.js → index-CiAVfKIZ.js} +1 -1
- package/dist/{index-YtW7SCWB.js → index-DT6-HMMz.js} +8 -7
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +296 -291
- package/dist/{it-DyHjSuHN.js → it-6e6X-4BB.js} +1 -1
- package/dist/{it-COCZ9NyB.cjs → it-DohtcWi9.cjs} +1 -1
- package/dist/{ja-X43lABza.js → ja-BxNuNo2H.js} +1 -1
- package/dist/{ja--NdggLU9.cjs → ja-eyTArrgS.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +1 -8
- package/dist/json-schema/index.es.js +1391 -7471
- package/dist/json-schema-display/index.cjs.js +1 -0
- package/dist/json-schema-display/index.es.js +846 -0
- package/dist/json-structure/index.cjs.js +1 -1
- package/dist/json-structure/index.es.js +89 -87
- package/dist/{ko-BUvb0ggK.cjs → ko-BFLCDMMs.cjs} +1 -1
- package/dist/{ko-B9g9iw99.js → ko-Ch0jFsBV.js} +1 -1
- package/dist/modal-D2xE47kr.cjs +1 -0
- package/dist/{modal-CSHIhHvI.js → modal-hkQD1bqZ.js} +22 -21
- package/dist/{nl-0S25Gsld.cjs → nl-Bx2ACvr4.cjs} +1 -1
- package/dist/{nl-Ew5jnSsT.js → nl-NuTdZO1s.js} +1 -1
- package/dist/notice-C0SmlheE.cjs +1 -0
- package/dist/{notice-C-964yaY.js → notice-CZHWWwOQ.js} +52 -51
- package/dist/oneof-branch-detection-BVNoKU9d.js +6281 -0
- package/dist/oneof-branch-detection-C8g3eWnx.cjs +8 -0
- package/dist/{pl-C9f6UBSe.js → pl-Bs4nLJ__.js} +1 -1
- package/dist/{pl-B3k-K3S4.cjs → pl-QHl6sl8f.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-DYtAvbrw.js → pt-BETjHZrL.js} +1 -1
- package/dist/{pt-CKoikRO5.cjs → pt-DZGw2Z-1.cjs} +1 -1
- package/dist/{ru-ZexN-b8V.js → ru-Bi1_DEKM.js} +1 -1
- package/dist/{ru-COb7RSDt.cjs → ru-D03IuLqh.cjs} +1 -1
- package/dist/stack-BJgsPJ9A.js +873 -0
- package/dist/stack-DcZ_u50f.cjs +1 -0
- package/dist/string-B9vVyfq3.cjs +1 -0
- package/dist/string-DYyMxBl-.js +19 -0
- package/dist/text-input-CByq5OIo.cjs +1 -0
- package/dist/text-input-CFJntP7G.js +287 -0
- package/dist/{toolbar-DNpBIoJo.js → toolbar-DR2Zd4Oo.js} +1 -1
- package/dist/toolbar-TPWYzoiF.cjs +1 -0
- package/dist/{tr-tO_EH-Y2.cjs → tr-B_-_1wua.cjs} +1 -1
- package/dist/{tr-BDvn05-H.js → tr-DiYB-FwX.js} +1 -1
- package/dist/translations-B4-Zd2LM.cjs +1 -0
- package/dist/translations-Cq8bUKJP.js +584 -0
- package/dist/{translations-DwGC_94w.cjs → translations-D62qqNV9.cjs} +1 -1
- package/dist/{translations-CfWR4loD.js → translations-DPr6c05Z.js} +1 -1
- package/dist/types/components/json-schema/schema-conditionals.d.ts +11 -0
- package/dist/types/components/json-schema/schema-context.d.ts +1 -1
- package/dist/types/components/json-schema-display/display-widget-customization.d.ts +61 -0
- package/dist/types/components/json-schema-display/display-wrapper.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/any-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/array-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/boolean-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/composition-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/displays/enum-const-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/generic-display.d.ts +18 -0
- package/dist/types/components/json-schema-display/displays/null-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/number-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/object-display.d.ts +13 -0
- package/dist/types/components/json-schema-display/displays/string-display.d.ts +14 -0
- package/dist/types/components/json-schema-display/index.d.ts +14 -0
- package/dist/types/components/json-schema-display/json-schema-display.d.ts +25 -0
- package/dist/types/components/json-schema-display/mismatch.d.ts +14 -0
- package/dist/types/json-schema-display/index.d.ts +1 -0
- package/dist/{ur-DbEqQgS6.js → ur-B69X-xNs.js} +1 -1
- package/dist/{ur-BbnYJ3HS.cjs → ur-DyUSmIbo.cjs} +1 -1
- package/dist/use-form-CgZyrACX.js +864 -0
- package/dist/use-form-JjeKCINk.cjs +2 -0
- package/dist/utils-DEbsp9Q9.js +129 -0
- package/dist/utils-DIUEhA-Z.cjs +1 -0
- package/dist/{vi-CpZUeuSj.js → vi-BdzxA60L.js} +1 -1
- package/dist/{vi-ByBwvGQY.cjs → vi-CBmPaHxg.cjs} +1 -1
- package/dist/widget-customization-DRA7E9Zf.js +1072 -0
- package/dist/widget-customization-G-QLB1rw.cjs +1 -0
- package/dist/{zh-DnxK0ieB.cjs → zh-Cb1b8uik.cjs} +1 -1
- package/dist/{zh-DJyhKO0I.js → zh-Dn1UJiZa.js} +1 -1
- package/package.json +13 -7
- package/dist/deep-merge-CBIkQM4E.cjs +0 -1
- package/dist/duration-input-DHWhQJnn.cjs +0 -1
- package/dist/modal-cc8Ehngz.cjs +0 -1
- package/dist/notice-C_BWqu2K.cjs +0 -1
- package/dist/toolbar-D5FcnRju.cjs +0 -1
- package/dist/translations-0tLX4x7M.js +0 -866
- package/dist/translations-WPN3ibDg.cjs +0 -1
- package/dist/use-form-D4JFOcjo.cjs +0 -2
- package/dist/use-form-D4rqJkvG.js +0 -1731
- package/dist/widget-customization-BSjJz3_Y.js +0 -1195
- package/dist/widget-customization-CrFVrt4V.cjs +0 -1
|
@@ -1,23 +1,11 @@
|
|
|
1
|
-
import { Use as F, Value as p, prop as ae, html as v, attr as l, on as
|
|
2
|
-
import { l as
|
|
1
|
+
import { Use as F, Value as p, prop as ae, html as v, attr as l, on as D, WithElement as te, Empty as z, aria as G, bind as oe, computedOf as M, style as we, OnDispose as ne, When as U, NotEmpty as Oe, Fragment as E, ForEach as K, coalesce as Fe, Ensure as Ne, OneOfType as Re, Repeat as Pe, signal as _e, input as le, emitValue as P, emitValueAsNumber as ke, Task as Ce } from "@tempots/dom";
|
|
2
|
+
import { l as je } from "./colors-DPo9GEJR.js";
|
|
3
3
|
import { g as We } from "./timer-Rd2sKnvH.js";
|
|
4
4
|
import { ElementRect as Ze } from "@tempots/ui";
|
|
5
|
-
import { a as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
super(e), this.name = "MissingImplementationError";
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
const _t = (t) => Xe(t).split("_").join(" "), Xe = (t) => (t = t.replace(/::/g, "/"), t = t.replace(/([A-Z]+)([A-Z][a-z])/g, "$1_$2"), t = t.replace(/([a-z\d])([A-Z])/g, "$1_$2"), t = t.replace(/-/g, "_"), t.toLowerCase()), kt = (t) => t.substring(0, 1).toUpperCase() + t.substring(1), Ct = (t) => {
|
|
13
|
-
if (typeof Buffer < "u")
|
|
14
|
-
return Buffer.from(t, "base64").toString("utf8");
|
|
15
|
-
if (typeof atob < "u")
|
|
16
|
-
return atob(t);
|
|
17
|
-
throw new Je(
|
|
18
|
-
"No implementation found for base64 decoding"
|
|
19
|
-
);
|
|
20
|
-
};
|
|
5
|
+
import { a as W, C as Y, I as He, g as Ye, B as pe } from "./text-input-CFJntP7G.js";
|
|
6
|
+
import { B as N, f as De, I as O, d as ge } from "./translations-Cq8bUKJP.js";
|
|
7
|
+
import { C as ce, m as qe, c as Ge, I as Be, d as fe, O as Q, e as Ie } from "./use-form-CgZyrACX.js";
|
|
8
|
+
import { S as ee } from "./stack-BJgsPJ9A.js";
|
|
21
9
|
function de({
|
|
22
10
|
onChange: t,
|
|
23
11
|
value: e,
|
|
@@ -46,7 +34,7 @@ function de({
|
|
|
46
34
|
if (x == null) return;
|
|
47
35
|
const c = Array.from(x.files ?? []);
|
|
48
36
|
c.length > 0 && (f.value = c, t(c, "click")), x.value = "";
|
|
49
|
-
},
|
|
37
|
+
}, I = (c) => {
|
|
50
38
|
p.get(s) && (c.key === "Enter" || c.key === " ") && (c.preventDefault(), u(c));
|
|
51
39
|
};
|
|
52
40
|
return v.div(
|
|
@@ -55,11 +43,11 @@ function de({
|
|
|
55
43
|
p.map(s, (c) => c ? 0 : -1)
|
|
56
44
|
),
|
|
57
45
|
l.style("position: relative;"),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
46
|
+
D.dragover(a),
|
|
47
|
+
D.dragleave(h),
|
|
48
|
+
D.drop(_),
|
|
49
|
+
D.click(u),
|
|
50
|
+
D.keydown(I),
|
|
63
51
|
// Hidden file input
|
|
64
52
|
v.input(
|
|
65
53
|
l.type("file"),
|
|
@@ -69,14 +57,14 @@ function de({
|
|
|
69
57
|
l.style(
|
|
70
58
|
"position: absolute; left: -9999px; opacity: 0; pointer-events: none;"
|
|
71
59
|
),
|
|
72
|
-
|
|
60
|
+
D.change(y),
|
|
73
61
|
te((c) => (x = c, f.on((d) => {
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
const
|
|
77
|
-
d.forEach((
|
|
62
|
+
const $ = globalThis.DataTransfer;
|
|
63
|
+
if ($ != null) {
|
|
64
|
+
const T = new $();
|
|
65
|
+
d.forEach((A) => T.items.add(A)), c.files = T.files;
|
|
78
66
|
}
|
|
79
|
-
}),
|
|
67
|
+
}), z))
|
|
80
68
|
),
|
|
81
69
|
// Screen reader instructions
|
|
82
70
|
G.label(oe(m.$.dropZoneInstructions)(s)),
|
|
@@ -85,21 +73,21 @@ function de({
|
|
|
85
73
|
);
|
|
86
74
|
});
|
|
87
75
|
}
|
|
88
|
-
function
|
|
76
|
+
function Je(t, e) {
|
|
89
77
|
return t.length === e.length && t.every((n, s) => n === e[s]);
|
|
90
78
|
}
|
|
91
|
-
function
|
|
79
|
+
function Xe(t, e) {
|
|
92
80
|
const n = ["bc-segmented-input", `bc-segmented-input--size-${t}`];
|
|
93
81
|
return e && n.push("bc-segmented-input--disabled"), n.join(" ");
|
|
94
82
|
}
|
|
95
|
-
function
|
|
83
|
+
function _t({
|
|
96
84
|
options: t,
|
|
97
85
|
value: e,
|
|
98
86
|
onChange: n,
|
|
99
87
|
size: s = "md",
|
|
100
88
|
disabled: r = !1
|
|
101
89
|
}, ...g) {
|
|
102
|
-
const i =
|
|
90
|
+
const i = je(t).map(([m, f]) => ({
|
|
103
91
|
key: m,
|
|
104
92
|
label: f
|
|
105
93
|
}));
|
|
@@ -108,15 +96,15 @@ function $t({
|
|
|
108
96
|
i.map((b, a) => [b.key, a])
|
|
109
97
|
), f = ae(
|
|
110
98
|
i.map(() => ({ left: 0, width: 0 })),
|
|
111
|
-
|
|
99
|
+
Je
|
|
112
100
|
);
|
|
113
101
|
return v.div(
|
|
114
102
|
l.class(
|
|
115
|
-
|
|
103
|
+
M(
|
|
116
104
|
s,
|
|
117
105
|
r
|
|
118
106
|
)(
|
|
119
|
-
(b, a) =>
|
|
107
|
+
(b, a) => Xe(b ?? "md", a ?? !1)
|
|
120
108
|
)
|
|
121
109
|
),
|
|
122
110
|
v.div(
|
|
@@ -124,7 +112,7 @@ function $t({
|
|
|
124
112
|
v.div(
|
|
125
113
|
l.class("bc-segmented-input__indicator"),
|
|
126
114
|
we.width(
|
|
127
|
-
|
|
115
|
+
M(
|
|
128
116
|
e,
|
|
129
117
|
f
|
|
130
118
|
)((b, a) => {
|
|
@@ -133,7 +121,7 @@ function $t({
|
|
|
133
121
|
})
|
|
134
122
|
),
|
|
135
123
|
we.left(
|
|
136
|
-
|
|
124
|
+
M(
|
|
137
125
|
e,
|
|
138
126
|
f
|
|
139
127
|
)((b, a) => {
|
|
@@ -145,7 +133,7 @@ function $t({
|
|
|
145
133
|
// clickable buttons
|
|
146
134
|
i.map(({ label: b, key: a }, h) => v.button(
|
|
147
135
|
l.type("button"),
|
|
148
|
-
|
|
136
|
+
D.click((_) => {
|
|
149
137
|
_.preventDefault(), p.get(r) || n?.(a);
|
|
150
138
|
}),
|
|
151
139
|
l.disabled(r),
|
|
@@ -156,11 +144,11 @@ function $t({
|
|
|
156
144
|
Ze((_) => {
|
|
157
145
|
function u() {
|
|
158
146
|
f.update((y) => {
|
|
159
|
-
const
|
|
160
|
-
return
|
|
147
|
+
const I = [...y];
|
|
148
|
+
return I[h] = {
|
|
161
149
|
width: _.value.width,
|
|
162
150
|
left: _.value.localLeft
|
|
163
|
-
},
|
|
151
|
+
}, I;
|
|
164
152
|
});
|
|
165
153
|
}
|
|
166
154
|
const x = We(u);
|
|
@@ -173,17 +161,17 @@ function $t({
|
|
|
173
161
|
);
|
|
174
162
|
});
|
|
175
163
|
}
|
|
176
|
-
function
|
|
164
|
+
function Qe(t) {
|
|
177
165
|
const e = t.type.toLowerCase();
|
|
178
166
|
return e.startsWith("image/") && (e.includes("jpeg") || e.includes("jpg") || e.includes("png") || e.includes("gif") || e.includes("webp") || e.includes("svg"));
|
|
179
167
|
}
|
|
180
|
-
function
|
|
168
|
+
function Ke(t) {
|
|
181
169
|
const e = t.type.toLowerCase();
|
|
182
170
|
return e.startsWith("image/") ? "vscode-icons:file-type-image" : e.startsWith("video/") ? "vscode-icons:file-type-video" : e.startsWith("audio/") ? "vscode-icons:file-type-audio" : e.includes("pdf") ? "vscode-icons:file-type-pdf2" : e.includes("word") || e.includes("document") ? "vscode-icons:file-type-word" : e.includes("excel") || e.includes("spreadsheet") ? "vscode-icons:file-type-excel" : e.includes("powerpoint") || e.includes("presentation") ? "vscode-icons:file-type-powerpoint" : e.includes("zip") || e.includes("archive") ? "vscode-icons:file-type-zip" : e.includes("text") ? "vscode-icons:file-type-text" : e.includes("json") ? "vscode-icons:file-type-json-official" : e.includes("csv") ? "vscode-icons:file-type-csv" : e.includes("xml") ? "vscode-icons:file-type-xml" : e.includes("yaml") ? "vscode-icons:file-type-yaml-official" : "vscode-icons:file-type-binary";
|
|
183
171
|
}
|
|
184
172
|
function me(t) {
|
|
185
173
|
return U(
|
|
186
|
-
t.map(
|
|
174
|
+
t.map(Qe),
|
|
187
175
|
() => {
|
|
188
176
|
const e = ae(null);
|
|
189
177
|
return t.on((n) => {
|
|
@@ -202,10 +190,10 @@ function me(t) {
|
|
|
202
190
|
)
|
|
203
191
|
);
|
|
204
192
|
},
|
|
205
|
-
() => O({ icon: t.map(
|
|
193
|
+
() => O({ icon: t.map(Ke) })
|
|
206
194
|
);
|
|
207
195
|
}
|
|
208
|
-
const
|
|
196
|
+
const kt = (t, ...e) => {
|
|
209
197
|
const {
|
|
210
198
|
value: n = ae([]),
|
|
211
199
|
accept: s = "*/*",
|
|
@@ -218,7 +206,7 @@ const Dt = (t, ...e) => {
|
|
|
218
206
|
mode: a = "default",
|
|
219
207
|
showFileList: h = !0,
|
|
220
208
|
..._
|
|
221
|
-
} = t, u = n, x = p.map(a, (C) => C === "input"), y = p.map(a, (C) => C === "compact"),
|
|
209
|
+
} = t, u = n, x = p.map(a, (C) => C === "input"), y = p.map(a, (C) => C === "compact"), I = (C) => {
|
|
222
210
|
let o = C;
|
|
223
211
|
if (r != null) {
|
|
224
212
|
const w = p.get(r);
|
|
@@ -230,11 +218,11 @@ const Dt = (t, ...e) => {
|
|
|
230
218
|
}
|
|
231
219
|
i?.(o);
|
|
232
220
|
}, c = (C) => {
|
|
233
|
-
const w = u.value.filter((S,
|
|
221
|
+
const w = u.value.filter((S, V) => V !== C);
|
|
234
222
|
i?.(w);
|
|
235
223
|
}, d = () => {
|
|
236
224
|
i?.([]);
|
|
237
|
-
},
|
|
225
|
+
}, $ = ({
|
|
238
226
|
files: C,
|
|
239
227
|
clear: o,
|
|
240
228
|
change: w
|
|
@@ -257,7 +245,7 @@ const Dt = (t, ...e) => {
|
|
|
257
245
|
)
|
|
258
246
|
)
|
|
259
247
|
)
|
|
260
|
-
),
|
|
248
|
+
), T = ({
|
|
261
249
|
files: C
|
|
262
250
|
}) => F(
|
|
263
251
|
N,
|
|
@@ -268,7 +256,7 @@ const Dt = (t, ...e) => {
|
|
|
268
256
|
() => v.div(
|
|
269
257
|
l.class("bc-file-input__compact-file-list"),
|
|
270
258
|
K(C, (w, S) => {
|
|
271
|
-
const
|
|
259
|
+
const V = S.index;
|
|
272
260
|
return v.div(
|
|
273
261
|
l.class("bc-file-input__compact-file-item"),
|
|
274
262
|
v.div(
|
|
@@ -284,15 +272,15 @@ const Dt = (t, ...e) => {
|
|
|
284
272
|
),
|
|
285
273
|
v.div(
|
|
286
274
|
l.class("bc-file-input__compact-file-meta"),
|
|
287
|
-
|
|
275
|
+
M(
|
|
288
276
|
w.$.size,
|
|
289
277
|
o.$.fileSizeUnits
|
|
290
|
-
)((k,
|
|
278
|
+
)((k, B) => De(k, { units: B })),
|
|
291
279
|
" • ",
|
|
292
|
-
|
|
280
|
+
M(
|
|
293
281
|
w.$.type,
|
|
294
282
|
o.$.unknownType
|
|
295
|
-
)((k,
|
|
283
|
+
)((k, B) => k || B)
|
|
296
284
|
)
|
|
297
285
|
),
|
|
298
286
|
ce(
|
|
@@ -300,7 +288,7 @@ const Dt = (t, ...e) => {
|
|
|
300
288
|
size: "sm",
|
|
301
289
|
label: o.$.removeFile,
|
|
302
290
|
disabled: f,
|
|
303
|
-
onClick: () => c(
|
|
291
|
+
onClick: () => c(V)
|
|
304
292
|
},
|
|
305
293
|
l.class("bc-file-input__compact-remove-button")
|
|
306
294
|
)
|
|
@@ -321,7 +309,7 @@ const Dt = (t, ...e) => {
|
|
|
321
309
|
)
|
|
322
310
|
)
|
|
323
311
|
)
|
|
324
|
-
),
|
|
312
|
+
), A = ({
|
|
325
313
|
files: C
|
|
326
314
|
}) => F(
|
|
327
315
|
N,
|
|
@@ -389,8 +377,8 @@ const Dt = (t, ...e) => {
|
|
|
389
377
|
enableClick: !0,
|
|
390
378
|
allowMultiple: p.map(r ?? 1 / 0, (o) => o > 1),
|
|
391
379
|
disabled: f,
|
|
392
|
-
onChange:
|
|
393
|
-
content:
|
|
380
|
+
onChange: I,
|
|
381
|
+
content: A
|
|
394
382
|
})
|
|
395
383
|
),
|
|
396
384
|
() => U(
|
|
@@ -403,8 +391,8 @@ const Dt = (t, ...e) => {
|
|
|
403
391
|
enableClick: !0,
|
|
404
392
|
allowMultiple: p.map(r ?? 1 / 0, (o) => o > 1),
|
|
405
393
|
disabled: f,
|
|
406
|
-
onChange:
|
|
407
|
-
content:
|
|
394
|
+
onChange: I,
|
|
395
|
+
content: T
|
|
408
396
|
})
|
|
409
397
|
),
|
|
410
398
|
() => v.div(
|
|
@@ -415,8 +403,8 @@ const Dt = (t, ...e) => {
|
|
|
415
403
|
enableClick: !0,
|
|
416
404
|
allowMultiple: p.map(r ?? 1 / 0, (o) => o > 1),
|
|
417
405
|
disabled: f,
|
|
418
|
-
onChange:
|
|
419
|
-
content:
|
|
406
|
+
onChange: I,
|
|
407
|
+
content: $
|
|
420
408
|
}),
|
|
421
409
|
U(
|
|
422
410
|
h,
|
|
@@ -442,17 +430,17 @@ const Dt = (t, ...e) => {
|
|
|
442
430
|
),
|
|
443
431
|
v.div(
|
|
444
432
|
l.class("bc-file-input__file-meta"),
|
|
445
|
-
|
|
433
|
+
M(
|
|
446
434
|
o.$.size,
|
|
447
435
|
C.$.fileSizeUnits
|
|
448
436
|
)(
|
|
449
|
-
(
|
|
437
|
+
(V, k) => De(V, { units: k })
|
|
450
438
|
),
|
|
451
439
|
" • ",
|
|
452
|
-
|
|
440
|
+
M(
|
|
453
441
|
o.$.type,
|
|
454
442
|
C.$.unknownType
|
|
455
|
-
)((
|
|
443
|
+
)((V, k) => V || k)
|
|
456
444
|
)
|
|
457
445
|
),
|
|
458
446
|
ce(
|
|
@@ -478,7 +466,7 @@ const Dt = (t, ...e) => {
|
|
|
478
466
|
l.class("bc-file-input__clear-all-button"),
|
|
479
467
|
l.disabled(f),
|
|
480
468
|
C.$.clearAllFiles,
|
|
481
|
-
|
|
469
|
+
D.click((o) => {
|
|
482
470
|
o.preventDefault(), o.stopPropagation(), d();
|
|
483
471
|
})
|
|
484
472
|
)
|
|
@@ -494,15 +482,15 @@ const Dt = (t, ...e) => {
|
|
|
494
482
|
...e
|
|
495
483
|
)
|
|
496
484
|
);
|
|
497
|
-
}, ve = "$$tts-exp-",
|
|
485
|
+
}, ve = "$$tts-exp-", et = (t, e) => te((n) => {
|
|
498
486
|
const s = `${ve}${t}`;
|
|
499
487
|
return ne(p.on(e, (r) => Reflect.set(n, s, r)));
|
|
500
|
-
}),
|
|
488
|
+
}), Ct = (t, e) => {
|
|
501
489
|
const n = `${ve}${t}`;
|
|
502
490
|
return (s) => {
|
|
503
491
|
e(Reflect.get(s.target, n));
|
|
504
492
|
};
|
|
505
|
-
},
|
|
493
|
+
}, tt = (t, e) => {
|
|
506
494
|
const n = `${ve}${t}`;
|
|
507
495
|
return (s) => {
|
|
508
496
|
const r = s.target, g = r.selectedIndex, i = r.options[g];
|
|
@@ -512,17 +500,17 @@ const Dt = (t, ...e) => {
|
|
|
512
500
|
function re(...t) {
|
|
513
501
|
return v.div(l.class("bc-group"), ...t);
|
|
514
502
|
}
|
|
515
|
-
const
|
|
503
|
+
const Me = (t, e, n) => Ne(
|
|
516
504
|
t,
|
|
517
505
|
(s) => Re(s, {
|
|
518
506
|
value: (r) => {
|
|
519
|
-
const g =
|
|
507
|
+
const g = M(
|
|
520
508
|
r,
|
|
521
509
|
n
|
|
522
510
|
)((i, m) => e(i.value, m));
|
|
523
511
|
return v.option(
|
|
524
512
|
l.selected(g),
|
|
525
|
-
|
|
513
|
+
et("value", r.$.value),
|
|
526
514
|
r.$.label
|
|
527
515
|
);
|
|
528
516
|
},
|
|
@@ -530,7 +518,7 @@ const Be = (t, e, n) => Ne(
|
|
|
530
518
|
l.label(r.$.group),
|
|
531
519
|
K(
|
|
532
520
|
r.$.options,
|
|
533
|
-
(g) =>
|
|
521
|
+
(g) => Me(
|
|
534
522
|
g,
|
|
535
523
|
e,
|
|
536
524
|
n
|
|
@@ -539,7 +527,7 @@ const Be = (t, e, n) => Ne(
|
|
|
539
527
|
),
|
|
540
528
|
break: () => v.hr()
|
|
541
529
|
})
|
|
542
|
-
),
|
|
530
|
+
), nt = (t) => {
|
|
543
531
|
const {
|
|
544
532
|
value: e,
|
|
545
533
|
onBlur: n,
|
|
@@ -579,12 +567,12 @@ const Be = (t, e, n) => Ne(
|
|
|
579
567
|
Fe(g, b.$.selectOne)
|
|
580
568
|
)
|
|
581
569
|
),
|
|
582
|
-
K(r, (b) =>
|
|
583
|
-
n != null ?
|
|
584
|
-
s != null ?
|
|
570
|
+
K(r, (b) => Me(b, i, e)),
|
|
571
|
+
n != null ? D.blur(n) : z,
|
|
572
|
+
s != null ? D.change(tt("value", (b) => s(b))) : z
|
|
585
573
|
)
|
|
586
574
|
},
|
|
587
|
-
|
|
575
|
+
D.click(() => {
|
|
588
576
|
if (f?.focus(), typeof f?.showPicker == "function")
|
|
589
577
|
try {
|
|
590
578
|
f.showPicker();
|
|
@@ -593,25 +581,25 @@ const Be = (t, e, n) => Ne(
|
|
|
593
581
|
})
|
|
594
582
|
);
|
|
595
583
|
};
|
|
596
|
-
function
|
|
584
|
+
function lt(t) {
|
|
597
585
|
const { controller: e, onChange: n, onBlur: s, ...r } = t;
|
|
598
|
-
return
|
|
586
|
+
return nt({
|
|
599
587
|
...r,
|
|
600
588
|
value: e.signal,
|
|
601
589
|
onChange: Ge(e, n),
|
|
602
590
|
onBlur: qe(e, s)
|
|
603
591
|
});
|
|
604
592
|
}
|
|
605
|
-
function
|
|
606
|
-
return
|
|
593
|
+
function Dt(t) {
|
|
594
|
+
return Be({
|
|
607
595
|
...t,
|
|
608
|
-
content:
|
|
596
|
+
content: lt(t)
|
|
609
597
|
});
|
|
610
598
|
}
|
|
611
|
-
function
|
|
599
|
+
function st(t, e, n) {
|
|
612
600
|
const s = t.length.map((r) => r);
|
|
613
601
|
return E(
|
|
614
|
-
|
|
602
|
+
Pe(
|
|
615
603
|
s,
|
|
616
604
|
(r) => {
|
|
617
605
|
const g = t.item(r.index), i = [];
|
|
@@ -670,14 +658,14 @@ function it(t, e, n) {
|
|
|
670
658
|
)
|
|
671
659
|
);
|
|
672
660
|
}
|
|
673
|
-
const
|
|
661
|
+
const $e = {
|
|
674
662
|
9: { pattern: /^[0-9]$/ },
|
|
675
663
|
A: { pattern: /^[A-Za-z]$/, transform: (t) => t.toUpperCase() },
|
|
676
664
|
"*": { pattern: /^.$/ }
|
|
677
|
-
},
|
|
678
|
-
function
|
|
665
|
+
}, rt = (t) => t instanceof RegExp;
|
|
666
|
+
function Ae(t, e, n) {
|
|
679
667
|
if (t == null) return [];
|
|
680
|
-
const s = n ? {
|
|
668
|
+
const s = n ? { ...$e, ...e } : e ?? $e, r = (i, m) => {
|
|
681
669
|
const f = s[m];
|
|
682
670
|
f ? i.push({ type: "pattern", name: m, ...f }) : i.push({ type: "literal", char: m });
|
|
683
671
|
}, g = [];
|
|
@@ -689,10 +677,10 @@ function Ve(t, e, n) {
|
|
|
689
677
|
if (typeof i == "string")
|
|
690
678
|
if (i.length <= 1) r(g, i);
|
|
691
679
|
else for (const m of i) r(g, m);
|
|
692
|
-
else
|
|
680
|
+
else rt(i) ? g.push({ type: "pattern", pattern: i }) : typeof i == "object" && i && g.push(i);
|
|
693
681
|
return g;
|
|
694
682
|
}
|
|
695
|
-
function
|
|
683
|
+
function it(t, e) {
|
|
696
684
|
return (n) => {
|
|
697
685
|
switch (t) {
|
|
698
686
|
case "digits":
|
|
@@ -708,48 +696,48 @@ function ct(t, e) {
|
|
|
708
696
|
}
|
|
709
697
|
};
|
|
710
698
|
}
|
|
711
|
-
function
|
|
699
|
+
function Te(t, e, n, s, r, g) {
|
|
712
700
|
const i = {
|
|
713
701
|
raw: t,
|
|
714
702
|
previousConformed: e,
|
|
715
703
|
cursor: r ?? t.length,
|
|
716
704
|
completed: !1
|
|
717
|
-
}, m = s.definitions ?? {}, f = typeof n == "function" ? n(t, i) : n, b =
|
|
705
|
+
}, m = s.definitions ?? {}, f = typeof n == "function" ? n(t, i) : n, b = Ae(
|
|
718
706
|
f,
|
|
719
707
|
m,
|
|
720
708
|
s.useDefaultDefinitions ?? !0
|
|
721
|
-
), a =
|
|
709
|
+
), a = it(s.allowMode, s.allow), h = /* @__PURE__ */ new Set();
|
|
722
710
|
for (const k of b) k.type === "literal" && h.add(k.char);
|
|
723
711
|
if (s.prefix) for (const k of s.prefix) h.add(k);
|
|
724
712
|
if (s.suffix) for (const k of s.suffix) h.add(k);
|
|
725
713
|
const _ = Array.from(t).filter((k) => a(k) && !h.has(k));
|
|
726
714
|
if (_.length === 0) return { value: "", cursor: 0, completed: !1 };
|
|
727
715
|
const u = [], x = [];
|
|
728
|
-
let y = 0,
|
|
716
|
+
let y = 0, I = 0, c = 0, d = -1;
|
|
729
717
|
for (const k of b) {
|
|
730
718
|
if (k.type === "literal") {
|
|
731
719
|
u.push(k.char), x.push({ kind: "literal", filled: !0 });
|
|
732
720
|
continue;
|
|
733
721
|
}
|
|
734
|
-
|
|
735
|
-
const
|
|
736
|
-
if (
|
|
722
|
+
I += k.optional ? 0 : 1;
|
|
723
|
+
const B = _[y];
|
|
724
|
+
if (B == null)
|
|
737
725
|
break;
|
|
738
726
|
if (k.type === "any") {
|
|
739
|
-
c++, u.push(k.transform ? k.transform(
|
|
727
|
+
c++, u.push(k.transform ? k.transform(B) : B), x.push({ kind: "slot", filled: !0 }), d = x.length - 1, y++;
|
|
740
728
|
continue;
|
|
741
729
|
}
|
|
742
730
|
if (k.type === "pattern")
|
|
743
|
-
if (k.pattern.test(
|
|
731
|
+
if (k.pattern.test(B)) {
|
|
744
732
|
c++;
|
|
745
|
-
const R = k.transform ? k.transform(
|
|
733
|
+
const R = k.transform ? k.transform(B) : B;
|
|
746
734
|
u.push(R), x.push({ kind: "slot", filled: !0 }), d = x.length - 1, y++;
|
|
747
735
|
} else {
|
|
748
736
|
y++;
|
|
749
737
|
continue;
|
|
750
738
|
}
|
|
751
739
|
}
|
|
752
|
-
const
|
|
740
|
+
const $ = u.join(""), T = (s.prefix ?? "") + $ + (s.suffix ?? "");
|
|
753
741
|
let C = (s.prefix ?? "").length;
|
|
754
742
|
if (d >= 0) {
|
|
755
743
|
let k = d + 1;
|
|
@@ -757,11 +745,11 @@ function ze(t, e, n, s, r, g) {
|
|
|
757
745
|
for (; k < x.length && x[k].kind === "literal"; ) k++;
|
|
758
746
|
C += k;
|
|
759
747
|
}
|
|
760
|
-
const o = s.completion?.mode === "min" ? (s.completion.minChars ?? 0) <= c : s.completion?.mode === "custom" ? !!s.completion.isComplete?.(
|
|
761
|
-
let S,
|
|
762
|
-
return w === !1 ? (S = e,
|
|
748
|
+
const o = s.completion?.mode === "min" ? (s.completion.minChars ?? 0) <= c : s.completion?.mode === "custom" ? !!s.completion.isComplete?.(T) : I > 0 && c >= I, w = s.pipe?.(T, { ...i, completed: o });
|
|
749
|
+
let S, V = C;
|
|
750
|
+
return w === !1 ? (S = e, V = e.length) : typeof w == "string" ? (S = w, V = w.length) : typeof w == "object" && w ? (S = w.value, V = w.cursor ?? w.value.length) : S = T, { value: S, cursor: V, completed: o };
|
|
763
751
|
}
|
|
764
|
-
function
|
|
752
|
+
function ot(t, e) {
|
|
765
753
|
const n = e?.strategy ?? "none";
|
|
766
754
|
return n === "custom" && e?.unmask ? e.unmask(t) : n === "strip" ? t.replace(/[^A-Za-z0-9]/g, "") : t;
|
|
767
755
|
}
|
|
@@ -782,12 +770,12 @@ const Le = (t) => {
|
|
|
782
770
|
autofix: u,
|
|
783
771
|
pipe: x,
|
|
784
772
|
completion: y,
|
|
785
|
-
unmask:
|
|
773
|
+
unmask: I,
|
|
786
774
|
allowMode: c,
|
|
787
775
|
allow: d,
|
|
788
|
-
placeholder:
|
|
789
|
-
placeholderOptions:
|
|
790
|
-
} = t,
|
|
776
|
+
placeholder: $,
|
|
777
|
+
placeholderOptions: T
|
|
778
|
+
} = t, A = M(
|
|
791
779
|
e,
|
|
792
780
|
m,
|
|
793
781
|
f,
|
|
@@ -797,13 +785,13 @@ const Le = (t) => {
|
|
|
797
785
|
_,
|
|
798
786
|
u,
|
|
799
787
|
y,
|
|
800
|
-
D,
|
|
801
|
-
c,
|
|
802
788
|
I,
|
|
803
|
-
|
|
804
|
-
|
|
789
|
+
c,
|
|
790
|
+
$,
|
|
791
|
+
T
|
|
792
|
+
)((o, w, S, V, k, B, R, J, X, q, Z, se, j) => w ? Te(o ?? "", "", w, {
|
|
805
793
|
definitions: S ?? {},
|
|
806
|
-
useDefaultDefinitions:
|
|
794
|
+
useDefaultDefinitions: V ?? !0,
|
|
807
795
|
extraLiterals: k ?? [],
|
|
808
796
|
autofix: J ?? "none",
|
|
809
797
|
completion: X ?? { mode: "mask" },
|
|
@@ -811,19 +799,19 @@ const Le = (t) => {
|
|
|
811
799
|
unmask: q ?? { strategy: "none" },
|
|
812
800
|
allowMode: Z ?? "all",
|
|
813
801
|
allow: d,
|
|
814
|
-
prefix:
|
|
802
|
+
prefix: B,
|
|
815
803
|
suffix: R
|
|
816
804
|
}).value : o ?? ""), C = (o, w) => {
|
|
817
|
-
const S = o.value ?? "",
|
|
805
|
+
const S = o.value ?? "", V = p.get(e) ?? "", k = m != null ? p.get(m) : null, B = f != null ? p.get(f) : void 0, R = b != null ? p.get(b) : void 0, J = a != null ? p.get(a) : void 0, X = u != null ? p.get(u) : void 0, q = y != null ? p.get(y) : void 0, Z = I != null ? p.get(I) : void 0, se = c != null ? p.get(c) : void 0, j = h != null ? p.get(h) : void 0, L = _ != null ? p.get(_) : void 0, {
|
|
818
806
|
value: H,
|
|
819
807
|
cursor: ue,
|
|
820
808
|
completed: xe
|
|
821
|
-
} = k ?
|
|
809
|
+
} = k ? Te(
|
|
822
810
|
S,
|
|
823
|
-
|
|
811
|
+
V,
|
|
824
812
|
k,
|
|
825
813
|
{
|
|
826
|
-
definitions:
|
|
814
|
+
definitions: B ?? {},
|
|
827
815
|
useDefaultDefinitions: R ?? !0,
|
|
828
816
|
extraLiterals: J ?? [],
|
|
829
817
|
autofix: X ?? "none",
|
|
@@ -832,7 +820,7 @@ const Le = (t) => {
|
|
|
832
820
|
unmask: Z ?? { strategy: "none" },
|
|
833
821
|
allowMode: se ?? "all",
|
|
834
822
|
allow: d,
|
|
835
|
-
prefix:
|
|
823
|
+
prefix: j,
|
|
836
824
|
suffix: L
|
|
837
825
|
},
|
|
838
826
|
o.selectionStart ?? S.length,
|
|
@@ -845,7 +833,7 @@ const Le = (t) => {
|
|
|
845
833
|
} catch {
|
|
846
834
|
}
|
|
847
835
|
}
|
|
848
|
-
const ye =
|
|
836
|
+
const ye = ot(H, Z);
|
|
849
837
|
g?.({
|
|
850
838
|
raw: ye,
|
|
851
839
|
conformed: H,
|
|
@@ -858,47 +846,47 @@ const Le = (t) => {
|
|
|
858
846
|
...t,
|
|
859
847
|
input: le.text(
|
|
860
848
|
Y(t),
|
|
861
|
-
l.value(
|
|
849
|
+
l.value(A),
|
|
862
850
|
l.class("bc-input"),
|
|
863
|
-
n != null ?
|
|
851
|
+
n != null ? D.blur(n) : z,
|
|
864
852
|
te(
|
|
865
853
|
(o) => o instanceof HTMLInputElement ? E(
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
854
|
+
D.input(() => C(o, "input")),
|
|
855
|
+
D.change(() => C(o, "change")),
|
|
856
|
+
D.keydown((w) => {
|
|
869
857
|
if (w.key !== "Backspace" || !(t.cursor ? p.get(t.cursor)?.backspaceRubberBand ?? !0 : !0)) return;
|
|
870
|
-
const
|
|
871
|
-
if (
|
|
872
|
-
const
|
|
858
|
+
const V = o.selectionStart ?? 0, k = o.selectionEnd ?? V;
|
|
859
|
+
if (V !== k || V <= 0) return;
|
|
860
|
+
const B = o.value ?? "", R = m != null ? p.get(m) : null;
|
|
873
861
|
if (!R) return;
|
|
874
|
-
const J = f != null ? p.get(f) : void 0, X = b != null ? p.get(b) : !0, q = h != null ? p.get(h) : void 0, Z = _ != null ? p.get(_) : void 0, se =
|
|
875
|
-
typeof R == "function" ? R(
|
|
876
|
-
raw:
|
|
877
|
-
previousConformed:
|
|
878
|
-
cursor:
|
|
862
|
+
const J = f != null ? p.get(f) : void 0, X = b != null ? p.get(b) : !0, q = h != null ? p.get(h) : void 0, Z = _ != null ? p.get(_) : void 0, se = Ae(
|
|
863
|
+
typeof R == "function" ? R(B, {
|
|
864
|
+
raw: B,
|
|
865
|
+
previousConformed: B,
|
|
866
|
+
cursor: V,
|
|
879
867
|
completed: !1
|
|
880
868
|
}) : R,
|
|
881
869
|
J ?? {},
|
|
882
870
|
X ?? !0
|
|
883
|
-
),
|
|
871
|
+
), j = /* @__PURE__ */ new Set();
|
|
884
872
|
for (const L of se)
|
|
885
|
-
L.type === "literal" &&
|
|
886
|
-
if (q) for (const L of q)
|
|
887
|
-
if (Z) for (const L of Z)
|
|
888
|
-
if (
|
|
889
|
-
let L =
|
|
890
|
-
for (; L >= 0 &&
|
|
891
|
-
L >= 0 && (w.preventDefault(), w.stopPropagation(), o.value =
|
|
873
|
+
L.type === "literal" && j.add(L.char);
|
|
874
|
+
if (q) for (const L of q) j.add(L);
|
|
875
|
+
if (Z) for (const L of Z) j.add(L);
|
|
876
|
+
if (j.has(B[V - 1])) {
|
|
877
|
+
let L = V - 1;
|
|
878
|
+
for (; L >= 0 && j.has(B[L]); ) L--;
|
|
879
|
+
L >= 0 && (w.preventDefault(), w.stopPropagation(), o.value = B.slice(0, L) + B.slice(L + 1), C(o, "input"));
|
|
892
880
|
}
|
|
893
881
|
})
|
|
894
|
-
) :
|
|
882
|
+
) : z
|
|
895
883
|
)
|
|
896
884
|
)
|
|
897
885
|
})
|
|
898
886
|
);
|
|
899
887
|
};
|
|
900
888
|
function Ue(t, e, n) {
|
|
901
|
-
const s = p.map(t, (i) => i != null), r =
|
|
889
|
+
const s = p.map(t, (i) => i != null), r = M(
|
|
902
890
|
s,
|
|
903
891
|
e ?? !1
|
|
904
892
|
)((i, m) => !i || m), g = ge.clearValue;
|
|
@@ -909,19 +897,19 @@ function Ue(t, e, n) {
|
|
|
909
897
|
l.title(g),
|
|
910
898
|
l.disabled(r),
|
|
911
899
|
O({ icon: "mdi:close", size: "sm" }),
|
|
912
|
-
|
|
900
|
+
D.click((i) => {
|
|
913
901
|
i.stopPropagation(), n?.(null);
|
|
914
902
|
})
|
|
915
903
|
);
|
|
916
904
|
}
|
|
917
|
-
const
|
|
905
|
+
const It = (t) => {
|
|
918
906
|
const { value: e, onBlur: n, onChange: s, onInput: r, rows: g } = t;
|
|
919
907
|
return W({
|
|
920
908
|
baseContainer: !0,
|
|
921
909
|
...t,
|
|
922
910
|
input: v.textarea(
|
|
923
911
|
l.class(
|
|
924
|
-
|
|
912
|
+
M(t.size ?? "md")(
|
|
925
913
|
(i) => Ye(
|
|
926
914
|
!1,
|
|
927
915
|
i ?? "md"
|
|
@@ -932,33 +920,33 @@ const Tt = (t) => {
|
|
|
932
920
|
l.rows(g ?? 3),
|
|
933
921
|
l.value(e),
|
|
934
922
|
l.class("bc-input"),
|
|
935
|
-
n != null ?
|
|
936
|
-
s != null ?
|
|
937
|
-
r != null ?
|
|
923
|
+
n != null ? D.blur(P(n)) : z,
|
|
924
|
+
s != null ? D.change(P(s)) : z,
|
|
925
|
+
r != null ? D.input(P(r)) : z
|
|
938
926
|
)
|
|
939
927
|
});
|
|
940
|
-
},
|
|
928
|
+
}, $t = (t) => {
|
|
941
929
|
const { value: e, step: n, min: s, max: r, onBlur: g, onChange: i, onInput: m, after: f } = t, b = (_) => {
|
|
942
930
|
const u = s != null ? p.get(s) : void 0, x = r != null ? p.get(r) : void 0;
|
|
943
931
|
return u != null && _ < u ? u : x != null && _ > x ? x : _;
|
|
944
932
|
}, a = n != null ? F(N, (_) => {
|
|
945
|
-
const u =
|
|
933
|
+
const u = M(
|
|
946
934
|
e,
|
|
947
935
|
s
|
|
948
|
-
)((c, d) => d == null ? !0 : (c ?? 0) > d), x =
|
|
936
|
+
)((c, d) => d == null ? !0 : (c ?? 0) > d), x = M(
|
|
949
937
|
e,
|
|
950
938
|
r
|
|
951
939
|
)((c, d) => d == null ? !0 : (c ?? 0) < d), y = (c) => {
|
|
952
|
-
const d = p.get(e) ?? 0,
|
|
953
|
-
if (C != null &&
|
|
940
|
+
const d = p.get(e) ?? 0, $ = p.get(n), T = c?.shiftKey ? 10 : 1, A = d - $ * T, C = s != null ? p.get(s) : void 0;
|
|
941
|
+
if (C != null && A < C)
|
|
954
942
|
return;
|
|
955
|
-
const o = b(
|
|
943
|
+
const o = b(A);
|
|
956
944
|
o !== d && i && i(o);
|
|
957
|
-
},
|
|
958
|
-
const d = p.get(e) ?? 0,
|
|
959
|
-
if (C != null &&
|
|
945
|
+
}, I = (c) => {
|
|
946
|
+
const d = p.get(e) ?? 0, $ = p.get(n), T = c?.shiftKey ? 10 : 1, A = d + $ * T, C = r != null ? p.get(r) : void 0;
|
|
947
|
+
if (C != null && A > C)
|
|
960
948
|
return;
|
|
961
|
-
const o = b(
|
|
949
|
+
const o = b(A);
|
|
962
950
|
o !== d && i && i(o);
|
|
963
951
|
};
|
|
964
952
|
return ee(
|
|
@@ -970,12 +958,12 @@ const Tt = (t) => {
|
|
|
970
958
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
|
|
971
959
|
),
|
|
972
960
|
l.disabled(
|
|
973
|
-
|
|
961
|
+
M(
|
|
974
962
|
x,
|
|
975
963
|
t.disabled ?? !1
|
|
976
964
|
)((c, d) => !c || d)
|
|
977
965
|
),
|
|
978
|
-
|
|
966
|
+
D.click((c) => I(c)),
|
|
979
967
|
G.label(_.$.incrementValue),
|
|
980
968
|
O({ icon: "line-md:plus", size: "xs" })
|
|
981
969
|
),
|
|
@@ -986,12 +974,12 @@ const Tt = (t) => {
|
|
|
986
974
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
|
|
987
975
|
),
|
|
988
976
|
l.disabled(
|
|
989
|
-
|
|
977
|
+
M(
|
|
990
978
|
u,
|
|
991
979
|
t.disabled ?? !1
|
|
992
980
|
)((c, d) => !c || d)
|
|
993
981
|
),
|
|
994
|
-
|
|
982
|
+
D.click((c) => y(c)),
|
|
995
983
|
G.label(_.$.decrementValue),
|
|
996
984
|
O({ icon: "line-md:minus", size: "xs" })
|
|
997
985
|
)
|
|
@@ -1000,58 +988,58 @@ const Tt = (t) => {
|
|
|
1000
988
|
return W({
|
|
1001
989
|
...t,
|
|
1002
990
|
input: le.number(
|
|
1003
|
-
s != null ? l.min(s) :
|
|
1004
|
-
r != null ? l.max(r) :
|
|
991
|
+
s != null ? l.min(s) : z,
|
|
992
|
+
r != null ? l.max(r) : z,
|
|
1005
993
|
Y(t),
|
|
1006
994
|
l.valueAsNumber(e),
|
|
1007
995
|
l.step(n),
|
|
1008
996
|
l.class("bc-input bc-number-input"),
|
|
1009
|
-
g != null ?
|
|
1010
|
-
i != null ?
|
|
1011
|
-
m != null ?
|
|
997
|
+
g != null ? D.blur(P(g)) : z,
|
|
998
|
+
i != null ? D.change(ke(i)) : z,
|
|
999
|
+
m != null ? D.input(ke(m)) : z,
|
|
1012
1000
|
// Add wheel event support when step is defined
|
|
1013
|
-
n != null ?
|
|
1001
|
+
n != null ? D.wheel((_) => {
|
|
1014
1002
|
_.preventDefault();
|
|
1015
|
-
const u = p.get(e) ?? 0, x = p.get(n), y = _.shiftKey ? 10 : 1,
|
|
1003
|
+
const u = p.get(e) ?? 0, x = p.get(n), y = _.shiftKey ? 10 : 1, I = _.deltaY < 0 ? x * y : -x * y, c = b(u + I);
|
|
1016
1004
|
c !== u && i && i(c);
|
|
1017
|
-
}) :
|
|
1005
|
+
}) : z
|
|
1018
1006
|
),
|
|
1019
1007
|
after: h
|
|
1020
1008
|
});
|
|
1021
|
-
},
|
|
1009
|
+
}, ze = (t) => {
|
|
1022
1010
|
if (t == null || t === "") return null;
|
|
1023
1011
|
const e = Number(t);
|
|
1024
1012
|
return Number.isNaN(e) ? null : e;
|
|
1025
|
-
},
|
|
1013
|
+
}, Tt = (t) => {
|
|
1026
1014
|
const { value: e, step: n, min: s, max: r, onBlur: g, onChange: i, onInput: m, after: f } = t, b = (u) => {
|
|
1027
1015
|
const x = s != null ? p.get(s) : void 0, y = r != null ? p.get(r) : void 0;
|
|
1028
1016
|
return x != null && u < x ? x : y != null && u > y ? y : u;
|
|
1029
1017
|
}, a = (() => {
|
|
1030
1018
|
if (n == null) return null;
|
|
1031
|
-
const u =
|
|
1019
|
+
const u = M(
|
|
1032
1020
|
e,
|
|
1033
1021
|
s
|
|
1034
|
-
)((d,
|
|
1035
|
-
const
|
|
1036
|
-
return
|
|
1037
|
-
}), x =
|
|
1022
|
+
)((d, $) => {
|
|
1023
|
+
const T = d ?? 0;
|
|
1024
|
+
return $ == null ? !0 : T > $;
|
|
1025
|
+
}), x = M(
|
|
1038
1026
|
e,
|
|
1039
1027
|
r
|
|
1040
|
-
)((d,
|
|
1041
|
-
const
|
|
1042
|
-
return
|
|
1028
|
+
)((d, $) => {
|
|
1029
|
+
const T = d ?? 0;
|
|
1030
|
+
return $ == null ? !0 : T < $;
|
|
1043
1031
|
}), y = (d) => {
|
|
1044
|
-
const
|
|
1032
|
+
const $ = p.get(e) ?? 0, T = p.get(n), A = d?.shiftKey ? 10 : 1, C = $ - T * A, o = s != null ? p.get(s) : void 0;
|
|
1045
1033
|
if (o != null && C < o) return;
|
|
1046
1034
|
const w = b(C);
|
|
1047
|
-
w !==
|
|
1048
|
-
},
|
|
1049
|
-
const
|
|
1035
|
+
w !== $ && i && i(w);
|
|
1036
|
+
}, I = (d) => {
|
|
1037
|
+
const $ = p.get(e) ?? 0, T = p.get(n), A = d?.shiftKey ? 10 : 1, C = $ + T * A, o = r != null ? p.get(r) : void 0;
|
|
1050
1038
|
if (o != null && C > o) return;
|
|
1051
1039
|
const w = b(C);
|
|
1052
|
-
w !==
|
|
1040
|
+
w !== $ && i && i(w);
|
|
1053
1041
|
};
|
|
1054
|
-
return ((d,
|
|
1042
|
+
return ((d, $) => ee(
|
|
1055
1043
|
l.class("bc-number-input-steppers"),
|
|
1056
1044
|
v.button(
|
|
1057
1045
|
l.type("button"),
|
|
@@ -1059,12 +1047,12 @@ const Tt = (t) => {
|
|
|
1059
1047
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
|
|
1060
1048
|
),
|
|
1061
1049
|
l.disabled(
|
|
1062
|
-
|
|
1050
|
+
M(
|
|
1063
1051
|
x,
|
|
1064
1052
|
t.disabled ?? !1
|
|
1065
|
-
)((
|
|
1053
|
+
)((T, A) => !T || A)
|
|
1066
1054
|
),
|
|
1067
|
-
|
|
1055
|
+
D.click((T) => I(T)),
|
|
1068
1056
|
G.label(d),
|
|
1069
1057
|
O({ icon: "line-md:plus", size: "xs" })
|
|
1070
1058
|
),
|
|
@@ -1074,13 +1062,13 @@ const Tt = (t) => {
|
|
|
1074
1062
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
|
|
1075
1063
|
),
|
|
1076
1064
|
l.disabled(
|
|
1077
|
-
|
|
1065
|
+
M(
|
|
1078
1066
|
u,
|
|
1079
1067
|
t.disabled ?? !1
|
|
1080
|
-
)((
|
|
1068
|
+
)((T, A) => !T || A)
|
|
1081
1069
|
),
|
|
1082
|
-
|
|
1083
|
-
G.label(
|
|
1070
|
+
D.click((T) => y(T)),
|
|
1071
|
+
G.label($),
|
|
1084
1072
|
O({ icon: "line-md:minus", size: "xs" })
|
|
1085
1073
|
)
|
|
1086
1074
|
))(
|
|
@@ -1096,36 +1084,36 @@ const Tt = (t) => {
|
|
|
1096
1084
|
...t,
|
|
1097
1085
|
input: le.number(
|
|
1098
1086
|
// min/max attributes and reactive watchers (no forced correction)
|
|
1099
|
-
s != null ? l.min(s) :
|
|
1100
|
-
r != null ? l.max(r) :
|
|
1087
|
+
s != null ? l.min(s) : z,
|
|
1088
|
+
r != null ? l.max(r) : z,
|
|
1101
1089
|
Y(t),
|
|
1102
1090
|
// Represent null as empty string so the field can be cleared
|
|
1103
1091
|
l.value(p.map(e, (u) => u == null ? "" : String(u))),
|
|
1104
1092
|
l.step(n),
|
|
1105
1093
|
l.class("bc-input bc-number-input"),
|
|
1106
|
-
g != null ?
|
|
1107
|
-
i != null ?
|
|
1108
|
-
|
|
1109
|
-
const x =
|
|
1094
|
+
g != null ? D.blur(P(g)) : z,
|
|
1095
|
+
i != null ? D.change(
|
|
1096
|
+
P((u) => {
|
|
1097
|
+
const x = ze(u);
|
|
1110
1098
|
i(x);
|
|
1111
1099
|
})
|
|
1112
|
-
) :
|
|
1113
|
-
m != null ?
|
|
1114
|
-
|
|
1115
|
-
const x =
|
|
1100
|
+
) : z,
|
|
1101
|
+
m != null ? D.input(
|
|
1102
|
+
P((u) => {
|
|
1103
|
+
const x = ze(u);
|
|
1116
1104
|
m(x);
|
|
1117
1105
|
})
|
|
1118
|
-
) :
|
|
1106
|
+
) : z,
|
|
1119
1107
|
// Wheel support when step is defined
|
|
1120
|
-
n != null ?
|
|
1108
|
+
n != null ? D.wheel((u) => {
|
|
1121
1109
|
u.preventDefault();
|
|
1122
|
-
const x = p.get(e) ?? 0, y = p.get(n),
|
|
1110
|
+
const x = p.get(e) ?? 0, y = p.get(n), I = u.shiftKey ? 10 : 1, c = u.deltaY < 0 ? y * I : -y * I, d = b(x + c);
|
|
1123
1111
|
d !== x && i && i(d);
|
|
1124
|
-
}) :
|
|
1112
|
+
}) : z
|
|
1125
1113
|
),
|
|
1126
1114
|
after: _
|
|
1127
1115
|
});
|
|
1128
|
-
},
|
|
1116
|
+
}, zt = (t) => {
|
|
1129
1117
|
const e = {
|
|
1130
1118
|
type: "pattern",
|
|
1131
1119
|
pattern: /[0-9A-Fa-f]/,
|
|
@@ -1183,25 +1171,25 @@ async function he() {
|
|
|
1183
1171
|
return t.Temporal || (t.Temporal = n), n;
|
|
1184
1172
|
})), be);
|
|
1185
1173
|
}
|
|
1186
|
-
const
|
|
1174
|
+
const ct = (t, e) => e ? Ce(he, {
|
|
1187
1175
|
then: t,
|
|
1188
1176
|
pending: e.pending,
|
|
1189
1177
|
error: e.error
|
|
1190
|
-
}) : Ce(he, t),
|
|
1191
|
-
function
|
|
1178
|
+
}) : Ce(he, t), at = /^P(\d+([YMWD]|$)){0,4}(T(\d+([HMS]|$)){0,3})?$/i, ut = /^P(?:(\d+Y)?(\d+M)?(\d+W)?(\d+D)?)(T(\d+H)?(\d+M)?(\d+S)?)?$/i;
|
|
1179
|
+
function pt(t) {
|
|
1192
1180
|
return {
|
|
1193
1181
|
mask: null,
|
|
1194
1182
|
allowMode: "custom",
|
|
1195
1183
|
allow: (e) => /[0-9ptwdhms]/i.test(e),
|
|
1196
1184
|
pipe: (e) => {
|
|
1197
1185
|
const n = e.toUpperCase();
|
|
1198
|
-
return n.length === 0 ? n : !n.startsWith("P") || !
|
|
1186
|
+
return n.length === 0 ? n : !n.startsWith("P") || !at.test(n) ? !1 : n;
|
|
1199
1187
|
},
|
|
1200
1188
|
completion: {
|
|
1201
1189
|
mode: "custom",
|
|
1202
1190
|
isComplete: (e) => {
|
|
1203
1191
|
const n = e.toUpperCase();
|
|
1204
|
-
if (!
|
|
1192
|
+
if (!ut.test(n)) return !1;
|
|
1205
1193
|
try {
|
|
1206
1194
|
return t(n), !0;
|
|
1207
1195
|
} catch {
|
|
@@ -1218,18 +1206,18 @@ const Se = (t, e) => {
|
|
|
1218
1206
|
} catch {
|
|
1219
1207
|
return null;
|
|
1220
1208
|
}
|
|
1221
|
-
},
|
|
1209
|
+
}, St = (t) => {
|
|
1222
1210
|
const { value: e, onChange: n, onInput: s, after: r, disabled: g, onBlur: i } = t, m = () => {
|
|
1223
1211
|
const a = Ue(e, g, n ?? s);
|
|
1224
1212
|
return r != null ? E(a, r) : a;
|
|
1225
|
-
}, f = t.placeholder != null ?
|
|
1226
|
-
return
|
|
1213
|
+
}, f = t.placeholder != null ? z : l.placeholder("P0DT0H0M0S");
|
|
1214
|
+
return ct(
|
|
1227
1215
|
(a) => Le({
|
|
1228
1216
|
...t,
|
|
1229
1217
|
value: p.map(e, (h) => h?.toString() ?? ""),
|
|
1230
1218
|
onChange: n ? (h) => n(h === "" ? null : a.Duration.from(h)) : void 0,
|
|
1231
1219
|
onInput: void 0,
|
|
1232
|
-
...
|
|
1220
|
+
...pt(a.Duration.from),
|
|
1233
1221
|
placeholder: "P0DT0H0M0S",
|
|
1234
1222
|
after: m()
|
|
1235
1223
|
}),
|
|
@@ -1240,9 +1228,9 @@ const Se = (t, e) => {
|
|
|
1240
1228
|
h(null);
|
|
1241
1229
|
return;
|
|
1242
1230
|
}
|
|
1243
|
-
const y = globalThis.Temporal,
|
|
1244
|
-
if (
|
|
1245
|
-
h(
|
|
1231
|
+
const y = globalThis.Temporal, I = Se(y, x);
|
|
1232
|
+
if (I != null) {
|
|
1233
|
+
h(I);
|
|
1246
1234
|
return;
|
|
1247
1235
|
}
|
|
1248
1236
|
he().then((c) => {
|
|
@@ -1258,9 +1246,9 @@ const Se = (t, e) => {
|
|
|
1258
1246
|
l.value(p.map(e, (h) => h?.toString() ?? "")),
|
|
1259
1247
|
l.class("bc-input"),
|
|
1260
1248
|
f,
|
|
1261
|
-
i != null ?
|
|
1262
|
-
n != null ?
|
|
1263
|
-
s != null ?
|
|
1249
|
+
i != null ? D.blur(() => i()) : z,
|
|
1250
|
+
n != null ? D.change(a(n)) : z,
|
|
1251
|
+
s != null ? D.input(a(s)) : z
|
|
1264
1252
|
),
|
|
1265
1253
|
after: m()
|
|
1266
1254
|
});
|
|
@@ -1274,12 +1262,12 @@ const Se = (t, e) => {
|
|
|
1274
1262
|
Y(t),
|
|
1275
1263
|
l.value(e),
|
|
1276
1264
|
l.class("bc-input"),
|
|
1277
|
-
n != null ?
|
|
1278
|
-
s != null ?
|
|
1279
|
-
r != null ?
|
|
1265
|
+
n != null ? D.blur(P(n)) : z,
|
|
1266
|
+
s != null ? D.change(P(s)) : z,
|
|
1267
|
+
r != null ? D.input(P(r)) : z
|
|
1280
1268
|
)
|
|
1281
1269
|
});
|
|
1282
|
-
},
|
|
1270
|
+
}, ft = (t) => {
|
|
1283
1271
|
const {
|
|
1284
1272
|
controller: e,
|
|
1285
1273
|
element: n,
|
|
@@ -1293,7 +1281,7 @@ const Se = (t, e) => {
|
|
|
1293
1281
|
removeDisabled: a,
|
|
1294
1282
|
addDisabled: h
|
|
1295
1283
|
} = t, _ = p.toSignal(b).map((y) => y === "aside"), u = (y) => {
|
|
1296
|
-
const
|
|
1284
|
+
const I = U(
|
|
1297
1285
|
r ?? !1,
|
|
1298
1286
|
() => v.div(
|
|
1299
1287
|
l.class("bc-group--align-center"),
|
|
@@ -1344,7 +1332,7 @@ const Se = (t, e) => {
|
|
|
1344
1332
|
(d) => ce({
|
|
1345
1333
|
size: "xs",
|
|
1346
1334
|
// Use a lowercase label to satisfy tests that query with [aria-label*="remove"]
|
|
1347
|
-
label: p.map(d.$.removeItem, (
|
|
1335
|
+
label: p.map(d.$.removeItem, ($) => $.toLowerCase()),
|
|
1348
1336
|
color: "danger",
|
|
1349
1337
|
disabled: a,
|
|
1350
1338
|
onClick: y.remove
|
|
@@ -1359,8 +1347,8 @@ const Se = (t, e) => {
|
|
|
1359
1347
|
ee(
|
|
1360
1348
|
l.class("bc-stack--align-center"),
|
|
1361
1349
|
U(
|
|
1362
|
-
e.signal.map((
|
|
1363
|
-
() =>
|
|
1350
|
+
e.signal.map(($) => $.length > 1),
|
|
1351
|
+
() => I
|
|
1364
1352
|
),
|
|
1365
1353
|
c
|
|
1366
1354
|
)
|
|
@@ -1371,8 +1359,8 @@ const Se = (t, e) => {
|
|
|
1371
1359
|
re(
|
|
1372
1360
|
l.class("bc-group--gap-2 bc-group--justify-between"),
|
|
1373
1361
|
U(
|
|
1374
|
-
e.signal.map((
|
|
1375
|
-
() =>
|
|
1362
|
+
e.signal.map(($) => $.length > 1),
|
|
1363
|
+
() => I,
|
|
1376
1364
|
() => v.div()
|
|
1377
1365
|
),
|
|
1378
1366
|
c
|
|
@@ -1380,7 +1368,7 @@ const Se = (t, e) => {
|
|
|
1380
1368
|
)
|
|
1381
1369
|
);
|
|
1382
1370
|
}, x = U(
|
|
1383
|
-
|
|
1371
|
+
M(i, m)((y, I) => y && I != null),
|
|
1384
1372
|
() => re(
|
|
1385
1373
|
l.class(
|
|
1386
1374
|
"bc-group--gap-2 bc-group--align-center bc-group--justify-center"
|
|
@@ -1390,11 +1378,11 @@ const Se = (t, e) => {
|
|
|
1390
1378
|
size: "sm",
|
|
1391
1379
|
variant: "filled",
|
|
1392
1380
|
onClick: () => e.push(m()),
|
|
1393
|
-
disabled:
|
|
1381
|
+
disabled: M(
|
|
1394
1382
|
e.disabled,
|
|
1395
1383
|
h ?? !1
|
|
1396
1384
|
)(
|
|
1397
|
-
(y,
|
|
1385
|
+
(y, I) => y || I
|
|
1398
1386
|
)
|
|
1399
1387
|
},
|
|
1400
1388
|
F(
|
|
@@ -1409,14 +1397,14 @@ const Se = (t, e) => {
|
|
|
1409
1397
|
)
|
|
1410
1398
|
);
|
|
1411
1399
|
return E(
|
|
1412
|
-
|
|
1400
|
+
st(
|
|
1413
1401
|
e,
|
|
1414
1402
|
(y) => u(y)(n(y)),
|
|
1415
1403
|
s
|
|
1416
1404
|
),
|
|
1417
1405
|
x
|
|
1418
1406
|
);
|
|
1419
|
-
},
|
|
1407
|
+
}, Bt = (t, ...e) => {
|
|
1420
1408
|
const {
|
|
1421
1409
|
controller: n,
|
|
1422
1410
|
element: s,
|
|
@@ -1431,10 +1419,10 @@ const Se = (t, e) => {
|
|
|
1431
1419
|
addDisabled: _,
|
|
1432
1420
|
...u
|
|
1433
1421
|
} = t;
|
|
1434
|
-
return
|
|
1422
|
+
return Be(
|
|
1435
1423
|
{
|
|
1436
1424
|
...u,
|
|
1437
|
-
content:
|
|
1425
|
+
content: ft({
|
|
1438
1426
|
controller: n,
|
|
1439
1427
|
element: s,
|
|
1440
1428
|
separator: r,
|
|
@@ -1451,7 +1439,7 @@ const Se = (t, e) => {
|
|
|
1451
1439
|
...e
|
|
1452
1440
|
);
|
|
1453
1441
|
};
|
|
1454
|
-
class
|
|
1442
|
+
class Mt extends fe {
|
|
1455
1443
|
branches;
|
|
1456
1444
|
activeBranch;
|
|
1457
1445
|
#t;
|
|
@@ -1480,7 +1468,7 @@ class Ut extends fe {
|
|
|
1480
1468
|
(u) => h.detect(u) ? u : h.defaultValue(),
|
|
1481
1469
|
m
|
|
1482
1470
|
),
|
|
1483
|
-
r.map(
|
|
1471
|
+
r.map(Ie([a])),
|
|
1484
1472
|
{
|
|
1485
1473
|
disabled: this.disabled,
|
|
1486
1474
|
validationMode: this.parent.validationMode
|
|
@@ -1522,7 +1510,7 @@ class Ut extends fe {
|
|
|
1522
1510
|
(r) => n.detect(r) ? r : n.defaultValue(),
|
|
1523
1511
|
Q
|
|
1524
1512
|
),
|
|
1525
|
-
this.status.map(
|
|
1513
|
+
this.status.map(Ie([e])),
|
|
1526
1514
|
{
|
|
1527
1515
|
disabled: this.disabled,
|
|
1528
1516
|
validationMode: this.parent.validationMode
|
|
@@ -1561,19 +1549,19 @@ class Ut extends fe {
|
|
|
1561
1549
|
return this.branches.find((n) => n.key === e);
|
|
1562
1550
|
}
|
|
1563
1551
|
}
|
|
1564
|
-
function
|
|
1552
|
+
function At(t) {
|
|
1565
1553
|
return t.transform(
|
|
1566
1554
|
(e) => e ?? null,
|
|
1567
1555
|
(e) => e ?? void 0
|
|
1568
1556
|
);
|
|
1569
1557
|
}
|
|
1570
|
-
function
|
|
1558
|
+
function Lt(t) {
|
|
1571
1559
|
return t.transform(
|
|
1572
1560
|
(e) => e ?? "",
|
|
1573
1561
|
(e) => e === "" ? void 0 : e
|
|
1574
1562
|
);
|
|
1575
1563
|
}
|
|
1576
|
-
function
|
|
1564
|
+
function Ut(t) {
|
|
1577
1565
|
return t.transform(
|
|
1578
1566
|
(e) => e ?? void 0,
|
|
1579
1567
|
(e) => e ?? null
|
|
@@ -1582,53 +1570,50 @@ function Ft(t) {
|
|
|
1582
1570
|
function ie(t) {
|
|
1583
1571
|
return t !== null && typeof t == "object" && !Array.isArray(t) && Object.prototype.toString.call(t) === "[object Object]";
|
|
1584
1572
|
}
|
|
1585
|
-
function
|
|
1573
|
+
function dt(t, e) {
|
|
1586
1574
|
if (e == null)
|
|
1587
|
-
return
|
|
1575
|
+
return Ve(t);
|
|
1588
1576
|
if (t == null)
|
|
1589
1577
|
return e;
|
|
1590
1578
|
if (ie(t) && ie(e)) {
|
|
1591
1579
|
const n = { ...e };
|
|
1592
1580
|
for (const s of Object.keys(t))
|
|
1593
|
-
n[s] === void 0 ? n[s] =
|
|
1581
|
+
n[s] === void 0 ? n[s] = Ve(t[s]) : ie(t[s]) && ie(n[s]) && (n[s] = dt(t[s], n[s]));
|
|
1594
1582
|
return n;
|
|
1595
1583
|
}
|
|
1596
1584
|
return e;
|
|
1597
1585
|
}
|
|
1598
|
-
function
|
|
1586
|
+
function Ve(t) {
|
|
1599
1587
|
return typeof structuredClone == "function" ? structuredClone(t) : JSON.parse(JSON.stringify(t));
|
|
1600
1588
|
}
|
|
1601
1589
|
export {
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
Dt as F,
|
|
1590
|
+
ft as B,
|
|
1591
|
+
et as E,
|
|
1592
|
+
kt as F,
|
|
1606
1593
|
re as G,
|
|
1607
|
-
|
|
1594
|
+
Bt as L,
|
|
1608
1595
|
Le as M,
|
|
1609
1596
|
Ue as N,
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
kt as _,
|
|
1597
|
+
_t as S,
|
|
1598
|
+
It as T,
|
|
1599
|
+
zt as U,
|
|
1600
|
+
ct as W,
|
|
1615
1601
|
Vt as a,
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1602
|
+
Tt as b,
|
|
1603
|
+
$t as c,
|
|
1604
|
+
pt as d,
|
|
1605
|
+
St as e,
|
|
1606
|
+
nt as f,
|
|
1607
|
+
Dt as g,
|
|
1608
|
+
Mt as h,
|
|
1609
|
+
dt as i,
|
|
1610
|
+
At as j,
|
|
1625
1611
|
de as k,
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
Ot as t
|
|
1612
|
+
Ut as l,
|
|
1613
|
+
st as m,
|
|
1614
|
+
lt as n,
|
|
1615
|
+
Ct as o,
|
|
1616
|
+
tt as p,
|
|
1617
|
+
he as q,
|
|
1618
|
+
Lt as t
|
|
1634
1619
|
};
|