@getmicdrop/venue-calendar 4.3.27 → 4.3.29
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/{CartView-DSSU-0-_.js → CartView-B_DCNrDS.js} +13 -13
- package/dist/Checkout-CS5GDkWc.js +1831 -0
- package/dist/{Checkout-723DslXs.js → Checkout-Ud28q5Hy.js} +6 -6
- package/dist/{CheckoutTimer-Dxct5HmQ.js → CheckoutTimer-BP6B5azC.js} +1 -1
- package/dist/{CollectionView-CSgSS8fB.js → CollectionView-ACiii1J5.js} +3 -3
- package/dist/{Event-BupNYi0B.js → Event-BJlo9YTD.js} +4 -4
- package/dist/{EventPage-DR8JraPo.js → EventPage-D1ajrjlw.js} +188 -192
- package/dist/{RecommendationsRail-CYvrLLwk.js → RecommendationsRail-CdP6VhHT.js} +1 -1
- package/dist/{SeriesPage-BHAuypj1.js → SeriesPage-Pq0b5Jfu.js} +2 -2
- package/dist/{Success-Cda04nxq.js → Success-3_2VxjV6.js} +5 -5
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +74 -70
- package/dist/api/index.d.ts +1 -1
- package/dist/api/waitlist.d.ts +2 -0
- package/dist/{api-DxEN4thz.js → api-Cjp9Xhh9.js} +5 -1
- package/dist/{constants-DuFw4kZc.js → constants-D4j-SbUf.js} +19 -22
- package/dist/{de-BnjqU4K3.js → de-BeTte2sb.js} +0 -3
- package/dist/{es-BJSttnC2.js → es-vzC7Y0yK.js} +0 -3
- package/dist/{event-transform-y9eZBvZJ.js → event-transform-B608JYyE.js} +11 -11
- package/dist/{fr-DqfagdtN.js → fr-DqLLRK8z.js} +0 -3
- package/dist/{i18n-CbpFLxO0.js → i18n-IC1KXPJh.js} +15 -15
- package/dist/{id-B1c1JsNl.js → id-YWXdncCA.js} +0 -3
- package/dist/{it-DiFjoVSe.js → it-Cun7MBPu.js} +0 -3
- package/dist/{ja-CfeBSXBd.js → ja-FpN4x6ay.js} +0 -3
- package/dist/{ko-DIjhPkQ7.js → ko-CbeYW3Mt.js} +0 -3
- package/dist/locales/4.3.29/flow/de.js +1 -0
- package/dist/locales/4.3.29/flow/es.js +1 -0
- package/dist/locales/4.3.29/flow/fr.js +1 -0
- package/dist/locales/4.3.29/flow/id.js +1 -0
- package/dist/locales/4.3.29/flow/it.js +1 -0
- package/dist/locales/4.3.29/flow/ja.js +1 -0
- package/dist/locales/4.3.29/flow/ko.js +1 -0
- package/dist/locales/4.3.29/flow/nl.js +1 -0
- package/dist/locales/4.3.29/flow/pl.js +1 -0
- package/dist/locales/4.3.29/flow/pt-br.js +1 -0
- package/dist/locales/4.3.29/flow/tr.js +1 -0
- package/dist/locales/4.3.29/flow/zh.js +1 -0
- package/dist/{nl-DH8ATeT-.js → nl-Bp9iDZLQ.js} +0 -3
- package/dist/{pl-DHSf0Tay.js → pl-Bq365vrl.js} +0 -3
- package/dist/{pt-br-bUE81YH0.js → pt-br-DqZvFINr.js} +0 -3
- package/dist/{tr--NLWW7qi.js → tr-D-gAL87g.js} +0 -3
- package/dist/{utils-CiFOOjQd.js → utils-CDgMSeSc.js} +1 -1
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +734 -734
- package/dist/venue-calendar.iife.js +52 -52
- package/dist/venue-calendar.umd.js +30 -30
- package/dist/{zh-ZYCR67Kf.js → zh-DcBHN9JC.js} +0 -3
- package/package.json +2 -2
- package/dist/Checkout-D39bsHB6.js +0 -1845
- package/dist/locales/4.3.27/flow/de.js +0 -1
- package/dist/locales/4.3.27/flow/es.js +0 -1
- package/dist/locales/4.3.27/flow/fr.js +0 -1
- package/dist/locales/4.3.27/flow/id.js +0 -1
- package/dist/locales/4.3.27/flow/it.js +0 -1
- package/dist/locales/4.3.27/flow/ja.js +0 -1
- package/dist/locales/4.3.27/flow/ko.js +0 -1
- package/dist/locales/4.3.27/flow/nl.js +0 -1
- package/dist/locales/4.3.27/flow/pl.js +0 -1
- package/dist/locales/4.3.27/flow/pt-br.js +0 -1
- package/dist/locales/4.3.27/flow/tr.js +0 -1
- package/dist/locales/4.3.27/flow/zh.js +0 -1
- /package/dist/locales/{4.3.27 → 4.3.29}/main/de.js +0 -0
- /package/dist/locales/{4.3.27 → 4.3.29}/main/es.js +0 -0
- /package/dist/locales/{4.3.27 → 4.3.29}/main/fr.js +0 -0
- /package/dist/locales/{4.3.27 → 4.3.29}/main/id.js +0 -0
- /package/dist/locales/{4.3.27 → 4.3.29}/main/it.js +0 -0
- /package/dist/locales/{4.3.27 → 4.3.29}/main/ja.js +0 -0
- /package/dist/locales/{4.3.27 → 4.3.29}/main/ko.js +0 -0
- /package/dist/locales/{4.3.27 → 4.3.29}/main/nl.js +0 -0
- /package/dist/locales/{4.3.27 → 4.3.29}/main/pl.js +0 -0
- /package/dist/locales/{4.3.27 → 4.3.29}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.27 → 4.3.29}/main/tr.js +0 -0
- /package/dist/locales/{4.3.27 → 4.3.29}/main/zh.js +0 -0
|
@@ -15,12 +15,12 @@ import { t as q } from "./Modal-gEHiBqWZ.js";
|
|
|
15
15
|
import { t as J } from "./Spinner-D8dOJe6O.js";
|
|
16
16
|
import { t as le } from "./modalManager.svelte-Cz_6x1Qd.js";
|
|
17
17
|
import { c as ue } from "./navigation-Dh-hGmN9.js";
|
|
18
|
-
import {
|
|
19
|
-
import { t as _e } from "./event-transform-
|
|
20
|
-
import { C as Y, S as X, _ as ve, b as ye, d as be, f as xe, g as Se, i as Ce, l as we, m as Te, t as Ee, u as De, v as Oe, w as ke } from "./utils-
|
|
18
|
+
import { b as de, d as fe, f as pe, k as me, p as he, x as ge } from "./api-Cjp9Xhh9.js";
|
|
19
|
+
import { t as _e } from "./event-transform-B608JYyE.js";
|
|
20
|
+
import { C as Y, S as X, _ as ve, b as ye, d as be, f as xe, g as Se, i as Ce, l as we, m as Te, t as Ee, u as De, v as Oe, w as ke } from "./utils-CDgMSeSc.js";
|
|
21
21
|
import { a as Ae, i as je, n as Me, r as Ne, t as Pe } from "./promo-aAygcEn7.js";
|
|
22
|
-
import { n as Fe, t as Ie } from "./CheckoutTimer-
|
|
23
|
-
import { t as Le } from "./constants-
|
|
22
|
+
import { n as Fe, t as Ie } from "./CheckoutTimer-BP6B5azC.js";
|
|
23
|
+
import { t as Le } from "./constants-D4j-SbUf.js";
|
|
24
24
|
import "svelte/internal/disclose-version";
|
|
25
25
|
import * as Z from "svelte/internal/client";
|
|
26
26
|
import { SvelteURLSearchParams as Re } from "svelte/reactivity";
|
|
@@ -993,7 +993,7 @@ function At(t, n) {
|
|
|
993
993
|
var C = Z.sibling(y, 2), T = Z.child(C), E = (e) => {
|
|
994
994
|
var t = Z.comment(), r = Z.first_child(t);
|
|
995
995
|
Z.each(r, 17, _, (e) => e.ID, (e, t) => {
|
|
996
|
-
let r = Z.derived(() => Z.get(t).visibility >=
|
|
996
|
+
let r = Z.derived(() => Z.get(t).visibility >= me.HIDDEN && s() || c().includes(Z.get(t).ID)), i = Z.derived(() => Me(l()?.discountTicketIds, Z.get(t).ID)), g = Z.derived(() => parseFloat(Z.get(t).price) || 0), _ = Z.derived(() => Pe(l()?.discountType)), v = Z.derived(() => l()?.provideDiscount && Z.get(i) && Z.get(_) ? Ae(Z.get(g), parseFloat(l().amount == null ? "0" : l().amount) || 0, l().discountType) : 0), y = Z.derived(() => Z.get(v) > 0), b = Z.derived(() => Z.get(y) ? w(L(R(Z.get(g)), R(Z.get(v)))) : null), x = Z.derived(() => m(Z.get(t))), S = Z.derived(() => h(Z.get(t))), C = Z.derived(() => Z.get(t).minQuantity ?? 1), T = Z.derived(() => Z.get(t).remainingCapacity), E = Z.derived(() => Z.get(t).soldOut || Z.get(T) !== null && Z.get(T) !== void 0 && Z.get(C) > Z.get(T)), D = Z.derived(() => Z.get(t).type ?? 0);
|
|
997
997
|
Z.derived(() => Z.get(D) === 2);
|
|
998
998
|
{
|
|
999
999
|
let i = Z.derived(() => a()[Z.get(t).ID] ?? 0), s = Z.derived(() => Z.get(t).totalCapacity ?? Z.get(t).quantity ?? Z.get(t).remainingCapacity), c = Z.derived(() => Z.get(t).minQuantity ?? 1), l = Z.derived(() => Z.get(t).maxQuantity ?? null), m = Z.derived(() => o()[Z.get(t).ID] ?? "");
|
|
@@ -1109,7 +1109,7 @@ function It(e, t) {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
Z.set(u, !0);
|
|
1111
1111
|
try {
|
|
1112
|
-
let e = await
|
|
1112
|
+
let e = await ge(n(), s);
|
|
1113
1113
|
if (e.valid) {
|
|
1114
1114
|
Z.set(l, !0);
|
|
1115
1115
|
let i = 0, a = Ne(e), o = [];
|
|
@@ -1394,11 +1394,11 @@ function Ht(e, t) {
|
|
|
1394
1394
|
var Ut = t("CartView"), Wt = Z.from_html("<p class=\"tone-secondary\"> </p>"), Gt = Z.from_html("<p class=\"text-accent-danger mb-6\"> </p> <!>", 1), Kt = Z.from_html("<p> </p> <p class=\"tone-secondary mb-6\"> </p> <!>", 1), qt = Z.from_html("<div class=\"px-4 md:px-5 pt-3\"><!></div>"), Jt = Z.from_html("<p class=\"text-accent-danger body-sm\"> </p>"), Yt = Z.from_html("<p class=\"tone-secondary body-sm\"> </p>"), Xt = Z.from_html("<!> <!>", 1), Zt = Z.from_html("<div class=\"hidden md:block w-80 h-[calc(100vh-40px)]\"></div>"), Qt = Z.from_html("<div class=\"w-full flex md:gap-5 flex-wrap\"><div class=\"flex-1 pb-16 md:pb-0\"><div class=\"bg-card border-border rounded-lg md:shadow md:border py-3\"><!> <!> <!> <!> <div class=\"space-y-4 md:px-5\"><!></div></div></div> <!> <div><!></div></div>"), $t = Z.from_html("<h3 id=\"error-modal-title\" class=\"heading-lg\"><!></h3>"), en = Z.from_html("<p class=\"body-sm\"> </p> <p class=\"tone-secondary mt-2\"> </p>", 1), tn = Z.from_html("<div id=\"error-modal-description\"><!></div>"), nn = Z.from_html("<div role=\"group\"><!></div>"), rn = Z.from_html("<h3 id=\"expired-modal-title\" class=\"heading-lg\"> </h3>"), an = Z.from_html("<p id=\"expired-modal-description\" class=\"body-sm tone-secondary\"> </p>"), on = Z.from_html("<h3 id=\"availability-modal-title\" class=\"heading-lg\"> </h3>"), sn = Z.from_html("<li class=\"tone-secondary type-body\"><span class=\"type-label\"> </span> <!></li>"), cn = Z.from_html("<p class=\"tone-secondary mt-4\"> </p>"), ln = Z.from_html("<div id=\"availability-modal-description\"><p class=\"tone-secondary mb-4\"> </p> <ul class=\"space-y-2\"></ul> <!></div>"), un = Z.from_html("<div role=\"group\"><!> <!></div>"), dn = Z.from_html("<div class=\"px-5 md:px-10 py-12 bg-card\"><!></div> <!> <!> <!>", 1);
|
|
1395
1395
|
function fn(t, r) {
|
|
1396
1396
|
Z.push(r, !0);
|
|
1397
|
-
let i = Z.prop(r, "organizationId", 3, ""), a = Z.prop(r, "venueId", 3, ""), o = Z.prop(r, "initialEventData", 3, null), s = Z.prop(r, "labels", 19, () => ({})), c = Z.prop(r, "locale", 3, void 0), u = Z.derived(() => n(U, s())), f = Z.state(!1), p = Z.state(null), m = Z.state(null), h = Z.state(Z.proxy([])), g = Z.state(!1), _ = Z.state(!0), v = Z.state(null), y = Z.state(!1), b = Z.state(!1), x = Z.state(!1), S = Z.state(0), C = Z.state(void 0), w = Z.state(void 0), T = Z.state(Z.proxy({})), E = Z.state(""), D = Z.state(""), k = Z.state(0), A = Z.state(""), j = Z.state(Z.proxy([])), M = Z.state(!1), N = Z.state(0), P = Z.state(!1), F = null, I = null, L = null, R = le(), z = le(), B = Z.state("cart_failed"), H = Z.state(!1), ne = le(), W = Z.state(Z.proxy([])), se = Z.state(0), J = Z.state(0),
|
|
1397
|
+
let i = Z.prop(r, "organizationId", 3, ""), a = Z.prop(r, "venueId", 3, ""), o = Z.prop(r, "initialEventData", 3, null), s = Z.prop(r, "labels", 19, () => ({})), c = Z.prop(r, "locale", 3, void 0), u = Z.derived(() => n(U, s())), f = Z.state(!1), p = Z.state(null), m = Z.state(null), h = Z.state(Z.proxy([])), g = Z.state(!1), _ = Z.state(!0), v = Z.state(null), y = Z.state(!1), b = Z.state(!1), x = Z.state(!1), S = Z.state(0), C = Z.state(void 0), w = Z.state(void 0), T = Z.state(Z.proxy({})), E = Z.state(""), D = Z.state(""), k = Z.state(0), A = Z.state(""), j = Z.state(Z.proxy([])), M = Z.state(!1), N = Z.state(0), P = Z.state(!1), F = null, I = null, L = null, R = le(), z = le(), B = Z.state("cart_failed"), H = Z.state(!1), ne = le(), W = Z.state(Z.proxy([])), se = Z.state(0), J = Z.state(0), me = Z.derived(() => Z.get(p)?.availableTickets?.filter((e) => e.visibility === 0)?.every((e) => e.price === 0)), ge = Z.derived(() => Z.get(me) ? 0 : l(Object.entries(Z.get(T)).reduce((e, [t, n]) => {
|
|
1398
1398
|
let r = Z.get(p)?.availableTickets?.find((e) => e.id == t);
|
|
1399
1399
|
return r ? e + l(n * r.price) : e;
|
|
1400
1400
|
}, 0))), Ae = Z.state(0), Ne = Z.state(0), Pe = Z.state(null), Le = Z.state(!1), Ve = null;
|
|
1401
|
-
Z.derived(() => l(Z.get(
|
|
1401
|
+
Z.derived(() => l(Z.get(ge) + 0 + Z.get(Ae)));
|
|
1402
1402
|
let He = Z.derived(() => Object.entries(Z.get(T)).map(([e, t]) => {
|
|
1403
1403
|
let n = Z.get(p)?.availableTickets?.find((t) => t.id == e);
|
|
1404
1404
|
return {
|
|
@@ -1703,7 +1703,7 @@ function fn(t, r) {
|
|
|
1703
1703
|
async function xt(e) {
|
|
1704
1704
|
let t = e?.detail ?? e, { code: n, discount: i, discountType: a } = t;
|
|
1705
1705
|
if (Z.set(E, n || "", !0), Z.set(k, i || 0, !0), Z.set(A, a || "", !0), Z.set(j, Array.isArray(t.discountTicketIds) ? t.discountTicketIds : [], !0), Z.set(D, n ? `${n} applied.` : "", !0), t.revealHiddenTickets !== void 0 && Z.get(p) && (ke(`checkout-promo-reveal-${Z.get(p).eventID}`, t.revealHiddenTickets ? "1" : "0", { path: "/" }), t.revealTicketIds?.length && ke(`checkout-promo-reveal-ids-${Z.get(p).eventID}`, JSON.stringify(t.revealTicketIds), { path: "/" }), n && t.revealHiddenTickets)) {
|
|
1706
|
-
let e = ++Tt, t = await
|
|
1706
|
+
let e = ++Tt, t = await he(r.eventId);
|
|
1707
1707
|
t.ok && e === Tt && t.data.length > 0 && Z.get(p) && Z.set(p, {
|
|
1708
1708
|
...Z.get(p),
|
|
1709
1709
|
availableTickets: t.data
|
|
@@ -1733,7 +1733,7 @@ function fn(t, r) {
|
|
|
1733
1733
|
Z.set(p, _e(Z.get(m)), !0), Z.set(h, Z.get(p).availableTickets || [], !0);
|
|
1734
1734
|
} else {
|
|
1735
1735
|
try {
|
|
1736
|
-
let t = await
|
|
1736
|
+
let t = await fe(r.eventId);
|
|
1737
1737
|
if (!Z.get(y) || e !== Tt) return;
|
|
1738
1738
|
Z.set(m, t, !0), Z.set(p, _e(Z.get(m)), !0);
|
|
1739
1739
|
} catch (t) {
|
|
@@ -1741,7 +1741,7 @@ function fn(t, r) {
|
|
|
1741
1741
|
Z.set(v, Z.get(u).failedToLoadEvent, !0), Z.set(_, !1);
|
|
1742
1742
|
return;
|
|
1743
1743
|
}
|
|
1744
|
-
let t = await
|
|
1744
|
+
let t = await he(r.eventId);
|
|
1745
1745
|
if (!Z.get(y) || e !== Tt) return;
|
|
1746
1746
|
if (t.ok) Z.set(h, t.data, !0), Z.get(p).availableTickets = Z.get(h);
|
|
1747
1747
|
else if (Ut.error("Ticket loader returned a failure Result"), Z.set(h, Z.get(p).availableTickets || [], !0), Z.get(h).length === 0) {
|
|
@@ -1760,7 +1760,7 @@ function fn(t, r) {
|
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
1762
|
Be(async () => {
|
|
1763
|
-
Z.set(y, !0), mt(), window.addEventListener("resize", mt), window.addEventListener("scroll", gt), await Et(),
|
|
1763
|
+
Z.set(y, !0), mt(), window.addEventListener("resize", mt), window.addEventListener("scroll", gt), await Et(), de(r.eventId).then((e) => {
|
|
1764
1764
|
Z.set(M, e, !0);
|
|
1765
1765
|
}).catch(() => {
|
|
1766
1766
|
Z.set(M, !0);
|