@getmicdrop/venue-calendar 4.3.8 → 4.3.9
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-DvIbVly-.js → ArrowLeftIcon-B6RmtBIh.js} +1 -1
- package/dist/{Badge-vsC_L__r.js → Badge-DsuBHDo4.js} +1 -2
- package/dist/{BlockPlaceholder-BMD1gnmE.js → BlockPlaceholder-BvArmbbO.js} +2 -2
- package/dist/{Button-Cm6xkipe.js → Button-CxQO7vwF.js} +88 -63
- package/dist/{Calendar-CPD8dS_i.js → Calendar-Dei3Ahdk.js} +93 -94
- package/dist/{CalendarFoundryView-BY1uJgYA.js → CalendarFoundryView-Df10CTZS.js} +5398 -5389
- package/dist/{CalendarIcon-CCgHZAu4.js → CalendarIcon-DJh5V_U9.js} +1 -1
- package/dist/CartView-DPzvlZwV.js +2245 -0
- package/dist/Checkout-CZGmzTDh.js +983 -0
- package/dist/{Checkout-Ddcw2_8F.js → Checkout-CaamQTXi.js} +368 -368
- package/dist/{CheckoutTimer-CgGCv_jP.js → CheckoutTimer-BubF7ziC.js} +15 -15
- package/dist/{ChevronDownIcon-gELqaIeP.js → ChevronDownIcon-MTzda9yz.js} +1 -1
- package/dist/{ClockIcon-C4MxWMqH.js → ClockIcon-Dit8R1GZ.js} +1 -1
- package/dist/{CloseIcon-D3NjpzeW.js → CloseIcon-XqvbBmiA.js} +1 -1
- package/dist/{CollectionView-C55yLTPR.js → CollectionView-B_rrXaQH.js} +17 -17
- package/dist/CropImage-mVbYhD9Y.js +527 -0
- package/dist/{Event-ClxgC-gP.js → Event-WtVZMQfA.js} +585 -585
- package/dist/{EventPage-ziJYmBIZ.js → EventPage-B14U0-Hm.js} +132 -131
- package/dist/{Heading-D7TEStkb.js → Heading-PKl9dm72.js} +3 -4
- package/dist/{Image-CjM21MQP.js → Image-BWo4QBld.js} +12 -13
- package/dist/{Input-CIRGYHTC.js → Input-Bl1wqeUH.js} +2 -2
- package/dist/{MailIcon-iy7T12Hz.js → MailIcon-DQTusrr4.js} +1 -1
- package/dist/{Modal-wQSo-C1f.js → Modal-CDIhIlu-.js} +2 -2
- package/dist/ModalFooter-DwkZn9ls.js +471 -0
- package/dist/ModalHeader-BSsyLaXY.js +18 -0
- package/dist/{PasswordInput-Cj8i4djG.js → PasswordInput-CnjRiZJ7.js} +2 -2
- package/dist/{ScarcityBadge-DbUVeqpx.js → ScarcityBadge-B4e3Z_Oz.js} +24 -24
- package/dist/{SeriesPage-doki-1XH.js → SeriesPage-DszQMCy9.js} +5 -5
- package/dist/{Spinner-Dua8H4Z1.js → Spinner-BRgBJYJn.js} +2 -2
- package/dist/{Success-DZOYl6St.js → Success-BYVtvNeO.js} +106 -106
- package/dist/{TagIcon-CCyZd0sm.js → TagIcon-BAZxGlbC.js} +1 -1
- package/dist/{ViewTicketsEmbed-CF2Aq-qy.js → ViewTicketsEmbed-BHDAkYuv.js} +97 -97
- package/dist/{WarningCircleIcon-BuVhRrHd.js → WarningCircleIcon-SBK0lpqR.js} +1 -1
- package/dist/{WarningTriIcon-0hefhcdZ.js → WarningTriIcon-Bj3xpe3S.js} +1 -1
- package/dist/{__SKIP_PATHS__-Dyw31EsB.js → __SKIP_PATHS__-B3-kZeYN.js} +1 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.mjs +239 -237
- package/dist/{api-QG8CoGcM.js → api-CTiZ6rza.js} +113 -111
- package/dist/{browser-viCaCwoW.js → browser-CziWLQ0z.js} +1 -1
- package/dist/{constants-q-jR2-bz.js → constants-rFRS1lF-.js} +1 -1
- package/dist/{copyToClipboard-C7KGa7gG.js → copyToClipboard-C5D-wCS_.js} +1 -1
- package/dist/{defaultLabels-BdLGAc3u.js → defaultLabels-CpurXn7c.js} +336 -361
- package/dist/{event-CyPf2sZS.js → event-d06xVg2P.js} +1 -1
- package/dist/{event-transform-DQmD2u_S.js → event-transform-BjPTqPq1.js} +23 -23
- package/dist/{eventStatusStream-BFOvtJyO.js → eventStatusStream-BhQUTdOZ.js} +2 -2
- package/dist/{href-CbfSre4l.js → href-DMLDnIDe.js} +3 -3
- package/dist/{i18n-D54CGXK2.js → i18n--3wPB7-n.js} +2 -2
- package/dist/{i18n-CSftOFAS.js → i18n-CASpRf85.js} +135 -135
- package/dist/imageOptimizer-D8g9XVns.js +141 -0
- package/dist/{labels-0dEJldQX.js → labels-IV_I9087.js} +1 -1
- package/dist/modalManager.svelte-Cz_6x1Qd.js +37 -0
- package/dist/{order-totals-Ci_p6SG6.js → order-totals-Buq9HeZa.js} +33 -33
- package/dist/{orders-Bat2EL64.js → orders-BK47iONR.js} +2 -2
- package/dist/{phoneUtils-Cm9iv40N.js → phoneUtils-YjT5IJ25.js} +1 -1
- package/dist/{pixels-Ha6vOCaS.js → pixels-DjK-0XYz.js} +3 -3
- package/dist/{promo-DWzTN7u9.js → promo-DkM9sLly.js} +1 -1
- package/dist/{serverTotals-BBlkfqMf.js → serverTotals-CvJBYArq.js} +1 -1
- package/dist/{shareCopyFeedback.svelte-CW0Yy9Oz.js → shareCopyFeedback.svelte-oxKGmiOe.js} +65 -65
- package/dist/{showcase-state-options-CxRQ-phi.js → showcase-state-options-x_9iSBsd.js} +1 -1
- package/dist/{to-event-card-props-BIl0qQs0.js → to-event-card-props-9y7sVBi_.js} +49 -49
- package/dist/{utils-ChgG4jiQ.js → utils-D80jLqKH.js} +3 -3
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +986 -986
- package/dist/venue-calendar.iife.js +57 -57
- package/dist/venue-calendar.umd.js +52 -52
- package/package.json +2 -2
- package/dist/CartView-DVugxQ3D.js +0 -2245
- package/dist/Checkout-D7KSikhw.js +0 -980
- package/dist/CropImage-CxLcNArr.js +0 -445
- package/dist/ModalFooter-DlRXuHQz.js +0 -301
- package/dist/imageOptimizer-BwLwBMI6.js +0 -112
- package/dist/modalManager.svelte-Dnv5jhxp.js +0 -53
- package/dist/portal-DqxEuE-7.js +0 -166
- /package/dist/locales/{4.3.8 → 4.3.9}/flow/de.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/flow/es.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/flow/fr.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/flow/id.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/flow/it.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/flow/ja.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/flow/ko.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/flow/nl.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/flow/pl.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/flow/pt-br.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/flow/tr.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/flow/zh.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/main/de.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/main/es.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/main/fr.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/main/id.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/main/it.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/main/ja.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/main/ko.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/main/nl.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/main/pl.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/main/pt-br.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/main/tr.js +0 -0
- /package/dist/locales/{4.3.8 → 4.3.9}/main/zh.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as e } from "./Button-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as d } from "./
|
|
1
|
+
import { _ as e } from "./Button-CxQO7vwF.js";
|
|
2
|
+
import { a as t, i as n, r, u as i } from "./constants-rFRS1lF-.js";
|
|
3
|
+
import { t as a } from "./Badge-DsuBHDo4.js";
|
|
4
|
+
import { D as o, b as s, h as c, i as l, t as u, v as d } from "./defaultLabels-CpurXn7c.js";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
6
6
|
import * as f from "svelte/internal/client";
|
|
7
7
|
//#region node_modules/@getmicdrop/svelte-components/dist/primitives/BlurBackdropImage/BlurBackdropImage.svelte
|
|
@@ -146,7 +146,7 @@ function S() {
|
|
|
146
146
|
var C = f.from_html("<div class=\"event-card__poster w-full aspect-video bg-muted shrink-0 overflow-hidden svelte-18ndok6\"><!></div>"), w = f.from_html("<span class=\"event-card__badge svelte-18ndok6\"><!></span>"), T = f.from_html("<span> </span>"), E = f.from_html("<div class=\"event-card__pills flex flex-wrap gap-2 relative svelte-18ndok6\"></div>"), D = f.from_html("<p class=\"event-card__description type-body tone-secondary m-0 svelte-18ndok6\"> </p>"), O = f.from_html("<article class=\"event-card relative rounded-lg border bg-card border-border overflow-hidden flex flex-col svelte-18ndok6\"><!> <div class=\"event-card__content flex flex-col flex-1 min-w-0 svelte-18ndok6\"><header class=\"event-card__header\"><h3><!> <a class=\"event-card__title-link svelte-18ndok6\" rel=\"external\"> </a></h3></header> <!> <!> <!></div></article>");
|
|
147
147
|
function k(t, n) {
|
|
148
148
|
f.push(n, !0);
|
|
149
|
-
let r = f.prop(n, "layout", 3, "vertical"),
|
|
149
|
+
let r = f.prop(n, "layout", 3, "vertical"), i = f.prop(n, "density", 3, "standard"), o = f.prop(n, "imageUrl", 3, ""), s = f.prop(n, "placeholderImage", 3, ""), c = f.prop(n, "hidePoster", 3, !1), u = f.prop(n, "dateLabel", 3, ""), d = f.prop(n, "description", 3, ""), p = f.prop(n, "badge", 3, null), m = f.prop(n, "pills", 19, () => []), h = f.prop(n, "pillVariant", 3, "alternative"), _ = f.prop(n, "showDescription", 3, !1), v = f.prop(n, "hideDate", 3, !1), y = f.derived(() => b[i()]), x = `event-card-title-${S()}`, k = f.derived(() => _() && !!d() && (i() === "standard" || i() === "featured")), A = f.derived(() => !v() && i() !== "micro" && !!u());
|
|
150
150
|
function j(e, t) {
|
|
151
151
|
t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || n.onpillclick && (t.preventDefault(), t.stopPropagation(), n.onpillclick(e));
|
|
152
152
|
}
|
|
@@ -170,7 +170,7 @@ function k(t, n) {
|
|
|
170
170
|
});
|
|
171
171
|
var I = f.sibling(P, 2), L = f.child(I), R = f.child(L), z = f.child(R), B = (e) => {
|
|
172
172
|
var t = w(), n = f.child(t);
|
|
173
|
-
|
|
173
|
+
a(n, {
|
|
174
174
|
get variant() {
|
|
175
175
|
return p().variant;
|
|
176
176
|
},
|
|
@@ -193,7 +193,7 @@ function k(t, n) {
|
|
|
193
193
|
var U = f.sibling(L, 2), W = (t) => {
|
|
194
194
|
var n = T(), r = f.child(n, !0);
|
|
195
195
|
f.reset(n), f.template_effect(() => {
|
|
196
|
-
f.set_class(n, 1, `event-card__date tone-secondary ${e.emphasis ?? ""}`, "svelte-18ndok6"), f.set_text(r,
|
|
196
|
+
f.set_class(n, 1, `event-card__date tone-secondary ${e.emphasis ?? ""}`, "svelte-18ndok6"), f.set_text(r, u());
|
|
197
197
|
}), f.append(t, n);
|
|
198
198
|
};
|
|
199
199
|
f.if(U, (e) => {
|
|
@@ -203,8 +203,8 @@ function k(t, n) {
|
|
|
203
203
|
var t = E();
|
|
204
204
|
f.each(t, 21, m, f.index, (e, t, n) => {
|
|
205
205
|
{
|
|
206
|
-
let r = f.derived(() => h() === "primary" ? "default" : "alternative"),
|
|
207
|
-
|
|
206
|
+
let r = f.derived(() => h() === "primary" ? "default" : "alternative"), i = f.derived(() => f.get(t).ariaLabel ?? f.get(t).timeLabel);
|
|
207
|
+
l(e, {
|
|
208
208
|
get href() {
|
|
209
209
|
return f.get(t).href;
|
|
210
210
|
},
|
|
@@ -216,7 +216,7 @@ function k(t, n) {
|
|
|
216
216
|
},
|
|
217
217
|
onclick: (e) => j(n, e),
|
|
218
218
|
get "aria-label"() {
|
|
219
|
-
return f.get(
|
|
219
|
+
return f.get(i);
|
|
220
220
|
},
|
|
221
221
|
children: (e, n) => {
|
|
222
222
|
f.next();
|
|
@@ -233,12 +233,12 @@ function k(t, n) {
|
|
|
233
233
|
});
|
|
234
234
|
var q = f.sibling(G, 2), J = (e) => {
|
|
235
235
|
var t = D(), n = f.child(t, !0);
|
|
236
|
-
f.reset(t), f.template_effect(() => f.set_text(n,
|
|
236
|
+
f.reset(t), f.template_effect(() => f.set_text(n, d())), f.append(e, t);
|
|
237
237
|
};
|
|
238
238
|
f.if(q, (e) => {
|
|
239
239
|
f.get(k) && e(J);
|
|
240
240
|
}), f.reset(I), f.reset(N), f.template_effect(() => {
|
|
241
|
-
f.set_attribute(N, "data-layout", r()), f.set_attribute(N, "data-density",
|
|
241
|
+
f.set_attribute(N, "data-layout", r()), f.set_attribute(N, "data-density", i()), f.set_attribute(N, "data-hide-poster", c()), f.set_attribute(N, "aria-labelledby", x), f.set_class(R, 1, `event-card__title ${e.strong ?? ""} tone-primary m-0`, "svelte-18ndok6"), f.set_attribute(R, "id", x), f.set_attribute(V, "href", n.href), f.set_attribute(V, "aria-label", n.ariaLabel ?? n.title), f.set_text(H, n.title);
|
|
242
242
|
}), f.delegated("click", V, M), f.append(t, N), f.pop();
|
|
243
243
|
}
|
|
244
244
|
f.delegate(["click"]);
|
|
@@ -301,54 +301,54 @@ function I(e) {
|
|
|
301
301
|
}
|
|
302
302
|
function L(e) {
|
|
303
303
|
if (I(e.status) !== "onsale" || e.ticketsRemaining == null || e.ticketsTotal == null || e.ticketsTotal === 0 || e.ticketsRemaining <= 0) return !1;
|
|
304
|
-
let t =
|
|
304
|
+
let t = r(e.ticketsRemaining, e.ticketsTotal);
|
|
305
305
|
return t === "low" || t === "urgent";
|
|
306
306
|
}
|
|
307
|
-
function R(e,
|
|
307
|
+
function R(e, t) {
|
|
308
308
|
if (!e) return null;
|
|
309
|
-
let
|
|
310
|
-
for (let
|
|
309
|
+
let n = I(e.status ?? "");
|
|
310
|
+
for (let r of F) switch (r) {
|
|
311
311
|
case "cancelled":
|
|
312
|
-
if (
|
|
313
|
-
text:
|
|
312
|
+
if (n === "cancelled" || n === "canceled") return {
|
|
313
|
+
text: t?.statusCancelled || "Cancelled",
|
|
314
314
|
type: "cancelled"
|
|
315
315
|
};
|
|
316
316
|
break;
|
|
317
317
|
case "postponed":
|
|
318
|
-
if (
|
|
319
|
-
text:
|
|
318
|
+
if (n === "postponed") return {
|
|
319
|
+
text: t?.statusPostponed || "Postponed",
|
|
320
320
|
type: "postponed"
|
|
321
321
|
};
|
|
322
322
|
break;
|
|
323
323
|
case "past":
|
|
324
324
|
if (e.startDateTime) {
|
|
325
|
-
let
|
|
326
|
-
if (
|
|
327
|
-
text:
|
|
325
|
+
let n = s(e.endDateTime || e.startDateTime);
|
|
326
|
+
if (n && c(n, o()) < 0) return {
|
|
327
|
+
text: t?.statusPastEvent || "Past event",
|
|
328
328
|
type: "past"
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
331
|
break;
|
|
332
332
|
case "sold_out":
|
|
333
|
-
if (
|
|
334
|
-
text:
|
|
333
|
+
if (n === "soldout" || e.ticketsRemaining != null && e.ticketsRemaining <= 0 && e.ticketsTotal != null && e.ticketsTotal > 0) return {
|
|
334
|
+
text: t?.statusSoldOut || "Sold out",
|
|
335
335
|
type: "sold_out"
|
|
336
336
|
};
|
|
337
337
|
break;
|
|
338
338
|
case "sales_ended":
|
|
339
|
-
if (
|
|
340
|
-
text:
|
|
339
|
+
if (n === "salesended") return {
|
|
340
|
+
text: t?.statusSalesEnded || "Sales ended",
|
|
341
341
|
type: "sales_ended"
|
|
342
342
|
};
|
|
343
343
|
break;
|
|
344
344
|
case "coming_soon":
|
|
345
|
-
if (
|
|
346
|
-
text:
|
|
345
|
+
if (n === "comingsoon") return {
|
|
346
|
+
text: t?.statusComingSoon || "Coming soon",
|
|
347
347
|
type: "coming_soon"
|
|
348
348
|
};
|
|
349
349
|
break;
|
|
350
350
|
case "scarcity": if (L(e)) return {
|
|
351
|
-
text:
|
|
351
|
+
text: t?.statusSellingFast || "Selling fast",
|
|
352
352
|
type: "scarcity"
|
|
353
353
|
};
|
|
354
354
|
}
|
|
@@ -400,11 +400,11 @@ function V(e) {
|
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
function H(e) {
|
|
403
|
-
let
|
|
403
|
+
let n = d();
|
|
404
404
|
return e.filter((e) => {
|
|
405
405
|
if (I(e.status ?? "") === "postponed") return !0;
|
|
406
|
-
let
|
|
407
|
-
return e.date >=
|
|
406
|
+
let r = t(n, e.timeZone);
|
|
407
|
+
return e.date >= r;
|
|
408
408
|
}).sort((e, t) => e.date.localeCompare(t.date));
|
|
409
409
|
}
|
|
410
410
|
//#endregion
|
|
@@ -420,29 +420,29 @@ function W(e, t) {
|
|
|
420
420
|
variant: "warning"
|
|
421
421
|
} : null;
|
|
422
422
|
}
|
|
423
|
-
function G(e, t =
|
|
424
|
-
let
|
|
425
|
-
text:
|
|
426
|
-
variant: V(
|
|
423
|
+
function G(e, t = u, r, a = null) {
|
|
424
|
+
let o = e.event, s = e.isSeries ? z(e.instances, t) : R(o, t), c = s && s.type !== "past" ? {
|
|
425
|
+
text: s.text,
|
|
426
|
+
variant: V(s.type)
|
|
427
427
|
} : null;
|
|
428
|
-
!
|
|
429
|
-
let l = N(
|
|
430
|
-
let
|
|
428
|
+
!c && !e.isSeries && (c = W(o, t));
|
|
429
|
+
let l = N(o), d = o.startDateTime && a?.date !== !1 ? n(o.startDateTime, o.timeZone, r) : "", f = e.isSeries ? e.instances : o.startDateTime ? [o] : [], p = f.map((e) => {
|
|
430
|
+
let n = i(e.startDateTime, e.timeZone, r), a = R(e, t)?.type === "sold_out";
|
|
431
431
|
return {
|
|
432
|
-
timeLabel:
|
|
432
|
+
timeLabel: n,
|
|
433
433
|
href: N(e),
|
|
434
|
-
ariaLabel: `${
|
|
434
|
+
ariaLabel: `${o.name} at ${n}${a ? ", sold out" : ""}`
|
|
435
435
|
};
|
|
436
|
-
}), m = [
|
|
437
|
-
return
|
|
438
|
-
title:
|
|
436
|
+
}), m = [o.name];
|
|
437
|
+
return o.startDateTime && m.push(`on ${n(o.startDateTime, o.timeZone, r)}`), e.isSeries ? m.push(`${e.instances.length} showtimes available`) : o.startDateTime && m.push(`at ${i(o.startDateTime, o.timeZone, r)}`), s && m.push(s.text), {
|
|
438
|
+
title: o.name,
|
|
439
439
|
href: l,
|
|
440
|
-
imageUrl:
|
|
440
|
+
imageUrl: o.imageUrl ?? "",
|
|
441
441
|
dateLabel: d,
|
|
442
|
-
description:
|
|
442
|
+
description: a?.description === !1 ? "" : o.description ?? "",
|
|
443
443
|
ariaLabel: m.join(", "),
|
|
444
|
-
hidePoster:
|
|
445
|
-
badge:
|
|
444
|
+
hidePoster: a?.poster === !1,
|
|
445
|
+
badge: c,
|
|
446
446
|
pills: p,
|
|
447
447
|
pillEvents: f
|
|
448
448
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { x as e } from "./Button-
|
|
2
|
-
import { $ as t, I as n, M as r, Y as i, Z as a, j as o, k as s, q as c } from "./orders-
|
|
3
|
-
import "./event-transform-
|
|
1
|
+
import { x as e } from "./Button-CxQO7vwF.js";
|
|
2
|
+
import { $ as t, I as n, M as r, Y as i, Z as a, j as o, k as s, q as c } from "./orders-BK47iONR.js";
|
|
3
|
+
import "./event-transform-BjPTqPq1.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++) {
|