@getmicdrop/venue-calendar 4.0.46 → 4.0.47
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/{CarouselView.legacy-D-zALoga.js → CarouselView.legacy-BhQhihsJ.js} +3 -3
- package/dist/{CarouselView.legacy-D-zALoga.js.map → CarouselView.legacy-BhQhihsJ.js.map} +1 -1
- package/dist/{CartView-DkxrA2Fd.js → CartView-D7dkTShT.js} +38 -40
- package/dist/{CartView-DkxrA2Fd.js.map → CartView-D7dkTShT.js.map} +1 -1
- package/dist/{Checkout-DhFLKly_.js → Checkout-C6RRUmtO.js} +4 -4
- package/dist/{Checkout-DhFLKly_.js.map → Checkout-C6RRUmtO.js.map} +1 -1
- package/dist/{Checkout-DBaJEzYJ.js → Checkout-DMuiqS05.js} +5 -5
- package/dist/{Checkout-DBaJEzYJ.js.map → Checkout-DMuiqS05.js.map} +1 -1
- package/dist/{Checkout.legacy-BC2N73uU.js → Checkout.legacy-6dBBM4RC.js} +4 -4
- package/dist/{Checkout.legacy-BC2N73uU.js.map → Checkout.legacy-6dBBM4RC.js.map} +1 -1
- package/dist/{CheckoutTimer-B03Dz0RS.js → CheckoutTimer-BspCv_uj.js} +2 -2
- package/dist/{CheckoutTimer-B03Dz0RS.js.map → CheckoutTimer-BspCv_uj.js.map} +1 -1
- package/dist/{CollectionView-Csi0WCC7.js → CollectionView-7v9vlibR.js} +5 -5
- package/dist/{CollectionView-Csi0WCC7.js.map → CollectionView-7v9vlibR.js.map} +1 -1
- package/dist/{CollectionView.legacy-B2aQ7pUX.js → CollectionView.legacy-BnpWHstC.js} +3 -3
- package/dist/{CollectionView.legacy-B2aQ7pUX.js.map → CollectionView.legacy-BnpWHstC.js.map} +1 -1
- package/dist/{Event-0Eq2doPK.js → Event-bhTqHV_2.js} +3 -3
- package/dist/{Event-0Eq2doPK.js.map → Event-bhTqHV_2.js.map} +1 -1
- package/dist/{EventDetailsView-B3NjmCKj.js → EventDetailsView-0oKsmxfN.js} +41 -44
- package/dist/EventDetailsView-0oKsmxfN.js.map +1 -0
- package/dist/{FeaturedView.legacy-eHHU2dOf.js → FeaturedView.legacy-CHfs0YPT.js} +2 -2
- package/dist/{FeaturedView.legacy-eHHU2dOf.js.map → FeaturedView.legacy-CHfs0YPT.js.map} +1 -1
- package/dist/{GalleryCard-DGZXM8kt.js → GalleryCard-CqgjvH5a.js} +2 -2
- package/dist/{GalleryCard-DGZXM8kt.js.map → GalleryCard-CqgjvH5a.js.map} +1 -1
- package/dist/{GalleryView.legacy-G_52n5RT.js → GalleryView.legacy-BtxbUVJ9.js} +3 -3
- package/dist/{GalleryView.legacy-G_52n5RT.js.map → GalleryView.legacy-BtxbUVJ9.js.map} +1 -1
- package/dist/{GroupedListView.legacy-BP9vJEZD.js → GroupedListView.legacy-CDPTkF0L.js} +2 -2
- package/dist/{GroupedListView.legacy-BP9vJEZD.js.map → GroupedListView.legacy-CDPTkF0L.js.map} +1 -1
- package/dist/{SeriesPage-BrUvWjWu.js → SeriesPage-DVh54STJ.js} +5 -5
- package/dist/{SeriesPage-BrUvWjWu.js.map → SeriesPage-DVh54STJ.js.map} +1 -1
- package/dist/{SeriesPage.legacy-Co104sE7.js → SeriesPage.legacy-BCr3x7-A.js} +2 -2
- package/dist/{SeriesPage.legacy-Co104sE7.js.map → SeriesPage.legacy-BCr3x7-A.js.map} +1 -1
- package/dist/{Success-DlB6kX9c.js → Success-CLLPGGuR.js} +6 -6
- package/dist/{Success-DlB6kX9c.js.map → Success-CLLPGGuR.js.map} +1 -1
- package/dist/{Success.legacy-zRXio4EE.js → Success.legacy-D_lBTHkg.js} +2 -2
- package/dist/{Success.legacy-zRXio4EE.js.map → Success.legacy-D_lBTHkg.js.map} +1 -1
- package/dist/{VenueCalendar-BkRqSb_t.js → VenueCalendar-DFfEZMyW.js} +14 -14
- package/dist/{VenueCalendar-BkRqSb_t.js.map → VenueCalendar-DFfEZMyW.js.map} +1 -1
- package/dist/{ViewTicketsEmbed-BvGGkM9j.js → ViewTicketsEmbed-B0uv-JHs.js} +2 -2
- package/dist/{ViewTicketsEmbed-BvGGkM9j.js.map → ViewTicketsEmbed-B0uv-JHs.js.map} +1 -1
- package/dist/{data-toggle-store.svelte-CitSx2Ty.js → data-toggle-store.svelte-WHLIXMim.js} +2 -2
- package/dist/{data-toggle-store.svelte-CitSx2Ty.js.map → data-toggle-store.svelte-WHLIXMim.js.map} +1 -1
- package/dist/{labels-8o7WS2MO.js → labels-D85LcGba.js} +2 -2
- package/dist/{labels-8o7WS2MO.js.map → labels-D85LcGba.js.map} +1 -1
- package/dist/{transform-CVW2Zmpy.js → transform-II0DR2_f.js} +2 -2
- package/dist/{transform-CVW2Zmpy.js.map → transform-II0DR2_f.js.map} +1 -1
- package/dist/venue-calendar.es.js +1 -1
- package/dist/venue-calendar.iife.js +16 -16
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +16 -16
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/EventDetailsView-B3NjmCKj.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
2
|
import * as e from "svelte/internal/client";
|
|
3
3
|
import { onMount as _ } from "svelte";
|
|
4
|
-
import { G as k } from "./GalleryCard-
|
|
5
|
-
import { aQ as C } from "./VenueCalendar-
|
|
4
|
+
import { G as k } from "./GalleryCard-CqgjvH5a.js";
|
|
5
|
+
import { aQ as C } from "./VenueCalendar-DFfEZMyW.js";
|
|
6
6
|
var S = e.from_html('<button class="carousel-arrow absolute top-1/2 -translate-y-1/2 z-10 w-10 h-10 rounded-full flex items-center justify-center bg-card/90 border border-border shadow-lg cursor-pointer transition-opacity duration-200 hover:bg-card hover: focus-visible:outline-2 focus-visible:outline-brand-primary:outline-brand-primary focus-visible:outline-offset-2 left-2 svelte-1lcnwer" aria-label="Scroll left"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-5 h-5 text-text-secondary"><polyline points="15 18 9 12 15 6"></polyline></svg></button>'), j = e.from_html('<div class="carousel-item svelte-1lcnwer" role="listitem"><!></div>'), B = e.from_html('<button class="carousel-arrow absolute top-1/2 -translate-y-1/2 z-10 w-10 h-10 rounded-full flex items-center justify-center bg-card/90 border border-border shadow-lg cursor-pointer transition-opacity duration-200 hover:bg-card hover: focus-visible:outline-2 focus-visible:outline-brand-primary:outline-brand-primary focus-visible:outline-offset-2 right-2 svelte-1lcnwer" aria-label="Scroll right"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-5 h-5 text-text-secondary"><polyline points="9 18 15 12 9 6"></polyline></svg></button>'), W = e.from_html('<section class="w-full" aria-label="Events carousel"><h2 class="sr-only svelte-1lcnwer">Upcoming events</h2> <div class="relative"><!> <div class="carousel-scroll flex gap-4 overflow-x-auto p-2 sm:p-3 lg:p-4 svelte-1lcnwer" role="list"></div> <!></div></section>');
|
|
7
7
|
function L(b, i) {
|
|
8
8
|
e.push(i, !0);
|
|
@@ -62,4 +62,4 @@ e.delegate(["click"]);
|
|
|
62
62
|
export {
|
|
63
63
|
L as default
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=CarouselView.legacy-
|
|
65
|
+
//# sourceMappingURL=CarouselView.legacy-BhQhihsJ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CarouselView.legacy-
|
|
1
|
+
{"version":3,"file":"CarouselView.legacy-BhQhihsJ.js","sources":["../src/components/Calendar/CarouselView.legacy.svelte"],"sourcesContent":["<!--\r\n @tokens-px-escape: This is a .legacy.svelte file — frozen pre-redesign\r\n code preserved for rollback comparison. The inline px values here are\r\n not actively maintained code paths. tokens-non-color record documents\r\n legacy/archived files as exempt.\r\n-->\r\n<script>\r\n import { onMount } from \"svelte\";\r\n import GalleryCard from \"./GalleryCard.svelte\";\r\n import { filterTodayAndFuture } from \"$lib/utils/browse-status.js\";\r\n\r\n let { events = [], oneventClick } = $props();\r\n\r\n let scrollContainer;\r\n let canScrollLeft = $state(false);\r\n let canScrollRight = $state(false);\r\n let showArrows = $state(false);\r\n\r\n // Filter to today and future, sorted chronologically\r\n let futureEvents = $derived(filterTodayAndFuture(events));\r\n\r\n function updateScrollState() {\r\n if (!scrollContainer) return;\r\n const { scrollLeft, scrollWidth, clientWidth } = scrollContainer;\r\n canScrollLeft = scrollLeft > 1;\r\n canScrollRight = scrollLeft + clientWidth < scrollWidth - 1;\r\n showArrows = scrollWidth > clientWidth + 1;\r\n }\r\n\r\n function scrollByCard(direction) {\r\n if (!scrollContainer) return;\r\n // Get the width of the first card item\r\n const firstCard = scrollContainer.querySelector('.carousel-item');\r\n if (!firstCard) return;\r\n const cardWidth = firstCard.offsetWidth + 16; // card width + gap\r\n scrollContainer.scrollBy({ left: direction * cardWidth, behavior: 'smooth' });\r\n }\r\n\r\n onMount(() => {\r\n updateScrollState();\r\n // Use ResizeObserver to update on container resize\r\n const observer = new ResizeObserver(() => updateScrollState());\r\n if (scrollContainer) {\r\n observer.observe(scrollContainer);\r\n }\r\n return () => observer.disconnect();\r\n });\r\n</script>\r\n\r\n<section class=\"w-full\" aria-label=\"Events carousel\">\r\n <h2 class=\"sr-only\">Upcoming events</h2>\r\n\r\n <div class=\"relative\">\r\n <!-- Left arrow -->\r\n {#if showArrows && canScrollLeft}\r\n <button\r\n class=\"carousel-arrow absolute top-1/2 -translate-y-1/2 z-10 w-10 h-10 rounded-full flex items-center justify-center bg-card/90 border border-border shadow-lg cursor-pointer transition-opacity duration-200 hover:bg-card hover: focus-visible:outline-2 focus-visible:outline-brand-primary:outline-brand-primary focus-visible:outline-offset-2 left-2\"\r\n onclick={() => scrollByCard(-1)}\r\n aria-label=\"Scroll left\"\r\n >\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"w-5 h-5 text-text-secondary\"><polyline points=\"15 18 9 12 15 6\"></polyline></svg>\r\n </button>\r\n {/if}\r\n\r\n <!-- Scroll container -->\r\n <div\r\n class=\"carousel-scroll flex gap-4 overflow-x-auto p-2 sm:p-3 lg:p-4\"\r\n bind:this={scrollContainer}\r\n onscroll={updateScrollState}\r\n role=\"list\"\r\n >\r\n {#each futureEvents as event}\r\n <div class=\"carousel-item\" role=\"listitem\">\r\n <GalleryCard {event} {oneventClick} />\r\n </div>\r\n {/each}\r\n </div>\r\n\r\n <!-- Right arrow -->\r\n {#if showArrows && canScrollRight}\r\n <button\r\n class=\"carousel-arrow absolute top-1/2 -translate-y-1/2 z-10 w-10 h-10 rounded-full flex items-center justify-center bg-card/90 border border-border shadow-lg cursor-pointer transition-opacity duration-200 hover:bg-card hover: focus-visible:outline-2 focus-visible:outline-brand-primary:outline-brand-primary focus-visible:outline-offset-2 right-2\"\r\n onclick={() => scrollByCard(1)}\r\n aria-label=\"Scroll right\"\r\n >\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"w-5 h-5 text-text-secondary\"><polyline points=\"9 18 15 12 9 6\"></polyline></svg>\r\n </button>\r\n {/if}\r\n </div>\r\n</section>\r\n\r\n<style>\r\n .carousel-scroll {\r\n scroll-snap-type: x mandatory;\r\n -webkit-overflow-scrolling: touch;\r\n scrollbar-width: none;\r\n }\r\n\r\n .carousel-scroll::-webkit-scrollbar {\r\n display: none;\r\n }\r\n\r\n .carousel-item {\r\n scroll-snap-align: start;\r\n flex: 0 0 85%;\r\n }\r\n\r\n /* Tablet: 2 visible cards with peek */\r\n @media (width >= 640px) {\r\n .carousel-item {\r\n flex: 0 0 calc(50% - 8px);\r\n }\r\n }\r\n\r\n /* Desktop: 3 visible cards with peek */\r\n @media (width >= 1024px) {\r\n .carousel-item {\r\n flex: 0 0 calc(33.333% - 11px);\r\n }\r\n }\r\n\r\n /* Hide arrows on mobile -- touch scrolling is natural */\r\n @media (width <= 639px) {\r\n .carousel-arrow {\r\n display: none;\r\n }\r\n }\r\n\r\n /* Reduced motion */\r\n @media (prefers-reduced-motion: reduce) {\r\n .carousel-scroll {\r\n scroll-behavior: auto;\r\n }\r\n }\r\n\r\n /* Screen reader only text */\r\n .sr-only {\r\n position: absolute;\r\n width: 1px;\r\n height: 1px;\r\n padding: 0;\r\n margin: -1px;\r\n overflow: hidden;\r\n clip: rect(0, 0, 0, 0);\r\n white-space: nowrap;\r\n border-width: 0;\r\n }\r\n</style>\r\n"],"names":["events","$","$$props","scrollContainer","canScrollLeft","canScrollRight","showArrows","futureEvents","filterTodayAndFuture","updateScrollState","scrollLeft","scrollWidth","clientWidth","scrollByCard","direction","firstCard","cardWidth","onMount","observer","section","root","div","button","root_1","$$render","consequent","div_1","node","$$anchor","event","div_2","root_2","GalleryCard","node_1","$$value","button_1","root_3","consequent_1"],"mappings":";;;;;;iBAMA;;MAKQA,IAAMC,EAAA,KAAAC,GAAA,UAAA,IAAA,MAAA,EAAA,GAERC,GACAC,IAAgBH,EAAA,MAAO,EAAK,GAC5BI,IAAiBJ,EAAA,MAAO,EAAK,GAC7BK,IAAaL,EAAA,MAAO,EAAK,GAGzBM,IAAYN,EAAA,QAAA,MAAYO,EAAqBR,EAAM,CAAA,CAAA;AAE9C,WAAAS,IAAoB;SACtBN,EAAe;AACZ,UAAA,EAAA,YAAAO,GAAY,aAAAC,GAAa,aAAAC,EAAW,IAAKT;UACjDC,GAAgBM,IAAa,CAAC,GAC9BT,EAAA,IAAAI,GAAiBK,IAAaE,IAAcD,IAAc,CAAC,GAC3DV,EAAA,IAAAK,GAAaK,IAAcC,IAAc,CAAC;AAAA,EAC5C;WAESC,EAAaC,GAAW;SAC1BX,EAAe;AAEd,UAAAY,IAAYZ,EAAgB,cAAc,gBAAgB;SAC3DY,EAAS;AACR,UAAAC,IAAYD,EAAU,cAAc;AAC1C,IAAAZ,EAAgB,SAAQ,EAAG,MAAMW,IAAYE,GAAW,UAAU,UAAQ;AAAA,EAC5E;AAEA,EAAAC,QAAc;AACZ,IAAAR,EAAiB;UAEXS,IAAQ,IAAO,eAAc,MAAOT,EAAiB,CAAA;AACvD,WAAAN,KACFe,EAAS,QAAQf,CAAe,GAErB,MAAAe,EAAS,WAAU;AAAA,EAClC,CAAC;MAGFC,IAAOC,EAAA,GAGLC,sBAHFF,CAAO,GAAA,CAAA,eAGLE,CAAG;;;UAGCC,IAAMC,EAAA;2BAAND,GAAM,MAEUT,EAAY,EAAG,CAAA,eAF/BS,CAAM;AAAA;;AADJ,MAAArB,EAAA,IAAAK,CAAU,WAAIF,CAAa,KAAAoB,EAAAC,CAAA;AAAA;;MAW/BC,IAAGzB,EAAA,QAAA0B,GAAA,CAAA;SAAHD,GAAG,IAAA,MAAAzB,EAAA,IAMKM,CAAY,GAAAN,EAAA,OAAA,CAAA2B,GAAIC,MAAK;QACzBC,IAAGC,EAAA,eAAHD,CAAG;AACD,IAAAE,EAAWC,GAAA;AAAA;qBAAEJ,CAAK;AAAA;;;;gBADpBC,CAAG,eAAHA,CAAG;AAAA,cAPPJ,CAAG,eAAHA,GAAG,CAAAQ,MAES/B,IAAe+B,GAAA,MAAf/B,CAAe;oBAF3BuB,GAAG,CAAA;;;UAeDS,IAAMC,EAAA;2BAAND,GAAM,MAEUtB,EAAa,CAAC,CAAA,eAF9BsB,CAAM;AAAA;;AADJ,MAAAlC,EAAA,IAAAK,CAAU,WAAID,CAAc,KAAAmB,EAAAa,CAAA;AAAA;;UA3BlChB,CAAG,WAHLF,CAAO,GAgBHlB,EAAA,MAAA,UAAAyB,GAGWjB,CAAiB,eAnBhCU,CAAO;AAFA;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
|
-
import { f as Be, a2 as
|
|
2
|
+
import { f as Be, a2 as mt, B as xe, a3 as ht, a4 as _t, I as vt, a5 as bt, a6 as lt, k as gt, a7 as Oe, a8 as yt, a9 as Qe, a1 as De, x as xt, A as kt, aa as Tt, ab as wt, Q as It, N as Dt, ac as St, ad as Ct, y as it, ae as Et, M as st, a0 as At, t as ot, b as Pt, af as nt, u as Ot, ag as Mt, ah as Ft, v as Lt, ai as dt, aj as Qt, ak as ct, al as Bt } from "./VenueCalendar-DFfEZMyW.js";
|
|
3
3
|
import * as e from "svelte/internal/client";
|
|
4
4
|
import "svelte/internal/flags/legacy";
|
|
5
5
|
import "svelte/transition";
|
|
6
6
|
import "svelte/easing";
|
|
7
|
-
import { onMount as
|
|
8
|
-
import { g as
|
|
7
|
+
import { onMount as ft, onDestroy as Nt } from "svelte";
|
|
8
|
+
import { g as ut } from "./__SKIP_NAVIGATION__-CJ96TTPE.js";
|
|
9
9
|
import { O as qt } from "./OrderSummarySkeleton-dDKUH741.js";
|
|
10
|
-
import { C as Rt } from "./CheckoutTimer-
|
|
10
|
+
import { C as Rt } from "./CheckoutTimer-BspCv_uj.js";
|
|
11
11
|
const zt = {
|
|
12
12
|
/** Percent remaining at or below which a ticket is "urgent" (exact count). */
|
|
13
13
|
URGENT_PCT: 10,
|
|
@@ -116,7 +116,7 @@ function sa(J, t) {
|
|
|
116
116
|
} : f === "low" ? { text: "Few tickets left", type: "scarcity", showFlame: !0 } : null;
|
|
117
117
|
}), T = e.derived(() => e.get(m) != null && e.get(m).type === "scarcity");
|
|
118
118
|
function q(o) {
|
|
119
|
-
return o ?
|
|
119
|
+
return o ? mt(o, { year: void 0, timeZone: "UTC" }) : "";
|
|
120
120
|
}
|
|
121
121
|
function te(o) {
|
|
122
122
|
const l = /* @__PURE__ */ new Date(), f = new Date(l);
|
|
@@ -213,7 +213,7 @@ function sa(J, t) {
|
|
|
213
213
|
},
|
|
214
214
|
class: "qty-btn",
|
|
215
215
|
children: (Le, He) => {
|
|
216
|
-
|
|
216
|
+
ht(Le, { size: 20, "aria-hidden": "true" });
|
|
217
217
|
},
|
|
218
218
|
$$slots: { default: !0 }
|
|
219
219
|
});
|
|
@@ -236,7 +236,7 @@ function sa(J, t) {
|
|
|
236
236
|
},
|
|
237
237
|
class: "qty-btn",
|
|
238
238
|
children: (Le, He) => {
|
|
239
|
-
|
|
239
|
+
_t(Le, { size: 20, "aria-hidden": "true" });
|
|
240
240
|
},
|
|
241
241
|
$$slots: { default: !0 }
|
|
242
242
|
});
|
|
@@ -269,7 +269,7 @@ function sa(J, t) {
|
|
|
269
269
|
var l = Zt(), f = e.child(l);
|
|
270
270
|
{
|
|
271
271
|
let L = e.derived(() => g().donationAmountLabel || "Donation amount in dollars"), Q = e.derived(() => k() || s() === "scheduled" || s() === "sales_ended"), Z = e.derived(() => e.get(G) ? "donation-error-" + t.title?.replace(/\s+/g, "-").toLowerCase() : void 0);
|
|
272
|
-
|
|
272
|
+
vt(f, {
|
|
273
273
|
get label() {
|
|
274
274
|
return e.get(L);
|
|
275
275
|
},
|
|
@@ -414,7 +414,7 @@ function sa(J, t) {
|
|
|
414
414
|
var Xe = (o) => {
|
|
415
415
|
{
|
|
416
416
|
let l = e.derived(() => C() ?? 0);
|
|
417
|
-
|
|
417
|
+
bt(o, {
|
|
418
418
|
get remaining() {
|
|
419
419
|
return e.get(l);
|
|
420
420
|
},
|
|
@@ -642,7 +642,7 @@ function va(J, t) {
|
|
|
642
642
|
}
|
|
643
643
|
e.append(J, w), e.pop();
|
|
644
644
|
}
|
|
645
|
-
const ga =
|
|
645
|
+
const ga = gt("PromocodeInput");
|
|
646
646
|
var fa = e.from_html('<p id="promo-hint" class="promo-message success mt-2 body-sm text-accent-success" role="status" aria-live="polite"> </p>'), pa = e.from_html('<p id="promo-error" class="sr-only svelte-ztoygy" role="alert"> </p>'), ma = e.from_html('<div class="promo-section p-4 md:p-5" role="group" aria-labelledby="promo-label"><span id="promo-label" class="sr-only svelte-ztoygy"> </span> <div class="promo-input-wrapper flex gap-2 items-start"><div class="flex-1"><!></div> <!></div> <!> <!></div>');
|
|
647
647
|
function ha(J, t) {
|
|
648
648
|
e.push(t, !0);
|
|
@@ -655,7 +655,7 @@ function ha(J, t) {
|
|
|
655
655
|
}
|
|
656
656
|
e.set(z, !0);
|
|
657
657
|
try {
|
|
658
|
-
const c = await
|
|
658
|
+
const c = await yt(E(), v);
|
|
659
659
|
if (c.valid) {
|
|
660
660
|
e.set(C, !0);
|
|
661
661
|
let I = 0;
|
|
@@ -725,7 +725,7 @@ function ha(J, t) {
|
|
|
725
725
|
}, N = (v) => {
|
|
726
726
|
v.key === "Enter" && (v.preventDefault(), M());
|
|
727
727
|
};
|
|
728
|
-
|
|
728
|
+
ft(() => {
|
|
729
729
|
const v = Oe(`checkout-promocode-${E()}`);
|
|
730
730
|
v && (e.set(k, v, !0), M());
|
|
731
731
|
});
|
|
@@ -734,7 +734,7 @@ function ha(J, t) {
|
|
|
734
734
|
var g = e.sibling(Y, 2), V = e.child(g), w = e.child(V);
|
|
735
735
|
{
|
|
736
736
|
let v = e.derived(() => _().promoCode || "Promo code"), c = e.derived(() => e.get(C) || e.get(z)), I = e.derived(() => e.get(s) ? e.get(y) : ""), m = e.derived(() => e.get(a) ? "promo-hint" : e.get(y) ? "promo-error" : void 0);
|
|
737
|
-
|
|
737
|
+
vt(w, {
|
|
738
738
|
get label() {
|
|
739
739
|
return e.get(v);
|
|
740
740
|
},
|
|
@@ -834,17 +834,17 @@ function ka(J, t) {
|
|
|
834
834
|
e.push(t, !0);
|
|
835
835
|
let E = e.prop(t, "variant", 3, "tickets"), _ = e.prop(t, "total", 3, 0), k = e.prop(t, "onCancel", 3, () => {
|
|
836
836
|
}), s = e.prop(t, "onInfoClick", 3, () => {
|
|
837
|
-
}), y = e.prop(t, "labels", 19, () => ({})), a = e.derived(() => t.event.timeZone ||
|
|
837
|
+
}), y = e.prop(t, "labels", 19, () => ({})), a = e.derived(() => t.event.timeZone || xt()), C = e.derived(() => t.event.displayEndTime === !0), z = e.derived(() => t.event.displayDoorsTime === !0), M = e.derived(() => E() === "checkout"), se = e.derived(() => _() > 0 ? `${Be(_())}` : (
|
|
838
838
|
/* FIXME(canonical-cleanup:toFixed): heuristic guess — verify this is USD (not cents); when migrating to TS, add `as USD` brand cast at the API-response-transform layer. */
|
|
839
839
|
y().free || "Free"
|
|
840
840
|
));
|
|
841
841
|
var ie = xa(), N = e.child(ie), ce = e.child(N);
|
|
842
|
-
|
|
842
|
+
kt(ce, { size: 20, "aria-hidden": "true" }), e.reset(N);
|
|
843
843
|
var Y = e.sibling(N, 2);
|
|
844
844
|
{
|
|
845
845
|
var ve = (m) => {
|
|
846
846
|
var T = _a(), q = e.child(T);
|
|
847
|
-
|
|
847
|
+
Dt(q, {
|
|
848
848
|
get src() {
|
|
849
849
|
return t.event.image;
|
|
850
850
|
},
|
|
@@ -867,7 +867,7 @@ function ka(J, t) {
|
|
|
867
867
|
var v = (m) => {
|
|
868
868
|
var T = ba(), q = e.child(T, !0);
|
|
869
869
|
e.reset(T), e.template_effect((te) => e.set_text(q, te), [
|
|
870
|
-
() => (y().doorsOpen || "Doors open {time}").replace("{time}",
|
|
870
|
+
() => (y().doorsOpen || "Doors open {time}").replace("{time}", St(t.event.doorsOpenTime, e.get(a)))
|
|
871
871
|
]), e.append(m, T);
|
|
872
872
|
};
|
|
873
873
|
e.if(S, (m) => {
|
|
@@ -881,7 +881,7 @@ function ka(J, t) {
|
|
|
881
881
|
var T = ya(), q = e.child(T), te = e.child(q, !0);
|
|
882
882
|
e.reset(q);
|
|
883
883
|
var _e = e.sibling(q, 2), ke = e.child(_e);
|
|
884
|
-
|
|
884
|
+
Ct(ke, { size: 20, "aria-hidden": "true" }), e.reset(_e), e.reset(T), e.template_effect(
|
|
885
885
|
(Te) => {
|
|
886
886
|
e.set_attribute(q, "aria-label", Te), e.set_text(te, e.get(se)), e.set_attribute(_e, "aria-label", y().viewOrderDetails || "View order details");
|
|
887
887
|
},
|
|
@@ -901,15 +901,15 @@ function ka(J, t) {
|
|
|
901
901
|
e.set_attribute(N, "aria-label", e.get(M) ? y().goBackToTicketSelection || "Go back to ticket selection" : y().goBackToEventDetails || "Go back to event details"), e.set_text(w, t.event.name), e.set_attribute(G, "aria-label", y().ariaEventDateTime || "Event date and time"), e.set_attribute($, "datetime", t.event.startDateTime), e.set_text(h, m), e.set_text(x, T);
|
|
902
902
|
},
|
|
903
903
|
[
|
|
904
|
-
() =>
|
|
905
|
-
() => e.get(C) && t.event.endDateTime ?
|
|
904
|
+
() => Tt(t.event.startDateTime, e.get(a)),
|
|
905
|
+
() => e.get(C) && t.event.endDateTime ? wt(t.event.startDateTime, t.event.endDateTime, e.get(a)) : It(t.event.startDateTime, e.get(a))
|
|
906
906
|
]
|
|
907
907
|
), e.delegated("click", N, function(...m) {
|
|
908
908
|
k()?.apply(this, m);
|
|
909
909
|
}), e.append(J, ie), e.pop();
|
|
910
910
|
}
|
|
911
911
|
e.delegate(["click"]);
|
|
912
|
-
const he =
|
|
912
|
+
const he = gt("CartView");
|
|
913
913
|
var Ta = e.from_html('<div class="flex items-center justify-center py-12" aria-live="polite"><p class="text-text-secondary"> </p></div>'), wa = e.from_html('<div class="text-center py-8" role="alert"><p class="text-accent-danger mb-2"> </p> <button class="go-back-btn text-white mt-4 px-4 py-2 rounded-lg svelte-19g9ni4"> </button></div>'), Ia = e.from_html('<div class="text-center py-12" role="alert"><p class="text-xl font-semibold text-text-primary mb-2"> </p> <p class="text-text-secondary mb-6"> </p> <button class="go-back-btn text-white px-4 py-2 rounded-lg svelte-19g9ni4"> </button></div>'), Da = e.from_html('<div class="text-center py-12" role="alert"><p class="text-xl font-semibold text-text-primary mb-2">This event has ended</p> <p class="text-text-secondary mb-6">Tickets are no longer available for this event.</p> <button class="go-back-btn px-4 py-2 rounded-lg svelte-19g9ni4" aria-label="Go back to event details">Go back</button></div>'), Sa = e.from_html('<div class="px-4 md:px-5 pt-3"><!></div>'), Ca = e.from_html('<div class="px-4 md:px-5 pt-3"><!></div>'), Ea = e.from_html('<div class="hidden md:block w-80 h-[calc(100vh-40px)]"></div>'), Aa = e.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>'), Pa = e.from_html('<h3 id="error-modal-title" class="heading-lg"><!></h3>'), Oa = e.from_html('<p class="body-sm"> </p> <p class="text-text-secondary mt-2"> </p>', 1), Ma = e.from_html('<p class="body-sm"> </p> <p class="text-text-secondary mt-2"> </p>', 1), Fa = e.from_html('<div id="error-modal-description"><!></div>'), La = e.from_html("<!> <!>", 1), Qa = e.from_html('<div role="group" aria-label="Error modal actions"><!></div>'), Ba = e.from_html('<h3 id="expired-modal-title" class="heading-lg"> </h3>'), Na = e.from_html('<p id="expired-modal-description" class="body-sm text-text-secondary"> </p>'), qa = e.from_html('<h3 id="availability-modal-title" class="heading-lg"> </h3>'), Ra = e.from_html('<li class="text-text-secondary text-sm"><span class="font-medium"> </span> <!></li>'), za = e.from_html('<p class="text-text-secondary mt-4"> </p>'), Ha = e.from_html('<p class="text-text-secondary mt-4"> </p>'), ja = e.from_html('<div id="availability-modal-description"><p class="text-text-secondary mb-4"> </p> <ul class="space-y-2"></ul> <!></div>'), Ua = e.from_html('<div role="group" aria-label="Availability modal actions"><!> <!></div>'), Ga = e.from_html('<div class="px-5 md:px-10 py-12 bg-card"><!></div> <!> <!> <!>', 1);
|
|
914
914
|
function tr(J, t) {
|
|
915
915
|
e.push(t, !0);
|
|
@@ -954,7 +954,7 @@ function tr(J, t) {
|
|
|
954
954
|
if (!d) return;
|
|
955
955
|
e.set(we, !0);
|
|
956
956
|
try {
|
|
957
|
-
await
|
|
957
|
+
await Qt(d, e.get(w)) || he.warn("Cart quantity sync failed; UI may not match server");
|
|
958
958
|
} finally {
|
|
959
959
|
e.set(we, !1);
|
|
960
960
|
}
|
|
@@ -1102,7 +1102,7 @@ function tr(J, t) {
|
|
|
1102
1102
|
const r = new URLSearchParams();
|
|
1103
1103
|
E() && r.set("orgId", E()), _() && r.set("venueId", _()), r.set("event_id", t.eventId), r.set("subroute", "checkout");
|
|
1104
1104
|
const n = `/?${r.toString()}`;
|
|
1105
|
-
|
|
1105
|
+
ut(n, { noScroll: !1 }), e.set(M, !1);
|
|
1106
1106
|
} catch (r) {
|
|
1107
1107
|
he.error("Navigation failed after cart creation:", r), e.set(M, !1), e.set(m, "cart_success_network_error"), e.set(I, !0);
|
|
1108
1108
|
}
|
|
@@ -1145,13 +1145,13 @@ function tr(J, t) {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
1147
|
function ye() {
|
|
1148
|
-
if (e.get(a) &&
|
|
1148
|
+
if (e.get(a) && At(e.get(a).eventID), t.onNavigateBack)
|
|
1149
1149
|
t.onNavigateBack();
|
|
1150
1150
|
else {
|
|
1151
1151
|
const i = new URLSearchParams(window.location.search);
|
|
1152
1152
|
i.set("subroute", "details");
|
|
1153
1153
|
const r = `/?${i.toString()}`;
|
|
1154
|
-
|
|
1154
|
+
ut(r, {});
|
|
1155
1155
|
}
|
|
1156
1156
|
}
|
|
1157
1157
|
let ae = null;
|
|
@@ -1208,7 +1208,7 @@ function tr(J, t) {
|
|
|
1208
1208
|
return;
|
|
1209
1209
|
}
|
|
1210
1210
|
try {
|
|
1211
|
-
const n = await
|
|
1211
|
+
const n = await Lt(ae);
|
|
1212
1212
|
if (n.notFound) {
|
|
1213
1213
|
clearInterval(r);
|
|
1214
1214
|
const u = ae;
|
|
@@ -1265,7 +1265,7 @@ function tr(J, t) {
|
|
|
1265
1265
|
e.set(a, ot(e.get(C)), !0), e.set(z, e.get(a).availableTickets || [], !0);
|
|
1266
1266
|
} else {
|
|
1267
1267
|
try {
|
|
1268
|
-
if (e.set(C, await
|
|
1268
|
+
if (e.set(C, await Pt(t.eventId), !0), !e.get(N)) return;
|
|
1269
1269
|
e.set(a, ot(e.get(C)), !0);
|
|
1270
1270
|
} catch (n) {
|
|
1271
1271
|
he.error("Event fetch failed:", n), e.set(ie, s().failedToLoadEvent || "Failed to load event", !0), e.set(se, !1);
|
|
@@ -1280,10 +1280,10 @@ function tr(J, t) {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
1282
|
e.get(a).availableTickets && e.get(a).availableTickets.forEach((n) => e.get(w)[n.ID] = 0);
|
|
1283
|
-
const i =
|
|
1284
|
-
if (e.set(w, jt(i.quantities || {}, e.get(a).availableTickets), !0), e.set(G, i.promocode || "", !0), e.set($, i.promoDiscountAmount || 0, !0), e.get(a).eventID && (await
|
|
1283
|
+
const i = Ot(e.get(a).eventID);
|
|
1284
|
+
if (e.set(w, jt(i.quantities || {}, e.get(a).availableTickets), !0), e.set(G, i.promocode || "", !0), e.set($, i.promoDiscountAmount || 0, !0), e.get(a).eventID && (await Mt(e.get(a).eventID), !e.get(N)))
|
|
1285
1285
|
return;
|
|
1286
|
-
e.set(y, !0), Ge(), Object.values(e.get(w)).reduce((n, u) => n + u, 0) > 0 && Xe(), Ce(), await
|
|
1286
|
+
e.set(y, !0), Ge(), Object.values(e.get(w)).reduce((n, u) => n + u, 0) > 0 && Xe(), Ce(), await Ft(String(e.get(a).eventID));
|
|
1287
1287
|
} catch (i) {
|
|
1288
1288
|
e.get(N) && (he.error("Error loading event:", i), e.set(ie, i.message || s().failedToLoadEvent || "Failed to load event", !0));
|
|
1289
1289
|
} finally {
|
|
@@ -1291,16 +1291,14 @@ function tr(J, t) {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
|
-
|
|
1295
|
-
e.set(N, !0), Fe(), window.addEventListener("resize", Fe), window.addEventListener("scroll", Je), await f(),
|
|
1294
|
+
ft(async () => {
|
|
1295
|
+
e.set(N, !0), Fe(), window.addEventListener("resize", Fe), window.addEventListener("scroll", Je), await f(), Et(t.eventId).then((i) => {
|
|
1296
1296
|
e.set(h, i, !0);
|
|
1297
1297
|
}).catch(() => {
|
|
1298
1298
|
e.set(h, !0);
|
|
1299
|
-
}), ut(() => {
|
|
1300
|
-
window.removeEventListener("resize", Fe), window.removeEventListener("scroll", Je);
|
|
1301
1299
|
});
|
|
1302
|
-
}),
|
|
1303
|
-
e.set(N, !1), S && clearInterval(S), v && (typeof document < "u" && document.removeEventListener("visibilitychange", v), typeof window < "u" && window.removeEventListener("pageshow", v), v = null), ge && ge.abort();
|
|
1300
|
+
}), Nt(() => {
|
|
1301
|
+
e.set(N, !1), window.removeEventListener("resize", Fe), window.removeEventListener("scroll", Je), S && clearInterval(S), v && (typeof document < "u" && document.removeEventListener("visibilitychange", v), typeof window < "u" && window.removeEventListener("pageshow", v), v = null), ge && ge.abort();
|
|
1304
1302
|
});
|
|
1305
1303
|
let H = null;
|
|
1306
1304
|
e.user_effect(() => {
|
|
@@ -1437,7 +1435,7 @@ function tr(J, t) {
|
|
|
1437
1435
|
}, rt = (R) => {
|
|
1438
1436
|
{
|
|
1439
1437
|
let re = e.derived(() => s().checkout || "Checkout"), be = e.derived(() => !!e.get(ue));
|
|
1440
|
-
|
|
1438
|
+
Bt(R, {
|
|
1441
1439
|
get btnText() {
|
|
1442
1440
|
return e.get(re);
|
|
1443
1441
|
},
|
|
@@ -1635,8 +1633,8 @@ function tr(J, t) {
|
|
|
1635
1633
|
},
|
|
1636
1634
|
$$slots: { header: !0, body: !0, footer: !0 }
|
|
1637
1635
|
});
|
|
1638
|
-
var
|
|
1639
|
-
st(
|
|
1636
|
+
var pt = e.sibling(Ke, 2);
|
|
1637
|
+
st(pt, {
|
|
1640
1638
|
size: "sm",
|
|
1641
1639
|
oncancel: qe,
|
|
1642
1640
|
"aria-labelledby": "availability-modal-title",
|
|
@@ -1744,4 +1742,4 @@ e.delegate(["click"]);
|
|
|
1744
1742
|
export {
|
|
1745
1743
|
tr as default
|
|
1746
1744
|
};
|
|
1747
|
-
//# sourceMappingURL=CartView-
|
|
1745
|
+
//# sourceMappingURL=CartView-D7dkTShT.js.map
|