@getmicdrop/venue-calendar 4.0.94 → 4.0.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CartView-hnrXbE_O.js → CartView-Cq0DU1Cy.js} +101 -101
- package/dist/{CartView-hnrXbE_O.js.map → CartView-Cq0DU1Cy.js.map} +1 -1
- package/dist/{Checkout-Bvre3lYs.js → Checkout-BA43iGDc.js} +263 -263
- package/dist/Checkout-BA43iGDc.js.map +1 -0
- package/dist/{Checkout-C4Kr5pVp.js → Checkout-BV5f49vY.js} +3 -3
- package/dist/{Checkout-C4Kr5pVp.js.map → Checkout-BV5f49vY.js.map} +1 -1
- package/dist/{CheckoutTimer-D2HnWYm7.js → CheckoutTimer-KyKyInco.js} +5 -5
- package/dist/{CheckoutTimer-D2HnWYm7.js.map → CheckoutTimer-KyKyInco.js.map} +1 -1
- package/dist/{ClockIcon-DA4wXK5Q.js → ClockIcon-BD24dBol.js} +2 -2
- package/dist/{ClockIcon-DA4wXK5Q.js.map → ClockIcon-BD24dBol.js.map} +1 -1
- package/dist/{CollectionView-DU1lTGU_.js → CollectionView-CKIxku9-.js} +18 -18
- package/dist/{CollectionView-DU1lTGU_.js.map → CollectionView-CKIxku9-.js.map} +1 -1
- package/dist/{Event-BuOnGjPB.js → Event-BPdt1Io5.js} +174 -169
- package/dist/{Event-BuOnGjPB.js.map → Event-BPdt1Io5.js.map} +1 -1
- package/dist/EventPage-DRnTMGTK.js +575 -0
- package/dist/EventPage-DRnTMGTK.js.map +1 -0
- package/dist/{Heading-D4iOOm-C.js → Heading-pQuVpBrL.js} +8 -8
- package/dist/{Heading-D4iOOm-C.js.map → Heading-pQuVpBrL.js.map} +1 -1
- package/dist/{ScarcityBadge-D37JY-BJ.js → ScarcityBadge-DoYdujCs.js} +7 -7
- package/dist/{ScarcityBadge-D37JY-BJ.js.map → ScarcityBadge-DoYdujCs.js.map} +1 -1
- package/dist/{SeriesPage-CZdi_-a4.js → SeriesPage-vw7Hva9F.js} +7 -7
- package/dist/{SeriesPage-CZdi_-a4.js.map → SeriesPage-vw7Hva9F.js.map} +1 -1
- package/dist/{Spinner-BZYln43S.js → Spinner-BfFZMaDP.js} +5 -5
- package/dist/{Spinner-BZYln43S.js.map → Spinner-BfFZMaDP.js.map} +1 -1
- package/dist/{Success-CQYI5SZO.js → Success-Cjj6CC4w.js} +325 -329
- package/dist/{Success-CQYI5SZO.js.map → Success-Cjj6CC4w.js.map} +1 -1
- package/dist/{Text-C-6sDfH2.js → Text-CT79Zi5n.js} +2 -2
- package/dist/{Text-C-6sDfH2.js.map → Text-CT79Zi5n.js.map} +1 -1
- package/dist/{VenueCalendar-Um0PQCVy.js → VenueCalendar-Cz7_VBC6.js} +1948 -1951
- package/dist/VenueCalendar-Cz7_VBC6.js.map +1 -0
- package/dist/{ViewTicketsEmbed-D2jQ8AMb.js → ViewTicketsEmbed-BvCfoKY3.js} +80 -80
- package/dist/{ViewTicketsEmbed-D2jQ8AMb.js.map → ViewTicketsEmbed-BvCfoKY3.js.map} +1 -1
- package/dist/api/api/events.d.ts +18 -0
- package/dist/api/api/gift-cards.d.ts +19 -0
- package/dist/api/api/index.d.ts +2 -2
- package/dist/api/api/result.d.ts +31 -1
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.cjs.map +1 -1
- package/dist/api/api.mjs +295 -284
- package/dist/api/api.mjs.map +1 -1
- package/dist/{data-toggle-store.svelte-CyXPU9Oq.js → data-toggle-store.svelte-BHwbM34q.js} +2 -2
- package/dist/{data-toggle-store.svelte-CyXPU9Oq.js.map → data-toggle-store.svelte-BHwbM34q.js.map} +1 -1
- package/dist/{labels-BNiV89mT.js → labels-_x9WkVuZ.js} +65 -62
- package/dist/labels-_x9WkVuZ.js.map +1 -0
- package/dist/{modalManager.svelte-D_9E6W5P.js → modalManager.svelte-Csm1WlvP.js} +2 -2
- package/dist/{modalManager.svelte-D_9E6W5P.js.map → modalManager.svelte-Csm1WlvP.js.map} +1 -1
- package/dist/{transform-HKz55B2D.js → transform-WRPgSKLN.js} +6 -6
- package/dist/{transform-HKz55B2D.js.map → transform-WRPgSKLN.js.map} +1 -1
- package/dist/venue-calendar.es.js +1 -1
- package/dist/venue-calendar.iife.js +33 -33
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +36 -36
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +2 -2
- package/dist/Checkout-Bvre3lYs.js.map +0 -1
- package/dist/EventPage-vBSbuSaG.js +0 -566
- package/dist/EventPage-vBSbuSaG.js.map +0 -1
- package/dist/VenueCalendar-Um0PQCVy.js.map +0 -1
- package/dist/labels-BNiV89mT.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labels-_x9WkVuZ.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/CalendarIcon.svelte","../node_modules/@getmicdrop/svelte-components/dist/datetime/local.js","../src/lib/api/cta.ts","../src/lib/public-calendar-flow/defaults.ts","../src/lib/public-calendar-flow/OrderSummary.svelte","../src/lib/public-calendar-flow/i18n/labels.js"],"sourcesContent":["<script lang=\"ts\">\n /**\n * Calendar — Phosphor icon (canonical Micdrop icon family).\n * Outline by default; pass `weight=\"fill\"` for solid, or let a stateful parent\n * (NavItem / Tabs / BottomNav / status badge) drive it via icon-weight context.\n */\n import { useIconWeight, type IconWeight } from './iconWeight.js';\n\n interface Props {\n /** Pixel size (width + height). */\n size?: string;\n /** Icon color; defaults to `currentColor` (inherits text color). */\n color?: string;\n /** Extra classes. */\n class?: string;\n /** `regular` (outline) or `fill` (solid). Overrides ambient state weight. */\n weight?: IconWeight;\n }\n\n let { size = '24', color = 'currentColor', class: className = '', weight }: Props = $props();\n\n const ctx = useIconWeight();\n let resolved: IconWeight = $derived(weight ?? ctx?.weight ?? 'regular');\n</script>\n\n<svg\n class={className}\n aria-hidden=\"true\"\n width={size}\n height={size}\n viewBox=\"0 0 256 256\"\n fill=\"currentColor\"\n style:color={color}\n xmlns=\"http://www.w3.org/2000/svg\"\n>\n {#if resolved === 'fill'}<path d=\"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM112,184a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm56-8a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136a23.76,23.76,0,0,1-4.84,14.45L152,176ZM48,80V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80Z\"/>{:else}<rect x=\"40\" y=\"40\" width=\"176\" height=\"176\" rx=\"8\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><line x1=\"176\" y1=\"24\" x2=\"176\" y2=\"56\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><line x1=\"80\" y1=\"24\" x2=\"80\" y2=\"56\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><line x1=\"40\" y1=\"88\" x2=\"216\" y2=\"88\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><polyline points=\"88 128 104 120 104 184\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><path d=\"M138.14,128a16,16,0,1,1,26.64,17.63L136,184h32\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/>{/if}\n</svg>\n","/**\n * Browser-local date helpers — calendar chrome & `<input type=\"datetime-local\">`.\n *\n * These are the ONE exception to the module's golden rule (\"timezone is always\n * required\"). They operate on a JavaScript `Date` in the **browser's own local\n * timezone**, with NO IANA timezone argument and NO UTC conversion. They exist\n * for the cases where browser-local IS the correct semantic:\n *\n * - Scheduling / calendar-grid chrome that reflects the operator's own clock.\n * - Producing the `YYYY-MM-DD` / `YYYY-MM-DDTHH:mm` strings that native\n * `<input type=\"date\">` / `<input type=\"datetime-local\">` require (those\n * inputs are defined to read/write **local** wall-clock time, never UTC).\n *\n * The distinction from the venue-timezone formatters in `./format.ts` is\n * deliberate and load-bearing — keep it unmistakable:\n *\n * | Concern | Use | From |\n * |---------------------------------|-----------------------------------|---------------|\n * | Venue/event display time | `formatDayOfWeek(utcIso, tz)` | `./format.ts` |\n * | Operator's own clock / inputs | `formatLocalDayOfWeek(date)` | this file |\n *\n * Name-collision resolution (Atlas AUDIT #17): the venue-tz `formatDayOfWeek`\n * (UTC ISO + IANA tz) keeps the canonical name in `format.ts`; the browser-local\n * variant (a `Date`, no tz) is named `formatLocalDayOfWeek` here so the two can\n * never be confused at a call site.\n *\n * @module datetime/local\n */\nimport { getUserLocale } from './timezone.js';\n/**\n * Pads a number to two digits (e.g. `5` -> `\"05\"`).\n */\nfunction pad2(n) {\n return n < 10 ? `0${n}` : String(n);\n}\n/**\n * Current local date+time as an HTML `<input type=\"datetime-local\">` value.\n *\n * Format: `YYYY-MM-DDTHH:mm` (no seconds, no timezone) — exactly the value\n * format the native control reads and writes. Uses the browser's local clock;\n * does NOT convert to/from UTC.\n *\n * @returns Local-time string in `YYYY-MM-DDTHH:mm` form.\n *\n * @example\n * getCurrentDateTimeLocalFormat() // \"2026-06-09T14:30\" (in the viewer's tz)\n */\nexport function getCurrentDateTimeLocalFormat() {\n const now = new Date();\n return (`${now.getFullYear()}-${pad2(now.getMonth() + 1)}-${pad2(now.getDate())}` +\n `T${pad2(now.getHours())}:${pad2(now.getMinutes())}`);\n}\n/**\n * Formats a `Date` as a `YYYY-MM-DD` string in the **browser's local timezone**.\n *\n * This is the value format for `<input type=\"date\">`. It reads the local\n * wall-clock parts (`getFullYear`/`getMonth`/`getDate`) — it does NOT use\n * `toISOString()` (which would shift to UTC and can roll the date across\n * midnight). Use this when \"the day on the operator's calendar\" is what matters.\n *\n * @param date - The date to format (interpreted in browser-local time).\n * @returns Local date string in `YYYY-MM-DD` form.\n *\n * @example\n * formatLocalDate(new Date(2026, 5, 9)) // \"2026-06-09\"\n */\nexport function formatLocalDate(date) {\n return (`${date.getFullYear()}-${pad2(date.getMonth() + 1)}-${pad2(date.getDate())}`);\n}\n/**\n * Formats a `Date`'s weekday in the **browser's local timezone**.\n *\n * The browser-local sibling of the venue-timezone {@link import('./format.js').formatDayOfWeek}\n * (which takes a UTC ISO string + IANA timezone). This one takes a plain `Date`\n * and renders its weekday in local time — for calendar chrome where the\n * operator's own clock is the reference.\n *\n * @param date - The date whose weekday to format (browser-local).\n * @param full - If `true` (default), returns the full name (\"Monday\");\n * if `false`, the short name (\"Mon\").\n * @param locale - BCP-47 locale tag. Defaults to the viewer's resolved locale\n * via {@link import('./timezone.js').getUserLocale}. An app with its own i18n\n * locale should pass it explicitly.\n * @returns Localized weekday name in browser-local time.\n *\n * @example\n * formatLocalDayOfWeek(new Date(2026, 5, 8)) // \"Monday\"\n * formatLocalDayOfWeek(new Date(2026, 5, 8), false) // \"Mon\"\n */\nexport function formatLocalDayOfWeek(date, full = true, locale = getUserLocale()) {\n return new Intl.DateTimeFormat(locale, {\n weekday: full ? 'long' : 'short',\n }).format(date);\n}\n/**\n * Formats a `Date` in the **browser's local timezone** with caller-supplied\n * Intl options — the generic display-label formatter for viewer-local picker\n * chrome (single/range date pickers, month-year headers, day cells).\n *\n * Browser-local sibling of the venue-timezone formatters in `./format.ts`: it\n * renders the Date's local wall-clock parts (NO IANA timezone argument, NO UTC\n * conversion) via `Intl.DateTimeFormat`. This is the honest canonical home for\n * the labels the deprecated `formatDate` in `utils/formatters` used to produce\n * for viewer-local pickers — but it injects NO default field set: the caller's\n * `options` are authoritative (the pickers already pass fully-specified option\n * objects). The `'en-US'` locale default preserves the historical picker output.\n *\n * @param date - The date to format (interpreted in browser-local time).\n * @param options - Intl formatting options (authoritative; no defaults merged).\n * @param locale - BCP-47 locale tag. Defaults to `'en-US'` to match the\n * historical picker label output.\n * @returns The localized label in browser-local time.\n *\n * @example\n * formatLocal(new Date(2026, 5, 9), { weekday: 'long', month: 'long', day: 'numeric', year: 'numeric' })\n * // \"Tuesday, June 9, 2026\"\n */\nexport function formatLocal(date, options, locale = 'en-US') {\n return new Intl.DateTimeFormat(locale, options).format(date);\n}\n","/**\n * CTA state computation.\n *\n * Pure function (no I/O) — derives the buy-button state from an event and\n * its ticket list. Lives in `api/` because it is the canonical, single\n * source of truth that replaces the duplicate implementations previously\n * scattered across utils/api.js, core/api-client.js, and a few components.\n */\n\n// Import from the specific subpath (not the bare entry) so the api/\n// bundle doesn't pull in the entire SC component graph (Accordion etc.)\n// and break `npm run build:api`. `formatLocal` is the sanctioned browser-local\n// (no-timezone) Intl label home — these \"On sale …\" countdown labels render in\n// the viewer's own clock, so no venue timezone applies. The datetime subpath is\n// leaf/component-free; only `formatLocal` (→ Intl) is pulled, no date-fns.\nimport { formatLocal } from '@getmicdrop/svelte-components/datetime';\n// Hidden-ticket predicate from the `/transforms` leaf subpath (no component\n// graph, so `npm run build:api` stays clean). SC's copy was pinned FROM this\n// body (dedup #392) and additionally honours the backend-resolved\n// `effectiveSales*` window for relative-offset tickets (#388). Imported (not\n// just re-exported) so it stays in local scope for `computeCtaState` below.\nimport { isHiddenTicketPurchasable } from '@getmicdrop/svelte-components/transforms';\n\nexport interface CtaStateOptions {\n cancelled?: boolean;\n isRegistration?: boolean;\n waitlistEnabled?: boolean;\n}\n\nexport interface CtaState {\n text: string;\n disabled: boolean;\n reason:\n | 'cancelled'\n | 'event_past'\n | 'no_tickets'\n | 'available'\n | 'coming_soon'\n | 'sold_out_waitlist'\n | 'sold_out'\n | 'sales_ended'\n | 'hidden_only';\n}\n\ninterface CtaEvent {\n startDateTime?: string | null;\n endDateTime?: string | null;\n hasPurchasableHiddenTickets?: boolean;\n}\n\ninterface CtaTicket {\n salesChannel?: number;\n salesBegin?: string | null;\n salesStart?: string | null;\n saleBegin?: string | null;\n onSaleStart?: string | null;\n salesEnd?: string | null;\n saleEnd?: string | null;\n onSaleEnd?: string | null;\n remainingCapacity?: number | null;\n quantityRemaining?: number | null;\n quantity?: number | null;\n soldOut?: boolean;\n isHidden?: boolean;\n visibility?: number;\n}\n\n// A hidden ticket (visibility>=2 or isHidden) that's still on sale drives the\n// \"Sales ended\" / \"Sold out\" / \"No tickets\" → \"Get tickets\" override. The user\n// just needs the promo code to see it. Re-exported from the SC canonical so\n// existing consumers (cta.test.ts, computeCtaState) keep their import path while\n// the single-source body lives in SC (dedup #392).\nexport { isHiddenTicketPurchasable };\n\nexport function computeCtaState(\n event: CtaEvent,\n tickets: CtaTicket[] | undefined,\n options: CtaStateOptions = {}\n): CtaState {\n const {\n cancelled = false,\n isRegistration = false,\n waitlistEnabled = false,\n } = options;\n const now = new Date();\n\n if (cancelled)\n return { text: 'Cancelled', disabled: true, reason: 'cancelled' };\n\n const eventEnd = event.endDateTime || event.startDateTime;\n if (eventEnd && new Date(eventEnd) < now) {\n return { text: 'Sales ended', disabled: true, reason: 'event_past' };\n }\n\n const hiddenAvailable =\n event?.hasPurchasableHiddenTickets === true ||\n (Array.isArray(tickets) && tickets.some(isHiddenTicketPurchasable));\n\n const publicTickets = (tickets || []).filter(\n t =>\n t.salesChannel !== 2 &&\n !t.isHidden &&\n !(typeof t.visibility === 'number' && t.visibility >= 2)\n );\n if (publicTickets.length === 0) {\n if (hiddenAvailable) {\n return {\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\n disabled: false,\n reason: 'hidden_only',\n };\n }\n return {\n text: 'No tickets available',\n disabled: true,\n reason: 'no_tickets',\n };\n }\n\n let hasPurchasable = false;\n let allSoldOut = true;\n let allComingSoon = true;\n let earliestSalesStart: Date | null = null;\n\n for (const ticket of publicTickets) {\n const salesBegin =\n ticket.salesBegin ||\n ticket.salesStart ||\n ticket.saleBegin ||\n ticket.onSaleStart;\n const salesEnd = ticket.salesEnd || ticket.saleEnd || ticket.onSaleEnd;\n const remaining =\n ticket.remainingCapacity ?? ticket.quantityRemaining ?? ticket.quantity;\n const isSoldOut =\n ticket.soldOut ||\n (remaining !== null && remaining !== undefined && remaining <= 0);\n\n const isScheduled = salesBegin ? new Date(salesBegin) > now : false;\n const hasSalesEnded = salesEnd ? new Date(salesEnd) < now : false;\n const isPurchasable = !isSoldOut && !isScheduled && !hasSalesEnded;\n\n if (isPurchasable) hasPurchasable = true;\n if (!isSoldOut) allSoldOut = false;\n if (!isScheduled) allComingSoon = false;\n\n if (isScheduled && salesBegin && !isSoldOut && !hasSalesEnded) {\n const startDate = new Date(salesBegin);\n if (!earliestSalesStart || startDate < earliestSalesStart) {\n earliestSalesStart = startDate;\n }\n }\n }\n\n if (hasPurchasable) {\n return {\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\n disabled: false,\n reason: 'available',\n };\n }\n\n if (allComingSoon && earliestSalesStart) {\n if (hiddenAvailable) {\n return {\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\n disabled: false,\n reason: 'hidden_only',\n };\n }\n const diffMs = earliestSalesStart.getTime() - now.getTime();\n const diffHours = diffMs / (1000 * 60 * 60);\n const diffDays = diffMs / (1000 * 60 * 60 * 24);\n // Viewer-local time label (\"8:00 PM\") — the shape shared by the <24h branch\n // and the >7d composite. Matches the deprecated `formatTime(d,{hour12:true})`\n // defaults-merge exactly.\n const timeLabel = (d: Date) =>\n formatLocal(\n d,\n { hour: 'numeric', minute: '2-digit', hour12: true },\n 'en-US'\n );\n let dateText: string;\n if (diffHours < 24) {\n dateText = timeLabel(earliestSalesStart);\n } else if (diffDays <= 7) {\n dateText = formatLocal(\n earliestSalesStart,\n { weekday: 'short', hour: 'numeric', minute: '2-digit', hour12: true },\n 'en-US'\n );\n } else {\n const d = formatLocal(\n earliestSalesStart,\n { month: 'short', day: 'numeric' },\n 'en-US'\n );\n dateText = `${d} ${timeLabel(earliestSalesStart)}`;\n }\n return {\n text: `On sale ${dateText}`,\n disabled: true,\n reason: 'coming_soon',\n };\n }\n\n if (allSoldOut) {\n if (hiddenAvailable) {\n return {\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\n disabled: false,\n reason: 'hidden_only',\n };\n }\n if (waitlistEnabled) {\n return {\n text: 'Join Waitlist',\n disabled: false,\n reason: 'sold_out_waitlist',\n };\n }\n return { text: 'Sold out', disabled: true, reason: 'sold_out' };\n }\n\n if (hiddenAvailable) {\n return {\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\n disabled: false,\n reason: 'hidden_only',\n };\n }\n\n return { text: 'Sales ended', disabled: true, reason: 'sales_ended' };\n}\n","// @currency-escape: feeCents / 100 in calculateServiceFee is arithmetic,\n// not display. Produces a dollar-magnitude number used in the fee formula\n// `price * (feePercentage / 100) + feeCents / 100`. Per Atlas\n// utility-currency convergence record; the no-handrolled-currency\n// ESLint rule's divideByHundred detector treats variable-name `Cents`\n// as drift but here it's real math.\n\n// Premium Ticket Experience — Constants & Defaults\n// Used by all design variants. DO NOT MODIFY per-variant.\n\n// This file is the canonical formatter module for public-calendar-flow: it\n// wraps + re-exports the timezone-aware production date/time formatters, plus\n// the shared sales-countdown formatter (formatSmartSalesDate) hoisted into\n// svelte-components (SC #471). No raw Intl date formatting lives here anymore.\n\nimport type {\n EventData,\n TicketTypeData,\n ScarcityLevel,\n CtaConfig,\n PromoCodeState,\n} from './types';\nimport { computeCtaState } from '$lib/api';\nimport type { Cents } from '@getmicdrop/svelte-components';\nimport { roundCurrency } from '@getmicdrop/svelte-components';\nimport { formatSmartSalesDate } from '@getmicdrop/svelte-components/utils/formatters';\nimport {\n formatFullDate,\n formatFullDateCompact,\n formatEventTime,\n formatTimeRange,\n formatDoorsTime,\n formatSalesDate,\n formatBrowseDate,\n formatEventDate,\n formatCleanTimeRange,\n getDateParts,\n} from '$lib/utils/datetime.js';\n\n// --- Re-export production date/time formatters (timezone-aware) ---\nexport {\n formatFullDate,\n formatFullDateCompact,\n formatEventTime,\n formatTimeRange,\n formatDoorsTime,\n formatSalesDate,\n formatBrowseDate,\n formatEventDate,\n formatCleanTimeRange,\n getDateParts,\n};\n\n// Shared sales-countdown formatter, adopted from svelte-components (SC #471).\n// Kept as a re-export so public-calendar-flow consumers import it from this\n// module unchanged. English defaults match VC's prior copy; the clock time\n// renders in UTC (matching the production TicketBlock origin) rather than the\n// old copy's viewer-local time.\nexport { formatSmartSalesDate };\n\n// --- Scarcity Badge Rules ---\nexport const SCARCITY_THRESHOLDS = {\n SOLD_OUT: 0,\n URGENT: 0.1, // ≤10% remaining → urgent (\"Only X left\")\n LOW: 0.2, // ≤20% remaining (80%+ sold) → \"Selling fast\"\n MAX_EXACT_COUNT: 20, // Don't show exact count above 20\n} as const;\n\nexport function getScarcityLevel(\n remaining: number,\n total: number\n): ScarcityLevel {\n if (total === 0) return 'none';\n if (remaining <= 0) return 'sold_out';\n const pct = remaining / total;\n if (pct <= SCARCITY_THRESHOLDS.URGENT) return 'urgent';\n if (pct <= SCARCITY_THRESHOLDS.LOW) return 'low';\n return 'none';\n}\n\nexport function getScarcityText(\n level: ScarcityLevel,\n remaining: number,\n context: 'browse' | 'event' | 'ticket',\n options?: { isFree?: boolean }\n): string | null {\n if (level === 'none') return null;\n if (level === 'sold_out') return 'Sold out';\n // No scarcity badges on free events/tickets — nothing to lose = no urgency\n if (options?.isFree) return null;\n if (\n level === 'urgent' &&\n context !== 'browse' &&\n remaining <= SCARCITY_THRESHOLDS.MAX_EXACT_COUNT\n ) {\n return `Only ${remaining} left`;\n }\n if (level === 'low' || level === 'urgent') return 'Selling fast';\n return null;\n}\n\n// --- CTA Rules ---\n// Delegates to production computeCtaState() but adapts our EventData shape.\n// Components keep calling getCtaConfig(event) — internal logic is production-aligned.\nexport function getCtaConfig(event: EventData): CtaConfig {\n // Map our EventData tickets to the shape computeCtaState expects.\n // `isHidden` flows through so computeCtaState can apply the hidden-only\n // \"Sales ended\" → \"Get tickets\" override (MIC-1039).\n const apiTickets = event.tickets.map(t => ({\n salesBegin: t.salesStartDate,\n salesEnd: t.salesEndDate,\n remainingCapacity: t.quantityAvailable,\n totalCapacity: t.quantityTotal,\n soldOut: t.status === 'sold_out',\n salesChannel: 1, // All our tickets are online (not \"at the door only\")\n isHidden: t.isHidden,\n }));\n\n // Handle statuses that computeCtaState doesn't compute from tickets\n if (event.status === 'cancelled') {\n return {\n text: 'Cancelled',\n disabled: true,\n reason: 'This event has been cancelled',\n };\n }\n if (event.status === 'past') {\n return {\n text: 'Event ended',\n disabled: true,\n reason: 'This event has ended',\n };\n }\n\n const result = computeCtaState(\n { startDateTime: event.startDateTime, endDateTime: event.endDateTime },\n apiTickets,\n {\n cancelled: false,\n isRegistration: event.isRegistrationEvent,\n waitlistEnabled: false,\n }\n );\n\n return {\n text: result.text,\n disabled: result.disabled,\n reason: result.disabled ? toFriendlyReason(result.reason) : undefined,\n };\n}\n\n/**\n * computeCtaState() returns machine-enum reasons ('event_past', 'sold_out',\n * 'coming_soon', etc) intended for branching, not display. The BookingWidget\n * and MobileCta render `reason` directly as supplementary copy below the\n * button text — which leaks raw enum strings to users.\n *\n * Map each enum to a friendly sentence, OR return undefined when the button\n * `text` already says everything (\"Sales ended\" / \"Sold out\" — no need for\n * a second line repeating it).\n */\nfunction toFriendlyReason(reason: string | undefined): string | undefined {\n if (!reason) return undefined;\n switch (reason) {\n case 'cancelled':\n return 'This event has been cancelled.';\n case 'event_past':\n return 'This event has already happened.';\n case 'no_tickets':\n return 'There are no tickets configured for this event.';\n case 'coming_soon':\n return undefined; // text already shows \"On sale <date>\"\n case 'sold_out':\n return undefined; // text already shows \"Sold out\"\n case 'sold_out_waitlist':\n return 'All tickets are claimed. Join the waitlist to be notified.';\n case 'sales_ended':\n return undefined; // text already shows \"Sales ended\"\n default:\n return undefined; // unknown enum — never leak it\n }\n}\n\n// --- Price Display Rules (from DECISIONS.md #1) ---\nexport function getPriceDisplay(event: EventData): string | null {\n const visibleTickets = event.tickets.filter(\n t => t.status === 'on_sale' && !t.isHidden\n );\n if (visibleTickets.length === 0) return null;\n\n const hasDonation = visibleTickets.some(\n t => t.isDonation || t.ticketType === 2\n );\n const paidTickets = visibleTickets.filter(\n t => !t.isDonation && t.ticketType !== 2\n );\n const hasFree = paidTickets.some(t => t.price === 0);\n const pricedTickets = paidTickets.filter(t => t.price > 0);\n\n // Only donation tickets → \"Donation\"\n if (pricedTickets.length === 0 && !hasFree && hasDonation) return 'Donation';\n\n // Only free tickets (no paid, no donation) → null (BookingWidget shows \"Free\" via isFreeEvent)\n if (pricedTickets.length === 0 && hasFree) return null;\n\n const minPrice = Math.min(...pricedTickets.map(t => t.price));\n\n // Free + paid → \"Free\" (free dominates the display). Non-donation free tickets\n // outrank the paid options in the headline, matching the shared \"Free\" label\n // every other price surface uses. Returning null here left the widget blank.\n if (hasFree) return 'Free';\n\n // Donation + paid → \"From $X\" (donation is an alternative option)\n if (hasDonation) return `From $${minPrice}`;\n\n // Single paid ticket type → \"$X\"\n if (pricedTickets.length === 1) return `$${minPrice}`;\n\n // Multiple paid ticket types → \"From $X\"\n return `From $${minPrice}`;\n}\n\n// --- Fee Calculation ---\nexport function calculateFee(\n price: number,\n feePercentage: number,\n feeCents: Cents\n): number {\n return roundCurrency(price * (feePercentage / 100) + feeCents / 100);\n}\n\nexport function calculateTax(amount: number, taxPercentage: number): number {\n return roundCurrency(amount * (taxPercentage / 100));\n}\n\n// --- Date Formatting ---\n// PREFERRED: Use the timezone-aware production formatters re-exported above:\n// formatBrowseDate(iso, tz) → \"Fri, Feb 20\"\n// formatFullDateCompact(iso, tz) → \"Friday, February 20\"\n// formatEventTime(iso, tz) → \"8:00 PM\"\n// formatTimeRange(start, end, tz) → \"8:00 PM - 10:00 PM\"\n// formatDoorsTime(doors, tz) → \"7:00 PM\"\n\n// --- Animation Durations ---\nexport const DURATION = {\n instant: 100,\n micro: 150,\n fast: 200,\n normal: 300,\n slow: 400,\n elaborate: 600,\n} as const;\n\n// --- Promo Code State Factory ---\nexport function createDefaultPromoState(): PromoCodeState {\n return {\n code: '',\n isApplied: false,\n isValidating: false,\n error: '',\n hint: '',\n discountAmount: 0,\n discountType: '',\n discountTicketIds: [],\n revealHiddenTickets: false,\n revealTicketIds: [],\n };\n}\n\n// --- Ticket helpers ---\nexport function getAvailableTickets(\n tickets: TicketTypeData[]\n): TicketTypeData[] {\n return tickets.filter(t => !t.isHidden && t.status === 'on_sale');\n}\n","<!-- @style-escape: widget-intentional. -->\n<script lang=\"ts\">\n import type { USD } from '@getmicdrop/svelte-components';\n import { Text, formatCurrency } from '@getmicdrop/svelte-components';\n import type { OrderTotals } from '$lib/public-calendar-flow/types';\n import { formatPriceOrFree } from '$lib/core';\n import { DURATION } from '$lib/public-calendar-flow/defaults';\n\n interface Props {\n orderTotals: OrderTotals;\n labels?: Record<string, string>;\n /**\n * Which section to render.\n * - `full` (default): ticket lines + totals stacked together.\n * - `lines` : ticket-line items only. Use when the parent scrolls\n * this section in a flex column.\n * - `totals` : subtotal/fees/taxes/promo/total only. Use in a fixed\n * footer alongside the action button.\n *\n * Splitting via `lines` / `totals` lets the sticky sidebars scroll\n * just the variable-length ticket list while keeping the summary\n * block and CTA always visible.\n */\n mode?: 'full' | 'lines' | 'totals';\n }\n\n let { orderTotals, labels = {}, mode = 'full' }: Props = $props();\n</script>\n\n<div class=\"space-y-2\" style=\"transition-duration: {DURATION.normal}ms;\">\n {#if mode !== 'totals'}\n <!-- Line items -->\n {#each orderTotals.lines as line (line.ticketId)}\n <div class=\"flex justify-between\">\n <Text size=\"sm\">{line.quantity}x {line.ticketName}</Text>\n <Text size=\"sm\"\n >{line.isDonation\n ? formatCurrency(line.subtotal as USD)\n : formatPriceOrFree(line.subtotal, labels)}</Text\n >\n </div>\n {/each}\n {/if}\n\n {#if mode !== 'lines'}\n <!-- Subtotal. In `totals` mode the parent supplies the separator above\n\t\t this block (BookingWidget wraps the totals block in border-t); a\n\t\t second internal border would render as a double line. Only show\n\t\t the internal border-t in `full` mode where lines + totals stack\n\t\t in one container with no external separator. -->\n {#if mode === 'full' && orderTotals.lines.length > 1}\n <div class=\"flex justify-between pt-1 border-t border-default\">\n <Text size=\"sm\" color=\"muted\">{labels.subtotal || 'Subtotal'}</Text>\n <Text size=\"sm\" color=\"muted\"\n >{formatCurrency(orderTotals.subtotal as USD)}</Text\n >\n </div>\n {:else if orderTotals.lines.length > 1}\n <div class=\"flex justify-between\">\n <Text size=\"sm\" color=\"muted\">{labels.subtotal || 'Subtotal'}</Text>\n <Text size=\"sm\" color=\"muted\"\n >{formatCurrency(orderTotals.subtotal as USD)}</Text\n >\n </div>\n {/if}\n\n <!-- Fees -->\n {#if orderTotals.fees > 0}\n <div class=\"flex justify-between\">\n <Text size=\"sm\" color=\"muted\"\n >{labels.serviceFees || 'Service fees'}</Text\n >\n <Text size=\"sm\" color=\"muted\"\n >{formatCurrency(orderTotals.fees as USD)}</Text\n >\n </div>\n {/if}\n\n <!-- Taxes -->\n {#if orderTotals.taxes > 0}\n <div class=\"flex justify-between\">\n <Text size=\"sm\" color=\"muted\">{labels.taxes || 'Taxes'}</Text>\n <Text size=\"sm\" color=\"muted\"\n >{formatCurrency(orderTotals.taxes as USD)}</Text\n >\n </div>\n {/if}\n\n <!-- Promo discount -->\n {#if orderTotals.promoDiscount > 0}\n <div class=\"flex justify-between\">\n <Text size=\"sm\" color=\"success\"\n >{labels.promoDiscount || 'Promo discount'}</Text\n >\n <Text size=\"sm\" color=\"success\"\n >-{formatCurrency(orderTotals.promoDiscount as USD)}</Text\n >\n </div>\n {/if}\n\n <!-- Gift card — deduction from the amount due; `total` already reflects it -->\n {#if orderTotals.giftCardAmount > 0}\n <div class=\"flex justify-between\">\n <Text size=\"sm\" color=\"success\">{labels.giftCard || 'Gift card'}</Text>\n <Text size=\"sm\" color=\"success\"\n >-{formatCurrency(orderTotals.giftCardAmount as USD)}</Text\n >\n </div>\n {/if}\n\n <!-- Total -->\n <div class=\"flex justify-between pt-2 border-t border-default\">\n <Text size=\"base\" weight=\"semibold\">{labels.total || 'Total'}</Text>\n <Text size=\"base\" weight=\"semibold\"\n >{formatCurrency(orderTotals.total as USD)}</Text\n >\n </div>\n {/if}\n</div>\n","/**\n * Default English labels for public-calendar-flow components.\n * Consumers override via the `labels` prop on any *Main component.\n *\n * Label keys use flat camelCase. For composed strings (e.g. aria-labels),\n * components build them from atomic label parts.\n */\nexport const defaultLabels = {\n // ── Ticket quantity controls ──────────────────────────────────────\n decrease: 'Decrease',\n increase: 'Increase',\n quantity: 'quantity',\n\n // ── Ticket states ─────────────────────────────────────────────────\n soldOut: 'Sold out',\n free: 'Free',\n unavailable: 'Unavailable',\n eventSoldOut: 'This event is sold out',\n\n // ── Price display ─────────────────────────────────────────────────\n includesFees: 'Includes',\n fees: 'fees',\n fee: 'fee',\n\n // ── Checkout CTAs ─────────────────────────────────────────────────\n checkout: 'Checkout',\n getTickets: 'Get tickets',\n selectTickets: 'Select tickets',\n selectTicketsBelow: 'Select tickets below',\n selectTicketsToContinue: 'Select tickets to continue',\n reserveASpot: 'Reserve a spot',\n\n // ── Password modal / gate ─────────────────────────────────────────\n enterPassword: 'Enter Password',\n enterEventPassword: 'Enter event password',\n passwordRequired: 'Password Required',\n passwordRequiredShort: 'Password required',\n eventRequiresPassword: 'This event requires a password to purchase tickets.',\n eventRequiresPasswordAccess: 'This event requires a password to access tickets.',\n enterEventPasswordToView: 'Enter the event password to view tickets.',\n enterEventPasswordToViewAvailable: 'Enter the event password to view available tickets.',\n eventPassword: 'Event password',\n password: 'Password',\n pleaseEnterPassword: 'Please enter the event password',\n pleaseEnterAPassword: 'Please enter a password',\n eventRequiresPasswordShort: 'This event requires a password',\n unlockTickets: 'Unlock tickets',\n cancel: 'Cancel',\n continue: 'Continue',\n submit: 'Submit',\n\n // ── Order summary ─────────────────────────────────────────────────\n subtotal: 'Subtotal',\n serviceFees: 'Service fees',\n taxes: 'Taxes',\n tax: 'Tax',\n promoDiscount: 'Promo discount',\n giftCard: 'Gift card',\n total: 'Total',\n orderSummary: 'Order summary',\n yourOrder: 'Your Order',\n\n // ── Ticket counts (used in CTA buttons) ───────────────────────────\n ticket: 'ticket',\n tickets: 'tickets',\n\n // ── Checkout form (public-calendar-flow) ───────────────────────────────\n yourDetails: 'Your details',\n attendeeDetails: 'Attendee details',\n attendee: 'Attendee',\n sameAsPurchaser: 'Same as purchaser',\n payment: 'Payment',\n noPaymentRequired: 'No payment required',\n freeEventMessage: 'This is a free event. Complete the form above to reserve your spot.',\n firstName: 'First name',\n lastName: 'Last name',\n emailAddress: 'Email address',\n email: 'Email',\n emailPlaceholder: 'you@example.com',\n attendeeEmailPlaceholder: 'attendee@example.com',\n cardNumber: 'Card number',\n cardPlaceholder: '4242 4242 4242 4242',\n expiryDate: 'Expiry date',\n expiryPlaceholder: 'MM / YY',\n cvc: 'CVC',\n cvcPlaceholder: '123',\n keepMeUpdated: 'Keep me updated about this event and similar events',\n agreeToTerms: 'I agree to the terms and conditions',\n goBack: 'Go back',\n loadingPaymentForm: 'Loading secure payment form...',\n\n // ── Checkout form validation ──────────────────────────────────────\n firstNameRequired: 'First name is required',\n lastNameRequired: 'Last name is required',\n emailRequired: 'Email is required',\n emailInvalid: 'Enter a valid email address',\n emailInvalidShort: 'Enter a valid email',\n cardNumberRequired: 'Card number is required',\n expiryRequired: 'Expiry date is required',\n cvcRequired: 'CVC is required',\n mustAgreeTerms: 'You must agree to the terms',\n\n // ── Place order CTAs ──────────────────────────────────────────────\n placeOrder: 'Place order',\n completeOrder: 'Complete order',\n placingOrder: 'Placing order...',\n\n // ── Promo code ────────────────────────────────────────────────────\n havePromoCode: 'Have a promo code?',\n promoCode: 'Promo code',\n enterCode: 'Enter code',\n apply: 'Apply',\n remove: 'Remove',\n removePromoCode: 'Remove promo code',\n applyPromoCode: 'Apply promo code',\n checkingPromoCode: 'Checking promo code',\n checking: 'Checking...',\n promoApplied: 'Promo applied',\n\n // ── Navigation tabs (app-segments) ────────────────────────────────\n about: 'About',\n ticketsTab: 'Tickets',\n eventSections: 'Event sections',\n\n // ── Event details ─────────────────────────────────────────────────\n eventDetails: 'Event details',\n performers: 'Performers',\n faq: 'FAQ',\n frequentlyAskedQuestions: 'Frequently asked questions',\n doors: 'Doors',\n doorsOpenAt: 'Doors open at',\n\n // ── Series occurrences ────────────────────────────────────────────\n upcomingDates: 'Upcoming Dates',\n\n // ── Close / dismiss ───────────────────────────────────────────────\n closeTicketSelection: 'Close ticket selection',\n closeTicketSelector: 'Close ticket selector',\n\n // ── Accessibility ─────────────────────────────────────────────────\n ticketSelection: 'ticket selection',\n ticketsSelected: 'tickets selected',\n view: 'View',\n\n // ── Success page (public-calendar-flow) ────────────────────────────────\n youreIn: \"You're in!\",\n youreRegistered: \"You're registered!\",\n confirmed: 'confirmed',\n viewTickets: 'View tickets',\n order: 'Order',\n confirmationSentTo: 'Confirmation sent to',\n addToCalendar: 'Add to Calendar',\n googleCalendar: 'Google Calendar',\n appleCalendar: 'Apple Calendar (.ics)',\n share: 'Share',\n map: 'Map',\n backToEvent: 'Back to event',\n needHelp: 'Need help?',\n linkCopied: 'Link copied to clipboard!',\n copyLink: 'Copy this link:',\n addToAppleWallet: 'Add to Apple Wallet',\n saveToGoogleWallet: 'Save to Google Wallet',\n\n // ── Session timer / expiration modals ─────────────────────────────\n sessionExpiringSoon: 'Session expiring soon',\n sessionExpiringSoonMessage: 'Your checkout session will expire in {time}. Your selected tickets will be released back to inventory.',\n extensionsRemaining: '{count} extension{plural} remaining',\n continueCheckout: 'Continue checkout',\n okIllHurry: \"OK, I'll hurry\",\n maxExtensionsReached: 'Maximum extensions reached',\n wantToKeepTickets: 'Want to keep your tickets?',\n sessionExpiredMessage: 'Your checkout session has expired and your selected tickets have been released.',\n sessionExpired: 'Session expired',\n reservationTimedOut: 'Your reservation has timed out. Please select your tickets again to continue.',\n keepMyTickets: 'Keep my tickets',\n selectTicketsAgain: 'Select tickets again',\n extendingSession: 'Extending...',\n\n // ── MobileCta ─────────────────────────────────────────────────────\n selectTicketsLabel: 'Select Tickets',\n};\n\n/**\n * Merge user-provided label overrides with the defaults.\n * Shallow merge — any key provided by the consumer wins.\n *\n * @param {Record<string, string>} [userLabels] - Partial label overrides\n * @returns {Record<string, string>} Merged labels object\n */\nexport function mergeLabels(userLabels = {}) {\n return { ...defaultLabels, ...userLabels };\n}\n"],"names":["size","$","$$props","color","className","ctx","useIconWeight","resolved","svg","root_2","path","root","$$render","consequent","alternate","styles","formatLocal","date","options","locale","computeCtaState","event","tickets","cancelled","isRegistration","waitlistEnabled","now","eventEnd","hiddenAvailable","isHiddenTicketPurchasable","publicTickets","t","hasPurchasable","allSoldOut","allComingSoon","earliestSalesStart","ticket","salesBegin","salesEnd","remaining","isSoldOut","isScheduled","hasSalesEnded","startDate","diffMs","diffHours","diffDays","timeLabel","d","dateText","SCARCITY_THRESHOLDS","getScarcityLevel","total","pct","getScarcityText","level","context","getCtaConfig","apiTickets","result","toFriendlyReason","reason","getPriceDisplay","visibleTickets","hasDonation","paidTickets","hasFree","pricedTickets","minPrice","calculateTax","amount","taxPercentage","roundCurrency","DURATION","createDefaultPromoState","labels","mode","div","root_3","node_1","line","div_1","Text","node_2","text","node_3","formatCurrency","formatPriceOrFree","div_2","root_1","node_6","node_7","$0","text_3","div_3","node_8","node_9","text_5","consequent_1","consequent_2","div_4","node_11","node_12","text_7","consequent_3","div_5","node_14","node_15","text_9","consequent_4","div_6","node_17","node_18","text_11","consequent_5","div_7","node_20","node_21","text_13","consequent_6","div_8","node_19","node_22","node_23","text_15","consequent_7","defaultLabels","mergeLabels","userLabels"],"mappings":";;;;;kBAAA;;AAmBE,MAAMA,IAAIC,EAAA,KAAAC,GAAA,QAAA,GAAG,IAAI,GAAEC,0BAAQ,cAAc,GAASC,0BAAY,EAAE;AAEhE,QAAMC,IAAMC,EAAa;AACzB,MAAIC,IAAoBN,EA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EACf,oBAAoB;AAAA,EACpB,kBAAkB;AAAA;AAAA,EAGlB,oBAAoB;AACtB;AASO,SAASC,GAAYC,IAAa,IAAI;AAC3C,SAAO,EAAE,GAAGF,GAAe,GAAGE,EAAU;AAC1C;","x_google_ignoreList":[0,1]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
2
|
import * as e from "svelte/internal/client";
|
|
3
|
-
import {
|
|
3
|
+
import { av as u, aw as d } from "./VenueCalendar-Cz7_VBC6.js";
|
|
4
4
|
var f = e.from_html("<div><!></div>");
|
|
5
5
|
function g(t, s) {
|
|
6
6
|
e.push(s, !0), u();
|
|
@@ -53,4 +53,4 @@ export {
|
|
|
53
53
|
g as M,
|
|
54
54
|
m as c
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=modalManager.svelte-
|
|
56
|
+
//# sourceMappingURL=modalManager.svelte-Csm1WlvP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modalManager.svelte-
|
|
1
|
+
{"version":3,"file":"modalManager.svelte-Csm1WlvP.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalHeader.svelte","../node_modules/@getmicdrop/svelte-components/dist/utils/modalManager.svelte.js"],"sourcesContent":["<script lang=\"ts\">\n import type { Snippet } from 'svelte';\n import { getModalContext } from './context.js';\n import { cn } from '../../utils/classNames.js';\n\n interface Props {\n class?: string;\n children?: Snippet;\n }\n\n let { class: className, children }: Props = $props();\n\n // Validates this component is inside ModalRoot\n getModalContext();\n</script>\n\n<div class={cn('shrink-0 px-6 pt-6 pb-3', className)}>\n {#if children}{@render children()}{/if}\n</div>\n","/**\n * behavior-modal-orchestration canonical (R-MODAL-1/3).\n *\n * Two rune primitives for modal open-state — pick by modal count:\n *\n * - `createModalState<T>()` — ONE modal. Replaces the dominant\n * `let showFooModal = $state(false)` + `let fooData = $state(null)` pair.\n * Use: `modal.isOpen`, `modal.data`, `modal.open(data?)`, `modal.close()`.\n *\n * - `createModalManager<Id>()` — a page with 3+ modals. Replaces N booleans\n * with one registry: `m.open(id, payload?)`, `m.close(id)`, `m.isOpen(id)`,\n * `m.payload(id)`, `m.active`, `m.closeAll()`. Coordinates exclusive-open\n * (opening one closes the others) and focus-return (focus goes back to the\n * element that was active before the first modal opened) in one place,\n * instead of the implicit-by-convention mutual exclusion seen across the\n * 4-modal accounts page and the 3-modal checkout hand-off chains.\n *\n * `createModalState` is lifted verbatim from micdrop-frontend's storeUtils\n * (zero consumers there); `createModalManager` is new — no modal coordinator\n * existed in any of the four repos.\n *\n * ## Binding to `ModalRoot` (`bind()`)\n * Both factories expose a `bind(...)` helper returning the props to spread onto a\n * `ModalRoot`, wiring its open-state to the manager:\n *\n * <ModalRoot {...modals.bind('edit')}>…</ModalRoot> // multi\n * <ModalRoot {...editModal.bind()}>…</ModalRoot> // single\n *\n * `bind()` returns a `{ get open, set open, oncancel }` object. The `open`\n * **getter** keeps `ModalRoot` reading the manager's live open-state (so opening\n * the modal anywhere re-renders it); `oncancel` closes the modal through the\n * manager. `ModalRoot`'s only self-close path (`resetModal`) always fires\n * `oncancel` before flipping its own local `open`, so escape / backdrop dismissal\n * routes back through the manager and the two never desync.\n *\n * This deliberately avoids the foot-gun it replaces: you can't write\n * `bind:open={modals.isOpen('edit')}` (a method call isn't an assignable lvalue),\n * and feeding `bind:open` a `$derived` is the read-only binding runtime bug. The\n * getter + `oncancel` spread sidesteps both — no per-page `$state` boolean, no\n * accidental derived binding. The `set open` setter completes the\n * getter/setter pair so the object also reads/writes cleanly when assigned to\n * programmatically. Scroll-lock + focus-trap stay in `ModalRoot`; the manager\n * owns only open-state, payload, exclusivity, and focus-return.\n */\n/**\n * Reactive open/close state for a single modal, with optional context data.\n *\n * @example\n * const editModal = createModalState<User>();\n * editModal.open(user); // editModal.isOpen === true, editModal.data === user\n * editModal.close(); // isOpen === false, data === null\n *\n * // Compose with ModalRoot by spreading the bind() props:\n * // <ModalRoot {...editModal.bind()}>…</ModalRoot>\n */\nexport function createModalState() {\n let isOpen = $state(false);\n let data = $state(null);\n return {\n get isOpen() {\n return isOpen;\n },\n get data() {\n return data;\n },\n open(newData) {\n data = newData ?? null;\n isOpen = true;\n },\n close() {\n isOpen = false;\n data = null;\n },\n toggle(newData) {\n if (isOpen) {\n isOpen = false;\n data = null;\n }\n else {\n data = newData ?? null;\n isOpen = true;\n }\n },\n bind() {\n return {\n get open() {\n return isOpen;\n },\n set open(value) {\n // Binding-driven open carries no data (data stays null); use the\n // explicit open(data) call when a payload is needed.\n if (value)\n isOpen = true;\n else {\n isOpen = false;\n data = null;\n }\n },\n oncancel() {\n isOpen = false;\n data = null;\n },\n };\n },\n };\n}\n/**\n * Coordinate a set of named modals on one page. See module docs for when to\n * reach for this over `createModalState`.\n *\n * @example\n * const modals = createModalManager<'create' | 'edit' | 'delete'>();\n * modals.open('edit', user);\n * modals.isOpen('edit'); // true\n * modals.payload<User>('edit');\n * modals.open('delete'); // 'edit' auto-closes (exclusive)\n * modals.closeAll(); // focus returns to the original trigger\n *\n * // Compose with ModalRoot by spreading the bind() props:\n * // <ModalRoot {...modals.bind('edit')}>…</ModalRoot>\n */\nexport function createModalManager(options = {}) {\n const exclusive = options.exclusive ?? true;\n const restoreFocus = options.restoreFocus ?? true;\n const modals = $state({});\n let returnFocusEl = null;\n function anyOpen() {\n return Object.values(modals).some((m) => m.open);\n }\n function isOpen(id) {\n return modals[id]?.open ?? false;\n }\n /** Remember the active element when transitioning from \"none open\" → \"open\". */\n function captureReturnFocus() {\n if (!restoreFocus || typeof document === 'undefined')\n return;\n if (!anyOpen()) {\n const el = document.activeElement;\n returnFocusEl = el instanceof HTMLElement ? el : null;\n }\n }\n /** Return focus to the captured trigger once everything is closed. */\n function restoreReturnFocus() {\n if (!restoreFocus)\n return;\n if (!anyOpen() && returnFocusEl) {\n returnFocusEl.focus();\n returnFocusEl = null;\n }\n }\n function open(id, payload) {\n captureReturnFocus();\n if (exclusive) {\n for (const key of Object.keys(modals)) {\n if (key !== id) {\n modals[key].open = false;\n modals[key].payload = null;\n }\n }\n }\n modals[id] = { open: true, payload: payload ?? null };\n }\n function close(id) {\n const entry = modals[id];\n if (entry) {\n entry.open = false;\n entry.payload = null;\n }\n restoreReturnFocus();\n }\n function toggle(id, payload) {\n if (isOpen(id))\n close(id);\n else\n open(id, payload);\n }\n function closeAll() {\n for (const key of Object.keys(modals)) {\n modals[key].open = false;\n modals[key].payload = null;\n }\n restoreReturnFocus();\n }\n return {\n isOpen,\n payload(id) {\n return modals[id]?.payload ?? null;\n },\n get active() {\n return Object.keys(modals).filter((key) => modals[key].open);\n },\n open,\n close,\n toggle,\n closeAll,\n bind(id) {\n return {\n get open() {\n return isOpen(id);\n },\n set open(value) {\n // Binding-driven open carries no payload; use open(id, payload) for that.\n if (value)\n open(id);\n else\n close(id);\n },\n oncancel() {\n close(id);\n },\n };\n },\n };\n}\n"],"names":["getModalContext","div","root","$0","$","cn","$$props","createModalState","isOpen","data","newData","value"],"mappings":";;;;iBAAA;iBAaEA,EAAe;MAGhBC,IAAGC,EAAA,eAAHD,CAAG;;;;;;;;;;UAAHA,CAAG,wCAAHA,GAAG,GAAAE,CAAA,GAAA,CAAA,MAAAC,EAAA,KAAQC,EAAG,2BAAyBC,EAAA,KAAA,CAAA,CAAA,CAAA,eAAvCL,CAAG;AAFI;ACyCD,SAASM,IAAmB;AAC/B,MAAIC,IAASJ,EAAA,MAAO,EAAK,GACrBK,IAAOL,EAAA,MAAO,IAAI;AACtB,SAAM;AAAA,IACF,IAAI,SAAS;AACT,mBAAOI,CAAM;AAAA,IACjB;AAAA,IACA,IAAI,OAAO;AACP,mBAAOC,CAAI;AAAA,IACf;AAAA,IACA,KAAKC,GAAS;YACVD,GAAOC,KAAW,MAAI,EAAA,GACtBN,EAAA,IAAAI,GAAS,EAAI;AAAA,IACjB;AAAA,IACA,QAAQ;AACJ,MAAAJ,EAAA,IAAAI,GAAS,EAAK,GACdJ,EAAA,IAAAK,GAAO,IAAI;AAAA,IACf;AAAA,IACA,OAAOC,GAAS;AACZ,MAAEN,EAAA,IAAEI,CAAM,KACNJ,EAAA,IAAAI,GAAS,EAAK,GACdJ,EAAA,IAAAK,GAAO,IAAI,YAGXA,GAAOC,KAAW,MAAI,EAAA,GACtBN,EAAA,IAAAI,GAAS,EAAI;AAAA,IAErB;AAAA,IACA,OAAO;AACH,aAAM;AAAA,QACF,IAAI,OAAO;AACP,uBAAOA,CAAM;AAAA,QACjB;AAAA,QACA,IAAI,KAAKG,GAAO;AAGZ,UAAIA,IAAKP,EAAA,IACLI,GAAS,EAAI,KAEbJ,EAAA,IAAAI,GAAS,EAAK,GACdJ,EAAA,IAAAK,GAAO,IAAI;AAAA,QAEnB;AAAA,QACA,WAAW;AACP,UAAAL,EAAA,IAAAI,GAAS,EAAK,GACdJ,EAAA,IAAAK,GAAO,IAAI;AAAA,QACf;AAAA;IAER;AAAA;AAER;","x_google_ignoreList":[0,1]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
2
|
import * as i from "svelte/internal/client";
|
|
3
|
-
import { u as T,
|
|
4
|
-
var A = i.from_svg('<path d="M216,112v96a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V112A16,16,0,0,1,56,96h64v48a8,8,0,0,0,16,0V96h64A16,16,0,0,1,216,112ZM136,43.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,69.66L120,43.31V96h16Z"></path>'), P = i.from_svg('<path d="M176,104h24a8,8,0,0,1,8,8v96a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H80" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path><polyline points="88 64 128 24 168 64" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline><line x1="128" y1="24" x2="128" y2="136" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line>', 1),
|
|
3
|
+
import { u as T, aJ as _, aK as y, aF as w, aL as b } from "./VenueCalendar-Cz7_VBC6.js";
|
|
4
|
+
var A = i.from_svg('<path d="M216,112v96a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V112A16,16,0,0,1,56,96h64v48a8,8,0,0,0,16,0V96h64A16,16,0,0,1,216,112ZM136,43.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,69.66L120,43.31V96h16Z"></path>'), P = i.from_svg('<path d="M176,104h24a8,8,0,0,1,8,8v96a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H80" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path><polyline points="88 64 128 24 168 64" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline><line x1="128" y1="24" x2="128" y2="136" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line>', 1), E = i.from_svg('<svg aria-hidden="true" viewBox="0 0 256 256" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!></svg>');
|
|
5
5
|
function B(e, t) {
|
|
6
6
|
i.push(t, !0);
|
|
7
7
|
let n = i.prop(t, "size", 3, "24"), r = i.prop(t, "color", 3, "currentColor"), o = i.prop(t, "class", 3, "");
|
|
8
8
|
const s = T();
|
|
9
9
|
let u = i.derived(() => t.weight ?? s?.weight ?? "regular");
|
|
10
|
-
var l =
|
|
10
|
+
var l = E();
|
|
11
11
|
let m;
|
|
12
12
|
var f = i.child(l);
|
|
13
13
|
{
|
|
@@ -26,7 +26,7 @@ function B(e, t) {
|
|
|
26
26
|
i.set_class(l, 0, i.clsx(o())), i.set_attribute(l, "width", n()), i.set_attribute(l, "height", n()), m = i.set_style(l, "", m, { color: r() });
|
|
27
27
|
}), i.append(e, l), i.pop();
|
|
28
28
|
}
|
|
29
|
-
var
|
|
29
|
+
var I = i.from_svg('<path d="M128,16a88.1,88.1,0,0,0-88,88c0,75.3,80,132.17,83.41,134.55a8,8,0,0,0,9.18,0C136,236.17,216,179.3,216,104A88.1,88.1,0,0,0,128,16Zm0,56a32,32,0,1,1-32,32A32,32,0,0,1,128,72Z"></path>'), q = i.from_svg('<circle cx="128" cy="104" r="32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></circle><path d="M208,104c0,72-80,128-80,128S48,176,48,104a80,80,0,0,1,160,0Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path>', 1), R = i.from_svg('<svg aria-hidden="true" viewBox="0 0 256 256" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!></svg>');
|
|
30
30
|
function j(e, t) {
|
|
31
31
|
i.push(t, !0);
|
|
32
32
|
let n = i.prop(t, "size", 3, "24"), r = i.prop(t, "color", 3, "currentColor"), o = i.prop(t, "class", 3, "");
|
|
@@ -37,7 +37,7 @@ function j(e, t) {
|
|
|
37
37
|
var f = i.child(l);
|
|
38
38
|
{
|
|
39
39
|
var p = (d) => {
|
|
40
|
-
var g =
|
|
40
|
+
var g = I();
|
|
41
41
|
i.append(d, g);
|
|
42
42
|
}, c = (d) => {
|
|
43
43
|
var g = q();
|
|
@@ -357,4 +357,4 @@ export {
|
|
|
357
357
|
V as c,
|
|
358
358
|
G as t
|
|
359
359
|
};
|
|
360
|
-
//# sourceMappingURL=transform-
|
|
360
|
+
//# sourceMappingURL=transform-WRPgSKLN.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform-HKz55B2D.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte","../node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/LocationIcon.svelte","../node_modules/@getmicdrop/svelte-components/dist/utils/copyToClipboard.js","../src/lib/api/transformers/address.ts","../src/lib/api/transformers/series.ts","../src/lib/api/transformers/collection.ts","../src/lib/public-calendar-flow/shareEventLink.ts","../src/lib/public-calendar-flow/shareCopyFeedback.svelte.ts","../src/lib/public-calendar-flow/transform.ts"],"sourcesContent":["<script lang=\"ts\">\n /**\n * Export — Phosphor icon (canonical Micdrop icon family).\n * Outline by default; pass `weight=\"fill\"` for solid, or let a stateful parent\n * (NavItem / Tabs / BottomNav / status badge) drive it via icon-weight context.\n */\n import { useIconWeight, type IconWeight } from './iconWeight.js';\n\n interface Props {\n /** Pixel size (width + height). */\n size?: string;\n /** Icon color; defaults to `currentColor` (inherits text color). */\n color?: string;\n /** Extra classes. */\n class?: string;\n /** `regular` (outline) or `fill` (solid). Overrides ambient state weight. */\n weight?: IconWeight;\n }\n\n let { size = '24', color = 'currentColor', class: className = '', weight }: Props = $props();\n\n const ctx = useIconWeight();\n let resolved: IconWeight = $derived(weight ?? ctx?.weight ?? 'regular');\n</script>\n\n<svg\n class={className}\n aria-hidden=\"true\"\n width={size}\n height={size}\n viewBox=\"0 0 256 256\"\n fill=\"currentColor\"\n style:color={color}\n xmlns=\"http://www.w3.org/2000/svg\"\n>\n {#if resolved === 'fill'}<path d=\"M216,112v96a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V112A16,16,0,0,1,56,96h64v48a8,8,0,0,0,16,0V96h64A16,16,0,0,1,216,112ZM136,43.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,69.66L120,43.31V96h16Z\"/>{:else}<path d=\"M176,104h24a8,8,0,0,1,8,8v96a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H80\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><polyline points=\"88 64 128 24 168 64\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><line x1=\"128\" y1=\"24\" x2=\"128\" y2=\"136\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/>{/if}\n</svg>\n","<script lang=\"ts\">\n /**\n * Location — Phosphor icon (canonical Micdrop icon family).\n * Outline by default; pass `weight=\"fill\"` for solid, or let a stateful parent\n * (NavItem / Tabs / BottomNav / status badge) drive it via icon-weight context.\n */\n import { useIconWeight, type IconWeight } from './iconWeight.js';\n\n interface Props {\n /** Pixel size (width + height). */\n size?: string;\n /** Icon color; defaults to `currentColor` (inherits text color). */\n color?: string;\n /** Extra classes. */\n class?: string;\n /** `regular` (outline) or `fill` (solid). Overrides ambient state weight. */\n weight?: IconWeight;\n }\n\n let { size = '24', color = 'currentColor', class: className = '', weight }: Props = $props();\n\n const ctx = useIconWeight();\n let resolved: IconWeight = $derived(weight ?? ctx?.weight ?? 'regular');\n</script>\n\n<svg\n class={className}\n aria-hidden=\"true\"\n width={size}\n height={size}\n viewBox=\"0 0 256 256\"\n fill=\"currentColor\"\n style:color={color}\n xmlns=\"http://www.w3.org/2000/svg\"\n>\n {#if resolved === 'fill'}<path d=\"M128,16a88.1,88.1,0,0,0-88,88c0,75.3,80,132.17,83.41,134.55a8,8,0,0,0,9.18,0C136,236.17,216,179.3,216,104A88.1,88.1,0,0,0,128,16Zm0,56a32,32,0,1,1-32,32A32,32,0,0,1,128,72Z\"/>{:else}<circle cx=\"128\" cy=\"104\" r=\"32\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><path d=\"M208,104c0,72-80,128-80,128S48,176,48,104a80,80,0,0,1,160,0Z\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/>{/if}\n</svg>\n","/**\n * Copy-to-clipboard utility — resolves `true` ONLY on a real successful write.\n *\n * The whole point of this canonical: callers fire their own \"Copied!\" toast\n * ONLY when this resolves `true`. It NEVER resolves `true` unless the text\n * actually landed on the clipboard, so a permission-denied / insecure-context /\n * no-API failure can no longer masquerade as success — killing the \"lying\n * toast\" bug where a button claimed it copied when nothing was copied.\n *\n * Strategy (best → fallback, never throws):\n * 1. Async Clipboard API (`navigator.clipboard.writeText`) when available\n * (secure context, granted permission) — AWAITED; resolves `true` only\n * when that promise resolves. On rejection it falls through (2) rather\n * than reporting success.\n * 2. Legacy `document.execCommand('copy')` for older / insecure (non-HTTPS)\n * contexts — returns its REAL success boolean.\n * 3. `false` on any failure (rejected write, no clipboard API, no DOM,\n * thrown exception).\n *\n * @param text - The text to place on the clipboard.\n * @returns Promise resolving `true` iff the write actually succeeded, else `false`.\n *\n * @example\n * if (await copyToClipboard(shareUrl)) toast.success('Link copied');\n * else toast.error(\"Couldn't copy — try selecting and copying manually\");\n */\nexport async function copyToClipboard(text) {\n // 1. Async Clipboard API — preferred; only present in secure contexts.\n if (typeof navigator !== 'undefined' &&\n navigator.clipboard &&\n typeof navigator.clipboard.writeText === 'function') {\n try {\n await navigator.clipboard.writeText(text);\n return true;\n }\n catch {\n // Permission denied / insecure context / transient failure — do NOT\n // report success. Fall through to the legacy path and let it decide.\n }\n }\n // 2. Legacy execCommand fallback — older browsers / insecure (non-HTTPS).\n return copyViaExecCommand(text);\n}\n/**\n * Legacy `document.execCommand('copy')` path. Returns its real success boolean\n * and never throws. Used when the async Clipboard API is unavailable or its\n * write rejected.\n *\n * @param text - The text to copy.\n * @returns `true` iff `execCommand('copy')` reported success.\n */\nfunction copyViaExecCommand(text) {\n if (typeof document === 'undefined' ||\n typeof document.execCommand !== 'function') {\n return false;\n }\n // Preserve what the user had selected/focused — selecting our textarea would\n // otherwise blow away their current selection (e.g. text they were copying by hand).\n const prevActive = document.activeElement;\n const selection = document.getSelection();\n const savedRanges = selection\n ? Array.from({ length: selection.rangeCount }, (_, i) => selection.getRangeAt(i).cloneRange())\n : [];\n const textarea = document.createElement('textarea');\n try {\n textarea.value = text;\n // Read-only + off-screen so it never flashes, scrolls, or steals focus.\n textarea.setAttribute('readonly', '');\n textarea.style.position = 'fixed';\n textarea.style.top = '-9999px';\n textarea.style.left = '-9999px';\n textarea.style.opacity = '0';\n document.body.appendChild(textarea);\n textarea.select();\n textarea.setSelectionRange(0, text.length);\n return document.execCommand('copy');\n }\n catch {\n return false;\n }\n finally {\n textarea.remove();\n // Restore the user's prior selection + focus, on success AND failure.\n if (selection) {\n selection.removeAllRanges();\n for (const range of savedRanges)\n selection.addRange(range);\n }\n prevActive?.focus?.();\n }\n}\n","/**\n * Address helpers — shared between the event, series and collection page\n * transformers.\n *\n * Lifted verbatim from public-calendar-flow/transform.ts so the series and\n * collection canonicals (and the in-place transformApiEvent) read a single\n * source instead of each carrying a private copy. Behavior is byte-identical\n * to the previous module-private versions.\n */\n\n/**\n * Parse a single-line address string into display lines.\n * E.g. \"123 Main St, Los Angeles, CA 90012\" -> [\"123 Main St\", \"Los Angeles, CA 90012\"]\n */\nexport function parseAddress(addressStr: string): string[] {\n if (!addressStr) return [];\n const parts = addressStr.split(',').map(p => p.trim());\n if (parts.length < 2) return [addressStr];\n const lastPart = parts[parts.length - 1];\n const stateZipMatch = lastPart.match(/^([A-Z]{2})\\s+(\\d{5}(-\\d{4})?)$/);\n if (stateZipMatch && parts.length >= 3) {\n const state = stateZipMatch[1];\n const zip = stateZipMatch[2];\n const city = parts[parts.length - 2];\n const lines = parts.slice(0, -2);\n lines.push(`${city}, ${state} ${zip}`);\n return lines;\n }\n return [parts[0], parts.slice(1).join(', ')];\n}\n\n/**\n * Build a Google Maps search URL from an address string.\n */\nexport function buildGoogleMapsUrl(address: string): string {\n if (!address) return '';\n return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(address)}`;\n}\n","/**\n * Series Page Transformer\n *\n * Wire->domain boundary for the public series page. Maps a SeriesPageData\n * payload (from the series API) into the clean EventData shape consumed by\n * SeriesPage.svelte / EventExperience (full-width series mode, set via\n * eventSeriesId).\n *\n * Lifted byte-identically from public-calendar-flow/transform.ts's\n * transformSeriesPageData. Every ||/?? fallthrough is preserved exactly;\n * characterization tests pin the output. transformSeriesPageData now delegates\n * here.\n *\n * COMPOSITION NOTE — why this does NOT reuse parseVenue:\n * The api `parseVenue` returns the api-domain `Venue` (raw timezone string,\n * fee fields read from the payload). The series page needs the pcf `VenueData`\n * shape: timezone is the IANA-RESOLVED zone (getIANATimezone) and the fee\n * fields are hard-zeroed (the series payload carries no venue fees). Those\n * shapes are not byte-compatible, so the venue sub-shape stays local.\n */\n\nimport { getIANATimezone } from '@getmicdrop/svelte-components';\nimport { resolveImageUrl } from '@getmicdrop/svelte-components';\nimport { formatDateKey } from '$lib/utils/datetime.js';\nimport { parseAddress, buildGoogleMapsUrl } from './address.js';\nimport type { SeriesPageData } from '../types.js';\nimport type {\n EventData,\n EventStatus,\n PerformerData,\n FAQItem,\n SeriesOccurrence,\n} from '$lib/public-calendar-flow/types';\n\n/**\n * Transform SeriesPageData (from the series API) into our clean EventData interface.\n * Sets eventSeriesId so EventExperience renders in full-width series mode.\n */\nexport function parseSeries(series: SeriesPageData): EventData {\n // Mirror the event transform: raw series carry lowercase `timezone`\n // (some PascalCase `timeZone` / snake `time_zone`). Read all casings so a\n // non-UTC series doesn't silently fall back to UTC.\n const seriesAny = series as SeriesPageData & {\n timezone?: string;\n time_zone?: string;\n };\n const timezone = getIANATimezone(\n series.timeZone || seriesAny.timezone || seriesAny.time_zone || 'UTC'\n );\n\n // Build image URL — SC resolveImageUrl already passes absolute URLs through,\n // so no local startsWith('http') guard is needed.\n const imageUrl = resolveImageUrl(series.image || '', { cdn: true });\n\n // Map occurrences to SeriesOccurrence[]\n const seriesOccurrences: SeriesOccurrence[] = (series.occurrences || []).map(\n occ => ({\n id: occ.id,\n slug: occ.slug || '',\n startDateTime: occ.startDateTime,\n endDateTime: occ.endDateTime || '',\n status: (occ.ctaState?.reason === 'sold_out'\n ? 'sold_out'\n : 'on_sale') as EventStatus,\n ctaText: occ.ctaState?.text || 'Get Tickets',\n ctaDisabled: occ.ctaState?.disabled || false,\n })\n );\n\n // Use first occurrence for date fields\n const firstOcc = series.occurrences?.[0];\n const date = firstOcc?.startDateTime\n ? formatDateKey(firstOcc.startDateTime, timezone)\n : '';\n\n // Map FAQs\n const rawFaq = series.venue?.faq;\n let faqs: FAQItem[] = [];\n if (Array.isArray(rawFaq)) {\n faqs = rawFaq.map(f => ({\n question: f.question || '',\n answer: f.answer || '',\n }));\n } else if (typeof rawFaq === 'string' && rawFaq) {\n faqs = [{ question: 'FAQ', answer: rawFaq }];\n }\n\n // Map performers\n const performers: PerformerData[] = (series.performers || []).map(\n (p, index) => ({\n id: index + 1,\n displayName:\n p.displayName || [p.firstName, p.lastName].filter(Boolean).join(' '),\n profileImage: p.profileImage || undefined,\n })\n );\n\n // Venue address\n const venueAddress =\n series.venue?.location || series.venue?.googleLocationNameCache || '';\n\n return {\n id: series.id,\n title: series.title || '',\n slug: '',\n description: series.description || series.eventSummary || '',\n date,\n startDateTime: firstOcc?.startDateTime || '',\n endDateTime: firstOcc?.endDateTime || '',\n doorsOpenTime: '',\n timezone,\n imageUrl,\n venue: {\n id: series.venue?.id || 0,\n name: series.venue?.name || '',\n address: venueAddress,\n timezone,\n serviceFeePercentage: 0,\n serviceFeeCents: 0,\n taxPercentage: 0,\n },\n performers,\n tickets: [],\n faqs,\n disclaimer: series.venue?.disclaimer || undefined,\n status: 'on_sale',\n eventSeriesId: series.id,\n seriesOccurrences,\n isPasswordProtected: false,\n isRegistrationEvent: false,\n totalTicketsRemaining: 0,\n totalTicketsCapacity: 0,\n venueAddressLines: parseAddress(venueAddress),\n googleMapsUrl: buildGoogleMapsUrl(venueAddress),\n };\n}\n\n/**\n * Back-compat alias — the public-calendar-flow shaper name. Existing call\n * sites importing transformSeriesPageData continue to work unchanged.\n */\nexport const transformSeriesPageData = parseSeries;\n","/**\n * Collection Page Transformer\n *\n * Wire->domain boundary for the public collection page. Maps a\n * PublicCollectionData payload (from the collection API) into the clean\n * EventData shape consumed by CollectionView.svelte / EventExperience\n * (full-width collection mode, set via collectionId).\n *\n * Lifted byte-identically from public-calendar-flow/transform.ts's\n * transformCollectionData. Every ||/?? fallthrough is preserved exactly;\n * characterization tests pin the output. transformCollectionData now delegates\n * here.\n *\n * COMPOSITION NOTE — why this does NOT reuse parseVenue/parseEvent:\n * The collection payload has no venue and no timezone; the EventData it\n * produces hard-codes an empty venue and 'UTC'. The per-event mapping is a\n * tiny CollectionEvent card shape (id/name/slug/image/startDateTime/status),\n * not the full Event domain — reusing parseEvent would change the output.\n * Both stay local.\n */\n\nimport { resolveImageUrl } from '@getmicdrop/svelte-components';\nimport type { PublicCollectionData } from '../types.js';\nimport type {\n EventData,\n EventStatus,\n CollectionEvent,\n} from '$lib/public-calendar-flow/types';\n\n/**\n * Transform PublicCollectionData (from the collection API) into our clean EventData interface.\n * Sets collectionId so EventExperience renders in full-width collection mode.\n */\nexport function parseCollection(collection: PublicCollectionData): EventData {\n // Map collection events to CollectionEvent[]\n const collectionEvents: CollectionEvent[] = (collection.events || []).map(\n ev => {\n return {\n id: ev.id,\n name: ev.title || '',\n slug: ev.slug || '',\n // SC's resolveImageUrl passes absolute http(s)/data/blob URLs through\n // untouched, so no local startsWith('http') guard is needed.\n image: resolveImageUrl(ev.image || '', { cdn: true }),\n startDateTime: ev.startDateTime || '',\n status: (ev.status || 'on_sale') as EventStatus,\n };\n }\n );\n\n // Cover image — SC resolveImageUrl already passes absolute URLs through.\n const imageUrl = resolveImageUrl(collection.coverImage || '', { cdn: true });\n\n return {\n id: collection.id,\n title: collection.collectionTitle || '',\n slug: '',\n description: collection.description || collection.summary || '',\n date: '',\n startDateTime: '',\n endDateTime: '',\n doorsOpenTime: '',\n timezone: 'UTC',\n imageUrl,\n venue: {\n id: 0,\n name: '',\n address: '',\n timezone: 'UTC',\n serviceFeePercentage: 0,\n serviceFeeCents: 0,\n taxPercentage: 0,\n },\n performers: [],\n tickets: [],\n faqs: [],\n status: 'on_sale',\n collectionId: collection.id,\n collectionEvents,\n isPasswordProtected: false,\n isRegistrationEvent: false,\n totalTicketsRemaining: 0,\n totalTicketsCapacity: 0,\n };\n}\n\n/**\n * Back-compat alias — the public-calendar-flow shaper name. Existing call\n * sites importing transformCollectionData continue to work unchanged.\n */\nexport const transformCollectionData = parseCollection;\n","import { copyToClipboard } from '@getmicdrop/svelte-components';\n\n/**\n * Outcome of a share attempt, mapped by the caller to its own inline feedback.\n *\n * - `shared` — the native share sheet handled it (or the user cancelled). No\n * inline feedback: the OS UI already spoke, and a cancel must stay quiet.\n * - `copied` — the link landed on the clipboard via the SC canonical.\n * - `failed` — the clipboard write was blocked; surface the URL for manual copy.\n */\nexport type ShareLinkResult = 'shared' | 'copied' | 'failed';\n\n/**\n * Share-link decision — the ONE copy of the native-share/clipboard logic that\n * used to be duplicated across the event header and the confirmation sidebar.\n *\n * 1. Native share sheet when the browser exposes `navigator.share`. A user\n * cancel (AbortError) ends quietly — returns `shared`, no fallback.\n * 2. Otherwise (no share API, or a non-cancel share failure) copy the URL via\n * the SC canonical `copyToClipboard`, which resolves `true` ONLY on a real\n * write and falls back to `execCommand` on the insecure (http embed) hosts\n * where the async Clipboard API is unavailable — the exact context the old\n * raw `navigator.clipboard.writeText` threw in.\n *\n * VC has no toasts (standalone embeddable widget, no Toaster mounted), so this\n * returns a result the caller renders inline rather than firing feedback here.\n *\n * @param url - The link to share.\n */\nexport async function shareEventLink(url: string): Promise<ShareLinkResult> {\n if (\n typeof navigator !== 'undefined' &&\n typeof navigator.share === 'function'\n ) {\n try {\n await navigator.share({ url });\n return 'shared';\n } catch (err: unknown) {\n // User dismissed the share sheet — leave it there, no fallback. Browsers\n // reject with a DOMException named 'AbortError', and DOMException is NOT\n // `instanceof Error`, so match on the name alone (not the prototype).\n if ((err as { name?: string } | null)?.name === 'AbortError') {\n return 'shared';\n }\n // Any other failure falls through to the clipboard fallback below.\n }\n }\n\n return (await copyToClipboard(url)) ? 'copied' : 'failed';\n}\n","import { shareEventLink } from '$lib/public-calendar-flow/shareEventLink';\n\n/**\n * Share-link copy feedback — the ONE copy of the inline state machine that used\n * to be hand-rolled identically in the event header and the confirmation\n * sidebar. It owns the reactive `copyState`/`copyFailedUrl` and the reset timer,\n * delegating the native-share/clipboard decision to `shareEventLink`.\n *\n * VC has no toasts, so feedback is inline: `copied` briefly swaps the button\n * label, `failed` reveals the URL for manual copy. Native share (or a user\n * cancel) leaves the state untouched — the OS UI already spoke.\n *\n * Call `dispose()` from the consumer's `onDestroy` to clear the pending timer.\n */\nexport function createShareCopyFeedback() {\n let copyState = $state<'idle' | 'copied' | 'failed'>('idle');\n let copyFailedUrl = $state('');\n let resetTimer: ReturnType<typeof setTimeout> | undefined;\n\n async function share(url: string) {\n const result = await shareEventLink(url);\n if (result === 'copied') {\n copyFailedUrl = '';\n copyState = 'copied';\n clearTimeout(resetTimer);\n resetTimer = setTimeout(() => (copyState = 'idle'), 2500);\n } else if (result === 'failed') {\n // Copy blocked — reveal the URL inline so the buyer can select it manually.\n clearTimeout(resetTimer);\n copyState = 'failed';\n copyFailedUrl = url;\n }\n // 'shared' → native sheet handled it (or user cancelled); no inline feedback.\n }\n\n function dispose() {\n clearTimeout(resetTimer);\n }\n\n return {\n get copyState() {\n return copyState;\n },\n get copyFailedUrl() {\n return copyFailedUrl;\n },\n share,\n dispose,\n };\n}\n","import { getIANATimezone } from '@getmicdrop/svelte-components';\nimport { formatDateKey } from '$lib/utils/datetime.js';\n// Premium Ticket Experience — API → EventData Transformer\n// Maps raw API event responses to our clean EventData interface.\n// Used when plugging in real API data. The showcase continues using mock-data.ts directly.\n\nimport { resolveImageUrl } from '@getmicdrop/svelte-components';\nimport {\n parseAddress,\n buildGoogleMapsUrl,\n} from '$lib/api/transformers/address';\n// Canonical wire→domain boundary — all event-level scalar reads go through it.\nimport { parseEvent } from '$lib/api/transformers/event';\nimport { parseSeries } from '$lib/api/transformers/series';\nimport { parseCollection } from '$lib/api/transformers/collection';\nimport type {\n EventData,\n EventStatus,\n TicketTypeData,\n TicketStatus,\n VenueData,\n PerformerData,\n FAQItem,\n SeriesOccurrence,\n} from './types';\nimport type { SeriesPageData, PublicCollectionData } from '$lib/api/types';\n\n/**\n * Map a raw API ticket status/state to our TicketStatus union.\n */\nfunction mapTicketStatus(ticket: any): TicketStatus {\n const now = new Date();\n const remaining =\n ticket.remainingCapacity ??\n ticket.quantityRemaining ??\n ticket.quantity ??\n 0;\n const salesBegin =\n ticket.salesBegin ||\n ticket.salesStart ||\n ticket.saleBegin ||\n ticket.onSaleStart;\n const salesEnd = ticket.salesEnd || ticket.saleEnd || ticket.onSaleEnd;\n\n if (remaining <= 0) return 'sold_out';\n if (salesEnd && new Date(salesEnd) < now) return 'sales_ended';\n if (salesBegin && new Date(salesBegin) > now) return 'coming_soon';\n return 'on_sale';\n}\n\n/**\n * Map a raw API event status string to our EventStatus union.\n */\nfunction mapEventStatus(\n rawStatus: string,\n tickets: TicketTypeData[]\n): EventStatus {\n const s = (rawStatus || '').toLowerCase().replace(/\\s+/g, '_');\n\n if (s === 'cancelled' || s === 'canceled') return 'cancelled';\n\n // Check if event is past based on end time (handled by caller if needed)\n if (s === 'past' || s === 'ended') return 'past';\n\n // MIC-1039: if any hidden ticket is still on sale, the event is \"on_sale\"\n // regardless of visible-ticket states — the user just needs a promo code.\n // NOTE: this operates on the pcf DOMAIN ticket shape (post-transform, with a\n // computed `status` string), NOT the wire shape SC's\n // `isHiddenTicketPurchasable` reads (raw visibility/salesChannel/sale-window\n // fields). The sale-window math already happened in `mapTicketStatus`, so the\n // SC predicate can't honestly serve this site — kept deliberately local.\n const hasPurchasableHiddenTickets = tickets.some(\n t => t.isHidden && t.status === 'on_sale'\n );\n if (hasPurchasableHiddenTickets) return 'on_sale';\n\n // Derive from ticket states\n const publicTickets = tickets.filter(t => !t.isHidden);\n if (publicTickets.length > 0) {\n if (publicTickets.every(t => t.status === 'sold_out')) return 'sold_out';\n if (publicTickets.every(t => t.status === 'coming_soon'))\n return 'coming_soon';\n if (\n publicTickets.every(\n t => t.status === 'sales_ended' || t.status === 'sold_out'\n )\n )\n return 'sales_ended';\n }\n\n if (s === 'sold_out' || s === 'soldout') return 'sold_out';\n if (s === 'coming_soon' || s === 'comingsoon') return 'coming_soon';\n if (s === 'sales_ended' || s === 'salesended') return 'sales_ended';\n\n return 'on_sale';\n}\n\n/**\n * Transform a raw API event response into our clean EventData interface.\n * This is the bridge between the API and our premium ticket experience components.\n *\n * COMPOSITION NOTE (events convergence): the wire is parsed ONCE through the\n * canonical parseEvent ($lib/api/transformers/event); every event-level\n * scalar below projects off the domain Event. Three deliberate wire seams\n * remain, characterization-pinned in\n * utils/event-shapers.characterization.test.js:\n * 1. TICKETS — the TicketTypeData map uses `??` (nullish) semantics over\n * raw ticket fields (remainingCapacity/visibility/fee/…) that\n * parseTicket's `||`-folding AvailableTicket neither carries nor\n * preserves; routing through parseTicket would change rendered output.\n * 2. IMAGE — image→imageUrl→image_url precedence intentionally differs\n * from the canonical resolver's (imageUrl-first); see the note in\n * api/transformers/event.ts.\n * 3. VENUE/PERFORMERS — mapped from the raw passthrough objects\n * (domain.venue / domain.performers) with B-specific `??` fee/tax\n * semantics; the performer canonical lands in PR #260 and should\n * absorb the performer map then.\n */\nexport function transformApiEvent(rawEvent: any): EventData {\n // Wire→domain ONCE (see composition note).\n const domain = parseEvent(rawEvent);\n const rawVenue = domain.venue || {};\n // Event-level timeZone is an OPTIONAL per-event override; when absent/blank it\n // must inherit the venue timezone. Falling straight to 'UTC' here rendered\n // venue-local times (e.g. a Fri 10pm Central show) in UTC (\"Sat 3:00 AM\"),\n // which made already-ended events look like future ones.\n // (domain.timeZone is the verbatim PascalCase passthrough; domain.timezone\n // folds lowercase + snake_case — same chain as before.)\n const timezone = getIANATimezone(\n domain.timeZone ||\n domain.timezone ||\n rawVenue.timeZone ||\n rawVenue.timezone ||\n 'UTC'\n );\n\n // Transform tickets — TICKET SEAM: raw wire tickets by contract (see note).\n const rawTickets = rawEvent.availableTickets || [];\n const tickets: TicketTypeData[] = rawTickets.map((t: any) => ({\n id: t.id || t.ID,\n name: t.name || t.title || '',\n description: t.description || undefined,\n price: t.price ?? 0,\n fee: t.fee ?? 0,\n quantityAvailable:\n t.remainingCapacity ?? t.quantityRemaining ?? t.quantity ?? 0,\n quantityTotal: t.totalCapacity ?? t.quantity ?? 0,\n minPerOrder: t.minPerOrder ?? t.minQuantity ?? 1,\n maxPerOrder: t.maxPerOrder ?? t.maxQuantity ?? 10,\n status: mapTicketStatus(t),\n salesStartDate:\n t.salesBegin || t.salesStart || t.saleBegin || t.onSaleStart || undefined,\n salesEndDate: t.salesEnd || t.saleEnd || t.onSaleEnd || undefined,\n isDonation: t.type === 2 || t.ticketType === 2 || t.isDonation === true,\n isHidden: t.visibility === 2 || t.isHidden === true,\n ticketType: t.type || t.ticketType || undefined,\n sectionName: t.sectionName || t.section || undefined,\n }));\n\n // Calculate totals from public tickets\n const publicTickets = tickets.filter(t => !t.isHidden && !t.isDonation);\n const totalRemaining = publicTickets.reduce(\n (sum, t) => sum + t.quantityAvailable,\n 0\n );\n const totalCapacity = publicTickets.reduce(\n (sum, t) => sum + t.quantityTotal,\n 0\n );\n\n // Determine event status\n const status = mapEventStatus(domain.status as string, tickets);\n\n // Build image URL — IMAGE SEAM: image-first precedence (see note).\n const rawImage =\n rawEvent.image || rawEvent.imageUrl || rawEvent.image_url || '';\n const imageUrl = rawImage.startsWith('http')\n ? rawImage\n : resolveImageUrl(rawImage, { cdn: true });\n\n // Venue\n const venue: VenueData = {\n id: rawVenue.id || rawVenue.ID || 0,\n name: rawVenue.name || rawVenue.googleLocationNameCache || '',\n address: rawVenue.address || rawVenue.googleLocationNameCache || '',\n timezone,\n serviceFeePercentage: rawVenue.serviceFeePercentage ?? rawVenue.fee ?? 0,\n serviceFeeCents: rawVenue.serviceFeeCents ?? 0,\n taxPercentage: rawVenue.taxPercentage ?? rawVenue.tax ?? 0,\n contactEmail: rawVenue.contactEmail || rawVenue.email || undefined,\n };\n\n // Performers — VENUE/PERFORMERS SEAM: raw passthrough map (see note).\n const rawPerformers = domain.performers || [];\n const performers: PerformerData[] = rawPerformers.map((p: any) => ({\n id: p.id || p.ID,\n displayName: p.displayName || p.name || '',\n profileImage: p.avatar || p.profileImage || undefined,\n role: p.role || undefined,\n }));\n\n // FAQs (may not be in API response)\n const faqs: FAQItem[] = (domain.faqs || []).map((f: any) => ({\n question: f.question || '',\n answer: f.answer || '',\n }));\n\n // Series showtimes → occurrences. A single series-event detail carries a\n // `showtimes` array; the v2 <ShowtimeDesigns> renders event.seriesOccurrences\n // under \"Upcoming Shows\". Without this map the section is always empty.\n const seriesOccurrences: SeriesOccurrence[] = (domain.showtimes || [])\n .filter((s: any) => s.published !== false)\n .map((s: any, i: number) => ({\n id: s.id ?? s.eventId ?? i + 1,\n slug: s.slug || '',\n startDateTime: s.startDateTime || s.startTime || '',\n endDateTime: s.endDateTime || s.endTime || '',\n status: (s.ctaState?.reason === 'sold_out'\n ? 'sold_out'\n : 'on_sale') as EventStatus,\n ctaText: s.ctaState?.text || 'Get tickets',\n ctaDisabled: s.ctaState?.disabled || false,\n }));\n\n // Date in venue timezone\n const date = domain.startDateTime\n ? formatDateKey(domain.startDateTime, timezone)\n : '';\n\n return {\n id: domain.id,\n title: domain.title || '',\n slug: domain.slug || '',\n description: domain.description || domain.eventSummary || '',\n date,\n startDateTime: domain.startDateTime || '',\n endDateTime: domain.endDateTime || '',\n doorsOpenTime: domain.doorsOpenTime || '',\n timezone,\n imageUrl,\n venue,\n performers,\n tickets,\n faqs,\n disclaimer: domain.disclaimer || undefined,\n status,\n eventSeriesId: domain.eventSeriesId || undefined,\n seriesOccurrences: seriesOccurrences.length ? seriesOccurrences : undefined,\n // Public API hides the actual password (json:\"-\") and exposes a boolean\n // `hasPassword` flag instead; fall back to a populated `password` for\n // admin-shaped payloads.\n isPasswordProtected: domain.hasPassword === true || !!domain.password,\n isRegistrationEvent:\n domain.ticketType === 1 || domain.eventTicketingType === 1,\n totalTicketsRemaining: totalRemaining,\n totalTicketsCapacity: totalCapacity,\n stageName: domain.stage?.name || domain.stageName || undefined,\n ageRestriction: domain.ageRestriction || undefined,\n displayAgeRestriction: domain.displayAgeRestriction ?? false,\n displayStartTime: domain.displayStartTime ?? true,\n displayEndTime: domain.displayEndTime ?? true,\n displayDoorsTime: domain.displayDoorsTime ?? true,\n collectionId: domain.collectionId || undefined, // domain folds collection_id\n venueAddressLines: parseAddress(\n rawVenue.address || rawVenue.googleLocationNameCache || ''\n ),\n googleMapsUrl: buildGoogleMapsUrl(\n rawVenue.address || rawVenue.googleLocationNameCache || ''\n ),\n };\n}\n\n/**\n * Transform SeriesPageData (from the series API) into our clean EventData interface.\n * Sets eventSeriesId so EventExperience renders in full-width series mode.\n */\nexport function transformSeriesPageData(series: SeriesPageData): EventData {\n // Implementation moved to the canonical transformer home\n // (`$lib/api/transformers/series.ts`). This export stays as a thin delegate\n // so SeriesPage.svelte and other consumers don't churn.\n return parseSeries(series);\n}\n\n/**\n * Transform PublicCollectionData (from the collection API) into our clean EventData interface.\n * Sets collectionId so EventExperience renders in full-width collection mode.\n */\nexport function transformCollectionData(\n collection: PublicCollectionData\n): EventData {\n // Implementation moved to the canonical transformer home\n // (`$lib/api/transformers/collection.ts`). This export stays as a thin\n // delegate so CollectionView.svelte and other consumers don't churn.\n return parseCollection(collection);\n}\n"],"names":["size","$","$$props","color","className","ctx","useIconWeight","resolved","svg","root_2","path","root","$$render","consequent","alternate","styles","copyToClipboard","text","copyViaExecCommand","prevActive","selection","savedRanges","_","i","textarea","range","parseAddress","addressStr","parts","p","stateZipMatch","state","zip","city","lines","buildGoogleMapsUrl","address","parseSeries","series","seriesAny","timezone","getIANATimezone","imageUrl","resolveImageUrl","seriesOccurrences","occ","firstOcc","date","formatDateKey","rawFaq","faqs","f","performers","index","venueAddress","parseCollection","collection","collectionEvents","ev","shareEventLink","url","err","createShareCopyFeedback","copyState","copyFailedUrl","resetTimer","share","result","dispose","mapTicketStatus","ticket","now","remaining","salesBegin","salesEnd","mapEventStatus","rawStatus","tickets","s","t","publicTickets","transformApiEvent","rawEvent","domain","parseEvent","rawVenue","totalRemaining","sum","totalCapacity","status","rawImage","venue","transformSeriesPageData","transformCollectionData"],"mappings":";;;;iBAAA;;AAmBE,MAAMA,IAAIC,EAAA,KAAAC,GAAA,QAAA,GAAG,IAAI,GAAEC,0BAAQ,cAAc,GAASC,0BAAY,EAAE;AAEhE,QAAMC,IAAMC,EAAa;AACzB,MAAIC,IAAoBN,EAAA,QAAA,MAAAC,EAAA,UAAsBG,GAAK,UAAU,SAAS;MAGvEG,IAAEC,EAAA;;kBAAFD,CAAE;;;UAUyBE,IAAIC,EAAA;kBAAJD,CAAI;AAAA;;;;;AAAzB,MAAAT,EAAA,IAAAM,CAAQ,MAAK,SAAMK,EAAAC,CAAA,IAAAD,EAAAE,GAAA,EAAA;AAAA;;UAVzBN,CAAE;AAAF,IAAAP,EAAA,UAAAO,aACQJ,EAAS,CAAA,CAAA,GADjBH,EAAA,cAAAO,YAGQR,EAAI,CAAA,GAHZC,EAAA,cAAAO,aAISR,EAAI,CAAA,GAJbe,IAAAd,EAAA,UAAAO,mBAOcL,EAAK,GAAA;AAAA,kBAPnBK,CAAE;AAFK;;iBCvBR;;AAmBE,MAAMR,IAAIC,EAAA,KAAAC,GAAA,QAAA,GAAG,IAAI,GAAEC,0BAAQ,cAAc,GAASC,0BAAY,EAAE;AAEhE,QAAMC,IAAMC,EAAa;AACzB,MAAIC,IAAoBN,EAAA,QAAA,MAAAC,EAAA,UAAsBG,GAAK,UAAU,SAAS;MAGvEG,IAAEC,EAAA;;kBAAFD,CAAE;;;UAUyBE,IAAIC,EAAA;kBAAJD,CAAI;AAAA;;;;;AAAzB,MAAAT,EAAA,IAAAM,CAAQ,MAAK,SAAMK,EAAAC,CAAA,IAAAD,EAAAE,GAAA,EAAA;AAAA;;UAVzBN,CAAE;AAAF,IAAAP,EAAA,UAAAO,aACQJ,EAAS,CAAA,CAAA,GADjBH,EAAA,cAAAO,YAGQ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A,IACA,eAAeoC,EAAO,iBAAiB;AAAA,IACvC,aAAaA,EAAO,eAAe;AAAA,IACnC,eAAeA,EAAO,iBAAiB;AAAA,IACvC,UAAA3C;AAAA,IACA,UAAAE;AAAA,IACA,OAAAiD;AAAA,IACA,YAAAvC;AAAA,IACA,SAAAyB;AAAA,IACA,MAAA3B;AAAA,IACA,YAAYiC,EAAO,cAAc;AAAA,IACjC,QAAAM;AAAA,IACA,eAAeN,EAAO,iBAAiB;AAAA,IACvC,mBAAmBvC,EAAkB,SAASA,IAAoB;AAAA;AAAA;AAAA;AAAA,IAIlE,qBAAqBuC,EAAO,gBAAgB,MAAQ,CAAC,CAACA,EAAO;AAAA,IAC7D,qBACEA,EAAO,eAAe,KAAKA,EAAO,uBAAuB;AAAA,IAC3D,uBAAuBG;AAAA,IACvB,sBAAsBE;AAAA,IACtB,WAAWL,EAAO,OAAO,QAAQA,EAAO,aAAa;AAAA,IACrD,gBAAgBA,EAAO,kBAAkB;AAAA,IACzC,uBAAuBA,EAAO,yBAAyB;AAAA,IACvD,kBAAkBA,EAAO,oBAAoB;AAAA,IAC7C,gBAAgBA,EAAO,kBAAkB;AAAA,IACzC,kBAAkBA,EAAO,oBAAoB;AAAA,IAC7C,cAAcA,EAAO,gBAAgB;AAAA;AAAA,IACrC,mBAAmBzD;AAAA,MACjB2D,EAAS,WAAWA,EAAS,2BAA2B;AAAA,IAAA;AAAA,IAE1D,eAAelD;AAAA,MACbkD,EAAS,WAAWA,EAAS,2BAA2B;AAAA,IAAA;AAAA,EAC1D;AAEJ;AAMO,SAASO,EAAwBtD,GAAmC;AAIzE,SAAOD,EAAYC,CAAM;AAC3B;AAMO,SAASuD,EACdrC,GACW;AAIX,SAAOD,EAAgBC,CAAU;AACnC;","x_google_ignoreList":[0,1,2]}
|
|
1
|
+
{"version":3,"file":"transform-WRPgSKLN.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ExportIcon.svelte","../node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/LocationIcon.svelte","../node_modules/@getmicdrop/svelte-components/dist/utils/copyToClipboard.js","../src/lib/api/transformers/address.ts","../src/lib/api/transformers/series.ts","../src/lib/api/transformers/collection.ts","../src/lib/public-calendar-flow/shareEventLink.ts","../src/lib/public-calendar-flow/shareCopyFeedback.svelte.ts","../src/lib/public-calendar-flow/transform.ts"],"sourcesContent":["<script lang=\"ts\">\n /**\n * Export — Phosphor icon (canonical Micdrop icon family).\n * Outline by default; pass `weight=\"fill\"` for solid, or let a stateful parent\n * (NavItem / Tabs / BottomNav / status badge) drive it via icon-weight context.\n */\n import { useIconWeight, type IconWeight } from './iconWeight.js';\n\n interface Props {\n /** Pixel size (width + height). */\n size?: string;\n /** Icon color; defaults to `currentColor` (inherits text color). */\n color?: string;\n /** Extra classes. */\n class?: string;\n /** `regular` (outline) or `fill` (solid). Overrides ambient state weight. */\n weight?: IconWeight;\n }\n\n let { size = '24', color = 'currentColor', class: className = '', weight }: Props = $props();\n\n const ctx = useIconWeight();\n let resolved: IconWeight = $derived(weight ?? ctx?.weight ?? 'regular');\n</script>\n\n<svg\n class={className}\n aria-hidden=\"true\"\n width={size}\n height={size}\n viewBox=\"0 0 256 256\"\n fill=\"currentColor\"\n style:color={color}\n xmlns=\"http://www.w3.org/2000/svg\"\n>\n {#if resolved === 'fill'}<path d=\"M216,112v96a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V112A16,16,0,0,1,56,96h64v48a8,8,0,0,0,16,0V96h64A16,16,0,0,1,216,112ZM136,43.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,69.66L120,43.31V96h16Z\"/>{:else}<path d=\"M176,104h24a8,8,0,0,1,8,8v96a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V112a8,8,0,0,1,8-8H80\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><polyline points=\"88 64 128 24 168 64\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><line x1=\"128\" y1=\"24\" x2=\"128\" y2=\"136\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/>{/if}\n</svg>\n","<script lang=\"ts\">\n /**\n * Location — Phosphor icon (canonical Micdrop icon family).\n * Outline by default; pass `weight=\"fill\"` for solid, or let a stateful parent\n * (NavItem / Tabs / BottomNav / status badge) drive it via icon-weight context.\n */\n import { useIconWeight, type IconWeight } from './iconWeight.js';\n\n interface Props {\n /** Pixel size (width + height). */\n size?: string;\n /** Icon color; defaults to `currentColor` (inherits text color). */\n color?: string;\n /** Extra classes. */\n class?: string;\n /** `regular` (outline) or `fill` (solid). Overrides ambient state weight. */\n weight?: IconWeight;\n }\n\n let { size = '24', color = 'currentColor', class: className = '', weight }: Props = $props();\n\n const ctx = useIconWeight();\n let resolved: IconWeight = $derived(weight ?? ctx?.weight ?? 'regular');\n</script>\n\n<svg\n class={className}\n aria-hidden=\"true\"\n width={size}\n height={size}\n viewBox=\"0 0 256 256\"\n fill=\"currentColor\"\n style:color={color}\n xmlns=\"http://www.w3.org/2000/svg\"\n>\n {#if resolved === 'fill'}<path d=\"M128,16a88.1,88.1,0,0,0-88,88c0,75.3,80,132.17,83.41,134.55a8,8,0,0,0,9.18,0C136,236.17,216,179.3,216,104A88.1,88.1,0,0,0,128,16Zm0,56a32,32,0,1,1-32,32A32,32,0,0,1,128,72Z\"/>{:else}<circle cx=\"128\" cy=\"104\" r=\"32\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><path d=\"M208,104c0,72-80,128-80,128S48,176,48,104a80,80,0,0,1,160,0Z\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/>{/if}\n</svg>\n","/**\n * Copy-to-clipboard utility — resolves `true` ONLY on a real successful write.\n *\n * The whole point of this canonical: callers fire their own \"Copied!\" toast\n * ONLY when this resolves `true`. It NEVER resolves `true` unless the text\n * actually landed on the clipboard, so a permission-denied / insecure-context /\n * no-API failure can no longer masquerade as success — killing the \"lying\n * toast\" bug where a button claimed it copied when nothing was copied.\n *\n * Strategy (best → fallback, never throws):\n * 1. Async Clipboard API (`navigator.clipboard.writeText`) when available\n * (secure context, granted permission) — AWAITED; resolves `true` only\n * when that promise resolves. On rejection it falls through (2) rather\n * than reporting success.\n * 2. Legacy `document.execCommand('copy')` for older / insecure (non-HTTPS)\n * contexts — returns its REAL success boolean.\n * 3. `false` on any failure (rejected write, no clipboard API, no DOM,\n * thrown exception).\n *\n * @param text - The text to place on the clipboard.\n * @returns Promise resolving `true` iff the write actually succeeded, else `false`.\n *\n * @example\n * if (await copyToClipboard(shareUrl)) toast.success('Link copied');\n * else toast.error(\"Couldn't copy — try selecting and copying manually\");\n */\nexport async function copyToClipboard(text) {\n // 1. Async Clipboard API — preferred; only present in secure contexts.\n if (typeof navigator !== 'undefined' &&\n navigator.clipboard &&\n typeof navigator.clipboard.writeText === 'function') {\n try {\n await navigator.clipboard.writeText(text);\n return true;\n }\n catch {\n // Permission denied / insecure context / transient failure — do NOT\n // report success. Fall through to the legacy path and let it decide.\n }\n }\n // 2. Legacy execCommand fallback — older browsers / insecure (non-HTTPS).\n return copyViaExecCommand(text);\n}\n/**\n * Legacy `document.execCommand('copy')` path. Returns its real success boolean\n * and never throws. Used when the async Clipboard API is unavailable or its\n * write rejected.\n *\n * @param text - The text to copy.\n * @returns `true` iff `execCommand('copy')` reported success.\n */\nfunction copyViaExecCommand(text) {\n if (typeof document === 'undefined' ||\n typeof document.execCommand !== 'function') {\n return false;\n }\n // Preserve what the user had selected/focused — selecting our textarea would\n // otherwise blow away their current selection (e.g. text they were copying by hand).\n const prevActive = document.activeElement;\n const selection = document.getSelection();\n const savedRanges = selection\n ? Array.from({ length: selection.rangeCount }, (_, i) => selection.getRangeAt(i).cloneRange())\n : [];\n const textarea = document.createElement('textarea');\n try {\n textarea.value = text;\n // Read-only + off-screen so it never flashes, scrolls, or steals focus.\n textarea.setAttribute('readonly', '');\n textarea.style.position = 'fixed';\n textarea.style.top = '-9999px';\n textarea.style.left = '-9999px';\n textarea.style.opacity = '0';\n document.body.appendChild(textarea);\n textarea.select();\n textarea.setSelectionRange(0, text.length);\n return document.execCommand('copy');\n }\n catch {\n return false;\n }\n finally {\n textarea.remove();\n // Restore the user's prior selection + focus, on success AND failure.\n if (selection) {\n selection.removeAllRanges();\n for (const range of savedRanges)\n selection.addRange(range);\n }\n prevActive?.focus?.();\n }\n}\n","/**\n * Address helpers — shared between the event, series and collection page\n * transformers.\n *\n * Lifted verbatim from public-calendar-flow/transform.ts so the series and\n * collection canonicals (and the in-place transformApiEvent) read a single\n * source instead of each carrying a private copy. Behavior is byte-identical\n * to the previous module-private versions.\n */\n\n/**\n * Parse a single-line address string into display lines.\n * E.g. \"123 Main St, Los Angeles, CA 90012\" -> [\"123 Main St\", \"Los Angeles, CA 90012\"]\n */\nexport function parseAddress(addressStr: string): string[] {\n if (!addressStr) return [];\n const parts = addressStr.split(',').map(p => p.trim());\n if (parts.length < 2) return [addressStr];\n const lastPart = parts[parts.length - 1];\n const stateZipMatch = lastPart.match(/^([A-Z]{2})\\s+(\\d{5}(-\\d{4})?)$/);\n if (stateZipMatch && parts.length >= 3) {\n const state = stateZipMatch[1];\n const zip = stateZipMatch[2];\n const city = parts[parts.length - 2];\n const lines = parts.slice(0, -2);\n lines.push(`${city}, ${state} ${zip}`);\n return lines;\n }\n return [parts[0], parts.slice(1).join(', ')];\n}\n\n/**\n * Build a Google Maps search URL from an address string.\n */\nexport function buildGoogleMapsUrl(address: string): string {\n if (!address) return '';\n return `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(address)}`;\n}\n","/**\n * Series Page Transformer\n *\n * Wire->domain boundary for the public series page. Maps a SeriesPageData\n * payload (from the series API) into the clean EventData shape consumed by\n * SeriesPage.svelte / EventExperience (full-width series mode, set via\n * eventSeriesId).\n *\n * Lifted byte-identically from public-calendar-flow/transform.ts's\n * transformSeriesPageData. Every ||/?? fallthrough is preserved exactly;\n * characterization tests pin the output. transformSeriesPageData now delegates\n * here.\n *\n * COMPOSITION NOTE — why this does NOT reuse parseVenue:\n * The api `parseVenue` returns the api-domain `Venue` (raw timezone string,\n * fee fields read from the payload). The series page needs the pcf `VenueData`\n * shape: timezone is the IANA-RESOLVED zone (getIANATimezone) and the fee\n * fields are hard-zeroed (the series payload carries no venue fees). Those\n * shapes are not byte-compatible, so the venue sub-shape stays local.\n */\n\nimport { getIANATimezone } from '@getmicdrop/svelte-components';\nimport { resolveImageUrl } from '@getmicdrop/svelte-components';\nimport { formatDateKey } from '$lib/utils/datetime.js';\nimport { parseAddress, buildGoogleMapsUrl } from './address.js';\nimport type { SeriesPageData } from '../types.js';\nimport type {\n EventData,\n EventStatus,\n PerformerData,\n FAQItem,\n SeriesOccurrence,\n} from '$lib/public-calendar-flow/types';\n\n/**\n * Transform SeriesPageData (from the series API) into our clean EventData interface.\n * Sets eventSeriesId so EventExperience renders in full-width series mode.\n */\nexport function parseSeries(series: SeriesPageData): EventData {\n // Mirror the event transform: raw series carry lowercase `timezone`\n // (some PascalCase `timeZone` / snake `time_zone`). Read all casings so a\n // non-UTC series doesn't silently fall back to UTC.\n const seriesAny = series as SeriesPageData & {\n timezone?: string;\n time_zone?: string;\n };\n const timezone = getIANATimezone(\n series.timeZone || seriesAny.timezone || seriesAny.time_zone || 'UTC'\n );\n\n // Build image URL — SC resolveImageUrl already passes absolute URLs through,\n // so no local startsWith('http') guard is needed.\n const imageUrl = resolveImageUrl(series.image || '', { cdn: true });\n\n // Map occurrences to SeriesOccurrence[]\n const seriesOccurrences: SeriesOccurrence[] = (series.occurrences || []).map(\n occ => ({\n id: occ.id,\n slug: occ.slug || '',\n startDateTime: occ.startDateTime,\n endDateTime: occ.endDateTime || '',\n status: (occ.ctaState?.reason === 'sold_out'\n ? 'sold_out'\n : 'on_sale') as EventStatus,\n ctaText: occ.ctaState?.text || 'Get Tickets',\n ctaDisabled: occ.ctaState?.disabled || false,\n })\n );\n\n // Use first occurrence for date fields\n const firstOcc = series.occurrences?.[0];\n const date = firstOcc?.startDateTime\n ? formatDateKey(firstOcc.startDateTime, timezone)\n : '';\n\n // Map FAQs\n const rawFaq = series.venue?.faq;\n let faqs: FAQItem[] = [];\n if (Array.isArray(rawFaq)) {\n faqs = rawFaq.map(f => ({\n question: f.question || '',\n answer: f.answer || '',\n }));\n } else if (typeof rawFaq === 'string' && rawFaq) {\n faqs = [{ question: 'FAQ', answer: rawFaq }];\n }\n\n // Map performers\n const performers: PerformerData[] = (series.performers || []).map(\n (p, index) => ({\n id: index + 1,\n displayName:\n p.displayName || [p.firstName, p.lastName].filter(Boolean).join(' '),\n profileImage: p.profileImage || undefined,\n })\n );\n\n // Venue address\n const venueAddress =\n series.venue?.location || series.venue?.googleLocationNameCache || '';\n\n return {\n id: series.id,\n title: series.title || '',\n slug: '',\n description: series.description || series.eventSummary || '',\n date,\n startDateTime: firstOcc?.startDateTime || '',\n endDateTime: firstOcc?.endDateTime || '',\n doorsOpenTime: '',\n timezone,\n imageUrl,\n venue: {\n id: series.venue?.id || 0,\n name: series.venue?.name || '',\n address: venueAddress,\n timezone,\n serviceFeePercentage: 0,\n serviceFeeCents: 0,\n taxPercentage: 0,\n },\n performers,\n tickets: [],\n faqs,\n disclaimer: series.venue?.disclaimer || undefined,\n status: 'on_sale',\n eventSeriesId: series.id,\n seriesOccurrences,\n isPasswordProtected: false,\n isRegistrationEvent: false,\n totalTicketsRemaining: 0,\n totalTicketsCapacity: 0,\n venueAddressLines: parseAddress(venueAddress),\n googleMapsUrl: buildGoogleMapsUrl(venueAddress),\n };\n}\n\n/**\n * Back-compat alias — the public-calendar-flow shaper name. Existing call\n * sites importing transformSeriesPageData continue to work unchanged.\n */\nexport const transformSeriesPageData = parseSeries;\n","/**\n * Collection Page Transformer\n *\n * Wire->domain boundary for the public collection page. Maps a\n * PublicCollectionData payload (from the collection API) into the clean\n * EventData shape consumed by CollectionView.svelte / EventExperience\n * (full-width collection mode, set via collectionId).\n *\n * Lifted byte-identically from public-calendar-flow/transform.ts's\n * transformCollectionData. Every ||/?? fallthrough is preserved exactly;\n * characterization tests pin the output. transformCollectionData now delegates\n * here.\n *\n * COMPOSITION NOTE — why this does NOT reuse parseVenue/parseEvent:\n * The collection payload has no venue and no timezone; the EventData it\n * produces hard-codes an empty venue and 'UTC'. The per-event mapping is a\n * tiny CollectionEvent card shape (id/name/slug/image/startDateTime/status),\n * not the full Event domain — reusing parseEvent would change the output.\n * Both stay local.\n */\n\nimport { resolveImageUrl } from '@getmicdrop/svelte-components';\nimport type { PublicCollectionData } from '../types.js';\nimport type {\n EventData,\n EventStatus,\n CollectionEvent,\n} from '$lib/public-calendar-flow/types';\n\n/**\n * Transform PublicCollectionData (from the collection API) into our clean EventData interface.\n * Sets collectionId so EventExperience renders in full-width collection mode.\n */\nexport function parseCollection(collection: PublicCollectionData): EventData {\n // Map collection events to CollectionEvent[]\n const collectionEvents: CollectionEvent[] = (collection.events || []).map(\n ev => {\n return {\n id: ev.id,\n name: ev.title || '',\n slug: ev.slug || '',\n // SC's resolveImageUrl passes absolute http(s)/data/blob URLs through\n // untouched, so no local startsWith('http') guard is needed.\n image: resolveImageUrl(ev.image || '', { cdn: true }),\n startDateTime: ev.startDateTime || '',\n status: (ev.status || 'on_sale') as EventStatus,\n };\n }\n );\n\n // Cover image — SC resolveImageUrl already passes absolute URLs through.\n const imageUrl = resolveImageUrl(collection.coverImage || '', { cdn: true });\n\n return {\n id: collection.id,\n title: collection.collectionTitle || '',\n slug: '',\n description: collection.description || collection.summary || '',\n date: '',\n startDateTime: '',\n endDateTime: '',\n doorsOpenTime: '',\n timezone: 'UTC',\n imageUrl,\n venue: {\n id: 0,\n name: '',\n address: '',\n timezone: 'UTC',\n serviceFeePercentage: 0,\n serviceFeeCents: 0,\n taxPercentage: 0,\n },\n performers: [],\n tickets: [],\n faqs: [],\n status: 'on_sale',\n collectionId: collection.id,\n collectionEvents,\n isPasswordProtected: false,\n isRegistrationEvent: false,\n totalTicketsRemaining: 0,\n totalTicketsCapacity: 0,\n };\n}\n\n/**\n * Back-compat alias — the public-calendar-flow shaper name. Existing call\n * sites importing transformCollectionData continue to work unchanged.\n */\nexport const transformCollectionData = parseCollection;\n","import { copyToClipboard } from '@getmicdrop/svelte-components';\n\n/**\n * Outcome of a share attempt, mapped by the caller to its own inline feedback.\n *\n * - `shared` — the native share sheet handled it (or the user cancelled). No\n * inline feedback: the OS UI already spoke, and a cancel must stay quiet.\n * - `copied` — the link landed on the clipboard via the SC canonical.\n * - `failed` — the clipboard write was blocked; surface the URL for manual copy.\n */\nexport type ShareLinkResult = 'shared' | 'copied' | 'failed';\n\n/**\n * Share-link decision — the ONE copy of the native-share/clipboard logic that\n * used to be duplicated across the event header and the confirmation sidebar.\n *\n * 1. Native share sheet when the browser exposes `navigator.share`. A user\n * cancel (AbortError) ends quietly — returns `shared`, no fallback.\n * 2. Otherwise (no share API, or a non-cancel share failure) copy the URL via\n * the SC canonical `copyToClipboard`, which resolves `true` ONLY on a real\n * write and falls back to `execCommand` on the insecure (http embed) hosts\n * where the async Clipboard API is unavailable — the exact context the old\n * raw `navigator.clipboard.writeText` threw in.\n *\n * VC has no toasts (standalone embeddable widget, no Toaster mounted), so this\n * returns a result the caller renders inline rather than firing feedback here.\n *\n * @param url - The link to share.\n */\nexport async function shareEventLink(url: string): Promise<ShareLinkResult> {\n if (\n typeof navigator !== 'undefined' &&\n typeof navigator.share === 'function'\n ) {\n try {\n await navigator.share({ url });\n return 'shared';\n } catch (err: unknown) {\n // User dismissed the share sheet — leave it there, no fallback. Browsers\n // reject with a DOMException named 'AbortError', and DOMException is NOT\n // `instanceof Error`, so match on the name alone (not the prototype).\n if ((err as { name?: string } | null)?.name === 'AbortError') {\n return 'shared';\n }\n // Any other failure falls through to the clipboard fallback below.\n }\n }\n\n return (await copyToClipboard(url)) ? 'copied' : 'failed';\n}\n","import { shareEventLink } from '$lib/public-calendar-flow/shareEventLink';\n\n/**\n * Share-link copy feedback — the ONE copy of the inline state machine that used\n * to be hand-rolled identically in the event header and the confirmation\n * sidebar. It owns the reactive `copyState`/`copyFailedUrl` and the reset timer,\n * delegating the native-share/clipboard decision to `shareEventLink`.\n *\n * VC has no toasts, so feedback is inline: `copied` briefly swaps the button\n * label, `failed` reveals the URL for manual copy. Native share (or a user\n * cancel) leaves the state untouched — the OS UI already spoke.\n *\n * Call `dispose()` from the consumer's `onDestroy` to clear the pending timer.\n */\nexport function createShareCopyFeedback() {\n let copyState = $state<'idle' | 'copied' | 'failed'>('idle');\n let copyFailedUrl = $state('');\n let resetTimer: ReturnType<typeof setTimeout> | undefined;\n\n async function share(url: string) {\n const result = await shareEventLink(url);\n if (result === 'copied') {\n copyFailedUrl = '';\n copyState = 'copied';\n clearTimeout(resetTimer);\n resetTimer = setTimeout(() => (copyState = 'idle'), 2500);\n } else if (result === 'failed') {\n // Copy blocked — reveal the URL inline so the buyer can select it manually.\n clearTimeout(resetTimer);\n copyState = 'failed';\n copyFailedUrl = url;\n }\n // 'shared' → native sheet handled it (or user cancelled); no inline feedback.\n }\n\n function dispose() {\n clearTimeout(resetTimer);\n }\n\n return {\n get copyState() {\n return copyState;\n },\n get copyFailedUrl() {\n return copyFailedUrl;\n },\n share,\n dispose,\n };\n}\n","import { getIANATimezone } from '@getmicdrop/svelte-components';\nimport { formatDateKey } from '$lib/utils/datetime.js';\n// Premium Ticket Experience — API → EventData Transformer\n// Maps raw API event responses to our clean EventData interface.\n// Used when plugging in real API data. The showcase continues using mock-data.ts directly.\n\nimport { resolveImageUrl } from '@getmicdrop/svelte-components';\nimport {\n parseAddress,\n buildGoogleMapsUrl,\n} from '$lib/api/transformers/address';\n// Canonical wire→domain boundary — all event-level scalar reads go through it.\nimport { parseEvent } from '$lib/api/transformers/event';\nimport { parseSeries } from '$lib/api/transformers/series';\nimport { parseCollection } from '$lib/api/transformers/collection';\nimport type {\n EventData,\n EventStatus,\n TicketTypeData,\n TicketStatus,\n VenueData,\n PerformerData,\n FAQItem,\n SeriesOccurrence,\n} from './types';\nimport type { SeriesPageData, PublicCollectionData } from '$lib/api/types';\n\n/**\n * Map a raw API ticket status/state to our TicketStatus union.\n */\nfunction mapTicketStatus(ticket: any): TicketStatus {\n const now = new Date();\n const remaining =\n ticket.remainingCapacity ??\n ticket.quantityRemaining ??\n ticket.quantity ??\n 0;\n const salesBegin =\n ticket.salesBegin ||\n ticket.salesStart ||\n ticket.saleBegin ||\n ticket.onSaleStart;\n const salesEnd = ticket.salesEnd || ticket.saleEnd || ticket.onSaleEnd;\n\n if (remaining <= 0) return 'sold_out';\n if (salesEnd && new Date(salesEnd) < now) return 'sales_ended';\n if (salesBegin && new Date(salesBegin) > now) return 'coming_soon';\n return 'on_sale';\n}\n\n/**\n * Map a raw API event status string to our EventStatus union.\n */\nfunction mapEventStatus(\n rawStatus: string,\n tickets: TicketTypeData[]\n): EventStatus {\n const s = (rawStatus || '').toLowerCase().replace(/\\s+/g, '_');\n\n if (s === 'cancelled' || s === 'canceled') return 'cancelled';\n\n // Check if event is past based on end time (handled by caller if needed)\n if (s === 'past' || s === 'ended') return 'past';\n\n // MIC-1039: if any hidden ticket is still on sale, the event is \"on_sale\"\n // regardless of visible-ticket states — the user just needs a promo code.\n // NOTE: this operates on the pcf DOMAIN ticket shape (post-transform, with a\n // computed `status` string), NOT the wire shape SC's\n // `isHiddenTicketPurchasable` reads (raw visibility/salesChannel/sale-window\n // fields). The sale-window math already happened in `mapTicketStatus`, so the\n // SC predicate can't honestly serve this site — kept deliberately local.\n const hasPurchasableHiddenTickets = tickets.some(\n t => t.isHidden && t.status === 'on_sale'\n );\n if (hasPurchasableHiddenTickets) return 'on_sale';\n\n // Derive from ticket states\n const publicTickets = tickets.filter(t => !t.isHidden);\n if (publicTickets.length > 0) {\n if (publicTickets.every(t => t.status === 'sold_out')) return 'sold_out';\n if (publicTickets.every(t => t.status === 'coming_soon'))\n return 'coming_soon';\n if (\n publicTickets.every(\n t => t.status === 'sales_ended' || t.status === 'sold_out'\n )\n )\n return 'sales_ended';\n }\n\n if (s === 'sold_out' || s === 'soldout') return 'sold_out';\n if (s === 'coming_soon' || s === 'comingsoon') return 'coming_soon';\n if (s === 'sales_ended' || s === 'salesended') return 'sales_ended';\n\n return 'on_sale';\n}\n\n/**\n * Transform a raw API event response into our clean EventData interface.\n * This is the bridge between the API and our premium ticket experience components.\n *\n * COMPOSITION NOTE (events convergence): the wire is parsed ONCE through the\n * canonical parseEvent ($lib/api/transformers/event); every event-level\n * scalar below projects off the domain Event. Three deliberate wire seams\n * remain, characterization-pinned in\n * utils/event-shapers.characterization.test.js:\n * 1. TICKETS — the TicketTypeData map uses `??` (nullish) semantics over\n * raw ticket fields (remainingCapacity/visibility/fee/…) that\n * parseTicket's `||`-folding AvailableTicket neither carries nor\n * preserves; routing through parseTicket would change rendered output.\n * 2. IMAGE — image→imageUrl→image_url precedence intentionally differs\n * from the canonical resolver's (imageUrl-first); see the note in\n * api/transformers/event.ts.\n * 3. VENUE/PERFORMERS — mapped from the raw passthrough objects\n * (domain.venue / domain.performers) with B-specific `??` fee/tax\n * semantics; the performer canonical lands in PR #260 and should\n * absorb the performer map then.\n */\nexport function transformApiEvent(rawEvent: any): EventData {\n // Wire→domain ONCE (see composition note).\n const domain = parseEvent(rawEvent);\n const rawVenue = domain.venue || {};\n // Event-level timeZone is an OPTIONAL per-event override; when absent/blank it\n // must inherit the venue timezone. Falling straight to 'UTC' here rendered\n // venue-local times (e.g. a Fri 10pm Central show) in UTC (\"Sat 3:00 AM\"),\n // which made already-ended events look like future ones.\n // (domain.timeZone is the verbatim PascalCase passthrough; domain.timezone\n // folds lowercase + snake_case — same chain as before.)\n const timezone = getIANATimezone(\n domain.timeZone ||\n domain.timezone ||\n rawVenue.timeZone ||\n rawVenue.timezone ||\n 'UTC'\n );\n\n // Transform tickets — TICKET SEAM: raw wire tickets by contract (see note).\n const rawTickets = rawEvent.availableTickets || [];\n const tickets: TicketTypeData[] = rawTickets.map((t: any) => ({\n id: t.id || t.ID,\n name: t.name || t.title || '',\n description: t.description || undefined,\n price: t.price ?? 0,\n fee: t.fee ?? 0,\n quantityAvailable:\n t.remainingCapacity ?? t.quantityRemaining ?? t.quantity ?? 0,\n quantityTotal: t.totalCapacity ?? t.quantity ?? 0,\n minPerOrder: t.minPerOrder ?? t.minQuantity ?? 1,\n maxPerOrder: t.maxPerOrder ?? t.maxQuantity ?? 10,\n status: mapTicketStatus(t),\n salesStartDate:\n t.salesBegin || t.salesStart || t.saleBegin || t.onSaleStart || undefined,\n salesEndDate: t.salesEnd || t.saleEnd || t.onSaleEnd || undefined,\n isDonation: t.type === 2 || t.ticketType === 2 || t.isDonation === true,\n isHidden: t.visibility === 2 || t.isHidden === true,\n ticketType: t.type || t.ticketType || undefined,\n sectionName: t.sectionName || t.section || undefined,\n }));\n\n // Calculate totals from public tickets\n const publicTickets = tickets.filter(t => !t.isHidden && !t.isDonation);\n const totalRemaining = publicTickets.reduce(\n (sum, t) => sum + t.quantityAvailable,\n 0\n );\n const totalCapacity = publicTickets.reduce(\n (sum, t) => sum + t.quantityTotal,\n 0\n );\n\n // Determine event status\n const status = mapEventStatus(domain.status as string, tickets);\n\n // Build image URL — IMAGE SEAM: image-first precedence (see note).\n const rawImage =\n rawEvent.image || rawEvent.imageUrl || rawEvent.image_url || '';\n const imageUrl = rawImage.startsWith('http')\n ? rawImage\n : resolveImageUrl(rawImage, { cdn: true });\n\n // Venue\n const venue: VenueData = {\n id: rawVenue.id || rawVenue.ID || 0,\n name: rawVenue.name || rawVenue.googleLocationNameCache || '',\n address: rawVenue.address || rawVenue.googleLocationNameCache || '',\n timezone,\n serviceFeePercentage: rawVenue.serviceFeePercentage ?? rawVenue.fee ?? 0,\n serviceFeeCents: rawVenue.serviceFeeCents ?? 0,\n taxPercentage: rawVenue.taxPercentage ?? rawVenue.tax ?? 0,\n contactEmail: rawVenue.contactEmail || rawVenue.email || undefined,\n };\n\n // Performers — VENUE/PERFORMERS SEAM: raw passthrough map (see note).\n const rawPerformers = domain.performers || [];\n const performers: PerformerData[] = rawPerformers.map((p: any) => ({\n id: p.id || p.ID,\n displayName: p.displayName || p.name || '',\n profileImage: p.avatar || p.profileImage || undefined,\n role: p.role || undefined,\n }));\n\n // FAQs (may not be in API response)\n const faqs: FAQItem[] = (domain.faqs || []).map((f: any) => ({\n question: f.question || '',\n answer: f.answer || '',\n }));\n\n // Series showtimes → occurrences. A single series-event detail carries a\n // `showtimes` array; the v2 <ShowtimeDesigns> renders event.seriesOccurrences\n // under \"Upcoming Shows\". Without this map the section is always empty.\n const seriesOccurrences: SeriesOccurrence[] = (domain.showtimes || [])\n .filter((s: any) => s.published !== false)\n .map((s: any, i: number) => ({\n id: s.id ?? s.eventId ?? i + 1,\n slug: s.slug || '',\n startDateTime: s.startDateTime || s.startTime || '',\n endDateTime: s.endDateTime || s.endTime || '',\n status: (s.ctaState?.reason === 'sold_out'\n ? 'sold_out'\n : 'on_sale') as EventStatus,\n ctaText: s.ctaState?.text || 'Get tickets',\n ctaDisabled: s.ctaState?.disabled || false,\n }));\n\n // Date in venue timezone\n const date = domain.startDateTime\n ? formatDateKey(domain.startDateTime, timezone)\n : '';\n\n return {\n id: domain.id,\n title: domain.title || '',\n slug: domain.slug || '',\n description: domain.description || domain.eventSummary || '',\n date,\n startDateTime: domain.startDateTime || '',\n endDateTime: domain.endDateTime || '',\n doorsOpenTime: domain.doorsOpenTime || '',\n timezone,\n imageUrl,\n venue,\n performers,\n tickets,\n faqs,\n disclaimer: domain.disclaimer || undefined,\n status,\n eventSeriesId: domain.eventSeriesId || undefined,\n seriesOccurrences: seriesOccurrences.length ? seriesOccurrences : undefined,\n // Public API hides the actual password (json:\"-\") and exposes a boolean\n // `hasPassword` flag instead; fall back to a populated `password` for\n // admin-shaped payloads.\n isPasswordProtected: domain.hasPassword === true || !!domain.password,\n isRegistrationEvent:\n domain.ticketType === 1 || domain.eventTicketingType === 1,\n totalTicketsRemaining: totalRemaining,\n totalTicketsCapacity: totalCapacity,\n stageName: domain.stage?.name || domain.stageName || undefined,\n ageRestriction: domain.ageRestriction || undefined,\n displayAgeRestriction: domain.displayAgeRestriction ?? false,\n displayStartTime: domain.displayStartTime ?? true,\n displayEndTime: domain.displayEndTime ?? true,\n displayDoorsTime: domain.displayDoorsTime ?? true,\n collectionId: domain.collectionId || undefined, // domain folds collection_id\n venueAddressLines: parseAddress(\n rawVenue.address || rawVenue.googleLocationNameCache || ''\n ),\n googleMapsUrl: buildGoogleMapsUrl(\n rawVenue.address || rawVenue.googleLocationNameCache || ''\n ),\n };\n}\n\n/**\n * Transform SeriesPageData (from the series API) into our clean EventData interface.\n * Sets eventSeriesId so EventExperience renders in full-width series mode.\n */\nexport function transformSeriesPageData(series: SeriesPageData): EventData {\n // Implementation moved to the canonical transformer home\n // (`$lib/api/transformers/series.ts`). This export stays as a thin delegate\n // so SeriesPage.svelte and other consumers don't churn.\n return parseSeries(series);\n}\n\n/**\n * Transform PublicCollectionData (from the collection API) into our clean EventData interface.\n * Sets collectionId so EventExperience renders in full-width collection mode.\n */\nexport function transformCollectionData(\n collection: PublicCollectionData\n): EventData {\n // Implementation moved to the canonical transformer home\n // (`$lib/api/transformers/collection.ts`). This export stays as a thin\n // delegate so CollectionView.svelte and other consumers don't churn.\n return parseCollection(collection);\n}\n"],"names":["size","$","$$props","color","className","ctx","useIconWeight","resolved","svg","root_2","path","root","$$render","consequent","alternate","styles","copyToClipboard","text","copyViaExecCommand","prevActive","selection","savedRanges","_","i","textarea","range","parseAddress","addressStr","parts","p","stateZipMatch","state","zip","city","lines","buildGoogleMapsUrl","address","parseSeries","series","seriesAny","timezone","getIANATimezone","imageUrl","resolveImageUrl","seriesOccurrences","occ","firstOcc","date","formatDateKey","rawFaq","faqs","f","performers","index","venueAddress","parseCollection","collection","collectionEvents","ev","shareEventLink","url","err","createShareCopyFeedback","copyState","copyFailedUrl","resetTimer","share","result","dispose","mapTicketStatus","ticket","now","remaining","salesBegin","salesEnd","mapEventStatus","rawStatus","tickets","s","t","publicTickets","transformApiEvent","rawEvent","domain","parseEvent","rawVenue","totalRemaining","sum","totalCapacity","status","rawImage","venue","transformSeriesPageData","transformCollectionData"],"mappings":";;;;iBAAA;;AAmBE,MAAMA,IAAIC,EAAA,KAAAC,GAAA,QAAA,GAAG,IAAI,GAAEC,0BAAQ,cAAc,GAASC,0BAAY,EAAE;AAEhE,QAAMC,IAAMC,EAAa;AACzB,MAAIC,IAAoBN,EAAA,QAAA,MAAAC,EAAA,UAAsBG,GAAK,UAAU,SAAS;MAGvEG,IAAEC,EAAA;;kBAAFD,CAAE;;;UAUyBE,IAAIC,EAAA;kBAAJD,CAAI;AAAA;;;;;AAAzB,MAAAT,EAAA,IAAAM,CAAQ,MAAK,SAAMK,EAAAC,CAAA,IAAAD,EAAAE,GAAA,EAAA;AAAA;;UAVzBN,CAAE;AAAF,IAAAP,EAAA,UAAAO,aACQJ,EAAS,CAAA,CAAA,GADjBH,EAAA,cAAAO,YAGQR,EAAI,CAAA,GAHZC,EAAA,cAAAO,aAISR,EAAI,CAAA,GAJbe,IAAAd,EAAA,UAAAO,mBAOcL,EAAK,GAAA;AAAA,kBAPnBK,CAAE;AAFK;;iBCvBR;;AAmBE,MAAMR,IAAIC,EAAA,KAAAC,GAAA,QAAA,GAAG,IAAI,GAAEC,0BAAQ,cAAc,GAASC,0BAAY,EAAE;AAEhE,QAAMC,IAAMC,EAAa;AACzB,MAAIC,IAAoBN,EAAA,QAAA,MAAAC,EAAA,UAAsBG,GAAK,UAAU,SAAS;MAGvEG,IAAEC,EAAA;;kBAAFD,CAAE;;;UAUyBE,IAAIC,EAAA;kBAAJD,CAAI;AAAA;;;;;AAAzB,MAAAT,EAAA,IAAAM,CAAQ,MAAK,SAAMK,EAAAC,CAAA,IAAAD,EAAAE,GAAA,EAAA;A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|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
})();
|
|
13
|
-
import { aN as t, aO as i, aP as n, aQ as r, aR as o, aS as u, aT as b, aU as c, aV as h, aW as C, aX as m, aY as V, aZ as l, a_ as g, a$ as S, b0 as T, b1 as d, b2 as k, b3 as p, b4 as w, b5 as f, b6 as E, b7 as P, b8 as v, b9 as x, ba as M, bb as y } from "./VenueCalendar-
|
|
13
|
+
import { aN as t, aO as i, aP as n, aQ as r, aR as o, aS as u, aT as b, aU as c, aV as h, aW as C, aX as m, aY as V, aZ as l, a_ as g, a$ as S, b0 as T, b1 as d, b2 as k, b3 as p, b4 as w, b5 as f, b6 as E, b7 as P, b8 as v, b9 as x, ba as M, bb as y } from "./VenueCalendar-Cz7_VBC6.js";
|
|
14
14
|
import { unmount as O } from "svelte";
|
|
15
15
|
import "svelte/store";
|
|
16
16
|
export {
|