@nice2dev/events 1.4.58 → 1.4.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +156 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +439 -449
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as s, jsx as e, Fragment as Ge } from "react/jsx-runtime";
|
|
2
|
-
import { NtdMove as Mn, NtdHeart as Nt, NtdTrash as De, NtdPlay as Ke, NtdImage as
|
|
3
|
-
import { NiceUpload as en, NiceTextInput as J, NiceCardGroup as Un, NiceEmpty as
|
|
4
|
-
import { useNiceTranslation as ee, NiceIcon as re, useControllableState as
|
|
2
|
+
import { NtdMove as Mn, NtdHeart as Nt, NtdTrash as De, NtdPlay as Ke, NtdImage as $n, NtdPlus as an, NtdCheck as je, NtdHelp as sn, NtdClose as Ln, NtdSearch as bt, NtdQrCode as kt, NtdMail as Rn, NtdWheelchair as Dn, NtdSend as wt, NtdGiftCard as St, NtdStar as Ct, NtdLink as xt, NtdReceipt as It, NtdCoins as Pt, NtdArrowRight as zt, NtdSkipForward as rn, NtdBarChart as At, NtdThumbsUp as cn, NtdClock as En, NtdTrophy as ln, NtdMedal as Je, NtdStop as Tt, NtdMusic as Ie, NtdMicrophone as Xe, NtdFileText as Mt, NtdSparkle as On, NtdCamera as Yn, NtdGamepad as Bn, NtdClipboardCheck as $t } from "@nice2dev/icons";
|
|
3
|
+
import { NiceUpload as en, NiceTextInput as J, NiceCardGroup as Un, NiceEmpty as Lt, NiceButton as V, NiceSegmentedControl as Vn, NiceTextArea as on, NiceToggle as Ze, NiceAvatarGroup as bn, NiceAvatar as Ve, NiceBadge as ie, NiceSelect as Pe, NiceAmountBreakdown as Rt, NiceTabs as Dt, NiceNumericInput as dn, NiceCollapse as Et, NiceZoomControl as Ot, NiceDocumentEditor as Yt, NiceProgress as Bt } from "@nice2dev/ui";
|
|
4
|
+
import { useNiceTranslation as ee, NiceIcon as re, useControllableState as Ut, clickOnActivationKey as un } from "@nice2dev/ui-core";
|
|
5
5
|
import Re, { useState as D, useRef as ye, useCallback as H, forwardRef as te, useMemo as F, useEffect as Fe } from "react";
|
|
6
|
-
function
|
|
6
|
+
function Vt(a) {
|
|
7
7
|
return a.map((i, r) => ({ item: i, index: r, key: i.order ?? r })).sort((i, r) => i.key - r.key || i.index - r.index).map((i) => i.item);
|
|
8
8
|
}
|
|
9
9
|
function kn(a, i, r) {
|
|
@@ -74,14 +74,14 @@ function Fn(a) {
|
|
|
74
74
|
);
|
|
75
75
|
return { activeId: t, overId: o, getHandleProps: v, dragging: _ };
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const Ft = ({ item: a }) => {
|
|
78
78
|
const { t: i } = ee(), [r, n] = D(!1), t = a.thumbnailUrl ?? a.url;
|
|
79
79
|
return a.type === "video" ? /* @__PURE__ */ e("div", { className: "nice-event-media__video-thumb", children: /* @__PURE__ */ e(Ke, { size: 26 }) }) : r || !t ? /* @__PURE__ */ e(
|
|
80
80
|
"div",
|
|
81
81
|
{
|
|
82
82
|
className: "nice-event-media__broken",
|
|
83
83
|
title: i("eventMedia.imageUnavailable", "Image unavailable"),
|
|
84
|
-
children: /* @__PURE__ */ e(
|
|
84
|
+
children: /* @__PURE__ */ e($n, { size: 24 })
|
|
85
85
|
}
|
|
86
86
|
) : (
|
|
87
87
|
// onError swaps in the placeholder when the file fails to load — no user interaction
|
|
@@ -96,10 +96,10 @@ const qt = ({ item: a }) => {
|
|
|
96
96
|
}
|
|
97
97
|
)
|
|
98
98
|
);
|
|
99
|
-
},
|
|
99
|
+
}, Xt = [], na = /* @__PURE__ */ te(
|
|
100
100
|
function(i, r) {
|
|
101
101
|
const { t: n } = ee(), {
|
|
102
|
-
items: t =
|
|
102
|
+
items: t = Xt,
|
|
103
103
|
onUpload: d,
|
|
104
104
|
onDelete: o,
|
|
105
105
|
onLike: u,
|
|
@@ -110,7 +110,7 @@ const qt = ({ item: a }) => {
|
|
|
110
110
|
onReorder: h,
|
|
111
111
|
className: z,
|
|
112
112
|
style: v
|
|
113
|
-
} = i, [g, P] = D(""), k = F(() =>
|
|
113
|
+
} = i, [g, P] = D(""), k = F(() => Vt(t), [t]), T = F(() => m === "all" ? k : k.filter((M) => M.type === m), [k, m]), f = !!h && m === "all", p = Fn({ items: k, onReorder: h, disabled: !f }), A = (M) => {
|
|
114
114
|
const w = M[0];
|
|
115
115
|
!w || !d || (d(w, g.trim() || void 0), P(""));
|
|
116
116
|
}, y = c === "list";
|
|
@@ -186,7 +186,7 @@ const qt = ({ item: a }) => {
|
|
|
186
186
|
children: /* @__PURE__ */ e(Mn, { size: 14 })
|
|
187
187
|
}
|
|
188
188
|
),
|
|
189
|
-
/* @__PURE__ */ e(
|
|
189
|
+
/* @__PURE__ */ e(Ft, { item: M }),
|
|
190
190
|
/* @__PURE__ */ s("div", { className: "nice-event-media__body", children: [
|
|
191
191
|
M.caption && /* @__PURE__ */ e("span", { className: "nice-event-media__caption", children: M.caption }),
|
|
192
192
|
M.uploadedByName && /* @__PURE__ */ e("span", { className: "nice-event-media__uploader", children: M.uploadedByName }),
|
|
@@ -239,7 +239,7 @@ const qt = ({ item: a }) => {
|
|
|
239
239
|
action: n,
|
|
240
240
|
className: t
|
|
241
241
|
}) => /* @__PURE__ */ e(
|
|
242
|
-
|
|
242
|
+
Lt,
|
|
243
243
|
{
|
|
244
244
|
size: "sm",
|
|
245
245
|
title: a,
|
|
@@ -248,10 +248,10 @@ const qt = ({ item: a }) => {
|
|
|
248
248
|
action: n,
|
|
249
249
|
className: t
|
|
250
250
|
}
|
|
251
|
-
),
|
|
251
|
+
), qt = [], ta = /* @__PURE__ */ te(
|
|
252
252
|
function(i, r) {
|
|
253
253
|
const { t: n } = ee(), {
|
|
254
|
-
items: t =
|
|
254
|
+
items: t = qt,
|
|
255
255
|
layout: d = "grid",
|
|
256
256
|
onReorder: o,
|
|
257
257
|
onItemAdd: u,
|
|
@@ -267,7 +267,7 @@ const qt = ({ item: a }) => {
|
|
|
267
267
|
size: k = "md",
|
|
268
268
|
className: T,
|
|
269
269
|
style: f
|
|
270
|
-
} = i, [p, A] = D(0), [y, M] = D(null), [w, N] = D(""), x = g || P,
|
|
270
|
+
} = i, [p, A] = D(0), [y, M] = D(null), [w, N] = D(""), x = g || P, Y = !!o && !x, X = Fn({ items: t, onReorder: o, disabled: !Y }), E = t.length > 0 ? Math.min(p, t.length - 1) : 0, R = t[E], q = (R == null ? void 0 : R.durationMs) ?? z;
|
|
271
271
|
Fe(() => {
|
|
272
272
|
if (!m || !v || t.length < 2)
|
|
273
273
|
return;
|
|
@@ -286,7 +286,7 @@ const qt = ({ item: a }) => {
|
|
|
286
286
|
return t.length === 0 ? /* @__PURE__ */ e("div", { ref: r, className: `nice-media-collage ${T ?? ""}`, style: f, children: /* @__PURE__ */ e(
|
|
287
287
|
Ne,
|
|
288
288
|
{
|
|
289
|
-
icon: /* @__PURE__ */ e(
|
|
289
|
+
icon: /* @__PURE__ */ e($n, { size: 28 }),
|
|
290
290
|
title: n("mediaCollage.nothingInTheCollageYet", "Nothing in the collage yet"),
|
|
291
291
|
description: n(
|
|
292
292
|
"mediaCollage.addPhotosOrVideoTo",
|
|
@@ -323,7 +323,7 @@ const qt = ({ item: a }) => {
|
|
|
323
323
|
] }),
|
|
324
324
|
/* @__PURE__ */ s("div", { className: "nice-media-collage__playbar", children: [
|
|
325
325
|
/* @__PURE__ */ e(
|
|
326
|
-
|
|
326
|
+
V,
|
|
327
327
|
{
|
|
328
328
|
size: "sm",
|
|
329
329
|
variant: "ghost",
|
|
@@ -337,7 +337,7 @@ const qt = ({ item: a }) => {
|
|
|
337
337
|
t.length
|
|
338
338
|
] }),
|
|
339
339
|
/* @__PURE__ */ e(
|
|
340
|
-
|
|
340
|
+
V,
|
|
341
341
|
{
|
|
342
342
|
size: "sm",
|
|
343
343
|
variant: "ghost",
|
|
@@ -387,7 +387,7 @@ const qt = ({ item: a }) => {
|
|
|
387
387
|
"aria-label": n("mediaCollage.collageOrder", "Collage order"),
|
|
388
388
|
"aria-busy": X.dragging,
|
|
389
389
|
children: t.map((L, j) => {
|
|
390
|
-
const W =
|
|
390
|
+
const W = Y ? X.getHandleProps(
|
|
391
391
|
L.id,
|
|
392
392
|
n("mediaCollage.moveItem", "Move {name}").replace(
|
|
393
393
|
"{name}",
|
|
@@ -460,7 +460,7 @@ const qt = ({ item: a }) => {
|
|
|
460
460
|
}
|
|
461
461
|
),
|
|
462
462
|
_ && !P && /* @__PURE__ */ e(
|
|
463
|
-
|
|
463
|
+
V,
|
|
464
464
|
{
|
|
465
465
|
size: "sm",
|
|
466
466
|
variant: "ghost",
|
|
@@ -494,11 +494,11 @@ const qt = ({ item: a }) => {
|
|
|
494
494
|
);
|
|
495
495
|
}
|
|
496
496
|
);
|
|
497
|
-
function
|
|
497
|
+
function Ye(a) {
|
|
498
498
|
const i = a.toLowerCase();
|
|
499
499
|
return ["active", "live", "published", "completed", "confirmed"].includes(i) ? "success" : ["cancelled", "canceled", "rejected", "failed"].includes(i) ? "error" : ["scheduled", "pending", "planning"].includes(i) ? "info" : ["draft", "archived"].includes(i) ? "secondary" : "warning";
|
|
500
500
|
}
|
|
501
|
-
const
|
|
501
|
+
const Wt = {
|
|
502
502
|
micro: [],
|
|
503
503
|
compact: ["details", "location", "budget"],
|
|
504
504
|
normal: ["details", "location", "schedule", "participants", "tasks", "surveys", "budget"],
|
|
@@ -514,7 +514,7 @@ const Kt = {
|
|
|
514
514
|
"documents",
|
|
515
515
|
"settings"
|
|
516
516
|
]
|
|
517
|
-
},
|
|
517
|
+
}, ia = /* @__PURE__ */ te(
|
|
518
518
|
function(i, r) {
|
|
519
519
|
var gn, vn, fn, _n, yn, Nn;
|
|
520
520
|
const { t: n } = ee(), {
|
|
@@ -541,7 +541,7 @@ const Kt = {
|
|
|
541
541
|
showSurveys: w = !0,
|
|
542
542
|
showVendors: N = !0,
|
|
543
543
|
showBudget: x = !0,
|
|
544
|
-
showDocuments:
|
|
544
|
+
showDocuments: Y = !0,
|
|
545
545
|
showSettings: X = !0,
|
|
546
546
|
editable: E = !1,
|
|
547
547
|
onSave: R,
|
|
@@ -552,10 +552,10 @@ const Kt = {
|
|
|
552
552
|
onUpdateLocation: j,
|
|
553
553
|
onAddSurvey: W,
|
|
554
554
|
onSurveyRespond: I,
|
|
555
|
-
onAddBilling:
|
|
555
|
+
onAddBilling: U,
|
|
556
556
|
className: G,
|
|
557
557
|
style: ne
|
|
558
|
-
} = i, [
|
|
558
|
+
} = i, [B, ae] = D(t.title), [Z, Ae] = D(t.description ?? ""), [oe, de] = D(t.startDate ?? ""), [be, Ee] = D(t.endDate ?? ""), [ke, ge] = D(((gn = t.location) == null ? void 0 : gn.name) ?? ""), [we, He] = D(((vn = t.location) == null ? void 0 : vn.address) ?? ""), [ve, me] = D(((fn = t.location) == null ? void 0 : fn.virtualUrl) ?? ""), [le, Te] = D(((_n = t.location) == null ? void 0 : _n.isVirtual) ?? !1), [fe, Me] = D(""), [_e, Qe] = D("single"), [Se, Ce] = D(""), [pe, $e] = D(""), [xe, $] = D(""), [O, K] = D("PLN"), Q = {
|
|
559
559
|
details: f,
|
|
560
560
|
location: p,
|
|
561
561
|
schedule: A,
|
|
@@ -564,52 +564,52 @@ const Kt = {
|
|
|
564
564
|
surveys: w,
|
|
565
565
|
vendors: N,
|
|
566
566
|
budget: x,
|
|
567
|
-
documents:
|
|
567
|
+
documents: Y,
|
|
568
568
|
settings: X
|
|
569
|
-
},
|
|
569
|
+
}, he = (z ?? Wt[h]).filter((S) => Q[S] !== !1), [Oe, Kn] = D(he[0] ?? "details"), jn = v ?? Oe, Hn = H(
|
|
570
570
|
(S) => {
|
|
571
|
-
const
|
|
572
|
-
v === void 0 && Kn(
|
|
571
|
+
const ue = S;
|
|
572
|
+
v === void 0 && Kn(ue), g == null || g(ue);
|
|
573
573
|
},
|
|
574
574
|
[v, g]
|
|
575
575
|
), Qn = H(() => {
|
|
576
576
|
L == null || L({
|
|
577
|
-
title:
|
|
577
|
+
title: B,
|
|
578
578
|
description: Z || void 0,
|
|
579
579
|
startDate: oe || void 0,
|
|
580
|
-
endDate:
|
|
580
|
+
endDate: be || void 0
|
|
581
581
|
});
|
|
582
|
-
}, [
|
|
582
|
+
}, [B, Z, oe, be, L]), Zn = H(() => {
|
|
583
583
|
j == null || j({
|
|
584
|
-
name:
|
|
585
|
-
address:
|
|
584
|
+
name: ke,
|
|
585
|
+
address: we || void 0,
|
|
586
586
|
virtualUrl: ve || void 0,
|
|
587
587
|
isVirtual: le
|
|
588
588
|
});
|
|
589
|
-
}, [
|
|
589
|
+
}, [ke, we, ve, le, j]), Jn = H(() => {
|
|
590
590
|
if (!fe.trim() || !W)
|
|
591
591
|
return;
|
|
592
|
-
const S =
|
|
593
|
-
W(fe.trim(), _e, S.length > 0 ? S : void 0), Me(""),
|
|
594
|
-
}, [fe, _e,
|
|
595
|
-
!
|
|
596
|
-
label:
|
|
597
|
-
amount: parseFloat(
|
|
592
|
+
const S = Se.split(",").map((ue) => ue.trim()).filter(Boolean);
|
|
593
|
+
W(fe.trim(), _e, S.length > 0 ? S : void 0), Me(""), Ce("");
|
|
594
|
+
}, [fe, _e, Se, W]), et = H(() => {
|
|
595
|
+
!pe.trim() || !U || (U({
|
|
596
|
+
label: pe.trim(),
|
|
597
|
+
amount: parseFloat(xe) || 0,
|
|
598
598
|
currency: O
|
|
599
|
-
}),
|
|
600
|
-
}, [
|
|
599
|
+
}), $e(""), $(""));
|
|
600
|
+
}, [pe, xe, O, U]), nt = F(
|
|
601
601
|
() => u.map((S) => ({
|
|
602
602
|
label: S.label,
|
|
603
603
|
amount: S.amount
|
|
604
604
|
})),
|
|
605
605
|
[u]
|
|
606
|
-
), tt = F(() => u.reduce((S,
|
|
606
|
+
), tt = F(() => u.reduce((S, ue) => S + ue.amount, 0), [u]), it = ((yn = u[0]) == null ? void 0 : yn.currency) ?? "PLN", at = /* @__PURE__ */ s("div", { className: "nice-event-planning__form", children: [
|
|
607
607
|
/* @__PURE__ */ e(
|
|
608
608
|
J,
|
|
609
609
|
{
|
|
610
610
|
label: n("eventPlanning.title", "Title"),
|
|
611
|
-
value:
|
|
612
|
-
onChange:
|
|
611
|
+
value: B,
|
|
612
|
+
onChange: ae,
|
|
613
613
|
readOnly: !E
|
|
614
614
|
}
|
|
615
615
|
),
|
|
@@ -618,7 +618,7 @@ const Kt = {
|
|
|
618
618
|
{
|
|
619
619
|
label: n("eventPlanning.description", "Description"),
|
|
620
620
|
value: Z,
|
|
621
|
-
onChange:
|
|
621
|
+
onChange: Ae,
|
|
622
622
|
readOnly: !E,
|
|
623
623
|
rows: 3
|
|
624
624
|
}
|
|
@@ -632,7 +632,7 @@ const Kt = {
|
|
|
632
632
|
className: "nice-input",
|
|
633
633
|
type: "datetime-local",
|
|
634
634
|
value: oe,
|
|
635
|
-
onChange: (S) =>
|
|
635
|
+
onChange: (S) => de(S.target.value),
|
|
636
636
|
readOnly: !E
|
|
637
637
|
}
|
|
638
638
|
)
|
|
@@ -644,7 +644,7 @@ const Kt = {
|
|
|
644
644
|
{
|
|
645
645
|
className: "nice-input",
|
|
646
646
|
type: "datetime-local",
|
|
647
|
-
value:
|
|
647
|
+
value: be,
|
|
648
648
|
onChange: (S) => Ee(S.target.value),
|
|
649
649
|
readOnly: !E
|
|
650
650
|
}
|
|
@@ -652,7 +652,7 @@ const Kt = {
|
|
|
652
652
|
] })
|
|
653
653
|
] }),
|
|
654
654
|
E && /* @__PURE__ */ e(
|
|
655
|
-
|
|
655
|
+
V,
|
|
656
656
|
{
|
|
657
657
|
variant: "primary",
|
|
658
658
|
leftIcon: /* @__PURE__ */ e(re, { name: "check", size: "sm" }),
|
|
@@ -674,7 +674,7 @@ const Kt = {
|
|
|
674
674
|
J,
|
|
675
675
|
{
|
|
676
676
|
label: n("eventPlanning.venueName", "Venue name"),
|
|
677
|
-
value:
|
|
677
|
+
value: ke,
|
|
678
678
|
onChange: ge,
|
|
679
679
|
readOnly: !E
|
|
680
680
|
}
|
|
@@ -684,20 +684,20 @@ const Kt = {
|
|
|
684
684
|
{
|
|
685
685
|
label: n("eventPlanning.virtualUrl", "Virtual URL"),
|
|
686
686
|
value: ve,
|
|
687
|
-
onChange:
|
|
687
|
+
onChange: me,
|
|
688
688
|
readOnly: !E
|
|
689
689
|
}
|
|
690
690
|
) : /* @__PURE__ */ e(
|
|
691
691
|
J,
|
|
692
692
|
{
|
|
693
693
|
label: n("eventPlanning.address", "Address"),
|
|
694
|
-
value:
|
|
694
|
+
value: we,
|
|
695
695
|
onChange: He,
|
|
696
696
|
readOnly: !E
|
|
697
697
|
}
|
|
698
698
|
),
|
|
699
699
|
E && /* @__PURE__ */ e(
|
|
700
|
-
|
|
700
|
+
V,
|
|
701
701
|
{
|
|
702
702
|
variant: "primary",
|
|
703
703
|
leftIcon: /* @__PURE__ */ e(re, { name: "check", size: "sm" }),
|
|
@@ -710,20 +710,20 @@ const Kt = {
|
|
|
710
710
|
/* @__PURE__ */ e("ul", { className: "nice-event-planning__participant-list", children: d.map((S) => /* @__PURE__ */ s("li", { className: "nice-event-planning__participant", children: [
|
|
711
711
|
/* @__PURE__ */ e(Ve, { name: S.name, src: S.avatarUrl, size: "sm" }),
|
|
712
712
|
/* @__PURE__ */ e("span", { className: "nice-event-planning__participant-name", children: S.name }),
|
|
713
|
-
/* @__PURE__ */ e(
|
|
713
|
+
/* @__PURE__ */ e(ie, { size: "xs", subtle: !0, variant: Ye(S.status), children: n(`participantList.status.${S.status}`, S.status) })
|
|
714
714
|
] }, S.id)) })
|
|
715
715
|
] }) }), ct = /* @__PURE__ */ s("div", { className: "nice-event-planning__form", children: [
|
|
716
716
|
o.length === 0 ? /* @__PURE__ */ e("p", { className: "nice-event-planning__empty", children: n("eventPlanning.noSurveysYet", "No surveys yet.") }) : o.map((S) => /* @__PURE__ */ s("div", { className: "nice-event-planning__survey", children: [
|
|
717
717
|
/* @__PURE__ */ e("strong", { children: S.question }),
|
|
718
718
|
" ",
|
|
719
|
-
/* @__PURE__ */ e(
|
|
720
|
-
S.options && /* @__PURE__ */ e("div", { className: "nice-event-planning__survey-options", children: S.options.map((
|
|
721
|
-
|
|
719
|
+
/* @__PURE__ */ e(ie, { size: "xs", outline: !0, variant: "info", children: n(`eventPlanning.surveyType.${S.type}`, S.type) }),
|
|
720
|
+
S.options && /* @__PURE__ */ e("div", { className: "nice-event-planning__survey-options", children: S.options.map((ue, yt) => /* @__PURE__ */ e(
|
|
721
|
+
V,
|
|
722
722
|
{
|
|
723
723
|
size: "sm",
|
|
724
724
|
variant: "outline",
|
|
725
|
-
onClick: () => I == null ? void 0 : I(S.id,
|
|
726
|
-
children:
|
|
725
|
+
onClick: () => I == null ? void 0 : I(S.id, ue),
|
|
726
|
+
children: ue
|
|
727
727
|
},
|
|
728
728
|
yt
|
|
729
729
|
)) }),
|
|
@@ -743,7 +743,7 @@ const Kt = {
|
|
|
743
743
|
}
|
|
744
744
|
),
|
|
745
745
|
/* @__PURE__ */ e(
|
|
746
|
-
|
|
746
|
+
Pe,
|
|
747
747
|
{
|
|
748
748
|
label: n("eventPlanning.type", "Type"),
|
|
749
749
|
value: _e,
|
|
@@ -760,13 +760,13 @@ const Kt = {
|
|
|
760
760
|
J,
|
|
761
761
|
{
|
|
762
762
|
label: n("eventPlanning.optionsCommaSeparated", "Options (comma-separated)"),
|
|
763
|
-
value:
|
|
764
|
-
onChange:
|
|
763
|
+
value: Se,
|
|
764
|
+
onChange: Ce,
|
|
765
765
|
placeholder: n("eventPlanning.yesNoMaybe", "Yes, No, Maybe")
|
|
766
766
|
}
|
|
767
767
|
),
|
|
768
768
|
/* @__PURE__ */ e(
|
|
769
|
-
|
|
769
|
+
V,
|
|
770
770
|
{
|
|
771
771
|
variant: "primary",
|
|
772
772
|
leftIcon: /* @__PURE__ */ e(re, { name: "plus", size: "sm" }),
|
|
@@ -778,7 +778,7 @@ const Kt = {
|
|
|
778
778
|
] })
|
|
779
779
|
] }), lt = /* @__PURE__ */ s("div", { className: "nice-event-planning__form", children: [
|
|
780
780
|
u.length === 0 ? /* @__PURE__ */ e("p", { className: "nice-event-planning__empty", children: n("eventPlanning.noBillingItemsYet", "No billing items yet.") }) : /* @__PURE__ */ e(
|
|
781
|
-
|
|
781
|
+
Rt,
|
|
782
782
|
{
|
|
783
783
|
lines: [
|
|
784
784
|
...nt,
|
|
@@ -787,13 +787,13 @@ const Kt = {
|
|
|
787
787
|
currency: it
|
|
788
788
|
}
|
|
789
789
|
),
|
|
790
|
-
E &&
|
|
790
|
+
E && U && /* @__PURE__ */ s("div", { className: "nice-event-planning__row", children: [
|
|
791
791
|
/* @__PURE__ */ e(
|
|
792
792
|
J,
|
|
793
793
|
{
|
|
794
794
|
label: n("eventPlanning.item", "Item"),
|
|
795
|
-
value:
|
|
796
|
-
onChange:
|
|
795
|
+
value: pe,
|
|
796
|
+
onChange: $e,
|
|
797
797
|
placeholder: n("eventPlanning.catering", "Catering")
|
|
798
798
|
}
|
|
799
799
|
),
|
|
@@ -801,13 +801,13 @@ const Kt = {
|
|
|
801
801
|
J,
|
|
802
802
|
{
|
|
803
803
|
label: n("eventPlanning.amount", "Amount"),
|
|
804
|
-
value:
|
|
804
|
+
value: xe,
|
|
805
805
|
onChange: $,
|
|
806
806
|
placeholder: "0.00"
|
|
807
807
|
}
|
|
808
808
|
),
|
|
809
809
|
/* @__PURE__ */ e(
|
|
810
|
-
|
|
810
|
+
Pe,
|
|
811
811
|
{
|
|
812
812
|
label: n("eventPlanning.currency", "Currency"),
|
|
813
813
|
value: O,
|
|
@@ -816,12 +816,12 @@ const Kt = {
|
|
|
816
816
|
}
|
|
817
817
|
),
|
|
818
818
|
/* @__PURE__ */ e(
|
|
819
|
-
|
|
819
|
+
V,
|
|
820
820
|
{
|
|
821
821
|
variant: "primary",
|
|
822
822
|
leftIcon: /* @__PURE__ */ e(re, { name: "plus", size: "sm" }),
|
|
823
823
|
onClick: et,
|
|
824
|
-
disabled: !
|
|
824
|
+
disabled: !pe.trim(),
|
|
825
825
|
children: n("eventPlanning.add", "Add")
|
|
826
826
|
}
|
|
827
827
|
)
|
|
@@ -856,13 +856,13 @@ const Kt = {
|
|
|
856
856
|
S.location && /* @__PURE__ */ e("span", { className: "nice-event-planning__muted", children: S.location })
|
|
857
857
|
] }, S.id)) }) }), ut = /* @__PURE__ */ e("div", { className: "nice-event-planning__list", children: c.length === 0 ? /* @__PURE__ */ e("p", { className: "nice-event-planning__empty", children: n("eventPlanning.noTasksYet", "No tasks yet.") }) : /* @__PURE__ */ e("ul", { className: "nice-event-planning__tasks", children: c.map((S) => /* @__PURE__ */ s("li", { className: "nice-event-planning__task", children: [
|
|
858
858
|
/* @__PURE__ */ e(Ze, { label: S.title, checked: S.done ?? !1, disabled: !E }),
|
|
859
|
-
S.assigneeName && /* @__PURE__ */ e(
|
|
859
|
+
S.assigneeName && /* @__PURE__ */ e(ie, { size: "xs", subtle: !0, variant: "info", children: S.assigneeName }),
|
|
860
860
|
S.dueDate && /* @__PURE__ */ e("span", { className: "nice-event-planning__muted", children: S.dueDate })
|
|
861
861
|
] }, S.id)) }) }), mt = /* @__PURE__ */ e("div", { className: "nice-event-planning__list", children: l.length === 0 ? /* @__PURE__ */ e("p", { className: "nice-event-planning__empty", children: n("eventPlanning.noVendorsYet", "No vendors yet.") }) : /* @__PURE__ */ e("ul", { className: "nice-event-planning__vendors", children: l.map((S) => /* @__PURE__ */ s("li", { className: "nice-event-planning__vendor", children: [
|
|
862
862
|
/* @__PURE__ */ e(re, { name: "briefcase", size: "sm" }),
|
|
863
863
|
/* @__PURE__ */ e("span", { className: "nice-event-planning__vendor-name", children: S.name }),
|
|
864
864
|
S.category && /* @__PURE__ */ e("span", { className: "nice-event-planning__muted", children: S.category }),
|
|
865
|
-
S.status && /* @__PURE__ */ e(
|
|
865
|
+
S.status && /* @__PURE__ */ e(ie, { size: "xs", subtle: !0, variant: Ye(S.status), children: n(`eventPlanning.vendorStatus.${S.status}`, S.status) }),
|
|
866
866
|
S.cost != null && /* @__PURE__ */ s("span", { className: "nice-event-planning__vendor-cost", children: [
|
|
867
867
|
S.cost,
|
|
868
868
|
" ",
|
|
@@ -871,7 +871,7 @@ const Kt = {
|
|
|
871
871
|
] }, S.id)) }) }), pt = /* @__PURE__ */ e("div", { className: "nice-event-planning__list", children: m.length === 0 ? /* @__PURE__ */ e("p", { className: "nice-event-planning__empty", children: n("eventPlanning.noDocumentsYet", "No documents yet.") }) : /* @__PURE__ */ e("ul", { className: "nice-event-planning__documents", children: m.map((S) => /* @__PURE__ */ s("li", { className: "nice-event-planning__document", children: [
|
|
872
872
|
/* @__PURE__ */ e(re, { name: "file", size: "sm" }),
|
|
873
873
|
/* @__PURE__ */ e("span", { className: "nice-event-planning__document-name", children: S.name }),
|
|
874
|
-
S.fileType && /* @__PURE__ */ e(
|
|
874
|
+
S.fileType && /* @__PURE__ */ e(ie, { size: "xs", outline: !0, variant: "secondary", children: S.fileType }),
|
|
875
875
|
S.sizeKb != null && /* @__PURE__ */ s("span", { className: "nice-event-planning__muted", children: [
|
|
876
876
|
S.sizeKb,
|
|
877
877
|
" KB"
|
|
@@ -906,7 +906,7 @@ const Kt = {
|
|
|
906
906
|
vendors: l.length || void 0,
|
|
907
907
|
budget: u.length || void 0,
|
|
908
908
|
documents: m.length || void 0
|
|
909
|
-
}, ft =
|
|
909
|
+
}, ft = he.map((S) => ({
|
|
910
910
|
id: S,
|
|
911
911
|
label: S.charAt(0).toUpperCase() + S.slice(1),
|
|
912
912
|
icon: /* @__PURE__ */ e(re, { name: gt[S], size: "sm" }),
|
|
@@ -916,22 +916,22 @@ const Kt = {
|
|
|
916
916
|
/* @__PURE__ */ s("div", { className: "nice-event-planning__toolbar-title", children: [
|
|
917
917
|
/* @__PURE__ */ e(re, { name: "calendar", size: "md" }),
|
|
918
918
|
/* @__PURE__ */ e("span", { className: "nice-event-planning__title", children: t.title }),
|
|
919
|
-
/* @__PURE__ */ e(
|
|
919
|
+
/* @__PURE__ */ e(ie, { size: "sm", variant: Ye(t.status), children: n(`eventPlanning.eventStatus.${t.status}`, t.status) })
|
|
920
920
|
] }),
|
|
921
921
|
/* @__PURE__ */ e("span", { className: "nice-event-planning__toolbar-spacer" }),
|
|
922
922
|
/* @__PURE__ */ s("div", { className: "nice-event-planning__toolbar-actions", children: [
|
|
923
923
|
R && /* @__PURE__ */ e(
|
|
924
|
-
|
|
924
|
+
V,
|
|
925
925
|
{
|
|
926
926
|
size: "sm",
|
|
927
927
|
variant: "primary",
|
|
928
928
|
leftIcon: /* @__PURE__ */ e(re, { name: "check", size: "sm" }),
|
|
929
|
-
onClick: () => R({ title:
|
|
929
|
+
onClick: () => R({ title: B, description: Z }),
|
|
930
930
|
children: n("eventPlanning.save", "Save")
|
|
931
931
|
}
|
|
932
932
|
),
|
|
933
933
|
q && /* @__PURE__ */ e(
|
|
934
|
-
|
|
934
|
+
V,
|
|
935
935
|
{
|
|
936
936
|
size: "sm",
|
|
937
937
|
variant: "success",
|
|
@@ -941,7 +941,7 @@ const Kt = {
|
|
|
941
941
|
}
|
|
942
942
|
),
|
|
943
943
|
C && /* @__PURE__ */ e(
|
|
944
|
-
|
|
944
|
+
V,
|
|
945
945
|
{
|
|
946
946
|
size: "sm",
|
|
947
947
|
variant: "ghost",
|
|
@@ -951,7 +951,7 @@ const Kt = {
|
|
|
951
951
|
}
|
|
952
952
|
),
|
|
953
953
|
b && /* @__PURE__ */ e(
|
|
954
|
-
|
|
954
|
+
V,
|
|
955
955
|
{
|
|
956
956
|
size: "sm",
|
|
957
957
|
variant: "ghost",
|
|
@@ -977,7 +977,7 @@ const Kt = {
|
|
|
977
977
|
(Nn = t.location) != null && Nn.name ? ` · ${t.location.name}` : ""
|
|
978
978
|
] })
|
|
979
979
|
] }),
|
|
980
|
-
/* @__PURE__ */ e(
|
|
980
|
+
/* @__PURE__ */ e(ie, { size: "sm", variant: Ye(t.status), children: n(`eventPlanning.eventStatus.${t.status}`, t.status) }),
|
|
981
981
|
d.length > 0 && /* @__PURE__ */ e(bn, { max: 4, size: "sm", children: d.map((S) => /* @__PURE__ */ e(Ve, { name: S.name, src: S.avatarUrl, size: "sm" }, S.id)) })
|
|
982
982
|
] })
|
|
983
983
|
}
|
|
@@ -990,7 +990,7 @@ const Kt = {
|
|
|
990
990
|
children: [
|
|
991
991
|
_t,
|
|
992
992
|
/* @__PURE__ */ e(
|
|
993
|
-
|
|
993
|
+
Dt,
|
|
994
994
|
{
|
|
995
995
|
tabs: ft,
|
|
996
996
|
activeTab: jn,
|
|
@@ -1005,7 +1005,7 @@ const Kt = {
|
|
|
1005
1005
|
);
|
|
1006
1006
|
}
|
|
1007
1007
|
);
|
|
1008
|
-
function
|
|
1008
|
+
function Gt(a) {
|
|
1009
1009
|
switch (a) {
|
|
1010
1010
|
case "confirmed":
|
|
1011
1011
|
return "success";
|
|
@@ -1032,12 +1032,12 @@ const nn = ({
|
|
|
1032
1032
|
return /* @__PURE__ */ s("li", { className: `nice-participant-row nice-participant-row--${d} ${o ?? ""}`, children: [
|
|
1033
1033
|
/* @__PURE__ */ e(Ve, { name: a.name, src: a.avatarUrl, size: d }),
|
|
1034
1034
|
/* @__PURE__ */ e("span", { className: "nice-participant-row__name", children: a.name }),
|
|
1035
|
-
i && a.role && /* @__PURE__ */ e(
|
|
1036
|
-
r && a.status && /* @__PURE__ */ e(
|
|
1035
|
+
i && a.role && /* @__PURE__ */ e(ie, { size: "xs", outline: !0, variant: "info", children: u(`participantList.role.${a.role}`, a.role) }),
|
|
1036
|
+
r && a.status && /* @__PURE__ */ e(ie, { size: "xs", subtle: !0, variant: Gt(a.status), children: u(`participantList.status.${a.status}`, a.status) }),
|
|
1037
1037
|
n && /* @__PURE__ */ e("span", { className: "nice-participant-row__meta", children: n }),
|
|
1038
1038
|
t && /* @__PURE__ */ e("span", { className: "nice-participant-row__trailing", children: t })
|
|
1039
1039
|
] });
|
|
1040
|
-
},
|
|
1040
|
+
}, Kt = /^[^\s@,;]+@[^\s@,;]+\.[^\s@,;]{2,}$/, wn = /^.*<\s*([^<>\s]+)\s*>$/;
|
|
1041
1041
|
function Xn(a) {
|
|
1042
1042
|
var d, o;
|
|
1043
1043
|
const i = [], r = [], n = /* @__PURE__ */ new Set();
|
|
@@ -1052,7 +1052,7 @@ function Xn(a) {
|
|
|
1052
1052
|
for (const m of l) {
|
|
1053
1053
|
if (!m)
|
|
1054
1054
|
continue;
|
|
1055
|
-
if (!
|
|
1055
|
+
if (!Kt.test(m)) {
|
|
1056
1056
|
r.push(m);
|
|
1057
1057
|
continue;
|
|
1058
1058
|
}
|
|
@@ -1066,7 +1066,7 @@ function Xn(a) {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
return { valid: i, invalid: r, duplicates: t };
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function jt(a, i) {
|
|
1070
1070
|
const r = new Set(a.map((t) => t.toLowerCase())), n = [...a];
|
|
1071
1071
|
for (const t of i) {
|
|
1072
1072
|
const d = t.toLowerCase();
|
|
@@ -1084,10 +1084,10 @@ function qn(a = {}) {
|
|
|
1084
1084
|
actor: { userId: i, userName: u.trim() }
|
|
1085
1085
|
};
|
|
1086
1086
|
}
|
|
1087
|
-
const
|
|
1087
|
+
const Ht = [
|
|
1088
1088
|
{ answer: "yes", label: "Yes", variant: "success", Icon: je },
|
|
1089
1089
|
{ answer: "maybe", label: "Maybe", variant: "warning", Icon: sn },
|
|
1090
|
-
{ answer: "no", label: "No", variant: "error", Icon:
|
|
1090
|
+
{ answer: "no", label: "No", variant: "error", Icon: Ln }
|
|
1091
1091
|
], Sn = /* @__PURE__ */ te(
|
|
1092
1092
|
function(i, r) {
|
|
1093
1093
|
const { t: n } = ee(), {
|
|
@@ -1139,8 +1139,8 @@ const Zt = [
|
|
|
1139
1139
|
className: "nice-rsvp-control__answers",
|
|
1140
1140
|
role: "group",
|
|
1141
1141
|
"aria-label": n("rsvpControl.yourReply", "Your reply"),
|
|
1142
|
-
children:
|
|
1143
|
-
|
|
1142
|
+
children: Ht.map(({ answer: x, label: Y, variant: X, Icon: E }) => /* @__PURE__ */ e(
|
|
1143
|
+
V,
|
|
1144
1144
|
{
|
|
1145
1145
|
size: g,
|
|
1146
1146
|
variant: t === x ? X : "outline",
|
|
@@ -1148,7 +1148,7 @@ const Zt = [
|
|
|
1148
1148
|
disabled: w || M,
|
|
1149
1149
|
"aria-pressed": t === x,
|
|
1150
1150
|
onClick: () => N(x),
|
|
1151
|
-
children: n(`rsvpControl.answer.${x}`,
|
|
1151
|
+
children: n(`rsvpControl.answer.${x}`, Y)
|
|
1152
1152
|
},
|
|
1153
1153
|
x
|
|
1154
1154
|
))
|
|
@@ -1185,7 +1185,7 @@ const Zt = [
|
|
|
1185
1185
|
}
|
|
1186
1186
|
);
|
|
1187
1187
|
}
|
|
1188
|
-
),
|
|
1188
|
+
), Qt = {
|
|
1189
1189
|
yes: "confirmed",
|
|
1190
1190
|
maybe: "invited",
|
|
1191
1191
|
no: "declined"
|
|
@@ -1193,15 +1193,15 @@ const Zt = [
|
|
|
1193
1193
|
confirmed: "yes",
|
|
1194
1194
|
"checked-in": "yes",
|
|
1195
1195
|
declined: "no"
|
|
1196
|
-
},
|
|
1196
|
+
}, Be = [
|
|
1197
1197
|
"confirmed",
|
|
1198
1198
|
"checked-in",
|
|
1199
1199
|
"invited",
|
|
1200
1200
|
"declined",
|
|
1201
1201
|
"no-show"
|
|
1202
|
-
],
|
|
1202
|
+
], Zt = [], aa = /* @__PURE__ */ te(function(i, r) {
|
|
1203
1203
|
const { t: n } = ee(), {
|
|
1204
|
-
participants: t =
|
|
1204
|
+
participants: t = Zt,
|
|
1205
1205
|
mode: d = "organizer",
|
|
1206
1206
|
currentUserId: o,
|
|
1207
1207
|
currentUserName: u,
|
|
@@ -1220,29 +1220,29 @@ const Zt = [
|
|
|
1220
1220
|
size: p = "md",
|
|
1221
1221
|
className: A,
|
|
1222
1222
|
style: y
|
|
1223
|
-
} = i, [M, w] = D(""), [N, x] = D("all"), [
|
|
1223
|
+
} = i, [M, w] = D(""), [N, x] = D("all"), [Y, X] = D(""), E = T || f, R = d === "guest", q = F(() => {
|
|
1224
1224
|
const I = { total: t.length };
|
|
1225
|
-
for (const
|
|
1226
|
-
I[
|
|
1227
|
-
for (const
|
|
1228
|
-
I[
|
|
1225
|
+
for (const U of Be)
|
|
1226
|
+
I[U] = 0;
|
|
1227
|
+
for (const U of t)
|
|
1228
|
+
I[U.status] = (I[U.status] ?? 0) + 1;
|
|
1229
1229
|
return I;
|
|
1230
1230
|
}, [t]), C = F(() => {
|
|
1231
1231
|
if (R)
|
|
1232
|
-
return t.filter((
|
|
1232
|
+
return t.filter((U) => U.userId === o || U.id === o);
|
|
1233
1233
|
const I = M.trim().toLowerCase();
|
|
1234
|
-
return t.filter((
|
|
1234
|
+
return t.filter((U) => N !== "all" && U.status !== N ? !1 : !I || U.name.toLowerCase().includes(I));
|
|
1235
1235
|
}, [t, R, o, M, N]), b = F(() => {
|
|
1236
1236
|
if (v === "none" || R)
|
|
1237
1237
|
return [{ key: "all", label: "", items: C }];
|
|
1238
1238
|
const I = /* @__PURE__ */ new Map();
|
|
1239
1239
|
for (const G of C) {
|
|
1240
|
-
const ne = v === "status" ? G.status : G.role,
|
|
1241
|
-
|
|
1240
|
+
const ne = v === "status" ? G.status : G.role, B = I.get(ne);
|
|
1241
|
+
B ? B.push(G) : I.set(ne, [G]);
|
|
1242
1242
|
}
|
|
1243
|
-
return [...I.keys()].sort((G, ne) => v !== "status" ? G.localeCompare(ne) :
|
|
1244
|
-
}, [C, v, R]), L = F(() => Xn(
|
|
1245
|
-
_ == null || _(I,
|
|
1243
|
+
return [...I.keys()].sort((G, ne) => v !== "status" ? G.localeCompare(ne) : Be.indexOf(G) - Be.indexOf(ne)).map((G) => ({ key: G, label: G, items: I.get(G) ?? [] }));
|
|
1244
|
+
}, [C, v, R]), L = F(() => Xn(Y), [Y]), j = (I) => (U) => {
|
|
1245
|
+
_ == null || _(I, Qt[U.answer], U);
|
|
1246
1246
|
}, W = () => {
|
|
1247
1247
|
!h || L.valid.length === 0 || (h(L.valid), X(""));
|
|
1248
1248
|
};
|
|
@@ -1323,14 +1323,14 @@ const Zt = [
|
|
|
1323
1323
|
}
|
|
1324
1324
|
),
|
|
1325
1325
|
/* @__PURE__ */ e(
|
|
1326
|
-
|
|
1326
|
+
Pe,
|
|
1327
1327
|
{
|
|
1328
1328
|
value: N,
|
|
1329
1329
|
onChange: (I) => x(I),
|
|
1330
1330
|
size: p,
|
|
1331
1331
|
options: [
|
|
1332
1332
|
{ value: "all", label: n("participantList.allStatuses", "All statuses") },
|
|
1333
|
-
...
|
|
1333
|
+
...Be.map((I) => ({
|
|
1334
1334
|
value: I,
|
|
1335
1335
|
label: n(`participantList.status.${I}`, I)
|
|
1336
1336
|
}))
|
|
@@ -1361,41 +1361,41 @@ const Zt = [
|
|
|
1361
1361
|
")"
|
|
1362
1362
|
] })
|
|
1363
1363
|
] }),
|
|
1364
|
-
/* @__PURE__ */ e("ul", { className: "nice-participant-list__rows", children: I.items.map((
|
|
1364
|
+
/* @__PURE__ */ e("ul", { className: "nice-participant-list__rows", children: I.items.map((U) => /* @__PURE__ */ s(
|
|
1365
1365
|
nn,
|
|
1366
1366
|
{
|
|
1367
|
-
participant:
|
|
1367
|
+
participant: U,
|
|
1368
1368
|
size: p,
|
|
1369
|
-
meta: z == null ? void 0 : z.map((G) => /* @__PURE__ */ e("span", { className: "nice-participant-list__extra", children: G.render ? G.render(
|
|
1370
|
-
|
|
1369
|
+
meta: z == null ? void 0 : z.map((G) => /* @__PURE__ */ e("span", { className: "nice-participant-list__extra", children: G.render ? G.render(U) : String(
|
|
1370
|
+
U[G.key] ?? ""
|
|
1371
1371
|
) }, G.key)),
|
|
1372
1372
|
children: [
|
|
1373
1373
|
_ && /* @__PURE__ */ e(
|
|
1374
1374
|
Sn,
|
|
1375
1375
|
{
|
|
1376
1376
|
compact: !0,
|
|
1377
|
-
value: Cn[
|
|
1378
|
-
onRespond: j(
|
|
1379
|
-
currentUserId:
|
|
1380
|
-
currentUserName:
|
|
1377
|
+
value: Cn[U.status],
|
|
1378
|
+
onRespond: j(U.id),
|
|
1379
|
+
currentUserId: U.userId,
|
|
1380
|
+
currentUserName: U.name,
|
|
1381
1381
|
disabled: E,
|
|
1382
1382
|
size: "sm"
|
|
1383
1383
|
}
|
|
1384
1384
|
),
|
|
1385
|
-
c &&
|
|
1386
|
-
|
|
1385
|
+
c && U.status !== "checked-in" && /* @__PURE__ */ e(
|
|
1386
|
+
V,
|
|
1387
1387
|
{
|
|
1388
1388
|
size: "sm",
|
|
1389
1389
|
variant: "outline",
|
|
1390
1390
|
leftIcon: /* @__PURE__ */ e(je, { size: 14 }),
|
|
1391
1391
|
disabled: E,
|
|
1392
|
-
onClick: () => c(
|
|
1392
|
+
onClick: () => c(U.id),
|
|
1393
1393
|
children: n("participantList.checkIn", "Check in")
|
|
1394
1394
|
}
|
|
1395
1395
|
)
|
|
1396
1396
|
]
|
|
1397
1397
|
},
|
|
1398
|
-
|
|
1398
|
+
U.id
|
|
1399
1399
|
)) })
|
|
1400
1400
|
] }, I.key)),
|
|
1401
1401
|
h && !f && /* @__PURE__ */ s("div", { className: "nice-participant-list__invite", children: [
|
|
@@ -1403,7 +1403,7 @@ const Zt = [
|
|
|
1403
1403
|
on,
|
|
1404
1404
|
{
|
|
1405
1405
|
label: n("participantList.inviteByEmail", "Invite by email"),
|
|
1406
|
-
value:
|
|
1406
|
+
value: Y,
|
|
1407
1407
|
onChange: X,
|
|
1408
1408
|
placeholder: n(
|
|
1409
1409
|
"participantList.pasteAddressesCommasSemicolonsOr",
|
|
@@ -1415,7 +1415,7 @@ const Zt = [
|
|
|
1415
1415
|
}
|
|
1416
1416
|
),
|
|
1417
1417
|
/* @__PURE__ */ e(
|
|
1418
|
-
|
|
1418
|
+
V,
|
|
1419
1419
|
{
|
|
1420
1420
|
variant: "primary",
|
|
1421
1421
|
size: p,
|
|
@@ -1440,7 +1440,7 @@ const Zt = [
|
|
|
1440
1440
|
] })
|
|
1441
1441
|
] })
|
|
1442
1442
|
] });
|
|
1443
|
-
}),
|
|
1443
|
+
}), Jt = {
|
|
1444
1444
|
// No minor unit at all.
|
|
1445
1445
|
BIF: 0,
|
|
1446
1446
|
CLP: 0,
|
|
@@ -1469,7 +1469,7 @@ const Zt = [
|
|
|
1469
1469
|
TND: 3
|
|
1470
1470
|
};
|
|
1471
1471
|
function mn(a) {
|
|
1472
|
-
return
|
|
1472
|
+
return Jt[a == null ? void 0 : a.toUpperCase()] ?? 2;
|
|
1473
1473
|
}
|
|
1474
1474
|
function pn(a, i) {
|
|
1475
1475
|
return Number.isFinite(a) ? Math.round(a * 10 ** mn(i)) : 0;
|
|
@@ -1478,7 +1478,7 @@ function qe(a, i) {
|
|
|
1478
1478
|
const r = mn(i);
|
|
1479
1479
|
return r === 0 ? a : a / 10 ** r;
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1481
|
+
function ei(a, i, r) {
|
|
1482
1482
|
const n = mn(i), t = qe(a, i);
|
|
1483
1483
|
try {
|
|
1484
1484
|
return new Intl.NumberFormat(r, {
|
|
@@ -1492,10 +1492,10 @@ function ti(a, i, r) {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
1494
|
function ce(a, i, r) {
|
|
1495
|
-
return
|
|
1495
|
+
return ei(pn(a, i), i, r);
|
|
1496
1496
|
}
|
|
1497
1497
|
const tn = { minX: 0, minY: 0, maxX: 0, maxY: 0 };
|
|
1498
|
-
function
|
|
1498
|
+
function ni(a, i = 0) {
|
|
1499
1499
|
if (a.length === 0)
|
|
1500
1500
|
return { ...tn };
|
|
1501
1501
|
let r = 1 / 0, n = 1 / 0, t = -1 / 0, d = -1 / 0;
|
|
@@ -1514,7 +1514,7 @@ function xn(a, i) {
|
|
|
1514
1514
|
function In(a, i) {
|
|
1515
1515
|
return a.minX <= i.maxX && a.maxX >= i.minX && a.minY <= i.maxY && a.maxY >= i.minY;
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1517
|
+
function ti(a, i, r = 0) {
|
|
1518
1518
|
const n = a.zoom || 1, t = -a.pan.x / n - r, d = -a.pan.y / n - r;
|
|
1519
1519
|
return {
|
|
1520
1520
|
minX: t,
|
|
@@ -1523,16 +1523,16 @@ function ai(a, i, r = 0) {
|
|
|
1523
1523
|
maxY: d + i.height / n + r * 2
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function ii(a, i = 12) {
|
|
1527
1527
|
const r = [], n = [], t = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
|
|
1528
1528
|
let o = null, u = 0;
|
|
1529
1529
|
for (const _ of a.sections ?? []) {
|
|
1530
1530
|
let c = null, l = 0;
|
|
1531
1531
|
(_.rows ?? []).forEach((h, z) => {
|
|
1532
|
-
const v =
|
|
1532
|
+
const v = ai(h.seats ?? []);
|
|
1533
1533
|
if (v.length === 0)
|
|
1534
1534
|
return;
|
|
1535
|
-
const g =
|
|
1535
|
+
const g = ni(v, i);
|
|
1536
1536
|
n.push({ sectionId: _.id, rowIndex: z, label: h.label, seats: v, bounds: g }), v.forEach((P, k) => {
|
|
1537
1537
|
t.set(P.id, P), d.set(P.id, { sectionId: _.id, rowIndex: z, seatIndex: k });
|
|
1538
1538
|
}), l += v.length, c = c ? xn(c, g) : g;
|
|
@@ -1549,13 +1549,13 @@ function si(a, i = 12) {
|
|
|
1549
1549
|
locationById: d
|
|
1550
1550
|
};
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1552
|
+
function ai(a) {
|
|
1553
1553
|
return [...a].sort((i, r) => i.number - r.number || i.x - r.x);
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function si(a, i) {
|
|
1556
1556
|
return a > i * 4 ? "section" : a > i ? "row" : "seat";
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function ri(a, i, r = 2500, n) {
|
|
1559
1559
|
const t = a.sections.filter((l) => In(l.bounds, i)), d = new Set(t.map((l) => l.section.id)), o = a.rows.filter(
|
|
1560
1560
|
(l) => d.has(l.sectionId) && In(l.bounds, i)
|
|
1561
1561
|
);
|
|
@@ -1563,7 +1563,7 @@ function li(a, i, r = 2500, n) {
|
|
|
1563
1563
|
for (const l of o)
|
|
1564
1564
|
for (const m of l.seats)
|
|
1565
1565
|
m.x >= i.minX && m.x <= i.maxX && m.y >= i.minY && m.y <= i.maxY && (u += 1);
|
|
1566
|
-
const _ = n ??
|
|
1566
|
+
const _ = n ?? si(u, r);
|
|
1567
1567
|
let c = [];
|
|
1568
1568
|
if (_ === "seat") {
|
|
1569
1569
|
c = [];
|
|
@@ -1579,7 +1579,7 @@ function hn(a) {
|
|
|
1579
1579
|
if (a.status === "wheelchair" || a.status === "companion")
|
|
1580
1580
|
return a.status;
|
|
1581
1581
|
}
|
|
1582
|
-
function
|
|
1582
|
+
function ze(a, i) {
|
|
1583
1583
|
const r = (i == null ? void 0 : i[a.id]) ?? a.status;
|
|
1584
1584
|
return r === "wheelchair" || r === "companion" ? "available" : r;
|
|
1585
1585
|
}
|
|
@@ -1591,24 +1591,24 @@ function Pn(a, i, r) {
|
|
|
1591
1591
|
currency: r.currency
|
|
1592
1592
|
};
|
|
1593
1593
|
}
|
|
1594
|
-
function
|
|
1595
|
-
return !(
|
|
1594
|
+
function ci(a, i = {}, r) {
|
|
1595
|
+
return !(ze(a, r) !== "available" || i.allowedCategories && !i.allowedCategories.includes(a.priceCategoryId));
|
|
1596
1596
|
}
|
|
1597
1597
|
function Wn(a, i = {}, r) {
|
|
1598
1598
|
const n = [];
|
|
1599
1599
|
let t = null;
|
|
1600
1600
|
return a.forEach((d, o) => {
|
|
1601
|
-
|
|
1601
|
+
ci(d, i, r) ? t ? t.seats.push(d) : t = { start: o, seats: [d] } : t && (n.push(t), t = null);
|
|
1602
1602
|
}), t && n.push(t), n;
|
|
1603
1603
|
}
|
|
1604
|
-
function
|
|
1604
|
+
function li(a, i, r = {}, n) {
|
|
1605
1605
|
const t = r.maxSeats ?? 8;
|
|
1606
1606
|
if (a.length > t)
|
|
1607
1607
|
return { ok: !1, reason: "max-seats" };
|
|
1608
1608
|
for (const o of a) {
|
|
1609
1609
|
const u = i.seatById.get(o);
|
|
1610
1610
|
if (u) {
|
|
1611
|
-
if (
|
|
1611
|
+
if (ze(u, n) !== "available")
|
|
1612
1612
|
return { ok: !1, reason: "unavailable", seatId: o };
|
|
1613
1613
|
if (r.allowedCategories && !r.allowedCategories.includes(u.priceCategoryId))
|
|
1614
1614
|
return { ok: !1, reason: "category-not-allowed", seatId: o };
|
|
@@ -1650,13 +1650,13 @@ function di(a, i, r = {}, n) {
|
|
|
1650
1650
|
}
|
|
1651
1651
|
return { ok: !0 };
|
|
1652
1652
|
}
|
|
1653
|
-
function
|
|
1653
|
+
function oi(a, i, r, n = {}, t) {
|
|
1654
1654
|
if (a.includes(i))
|
|
1655
1655
|
return { selected: a.filter((u) => u !== i) };
|
|
1656
|
-
const d = [...a, i], o =
|
|
1656
|
+
const d = [...a, i], o = li(d, r, n, t);
|
|
1657
1657
|
return o.ok ? { selected: d } : { rejected: o.reason ?? "not-adjacent" };
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1659
|
+
function di(a, i, r = {}, n = {}, t) {
|
|
1660
1660
|
if (i <= 0)
|
|
1661
1661
|
return [];
|
|
1662
1662
|
const d = n.categoryId ? { ...r, allowedCategories: [n.categoryId] } : r;
|
|
@@ -1676,7 +1676,7 @@ function mi(a, i, r = {}, n = {}, t) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
return (o == null ? void 0 : o.ids) ?? [];
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1679
|
+
function ui(a, i, r) {
|
|
1680
1680
|
var l, m, h, z;
|
|
1681
1681
|
const n = a.locationById.get(i);
|
|
1682
1682
|
if (!n)
|
|
@@ -1706,7 +1706,7 @@ function pi(a, i, r) {
|
|
|
1706
1706
|
}
|
|
1707
1707
|
return (_ == null ? void 0 : _.id) ?? null;
|
|
1708
1708
|
}
|
|
1709
|
-
function
|
|
1709
|
+
function mi(a, i, r) {
|
|
1710
1710
|
var _, c, l;
|
|
1711
1711
|
const n = a.sections.filter((m) => m.seatCount > 0);
|
|
1712
1712
|
if (n.length === 0)
|
|
@@ -1714,11 +1714,11 @@ function hi(a, i, r) {
|
|
|
1714
1714
|
const t = i ? (_ = a.locationById.get(i)) == null ? void 0 : _.sectionId : void 0, d = n.findIndex((m) => m.section.id === t), o = d < 0 ? 0 : r === "next" ? d + 1 : d - 1, u = n[o];
|
|
1715
1715
|
return u ? ((l = (c = a.rows.find((m) => m.sectionId === u.section.id)) == null ? void 0 : c.seats[0]) == null ? void 0 : l.id) ?? null : null;
|
|
1716
1716
|
}
|
|
1717
|
-
const
|
|
1718
|
-
function
|
|
1719
|
-
return a.seats.length === 0 ? 0 : a.seats.filter((n) =>
|
|
1717
|
+
const Le = 8;
|
|
1718
|
+
function pi(a, i) {
|
|
1719
|
+
return a.seats.length === 0 ? 0 : a.seats.filter((n) => ze(n, i) === "available").length / a.seats.length;
|
|
1720
1720
|
}
|
|
1721
|
-
const
|
|
1721
|
+
const hi = ({
|
|
1722
1722
|
cull: a,
|
|
1723
1723
|
selectedIds: i,
|
|
1724
1724
|
cursorId: r,
|
|
@@ -1760,7 +1760,7 @@ const vi = ({
|
|
|
1760
1760
|
}
|
|
1761
1761
|
)
|
|
1762
1762
|
] }, l.id)) }) : a.tier === "row" ? /* @__PURE__ */ e("g", { className: "nice-seating-chart__rows", children: a.rows.map((l) => {
|
|
1763
|
-
const m =
|
|
1763
|
+
const m = pi(l, n);
|
|
1764
1764
|
return /* @__PURE__ */ s("g", { children: [
|
|
1765
1765
|
/* @__PURE__ */ e(
|
|
1766
1766
|
"rect",
|
|
@@ -1793,7 +1793,7 @@ const vi = ({
|
|
|
1793
1793
|
)
|
|
1794
1794
|
] }, `${l.sectionId}-${l.rowIndex}`);
|
|
1795
1795
|
}) }) : /* @__PURE__ */ e("g", { className: "nice-seating-chart__seats", children: a.seats.map((l) => {
|
|
1796
|
-
const m =
|
|
1796
|
+
const m = ze(l, n), h = hn(l), z = i.has(l.id), v = r === l.id, g = { row: l.row, number: l.number }, P = [
|
|
1797
1797
|
"nice-seating-chart__seat",
|
|
1798
1798
|
`nice-seating-chart__seat--${m}`,
|
|
1799
1799
|
z ? "nice-seating-chart__seat--selected" : "",
|
|
@@ -1815,10 +1815,10 @@ const vi = ({
|
|
|
1815
1815
|
h ? /* @__PURE__ */ e(
|
|
1816
1816
|
"rect",
|
|
1817
1817
|
{
|
|
1818
|
-
x: l.x -
|
|
1819
|
-
y: l.y -
|
|
1820
|
-
width:
|
|
1821
|
-
height:
|
|
1818
|
+
x: l.x - Le,
|
|
1819
|
+
y: l.y - Le,
|
|
1820
|
+
width: Le * 2,
|
|
1821
|
+
height: Le * 2,
|
|
1822
1822
|
rx: 3,
|
|
1823
1823
|
className: "nice-seating-chart__seat-shape",
|
|
1824
1824
|
fill: h === "companion" ? "url(#nice-seat-companion-hatch)" : void 0
|
|
@@ -1828,7 +1828,7 @@ const vi = ({
|
|
|
1828
1828
|
{
|
|
1829
1829
|
cx: l.x,
|
|
1830
1830
|
cy: l.y,
|
|
1831
|
-
r:
|
|
1831
|
+
r: Le,
|
|
1832
1832
|
className: "nice-seating-chart__seat-shape"
|
|
1833
1833
|
}
|
|
1834
1834
|
),
|
|
@@ -1859,7 +1859,7 @@ const vi = ({
|
|
|
1859
1859
|
l.id
|
|
1860
1860
|
);
|
|
1861
1861
|
}) });
|
|
1862
|
-
},
|
|
1862
|
+
}, gi = ({
|
|
1863
1863
|
index: a,
|
|
1864
1864
|
selectedIds: i,
|
|
1865
1865
|
statusOverrides: r,
|
|
@@ -1879,7 +1879,7 @@ const vi = ({
|
|
|
1879
1879
|
[a.rows, m]
|
|
1880
1880
|
), T = k.find((p) => p.rowIndex === z) ?? k[0];
|
|
1881
1881
|
return /* @__PURE__ */ s(
|
|
1882
|
-
|
|
1882
|
+
Et,
|
|
1883
1883
|
{
|
|
1884
1884
|
trigger: c("seatListPanel.chooseWithoutMap", "Choose seats without the map"),
|
|
1885
1885
|
defaultExpanded: _,
|
|
@@ -1901,7 +1901,7 @@ const vi = ({
|
|
|
1901
1901
|
)
|
|
1902
1902
|
] }),
|
|
1903
1903
|
/* @__PURE__ */ e(
|
|
1904
|
-
|
|
1904
|
+
V,
|
|
1905
1905
|
{
|
|
1906
1906
|
size: "sm",
|
|
1907
1907
|
variant: "primary",
|
|
@@ -1915,7 +1915,7 @@ const vi = ({
|
|
|
1915
1915
|
/* @__PURE__ */ s("label", { className: "nice-seating-chart__field", children: [
|
|
1916
1916
|
/* @__PURE__ */ e("span", { children: c("seatListPanel.section", "Section") }),
|
|
1917
1917
|
/* @__PURE__ */ e(
|
|
1918
|
-
|
|
1918
|
+
Pe,
|
|
1919
1919
|
{
|
|
1920
1920
|
size: "sm",
|
|
1921
1921
|
value: m,
|
|
@@ -1933,7 +1933,7 @@ const vi = ({
|
|
|
1933
1933
|
/* @__PURE__ */ s("label", { className: "nice-seating-chart__field", children: [
|
|
1934
1934
|
/* @__PURE__ */ e("span", { children: c("seatListPanel.row", "Row") }),
|
|
1935
1935
|
/* @__PURE__ */ e(
|
|
1936
|
-
|
|
1936
|
+
Pe,
|
|
1937
1937
|
{
|
|
1938
1938
|
size: "sm",
|
|
1939
1939
|
value: String((T == null ? void 0 : T.rowIndex) ?? 0),
|
|
@@ -1948,9 +1948,9 @@ const vi = ({
|
|
|
1948
1948
|
] })
|
|
1949
1949
|
] }),
|
|
1950
1950
|
T && /* @__PURE__ */ e("ul", { className: "nice-seating-chart__seat-list", children: T.seats.map((p) => {
|
|
1951
|
-
const A =
|
|
1951
|
+
const A = ze(p, r), y = hn(p), M = i.has(p.id);
|
|
1952
1952
|
return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ s(
|
|
1953
|
-
|
|
1953
|
+
V,
|
|
1954
1954
|
{
|
|
1955
1955
|
size: "sm",
|
|
1956
1956
|
variant: M ? "primary" : "outline",
|
|
@@ -1968,12 +1968,12 @@ const vi = ({
|
|
|
1968
1968
|
]
|
|
1969
1969
|
}
|
|
1970
1970
|
);
|
|
1971
|
-
},
|
|
1972
|
-
function
|
|
1971
|
+
}, vi = { zoom: 1, pan: { x: 0, y: 0 } };
|
|
1972
|
+
function fi(a = {}) {
|
|
1973
1973
|
const {
|
|
1974
1974
|
minZoom: i = 0.1,
|
|
1975
1975
|
maxZoom: r = 10,
|
|
1976
|
-
initial: n =
|
|
1976
|
+
initial: n = vi,
|
|
1977
1977
|
viewport: t,
|
|
1978
1978
|
onViewportChange: d,
|
|
1979
1979
|
disabled: o = !1
|
|
@@ -1987,12 +1987,12 @@ function yi(a = {}) {
|
|
|
1987
1987
|
[i, r]
|
|
1988
1988
|
), k = H(
|
|
1989
1989
|
(N, x) => {
|
|
1990
|
-
const
|
|
1991
|
-
if (
|
|
1990
|
+
const Y = P(c.zoom * N);
|
|
1991
|
+
if (Y === c.zoom)
|
|
1992
1992
|
return;
|
|
1993
|
-
const X =
|
|
1993
|
+
const X = Y / c.zoom;
|
|
1994
1994
|
g({
|
|
1995
|
-
zoom:
|
|
1995
|
+
zoom: Y,
|
|
1996
1996
|
pan: {
|
|
1997
1997
|
x: x.x - (x.x - c.pan.x) * X,
|
|
1998
1998
|
y: x.y - (x.y - c.pan.y) * X
|
|
@@ -2001,15 +2001,15 @@ function yi(a = {}) {
|
|
|
2001
2001
|
},
|
|
2002
2002
|
[g, P, c]
|
|
2003
2003
|
), T = H(
|
|
2004
|
-
(N, x,
|
|
2005
|
-
const X = x ?? (
|
|
2004
|
+
(N, x, Y) => {
|
|
2005
|
+
const X = x ?? (Y ? { x: Y.width / 2, y: Y.height / 2 } : { x: 0, y: 0 });
|
|
2006
2006
|
k(N, X);
|
|
2007
2007
|
},
|
|
2008
2008
|
[k]
|
|
2009
2009
|
), f = H(
|
|
2010
|
-
(N, x,
|
|
2010
|
+
(N, x, Y = 24) => {
|
|
2011
2011
|
const X = Math.max(1, N.maxX - N.minX), E = Math.max(1, N.maxY - N.minY), R = P(
|
|
2012
|
-
Math.min((x.width -
|
|
2012
|
+
Math.min((x.width - Y * 2) / X, (x.height - Y * 2) / E)
|
|
2013
2013
|
);
|
|
2014
2014
|
g({
|
|
2015
2015
|
zoom: R,
|
|
@@ -2046,9 +2046,9 @@ function yi(a = {}) {
|
|
|
2046
2046
|
k(Math.min(2, Math.max(0.5, x)), M(N));
|
|
2047
2047
|
},
|
|
2048
2048
|
onPointerDown: (N) => {
|
|
2049
|
-
var
|
|
2049
|
+
var Y, X;
|
|
2050
2050
|
const x = M(N);
|
|
2051
|
-
if (h.current.set(N.pointerId, x), (X = (
|
|
2051
|
+
if (h.current.set(N.pointerId, x), (X = (Y = N.currentTarget).setPointerCapture) == null || X.call(Y, N.pointerId), h.current.size === 2) {
|
|
2052
2052
|
const [E, R] = [...h.current.values()];
|
|
2053
2053
|
z.current = {
|
|
2054
2054
|
distance: Math.hypot(E.x - R.x, E.y - R.y) || 1,
|
|
@@ -2068,8 +2068,8 @@ function yi(a = {}) {
|
|
|
2068
2068
|
}
|
|
2069
2069
|
if (!v.current)
|
|
2070
2070
|
return;
|
|
2071
|
-
const
|
|
2072
|
-
v.current = x, g({ zoom: c.zoom, pan: { x: c.pan.x +
|
|
2071
|
+
const Y = x.x - v.current.x, X = x.y - v.current.y;
|
|
2072
|
+
v.current = x, g({ zoom: c.zoom, pan: { x: c.pan.x + Y, y: c.pan.y + X } });
|
|
2073
2073
|
},
|
|
2074
2074
|
onPointerUp: (N) => {
|
|
2075
2075
|
h.current.delete(N.pointerId), h.current.size < 2 && (z.current = null), h.current.size === 0 && (v.current = null, m(!1));
|
|
@@ -2086,24 +2086,24 @@ function yi(a = {}) {
|
|
|
2086
2086
|
panning: l
|
|
2087
2087
|
};
|
|
2088
2088
|
}
|
|
2089
|
-
const
|
|
2089
|
+
const _i = {
|
|
2090
2090
|
"orphan-seat": "That would leave a single empty seat. Pick a different seat.",
|
|
2091
2091
|
"not-adjacent": "Seats must be next to each other.",
|
|
2092
2092
|
"max-seats": "You have selected as many seats as this order allows.",
|
|
2093
2093
|
"category-not-allowed": "That seat is not part of the selected ticket type.",
|
|
2094
2094
|
unavailable: "That seat is not available."
|
|
2095
|
-
},
|
|
2095
|
+
}, yi = {
|
|
2096
2096
|
id: "empty",
|
|
2097
2097
|
name: "",
|
|
2098
2098
|
venueId: "",
|
|
2099
2099
|
sections: [],
|
|
2100
2100
|
priceCategories: [],
|
|
2101
2101
|
totalSeats: 0
|
|
2102
|
-
},
|
|
2102
|
+
}, Ni = /* @__PURE__ */ te(
|
|
2103
2103
|
function(i, r) {
|
|
2104
|
-
var
|
|
2104
|
+
var pe, $e, xe;
|
|
2105
2105
|
const { t: n } = ee(), {
|
|
2106
|
-
chart: t =
|
|
2106
|
+
chart: t = yi,
|
|
2107
2107
|
mode: d = "select",
|
|
2108
2108
|
selection: o = {},
|
|
2109
2109
|
selectedSeatIds: u,
|
|
@@ -2125,7 +2125,7 @@ const Ni = {
|
|
|
2125
2125
|
readOnly: M = !1,
|
|
2126
2126
|
className: w,
|
|
2127
2127
|
style: N
|
|
2128
|
-
} = i, x = ye(null), [
|
|
2128
|
+
} = i, x = ye(null), [Y, X] = D({ width: 800, height: 500 }), [E, R] = D(!1), [q, C] = D(_), [b, L] = D(null), [j, W] = D(""), I = u ?? q, U = F(() => new Set(I), [I]), G = d === "select" && !y && !M && o.interactive !== !1, ne = o.maxSeats ?? 8, B = F(() => ii(t), [t]), ae = k ?? Y, Z = !!k || E;
|
|
2129
2129
|
Fe(() => {
|
|
2130
2130
|
if (k || !x.current || typeof ResizeObserver > "u")
|
|
2131
2131
|
return;
|
|
@@ -2135,16 +2135,16 @@ const Ni = {
|
|
|
2135
2135
|
});
|
|
2136
2136
|
return O.observe($), () => O.disconnect();
|
|
2137
2137
|
}, [k]);
|
|
2138
|
-
const
|
|
2138
|
+
const Ae = fi({ disabled: !p || y }), { fitTo: oe, viewport: de } = Ae, be = ye(!1);
|
|
2139
2139
|
Fe(() => {
|
|
2140
|
-
|
|
2141
|
-
}, [oe,
|
|
2142
|
-
const Ee = F(() =>
|
|
2143
|
-
() =>
|
|
2144
|
-
[
|
|
2145
|
-
),
|
|
2140
|
+
be.current || !Z || B.totalSeats === 0 || ae.width <= 0 || (be.current = !0, oe(B.bounds, ae));
|
|
2141
|
+
}, [oe, B, ae, Z]);
|
|
2142
|
+
const Ee = F(() => ti(de, ae, 40), [de, ae]), ke = v !== "auto" ? v : b ? "seat" : void 0, ge = F(
|
|
2143
|
+
() => ri(B, Ee, P, ke),
|
|
2144
|
+
[B, Ee, P, ke]
|
|
2145
|
+
), we = ye(null);
|
|
2146
2146
|
Fe(() => {
|
|
2147
|
-
|
|
2147
|
+
we.current !== ge.tier && (we.current = ge.tier, g == null || g(ge.tier));
|
|
2148
2148
|
}, [ge.tier, g]);
|
|
2149
2149
|
const He = F(
|
|
2150
2150
|
() => {
|
|
@@ -2158,16 +2158,16 @@ const Ni = {
|
|
|
2158
2158
|
return new Map((($ = t.sections) == null ? void 0 : $.map((O) => [O.id, O])) ?? []);
|
|
2159
2159
|
},
|
|
2160
2160
|
[t.sections]
|
|
2161
|
-
),
|
|
2161
|
+
), me = H(
|
|
2162
2162
|
($) => {
|
|
2163
|
-
const O = ve.get($.sectorId), K =
|
|
2163
|
+
const O = ve.get($.sectorId), K = ze($, m), Q = hn($), se = [
|
|
2164
2164
|
O ? O.name : "",
|
|
2165
2165
|
n("seatingChart.rowN", "row {row}").replace("{row}", String($.row)),
|
|
2166
2166
|
n("seatingChart.seatN", "seat {number}").replace("{number}", String($.number))
|
|
2167
2167
|
].filter(Boolean);
|
|
2168
2168
|
if (O && o.showPrices !== !1) {
|
|
2169
|
-
const
|
|
2170
|
-
se.push(ce(
|
|
2169
|
+
const he = Pn($, t, O);
|
|
2170
|
+
se.push(ce(he.amount, he.currency, A));
|
|
2171
2171
|
}
|
|
2172
2172
|
return se.push(n(`seatingChart.status.${K}`, K)), Q === "wheelchair" && se.push(n("seatingChart.wheelchairAccessible", "wheelchair accessible")), Q === "companion" && se.push(n("seatingChart.companionSeat", "companion seat")), se.join(", ");
|
|
2173
2173
|
},
|
|
@@ -2181,22 +2181,22 @@ const Ni = {
|
|
|
2181
2181
|
($) => {
|
|
2182
2182
|
if (h == null || h($), !G)
|
|
2183
2183
|
return;
|
|
2184
|
-
const O =
|
|
2184
|
+
const O = oi(I, $.id, B, o, m);
|
|
2185
2185
|
if ("rejected" in O) {
|
|
2186
2186
|
l == null || l({ reason: O.rejected, seatId: $.id }), W(
|
|
2187
|
-
n(`seatingChart.rejection.${O.rejected}`,
|
|
2187
|
+
n(`seatingChart.rejection.${O.rejected}`, _i[O.rejected])
|
|
2188
2188
|
);
|
|
2189
2189
|
return;
|
|
2190
2190
|
}
|
|
2191
2191
|
le(O.selected), W(
|
|
2192
|
-
n("seatingChart.seatSelected", "{seat}. {count} of {max} selected.").replace("{seat}",
|
|
2192
|
+
n("seatingChart.seatSelected", "{seat}. {count} of {max} selected.").replace("{seat}", me($)).replace("{count}", String(O.selected.length)).replace("{max}", String(ne))
|
|
2193
2193
|
);
|
|
2194
2194
|
},
|
|
2195
2195
|
[
|
|
2196
2196
|
n,
|
|
2197
2197
|
le,
|
|
2198
|
-
|
|
2199
|
-
|
|
2198
|
+
me,
|
|
2199
|
+
B,
|
|
2200
2200
|
G,
|
|
2201
2201
|
ne,
|
|
2202
2202
|
h,
|
|
@@ -2211,7 +2211,7 @@ const Ni = {
|
|
|
2211
2211
|
z($, O);
|
|
2212
2212
|
return;
|
|
2213
2213
|
}
|
|
2214
|
-
const K =
|
|
2214
|
+
const K = di(B, $, o, O, m);
|
|
2215
2215
|
if (K.length === 0) {
|
|
2216
2216
|
W(
|
|
2217
2217
|
n(
|
|
@@ -2228,25 +2228,25 @@ const Ni = {
|
|
|
2228
2228
|
)
|
|
2229
2229
|
);
|
|
2230
2230
|
},
|
|
2231
|
-
[le,
|
|
2231
|
+
[le, B, z, m, o, n]
|
|
2232
2232
|
), Me = H(
|
|
2233
2233
|
($) => {
|
|
2234
|
-
const O =
|
|
2234
|
+
const O = B.locationById.get($);
|
|
2235
2235
|
if (!O)
|
|
2236
2236
|
return;
|
|
2237
|
-
const K =
|
|
2237
|
+
const K = B.rows.find(
|
|
2238
2238
|
(Q) => Q.sectionId === O.sectionId && Q.rowIndex === O.rowIndex
|
|
2239
2239
|
);
|
|
2240
|
-
K && oe(K.bounds,
|
|
2240
|
+
K && oe(K.bounds, ae, 80);
|
|
2241
2241
|
},
|
|
2242
|
-
[oe,
|
|
2242
|
+
[oe, B, ae]
|
|
2243
2243
|
), _e = H(
|
|
2244
2244
|
($) => {
|
|
2245
2245
|
if (!$)
|
|
2246
2246
|
return;
|
|
2247
2247
|
L($), Me($);
|
|
2248
|
-
const O =
|
|
2249
|
-
O && W(
|
|
2248
|
+
const O = B.seatById.get($);
|
|
2249
|
+
O && W(me(O)), requestAnimationFrame(() => {
|
|
2250
2250
|
var Q;
|
|
2251
2251
|
const K = [
|
|
2252
2252
|
...((Q = x.current) == null ? void 0 : Q.querySelectorAll("[data-seat-id]")) ?? []
|
|
@@ -2254,10 +2254,10 @@ const Ni = {
|
|
|
2254
2254
|
K == null || K.focus({ preventScroll: !0 });
|
|
2255
2255
|
});
|
|
2256
2256
|
},
|
|
2257
|
-
[
|
|
2257
|
+
[me, B.seatById, Me]
|
|
2258
2258
|
), Qe = ($) => {
|
|
2259
|
-
var se,
|
|
2260
|
-
const O = b ?? ((
|
|
2259
|
+
var se, he;
|
|
2260
|
+
const O = b ?? ((he = (se = B.rows[0]) == null ? void 0 : se.seats[0]) == null ? void 0 : he.id) ?? null;
|
|
2261
2261
|
if (!O)
|
|
2262
2262
|
return;
|
|
2263
2263
|
const Q = {
|
|
@@ -2269,22 +2269,22 @@ const Ni = {
|
|
|
2269
2269
|
End: "row-end"
|
|
2270
2270
|
}[$.key];
|
|
2271
2271
|
if (Q) {
|
|
2272
|
-
$.preventDefault(), _e(b ?
|
|
2272
|
+
$.preventDefault(), _e(b ? ui(B, O, Q) : O);
|
|
2273
2273
|
return;
|
|
2274
2274
|
}
|
|
2275
2275
|
if ($.key === "PageDown" || $.key === "PageUp") {
|
|
2276
|
-
$.preventDefault(), _e(
|
|
2276
|
+
$.preventDefault(), _e(mi(B, b, $.key === "PageDown" ? "next" : "prev"));
|
|
2277
2277
|
return;
|
|
2278
2278
|
}
|
|
2279
2279
|
if ($.key === "Enter" || $.key === " ") {
|
|
2280
2280
|
$.preventDefault();
|
|
2281
|
-
const Oe =
|
|
2281
|
+
const Oe = B.seatById.get(O);
|
|
2282
2282
|
Oe && Te(Oe);
|
|
2283
2283
|
return;
|
|
2284
2284
|
}
|
|
2285
2285
|
$.key === "Escape" && I.length > 0 && ($.preventDefault(), le([]), W(n("seatingChart.selectionCleared", "Selection cleared.")));
|
|
2286
2286
|
};
|
|
2287
|
-
if (
|
|
2287
|
+
if (B.totalSeats === 0)
|
|
2288
2288
|
return /* @__PURE__ */ e("div", { ref: r, className: `nice-seating-chart ${w ?? ""}`, style: N, children: /* @__PURE__ */ e(
|
|
2289
2289
|
Ne,
|
|
2290
2290
|
{
|
|
@@ -2295,10 +2295,10 @@ const Ni = {
|
|
|
2295
2295
|
)
|
|
2296
2296
|
}
|
|
2297
2297
|
) });
|
|
2298
|
-
const
|
|
2299
|
-
const K =
|
|
2298
|
+
const Se = I.reduce(($, O) => {
|
|
2299
|
+
const K = B.seatById.get(O), Q = K ? ve.get(K.sectorId) : void 0;
|
|
2300
2300
|
return !K || !Q ? $ : $ + Pn(K, t, Q).amount;
|
|
2301
|
-
}, 0),
|
|
2301
|
+
}, 0), Ce = (($e = (pe = t.sections) == null ? void 0 : pe[0]) == null ? void 0 : $e.currency) ?? "PLN";
|
|
2302
2302
|
return /* @__PURE__ */ s(
|
|
2303
2303
|
"div",
|
|
2304
2304
|
{
|
|
@@ -2306,23 +2306,23 @@ const Ni = {
|
|
|
2306
2306
|
className: `nice-seating-chart nice-seating-chart--${d} ${w ?? ""}`,
|
|
2307
2307
|
style: N,
|
|
2308
2308
|
children: [
|
|
2309
|
-
/* @__PURE__ */ s(
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
"{name}"
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
/* @__PURE__ */ s(
|
|
2309
|
+
/* @__PURE__ */ s("div", { className: "nice-seating-chart__stage", children: [
|
|
2310
|
+
/* @__PURE__ */ e(
|
|
2311
|
+
"div",
|
|
2312
|
+
{
|
|
2313
|
+
ref: x,
|
|
2314
|
+
className: "nice-seating-chart__canvas-host",
|
|
2315
|
+
role: "grid",
|
|
2316
|
+
"aria-label": n("seatingChart.chartLabel", "{name} seating chart").replace(
|
|
2317
|
+
"{name}",
|
|
2318
|
+
t.name
|
|
2319
|
+
),
|
|
2320
|
+
"aria-rowcount": B.rows.length,
|
|
2321
|
+
"aria-colcount": B.totalSeats,
|
|
2322
|
+
tabIndex: b ? -1 : 0,
|
|
2323
|
+
onKeyDown: Qe,
|
|
2324
|
+
...Ae.containerProps,
|
|
2325
|
+
children: /* @__PURE__ */ s(
|
|
2326
2326
|
"svg",
|
|
2327
2327
|
{
|
|
2328
2328
|
className: "nice-seating-chart__canvas",
|
|
@@ -2341,65 +2341,55 @@ const Ni = {
|
|
|
2341
2341
|
children: /* @__PURE__ */ e("line", { x1: 0, y1: 0, x2: 0, y2: 4, className: "nice-seating-chart__hatch" })
|
|
2342
2342
|
}
|
|
2343
2343
|
) }),
|
|
2344
|
-
/* @__PURE__ */ e(
|
|
2345
|
-
|
|
2344
|
+
/* @__PURE__ */ e(
|
|
2345
|
+
"g",
|
|
2346
2346
|
{
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2347
|
+
transform: `translate(${de.pan.x} ${de.pan.y}) scale(${de.zoom})`,
|
|
2348
|
+
children: /* @__PURE__ */ e(
|
|
2349
|
+
hi,
|
|
2350
|
+
{
|
|
2351
|
+
cull: ge,
|
|
2352
|
+
selectedIds: U,
|
|
2353
|
+
cursorId: b,
|
|
2354
|
+
statusOverrides: m,
|
|
2355
|
+
sectionColorById: He,
|
|
2356
|
+
interactive: G,
|
|
2357
|
+
onSeatClick: Te,
|
|
2358
|
+
onSectionClick: o.sectionSelect ? ($) => {
|
|
2359
|
+
var K;
|
|
2360
|
+
const O = (K = B.rows.find((Q) => Q.sectionId === $)) == null ? void 0 : K.seats[0];
|
|
2361
|
+
O && _e(O.id);
|
|
2362
|
+
} : void 0,
|
|
2363
|
+
describeSeat: me
|
|
2364
|
+
}
|
|
2365
|
+
)
|
|
2360
2366
|
}
|
|
2361
|
-
)
|
|
2367
|
+
)
|
|
2362
2368
|
]
|
|
2363
2369
|
}
|
|
2364
|
-
)
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
}
|
|
2385
|
-
),
|
|
2386
|
-
/* @__PURE__ */ e(
|
|
2387
|
-
U,
|
|
2388
|
-
{
|
|
2389
|
-
size: "sm",
|
|
2390
|
-
variant: "ghost",
|
|
2391
|
-
ariaLabel: n("seatingChart.fitToView", "Fit to view"),
|
|
2392
|
-
onClick: () => oe(Y.bounds, ie),
|
|
2393
|
-
children: /* @__PURE__ */ e(Ct, { size: 16 })
|
|
2394
|
-
}
|
|
2395
|
-
)
|
|
2396
|
-
] })
|
|
2397
|
-
]
|
|
2398
|
-
}
|
|
2399
|
-
),
|
|
2370
|
+
)
|
|
2371
|
+
}
|
|
2372
|
+
),
|
|
2373
|
+
p && /* @__PURE__ */ e(
|
|
2374
|
+
Ot,
|
|
2375
|
+
{
|
|
2376
|
+
className: "nice-seating-chart__zoom",
|
|
2377
|
+
value: de.zoom,
|
|
2378
|
+
onChange: ($) => Ae.zoomBy($ / de.zoom, void 0, ae),
|
|
2379
|
+
min: 0.1,
|
|
2380
|
+
max: 10,
|
|
2381
|
+
step: 1.25,
|
|
2382
|
+
onFit: () => oe(B.bounds, ae),
|
|
2383
|
+
variant: "floating",
|
|
2384
|
+
orientation: "vertical",
|
|
2385
|
+
size: "sm",
|
|
2386
|
+
disabled: y
|
|
2387
|
+
}
|
|
2388
|
+
)
|
|
2389
|
+
] }),
|
|
2400
2390
|
/* @__PURE__ */ e("p", { className: "nice-seating-chart__status", role: "status", "aria-live": "polite", children: j }),
|
|
2401
2391
|
T && /* @__PURE__ */ s("ul", { className: "nice-seating-chart__legend", children: [
|
|
2402
|
-
(
|
|
2392
|
+
(xe = t.priceCategories) == null ? void 0 : xe.map(($) => /* @__PURE__ */ s("li", { className: "nice-seating-chart__legend-item", children: [
|
|
2403
2393
|
/* @__PURE__ */ e(
|
|
2404
2394
|
"span",
|
|
2405
2395
|
{
|
|
@@ -2410,7 +2400,7 @@ const Ni = {
|
|
|
2410
2400
|
),
|
|
2411
2401
|
$.name,
|
|
2412
2402
|
" · ",
|
|
2413
|
-
ce($.price,
|
|
2403
|
+
ce($.price, Ce, A)
|
|
2414
2404
|
] }, $.id)),
|
|
2415
2405
|
/* @__PURE__ */ s("li", { className: "nice-seating-chart__legend-item nice-seating-chart__legend-item--sold", children: [
|
|
2416
2406
|
/* @__PURE__ */ e("span", { className: "nice-seating-chart__legend-swatch", "aria-hidden": "true" }),
|
|
@@ -2418,17 +2408,17 @@ const Ni = {
|
|
|
2418
2408
|
n("seatingChart.sold", "Sold")
|
|
2419
2409
|
] })
|
|
2420
2410
|
] }),
|
|
2421
|
-
d === "select" && I.length > 0 && /* @__PURE__ */ e("p", { className: "nice-seating-chart__total", children: I.length === 1 ? n("seatingChart.seatsOne", "{selected} seat · {amount}").replace("{selected}", String(I.length)).replace("{amount}", String(ce(
|
|
2411
|
+
d === "select" && I.length > 0 && /* @__PURE__ */ e("p", { className: "nice-seating-chart__total", children: I.length === 1 ? n("seatingChart.seatsOne", "{selected} seat · {amount}").replace("{selected}", String(I.length)).replace("{amount}", String(ce(Se, Ce, A))) : n("seatingChart.seatsMany", "{selected} seats · {amount}").replace("{selected}", String(I.length)).replace("{amount}", String(ce(Se, Ce, A))) }),
|
|
2422
2412
|
f && /* @__PURE__ */ e(
|
|
2423
|
-
|
|
2413
|
+
gi,
|
|
2424
2414
|
{
|
|
2425
|
-
index:
|
|
2426
|
-
selectedIds:
|
|
2415
|
+
index: B,
|
|
2416
|
+
selectedIds: U,
|
|
2427
2417
|
statusOverrides: m,
|
|
2428
2418
|
maxSeats: ne,
|
|
2429
2419
|
onSeatToggle: Te,
|
|
2430
2420
|
onBestAvailable: fe,
|
|
2431
|
-
describeSeat:
|
|
2421
|
+
describeSeat: me,
|
|
2432
2422
|
disabled: !G,
|
|
2433
2423
|
defaultOpen: d === "select" && f
|
|
2434
2424
|
}
|
|
@@ -2437,10 +2427,10 @@ const Ni = {
|
|
|
2437
2427
|
}
|
|
2438
2428
|
);
|
|
2439
2429
|
}
|
|
2440
|
-
),
|
|
2430
|
+
), sa = /* @__PURE__ */ te(
|
|
2441
2431
|
function({ showList: i = !0, className: r, ...n }, t) {
|
|
2442
2432
|
return /* @__PURE__ */ e(
|
|
2443
|
-
|
|
2433
|
+
Ni,
|
|
2444
2434
|
{
|
|
2445
2435
|
ref: t,
|
|
2446
2436
|
mode: "select",
|
|
@@ -2450,17 +2440,17 @@ const Ni = {
|
|
|
2450
2440
|
}
|
|
2451
2441
|
);
|
|
2452
2442
|
}
|
|
2453
|
-
), Gn = /\{\{\s*([\w.-]+)\s*\}\}/g,
|
|
2443
|
+
), Gn = /\{\{\s*([\w.-]+)\s*\}\}/g, bi = {
|
|
2454
2444
|
"&": "&",
|
|
2455
2445
|
"<": "<",
|
|
2456
2446
|
">": ">",
|
|
2457
2447
|
'"': """,
|
|
2458
2448
|
"'": "'"
|
|
2459
2449
|
};
|
|
2460
|
-
function
|
|
2461
|
-
return a.replace(/[&<>"']/g, (i) =>
|
|
2450
|
+
function ki(a) {
|
|
2451
|
+
return a.replace(/[&<>"']/g, (i) => bi[i] ?? i);
|
|
2462
2452
|
}
|
|
2463
|
-
function
|
|
2453
|
+
function wi(a) {
|
|
2464
2454
|
const i = [], r = /* @__PURE__ */ new Set();
|
|
2465
2455
|
for (const n of a.matchAll(Gn)) {
|
|
2466
2456
|
const t = n[1];
|
|
@@ -2468,20 +2458,20 @@ function Ci(a) {
|
|
|
2468
2458
|
}
|
|
2469
2459
|
return i;
|
|
2470
2460
|
}
|
|
2471
|
-
function
|
|
2461
|
+
function Si(a, i = {}, r = {}) {
|
|
2472
2462
|
const { escape: n = !0, missing: t = "keep" } = r;
|
|
2473
2463
|
return a.replace(Gn, (d, o) => {
|
|
2474
2464
|
const u = i[o];
|
|
2475
|
-
return u == null ? t === "blank" ? "" : d : n ?
|
|
2465
|
+
return u == null ? t === "blank" ? "" : d : n ? ki(String(u)) : String(u);
|
|
2476
2466
|
});
|
|
2477
2467
|
}
|
|
2478
2468
|
function zn(a) {
|
|
2479
2469
|
return `{{${a}}}`;
|
|
2480
2470
|
}
|
|
2481
|
-
function
|
|
2482
|
-
return
|
|
2471
|
+
function Ci(a, i = {}) {
|
|
2472
|
+
return wi(a).filter((r) => i[r] === void 0 || i[r] === null);
|
|
2483
2473
|
}
|
|
2484
|
-
const
|
|
2474
|
+
const xi = { name: "", body: "" }, Ii = [
|
|
2485
2475
|
"undo",
|
|
2486
2476
|
"redo",
|
|
2487
2477
|
"|",
|
|
@@ -2501,7 +2491,7 @@ const Pi = { name: "", body: "" }, zi = [
|
|
|
2501
2491
|
"|",
|
|
2502
2492
|
"link",
|
|
2503
2493
|
"image"
|
|
2504
|
-
],
|
|
2494
|
+
], ra = /* @__PURE__ */ te(function(i, r) {
|
|
2505
2495
|
const { t: n } = ee(), {
|
|
2506
2496
|
template: t,
|
|
2507
2497
|
defaultTemplate: d,
|
|
@@ -2512,16 +2502,16 @@ const Pi = { name: "", body: "" }, zi = [
|
|
|
2512
2502
|
onRecipientsChange: l,
|
|
2513
2503
|
onSend: m,
|
|
2514
2504
|
sending: h = !1,
|
|
2515
|
-
toolbar: z =
|
|
2505
|
+
toolbar: z = Ii,
|
|
2516
2506
|
disabled: v = !1,
|
|
2517
2507
|
readOnly: g = !1,
|
|
2518
2508
|
size: P = "md",
|
|
2519
2509
|
className: k,
|
|
2520
2510
|
style: T
|
|
2521
|
-
} = i, [f, p] =
|
|
2511
|
+
} = i, [f, p] = Ut({
|
|
2522
2512
|
value: t,
|
|
2523
2513
|
defaultValue: d,
|
|
2524
|
-
fallbackValue:
|
|
2514
|
+
fallbackValue: xi,
|
|
2525
2515
|
onChange: o,
|
|
2526
2516
|
componentName: "NiceInvitationDesigner"
|
|
2527
2517
|
}), [A, y] = D(""), M = v || g || h, w = F(() => Xn(A), [A]), N = F(() => {
|
|
@@ -2530,15 +2520,15 @@ const Pi = { name: "", body: "" }, zi = [
|
|
|
2530
2520
|
L.sample !== void 0 && (b[L.key] = L.sample);
|
|
2531
2521
|
return { ...b, ..._ };
|
|
2532
2522
|
}, [u, _]), x = F(
|
|
2533
|
-
() =>
|
|
2523
|
+
() => Si(f.body ?? "", N),
|
|
2534
2524
|
[f.body, N]
|
|
2535
|
-
),
|
|
2536
|
-
() =>
|
|
2525
|
+
), Y = F(
|
|
2526
|
+
() => Ci(f.body ?? "", N),
|
|
2537
2527
|
[f.body, N]
|
|
2538
2528
|
), X = c.map((b) => b.email), E = (b) => p({ ...f, ...b }), R = (b) => {
|
|
2539
2529
|
E({ body: `${f.body ?? ""}${zn(b)}` });
|
|
2540
2530
|
}, q = () => {
|
|
2541
|
-
!l || w.valid.length === 0 || (l(
|
|
2531
|
+
!l || w.valid.length === 0 || (l(jt(X, w.valid)), y(""));
|
|
2542
2532
|
}, C = (b) => {
|
|
2543
2533
|
l == null || l(X.filter((L) => L !== b));
|
|
2544
2534
|
};
|
|
@@ -2564,7 +2554,7 @@ const Pi = { name: "", body: "" }, zi = [
|
|
|
2564
2554
|
u.length > 0 && !g && /* @__PURE__ */ s("div", { className: "nice-invitation-designer__tokens", children: [
|
|
2565
2555
|
/* @__PURE__ */ e("span", { className: "nice-invitation-designer__tokens-label", children: n("invitationDesigner.insert", "Insert:") }),
|
|
2566
2556
|
u.map((b) => /* @__PURE__ */ e(
|
|
2567
|
-
|
|
2557
|
+
V,
|
|
2568
2558
|
{
|
|
2569
2559
|
size: "sm",
|
|
2570
2560
|
variant: "outline",
|
|
@@ -2576,7 +2566,7 @@ const Pi = { name: "", body: "" }, zi = [
|
|
|
2576
2566
|
))
|
|
2577
2567
|
] }),
|
|
2578
2568
|
/* @__PURE__ */ e(
|
|
2579
|
-
|
|
2569
|
+
Yt,
|
|
2580
2570
|
{
|
|
2581
2571
|
format: "html",
|
|
2582
2572
|
value: f.body ?? "",
|
|
@@ -2597,9 +2587,9 @@ const Pi = { name: "", body: "" }, zi = [
|
|
|
2597
2587
|
children: [
|
|
2598
2588
|
/* @__PURE__ */ s("header", { className: "nice-invitation-designer__preview-header", children: [
|
|
2599
2589
|
/* @__PURE__ */ e("h4", { children: n("invitationDesigner.preview", "Preview") }),
|
|
2600
|
-
|
|
2590
|
+
Y.length > 0 && /* @__PURE__ */ e(ie, { size: "xs", subtle: !0, variant: "warning", children: n("invitationDesigner.unresolved", "{unresolved} unresolved").replace(
|
|
2601
2591
|
"{unresolved}",
|
|
2602
|
-
String(
|
|
2592
|
+
String(Y.length)
|
|
2603
2593
|
) })
|
|
2604
2594
|
] }),
|
|
2605
2595
|
f.coverImageUrl && /* @__PURE__ */ e("img", { className: "nice-invitation-designer__cover", src: f.coverImageUrl, alt: "" }),
|
|
@@ -2610,10 +2600,10 @@ const Pi = { name: "", body: "" }, zi = [
|
|
|
2610
2600
|
dangerouslySetInnerHTML: { __html: x }
|
|
2611
2601
|
}
|
|
2612
2602
|
),
|
|
2613
|
-
|
|
2603
|
+
Y.length > 0 && /* @__PURE__ */ e("p", { className: "nice-invitation-designer__unresolved", children: n(
|
|
2614
2604
|
"invitationDesigner.noPreviewValueFor",
|
|
2615
2605
|
"No preview value for: {unresolved}"
|
|
2616
|
-
).replace("{unresolved}", String(
|
|
2606
|
+
).replace("{unresolved}", String(Y.map((b) => zn(b)).join(", "))) })
|
|
2617
2607
|
]
|
|
2618
2608
|
}
|
|
2619
2609
|
),
|
|
@@ -2645,7 +2635,7 @@ const Pi = { name: "", body: "" }, zi = [
|
|
|
2645
2635
|
),
|
|
2646
2636
|
/* @__PURE__ */ s("div", { className: "nice-invitation-designer__paste-actions", children: [
|
|
2647
2637
|
/* @__PURE__ */ e(
|
|
2648
|
-
|
|
2638
|
+
V,
|
|
2649
2639
|
{
|
|
2650
2640
|
size: P,
|
|
2651
2641
|
variant: "outline",
|
|
@@ -2670,7 +2660,7 @@ const Pi = { name: "", body: "" }, zi = [
|
|
|
2670
2660
|
c.length > 0 && /* @__PURE__ */ e("ul", { className: "nice-invitation-designer__recipient-list", children: c.map((b) => /* @__PURE__ */ s("li", { className: "nice-invitation-designer__recipient", children: [
|
|
2671
2661
|
/* @__PURE__ */ e("span", { children: b.name ? `${b.name} <${b.email}>` : b.email }),
|
|
2672
2662
|
b.status && b.status !== "pending" && /* @__PURE__ */ e(
|
|
2673
|
-
|
|
2663
|
+
ie,
|
|
2674
2664
|
{
|
|
2675
2665
|
size: "xs",
|
|
2676
2666
|
subtle: !0,
|
|
@@ -2679,7 +2669,7 @@ const Pi = { name: "", body: "" }, zi = [
|
|
|
2679
2669
|
}
|
|
2680
2670
|
),
|
|
2681
2671
|
l && !g && /* @__PURE__ */ e(
|
|
2682
|
-
|
|
2672
|
+
V,
|
|
2683
2673
|
{
|
|
2684
2674
|
size: "sm",
|
|
2685
2675
|
variant: "ghost",
|
|
@@ -2694,11 +2684,11 @@ const Pi = { name: "", body: "" }, zi = [
|
|
|
2694
2684
|
)
|
|
2695
2685
|
] }, b.email)) }),
|
|
2696
2686
|
m && !g && /* @__PURE__ */ e(
|
|
2697
|
-
|
|
2687
|
+
V,
|
|
2698
2688
|
{
|
|
2699
2689
|
variant: "primary",
|
|
2700
2690
|
size: P,
|
|
2701
|
-
leftIcon: /* @__PURE__ */ e(
|
|
2691
|
+
leftIcon: /* @__PURE__ */ e(wt, { size: 15 }),
|
|
2702
2692
|
loading: h,
|
|
2703
2693
|
ariaLabel: n("invitationDesigner.sendInvitations", "Send invitations"),
|
|
2704
2694
|
disabled: v || h || c.length === 0,
|
|
@@ -2713,7 +2703,7 @@ const Pi = { name: "", body: "" }, zi = [
|
|
|
2713
2703
|
]
|
|
2714
2704
|
}
|
|
2715
2705
|
);
|
|
2716
|
-
}),
|
|
2706
|
+
}), Pi = ({
|
|
2717
2707
|
value: a,
|
|
2718
2708
|
max: i,
|
|
2719
2709
|
currency: r,
|
|
@@ -2723,7 +2713,7 @@ const Pi = { name: "", body: "" }, zi = [
|
|
|
2723
2713
|
}) => {
|
|
2724
2714
|
const o = i > 0 ? i : 1, u = a >= i && i > 0, _ = (c, l) => r ? `${ce(c, r, n)} / ${ce(l, r, n)}` : `${c} / ${l}`;
|
|
2725
2715
|
return /* @__PURE__ */ e(
|
|
2726
|
-
|
|
2716
|
+
Bt,
|
|
2727
2717
|
{
|
|
2728
2718
|
className: d,
|
|
2729
2719
|
value: Math.min(a, o),
|
|
@@ -2735,17 +2725,17 @@ const Pi = { name: "", body: "" }, zi = [
|
|
|
2735
2725
|
"aria-label": t
|
|
2736
2726
|
}
|
|
2737
2727
|
);
|
|
2738
|
-
},
|
|
2739
|
-
function
|
|
2728
|
+
}, zi = [];
|
|
2729
|
+
function Ai(a, i) {
|
|
2740
2730
|
if (i === "wishlist")
|
|
2741
2731
|
return { value: a.isPurchased ? 1 : 0, max: 1, complete: !!a.isPurchased };
|
|
2742
2732
|
const r = a.quantityNeeded ?? 1, n = a.quantityContributed ?? 0;
|
|
2743
2733
|
return { value: n, max: r, complete: r > 0 && n >= r };
|
|
2744
2734
|
}
|
|
2745
|
-
const
|
|
2735
|
+
const ca = /* @__PURE__ */ te(
|
|
2746
2736
|
function(i, r) {
|
|
2747
2737
|
const { t: n } = ee(), {
|
|
2748
|
-
items: t =
|
|
2738
|
+
items: t = zi,
|
|
2749
2739
|
kind: d = "registry",
|
|
2750
2740
|
mode: o = "owner",
|
|
2751
2741
|
currency: u = "PLN",
|
|
@@ -2765,14 +2755,14 @@ const oa = /* @__PURE__ */ te(
|
|
|
2765
2755
|
size: A = "md",
|
|
2766
2756
|
className: y,
|
|
2767
2757
|
style: M
|
|
2768
|
-
} = i, w = qn({ currentUserId: l, currentUserName: m }), [N, x] = D(null), [
|
|
2769
|
-
(I,
|
|
2758
|
+
} = i, w = qn({ currentUserId: l, currentUserName: m }), [N, x] = D(null), [Y, X] = D(0), [E, R] = D(""), q = o === "owner", C = f || p, b = d === "wishlist", L = F(() => b ? [...t].sort(
|
|
2759
|
+
(I, U) => Number(I.isPurchased ?? !1) - Number(U.isPurchased ?? !1) || (U.priority ?? 0) - (I.priority ?? 0)
|
|
2770
2760
|
) : t, [t, b]), j = () => {
|
|
2771
2761
|
x(null), X(0);
|
|
2772
2762
|
}, W = (I) => {
|
|
2773
2763
|
!h || !w.canAct || (h(I.id, {
|
|
2774
|
-
amount:
|
|
2775
|
-
quantity:
|
|
2764
|
+
amount: Y > 0 ? Y : void 0,
|
|
2765
|
+
quantity: Y > 0 ? void 0 : 1,
|
|
2776
2766
|
userName: w.actor.userName,
|
|
2777
2767
|
userId: w.actor.userId
|
|
2778
2768
|
}), j());
|
|
@@ -2780,7 +2770,7 @@ const oa = /* @__PURE__ */ te(
|
|
|
2780
2770
|
return t.length === 0 ? /* @__PURE__ */ e("div", { ref: r, className: `nice-gift-registry ${y ?? ""}`, style: M, children: /* @__PURE__ */ e(
|
|
2781
2771
|
Ne,
|
|
2782
2772
|
{
|
|
2783
|
-
icon: /* @__PURE__ */ e(
|
|
2773
|
+
icon: /* @__PURE__ */ e(St, { size: 28 }),
|
|
2784
2774
|
title: b ? n("giftRegistry.emptyWishlist", "Nothing on the wishlist yet") : n("giftRegistry.emptyRegistry", "No gifts on the registry yet"),
|
|
2785
2775
|
description: q ? n("giftRegistry.emptyOwnerHint", "Add what you would like and share the link.") : n("giftRegistry.emptyGuestHint", "The host has not added anything yet.")
|
|
2786
2776
|
}
|
|
@@ -2804,7 +2794,7 @@ const oa = /* @__PURE__ */ te(
|
|
|
2804
2794
|
}
|
|
2805
2795
|
),
|
|
2806
2796
|
/* @__PURE__ */ e(Un, { columns: T === "list" ? 1 : void 0, minColumnWidth: 240, gap: 12, children: L.map((I) => {
|
|
2807
|
-
const { value:
|
|
2797
|
+
const { value: U, max: G, complete: ne } = Ai(I, d), B = I.price, ae = I.contributions ?? [];
|
|
2808
2798
|
return /* @__PURE__ */ s(
|
|
2809
2799
|
"div",
|
|
2810
2800
|
{
|
|
@@ -2832,13 +2822,13 @@ const oa = /* @__PURE__ */ te(
|
|
|
2832
2822
|
),
|
|
2833
2823
|
I.description && /* @__PURE__ */ e("p", { className: "nice-gift-registry__description", children: I.description }),
|
|
2834
2824
|
/* @__PURE__ */ s("div", { className: "nice-gift-registry__facts", children: [
|
|
2835
|
-
|
|
2836
|
-
b && (I.priority ?? 0) > 0 && /* @__PURE__ */ s(
|
|
2837
|
-
/* @__PURE__ */ e(
|
|
2825
|
+
B && /* @__PURE__ */ e("span", { className: "nice-gift-registry__price", children: ce(B.amount, B.currency || u, _) }),
|
|
2826
|
+
b && (I.priority ?? 0) > 0 && /* @__PURE__ */ s(ie, { size: "xs", subtle: !0, variant: "warning", children: [
|
|
2827
|
+
/* @__PURE__ */ e(Ct, { size: 11 }),
|
|
2838
2828
|
" ",
|
|
2839
2829
|
I.priority
|
|
2840
2830
|
] }),
|
|
2841
|
-
ne && /* @__PURE__ */ e(
|
|
2831
|
+
ne && /* @__PURE__ */ e(ie, { size: "xs", subtle: !0, variant: "success", children: b ? n("giftRegistry.bought", "bought") : n("giftRegistry.fullyCovered", "fully covered") }),
|
|
2842
2832
|
I.url && /* @__PURE__ */ s(
|
|
2843
2833
|
"a",
|
|
2844
2834
|
{
|
|
@@ -2847,7 +2837,7 @@ const oa = /* @__PURE__ */ te(
|
|
|
2847
2837
|
target: "_blank",
|
|
2848
2838
|
rel: "noopener noreferrer",
|
|
2849
2839
|
children: [
|
|
2850
|
-
/* @__PURE__ */ e(
|
|
2840
|
+
/* @__PURE__ */ e(xt, { size: 13 }),
|
|
2851
2841
|
" ",
|
|
2852
2842
|
n("giftRegistry.shop", "Shop")
|
|
2853
2843
|
]
|
|
@@ -2855,16 +2845,16 @@ const oa = /* @__PURE__ */ te(
|
|
|
2855
2845
|
)
|
|
2856
2846
|
] }),
|
|
2857
2847
|
!b && /* @__PURE__ */ e(
|
|
2858
|
-
|
|
2848
|
+
Pi,
|
|
2859
2849
|
{
|
|
2860
|
-
value:
|
|
2850
|
+
value: U,
|
|
2861
2851
|
max: G,
|
|
2862
|
-
label: n("giftRegistry.covered", "{name}: {value} of {max} covered").replace("{name}", I.title).replace("{value}", String(
|
|
2852
|
+
label: n("giftRegistry.covered", "{name}: {value} of {max} covered").replace("{name}", I.title).replace("{value}", String(U)).replace("{max}", String(G))
|
|
2863
2853
|
}
|
|
2864
2854
|
),
|
|
2865
|
-
!c &&
|
|
2855
|
+
!c && ae.length > 0 && /* @__PURE__ */ e("ul", { className: "nice-gift-registry__contributors", children: ae.map((Z) => /* @__PURE__ */ s("li", { className: "nice-gift-registry__contributor", children: [
|
|
2866
2856
|
/* @__PURE__ */ e("strong", { children: Z.contributorName }),
|
|
2867
|
-
Z.amount !== void 0 && ` — ${ce(Z.amount, (
|
|
2857
|
+
Z.amount !== void 0 && ` — ${ce(Z.amount, (B == null ? void 0 : B.currency) || u, _)}`,
|
|
2868
2858
|
Z.amount === void 0 && Z.quantity ? ` — ${Z.quantity}×` : "",
|
|
2869
2859
|
Z.message && /* @__PURE__ */ s("em", { children: [
|
|
2870
2860
|
" “",
|
|
@@ -2874,7 +2864,7 @@ const oa = /* @__PURE__ */ te(
|
|
|
2874
2864
|
] }, Z.id)) }),
|
|
2875
2865
|
/* @__PURE__ */ s("div", { className: "nice-gift-registry__actions", children: [
|
|
2876
2866
|
!q && !ne && z && /* @__PURE__ */ e(
|
|
2877
|
-
|
|
2867
|
+
V,
|
|
2878
2868
|
{
|
|
2879
2869
|
size: "sm",
|
|
2880
2870
|
variant: "primary",
|
|
@@ -2885,7 +2875,7 @@ const oa = /* @__PURE__ */ te(
|
|
|
2885
2875
|
}
|
|
2886
2876
|
),
|
|
2887
2877
|
!q && ne && v && /* @__PURE__ */ e(
|
|
2888
|
-
|
|
2878
|
+
V,
|
|
2889
2879
|
{
|
|
2890
2880
|
size: "sm",
|
|
2891
2881
|
variant: "ghost",
|
|
@@ -2895,7 +2885,7 @@ const oa = /* @__PURE__ */ te(
|
|
|
2895
2885
|
}
|
|
2896
2886
|
),
|
|
2897
2887
|
!q && !ne && !b && h && /* @__PURE__ */ e(
|
|
2898
|
-
|
|
2888
|
+
V,
|
|
2899
2889
|
{
|
|
2900
2890
|
size: "sm",
|
|
2901
2891
|
variant: "outline",
|
|
@@ -2905,7 +2895,7 @@ const oa = /* @__PURE__ */ te(
|
|
|
2905
2895
|
}
|
|
2906
2896
|
),
|
|
2907
2897
|
q && P && !p && /* @__PURE__ */ e(
|
|
2908
|
-
|
|
2898
|
+
V,
|
|
2909
2899
|
{
|
|
2910
2900
|
size: "sm",
|
|
2911
2901
|
variant: "ghost",
|
|
@@ -2923,12 +2913,12 @@ const oa = /* @__PURE__ */ te(
|
|
|
2923
2913
|
/* @__PURE__ */ s("label", { className: "nice-gift-registry__pledge-field", children: [
|
|
2924
2914
|
/* @__PURE__ */ e("span", { children: n("giftRegistry.amount", "Amount ({currency})").replace(
|
|
2925
2915
|
"{currency}",
|
|
2926
|
-
String((
|
|
2916
|
+
String((B == null ? void 0 : B.currency) || u)
|
|
2927
2917
|
) }),
|
|
2928
2918
|
/* @__PURE__ */ e(
|
|
2929
2919
|
dn,
|
|
2930
2920
|
{
|
|
2931
|
-
value:
|
|
2921
|
+
value: Y,
|
|
2932
2922
|
onChange: (Z) => X(Math.max(0, Z ?? 0)),
|
|
2933
2923
|
min: 0,
|
|
2934
2924
|
size: "xs",
|
|
@@ -2937,7 +2927,7 @@ const oa = /* @__PURE__ */ te(
|
|
|
2937
2927
|
)
|
|
2938
2928
|
] }),
|
|
2939
2929
|
/* @__PURE__ */ e(
|
|
2940
|
-
|
|
2930
|
+
V,
|
|
2941
2931
|
{
|
|
2942
2932
|
size: "sm",
|
|
2943
2933
|
variant: "primary",
|
|
@@ -2946,7 +2936,7 @@ const oa = /* @__PURE__ */ te(
|
|
|
2946
2936
|
children: n("giftRegistry.confirm", "Confirm")
|
|
2947
2937
|
}
|
|
2948
2938
|
),
|
|
2949
|
-
/* @__PURE__ */ e(
|
|
2939
|
+
/* @__PURE__ */ e(V, { size: "sm", variant: "ghost", onClick: j, children: n("giftRegistry.cancel", "Cancel") })
|
|
2950
2940
|
] })
|
|
2951
2941
|
] })
|
|
2952
2942
|
]
|
|
@@ -2967,7 +2957,7 @@ const oa = /* @__PURE__ */ te(
|
|
|
2967
2957
|
}
|
|
2968
2958
|
),
|
|
2969
2959
|
/* @__PURE__ */ e(
|
|
2970
|
-
|
|
2960
|
+
V,
|
|
2971
2961
|
{
|
|
2972
2962
|
variant: "primary",
|
|
2973
2963
|
size: A,
|
|
@@ -2985,7 +2975,7 @@ const oa = /* @__PURE__ */ te(
|
|
|
2985
2975
|
);
|
|
2986
2976
|
}
|
|
2987
2977
|
);
|
|
2988
|
-
function
|
|
2978
|
+
function Ti(a) {
|
|
2989
2979
|
const i = /* @__PURE__ */ new Map();
|
|
2990
2980
|
for (const r of a) {
|
|
2991
2981
|
const n = (r.currency || "").toUpperCase(), t = i.get(n);
|
|
@@ -2993,7 +2983,7 @@ function Li(a) {
|
|
|
2993
2983
|
}
|
|
2994
2984
|
return i;
|
|
2995
2985
|
}
|
|
2996
|
-
function
|
|
2986
|
+
function Mi(a, i, r) {
|
|
2997
2987
|
var _;
|
|
2998
2988
|
const n = new Set(i.map((c) => c.id)), t = i.map((c) => c.id), d = new Map(t.map((c) => [c, 0])), o = [];
|
|
2999
2989
|
let u = 0;
|
|
@@ -3034,7 +3024,7 @@ function $i(a, i, r) {
|
|
|
3034
3024
|
}
|
|
3035
3025
|
return { balances: d, issues: o, totalMinor: u };
|
|
3036
3026
|
}
|
|
3037
|
-
function
|
|
3027
|
+
function $i(a, i, r) {
|
|
3038
3028
|
for (const n of i) {
|
|
3039
3029
|
if ((n.currency || "").toUpperCase() !== r || !a.has(n.fromId) || !a.has(n.toId))
|
|
3040
3030
|
continue;
|
|
@@ -3042,7 +3032,7 @@ function Ri(a, i, r) {
|
|
|
3042
3032
|
a.set(n.fromId, (a.get(n.fromId) ?? 0) + t), a.set(n.toId, (a.get(n.toId) ?? 0) - t);
|
|
3043
3033
|
}
|
|
3044
3034
|
}
|
|
3045
|
-
function
|
|
3035
|
+
function Li(a, i, r) {
|
|
3046
3036
|
const n = new Map(i.map((c) => [c.id, c.name])), t = [...a.entries()].filter(([, c]) => c > 0).map(([c, l]) => ({ id: c, v: l })).sort((c, l) => l.v - c.v || We(c.id, l.id)), d = [...a.entries()].filter(([, c]) => c < 0).map(([c, l]) => ({ id: c, v: l })).sort((c, l) => c.v - l.v || We(c.id, l.id)), o = [];
|
|
3047
3037
|
let u = 0, _ = 0;
|
|
3048
3038
|
for (; u < d.length && _ < t.length; ) {
|
|
@@ -3058,11 +3048,11 @@ function Di(a, i, r) {
|
|
|
3058
3048
|
}
|
|
3059
3049
|
return o;
|
|
3060
3050
|
}
|
|
3061
|
-
function
|
|
3062
|
-
const n = [], t = [], d = [...
|
|
3051
|
+
function Ri(a, i, r = []) {
|
|
3052
|
+
const n = [], t = [], d = [...Ti(a).entries()].sort(([o], [u]) => We(o, u));
|
|
3063
3053
|
for (const [o, u] of d) {
|
|
3064
|
-
const _ =
|
|
3065
|
-
t.push(..._.issues),
|
|
3054
|
+
const _ = Mi(u, i, o);
|
|
3055
|
+
t.push(..._.issues), $i(_.balances, r, o), n.push({
|
|
3066
3056
|
currency: o,
|
|
3067
3057
|
total: qe(_.totalMinor, o),
|
|
3068
3058
|
balances: i.map((c) => ({
|
|
@@ -3071,7 +3061,7 @@ function Ei(a, i, r = []) {
|
|
|
3071
3061
|
amount: qe(_.balances.get(c.id) ?? 0, o),
|
|
3072
3062
|
currency: o
|
|
3073
3063
|
})),
|
|
3074
|
-
transfers:
|
|
3064
|
+
transfers: Li(_.balances, i, o)
|
|
3075
3065
|
});
|
|
3076
3066
|
}
|
|
3077
3067
|
return { groups: n, issues: t };
|
|
@@ -3079,11 +3069,11 @@ function Ei(a, i, r = []) {
|
|
|
3079
3069
|
function We(a, i) {
|
|
3080
3070
|
return a < i ? -1 : a > i ? 1 : 0;
|
|
3081
3071
|
}
|
|
3082
|
-
const
|
|
3072
|
+
const Di = [], Ei = [], la = /* @__PURE__ */ te(
|
|
3083
3073
|
function(i, r) {
|
|
3084
3074
|
const { t: n } = ee(), {
|
|
3085
|
-
items: t =
|
|
3086
|
-
participants: d =
|
|
3075
|
+
items: t = Di,
|
|
3076
|
+
participants: d = Ei,
|
|
3087
3077
|
settlements: o = [],
|
|
3088
3078
|
view: u,
|
|
3089
3079
|
defaultView: _ = "expenses",
|
|
@@ -3102,7 +3092,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3102
3092
|
} = i, [A, y] = D(_), M = u ?? A, w = P || k, N = F(
|
|
3103
3093
|
() => d.map((C) => ({ id: C.id, name: C.name })),
|
|
3104
3094
|
[d]
|
|
3105
|
-
), x = F(() =>
|
|
3095
|
+
), x = F(() => Ri(t, N, o), [t, N, o]), Y = F(() => v === "none" ? t : t.map((C, b) => ({ item: C, index: b })).sort((C, b) => {
|
|
3106
3096
|
if (v === "amount")
|
|
3107
3097
|
return b.item.amount - C.item.amount || C.index - b.index;
|
|
3108
3098
|
const L = C.item.incurredAt, j = b.item.incurredAt;
|
|
@@ -3123,7 +3113,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3123
3113
|
return t.length === 0 ? /* @__PURE__ */ e("div", { ref: r, className: `nice-expense-split ${f ?? ""}`, style: p, children: /* @__PURE__ */ e(
|
|
3124
3114
|
Ne,
|
|
3125
3115
|
{
|
|
3126
|
-
icon: /* @__PURE__ */ e(
|
|
3116
|
+
icon: /* @__PURE__ */ e(It, { size: 28 }),
|
|
3127
3117
|
title: n("expenseSplit.noExpensesYet", "No expenses yet"),
|
|
3128
3118
|
description: n(
|
|
3129
3119
|
"expenseSplit.addWhatPeoplePaidFor",
|
|
@@ -3150,7 +3140,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3150
3140
|
]
|
|
3151
3141
|
}
|
|
3152
3142
|
),
|
|
3153
|
-
M === "expenses" && /* @__PURE__ */ e("ul", { className: "nice-expense-split__items", children:
|
|
3143
|
+
M === "expenses" && /* @__PURE__ */ e("ul", { className: "nice-expense-split__items", children: Y.map((C) => {
|
|
3154
3144
|
const b = R.get(C.id);
|
|
3155
3145
|
return /* @__PURE__ */ s(
|
|
3156
3146
|
"li",
|
|
@@ -3174,10 +3164,10 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3174
3164
|
}
|
|
3175
3165
|
),
|
|
3176
3166
|
/* @__PURE__ */ e("span", { className: "nice-expense-split__item-amount", children: ce(C.amount, C.currency, g) }),
|
|
3177
|
-
C.isPaid && /* @__PURE__ */ e(
|
|
3178
|
-
b && /* @__PURE__ */ e(
|
|
3167
|
+
C.isPaid && /* @__PURE__ */ e(ie, { size: "xs", subtle: !0, variant: "success", children: n("expenseSplit.paid", "paid") }),
|
|
3168
|
+
b && /* @__PURE__ */ e(ie, { size: "xs", subtle: !0, variant: "warning", children: b === "no-payer" ? n("expenseSplit.noPayer", "no payer") : n("expenseSplit.unknownPayer", "unknown payer") }),
|
|
3179
3169
|
m && !k && /* @__PURE__ */ e(
|
|
3180
|
-
|
|
3170
|
+
V,
|
|
3181
3171
|
{
|
|
3182
3172
|
size: "sm",
|
|
3183
3173
|
variant: "ghost",
|
|
@@ -3238,7 +3228,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3238
3228
|
M === "settlement" && (x.groups.every((C) => C.transfers.length === 0) ? /* @__PURE__ */ e(
|
|
3239
3229
|
Ne,
|
|
3240
3230
|
{
|
|
3241
|
-
icon: /* @__PURE__ */ e(
|
|
3231
|
+
icon: /* @__PURE__ */ e(Pt, { size: 28 }),
|
|
3242
3232
|
title: n("expenseSplit.allSettledUp", "All settled up"),
|
|
3243
3233
|
description: n(
|
|
3244
3234
|
"expenseSplit.nobodyOwesAnybodyAnything",
|
|
@@ -3262,11 +3252,11 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3262
3252
|
className: "nice-expense-split__transfer",
|
|
3263
3253
|
children: [
|
|
3264
3254
|
/* @__PURE__ */ e("span", { className: "nice-expense-split__transfer-from", children: b.fromName }),
|
|
3265
|
-
/* @__PURE__ */ e(
|
|
3255
|
+
/* @__PURE__ */ e(zt, { size: 15 }),
|
|
3266
3256
|
/* @__PURE__ */ e("span", { className: "nice-expense-split__transfer-to", children: b.toName }),
|
|
3267
3257
|
/* @__PURE__ */ e("span", { className: "nice-expense-split__transfer-amount", children: ce(b.amount, b.currency, g) }),
|
|
3268
3258
|
l && !k && /* @__PURE__ */ e(
|
|
3269
|
-
|
|
3259
|
+
V,
|
|
3270
3260
|
{
|
|
3271
3261
|
size: "sm",
|
|
3272
3262
|
variant: "outline",
|
|
@@ -3284,24 +3274,24 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3284
3274
|
}
|
|
3285
3275
|
);
|
|
3286
3276
|
}
|
|
3287
|
-
),
|
|
3277
|
+
), Oi = [], Yi = {
|
|
3288
3278
|
upcoming: En,
|
|
3289
3279
|
active: Ke,
|
|
3290
3280
|
voting: cn,
|
|
3291
|
-
scored:
|
|
3281
|
+
scored: At,
|
|
3292
3282
|
completed: je,
|
|
3293
3283
|
skipped: rn
|
|
3294
|
-
},
|
|
3284
|
+
}, Bi = {
|
|
3295
3285
|
upcoming: "#9ca3af",
|
|
3296
3286
|
active: "#22c55e",
|
|
3297
3287
|
voting: "#eab308",
|
|
3298
3288
|
scored: "#3b82f6",
|
|
3299
3289
|
completed: "#6b7280",
|
|
3300
3290
|
skipped: "#d1d5db"
|
|
3301
|
-
},
|
|
3291
|
+
}, oa = /* @__PURE__ */ te(
|
|
3302
3292
|
function(i, r) {
|
|
3303
3293
|
const { t: n } = ee(), {
|
|
3304
|
-
rounds: t =
|
|
3294
|
+
rounds: t = Oi,
|
|
3305
3295
|
activeRoundId: d,
|
|
3306
3296
|
onSelect: o,
|
|
3307
3297
|
onStart: u,
|
|
@@ -3336,7 +3326,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3336
3326
|
{
|
|
3337
3327
|
className: "nice-round-list__icon",
|
|
3338
3328
|
title: n(`roundCard.status.${v.status}`, v.status),
|
|
3339
|
-
children: Re.createElement(
|
|
3329
|
+
children: Re.createElement(Yi[v.status], { size: 16 })
|
|
3340
3330
|
}
|
|
3341
3331
|
),
|
|
3342
3332
|
/* @__PURE__ */ s("div", { className: "nice-round-list__info", children: [
|
|
@@ -3348,7 +3338,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3348
3338
|
"span",
|
|
3349
3339
|
{
|
|
3350
3340
|
className: "nice-round-list__status",
|
|
3351
|
-
style: { color:
|
|
3341
|
+
style: { color: Bi[v.status] },
|
|
3352
3342
|
children: n(`roundCard.status.${v.status}`, v.status)
|
|
3353
3343
|
}
|
|
3354
3344
|
),
|
|
@@ -3380,11 +3370,11 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3380
3370
|
}) })
|
|
3381
3371
|
] });
|
|
3382
3372
|
}
|
|
3383
|
-
),
|
|
3373
|
+
), Ui = [
|
|
3384
3374
|
"var(--nice-lb-gold, #facc15)",
|
|
3385
3375
|
"var(--nice-lb-silver, #cbd5e1)",
|
|
3386
3376
|
"var(--nice-lb-bronze, #d97706)"
|
|
3387
|
-
],
|
|
3377
|
+
], da = /* @__PURE__ */ te(
|
|
3388
3378
|
function(i, r) {
|
|
3389
3379
|
const { t: n } = ee(), {
|
|
3390
3380
|
round: t,
|
|
@@ -3453,7 +3443,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3453
3443
|
Je,
|
|
3454
3444
|
{
|
|
3455
3445
|
size: 14,
|
|
3456
|
-
primaryColor:
|
|
3446
|
+
primaryColor: Ui[A],
|
|
3457
3447
|
"aria-label": n("roundCard.placeN", "Place {n}").replace(
|
|
3458
3448
|
"{n}",
|
|
3459
3449
|
String(A + 1)
|
|
@@ -3496,7 +3486,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3496
3486
|
n("roundCard.startRound", "Start Round")
|
|
3497
3487
|
] }),
|
|
3498
3488
|
(t.status === "active" || t.status === "voting") && c && /* @__PURE__ */ s("button", { onClick: c, children: [
|
|
3499
|
-
/* @__PURE__ */ e(
|
|
3489
|
+
/* @__PURE__ */ e(Tt, { size: 14 }),
|
|
3500
3490
|
" ",
|
|
3501
3491
|
n("roundCard.endRound", "End Round")
|
|
3502
3492
|
] }),
|
|
@@ -3520,15 +3510,15 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3520
3510
|
}
|
|
3521
3511
|
);
|
|
3522
3512
|
}
|
|
3523
|
-
),
|
|
3513
|
+
), Vi = [], Fi = (a) => {
|
|
3524
3514
|
if (!a)
|
|
3525
3515
|
return "";
|
|
3526
3516
|
const i = Math.floor(a / 60), r = a % 60;
|
|
3527
3517
|
return `${i}:${r.toString().padStart(2, "0")}`;
|
|
3528
|
-
},
|
|
3518
|
+
}, ua = /* @__PURE__ */ te(
|
|
3529
3519
|
function(i, r) {
|
|
3530
3520
|
const {
|
|
3531
|
-
songs: n =
|
|
3521
|
+
songs: n = Vi,
|
|
3532
3522
|
onAdd: t,
|
|
3533
3523
|
onRemove: d,
|
|
3534
3524
|
onVote: o,
|
|
@@ -3552,7 +3542,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3552
3542
|
k.albumArt && /* @__PURE__ */ e("img", { src: k.albumArt, alt: "", className: "nice-song-picker__album-art" }),
|
|
3553
3543
|
/* @__PURE__ */ s("div", { children: [
|
|
3554
3544
|
/* @__PURE__ */ s("div", { className: "nice-song-picker__np-label", children: [
|
|
3555
|
-
/* @__PURE__ */ e(
|
|
3545
|
+
/* @__PURE__ */ e(Ie, { size: 14 }),
|
|
3556
3546
|
" ",
|
|
3557
3547
|
h("songPicker.nowPlaying", "Now playing")
|
|
3558
3548
|
] }),
|
|
@@ -3582,7 +3572,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3582
3572
|
/* @__PURE__ */ e("strong", { children: f.title }),
|
|
3583
3573
|
" — ",
|
|
3584
3574
|
/* @__PURE__ */ e("span", { children: f.artist }),
|
|
3585
|
-
f.duration && /* @__PURE__ */ e("span", { className: "nice-song-picker__duration", children:
|
|
3575
|
+
f.duration && /* @__PURE__ */ e("span", { className: "nice-song-picker__duration", children: Fi(f.duration) }),
|
|
3586
3576
|
f.addedByName && /* @__PURE__ */ e("div", { className: "nice-song-picker__added-by", children: h("songPicker.addedBy", "Added by {name}").replace(
|
|
3587
3577
|
"{name}",
|
|
3588
3578
|
f.addedByName
|
|
@@ -3590,7 +3580,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3590
3580
|
] }),
|
|
3591
3581
|
!c && /* @__PURE__ */ s("div", { className: "nice-song-picker__actions", children: [
|
|
3592
3582
|
o && /* @__PURE__ */ s(
|
|
3593
|
-
|
|
3583
|
+
V,
|
|
3594
3584
|
{
|
|
3595
3585
|
variant: "ghost",
|
|
3596
3586
|
size: "sm",
|
|
@@ -3606,12 +3596,12 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3606
3596
|
]
|
|
3607
3597
|
}
|
|
3608
3598
|
),
|
|
3609
|
-
t && !f.isQueued && /* @__PURE__ */ s(
|
|
3599
|
+
t && !f.isQueued && /* @__PURE__ */ s(V, { variant: "primary", size: "sm", onClick: () => t(f.id), children: [
|
|
3610
3600
|
/* @__PURE__ */ e(an, { size: 14 }),
|
|
3611
3601
|
" ",
|
|
3612
3602
|
h("songPicker.addToQueue", "Queue")
|
|
3613
3603
|
] }),
|
|
3614
|
-
d && f.isQueued && /* @__PURE__ */ e(
|
|
3604
|
+
d && f.isQueued && /* @__PURE__ */ e(V, { variant: "outline", size: "sm", onClick: () => d(f.id), children: h("remove", "Remove") })
|
|
3615
3605
|
] })
|
|
3616
3606
|
]
|
|
3617
3607
|
},
|
|
@@ -3633,20 +3623,20 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3633
3623
|
] })
|
|
3634
3624
|
] });
|
|
3635
3625
|
}
|
|
3636
|
-
),
|
|
3626
|
+
), Xi = [], An = {
|
|
3637
3627
|
easy: "Easy",
|
|
3638
3628
|
medium: "Medium",
|
|
3639
3629
|
hard: "Hard",
|
|
3640
3630
|
expert: "Expert"
|
|
3641
|
-
},
|
|
3631
|
+
}, qi = {
|
|
3642
3632
|
easy: "var(--nice-color-success, #16a34a)",
|
|
3643
3633
|
medium: "var(--nice-color-warning, #d97706)",
|
|
3644
3634
|
hard: "var(--nice-color-error, #dc2626)",
|
|
3645
3635
|
expert: "var(--nice-color-accent, #7c3aed)"
|
|
3646
|
-
}, Ue = "all",
|
|
3636
|
+
}, Ue = "all", ma = /* @__PURE__ */ te(
|
|
3647
3637
|
function(i, r) {
|
|
3648
3638
|
const {
|
|
3649
|
-
songs: n =
|
|
3639
|
+
songs: n = Xi,
|
|
3650
3640
|
queue: t = [],
|
|
3651
3641
|
onEnqueue: d,
|
|
3652
3642
|
onDequeue: o,
|
|
@@ -3683,7 +3673,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3683
3673
|
")"
|
|
3684
3674
|
] })
|
|
3685
3675
|
] }),
|
|
3686
|
-
!c && u && /* @__PURE__ */ e("div", { className: "nice-karaoke-picker__next", children: /* @__PURE__ */ s(
|
|
3676
|
+
!c && u && /* @__PURE__ */ e("div", { className: "nice-karaoke-picker__next", children: /* @__PURE__ */ s(V, { variant: "secondary", size: "sm", onClick: u, children: [
|
|
3687
3677
|
h("karaokePicker.next", "Skip / Next"),
|
|
3688
3678
|
" ",
|
|
3689
3679
|
/* @__PURE__ */ e(rn, { size: 14 })
|
|
@@ -3702,7 +3692,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3702
3692
|
}
|
|
3703
3693
|
) }),
|
|
3704
3694
|
/* @__PURE__ */ e("div", { className: "nice-karaoke-picker__difficulty-filter", children: /* @__PURE__ */ e(
|
|
3705
|
-
|
|
3695
|
+
Pe,
|
|
3706
3696
|
{
|
|
3707
3697
|
size: "sm",
|
|
3708
3698
|
"aria-label": h("karaokePicker.allDifficulties", "All Difficulties"),
|
|
@@ -3725,7 +3715,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3725
3715
|
{
|
|
3726
3716
|
className: "nice-karaoke-picker__difficulty",
|
|
3727
3717
|
style: {
|
|
3728
|
-
color:
|
|
3718
|
+
color: qi[y.difficulty] ?? "var(--nice-text-muted, #94a3b8)"
|
|
3729
3719
|
},
|
|
3730
3720
|
children: [
|
|
3731
3721
|
"[",
|
|
@@ -3740,7 +3730,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3740
3730
|
className: "nice-karaoke-picker__lyrics",
|
|
3741
3731
|
title: h("karaokePicker.lyrics", "Lyrics available"),
|
|
3742
3732
|
"aria-label": h("karaokePicker.lyrics", "Lyrics available"),
|
|
3743
|
-
children: /* @__PURE__ */ e(
|
|
3733
|
+
children: /* @__PURE__ */ e(Mt, { size: 12 })
|
|
3744
3734
|
}
|
|
3745
3735
|
),
|
|
3746
3736
|
y.language && /* @__PURE__ */ s("span", { className: "nice-karaoke-picker__language", children: [
|
|
@@ -3749,7 +3739,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3749
3739
|
")"
|
|
3750
3740
|
] })
|
|
3751
3741
|
] }),
|
|
3752
|
-
!c && /* @__PURE__ */ e("div", { children: p.has(y.id) ? /* @__PURE__ */ e(
|
|
3742
|
+
!c && /* @__PURE__ */ e("div", { children: p.has(y.id) ? /* @__PURE__ */ e(V, { variant: "outline", size: "sm", onClick: () => o == null ? void 0 : o(y.id), children: h("remove", "Remove") }) : /* @__PURE__ */ s(V, { variant: "primary", size: "sm", onClick: () => d == null ? void 0 : d(y.id), children: [
|
|
3753
3743
|
/* @__PURE__ */ e(Xe, { size: 14 }),
|
|
3754
3744
|
" ",
|
|
3755
3745
|
h("karaokePicker.sing", "Sing")
|
|
@@ -3757,7 +3747,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3757
3747
|
] }, y.id)) }),
|
|
3758
3748
|
t.length > 0 && /* @__PURE__ */ s("div", { className: "nice-karaoke-picker__queue", children: [
|
|
3759
3749
|
/* @__PURE__ */ s("h4", { children: [
|
|
3760
|
-
/* @__PURE__ */ e(
|
|
3750
|
+
/* @__PURE__ */ e(Ie, { size: 14 }),
|
|
3761
3751
|
" ",
|
|
3762
3752
|
h("karaokePicker.queue", "Queue ({count})").replace("{count}", String(t.length))
|
|
3763
3753
|
] }),
|
|
@@ -3778,28 +3768,28 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3778
3768
|
] })
|
|
3779
3769
|
] }),
|
|
3780
3770
|
!c && o && /* @__PURE__ */ e(
|
|
3781
|
-
|
|
3771
|
+
V,
|
|
3782
3772
|
{
|
|
3783
3773
|
variant: "ghost",
|
|
3784
3774
|
size: "xs",
|
|
3785
3775
|
onClick: () => o(y.id),
|
|
3786
3776
|
"aria-label": `${h("remove", "Remove")} ${y.title}`,
|
|
3787
|
-
children: /* @__PURE__ */ e(
|
|
3777
|
+
children: /* @__PURE__ */ e(Ln, { size: 12 })
|
|
3788
3778
|
}
|
|
3789
3779
|
)
|
|
3790
3780
|
] }, y.id))
|
|
3791
3781
|
] })
|
|
3792
3782
|
] });
|
|
3793
3783
|
}
|
|
3794
|
-
),
|
|
3795
|
-
game:
|
|
3796
|
-
music:
|
|
3797
|
-
dance:
|
|
3784
|
+
), Wi = [], Tn = {
|
|
3785
|
+
game: Bn,
|
|
3786
|
+
music: Ie,
|
|
3787
|
+
dance: Ie,
|
|
3798
3788
|
quiz: sn,
|
|
3799
3789
|
karaoke: Xe,
|
|
3800
|
-
photo:
|
|
3790
|
+
photo: Yn,
|
|
3801
3791
|
custom: On
|
|
3802
|
-
},
|
|
3792
|
+
}, Gi = {
|
|
3803
3793
|
game: "Games",
|
|
3804
3794
|
music: "Music",
|
|
3805
3795
|
dance: "Dance",
|
|
@@ -3807,9 +3797,9 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3807
3797
|
karaoke: "Karaoke",
|
|
3808
3798
|
photo: "Photo",
|
|
3809
3799
|
custom: "Custom"
|
|
3810
|
-
},
|
|
3800
|
+
}, pa = /* @__PURE__ */ te(function(i, r) {
|
|
3811
3801
|
const { t: n } = ee(), {
|
|
3812
|
-
attractions: t =
|
|
3802
|
+
attractions: t = Wi,
|
|
3813
3803
|
onSelect: d,
|
|
3814
3804
|
onDeselect: o,
|
|
3815
3805
|
onVote: u,
|
|
@@ -3829,8 +3819,8 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3829
3819
|
const N = k.toLowerCase();
|
|
3830
3820
|
w = w.filter(
|
|
3831
3821
|
(x) => {
|
|
3832
|
-
var
|
|
3833
|
-
return x.name.toLowerCase().includes(N) || ((
|
|
3822
|
+
var Y;
|
|
3823
|
+
return x.name.toLowerCase().includes(N) || ((Y = x.description) == null ? void 0 : Y.toLowerCase().includes(N));
|
|
3834
3824
|
}
|
|
3835
3825
|
);
|
|
3836
3826
|
}
|
|
@@ -3872,7 +3862,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3872
3862
|
children: [
|
|
3873
3863
|
Re.createElement(Tn[w], { size: 14 }),
|
|
3874
3864
|
" ",
|
|
3875
|
-
n(`attractionPicker.category.${w}`,
|
|
3865
|
+
n(`attractionPicker.category.${w}`, Gi[w])
|
|
3876
3866
|
]
|
|
3877
3867
|
},
|
|
3878
3868
|
w
|
|
@@ -3920,17 +3910,17 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
3920
3910
|
);
|
|
3921
3911
|
}) })
|
|
3922
3912
|
] });
|
|
3923
|
-
}),
|
|
3924
|
-
game:
|
|
3925
|
-
music:
|
|
3926
|
-
dance:
|
|
3913
|
+
}), Ki = [], ji = {
|
|
3914
|
+
game: Bn,
|
|
3915
|
+
music: Ie,
|
|
3916
|
+
dance: Ie,
|
|
3927
3917
|
quiz: sn,
|
|
3928
3918
|
karaoke: Xe,
|
|
3929
|
-
photo:
|
|
3919
|
+
photo: Yn,
|
|
3930
3920
|
custom: On
|
|
3931
|
-
},
|
|
3921
|
+
}, ha = /* @__PURE__ */ te(function(i, r) {
|
|
3932
3922
|
const { t: n } = ee(), {
|
|
3933
|
-
attractions: t =
|
|
3923
|
+
attractions: t = Ki,
|
|
3934
3924
|
onVote: d,
|
|
3935
3925
|
onUnvote: o,
|
|
3936
3926
|
votedIds: u = [],
|
|
@@ -4010,7 +4000,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
4010
4000
|
},
|
|
4011
4001
|
children: [
|
|
4012
4002
|
/* @__PURE__ */ s("h3", { style: { margin: 0, display: "inline-flex", alignItems: "center", gap: 8 }, children: [
|
|
4013
|
-
/* @__PURE__ */ e(
|
|
4003
|
+
/* @__PURE__ */ e($t, { size: 20 }),
|
|
4014
4004
|
c ? n("attractionVoting.votingResults", "Voting Results") : n("attractionVoting.voteForAttractions", "Vote for Attractions")
|
|
4015
4005
|
] }),
|
|
4016
4006
|
!c && g !== void 0 && /* @__PURE__ */ e(
|
|
@@ -4057,7 +4047,7 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
4057
4047
|
onClick: () => T(p.id),
|
|
4058
4048
|
children: [
|
|
4059
4049
|
m && /* @__PURE__ */ e("span", { style: { fontSize: 18, minWidth: 32, textAlign: "center" }, children: f(A) }),
|
|
4060
|
-
/* @__PURE__ */ e("span", { style: { display: "inline-flex", fontSize: 20 }, children: Re.createElement(
|
|
4050
|
+
/* @__PURE__ */ e("span", { style: { display: "inline-flex", fontSize: 20 }, children: Re.createElement(ji[p.category], { size: 20 }) }),
|
|
4061
4051
|
/* @__PURE__ */ s("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
4062
4052
|
/* @__PURE__ */ e("div", { style: { fontWeight: 600 }, children: p.name }),
|
|
4063
4053
|
p.description && /* @__PURE__ */ e(
|
|
@@ -4142,20 +4132,20 @@ const Oi = [], Bi = [], da = /* @__PURE__ */ te(
|
|
|
4142
4132
|
);
|
|
4143
4133
|
});
|
|
4144
4134
|
export {
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4135
|
+
pa as NiceAttractionPicker,
|
|
4136
|
+
ha as NiceAttractionVoting,
|
|
4137
|
+
na as NiceEventMedia,
|
|
4138
|
+
ia as NiceEventPlanning,
|
|
4139
|
+
la as NiceExpenseSplit,
|
|
4140
|
+
ca as NiceGiftRegistry,
|
|
4141
|
+
ra as NiceInvitationDesigner,
|
|
4142
|
+
ma as NiceKaraokePicker,
|
|
4143
|
+
ta as NiceMediaCollage,
|
|
4144
|
+
aa as NiceParticipantList,
|
|
4145
|
+
da as NiceRoundCard,
|
|
4146
|
+
oa as NiceRoundList,
|
|
4157
4147
|
Sn as NiceRsvpControl,
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4148
|
+
sa as NiceSeatPicker,
|
|
4149
|
+
Ni as NiceSeatingChart,
|
|
4150
|
+
ua as NiceSongPicker
|
|
4161
4151
|
};
|