@peripheries/core 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.css +1 -1
- package/index.js +454 -352
- package/package.json +1 -1
- package/types/core/display/DataTable/DataTable.d.ts +2 -1
- package/types/core/feedback/EmptyState/EmptyState.d.ts +9 -0
- package/types/core/page/ListRow/ListRow.d.ts +13 -0
- package/types/core/page/PageHead/PageHead.d.ts +10 -0
- package/types/index.core.d.ts +3 -0
package/index.js
CHANGED
|
@@ -129,8 +129,72 @@ function O({ gap: e, align: n = "stretch", justify: r = "start", className: i, s
|
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
//#endregion
|
|
132
|
+
//#region src/core/actions/_shared/press.ts
|
|
133
|
+
var k = (e) => e.startsWith("/") && !e.startsWith("//") && !e.includes("\\"), A = (e) => /^#[A-Za-z][\w:.-]*$/.test(e);
|
|
134
|
+
function j({ href: e, action: t, input: n, actions: r, navigate: i, onClick: a }) {
|
|
135
|
+
let [o, s] = m(!1), c = r && t ? r[t] : void 0;
|
|
136
|
+
return {
|
|
137
|
+
busy: o,
|
|
138
|
+
onClick: (t) => {
|
|
139
|
+
if (a) return a(t);
|
|
140
|
+
if (c) {
|
|
141
|
+
t.preventDefault(), s(!0), c(n).finally(() => s(!1));
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
e && i && k(e) && t.button === 0 && !t.metaKey && !t.ctrlKey && !t.shiftKey && !t.altKey && (t.preventDefault(), i(e));
|
|
145
|
+
},
|
|
146
|
+
external: !!e && !k(e) && !A(e)
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region src/core/page/ListRow/ListRow.tsx
|
|
151
|
+
function M({ title: e, meta: r, leading: i, value: a, trailing: o, href: s, navigate: c, onClick: l, as: u = "div", className: d, ...f }) {
|
|
152
|
+
let p = j({
|
|
153
|
+
href: s,
|
|
154
|
+
navigate: c,
|
|
155
|
+
onClick: l
|
|
156
|
+
}), m = u, h = s ? /* @__PURE__ */ t("a", {
|
|
157
|
+
className: "core-list-row__title core-list-row__link",
|
|
158
|
+
href: s,
|
|
159
|
+
onClick: p.onClick,
|
|
160
|
+
...p.external ? {
|
|
161
|
+
target: "_blank",
|
|
162
|
+
rel: "noopener noreferrer"
|
|
163
|
+
} : {},
|
|
164
|
+
children: e
|
|
165
|
+
}) : /* @__PURE__ */ t("span", {
|
|
166
|
+
className: "core-list-row__title",
|
|
167
|
+
children: e
|
|
168
|
+
});
|
|
169
|
+
return /* @__PURE__ */ n(m, {
|
|
170
|
+
...g(f),
|
|
171
|
+
className: _("core-list-row", d),
|
|
172
|
+
children: [
|
|
173
|
+
i != null && /* @__PURE__ */ t("div", {
|
|
174
|
+
className: "core-list-row__leading",
|
|
175
|
+
children: i
|
|
176
|
+
}),
|
|
177
|
+
/* @__PURE__ */ n("div", {
|
|
178
|
+
className: "core-list-row__main",
|
|
179
|
+
children: [h, r != null && /* @__PURE__ */ t("span", {
|
|
180
|
+
className: "core-list-row__meta",
|
|
181
|
+
children: r
|
|
182
|
+
})]
|
|
183
|
+
}),
|
|
184
|
+
a != null && /* @__PURE__ */ t("div", {
|
|
185
|
+
className: "core-list-row__value",
|
|
186
|
+
children: a
|
|
187
|
+
}),
|
|
188
|
+
o != null && /* @__PURE__ */ t("div", {
|
|
189
|
+
className: "core-list-row__trailing",
|
|
190
|
+
children: o
|
|
191
|
+
})
|
|
192
|
+
]
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
//#endregion
|
|
132
196
|
//#region src/core/page/PageFrame/PageFrame.tsx
|
|
133
|
-
function
|
|
197
|
+
function N({ header: e, children: r, measure: i = "page", className: a, ...o }) {
|
|
134
198
|
return /* @__PURE__ */ t("div", {
|
|
135
199
|
...g(o),
|
|
136
200
|
className: _("core-page-frame", a),
|
|
@@ -146,13 +210,13 @@ function k({ header: e, children: r, measure: i = "page", className: a, ...o })
|
|
|
146
210
|
}
|
|
147
211
|
//#endregion
|
|
148
212
|
//#region src/core/_shared/warn-once.ts
|
|
149
|
-
var
|
|
150
|
-
function
|
|
151
|
-
|
|
213
|
+
var P = /* @__PURE__ */ new Set();
|
|
214
|
+
function F(e, t) {
|
|
215
|
+
P.has(e) || (P.add(e), typeof console < "u" && console.warn(t));
|
|
152
216
|
}
|
|
153
217
|
//#endregion
|
|
154
218
|
//#region src/core/display/_shared/tone.ts
|
|
155
|
-
var
|
|
219
|
+
var I = [
|
|
156
220
|
"neutral",
|
|
157
221
|
"strong",
|
|
158
222
|
"accent",
|
|
@@ -160,28 +224,28 @@ var M = [
|
|
|
160
224
|
"success",
|
|
161
225
|
"warning",
|
|
162
226
|
"danger"
|
|
163
|
-
],
|
|
164
|
-
function
|
|
165
|
-
return typeof e == "string" &&
|
|
227
|
+
], L = () => typeof process > "u" || !1;
|
|
228
|
+
function R(e, t = "neutral") {
|
|
229
|
+
return typeof e == "string" && I.includes(e) ? e : (typeof e == "string" && e && L() && F(`unknown-tone:${e}`, `[core] "${e}" is not a tone (${I.join(", ")}); using "${t}".`), t);
|
|
166
230
|
}
|
|
167
231
|
//#endregion
|
|
168
232
|
//#region src/core/display/Eyebrow/Eyebrow.tsx
|
|
169
|
-
var
|
|
233
|
+
var z = [
|
|
170
234
|
"subtle",
|
|
171
235
|
"on-dark",
|
|
172
236
|
"inherit"
|
|
173
237
|
];
|
|
174
|
-
function
|
|
175
|
-
return typeof e == "string" && (
|
|
238
|
+
function B(e, t) {
|
|
239
|
+
return typeof e == "string" && (z.includes(e) || I.includes(e)) ? e : t;
|
|
176
240
|
}
|
|
177
|
-
function
|
|
241
|
+
function ee(e) {
|
|
178
242
|
return {
|
|
179
243
|
"data-tone": e,
|
|
180
|
-
toned: !
|
|
244
|
+
toned: !z.includes(e)
|
|
181
245
|
};
|
|
182
246
|
}
|
|
183
|
-
function
|
|
184
|
-
let { toned: s, ...c } =
|
|
247
|
+
function V({ children: e, as: n = "span", tone: r, tabular: i = !1, className: a, style: o }) {
|
|
248
|
+
let { toned: s, ...c } = ee(B(r, "subtle"));
|
|
185
249
|
return /* @__PURE__ */ t(n, {
|
|
186
250
|
className: _("core-eyebrow", s && "core-toned", a),
|
|
187
251
|
...c,
|
|
@@ -191,8 +255,36 @@ function R({ children: e, as: n = "span", tone: r, tabular: i = !1, className: a
|
|
|
191
255
|
});
|
|
192
256
|
}
|
|
193
257
|
//#endregion
|
|
258
|
+
//#region src/core/page/PageHead/PageHead.tsx
|
|
259
|
+
function te({ title: e, eyebrow: r, intro: i, actions: a, className: o, ...s }) {
|
|
260
|
+
return /* @__PURE__ */ n("header", {
|
|
261
|
+
...g(s),
|
|
262
|
+
className: _("core-page-head", o),
|
|
263
|
+
children: [
|
|
264
|
+
r && /* @__PURE__ */ t(V, {
|
|
265
|
+
as: "p",
|
|
266
|
+
children: r
|
|
267
|
+
}),
|
|
268
|
+
/* @__PURE__ */ n("div", {
|
|
269
|
+
className: "core-page-head__row",
|
|
270
|
+
children: [/* @__PURE__ */ t("h1", {
|
|
271
|
+
className: "core-page-head__title",
|
|
272
|
+
children: e
|
|
273
|
+
}), a != null && /* @__PURE__ */ t("div", {
|
|
274
|
+
className: "core-page-head__actions",
|
|
275
|
+
children: a
|
|
276
|
+
})]
|
|
277
|
+
}),
|
|
278
|
+
i != null && /* @__PURE__ */ t("p", {
|
|
279
|
+
className: "core-page-head__intro",
|
|
280
|
+
children: i
|
|
281
|
+
})
|
|
282
|
+
]
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
//#endregion
|
|
194
286
|
//#region src/core/page/RuleSection/RuleSection.tsx
|
|
195
|
-
function
|
|
287
|
+
function ne({ label: e, actions: r, children: i, rail: a = !1, anchor: o, className: s, ...c }) {
|
|
196
288
|
return /* @__PURE__ */ t("section", {
|
|
197
289
|
...g(c),
|
|
198
290
|
id: o,
|
|
@@ -203,7 +295,7 @@ function z({ label: e, actions: r, children: i, rail: a = !1, anchor: o, classNa
|
|
|
203
295
|
className: "core-rule-section__grid",
|
|
204
296
|
children: [/* @__PURE__ */ n("div", {
|
|
205
297
|
className: "core-rule-section__head",
|
|
206
|
-
children: [e && /* @__PURE__ */ t(
|
|
298
|
+
children: [e && /* @__PURE__ */ t(V, {
|
|
207
299
|
as: "p",
|
|
208
300
|
children: e
|
|
209
301
|
}), r != null && /* @__PURE__ */ t("div", {
|
|
@@ -218,27 +310,9 @@ function z({ label: e, actions: r, children: i, rail: a = !1, anchor: o, classNa
|
|
|
218
310
|
});
|
|
219
311
|
}
|
|
220
312
|
//#endregion
|
|
221
|
-
//#region src/core/actions/_shared/press.ts
|
|
222
|
-
var B = (e) => e.startsWith("/") && !e.startsWith("//") && !e.includes("\\"), ee = (e) => /^#[A-Za-z][\w:.-]*$/.test(e);
|
|
223
|
-
function V({ href: e, action: t, input: n, actions: r, navigate: i, onClick: a }) {
|
|
224
|
-
let [o, s] = m(!1), c = r && t ? r[t] : void 0;
|
|
225
|
-
return {
|
|
226
|
-
busy: o,
|
|
227
|
-
onClick: (t) => {
|
|
228
|
-
if (a) return a(t);
|
|
229
|
-
if (c) {
|
|
230
|
-
t.preventDefault(), s(!0), c(n).finally(() => s(!1));
|
|
231
|
-
return;
|
|
232
|
-
}
|
|
233
|
-
e && i && B(e) && t.button === 0 && !t.metaKey && !t.ctrlKey && !t.shiftKey && !t.altKey && (t.preventDefault(), i(e));
|
|
234
|
-
},
|
|
235
|
-
external: !!e && !B(e) && !ee(e)
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
//#endregion
|
|
239
313
|
//#region src/core/page/UnderlinedAction/UnderlinedAction.tsx
|
|
240
|
-
function
|
|
241
|
-
let m =
|
|
314
|
+
function re({ label: r, children: i, arrow: a = !0, className: o, href: s, action: c, input: l, actions: u, navigate: d, onClick: f, ...p }) {
|
|
315
|
+
let m = j({
|
|
242
316
|
href: s,
|
|
243
317
|
action: c,
|
|
244
318
|
input: l,
|
|
@@ -282,8 +356,8 @@ function te({ label: r, children: i, arrow: a = !0, className: o, href: s, actio
|
|
|
282
356
|
}
|
|
283
357
|
//#endregion
|
|
284
358
|
//#region src/core/text/Avatar/Avatar.tsx
|
|
285
|
-
var
|
|
286
|
-
function
|
|
359
|
+
var ie = (e = "") => e.trim().split(/\s+/).filter(Boolean).map((e) => e[0].toUpperCase()).filter((e, t, n) => t === 0 || t === n.length - 1).join("").slice(0, 2);
|
|
360
|
+
function ae({ name: e, initials: n, src: r, alt: i, size: a = "md", className: o, ...s }) {
|
|
287
361
|
let [c, l] = m(!1), u = i ?? e ?? "";
|
|
288
362
|
return /* @__PURE__ */ t("span", {
|
|
289
363
|
...g(s),
|
|
@@ -297,13 +371,13 @@ function re({ name: e, initials: n, src: r, alt: i, size: a = "md", className: o
|
|
|
297
371
|
onError: () => l(!0)
|
|
298
372
|
}) : /* @__PURE__ */ t("span", {
|
|
299
373
|
"aria-hidden": "true",
|
|
300
|
-
children: n ??
|
|
374
|
+
children: n ?? ie(e)
|
|
301
375
|
})
|
|
302
376
|
});
|
|
303
377
|
}
|
|
304
378
|
//#endregion
|
|
305
379
|
//#region src/core/text/Code/Code.tsx
|
|
306
|
-
function
|
|
380
|
+
function oe({ code: e, children: n, block: r = !1, className: i, ...a }) {
|
|
307
381
|
let o = n ?? e;
|
|
308
382
|
return r ? /* @__PURE__ */ t("pre", {
|
|
309
383
|
...g(a),
|
|
@@ -318,7 +392,7 @@ function ie({ code: e, children: n, block: r = !1, className: i, ...a }) {
|
|
|
318
392
|
}
|
|
319
393
|
//#endregion
|
|
320
394
|
//#region src/core/text/Heading/Heading.tsx
|
|
321
|
-
var
|
|
395
|
+
var se = {
|
|
322
396
|
1: "lg",
|
|
323
397
|
2: "md",
|
|
324
398
|
3: "sm",
|
|
@@ -326,31 +400,31 @@ var ae = {
|
|
|
326
400
|
5: "xs",
|
|
327
401
|
6: "xs"
|
|
328
402
|
};
|
|
329
|
-
function
|
|
403
|
+
function ce({ text: e, children: n, level: r = 2, size: i, anchor: a, className: o, ...s }) {
|
|
330
404
|
let c = Math.min(6, Math.max(1, Math.round(r))), l = `h${c}`;
|
|
331
405
|
return /* @__PURE__ */ t(l, {
|
|
332
406
|
...g(s),
|
|
333
407
|
id: a,
|
|
334
408
|
className: _("core-heading", o),
|
|
335
|
-
"data-size": i ??
|
|
409
|
+
"data-size": i ?? se[c],
|
|
336
410
|
children: n ?? e
|
|
337
411
|
});
|
|
338
412
|
}
|
|
339
413
|
//#endregion
|
|
340
414
|
//#region src/core/text/Text/Text.tsx
|
|
341
|
-
var
|
|
415
|
+
var le = {
|
|
342
416
|
xs: "eyebrow",
|
|
343
417
|
sm: "body-sm",
|
|
344
418
|
md: "body",
|
|
345
419
|
lg: "title-sm",
|
|
346
420
|
xl: "title-md"
|
|
347
421
|
};
|
|
348
|
-
function
|
|
422
|
+
function ue({ text: e, children: n, as: r = "span", size: i = "md", weight: a = "normal", tone: o = "default", align: s = "start", truncate: c = !1, lines: l, className: u, ...d }) {
|
|
349
423
|
let f = r, p = l && l > 0 ? Math.min(6, Math.round(l)) : void 0;
|
|
350
424
|
return /* @__PURE__ */ t(f, {
|
|
351
425
|
...g(d),
|
|
352
426
|
className: _("core-text", u),
|
|
353
|
-
"data-role":
|
|
427
|
+
"data-role": le[i] ?? "body",
|
|
354
428
|
"data-weight": a,
|
|
355
429
|
"data-tone": o,
|
|
356
430
|
"data-align": s,
|
|
@@ -412,7 +486,7 @@ function W(e, t) {
|
|
|
412
486
|
}
|
|
413
487
|
//#endregion
|
|
414
488
|
//#region src/core/forms/Checkbox/Checkbox.tsx
|
|
415
|
-
function
|
|
489
|
+
function de({ value: e, defaultValue: r, onChange: i, setValue: a, id: o, name: s, label: c, children: l, hint: u, error: d, required: f, disabled: p, readOnly: h, className: g, style: v, ref: y }) {
|
|
416
490
|
let b = U(o, u, d), [x, S] = m(r ?? !1), C = e ?? x, w = W(i, a);
|
|
417
491
|
return /* @__PURE__ */ t(H, {
|
|
418
492
|
className: _("core-checkbox", g),
|
|
@@ -448,7 +522,7 @@ function le({ value: e, defaultValue: r, onChange: i, setValue: a, id: o, name:
|
|
|
448
522
|
}
|
|
449
523
|
//#endregion
|
|
450
524
|
//#region src/core/forms/CheckboxGroup/CheckboxGroup.tsx
|
|
451
|
-
function
|
|
525
|
+
function fe({ options: e, value: r, defaultValue: i, onChange: a, setValue: o, id: s, name: c, label: l, hint: u, error: d, required: f, disabled: p, readOnly: h, orientation: g = "vertical", min: v, max: y, className: b, style: x, ref: S }) {
|
|
452
526
|
let C = [v === void 0 ? "" : `at least ${v}`, y === void 0 ? "" : `at most ${y}`].filter(Boolean).join(", "), w = [u, C ? `Choose ${C}.` : ""].filter(Boolean).join(" ") || void 0, T = U(s, w, d), [E, D] = m(i ?? []), O = r ?? E, k = W(a, o), A = y !== void 0 && O.length >= y;
|
|
453
527
|
return /* @__PURE__ */ t(H, {
|
|
454
528
|
as: "fieldset",
|
|
@@ -492,7 +566,7 @@ function ue({ options: e, value: r, defaultValue: i, onChange: a, setValue: o, i
|
|
|
492
566
|
}
|
|
493
567
|
//#endregion
|
|
494
568
|
//#region src/core/forms/DateRange/DateRange.tsx
|
|
495
|
-
function
|
|
569
|
+
function pe({ value: e, defaultValue: r, onChange: i, setValue: a, id: o, name: s, label: c, hint: l, error: u, required: d, disabled: f, readOnly: p, min: h, max: g, fromLabel: v = "From", toLabel: y = "To", className: b, style: x, ref: S }) {
|
|
496
570
|
let C = U(o, l, u), [w, T] = m(r ?? {
|
|
497
571
|
from: null,
|
|
498
572
|
to: null
|
|
@@ -559,10 +633,10 @@ function de({ value: e, defaultValue: r, onChange: i, setValue: a, id: o, name:
|
|
|
559
633
|
}
|
|
560
634
|
//#endregion
|
|
561
635
|
//#region src/core/forms/FileField/FileField.tsx
|
|
562
|
-
function
|
|
636
|
+
function me(e) {
|
|
563
637
|
return !Number.isFinite(e) || e < 0 ? "" : e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(+(e < 10240))} KB` : `${(e / 1048576).toFixed(1)} MB`;
|
|
564
638
|
}
|
|
565
|
-
function
|
|
639
|
+
function he({ value: r, defaultValue: i, onChange: a, setValue: o, id: s, name: c, label: l, hint: u, error: d, required: f, disabled: h, readOnly: g, upload: v, accept: y, hash: b = !1, className: x, style: S, ref: C }) {
|
|
566
640
|
let w = U(s, u, d), [T, E] = m(i ?? null), D = r === void 0 ? T : r, O = W(a, o), [k, A] = m({
|
|
567
641
|
busy: !1,
|
|
568
642
|
dragging: !1
|
|
@@ -629,7 +703,7 @@ function pe({ value: r, defaultValue: i, onChange: a, setValue: o, id: s, name:
|
|
|
629
703
|
}),
|
|
630
704
|
/* @__PURE__ */ t("span", {
|
|
631
705
|
className: "core-file-field__size",
|
|
632
|
-
children:
|
|
706
|
+
children: me(D.file.size)
|
|
633
707
|
}),
|
|
634
708
|
!g && !h && /* @__PURE__ */ t("button", {
|
|
635
709
|
type: "button",
|
|
@@ -671,7 +745,7 @@ function pe({ value: r, defaultValue: i, onChange: a, setValue: o, id: s, name:
|
|
|
671
745
|
}
|
|
672
746
|
//#endregion
|
|
673
747
|
//#region src/core/forms/RadioGroup/RadioGroup.tsx
|
|
674
|
-
function
|
|
748
|
+
function ge({ options: e, value: r, defaultValue: i, onChange: a, setValue: o, id: s, name: c, label: l, hint: u, error: d, required: f, disabled: p, readOnly: h, orientation: g = "vertical", className: v, style: y, ref: b }) {
|
|
675
749
|
let x = U(s, u, d), [S, C] = m(i ?? null), w = r === void 0 ? S : r, T = W(a, o), E = c ?? x.control;
|
|
676
750
|
return /* @__PURE__ */ t(H, {
|
|
677
751
|
as: "fieldset",
|
|
@@ -710,15 +784,15 @@ function me({ options: e, value: r, defaultValue: i, onChange: a, setValue: o, i
|
|
|
710
784
|
}
|
|
711
785
|
//#endregion
|
|
712
786
|
//#region src/core/forms/TextField/TextField.tsx
|
|
713
|
-
var
|
|
787
|
+
var _e = (e) => {
|
|
714
788
|
if (e.trim() === "") return null;
|
|
715
789
|
let t = Number(e);
|
|
716
790
|
return Number.isFinite(t) ? t : null;
|
|
717
791
|
};
|
|
718
|
-
function
|
|
792
|
+
function ve({ type: e = "text", value: r, defaultValue: i, onChange: a, setValue: o, id: s, name: l, label: u, hint: d, error: f, required: p, disabled: h, readOnly: g, placeholder: v, inputMode: y, autoComplete: b, min: x, max: S, step: C, prefix: w, suffix: T, onEnter: E, onKeyDown: D, onBlur: O, className: k, style: A, ref: j }) {
|
|
719
793
|
let M = U(s, d, f), [N, P] = m(i), F = r === void 0 ? N : r, I = W(a, o), L = (e) => e == null ? "" : String(e), [R, z] = m(L(F));
|
|
720
794
|
c(() => {
|
|
721
|
-
e === "number" &&
|
|
795
|
+
e === "number" && _e(R) !== (F ?? null) && z(L(F));
|
|
722
796
|
}, [F]);
|
|
723
797
|
let B = /* @__PURE__ */ t("input", {
|
|
724
798
|
ref: j,
|
|
@@ -728,7 +802,7 @@ function ge({ type: e = "text", value: r, defaultValue: i, onChange: a, setValue
|
|
|
728
802
|
className: "core-input core-text-field__input",
|
|
729
803
|
value: e === "number" ? R : L(F),
|
|
730
804
|
onChange: (t) => {
|
|
731
|
-
let n = t.target.value, i = e === "number" ?
|
|
805
|
+
let n = t.target.value, i = e === "number" ? _e(n) : n;
|
|
732
806
|
e === "number" && z(n), r === void 0 && P(i), I(i);
|
|
733
807
|
},
|
|
734
808
|
onKeyDown: (e) => {
|
|
@@ -777,7 +851,7 @@ function ge({ type: e = "text", value: r, defaultValue: i, onChange: a, setValue
|
|
|
777
851
|
}
|
|
778
852
|
//#endregion
|
|
779
853
|
//#region src/core/forms/SearchField/SearchField.tsx
|
|
780
|
-
function
|
|
854
|
+
function ye({ value: e, defaultValue: r, onChange: i, setValue: a, label: o = "Search", onSearch: s, size: c = "md", className: l, ...u }) {
|
|
781
855
|
let [d, f] = m(r ?? ""), p = e ?? d, h = (t) => {
|
|
782
856
|
e === void 0 && f(t), i?.(t), a?.(t);
|
|
783
857
|
};
|
|
@@ -786,7 +860,7 @@ function _e({ value: e, defaultValue: r, onChange: i, setValue: a, label: o = "S
|
|
|
786
860
|
"data-filled": p ? "" : void 0,
|
|
787
861
|
"data-size": c,
|
|
788
862
|
children: [
|
|
789
|
-
/* @__PURE__ */ t(
|
|
863
|
+
/* @__PURE__ */ t(ve, {
|
|
790
864
|
...u,
|
|
791
865
|
label: o,
|
|
792
866
|
value: p,
|
|
@@ -831,7 +905,7 @@ function _e({ value: e, defaultValue: r, onChange: i, setValue: a, label: o = "S
|
|
|
831
905
|
}
|
|
832
906
|
//#endregion
|
|
833
907
|
//#region src/core/forms/Select/Select.tsx
|
|
834
|
-
function
|
|
908
|
+
function be({ options: e, value: r, defaultValue: i, onChange: a, setValue: o, id: s, name: c, label: l, hint: u, error: d, required: f, disabled: p, readOnly: h, placeholder: g = "Choose…", className: v, style: y, ref: b }) {
|
|
835
909
|
let x = U(s, u, d), [S, C] = m(i ?? null), w = r === void 0 ? S : r, T = W(a, o);
|
|
836
910
|
return /* @__PURE__ */ t(H, {
|
|
837
911
|
className: _("core-select", v),
|
|
@@ -871,7 +945,7 @@ function ve({ options: e, value: r, defaultValue: i, onChange: a, setValue: o, i
|
|
|
871
945
|
}
|
|
872
946
|
//#endregion
|
|
873
947
|
//#region src/core/forms/Slider/Slider.tsx
|
|
874
|
-
function
|
|
948
|
+
function xe({ value: e, defaultValue: r, onChange: i, setValue: a, id: o, name: s, label: c, hint: l, error: u, required: d, disabled: f, readOnly: p, min: h = 0, max: g = 100, step: v = 1, format: y = String, className: b, style: x, ref: S }) {
|
|
875
949
|
let C = U(o, l, u), [w, T] = m(r ?? h), E = e ?? w, D = W(i, a);
|
|
876
950
|
return /* @__PURE__ */ t(H, {
|
|
877
951
|
className: _("core-slider", b),
|
|
@@ -914,7 +988,7 @@ function ye({ value: e, defaultValue: r, onChange: i, setValue: a, id: o, name:
|
|
|
914
988
|
}
|
|
915
989
|
//#endregion
|
|
916
990
|
//#region src/core/forms/Switch/Switch.tsx
|
|
917
|
-
function
|
|
991
|
+
function Se({ value: e, defaultValue: r, onChange: i, setValue: a, id: o, name: s, label: c, hint: l, error: u, disabled: d, readOnly: f, className: p, style: h, ref: g }) {
|
|
918
992
|
let v = U(o, l, u), [y, b] = m(r ?? !1), x = e ?? y, S = W(i, a);
|
|
919
993
|
return /* @__PURE__ */ n("div", {
|
|
920
994
|
className: _("core-switch", p),
|
|
@@ -958,7 +1032,7 @@ function be({ value: e, defaultValue: r, onChange: i, setValue: a, id: o, name:
|
|
|
958
1032
|
}
|
|
959
1033
|
//#endregion
|
|
960
1034
|
//#region src/core/forms/TextArea/TextArea.tsx
|
|
961
|
-
function
|
|
1035
|
+
function Ce({ value: e, defaultValue: r, onChange: i, setValue: a, id: o, name: s, label: c, hint: l, error: d, required: f, disabled: h, readOnly: g, placeholder: v, rows: y = 3, autoGrow: b = !0, maxLength: x, onKeyDown: S, onBlur: C, className: w, style: T, ref: E }) {
|
|
962
1036
|
let D = U(o, l, d), [O, k] = m(r ?? ""), A = e ?? O, j = W(i, a), M = p(null);
|
|
963
1037
|
return u(() => {
|
|
964
1038
|
let e = M.current;
|
|
@@ -1007,25 +1081,48 @@ function xe({ value: e, defaultValue: r, onChange: i, setValue: a, id: o, name:
|
|
|
1007
1081
|
}
|
|
1008
1082
|
//#endregion
|
|
1009
1083
|
//#region src/core/feedback/Badge/Badge.tsx
|
|
1010
|
-
function
|
|
1084
|
+
function we({ label: e, children: n, tone: r, variant: i = "soft", className: a, ...o }) {
|
|
1011
1085
|
return /* @__PURE__ */ t("span", {
|
|
1012
1086
|
...g(o),
|
|
1013
1087
|
className: _("core-badge", "core-toned", a),
|
|
1014
|
-
"data-tone":
|
|
1088
|
+
"data-tone": R(r),
|
|
1015
1089
|
"data-variant": i,
|
|
1016
1090
|
children: n ?? e
|
|
1017
1091
|
});
|
|
1018
1092
|
}
|
|
1019
1093
|
//#endregion
|
|
1094
|
+
//#region src/core/feedback/EmptyState/EmptyState.tsx
|
|
1095
|
+
function Te({ message: e, title: r, action: i, className: a, ...o }) {
|
|
1096
|
+
return /* @__PURE__ */ n("div", {
|
|
1097
|
+
...g(o),
|
|
1098
|
+
className: _("core-empty-state", a),
|
|
1099
|
+
role: "status",
|
|
1100
|
+
children: [
|
|
1101
|
+
r && /* @__PURE__ */ t("p", {
|
|
1102
|
+
className: "core-empty-state__title",
|
|
1103
|
+
children: r
|
|
1104
|
+
}),
|
|
1105
|
+
/* @__PURE__ */ t("p", {
|
|
1106
|
+
className: "core-empty-state__message",
|
|
1107
|
+
children: e
|
|
1108
|
+
}),
|
|
1109
|
+
i != null && /* @__PURE__ */ t("div", {
|
|
1110
|
+
className: "core-empty-state__action",
|
|
1111
|
+
children: i
|
|
1112
|
+
})
|
|
1113
|
+
]
|
|
1114
|
+
});
|
|
1115
|
+
}
|
|
1116
|
+
//#endregion
|
|
1020
1117
|
//#region src/core/feedback/Notice/Notice.tsx
|
|
1021
|
-
var
|
|
1118
|
+
var Ee = {
|
|
1022
1119
|
info: "M12 16v-5M12 8h.01M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z",
|
|
1023
1120
|
success: "M8 12.5l2.5 2.5L16 9.5M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z",
|
|
1024
1121
|
warning: "M12 9v4M12 17h.01M10.3 3.9L2.2 18a2 2 0 0 0 1.7 3h16.2a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z",
|
|
1025
1122
|
danger: "M12 8v5M12 16h.01M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18z"
|
|
1026
1123
|
};
|
|
1027
|
-
function
|
|
1028
|
-
let u =
|
|
1124
|
+
function De({ title: e, message: r, children: i, tone: a, action: o, onDismiss: s, className: c, ...l }) {
|
|
1125
|
+
let u = R(a, "info"), d = u === "warning" || u === "danger";
|
|
1029
1126
|
return /* @__PURE__ */ n("div", {
|
|
1030
1127
|
...g(l),
|
|
1031
1128
|
role: d ? "alert" : "status",
|
|
@@ -1042,7 +1139,7 @@ function we({ title: e, message: r, children: i, tone: a, action: o, onDismiss:
|
|
|
1042
1139
|
strokeLinejoin: "round",
|
|
1043
1140
|
"aria-hidden": "true",
|
|
1044
1141
|
focusable: "false",
|
|
1045
|
-
children: /* @__PURE__ */ t("path", { d:
|
|
1142
|
+
children: /* @__PURE__ */ t("path", { d: Ee[u] ?? Ee.info })
|
|
1046
1143
|
}),
|
|
1047
1144
|
/* @__PURE__ */ n("div", {
|
|
1048
1145
|
className: "core-notice__body",
|
|
@@ -1079,12 +1176,12 @@ function we({ title: e, message: r, children: i, tone: a, action: o, onDismiss:
|
|
|
1079
1176
|
}
|
|
1080
1177
|
//#endregion
|
|
1081
1178
|
//#region src/core/feedback/Progress/Progress.tsx
|
|
1082
|
-
function
|
|
1179
|
+
function Oe({ value: e, max: r = 100, label: i, showValue: a = !1, tone: o, size: s = "md", className: c, style: l, ...u }) {
|
|
1083
1180
|
let d = typeof e == "number" && Number.isFinite(e) && r > 0, f = d ? Math.max(0, Math.min(100, e / r * 100)) : 0;
|
|
1084
1181
|
return /* @__PURE__ */ n("div", {
|
|
1085
1182
|
...g(u),
|
|
1086
1183
|
className: _("core-progress", "core-toned", c),
|
|
1087
|
-
"data-tone":
|
|
1184
|
+
"data-tone": R(o, "accent"),
|
|
1088
1185
|
"data-size": s,
|
|
1089
1186
|
style: l,
|
|
1090
1187
|
children: [(i || a && d) && /* @__PURE__ */ n("div", {
|
|
@@ -1111,7 +1208,7 @@ function Te({ value: e, max: r = 100, label: i, showValue: a = !1, tone: o, size
|
|
|
1111
1208
|
}
|
|
1112
1209
|
//#endregion
|
|
1113
1210
|
//#region src/core/feedback/Skeleton/Skeleton.tsx
|
|
1114
|
-
function
|
|
1211
|
+
function ke({ shape: e = "text", lines: n = 3, width: r, height: i, className: a, style: o, ...s }) {
|
|
1115
1212
|
let c = y({
|
|
1116
1213
|
"--core-skeleton-w": v(r),
|
|
1117
1214
|
"--core-skeleton-h": v(i)
|
|
@@ -1138,7 +1235,7 @@ function Ee({ shape: e = "text", lines: n = 3, width: r, height: i, className: a
|
|
|
1138
1235
|
}
|
|
1139
1236
|
//#endregion
|
|
1140
1237
|
//#region src/core/feedback/Spinner/Spinner.tsx
|
|
1141
|
-
function
|
|
1238
|
+
function Ae({ label: e = "Loading", size: n = "md", className: r, ...i }) {
|
|
1142
1239
|
return /* @__PURE__ */ t("span", {
|
|
1143
1240
|
...g(i),
|
|
1144
1241
|
role: "status",
|
|
@@ -1149,7 +1246,7 @@ function De({ label: e = "Loading", size: n = "md", className: r, ...i }) {
|
|
|
1149
1246
|
}
|
|
1150
1247
|
//#endregion
|
|
1151
1248
|
//#region src/core/feedback/Tooltip/Tooltip.tsx
|
|
1152
|
-
function
|
|
1249
|
+
function je({ content: e, text: r, children: i, side: a = "top", className: o, ...s }) {
|
|
1153
1250
|
let [u, d] = m(!1), f = l();
|
|
1154
1251
|
return c(() => {
|
|
1155
1252
|
if (!u) return;
|
|
@@ -1177,8 +1274,8 @@ function Oe({ content: e, text: r, children: i, side: a = "top", className: o, .
|
|
|
1177
1274
|
}
|
|
1178
1275
|
//#endregion
|
|
1179
1276
|
//#region src/core/actions/Button/Button.tsx
|
|
1180
|
-
function
|
|
1181
|
-
let w =
|
|
1277
|
+
function Me({ children: r, label: i, variant: a = "primary", size: o = "md", tone: s = "neutral", iconLeft: c, iconRight: l, loading: u = !1, disabled: d = !1, type: f = "button", fullWidth: p = !1, className: m, href: h, action: v, input: y, actions: b, navigate: x, onClick: S, ...C }) {
|
|
1278
|
+
let w = j({
|
|
1182
1279
|
href: h,
|
|
1183
1280
|
action: v,
|
|
1184
1281
|
input: y,
|
|
@@ -1225,8 +1322,8 @@ function ke({ children: r, label: i, variant: a = "primary", size: o = "md", ton
|
|
|
1225
1322
|
}
|
|
1226
1323
|
//#endregion
|
|
1227
1324
|
//#region src/core/actions/Chip/Chip.tsx
|
|
1228
|
-
function
|
|
1229
|
-
let b = o !== void 0 || s !== void 0, x =
|
|
1325
|
+
function Ne({ children: e, label: r, variant: i = "prompt", size: a = "md", selected: o, onToggle: s, iconLeft: c, disabled: l = !1, className: u, href: d, action: f, input: p, actions: m, navigate: h, onClick: v, ...y }) {
|
|
1326
|
+
let b = o !== void 0 || s !== void 0, x = j({
|
|
1230
1327
|
href: d,
|
|
1231
1328
|
action: f,
|
|
1232
1329
|
input: p,
|
|
@@ -1251,8 +1348,8 @@ function Ae({ children: e, label: r, variant: i = "prompt", size: a = "md", sele
|
|
|
1251
1348
|
}
|
|
1252
1349
|
//#endregion
|
|
1253
1350
|
//#region src/core/actions/IconButton/IconButton.tsx
|
|
1254
|
-
function
|
|
1255
|
-
let v =
|
|
1351
|
+
function Pe({ icon: e, children: n, label: r, size: i = "md", variant: a = "ghost", pressed: o, disabled: s = !1, className: c, href: l, action: u, input: d, actions: f, navigate: p, onClick: m, ...h }) {
|
|
1352
|
+
let v = j({
|
|
1256
1353
|
href: l,
|
|
1257
1354
|
action: u,
|
|
1258
1355
|
input: d,
|
|
@@ -1291,13 +1388,13 @@ function je({ icon: e, children: n, label: r, size: i = "md", variant: a = "ghos
|
|
|
1291
1388
|
}
|
|
1292
1389
|
//#endregion
|
|
1293
1390
|
//#region src/core/actions/Link/Link.tsx
|
|
1294
|
-
function
|
|
1295
|
-
let d =
|
|
1391
|
+
function Fe({ href: r, children: i, label: a, variant: o = "default", className: s, navigate: c, onClick: l, ...u }) {
|
|
1392
|
+
let d = j({
|
|
1296
1393
|
href: r,
|
|
1297
1394
|
navigate: c,
|
|
1298
1395
|
onClick: l
|
|
1299
1396
|
});
|
|
1300
|
-
return
|
|
1397
|
+
return k(r) || A(r) || /^(https?:|mailto:)/i.test(r) ? /* @__PURE__ */ n("a", {
|
|
1301
1398
|
...g(u),
|
|
1302
1399
|
className: _("core-link", s),
|
|
1303
1400
|
"data-variant": o,
|
|
@@ -1329,7 +1426,7 @@ function Me({ href: r, children: i, label: a, variant: o = "default", className:
|
|
|
1329
1426
|
}
|
|
1330
1427
|
//#endregion
|
|
1331
1428
|
//#region src/core/actions/SegmentedControl/SegmentedControl.tsx
|
|
1332
|
-
function
|
|
1429
|
+
function Ie({ options: e, value: n, defaultValue: r, onChange: i, label: a, fullWidth: o = !1, size: s = "md", className: c, setValue: u, ...d }) {
|
|
1333
1430
|
let [f, h] = m(r ?? e[0]?.value), v = n ?? f, y = l(), b = p([]), x = (e) => {
|
|
1334
1431
|
n === void 0 && h(e), i?.(e), u?.(e);
|
|
1335
1432
|
}, S = e.map((e, t) => e.disabled ? -1 : t).filter((e) => e >= 0), C = (t, n) => {
|
|
@@ -1368,7 +1465,7 @@ function Ne({ options: e, value: n, defaultValue: r, onChange: i, label: a, full
|
|
|
1368
1465
|
}
|
|
1369
1466
|
//#endregion
|
|
1370
1467
|
//#region src/core/Accordion/Accordion.tsx
|
|
1371
|
-
function
|
|
1468
|
+
function Le({ items: e = [], children: r, numbered: i = !1, single: a = !1, rules: o = "subtle", className: s, ...c }) {
|
|
1372
1469
|
let u = l(), d = i ? "ol" : "ul";
|
|
1373
1470
|
return /* @__PURE__ */ n("div", {
|
|
1374
1471
|
...g(c),
|
|
@@ -1400,7 +1497,7 @@ function Pe({ items: e = [], children: r, numbered: i = !1, single: a = !1, rule
|
|
|
1400
1497
|
}
|
|
1401
1498
|
//#endregion
|
|
1402
1499
|
//#region src/core/Card/Card.tsx
|
|
1403
|
-
function
|
|
1500
|
+
function Re({ media: e, header: r, body: i, footer: a, children: o, tone: s = "plain", className: c, ...l }) {
|
|
1404
1501
|
return /* @__PURE__ */ n("article", {
|
|
1405
1502
|
...g(l),
|
|
1406
1503
|
className: _("core-card", c),
|
|
@@ -1427,14 +1524,14 @@ function Fe({ media: e, header: r, body: i, footer: a, children: o, tone: s = "p
|
|
|
1427
1524
|
}
|
|
1428
1525
|
//#endregion
|
|
1429
1526
|
//#region src/core/Columns/Columns.tsx
|
|
1430
|
-
var
|
|
1527
|
+
var ze = {
|
|
1431
1528
|
"1:1": "1fr 1fr",
|
|
1432
1529
|
"2:1": "2fr 1fr",
|
|
1433
1530
|
"1:2": "1fr 2fr",
|
|
1434
1531
|
"3:1": "3fr 1fr",
|
|
1435
1532
|
"1:3": "1fr 3fr"
|
|
1436
1533
|
};
|
|
1437
|
-
function
|
|
1534
|
+
function Be({ start: e, end: r, children: i, ratio: a = "1:1", gap: o, stackBelow: s = "compact", className: c, ...l }) {
|
|
1438
1535
|
return /* @__PURE__ */ n("div", {
|
|
1439
1536
|
...g(l),
|
|
1440
1537
|
className: _("core-columns", c),
|
|
@@ -1442,7 +1539,7 @@ function Le({ start: e, end: r, children: i, ratio: a = "1:1", gap: o, stackBelo
|
|
|
1442
1539
|
children: [/* @__PURE__ */ n("div", {
|
|
1443
1540
|
className: "core-columns__grid",
|
|
1444
1541
|
style: y({
|
|
1445
|
-
"--core-columns-template":
|
|
1542
|
+
"--core-columns-template": ze[a] ?? ze["1:1"],
|
|
1446
1543
|
"--core-columns-gap": v(o)
|
|
1447
1544
|
}),
|
|
1448
1545
|
children: [/* @__PURE__ */ t("div", {
|
|
@@ -1455,10 +1552,10 @@ function Le({ start: e, end: r, children: i, ratio: a = "1:1", gap: o, stackBelo
|
|
|
1455
1552
|
}), i]
|
|
1456
1553
|
});
|
|
1457
1554
|
}
|
|
1458
|
-
var
|
|
1555
|
+
var Ve = Be;
|
|
1459
1556
|
//#endregion
|
|
1460
1557
|
//#region src/core/Disclosure/Disclosure.tsx
|
|
1461
|
-
function
|
|
1558
|
+
function He({ summary: e, content: r, children: i, open: a = !1, onToggle: o, className: s, ...c }) {
|
|
1462
1559
|
return /* @__PURE__ */ n("details", {
|
|
1463
1560
|
...g(c),
|
|
1464
1561
|
className: _("core-disclosure", s),
|
|
@@ -1475,7 +1572,7 @@ function ze({ summary: e, content: r, children: i, open: a = !1, onToggle: o, cl
|
|
|
1475
1572
|
}
|
|
1476
1573
|
//#endregion
|
|
1477
1574
|
//#region src/core/Grid/Grid.tsx
|
|
1478
|
-
function
|
|
1575
|
+
function Ue({ items: e, children: n, min: i, columns: a, gap: o, className: s, style: c, ...l }) {
|
|
1479
1576
|
let u = [...r.toArray(e), ...r.toArray(n)];
|
|
1480
1577
|
return /* @__PURE__ */ t("div", {
|
|
1481
1578
|
...g(l),
|
|
@@ -1491,7 +1588,7 @@ function Be({ items: e, children: n, min: i, columns: a, gap: o, className: s, s
|
|
|
1491
1588
|
}
|
|
1492
1589
|
//#endregion
|
|
1493
1590
|
//#region src/core/Repeat/Repeat.tsx
|
|
1494
|
-
function
|
|
1591
|
+
function We({ item: e, each: n, as: i, layout: a = "stack", gap: o, min: s, empty: c, className: l, style: u, ...d }) {
|
|
1495
1592
|
let f = r.toArray(e);
|
|
1496
1593
|
return f.length ? /* @__PURE__ */ t("div", {
|
|
1497
1594
|
...g(d),
|
|
@@ -1509,11 +1606,11 @@ function Ve({ item: e, each: n, as: i, layout: a = "stack", gap: o, min: s, empt
|
|
|
1509
1606
|
}
|
|
1510
1607
|
//#endregion
|
|
1511
1608
|
//#region src/core/document/profiles/profile.ts
|
|
1512
|
-
var
|
|
1609
|
+
var Ge = [
|
|
1513
1610
|
"page-x-of-y",
|
|
1514
1611
|
"page-number",
|
|
1515
1612
|
"page-count"
|
|
1516
|
-
],
|
|
1613
|
+
], Ke = {
|
|
1517
1614
|
display: {
|
|
1518
1615
|
size: 46,
|
|
1519
1616
|
lineHeight: .98,
|
|
@@ -1569,7 +1666,7 @@ var He = [
|
|
|
1569
1666
|
tracking: "0.14em",
|
|
1570
1667
|
uppercase: !0
|
|
1571
1668
|
}
|
|
1572
|
-
},
|
|
1669
|
+
}, qe = {
|
|
1573
1670
|
full: "var(--color-text)",
|
|
1574
1671
|
muted: "var(--color-text-muted)",
|
|
1575
1672
|
subtle: "var(--color-text-subtle)",
|
|
@@ -1577,7 +1674,7 @@ var He = [
|
|
|
1577
1674
|
accent: "var(--color-accent)",
|
|
1578
1675
|
accentText: "var(--color-link)",
|
|
1579
1676
|
sunken: "var(--color-surface-sunken)"
|
|
1580
|
-
},
|
|
1677
|
+
}, Je = [
|
|
1581
1678
|
"cover",
|
|
1582
1679
|
"what-this-is",
|
|
1583
1680
|
"told-us",
|
|
@@ -1586,7 +1683,7 @@ var He = [
|
|
|
1586
1683
|
"talk-it-through",
|
|
1587
1684
|
"notes",
|
|
1588
1685
|
"footer"
|
|
1589
|
-
],
|
|
1686
|
+
], Ye = [
|
|
1590
1687
|
{
|
|
1591
1688
|
id: "workbook",
|
|
1592
1689
|
label: "Workbook",
|
|
@@ -1603,14 +1700,14 @@ var He = [
|
|
|
1603
1700
|
measure: "6.85in",
|
|
1604
1701
|
bodyMeasureCh: 64,
|
|
1605
1702
|
rail: { placement: "strip" },
|
|
1606
|
-
ink:
|
|
1703
|
+
ink: qe,
|
|
1607
1704
|
rules: {
|
|
1608
1705
|
head: "2px",
|
|
1609
1706
|
structural: "1px",
|
|
1610
1707
|
row: "1px",
|
|
1611
1708
|
hairline: "1px"
|
|
1612
1709
|
},
|
|
1613
|
-
type:
|
|
1710
|
+
type: Ke,
|
|
1614
1711
|
floorPx: 11,
|
|
1615
1712
|
depth: {
|
|
1616
1713
|
max: 1,
|
|
@@ -1624,7 +1721,7 @@ var He = [
|
|
|
1624
1721
|
right: "page-x-of-y"
|
|
1625
1722
|
} },
|
|
1626
1723
|
sections: {
|
|
1627
|
-
known:
|
|
1724
|
+
known: Je,
|
|
1628
1725
|
required: ["next-steps", "talk-it-through"]
|
|
1629
1726
|
}
|
|
1630
1727
|
},
|
|
@@ -1635,7 +1732,7 @@ var He = [
|
|
|
1635
1732
|
regions: { "page-footer": { right: "page-x-of-y" } },
|
|
1636
1733
|
requiredBindings: [],
|
|
1637
1734
|
sections: {
|
|
1638
|
-
known:
|
|
1735
|
+
known: Je,
|
|
1639
1736
|
required: ["next-steps", "talk-it-through"]
|
|
1640
1737
|
}
|
|
1641
1738
|
},
|
|
@@ -1675,9 +1772,9 @@ var He = [
|
|
|
1675
1772
|
hairline: "0.25pt"
|
|
1676
1773
|
},
|
|
1677
1774
|
type: {
|
|
1678
|
-
...
|
|
1775
|
+
...Ke,
|
|
1679
1776
|
eyebrow: {
|
|
1680
|
-
...
|
|
1777
|
+
...Ke.eyebrow,
|
|
1681
1778
|
tracking: "0.08em"
|
|
1682
1779
|
}
|
|
1683
1780
|
},
|
|
@@ -1699,16 +1796,16 @@ var He = [
|
|
|
1699
1796
|
sections: { required: [] }
|
|
1700
1797
|
}
|
|
1701
1798
|
], G = /* @__PURE__ */ new Map();
|
|
1702
|
-
function
|
|
1799
|
+
function Xe(e) {
|
|
1703
1800
|
G.set(e.id, e);
|
|
1704
1801
|
}
|
|
1705
|
-
for (let e of
|
|
1706
|
-
function
|
|
1802
|
+
for (let e of Ye) Xe(e);
|
|
1803
|
+
function Ze() {
|
|
1707
1804
|
return [...G.keys()].sort();
|
|
1708
1805
|
}
|
|
1709
|
-
function
|
|
1806
|
+
function Qe(e) {
|
|
1710
1807
|
let t = G.get(e);
|
|
1711
|
-
if (!t) throw Error(`[document-profile] unknown profile "${e}". Registered: ${
|
|
1808
|
+
if (!t) throw Error(`[document-profile] unknown profile "${e}". Registered: ${Ze().join(", ")}`);
|
|
1712
1809
|
if (!t.extends) return t;
|
|
1713
1810
|
let n = G.get(t.extends);
|
|
1714
1811
|
if (!n) throw Error(`[document-profile] "${e}" extends unknown profile "${t.extends}"`);
|
|
@@ -1720,29 +1817,29 @@ function Ye(e) {
|
|
|
1720
1817
|
extends: t.extends
|
|
1721
1818
|
};
|
|
1722
1819
|
}
|
|
1723
|
-
function
|
|
1820
|
+
function $e() {
|
|
1724
1821
|
let e = {};
|
|
1725
|
-
for (let t of
|
|
1726
|
-
e[t] =
|
|
1822
|
+
for (let t of Ze()) try {
|
|
1823
|
+
e[t] = Qe(t);
|
|
1727
1824
|
} catch (e) {
|
|
1728
1825
|
console.warn(`[document-profile] skipping "${t}": ${e instanceof Error ? e.message : String(e)}`);
|
|
1729
1826
|
}
|
|
1730
1827
|
return e;
|
|
1731
1828
|
}
|
|
1732
|
-
var
|
|
1733
|
-
function
|
|
1829
|
+
var et = Object.freeze($e()), tt = "workbook";
|
|
1830
|
+
function nt(e, t) {
|
|
1734
1831
|
try {
|
|
1735
|
-
return
|
|
1832
|
+
return Qe(e);
|
|
1736
1833
|
} catch {
|
|
1737
|
-
return
|
|
1834
|
+
return F(`unknown-profile:${e}`, `[document-profile] unknown profile "${e}" (first seen in ${t}): rendering with fallback values.`), null;
|
|
1738
1835
|
}
|
|
1739
1836
|
}
|
|
1740
1837
|
function K(e, t) {
|
|
1741
|
-
return e === void 0 ? (
|
|
1838
|
+
return e === void 0 ? (F("no-profile", `[document-profile] no profileId supplied (first seen in ${t}): falling back to "${tt}". If this document is an instrument, its numbering and depth are being dropped.`), nt(tt, t)) : nt(e, t);
|
|
1742
1839
|
}
|
|
1743
1840
|
//#endregion
|
|
1744
1841
|
//#region src/core/document/profiles/tokens.ts
|
|
1745
|
-
var
|
|
1842
|
+
var rt = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), it = [
|
|
1746
1843
|
"full",
|
|
1747
1844
|
"muted",
|
|
1748
1845
|
"subtle",
|
|
@@ -1750,12 +1847,12 @@ var et = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), tt = [
|
|
|
1750
1847
|
"accent",
|
|
1751
1848
|
"accentText",
|
|
1752
1849
|
"sunken"
|
|
1753
|
-
],
|
|
1850
|
+
], at = [
|
|
1754
1851
|
"structural",
|
|
1755
1852
|
"hairline",
|
|
1756
1853
|
"head",
|
|
1757
1854
|
"row"
|
|
1758
|
-
],
|
|
1855
|
+
], ot = [
|
|
1759
1856
|
"display",
|
|
1760
1857
|
"heading",
|
|
1761
1858
|
"subhead",
|
|
@@ -1765,8 +1862,8 @@ var et = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), tt = [
|
|
|
1765
1862
|
"label",
|
|
1766
1863
|
"note",
|
|
1767
1864
|
"eyebrow"
|
|
1768
|
-
],
|
|
1769
|
-
function
|
|
1865
|
+
], st = 3, q = "initial";
|
|
1866
|
+
function ct(e) {
|
|
1770
1867
|
let t = {
|
|
1771
1868
|
"--doc-sheet-width": e.sheet.width,
|
|
1772
1869
|
"--doc-sheet-height": e.sheet.height,
|
|
@@ -1781,22 +1878,22 @@ function at(e) {
|
|
|
1781
1878
|
"--doc-rail-gutter": e.rail.gutter ?? q,
|
|
1782
1879
|
"--doc-floor": `${e.floorPx}px`
|
|
1783
1880
|
};
|
|
1784
|
-
for (let n of
|
|
1785
|
-
for (let n of
|
|
1786
|
-
for (let n of
|
|
1787
|
-
let r = e.type[n], i = `--doc-type-${
|
|
1881
|
+
for (let n of it) t[`--doc-ink-${rt(n)}`] = e.ink[n];
|
|
1882
|
+
for (let n of at) t[`--doc-rule-${n}`] = e.rules[n] ?? q;
|
|
1883
|
+
for (let n of ot) {
|
|
1884
|
+
let r = e.type[n], i = `--doc-type-${rt(n)}`;
|
|
1788
1885
|
t[`${i}-size`] = `${r.size}px`, t[`${i}-leading`] = String(r.lineHeight), t[`${i}-weight`] = String(r.weight), t[`${i}-tracking`] = r.tracking, t[`${i}-case`] = r.uppercase ? "uppercase" : "none";
|
|
1789
1886
|
}
|
|
1790
|
-
for (let n = 1; n <=
|
|
1887
|
+
for (let n = 1; n <= st; n++) t[`--doc-indent-${n}`] = e.depth.indent[n - 1] ?? q;
|
|
1791
1888
|
return t;
|
|
1792
1889
|
}
|
|
1793
|
-
var
|
|
1794
|
-
function
|
|
1795
|
-
return e.map((e) =>
|
|
1890
|
+
var lt = (e, t) => `${e} {\n${Object.entries(t).map(([e, t]) => ` ${e}: ${t};`).join("\n")}\n}`;
|
|
1891
|
+
function ut(e, t) {
|
|
1892
|
+
return e.map((e) => lt(e.id === t ? `:root,\n[data-profile='${e.id}']` : `[data-profile='${e.id}']`, ct(e))).join("\n\n");
|
|
1796
1893
|
}
|
|
1797
1894
|
//#endregion
|
|
1798
1895
|
//#region src/core/document/_shared/blocks.ts
|
|
1799
|
-
var
|
|
1896
|
+
var dt = [
|
|
1800
1897
|
"prose",
|
|
1801
1898
|
"clause",
|
|
1802
1899
|
"definitions",
|
|
@@ -1804,10 +1901,10 @@ var ct = [
|
|
|
1804
1901
|
"notice",
|
|
1805
1902
|
"figure",
|
|
1806
1903
|
"execution"
|
|
1807
|
-
],
|
|
1904
|
+
], ft = /\{\{ref:([^}|]+?)(?:\|(title|full|number))?\}\}/g, J = "[a-z0-9][a-z0-9_-]*", pt = RegExp(`^(?:(${J}):)?(${J}(?:\\.${J})*)(?:#(${J}))?$`);
|
|
1808
1905
|
RegExp(`^${J}$`);
|
|
1809
|
-
function
|
|
1810
|
-
let n = e.trim(), r =
|
|
1906
|
+
function mt(e, t) {
|
|
1907
|
+
let n = e.trim(), r = pt.exec(n);
|
|
1811
1908
|
return r ? {
|
|
1812
1909
|
key: n,
|
|
1813
1910
|
...r[1] ? { doc: r[1] } : {},
|
|
@@ -1816,14 +1913,14 @@ function dt(e, t) {
|
|
|
1816
1913
|
...t ? { form: t } : {}
|
|
1817
1914
|
} : null;
|
|
1818
1915
|
}
|
|
1819
|
-
function
|
|
1916
|
+
function ht(e) {
|
|
1820
1917
|
let t = e.lastIndexOf(".");
|
|
1821
1918
|
return t < 0 ? e : e.slice(t + 1);
|
|
1822
1919
|
}
|
|
1823
|
-
function
|
|
1920
|
+
function gt(e) {
|
|
1824
1921
|
let t = [], n = 0;
|
|
1825
|
-
for (let r of e.matchAll(new RegExp(
|
|
1826
|
-
let i =
|
|
1922
|
+
for (let r of e.matchAll(new RegExp(ft.source, "g"))) {
|
|
1923
|
+
let i = mt(r[1], r[2]);
|
|
1827
1924
|
i && (r.index > n && t.push({
|
|
1828
1925
|
kind: "text",
|
|
1829
1926
|
text: e.slice(n, r.index)
|
|
@@ -1837,29 +1934,29 @@ function pt(e) {
|
|
|
1837
1934
|
text: e.slice(n)
|
|
1838
1935
|
}), t;
|
|
1839
1936
|
}
|
|
1840
|
-
function
|
|
1937
|
+
function _t(e) {
|
|
1841
1938
|
return e.includes("{{ref:");
|
|
1842
1939
|
}
|
|
1843
1940
|
//#endregion
|
|
1844
1941
|
//#region src/core/document/_shared/profile.ts
|
|
1845
|
-
var Y = (e) => e ? { "data-profile": e } : {},
|
|
1942
|
+
var Y = (e) => e ? { "data-profile": e } : {}, vt = (e) => e?.fills === !1 ? { "data-fills": "none" } : {}, yt = {
|
|
1846
1943
|
note: "ⓘ",
|
|
1847
1944
|
tip: "💡",
|
|
1848
1945
|
warning: "⚠️",
|
|
1849
1946
|
important: "❗"
|
|
1850
1947
|
};
|
|
1851
|
-
function
|
|
1948
|
+
function bt({ children: e, tone: r = "note", title: i, profileId: a, profile: o, className: s, style: c }) {
|
|
1852
1949
|
let l = o ?? K(a, "Aside"), u = l?.fills === !1;
|
|
1853
1950
|
return /* @__PURE__ */ n("aside", {
|
|
1854
1951
|
className: _("core-aside", s),
|
|
1855
1952
|
"data-tone": r,
|
|
1856
1953
|
...Y(o?.id ?? a),
|
|
1857
|
-
...
|
|
1954
|
+
...vt(l),
|
|
1858
1955
|
style: c,
|
|
1859
1956
|
children: [u ? null : /* @__PURE__ */ t("span", {
|
|
1860
1957
|
className: "core-aside__icon",
|
|
1861
1958
|
"aria-hidden": !0,
|
|
1862
|
-
children:
|
|
1959
|
+
children: yt[r]
|
|
1863
1960
|
}), /* @__PURE__ */ n("div", {
|
|
1864
1961
|
className: "core-aside__body",
|
|
1865
1962
|
children: [i && /* @__PURE__ */ t("div", {
|
|
@@ -1874,7 +1971,7 @@ function _t({ children: e, tone: r = "note", title: i, profileId: a, profile: o,
|
|
|
1874
1971
|
}
|
|
1875
1972
|
//#endregion
|
|
1876
1973
|
//#region src/core/document/Prose/Prose.tsx
|
|
1877
|
-
function
|
|
1974
|
+
function xt({ children: e, profileId: n, profile: r, full: i = !1, className: a, style: o }) {
|
|
1878
1975
|
return r || K(n, "Prose"), /* @__PURE__ */ t("div", {
|
|
1879
1976
|
className: _("core-prose", a),
|
|
1880
1977
|
"data-full": i ? "" : void 0,
|
|
@@ -1885,7 +1982,7 @@ function vt({ children: e, profileId: n, profile: r, full: i = !1, className: a,
|
|
|
1885
1982
|
}
|
|
1886
1983
|
//#endregion
|
|
1887
1984
|
//#region src/core/document/Quote/Quote.tsx
|
|
1888
|
-
function
|
|
1985
|
+
function St({ children: e, citation: r, className: i, style: a }) {
|
|
1889
1986
|
return /* @__PURE__ */ n("figure", {
|
|
1890
1987
|
className: _("core-quote", i),
|
|
1891
1988
|
style: a,
|
|
@@ -1900,7 +1997,7 @@ function yt({ children: e, citation: r, className: i, style: a }) {
|
|
|
1900
1997
|
}
|
|
1901
1998
|
//#endregion
|
|
1902
1999
|
//#region src/core/document/Definition/Definition.tsx
|
|
1903
|
-
function
|
|
2000
|
+
function Ct({ term: e, description: r, pairs: i, profileId: a, profile: o, className: s, style: c }) {
|
|
1904
2001
|
o || K(a, "Definition");
|
|
1905
2002
|
let l = i ?? (e === void 0 ? [] : [{
|
|
1906
2003
|
term: e,
|
|
@@ -1924,29 +2021,29 @@ function bt({ term: e, description: r, pairs: i, profileId: a, profile: o, class
|
|
|
1924
2021
|
}
|
|
1925
2022
|
//#endregion
|
|
1926
2023
|
//#region src/core/document/Math/Math.tsx
|
|
1927
|
-
var
|
|
1928
|
-
function
|
|
2024
|
+
var wt = "katex";
|
|
2025
|
+
function Tt(e) {
|
|
1929
2026
|
if (typeof document > "u") return !1;
|
|
1930
2027
|
for (let t of document.querySelectorAll("script[type=\"importmap\"]")) try {
|
|
1931
2028
|
if (JSON.parse(t.textContent ?? "").imports?.[e]) return !0;
|
|
1932
2029
|
} catch {}
|
|
1933
2030
|
return !1;
|
|
1934
2031
|
}
|
|
1935
|
-
var
|
|
2032
|
+
var Et = (e) => import(
|
|
1936
2033
|
/* @vite-ignore */
|
|
1937
2034
|
e
|
|
1938
|
-
),
|
|
1939
|
-
function
|
|
1940
|
-
return
|
|
2035
|
+
), Dt;
|
|
2036
|
+
function Ot() {
|
|
2037
|
+
return Dt ??= Tt(wt) ? Et(wt).then((e) => {
|
|
1941
2038
|
let t = e, n = t.default ?? t;
|
|
1942
2039
|
return typeof n.render == "function" ? n : null;
|
|
1943
|
-
}, () => null) : Promise.resolve(null),
|
|
2040
|
+
}, () => null) : Promise.resolve(null), Dt;
|
|
1944
2041
|
}
|
|
1945
|
-
function
|
|
2042
|
+
function kt({ children: e = "", mode: n = "inline", className: r }) {
|
|
1946
2043
|
let i = p(null), [a, o] = m(null), [s, l] = m(null), u = `${n}:${e}`;
|
|
1947
2044
|
return c(() => {
|
|
1948
2045
|
let e = !0;
|
|
1949
|
-
return
|
|
2046
|
+
return Ot().then((t) => {
|
|
1950
2047
|
e && t && o(() => t);
|
|
1951
2048
|
}), () => {
|
|
1952
2049
|
e = !1;
|
|
@@ -1980,19 +2077,19 @@ function Et({ children: e = "", mode: n = "inline", className: r }) {
|
|
|
1980
2077
|
}
|
|
1981
2078
|
//#endregion
|
|
1982
2079
|
//#region src/core/document/_shared/footnote-context.tsx
|
|
1983
|
-
function
|
|
2080
|
+
function At(e, t) {
|
|
1984
2081
|
switch (t.type) {
|
|
1985
2082
|
case "register": return e.footnotes.some((e) => e.id === t.entry.id) ? e : { footnotes: [...e.footnotes, t.entry] };
|
|
1986
2083
|
case "unregister": return { footnotes: e.footnotes.filter((e) => e.id !== t.id) };
|
|
1987
2084
|
default: return e;
|
|
1988
2085
|
}
|
|
1989
2086
|
}
|
|
1990
|
-
var
|
|
1991
|
-
function
|
|
1992
|
-
return s(
|
|
2087
|
+
var jt = i(null);
|
|
2088
|
+
function Mt() {
|
|
2089
|
+
return s(jt);
|
|
1993
2090
|
}
|
|
1994
|
-
function
|
|
1995
|
-
let [n, r] = f(
|
|
2091
|
+
function Nt({ children: e }) {
|
|
2092
|
+
let [n, r] = f(At, { footnotes: [] }), i = p(0), a = o((e) => {
|
|
1996
2093
|
i.current += 1;
|
|
1997
2094
|
let t = i.current;
|
|
1998
2095
|
return r({
|
|
@@ -2014,15 +2111,15 @@ function At({ children: e }) {
|
|
|
2014
2111
|
a,
|
|
2015
2112
|
s
|
|
2016
2113
|
]);
|
|
2017
|
-
return /* @__PURE__ */ t(
|
|
2114
|
+
return /* @__PURE__ */ t(jt.Provider, {
|
|
2018
2115
|
value: c,
|
|
2019
2116
|
children: e
|
|
2020
2117
|
});
|
|
2021
2118
|
}
|
|
2022
2119
|
//#endregion
|
|
2023
2120
|
//#region src/core/document/Footnote/Footnote.tsx
|
|
2024
|
-
function
|
|
2025
|
-
let r = l(), i =
|
|
2121
|
+
function Pt({ children: e }) {
|
|
2122
|
+
let r = l(), i = Mt(), [a, o] = m(null);
|
|
2026
2123
|
return c(() => {
|
|
2027
2124
|
if (!i) return;
|
|
2028
2125
|
let t = i.registerFootnote({
|
|
@@ -2055,7 +2152,7 @@ function jt({ children: e }) {
|
|
|
2055
2152
|
}
|
|
2056
2153
|
//#endregion
|
|
2057
2154
|
//#region src/core/document/Figure/Figure.tsx
|
|
2058
|
-
function
|
|
2155
|
+
function Ft({ children: e, caption: r, profileId: i, profile: a, className: o, style: s }) {
|
|
2059
2156
|
return a || K(i, "Figure"), /* @__PURE__ */ n("figure", {
|
|
2060
2157
|
className: _("core-figure", o),
|
|
2061
2158
|
...Y(a?.id ?? i),
|
|
@@ -2071,7 +2168,7 @@ function Mt({ children: e, caption: r, profileId: i, profile: a, className: o, s
|
|
|
2071
2168
|
}
|
|
2072
2169
|
//#endregion
|
|
2073
2170
|
//#region src/core/document/PageBreak/PageBreak.tsx
|
|
2074
|
-
function
|
|
2171
|
+
function It({ className: e }) {
|
|
2075
2172
|
return /* @__PURE__ */ t("div", {
|
|
2076
2173
|
className: _("core-page-break", e),
|
|
2077
2174
|
"aria-hidden": !0
|
|
@@ -2079,7 +2176,7 @@ function Nt({ className: e }) {
|
|
|
2079
2176
|
}
|
|
2080
2177
|
//#endregion
|
|
2081
2178
|
//#region src/core/document/DocumentLabel/DocumentLabel.tsx
|
|
2082
|
-
function
|
|
2179
|
+
function Lt({ children: e, as: n = "div", profileId: r, profile: i, tone: a = "subtle", className: o, style: s }) {
|
|
2083
2180
|
return i || K(r, "DocumentLabel"), /* @__PURE__ */ t(n, {
|
|
2084
2181
|
className: _("core-document-label", o),
|
|
2085
2182
|
"data-tone": a,
|
|
@@ -2090,7 +2187,7 @@ function Pt({ children: e, as: n = "div", profileId: r, profile: i, tone: a = "s
|
|
|
2090
2187
|
}
|
|
2091
2188
|
//#endregion
|
|
2092
2189
|
//#region src/core/document/_shared/ordinal-format.ts
|
|
2093
|
-
var
|
|
2190
|
+
var Rt = [
|
|
2094
2191
|
"one",
|
|
2095
2192
|
"two",
|
|
2096
2193
|
"three",
|
|
@@ -2102,15 +2199,15 @@ var Ft = [
|
|
|
2102
2199
|
"nine",
|
|
2103
2200
|
"ten"
|
|
2104
2201
|
];
|
|
2105
|
-
function
|
|
2202
|
+
function zt(e) {
|
|
2106
2203
|
if (e.length !== 1) return null;
|
|
2107
|
-
let t = e[0], n =
|
|
2204
|
+
let t = e[0], n = Rt[t - 1];
|
|
2108
2205
|
return n ? `Article ${n}` : `Article ${t}`;
|
|
2109
2206
|
}
|
|
2110
|
-
function
|
|
2207
|
+
function Bt(e) {
|
|
2111
2208
|
return e.length === 0 ? null : e.length === 1 ? `Article ${e[0]}` : e.join(".");
|
|
2112
2209
|
}
|
|
2113
|
-
function
|
|
2210
|
+
function Vt(e, t, n) {
|
|
2114
2211
|
let r = n === "ladder" && e !== void 0 && e.length > 0, i = [];
|
|
2115
2212
|
return t.map(({ level: t, marker: n }) => {
|
|
2116
2213
|
let a = Math.min(Number.isInteger(t) && t >= 1 ? t : 1, i.length + 1);
|
|
@@ -2119,20 +2216,20 @@ function Rt(e, t, n) {
|
|
|
2119
2216
|
}
|
|
2120
2217
|
//#endregion
|
|
2121
2218
|
//#region src/core/document/_shared/section-anchors.ts
|
|
2122
|
-
function
|
|
2219
|
+
function Ht(e, t) {
|
|
2123
2220
|
return e?.[t] ?? t;
|
|
2124
2221
|
}
|
|
2125
2222
|
//#endregion
|
|
2126
2223
|
//#region src/core/document/Reference/Reference.tsx
|
|
2127
|
-
function
|
|
2128
|
-
let d = c ?? K(s, "Reference"), f =
|
|
2224
|
+
function Ut({ target: e, form: n, sectionReferences: r, sectionNumbers: i, sectionTitles: a, sectionAnchors: o, profileId: s, profile: c, className: l, style: u }) {
|
|
2225
|
+
let d = c ?? K(s, "Reference"), f = mt(e), p = r?.[e], m = p?.openable === !1, h = f !== null && f.doc === void 0, g = f ? ht(f.unit) : e, v = p?.number ?? (h && f.element === void 0 ? i?.[g] : void 0), y = p?.title ?? (h && f.element === void 0 ? a?.[g] : void 0), b = null;
|
|
2129
2226
|
if (f?.element !== void 0) {
|
|
2130
2227
|
let e = p?.element;
|
|
2131
|
-
b = e ?
|
|
2132
|
-
} else v && (b =
|
|
2228
|
+
b = e ? Vt(p.number, e.shape, d?.depth.numbering)[e.index] ?? null : null;
|
|
2229
|
+
} else v && (b = Bt(v));
|
|
2133
2230
|
let x = n === "full" || f?.doc !== void 0 && n !== "title", S;
|
|
2134
2231
|
S = m ? null : n === "title" ? y ?? b : x && b && y && f?.element === void 0 ? `${b} (${y})` : b ?? y ?? null;
|
|
2135
|
-
let C = S !== null, w = C ? p ? p.href : `#${
|
|
2232
|
+
let C = S !== null, w = C ? p ? p.href : `#${Ht(o, g)}` : void 0, T = {
|
|
2136
2233
|
className: _("core-reference", l),
|
|
2137
2234
|
"data-target": e,
|
|
2138
2235
|
"data-unresolved": C || m ? void 0 : "",
|
|
@@ -2151,7 +2248,7 @@ function Bt({ target: e, form: n, sectionReferences: r, sectionNumbers: i, secti
|
|
|
2151
2248
|
}
|
|
2152
2249
|
//#endregion
|
|
2153
2250
|
//#region src/core/document/DocumentTable/DocumentTable.tsx
|
|
2154
|
-
function
|
|
2251
|
+
function Wt({ columns: e, rows: r, caption: i, profileId: a, profile: o, className: s, style: c }) {
|
|
2155
2252
|
return o || K(a, "DocumentTable"), e.length === 0 ? null : /* @__PURE__ */ n("div", {
|
|
2156
2253
|
className: _("core-document-table", s),
|
|
2157
2254
|
...Y(o?.id ?? a),
|
|
@@ -2176,7 +2273,7 @@ function Vt({ columns: e, rows: r, caption: i, profileId: a, profile: o, classNa
|
|
|
2176
2273
|
}
|
|
2177
2274
|
//#endregion
|
|
2178
2275
|
//#region src/core/document/RowList/RowList.tsx
|
|
2179
|
-
function
|
|
2276
|
+
function Gt({ items: e, profileId: r, profile: i, markerWidth: a = 44, secondaryWidth: o = 190, missingLabel: s = "Not answered yet", className: c, style: l }) {
|
|
2180
2277
|
return i || K(r, "RowList"), e.length === 0 ? null : /* @__PURE__ */ t("div", {
|
|
2181
2278
|
className: _("core-row-list", c),
|
|
2182
2279
|
...Y(i?.id ?? r),
|
|
@@ -2206,8 +2303,8 @@ function Ht({ items: e, profileId: r, profile: i, markerWidth: a = 44, secondary
|
|
|
2206
2303
|
}
|
|
2207
2304
|
//#endregion
|
|
2208
2305
|
//#region src/core/document/AnswerRows/AnswerRows.tsx
|
|
2209
|
-
var
|
|
2210
|
-
function
|
|
2306
|
+
var Kt = 190;
|
|
2307
|
+
function qt({ items: e, profileId: n, profile: r, missingLabel: i = "Not answered yet", answerWidth: a = 190, className: o, style: s }) {
|
|
2211
2308
|
let c = e.map((e) => {
|
|
2212
2309
|
let t = typeof e.answer == "string" && e.answer.trim().length > 0;
|
|
2213
2310
|
return {
|
|
@@ -2221,7 +2318,7 @@ function Wt({ items: e, profileId: n, profile: r, missingLabel: i = "Not answere
|
|
|
2221
2318
|
className: _("core-answer-rows", o),
|
|
2222
2319
|
...Y(r?.id ?? n),
|
|
2223
2320
|
style: s,
|
|
2224
|
-
children: /* @__PURE__ */ t(
|
|
2321
|
+
children: /* @__PURE__ */ t(Gt, {
|
|
2225
2322
|
items: c,
|
|
2226
2323
|
profileId: n,
|
|
2227
2324
|
profile: r,
|
|
@@ -2235,18 +2332,18 @@ function Wt({ items: e, profileId: n, profile: r, missingLabel: i = "Not answere
|
|
|
2235
2332
|
function X(e) {
|
|
2236
2333
|
if (e == null) return "";
|
|
2237
2334
|
if (typeof e == "string") return e;
|
|
2238
|
-
let t = e.precision ?? (e.format === "number" ?
|
|
2335
|
+
let t = e.precision ?? (e.format === "number" ? Jt(e.value) : void 0), n = Yt(e.format, e.value, {
|
|
2239
2336
|
precision: t,
|
|
2240
2337
|
signed: e.signed
|
|
2241
2338
|
});
|
|
2242
2339
|
return e.unit && n !== "—" ? `${n}\u00a0${e.unit}` : n;
|
|
2243
2340
|
}
|
|
2244
|
-
function
|
|
2341
|
+
function Jt(e) {
|
|
2245
2342
|
if (typeof e != "number" || !Number.isFinite(e)) return 0;
|
|
2246
2343
|
let t = String(Number(e.toFixed(3))), n = t.indexOf(".");
|
|
2247
2344
|
return n === -1 || t.includes("e") ? 0 : t.length - n - 1;
|
|
2248
2345
|
}
|
|
2249
|
-
function
|
|
2346
|
+
function Yt(e, t, n = {}) {
|
|
2250
2347
|
if (!Number.isFinite(t)) return "—";
|
|
2251
2348
|
let r = n.signed === !0, i = t < 0, a = Math.abs(t), o = i ? "-" : r ? "+" : "";
|
|
2252
2349
|
switch (e) {
|
|
@@ -2312,17 +2409,17 @@ function Kt(e, t, n = {}) {
|
|
|
2312
2409
|
}
|
|
2313
2410
|
//#endregion
|
|
2314
2411
|
//#region src/core/document/ComparisonBars/ComparisonBars.tsx
|
|
2315
|
-
var
|
|
2316
|
-
function
|
|
2412
|
+
var Xt = 40;
|
|
2413
|
+
function Zt({ bars: e, target: r, targetLabel: i, max: a, profileId: o, profile: s, className: c, style: l }) {
|
|
2317
2414
|
let u = s ?? K(o, "ComparisonBars");
|
|
2318
2415
|
if (e.length === 0) return null;
|
|
2319
2416
|
let d = e.map((e) => e.value), f = a ?? Math.max(...d, r ?? 0);
|
|
2320
|
-
if (!Number.isFinite(f) || f <= 0) return
|
|
2417
|
+
if (!Number.isFinite(f) || f <= 0) return F("ComparisonBars:no-scale", "[ComparisonBars] every value is zero or negative, so there is no scale to draw against. Rendering nothing rather than a full-width or zero-width bar, either of which reads as a chart and is not one."), null;
|
|
2321
2418
|
let p = r !== void 0 && r > 0 && r <= f ? r / f * 100 : void 0;
|
|
2322
2419
|
return /* @__PURE__ */ n("figure", {
|
|
2323
2420
|
className: _("core-comparison-bars", c),
|
|
2324
2421
|
...Y(s?.id ?? o),
|
|
2325
|
-
...
|
|
2422
|
+
...vt(u),
|
|
2326
2423
|
style: l,
|
|
2327
2424
|
children: [e.map((e) => {
|
|
2328
2425
|
let r = Math.max(0, Math.min(100, e.value / f * 100));
|
|
@@ -2339,7 +2436,7 @@ function Jt({ bars: e, target: r, targetLabel: i, max: a, profileId: o, profile:
|
|
|
2339
2436
|
/* @__PURE__ */ t("div", { className: "core-comparison-bars__fill" }),
|
|
2340
2437
|
/* @__PURE__ */ t("span", {
|
|
2341
2438
|
className: "core-comparison-bars__value",
|
|
2342
|
-
"data-placement": r >
|
|
2439
|
+
"data-placement": r > Xt ? "inside" : "outside",
|
|
2343
2440
|
children: X(e.display)
|
|
2344
2441
|
}),
|
|
2345
2442
|
p !== void 0 && /* @__PURE__ */ t("div", {
|
|
@@ -2357,9 +2454,9 @@ function Jt({ bars: e, target: r, targetLabel: i, max: a, profileId: o, profile:
|
|
|
2357
2454
|
}
|
|
2358
2455
|
//#endregion
|
|
2359
2456
|
//#region src/core/document/NextSteps/NextSteps.tsx
|
|
2360
|
-
var
|
|
2361
|
-
function
|
|
2362
|
-
return i || K(r, "NextSteps"), e.length === 0 ? null : ((e.length <
|
|
2457
|
+
var Qt = 3, $t = 5;
|
|
2458
|
+
function en({ items: e, profileId: r, profile: i, checkboxes: a = !0, className: o, style: s }) {
|
|
2459
|
+
return i || K(r, "NextSteps"), e.length === 0 ? null : ((e.length < Qt || e.length > $t) && F(`NextSteps:count:${e.length}`, `[NextSteps] ${e.length} step(s). A next-steps list takes three to five: fewer reads as an afterthought, more stops being a list a reader acts on this week. Rendering anyway — a document with six steps is far better than one with none.`), /* @__PURE__ */ t("ol", {
|
|
2363
2460
|
className: _("core-next-steps", o),
|
|
2364
2461
|
...Y(i?.id ?? r),
|
|
2365
2462
|
style: s,
|
|
@@ -2384,8 +2481,8 @@ function Zt({ items: e, profileId: r, profile: i, checkboxes: a = !0, className:
|
|
|
2384
2481
|
}
|
|
2385
2482
|
//#endregion
|
|
2386
2483
|
//#region src/core/document/Notes/Notes.tsx
|
|
2387
|
-
var
|
|
2388
|
-
function
|
|
2484
|
+
var tn = 38;
|
|
2485
|
+
function nn({ title: e = "Notes", lines: r = 4, profileId: i, profile: a, className: o, style: s }) {
|
|
2389
2486
|
return a || K(i, "Notes"), r < 1 ? null : /* @__PURE__ */ n("section", {
|
|
2390
2487
|
className: _("core-notes", o),
|
|
2391
2488
|
...Y(a?.id ?? i),
|
|
@@ -2402,8 +2499,8 @@ function $t({ title: e = "Notes", lines: r = 4, profileId: i, profile: a, classN
|
|
|
2402
2499
|
}
|
|
2403
2500
|
//#endregion
|
|
2404
2501
|
//#region src/core/document/SkippedSection/SkippedSection.tsx
|
|
2405
|
-
var
|
|
2406
|
-
function
|
|
2502
|
+
var rn = "You left this section open, so it is not covered here.";
|
|
2503
|
+
function an({ wouldTell: e, openingLine: r = rn, profileId: i, profile: a, className: o, style: s }) {
|
|
2407
2504
|
return a || K(i, "SkippedSection"), /* @__PURE__ */ n("div", {
|
|
2408
2505
|
className: _("core-skipped-section", o),
|
|
2409
2506
|
...Y(a?.id ?? i),
|
|
@@ -2423,11 +2520,11 @@ function tn({ wouldTell: e, openingLine: r = en, profileId: i, profile: a, class
|
|
|
2423
2520
|
}
|
|
2424
2521
|
//#endregion
|
|
2425
2522
|
//#region src/core/document/TalkItThrough/TalkItThrough.tsx
|
|
2426
|
-
var
|
|
2427
|
-
function
|
|
2428
|
-
if (o || K(a, "TalkItThrough"), !e?.name?.trim()) return
|
|
2523
|
+
var on = "Nothing here is settled. If a number looks wrong, or a step does not fit your situation, say so and we will work through it together.";
|
|
2524
|
+
function sn({ advisor: e, title: r = "Talk it through", invitation: i = on, profileId: a, profile: o, className: s, style: c }) {
|
|
2525
|
+
if (o || K(a, "TalkItThrough"), !e?.name?.trim()) return F("TalkItThrough:no-advisor", "[TalkItThrough] no advisor name — rendering NOTHING rather than an empty box. This section is mandatory in an approved output because it is the door to a human; a door with nobody behind it passes a structural check and fails the reader."), null;
|
|
2429
2526
|
let l = [e.phone, e.email].filter((e) => typeof e == "string" && e.trim().length > 0);
|
|
2430
|
-
return l.length === 0 &&
|
|
2527
|
+
return l.length === 0 && F("TalkItThrough:no-contact", `[TalkItThrough] "${e.name}" has no phone and no email. The section is the advisor's name, HOW TO REACH THEM, and an open invitation — a name alone is not a route. Rendering, because a named advisor is still better than a dropped section.`), /* @__PURE__ */ n("section", {
|
|
2431
2528
|
className: _("core-talk-it-through", s),
|
|
2432
2529
|
...Y(o?.id ?? a),
|
|
2433
2530
|
style: c,
|
|
@@ -2462,8 +2559,8 @@ function rn({ advisor: e, title: r = "Talk it through", invitation: i = nn, prof
|
|
|
2462
2559
|
}
|
|
2463
2560
|
//#endregion
|
|
2464
2561
|
//#region src/core/document/WriteInField/WriteInField.tsx
|
|
2465
|
-
var
|
|
2466
|
-
function
|
|
2562
|
+
var cn = 38;
|
|
2563
|
+
function ln({ question: e, answer: r, lines: i = 1, profileId: a, profile: o, className: s, style: c }) {
|
|
2467
2564
|
o || K(a, "WriteInField");
|
|
2468
2565
|
let l = typeof r == "string" && r.trim().length > 0, u = Math.max(1, i);
|
|
2469
2566
|
return /* @__PURE__ */ n("div", {
|
|
@@ -2485,7 +2582,7 @@ function on({ question: e, answer: r, lines: i = 1, profileId: a, profile: o, cl
|
|
|
2485
2582
|
}
|
|
2486
2583
|
//#endregion
|
|
2487
2584
|
//#region src/core/document/Masthead/Masthead.tsx
|
|
2488
|
-
function
|
|
2585
|
+
function un({ mark: e, identity: r, codes: i, profileId: a, profile: o, className: s, style: c }) {
|
|
2489
2586
|
return o || K(a, "Masthead"), e === void 0 && r === void 0 && i === void 0 ? null : /* @__PURE__ */ n("header", {
|
|
2490
2587
|
className: _("core-masthead", s),
|
|
2491
2588
|
"data-page-region": "page-header",
|
|
@@ -2512,10 +2609,10 @@ function sn({ mark: e, identity: r, codes: i, profileId: a, profile: o, classNam
|
|
|
2512
2609
|
}
|
|
2513
2610
|
//#endregion
|
|
2514
2611
|
//#region src/core/document/MetaRail/MetaRail.tsx
|
|
2515
|
-
var
|
|
2516
|
-
function
|
|
2612
|
+
var dn = 4;
|
|
2613
|
+
function fn({ fields: e, profileId: r, profile: i, className: a, style: o }) {
|
|
2517
2614
|
let s = (i ?? K(r, "MetaRail"))?.rail.placement ?? "strip";
|
|
2518
|
-
return s === "none" || e.length === 0 ? null : (s !== "column" && e.length >
|
|
2615
|
+
return s === "none" || e.length === 0 ? null : (s !== "column" && e.length > dn && typeof console < "u" && console.warn(`[MetaRail] ${e.length} fields in a strip; the spec allows ${dn}. Rendering all of them — check the layout.`), /* @__PURE__ */ t("div", {
|
|
2519
2616
|
className: _("core-meta-rail", a),
|
|
2520
2617
|
"data-placement": s,
|
|
2521
2618
|
...Y(i?.id ?? r),
|
|
@@ -2534,12 +2631,12 @@ function ln({ fields: e, profileId: r, profile: i, className: a, style: o }) {
|
|
|
2534
2631
|
}
|
|
2535
2632
|
//#endregion
|
|
2536
2633
|
//#region src/core/document/RunningFooter/RunningFooter.tsx
|
|
2537
|
-
var
|
|
2634
|
+
var pn = {
|
|
2538
2635
|
left: "bottom-left",
|
|
2539
2636
|
centre: "bottom-center",
|
|
2540
2637
|
right: "bottom-right"
|
|
2541
2638
|
};
|
|
2542
|
-
function
|
|
2639
|
+
function mn({ left: e, centre: n, right: r, profileId: i, profile: a, className: o, style: s }) {
|
|
2543
2640
|
a || K(i, "RunningFooter");
|
|
2544
2641
|
let c = [
|
|
2545
2642
|
["left", e],
|
|
@@ -2554,16 +2651,16 @@ function dn({ left: e, centre: n, right: r, profileId: i, profile: a, className:
|
|
|
2554
2651
|
children: c.map(([e, n]) => /* @__PURE__ */ t("span", {
|
|
2555
2652
|
className: "core-running-footer__slot",
|
|
2556
2653
|
"data-region-slot": e,
|
|
2557
|
-
"data-margin-box":
|
|
2654
|
+
"data-margin-box": pn[e],
|
|
2558
2655
|
children: n
|
|
2559
2656
|
}, e))
|
|
2560
2657
|
});
|
|
2561
2658
|
}
|
|
2562
2659
|
//#endregion
|
|
2563
2660
|
//#region src/core/document/DocumentShell/DocumentShell.tsx
|
|
2564
|
-
function
|
|
2661
|
+
function hn({ children: r, rail: i, profileId: a, profile: o, className: s, style: c }) {
|
|
2565
2662
|
let l = o ?? K(a, "DocumentShell"), u = l?.rail.placement === "column" && i !== void 0;
|
|
2566
|
-
return /* @__PURE__ */ t(
|
|
2663
|
+
return /* @__PURE__ */ t(Nt, { children: /* @__PURE__ */ n("div", {
|
|
2567
2664
|
className: _("core-document-shell", s),
|
|
2568
2665
|
...Y(l?.id ?? a),
|
|
2569
2666
|
"data-has-rail": u ? "" : void 0,
|
|
@@ -2582,10 +2679,10 @@ function fn({ children: r, rail: i, profileId: a, profile: o, className: s, styl
|
|
|
2582
2679
|
}
|
|
2583
2680
|
//#endregion
|
|
2584
2681
|
//#region src/core/document/Contents/Contents.tsx
|
|
2585
|
-
function
|
|
2682
|
+
function gn(e, t) {
|
|
2586
2683
|
return !e || e.length === 0 ? null : t === 0 ? String(e[0]).padStart(2, "0") : e.join(".");
|
|
2587
2684
|
}
|
|
2588
|
-
function
|
|
2685
|
+
function _n({ entries: e, depth: r, title: i, profileId: a, profile: o, className: s, style: c }) {
|
|
2589
2686
|
let l = o ?? K(a, "Contents"), u = l?.depth.max ?? Infinity, d = e ?? [], f = r === void 0 ? d : d.filter((e) => e.level < r);
|
|
2590
2687
|
if (f.length === 0) return null;
|
|
2591
2688
|
let p = l?.depth.numbering ?? "none", m = f.some((e) => e.page !== void 0);
|
|
@@ -2600,7 +2697,7 @@ function mn({ entries: e, depth: r, title: i, profileId: a, profile: o, classNam
|
|
|
2600
2697
|
}), /* @__PURE__ */ t("ol", {
|
|
2601
2698
|
className: "core-contents__list",
|
|
2602
2699
|
children: f.map((e) => {
|
|
2603
|
-
let r = p === "none" ? null :
|
|
2700
|
+
let r = p === "none" ? null : gn(e.ordinal, e.level);
|
|
2604
2701
|
return /* @__PURE__ */ n("li", {
|
|
2605
2702
|
className: "core-contents__entry",
|
|
2606
2703
|
"data-level": e.level,
|
|
@@ -2628,7 +2725,7 @@ function mn({ entries: e, depth: r, title: i, profileId: a, profile: o, classNam
|
|
|
2628
2725
|
}
|
|
2629
2726
|
//#endregion
|
|
2630
2727
|
//#region src/core/document/ExecutionBlock/ExecutionBlock.tsx
|
|
2631
|
-
function
|
|
2728
|
+
function vn({ s: e, dated: r }) {
|
|
2632
2729
|
return /* @__PURE__ */ n("div", {
|
|
2633
2730
|
className: "core-execution-block__signature",
|
|
2634
2731
|
children: [/* @__PURE__ */ n("div", {
|
|
@@ -2665,7 +2762,7 @@ function hn({ s: e, dated: r }) {
|
|
|
2665
2762
|
})]
|
|
2666
2763
|
});
|
|
2667
2764
|
}
|
|
2668
|
-
function
|
|
2765
|
+
function yn({ attestation: e, label: r, signatories: i, columns: a = 1, note: o, profileId: s, profile: c, className: l, style: u }) {
|
|
2669
2766
|
c || K(s, "ExecutionBlock");
|
|
2670
2767
|
let d = Array.isArray(i) ? i : [];
|
|
2671
2768
|
return /* @__PURE__ */ n("section", {
|
|
@@ -2684,7 +2781,7 @@ function gn({ attestation: e, label: r, signatories: i, columns: a = 1, note: o,
|
|
|
2684
2781
|
/* @__PURE__ */ t("div", {
|
|
2685
2782
|
className: "core-execution-block__signatories",
|
|
2686
2783
|
"data-columns": a,
|
|
2687
|
-
children: d.map((e, n) => /* @__PURE__ */ t(
|
|
2784
|
+
children: d.map((e, n) => /* @__PURE__ */ t(vn, {
|
|
2688
2785
|
s: e,
|
|
2689
2786
|
dated: e.dated === !0
|
|
2690
2787
|
}, n))
|
|
@@ -2698,7 +2795,7 @@ function gn({ attestation: e, label: r, signatories: i, columns: a = 1, note: o,
|
|
|
2698
2795
|
}
|
|
2699
2796
|
//#endregion
|
|
2700
2797
|
//#region src/core/document/DocumentBlocks/DocumentBlocks.tsx
|
|
2701
|
-
function
|
|
2798
|
+
function bn({ kind: e }) {
|
|
2702
2799
|
return /* @__PURE__ */ n("div", {
|
|
2703
2800
|
className: "core-document-blocks__unrenderable",
|
|
2704
2801
|
"data-unrenderable-block": e,
|
|
@@ -2711,10 +2808,10 @@ function _n({ kind: e }) {
|
|
|
2711
2808
|
]
|
|
2712
2809
|
});
|
|
2713
2810
|
}
|
|
2714
|
-
function
|
|
2811
|
+
function xn({ blocks: e, profileId: n, sectionNumbers: r, sectionAnchors: i, sectionTitles: a, sectionReferences: o, sectionOrdinal: s, className: c, style: l }) {
|
|
2715
2812
|
let u = K(n, "DocumentBlocks");
|
|
2716
2813
|
if (e.length === 0) return null;
|
|
2717
|
-
let d =
|
|
2814
|
+
let d = Vt(s, e.flatMap((e) => e.kind === "clause" ? e.items : []), u?.depth.numbering), f = 0, p = (e, s) => _t(e) ? gt(e).map((e, c) => e.kind === "text" ? e.text : /* @__PURE__ */ t(Ut, {
|
|
2718
2815
|
target: e.key,
|
|
2719
2816
|
form: e.form,
|
|
2720
2817
|
sectionReferences: o,
|
|
@@ -2731,12 +2828,12 @@ function vn({ blocks: e, profileId: n, sectionNumbers: r, sectionAnchors: i, sec
|
|
|
2731
2828
|
children: e.map((e, r) => {
|
|
2732
2829
|
let i = `${e.kind}-${r}`;
|
|
2733
2830
|
switch (e.kind) {
|
|
2734
|
-
case "prose": return /* @__PURE__ */ t(
|
|
2831
|
+
case "prose": return /* @__PURE__ */ t(xt, {
|
|
2735
2832
|
profileId: n,
|
|
2736
2833
|
full: e.full,
|
|
2737
2834
|
children: p(e.text, i)
|
|
2738
2835
|
}, i);
|
|
2739
|
-
case "clause": return /* @__PURE__ */ t(
|
|
2836
|
+
case "clause": return /* @__PURE__ */ t(Gt, {
|
|
2740
2837
|
profileId: n,
|
|
2741
2838
|
items: e.items.map((e, t) => ({
|
|
2742
2839
|
marker: d[f++],
|
|
@@ -2745,31 +2842,31 @@ function vn({ blocks: e, profileId: n, sectionNumbers: r, sectionAnchors: i, sec
|
|
|
2745
2842
|
missing: e.missing
|
|
2746
2843
|
}))
|
|
2747
2844
|
}, i);
|
|
2748
|
-
case "definitions": return /* @__PURE__ */ t(
|
|
2845
|
+
case "definitions": return /* @__PURE__ */ t(Ct, {
|
|
2749
2846
|
profileId: n,
|
|
2750
2847
|
pairs: e.pairs.map((e, t) => ({
|
|
2751
2848
|
term: e.term,
|
|
2752
2849
|
description: p(e.description, `${i}-${t}`)
|
|
2753
2850
|
}))
|
|
2754
2851
|
}, i);
|
|
2755
|
-
case "table": return /* @__PURE__ */ t(
|
|
2852
|
+
case "table": return /* @__PURE__ */ t(Wt, {
|
|
2756
2853
|
profileId: n,
|
|
2757
2854
|
caption: e.caption ? p(e.caption, `${i}-cap`) : void 0,
|
|
2758
2855
|
columns: e.columns,
|
|
2759
2856
|
rows: e.rows.map((e, t) => e.map((e, n) => p(e, `${i}-${t}-${n}`)))
|
|
2760
2857
|
}, i);
|
|
2761
|
-
case "notice": return /* @__PURE__ */ t(
|
|
2858
|
+
case "notice": return /* @__PURE__ */ t(bt, {
|
|
2762
2859
|
profileId: n,
|
|
2763
2860
|
tone: e.tone,
|
|
2764
2861
|
title: e.title,
|
|
2765
2862
|
children: p(e.text, i)
|
|
2766
2863
|
}, i);
|
|
2767
|
-
case "figure": return /* @__PURE__ */ t(
|
|
2864
|
+
case "figure": return /* @__PURE__ */ t(Ft, {
|
|
2768
2865
|
profileId: n,
|
|
2769
2866
|
caption: p(e.caption, i),
|
|
2770
2867
|
children: e.placeholder ?? null
|
|
2771
2868
|
}, i);
|
|
2772
|
-
case "execution": return /* @__PURE__ */ t(
|
|
2869
|
+
case "execution": return /* @__PURE__ */ t(yn, {
|
|
2773
2870
|
profileId: n,
|
|
2774
2871
|
label: e.label,
|
|
2775
2872
|
attestation: e.attestation,
|
|
@@ -2777,22 +2874,22 @@ function vn({ blocks: e, profileId: n, sectionNumbers: r, sectionAnchors: i, sec
|
|
|
2777
2874
|
columns: e.columns,
|
|
2778
2875
|
note: e.note
|
|
2779
2876
|
}, i);
|
|
2780
|
-
default: return /* @__PURE__ */ t(
|
|
2877
|
+
default: return /* @__PURE__ */ t(bn, { kind: String(e.kind) }, i);
|
|
2781
2878
|
}
|
|
2782
2879
|
})
|
|
2783
2880
|
});
|
|
2784
2881
|
}
|
|
2785
2882
|
//#endregion
|
|
2786
2883
|
//#region src/core/document/DocumentSection/DocumentSection.tsx
|
|
2787
|
-
var
|
|
2884
|
+
var Sn = [
|
|
2788
2885
|
"h2",
|
|
2789
2886
|
"h3",
|
|
2790
2887
|
"h4",
|
|
2791
2888
|
"h5",
|
|
2792
2889
|
"h6"
|
|
2793
2890
|
];
|
|
2794
|
-
function
|
|
2795
|
-
let x = g ?? K(h, "DocumentSection"), S = o?.[e], C = u?.[e], w = S ?? a, T = C === void 0 ? i : Math.max(0, C - 1), E = T >= (x?.depth.max ?? Infinity), D = Math.min(T, (x?.depth.indent.length ?? 1) - 1) + 1, O = x?.depth.numbering === "ladder" && w !== void 0 && w.length > 0, k = O ?
|
|
2891
|
+
function Cn({ sectionId: e, title: r, level: i = 0, ordinal: a, sectionNumbers: o, sectionAnchors: s, sectionTitles: c, sectionReferences: l, sectionLevels: u, continued: d = !1, continuedCount: f, children: p, blocks: m, profileId: h, profile: g, className: v, style: b }) {
|
|
2892
|
+
let x = g ?? K(h, "DocumentSection"), S = o?.[e], C = u?.[e], w = S ?? a, T = C === void 0 ? i : Math.max(0, C - 1), E = T >= (x?.depth.max ?? Infinity), D = Math.min(T, (x?.depth.indent.length ?? 1) - 1) + 1, O = x?.depth.numbering === "ladder" && w !== void 0 && w.length > 0, k = O ? zt(w) : null, A = Sn[Math.min(T, Sn.length - 1)], j = Ht(s, e), M = `${j}-doc-heading`;
|
|
2796
2893
|
return /* @__PURE__ */ n("section", {
|
|
2797
2894
|
id: j,
|
|
2798
2895
|
className: _("core-document-section", v),
|
|
@@ -2828,7 +2925,7 @@ function bn({ sectionId: e, title: r, level: i = 0, ordinal: a, sectionNumbers:
|
|
|
2828
2925
|
}),
|
|
2829
2926
|
/* @__PURE__ */ t("div", {
|
|
2830
2927
|
className: "core-document-section__body",
|
|
2831
|
-
children: p ?? (m ? /* @__PURE__ */ t(
|
|
2928
|
+
children: p ?? (m ? /* @__PURE__ */ t(xn, {
|
|
2832
2929
|
blocks: m,
|
|
2833
2930
|
profileId: h,
|
|
2834
2931
|
sectionNumbers: o,
|
|
@@ -2841,7 +2938,7 @@ function bn({ sectionId: e, title: r, level: i = 0, ordinal: a, sectionNumbers:
|
|
|
2841
2938
|
]
|
|
2842
2939
|
});
|
|
2843
2940
|
}
|
|
2844
|
-
var
|
|
2941
|
+
var wn = {
|
|
2845
2942
|
prose: {
|
|
2846
2943
|
type: "object",
|
|
2847
2944
|
required: ["kind", "text"],
|
|
@@ -3040,22 +3137,22 @@ var xn = {
|
|
|
3040
3137
|
note: { type: "string" }
|
|
3041
3138
|
}
|
|
3042
3139
|
}
|
|
3043
|
-
},
|
|
3140
|
+
}, Tn = [
|
|
3044
3141
|
"md",
|
|
3045
3142
|
"lg",
|
|
3046
3143
|
"xl"
|
|
3047
|
-
],
|
|
3048
|
-
function
|
|
3049
|
-
let t =
|
|
3050
|
-
return t > 0 ?
|
|
3144
|
+
], En = 5;
|
|
3145
|
+
function Dn(e) {
|
|
3146
|
+
let t = Tn.indexOf(e);
|
|
3147
|
+
return t > 0 ? Tn[t - 1] : e;
|
|
3051
3148
|
}
|
|
3052
|
-
var
|
|
3053
|
-
function
|
|
3149
|
+
var On = (e) => typeof e == "object" && !!e && "format" in e && "value" in e;
|
|
3150
|
+
function kn(e) {
|
|
3054
3151
|
let t = Number(e);
|
|
3055
3152
|
return Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0;
|
|
3056
3153
|
}
|
|
3057
|
-
function
|
|
3058
|
-
let d =
|
|
3154
|
+
function An({ value: e, label: r, size: i = "lg", tone: a, progress: o, progressLabel: s, autoStepDown: c = !0, className: l, style: u }) {
|
|
3155
|
+
let d = On(e) ? X(e) : e, f = typeof d == "string" || typeof d == "number" ? String(d).length : 0, p = c && f > En ? Dn(i) : i, m = B(a, "strong"), { toned: h, ...g } = ee(m), v = o == null ? null : kn(o);
|
|
3059
3156
|
return /* @__PURE__ */ n("div", {
|
|
3060
3157
|
className: _("core-stat", h && "core-toned", l),
|
|
3061
3158
|
...g,
|
|
@@ -3066,7 +3163,7 @@ function Dn({ value: e, label: r, size: i = "lg", tone: a, progress: o, progress
|
|
|
3066
3163
|
className: "core-stat__value",
|
|
3067
3164
|
children: d
|
|
3068
3165
|
}),
|
|
3069
|
-
r != null && /* @__PURE__ */ t(
|
|
3166
|
+
r != null && /* @__PURE__ */ t(V, {
|
|
3070
3167
|
className: "core-stat__label",
|
|
3071
3168
|
tone: m === "on-dark" || m === "inherit" ? m : "subtle",
|
|
3072
3169
|
children: r
|
|
@@ -3084,7 +3181,7 @@ function Dn({ value: e, label: r, size: i = "lg", tone: a, progress: o, progress
|
|
|
3084
3181
|
]
|
|
3085
3182
|
});
|
|
3086
3183
|
}
|
|
3087
|
-
function
|
|
3184
|
+
function jn({ children: e, minColumnWidth: n = 200, maxColumns: r = 4, gap: i = 32, className: a, style: o }) {
|
|
3088
3185
|
return /* @__PURE__ */ t("div", {
|
|
3089
3186
|
className: _("core-stat-group", a),
|
|
3090
3187
|
style: y({
|
|
@@ -3097,13 +3194,13 @@ function On({ children: e, minColumnWidth: n = 200, maxColumns: r = 4, gap: i =
|
|
|
3097
3194
|
}
|
|
3098
3195
|
//#endregion
|
|
3099
3196
|
//#region src/core/display/_shared/Reveal.tsx
|
|
3100
|
-
var
|
|
3197
|
+
var Mn = {
|
|
3101
3198
|
up: [0, 28],
|
|
3102
3199
|
left: [-40, 0],
|
|
3103
3200
|
right: [40, 0],
|
|
3104
3201
|
none: [0, 0]
|
|
3105
3202
|
};
|
|
3106
|
-
function
|
|
3203
|
+
function Nn({ direction: e = "up", delay: n = 0, duration: r = .5, threshold: i = .15, once: a = !0, className: o, style: s, children: l }) {
|
|
3107
3204
|
let u = p(null), [d, f] = m(!1);
|
|
3108
3205
|
c(() => {
|
|
3109
3206
|
let e = u.current;
|
|
@@ -3118,7 +3215,7 @@ function An({ direction: e = "up", delay: n = 0, duration: r = .5, threshold: i
|
|
|
3118
3215
|
}, { threshold: Math.min(1, Math.max(0, i)) });
|
|
3119
3216
|
return t.observe(e), () => t.disconnect();
|
|
3120
3217
|
}, [a, i]);
|
|
3121
|
-
let [h, g] =
|
|
3218
|
+
let [h, g] = Mn[e];
|
|
3122
3219
|
return /* @__PURE__ */ t("div", {
|
|
3123
3220
|
ref: u,
|
|
3124
3221
|
className: _("core-reveal", o),
|
|
@@ -3134,8 +3231,8 @@ function An({ direction: e = "up", delay: n = 0, duration: r = .5, threshold: i
|
|
|
3134
3231
|
}
|
|
3135
3232
|
//#endregion
|
|
3136
3233
|
//#region src/core/display/SectionHeader/SectionHeader.tsx
|
|
3137
|
-
function
|
|
3138
|
-
return /* @__PURE__ */ t(
|
|
3234
|
+
function Pn({ eyebrow: e, title: r, description: i, trailing: a, revealDelay: o = 0, className: s, style: c }) {
|
|
3235
|
+
return /* @__PURE__ */ t(Nn, {
|
|
3139
3236
|
direction: "up",
|
|
3140
3237
|
delay: o,
|
|
3141
3238
|
className: _("core-section-header", s),
|
|
@@ -3146,7 +3243,7 @@ function jn({ eyebrow: e, title: r, description: i, trailing: a, revealDelay: o
|
|
|
3146
3243
|
children: [/* @__PURE__ */ n("div", {
|
|
3147
3244
|
className: "core-section-header__text",
|
|
3148
3245
|
children: [
|
|
3149
|
-
e ? /* @__PURE__ */ t(
|
|
3246
|
+
e ? /* @__PURE__ */ t(V, {
|
|
3150
3247
|
className: "core-section-header__eyebrow",
|
|
3151
3248
|
children: e
|
|
3152
3249
|
}) : null,
|
|
@@ -3168,8 +3265,8 @@ function jn({ eyebrow: e, title: r, description: i, trailing: a, revealDelay: o
|
|
|
3168
3265
|
}
|
|
3169
3266
|
//#endregion
|
|
3170
3267
|
//#region src/core/display/HighlightBox/HighlightBox.tsx
|
|
3171
|
-
function
|
|
3172
|
-
let l =
|
|
3268
|
+
function Fn({ tone: e, label: r, headline: i, children: a, trailing: o, className: s, style: c }) {
|
|
3269
|
+
let l = R(e, "accent"), u = o != null && o !== "";
|
|
3173
3270
|
return /* @__PURE__ */ n("div", {
|
|
3174
3271
|
className: _("core-highlight-box", "core-toned", s),
|
|
3175
3272
|
"data-tone": l,
|
|
@@ -3198,7 +3295,7 @@ function Mn({ tone: e, label: r, headline: i, children: a, trailing: o, classNam
|
|
|
3198
3295
|
}
|
|
3199
3296
|
//#endregion
|
|
3200
3297
|
//#region src/core/display/DisclaimerBlock/DisclaimerBlock.tsx
|
|
3201
|
-
function
|
|
3298
|
+
function In({ label: r, children: i, className: a, style: o }) {
|
|
3202
3299
|
return /* @__PURE__ */ n("div", {
|
|
3203
3300
|
className: _("core-disclaimer-block", a),
|
|
3204
3301
|
style: o,
|
|
@@ -3210,15 +3307,15 @@ function Nn({ label: r, children: i, className: a, style: o }) {
|
|
|
3210
3307
|
}
|
|
3211
3308
|
//#endregion
|
|
3212
3309
|
//#region src/core/display/StatStrip/StatStrip.tsx
|
|
3213
|
-
function
|
|
3310
|
+
function Ln(e) {
|
|
3214
3311
|
let t = Number(e);
|
|
3215
3312
|
return Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0;
|
|
3216
3313
|
}
|
|
3217
|
-
function
|
|
3218
|
-
let l =
|
|
3314
|
+
function Rn({ label: e, value: r, fillPercent: i, subtitle: a, tone: o, className: s, style: c }) {
|
|
3315
|
+
let l = Ln(i);
|
|
3219
3316
|
return /* @__PURE__ */ n("div", {
|
|
3220
3317
|
className: _("core-stat-strip", "core-toned", s),
|
|
3221
|
-
"data-tone":
|
|
3318
|
+
"data-tone": R(o, "info"),
|
|
3222
3319
|
style: y({ "--core-stat-strip-fill": `${l}%` }, c),
|
|
3223
3320
|
children: [
|
|
3224
3321
|
/* @__PURE__ */ n("div", {
|
|
@@ -3244,30 +3341,30 @@ function Fn({ label: e, value: r, fillPercent: i, subtitle: a, tone: o, classNam
|
|
|
3244
3341
|
}
|
|
3245
3342
|
//#endregion
|
|
3246
3343
|
//#region src/core/display/_shared/ValueBadge.tsx
|
|
3247
|
-
function
|
|
3344
|
+
function zn({ text: e, tone: n, className: r }) {
|
|
3248
3345
|
return /* @__PURE__ */ t("span", {
|
|
3249
3346
|
className: _("core-value-badge", "core-toned", r),
|
|
3250
|
-
"data-tone":
|
|
3347
|
+
"data-tone": R(n),
|
|
3251
3348
|
children: X(e)
|
|
3252
3349
|
});
|
|
3253
3350
|
}
|
|
3254
3351
|
//#endregion
|
|
3255
3352
|
//#region src/core/display/OptionCard/OptionCard.tsx
|
|
3256
|
-
var
|
|
3353
|
+
var Bn = 8, Vn = {
|
|
3257
3354
|
good: "success",
|
|
3258
3355
|
warn: "warning",
|
|
3259
3356
|
critical: "danger"
|
|
3260
3357
|
};
|
|
3261
|
-
function
|
|
3262
|
-
let r = { series: String(n %
|
|
3358
|
+
function Hn(e, t, n) {
|
|
3359
|
+
let r = { series: String(n % Bn + 1) }, i = e ?? t;
|
|
3263
3360
|
if (typeof i != "string" || i === "") return r;
|
|
3264
3361
|
if (i === "muted") return { series: "muted" };
|
|
3265
3362
|
let a = /^series-([1-9]\d*)$/.exec(i);
|
|
3266
|
-
if (a) return { series: String((Number(a[1]) - 1) %
|
|
3267
|
-
let o =
|
|
3268
|
-
return o ? { tone: o } :
|
|
3363
|
+
if (a) return { series: String((Number(a[1]) - 1) % Bn + 1) };
|
|
3364
|
+
let o = Vn[i];
|
|
3365
|
+
return o ? { tone: o } : I.includes(i) ? { tone: i } : (F("OptionCard:colour", `[OptionCard] bar fill "${i}" is not a tone or a series slot; using the chart series by position. Name a tone (success, danger, …) or a slot (series-1…series-8).`), r);
|
|
3269
3366
|
}
|
|
3270
|
-
function
|
|
3367
|
+
function Un(e) {
|
|
3271
3368
|
return typeof e == "number" && Number.isFinite(e) ? {
|
|
3272
3369
|
text: String(e).padStart(2, "0"),
|
|
3273
3370
|
kind: "numeral"
|
|
@@ -3279,8 +3376,8 @@ function Bn(e) {
|
|
|
3279
3376
|
kind: "label"
|
|
3280
3377
|
};
|
|
3281
3378
|
}
|
|
3282
|
-
function
|
|
3283
|
-
let { number: r, title: i, description: a, badgeText: o, badgeTone: s, bars: c, tone: l, isSelected: u = !1, className: d, style: f } = e, p = Array.isArray(c) ? c : [], m =
|
|
3379
|
+
function Wn(e) {
|
|
3380
|
+
let { number: r, title: i, description: a, badgeText: o, badgeTone: s, bars: c, tone: l, isSelected: u = !1, className: d, style: f } = e, p = Array.isArray(c) ? c : [], m = Un(r);
|
|
3284
3381
|
return /* @__PURE__ */ n("div", {
|
|
3285
3382
|
className: _("core-option-card", d),
|
|
3286
3383
|
"data-selected": u ? "true" : void 0,
|
|
@@ -3293,9 +3390,9 @@ function Vn(e) {
|
|
|
3293
3390
|
className: "core-option-card__number",
|
|
3294
3391
|
"data-kind": m.kind,
|
|
3295
3392
|
children: m.text
|
|
3296
|
-
}) : /* @__PURE__ */ t("span", {}), o != null && o !== "" ? /* @__PURE__ */ t(
|
|
3393
|
+
}) : /* @__PURE__ */ t("span", {}), o != null && o !== "" ? /* @__PURE__ */ t(zn, {
|
|
3297
3394
|
text: o,
|
|
3298
|
-
tone:
|
|
3395
|
+
tone: R(s)
|
|
3299
3396
|
}) : null]
|
|
3300
3397
|
}),
|
|
3301
3398
|
i ? /* @__PURE__ */ t("div", {
|
|
@@ -3307,7 +3404,7 @@ function Vn(e) {
|
|
|
3307
3404
|
children: a
|
|
3308
3405
|
}) : null,
|
|
3309
3406
|
p.map((e, r) => {
|
|
3310
|
-
let i =
|
|
3407
|
+
let i = Hn(e.tone, l, r), a = Math.min(100, Math.max(0, Number(e.fillPercent) || 0)), o = e.valueTone === void 0 || e.valueTone === "default" ? void 0 : R(e.valueTone);
|
|
3311
3408
|
return /* @__PURE__ */ n("div", {
|
|
3312
3409
|
className: "core-option-card__bar",
|
|
3313
3410
|
children: [/* @__PURE__ */ n("div", {
|
|
@@ -3336,11 +3433,11 @@ function Vn(e) {
|
|
|
3336
3433
|
}
|
|
3337
3434
|
//#endregion
|
|
3338
3435
|
//#region src/core/display/ProfileCard/ProfileCard.tsx
|
|
3339
|
-
function
|
|
3436
|
+
function Gn(e) {
|
|
3340
3437
|
let { title: r, subtitle: i, rows: a, className: o, style: s } = e, c = e.tone ?? "info", l = c === "none", u = Array.isArray(a) ? a : [];
|
|
3341
3438
|
return /* @__PURE__ */ n("div", {
|
|
3342
3439
|
className: _("core-profile-card", !l && "core-toned", o),
|
|
3343
|
-
"data-tone": l ? void 0 :
|
|
3440
|
+
"data-tone": l ? void 0 : R(c, "info"),
|
|
3344
3441
|
"data-marker": l ? "none" : void 0,
|
|
3345
3442
|
style: s,
|
|
3346
3443
|
children: [/* @__PURE__ */ n("div", {
|
|
@@ -3362,9 +3459,9 @@ function Hn(e) {
|
|
|
3362
3459
|
children: [/* @__PURE__ */ t("span", {
|
|
3363
3460
|
className: "core-profile-card__value",
|
|
3364
3461
|
children: X(e.value)
|
|
3365
|
-
}), e.badge ? /* @__PURE__ */ t(
|
|
3462
|
+
}), e.badge ? /* @__PURE__ */ t(zn, {
|
|
3366
3463
|
text: e.badge.text,
|
|
3367
|
-
tone:
|
|
3464
|
+
tone: R(e.badge.tone)
|
|
3368
3465
|
}) : null]
|
|
3369
3466
|
})]
|
|
3370
3467
|
}, r))]
|
|
@@ -3372,23 +3469,23 @@ function Hn(e) {
|
|
|
3372
3469
|
}
|
|
3373
3470
|
//#endregion
|
|
3374
3471
|
//#region src/core/display/KpiCardGrid/KpiCardGrid.tsx
|
|
3375
|
-
function
|
|
3472
|
+
function Kn(e) {
|
|
3376
3473
|
if (typeof e == "string") {
|
|
3377
3474
|
let t = e.trim();
|
|
3378
3475
|
return t.startsWith("+") ? "up" : t.startsWith("-") || t.startsWith("−") ? "down" : "flat";
|
|
3379
3476
|
}
|
|
3380
3477
|
return e && typeof e == "object" && typeof e.value == "number" ? e.value > 0 ? "up" : e.value < 0 ? "down" : "flat" : "flat";
|
|
3381
3478
|
}
|
|
3382
|
-
var
|
|
3479
|
+
var qn = {
|
|
3383
3480
|
up: "▲",
|
|
3384
3481
|
down: "▼",
|
|
3385
3482
|
flat: "—"
|
|
3386
|
-
},
|
|
3483
|
+
}, Jn = {
|
|
3387
3484
|
up: "success",
|
|
3388
3485
|
down: "danger",
|
|
3389
3486
|
flat: void 0
|
|
3390
3487
|
}, Z = (e) => e != null && e !== "";
|
|
3391
|
-
function
|
|
3488
|
+
function Yn(e) {
|
|
3392
3489
|
let { columns: r = 4, gap: i = "tight", minColumnWidth: a, className: o, style: s } = e, c = Array.isArray(e.cards) ? e.cards : [], l = Math.max(1, Math.min(6, Math.round(Number(r)) || 4));
|
|
3393
3490
|
return /* @__PURE__ */ t("div", {
|
|
3394
3491
|
className: _("core-kpi-card-grid", o),
|
|
@@ -3398,8 +3495,8 @@ function Kn(e) {
|
|
|
3398
3495
|
"--core-kpi-card-grid-min": typeof a == "number" && a > 0 ? `${a}px` : void 0
|
|
3399
3496
|
}, s),
|
|
3400
3497
|
children: c.map((e, r) => {
|
|
3401
|
-
let { subtitle: i, badge: a } = e, o = Z(e.tone) ?
|
|
3402
|
-
return /* @__PURE__ */ t(
|
|
3498
|
+
let { subtitle: i, badge: a } = e, o = Z(e.tone) ? R(e.tone) : void 0, s = Z(e.delta) ? Kn(e.delta) : void 0, c = s ? Jn[s] : void 0;
|
|
3499
|
+
return /* @__PURE__ */ t(Nn, {
|
|
3403
3500
|
direction: "up",
|
|
3404
3501
|
delay: r * .06,
|
|
3405
3502
|
className: "core-kpi-card-grid__item",
|
|
@@ -3412,9 +3509,9 @@ function Kn(e) {
|
|
|
3412
3509
|
children: [/* @__PURE__ */ t("div", {
|
|
3413
3510
|
className: "core-kpi-card-grid__label",
|
|
3414
3511
|
children: e.label
|
|
3415
|
-
}), a && Z(a.text) ? /* @__PURE__ */ t(
|
|
3512
|
+
}), a && Z(a.text) ? /* @__PURE__ */ t(zn, {
|
|
3416
3513
|
text: a.text,
|
|
3417
|
-
tone:
|
|
3514
|
+
tone: R(a.tone)
|
|
3418
3515
|
}) : null]
|
|
3419
3516
|
}),
|
|
3420
3517
|
/* @__PURE__ */ t("div", {
|
|
@@ -3428,7 +3525,7 @@ function Kn(e) {
|
|
|
3428
3525
|
children: [
|
|
3429
3526
|
/* @__PURE__ */ t("span", {
|
|
3430
3527
|
"aria-hidden": "true",
|
|
3431
|
-
children:
|
|
3528
|
+
children: qn[s]
|
|
3432
3529
|
}),
|
|
3433
3530
|
" ",
|
|
3434
3531
|
X(e.delta)
|
|
@@ -3446,17 +3543,17 @@ function Kn(e) {
|
|
|
3446
3543
|
}
|
|
3447
3544
|
//#endregion
|
|
3448
3545
|
//#region src/core/display/DataTable/DataTable.tsx
|
|
3449
|
-
function qn(e) {
|
|
3450
|
-
if (typeof e == "string" && e !== "" && e !== "default") return P(e);
|
|
3451
|
-
}
|
|
3452
|
-
var Jn = (e) => !!(e && typeof e == "object" && "value" in e && "format" in e), Yn = (e) => !!(e && typeof e == "object" && !Array.isArray(e) && !a(e) && "value" in e && !("format" in e));
|
|
3453
3546
|
function Xn(e) {
|
|
3454
|
-
|
|
3547
|
+
if (typeof e == "string" && e !== "" && e !== "default") return R(e);
|
|
3548
|
+
}
|
|
3549
|
+
var Zn = (e) => !!(e && typeof e == "object" && "value" in e && "format" in e), Qn = (e) => !!(e && typeof e == "object" && !Array.isArray(e) && !a(e) && "value" in e && !("format" in e));
|
|
3550
|
+
function $n(e) {
|
|
3551
|
+
return Qn(e) ? e : { value: e };
|
|
3455
3552
|
}
|
|
3456
|
-
var
|
|
3457
|
-
function
|
|
3458
|
-
if (!
|
|
3459
|
-
let n =
|
|
3553
|
+
var er = /^\d{4}-\d{2}-\d{2}$/, tr = /^\d{4}-\d{2}-\d{2}(?:[T ]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?(?:Z|[+-]\d{2}(?::?\d{2})?)?)?$/;
|
|
3554
|
+
function nr(e, t) {
|
|
3555
|
+
if (!tr.test(e)) return e;
|
|
3556
|
+
let n = er.test(e), r = new Date(n ? `${e}T00:00:00Z` : e.replace(" ", "T"));
|
|
3460
3557
|
return Number.isNaN(r.getTime()) ? e : r.toLocaleString("en-CA", {
|
|
3461
3558
|
year: "numeric",
|
|
3462
3559
|
month: "short",
|
|
@@ -3468,12 +3565,17 @@ function $n(e, t) {
|
|
|
3468
3565
|
...n ? { timeZone: "UTC" } : {}
|
|
3469
3566
|
});
|
|
3470
3567
|
}
|
|
3471
|
-
function
|
|
3472
|
-
|
|
3568
|
+
function rr(e) {
|
|
3569
|
+
if (!/^[a-z][a-z0-9]*([_-][a-z0-9]+)+$/.test(e)) return e;
|
|
3570
|
+
let t = e.replace(/[_-]+/g, " ");
|
|
3571
|
+
return t[0].toUpperCase() + t.slice(1);
|
|
3473
3572
|
}
|
|
3474
|
-
function
|
|
3573
|
+
function ir(e, t) {
|
|
3574
|
+
return typeof e == "string" && t === "raw" ? e : typeof e == "string" && t ? nr(e, t) : typeof e == "string" && !t ? X(rr(e)) : typeof e == "string" || Zn(e) ? X(e) : typeof e == "number" ? String(e) : a(e) ? e : null;
|
|
3575
|
+
}
|
|
3576
|
+
function ar({ title: e, subtitle: r, columns: i, rows: a, className: o, style: s }) {
|
|
3475
3577
|
let c = `${l()}-title`, u = Array.isArray(i) ? i : [], d = Array.isArray(a) ? a : [], f = (e) => u[e]?.align ?? (e === 0 ? "left" : "right");
|
|
3476
|
-
return /* @__PURE__ */ t(
|
|
3578
|
+
return /* @__PURE__ */ t(Nn, {
|
|
3477
3579
|
direction: "up",
|
|
3478
3580
|
children: /* @__PURE__ */ n("div", {
|
|
3479
3581
|
className: _("core-data-table", o),
|
|
@@ -3512,7 +3614,7 @@ function tr({ title: e, subtitle: r, columns: i, rows: a, className: o, style: s
|
|
|
3512
3614
|
"data-highlighted": r ? "true" : void 0,
|
|
3513
3615
|
"data-total": i ? "true" : void 0,
|
|
3514
3616
|
children: o.map((e, n) => {
|
|
3515
|
-
let r =
|
|
3617
|
+
let r = $n(e), i = Xn(r.tone), a = {
|
|
3516
3618
|
className: _("core-data-table__cell", i && "core-toned"),
|
|
3517
3619
|
"data-align": f(n),
|
|
3518
3620
|
"data-tone": i
|
|
@@ -3520,10 +3622,10 @@ function tr({ title: e, subtitle: r, columns: i, rows: a, className: o, style: s
|
|
|
3520
3622
|
return n === 0 ? /* @__PURE__ */ t("th", {
|
|
3521
3623
|
scope: "row",
|
|
3522
3624
|
...a,
|
|
3523
|
-
children:
|
|
3625
|
+
children: ir(r.value, u[n]?.format)
|
|
3524
3626
|
}, n) : /* @__PURE__ */ t("td", {
|
|
3525
3627
|
...a,
|
|
3526
|
-
children:
|
|
3628
|
+
children: ir(r.value, u[n]?.format)
|
|
3527
3629
|
}, n);
|
|
3528
3630
|
})
|
|
3529
3631
|
}, n);
|
|
@@ -3535,55 +3637,55 @@ function tr({ title: e, subtitle: r, columns: i, rows: a, className: o, style: s
|
|
|
3535
3637
|
}
|
|
3536
3638
|
//#endregion
|
|
3537
3639
|
//#region src/core/events/_shared/event.ts
|
|
3538
|
-
function
|
|
3640
|
+
function or(e, t, n) {
|
|
3539
3641
|
return e.cardComponent && typeof t == "function" ? t(e.cardComponent, {
|
|
3540
3642
|
...n,
|
|
3541
3643
|
event: e
|
|
3542
3644
|
}) ?? null : null;
|
|
3543
3645
|
}
|
|
3544
|
-
var
|
|
3646
|
+
var sr = [
|
|
3545
3647
|
"accepted",
|
|
3546
3648
|
"tentative",
|
|
3547
3649
|
"declined"
|
|
3548
|
-
],
|
|
3650
|
+
], cr = (e, t) => new Intl.DateTimeFormat(e, {
|
|
3549
3651
|
weekday: "short",
|
|
3550
3652
|
month: "short",
|
|
3551
3653
|
day: "numeric",
|
|
3552
3654
|
timeZone: t
|
|
3553
|
-
}),
|
|
3655
|
+
}), lr = (e, t) => new Intl.DateTimeFormat(e, {
|
|
3554
3656
|
hour: "numeric",
|
|
3555
3657
|
minute: "2-digit",
|
|
3556
3658
|
timeZone: t
|
|
3557
3659
|
});
|
|
3558
|
-
function
|
|
3660
|
+
function ur(e, t, n) {
|
|
3559
3661
|
if (e.startOn) {
|
|
3560
|
-
let n = /* @__PURE__ */ new Date(`${e.startOn}T00:00:00Z`), r =
|
|
3662
|
+
let n = /* @__PURE__ */ new Date(`${e.startOn}T00:00:00Z`), r = cr(t, "UTC").format(n);
|
|
3561
3663
|
if (!e.endOn) return `${r} (all day)`;
|
|
3562
3664
|
let i = /* @__PURE__ */ new Date((/* @__PURE__ */ new Date(`${e.endOn}T00:00:00Z`)).getTime() - 864e5);
|
|
3563
|
-
return i.getTime() <= n.getTime() ? `${r} (all day)` : `${r} – ${
|
|
3665
|
+
return i.getTime() <= n.getTime() ? `${r} (all day)` : `${r} – ${cr(t, "UTC").format(i)}`;
|
|
3564
3666
|
}
|
|
3565
3667
|
if (!e.startsAt) return "";
|
|
3566
3668
|
let r = new Date(e.startsAt);
|
|
3567
3669
|
if (Number.isNaN(r.getTime())) return "";
|
|
3568
|
-
let i =
|
|
3670
|
+
let i = cr(t, n).format(r), a = lr(t, n).format(r);
|
|
3569
3671
|
if (!e.endsAt) return `${i} · ${a}`;
|
|
3570
3672
|
let o = new Date(e.endsAt);
|
|
3571
|
-
return Number.isNaN(o.getTime()) || o.getTime() === r.getTime() ? `${i} · ${a}` : `${i} · ${a} – ${
|
|
3673
|
+
return Number.isNaN(o.getTime()) || o.getTime() === r.getTime() ? `${i} · ${a}` : `${i} · ${a} – ${lr(t, n).format(o)}`;
|
|
3572
3674
|
}
|
|
3573
|
-
var
|
|
3574
|
-
function
|
|
3675
|
+
var dr = () => Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC";
|
|
3676
|
+
function fr(e) {
|
|
3575
3677
|
if (!e) return;
|
|
3576
3678
|
let t = new Date(e);
|
|
3577
3679
|
return Number.isNaN(t.getTime()) ? void 0 : t.toISOString();
|
|
3578
3680
|
}
|
|
3579
|
-
function
|
|
3681
|
+
function pr() {
|
|
3580
3682
|
let e = /* @__PURE__ */ new Date();
|
|
3581
3683
|
return e.setMinutes(e.getMinutes() - e.getTimezoneOffset()), e.toISOString().slice(0, 16);
|
|
3582
3684
|
}
|
|
3583
|
-
function
|
|
3685
|
+
function mr(e) {
|
|
3584
3686
|
return e.success ? "" : e.code === "DENIED" ? "You can't do that here." : e.code === "CONFLICT" ? "Someone changed this first. Reload and try again." : e.code === "INVALID" ? e.errors || "Some details are missing or not valid." : e.errors || "Something went wrong. Try again.";
|
|
3585
3687
|
}
|
|
3586
|
-
function
|
|
3688
|
+
function hr(e, t) {
|
|
3587
3689
|
let n = typeof e == "string" ? new Date(e) : e;
|
|
3588
3690
|
return new Intl.DateTimeFormat("en-CA", {
|
|
3589
3691
|
timeZone: t,
|
|
@@ -3596,22 +3698,22 @@ function Q(e, t) {
|
|
|
3596
3698
|
let n = /* @__PURE__ */ new Date(`${e}T00:00:00Z`);
|
|
3597
3699
|
return n.setUTCDate(n.getUTCDate() + t), n.toISOString().slice(0, 10);
|
|
3598
3700
|
}
|
|
3599
|
-
function
|
|
3701
|
+
function gr(e) {
|
|
3600
3702
|
return Q(e, -(((/* @__PURE__ */ new Date(`${e}T00:00:00Z`)).getUTCDay() + 6) % 7));
|
|
3601
3703
|
}
|
|
3602
|
-
function
|
|
3704
|
+
function _r(e, t) {
|
|
3603
3705
|
if (e.startOn) {
|
|
3604
3706
|
let t = e.endOn && e.endOn > e.startOn ? e.endOn : Q(e.startOn, 1), n = [];
|
|
3605
3707
|
for (let r = e.startOn; r < t && n.length < 62; r = Q(r, 1)) n.push(r);
|
|
3606
3708
|
return n;
|
|
3607
3709
|
}
|
|
3608
|
-
return e.startsAt ? [
|
|
3710
|
+
return e.startsAt ? [hr(e.startsAt, t)] : [];
|
|
3609
3711
|
}
|
|
3610
3712
|
var $ = (e, t) => e && t ? e.split("{id}").join(encodeURIComponent(t)) : void 0;
|
|
3611
3713
|
//#endregion
|
|
3612
3714
|
//#region src/core/events/EventCard/EventCard.tsx
|
|
3613
|
-
function
|
|
3614
|
-
let { event: i, href: a, locale: o, timeZone: s, className: c, style: l } = r, u = i && typeof i == "object" ? i : { name: "" }, d =
|
|
3715
|
+
function vr(r) {
|
|
3716
|
+
let { event: i, href: a, locale: o, timeZone: s, className: c, style: l } = r, u = i && typeof i == "object" ? i : { name: "" }, d = ur(u, o, s), f = u.status && u.status !== "confirmed" ? u.status : void 0, p = /* @__PURE__ */ n(e, { children: [
|
|
3615
3717
|
/* @__PURE__ */ n("div", {
|
|
3616
3718
|
className: "core-event-card__top",
|
|
3617
3719
|
children: [u.typeName ? /* @__PURE__ */ t("span", {
|
|
@@ -3650,17 +3752,17 @@ function mr(r) {
|
|
|
3650
3752
|
}
|
|
3651
3753
|
//#endregion
|
|
3652
3754
|
//#region src/core/events/EventRespond/EventRespond.tsx
|
|
3653
|
-
var
|
|
3755
|
+
var yr = {
|
|
3654
3756
|
accepted: "Accept",
|
|
3655
3757
|
tentative: "Maybe",
|
|
3656
3758
|
declined: "Decline"
|
|
3657
3759
|
};
|
|
3658
|
-
function
|
|
3760
|
+
function br(e) {
|
|
3659
3761
|
let { actions: r, className: i, style: a } = e, [o, s] = m(e.response), [c, l] = m(!1), [u, d] = m(""), f = r?.respond, p = async (e) => {
|
|
3660
3762
|
if (!f || c) return;
|
|
3661
3763
|
l(!0), d("");
|
|
3662
3764
|
let t = await f({ response: e });
|
|
3663
|
-
l(!1), t.success ? s(e) : d(
|
|
3765
|
+
l(!1), t.success ? s(e) : d(mr(t));
|
|
3664
3766
|
};
|
|
3665
3767
|
return /* @__PURE__ */ n("div", {
|
|
3666
3768
|
className: _("core-event-respond", i),
|
|
@@ -3669,13 +3771,13 @@ function gr(e) {
|
|
|
3669
3771
|
className: "core-event-respond__choices",
|
|
3670
3772
|
role: "group",
|
|
3671
3773
|
"aria-label": "Your response",
|
|
3672
|
-
children:
|
|
3774
|
+
children: sr.map((e) => /* @__PURE__ */ t("button", {
|
|
3673
3775
|
type: "button",
|
|
3674
3776
|
className: "core-event-respond__choice",
|
|
3675
3777
|
"aria-pressed": o === e,
|
|
3676
3778
|
disabled: !f || c,
|
|
3677
3779
|
onClick: () => void p(e),
|
|
3678
|
-
children:
|
|
3780
|
+
children: yr[e]
|
|
3679
3781
|
}, e))
|
|
3680
3782
|
}), u ? /* @__PURE__ */ t("p", {
|
|
3681
3783
|
className: "core-event-respond__message",
|
|
@@ -3686,8 +3788,8 @@ function gr(e) {
|
|
|
3686
3788
|
}
|
|
3687
3789
|
//#endregion
|
|
3688
3790
|
//#region src/core/events/EventDetail/EventDetail.tsx
|
|
3689
|
-
function
|
|
3690
|
-
let { event: r, actions: i, viewerResponse: a, locale: o, timeZone: s, className: c, style: l } = e, u = r && typeof r == "object" ? r : { name: "" }, d = Array.isArray(e.notes) ? e.notes : [], f = Array.isArray(e.participants) ? e.participants : [], p =
|
|
3791
|
+
function xr(e) {
|
|
3792
|
+
let { event: r, actions: i, viewerResponse: a, locale: o, timeZone: s, className: c, style: l } = e, u = r && typeof r == "object" ? r : { name: "" }, d = Array.isArray(e.notes) ? e.notes : [], f = Array.isArray(e.participants) ? e.participants : [], p = ur(u, o, s);
|
|
3691
3793
|
return /* @__PURE__ */ n("article", {
|
|
3692
3794
|
className: _("core-event-detail", c),
|
|
3693
3795
|
"data-status": u.status,
|
|
@@ -3718,7 +3820,7 @@ function _r(e) {
|
|
|
3718
3820
|
}) : null
|
|
3719
3821
|
]
|
|
3720
3822
|
}),
|
|
3721
|
-
a === void 0 ? null : /* @__PURE__ */ t(
|
|
3823
|
+
a === void 0 ? null : /* @__PURE__ */ t(br, {
|
|
3722
3824
|
response: a,
|
|
3723
3825
|
actions: i,
|
|
3724
3826
|
className: "core-event-detail__respond"
|
|
@@ -3770,7 +3872,7 @@ function _r(e) {
|
|
|
3770
3872
|
}
|
|
3771
3873
|
//#endregion
|
|
3772
3874
|
//#region src/core/events/EventLogForm/EventLogForm.tsx
|
|
3773
|
-
var
|
|
3875
|
+
var Sr = (e) => {
|
|
3774
3876
|
let t = e?.dataSchema?.properties ?? {}, n = new Set(e?.dataSchema?.required ?? []);
|
|
3775
3877
|
return Object.entries(t).map(([e, t]) => [
|
|
3776
3878
|
e,
|
|
@@ -3778,8 +3880,8 @@ var vr = (e) => {
|
|
|
3778
3880
|
n.has(e)
|
|
3779
3881
|
]);
|
|
3780
3882
|
};
|
|
3781
|
-
function
|
|
3782
|
-
let { orgId: r, projectId: i, actions: a, onDone: o, canWriteStaffNotes: s, className: c, style: u } = e, f = Array.isArray(e.types) ? e.types : [], p = l(), [h, g] = m(e.defaultTypeId ?? f[0]?.id ?? ""), v = f.find((e) => e.id === h), y = v?.kind === "scheduled", [b, x] = m(""), [S, C] = m(
|
|
3883
|
+
function Cr(e) {
|
|
3884
|
+
let { orgId: r, projectId: i, actions: a, onDone: o, canWriteStaffNotes: s, className: c, style: u } = e, f = Array.isArray(e.types) ? e.types : [], p = l(), [h, g] = m(e.defaultTypeId ?? f[0]?.id ?? ""), v = f.find((e) => e.id === h), y = v?.kind === "scheduled", [b, x] = m(""), [S, C] = m(pr()), [w, T] = m(""), [E, D] = m(""), [O, k] = m({}), [A, j] = m(""), [M, N] = m(!!s), [P, F] = m(!1), [I, L] = m(""), R = d(() => Sr(v), [v]);
|
|
3783
3885
|
if (!f.length) return /* @__PURE__ */ t("p", {
|
|
3784
3886
|
className: _("core-event-log", "core-event-log__empty", c),
|
|
3785
3887
|
style: u,
|
|
@@ -3788,16 +3890,16 @@ function yr(e) {
|
|
|
3788
3890
|
let z = async (t) => {
|
|
3789
3891
|
if (t.preventDefault(), !a?.logEvent || P || !v) return;
|
|
3790
3892
|
F(!0), L("");
|
|
3791
|
-
let n =
|
|
3893
|
+
let n = fr(S), c = {
|
|
3792
3894
|
event_type_id: v.id,
|
|
3793
3895
|
org_id: r,
|
|
3794
3896
|
name: b.trim() || v.name,
|
|
3795
3897
|
starts_at: n,
|
|
3796
|
-
tzid:
|
|
3898
|
+
tzid: dr(),
|
|
3797
3899
|
data: O,
|
|
3798
3900
|
subjects: e.subjects ? [...e.subjects] : []
|
|
3799
3901
|
};
|
|
3800
|
-
i && (c.project_id = i), y && w && (c.ends_at =
|
|
3902
|
+
i && (c.project_id = i), y && w && (c.ends_at = fr(w)), E.trim() && (c.location = E.trim());
|
|
3801
3903
|
let l = A.trim() ? [{
|
|
3802
3904
|
body: A.trim(),
|
|
3803
3905
|
audience: s && M ? "staff" : "shared"
|
|
@@ -3805,7 +3907,7 @@ function yr(e) {
|
|
|
3805
3907
|
event: c,
|
|
3806
3908
|
notes: l
|
|
3807
3909
|
} : { event: c });
|
|
3808
|
-
F(!1), u.success ? (x(""), j(""), k({}), o?.(u)) : L(
|
|
3910
|
+
F(!1), u.success ? (x(""), j(""), k({}), o?.(u)) : L(mr(u));
|
|
3809
3911
|
}, B = (e, t) => k((n) => ({
|
|
3810
3912
|
...n,
|
|
3811
3913
|
[e]: t
|
|
@@ -3960,15 +4062,15 @@ function yr(e) {
|
|
|
3960
4062
|
}
|
|
3961
4063
|
//#endregion
|
|
3962
4064
|
//#region src/core/events/EventSchedule/EventSchedule.tsx
|
|
3963
|
-
var
|
|
4065
|
+
var wr = (e, t) => new Intl.DateTimeFormat(t, {
|
|
3964
4066
|
weekday: "short",
|
|
3965
4067
|
month: "short",
|
|
3966
4068
|
day: "numeric",
|
|
3967
4069
|
timeZone: "UTC"
|
|
3968
4070
|
}).format(/* @__PURE__ */ new Date(`${e}T00:00:00Z`));
|
|
3969
|
-
function
|
|
3970
|
-
let { view: r = "week", weekParam: i = "week", eventHref: a = "?panel=event:{id}", locale: o, timeZone: s, renderComponent: c, className: l, style: u } = e, d = Array.isArray(e.occurrences) ? e.occurrences : [], f =
|
|
3971
|
-
for (let e of d) for (let t of
|
|
4071
|
+
function Tr(e) {
|
|
4072
|
+
let { view: r = "week", weekParam: i = "week", eventHref: a = "?panel=event:{id}", locale: o, timeZone: s, renderComponent: c, className: l, style: u } = e, d = Array.isArray(e.occurrences) ? e.occurrences : [], f = hr(/* @__PURE__ */ new Date(), s), p = gr(/^\d{4}-\d{2}-\d{2}$/.test(e.weekOf ?? "") ? e.weekOf : f), m = Array.from({ length: 7 }, (e, t) => Q(p, t)), h = new Map(m.map((e) => [e, []]));
|
|
4073
|
+
for (let e of d) for (let t of _r(e, s)) h.get(t)?.push(e);
|
|
3972
4074
|
for (let e of h.values()) e.sort((e, t) => +!e.startOn - !t.startOn || (e.startsAt ?? "").localeCompare(t.startsAt ?? ""));
|
|
3973
4075
|
let g = r === "agenda" ? m.filter((e) => h.get(e).length) : m;
|
|
3974
4076
|
return /* @__PURE__ */ n("section", {
|
|
@@ -3988,7 +4090,7 @@ function xr(e) {
|
|
|
3988
4090
|
}),
|
|
3989
4091
|
/* @__PURE__ */ t("span", {
|
|
3990
4092
|
className: "core-event-schedule__range",
|
|
3991
|
-
children: `${
|
|
4093
|
+
children: `${wr(m[0], o)} – ${wr(m[6], o)}`
|
|
3992
4094
|
}),
|
|
3993
4095
|
/* @__PURE__ */ t("a", {
|
|
3994
4096
|
className: "core-event-schedule__step",
|
|
@@ -4011,14 +4113,14 @@ function xr(e) {
|
|
|
4011
4113
|
"data-today": e === f || void 0,
|
|
4012
4114
|
children: [/* @__PURE__ */ t("h3", {
|
|
4013
4115
|
className: "core-event-schedule__date",
|
|
4014
|
-
children:
|
|
4116
|
+
children: wr(e, o)
|
|
4015
4117
|
}), r.length ? /* @__PURE__ */ t("ul", {
|
|
4016
4118
|
className: "core-event-schedule__events",
|
|
4017
|
-
children: r.map((e, n) => /* @__PURE__ */ t("li", { children:
|
|
4119
|
+
children: r.map((e, n) => /* @__PURE__ */ t("li", { children: or(e, c, {
|
|
4018
4120
|
href: $(a, e.id),
|
|
4019
4121
|
locale: o,
|
|
4020
4122
|
timeZone: s
|
|
4021
|
-
}) ?? /* @__PURE__ */ t(
|
|
4123
|
+
}) ?? /* @__PURE__ */ t(vr, {
|
|
4022
4124
|
event: e,
|
|
4023
4125
|
href: $(a, e.id),
|
|
4024
4126
|
locale: o,
|
|
@@ -4036,17 +4138,17 @@ function xr(e) {
|
|
|
4036
4138
|
}
|
|
4037
4139
|
//#endregion
|
|
4038
4140
|
//#region src/core/events/EventTimeline/EventTimeline.tsx
|
|
4039
|
-
var
|
|
4141
|
+
var Er = (e, t) => new Intl.DateTimeFormat(t, {
|
|
4040
4142
|
weekday: "long",
|
|
4041
4143
|
month: "long",
|
|
4042
4144
|
day: "numeric",
|
|
4043
4145
|
year: "numeric",
|
|
4044
4146
|
timeZone: "UTC"
|
|
4045
4147
|
}).format(/* @__PURE__ */ new Date(`${e}T00:00:00Z`));
|
|
4046
|
-
function
|
|
4148
|
+
function Dr(e) {
|
|
4047
4149
|
let { eventHref: r = "?panel=event:{id}", emptyText: i = "No activity yet.", locale: a, timeZone: o, renderComponent: s, className: c, style: l } = e, u = [...(Array.isArray(e.items) ? e.items : []).filter((e) => e && !Number.isNaN(new Date(e.at).getTime()))].sort((e, t) => new Date(t.at).getTime() - new Date(e.at).getTime()), d = [];
|
|
4048
4150
|
for (let e of u) {
|
|
4049
|
-
let t =
|
|
4151
|
+
let t = hr(e.at, o), n = d[d.length - 1];
|
|
4050
4152
|
n && n[0] === t ? n[1].push(e) : d.push([t, [e]]);
|
|
4051
4153
|
}
|
|
4052
4154
|
let f = new Intl.DateTimeFormat(a, {
|
|
@@ -4065,7 +4167,7 @@ function Cr(e) {
|
|
|
4065
4167
|
className: "core-event-timeline__day",
|
|
4066
4168
|
children: [/* @__PURE__ */ t("h3", {
|
|
4067
4169
|
className: "core-event-timeline__date",
|
|
4068
|
-
children:
|
|
4170
|
+
children: Er(e, a)
|
|
4069
4171
|
}), /* @__PURE__ */ t("ol", {
|
|
4070
4172
|
className: "core-event-timeline__items",
|
|
4071
4173
|
children: i.map((e, i) => /* @__PURE__ */ n("li", {
|
|
@@ -4088,11 +4190,11 @@ function Cr(e) {
|
|
|
4088
4190
|
children: e.actor
|
|
4089
4191
|
}) : null
|
|
4090
4192
|
]
|
|
4091
|
-
}), e.event ?
|
|
4193
|
+
}), e.event ? or(e.event, s, {
|
|
4092
4194
|
href: $(r, e.event.id),
|
|
4093
4195
|
locale: a,
|
|
4094
4196
|
timeZone: o
|
|
4095
|
-
}) ?? /* @__PURE__ */ t(
|
|
4197
|
+
}) ?? /* @__PURE__ */ t(vr, {
|
|
4096
4198
|
event: e.event,
|
|
4097
4199
|
href: $(r, e.event.id),
|
|
4098
4200
|
locale: a,
|
|
@@ -4104,6 +4206,6 @@ function Cr(e) {
|
|
|
4104
4206
|
});
|
|
4105
4207
|
}
|
|
4106
4208
|
//#endregion
|
|
4107
|
-
export {
|
|
4209
|
+
export { Kt as ANSWER_COLUMN_PX, Le as Accordion, qt as AnswerRows, bt as Aside, ae as Avatar, dt as BLOCK_KINDS, wn as BLOCK_SCHEMAS, we as Badge, b as Box, Me as Button, Re as Card, x as Center, de as Checkbox, fe as CheckboxGroup, Ne as Chip, oe as Code, Be as Columns, Zt as ComparisonBars, S as Container, _n as Contents, tt as DEFAULT_PROFILE_ID, ar as DataTable, pe as DateRange, Ct as Definition, In as DisclaimerBlock, He as Disclosure, C as Divider, xn as DocumentBlocks, Lt as DocumentLabel, Cn as DocumentSection, hn as DocumentShell, Wt as DocumentTable, Te as EmptyState, vr as EventCard, xr as EventDetail, Cr as EventLogForm, br as EventRespond, Tr as EventSchedule, Dr as EventTimeline, yn as ExecutionBlock, V as Eyebrow, Ft as Figure, he as FileField, Pt as Footnote, H as FormField, Ue as Grid, ce as Heading, w as Hide, Fn as HighlightBox, Pe as IconButton, T as Inline, Yn as KpiCardGrid, Fe as Link, M as ListRow, un as Masthead, kt as Math, fn as MetaRail, en as NextSteps, nn as Notes, De as Notice, Wn as OptionCard, Ge as PAGINATOR_BINDINGS, It as PageBreak, N as PageFrame, te as PageHead, Gn as ProfileCard, Oe as Progress, xt as Prose, St as Quote, ge as RadioGroup, Ut as Reference, We as Repeat, Gt as RowList, ne as RuleSection, mn as RunningFooter, ye as SearchField, Pn as SectionHeader, Ie as SegmentedControl, be as Select, E as Show, ke as Skeleton, an as SkippedSection, xe as Slider, D as Spacer, Ae as Spinner, Ve as Split, O as Stack, An as Stat, jn as StatGroup, Rn as StatStrip, Se as Switch, I as TONES, sn as TalkItThrough, ue as Text, Ce as TextArea, ve as TextField, je as Tooltip, re as UnderlinedAction, cn as WRITE_HEIGHT_PX, tn as WRITE_LINE_HEIGHT_PX, ln as WriteInField, _ as cx, et as documentProfiles, ur as eventWhen, me as fileSize, Yt as formatValue, ie as initialsOf, B as inkToneOf, v as length, ut as profileCss, Ze as profileIds, ct as profileTokens, Xe as registerProfile, X as renderFormatted, Qe as resolveProfile, $e as resolvedProfiles, _e as toNumber, R as toneOf, or as typeCard, y as vars };
|
|
4108
4210
|
|
|
4109
4211
|
//# sourceMappingURL=index.js.map
|