@alfadocs/ui-kit-debug 1.50.0 → 1.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{calendar-zpE9qTM4.js → calendar-E6Yu4lzC.js} +47 -44
- package/dist/_chunks/calendar-E6Yu4lzC.js.map +1 -0
- package/dist/_chunks/{calendar-event-card-DplPh1wv.js → calendar-event-card-DyFSIehr.js} +148 -145
- package/dist/_chunks/{calendar-event-card-DplPh1wv.js.map → calendar-event-card-DyFSIehr.js.map} +1 -1
- package/dist/_chunks/{calendar-workspace-CWRH4x15.js → calendar-workspace-DjbGFjg1.js} +2724 -2717
- package/dist/_chunks/{calendar-workspace-CWRH4x15.js.map → calendar-workspace-DjbGFjg1.js.map} +1 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/components/calendar/calendar.d.ts +6 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/calendar-event-card.d.ts +6 -0
- package/dist/components/calendar-event-card/calendar-event-card.d.ts.map +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/index.js +3 -3
- package/dist/patterns/calendar/calendar.surface.d.ts.map +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/package.json +1 -1
- package/dist/_chunks/calendar-zpE9qTM4.js.map +0 -1
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { jsx as a, jsxs as p, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useTranslation as
|
|
1
|
+
import { jsx as a, jsxs as p, Fragment as C } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as ne } from "react";
|
|
3
|
+
import { useTranslation as ae } from "react-i18next";
|
|
4
4
|
import { c as s } from "./index-D2ZczOXr.js";
|
|
5
|
-
import { U as
|
|
6
|
-
import { C as
|
|
7
|
-
import { S as
|
|
8
|
-
import { C as
|
|
9
|
-
import { T as
|
|
10
|
-
import { H as
|
|
11
|
-
import { E as
|
|
12
|
-
import { G as
|
|
13
|
-
import { V as
|
|
14
|
-
import { R as
|
|
15
|
-
import { C as
|
|
16
|
-
import { E as
|
|
17
|
-
function
|
|
5
|
+
import { U as re, B as de, T as se } from "./user-x-DYszNtIg.js";
|
|
6
|
+
import { C as te } from "./check-DrFSN__t.js";
|
|
7
|
+
import { S as ie } from "./stethoscope-sZXGC43m.js";
|
|
8
|
+
import { C as le } from "./clock-Drd4Wtis.js";
|
|
9
|
+
import { T as ce } from "./triangle-alert-CBnO6nq_.js";
|
|
10
|
+
import { H as oe } from "./heart-pulse-BCppJyN2.js";
|
|
11
|
+
import { E as ve } from "./euro-Dsuz4ixO.js";
|
|
12
|
+
import { G as me } from "./globe-sHBW1JN5.js";
|
|
13
|
+
import { V as he } from "./video-BheNGvsu.js";
|
|
14
|
+
import { R as pe } from "./repeat-CvQa5rZt.js";
|
|
15
|
+
import { C as fe } from "./clipboard-check-BeAGxDVT.js";
|
|
16
|
+
import { E as ue } from "./eye-off-C_4xkbRP.js";
|
|
17
|
+
function ge(t) {
|
|
18
18
|
if (typeof t != "string") return null;
|
|
19
19
|
const d = t.trim();
|
|
20
20
|
if (!d.startsWith("#")) return null;
|
|
21
21
|
const n = d.slice(1);
|
|
22
|
-
let e, i,
|
|
22
|
+
let e, i, l;
|
|
23
23
|
if (n.length === 3) {
|
|
24
24
|
if (!/^[0-9a-f]{3}$/i.test(n)) return null;
|
|
25
|
-
e = parseInt(n[0] + n[0], 16), i = parseInt(n[1] + n[1], 16),
|
|
25
|
+
e = parseInt(n[0] + n[0], 16), i = parseInt(n[1] + n[1], 16), l = parseInt(n[2] + n[2], 16);
|
|
26
26
|
} else if (n.length === 6) {
|
|
27
27
|
if (!/^[0-9a-f]{6}$/i.test(n)) return null;
|
|
28
|
-
e = parseInt(n.slice(0, 2), 16), i = parseInt(n.slice(2, 4), 16),
|
|
28
|
+
e = parseInt(n.slice(0, 2), 16), i = parseInt(n.slice(2, 4), 16), l = parseInt(n.slice(4, 6), 16);
|
|
29
29
|
} else
|
|
30
30
|
return null;
|
|
31
|
-
return [e / 255, i / 255,
|
|
31
|
+
return [e / 255, i / 255, l / 255];
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function we([t, d, n]) {
|
|
34
34
|
const e = (i) => i <= 0.03928 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
|
|
35
35
|
return 0.2126 * e(t) + 0.7152 * e(d) + 0.0722 * e(n);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function dn(t, d, n) {
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const d =
|
|
41
|
-
return d ?
|
|
39
|
+
function be(t) {
|
|
40
|
+
const d = ge(t);
|
|
41
|
+
return d ? we(d) > 0.1791 ? "on-light" : "on-dark" : null;
|
|
42
42
|
}
|
|
43
|
-
const
|
|
44
|
-
confirmed:
|
|
45
|
-
waiting:
|
|
46
|
-
in_care:
|
|
47
|
-
done:
|
|
48
|
-
cancelled:
|
|
49
|
-
absent:
|
|
50
|
-
},
|
|
43
|
+
const xe = {
|
|
44
|
+
confirmed: se,
|
|
45
|
+
waiting: le,
|
|
46
|
+
in_care: ie,
|
|
47
|
+
done: te,
|
|
48
|
+
cancelled: de,
|
|
49
|
+
absent: re
|
|
50
|
+
}, ye = "ds:shrink-0 ds:items-center ds:justify-center ds:rounded-[var(--radius-full)] ds:bg-[color:var(--card)] ds:border ds:border-[color:var(--border)] ds:shadow-[var(--shadow-sm)]", ke = "ds:inline-block ds:h-3 ds:w-[6ch] ds:align-middle ds:rounded-[var(--radius-sm)] ds:bg-[var(--muted)] ds:animate-[skeleton-pulse_calc(var(--animation-duration)*8)_ease-in-out_infinite] ds:motion-reduce:animate-none ds:forced-colors:bg-[GrayText] ds:forced-colors:outline ds:forced-colors:outline-1 ds:forced-colors:outline-[CanvasText] ds:forced-colors:animate-none", _e = {
|
|
51
51
|
success: "ds:text-[color:var(--success-foreground)]",
|
|
52
52
|
info: "ds:text-[color:var(--info-foreground)]",
|
|
53
53
|
warning: "ds:text-[color:var(--warning-foreground)]",
|
|
54
54
|
error: "ds:text-[color:var(--error-foreground)]",
|
|
55
55
|
// Same AA-clearing accent mix Badge's accentSoft uses for its ink.
|
|
56
56
|
accent: "ds:text-[color:color-mix(in_srgb,var(--accent)_40%,var(--foreground))]"
|
|
57
|
-
},
|
|
57
|
+
}, Se = {
|
|
58
58
|
confirmed: "success",
|
|
59
59
|
waiting: "info",
|
|
60
60
|
in_care: "accent",
|
|
61
61
|
done: "success",
|
|
62
62
|
cancelled: "error",
|
|
63
63
|
absent: "warning"
|
|
64
|
-
},
|
|
64
|
+
}, K = {
|
|
65
65
|
confirmed: "calendar.status.confirmed",
|
|
66
66
|
waiting: "calendar.status.waiting",
|
|
67
67
|
in_care: "calendar.status.inCare",
|
|
@@ -71,41 +71,41 @@ const be = {
|
|
|
71
71
|
}, Ne = [
|
|
72
72
|
{
|
|
73
73
|
field: "hasUnassignedPatient",
|
|
74
|
-
Icon:
|
|
74
|
+
Icon: ce,
|
|
75
75
|
labelKey: "calendarWorkspace.details.indicators.unassignedPatient",
|
|
76
76
|
tone: "warning"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
field: "hasHighlightedAnamnesis",
|
|
80
|
-
Icon:
|
|
80
|
+
Icon: oe,
|
|
81
81
|
labelKey: "calendarWorkspace.details.indicators.anamnesis",
|
|
82
82
|
tone: "accent"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
field: "hasBillableAmount",
|
|
86
|
-
Icon:
|
|
86
|
+
Icon: ve,
|
|
87
87
|
labelKey: "calendarWorkspace.details.indicators.billable",
|
|
88
88
|
tone: "warning"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
field: "isBookedOnline",
|
|
92
|
-
Icon:
|
|
92
|
+
Icon: me,
|
|
93
93
|
labelKey: "calendarWorkspace.details.indicators.bookedOnline",
|
|
94
94
|
tone: "info"
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
field: "isTelehealth",
|
|
98
|
-
Icon:
|
|
98
|
+
Icon: he,
|
|
99
99
|
labelKey: "calendarWorkspace.details.indicators.telehealth",
|
|
100
100
|
tone: "info"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
field: "isRecurring",
|
|
104
|
-
Icon:
|
|
104
|
+
Icon: pe,
|
|
105
105
|
labelKey: "calendarWorkspace.details.indicators.recurring",
|
|
106
106
|
tone: "info"
|
|
107
107
|
}
|
|
108
|
-
],
|
|
108
|
+
], Ie = s(
|
|
109
109
|
[
|
|
110
110
|
// FullCalendar supplies the box. The card is the `eventcard` size
|
|
111
111
|
// container: the `ds:eventcard-*` tier variants (declared in
|
|
@@ -235,7 +235,7 @@ const be = {
|
|
|
235
235
|
colorStyle: "solid"
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
),
|
|
238
|
+
), ze = [
|
|
239
239
|
"event-card-content ds:grid ds:grid-cols-[minmax(0,1fr)_auto] ds:items-start",
|
|
240
240
|
"ds:gap-x-[var(--spacing-2xs)] ds:leading-[var(--calendar-event-line-height)]",
|
|
241
241
|
// Stretch, so a secondary line is as wide as the card and a long word
|
|
@@ -243,11 +243,11 @@ const be = {
|
|
|
243
243
|
"ds:eventcard-narrow:flex ds:eventcard-narrow:flex-col ds:eventcard-narrow:items-stretch",
|
|
244
244
|
// A 15-minute compact tile: the meta size on a tight line.
|
|
245
245
|
"ds:eventcard-tiny:text-[length:var(--type-meta-size)] ds:eventcard-tiny:leading-[var(--calendar-event-compact-line-height)]"
|
|
246
|
-
].join(" "),
|
|
246
|
+
].join(" "), Ee = [
|
|
247
247
|
"event-card-heading ds:flex ds:items-baseline ds:gap-[var(--spacing-2xs)] ds:min-w-0",
|
|
248
248
|
"ds:eventcard-narrow:w-full",
|
|
249
249
|
"ds:eventcard-narrow-tall:flex-col ds:eventcard-narrow-tall:items-stretch ds:eventcard-narrow-tall:gap-0"
|
|
250
|
-
].join(" "),
|
|
250
|
+
].join(" "), je = s(
|
|
251
251
|
[
|
|
252
252
|
"event-card-name ds:min-w-0 ds:flex-1 ds:font-[var(--font-weight-semibold)]",
|
|
253
253
|
// Wrap at spaces first; break inside a word only when it cannot fit.
|
|
@@ -278,11 +278,11 @@ const be = {
|
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
|
-
),
|
|
281
|
+
), Ae = s("event-card-full-title", {
|
|
282
282
|
variants: {
|
|
283
283
|
hasShortTitle: { true: "ds:eventcard-sliver:hidden", false: "" }
|
|
284
284
|
}
|
|
285
|
-
}),
|
|
285
|
+
}), O = "event-card-kind-icon ds:inline ds:size-[1em] ds:me-[var(--spacing-2xs)] ds:align-text-bottom", Re = s(
|
|
286
286
|
"event-card-time ds:hidden ds:shrink-0 ds:whitespace-nowrap ds:text-[length:var(--type-meta-size)]",
|
|
287
287
|
{
|
|
288
288
|
variants: {
|
|
@@ -295,7 +295,7 @@ const be = {
|
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
),
|
|
298
|
+
), Ce = s("event-card-start", {
|
|
299
299
|
variants: {
|
|
300
300
|
layout: {
|
|
301
301
|
grid: "ds:eventcard-w256:hidden",
|
|
@@ -303,7 +303,7 @@ const be = {
|
|
|
303
303
|
flow: "ds:eventcard-w256:hidden"
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
}),
|
|
306
|
+
}), Ke = s("event-card-range", {
|
|
307
307
|
variants: {
|
|
308
308
|
layout: {
|
|
309
309
|
grid: "ds:hidden ds:eventcard-w256:inline",
|
|
@@ -311,7 +311,7 @@ const be = {
|
|
|
311
311
|
flow: "ds:hidden ds:eventcard-w256:inline"
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
-
}),
|
|
314
|
+
}), L = "ds:col-span-full ds:overflow-hidden ds:text-[length:var(--type-meta-size)] ds:wrap-break-word", Oe = s(`event-card-suffix ${L}`, {
|
|
315
315
|
variants: {
|
|
316
316
|
layout: {
|
|
317
317
|
grid: [
|
|
@@ -323,7 +323,7 @@ const be = {
|
|
|
323
323
|
flow: "ds:line-clamp-1 ds:eventcard-narrow:order-2"
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
|
-
}),
|
|
326
|
+
}), Te = s(`event-card-context ${L}`, {
|
|
327
327
|
variants: {
|
|
328
328
|
layout: {
|
|
329
329
|
grid: "ds:hidden ds:eventcard-narrow:order-3 ds:eventcard-context:line-clamp-1",
|
|
@@ -331,17 +331,17 @@ const be = {
|
|
|
331
331
|
flow: "ds:hidden"
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
}),
|
|
334
|
+
}), T = "ds:eventcard-narrow:absolute ds:eventcard-narrow:end-0 ds:eventcard-narrow:[inset-block-end:0] ds:eventcard-narrow:gap-0", Le = s(
|
|
335
335
|
"event-card-markers ds:flex ds:items-center ds:gap-[var(--spacing-2xs)] ds:col-[2] ds:row-[1]",
|
|
336
336
|
{
|
|
337
337
|
variants: {
|
|
338
338
|
layout: {
|
|
339
339
|
grid: [
|
|
340
|
-
|
|
340
|
+
T,
|
|
341
341
|
"ds:eventcard-narrow-h2:static ds:eventcard-narrow-h2:gap-[var(--spacing-2xs)] ds:eventcard-narrow-h2:order-1",
|
|
342
342
|
"ds:eventcard-tall:row-auto ds:eventcard-tall:col-span-full"
|
|
343
343
|
].join(" "),
|
|
344
|
-
month:
|
|
344
|
+
month: T,
|
|
345
345
|
// Lists and timelines have no height tiers, so a narrow flow card
|
|
346
346
|
// keeps its markers in the column, between name and treatment,
|
|
347
347
|
// instead of laying them over the treatment line. The row wraps so
|
|
@@ -350,8 +350,8 @@ const be = {
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
),
|
|
354
|
-
`event-card-marker ${
|
|
353
|
+
), Be = s(
|
|
354
|
+
`event-card-marker ${ye} ds:size-[1em] ds:[&_svg]:size-[0.75em] ds:eventcard-narrow:size-[0.75em] ds:eventcard-narrow-h2:size-[1em]`,
|
|
355
355
|
{
|
|
356
356
|
variants: {
|
|
357
357
|
rank: {
|
|
@@ -380,7 +380,7 @@ const be = {
|
|
|
380
380
|
}
|
|
381
381
|
]
|
|
382
382
|
}
|
|
383
|
-
),
|
|
383
|
+
), Ve = ["first", "second", "third"], We = s(
|
|
384
384
|
"event-card-more ds:text-[length:var(--type-meta-size)] ds:whitespace-nowrap",
|
|
385
385
|
{
|
|
386
386
|
variants: {
|
|
@@ -420,7 +420,7 @@ const be = {
|
|
|
420
420
|
}
|
|
421
421
|
]
|
|
422
422
|
}
|
|
423
|
-
),
|
|
423
|
+
), He = s(
|
|
424
424
|
"event-card-sliver-cue ds:hidden ds:items-center ds:text-[length:var(--type-meta-size)]",
|
|
425
425
|
{
|
|
426
426
|
variants: {
|
|
@@ -431,142 +431,145 @@ const be = {
|
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
),
|
|
434
|
+
), Me = ne(
|
|
435
435
|
({
|
|
436
436
|
title: t,
|
|
437
437
|
shortTitle: d,
|
|
438
438
|
startText: n,
|
|
439
439
|
layout: e = "grid",
|
|
440
440
|
contextLabel: i,
|
|
441
|
-
|
|
441
|
+
contextName: l,
|
|
442
|
+
suffix: w,
|
|
442
443
|
rangeText: f,
|
|
443
|
-
showTime:
|
|
444
|
-
allDay:
|
|
445
|
-
status:
|
|
444
|
+
showTime: B = !0,
|
|
445
|
+
allDay: V = !1,
|
|
446
|
+
status: c,
|
|
446
447
|
backgroundColor: o,
|
|
447
448
|
textColor: h,
|
|
448
|
-
borderColor:
|
|
449
|
-
isBookedOnline:
|
|
450
|
-
hasUnassignedPatient:
|
|
451
|
-
hasHighlightedAnamnesis:
|
|
452
|
-
hasBillableAmount:
|
|
453
|
-
isTelehealth:
|
|
454
|
-
isRecurring:
|
|
449
|
+
borderColor: b,
|
|
450
|
+
isBookedOnline: I = !1,
|
|
451
|
+
hasUnassignedPatient: W,
|
|
452
|
+
hasHighlightedAnamnesis: H,
|
|
453
|
+
hasBillableAmount: M,
|
|
454
|
+
isTelehealth: U,
|
|
455
|
+
isRecurring: D,
|
|
455
456
|
isTask: u = !1,
|
|
456
|
-
isDraft:
|
|
457
|
-
detailsPending:
|
|
458
|
-
colorStyle:
|
|
459
|
-
resourceLabel:
|
|
460
|
-
privacyMasked:
|
|
461
|
-
eventId:
|
|
462
|
-
className:
|
|
463
|
-
style:
|
|
464
|
-
"aria-label":
|
|
465
|
-
...
|
|
466
|
-
},
|
|
467
|
-
const { t: v } =
|
|
468
|
-
...
|
|
457
|
+
isDraft: x = !1,
|
|
458
|
+
detailsPending: y = !1,
|
|
459
|
+
colorStyle: G = "solid",
|
|
460
|
+
resourceLabel: $,
|
|
461
|
+
privacyMasked: z = !1,
|
|
462
|
+
eventId: F,
|
|
463
|
+
className: P,
|
|
464
|
+
style: E,
|
|
465
|
+
"aria-label": Y,
|
|
466
|
+
...q
|
|
467
|
+
}, X) => {
|
|
468
|
+
const { t: v } = ae(), m = [
|
|
469
|
+
...c ? [
|
|
469
470
|
{
|
|
470
471
|
id: "status",
|
|
471
|
-
Icon:
|
|
472
|
-
label: v(
|
|
473
|
-
tone:
|
|
472
|
+
Icon: xe[c],
|
|
473
|
+
label: v(K[c]),
|
|
474
|
+
tone: Se[c]
|
|
474
475
|
}
|
|
475
476
|
] : [],
|
|
476
477
|
...Ne.filter(
|
|
477
478
|
({ field: r }) => !!{
|
|
478
|
-
hasUnassignedPatient:
|
|
479
|
-
hasHighlightedAnamnesis:
|
|
480
|
-
hasBillableAmount:
|
|
481
|
-
isBookedOnline:
|
|
482
|
-
isTelehealth:
|
|
483
|
-
isRecurring:
|
|
479
|
+
hasUnassignedPatient: W,
|
|
480
|
+
hasHighlightedAnamnesis: H,
|
|
481
|
+
hasBillableAmount: M,
|
|
482
|
+
isBookedOnline: I,
|
|
483
|
+
isTelehealth: U,
|
|
484
|
+
isRecurring: D
|
|
484
485
|
}[r]
|
|
485
|
-
).map(({ field: r, Icon:
|
|
486
|
+
).map(({ field: r, Icon: _, labelKey: S, tone: N }) => ({
|
|
486
487
|
id: r,
|
|
487
|
-
Icon:
|
|
488
|
-
label: v(
|
|
488
|
+
Icon: _,
|
|
489
|
+
label: v(S),
|
|
489
490
|
tone: N
|
|
490
491
|
}))
|
|
491
|
-
],
|
|
492
|
+
], J = c ? v(K[c]) : void 0, Q = y ? v("calendar.eventKind.pendingDetails") : x ? v("calendar.eventKind.draft") : u ? v("calendar.eventKind.task") : void 0, Z = Y ?? [
|
|
492
493
|
t,
|
|
493
494
|
f,
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
495
|
+
w,
|
|
496
|
+
$,
|
|
497
|
+
// A blank name falls back to the visible label rather than
|
|
498
|
+
// silencing the context altogether.
|
|
499
|
+
l != null && l.trim() ? l : i,
|
|
498
500
|
J,
|
|
501
|
+
Q,
|
|
499
502
|
...m.filter((r) => r.id !== "status").map((r) => r.label)
|
|
500
|
-
].filter(Boolean).join(", "),
|
|
503
|
+
].filter(Boolean).join(", "), j = y ? "pending-details" : x ? "draft" : u ? "task" : "appointment", g = !u && !x && G === "tinted", k = !g && !h && o ? be(o) : null, A = g ? o ? { "--calendar-event-accent": o } : void 0 : o || h || b ? {
|
|
501
504
|
...o ? { "--calendar-event-bg": o } : {},
|
|
502
|
-
...h ? { "--calendar-event-text": h } :
|
|
503
|
-
...
|
|
504
|
-
} : void 0,
|
|
505
|
+
...h ? { "--calendar-event-text": h } : k === "on-light" ? { "--calendar-event-text": "var(--event-ink-on-light)" } : k === "on-dark" ? { "--calendar-event-text": "var(--event-ink-on-dark)" } : {},
|
|
506
|
+
...b ? { "--calendar-event-border": b } : {}
|
|
507
|
+
} : void 0, ee = E || A ? { ...E, ...A } : void 0, R = !!(!z && (d != null && d.trim()) && d !== t);
|
|
505
508
|
return /* @__PURE__ */ a(
|
|
506
509
|
"div",
|
|
507
510
|
{
|
|
508
|
-
ref:
|
|
511
|
+
ref: X,
|
|
509
512
|
role: "group",
|
|
510
|
-
...
|
|
511
|
-
className:
|
|
513
|
+
...q,
|
|
514
|
+
className: Ie({
|
|
512
515
|
layout: e,
|
|
513
|
-
status:
|
|
514
|
-
bookedOnline:
|
|
515
|
-
kind:
|
|
516
|
+
status: c ?? "none",
|
|
517
|
+
bookedOnline: I,
|
|
518
|
+
kind: j,
|
|
516
519
|
colorStyle: g ? "tinted" : "solid",
|
|
517
|
-
className:
|
|
520
|
+
className: P
|
|
518
521
|
}),
|
|
519
|
-
style:
|
|
520
|
-
"aria-label":
|
|
522
|
+
style: ee,
|
|
523
|
+
"aria-label": Z,
|
|
521
524
|
"data-component": "calendar-event-card",
|
|
522
|
-
"data-event-id":
|
|
523
|
-
"data-kind":
|
|
524
|
-
"data-status":
|
|
525
|
-
"data-contrast": g ? "tinted" : h ? "custom" :
|
|
526
|
-
children: /* @__PURE__ */ p("span", { className:
|
|
527
|
-
/* @__PURE__ */ p("span", { className:
|
|
525
|
+
"data-event-id": F,
|
|
526
|
+
"data-kind": j,
|
|
527
|
+
"data-status": c ?? "none",
|
|
528
|
+
"data-contrast": g ? "tinted" : h ? "custom" : k ?? "default",
|
|
529
|
+
children: /* @__PURE__ */ p("span", { className: ze, "aria-hidden": "true", children: [
|
|
530
|
+
/* @__PURE__ */ p("span", { className: Ee, children: [
|
|
528
531
|
/* @__PURE__ */ a(
|
|
529
532
|
"span",
|
|
530
533
|
{
|
|
531
|
-
className:
|
|
534
|
+
className: je({
|
|
532
535
|
layout: e,
|
|
533
536
|
hiddenMarkers: m.length > 1
|
|
534
537
|
}),
|
|
535
|
-
children:
|
|
536
|
-
u ? /* @__PURE__ */ a(
|
|
537
|
-
|
|
538
|
+
children: y ? /* @__PURE__ */ a("span", { "aria-hidden": "true", className: ke }) : /* @__PURE__ */ p(C, { children: [
|
|
539
|
+
u ? /* @__PURE__ */ a(fe, { className: O }) : null,
|
|
540
|
+
z ? /* @__PURE__ */ a(ue, { className: O }) : null,
|
|
538
541
|
/* @__PURE__ */ a(
|
|
539
542
|
"span",
|
|
540
543
|
{
|
|
541
|
-
className:
|
|
542
|
-
hasShortTitle:
|
|
544
|
+
className: Ae({
|
|
545
|
+
hasShortTitle: R
|
|
543
546
|
}),
|
|
544
547
|
children: t
|
|
545
548
|
}
|
|
546
549
|
),
|
|
547
|
-
|
|
550
|
+
R ? /* @__PURE__ */ a("span", { className: "event-card-short-title ds:hidden ds:eventcard-sliver:inline", children: d }) : null
|
|
548
551
|
] })
|
|
549
552
|
}
|
|
550
553
|
),
|
|
551
|
-
|
|
552
|
-
/* @__PURE__ */ a("span", { className:
|
|
553
|
-
/* @__PURE__ */ a("span", { className:
|
|
554
|
+
B && !V && f ? /* @__PURE__ */ a("span", { className: Re({ layout: e }), children: n ? /* @__PURE__ */ p(C, { children: [
|
|
555
|
+
/* @__PURE__ */ a("span", { className: Ce({ layout: e }), children: n }),
|
|
556
|
+
/* @__PURE__ */ a("span", { className: Ke({ layout: e }), children: f })
|
|
554
557
|
] }) : f }) : null
|
|
555
558
|
] }),
|
|
556
|
-
|
|
557
|
-
i ? /* @__PURE__ */ a("span", { className:
|
|
558
|
-
m.length > 0 ? /* @__PURE__ */ p("span", { className:
|
|
559
|
-
m.map(({ id: r, Icon:
|
|
559
|
+
w ? /* @__PURE__ */ a("span", { className: Oe({ layout: e }), children: w }) : null,
|
|
560
|
+
i ? /* @__PURE__ */ a("span", { className: Te({ layout: e }), children: i }) : null,
|
|
561
|
+
m.length > 0 ? /* @__PURE__ */ p("span", { className: Le({ layout: e }), children: [
|
|
562
|
+
m.map(({ id: r, Icon: _, tone: S }, N) => /* @__PURE__ */ a(
|
|
560
563
|
"span",
|
|
561
564
|
{
|
|
562
565
|
"data-marker": r,
|
|
563
566
|
"aria-hidden": "true",
|
|
564
|
-
className:
|
|
565
|
-
rank:
|
|
567
|
+
className: Be({
|
|
568
|
+
rank: Ve[N] ?? "rest",
|
|
566
569
|
layout: e,
|
|
567
|
-
className:
|
|
570
|
+
className: _e[S]
|
|
568
571
|
}),
|
|
569
|
-
children: /* @__PURE__ */ a(
|
|
572
|
+
children: /* @__PURE__ */ a(_, { "aria-hidden": "true" })
|
|
570
573
|
},
|
|
571
574
|
r
|
|
572
575
|
)),
|
|
@@ -574,7 +577,7 @@ const be = {
|
|
|
574
577
|
(r) => m.length > r ? /* @__PURE__ */ a(
|
|
575
578
|
"span",
|
|
576
579
|
{
|
|
577
|
-
className:
|
|
580
|
+
className: We({ capacity: r, layout: e }),
|
|
578
581
|
children: v("calendar.card.more", {
|
|
579
582
|
number: m.length - r
|
|
580
583
|
})
|
|
@@ -582,19 +585,19 @@ const be = {
|
|
|
582
585
|
r
|
|
583
586
|
) : null
|
|
584
587
|
),
|
|
585
|
-
m.length > 1 && e !== "month" ? /* @__PURE__ */ a("span", { className:
|
|
588
|
+
m.length > 1 && e !== "month" ? /* @__PURE__ */ a("span", { className: He({ layout: e }), children: "·" }) : null
|
|
586
589
|
] }) : null
|
|
587
590
|
] })
|
|
588
591
|
}
|
|
589
592
|
);
|
|
590
593
|
}
|
|
591
594
|
);
|
|
592
|
-
|
|
595
|
+
Me.displayName = "CalendarEventCard";
|
|
593
596
|
export {
|
|
594
|
-
|
|
597
|
+
Me as C,
|
|
595
598
|
Ne as E,
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
+
xe as S,
|
|
600
|
+
K as a,
|
|
601
|
+
dn as w
|
|
599
602
|
};
|
|
600
|
-
//# sourceMappingURL=calendar-event-card-
|
|
603
|
+
//# sourceMappingURL=calendar-event-card-DyFSIehr.js.map
|