@getmicdrop/venue-calendar 4.2.2 → 4.2.4
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-DQ-h5PcH.js → ArrowLeftIcon-BGd-X_Qm.js} +1 -1
- package/dist/{Badge-M6qZyfTF.js → Badge-Bv_MT-Vt.js} +10 -9
- package/dist/BlockPlaceholder-Wl39H9Z7.js +52 -0
- package/dist/Button-C4uFgl7L.js +2141 -0
- package/dist/{Calendar-BX22svpz.js → Calendar-DafPX3k_.js} +292 -290
- package/dist/CalendarFoundryView-COkX5oQx.js +22292 -0
- package/dist/{CalendarIcon-DR197Ioz.js → CalendarIcon-CeQ1_FWq.js} +1 -1
- package/dist/{CartView-B2VtVvZM.js → CartView-nvVA8vWk.js} +651 -644
- package/dist/Checkout-BphC7gak.js +1807 -0
- package/dist/{Checkout-BTqfjvDp.js → Checkout-Ow2x8cNL.js} +92 -91
- package/dist/{CheckoutTimer-Cng5tcGO.js → CheckoutTimer-DJlt5M2b.js} +5 -5
- package/dist/{ChevronDownIcon-C_RiK-BW.js → ChevronDownIcon-y7oNyepp.js} +1 -1
- package/dist/{ClockIcon-BOJENuPq.js → ClockIcon-BGTz8dak.js} +1 -1
- package/dist/{CloseIcon-Rc7tpX2a.js → CloseIcon-C9SHeORJ.js} +1 -1
- package/dist/CloseOutline-qpVa62mu.js +13 -0
- package/dist/{CollectionView-A1zP8yz5.js → CollectionView-BAIlcuqO.js} +13 -12
- package/dist/CropImage-B0tj2_uN.js +404 -0
- package/dist/Event-CTaXLze_.js +3034 -0
- package/dist/{EventPage-hxrPKPhm.js → EventPage-LuA-aEYZ.js} +168 -167
- package/dist/{Heading-B7VYbbfJ.js → Heading-Dfo3bjyn.js} +4 -3
- package/dist/Image-B3cEndLZ.js +87 -0
- package/dist/Input-iXqece97.js +487 -0
- package/dist/{MailIcon-rxvK4Wga.js → MailIcon-xtNog-7h.js} +1 -1
- package/dist/{Modal-BVD2O8hd.js → Modal-CqzRblrN.js} +2 -2
- package/dist/{ModalFooter-CfboEe1M.js → ModalFooter-DHhBLDbO.js} +59 -57
- package/dist/{PasswordInput-BAlq2j97.js → PasswordInput-Czm5Pe_p.js} +4 -4
- package/dist/{ScarcityBadge-h7ygRD_C.js → ScarcityBadge-CdgQmt1D.js} +4 -4
- package/dist/{SeriesPage-D-cwUNZM.js → SeriesPage-DfCyV1ka.js} +5 -5
- package/dist/{Spinner-ChTN7t75.js → Spinner-BwiDys7C.js} +3 -3
- package/dist/{Success-CIAX5zmz.js → Success-CsYxRkLE.js} +81 -80
- package/dist/{TagIcon-V0qMu9wS.js → TagIcon-DJSTnymB.js} +1 -1
- package/dist/{ViewTicketsEmbed-By-IcUJZ.js → ViewTicketsEmbed-CKucKt-W.js} +67 -66
- package/dist/{WarningCircleIcon-D32h6VDr.js → WarningCircleIcon-BKSQbu7p.js} +1 -1
- package/dist/{WarningTriIcon-BPDrCiKU.js → WarningTriIcon-DgwTwlxe.js} +1 -1
- package/dist/{__SKIP_PATHS__-DirqE5Xe.js → __SKIP_PATHS__-BTbGfN80.js} +1 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +187 -181
- package/dist/api/client.d.ts +16 -0
- package/dist/api/types.d.ts +528 -528
- package/dist/{browser-25hnscei.js → browser-Um8Y6K99.js} +7 -7
- package/dist/{colors-5ifWyP6H.js → colors-DeJAzg_q.js} +60 -59
- package/dist/{constants-Dcj3kgZE.js → constants-OTS1wmXZ.js} +76 -73
- package/dist/{copyToClipboard-CNxFW3ni.js → copyToClipboard-CRDdh3r8.js} +1 -1
- package/dist/{createI18n-08XGDh1_.js → createI18n-DBUVdZra.js} +1 -1
- package/dist/{event-Cp5D4ctZ.js → event-BrptLro8.js} +1 -1
- package/dist/{event-transform-DSuEpMxr.js → event-transform-BaJ7M1DL.js} +4 -4
- package/dist/{eventStatusStream-CIZVH5Lp.js → eventStatusStream-sq6uPnMe.js} +6 -6
- package/dist/{allowlist-BiUmz2AF.js → href-DJeJpcO9.js} +21 -4
- package/dist/{i18n-CEeBd5Hi.js → i18n-GzfxX0Ad.js} +11 -11
- package/dist/imageOptimizer-CB3wKJU8.js +47 -0
- package/dist/{labels-CtyfffZI.js → labels-CqodQmuY.js} +1 -1
- package/dist/{modalManager.svelte-BH-QJm9M.js → modalManager.svelte-OSPs3dSW.js} +2 -2
- package/dist/{order-totals-hcdvbJvw.js → order-totals-BAKL9cOB.js} +15 -13
- package/dist/{orders-tzTe2hNM.js → orders-NZP81zYT.js} +210 -198
- package/dist/{Input-W-QE9nWi.js → phoneUtils-BJeAIGYo.js} +694 -1132
- package/dist/{pixels-7kl8Fcjl.js → pixels-BBruZizp.js} +8 -7
- package/dist/{promo-BrMcoTYh.js → promo-DtLZRskK.js} +3 -3
- package/dist/{serverTotals-CpRaEe9K.js → serverTotals-BO126TTd.js} +1 -1
- package/dist/{shareCopyFeedback.svelte-DsyhrfiP.js → shareCopyFeedback.svelte-BRInK1hH.js} +25 -25
- package/dist/{showcase-state-options-B2XfybZq.js → showcase-state-options-BoJxiEsg.js} +1 -1
- package/dist/sortable.esm--ZtTTTPp.js +1451 -0
- package/dist/timezones-C5l0SSHK.js +2030 -0
- package/dist/{to-event-card-props-VPne8W4I.js → to-event-card-props-CO3aPBdH.js} +24 -23
- package/dist/{utils-DJVlBMbw.js → utils-C8GgxJMv.js} +30 -30
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1291 -1151
- package/dist/venue-calendar.iife.js +63 -62
- package/dist/venue-calendar.umd.js +60 -59
- package/dist/z-index-B0Vk_Mp1.js +27 -0
- package/package.json +220 -220
- package/dist/BlockPlaceholder-IOcqxTx2.js +0 -62
- package/dist/CalendarFoundryView-Ct39xn0Q.js +0 -23561
- package/dist/Checkout-CXcjQfbc.js +0 -1805
- package/dist/Event-C_0lUZvV.js +0 -3040
- package/dist/Image-DBJAfLYe.js +0 -81
- package/dist/cancel-Cq2Q8qW7.js +0 -59
- package/dist/timezones-Cq1mLtfM.js +0 -4170
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/de.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/es.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/fr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/id.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/it.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/ja.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/ko.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/nl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/pl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/tr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/flow/zh.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/de.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/es.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/fr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/id.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/it.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/ja.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/ko.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/nl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/pl.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/pt-br.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/tr.js +0 -0
- /package/dist/locales/{4.2.2 → 4.2.4}/main/zh.js +0 -0
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { n as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
1
|
+
import { x as e } from "./Button-C4uFgl7L.js";
|
|
2
|
+
import { L as t, r as n } from "./timezones-C5l0SSHK.js";
|
|
3
|
+
import { J as r, i, t as a, u as o, y as s } from "./constants-OTS1wmXZ.js";
|
|
4
|
+
import { t as c } from "./ArrowLeftIcon-BGd-X_Qm.js";
|
|
5
|
+
import { t as l } from "./CalendarIcon-CeQ1_FWq.js";
|
|
6
|
+
import { t as u } from "./ChevronDownIcon-y7oNyepp.js";
|
|
7
|
+
import { n as d, t as f } from "./MailIcon-xtNog-7h.js";
|
|
8
|
+
import { a as p, n as m, t as h } from "./shareCopyFeedback.svelte-BRInK1hH.js";
|
|
9
|
+
import { n as g } from "./copyToClipboard-CRDdh3r8.js";
|
|
10
|
+
import { t as _ } from "./Image-B3cEndLZ.js";
|
|
11
|
+
import { I as v, J as y, K as b, W as x, f as S, o as C } from "./orders-NZP81zYT.js";
|
|
12
|
+
import { a as w, l as T, o as E, t as D } from "./__SKIP_PATHS__-BTbGfN80.js";
|
|
13
|
+
import { n as O, t as k } from "./Heading-Dfo3bjyn.js";
|
|
13
14
|
import { t as A } from "./Text-CqjLjIF8.js";
|
|
14
|
-
import "./colors-
|
|
15
|
-
import { c as ee, r as j } from "./pixels-
|
|
16
|
-
import { i as M, n as N, t as P } from "./i18n-
|
|
17
|
-
import { a as te, h as F, n as I, s as L } from "./utils-
|
|
18
|
-
import { t as R } from "./labels-
|
|
19
|
-
import { a as z, i as B, n as V, o as ne, r as H, s as re } from "./showcase-state-options-
|
|
15
|
+
import "./colors-DeJAzg_q.js";
|
|
16
|
+
import { c as ee, r as j } from "./pixels-BBruZizp.js";
|
|
17
|
+
import { i as M, n as N, t as P } from "./i18n-GzfxX0Ad.js";
|
|
18
|
+
import { a as te, h as F, n as I, s as L } from "./utils-C8GgxJMv.js";
|
|
19
|
+
import { t as R } from "./labels-CqodQmuY.js";
|
|
20
|
+
import { a as z, i as B, n as V, o as ne, r as H, s as re } from "./showcase-state-options-BoJxiEsg.js";
|
|
20
21
|
import { n as U, t as W } from "./buyerEmail-BfCq-gDt.js";
|
|
21
22
|
import "svelte/internal/disclose-version";
|
|
22
23
|
import * as G from "svelte/internal/client";
|
|
@@ -46,10 +47,10 @@ function ce(e, t) {
|
|
|
46
47
|
//#region src/lib/public-calendar-flow/pendingValidation.ts
|
|
47
48
|
var J = (e) => `micdrop_pending_validate_${e}`;
|
|
48
49
|
function le(e) {
|
|
49
|
-
return e ?
|
|
50
|
+
return e ? x(J(e), null) : null;
|
|
50
51
|
}
|
|
51
52
|
function Y(e) {
|
|
52
|
-
e &&
|
|
53
|
+
e && b(J(e));
|
|
53
54
|
}
|
|
54
55
|
//#endregion
|
|
55
56
|
//#region src/lib/public-calendar-flow/SuccessTicket.svelte
|
|
@@ -161,9 +162,9 @@ var $ = {
|
|
|
161
162
|
yellow: "#fbbc05",
|
|
162
163
|
red: "#ea4335"
|
|
163
164
|
}, ue = G.from_html(" <!>", 1), de = G.from_html("<p class=\"wallet-note caption svelte-4szgdz\"> </p>"), fe = G.from_html("<!> <!>", 1), pe = G.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>"), me = G.from_html("<!> ", 1), he = G.from_html("<p class=\"copy-fallback caption svelte-4szgdz\">Copy failed — select to copy: <span class=\"copy-url svelte-4szgdz\"> </span></p>"), ge = G.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), _e = G.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), ve = G.from_html("<div><!></div>");
|
|
164
|
-
function ye(e,
|
|
165
|
-
G.push(
|
|
166
|
-
let r = G.prop(
|
|
165
|
+
function ye(e, t) {
|
|
166
|
+
G.push(t, !0);
|
|
167
|
+
let r = G.prop(t, "backHref", 3, void 0), s = G.prop(t, "labels", 3, R), f = G.prop(t, "locale", 3, void 0), m = G.derived(() => r() || t.eventUrl), v = G.state(!1), y = h(), b = G.state("");
|
|
167
168
|
G.user_effect(() => {
|
|
168
169
|
G.get(b) && T(G.get(b), { politeness: "polite" });
|
|
169
170
|
}), G.user_effect(() => {
|
|
@@ -179,17 +180,17 @@ function ye(e, n) {
|
|
|
179
180
|
return document.addEventListener("click", e), () => document.removeEventListener("click", e);
|
|
180
181
|
});
|
|
181
182
|
let S = G.derived(() => (() => {
|
|
182
|
-
let e = new Date(
|
|
183
|
+
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(", ");
|
|
183
184
|
return `https://calendar.google.com/calendar/render?${new URLSearchParams({
|
|
184
185
|
action: "TEMPLATE",
|
|
185
|
-
text:
|
|
186
|
-
dates: `${r(e)}/${r(
|
|
186
|
+
text: t.event.title,
|
|
187
|
+
dates: `${r(e)}/${r(n)}`,
|
|
187
188
|
location: i,
|
|
188
|
-
details: `Event: ${
|
|
189
|
+
details: `Event: ${t.eventUrl}\n\nTicket confirmation #${t.orderId}`
|
|
189
190
|
}).toString()}`;
|
|
190
191
|
})());
|
|
191
192
|
function C() {
|
|
192
|
-
let e = new Date(
|
|
193
|
+
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
|
|
193
194
|
VERSION:2.0
|
|
194
195
|
PRODID:-//MicDrop//Ticket Confirmation//EN
|
|
195
196
|
CALSCALE:GREGORIAN
|
|
@@ -198,17 +199,17 @@ BEGIN:VEVENT
|
|
|
198
199
|
UID:${i}
|
|
199
200
|
DTSTAMP:${a}
|
|
200
201
|
DTSTART:${r(e)}
|
|
201
|
-
DTEND:${r(
|
|
202
|
-
SUMMARY:${s(
|
|
202
|
+
DTEND:${r(n)}
|
|
203
|
+
SUMMARY:${s(t.event.title)}
|
|
203
204
|
LOCATION:${s(o)}
|
|
204
|
-
DESCRIPTION:${s(`Order #${
|
|
205
|
-
URL:${
|
|
205
|
+
DESCRIPTION:${s(`Order #${t.orderId}\n\nView event: ${t.eventUrl}`)}
|
|
206
|
+
URL:${t.eventUrl}
|
|
206
207
|
STATUS:CONFIRMED
|
|
207
208
|
END:VEVENT
|
|
208
209
|
END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u = URL.createObjectURL(l);
|
|
209
210
|
try {
|
|
210
211
|
let e = document.createElement("a");
|
|
211
|
-
e.href = u, e.download = `${(
|
|
212
|
+
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();
|
|
212
213
|
} finally {
|
|
213
214
|
URL.revokeObjectURL(u);
|
|
214
215
|
}
|
|
@@ -218,14 +219,14 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
218
219
|
G.set(v, !1);
|
|
219
220
|
}
|
|
220
221
|
function E() {
|
|
221
|
-
y.share(
|
|
222
|
+
y.share(t.eventUrl);
|
|
222
223
|
}
|
|
223
224
|
function D() {
|
|
224
225
|
G.set(b, s().walletComingSoon || "Wallet passes are coming soon. Your ticket is confirmed — check your email", !0);
|
|
225
226
|
}
|
|
226
227
|
ae(y.dispose);
|
|
227
228
|
let k = G.derived(() => (() => {
|
|
228
|
-
let e = [
|
|
229
|
+
let e = [t.event.venue.name, t.event.venue.address].filter(Boolean);
|
|
229
230
|
return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(e.join(", "))}`;
|
|
230
231
|
})());
|
|
231
232
|
function ee() {
|
|
@@ -242,10 +243,10 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
242
243
|
var m = _e(), h = G.first_child(m), T = G.child(h);
|
|
243
244
|
_(T, {
|
|
244
245
|
get src() {
|
|
245
|
-
return
|
|
246
|
+
return t.event.imageUrl;
|
|
246
247
|
},
|
|
247
248
|
get alt() {
|
|
248
|
-
return
|
|
249
|
+
return t.event.title;
|
|
249
250
|
},
|
|
250
251
|
get fallback() {
|
|
251
252
|
return a;
|
|
@@ -259,10 +260,10 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
259
260
|
weight: "semibold",
|
|
260
261
|
leading: "tight",
|
|
261
262
|
class: "block",
|
|
262
|
-
children: (e,
|
|
263
|
+
children: (e, n) => {
|
|
263
264
|
G.next();
|
|
264
265
|
var r = G.text();
|
|
265
|
-
G.template_effect(() => G.set_text(r,
|
|
266
|
+
G.template_effect(() => G.set_text(r, t.event.title)), G.append(e, r);
|
|
266
267
|
},
|
|
267
268
|
$$slots: { default: !0 }
|
|
268
269
|
});
|
|
@@ -275,15 +276,15 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
275
276
|
A(te, {
|
|
276
277
|
size: "xs",
|
|
277
278
|
color: "muted",
|
|
278
|
-
children: (e,
|
|
279
|
+
children: (e, n) => {
|
|
279
280
|
G.next();
|
|
280
281
|
var r = ue(), a = G.first_child(r), s = G.sibling(a), c = (e) => {
|
|
281
|
-
var
|
|
282
|
-
G.template_effect((e) => G.set_text(
|
|
282
|
+
var n = G.text();
|
|
283
|
+
G.template_effect((e) => G.set_text(n, `· ${e ?? ""}`), [() => o(t.event.startDateTime, t.event.timezone, f())]), G.append(e, n);
|
|
283
284
|
};
|
|
284
285
|
G.if(s, (e) => {
|
|
285
|
-
|
|
286
|
-
}), G.template_effect((e) => G.set_text(a, `${e ?? ""} `), [() => i(
|
|
286
|
+
t.event.displayStartTime !== !1 && e(c);
|
|
287
|
+
}), G.template_effect((e) => G.set_text(a, `${e ?? ""} `), [() => i(t.event.startDateTime, t.event.timezone, f())]), G.append(e, r);
|
|
287
288
|
},
|
|
288
289
|
$$slots: { default: !0 }
|
|
289
290
|
}), G.reset(N);
|
|
@@ -292,10 +293,10 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
292
293
|
size: "xs",
|
|
293
294
|
color: "muted",
|
|
294
295
|
class: "block",
|
|
295
|
-
children: (e,
|
|
296
|
+
children: (e, n) => {
|
|
296
297
|
G.next();
|
|
297
298
|
var r = G.text();
|
|
298
|
-
G.template_effect(() => G.set_text(r,
|
|
299
|
+
G.template_effect(() => G.set_text(r, t.event.venue.name)), G.append(e, r);
|
|
299
300
|
},
|
|
300
301
|
$$slots: { default: !0 }
|
|
301
302
|
}), G.reset(F), G.reset(j);
|
|
@@ -311,7 +312,7 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
311
312
|
G.get(b) && e(re);
|
|
312
313
|
}), G.reset(L);
|
|
313
314
|
var U = G.sibling(L, 4), W = G.child(U);
|
|
314
|
-
|
|
315
|
+
n(W, {
|
|
315
316
|
variant: "default",
|
|
316
317
|
size: "md",
|
|
317
318
|
class: "w-full",
|
|
@@ -352,7 +353,7 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
352
353
|
G.get(v) && e(ae);
|
|
353
354
|
}), G.reset(U);
|
|
354
355
|
var K = G.sibling(U, 2), q = G.child(K);
|
|
355
|
-
|
|
356
|
+
n(q, {
|
|
356
357
|
variant: "default",
|
|
357
358
|
size: "md",
|
|
358
359
|
class: "flex-1",
|
|
@@ -366,7 +367,7 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
366
367
|
$$slots: { default: !0 }
|
|
367
368
|
});
|
|
368
369
|
var oe = G.sibling(q, 2), se = (e) => {
|
|
369
|
-
|
|
370
|
+
n(e, {
|
|
370
371
|
variant: "default",
|
|
371
372
|
size: "md",
|
|
372
373
|
class: "flex-1",
|
|
@@ -383,7 +384,7 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
383
384
|
});
|
|
384
385
|
};
|
|
385
386
|
G.if(oe, (e) => {
|
|
386
|
-
|
|
387
|
+
t.event.venue.address && e(se);
|
|
387
388
|
}), G.reset(K);
|
|
388
389
|
var J = G.sibling(K, 2), le = (e) => {
|
|
389
390
|
var t = he(), n = G.sibling(G.child(t)), r = G.child(n, !0);
|
|
@@ -400,30 +401,30 @@ END:VCALENDAR`, l = new Blob([c], { type: "text/calendar;charset=utf-8" }), u =
|
|
|
400
401
|
var Q = G.sibling(Z);
|
|
401
402
|
G.reset(X);
|
|
402
403
|
var ve = G.sibling(X, 2), ye = (e) => {
|
|
403
|
-
var
|
|
404
|
+
var n = ge(), r = G.sibling(G.first_child(n), 2), i = G.child(r);
|
|
404
405
|
ce(i, {
|
|
405
406
|
size: "16",
|
|
406
407
|
class: "shrink-0"
|
|
407
408
|
});
|
|
408
409
|
var a = G.sibling(i);
|
|
409
410
|
G.reset(r), G.template_effect(() => {
|
|
410
|
-
G.set_attribute(r, "href", `mailto:${
|
|
411
|
-
}), G.append(e,
|
|
411
|
+
G.set_attribute(r, "href", `mailto:${t.event.venue.contactEmail ?? ""}?subject=Help with Order ${t.orderId ?? ""}`), G.set_text(a, ` ${(s().needHelp || "Need help?") ?? ""}`);
|
|
412
|
+
}), G.append(e, n);
|
|
412
413
|
};
|
|
413
414
|
G.if(ve, (e) => {
|
|
414
|
-
|
|
415
|
+
t.event.venue.contactEmail && e(ye);
|
|
415
416
|
}), G.reset(Y), G.reset(O), G.template_effect(() => {
|
|
416
417
|
G.set_attribute(z, "alt", s().addToAppleWallet || "Add to Apple Wallet"), G.set_attribute(V, "alt", s().saveToGoogleWallet || "Save to Google Wallet"), G.set_attribute(ne, "alt", s().saveToGoogleWallet || "Save to Google Wallet"), G.set_text(Q, ` ${(s().backToEvent || "Back to event") ?? ""}`);
|
|
417
418
|
}), G.delegated("click", R, D), G.delegated("click", B, D), G.delegated("click", X, ee), G.append(e, m);
|
|
418
419
|
},
|
|
419
420
|
$$slots: { default: !0 }
|
|
420
|
-
}), G.reset(j), G.template_effect(() => M = G.set_class(j, 1, "actions-wrapper svelte-4szgdz", null, M, { visible:
|
|
421
|
+
}), G.reset(j), G.template_effect(() => M = G.set_class(j, 1, "actions-wrapper svelte-4szgdz", null, M, { visible: t.showContent })), G.append(e, j), G.pop();
|
|
421
422
|
}
|
|
422
423
|
G.delegate(["click"]);
|
|
423
424
|
//#endregion
|
|
424
425
|
//#region src/lib/public-calendar-flow/Success.svelte
|
|
425
426
|
var be = G.from_html("<div class=\"w-full min-h-screen bg-surface-primary text-color-primary\"><div class=\"max-w-6xl mx-auto px-4 py-6 md:px-6 md:py-8\"><div class=\"hidden md:grid grid-cols-booking-split gap-8 items-start\"><!> <div class=\"sticky top-6\"><!></div></div> <div class=\"md:hidden space-y-6\"><!> <!></div></div></div>");
|
|
426
|
-
function xe(
|
|
427
|
+
function xe(e, n) {
|
|
427
428
|
G.push(n, !0);
|
|
428
429
|
let r = V(), i = G.derived(() => H.current), a = G.prop(n, "data", 3, void 0), o = G.prop(n, "eventUrl", 3, void 0), s = G.prop(n, "backHref", 3, void 0), c = G.prop(n, "labels", 19, () => ({})), l = G.prop(n, "locale", 3, void 0), u = G.derived(() => P(l(), c())), d = G.derived(() => !a());
|
|
429
430
|
G.user_effect(() => {
|
|
@@ -436,14 +437,14 @@ function xe(t, n) {
|
|
|
436
437
|
event: z,
|
|
437
438
|
orderId: "12847",
|
|
438
439
|
lines: [{
|
|
439
|
-
ticketId:
|
|
440
|
+
ticketId: t(101),
|
|
440
441
|
ticketName: "General Admission",
|
|
441
442
|
quantity: 2,
|
|
442
443
|
unitPrice: 25,
|
|
443
444
|
fee: 2.5,
|
|
444
445
|
subtotal: 50
|
|
445
446
|
}, {
|
|
446
|
-
ticketId:
|
|
447
|
+
ticketId: t(102),
|
|
447
448
|
ticketName: "VIP Front Row",
|
|
448
449
|
quantity: 1,
|
|
449
450
|
unitPrice: 55,
|
|
@@ -456,7 +457,7 @@ function xe(t, n) {
|
|
|
456
457
|
event: ne,
|
|
457
458
|
orderId: "12848",
|
|
458
459
|
lines: [{
|
|
459
|
-
ticketId:
|
|
460
|
+
ticketId: t(201),
|
|
460
461
|
ticketName: "Free Entry",
|
|
461
462
|
quantity: 2,
|
|
462
463
|
unitPrice: 0,
|
|
@@ -469,7 +470,7 @@ function xe(t, n) {
|
|
|
469
470
|
event: re,
|
|
470
471
|
orderId: "12849",
|
|
471
472
|
lines: [{
|
|
472
|
-
ticketId:
|
|
473
|
+
ticketId: t(301),
|
|
473
474
|
ticketName: "Workshop Seat",
|
|
474
475
|
quantity: 1,
|
|
475
476
|
unitPrice: 75,
|
|
@@ -482,14 +483,14 @@ function xe(t, n) {
|
|
|
482
483
|
event: B,
|
|
483
484
|
orderId: "12850",
|
|
484
485
|
lines: [{
|
|
485
|
-
ticketId:
|
|
486
|
+
ticketId: t(401),
|
|
486
487
|
ticketName: "Donation",
|
|
487
488
|
quantity: 1,
|
|
488
489
|
unitPrice: 25,
|
|
489
490
|
fee: 0,
|
|
490
491
|
subtotal: 25
|
|
491
492
|
}, {
|
|
492
|
-
ticketId:
|
|
493
|
+
ticketId: t(402),
|
|
493
494
|
ticketName: "Standard Admission",
|
|
494
495
|
quantity: 1,
|
|
495
496
|
unitPrice: 30,
|
|
@@ -629,14 +630,14 @@ function xe(t, n) {
|
|
|
629
630
|
get locale() {
|
|
630
631
|
return l();
|
|
631
632
|
}
|
|
632
|
-
}), G.reset(T), G.reset(x), G.reset(b), G.append(
|
|
633
|
+
}), G.reset(T), G.reset(x), G.reset(b), G.append(e, b), G.pop();
|
|
633
634
|
}
|
|
634
635
|
//#endregion
|
|
635
636
|
//#region src/components/Views/Success.svelte
|
|
636
|
-
var Se =
|
|
637
|
-
function Oe(
|
|
637
|
+
var Se = e("Success"), Ce = G.from_html("<p class=\"payment-failed-title svelte-1mm1psu\"> </p> <p class=\"payment-failed-message svelte-1mm1psu\"> </p>", 1), we = G.from_html("<p class=\"payment-failed-title svelte-1mm1psu\"> </p> <p class=\"payment-failed-message svelte-1mm1psu\"> </p> <a class=\"payment-failed-retry svelte-1mm1psu\"> </a>", 1), Te = G.from_html("<div class=\"flex flex-col items-center justify-center py-24 text-center gap-4 payment-failed-container\"><!></div>"), Ee = G.from_html("<div class=\"flex flex-col items-center justify-center py-24 text-center gap-4 error-container svelte-1mm1psu\"><p class=\"svelte-1mm1psu\"> </p></div>"), De = G.from_html("<div class=\"flex items-center justify-center py-24 text-center loading-container svelte-1mm1psu\"><p> </p></div>");
|
|
638
|
+
function Oe(e, n) {
|
|
638
639
|
G.push(n, !0);
|
|
639
|
-
let r = G.prop(n, "data", 19, () => ({})), i = G.prop(n, "browseUrl", 3, "/"), a = G.prop(n, "backHref", 3, void 0), o = G.prop(n, "eventUrl", 3, void 0), c = G.prop(n, "widgetId", 3, null), l = G.prop(n, "venueId", 3, null), u = G.prop(n, "labels", 3, s), d = G.prop(n, "locale", 3, void 0), f = G.derived(() => a() || (r()?.id && r()?.slug ? w(String(r().id), String(r().slug)) : D(i(), {}))), p = G.state(null), h = G.state(""), g = G.state(null), _ = G.state(!0),
|
|
640
|
+
let r = G.prop(n, "data", 19, () => ({})), i = G.prop(n, "browseUrl", 3, "/"), a = G.prop(n, "backHref", 3, void 0), o = G.prop(n, "eventUrl", 3, void 0), c = G.prop(n, "widgetId", 3, null), l = G.prop(n, "venueId", 3, null), u = G.prop(n, "labels", 3, s), d = G.prop(n, "locale", 3, void 0), f = G.derived(() => a() || (r()?.id && r()?.slug ? w(String(r().id), String(r().slug)) : D(i(), {}))), p = G.state(null), h = G.state(""), g = G.state(null), _ = G.state(!0), b = G.derived(() => String(r()?.redirectStatus || "")), T = G.derived(() => G.get(b) !== "" && G.get(b) !== "succeeded"), E = G.derived(() => G.get(b) === "pending" || G.get(b) === "processing"), O = G.state(!1), k = G.state(!1);
|
|
640
641
|
async function A(e, t) {
|
|
641
642
|
if (!e) return "unconfirmed";
|
|
642
643
|
let n = le(e);
|
|
@@ -662,35 +663,35 @@ function Oe(t, n) {
|
|
|
662
663
|
G.set(_, !1);
|
|
663
664
|
return;
|
|
664
665
|
}
|
|
665
|
-
if (G.get(
|
|
666
|
+
if (G.get(b) === "succeeded") {
|
|
666
667
|
let e = await A(String(r()?.orderId || r()?.orderUuid || ""), String(r()?.paymentIntentId || ""));
|
|
667
668
|
if (e !== "ok") {
|
|
668
669
|
e === "no-charge" ? G.set(k, !0) : G.set(O, !0), G.set(_, !1);
|
|
669
670
|
return;
|
|
670
671
|
}
|
|
671
672
|
}
|
|
672
|
-
let { id:
|
|
673
|
+
let { id: e, slug: n, event: i, orderId: a, orderUuid: s, customerEmail: d, ticketCount: f, value: C, currency: w } = r() || {};
|
|
673
674
|
{
|
|
674
|
-
let { postMessageOnSuccess:
|
|
675
|
-
if (
|
|
676
|
-
let
|
|
675
|
+
let { postMessageOnSuccess: t, postMessageTargetOrigin: n } = v();
|
|
676
|
+
if (t) {
|
|
677
|
+
let t = {
|
|
677
678
|
orderId: String(a || s || ""),
|
|
678
|
-
eventId:
|
|
679
|
+
eventId: e ?? r()?.eventId ?? i?.id ?? null
|
|
679
680
|
};
|
|
680
|
-
typeof C == "number" && Number.isFinite(C) && (
|
|
681
|
+
typeof C == "number" && Number.isFinite(C) && (t.value = C, t.currency = w || "USD"), ee(t, n);
|
|
681
682
|
}
|
|
682
683
|
}
|
|
683
684
|
{
|
|
684
|
-
let
|
|
685
|
-
|
|
686
|
-
eventId:
|
|
685
|
+
let t = e ?? r()?.eventId ?? i?.id ?? null, n = String(a || s || ""), o = "micdrop_purchased_orders", u = x(o, []) ?? [], d = !!n && u.includes(n);
|
|
686
|
+
t != null && !d && (S(t, c(), l() || i?.venueID || i?.venueId || null), j({
|
|
687
|
+
eventId: t,
|
|
687
688
|
orderId: n,
|
|
688
689
|
value: typeof C == "number" ? C : null,
|
|
689
690
|
currency: w,
|
|
690
691
|
contentName: i?.name || i?.title || ""
|
|
691
692
|
}), n && y(o, [...u, n]));
|
|
692
693
|
}
|
|
693
|
-
G.set(h, o() || `${window.location.origin}/e/${
|
|
694
|
+
G.set(h, o() || `${window.location.origin}/e/${e}-${n}`, !0);
|
|
694
695
|
let E;
|
|
695
696
|
try {
|
|
696
697
|
E = m(i);
|
|
@@ -732,7 +733,7 @@ function Oe(t, n) {
|
|
|
732
733
|
Se.warn("Success: getOrder failed, using route params:", e);
|
|
733
734
|
}
|
|
734
735
|
N.length === 0 && f > 0 && (N = [{
|
|
735
|
-
ticketId:
|
|
736
|
+
ticketId: t(0),
|
|
736
737
|
ticketName: u().ticketFallbackName || "Ticket",
|
|
737
738
|
quantity: f,
|
|
738
739
|
unitPrice: 0,
|
|
@@ -744,7 +745,7 @@ function Oe(t, n) {
|
|
|
744
745
|
lines: N,
|
|
745
746
|
customerEmail: M,
|
|
746
747
|
...P ? { serverTotals: P } : {}
|
|
747
|
-
}, !0), L(String(
|
|
748
|
+
}, !0), L(String(e)), F("checkout-cartid"), F(te), G.set(_, !1);
|
|
748
749
|
});
|
|
749
750
|
var M = G.comment(), N = G.first_child(M), P = (e) => {
|
|
750
751
|
var t = Te(), n = G.child(t), r = (e) => {
|
|
@@ -791,7 +792,7 @@ function Oe(t, n) {
|
|
|
791
792
|
};
|
|
792
793
|
G.if(N, (e) => {
|
|
793
794
|
G.get(T) || G.get(k) || G.get(O) ? e(P) : G.get(g) ? e(R, 1) : G.get(_) || !G.get(p) ? e(z, 2) : e(B, -1);
|
|
794
|
-
}), G.append(
|
|
795
|
+
}), G.append(e, M), G.pop();
|
|
795
796
|
}
|
|
796
797
|
//#endregion
|
|
797
798
|
export { Oe as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e } from "./constants-
|
|
1
|
+
import { J as e } from "./constants-OTS1wmXZ.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
|