@coolms/ui-react 0.1.0-alpha.30 → 0.1.0-alpha.31
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 +17 -0
- package/design-tokens.lock.json +4 -4
- package/dist/components/Button.d.ts +6 -3
- package/dist/components/Icon.d.ts +1 -1
- package/dist/components/PaneToolbar.d.ts +21 -1
- package/dist/components/ScreenShell.d.ts +1 -1
- package/dist/components/SectionHeader.d.ts +3 -2
- package/dist/components/Splitter.d.ts +38 -0
- package/dist/components/Workspace.d.ts +18 -12
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1317 -1251
- package/kit.contract.json +3 -2
- package/package.json +1 -1
- package/src/kit.css +59 -47
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { useId as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
function
|
|
1
|
+
import { jsx as e, jsxs as c, Fragment as E } from "react/jsx-runtime";
|
|
2
|
+
import { useId as G, useState as A, useRef as H, useEffect as Y, useCallback as we, useMemo as je, useContext as qe, createContext as Ye, useLayoutEffect as fe } from "react";
|
|
3
|
+
import { createPortal as De } from "react-dom";
|
|
4
|
+
function be(n, l) {
|
|
5
5
|
const t = { ...n };
|
|
6
|
-
for (const
|
|
7
|
-
const
|
|
8
|
-
|
|
6
|
+
for (const i of Object.keys(l ?? {})) {
|
|
7
|
+
const o = l == null ? void 0 : l[i];
|
|
8
|
+
o !== void 0 && (t[i] = o);
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function $(...n) {
|
|
13
13
|
return n.filter(Boolean).join(" ");
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function V({ name: n }) {
|
|
16
16
|
const l = { width: 16, height: 16, viewBox: "0 0 16 16", "aria-hidden": !0, focusable: !1 };
|
|
17
17
|
switch (n) {
|
|
18
18
|
case "lock":
|
|
@@ -31,430 +31,430 @@ function U({ name: n }) {
|
|
|
31
31
|
return /* @__PURE__ */ e("svg", { ...l, className: "cms-glyph", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M8 1a7 7 0 1 1 0 14A7 7 0 0 1 8 1Zm0 5.5a1 1 0 0 0-1 1V11a1 1 0 1 0 2 0V7.5a1 1 0 0 0-1-1ZM8 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z" }) });
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function se({
|
|
35
35
|
variant: n = "secondary",
|
|
36
36
|
busy: l = !1,
|
|
37
37
|
busyLabel: t,
|
|
38
|
-
locked:
|
|
39
|
-
lockedReason:
|
|
40
|
-
icon:
|
|
41
|
-
disabled:
|
|
42
|
-
className:
|
|
43
|
-
children:
|
|
44
|
-
type:
|
|
45
|
-
title:
|
|
46
|
-
...
|
|
38
|
+
locked: i = !1,
|
|
39
|
+
lockedReason: o,
|
|
40
|
+
icon: s,
|
|
41
|
+
disabled: d,
|
|
42
|
+
className: a,
|
|
43
|
+
children: m,
|
|
44
|
+
type: v = "button",
|
|
45
|
+
title: u,
|
|
46
|
+
...f
|
|
47
47
|
}) {
|
|
48
|
-
const
|
|
49
|
-
return /* @__PURE__ */
|
|
48
|
+
const r = !!d || l;
|
|
49
|
+
return /* @__PURE__ */ c(
|
|
50
50
|
"button",
|
|
51
51
|
{
|
|
52
|
-
...
|
|
53
|
-
type:
|
|
54
|
-
className:
|
|
55
|
-
disabled:
|
|
52
|
+
...f,
|
|
53
|
+
type: v,
|
|
54
|
+
className: $("cms-button", `cms-button--${n}`, l && "is-busy", i && "is-locked", a),
|
|
55
|
+
disabled: r,
|
|
56
56
|
"aria-busy": l || void 0,
|
|
57
|
-
title:
|
|
57
|
+
title: i ? o ?? u : u,
|
|
58
58
|
children: [
|
|
59
|
-
l ? /* @__PURE__ */ e(
|
|
60
|
-
/* @__PURE__ */ e("span", { className: "cms-button__label", children: l && t !== void 0 ? t :
|
|
61
|
-
|
|
59
|
+
l ? /* @__PURE__ */ e(V, { name: "spinner" }) : i ? /* @__PURE__ */ e(V, { name: "lock" }) : s,
|
|
60
|
+
/* @__PURE__ */ e("span", { className: "cms-button__label", children: l && t !== void 0 ? t : m }),
|
|
61
|
+
i && o ? /* @__PURE__ */ c("span", { className: "cms-visually-hidden", children: [
|
|
62
62
|
", ",
|
|
63
|
-
|
|
63
|
+
o
|
|
64
64
|
] }) : null
|
|
65
65
|
]
|
|
66
66
|
}
|
|
67
67
|
);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
return /* @__PURE__ */
|
|
69
|
+
function Le({ id: n, label: l, help: t, error: i, pinned: o, children: s }) {
|
|
70
|
+
return /* @__PURE__ */ c("div", { className: $("cms-field", i != null && "is-invalid"), children: [
|
|
71
71
|
/* @__PURE__ */ e("label", { className: "cms-field__label", htmlFor: n, children: l }),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/* @__PURE__ */ e(
|
|
72
|
+
s,
|
|
73
|
+
o != null ? /* @__PURE__ */ c("p", { className: "cms-field__pinned", id: `${n}-pinned`, children: [
|
|
74
|
+
/* @__PURE__ */ e(V, { name: "lock" }),
|
|
75
75
|
" ",
|
|
76
|
-
|
|
76
|
+
o
|
|
77
77
|
] }) : null,
|
|
78
|
-
|
|
78
|
+
i != null ? /* @__PURE__ */ e("p", { className: "cms-field__error", id: `${n}-error`, role: "alert", children: i }) : null,
|
|
79
79
|
t != null ? /* @__PURE__ */ e("p", { className: "cms-field__help", id: `${n}-help`, children: t }) : null
|
|
80
80
|
] });
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function $e(n, l) {
|
|
83
83
|
const t = [l.error != null && `${n}-error`, l.pinned != null && `${n}-pinned`, l.help != null && `${n}-help`].filter(Boolean).join(" ");
|
|
84
84
|
return t === "" ? void 0 : t;
|
|
85
85
|
}
|
|
86
|
-
const
|
|
87
|
-
function
|
|
88
|
-
const
|
|
89
|
-
const
|
|
90
|
-
return
|
|
91
|
-
},
|
|
86
|
+
const Ge = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2})(?::(\d{2}))?)?$/, Xe = /^(\d{2}):(\d{2})(?::(\d{2}))?$/;
|
|
87
|
+
function Je(n, l, t) {
|
|
88
|
+
const i = (s, d, a, m = 0, v = 0, u = 0) => {
|
|
89
|
+
const f = new Date(Date.UTC(s, d - 1, a, m, v, u));
|
|
90
|
+
return f.setUTCFullYear(s), f.getUTCFullYear() === s && f.getUTCMonth() === d - 1 && f.getUTCDate() === a && f.getUTCHours() === m && f.getUTCMinutes() === v && f.getUTCSeconds() === u ? f : null;
|
|
91
|
+
}, o = (s) => ({ hour: Number(s[1]), minute: Number(s[2]), second: Number(s[3] ?? 0) });
|
|
92
92
|
try {
|
|
93
93
|
if (n === "time") {
|
|
94
|
-
const
|
|
95
|
-
if (
|
|
96
|
-
const
|
|
97
|
-
return
|
|
94
|
+
const d = l.match(Xe);
|
|
95
|
+
if (d === null) return l;
|
|
96
|
+
const a = o(d), m = i(2e3, 1, 1, a.hour, a.minute, a.second);
|
|
97
|
+
return m === null ? l : new Intl.DateTimeFormat(t, { timeStyle: d[3] === void 0 ? "short" : "medium", timeZone: "UTC" }).format(m);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
101
|
-
if (n === "date" &&
|
|
102
|
-
const
|
|
103
|
-
return
|
|
99
|
+
const s = l.match(Ge);
|
|
100
|
+
if (s === null) return l;
|
|
101
|
+
if (n === "date" && s[4] === void 0) {
|
|
102
|
+
const d = i(Number(s[1]), Number(s[2]), Number(s[3]));
|
|
103
|
+
return d === null ? l : new Intl.DateTimeFormat(t, { dateStyle: "medium", timeZone: "UTC" }).format(d);
|
|
104
104
|
}
|
|
105
|
-
if (n === "datetime-local" &&
|
|
106
|
-
const
|
|
107
|
-
return
|
|
105
|
+
if (n === "datetime-local" && s[4] !== void 0) {
|
|
106
|
+
const d = i(Number(s[1]), Number(s[2]), Number(s[3]), Number(s[4]), Number(s[5]), Number(s[6] ?? 0));
|
|
107
|
+
return d === null ? l : new Intl.DateTimeFormat(t, { dateStyle: "medium", timeStyle: s[6] === void 0 ? "short" : "medium", timeZone: "UTC" }).format(d);
|
|
108
108
|
}
|
|
109
109
|
} catch {
|
|
110
110
|
return l;
|
|
111
111
|
}
|
|
112
112
|
return l;
|
|
113
113
|
}
|
|
114
|
-
const
|
|
115
|
-
function
|
|
116
|
-
const
|
|
117
|
-
return /* @__PURE__ */ e(
|
|
114
|
+
const Qe = /* @__PURE__ */ new Set(["date", "time", "datetime-local"]);
|
|
115
|
+
function qn({ label: n, help: l, error: t, disabled: i, readOnly: o, pinned: s, value: d, onChange: a, placeholder: m, type: v = "text", name: u, locale: f, min: r, max: h, step: _, minLength: N, maxLength: y, required: k }) {
|
|
116
|
+
const C = G(), M = o === !0 || s != null, b = M && Qe.has(v), w = v === "number" && (_ === "any" || typeof _ == "number" && !Number.isInteger(_));
|
|
117
|
+
return /* @__PURE__ */ e(Le, { id: C, label: n, help: l, error: t, pinned: s, children: /* @__PURE__ */ e(
|
|
118
118
|
"input",
|
|
119
119
|
{
|
|
120
|
-
id:
|
|
121
|
-
name:
|
|
122
|
-
type:
|
|
120
|
+
id: C,
|
|
121
|
+
name: u,
|
|
122
|
+
type: b ? "text" : v,
|
|
123
123
|
className: "cms-input",
|
|
124
|
-
value:
|
|
125
|
-
...
|
|
126
|
-
lang:
|
|
127
|
-
placeholder:
|
|
128
|
-
disabled:
|
|
129
|
-
readOnly:
|
|
130
|
-
required:
|
|
131
|
-
"aria-required":
|
|
132
|
-
min:
|
|
133
|
-
max:
|
|
134
|
-
step:
|
|
135
|
-
minLength:
|
|
136
|
-
maxLength:
|
|
137
|
-
inputMode:
|
|
124
|
+
value: b ? Je(v, d, f) : d,
|
|
125
|
+
...b ? { "data-value": d } : {},
|
|
126
|
+
lang: f,
|
|
127
|
+
placeholder: m,
|
|
128
|
+
disabled: i,
|
|
129
|
+
readOnly: M,
|
|
130
|
+
required: k,
|
|
131
|
+
"aria-required": k || void 0,
|
|
132
|
+
min: b ? void 0 : r,
|
|
133
|
+
max: b ? void 0 : h,
|
|
134
|
+
step: b ? void 0 : _,
|
|
135
|
+
minLength: N,
|
|
136
|
+
maxLength: y,
|
|
137
|
+
inputMode: v === "number" ? w ? "decimal" : "numeric" : void 0,
|
|
138
138
|
"aria-invalid": t != null || void 0,
|
|
139
|
-
"aria-describedby":
|
|
140
|
-
onChange: (
|
|
139
|
+
"aria-describedby": $e(C, { help: l, error: t, pinned: s }),
|
|
140
|
+
onChange: (T) => a == null ? void 0 : a(T.target.value)
|
|
141
141
|
}
|
|
142
142
|
) });
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
const
|
|
146
|
-
return /* @__PURE__ */ e(
|
|
144
|
+
function Yn({ label: n, help: l, error: t, disabled: i, readOnly: o, pinned: s, value: d, onChange: a, placeholder: m, rows: v = 4, name: u, locale: f, minLength: r, maxLength: h, required: _ }) {
|
|
145
|
+
const N = G();
|
|
146
|
+
return /* @__PURE__ */ e(Le, { id: N, label: n, help: l, error: t, pinned: s, children: /* @__PURE__ */ e(
|
|
147
147
|
"textarea",
|
|
148
148
|
{
|
|
149
|
-
id:
|
|
150
|
-
name:
|
|
149
|
+
id: N,
|
|
150
|
+
name: u,
|
|
151
151
|
className: "cms-input cms-textarea",
|
|
152
|
-
rows:
|
|
153
|
-
value:
|
|
154
|
-
lang:
|
|
155
|
-
placeholder:
|
|
156
|
-
disabled:
|
|
157
|
-
readOnly:
|
|
158
|
-
required:
|
|
159
|
-
"aria-required":
|
|
160
|
-
minLength:
|
|
161
|
-
maxLength:
|
|
152
|
+
rows: v,
|
|
153
|
+
value: d,
|
|
154
|
+
lang: f,
|
|
155
|
+
placeholder: m,
|
|
156
|
+
disabled: i,
|
|
157
|
+
readOnly: o === !0 || s != null,
|
|
158
|
+
required: _,
|
|
159
|
+
"aria-required": _ || void 0,
|
|
160
|
+
minLength: r,
|
|
161
|
+
maxLength: h,
|
|
162
162
|
"aria-invalid": t != null || void 0,
|
|
163
|
-
"aria-describedby":
|
|
164
|
-
onChange: (
|
|
163
|
+
"aria-describedby": $e(N, { help: l, error: t, pinned: s }),
|
|
164
|
+
onChange: (y) => a == null ? void 0 : a(y.target.value)
|
|
165
165
|
}
|
|
166
166
|
) });
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
const
|
|
170
|
-
return /* @__PURE__ */ e(
|
|
168
|
+
function Gn({ label: n, help: l, error: t, disabled: i, readOnly: o, value: s, options: d, onChange: a, emptyText: m = "Nothing to choose from yet.", name: v }) {
|
|
169
|
+
const u = G(), f = d.length === 0;
|
|
170
|
+
return /* @__PURE__ */ e(Le, { id: u, label: n, help: f ? m : l, error: t, children: /* @__PURE__ */ e(
|
|
171
171
|
"select",
|
|
172
172
|
{
|
|
173
|
-
id:
|
|
174
|
-
name:
|
|
173
|
+
id: u,
|
|
174
|
+
name: v,
|
|
175
175
|
className: "cms-input cms-select",
|
|
176
|
-
value:
|
|
177
|
-
disabled:
|
|
178
|
-
"aria-readonly":
|
|
176
|
+
value: s,
|
|
177
|
+
disabled: i || f,
|
|
178
|
+
"aria-readonly": o || void 0,
|
|
179
179
|
"aria-invalid": t != null || void 0,
|
|
180
|
-
"aria-describedby":
|
|
181
|
-
onChange: (
|
|
182
|
-
|
|
180
|
+
"aria-describedby": $e(u, { help: f ? m : l, error: t }),
|
|
181
|
+
onChange: (r) => {
|
|
182
|
+
o || a == null || a(r.target.value);
|
|
183
183
|
},
|
|
184
|
-
children:
|
|
184
|
+
children: d.map((r) => /* @__PURE__ */ e("option", { value: r.value, disabled: o && r.value !== s, children: r.label }, r.value))
|
|
185
185
|
}
|
|
186
186
|
) });
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
const
|
|
190
|
-
return /* @__PURE__ */
|
|
188
|
+
function Xn({ label: n, checked: l, onChange: t, disabled: i, readOnly: o, help: s }) {
|
|
189
|
+
const d = G();
|
|
190
|
+
return /* @__PURE__ */ c("div", { className: "cms-toggle-row", children: [
|
|
191
191
|
/* @__PURE__ */ e(
|
|
192
192
|
"button",
|
|
193
193
|
{
|
|
194
|
-
id:
|
|
194
|
+
id: d,
|
|
195
195
|
type: "button",
|
|
196
196
|
role: "switch",
|
|
197
|
-
className:
|
|
197
|
+
className: $("cms-toggle", l && "is-on"),
|
|
198
198
|
"aria-checked": l,
|
|
199
|
-
"aria-readonly":
|
|
200
|
-
"aria-describedby":
|
|
201
|
-
disabled:
|
|
199
|
+
"aria-readonly": o || void 0,
|
|
200
|
+
"aria-describedby": s != null ? `${d}-help` : void 0,
|
|
201
|
+
disabled: i,
|
|
202
202
|
onClick: () => {
|
|
203
|
-
|
|
203
|
+
o || t == null || t(!l);
|
|
204
204
|
},
|
|
205
205
|
children: /* @__PURE__ */ e("span", { className: "cms-toggle__thumb" })
|
|
206
206
|
}
|
|
207
207
|
),
|
|
208
|
-
/* @__PURE__ */ e("label", { className: "cms-toggle__label", htmlFor:
|
|
209
|
-
|
|
208
|
+
/* @__PURE__ */ e("label", { className: "cms-toggle__label", htmlFor: d, children: n }),
|
|
209
|
+
s != null ? /* @__PURE__ */ e("p", { className: "cms-field__help", id: `${d}-help`, children: s }) : null
|
|
210
210
|
] });
|
|
211
211
|
}
|
|
212
|
-
const
|
|
213
|
-
function
|
|
214
|
-
const [
|
|
215
|
-
if (
|
|
212
|
+
const en = 150;
|
|
213
|
+
function ze({ open: n, title: l, onClose: t, dirty: i = !1, onDirtyClose: o, children: s, footer: d, closeLabel: a = "Close", initialFocus: m, className: v }) {
|
|
214
|
+
const [u, f] = A(n), [r, h] = A(!1), _ = H(null), N = H(null), y = G();
|
|
215
|
+
if (Y(() => {
|
|
216
216
|
if (n) {
|
|
217
|
-
|
|
217
|
+
N.current = document.activeElement, f(!0), h(!1);
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
|
-
if (!
|
|
221
|
-
|
|
222
|
-
const
|
|
223
|
-
var
|
|
224
|
-
|
|
225
|
-
},
|
|
226
|
-
return () => window.clearTimeout(
|
|
227
|
-
}, [n,
|
|
228
|
-
var
|
|
229
|
-
if (n &&
|
|
230
|
-
const
|
|
231
|
-
(
|
|
220
|
+
if (!u) return;
|
|
221
|
+
h(!0);
|
|
222
|
+
const C = window.setTimeout(() => {
|
|
223
|
+
var M, b;
|
|
224
|
+
f(!1), h(!1), (b = (M = N.current) == null ? void 0 : M.focus) == null || b.call(M);
|
|
225
|
+
}, en);
|
|
226
|
+
return () => window.clearTimeout(C);
|
|
227
|
+
}, [n, u]), Y(() => {
|
|
228
|
+
var C, M;
|
|
229
|
+
if (n && u) {
|
|
230
|
+
const b = 'input, select, textarea, button, [href], [tabindex]:not([tabindex="-1"])';
|
|
231
|
+
(M = (m == null ? void 0 : m.current) ?? ((C = _.current) == null ? void 0 : C.querySelector(`.cms-modal__body :is(${b}), .cms-modal__foot :is(${b})`)) ?? _.current) == null || M.focus();
|
|
232
232
|
}
|
|
233
|
-
}, [n,
|
|
234
|
-
const
|
|
235
|
-
|
|
233
|
+
}, [n, u, m]), !u) return null;
|
|
234
|
+
const k = () => {
|
|
235
|
+
i ? o == null || o() : t();
|
|
236
236
|
};
|
|
237
|
-
return
|
|
238
|
-
/* @__PURE__ */ e("div", { className:
|
|
239
|
-
|
|
240
|
-
}, children: /* @__PURE__ */
|
|
237
|
+
return De(
|
|
238
|
+
/* @__PURE__ */ e("div", { className: $("cms-modal-scrim", r && "is-closing"), onMouseDown: (C) => {
|
|
239
|
+
C.target === C.currentTarget && k();
|
|
240
|
+
}, children: /* @__PURE__ */ c(
|
|
241
241
|
"div",
|
|
242
242
|
{
|
|
243
|
-
ref:
|
|
244
|
-
className:
|
|
243
|
+
ref: _,
|
|
244
|
+
className: $("cms-modal", v, r && "is-closing", i && "is-dirty"),
|
|
245
245
|
role: "dialog",
|
|
246
246
|
"aria-modal": "true",
|
|
247
|
-
"aria-labelledby":
|
|
247
|
+
"aria-labelledby": y,
|
|
248
248
|
tabIndex: -1,
|
|
249
|
-
onKeyDown: (
|
|
250
|
-
var
|
|
251
|
-
if (
|
|
252
|
-
|
|
253
|
-
else if (
|
|
254
|
-
const
|
|
255
|
-
if (!
|
|
256
|
-
const
|
|
257
|
-
|
|
249
|
+
onKeyDown: (C) => {
|
|
250
|
+
var M;
|
|
251
|
+
if (C.key === "Escape")
|
|
252
|
+
C.stopPropagation(), k();
|
|
253
|
+
else if (C.key === "Tab") {
|
|
254
|
+
const b = (M = _.current) == null ? void 0 : M.querySelectorAll('input, select, textarea, button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])');
|
|
255
|
+
if (!b || b.length === 0) return;
|
|
256
|
+
const w = b[0], T = b[b.length - 1];
|
|
257
|
+
C.shiftKey && document.activeElement === w ? (C.preventDefault(), T.focus()) : !C.shiftKey && document.activeElement === T && (C.preventDefault(), w.focus());
|
|
258
258
|
}
|
|
259
259
|
},
|
|
260
260
|
children: [
|
|
261
|
-
/* @__PURE__ */
|
|
262
|
-
/* @__PURE__ */ e("h2", { className: "cms-modal__title", id:
|
|
263
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button", "aria-label":
|
|
261
|
+
/* @__PURE__ */ c("header", { className: "cms-modal__head", children: [
|
|
262
|
+
/* @__PURE__ */ e("h2", { className: "cms-modal__title", id: y, children: l }),
|
|
263
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button", "aria-label": a, onClick: k, children: /* @__PURE__ */ e(V, { name: "close" }) })
|
|
264
264
|
] }),
|
|
265
|
-
/* @__PURE__ */ e("div", { className: "cms-modal__body", children:
|
|
266
|
-
|
|
265
|
+
/* @__PURE__ */ e("div", { className: "cms-modal__body", children: s }),
|
|
266
|
+
d != null ? /* @__PURE__ */ e("footer", { className: "cms-modal__foot", children: d }) : null
|
|
267
267
|
]
|
|
268
268
|
}
|
|
269
269
|
) }),
|
|
270
270
|
document.body
|
|
271
271
|
);
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
const
|
|
273
|
+
function Jn({ open: n, title: l, message: t, kind: i = "default", confirmLabel: o, cancelLabel: s, closeLabel: d, onConfirm: a, onCancel: m }) {
|
|
274
|
+
const v = i === "discard-changes";
|
|
275
275
|
return /* @__PURE__ */ e(
|
|
276
|
-
|
|
276
|
+
ze,
|
|
277
277
|
{
|
|
278
278
|
open: n,
|
|
279
279
|
title: l,
|
|
280
|
-
onClose:
|
|
281
|
-
...
|
|
282
|
-
footer: /* @__PURE__ */
|
|
283
|
-
/* @__PURE__ */ e(
|
|
284
|
-
/* @__PURE__ */ e(
|
|
280
|
+
onClose: m,
|
|
281
|
+
...d === void 0 ? {} : { closeLabel: d },
|
|
282
|
+
footer: /* @__PURE__ */ c(E, { children: [
|
|
283
|
+
/* @__PURE__ */ e(se, { onClick: m, children: s ?? (v ? "Keep editing" : "Cancel") }),
|
|
284
|
+
/* @__PURE__ */ e(se, { variant: i === "default" ? "primary" : "danger", onClick: a, children: o ?? (v ? "Discard changes" : "Confirm") })
|
|
285
285
|
] }),
|
|
286
|
-
children:
|
|
287
|
-
/* @__PURE__ */ e(
|
|
286
|
+
children: i !== "default" ? /* @__PURE__ */ c("p", { className: "cms-confirm__warning", children: [
|
|
287
|
+
/* @__PURE__ */ e(V, { name: "warning" }),
|
|
288
288
|
" ",
|
|
289
289
|
t
|
|
290
290
|
] }) : /* @__PURE__ */ e("p", { children: t })
|
|
291
291
|
}
|
|
292
292
|
);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
return /* @__PURE__ */
|
|
296
|
-
/* @__PURE__ */ e(
|
|
294
|
+
function Qn({ kind: n, message: l, action: t, onDismiss: i, dismissLabel: o = "Dismiss" }) {
|
|
295
|
+
return /* @__PURE__ */ c("div", { className: $("cms-toast", `cms-toast--${n}`), role: n === "error" ? "alert" : "status", children: [
|
|
296
|
+
/* @__PURE__ */ e(V, { name: n === "success" ? "check" : n === "error" ? "warning" : "info" }),
|
|
297
297
|
/* @__PURE__ */ e("span", { className: "cms-toast__message", children: l }),
|
|
298
|
-
t ? /* @__PURE__ */ e(
|
|
299
|
-
|
|
298
|
+
t ? /* @__PURE__ */ e(se, { className: "cms-toast__action", onClick: t.onAction, children: t.label }) : null,
|
|
299
|
+
i ? /* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button", "aria-label": o, onClick: i, children: /* @__PURE__ */ e(V, { name: "close" }) }) : null
|
|
300
300
|
] });
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function el({ children: n }) {
|
|
303
303
|
return /* @__PURE__ */ e("div", { className: "cms-toast-region", children: n });
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
return /* @__PURE__ */
|
|
307
|
-
/* @__PURE__ */ e(
|
|
305
|
+
function nn({ what: n, layout: l = "inline" }) {
|
|
306
|
+
return /* @__PURE__ */ c("div", { className: $("cms-loading", `cms-loading--${l}`), role: "status", "aria-live": "polite", children: [
|
|
307
|
+
/* @__PURE__ */ e(V, { name: "spinner" }),
|
|
308
308
|
/* @__PURE__ */ e("span", { children: n })
|
|
309
309
|
] });
|
|
310
310
|
}
|
|
311
|
-
function
|
|
312
|
-
return /* @__PURE__ */
|
|
311
|
+
function ln({ title: n, hint: l, action: t }) {
|
|
312
|
+
return /* @__PURE__ */ c("div", { className: "cms-empty", children: [
|
|
313
313
|
/* @__PURE__ */ e("p", { className: "cms-empty__title", children: n }),
|
|
314
314
|
l != null ? /* @__PURE__ */ e("p", { className: "cms-empty__hint", children: l }) : null,
|
|
315
315
|
t != null ? /* @__PURE__ */ e("div", { className: "cms-empty__action", children: t }) : null
|
|
316
316
|
] });
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
return /* @__PURE__ */
|
|
320
|
-
/* @__PURE__ */ e(
|
|
318
|
+
function tn({ message: n, onRetry: l, retryLabel: t = "Try again" }) {
|
|
319
|
+
return /* @__PURE__ */ c("div", { className: "cms-error-banner", role: "alert", children: [
|
|
320
|
+
/* @__PURE__ */ e(V, { name: "warning" }),
|
|
321
321
|
/* @__PURE__ */ e("span", { className: "cms-error-banner__message", children: n }),
|
|
322
|
-
l ? /* @__PURE__ */ e(
|
|
322
|
+
l ? /* @__PURE__ */ e(se, { onClick: l, children: t }) : null
|
|
323
323
|
] });
|
|
324
324
|
}
|
|
325
|
-
const
|
|
326
|
-
mail: /* @__PURE__ */
|
|
325
|
+
const Ke = {
|
|
326
|
+
mail: /* @__PURE__ */ c(E, { children: [
|
|
327
327
|
/* @__PURE__ */ e("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2" }),
|
|
328
328
|
/* @__PURE__ */ e("path", { d: "m3 7 9 6 9-6" })
|
|
329
329
|
] }),
|
|
330
330
|
// A gear: a ring with eight short teeth, the hole in its middle.
|
|
331
|
-
settings: /* @__PURE__ */
|
|
331
|
+
settings: /* @__PURE__ */ c(E, { children: [
|
|
332
332
|
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "3" }),
|
|
333
333
|
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "7" }),
|
|
334
334
|
/* @__PURE__ */ e("path", { d: "M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9 7 7M17 17l2.1 2.1M4.9 19.1 7 17M17 7l2.1-2.1" })
|
|
335
335
|
] }),
|
|
336
336
|
// The envelope with its flap open above it: a message read, or the message itself again.
|
|
337
|
-
"mail-open": /* @__PURE__ */
|
|
337
|
+
"mail-open": /* @__PURE__ */ c(E, { children: [
|
|
338
338
|
/* @__PURE__ */ e("path", { d: "M3 10v9a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9" }),
|
|
339
339
|
/* @__PURE__ */ e("path", { d: "m3 10 9-6 9 6" }),
|
|
340
340
|
/* @__PURE__ */ e("path", { d: "m3 10 9 6 9-6" })
|
|
341
341
|
] }),
|
|
342
342
|
// A clipboard: copy what is shown.
|
|
343
|
-
copy: /* @__PURE__ */
|
|
343
|
+
copy: /* @__PURE__ */ c(E, { children: [
|
|
344
344
|
/* @__PURE__ */ e("rect", { x: "6", y: "4", width: "12", height: "17", rx: "2" }),
|
|
345
345
|
/* @__PURE__ */ e("path", { d: "M9 4V3h6v1" }),
|
|
346
346
|
/* @__PURE__ */ e("path", { d: "M9 10h6M9 14h6M9 18h3" })
|
|
347
347
|
] }),
|
|
348
348
|
chat: /* @__PURE__ */ e("path", { d: "M4 12a8 8 0 1 1 4 6.9L4 20l1.1-4A8 8 0 0 1 4 12Z" }),
|
|
349
349
|
phone: /* @__PURE__ */ e("path", { d: "M5 3h3l2 5-2.5 1.5a11 11 0 0 0 7 7L16 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 5a2 2 0 0 1 2-2Z" }),
|
|
350
|
-
calendar: /* @__PURE__ */
|
|
350
|
+
calendar: /* @__PURE__ */ c(E, { children: [
|
|
351
351
|
/* @__PURE__ */ e("rect", { x: "3", y: "5", width: "18", height: "16", rx: "2" }),
|
|
352
352
|
/* @__PURE__ */ e("path", { d: "M3 10h18M8 3v4M16 3v4" })
|
|
353
353
|
] }),
|
|
354
|
-
file: /* @__PURE__ */
|
|
354
|
+
file: /* @__PURE__ */ c(E, { children: [
|
|
355
355
|
/* @__PURE__ */ e("path", { d: "M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9Z" }),
|
|
356
356
|
/* @__PURE__ */ e("path", { d: "M14 3v6h6M8 13h8M8 17h6" })
|
|
357
357
|
] }),
|
|
358
358
|
// The file, with code's angle brackets in place of its lines: a message's source.
|
|
359
|
-
"file-code": /* @__PURE__ */
|
|
359
|
+
"file-code": /* @__PURE__ */ c(E, { children: [
|
|
360
360
|
/* @__PURE__ */ e("path", { d: "M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9Z" }),
|
|
361
361
|
/* @__PURE__ */ e("path", { d: "M14 3v6h6" }),
|
|
362
362
|
/* @__PURE__ */ e("path", { d: "m10 12-2 2.5 2 2.5M14 12l2 2.5-2 2.5" })
|
|
363
363
|
] }),
|
|
364
|
-
image: /* @__PURE__ */
|
|
364
|
+
image: /* @__PURE__ */ c(E, { children: [
|
|
365
365
|
/* @__PURE__ */ e("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
|
|
366
366
|
/* @__PURE__ */ e("circle", { cx: "9", cy: "10", r: "2" }),
|
|
367
367
|
/* @__PURE__ */ e("path", { d: "m21 17-5-5-9 8" })
|
|
368
368
|
] }),
|
|
369
|
-
search: /* @__PURE__ */
|
|
369
|
+
search: /* @__PURE__ */ c(E, { children: [
|
|
370
370
|
/* @__PURE__ */ e("circle", { cx: "11", cy: "11", r: "7" }),
|
|
371
371
|
/* @__PURE__ */ e("path", { d: "m20 20-4-4" })
|
|
372
372
|
] }),
|
|
373
|
-
bell: /* @__PURE__ */
|
|
373
|
+
bell: /* @__PURE__ */ c(E, { children: [
|
|
374
374
|
/* @__PURE__ */ e("path", { d: "M6 9a6 6 0 1 1 12 0c0 6 2 8 2 8H4s2-2 2-8Z" }),
|
|
375
375
|
/* @__PURE__ */ e("path", { d: "M10 20a2 2 0 0 0 4 0" })
|
|
376
376
|
] }),
|
|
377
|
-
pencil: /* @__PURE__ */
|
|
377
|
+
pencil: /* @__PURE__ */ c(E, { children: [
|
|
378
378
|
/* @__PURE__ */ e("path", { d: "M4 20h4L19 9l-4-4L4 16Z" }),
|
|
379
379
|
/* @__PURE__ */ e("path", { d: "m13 7 4 4" })
|
|
380
380
|
] }),
|
|
381
|
-
download: /* @__PURE__ */
|
|
381
|
+
download: /* @__PURE__ */ c(E, { children: [
|
|
382
382
|
/* @__PURE__ */ e("path", { d: "M12 4v11" }),
|
|
383
383
|
/* @__PURE__ */ e("path", { d: "m7 11 5 5 5-5" }),
|
|
384
384
|
/* @__PURE__ */ e("path", { d: "M4 20h16" })
|
|
385
385
|
] }),
|
|
386
386
|
// Download's arrow turned up, from the line: a file sent up.
|
|
387
|
-
upload: /* @__PURE__ */
|
|
387
|
+
upload: /* @__PURE__ */ c(E, { children: [
|
|
388
388
|
/* @__PURE__ */ e("path", { d: "M12 20V9" }),
|
|
389
389
|
/* @__PURE__ */ e("path", { d: "m7 13 5-5 5 5" }),
|
|
390
390
|
/* @__PURE__ */ e("path", { d: "M4 4h16" })
|
|
391
391
|
] }),
|
|
392
|
-
print: /* @__PURE__ */
|
|
392
|
+
print: /* @__PURE__ */ c(E, { children: [
|
|
393
393
|
/* @__PURE__ */ e("path", { d: "M7 8V4h10v4" }),
|
|
394
394
|
/* @__PURE__ */ e("rect", { x: "3", y: "8", width: "18", height: "8", rx: "2" }),
|
|
395
395
|
/* @__PURE__ */ e("path", { d: "M7 14h10v6H7Z" })
|
|
396
396
|
] }),
|
|
397
|
-
"open-separately": /* @__PURE__ */
|
|
397
|
+
"open-separately": /* @__PURE__ */ c(E, { children: [
|
|
398
398
|
/* @__PURE__ */ e("path", { d: "M14 4h6v6" }),
|
|
399
399
|
/* @__PURE__ */ e("path", { d: "m20 4-9 9" }),
|
|
400
400
|
/* @__PURE__ */ e("path", { d: "M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5" })
|
|
401
401
|
] }),
|
|
402
402
|
star: /* @__PURE__ */ e("path", { d: "m12 3 2.8 5.8 6.2.9-4.5 4.4 1 6.2L12 17.4l-5.5 2.9 1-6.2L3 9.7l6.2-.9Z" }),
|
|
403
|
-
send: /* @__PURE__ */
|
|
403
|
+
send: /* @__PURE__ */ c(E, { children: [
|
|
404
404
|
/* @__PURE__ */ e("path", { d: "M21 3 10 14" }),
|
|
405
405
|
/* @__PURE__ */ e("path", { d: "M21 3 14 21l-4-7-7-4Z" })
|
|
406
406
|
] }),
|
|
407
|
-
inbox: /* @__PURE__ */
|
|
407
|
+
inbox: /* @__PURE__ */ c(E, { children: [
|
|
408
408
|
/* @__PURE__ */ e("path", { d: "M3 13h5l1 3h6l1-3h5" }),
|
|
409
409
|
/* @__PURE__ */ e("path", { d: "M5 5h14l2 8v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-6Z" })
|
|
410
410
|
] }),
|
|
411
|
-
archive: /* @__PURE__ */
|
|
411
|
+
archive: /* @__PURE__ */ c(E, { children: [
|
|
412
412
|
/* @__PURE__ */ e("rect", { x: "3", y: "4", width: "18", height: "5", rx: "1" }),
|
|
413
413
|
/* @__PURE__ */ e("path", { d: "M5 9v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V9M10 13h4" })
|
|
414
414
|
] }),
|
|
415
|
-
trash: /* @__PURE__ */
|
|
415
|
+
trash: /* @__PURE__ */ c(E, { children: [
|
|
416
416
|
/* @__PURE__ */ e("path", { d: "M4 7h16M10 11v6M14 11v6" }),
|
|
417
417
|
/* @__PURE__ */ e("path", { d: "M6 7l1 13a2 2 0 0 0 2 1h6a2 2 0 0 0 2-1l1-13M9 7V4h6v3" })
|
|
418
418
|
] }),
|
|
419
419
|
paperclip: /* @__PURE__ */ e("path", { d: "m20 11-8.5 8.5a5 5 0 0 1-7-7L13 4a3.5 3.5 0 0 1 5 5l-8.5 8.5a2 2 0 0 1-3-3L14 7" }),
|
|
420
|
-
mic: /* @__PURE__ */
|
|
420
|
+
mic: /* @__PURE__ */ c(E, { children: [
|
|
421
421
|
/* @__PURE__ */ e("rect", { x: "9", y: "3", width: "6", height: "11", rx: "3" }),
|
|
422
422
|
/* @__PURE__ */ e("path", { d: "M5 11a7 7 0 0 0 14 0M12 18v3" })
|
|
423
423
|
] }),
|
|
424
|
-
speaker: /* @__PURE__ */
|
|
424
|
+
speaker: /* @__PURE__ */ c(E, { children: [
|
|
425
425
|
/* @__PURE__ */ e("path", { d: "M4 9h4l5-4v14l-5-4H4Z" }),
|
|
426
426
|
/* @__PURE__ */ e("path", { d: "M16 9a4 4 0 0 1 0 6M19 6a8 8 0 0 1 0 12" })
|
|
427
427
|
] }),
|
|
428
|
-
"user-plus": /* @__PURE__ */
|
|
428
|
+
"user-plus": /* @__PURE__ */ c(E, { children: [
|
|
429
429
|
/* @__PURE__ */ e("circle", { cx: "10", cy: "8", r: "4" }),
|
|
430
430
|
/* @__PURE__ */ e("path", { d: "M3 21a7 7 0 0 1 14 0M19 8v6M16 11h6" })
|
|
431
431
|
] }),
|
|
432
432
|
// A person, nothing more: one whose account is gone.
|
|
433
|
-
user: /* @__PURE__ */
|
|
433
|
+
user: /* @__PURE__ */ c(E, { children: [
|
|
434
434
|
/* @__PURE__ */ e("circle", { cx: "12", cy: "8", r: "4" }),
|
|
435
435
|
/* @__PURE__ */ e("path", { d: "M4 21a8 8 0 0 1 16 0" })
|
|
436
436
|
] }),
|
|
437
437
|
// A person with a tick: someone allowed.
|
|
438
|
-
"user-check": /* @__PURE__ */
|
|
438
|
+
"user-check": /* @__PURE__ */ c(E, { children: [
|
|
439
439
|
/* @__PURE__ */ e("circle", { cx: "10", cy: "8", r: "4" }),
|
|
440
440
|
/* @__PURE__ */ e("path", { d: "M3 21a7 7 0 0 1 14 0M16 11l2 2 4-4" })
|
|
441
441
|
] }),
|
|
442
442
|
// A person with a cross: someone no longer allowed.
|
|
443
|
-
"user-x": /* @__PURE__ */
|
|
443
|
+
"user-x": /* @__PURE__ */ c(E, { children: [
|
|
444
444
|
/* @__PURE__ */ e("circle", { cx: "10", cy: "8", r: "4" }),
|
|
445
445
|
/* @__PURE__ */ e("path", { d: "M3 21a7 7 0 0 1 14 0M17 8l4 4M21 8l-4 4" })
|
|
446
446
|
] }),
|
|
447
447
|
// Two people: the members of a group.
|
|
448
|
-
users: /* @__PURE__ */
|
|
448
|
+
users: /* @__PURE__ */ c(E, { children: [
|
|
449
449
|
/* @__PURE__ */ e("circle", { cx: "9", cy: "8", r: "3.5" }),
|
|
450
450
|
/* @__PURE__ */ e("path", { d: "M2.5 20a6.5 6.5 0 0 1 13 0M16 4.6a3.5 3.5 0 0 1 0 6.8M18 14a6.5 6.5 0 0 1 3.5 6" })
|
|
451
451
|
] }),
|
|
452
452
|
"phone-off": /* @__PURE__ */ e("path", { d: "M3 14c5-5 13-5 18 0l-2 3-4-1v-3a10 10 0 0 0-6 0v3l-4 1Z" }),
|
|
453
|
-
video: /* @__PURE__ */
|
|
453
|
+
video: /* @__PURE__ */ c(E, { children: [
|
|
454
454
|
/* @__PURE__ */ e("rect", { x: "3", y: "6", width: "13", height: "12", rx: "2" }),
|
|
455
455
|
/* @__PURE__ */ e("path", { d: "m16 10 5-3v10l-5-3" })
|
|
456
456
|
] }),
|
|
457
|
-
info: /* @__PURE__ */
|
|
457
|
+
info: /* @__PURE__ */ c(E, { children: [
|
|
458
458
|
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "9" }),
|
|
459
459
|
/* @__PURE__ */ e("path", { d: "M12 11v6M12 7.5v.5" })
|
|
460
460
|
] }),
|
|
@@ -463,17 +463,17 @@ const Fe = {
|
|
|
463
463
|
plus: /* @__PURE__ */ e("path", { d: "M12 5v14M5 12h14" }),
|
|
464
464
|
folder: /* @__PURE__ */ e("path", { d: "M3 6a2 2 0 0 1 2-2h4l2 3h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z" }),
|
|
465
465
|
// The folder with a plus inside: a new folder.
|
|
466
|
-
"folder-plus": /* @__PURE__ */
|
|
466
|
+
"folder-plus": /* @__PURE__ */ c(E, { children: [
|
|
467
467
|
/* @__PURE__ */ e("path", { d: "M3 6a2 2 0 0 1 2-2h4l2 3h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z" }),
|
|
468
468
|
/* @__PURE__ */ e("path", { d: "M12 10.5v6M9 13.5h6" })
|
|
469
469
|
] }),
|
|
470
470
|
// The folder with a cross inside: a folder removed.
|
|
471
|
-
"folder-x": /* @__PURE__ */
|
|
471
|
+
"folder-x": /* @__PURE__ */ c(E, { children: [
|
|
472
472
|
/* @__PURE__ */ e("path", { d: "M3 6a2 2 0 0 1 2-2h4l2 3h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z" }),
|
|
473
473
|
/* @__PURE__ */ e("path", { d: "m9.5 11 5 5M14.5 11l-5 5" })
|
|
474
474
|
] }),
|
|
475
475
|
check: /* @__PURE__ */ e("path", { d: "m5 12 5 5 9-10" }),
|
|
476
|
-
server: /* @__PURE__ */
|
|
476
|
+
server: /* @__PURE__ */ c(E, { children: [
|
|
477
477
|
/* @__PURE__ */ e("rect", { x: "3", y: "4", width: "18", height: "7", rx: "2" }),
|
|
478
478
|
/* @__PURE__ */ e("rect", { x: "3", y: "13", width: "18", height: "7", rx: "2" }),
|
|
479
479
|
/* @__PURE__ */ e("path", { d: "M7 7.5h.5M7 16.5h.5" })
|
|
@@ -483,9 +483,11 @@ const Fe = {
|
|
|
483
483
|
forward: /* @__PURE__ */ e("path", { d: "m14 8 6 5-6 5M20 13H9a5 5 0 0 0-5 5" }),
|
|
484
484
|
refresh: /* @__PURE__ */ e("path", { d: "M20 11a8 8 0 1 0-2.3 5.7M20 5v6h-6" }),
|
|
485
485
|
more: /* @__PURE__ */ e("path", { d: "M5 12h.5M12 12h.5M19 12h.5" }),
|
|
486
|
+
// A number sign: a channel, by its name.
|
|
487
|
+
hash: /* @__PURE__ */ e("path", { d: "M10 4 8 20M16 4l-2 16M5 9h15M4 15h15" }),
|
|
486
488
|
important: /* @__PURE__ */ e("path", { d: "M4 6h11l5 6-5 6H4l4-6-4-6Z" })
|
|
487
489
|
};
|
|
488
|
-
function
|
|
490
|
+
function L({ name: n, size: l = 20, label: t }) {
|
|
489
491
|
return /* @__PURE__ */ e(
|
|
490
492
|
"svg",
|
|
491
493
|
{
|
|
@@ -500,11 +502,11 @@ function A({ name: n, size: l = 20, label: t }) {
|
|
|
500
502
|
strokeLinejoin: "round",
|
|
501
503
|
focusable: !1,
|
|
502
504
|
...t ? { role: "img", "aria-label": t } : { "aria-hidden": !0 },
|
|
503
|
-
children:
|
|
505
|
+
children: Ke[n]
|
|
504
506
|
}
|
|
505
507
|
);
|
|
506
508
|
}
|
|
507
|
-
const
|
|
509
|
+
const nl = Object.keys(Ke), Be = {
|
|
508
510
|
reply: "reply",
|
|
509
511
|
"reply-all": "reply",
|
|
510
512
|
forward: "forward",
|
|
@@ -543,189 +545,190 @@ const Zn = Object.keys(Fe), Te = {
|
|
|
543
545
|
"folder2-open": "folder",
|
|
544
546
|
"chat-dots": "chat",
|
|
545
547
|
images: "image",
|
|
546
|
-
paperclip: "paperclip"
|
|
548
|
+
paperclip: "paperclip",
|
|
549
|
+
hash: "hash"
|
|
547
550
|
};
|
|
548
|
-
function
|
|
549
|
-
return Object.prototype.hasOwnProperty.call(
|
|
551
|
+
function de(n) {
|
|
552
|
+
return Object.prototype.hasOwnProperty.call(Be, n) ? Be[n] : null;
|
|
550
553
|
}
|
|
551
|
-
function
|
|
554
|
+
function an() {
|
|
552
555
|
try {
|
|
553
556
|
return process.env.NODE_ENV !== "production";
|
|
554
557
|
} catch {
|
|
555
558
|
return !1;
|
|
556
559
|
}
|
|
557
560
|
}
|
|
558
|
-
const
|
|
559
|
-
function
|
|
561
|
+
const Re = /* @__PURE__ */ new Set();
|
|
562
|
+
function sn({ name: n, size: l = 18 }) {
|
|
560
563
|
if (n === "") return null;
|
|
561
|
-
const t =
|
|
562
|
-
return t !== null ? /* @__PURE__ */ e(
|
|
564
|
+
const t = de(n);
|
|
565
|
+
return t !== null ? /* @__PURE__ */ e(L, { name: t, size: l }) : (!Re.has(n) && an() && (Re.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 }));
|
|
563
566
|
}
|
|
564
|
-
const
|
|
565
|
-
function
|
|
566
|
-
if (typeof window > "u" || typeof getComputedStyle != "function") return
|
|
567
|
+
const Ce = 300;
|
|
568
|
+
function rn() {
|
|
569
|
+
if (typeof window > "u" || typeof getComputedStyle != "function") return Ce;
|
|
567
570
|
const n = getComputedStyle(document.documentElement).getPropertyValue("--cms-state-delay").trim(), l = n.endsWith("ms") ? Number.parseFloat(n) : n.endsWith("s") ? Number.parseFloat(n) * 1e3 : Number.NaN;
|
|
568
|
-
return Number.isFinite(l) && l >= 0 ? l :
|
|
571
|
+
return Number.isFinite(l) && l >= 0 ? l : Ce;
|
|
569
572
|
}
|
|
570
|
-
function
|
|
571
|
-
return /* @__PURE__ */
|
|
573
|
+
function cn() {
|
|
574
|
+
return /* @__PURE__ */ c("svg", { className: "cms-state__spinner", viewBox: "0 0 24 24", "aria-hidden": "true", focusable: "false", children: [
|
|
572
575
|
/* @__PURE__ */ e("circle", { className: "cms-state__track", cx: "12", cy: "12", r: "10", fill: "none" }),
|
|
573
576
|
/* @__PURE__ */ e("circle", { className: "cms-state__arc", cx: "12", cy: "12", r: "10", fill: "none", pathLength: "100", strokeDasharray: "28 72" })
|
|
574
577
|
] });
|
|
575
578
|
}
|
|
576
|
-
function
|
|
577
|
-
const [
|
|
578
|
-
return
|
|
579
|
+
function ae({ kind: n, title: l, description: t, action: i, placement: o = "block", icon: s }) {
|
|
580
|
+
const [d, a] = A(n !== "loading");
|
|
581
|
+
return Y(() => {
|
|
579
582
|
if (n !== "loading") {
|
|
580
|
-
|
|
583
|
+
a(!0);
|
|
581
584
|
return;
|
|
582
585
|
}
|
|
583
|
-
|
|
584
|
-
const
|
|
585
|
-
return () => window.clearTimeout(
|
|
586
|
-
}, [n]), /* @__PURE__ */
|
|
586
|
+
a(!1);
|
|
587
|
+
const m = window.setTimeout(() => a(!0), rn());
|
|
588
|
+
return () => window.clearTimeout(m);
|
|
589
|
+
}, [n]), /* @__PURE__ */ c(
|
|
587
590
|
"div",
|
|
588
591
|
{
|
|
589
|
-
className:
|
|
592
|
+
className: $("cms-state", `cms-state--${n}`, `cms-state--${o}`, !d && "is-waiting"),
|
|
590
593
|
role: "status",
|
|
591
594
|
"aria-live": "polite",
|
|
592
595
|
"data-kind": n,
|
|
593
596
|
children: [
|
|
594
|
-
n === "loading" ? /* @__PURE__ */ e(
|
|
595
|
-
n === "error" || n === "denied" ? /* @__PURE__ */ e(
|
|
596
|
-
n === "empty" &&
|
|
597
|
-
/* @__PURE__ */
|
|
597
|
+
n === "loading" ? /* @__PURE__ */ e(cn, {}) : null,
|
|
598
|
+
n === "error" || n === "denied" ? /* @__PURE__ */ e(V, { name: n === "error" ? "warning" : "lock" }) : null,
|
|
599
|
+
n === "empty" && s !== void 0 && de(s) !== null ? /* @__PURE__ */ e("span", { className: "cms-state__icon", "aria-hidden": "true", children: /* @__PURE__ */ e(sn, { name: s, size: o === "page" ? 32 : 24 }) }) : null,
|
|
600
|
+
/* @__PURE__ */ c("span", { className: "cms-state__text", children: [
|
|
598
601
|
/* @__PURE__ */ e("span", { className: "cms-state__title", children: l }),
|
|
599
602
|
t !== void 0 ? /* @__PURE__ */ e("span", { className: "cms-state__description", children: t }) : null
|
|
600
603
|
] }),
|
|
601
|
-
|
|
604
|
+
i !== void 0 && n !== "denied" ? /* @__PURE__ */ e(se, { className: "cms-state__action", onClick: i.onAction, children: i.label }) : null
|
|
602
605
|
]
|
|
603
606
|
}
|
|
604
607
|
);
|
|
605
608
|
}
|
|
606
|
-
const
|
|
607
|
-
function
|
|
609
|
+
const on = 'input, select, textarea, button:not([disabled]), iframe, [href], [tabindex]:not([tabindex="-1"])', dn = 60;
|
|
610
|
+
function un(n) {
|
|
608
611
|
return n instanceof Element && n.closest('input, select, textarea, [contenteditable="true"], [data-viewer-keys]') !== null;
|
|
609
612
|
}
|
|
610
|
-
function
|
|
613
|
+
function mn(n) {
|
|
611
614
|
return n instanceof Element && n.closest("[data-viewer-gestures]") !== null;
|
|
612
615
|
}
|
|
613
|
-
function
|
|
616
|
+
function hn(n) {
|
|
614
617
|
return n.getClientRects().length > 0;
|
|
615
618
|
}
|
|
616
|
-
function
|
|
617
|
-
const { name: l, badge: t, closeLabel:
|
|
618
|
-
|
|
619
|
-
var
|
|
620
|
-
const
|
|
621
|
-
return document.body.style.overflow = "hidden", (
|
|
622
|
-
var
|
|
623
|
-
document.body.style.overflow =
|
|
619
|
+
function ll(n) {
|
|
620
|
+
const { name: l, badge: t, closeLabel: i, onClose: o, actions: s = [], moreLabel: d = "More", edit: a, editing: m, state: v, siblings: u, bar: f, thumbnails: r, strip: h, onZoom: _, children: N } = n, y = H(null), k = H(null), C = G(), [M, b] = A(!1), w = H(null);
|
|
621
|
+
Y(() => {
|
|
622
|
+
var B;
|
|
623
|
+
const x = document.activeElement, D = document.body.style.overflow;
|
|
624
|
+
return document.body.style.overflow = "hidden", (B = k.current) == null || B.focus(), () => {
|
|
625
|
+
var q;
|
|
626
|
+
document.body.style.overflow = D, (q = x == null ? void 0 : x.focus) == null || q.call(x);
|
|
624
627
|
};
|
|
625
628
|
}, []);
|
|
626
|
-
const
|
|
627
|
-
|
|
628
|
-
},
|
|
629
|
-
const
|
|
630
|
-
|
|
631
|
-
},
|
|
632
|
-
var
|
|
633
|
-
const
|
|
634
|
-
if (
|
|
635
|
-
const
|
|
636
|
-
Math.abs(
|
|
629
|
+
const T = () => {
|
|
630
|
+
m != null && m.dirty ? m.onDirtyClose() : o();
|
|
631
|
+
}, O = (x) => {
|
|
632
|
+
const D = x.touches.length === 1 ? x.touches[0] : void 0;
|
|
633
|
+
w.current = D === void 0 || m !== void 0 || mn(x.target) ? null : { x: D.clientX, y: D.clientY };
|
|
634
|
+
}, U = (x) => {
|
|
635
|
+
var z, J;
|
|
636
|
+
const D = w.current, B = x.changedTouches[0];
|
|
637
|
+
if (w.current = null, D === null || B === void 0) return;
|
|
638
|
+
const q = B.clientX - D.x;
|
|
639
|
+
Math.abs(q) < dn || Math.abs(q) < Math.abs(B.clientY - D.y) || (q > 0 ? (z = u == null ? void 0 : u.onPrevious) == null || z.call(u) : (J = u == null ? void 0 : u.onNext) == null || J.call(u));
|
|
637
640
|
};
|
|
638
|
-
return
|
|
639
|
-
/* @__PURE__ */
|
|
641
|
+
return De(
|
|
642
|
+
/* @__PURE__ */ c(
|
|
640
643
|
"div",
|
|
641
644
|
{
|
|
642
|
-
ref:
|
|
643
|
-
className:
|
|
645
|
+
ref: y,
|
|
646
|
+
className: $("cms-viewer", m !== void 0 && "is-editing"),
|
|
644
647
|
role: "dialog",
|
|
645
648
|
"aria-modal": "true",
|
|
646
|
-
"aria-labelledby":
|
|
649
|
+
"aria-labelledby": C,
|
|
647
650
|
tabIndex: -1,
|
|
648
|
-
onKeyDown: (
|
|
649
|
-
var
|
|
650
|
-
if (
|
|
651
|
-
if (
|
|
652
|
-
|
|
653
|
-
} else if (
|
|
654
|
-
const
|
|
655
|
-
if (
|
|
656
|
-
const
|
|
657
|
-
|
|
658
|
-
} else
|
|
651
|
+
onKeyDown: (x) => {
|
|
652
|
+
var D, B, q;
|
|
653
|
+
if (x.key === "Escape") {
|
|
654
|
+
if (m !== void 0) return;
|
|
655
|
+
x.stopPropagation(), M ? b(!1) : o();
|
|
656
|
+
} else if (x.key === "Tab") {
|
|
657
|
+
const z = Array.from(((D = y.current) == null ? void 0 : D.querySelectorAll(on)) ?? []).filter(hn);
|
|
658
|
+
if (z.length === 0) return;
|
|
659
|
+
const J = z[0], Q = z[z.length - 1];
|
|
660
|
+
x.shiftKey && document.activeElement === J ? (x.preventDefault(), Q.focus()) : !x.shiftKey && document.activeElement === Q && (x.preventDefault(), J.focus());
|
|
661
|
+
} else m === void 0 && !un(x.target) && !x.ctrlKey && !x.metaKey && !x.altKey && (x.key === "ArrowLeft" ? (B = u == null ? void 0 : u.onPrevious) == null || B.call(u) : x.key === "ArrowRight" ? (q = u == null ? void 0 : u.onNext) == null || q.call(u) : x.key === "+" || x.key === "=" ? _ == null || _("in") : x.key === "-" ? _ == null || _("out") : x.key === "0" && (_ == null || _("reset")));
|
|
659
662
|
},
|
|
660
663
|
children: [
|
|
661
|
-
|
|
662
|
-
/* @__PURE__ */
|
|
663
|
-
/* @__PURE__ */ e("button", { ref:
|
|
664
|
+
u !== void 0 ? /* @__PURE__ */ e("span", { className: "cms-visually-hidden", role: "status", children: `${l}, ${u.position}` }) : null,
|
|
665
|
+
/* @__PURE__ */ c("header", { className: "cms-viewer__top", children: [
|
|
666
|
+
/* @__PURE__ */ e("button", { ref: k, type: "button", className: "cms-viewer__icon", "aria-label": i, onClick: T, children: /* @__PURE__ */ e(V, { name: "close" }) }),
|
|
664
667
|
/* @__PURE__ */ e("span", { className: "cms-viewer__badge", children: t }),
|
|
665
|
-
/* @__PURE__ */ e("h2", { className: "cms-viewer__name", id:
|
|
666
|
-
|
|
668
|
+
/* @__PURE__ */ e("h2", { className: "cms-viewer__name", id: C, title: l, children: l }),
|
|
669
|
+
u !== void 0 ? /* @__PURE__ */ e("span", { className: "cms-viewer__position", children: u.position }) : null,
|
|
667
670
|
/* @__PURE__ */ e("span", { className: "cms-viewer__space" }),
|
|
668
|
-
|
|
669
|
-
/* @__PURE__ */ e("span", { className: "cms-viewer__status", role: "status", children:
|
|
670
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__button cms-viewer__button--edit", onClick:
|
|
671
|
-
] }) : /* @__PURE__ */
|
|
672
|
-
/* @__PURE__ */ e("span", { className: "cms-viewer__actions", children:
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
] },
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
/* @__PURE__ */ e("span", { className: "cms-viewer__wide", children:
|
|
671
|
+
m !== void 0 ? /* @__PURE__ */ c(E, { children: [
|
|
672
|
+
/* @__PURE__ */ e("span", { className: "cms-viewer__status", role: "status", children: m.status }),
|
|
673
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__button cms-viewer__button--edit", onClick: m.onDone, children: m.doneLabel })
|
|
674
|
+
] }) : /* @__PURE__ */ c(E, { children: [
|
|
675
|
+
/* @__PURE__ */ e("span", { className: "cms-viewer__actions", children: s.map((x) => /* @__PURE__ */ c("button", { type: "button", className: "cms-viewer__button", onClick: x.onSelect, children: [
|
|
676
|
+
x.icon,
|
|
677
|
+
x.label
|
|
678
|
+
] }, x.label)) }),
|
|
679
|
+
a !== void 0 ? /* @__PURE__ */ c("button", { type: "button", className: "cms-viewer__button cms-viewer__button--edit", "aria-label": a.label, onClick: a.onEdit, children: [
|
|
680
|
+
a.icon,
|
|
681
|
+
/* @__PURE__ */ e("span", { className: "cms-viewer__wide", children: a.label })
|
|
679
682
|
] }) : null,
|
|
680
|
-
|
|
681
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__icon", "aria-label":
|
|
682
|
-
|
|
683
|
+
s.length > 0 ? /* @__PURE__ */ c("span", { className: "cms-viewer__more", children: [
|
|
684
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__icon", "aria-label": d, "aria-expanded": M, onClick: () => b((x) => !x), children: /* @__PURE__ */ e(L, { name: "more" }) }),
|
|
685
|
+
M ? /* @__PURE__ */ e("span", { className: "cms-viewer__menu", children: s.map((x) => /* @__PURE__ */ c(
|
|
683
686
|
"button",
|
|
684
687
|
{
|
|
685
688
|
type: "button",
|
|
686
689
|
className: "cms-viewer__button",
|
|
687
690
|
onClick: () => {
|
|
688
|
-
|
|
691
|
+
b(!1), x.onSelect();
|
|
689
692
|
},
|
|
690
693
|
children: [
|
|
691
|
-
|
|
692
|
-
|
|
694
|
+
x.icon,
|
|
695
|
+
x.label
|
|
693
696
|
]
|
|
694
697
|
},
|
|
695
|
-
|
|
698
|
+
x.label
|
|
696
699
|
)) }) : null
|
|
697
700
|
] }) : null
|
|
698
701
|
] })
|
|
699
702
|
] }),
|
|
700
|
-
/* @__PURE__ */
|
|
701
|
-
|
|
702
|
-
/* @__PURE__ */
|
|
703
|
-
(
|
|
704
|
-
/* @__PURE__ */ e("p", { className: "cms-viewer__conflict-text", children:
|
|
705
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__button", onClick:
|
|
706
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__button cms-viewer__button--edit", onClick:
|
|
703
|
+
/* @__PURE__ */ c("div", { className: "cms-viewer__body", children: [
|
|
704
|
+
r != null && m === void 0 ? /* @__PURE__ */ e("nav", { className: "cms-viewer__thumbnails", children: r }) : null,
|
|
705
|
+
/* @__PURE__ */ c("div", { className: "cms-viewer__content", onTouchStart: O, onTouchEnd: U, children: [
|
|
706
|
+
(m == null ? void 0 : m.conflict) !== void 0 ? /* @__PURE__ */ c("div", { className: "cms-viewer__conflict", role: "alert", children: [
|
|
707
|
+
/* @__PURE__ */ e("p", { className: "cms-viewer__conflict-text", children: m.conflict.message }),
|
|
708
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__button", onClick: m.conflict.onOverwrite, children: m.conflict.overwriteLabel }),
|
|
709
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__button cms-viewer__button--edit", onClick: m.conflict.onKeepBoth, children: m.conflict.keepBothLabel })
|
|
707
710
|
] }) : null,
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
711
|
+
v === void 0 ? N : /* @__PURE__ */ e(fn, { state: v }),
|
|
712
|
+
m === void 0 && (u != null && u.onPrevious) ? /* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__side cms-viewer__side--previous", "aria-label": u.previousLabel, title: u.previousLabel, onClick: u.onPrevious, children: /* @__PURE__ */ e(V, { name: "back" }) }) : null,
|
|
713
|
+
m === void 0 && (u != null && u.onNext) ? /* @__PURE__ */ e("button", { type: "button", className: "cms-viewer__side cms-viewer__side--next", "aria-label": u.nextLabel, title: u.nextLabel, onClick: u.onNext, children: /* @__PURE__ */ e(V, { name: "back" }) }) : null,
|
|
714
|
+
m === void 0 && u !== void 0 ? /* @__PURE__ */ e("div", { className: "cms-viewer__dots", "aria-hidden": "true", children: Array.from({ length: Math.min(u.total, 7) }, (x, D) => /* @__PURE__ */ e("i", { className: D === Math.min(u.index, 6) ? "is-current" : void 0 }, D)) }) : null
|
|
712
715
|
] })
|
|
713
716
|
] }),
|
|
714
|
-
|
|
715
|
-
|
|
717
|
+
m === void 0 && h != null ? /* @__PURE__ */ e("div", { className: "cms-viewer__strip", children: h }) : null,
|
|
718
|
+
f != null ? /* @__PURE__ */ e("footer", { className: "cms-viewer__bar", children: f }) : null
|
|
716
719
|
]
|
|
717
720
|
}
|
|
718
721
|
),
|
|
719
722
|
document.body
|
|
720
723
|
);
|
|
721
724
|
}
|
|
722
|
-
function
|
|
725
|
+
function fn({ state: n }) {
|
|
723
726
|
switch (n.kind) {
|
|
724
727
|
case "loading":
|
|
725
|
-
return /* @__PURE__ */ e(
|
|
728
|
+
return /* @__PURE__ */ e(ae, { kind: "loading", title: n.title, placement: "page" });
|
|
726
729
|
case "error":
|
|
727
730
|
return /* @__PURE__ */ e(
|
|
728
|
-
|
|
731
|
+
ae,
|
|
729
732
|
{
|
|
730
733
|
kind: "error",
|
|
731
734
|
title: n.title,
|
|
@@ -736,7 +739,7 @@ function rn({ state: n }) {
|
|
|
736
739
|
);
|
|
737
740
|
case "no-preview":
|
|
738
741
|
return /* @__PURE__ */ e(
|
|
739
|
-
|
|
742
|
+
ae,
|
|
740
743
|
{
|
|
741
744
|
kind: "empty",
|
|
742
745
|
title: n.title,
|
|
@@ -747,179 +750,179 @@ function rn({ state: n }) {
|
|
|
747
750
|
);
|
|
748
751
|
}
|
|
749
752
|
}
|
|
750
|
-
class
|
|
753
|
+
class pn extends Error {
|
|
751
754
|
constructor(l = "denied") {
|
|
752
755
|
super(l), this.name = "FilePickerDenied";
|
|
753
756
|
}
|
|
754
757
|
}
|
|
755
|
-
class
|
|
758
|
+
class bn extends Error {
|
|
756
759
|
constructor(l = "restart") {
|
|
757
760
|
super(l), this.name = "FilePickerRestart";
|
|
758
761
|
}
|
|
759
762
|
}
|
|
760
|
-
const
|
|
761
|
-
${l}`,
|
|
762
|
-
function
|
|
763
|
-
var
|
|
764
|
-
const { open: l, spaces: t, list:
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
}, [l,
|
|
768
|
-
const
|
|
769
|
-
|
|
770
|
-
var
|
|
771
|
-
l && (
|
|
772
|
-
}, [l]),
|
|
773
|
-
if (!l ||
|
|
774
|
-
let
|
|
775
|
-
return
|
|
776
|
-
(
|
|
777
|
-
(
|
|
763
|
+
const Me = (n, l) => `${n}
|
|
764
|
+
${l}`, _n = (n, l) => n === "" ? l : `${n}/${l}`, vn = 48;
|
|
765
|
+
function tl(n) {
|
|
766
|
+
var P, j;
|
|
767
|
+
const { open: l, spaces: t, list: i, disabledReason: o, budget: s, formatSize: d, labels: a, onConfirm: m, onCancel: v } = n, [u, f] = A(((P = t[0]) == null ? void 0 : P.id) ?? ""), [r, h] = A(""), [_, N] = A({ status: "loading" }), [y, k] = A(0), [C, M] = A(/* @__PURE__ */ new Map()), [b, w] = A(0), [T, O] = A(!1), U = H(null), x = H(!1);
|
|
768
|
+
Y(() => {
|
|
769
|
+
x.current = !1;
|
|
770
|
+
}, [l, u, r]);
|
|
771
|
+
const D = G();
|
|
772
|
+
Y(() => {
|
|
773
|
+
var g;
|
|
774
|
+
l && (f(((g = t[0]) == null ? void 0 : g.id) ?? ""), h(""), M(/* @__PURE__ */ new Map()), O(!1));
|
|
775
|
+
}, [l]), Y(() => {
|
|
776
|
+
if (!l || u === "") return;
|
|
777
|
+
let g = !0;
|
|
778
|
+
return N({ status: "loading" }), w(0), i(u, r).then(
|
|
779
|
+
(S) => g && N({ status: "ready", entries: S.entries, next: S.next ?? null, paging: !1 }),
|
|
780
|
+
(S) => g && N({ status: S instanceof pn ? "denied" : "error" })
|
|
778
781
|
), () => {
|
|
779
|
-
|
|
782
|
+
g = !1;
|
|
780
783
|
};
|
|
781
|
-
}, [l,
|
|
782
|
-
const
|
|
783
|
-
if (
|
|
784
|
-
const
|
|
785
|
-
|
|
786
|
-
(
|
|
787
|
-
|
|
784
|
+
}, [l, u, r, i, y]);
|
|
785
|
+
const B = we(() => {
|
|
786
|
+
if (_.status !== "ready" || _.next === null || _.paging) return;
|
|
787
|
+
const g = _.next, S = _.entries;
|
|
788
|
+
N({ ..._, paging: !0 }), i(u, r, g).then(
|
|
789
|
+
(R) => {
|
|
790
|
+
x.current = !1, N({ status: "ready", entries: [...S, ...R.entries], next: R.next ?? null, paging: !1 });
|
|
788
791
|
},
|
|
789
|
-
(
|
|
790
|
-
if (!(
|
|
791
|
-
|
|
792
|
+
(R) => {
|
|
793
|
+
if (!(R instanceof bn)) {
|
|
794
|
+
N({ status: "ready", entries: S, next: g, paging: !1 });
|
|
792
795
|
return;
|
|
793
796
|
}
|
|
794
|
-
if (
|
|
795
|
-
|
|
797
|
+
if (x.current) {
|
|
798
|
+
N({ status: "error" });
|
|
796
799
|
return;
|
|
797
800
|
}
|
|
798
|
-
|
|
801
|
+
x.current = !0, k((W) => W + 1);
|
|
799
802
|
}
|
|
800
803
|
);
|
|
801
|
-
}, [
|
|
802
|
-
var
|
|
803
|
-
return ((
|
|
804
|
-
}, [
|
|
805
|
-
if (
|
|
806
|
-
const
|
|
807
|
-
return
|
|
808
|
-
},
|
|
809
|
-
const
|
|
810
|
-
!
|
|
811
|
-
const
|
|
812
|
-
return
|
|
804
|
+
}, [_, i, u, r]), q = we((g) => {
|
|
805
|
+
var S;
|
|
806
|
+
return ((S = s == null ? void 0 : s.cost) == null ? void 0 : S.call(s, g)) ?? g.size ?? 0;
|
|
807
|
+
}, [s]), z = je(() => [...C.values()], [C]), J = z.reduce((g, S) => g + (S.size ?? 0), 0), Q = s === void 0 ? null : s.limitBytes - s.usedBytes - z.reduce((g, S) => g + q(S), 0), ne = Q !== null && Q < 0, re = (g) => {
|
|
808
|
+
if (g.kind !== "file") return null;
|
|
809
|
+
const S = o == null ? void 0 : o(g);
|
|
810
|
+
return S || (Q !== null && !C.has(Me(u, g.id)) && q(g) > Q ? a.overBudget : null);
|
|
811
|
+
}, _e = (g) => {
|
|
812
|
+
const S = Me(u, g.id);
|
|
813
|
+
!C.has(S) && re(g) !== null || M((R) => {
|
|
814
|
+
const W = new Map(R);
|
|
815
|
+
return W.has(S) ? W.delete(S) : W.set(S, { ...g, space: u, path: r }), W;
|
|
813
816
|
});
|
|
814
|
-
},
|
|
815
|
-
const
|
|
816
|
-
return
|
|
817
|
-
}),
|
|
818
|
-
const
|
|
819
|
-
if (
|
|
820
|
-
|
|
821
|
-
const
|
|
822
|
-
|
|
823
|
-
} else
|
|
824
|
-
},
|
|
825
|
-
return /* @__PURE__ */
|
|
826
|
-
|
|
817
|
+
}, ve = (g) => h(_n(r, g.name)), le = () => h(r.includes("/") ? r.slice(0, r.lastIndexOf("/")) : ""), ke = (g) => M((S) => {
|
|
818
|
+
const R = new Map(S);
|
|
819
|
+
return R.delete(g), R;
|
|
820
|
+
}), te = _.status === "ready" ? _.entries : [], p = (g) => {
|
|
821
|
+
const S = te[b];
|
|
822
|
+
if (g.key === "ArrowDown" || g.key === "ArrowUp" || g.key === "Home" || g.key === "End") {
|
|
823
|
+
g.preventDefault();
|
|
824
|
+
const R = te.length - 1, W = g.key === "Home" ? 0 : g.key === "End" ? R : Math.min(R, Math.max(0, b + (g.key === "ArrowDown" ? 1 : -1)));
|
|
825
|
+
w(W), W >= R - 1 && B();
|
|
826
|
+
} else g.key === "Enter" && (S == null ? void 0 : S.kind) === "folder" ? (g.preventDefault(), ve(S)) : g.key === " " && (S == null ? void 0 : S.kind) === "file" ? (g.preventDefault(), _e(S)) : g.key === "Backspace" && r !== "" && (g.preventDefault(), le());
|
|
827
|
+
}, I = r === "" ? [] : r.split("/"), K = ((j = t.find((g) => g.id === u)) == null ? void 0 : j.name) ?? "", X = (g) => `${D}-entry-${String(g)}`;
|
|
828
|
+
return /* @__PURE__ */ c(
|
|
829
|
+
ze,
|
|
827
830
|
{
|
|
828
831
|
open: l,
|
|
829
|
-
title:
|
|
830
|
-
onClose:
|
|
831
|
-
closeLabel:
|
|
832
|
-
initialFocus:
|
|
832
|
+
title: a.title,
|
|
833
|
+
onClose: v,
|
|
834
|
+
closeLabel: a.close,
|
|
835
|
+
initialFocus: U,
|
|
833
836
|
className: "cms-file-picker",
|
|
834
|
-
footer: /* @__PURE__ */
|
|
835
|
-
/* @__PURE__ */
|
|
836
|
-
|
|
837
|
-
|
|
837
|
+
footer: /* @__PURE__ */ c("div", { className: "cms-file-picker__foot", children: [
|
|
838
|
+
/* @__PURE__ */ c("div", { className: "cms-file-picker__summary", "aria-live": "polite", children: [
|
|
839
|
+
z.length > 0 ? /* @__PURE__ */ e("span", { children: a.total(z.length, d(J)) }) : null,
|
|
840
|
+
s !== void 0 && Q !== null ? /* @__PURE__ */ e("span", { className: $(ne && "is-over"), children: ne ? a.overBudget : a.left(d(Math.max(0, Q)), d(s.limitBytes)) }) : null
|
|
838
841
|
] }),
|
|
839
|
-
/* @__PURE__ */
|
|
840
|
-
/* @__PURE__ */ e(
|
|
841
|
-
/* @__PURE__ */ e(
|
|
842
|
+
/* @__PURE__ */ c("div", { className: "cms-file-picker__actions", children: [
|
|
843
|
+
/* @__PURE__ */ e(se, { variant: "secondary", onClick: v, children: a.cancel }),
|
|
844
|
+
/* @__PURE__ */ e(se, { variant: "primary", disabled: z.length === 0 || ne, onClick: () => m(z), children: a.confirm(z.length) })
|
|
842
845
|
] })
|
|
843
846
|
] }),
|
|
844
847
|
children: [
|
|
845
|
-
/* @__PURE__ */
|
|
846
|
-
t.length > 1 ? /* @__PURE__ */
|
|
847
|
-
/* @__PURE__ */ e("span", { className: "cms-visually-hidden", children:
|
|
848
|
-
/* @__PURE__ */ e("select", { className: "cms-input cms-select", value:
|
|
849
|
-
|
|
850
|
-
}, children: t.map((
|
|
848
|
+
/* @__PURE__ */ c("div", { className: "cms-file-picker__top", children: [
|
|
849
|
+
t.length > 1 ? /* @__PURE__ */ c("label", { className: "cms-file-picker__space", children: [
|
|
850
|
+
/* @__PURE__ */ e("span", { className: "cms-visually-hidden", children: a.space }),
|
|
851
|
+
/* @__PURE__ */ e("select", { className: "cms-input cms-select", value: u, onChange: (g) => {
|
|
852
|
+
f(g.target.value), h("");
|
|
853
|
+
}, children: t.map((g) => /* @__PURE__ */ e("option", { value: g.id, children: g.name }, g.id)) })
|
|
851
854
|
] }) : null,
|
|
852
|
-
/* @__PURE__ */
|
|
853
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button", "aria-label":
|
|
854
|
-
/* @__PURE__ */
|
|
855
|
-
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("button", { type: "button", className: "cms-file-picker__crumb", "aria-current":
|
|
856
|
-
|
|
857
|
-
const
|
|
858
|
-
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("button", { type: "button", className: "cms-file-picker__crumb", "aria-current":
|
|
855
|
+
/* @__PURE__ */ c("nav", { className: "cms-file-picker__path", "aria-label": a.path, children: [
|
|
856
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button", "aria-label": a.up, disabled: r === "", onClick: le, children: /* @__PURE__ */ e(L, { name: "chevron-left" }) }),
|
|
857
|
+
/* @__PURE__ */ c("ol", { children: [
|
|
858
|
+
/* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("button", { type: "button", className: "cms-file-picker__crumb", "aria-current": r === "" ? "location" : void 0, onClick: () => h(""), children: K }) }),
|
|
859
|
+
I.map((g, S) => {
|
|
860
|
+
const R = I.slice(0, S + 1).join("/");
|
|
861
|
+
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e("button", { type: "button", className: "cms-file-picker__crumb", "aria-current": R === r ? "location" : void 0, onClick: () => h(R), children: g }) }, R);
|
|
859
862
|
})
|
|
860
863
|
] })
|
|
861
864
|
] }),
|
|
862
|
-
|
|
865
|
+
z.length > 0 ? /* @__PURE__ */ e("button", { type: "button", className: "cms-file-picker__chip", "aria-expanded": T, onClick: () => O((g) => !g), children: a.selected(z.length) }) : null
|
|
863
866
|
] }),
|
|
864
|
-
|
|
865
|
-
/* @__PURE__ */ e("ul", { children: [...
|
|
866
|
-
/* @__PURE__ */ e("span", { className: "cms-file-picker__name", children:
|
|
867
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button", "aria-label":
|
|
868
|
-
] },
|
|
869
|
-
/* @__PURE__ */ e(
|
|
870
|
-
|
|
871
|
-
}, children:
|
|
867
|
+
T && z.length > 0 ? /* @__PURE__ */ c("div", { className: "cms-file-picker__chosen", children: [
|
|
868
|
+
/* @__PURE__ */ e("ul", { children: [...C.entries()].map(([g, S]) => /* @__PURE__ */ c("li", { children: [
|
|
869
|
+
/* @__PURE__ */ e("span", { className: "cms-file-picker__name", children: S.name }),
|
|
870
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button", "aria-label": a.remove(S.name), onClick: () => ke(g), children: /* @__PURE__ */ e(V, { name: "close" }) })
|
|
871
|
+
] }, g)) }),
|
|
872
|
+
/* @__PURE__ */ e(se, { variant: "secondary", onClick: () => {
|
|
873
|
+
M(/* @__PURE__ */ new Map()), O(!1);
|
|
874
|
+
}, children: a.clear })
|
|
872
875
|
] }) : null,
|
|
873
|
-
/* @__PURE__ */
|
|
874
|
-
const
|
|
875
|
-
|
|
876
|
+
/* @__PURE__ */ c("div", { className: "cms-file-picker__list", onScroll: (g) => {
|
|
877
|
+
const S = g.currentTarget;
|
|
878
|
+
S.scrollTop + S.clientHeight >= S.scrollHeight - vn && B();
|
|
876
879
|
}, children: [
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
+
_.status === "loading" ? /* @__PURE__ */ e(ae, { kind: "loading", title: a.loading, placement: "block" }) : null,
|
|
881
|
+
_.status === "error" ? /* @__PURE__ */ e(ae, { kind: "error", title: a.error, placement: "block", action: { label: a.retry, onAction: () => {
|
|
882
|
+
x.current = !1, k((g) => g + 1);
|
|
880
883
|
} } }) : null,
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
/* @__PURE__ */
|
|
884
|
+
_.status === "denied" ? /* @__PURE__ */ e(ae, { kind: "denied", title: a.denied, placement: "block" }) : null,
|
|
885
|
+
_.status === "ready" && te.length === 0 ? /* @__PURE__ */ e(ae, { kind: "empty", title: a.empty, placement: "block" }) : null,
|
|
886
|
+
/* @__PURE__ */ c(
|
|
884
887
|
"div",
|
|
885
888
|
{
|
|
886
|
-
ref:
|
|
889
|
+
ref: U,
|
|
887
890
|
role: "listbox",
|
|
888
891
|
"aria-multiselectable": "true",
|
|
889
|
-
"aria-label":
|
|
890
|
-
"aria-activedescendant":
|
|
892
|
+
"aria-label": a.files,
|
|
893
|
+
"aria-activedescendant": te.length > 0 ? X(b) : void 0,
|
|
891
894
|
tabIndex: 0,
|
|
892
895
|
className: "cms-file-picker__entries",
|
|
893
|
-
hidden:
|
|
894
|
-
onKeyDown:
|
|
896
|
+
hidden: _.status !== "ready" || te.length === 0,
|
|
897
|
+
onKeyDown: p,
|
|
895
898
|
children: [
|
|
896
|
-
|
|
897
|
-
const
|
|
898
|
-
return /* @__PURE__ */
|
|
899
|
+
te.map((g, S) => {
|
|
900
|
+
const R = g.kind === "file" && C.has(Me(u, g.id)), W = re(g);
|
|
901
|
+
return /* @__PURE__ */ c(
|
|
899
902
|
"div",
|
|
900
903
|
{
|
|
901
|
-
id:
|
|
904
|
+
id: X(S),
|
|
902
905
|
role: "option",
|
|
903
|
-
"aria-selected":
|
|
904
|
-
"aria-disabled":
|
|
905
|
-
className:
|
|
906
|
+
"aria-selected": g.kind === "file" ? R : void 0,
|
|
907
|
+
"aria-disabled": W !== null || void 0,
|
|
908
|
+
className: $("cms-file-picker__entry", S === b && "is-active", R && "is-ticked", W !== null && "is-disabled"),
|
|
906
909
|
onClick: () => {
|
|
907
|
-
|
|
910
|
+
w(S), g.kind === "folder" ? ve(g) : _e(g);
|
|
908
911
|
},
|
|
909
912
|
children: [
|
|
910
|
-
/* @__PURE__ */ e("span", { className: "cms-file-picker__tick", "aria-hidden": "true", children:
|
|
911
|
-
/* @__PURE__ */ e(
|
|
912
|
-
/* @__PURE__ */
|
|
913
|
-
/* @__PURE__ */ e("span", { className: "cms-file-picker__name", children:
|
|
914
|
-
|
|
913
|
+
/* @__PURE__ */ e("span", { className: "cms-file-picker__tick", "aria-hidden": "true", children: R ? /* @__PURE__ */ e(L, { name: "check" }) : null }),
|
|
914
|
+
/* @__PURE__ */ e(L, { name: g.kind === "folder" ? "folder" : "file" }),
|
|
915
|
+
/* @__PURE__ */ c("span", { className: "cms-file-picker__text", children: [
|
|
916
|
+
/* @__PURE__ */ e("span", { className: "cms-file-picker__name", children: g.name }),
|
|
917
|
+
W !== null ? /* @__PURE__ */ e("span", { className: "cms-file-picker__reason", children: W }) : null
|
|
915
918
|
] }),
|
|
916
|
-
|
|
919
|
+
g.kind === "file" && g.size != null ? /* @__PURE__ */ e("span", { className: "cms-file-picker__size", children: d(g.size) }) : null
|
|
917
920
|
]
|
|
918
921
|
},
|
|
919
|
-
|
|
922
|
+
g.id
|
|
920
923
|
);
|
|
921
924
|
}),
|
|
922
|
-
|
|
925
|
+
_.status === "ready" && _.paging ? /* @__PURE__ */ e("div", { className: "cms-file-picker__paging", children: /* @__PURE__ */ e(ae, { kind: "loading", title: a.loading, placement: "inline" }) }) : null
|
|
923
926
|
]
|
|
924
927
|
}
|
|
925
928
|
)
|
|
@@ -928,166 +931,166 @@ function jn(n) {
|
|
|
928
931
|
}
|
|
929
932
|
);
|
|
930
933
|
}
|
|
931
|
-
const
|
|
932
|
-
function
|
|
934
|
+
const Se = 64;
|
|
935
|
+
function gn(n, l) {
|
|
933
936
|
for (let t = n instanceof Element ? n : null; t !== null; t = t.parentElement) {
|
|
934
937
|
if (t instanceof HTMLElement && t.scrollTop > 0) return !1;
|
|
935
938
|
if (t === l) return !0;
|
|
936
939
|
}
|
|
937
940
|
return l.scrollTop <= 0;
|
|
938
941
|
}
|
|
939
|
-
function
|
|
940
|
-
const [t,
|
|
941
|
-
return
|
|
942
|
-
const
|
|
943
|
-
if (
|
|
944
|
-
let
|
|
945
|
-
const
|
|
946
|
-
|
|
947
|
-
},
|
|
948
|
-
if (
|
|
949
|
-
const
|
|
950
|
-
if (
|
|
951
|
-
|
|
942
|
+
function Nn(n, l) {
|
|
943
|
+
const [t, i] = A(0), o = H(l);
|
|
944
|
+
return o.current = l, Y(() => {
|
|
945
|
+
const s = n.current;
|
|
946
|
+
if (s === null) return;
|
|
947
|
+
let d = null, a = 0;
|
|
948
|
+
const m = (f) => {
|
|
949
|
+
d = gn(f.target, s) && f.touches.length === 1 ? f.touches[0].clientY : null, a = 0;
|
|
950
|
+
}, v = (f) => {
|
|
951
|
+
if (d === null || o.current === null) return;
|
|
952
|
+
const r = f.touches[0].clientY - d;
|
|
953
|
+
if (r <= 0) {
|
|
954
|
+
d = null, i(0);
|
|
952
955
|
return;
|
|
953
956
|
}
|
|
954
|
-
|
|
955
|
-
},
|
|
956
|
-
var
|
|
957
|
-
|
|
957
|
+
f.cancelable && f.preventDefault(), a = Math.min(r * 0.6, Se * 1.5), i(a);
|
|
958
|
+
}, u = () => {
|
|
959
|
+
var f;
|
|
960
|
+
d !== null && a >= Se && ((f = o.current) == null || f.call(o)), d = null, a = 0, i(0);
|
|
958
961
|
};
|
|
959
|
-
return
|
|
960
|
-
|
|
962
|
+
return s.addEventListener("touchstart", m, { passive: !0 }), s.addEventListener("touchmove", v, { passive: !1 }), s.addEventListener("touchend", u), s.addEventListener("touchcancel", u), () => {
|
|
963
|
+
s.removeEventListener("touchstart", m), s.removeEventListener("touchmove", v), s.removeEventListener("touchend", u), s.removeEventListener("touchcancel", u);
|
|
961
964
|
};
|
|
962
965
|
}, [n]), t;
|
|
963
966
|
}
|
|
964
|
-
const
|
|
965
|
-
function
|
|
966
|
-
return
|
|
967
|
-
}
|
|
968
|
-
function
|
|
969
|
-
const
|
|
970
|
-
if (t != null) return /* @__PURE__ */ e(
|
|
971
|
-
if (l === null) return /* @__PURE__ */ e(
|
|
972
|
-
if (l.length === 0) return /* @__PURE__ */ e(
|
|
973
|
-
const
|
|
974
|
-
var
|
|
975
|
-
if (
|
|
976
|
-
|
|
977
|
-
else if (
|
|
978
|
-
|
|
979
|
-
else if ((
|
|
980
|
-
|
|
981
|
-
const
|
|
982
|
-
|
|
967
|
+
const Ze = Ye(null);
|
|
968
|
+
function wn() {
|
|
969
|
+
return qe(Ze);
|
|
970
|
+
}
|
|
971
|
+
function al({ label: n, rows: l, error: t, onRetry: i, loadingText: o = "Loading", emptyTitle: s = "Nothing here yet", emptyHint: d, selected: a, onOpen: m, onRowMenu: v }) {
|
|
972
|
+
const u = H([]), f = wn();
|
|
973
|
+
if (t != null) return /* @__PURE__ */ e(tn, { message: t, onRetry: i });
|
|
974
|
+
if (l === null) return /* @__PURE__ */ e(nn, { what: o, layout: "block" });
|
|
975
|
+
if (l.length === 0) return /* @__PURE__ */ e(ln, { title: s, hint: d });
|
|
976
|
+
const r = (h, _, N) => {
|
|
977
|
+
var y;
|
|
978
|
+
if (h.key === "ArrowDown" || h.key === "ArrowUp")
|
|
979
|
+
h.preventDefault(), (y = u.current[Math.min(l.length - 1, Math.max(0, _ + (h.key === "ArrowDown" ? 1 : -1)))]) == null || y.focus();
|
|
980
|
+
else if (h.key === "Enter")
|
|
981
|
+
m == null || m(N);
|
|
982
|
+
else if ((h.key === "ContextMenu" || h.shiftKey && h.key === "F10") && v) {
|
|
983
|
+
h.preventDefault();
|
|
984
|
+
const k = h.currentTarget.getBoundingClientRect();
|
|
985
|
+
v(N, { x: k.left + 16, y: k.bottom });
|
|
983
986
|
}
|
|
984
987
|
};
|
|
985
|
-
return /* @__PURE__ */
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
988
|
+
return /* @__PURE__ */ c(E, { children: [
|
|
989
|
+
f !== null && (f.distance > 0 || f.refreshing) ? /* @__PURE__ */ c("div", { className: "cms-list__pull", role: "status", style: { height: f.refreshing ? void 0 : f.distance }, "data-ready": f.distance >= Se ? "" : void 0, children: [
|
|
990
|
+
f.refreshing ? /* @__PURE__ */ e(V, { name: "spinner" }) : null,
|
|
991
|
+
f.text != null ? /* @__PURE__ */ e("span", { className: "cms-list__pull-text", children: f.text }) : null
|
|
989
992
|
] }) : null,
|
|
990
|
-
/* @__PURE__ */ e("ul", { className: "cms-list", role: "listbox", "aria-label": n, children: l.map((
|
|
991
|
-
const
|
|
992
|
-
return /* @__PURE__ */
|
|
993
|
+
/* @__PURE__ */ e("ul", { className: "cms-list", role: "listbox", "aria-label": n, children: l.map((h, _) => {
|
|
994
|
+
const N = h.id === a;
|
|
995
|
+
return /* @__PURE__ */ c(
|
|
993
996
|
"li",
|
|
994
997
|
{
|
|
995
|
-
ref: (
|
|
996
|
-
|
|
998
|
+
ref: (y) => {
|
|
999
|
+
u.current[_] = y;
|
|
997
1000
|
},
|
|
998
1001
|
role: "option",
|
|
999
|
-
"aria-selected":
|
|
1000
|
-
tabIndex:
|
|
1001
|
-
className:
|
|
1002
|
-
onClick: () =>
|
|
1003
|
-
onKeyDown: (
|
|
1004
|
-
onContextMenu:
|
|
1005
|
-
|
|
1002
|
+
"aria-selected": N,
|
|
1003
|
+
tabIndex: N || a == null && _ === 0 ? 0 : -1,
|
|
1004
|
+
className: $("cms-list__row", N && "is-selected"),
|
|
1005
|
+
onClick: () => m == null ? void 0 : m(h.id),
|
|
1006
|
+
onKeyDown: (y) => r(y, _, h.id),
|
|
1007
|
+
onContextMenu: v ? (y) => {
|
|
1008
|
+
y.preventDefault(), v(h.id, { x: y.clientX, y: y.clientY });
|
|
1006
1009
|
} : void 0,
|
|
1007
1010
|
children: [
|
|
1008
|
-
|
|
1009
|
-
/* @__PURE__ */
|
|
1010
|
-
/* @__PURE__ */ e("span", { className:
|
|
1011
|
-
|
|
1011
|
+
h.lead != null ? /* @__PURE__ */ e("span", { className: "cms-list__lead", children: h.lead }) : null,
|
|
1012
|
+
/* @__PURE__ */ c("span", { className: "cms-list__text", children: [
|
|
1013
|
+
/* @__PURE__ */ e("span", { className: $("cms-list__primary", h.unread === !0 && "is-unread"), children: h.primary }),
|
|
1014
|
+
h.secondary != null ? /* @__PURE__ */ e("span", { className: "cms-list__secondary", children: h.secondary }) : null
|
|
1012
1015
|
] }),
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
+
h.meta != null || h.count !== void 0 ? /* @__PURE__ */ c("span", { className: "cms-list__end", children: [
|
|
1017
|
+
h.meta != null ? /* @__PURE__ */ e("span", { className: "cms-list__meta", children: h.meta }) : null,
|
|
1018
|
+
h.count !== void 0 && h.count > 0 ? /* @__PURE__ */ e("span", { className: "cms-badge cms-list__count", children: h.count }) : null
|
|
1016
1019
|
] }) : null
|
|
1017
1020
|
]
|
|
1018
1021
|
},
|
|
1019
|
-
|
|
1022
|
+
h.id
|
|
1020
1023
|
);
|
|
1021
1024
|
}) })
|
|
1022
1025
|
] });
|
|
1023
1026
|
}
|
|
1024
|
-
function
|
|
1025
|
-
const
|
|
1026
|
-
if (
|
|
1027
|
+
function pe({ at: n, items: l, onClose: t, label: i = "Actions", focus: o = "first" }) {
|
|
1028
|
+
const s = H(null), d = H(null), a = G(), [m, v] = A(n), u = l.filter((r) => r.offer.offered);
|
|
1029
|
+
if (fe(() => {
|
|
1027
1030
|
if (!n) return;
|
|
1028
|
-
const
|
|
1029
|
-
|
|
1030
|
-
}, [n]),
|
|
1031
|
-
var
|
|
1031
|
+
const r = s.current, h = (r == null ? void 0 : r.offsetWidth) ?? 0, _ = (r == null ? void 0 : r.offsetHeight) ?? 0;
|
|
1032
|
+
v({ x: Math.max(0, Math.min(n.x, window.innerWidth - h)), y: Math.max(0, Math.min(n.y, window.innerHeight - _)) });
|
|
1033
|
+
}, [n]), Y(() => {
|
|
1034
|
+
var _, N;
|
|
1032
1035
|
if (!n) return;
|
|
1033
|
-
|
|
1034
|
-
const
|
|
1035
|
-
(
|
|
1036
|
-
const
|
|
1037
|
-
var
|
|
1038
|
-
(
|
|
1036
|
+
d.current = document.activeElement;
|
|
1037
|
+
const r = Array.from(((_ = s.current) == null ? void 0 : _.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])')) ?? []);
|
|
1038
|
+
(N = o === "last" ? r[r.length - 1] : r[0]) == null || N.focus();
|
|
1039
|
+
const h = (y) => {
|
|
1040
|
+
var k;
|
|
1041
|
+
(k = s.current) != null && k.contains(y.target) || t();
|
|
1039
1042
|
};
|
|
1040
|
-
return document.addEventListener("mousedown",
|
|
1041
|
-
var
|
|
1042
|
-
document.removeEventListener("mousedown",
|
|
1043
|
+
return document.addEventListener("mousedown", h), () => {
|
|
1044
|
+
var y, k;
|
|
1045
|
+
document.removeEventListener("mousedown", h), (k = (y = d.current) == null ? void 0 : y.focus) == null || k.call(y);
|
|
1043
1046
|
};
|
|
1044
|
-
}, [n, t,
|
|
1045
|
-
const
|
|
1046
|
-
var
|
|
1047
|
-
const
|
|
1048
|
-
if (
|
|
1049
|
-
|
|
1050
|
-
else if (
|
|
1051
|
-
|
|
1052
|
-
const
|
|
1053
|
-
(
|
|
1047
|
+
}, [n, t, o]), !n || u.length === 0) return null;
|
|
1048
|
+
const f = (r) => {
|
|
1049
|
+
var N, y;
|
|
1050
|
+
const h = Array.from(((N = s.current) == null ? void 0 : N.querySelectorAll('[role="menuitem"]')) ?? []), _ = h.indexOf(document.activeElement);
|
|
1051
|
+
if (r.key === "Escape" || r.key === "Tab")
|
|
1052
|
+
r.preventDefault(), t();
|
|
1053
|
+
else if (r.key === "ArrowDown" || r.key === "ArrowUp") {
|
|
1054
|
+
r.preventDefault();
|
|
1055
|
+
const k = r.key === "ArrowDown" ? 1 : -1;
|
|
1056
|
+
(y = h[(_ + k + h.length) % h.length]) == null || y.focus();
|
|
1054
1057
|
}
|
|
1055
1058
|
};
|
|
1056
|
-
return
|
|
1059
|
+
return De(
|
|
1057
1060
|
/* @__PURE__ */ e(
|
|
1058
1061
|
"div",
|
|
1059
1062
|
{
|
|
1060
|
-
ref:
|
|
1063
|
+
ref: s,
|
|
1061
1064
|
className: "cms-menu",
|
|
1062
1065
|
role: "menu",
|
|
1063
|
-
"aria-label":
|
|
1064
|
-
style: { left: (
|
|
1065
|
-
onKeyDown:
|
|
1066
|
-
onContextMenu: (
|
|
1067
|
-
children:
|
|
1068
|
-
const
|
|
1069
|
-
return /* @__PURE__ */
|
|
1066
|
+
"aria-label": i,
|
|
1067
|
+
style: { left: (m ?? n).x, top: (m ?? n).y },
|
|
1068
|
+
onKeyDown: f,
|
|
1069
|
+
onContextMenu: (r) => r.preventDefault(),
|
|
1070
|
+
children: u.map((r) => {
|
|
1071
|
+
const h = r.offer.refusal !== void 0;
|
|
1072
|
+
return /* @__PURE__ */ c(
|
|
1070
1073
|
"div",
|
|
1071
1074
|
{
|
|
1072
1075
|
role: "menuitem",
|
|
1073
1076
|
tabIndex: -1,
|
|
1074
|
-
"aria-disabled":
|
|
1075
|
-
"aria-describedby":
|
|
1076
|
-
title:
|
|
1077
|
-
className:
|
|
1077
|
+
"aria-disabled": h || void 0,
|
|
1078
|
+
"aria-describedby": h ? `${a}-${r.id}` : void 0,
|
|
1079
|
+
title: h ? r.offer.refusal : void 0,
|
|
1080
|
+
className: $("cms-menu__item", r.danger && "is-danger", r.offer.locked && "is-locked", h && "is-refused"),
|
|
1078
1081
|
onClick: () => {
|
|
1079
|
-
|
|
1082
|
+
h || (t(), r.onSelect());
|
|
1080
1083
|
},
|
|
1081
|
-
onKeyDown: (
|
|
1082
|
-
(
|
|
1084
|
+
onKeyDown: (_) => {
|
|
1085
|
+
(_.key === "Enter" || _.key === " ") && !h && (_.preventDefault(), t(), r.onSelect());
|
|
1083
1086
|
},
|
|
1084
1087
|
children: [
|
|
1085
|
-
|
|
1086
|
-
/* @__PURE__ */ e("span", { className: "cms-menu__label", children:
|
|
1087
|
-
|
|
1088
|
+
r.offer.locked ? /* @__PURE__ */ e(V, { name: "lock" }) : null,
|
|
1089
|
+
/* @__PURE__ */ e("span", { className: "cms-menu__label", children: r.label }),
|
|
1090
|
+
h ? /* @__PURE__ */ e("span", { id: `${a}-${r.id}`, className: "cms-menu__refusal", children: r.offer.refusal }) : null
|
|
1088
1091
|
]
|
|
1089
1092
|
},
|
|
1090
|
-
|
|
1093
|
+
r.id
|
|
1091
1094
|
);
|
|
1092
1095
|
})
|
|
1093
1096
|
}
|
|
@@ -1095,92 +1098,92 @@ function ve({ at: n, items: l, onClose: t, label: d = "Actions", focus: c = "fir
|
|
|
1095
1098
|
document.body
|
|
1096
1099
|
);
|
|
1097
1100
|
}
|
|
1098
|
-
function
|
|
1099
|
-
var
|
|
1100
|
-
const [
|
|
1101
|
-
const
|
|
1102
|
-
|
|
1101
|
+
function sl({ title: n, icon: l, primary: t, more: i = [], moreLabel: o, context: s, fullWidth: d = !1 }) {
|
|
1102
|
+
var y, k, C;
|
|
1103
|
+
const [a, m] = A(null), v = G(), u = i.filter((M) => M.offer.offered), f = (y = t == null ? void 0 : t.offer) == null ? void 0 : y.refusal, r = t !== void 0 && (((k = t.offer) == null ? void 0 : k.offered) === !1 || f !== void 0), h = t !== void 0 && "menu" in t ? t.menu.filter((M) => M.offer.offered) : [], _ = t !== void 0 && "menu" in t && h.length > 0 ? t : null, N = (M, b) => {
|
|
1104
|
+
const w = b.getBoundingClientRect();
|
|
1105
|
+
m((a == null ? void 0 : a.which) === M ? null : { which: M, x: w.left, y: w.bottom + 4 });
|
|
1103
1106
|
};
|
|
1104
|
-
return /* @__PURE__ */
|
|
1105
|
-
/* @__PURE__ */
|
|
1106
|
-
l !== void 0 ? /* @__PURE__ */ e(
|
|
1107
|
+
return /* @__PURE__ */ c("header", { className: `cms-section-header${d ? " cms-section-header--full" : ""}`, children: [
|
|
1108
|
+
/* @__PURE__ */ c("div", { className: "cms-section-header__row", "data-row": "1", children: [
|
|
1109
|
+
l !== void 0 ? /* @__PURE__ */ e(L, { name: l }) : null,
|
|
1107
1110
|
/* @__PURE__ */ e("h1", { className: "cms-section-header__title", title: n, children: n }),
|
|
1108
|
-
/* @__PURE__ */
|
|
1109
|
-
t !== void 0 && ((
|
|
1110
|
-
/* @__PURE__ */
|
|
1111
|
+
/* @__PURE__ */ c("div", { className: "cms-section-header__actions", children: [
|
|
1112
|
+
t !== void 0 && ((C = t.offer) == null ? void 0 : C.offered) !== !1 ? /* @__PURE__ */ c("span", { className: `cms-section-header__primary${_ !== null ? " cms-section-header__primary--split" : ""}`, children: [
|
|
1113
|
+
/* @__PURE__ */ c(
|
|
1111
1114
|
"button",
|
|
1112
1115
|
{
|
|
1113
1116
|
type: "button",
|
|
1114
1117
|
className: "cms-button cms-button--primary",
|
|
1115
1118
|
"data-action": "primary",
|
|
1116
|
-
"aria-disabled":
|
|
1117
|
-
"aria-describedby":
|
|
1118
|
-
title:
|
|
1119
|
+
"aria-disabled": r ? "true" : void 0,
|
|
1120
|
+
"aria-describedby": f !== void 0 ? v : void 0,
|
|
1121
|
+
title: f,
|
|
1119
1122
|
onClick: () => {
|
|
1120
|
-
|
|
1123
|
+
r || t.onPress();
|
|
1121
1124
|
},
|
|
1122
1125
|
children: [
|
|
1123
|
-
/* @__PURE__ */ e(
|
|
1126
|
+
/* @__PURE__ */ e(L, { name: t.icon }),
|
|
1124
1127
|
" ",
|
|
1125
1128
|
/* @__PURE__ */ e("span", { children: t.label })
|
|
1126
1129
|
]
|
|
1127
1130
|
}
|
|
1128
1131
|
),
|
|
1129
|
-
|
|
1132
|
+
_ !== null ? /* @__PURE__ */ e(
|
|
1130
1133
|
"button",
|
|
1131
1134
|
{
|
|
1132
1135
|
type: "button",
|
|
1133
1136
|
className: "cms-button cms-button--primary cms-section-header__split",
|
|
1134
1137
|
"data-action": "primary-menu",
|
|
1135
1138
|
"aria-haspopup": "menu",
|
|
1136
|
-
"aria-expanded": (
|
|
1137
|
-
"aria-label":
|
|
1138
|
-
onClick: (
|
|
1139
|
-
children: /* @__PURE__ */ e(
|
|
1139
|
+
"aria-expanded": (a == null ? void 0 : a.which) === "primary",
|
|
1140
|
+
"aria-label": _.menuLabel,
|
|
1141
|
+
onClick: (M) => N("primary", M.currentTarget),
|
|
1142
|
+
children: /* @__PURE__ */ e(L, { name: "chevron-down" })
|
|
1140
1143
|
}
|
|
1141
1144
|
) : null,
|
|
1142
|
-
|
|
1145
|
+
f !== void 0 ? /* @__PURE__ */ e("span", { id: v, className: "cms-visually-hidden", children: f }) : null
|
|
1143
1146
|
] }) : null,
|
|
1144
|
-
|
|
1147
|
+
u.length > 0 ? /* @__PURE__ */ e(
|
|
1145
1148
|
"button",
|
|
1146
1149
|
{
|
|
1147
1150
|
type: "button",
|
|
1148
1151
|
className: "cms-section-header__more",
|
|
1149
1152
|
"data-action": "more",
|
|
1150
1153
|
"aria-haspopup": "menu",
|
|
1151
|
-
"aria-expanded": (
|
|
1152
|
-
"aria-label":
|
|
1153
|
-
title:
|
|
1154
|
-
onClick: (
|
|
1155
|
-
children: /* @__PURE__ */ e(
|
|
1154
|
+
"aria-expanded": (a == null ? void 0 : a.which) === "more",
|
|
1155
|
+
"aria-label": o,
|
|
1156
|
+
title: o,
|
|
1157
|
+
onClick: (M) => N("more", M.currentTarget),
|
|
1158
|
+
children: /* @__PURE__ */ e(L, { name: "more" })
|
|
1156
1159
|
}
|
|
1157
1160
|
) : null
|
|
1158
1161
|
] })
|
|
1159
1162
|
] }),
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
/* @__PURE__ */ e(
|
|
1163
|
+
s != null ? /* @__PURE__ */ e("div", { className: "cms-section-header__context", "data-row": "2", children: s }) : null,
|
|
1164
|
+
_ !== null ? /* @__PURE__ */ e(pe, { at: (a == null ? void 0 : a.which) === "primary" ? a : null, items: h, onClose: () => m(null), label: _.menuLabel }) : null,
|
|
1165
|
+
/* @__PURE__ */ e(pe, { at: (a == null ? void 0 : a.which) === "more" ? a : null, items: i, onClose: () => m(null), label: o })
|
|
1163
1166
|
] });
|
|
1164
1167
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return /* @__PURE__ */
|
|
1167
|
-
|
|
1168
|
+
function rl({ title: n, scope: l, actions: t, backLink: i }) {
|
|
1169
|
+
return /* @__PURE__ */ c("header", { className: "cms-page-header", children: [
|
|
1170
|
+
i ? /* @__PURE__ */ c(
|
|
1168
1171
|
"a",
|
|
1169
1172
|
{
|
|
1170
1173
|
className: "cms-page-header__back",
|
|
1171
|
-
href:
|
|
1172
|
-
onClick: (
|
|
1173
|
-
|
|
1174
|
+
href: i.href ?? "#",
|
|
1175
|
+
onClick: (o) => {
|
|
1176
|
+
i.onBack && (o.preventDefault(), i.onBack());
|
|
1174
1177
|
},
|
|
1175
1178
|
children: [
|
|
1176
|
-
/* @__PURE__ */ e(
|
|
1179
|
+
/* @__PURE__ */ e(V, { name: "back" }),
|
|
1177
1180
|
" ",
|
|
1178
|
-
|
|
1181
|
+
i.label
|
|
1179
1182
|
]
|
|
1180
1183
|
}
|
|
1181
1184
|
) : null,
|
|
1182
|
-
/* @__PURE__ */
|
|
1183
|
-
/* @__PURE__ */
|
|
1185
|
+
/* @__PURE__ */ c("div", { className: "cms-page-header__row", children: [
|
|
1186
|
+
/* @__PURE__ */ c("div", { className: "cms-page-header__titles", children: [
|
|
1184
1187
|
/* @__PURE__ */ e("h1", { className: "cms-page-header__title", children: n }),
|
|
1185
1188
|
l != null ? /* @__PURE__ */ e("p", { className: "cms-page-header__scope", children: l }) : null
|
|
1186
1189
|
] }),
|
|
@@ -1188,122 +1191,205 @@ function Gn({ title: n, scope: l, actions: t, backLink: d }) {
|
|
|
1188
1191
|
] })
|
|
1189
1192
|
] });
|
|
1190
1193
|
}
|
|
1191
|
-
function
|
|
1192
|
-
const
|
|
1193
|
-
var
|
|
1194
|
-
const
|
|
1195
|
-
if (
|
|
1196
|
-
|
|
1197
|
-
const
|
|
1198
|
-
|
|
1194
|
+
function il({ tabs: n, active: l, onSelect: t, label: i }) {
|
|
1195
|
+
const o = H([]), s = (d, a) => {
|
|
1196
|
+
var f;
|
|
1197
|
+
const m = n.length - 1, v = d.key === "ArrowRight" ? a === m ? 0 : a + 1 : d.key === "ArrowLeft" ? a === 0 ? m : a - 1 : d.key === "Home" ? 0 : d.key === "End" ? m : null;
|
|
1198
|
+
if (v === null) return;
|
|
1199
|
+
d.preventDefault();
|
|
1200
|
+
const u = n[v];
|
|
1201
|
+
u && (t(u.id), (f = o.current[v]) == null || f.focus());
|
|
1199
1202
|
};
|
|
1200
|
-
return /* @__PURE__ */ e("div", { className: "cms-tabs", role: "tablist", "aria-label":
|
|
1201
|
-
const
|
|
1202
|
-
return /* @__PURE__ */
|
|
1203
|
+
return /* @__PURE__ */ e("div", { className: "cms-tabs", role: "tablist", "aria-label": i, children: n.map((d, a) => {
|
|
1204
|
+
const m = d.id === l;
|
|
1205
|
+
return /* @__PURE__ */ c(
|
|
1203
1206
|
"button",
|
|
1204
1207
|
{
|
|
1205
|
-
ref: (
|
|
1206
|
-
|
|
1208
|
+
ref: (v) => {
|
|
1209
|
+
o.current[a] = v;
|
|
1207
1210
|
},
|
|
1208
1211
|
type: "button",
|
|
1209
1212
|
role: "tab",
|
|
1210
|
-
className:
|
|
1211
|
-
"aria-selected":
|
|
1212
|
-
tabIndex:
|
|
1213
|
-
onClick: () => t(
|
|
1214
|
-
onKeyDown: (
|
|
1213
|
+
className: $("cms-tab", m && "is-active"),
|
|
1214
|
+
"aria-selected": m,
|
|
1215
|
+
tabIndex: m ? 0 : -1,
|
|
1216
|
+
onClick: () => t(d.id),
|
|
1217
|
+
onKeyDown: (v) => s(v, a),
|
|
1215
1218
|
children: [
|
|
1216
|
-
|
|
1217
|
-
|
|
1219
|
+
d.label,
|
|
1220
|
+
d.count !== void 0 ? /* @__PURE__ */ e("span", { className: "cms-tab__count", children: d.count }) : null
|
|
1218
1221
|
]
|
|
1219
1222
|
},
|
|
1220
|
-
|
|
1223
|
+
d.id
|
|
1221
1224
|
);
|
|
1222
1225
|
}) });
|
|
1223
1226
|
}
|
|
1224
|
-
function
|
|
1225
|
-
const l = n.trim().replace(/\s+via\s+\S.*$/, "").split(/\s+/).filter(Boolean), t = (
|
|
1226
|
-
var
|
|
1227
|
-
return (
|
|
1227
|
+
function yn(n) {
|
|
1228
|
+
const l = n.trim().replace(/\s+via\s+\S.*$/, "").split(/\s+/).filter(Boolean), t = (o) => {
|
|
1229
|
+
var s;
|
|
1230
|
+
return (s = o == null ? void 0 : o.match(/[\p{L}\p{N}]/u)) == null ? void 0 : s[0];
|
|
1228
1231
|
};
|
|
1229
1232
|
return (l.length > 1 ? [t(l[0]), t(l[l.length - 1])] : [t(l[0])]).filter(Boolean).join("").toUpperCase();
|
|
1230
1233
|
}
|
|
1231
|
-
function
|
|
1234
|
+
function kn(n) {
|
|
1232
1235
|
let l = 0;
|
|
1233
1236
|
for (const t of n.trim().toLowerCase())
|
|
1234
1237
|
l = l * 31 + (t.codePointAt(0) ?? 0) >>> 0;
|
|
1235
1238
|
return l % 6 + 1;
|
|
1236
1239
|
}
|
|
1237
|
-
function
|
|
1238
|
-
const
|
|
1239
|
-
return /* @__PURE__ */
|
|
1240
|
+
function ye({ name: n, pictureUrl: l, presence: t, connection: i, deleted: o = !1, size: s = 32 }) {
|
|
1241
|
+
const d = i !== void 0 ? `is-${i.state === "offline" ? "disconnected" : i.state}` : t === void 0 ? null : `is-${t === "busy" ? "away" : t}`, a = i !== void 0 ? `${n}, ${i.label}` : t ? `${n}, ${t}` : n;
|
|
1242
|
+
return /* @__PURE__ */ c(
|
|
1240
1243
|
"span",
|
|
1241
1244
|
{
|
|
1242
|
-
className:
|
|
1243
|
-
style: { width:
|
|
1245
|
+
className: $("cms-avatar", o ? "cms-avatar--deleted" : `cms-avatar--tint-${kn(n)}`),
|
|
1246
|
+
style: { width: s, height: s, fontSize: Math.round(s * 0.4) },
|
|
1244
1247
|
role: "img",
|
|
1245
|
-
"aria-label":
|
|
1246
|
-
...
|
|
1248
|
+
"aria-label": a,
|
|
1249
|
+
...i === void 0 ? {} : { title: i.label },
|
|
1247
1250
|
children: [
|
|
1248
|
-
|
|
1249
|
-
|
|
1251
|
+
o ? /* @__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: yn(n) }),
|
|
1252
|
+
d === null ? null : /* @__PURE__ */ e("span", { className: $("cms-avatar__presence", d), "aria-hidden": "true" })
|
|
1250
1253
|
]
|
|
1251
1254
|
}
|
|
1252
1255
|
);
|
|
1253
1256
|
}
|
|
1254
|
-
|
|
1255
|
-
|
|
1257
|
+
const xn = 64, Ie = "cms-splitter:";
|
|
1258
|
+
function Ee(n) {
|
|
1259
|
+
try {
|
|
1260
|
+
const l = window.localStorage.getItem(Ie + n);
|
|
1261
|
+
if (l === null) return null;
|
|
1262
|
+
const t = Number(l);
|
|
1263
|
+
return Number.isFinite(t) ? t : null;
|
|
1264
|
+
} catch {
|
|
1265
|
+
return null;
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
function Mn(n, l) {
|
|
1269
|
+
if (n !== void 0)
|
|
1270
|
+
try {
|
|
1271
|
+
window.localStorage.setItem(Ie + n, String(l));
|
|
1272
|
+
} catch {
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
function Cn(n) {
|
|
1276
|
+
if (n !== void 0)
|
|
1277
|
+
try {
|
|
1278
|
+
window.localStorage.removeItem(Ie + n);
|
|
1279
|
+
} catch {
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
function Sn({ storageKey: n, value: l, default: t, min: i, max: o, step: s = 16, label: d, onChange: a, className: m, style: v }) {
|
|
1283
|
+
const u = Math.max(i, o), f = (b) => Math.round(Math.min(Math.max(b, i), u)), [r, h] = A(() => {
|
|
1284
|
+
const b = n === void 0 ? null : Ee(n);
|
|
1285
|
+
return f(b ?? t);
|
|
1286
|
+
}), _ = f(l ?? r), N = H(null), [y, k] = A(!1);
|
|
1287
|
+
fe(() => {
|
|
1288
|
+
if (n === void 0) return;
|
|
1289
|
+
const b = Ee(n);
|
|
1290
|
+
if (b === null) return;
|
|
1291
|
+
const w = f(b);
|
|
1292
|
+
(l === void 0 || w !== f(l)) && (h(w), a(w, !0));
|
|
1293
|
+
}, []), fe(() => {
|
|
1294
|
+
l !== void 0 && f(l) !== l && a(f(l), !0);
|
|
1295
|
+
}, [l, i, u]);
|
|
1296
|
+
const C = (b, w) => {
|
|
1297
|
+
const T = f(b);
|
|
1298
|
+
h(T), w && Mn(n, T), a(T, w);
|
|
1299
|
+
}, M = () => {
|
|
1300
|
+
const b = N.current;
|
|
1301
|
+
N.current = null, k(!1), b !== null && b.last !== b.from && C(b.last, !0);
|
|
1302
|
+
};
|
|
1303
|
+
return /* @__PURE__ */ e(
|
|
1304
|
+
"div",
|
|
1305
|
+
{
|
|
1306
|
+
role: "separator",
|
|
1307
|
+
tabIndex: 0,
|
|
1308
|
+
"aria-orientation": "vertical",
|
|
1309
|
+
"aria-label": d,
|
|
1310
|
+
"aria-valuenow": _,
|
|
1311
|
+
"aria-valuemin": i,
|
|
1312
|
+
"aria-valuemax": u,
|
|
1313
|
+
className: $("cms-splitter", y && "is-dragging", _ <= i && "is-at-min", _ >= u && "is-at-max", m),
|
|
1314
|
+
style: v,
|
|
1315
|
+
onPointerDown: (b) => {
|
|
1316
|
+
var T, O;
|
|
1317
|
+
if (b.button > 0) return;
|
|
1318
|
+
b.preventDefault(), (O = (T = b.currentTarget).setPointerCapture) == null || O.call(T, b.pointerId);
|
|
1319
|
+
const w = getComputedStyle(b.currentTarget).direction === "rtl" ? -1 : 1;
|
|
1320
|
+
N.current = { x: b.clientX, from: _, last: _, sign: w }, k(!0);
|
|
1321
|
+
},
|
|
1322
|
+
onPointerMove: (b) => {
|
|
1323
|
+
const w = N.current;
|
|
1324
|
+
w === null || !Number.isFinite(b.clientX) || (w.last = f(w.from + w.sign * (b.clientX - w.x)), C(w.last, !1));
|
|
1325
|
+
},
|
|
1326
|
+
onPointerUp: M,
|
|
1327
|
+
onPointerCancel: M,
|
|
1328
|
+
onDoubleClick: () => {
|
|
1329
|
+
Cn(n);
|
|
1330
|
+
const b = f(t);
|
|
1331
|
+
h(b), a(b, !0);
|
|
1332
|
+
},
|
|
1333
|
+
onKeyDown: (b) => {
|
|
1334
|
+
const w = b.shiftKey ? xn : s, T = getComputedStyle(b.currentTarget).direction === "rtl" ? -1 : 1, O = b.key === "ArrowLeft" ? _ - T * w : b.key === "ArrowRight" ? _ + T * w : b.key === "Home" ? i : b.key === "End" ? u : null;
|
|
1335
|
+
O !== null && (b.preventDefault(), C(O, !0));
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
);
|
|
1339
|
+
}
|
|
1340
|
+
function En({ count: n, label: l, max: t = 99 }) {
|
|
1341
|
+
return n <= 0 ? null : /* @__PURE__ */ c("span", { className: "cms-badge", children: [
|
|
1256
1342
|
/* @__PURE__ */ e("span", { "aria-hidden": "true", children: n > t ? `${t}+` : n }),
|
|
1257
1343
|
/* @__PURE__ */ e("span", { className: "cms-visually-hidden", children: l })
|
|
1258
1344
|
] });
|
|
1259
1345
|
}
|
|
1260
|
-
function
|
|
1261
|
-
return /* @__PURE__ */
|
|
1262
|
-
/* @__PURE__ */
|
|
1346
|
+
function cl({ product: n, mark: l, rail: t, active: i, onNavigate: o, server: s, search: d, account: a, children: m, railLabel: v = "Sections" }) {
|
|
1347
|
+
return /* @__PURE__ */ c("div", { className: "cms-shell", children: [
|
|
1348
|
+
/* @__PURE__ */ c("nav", { className: "cms-shell__rail", "aria-label": v, children: [
|
|
1263
1349
|
/* @__PURE__ */ e("span", { className: "cms-shell__mark", "aria-hidden": "true", children: l }),
|
|
1264
|
-
/* @__PURE__ */ e("ul", { className: "cms-shell__items", children: t.map((
|
|
1265
|
-
const
|
|
1266
|
-
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */
|
|
1350
|
+
/* @__PURE__ */ e("ul", { className: "cms-shell__items", children: t.map((u) => {
|
|
1351
|
+
const f = u.id === i;
|
|
1352
|
+
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ c(
|
|
1267
1353
|
"a",
|
|
1268
1354
|
{
|
|
1269
|
-
href:
|
|
1270
|
-
className:
|
|
1271
|
-
"aria-current":
|
|
1272
|
-
title:
|
|
1273
|
-
onClick: (
|
|
1274
|
-
|
|
1355
|
+
href: u.href,
|
|
1356
|
+
className: $("cms-shell__item", f && "is-active"),
|
|
1357
|
+
"aria-current": f ? "page" : void 0,
|
|
1358
|
+
title: u.label,
|
|
1359
|
+
onClick: (r) => {
|
|
1360
|
+
o && (r.preventDefault(), o(u.id));
|
|
1275
1361
|
},
|
|
1276
1362
|
children: [
|
|
1277
|
-
/* @__PURE__ */
|
|
1278
|
-
/* @__PURE__ */ e(
|
|
1279
|
-
|
|
1363
|
+
/* @__PURE__ */ c("span", { className: "cms-shell__icon", children: [
|
|
1364
|
+
/* @__PURE__ */ e(L, { name: u.icon, size: 22 }),
|
|
1365
|
+
u.badge ? /* @__PURE__ */ e(En, { count: u.badge.count, label: u.badge.label }) : null
|
|
1280
1366
|
] }),
|
|
1281
|
-
/* @__PURE__ */ e("span", { className: "cms-shell__label", children:
|
|
1367
|
+
/* @__PURE__ */ e("span", { className: "cms-shell__label", children: u.label })
|
|
1282
1368
|
]
|
|
1283
1369
|
}
|
|
1284
|
-
) },
|
|
1370
|
+
) }, u.id);
|
|
1285
1371
|
}) })
|
|
1286
1372
|
] }),
|
|
1287
|
-
/* @__PURE__ */
|
|
1373
|
+
/* @__PURE__ */ c("header", { className: "cms-shell__top", children: [
|
|
1288
1374
|
/* @__PURE__ */ e("span", { className: "cms-shell__product", children: n }),
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1375
|
+
s != null ? /* @__PURE__ */ e("div", { className: "cms-shell__server", children: s }) : null,
|
|
1376
|
+
d != null ? /* @__PURE__ */ e("div", { className: "cms-shell__search", children: d }) : null,
|
|
1377
|
+
a != null ? /* @__PURE__ */ e("div", { className: "cms-shell__account", children: a }) : null
|
|
1292
1378
|
] }),
|
|
1293
|
-
/* @__PURE__ */ e("main", { className: "cms-shell__main", children:
|
|
1379
|
+
/* @__PURE__ */ e("main", { className: "cms-shell__main", children: m })
|
|
1294
1380
|
] });
|
|
1295
1381
|
}
|
|
1296
|
-
function
|
|
1297
|
-
return /* @__PURE__ */
|
|
1382
|
+
function ol({ label: n, placeholder: l, value: t, onChange: i, onSearch: o }) {
|
|
1383
|
+
return /* @__PURE__ */ c(
|
|
1298
1384
|
"form",
|
|
1299
1385
|
{
|
|
1300
1386
|
role: "search",
|
|
1301
1387
|
className: "cms-search",
|
|
1302
|
-
onSubmit: (
|
|
1303
|
-
|
|
1388
|
+
onSubmit: (s) => {
|
|
1389
|
+
s.preventDefault(), o == null || o(t);
|
|
1304
1390
|
},
|
|
1305
1391
|
children: [
|
|
1306
|
-
/* @__PURE__ */ e(
|
|
1392
|
+
/* @__PURE__ */ e(L, { name: "search", size: 18 }),
|
|
1307
1393
|
/* @__PURE__ */ e(
|
|
1308
1394
|
"input",
|
|
1309
1395
|
{
|
|
@@ -1312,208 +1398,157 @@ function Qn({ label: n, placeholder: l, value: t, onChange: d, onSearch: c }) {
|
|
|
1312
1398
|
"aria-label": n,
|
|
1313
1399
|
placeholder: l,
|
|
1314
1400
|
value: t,
|
|
1315
|
-
onChange: (
|
|
1401
|
+
onChange: (s) => i(s.target.value)
|
|
1316
1402
|
}
|
|
1317
1403
|
)
|
|
1318
1404
|
]
|
|
1319
1405
|
}
|
|
1320
1406
|
);
|
|
1321
1407
|
}
|
|
1322
|
-
function
|
|
1323
|
-
const
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
h();
|
|
1331
|
-
const u = r.current;
|
|
1332
|
-
if (u === null || typeof ResizeObserver > "u") return;
|
|
1333
|
-
const a = new ResizeObserver(h);
|
|
1334
|
-
a.observe(u);
|
|
1335
|
-
for (const f of c.current) f !== null && a.observe(f);
|
|
1336
|
-
return () => a.disconnect();
|
|
1337
|
-
}, [n]);
|
|
1338
|
-
const b = (u) => {
|
|
1339
|
-
var a, f;
|
|
1340
|
-
return (f = (a = c.current[u]) == null ? void 0 : a.scrollIntoView) == null ? void 0 : f.call(a, { block: "nearest", inline: "nearest" });
|
|
1341
|
-
}, o = (u, a) => {
|
|
1342
|
-
var N;
|
|
1343
|
-
const f = n.length - 1, p = u.key === "ArrowRight" || u.key === "ArrowDown" ? a === f ? 0 : a + 1 : u.key === "ArrowLeft" || u.key === "ArrowUp" ? a === 0 ? f : a - 1 : null;
|
|
1344
|
-
if (p === null) return;
|
|
1345
|
-
u.preventDefault();
|
|
1346
|
-
const _ = n[p];
|
|
1347
|
-
_ && (t(_.id), (N = c.current[p]) == null || N.focus(), b(p));
|
|
1408
|
+
function An({ options: n, value: l, onChange: t, label: i }) {
|
|
1409
|
+
const o = H([]), s = (d, a) => {
|
|
1410
|
+
var f;
|
|
1411
|
+
const m = n.length - 1, v = d.key === "ArrowRight" || d.key === "ArrowDown" ? a === m ? 0 : a + 1 : d.key === "ArrowLeft" || d.key === "ArrowUp" ? a === 0 ? m : a - 1 : null;
|
|
1412
|
+
if (v === null) return;
|
|
1413
|
+
d.preventDefault();
|
|
1414
|
+
const u = n[v];
|
|
1415
|
+
u && (t(u.id), (f = o.current[v]) == null || f.focus());
|
|
1348
1416
|
};
|
|
1349
|
-
return /* @__PURE__ */ e("div", {
|
|
1350
|
-
const
|
|
1351
|
-
return /* @__PURE__ */
|
|
1417
|
+
return /* @__PURE__ */ e("div", { className: "cms-chips", role: "radiogroup", "aria-label": i, children: n.map((d, a) => {
|
|
1418
|
+
const m = d.id === l;
|
|
1419
|
+
return /* @__PURE__ */ c(
|
|
1352
1420
|
"button",
|
|
1353
1421
|
{
|
|
1354
|
-
ref: (
|
|
1355
|
-
|
|
1422
|
+
ref: (v) => {
|
|
1423
|
+
o.current[a] = v;
|
|
1356
1424
|
},
|
|
1357
1425
|
type: "button",
|
|
1358
1426
|
role: "radio",
|
|
1359
|
-
"aria-checked":
|
|
1360
|
-
tabIndex:
|
|
1361
|
-
className:
|
|
1362
|
-
onClick: () =>
|
|
1363
|
-
|
|
1364
|
-
},
|
|
1365
|
-
onKeyDown: (p) => o(p, a),
|
|
1427
|
+
"aria-checked": m,
|
|
1428
|
+
tabIndex: m ? 0 : -1,
|
|
1429
|
+
className: $("cms-chip", m && "is-on"),
|
|
1430
|
+
onClick: () => t(d.id),
|
|
1431
|
+
onKeyDown: (v) => s(v, a),
|
|
1366
1432
|
children: [
|
|
1367
|
-
|
|
1368
|
-
|
|
1433
|
+
m ? /* @__PURE__ */ e(L, { name: "check", size: 16 }) : null,
|
|
1434
|
+
d.label
|
|
1369
1435
|
]
|
|
1370
1436
|
},
|
|
1371
|
-
|
|
1437
|
+
d.id
|
|
1372
1438
|
);
|
|
1373
1439
|
}) });
|
|
1374
1440
|
}
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
let
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
d[r] = d[r] - m, c -= m;
|
|
1441
|
+
function Tn(n, l, t) {
|
|
1442
|
+
const i = n.map((s) => Math.min(Math.max(s.width, s.min), s.max));
|
|
1443
|
+
let o = i.reduce((s, d) => s + d, 0) + t - l;
|
|
1444
|
+
for (let s = i.length - 1; s >= 0 && o > 0; s -= 1) {
|
|
1445
|
+
const d = Math.min(o, i[s] - n[s].min);
|
|
1446
|
+
i[s] = i[s] - d, o -= d;
|
|
1382
1447
|
}
|
|
1383
|
-
return
|
|
1384
|
-
}
|
|
1385
|
-
function
|
|
1386
|
-
const
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
style: { "--split-at": `var(--split-pane-end-${String(n)})` },
|
|
1399
|
-
onPointerDown: (u) => {
|
|
1400
|
-
var a, f, p;
|
|
1401
|
-
u.button > 0 || (u.preventDefault(), (f = (a = u.currentTarget).setPointerCapture) == null || f.call(a, u.pointerId), b.current = { x: u.clientX, from: t, last: t }, (p = u.currentTarget.closest(".cms-panes")) == null || p.classList.add("is-resizing"));
|
|
1402
|
-
},
|
|
1403
|
-
onPointerMove: (u) => {
|
|
1404
|
-
const a = b.current;
|
|
1405
|
-
a === null || !Number.isFinite(u.clientX) || (a.last = h(a.from + u.clientX - a.x), o(a.last, !1));
|
|
1406
|
-
},
|
|
1407
|
-
onPointerUp: (u) => {
|
|
1408
|
-
var f;
|
|
1409
|
-
const a = b.current;
|
|
1410
|
-
a !== null && (b.current = null, (f = u.currentTarget.closest(".cms-panes")) == null || f.classList.remove("is-resizing"), o(a.last, !0));
|
|
1411
|
-
},
|
|
1412
|
-
onPointerCancel: (u) => {
|
|
1413
|
-
var f;
|
|
1414
|
-
const a = b.current;
|
|
1415
|
-
b.current = null, (f = u.currentTarget.closest(".cms-panes")) == null || f.classList.remove("is-resizing"), a !== null && o(a.last, !0);
|
|
1416
|
-
},
|
|
1417
|
-
onDoubleClick: () => o(l.reset, !0),
|
|
1418
|
-
onKeyDown: (u) => {
|
|
1419
|
-
const a = u.key === "ArrowLeft" ? t - De : u.key === "ArrowRight" ? t + De : u.key === "Home" ? l.min : u.key === "End" ? s : u.key === "Enter" ? l.reset : null;
|
|
1420
|
-
a !== null && (u.preventDefault(), o(a, !0));
|
|
1421
|
-
}
|
|
1422
|
-
}
|
|
1423
|
-
);
|
|
1424
|
-
}
|
|
1425
|
-
function el({ panes: n, active: l, back: t, sizes: d, lastMin: c = 360, onResize: r }) {
|
|
1426
|
-
const m = Math.min(Math.max(l ?? n.length - 1, 0), n.length - 1), s = I(null), [h, b] = E(0), o = (d ?? []).slice(0, n.length - 1), u = o.length === n.length - 1 && o.every((p) => p !== void 0);
|
|
1427
|
-
Ne(() => {
|
|
1428
|
-
const p = s.current;
|
|
1429
|
-
if (p === null || !u) return;
|
|
1430
|
-
const _ = () => b(p.clientWidth);
|
|
1431
|
-
if (_(), typeof ResizeObserver > "u") return;
|
|
1432
|
-
const N = new ResizeObserver(_);
|
|
1433
|
-
return N.observe(p), () => N.disconnect();
|
|
1434
|
-
}, [u]);
|
|
1435
|
-
const a = u ? gn(o, h > 0 ? h : Number.POSITIVE_INFINITY, c) : [], f = u ? Object.fromEntries(a.flatMap((p, _) => [
|
|
1436
|
-
[`--split-pane-${String(_)}`, `${String(p)}px`],
|
|
1437
|
-
[`--split-pane-end-${String(_)}`, `${String(a.slice(0, _ + 1).reduce((N, y) => N + y, 0))}px`]
|
|
1448
|
+
return i;
|
|
1449
|
+
}
|
|
1450
|
+
function dl({ panes: n, active: l, back: t, sizes: i, lastMin: o = 360, onResize: s, storageKey: d }) {
|
|
1451
|
+
const a = Math.min(Math.max(l ?? n.length - 1, 0), n.length - 1), m = H(null), [v, u] = A(0), f = (i ?? []).slice(0, n.length - 1), [r, h] = A(() => d === void 0 ? [] : f.map((b, w) => Ee(`${d}:${String(w)}`) ?? void 0)), [_, N] = A(!1), y = f.map((b, w) => b !== void 0 && r[w] !== void 0 ? { ...b, width: r[w] } : b), k = y.length === n.length - 1 && y.every((b) => b !== void 0);
|
|
1452
|
+
fe(() => {
|
|
1453
|
+
const b = m.current;
|
|
1454
|
+
if (b === null || !k) return;
|
|
1455
|
+
const w = () => u(b.clientWidth);
|
|
1456
|
+
if (w(), typeof ResizeObserver > "u") return;
|
|
1457
|
+
const T = new ResizeObserver(w);
|
|
1458
|
+
return T.observe(b), () => T.disconnect();
|
|
1459
|
+
}, [k]);
|
|
1460
|
+
const C = k ? Tn(y, v > 0 ? v : Number.POSITIVE_INFINITY, o) : [], M = k ? Object.fromEntries(C.flatMap((b, w) => [
|
|
1461
|
+
[`--split-pane-${String(w)}`, `${String(b)}px`],
|
|
1462
|
+
[`--split-pane-end-${String(w)}`, `${String(C.slice(0, w + 1).reduce((T, O) => T + O, 0))}px`]
|
|
1438
1463
|
])) : void 0;
|
|
1439
|
-
return /* @__PURE__ */
|
|
1464
|
+
return /* @__PURE__ */ c(
|
|
1440
1465
|
"div",
|
|
1441
1466
|
{
|
|
1442
|
-
ref:
|
|
1443
|
-
className:
|
|
1444
|
-
"data-active":
|
|
1445
|
-
style:
|
|
1467
|
+
ref: m,
|
|
1468
|
+
className: $("cms-panes", n.length === 3 ? "cms-panes--three" : "cms-panes--two", k && "cms-panes--sized", _ && "is-resizing"),
|
|
1469
|
+
"data-active": a,
|
|
1470
|
+
style: M,
|
|
1446
1471
|
children: [
|
|
1447
|
-
n.map((
|
|
1448
|
-
|
|
1449
|
-
/* @__PURE__ */ e(
|
|
1472
|
+
n.map((b, w) => /* @__PURE__ */ c("section", { className: "cms-panes__pane", "aria-label": b.label, "data-offset": a - w, children: [
|
|
1473
|
+
w === a && t ? /* @__PURE__ */ c("a", { className: "cms-panes__back", href: t.href, children: [
|
|
1474
|
+
/* @__PURE__ */ e(L, { name: "chevron-left", size: 18 }),
|
|
1450
1475
|
t.label
|
|
1451
1476
|
] }) : null,
|
|
1452
|
-
|
|
1453
|
-
] },
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1477
|
+
b.content
|
|
1478
|
+
] }, b.label)),
|
|
1479
|
+
k ? y.map((b, w) => {
|
|
1480
|
+
const T = C.reduce((U, x, D) => D === w ? U : U + x, 0), O = Math.max(b.min, Math.min(b.max, v > 0 ? v - T - o : b.max));
|
|
1481
|
+
return /* @__PURE__ */ e(
|
|
1482
|
+
Sn,
|
|
1483
|
+
{
|
|
1484
|
+
...d === void 0 ? {} : { storageKey: `${d}:${String(w)}` },
|
|
1485
|
+
value: C[w],
|
|
1486
|
+
default: b.reset,
|
|
1487
|
+
min: b.min,
|
|
1488
|
+
max: O,
|
|
1489
|
+
label: b.label,
|
|
1490
|
+
className: "cms-panes__splitter",
|
|
1491
|
+
style: { "--split-at": `var(--split-pane-end-${String(w)})` },
|
|
1492
|
+
onChange: (U, x) => {
|
|
1493
|
+
d !== void 0 && h((D) => {
|
|
1494
|
+
const B = [...D];
|
|
1495
|
+
return B[w] = U, B;
|
|
1496
|
+
}), N(!x), s == null || s(w, U, x);
|
|
1497
|
+
}
|
|
1498
|
+
},
|
|
1499
|
+
b.label
|
|
1500
|
+
);
|
|
1501
|
+
}) : null
|
|
1467
1502
|
]
|
|
1468
1503
|
}
|
|
1469
1504
|
);
|
|
1470
1505
|
}
|
|
1471
|
-
const
|
|
1472
|
-
function
|
|
1473
|
-
const
|
|
1474
|
-
return /* @__PURE__ */
|
|
1475
|
-
|
|
1476
|
-
|
|
1506
|
+
const Dn = { attachment: "Has an attachment", unread: "Unread" };
|
|
1507
|
+
function ul({ from: n, subject: l, preview: t, time: i, unread: o, hasAttachment: s, selected: d, onOpen: a, check: m, selecting: v, labels: u }) {
|
|
1508
|
+
const f = be(Dn, u), r = /* @__PURE__ */ e(ye, { name: n, size: 40 });
|
|
1509
|
+
return /* @__PURE__ */ c("div", { className: $("cms-mail-row", o && "is-unread", d && "is-selected", v && "is-selecting", (m == null ? void 0 : m.checked) && "is-checked"), children: [
|
|
1510
|
+
m !== void 0 ? /* @__PURE__ */ c("span", { className: "cms-mail-row__lead", children: [
|
|
1511
|
+
r,
|
|
1477
1512
|
/* @__PURE__ */ e(
|
|
1478
1513
|
"input",
|
|
1479
1514
|
{
|
|
1480
1515
|
type: "checkbox",
|
|
1481
1516
|
className: "cms-mail-row__check",
|
|
1482
|
-
checked:
|
|
1483
|
-
disabled:
|
|
1484
|
-
"aria-disabled":
|
|
1485
|
-
"aria-busy":
|
|
1486
|
-
"aria-label":
|
|
1517
|
+
checked: m.checked,
|
|
1518
|
+
disabled: m.disabled,
|
|
1519
|
+
"aria-disabled": m.pending ? "true" : void 0,
|
|
1520
|
+
"aria-busy": m.pending ? "true" : void 0,
|
|
1521
|
+
"aria-label": m.label,
|
|
1487
1522
|
onChange: () => {
|
|
1488
1523
|
},
|
|
1489
|
-
onClick: (
|
|
1490
|
-
if (
|
|
1491
|
-
|
|
1524
|
+
onClick: (h) => {
|
|
1525
|
+
if (h.stopPropagation(), m.pending) {
|
|
1526
|
+
h.preventDefault();
|
|
1492
1527
|
return;
|
|
1493
1528
|
}
|
|
1494
|
-
|
|
1529
|
+
m.onCheck({ shift: h.shiftKey, toggle: h.ctrlKey || h.metaKey });
|
|
1495
1530
|
}
|
|
1496
1531
|
}
|
|
1497
1532
|
)
|
|
1498
1533
|
] }) : null,
|
|
1499
|
-
/* @__PURE__ */
|
|
1534
|
+
/* @__PURE__ */ c(
|
|
1500
1535
|
"button",
|
|
1501
1536
|
{
|
|
1502
1537
|
type: "button",
|
|
1503
1538
|
className: "cms-mail-row__open",
|
|
1504
|
-
"aria-current":
|
|
1505
|
-
onClick:
|
|
1539
|
+
"aria-current": d ? "true" : void 0,
|
|
1540
|
+
onClick: a,
|
|
1506
1541
|
children: [
|
|
1507
|
-
|
|
1508
|
-
/* @__PURE__ */
|
|
1509
|
-
/* @__PURE__ */
|
|
1542
|
+
m === void 0 ? r : null,
|
|
1543
|
+
/* @__PURE__ */ c("span", { className: "cms-mail-row__body", children: [
|
|
1544
|
+
/* @__PURE__ */ c("span", { className: "cms-mail-row__line", children: [
|
|
1510
1545
|
/* @__PURE__ */ e("span", { className: "cms-mail-row__from", children: n }),
|
|
1511
|
-
|
|
1512
|
-
/* @__PURE__ */ e("span", { className: "cms-mail-row__time", children:
|
|
1546
|
+
s ? /* @__PURE__ */ e(L, { name: "paperclip", size: 16, label: f.attachment }) : null,
|
|
1547
|
+
/* @__PURE__ */ e("span", { className: "cms-mail-row__time", children: i })
|
|
1513
1548
|
] }),
|
|
1514
|
-
/* @__PURE__ */
|
|
1549
|
+
/* @__PURE__ */ c("span", { className: "cms-mail-row__line", children: [
|
|
1515
1550
|
/* @__PURE__ */ e("span", { className: "cms-mail-row__subject", children: l }),
|
|
1516
|
-
|
|
1551
|
+
o ? /* @__PURE__ */ e("span", { className: "cms-mail-row__dot", role: "img", "aria-label": f.unread }) : null
|
|
1517
1552
|
] }),
|
|
1518
1553
|
/* @__PURE__ */ e("span", { className: "cms-mail-row__preview", children: t })
|
|
1519
1554
|
] })
|
|
@@ -1522,49 +1557,49 @@ function nl({ from: n, subject: l, preview: t, time: d, unread: c, hasAttachment
|
|
|
1522
1557
|
)
|
|
1523
1558
|
] });
|
|
1524
1559
|
}
|
|
1525
|
-
function
|
|
1526
|
-
return /* @__PURE__ */
|
|
1560
|
+
function ml({ direction: n, children: l, time: t, read: i, readLabel: o = "Read" }) {
|
|
1561
|
+
return /* @__PURE__ */ c("div", { className: $("cms-bubble", `cms-bubble--${n}`), children: [
|
|
1527
1562
|
/* @__PURE__ */ e("div", { className: "cms-bubble__text", children: l }),
|
|
1528
|
-
/* @__PURE__ */
|
|
1563
|
+
/* @__PURE__ */ c("div", { className: "cms-bubble__meta", children: [
|
|
1529
1564
|
t,
|
|
1530
|
-
n === "out" &&
|
|
1565
|
+
n === "out" && i ? /* @__PURE__ */ c(E, { children: [
|
|
1531
1566
|
" · ",
|
|
1532
|
-
|
|
1567
|
+
o
|
|
1533
1568
|
] }) : null
|
|
1534
1569
|
] })
|
|
1535
1570
|
] });
|
|
1536
1571
|
}
|
|
1537
|
-
function
|
|
1538
|
-
const
|
|
1539
|
-
|
|
1540
|
-
},
|
|
1541
|
-
return /* @__PURE__ */
|
|
1542
|
-
/* @__PURE__ */ e("label", { htmlFor:
|
|
1543
|
-
|
|
1572
|
+
function hl({ label: n, value: l, onChange: t, onSend: i, onAttach: o, placeholder: s, variant: d = "chat", sendLabel: a = "Send", attachLabel: m = "Attach a file", leading: v, canSend: u }) {
|
|
1573
|
+
const f = G(), r = u ?? l.trim() !== "", h = (N) => {
|
|
1574
|
+
N.preventDefault(), r && i();
|
|
1575
|
+
}, _ = o ? /* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button cms-composer__attach", "aria-label": m, onClick: o, children: /* @__PURE__ */ e(L, { name: "paperclip" }) }) : null;
|
|
1576
|
+
return /* @__PURE__ */ c("form", { className: $("cms-composer", `cms-composer--${d}`), onSubmit: h, children: [
|
|
1577
|
+
/* @__PURE__ */ e("label", { htmlFor: f, className: d === "reply" ? "cms-composer__title" : "cms-visually-hidden", children: n }),
|
|
1578
|
+
d === "chat" ? _ : null,
|
|
1544
1579
|
/* @__PURE__ */ e(
|
|
1545
1580
|
"textarea",
|
|
1546
1581
|
{
|
|
1547
|
-
id:
|
|
1582
|
+
id: f,
|
|
1548
1583
|
className: "cms-composer__input",
|
|
1549
|
-
rows:
|
|
1550
|
-
placeholder:
|
|
1584
|
+
rows: d === "reply" ? 3 : 1,
|
|
1585
|
+
placeholder: s,
|
|
1551
1586
|
value: l,
|
|
1552
|
-
onChange: (
|
|
1553
|
-
onKeyDown: (
|
|
1554
|
-
|
|
1587
|
+
onChange: (N) => t(N.target.value),
|
|
1588
|
+
onKeyDown: (N) => {
|
|
1589
|
+
N.nativeEvent.isComposing || N.keyCode === 229 || d === "chat" && N.key === "Enter" && !N.shiftKey && (N.preventDefault(), r && i());
|
|
1555
1590
|
}
|
|
1556
1591
|
}
|
|
1557
1592
|
),
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1593
|
+
d === "reply" && v !== void 0 ? /* @__PURE__ */ e("div", { className: "cms-composer__leading", children: v }) : null,
|
|
1594
|
+
d === "reply" ? _ : null,
|
|
1595
|
+
d === "chat" ? /* @__PURE__ */ e("button", { type: "submit", className: "cms-composer__send-round", "aria-label": a, disabled: !r, children: /* @__PURE__ */ e(L, { name: "send" }) }) : /* @__PURE__ */ c("button", { type: "submit", className: "cms-button cms-button--chrome cms-composer__send", disabled: !r, children: [
|
|
1596
|
+
a,
|
|
1562
1597
|
" ",
|
|
1563
|
-
/* @__PURE__ */ e(
|
|
1598
|
+
/* @__PURE__ */ e(L, { name: "send", size: 18 })
|
|
1564
1599
|
] })
|
|
1565
1600
|
] });
|
|
1566
1601
|
}
|
|
1567
|
-
const
|
|
1602
|
+
const Pe = {
|
|
1568
1603
|
incomingAudio: "Incoming audio call",
|
|
1569
1604
|
incomingVideo: "Incoming video call",
|
|
1570
1605
|
incomingFrom: (n, l) => `${n} from ${l}`,
|
|
@@ -1585,91 +1620,91 @@ const Ae = {
|
|
|
1585
1620
|
onCallWith: (n) => `On a call with ${n}`,
|
|
1586
1621
|
returnToCall: "Return to call"
|
|
1587
1622
|
};
|
|
1588
|
-
function
|
|
1589
|
-
const
|
|
1590
|
-
return /* @__PURE__ */
|
|
1591
|
-
/* @__PURE__ */ e("span", { className: "cms-call-incoming__ring", "aria-hidden": "true", children: /* @__PURE__ */ e(
|
|
1623
|
+
function fl({ name: n, media: l, onAccept: t, onDecline: i, labels: o }) {
|
|
1624
|
+
const s = be(Pe, o), d = l === "video" ? s.incomingVideo : s.incomingAudio;
|
|
1625
|
+
return /* @__PURE__ */ c("div", { className: "cms-call-incoming", role: "alertdialog", "aria-label": s.incomingFrom(d, n), children: [
|
|
1626
|
+
/* @__PURE__ */ e("span", { className: "cms-call-incoming__ring", "aria-hidden": "true", children: /* @__PURE__ */ e(ye, { name: n, size: 112 }) }),
|
|
1592
1627
|
/* @__PURE__ */ e("p", { className: "cms-call-incoming__name", children: n }),
|
|
1593
|
-
/* @__PURE__ */ e("p", { className: "cms-call-incoming__what", children:
|
|
1594
|
-
/* @__PURE__ */
|
|
1595
|
-
/* @__PURE__ */ e(
|
|
1596
|
-
/* @__PURE__ */ e(
|
|
1628
|
+
/* @__PURE__ */ e("p", { className: "cms-call-incoming__what", children: d }),
|
|
1629
|
+
/* @__PURE__ */ c("div", { className: "cms-call-incoming__actions", children: [
|
|
1630
|
+
/* @__PURE__ */ e(ce, { icon: "phone-off", label: s.decline, tone: "hang-up", onClick: i }),
|
|
1631
|
+
/* @__PURE__ */ e(ce, { icon: "phone", label: s.accept, tone: "accept", onClick: t })
|
|
1597
1632
|
] })
|
|
1598
1633
|
] });
|
|
1599
1634
|
}
|
|
1600
|
-
function
|
|
1601
|
-
return /* @__PURE__ */
|
|
1635
|
+
function ce({ icon: n, label: l, onClick: t, tone: i = "plain", pressed: o }) {
|
|
1636
|
+
return /* @__PURE__ */ c(
|
|
1602
1637
|
"button",
|
|
1603
1638
|
{
|
|
1604
1639
|
type: "button",
|
|
1605
|
-
className:
|
|
1606
|
-
"aria-pressed":
|
|
1640
|
+
className: $("cms-call-button", `cms-call-button--${i}`, o && "is-pressed"),
|
|
1641
|
+
"aria-pressed": o,
|
|
1607
1642
|
onClick: t,
|
|
1608
1643
|
children: [
|
|
1609
|
-
/* @__PURE__ */ e("span", { className: "cms-call-button__disc", children: /* @__PURE__ */ e(
|
|
1644
|
+
/* @__PURE__ */ e("span", { className: "cms-call-button__disc", children: /* @__PURE__ */ e(L, { name: n, size: 24 }) }),
|
|
1610
1645
|
/* @__PURE__ */ e("span", { className: "cms-call-button__label", children: l })
|
|
1611
1646
|
]
|
|
1612
1647
|
}
|
|
1613
1648
|
);
|
|
1614
1649
|
}
|
|
1615
|
-
function
|
|
1616
|
-
const
|
|
1617
|
-
return /* @__PURE__ */
|
|
1618
|
-
/* @__PURE__ */
|
|
1619
|
-
/* @__PURE__ */ e(
|
|
1620
|
-
/* @__PURE__ */
|
|
1650
|
+
function pl({ name: n, duration: l, connection: t, you: i, muted: o, speaker: s, onToggleMute: d, onToggleSpeaker: a, onAddPerson: m, onChat: v, onHangUp: u, labels: f }) {
|
|
1651
|
+
const r = be(Pe, f);
|
|
1652
|
+
return /* @__PURE__ */ c("section", { className: "cms-call-panel", "aria-label": r.callWith(n), children: [
|
|
1653
|
+
/* @__PURE__ */ c("div", { className: "cms-call-panel__head", children: [
|
|
1654
|
+
/* @__PURE__ */ e(ye, { name: n, size: 64 }),
|
|
1655
|
+
/* @__PURE__ */ c("div", { className: "cms-call-panel__who", children: [
|
|
1621
1656
|
/* @__PURE__ */ e("p", { className: "cms-call-panel__name", children: n }),
|
|
1622
|
-
/* @__PURE__ */ e("p", { className: "cms-call-panel__time", "aria-label":
|
|
1657
|
+
/* @__PURE__ */ e("p", { className: "cms-call-panel__time", "aria-label": r.callTime(l), children: l })
|
|
1623
1658
|
] }),
|
|
1624
|
-
/* @__PURE__ */ e("span", { className:
|
|
1659
|
+
/* @__PURE__ */ e("span", { className: $("cms-pill", t === "good" ? "cms-pill--success" : "cms-pill--warning"), children: t === "good" ? r.goodConnection : r.poorConnection })
|
|
1625
1660
|
] }),
|
|
1626
|
-
/* @__PURE__ */
|
|
1627
|
-
/* @__PURE__ */ e(
|
|
1628
|
-
/* @__PURE__ */ e("span", { children:
|
|
1629
|
-
|
|
1661
|
+
/* @__PURE__ */ c("div", { className: "cms-call-panel__you", children: [
|
|
1662
|
+
/* @__PURE__ */ e(ye, { name: i.name, size: 36 }),
|
|
1663
|
+
/* @__PURE__ */ e("span", { children: r.you }),
|
|
1664
|
+
i.speaking ? /* @__PURE__ */ e("span", { className: "cms-call-panel__level", role: "img", "aria-label": r.speaking }) : null
|
|
1630
1665
|
] }),
|
|
1631
|
-
/* @__PURE__ */
|
|
1632
|
-
/* @__PURE__ */ e(
|
|
1633
|
-
/* @__PURE__ */ e(
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
/* @__PURE__ */ e(
|
|
1666
|
+
/* @__PURE__ */ c("div", { className: "cms-call-panel__controls", children: [
|
|
1667
|
+
/* @__PURE__ */ e(ce, { icon: "mic", label: o ? r.unmute : r.mute, pressed: o, onClick: d }),
|
|
1668
|
+
/* @__PURE__ */ e(ce, { icon: "speaker", label: r.speaker, pressed: s, onClick: a }),
|
|
1669
|
+
m ? /* @__PURE__ */ e(ce, { icon: "user-plus", label: r.addPerson, onClick: m }) : null,
|
|
1670
|
+
v ? /* @__PURE__ */ e(ce, { icon: "chat", label: r.chat, onClick: v }) : null,
|
|
1671
|
+
/* @__PURE__ */ e(ce, { icon: "phone-off", label: r.hangUp, tone: "hang-up", onClick: u })
|
|
1637
1672
|
] })
|
|
1638
1673
|
] });
|
|
1639
1674
|
}
|
|
1640
|
-
function
|
|
1641
|
-
const
|
|
1642
|
-
return /* @__PURE__ */
|
|
1675
|
+
function bl({ name: n, duration: l, muted: t, onToggleMute: i, onReturn: o, onHangUp: s, labels: d }) {
|
|
1676
|
+
const a = be(Pe, d);
|
|
1677
|
+
return /* @__PURE__ */ c("section", { className: "cms-call-bar", "aria-label": a.callWith(n), children: [
|
|
1643
1678
|
/* @__PURE__ */ e("span", { className: "cms-call-bar__live", "aria-hidden": "true" }),
|
|
1644
|
-
/* @__PURE__ */ e("span", { className: "cms-call-bar__name", children:
|
|
1679
|
+
/* @__PURE__ */ e("span", { className: "cms-call-bar__name", children: a.onCallWith(n) }),
|
|
1645
1680
|
/* @__PURE__ */ e("span", { className: "cms-call-bar__time", children: l }),
|
|
1646
|
-
/* @__PURE__ */
|
|
1647
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-call-bar__icon", "aria-label": t ?
|
|
1648
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-button cms-button--primary", onClick:
|
|
1649
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-call-bar__icon cms-call-bar__icon--hang-up", "aria-label":
|
|
1681
|
+
/* @__PURE__ */ c("span", { className: "cms-call-bar__actions", children: [
|
|
1682
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-call-bar__icon", "aria-label": t ? a.unmute : a.mute, "aria-pressed": t, onClick: i, children: /* @__PURE__ */ e(L, { name: "mic" }) }),
|
|
1683
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-button cms-button--primary", onClick: o, children: a.returnToCall }),
|
|
1684
|
+
/* @__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" }) })
|
|
1650
1685
|
] })
|
|
1651
1686
|
] });
|
|
1652
1687
|
}
|
|
1653
|
-
function
|
|
1654
|
-
return /* @__PURE__ */
|
|
1655
|
-
/* @__PURE__ */
|
|
1656
|
-
/* @__PURE__ */
|
|
1688
|
+
function _l({ mark: n, product: l, headline: t, lead: i, features: o = [], children: s }) {
|
|
1689
|
+
return /* @__PURE__ */ c("div", { className: "cms-signin", children: [
|
|
1690
|
+
/* @__PURE__ */ c("aside", { className: "cms-signin__brand", children: [
|
|
1691
|
+
/* @__PURE__ */ c("p", { className: "cms-signin__logo", children: [
|
|
1657
1692
|
/* @__PURE__ */ e("span", { className: "cms-signin__mark", "aria-hidden": "true", children: n }),
|
|
1658
1693
|
l
|
|
1659
1694
|
] }),
|
|
1660
|
-
/* @__PURE__ */
|
|
1695
|
+
/* @__PURE__ */ c("div", { className: "cms-signin__pitch", children: [
|
|
1661
1696
|
/* @__PURE__ */ e("p", { className: "cms-signin__headline", children: t }),
|
|
1662
|
-
/* @__PURE__ */ e("p", { className: "cms-signin__lead", children:
|
|
1663
|
-
|
|
1664
|
-
/* @__PURE__ */ e(
|
|
1665
|
-
|
|
1666
|
-
] },
|
|
1697
|
+
/* @__PURE__ */ e("p", { className: "cms-signin__lead", children: i }),
|
|
1698
|
+
o.length ? /* @__PURE__ */ e("ul", { className: "cms-signin__features", children: o.map((d) => /* @__PURE__ */ c("li", { children: [
|
|
1699
|
+
/* @__PURE__ */ e(L, { name: d.icon, size: 18 }),
|
|
1700
|
+
d.label
|
|
1701
|
+
] }, d.label)) }) : null
|
|
1667
1702
|
] })
|
|
1668
1703
|
] }),
|
|
1669
|
-
/* @__PURE__ */ e("main", { className: "cms-signin__form", children:
|
|
1704
|
+
/* @__PURE__ */ e("main", { className: "cms-signin__form", children: s })
|
|
1670
1705
|
] });
|
|
1671
1706
|
}
|
|
1672
|
-
const
|
|
1707
|
+
const Ln = {
|
|
1673
1708
|
title: "Sign in",
|
|
1674
1709
|
identifier: "Email or username",
|
|
1675
1710
|
identifierPlaceholder: "name@example.com",
|
|
@@ -1681,297 +1716,327 @@ const wn = {
|
|
|
1681
1716
|
newHere: "New here?",
|
|
1682
1717
|
create: "Create an account"
|
|
1683
1718
|
};
|
|
1684
|
-
function
|
|
1685
|
-
const
|
|
1686
|
-
return /* @__PURE__ */
|
|
1687
|
-
|
|
1688
|
-
}, "aria-describedby":
|
|
1689
|
-
/* @__PURE__ */ e("h1", { className: "cms-signin-form__title", children:
|
|
1690
|
-
/* @__PURE__ */
|
|
1691
|
-
/* @__PURE__ */ e(
|
|
1719
|
+
function vl({ server: n, onSubmit: l, forgotHref: t, createHref: i, error: o, busy: s, labels: d }) {
|
|
1720
|
+
const a = be(Ln, d), m = G(), [v, u] = A(""), [f, r] = A(""), [h, _] = A(!1);
|
|
1721
|
+
return /* @__PURE__ */ c("form", { className: "cms-signin-form", onSubmit: (y) => {
|
|
1722
|
+
y.preventDefault(), l(v, f);
|
|
1723
|
+
}, "aria-describedby": o ? `${m}-error` : void 0, children: [
|
|
1724
|
+
/* @__PURE__ */ e("h1", { className: "cms-signin-form__title", children: a.title }),
|
|
1725
|
+
/* @__PURE__ */ c("p", { className: "cms-signin-form__server", children: [
|
|
1726
|
+
/* @__PURE__ */ e(L, { name: "server", size: 18 }),
|
|
1692
1727
|
n
|
|
1693
1728
|
] }),
|
|
1694
|
-
/* @__PURE__ */ e("label", { className: "cms-signin-form__label", htmlFor: `${
|
|
1729
|
+
/* @__PURE__ */ e("label", { className: "cms-signin-form__label", htmlFor: `${m}-identifier`, children: a.identifier }),
|
|
1695
1730
|
/* @__PURE__ */ e(
|
|
1696
1731
|
"input",
|
|
1697
1732
|
{
|
|
1698
|
-
id: `${
|
|
1733
|
+
id: `${m}-identifier`,
|
|
1699
1734
|
className: "cms-signin-form__input",
|
|
1700
1735
|
type: "text",
|
|
1701
1736
|
autoComplete: "username",
|
|
1702
|
-
placeholder:
|
|
1703
|
-
value:
|
|
1704
|
-
onChange: (
|
|
1737
|
+
placeholder: a.identifierPlaceholder,
|
|
1738
|
+
value: v,
|
|
1739
|
+
onChange: (y) => u(y.target.value),
|
|
1705
1740
|
required: !0
|
|
1706
1741
|
}
|
|
1707
1742
|
),
|
|
1708
|
-
/* @__PURE__ */ e("label", { className: "cms-signin-form__label", htmlFor: `${
|
|
1709
|
-
/* @__PURE__ */
|
|
1743
|
+
/* @__PURE__ */ e("label", { className: "cms-signin-form__label", htmlFor: `${m}-password`, children: a.password }),
|
|
1744
|
+
/* @__PURE__ */ c("span", { className: "cms-signin-form__password", children: [
|
|
1710
1745
|
/* @__PURE__ */ e(
|
|
1711
1746
|
"input",
|
|
1712
1747
|
{
|
|
1713
|
-
id: `${
|
|
1748
|
+
id: `${m}-password`,
|
|
1714
1749
|
className: "cms-signin-form__input",
|
|
1715
|
-
type:
|
|
1750
|
+
type: h ? "text" : "password",
|
|
1716
1751
|
autoComplete: "current-password",
|
|
1717
|
-
value:
|
|
1718
|
-
onChange: (
|
|
1752
|
+
value: f,
|
|
1753
|
+
onChange: (y) => r(y.target.value),
|
|
1719
1754
|
required: !0
|
|
1720
1755
|
}
|
|
1721
1756
|
),
|
|
1722
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-signin-form__show", "aria-pressed":
|
|
1757
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-signin-form__show", "aria-pressed": h, onClick: () => _((y) => !y), children: h ? a.hide : a.show })
|
|
1723
1758
|
] }),
|
|
1724
|
-
t ? /* @__PURE__ */ e("a", { className: "cms-signin-form__forgot", href: t, children:
|
|
1725
|
-
|
|
1726
|
-
/* @__PURE__ */ e("button", { type: "submit", className: "cms-button cms-button--chrome cms-signin-form__submit", disabled:
|
|
1727
|
-
|
|
1728
|
-
/* @__PURE__ */ e("p", { className: "cms-signin-form__or", children: /* @__PURE__ */ e("span", { children:
|
|
1729
|
-
/* @__PURE__ */ e("a", { className: "cms-button cms-signin-form__create", href:
|
|
1759
|
+
t ? /* @__PURE__ */ e("a", { className: "cms-signin-form__forgot", href: t, children: a.forgot }) : null,
|
|
1760
|
+
o ? /* @__PURE__ */ e("p", { id: `${m}-error`, className: "cms-signin-form__error", role: "alert", children: o }) : null,
|
|
1761
|
+
/* @__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 }),
|
|
1762
|
+
i ? /* @__PURE__ */ c(E, { children: [
|
|
1763
|
+
/* @__PURE__ */ e("p", { className: "cms-signin-form__or", children: /* @__PURE__ */ e("span", { children: a.newHere }) }),
|
|
1764
|
+
/* @__PURE__ */ e("a", { className: "cms-button cms-signin-form__create", href: i, children: a.create })
|
|
1730
1765
|
] }) : null
|
|
1731
1766
|
] });
|
|
1732
1767
|
}
|
|
1733
|
-
const
|
|
1734
|
-
function
|
|
1768
|
+
const He = { bare: /* @__PURE__ */ new Set(), hidden: /* @__PURE__ */ new Set() }, Oe = (n, l) => n.size === l.size && [...n].every((t) => l.has(t));
|
|
1769
|
+
function $n(n) {
|
|
1735
1770
|
const l = /* @__PURE__ */ new Map();
|
|
1736
1771
|
for (const t of n) l.set(t.group, [...l.get(t.group) ?? [], t]);
|
|
1737
1772
|
return [...l.values()];
|
|
1738
1773
|
}
|
|
1739
|
-
function
|
|
1774
|
+
function In(n) {
|
|
1740
1775
|
const l = /* @__PURE__ */ new Map();
|
|
1741
1776
|
for (const t of n) t.overflow !== void 0 && t.overflow !== 0 && l.set(t.overflow, [...l.get(t.overflow) ?? [], t.id]);
|
|
1742
|
-
return [...l.entries()].sort(([t], [
|
|
1743
|
-
}
|
|
1744
|
-
function
|
|
1745
|
-
const m =
|
|
1746
|
-
const
|
|
1747
|
-
if (
|
|
1748
|
-
const
|
|
1749
|
-
var
|
|
1750
|
-
return ((
|
|
1751
|
-
},
|
|
1752
|
-
const
|
|
1753
|
-
return
|
|
1754
|
-
},
|
|
1755
|
-
let
|
|
1756
|
-
if (
|
|
1777
|
+
return [...l.entries()].sort(([t], [i]) => t - i).map(([, t]) => t);
|
|
1778
|
+
}
|
|
1779
|
+
function gl({ label: n, actions: l, onAction: t, status: i, moreLabel: o, leading: s }) {
|
|
1780
|
+
const d = l.filter((p) => p.entries === void 0 || p.entries.length > 0), a = H(null), m = H(null), v = H(null), [u, f] = A(He), [r, h] = A(null), [_, N] = A("first"), [y, k] = A(null), [C, M] = A(null), b = $n(d), w = In(d), T = b.flat(), O = T.filter((p) => p.overflow === 0), U = T.filter((p) => p.overflow !== 0), x = JSON.stringify([d.map((p) => [p.id, p.label, p.icon, p.group, p.overflow ?? null, p.entries !== void 0]), i ?? "", s !== void 0]), D = we(() => {
|
|
1781
|
+
const p = a.current, I = m.current;
|
|
1782
|
+
if (p === null || I === null) return;
|
|
1783
|
+
const K = getComputedStyle(p), X = parseFloat(K.columnGap || "0") || 0, P = p.clientWidth - (parseFloat(K.paddingLeft) || 0) - (parseFloat(K.paddingRight) || 0), j = (F) => {
|
|
1784
|
+
var Z;
|
|
1785
|
+
return ((Z = I.querySelector(F)) == null ? void 0 : Z.getBoundingClientRect().width) ?? 0;
|
|
1786
|
+
}, g = j('[data-measure="leading"]'), S = j('[data-measure="separator"]'), R = j('[data-measure="more"]'), W = (F, Z) => j(`[data-measure="${Z ? "full" : "icon"}"][data-measure-action="${CSS.escape(F)}"]`), ue = (F, Z) => {
|
|
1787
|
+
const ee = /* @__PURE__ */ new Set([...O.map((ie) => ie.id), ...Z]), oe = b.map((ie) => ie.filter((Ne) => !ee.has(Ne.id))).filter((ie) => ie.length > 0), ge = oe.flat(), We = ge.length + (oe.length - 1) + (ee.size > 0 ? 1 : 0) + (g > 0 ? 1 : 0);
|
|
1788
|
+
return g + ge.reduce((ie, Ne) => ie + W(Ne.id, !F.has(Ne.id)), 0) + S * Math.max(0, oe.length - 1) + (ee.size > 0 ? R : 0) + X * Math.max(0, We - 1);
|
|
1789
|
+
}, Fe = U.filter((F) => !w.some((Z) => Z.includes(F.id))).map((F) => F.id), Ve = [...w, ...[...Fe].reverse().map((F) => [F])];
|
|
1790
|
+
let me = null;
|
|
1791
|
+
if (ue(/* @__PURE__ */ new Set(), /* @__PURE__ */ new Set()) <= P) me = He;
|
|
1757
1792
|
else {
|
|
1758
|
-
const
|
|
1759
|
-
for (const
|
|
1760
|
-
for (const
|
|
1761
|
-
if (
|
|
1762
|
-
|
|
1793
|
+
const F = /* @__PURE__ */ new Set();
|
|
1794
|
+
for (const Z of Ve) {
|
|
1795
|
+
for (const ee of Z) F.add(ee);
|
|
1796
|
+
if (ue(F, /* @__PURE__ */ new Set()) <= P) {
|
|
1797
|
+
me = { bare: F, hidden: /* @__PURE__ */ new Set() };
|
|
1763
1798
|
break;
|
|
1764
1799
|
}
|
|
1765
1800
|
}
|
|
1766
1801
|
}
|
|
1767
|
-
if (
|
|
1768
|
-
const
|
|
1769
|
-
for (const
|
|
1770
|
-
for (const
|
|
1771
|
-
if (
|
|
1802
|
+
if (me === null) {
|
|
1803
|
+
const F = new Set(U.map((ee) => ee.id)), Z = /* @__PURE__ */ new Set();
|
|
1804
|
+
for (const ee of w) {
|
|
1805
|
+
for (const oe of ee) U.some((ge) => ge.id === oe) && Z.add(oe);
|
|
1806
|
+
if (Z.size >= 2 && ue(F, Z) <= P) break;
|
|
1772
1807
|
}
|
|
1773
|
-
if (
|
|
1774
|
-
for (const
|
|
1775
|
-
if (
|
|
1808
|
+
if (ue(F, Z) > P) {
|
|
1809
|
+
for (const ee of [...Fe].reverse())
|
|
1810
|
+
if (Z.add(ee), ue(F, Z) <= P) break;
|
|
1776
1811
|
}
|
|
1777
|
-
|
|
1812
|
+
me = { bare: F, hidden: Z };
|
|
1778
1813
|
}
|
|
1779
|
-
const
|
|
1780
|
-
|
|
1781
|
-
}, [
|
|
1782
|
-
|
|
1783
|
-
const
|
|
1784
|
-
if (
|
|
1785
|
-
const
|
|
1786
|
-
return
|
|
1787
|
-
}, [
|
|
1788
|
-
const
|
|
1789
|
-
...
|
|
1790
|
-
...
|
|
1814
|
+
const xe = me;
|
|
1815
|
+
f((F) => Oe(F.bare, xe.bare) && Oe(F.hidden, xe.hidden) ? F : xe);
|
|
1816
|
+
}, [x]);
|
|
1817
|
+
fe(D, [D]), Y(() => {
|
|
1818
|
+
const p = a.current;
|
|
1819
|
+
if (p === null || typeof ResizeObserver > "u") return;
|
|
1820
|
+
const I = new ResizeObserver(() => D());
|
|
1821
|
+
return I.observe(p), () => I.disconnect();
|
|
1822
|
+
}, [D]);
|
|
1823
|
+
const B = /* @__PURE__ */ new Set([...O.map((p) => p.id), ...u.hidden]), z = b.map((p) => p.filter((I) => !B.has(I.id))).filter((p) => p.length > 0).flat(), J = [
|
|
1824
|
+
...O,
|
|
1825
|
+
...w.flat().map((p) => T.find((I) => I.id === p)).filter((p) => p !== void 0 && u.hidden.has(p.id)),
|
|
1791
1826
|
// The pinned that a row too narrow for them sent behind ..., in the row's order.
|
|
1792
|
-
...
|
|
1793
|
-
],
|
|
1794
|
-
var
|
|
1795
|
-
const
|
|
1796
|
-
let
|
|
1797
|
-
if (
|
|
1798
|
-
|
|
1799
|
-
const
|
|
1800
|
-
|
|
1801
|
-
},
|
|
1802
|
-
id:
|
|
1803
|
-
label: /* @__PURE__ */
|
|
1804
|
-
/* @__PURE__ */ e(
|
|
1805
|
-
|
|
1827
|
+
...U.filter((p) => u.hidden.has(p.id) && !w.some((I) => I.includes(p.id)))
|
|
1828
|
+
], Q = new Set(U.filter((p) => !w.some((I) => I.includes(p.id))).map((p) => p.id)), ne = [...z.map((p) => p.id), ...J.length > 0 ? ["more"] : []], re = y !== null && ne.includes(y) ? y : ne[0] ?? null, _e = (p) => {
|
|
1829
|
+
var P, j;
|
|
1830
|
+
const I = ne.indexOf(re ?? "");
|
|
1831
|
+
let K = null;
|
|
1832
|
+
if (p.key === "ArrowRight" ? K = Math.min(ne.length - 1, I + 1) : p.key === "ArrowLeft" ? K = Math.max(0, I - 1) : p.key === "Home" ? K = 0 : p.key === "End" ? K = ne.length - 1 : p.key === "Escape" && M(re), K === null) return;
|
|
1833
|
+
p.preventDefault();
|
|
1834
|
+
const X = ne[K] ?? null;
|
|
1835
|
+
k(X), (j = (P = a.current) == null ? void 0 : P.querySelector(`[data-stop="${CSS.escape(X ?? "")}"]`)) == null || j.focus();
|
|
1836
|
+
}, ve = J.map((p) => ({
|
|
1837
|
+
id: p.id,
|
|
1838
|
+
label: /* @__PURE__ */ c(E, { children: [
|
|
1839
|
+
/* @__PURE__ */ e(he, { name: p.icon }),
|
|
1840
|
+
p.label
|
|
1841
|
+
] }),
|
|
1842
|
+
offer: p.disabled ? { offered: !0, locked: !1, refusal: p.reason ?? "" } : { offered: !0, locked: !1 },
|
|
1843
|
+
...p.danger ? { danger: !0 } : {},
|
|
1844
|
+
onSelect: () => {
|
|
1845
|
+
var K;
|
|
1846
|
+
if (p.disabled || p.busy) return;
|
|
1847
|
+
if (p.entries === void 0) {
|
|
1848
|
+
t(p.id);
|
|
1849
|
+
return;
|
|
1850
|
+
}
|
|
1851
|
+
const I = (K = v.current) == null ? void 0 : K.getBoundingClientRect();
|
|
1852
|
+
N("first"), h({ which: p.id, x: (I == null ? void 0 : I.left) ?? 0, y: (I == null ? void 0 : I.bottom) ?? 0 });
|
|
1853
|
+
}
|
|
1854
|
+
})), le = r === null || r.which === "more" ? void 0 : T.find((p) => p.id === r.which), ke = ((le == null ? void 0 : le.entries) ?? []).map((p) => ({
|
|
1855
|
+
id: p.id,
|
|
1856
|
+
label: /* @__PURE__ */ c(E, { children: [
|
|
1857
|
+
p.icon !== void 0 ? /* @__PURE__ */ e(he, { name: p.icon }) : null,
|
|
1858
|
+
p.label
|
|
1806
1859
|
] }),
|
|
1807
|
-
offer:
|
|
1808
|
-
...
|
|
1860
|
+
offer: p.disabled ? { offered: !0, locked: !1, refusal: p.reason ?? "" } : { offered: !0, locked: !1 },
|
|
1861
|
+
...p.danger ? { danger: !0 } : {},
|
|
1809
1862
|
onSelect: () => {
|
|
1810
|
-
|
|
1863
|
+
p.disabled || t(p.id);
|
|
1811
1864
|
}
|
|
1812
|
-
}))
|
|
1813
|
-
|
|
1865
|
+
})), te = (p, I, K) => {
|
|
1866
|
+
const X = I.getBoundingClientRect();
|
|
1867
|
+
N(K), h({ which: p, x: X.left, y: X.bottom });
|
|
1868
|
+
};
|
|
1869
|
+
return /* @__PURE__ */ c(
|
|
1814
1870
|
"div",
|
|
1815
1871
|
{
|
|
1816
|
-
ref:
|
|
1872
|
+
ref: a,
|
|
1817
1873
|
role: "toolbar",
|
|
1818
1874
|
"aria-label": n,
|
|
1819
|
-
className:
|
|
1875
|
+
className: $(
|
|
1820
1876
|
"cms-pane-toolbar",
|
|
1821
|
-
|
|
1822
|
-
|
|
1877
|
+
U.length > 0 && u.bare.size >= U.length && "cms-pane-toolbar--labels-hidden",
|
|
1878
|
+
u.bare.size > 0 && u.bare.size < U.length && "cms-pane-toolbar--labels-partly-hidden"
|
|
1823
1879
|
),
|
|
1824
|
-
onKeyDown:
|
|
1880
|
+
onKeyDown: _e,
|
|
1825
1881
|
children: [
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
const
|
|
1829
|
-
return /* @__PURE__ */
|
|
1830
|
-
|
|
1831
|
-
/* @__PURE__ */ e("div", { className: "cms-pane-toolbar__group", hidden:
|
|
1832
|
-
|
|
1882
|
+
s !== void 0 ? /* @__PURE__ */ e("div", { className: "cms-pane-toolbar__leading", children: s }) : null,
|
|
1883
|
+
b.map((p, I) => {
|
|
1884
|
+
const K = p.filter((P) => !B.has(P.id)), X = b.slice(0, I).some((P) => P.some((j) => !B.has(j.id)));
|
|
1885
|
+
return /* @__PURE__ */ c("div", { className: "cms-pane-toolbar__group-wrap", children: [
|
|
1886
|
+
K.length > 0 && X ? /* @__PURE__ */ e("span", { className: "cms-pane-toolbar__separator", role: "separator", "aria-orientation": "vertical" }) : null,
|
|
1887
|
+
/* @__PURE__ */ e("div", { className: "cms-pane-toolbar__group", hidden: K.length === 0, children: p.map((P) => /* @__PURE__ */ e(
|
|
1888
|
+
Pn,
|
|
1833
1889
|
{
|
|
1834
|
-
action:
|
|
1835
|
-
labels: !
|
|
1836
|
-
overflowed:
|
|
1837
|
-
pinned:
|
|
1838
|
-
tabbable:
|
|
1839
|
-
tipOff:
|
|
1840
|
-
|
|
1890
|
+
action: P,
|
|
1891
|
+
labels: !u.bare.has(P.id),
|
|
1892
|
+
overflowed: B.has(P.id),
|
|
1893
|
+
pinned: Q.has(P.id),
|
|
1894
|
+
tabbable: re === P.id,
|
|
1895
|
+
tipOff: C === P.id,
|
|
1896
|
+
menuOpen: (r == null ? void 0 : r.which) === P.id,
|
|
1897
|
+
onChoose: (j, g) => {
|
|
1898
|
+
P.entries === void 0 ? t(P.id) : (r == null ? void 0 : r.which) === P.id && g === null ? h(null) : te(P.id, j, g ?? "first");
|
|
1899
|
+
},
|
|
1841
1900
|
onFocus: () => {
|
|
1842
|
-
|
|
1901
|
+
k(P.id), M(null);
|
|
1843
1902
|
}
|
|
1844
1903
|
},
|
|
1845
|
-
|
|
1904
|
+
P.id
|
|
1846
1905
|
)) })
|
|
1847
|
-
] },
|
|
1906
|
+
] }, I);
|
|
1848
1907
|
}),
|
|
1849
|
-
|
|
1908
|
+
J.length > 0 ? /* @__PURE__ */ e(
|
|
1850
1909
|
"button",
|
|
1851
1910
|
{
|
|
1911
|
+
ref: v,
|
|
1852
1912
|
type: "button",
|
|
1853
1913
|
className: "cms-icon-button cms-pane-toolbar__more",
|
|
1854
1914
|
"data-stop": "more",
|
|
1855
|
-
"aria-label":
|
|
1856
|
-
title:
|
|
1915
|
+
"aria-label": o,
|
|
1916
|
+
title: o,
|
|
1857
1917
|
"aria-haspopup": "menu",
|
|
1858
|
-
"aria-expanded":
|
|
1859
|
-
tabIndex:
|
|
1860
|
-
onFocus: () =>
|
|
1861
|
-
onClick: (
|
|
1862
|
-
|
|
1863
|
-
f("first"), u(o === null ? { x: D.left, y: D.bottom } : null);
|
|
1918
|
+
"aria-expanded": (r == null ? void 0 : r.which) === "more",
|
|
1919
|
+
tabIndex: re === "more" ? 0 : -1,
|
|
1920
|
+
onFocus: () => k("more"),
|
|
1921
|
+
onClick: (p) => {
|
|
1922
|
+
(r == null ? void 0 : r.which) === "more" ? h(null) : te("more", p.currentTarget, "first");
|
|
1864
1923
|
},
|
|
1865
|
-
onKeyDown: (
|
|
1866
|
-
|
|
1867
|
-
g.preventDefault(), g.stopPropagation();
|
|
1868
|
-
const D = g.currentTarget.getBoundingClientRect();
|
|
1869
|
-
f(g.key === "ArrowUp" ? "last" : "first"), u({ x: D.left, y: D.bottom });
|
|
1870
|
-
}
|
|
1924
|
+
onKeyDown: (p) => {
|
|
1925
|
+
(p.key === "ArrowDown" || p.key === "ArrowUp") && (p.preventDefault(), p.stopPropagation(), te("more", p.currentTarget, p.key === "ArrowUp" ? "last" : "first"));
|
|
1871
1926
|
},
|
|
1872
|
-
children: /* @__PURE__ */ e(
|
|
1927
|
+
children: /* @__PURE__ */ e(L, { name: "more" })
|
|
1873
1928
|
}
|
|
1874
1929
|
) : null,
|
|
1875
|
-
|
|
1876
|
-
/* @__PURE__ */ e(
|
|
1877
|
-
/* @__PURE__ */
|
|
1878
|
-
|
|
1930
|
+
i !== void 0 ? /* @__PURE__ */ e("span", { className: "cms-pane-toolbar__status", title: i, children: i }) : null,
|
|
1931
|
+
/* @__PURE__ */ e(pe, { at: (r == null ? void 0 : r.which) === "more" ? r : null, items: ve, onClose: () => h(null), label: o, focus: _ }),
|
|
1932
|
+
/* @__PURE__ */ e(pe, { at: le !== void 0 ? r : null, items: ke, onClose: () => h(null), label: (le == null ? void 0 : le.label) ?? "", focus: _ }),
|
|
1933
|
+
/* @__PURE__ */ c("div", { ref: m, className: "cms-pane-toolbar__measure", "aria-hidden": "true", children: [
|
|
1934
|
+
s !== void 0 ? /* @__PURE__ */ e("div", { "data-measure": "leading", children: s }) : null,
|
|
1879
1935
|
/* @__PURE__ */ e("span", { "data-measure": "separator", className: "cms-pane-toolbar__separator" }),
|
|
1880
|
-
/* @__PURE__ */ e("span", { "data-measure": "more", className: "cms-icon-button cms-pane-toolbar__more", children: /* @__PURE__ */ e(
|
|
1881
|
-
|
|
1882
|
-
/* @__PURE__ */
|
|
1883
|
-
/* @__PURE__ */ e(
|
|
1884
|
-
/* @__PURE__ */ e("span", { className: "cms-pane-toolbar__label", children:
|
|
1936
|
+
/* @__PURE__ */ e("span", { "data-measure": "more", className: "cms-icon-button cms-pane-toolbar__more", children: /* @__PURE__ */ e(L, { name: "more" }) }),
|
|
1937
|
+
T.map((p) => /* @__PURE__ */ c("span", { children: [
|
|
1938
|
+
/* @__PURE__ */ c("span", { "data-measure": "full", "data-measure-action": p.id, className: $("cms-pane-toolbar__action", p.entries !== void 0 && "cms-pane-toolbar__action--menu"), children: [
|
|
1939
|
+
/* @__PURE__ */ e(he, { name: p.icon }),
|
|
1940
|
+
/* @__PURE__ */ e("span", { className: "cms-pane-toolbar__label", children: p.label }),
|
|
1941
|
+
p.entries !== void 0 ? /* @__PURE__ */ e(Ae, {}) : null
|
|
1885
1942
|
] }),
|
|
1886
|
-
/* @__PURE__ */
|
|
1887
|
-
|
|
1943
|
+
/* @__PURE__ */ c("span", { "data-measure": "icon", "data-measure-action": p.id, className: $("cms-pane-toolbar__action", de(p.icon) !== null && "cms-pane-toolbar__action--bare", p.entries !== void 0 && "cms-pane-toolbar__action--menu"), children: [
|
|
1944
|
+
de(p.icon) !== null ? /* @__PURE__ */ e(he, { name: p.icon }) : /* @__PURE__ */ e("span", { className: "cms-pane-toolbar__label", children: p.label }),
|
|
1945
|
+
p.entries !== void 0 ? /* @__PURE__ */ e(Ae, {}) : null
|
|
1946
|
+
] })
|
|
1947
|
+
] }, p.id))
|
|
1888
1948
|
] })
|
|
1889
1949
|
]
|
|
1890
1950
|
}
|
|
1891
1951
|
);
|
|
1892
1952
|
}
|
|
1893
|
-
function
|
|
1894
|
-
const [
|
|
1895
|
-
|
|
1953
|
+
function Pn({ action: n, labels: l, overflowed: t, pinned: i, tabbable: o, tipOff: s, menuOpen: d, onChoose: a, onFocus: m }) {
|
|
1954
|
+
const [v, u] = A(!1);
|
|
1955
|
+
Y(() => {
|
|
1896
1956
|
if (!n.busy) {
|
|
1897
|
-
|
|
1957
|
+
u(!1);
|
|
1898
1958
|
return;
|
|
1899
1959
|
}
|
|
1900
|
-
const
|
|
1901
|
-
return () => clearTimeout(
|
|
1960
|
+
const M = setTimeout(() => u(!0), Ce);
|
|
1961
|
+
return () => clearTimeout(M);
|
|
1902
1962
|
}, [n.busy]);
|
|
1903
|
-
const
|
|
1904
|
-
return /* @__PURE__ */
|
|
1963
|
+
const f = de(n.icon) === null, r = l || f, h = n.disabled && n.reason ? n.reason : null, _ = h ?? (r ? null : n.label), N = G(), [y, k] = A(!1), C = n.entries !== void 0;
|
|
1964
|
+
return /* @__PURE__ */ c(
|
|
1905
1965
|
"button",
|
|
1906
1966
|
{
|
|
1907
1967
|
type: "button",
|
|
1908
|
-
className:
|
|
1968
|
+
className: $("cms-pane-toolbar__action", !r && "cms-pane-toolbar__action--bare", f && "cms-pane-toolbar__action--text", C && "cms-pane-toolbar__action--menu", n.danger && "is-danger"),
|
|
1909
1969
|
"data-action": n.id,
|
|
1910
1970
|
"data-stop": n.id,
|
|
1911
1971
|
...t ? { "data-overflowed": "" } : {},
|
|
1912
|
-
...
|
|
1972
|
+
...i ? { "data-pinned": "" } : {},
|
|
1913
1973
|
hidden: t,
|
|
1914
1974
|
"aria-label": n.label,
|
|
1915
1975
|
"aria-disabled": n.disabled || void 0,
|
|
1916
1976
|
"aria-busy": n.busy || void 0,
|
|
1917
|
-
...
|
|
1918
|
-
...
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1977
|
+
...C ? { "aria-haspopup": "menu", "aria-expanded": d } : {},
|
|
1978
|
+
...h === null ? {} : { "aria-describedby": N },
|
|
1979
|
+
...y && h !== null ? { "data-reason-shown": "" } : {},
|
|
1980
|
+
tabIndex: o ? 0 : -1,
|
|
1981
|
+
onFocus: m,
|
|
1982
|
+
onBlur: () => k(!1),
|
|
1983
|
+
onKeyDown: (M) => {
|
|
1984
|
+
M.key === "Escape" && k(!1), C && (M.key === "ArrowDown" || M.key === "ArrowUp") && (M.preventDefault(), h !== null ? k(!0) : !n.disabled && !n.busy && a(M.currentTarget, M.key === "ArrowUp" ? "last" : "first"));
|
|
1924
1985
|
},
|
|
1925
|
-
onClick: () => {
|
|
1926
|
-
|
|
1986
|
+
onClick: (M) => {
|
|
1987
|
+
h !== null ? k(!0) : !n.disabled && !n.busy && a(M.currentTarget, null);
|
|
1927
1988
|
},
|
|
1928
1989
|
children: [
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1990
|
+
v ? /* @__PURE__ */ e(V, { name: "spinner" }) : /* @__PURE__ */ e(he, { name: n.icon }),
|
|
1991
|
+
r ? /* @__PURE__ */ e("span", { className: "cms-pane-toolbar__label", "aria-hidden": "true", children: n.label }) : null,
|
|
1992
|
+
C ? /* @__PURE__ */ e(Ae, {}) : null,
|
|
1993
|
+
h !== null || _ !== null && !s ? /* @__PURE__ */ e("span", { className: "cms-pane-toolbar__tip", role: "tooltip", id: N, children: _ }) : null
|
|
1932
1994
|
]
|
|
1933
1995
|
}
|
|
1934
1996
|
);
|
|
1935
1997
|
}
|
|
1936
|
-
function
|
|
1937
|
-
|
|
1938
|
-
return l === null ? null : /* @__PURE__ */ e(A, { name: l, size: 18 });
|
|
1998
|
+
function Ae() {
|
|
1999
|
+
return /* @__PURE__ */ e("span", { className: "cms-pane-toolbar__chevron", "aria-hidden": "true", children: /* @__PURE__ */ e(L, { name: "chevron-down", size: 14 }) });
|
|
1939
2000
|
}
|
|
1940
|
-
function
|
|
1941
|
-
const
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
2001
|
+
function he({ name: n }) {
|
|
2002
|
+
const l = de(n);
|
|
2003
|
+
return l === null ? null : /* @__PURE__ */ e(L, { name: l, size: 18 });
|
|
2004
|
+
}
|
|
2005
|
+
function Nl({ title: n, body: l = null, time: t = null, unread: i, unreadLabel: o, expandLabel: s, collapseLabel: d, action: a = null, onRead: m, leading: v }) {
|
|
2006
|
+
const [u, f] = A(!1), r = G(), h = () => {
|
|
2007
|
+
i && m();
|
|
2008
|
+
}, _ = (a == null ? void 0 : a.presentation) === "row" && a.onAction !== void 0, N = (a == null ? void 0 : a.presentation) === "button" && a.onAction !== void 0 ? a : null, y = () => {
|
|
2009
|
+
var k;
|
|
2010
|
+
h(), _ && ((k = a.onAction) == null || k.call(a));
|
|
1946
2011
|
};
|
|
1947
|
-
return /* @__PURE__ */
|
|
1948
|
-
/* @__PURE__ */
|
|
2012
|
+
return /* @__PURE__ */ c("article", { className: $("cms-notification", i && "is-unread", u && "is-expanded", _ && "is-row-action"), "data-state": i ? "unread" : "read", children: [
|
|
2013
|
+
/* @__PURE__ */ c(
|
|
1949
2014
|
"div",
|
|
1950
2015
|
{
|
|
1951
2016
|
className: "cms-notification__row",
|
|
1952
2017
|
role: "button",
|
|
1953
2018
|
tabIndex: 0,
|
|
1954
|
-
"aria-describedby": l === null ? void 0 :
|
|
1955
|
-
onClick:
|
|
1956
|
-
onKeyDown: (
|
|
1957
|
-
|
|
2019
|
+
"aria-describedby": l === null ? void 0 : r,
|
|
2020
|
+
onClick: y,
|
|
2021
|
+
onKeyDown: (k) => {
|
|
2022
|
+
k.target !== k.currentTarget || k.key !== "Enter" && k.key !== " " || (k.preventDefault(), y());
|
|
1958
2023
|
},
|
|
1959
2024
|
children: [
|
|
1960
|
-
|
|
1961
|
-
/* @__PURE__ */
|
|
1962
|
-
/* @__PURE__ */
|
|
1963
|
-
/* @__PURE__ */
|
|
1964
|
-
|
|
1965
|
-
|
|
2025
|
+
v != null ? /* @__PURE__ */ e("span", { className: "cms-notification__leading", children: v }) : null,
|
|
2026
|
+
/* @__PURE__ */ c("span", { className: "cms-notification__text", children: [
|
|
2027
|
+
/* @__PURE__ */ c("span", { className: "cms-notification__head", children: [
|
|
2028
|
+
/* @__PURE__ */ c("span", { className: "cms-notification__title", children: [
|
|
2029
|
+
i ? /* @__PURE__ */ c("span", { className: "cms-visually-hidden", children: [
|
|
2030
|
+
o,
|
|
1966
2031
|
" "
|
|
1967
2032
|
] }) : null,
|
|
1968
2033
|
n
|
|
1969
2034
|
] }),
|
|
1970
2035
|
t !== null ? /* @__PURE__ */ e("span", { className: "cms-notification__time", children: t }) : null
|
|
1971
2036
|
] }),
|
|
1972
|
-
l !== null && l !== "" ? /* @__PURE__ */ e("span", { className: "cms-notification__body", id:
|
|
2037
|
+
l !== null && l !== "" ? /* @__PURE__ */ e("span", { className: "cms-notification__body", id: r, children: l }) : null
|
|
1973
2038
|
] }),
|
|
1974
|
-
|
|
2039
|
+
i ? /* @__PURE__ */ e("span", { className: "cms-notification__dot", "aria-hidden": "true" }) : null
|
|
1975
2040
|
]
|
|
1976
2041
|
}
|
|
1977
2042
|
),
|
|
@@ -1980,35 +2045,35 @@ function dl({ title: n, body: l = null, time: t = null, unread: d, unreadLabel:
|
|
|
1980
2045
|
{
|
|
1981
2046
|
type: "button",
|
|
1982
2047
|
className: "cms-notification__chevron",
|
|
1983
|
-
"aria-expanded":
|
|
1984
|
-
"aria-controls":
|
|
1985
|
-
"aria-label":
|
|
1986
|
-
title:
|
|
2048
|
+
"aria-expanded": u,
|
|
2049
|
+
"aria-controls": r,
|
|
2050
|
+
"aria-label": u ? d : s,
|
|
2051
|
+
title: u ? d : s,
|
|
1987
2052
|
onClick: () => {
|
|
1988
|
-
|
|
2053
|
+
u || h(), f((k) => !k);
|
|
1989
2054
|
},
|
|
1990
|
-
children: /* @__PURE__ */ e(
|
|
2055
|
+
children: /* @__PURE__ */ e(L, { name: "chevron-down", size: 18 })
|
|
1991
2056
|
}
|
|
1992
2057
|
) : null,
|
|
1993
|
-
|
|
2058
|
+
N !== null ? /* @__PURE__ */ e(
|
|
1994
2059
|
"button",
|
|
1995
2060
|
{
|
|
1996
2061
|
type: "button",
|
|
1997
2062
|
className: "cms-button cms-notification__action",
|
|
1998
2063
|
onClick: () => {
|
|
1999
|
-
var
|
|
2000
|
-
|
|
2064
|
+
var k;
|
|
2065
|
+
h(), (k = N.onAction) == null || k.call(N);
|
|
2001
2066
|
},
|
|
2002
|
-
children:
|
|
2067
|
+
children: N.label
|
|
2003
2068
|
}
|
|
2004
2069
|
) : null
|
|
2005
2070
|
] });
|
|
2006
2071
|
}
|
|
2007
|
-
function
|
|
2072
|
+
function Fn(n) {
|
|
2008
2073
|
return n === "allowed" || n === "elevate" || n === "denied";
|
|
2009
2074
|
}
|
|
2010
|
-
function
|
|
2011
|
-
if (!
|
|
2075
|
+
function wl(n, l) {
|
|
2076
|
+
if (!Fn(n))
|
|
2012
2077
|
return l.showRefused ? { offered: !0, locked: !1, refusal: "not available: the server gave an answer this app does not know", unknown: !0 } : { offered: !1, locked: !1, unknown: !0 };
|
|
2013
2078
|
switch (n) {
|
|
2014
2079
|
case "allowed":
|
|
@@ -2019,219 +2084,220 @@ function ul(n, l) {
|
|
|
2019
2084
|
return l.showRefused ? { offered: !0, locked: !1, refusal: l.refusal ?? "not allowed" } : { offered: !1, locked: !1 };
|
|
2020
2085
|
}
|
|
2021
2086
|
}
|
|
2022
|
-
function
|
|
2087
|
+
function Bn(n, l) {
|
|
2023
2088
|
if (!n) return;
|
|
2024
2089
|
if (typeof n.get == "function") return n.get(l) ?? void 0;
|
|
2025
|
-
const t = n,
|
|
2026
|
-
return
|
|
2090
|
+
const t = n, i = Object.keys(t).find((o) => o.toLowerCase() === l.toLowerCase());
|
|
2091
|
+
return i === void 0 ? void 0 : t[i];
|
|
2027
2092
|
}
|
|
2028
|
-
function
|
|
2093
|
+
function Rn(n) {
|
|
2029
2094
|
if (n && typeof n == "object") {
|
|
2030
2095
|
const l = n;
|
|
2031
2096
|
if (typeof l.detail == "string" && l.detail !== "") return l.detail;
|
|
2032
2097
|
if (typeof l.title == "string" && l.title !== "") return l.title;
|
|
2033
2098
|
}
|
|
2034
2099
|
}
|
|
2035
|
-
function
|
|
2100
|
+
function yl(n, l, t, i) {
|
|
2036
2101
|
if (n !== 403) return { kind: "none" };
|
|
2037
|
-
const
|
|
2038
|
-
return
|
|
2039
|
-
}
|
|
2040
|
-
const
|
|
2041
|
-
function
|
|
2042
|
-
window.dispatchEvent(new Event(
|
|
2043
|
-
}
|
|
2044
|
-
function
|
|
2045
|
-
const [l, t] =
|
|
2046
|
-
|
|
2047
|
-
const
|
|
2048
|
-
const
|
|
2049
|
-
|
|
2050
|
-
(
|
|
2051
|
-
|
|
2102
|
+
const o = Rn(t);
|
|
2103
|
+
return Bn(l, "X-Elevation-Required") !== void 0 ? i.elevates ? { kind: "elevation-required", message: o ?? "This needs an elevated session." } : { kind: "refused", message: "This can only be done in the admin, in an elevated session." } : { kind: "refused", message: o ?? "The server refused this." };
|
|
2104
|
+
}
|
|
2105
|
+
const Te = "coolms-kit:reread";
|
|
2106
|
+
function kl() {
|
|
2107
|
+
window.dispatchEvent(new Event(Te));
|
|
2108
|
+
}
|
|
2109
|
+
function xl(n) {
|
|
2110
|
+
const [l, t] = A(void 0), [i, o] = A(void 0), [s, d] = A(!0), a = H(n);
|
|
2111
|
+
a.current = n;
|
|
2112
|
+
const m = H(0), v = we(() => {
|
|
2113
|
+
const u = ++m.current;
|
|
2114
|
+
d(!0), a.current().then(
|
|
2115
|
+
(f) => {
|
|
2116
|
+
u === m.current && (t(f), o(void 0), d(!1));
|
|
2052
2117
|
},
|
|
2053
|
-
(
|
|
2054
|
-
|
|
2118
|
+
(f) => {
|
|
2119
|
+
u === m.current && (o(f), d(!1));
|
|
2055
2120
|
}
|
|
2056
2121
|
);
|
|
2057
2122
|
}, []);
|
|
2058
|
-
return
|
|
2059
|
-
|
|
2060
|
-
const
|
|
2061
|
-
return window.addEventListener("focus",
|
|
2062
|
-
window.removeEventListener("focus",
|
|
2123
|
+
return Y(() => {
|
|
2124
|
+
v();
|
|
2125
|
+
const u = () => v();
|
|
2126
|
+
return window.addEventListener("focus", u), window.addEventListener(Te, u), () => {
|
|
2127
|
+
window.removeEventListener("focus", u), window.removeEventListener(Te, u);
|
|
2063
2128
|
};
|
|
2064
|
-
}, [
|
|
2129
|
+
}, [v]), { value: l, error: i, loading: s, reread: v };
|
|
2065
2130
|
}
|
|
2066
|
-
function
|
|
2131
|
+
function Ml(n) {
|
|
2067
2132
|
return n === 412 ? { conflict: !0, message: "Someone changed this since you opened it. Nothing was saved; read it again to see the change." } : { conflict: !1 };
|
|
2068
2133
|
}
|
|
2069
|
-
const
|
|
2070
|
-
function
|
|
2071
|
-
const t = n.split(".").map((
|
|
2072
|
-
for (let
|
|
2073
|
-
const
|
|
2074
|
-
if (
|
|
2134
|
+
const Hn = "/errors/client-update-required";
|
|
2135
|
+
function On(n, l) {
|
|
2136
|
+
const t = n.split(".").map((o) => Number.parseInt(o, 10) || 0), i = l.split(".").map((o) => Number.parseInt(o, 10) || 0);
|
|
2137
|
+
for (let o = 0; o < Math.max(t.length, i.length); o++) {
|
|
2138
|
+
const s = t[o] ?? 0, d = i[o] ?? 0;
|
|
2139
|
+
if (s !== d) return s < d;
|
|
2075
2140
|
}
|
|
2076
2141
|
return !1;
|
|
2077
2142
|
}
|
|
2078
|
-
function
|
|
2079
|
-
return n.problemType !== void 0 && n.problemType.endsWith(
|
|
2143
|
+
function Cl(n) {
|
|
2144
|
+
return n.problemType !== void 0 && n.problemType.endsWith(Hn) ? !0 : n.minimumVersion !== void 0 && On(n.version, n.minimumVersion);
|
|
2080
2145
|
}
|
|
2081
|
-
const
|
|
2082
|
-
function
|
|
2083
|
-
const [t,
|
|
2084
|
-
return
|
|
2085
|
-
const
|
|
2086
|
-
if (
|
|
2087
|
-
|
|
2146
|
+
const Ue = 4, Un = 48, zn = 800, Kn = /* @__PURE__ */ new Set(["ArrowDown", "ArrowUp", "PageDown", "PageUp", "Home", "End", " "]);
|
|
2147
|
+
function Zn(n, l) {
|
|
2148
|
+
const [t, i] = A(!1);
|
|
2149
|
+
return Y(() => {
|
|
2150
|
+
const o = n.current;
|
|
2151
|
+
if (o === null || !l) {
|
|
2152
|
+
i(!1);
|
|
2088
2153
|
return;
|
|
2089
2154
|
}
|
|
2090
|
-
const
|
|
2091
|
-
let
|
|
2092
|
-
const
|
|
2093
|
-
|
|
2094
|
-
},
|
|
2095
|
-
const
|
|
2096
|
-
!(
|
|
2097
|
-
},
|
|
2098
|
-
const
|
|
2099
|
-
if (!(
|
|
2100
|
-
const
|
|
2101
|
-
if (
|
|
2102
|
-
|
|
2155
|
+
const s = /* @__PURE__ */ new WeakMap();
|
|
2156
|
+
let d = Number.NEGATIVE_INFINITY, a = null;
|
|
2157
|
+
const m = (r) => {
|
|
2158
|
+
d = performance.now(), a = r.target;
|
|
2159
|
+
}, v = (r) => {
|
|
2160
|
+
const h = r.target;
|
|
2161
|
+
!(h instanceof HTMLElement && (h.isContentEditable || h.closest("input, textarea, select") !== null)) && Kn.has(r.key) && m(r);
|
|
2162
|
+
}, u = (r) => {
|
|
2163
|
+
const h = r.target;
|
|
2164
|
+
if (!(h instanceof HTMLElement)) return;
|
|
2165
|
+
const _ = h.scrollTop, N = s.get(h) ?? 0;
|
|
2166
|
+
if (s.set(h, _), _ <= 0) {
|
|
2167
|
+
i(!1);
|
|
2103
2168
|
return;
|
|
2104
2169
|
}
|
|
2105
|
-
performance.now() -
|
|
2106
|
-
},
|
|
2107
|
-
for (const [
|
|
2108
|
-
return
|
|
2109
|
-
for (const [
|
|
2110
|
-
|
|
2170
|
+
performance.now() - d > zn || !(a === o || a === document.body || a instanceof Node && h.contains(a)) || (_ < N - Ue ? i(!1) : _ > N + Ue && _ > Un && i(!0));
|
|
2171
|
+
}, f = [["wheel", m], ["touchmove", m], ["pointerdown", m], ["keydown", v]];
|
|
2172
|
+
for (const [r, h] of f) o.addEventListener(r, h, { capture: !0, passive: !0 });
|
|
2173
|
+
return o.addEventListener("scroll", u, { capture: !0, passive: !0 }), () => {
|
|
2174
|
+
for (const [r, h] of f) o.removeEventListener(r, h, { capture: !0 });
|
|
2175
|
+
o.removeEventListener("scroll", u, { capture: !0 });
|
|
2111
2176
|
};
|
|
2112
|
-
}, [n, l]), [t,
|
|
2177
|
+
}, [n, l]), [t, i];
|
|
2113
2178
|
}
|
|
2114
|
-
function
|
|
2115
|
-
const a =
|
|
2116
|
-
|
|
2117
|
-
}),
|
|
2118
|
-
return /* @__PURE__ */
|
|
2179
|
+
function Sl({ title: n, back: l, navigation: t, search: i, searching: o, globals: s, filters: d, primary: a, onRefresh: m, pullText: v, barHidden: u, children: f }) {
|
|
2180
|
+
const r = a !== void 0 && "menu" in a && !a.menu.some((D) => D.offer.offered) ? void 0 : a, h = H(null), _ = H(null), [N, y] = A(!1), [k, C] = A(null), b = Nn(_, m === void 0 ? null : () => {
|
|
2181
|
+
N || (y(!0), m().finally(() => y(!1)));
|
|
2182
|
+
}), w = m === void 0 ? null : { distance: b, refreshing: N, text: v ?? null }, T = o !== void 0 || b > 0 || N, [O, U] = Zn(h, u === void 0 && !T), x = !T && (u ?? O);
|
|
2183
|
+
return /* @__PURE__ */ c(
|
|
2119
2184
|
"div",
|
|
2120
2185
|
{
|
|
2121
|
-
ref:
|
|
2122
|
-
className:
|
|
2123
|
-
"data-bar-hidden":
|
|
2124
|
-
onFocus: (
|
|
2125
|
-
|
|
2186
|
+
ref: h,
|
|
2187
|
+
className: $("cms-screen", r !== void 0 && "cms-screen--with-primary"),
|
|
2188
|
+
"data-bar-hidden": x ? "" : void 0,
|
|
2189
|
+
onFocus: (D) => {
|
|
2190
|
+
x && D.target instanceof Element && D.target.closest(".cms-screen__bar, .cms-screen__filters") !== null && U(!1);
|
|
2126
2191
|
},
|
|
2127
2192
|
children: [
|
|
2128
|
-
|
|
2129
|
-
/* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button cms-screen__icon", "aria-label":
|
|
2130
|
-
/* @__PURE__ */ e("div", { className: "cms-screen__search", children:
|
|
2131
|
-
] }) : /* @__PURE__ */
|
|
2132
|
-
/* @__PURE__ */ e("div", { className: "cms-screen__leading", children: l !== void 0 ? l.href !== void 0 ? /* @__PURE__ */
|
|
2133
|
-
/* @__PURE__ */ e(
|
|
2193
|
+
o !== void 0 ? /* @__PURE__ */ c("header", { className: "cms-screen__bar cms-screen__bar--searching", children: [
|
|
2194
|
+
/* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button cms-screen__icon", "aria-label": o.closeLabel, title: o.closeLabel, onClick: o.onClose, children: /* @__PURE__ */ e(L, { name: "chevron-left" }) }),
|
|
2195
|
+
/* @__PURE__ */ e("div", { className: "cms-screen__search", children: o.field })
|
|
2196
|
+
] }) : /* @__PURE__ */ c("header", { className: "cms-screen__bar", children: [
|
|
2197
|
+
/* @__PURE__ */ e("div", { className: "cms-screen__leading", children: l !== void 0 ? l.href !== void 0 ? /* @__PURE__ */ c("a", { className: "cms-screen__back", href: l.href, onClick: l.onBack, children: [
|
|
2198
|
+
/* @__PURE__ */ e(L, { name: "chevron-left" }),
|
|
2134
2199
|
/* @__PURE__ */ e("span", { className: "cms-screen__back-name", children: l.label })
|
|
2135
|
-
] }) : /* @__PURE__ */
|
|
2136
|
-
/* @__PURE__ */ e(
|
|
2200
|
+
] }) : /* @__PURE__ */ c("button", { type: "button", className: "cms-screen__back", onClick: l.onBack, children: [
|
|
2201
|
+
/* @__PURE__ */ e(L, { name: "chevron-left" }),
|
|
2137
2202
|
/* @__PURE__ */ e("span", { className: "cms-screen__back-name", children: l.label })
|
|
2138
2203
|
] }) : t }),
|
|
2139
2204
|
/* @__PURE__ */ e("h1", { className: "cms-screen__title", title: n, children: n }),
|
|
2140
|
-
/* @__PURE__ */
|
|
2141
|
-
|
|
2142
|
-
|
|
2205
|
+
/* @__PURE__ */ c("div", { className: "cms-screen__trailing", children: [
|
|
2206
|
+
i !== void 0 ? /* @__PURE__ */ e("button", { type: "button", className: "cms-icon-button cms-screen__icon", "aria-label": i.label, title: i.label, onClick: i.onOpen, children: /* @__PURE__ */ e(L, { name: "search" }) }) : null,
|
|
2207
|
+
s
|
|
2143
2208
|
] })
|
|
2144
2209
|
] }),
|
|
2145
|
-
|
|
2146
|
-
/* @__PURE__ */ e("div", { ref:
|
|
2147
|
-
|
|
2210
|
+
d !== void 0 ? /* @__PURE__ */ e("div", { className: "cms-screen__filters", children: /* @__PURE__ */ e(An, { label: d.label, options: d.options, value: d.selected, onChange: d.onSelect }) }) : null,
|
|
2211
|
+
/* @__PURE__ */ e("div", { ref: _, className: "cms-screen__content", "data-pulling": b > 0 ? "" : void 0, "data-refreshing": N ? "" : void 0, children: /* @__PURE__ */ e(Ze.Provider, { value: w, children: f }) }),
|
|
2212
|
+
r !== void 0 ? /* @__PURE__ */ e(
|
|
2148
2213
|
"button",
|
|
2149
2214
|
{
|
|
2150
2215
|
type: "button",
|
|
2151
2216
|
className: "cms-button cms-button--primary cms-screen__primary",
|
|
2152
|
-
"aria-label":
|
|
2153
|
-
title:
|
|
2154
|
-
..."menu" in
|
|
2155
|
-
onClick: (
|
|
2156
|
-
if ("menu" in
|
|
2157
|
-
const B =
|
|
2158
|
-
|
|
2217
|
+
"aria-label": r.label,
|
|
2218
|
+
title: r.label,
|
|
2219
|
+
..."menu" in r ? { "aria-haspopup": "menu", "aria-expanded": k !== null } : {},
|
|
2220
|
+
onClick: (D) => {
|
|
2221
|
+
if ("menu" in r) {
|
|
2222
|
+
const B = D.currentTarget.getBoundingClientRect();
|
|
2223
|
+
C(k === null ? { x: B.left, y: B.top } : null);
|
|
2159
2224
|
} else
|
|
2160
|
-
|
|
2225
|
+
r.onPress();
|
|
2161
2226
|
},
|
|
2162
|
-
children: /* @__PURE__ */ e(
|
|
2227
|
+
children: /* @__PURE__ */ e(L, { name: r.icon, size: 24 })
|
|
2163
2228
|
}
|
|
2164
2229
|
) : null,
|
|
2165
|
-
|
|
2230
|
+
r !== void 0 && "menu" in r ? /* @__PURE__ */ e(pe, { at: k, items: r.menu, onClose: () => C(null), label: r.label }) : null
|
|
2166
2231
|
]
|
|
2167
2232
|
}
|
|
2168
2233
|
);
|
|
2169
2234
|
}
|
|
2170
2235
|
export {
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2236
|
+
cl as AppShell,
|
|
2237
|
+
ye as Avatar,
|
|
2238
|
+
Be as BOOTSTRAP_ICONS,
|
|
2239
|
+
En as Badge,
|
|
2240
|
+
se as Button,
|
|
2241
|
+
Pe as CALL_LABELS,
|
|
2242
|
+
Hn as CLIENT_UPDATE_REQUIRED,
|
|
2243
|
+
bl as CallBar,
|
|
2244
|
+
pl as CallPanel,
|
|
2245
|
+
ml as ChatBubble,
|
|
2246
|
+
hl as Composer,
|
|
2247
|
+
Jn as ConfirmDialog,
|
|
2248
|
+
pe as ContextMenu,
|
|
2249
|
+
ln as EmptyState,
|
|
2250
|
+
tn as ErrorBanner,
|
|
2251
|
+
tl as FilePicker,
|
|
2252
|
+
pn as FilePickerDenied,
|
|
2253
|
+
bn as FilePickerRestart,
|
|
2254
|
+
ll as FileViewer,
|
|
2255
|
+
An as FilterChips,
|
|
2256
|
+
nl as ICON_NAMES,
|
|
2257
|
+
L as Icon,
|
|
2258
|
+
fl as IncomingCall,
|
|
2259
|
+
al as List,
|
|
2260
|
+
nn as Loading,
|
|
2261
|
+
Dn as MAIL_ROW_LABELS,
|
|
2262
|
+
en as MODAL_CLOSE_MS,
|
|
2263
|
+
ul as MailRow,
|
|
2264
|
+
ze as Modal,
|
|
2265
|
+
sn as NamedIcon,
|
|
2266
|
+
Nl as Notification,
|
|
2267
|
+
Se as PULL_AT,
|
|
2268
|
+
rl as PageHeader,
|
|
2269
|
+
gl as PaneToolbar,
|
|
2270
|
+
Ln as SIGN_IN_LABELS,
|
|
2271
|
+
Ce as STATE_DELAY_MS,
|
|
2272
|
+
Sl as ScreenShell,
|
|
2273
|
+
ol as SearchField,
|
|
2274
|
+
sl as SectionHeader,
|
|
2275
|
+
Gn as Select,
|
|
2276
|
+
vl as SignInForm,
|
|
2277
|
+
_l as SignInLayout,
|
|
2278
|
+
dl as SplitPanes,
|
|
2279
|
+
Sn as Splitter,
|
|
2280
|
+
ae as State,
|
|
2281
|
+
il as TabStrip,
|
|
2282
|
+
Yn as TextArea,
|
|
2283
|
+
qn as TextField,
|
|
2284
|
+
Qn as Toast,
|
|
2285
|
+
el as ToastRegion,
|
|
2286
|
+
Xn as Toggle,
|
|
2287
|
+
Tn as fitPanes,
|
|
2288
|
+
de as iconForName,
|
|
2289
|
+
yn as initialsOf,
|
|
2290
|
+
Fn as isCapability,
|
|
2291
|
+
Cl as needsClientUpdate,
|
|
2292
|
+
wl as offerFor,
|
|
2293
|
+
Ml as readConflict,
|
|
2294
|
+
yl as readRefusal,
|
|
2295
|
+
Rn as refusalText,
|
|
2296
|
+
kl as rereadAll,
|
|
2297
|
+
kn as tintOf,
|
|
2298
|
+
Nn as usePull,
|
|
2299
|
+
wn as usePullState,
|
|
2300
|
+
xl as useReread,
|
|
2301
|
+
On as versionBelow,
|
|
2302
|
+
Je as writtenOut
|
|
2237
2303
|
};
|