@getmicdrop/venue-calendar 4.3.56 → 4.3.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AddOnCard-TEUXB3Sd.js +340 -0
- package/dist/{ArrowLeftIcon-DjqiKzR8.js → ArrowLeftIcon-C0jreEw8.js} +1 -1
- package/dist/{BlockPlaceholder-CgZr2Euq.js → BlockPlaceholder-DdoOD0gZ.js} +1 -1
- package/dist/{Calendar-CS_RqyU_.js → Calendar-BWLg7fOl.js} +3 -3
- package/dist/{CalendarFoundryView-BLHPU4ry.js → CalendarFoundryView-apVO50Ap.js} +1602 -1535
- package/dist/{CalendarIcon-D9Z9YFz6.js → CalendarIcon-BOEpooZq.js} +1 -1
- package/dist/CartView-CTL1DQem.js +2293 -0
- package/dist/Checkout-B9OHWxzh.js +1933 -0
- package/dist/Checkout-D7Cgj12j.js +1076 -0
- package/dist/{CheckoutTimer-CyN-mQCP.js → CheckoutTimer-DPNmc1BX.js} +5 -5
- package/dist/{ChevronDownIcon-D9I-5bmz.js → ChevronDownIcon-Czxsi1W2.js} +1 -1
- package/dist/{CloseIcon-DPdjPdoi.js → CloseIcon-hLh5XXvh.js} +1 -1
- package/dist/{CollectionView-CkKwCXQj.js → CollectionView-LFCwHiPj.js} +13 -13
- package/dist/{Event-BfWRG4dm.js → Event-C63PLQhq.js} +431 -616
- package/dist/EventPage-CyDAwaQF.js +1200 -0
- package/dist/{Input-CDw-j5fQ.js → Input-dF1ZPavc.js} +1 -1
- package/dist/{MailIcon-C__hyCKr.js → MailIcon-T9SmOpQr.js} +1 -1
- package/dist/{PasswordInput-D3Pwparw.js → PasswordInput-B64o-TXR.js} +1 -1
- package/dist/{RecommendationsRail-DPxl9JCm.js → RecommendationsRail-Cb_c4ohM.js} +50 -50
- package/dist/ScarcityBadge-14VWzOL2.js +145 -0
- package/dist/{SeriesPage-B7z1yoAK.js → SeriesPage-DeALgf5s.js} +3 -3
- package/dist/Spinner-CW1KZMkc.js +19 -0
- package/dist/{Success-BzuOliUV.js → Success-Dcd9bWCn.js} +94 -95
- package/dist/{TagIcon-DwWcRiXS.js → TagIcon-C8DU69Jv.js} +1 -1
- package/dist/{ViewTicketsEmbed-BE8iTUF9.js → ViewTicketsEmbed-CWLSFG06.js} +14 -15
- package/dist/{WarningCircleIcon-C2fJjhKf.js → WarningCircleIcon-Cj8SHVfz.js} +26 -5
- package/dist/{WarningTriIcon-OqM9Rfwq.js → WarningTriIcon-CfCwvwsQ.js} +1 -1
- package/dist/__SKIP_NAVIGATION__-AOx8SI54.js +6 -0
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +226 -178
- package/dist/api/cart-addons.d.ts +61 -0
- package/dist/api/index.d.ts +4 -2
- package/dist/api/orders.d.ts +48 -0
- package/dist/api/transformers/venue.d.ts +14 -1
- package/dist/{api-BsBSvoNj.js → api-Br260RVo.js} +206 -143
- package/dist/{constants-CJyMUKEX.js → constants-DWS8C09a.js} +4 -0
- package/dist/{copyToClipboard-CL9BmJA4.js → copyToClipboard-C_fcBdn4.js} +1 -1
- package/dist/{createErrorGate.svelte-DwTTmYou.js → createErrorGate.svelte-jZMaO7KA.js} +1 -1
- package/dist/{de-CFh1o4IO.js → de-BEfuIgIj.js} +4 -0
- package/dist/{defaultLabels-BaVkGLw4.js → defaultLabels-CqkC-rOG.js} +530 -427
- package/dist/{defaults-BHXY6s4i.js → defaults-BLhQWNFt.js} +2 -2
- package/dist/{es-By1tBWcL.js → es-Bd4g_HxR.js} +4 -0
- package/dist/{event-xgg-eiTq.js → event-DaWMe2IV.js} +1 -1
- package/dist/{event-transform-oLpmof1H.js → event-transform-WnvEyzV-.js} +19 -19
- package/dist/{eventStatusStream-BIxriEut.js → eventStatusStream-DgWemzCE.js} +5 -5
- package/dist/{fr-BF6a7cw7.js → fr-Blc79wvV.js} +4 -0
- package/dist/{href-DO3HKeJp.js → href-x-W1j8EY.js} +2 -2
- package/dist/{i18n-8EWq-WHv.js → i18n-DFWp9lQ_.js} +2 -2
- package/dist/{i18n-JpkI3lvS.js → i18n-DgjCm8g6.js} +93 -93
- package/dist/{id-Lo_q281j.js → id-DzzsiF4d.js} +4 -0
- package/dist/{it-CQcRIzL4.js → it-B4zXRsxu.js} +4 -0
- package/dist/{ja-DOzvvYpK.js → ja-eT4_QPKd.js} +4 -0
- package/dist/{ko-b-vWxFpt.js → ko-B8Fmrldj.js} +4 -0
- package/dist/locales/4.3.58/flow/de.js +1 -0
- package/dist/locales/4.3.58/flow/es.js +1 -0
- package/dist/locales/4.3.58/flow/fr.js +1 -0
- package/dist/locales/4.3.58/flow/id.js +1 -0
- package/dist/locales/4.3.58/flow/it.js +1 -0
- package/dist/locales/4.3.58/flow/ja.js +1 -0
- package/dist/locales/4.3.58/flow/ko.js +1 -0
- package/dist/locales/4.3.58/flow/nl.js +1 -0
- package/dist/locales/4.3.58/flow/pl.js +1 -0
- package/dist/locales/4.3.58/flow/pt-br.js +1 -0
- package/dist/locales/4.3.58/flow/tr.js +1 -0
- package/dist/locales/4.3.58/flow/zh.js +1 -0
- package/dist/{nl-Dazc9kaV.js → nl-Dnug8LYt.js} +4 -0
- package/dist/{orders--luy9Lyn.js → orders-DlyjunUM.js} +60 -44
- package/dist/{pixels-FefBmhJt.js → pixels-n1zu1IhF.js} +9 -9
- package/dist/{pl-tSyy-lx_.js → pl-C3XxoYWF.js} +4 -0
- package/dist/{pt-br-BxzrK97M.js → pt-br-Y40SBe4b.js} +4 -0
- package/dist/{scarcity-CR1Pa81F.js → scarcity-KJNxIMxj.js} +100 -100
- package/dist/{serverTotals-DeOPPRj6.js → serverTotals-Cb7pt5Z-.js} +8 -8
- package/dist/{showcase-state-options-BGmvUaQ_.js → showcase-state-options-Ce1_tYvH.js} +1 -1
- package/dist/{to-event-card-props-DLOxO2oP.js → to-event-card-props-KoNvp_D9.js} +15 -16
- package/dist/{tr-DhAMB3UQ.js → tr-2zIJ-vq2.js} +4 -0
- package/dist/types/index.d.ts +14 -0
- package/dist/{utils-BFaSYuNA.js → utils-VHFV7pBb.js} +69 -69
- package/dist/{venue-CBos8YTa.js → venue-BBoZBuhu.js} +1 -0
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +223 -224
- package/dist/venue-calendar.iife.js +31 -31
- package/dist/venue-calendar.umd.js +49 -49
- package/dist/{zh-C2-VLP_R.js → zh-vNYvCXO7.js} +4 -0
- package/package.json +220 -220
- package/dist/Badge-BsWJrQII.js +0 -108
- package/dist/CartView-DTXoQTOC.js +0 -2294
- package/dist/Checkout-B8ZkBxF_.js +0 -1023
- package/dist/Checkout-QIxYrkeK.js +0 -1832
- package/dist/ClockIcon-C7nkbmvv.js +0 -25
- package/dist/EventPage-dCTHvk7P.js +0 -1201
- package/dist/ScarcityBadge-BXn6HM_K.js +0 -116
- package/dist/Spinner-6UtYyNcF.js +0 -16
- package/dist/liveAnnouncer-D3xVL7qA.js +0 -32
- package/dist/locales/4.3.56/flow/de.js +0 -1
- package/dist/locales/4.3.56/flow/es.js +0 -1
- package/dist/locales/4.3.56/flow/fr.js +0 -1
- package/dist/locales/4.3.56/flow/id.js +0 -1
- package/dist/locales/4.3.56/flow/it.js +0 -1
- package/dist/locales/4.3.56/flow/ja.js +0 -1
- package/dist/locales/4.3.56/flow/ko.js +0 -1
- package/dist/locales/4.3.56/flow/nl.js +0 -1
- package/dist/locales/4.3.56/flow/pl.js +0 -1
- package/dist/locales/4.3.56/flow/pt-br.js +0 -1
- package/dist/locales/4.3.56/flow/tr.js +0 -1
- package/dist/locales/4.3.56/flow/zh.js +0 -1
- package/dist/order-totals-5X0jD77w.js +0 -151
- package/dist/promo-BNwWtZjP.js +0 -37
- /package/dist/locales/{4.3.56 → 4.3.58}/main/de.js +0 -0
- /package/dist/locales/{4.3.56 → 4.3.58}/main/es.js +0 -0
- /package/dist/locales/{4.3.56 → 4.3.58}/main/fr.js +0 -0
- /package/dist/locales/{4.3.56 → 4.3.58}/main/id.js +0 -0
- /package/dist/locales/{4.3.56 → 4.3.58}/main/it.js +0 -0
- /package/dist/locales/{4.3.56 → 4.3.58}/main/ja.js +0 -0
- /package/dist/locales/{4.3.56 → 4.3.58}/main/ko.js +0 -0
- /package/dist/locales/{4.3.56 → 4.3.58}/main/nl.js +0 -0
- /package/dist/locales/{4.3.56 → 4.3.58}/main/pl.js +0 -0
- /package/dist/locales/{4.3.56 → 4.3.58}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.56 → 4.3.58}/main/tr.js +0 -0
- /package/dist/locales/{4.3.56 → 4.3.58}/main/zh.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e, d as t, h as n, m as r, p as i, v as a } from "./sizing-CFDo_qh_.js";
|
|
2
2
|
import { t as o } from "./ExclamationCircleOutline-D3XbhOwM.js";
|
|
3
|
-
import { b as s } from "./scarcity-
|
|
3
|
+
import { b as s } from "./scarcity-KJNxIMxj.js";
|
|
4
4
|
import { d as c, n as l, r as u } from "./z-index-Bo0dqmiq.js";
|
|
5
5
|
import { t as d } from "./RequiredIndicator-CYcnRFsA.js";
|
|
6
6
|
import "svelte/internal/disclose-version";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { K as e } from "./scarcity-
|
|
1
|
+
import { K as e } from "./scarcity-KJNxIMxj.js";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as t from "svelte/internal/client";
|
|
4
4
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/DownloadIcon.svelte
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as e } from "./sizing-CFDo_qh_.js";
|
|
2
|
-
import { t } from "./Input-
|
|
2
|
+
import { t } from "./Input-dF1ZPavc.js";
|
|
3
3
|
import { d as n, n as r, r as i } from "./z-index-Bo0dqmiq.js";
|
|
4
4
|
import { t as a } from "./lazyOnce-CCfEO1xG.js";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { K as e, f as t, i as n } from "./scarcity-
|
|
2
|
-
import { t as r } from "./copyToClipboard-
|
|
3
|
-
import {
|
|
1
|
+
import { K as e, f as t, i as n } from "./scarcity-KJNxIMxj.js";
|
|
2
|
+
import { t as r } from "./copyToClipboard-C_fcBdn4.js";
|
|
3
|
+
import { C as i, O as a, g as o, x as s } from "./defaultLabels-CqkC-rOG.js";
|
|
4
4
|
import { r as c } from "./Button-AZ8OLQqj.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as p } from "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as y } from "./event-
|
|
12
|
-
import { t as b } from "./venue-
|
|
5
|
+
import { G as l, V as u, z as d } from "./orders-DlyjunUM.js";
|
|
6
|
+
import { F as f } from "./api-Br260RVo.js";
|
|
7
|
+
import { t as p } from "./Heading-CZMbiuFu.js";
|
|
8
|
+
import { t as m } from "./Grid-kuP6V0GW.js";
|
|
9
|
+
import { i as h, s as g, t as _ } from "./to-event-card-props-KoNvp_D9.js";
|
|
10
|
+
import { n as v } from "./imageUrl-Bata3II2.js";
|
|
11
|
+
import { t as y } from "./event-DaWMe2IV.js";
|
|
12
|
+
import { t as b } from "./venue-BBoZBuhu.js";
|
|
13
13
|
import "svelte/internal/disclose-version";
|
|
14
14
|
import * as x from "svelte/internal/client";
|
|
15
15
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte
|
|
@@ -89,7 +89,7 @@ function M(e) {
|
|
|
89
89
|
//#endregion
|
|
90
90
|
//#region src/lib/api/transformers/series.ts
|
|
91
91
|
function N(e) {
|
|
92
|
-
let t = e.seriesId ?? e.id ?? 0, r = e,
|
|
92
|
+
let t = e.seriesId ?? e.id ?? 0, r = e, a = i(e.timeZone || r.timezone || r.time_zone), o = v(e.image || "", { cdn: !0 }), s = (e.occurrences || []).map((e) => {
|
|
93
93
|
let t = e.venue, n = t ? [t.name, t.stageName].filter(Boolean).join(" — ") : "", r = t ? t.googleLocationNameCache || [
|
|
94
94
|
t.address,
|
|
95
95
|
t.city,
|
|
@@ -106,7 +106,7 @@ function N(e) {
|
|
|
106
106
|
...n ? { venueName: n } : {},
|
|
107
107
|
...r ? { venueAddress: r } : {}
|
|
108
108
|
};
|
|
109
|
-
}), c = e.occurrences?.[0], l = c?.startDateTime ? n(c.startDateTime,
|
|
109
|
+
}), c = e.occurrences?.[0], l = c?.startDateTime ? n(c.startDateTime, a) : "", u = M(e.venue?.faq), d = (e.performers || []).map((e, t) => ({
|
|
110
110
|
id: t + 1,
|
|
111
111
|
displayName: e.displayName || [e.firstName, e.lastName].filter(Boolean).join(" "),
|
|
112
112
|
profileImage: e.profileImage || void 0
|
|
@@ -120,13 +120,13 @@ function N(e) {
|
|
|
120
120
|
startDateTime: c?.startDateTime || "",
|
|
121
121
|
endDateTime: c?.endDateTime || "",
|
|
122
122
|
doorsOpenTime: "",
|
|
123
|
-
timezone:
|
|
123
|
+
timezone: a,
|
|
124
124
|
imageUrl: o,
|
|
125
125
|
venue: {
|
|
126
126
|
id: e.venue?.id || 0,
|
|
127
127
|
name: e.venue?.name || "",
|
|
128
128
|
address: f,
|
|
129
|
-
timezone:
|
|
129
|
+
timezone: a,
|
|
130
130
|
serviceFeePercentage: 0,
|
|
131
131
|
serviceFeeCents: 0,
|
|
132
132
|
taxPercentage: 0
|
|
@@ -154,11 +154,11 @@ function P(e) {
|
|
|
154
154
|
id: e.id,
|
|
155
155
|
name: e.title || "",
|
|
156
156
|
slug: e.slug || "",
|
|
157
|
-
image:
|
|
157
|
+
image: v(e.image || "", { cdn: !0 }),
|
|
158
158
|
startDateTime: e.startDateTime || "",
|
|
159
159
|
status: e.status || "on_sale",
|
|
160
160
|
timezone: e.timeZone || e.timezone || e.venue?.timeZone || e.venue?.timezone || ""
|
|
161
|
-
})), n =
|
|
161
|
+
})), n = v(e.coverImage || "", { cdn: !0 });
|
|
162
162
|
return {
|
|
163
163
|
id: e.id,
|
|
164
164
|
title: e.collectionTitle || "",
|
|
@@ -168,13 +168,13 @@ function P(e) {
|
|
|
168
168
|
startDateTime: "",
|
|
169
169
|
endDateTime: "",
|
|
170
170
|
doorsOpenTime: "",
|
|
171
|
-
timezone:
|
|
171
|
+
timezone: a,
|
|
172
172
|
imageUrl: n,
|
|
173
173
|
venue: {
|
|
174
174
|
id: 0,
|
|
175
175
|
name: "",
|
|
176
176
|
address: "",
|
|
177
|
-
timezone:
|
|
177
|
+
timezone: a,
|
|
178
178
|
serviceFeePercentage: 0,
|
|
179
179
|
serviceFeeCents: 0,
|
|
180
180
|
taxPercentage: 0
|
|
@@ -196,10 +196,10 @@ function P(e) {
|
|
|
196
196
|
function F(e) {
|
|
197
197
|
let t = c(), n = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity ?? 0, r = e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart, i = e.salesEnd || e.saleEnd || e.onSaleEnd;
|
|
198
198
|
if (n <= 0) return "sold_out";
|
|
199
|
-
let a =
|
|
200
|
-
if (a &&
|
|
201
|
-
let l =
|
|
202
|
-
return l &&
|
|
199
|
+
let a = s(i);
|
|
200
|
+
if (a && o(a, t) < 0) return "sales_ended";
|
|
201
|
+
let l = s(r);
|
|
202
|
+
return l && o(l, t) > 0 ? "coming_soon" : "on_sale";
|
|
203
203
|
}
|
|
204
204
|
function I(e, t, n = !1) {
|
|
205
205
|
let r = (e || "").toLowerCase().replace(/\s+/g, "_");
|
|
@@ -216,7 +216,7 @@ function I(e, t, n = !1) {
|
|
|
216
216
|
return r === "sold_out" || r === "soldout" ? "sold_out" : r === "coming_soon" || r === "comingsoon" ? "coming_soon" : r === "sales_ended" || r === "salesended" ? "sales_ended" : "on_sale";
|
|
217
217
|
}
|
|
218
218
|
function L(e) {
|
|
219
|
-
let r = y(e),
|
|
219
|
+
let r = y(e), a = r.venue || {}, o = i(r.timeZone || r.timezone || a.timeZone || a.timezone), s = (e.availableTickets || []).map((e) => ({
|
|
220
220
|
id: e.id || e.ID,
|
|
221
221
|
name: e.name || e.title || "",
|
|
222
222
|
description: e.description || void 0,
|
|
@@ -230,24 +230,24 @@ function L(e) {
|
|
|
230
230
|
salesStartDate: e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart || void 0,
|
|
231
231
|
salesEndDate: e.salesEnd || e.saleEnd || e.onSaleEnd || void 0,
|
|
232
232
|
isDonation: e.type === 2 || e.ticketType === 2 || e.isDonation === !0,
|
|
233
|
-
isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >=
|
|
233
|
+
isHidden: e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= f.HIDDEN,
|
|
234
234
|
ticketType: e.type || e.ticketType || void 0,
|
|
235
235
|
sectionName: e.sectionName || e.section || void 0
|
|
236
|
-
})), c = s.filter((e) => !e.isHidden && !e.isDonation && e.status === "on_sale"), l = c.reduce((e, t) => e + t.quantityAvailable, 0), u = c.reduce((e, t) => e + t.quantityTotal, 0), d = e.hasPurchasableHiddenTickets === !0,
|
|
237
|
-
id:
|
|
238
|
-
name:
|
|
239
|
-
address:
|
|
236
|
+
})), c = s.filter((e) => !e.isHidden && !e.isDonation && e.status === "on_sale"), l = c.reduce((e, t) => e + t.quantityAvailable, 0), u = c.reduce((e, t) => e + t.quantityTotal, 0), d = e.hasPurchasableHiddenTickets === !0, p = I(r.status, s, d), m = e.image || e.imageUrl || e.image_url || "", h = m.startsWith("http") ? m : v(m, { cdn: !0 }), g = {
|
|
237
|
+
id: a.id || a.ID || 0,
|
|
238
|
+
name: a.name || a.googleLocationNameCache || "",
|
|
239
|
+
address: a.address || a.googleLocationNameCache || "",
|
|
240
240
|
timezone: o,
|
|
241
|
-
serviceFeePercentage:
|
|
242
|
-
serviceFeeCents:
|
|
243
|
-
taxPercentage:
|
|
244
|
-
contactEmail:
|
|
245
|
-
},
|
|
241
|
+
serviceFeePercentage: a.serviceFeePercentage ?? a.fee ?? 0,
|
|
242
|
+
serviceFeeCents: a.serviceFeeCents == null ? 0 : a.serviceFeeCents,
|
|
243
|
+
taxPercentage: a.taxPercentage ?? a.tax ?? 0,
|
|
244
|
+
contactEmail: a.contactEmail || a.email || void 0
|
|
245
|
+
}, _ = (r.performers || []).map((e) => ({
|
|
246
246
|
id: e.id || e.ID,
|
|
247
247
|
displayName: e.displayName || e.name || "",
|
|
248
248
|
profileImage: e.avatar || e.profileImage || void 0,
|
|
249
249
|
role: e.role || void 0
|
|
250
|
-
})), x = r.faqs ? M(r.faqs) : M(
|
|
250
|
+
})), x = r.faqs ? M(r.faqs) : M(a.faq), S = (r.showtimes || []).filter((e) => e.published !== !1).map((e, t) => ({
|
|
251
251
|
id: e.id ?? e.eventId ?? t + 1,
|
|
252
252
|
slug: e.slug || "",
|
|
253
253
|
startDateTime: e.startDateTime || e.startTime || "",
|
|
@@ -266,15 +266,15 @@ function L(e) {
|
|
|
266
266
|
endDateTime: r.endDateTime || "",
|
|
267
267
|
doorsOpenTime: r.doorsOpenTime || "",
|
|
268
268
|
timezone: o,
|
|
269
|
-
imageUrl:
|
|
270
|
-
venue:
|
|
271
|
-
performers:
|
|
269
|
+
imageUrl: h,
|
|
270
|
+
venue: g,
|
|
271
|
+
performers: _,
|
|
272
272
|
tickets: s,
|
|
273
273
|
...Array.isArray(e.addOns) && e.addOns.length > 0 ? { addOns: e.addOns } : {},
|
|
274
274
|
faqs: x,
|
|
275
|
-
disclaimer: r.disclaimer ||
|
|
276
|
-
...b(
|
|
277
|
-
status:
|
|
275
|
+
disclaimer: r.disclaimer || a.disclaimer || void 0,
|
|
276
|
+
...b(a),
|
|
277
|
+
status: p,
|
|
278
278
|
salesStatus: r.salesStatus || void 0,
|
|
279
279
|
...d ? { hasPurchasableHiddenTickets: !0 } : {},
|
|
280
280
|
eventSeriesId: r.eventSeriesId || void 0,
|
|
@@ -293,8 +293,8 @@ function L(e) {
|
|
|
293
293
|
summary: r.eventSummary || void 0,
|
|
294
294
|
postSalesMessage: r.postSalesMessage || void 0,
|
|
295
295
|
collectionId: r.collectionId || void 0,
|
|
296
|
-
venueAddressLines: E(
|
|
297
|
-
googleMapsUrl: D(
|
|
296
|
+
venueAddressLines: E(a.address || a.googleLocationNameCache || ""),
|
|
297
|
+
googleMapsUrl: D(a.address || a.googleLocationNameCache || "")
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
function R(e) {
|
|
@@ -340,9 +340,9 @@ function V() {
|
|
|
340
340
|
var H = /* @__PURE__ */ new Map();
|
|
341
341
|
function U(e, t = "event_page", n) {
|
|
342
342
|
if (!e) return Promise.resolve([]);
|
|
343
|
-
let r = `${
|
|
343
|
+
let r = `${d()}/events/${e}/recommendations?surface=${t}`, i = n || l() || "", a = `${r}|${i}`, o = H.get(a);
|
|
344
344
|
if (o) return o;
|
|
345
|
-
let s =
|
|
345
|
+
let s = u(r, { widgetKey: i || void 0 }).then((e) => e?.recommendations ?? [], () => []);
|
|
346
346
|
H.set(a, s);
|
|
347
347
|
let c = () => H.delete(a);
|
|
348
348
|
return s.then(c, c), s;
|
|
@@ -377,7 +377,7 @@ function J(e, t) {
|
|
|
377
377
|
r = !1;
|
|
378
378
|
};
|
|
379
379
|
});
|
|
380
|
-
let a = x.derived(() =>
|
|
380
|
+
let a = x.derived(() => h(W(x.get(i))));
|
|
381
381
|
function o(e) {
|
|
382
382
|
let n = s(e);
|
|
383
383
|
if (!n) return "";
|
|
@@ -403,7 +403,7 @@ function J(e, t) {
|
|
|
403
403
|
}
|
|
404
404
|
var l = x.comment(), u = x.first_child(l), d = (e) => {
|
|
405
405
|
var n = q(), i = x.child(n), s = x.child(i);
|
|
406
|
-
|
|
406
|
+
p(s, {
|
|
407
407
|
size: "xl",
|
|
408
408
|
weight: "semibold",
|
|
409
409
|
children: (e, n) => {
|
|
@@ -414,7 +414,7 @@ function J(e, t) {
|
|
|
414
414
|
$$slots: { default: !0 }
|
|
415
415
|
}), x.reset(i);
|
|
416
416
|
var l = x.sibling(i, 2);
|
|
417
|
-
|
|
417
|
+
m(l, {
|
|
418
418
|
cols: "auto",
|
|
419
419
|
minWidth: "240px",
|
|
420
420
|
gap: "6",
|
|
@@ -422,14 +422,14 @@ function J(e, t) {
|
|
|
422
422
|
var i = x.comment(), s = x.first_child(i);
|
|
423
423
|
x.each(s, 17, () => x.get(a), (e) => e.event.eventID, (e, n) => {
|
|
424
424
|
let i = x.derived(() => {
|
|
425
|
-
let { pillEvents: e, ...i } =
|
|
425
|
+
let { pillEvents: e, ...i } = _(x.get(n), t.labels, r());
|
|
426
426
|
return {
|
|
427
427
|
_pillEvents: e,
|
|
428
428
|
card: i
|
|
429
429
|
};
|
|
430
430
|
});
|
|
431
431
|
var a = K(), s = x.child(a);
|
|
432
|
-
|
|
432
|
+
g(s, x.spread_props(() => x.get(i).card, {
|
|
433
433
|
layout: "vertical",
|
|
434
434
|
density: "standard",
|
|
435
435
|
get placeholderImage() {
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { K as e, n as t } from "./scarcity-KJNxIMxj.js";
|
|
2
|
+
import { t as n } from "./WarningCircleIcon-Cj8SHVfz.js";
|
|
3
|
+
import { A as r, I as i, N as a, i as o, j as s, t as c } from "./defaultLabels-CqkC-rOG.js";
|
|
4
|
+
import { V as l } from "./api-Br260RVo.js";
|
|
5
|
+
import "svelte/internal/disclose-version";
|
|
6
|
+
import * as u from "svelte/internal/client";
|
|
7
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/SubtractIcon.svelte
|
|
8
|
+
var d = u.from_svg("<path d=\"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z\"></path>"), f = u.from_svg("<line x1=\"40\" y1=\"128\" x2=\"216\" y2=\"128\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line>"), p = u.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
9
|
+
function m(t, n) {
|
|
10
|
+
u.push(n, !0);
|
|
11
|
+
let r = u.prop(n, "size", 3, "24"), i = u.prop(n, "color", 3, "currentColor"), a = u.prop(n, "class", 3, ""), o = e(), s = u.derived(() => n.weight ?? o?.weight ?? "regular");
|
|
12
|
+
var c = p();
|
|
13
|
+
let l;
|
|
14
|
+
var m = u.child(c), h = (e) => {
|
|
15
|
+
var t = d();
|
|
16
|
+
u.append(e, t);
|
|
17
|
+
}, g = (e) => {
|
|
18
|
+
var t = f();
|
|
19
|
+
u.append(e, t);
|
|
20
|
+
};
|
|
21
|
+
u.if(m, (e) => {
|
|
22
|
+
u.get(s) === "fill" ? e(h) : e(g, -1);
|
|
23
|
+
}), u.reset(c), u.template_effect(() => {
|
|
24
|
+
u.set_class(c, 0, u.clsx(a())), u.set_attribute(c, "width", r()), u.set_attribute(c, "height", r()), l = u.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
|
|
25
|
+
}), u.append(t, c), u.pop();
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/lib/utils/promo.ts
|
|
29
|
+
var h = [
|
|
30
|
+
"percentage",
|
|
31
|
+
"%",
|
|
32
|
+
"fixed",
|
|
33
|
+
"$"
|
|
34
|
+
];
|
|
35
|
+
function g(e) {
|
|
36
|
+
return h.includes(e);
|
|
37
|
+
}
|
|
38
|
+
function _(e) {
|
|
39
|
+
return e === "percentage" || e === "%";
|
|
40
|
+
}
|
|
41
|
+
function v(e) {
|
|
42
|
+
if (e.appliesToAllTickets !== !1) return [];
|
|
43
|
+
let t = e.applyToTicketIds;
|
|
44
|
+
return Array.isArray(t) && t.length > 0 ? [...t] : [];
|
|
45
|
+
}
|
|
46
|
+
function y(e, t) {
|
|
47
|
+
if (!e || e.length === 0) return !0;
|
|
48
|
+
let n = Number(t);
|
|
49
|
+
return Number.isFinite(n) ? e.some((e) => Number(e) === n) : !1;
|
|
50
|
+
}
|
|
51
|
+
function b(e, t, n) {
|
|
52
|
+
if (!g(n) || !(t > 0) || !(e > 0)) return 0;
|
|
53
|
+
let r = _(n) ? e * t / 100 : t;
|
|
54
|
+
return Math.round(Math.max(0, Math.min(e, r)) * 100) / 100;
|
|
55
|
+
}
|
|
56
|
+
function x(e, t, n, o) {
|
|
57
|
+
if (!g(o) || !(n > 0)) return 0;
|
|
58
|
+
if (!_(o)) return b(t, n, o);
|
|
59
|
+
let c = e.filter(({ quantity: e }) => e > 0).map(({ unitPrice: e, quantity: t }) => a(s(b(e, n, o)), t));
|
|
60
|
+
return r(i(c));
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/components/ScarcityBadge.svelte
|
|
64
|
+
var S = 200, C = Object.create(null);
|
|
65
|
+
function w(e) {
|
|
66
|
+
(C[e] ??= l(S))(e, { politeness: "polite" });
|
|
67
|
+
}
|
|
68
|
+
var T = u.from_html("<span><!> </span>");
|
|
69
|
+
function E(e, r) {
|
|
70
|
+
u.push(r, !0);
|
|
71
|
+
let i = u.prop(r, "context", 3, "browse"), a = u.prop(r, "variant", 3, "default"), s = u.prop(r, "isFree", 3, !1), l = u.prop(r, "labels", 3, c), d = u.derived(() => t(r.remaining, r.total)), f = u.derived(() => {
|
|
72
|
+
let e = l().statusSoldOut || "Sold out", t = l().statusSellingFast || "Selling fast", n = l().scarcityOnlyNLeft || "Only {remaining} left";
|
|
73
|
+
return u.get(d) === "sold-out" ? {
|
|
74
|
+
type: "sold-out",
|
|
75
|
+
text: e,
|
|
76
|
+
showFlame: !1
|
|
77
|
+
} : s() ? null : i() === "browse" ? u.get(d) === "urgent" || u.get(d) === "low" ? {
|
|
78
|
+
type: "scarcity",
|
|
79
|
+
text: t,
|
|
80
|
+
showFlame: !0
|
|
81
|
+
} : null : u.get(d) === "urgent" ? {
|
|
82
|
+
type: "scarcity",
|
|
83
|
+
text: n.replace("{remaining}", String(r.remaining)),
|
|
84
|
+
showFlame: !0
|
|
85
|
+
} : u.get(d) === "low" ? {
|
|
86
|
+
type: "scarcity",
|
|
87
|
+
text: t,
|
|
88
|
+
showFlame: !0
|
|
89
|
+
} : null;
|
|
90
|
+
}), p = u.derived(() => u.get(f)?.type === "sold-out" ? "error" : "warning"), m = u.derived(() => u.get(f)?.type === "sold-out" ? l().statusSoldOut || "Sold out" : `${l().scarcityLowAvailability || "Low availability"}: ${u.get(f)?.text}`), h = !1;
|
|
91
|
+
u.user_effect(() => {
|
|
92
|
+
let e = u.get(f)?.text;
|
|
93
|
+
if (!h) {
|
|
94
|
+
h = !0;
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
e && w(e);
|
|
98
|
+
});
|
|
99
|
+
var g = u.comment(), _ = u.first_child(g), v = (e) => {
|
|
100
|
+
var t = u.comment(), r = u.first_child(t), i = (e) => {
|
|
101
|
+
var t = T(), r = u.child(t), i = (e) => {
|
|
102
|
+
n(e, { size: "16" });
|
|
103
|
+
};
|
|
104
|
+
u.if(r, (e) => {
|
|
105
|
+
u.get(f).showFlame && e(i);
|
|
106
|
+
});
|
|
107
|
+
var a = u.sibling(r);
|
|
108
|
+
u.reset(t), u.template_effect(() => {
|
|
109
|
+
u.set_class(t, 1, `inline-flex items-center gap-1 type-caption ${u.get(f).type === "sold-out" ? "text-status-error-text" : "text-accent-warning"}`), u.set_attribute(t, "aria-label", u.get(m)), u.set_text(a, ` ${u.get(f).text ?? ""}`);
|
|
110
|
+
}), u.append(e, t);
|
|
111
|
+
}, s = (e) => {
|
|
112
|
+
o(e, {
|
|
113
|
+
get variant() {
|
|
114
|
+
return u.get(p);
|
|
115
|
+
},
|
|
116
|
+
size: "sm",
|
|
117
|
+
leftIcon: (e) => {
|
|
118
|
+
var t = u.comment(), r = u.first_child(t), i = (e) => {
|
|
119
|
+
n(e, { size: "16" });
|
|
120
|
+
};
|
|
121
|
+
u.if(r, (e) => {
|
|
122
|
+
u.get(f).showFlame && e(i);
|
|
123
|
+
}), u.append(e, t);
|
|
124
|
+
},
|
|
125
|
+
children: (e, t) => {
|
|
126
|
+
u.next();
|
|
127
|
+
var n = u.text();
|
|
128
|
+
u.template_effect(() => u.set_text(n, u.get(f).text)), u.append(e, n);
|
|
129
|
+
},
|
|
130
|
+
$$slots: {
|
|
131
|
+
leftIcon: !0,
|
|
132
|
+
default: !0
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
u.if(r, (e) => {
|
|
137
|
+
a() === "minimal" ? e(i) : e(s, -1);
|
|
138
|
+
}), u.append(e, t);
|
|
139
|
+
};
|
|
140
|
+
u.if(_, (e) => {
|
|
141
|
+
u.get(f) && e(v);
|
|
142
|
+
}), u.append(e, g), u.pop();
|
|
143
|
+
}
|
|
144
|
+
//#endregion
|
|
145
|
+
export { x as a, v as i, _ as n, b as o, y as r, m as s, E as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "./Event-
|
|
1
|
+
import { t as e } from "./Event-C63PLQhq.js";
|
|
2
2
|
import { g as t } from "./sizing-CFDo_qh_.js";
|
|
3
|
-
import { a as n } from "./RecommendationsRail-
|
|
4
|
-
import {
|
|
3
|
+
import { a as n } from "./RecommendationsRail-Cb_c4ohM.js";
|
|
4
|
+
import { t as r } from "./__SKIP_NAVIGATION__-AOx8SI54.js";
|
|
5
5
|
import { t as i } from "./__SKIP_PATHS__-C0ixDSSm.js";
|
|
6
6
|
import "svelte/internal/disclose-version";
|
|
7
7
|
import * as a from "svelte/internal/client";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { l as e, v as t } from "./sizing-CFDo_qh_.js";
|
|
2
|
+
import { W as n } from "./defaultLabels-CqkC-rOG.js";
|
|
3
|
+
import "svelte/internal/disclose-version";
|
|
4
|
+
import * as r from "svelte/internal/client";
|
|
5
|
+
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Spinner/Spinner.svelte
|
|
6
|
+
var i = r.from_html("<span class=\"sr-only\" role=\"status\" aria-live=\"polite\"> </span>"), a = r.from_html("<svg aria-hidden=\"true\" viewBox=\"0 0 100 101\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\" fill=\"currentColor\"></path><path d=\"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\" fill=\"currentFill\"></path></svg> <!>", 1);
|
|
7
|
+
function o(o, s) {
|
|
8
|
+
r.push(s, !0);
|
|
9
|
+
let c = { loading: "Loading..." }, l = r.prop(s, "size", 3, "md"), u = r.prop(s, "color", 3, "blue"), d = r.prop(s, "class", 3, ""), f = r.prop(s, "labels", 19, () => ({})), p = r.derived(() => t(c, f())), m = r.derived(() => String(r.get(p).loading ?? "").trim()), h = r.derived(() => r.get(m) !== ""), g = r.derived(() => e[l()] || e.md), _ = r.derived(() => n[u()] || n.blue);
|
|
10
|
+
var v = a(), y = r.first_child(v), b = r.sibling(y, 2), x = (e) => {
|
|
11
|
+
var t = i(), n = r.child(t, !0);
|
|
12
|
+
r.reset(t), r.template_effect(() => r.set_text(n, r.get(m))), r.append(e, t);
|
|
13
|
+
};
|
|
14
|
+
r.if(b, (e) => {
|
|
15
|
+
r.get(h) && e(x);
|
|
16
|
+
}), r.template_effect(() => r.set_class(y, 0, `${r.get(g) ?? ""} tone-muted animate-spin ${r.get(_) ?? ""} ${d() ?? ""}`)), r.append(o, v), r.pop();
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { o as t };
|