@getmicdrop/venue-calendar 4.3.39 → 4.3.41
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/{ArrowLeftIcon-BMuyNOqe.js → ArrowLeftIcon-DahiD9EF.js} +1 -1
- package/dist/{BlockPlaceholder-CUusOhOf.js → BlockPlaceholder-BfbLTliy.js} +1 -1
- package/dist/{Calendar-Dy-jZDff.js → Calendar-CM-dDG7x.js} +13 -13
- package/dist/{CalendarFoundryView-BWyEe7Xe.js → CalendarFoundryView-MI9p1Q-2.js} +3082 -3043
- package/dist/{CalendarIcon-B1JasL-W.js → CalendarIcon-DOAS1a6F.js} +1 -1
- package/dist/{CartView-CyU9g9ss.js → CartView-BqskyKSN.js} +670 -671
- package/dist/{Checkout-BGXlW2j2.js → Checkout-BHRHU4AS.js} +24 -24
- package/dist/{Checkout-DrP1KLR_.js → Checkout-DuvjKPyz.js} +54 -54
- package/dist/{CheckoutTimer-CAKT63di.js → CheckoutTimer-DjaTq2_0.js} +2 -2
- package/dist/{ChevronDownIcon--mG1fNDx.js → ChevronDownIcon-CiYpE3Hq.js} +1 -1
- package/dist/{ClockIcon-B8ahXV8G.js → ClockIcon-BSlM7HM2.js} +1 -1
- package/dist/{CloseIcon-C9guTa4C.js → CloseIcon-ojn3Lny5.js} +1 -1
- package/dist/{CollectionView-BhBCM-01.js → CollectionView-DwLFFpwW.js} +5 -5
- package/dist/{Event-DyX1UrZe.js → Event-BIqxB0kY.js} +239 -227
- package/dist/{EventPage-DxyEqU7R.js → EventPage-BAKtJTkf.js} +82 -80
- package/dist/Input-DMfgmBL7.js +301 -0
- package/dist/{MailIcon-Cf77TYiB.js → MailIcon-CqCCKGgC.js} +1 -1
- package/dist/{PasswordInput-C-BH1Do3.js → PasswordInput-BrgHYGYw.js} +1 -1
- package/dist/{RecommendationsRail-CG0vCtgJ.js → RecommendationsRail-Dmq3C4UQ.js} +131 -130
- package/dist/{ScarcityBadge-D0D6Hqp0.js → ScarcityBadge-BJrsvt6e.js} +8 -8
- package/dist/{SeriesPage-D9_Nn8gF.js → SeriesPage-lA7Y1MCK.js} +3 -3
- package/dist/{Success-Db843hJe.js → Success-DxJkVp0V.js} +44 -44
- package/dist/{TagIcon-DUY8KSZ0.js → TagIcon-D_kSJfGZ.js} +1 -1
- package/dist/{WarningCircleIcon-C1-Aj9ut.js → WarningCircleIcon-DhNvSQag.js} +1 -1
- package/dist/{WarningTriIcon-BrwQ58VB.js → WarningTriIcon-V6pL3ERG.js} +1 -1
- package/dist/{api-DDVVRbC-.js → api-Di0gC83p.js} +1 -1
- package/dist/{constants-7hsFMWgp.js → constants-CQ8nJvPW.js} +1 -1
- package/dist/{copyToClipboard-4LAkJ_1y.js → copyToClipboard-zcPgoppJ.js} +1 -1
- package/dist/{event-Dew6DCL7.js → event-DY17tQ0r.js} +21 -48
- package/dist/{event-transform-CbFR1hRl.js → event-transform-BhldGx8B.js} +24 -23
- package/dist/{href-B4azVXj-.js → href-B-lH1SYh.js} +1 -1
- package/dist/{i18n-srcm-H61.js → i18n-BpodazP1.js} +102 -102
- package/dist/imageUrl-Bata3II2.js +29 -0
- package/dist/{order-totals-DFE6UVG4.js → order-totals-iUg6d6MJ.js} +1 -1
- package/dist/{phoneUtils-CxLRaM5n.js → phoneUtils-BPEB92vB.js} +1 -1
- package/dist/{scarcity-DqbDh1cS.js → scarcity-CJ6IsR7f.js} +2 -11
- package/dist/{to-event-card-props-CRaeqRxY.js → to-event-card-props-Cr5Uq0Ef.js} +8 -8
- package/dist/{utils-kRsfuFcG.js → utils-D3cl-uGb.js} +1 -1
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +60 -60
- package/dist/venue-calendar.iife.js +40 -40
- package/dist/venue-calendar.umd.js +52 -52
- package/package.json +2 -2
- package/dist/Input-DNzDcf6I.js +0 -292
- /package/dist/locales/{4.3.39 → 4.3.41}/flow/de.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/flow/es.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/flow/id.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/flow/it.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/flow/zh.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/main/de.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/main/es.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/main/fr.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/main/id.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/main/it.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/main/ja.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/main/ko.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/main/nl.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/main/pl.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/main/tr.js +0 -0
- /package/dist/locales/{4.3.39 → 4.3.41}/main/zh.js +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { E as e } from "./Button-klwKgfhG.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as i } from "./ArrowLeftIcon-
|
|
4
|
-
import { t as a } from "./CalendarIcon-
|
|
5
|
-
import { t as o } from "./ChevronDownIcon
|
|
6
|
-
import { n as s, t as c } from "./MailIcon-
|
|
7
|
-
import { n as l, o as u, r as d, t as f } from "./RecommendationsRail-
|
|
8
|
-
import { n as p } from "./copyToClipboard-
|
|
2
|
+
import { K as t, c as n, r } from "./scarcity-CJ6IsR7f.js";
|
|
3
|
+
import { t as i } from "./ArrowLeftIcon-DahiD9EF.js";
|
|
4
|
+
import { t as a } from "./CalendarIcon-DOAS1a6F.js";
|
|
5
|
+
import { t as o } from "./ChevronDownIcon-CiYpE3Hq.js";
|
|
6
|
+
import { n as s, t as c } from "./MailIcon-CqCCKGgC.js";
|
|
7
|
+
import { n as l, o as u, r as d, t as f } from "./RecommendationsRail-Dmq3C4UQ.js";
|
|
8
|
+
import { n as p } from "./copyToClipboard-zcPgoppJ.js";
|
|
9
9
|
import { U as m, V as h, i as g } from "./defaultLabels-BkjXKQDd.js";
|
|
10
10
|
import { H as _, Q as v, X as y, _ as b, et as x, s as S } from "./orders-DABdaHOy.js";
|
|
11
11
|
import { t as C } from "./liveAnnouncer-D3xVL7qA.js";
|
|
12
12
|
import { n as w, t as T } from "./Heading-D6bWtGZA.js";
|
|
13
13
|
import { t as E } from "./Text-CqjLjIF8.js";
|
|
14
|
-
import { g as D, h as O } from "./api-
|
|
14
|
+
import { g as D, h as O } from "./api-Di0gC83p.js";
|
|
15
15
|
import { c as k, r as A } from "./pixels-BVOE_JFH.js";
|
|
16
|
-
import { i as j, n as M, t as N } from "./i18n-
|
|
16
|
+
import { i as j, n as M, t as N } from "./i18n-BpodazP1.js";
|
|
17
17
|
import { n as P, t as F } from "./i18n--YZExMpe.js";
|
|
18
18
|
import { t as I } from "./__SKIP_PATHS__-C0ixDSSm.js";
|
|
19
|
-
import { C as ee, d as L, l as R, n as te } from "./utils-
|
|
20
|
-
import { n as z, t as B } from "./constants-
|
|
19
|
+
import { C as ee, d as L, l as R, n as te } from "./utils-D3cl-uGb.js";
|
|
20
|
+
import { n as z, t as B } from "./constants-CQ8nJvPW.js";
|
|
21
21
|
import { a as V, i as H, n as U, o as ne, r as W, s as G } from "./showcase-state-options-Dwn2NLOM.js";
|
|
22
22
|
import { n as re, t as ie } from "./buyerEmail-BfCq-gDt.js";
|
|
23
23
|
import { r as K } from "./defaults-DthmKRyG.js";
|
|
@@ -27,9 +27,9 @@ import { SvelteMap as J } from "svelte/reactivity";
|
|
|
27
27
|
import { onDestroy as ae, onMount as Y } from "svelte";
|
|
28
28
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/HelpIcon.svelte
|
|
29
29
|
var X = q.from_svg("<path d=\"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z\"></path>"), oe = q.from_svg("<circle cx=\"128\" cy=\"180\" r=\"12\"></circle><path d=\"M128,144v-8c17.67,0,32-12.54,32-28s-14.33-28-32-28S96,92.54,96,108v4\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><circle cx=\"128\" cy=\"128\" r=\"96\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></circle>", 1), se = q.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
|
|
30
|
-
function ce(e,
|
|
31
|
-
q.push(
|
|
32
|
-
let r = q.prop(
|
|
30
|
+
function ce(e, n) {
|
|
31
|
+
q.push(n, !0);
|
|
32
|
+
let r = q.prop(n, "size", 3, "24"), i = q.prop(n, "color", 3, "currentColor"), a = q.prop(n, "class", 3, ""), o = t(), s = q.derived(() => n.weight ?? o?.weight ?? "regular");
|
|
33
33
|
var c = se();
|
|
34
34
|
let l;
|
|
35
35
|
var u = q.child(c), d = (e) => {
|
|
@@ -209,9 +209,9 @@ var Q = {
|
|
|
209
209
|
yellow: "#fbbc05",
|
|
210
210
|
red: "#ea4335"
|
|
211
211
|
}, ge = q.from_html(" <!>", 1), _e = q.from_html("<p class=\"wallet-note caption svelte-4szgdz\"> </p>"), ve = q.from_html("<!> <!>", 1), ye = q.from_html("<div class=\"dropdown-menu bg-surface-primary border-default svelte-4szgdz\"><a rel=\"external noopener noreferrer\" class=\"dropdown-item type-body text-color-primary hover:bg-surface-secondary svelte-4szgdz\"><svg aria-hidden=\"true\" class=\"shrink-0\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z\"></path><path d=\"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z\"></path><path d=\"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18A10.96 10.96 0 0 0 1 12c0 1.77.42 3.45 1.18 4.93l3.66-2.84z\"></path><path d=\"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z\"></path></svg> </a> <button type=\"button\" class=\"dropdown-item type-body text-color-primary hover:bg-surface-secondary svelte-4szgdz\"><!> </button></div>"), be = q.from_html("<!> ", 1), xe = q.from_html("<p class=\"copy-fallback caption svelte-4szgdz\">Copy failed — select to copy: <span class=\"copy-url svelte-4szgdz\"> </span></p>"), Se = q.from_html("<span class=\"text-color-muted\">·</span> <a class=\"text-link type-caption text-color-muted hover:text-color-secondary svelte-4szgdz\"><!> </a>", 1), Ce = q.from_html("<div class=\"rounded-t-xl overflow-hidden bg-surface-tertiary\"><!></div> <div class=\"p-5 space-y-4\"><div><!> <div class=\"flex items-center gap-1.5 mt-1.5\"><!> <!></div> <div class=\"mt-0.5\"><!></div></div> <div class=\"flex flex-col items-center gap-3\"><button type=\"button\" class=\"wallet-badge-btn svelte-4szgdz\"><img src=\"/wallet-badges/apple-wallet.svg\" class=\"wallet-badge-img svelte-4szgdz\"/></button> <button type=\"button\" class=\"wallet-badge-btn svelte-4szgdz\"><img src=\"/wallet-badges/google-wallet-dark.svg\" class=\"wallet-badge-img google-dark svelte-4szgdz\"/> <img src=\"/wallet-badges/google-wallet-light.svg\" class=\"wallet-badge-img google-light svelte-4szgdz\"/></button> <!></div> <div class=\"divider\"></div> <div class=\"calendar-dropdown relative\"><!> <!></div> <div class=\"flex gap-2\"><!> <!></div> <!> <div class=\"flex items-center justify-center gap-4 pt-1\"><button type=\"button\" class=\"text-link type-caption text-color-muted hover:text-color-secondary svelte-4szgdz\"><!> </button> <!></div></div>", 1), we = q.from_html("<div><!></div>");
|
|
212
|
-
function Te(e,
|
|
213
|
-
q.push(
|
|
214
|
-
let c = q.prop(
|
|
212
|
+
function Te(e, t) {
|
|
213
|
+
q.push(t, !0);
|
|
214
|
+
let c = q.prop(t, "backHref", 3, void 0), d = q.prop(t, "labels", 3, z), f = q.prop(t, "locale", 3, void 0), h = q.derived(() => c() || t.eventUrl), _ = q.state(!1), v = l(), y = q.state("");
|
|
215
215
|
q.user_effect(() => {
|
|
216
216
|
q.get(y) && C(q.get(y), { politeness: "polite" });
|
|
217
217
|
}), q.user_effect(() => {
|
|
@@ -227,17 +227,17 @@ function Te(e, n) {
|
|
|
227
227
|
return document.addEventListener("click", e), () => document.removeEventListener("click", e);
|
|
228
228
|
});
|
|
229
229
|
let x = q.derived(() => (() => {
|
|
230
|
-
let e = new Date(
|
|
230
|
+
let e = new Date(t.event.startDateTime), n = t.event.endDateTime ? new Date(t.event.endDateTime) : new Date(e.getTime() + 72e5), r = (e) => e.toISOString().replace(/[-:]/g, "").replace(/\.\d{3}/, ""), i = [t.event.venue.name, t.event.venue.address].filter(Boolean).join(", ");
|
|
231
231
|
return `https://calendar.google.com/calendar/render?${new URLSearchParams({
|
|
232
232
|
action: "TEMPLATE",
|
|
233
|
-
text:
|
|
234
|
-
dates: `${r(e)}/${r(
|
|
233
|
+
text: t.event.title,
|
|
234
|
+
dates: `${r(e)}/${r(n)}`,
|
|
235
235
|
location: i,
|
|
236
|
-
details: `Event: ${
|
|
236
|
+
details: `Event: ${t.eventUrl}\n\nTicket confirmation #${t.orderId}`
|
|
237
237
|
}).toString()}`;
|
|
238
238
|
})());
|
|
239
239
|
function S() {
|
|
240
|
-
let e = new Date(
|
|
240
|
+
let e = new Date(t.event.startDateTime), n = t.event.endDateTime ? new Date(t.event.endDateTime) : new Date(e.getTime() + 72e5), r = (e) => e.toISOString().replace(/[-:]/g, "").replace(/\.\d{3}/, ""), i = `order-${t.orderId}-event-${t.event.id}@micdrop.com`, a = r(/* @__PURE__ */ new Date()), o = [t.event.venue.name, t.event.venue.address].filter(Boolean).join(", "), s = (e) => e ? e.replace(/\\/g, "\\\\").replace(/;/g, "\\;").replace(/,/g, "\\,").replace(/\n/g, "\\n") : "", c = `BEGIN:VCALENDAR
|
|
241
241
|
VERSION:2.0
|
|
242
242
|
PRODID:-//MicDrop//Ticket Confirmation//EN
|
|
243
243
|
CALSCALE:GREGORIAN
|
|
@@ -246,17 +246,17 @@ BEGIN:VEVENT
|
|
|
246
246
|
UID:${i}
|
|
247
247
|
DTSTAMP:${a}
|
|
248
248
|
DTSTART:${r(e)}
|
|
249
|
-
DTEND:${r(
|
|
250
|
-
SUMMARY:${s(
|
|
249
|
+
DTEND:${r(n)}
|
|
250
|
+
SUMMARY:${s(t.event.title)}
|
|
251
251
|
LOCATION:${s(o)}
|
|
252
|
-
DESCRIPTION:${s(`Order #${
|
|
253
|
-
URL:${
|
|
252
|
+
DESCRIPTION:${s(`Order #${t.orderId}\n\nView event: ${t.eventUrl}`)}
|
|
253
|
+
URL:${t.eventUrl}
|
|
254
254
|
STATUS:CONFIRMED
|
|
255
255
|
END:VEVENT
|
|
256
256
|
END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u = URL.createObjectURL(l);
|
|
257
257
|
try {
|
|
258
258
|
let e = document.createElement("a");
|
|
259
|
-
e.href = u, e.download = `${(
|
|
259
|
+
e.href = u, e.download = `${(t.event.title || "event").replace(/[^a-zA-Z0-9\s-]/g, "").replace(/\s+/g, "-")}.ics`, document.body.appendChild(e), e.click(), e.remove();
|
|
260
260
|
} finally {
|
|
261
261
|
URL.revokeObjectURL(u);
|
|
262
262
|
}
|
|
@@ -266,14 +266,14 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
266
266
|
q.set(_, !1);
|
|
267
267
|
}
|
|
268
268
|
function D() {
|
|
269
|
-
v.share(
|
|
269
|
+
v.share(t.eventUrl);
|
|
270
270
|
}
|
|
271
271
|
function O() {
|
|
272
272
|
q.set(y, d().walletComingSoon || "Wallet passes are coming soon. Your ticket is confirmed — check your email", !0);
|
|
273
273
|
}
|
|
274
274
|
ae(v.dispose);
|
|
275
275
|
let k = q.derived(() => (() => {
|
|
276
|
-
let e = [
|
|
276
|
+
let e = [t.event.venue.name, t.event.venue.address].filter(Boolean);
|
|
277
277
|
return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e.join(", "))}`;
|
|
278
278
|
})());
|
|
279
279
|
function A() {
|
|
@@ -290,10 +290,10 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
290
290
|
var l = Ce(), h = q.first_child(l), C = q.child(h);
|
|
291
291
|
m(C, {
|
|
292
292
|
get src() {
|
|
293
|
-
return
|
|
293
|
+
return t.event.imageUrl;
|
|
294
294
|
},
|
|
295
295
|
get alt() {
|
|
296
|
-
return
|
|
296
|
+
return t.event.title;
|
|
297
297
|
},
|
|
298
298
|
get fallback() {
|
|
299
299
|
return B;
|
|
@@ -307,10 +307,10 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
307
307
|
weight: "semibold",
|
|
308
308
|
leading: "tight",
|
|
309
309
|
class: "block",
|
|
310
|
-
children: (e,
|
|
310
|
+
children: (e, n) => {
|
|
311
311
|
q.next();
|
|
312
312
|
var r = q.text();
|
|
313
|
-
q.template_effect(() => q.set_text(r,
|
|
313
|
+
q.template_effect(() => q.set_text(r, t.event.title)), q.append(e, r);
|
|
314
314
|
},
|
|
315
315
|
$$slots: { default: !0 }
|
|
316
316
|
});
|
|
@@ -327,11 +327,11 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
327
327
|
q.next();
|
|
328
328
|
var a = ge(), o = q.first_child(a), s = q.sibling(o), c = (e) => {
|
|
329
329
|
var r = q.text();
|
|
330
|
-
q.template_effect((e) => q.set_text(r, `· ${e ?? ""}`), [() => t
|
|
330
|
+
q.template_effect((e) => q.set_text(r, `· ${e ?? ""}`), [() => n(t.event.startDateTime, t.event.timezone, f())]), q.append(e, r);
|
|
331
331
|
};
|
|
332
332
|
q.if(s, (e) => {
|
|
333
|
-
|
|
334
|
-
}), q.template_effect((e) => q.set_text(o, `${e ?? ""} `), [() => r(
|
|
333
|
+
t.event.displayStartTime !== !1 && e(c);
|
|
334
|
+
}), q.template_effect((e) => q.set_text(o, `${e ?? ""} `), [() => r(t.event.startDateTime, t.event.timezone, f())]), q.append(e, a);
|
|
335
335
|
},
|
|
336
336
|
$$slots: { default: !0 }
|
|
337
337
|
}), q.reset(N);
|
|
@@ -340,10 +340,10 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
340
340
|
size: "xs",
|
|
341
341
|
color: "muted",
|
|
342
342
|
class: "block",
|
|
343
|
-
children: (e,
|
|
343
|
+
children: (e, n) => {
|
|
344
344
|
q.next();
|
|
345
345
|
var r = q.text();
|
|
346
|
-
q.template_effect(() => q.set_text(r,
|
|
346
|
+
q.template_effect(() => q.set_text(r, t.event.venue.name)), q.append(e, r);
|
|
347
347
|
},
|
|
348
348
|
$$slots: { default: !0 }
|
|
349
349
|
}), q.reset(I), q.reset(j);
|
|
@@ -431,7 +431,7 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
431
431
|
});
|
|
432
432
|
};
|
|
433
433
|
q.if(ae, (e) => {
|
|
434
|
-
|
|
434
|
+
t.event.venue.address && e(Y);
|
|
435
435
|
}), q.reset(K);
|
|
436
436
|
var X = q.sibling(K, 2), oe = (e) => {
|
|
437
437
|
var t = xe(), n = q.sibling(q.child(t)), r = q.child(n, !0);
|
|
@@ -448,24 +448,24 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
448
448
|
var ue = q.sibling(le);
|
|
449
449
|
q.reset(Z);
|
|
450
450
|
var de = q.sibling(Z, 2), fe = (e) => {
|
|
451
|
-
var
|
|
451
|
+
var n = Se(), r = q.sibling(q.first_child(n), 2), i = q.child(r);
|
|
452
452
|
ce(i, {
|
|
453
453
|
size: "16",
|
|
454
454
|
class: "shrink-0"
|
|
455
455
|
});
|
|
456
456
|
var a = q.sibling(i);
|
|
457
457
|
q.reset(r), q.template_effect(() => {
|
|
458
|
-
q.set_attribute(r, "href", `mailto:${
|
|
459
|
-
}), q.append(e,
|
|
458
|
+
q.set_attribute(r, "href", `mailto:${t.event.venue.contactEmail ?? ""}?subject=Help with Order ${t.orderId ?? ""}`), q.set_text(a, ` ${(d().needHelp || "Need help?") ?? ""}`);
|
|
459
|
+
}), q.append(e, n);
|
|
460
460
|
};
|
|
461
461
|
q.if(de, (e) => {
|
|
462
|
-
|
|
462
|
+
t.event.venue.contactEmail && e(fe);
|
|
463
463
|
}), q.reset(se), q.reset(w), q.template_effect(() => {
|
|
464
464
|
q.set_attribute(te, "alt", d().addToAppleWallet || "Add to Apple Wallet"), q.set_attribute(V, "alt", d().saveToGoogleWallet || "Save to Google Wallet"), q.set_attribute(H, "alt", d().saveToGoogleWallet || "Save to Google Wallet"), q.set_text(ue, ` ${(d().backToEvent || "Back to event") ?? ""}`);
|
|
465
465
|
}), q.delegated("click", R, O), q.delegated("click", z, O), q.delegated("click", Z, A), q.append(e, l);
|
|
466
466
|
},
|
|
467
467
|
$$slots: { default: !0 }
|
|
468
|
-
}), q.reset(j), q.template_effect(() => M = q.set_class(j, 1, "actions-wrapper svelte-4szgdz", null, M, { visible:
|
|
468
|
+
}), q.reset(j), q.template_effect(() => M = q.set_class(j, 1, "actions-wrapper svelte-4szgdz", null, M, { visible: t.showContent })), q.append(e, j), q.pop();
|
|
469
469
|
}
|
|
470
470
|
q.delegate(["click"]);
|
|
471
471
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { K as e } from "./scarcity-CJ6IsR7f.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/TagIcon.svelte
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { K as e } from "./scarcity-CJ6IsR7f.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/ChevronDownOutline.svelte
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { K as e } from "./scarcity-CJ6IsR7f.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/WarningTriIcon.svelte
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as e } from "./Button-klwKgfhG.js";
|
|
2
|
-
import {
|
|
2
|
+
import { C as t } from "./scarcity-CJ6IsR7f.js";
|
|
3
3
|
import { A as n, M as r, O as i, _ as a, c as o, g as s, l as c, v as l, x as u, z as d } from "./defaultLabels-BkjXKQDd.js";
|
|
4
4
|
import { B as f, L as p, M as ee, N as m, P as h, R as g, U as _, b as te, c as ne } from "./orders-DABdaHOy.js";
|
|
5
5
|
//#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { K as e } from "./scarcity-CJ6IsR7f.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/LocationIcon.svelte
|
|
@@ -1,40 +1,13 @@
|
|
|
1
1
|
import { x as e } from "./defaultLabels-BkjXKQDd.js";
|
|
2
|
-
|
|
3
|
-
function t(e, t) {
|
|
4
|
-
if (typeof e == "string") return e;
|
|
5
|
-
let n = globalThis.process?.env?.[t];
|
|
6
|
-
return typeof n == "string" ? n : void 0;
|
|
7
|
-
}
|
|
8
|
-
function n(e, n, r) {
|
|
9
|
-
let i = t(e, n);
|
|
10
|
-
if (i === void 0) return r;
|
|
11
|
-
let a = i.trim().replace(/\/+$/, "");
|
|
12
|
-
return a === "" ? r : a;
|
|
13
|
-
}
|
|
14
|
-
var r = n(void 0, "PUBLIC_IMAGE_ORIGIN_BASE", "https://moxy.sfo3.digitaloceanspaces.com"), i = n(void 0, "PUBLIC_IMAGE_CDN_BASE", "https://moxy.sfo3.cdn.digitaloceanspaces.com");
|
|
15
|
-
function a(e, t = {}) {
|
|
16
|
-
let n = typeof t == "string" ? { fallback: t } : t, a = n.fallback ?? "", o = n.cdn ?? !0;
|
|
17
|
-
if (!e || e.trim() === "") return a;
|
|
18
|
-
if (e.startsWith("http") || e.startsWith("data:") || e.startsWith("blob:")) return e;
|
|
19
|
-
let s = `/${e.replace(/^\/+/, "")}`;
|
|
20
|
-
return `${o ? i : r}${s}`;
|
|
21
|
-
}
|
|
22
|
-
function o(e, t = {}) {
|
|
23
|
-
let { placeholder: n = "", cdn: r } = t;
|
|
24
|
-
return a(e.image || e.coverImage || e.imageUrl || e.imageURL || e.image_url || "", {
|
|
25
|
-
fallback: n,
|
|
26
|
-
cdn: r
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
2
|
+
import { n as t } from "./imageUrl-Bata3II2.js";
|
|
30
3
|
//#region src/lib/api/transformers/event.ts
|
|
31
|
-
function
|
|
32
|
-
return
|
|
4
|
+
function n(e) {
|
|
5
|
+
return t(e, { cdn: !0 });
|
|
33
6
|
}
|
|
34
|
-
function
|
|
35
|
-
return
|
|
7
|
+
function r(e) {
|
|
8
|
+
return n(e.imageUrl || e.imageURL || e.image_url || e.image || "");
|
|
36
9
|
}
|
|
37
|
-
function
|
|
10
|
+
function i(e) {
|
|
38
11
|
switch (e) {
|
|
39
12
|
case "available":
|
|
40
13
|
case "sold_out":
|
|
@@ -43,10 +16,10 @@ function l(e) {
|
|
|
43
16
|
default: return null;
|
|
44
17
|
}
|
|
45
18
|
}
|
|
46
|
-
function
|
|
19
|
+
function a(t) {
|
|
47
20
|
let n = t.ctaState || t.cta_state;
|
|
48
21
|
if (n) {
|
|
49
|
-
let e =
|
|
22
|
+
let e = i(n);
|
|
50
23
|
if (e) return e;
|
|
51
24
|
}
|
|
52
25
|
if (t.isCancelled || t.is_cancelled) return "ended";
|
|
@@ -55,15 +28,15 @@ function u(t) {
|
|
|
55
28
|
let e = Date.now();
|
|
56
29
|
if (r.getTime() < e) return "ended";
|
|
57
30
|
}
|
|
58
|
-
let
|
|
59
|
-
if (
|
|
60
|
-
let
|
|
61
|
-
return
|
|
31
|
+
let a = t.ticketsAvailable ?? t.tickets_available;
|
|
32
|
+
if (a !== void 0) return a <= 0 ? "sold_out" : "available";
|
|
33
|
+
let o = t.availableTickets || t.available_tickets || t.tickets || [];
|
|
34
|
+
return o.length === 0 ? "coming_soon" : o.reduce((e, t) => {
|
|
62
35
|
let n = t.quantityAvailable ?? t.quantity_available ?? t.quantity ?? 0, r = t.quantitySold ?? t.quantity_sold ?? 0;
|
|
63
36
|
return e + Math.max(0, n - r);
|
|
64
37
|
}, 0) <= 0 ? "sold_out" : "available";
|
|
65
38
|
}
|
|
66
|
-
function
|
|
39
|
+
function o(e) {
|
|
67
40
|
let t = e;
|
|
68
41
|
return {
|
|
69
42
|
id: t.id || t.ID,
|
|
@@ -84,8 +57,8 @@ function d(e) {
|
|
|
84
57
|
sortOrder: t.sortOrder || t.sort_order || 0
|
|
85
58
|
};
|
|
86
59
|
}
|
|
87
|
-
function
|
|
88
|
-
let t = e, n = (t.availableTickets || t.available_tickets || t.tickets || []).map(
|
|
60
|
+
function s(e) {
|
|
61
|
+
let t = e, n = (t.availableTickets || t.available_tickets || t.tickets || []).map(o), i = n.map((e) => e.price).filter((e) => e > 0), s = i.length > 0 ? Math.min(...i) : void 0, c = i.length > 0 ? Math.max(...i) : void 0;
|
|
89
62
|
return {
|
|
90
63
|
eventID: t.eventID || t.id || t.ID || 0,
|
|
91
64
|
id: t.id || t.ID,
|
|
@@ -102,18 +75,18 @@ function f(e) {
|
|
|
102
75
|
venueName: t.venueName || t.venue_name,
|
|
103
76
|
venueAddress: t.venueAddress || t.venue_address,
|
|
104
77
|
location: t.location || t.venueAddress || t.venue_address,
|
|
105
|
-
imageUrl:
|
|
106
|
-
imageURL:
|
|
78
|
+
imageUrl: r(t),
|
|
79
|
+
imageURL: r(t),
|
|
107
80
|
status: t.status,
|
|
108
81
|
isPublished: t.isPublished ?? t.is_published,
|
|
109
82
|
isCancelled: t.isCancelled ?? t.is_cancelled,
|
|
110
83
|
availableTickets: n,
|
|
111
84
|
ticketsAvailable: t.ticketsAvailable ?? t.tickets_available ?? n.reduce((e, t) => e + (t.quantityAvailable || 0), 0),
|
|
112
85
|
ticketsSold: t.ticketsSold ?? t.tickets_sold,
|
|
113
|
-
minPrice: t.minPrice ?? t.min_price ??
|
|
114
|
-
maxPrice: t.maxPrice ?? t.max_price ??
|
|
86
|
+
minPrice: t.minPrice ?? t.min_price ?? s,
|
|
87
|
+
maxPrice: t.maxPrice ?? t.max_price ?? c,
|
|
115
88
|
ctaText: t.ctaText || t.cta_text,
|
|
116
|
-
ctaState:
|
|
89
|
+
ctaState: a(t),
|
|
117
90
|
showPerformers: t.showPerformers ?? t.show_performers,
|
|
118
91
|
eventSeriesId: t.eventSeriesId || t.event_series_id,
|
|
119
92
|
seriesInstanceNumber: t.seriesInstanceNumber || t.series_instance_number,
|
|
@@ -150,4 +123,4 @@ function f(e) {
|
|
|
150
123
|
};
|
|
151
124
|
}
|
|
152
125
|
//#endregion
|
|
153
|
-
export {
|
|
126
|
+
export { s as t };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e, d as t, i as n, s as r, u as i } from "./scarcity-CJ6IsR7f.js";
|
|
2
2
|
import { C as a } from "./defaultLabels-BkjXKQDd.js";
|
|
3
|
-
import {
|
|
4
|
-
import { B as
|
|
3
|
+
import { t as o } from "./imageUrl-Bata3II2.js";
|
|
4
|
+
import { B as s, H as c, L as l, P as u, U as d, V as f } from "./api-Di0gC83p.js";
|
|
5
|
+
import { t as p } from "./event-DY17tQ0r.js";
|
|
5
6
|
//#region src/lib/utils/event-transform.js
|
|
6
7
|
var m = "data:image/svg+xml," + encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 300" fill="none">
|
|
7
|
-
<rect width="200" height="300" fill="${
|
|
8
|
-
<rect x="60" y="90" width="80" height="80" rx="10" fill="${
|
|
9
|
-
<circle cx="85" cy="115" r="10" fill="${
|
|
10
|
-
<path d="M70 155 L100 125 L130 155 L130 155" stroke="${
|
|
8
|
+
<rect width="200" height="300" fill="${u[200]}"/>
|
|
9
|
+
<rect x="60" y="90" width="80" height="80" rx="10" fill="${u[300]}"/>
|
|
10
|
+
<circle cx="85" cy="115" r="10" fill="${u[400]}"/>
|
|
11
|
+
<path d="M70 155 L100 125 L130 155 L130 155" stroke="${u[400]}" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
11
12
|
</svg>`);
|
|
12
13
|
function h(e) {
|
|
13
14
|
return o(e, { placeholder: m });
|
|
@@ -33,7 +34,7 @@ function y(e, t, n) {
|
|
|
33
34
|
function b(t, n) {
|
|
34
35
|
if (!t.startDateTime) return "";
|
|
35
36
|
try {
|
|
36
|
-
return t.endDateTime ?
|
|
37
|
+
return t.endDateTime ? i(t.startDateTime, t.endDateTime, n) : e(t.startDateTime, n);
|
|
37
38
|
} catch {
|
|
38
39
|
let e = {
|
|
39
40
|
hour: "numeric",
|
|
@@ -73,7 +74,7 @@ var S = {
|
|
|
73
74
|
function C(e, t = { mode: S.DETAIL }) {
|
|
74
75
|
let { mode: n = S.DETAIL } = t;
|
|
75
76
|
if (!e) return n === S.BROWSE ? D() : O();
|
|
76
|
-
let r =
|
|
77
|
+
let r = p(e), i = a(r.timeZone || r.timezone), o = h(e), s = {
|
|
77
78
|
id: r.id,
|
|
78
79
|
name: r.title || "",
|
|
79
80
|
image: o,
|
|
@@ -81,23 +82,23 @@ function C(e, t = { mode: S.DETAIL }) {
|
|
|
81
82
|
startDateTime: r.startDateTime || null,
|
|
82
83
|
salesStatus: r.salesStatus
|
|
83
84
|
};
|
|
84
|
-
return n === S.BROWSE ? w(e, r,
|
|
85
|
+
return n === S.BROWSE ? w(e, r, s, i) : T(e, r, s, i, o);
|
|
85
86
|
}
|
|
86
87
|
function w(e, t, r, i) {
|
|
87
|
-
let a = t.startDateTime ? n(t.startDateTime, i) : "",
|
|
88
|
+
let a = t.startDateTime ? n(t.startDateTime, i) : "", u;
|
|
88
89
|
if (typeof t.ticketsRemaining == "number" && typeof t.ticketsTotal == "number") {
|
|
89
90
|
let e = t.ticketsRemaining, n = t.ticketsTotal;
|
|
90
|
-
|
|
91
|
+
u = {
|
|
91
92
|
totalRemaining: e,
|
|
92
93
|
totalCapacity: n,
|
|
93
94
|
isSoldOut: n > 0 && e <= 0
|
|
94
95
|
};
|
|
95
96
|
} else {
|
|
96
|
-
let t =
|
|
97
|
+
let t = c(e.availableTickets || [], {
|
|
97
98
|
excludeDoorOnly: !0,
|
|
98
99
|
publicOnly: !0
|
|
99
100
|
});
|
|
100
|
-
|
|
101
|
+
u = s(t);
|
|
101
102
|
}
|
|
102
103
|
return {
|
|
103
104
|
...r,
|
|
@@ -108,10 +109,10 @@ function w(e, t, r, i) {
|
|
|
108
109
|
description: t.description || t.eventSummary || "",
|
|
109
110
|
venueId: t.venueId,
|
|
110
111
|
eventSeriesId: t.eventSeriesId || null,
|
|
111
|
-
ticketsRemaining:
|
|
112
|
-
ticketsTotal:
|
|
113
|
-
isSoldOut:
|
|
114
|
-
hasPurchasableHiddenTickets:
|
|
112
|
+
ticketsRemaining: u.totalRemaining,
|
|
113
|
+
ticketsTotal: u.totalCapacity,
|
|
114
|
+
isSoldOut: u.isSoldOut,
|
|
115
|
+
hasPurchasableHiddenTickets: l(e),
|
|
115
116
|
stageId: t.stageId ?? null,
|
|
116
117
|
eventCategoryTypes: t.eventCategoryTypes ?? null,
|
|
117
118
|
ageRestriction: t.ageRestriction ?? null,
|
|
@@ -122,8 +123,8 @@ function w(e, t, r, i) {
|
|
|
122
123
|
function T(e, t, n, r, i) {
|
|
123
124
|
let a = (e.availableTickets || []).map((e) => ({
|
|
124
125
|
...e,
|
|
125
|
-
status:
|
|
126
|
-
})), o =
|
|
126
|
+
status: f(e)
|
|
127
|
+
})), o = c(a, {
|
|
127
128
|
excludeDoorOnly: !1,
|
|
128
129
|
publicOnly: !0
|
|
129
130
|
}), s = x(t.startDateTime, r);
|
|
@@ -140,14 +141,14 @@ function T(e, t, n, r, i) {
|
|
|
140
141
|
location: t.venue?.googleLocationNameCache || t.venue?.address || "",
|
|
141
142
|
...s,
|
|
142
143
|
coverImage: i,
|
|
143
|
-
price:
|
|
144
|
+
price: d(e.availableTickets),
|
|
144
145
|
status: t.status || "On Sale",
|
|
145
146
|
eventSummary: t.eventSummary,
|
|
146
147
|
password: t.password,
|
|
147
148
|
availableTickets: a,
|
|
148
149
|
publicTickets: o,
|
|
149
150
|
...e.addOns ? { addOns: e.addOns } : {},
|
|
150
|
-
hasPurchasableHiddenTickets:
|
|
151
|
+
hasPurchasableHiddenTickets: l(e),
|
|
151
152
|
doorsOpenTime: t.doorsOpenTime,
|
|
152
153
|
venue: t.venue,
|
|
153
154
|
venueID: t.venueId,
|
|
@@ -169,7 +170,7 @@ function T(e, t, n, r, i) {
|
|
|
169
170
|
};
|
|
170
171
|
}
|
|
171
172
|
function E(e, t) {
|
|
172
|
-
return e &&
|
|
173
|
+
return e && r(e, t, {
|
|
173
174
|
weekday: "short",
|
|
174
175
|
month: "short",
|
|
175
176
|
day: "numeric",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as e } from "./Button-klwKgfhG.js";
|
|
2
|
-
import {
|
|
2
|
+
import { K as t } from "./scarcity-CJ6IsR7f.js";
|
|
3
3
|
import { U as n } from "./defaultLabels-BkjXKQDd.js";
|
|
4
4
|
import "svelte/internal/disclose-version";
|
|
5
5
|
import * as r from "svelte/internal/client";
|