@coolms/ui-react 0.1.0-alpha.22 → 0.1.0-alpha.23
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/CHANGELOG.md +6 -0
- package/dist/index.js +224 -224
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@coolms/ui-react` are listed here. Versions follow [semantic versioning](https://semver.org/).
|
|
4
4
|
|
|
5
|
+
## 0.1.0-alpha.23 (2026-11-21)
|
|
6
|
+
|
|
7
|
+
The screen shell's bar steps aside only for the reader's own scroll, never for a scroll the host makes, and never moves with motion when reduced motion is set.
|
|
8
|
+
|
|
9
|
+
- `ScreenShell` `bar-hidden`: a reader's input counts only for a scroll of the element it was aimed at (its target inside it, or a key aimed at the whole page). A tap that opens a view, such as a conversation that then scrolls to its latest message, no longer folds the bar.
|
|
10
|
+
|
|
5
11
|
## 0.1.0-alpha.22 (2026-11-21)
|
|
6
12
|
|
|
7
13
|
The screen shell's bar steps aside only for the reader's own scroll, never for a scroll the host makes, and never moves with motion when reduced motion is set.
|
package/dist/index.js
CHANGED
|
@@ -40,16 +40,16 @@ function le({
|
|
|
40
40
|
icon: s,
|
|
41
41
|
disabled: r,
|
|
42
42
|
className: a,
|
|
43
|
-
children:
|
|
43
|
+
children: m,
|
|
44
44
|
type: _ = "button",
|
|
45
45
|
title: d,
|
|
46
|
-
...
|
|
46
|
+
...h
|
|
47
47
|
}) {
|
|
48
48
|
const c = !!r || l;
|
|
49
49
|
return /* @__PURE__ */ u(
|
|
50
50
|
"button",
|
|
51
51
|
{
|
|
52
|
-
...
|
|
52
|
+
...h,
|
|
53
53
|
type: _,
|
|
54
54
|
className: A("cms-button", `cms-button--${n}`, l && "is-busy", o && "is-locked", a),
|
|
55
55
|
disabled: c,
|
|
@@ -57,7 +57,7 @@ function le({
|
|
|
57
57
|
title: o ? i ?? d : d,
|
|
58
58
|
children: [
|
|
59
59
|
l ? /* @__PURE__ */ e(z, { name: "spinner" }) : o ? /* @__PURE__ */ e(z, { name: "lock" }) : s,
|
|
60
|
-
/* @__PURE__ */ e("span", { className: "cms-button__label", children: l && t !== void 0 ? t :
|
|
60
|
+
/* @__PURE__ */ e("span", { className: "cms-button__label", children: l && t !== void 0 ? t : m }),
|
|
61
61
|
o && i ? /* @__PURE__ */ u("span", { className: "cms-visually-hidden", children: [
|
|
62
62
|
", ",
|
|
63
63
|
i
|
|
@@ -85,16 +85,16 @@ function Se(n, l) {
|
|
|
85
85
|
}
|
|
86
86
|
const ze = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2})(?::(\d{2}))?)?$/, Ze = /^(\d{2}):(\d{2})(?::(\d{2}))?$/;
|
|
87
87
|
function Ve(n, l, t) {
|
|
88
|
-
const o = (s, r, a,
|
|
89
|
-
const
|
|
90
|
-
return
|
|
88
|
+
const o = (s, r, a, m = 0, _ = 0, d = 0) => {
|
|
89
|
+
const h = new Date(Date.UTC(s, r - 1, a, m, _, d));
|
|
90
|
+
return h.setUTCFullYear(s), h.getUTCFullYear() === s && h.getUTCMonth() === r - 1 && h.getUTCDate() === a && h.getUTCHours() === m && h.getUTCMinutes() === _ && h.getUTCSeconds() === d ? h : null;
|
|
91
91
|
}, i = (s) => ({ hour: Number(s[1]), minute: Number(s[2]), second: Number(s[3] ?? 0) });
|
|
92
92
|
try {
|
|
93
93
|
if (n === "time") {
|
|
94
94
|
const r = l.match(Ze);
|
|
95
95
|
if (r === null) return l;
|
|
96
|
-
const a = i(r),
|
|
97
|
-
return
|
|
96
|
+
const a = i(r), m = o(2e3, 1, 1, a.hour, a.minute, a.second);
|
|
97
|
+
return m === null ? l : new Intl.DateTimeFormat(t, { timeStyle: r[3] === void 0 ? "short" : "medium", timeZone: "UTC" }).format(m);
|
|
98
98
|
}
|
|
99
99
|
const s = l.match(ze);
|
|
100
100
|
if (s === null) return l;
|
|
@@ -112,7 +112,7 @@ function Ve(n, l, t) {
|
|
|
112
112
|
return l;
|
|
113
113
|
}
|
|
114
114
|
const We = /* @__PURE__ */ new Set(["date", "time", "datetime-local"]);
|
|
115
|
-
function Bn({ label: n, help: l, error: t, disabled: o, readOnly: i, pinned: s, value: r, onChange: a, placeholder:
|
|
115
|
+
function Bn({ label: n, help: l, error: t, disabled: o, readOnly: i, pinned: s, value: r, onChange: a, placeholder: m, type: _ = "text", name: d, locale: h, min: c, max: f, step: p, minLength: g, maxLength: N, required: w }) {
|
|
116
116
|
const x = G(), S = i === !0 || s != null, C = S && We.has(_), F = _ === "number" && (p === "any" || typeof p == "number" && !Number.isInteger(p));
|
|
117
117
|
return /* @__PURE__ */ e(Ce, { id: x, label: n, help: l, error: t, pinned: s, children: /* @__PURE__ */ e(
|
|
118
118
|
"input",
|
|
@@ -121,10 +121,10 @@ function Bn({ label: n, help: l, error: t, disabled: o, readOnly: i, pinned: s,
|
|
|
121
121
|
name: d,
|
|
122
122
|
type: C ? "text" : _,
|
|
123
123
|
className: "cms-input",
|
|
124
|
-
value: C ? Ve(_, r,
|
|
124
|
+
value: C ? Ve(_, r, h) : r,
|
|
125
125
|
...C ? { "data-value": r } : {},
|
|
126
|
-
lang:
|
|
127
|
-
placeholder:
|
|
126
|
+
lang: h,
|
|
127
|
+
placeholder: m,
|
|
128
128
|
disabled: o,
|
|
129
129
|
readOnly: S,
|
|
130
130
|
required: w,
|
|
@@ -141,7 +141,7 @@ function Bn({ label: n, help: l, error: t, disabled: o, readOnly: i, pinned: s,
|
|
|
141
141
|
}
|
|
142
142
|
) });
|
|
143
143
|
}
|
|
144
|
-
function Fn({ label: n, help: l, error: t, disabled: o, readOnly: i, pinned: s, value: r, onChange: a, placeholder:
|
|
144
|
+
function Fn({ label: n, help: l, error: t, disabled: o, readOnly: i, pinned: s, value: r, onChange: a, placeholder: m, rows: _ = 4, name: d, locale: h, minLength: c, maxLength: f, required: p }) {
|
|
145
145
|
const g = G();
|
|
146
146
|
return /* @__PURE__ */ e(Ce, { id: g, label: n, help: l, error: t, pinned: s, children: /* @__PURE__ */ e(
|
|
147
147
|
"textarea",
|
|
@@ -151,8 +151,8 @@ function Fn({ label: n, help: l, error: t, disabled: o, readOnly: i, pinned: s,
|
|
|
151
151
|
className: "cms-input cms-textarea",
|
|
152
152
|
rows: _,
|
|
153
153
|
value: r,
|
|
154
|
-
lang:
|
|
155
|
-
placeholder:
|
|
154
|
+
lang: h,
|
|
155
|
+
placeholder: m,
|
|
156
156
|
disabled: o,
|
|
157
157
|
readOnly: i === !0 || s != null,
|
|
158
158
|
required: p,
|
|
@@ -165,19 +165,19 @@ function Fn({ label: n, help: l, error: t, disabled: o, readOnly: i, pinned: s,
|
|
|
165
165
|
}
|
|
166
166
|
) });
|
|
167
167
|
}
|
|
168
|
-
function Hn({ label: n, help: l, error: t, disabled: o, readOnly: i, value: s, options: r, onChange: a, emptyText:
|
|
169
|
-
const d = G(),
|
|
170
|
-
return /* @__PURE__ */ e(Ce, { id: d, label: n, help:
|
|
168
|
+
function Hn({ label: n, help: l, error: t, disabled: o, readOnly: i, value: s, options: r, onChange: a, emptyText: m = "Nothing to choose from yet.", name: _ }) {
|
|
169
|
+
const d = G(), h = r.length === 0;
|
|
170
|
+
return /* @__PURE__ */ e(Ce, { id: d, label: n, help: h ? m : l, error: t, children: /* @__PURE__ */ e(
|
|
171
171
|
"select",
|
|
172
172
|
{
|
|
173
173
|
id: d,
|
|
174
174
|
name: _,
|
|
175
175
|
className: "cms-input cms-select",
|
|
176
176
|
value: s,
|
|
177
|
-
disabled: o ||
|
|
177
|
+
disabled: o || h,
|
|
178
178
|
"aria-readonly": i || void 0,
|
|
179
179
|
"aria-invalid": t != null || void 0,
|
|
180
|
-
"aria-describedby": Se(d, { help:
|
|
180
|
+
"aria-describedby": Se(d, { help: h ? m : l, error: t }),
|
|
181
181
|
onChange: (c) => {
|
|
182
182
|
i || a == null || a(c.target.value);
|
|
183
183
|
},
|
|
@@ -210,27 +210,27 @@ function Rn({ label: n, checked: l, onChange: t, disabled: o, readOnly: i, help:
|
|
|
210
210
|
] });
|
|
211
211
|
}
|
|
212
212
|
const je = 150;
|
|
213
|
-
function Pe({ open: n, title: l, onClose: t, dirty: o = !1, onDirtyClose: i, children: s, footer: r, closeLabel: a = "Close", initialFocus:
|
|
214
|
-
const [d,
|
|
213
|
+
function Pe({ open: n, title: l, onClose: t, dirty: o = !1, onDirtyClose: i, children: s, footer: r, closeLabel: a = "Close", initialFocus: m, className: _ }) {
|
|
214
|
+
const [d, h] = E(n), [c, f] = E(!1), p = R(null), g = R(null), N = G();
|
|
215
215
|
if (Y(() => {
|
|
216
216
|
if (n) {
|
|
217
|
-
g.current = document.activeElement,
|
|
217
|
+
g.current = document.activeElement, h(!0), f(!1);
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
220
|
if (!d) return;
|
|
221
221
|
f(!0);
|
|
222
222
|
const x = window.setTimeout(() => {
|
|
223
223
|
var S, C;
|
|
224
|
-
|
|
224
|
+
h(!1), f(!1), (C = (S = g.current) == null ? void 0 : S.focus) == null || C.call(S);
|
|
225
225
|
}, je);
|
|
226
226
|
return () => window.clearTimeout(x);
|
|
227
227
|
}, [n, d]), Y(() => {
|
|
228
228
|
var x, S;
|
|
229
229
|
if (n && d) {
|
|
230
230
|
const C = 'input, select, textarea, button, [href], [tabindex]:not([tabindex="-1"])';
|
|
231
|
-
(S = (
|
|
231
|
+
(S = (m == null ? void 0 : m.current) ?? ((x = p.current) == null ? void 0 : x.querySelector(`.cms-modal__body :is(${C}), .cms-modal__foot :is(${C})`)) ?? p.current) == null || S.focus();
|
|
232
232
|
}
|
|
233
|
-
}, [n, d,
|
|
233
|
+
}, [n, d, m]), !d) return null;
|
|
234
234
|
const w = () => {
|
|
235
235
|
o ? i == null || i() : t();
|
|
236
236
|
};
|
|
@@ -270,17 +270,17 @@ function Pe({ open: n, title: l, onClose: t, dirty: o = !1, onDirtyClose: i, chi
|
|
|
270
270
|
document.body
|
|
271
271
|
);
|
|
272
272
|
}
|
|
273
|
-
function On({ open: n, title: l, message: t, kind: o = "default", confirmLabel: i, cancelLabel: s, closeLabel: r, onConfirm: a, onCancel:
|
|
273
|
+
function On({ open: n, title: l, message: t, kind: o = "default", confirmLabel: i, cancelLabel: s, closeLabel: r, onConfirm: a, onCancel: m }) {
|
|
274
274
|
const _ = o === "discard-changes";
|
|
275
275
|
return /* @__PURE__ */ e(
|
|
276
276
|
Pe,
|
|
277
277
|
{
|
|
278
278
|
open: n,
|
|
279
279
|
title: l,
|
|
280
|
-
onClose:
|
|
280
|
+
onClose: m,
|
|
281
281
|
...r === void 0 ? {} : { closeLabel: r },
|
|
282
282
|
footer: /* @__PURE__ */ u(M, { children: [
|
|
283
|
-
/* @__PURE__ */ e(le, { onClick:
|
|
283
|
+
/* @__PURE__ */ e(le, { onClick: m, children: s ?? (_ ? "Keep editing" : "Cancel") }),
|
|
284
284
|
/* @__PURE__ */ e(le, { variant: o === "default" ? "primary" : "danger", onClick: a, children: i ?? (_ ? "Discard changes" : "Confirm") })
|
|
285
285
|
] }),
|
|
286
286
|
children: o !== "default" ? /* @__PURE__ */ u("p", { className: "cms-confirm__warning", children: [
|
|
@@ -520,7 +520,7 @@ const Be = {
|
|
|
520
520
|
more: /* @__PURE__ */ e("path", { d: "M5 12h.5M12 12h.5M19 12h.5" }),
|
|
521
521
|
important: /* @__PURE__ */ e("path", { d: "M4 6h11l5 6-5 6H4l4-6-4-6Z" })
|
|
522
522
|
};
|
|
523
|
-
function
|
|
523
|
+
function L({ name: n, size: l = 20, label: t }) {
|
|
524
524
|
return /* @__PURE__ */ e(
|
|
525
525
|
"svg",
|
|
526
526
|
{
|
|
@@ -581,11 +581,11 @@ function Qe() {
|
|
|
581
581
|
return !1;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
const
|
|
584
|
+
const Te = /* @__PURE__ */ new Set();
|
|
585
585
|
function Zn({ name: n, size: l = 18 }) {
|
|
586
586
|
if (n === "") return null;
|
|
587
587
|
const t = re(n);
|
|
588
|
-
return t !== null ? /* @__PURE__ */ e(
|
|
588
|
+
return t !== null ? /* @__PURE__ */ e(L, { name: t, size: l }) : (!Te.has(n) && Qe() && (Te.add(n), console.warn(`@coolms/ui-react: no icon for the server's icon name "${n}"; its space is kept empty`)), /* @__PURE__ */ e("span", { className: "cms-icon cms-icon--blank", style: { width: l, height: l }, "aria-hidden": "true", "data-icon-name": n }));
|
|
589
589
|
}
|
|
590
590
|
const en = 'input, select, textarea, button:not([disabled]), iframe, [href], [tabindex]:not([tabindex="-1"])', nn = 60;
|
|
591
591
|
function ln(n) {
|
|
@@ -598,7 +598,7 @@ function an(n) {
|
|
|
598
598
|
return n.getClientRects().length > 0;
|
|
599
599
|
}
|
|
600
600
|
function Vn(n) {
|
|
601
|
-
const { name: l, badge: t, closeLabel: o, onClose: i, actions: s = [], moreLabel: r = "More", edit: a, editing:
|
|
601
|
+
const { name: l, badge: t, closeLabel: o, onClose: i, actions: s = [], moreLabel: r = "More", edit: a, editing: m, state: _, siblings: d, bar: h, thumbnails: c, strip: f, onZoom: p, children: g } = n, N = R(null), w = R(null), x = G(), [S, C] = E(!1), F = R(null);
|
|
602
602
|
Y(() => {
|
|
603
603
|
var V;
|
|
604
604
|
const y = document.activeElement, P = document.body.style.overflow;
|
|
@@ -608,10 +608,10 @@ function Vn(n) {
|
|
|
608
608
|
};
|
|
609
609
|
}, []);
|
|
610
610
|
const H = () => {
|
|
611
|
-
|
|
611
|
+
m != null && m.dirty ? m.onDirtyClose() : i();
|
|
612
612
|
}, ee = (y) => {
|
|
613
613
|
const P = y.touches.length === 1 ? y.touches[0] : void 0;
|
|
614
|
-
F.current = P === void 0 ||
|
|
614
|
+
F.current = P === void 0 || m !== void 0 || tn(y.target) ? null : { x: P.clientX, y: P.clientY };
|
|
615
615
|
}, j = (y) => {
|
|
616
616
|
var X, O;
|
|
617
617
|
const P = F.current, V = y.changedTouches[0];
|
|
@@ -624,7 +624,7 @@ function Vn(n) {
|
|
|
624
624
|
"div",
|
|
625
625
|
{
|
|
626
626
|
ref: N,
|
|
627
|
-
className: A("cms-viewer",
|
|
627
|
+
className: A("cms-viewer", m !== void 0 && "is-editing"),
|
|
628
628
|
role: "dialog",
|
|
629
629
|
"aria-modal": "true",
|
|
630
630
|
"aria-labelledby": x,
|
|
@@ -632,14 +632,14 @@ function Vn(n) {
|
|
|
632
632
|
onKeyDown: (y) => {
|
|
633
633
|
var P, V, D;
|
|
634
634
|
if (y.key === "Escape") {
|
|
635
|
-
if (
|
|
635
|
+
if (m !== void 0) return;
|
|
636
636
|
y.stopPropagation(), S ? C(!1) : i();
|
|
637
637
|
} else if (y.key === "Tab") {
|
|
638
638
|
const X = Array.from(((P = N.current) == null ? void 0 : P.querySelectorAll(en)) ?? []).filter(an);
|
|
639
639
|
if (X.length === 0) return;
|
|
640
640
|
const O = X[0], J = X[X.length - 1];
|
|
641
641
|
y.shiftKey && document.activeElement === O ? (y.preventDefault(), J.focus()) : !y.shiftKey && document.activeElement === J && (y.preventDefault(), O.focus());
|
|
642
|
-
} else
|
|
642
|
+
} else m === void 0 && !ln(y.target) && !y.ctrlKey && !y.metaKey && !y.altKey && (y.key === "ArrowLeft" ? (V = d == null ? void 0 : d.onPrevious) == null || V.call(d) : y.key === "ArrowRight" ? (D = d == null ? void 0 : d.onNext) == null || D.call(d) : y.key === "+" || y.key === "=" ? p == null || p("in") : y.key === "-" ? p == null || p("out") : y.key === "0" && (p == null || p("reset")));
|
|
643
643
|
},
|
|
644
644
|
children: [
|
|
645
645
|
d !== void 0 ? /* @__PURE__ */ e("span", { className: "cms-visually-hidden", role: "status", children: `${l}, ${d.position}` }) : null,
|
|
@@ -649,9 +649,9 @@ function Vn(n) {
|
|
|
649
649
|
/* @__PURE__ */ e("h2", { className: "cms-viewer__name", id: x, title: l, children: l }),
|
|
650
650
|
d !== void 0 ? /* @__PURE__ */ e("span", { className: "cms-viewer__position", children: d.position }) : null,
|
|
651
651
|
/* @__PURE__ */ e("span", { className: "cms-viewer__space" }),
|
|
652
|
-
|
|
653
|
-
/* @__PURE__ */ e("span", { className: "cms-viewer__status", role: "status", children:
|
|
654
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__button cms-viewer__button--edit", onClick:
|
|
652
|
+
m !== void 0 ? /* @__PURE__ */ u(M, { children: [
|
|
653
|
+
/* @__PURE__ */ e("span", { className: "cms-viewer__status", role: "status", children: m.status }),
|
|
654
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__button cms-viewer__button--edit", onClick: m.onDone, children: m.doneLabel })
|
|
655
655
|
] }) : /* @__PURE__ */ u(M, { children: [
|
|
656
656
|
/* @__PURE__ */ e("span", { className: "cms-viewer__actions", children: s.map((y) => /* @__PURE__ */ u("button", { type: "button", className: "cms-viewer__button", onClick: y.onSelect, children: [
|
|
657
657
|
y.icon,
|
|
@@ -662,7 +662,7 @@ function Vn(n) {
|
|
|
662
662
|
/* @__PURE__ */ e("span", { className: "cms-viewer__wide", children: a.label })
|
|
663
663
|
] }) : null,
|
|
664
664
|
s.length > 0 ? /* @__PURE__ */ u("span", { className: "cms-viewer__more", children: [
|
|
665
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__icon", "aria-label": r, "aria-expanded": S, onClick: () => C((y) => !y), children: /* @__PURE__ */ e(
|
|
665
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__icon", "aria-label": r, "aria-expanded": S, onClick: () => C((y) => !y), children: /* @__PURE__ */ e(L, { name: "more" }) }),
|
|
666
666
|
S ? /* @__PURE__ */ e("span", { className: "cms-viewer__menu", children: s.map((y) => /* @__PURE__ */ u(
|
|
667
667
|
"button",
|
|
668
668
|
{
|
|
@@ -682,21 +682,21 @@ function Vn(n) {
|
|
|
682
682
|
] })
|
|
683
683
|
] }),
|
|
684
684
|
/* @__PURE__ */ u("div", { className: "cms-viewer__body", children: [
|
|
685
|
-
c != null &&
|
|
685
|
+
c != null && m === void 0 ? /* @__PURE__ */ e("nav", { className: "cms-viewer__thumbnails", children: c }) : null,
|
|
686
686
|
/* @__PURE__ */ u("div", { className: "cms-viewer__content", onTouchStart: ee, onTouchEnd: j, children: [
|
|
687
|
-
(
|
|
688
|
-
/* @__PURE__ */ e("p", { className: "cms-viewer__conflict-text", children:
|
|
689
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__button", onClick:
|
|
690
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__button cms-viewer__button--edit", onClick:
|
|
687
|
+
(m == null ? void 0 : m.conflict) !== void 0 ? /* @__PURE__ */ u("div", { className: "cms-viewer__conflict", role: "alert", children: [
|
|
688
|
+
/* @__PURE__ */ e("p", { className: "cms-viewer__conflict-text", children: m.conflict.message }),
|
|
689
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__button", onClick: m.conflict.onOverwrite, children: m.conflict.overwriteLabel }),
|
|
690
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__button cms-viewer__button--edit", onClick: m.conflict.onKeepBoth, children: m.conflict.keepBothLabel })
|
|
691
691
|
] }) : null,
|
|
692
692
|
_ === void 0 ? g : /* @__PURE__ */ e(sn, { state: _ }),
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
693
|
+
m === void 0 && (d != null && d.onPrevious) ? /* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__side cms-viewer__side--previous", "aria-label": d.previousLabel, title: d.previousLabel, onClick: d.onPrevious, children: /* @__PURE__ */ e(z, { name: "back" }) }) : null,
|
|
694
|
+
m === void 0 && (d != null && d.onNext) ? /* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__side cms-viewer__side--next", "aria-label": d.nextLabel, title: d.nextLabel, onClick: d.onNext, children: /* @__PURE__ */ e(z, { name: "back" }) }) : null,
|
|
695
|
+
m === void 0 && d !== void 0 ? /* @__PURE__ */ e("div", { className: "cms-viewer__dots", "aria-hidden": "true", children: Array.from({ length: Math.min(d.total, 7) }, (y, P) => /* @__PURE__ */ e("i", { className: P === Math.min(d.index, 6) ? "is-current" : void 0 }, P)) }) : null
|
|
696
696
|
] })
|
|
697
697
|
] }),
|
|
698
|
-
|
|
699
|
-
|
|
698
|
+
m === void 0 && f != null ? /* @__PURE__ */ e("div", { className: "cms-viewer__strip", children: f }) : null,
|
|
699
|
+
h != null ? /* @__PURE__ */ e("footer", { className: "cms-viewer__bar", children: h }) : null
|
|
700
700
|
]
|
|
701
701
|
}
|
|
702
702
|
),
|
|
@@ -740,10 +740,10 @@ const Ne = (n, l) => `${n}
|
|
|
740
740
|
${l}`, cn = (n, l) => n === "" ? l : `${n}/${l}`, on = 48;
|
|
741
741
|
function Wn(n) {
|
|
742
742
|
var me, he;
|
|
743
|
-
const { open: l, spaces: t, list: o, disabledReason: i, budget: s, formatSize: r, labels: a, onConfirm:
|
|
743
|
+
const { open: l, spaces: t, list: o, disabledReason: i, budget: s, formatSize: r, labels: a, onConfirm: m, onCancel: _ } = n, [d, h] = E(((me = t[0]) == null ? void 0 : me.id) ?? ""), [c, f] = E(""), [p, g] = E({ status: "loading" }), [N, w] = E(0), [x, S] = E(/* @__PURE__ */ new Map()), [C, F] = E(0), [H, ee] = E(!1), j = R(null), y = G();
|
|
744
744
|
Y(() => {
|
|
745
745
|
var b;
|
|
746
|
-
l && (
|
|
746
|
+
l && (h(((b = t[0]) == null ? void 0 : b.id) ?? ""), f(""), S(/* @__PURE__ */ new Map()), ee(!1));
|
|
747
747
|
}, [l]), Y(() => {
|
|
748
748
|
if (!l || d === "") return;
|
|
749
749
|
let b = !0;
|
|
@@ -774,7 +774,7 @@ function Wn(n) {
|
|
|
774
774
|
const K = new Map(B);
|
|
775
775
|
return K.has(k) ? K.delete(k) : K.set(k, { ...b, space: d, path: c }), K;
|
|
776
776
|
});
|
|
777
|
-
}, v = (b) => f(cn(c, b.name)),
|
|
777
|
+
}, v = (b) => f(cn(c, b.name)), T = () => f(c.includes("/") ? c.slice(0, c.lastIndexOf("/")) : ""), Z = (b) => S((k) => {
|
|
778
778
|
const B = new Map(k);
|
|
779
779
|
return B.delete(b), B;
|
|
780
780
|
}), W = p.status === "ready" ? p.entries : [], $ = (b) => {
|
|
@@ -783,7 +783,7 @@ function Wn(n) {
|
|
|
783
783
|
b.preventDefault();
|
|
784
784
|
const B = W.length - 1, K = b.key === "Home" ? 0 : b.key === "End" ? B : Math.min(B, Math.max(0, C + (b.key === "ArrowDown" ? 1 : -1)));
|
|
785
785
|
F(K), K >= B - 1 && P();
|
|
786
|
-
} else b.key === "Enter" && (k == null ? void 0 : k.kind) === "folder" ? (b.preventDefault(), v(k)) : b.key === " " && (k == null ? void 0 : k.kind) === "file" ? (b.preventDefault(), oe(k)) : b.key === "Backspace" && c !== "" && (b.preventDefault(),
|
|
786
|
+
} else b.key === "Enter" && (k == null ? void 0 : k.kind) === "folder" ? (b.preventDefault(), v(k)) : b.key === " " && (k == null ? void 0 : k.kind) === "file" ? (b.preventDefault(), oe(k)) : b.key === "Backspace" && c !== "" && (b.preventDefault(), T());
|
|
787
787
|
}, q = c === "" ? [] : c.split("/"), de = ((he = t.find((b) => b.id === d)) == null ? void 0 : he.name) ?? "", ue = (b) => `${y}-entry-${String(b)}`;
|
|
788
788
|
return /* @__PURE__ */ u(
|
|
789
789
|
Pe,
|
|
@@ -801,7 +801,7 @@ function Wn(n) {
|
|
|
801
801
|
] }),
|
|
802
802
|
/* @__PURE__ */ u("div", { className: "cms-file-picker__actions", children: [
|
|
803
803
|
/* @__PURE__ */ e(le, { variant: "secondary", onClick: _, children: a.cancel }),
|
|
804
|
-
/* @__PURE__ */ e(le, { variant: "primary", disabled: D.length === 0 || J, onClick: () =>
|
|
804
|
+
/* @__PURE__ */ e(le, { variant: "primary", disabled: D.length === 0 || J, onClick: () => m(D), children: a.confirm(D.length) })
|
|
805
805
|
] })
|
|
806
806
|
] }),
|
|
807
807
|
children: [
|
|
@@ -809,11 +809,11 @@ function Wn(n) {
|
|
|
809
809
|
t.length > 1 ? /* @__PURE__ */ u("label", { className: "cms-file-picker__space", children: [
|
|
810
810
|
/* @__PURE__ */ e("span", { className: "cms-visually-hidden", children: a.space }),
|
|
811
811
|
/* @__PURE__ */ e("select", { className: "cms-input cms-select", value: d, onChange: (b) => {
|
|
812
|
-
|
|
812
|
+
h(b.target.value), f("");
|
|
813
813
|
}, children: t.map((b) => /* @__PURE__ */ e("option", { value: b.id, children: b.name }, b.id)) })
|
|
814
814
|
] }) : null,
|
|
815
815
|
/* @__PURE__ */ u("nav", { className: "cms-file-picker__path", "aria-label": a.path, children: [
|
|
816
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button", "aria-label": a.up, disabled: c === "", onClick:
|
|
816
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button", "aria-label": a.up, disabled: c === "", onClick: T, children: /* @__PURE__ */ e(L, { name: "chevron-left" }) }),
|
|
817
817
|
/* @__PURE__ */ u("ol", { children: [
|
|
818
818
|
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("button", { type: "button", className: "cms-file-picker__crumb", "aria-current": c === "" ? "location" : void 0, onClick: () => f(""), children: de }) }),
|
|
819
819
|
q.map((b, k) => {
|
|
@@ -868,8 +868,8 @@ function Wn(n) {
|
|
|
868
868
|
F(k), b.kind === "folder" ? v(b) : oe(b);
|
|
869
869
|
},
|
|
870
870
|
children: [
|
|
871
|
-
/* @__PURE__ */ e("span", { className: "cms-file-picker__tick", "aria-hidden": "true", children: B ? /* @__PURE__ */ e(
|
|
872
|
-
/* @__PURE__ */ e(
|
|
871
|
+
/* @__PURE__ */ e("span", { className: "cms-file-picker__tick", "aria-hidden": "true", children: B ? /* @__PURE__ */ e(L, { name: "check" }) : null }),
|
|
872
|
+
/* @__PURE__ */ e(L, { name: b.kind === "folder" ? "folder" : "file" }),
|
|
873
873
|
/* @__PURE__ */ u("span", { className: "cms-file-picker__text", children: [
|
|
874
874
|
/* @__PURE__ */ e("span", { className: "cms-file-picker__name", children: b.name }),
|
|
875
875
|
K !== null ? /* @__PURE__ */ e("span", { className: "cms-file-picker__reason", children: K }) : null
|
|
@@ -917,15 +917,15 @@ function jn({ title: n, scope: l, actions: t, backLink: o }) {
|
|
|
917
917
|
}
|
|
918
918
|
function qn({ tabs: n, active: l, onSelect: t, label: o }) {
|
|
919
919
|
const i = R([]), s = (r, a) => {
|
|
920
|
-
var
|
|
921
|
-
const
|
|
920
|
+
var h;
|
|
921
|
+
const m = n.length - 1, _ = r.key === "ArrowRight" ? a === m ? 0 : a + 1 : r.key === "ArrowLeft" ? a === 0 ? m : a - 1 : r.key === "Home" ? 0 : r.key === "End" ? m : null;
|
|
922
922
|
if (_ === null) return;
|
|
923
923
|
r.preventDefault();
|
|
924
924
|
const d = n[_];
|
|
925
|
-
d && (t(d.id), (
|
|
925
|
+
d && (t(d.id), (h = i.current[_]) == null || h.focus());
|
|
926
926
|
};
|
|
927
927
|
return /* @__PURE__ */ e("div", { className: "cms-tabs", role: "tablist", "aria-label": o, children: n.map((r, a) => {
|
|
928
|
-
const
|
|
928
|
+
const m = r.id === l;
|
|
929
929
|
return /* @__PURE__ */ u(
|
|
930
930
|
"button",
|
|
931
931
|
{
|
|
@@ -934,9 +934,9 @@ function qn({ tabs: n, active: l, onSelect: t, label: o }) {
|
|
|
934
934
|
},
|
|
935
935
|
type: "button",
|
|
936
936
|
role: "tab",
|
|
937
|
-
className: A("cms-tab",
|
|
938
|
-
"aria-selected":
|
|
939
|
-
tabIndex:
|
|
937
|
+
className: A("cms-tab", m && "is-active"),
|
|
938
|
+
"aria-selected": m,
|
|
939
|
+
tabIndex: m ? 0 : -1,
|
|
940
940
|
onClick: () => t(r.id),
|
|
941
941
|
onKeyDown: (_) => s(_, a),
|
|
942
942
|
children: [
|
|
@@ -972,7 +972,7 @@ function ve({ name: n, pictureUrl: l, presence: t, connection: o, deleted: i = !
|
|
|
972
972
|
"aria-label": a,
|
|
973
973
|
...o === void 0 ? {} : { title: o.label },
|
|
974
974
|
children: [
|
|
975
|
-
i ? /* @__PURE__ */ e(
|
|
975
|
+
i ? /* @__PURE__ */ e(L, { name: "user", size: Math.round(s * 0.6) }) : l ? /* @__PURE__ */ e("img", { src: l, alt: "", className: "cms-avatar__picture" }) : /* @__PURE__ */ e("span", { "aria-hidden": "true", children: dn(n) }),
|
|
976
976
|
r === null ? null : /* @__PURE__ */ e("span", { className: A("cms-avatar__presence", r), "aria-hidden": "true" })
|
|
977
977
|
]
|
|
978
978
|
}
|
|
@@ -984,25 +984,25 @@ function mn({ count: n, label: l, max: t = 99 }) {
|
|
|
984
984
|
/* @__PURE__ */ e("span", { className: "cms-visually-hidden", children: l })
|
|
985
985
|
] });
|
|
986
986
|
}
|
|
987
|
-
function Yn({ product: n, mark: l, rail: t, active: o, onNavigate: i, server: s, search: r, account: a, children:
|
|
987
|
+
function Yn({ product: n, mark: l, rail: t, active: o, onNavigate: i, server: s, search: r, account: a, children: m, railLabel: _ = "Sections" }) {
|
|
988
988
|
return /* @__PURE__ */ u("div", { className: "cms-shell", children: [
|
|
989
989
|
/* @__PURE__ */ u("nav", { className: "cms-shell__rail", "aria-label": _, children: [
|
|
990
990
|
/* @__PURE__ */ e("span", { className: "cms-shell__mark", "aria-hidden": "true", children: l }),
|
|
991
991
|
/* @__PURE__ */ e("ul", { className: "cms-shell__items", children: t.map((d) => {
|
|
992
|
-
const
|
|
992
|
+
const h = d.id === o;
|
|
993
993
|
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ u(
|
|
994
994
|
"a",
|
|
995
995
|
{
|
|
996
996
|
href: d.href,
|
|
997
|
-
className: A("cms-shell__item",
|
|
998
|
-
"aria-current":
|
|
997
|
+
className: A("cms-shell__item", h && "is-active"),
|
|
998
|
+
"aria-current": h ? "page" : void 0,
|
|
999
999
|
title: d.label,
|
|
1000
1000
|
onClick: (c) => {
|
|
1001
1001
|
i && (c.preventDefault(), i(d.id));
|
|
1002
1002
|
},
|
|
1003
1003
|
children: [
|
|
1004
1004
|
/* @__PURE__ */ u("span", { className: "cms-shell__icon", children: [
|
|
1005
|
-
/* @__PURE__ */ e(
|
|
1005
|
+
/* @__PURE__ */ e(L, { name: d.icon, size: 22 }),
|
|
1006
1006
|
d.badge ? /* @__PURE__ */ e(mn, { count: d.badge.count, label: d.badge.label }) : null
|
|
1007
1007
|
] }),
|
|
1008
1008
|
/* @__PURE__ */ e("span", { className: "cms-shell__label", children: d.label })
|
|
@@ -1017,7 +1017,7 @@ function Yn({ product: n, mark: l, rail: t, active: o, onNavigate: i, server: s,
|
|
|
1017
1017
|
r != null ? /* @__PURE__ */ e("div", { className: "cms-shell__search", children: r }) : null,
|
|
1018
1018
|
a != null ? /* @__PURE__ */ e("div", { className: "cms-shell__account", children: a }) : null
|
|
1019
1019
|
] }),
|
|
1020
|
-
/* @__PURE__ */ e("main", { className: "cms-shell__main", children:
|
|
1020
|
+
/* @__PURE__ */ e("main", { className: "cms-shell__main", children: m })
|
|
1021
1021
|
] });
|
|
1022
1022
|
}
|
|
1023
1023
|
function Gn({ label: n, placeholder: l, value: t, onChange: o, onSearch: i }) {
|
|
@@ -1030,7 +1030,7 @@ function Gn({ label: n, placeholder: l, value: t, onChange: o, onSearch: i }) {
|
|
|
1030
1030
|
s.preventDefault(), i == null || i(t);
|
|
1031
1031
|
},
|
|
1032
1032
|
children: [
|
|
1033
|
-
/* @__PURE__ */ e(
|
|
1033
|
+
/* @__PURE__ */ e(L, { name: "search", size: 18 }),
|
|
1034
1034
|
/* @__PURE__ */ e(
|
|
1035
1035
|
"input",
|
|
1036
1036
|
{
|
|
@@ -1048,15 +1048,15 @@ function Gn({ label: n, placeholder: l, value: t, onChange: o, onSearch: i }) {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
function hn({ options: n, value: l, onChange: t, label: o }) {
|
|
1050
1050
|
const i = R([]), s = (r, a) => {
|
|
1051
|
-
var
|
|
1052
|
-
const
|
|
1051
|
+
var h;
|
|
1052
|
+
const m = n.length - 1, _ = r.key === "ArrowRight" || r.key === "ArrowDown" ? a === m ? 0 : a + 1 : r.key === "ArrowLeft" || r.key === "ArrowUp" ? a === 0 ? m : a - 1 : null;
|
|
1053
1053
|
if (_ === null) return;
|
|
1054
1054
|
r.preventDefault();
|
|
1055
1055
|
const d = n[_];
|
|
1056
|
-
d && (t(d.id), (
|
|
1056
|
+
d && (t(d.id), (h = i.current[_]) == null || h.focus());
|
|
1057
1057
|
};
|
|
1058
1058
|
return /* @__PURE__ */ e("div", { className: "cms-chips", role: "radiogroup", "aria-label": o, children: n.map((r, a) => {
|
|
1059
|
-
const
|
|
1059
|
+
const m = r.id === l;
|
|
1060
1060
|
return /* @__PURE__ */ u(
|
|
1061
1061
|
"button",
|
|
1062
1062
|
{
|
|
@@ -1065,13 +1065,13 @@ function hn({ options: n, value: l, onChange: t, label: o }) {
|
|
|
1065
1065
|
},
|
|
1066
1066
|
type: "button",
|
|
1067
1067
|
role: "radio",
|
|
1068
|
-
"aria-checked":
|
|
1069
|
-
tabIndex:
|
|
1070
|
-
className: A("cms-chip",
|
|
1068
|
+
"aria-checked": m,
|
|
1069
|
+
tabIndex: m ? 0 : -1,
|
|
1070
|
+
className: A("cms-chip", m && "is-on"),
|
|
1071
1071
|
onClick: () => t(r.id),
|
|
1072
1072
|
onKeyDown: (_) => s(_, a),
|
|
1073
1073
|
children: [
|
|
1074
|
-
|
|
1074
|
+
m ? /* @__PURE__ */ e(L, { name: "check", size: 16 }) : null,
|
|
1075
1075
|
r.label
|
|
1076
1076
|
]
|
|
1077
1077
|
},
|
|
@@ -1079,7 +1079,7 @@ function hn({ options: n, value: l, onChange: t, label: o }) {
|
|
|
1079
1079
|
);
|
|
1080
1080
|
}) });
|
|
1081
1081
|
}
|
|
1082
|
-
const
|
|
1082
|
+
const Le = 16;
|
|
1083
1083
|
function fn(n, l, t) {
|
|
1084
1084
|
const o = n.map((s) => Math.min(Math.max(s.width, s.min), s.max));
|
|
1085
1085
|
let i = o.reduce((s, r) => s + r, 0) + t - l;
|
|
@@ -1090,7 +1090,7 @@ function fn(n, l, t) {
|
|
|
1090
1090
|
return o;
|
|
1091
1091
|
}
|
|
1092
1092
|
function pn({ index: n, size: l, shown: t, others: o, room: i, lastMin: s, onResize: r }) {
|
|
1093
|
-
const a = Math.max(l.min, Math.min(l.max, i > 0 ? i - o - s : l.max)),
|
|
1093
|
+
const a = Math.max(l.min, Math.min(l.max, i > 0 ? i - o - s : l.max)), m = (h) => Math.round(Math.min(Math.max(h, l.min), a)), _ = R(null), d = (h, c) => r == null ? void 0 : r(n, m(h), c);
|
|
1094
1094
|
return /* @__PURE__ */ e(
|
|
1095
1095
|
"div",
|
|
1096
1096
|
{
|
|
@@ -1103,43 +1103,43 @@ function pn({ index: n, size: l, shown: t, others: o, room: i, lastMin: s, onRes
|
|
|
1103
1103
|
"aria-valuemax": a,
|
|
1104
1104
|
className: "cms-panes__splitter",
|
|
1105
1105
|
style: { "--split-at": `var(--split-pane-end-${String(n)})` },
|
|
1106
|
-
onPointerDown: (
|
|
1106
|
+
onPointerDown: (h) => {
|
|
1107
1107
|
var c, f, p;
|
|
1108
|
-
|
|
1108
|
+
h.button > 0 || (h.preventDefault(), (f = (c = h.currentTarget).setPointerCapture) == null || f.call(c, h.pointerId), _.current = { x: h.clientX, from: t, last: t }, (p = h.currentTarget.closest(".cms-panes")) == null || p.classList.add("is-resizing"));
|
|
1109
1109
|
},
|
|
1110
|
-
onPointerMove: (
|
|
1110
|
+
onPointerMove: (h) => {
|
|
1111
1111
|
const c = _.current;
|
|
1112
|
-
c === null || !Number.isFinite(
|
|
1112
|
+
c === null || !Number.isFinite(h.clientX) || (c.last = m(c.from + h.clientX - c.x), d(c.last, !1));
|
|
1113
1113
|
},
|
|
1114
|
-
onPointerUp: (
|
|
1114
|
+
onPointerUp: (h) => {
|
|
1115
1115
|
var f;
|
|
1116
1116
|
const c = _.current;
|
|
1117
|
-
c !== null && (_.current = null, (f =
|
|
1117
|
+
c !== null && (_.current = null, (f = h.currentTarget.closest(".cms-panes")) == null || f.classList.remove("is-resizing"), d(c.last, !0));
|
|
1118
1118
|
},
|
|
1119
|
-
onPointerCancel: (
|
|
1119
|
+
onPointerCancel: (h) => {
|
|
1120
1120
|
var f;
|
|
1121
1121
|
const c = _.current;
|
|
1122
|
-
_.current = null, (f =
|
|
1122
|
+
_.current = null, (f = h.currentTarget.closest(".cms-panes")) == null || f.classList.remove("is-resizing"), c !== null && d(c.last, !0);
|
|
1123
1123
|
},
|
|
1124
1124
|
onDoubleClick: () => d(l.reset, !0),
|
|
1125
|
-
onKeyDown: (
|
|
1126
|
-
const c =
|
|
1127
|
-
c !== null && (
|
|
1125
|
+
onKeyDown: (h) => {
|
|
1126
|
+
const c = h.key === "ArrowLeft" ? t - Le : h.key === "ArrowRight" ? t + Le : h.key === "Home" ? l.min : h.key === "End" ? a : h.key === "Enter" ? l.reset : null;
|
|
1127
|
+
c !== null && (h.preventDefault(), d(c, !0));
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
);
|
|
1131
1131
|
}
|
|
1132
1132
|
function Xn({ panes: n, active: l, back: t, sizes: o, lastMin: i = 360, onResize: s }) {
|
|
1133
|
-
const r = Math.min(Math.max(l ?? n.length - 1, 0), n.length - 1), a = R(null), [
|
|
1133
|
+
const r = Math.min(Math.max(l ?? n.length - 1, 0), n.length - 1), a = R(null), [m, _] = E(0), d = (o ?? []).slice(0, n.length - 1), h = d.length === n.length - 1 && d.every((p) => p !== void 0);
|
|
1134
1134
|
xe(() => {
|
|
1135
1135
|
const p = a.current;
|
|
1136
|
-
if (p === null || !
|
|
1136
|
+
if (p === null || !h) return;
|
|
1137
1137
|
const g = () => _(p.clientWidth);
|
|
1138
1138
|
if (g(), typeof ResizeObserver > "u") return;
|
|
1139
1139
|
const N = new ResizeObserver(g);
|
|
1140
1140
|
return N.observe(p), () => N.disconnect();
|
|
1141
|
-
}, [
|
|
1142
|
-
const c =
|
|
1141
|
+
}, [h]);
|
|
1142
|
+
const c = h ? fn(d, m > 0 ? m : Number.POSITIVE_INFINITY, i) : [], f = h ? Object.fromEntries(c.flatMap((p, g) => [
|
|
1143
1143
|
[`--split-pane-${String(g)}`, `${String(p)}px`],
|
|
1144
1144
|
[`--split-pane-end-${String(g)}`, `${String(c.slice(0, g + 1).reduce((N, w) => N + w, 0))}px`]
|
|
1145
1145
|
])) : void 0;
|
|
@@ -1147,25 +1147,25 @@ function Xn({ panes: n, active: l, back: t, sizes: o, lastMin: i = 360, onResize
|
|
|
1147
1147
|
"div",
|
|
1148
1148
|
{
|
|
1149
1149
|
ref: a,
|
|
1150
|
-
className: A("cms-panes", n.length === 3 ? "cms-panes--three" : "cms-panes--two",
|
|
1150
|
+
className: A("cms-panes", n.length === 3 ? "cms-panes--three" : "cms-panes--two", h && "cms-panes--sized"),
|
|
1151
1151
|
"data-active": r,
|
|
1152
1152
|
style: f,
|
|
1153
1153
|
children: [
|
|
1154
1154
|
n.map((p, g) => /* @__PURE__ */ u("section", { className: "cms-panes__pane", "aria-label": p.label, "data-offset": r - g, children: [
|
|
1155
1155
|
g === r && t ? /* @__PURE__ */ u("a", { className: "cms-panes__back", href: t.href, children: [
|
|
1156
|
-
/* @__PURE__ */ e(
|
|
1156
|
+
/* @__PURE__ */ e(L, { name: "chevron-left", size: 18 }),
|
|
1157
1157
|
t.label
|
|
1158
1158
|
] }) : null,
|
|
1159
1159
|
p.content
|
|
1160
1160
|
] }, p.label)),
|
|
1161
|
-
|
|
1161
|
+
h ? d.map((p, g) => /* @__PURE__ */ e(
|
|
1162
1162
|
pn,
|
|
1163
1163
|
{
|
|
1164
1164
|
index: g,
|
|
1165
1165
|
size: p,
|
|
1166
1166
|
shown: c[g],
|
|
1167
1167
|
others: c.reduce((N, w, x) => x === g ? N : N + w, 0),
|
|
1168
|
-
room:
|
|
1168
|
+
room: m,
|
|
1169
1169
|
lastMin: i,
|
|
1170
1170
|
onResize: s
|
|
1171
1171
|
},
|
|
@@ -1176,8 +1176,8 @@ function Xn({ panes: n, active: l, back: t, sizes: o, lastMin: i = 360, onResize
|
|
|
1176
1176
|
);
|
|
1177
1177
|
}
|
|
1178
1178
|
const _n = { attachment: "Has an attachment", unread: "Unread" };
|
|
1179
|
-
function Jn({ from: n, subject: l, preview: t, time: o, unread: i, hasAttachment: s, selected: r, onOpen: a, labels:
|
|
1180
|
-
const _ = ce(_n,
|
|
1179
|
+
function Jn({ from: n, subject: l, preview: t, time: o, unread: i, hasAttachment: s, selected: r, onOpen: a, labels: m }) {
|
|
1180
|
+
const _ = ce(_n, m);
|
|
1181
1181
|
return /* @__PURE__ */ u(
|
|
1182
1182
|
"button",
|
|
1183
1183
|
{
|
|
@@ -1190,7 +1190,7 @@ function Jn({ from: n, subject: l, preview: t, time: o, unread: i, hasAttachment
|
|
|
1190
1190
|
/* @__PURE__ */ u("span", { className: "cms-mail-row__body", children: [
|
|
1191
1191
|
/* @__PURE__ */ u("span", { className: "cms-mail-row__line", children: [
|
|
1192
1192
|
/* @__PURE__ */ e("span", { className: "cms-mail-row__from", children: n }),
|
|
1193
|
-
s ? /* @__PURE__ */ e(
|
|
1193
|
+
s ? /* @__PURE__ */ e(L, { name: "paperclip", size: 16, label: _.attachment }) : null,
|
|
1194
1194
|
/* @__PURE__ */ e("span", { className: "cms-mail-row__time", children: o })
|
|
1195
1195
|
] }),
|
|
1196
1196
|
/* @__PURE__ */ u("span", { className: "cms-mail-row__line", children: [
|
|
@@ -1215,17 +1215,17 @@ function Qn({ direction: n, children: l, time: t, read: o, readLabel: i = "Read"
|
|
|
1215
1215
|
] })
|
|
1216
1216
|
] });
|
|
1217
1217
|
}
|
|
1218
|
-
function el({ label: n, value: l, onChange: t, onSend: o, onAttach: i, placeholder: s, variant: r = "chat", sendLabel: a = "Send", attachLabel:
|
|
1219
|
-
const
|
|
1218
|
+
function el({ label: n, value: l, onChange: t, onSend: o, onAttach: i, placeholder: s, variant: r = "chat", sendLabel: a = "Send", attachLabel: m = "Attach a file", leading: _, canSend: d }) {
|
|
1219
|
+
const h = G(), c = d ?? l.trim() !== "", f = (g) => {
|
|
1220
1220
|
g.preventDefault(), c && o();
|
|
1221
|
-
}, p = i ? /* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button cms-composer__attach", "aria-label":
|
|
1221
|
+
}, p = i ? /* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button cms-composer__attach", "aria-label": m, onClick: i, children: /* @__PURE__ */ e(L, { name: "paperclip" }) }) : null;
|
|
1222
1222
|
return /* @__PURE__ */ u("form", { className: A("cms-composer", `cms-composer--${r}`), onSubmit: f, children: [
|
|
1223
|
-
/* @__PURE__ */ e("label", { htmlFor:
|
|
1223
|
+
/* @__PURE__ */ e("label", { htmlFor: h, className: r === "reply" ? "cms-composer__title" : "cms-visually-hidden", children: n }),
|
|
1224
1224
|
r === "chat" ? p : null,
|
|
1225
1225
|
/* @__PURE__ */ e(
|
|
1226
1226
|
"textarea",
|
|
1227
1227
|
{
|
|
1228
|
-
id:
|
|
1228
|
+
id: h,
|
|
1229
1229
|
className: "cms-composer__input",
|
|
1230
1230
|
rows: r === "reply" ? 3 : 1,
|
|
1231
1231
|
placeholder: s,
|
|
@@ -1238,10 +1238,10 @@ function el({ label: n, value: l, onChange: t, onSend: o, onAttach: i, placehold
|
|
|
1238
1238
|
),
|
|
1239
1239
|
r === "reply" && _ !== void 0 ? /* @__PURE__ */ e("div", { className: "cms-composer__leading", children: _ }) : null,
|
|
1240
1240
|
r === "reply" ? p : null,
|
|
1241
|
-
r === "chat" ? /* @__PURE__ */ e("button", { type: "submit", className: "cms-composer__send-round", "aria-label": a, disabled: !c, children: /* @__PURE__ */ e(
|
|
1241
|
+
r === "chat" ? /* @__PURE__ */ e("button", { type: "submit", className: "cms-composer__send-round", "aria-label": a, disabled: !c, children: /* @__PURE__ */ e(L, { name: "send" }) }) : /* @__PURE__ */ u("button", { type: "submit", className: "cms-button cms-button--chrome cms-composer__send", disabled: !c, children: [
|
|
1242
1242
|
a,
|
|
1243
1243
|
" ",
|
|
1244
|
-
/* @__PURE__ */ e(
|
|
1244
|
+
/* @__PURE__ */ e(L, { name: "send", size: 18 })
|
|
1245
1245
|
] })
|
|
1246
1246
|
] });
|
|
1247
1247
|
}
|
|
@@ -1287,14 +1287,14 @@ function ae({ icon: n, label: l, onClick: t, tone: o = "plain", pressed: i }) {
|
|
|
1287
1287
|
"aria-pressed": i,
|
|
1288
1288
|
onClick: t,
|
|
1289
1289
|
children: [
|
|
1290
|
-
/* @__PURE__ */ e("span", { className: "cms-call-button__disc", children: /* @__PURE__ */ e(
|
|
1290
|
+
/* @__PURE__ */ e("span", { className: "cms-call-button__disc", children: /* @__PURE__ */ e(L, { name: n, size: 24 }) }),
|
|
1291
1291
|
/* @__PURE__ */ e("span", { className: "cms-call-button__label", children: l })
|
|
1292
1292
|
]
|
|
1293
1293
|
}
|
|
1294
1294
|
);
|
|
1295
1295
|
}
|
|
1296
|
-
function ll({ name: n, duration: l, connection: t, you: o, muted: i, speaker: s, onToggleMute: r, onToggleSpeaker: a, onAddPerson:
|
|
1297
|
-
const c = ce(Ee,
|
|
1296
|
+
function ll({ name: n, duration: l, connection: t, you: o, muted: i, speaker: s, onToggleMute: r, onToggleSpeaker: a, onAddPerson: m, onChat: _, onHangUp: d, labels: h }) {
|
|
1297
|
+
const c = ce(Ee, h);
|
|
1298
1298
|
return /* @__PURE__ */ u("section", { className: "cms-call-panel", "aria-label": c.callWith(n), children: [
|
|
1299
1299
|
/* @__PURE__ */ u("div", { className: "cms-call-panel__head", children: [
|
|
1300
1300
|
/* @__PURE__ */ e(ve, { name: n, size: 64 }),
|
|
@@ -1312,7 +1312,7 @@ function ll({ name: n, duration: l, connection: t, you: o, muted: i, speaker: s,
|
|
|
1312
1312
|
/* @__PURE__ */ u("div", { className: "cms-call-panel__controls", children: [
|
|
1313
1313
|
/* @__PURE__ */ e(ae, { icon: "mic", label: i ? c.unmute : c.mute, pressed: i, onClick: r }),
|
|
1314
1314
|
/* @__PURE__ */ e(ae, { icon: "speaker", label: c.speaker, pressed: s, onClick: a }),
|
|
1315
|
-
|
|
1315
|
+
m ? /* @__PURE__ */ e(ae, { icon: "user-plus", label: c.addPerson, onClick: m }) : null,
|
|
1316
1316
|
_ ? /* @__PURE__ */ e(ae, { icon: "chat", label: c.chat, onClick: _ }) : null,
|
|
1317
1317
|
/* @__PURE__ */ e(ae, { icon: "phone-off", label: c.hangUp, tone: "hang-up", onClick: d })
|
|
1318
1318
|
] })
|
|
@@ -1325,9 +1325,9 @@ function tl({ name: n, duration: l, muted: t, onToggleMute: o, onReturn: i, onHa
|
|
|
1325
1325
|
/* @__PURE__ */ e("span", { className: "cms-call-bar__name", children: a.onCallWith(n) }),
|
|
1326
1326
|
/* @__PURE__ */ e("span", { className: "cms-call-bar__time", children: l }),
|
|
1327
1327
|
/* @__PURE__ */ u("span", { className: "cms-call-bar__actions", children: [
|
|
1328
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-call-bar__icon", "aria-label": t ? a.unmute : a.mute, "aria-pressed": t, onClick: o, children: /* @__PURE__ */ e(
|
|
1328
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-call-bar__icon", "aria-label": t ? a.unmute : a.mute, "aria-pressed": t, onClick: o, children: /* @__PURE__ */ e(L, { name: "mic" }) }),
|
|
1329
1329
|
/* @__PURE__ */ e("button", { type: "button", className: "cms-button cms-button--primary", onClick: i, children: a.returnToCall }),
|
|
1330
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-call-bar__icon cms-call-bar__icon--hang-up", "aria-label": a.hangUp, onClick: s, children: /* @__PURE__ */ e(
|
|
1330
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-call-bar__icon cms-call-bar__icon--hang-up", "aria-label": a.hangUp, onClick: s, children: /* @__PURE__ */ e(L, { name: "phone-off" }) })
|
|
1331
1331
|
] })
|
|
1332
1332
|
] });
|
|
1333
1333
|
}
|
|
@@ -1342,7 +1342,7 @@ function al({ mark: n, product: l, headline: t, lead: o, features: i = [], child
|
|
|
1342
1342
|
/* @__PURE__ */ e("p", { className: "cms-signin__headline", children: t }),
|
|
1343
1343
|
/* @__PURE__ */ e("p", { className: "cms-signin__lead", children: o }),
|
|
1344
1344
|
i.length ? /* @__PURE__ */ e("ul", { className: "cms-signin__features", children: i.map((r) => /* @__PURE__ */ u("li", { children: [
|
|
1345
|
-
/* @__PURE__ */ e(
|
|
1345
|
+
/* @__PURE__ */ e(L, { name: r.icon, size: 18 }),
|
|
1346
1346
|
r.label
|
|
1347
1347
|
] }, r.label)) }) : null
|
|
1348
1348
|
] })
|
|
@@ -1363,20 +1363,20 @@ const bn = {
|
|
|
1363
1363
|
create: "Create an account"
|
|
1364
1364
|
};
|
|
1365
1365
|
function sl({ server: n, onSubmit: l, forgotHref: t, createHref: o, error: i, busy: s, labels: r }) {
|
|
1366
|
-
const a = ce(bn, r),
|
|
1366
|
+
const a = ce(bn, r), m = G(), [_, d] = E(""), [h, c] = E(""), [f, p] = E(!1);
|
|
1367
1367
|
return /* @__PURE__ */ u("form", { className: "cms-signin-form", onSubmit: (N) => {
|
|
1368
|
-
N.preventDefault(), l(_,
|
|
1369
|
-
}, "aria-describedby": i ? `${
|
|
1368
|
+
N.preventDefault(), l(_, h);
|
|
1369
|
+
}, "aria-describedby": i ? `${m}-error` : void 0, children: [
|
|
1370
1370
|
/* @__PURE__ */ e("h1", { className: "cms-signin-form__title", children: a.title }),
|
|
1371
1371
|
/* @__PURE__ */ u("p", { className: "cms-signin-form__server", children: [
|
|
1372
|
-
/* @__PURE__ */ e(
|
|
1372
|
+
/* @__PURE__ */ e(L, { name: "server", size: 18 }),
|
|
1373
1373
|
n
|
|
1374
1374
|
] }),
|
|
1375
|
-
/* @__PURE__ */ e("label", { className: "cms-signin-form__label", htmlFor: `${
|
|
1375
|
+
/* @__PURE__ */ e("label", { className: "cms-signin-form__label", htmlFor: `${m}-identifier`, children: a.identifier }),
|
|
1376
1376
|
/* @__PURE__ */ e(
|
|
1377
1377
|
"input",
|
|
1378
1378
|
{
|
|
1379
|
-
id: `${
|
|
1379
|
+
id: `${m}-identifier`,
|
|
1380
1380
|
className: "cms-signin-form__input",
|
|
1381
1381
|
type: "text",
|
|
1382
1382
|
autoComplete: "username",
|
|
@@ -1386,16 +1386,16 @@ function sl({ server: n, onSubmit: l, forgotHref: t, createHref: o, error: i, bu
|
|
|
1386
1386
|
required: !0
|
|
1387
1387
|
}
|
|
1388
1388
|
),
|
|
1389
|
-
/* @__PURE__ */ e("label", { className: "cms-signin-form__label", htmlFor: `${
|
|
1389
|
+
/* @__PURE__ */ e("label", { className: "cms-signin-form__label", htmlFor: `${m}-password`, children: a.password }),
|
|
1390
1390
|
/* @__PURE__ */ u("span", { className: "cms-signin-form__password", children: [
|
|
1391
1391
|
/* @__PURE__ */ e(
|
|
1392
1392
|
"input",
|
|
1393
1393
|
{
|
|
1394
|
-
id: `${
|
|
1394
|
+
id: `${m}-password`,
|
|
1395
1395
|
className: "cms-signin-form__input",
|
|
1396
1396
|
type: f ? "text" : "password",
|
|
1397
1397
|
autoComplete: "current-password",
|
|
1398
|
-
value:
|
|
1398
|
+
value: h,
|
|
1399
1399
|
onChange: (N) => c(N.target.value),
|
|
1400
1400
|
required: !0
|
|
1401
1401
|
}
|
|
@@ -1403,7 +1403,7 @@ function sl({ server: n, onSubmit: l, forgotHref: t, createHref: o, error: i, bu
|
|
|
1403
1403
|
/* @__PURE__ */ e("button", { type: "button", className: "cms-signin-form__show", "aria-pressed": f, onClick: () => p((N) => !N), children: f ? a.hide : a.show })
|
|
1404
1404
|
] }),
|
|
1405
1405
|
t ? /* @__PURE__ */ e("a", { className: "cms-signin-form__forgot", href: t, children: a.forgot }) : null,
|
|
1406
|
-
i ? /* @__PURE__ */ e("p", { id: `${
|
|
1406
|
+
i ? /* @__PURE__ */ e("p", { id: `${m}-error`, className: "cms-signin-form__error", role: "alert", children: i }) : null,
|
|
1407
1407
|
/* @__PURE__ */ e("button", { type: "submit", className: "cms-button cms-button--chrome cms-signin-form__submit", disabled: s, "aria-busy": s || void 0, children: a.submit }),
|
|
1408
1408
|
o ? /* @__PURE__ */ u(M, { children: [
|
|
1409
1409
|
/* @__PURE__ */ e("p", { className: "cms-signin-form__or", children: /* @__PURE__ */ e("span", { children: a.newHere }) }),
|
|
@@ -1425,22 +1425,22 @@ function gn(n, l) {
|
|
|
1425
1425
|
const s = n.current;
|
|
1426
1426
|
if (s === null) return;
|
|
1427
1427
|
let r = null, a = 0;
|
|
1428
|
-
const
|
|
1429
|
-
r = vn(
|
|
1430
|
-
}, _ = (
|
|
1428
|
+
const m = (h) => {
|
|
1429
|
+
r = vn(h.target, s) && h.touches.length === 1 ? h.touches[0].clientY : null, a = 0;
|
|
1430
|
+
}, _ = (h) => {
|
|
1431
1431
|
if (r === null || i.current === null) return;
|
|
1432
|
-
const c =
|
|
1432
|
+
const c = h.touches[0].clientY - r;
|
|
1433
1433
|
if (c <= 0) {
|
|
1434
1434
|
r = null, o(0);
|
|
1435
1435
|
return;
|
|
1436
1436
|
}
|
|
1437
|
-
|
|
1437
|
+
h.cancelable && h.preventDefault(), a = Math.min(c * 0.6, we * 1.5), o(a);
|
|
1438
1438
|
}, d = () => {
|
|
1439
|
-
var
|
|
1440
|
-
r !== null && a >= we && ((
|
|
1439
|
+
var h;
|
|
1440
|
+
r !== null && a >= we && ((h = i.current) == null || h.call(i)), r = null, a = 0, o(0);
|
|
1441
1441
|
};
|
|
1442
|
-
return s.addEventListener("touchstart",
|
|
1443
|
-
s.removeEventListener("touchstart",
|
|
1442
|
+
return s.addEventListener("touchstart", m, { passive: !0 }), s.addEventListener("touchmove", _, { passive: !1 }), s.addEventListener("touchend", d), s.addEventListener("touchcancel", d), () => {
|
|
1443
|
+
s.removeEventListener("touchstart", m), s.removeEventListener("touchmove", _), s.removeEventListener("touchend", d), s.removeEventListener("touchcancel", d);
|
|
1444
1444
|
};
|
|
1445
1445
|
}, [n]), t;
|
|
1446
1446
|
}
|
|
@@ -1448,8 +1448,8 @@ const Fe = Ue(null);
|
|
|
1448
1448
|
function Nn() {
|
|
1449
1449
|
return Ke(Fe);
|
|
1450
1450
|
}
|
|
1451
|
-
function rl({ label: n, rows: l, error: t, onRetry: o, loadingText: i = "Loading", emptyTitle: s = "Nothing here yet", emptyHint: r, selected: a, onOpen:
|
|
1452
|
-
const d = R([]),
|
|
1451
|
+
function rl({ label: n, rows: l, error: t, onRetry: o, loadingText: i = "Loading", emptyTitle: s = "Nothing here yet", emptyHint: r, selected: a, onOpen: m, onRowMenu: _ }) {
|
|
1452
|
+
const d = R([]), h = Nn();
|
|
1453
1453
|
if (t != null) return /* @__PURE__ */ e(Ge, { message: t, onRetry: o });
|
|
1454
1454
|
if (l === null) return /* @__PURE__ */ e(qe, { what: i, layout: "block" });
|
|
1455
1455
|
if (l.length === 0) return /* @__PURE__ */ e(Ye, { title: s, hint: r });
|
|
@@ -1458,7 +1458,7 @@ function rl({ label: n, rows: l, error: t, onRetry: o, loadingText: i = "Loading
|
|
|
1458
1458
|
if (f.key === "ArrowDown" || f.key === "ArrowUp")
|
|
1459
1459
|
f.preventDefault(), (N = d.current[Math.min(l.length - 1, Math.max(0, p + (f.key === "ArrowDown" ? 1 : -1)))]) == null || N.focus();
|
|
1460
1460
|
else if (f.key === "Enter")
|
|
1461
|
-
|
|
1461
|
+
m == null || m(g);
|
|
1462
1462
|
else if ((f.key === "ContextMenu" || f.shiftKey && f.key === "F10") && _) {
|
|
1463
1463
|
f.preventDefault();
|
|
1464
1464
|
const w = f.currentTarget.getBoundingClientRect();
|
|
@@ -1466,9 +1466,9 @@ function rl({ label: n, rows: l, error: t, onRetry: o, loadingText: i = "Loading
|
|
|
1466
1466
|
}
|
|
1467
1467
|
};
|
|
1468
1468
|
return /* @__PURE__ */ u(M, { children: [
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1469
|
+
h !== null && (h.distance > 0 || h.refreshing) ? /* @__PURE__ */ u("div", { className: "cms-list__pull", role: "status", style: { height: h.refreshing ? void 0 : h.distance }, "data-ready": h.distance >= we ? "" : void 0, children: [
|
|
1470
|
+
h.refreshing ? /* @__PURE__ */ e(z, { name: "spinner" }) : null,
|
|
1471
|
+
h.text != null ? /* @__PURE__ */ e("span", { className: "cms-list__pull-text", children: h.text }) : null
|
|
1472
1472
|
] }) : null,
|
|
1473
1473
|
/* @__PURE__ */ e("ul", { className: "cms-list", role: "listbox", "aria-label": n, children: l.map((f, p) => {
|
|
1474
1474
|
const g = f.id === a;
|
|
@@ -1482,7 +1482,7 @@ function rl({ label: n, rows: l, error: t, onRetry: o, loadingText: i = "Loading
|
|
|
1482
1482
|
"aria-selected": g,
|
|
1483
1483
|
tabIndex: g || a == null && p === 0 ? 0 : -1,
|
|
1484
1484
|
className: A("cms-list__row", g && "is-selected"),
|
|
1485
|
-
onClick: () =>
|
|
1485
|
+
onClick: () => m == null ? void 0 : m(f.id),
|
|
1486
1486
|
onKeyDown: (N) => c(N, p, f.id),
|
|
1487
1487
|
onContextMenu: _ ? (N) => {
|
|
1488
1488
|
N.preventDefault(), _(f.id, { x: N.clientX, y: N.clientY });
|
|
@@ -1505,7 +1505,7 @@ function rl({ label: n, rows: l, error: t, onRetry: o, loadingText: i = "Loading
|
|
|
1505
1505
|
] });
|
|
1506
1506
|
}
|
|
1507
1507
|
function He({ at: n, items: l, onClose: t, label: o = "Actions", focus: i = "first" }) {
|
|
1508
|
-
const s = R(null), r = R(null), a = G(), [
|
|
1508
|
+
const s = R(null), r = R(null), a = G(), [m, _] = E(n), d = l.filter((c) => c.offer.offered);
|
|
1509
1509
|
if (xe(() => {
|
|
1510
1510
|
if (!n) return;
|
|
1511
1511
|
const c = s.current, f = (c == null ? void 0 : c.offsetWidth) ?? 0, p = (c == null ? void 0 : c.offsetHeight) ?? 0;
|
|
@@ -1525,7 +1525,7 @@ function He({ at: n, items: l, onClose: t, label: o = "Actions", focus: i = "fir
|
|
|
1525
1525
|
document.removeEventListener("mousedown", f), (w = (N = r.current) == null ? void 0 : N.focus) == null || w.call(N);
|
|
1526
1526
|
};
|
|
1527
1527
|
}, [n, t, i]), !n || d.length === 0) return null;
|
|
1528
|
-
const
|
|
1528
|
+
const h = (c) => {
|
|
1529
1529
|
var g, N;
|
|
1530
1530
|
const f = Array.from(((g = s.current) == null ? void 0 : g.querySelectorAll('[role="menuitem"]')) ?? []), p = f.indexOf(document.activeElement);
|
|
1531
1531
|
if (c.key === "Escape" || c.key === "Tab")
|
|
@@ -1544,8 +1544,8 @@ function He({ at: n, items: l, onClose: t, label: o = "Actions", focus: i = "fir
|
|
|
1544
1544
|
className: "cms-menu",
|
|
1545
1545
|
role: "menu",
|
|
1546
1546
|
"aria-label": o,
|
|
1547
|
-
style: { left: (
|
|
1548
|
-
onKeyDown:
|
|
1547
|
+
style: { left: (m ?? n).x, top: (m ?? n).y },
|
|
1548
|
+
onKeyDown: h,
|
|
1549
1549
|
onContextMenu: (c) => c.preventDefault(),
|
|
1550
1550
|
children: d.map((c) => {
|
|
1551
1551
|
const f = c.offer.refusal !== void 0;
|
|
@@ -1590,12 +1590,12 @@ function wn(n) {
|
|
|
1590
1590
|
return [...l.entries()].sort(([t], [o]) => t - o).map(([, t]) => t);
|
|
1591
1591
|
}
|
|
1592
1592
|
function cl({ label: n, actions: l, onAction: t, status: o, moreLabel: i, leading: s }) {
|
|
1593
|
-
const r = R(null), a = R(null), [
|
|
1594
|
-
const v = r.current,
|
|
1595
|
-
if (v === null ||
|
|
1593
|
+
const r = R(null), a = R(null), [m, _] = E(De), [d, h] = E(null), [c, f] = E("first"), [p, g] = E(null), [N, w] = E(null), x = yn(l), S = wn(l), C = x.flat(), F = C.filter((v) => v.overflow === 0), H = C.filter((v) => v.overflow !== 0), ee = JSON.stringify([l.map((v) => [v.id, v.label, v.icon, v.group, v.overflow ?? null]), o ?? "", s !== void 0]), j = be(() => {
|
|
1594
|
+
const v = r.current, T = a.current;
|
|
1595
|
+
if (v === null || T === null) return;
|
|
1596
1596
|
const Z = getComputedStyle(v), W = parseFloat(Z.columnGap || "0") || 0, $ = v.clientWidth - (parseFloat(Z.paddingLeft) || 0) - (parseFloat(Z.paddingRight) || 0), q = (I) => {
|
|
1597
1597
|
var U;
|
|
1598
|
-
return ((U =
|
|
1598
|
+
return ((U = T.querySelector(I)) == null ? void 0 : U.getBoundingClientRect().width) ?? 0;
|
|
1599
1599
|
}, de = q('[data-measure="leading"]'), ue = q('[data-measure="separator"]'), me = q('[data-measure="more"]'), he = (I, U) => q(`[data-measure="${U ? "full" : "icon"}"][data-measure-action="${CSS.escape(I)}"]`), b = (I, U) => {
|
|
1600
1600
|
const Q = /* @__PURE__ */ new Set([...F.map((te) => te.id), ...U]), se = x.map((te) => te.filter((pe) => !Q.has(pe.id))).filter((te) => te.length > 0), fe = se.flat(), Re = fe.length + (se.length - 1) + (Q.size > 0 ? 1 : 0) + (de > 0 ? 1 : 0);
|
|
1601
1601
|
return de + fe.reduce((te, pe) => te + he(pe.id, !I.has(pe.id)), 0) + ue * Math.max(0, se.length - 1) + (Q.size > 0 ? me : 0) + W * Math.max(0, Re - 1);
|
|
@@ -1630,19 +1630,19 @@ function cl({ label: n, actions: l, onAction: t, status: o, moreLabel: i, leadin
|
|
|
1630
1630
|
xe(j, [j]), Y(() => {
|
|
1631
1631
|
const v = r.current;
|
|
1632
1632
|
if (v === null || typeof ResizeObserver > "u") return;
|
|
1633
|
-
const
|
|
1634
|
-
return
|
|
1633
|
+
const T = new ResizeObserver(() => j());
|
|
1634
|
+
return T.observe(v), () => T.disconnect();
|
|
1635
1635
|
}, [j]);
|
|
1636
|
-
const y = /* @__PURE__ */ new Set([...F.map((v) => v.id), ...
|
|
1636
|
+
const y = /* @__PURE__ */ new Set([...F.map((v) => v.id), ...m.hidden]), V = x.map((v) => v.filter((T) => !y.has(T.id))).filter((v) => v.length > 0).flat(), D = [
|
|
1637
1637
|
...F,
|
|
1638
|
-
...S.flat().map((v) => C.find((
|
|
1638
|
+
...S.flat().map((v) => C.find((T) => T.id === v)).filter((v) => v !== void 0 && m.hidden.has(v.id)),
|
|
1639
1639
|
// The pinned that a row too narrow for them sent behind ..., in the row's order.
|
|
1640
|
-
...H.filter((v) =>
|
|
1641
|
-
], X = new Set(H.filter((v) => !S.some((
|
|
1640
|
+
...H.filter((v) => m.hidden.has(v.id) && !S.some((T) => T.includes(v.id)))
|
|
1641
|
+
], X = new Set(H.filter((v) => !S.some((T) => T.includes(v.id))).map((v) => v.id)), O = [...V.map((v) => v.id), ...D.length > 0 ? ["more"] : []], J = p !== null && O.includes(p) ? p : O[0] ?? null, ie = (v) => {
|
|
1642
1642
|
var $, q;
|
|
1643
|
-
const
|
|
1643
|
+
const T = O.indexOf(J ?? "");
|
|
1644
1644
|
let Z = null;
|
|
1645
|
-
if (v.key === "ArrowRight" ? Z = Math.min(O.length - 1,
|
|
1645
|
+
if (v.key === "ArrowRight" ? Z = Math.min(O.length - 1, T + 1) : v.key === "ArrowLeft" ? Z = Math.max(0, T - 1) : v.key === "Home" ? Z = 0 : v.key === "End" ? Z = O.length - 1 : v.key === "Escape" && w(J), Z === null) return;
|
|
1646
1646
|
v.preventDefault();
|
|
1647
1647
|
const W = O[Z] ?? null;
|
|
1648
1648
|
g(W), (q = ($ = r.current) == null ? void 0 : $.querySelector(`[data-stop="${CSS.escape(W ?? "")}"]`)) == null || q.focus();
|
|
@@ -1666,21 +1666,21 @@ function cl({ label: n, actions: l, onAction: t, status: o, moreLabel: i, leadin
|
|
|
1666
1666
|
"aria-label": n,
|
|
1667
1667
|
className: A(
|
|
1668
1668
|
"cms-pane-toolbar",
|
|
1669
|
-
H.length > 0 &&
|
|
1670
|
-
|
|
1669
|
+
H.length > 0 && m.bare.size >= H.length && "cms-pane-toolbar--labels-hidden",
|
|
1670
|
+
m.bare.size > 0 && m.bare.size < H.length && "cms-pane-toolbar--labels-partly-hidden"
|
|
1671
1671
|
),
|
|
1672
1672
|
onKeyDown: ie,
|
|
1673
1673
|
children: [
|
|
1674
1674
|
s !== void 0 ? /* @__PURE__ */ e("div", { className: "cms-pane-toolbar__leading", children: s }) : null,
|
|
1675
|
-
x.map((v,
|
|
1676
|
-
const Z = v.filter(($) => !y.has($.id)), W = x.slice(0,
|
|
1675
|
+
x.map((v, T) => {
|
|
1676
|
+
const Z = v.filter(($) => !y.has($.id)), W = x.slice(0, T).some(($) => $.some((q) => !y.has(q.id)));
|
|
1677
1677
|
return /* @__PURE__ */ u("div", { className: "cms-pane-toolbar__group-wrap", children: [
|
|
1678
1678
|
Z.length > 0 && W ? /* @__PURE__ */ e("span", { className: "cms-pane-toolbar__separator", role: "separator", "aria-orientation": "vertical" }) : null,
|
|
1679
1679
|
/* @__PURE__ */ e("div", { className: "cms-pane-toolbar__group", hidden: Z.length === 0, children: v.map(($) => /* @__PURE__ */ e(
|
|
1680
1680
|
kn,
|
|
1681
1681
|
{
|
|
1682
1682
|
action: $,
|
|
1683
|
-
labels: !
|
|
1683
|
+
labels: !m.bare.has($.id),
|
|
1684
1684
|
overflowed: y.has($.id),
|
|
1685
1685
|
pinned: X.has($.id),
|
|
1686
1686
|
tabbable: J === $.id,
|
|
@@ -1692,7 +1692,7 @@ function cl({ label: n, actions: l, onAction: t, status: o, moreLabel: i, leadin
|
|
|
1692
1692
|
},
|
|
1693
1693
|
$.id
|
|
1694
1694
|
)) })
|
|
1695
|
-
] },
|
|
1695
|
+
] }, T);
|
|
1696
1696
|
}),
|
|
1697
1697
|
D.length > 0 ? /* @__PURE__ */ e(
|
|
1698
1698
|
"button",
|
|
@@ -1707,25 +1707,25 @@ function cl({ label: n, actions: l, onAction: t, status: o, moreLabel: i, leadin
|
|
|
1707
1707
|
tabIndex: J === "more" ? 0 : -1,
|
|
1708
1708
|
onFocus: () => g("more"),
|
|
1709
1709
|
onClick: (v) => {
|
|
1710
|
-
const
|
|
1711
|
-
f("first"),
|
|
1710
|
+
const T = v.currentTarget.getBoundingClientRect();
|
|
1711
|
+
f("first"), h(d === null ? { x: T.left, y: T.bottom } : null);
|
|
1712
1712
|
},
|
|
1713
1713
|
onKeyDown: (v) => {
|
|
1714
1714
|
if (v.key === "ArrowDown" || v.key === "ArrowUp") {
|
|
1715
1715
|
v.preventDefault(), v.stopPropagation();
|
|
1716
|
-
const
|
|
1717
|
-
f(v.key === "ArrowUp" ? "last" : "first"),
|
|
1716
|
+
const T = v.currentTarget.getBoundingClientRect();
|
|
1717
|
+
f(v.key === "ArrowUp" ? "last" : "first"), h({ x: T.left, y: T.bottom });
|
|
1718
1718
|
}
|
|
1719
1719
|
},
|
|
1720
|
-
children: /* @__PURE__ */ e(
|
|
1720
|
+
children: /* @__PURE__ */ e(L, { name: "more" })
|
|
1721
1721
|
}
|
|
1722
1722
|
) : null,
|
|
1723
1723
|
o !== void 0 ? /* @__PURE__ */ e("span", { className: "cms-pane-toolbar__status", title: o, children: o }) : null,
|
|
1724
|
-
/* @__PURE__ */ e(He, { at: d, items: oe, onClose: () =>
|
|
1724
|
+
/* @__PURE__ */ e(He, { at: d, items: oe, onClose: () => h(null), label: i, focus: c }),
|
|
1725
1725
|
/* @__PURE__ */ u("div", { ref: a, className: "cms-pane-toolbar__measure", "aria-hidden": "true", children: [
|
|
1726
1726
|
s !== void 0 ? /* @__PURE__ */ e("div", { "data-measure": "leading", children: s }) : null,
|
|
1727
1727
|
/* @__PURE__ */ e("span", { "data-measure": "separator", className: "cms-pane-toolbar__separator" }),
|
|
1728
|
-
/* @__PURE__ */ e("span", { "data-measure": "more", className: "cms-icon-button cms-pane-toolbar__more", children: /* @__PURE__ */ e(
|
|
1728
|
+
/* @__PURE__ */ e("span", { "data-measure": "more", className: "cms-icon-button cms-pane-toolbar__more", children: /* @__PURE__ */ e(L, { name: "more" }) }),
|
|
1729
1729
|
C.map((v) => /* @__PURE__ */ u("span", { children: [
|
|
1730
1730
|
/* @__PURE__ */ u("span", { "data-measure": "full", "data-measure-action": v.id, className: "cms-pane-toolbar__action", children: [
|
|
1731
1731
|
/* @__PURE__ */ e(_e, { name: v.icon }),
|
|
@@ -1739,7 +1739,7 @@ function cl({ label: n, actions: l, onAction: t, status: o, moreLabel: i, leadin
|
|
|
1739
1739
|
);
|
|
1740
1740
|
}
|
|
1741
1741
|
function kn({ action: n, labels: l, overflowed: t, pinned: o, tabbable: i, tipOff: s, onChoose: r, onFocus: a }) {
|
|
1742
|
-
const [
|
|
1742
|
+
const [m, _] = E(!1);
|
|
1743
1743
|
Y(() => {
|
|
1744
1744
|
if (!n.busy) {
|
|
1745
1745
|
_(!1);
|
|
@@ -1748,12 +1748,12 @@ function kn({ action: n, labels: l, overflowed: t, pinned: o, tabbable: i, tipOf
|
|
|
1748
1748
|
const w = setTimeout(() => _(!0), ye);
|
|
1749
1749
|
return () => clearTimeout(w);
|
|
1750
1750
|
}, [n.busy]);
|
|
1751
|
-
const d = re(n.icon) === null,
|
|
1751
|
+
const d = re(n.icon) === null, h = l || d, c = n.disabled && n.reason ? n.reason : null, f = c ?? (h ? null : n.label), p = G(), [g, N] = E(!1);
|
|
1752
1752
|
return /* @__PURE__ */ u(
|
|
1753
1753
|
"button",
|
|
1754
1754
|
{
|
|
1755
1755
|
type: "button",
|
|
1756
|
-
className: A("cms-pane-toolbar__action", !
|
|
1756
|
+
className: A("cms-pane-toolbar__action", !h && "cms-pane-toolbar__action--bare", d && "cms-pane-toolbar__action--text", n.danger && "is-danger"),
|
|
1757
1757
|
"data-action": n.id,
|
|
1758
1758
|
"data-stop": n.id,
|
|
1759
1759
|
...t ? { "data-overflowed": "" } : {},
|
|
@@ -1774,8 +1774,8 @@ function kn({ action: n, labels: l, overflowed: t, pinned: o, tabbable: i, tipOf
|
|
|
1774
1774
|
c !== null ? N(!0) : !n.disabled && !n.busy && r();
|
|
1775
1775
|
},
|
|
1776
1776
|
children: [
|
|
1777
|
-
|
|
1778
|
-
|
|
1777
|
+
m ? /* @__PURE__ */ e(z, { name: "spinner" }) : /* @__PURE__ */ e(_e, { name: n.icon }),
|
|
1778
|
+
h ? /* @__PURE__ */ e("span", { className: "cms-pane-toolbar__label", "aria-hidden": "true", children: n.label }) : null,
|
|
1779
1779
|
c !== null || f !== null && !s ? /* @__PURE__ */ e("span", { className: "cms-pane-toolbar__tip", role: "tooltip", id: p, children: f }) : null
|
|
1780
1780
|
]
|
|
1781
1781
|
}
|
|
@@ -1783,11 +1783,11 @@ function kn({ action: n, labels: l, overflowed: t, pinned: o, tabbable: i, tipOf
|
|
|
1783
1783
|
}
|
|
1784
1784
|
function _e({ name: n }) {
|
|
1785
1785
|
const l = re(n);
|
|
1786
|
-
return l === null ? null : /* @__PURE__ */ e(
|
|
1786
|
+
return l === null ? null : /* @__PURE__ */ e(L, { name: l, size: 18 });
|
|
1787
1787
|
}
|
|
1788
|
-
function il({ title: n, body: l = null, time: t = null, unread: o, unreadLabel: i, expandLabel: s, collapseLabel: r, action: a = null, onRead:
|
|
1789
|
-
const [d,
|
|
1790
|
-
o &&
|
|
1788
|
+
function il({ title: n, body: l = null, time: t = null, unread: o, unreadLabel: i, expandLabel: s, collapseLabel: r, action: a = null, onRead: m, leading: _ }) {
|
|
1789
|
+
const [d, h] = E(!1), c = G(), f = () => {
|
|
1790
|
+
o && m();
|
|
1791
1791
|
}, p = (a == null ? void 0 : a.presentation) === "row" && a.onAction !== void 0, g = (a == null ? void 0 : a.presentation) === "button" && a.onAction !== void 0 ? a : null, N = () => {
|
|
1792
1792
|
var w;
|
|
1793
1793
|
f(), p && ((w = a.onAction) == null || w.call(a));
|
|
@@ -1833,9 +1833,9 @@ function il({ title: n, body: l = null, time: t = null, unread: o, unreadLabel:
|
|
|
1833
1833
|
"aria-label": d ? r : s,
|
|
1834
1834
|
title: d ? r : s,
|
|
1835
1835
|
onClick: () => {
|
|
1836
|
-
d || f(),
|
|
1836
|
+
d || f(), h((w) => !w);
|
|
1837
1837
|
},
|
|
1838
|
-
children: /* @__PURE__ */ e(
|
|
1838
|
+
children: /* @__PURE__ */ e(L, { name: "chevron-down", size: 18 })
|
|
1839
1839
|
}
|
|
1840
1840
|
) : null,
|
|
1841
1841
|
g !== null ? /* @__PURE__ */ e(
|
|
@@ -1892,14 +1892,14 @@ function ul() {
|
|
|
1892
1892
|
function ml(n) {
|
|
1893
1893
|
const [l, t] = E(void 0), [o, i] = E(void 0), [s, r] = E(!0), a = R(n);
|
|
1894
1894
|
a.current = n;
|
|
1895
|
-
const
|
|
1896
|
-
const d = ++
|
|
1895
|
+
const m = R(0), _ = be(() => {
|
|
1896
|
+
const d = ++m.current;
|
|
1897
1897
|
r(!0), a.current().then(
|
|
1898
|
-
(
|
|
1899
|
-
d ===
|
|
1898
|
+
(h) => {
|
|
1899
|
+
d === m.current && (t(h), i(void 0), r(!1));
|
|
1900
1900
|
},
|
|
1901
|
-
(
|
|
1902
|
-
d ===
|
|
1901
|
+
(h) => {
|
|
1902
|
+
d === m.current && (i(h), r(!1));
|
|
1903
1903
|
}
|
|
1904
1904
|
);
|
|
1905
1905
|
}, []);
|
|
@@ -1926,7 +1926,7 @@ function En(n, l) {
|
|
|
1926
1926
|
function fl(n) {
|
|
1927
1927
|
return n.problemType !== void 0 && n.problemType.endsWith(Sn) ? !0 : n.minimumVersion !== void 0 && En(n.version, n.minimumVersion);
|
|
1928
1928
|
}
|
|
1929
|
-
const Ie = 4, An = 48,
|
|
1929
|
+
const Ie = 4, An = 48, Tn = 800, Ln = /* @__PURE__ */ new Set(["ArrowDown", "ArrowUp", "PageDown", "PageUp", "Home", "End", " "]);
|
|
1930
1930
|
function Dn(n, l) {
|
|
1931
1931
|
const [t, o] = E(!1);
|
|
1932
1932
|
return Y(() => {
|
|
@@ -1936,33 +1936,33 @@ function Dn(n, l) {
|
|
|
1936
1936
|
return;
|
|
1937
1937
|
}
|
|
1938
1938
|
const s = /* @__PURE__ */ new WeakMap();
|
|
1939
|
-
let r = Number.NEGATIVE_INFINITY;
|
|
1940
|
-
const
|
|
1941
|
-
r = performance.now();
|
|
1942
|
-
},
|
|
1943
|
-
const
|
|
1944
|
-
!(
|
|
1945
|
-
},
|
|
1946
|
-
const
|
|
1947
|
-
if (!(
|
|
1948
|
-
const
|
|
1949
|
-
if (s.set(
|
|
1939
|
+
let r = Number.NEGATIVE_INFINITY, a = null;
|
|
1940
|
+
const m = (c) => {
|
|
1941
|
+
r = performance.now(), a = c.target;
|
|
1942
|
+
}, _ = (c) => {
|
|
1943
|
+
const f = c.target;
|
|
1944
|
+
!(f instanceof HTMLElement && (f.isContentEditable || f.closest("input, textarea, select") !== null)) && Ln.has(c.key) && m(c);
|
|
1945
|
+
}, d = (c) => {
|
|
1946
|
+
const f = c.target;
|
|
1947
|
+
if (!(f instanceof HTMLElement)) return;
|
|
1948
|
+
const p = f.scrollTop, g = s.get(f) ?? 0;
|
|
1949
|
+
if (s.set(f, p), p <= 0) {
|
|
1950
1950
|
o(!1);
|
|
1951
1951
|
return;
|
|
1952
1952
|
}
|
|
1953
|
-
performance.now() - r >
|
|
1954
|
-
},
|
|
1955
|
-
for (const [
|
|
1956
|
-
return i.addEventListener("scroll",
|
|
1957
|
-
for (const [
|
|
1958
|
-
i.removeEventListener("scroll",
|
|
1953
|
+
performance.now() - r > Tn || !(a === i || a === document.body || a instanceof Node && f.contains(a)) || (p < g - Ie ? o(!1) : p > g + Ie && p > An && o(!0));
|
|
1954
|
+
}, h = [["wheel", m], ["touchmove", m], ["pointerdown", m], ["keydown", _]];
|
|
1955
|
+
for (const [c, f] of h) i.addEventListener(c, f, { capture: !0, passive: !0 });
|
|
1956
|
+
return i.addEventListener("scroll", d, { capture: !0, passive: !0 }), () => {
|
|
1957
|
+
for (const [c, f] of h) i.removeEventListener(c, f, { capture: !0 });
|
|
1958
|
+
i.removeEventListener("scroll", d, { capture: !0 });
|
|
1959
1959
|
};
|
|
1960
1960
|
}, [n, l]), [t, o];
|
|
1961
1961
|
}
|
|
1962
|
-
function pl({ title: n, back: l, navigation: t, search: o, searching: i, globals: s, filters: r, primary: a, onRefresh:
|
|
1963
|
-
const c = R(null), f = R(null), [p, g] = E(!1), [N, w] = E(null), S = gn(f,
|
|
1964
|
-
p || (g(!0),
|
|
1965
|
-
}), C =
|
|
1962
|
+
function pl({ title: n, back: l, navigation: t, search: o, searching: i, globals: s, filters: r, primary: a, onRefresh: m, pullText: _, barHidden: d, children: h }) {
|
|
1963
|
+
const c = R(null), f = R(null), [p, g] = E(!1), [N, w] = E(null), S = gn(f, m === void 0 ? null : () => {
|
|
1964
|
+
p || (g(!0), m().finally(() => g(!1)));
|
|
1965
|
+
}), C = m === void 0 ? null : { distance: S, refreshing: p, text: _ ?? null }, F = i !== void 0 || S > 0 || p, [H, ee] = Dn(c, d === void 0 && !F), j = !F && (d ?? H);
|
|
1966
1966
|
return /* @__PURE__ */ u(
|
|
1967
1967
|
"div",
|
|
1968
1968
|
{
|
|
@@ -1974,24 +1974,24 @@ function pl({ title: n, back: l, navigation: t, search: o, searching: i, globals
|
|
|
1974
1974
|
},
|
|
1975
1975
|
children: [
|
|
1976
1976
|
i !== void 0 ? /* @__PURE__ */ u("header", { className: "cms-screen__bar cms-screen__bar--searching", children: [
|
|
1977
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button cms-screen__icon", "aria-label": i.closeLabel, title: i.closeLabel, onClick: i.onClose, children: /* @__PURE__ */ e(
|
|
1977
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button cms-screen__icon", "aria-label": i.closeLabel, title: i.closeLabel, onClick: i.onClose, children: /* @__PURE__ */ e(L, { name: "chevron-left" }) }),
|
|
1978
1978
|
/* @__PURE__ */ e("div", { className: "cms-screen__search", children: i.field })
|
|
1979
1979
|
] }) : /* @__PURE__ */ u("header", { className: "cms-screen__bar", children: [
|
|
1980
1980
|
/* @__PURE__ */ e("div", { className: "cms-screen__leading", children: l !== void 0 ? l.href !== void 0 ? /* @__PURE__ */ u("a", { className: "cms-screen__back", href: l.href, onClick: l.onBack, children: [
|
|
1981
|
-
/* @__PURE__ */ e(
|
|
1981
|
+
/* @__PURE__ */ e(L, { name: "chevron-left" }),
|
|
1982
1982
|
/* @__PURE__ */ e("span", { className: "cms-screen__back-name", children: l.label })
|
|
1983
1983
|
] }) : /* @__PURE__ */ u("button", { type: "button", className: "cms-screen__back", onClick: l.onBack, children: [
|
|
1984
|
-
/* @__PURE__ */ e(
|
|
1984
|
+
/* @__PURE__ */ e(L, { name: "chevron-left" }),
|
|
1985
1985
|
/* @__PURE__ */ e("span", { className: "cms-screen__back-name", children: l.label })
|
|
1986
1986
|
] }) : t }),
|
|
1987
1987
|
/* @__PURE__ */ e("h1", { className: "cms-screen__title", title: n, children: n }),
|
|
1988
1988
|
/* @__PURE__ */ u("div", { className: "cms-screen__trailing", children: [
|
|
1989
|
-
o !== void 0 ? /* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button cms-screen__icon", "aria-label": o.label, title: o.label, onClick: o.onOpen, children: /* @__PURE__ */ e(
|
|
1989
|
+
o !== void 0 ? /* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button cms-screen__icon", "aria-label": o.label, title: o.label, onClick: o.onOpen, children: /* @__PURE__ */ e(L, { name: "search" }) }) : null,
|
|
1990
1990
|
s
|
|
1991
1991
|
] })
|
|
1992
1992
|
] }),
|
|
1993
1993
|
r !== void 0 ? /* @__PURE__ */ e("div", { className: "cms-screen__filters", children: /* @__PURE__ */ e(hn, { label: r.label, options: r.options, value: r.selected, onChange: r.onSelect }) }) : null,
|
|
1994
|
-
/* @__PURE__ */ e("div", { ref: f, className: "cms-screen__content", "data-pulling": S > 0 ? "" : void 0, "data-refreshing": p ? "" : void 0, children: /* @__PURE__ */ e(Fe.Provider, { value: C, children:
|
|
1994
|
+
/* @__PURE__ */ e("div", { ref: f, className: "cms-screen__content", "data-pulling": S > 0 ? "" : void 0, "data-refreshing": p ? "" : void 0, children: /* @__PURE__ */ e(Fe.Provider, { value: C, children: h }) }),
|
|
1995
1995
|
a !== void 0 ? /* @__PURE__ */ e(
|
|
1996
1996
|
"button",
|
|
1997
1997
|
{
|
|
@@ -2007,7 +2007,7 @@ function pl({ title: n, back: l, navigation: t, search: o, searching: i, globals
|
|
|
2007
2007
|
} else
|
|
2008
2008
|
a.onPress();
|
|
2009
2009
|
},
|
|
2010
|
-
children: /* @__PURE__ */ e(
|
|
2010
|
+
children: /* @__PURE__ */ e(L, { name: a.icon, size: 24 })
|
|
2011
2011
|
}
|
|
2012
2012
|
) : null,
|
|
2013
2013
|
a !== void 0 && "menu" in a ? /* @__PURE__ */ e(He, { at: N, items: a.menu, onClose: () => w(null), label: a.label }) : null
|
|
@@ -2036,7 +2036,7 @@ export {
|
|
|
2036
2036
|
Vn as FileViewer,
|
|
2037
2037
|
hn as FilterChips,
|
|
2038
2038
|
zn as ICON_NAMES,
|
|
2039
|
-
|
|
2039
|
+
L as Icon,
|
|
2040
2040
|
nl as IncomingCall,
|
|
2041
2041
|
rl as List,
|
|
2042
2042
|
qe as Loading,
|
package/package.json
CHANGED