@getmicdrop/venue-calendar 4.0.80 → 4.0.81
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/README.md +173 -128
- package/dist/{CarouselView.legacy-D2EY3K5p.js → CarouselView.legacy-Bn76lnuH.js} +3 -3
- package/dist/{CarouselView.legacy-D2EY3K5p.js.map → CarouselView.legacy-Bn76lnuH.js.map} +1 -1
- package/dist/{CartView-CXsAlVHs.js → CartView-lR1zLxmN.js} +277 -280
- package/dist/CartView-lR1zLxmN.js.map +1 -0
- package/dist/{Checkout-Bj85hSlQ.js → Checkout-D5mXj5zN.js} +69 -73
- package/dist/Checkout-D5mXj5zN.js.map +1 -0
- package/dist/Checkout-KyLZlwLk.js +1673 -0
- package/dist/Checkout-KyLZlwLk.js.map +1 -0
- package/dist/{Checkout.legacy-D4Uh3sQB.js → Checkout.legacy-Dl8Oh7y3.js} +77 -81
- package/dist/{Checkout.legacy-D4Uh3sQB.js.map → Checkout.legacy-Dl8Oh7y3.js.map} +1 -1
- package/dist/CheckoutTimer-Deo1mLnO.js +141 -0
- package/dist/CheckoutTimer-Deo1mLnO.js.map +1 -0
- package/dist/CollectionView-C1O9xfVC.js +338 -0
- package/dist/CollectionView-C1O9xfVC.js.map +1 -0
- package/dist/{CollectionView.legacy-CsBYjvZv.js → CollectionView.legacy-DK_mCA_g.js} +25 -28
- package/dist/{CollectionView.legacy-CsBYjvZv.js.map → CollectionView.legacy-DK_mCA_g.js.map} +1 -1
- package/dist/Event-B5WRygEf.js +2240 -0
- package/dist/Event-B5WRygEf.js.map +1 -0
- package/dist/EventPage-f1AOk4Jb.js +577 -0
- package/dist/EventPage-f1AOk4Jb.js.map +1 -0
- package/dist/{EventPage.legacy-DDVZNT-7.js → EventPage.legacy-Bk3PJyJs.js} +408 -411
- package/dist/{EventPage.legacy-DDVZNT-7.js.map → EventPage.legacy-Bk3PJyJs.js.map} +1 -1
- package/dist/{FeaturedView.legacy-BfOfYXRN.js → FeaturedView.legacy-BzCt1X1W.js} +19 -19
- package/dist/{FeaturedView.legacy-BfOfYXRN.js.map → FeaturedView.legacy-BzCt1X1W.js.map} +1 -1
- package/dist/{GalleryCard-CZkN5_Jb.js → GalleryCard-C1EKGErR.js} +14 -14
- package/dist/{GalleryCard-CZkN5_Jb.js.map → GalleryCard-C1EKGErR.js.map} +1 -1
- package/dist/{GalleryView.legacy-CziaM40i.js → GalleryView.legacy-BmQtZKl7.js} +3 -3
- package/dist/{GalleryView.legacy-CziaM40i.js.map → GalleryView.legacy-BmQtZKl7.js.map} +1 -1
- package/dist/{GroupedListView.legacy-CPy5md80.js → GroupedListView.legacy-D72fbNfA.js} +18 -18
- package/dist/{GroupedListView.legacy-CPy5md80.js.map → GroupedListView.legacy-D72fbNfA.js.map} +1 -1
- package/dist/Heading-Bwevh2c4.js +81 -0
- package/dist/Heading-Bwevh2c4.js.map +1 -0
- package/dist/ModalHeader-DKwE5ZYZ.js +22 -0
- package/dist/ModalHeader-DKwE5ZYZ.js.map +1 -0
- package/dist/OrderSummarySkeleton-DKWKZNLL.js +632 -0
- package/dist/OrderSummarySkeleton-DKWKZNLL.js.map +1 -0
- package/dist/{ScarcityBadge-Bungh7jy.js → ScarcityBadge-3cFxTOCh.js} +24 -28
- package/dist/{ScarcityBadge-Bungh7jy.js.map → ScarcityBadge-3cFxTOCh.js.map} +1 -1
- package/dist/{SeriesPage-BzyObY3_.js → SeriesPage-Cq4Q8Vah.js} +17 -21
- package/dist/{SeriesPage-BzyObY3_.js.map → SeriesPage-Cq4Q8Vah.js.map} +1 -1
- package/dist/{SeriesPage.legacy-BA00IzDL.js → SeriesPage.legacy-zvgW0S_y.js} +70 -74
- package/dist/{SeriesPage.legacy-BA00IzDL.js.map → SeriesPage.legacy-zvgW0S_y.js.map} +1 -1
- package/dist/{Success-NB1gahZr.js → Success-kyiEO6_Z.js} +186 -175
- package/dist/{Success-NB1gahZr.js.map → Success-kyiEO6_Z.js.map} +1 -1
- package/dist/{Success.legacy-D6cvUMzi.js → Success.legacy-BxKYmXgz.js} +58 -62
- package/dist/{Success.legacy-D6cvUMzi.js.map → Success.legacy-BxKYmXgz.js.map} +1 -1
- package/dist/Text-_bLxSPv-.js +158 -0
- package/dist/Text-_bLxSPv-.js.map +1 -0
- package/dist/{VenueCalendar-CISH7WGT.js → VenueCalendar-d8u6MKEu.js} +8138 -22881
- package/dist/VenueCalendar-d8u6MKEu.js.map +1 -0
- package/dist/ViewTicketsEmbed-DquJJVIK.js +2081 -0
- package/dist/ViewTicketsEmbed-DquJJVIK.js.map +1 -0
- package/dist/__SKIP_NAVIGATION__-CmipjatL.js +18 -0
- package/dist/__SKIP_NAVIGATION__-CmipjatL.js.map +1 -0
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.cjs.map +1 -1
- package/dist/api/api.mjs +482 -374
- package/dist/api/api.mjs.map +1 -1
- package/dist/api/cta.d.ts +2 -10
- package/dist/api/transformers/address.d.ts +18 -0
- package/dist/api/transformers/cart.d.ts +19 -0
- package/dist/api/transformers/collection.d.ts +12 -0
- package/dist/api/transformers/event.d.ts +50 -1
- package/dist/api/transformers/giftCard.d.ts +11 -0
- package/dist/api/transformers/index.d.ts +10 -3
- package/dist/api/transformers/performer.d.ts +8 -0
- package/dist/api/transformers/series.d.ts +12 -0
- package/dist/api/types.d.ts +423 -383
- package/dist/api-BzICORqy.js +6 -0
- package/dist/{api-BV4wcElQ.js.map → api-BzICORqy.js.map} +1 -1
- package/dist/colors-CmP-sSZD.js.map +1 -1
- package/dist/{data-toggle-store.svelte-DU0VWdcf.js → data-toggle-store.svelte-BGbzblUJ.js} +6 -6
- package/dist/{data-toggle-store.svelte-DU0VWdcf.js.map → data-toggle-store.svelte-BGbzblUJ.js.map} +1 -1
- package/dist/index-BsWecoW1.js +63 -0
- package/dist/index-BsWecoW1.js.map +1 -0
- package/dist/labels-Bj_cocb1.js +966 -0
- package/dist/labels-Bj_cocb1.js.map +1 -0
- package/dist/transform-D7Oe8jUp.js +276 -0
- package/dist/transform-D7Oe8jUp.js.map +1 -0
- package/dist/types/index.d.ts +45 -0
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +31 -37
- package/dist/venue-calendar.es.js.map +1 -1
- package/dist/venue-calendar.iife.js +40 -107
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +38 -125
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +170 -168
- package/dist/CartView-CXsAlVHs.js.map +0 -1
- package/dist/Checkout-BPAkGlf6.js +0 -1531
- package/dist/Checkout-BPAkGlf6.js.map +0 -1
- package/dist/Checkout-Bj85hSlQ.js.map +0 -1
- package/dist/CheckoutTimer-CSc35x4t.js +0 -35
- package/dist/CheckoutTimer-CSc35x4t.js.map +0 -1
- package/dist/CollectionView-BitCEQzn.js +0 -148
- package/dist/CollectionView-BitCEQzn.js.map +0 -1
- package/dist/Event-BAKC5X6r.js +0 -1910
- package/dist/Event-BAKC5X6r.js.map +0 -1
- package/dist/EventPage-DxiAuBVc.js +0 -336
- package/dist/EventPage-DxiAuBVc.js.map +0 -1
- package/dist/Heading-AFd3o0xt.js +0 -44
- package/dist/Heading-AFd3o0xt.js.map +0 -1
- package/dist/OrderSummarySkeleton-dDKUH741.js +0 -16
- package/dist/OrderSummarySkeleton-dDKUH741.js.map +0 -1
- package/dist/Text-CXR2fhx6.js +0 -54
- package/dist/Text-CXR2fhx6.js.map +0 -1
- package/dist/VenueCalendar-CISH7WGT.js.map +0 -1
- package/dist/ViewTicketsEmbed-Bo16Y0sx.js +0 -2039
- package/dist/ViewTicketsEmbed-Bo16Y0sx.js.map +0 -1
- package/dist/__SKIP_NAVIGATION__-CJ96TTPE.js +0 -7
- package/dist/__SKIP_NAVIGATION__-CJ96TTPE.js.map +0 -1
- package/dist/api-BV4wcElQ.js +0 -12
- package/dist/labels-B2ebkcUD.js +0 -659
- package/dist/labels-B2ebkcUD.js.map +0 -1
- package/dist/transform-B3tJXUnG.js +0 -275
- package/dist/transform-B3tJXUnG.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Event-BAKC5X6r.js","sources":["../src/lib/public-calendar-flow/HeroImage.svelte","../src/lib/public-calendar-flow/EventHeader.svelte","../src/lib/public-calendar-flow/TicketCard.svelte","../src/lib/public-calendar-flow/BookingWidget.svelte","../src/lib/public-calendar-flow/AboutSection.svelte","../src/lib/public-calendar-flow/PerformerGrid.svelte","../src/lib/public-calendar-flow/FaqAccordion.svelte","../src/lib/public-calendar-flow/MobileCta.svelte","../src/lib/public-calendar-flow/PromoCodeInput.svelte","../src/lib/public-calendar-flow/ShowtimeDesigns.svelte","../src/lib/public-calendar-flow/Event.svelte"],"sourcesContent":["<script lang=\"ts\">\r\n\tinterface Props {\r\n\t\tsrc: string;\r\n\t\talt: string;\r\n\t\t\tlabels?: Record<string, string>;\r\n\t}\r\n\r\n\tlet { src, alt, labels = {}, }: Props = $props();\r\n</script>\r\n\r\n<div class=\"hero-container relative w-full overflow-hidden rounded-xl bg-surface-secondary\">\r\n\t<!-- @component-image-escape: scoped-CSS selector targets this img; aria-hidden not supported by SC Image -->\r\n\t<img\r\n\t\t{src}\r\n\t\talt=\"\"\r\n\t\tclass=\"hero-blur\"\r\n\t\tloading=\"eager\"\r\n\t\taria-hidden=\"true\"\r\n\t/>\r\n\t<!-- @component-image-escape: scoped-CSS selector targets this img -->\r\n\t<img\r\n\t\t{src}\r\n\t\t{alt}\r\n\t\tclass=\"hero-image\"\r\n\t\tloading=\"eager\"\r\n\t/>\r\n</div>\r\n\r\n<style>\r\n\t.hero-container {\r\n\t\tmax-height: 37.5rem;\r\n\t\tmin-height: 12rem;\r\n\t}\r\n\r\n\t/* Blurred zoomed copy as backdrop */\r\n\t.hero-blur {\r\n\t\tposition: absolute;\r\n\t\tinset: 0;\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tobject-fit: cover;\r\n\t\ttransform: scale(1.15);\r\n\t\tfilter: blur(16px) saturate(1.2);\r\n\t}\r\n\r\n\t/* Main image on top, contained */\r\n\t.hero-image {\r\n\t\tposition: relative;\r\n\t\twidth: 100%;\r\n\t\tobject-fit: contain;\r\n\t\tmax-height: 37.5rem;\r\n\t\tmin-height: 12rem;\r\n\t}\r\n</style>\r\n","<script lang=\"ts\">\r\n\timport { Calendar, Location, Share, Theater, Time, User } from 'carbon-icons-svelte';\r\n\timport { Heading, Button } from '@getmicdrop/svelte-components';\r\n\timport { toast } from '@getmicdrop/svelte-components/toast';\r\n\timport ScarcityBadge from '../../components/ScarcityBadge.svelte';\r\n\timport type { EventData, ScarcityLevel } from '$lib/public-calendar-flow/types';\r\n\timport {\r\n\t\tformatFullDateCompact,\r\n\t\tformatEventTime,\r\n\t\tformatTimeRange,\r\n\t\tformatDoorsTime,\r\n\t\tgetScarcityLevel,\r\n\t\tgetScarcityText\r\n\t} from '$lib/public-calendar-flow/defaults';\r\n\r\n\tinterface Props {\r\n\t\tevent: EventData;\r\n\t\thideDateTime?: boolean;\r\n\t\thideVenue?: boolean;\r\n\t\t\tlabels?: Record<string, string>;\r\n\t}\r\n\r\n\tlet { event, hideDateTime = false, hideVenue = false, labels = {}, }: Props = $props();\r\n\r\n\tlet scarcityLevel: ScarcityLevel = $derived(\r\n\t\tgetScarcityLevel(event.totalTicketsRemaining, event.totalTicketsCapacity)\r\n\t);\r\n\tlet scarcityText = $derived(\r\n\t\tgetScarcityText(scarcityLevel, event.totalTicketsRemaining, 'event')\r\n\t);\r\n\r\n\tlet ageText = $derived((() => {\r\n\t\tif (!event.displayAgeRestriction) return null;\r\n\t\tif (event.ageRestriction && event.ageRestriction > 0) {\r\n\t\t\treturn `Ages ${event.ageRestriction}+`;\r\n\t\t}\r\n\t\treturn 'All ages';\r\n\t})());\r\n\r\n\tasync function shareEvent() {\r\n\t\tconst url = typeof window !== 'undefined'\r\n\t\t\t? `${window.location.origin}/e/${event.id}-${event.slug}`\r\n\t\t\t: '#';\r\n\t\tconst shareData = { url };\r\n\r\n\t\tif (navigator.share) {\r\n\t\t\ttry {\r\n\t\t\t\tawait navigator.share(shareData);\r\n\t\t\t} catch (err: unknown) {\r\n\t\t\t\tif (err instanceof Error && err.name !== 'AbortError') {\r\n\t\t\t\t\tfallbackShare(url);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tfallbackShare(url);\r\n\t\t}\r\n\t}\r\n\r\n\tfunction fallbackShare(url: string) {\r\n\t\tnavigator.clipboard.writeText(url).then(() => {\r\n\t\t\ttoast.success('Link copied to clipboard!');\r\n\t\t}).catch(() => {\r\n\t\t\t// duration: Infinity keeps the URL visible so users can still copy\r\n\t\t\t// it manually after clipboard API failure (Codex review of #103)\r\n\t\t\ttoast.error('Could not copy link — select the URL below to copy', {\r\n\t\t\t\tdescription: url,\r\n\t\t\t\tduration: Infinity,\r\n\t\t\t});\r\n\t\t});\r\n\t}\r\n</script>\r\n\r\n<div class=\"flex flex-col gap-4\">\r\n\t<div class=\"flex items-start gap-3 flex-wrap\">\r\n\t\t<Heading level={1} size=\"xl\" weight=\"bold\" class=\"sm:text-2xl leading-tight\">\r\n\t\t\t{event.title}\r\n\t\t</Heading>\r\n\t\t{#if scarcityText && event.status === 'on_sale'}\r\n\t\t\t<ScarcityBadge\r\n\t\t\t\tremaining={event.totalTicketsRemaining}\r\n\t\t\t\ttotal={event.totalTicketsCapacity}\r\n\t\t\t\tcontext=\"event\"\r\n\t\t\t/>\r\n\t\t{/if}\r\n\t</div>\r\n\r\n\t<!-- Share -->\r\n\t<Button variant=\"ghost\" size=\"xs\" class=\"self-start\" onclick={shareEvent}>\r\n\t\t<Share size={16} class=\"shrink-0\" />\r\n\t\tShare\r\n\t</Button>\r\n\r\n\t{#if !hideDateTime}\r\n\t\t<!-- Date -->\r\n\t\t<div class=\"flex items-start gap-3\">\r\n\t\t\t<Calendar size={16} class=\"shrink-0 mt-0.5 icon-muted\" />\r\n\t\t\t<span class=\"body-md font-medium\">{formatFullDateCompact(event.startDateTime, event.timezone)}</span>\r\n\t\t</div>\r\n\r\n\t\t<!-- Time + doors -->\r\n\t\t{#if event.displayStartTime !== false}\r\n\t\t\t<div class=\"flex items-start gap-3\">\r\n\t\t\t\t<Time size={16} class=\"shrink-0 mt-0.5 icon-muted\" />\r\n\t\t\t\t<div class=\"flex flex-col gap-0.5\">\r\n\t\t\t\t\t{#if event.displayEndTime !== false}\r\n\t\t\t\t\t\t<span class=\"body-md font-medium\">{formatTimeRange(event.startDateTime, event.endDateTime, event.timezone)}</span>\r\n\t\t\t\t\t{:else}\r\n\t\t\t\t\t\t<span class=\"body-md font-medium\">{formatEventTime(event.startDateTime, event.timezone)}</span>\r\n\t\t\t\t\t{/if}\r\n\t\t\t\t\t{#if event.displayDoorsTime !== false && event.doorsOpenTime}\r\n\t\t\t\t\t\t<span class=\"caption\">Doors open {formatDoorsTime(event.doorsOpenTime, event.timezone)}</span>\r\n\t\t\t\t\t{/if}\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t{:else if event.displayDoorsTime !== false && event.doorsOpenTime}\r\n\t\t\t<!-- No start/end time, but doors time is shown -->\r\n\t\t\t<div class=\"flex items-start gap-3\">\r\n\t\t\t\t<Time size={16} class=\"shrink-0 mt-0.5 icon-muted\" />\r\n\t\t\t\t<span class=\"body-md font-medium\">Doors open {formatDoorsTime(event.doorsOpenTime, event.timezone)}</span>\r\n\t\t\t</div>\r\n\t\t{/if}\r\n\t{/if}\r\n\r\n\t{#if !hideVenue}\r\n\t\t<!-- Venue + address -->\r\n\t\t<div class=\"flex items-start gap-3\">\r\n\t\t\t<Location size={16} class=\"shrink-0 mt-0.5 icon-muted\" />\r\n\t\t\t<div class=\"flex flex-col gap-0.5\">\r\n\t\t\t\t<span class=\"body-md font-medium\">{event.venue.name}</span>\r\n\t\t\t\t{#if event.venue.address}\r\n\t\t\t\t\t<span class=\"caption\">{event.venue.address}</span>\r\n\t\t\t\t{/if}\r\n\t\t\t</div>\r\n\t\t</div>\r\n\r\n\t\t<!-- Stage name -->\r\n\t\t{#if event.stageName}\r\n\t\t\t<div class=\"flex items-start gap-3\">\r\n\t\t\t\t<Theater size={16} class=\"shrink-0 mt-0.5 icon-muted\" />\r\n\t\t\t\t<span class=\"body-md font-medium\">{event.stageName}</span>\r\n\t\t\t</div>\r\n\t\t{/if}\r\n\r\n\t\t<!-- Age restriction -->\r\n\t\t{#if ageText}\r\n\t\t\t<div class=\"flex items-start gap-3\">\r\n\t\t\t\t<User size={16} class=\"shrink-0 mt-0.5 icon-muted\" />\r\n\t\t\t\t<span class=\"body-md font-medium\">{ageText}</span>\r\n\t\t\t</div>\r\n\t\t{/if}\r\n\t{/if}\r\n</div>","<!-- @style-escape: widget-intentional. -->\r\n<script lang=\"ts\">\r\n\timport { Add, Subtract } from 'carbon-icons-svelte';\r\n\timport { Badge, Button, Heading, Input, Text, toTicketId, formatCurrency, triggerHaptic } from '@getmicdrop/svelte-components';\r\n\timport type { TicketId, USD } from '@getmicdrop/svelte-components';\r\n\timport ScarcityBadge from '../../components/ScarcityBadge.svelte';\r\n\timport type { TicketTypeData, ScarcityLevel } from '$lib/public-calendar-flow/types';\r\n\timport {\r\n\t\tgetScarcityLevel,\r\n\t\tgetScarcityText,\r\n\t\tformatSmartSalesDate,\r\n\t\tDURATION\r\n\t} from '$lib/public-calendar-flow/defaults';\r\n\r\n\tinterface Props {\r\n\t\tticket: TicketTypeData;\r\n\t\tquantity: number;\r\n\t\tonQuantityChange: (ticketId: TicketId, quantity: number) => void;\r\n\t\tdonationAmount?: string;\r\n\t\tonDonationChange?: (ticketId: TicketId, amount: string) => void;\r\n\t\tisRevealedByPromo?: boolean;\r\n\t\tisDiscountedByPromo?: boolean;\r\n\t\tdiscountedPrice?: number | null;\r\n\t\t\tlabels?: Record<string, string>;\r\n\t}\r\n\r\n\tlet {\r\n\t\tticket,\r\n\t\tquantity,\r\n\t\tonQuantityChange,\r\n\t\tdonationAmount = '',\r\n\t\tonDonationChange,\r\n\t\tisRevealedByPromo = false,\r\n\t\tisDiscountedByPromo = false,\r\n\t\tdiscountedPrice = null,\r\n\t\tlabels = {},\r\n\t}: Props = $props();\r\n\r\n\t// --- State detection ---\r\n\tlet isDonation = $derived(ticket.isDonation || ticket.ticketType === 2);\r\n\tlet isSoldOut = $derived(ticket.status === 'sold_out' || ticket.quantityAvailable === 0);\r\n\tlet isComingSoon = $derived(ticket.status === 'coming_soon');\r\n\tlet isSalesEnded = $derived(ticket.status === 'sales_ended');\r\n\tlet isDisabled = $derived(isSoldOut || isComingSoon || isSalesEnded);\r\n\r\n\tlet scarcityLevel: ScarcityLevel = $derived(\r\n\t\tgetScarcityLevel(ticket.quantityAvailable, ticket.quantityTotal)\r\n\t);\r\n\tlet scarcityText = $derived(getScarcityText(scarcityLevel, ticket.quantityAvailable, 'ticket'));\r\n\r\n\t// Donation validation\r\n\tlet donationValue = $derived(parseFloat(donationAmount) || 0);\r\n\tlet donationError = $derived(\r\n\t\tisDonation && donationAmount !== '' && donationValue < 1 ? 'Minimum $1.00' : ''\r\n\t);\r\n\tlet isDonationValid = $derived(!isDonation || (donationAmount !== '' && donationValue >= 1));\r\n\r\n\tlet canDecrement = $derived(quantity > 0);\r\n\tlet canIncrement = $derived(\r\n\t\t!isDisabled &&\r\n\t\tquantity < ticket.maxPerOrder &&\r\n\t\tquantity < ticket.quantityAvailable &&\r\n\t\tisDonationValid\r\n\t);\r\n\r\n\tfunction decrement() {\r\n\t\tif (canDecrement) {\r\n\t\t\t// If decrementing would go below minimum, jump to 0 (remove from cart)\r\n\t\t\tconst newQty = quantity - 1;\r\n\t\t\tonQuantityChange(toTicketId(ticket.id), newQty < ticket.minPerOrder ? 0 : newQty);\r\n\t\t\ttriggerHaptic('light');\r\n\t\t}\r\n\t}\r\n\r\n\tfunction increment() {\r\n\t\tif (canIncrement) {\r\n\t\t\t// If at 0, jump to minimum purchase quantity\r\n\t\t\tconst newQty = quantity === 0 ? ticket.minPerOrder : quantity + 1;\r\n\t\t\tonQuantityChange(toTicketId(ticket.id), newQty);\r\n\t\t\ttriggerHaptic('light');\r\n\t\t}\r\n\t}\r\n\r\n\tlet donationInputValue = $state(donationAmount);\r\n\r\n\t// Sync external donationAmount prop to local state\r\n\t$effect(() => {\r\n\t\tdonationInputValue = donationAmount;\r\n\t});\r\n\r\n\t// Push local changes upstream\r\n\tfunction syncDonation() {\r\n\t\tif (donationInputValue !== donationAmount) {\r\n\t\t\t \r\n\t\tonDonationChange?.(toTicketId(ticket.id), donationInputValue);\r\n\t\t}\r\n\t}\r\n\r\n\t// Price display — show total inclusive of fees (matching production TicketBlock.svelte)\r\n\tlet totalPrice = $derived(isDonation ? 0 : ticket.price + (ticket.price === 0 ? 0 : ticket.fee));\r\n\tlet priceDisplay = $derived(\r\n\t\tisDonation ? '' : ticket.price === 0 ? (labels.free || 'Free') : formatCurrency(totalPrice as USD)\r\n\t);\r\n\tlet feeCaption = $derived(\r\n\t\t!isDonation && ticket.fee > 0 && ticket.price > 0 ? `incl. ${formatCurrency(ticket.fee as USD)} ${labels.fee || 'fee'}` : ''\r\n\t);\r\n\r\n\t// Sales start display for coming soon tickets\r\n\tlet salesStartDisplay = $derived(\r\n\t\tisComingSoon && ticket.salesStartDate\r\n\t\t\t? `Sales start ${formatSmartSalesDate(ticket.salesStartDate)}`\r\n\t\t\t: isComingSoon\r\n\t\t\t\t? 'Coming soon'\r\n\t\t\t\t: ''\r\n\t);\r\n</script>\r\n\r\n<article\r\n\tclass=\"ticket-card rounded-lg border p-4 transition-all\"\r\n\tclass:disabled-ticket={isDisabled}\r\n\tclass:revealed={isRevealedByPromo && !isDisabled}\r\n\tstyle=\"transition-duration: {DURATION.normal}ms;\"\r\n>\r\n\t<div class=\"vc-flex-between-start gap-4\">\r\n\t\t<!-- Ticket info -->\r\n\t\t<div class=\"flex-1 min-w-0\">\r\n\t\t\t<div class=\"flex-row-2 flex-wrap\">\r\n\t\t\t\t<Heading level={4} size=\"sm\" weight=\"semibold\">\r\n\t\t\t\t\t{ticket.name}\r\n\t\t\t\t</Heading>\r\n\t\t\t\t{#if isSoldOut}\r\n\t\t\t\t\t<Badge variant=\"error\">{labels.soldOut || 'Sold out'}</Badge>\r\n\t\t\t\t{:else if isSalesEnded}\r\n\t\t\t\t\t<Badge variant=\"neutral\">Sales ended</Badge>\r\n\t\t\t\t{:else if isRevealedByPromo}\r\n\t\t\t\t\t<Badge variant=\"success\">Unlocked</Badge>\r\n\t\t\t\t{:else if isDiscountedByPromo}\r\n\t\t\t\t\t<Badge variant=\"green\">Discount applied</Badge>\r\n\t\t\t\t{:else if scarcityText && !isComingSoon}\r\n\t\t\t\t\t<ScarcityBadge\r\n\t\t\t\t\t\tremaining={ticket.quantityAvailable}\r\n\t\t\t\t\t\ttotal={ticket.quantityTotal}\r\n\t\t\t\t\t\tcontext=\"ticket\"\r\n\t\t\t\t\t/>\r\n\t\t\t\t{/if}\r\n\t\t\t</div>\r\n\r\n\t\t\t{#if ticket.description}\r\n\t\t\t\t<Text size=\"xs\" color=\"muted\" class=\"block mt-1 line-clamp-2\">\r\n\t\t\t\t\t{ticket.description}\r\n\t\t\t\t</Text>\r\n\t\t\t{/if}\r\n\r\n\t\t\t<!-- Price row -->\r\n\t\t\t<div class=\"flex-row-2 mt-2\">\r\n\t\t\t\t{#if isDonation}\r\n\t\t\t\t\t<!-- Donation: $ input -->\r\n\t\t\t\t\t<!-- svelte-ignore a11y_no_static_element_interactions -->\r\n\t\t\t\t\t<div class=\"donation-input-wrapper\" oninput={syncDonation}>\r\n\t\t\t\t\t\t<Input\r\n\t\t\t\t\t\t\tlabel=\"Donation amount\"\r\n\t\t\t\t\t\t\tsize=\"md\"\r\n\t\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\t\tplaceholder=\"0.00\"\r\n\t\t\t\t\t\t\tbind:value={donationInputValue}\r\n\t\t\t\t\t\t\tdisabled={isDisabled}\r\n\t\t\t\t\t\t\terrorText={donationError}\r\n\t\t\t\t\t\t\tcolor={donationError ? 'red' : 'base'}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t{:else if isDiscountedByPromo && discountedPrice !== null}\r\n\t\t\t\t\t<!-- Discounted: strikethrough original total + discounted total (both inclusive of fee) -->\r\n\t\t\t\t\t{@const discountedTotal = discountedPrice + (discountedPrice === 0 ? 0 : ticket.fee)}\r\n\t\t\t\t\t<span class=\"price-strikethrough\">{formatCurrency(totalPrice as USD /* FIXME(canonical-cleanup:toFixed): this cast bypasses the brand boundary; replace with toCents/toUSD at the API-response-transform layer. */)}</span>\r\n\t\t\t\t\t<span class=\"price-discounted\">{formatCurrency(discountedTotal as USD /* FIXME(canonical-cleanup:toFixed): this cast bypasses the brand boundary; replace with toCents/toUSD at the API-response-transform layer. */)}</span>\r\n\t\t\t\t\t{#if feeCaption}\r\n\t\t\t\t\t\t<span class=\"price-fee\">{feeCaption}</span>\r\n\t\t\t\t\t{/if}\r\n\t\t\t\t{:else if isComingSoon}\r\n\t\t\t\t\t<!-- Coming soon: show price dimmed -->\r\n\t\t\t\t\t<span class=\"price-lg text-color-muted\">{priceDisplay}</span>\r\n\t\t\t\t{:else}\r\n\t\t\t\t\t<!-- Standard price -->\r\n\t\t\t\t\t<span class=\"price-lg text-color-primary\">{priceDisplay}</span>\r\n\t\t\t\t\t{#if feeCaption}\r\n\t\t\t\t\t\t<span class=\"price-fee\">{feeCaption}</span>\r\n\t\t\t\t\t{/if}\r\n\t\t\t\t{/if}\r\n\t\t\t</div>\r\n\r\n\t\t\t<!-- Coming soon / sales ended message -->\r\n\t\t\t{#if salesStartDisplay}\r\n\t\t\t\t<Text size=\"xs\" color=\"muted\" class=\"block mt-1.5\">\r\n\t\t\t\t\t{salesStartDisplay}\r\n\t\t\t\t</Text>\r\n\t\t\t{/if}\r\n\t\t</div>\r\n\r\n\t\t<!-- Quantity controls -->\r\n\t\t<div class=\"flex items-center quantity-selector\">\r\n\t\t\t{#if isSoldOut || isComingSoon || isSalesEnded}\r\n\t\t\t\t<!-- No controls for coming soon / sales ended -->\r\n\t\t\t{:else}\r\n\t\t\t\t<Button\r\n\t\t\t\t\tvariant=\"alternative\"\r\n\t\t\t\t\tsize=\"icon-lg\"\r\n\t\t\t\t\tonclick={decrement}\r\n\t\t\t\t\tdisabled={!canDecrement}\r\n\t\t\t\t\taria-label=\"{labels.decrease || 'Decrease'} {ticket.name} {labels.quantity || 'quantity'}\"\r\n\t\t\t\t>\r\n\t\t\t\t\t<Subtract size={16} />\r\n\t\t\t\t</Button>\r\n\r\n\t\t\t\t<span\r\n\t\t\t\t\tclass=\"qty-display\"\r\n\t\t\t\t\taria-live=\"polite\"\r\n\t\t\t\t\taria-label=\"{ticket.name} {labels.quantity || 'quantity'}: {quantity}\"\r\n\t\t\t\t>\r\n\t\t\t\t\t{quantity}\r\n\t\t\t\t</span>\r\n\r\n\t\t\t\t<Button\r\n\t\t\t\t\tvariant=\"alternative\"\r\n\t\t\t\t\tsize=\"icon-lg\"\r\n\t\t\t\t\tonclick={increment}\r\n\t\t\t\t\tdisabled={!canIncrement}\r\n\t\t\t\t\taria-label=\"{labels.increase || 'Increase'} {ticket.name} {labels.quantity || 'quantity'}\"\r\n\t\t\t\t>\r\n\t\t\t\t\t<Add size={16} />\r\n\t\t\t\t</Button>\r\n\t\t\t{/if}\r\n\t\t</div>\r\n\t</div>\r\n</article>\r\n\r\n<style>\r\n\t/* Card states using HSL CSS variables (matching TicketBlock.svelte) */\r\n\t.ticket-card {\r\n\t\tborder-color: hsl(var(--stroke-secondary, 220 13% 91%));\r\n\t\tbackground-color: hsl(var(--ts-card-bg, var(--bg-primary, 0 0% 100%)));\r\n\t}\r\n\r\n\t.ticket-card.revealed {\r\n\t\tborder-color: hsl(var(--accent-success) / 50%);\r\n\t\tbackground-color: hsl(var(--accent-success) / 8%);\r\n\t}\r\n\r\n\t.ticket-card.disabled-ticket {\r\n\t\topacity: 0.5;\r\n\t}\r\n\r\n\t/* Quantity selector */\r\n\t.quantity-selector {\r\n\t\tgap: 0.5rem;\r\n\t\tuser-select: none;\r\n\t\tuser-select: none;\r\n\t}\r\n\r\n\t.qty-display {\r\n\t\tmin-width: 2rem;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tjustify-content: center;\r\n\t\tfont-size: 1.125rem;\r\n\t\tfont-weight: 600;\r\n\t\tcolor: hsl(var(--text-primary, 222 47% 11%));\r\n\t\tuser-select: none;\r\n\t\tuser-select: none;\r\n\t}\r\n\r\n\t/* Discounted price green text */\r\n\t.price-discounted {\r\n\t\tfont-size: 0.875rem;\r\n\t\tline-height: 1.25rem;\r\n\t\tfont-weight: 600;\r\n\t\tcolor: hsl(var(--accent-success)); /* green-600 */\r\n\t}\r\n\r\n\t/* Donation input wrapper */\r\n\t.donation-input-wrapper {\r\n\t\tmin-width: 10rem;\r\n\t}\r\n\r\n .ticket-card {\r\n &:is([data-theme=\"dark\"], [data-theme=\"dark\"] *) {\r\n\t\tborder-color: hsl(var(--stroke-secondary, 215 19% 35%));\r\n\t\tbackground-color: hsl(var(--ts-card-bg, var(--bg-primary, 222 47% 11%)));\r\n\t }\r\n }\r\n\r\n .ticket-card.revealed {\r\n &:is([data-theme=\"dark\"], [data-theme=\"dark\"] *) {\r\n\t\tborder-color: hsl(var(--accent-success)); /* green-700 */\r\n\t\tbackground-color: hsl(var(--accent-success));\r\n\t }\r\n }\r\n\r\n .qty-display {\r\n &:is([data-theme=\"dark\"], [data-theme=\"dark\"] *) {\r\n\t\tcolor: hsl(var(--text-primary, 0 0% 100%));\r\n\t }\r\n }\r\n</style>","<!-- @style-escape: widget-intentional. -->\r\n<script lang=\"ts\">\r\n\timport { Calendar } from 'carbon-icons-svelte';\r\n\timport type { USD } from '@getmicdrop/svelte-components';\r\n\timport { Badge, Button, Card, Heading, Text, formatCurrency } from '@getmicdrop/svelte-components';\r\n\timport ScarcityBadge from '../../components/ScarcityBadge.svelte';\r\n\timport type { EventData, OrderTotals, CtaConfig, ScarcityLevel } from '$lib/public-calendar-flow/types';\r\n\timport {\r\n\t\tgetCtaConfig,\r\n\t\tgetPriceDisplay,\r\n\t\tgetScarcityLevel,\r\n\t\tgetScarcityText,\r\n\t\tformatBrowseDate,\r\n\t\tformatEventTime,\r\n\t\tDURATION\r\n\t} from '$lib/public-calendar-flow/defaults';\r\n\timport OrderSummary from './OrderSummary.svelte';\r\n\r\n\tinterface Props {\r\n\t\tevent: EventData;\r\n\t\torderTotals: OrderTotals;\r\n\t\thasSelectedTickets: boolean;\r\n\t\tonCheckout: () => void;\r\n\t\tpromoApplied?: boolean;\r\n\t\t\tlabels?: Record<string, string>;\r\n\t}\r\n\r\n\tlet { event, orderTotals, hasSelectedTickets, onCheckout, promoApplied = false, labels = {}, }: Props = $props();\r\n\r\n\tlet ctaConfig: CtaConfig = $derived(getCtaConfig(event));\r\n\tlet priceDisplay = $derived(getPriceDisplay(event));\r\n\tlet scarcityLevel: ScarcityLevel = $derived(\r\n\t\tgetScarcityLevel(event.totalTicketsRemaining, event.totalTicketsCapacity)\r\n\t);\r\n\tlet scarcityText = $derived(\r\n\t\tgetScarcityText(scarcityLevel, event.totalTicketsRemaining, 'event')\r\n\t);\r\n\tlet isFreeEvent = $derived(\r\n\t\tevent.tickets.filter((t) => t.status === 'on_sale' && !t.isHidden).every((t) => t.price === 0)\r\n\t);\r\n\r\n\tfunction scrollToTickets() {\r\n\t\tif (typeof document === 'undefined') return;\r\n\t\tconst section = document.getElementById('ticket-section');\r\n\t\tif (section) {\r\n\t\t\tsection.scrollIntoView({ behavior: 'smooth', block: 'start' });\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<!--\r\n\tBookingWidget: Airbnb-style sticky sidebar card.\r\n\tTransitions from \"informational\" to \"cart\" mode with no skeleton placeholders.\r\n\tPassword protection is handled at the widget/browse level, not on the event page.\r\n-->\r\n{#if event.status === 'on_sale' && hasSelectedTickets}\r\n\t<!--\r\n\t\tFILLED STATE: cap the card to the viewport so a long order summary\r\n\t\tcan't push the Checkout button below the fold. Only the ticket-line\r\n\t\tlist scrolls; the totals block and Checkout button stay pinned, so\r\n\t\tthe buyer always sees Subtotal / Fees / Tax / Total and what they're\r\n\t\tabout to click.\r\n\t-->\r\n\t<Card border padding={false} class=\"flex flex-col max-h-[calc(100vh-1.5rem)] rounded-xl shadow-lg overflow-hidden bg-surface-secondary\">\r\n\t\t<div\r\n\t\t\tclass=\"flex flex-col flex-1 min-h-0\"\r\n\t\t\tstyle=\"animation: widgetFadeIn {DURATION.normal}ms ease-out;\"\r\n\t\t>\r\n\t\t\t<!-- Scrollable: ticket-line items only -->\r\n\t\t\t<div class=\"p-5 pb-3 flex-1 overflow-y-auto min-h-0\">\r\n\t\t\t\t<OrderSummary {orderTotals} mode=\"lines\" {labels} />\r\n\t\t\t</div>\r\n\t\t\t<!-- Pinned: totals + Checkout button -->\r\n\t\t\t<div class=\"px-5 pt-3 pb-5 shrink-0 border-t border-default space-y-3\">\r\n\t\t\t\t<OrderSummary {orderTotals} mode=\"totals\" {labels} />\r\n\t\t\t\t<Button\r\n\t\t\t\t\tvariant=\"default\"\r\n\t\t\t\t\tsize=\"lg\"\r\n\t\t\t\t\tclass=\"w-full\"\r\n\t\t\t\t\tonclick={onCheckout}\r\n\t\t\t\t>\r\n\t\t\t\t\t{#if isFreeEvent}\r\n\t\t\t\t\t\t{event.isRegistrationEvent ? (labels.reserveASpot || 'Reserve a spot') : (labels.getTickets || 'Get tickets')} · Free\r\n\t\t\t\t\t{:else}\r\n\t\t\t\t\t\t{labels.checkout || 'Checkout'} · {formatCurrency(orderTotals.total as USD)}\r\n\t\t\t\t\t{/if}\r\n\t\t\t\t</Button>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</Card>\r\n{:else}\r\n<Card border padding={false} class=\"rounded-xl shadow-lg overflow-hidden bg-surface-secondary\">\r\n\t<div class=\"p-5\">\r\n\t\t{#if event.status === 'on_sale' && !ctaConfig.disabled}\r\n\t\t\t<!-- ON SALE: informational empty state (filled state handled in the sibling branch above) -->\r\n\t\t\t<div class=\"space-y-3\">\r\n\t\t\t\t<!-- Price display -->\r\n\t\t\t\t<div class=\"flex items-baseline gap-2\">\r\n\t\t\t\t\t{#if priceDisplay}\r\n\t\t\t\t\t\t<span class=\"price-lg text-color-primary text-xl\">\r\n\t\t\t\t\t\t\t{priceDisplay}\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t{:else if isFreeEvent}\r\n\t\t\t\t\t\t<span class=\"price-lg text-color-primary text-xl\">\r\n\t\t\t\t\t\t\tFree\r\n\t\t\t\t\t\t</span>\r\n\t\t\t\t\t{/if}\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<!-- Event date/time summary (compact) -->\r\n\t\t\t\t<div class=\"flex items-center gap-2\">\r\n\t\t\t\t\t<Calendar size={16} class=\"shrink-0 icon-muted\" />\r\n\t\t\t\t\t{#if event.displayStartTime !== false}\r\n\t\t\t\t\t\t<span class=\"body-sm\">{formatBrowseDate(event.startDateTime, event.timezone)} · {formatEventTime(event.startDateTime, event.timezone)}</span>\r\n\t\t\t\t\t{:else}\r\n\t\t\t\t\t\t<span class=\"body-sm\">{formatBrowseDate(event.startDateTime, event.timezone)}</span>\r\n\t\t\t\t\t{/if}\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<!-- Scarcity badge -->\r\n\t\t\t\t{#if scarcityText}\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<ScarcityBadge\r\n\t\t\t\t\t\t\tremaining={event.totalTicketsRemaining}\r\n\t\t\t\t\t\t\ttotal={event.totalTicketsCapacity}\r\n\t\t\t\t\t\t\tcontext=\"event\"\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t{/if}\r\n\r\n\t\t\t\t<!-- Promo applied badge -->\r\n\t\t\t\t{#if promoApplied}\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<Badge variant=\"success\">{labels.promoApplied || 'Promo applied'}</Badge>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t{/if}\r\n\r\n\t\t\t\t<!-- Divider -->\r\n\t\t\t\t<div class=\"divider\"></div>\r\n\r\n\t\t\t\t<!-- CTA: scroll to ticket section. Label + disabled state come from\r\n\t\t\t\t ctaConfig so this widget agrees with MobileCta in all states\r\n\t\t\t\t (incl. on_sale events whose startDateTime is in the past). -->\r\n\t\t\t\t<Button\r\n\t\t\t\t\tvariant=\"default\"\r\n\t\t\t\t\tsize=\"lg\"\r\n\t\t\t\t\tclass=\"w-full\"\r\n\t\t\t\t\tonclick={scrollToTickets}\r\n\t\t\t\t>\r\n\t\t\t\t\t{ctaConfig.text}\r\n\t\t\t\t</Button>\r\n\t\t\t</div>\r\n\t\t{:else}\r\n\t\t\t<!-- DISABLED STATES: cancelled, past, sales_ended, coming_soon, sold_out,\r\n\t\t\t plus on_sale events that ctaConfig has computed as disabled\r\n\t\t\t (e.g. all tickets soldOut, sales window closed). One branch,\r\n\t\t\t one source of truth — ctaConfig.text / .disabled / .reason. -->\r\n\t\t\t<div class=\"space-y-3\">\r\n\t\t\t\t<Heading weight=\"semibold\">\r\n\t\t\t\t\t{ctaConfig.text}\r\n\t\t\t\t</Heading>\r\n\t\t\t\t{#if ctaConfig.reason}\r\n\t\t\t\t\t<Text size=\"sm\" color=\"secondary\" class=\"block\">\r\n\t\t\t\t\t\t{ctaConfig.reason}\r\n\t\t\t\t\t</Text>\r\n\t\t\t\t{/if}\r\n\t\t\t\t<Button\r\n\t\t\t\t\tvariant=\"default\"\r\n\t\t\t\t\tsize=\"lg\"\r\n\t\t\t\t\tclass=\"w-full\"\r\n\t\t\t\t\tdisabled={true}\r\n\t\t\t\t>\r\n\t\t\t\t\t{ctaConfig.text}\r\n\t\t\t\t</Button>\r\n\t\t\t</div>\r\n\t\t{/if}\r\n\t</div>\r\n</Card>\r\n{/if}\r\n\r\n<style>\r\n\t@keyframes widgetFadeIn {\r\n\t\tfrom {\r\n\t\t\topacity: 0;\r\n\t\t\ttransform: translateY(-4px);\r\n\t\t}\r\n\t\tto {\r\n\t\t\topacity: 1;\r\n\t\t\ttransform: translateY(0);\r\n\t\t}\r\n\t}\r\n\r\n\t/*\r\n\t * The filled-state card uses max-h-[calc(100vh-1.5rem)] inline (see Card\r\n\t * class above) to cap height to the viewport so the Checkout button\r\n\t * never falls below the fold when many ticket types are selected.\r\n\t * 1.5rem reserves a bottom gap; sticky parent is top-0 so no top offset.\r\n\t */\r\n</style>","<script lang=\"ts\">\r\n\timport { Section, Text } from '@getmicdrop/svelte-components';\r\n\r\n\tinterface Props {\r\n\t\tdescription: string;\r\n\t\t\tlabels?: Record<string, string>;\r\n\t}\r\n\r\n\tlet { description, labels = {}, }: Props = $props();\r\n\r\n\tlet paragraphs = $derived(\r\n\t\tdescription.split('\\n\\n').filter((p) => p.trim().length > 0)\r\n\t);\r\n</script>\r\n\r\n<Section title=\"About\" titleSize=\"lg\" gap=\"3\">\r\n\t<div class=\"space-y-4\">\r\n\t\t{#each paragraphs as paragraph}\r\n\t\t\t<Text size=\"sm\" color=\"secondary\" leading=\"relaxed\" class=\"block\">\r\n\t\t\t\t{paragraph}\r\n\t\t\t</Text>\r\n\t\t{/each}\r\n\t</div>\r\n</Section>\r\n","<script lang=\"ts\">\r\n\timport { Avatar, Card, Heading, Section } from '@getmicdrop/svelte-components';\r\n\timport type { PerformerData } from '$lib/public-calendar-flow/types';\r\n\r\n\tinterface Props {\r\n\t\tperformers: PerformerData[];\r\n\t\t\tlabels?: Record<string, string>;\r\n\t}\r\n\r\n\tlet { performers, labels = {}, }: Props = $props();\r\n</script>\r\n\r\n{#if performers.length > 0}\r\n\t<Section title=\"Performers\" titleSize=\"lg\" gap=\"4\">\r\n\t\t<div class=\"grid grid-cols-1 sm:grid-cols-2 gap-3\">\r\n\t\t\t{#each performers as performer (performer.id)}\r\n\t\t\t\t<Card padding={false} class=\"flex items-center gap-3 p-3 bg-surface-secondary shadow-none\">\r\n\t\t\t\t\t<Avatar\r\n\t\t\t\t\t\tsrc={performer.profileImage || ''}\r\n\t\t\t\t\t\talt={performer.displayName}\r\n\t\t\t\t\t\tinitials={performer.displayName.charAt(0)}\r\n\t\t\t\t\t\tsize=\"lg\"\r\n\t\t\t\t\t\tclass=\"shrink-0 rounded-lg\"\r\n\t\t\t\t\t/>\r\n\t\t\t\t\t<div class=\"min-w-0\">\r\n\t\t\t\t\t\t<Heading level={4} size=\"sm\" weight=\"semibold\" class=\"truncate\">\r\n\t\t\t\t\t\t\t{performer.displayName}\r\n\t\t\t\t\t\t</Heading>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</Card>\r\n\t\t\t{/each}\r\n\t\t</div>\r\n\t</Section>\r\n{/if}\r\n\r\n","<script lang=\"ts\">\r\n\timport { Accordion, AccordionItem, Section } from '@getmicdrop/svelte-components';\r\n\timport type { FAQItem } from '$lib/public-calendar-flow/types';\r\n\r\n\tinterface Props {\r\n\t\tfaqs: FAQItem[];\r\n\t\t\tlabels?: Record<string, string>;\r\n\t}\r\n\r\n\tlet { faqs, labels = {}, }: Props = $props();\r\n</script>\r\n\r\n{#if faqs.length > 0}\r\n\t<Section title=\"Frequently asked questions\" titleSize=\"lg\" gap=\"3\">\r\n\t\t<Accordion flush variant=\"ghost\">\r\n\t\t\t{#each faqs as faq (faq.question)}\r\n\t\t\t\t<AccordionItem>\r\n\t\t\t\t\t{#snippet header()}{faq.question}{/snippet}\r\n\t\t\t\t\t{faq.answer}\r\n\t\t\t\t</AccordionItem>\r\n\t\t\t{/each}\r\n\t\t</Accordion>\r\n\t</Section>\r\n{/if}\r\n","<!-- @style-escape: widget-intentional. -->\r\n<script lang=\"ts\">\r\n\timport { Button, Text, formatCurrency, triggerHaptic } from '@getmicdrop/svelte-components';\r\n\timport type { USD } from '@getmicdrop/svelte-components';\r\n\timport type { EventData, OrderTotals, CtaConfig } from '$lib/public-calendar-flow/types';\r\n\timport { getCtaConfig, getPriceDisplay } from '$lib/public-calendar-flow/defaults';\r\n\timport OrderSummary from './OrderSummary.svelte';\r\n\r\n\tinterface Props {\r\n\t\tevent: EventData;\r\n\t\torderTotals: OrderTotals;\r\n\t\thasSelectedTickets: boolean;\r\n\t\tonCheckout: () => void;\r\n\t\tlabels?: Record<string, string>;\r\n\t}\r\n\r\n\tlet { event, orderTotals, hasSelectedTickets, onCheckout, labels = {} }: Props = $props();\r\n\r\n\tlet ctaConfig: CtaConfig = $derived(getCtaConfig(event));\r\n\tlet priceDisplay = $derived(getPriceDisplay(event));\r\n\tlet totalTicketCount = $derived(\r\n\t\torderTotals.lines.reduce((sum, l) => sum + l.quantity, 0)\r\n\t);\r\n\tlet isFreeEvent = $derived(\r\n\t\tevent.tickets.filter((t) => t.status === 'on_sale' && !t.isHidden).every((t) => t.price === 0)\r\n\t);\r\n\r\n\t// State machine: 'peek' = collapsed bar, 'open' = full drawer. ONE\r\n\t// physical element resizes between the two — no second flyout.\r\n\tlet mode = $state<'peek' | 'open'>('peek');\r\n\r\n\t// Fire a medium-strength haptic tick on every snap transition. Android\r\n\t// users feel it; iOS silently no-ops. Skip the first effect run so we\r\n\t// don't pulse on mount.\r\n\tlet prevModeForHaptic: 'peek' | 'open' | null = $state(null);\r\n\t$effect(() => {\r\n\t\tif (prevModeForHaptic !== null && prevModeForHaptic !== mode) {\r\n\t\t\ttriggerHaptic('medium');\r\n\t\t}\r\n\t\tprevModeForHaptic = mode;\r\n\t});\r\n\r\n\t// Defensive: if tickets get removed while the drawer is open, snap\r\n\t// closed. Otherwise the sheet stays at stale openHeight with no body\r\n\t// to render, showing a white block over the page.\r\n\t$effect(() => {\r\n\t\tif (!hasSelectedTickets) mode = 'peek';\r\n\t});\r\n\r\n\tconst PEEK_H = 80;\r\n\tlet bodyEl = $state<HTMLDivElement | null>(null);\r\n\tlet viewportH = $state(800);\r\n\t$effect(() => {\r\n\t\tif (typeof window === 'undefined') return;\r\n\t\tconst sync = () => (viewportH = window.innerHeight);\r\n\t\tsync();\r\n\t\twindow.addEventListener('resize', sync, { passive: true });\r\n\t\treturn () => window.removeEventListener('resize', sync);\r\n\t});\r\n\r\n\t// Measure intrinsic content height — drawer snaps to fit-content, no whitespace.\r\n\tlet openHeight = $state(0);\r\n\t$effect(() => {\r\n\t\tif (!bodyEl || typeof ResizeObserver === 'undefined') return;\r\n\t\tfunction measure() {\r\n\t\t\tif (!bodyEl) return;\r\n\t\t\t// bodyEl has flex:1 1 auto so its scrollHeight equals its stretched\r\n\t\t\t// box height (= what we're trying to compute). Feedback loop. Use\r\n\t\t\t// firstElementChild's offsetHeight — OrderSummary's intrinsic size.\r\n\t\t\tconst inner = bodyEl.firstElementChild as HTMLElement | null;\r\n\t\t\tconst innerH = inner?.offsetHeight ?? 0;\r\n\t\t\tconst total = PEEK_H + innerH + 76 + 8;\r\n\t\t\topenHeight = Math.min(total, Math.round(viewportH * 0.9));\r\n\t\t}\r\n\t\tmeasure();\r\n\t\tconst ro = new ResizeObserver(measure);\r\n\t\tconst inner = bodyEl.firstElementChild as HTMLElement | null;\r\n\t\tif (inner) ro.observe(inner);\r\n\t\treturn () => ro.disconnect();\r\n\t});\r\n\r\n\tfunction scrollToTickets() {\r\n\t\tif (typeof document === 'undefined') return;\r\n\t\tconst sections = document.querySelectorAll<HTMLElement>('#ticket-section');\r\n\t\tfor (const section of sections) {\r\n\t\t\tif (section.offsetParent !== null) {\r\n\t\t\t\tsection.scrollIntoView({ behavior: 'smooth', block: 'start' });\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tfunction handleBarClick() {\r\n\t\tif (ctaConfig.disabled) return;\r\n\t\tif (!hasSelectedTickets) {\r\n\t\t\tscrollToTickets();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Toggle: peek → open, open → peek. Tapping the grab area / bar at\r\n\t\t// either state moves to the other state.\r\n\t\tmode = mode === 'peek' ? 'open' : 'peek';\r\n\t}\r\n\r\n\tfunction handleDrawerCheckout() {\r\n\t\tmode = 'peek';\r\n\t\tonCheckout();\r\n\t}\r\n\r\n\tfunction closeDrawer() {\r\n\t\tmode = 'peek';\r\n\t}\r\n\r\n\tfunction ticketsLabel(n: number): string {\r\n\t\treturn n === 1 ? (labels.ticket || 'ticket') : (labels.tickets || 'tickets');\r\n\t}\r\n\r\n\t// === Drag mechanics — vaul-inspired =====================================\r\n\t//\r\n\t// Pointer Events instead of touch-only (mouse + touch + stylus, one path).\r\n\t// Track positions over a short rolling window to compute velocity for\r\n\t// \"flick\" detection. Resistance (rubber-band) beyond bounds. Body\r\n\t// scroll-vs-drag arbitration: at body scrollTop>0, drag is just body\r\n\t// scroll; only when at top do downward drags close the drawer.\r\n\tlet dragStartY = 0;\r\n\tlet dragStartHeight = 0;\r\n\tlet dragDeltaY = $state(0);\r\n\tlet isDragging = $state(false);\r\n\tlet pointerId = $state<number | null>(null);\r\n\tlet dragTarget = $state<HTMLElement | null>(null);\r\n\r\n\t// Rolling history for velocity: [{y, t}, ...]. Keep last ~5 samples.\r\n\tlet history: { y: number; t: number }[] = [];\r\n\r\n\tfunction recordSample(y: number) {\r\n\t\tconst t = performance.now();\r\n\t\thistory.push({ y, t });\r\n\t\t// Keep ~120ms of history — enough to compute a stable velocity\r\n\t\t// without overweighting old samples.\r\n\t\twhile (history.length > 0 && t - history[0].t > 120) history.shift();\r\n\t}\r\n\r\n\tfunction computeVelocity(): number {\r\n\t\tif (history.length < 2) return 0;\r\n\t\tconst first = history[0];\r\n\t\tconst last = history[history.length - 1];\r\n\t\tconst dt = last.t - first.t;\r\n\t\tif (dt <= 0) return 0;\r\n\t\treturn (last.y - first.y) / dt; // px/ms — positive = downward\r\n\t}\r\n\r\n\tfunction handlePointerDown(e: PointerEvent) {\r\n\t\t// Drag is disabled entirely when there's nothing to expand to —\r\n\t\t// otherwise the user can pull the sheet up against undefined open\r\n\t\t// state and the layout breaks.\r\n\t\tif (!hasSelectedTickets) return;\r\n\t\t// Only primary pointer; don't capture if click landed on a button.\r\n\t\tif (e.button !== 0 && e.pointerType === 'mouse') return;\r\n\t\tconst t = e.target as HTMLElement | null;\r\n\t\tif (t?.closest('button, a, input, select, textarea, [role=\"button\"]')) return;\r\n\r\n\t\t// Body scroll arbitration: if user starts the drag inside the\r\n\t\t// drawer body AND the body is scrolled past 0, this gesture is\r\n\t\t// body-scroll, not drawer-drag. Let it pass through.\r\n\t\tconst body = bodyEl;\r\n\t\tif (mode === 'open' && body && body.contains(t) && body.scrollTop > 0) return;\r\n\r\n\t\tdragStartY = e.clientY;\r\n\t\tdragStartHeight = mode === 'open' ? openHeight : PEEK_H;\r\n\t\tdragDeltaY = 0;\r\n\t\thistory = [];\r\n\t\trecordSample(e.clientY);\r\n\t\tisDragging = true;\r\n\t\tpointerId = e.pointerId;\r\n\t\tdragTarget = e.currentTarget as HTMLElement;\r\n\t\tdragTarget.setPointerCapture(e.pointerId);\r\n\t}\r\n\r\n\tfunction handlePointerMove(e: PointerEvent) {\r\n\t\tif (!isDragging || e.pointerId !== pointerId) return;\r\n\t\tconst dy = e.clientY - dragStartY;\r\n\t\trecordSample(e.clientY);\r\n\t\t// Rubber-band with a HARD CAP so the sheet can never exceed a tiny\r\n\t\t// fraction past the bounds. Without the cap, even a small multiplier\r\n\t\t// lets enthusiastic drags reach absurd heights — which then \"slowly\r\n\t\t// retracts\" on release looks broken.\r\n\t\tconst RUBBER_RESISTANCE = 0.15;\r\n\t\tconst MAX_OVERSHOOT = 24;\r\n\t\tconst rawHeight = dragStartHeight - dy;\r\n\t\tlet finalHeight: number;\r\n\t\tif (rawHeight > openHeight) {\r\n\t\t\tconst overshoot = Math.min((rawHeight - openHeight) * RUBBER_RESISTANCE, MAX_OVERSHOOT);\r\n\t\t\tfinalHeight = openHeight + overshoot;\r\n\t\t} else if (rawHeight < PEEK_H) {\r\n\t\t\tconst overshoot = Math.min((PEEK_H - rawHeight) * RUBBER_RESISTANCE, MAX_OVERSHOOT);\r\n\t\t\tfinalHeight = PEEK_H - overshoot;\r\n\t\t} else {\r\n\t\t\tfinalHeight = rawHeight;\r\n\t\t}\r\n\t\tdragDeltaY = dragStartHeight - finalHeight;\r\n\t}\r\n\r\n\tfunction handlePointerUp(e: PointerEvent) {\r\n\t\tif (!isDragging || e.pointerId !== pointerId) return;\r\n\t\tconst v = computeVelocity(); // px/ms, downward positive\r\n\t\tconst dy = dragDeltaY;\r\n\r\n\t\t// Snap decision combines distance + velocity. Strong flick beats\r\n\t\t// distance threshold; slow drag needs to clear midpoint.\r\n\t\tconst FLICK_VELOCITY = 0.5; // px/ms — calibrated to typical \"flick\"\r\n\t\tconst POSITION_THRESHOLD = (openHeight - PEEK_H) / 2;\r\n\r\n\t\tif (mode === 'open') {\r\n\t\t\t// Started open. Snap closed if dragged down enough OR flicked down.\r\n\t\t\tif (dy > POSITION_THRESHOLD || v > FLICK_VELOCITY) {\r\n\t\t\t\tmode = 'peek';\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// Started peek. Snap open if dragged up enough OR flicked up.\r\n\t\t\tconst upward = -dy;\r\n\t\t\tif (upward > 40 || v < -FLICK_VELOCITY) {\r\n\t\t\t\tmode = 'open';\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tisDragging = false;\r\n\t\tdragDeltaY = 0;\r\n\t\thistory = [];\r\n\t\tdragTarget?.releasePointerCapture(e.pointerId);\r\n\t\tdragTarget = null;\r\n\t\tpointerId = null;\r\n\t}\r\n\r\n\tfunction handlePointerCancel(e: PointerEvent) {\r\n\t\tisDragging = false;\r\n\t\tdragDeltaY = 0;\r\n\t\thistory = [];\r\n\t\tif (dragTarget && pointerId !== null) {\r\n\t\t\ttry {\r\n\t\t\t\tdragTarget.releasePointerCapture(pointerId);\r\n\t\t\t} catch {\r\n\t\t\t\t// pointer already released\r\n\t\t\t}\r\n\t\t}\r\n\t\tdragTarget = null;\r\n\t\tpointerId = null;\r\n\t}\r\n\r\n\t// Live sheet height: while dragging, follow the finger; on release,\r\n\t// snap to mode via CSS transition.\r\n\tlet liveHeight = $derived.by(() => {\r\n\t\tif (!hasSelectedTickets) return PEEK_H;\r\n\t\tif (isDragging) return Math.max(PEEK_H * 0.5, dragStartHeight - dragDeltaY);\r\n\t\treturn mode === 'open' ? openHeight : PEEK_H;\r\n\t});\r\n\r\n\t// Body reveal progress 0→1 as sheet grows peek→open. Used to fade the\r\n\t// order summary in during drag, not just on release.\r\n\tlet revealProgress = $derived.by(() => {\r\n\t\tconst range = Math.max(1, openHeight - PEEK_H);\r\n\t\treturn Math.min(1, Math.max(0, (liveHeight - PEEK_H) / range));\r\n\t});\r\n</script>\r\n\r\n<!-- Backdrop scrim. Tap-to-close. -->\r\n{#if hasSelectedTickets}\r\n\t<!-- svelte-ignore a11y_click_events_have_key_events -->\r\n\t<!-- svelte-ignore a11y_no_static_element_interactions -->\r\n\t<div\r\n\t\tclass=\"md:hidden fixed inset-0 z-40 transition-all duration-300 ease-out\"\r\n\t\tclass:scrim-open={mode === 'open'}\r\n\t\tclass:scrim-closed={mode === 'peek'}\r\n\t\tonclick={closeDrawer}\r\n\t\taria-hidden={mode !== 'open'}\r\n\t></div>\r\n{/if}\r\n\r\n<!-- Unified sheet. -->\r\n<!-- @tokens-px-escape: `env(safe-area-inset-bottom, 0px)` fallback requires literal px per CSS spec; iOS safe-area can't be expressed as a token. -->\r\n<!-- @modal-escape: bespoke draggable bottom-sheet (pointer-drag peek/open gesture, live height) — SC Modal cannot express a drag-to-dismiss sheet -->\r\n<!-- svelte-ignore a11y_click_events_have_key_events -->\r\n<!-- svelte-ignore a11y_no_static_element_interactions -->\r\n<div\r\n\tclass=\"peek-sheet md:hidden fixed bottom-0 left-0 right-0 z-50 bg-bg-primary\"\r\n\tclass:peek-sheet--dragging={isDragging}\r\n\tclass:peek-sheet--open={mode === 'open'}\r\n\tstyle:height=\"{liveHeight}px\"\r\n\tstyle=\"padding-bottom: env(safe-area-inset-bottom, 0px);\"\r\n\trole=\"dialog\"\r\n\ttabindex=\"-1\"\r\n\taria-modal={mode === 'open'}\r\n\taria-label={labels.orderSummary || 'Order summary'}\r\n\tonpointerdown={handlePointerDown}\r\n\tonpointermove={handlePointerMove}\r\n\tonpointerup={handlePointerUp}\r\n\tonpointercancel={handlePointerCancel}\r\n>\r\n\t<!-- Top region — tap-to-open + drag handle. Fixed PEEK_H tall so the\r\n\t content row's vertical position is identical regardless of whether\r\n\t the grab handle is present. Grab handle is absolute-positioned so\r\n\t it doesn't push the row down. -->\r\n\t<div\r\n\t\tclass=\"peek-sheet__top\"\r\n\t\tonclick={hasSelectedTickets ? handleBarClick : undefined}\r\n\t>\r\n\t\t{#if hasSelectedTickets}\r\n\t\t\t<div class=\"peek-sheet__grab\" aria-hidden=\"true\">\r\n\t\t\t\t<div class=\"peek-sheet__pill\"></div>\r\n\t\t\t</div>\r\n\t\t{/if}\r\n\r\n\t\t<div class=\"peek-sheet__row flex items-center justify-between gap-3 px-4\">\r\n\t\t\t<div class=\"flex-1 min-w-0\">\r\n\t\t\t\t{#if hasSelectedTickets}\r\n\t\t\t\t\t<Text size=\"sm\" class=\"font-semibold tabular-nums\">\r\n\t\t\t\t\t\t{totalTicketCount} {ticketsLabel(totalTicketCount)} ·\r\n\t\t\t\t\t\t{#if isFreeEvent}\r\n\t\t\t\t\t\t\t{labels.free || 'Free'}\r\n\t\t\t\t\t\t{:else}\r\n\t\t\t\t\t\t\t{formatCurrency(orderTotals.total as USD)}\r\n\t\t\t\t\t\t{/if}\r\n\t\t\t\t\t</Text>\r\n\t\t\t\t{:else if priceDisplay && !ctaConfig.disabled}\r\n\t\t\t\t\t<Text size=\"sm\" class=\"font-semibold block\">\r\n\t\t\t\t\t\t{priceDisplay}\r\n\t\t\t\t\t</Text>\r\n\t\t\t\t{:else if ctaConfig.reason}\r\n\t\t\t\t\t<Text size=\"xs\" color=\"muted\" class=\"block\">\r\n\t\t\t\t\t\t{ctaConfig.reason}\r\n\t\t\t\t\t</Text>\r\n\t\t\t\t{/if}\r\n\t\t\t</div>\r\n\r\n\t\t\t{#if mode === 'peek'}\r\n\t\t\t\t<Button\r\n\t\t\t\t\tvariant=\"default\"\r\n\t\t\t\t\tsize=\"lg\"\r\n\t\t\t\t\tdisabled={ctaConfig.disabled}\r\n\t\t\t\t\tonclick={(e) => {\r\n\t\t\t\t\t\te.stopPropagation();\r\n\t\t\t\t\t\tif (ctaConfig.disabled) return;\r\n\t\t\t\t\t\tif (hasSelectedTickets) {\r\n\t\t\t\t\t\t\tonCheckout();\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tscrollToTickets();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}}\r\n\t\t\t\t\tclass=\"shrink-0 min-w-32\"\r\n\t\t\t\t>\r\n\t\t\t\t\t{#if hasSelectedTickets}\r\n\t\t\t\t\t\t{labels.checkout || 'Checkout'}\r\n\t\t\t\t\t{:else}\r\n\t\t\t\t\t\t{ctaConfig.text}\r\n\t\t\t\t\t{/if}\r\n\t\t\t\t</Button>\r\n\t\t\t{/if}\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t{#if hasSelectedTickets}\r\n\t\t<div\r\n\t\t\tbind:this={bodyEl}\r\n\t\t\tclass=\"peek-sheet__body\"\r\n\t\t\tstyle:opacity={revealProgress}\r\n\t\t>\r\n\t\t\t<OrderSummary {orderTotals} {labels} />\r\n\t\t</div>\r\n\r\n\t\t{#if mode === 'open'}\r\n\t\t\t<div class=\"peek-sheet__actions\">\r\n\t\t\t\t<Button\r\n\t\t\t\t\tvariant=\"default\"\r\n\t\t\t\t\tsize=\"lg\"\r\n\t\t\t\t\tclass=\"w-full\"\r\n\t\t\t\t\tdisabled={ctaConfig.disabled}\r\n\t\t\t\t\tonclick={handleDrawerCheckout}\r\n\t\t\t\t>\r\n\t\t\t\t\t{#if isFreeEvent}\r\n\t\t\t\t\t\t{event.isRegistrationEvent\r\n\t\t\t\t\t\t\t? (labels.reserveASpot || 'Reserve a spot')\r\n\t\t\t\t\t\t\t: (labels.getTickets || 'Get tickets')}\r\n\t\t\t\t\t{:else}\r\n\t\t\t\t\t\t{labels.checkout || 'Checkout'} · {formatCurrency(orderTotals.total as USD)}\r\n\t\t\t\t\t{/if}\r\n\t\t\t\t</Button>\r\n\t\t\t</div>\r\n\t\t{/if}\r\n\t{/if}\r\n</div>\r\n\r\n<style>\r\n\t.peek-sheet {\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\toverflow: hidden;\r\n\t\t/* iOS-spec cubic-bezier from Apple's UIView spring-like easing. */\r\n\t\ttransition: height 350ms cubic-bezier(0.32, 0.72, 0, 1);\r\n\t\twill-change: height;\r\n\t\tbox-shadow:\r\n\t\t\t0 -8px 24px color-mix(in srgb, hsl(var(--overlay-bg)) 8%, transparent),\r\n\t\t\t0 -2px 6px color-mix(in srgb, hsl(var(--overlay-bg)) 6%, transparent);\r\n\t\t/* touch-action: pan-y on the sheet root lets pointer events fire for\r\n\t\t * vertical drag while still allowing native scroll inside .peek-sheet__body\r\n\t\t * which has its own touch-action setting. */\r\n\t\ttouch-action: pan-y;\r\n\t}\r\n\t.peek-sheet--open {\r\n\t\tborder-top-left-radius: 24px;\r\n\t\tborder-top-right-radius: 24px;\r\n\t\tbox-shadow:\r\n\t\t\t0 -8px 32px color-mix(in srgb, hsl(var(--overlay-bg)) 12%, transparent),\r\n\t\t\t0 -2px 8px color-mix(in srgb, hsl(var(--overlay-bg)) 8%, transparent);\r\n\t}\r\n\t.peek-sheet--dragging {\r\n\t\ttransition: none;\r\n\t}\r\n\r\n\t.peek-sheet__top {\r\n\t\tposition: relative;\r\n\t\tflex-shrink: 0;\r\n\t\theight: 80px; /* matches PEEK_H — bar content vertical position\r\n\t\t * never shifts based on grab-handle presence. */\r\n\t\t/* Grab area: forbid all default browser gestures so pointer events\r\n\t\t * arrive cleanly. iOS specifically requires `none` here or it tries\r\n\t\t * to consume the drag for page-scroll. */\r\n\t\ttouch-action: none;\r\n\t\tuser-select: none;\r\n\t\t-webkit-user-select: none;\r\n\t}\r\n\r\n\t.peek-sheet__row {\r\n\t\theight: 100%;\r\n\t}\r\n\r\n\t/* Grab handle absolute-positioned at the top center so it never shifts\r\n\t * the row content vertically. Only renders when hasSelectedTickets. */\r\n\t.peek-sheet__grab {\r\n\t\tposition: absolute;\r\n\t\ttop: 8px;\r\n\t\tleft: 0;\r\n\t\tright: 0;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\tpointer-events: none;\r\n\t}\r\n\t.peek-sheet__pill {\r\n\t\twidth: 40px;\r\n\t\theight: 4px;\r\n\t\tborder-radius: 9999px;\r\n\t\tbackground-color: color-mix(in srgb, hsl(var(--text-tertiary)) 30%, transparent);\r\n\t}\r\n\r\n\t.peek-sheet__body {\r\n\t\tflex: 1 1 auto;\r\n\t\tmin-height: 0;\r\n\t\toverflow-y: auto;\r\n\t\toverscroll-behavior: contain;\r\n\t\tpadding: 0 16px 8px;\r\n\t\t/* Body opacity is driven from JS (revealProgress) so it tracks the\r\n\t\t * sheet height during drag instead of only fading in on release.\r\n\t\t * Body owns its own pan-y so internal touch-scroll works without\r\n\t\t * interfering with the sheet's drag handler. */\r\n\t\ttouch-action: pan-y;\r\n\t}\r\n\t/* Smooth fade when not actively dragging (release/tap-open animations). */\r\n\t.peek-sheet:not(.peek-sheet--dragging) .peek-sheet__body {\r\n\t\ttransition: opacity 250ms cubic-bezier(0.32, 0.72, 0, 1);\r\n\t}\r\n\r\n\t.peek-sheet__actions {\r\n\t\tflex-shrink: 0;\r\n\t\tpadding: 12px 16px 16px;\r\n\t\tborder-top: 1px solid;\r\n\t\tborder-color: color-mix(in srgb, var(--color-stroke-secondary) 50%, transparent);\r\n\t}\r\n\r\n\t.scrim-closed {\r\n\t\topacity: 0;\r\n\t\tpointer-events: none;\r\n\t\tbackground-color: transparent;\r\n\t\tbackdrop-filter: none;\r\n\t}\r\n\t.scrim-open {\r\n\t\topacity: 1;\r\n\t\tpointer-events: auto;\r\n\t\tbackground-color: color-mix(in srgb, hsl(var(--overlay-bg)) 35%, transparent);\r\n\t\tbackdrop-filter: blur(8px);\r\n\t\t-webkit-backdrop-filter: blur(8px);\r\n\t}\r\n</style>","<!-- @style-escape: widget-intentional. -->\r\n<script lang=\"ts\">\r\n\timport { Input, Button } from '@getmicdrop/svelte-components';\r\n\timport type { PromoCodeState } from '$lib/public-calendar-flow/types';\r\n\timport { DURATION } from '$lib/public-calendar-flow/defaults';\r\n\r\n\tinterface Props {\r\n\t\tpromoState: PromoCodeState;\r\n\t\tonApply: (code: string) => void;\r\n\t\tonRemove: () => void;\r\n\t\t\tlabels?: Record<string, string>;\r\n\t}\r\n\r\n\tlet { promoState, onApply, onRemove, labels = {}, }: Props = $props();\r\n\r\n\tlet isExpanded = $state(false);\r\n\tlet inputValue = $state('');\r\n\r\n\tfunction handleApply() {\r\n\t\tconst trimmed = inputValue.trim();\r\n\t\tif (!trimmed) return;\r\n\t\tonApply(trimmed);\r\n\t}\r\n\r\n\tfunction handleRemove() {\r\n\t\tinputValue = '';\r\n\t\tonRemove();\r\n\t}\r\n\r\n\tfunction handleKeydown(e: KeyboardEvent) {\r\n\t\tif (e.key === 'Enter') {\r\n\t\t\te.preventDefault();\r\n\t\t\thandleApply();\r\n\t\t}\r\n\t}\r\n\r\n\t// Auto-expand when promo is applied (e.g. on restore)\r\n\tlet shouldExpand = $derived(promoState.isApplied || isExpanded);\r\n</script>\r\n\r\n<div class=\"promo-section\" role=\"group\" aria-labelledby=\"promo-label\">\r\n\t<span id=\"promo-label\" class=\"sr-only\">Promo code entry</span>\r\n\t{#if !shouldExpand}\r\n\t\t<Button variant=\"link\" onclick={() => (isExpanded = true)}>\r\n\t\t\t{labels.havePromoCode || 'Have a promo code?'}\r\n\t\t</Button>\r\n\t{:else}\r\n\t\t<div\r\n\t\t\tclass=\"space-y-2\"\r\n\t\t\tstyle=\"animation: promoSlideIn {DURATION.normal}ms ease-out;\"\r\n\t\t>\r\n\t\t\t<!-- svelte-ignore a11y_no_static_element_interactions -->\r\n\t\t\t<div class=\"promo-input-wrapper\" onkeydown={handleKeydown}>\r\n\t\t\t\t<div class=\"flex-1\">\r\n\t\t\t\t\t<Input\r\n\t\t\t\t\t\tlabel={labels.promoCode || 'Promo code'}\r\n\t\t\t\t\t\tplaceholder={labels.enterCode || 'Enter code'}\r\n\t\t\t\t\t\tsize=\"md\"\r\n\t\t\t\t\t\ttype=\"text\"\r\n\t\t\t\t\t\tbind:value={inputValue}\r\n\t\t\t\t\t\tdisabled={promoState.isApplied || promoState.isValidating}\r\n\t\t\t\t\t\terrorText={promoState.error || ''}\r\n\t\t\t\t\t\tcolor={promoState.error ? 'red' : 'base'}\r\n\t\t\t\t\t/>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t{#if promoState.isApplied}\r\n\t\t\t\t\t<Button variant=\"outline\" onclick={handleRemove} class=\"h-10 self-start mt-5\" aria-label={labels.removePromoCode || 'Remove promo code'}>\r\n\t\t\t\t\t\t{labels.remove || 'Remove'}\r\n\t\t\t\t\t</Button>\r\n\t\t\t\t{:else}\r\n\t\t\t\t\t<Button\r\n\t\t\t\t\t\tonclick={handleApply}\r\n\t\t\t\t\t\tdisabled={promoState.isValidating || !inputValue.trim()}\r\n\t\t\t\t\t\tclass=\"h-10 self-start mt-5\"\r\n\t\t\t\t\t\taria-label={promoState.isValidating ? (labels.checkingPromoCode || 'Checking promo code') : (labels.applyPromoCode || 'Apply promo code')}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{promoState.isValidating ? (labels.checking || 'Checking...') : (labels.apply || 'Apply')}\r\n\t\t\t\t\t</Button>\r\n\t\t\t\t{/if}\r\n\t\t\t</div>\r\n\r\n\t\t\t<!-- Success hint -->\r\n\t\t\t{#if promoState.hint}\r\n\t\t\t\t<p class=\"promo-message success body-sm\" role=\"status\" aria-live=\"polite\">\r\n\t\t\t\t\t{promoState.hint}\r\n\t\t\t\t</p>\r\n\t\t\t{/if}\r\n\t\t</div>\r\n\t{/if}\r\n</div>\r\n\r\n<style>\r\n\t.promo-section {\r\n\t\tmargin-top: 1rem;\r\n\t}\r\n\r\n\t.promo-input-wrapper {\r\n\t\tdisplay: flex;\r\n\t\tgap: 0.5rem;\r\n\t\talign-items: flex-start;\r\n\t}\r\n\r\n\t.promo-message {\r\n\t\tmargin-top: 0.5rem;\r\n\t}\r\n\r\n\t.promo-message.success {\r\n\t\tcolor: hsl(var(--accent-success)); /* green-600 */\r\n\t}\r\n\r\n\t@keyframes promoSlideIn {\r\n\t\tfrom {\r\n\t\t\topacity: 0;\r\n\t\t\ttransform: translateY(-4px);\r\n\t\t}\r\n\r\n\t\tto {\r\n\t\t\topacity: 1;\r\n\t\t\ttransform: translateY(0);\r\n\t\t}\r\n\t}\r\n</style>","<script lang=\"ts\">\r\n\timport { Button, Text } from '@getmicdrop/svelte-components';\r\n\timport type { EventData } from '$lib/public-calendar-flow/types';\r\n\timport {\r\n\t\tformatFullDateCompact,\r\n\t\tformatEventTime,\r\n\t\tformatBrowseDate\r\n\t} from '$lib/public-calendar-flow/defaults';\r\n\r\n\tinterface Props {\r\n\t\tevent: EventData;\r\n\t\tonShowtimeClick?: (occurrence: { id: number; slug: string }) => void;\r\n\t\t\tlabels?: Record<string, string>;\r\n\t}\r\n\r\n\tlet { event, onShowtimeClick = undefined, labels = {}, }: Props = $props();\r\n\r\n\t// --- Data ---\r\n\ttype GroupedOccurrences = {\r\n\t\tdateLabel: string;\r\n\t\tdateKey: string;\r\n\t\toccurrences: NonNullable<EventData['seriesOccurrences']>;\r\n\t}[];\r\n\r\n\tlet groupedOccurrences: GroupedOccurrences = $derived((() => {\r\n\t\tif (!event.seriesOccurrences) return [];\r\n\t\tconst groups: Map<string, { dateLabel: string; occurrences: NonNullable<EventData['seriesOccurrences']> }> = new Map();\r\n\t\tfor (const occ of event.seriesOccurrences) {\r\n\t\t\tconst dateKey = formatBrowseDate(occ.startDateTime, event.timezone);\r\n\t\t\tif (!groups.has(dateKey)) {\r\n\t\t\t\tgroups.set(dateKey, {\r\n\t\t\t\t\tdateLabel: formatFullDateCompact(occ.startDateTime, event.timezone),\r\n\t\t\t\t\toccurrences: []\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\tgroups.get(dateKey)!.occurrences.push(occ);\r\n\t\t}\r\n\t\treturn [...groups.entries()].map(([dateKey, g]) => ({\r\n\t\t\tdateKey,\r\n\t\t\tdateLabel: g.dateLabel,\r\n\t\t\toccurrences: g.occurrences\r\n\t\t}));\r\n\t})());\r\n\r\n\tfunction handleShowtimeClick(occ: { id: number; slug: string }) {\r\n\t\tif (onShowtimeClick) {\r\n\t\t\tonShowtimeClick(occ);\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<section>\r\n\t<div class=\"space-y-4\">\r\n\t\t{#each groupedOccurrences as group (group.dateKey)}\r\n\t\t\t<div>\r\n\t\t\t\t<Text size=\"sm\" class=\"font-semibold block mb-2\">\r\n\t\t\t\t\t{group.dateLabel}\r\n\t\t\t\t</Text>\r\n\t\t\t\t<div class=\"space-y-2\">\r\n\t\t\t\t\t{#each group.occurrences as occ (occ.id)}\r\n\t\t\t\t\t\t<!-- svelte-ignore a11y_no_static_element_interactions -->\r\n\t\t\t\t\t\t<div\r\n\t\t\t\t\t\t\tclass=\"row-a border-default bg-surface-primary hover:bg-surface-secondary\"\r\n\t\t\t\t\t\t\tclass:row-disabled={occ.ctaDisabled}\r\n\t\t\t\t\t\t\tonclick={() => !occ.ctaDisabled && handleShowtimeClick({ id: occ.id, slug: occ.slug })}\r\n\t\t\t\t\t\t\tonkeydown={(e: KeyboardEvent) => e.key === 'Enter' && !occ.ctaDisabled && handleShowtimeClick({ id: occ.id, slug: occ.slug })}\r\n\t\t\t\t\t\t\ttabindex={occ.ctaDisabled ? -1 : 0}\r\n\t\t\t\t\t\t\trole=\"link\"\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t{#if event.displayStartTime !== false}\r\n\t\t\t\t\t\t\t\t<Text size=\"sm\" class=\"font-medium\">\r\n\t\t\t\t\t\t\t\t\t{formatEventTime(occ.startDateTime, event.timezone)}\r\n\t\t\t\t\t\t\t\t</Text>\r\n\t\t\t\t\t\t\t{/if}\r\n\t\t\t\t\t\t\t<Button\r\n\t\t\t\t\t\t\t\tsize=\"sm\"\r\n\t\t\t\t\t\t\t\tvariant={occ.ctaDisabled ? 'alternative' : 'default'}\r\n\t\t\t\t\t\t\t\tdisabled={occ.ctaDisabled}\r\n\t\t\t\t\t\t\t\tclass=\"shrink-0 pointer-events-none\"\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t{occ.ctaText}\r\n\t\t\t\t\t\t\t</Button>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t{/each}\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t{/each}\r\n\t</div>\r\n</section>\r\n\r\n<style>\r\n\t/* === Shared === */\r\n\t.row-disabled {\r\n\t\topacity: 0.5;\r\n\t\tcursor: default;\r\n\t}\r\n\r\n\t/* === Design A: Full-width rows === */\r\n\t.row-a {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tjustify-content: space-between;\r\n\t\tgap: 0.75rem;\r\n\t\tpadding: 0.75rem;\r\n\t\tborder-radius: 0.5rem;\r\n\t\tborder-width: 1px;\r\n\t\tborder-style: solid;\r\n\t\tcursor: pointer;\r\n\t\ttransition-property: all;\r\n\t\ttransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\r\n\t\ttransition-duration: 150ms;\r\n\t}\r\n\r\n\t.row-a:hover:not(.row-disabled) {\r\n\t\tborder-color: hsl(var(--stroke-primary)); /* gray-300 */\r\n\t}\r\n\r\n .row-a:hover:not(.row-disabled) {\r\n &:is([data-theme=\"dark\"], [data-theme=\"dark\"] *) {\r\n\t\tborder-color: hsl(var(--stroke-primary)); /* gray-600 */\r\n\t }\r\n }\r\n</style>\r\n","<script lang=\"ts\">\r\n // @currency-escape: event price display\r\n\timport { createLogger, EventCard, Grid, Heading, Text, toTicketId } from '@getmicdrop/svelte-components';\r\n\timport { toast } from '@getmicdrop/svelte-components/toast';\r\n\timport type { TicketId } from '@getmicdrop/svelte-components';\r\n\timport type { EventData, OrderTotals, OrderLine, PromoCodeState } from '$lib/public-calendar-flow/types';\r\n\timport {\r\n\t\tcalculateTax,\r\n\t\tcreateDefaultPromoState,\r\n\t\tDURATION\r\n\t} from '$lib/public-calendar-flow/defaults';\r\n\r\n\timport HeroImage from './HeroImage.svelte';\r\n\timport EventHeader from './EventHeader.svelte';\r\n\timport TicketCard from './TicketCard.svelte';\r\n\timport BookingWidget from './BookingWidget.svelte';\r\n\timport AboutSection from './AboutSection.svelte';\r\n\timport PerformerGrid from './PerformerGrid.svelte';\r\n\timport FaqAccordion from './FaqAccordion.svelte';\r\n\timport MobileCta from './MobileCta.svelte';\r\n\timport PromoCodeInput from './PromoCodeInput.svelte';\r\n\timport ShowtimeDesigns from './ShowtimeDesigns.svelte';\r\n\timport { toEventCardProps } from '$lib/browse-widgets/to-event-card-props';\r\n\timport { PLACEHOLDER_IMAGE } from '$lib/utils/constants.js';\r\n\timport { groupEventsBySeries } from '$lib/browse-widgets/utils';\r\n\timport type { BrowseEvent } from '$lib/browse-widgets/types';\r\n\timport { mergeLabels } from '$lib/public-calendar-flow/i18n/labels.js';\r\n\r\n\tconst logger = createLogger('Event');\r\n\r\n\t// Production component. Pure event renderer — no mock data, no toggle\r\n\t// store, no showcase wiring. Showcase variants live in\r\n\t// `ShowcaseEvent.svelte`, which picks a mock and renders <Event /> with it.\r\n\tinterface Props {\r\n\t\tevent: EventData;\r\n\t\tonCheckout?: (orderTotals: OrderTotals) => void;\r\n\t\tonPromoApply?: (code: string) => Promise<PromoCodeState>;\r\n\t\tonPromoRemove?: () => void;\r\n\t\tonCollectionEventClick?: (event: { id?: number | string; slug: string }) => void;\r\n\t\tonShowtimeClick?: (occurrence: { id: number; slug: string }) => void;\r\n\t\t/** True only for the series MASTER page (series-home): renders the\r\n\t\t * occurrence picker alone, no single date / tickets. A series INSTANCE\r\n\t\t * (one occurrence) leaves this false and renders like a normal event —\r\n\t\t * its date + tickets — with the picker shown as \"other dates\". */\r\n\t\tisSeriesMaster?: boolean;\r\n\t\t/** Opt-in to the built-in mock promo codes (REVEAL/DISCOUNT10/VIP20).\r\n\t\t * Showcase only — production must pass a real onPromoApply, never run\r\n\t\t * client-side mock discounts for a real buyer. */\r\n\t\tallowMockPromo?: boolean;\r\n\t\tlabels?: Record<string, string>;\r\n\t}\r\n\r\n\tlet {\r\n\t\tevent,\r\n\t\tonCheckout: onCheckoutProp = undefined,\r\n\t\tonPromoApply: onPromoApplyProp = undefined,\r\n\t\tonPromoRemove: onPromoRemoveProp = undefined,\r\n\t\tonCollectionEventClick: onCollectionEventClickProp = undefined,\r\n\t\tonShowtimeClick: onShowtimeClickProp = undefined,\r\n\t\tisSeriesMaster = false,\r\n\t\tallowMockPromo = false,\r\n\t\tlabels = {},\r\n\t}: Props = $props();\r\n\r\n\tconst mergedLabels = $derived(mergeLabels(labels));\r\n\r\n\t// Ticket quantities keyed by ticket ID\r\n\tlet quantities: Record<TicketId, number> = $state({});\r\n\r\n\t// Promo code state\r\n\tlet promoState = $state<PromoCodeState>(createDefaultPromoState());\r\n\r\n\t// Donation amounts keyed by ticket ID\r\n\tlet donationAmounts: Record<TicketId, string> = $state({});\r\n\r\n\t// Reset cart-related state when the event identity changes. Covers both\r\n\t// showcase-mode mock swaps and production navigation between events.\r\n\t$effect(() => {\r\n\t\tconst _id = event.id;\r\n\t\tquantities = {};\r\n\t\tpromoState = createDefaultPromoState();\r\n\t\tdonationAmounts = {};\r\n\t});\r\n\r\n\t// Visible tickets (account for promo reveals)\r\n\tlet visibleTickets = $derived(\r\n\t\tevent.tickets.filter((t) => {\r\n\t\t\tif (!t.isHidden) return true;\r\n\t\t\tif (promoState.revealHiddenTickets) return true;\r\n\t\t\treturn promoState.revealTicketIds.includes(t.id);\r\n\t\t})\r\n\t);\r\n\r\n\t// Group tickets by section\r\n\tlet groupedTickets = $derived((() => {\r\n\t\tconst groups: Record<string, typeof visibleTickets> = {};\r\n\t\tfor (const ticket of visibleTickets) {\r\n\t\t\tconst section = ticket.sectionName || '_default';\r\n\t\t\tif (!groups[section]) groups[section] = [];\r\n\t\t\tgroups[section].push(ticket);\r\n\t\t}\r\n\t\treturn groups;\r\n\t})());\r\n\r\n\tlet hasMultipleSections = $derived(\r\n\t\tObject.keys(groupedTickets).filter((k) => k !== '_default').length > 0\r\n\t);\r\n\r\n\t// Show tickets for on_sale AND sold_out events (sold out shows them as disabled)\r\n\tlet isOnSale = $derived(event.status === 'on_sale');\r\n\tlet showTicketCards = $derived(\r\n\t\t(event.status === 'on_sale' || event.status === 'sold_out') && visibleTickets.length > 0\r\n\t);\r\n\r\n\t// Calculate order totals (with donation amounts and promo discounts)\r\n\tlet orderTotals: OrderTotals = $derived((() => {\r\n\t\tconst lines: OrderLine[] = [];\r\n\t\tlet subtotal = 0;\r\n\t\tlet fees = 0;\r\n\t\tlet promoDiscount = 0;\r\n\r\n\t\tfor (const ticket of event.tickets) {\r\n\t\t\tconst qty = quantities[ticket.id] ?? 0;\r\n\t\t\tif (qty <= 0) continue;\r\n\r\n\t\t\tconst isDonation = ticket.isDonation || ticket.ticketType === 2;\r\n\t\t\tconst basePrice = isDonation ? (parseFloat(donationAmounts[ticket.id]) || 0) : ticket.price;\r\n\t\t\tconst ticketFee = isDonation ? 0 : ticket.fee;\r\n\r\n\t\t\t// Calculate promo discount for this ticket\r\n\t\t\tlet ticketDiscount = 0;\r\n\t\t\tif (promoState.isApplied && promoState.discountAmount > 0 && !isDonation) {\r\n\t\t\t\tconst eligible = promoState.discountTicketIds.length === 0 || promoState.discountTicketIds.includes(ticket.id);\r\n\t\t\t\tif (eligible) {\r\n\t\t\t\t\tif (promoState.discountType === '%') {\r\n\t\t\t\t\t\tticketDiscount = basePrice * (promoState.discountAmount / 100);\r\n\t\t\t\t\t} else if (promoState.discountType === '$') {\r\n\t\t\t\t\t\tticketDiscount = Math.min(promoState.discountAmount, basePrice);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tconst effectivePrice = Math.max(0, basePrice - ticketDiscount);\r\n\t\t\tconst ticketSubtotal = effectivePrice * qty;\r\n\t\t\tconst totalTicketFee = ticketFee * qty;\r\n\r\n\t\t\tlines.push({\r\n\t\t\t\tticketId: toTicketId(ticket.id),\r\n\t\t\t\tticketName: ticket.name,\r\n\t\t\t\tquantity: qty,\r\n\t\t\t\tunitPrice: effectivePrice,\r\n\t\t\t\tfee: ticketFee,\r\n\t\t\t\tsubtotal: ticketSubtotal\r\n\t\t\t});\r\n\r\n\t\t\tsubtotal += ticketSubtotal;\r\n\t\t\tfees += totalTicketFee;\r\n\t\t\tpromoDiscount += ticketDiscount * qty;\r\n\t\t}\r\n\r\n\t\tconst taxes = calculateTax(subtotal + fees, event.venue.taxPercentage);\r\n\r\n\t\treturn {\r\n\t\t\tlines,\r\n\t\t\tsubtotal,\r\n\t\t\tfees,\r\n\t\t\ttaxes,\r\n\t\t\ttotal: subtotal + fees + taxes,\r\n\t\t\tpromoDiscount,\r\n\t\t\tgiftCardAmount: 0\r\n\t\t};\r\n\t})());\r\n\r\n\tlet hasSelectedTickets = $derived(orderTotals.lines.length > 0);\r\n\r\n\t// Series occurrences — group by date for same-day shows\r\n\tlet isSeries = $derived(!!event.eventSeriesId);\r\n\r\n\t// Collection — loose grouping of different events\r\n\tlet isCollection = $derived(!!event.collectionId);\r\n\r\n\t// Full-width layout mode (no sidebar, no single-date tickets). Used by the\r\n\t// series MASTER page and collections. A series INSTANCE renders the normal\r\n\t// sidebar layout (its own date + tickets) plus the occurrence picker.\r\n\tlet isFullWidth = $derived((isSeries && isSeriesMaster) || isCollection);\r\n\r\n\t// Collection events normalized to the canonical BrowseEvent shape and\r\n\t// grouped via groupEventsBySeries so EventCard can render them through the\r\n\t// shared toEventCardProps mapper (same as every other v2 view).\r\n\t// CollectionEvent uses id/image; BrowseEvent uses\r\n\t// eventID/imageUrl + a YYYY-MM-DD date derived from startDateTime.\r\n\tlet collectionTeaserGroups = $derived(\r\n\t\tgroupEventsBySeries(\r\n\t\t\t(event.collectionEvents ?? []).map<BrowseEvent>((ce) => ({\r\n\t\t\t\teventID: ce.id,\r\n\t\t\t\tname: ce.name,\r\n\t\t\t\tdate: ce.startDateTime.slice(0, 10),\r\n\t\t\t\tstartDateTime: ce.startDateTime,\r\n\t\t\t\timageUrl: ce.image,\r\n\t\t\t\t// browse-widgets/types narrows out 'past' (it computes past-ness\r\n\t\t\t\t// from endDateTime at runtime); coerce to the closest unbookable\r\n\t\t\t\t// status that the canonical union accepts.\r\n\t\t\t\tstatus: ce.status === 'past' ? 'sales_ended' : ce.status,\r\n\t\t\t\tslug: ce.slug,\r\n\t\t\t\ttimeZone: event.timezone,\r\n\t\t\t\tticketsRemaining: ce.ticketsRemaining,\r\n\t\t\t\tticketsTotal: ce.ticketsTotal,\r\n\t\t\t}))\r\n\t\t)\r\n\t);\r\n\r\n\tfunction handleCollectionEventClick(clicked: BrowseEvent) {\r\n\t\tconst out = { id: clicked.eventID, slug: clicked.slug ?? '' };\r\n\t\tif (onCollectionEventClickProp) {\r\n\t\t\tonCollectionEventClickProp(out);\r\n\t\t} else {\r\n\t\t\tlogger.info('Navigate to collection event:', out.slug);\r\n\t\t}\r\n\t}\r\n\r\n\t// --- Handlers ---\r\n\tfunction handleQuantityChange(ticketId: TicketId, qty: number) {\r\n\t\tquantities = { ...quantities, [ticketId]: qty };\r\n\t}\r\n\r\n\tfunction handleDonationChange(ticketId: TicketId, amount: string) {\r\n\t\tdonationAmounts = { ...donationAmounts, [ticketId]: amount };\r\n\t}\r\n\r\n\tfunction handleCheckout() {\r\n\t\tif (onCheckoutProp) {\r\n\t\t\tonCheckoutProp(orderTotals);\r\n\t\t} else {\r\n\t\t\t// @toast-escape: showcase-only fallback (no onCheckoutProp wired); toast used for dev visibility\r\n\t\t\tlogger.info('Checkout:', orderTotals);\r\n\t\t\tconst count = orderTotals.lines.reduce((s, l) => s + l.quantity, 0);\r\n\t\t\ttoast.info(`Proceeding to checkout with ${count} ticket(s) totaling $${orderTotals.total.toFixed(2)}`);\r\n\t\t}\r\n\t}\r\n\r\n\t// --- Promo handlers ---\r\n\t// Showcase test codes: REVEAL (unlocks hidden tickets), DISCOUNT10 (10% off), VIP20 ($20 off + reveal)\r\n\tfunction handlePromoApply(code: string) {\r\n\t\tif (onPromoApplyProp) {\r\n\t\t\t// Production mode: async API validation\r\n\t\t\tpromoState = { ...promoState, isValidating: true, error: '', hint: '' };\r\n\t\t\tonPromoApplyProp(code).then((result) => {\r\n\t\t\t\tpromoState = result;\r\n\t\t\t}).catch(() => {\r\n\t\t\t\tpromoState = {\r\n\t\t\t\t\t...createDefaultPromoState(),\r\n\t\t\t\t\tcode: code.toUpperCase(),\r\n\t\t\t\t\terror: 'Failed to validate promo code'\r\n\t\t\t\t};\r\n\t\t\t});\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// No production handler wired (e.g. real embeds). Do nothing — applying\r\n\t\t// a client-side mock discount would mis-state the price for a real\r\n\t\t// buyer. The showcase opts in via allowMockPromo.\r\n\t\tif (!allowMockPromo) {\r\n\t\t\tpromoState = createDefaultPromoState();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Showcase mode: mock validation\r\n\t\tconst upper = code.toUpperCase();\r\n\t\tpromoState = { ...promoState, isValidating: true, error: '', hint: '' };\r\n\r\n\t\t// Simulate async validation\r\n\t\tsetTimeout(() => {\r\n\t\t\tif (upper === 'REVEAL') {\r\n\t\t\t\tpromoState = {\r\n\t\t\t\t\tcode: upper,\r\n\t\t\t\t\tisApplied: true,\r\n\t\t\t\t\tisValidating: false,\r\n\t\t\t\t\terror: '',\r\n\t\t\t\t\thint: `${upper} applied. Hidden tickets are now visible.`,\r\n\t\t\t\t\tdiscountAmount: 0,\r\n\t\t\t\t\tdiscountType: '',\r\n\t\t\t\t\tdiscountTicketIds: [],\r\n\t\t\t\t\trevealHiddenTickets: true,\r\n\t\t\t\t\trevealTicketIds: []\r\n\t\t\t\t};\r\n\t\t\t} else if (upper === 'DISCOUNT10') {\r\n\t\t\t\tpromoState = {\r\n\t\t\t\t\tcode: upper,\r\n\t\t\t\t\tisApplied: true,\r\n\t\t\t\t\tisValidating: false,\r\n\t\t\t\t\terror: '',\r\n\t\t\t\t\thint: `${upper} applied. 10% off all tickets.`,\r\n\t\t\t\t\tdiscountAmount: 10,\r\n\t\t\t\t\tdiscountType: '%',\r\n\t\t\t\t\tdiscountTicketIds: [],\r\n\t\t\t\t\trevealHiddenTickets: false,\r\n\t\t\t\t\trevealTicketIds: []\r\n\t\t\t\t};\r\n\t\t\t} else if (upper === 'VIP20') {\r\n\t\t\t\tpromoState = {\r\n\t\t\t\t\tcode: upper,\r\n\t\t\t\t\tisApplied: true,\r\n\t\t\t\t\tisValidating: false,\r\n\t\t\t\t\terror: '',\r\n\t\t\t\t\thint: `${upper} applied. $20 off + hidden tickets revealed.`,\r\n\t\t\t\t\tdiscountAmount: 20,\r\n\t\t\t\t\tdiscountType: '$',\r\n\t\t\t\t\tdiscountTicketIds: [],\r\n\t\t\t\t\trevealHiddenTickets: true,\r\n\t\t\t\t\trevealTicketIds: []\r\n\t\t\t\t};\r\n\t\t\t} else {\r\n\t\t\t\tpromoState = {\r\n\t\t\t\t\t...createDefaultPromoState(),\r\n\t\t\t\t\tcode: upper,\r\n\t\t\t\t\terror: 'Invalid promo code'\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t}, 800);\r\n\t}\r\n\r\n\tfunction handlePromoRemove() {\r\n\t\t// Always clean up hidden ticket quantities locally\r\n\t\tconst hiddenIds = event.tickets.filter((t) => t.isHidden).map((t) => t.id);\r\n\t\tconst newQuantities = { ...quantities };\r\n\t\tfor (const id of hiddenIds) {\r\n\t\t\tdelete newQuantities[id];\r\n\t\t}\r\n\t\tquantities = newQuantities;\r\n\t\tpromoState = createDefaultPromoState();\r\n\r\n\t\t// Notify production caller\r\n\t\tif (onPromoRemoveProp) {\r\n\t\t\tonPromoRemoveProp();\r\n\t\t}\r\n\t}\r\n\r\n\t// Compute per-ticket promo info\r\n\tfunction getTicketPromoInfo(ticketId: TicketId, ticket: { price: number; isDonation: boolean; isHidden: boolean; ticketType?: number }) {\r\n\t\tconst isDonation = ticket.isDonation || ticket.ticketType === 2;\r\n\t\tconst isRevealed = ticket.isHidden && (promoState.revealHiddenTickets || promoState.revealTicketIds.includes(ticketId));\r\n\r\n\t\tlet isDiscounted = false;\r\n\t\tlet discountedPrice: number | null = null;\r\n\r\n\t\tif (promoState.isApplied && promoState.discountAmount > 0 && !isDonation) {\r\n\t\t\tconst eligible = promoState.discountTicketIds.length === 0 || promoState.discountTicketIds.includes(ticketId);\r\n\t\t\tif (eligible) {\r\n\t\t\t\tisDiscounted = true;\r\n\t\t\t\tif (promoState.discountType === '%') {\r\n\t\t\t\t\tdiscountedPrice = ticket.price * (1 - promoState.discountAmount / 100);\r\n\t\t\t\t} else if (promoState.discountType === '$') {\r\n\t\t\t\t\tdiscountedPrice = Math.max(0, ticket.price - promoState.discountAmount);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn { isRevealed, isDiscounted, discountedPrice };\r\n\t}\r\n</script>\r\n\r\n<div class=\"w-full min-h-screen bg-surface-primary text-color-primary\">\r\n\t<div class=\"max-w-6xl mx-auto px-4 py-6 md:px-6 md:py-8\">\r\n\r\n\t\t<!-- Shared desktop content (rendered via snippet to avoid duplication) -->\r\n\t\t{#snippet desktopContent()}\r\n\t\t\t<!-- Hero image -->\r\n\t\t\t<HeroImage src={event.imageUrl} alt={event.title}\r\n\t\t\t\tlabels={mergedLabels} />\r\n\r\n\t\t\t<!-- Event header (title, date, venue, stage, age, scarcity badge) -->\r\n\t\t\t<EventHeader {event} hideDateTime={isFullWidth} hideVenue={isCollection}\r\n\t\t\t\tlabels={mergedLabels} />\r\n\r\n\t\t\t<!-- INLINE TICKET SELECTION (hidden for series/collection — no single-event tickets) -->\r\n\t\t\t{#if showTicketCards && !isFullWidth}\r\n\t\t\t\t<section id=\"ticket-section\">\r\n\t\t\t\t\t<Heading size=\"xl\" weight=\"semibold\" class=\"mb-4\">\r\n\t\t\t\t\t\t{isOnSale ? (labels.selectTickets || 'Select tickets') : (labels.ticketsTab || 'Tickets')}\r\n\t\t\t\t\t</Heading>\r\n\r\n\t\t\t\t\t{#if hasMultipleSections}\r\n\t\t\t\t\t\t<!-- Sectioned tickets -->\r\n\t\t\t\t\t\t{#each Object.entries(groupedTickets) as [sectionName, sectionTickets] (sectionName)}\r\n\t\t\t\t\t\t\t<div class=\"mb-6 last:mb-0\">\r\n\t\t\t\t\t\t\t\t{#if sectionName !== '_default'}\r\n\t\t\t\t\t\t\t\t\t<Heading level={3} size=\"sm\" weight=\"semibold\" class=\"mb-3\">\r\n\t\t\t\t\t\t\t\t\t\t{sectionName}\r\n\t\t\t\t\t\t\t\t\t</Heading>\r\n\t\t\t\t\t\t\t\t{/if}\r\n\t\t\t\t\t\t\t\t<!-- TODO: swap back to <Stack gap=\"3\"> once SC merges the\r\n\t\t\t\t\t\t\t\t ambiguous-Stack-export fix (see open issue). The root\r\n\t\t\t\t\t\t\t\t index.js does `export *` from both primitives/ and\r\n\t\t\t\t\t\t\t\t patterns/layout/, both of which contribute Stack, so\r\n\t\t\t\t\t\t\t\t the browser refuses to resolve `import { Stack }`. -->\r\n\t\t\t\t\t\t\t\t<div class=\"space-y-3\">\r\n\t\t\t\t\t\t\t\t\t{#each sectionTickets as ticket (ticket.id)}\r\n\t\t\t\t\t\t\t\t\t\t{@const promoInfo = getTicketPromoInfo(toTicketId(ticket.id), ticket)}\r\n\t\t\t\t\t\t\t\t\t\t<TicketCard\r\n\t\t\t\t\t\t\t\t\t\t\t{ticket}\r\n\t\t\t\t\t\t\t\t\t\t\tquantity={quantities[ticket.id] ?? 0}\r\n\t\t\t\t\t\t\t\t\t\t\tonQuantityChange={handleQuantityChange}\r\n\t\t\t\t\t\t\t\t\t\t\tdonationAmount={donationAmounts[ticket.id] ?? ''}\r\n\t\t\t\t\t\t\t\t\t\t\tonDonationChange={handleDonationChange}\r\n\t\t\t\t\t\t\t\t\t\t\tisRevealedByPromo={promoInfo.isRevealed}\r\n\t\t\t\t\t\t\t\t\t\t\tisDiscountedByPromo={promoInfo.isDiscounted}\r\n\t\t\t\t\t\t\t\t\t\t\tdiscountedPrice={promoInfo.discountedPrice}\r\n\t\t\t\t\t\t\t\t\t\t\tlabels={mergedLabels}\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t{/each}\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t{/each}\r\n\t\t\t\t\t{:else}\r\n\t\t\t\t\t\t<!-- Flat ticket list. Same TODO as the sectioned branch above:\r\n\t\t\t\t\t\t swap to <Stack gap=\"3\"> once SC's root index.js no longer\r\n\t\t\t\t\t\t star-exports Stack from two sibling trees. -->\r\n\t\t\t\t\t\t<div class=\"space-y-3\">\r\n\t\t\t\t\t\t\t{#each visibleTickets as ticket (ticket.id)}\r\n\t\t\t\t\t\t\t\t{@const promoInfo = getTicketPromoInfo(toTicketId(ticket.id), ticket)}\r\n\t\t\t\t\t\t\t\t<TicketCard\r\n\t\t\t\t\t\t\t\t\t{ticket}\r\n\t\t\t\t\t\t\t\t\tquantity={quantities[ticket.id] ?? 0}\r\n\t\t\t\t\t\t\t\t\tonQuantityChange={handleQuantityChange}\r\n\t\t\t\t\t\t\t\t\tdonationAmount={donationAmounts[ticket.id] ?? ''}\r\n\t\t\t\t\t\t\t\t\tonDonationChange={handleDonationChange}\r\n\t\t\t\t\t\t\t\t\tisRevealedByPromo={promoInfo.isRevealed}\r\n\t\t\t\t\t\t\t\t\tisDiscountedByPromo={promoInfo.isDiscounted}\r\n\t\t\t\t\t\t\t\t\tdiscountedPrice={promoInfo.discountedPrice}\r\n\t\t\t\t\t\t\t\t\tlabels={mergedLabels}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t{/each}\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t{/if}\r\n\r\n\t\t\t\t\t<!-- Promo code input: only show when event is on sale -->\r\n\t\t\t\t\t{#if isOnSale}\r\n\t\t\t\t\t\t<PromoCodeInput\r\n\t\t\t\t\t\t\t{promoState}\r\n\t\t\t\t\t\t\tonApply={handlePromoApply}\r\n\t\t\t\t\t\t\tonRemove={handlePromoRemove}\r\n\t\t\t\t\t\t\tlabels={mergedLabels}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t{/if}\r\n\t\t\t\t</section>\r\n\t\t\t{/if}\r\n\r\n\t\t\t<!-- Showtimes (series — primary content, before About) -->\r\n\t\t\t{#if isSeries}\r\n\t\t\t\t<section>\r\n\t\t\t\t\t<Heading size=\"xl\" weight=\"semibold\" class=\"mb-4\">\r\n\t\t\t\t\t\t{isSeriesMaster\r\n\t\t\t\t\t\t\t? mergedLabels.upcomingShows || 'Upcoming Shows'\r\n\t\t\t\t\t\t\t: mergedLabels.otherDates || 'Other dates'}\r\n\t\t\t\t\t</Heading>\r\n\t\t\t\t\t<ShowtimeDesigns {event} onShowtimeClick={onShowtimeClickProp}\r\n\t\t\t\tlabels={mergedLabels} />\r\n\t\t\t\t</section>\r\n\t\t\t{/if}\r\n\r\n\t\t\t<!-- Collection: About goes above event widgets -->\r\n\t\t\t{#if isCollection}\r\n\t\t\t\t<AboutSection description={event.description}\r\n\t\t\t\tlabels={mergedLabels} />\r\n\t\t\t{/if}\r\n\r\n\t\t\t<!-- Collection events grid (widgets) -->\r\n\t\t\t{#if isCollection}\r\n\t\t\t\t<section>\r\n\t\t\t\t\t<Heading size=\"xl\" weight=\"semibold\" class=\"mb-4\">Events</Heading>\r\n\t\t\t\t\t<Grid cols=\"auto\" minWidth=\"240px\" gap=\"6\">\r\n\t\t\t\t\t\t{#each collectionTeaserGroups as g (g.event.eventID)}\r\n\t\t\t\t\t\t\t{@const { pillEvents, ...card } = toEventCardProps(g, mergedLabels)}\r\n\t\t\t\t\t\t\t<EventCard\r\n\t\t\t\t\t\t\t\t{...card}\r\n\t\t\t\t\t\t\t\tlayout=\"vertical\"\r\n\t\t\t\t\t\t\t\tdensity=\"standard\"\r\n\t\t\t\t\t\t\t\tshowDescription\r\n\t\t\t\t\t\t\t\tplaceholderImage={PLACEHOLDER_IMAGE}\r\n\t\t\t\t\t\t\t\tonclick={() => handleCollectionEventClick(g.event)}\r\n\t\t\t\t\t\t\t\tonpillclick={(i) =>\r\n\t\t\t\t\t\t\t\t\thandleCollectionEventClick(pillEvents[i] ?? g.event)}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t{/each}\r\n\t\t\t\t\t</Grid>\r\n\t\t\t\t</section>\r\n\t\t\t{/if}\r\n\r\n\t\t\t<!-- About section (non-collection) -->\r\n\t\t\t{#if !isCollection}\r\n\t\t\t\t<AboutSection description={event.description}\r\n\t\t\t\tlabels={mergedLabels} />\r\n\t\t\t{/if}\r\n\r\n\t\t\t<!-- Performers (hidden for series/collection) -->\r\n\t\t\t{#if !isFullWidth}\r\n\t\t\t\t<PerformerGrid performers={event.performers}\r\n\t\t\t\tlabels={mergedLabels} />\r\n\t\t\t{/if}\r\n\r\n\t\t\t<!-- FAQs (hidden for collection — FAQs are per-venue, not per-collection) -->\r\n\t\t\t{#if event.faqs.length > 0 && !isCollection}\r\n\t\t\t\t<FaqAccordion faqs={event.faqs}\r\n\t\t\t\tlabels={mergedLabels} />\r\n\t\t\t{/if}\r\n\r\n\t\t\t<!-- Disclaimer -->\r\n\t\t\t{#if event.disclaimer}\r\n\t\t\t\t<section class=\"pt-4 border-t border-default\">\r\n\t\t\t\t\t<Text size=\"xs\" color=\"muted\" leading=\"relaxed\" class=\"block\">\r\n\t\t\t\t\t\t{event.disclaimer}\r\n\t\t\t\t\t</Text>\r\n\t\t\t\t</section>\r\n\t\t\t{/if}\r\n\t\t{/snippet}\r\n\r\n\t\t<!-- ============================================== -->\r\n\t\t<!-- DESKTOP LAYOUT -->\r\n\t\t<!-- ============================================== -->\r\n\t\t{#if isFullWidth}\r\n\t\t\t<!-- Series/Collection: full-width single column (no sidebar) -->\r\n\t\t\t<div class=\"hidden md:block space-y-8\">\r\n\t\t\t\t{@render desktopContent()}\r\n\t\t\t</div>\r\n\t\t{:else}\r\n\t\t\t<!-- Regular: two-column Airbnb split (1fr 360px) -->\r\n\t\t\t<div class=\"hidden md:grid grid-cols-booking-split gap-8 items-start\">\r\n\t\t\t\t<div class=\"space-y-8\">\r\n\t\t\t\t\t{@render desktopContent()}\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"sticky top-6\">\r\n\t\t\t\t\t<BookingWidget\r\n\t\t\t\t\t\t{event}\r\n\t\t\t\t\t\t{orderTotals}\r\n\t\t\t\t\t\t{hasSelectedTickets}\r\n\t\t\t\t\t\tonCheckout={handleCheckout}\r\n\t\t\t\t\t\tpromoApplied={promoState.isApplied}\r\n\t\t\t\t\t\tlabels={mergedLabels}\r\n\t\t\t\t\t/>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t{/if}\r\n\r\n\t\t<!-- ============================================== -->\r\n\t\t<!-- MOBILE: Single column with fixed bottom CTA -->\r\n\t\t<!-- ============================================== -->\r\n\t\t<div class=\"md:hidden space-y-6\" class:pb-24={!isFullWidth}>\r\n\t\t\t{@render desktopContent()}\r\n\t\t</div>\r\n\r\n\t\t<!-- Mobile: Fixed bottom CTA bar (DICE-style) — hidden for series/collection -->\r\n\t\t{#if !isFullWidth}\r\n\t\t\t<div class=\"md:hidden\">\r\n\t\t\t\t<MobileCta\r\n\t\t\t\t\t{event}\r\n\t\t\t\t\t{orderTotals}\r\n\t\t\t\t\t{hasSelectedTickets}\r\n\t\t\t\t\tonCheckout={handleCheckout}\r\n\t\t\t\t\tlabels={mergedLabels}\r\n\t\t\t\t/>\r\n\t\t\t</div>\r\n\t\t{/if}\r\n\t</div>\r\n</div>\r\n\r\n"],"names":["$","$$props","div","root","img","img_1","hideDateTime","hideVenue","scarcityLevel","getScarcityLevel","scarcityText","getScarcityText","ageText","shareEvent","url","shareData","err","fallbackShare","toast","div_1","Heading","node","ScarcityBadge","$$anchor","$$render","consequent","Button","node_2","Share","div_2","fragment_3","Calendar","span","node_5","div_3","root_5","Time","div_4","node_7","span_1","root_6","formatTimeRange","span_2","root_7","formatEventTime","consequent_1","alternate","span_3","root_8","formatDoorsTime","consequent_2","div_5","root_9","span_4","node_10","consequent_3","consequent_4","formatFullDateCompact","consequent_5","div_6","fragment_4","Location","div_7","node_12","span_5","span_6","root_11","text_7","consequent_6","div_8","root_12","Theater","span_7","node_15","consequent_7","div_9","root_13","User","span_8","node_17","consequent_8","text_6","consequent_9","donationAmount","isRevealedByPromo","isDiscountedByPromo","discountedPrice","labels","isDonation","isSoldOut","isComingSoon","isSalesEnded","isDisabled","donationValue","donationError","isDonationValid","canDecrement","canIncrement","decrement","newQty","toTicketId","triggerHaptic","increment","donationInputValue","syncDonation","totalPrice","priceDisplay","formatCurrency","feeCaption","salesStartDisplay","formatSmartSalesDate","article","Badge","Text","Input","node_4","$$value","discountedTotal","fragment_9","root_15","root_16","fragment_10","root_18","consequent_10","consequent_11","node_9","Subtract","Add","consequent_12","alternate_1","classes","DURATION","promoApplied","ctaConfig","getCtaConfig","getPriceDisplay","isFreeEvent","t","scrollToTickets","section","Card","root_2","OrderSummary","node_1","node_3","$0","text_1","root_10","formatBrowseDate","root_14","node_13","root_17","node_14","text_8","node_16","text_9","alternate_2","alternate_3","paragraphs","p","Section","root_1","paragraph","performer","$1","Avatar","text","Accordion","faq","AccordionItem","totalTicketCount","sum","l","mode","prevModeForHaptic","PEEK_H","bodyEl","viewportH","sync","openHeight","measure","innerH","total","ro","inner","sections","handleBarClick","handleDrawerCheckout","closeDrawer","ticketsLabel","n","dragStartY","dragStartHeight","dragDeltaY","isDragging","pointerId","dragTarget","history","recordSample","y","computeVelocity","first","last","dt","handlePointerDown","e","body","handlePointerMove","dy","RUBBER_RESISTANCE","MAX_OVERSHOOT","rawHeight","finalHeight","overshoot","handlePointerUp","v","FLICK_VELOCITY","POSITION_THRESHOLD","handlePointerCancel","liveHeight","revealProgress","range","text_2","text_4","fragment_13","styles_1","classes_1","styles","$$args","isExpanded","inputValue","handleApply","trimmed","handleRemove","handleKeydown","shouldExpand","root_3","$2","$3","onShowtimeClick","groupedOccurrences","groups","occ","dateKey","handleShowtimeClick","group","logger","createLogger","onCheckoutProp","onPromoApplyProp","onPromoRemoveProp","onCollectionEventClickProp","onShowtimeClickProp","isSeriesMaster","allowMockPromo","mergedLabels","mergeLabels","quantities","promoState","createDefaultPromoState","donationAmounts","visibleTickets","groupedTickets","ticket","hasMultipleSections","k","isOnSale","showTicketCards","orderTotals","lines","subtotal","fees","promoDiscount","qty","basePrice","ticketFee","ticketDiscount","effectivePrice","ticketSubtotal","totalTicketFee","taxes","calculateTax","hasSelectedTickets","isSeries","isCollection","isFullWidth","collectionTeaserGroups","groupEventsBySeries","ce","handleCollectionEventClick","clicked","out","handleQuantityChange","ticketId","handleDonationChange","amount","handleCheckout","count","s","handlePromoApply","code","result","upper","handlePromoRemove","hiddenIds","newQuantities","id","getTicketPromoInfo","isRevealed","isDiscounted","desktopContent","HeroImage","EventHeader","section_1","sectionName","sectionTickets","$$item","$$array","node_6","promoInfo","TicketCard","PromoCodeInput","section_2","ShowtimeDesigns","AboutSection","section_3","Grid","g","pillEvents","card","toEventCardProps","EventCard","PLACEHOLDER_IMAGE","i","computed_const","PerformerGrid","FaqAccordion","section_4","root_22","node_20","root_24","node_22","root_25","node_23","BookingWidget","node_24","node_21","node_25","div_10","root_26","MobileCta","node_27"],"mappings":";;;;;;;;;;;;kBAAA;AAOuB,EAAAA,EAAA,KAAAC,GAAA,UAAA,IAAA,OAAA,CAAA,EAAA;MAGtBC,IAAGC,GAAA,GAEFC,YAFDF,CAAG,GAUFG,cARAD,GAAG,CAAA;UAFJF,CAAG;oBAEFE,GAAG,OAAAH,EAAA,GAAA,mBAQHI,GAAG,OAAAJ,EAAA,GAAA,mBAAHI,GAAG,OAAAJ,EAAA,GAAA;AAAA,kBAVJC,CAAG;AAFI;;kBCRR;;AAs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oG,CAAA,IAAApG,EAAAyG,GAAA,EAAA;AAAA;;QA2BftD,IAAG3E,EAAA,QAAA0V,IAAA,CAAA;;oBAAH/Q,CAAG;AACM,IAAA2O,EAAcqC,CAAA,WADvBhR,CAAG;uBAAHA,GAAG,CAAA;;;YAMFiR,IAAGC,GAAA,gBAAHD,CAAG;AACF,QAAAE,GAASC,IAAA;AAAA;;;;yBAERnF,CAAW;AAAA;;yBACXc,CAAkB;AAAA;sBACPc;AAAA;yBACJzC,CAAY;AAAA;oBANrB6F,CAAG,eAAHA,CAAG;AAAA;;cADC/D,CAAW,KAAArQ,EAAAwG,EAAA;AAAA;;YA7LjB7G,CAAG,GAwLFnB,EAAA,gBAAA,MAAAkI,IAAAlI,EAAA,UAAA2E,wDAA8CkN,CAAW,EAAA,CAAA,CAAA;AAAA;UAzL3D3R,CAAG,eAAHA,CAAG;AAFI;"}
|
|
@@ -1,336 +0,0 @@
|
|
|
1
|
-
import "svelte/internal/disclose-version";
|
|
2
|
-
import { f as ne, t as _e, a as Ee, I as xe, c as be, b as Pe, L as Ie, p as Te, v as Ce, d as Se, i as De, e as Ae } from "./VenueCalendar-CISH7WGT.js";
|
|
3
|
-
import * as e from "svelte/internal/client";
|
|
4
|
-
import "svelte/internal/flags/legacy";
|
|
5
|
-
import "svelte/transition";
|
|
6
|
-
import "svelte/easing";
|
|
7
|
-
import "svelte/reactivity";
|
|
8
|
-
import { onMount as Le } from "svelte";
|
|
9
|
-
import { g as L } from "./__SKIP_NAVIGATION__-CJ96TTPE.js";
|
|
10
|
-
import { E as ae } from "./Event-BAKC5X6r.js";
|
|
11
|
-
import { t as Be } from "./transform-B3tJXUnG.js";
|
|
12
|
-
function ie(m, o) {
|
|
13
|
-
return `/${m}/${o}`;
|
|
14
|
-
}
|
|
15
|
-
function Ne(m) {
|
|
16
|
-
return `/${m}`;
|
|
17
|
-
}
|
|
18
|
-
function Oe(m, o) {
|
|
19
|
-
return `/${m}/${o}/checkout`;
|
|
20
|
-
}
|
|
21
|
-
const oe = be("EventPage");
|
|
22
|
-
var Re = e.from_html('<div class="flex items-center justify-center py-12 text-center loading-container svelte-1dk5n3m"><p> </p></div>'), Ue = e.from_html('<button class="go-back-btn px-4 py-2 rounded-lg text-white svelte-1dk5n3m"> </button>'), Ve = e.from_html('<div class="flex flex-col items-center justify-center py-12 text-center gap-4"><p class="error-text svelte-1dk5n3m"> </p> <!></div>'), ze = e.from_html('<div class="locked-wrapper svelte-1dk5n3m"><div class="locked-overlay absolute inset-0 z-20 flex flex-col items-center justify-center min-h-96 svelte-1dk5n3m"><div class="text-center p-8"><div class="locked-icon-wrapper w-20 h-20 mx-auto mb-4 rounded-full flex items-center justify-center svelte-1dk5n3m"><!></div> <h2 class="locked-title text-xl font-semibold mb-2 svelte-1dk5n3m"> </h2> <p class="locked-description text-sm max-w-xs mx-auto mb-6 leading-relaxed svelte-1dk5n3m"> </p> <button class="unlock-btn py-3 px-6 text-white rounded-lg text-sm font-semibold cursor-pointer svelte-1dk5n3m"> </button></div></div> <div class="blur-content svelte-1dk5n3m"><!></div></div>'), Me = e.from_html("<!> <!>", 1);
|
|
23
|
-
function Xe(m, o) {
|
|
24
|
-
e.push(o, !0);
|
|
25
|
-
let T = e.state(!1), C = e.state(null);
|
|
26
|
-
typeof window < "u" && new URLSearchParams(window.location.search).get("legacy") === "1" && e.set(T, !0), e.user_effect(() => {
|
|
27
|
-
e.get(T) && !e.get(C) && (oe.warn("[VC] DEPRECATED: ?legacy=1 fallback for EventPage retires on 2026-08-13. See docs/LEGACY_RETIREMENT.md."), import("./EventPage.legacy-DDVZNT-7.js").then((t) => {
|
|
28
|
-
e.set(C, t.default, !0);
|
|
29
|
-
}).catch(() => {
|
|
30
|
-
e.set(T, !1);
|
|
31
|
-
}));
|
|
32
|
-
});
|
|
33
|
-
let _ = e.prop(o, "rawEvent", 3, void 0), E = e.prop(o, "eventId", 3, void 0), G = e.prop(o, "slug", 3, ""), de = e.prop(o, "currentEventId", 3, void 0), x = e.prop(o, "onNavigateBack", 3, void 0), B = e.prop(o, "onBuyTickets", 3, void 0), H = e.prop(o, "onNavigateToCart", 3, void 0), le = e.prop(o, "organizationId", 3, ""), a = e.prop(o, "labels", 19, () => ({})), i = e.state(e.proxy(_() ?? null)), N = e.state(e.proxy(!_() && !!E()));
|
|
34
|
-
e.user_effect(() => {
|
|
35
|
-
_() && e.set(i, _());
|
|
36
|
-
});
|
|
37
|
-
let O = e.state(null), k = e.derived(() => e.get(i) ? Be(e.get(i)) : null), c = e.derived(() => E() || e.get(k)?.id || ""), J = e.derived(() => G() || e.get(k)?.slug || ""), R = e.state(e.proxy([])), w = e.derived(() => e.get(k) ? {
|
|
38
|
-
...e.get(k),
|
|
39
|
-
seriesOccurrences: e.get(R).length > 0 ? e.get(R) : e.get(k).seriesOccurrences || []
|
|
40
|
-
} : null), y = e.state(!1), F = e.state(!1), S = e.state(""), b = e.state(""), U = e.state(!1), Y = e.derived(() => e.get(k)?.isPasswordProtected === !0 || e.get(i)?.hasPassword === !0), ce = e.derived(() => e.get(Y) && !e.get(F) && (e.get(i)?.passwordRequired === !0 || !K(e.get(c))));
|
|
41
|
-
function K(t) {
|
|
42
|
-
return typeof window > "u" ? !1 : JSON.parse(sessionStorage.getItem("authedEvents") || "[]").includes(String(t));
|
|
43
|
-
}
|
|
44
|
-
function ue(t) {
|
|
45
|
-
if (typeof window > "u") return;
|
|
46
|
-
const r = JSON.parse(sessionStorage.getItem("authedEvents") || "[]"), d = String(t);
|
|
47
|
-
r.includes(d) || (r.push(d), sessionStorage.setItem("authedEvents", JSON.stringify(r)));
|
|
48
|
-
}
|
|
49
|
-
async function ge(t) {
|
|
50
|
-
const r = t.detail?.value || e.get(S);
|
|
51
|
-
if (!(!r || !e.get(c))) {
|
|
52
|
-
e.set(U, !0), e.set(b, "");
|
|
53
|
-
try {
|
|
54
|
-
if ((await Pe(String(e.get(c)), r)).valid) {
|
|
55
|
-
try {
|
|
56
|
-
const n = await ne(e.get(c), fetch, r);
|
|
57
|
-
n && e.set(i, n, !0);
|
|
58
|
-
} catch {
|
|
59
|
-
}
|
|
60
|
-
ue(e.get(c)), e.set(F, !0), e.set(y, !1), e.set(S, "");
|
|
61
|
-
} else
|
|
62
|
-
e.set(b, a().incorrectPassword || "Incorrect password. Please try again.", !0);
|
|
63
|
-
} catch {
|
|
64
|
-
e.set(b, a().unableToVerifyPassword || "Unable to verify password. Please try again.", !0);
|
|
65
|
-
} finally {
|
|
66
|
-
e.set(U, !1);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
function Q() {
|
|
71
|
-
e.set(y, !1), x() && x()();
|
|
72
|
-
}
|
|
73
|
-
let D = e.state(""), V = e.state(0);
|
|
74
|
-
async function W(t) {
|
|
75
|
-
const r = await Ce(String(e.get(c)), t);
|
|
76
|
-
return r.valid ? (e.set(D, r.code || t, !0), e.set(V, r.amount || 0, !0), {
|
|
77
|
-
code: r.code || t,
|
|
78
|
-
isApplied: !0,
|
|
79
|
-
isValidating: !1,
|
|
80
|
-
error: "",
|
|
81
|
-
hint: `${(r.code || t).toUpperCase()} applied`,
|
|
82
|
-
discountAmount: r.amount || 0,
|
|
83
|
-
discountType: r.discountType === "percentage" ? "%" : r.discountType === "fixed" ? "$" : "",
|
|
84
|
-
discountTicketIds: [],
|
|
85
|
-
revealHiddenTickets: r.revealHiddenTickets || !1,
|
|
86
|
-
revealTicketIds: r.revealTicketIds || []
|
|
87
|
-
}) : {
|
|
88
|
-
code: t,
|
|
89
|
-
isApplied: !1,
|
|
90
|
-
isValidating: !1,
|
|
91
|
-
error: r.error || "Invalid promo code",
|
|
92
|
-
hint: "",
|
|
93
|
-
discountAmount: 0,
|
|
94
|
-
discountType: "",
|
|
95
|
-
discountTicketIds: [],
|
|
96
|
-
revealHiddenTickets: !1,
|
|
97
|
-
revealTicketIds: []
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function X() {
|
|
101
|
-
e.set(D, ""), e.set(V, 0);
|
|
102
|
-
}
|
|
103
|
-
async function Z(t) {
|
|
104
|
-
if (!e.get(w)) return;
|
|
105
|
-
const r = {}, d = {};
|
|
106
|
-
for (const s of t.lines)
|
|
107
|
-
r[s.ticketId] = s.quantity, e.get(w).tickets.find((z) => z.id === s.ticketId)?.isDonation && (d[s.ticketId] = s.unitPrice);
|
|
108
|
-
Se({
|
|
109
|
-
eventID: String(e.get(c)),
|
|
110
|
-
quantities: r,
|
|
111
|
-
donationAmounts: d,
|
|
112
|
-
promocode: e.get(D),
|
|
113
|
-
promoDiscountAmount: e.get(V),
|
|
114
|
-
tickets: e.get(w).tickets.map((s) => ({
|
|
115
|
-
ID: s.id,
|
|
116
|
-
name: s.name,
|
|
117
|
-
price: s.price,
|
|
118
|
-
type: String(s.ticketType || 0),
|
|
119
|
-
visibility: String(s.isHidden ? 1 : 0),
|
|
120
|
-
salesChannel: "0"
|
|
121
|
-
}))
|
|
122
|
-
});
|
|
123
|
-
const n = await De({
|
|
124
|
-
eventID: e.get(c),
|
|
125
|
-
quantities: r,
|
|
126
|
-
promoCode: e.get(D) || void 0
|
|
127
|
-
});
|
|
128
|
-
if (!n?.success) {
|
|
129
|
-
Ae.error(n?.error || a().failedToCompleteOrder || "Failed to complete order. Please try again.");
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
H() ? H()(e.get(c), e.get(J), e.get(i)) : L(Oe(e.get(c), e.get(J)));
|
|
133
|
-
}
|
|
134
|
-
function $(t) {
|
|
135
|
-
t.id ? L(ie(t.id, t.slug)) : (oe.warn("Collection event missing id, navigating by slug only"), L(Ne(t.slug)));
|
|
136
|
-
}
|
|
137
|
-
function ee(t) {
|
|
138
|
-
B() ? B()(Te(t.id), t.slug) : L(ie(t.id, t.slug));
|
|
139
|
-
}
|
|
140
|
-
Le(async () => {
|
|
141
|
-
if (!e.get(i) && E()) {
|
|
142
|
-
try {
|
|
143
|
-
const n = await ne(E());
|
|
144
|
-
e.set(i, n, !0);
|
|
145
|
-
} catch (n) {
|
|
146
|
-
e.set(O, n.message || a().failedToLoadEvent || "Failed to load event", !0), e.set(N, !1);
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
e.set(N, !1);
|
|
150
|
-
}
|
|
151
|
-
if (!e.get(i)) return;
|
|
152
|
-
const t = e.get(i).ID || e.get(i).id;
|
|
153
|
-
t && _e(t);
|
|
154
|
-
const r = e.get(i).eventSeriesId || 0, d = e.get(i).venueID || e.get(i).venueId || 0;
|
|
155
|
-
if (r > 0 && d > 0)
|
|
156
|
-
try {
|
|
157
|
-
const n = await Ee(r, d);
|
|
158
|
-
Array.isArray(n) && n.length > 0 && e.set(
|
|
159
|
-
R,
|
|
160
|
-
n.map((s) => ({
|
|
161
|
-
id: s.id,
|
|
162
|
-
slug: s.slug || "",
|
|
163
|
-
startDateTime: s.startDateTime,
|
|
164
|
-
endDateTime: s.endDateTime || "",
|
|
165
|
-
status: s.ctaState?.reason === "sold_out" ? "sold_out" : "on_sale",
|
|
166
|
-
ctaText: s.ctaState?.text || "Get Tickets",
|
|
167
|
-
ctaDisabled: s.ctaState?.disabled || !1
|
|
168
|
-
})),
|
|
169
|
-
!0
|
|
170
|
-
);
|
|
171
|
-
} catch {
|
|
172
|
-
}
|
|
173
|
-
e.get(Y) && !K(e.get(c)) && e.set(y, !0);
|
|
174
|
-
});
|
|
175
|
-
var te = e.comment(), ve = e.first_child(te);
|
|
176
|
-
{
|
|
177
|
-
var fe = (t) => {
|
|
178
|
-
var r = e.comment(), d = e.first_child(r);
|
|
179
|
-
e.component(d, () => e.get(C), (n, s) => {
|
|
180
|
-
s(n, {
|
|
181
|
-
get rawEvent() {
|
|
182
|
-
return _();
|
|
183
|
-
},
|
|
184
|
-
get eventId() {
|
|
185
|
-
return E();
|
|
186
|
-
},
|
|
187
|
-
get slug() {
|
|
188
|
-
return G();
|
|
189
|
-
},
|
|
190
|
-
get currentEventId() {
|
|
191
|
-
return de();
|
|
192
|
-
},
|
|
193
|
-
get onNavigateBack() {
|
|
194
|
-
return x();
|
|
195
|
-
},
|
|
196
|
-
get onBuyTickets() {
|
|
197
|
-
return B();
|
|
198
|
-
},
|
|
199
|
-
get organizationId() {
|
|
200
|
-
return le();
|
|
201
|
-
},
|
|
202
|
-
get labels() {
|
|
203
|
-
return a();
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
}), e.append(t, r);
|
|
207
|
-
}, pe = (t) => {
|
|
208
|
-
var r = Me(), d = e.first_child(r);
|
|
209
|
-
{
|
|
210
|
-
var n = (u) => {
|
|
211
|
-
var l = Re(), v = e.child(l), h = e.child(v, !0);
|
|
212
|
-
e.reset(v), e.reset(l), e.template_effect(() => e.set_text(h, a().loadingEvent || "Loading event...")), e.append(u, l);
|
|
213
|
-
}, s = (u) => {
|
|
214
|
-
var l = Ve(), v = e.child(l), h = e.child(v);
|
|
215
|
-
e.reset(v);
|
|
216
|
-
var P = e.sibling(v, 2);
|
|
217
|
-
{
|
|
218
|
-
var f = (g) => {
|
|
219
|
-
var p = Ue(), A = e.child(p, !0);
|
|
220
|
-
e.reset(p), e.template_effect(() => e.set_text(A, a().goBack || "Go back")), e.delegated("click", p, function(...I) {
|
|
221
|
-
x()?.apply(this, I);
|
|
222
|
-
}), e.append(g, p);
|
|
223
|
-
};
|
|
224
|
-
e.if(P, (g) => {
|
|
225
|
-
x() && g(f);
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
e.reset(l), e.template_effect(() => e.set_text(h, `${(a().errorPrefix || "Error:") ?? ""} ${e.get(O) ?? ""}`)), e.append(u, l);
|
|
229
|
-
}, re = (u) => {
|
|
230
|
-
var l = e.comment(), v = e.first_child(l);
|
|
231
|
-
{
|
|
232
|
-
var h = (f) => {
|
|
233
|
-
var g = ze(), p = e.child(g), A = e.child(p), I = e.child(A), me = e.child(I);
|
|
234
|
-
Ie(me, { size: 32 }), e.reset(I);
|
|
235
|
-
var M = e.sibling(I, 2), he = e.child(M, !0);
|
|
236
|
-
e.reset(M);
|
|
237
|
-
var q = e.sibling(M, 2), ke = e.child(q, !0);
|
|
238
|
-
e.reset(q);
|
|
239
|
-
var j = e.sibling(q, 2), we = e.child(j, !0);
|
|
240
|
-
e.reset(j), e.reset(A), e.reset(p);
|
|
241
|
-
var se = e.sibling(p, 2), ye = e.child(se);
|
|
242
|
-
ae(ye, {
|
|
243
|
-
get event() {
|
|
244
|
-
return e.get(w);
|
|
245
|
-
},
|
|
246
|
-
onCheckout: Z,
|
|
247
|
-
onPromoApply: W,
|
|
248
|
-
onPromoRemove: X,
|
|
249
|
-
onCollectionEventClick: $,
|
|
250
|
-
onShowtimeClick: ee
|
|
251
|
-
}), e.reset(se), e.reset(g), e.template_effect(() => {
|
|
252
|
-
e.set_text(he, a().passwordProtectedTitle || "This event is password protected"), e.set_text(ke, a().passwordProtectedDescription || "Enter the event password to view details and purchase tickets."), e.set_text(we, a().enterPassword || "Enter password");
|
|
253
|
-
}), e.delegated("click", j, () => e.set(y, !0)), e.append(f, g);
|
|
254
|
-
}, P = (f) => {
|
|
255
|
-
ae(f, {
|
|
256
|
-
get event() {
|
|
257
|
-
return e.get(w);
|
|
258
|
-
},
|
|
259
|
-
onCheckout: Z,
|
|
260
|
-
onPromoApply: W,
|
|
261
|
-
onPromoRemove: X,
|
|
262
|
-
onCollectionEventClick: $,
|
|
263
|
-
onShowtimeClick: ee
|
|
264
|
-
});
|
|
265
|
-
};
|
|
266
|
-
e.if(v, (f) => {
|
|
267
|
-
e.get(ce) ? f(h) : f(P, !1);
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
e.append(u, l);
|
|
271
|
-
};
|
|
272
|
-
e.if(d, (u) => {
|
|
273
|
-
e.get(N) ? u(n) : e.get(O) ? u(s, 1) : e.get(w) && u(re, 2);
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
var z = e.sibling(d, 2);
|
|
277
|
-
{
|
|
278
|
-
let u = e.derived(() => a().enterEventPassword || "Enter event password"), l = e.derived(() => a().passwordModalDescription || "This event requires a password to view. Please enter the password provided by the event organizer."), v = e.derived(() => a().passwordLabel || "Password"), h = e.derived(() => !!e.get(b)), P = e.derived(() => a().unlockEvent || "Unlock event"), f = e.derived(() => a().goBack || "Go back");
|
|
279
|
-
xe(z, {
|
|
280
|
-
size: "md",
|
|
281
|
-
get title() {
|
|
282
|
-
return e.get(u);
|
|
283
|
-
},
|
|
284
|
-
get description() {
|
|
285
|
-
return e.get(l);
|
|
286
|
-
},
|
|
287
|
-
get inputLabel() {
|
|
288
|
-
return e.get(v);
|
|
289
|
-
},
|
|
290
|
-
inputType: "password",
|
|
291
|
-
inputRequired: !0,
|
|
292
|
-
get errorMessage() {
|
|
293
|
-
return e.get(b);
|
|
294
|
-
},
|
|
295
|
-
get showError() {
|
|
296
|
-
return e.get(h);
|
|
297
|
-
},
|
|
298
|
-
get primaryButtonText() {
|
|
299
|
-
return e.get(P);
|
|
300
|
-
},
|
|
301
|
-
get secondaryButtonText() {
|
|
302
|
-
return e.get(f);
|
|
303
|
-
},
|
|
304
|
-
get loading() {
|
|
305
|
-
return e.get(U);
|
|
306
|
-
},
|
|
307
|
-
onconfirm: ge,
|
|
308
|
-
oncancel: Q,
|
|
309
|
-
onclose: Q,
|
|
310
|
-
get open() {
|
|
311
|
-
return e.get(y);
|
|
312
|
-
},
|
|
313
|
-
set open(g) {
|
|
314
|
-
e.set(y, g, !0);
|
|
315
|
-
},
|
|
316
|
-
get inputValue() {
|
|
317
|
-
return e.get(S);
|
|
318
|
-
},
|
|
319
|
-
set inputValue(g) {
|
|
320
|
-
e.set(S, g, !0);
|
|
321
|
-
}
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
e.append(t, r);
|
|
325
|
-
};
|
|
326
|
-
e.if(ve, (t) => {
|
|
327
|
-
e.get(T) && e.get(C) ? t(fe) : t(pe, !1);
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
e.append(m, te), e.pop();
|
|
331
|
-
}
|
|
332
|
-
e.delegate(["click"]);
|
|
333
|
-
export {
|
|
334
|
-
Xe as default
|
|
335
|
-
};
|
|
336
|
-
//# sourceMappingURL=EventPage-DxiAuBVc.js.map
|