@getmicdrop/venue-calendar 4.0.79 → 4.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +173 -128
- package/dist/{CarouselView.legacy-CsMGxVbb.js → CarouselView.legacy-Bn76lnuH.js} +3 -3
- package/dist/{CarouselView.legacy-CsMGxVbb.js.map → CarouselView.legacy-Bn76lnuH.js.map} +1 -1
- package/dist/{CartView-BOaZufWZ.js → CartView-lR1zLxmN.js} +277 -280
- package/dist/CartView-lR1zLxmN.js.map +1 -0
- package/dist/{Checkout-bkXNpxIB.js → Checkout-D5mXj5zN.js} +69 -73
- package/dist/Checkout-D5mXj5zN.js.map +1 -0
- package/dist/Checkout-KyLZlwLk.js +1673 -0
- package/dist/Checkout-KyLZlwLk.js.map +1 -0
- package/dist/{Checkout.legacy-BOPwZMyO.js → Checkout.legacy-Dl8Oh7y3.js} +95 -99
- package/dist/Checkout.legacy-Dl8Oh7y3.js.map +1 -0
- package/dist/CheckoutTimer-Deo1mLnO.js +141 -0
- package/dist/CheckoutTimer-Deo1mLnO.js.map +1 -0
- package/dist/CollectionView-C1O9xfVC.js +338 -0
- package/dist/CollectionView-C1O9xfVC.js.map +1 -0
- package/dist/{CollectionView.legacy-Dw-J6Ycd.js → CollectionView.legacy-DK_mCA_g.js} +21 -24
- package/dist/{CollectionView.legacy-Dw-J6Ycd.js.map → CollectionView.legacy-DK_mCA_g.js.map} +1 -1
- package/dist/Event-B5WRygEf.js +2240 -0
- package/dist/Event-B5WRygEf.js.map +1 -0
- package/dist/EventPage-f1AOk4Jb.js +577 -0
- package/dist/EventPage-f1AOk4Jb.js.map +1 -0
- package/dist/{EventPage.legacy-Br2M8N9-.js → EventPage.legacy-Bk3PJyJs.js} +408 -411
- package/dist/EventPage.legacy-Bk3PJyJs.js.map +1 -0
- package/dist/{FeaturedView.legacy-B86kMzvH.js → FeaturedView.legacy-BzCt1X1W.js} +18 -18
- package/dist/{FeaturedView.legacy-B86kMzvH.js.map → FeaturedView.legacy-BzCt1X1W.js.map} +1 -1
- package/dist/{GalleryCard-CTsYUZu6.js → GalleryCard-C1EKGErR.js} +14 -14
- package/dist/{GalleryCard-CTsYUZu6.js.map → GalleryCard-C1EKGErR.js.map} +1 -1
- package/dist/{GalleryView.legacy-uIexOsl5.js → GalleryView.legacy-BmQtZKl7.js} +3 -3
- package/dist/{GalleryView.legacy-uIexOsl5.js.map → GalleryView.legacy-BmQtZKl7.js.map} +1 -1
- package/dist/{GroupedListView.legacy-DMAwHQ9T.js → GroupedListView.legacy-D72fbNfA.js} +21 -21
- package/dist/{GroupedListView.legacy-DMAwHQ9T.js.map → GroupedListView.legacy-D72fbNfA.js.map} +1 -1
- package/dist/Heading-Bwevh2c4.js +81 -0
- package/dist/Heading-Bwevh2c4.js.map +1 -0
- package/dist/ModalHeader-DKwE5ZYZ.js +22 -0
- package/dist/ModalHeader-DKwE5ZYZ.js.map +1 -0
- package/dist/OrderSummarySkeleton-DKWKZNLL.js +632 -0
- package/dist/OrderSummarySkeleton-DKWKZNLL.js.map +1 -0
- package/dist/{ScarcityBadge-D9RzN3Tz.js → ScarcityBadge-3cFxTOCh.js} +25 -29
- package/dist/{ScarcityBadge-D9RzN3Tz.js.map → ScarcityBadge-3cFxTOCh.js.map} +1 -1
- package/dist/{SeriesPage-D0pf6VuS.js → SeriesPage-Cq4Q8Vah.js} +17 -21
- package/dist/{SeriesPage-D0pf6VuS.js.map → SeriesPage-Cq4Q8Vah.js.map} +1 -1
- package/dist/{SeriesPage.legacy-VYpfyT7B.js → SeriesPage.legacy-zvgW0S_y.js} +67 -71
- package/dist/SeriesPage.legacy-zvgW0S_y.js.map +1 -0
- package/dist/{Success-Dxgbo_Ct.js → Success-kyiEO6_Z.js} +186 -175
- package/dist/{Success-Dxgbo_Ct.js.map → Success-kyiEO6_Z.js.map} +1 -1
- package/dist/{Success.legacy-umzUtow7.js → Success.legacy-BxKYmXgz.js} +53 -57
- package/dist/{Success.legacy-umzUtow7.js.map → Success.legacy-BxKYmXgz.js.map} +1 -1
- package/dist/Text-_bLxSPv-.js +158 -0
- package/dist/Text-_bLxSPv-.js.map +1 -0
- package/dist/{VenueCalendar-D9TCV_XB.js → VenueCalendar-d8u6MKEu.js} +8131 -22680
- package/dist/VenueCalendar-d8u6MKEu.js.map +1 -0
- package/dist/ViewTicketsEmbed-DquJJVIK.js +2081 -0
- package/dist/ViewTicketsEmbed-DquJJVIK.js.map +1 -0
- package/dist/__SKIP_NAVIGATION__-CmipjatL.js +18 -0
- package/dist/__SKIP_NAVIGATION__-CmipjatL.js.map +1 -0
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.cjs.map +1 -1
- package/dist/api/api.mjs +482 -374
- package/dist/api/api.mjs.map +1 -1
- package/dist/api/cta.d.ts +2 -10
- package/dist/api/transformers/address.d.ts +18 -0
- package/dist/api/transformers/cart.d.ts +19 -0
- package/dist/api/transformers/collection.d.ts +12 -0
- package/dist/api/transformers/event.d.ts +50 -1
- package/dist/api/transformers/giftCard.d.ts +11 -0
- package/dist/api/transformers/index.d.ts +10 -3
- package/dist/api/transformers/performer.d.ts +8 -0
- package/dist/api/transformers/series.d.ts +12 -0
- package/dist/api/types.d.ts +423 -383
- package/dist/api-BzICORqy.js +6 -0
- package/dist/{api-DFMsiBOR.js.map → api-BzICORqy.js.map} +1 -1
- package/dist/colors-CmP-sSZD.js.map +1 -1
- package/dist/{data-toggle-store.svelte-DtDqN-QD.js → data-toggle-store.svelte-BGbzblUJ.js} +10 -15
- package/dist/data-toggle-store.svelte-BGbzblUJ.js.map +1 -0
- package/dist/index-BsWecoW1.js +63 -0
- package/dist/index-BsWecoW1.js.map +1 -0
- package/dist/labels-Bj_cocb1.js +966 -0
- package/dist/labels-Bj_cocb1.js.map +1 -0
- package/dist/seo/seo.cjs +1 -1
- package/dist/seo/seo.cjs.map +1 -1
- package/dist/seo/seo.mjs +131 -122
- package/dist/seo/seo.mjs.map +1 -1
- package/dist/transform-D7Oe8jUp.js +276 -0
- package/dist/transform-D7Oe8jUp.js.map +1 -0
- package/dist/types/index.d.ts +45 -0
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +31 -37
- package/dist/venue-calendar.es.js.map +1 -1
- package/dist/venue-calendar.iife.js +40 -107
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +38 -125
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +170 -169
- package/dist/CartView-BOaZufWZ.js.map +0 -1
- package/dist/Checkout-DD6ZTUh-.js +0 -1531
- package/dist/Checkout-DD6ZTUh-.js.map +0 -1
- package/dist/Checkout-bkXNpxIB.js.map +0 -1
- package/dist/Checkout.legacy-BOPwZMyO.js.map +0 -1
- package/dist/CheckoutTimer-CHoKjZyH.js +0 -35
- package/dist/CheckoutTimer-CHoKjZyH.js.map +0 -1
- package/dist/CollectionView-Ce-OAEC4.js +0 -148
- package/dist/CollectionView-Ce-OAEC4.js.map +0 -1
- package/dist/Event-rdstzev0.js +0 -1910
- package/dist/Event-rdstzev0.js.map +0 -1
- package/dist/EventPage-B8VRC83d.js +0 -336
- package/dist/EventPage-B8VRC83d.js.map +0 -1
- package/dist/EventPage.legacy-Br2M8N9-.js.map +0 -1
- package/dist/Heading-AFd3o0xt.js +0 -44
- package/dist/Heading-AFd3o0xt.js.map +0 -1
- package/dist/OrderSummarySkeleton-dDKUH741.js +0 -16
- package/dist/OrderSummarySkeleton-dDKUH741.js.map +0 -1
- package/dist/SeriesPage.legacy-VYpfyT7B.js.map +0 -1
- package/dist/Text-CXR2fhx6.js +0 -54
- package/dist/Text-CXR2fhx6.js.map +0 -1
- package/dist/VenueCalendar-D9TCV_XB.js.map +0 -1
- package/dist/ViewTicketsEmbed-Bt05E5Ex.js +0 -2039
- package/dist/ViewTicketsEmbed-Bt05E5Ex.js.map +0 -1
- package/dist/__SKIP_NAVIGATION__-CJ96TTPE.js +0 -7
- package/dist/__SKIP_NAVIGATION__-CJ96TTPE.js.map +0 -1
- package/dist/api-DFMsiBOR.js +0 -12
- package/dist/data-toggle-store.svelte-DtDqN-QD.js.map +0 -1
- package/dist/labels-CClq3Rb9.js +0 -659
- package/dist/labels-CClq3Rb9.js.map +0 -1
- package/dist/transform-CWf-YI_e.js +0 -275
- package/dist/transform-CWf-YI_e.js.map +0 -1
package/dist/labels-CClq3Rb9.js
DELETED
|
@@ -1,659 +0,0 @@
|
|
|
1
|
-
import "svelte/internal/disclose-version";
|
|
2
|
-
import * as e from "svelte/internal/client";
|
|
3
|
-
import { a2 as R, ag as H, x as z, g as $ } from "./VenueCalendar-D9TCV_XB.js";
|
|
4
|
-
import { T as v } from "./Text-CXR2fhx6.js";
|
|
5
|
-
import "svelte/internal/flags/legacy";
|
|
6
|
-
import "svelte/transition";
|
|
7
|
-
import "svelte/easing";
|
|
8
|
-
import "svelte/reactivity";
|
|
9
|
-
function N(t) {
|
|
10
|
-
if (!t || !(t.isHidden === !0 || typeof t.visibility == "number" && t.visibility >= 2) || t.salesChannel === 2) return !1;
|
|
11
|
-
const r = /* @__PURE__ */ new Date(), l = t.salesBegin || t.salesStart || t.saleBegin || t.onSaleStart, f = t.salesEnd || t.saleEnd || t.onSaleEnd;
|
|
12
|
-
if (l && new Date(l) > r || f && new Date(f) < r) return !1;
|
|
13
|
-
const p = t.remainingCapacity ?? t.quantityRemaining ?? t.quantity;
|
|
14
|
-
return !(t.soldOut || p != null && p <= 0);
|
|
15
|
-
}
|
|
16
|
-
function I(t, s, r = {}) {
|
|
17
|
-
const {
|
|
18
|
-
cancelled: l = !1,
|
|
19
|
-
isRegistration: f = !1,
|
|
20
|
-
waitlistEnabled: p = !1
|
|
21
|
-
} = r, h = /* @__PURE__ */ new Date();
|
|
22
|
-
if (l)
|
|
23
|
-
return { text: "Cancelled", disabled: !0, reason: "cancelled" };
|
|
24
|
-
const u = t.endDateTime || t.startDateTime;
|
|
25
|
-
if (u && new Date(u) < h)
|
|
26
|
-
return { text: "Sales ended", disabled: !0, reason: "event_past" };
|
|
27
|
-
const D = t?.hasPurchasableHiddenTickets === !0 || Array.isArray(s) && s.some(N), m = (s || []).filter(
|
|
28
|
-
(o) => o.salesChannel !== 2 && !o.isHidden && !(typeof o.visibility == "number" && o.visibility >= 2)
|
|
29
|
-
);
|
|
30
|
-
if (m.length === 0)
|
|
31
|
-
return D ? {
|
|
32
|
-
text: f ? "Reserve a spot" : "Get tickets",
|
|
33
|
-
disabled: !1,
|
|
34
|
-
reason: "hidden_only"
|
|
35
|
-
} : {
|
|
36
|
-
text: "No tickets available",
|
|
37
|
-
disabled: !0,
|
|
38
|
-
reason: "no_tickets"
|
|
39
|
-
};
|
|
40
|
-
let w = !1, E = !0, C = !0, x = null;
|
|
41
|
-
for (const o of m) {
|
|
42
|
-
const T = o.salesBegin || o.salesStart || o.saleBegin || o.onSaleStart, P = o.salesEnd || o.saleEnd || o.onSaleEnd, _ = o.remainingCapacity ?? o.quantityRemaining ?? o.quantity, S = o.soldOut || _ != null && _ <= 0, g = T ? new Date(T) > h : !1, q = P ? new Date(P) < h : !1;
|
|
43
|
-
if (!S && !g && !q && (w = !0), S || (E = !1), g || (C = !1), g && T && !S && !q) {
|
|
44
|
-
const A = new Date(T);
|
|
45
|
-
(!x || A < x) && (x = A);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
if (w)
|
|
49
|
-
return {
|
|
50
|
-
text: f ? "Reserve a spot" : "Get tickets",
|
|
51
|
-
disabled: !1,
|
|
52
|
-
reason: "available"
|
|
53
|
-
};
|
|
54
|
-
if (C && x) {
|
|
55
|
-
if (D)
|
|
56
|
-
return {
|
|
57
|
-
text: f ? "Reserve a spot" : "Get tickets",
|
|
58
|
-
disabled: !1,
|
|
59
|
-
reason: "hidden_only"
|
|
60
|
-
};
|
|
61
|
-
const o = x.getTime() - h.getTime(), T = o / (1e3 * 60 * 60), P = o / (1e3 * 60 * 60 * 24);
|
|
62
|
-
let _;
|
|
63
|
-
if (T < 24)
|
|
64
|
-
_ = R(x, { hour12: !0 }, "en-US");
|
|
65
|
-
else if (P <= 7)
|
|
66
|
-
_ = H(
|
|
67
|
-
x,
|
|
68
|
-
{ weekday: "short", hour: "numeric", minute: "2-digit", hour12: !0 },
|
|
69
|
-
"en-US"
|
|
70
|
-
);
|
|
71
|
-
else {
|
|
72
|
-
const S = H(
|
|
73
|
-
x,
|
|
74
|
-
{ month: "short", day: "numeric" },
|
|
75
|
-
"en-US"
|
|
76
|
-
), g = R(x, { hour12: !0 }, "en-US");
|
|
77
|
-
_ = `${S} ${g}`;
|
|
78
|
-
}
|
|
79
|
-
return {
|
|
80
|
-
text: `On sale ${_}`,
|
|
81
|
-
disabled: !0,
|
|
82
|
-
reason: "coming_soon"
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
return E ? D ? {
|
|
86
|
-
text: f ? "Reserve a spot" : "Get tickets",
|
|
87
|
-
disabled: !1,
|
|
88
|
-
reason: "hidden_only"
|
|
89
|
-
} : p ? {
|
|
90
|
-
text: "Join Waitlist",
|
|
91
|
-
disabled: !1,
|
|
92
|
-
reason: "sold_out_waitlist"
|
|
93
|
-
} : { text: "Sold out", disabled: !0, reason: "sold_out" } : D ? {
|
|
94
|
-
text: f ? "Reserve a spot" : "Get tickets",
|
|
95
|
-
disabled: !1,
|
|
96
|
-
reason: "hidden_only"
|
|
97
|
-
} : { text: "Sales ended", disabled: !0, reason: "sales_ended" };
|
|
98
|
-
}
|
|
99
|
-
const O = {
|
|
100
|
-
URGENT: 0.1,
|
|
101
|
-
// ≤10% remaining → urgent ("Only X left")
|
|
102
|
-
LOW: 0.2,
|
|
103
|
-
// ≤20% remaining (80%+ sold) → "Selling fast"
|
|
104
|
-
MAX_EXACT_COUNT: 20
|
|
105
|
-
// Don't show exact count above 20
|
|
106
|
-
};
|
|
107
|
-
function ne(t, s) {
|
|
108
|
-
if (s === 0) return "none";
|
|
109
|
-
if (t <= 0) return "sold_out";
|
|
110
|
-
const r = t / s;
|
|
111
|
-
return r <= O.URGENT ? "urgent" : r <= O.LOW ? "low" : "none";
|
|
112
|
-
}
|
|
113
|
-
function le(t, s, r, l) {
|
|
114
|
-
return t === "none" ? null : t === "sold_out" ? "Sold out" : t === "urgent" && r !== "browse" && s <= O.MAX_EXACT_COUNT ? `Only ${s} left` : t === "low" || t === "urgent" ? "Selling fast" : null;
|
|
115
|
-
}
|
|
116
|
-
function de(t) {
|
|
117
|
-
const s = t.tickets.map((l) => ({
|
|
118
|
-
salesBegin: l.salesStartDate,
|
|
119
|
-
salesEnd: l.salesEndDate,
|
|
120
|
-
remainingCapacity: l.quantityAvailable,
|
|
121
|
-
totalCapacity: l.quantityTotal,
|
|
122
|
-
soldOut: l.status === "sold_out",
|
|
123
|
-
salesChannel: 1,
|
|
124
|
-
// All our tickets are online (not "at the door only")
|
|
125
|
-
isHidden: l.isHidden
|
|
126
|
-
}));
|
|
127
|
-
if (t.status === "cancelled")
|
|
128
|
-
return {
|
|
129
|
-
text: "Cancelled",
|
|
130
|
-
disabled: !0,
|
|
131
|
-
reason: "This event has been cancelled"
|
|
132
|
-
};
|
|
133
|
-
if (t.status === "past")
|
|
134
|
-
return {
|
|
135
|
-
text: "Event ended",
|
|
136
|
-
disabled: !0,
|
|
137
|
-
reason: "This event has ended"
|
|
138
|
-
};
|
|
139
|
-
const r = I(
|
|
140
|
-
{ startDateTime: t.startDateTime, endDateTime: t.endDateTime },
|
|
141
|
-
s,
|
|
142
|
-
{
|
|
143
|
-
cancelled: !1,
|
|
144
|
-
isRegistration: t.isRegistrationEvent,
|
|
145
|
-
waitlistEnabled: !1
|
|
146
|
-
}
|
|
147
|
-
);
|
|
148
|
-
return {
|
|
149
|
-
text: r.text,
|
|
150
|
-
disabled: r.disabled,
|
|
151
|
-
reason: r.disabled ? G(r.reason) : void 0
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
function G(t) {
|
|
155
|
-
if (t)
|
|
156
|
-
switch (t) {
|
|
157
|
-
case "cancelled":
|
|
158
|
-
return "This event has been cancelled.";
|
|
159
|
-
case "event_past":
|
|
160
|
-
return "This event has already happened.";
|
|
161
|
-
case "no_tickets":
|
|
162
|
-
return "There are no tickets configured for this event.";
|
|
163
|
-
case "coming_soon":
|
|
164
|
-
return;
|
|
165
|
-
// text already shows "On sale <date>"
|
|
166
|
-
case "sold_out":
|
|
167
|
-
return;
|
|
168
|
-
// text already shows "Sold out"
|
|
169
|
-
case "sold_out_waitlist":
|
|
170
|
-
return "All tickets are claimed. Join the waitlist to be notified.";
|
|
171
|
-
case "sales_ended":
|
|
172
|
-
return;
|
|
173
|
-
// text already shows "Sales ended"
|
|
174
|
-
default:
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
function ce(t) {
|
|
179
|
-
const s = t.tickets.filter(
|
|
180
|
-
(u) => u.status === "on_sale" && !u.isHidden
|
|
181
|
-
);
|
|
182
|
-
if (s.length === 0) return null;
|
|
183
|
-
const r = s.some(
|
|
184
|
-
(u) => u.isDonation || u.ticketType === 2
|
|
185
|
-
), l = s.filter(
|
|
186
|
-
(u) => !u.isDonation && u.ticketType !== 2
|
|
187
|
-
), f = l.some((u) => u.price === 0), p = l.filter((u) => u.price > 0);
|
|
188
|
-
if (p.length === 0 && !f && r) return "Donation";
|
|
189
|
-
if (p.length === 0 && f) return null;
|
|
190
|
-
const h = Math.min(...p.map((u) => u.price));
|
|
191
|
-
return f ? null : r ? `From $${h}` : p.length === 1 ? `$${h}` : `From $${h}`;
|
|
192
|
-
}
|
|
193
|
-
function ue(t, s) {
|
|
194
|
-
return z(t * (s / 100));
|
|
195
|
-
}
|
|
196
|
-
const L = {
|
|
197
|
-
normal: 300
|
|
198
|
-
};
|
|
199
|
-
function fe(t) {
|
|
200
|
-
if (!t) return "";
|
|
201
|
-
const s = new Date(t), r = /* @__PURE__ */ new Date(), l = s.getTime() - r.getTime(), f = Math.round(l / (1e3 * 60)), p = l / (1e3 * 60 * 60);
|
|
202
|
-
if (f > 0 && f < 60) {
|
|
203
|
-
const m = Math.max(1, f);
|
|
204
|
-
return `in ${m} minute${m !== 1 ? "s" : ""}`;
|
|
205
|
-
}
|
|
206
|
-
if (p > 0 && p < 24) {
|
|
207
|
-
const m = Math.max(1, Math.round(p));
|
|
208
|
-
return `in ${m} hour${m !== 1 ? "s" : ""}`;
|
|
209
|
-
}
|
|
210
|
-
const h = new Date(r);
|
|
211
|
-
if (h.setDate(h.getDate() + 1), s.toDateString() === h.toDateString())
|
|
212
|
-
return `tomorrow at ${R(
|
|
213
|
-
s,
|
|
214
|
-
{ hour: "numeric", minute: "2-digit" },
|
|
215
|
-
"en-US"
|
|
216
|
-
)}`;
|
|
217
|
-
const u = l / (1e3 * 60 * 60 * 24);
|
|
218
|
-
if (u > 0 && u <= 7) {
|
|
219
|
-
const m = new Intl.DateTimeFormat("en-US", {
|
|
220
|
-
weekday: "long"
|
|
221
|
-
}).format(s), w = R(
|
|
222
|
-
s,
|
|
223
|
-
{ hour: "numeric", minute: "2-digit" },
|
|
224
|
-
"en-US"
|
|
225
|
-
);
|
|
226
|
-
return `on ${m} at ${w}`;
|
|
227
|
-
}
|
|
228
|
-
return `on ${new Intl.DateTimeFormat("en-US", {
|
|
229
|
-
month: "short",
|
|
230
|
-
day: "numeric"
|
|
231
|
-
}).format(s)}`;
|
|
232
|
-
}
|
|
233
|
-
function me() {
|
|
234
|
-
return {
|
|
235
|
-
code: "",
|
|
236
|
-
isApplied: !1,
|
|
237
|
-
isValidating: !1,
|
|
238
|
-
error: "",
|
|
239
|
-
hint: "",
|
|
240
|
-
discountAmount: 0,
|
|
241
|
-
discountType: "",
|
|
242
|
-
discountTicketIds: [],
|
|
243
|
-
revealHiddenTickets: !1,
|
|
244
|
-
revealTicketIds: []
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
var Y = e.from_html('<div class="flex justify-between"><!> <!></div>'), B = e.from_html('<div class="flex justify-between pt-1 border-t border-default"><!> <!></div>'), j = e.from_html('<div class="flex justify-between"><!> <!></div>'), W = e.from_html('<div class="flex justify-between"><!> <!></div>'), V = e.from_html('<div class="flex justify-between"><!> <!></div>'), K = e.from_html('<div class="flex justify-between"><!> <!></div>'), X = e.from_html('<div class="flex justify-between"><!> <!></div>'), J = e.from_html('<!> <!> <!> <!> <!> <div class="flex justify-between pt-2 border-t border-default"><!> <!></div>', 1), Q = e.from_html('<div class="space-y-2"><!> <!></div>');
|
|
248
|
-
function pe(t, s) {
|
|
249
|
-
e.push(s, !0);
|
|
250
|
-
let r = e.prop(s, "labels", 19, () => ({})), l = e.prop(s, "mode", 3, "full");
|
|
251
|
-
var f = Q(), p = e.child(f);
|
|
252
|
-
{
|
|
253
|
-
var h = (m) => {
|
|
254
|
-
var w = e.comment(), E = e.first_child(w);
|
|
255
|
-
e.each(E, 17, () => s.orderTotals.lines, (C) => C.ticketId, (C, x) => {
|
|
256
|
-
var o = Y(), T = e.child(o);
|
|
257
|
-
v(T, {
|
|
258
|
-
size: "sm",
|
|
259
|
-
children: (_, S) => {
|
|
260
|
-
e.next();
|
|
261
|
-
var g = e.text();
|
|
262
|
-
e.template_effect(() => e.set_text(g, `${e.get(x).quantity ?? ""}x ${e.get(x).ticketName ?? ""}`)), e.append(_, g);
|
|
263
|
-
},
|
|
264
|
-
$$slots: { default: !0 }
|
|
265
|
-
});
|
|
266
|
-
var P = e.sibling(T, 2);
|
|
267
|
-
v(P, {
|
|
268
|
-
size: "sm",
|
|
269
|
-
children: (_, S) => {
|
|
270
|
-
e.next();
|
|
271
|
-
var g = e.text();
|
|
272
|
-
e.template_effect((q) => e.set_text(g, q), [() => $(e.get(x).subtotal)]), e.append(_, g);
|
|
273
|
-
},
|
|
274
|
-
$$slots: { default: !0 }
|
|
275
|
-
}), e.reset(o), e.append(C, o);
|
|
276
|
-
}), e.append(m, w);
|
|
277
|
-
};
|
|
278
|
-
e.if(p, (m) => {
|
|
279
|
-
l() !== "totals" && m(h);
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
var u = e.sibling(p, 2);
|
|
283
|
-
{
|
|
284
|
-
var D = (m) => {
|
|
285
|
-
var w = J(), E = e.first_child(w);
|
|
286
|
-
{
|
|
287
|
-
var C = (i) => {
|
|
288
|
-
var n = B(), d = e.child(n);
|
|
289
|
-
v(d, {
|
|
290
|
-
size: "sm",
|
|
291
|
-
color: "muted",
|
|
292
|
-
children: (c, y) => {
|
|
293
|
-
e.next();
|
|
294
|
-
var a = e.text();
|
|
295
|
-
e.template_effect(() => e.set_text(a, r().subtotal || "Subtotal")), e.append(c, a);
|
|
296
|
-
},
|
|
297
|
-
$$slots: { default: !0 }
|
|
298
|
-
});
|
|
299
|
-
var b = e.sibling(d, 2);
|
|
300
|
-
v(b, {
|
|
301
|
-
size: "sm",
|
|
302
|
-
color: "muted",
|
|
303
|
-
children: (c, y) => {
|
|
304
|
-
e.next();
|
|
305
|
-
var a = e.text();
|
|
306
|
-
e.template_effect((k) => e.set_text(a, k), [() => $(s.orderTotals.subtotal)]), e.append(c, a);
|
|
307
|
-
},
|
|
308
|
-
$$slots: { default: !0 }
|
|
309
|
-
}), e.reset(n), e.append(i, n);
|
|
310
|
-
}, x = (i) => {
|
|
311
|
-
var n = j(), d = e.child(n);
|
|
312
|
-
v(d, {
|
|
313
|
-
size: "sm",
|
|
314
|
-
color: "muted",
|
|
315
|
-
children: (c, y) => {
|
|
316
|
-
e.next();
|
|
317
|
-
var a = e.text();
|
|
318
|
-
e.template_effect(() => e.set_text(a, r().subtotal || "Subtotal")), e.append(c, a);
|
|
319
|
-
},
|
|
320
|
-
$$slots: { default: !0 }
|
|
321
|
-
});
|
|
322
|
-
var b = e.sibling(d, 2);
|
|
323
|
-
v(b, {
|
|
324
|
-
size: "sm",
|
|
325
|
-
color: "muted",
|
|
326
|
-
children: (c, y) => {
|
|
327
|
-
e.next();
|
|
328
|
-
var a = e.text();
|
|
329
|
-
e.template_effect((k) => e.set_text(a, k), [() => $(s.orderTotals.subtotal)]), e.append(c, a);
|
|
330
|
-
},
|
|
331
|
-
$$slots: { default: !0 }
|
|
332
|
-
}), e.reset(n), e.append(i, n);
|
|
333
|
-
};
|
|
334
|
-
e.if(E, (i) => {
|
|
335
|
-
l() === "full" && s.orderTotals.lines.length > 1 ? i(C) : s.orderTotals.lines.length > 1 && i(x, 1);
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
var o = e.sibling(E, 2);
|
|
339
|
-
{
|
|
340
|
-
var T = (i) => {
|
|
341
|
-
var n = W(), d = e.child(n);
|
|
342
|
-
v(d, {
|
|
343
|
-
size: "sm",
|
|
344
|
-
color: "muted",
|
|
345
|
-
children: (c, y) => {
|
|
346
|
-
e.next();
|
|
347
|
-
var a = e.text();
|
|
348
|
-
e.template_effect(() => e.set_text(a, r().serviceFees || "Service fees")), e.append(c, a);
|
|
349
|
-
},
|
|
350
|
-
$$slots: { default: !0 }
|
|
351
|
-
});
|
|
352
|
-
var b = e.sibling(d, 2);
|
|
353
|
-
v(b, {
|
|
354
|
-
size: "sm",
|
|
355
|
-
color: "muted",
|
|
356
|
-
children: (c, y) => {
|
|
357
|
-
e.next();
|
|
358
|
-
var a = e.text();
|
|
359
|
-
e.template_effect((k) => e.set_text(a, k), [() => $(s.orderTotals.fees)]), e.append(c, a);
|
|
360
|
-
},
|
|
361
|
-
$$slots: { default: !0 }
|
|
362
|
-
}), e.reset(n), e.append(i, n);
|
|
363
|
-
};
|
|
364
|
-
e.if(o, (i) => {
|
|
365
|
-
s.orderTotals.fees > 0 && i(T);
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
var P = e.sibling(o, 2);
|
|
369
|
-
{
|
|
370
|
-
var _ = (i) => {
|
|
371
|
-
var n = V(), d = e.child(n);
|
|
372
|
-
v(d, {
|
|
373
|
-
size: "sm",
|
|
374
|
-
color: "muted",
|
|
375
|
-
children: (c, y) => {
|
|
376
|
-
e.next();
|
|
377
|
-
var a = e.text();
|
|
378
|
-
e.template_effect(() => e.set_text(a, r().taxes || "Taxes")), e.append(c, a);
|
|
379
|
-
},
|
|
380
|
-
$$slots: { default: !0 }
|
|
381
|
-
});
|
|
382
|
-
var b = e.sibling(d, 2);
|
|
383
|
-
v(b, {
|
|
384
|
-
size: "sm",
|
|
385
|
-
color: "muted",
|
|
386
|
-
children: (c, y) => {
|
|
387
|
-
e.next();
|
|
388
|
-
var a = e.text();
|
|
389
|
-
e.template_effect((k) => e.set_text(a, k), [() => $(s.orderTotals.taxes)]), e.append(c, a);
|
|
390
|
-
},
|
|
391
|
-
$$slots: { default: !0 }
|
|
392
|
-
}), e.reset(n), e.append(i, n);
|
|
393
|
-
};
|
|
394
|
-
e.if(P, (i) => {
|
|
395
|
-
s.orderTotals.taxes > 0 && i(_);
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
var S = e.sibling(P, 2);
|
|
399
|
-
{
|
|
400
|
-
var g = (i) => {
|
|
401
|
-
var n = K(), d = e.child(n);
|
|
402
|
-
v(d, {
|
|
403
|
-
size: "sm",
|
|
404
|
-
color: "success",
|
|
405
|
-
children: (c, y) => {
|
|
406
|
-
e.next();
|
|
407
|
-
var a = e.text();
|
|
408
|
-
e.template_effect(() => e.set_text(a, r().promoDiscount || "Promo discount")), e.append(c, a);
|
|
409
|
-
},
|
|
410
|
-
$$slots: { default: !0 }
|
|
411
|
-
});
|
|
412
|
-
var b = e.sibling(d, 2);
|
|
413
|
-
v(b, {
|
|
414
|
-
size: "sm",
|
|
415
|
-
color: "success",
|
|
416
|
-
children: (c, y) => {
|
|
417
|
-
e.next();
|
|
418
|
-
var a = e.text();
|
|
419
|
-
e.template_effect((k) => e.set_text(a, `-${k ?? ""}`), [() => $(s.orderTotals.promoDiscount)]), e.append(c, a);
|
|
420
|
-
},
|
|
421
|
-
$$slots: { default: !0 }
|
|
422
|
-
}), e.reset(n), e.append(i, n);
|
|
423
|
-
};
|
|
424
|
-
e.if(S, (i) => {
|
|
425
|
-
s.orderTotals.promoDiscount > 0 && i(g);
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
var q = e.sibling(S, 2);
|
|
429
|
-
{
|
|
430
|
-
var M = (i) => {
|
|
431
|
-
var n = X(), d = e.child(n);
|
|
432
|
-
v(d, {
|
|
433
|
-
size: "sm",
|
|
434
|
-
color: "success",
|
|
435
|
-
children: (c, y) => {
|
|
436
|
-
e.next();
|
|
437
|
-
var a = e.text();
|
|
438
|
-
e.template_effect(() => e.set_text(a, r().giftCard || "Gift card")), e.append(c, a);
|
|
439
|
-
},
|
|
440
|
-
$$slots: { default: !0 }
|
|
441
|
-
});
|
|
442
|
-
var b = e.sibling(d, 2);
|
|
443
|
-
v(b, {
|
|
444
|
-
size: "sm",
|
|
445
|
-
color: "success",
|
|
446
|
-
children: (c, y) => {
|
|
447
|
-
e.next();
|
|
448
|
-
var a = e.text();
|
|
449
|
-
e.template_effect((k) => e.set_text(a, `-${k ?? ""}`), [() => $(s.orderTotals.giftCardAmount)]), e.append(c, a);
|
|
450
|
-
},
|
|
451
|
-
$$slots: { default: !0 }
|
|
452
|
-
}), e.reset(n), e.append(i, n);
|
|
453
|
-
};
|
|
454
|
-
e.if(q, (i) => {
|
|
455
|
-
s.orderTotals.giftCardAmount > 0 && i(M);
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
var A = e.sibling(q, 2), F = e.child(A);
|
|
459
|
-
v(F, {
|
|
460
|
-
size: "base",
|
|
461
|
-
class: "font-semibold",
|
|
462
|
-
children: (i, n) => {
|
|
463
|
-
e.next();
|
|
464
|
-
var d = e.text();
|
|
465
|
-
e.template_effect(() => e.set_text(d, r().total || "Total")), e.append(i, d);
|
|
466
|
-
},
|
|
467
|
-
$$slots: { default: !0 }
|
|
468
|
-
});
|
|
469
|
-
var U = e.sibling(F, 2);
|
|
470
|
-
v(U, {
|
|
471
|
-
size: "base",
|
|
472
|
-
class: "font-semibold",
|
|
473
|
-
children: (i, n) => {
|
|
474
|
-
e.next();
|
|
475
|
-
var d = e.text();
|
|
476
|
-
e.template_effect((b) => e.set_text(d, b), [() => $(s.orderTotals.total)]), e.append(i, d);
|
|
477
|
-
},
|
|
478
|
-
$$slots: { default: !0 }
|
|
479
|
-
}), e.reset(A), e.append(m, w);
|
|
480
|
-
};
|
|
481
|
-
e.if(u, (m) => {
|
|
482
|
-
l() !== "lines" && m(D);
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
e.reset(f), e.template_effect(() => e.set_style(f, `transition-duration: ${L.normal}ms;`)), e.append(t, f), e.pop();
|
|
486
|
-
}
|
|
487
|
-
const Z = {
|
|
488
|
-
// ── Ticket quantity controls ──────────────────────────────────────
|
|
489
|
-
decrease: "Decrease",
|
|
490
|
-
increase: "Increase",
|
|
491
|
-
quantity: "quantity",
|
|
492
|
-
// ── Ticket states ─────────────────────────────────────────────────
|
|
493
|
-
soldOut: "Sold out",
|
|
494
|
-
free: "Free",
|
|
495
|
-
unavailable: "Unavailable",
|
|
496
|
-
eventSoldOut: "This event is sold out",
|
|
497
|
-
// ── Price display ─────────────────────────────────────────────────
|
|
498
|
-
includesFees: "Includes",
|
|
499
|
-
fees: "fees",
|
|
500
|
-
fee: "fee",
|
|
501
|
-
// ── Checkout CTAs ─────────────────────────────────────────────────
|
|
502
|
-
checkout: "Checkout",
|
|
503
|
-
getTickets: "Get tickets",
|
|
504
|
-
selectTickets: "Select tickets",
|
|
505
|
-
selectTicketsBelow: "Select tickets below",
|
|
506
|
-
selectTicketsToContinue: "Select tickets to continue",
|
|
507
|
-
reserveASpot: "Reserve a spot",
|
|
508
|
-
// ── Password modal / gate ─────────────────────────────────────────
|
|
509
|
-
enterPassword: "Enter Password",
|
|
510
|
-
enterEventPassword: "Enter event password",
|
|
511
|
-
passwordRequired: "Password Required",
|
|
512
|
-
passwordRequiredShort: "Password required",
|
|
513
|
-
eventRequiresPassword: "This event requires a password to purchase tickets.",
|
|
514
|
-
eventRequiresPasswordAccess: "This event requires a password to access tickets.",
|
|
515
|
-
enterEventPasswordToView: "Enter the event password to view tickets.",
|
|
516
|
-
enterEventPasswordToViewAvailable: "Enter the event password to view available tickets.",
|
|
517
|
-
eventPassword: "Event password",
|
|
518
|
-
password: "Password",
|
|
519
|
-
pleaseEnterPassword: "Please enter the event password",
|
|
520
|
-
pleaseEnterAPassword: "Please enter a password",
|
|
521
|
-
eventRequiresPasswordShort: "This event requires a password",
|
|
522
|
-
unlockTickets: "Unlock tickets",
|
|
523
|
-
cancel: "Cancel",
|
|
524
|
-
continue: "Continue",
|
|
525
|
-
submit: "Submit",
|
|
526
|
-
// ── Order summary ─────────────────────────────────────────────────
|
|
527
|
-
subtotal: "Subtotal",
|
|
528
|
-
serviceFees: "Service fees",
|
|
529
|
-
taxes: "Taxes",
|
|
530
|
-
tax: "Tax",
|
|
531
|
-
promoDiscount: "Promo discount",
|
|
532
|
-
giftCard: "Gift card",
|
|
533
|
-
total: "Total",
|
|
534
|
-
orderSummary: "Order summary",
|
|
535
|
-
yourOrder: "Your Order",
|
|
536
|
-
// ── Ticket counts (used in CTA buttons) ───────────────────────────
|
|
537
|
-
ticket: "ticket",
|
|
538
|
-
tickets: "tickets",
|
|
539
|
-
// ── Checkout form (public-calendar-flow) ───────────────────────────────
|
|
540
|
-
yourDetails: "Your details",
|
|
541
|
-
attendeeDetails: "Attendee details",
|
|
542
|
-
attendee: "Attendee",
|
|
543
|
-
sameAsPurchaser: "Same as purchaser",
|
|
544
|
-
payment: "Payment",
|
|
545
|
-
noPaymentRequired: "No payment required",
|
|
546
|
-
freeEventMessage: "This is a free event. Complete the form above to reserve your spot.",
|
|
547
|
-
firstName: "First name",
|
|
548
|
-
lastName: "Last name",
|
|
549
|
-
emailAddress: "Email address",
|
|
550
|
-
email: "Email",
|
|
551
|
-
emailPlaceholder: "you@example.com",
|
|
552
|
-
attendeeEmailPlaceholder: "attendee@example.com",
|
|
553
|
-
cardNumber: "Card number",
|
|
554
|
-
cardPlaceholder: "4242 4242 4242 4242",
|
|
555
|
-
expiryDate: "Expiry date",
|
|
556
|
-
expiryPlaceholder: "MM / YY",
|
|
557
|
-
cvc: "CVC",
|
|
558
|
-
cvcPlaceholder: "123",
|
|
559
|
-
keepMeUpdated: "Keep me updated about this event and similar events",
|
|
560
|
-
agreeToTerms: "I agree to the terms and conditions",
|
|
561
|
-
goBack: "Go back",
|
|
562
|
-
loadingPaymentForm: "Loading secure payment form...",
|
|
563
|
-
// ── Checkout form validation ──────────────────────────────────────
|
|
564
|
-
firstNameRequired: "First name is required",
|
|
565
|
-
lastNameRequired: "Last name is required",
|
|
566
|
-
emailRequired: "Email is required",
|
|
567
|
-
emailInvalid: "Enter a valid email address",
|
|
568
|
-
emailInvalidShort: "Enter a valid email",
|
|
569
|
-
cardNumberRequired: "Card number is required",
|
|
570
|
-
expiryRequired: "Expiry date is required",
|
|
571
|
-
cvcRequired: "CVC is required",
|
|
572
|
-
mustAgreeTerms: "You must agree to the terms",
|
|
573
|
-
// ── Place order CTAs ──────────────────────────────────────────────
|
|
574
|
-
placeOrder: "Place order",
|
|
575
|
-
completeOrder: "Complete order",
|
|
576
|
-
placingOrder: "Placing order...",
|
|
577
|
-
// ── Promo code ────────────────────────────────────────────────────
|
|
578
|
-
havePromoCode: "Have a promo code?",
|
|
579
|
-
promoCode: "Promo code",
|
|
580
|
-
enterCode: "Enter code",
|
|
581
|
-
apply: "Apply",
|
|
582
|
-
remove: "Remove",
|
|
583
|
-
removePromoCode: "Remove promo code",
|
|
584
|
-
applyPromoCode: "Apply promo code",
|
|
585
|
-
checkingPromoCode: "Checking promo code",
|
|
586
|
-
checking: "Checking...",
|
|
587
|
-
promoApplied: "Promo applied",
|
|
588
|
-
// ── Navigation tabs (app-segments) ────────────────────────────────
|
|
589
|
-
about: "About",
|
|
590
|
-
ticketsTab: "Tickets",
|
|
591
|
-
eventSections: "Event sections",
|
|
592
|
-
// ── Event details ─────────────────────────────────────────────────
|
|
593
|
-
eventDetails: "Event details",
|
|
594
|
-
performers: "Performers",
|
|
595
|
-
faq: "FAQ",
|
|
596
|
-
frequentlyAskedQuestions: "Frequently asked questions",
|
|
597
|
-
doors: "Doors",
|
|
598
|
-
doorsOpenAt: "Doors open at",
|
|
599
|
-
// ── Series occurrences ────────────────────────────────────────────
|
|
600
|
-
upcomingDates: "Upcoming Dates",
|
|
601
|
-
// ── Close / dismiss ───────────────────────────────────────────────
|
|
602
|
-
closeTicketSelection: "Close ticket selection",
|
|
603
|
-
closeTicketSelector: "Close ticket selector",
|
|
604
|
-
// ── Accessibility ─────────────────────────────────────────────────
|
|
605
|
-
ticketSelection: "ticket selection",
|
|
606
|
-
ticketsSelected: "tickets selected",
|
|
607
|
-
view: "View",
|
|
608
|
-
// ── Success page (public-calendar-flow) ────────────────────────────────
|
|
609
|
-
youreIn: "You're in!",
|
|
610
|
-
youreRegistered: "You're registered!",
|
|
611
|
-
confirmed: "confirmed",
|
|
612
|
-
viewTickets: "View tickets",
|
|
613
|
-
order: "Order",
|
|
614
|
-
confirmationSentTo: "Confirmation sent to",
|
|
615
|
-
addToCalendar: "Add to Calendar",
|
|
616
|
-
googleCalendar: "Google Calendar",
|
|
617
|
-
appleCalendar: "Apple Calendar (.ics)",
|
|
618
|
-
share: "Share",
|
|
619
|
-
map: "Map",
|
|
620
|
-
backToEvent: "Back to event",
|
|
621
|
-
needHelp: "Need help?",
|
|
622
|
-
linkCopied: "Link copied to clipboard!",
|
|
623
|
-
copyLink: "Copy this link:",
|
|
624
|
-
addToAppleWallet: "Add to Apple Wallet",
|
|
625
|
-
saveToGoogleWallet: "Save to Google Wallet",
|
|
626
|
-
// ── Session timer / expiration modals ─────────────────────────────
|
|
627
|
-
sessionExpiringSoon: "Session expiring soon",
|
|
628
|
-
sessionExpiringSoonMessage: "Your checkout session will expire in {time}. Your selected tickets will be released back to inventory.",
|
|
629
|
-
extensionsRemaining: "{count} extension{plural} remaining",
|
|
630
|
-
continueCheckout: "Continue checkout",
|
|
631
|
-
okIllHurry: "OK, I'll hurry",
|
|
632
|
-
maxExtensionsReached: "Maximum extensions reached",
|
|
633
|
-
wantToKeepTickets: "Want to keep your tickets?",
|
|
634
|
-
sessionExpiredMessage: "Your checkout session has expired and your selected tickets have been released.",
|
|
635
|
-
sessionExpired: "Session expired",
|
|
636
|
-
reservationTimedOut: "Your reservation has timed out. Please select your tickets again to continue.",
|
|
637
|
-
keepMyTickets: "Keep my tickets",
|
|
638
|
-
selectTicketsAgain: "Select tickets again",
|
|
639
|
-
extendingSession: "Extending...",
|
|
640
|
-
// ── MobileCta ─────────────────────────────────────────────────────
|
|
641
|
-
selectTicketsLabel: "Select Tickets"
|
|
642
|
-
};
|
|
643
|
-
function ve(t = {}) {
|
|
644
|
-
return { ...Z, ...t };
|
|
645
|
-
}
|
|
646
|
-
export {
|
|
647
|
-
L as D,
|
|
648
|
-
pe as O,
|
|
649
|
-
le as a,
|
|
650
|
-
de as b,
|
|
651
|
-
ue as c,
|
|
652
|
-
ce as d,
|
|
653
|
-
me as e,
|
|
654
|
-
fe as f,
|
|
655
|
-
ne as g,
|
|
656
|
-
I as h,
|
|
657
|
-
ve as m
|
|
658
|
-
};
|
|
659
|
-
//# sourceMappingURL=labels-CClq3Rb9.js.map
|