@getmicdrop/venue-calendar 4.2.3 → 4.2.5
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-CxZXP_IT.js → ArrowLeftIcon-BxKUPFOE.js} +1 -1
- package/dist/{Badge-Bv_MT-Vt.js → Badge-M6qZyfTF.js} +9 -10
- package/dist/BlockPlaceholder-CLdS2Y-c.js +62 -0
- package/dist/{Calendar-BKefLfIt.js → Calendar-DwNhbEQY.js} +290 -292
- package/dist/CalendarFoundryView-BX5mT6NY.js +23561 -0
- package/dist/{CalendarIcon-CLGR_zlO.js → CalendarIcon-jLckZ_4N.js} +1 -1
- package/dist/{CartView-CHFlfWS9.js → CartView-B61KRyFq.js} +644 -651
- package/dist/Checkout-CoExiUba.js +1809 -0
- package/dist/{Checkout-C-A4t1eE.js → Checkout-DlQ2x3L6.js} +97 -97
- package/dist/{CheckoutTimer-d3KUbevy.js → CheckoutTimer-Cv9iQj2d.js} +5 -5
- package/dist/{ChevronDownIcon-YtBeSqjf.js → ChevronDownIcon-DiZxxS3e.js} +1 -1
- package/dist/{ClockIcon-a9tJQ5El.js → ClockIcon-BrWavNGl.js} +1 -1
- package/dist/{CloseIcon-DSURK5co.js → CloseIcon-Cmddp2PA.js} +1 -1
- package/dist/{CollectionView-BiBMllyw.js → CollectionView-DpkF55yD.js} +12 -13
- package/dist/Event-CzNN2jRR.js +3040 -0
- package/dist/{EventPage-C7K2yA4v.js → EventPage-DnKNNWk8.js} +167 -168
- package/dist/{Heading-Dfo3bjyn.js → Heading-B7VYbbfJ.js} +3 -4
- package/dist/Image-DBJAfLYe.js +81 -0
- package/dist/{phoneUtils-FnBDCqO0.js → Input-DsWjpYtc.js} +1132 -694
- package/dist/{MailIcon-DIrQpcGo.js → MailIcon-gpZMGdBK.js} +1 -1
- package/dist/{Modal-DrA1swbF.js → Modal-D4AUdrz8.js} +2 -2
- package/dist/{ModalFooter-r1NQNG9P.js → ModalFooter-8Di4-qKC.js} +57 -59
- package/dist/{PasswordInput-DB4qa7kS.js → PasswordInput-Buk60yEf.js} +4 -4
- package/dist/{ScarcityBadge-BJOm7_Ho.js → ScarcityBadge-DgrS89hq.js} +4 -4
- package/dist/{SeriesPage-JVmqUSax.js → SeriesPage-BCovOJ6a.js} +5 -5
- package/dist/{Spinner-BwiDys7C.js → Spinner-ChTN7t75.js} +3 -3
- package/dist/{Success-DAE6gPZM.js → Success-BRufJqwQ.js} +80 -81
- package/dist/{TagIcon-CrTNd8qE.js → TagIcon-C0uTQgU8.js} +1 -1
- package/dist/{ViewTicketsEmbed-Zx-mvP2p.js → ViewTicketsEmbed-CfagtvVL.js} +66 -67
- package/dist/{WarningCircleIcon-C5-op3Cy.js → WarningCircleIcon-B2hkUrvV.js} +1 -1
- package/dist/{WarningTriIcon-BxIQn7c2.js → WarningTriIcon-Boy4IW6-.js} +1 -1
- package/dist/{__SKIP_PATHS__-DyyiXBgB.js → __SKIP_PATHS__-DPK-YB-V.js} +1 -1
- package/dist/{href-C8WGnROy.js → allowlist-Cu2kP6jt.js} +4 -21
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +182 -165
- package/dist/api/client.d.ts +16 -0
- package/dist/api/events.d.ts +21 -2
- package/dist/api/types.d.ts +17 -0
- package/dist/{browser-Um8Y6K99.js → browser-25hnscei.js} +7 -7
- package/dist/cancel-gqtaw6SK.js +59 -0
- package/dist/{colors-MuuDk6KF.js → colors-B9hMXv8l.js} +118 -108
- package/dist/{constants-CqrJv6nM.js → constants-DBwdjnEU.js} +77 -74
- package/dist/{copyToClipboard-CTS9Wtmo.js → copyToClipboard-BDa2_uNf.js} +1 -1
- package/dist/{createI18n-DBUVdZra.js → createI18n-08XGDh1_.js} +1 -1
- package/dist/{event-BrptLro8.js → event-Cp5D4ctZ.js} +1 -1
- package/dist/{event-transform-jFmHl0Qp.js → event-transform-BFJTgtU9.js} +4 -4
- package/dist/{eventStatusStream-D04pcbuu.js → eventStatusStream-SyvhRCtk.js} +6 -6
- package/dist/{i18n-CcJmTGJP.js → i18n-4ZGOM8hY.js} +11 -11
- package/dist/{labels-Q4CaHsVM.js → labels-99RC9gAv.js} +1 -1
- package/dist/{modalManager.svelte-qcVxl7C5.js → modalManager.svelte-BdNsCq6n.js} +2 -2
- package/dist/{order-totals-BImtvmoh.js → order-totals-CQ0V7Fdc.js} +13 -15
- package/dist/{orders-C8kt6c-E.js → orders-oRqSQXSf.js} +209 -199
- package/dist/{pixels-MEc7WYiV.js → pixels-DycN_8bu.js} +7 -8
- package/dist/{promo-DtLZRskK.js → promo-BrMcoTYh.js} +3 -3
- package/dist/{serverTotals-BO126TTd.js → serverTotals-CpRaEe9K.js} +1 -1
- package/dist/{shareCopyFeedback.svelte-Dko8NIbm.js → shareCopyFeedback.svelte-D314p5oA.js} +25 -25
- package/dist/{showcase-state-options-BoJxiEsg.js → showcase-state-options-B2XfybZq.js} +1 -1
- package/dist/timezones-Cq1mLtfM.js +4170 -0
- package/dist/{to-event-card-props-BAHzloEA.js → to-event-card-props-BNBWYYPo.js} +23 -24
- package/dist/{utils-Ts4-U13Y.js → utils-CrlClQxc.js} +30 -30
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1292 -1154
- package/dist/venue-calendar.iife.js +63 -64
- package/dist/venue-calendar.umd.js +59 -60
- package/package.json +220 -220
- package/dist/BlockPlaceholder-HZ6Coko5.js +0 -52
- package/dist/Button-C4uFgl7L.js +0 -2141
- package/dist/CalendarFoundryView-tDmFCrJ3.js +0 -22292
- package/dist/Checkout-CRX7dcRr.js +0 -1807
- package/dist/CloseOutline-qpVa62mu.js +0 -13
- package/dist/CropImage-B0tj2_uN.js +0 -404
- package/dist/Event-1ZJVzqFN.js +0 -3034
- package/dist/Image-B3cEndLZ.js +0 -87
- package/dist/Input-DkYIFK4J.js +0 -487
- package/dist/imageOptimizer-CB3wKJU8.js +0 -47
- package/dist/sortable.esm--ZtTTTPp.js +0 -1451
- package/dist/timezones-C5l0SSHK.js +0 -2030
- package/dist/z-index-B0Vk_Mp1.js +0 -27
- /package/dist/locales/{4.2.3 → 4.2.5}/flow/de.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/flow/es.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/flow/fr.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/flow/id.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/flow/it.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/flow/ja.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/flow/ko.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/flow/nl.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/flow/pl.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/flow/tr.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/flow/zh.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/main/de.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/main/es.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/main/fr.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/main/id.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/main/it.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/main/ja.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/main/ko.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/main/nl.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/main/pl.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/main/pt-br.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/main/tr.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.5}/main/zh.js +0 -0
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { n as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { a as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import le, { n as P, t as ue } from "./Checkout-CRX7dcRr.js";
|
|
1
|
+
import { O as e, Q as t, Z as n, r, t as i, tt as a } from "./timezones-Cq1mLtfM.js";
|
|
2
|
+
import { n as o, r as s, t as c } from "./CloseIcon-Cmddp2PA.js";
|
|
3
|
+
import { _ as l, c as u, y as d } from "./Input-DsWjpYtc.js";
|
|
4
|
+
import { C as f, O as p, m, y as h } from "./constants-DBwdjnEU.js";
|
|
5
|
+
import { t as g } from "./TagIcon-C0uTQgU8.js";
|
|
6
|
+
import { t as _ } from "./WarningTriIcon-Boy4IW6-.js";
|
|
7
|
+
import { c as v, n as y, o as b, r as x, t as S } from "./orders-oRqSQXSf.js";
|
|
8
|
+
import { n as C, t as w } from "./serverTotals-CpRaEe9K.js";
|
|
9
|
+
import { a as T, i as E, n as D, r as O, t as k } from "./ModalFooter-8Di4-qKC.js";
|
|
10
|
+
import { S as ee, d as A, l as te, u as j } from "./colors-B9hMXv8l.js";
|
|
11
|
+
import { t as ne } from "./event-transform-BFJTgtU9.js";
|
|
12
|
+
import { a as re, f as ie, p as M, r as ae, u as N } from "./utils-CrlClQxc.js";
|
|
13
|
+
import { a as oe, n as se } from "./promo-BrMcoTYh.js";
|
|
14
|
+
import { r as ce } from "./order-totals-CQ0V7Fdc.js";
|
|
15
|
+
import le, { n as P, t as ue } from "./Checkout-CoExiUba.js";
|
|
17
16
|
import { n as de } from "./buyerEmail-BfCq-gDt.js";
|
|
18
17
|
import "svelte/internal/disclose-version";
|
|
19
18
|
import * as F from "svelte/internal/client";
|
|
@@ -181,10 +180,10 @@ function Q(e, t = h) {
|
|
|
181
180
|
}
|
|
182
181
|
//#endregion
|
|
183
182
|
//#region src/components/Events/Checkout/GiftCardInput.svelte
|
|
184
|
-
var be =
|
|
185
|
-
function Oe(
|
|
183
|
+
var be = a("GiftCardInput"), xe = F.from_html("<div class=\"applied-card mb-2 svelte-emw0hd\"><div class=\"flex items-center gap-3\"><div class=\"applied-icon svelte-emw0hd\"><!></div> <div class=\"flex flex-col flex-1\"><span class=\"type-caption text-status-success-text\"> </span> <span class=\"type-body font-mono text-text-primary\"> </span></div> <span class=\"type-label text-accent-success\"> </span> <!></div></div>"), Se = F.from_html("<div><!> <span> </span></div>"), Ce = F.from_html("<div class=\"flex justify-between items-center type-body mt-1.5\"><span class=\"text-text-secondary\"> </span> <span class=\"type-label text-text-primary\"> </span></div>"), we = F.from_html("<div class=\"applied-card mb-3 svelte-emw0hd\"><div class=\"flex justify-between items-center type-body\"><span class=\"text-text-secondary\"> </span> <span class=\"type-label text-accent-success\"> </span></div> <!></div>"), Te = F.from_html("<div class=\"flex items-center gap-1.5 mt-2 type-body text-accent-danger\"><!> <span> </span></div>"), Ee = F.from_html("<div class=\"input-section svelte-emw0hd\"><div class=\"flex gap-2\"><input type=\"text\" name=\"giftCardCode\" autocomplete=\"off\" autocapitalize=\"characters\"/> <!></div> <!></div>"), De = F.from_html("<div class=\"mb-4\"><!> <!> <button type=\"button\"><!> <span> </span> <span class=\"toggle-indicator svelte-emw0hd\"> </span></button> <!></div>");
|
|
184
|
+
function Oe(e, i) {
|
|
186
185
|
F.push(i, !0);
|
|
187
|
-
let a = F.prop(i, "onApplied", 3, () => {}), s = F.prop(i, "onRemoved", 3, () => {}),
|
|
186
|
+
let a = F.prop(i, "onApplied", 3, () => {}), s = F.prop(i, "onRemoved", 3, () => {}), d = F.prop(i, "disabled", 3, !1), p = F.prop(i, "labels", 3, h), m = F.state(""), v = F.state(!1), y = F.state(""), b = F.state(F.proxy([])), x = F.state(!1), S = F.state(0), C = F.derived(() => F.get(b).reduce((e, t) => e + (t.giftCardAmount || 0), 0)), w = F.derived(() => Math.max(0, F.get(S) - F.get(C))), T = F.derived(() => F.get(b).length > 0 && F.get(w) <= 0);
|
|
188
187
|
function E() {
|
|
189
188
|
if (F.get(b).length === 0) {
|
|
190
189
|
s()();
|
|
@@ -259,7 +258,7 @@ function Oe(n, i) {
|
|
|
259
258
|
return F.get(v);
|
|
260
259
|
},
|
|
261
260
|
get disabled() {
|
|
262
|
-
return
|
|
261
|
+
return d();
|
|
263
262
|
},
|
|
264
263
|
get "aria-label"() {
|
|
265
264
|
return F.get(e);
|
|
@@ -272,20 +271,20 @@ function Oe(n, i) {
|
|
|
272
271
|
}
|
|
273
272
|
F.reset(i), F.reset(n), F.template_effect((e) => {
|
|
274
273
|
F.set_text(g, p().giftCardApplied || "Gift card applied"), F.set_text(y, F.get(t).code), F.set_text(x, `-${e ?? ""}`);
|
|
275
|
-
}, [() => f(F.get(t).giftCardAmount)]), F.transition(3, n, () => l, () => ({ duration:
|
|
274
|
+
}, [() => f(F.get(t).giftCardAmount)]), F.transition(3, n, () => l, () => ({ duration: u.fast })), F.append(e, n);
|
|
276
275
|
});
|
|
277
|
-
var re = F.sibling(ne, 2), ie = (
|
|
276
|
+
var re = F.sibling(ne, 2), ie = (e) => {
|
|
278
277
|
var r = we(), i = F.child(r), a = F.child(i), s = F.child(a, !0);
|
|
279
278
|
F.reset(a);
|
|
280
279
|
var c = F.sibling(a, 2), l = F.child(c);
|
|
281
280
|
F.reset(c), F.reset(i);
|
|
282
|
-
var u = F.sibling(i, 2), d = (
|
|
281
|
+
var u = F.sibling(i, 2), d = (e) => {
|
|
283
282
|
var r = Se(), i = F.child(r);
|
|
284
283
|
o(i, { size: "16" });
|
|
285
284
|
var a = F.sibling(i, 2), s = F.child(a, !0);
|
|
286
285
|
F.reset(a), F.reset(r), F.template_effect(() => {
|
|
287
|
-
F.set_class(r, 1, `full-coverage-badge ${t.caption ?? ""} ${
|
|
288
|
-
}), F.append(
|
|
286
|
+
F.set_class(r, 1, `full-coverage-badge ${t.caption ?? ""} ${n.emphasis ?? ""}`, "svelte-emw0hd"), F.set_text(s, p().fullyCoveredByGiftCard || "Fully covered by gift card");
|
|
287
|
+
}), F.append(e, r);
|
|
289
288
|
}, m = (e) => {
|
|
290
289
|
var t = Ce(), n = F.child(t), r = F.child(n, !0);
|
|
291
290
|
F.reset(n);
|
|
@@ -298,7 +297,7 @@ function Oe(n, i) {
|
|
|
298
297
|
F.get(T) ? e(d) : e(m, -1);
|
|
299
298
|
}), F.reset(r), F.template_effect((e) => {
|
|
300
299
|
F.set_text(s, p().appliedToOrder || "Applied to order"), F.set_text(l, `-${e ?? ""}`);
|
|
301
|
-
}, [() => f(F.get(C))]), F.append(
|
|
300
|
+
}, [() => f(F.get(C))]), F.append(e, r);
|
|
302
301
|
};
|
|
303
302
|
F.if(re, (e) => {
|
|
304
303
|
F.get(b).length > 0 && e(ie);
|
|
@@ -318,7 +317,7 @@ function Oe(n, i) {
|
|
|
318
317
|
let o;
|
|
319
318
|
var s = F.sibling(a, 2);
|
|
320
319
|
{
|
|
321
|
-
let e = F.derived(() => !F.get(m).trim() ||
|
|
320
|
+
let e = F.derived(() => !F.get(m).trim() || d());
|
|
322
321
|
r(s, {
|
|
323
322
|
variant: "default",
|
|
324
323
|
size: "sm",
|
|
@@ -343,19 +342,19 @@ function Oe(n, i) {
|
|
|
343
342
|
var t = Te(), n = F.child(t);
|
|
344
343
|
_(n, { size: "16" });
|
|
345
344
|
var r = F.sibling(n, 2), i = F.child(r, !0);
|
|
346
|
-
F.reset(r), F.reset(t), F.template_effect(() => F.set_text(i, F.get(y))), F.transition(3, t, () => l, () => ({ duration:
|
|
345
|
+
F.reset(r), F.reset(t), F.template_effect(() => F.set_text(i, F.get(y))), F.transition(3, t, () => l, () => ({ duration: u.micro })), F.append(e, t);
|
|
347
346
|
};
|
|
348
347
|
F.if(c, (e) => {
|
|
349
348
|
F.get(y) && e(f);
|
|
350
349
|
}), F.reset(n), F.template_effect(() => {
|
|
351
|
-
F.set_attribute(a, "aria-label", p().enterGiftCardCode || "Enter gift card code"), F.set_attribute(a, "placeholder", p().enterGiftCardCode || "Enter gift card code"), a.disabled = F.get(v) ||
|
|
352
|
-
}), F.delegated("keydown", a, k), F.bind_value(a, () => F.get(m), (e) => F.set(m, e)), F.transition(3, n, () => l, () => ({ duration:
|
|
350
|
+
F.set_attribute(a, "aria-label", p().enterGiftCardCode || "Enter gift card code"), F.set_attribute(a, "placeholder", p().enterGiftCardCode || "Enter gift card code"), a.disabled = F.get(v) || d(), o = F.set_class(a, 1, `gift-input ${t.body ?? ""}`, "svelte-emw0hd", o, { "has-error": !!F.get(y) });
|
|
351
|
+
}), F.delegated("keydown", a, k), F.bind_value(a, () => F.get(m), (e) => F.set(m, e)), F.transition(3, n, () => l, () => ({ duration: u.fast })), F.append(e, n);
|
|
353
352
|
};
|
|
354
353
|
F.if(le, (e) => {
|
|
355
354
|
F.get(x) && e(P);
|
|
356
355
|
}), F.reset(j), F.template_effect(() => {
|
|
357
|
-
F.set_class(M, 1, `gift-card-toggle ${t.label ?? ""}`, "svelte-emw0hd"), M.disabled =
|
|
358
|
-
}), F.delegated("click", M, ee), F.append(
|
|
356
|
+
F.set_class(M, 1, `gift-card-toggle ${t.label ?? ""}`, "svelte-emw0hd"), M.disabled = d(), F.set_attribute(M, "aria-expanded", F.get(x)), F.set_text(oe, F.get(b).length > 0 ? p().addAnotherGiftCard || "Add another gift card" : p().haveAGiftCard || "Have a gift card?"), F.set_text(ce, F.get(x) ? "-" : "+");
|
|
357
|
+
}), F.delegated("click", M, ee), F.append(e, j), F.pop();
|
|
359
358
|
}
|
|
360
359
|
F.delegate(["click", "keydown"]);
|
|
361
360
|
//#endregion
|
|
@@ -363,7 +362,7 @@ F.delegate(["click", "keydown"]);
|
|
|
363
362
|
var ke = F.from_html("<div class=\"flex flex-col items-center text-center pt-6 px-4 pb-4\"><div aria-hidden=\"true\"><!></div> <h3 id=\"event-unavailable-title\"> </h3> <p id=\"event-unavailable-body\" class=\"type-body tone-secondary max-w-72\"> </p></div>"), Ae = F.from_html("<!> <!>", 1);
|
|
364
363
|
function je(e, n) {
|
|
365
364
|
F.push(n, !0);
|
|
366
|
-
let i = F.prop(n, "open", 15, !1), a = F.prop(n, "onBackToEvents", 3, () => {}), o = F.prop(n, "labels", 3, h), c = F.derived(() => n.reason === "canceled"), l = F.derived(() => F.get(c) ? o().eventCanceledTitle || "Event cancelled" : o().eventPostponedTitle || "Event postponed"),
|
|
365
|
+
let i = F.prop(n, "open", 15, !1), a = F.prop(n, "onBackToEvents", 3, () => {}), o = F.prop(n, "labels", 3, h), c = F.derived(() => n.reason === "canceled"), l = F.derived(() => F.get(c) ? o().eventCanceledTitle || "Event cancelled" : o().eventPostponedTitle || "Event postponed"), u = F.derived(() => F.get(c) ? o().eventCanceledBody || "This event was cancelled — you weren't charged" : o().eventPostponedBody || "Sales are paused while this show is rescheduled — you weren't charged"), f = F.derived(() => o().backToEvents || "Back to events");
|
|
367
366
|
T(e, {
|
|
368
367
|
size: "sm",
|
|
369
368
|
role: "alertdialog",
|
|
@@ -384,7 +383,7 @@ function je(e, n) {
|
|
|
384
383
|
D(o, {
|
|
385
384
|
children: (e, n) => {
|
|
386
385
|
var r = ke(), i = F.child(r), a = F.child(i), o = (e) => {
|
|
387
|
-
|
|
386
|
+
d(e, { size: "32" });
|
|
388
387
|
}, f = (e) => {
|
|
389
388
|
s(e, { size: "32" });
|
|
390
389
|
};
|
|
@@ -395,7 +394,7 @@ function je(e, n) {
|
|
|
395
394
|
F.reset(p);
|
|
396
395
|
var h = F.sibling(p, 2), g = F.child(h, !0);
|
|
397
396
|
F.reset(h), F.reset(r), F.template_effect(() => {
|
|
398
|
-
F.set_class(i, 1, `w-16 h-16 rounded-full flex items-center justify-center mb-4 ${F.get(c) ? "bg-accent-danger/10 text-accent-danger" : "bg-accent-warning/10 text-accent-warning"}`), F.set_class(p, 1, `mb-2 ${t.heading ?? ""}`), F.set_text(m, F.get(l)), F.set_text(g, F.get(
|
|
397
|
+
F.set_class(i, 1, `w-16 h-16 rounded-full flex items-center justify-center mb-4 ${F.get(c) ? "bg-accent-danger/10 text-accent-danger" : "bg-accent-warning/10 text-accent-warning"}`), F.set_class(p, 1, `mb-2 ${t.heading ?? ""}`), F.set_text(m, F.get(l)), F.set_text(g, F.get(u));
|
|
399
398
|
}), F.append(e, r);
|
|
400
399
|
},
|
|
401
400
|
$$slots: { default: !0 }
|
|
@@ -431,18 +430,18 @@ function je(e, n) {
|
|
|
431
430
|
}
|
|
432
431
|
//#endregion
|
|
433
432
|
//#region src/components/Views/Checkout.svelte
|
|
434
|
-
var $ =
|
|
435
|
-
function Fe(
|
|
436
|
-
F.push(
|
|
437
|
-
let
|
|
438
|
-
F.prop(
|
|
439
|
-
let
|
|
440
|
-
F.derived(() => (
|
|
441
|
-
let g = F.derived(() => (
|
|
442
|
-
id:
|
|
443
|
-
eventID:
|
|
444
|
-
venueID:
|
|
445
|
-
venueId:
|
|
433
|
+
var $ = a("Checkout"), Me = F.from_html("<div class=\"p-8 text-center\"><p class=\"text-accent-danger\"> </p></div>"), Ne = F.from_html("<div class=\"p-8 text-center\"><p class=\"tone-muted\"> </p></div>"), Pe = F.from_html("<!> <!>", 1);
|
|
434
|
+
function Fe(t, n) {
|
|
435
|
+
F.push(n, !0);
|
|
436
|
+
let r = F.prop(n, "availableTickets", 23, () => []);
|
|
437
|
+
F.prop(n, "value", 3, "");
|
|
438
|
+
let a = F.prop(n, "venueId", 3, ""), o = F.prop(n, "organizationId", 3, ""), s = F.prop(n, "onNavigateBack", 3, void 0), c = F.prop(n, "initialError", 3, void 0), l = F.prop(n, "widgetId", 3, null), u = F.prop(n, "labels", 3, h), d = F.prop(n, "locale", 3, void 0), f = F.derived(() => (n.data || {}).id);
|
|
439
|
+
F.derived(() => (n.data || {}).orgSlug);
|
|
440
|
+
let g = F.derived(() => (n.data || {}).slug), _ = F.derived(() => (n.data || {}).event), T = F.derived(() => F.get(_) ? ne(F.get(_)) : n.data && (n.data.id || F.get(f)) ? {
|
|
441
|
+
id: n.data.id || F.get(f),
|
|
442
|
+
eventID: n.data.id || F.get(f),
|
|
443
|
+
venueID: n.data.venueID ?? n.data.venueId ?? null,
|
|
444
|
+
venueId: n.data.venueId ?? n.data.venueID ?? null,
|
|
446
445
|
eventTicketingType: 0,
|
|
447
446
|
ticketType: 0,
|
|
448
447
|
availableTickets: []
|
|
@@ -458,16 +457,16 @@ function Fe(e, t) {
|
|
|
458
457
|
F.set(pe, !0), F.set(me, u().noCheckoutSession || "No checkout session found. Please select tickets first", !0);
|
|
459
458
|
return;
|
|
460
459
|
}
|
|
461
|
-
v(F.get(T)?.eventID || F.get(T)?.id || F.get(f), l(),
|
|
462
|
-
let
|
|
460
|
+
v(F.get(T)?.eventID || F.get(T)?.id || F.get(f), l(), a() || F.get(T)?.venueID || F.get(T)?.venueId || null);
|
|
461
|
+
let t = F.get(T)?.eventID || F.get(T)?.id || F.get(f);
|
|
463
462
|
try {
|
|
464
|
-
let
|
|
465
|
-
F.set(D,
|
|
463
|
+
let e = N(t);
|
|
464
|
+
F.set(D, e.quantities || {}, !0), F.set(O, e.donationAmounts || {}, !0), F.set(A, e.promocode || "", !0), F.set(te, e.promoDiscountAmount || 0, !0), F.set(k, e.tickets || [], !0);
|
|
466
465
|
} catch (e) {
|
|
467
466
|
$.error("Error loading checkout state:", e), F.set(D, {}, !0), F.set(k, [], !0);
|
|
468
467
|
}
|
|
469
|
-
F.get(k).length > 0 && F.get(T) && (F.get(T).availableTickets = F.get(k),
|
|
470
|
-
let
|
|
468
|
+
F.get(k).length > 0 && F.get(T) && (F.get(T).availableTickets = F.get(k), r(F.get(k)));
|
|
469
|
+
let n = {
|
|
471
470
|
serviceFeeCents: 0,
|
|
472
471
|
serviceFeePercentage: 0,
|
|
473
472
|
serviceFeeChargeType: "both",
|
|
@@ -476,8 +475,8 @@ function Fe(e, t) {
|
|
|
476
475
|
taxPercentage: 0
|
|
477
476
|
};
|
|
478
477
|
try {
|
|
479
|
-
let e = await ae(F.get(T)?.venueID || F.get(T)?.venueId ||
|
|
480
|
-
|
|
478
|
+
let e = await ae(F.get(T)?.venueID || F.get(T)?.venueId || a());
|
|
479
|
+
n = {
|
|
481
480
|
serviceFeeCents: Number(e?.serviceFeeCents == null ? 0 : e.serviceFeeCents),
|
|
482
481
|
serviceFeePercentage: Number(e?.serviceFeePercentage ?? 0),
|
|
483
482
|
serviceFeeChargeType: String(e?.serviceFeeChargeType ?? "both"),
|
|
@@ -488,37 +487,38 @@ function Fe(e, t) {
|
|
|
488
487
|
} catch (e) {
|
|
489
488
|
$.error("Error fetching venue data:", e);
|
|
490
489
|
}
|
|
491
|
-
let i = _e(F.get(D), F.get(k),
|
|
490
|
+
let i = _e(F.get(D), F.get(k), n);
|
|
492
491
|
Object.keys(F.get(D)).length > 0 && await ge();
|
|
493
|
-
let o = 900;
|
|
492
|
+
let o = 900, s = "";
|
|
494
493
|
if (F.get(E)) {
|
|
495
|
-
let
|
|
496
|
-
if (
|
|
497
|
-
let
|
|
498
|
-
|
|
494
|
+
let t = ie(F.get(E));
|
|
495
|
+
if (t) {
|
|
496
|
+
let e = Math.max(0, Math.floor((t - Date.now()) / 1e3));
|
|
497
|
+
e > 0 && (o = e);
|
|
499
498
|
}
|
|
500
499
|
try {
|
|
501
|
-
let
|
|
502
|
-
if (!
|
|
503
|
-
let
|
|
504
|
-
o = Math.max(0, Math.floor((
|
|
500
|
+
let t = await x(F.get(E));
|
|
501
|
+
if (!t.error && t.expiresAt) {
|
|
502
|
+
let n = e(t.expiresAt).getTime();
|
|
503
|
+
o = Math.max(0, Math.floor((n - Date.now()) / 1e3)), s = t.expiresAt, M(F.get(E), n);
|
|
505
504
|
}
|
|
506
505
|
} catch {}
|
|
507
506
|
}
|
|
508
|
-
let
|
|
507
|
+
let d = P(`checkout-promo-discount-type-${t}`) || "", m = [];
|
|
509
508
|
try {
|
|
510
|
-
let
|
|
511
|
-
Array.isArray(n) && (
|
|
509
|
+
let e = P(`checkout-promo-ticket-ids-${t}`), n = e ? JSON.parse(e) : [];
|
|
510
|
+
Array.isArray(n) && (m = n);
|
|
512
511
|
} catch {
|
|
513
|
-
|
|
512
|
+
m = [];
|
|
514
513
|
}
|
|
515
|
-
let
|
|
514
|
+
let h = p(i.filter((e) => se(m, e.ticketId)).reduce((e, t) => e + (t.subtotal == null ? 0 : t.subtotal), 0)), g = oe(h, F.get(te), d);
|
|
516
515
|
if (F.set(K, {
|
|
517
|
-
event: Z(F.get(T),
|
|
516
|
+
event: Z(F.get(T), n),
|
|
518
517
|
lines: i,
|
|
519
518
|
timerStart: o,
|
|
519
|
+
...s ? { deadlineAt: s } : {},
|
|
520
520
|
promoApplied: !!F.get(A),
|
|
521
|
-
promoDiscount:
|
|
521
|
+
promoDiscount: g,
|
|
522
522
|
forceExpired: !1,
|
|
523
523
|
...q ? { serverTotals: q } : {}
|
|
524
524
|
}, !0), c()) {
|
|
@@ -680,30 +680,30 @@ function Fe(e, t) {
|
|
|
680
680
|
F.set(H, { message: u().paymentSystemNotInitialized || "Payment system is not initialized. Please refresh the page" }, !0), F.set(I, !1);
|
|
681
681
|
return;
|
|
682
682
|
}
|
|
683
|
-
let { error:
|
|
684
|
-
if (
|
|
685
|
-
let e = Q(
|
|
683
|
+
let { error: t } = await F.get(V).submit();
|
|
684
|
+
if (t) {
|
|
685
|
+
let e = Q(t, u());
|
|
686
686
|
F.set(H, {
|
|
687
687
|
message: e.message,
|
|
688
688
|
suggestion: e.suggestion
|
|
689
689
|
}, !0), F.set(I, !1);
|
|
690
690
|
return;
|
|
691
691
|
}
|
|
692
|
-
let
|
|
692
|
+
let r = await F.get(z).confirmPayment({
|
|
693
693
|
elements: F.get(V),
|
|
694
694
|
redirect: "if_required"
|
|
695
695
|
});
|
|
696
|
-
if (
|
|
697
|
-
let e = Q(
|
|
696
|
+
if (r.error) {
|
|
697
|
+
let e = Q(r.error, u());
|
|
698
698
|
F.set(H, {
|
|
699
699
|
message: e.message,
|
|
700
700
|
suggestion: e.suggestion
|
|
701
701
|
}, !0), F.set(I, !1);
|
|
702
702
|
return;
|
|
703
703
|
}
|
|
704
|
-
let
|
|
704
|
+
let i = {
|
|
705
705
|
id: F.get(E),
|
|
706
|
-
paymentIntentId:
|
|
706
|
+
paymentIntentId: r.paymentIntent.id,
|
|
707
707
|
tickets: F.get(D),
|
|
708
708
|
firstName: e.firstName,
|
|
709
709
|
lastName: e.lastName,
|
|
@@ -711,22 +711,22 @@ function Fe(e, t) {
|
|
|
711
711
|
paymentMethod: "credit-card",
|
|
712
712
|
mailingList: e.keepMeUpdated,
|
|
713
713
|
saleType: "online"
|
|
714
|
-
}, s = await b(F.get(E),
|
|
714
|
+
}, s = await b(F.get(E), i);
|
|
715
715
|
if (s?.eventCanceled || s?.eventPostponed) {
|
|
716
716
|
F.set(W, s.eventCanceled ? "canceled" : "postponed", !0), F.set(H, null);
|
|
717
717
|
return;
|
|
718
718
|
}
|
|
719
719
|
if (s?.status === "Payment succeeded") {
|
|
720
720
|
de(F.get(E), e.email);
|
|
721
|
-
let
|
|
721
|
+
let t = {
|
|
722
722
|
orderId: F.get(E),
|
|
723
723
|
eventId: F.get(T)?.id || F.get(T)?.eventID || null,
|
|
724
724
|
event: F.get(T) || null,
|
|
725
|
-
venueId:
|
|
725
|
+
venueId: a() || F.get(T)?.venueId || null,
|
|
726
726
|
organizationId: o() || F.get(T)?.organizationId || null,
|
|
727
727
|
...Y()
|
|
728
728
|
};
|
|
729
|
-
|
|
729
|
+
n.onNavigateToSuccess && n.onNavigateToSuccess(t);
|
|
730
730
|
} else s?.status === "Payment amount does not match the total price" ? F.set(H, { message: u().paymentAmountMismatch || "Payment amount mismatch. Please refresh and try again" }, !0) : F.set(H, { message: u().paymentValidationFailed || "Payment validation failed. Please try again" }, !0);
|
|
731
731
|
} catch (e) {
|
|
732
732
|
$.error("Payment execution error:", e);
|
|
@@ -742,26 +742,26 @@ function Fe(e, t) {
|
|
|
742
742
|
}
|
|
743
743
|
async function Se(e) {
|
|
744
744
|
try {
|
|
745
|
-
let
|
|
745
|
+
let t = await j(F.get(E), {
|
|
746
746
|
firstName: e.firstName,
|
|
747
747
|
lastName: e.lastName,
|
|
748
748
|
email: e.email,
|
|
749
749
|
phoneNumber: null,
|
|
750
750
|
mailingList: e.keepMeUpdated
|
|
751
751
|
});
|
|
752
|
-
if (
|
|
753
|
-
de(
|
|
754
|
-
let
|
|
755
|
-
orderId:
|
|
752
|
+
if (t?.success) {
|
|
753
|
+
de(t.orderId || F.get(E), e.email);
|
|
754
|
+
let r = {
|
|
755
|
+
orderId: t.orderId || F.get(E),
|
|
756
756
|
eventId: F.get(T)?.id || F.get(T)?.eventID || null,
|
|
757
757
|
event: F.get(T) || null,
|
|
758
|
-
venueId:
|
|
758
|
+
venueId: a() || F.get(T)?.venueId || null,
|
|
759
759
|
organizationId: o() || F.get(T)?.organizationId || null,
|
|
760
760
|
paymentType: "gift_card_only",
|
|
761
761
|
...Y()
|
|
762
762
|
};
|
|
763
|
-
|
|
764
|
-
} else F.set(H, { message:
|
|
763
|
+
n.onNavigateToSuccess && n.onNavigateToSuccess(r);
|
|
764
|
+
} else F.set(H, { message: t?.error || u().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
|
|
765
765
|
} catch (e) {
|
|
766
766
|
$.error("Gift card payment error:", e);
|
|
767
767
|
let t = Q(e, u());
|
|
@@ -775,13 +775,13 @@ function Fe(e, t) {
|
|
|
775
775
|
}
|
|
776
776
|
async function Ce(e) {
|
|
777
777
|
try {
|
|
778
|
-
let
|
|
778
|
+
let t = Object.fromEntries(Object.entries(F.get(D)).filter(([e, t]) => t > 0)), r = Object.fromEntries(Object.entries(F.get(O)).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])), i = await S(F.get(E), t, Object.keys(r).length > 0 ? r : void 0, {
|
|
779
779
|
firstName: e.firstName,
|
|
780
780
|
lastName: e.lastName,
|
|
781
781
|
email: e.email,
|
|
782
782
|
mailingList: e.keepMeUpdated
|
|
783
783
|
});
|
|
784
|
-
if (
|
|
784
|
+
if (i?.requires_stripe !== !1 && i?.payment_type !== "free" || i?.order_finalized === !1) {
|
|
785
785
|
F.set(H, { message: u().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
|
|
786
786
|
return;
|
|
787
787
|
}
|
|
@@ -790,12 +790,12 @@ function Fe(e, t) {
|
|
|
790
790
|
orderId: F.get(E),
|
|
791
791
|
eventId: F.get(T)?.id || F.get(T)?.eventID || null,
|
|
792
792
|
event: F.get(T) || null,
|
|
793
|
-
venueId:
|
|
793
|
+
venueId: a() || F.get(T)?.venueId || null,
|
|
794
794
|
organizationId: o() || F.get(T)?.organizationId || null,
|
|
795
795
|
paymentType: "free",
|
|
796
796
|
...Y()
|
|
797
797
|
};
|
|
798
|
-
|
|
798
|
+
n.onNavigateToSuccess && n.onNavigateToSuccess(s);
|
|
799
799
|
} catch (e) {
|
|
800
800
|
$.error("Free order completion error:", e);
|
|
801
801
|
let t = Q(e, u());
|
|
@@ -941,7 +941,7 @@ function Fe(e, t) {
|
|
|
941
941
|
};
|
|
942
942
|
F.if(Be, (e) => {
|
|
943
943
|
F.get(he) && e(Ve);
|
|
944
|
-
}), F.append(
|
|
944
|
+
}), F.append(t, Fe), F.pop();
|
|
945
945
|
}
|
|
946
946
|
//#endregion
|
|
947
947
|
export { Fe as default };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as r } from "./ClockIcon-
|
|
1
|
+
import { I as e, k as t, w as n } from "./timezones-Cq1mLtfM.js";
|
|
2
|
+
import { t as r } from "./ClockIcon-BrWavNGl.js";
|
|
3
3
|
import { t as i } from "./Text-CqjLjIF8.js";
|
|
4
|
-
import { t as a } from "./labels-
|
|
4
|
+
import { t as a } from "./labels-99RC9gAv.js";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
6
6
|
import * as o from "svelte/internal/client";
|
|
7
7
|
//#region src/lib/utils/event-ended.ts
|
|
8
8
|
function s(r, i = e()) {
|
|
9
9
|
if (!r) return !1;
|
|
10
|
-
let a =
|
|
11
|
-
return a ?
|
|
10
|
+
let a = t(r.endDateTime || r.startDateTime);
|
|
11
|
+
return a ? n(a, i) < 0 : !1;
|
|
12
12
|
}
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/lib/public-calendar-flow/CheckoutTimer.svelte
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e } from "./constants-
|
|
1
|
+
import { J as e } from "./constants-DBwdjnEU.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/ChevronDownIcon.svelte
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e } from "./constants-
|
|
1
|
+
import { J as e } from "./constants-DBwdjnEU.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/ClockIcon.svelte
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e } from "./constants-
|
|
1
|
+
import { J as e } from "./constants-DBwdjnEU.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/CalendarOutline.svelte
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { _ as c } from "./colors-MuuDk6KF.js";
|
|
1
|
+
import { r as e, tt as t } from "./timezones-Cq1mLtfM.js";
|
|
2
|
+
import { t as n } from "./Event-CzNN2jRR.js";
|
|
3
|
+
import { y as r } from "./constants-DBwdjnEU.js";
|
|
4
|
+
import { r as i } from "./shareCopyFeedback.svelte-D314p5oA.js";
|
|
5
|
+
import { n as a } from "./ScarcityBadge-DgrS89hq.js";
|
|
6
|
+
import { t as o } from "./__SKIP_PATHS__-DPK-YB-V.js";
|
|
7
|
+
import { t as s } from "./PasswordInput-Buk60yEf.js";
|
|
8
|
+
import { _ as c } from "./colors-B9hMXv8l.js";
|
|
10
9
|
import { i as l, n as u, t as d } from "./gate-password-cache-oOcDm9Ki.js";
|
|
11
10
|
import "svelte/internal/disclose-version";
|
|
12
11
|
import * as f from "svelte/internal/client";
|
|
@@ -14,7 +13,7 @@ import { onDestroy as p, onMount as m } from "svelte";
|
|
|
14
13
|
//#region src/components/Views/CollectionView.svelte
|
|
15
14
|
var h = f.from_html("<div class=\"flex items-center justify-center py-12 text-center loading-container svelte-q4dz4y\"><p> </p></div>"), g = f.from_html("<div class=\"flex flex-col items-center justify-center min-h-[50vh] text-center\"><div class=\"password-card rounded-lg p-8 max-w-sm w-full svelte-q4dz4y\"><h2 class=\"password-title type-heading mb-2 svelte-q4dz4y\"> </h2> <p class=\"password-description type-body mb-6 svelte-q4dz4y\"> </p> <form class=\"flex flex-col gap-3\"><!> <!></form></div></div>"), _ = f.from_html("<div class=\"flex flex-col items-center justify-center min-h-[50vh] text-center\"><p class=\"error-text svelte-q4dz4y\"> </p></div>");
|
|
16
15
|
function v(v, y) {
|
|
17
|
-
f.push(y, !0),
|
|
16
|
+
f.push(y, !0), t("CollectionView"), f.prop(y, "organizationId", 3, "");
|
|
18
17
|
let b = f.prop(y, "onNavigateToEvent", 3, void 0), x = f.prop(y, "password", 3, void 0);
|
|
19
18
|
f.prop(y, "displayMode", 3, "gallery"), f.prop(y, "showViewSwitcher", 3, !0);
|
|
20
19
|
let S = f.prop(y, "labels", 3, r), C = f.prop(y, "locale", 3, void 0), w = f.state(null), T = f.state(!0), E = f.state(null), D = f.state(!1), O = f.state(!1), k = f.state(""), A = f.state(!1), j = f.derived(() => f.get(w) ? i(f.get(w)) : null), M = 0;
|
|
@@ -70,7 +69,7 @@ function v(v, y) {
|
|
|
70
69
|
var I = f.comment(), L = f.first_child(I), R = (e) => {
|
|
71
70
|
var t = h(), n = f.child(t), r = f.child(n, !0);
|
|
72
71
|
f.reset(n), f.reset(t), f.template_effect(() => f.set_text(r, S().loadingCollection || "Loading collection...")), f.append(e, t);
|
|
73
|
-
}, z = (
|
|
72
|
+
}, z = (t) => {
|
|
74
73
|
var n = g(), r = f.child(n), i = f.child(r), a = f.child(i, !0);
|
|
75
74
|
f.reset(i);
|
|
76
75
|
var o = f.sibling(i, 2), c = f.child(o, !0);
|
|
@@ -94,7 +93,7 @@ function v(v, y) {
|
|
|
94
93
|
});
|
|
95
94
|
}
|
|
96
95
|
var d = f.sibling(u, 2);
|
|
97
|
-
|
|
96
|
+
e(d, {
|
|
98
97
|
variant: "default",
|
|
99
98
|
type: "submit",
|
|
100
99
|
children: (e, t) => {
|
|
@@ -105,7 +104,7 @@ function v(v, y) {
|
|
|
105
104
|
$$slots: { default: !0 }
|
|
106
105
|
}), f.reset(l), f.reset(r), f.reset(n), f.template_effect(() => {
|
|
107
106
|
f.set_text(a, S().collectionPrivateTitle || "This collection is private"), f.set_text(c, S().collectionPrivateDescription || "Please enter the password to view this collection");
|
|
108
|
-
}), f.event("submit", l, P), f.append(
|
|
107
|
+
}), f.event("submit", l, P), f.append(t, n);
|
|
109
108
|
}, B = (e) => {
|
|
110
109
|
var t = _(), n = f.child(t), r = f.child(n);
|
|
111
110
|
f.reset(n), f.reset(t), f.template_effect(() => f.set_text(r, `${(S().errorPrefix || "Error:") ?? ""} ${f.get(E) ?? ""}`)), f.append(e, t);
|