@tempots/beatui 0.25.0 → 0.27.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/{2019-DrrKn54V.js → 2019-Cw6dbOsG.js} +2 -2
- package/dist/{2019-BGvIfJgi.cjs → 2019-DU48Szvf.cjs} +1 -1
- package/dist/{2020-CFnlLHs-.js → 2020-C4Shen9O.js} +2 -2
- package/dist/{2020-BK5C7IVQ.cjs → 2020-Cp1L6hfj.cjs} +1 -1
- package/dist/{ar-BgrUqaxG.js → ar-L29B4drg.js} +1 -1
- package/dist/ar-Xt0B1GBx.cjs +1 -0
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +443 -425
- package/dist/de-BBH6Q1uM.cjs +1 -0
- package/dist/{de-D_sdCcAw.js → de-BL9YMCWJ.js} +1 -1
- package/dist/es-3mljmytv.cjs +1 -0
- package/dist/{es-DczvLqEV.js → es-CS4u7MZp.js} +1 -1
- package/dist/fa-C06uowfA.cjs +1 -0
- package/dist/{fa-DhPP5Tgo.js → fa-_5IxCXGI.js} +1 -1
- package/dist/{fr-D3WwoeQg.js → fr-B-ZWm43Y.js} +1 -1
- package/dist/fr-ZoJsA1s0.cjs +1 -0
- package/dist/he-D-_HCjOB.cjs +1 -0
- package/dist/{he-CFhi-6Rs.js → he-J-Bcrgy9.js} +1 -1
- package/dist/hi-B9yNE6-J.cjs +1 -0
- package/dist/{hi-Cqy8JcS7.js → hi-ClGaIH71.js} +1 -1
- package/dist/{index-CvvASOCn.cjs → index-CLfb1616.cjs} +4 -4
- package/dist/{index-DkuGi1I_.js → index-DxiM_mmQ.js} +15 -15
- package/dist/{index-CNVCqpBH.cjs → index-NUMH-iWq.cjs} +1 -1
- package/dist/{index-BMX9_XgV.js → index-Nv9nZIgS.js} +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +274 -276
- package/dist/it-D-bh7RoG.cjs +1 -0
- package/dist/{it-CtMArqSp.js → it-Dv8tmKm5.js} +1 -1
- package/dist/ja-B4rdImcD.cjs +1 -0
- package/dist/{ja-UFqZT78C.js → ja-BpqiZN5f.js} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-B5LB1_X_.js → ko-Bpa6y038.js} +1 -1
- package/dist/ko-C43-vhJF.cjs +1 -0
- package/dist/modal-DKWKUrDF.cjs +1 -0
- package/dist/{modal-C2Aa-aVN.js → modal-Fect9dc4.js} +1 -1
- package/dist/{nl-DCfHVqzQ.js → nl-B5HYWGRz.js} +1 -1
- package/dist/nl-DDjoZpiU.cjs +1 -0
- package/dist/{translations-GO9sIajX.js → notice-DKO4C8y2.js} +475 -376
- package/dist/{translations-DpZ-btu9.cjs → notice-DrmHRjLV.cjs} +2 -2
- package/dist/pl-CXYiY-nR.cjs +1 -0
- package/dist/{pl-UcTv39q1.js → pl-DksXqLHk.js} +1 -1
- package/dist/{pt-CXsgmVtb.js → pt-7-6UhRtW.js} +1 -1
- package/dist/pt-CnC1YN5K.cjs +1 -0
- package/dist/{ru-C0MvZW2g.js → ru-I676X0Bt.js} +1 -1
- package/dist/ru-_1DUTMUW.cjs +1 -0
- package/dist/{tr-CIIkc1uL.js → tr-CssmRZfH.js} +1 -1
- package/dist/tr-DA-8X7MK.cjs +1 -0
- package/dist/{translations-CB6iJ1Rn.js → translations-BBguPjg9.js} +1 -1
- package/dist/translations-CrqWcCGM.cjs +1 -0
- package/dist/ur-B1YkWWDx.cjs +1 -0
- package/dist/{ur-Cpx9oyTV.js → ur-BCWL2ev1.js} +1 -1
- package/dist/utils-ClYvMRfA.cjs +1 -0
- package/dist/{notice-wSAzLfbl.js → utils-DU4oGQiY.js} +647 -746
- package/dist/{vi-D24AUQ01.js → vi-D5K4x_hN.js} +1 -1
- package/dist/vi-DA-qqgHJ.cjs +1 -0
- package/dist/zh-B4HcAg-5.cjs +1 -0
- package/dist/{zh-25YFRjoV.js → zh-HUwi9F-w.js} +1 -1
- package/package.json +3 -3
- package/dist/ar-BAb4yHZS.cjs +0 -1
- package/dist/de-Dn2CdXgD.cjs +0 -1
- package/dist/es-CEPxKSog.cjs +0 -1
- package/dist/fa-NvkKjIQ6.cjs +0 -1
- package/dist/fr-cR59lx1A.cjs +0 -1
- package/dist/he-CxSHPJMg.cjs +0 -1
- package/dist/hi-DLnz3lCX.cjs +0 -1
- package/dist/it-C7Kv6j-_.cjs +0 -1
- package/dist/ja-BPL80aw5.cjs +0 -1
- package/dist/ko-Cmt_34Xp.cjs +0 -1
- package/dist/modal-UsqvSvHy.cjs +0 -1
- package/dist/nl-B-WL9SX2.cjs +0 -1
- package/dist/notice-DyoWY5tY.cjs +0 -1
- package/dist/pl-TGqkSi2w.cjs +0 -1
- package/dist/pt-Ua_e-1JE.cjs +0 -1
- package/dist/ru-9YWCN6fR.cjs +0 -1
- package/dist/tr-D70Oy8aN.cjs +0 -1
- package/dist/translations-NYxsXjMT.cjs +0 -1
- package/dist/ur-DmxXuJ9O.cjs +0 -1
- package/dist/vi-Cboo_ueb.cjs +0 -1
- package/dist/zh-BXivX7rD.cjs +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Use as
|
|
2
|
-
import { f as
|
|
3
|
-
import { g as
|
|
4
|
-
import { ElementRect as
|
|
5
|
-
import { B as
|
|
6
|
-
class
|
|
1
|
+
import { Use as H, Value as u, prop as te, html as I, attr as a, on as C, WithElement as ie, OnDispose as W, aria as N, bind as _e, computedOf as V, style as de, When as E, NotEmpty as Ge, Fragment as L, ForEach as fe, svg as Ae, svgAttr as he, Empty as T, emitValue as P, coalesce as Qe, Ensure as Je, OneOfType as Ke, Repeat as Pe, signal as Fe, input as K, emitValueAsNullableDate as et, emitValueAsNullableDateTime as tt, emitValueAsNumber as G, emit as nt, Task as Be } from "@tempots/dom";
|
|
2
|
+
import { f as st } from "./colors-WfmhQ5e1.js";
|
|
3
|
+
import { g as rt } from "./timer-CQlK5LhW.js";
|
|
4
|
+
import { ElementRect as je, AutoSelect as lt } from "@tempots/ui";
|
|
5
|
+
import { B as X, e as O, f as at, C as $e, I as z, g as j, h as ot, i as ct, j as He, k as ke, T as it, E as ut, P as pt, S as ce, s as dt, L as ft, l as mt, n as Le, o as ht, a as ge, p as be, O as le, q as Ve } from "./notice-DKO4C8y2.js";
|
|
6
|
+
class gt extends Error {
|
|
7
7
|
constructor(t = "Missing implementation") {
|
|
8
8
|
super(t), this.name = "MissingImplementationError";
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const un = (e) => bt(e).split("_").join(" "), bt = (e) => (e = e.replace(/::/g, "/"), e = e.replace(/([A-Z]+)([A-Z][a-z])/g, "$1_$2"), e = e.replace(/([a-z\d])([A-Z])/g, "$1_$2"), e = e.replace(/-/g, "_"), e.toLowerCase()), pn = (e) => e.substring(0, 1).toUpperCase() + e.substring(1), vt = (e) => {
|
|
12
12
|
if (typeof Buffer < "u")
|
|
13
13
|
return Buffer.from(e, "base64").toString("utf8");
|
|
14
14
|
if (typeof atob < "u")
|
|
15
15
|
return atob(e);
|
|
16
|
-
throw new
|
|
16
|
+
throw new gt(
|
|
17
17
|
"No implementation found for base64 decoding"
|
|
18
18
|
);
|
|
19
19
|
};
|
|
@@ -26,8 +26,8 @@ function Ee({
|
|
|
26
26
|
disabled: o = !1,
|
|
27
27
|
allowMultiple: l
|
|
28
28
|
}) {
|
|
29
|
-
return
|
|
30
|
-
const c = u.deriveProp(t ?? []), p =
|
|
29
|
+
return H(X, (i) => {
|
|
30
|
+
const c = u.deriveProp(t ?? []), p = te(!1), m = (g) => {
|
|
31
31
|
g.preventDefault(), g.stopPropagation(), p.value = !0;
|
|
32
32
|
}, f = (g) => {
|
|
33
33
|
g.preventDefault(), g.stopPropagation(), (!g.currentTarget || !g.currentTarget.contains(g.relatedTarget)) && (p.value = !1);
|
|
@@ -45,10 +45,10 @@ function Ee({
|
|
|
45
45
|
if (x == null) return;
|
|
46
46
|
const g = Array.from(x.files ?? []);
|
|
47
47
|
g.length > 0 && (c.value = g, e(g)), x.value = "";
|
|
48
|
-
},
|
|
48
|
+
}, $ = (g) => {
|
|
49
49
|
u.get(n) && (g.key === "Enter" || g.key === " ") && (g.preventDefault(), d(g));
|
|
50
50
|
};
|
|
51
|
-
return
|
|
51
|
+
return I.div(
|
|
52
52
|
a.role("button"),
|
|
53
53
|
a.tabindex(
|
|
54
54
|
u.map(n, (g) => g ? 0 : -1)
|
|
@@ -58,9 +58,9 @@ function Ee({
|
|
|
58
58
|
C.dragleave(f),
|
|
59
59
|
C.drop(v),
|
|
60
60
|
C.click(d),
|
|
61
|
-
C.keydown(
|
|
61
|
+
C.keydown($),
|
|
62
62
|
// Hidden file input
|
|
63
|
-
|
|
63
|
+
I.input(
|
|
64
64
|
a.type("file"),
|
|
65
65
|
a.disabled(o),
|
|
66
66
|
a.accept(r),
|
|
@@ -69,63 +69,63 @@ function Ee({
|
|
|
69
69
|
"position: absolute; left: -9999px; opacity: 0; pointer-events: none;"
|
|
70
70
|
),
|
|
71
71
|
C.change(h),
|
|
72
|
-
ie((g) => (x = g,
|
|
72
|
+
ie((g) => (x = g, W(
|
|
73
73
|
c.on((b) => {
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
const
|
|
77
|
-
b.forEach((
|
|
74
|
+
const D = globalThis.DataTransfer;
|
|
75
|
+
if (D != null) {
|
|
76
|
+
const y = new D();
|
|
77
|
+
b.forEach((_) => y.items.add(_)), g.files = y.files;
|
|
78
78
|
}
|
|
79
79
|
})
|
|
80
80
|
)))
|
|
81
81
|
),
|
|
82
82
|
// Screen reader instructions
|
|
83
|
-
N.label(
|
|
83
|
+
N.label(_e(i.$.dropZoneInstructions)(n)),
|
|
84
84
|
// Content
|
|
85
85
|
s({ files: c, clear: () => c.value = [], change: c.set })
|
|
86
86
|
);
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function xt(e, t) {
|
|
90
90
|
return e.length === t.length && e.every((r, n) => r === t[n]);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function wt(e, t) {
|
|
93
93
|
const r = ["bc-segmented-control", `bc-segmented-control--size-${e}`];
|
|
94
94
|
return t && r.push("bc-segmented-control--disabled"), r.join(" ");
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function dn({
|
|
97
97
|
options: e,
|
|
98
98
|
value: t,
|
|
99
99
|
onChange: r,
|
|
100
100
|
size: n = "md",
|
|
101
101
|
disabled: s = !1
|
|
102
102
|
}, ...o) {
|
|
103
|
-
const l =
|
|
103
|
+
const l = st(e).map(([i, c]) => ({
|
|
104
104
|
key: i,
|
|
105
105
|
label: c
|
|
106
106
|
}));
|
|
107
107
|
return ie(() => {
|
|
108
108
|
const i = Object.fromEntries(
|
|
109
109
|
l.map((p, m) => [p.key, m])
|
|
110
|
-
), c =
|
|
110
|
+
), c = te(
|
|
111
111
|
l.map(() => ({ left: 0, width: 0 })),
|
|
112
|
-
|
|
112
|
+
xt
|
|
113
113
|
);
|
|
114
|
-
return
|
|
114
|
+
return I.div(
|
|
115
115
|
a.class(
|
|
116
|
-
|
|
116
|
+
V(
|
|
117
117
|
n,
|
|
118
118
|
s
|
|
119
119
|
)(
|
|
120
|
-
(p, m) =>
|
|
120
|
+
(p, m) => wt(p ?? "md", m ?? !1)
|
|
121
121
|
)
|
|
122
122
|
),
|
|
123
|
-
|
|
123
|
+
I.div(
|
|
124
124
|
a.class("bc-segmented-control__container"),
|
|
125
|
-
|
|
125
|
+
I.div(
|
|
126
126
|
a.class("bc-segmented-control__indicator"),
|
|
127
127
|
de.width(
|
|
128
|
-
|
|
128
|
+
V(
|
|
129
129
|
t,
|
|
130
130
|
c
|
|
131
131
|
)((p, m) => {
|
|
@@ -134,7 +134,7 @@ function gn({
|
|
|
134
134
|
})
|
|
135
135
|
),
|
|
136
136
|
de.left(
|
|
137
|
-
|
|
137
|
+
V(
|
|
138
138
|
t,
|
|
139
139
|
c
|
|
140
140
|
)((p, m) => {
|
|
@@ -144,7 +144,7 @@ function gn({
|
|
|
144
144
|
)
|
|
145
145
|
),
|
|
146
146
|
// clickable buttons
|
|
147
|
-
l.map(({ label: p, key: m }, f) =>
|
|
147
|
+
l.map(({ label: p, key: m }, f) => I.button(
|
|
148
148
|
C.click((v) => {
|
|
149
149
|
v.preventDefault(), u.get(s) || r?.(m);
|
|
150
150
|
}),
|
|
@@ -153,18 +153,18 @@ function gn({
|
|
|
153
153
|
a.class(
|
|
154
154
|
u.map(t, (v) => v === m ? "bc-segmented-control__segment--active" : "bc-segmented-control__segment--inactive")
|
|
155
155
|
),
|
|
156
|
-
|
|
156
|
+
je((v) => {
|
|
157
157
|
function d() {
|
|
158
158
|
c.update((h) => {
|
|
159
|
-
const
|
|
160
|
-
return
|
|
159
|
+
const $ = [...h];
|
|
160
|
+
return $[f] = {
|
|
161
161
|
width: v.value.width,
|
|
162
162
|
left: v.value.localLeft
|
|
163
|
-
},
|
|
163
|
+
}, $;
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
|
-
const x =
|
|
167
|
-
return
|
|
166
|
+
const x = rt(d);
|
|
167
|
+
return W(x, v.on(d));
|
|
168
168
|
}),
|
|
169
169
|
p
|
|
170
170
|
))
|
|
@@ -173,41 +173,41 @@ function gn({
|
|
|
173
173
|
);
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function _t(e) {
|
|
177
177
|
const t = e.type.toLowerCase();
|
|
178
178
|
return t.startsWith("image/") && (t.includes("jpeg") || t.includes("jpg") || t.includes("png") || t.includes("gif") || t.includes("webp") || t.includes("svg"));
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function $t(e) {
|
|
181
181
|
const t = e.type.toLowerCase();
|
|
182
182
|
return t.startsWith("image/") ? "vscode-icons:file-type-image" : t.startsWith("video/") ? "vscode-icons:file-type-video" : t.startsWith("audio/") ? "vscode-icons:file-type-audio" : t.includes("pdf") ? "vscode-icons:file-type-pdf2" : t.includes("word") || t.includes("document") ? "vscode-icons:file-type-word" : t.includes("excel") || t.includes("spreadsheet") ? "vscode-icons:file-type-excel" : t.includes("powerpoint") || t.includes("presentation") ? "vscode-icons:file-type-powerpoint" : t.includes("zip") || t.includes("archive") ? "vscode-icons:file-type-zip" : t.includes("text") ? "vscode-icons:file-type-text" : t.includes("json") ? "vscode-icons:file-type-json-official" : t.includes("csv") ? "vscode-icons:file-type-csv" : t.includes("xml") ? "vscode-icons:file-type-xml" : t.includes("yaml") ? "vscode-icons:file-type-yaml-official" : "vscode-icons:file-type-binary";
|
|
183
183
|
}
|
|
184
184
|
function Ue(e) {
|
|
185
185
|
return E(
|
|
186
|
-
e.map(
|
|
186
|
+
e.map(_t),
|
|
187
187
|
() => {
|
|
188
|
-
const t =
|
|
188
|
+
const t = te(null);
|
|
189
189
|
return e.on((r) => {
|
|
190
190
|
t.value && URL.revokeObjectURL(t.value);
|
|
191
191
|
const n = URL.createObjectURL(r);
|
|
192
192
|
t.value = n;
|
|
193
|
-
}),
|
|
193
|
+
}), I.div(
|
|
194
194
|
a.class("bc-file-input__thumbnail-container"),
|
|
195
|
-
|
|
195
|
+
I.img(
|
|
196
196
|
a.src(t),
|
|
197
197
|
a.alt(e.map((r) => r.name)),
|
|
198
198
|
a.class("bc-file-input__thumbnail"),
|
|
199
|
-
|
|
199
|
+
W(() => {
|
|
200
200
|
t.value && URL.revokeObjectURL(t.value);
|
|
201
201
|
})
|
|
202
202
|
)
|
|
203
203
|
);
|
|
204
204
|
},
|
|
205
|
-
() => z({ icon: e.map(
|
|
205
|
+
() => z({ icon: e.map($t) })
|
|
206
206
|
);
|
|
207
207
|
}
|
|
208
208
|
const kt = (e, ...t) => {
|
|
209
209
|
const {
|
|
210
|
-
value: r =
|
|
210
|
+
value: r = te([]),
|
|
211
211
|
accept: n = "*/*",
|
|
212
212
|
maxFiles: s,
|
|
213
213
|
maxFileSize: o,
|
|
@@ -218,38 +218,38 @@ const kt = (e, ...t) => {
|
|
|
218
218
|
mode: m = "default",
|
|
219
219
|
showFileList: f = !0,
|
|
220
220
|
...v
|
|
221
|
-
} = e, d = r, x = u.map(m, (
|
|
222
|
-
let
|
|
221
|
+
} = e, d = r, x = u.map(m, (y) => y === "compact"), h = (y) => {
|
|
222
|
+
let _ = y;
|
|
223
223
|
if (s != null) {
|
|
224
|
-
const
|
|
225
|
-
|
|
224
|
+
const w = u.get(s);
|
|
225
|
+
_ = _.slice(0, w);
|
|
226
226
|
}
|
|
227
227
|
if (o) {
|
|
228
|
-
const
|
|
229
|
-
|
|
228
|
+
const w = u.get(o);
|
|
229
|
+
_ = _.filter((k) => k.size <= w);
|
|
230
230
|
}
|
|
231
|
-
l?.($);
|
|
232
|
-
}, w = (I) => {
|
|
233
|
-
const _ = d.value.filter((k, T) => T !== I);
|
|
234
231
|
l?.(_);
|
|
232
|
+
}, $ = (y) => {
|
|
233
|
+
const w = d.value.filter((k, M) => M !== y);
|
|
234
|
+
l?.(w);
|
|
235
235
|
}, g = () => {
|
|
236
236
|
l?.([]);
|
|
237
237
|
}, b = ({
|
|
238
|
-
files:
|
|
239
|
-
clear:
|
|
240
|
-
change:
|
|
241
|
-
}) =>
|
|
242
|
-
|
|
243
|
-
(k) =>
|
|
238
|
+
files: y,
|
|
239
|
+
clear: _,
|
|
240
|
+
change: w
|
|
241
|
+
}) => H(
|
|
242
|
+
X,
|
|
243
|
+
(k) => I.div(
|
|
244
244
|
a.class("bc-file-input__drop-zone"),
|
|
245
|
-
|
|
245
|
+
I.div(
|
|
246
246
|
a.class(
|
|
247
247
|
"bc-file-input__drop-zone-content bc-file-input__drop-zone-content--empty"
|
|
248
248
|
),
|
|
249
249
|
z({ icon: "mdi:cloud-upload-outline", size: "xl" }),
|
|
250
|
-
|
|
250
|
+
I.div(
|
|
251
251
|
a.class("bc-file-input__drop-zone-text"),
|
|
252
|
-
|
|
252
|
+
_e(k.$.filesInputInstructions)(
|
|
253
253
|
s,
|
|
254
254
|
o,
|
|
255
255
|
k.$.fileSizeUnits.value
|
|
@@ -257,56 +257,56 @@ const kt = (e, ...t) => {
|
|
|
257
257
|
)
|
|
258
258
|
)
|
|
259
259
|
)
|
|
260
|
-
),
|
|
261
|
-
files:
|
|
262
|
-
}) =>
|
|
263
|
-
|
|
264
|
-
(
|
|
260
|
+
), D = ({
|
|
261
|
+
files: y
|
|
262
|
+
}) => H(
|
|
263
|
+
X,
|
|
264
|
+
(_) => I.div(
|
|
265
265
|
a.class("bc-file-input__compact-input"),
|
|
266
266
|
E(
|
|
267
|
-
|
|
268
|
-
() =>
|
|
267
|
+
y.map((w) => w.length > 0),
|
|
268
|
+
() => I.span(
|
|
269
269
|
a.class("bc-file-input__compact-value"),
|
|
270
270
|
fe(
|
|
271
|
-
|
|
272
|
-
(
|
|
271
|
+
y,
|
|
272
|
+
(w) => I.span(
|
|
273
273
|
a.class("bc-file-input__compact-value-item"),
|
|
274
|
-
Ue(
|
|
275
|
-
|
|
274
|
+
Ue(w),
|
|
275
|
+
I.span(
|
|
276
276
|
a.class("bc-file-input__compact-value-item-name"),
|
|
277
|
-
|
|
277
|
+
w.$.name
|
|
278
278
|
)
|
|
279
279
|
)
|
|
280
280
|
)
|
|
281
281
|
),
|
|
282
|
-
() =>
|
|
282
|
+
() => I.span(
|
|
283
283
|
a.class("bc-file-input__compact-placeholder"),
|
|
284
284
|
z({ icon: "mdi:cloud-upload-outline", size: "sm" }),
|
|
285
285
|
" ",
|
|
286
|
-
|
|
286
|
+
_e(_.$.filesInputInstructions)(
|
|
287
287
|
s,
|
|
288
288
|
o,
|
|
289
|
-
|
|
289
|
+
_.$.fileSizeUnits.value
|
|
290
290
|
)
|
|
291
291
|
)
|
|
292
292
|
)
|
|
293
293
|
)
|
|
294
294
|
);
|
|
295
|
-
return
|
|
296
|
-
|
|
297
|
-
(
|
|
295
|
+
return H(
|
|
296
|
+
X,
|
|
297
|
+
(y) => O(
|
|
298
298
|
{
|
|
299
|
-
baseContainer: u.map(x, (
|
|
299
|
+
baseContainer: u.map(x, (_) => !_),
|
|
300
300
|
disabled: c,
|
|
301
301
|
hasError: p,
|
|
302
302
|
after: E(
|
|
303
303
|
x,
|
|
304
304
|
() => E(
|
|
305
|
-
d.map(({ length:
|
|
306
|
-
() =>
|
|
305
|
+
d.map(({ length: _ }) => _ > 0),
|
|
306
|
+
() => $e(
|
|
307
307
|
{
|
|
308
308
|
size: "sm",
|
|
309
|
-
label:
|
|
309
|
+
label: y.$.clearAllFiles,
|
|
310
310
|
disabled: c,
|
|
311
311
|
onClick: g
|
|
312
312
|
},
|
|
@@ -317,72 +317,72 @@ const kt = (e, ...t) => {
|
|
|
317
317
|
...v,
|
|
318
318
|
input: E(
|
|
319
319
|
x,
|
|
320
|
-
() =>
|
|
320
|
+
() => I.div(
|
|
321
321
|
a.class("bc-file-input bc-file-input--compact"),
|
|
322
322
|
Ee({
|
|
323
323
|
value: d,
|
|
324
324
|
accept: n,
|
|
325
325
|
enableClick: !0,
|
|
326
|
-
allowMultiple: u.map(s ?? 1 / 0, (
|
|
326
|
+
allowMultiple: u.map(s ?? 1 / 0, (_) => _ > 1),
|
|
327
327
|
disabled: c,
|
|
328
328
|
onChange: h,
|
|
329
|
-
content:
|
|
329
|
+
content: D
|
|
330
330
|
})
|
|
331
331
|
),
|
|
332
|
-
() =>
|
|
332
|
+
() => I.div(
|
|
333
333
|
a.class("bc-file-input"),
|
|
334
334
|
Ee({
|
|
335
335
|
value: d,
|
|
336
336
|
accept: n,
|
|
337
337
|
enableClick: !0,
|
|
338
|
-
allowMultiple: u.map(s ?? 1 / 0, (
|
|
338
|
+
allowMultiple: u.map(s ?? 1 / 0, (_) => _ > 1),
|
|
339
339
|
disabled: c,
|
|
340
340
|
onChange: h,
|
|
341
341
|
content: b
|
|
342
342
|
}),
|
|
343
343
|
E(
|
|
344
344
|
f,
|
|
345
|
-
() =>
|
|
345
|
+
() => Ge(
|
|
346
346
|
d,
|
|
347
347
|
() => L(
|
|
348
|
-
|
|
348
|
+
I.div(
|
|
349
349
|
a.class("bc-file-input__file-list"),
|
|
350
|
-
fe(d, (
|
|
351
|
-
const k =
|
|
352
|
-
return
|
|
350
|
+
fe(d, (_, w) => {
|
|
351
|
+
const k = w.index;
|
|
352
|
+
return I.div(
|
|
353
353
|
a.class("bc-file-input__file-item"),
|
|
354
|
-
|
|
354
|
+
I.div(
|
|
355
355
|
a.class("bc-file-input__file-icon"),
|
|
356
|
-
Ue(
|
|
356
|
+
Ue(_)
|
|
357
357
|
),
|
|
358
|
-
|
|
358
|
+
I.div(
|
|
359
359
|
a.class("bc-file-input__file-info"),
|
|
360
|
-
|
|
360
|
+
I.div(
|
|
361
361
|
a.class("bc-file-input__file-name"),
|
|
362
|
-
a.title(
|
|
363
|
-
|
|
362
|
+
a.title(_.$.name),
|
|
363
|
+
_.$.name
|
|
364
364
|
),
|
|
365
|
-
|
|
365
|
+
I.div(
|
|
366
366
|
a.class("bc-file-input__file-meta"),
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
367
|
+
V(
|
|
368
|
+
_.$.size,
|
|
369
|
+
y.$.fileSizeUnits
|
|
370
370
|
)(
|
|
371
|
-
(
|
|
371
|
+
(M, A) => at(M, { units: A })
|
|
372
372
|
),
|
|
373
373
|
" • ",
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
)((
|
|
374
|
+
V(
|
|
375
|
+
_.$.type,
|
|
376
|
+
y.$.unknownType
|
|
377
|
+
)((M, A) => M || A)
|
|
378
378
|
)
|
|
379
379
|
),
|
|
380
|
-
|
|
380
|
+
$e(
|
|
381
381
|
{
|
|
382
382
|
size: "sm",
|
|
383
|
-
label:
|
|
383
|
+
label: y.$.removeFile,
|
|
384
384
|
disabled: c,
|
|
385
|
-
onClick: () =>
|
|
385
|
+
onClick: () => $(k)
|
|
386
386
|
},
|
|
387
387
|
a.class("bc-file-input__remove-button")
|
|
388
388
|
)
|
|
@@ -390,18 +390,18 @@ const kt = (e, ...t) => {
|
|
|
390
390
|
})
|
|
391
391
|
),
|
|
392
392
|
E(
|
|
393
|
-
d.map(({ length:
|
|
394
|
-
() =>
|
|
393
|
+
d.map(({ length: _ }) => _ > 1),
|
|
394
|
+
() => I.div(
|
|
395
395
|
a.class(
|
|
396
396
|
"bc-file-input__clear-all-button-container"
|
|
397
397
|
),
|
|
398
|
-
|
|
398
|
+
I.button(
|
|
399
399
|
a.type("button"),
|
|
400
400
|
a.class("bc-file-input__clear-all-button"),
|
|
401
401
|
a.disabled(c),
|
|
402
|
-
|
|
403
|
-
C.click((
|
|
404
|
-
|
|
402
|
+
y.$.clearAllFiles,
|
|
403
|
+
C.click((_) => {
|
|
404
|
+
_.preventDefault(), _.stopPropagation(), g();
|
|
405
405
|
})
|
|
406
406
|
)
|
|
407
407
|
)
|
|
@@ -416,7 +416,7 @@ const kt = (e, ...t) => {
|
|
|
416
416
|
)
|
|
417
417
|
);
|
|
418
418
|
};
|
|
419
|
-
async function
|
|
419
|
+
async function yt(e) {
|
|
420
420
|
return new Promise((t, r) => {
|
|
421
421
|
const n = new FileReader();
|
|
422
422
|
n.readAsDataURL(e), n.onload = () => {
|
|
@@ -425,10 +425,10 @@ async function It(e) {
|
|
|
425
425
|
}, n.onerror = (s) => r(s);
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
|
-
function
|
|
429
|
-
return Promise.all(e.map(
|
|
428
|
+
function It(e) {
|
|
429
|
+
return Promise.all(e.map(yt));
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function Ct(e) {
|
|
432
432
|
if (e.length >= 4) {
|
|
433
433
|
if (e[0] === 137 && e[1] === 80 && e[2] === 78 && e[3] === 71)
|
|
434
434
|
return "image/png";
|
|
@@ -444,8 +444,8 @@ function Mt(e) {
|
|
|
444
444
|
}
|
|
445
445
|
return "application/octet-stream";
|
|
446
446
|
}
|
|
447
|
-
function
|
|
448
|
-
const t =
|
|
447
|
+
function Mt(e) {
|
|
448
|
+
const t = vt(e ?? ""), r = t.length, n = new Uint8Array(r);
|
|
449
449
|
for (let s = 0; s < r; s++) n[s] = t.charCodeAt(s);
|
|
450
450
|
return n;
|
|
451
451
|
}
|
|
@@ -456,13 +456,13 @@ function Dt(e) {
|
|
|
456
456
|
onInput: n,
|
|
457
457
|
...s
|
|
458
458
|
} = e, o = /* @__PURE__ */ new Map(), l = u.toSignal(t).map((m) => m.map((f, v) => {
|
|
459
|
-
const d = o.get(f), x =
|
|
459
|
+
const d = o.get(f), x = Mt(f ?? ""), h = d?.type || Ct(x), $ = d?.name ?? `file-${v}`, g = x.buffer.slice(
|
|
460
460
|
x.byteOffset,
|
|
461
461
|
x.byteOffset + x.byteLength
|
|
462
462
|
), b = new Blob([g], { type: h });
|
|
463
|
-
return new File([b],
|
|
463
|
+
return new File([b], $, { type: h });
|
|
464
464
|
})), i = (m) => (f) => {
|
|
465
|
-
m &&
|
|
465
|
+
m && It(f).then((v) => {
|
|
466
466
|
for (const [d, x] of v.entries())
|
|
467
467
|
o.set(x, { name: f[d].name, type: f[d].type });
|
|
468
468
|
m(v);
|
|
@@ -475,7 +475,7 @@ function Dt(e) {
|
|
|
475
475
|
onInput: p
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function fn(e) {
|
|
479
479
|
const {
|
|
480
480
|
value: t,
|
|
481
481
|
onInput: r,
|
|
@@ -494,7 +494,7 @@ function bn(e) {
|
|
|
494
494
|
}
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function ye(e) {
|
|
498
498
|
const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
|
|
499
499
|
return t ? [parseInt(t[1], 16), parseInt(t[2], 16), parseInt(t[3], 16)] : [0, 0, 0];
|
|
500
500
|
}
|
|
@@ -550,37 +550,37 @@ function St(e) {
|
|
|
550
550
|
/^hsla?\(\s*([+-]?[\d.]+)(?:deg)?\s*[ ,]?\s*([\d.]+)%\s*[ ,]?\s*([\d.]+)%\s*(?:[/,]\s*(\d?(?:\.\d+)?))?\s*\)$/i
|
|
551
551
|
);
|
|
552
552
|
if (o) {
|
|
553
|
-
const f = parseFloat(o[1]), v = parseFloat(o[2]), d = parseFloat(o[3]), x = o[4] != null ? parseFloat(o[4]) : 1, [h,
|
|
554
|
-
return [h,
|
|
553
|
+
const f = parseFloat(o[1]), v = parseFloat(o[2]), d = parseFloat(o[3]), x = o[4] != null ? parseFloat(o[4]) : 1, [h, $, g] = We(f, v / 100, d / 100);
|
|
554
|
+
return [h, $, g, x];
|
|
555
555
|
}
|
|
556
556
|
const l = e.match(
|
|
557
557
|
/^hwb\(\s*([+-]?[\d.]+)(?:deg)?\s*[, ]\s*([\d.]+)%\s*[, ]\s*([\d.]+)%\s*(?:[/]\s*(\d?(?:\.\d+)?))?\s*\)$/i
|
|
558
558
|
);
|
|
559
559
|
if (l) {
|
|
560
|
-
const f = parseFloat(l[1]), v = parseFloat(l[2]) / 100, d = parseFloat(l[3]) / 100, x = l[4] != null ? parseFloat(l[4]) : 1, [h,
|
|
561
|
-
return [h,
|
|
560
|
+
const f = parseFloat(l[1]), v = parseFloat(l[2]) / 100, d = parseFloat(l[3]) / 100, x = l[4] != null ? parseFloat(l[4]) : 1, [h, $, g] = Ft(f, v, d);
|
|
561
|
+
return [h, $, g, x];
|
|
562
562
|
}
|
|
563
563
|
const i = e.match(
|
|
564
564
|
/^oklch\(\s*([+-]?[\d.]+%?)\s+([\d.]+)\s+([+-]?[\d.]+)(?:deg)?(?:\s*\/\s*(\d?(?:\.\d+)?))?\s*\)$/i
|
|
565
565
|
);
|
|
566
566
|
if (i) {
|
|
567
|
-
const f = i[1], v = parseFloat(i[2]), d = parseFloat(i[3]), x = i[4] != null ? parseFloat(i[4]) : 1, h = f.endsWith("%") ? Math.max(0, Math.min(1, parseFloat(f) / 100)) : Math.max(0, Math.min(1, parseFloat(f))), [
|
|
568
|
-
return [
|
|
567
|
+
const f = i[1], v = parseFloat(i[2]), d = parseFloat(i[3]), x = i[4] != null ? parseFloat(i[4]) : 1, h = f.endsWith("%") ? Math.max(0, Math.min(1, parseFloat(f) / 100)) : Math.max(0, Math.min(1, parseFloat(f))), [$, g, b] = Lt(h, v, d);
|
|
568
|
+
return [$, g, b, x];
|
|
569
569
|
}
|
|
570
|
-
const [c, p, m] =
|
|
570
|
+
const [c, p, m] = ye(e);
|
|
571
571
|
return [c, p, m, 1];
|
|
572
572
|
}
|
|
573
|
-
const
|
|
573
|
+
const Tt = (e, t, r, n) => `rgba(${Math.round(e)}, ${Math.round(t)}, ${Math.round(r)}, ${Math.max(
|
|
574
574
|
0,
|
|
575
575
|
Math.min(1, Math.round(n * 100) / 100)
|
|
576
576
|
)})`;
|
|
577
|
-
function
|
|
577
|
+
function At(e) {
|
|
578
578
|
let t = e + 1831565813;
|
|
579
579
|
return function() {
|
|
580
580
|
return t = Math.imul(t ^ t >>> 15, t | 1), t ^= t + Math.imul(t ^ t >>> 7, t | 61), ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
581
581
|
};
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function We(e, t, r) {
|
|
584
584
|
e = (e % 360 + 360) % 360;
|
|
585
585
|
const n = (1 - Math.abs(2 * r - 1)) * t, s = n * (1 - Math.abs(e / 60 % 2 - 1)), o = r - n / 2;
|
|
586
586
|
let l = 0, i = 0, c = 0;
|
|
@@ -590,11 +590,11 @@ function Ze(e, t, r) {
|
|
|
590
590
|
Math.round((c + o) * 255)
|
|
591
591
|
];
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Ft(e, t, r) {
|
|
594
594
|
e = (e % 360 + 360) % 360;
|
|
595
595
|
const n = t + r;
|
|
596
596
|
n > 1 && (t /= n, r /= n);
|
|
597
|
-
const [s, o, l] =
|
|
597
|
+
const [s, o, l] = We(e, 1, 0.5).map((f) => f / 255), i = 1 - t - r, c = s * i + t, p = o * i + t, m = l * i + t;
|
|
598
598
|
return [Math.round(c * 255), Math.round(p * 255), Math.round(m * 255)];
|
|
599
599
|
}
|
|
600
600
|
function Ce(e, t, r) {
|
|
@@ -617,26 +617,26 @@ function Ce(e, t, r) {
|
|
|
617
617
|
}
|
|
618
618
|
return [Math.round(o), Math.round(l * 100), Math.round(i * 100)];
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function Bt(e, t, r) {
|
|
621
621
|
const [n] = Ce(e, t, r), s = e / 255, o = t / 255, l = r / 255, i = Math.min(s, o, l), c = 1 - Math.max(s, o, l);
|
|
622
622
|
return [n, Math.round(i * 100), Math.round(c * 100)];
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function ve(e) {
|
|
625
625
|
const t = e / 255;
|
|
626
626
|
return t <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function xe(e) {
|
|
629
629
|
const t = e <= 31308e-7 ? 12.92 * e : 1.055 * Math.pow(e, 0.4166666666666667) - 0.055;
|
|
630
630
|
return Math.round(Math.max(0, Math.min(1, t)) * 255);
|
|
631
631
|
}
|
|
632
632
|
function Lt(e, t, r) {
|
|
633
633
|
const n = r * Math.PI / 180, s = Math.cos(n) * t, o = Math.sin(n) * t, l = e + 0.3963377774 * s + 0.2158037573 * o, i = e - 0.1055613458 * s - 0.0638541728 * o, c = e - 0.0894841775 * s - 1.291485548 * o, p = l * l * l, m = i * i * i, f = c * c * c, v = 4.0767416621 * p - 3.3077115913 * m + 0.2309699292 * f, d = -1.2684380046 * p + 2.6097574011 * m - 0.3413193965 * f, x = -0.0041960863 * p - 0.7034186147 * m + 1.707614701 * f;
|
|
634
|
-
return [
|
|
634
|
+
return [xe(v), xe(d), xe(x)];
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
const n =
|
|
638
|
-
let
|
|
639
|
-
return
|
|
636
|
+
function Vt(e, t, r) {
|
|
637
|
+
const n = ve(e), s = ve(t), o = ve(r), l = 0.4122214708 * n + 0.5363325363 * s + 0.0514459929 * o, i = 0.2119034982 * n + 0.6806995451 * s + 0.1073969566 * o, c = 0.0883024619 * n + 0.2817188376 * s + 0.6299787005 * o, p = Math.cbrt(l), m = Math.cbrt(i), f = Math.cbrt(c), v = 0.2104542553 * p + 0.793617785 * m - 0.0040720468 * f, d = 1.9779984951 * p - 2.428592205 * m + 0.4505937099 * f, x = 0.0259040371 * p + 0.7827717662 * m - 0.808675766 * f, h = Math.sqrt(d * d + x * x);
|
|
638
|
+
let $ = Math.atan2(x, d) * 180 / Math.PI;
|
|
639
|
+
return $ < 0 && ($ += 360), [v, h, $];
|
|
640
640
|
}
|
|
641
641
|
function ae(e, t, r, n, s, o) {
|
|
642
642
|
switch (s) {
|
|
@@ -659,11 +659,11 @@ function ae(e, t, r, n, s, o) {
|
|
|
659
659
|
return `hsla(${l}, ${i}%, ${c}%, ${Math.round(n * 100) / 100})`;
|
|
660
660
|
}
|
|
661
661
|
case "hwb": {
|
|
662
|
-
const [l, i, c] =
|
|
662
|
+
const [l, i, c] = Bt(e, t, r);
|
|
663
663
|
return n < 1 ? `hwb(${l} ${i}% ${c}% / ${Math.round(n * 100) / 100})` : `hwb(${l} ${i}% ${c}%)`;
|
|
664
664
|
}
|
|
665
665
|
case "oklch": {
|
|
666
|
-
const [l, i, c] =
|
|
666
|
+
const [l, i, c] = Vt(e, t, r), p = (Math.round(l * 1e3) / 1e3).toFixed(3), m = (Math.round(i * 1e3) / 1e3).toFixed(3), f = (Math.round(c * 10) / 10).toFixed(1), v = Math.round(n * 100) / 100;
|
|
667
667
|
return o || n < 1 ? `oklch(${p} ${m} ${f} / ${v})` : `oklch(${p} ${m} ${f})`;
|
|
668
668
|
}
|
|
669
669
|
}
|
|
@@ -671,117 +671,117 @@ function ae(e, t, r, n, s, o) {
|
|
|
671
671
|
function oe(e, t) {
|
|
672
672
|
return t ? e === "rgb" ? "rgba" : e === "hsl" ? "hsla" : e : e === "rgba" ? "rgb" : e === "hsla" ? "hsl" : e;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
const [r, n, s] = e, o = r << 16 ^ n << 8 ^ s, l =
|
|
674
|
+
function Et(e, t) {
|
|
675
|
+
const [r, n, s] = e, o = r << 16 ^ n << 8 ^ s, l = At(o), i = 6 + Math.floor(l() * 5), c = 0.18 + l() * 0.06, p = [];
|
|
676
676
|
for (let d = 0; d < i; d++) {
|
|
677
|
-
const x = d / i * Math.PI * 2, h = t * (1 + (l() * 2 - 1) * c),
|
|
678
|
-
p.push({ x:
|
|
677
|
+
const x = d / i * Math.PI * 2, h = t * (1 + (l() * 2 - 1) * c), $ = Math.cos(x) * h, g = Math.sin(x) * h;
|
|
678
|
+
p.push({ x: $, y: g });
|
|
679
679
|
}
|
|
680
680
|
const m = (p[0].x + p[i - 1].x) / 2, f = (p[0].y + p[i - 1].y) / 2;
|
|
681
681
|
let v = `M ${m.toFixed(3)} ${f.toFixed(3)}`;
|
|
682
682
|
for (let d = 0; d < i; d++) {
|
|
683
|
-
const x = p[d], h = p[(d + 1) % i],
|
|
684
|
-
v += ` Q ${x.x.toFixed(3)} ${x.y.toFixed(3)} ${
|
|
683
|
+
const x = p[d], h = p[(d + 1) % i], $ = (x.x + h.x) / 2, g = (x.y + h.y) / 2;
|
|
684
|
+
v += ` Q ${x.x.toFixed(3)} ${x.y.toFixed(3)} ${$.toFixed(3)} ${g.toFixed(3)}`;
|
|
685
685
|
}
|
|
686
686
|
return v += " Z", v;
|
|
687
687
|
}
|
|
688
|
-
const
|
|
689
|
-
const { value: t, onBlur: r, onChange: n, onInput: s, displayValue: o, size: l, withAlpha: i } = e, c = u.map(l ?? 32, (
|
|
688
|
+
const mn = (e) => {
|
|
689
|
+
const { value: t, onBlur: r, onChange: n, onInput: s, displayValue: o, size: l, withAlpha: i } = e, c = u.map(l ?? 32, (w) => w), p = u.map(t, (w) => St(w ?? "#000000")), m = u.map(
|
|
690
690
|
p,
|
|
691
|
-
([
|
|
692
|
-
), f = u.map(p, ([, , ,
|
|
691
|
+
([w, k, M]) => [w, k, M]
|
|
692
|
+
), f = u.map(p, ([, , , w]) => w), v = te(u.get(f) ?? 1), d = u.map(i ?? !1, (w) => w), x = u.map(
|
|
693
693
|
e.colorTextFormat ?? "rgb",
|
|
694
|
-
(
|
|
695
|
-
), h =
|
|
694
|
+
(w) => w
|
|
695
|
+
), h = V(
|
|
696
696
|
m,
|
|
697
697
|
v,
|
|
698
698
|
x,
|
|
699
699
|
d
|
|
700
700
|
)(
|
|
701
|
-
([
|
|
702
|
-
),
|
|
701
|
+
([w, k, M], A, F, S) => ae(w, k, M, A ?? 1, oe(F, S), S)
|
|
702
|
+
), $ = u.map(
|
|
703
703
|
e.colorTextFormat ?? "hex",
|
|
704
|
-
(
|
|
705
|
-
), g = u.map(c, (
|
|
704
|
+
(w) => w
|
|
705
|
+
), g = u.map(c, (w) => `0 0 ${w} ${w}`), b = V(
|
|
706
706
|
m,
|
|
707
707
|
c
|
|
708
|
-
)((
|
|
708
|
+
)((w, k) => Et(w, k / 2)), D = V(
|
|
709
709
|
m,
|
|
710
710
|
v,
|
|
711
711
|
d
|
|
712
712
|
)(
|
|
713
|
-
([
|
|
714
|
-
),
|
|
713
|
+
([w, k, M], A, F) => F || A < 1 ? Tt(w, k, M, A) : Ie(w, k, M)
|
|
714
|
+
), y = I.div(
|
|
715
715
|
a.class("bc-color-input__control"),
|
|
716
716
|
a.class(
|
|
717
717
|
u.map(
|
|
718
718
|
d,
|
|
719
|
-
(
|
|
719
|
+
(w) => w ? "bc-color-input__control--alpha" : ""
|
|
720
720
|
)
|
|
721
721
|
),
|
|
722
722
|
a.style(
|
|
723
|
-
|
|
723
|
+
V(c)((w) => `min-width:${w + 2}px;height:${w + 2}px`)
|
|
724
724
|
),
|
|
725
725
|
// The SVG blob preview
|
|
726
726
|
Ae.svg(
|
|
727
727
|
a.class("bc-color-input__svg"),
|
|
728
|
-
|
|
729
|
-
Ae.path(
|
|
728
|
+
he.viewBox(g),
|
|
729
|
+
Ae.path(he.d(b), he.fill(D))
|
|
730
730
|
),
|
|
731
731
|
// Invisible native input overlays the blob for picker and accessibility
|
|
732
|
-
|
|
732
|
+
I.input(
|
|
733
733
|
a.type("color"),
|
|
734
|
-
|
|
734
|
+
j(e),
|
|
735
735
|
// Native color input needs hex without alpha
|
|
736
|
-
a.value(u.map(m, ([
|
|
736
|
+
a.value(u.map(m, ([w, k, M]) => Ie(w, k, M))),
|
|
737
737
|
a.class("bc-input bc-color-input bc-color-input__native"),
|
|
738
|
-
r != null ? C.blur(r) :
|
|
739
|
-
n != null ? C.change((
|
|
740
|
-
const k =
|
|
738
|
+
r != null ? C.blur(r) : T,
|
|
739
|
+
n != null ? C.change((w) => {
|
|
740
|
+
const k = w.target.value;
|
|
741
741
|
if (!n) return;
|
|
742
|
-
const [
|
|
743
|
-
u.get(
|
|
742
|
+
const [M, A, F] = ye(k), S = u.get(v) ?? 1, B = oe(
|
|
743
|
+
u.get($),
|
|
744
744
|
u.get(d)
|
|
745
|
-
), R = ae(
|
|
745
|
+
), R = ae(M, A, F, S, B, u.get(d));
|
|
746
746
|
n(R);
|
|
747
|
-
}) :
|
|
748
|
-
s != null ? C.input((
|
|
749
|
-
const k =
|
|
747
|
+
}) : T,
|
|
748
|
+
s != null ? C.input((w) => {
|
|
749
|
+
const k = w.target.value;
|
|
750
750
|
if (!s) return;
|
|
751
|
-
const [
|
|
752
|
-
u.get(
|
|
751
|
+
const [M, A, F] = ye(k), S = u.get(v) ?? 1, B = oe(
|
|
752
|
+
u.get($),
|
|
753
753
|
u.get(d)
|
|
754
|
-
), R = ae(
|
|
754
|
+
), R = ae(M, A, F, S, B, u.get(d));
|
|
755
755
|
s(R);
|
|
756
|
-
}) :
|
|
756
|
+
}) : T
|
|
757
757
|
)
|
|
758
|
-
),
|
|
758
|
+
), _ = E(
|
|
759
759
|
d,
|
|
760
|
-
() =>
|
|
760
|
+
() => I.input(
|
|
761
761
|
a.type("range"),
|
|
762
762
|
a.class("bc-color-input__alpha"),
|
|
763
763
|
a.min(0),
|
|
764
764
|
a.max(1),
|
|
765
765
|
a.step(0.01),
|
|
766
|
-
a.value(u.map(v, (
|
|
766
|
+
a.value(u.map(v, (w) => String(w ?? 1))),
|
|
767
767
|
a.disabled(e.disabled),
|
|
768
|
-
C.input((
|
|
769
|
-
const k = parseFloat(
|
|
768
|
+
C.input((w) => {
|
|
769
|
+
const k = parseFloat(w.target.value);
|
|
770
770
|
v.set(k);
|
|
771
|
-
const [
|
|
772
|
-
u.get(
|
|
771
|
+
const [M, A, F] = u.get(m), S = oe(
|
|
772
|
+
u.get($),
|
|
773
773
|
u.get(d)
|
|
774
|
-
),
|
|
775
|
-
s?.(
|
|
774
|
+
), B = ae(M, A, F, k, S, u.get(d));
|
|
775
|
+
s?.(B);
|
|
776
776
|
}),
|
|
777
|
-
C.change((
|
|
778
|
-
const k = parseFloat(
|
|
777
|
+
C.change((w) => {
|
|
778
|
+
const k = parseFloat(w.target.value);
|
|
779
779
|
v.set(k);
|
|
780
|
-
const [
|
|
781
|
-
u.get(
|
|
780
|
+
const [M, A, F] = u.get(m), S = oe(
|
|
781
|
+
u.get($),
|
|
782
782
|
u.get(d)
|
|
783
|
-
),
|
|
784
|
-
n?.(
|
|
783
|
+
), B = ae(M, A, F, k, S, u.get(d));
|
|
784
|
+
n?.(B);
|
|
785
785
|
})
|
|
786
786
|
)
|
|
787
787
|
);
|
|
@@ -790,45 +790,45 @@ const vn = (e) => {
|
|
|
790
790
|
...e,
|
|
791
791
|
// ensure our control does not try to grow
|
|
792
792
|
growInput: !1,
|
|
793
|
-
input:
|
|
793
|
+
input: y,
|
|
794
794
|
// If caller provided an `after`, append RGB before it
|
|
795
795
|
after: L(
|
|
796
796
|
E(
|
|
797
797
|
o ?? !1,
|
|
798
|
-
() =>
|
|
798
|
+
() => I.span(a.class("bc-color-input__rgb"), h)
|
|
799
799
|
),
|
|
800
|
-
|
|
800
|
+
_,
|
|
801
801
|
e.after
|
|
802
802
|
)
|
|
803
803
|
});
|
|
804
|
-
},
|
|
805
|
-
const n = `${
|
|
806
|
-
return
|
|
807
|
-
}),
|
|
808
|
-
const r = `${
|
|
804
|
+
}, De = "$$tts-exp-", Ut = (e, t) => ie((r) => {
|
|
805
|
+
const n = `${De}${e}`;
|
|
806
|
+
return W(u.on(t, (s) => Reflect.set(r, n, s)));
|
|
807
|
+
}), hn = (e, t) => {
|
|
808
|
+
const r = `${De}${e}`;
|
|
809
809
|
return (n) => {
|
|
810
810
|
t(Reflect.get(n.target, r));
|
|
811
811
|
};
|
|
812
|
-
},
|
|
813
|
-
const r = `${
|
|
812
|
+
}, Nt = (e, t) => {
|
|
813
|
+
const r = `${De}${e}`;
|
|
814
814
|
return (n) => {
|
|
815
815
|
const s = n.target, o = s.selectedIndex, l = s.options[o];
|
|
816
816
|
t(Reflect.get(l, r));
|
|
817
817
|
};
|
|
818
818
|
};
|
|
819
|
-
function
|
|
819
|
+
function zt(e, t, r) {
|
|
820
820
|
const n = ["bc-card"];
|
|
821
821
|
return e !== "default" && n.push(`bc-card--${e}`), t !== "md" && n.push(`bc-card--padding-${t}`), r !== "lg" && n.push(`bc-card--rounded-${r}`), n.join(" ");
|
|
822
822
|
}
|
|
823
|
-
function
|
|
824
|
-
return
|
|
823
|
+
function gn({ variant: e = "default", size: t = "md", roundedness: r = "lg" } = {}, ...n) {
|
|
824
|
+
return I.div(
|
|
825
825
|
a.class(
|
|
826
|
-
|
|
826
|
+
V(
|
|
827
827
|
e,
|
|
828
828
|
t,
|
|
829
829
|
r
|
|
830
830
|
)(
|
|
831
|
-
(s, o, l) =>
|
|
831
|
+
(s, o, l) => zt(
|
|
832
832
|
s ?? "default",
|
|
833
833
|
o ?? "md",
|
|
834
834
|
l ?? "lg"
|
|
@@ -839,17 +839,17 @@ function wn({ variant: e = "default", size: t = "md", roundedness: r = "lg" } =
|
|
|
839
839
|
);
|
|
840
840
|
}
|
|
841
841
|
function pe(...e) {
|
|
842
|
-
return
|
|
842
|
+
return I.div(a.class("bc-group"), ...e);
|
|
843
843
|
}
|
|
844
|
-
const
|
|
844
|
+
const bn = ({
|
|
845
845
|
startEditing: e,
|
|
846
846
|
value: t,
|
|
847
847
|
onChange: r,
|
|
848
848
|
placeholder: n,
|
|
849
849
|
disabled: s
|
|
850
850
|
}) => {
|
|
851
|
-
const o = u.deriveProp(e ?? !1), l =
|
|
852
|
-
return
|
|
851
|
+
const o = u.deriveProp(e ?? !1), l = te(!1), i = u.map(s ?? !1, (c) => c);
|
|
852
|
+
return I.div(
|
|
853
853
|
a.class("bc-editable-text"),
|
|
854
854
|
a.class(
|
|
855
855
|
u.map(
|
|
@@ -860,16 +860,16 @@ const _n = ({
|
|
|
860
860
|
N.disabled(i),
|
|
861
861
|
E(
|
|
862
862
|
o,
|
|
863
|
-
() =>
|
|
863
|
+
() => I.input(
|
|
864
864
|
a.placeholder(n),
|
|
865
865
|
a.value(t),
|
|
866
866
|
a.class("bc-editable-text__input"),
|
|
867
|
-
|
|
867
|
+
lt(),
|
|
868
868
|
C.keydown((c) => {
|
|
869
869
|
c.key === "Enter" ? o.set(!1) : c.key === "Escape" && (l.set(!0), o.set(!1));
|
|
870
870
|
}),
|
|
871
871
|
C.blur(
|
|
872
|
-
|
|
872
|
+
P((c) => {
|
|
873
873
|
if (o.set(!1), l.value) {
|
|
874
874
|
l.set(!1);
|
|
875
875
|
return;
|
|
@@ -878,24 +878,24 @@ const _n = ({
|
|
|
878
878
|
})
|
|
879
879
|
)
|
|
880
880
|
),
|
|
881
|
-
() =>
|
|
881
|
+
() => I.span(
|
|
882
882
|
C.click(() => {
|
|
883
883
|
u.get(i) || o.set(!0);
|
|
884
884
|
}),
|
|
885
885
|
a.class("bc-editable-text__display"),
|
|
886
886
|
E(
|
|
887
887
|
u.map(t, (c) => c != null && c.trim() !== ""),
|
|
888
|
-
() =>
|
|
889
|
-
() =>
|
|
888
|
+
() => I.span(a.class("bc-editable-text__text"), t),
|
|
889
|
+
() => I.span(
|
|
890
890
|
a.class("bc-editable-text__placeholder"),
|
|
891
891
|
n
|
|
892
892
|
)
|
|
893
893
|
),
|
|
894
894
|
E(
|
|
895
895
|
u.map(i, (c) => !c),
|
|
896
|
-
() =>
|
|
896
|
+
() => I.button(
|
|
897
897
|
a.class("bc-editable-text__edit-button"),
|
|
898
|
-
|
|
898
|
+
H(X, (c) => N.label(c.$.editLabel)),
|
|
899
899
|
C.click(() => o.set(!0)),
|
|
900
900
|
z({ icon: "line-md/pencil", color: "neutral" })
|
|
901
901
|
)
|
|
@@ -903,35 +903,35 @@ const _n = ({
|
|
|
903
903
|
)
|
|
904
904
|
)
|
|
905
905
|
);
|
|
906
|
-
},
|
|
906
|
+
}, Ze = (e, t, r) => Je(
|
|
907
907
|
e,
|
|
908
908
|
(n) => Ke(n, {
|
|
909
909
|
value: (s) => {
|
|
910
|
-
const o =
|
|
910
|
+
const o = V(
|
|
911
911
|
s,
|
|
912
912
|
r
|
|
913
913
|
)((l, i) => t(l.value, i));
|
|
914
|
-
return
|
|
915
|
-
|
|
914
|
+
return I.option(
|
|
915
|
+
W(o.dispose),
|
|
916
916
|
a.selected(o),
|
|
917
|
-
|
|
917
|
+
Ut("value", s.$.value),
|
|
918
918
|
s.$.label
|
|
919
919
|
);
|
|
920
920
|
},
|
|
921
|
-
group: (s) =>
|
|
921
|
+
group: (s) => I.optgroup(
|
|
922
922
|
a.label(s.$.group),
|
|
923
923
|
fe(
|
|
924
924
|
s.$.options,
|
|
925
|
-
(o) =>
|
|
925
|
+
(o) => Ze(
|
|
926
926
|
o,
|
|
927
927
|
t,
|
|
928
928
|
r
|
|
929
929
|
)
|
|
930
930
|
)
|
|
931
931
|
),
|
|
932
|
-
break: () =>
|
|
932
|
+
break: () => I.hr()
|
|
933
933
|
})
|
|
934
|
-
),
|
|
934
|
+
), Rt = (e) => {
|
|
935
935
|
const {
|
|
936
936
|
value: t,
|
|
937
937
|
onBlur: r,
|
|
@@ -953,27 +953,27 @@ const _n = ({
|
|
|
953
953
|
}),
|
|
954
954
|
i
|
|
955
955
|
),
|
|
956
|
-
input:
|
|
956
|
+
input: I.select(
|
|
957
957
|
ie((p) => {
|
|
958
958
|
c = p;
|
|
959
959
|
const m = new MutationObserver((f) => {
|
|
960
960
|
const { removedNodes: v } = f[0];
|
|
961
961
|
v.length > 0 && (c.selectedIndex = 0);
|
|
962
962
|
});
|
|
963
|
-
return m.observe(p, { childList: !0 }),
|
|
963
|
+
return m.observe(p, { childList: !0 }), W(() => m.disconnect());
|
|
964
964
|
}),
|
|
965
|
-
|
|
965
|
+
j(e),
|
|
966
966
|
a.class("bc-native-select bc-input"),
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
(p) =>
|
|
967
|
+
H(
|
|
968
|
+
X,
|
|
969
|
+
(p) => I.option(
|
|
970
970
|
a.hidden("hidden"),
|
|
971
|
-
|
|
971
|
+
Qe(o, p.$.selectOne)
|
|
972
972
|
)
|
|
973
973
|
),
|
|
974
|
-
fe(s, (p) =>
|
|
975
|
-
r != null ? C.blur(r) :
|
|
976
|
-
n != null ? C.change(
|
|
974
|
+
fe(s, (p) => Ze(p, l, t)),
|
|
975
|
+
r != null ? C.blur(r) : T,
|
|
976
|
+
n != null ? C.change(Nt("value", (p) => n(p))) : T
|
|
977
977
|
)
|
|
978
978
|
},
|
|
979
979
|
C.click(() => {
|
|
@@ -981,31 +981,31 @@ const _n = ({
|
|
|
981
981
|
})
|
|
982
982
|
);
|
|
983
983
|
};
|
|
984
|
-
function
|
|
984
|
+
function Ot(e) {
|
|
985
985
|
const { controller: t, onChange: r, onBlur: n, ...s } = e;
|
|
986
|
-
return
|
|
986
|
+
return Rt({
|
|
987
987
|
...s,
|
|
988
988
|
value: t.value,
|
|
989
|
-
onChange:
|
|
990
|
-
onBlur:
|
|
989
|
+
onChange: ct(t, r),
|
|
990
|
+
onBlur: ot(t, n)
|
|
991
991
|
});
|
|
992
992
|
}
|
|
993
|
-
function
|
|
994
|
-
return
|
|
993
|
+
function vn(e) {
|
|
994
|
+
return He({
|
|
995
995
|
...e,
|
|
996
|
-
content:
|
|
996
|
+
content: Ot(e)
|
|
997
997
|
});
|
|
998
998
|
}
|
|
999
|
-
function
|
|
999
|
+
function Pt(e, t, r) {
|
|
1000
1000
|
const n = e.length.map((s) => s);
|
|
1001
1001
|
return L(
|
|
1002
|
-
|
|
1003
|
-
|
|
1002
|
+
W(() => n.dispose()),
|
|
1003
|
+
Pe(
|
|
1004
1004
|
n,
|
|
1005
1005
|
(s) => {
|
|
1006
1006
|
const o = e.item(s.index), l = [];
|
|
1007
1007
|
return L(
|
|
1008
|
-
|
|
1008
|
+
W(() => {
|
|
1009
1009
|
o.dispose(), l.forEach((i) => i());
|
|
1010
1010
|
}),
|
|
1011
1011
|
t({
|
|
@@ -1063,8 +1063,8 @@ const Ne = {
|
|
|
1063
1063
|
9: { pattern: /^[0-9]$/ },
|
|
1064
1064
|
A: { pattern: /^[A-Za-z]$/, transform: (e) => e.toUpperCase() },
|
|
1065
1065
|
"*": { pattern: /^.$/ }
|
|
1066
|
-
},
|
|
1067
|
-
function
|
|
1066
|
+
}, jt = (e) => e instanceof RegExp;
|
|
1067
|
+
function Ye(e, t, r) {
|
|
1068
1068
|
if (e == null) return [];
|
|
1069
1069
|
const n = r ? { ...Ne, ...t } : t ?? Ne, s = (l, i) => {
|
|
1070
1070
|
const c = n[i];
|
|
@@ -1078,10 +1078,10 @@ function Xe(e, t, r) {
|
|
|
1078
1078
|
if (typeof l == "string")
|
|
1079
1079
|
if (l.length <= 1) s(o, l);
|
|
1080
1080
|
else for (const i of l) s(o, i);
|
|
1081
|
-
else
|
|
1081
|
+
else jt(l) ? o.push({ type: "pattern", pattern: l }) : typeof l == "object" && l && o.push(l);
|
|
1082
1082
|
return o;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function Ht(e, t) {
|
|
1085
1085
|
return (r) => {
|
|
1086
1086
|
switch (e) {
|
|
1087
1087
|
case "digits":
|
|
@@ -1103,58 +1103,58 @@ function ze(e, t, r, n, s, o) {
|
|
|
1103
1103
|
previousConformed: t,
|
|
1104
1104
|
cursor: s ?? e.length,
|
|
1105
1105
|
completed: !1
|
|
1106
|
-
}, i = n.definitions ?? {}, c = typeof r == "function" ? r(e, l) : r, p =
|
|
1106
|
+
}, i = n.definitions ?? {}, c = typeof r == "function" ? r(e, l) : r, p = Ye(
|
|
1107
1107
|
c,
|
|
1108
1108
|
i,
|
|
1109
1109
|
n.useDefaultDefinitions ?? !0
|
|
1110
|
-
), m =
|
|
1111
|
-
for (const
|
|
1112
|
-
if (n.prefix) for (const
|
|
1113
|
-
if (n.suffix) for (const
|
|
1114
|
-
const v = Array.from(e).filter((
|
|
1110
|
+
), m = Ht(n.allowMode, n.allow), f = /* @__PURE__ */ new Set();
|
|
1111
|
+
for (const S of p) S.type === "literal" && f.add(S.char);
|
|
1112
|
+
if (n.prefix) for (const S of n.prefix) f.add(S);
|
|
1113
|
+
if (n.suffix) for (const S of n.suffix) f.add(S);
|
|
1114
|
+
const v = Array.from(e).filter((S) => m(S) && !f.has(S));
|
|
1115
1115
|
if (v.length === 0) return { value: "", cursor: 0, completed: !1 };
|
|
1116
1116
|
const d = [], x = [];
|
|
1117
|
-
let h = 0,
|
|
1118
|
-
for (const
|
|
1119
|
-
if (
|
|
1120
|
-
d.push(
|
|
1117
|
+
let h = 0, $ = 0, g = 0, b = -1;
|
|
1118
|
+
for (const S of p) {
|
|
1119
|
+
if (S.type === "literal") {
|
|
1120
|
+
d.push(S.char), x.push({ kind: "literal", filled: !0 });
|
|
1121
1121
|
continue;
|
|
1122
1122
|
}
|
|
1123
|
-
|
|
1124
|
-
const
|
|
1125
|
-
if (
|
|
1123
|
+
$ += S.optional ? 0 : 1;
|
|
1124
|
+
const B = v[h];
|
|
1125
|
+
if (B == null)
|
|
1126
1126
|
break;
|
|
1127
|
-
if (
|
|
1128
|
-
g++, d.push(
|
|
1127
|
+
if (S.type === "any") {
|
|
1128
|
+
g++, d.push(S.transform ? S.transform(B) : B), x.push({ kind: "slot", filled: !0 }), b = x.length - 1, h++;
|
|
1129
1129
|
continue;
|
|
1130
1130
|
}
|
|
1131
|
-
if (
|
|
1132
|
-
if (
|
|
1131
|
+
if (S.type === "pattern")
|
|
1132
|
+
if (S.pattern.test(B)) {
|
|
1133
1133
|
g++;
|
|
1134
|
-
const R =
|
|
1134
|
+
const R = S.transform ? S.transform(B) : B;
|
|
1135
1135
|
d.push(R), x.push({ kind: "slot", filled: !0 }), b = x.length - 1, h++;
|
|
1136
1136
|
} else {
|
|
1137
1137
|
h++;
|
|
1138
1138
|
continue;
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
|
-
const
|
|
1142
|
-
let
|
|
1141
|
+
const D = d.join(""), y = (n.prefix ?? "") + D + (n.suffix ?? "");
|
|
1142
|
+
let w = (n.prefix ?? "").length;
|
|
1143
1143
|
if (b >= 0) {
|
|
1144
|
-
let
|
|
1144
|
+
let S = b + 1;
|
|
1145
1145
|
if ((o?.policy ?? "smart") !== "sticky")
|
|
1146
|
-
for (;
|
|
1147
|
-
|
|
1146
|
+
for (; S < x.length && x[S].kind === "literal"; ) S++;
|
|
1147
|
+
w += S;
|
|
1148
1148
|
}
|
|
1149
|
-
const k = n.completion?.mode === "min" ? (n.completion.minChars ?? 0) <= g : n.completion?.mode === "custom" ? !!n.completion.isComplete?.(
|
|
1150
|
-
let A, F =
|
|
1151
|
-
return
|
|
1149
|
+
const k = n.completion?.mode === "min" ? (n.completion.minChars ?? 0) <= g : n.completion?.mode === "custom" ? !!n.completion.isComplete?.(y) : $ > 0 && g >= $, M = n.pipe?.(y, { ...l, completed: k });
|
|
1150
|
+
let A, F = w;
|
|
1151
|
+
return M === !1 ? (A = t, F = t.length) : typeof M == "string" ? (A = M, F = M.length) : typeof M == "object" && M ? (A = M.value, F = M.cursor ?? M.value.length) : A = y, { value: A, cursor: F, completed: k };
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function Wt(e, t) {
|
|
1154
1154
|
const r = t?.strategy ?? "none";
|
|
1155
1155
|
return r === "custom" && t?.unmask ? t.unmask(e) : r === "strip" ? e.replace(/[^A-Za-z0-9]/g, "") : e;
|
|
1156
1156
|
}
|
|
1157
|
-
const
|
|
1157
|
+
const Xe = (e) => {
|
|
1158
1158
|
const {
|
|
1159
1159
|
value: t,
|
|
1160
1160
|
onBlur: r,
|
|
@@ -1171,12 +1171,12 @@ const qe = (e) => {
|
|
|
1171
1171
|
autofix: d,
|
|
1172
1172
|
pipe: x,
|
|
1173
1173
|
completion: h,
|
|
1174
|
-
unmask:
|
|
1174
|
+
unmask: $,
|
|
1175
1175
|
allowMode: g,
|
|
1176
1176
|
allow: b,
|
|
1177
|
-
placeholder:
|
|
1178
|
-
placeholderOptions:
|
|
1179
|
-
} = e,
|
|
1177
|
+
placeholder: D,
|
|
1178
|
+
placeholderOptions: y
|
|
1179
|
+
} = e, _ = V(
|
|
1180
1180
|
t,
|
|
1181
1181
|
i,
|
|
1182
1182
|
c,
|
|
@@ -1186,38 +1186,38 @@ const qe = (e) => {
|
|
|
1186
1186
|
v,
|
|
1187
1187
|
d,
|
|
1188
1188
|
h,
|
|
1189
|
-
|
|
1189
|
+
$,
|
|
1190
1190
|
g,
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
)((k,
|
|
1191
|
+
D,
|
|
1192
|
+
y
|
|
1193
|
+
)((k, M, A, F, S, B, R, se, re, ee, Q, ue, q) => M ? ze(k ?? "", "", M, {
|
|
1194
1194
|
definitions: A ?? {},
|
|
1195
1195
|
useDefaultDefinitions: F ?? !0,
|
|
1196
|
-
extraLiterals:
|
|
1196
|
+
extraLiterals: S ?? [],
|
|
1197
1197
|
autofix: se ?? "none",
|
|
1198
1198
|
completion: re ?? { mode: "mask" },
|
|
1199
1199
|
pipe: x ?? ((U) => U),
|
|
1200
|
-
unmask:
|
|
1200
|
+
unmask: ee ?? { strategy: "none" },
|
|
1201
1201
|
allowMode: Q ?? "all",
|
|
1202
1202
|
allow: b,
|
|
1203
|
-
prefix:
|
|
1203
|
+
prefix: B,
|
|
1204
1204
|
suffix: R
|
|
1205
|
-
}).value : k ?? ""),
|
|
1206
|
-
const A = k.value ?? "", F = u.get(t) ?? "",
|
|
1205
|
+
}).value : k ?? ""), w = (k, M) => {
|
|
1206
|
+
const A = k.value ?? "", F = u.get(t) ?? "", S = i != null ? u.get(i) : null, B = c != null ? u.get(c) : void 0, R = p != null ? u.get(p) : void 0, se = m != null ? u.get(m) : void 0, re = d != null ? u.get(d) : void 0, ee = h != null ? u.get(h) : void 0, Q = $ != null ? u.get($) : void 0, ue = g != null ? u.get(g) : void 0, q = f != null ? u.get(f) : void 0, U = v != null ? u.get(v) : void 0, {
|
|
1207
1207
|
value: J,
|
|
1208
|
-
cursor:
|
|
1209
|
-
completed:
|
|
1210
|
-
} =
|
|
1208
|
+
cursor: me,
|
|
1209
|
+
completed: Se
|
|
1210
|
+
} = S ? ze(
|
|
1211
1211
|
A,
|
|
1212
1212
|
F,
|
|
1213
|
-
|
|
1213
|
+
S,
|
|
1214
1214
|
{
|
|
1215
|
-
definitions:
|
|
1215
|
+
definitions: B ?? {},
|
|
1216
1216
|
useDefaultDefinitions: R ?? !0,
|
|
1217
1217
|
extraLiterals: se ?? [],
|
|
1218
1218
|
autofix: re ?? "none",
|
|
1219
|
-
completion:
|
|
1220
|
-
pipe: x ?? ((
|
|
1219
|
+
completion: ee ?? { mode: "mask" },
|
|
1220
|
+
pipe: x ?? ((qe) => qe),
|
|
1221
1221
|
unmask: Q ?? { strategy: "none" },
|
|
1222
1222
|
allowMode: ue ?? "all",
|
|
1223
1223
|
allow: b,
|
|
@@ -1230,39 +1230,39 @@ const qe = (e) => {
|
|
|
1230
1230
|
if (J !== A) {
|
|
1231
1231
|
k.value = J;
|
|
1232
1232
|
try {
|
|
1233
|
-
k.setSelectionRange(
|
|
1233
|
+
k.setSelectionRange(me, me);
|
|
1234
1234
|
} catch {
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
|
-
const
|
|
1237
|
+
const Te = Wt(J, Q);
|
|
1238
1238
|
o?.({
|
|
1239
|
-
raw:
|
|
1239
|
+
raw: Te,
|
|
1240
1240
|
conformed: J,
|
|
1241
|
-
completed:
|
|
1242
|
-
cursor:
|
|
1243
|
-
}),
|
|
1241
|
+
completed: Se,
|
|
1242
|
+
cursor: me
|
|
1243
|
+
}), M === "input" ? s?.(J) : (n?.(J), Se && l?.({ raw: Te, conformed: J }));
|
|
1244
1244
|
};
|
|
1245
1245
|
return O({
|
|
1246
1246
|
...e,
|
|
1247
|
-
input:
|
|
1248
|
-
|
|
1249
|
-
a.value(
|
|
1247
|
+
input: K.text(
|
|
1248
|
+
j(e),
|
|
1249
|
+
a.value(_),
|
|
1250
1250
|
a.class("bc-input"),
|
|
1251
|
-
r != null ? C.blur(r) :
|
|
1251
|
+
r != null ? C.blur(r) : T,
|
|
1252
1252
|
ie(
|
|
1253
1253
|
(k) => k instanceof HTMLInputElement ? L(
|
|
1254
|
-
C.input(() =>
|
|
1255
|
-
C.change(() =>
|
|
1256
|
-
C.keydown((
|
|
1257
|
-
if (
|
|
1258
|
-
const F = k.selectionStart ?? 0,
|
|
1259
|
-
if (F !==
|
|
1260
|
-
const
|
|
1254
|
+
C.input(() => w(k, "input")),
|
|
1255
|
+
C.change(() => w(k, "change")),
|
|
1256
|
+
C.keydown((M) => {
|
|
1257
|
+
if (M.key !== "Backspace" || !(e.cursor ? u.get(e.cursor)?.backspaceRubberBand ?? !0 : !0)) return;
|
|
1258
|
+
const F = k.selectionStart ?? 0, S = k.selectionEnd ?? F;
|
|
1259
|
+
if (F !== S || F <= 0) return;
|
|
1260
|
+
const B = k.value ?? "", R = i != null ? u.get(i) : null;
|
|
1261
1261
|
if (!R) return;
|
|
1262
|
-
const se = c != null ? u.get(c) : void 0, re = p != null ? u.get(p) : !0,
|
|
1263
|
-
typeof R == "function" ? R(
|
|
1264
|
-
raw:
|
|
1265
|
-
previousConformed:
|
|
1262
|
+
const se = c != null ? u.get(c) : void 0, re = p != null ? u.get(p) : !0, ee = f != null ? u.get(f) : void 0, Q = v != null ? u.get(v) : void 0, ue = Ye(
|
|
1263
|
+
typeof R == "function" ? R(B, {
|
|
1264
|
+
raw: B,
|
|
1265
|
+
previousConformed: B,
|
|
1266
1266
|
cursor: F,
|
|
1267
1267
|
completed: !1
|
|
1268
1268
|
}) : R,
|
|
@@ -1271,24 +1271,24 @@ const qe = (e) => {
|
|
|
1271
1271
|
), q = /* @__PURE__ */ new Set();
|
|
1272
1272
|
for (const U of ue)
|
|
1273
1273
|
U.type === "literal" && q.add(U.char);
|
|
1274
|
-
if (
|
|
1274
|
+
if (ee) for (const U of ee) q.add(U);
|
|
1275
1275
|
if (Q) for (const U of Q) q.add(U);
|
|
1276
|
-
if (q.has(
|
|
1276
|
+
if (q.has(B[F - 1])) {
|
|
1277
1277
|
let U = F - 1;
|
|
1278
|
-
for (; U >= 0 && q.has(
|
|
1279
|
-
U >= 0 && (
|
|
1278
|
+
for (; U >= 0 && q.has(B[U]); ) U--;
|
|
1279
|
+
U >= 0 && (M.preventDefault(), M.stopPropagation(), k.value = B.slice(0, U) + B.slice(U + 1), w(k, "input"));
|
|
1280
1280
|
}
|
|
1281
1281
|
})
|
|
1282
|
-
) :
|
|
1282
|
+
) : T
|
|
1283
1283
|
)
|
|
1284
1284
|
)
|
|
1285
1285
|
});
|
|
1286
1286
|
};
|
|
1287
|
-
function
|
|
1288
|
-
const n = u.map(e, (o) => o != null), s =
|
|
1287
|
+
function Y(e, t, r) {
|
|
1288
|
+
const n = u.map(e, (o) => o != null), s = ke.clearValue;
|
|
1289
1289
|
return E(
|
|
1290
1290
|
n,
|
|
1291
|
-
() =>
|
|
1291
|
+
() => I.button(
|
|
1292
1292
|
a.type("button"),
|
|
1293
1293
|
a.class("bc-input-container__reset"),
|
|
1294
1294
|
N.label(s),
|
|
@@ -1301,137 +1301,137 @@ function X(e, t, r) {
|
|
|
1301
1301
|
)
|
|
1302
1302
|
);
|
|
1303
1303
|
}
|
|
1304
|
-
const
|
|
1305
|
-
const { value: t, onBlur: r, onChange: n, after: s, disabled: o } = e, l =
|
|
1304
|
+
const xn = (e) => {
|
|
1305
|
+
const { value: t, onBlur: r, onChange: n, after: s, disabled: o } = e, l = Y(t, o, n);
|
|
1306
1306
|
return O({
|
|
1307
1307
|
...e,
|
|
1308
|
-
input:
|
|
1309
|
-
|
|
1308
|
+
input: K.date(
|
|
1309
|
+
j(e),
|
|
1310
1310
|
a.valueAsDate(t),
|
|
1311
1311
|
a.class("bc-input"),
|
|
1312
|
-
r != null ? C.blur(
|
|
1313
|
-
n != null ? C.change(et(n)) :
|
|
1312
|
+
r != null ? C.blur(P(r)) : T,
|
|
1313
|
+
n != null ? C.change(et(n)) : T
|
|
1314
1314
|
),
|
|
1315
1315
|
after: s != null ? L(l, s) : l
|
|
1316
1316
|
});
|
|
1317
|
-
},
|
|
1317
|
+
}, Zt = (e) => {
|
|
1318
1318
|
const t = e.getFullYear(), r = e.getMonth() + 1, n = e.getDate(), s = e.getHours(), o = e.getMinutes(), l = e.getSeconds();
|
|
1319
1319
|
return `${t}-${r.toString().padStart(2, "0")}-${n.toString().padStart(2, "0")}T${s.toString().padStart(2, "0")}:${o.toString().padStart(2, "0")}:${l.toString().padStart(2, "0")}`;
|
|
1320
|
-
},
|
|
1321
|
-
const { value: t, onBlur: r, onChange: n, after: s, disabled: o } = e, l = u.map(t, (c) => c != null ?
|
|
1320
|
+
}, wn = (e) => {
|
|
1321
|
+
const { value: t, onBlur: r, onChange: n, after: s, disabled: o } = e, l = u.map(t, (c) => c != null ? Zt(c) : null), i = Y(t, o, n);
|
|
1322
1322
|
return O({
|
|
1323
1323
|
...e,
|
|
1324
|
-
input:
|
|
1325
|
-
|
|
1324
|
+
input: K["datetime-local"](
|
|
1325
|
+
j(e),
|
|
1326
1326
|
a.value(u.map(l, (c) => c ?? null)),
|
|
1327
1327
|
a.class("bc-input"),
|
|
1328
|
-
r != null ? C.blur(
|
|
1329
|
-
n != null ? C.change(tt(n)) :
|
|
1328
|
+
r != null ? C.blur(P(r)) : T,
|
|
1329
|
+
n != null ? C.change(tt(n)) : T
|
|
1330
1330
|
),
|
|
1331
1331
|
after: s != null ? L(i, s) : i
|
|
1332
1332
|
});
|
|
1333
|
-
},
|
|
1334
|
-
const { value: t, onBlur: r, onChange: n, onInput: s, after: o, disabled: l, ...i } = e, c =
|
|
1335
|
-
return
|
|
1333
|
+
}, Z = (e) => typeof e == "string" && e.trim() === "" ? null : e, ne = (e) => e ?? "", _n = (e) => {
|
|
1334
|
+
const { value: t, onBlur: r, onChange: n, onInput: s, after: o, disabled: l, ...i } = e, c = Y(t, l, n);
|
|
1335
|
+
return it({
|
|
1336
1336
|
...i,
|
|
1337
1337
|
value: u.map(t, ne),
|
|
1338
|
-
onChange: n != null ? (p) => n(
|
|
1339
|
-
onInput: s != null ? (p) => s(
|
|
1338
|
+
onChange: n != null ? (p) => n(Z(p)) : void 0,
|
|
1339
|
+
onInput: s != null ? (p) => s(Z(p)) : void 0,
|
|
1340
1340
|
onBlur: r,
|
|
1341
1341
|
after: o != null ? L(c, o) : c
|
|
1342
1342
|
});
|
|
1343
|
-
},
|
|
1344
|
-
const { value: t, onBlur: r, onChange: n, onInput: s, after: o, disabled: l, ...i } = e, c =
|
|
1345
|
-
return
|
|
1343
|
+
}, $n = (e) => {
|
|
1344
|
+
const { value: t, onBlur: r, onChange: n, onInput: s, after: o, disabled: l, ...i } = e, c = Y(t, l, n);
|
|
1345
|
+
return ut({
|
|
1346
1346
|
...i,
|
|
1347
1347
|
value: u.map(t, ne),
|
|
1348
|
-
onChange: n != null ? (p) => n(
|
|
1349
|
-
onInput: s != null ? (p) => s(
|
|
1348
|
+
onChange: n != null ? (p) => n(Z(p)) : void 0,
|
|
1349
|
+
onInput: s != null ? (p) => s(Z(p)) : void 0,
|
|
1350
1350
|
onBlur: r,
|
|
1351
1351
|
after: o != null ? L(c, o) : c
|
|
1352
1352
|
});
|
|
1353
|
-
},
|
|
1354
|
-
const { value: t, onBlur: r, onChange: n, onInput: s, after: o, disabled: l, ...i } = e, c =
|
|
1355
|
-
return
|
|
1353
|
+
}, kn = (e) => {
|
|
1354
|
+
const { value: t, onBlur: r, onChange: n, onInput: s, after: o, disabled: l, ...i } = e, c = Y(t, l, n);
|
|
1355
|
+
return pt({
|
|
1356
1356
|
...i,
|
|
1357
1357
|
value: u.map(t, ne),
|
|
1358
|
-
onChange: n != null ? (p) => n(
|
|
1359
|
-
onInput: s != null ? (p) => s(
|
|
1358
|
+
onChange: n != null ? (p) => n(Z(p)) : void 0,
|
|
1359
|
+
onInput: s != null ? (p) => s(Z(p)) : void 0,
|
|
1360
1360
|
onBlur: r,
|
|
1361
1361
|
after: o != null ? L(c, o) : c
|
|
1362
1362
|
});
|
|
1363
|
-
},
|
|
1363
|
+
}, Yt = (e) => {
|
|
1364
1364
|
const { value: t, onBlur: r, onChange: n, onInput: s, rows: o } = e;
|
|
1365
1365
|
return O({
|
|
1366
1366
|
...e,
|
|
1367
|
-
input:
|
|
1368
|
-
|
|
1367
|
+
input: I.textarea(
|
|
1368
|
+
j(e),
|
|
1369
1369
|
a.rows(o ?? 3),
|
|
1370
1370
|
a.value(t),
|
|
1371
1371
|
a.class("bc-input"),
|
|
1372
|
-
r != null ? C.blur(
|
|
1373
|
-
n != null ? C.change(
|
|
1374
|
-
s != null ? C.input(
|
|
1372
|
+
r != null ? C.blur(P(r)) : T,
|
|
1373
|
+
n != null ? C.change(P(n)) : T,
|
|
1374
|
+
s != null ? C.input(P(s)) : T
|
|
1375
1375
|
)
|
|
1376
1376
|
});
|
|
1377
|
-
},
|
|
1378
|
-
const { value: t, onBlur: r, onChange: n, onInput: s, after: o, disabled: l, ...i } = e, c =
|
|
1379
|
-
return
|
|
1377
|
+
}, yn = (e) => {
|
|
1378
|
+
const { value: t, onBlur: r, onChange: n, onInput: s, after: o, disabled: l, ...i } = e, c = Y(t, l, n);
|
|
1379
|
+
return Yt({
|
|
1380
1380
|
...i,
|
|
1381
1381
|
value: u.map(t, ne),
|
|
1382
|
-
onChange: n != null ? (p) => n(
|
|
1383
|
-
onInput: s != null ? (p) => s(
|
|
1382
|
+
onChange: n != null ? (p) => n(Z(p)) : void 0,
|
|
1383
|
+
onInput: s != null ? (p) => s(Z(p)) : void 0,
|
|
1384
1384
|
onBlur: r,
|
|
1385
1385
|
after: o != null ? L(c, o) : c
|
|
1386
1386
|
});
|
|
1387
|
-
},
|
|
1387
|
+
}, In = (e) => {
|
|
1388
1388
|
const { value: t, step: r, min: n, max: s, onBlur: o, onChange: l, onInput: i, after: c } = e, p = (v) => {
|
|
1389
1389
|
const d = n != null ? u.get(n) : void 0, x = s != null ? u.get(s) : void 0;
|
|
1390
1390
|
return d != null && v < d ? d : x != null && v > x ? x : v;
|
|
1391
|
-
}, m = r != null ?
|
|
1392
|
-
const d =
|
|
1391
|
+
}, m = r != null ? H(X, (v) => {
|
|
1392
|
+
const d = V(
|
|
1393
1393
|
t,
|
|
1394
1394
|
n
|
|
1395
|
-
)((g, b) => b == null ? !0 : (g ?? 0) > b), x =
|
|
1395
|
+
)((g, b) => b == null ? !0 : (g ?? 0) > b), x = V(
|
|
1396
1396
|
t,
|
|
1397
1397
|
s
|
|
1398
1398
|
)((g, b) => b == null ? !0 : (g ?? 0) < b), h = (g) => {
|
|
1399
|
-
const b = u.get(t) ?? 0,
|
|
1400
|
-
if (
|
|
1399
|
+
const b = u.get(t) ?? 0, D = u.get(r), y = g?.shiftKey ? 10 : 1, _ = b - D * y, w = n != null ? u.get(n) : void 0;
|
|
1400
|
+
if (w != null && _ < w)
|
|
1401
1401
|
return;
|
|
1402
|
-
const k = p(
|
|
1402
|
+
const k = p(_);
|
|
1403
1403
|
k !== b && l && l(k);
|
|
1404
|
-
},
|
|
1405
|
-
const b = u.get(t) ?? 0,
|
|
1406
|
-
if (
|
|
1404
|
+
}, $ = (g) => {
|
|
1405
|
+
const b = u.get(t) ?? 0, D = u.get(r), y = g?.shiftKey ? 10 : 1, _ = b + D * y, w = s != null ? u.get(s) : void 0;
|
|
1406
|
+
if (w != null && _ > w)
|
|
1407
1407
|
return;
|
|
1408
|
-
const k = p(
|
|
1408
|
+
const k = p(_);
|
|
1409
1409
|
k !== b && l && l(k);
|
|
1410
1410
|
};
|
|
1411
1411
|
return ce(
|
|
1412
1412
|
a.class("bc-number-input-steppers"),
|
|
1413
1413
|
// Increment second
|
|
1414
|
-
|
|
1414
|
+
I.button(
|
|
1415
1415
|
a.class(
|
|
1416
1416
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
|
|
1417
1417
|
),
|
|
1418
1418
|
a.disabled(
|
|
1419
|
-
|
|
1419
|
+
V(
|
|
1420
1420
|
x,
|
|
1421
1421
|
e.disabled ?? !1
|
|
1422
1422
|
)((g, b) => !g || b)
|
|
1423
1423
|
),
|
|
1424
|
-
C.click((g) =>
|
|
1424
|
+
C.click((g) => $(g)),
|
|
1425
1425
|
N.label(v.$.incrementValue),
|
|
1426
1426
|
z({ icon: "line-md:plus", size: "xs" })
|
|
1427
1427
|
),
|
|
1428
1428
|
// Decrement first (matches tests expecting first button to be decrement)
|
|
1429
|
-
|
|
1429
|
+
I.button(
|
|
1430
1430
|
a.class(
|
|
1431
1431
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
|
|
1432
1432
|
),
|
|
1433
1433
|
a.disabled(
|
|
1434
|
-
|
|
1434
|
+
V(
|
|
1435
1435
|
d,
|
|
1436
1436
|
e.disabled ?? !1
|
|
1437
1437
|
)((g, b) => !g || b)
|
|
@@ -1444,36 +1444,36 @@ const yn = (e) => {
|
|
|
1444
1444
|
}) : null, f = c != null && m != null ? L(m, c) : c ?? m;
|
|
1445
1445
|
return O({
|
|
1446
1446
|
...e,
|
|
1447
|
-
input:
|
|
1447
|
+
input: K.number(
|
|
1448
1448
|
n != null ? L(
|
|
1449
1449
|
a.min(n),
|
|
1450
|
-
|
|
1450
|
+
W(
|
|
1451
1451
|
u.on(n, (v) => {
|
|
1452
1452
|
v < u.get(t);
|
|
1453
1453
|
})
|
|
1454
1454
|
)
|
|
1455
|
-
) :
|
|
1455
|
+
) : T,
|
|
1456
1456
|
s != null ? L(
|
|
1457
1457
|
a.max(s),
|
|
1458
|
-
|
|
1458
|
+
W(
|
|
1459
1459
|
u.on(s, (v) => {
|
|
1460
1460
|
v > u.get(t);
|
|
1461
1461
|
})
|
|
1462
1462
|
)
|
|
1463
|
-
) :
|
|
1464
|
-
|
|
1463
|
+
) : T,
|
|
1464
|
+
j(e),
|
|
1465
1465
|
a.valueAsNumber(t),
|
|
1466
1466
|
a.step(r),
|
|
1467
1467
|
a.class("bc-input bc-number-input"),
|
|
1468
|
-
o != null ? C.blur(
|
|
1469
|
-
l != null ? C.change(G(l)) :
|
|
1470
|
-
i != null ? C.input(G(i)) :
|
|
1468
|
+
o != null ? C.blur(P(o)) : T,
|
|
1469
|
+
l != null ? C.change(G(l)) : T,
|
|
1470
|
+
i != null ? C.input(G(i)) : T,
|
|
1471
1471
|
// Add wheel event support when step is defined
|
|
1472
1472
|
r != null ? C.wheel((v) => {
|
|
1473
1473
|
v.preventDefault();
|
|
1474
|
-
const d = u.get(t) ?? 0, x = u.get(r), h = v.shiftKey ? 10 : 1,
|
|
1474
|
+
const d = u.get(t) ?? 0, x = u.get(r), h = v.shiftKey ? 10 : 1, $ = v.deltaY < 0 ? x * h : -x * h, g = p(d + $);
|
|
1475
1475
|
g !== d && l && l(g);
|
|
1476
|
-
}) :
|
|
1476
|
+
}) : T
|
|
1477
1477
|
),
|
|
1478
1478
|
after: f
|
|
1479
1479
|
});
|
|
@@ -1481,116 +1481,116 @@ const yn = (e) => {
|
|
|
1481
1481
|
if (e == null || e === "") return null;
|
|
1482
1482
|
const t = Number(e);
|
|
1483
1483
|
return Number.isNaN(t) ? null : t;
|
|
1484
|
-
},
|
|
1484
|
+
}, Cn = (e) => {
|
|
1485
1485
|
const { value: t, step: r, min: n, max: s, onBlur: o, onChange: l, onInput: i, after: c } = e, p = (d) => {
|
|
1486
1486
|
const x = n != null ? u.get(n) : void 0, h = s != null ? u.get(s) : void 0;
|
|
1487
1487
|
return x != null && d < x ? x : h != null && d > h ? h : d;
|
|
1488
1488
|
}, m = (() => {
|
|
1489
1489
|
if (r == null) return null;
|
|
1490
|
-
const d =
|
|
1490
|
+
const d = V(
|
|
1491
1491
|
t,
|
|
1492
1492
|
n
|
|
1493
|
-
)((b,
|
|
1494
|
-
const
|
|
1495
|
-
return
|
|
1496
|
-
}), x =
|
|
1493
|
+
)((b, D) => {
|
|
1494
|
+
const y = b ?? 0;
|
|
1495
|
+
return D == null ? !0 : y > D;
|
|
1496
|
+
}), x = V(
|
|
1497
1497
|
t,
|
|
1498
1498
|
s
|
|
1499
|
-
)((b,
|
|
1500
|
-
const
|
|
1501
|
-
return
|
|
1499
|
+
)((b, D) => {
|
|
1500
|
+
const y = b ?? 0;
|
|
1501
|
+
return D == null ? !0 : y < D;
|
|
1502
1502
|
}), h = (b) => {
|
|
1503
|
-
const
|
|
1504
|
-
if (k != null &&
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1507
|
-
},
|
|
1508
|
-
const
|
|
1509
|
-
if (k != null &&
|
|
1510
|
-
const
|
|
1511
|
-
|
|
1503
|
+
const D = u.get(t) ?? 0, y = u.get(r), _ = b?.shiftKey ? 10 : 1, w = D - y * _, k = n != null ? u.get(n) : void 0;
|
|
1504
|
+
if (k != null && w < k) return;
|
|
1505
|
+
const M = p(w);
|
|
1506
|
+
M !== D && l && l(M);
|
|
1507
|
+
}, $ = (b) => {
|
|
1508
|
+
const D = u.get(t) ?? 0, y = u.get(r), _ = b?.shiftKey ? 10 : 1, w = D + y * _, k = s != null ? u.get(s) : void 0;
|
|
1509
|
+
if (k != null && w > k) return;
|
|
1510
|
+
const M = p(w);
|
|
1511
|
+
M !== D && l && l(M);
|
|
1512
1512
|
};
|
|
1513
|
-
return ((b,
|
|
1513
|
+
return ((b, D) => ce(
|
|
1514
1514
|
a.class("bc-number-input-steppers"),
|
|
1515
|
-
|
|
1515
|
+
I.button(
|
|
1516
1516
|
a.class(
|
|
1517
1517
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"
|
|
1518
1518
|
),
|
|
1519
1519
|
a.disabled(
|
|
1520
|
-
|
|
1520
|
+
V(
|
|
1521
1521
|
x,
|
|
1522
1522
|
e.disabled ?? !1
|
|
1523
|
-
)((
|
|
1523
|
+
)((y, _) => !y || _)
|
|
1524
1524
|
),
|
|
1525
|
-
C.click((
|
|
1525
|
+
C.click((y) => $(y)),
|
|
1526
1526
|
N.label(b),
|
|
1527
1527
|
z({ icon: "line-md:plus", size: "xs" })
|
|
1528
1528
|
),
|
|
1529
|
-
|
|
1529
|
+
I.button(
|
|
1530
1530
|
a.class(
|
|
1531
1531
|
"bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"
|
|
1532
1532
|
),
|
|
1533
1533
|
a.disabled(
|
|
1534
|
-
|
|
1534
|
+
V(
|
|
1535
1535
|
d,
|
|
1536
1536
|
e.disabled ?? !1
|
|
1537
|
-
)((
|
|
1537
|
+
)((y, _) => !y || _)
|
|
1538
1538
|
),
|
|
1539
|
-
C.click((
|
|
1540
|
-
N.label(
|
|
1539
|
+
C.click((y) => h(y)),
|
|
1540
|
+
N.label(D),
|
|
1541
1541
|
z({ icon: "line-md:minus", size: "xs" })
|
|
1542
1542
|
)
|
|
1543
1543
|
))(
|
|
1544
|
-
|
|
1545
|
-
|
|
1544
|
+
ke.incrementValue,
|
|
1545
|
+
ke.decrementValue
|
|
1546
1546
|
);
|
|
1547
|
-
})(), f =
|
|
1547
|
+
})(), f = Y(t, e.disabled, l), v = c != null && m != null ? L(m, f, c) : c != null ? L(f, c) : m != null ? L(m, f) : f;
|
|
1548
1548
|
return O({
|
|
1549
1549
|
...e,
|
|
1550
|
-
input:
|
|
1550
|
+
input: K.number(
|
|
1551
1551
|
// min/max attributes and reactive watchers (no forced correction)
|
|
1552
1552
|
n != null ? L(
|
|
1553
1553
|
a.min(n),
|
|
1554
|
-
|
|
1554
|
+
W(
|
|
1555
1555
|
u.on(n, (d) => {
|
|
1556
1556
|
})
|
|
1557
1557
|
)
|
|
1558
|
-
) :
|
|
1558
|
+
) : T,
|
|
1559
1559
|
s != null ? L(
|
|
1560
1560
|
a.max(s),
|
|
1561
|
-
|
|
1561
|
+
W(
|
|
1562
1562
|
u.on(s, (d) => {
|
|
1563
1563
|
})
|
|
1564
1564
|
)
|
|
1565
|
-
) :
|
|
1566
|
-
|
|
1565
|
+
) : T,
|
|
1566
|
+
j(e),
|
|
1567
1567
|
// Represent null as empty string so the field can be cleared
|
|
1568
1568
|
a.value(u.map(t, (d) => d == null ? "" : String(d))),
|
|
1569
1569
|
a.step(r),
|
|
1570
1570
|
a.class("bc-input bc-number-input"),
|
|
1571
|
-
o != null ? C.blur(
|
|
1571
|
+
o != null ? C.blur(P(o)) : T,
|
|
1572
1572
|
l != null ? C.change(
|
|
1573
|
-
|
|
1573
|
+
P((d) => {
|
|
1574
1574
|
const x = Re(d);
|
|
1575
1575
|
l(x);
|
|
1576
1576
|
})
|
|
1577
|
-
) :
|
|
1577
|
+
) : T,
|
|
1578
1578
|
i != null ? C.input(
|
|
1579
|
-
|
|
1579
|
+
P((d) => {
|
|
1580
1580
|
const x = Re(d);
|
|
1581
1581
|
i(x);
|
|
1582
1582
|
})
|
|
1583
|
-
) :
|
|
1583
|
+
) : T,
|
|
1584
1584
|
// Wheel support when step is defined
|
|
1585
1585
|
r != null ? C.wheel((d) => {
|
|
1586
1586
|
d.preventDefault();
|
|
1587
|
-
const x = u.get(t) ?? 0, h = u.get(r),
|
|
1587
|
+
const x = u.get(t) ?? 0, h = u.get(r), $ = d.shiftKey ? 10 : 1, g = d.deltaY < 0 ? h * $ : -h * $, b = p(x + g);
|
|
1588
1588
|
b !== x && l && l(b);
|
|
1589
|
-
}) :
|
|
1589
|
+
}) : T
|
|
1590
1590
|
),
|
|
1591
1591
|
after: v
|
|
1592
1592
|
});
|
|
1593
|
-
},
|
|
1593
|
+
}, Mn = ({
|
|
1594
1594
|
value: e,
|
|
1595
1595
|
onChange: t,
|
|
1596
1596
|
offLabel: r,
|
|
@@ -1601,38 +1601,38 @@ const yn = (e) => {
|
|
|
1601
1601
|
id: i,
|
|
1602
1602
|
color: c = "primary"
|
|
1603
1603
|
}) => {
|
|
1604
|
-
const p = i ??
|
|
1605
|
-
function f(h,
|
|
1604
|
+
const p = i ?? dt("switch"), m = `${p}-label`;
|
|
1605
|
+
function f(h, $) {
|
|
1606
1606
|
const g = [
|
|
1607
1607
|
"bc-switch",
|
|
1608
|
-
`bc-switch--size-${
|
|
1609
|
-
`bc-switch--${
|
|
1608
|
+
`bc-switch--size-${$}`,
|
|
1609
|
+
`bc-switch--${$}`
|
|
1610
1610
|
];
|
|
1611
1611
|
return h && g.push("bc-switch--disabled"), g.join(" ");
|
|
1612
1612
|
}
|
|
1613
1613
|
function v(h) {
|
|
1614
|
-
const
|
|
1615
|
-
return g.set("--switch-track-on-bg", b.backgroundColor), g.set("--switch-track-on-label", b.textColor), g.set("--switch-track-on-bg-dark",
|
|
1614
|
+
const $ = h ?? "primary", g = /* @__PURE__ */ new Map(), b = Le($, "solid", "light"), D = Le($, "solid", "dark");
|
|
1615
|
+
return g.set("--switch-track-on-bg", b.backgroundColor), g.set("--switch-track-on-label", b.textColor), g.set("--switch-track-on-bg-dark", D.backgroundColor), g.set("--switch-track-on-label-dark", D.textColor), g.set(
|
|
1616
1616
|
"--switch-track-on-border-dark",
|
|
1617
|
-
|
|
1618
|
-
), Array.from(g.entries()).map(([
|
|
1617
|
+
ht($, "dark")
|
|
1618
|
+
), Array.from(g.entries()).map(([y, _]) => `${y}: ${_}`).join("; ");
|
|
1619
1619
|
}
|
|
1620
1620
|
const d = () => {
|
|
1621
1621
|
u.get(o) || t(!u.get(e));
|
|
1622
1622
|
}, x = (h) => {
|
|
1623
1623
|
u.get(o) || (h.key === " " || h.key === "Enter") && (h.preventDefault(), d());
|
|
1624
1624
|
};
|
|
1625
|
-
return
|
|
1625
|
+
return I.div(
|
|
1626
1626
|
a.class(
|
|
1627
|
-
|
|
1627
|
+
V(
|
|
1628
1628
|
o ?? !1,
|
|
1629
1629
|
l
|
|
1630
1630
|
)(
|
|
1631
|
-
(h,
|
|
1631
|
+
(h, $) => f(h ?? !1, $ ?? "md")
|
|
1632
1632
|
)
|
|
1633
1633
|
),
|
|
1634
1634
|
a.style(
|
|
1635
|
-
|
|
1635
|
+
V(c)(
|
|
1636
1636
|
(h) => v(h)
|
|
1637
1637
|
)
|
|
1638
1638
|
),
|
|
@@ -1646,14 +1646,14 @@ const yn = (e) => {
|
|
|
1646
1646
|
N.labelledby(s != null ? m : void 0),
|
|
1647
1647
|
C.click(d),
|
|
1648
1648
|
C.keydown(x),
|
|
1649
|
-
s != null ?
|
|
1649
|
+
s != null ? ft(
|
|
1650
1650
|
a.id(m),
|
|
1651
1651
|
a.class(
|
|
1652
1652
|
`bc-switch__label bc-switch__label--size-${l} bc-switch__label--nowrap`
|
|
1653
1653
|
),
|
|
1654
1654
|
s
|
|
1655
1655
|
) : null,
|
|
1656
|
-
|
|
1656
|
+
I.div(
|
|
1657
1657
|
a.class("bc-switch__track"),
|
|
1658
1658
|
a.class(
|
|
1659
1659
|
u.map(
|
|
@@ -1661,7 +1661,7 @@ const yn = (e) => {
|
|
|
1661
1661
|
(h) => h ? "bc-switch__track--on" : "bc-switch__track--off"
|
|
1662
1662
|
)
|
|
1663
1663
|
),
|
|
1664
|
-
r != null ?
|
|
1664
|
+
r != null ? I.div(
|
|
1665
1665
|
N.hidden(!0),
|
|
1666
1666
|
a.class("bc-switch__track-label bc-switch__track-label--off"),
|
|
1667
1667
|
a.class(
|
|
@@ -1672,7 +1672,7 @@ const yn = (e) => {
|
|
|
1672
1672
|
),
|
|
1673
1673
|
r
|
|
1674
1674
|
) : null,
|
|
1675
|
-
n != null ?
|
|
1675
|
+
n != null ? I.div(
|
|
1676
1676
|
a.class("bc-switch__track-label bc-switch__track-label--on"),
|
|
1677
1677
|
a.class(
|
|
1678
1678
|
u.map(
|
|
@@ -1682,10 +1682,10 @@ const yn = (e) => {
|
|
|
1682
1682
|
),
|
|
1683
1683
|
n
|
|
1684
1684
|
) : null,
|
|
1685
|
-
|
|
1686
|
-
(h) =>
|
|
1687
|
-
|
|
1688
|
-
({ direction:
|
|
1685
|
+
je(
|
|
1686
|
+
(h) => H(
|
|
1687
|
+
mt,
|
|
1688
|
+
({ direction: $ }) => I.div(
|
|
1689
1689
|
a.class("bc-switch__thumb"),
|
|
1690
1690
|
a.class(
|
|
1691
1691
|
u.map(
|
|
@@ -1694,14 +1694,14 @@ const yn = (e) => {
|
|
|
1694
1694
|
)
|
|
1695
1695
|
),
|
|
1696
1696
|
de.transform(
|
|
1697
|
-
|
|
1697
|
+
V(
|
|
1698
1698
|
e,
|
|
1699
1699
|
h,
|
|
1700
1700
|
l,
|
|
1701
|
-
|
|
1702
|
-
)((g, { width: b },
|
|
1703
|
-
const
|
|
1704
|
-
switch (
|
|
1701
|
+
$
|
|
1702
|
+
)((g, { width: b }, D, y) => {
|
|
1703
|
+
const _ = (() => {
|
|
1704
|
+
switch (D) {
|
|
1705
1705
|
case "xs":
|
|
1706
1706
|
return 5;
|
|
1707
1707
|
case "sm":
|
|
@@ -1713,8 +1713,8 @@ const yn = (e) => {
|
|
|
1713
1713
|
case "xl":
|
|
1714
1714
|
return 8;
|
|
1715
1715
|
}
|
|
1716
|
-
})(),
|
|
1717
|
-
return g ? `translateX(${
|
|
1716
|
+
})(), w = y === "rtl" ? `calc((var(--spacing-base) * ${_}) - ${b}px)` : `calc(${b}px - (var(--spacing-base) * ${_}))`;
|
|
1717
|
+
return g ? `translateX(${w})` : "translateX(0)";
|
|
1718
1718
|
})
|
|
1719
1719
|
)
|
|
1720
1720
|
)
|
|
@@ -1722,13 +1722,13 @@ const yn = (e) => {
|
|
|
1722
1722
|
)
|
|
1723
1723
|
)
|
|
1724
1724
|
);
|
|
1725
|
-
},
|
|
1725
|
+
}, Xt = (e) => {
|
|
1726
1726
|
const t = {
|
|
1727
1727
|
type: "pattern",
|
|
1728
1728
|
pattern: /[0-9A-Fa-f]/,
|
|
1729
1729
|
transform: (n) => n.toLowerCase()
|
|
1730
1730
|
};
|
|
1731
|
-
return
|
|
1731
|
+
return Xe({
|
|
1732
1732
|
...e,
|
|
1733
1733
|
mask: [
|
|
1734
1734
|
t,
|
|
@@ -1771,17 +1771,17 @@ const yn = (e) => {
|
|
|
1771
1771
|
// Sensible default placeholder; can be overridden via options.placeholder
|
|
1772
1772
|
placeholder: e.placeholder ?? "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
1773
1773
|
});
|
|
1774
|
-
},
|
|
1775
|
-
const { value: t, onBlur: r, onChange: n, onInput: s, after: o, disabled: l, ...i } = e, c =
|
|
1776
|
-
return
|
|
1774
|
+
}, Dn = (e) => {
|
|
1775
|
+
const { value: t, onBlur: r, onChange: n, onInput: s, after: o, disabled: l, ...i } = e, c = Y(t, l, n);
|
|
1776
|
+
return Xt({
|
|
1777
1777
|
...i,
|
|
1778
1778
|
value: u.map(t, ne),
|
|
1779
|
-
onChange: n != null ? (p) => n(
|
|
1780
|
-
onInput: s != null ? (p) => s(
|
|
1779
|
+
onChange: n != null ? (p) => n(Z(p)) : void 0,
|
|
1780
|
+
onInput: s != null ? (p) => s(Z(p)) : void 0,
|
|
1781
1781
|
onBlur: r,
|
|
1782
1782
|
after: o != null ? L(c, o) : c
|
|
1783
1783
|
});
|
|
1784
|
-
},
|
|
1784
|
+
}, qt = "line-md:star-alt-filled", Gt = "line-md:star-alt", Qt = (e) => {
|
|
1785
1785
|
const {
|
|
1786
1786
|
value: t,
|
|
1787
1787
|
onChange: r,
|
|
@@ -1789,55 +1789,55 @@ const yn = (e) => {
|
|
|
1789
1789
|
max: s = 5,
|
|
1790
1790
|
fullColor: o = "yellow",
|
|
1791
1791
|
emptyColor: l = "neutral",
|
|
1792
|
-
fullIcon: i =
|
|
1793
|
-
emptyIcon: c =
|
|
1792
|
+
fullIcon: i = qt,
|
|
1793
|
+
emptyIcon: c = Gt,
|
|
1794
1794
|
size: p = "md",
|
|
1795
1795
|
onBlur: m,
|
|
1796
1796
|
rounding: f = 1
|
|
1797
1797
|
} = e, v = () => {
|
|
1798
1798
|
const b = u.get(f);
|
|
1799
1799
|
return b > 0 ? b : 1;
|
|
1800
|
-
}, d = (b) => Math.min(Math.max(b, 0), u.get(s)), x = (b,
|
|
1800
|
+
}, d = (b) => Math.min(Math.max(b, 0), u.get(s)), x = (b, D) => {
|
|
1801
1801
|
if (u.get(n ?? !1)) return;
|
|
1802
|
-
const
|
|
1802
|
+
const _ = b.currentTarget.getBoundingClientRect(), w = (b.clientX - _.left) / _.width, k = D - 1 + w, M = v(), A = Math.ceil(k / M) * M, F = d(A);
|
|
1803
1803
|
r?.(F);
|
|
1804
1804
|
}, h = (b) => {
|
|
1805
1805
|
if (u.get(n ?? !1)) return;
|
|
1806
|
-
const
|
|
1807
|
-
let
|
|
1806
|
+
const D = v(), y = u.get(t) ?? 0;
|
|
1807
|
+
let _;
|
|
1808
1808
|
switch (b.key) {
|
|
1809
1809
|
case "ArrowRight":
|
|
1810
1810
|
case "ArrowUp":
|
|
1811
|
-
|
|
1811
|
+
_ = d(y + D);
|
|
1812
1812
|
break;
|
|
1813
1813
|
case "ArrowLeft":
|
|
1814
1814
|
case "ArrowDown":
|
|
1815
|
-
|
|
1815
|
+
_ = d(y - D);
|
|
1816
1816
|
break;
|
|
1817
1817
|
case "Home":
|
|
1818
|
-
|
|
1818
|
+
_ = 0;
|
|
1819
1819
|
break;
|
|
1820
1820
|
case "End":
|
|
1821
|
-
|
|
1821
|
+
_ = u.get(s);
|
|
1822
1822
|
break;
|
|
1823
1823
|
default:
|
|
1824
1824
|
return;
|
|
1825
1825
|
}
|
|
1826
|
-
b.preventDefault(), r?.(
|
|
1827
|
-
},
|
|
1826
|
+
b.preventDefault(), r?.(_);
|
|
1827
|
+
}, $ = u.map(p, (b) => `bc-icon--${b}`), g = ({ index: b, counter: D }) => I.span(
|
|
1828
1828
|
a.class("bc-rating-input__icon-container"),
|
|
1829
|
-
a.class(
|
|
1829
|
+
a.class($),
|
|
1830
1830
|
z(
|
|
1831
1831
|
{ icon: c, size: p, color: l, tone: "soft" },
|
|
1832
1832
|
a.class("bc-rating-input__icon-empty")
|
|
1833
1833
|
),
|
|
1834
|
-
|
|
1834
|
+
I.span(
|
|
1835
1835
|
a.class("bc-rating-input__icon-clipper"),
|
|
1836
|
-
a.class(
|
|
1836
|
+
a.class($),
|
|
1837
1837
|
de.width(
|
|
1838
|
-
u.map(t, (
|
|
1839
|
-
const
|
|
1840
|
-
return
|
|
1838
|
+
u.map(t, (y) => {
|
|
1839
|
+
const _ = Math.floor(y);
|
|
1840
|
+
return _ > b ? "100%" : _ < b ? "0%" : `${(y - b) * 100}%`;
|
|
1841
1841
|
})
|
|
1842
1842
|
),
|
|
1843
1843
|
z(
|
|
@@ -1846,7 +1846,7 @@ const yn = (e) => {
|
|
|
1846
1846
|
)
|
|
1847
1847
|
),
|
|
1848
1848
|
C.click(
|
|
1849
|
-
nt((
|
|
1849
|
+
nt((y) => x(y, D), {
|
|
1850
1850
|
preventDefault: !0,
|
|
1851
1851
|
stopPropagation: !0
|
|
1852
1852
|
})
|
|
@@ -1857,9 +1857,9 @@ const yn = (e) => {
|
|
|
1857
1857
|
growInput: !1,
|
|
1858
1858
|
focusableSelector: '[role="slider"]',
|
|
1859
1859
|
...e,
|
|
1860
|
-
input:
|
|
1860
|
+
input: I.div(
|
|
1861
1861
|
// Common input attributes (id, required, invalid, custom classes, etc.)
|
|
1862
|
-
|
|
1862
|
+
j(e),
|
|
1863
1863
|
a.class("bc-rating-input"),
|
|
1864
1864
|
// ARIA slider semantics
|
|
1865
1865
|
a.role("slider"),
|
|
@@ -1869,23 +1869,23 @@ const yn = (e) => {
|
|
|
1869
1869
|
N.valuemax(u.map(s, (b) => b ?? 0)),
|
|
1870
1870
|
N.valuenow(u.map(t, (b) => b ?? 0)),
|
|
1871
1871
|
N.valuetext(
|
|
1872
|
-
|
|
1872
|
+
V(
|
|
1873
1873
|
t,
|
|
1874
1874
|
s
|
|
1875
|
-
)((b,
|
|
1876
|
-
const
|
|
1877
|
-
return `${String(
|
|
1875
|
+
)((b, D) => {
|
|
1876
|
+
const y = b ?? 0, _ = D ?? 0;
|
|
1877
|
+
return `${String(y)} / ${String(_)}`;
|
|
1878
1878
|
})
|
|
1879
1879
|
),
|
|
1880
1880
|
// Keyboard & focus handlers
|
|
1881
1881
|
C.keydown(h),
|
|
1882
1882
|
m != null ? C.blur(m) : null,
|
|
1883
|
-
|
|
1883
|
+
Pe(s, g)
|
|
1884
1884
|
)
|
|
1885
1885
|
});
|
|
1886
|
-
},
|
|
1887
|
-
const { value: t, onChange: r, onBlur: n, after: s, disabled: o, ...l } = e, i =
|
|
1888
|
-
return
|
|
1886
|
+
}, Sn = (e) => {
|
|
1887
|
+
const { value: t, onChange: r, onBlur: n, after: s, disabled: o, ...l } = e, i = Y(t, o, r);
|
|
1888
|
+
return Qt({
|
|
1889
1889
|
...l,
|
|
1890
1890
|
// Map null -> 0 for display so the control shows as empty when null
|
|
1891
1891
|
value: u.map(t, (c) => c ?? 0),
|
|
@@ -1894,32 +1894,32 @@ const yn = (e) => {
|
|
|
1894
1894
|
onBlur: n,
|
|
1895
1895
|
after: s != null ? L(i, s) : i
|
|
1896
1896
|
});
|
|
1897
|
-
},
|
|
1897
|
+
}, Tn = (e) => {
|
|
1898
1898
|
const { value: t, step: r, min: n, max: s, onBlur: o, onChange: l, onInput: i } = e;
|
|
1899
1899
|
return O({
|
|
1900
1900
|
...e,
|
|
1901
1901
|
// Make sure clicks anywhere focus the range input
|
|
1902
1902
|
focusableSelector: 'input[type="range"]',
|
|
1903
|
-
input:
|
|
1903
|
+
input: I.input(
|
|
1904
1904
|
a.type("range"),
|
|
1905
|
-
|
|
1905
|
+
j(e),
|
|
1906
1906
|
a.min(n),
|
|
1907
1907
|
a.max(s),
|
|
1908
1908
|
a.step(r),
|
|
1909
1909
|
// Using value as number to keep it in sync
|
|
1910
1910
|
a.valueAsNumber(t),
|
|
1911
1911
|
a.class("bc-input bc-slider-input"),
|
|
1912
|
-
o != null ? C.blur(G(o)) :
|
|
1913
|
-
l != null ? C.change(G(l)) :
|
|
1914
|
-
i != null ? C.input(G(i)) :
|
|
1912
|
+
o != null ? C.blur(G(o)) : T,
|
|
1913
|
+
l != null ? C.change(G(l)) : T,
|
|
1914
|
+
i != null ? C.input(G(i)) : T
|
|
1915
1915
|
)
|
|
1916
1916
|
});
|
|
1917
|
-
},
|
|
1917
|
+
}, An = (e) => {
|
|
1918
1918
|
const { value: t, step: r, min: n, max: s, onBlur: o, onChange: l, onInput: i } = e, c = u.map(t, (m) => {
|
|
1919
1919
|
if (m != null) return m;
|
|
1920
1920
|
const f = n != null ? u.get(n) : void 0;
|
|
1921
1921
|
return typeof f == "number" ? f : 0;
|
|
1922
|
-
}), p =
|
|
1922
|
+
}), p = Y(t, e.disabled, (m) => {
|
|
1923
1923
|
l?.(m);
|
|
1924
1924
|
});
|
|
1925
1925
|
return O(
|
|
@@ -1927,58 +1927,58 @@ const yn = (e) => {
|
|
|
1927
1927
|
...e,
|
|
1928
1928
|
focusableSelector: 'input[type="range"]',
|
|
1929
1929
|
after: p,
|
|
1930
|
-
input:
|
|
1930
|
+
input: I.input(
|
|
1931
1931
|
a.type("range"),
|
|
1932
|
-
|
|
1932
|
+
j(e),
|
|
1933
1933
|
a.min(n),
|
|
1934
1934
|
a.max(s),
|
|
1935
1935
|
a.step(r),
|
|
1936
1936
|
a.valueAsNumber(c),
|
|
1937
1937
|
a.class("bc-input bc-slider-input"),
|
|
1938
|
-
o != null ? C.blur(G(o)) :
|
|
1938
|
+
o != null ? C.blur(G(o)) : T,
|
|
1939
1939
|
l != null ? C.change(
|
|
1940
1940
|
G((m) => {
|
|
1941
1941
|
l(m);
|
|
1942
1942
|
})
|
|
1943
|
-
) :
|
|
1943
|
+
) : T,
|
|
1944
1944
|
i != null ? C.input(
|
|
1945
1945
|
G((m) => {
|
|
1946
1946
|
i(m);
|
|
1947
1947
|
})
|
|
1948
|
-
) :
|
|
1948
|
+
) : T
|
|
1949
1949
|
)
|
|
1950
1950
|
},
|
|
1951
1951
|
// Ensure container grows input naturally
|
|
1952
1952
|
L()
|
|
1953
1953
|
);
|
|
1954
1954
|
};
|
|
1955
|
-
let
|
|
1955
|
+
let we = null;
|
|
1956
1956
|
async function Me() {
|
|
1957
1957
|
const e = globalThis;
|
|
1958
|
-
return e.Temporal ? e.Temporal : (
|
|
1958
|
+
return e.Temporal ? e.Temporal : (we || (we = import("./index.esm-DPNh6inz.js").then((t) => {
|
|
1959
1959
|
const r = t.Temporal;
|
|
1960
1960
|
return e.Temporal || (e.Temporal = r), r;
|
|
1961
|
-
})),
|
|
1961
|
+
})), we);
|
|
1962
1962
|
}
|
|
1963
|
-
const
|
|
1963
|
+
const Jt = (e, t) => t ? Be(Me, {
|
|
1964
1964
|
then: e,
|
|
1965
1965
|
pending: t.pending,
|
|
1966
1966
|
error: t.error
|
|
1967
|
-
}) : Be(Me, e),
|
|
1968
|
-
function
|
|
1967
|
+
}) : Be(Me, e), Kt = /^P(\d+([YMWD]|$)){0,4}(T(\d+([HMS]|$)){0,3})?$/i, en = /^P(?:(\d+Y)?(\d+M)?(\d+W)?(\d+D)?)(T(\d+H)?(\d+M)?(\d+S)?)?$/i;
|
|
1968
|
+
function tn(e) {
|
|
1969
1969
|
return {
|
|
1970
1970
|
mask: null,
|
|
1971
1971
|
allowMode: "custom",
|
|
1972
1972
|
allow: (t) => /[0-9ptwdhms]/i.test(t),
|
|
1973
1973
|
pipe: (t) => {
|
|
1974
1974
|
const r = t.toUpperCase();
|
|
1975
|
-
return r.length === 0 ? r : !r.startsWith("P") || !
|
|
1975
|
+
return r.length === 0 ? r : !r.startsWith("P") || !Kt.test(r) ? !1 : r;
|
|
1976
1976
|
},
|
|
1977
1977
|
completion: {
|
|
1978
1978
|
mode: "custom",
|
|
1979
1979
|
isComplete: (t) => {
|
|
1980
1980
|
const r = t.toUpperCase();
|
|
1981
|
-
if (!
|
|
1981
|
+
if (!en.test(r)) return !1;
|
|
1982
1982
|
try {
|
|
1983
1983
|
return e(r), !0;
|
|
1984
1984
|
} catch {
|
|
@@ -1995,29 +1995,29 @@ const Oe = (e, t) => {
|
|
|
1995
1995
|
} catch {
|
|
1996
1996
|
return null;
|
|
1997
1997
|
}
|
|
1998
|
-
},
|
|
1998
|
+
}, Fn = (e) => {
|
|
1999
1999
|
const { value: t, onChange: r, after: n, disabled: s, onBlur: o } = e, l = () => {
|
|
2000
|
-
const p =
|
|
2000
|
+
const p = Y(t, s, r);
|
|
2001
2001
|
return n != null ? L(p, n) : p;
|
|
2002
|
-
}, i = e.placeholder != null ?
|
|
2003
|
-
return
|
|
2004
|
-
(p) =>
|
|
2002
|
+
}, i = e.placeholder != null ? T : a.placeholder("P0DT0H0M0S");
|
|
2003
|
+
return Jt(
|
|
2004
|
+
(p) => Xe({
|
|
2005
2005
|
...e,
|
|
2006
2006
|
value: u.map(t, (m) => m?.toString() ?? ""),
|
|
2007
2007
|
onChange: r ? (m) => r(m === "" ? null : p.Duration.from(m)) : void 0,
|
|
2008
2008
|
onInput: void 0,
|
|
2009
|
-
...
|
|
2009
|
+
...tn(p.Duration.from),
|
|
2010
2010
|
placeholder: "P0DT0H0M0S",
|
|
2011
2011
|
after: l()
|
|
2012
2012
|
}),
|
|
2013
2013
|
{ pending: () => O({
|
|
2014
2014
|
...e,
|
|
2015
|
-
input:
|
|
2016
|
-
|
|
2015
|
+
input: K.text(
|
|
2016
|
+
j(e),
|
|
2017
2017
|
a.value(u.map(t, (p) => p?.toString() ?? "")),
|
|
2018
2018
|
a.class("bc-input"),
|
|
2019
2019
|
i,
|
|
2020
|
-
o != null ? C.blur(() => o()) :
|
|
2020
|
+
o != null ? C.blur(() => o()) : T,
|
|
2021
2021
|
r != null ? C.change((p) => {
|
|
2022
2022
|
const f = p.currentTarget?.value ?? "";
|
|
2023
2023
|
if (f === "") {
|
|
@@ -2034,35 +2034,35 @@ const Oe = (e, t) => {
|
|
|
2034
2034
|
h != null && r(h);
|
|
2035
2035
|
}).catch(() => {
|
|
2036
2036
|
});
|
|
2037
|
-
}) :
|
|
2037
|
+
}) : T
|
|
2038
2038
|
),
|
|
2039
2039
|
after: l()
|
|
2040
2040
|
}) }
|
|
2041
2041
|
);
|
|
2042
|
-
},
|
|
2042
|
+
}, nn = (e) => {
|
|
2043
2043
|
const { value: t, onBlur: r, onChange: n, onInput: s } = e;
|
|
2044
2044
|
return O({
|
|
2045
2045
|
...e,
|
|
2046
|
-
input:
|
|
2047
|
-
|
|
2046
|
+
input: K.url(
|
|
2047
|
+
j(e),
|
|
2048
2048
|
a.value(t),
|
|
2049
2049
|
a.class("bc-input"),
|
|
2050
|
-
r != null ? C.blur(
|
|
2051
|
-
n != null ? C.change(
|
|
2052
|
-
s != null ? C.input(
|
|
2050
|
+
r != null ? C.blur(P(r)) : T,
|
|
2051
|
+
n != null ? C.change(P(n)) : T,
|
|
2052
|
+
s != null ? C.input(P(s)) : T
|
|
2053
2053
|
)
|
|
2054
2054
|
});
|
|
2055
|
-
},
|
|
2056
|
-
const { value: t, onBlur: r, onChange: n, onInput: s, after: o, disabled: l, ...i } = e, c =
|
|
2057
|
-
return
|
|
2055
|
+
}, Bn = (e) => {
|
|
2056
|
+
const { value: t, onBlur: r, onChange: n, onInput: s, after: o, disabled: l, ...i } = e, c = Y(t, l, n);
|
|
2057
|
+
return nn({
|
|
2058
2058
|
...i,
|
|
2059
2059
|
value: u.map(t, ne),
|
|
2060
|
-
onChange: n != null ? (p) => n(
|
|
2061
|
-
onInput: s != null ? (p) => s(
|
|
2060
|
+
onChange: n != null ? (p) => n(Z(p)) : void 0,
|
|
2061
|
+
onInput: s != null ? (p) => s(Z(p)) : void 0,
|
|
2062
2062
|
onBlur: r,
|
|
2063
2063
|
after: o != null ? L(c, o) : c
|
|
2064
2064
|
});
|
|
2065
|
-
},
|
|
2065
|
+
}, sn = (e) => {
|
|
2066
2066
|
const {
|
|
2067
2067
|
controller: t,
|
|
2068
2068
|
element: r,
|
|
@@ -2076,16 +2076,16 @@ const Oe = (e, t) => {
|
|
|
2076
2076
|
removeDisabled: m,
|
|
2077
2077
|
addDisabled: f
|
|
2078
2078
|
} = e, v = u.toSignal(p).map((h) => h === "aside"), d = (h) => {
|
|
2079
|
-
const
|
|
2079
|
+
const $ = E(
|
|
2080
2080
|
s ?? !1,
|
|
2081
|
-
() =>
|
|
2081
|
+
() => I.div(
|
|
2082
2082
|
a.class("bc-group--align-center"),
|
|
2083
2083
|
a.class(
|
|
2084
2084
|
v.map(
|
|
2085
2085
|
(b) => b ? "bc-group--direction-column bc-group--gap-1" : "bc-group--direction-row bc-group--gap-1"
|
|
2086
2086
|
)
|
|
2087
2087
|
),
|
|
2088
|
-
|
|
2088
|
+
ge(
|
|
2089
2089
|
{
|
|
2090
2090
|
size: "xs",
|
|
2091
2091
|
roundedness: "full",
|
|
@@ -2093,8 +2093,8 @@ const Oe = (e, t) => {
|
|
|
2093
2093
|
onClick: () => h.move("up"),
|
|
2094
2094
|
disabled: h.cannotMove("up")
|
|
2095
2095
|
},
|
|
2096
|
-
|
|
2097
|
-
|
|
2096
|
+
H(
|
|
2097
|
+
X,
|
|
2098
2098
|
(b) => z({
|
|
2099
2099
|
size: "xs",
|
|
2100
2100
|
icon: "line-md:arrow-up",
|
|
@@ -2102,7 +2102,7 @@ const Oe = (e, t) => {
|
|
|
2102
2102
|
})
|
|
2103
2103
|
)
|
|
2104
2104
|
),
|
|
2105
|
-
|
|
2105
|
+
ge(
|
|
2106
2106
|
{
|
|
2107
2107
|
size: "xs",
|
|
2108
2108
|
roundedness: "full",
|
|
@@ -2110,8 +2110,8 @@ const Oe = (e, t) => {
|
|
|
2110
2110
|
onClick: () => h.move("down"),
|
|
2111
2111
|
disabled: h.cannotMove("down")
|
|
2112
2112
|
},
|
|
2113
|
-
|
|
2114
|
-
|
|
2113
|
+
H(
|
|
2114
|
+
X,
|
|
2115
2115
|
(b) => z({
|
|
2116
2116
|
size: "xs",
|
|
2117
2117
|
icon: "line-md:arrow-down",
|
|
@@ -2122,12 +2122,12 @@ const Oe = (e, t) => {
|
|
|
2122
2122
|
)
|
|
2123
2123
|
), g = E(
|
|
2124
2124
|
o,
|
|
2125
|
-
() =>
|
|
2126
|
-
|
|
2127
|
-
(b) =>
|
|
2125
|
+
() => H(
|
|
2126
|
+
X,
|
|
2127
|
+
(b) => $e({
|
|
2128
2128
|
size: "xs",
|
|
2129
2129
|
// Use a lowercase label to satisfy tests that query with [aria-label*="remove"]
|
|
2130
|
-
label: u.map(b.$.removeItem, (
|
|
2130
|
+
label: u.map(b.$.removeItem, (D) => D.toLowerCase()),
|
|
2131
2131
|
color: "danger",
|
|
2132
2132
|
disabled: m,
|
|
2133
2133
|
onClick: h.remove
|
|
@@ -2142,8 +2142,8 @@ const Oe = (e, t) => {
|
|
|
2142
2142
|
ce(
|
|
2143
2143
|
a.class("bc-stack--align-center"),
|
|
2144
2144
|
E(
|
|
2145
|
-
t.value.map((
|
|
2146
|
-
() =>
|
|
2145
|
+
t.value.map((D) => D.length > 1),
|
|
2146
|
+
() => $
|
|
2147
2147
|
),
|
|
2148
2148
|
g
|
|
2149
2149
|
)
|
|
@@ -2154,34 +2154,34 @@ const Oe = (e, t) => {
|
|
|
2154
2154
|
pe(
|
|
2155
2155
|
a.class("bc-group--gap-2 bc-group--justify-between"),
|
|
2156
2156
|
E(
|
|
2157
|
-
t.value.map((
|
|
2158
|
-
() =>
|
|
2159
|
-
() =>
|
|
2157
|
+
t.value.map((D) => D.length > 1),
|
|
2158
|
+
() => $,
|
|
2159
|
+
() => I.div()
|
|
2160
2160
|
),
|
|
2161
2161
|
g
|
|
2162
2162
|
)
|
|
2163
2163
|
)
|
|
2164
2164
|
);
|
|
2165
2165
|
}, x = E(
|
|
2166
|
-
|
|
2166
|
+
V(l, i)((h, $) => h && $ != null),
|
|
2167
2167
|
() => pe(
|
|
2168
2168
|
a.class(
|
|
2169
2169
|
"bc-group--gap-2 bc-group--align-center bc-group--justify-center"
|
|
2170
2170
|
),
|
|
2171
|
-
|
|
2171
|
+
ge(
|
|
2172
2172
|
{
|
|
2173
2173
|
size: "sm",
|
|
2174
2174
|
variant: "filled",
|
|
2175
2175
|
onClick: () => t.push(i()),
|
|
2176
|
-
disabled:
|
|
2176
|
+
disabled: V(
|
|
2177
2177
|
t.disabled,
|
|
2178
2178
|
f ?? !1
|
|
2179
2179
|
)(
|
|
2180
|
-
(h,
|
|
2180
|
+
(h, $) => h || $
|
|
2181
2181
|
)
|
|
2182
2182
|
},
|
|
2183
|
-
|
|
2184
|
-
|
|
2183
|
+
H(
|
|
2184
|
+
X,
|
|
2185
2185
|
(h) => pe(
|
|
2186
2186
|
a.class("bc-group--gap-2"),
|
|
2187
2187
|
z({ icon: "line-md:plus" }),
|
|
@@ -2192,14 +2192,14 @@ const Oe = (e, t) => {
|
|
|
2192
2192
|
)
|
|
2193
2193
|
);
|
|
2194
2194
|
return L(
|
|
2195
|
-
|
|
2195
|
+
Pt(
|
|
2196
2196
|
t,
|
|
2197
2197
|
(h) => d(h)(r(h)),
|
|
2198
2198
|
n
|
|
2199
2199
|
),
|
|
2200
2200
|
x
|
|
2201
2201
|
);
|
|
2202
|
-
},
|
|
2202
|
+
}, Ln = (e, ...t) => {
|
|
2203
2203
|
const {
|
|
2204
2204
|
controller: r,
|
|
2205
2205
|
element: n,
|
|
@@ -2214,10 +2214,10 @@ const Oe = (e, t) => {
|
|
|
2214
2214
|
addDisabled: v,
|
|
2215
2215
|
...d
|
|
2216
2216
|
} = e;
|
|
2217
|
-
return
|
|
2217
|
+
return He(
|
|
2218
2218
|
{
|
|
2219
2219
|
...d,
|
|
2220
|
-
content:
|
|
2220
|
+
content: sn({
|
|
2221
2221
|
controller: r,
|
|
2222
2222
|
element: n,
|
|
2223
2223
|
separator: s,
|
|
@@ -2234,7 +2234,7 @@ const Oe = (e, t) => {
|
|
|
2234
2234
|
...t
|
|
2235
2235
|
);
|
|
2236
2236
|
};
|
|
2237
|
-
class
|
|
2237
|
+
class Vn extends be {
|
|
2238
2238
|
branches;
|
|
2239
2239
|
activeBranch;
|
|
2240
2240
|
#t;
|
|
@@ -2254,7 +2254,7 @@ class zn extends ve {
|
|
|
2254
2254
|
const f = l.find((d) => d.key === m);
|
|
2255
2255
|
if (!f)
|
|
2256
2256
|
throw new Error(`Unknown branch: ${m}`);
|
|
2257
|
-
const v = new
|
|
2257
|
+
const v = new be(
|
|
2258
2258
|
[...t, m],
|
|
2259
2259
|
(d) => {
|
|
2260
2260
|
this.change(d);
|
|
@@ -2263,7 +2263,7 @@ class zn extends ve {
|
|
|
2263
2263
|
(d) => f.detect(d) ? d : f.defaultValue(),
|
|
2264
2264
|
i
|
|
2265
2265
|
),
|
|
2266
|
-
s.map(
|
|
2266
|
+
s.map(Ve([m])),
|
|
2267
2267
|
{
|
|
2268
2268
|
disabled: this.disabled,
|
|
2269
2269
|
validationMode: this.parent.validationMode
|
|
@@ -2296,7 +2296,7 @@ class zn extends ve {
|
|
|
2296
2296
|
throw new Error(`Unknown branch: ${t}`);
|
|
2297
2297
|
if (this.#e.has(t))
|
|
2298
2298
|
return this.#e.get(t);
|
|
2299
|
-
const n = new
|
|
2299
|
+
const n = new be(
|
|
2300
2300
|
[...this.path, t],
|
|
2301
2301
|
(s) => {
|
|
2302
2302
|
this.change(s);
|
|
@@ -2305,7 +2305,7 @@ class zn extends ve {
|
|
|
2305
2305
|
(s) => r.detect(s) ? s : r.defaultValue(),
|
|
2306
2306
|
le
|
|
2307
2307
|
),
|
|
2308
|
-
this.status.map(
|
|
2308
|
+
this.status.map(Ve([t])),
|
|
2309
2309
|
{
|
|
2310
2310
|
disabled: this.disabled,
|
|
2311
2311
|
validationMode: this.parent.validationMode
|
|
@@ -2344,173 +2344,74 @@ class zn extends ve {
|
|
|
2344
2344
|
return this.branches.find((r) => r.key === t);
|
|
2345
2345
|
}
|
|
2346
2346
|
}
|
|
2347
|
-
function
|
|
2347
|
+
function En(e) {
|
|
2348
2348
|
return e.transform(
|
|
2349
2349
|
(t) => t ?? null,
|
|
2350
2350
|
(t) => t ?? void 0
|
|
2351
2351
|
);
|
|
2352
2352
|
}
|
|
2353
|
-
function
|
|
2353
|
+
function Un(e) {
|
|
2354
2354
|
return e.transform(
|
|
2355
2355
|
(t) => t ?? "",
|
|
2356
2356
|
(t) => t === "" ? void 0 : t
|
|
2357
2357
|
);
|
|
2358
2358
|
}
|
|
2359
|
-
function
|
|
2359
|
+
function Nn(e) {
|
|
2360
2360
|
return e.transform(
|
|
2361
2361
|
(t) => t ?? void 0,
|
|
2362
2362
|
(t) => t ?? null
|
|
2363
2363
|
);
|
|
2364
2364
|
}
|
|
2365
|
-
function ln(e) {
|
|
2366
|
-
switch (e) {
|
|
2367
|
-
case "success":
|
|
2368
|
-
return "material-symbols:check-circle-outline";
|
|
2369
|
-
case "warning":
|
|
2370
|
-
return "material-symbols:warning-outline";
|
|
2371
|
-
case "danger":
|
|
2372
|
-
return "material-symbols:error-outline";
|
|
2373
|
-
case "info":
|
|
2374
|
-
default:
|
|
2375
|
-
return "material-symbols:info-outline";
|
|
2376
|
-
}
|
|
2377
|
-
}
|
|
2378
|
-
function an(e) {
|
|
2379
|
-
switch (e) {
|
|
2380
|
-
case "success":
|
|
2381
|
-
return "success";
|
|
2382
|
-
case "warning":
|
|
2383
|
-
return "warning";
|
|
2384
|
-
case "danger":
|
|
2385
|
-
return "danger";
|
|
2386
|
-
case "info":
|
|
2387
|
-
default:
|
|
2388
|
-
return "info";
|
|
2389
|
-
}
|
|
2390
|
-
}
|
|
2391
|
-
function on(e, t, r, n) {
|
|
2392
|
-
const s = [
|
|
2393
|
-
"bc-notice",
|
|
2394
|
-
`bc-notice--${e}`,
|
|
2395
|
-
`bc-notice--tone-${t}`
|
|
2396
|
-
];
|
|
2397
|
-
return r && s.push("bc-notice--dismissible"), n && n.length > 0 && s.push(n), s.join(" ");
|
|
2398
|
-
}
|
|
2399
|
-
function jn({
|
|
2400
|
-
variant: e = "info",
|
|
2401
|
-
tone: t = "subtle",
|
|
2402
|
-
role: r,
|
|
2403
|
-
title: n,
|
|
2404
|
-
icon: s,
|
|
2405
|
-
closable: o = !1,
|
|
2406
|
-
onDismiss: l,
|
|
2407
|
-
class: i
|
|
2408
|
-
}, ...c) {
|
|
2409
|
-
const p = u.map(
|
|
2410
|
-
o,
|
|
2411
|
-
(h) => !!h || l != null
|
|
2412
|
-
), m = u.map(e, (h) => h ?? "info"), f = u.map(t, (h) => h ?? "subtle"), v = B(
|
|
2413
|
-
r,
|
|
2414
|
-
m
|
|
2415
|
-
)(
|
|
2416
|
-
(h, w) => h ?? (w === "danger" ? "alert" : "status")
|
|
2417
|
-
), d = K(!0), x = P(
|
|
2418
|
-
W,
|
|
2419
|
-
(h) => y.div(
|
|
2420
|
-
a.class(
|
|
2421
|
-
B(
|
|
2422
|
-
m,
|
|
2423
|
-
f,
|
|
2424
|
-
p,
|
|
2425
|
-
i
|
|
2426
|
-
)((w, g, b, M) => on(w, g, b, M))
|
|
2427
|
-
),
|
|
2428
|
-
// Accessibility role mapping (always defined)
|
|
2429
|
-
a.role(u.map(v, (w) => w)),
|
|
2430
|
-
st(
|
|
2431
|
-
u.map(s, (w) => w === !1),
|
|
2432
|
-
() => y.div(
|
|
2433
|
-
a.class("bc-notice__icon"),
|
|
2434
|
-
z({
|
|
2435
|
-
icon: B(
|
|
2436
|
-
s,
|
|
2437
|
-
m
|
|
2438
|
-
)((w, g) => w === void 0 ? ln(g) : String(w)),
|
|
2439
|
-
size: "md",
|
|
2440
|
-
color: u.map(m, an)
|
|
2441
|
-
})
|
|
2442
|
-
)
|
|
2443
|
-
),
|
|
2444
|
-
y.div(
|
|
2445
|
-
a.class("bc-notice__body"),
|
|
2446
|
-
Pe(n, (w) => y.div(a.class("bc-notice__title"), w)),
|
|
2447
|
-
y.div(a.class("bc-notice__content"), ...c)
|
|
2448
|
-
),
|
|
2449
|
-
E(
|
|
2450
|
-
p,
|
|
2451
|
-
() => me({
|
|
2452
|
-
size: "xs",
|
|
2453
|
-
label: h.$.closeModal,
|
|
2454
|
-
onClick: () => {
|
|
2455
|
-
d.set(!1), l?.();
|
|
2456
|
-
}
|
|
2457
|
-
})
|
|
2458
|
-
)
|
|
2459
|
-
)
|
|
2460
|
-
);
|
|
2461
|
-
return E(d, () => x);
|
|
2462
|
-
}
|
|
2463
2365
|
export {
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2366
|
+
Sn as A,
|
|
2367
|
+
sn as B,
|
|
2368
|
+
mn as C,
|
|
2369
|
+
Tn as D,
|
|
2370
|
+
Ut as E,
|
|
2469
2371
|
kt as F,
|
|
2470
2372
|
pe as G,
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2373
|
+
An as H,
|
|
2374
|
+
Fn as I,
|
|
2375
|
+
nn as J,
|
|
2376
|
+
Bn as K,
|
|
2377
|
+
Ln as L,
|
|
2378
|
+
Xe as M,
|
|
2379
|
+
Rt as N,
|
|
2380
|
+
gn as O,
|
|
2381
|
+
hn as P,
|
|
2382
|
+
Nt as Q,
|
|
2383
|
+
Qt as R,
|
|
2384
|
+
dn as S,
|
|
2385
|
+
Yt as T,
|
|
2484
2386
|
Ee as U,
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
It as h,
|
|
2387
|
+
Me as V,
|
|
2388
|
+
Jt as W,
|
|
2389
|
+
un as X,
|
|
2390
|
+
pn as _,
|
|
2391
|
+
Y as a,
|
|
2392
|
+
Vn as b,
|
|
2393
|
+
Un as c,
|
|
2394
|
+
tn as d,
|
|
2395
|
+
Z as e,
|
|
2396
|
+
Nn as f,
|
|
2397
|
+
fn as g,
|
|
2398
|
+
yt as h,
|
|
2498
2399
|
Dt as i,
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2400
|
+
bn as j,
|
|
2401
|
+
Pt as k,
|
|
2402
|
+
Ot as l,
|
|
2403
|
+
vn as m,
|
|
2503
2404
|
ne as n,
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2405
|
+
xn as o,
|
|
2406
|
+
wn as p,
|
|
2407
|
+
$n as q,
|
|
2408
|
+
kn as r,
|
|
2409
|
+
yn as s,
|
|
2410
|
+
En as t,
|
|
2411
|
+
_n as u,
|
|
2412
|
+
In as v,
|
|
2413
|
+
Cn as w,
|
|
2414
|
+
Mn as x,
|
|
2415
|
+
Xt as y,
|
|
2416
|
+
Dn as z
|
|
2516
2417
|
};
|