@getmicdrop/venue-calendar 4.2.3 → 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-CxZXP_IT.js → ArrowLeftIcon-BGd-X_Qm.js} +1 -1
- package/dist/{BlockPlaceholder-HZ6Coko5.js → BlockPlaceholder-Wl39H9Z7.js} +1 -1
- package/dist/{Calendar-BKefLfIt.js → Calendar-DafPX3k_.js} +4 -4
- package/dist/{CalendarFoundryView-tDmFCrJ3.js → CalendarFoundryView-COkX5oQx.js} +21 -21
- package/dist/{CalendarIcon-CLGR_zlO.js → CalendarIcon-CeQ1_FWq.js} +1 -1
- package/dist/{CartView-CHFlfWS9.js → CartView-nvVA8vWk.js} +15 -15
- package/dist/{Checkout-CRX7dcRr.js → Checkout-BphC7gak.js} +20 -20
- package/dist/{Checkout-C-A4t1eE.js → Checkout-Ow2x8cNL.js} +12 -12
- package/dist/{CheckoutTimer-d3KUbevy.js → CheckoutTimer-DJlt5M2b.js} +2 -2
- package/dist/{ChevronDownIcon-YtBeSqjf.js → ChevronDownIcon-y7oNyepp.js} +1 -1
- package/dist/{ClockIcon-a9tJQ5El.js → ClockIcon-BGTz8dak.js} +1 -1
- package/dist/{CloseIcon-DSURK5co.js → CloseIcon-C9SHeORJ.js} +1 -1
- package/dist/{CollectionView-BiBMllyw.js → CollectionView-BAIlcuqO.js} +7 -7
- package/dist/{Event-1ZJVzqFN.js → Event-CTaXLze_.js} +17 -17
- package/dist/{EventPage-C7K2yA4v.js → EventPage-LuA-aEYZ.js} +14 -14
- package/dist/{Input-DkYIFK4J.js → Input-iXqece97.js} +1 -1
- package/dist/{MailIcon-DIrQpcGo.js → MailIcon-xtNog-7h.js} +1 -1
- package/dist/{Modal-DrA1swbF.js → Modal-CqzRblrN.js} +2 -2
- package/dist/{ModalFooter-r1NQNG9P.js → ModalFooter-DHhBLDbO.js} +1 -1
- package/dist/{PasswordInput-DB4qa7kS.js → PasswordInput-Czm5Pe_p.js} +1 -1
- package/dist/{ScarcityBadge-BJOm7_Ho.js → ScarcityBadge-CdgQmt1D.js} +3 -3
- package/dist/{SeriesPage-JVmqUSax.js → SeriesPage-DfCyV1ka.js} +4 -4
- package/dist/{Success-DAE6gPZM.js → Success-CsYxRkLE.js} +20 -20
- package/dist/{TagIcon-CrTNd8qE.js → TagIcon-DJSTnymB.js} +1 -1
- package/dist/{ViewTicketsEmbed-Zx-mvP2p.js → ViewTicketsEmbed-CKucKt-W.js} +10 -10
- package/dist/{WarningCircleIcon-C5-op3Cy.js → WarningCircleIcon-BKSQbu7p.js} +1 -1
- package/dist/{WarningTriIcon-BxIQn7c2.js → WarningTriIcon-DgwTwlxe.js} +1 -1
- package/dist/{__SKIP_PATHS__-DyyiXBgB.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/{colors-MuuDk6KF.js → colors-DeJAzg_q.js} +35 -35
- package/dist/{constants-CqrJv6nM.js → constants-OTS1wmXZ.js} +3 -0
- package/dist/{copyToClipboard-CTS9Wtmo.js → copyToClipboard-CRDdh3r8.js} +1 -1
- package/dist/{event-transform-jFmHl0Qp.js → event-transform-BaJ7M1DL.js} +2 -2
- package/dist/{eventStatusStream-D04pcbuu.js → eventStatusStream-sq6uPnMe.js} +5 -5
- package/dist/{href-C8WGnROy.js → href-DJeJpcO9.js} +1 -1
- package/dist/{i18n-CcJmTGJP.js → i18n-GzfxX0Ad.js} +3 -3
- package/dist/{labels-Q4CaHsVM.js → labels-CqodQmuY.js} +1 -1
- package/dist/{modalManager.svelte-qcVxl7C5.js → modalManager.svelte-OSPs3dSW.js} +1 -1
- package/dist/{order-totals-BImtvmoh.js → order-totals-BAKL9cOB.js} +1 -1
- package/dist/{orders-C8kt6c-E.js → orders-NZP81zYT.js} +193 -182
- package/dist/{phoneUtils-FnBDCqO0.js → phoneUtils-BJeAIGYo.js} +1 -1
- package/dist/{pixels-MEc7WYiV.js → pixels-BBruZizp.js} +1 -1
- package/dist/{shareCopyFeedback.svelte-Dko8NIbm.js → shareCopyFeedback.svelte-BRInK1hH.js} +2 -2
- package/dist/{to-event-card-props-BAHzloEA.js → to-event-card-props-CO3aPBdH.js} +1 -1
- package/dist/{utils-Ts4-U13Y.js → utils-C8GgxJMv.js} +29 -29
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +1210 -1071
- package/dist/venue-calendar.iife.js +58 -58
- package/dist/venue-calendar.umd.js +56 -56
- package/package.json +1 -1
- /package/dist/locales/{4.2.3 → 4.2.4}/flow/de.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/flow/es.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/flow/fr.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/flow/id.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/flow/it.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/flow/ja.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/flow/ko.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/flow/nl.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/flow/pl.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/flow/tr.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/flow/zh.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/main/de.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/main/es.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/main/fr.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/main/id.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/main/it.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/main/ja.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/main/ko.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/main/nl.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/main/pl.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/main/pt-br.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/main/tr.js +0 -0
- /package/dist/locales/{4.2.3 → 4.2.4}/main/zh.js +0 -0
|
@@ -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/ExclamationTriangleOutline.svelte
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { x as e } from "./Button-C4uFgl7L.js";
|
|
2
2
|
import { E as t } from "./timezones-C5l0SSHK.js";
|
|
3
|
-
import { _ as n, v as r, x as i } from "./orders-
|
|
3
|
+
import { _ as n, v as r, x as i } from "./orders-NZP81zYT.js";
|
|
4
4
|
//#region src/lib/embed-bridge.js
|
|
5
5
|
var a = e("embed-bridge"), o = "micdrop-calendar", s = Object.freeze({
|
|
6
6
|
NAVIGATION: "MICDROP_NAVIGATION",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as e, b as t, m as n, y as r } from "./timezones-C5l0SSHK.js";
|
|
2
|
-
import { J as i, a, m as o } from "./constants-
|
|
3
|
-
import { t as s } from "./copyToClipboard-
|
|
2
|
+
import { J as i, a, m as o } from "./constants-OTS1wmXZ.js";
|
|
3
|
+
import { t as s } from "./copyToClipboard-CRDdh3r8.js";
|
|
4
4
|
import { r as c, t as l } from "./event-BrptLro8.js";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
6
6
|
import * as u from "svelte/internal/client";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as e } from "./Button-C4uFgl7L.js";
|
|
2
2
|
import { E as t, _ as n, m as r, r as i, y as a } from "./timezones-C5l0SSHK.js";
|
|
3
|
-
import { a as o, i as s, r as c, u as l, y as u } from "./constants-
|
|
3
|
+
import { a as o, i as s, r as c, u as l, y as u } from "./constants-OTS1wmXZ.js";
|
|
4
4
|
import { t as d } from "./Badge-Bv_MT-Vt.js";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
6
6
|
import * as f from "svelte/internal/client";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { x as e } from "./Button-C4uFgl7L.js";
|
|
2
|
-
import { D as t, G as n,
|
|
3
|
-
import "./event-transform-
|
|
2
|
+
import { D as t, G as n, M as r, O as i, T as a, U as o, Y as s, q as c } from "./orders-NZP81zYT.js";
|
|
3
|
+
import "./event-transform-BaJ7M1DL.js";
|
|
4
4
|
//#region node_modules/js-cookie/dist/js.cookie.mjs
|
|
5
5
|
function l(e) {
|
|
6
6
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -79,18 +79,18 @@ function T() {
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
function E(e) {
|
|
82
|
-
let t = {}, r = {}, i = [],
|
|
82
|
+
let t = {}, r = {}, i = [], a = "", s = 0;
|
|
83
83
|
if (typeof window > "u") return {
|
|
84
84
|
quantities: t,
|
|
85
85
|
donationAmounts: r,
|
|
86
|
-
promocode:
|
|
87
|
-
promoDiscountAmount:
|
|
86
|
+
promocode: a,
|
|
87
|
+
promoDiscountAmount: s,
|
|
88
88
|
tickets: i
|
|
89
89
|
};
|
|
90
90
|
let l = o(y(e), null);
|
|
91
91
|
if (!l) {
|
|
92
92
|
let t = o(b(e), null);
|
|
93
|
-
t && (l = t,
|
|
93
|
+
t && (l = t, c(y(e), t), n(b(e)));
|
|
94
94
|
}
|
|
95
95
|
if (l) return {
|
|
96
96
|
quantities: l.quantities || {},
|
|
@@ -109,18 +109,18 @@ function E(e) {
|
|
|
109
109
|
} catch (e) {
|
|
110
110
|
g.warn("Failed to parse checkout tickets cookie:", e), i = [];
|
|
111
111
|
}
|
|
112
|
-
return
|
|
112
|
+
return a = m(`checkout-promocode-${e}`) || "", s = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(t).length > 0 || i.length > 0 || a) && (k({
|
|
113
113
|
eventID: e,
|
|
114
114
|
quantities: t,
|
|
115
115
|
donationAmounts: r,
|
|
116
|
-
promocode:
|
|
117
|
-
promoDiscountAmount:
|
|
116
|
+
promocode: a,
|
|
117
|
+
promoDiscountAmount: s,
|
|
118
118
|
tickets: i
|
|
119
119
|
}), D(e)), {
|
|
120
120
|
quantities: t,
|
|
121
121
|
donationAmounts: r,
|
|
122
|
-
promocode:
|
|
123
|
-
promoDiscountAmount:
|
|
122
|
+
promocode: a,
|
|
123
|
+
promoDiscountAmount: s,
|
|
124
124
|
tickets: i
|
|
125
125
|
};
|
|
126
126
|
}
|
|
@@ -128,26 +128,26 @@ function D(e) {
|
|
|
128
128
|
h(`checkout-quantities-${e}`), h(`checkout-tickets-${e}`), h(`checkout-promocode-${e}`), h(`checkout-promo-discount-${e}`);
|
|
129
129
|
}
|
|
130
130
|
function O(e) {
|
|
131
|
-
|
|
131
|
+
n(y(e)), n(b(e)), D(e), h(`checkout-promo-discount-type-${e}`), h(`checkout-promo-reveal-${e}`), h(`checkout-promo-reveal-ids-${e}`), h(`checkout-promo-ticket-ids-${e}`);
|
|
132
132
|
}
|
|
133
|
-
function k({ eventID: e, quantities: t, donationAmounts:
|
|
133
|
+
function k({ eventID: e, quantities: t, donationAmounts: n, promocode: r, promoDiscountAmount: i, tickets: a }) {
|
|
134
134
|
if (typeof window > "u") return;
|
|
135
|
-
let
|
|
135
|
+
let o = (a || []).map((e) => ({
|
|
136
136
|
ID: e.ID,
|
|
137
137
|
name: e.name,
|
|
138
138
|
price: e.price,
|
|
139
139
|
type: e.type,
|
|
140
140
|
visibility: e.visibility,
|
|
141
141
|
salesChannel: e.salesChannel
|
|
142
|
-
})),
|
|
142
|
+
})), s = {
|
|
143
143
|
quantities: t || {},
|
|
144
|
-
donationAmounts:
|
|
145
|
-
promocode:
|
|
146
|
-
promoDiscountAmount:
|
|
147
|
-
tickets:
|
|
144
|
+
donationAmounts: n || {},
|
|
145
|
+
promocode: r || "",
|
|
146
|
+
promoDiscountAmount: i || 0,
|
|
147
|
+
tickets: o,
|
|
148
148
|
updatedAt: Date.now()
|
|
149
149
|
};
|
|
150
|
-
|
|
150
|
+
c(y(e), s);
|
|
151
151
|
}
|
|
152
152
|
function A(e) {
|
|
153
153
|
if (!e) return null;
|
|
@@ -156,13 +156,13 @@ function A(e) {
|
|
|
156
156
|
let r = o(S(e), null);
|
|
157
157
|
if (r == null) return null;
|
|
158
158
|
let i = N(r);
|
|
159
|
-
return i != null && (
|
|
159
|
+
return i != null && (c(x(e), i), n(S(e))), i;
|
|
160
160
|
}
|
|
161
161
|
function j(e, t) {
|
|
162
|
-
!e || !Number.isFinite(t) ||
|
|
162
|
+
!e || !Number.isFinite(t) || c(x(e), t);
|
|
163
163
|
}
|
|
164
164
|
function M(e) {
|
|
165
|
-
e && (
|
|
165
|
+
e && (n(x(e)), n(S(e)));
|
|
166
166
|
}
|
|
167
167
|
function N(e) {
|
|
168
168
|
let t = typeof e == "number" ? e : parseInt(e, 10);
|
|
@@ -197,7 +197,7 @@ async function R() {
|
|
|
197
197
|
async function z(e) {
|
|
198
198
|
try {
|
|
199
199
|
let n = await t(`/venues/${e}`);
|
|
200
|
-
if (!n.success) throw new
|
|
200
|
+
if (!n.success) throw new s(n.error ?? `API error: ${n.statusCode}`, n.statusCode ?? 0, {
|
|
201
201
|
endpoint: `/venues/${e}`,
|
|
202
202
|
method: "GET"
|
|
203
203
|
});
|
|
@@ -208,13 +208,13 @@ async function z(e) {
|
|
|
208
208
|
}
|
|
209
209
|
async function B(e = {}) {
|
|
210
210
|
try {
|
|
211
|
-
let t = await R(), { eventID: n, quantities:
|
|
211
|
+
let t = await R(), { eventID: n, quantities: r, donationAmounts: a, ...o } = e, s = r ? Object.fromEntries(Object.entries(r).map(([e, t]) => [parseInt(e, 10), t])) : {}, c = a ? Object.fromEntries(Object.entries(a).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])) : void 0, l = {
|
|
212
212
|
purchaserIP: t,
|
|
213
213
|
eventID: n ? parseInt(String(n), 10) : void 0,
|
|
214
214
|
quantities: s,
|
|
215
215
|
...c && Object.keys(c).length > 0 ? { donationAmounts: c } : {},
|
|
216
216
|
...o
|
|
217
|
-
}, u = await
|
|
217
|
+
}, u = await i("/orders/create", l), d = u.data ?? {};
|
|
218
218
|
if (!u.success || d.error) {
|
|
219
219
|
let e = L(d.error) || (typeof d.message == "string" ? d.message : "") || u.error || "Order creation failed", t = e.toLowerCase();
|
|
220
220
|
return {
|
|
@@ -243,7 +243,7 @@ async function V(e) {
|
|
|
243
243
|
let n = await t(`/orders/${e}`);
|
|
244
244
|
if (!n.success) {
|
|
245
245
|
let t = n.error ?? `Failed to fetch order (${n.statusCode})`;
|
|
246
|
-
throw I.error("getOrder error response:", t), new
|
|
246
|
+
throw I.error("getOrder error response:", t), new s(t, n.statusCode ?? 0, {
|
|
247
247
|
endpoint: `/orders/${e}`,
|
|
248
248
|
method: "GET"
|
|
249
249
|
});
|
|
@@ -257,9 +257,9 @@ async function V(e) {
|
|
|
257
257
|
//#region src/lib/utils/utm.ts
|
|
258
258
|
var H = e("utm");
|
|
259
259
|
async function U(e) {
|
|
260
|
-
let t = new URLSearchParams(window.location.search), n =
|
|
260
|
+
let t = new URLSearchParams(window.location.search), n = a(t.get("utm_source")) || "direct";
|
|
261
261
|
try {
|
|
262
|
-
await fetch(`${
|
|
262
|
+
await fetch(`${r()}/utm/${e}/${encodeURIComponent(n)}`);
|
|
263
263
|
} catch (e) {
|
|
264
264
|
H.error("UTM tracking failed:", e);
|
|
265
265
|
}
|