@getmicdrop/venue-calendar 4.0.109 → 4.0.111

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.
Files changed (110) hide show
  1. package/dist/CartView-DiSdmuA_.js +2475 -0
  2. package/dist/CartView-DiSdmuA_.js.map +1 -0
  3. package/dist/{Checkout-CMEf_qnp.js → Checkout-DBaNrRya.js} +323 -333
  4. package/dist/Checkout-DBaNrRya.js.map +1 -0
  5. package/dist/{Checkout-Chki2df_.js → Checkout-DwJr030c.js} +206 -205
  6. package/dist/Checkout-DwJr030c.js.map +1 -0
  7. package/dist/{CheckoutTimer-BAaY_60w.js → CheckoutTimer-DPFVh7QG.js} +5 -5
  8. package/dist/{CheckoutTimer-BAaY_60w.js.map → CheckoutTimer-DPFVh7QG.js.map} +1 -1
  9. package/dist/{ClockIcon-Dbbj_qur.js → ClockIcon-BoEIfS3d.js} +2 -2
  10. package/dist/{ClockIcon-Dbbj_qur.js.map → ClockIcon-BoEIfS3d.js.map} +1 -1
  11. package/dist/{CollectionView-RM30YPOJ.js → CollectionView-DM3WLpLu.js} +78 -77
  12. package/dist/CollectionView-DM3WLpLu.js.map +1 -0
  13. package/dist/{Event-kdxMa6OT.js → Event-DymZpajQ.js} +659 -657
  14. package/dist/Event-DymZpajQ.js.map +1 -0
  15. package/dist/{EventPage-BRBByBHe.js → EventPage-D7GG_BWH.js} +300 -306
  16. package/dist/EventPage-D7GG_BWH.js.map +1 -0
  17. package/dist/{Heading-CSDFD80h.js → Heading-C8oOcA05.js} +2 -2
  18. package/dist/{Heading-CSDFD80h.js.map → Heading-C8oOcA05.js.map} +1 -1
  19. package/dist/{ScarcityBadge-B0ca48su.js → ScarcityBadge-BqJHRkab.js} +11 -11
  20. package/dist/{ScarcityBadge-B0ca48su.js.map → ScarcityBadge-BqJHRkab.js.map} +1 -1
  21. package/dist/SeriesPage-DsJ9zGPQ.js +34 -0
  22. package/dist/SeriesPage-DsJ9zGPQ.js.map +1 -0
  23. package/dist/{Spinner--TOwvv9A.js → Spinner-DPzuHWU6.js} +2 -2
  24. package/dist/{Spinner--TOwvv9A.js.map → Spinner-DPzuHWU6.js.map} +1 -1
  25. package/dist/Success-C0D_INAc.js +896 -0
  26. package/dist/Success-C0D_INAc.js.map +1 -0
  27. package/dist/{Text-WLl_ELy9.js → Text-DOd8068v.js} +19 -19
  28. package/dist/Text-DOd8068v.js.map +1 -0
  29. package/dist/VenueCalendar-B809Hecp.js +16467 -0
  30. package/dist/VenueCalendar-B809Hecp.js.map +1 -0
  31. package/dist/{ViewTicketsEmbed-BOukxQIF.js → ViewTicketsEmbed-BPMp4JM0.js} +86 -85
  32. package/dist/{ViewTicketsEmbed-BOukxQIF.js.map → ViewTicketsEmbed-BPMp4JM0.js.map} +1 -1
  33. package/dist/__SKIP_PATHS__-BtJ0tS93.js +10 -0
  34. package/dist/__SKIP_PATHS__-BtJ0tS93.js.map +1 -0
  35. package/dist/{labels-DXGieQXs.js → labels-wFEhrJkb.js} +154 -149
  36. package/dist/labels-wFEhrJkb.js.map +1 -0
  37. package/dist/{modalManager.svelte-Dbd1xgTQ.js → modalManager.svelte-DjiZPIja.js} +2 -2
  38. package/dist/{modalManager.svelte-Dbd1xgTQ.js.map → modalManager.svelte-DjiZPIja.js.map} +1 -1
  39. package/dist/navigation--gZASiSa.js +19 -0
  40. package/dist/navigation--gZASiSa.js.map +1 -0
  41. package/dist/{promo-oWi_MKmY.js → promo-DK6Hxogl.js} +2 -2
  42. package/dist/{promo-oWi_MKmY.js.map → promo-DK6Hxogl.js.map} +1 -1
  43. package/dist/{showcase-state-options-DJJdjxvZ.js → showcase-state-options-BuPnUf0V.js} +21 -21
  44. package/dist/showcase-state-options-BuPnUf0V.js.map +1 -0
  45. package/dist/{transform-Bgqwj9i-.js → transform-C6LCkao6.js} +81 -77
  46. package/dist/transform-C6LCkao6.js.map +1 -0
  47. package/dist/types/index.d.ts +18 -14
  48. package/dist/utm-DYGTGbVA.js +288 -0
  49. package/dist/utm-DYGTGbVA.js.map +1 -0
  50. package/dist/venue-calendar.css +1 -1
  51. package/dist/venue-calendar.es.js +2 -2
  52. package/dist/venue-calendar.iife.js +50 -50
  53. package/dist/venue-calendar.iife.js.map +1 -1
  54. package/dist/venue-calendar.umd.js +45 -45
  55. package/dist/venue-calendar.umd.js.map +1 -1
  56. package/package.json +199 -199
  57. package/dist/CartView-C3N5pw89.js +0 -2381
  58. package/dist/CartView-C3N5pw89.js.map +0 -1
  59. package/dist/Checkout-CMEf_qnp.js.map +0 -1
  60. package/dist/Checkout-Chki2df_.js.map +0 -1
  61. package/dist/CollectionView-RM30YPOJ.js.map +0 -1
  62. package/dist/Event-kdxMa6OT.js.map +0 -1
  63. package/dist/EventPage-BRBByBHe.js.map +0 -1
  64. package/dist/SeriesPage-CczfbUKO.js +0 -33
  65. package/dist/SeriesPage-CczfbUKO.js.map +0 -1
  66. package/dist/Success-DIWUGUPs.js +0 -886
  67. package/dist/Success-DIWUGUPs.js.map +0 -1
  68. package/dist/Text-WLl_ELy9.js.map +0 -1
  69. package/dist/VenueCalendar-CU5N9klc.js +0 -16579
  70. package/dist/VenueCalendar-CU5N9klc.js.map +0 -1
  71. package/dist/api/api/client.d.ts +0 -17
  72. package/dist/api/api/cta.d.ts +0 -34
  73. package/dist/api/api/events.d.ts +0 -183
  74. package/dist/api/api/gift-cards.d.ts +0 -108
  75. package/dist/api/api/index.d.ts +0 -46
  76. package/dist/api/api/orders.d.ts +0 -149
  77. package/dist/api/api/promo.d.ts +0 -45
  78. package/dist/api/api/result.d.ts +0 -78
  79. package/dist/api/api/route-manifest.d.ts +0 -179
  80. package/dist/api/api/transformers/address.d.ts +0 -18
  81. package/dist/api/api/transformers/cart.d.ts +0 -19
  82. package/dist/api/api/transformers/collection.d.ts +0 -12
  83. package/dist/api/api/transformers/event.d.ts +0 -173
  84. package/dist/api/api/transformers/giftCard.d.ts +0 -11
  85. package/dist/api/api/transformers/index.d.ts +0 -27
  86. package/dist/api/api/transformers/order.d.ts +0 -44
  87. package/dist/api/api/transformers/performer.d.ts +0 -8
  88. package/dist/api/api/transformers/series.d.ts +0 -12
  89. package/dist/api/api/transformers/venue.d.ts +0 -39
  90. package/dist/api/api/venues.d.ts +0 -33
  91. package/dist/api/api/waitlist.d.ts +0 -49
  92. package/dist/api/api.cjs +0 -2
  93. package/dist/api/api.cjs.map +0 -1
  94. package/dist/api/api.mjs +0 -1299
  95. package/dist/api/api.mjs.map +0 -1
  96. package/dist/api/types.d.ts +0 -483
  97. package/dist/labels-DXGieQXs.js.map +0 -1
  98. package/dist/seo/HostSeoController.d.ts +0 -68
  99. package/dist/seo/buildCollectionJsonLd.d.ts +0 -8
  100. package/dist/seo/buildEventJsonLd.d.ts +0 -9
  101. package/dist/seo/buildSeriesJsonLd.d.ts +0 -6
  102. package/dist/seo/helpers.d.ts +0 -88
  103. package/dist/seo/index.d.ts +0 -10
  104. package/dist/seo/seo.cjs +0 -2
  105. package/dist/seo/seo.cjs.map +0 -1
  106. package/dist/seo/seo.mjs +0 -541
  107. package/dist/seo/seo.mjs.map +0 -1
  108. package/dist/seo/types.d.ts +0 -150
  109. package/dist/showcase-state-options-DJJdjxvZ.js.map +0 -1
  110. package/dist/transform-Bgqwj9i-.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels-wFEhrJkb.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/CalendarIcon.svelte","../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\">\r\n /**\r\n * Calendar — Phosphor icon (canonical Micdrop icon family).\r\n * Outline by default; pass `weight=\"fill\"` for solid, or let a stateful parent\r\n * (NavItem / Tabs / BottomNav / status badge) drive it via icon-weight context.\r\n */\r\n import { useIconWeight, type IconWeight } from './iconWeight.js';\r\n\r\n interface Props {\r\n /** Pixel size (width + height). */\r\n size?: string;\r\n /** Icon color; defaults to `currentColor` (inherits text color). */\r\n color?: string;\r\n /** Extra classes. */\r\n class?: string;\r\n /** `regular` (outline) or `fill` (solid). Overrides ambient state weight. */\r\n weight?: IconWeight;\r\n }\r\n\r\n let { size = '24', color = 'currentColor', class: className = '', weight }: Props = $props();\r\n\r\n const ctx = useIconWeight();\r\n let resolved: IconWeight = $derived(weight ?? ctx?.weight ?? 'regular');\r\n</script>\r\n\r\n<svg\r\n class={className}\r\n aria-hidden=\"true\"\r\n width={size}\r\n height={size}\r\n viewBox=\"0 0 256 256\"\r\n fill=\"currentColor\"\r\n style:color={color}\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n>\r\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}\r\n</svg>\r\n","/**\r\n * CTA state computation.\r\n *\r\n * Pure function (no I/O) — derives the buy-button state from an event and\r\n * its ticket list. Lives in `api/` because it is the canonical, single\r\n * source of truth that replaces the duplicate implementations previously\r\n * scattered across utils/api.js, core/api-client.js, and a few components.\r\n */\r\n\r\n// Import from the specific subpath (not the bare entry) so the api/\r\n// bundle doesn't pull in the entire SC component graph (Accordion etc.)\r\n// and break `npm run build:api`. `formatLocal` is the sanctioned browser-local\r\n// (no-timezone) Intl label home — these \"On sale …\" countdown labels render in\r\n// the viewer's own clock, so no venue timezone applies. The datetime subpath is\r\n// leaf/component-free; only `formatLocal` (→ Intl) is pulled, no date-fns.\r\nimport {\r\n browserNow,\r\n compareInstants,\r\n formatLocal,\r\n toInstantOrNull,\r\n} from '@getmicdrop/svelte-components/datetime';\r\n// Hidden-ticket predicate from the `/transforms` leaf subpath (no component\r\n// graph, so `npm run build:api` stays clean). SC's copy was pinned FROM this\r\n// body (dedup #392) and additionally honours the backend-resolved\r\n// `effectiveSales*` window for relative-offset tickets (#388). Imported (not\r\n// just re-exported) so it stays in local scope for `computeCtaState` below.\r\nimport { isHiddenTicketPurchasable } from '@getmicdrop/svelte-components/transforms';\r\n\r\nexport interface CtaStateOptions {\r\n cancelled?: boolean;\r\n isRegistration?: boolean;\r\n waitlistEnabled?: boolean;\r\n}\r\n\r\nexport interface CtaState {\r\n text: string;\r\n disabled: boolean;\r\n reason:\r\n | 'cancelled'\r\n | 'event_past'\r\n | 'no_tickets'\r\n | 'available'\r\n | 'coming_soon'\r\n | 'sold_out_waitlist'\r\n | 'sold_out'\r\n | 'sales_ended'\r\n | 'hidden_only';\r\n}\r\n\r\ninterface CtaEvent {\r\n startDateTime?: string | null;\r\n endDateTime?: string | null;\r\n hasPurchasableHiddenTickets?: boolean;\r\n}\r\n\r\ninterface CtaTicket {\r\n salesChannel?: number;\r\n salesBegin?: string | null;\r\n salesStart?: string | null;\r\n saleBegin?: string | null;\r\n onSaleStart?: string | null;\r\n salesEnd?: string | null;\r\n saleEnd?: string | null;\r\n onSaleEnd?: string | null;\r\n remainingCapacity?: number | null;\r\n quantityRemaining?: number | null;\r\n quantity?: number | null;\r\n soldOut?: boolean;\r\n isHidden?: boolean;\r\n visibility?: number;\r\n}\r\n\r\n// A hidden ticket (visibility>=2 or isHidden) that's still on sale drives the\r\n// \"Sales ended\" / \"Sold out\" / \"No tickets\" → \"Get tickets\" override. The user\r\n// just needs the promo code to see it. Re-exported from the SC canonical so\r\n// existing consumers (cta.test.ts, computeCtaState) keep their import path while\r\n// the single-source body lives in SC (dedup #392).\r\nexport { isHiddenTicketPurchasable };\r\n\r\nexport function computeCtaState(\r\n event: CtaEvent,\r\n tickets: CtaTicket[] | undefined,\r\n options: CtaStateOptions = {}\r\n): CtaState {\r\n const {\r\n cancelled = false,\r\n isRegistration = false,\r\n waitlistEnabled = false,\r\n } = options;\r\n const now = browserNow();\r\n\r\n if (cancelled)\r\n return { text: 'Cancelled', disabled: true, reason: 'cancelled' };\r\n\r\n const eventEnd = toInstantOrNull(event.endDateTime || event.startDateTime);\r\n if (eventEnd && compareInstants(eventEnd, now) < 0) {\r\n return { text: 'Sales ended', disabled: true, reason: 'event_past' };\r\n }\r\n\r\n const hiddenAvailable =\r\n event?.hasPurchasableHiddenTickets === true ||\r\n (Array.isArray(tickets) && tickets.some(isHiddenTicketPurchasable));\r\n\r\n const publicTickets = (tickets || []).filter(\r\n t =>\r\n t.salesChannel !== 2 &&\r\n !t.isHidden &&\r\n !(typeof t.visibility === 'number' && t.visibility >= 2)\r\n );\r\n if (publicTickets.length === 0) {\r\n if (hiddenAvailable) {\r\n return {\r\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\r\n disabled: false,\r\n reason: 'hidden_only',\r\n };\r\n }\r\n return {\r\n text: 'No tickets available',\r\n disabled: true,\r\n reason: 'no_tickets',\r\n };\r\n }\r\n\r\n let hasPurchasable = false;\r\n let allSoldOut = true;\r\n let allComingSoon = true;\r\n let earliestSalesStart: Date | null = null;\r\n\r\n for (const ticket of publicTickets) {\r\n const salesBegin = toInstantOrNull(\r\n ticket.salesBegin ||\r\n ticket.salesStart ||\r\n ticket.saleBegin ||\r\n ticket.onSaleStart\r\n );\r\n const salesEnd = toInstantOrNull(\r\n ticket.salesEnd || ticket.saleEnd || ticket.onSaleEnd\r\n );\r\n const remaining =\r\n ticket.remainingCapacity ?? ticket.quantityRemaining ?? ticket.quantity;\r\n const isSoldOut =\r\n ticket.soldOut ||\r\n (remaining !== null && remaining !== undefined && remaining <= 0);\r\n\r\n const isScheduled = salesBegin\r\n ? compareInstants(salesBegin, now) > 0\r\n : false;\r\n const hasSalesEnded = salesEnd ? compareInstants(salesEnd, now) < 0 : false;\r\n const isPurchasable = !isSoldOut && !isScheduled && !hasSalesEnded;\r\n\r\n if (isPurchasable) hasPurchasable = true;\r\n if (!isSoldOut) allSoldOut = false;\r\n if (!isScheduled) allComingSoon = false;\r\n\r\n if (isScheduled && salesBegin && !isSoldOut && !hasSalesEnded) {\r\n if (\r\n !earliestSalesStart ||\r\n compareInstants(salesBegin, earliestSalesStart) < 0\r\n ) {\r\n earliestSalesStart = salesBegin;\r\n }\r\n }\r\n }\r\n\r\n if (hasPurchasable) {\r\n return {\r\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\r\n disabled: false,\r\n reason: 'available',\r\n };\r\n }\r\n\r\n if (allComingSoon && earliestSalesStart) {\r\n if (hiddenAvailable) {\r\n return {\r\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\r\n disabled: false,\r\n reason: 'hidden_only',\r\n };\r\n }\r\n const diffMs = compareInstants(earliestSalesStart, now);\r\n const diffHours = diffMs / (1000 * 60 * 60);\r\n const diffDays = diffMs / (1000 * 60 * 60 * 24);\r\n // Viewer-local time label (\"8:00 PM\") — the shape shared by the <24h branch\r\n // and the >7d composite. Matches the deprecated `formatTime(d,{hour12:true})`\r\n // defaults-merge exactly.\r\n const timeLabel = (d: Date) =>\r\n formatLocal(\r\n d,\r\n { hour: 'numeric', minute: '2-digit', hour12: true },\r\n 'en-US'\r\n );\r\n let dateText: string;\r\n if (diffHours < 24) {\r\n dateText = timeLabel(earliestSalesStart);\r\n } else if (diffDays <= 7) {\r\n dateText = formatLocal(\r\n earliestSalesStart,\r\n { weekday: 'short', hour: 'numeric', minute: '2-digit', hour12: true },\r\n 'en-US'\r\n );\r\n } else {\r\n const d = formatLocal(\r\n earliestSalesStart,\r\n { month: 'short', day: 'numeric' },\r\n 'en-US'\r\n );\r\n dateText = `${d} ${timeLabel(earliestSalesStart)}`;\r\n }\r\n return {\r\n text: `On sale ${dateText}`,\r\n disabled: true,\r\n reason: 'coming_soon',\r\n };\r\n }\r\n\r\n if (allSoldOut) {\r\n if (hiddenAvailable) {\r\n return {\r\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\r\n disabled: false,\r\n reason: 'hidden_only',\r\n };\r\n }\r\n if (waitlistEnabled) {\r\n return {\r\n text: 'Join Waitlist',\r\n disabled: false,\r\n reason: 'sold_out_waitlist',\r\n };\r\n }\r\n return { text: 'Sold out', disabled: true, reason: 'sold_out' };\r\n }\r\n\r\n if (hiddenAvailable) {\r\n return {\r\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\r\n disabled: false,\r\n reason: 'hidden_only',\r\n };\r\n }\r\n\r\n return { text: 'Sales ended', disabled: true, reason: 'sales_ended' };\r\n}\r\n","// @currency-escape: feeCents / 100 in calculateServiceFee is arithmetic,\r\n// not display. Produces a dollar-magnitude number used in the fee formula\r\n// `price * (feePercentage / 100) + feeCents / 100`. Per Atlas\r\n// utility-currency convergence record; the no-handrolled-currency\r\n// ESLint rule's divideByHundred detector treats variable-name `Cents`\r\n// as drift but here it's real math.\r\n\r\n// Premium Ticket Experience — Constants & Defaults\r\n// Used by all design variants. DO NOT MODIFY per-variant.\r\n\r\n// This file is the canonical formatter module for public-calendar-flow: it\r\n// wraps + re-exports the timezone-aware production date/time formatters, plus\r\n// the shared sales-countdown formatter (formatSmartSalesDate) hoisted into\r\n// svelte-components (SC #471). No raw Intl date formatting lives here anymore.\r\n\r\nimport type {\r\n EventData,\r\n TicketTypeData,\r\n ScarcityLevel,\r\n CtaConfig,\r\n PromoCodeState,\r\n} from './types';\r\nimport { computeCtaState } from '$lib/api';\r\nimport {\r\n computeScarcityLevel,\r\n SCARCITY_THRESHOLDS,\r\n} from '$lib/constants/scarcity';\r\nimport type { Cents } from '@getmicdrop/svelte-components';\r\nimport { roundCurrency } from '@getmicdrop/svelte-components';\r\nimport { formatSmartSalesDate } from '@getmicdrop/svelte-components/utils/formatters';\r\nimport {\r\n formatFullDate,\r\n formatFullDateCompact,\r\n formatEventTime,\r\n formatTimeRange,\r\n formatDoorsTime,\r\n formatSalesDate,\r\n formatBrowseDate,\r\n formatEventDate,\r\n formatCleanTimeRange,\r\n getDateParts,\r\n} from '$lib/utils/datetime.js';\r\n\r\n// --- Re-export production date/time formatters (timezone-aware) ---\r\nexport {\r\n formatFullDate,\r\n formatFullDateCompact,\r\n formatEventTime,\r\n formatTimeRange,\r\n formatDoorsTime,\r\n formatSalesDate,\r\n formatBrowseDate,\r\n formatEventDate,\r\n formatCleanTimeRange,\r\n getDateParts,\r\n};\r\n\r\n// Shared sales-countdown formatter, adopted from svelte-components (SC #471).\r\n// Kept as a re-export so public-calendar-flow consumers import it from this\r\n// module unchanged. English defaults match VC's prior copy; the clock time\r\n// renders in UTC (matching the production TicketBlock origin) rather than the\r\n// old copy's viewer-local time.\r\nexport { formatSmartSalesDate };\r\n\r\n// --- Scarcity Badge Rules ---\r\n// Threshold logic lives in the ONE canonical computeScarcityLevel\r\n// ($lib/constants/scarcity) — including the sliding floor/cap that keeps a\r\n// 1,000-seat show from flagging \"Selling fast\" at 200 left. This module only\r\n// adapts the canon's tier enum ('sold-out'/'plenty') to public-calendar-flow's\r\n// display enum ('sold_out'/'none') and renders the copy.\r\nexport function getScarcityLevel(\r\n remaining: number,\r\n total: number\r\n): ScarcityLevel {\r\n const level = computeScarcityLevel(remaining, total);\r\n if (level === 'sold-out') return 'sold_out';\r\n if (level === 'plenty') return 'none';\r\n return level; // 'urgent' | 'low' — identical between the two enums\r\n}\r\n\r\nexport function getScarcityText(\r\n level: ScarcityLevel,\r\n remaining: number,\r\n context: 'browse' | 'event' | 'ticket',\r\n options?: { isFree?: boolean }\r\n): string | null {\r\n if (level === 'none') return null;\r\n if (level === 'sold_out') return 'Sold out';\r\n // No scarcity badges on free events/tickets — nothing to lose = no urgency\r\n if (options?.isFree) return null;\r\n if (\r\n level === 'urgent' &&\r\n context !== 'browse' &&\r\n remaining <= SCARCITY_THRESHOLDS.MAX_EXACT_COUNT\r\n ) {\r\n return `Only ${remaining} left`;\r\n }\r\n if (level === 'low' || level === 'urgent') return 'Selling fast';\r\n return null;\r\n}\r\n\r\n// --- CTA Rules ---\r\n// Delegates to production computeCtaState() but adapts our EventData shape.\r\n// Components keep calling getCtaConfig(event) — internal logic is production-aligned.\r\nexport function getCtaConfig(event: EventData): CtaConfig {\r\n // Map our EventData tickets to the shape computeCtaState expects.\r\n // `isHidden` flows through so computeCtaState can apply the hidden-only\r\n // \"Sales ended\" → \"Get tickets\" override (MIC-1039).\r\n const apiTickets = event.tickets.map(t => ({\r\n salesBegin: t.salesStartDate,\r\n salesEnd: t.salesEndDate,\r\n remainingCapacity: t.quantityAvailable,\r\n totalCapacity: t.quantityTotal,\r\n soldOut: t.status === 'sold_out',\r\n salesChannel: 1, // All our tickets are online (not \"at the door only\")\r\n isHidden: t.isHidden,\r\n }));\r\n\r\n // Handle statuses that computeCtaState doesn't compute from tickets\r\n if (event.status === 'cancelled') {\r\n return {\r\n text: 'Cancelled',\r\n disabled: true,\r\n reason: 'This event has been cancelled',\r\n };\r\n }\r\n if (event.status === 'past') {\r\n return {\r\n text: 'Event ended',\r\n disabled: true,\r\n reason: 'This event has ended',\r\n };\r\n }\r\n\r\n const result = computeCtaState(\r\n { startDateTime: event.startDateTime, endDateTime: event.endDateTime },\r\n apiTickets,\r\n {\r\n cancelled: false,\r\n isRegistration: event.isRegistrationEvent,\r\n waitlistEnabled: false,\r\n }\r\n );\r\n\r\n return {\r\n text: result.text,\r\n disabled: result.disabled,\r\n reason: result.disabled ? toFriendlyReason(result.reason) : undefined,\r\n };\r\n}\r\n\r\n/**\r\n * computeCtaState() returns machine-enum reasons ('event_past', 'sold_out',\r\n * 'coming_soon', etc) intended for branching, not display. The BookingWidget\r\n * and MobileCta render `reason` directly as supplementary copy below the\r\n * button text — which leaks raw enum strings to users.\r\n *\r\n * Map each enum to a friendly sentence, OR return undefined when the button\r\n * `text` already says everything (\"Sales ended\" / \"Sold out\" — no need for\r\n * a second line repeating it).\r\n */\r\nfunction toFriendlyReason(reason: string | undefined): string | undefined {\r\n if (!reason) return undefined;\r\n switch (reason) {\r\n case 'cancelled':\r\n return 'This event has been cancelled.';\r\n case 'event_past':\r\n return 'This event has already happened.';\r\n case 'no_tickets':\r\n return 'There are no tickets configured for this event.';\r\n case 'coming_soon':\r\n return undefined; // text already shows \"On sale <date>\"\r\n case 'sold_out':\r\n return undefined; // text already shows \"Sold out\"\r\n case 'sold_out_waitlist':\r\n return 'All tickets are claimed. Join the waitlist to be notified.';\r\n case 'sales_ended':\r\n return undefined; // text already shows \"Sales ended\"\r\n default:\r\n return undefined; // unknown enum — never leak it\r\n }\r\n}\r\n\r\n// --- Price Display Rules (from DECISIONS.md #1) ---\r\nexport function getPriceDisplay(event: EventData): string | null {\r\n const visibleTickets = event.tickets.filter(\r\n t => t.status === 'on_sale' && !t.isHidden\r\n );\r\n if (visibleTickets.length === 0) return null;\r\n\r\n const hasDonation = visibleTickets.some(\r\n t => t.isDonation || t.ticketType === 2\r\n );\r\n const paidTickets = visibleTickets.filter(\r\n t => !t.isDonation && t.ticketType !== 2\r\n );\r\n const hasFree = paidTickets.some(t => t.price === 0);\r\n const pricedTickets = paidTickets.filter(t => t.price > 0);\r\n\r\n // Only donation tickets → \"Donation\"\r\n if (pricedTickets.length === 0 && !hasFree && hasDonation) return 'Donation';\r\n\r\n // Only free tickets (no paid, no donation) → null (BookingWidget shows \"Free\" via isFreeEvent)\r\n if (pricedTickets.length === 0 && hasFree) return null;\r\n\r\n const minPrice = Math.min(...pricedTickets.map(t => t.price));\r\n\r\n // Free + paid → \"Free\" (free dominates the display). Non-donation free tickets\r\n // outrank the paid options in the headline, matching the shared \"Free\" label\r\n // every other price surface uses. Returning null here left the widget blank.\r\n if (hasFree) return 'Free';\r\n\r\n // Donation + paid → \"From $X\" (donation is an alternative option)\r\n if (hasDonation) return `From $${minPrice}`;\r\n\r\n // Single paid ticket type → \"$X\"\r\n if (pricedTickets.length === 1) return `$${minPrice}`;\r\n\r\n // Multiple paid ticket types → \"From $X\"\r\n return `From $${minPrice}`;\r\n}\r\n\r\n// --- Fee Calculation ---\r\nexport function calculateFee(\r\n price: number,\r\n feePercentage: number,\r\n feeCents: Cents\r\n): number {\r\n return roundCurrency(price * (feePercentage / 100) + feeCents / 100);\r\n}\r\n\r\nexport function calculateTax(amount: number, taxPercentage: number): number {\r\n return roundCurrency(amount * (taxPercentage / 100));\r\n}\r\n\r\n// --- Date Formatting ---\r\n// PREFERRED: Use the timezone-aware production formatters re-exported above:\r\n// formatBrowseDate(iso, tz) → \"Fri, Feb 20\"\r\n// formatFullDateCompact(iso, tz) → \"Friday, February 20\"\r\n// formatEventTime(iso, tz) → \"8:00 PM\"\r\n// formatTimeRange(start, end, tz) → \"8:00 PM - 10:00 PM\"\r\n// formatDoorsTime(doors, tz) → \"7:00 PM\"\r\n\r\n// --- Animation Durations ---\r\nexport const DURATION = {\r\n instant: 100,\r\n micro: 150,\r\n fast: 200,\r\n normal: 300,\r\n slow: 400,\r\n elaborate: 600,\r\n} as const;\r\n\r\n// --- Promo Code State Factory ---\r\nexport function createDefaultPromoState(): PromoCodeState {\r\n return {\r\n code: '',\r\n isApplied: false,\r\n isValidating: false,\r\n error: '',\r\n hint: '',\r\n discountAmount: 0,\r\n discountType: '',\r\n discountTicketIds: [],\r\n revealHiddenTickets: false,\r\n revealTicketIds: [],\r\n };\r\n}\r\n\r\n// --- Ticket helpers ---\r\nexport function getAvailableTickets(\r\n tickets: TicketTypeData[]\r\n): TicketTypeData[] {\r\n return tickets.filter(t => !t.isHidden && t.status === 'on_sale');\r\n}\r\n","<!-- @style-escape: widget-intentional. -->\r\n<script lang=\"ts\">\r\n import { Text, formatCurrency, toUSD } from '@getmicdrop/svelte-components';\r\n import type { OrderTotals } from '$lib/public-calendar-flow/types';\r\n import { formatPriceOrFree } from '$lib/core';\r\n import { DURATION } from '$lib/public-calendar-flow/defaults';\r\n\r\n interface Props {\r\n orderTotals: OrderTotals;\r\n labels?: Record<string, string>;\r\n /**\r\n * Which section to render.\r\n * - `full` (default): ticket lines + totals stacked together.\r\n * - `lines` : ticket-line items only. Use when the parent scrolls\r\n * this section in a flex column.\r\n * - `totals` : subtotal/fees/taxes/promo/total only. Use in a fixed\r\n * footer alongside the action button.\r\n *\r\n * Splitting via `lines` / `totals` lets the sticky sidebars scroll\r\n * just the variable-length ticket list while keeping the summary\r\n * block and CTA always visible.\r\n */\r\n mode?: 'full' | 'lines' | 'totals';\r\n }\r\n\r\n let { orderTotals, labels = {}, mode = 'full' }: Props = $props();\r\n</script>\r\n\r\n<div class=\"space-y-2\" style=\"transition-duration: {DURATION.normal}ms;\">\r\n {#if mode !== 'totals'}\r\n <!-- Line items -->\r\n {#each orderTotals.lines as line (line.ticketId)}\r\n <div class=\"flex justify-between\">\r\n <Text size=\"sm\">{line.quantity}x {line.ticketName}</Text>\r\n <Text size=\"sm\"\r\n >{line.isDonation\r\n ? formatCurrency(toUSD(line.subtotal))\r\n : formatPriceOrFree(line.subtotal, labels)}</Text\r\n >\r\n </div>\r\n {/each}\r\n {/if}\r\n\r\n {#if mode !== 'lines'}\r\n <!-- Subtotal. In `totals` mode the parent supplies the separator above\r\n\t\t this block (BookingWidget wraps the totals block in border-t); a\r\n\t\t second internal border would render as a double line. Only show\r\n\t\t the internal border-t in `full` mode where lines + totals stack\r\n\t\t in one container with no external separator. -->\r\n {#if mode === 'full' && orderTotals.lines.length > 1}\r\n <div class=\"flex justify-between pt-1 border-t border-default\">\r\n <Text size=\"sm\" color=\"muted\">{labels.subtotal || 'Subtotal'}</Text>\r\n <Text size=\"sm\" color=\"muted\"\r\n >{formatCurrency(toUSD(orderTotals.subtotal))}</Text\r\n >\r\n </div>\r\n {:else if orderTotals.lines.length > 1}\r\n <div class=\"flex justify-between\">\r\n <Text size=\"sm\" color=\"muted\">{labels.subtotal || 'Subtotal'}</Text>\r\n <Text size=\"sm\" color=\"muted\"\r\n >{formatCurrency(toUSD(orderTotals.subtotal))}</Text\r\n >\r\n </div>\r\n {/if}\r\n\r\n <!-- Fees -->\r\n {#if orderTotals.fees > 0}\r\n <div class=\"flex justify-between\">\r\n <Text size=\"sm\" color=\"muted\"\r\n >{labels.serviceFees || 'Service fees'}</Text\r\n >\r\n <Text size=\"sm\" color=\"muted\"\r\n >{formatCurrency(toUSD(orderTotals.fees))}</Text\r\n >\r\n </div>\r\n {/if}\r\n\r\n <!-- Taxes -->\r\n {#if orderTotals.taxes > 0}\r\n <div class=\"flex justify-between\">\r\n <Text size=\"sm\" color=\"muted\">{labels.taxes || 'Taxes'}</Text>\r\n <Text size=\"sm\" color=\"muted\"\r\n >{formatCurrency(toUSD(orderTotals.taxes))}</Text\r\n >\r\n </div>\r\n {/if}\r\n\r\n <!-- Promo discount -->\r\n {#if orderTotals.promoDiscount > 0}\r\n <div class=\"flex justify-between\">\r\n <Text size=\"sm\" color=\"success\"\r\n >{labels.promoDiscount || 'Promo discount'}</Text\r\n >\r\n <Text size=\"sm\" color=\"success\"\r\n >-{formatCurrency(toUSD(orderTotals.promoDiscount))}</Text\r\n >\r\n </div>\r\n {/if}\r\n\r\n <!-- Gift card — deduction from the amount due; `total` already reflects it -->\r\n {#if orderTotals.giftCardAmount > 0}\r\n <div class=\"flex justify-between\">\r\n <Text size=\"sm\" color=\"success\">{labels.giftCard || 'Gift card'}</Text>\r\n <Text size=\"sm\" color=\"success\"\r\n >-{formatCurrency(toUSD(orderTotals.giftCardAmount))}</Text\r\n >\r\n </div>\r\n {/if}\r\n\r\n <!-- Total -->\r\n <div class=\"flex justify-between pt-2 border-t border-default\">\r\n <Text size=\"base\" weight=\"semibold\">{labels.total || 'Total'}</Text>\r\n <Text size=\"base\" weight=\"semibold\"\r\n >{formatCurrency(toUSD(orderTotals.total))}</Text\r\n >\r\n </div>\r\n {/if}\r\n</div>\r\n","/**\r\n * Default English labels for public-calendar-flow components.\r\n * Consumers override via the `labels` prop on any *Main component.\r\n *\r\n * Label keys use flat camelCase. For composed strings (e.g. aria-labels),\r\n * components build them from atomic label parts.\r\n */\r\nexport const defaultLabels = {\r\n // ── Ticket quantity controls ──────────────────────────────────────\r\n // Stepper aria-labels compose these into \"Increase <name> quantity\" etc.\r\n // `quantityNoun` is deliberately its OWN key (not the main i18n's `quantity`,\r\n // whose value is the sr-only display PREFIX 'Quantity:') so the main-i18n\r\n // merge can't leak a capital-Q + trailing colon into the button labels.\r\n // Overridable, same as increase/decrease, which main i18n also doesn't define.\r\n decrease: 'Decrease',\r\n increase: 'Increase',\r\n quantityNoun: 'quantity',\r\n\r\n // ── Ticket states ─────────────────────────────────────────────────\r\n soldOut: 'Sold out',\r\n free: 'Free',\r\n unavailable: 'Unavailable',\r\n eventSoldOut: 'This event is sold out',\r\n\r\n // ── Price display ─────────────────────────────────────────────────\r\n includesFees: 'Includes',\r\n fees: 'fees',\r\n fee: 'fee',\r\n\r\n // ── Checkout CTAs ─────────────────────────────────────────────────\r\n checkout: 'Checkout',\r\n getTickets: 'Get tickets',\r\n selectTickets: 'Select tickets',\r\n selectTicketsBelow: 'Select tickets below',\r\n selectTicketsToContinue: 'Select tickets to continue',\r\n reserveASpot: 'Reserve a spot',\r\n\r\n // ── Password modal / gate ─────────────────────────────────────────\r\n enterPassword: 'Enter password',\r\n enterEventPassword: 'Enter event password',\r\n passwordRequired: 'Password required',\r\n passwordRequiredShort: 'Password required',\r\n eventRequiresPassword: 'This event requires a password to purchase tickets',\r\n eventRequiresPasswordAccess:\r\n 'This event requires a password to access tickets',\r\n enterEventPasswordToView: 'Enter the event password to view tickets',\r\n enterEventPasswordToViewAvailable:\r\n 'Enter the event password to view available tickets',\r\n eventPassword: 'Event password',\r\n password: 'Password',\r\n pleaseEnterPassword: 'Please enter the event password',\r\n pleaseEnterAPassword: 'Please enter a password',\r\n eventRequiresPasswordShort: 'This event requires a password',\r\n unlockTickets: 'Unlock tickets',\r\n cancel: 'Cancel',\r\n continue: 'Continue',\r\n submit: 'Submit',\r\n\r\n // ── Order summary ─────────────────────────────────────────────────\r\n subtotal: 'Subtotal',\r\n serviceFees: 'Service fees',\r\n taxes: 'Taxes',\r\n tax: 'Tax',\r\n promoDiscount: 'Promo discount',\r\n giftCard: 'Gift card',\r\n total: 'Total',\r\n orderSummary: 'Order summary',\r\n yourOrder: 'Your order',\r\n\r\n // ── Ticket counts (used in CTA buttons) ───────────────────────────\r\n ticket: 'ticket',\r\n tickets: 'tickets',\r\n\r\n // ── Checkout form (public-calendar-flow) ───────────────────────────────\r\n yourDetails: 'Your details',\r\n attendeeDetails: 'Attendee details',\r\n attendee: 'Attendee',\r\n sameAsPurchaser: 'Same as purchaser',\r\n payment: 'Payment',\r\n noPaymentRequired: 'No payment required',\r\n freeEventMessage:\r\n 'This is a free event. Complete the form above to reserve your spot',\r\n firstName: 'First name',\r\n lastName: 'Last name',\r\n emailAddress: 'Email address',\r\n email: 'Email',\r\n emailPlaceholder: 'you@example.com',\r\n attendeeEmailPlaceholder: 'attendee@example.com',\r\n cardNumber: 'Card number',\r\n cardPlaceholder: '4242 4242 4242 4242',\r\n expiryDate: 'Expiry date',\r\n expiryPlaceholder: 'MM / YY',\r\n cvc: 'CVC',\r\n cvcPlaceholder: '123',\r\n keepMeUpdated: 'Keep me updated about this event and similar events',\r\n agreeToTerms: 'I agree to the terms and conditions',\r\n goBack: 'Go back',\r\n loadingPaymentForm: 'Loading secure payment form...',\r\n\r\n // ── Checkout form validation ──────────────────────────────────────\r\n firstNameRequired: 'First name is required',\r\n lastNameRequired: 'Last name is required',\r\n emailRequired: 'Email is required',\r\n emailInvalid: 'Enter a valid email address',\r\n emailInvalidShort: 'Enter a valid email',\r\n cardNumberRequired: 'Card number is required',\r\n expiryRequired: 'Expiry date is required',\r\n cvcRequired: 'CVC is required',\r\n mustAgreeTerms: 'You must agree to the terms',\r\n\r\n // ── Place order CTAs ──────────────────────────────────────────────\r\n placeOrder: 'Place order',\r\n completeOrder: 'Complete order',\r\n placingOrder: 'Placing order...',\r\n\r\n // ── Promo code ────────────────────────────────────────────────────\r\n havePromoCode: 'Have a promo code?',\r\n promoCode: 'Promo code',\r\n enterCode: 'Enter code',\r\n apply: 'Apply',\r\n remove: 'Remove',\r\n removePromoCode: 'Remove promo code',\r\n applyPromoCode: 'Apply promo code',\r\n checkingPromoCode: 'Checking promo code',\r\n checking: 'Checking...',\r\n promoApplied: 'Promo applied',\r\n\r\n // ── Navigation tabs (app-segments) ────────────────────────────────\r\n about: 'About',\r\n ticketsTab: 'Tickets',\r\n eventSections: 'Event sections',\r\n\r\n // ── Event details ─────────────────────────────────────────────────\r\n eventDetails: 'Event details',\r\n performers: 'Performers',\r\n faq: 'FAQ',\r\n frequentlyAskedQuestions: 'Frequently asked questions',\r\n doors: 'Doors',\r\n doorsOpenAt: 'Doors open at',\r\n\r\n // ── Series occurrences ────────────────────────────────────────────\r\n upcomingDates: 'Upcoming dates',\r\n\r\n // ── Close / dismiss ───────────────────────────────────────────────\r\n closeTicketSelection: 'Close ticket selection',\r\n closeTicketSelector: 'Close ticket selector',\r\n\r\n // ── Accessibility ─────────────────────────────────────────────────\r\n ticketSelection: 'ticket selection',\r\n ticketsSelected: 'tickets selected',\r\n view: 'View',\r\n\r\n // ── Success page (public-calendar-flow) ────────────────────────────────\r\n youreIn: \"You're in\",\r\n youreRegistered: \"You're registered\",\r\n confirmed: 'confirmed',\r\n viewTickets: 'View tickets',\r\n order: 'Order',\r\n confirmationSentTo: 'Confirmation sent to',\r\n addToCalendar: 'Add to calendar',\r\n googleCalendar: 'Google Calendar',\r\n appleCalendar: 'Apple Calendar (.ics)',\r\n share: 'Share',\r\n map: 'Map',\r\n backToEvent: 'Back to event',\r\n needHelp: 'Need help?',\r\n linkCopied: 'Link copied to clipboard',\r\n copyLink: 'Copy this link:',\r\n addToAppleWallet: 'Add to Apple Wallet',\r\n saveToGoogleWallet: 'Save to Google Wallet',\r\n\r\n // ── Session timer / expiration modals ─────────────────────────────\r\n sessionExpiringSoon: 'Session expiring soon',\r\n sessionExpiringSoonMessage:\r\n 'Your checkout session will expire in {time}. Your selected tickets will be released back to inventory',\r\n extensionsRemaining: '{count} extension{plural} remaining',\r\n continueCheckout: 'Continue checkout',\r\n okIllHurry: \"OK, I'll hurry\",\r\n maxExtensionsReached: 'Maximum extensions reached',\r\n wantToKeepTickets: 'Want to keep your tickets?',\r\n sessionExpiredMessage:\r\n 'Your checkout session has expired and your selected tickets have been released',\r\n sessionExpired: 'Session expired',\r\n reservationTimedOut:\r\n 'Your reservation has timed out. Please select your tickets again to continue',\r\n keepMyTickets: 'Keep my tickets',\r\n selectTicketsAgain: 'Select tickets again',\r\n extendingSession: 'Extending...',\r\n\r\n // ── MobileCta ─────────────────────────────────────────────────────\r\n selectTicketsLabel: 'Select tickets',\r\n\r\n // ── Waitlist (sold-out gating + tokenized unlock) ─────────────────\r\n joinWaitlist: 'Join waitlist',\r\n getNotifiedWhenAvailable: 'Get notified when tickets are available',\r\n // Tokenized-link unlock outcomes (decisions #3/#22/#36). Mapped from the\r\n // server's failure enum; shown as a small dismissible notice near the CTA.\r\n waitlistLinkInvalid:\r\n \"This link isn't valid. You're still on the waitlist — we'll email you if tickets free up\",\r\n waitlistLinkExpired: \"This link has expired. You're still on the waitlist\",\r\n waitlistLinkUsed:\r\n \"This link has already been used. You're still on the waitlist\",\r\n waitlistLinkEmailMismatch:\r\n \"This link was sent to a different email address. You're still on the waitlist\",\r\n waitlistLinkInventoryExhausted:\r\n \"Those tickets were just claimed. You're still on the waitlist — we'll email you if more free up\",\r\n dismiss: 'Dismiss',\r\n};\r\n\r\n/**\r\n * Merge user-provided label overrides with the defaults.\r\n * Shallow merge — any key provided by the consumer wins.\r\n *\r\n * @param {Record<string, string>} [userLabels] - Partial label overrides\r\n * @returns {Record<string, string>} Merged labels object\r\n */\r\nexport function mergeLabels(userLabels = {}) {\r\n return { ...defaultLabels, ...userLabels };\r\n}\r\n"],"names":["size","$","$$props","color","className","ctx","useIconWeight","resolved","svg","root_2","path","root","$$render","consequent","alternate","styles","computeCtaState","event","tickets","options","cancelled","isRegistration","waitlistEnabled","now","browserNow","eventEnd","toInstantOrNull","compareInstants","hiddenAvailable","isHiddenTicketPurchasable","publicTickets","t","hasPurchasable","allSoldOut","allComingSoon","earliestSalesStart","ticket","salesBegin","salesEnd","remaining","isSoldOut","isScheduled","hasSalesEnded","diffMs","diffHours","diffDays","timeLabel","d","formatLocal","dateText","getScarcityLevel","total","level","computeScarcityLevel","getScarcityText","context","SCARCITY_THRESHOLDS","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","toUSD","formatPriceOrFree","div_2","root_1","node_6","node_7","div_3","node_8","node_9","consequent_1","consequent_2","div_4","node_11","node_12","consequent_3","div_5","node_14","node_15","consequent_4","div_6","node_17","node_18","consequent_5","div_7","node_20","node_21","consequent_6","div_8","node_19","node_22","node_23","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,EAAA,QAAA,MAAAC,EAAA,UAAsBG,GAAK,UAAU,SAAS;MAGvEG,IAAGC,EAAA;;kBAAHD,CAAG;;;UAUwBE,IAAIC,EAAA;kBAAJD,CAAI;AAAA;;;;;AAAzB,MAAAT,EAAA,IAAAM,CAAQ,MAAK,SAAMK,EAAAC,CAAA,IAAAD,EAAAE,GAAA,EAAA;AAAA;;UAVzBN,CAAG;AAAH,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,CAAG;AAFI;ACwDD,SAASQ,EACdC,GACAC,GACAC,IAA2B,CAAA,GACjB;AACV,QAAM;AAAA,IACJ,WAAAC,IAAY;AAAA,IACZ,gBAAAC,IAAiB;AAAA,IACjB,iBAAAC,IAAkB;AAAA,EAAA,IAChBH,GACEI,IAAMC,EAAA;AAEZ,MAAIJ;AACF,WAAO,EAAE,MAAM,aAAa,UAAU,IAAM,QAAQ,YAAA;AAEtD,QAAMK,IAAWC,EAAgBT,EAAM,eAAeA,EAAM,aAAa;AACzE,MAAIQ,KAAYE,EAAgBF,GAAUF,CAAG,IAAI;AAC/C,WAAO,EAAE,MAAM,eAAe,UAAU,IAAM,QAAQ,aAAA;AAGxD,QAAMK,IACJX,GAAO,gCAAgC,MACtC,MAAM,QA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c;AAAA;AAAA,EAGd,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,eAAe;AAAA;AAAA,EAGf,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,KAAK;AAAA,EACL,0BAA0B;AAAA,EAC1B,OAAO;AAAA,EACP,aAAa;AAAA;AAAA,EAGb,eAAe;AAAA;AAAA,EAGf,sBAAsB;AAAA,EACtB,qBAAqB;AAAA;AAAA,EAGrB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,MAAM;AAAA;AAAA,EAGN,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,aAAa;AAAA,EACb,OAAO;AAAA,EACP,oBAAoB;AAAA,EACpB,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,OAAO;AAAA,EACP,KAAK;AAAA,EACL,aAAa;AAAA,EACb,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,oBAAoB;AAAA;AAAA,EAGpB,qBAAqB;AAAA,EACrB,4BACE;AAAA,EACF,qBAAqB;AAAA,EACrB,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,sBAAsB;AAAA,EACtB,mBAAmB;AAAA,EACnB,uBACE;AAAA,EACF,gBAAgB;AAAA,EAChB,qBACE;AAAA,EACF,eAAe;AAAA,EACf,oBAAoB;AAAA,EACpB,kBAAkB;AAAA;AAAA,EAGlB,oBAAoB;AAAA;AAAA,EAGpB,cAAc;AAAA,EACd,0BAA0B;AAAA;AAAA;AAAA,EAG1B,qBACE;AAAA,EACF,qBAAqB;AAAA,EACrB,kBACE;AAAA,EACF,2BACE;AAAA,EACF,gCACE;AAAA,EACF,SAAS;AACX;AASO,SAASC,GAAYC,IAAa,IAAI;AAC3C,SAAO,EAAE,GAAGF,IAAe,GAAGE;AAChC;","x_google_ignoreList":[0]}
@@ -1,6 +1,6 @@
1
1
  import "svelte/internal/disclose-version";
2
2
  import * as e from "svelte/internal/client";
3
- import { aO as u, aP as d } from "./VenueCalendar-CU5N9klc.js";
3
+ import { aO as u, aP as d } from "./VenueCalendar-B809Hecp.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-Dbd1xgTQ.js.map
56
+ //# sourceMappingURL=modalManager.svelte-DjiZPIja.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modalManager.svelte-Dbd1xgTQ.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\">\r\n import type { Snippet } from 'svelte';\r\n import { getModalContext } from './context.js';\r\n import { cn } from '../../utils/classNames.js';\r\n\r\n interface Props {\r\n class?: string;\r\n children?: Snippet;\r\n }\r\n\r\n let { class: className, children }: Props = $props();\r\n\r\n // Validates this component is inside ModalRoot\r\n getModalContext();\r\n</script>\r\n\r\n<div class={cn('shrink-0 px-6 pt-6 pb-3', className)}>\r\n {#if children}{@render children()}{/if}\r\n</div>\r\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
+ {"version":3,"file":"modalManager.svelte-DjiZPIja.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\">\r\n import type { Snippet } from 'svelte';\r\n import { getModalContext } from './context.js';\r\n import { cn } from '../../utils/classNames.js';\r\n\r\n interface Props {\r\n class?: string;\r\n children?: Snippet;\r\n }\r\n\r\n let { class: className, children }: Props = $props();\r\n\r\n // Validates this component is inside ModalRoot\r\n getModalContext();\r\n</script>\r\n\r\n<div class={cn('shrink-0 px-6 pt-6 pb-3', className)}>\r\n {#if children}{@render children()}{/if}\r\n</div>\r\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]}
@@ -0,0 +1,19 @@
1
+ function r(t, u, n) {
2
+ return `/${t}/${u}`;
3
+ }
4
+ function e(t) {
5
+ return `/${t}`;
6
+ }
7
+ function i(t, u) {
8
+ return `/${t}/${u}/checkout`;
9
+ }
10
+ function l(t) {
11
+ return `/?${t.toString()}`;
12
+ }
13
+ export {
14
+ e as a,
15
+ r as b,
16
+ i as c,
17
+ l as d
18
+ };
19
+ //# sourceMappingURL=navigation--gZASiSa.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation--gZASiSa.js","sources":["../src/lib/navigation.ts"],"sourcesContent":["/**\n * Public-calendar URL builders. Centralizes the route shapes so call sites\n * stop hand-rolling `goto(`/${id}/${slug}`)` template literals\n * (Atlas utility-url-builders convergence). One place per route.\n *\n * Return type is SvelteKit's `Pathname` so call sites can pass the result\n * straight to `resolve()` (svelte/no-navigation-without-resolve). The `as\n * Pathname` casts below are THE typed boundary: these builders are the one\n * place app-relative URL strings are constructed, and the querystring-carrying\n * ones (`?orderId=…`) are deliberately included — `resolve()` base-prefixes\n * them verbatim (resolve_route only rewrites `[param]` segments).\n */\nimport type { Pathname } from '$app/types';\n\n/** Event (or occurrence) page: `/<id>/<slug>` (+ optional query). */\nexport function buildEventUrl(\n id: number | string,\n slug: string,\n query?: URLSearchParams\n): Pathname {\n const qs = query?.toString();\n return `/${id}/${slug}${qs ? `?${qs}` : ''}` as Pathname;\n}\n\n/** Event page by slug only: `/<slug>`. */\nexport function buildEventBySlugUrl(slug: string): Pathname {\n return `/${slug}` as Pathname;\n}\n\n/** Checkout for an event: `/<id>/<slug>/checkout`. */\nexport function buildCheckoutUrl(id: number | string, slug: string): Pathname {\n return `/${id}/${slug}/checkout` as Pathname;\n}\n\n/**\n * Widget-state navigation on the root route: `/?<params>` — the query-param\n * routing the embedded calendar uses for subroute/org/venue state.\n */\nexport function buildWidgetStateUrl(params: URLSearchParams): Pathname {\n return `/?${params.toString()}` as Pathname;\n}\n\n/**\n * Order identity carried to the confirmation page via query string. The success\n * loader reads these to fetch the order (getOrder resolves by the `orderId` key,\n * which is the cart uuid) and render the purchased tickets / total / email.\n * Without them the confirmation page shows an empty order. All optional — pass\n * whatever the completing path has.\n *\n * Buyer email is deliberately NOT carried here (AC-EV-4, hunt-r5-access-control-2):\n * it is PII, and a URL query string leaks to server access logs, browser history,\n * and any analytics script that reads window.location. getOrder() returns the\n * authoritative customerEmail off the capability URL, so the email never needs to\n * ride in the URL.\n */\nexport interface CheckoutSuccessParams {\n orderId?: string;\n ticketCount?: number;\n}\n\n/** Checkout success page: `/<id>/<slug>/checkout/success` (+ order identity). */\nexport function buildCheckoutSuccessUrl(\n id: number | string,\n slug: string,\n params: CheckoutSuccessParams = {}\n): Pathname {\n const base = `${buildCheckoutUrl(id, slug)}/success`;\n const qs = new URLSearchParams();\n if (params.orderId) qs.set('orderId', params.orderId);\n if (params.ticketCount && params.ticketCount > 0)\n qs.set('tickets', String(params.ticketCount));\n const query = qs.toString();\n return (query ? `${base}?${query}` : base) as Pathname;\n}\n"],"names":["buildEventUrl","id","slug","query","buildEventBySlugUrl","buildCheckoutUrl","buildWidgetStateUrl","params"],"mappings":"AAeO,SAASA,EACdC,GACAC,GACAC,GACU;AAEV,SAAO,IAAIF,CAAE,IAAIC,CAAI;AACvB;AAGO,SAASE,EAAoBF,GAAwB;AAC1D,SAAO,IAAIA,CAAI;AACjB;AAGO,SAASG,EAAiBJ,GAAqBC,GAAwB;AAC5E,SAAO,IAAID,CAAE,IAAIC,CAAI;AACvB;AAMO,SAASI,EAAoBC,GAAmC;AACrE,SAAO,KAAKA,EAAO,SAAA,CAAU;AAC/B;"}
@@ -1,4 +1,4 @@
1
- import { ay as c, az as f, aA as m, aB as u } from "./VenueCalendar-CU5N9klc.js";
1
+ import { av as c, am as f, aw as m, ax as u } from "./VenueCalendar-B809Hecp.js";
2
2
  function l(r) {
3
3
  return r === "percentage" || r === "%";
4
4
  }
@@ -26,4 +26,4 @@ export {
26
26
  l as i,
27
27
  t as r
28
28
  };
29
- //# sourceMappingURL=promo-oWi_MKmY.js.map
29
+ //# sourceMappingURL=promo-DK6Hxogl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"promo-oWi_MKmY.js","sources":["../src/lib/utils/promo.ts"],"sourcesContent":["// Canonical promo-discount resolver.\r\n//\r\n// The promo apply endpoint returns a discount as { amount, discountType } where\r\n// a percentage promo's `amount` is the raw percent (e.g. 10 for \"10%\"). The\r\n// order-summary display path stores that raw number in the per-event\r\n// `checkout-promo-discount-${eventID}` cookie and subtracts it from the\r\n// subtotal as if it were dollars — so a \"10%\" promo renders as a flat \"$10 off\"\r\n// regardless of cart size. PromocodeInput cannot fix this at write-time: it has no subtotal\r\n// (it can even auto-apply before any ticket is chosen). The correct dollar\r\n// value is subtotal-dependent, so it must be resolved wherever the subtotal is\r\n// known, using the stored discount type.\r\n//\r\n// Single source of truth for that resolution. Two discountType vocabularies\r\n// exist in the codebase — the API/cookie form ('percentage' | 'fixed') and the\r\n// per-ticket/pcf form ('%' | '$') — so both are accepted.\r\n\r\nimport {\r\n dollarsToCents,\r\n mulCents,\r\n sumCents,\r\n centsToDollars,\r\n} from '@getmicdrop/svelte-components';\r\n\r\n// The meaningful discount-type values. The resolver accepts any string (the\r\n// value comes from a cookie / promo-change event, i.e. an untyped `string`) and\r\n// treats anything that isn't a percentage marker as a fixed dollar amount.\r\nexport type PromoDiscountType =\r\n | 'percentage'\r\n | 'fixed'\r\n | '%'\r\n | '$'\r\n | ''\r\n | null\r\n | undefined;\r\n\r\ntype PromoDiscountTypeInput = PromoDiscountType | string;\r\n\r\n/**\r\n * Is this promo a percentage promo?\r\n *\r\n * Callers need this to know WHERE a promo may be shown, not just how to size\r\n * it. A percentage promo is *per-ticket*: 20% off each unit summed over the\r\n * cart is exactly 20% off the subtotal, so a ticket row can show it and still\r\n * agree with the order summary. A fixed promo is *order-level*: \"$5 off\" is\r\n * taken once against the subtotal, so a row that shows \"$5 off\" on every unit\r\n * promises `amount × (qty − 1)` more than the order will give.\r\n *\r\n * Anything that isn't a percentage marker is treated as a fixed dollar amount\r\n * (the value arrives from a cookie / promo-change event, i.e. an untyped\r\n * `string`).\r\n */\r\nexport function isPercentageDiscount(\r\n discountType: PromoDiscountTypeInput\r\n): boolean {\r\n return discountType === 'percentage' || discountType === '%';\r\n}\r\n\r\n/**\r\n * Resolve a promo discount to a dollar amount against the current subtotal.\r\n *\r\n * @param subtotal - order subtotal in dollars.\r\n * @param rawAmount - the discount value from the promo response: a percent for\r\n * a percentage promo, a dollar amount for a fixed promo.\r\n * @param discountType - 'percentage'/'%' or 'fixed'/'$' (or empty → fixed).\r\n * @returns the discount in dollars, clamped to [0, subtotal].\r\n */\r\nexport function resolvePromoDiscountDollars(\r\n subtotal: number,\r\n rawAmount: number,\r\n discountType: PromoDiscountTypeInput\r\n): number {\r\n if (!(rawAmount > 0) || !(subtotal > 0)) return 0;\r\n\r\n const dollars = isPercentageDiscount(discountType)\r\n ? (subtotal * rawAmount) / 100\r\n : rawAmount;\r\n\r\n const clamped = Math.max(0, Math.min(subtotal, dollars));\r\n // Round to cents so the deduction matches the currency-formatted display.\r\n return Math.round(clamped * 100) / 100;\r\n}\r\n\r\n/** One cart line: a ticket's unit price (dollars) and how many are in the cart. */\r\nexport interface PromoDiscountLine {\r\n unitPrice: number;\r\n quantity: number;\r\n}\r\n\r\n/**\r\n * Resolve a promo discount for the WHOLE ORDER, rounding the SAME way the\r\n * ticket rows do — so the row and the order summary can never disagree by a\r\n * cent.\r\n *\r\n * A percentage promo shows on every ticket ROW. A row renders a unit price\r\n * rounded to cents, so the discount a buyer reads off the rows is\r\n * `Σ quantity × round(unitPrice × pct)`. If the summary instead rounds\r\n * `pct × subtotal` ONCE, the two round independently and can land up to a cent\r\n * apart per line — the buyer sees two different numbers for the same discount.\r\n * So the summary sums the per-unit rounded discounts: one rounding decision\r\n * (per unit), shared by both surfaces. Each per-unit discount comes from the\r\n * same canonical {@link resolvePromoDiscountDollars} the row calls, so there is\r\n * no second copy of the math.\r\n *\r\n * A fixed promo is order-level and never shown on a row, so it resolves once\r\n * against the subtotal, exactly as before.\r\n *\r\n * @param lines - the cart's ticket lines (unit price × quantity).\r\n * @param subtotal - order subtotal in dollars (used for a fixed, order-level promo).\r\n * @param rawAmount - a percent for a percentage promo, dollars for a fixed one.\r\n * @param discountType - 'percentage'/'%' or 'fixed'/'$' (or empty → fixed).\r\n * @returns the order discount in dollars.\r\n */\r\nexport function resolveOrderPromoDiscountDollars(\r\n lines: readonly PromoDiscountLine[],\r\n subtotal: number,\r\n rawAmount: number,\r\n discountType: PromoDiscountTypeInput\r\n): number {\r\n if (!(rawAmount > 0)) return 0;\r\n\r\n // A fixed promo is order-level and never rendered on a row, so it resolves\r\n // once against the subtotal — unchanged from the single-line resolver.\r\n if (!isPercentageDiscount(discountType)) {\r\n return resolvePromoDiscountDollars(subtotal, rawAmount, discountType);\r\n }\r\n\r\n // Percentage promo: round per unit exactly as the row does, then sum. The\r\n // canonical Cents algebra keeps the sum exact — 0.01 + 0.01 in floats is\r\n // 0.020000000000000004, and this feeds a currency display.\r\n const lineCents = lines\r\n .filter(({ quantity }) => quantity > 0)\r\n .map(({ unitPrice, quantity }) =>\r\n mulCents(\r\n dollarsToCents(\r\n resolvePromoDiscountDollars(unitPrice, rawAmount, discountType)\r\n ),\r\n quantity\r\n )\r\n );\r\n return centsToDollars(sumCents(lineCents));\r\n}\r\n"],"names":["isPercentageDiscount","discountType","resolvePromoDiscountDollars","subtotal","rawAmount","dollars","clamped","resolveOrderPromoDiscountDollars","lines","lineCents","quantity","unitPrice","mulCents","dollarsToCents","centsToDollars","sumCents"],"mappings":";AAmDO,SAASA,EACdC,GACS;AACT,SAAOA,MAAiB,gBAAgBA,MAAiB;AAC3D;AAWO,SAASC,EACdC,GACAC,GACAH,GACQ;AACR,MAAI,EAAEG,IAAY,MAAM,EAAED,IAAW,GAAI,QAAO;AAEhD,QAAME,IAAUL,EAAqBC,CAAY,IAC5CE,IAAWC,IAAa,MACzBA,GAEEE,IAAU,KAAK,IAAI,GAAG,KAAK,IAAIH,GAAUE,CAAO,CAAC;AAEvD,SAAO,KAAK,MAAMC,IAAU,GAAG,IAAI;AACrC;AAgCO,SAASC,EACdC,GACAL,GACAC,GACAH,GACQ;AACR,MAAI,EAAEG,IAAY,GAAI,QAAO;AAI7B,MAAI,CAACJ,EAAqBC,CAAY;AACpC,WAAOC,EAA4BC,GAAUC,GAAWH,CAAY;AAMtE,QAAMQ,IAAYD,EACf,OAAO,CAAC,EAAE,UAAAE,QAAeA,IAAW,CAAC,EACrC;AAAA,IAAI,CAAC,EAAE,WAAAC,GAAW,UAAAD,EAAA,MACjBE;AAAA,MACEC;AAAA,QACEX,EAA4BS,GAAWP,GAAWH,CAAY;AAAA,MAAA;AAAA,MAEhES;AAAA,IAAA;AAAA,EACF;AAEJ,SAAOI,EAAeC,EAASN,CAAS,CAAC;AAC3C;"}
1
+ {"version":3,"file":"promo-DK6Hxogl.js","sources":["../src/lib/utils/promo.ts"],"sourcesContent":["// Canonical promo-discount resolver.\r\n//\r\n// The promo apply endpoint returns a discount as { amount, discountType } where\r\n// a percentage promo's `amount` is the raw percent (e.g. 10 for \"10%\"). The\r\n// order-summary display path stores that raw number in the per-event\r\n// `checkout-promo-discount-${eventID}` cookie and subtracts it from the\r\n// subtotal as if it were dollars — so a \"10%\" promo renders as a flat \"$10 off\"\r\n// regardless of cart size. PromocodeInput cannot fix this at write-time: it has no subtotal\r\n// (it can even auto-apply before any ticket is chosen). The correct dollar\r\n// value is subtotal-dependent, so it must be resolved wherever the subtotal is\r\n// known, using the stored discount type.\r\n//\r\n// Single source of truth for that resolution. Two discountType vocabularies\r\n// exist in the codebase — the API/cookie form ('percentage' | 'fixed') and the\r\n// per-ticket/pcf form ('%' | '$') — so both are accepted.\r\n\r\nimport {\r\n dollarsToCents,\r\n mulCents,\r\n sumCents,\r\n centsToDollars,\r\n} from '@getmicdrop/svelte-components';\r\n\r\n// The meaningful discount-type values. The resolver accepts any string (the\r\n// value comes from a cookie / promo-change event, i.e. an untyped `string`) and\r\n// treats anything that isn't a percentage marker as a fixed dollar amount.\r\nexport type PromoDiscountType =\r\n | 'percentage'\r\n | 'fixed'\r\n | '%'\r\n | '$'\r\n | ''\r\n | null\r\n | undefined;\r\n\r\ntype PromoDiscountTypeInput = PromoDiscountType | string;\r\n\r\n/**\r\n * Is this promo a percentage promo?\r\n *\r\n * Callers need this to know WHERE a promo may be shown, not just how to size\r\n * it. A percentage promo is *per-ticket*: 20% off each unit summed over the\r\n * cart is exactly 20% off the subtotal, so a ticket row can show it and still\r\n * agree with the order summary. A fixed promo is *order-level*: \"$5 off\" is\r\n * taken once against the subtotal, so a row that shows \"$5 off\" on every unit\r\n * promises `amount × (qty − 1)` more than the order will give.\r\n *\r\n * Anything that isn't a percentage marker is treated as a fixed dollar amount\r\n * (the value arrives from a cookie / promo-change event, i.e. an untyped\r\n * `string`).\r\n */\r\nexport function isPercentageDiscount(\r\n discountType: PromoDiscountTypeInput\r\n): boolean {\r\n return discountType === 'percentage' || discountType === '%';\r\n}\r\n\r\n/**\r\n * Resolve a promo discount to a dollar amount against the current subtotal.\r\n *\r\n * @param subtotal - order subtotal in dollars.\r\n * @param rawAmount - the discount value from the promo response: a percent for\r\n * a percentage promo, a dollar amount for a fixed promo.\r\n * @param discountType - 'percentage'/'%' or 'fixed'/'$' (or empty → fixed).\r\n * @returns the discount in dollars, clamped to [0, subtotal].\r\n */\r\nexport function resolvePromoDiscountDollars(\r\n subtotal: number,\r\n rawAmount: number,\r\n discountType: PromoDiscountTypeInput\r\n): number {\r\n if (!(rawAmount > 0) || !(subtotal > 0)) return 0;\r\n\r\n const dollars = isPercentageDiscount(discountType)\r\n ? (subtotal * rawAmount) / 100\r\n : rawAmount;\r\n\r\n const clamped = Math.max(0, Math.min(subtotal, dollars));\r\n // Round to cents so the deduction matches the currency-formatted display.\r\n return Math.round(clamped * 100) / 100;\r\n}\r\n\r\n/** One cart line: a ticket's unit price (dollars) and how many are in the cart. */\r\nexport interface PromoDiscountLine {\r\n unitPrice: number;\r\n quantity: number;\r\n}\r\n\r\n/**\r\n * Resolve a promo discount for the WHOLE ORDER, rounding the SAME way the\r\n * ticket rows do — so the row and the order summary can never disagree by a\r\n * cent.\r\n *\r\n * A percentage promo shows on every ticket ROW. A row renders a unit price\r\n * rounded to cents, so the discount a buyer reads off the rows is\r\n * `Σ quantity × round(unitPrice × pct)`. If the summary instead rounds\r\n * `pct × subtotal` ONCE, the two round independently and can land up to a cent\r\n * apart per line — the buyer sees two different numbers for the same discount.\r\n * So the summary sums the per-unit rounded discounts: one rounding decision\r\n * (per unit), shared by both surfaces. Each per-unit discount comes from the\r\n * same canonical {@link resolvePromoDiscountDollars} the row calls, so there is\r\n * no second copy of the math.\r\n *\r\n * A fixed promo is order-level and never shown on a row, so it resolves once\r\n * against the subtotal, exactly as before.\r\n *\r\n * @param lines - the cart's ticket lines (unit price × quantity).\r\n * @param subtotal - order subtotal in dollars (used for a fixed, order-level promo).\r\n * @param rawAmount - a percent for a percentage promo, dollars for a fixed one.\r\n * @param discountType - 'percentage'/'%' or 'fixed'/'$' (or empty → fixed).\r\n * @returns the order discount in dollars.\r\n */\r\nexport function resolveOrderPromoDiscountDollars(\r\n lines: readonly PromoDiscountLine[],\r\n subtotal: number,\r\n rawAmount: number,\r\n discountType: PromoDiscountTypeInput\r\n): number {\r\n if (!(rawAmount > 0)) return 0;\r\n\r\n // A fixed promo is order-level and never rendered on a row, so it resolves\r\n // once against the subtotal — unchanged from the single-line resolver.\r\n if (!isPercentageDiscount(discountType)) {\r\n return resolvePromoDiscountDollars(subtotal, rawAmount, discountType);\r\n }\r\n\r\n // Percentage promo: round per unit exactly as the row does, then sum. The\r\n // canonical Cents algebra keeps the sum exact — 0.01 + 0.01 in floats is\r\n // 0.020000000000000004, and this feeds a currency display.\r\n const lineCents = lines\r\n .filter(({ quantity }) => quantity > 0)\r\n .map(({ unitPrice, quantity }) =>\r\n mulCents(\r\n dollarsToCents(\r\n resolvePromoDiscountDollars(unitPrice, rawAmount, discountType)\r\n ),\r\n quantity\r\n )\r\n );\r\n return centsToDollars(sumCents(lineCents));\r\n}\r\n"],"names":["isPercentageDiscount","discountType","resolvePromoDiscountDollars","subtotal","rawAmount","dollars","clamped","resolveOrderPromoDiscountDollars","lines","lineCents","quantity","unitPrice","mulCents","dollarsToCents","centsToDollars","sumCents"],"mappings":";AAmDO,SAASA,EACdC,GACS;AACT,SAAOA,MAAiB,gBAAgBA,MAAiB;AAC3D;AAWO,SAASC,EACdC,GACAC,GACAH,GACQ;AACR,MAAI,EAAEG,IAAY,MAAM,EAAED,IAAW,GAAI,QAAO;AAEhD,QAAME,IAAUL,EAAqBC,CAAY,IAC5CE,IAAWC,IAAa,MACzBA,GAEEE,IAAU,KAAK,IAAI,GAAG,KAAK,IAAIH,GAAUE,CAAO,CAAC;AAEvD,SAAO,KAAK,MAAMC,IAAU,GAAG,IAAI;AACrC;AAgCO,SAASC,EACdC,GACAL,GACAC,GACAH,GACQ;AACR,MAAI,EAAEG,IAAY,GAAI,QAAO;AAI7B,MAAI,CAACJ,EAAqBC,CAAY;AACpC,WAAOC,EAA4BC,GAAUC,GAAWH,CAAY;AAMtE,QAAMQ,IAAYD,EACf,OAAO,CAAC,EAAE,UAAAE,QAAeA,IAAW,CAAC,EACrC;AAAA,IAAI,CAAC,EAAE,WAAAC,GAAW,UAAAD,EAAA,MACjBE;AAAA,MACEC;AAAA,QACEX,EAA4BS,GAAWP,GAAWH,CAAY;AAAA,MAAA;AAAA,MAEhES;AAAA,IAAA;AAAA,EACF;AAEJ,SAAOI,EAAeC,EAASN,CAAS,CAAC;AAC3C;"}
@@ -1,4 +1,4 @@
1
- import { T as D } from "./VenueCalendar-CU5N9klc.js";
1
+ import { aN as D, Q as v } from "./VenueCalendar-B809Hecp.js";
2
2
  import * as i from "svelte/internal/client";
3
3
  function e(n, s, g = 0) {
4
4
  const o = /* @__PURE__ */ new Date(), h = (5 - o.getUTCDay() + 7) % 7 || 7, r = new Date(
@@ -11,11 +11,11 @@ function e(n, s, g = 0) {
11
11
  function m(n) {
12
12
  return e(n, 0).slice(0, 10);
13
13
  }
14
- const v = {
14
+ const k = {
15
15
  id: 101,
16
16
  name: "The Laugh Factory",
17
17
  address: "8001 Sunset Blvd, Los Angeles, CA 90046",
18
- timezone: D(),
18
+ timezone: v(),
19
19
  serviceFeePercentage: 10,
20
20
  serviceFeeCents: 0,
21
21
  taxPercentage: 9.5,
@@ -36,7 +36,7 @@ const v = {
36
36
  displayName: "Mike Thompson",
37
37
  profileImage: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=200&h=200&fit=crop"
38
38
  }
39
- ], k = [
39
+ ], P = [
40
40
  {
41
41
  question: "What time do doors open?",
42
42
  answer: "Doors open at 7:00 PM, one hour before showtime. We recommend arriving early to get the best seats."
@@ -209,13 +209,13 @@ Whether you're a comedy regular or a first-timer, this show delivers. Grab your
209
209
  startDateTime: `${d}T20:00:00-08:00`,
210
210
  endDateTime: `${d}T22:00:00-08:00`,
211
211
  doorsOpenTime: `${d}T19:00:00-08:00`,
212
- timezone: "America/Los_Angeles",
212
+ timezone: D,
213
213
  imageUrl: "/posters/Friday Night Showdown.jpg",
214
214
  // wide landscape 800×400
215
- venue: v,
215
+ venue: k,
216
216
  performers: u,
217
217
  tickets: p,
218
- faqs: k,
218
+ faqs: P,
219
219
  disclaimer: "",
220
220
  status: "on_sale",
221
221
  isPasswordProtected: !1,
@@ -238,7 +238,7 @@ Whether you're a comedy regular or a first-timer, this show delivers. Grab your
238
238
  status: "sold_out"
239
239
  }))
240
240
  });
241
- const O = {
241
+ const _ = {
242
242
  ...t,
243
243
  id: 2407,
244
244
  title: "Open Mic Night",
@@ -283,7 +283,7 @@ const O = {
283
283
  ...t,
284
284
  collectionEvents: (e(0, 20), e(1, 21), e(2, 14), e(7, 20), e(8, 19), e(8, 22))
285
285
  });
286
- const _ = {
286
+ const A = {
287
287
  ...t,
288
288
  id: 2408,
289
289
  title: "Stand-Up Comedy Workshop",
@@ -313,7 +313,7 @@ const _ = {
313
313
  ],
314
314
  totalTicketsRemaining: 8,
315
315
  totalTicketsCapacity: 12
316
- }, A = {
316
+ }, x = {
317
317
  ...t,
318
318
  id: 2414,
319
319
  title: "Charity Comedy Benefit",
@@ -383,7 +383,7 @@ const _ = {
383
383
  ({
384
384
  ...t
385
385
  });
386
- class P {
386
+ class q {
387
387
  #e;
388
388
  get current() {
389
389
  return i.get(this.#e);
@@ -409,14 +409,14 @@ class P {
409
409
  this.#e = i.state("default"), this.#t = i.state(i.proxy([])), this.#a = i.state(!1);
410
410
  }
411
411
  }
412
- const x = new P(), a = {
412
+ const C = new q(), a = {
413
413
  success: "bg-accent-success",
414
414
  info: "bg-sky-500",
415
415
  brand: "bg-brand-primary",
416
416
  danger: "bg-accent-danger",
417
417
  warningSubtle: "bg-status-warning-bg0"
418
418
  };
419
- function C() {
419
+ function H() {
420
420
  return [
421
421
  { value: "default", label: "Standard", color: a.success },
422
422
  { value: "free", label: "Free", color: a.info },
@@ -427,7 +427,7 @@ function C() {
427
427
  { value: "promo", label: "Promo discount", color: a.success }
428
428
  ];
429
429
  }
430
- function H() {
430
+ function F() {
431
431
  return [
432
432
  { value: "default", label: "Standard", color: a.success },
433
433
  { value: "free", label: "Free", color: a.info },
@@ -436,12 +436,12 @@ function H() {
436
436
  ];
437
437
  }
438
438
  export {
439
- _ as a,
440
- O as b,
439
+ A as a,
440
+ _ as b,
441
441
  t as c,
442
- x as d,
443
- C as e,
444
- H as g,
445
- A as m
442
+ C as d,
443
+ H as e,
444
+ F as g,
445
+ x as m
446
446
  };
447
- //# sourceMappingURL=showcase-state-options-DJJdjxvZ.js.map
447
+ //# sourceMappingURL=showcase-state-options-BuPnUf0V.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"showcase-state-options-BuPnUf0V.js","sources":["../src/lib/public-calendar-flow/mock-data.ts","../src/lib/public-calendar-flow/data-toggle-store.svelte.ts","../src/lib/public-calendar-flow/showcase-state-options.ts"],"sourcesContent":["import { getDefaultTimezone } from '@getmicdrop/svelte-components/utils/timezones';\r\nimport { DEFAULT_TIMEZONE } from '$lib/utils/timezone.js';\n// Premium Ticket Experience — Mock Data\r\n// Realistic event data for all design variants. DO NOT MODIFY per-variant.\r\n\r\nimport type {\r\n EventData,\r\n PerformerData,\r\n FAQItem,\r\n VenueData,\r\n TicketTypeData,\r\n} from './types';\r\n\r\n// All dates here are anchored to \"the upcoming Friday at 8pm\" so the showcase\r\n// stays in the future regardless of when it's loaded. Hardcoded calendar dates\r\n// rot every few months and cause `event_past` CTAs even when status === 'on_sale'.\r\nfunction showcaseDate(\r\n daysFromFriday: number,\r\n hour: number,\r\n minute = 0\r\n): string {\r\n const now = new Date(); // @datetime-escape: mock/demo fixture data — not a live datetime path\r\n const day = now.getUTCDay(); // 0=Sun..6=Sat\r\n const daysToFriday = (5 - day + 7) % 7 || 7; // always the NEXT Friday (never today)\r\n // @datetime-escape: mock/demo fixture data — not a live datetime path\r\n const base = new Date(\r\n Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate())\r\n );\r\n base.setUTCDate(base.getUTCDate() + daysToFriday + daysFromFriday);\r\n const y = base.getUTCFullYear();\r\n const m = String(base.getUTCMonth() + 1).padStart(2, '0');\r\n const d = String(base.getUTCDate()).padStart(2, '0');\r\n const hh = String(hour).padStart(2, '0');\r\n const mm = String(minute).padStart(2, '0');\r\n return `${y}-${m}-${d}T${hh}:${mm}:00-08:00`;\r\n}\r\n\r\nfunction showcaseDateOnly(daysFromFriday: number): string {\r\n return showcaseDate(daysFromFriday, 0).slice(0, 10);\r\n}\r\n\r\n// --- Venue ---\r\nexport const mockVenue: VenueData = {\r\n id: 101,\r\n name: 'The Laugh Factory',\r\n address: '8001 Sunset Blvd, Los Angeles, CA 90046',\r\n timezone: getDefaultTimezone(),\r\n serviceFeePercentage: 10,\r\n serviceFeeCents: 0,\r\n taxPercentage: 9.5,\r\n contactEmail: 'help@thelaughfactory.com',\r\n};\r\n\r\n// --- Performers ---\r\nexport const mockPerformers: PerformerData[] = [\r\n {\r\n id: 1,\r\n displayName: 'Dave Martinez',\r\n profileImage:\r\n 'https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=200&h=200&fit=crop',\r\n },\r\n {\r\n id: 2,\r\n displayName: 'Sarah Chen',\r\n profileImage:\r\n 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=200&h=200&fit=crop',\r\n },\r\n {\r\n id: 3,\r\n displayName: 'Mike Thompson',\r\n profileImage:\r\n 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=200&h=200&fit=crop',\r\n },\r\n];\r\n\r\n// --- FAQs ---\r\nexport const mockFaqs: FAQItem[] = [\r\n {\r\n question: 'What time do doors open?',\r\n answer:\r\n 'Doors open at 7:00 PM, one hour before showtime. We recommend arriving early to get the best seats.',\r\n },\r\n {\r\n question: 'Is there a drink minimum?',\r\n answer:\r\n 'Yes, there is a 2-drink minimum per person. Both alcoholic and non-alcoholic beverages count toward the minimum.',\r\n },\r\n {\r\n question: 'Can I get a refund?',\r\n answer:\r\n 'Tickets are non-refundable but can be transferred to another person up to 24 hours before the show. Contact us for transfers.',\r\n },\r\n {\r\n question: 'Is the venue accessible?',\r\n answer:\r\n 'Yes, the venue is fully wheelchair accessible with ADA-compliant seating available. Please contact us to reserve accessible seating.',\r\n },\r\n];\r\n\r\n// --- Ticket Types ---\r\nexport const mockTickets: TicketTypeData[] = [\r\n\t{\r\n\t\tid: 101,\r\n\t\tname: 'General Admission',\r\n\t\tdescription: 'Standard seating in the main room',\r\n\t\tprice: 25,\r\n\t\tfee: 2.5,\r\n\t\tquantityAvailable: 12,\r\n\t\tquantityTotal: 150,\r\n\t\tminPerOrder: 1,\r\n\t\tmaxPerOrder: 8,\r\n\t\tstatus: 'on_sale',\r\n\t\tsalesEndDate: '2026-02-20T20:00:00-08:00',\r\n\t\tisDonation: false,\r\n\t\tisHidden: false\r\n\t},\r\n\t{\r\n\t\tid: 102,\r\n\t\tname: 'VIP Front Row',\r\n\t\tdescription: 'Premium seats in the first two rows with a complimentary drink',\r\n\t\tprice: 55,\r\n\t\tfee: 5.5,\r\n\t\tquantityAvailable: 3,\r\n\t\tquantityTotal: 20,\r\n\t\tminPerOrder: 1,\r\n\t\tmaxPerOrder: 4,\r\n\t\tstatus: 'on_sale',\r\n\t\tsalesEndDate: '2026-02-20T20:00:00-08:00',\r\n\t\tisDonation: false,\r\n\t\tisHidden: false\r\n\t},\r\n\t{\r\n\t\tid: 103,\r\n\t\tname: 'Table for 4',\r\n\t\tdescription: 'Reserved table for four guests with bottle service',\r\n\t\tprice: 180,\r\n\t\tfee: 18,\r\n\t\tquantityAvailable: 8,\r\n\t\tquantityTotal: 15,\r\n\t\tminPerOrder: 1,\r\n\t\tmaxPerOrder: 3,\r\n\t\tstatus: 'on_sale',\r\n\t\tisDonation: false,\r\n\t\tisHidden: false\r\n\t},\r\n\t{\r\n\t\tid: 104,\r\n\t\tname: 'Student Discount',\r\n\t\tdescription: 'Valid student ID required at the door',\r\n\t\tprice: 15,\r\n\t\tfee: 1.5,\r\n\t\tquantityAvailable: 45,\r\n\t\tquantityTotal: 50,\r\n\t\tminPerOrder: 1,\r\n\t\tmaxPerOrder: 2,\r\n\t\tstatus: 'on_sale',\r\n\t\tisDonation: false,\r\n\t\tisHidden: false\r\n\t},\r\n\t{\r\n\t\tid: 105,\r\n\t\tname: 'Early Bird Special',\r\n\t\tdescription: 'Limited early bird pricing — first come, first served',\r\n\t\tprice: 20,\r\n\t\tfee: 2,\r\n\t\tquantityAvailable: 15,\r\n\t\tquantityTotal: 30,\r\n\t\tminPerOrder: 1,\r\n\t\tmaxPerOrder: 4,\r\n\t\tstatus: 'on_sale',\r\n\t\tisDonation: false,\r\n\t\tisHidden: false\r\n\t},\r\n\t{\r\n\t\tid: 106,\r\n\t\tname: 'Senior (65+)',\r\n\t\tdescription: 'Senior discount with valid ID at the door',\r\n\t\tprice: 18,\r\n\t\tfee: 1.8,\r\n\t\tquantityAvailable: 30,\r\n\t\tquantityTotal: 40,\r\n\t\tminPerOrder: 1,\r\n\t\tmaxPerOrder: 4,\r\n\t\tstatus: 'on_sale',\r\n\t\tisDonation: false,\r\n\t\tisHidden: false\r\n\t},\r\n\t{\r\n\t\tid: 107,\r\n\t\tname: 'Industry Comp',\r\n\t\tdescription: 'Discount for industry professionals — credentials required',\r\n\t\tprice: 12,\r\n\t\tfee: 1.2,\r\n\t\tquantityAvailable: 25,\r\n\t\tquantityTotal: 30,\r\n\t\tminPerOrder: 1,\r\n\t\tmaxPerOrder: 2,\r\n\t\tstatus: 'on_sale',\r\n\t\tisDonation: false,\r\n\t\tisHidden: false\r\n\t},\r\n\t{\r\n\t\tid: 108,\r\n\t\tname: 'Group of 6',\r\n\t\tdescription: 'Reserved booth for six guests with priority seating',\r\n\t\tprice: 240,\r\n\t\tfee: 24,\r\n\t\tquantityAvailable: 5,\r\n\t\tquantityTotal: 8,\r\n\t\tminPerOrder: 1,\r\n\t\tmaxPerOrder: 2,\r\n\t\tstatus: 'on_sale',\r\n\t\tisDonation: false,\r\n\t\tisHidden: false\r\n\t},\r\n\t{\r\n\t\tid: 109,\r\n\t\tname: 'Standing Room',\r\n\t\tdescription: 'Standing room only at the back of the venue',\r\n\t\tprice: 12,\r\n\t\tfee: 1.2,\r\n\t\tquantityAvailable: 50,\r\n\t\tquantityTotal: 60,\r\n\t\tminPerOrder: 1,\r\n\t\tmaxPerOrder: 6,\r\n\t\tstatus: 'on_sale',\r\n\t\tisDonation: false,\r\n\t\tisHidden: false\r\n\t},\r\n\t{\r\n\t\tid: 110,\r\n\t\tname: 'Day-of Door',\r\n\t\tdescription: 'Day-of pricing for walk-ins — limited availability',\r\n\t\tprice: 35,\r\n\t\tfee: 3.5,\r\n\t\tquantityAvailable: 20,\r\n\t\tquantityTotal: 25,\r\n\t\tminPerOrder: 1,\r\n\t\tmaxPerOrder: 4,\r\n\t\tstatus: 'on_sale',\r\n\t\tisDonation: false,\r\n\t\tisHidden: false\r\n\t}\r\n];\r\n\r\n// --- Main Event (on sale, multiple ticket types, scarcity on VIP) ---\r\n// Computed relative to today (showcase use): always lands ~21 days in the\r\n// future so the BookingWidget renders the on-sale state, not \"Sales ended\".\r\n// Memory: [[user_mastermind_date_awareness]] — never hardcode showcase dates.\r\nconst _now = new Date(); // @datetime-escape: mock/demo fixture data — not a live datetime path\r\nconst _evDate = new Date(_now.getFullYear(), _now.getMonth(), _now.getDate() + 21); // @datetime-escape: mock/demo fixture data — not a live datetime path\r\nconst _ymd = `${_evDate.getFullYear()}-${String(_evDate.getMonth() + 1).padStart(2, '0')}-${String(_evDate.getDate()).padStart(2, '0')}`;\r\n\r\nexport const mockEvent: EventData = {\r\n id: 2405,\r\n title: 'Friday Night Comedy Throwdown',\r\n slug: 'friday-night-comedy-throwdown',\r\n description: `Get ready for the funniest night of the week! The Friday Night Comedy Throwdown brings together three of LA's hottest stand-up comics for two hours of non-stop laughs.\r\n\r\nHeadliner Dave Martinez (as seen on Netflix's \"Comedy Knockout\") brings his signature high-energy style, while Sarah Chen delivers her razor-sharp observational humor that's earned her a devoted following. Host Mike Thompson keeps the energy up between sets with crowd work that'll have you crying laughing.\r\n\r\nWhether you're a comedy regular or a first-timer, this show delivers. Grab your crew, grab some drinks, and prepare to laugh until your abs hurt.`,\r\n\tdate: _ymd,\r\n\tstartDateTime: `${_ymd}T20:00:00-08:00`,\r\n\tendDateTime: `${_ymd}T22:00:00-08:00`,\r\n\tdoorsOpenTime: `${_ymd}T19:00:00-08:00`,\r\n\ttimezone: DEFAULT_TIMEZONE,\r\n\timageUrl: '/posters/Friday Night Showdown.jpg', // wide landscape 800×400\r\n\tvenue: mockVenue,\r\n\tperformers: mockPerformers,\r\n\ttickets: mockTickets,\r\n\tfaqs: mockFaqs,\r\n\tdisclaimer: '',\r\n\tstatus: 'on_sale',\r\n\tisPasswordProtected: false,\r\n\tisRegistrationEvent: false,\r\n\ttotalTicketsRemaining: 68,\r\n\ttotalTicketsCapacity: 265,\r\n\tdisplayStartTime: true,\r\n\tdisplayEndTime: true,\r\n\tdisplayDoorsTime: true\r\n};\r\n\r\n// --- Sold Out Event (no end time shown) ---\r\nexport const mockSoldOutEvent: EventData = {\r\n ...mockEvent,\r\n id: 2406,\r\n title: 'Saturday Night Special',\r\n slug: 'saturday-night-special',\r\n imageUrl: '/posters/the-duel-square.webp', // square 3000×3000\r\n date: showcaseDateOnly(1),\r\n startDateTime: showcaseDate(1, 21),\r\n endDateTime: showcaseDate(1, 23),\r\n displayEndTime: false,\r\n status: 'sold_out',\r\n totalTicketsRemaining: 0,\r\n tickets: mockTickets.map(t => ({\r\n ...t,\r\n quantityAvailable: 0,\r\n status: 'sold_out' as const,\r\n })),\r\n};\r\n\r\n// --- Free Event (no doors time shown) ---\r\nexport const mockFreeEvent: EventData = {\r\n ...mockEvent,\r\n id: 2407,\r\n title: 'Open Mic Night',\r\n slug: 'open-mic-night',\r\n imageUrl: '/posters/OpenMic-Twitter.jpg', // wide landscape 2127×1075\r\n date: showcaseDateOnly(-2),\r\n startDateTime: showcaseDate(-2, 19),\r\n endDateTime: showcaseDate(-2, 21),\r\n displayDoorsTime: false,\r\n description:\r\n 'Free open mic night! Sign up at the door. All skill levels welcome.',\r\n status: 'on_sale',\r\n tickets: [\r\n {\r\n id: 201,\r\n name: 'Free Entry',\r\n description: 'Sign up at the door for a 5-minute set',\r\n price: 0,\r\n fee: 0,\r\n quantityAvailable: 40,\r\n quantityTotal: 50,\r\n minPerOrder: 1,\r\n maxPerOrder: 2,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: false,\r\n },\r\n ],\r\n totalTicketsRemaining: 40,\r\n totalTicketsCapacity: 50,\r\n};\r\n\r\n// --- Series Event (with occurrences) ---\r\nexport const mockSeriesEvent: EventData = {\r\n ...mockEvent,\r\n id: 2410,\r\n title: 'Improv Throwdown',\r\n slug: 'improv-throwdown',\r\n imageUrl: '/posters/laughlab-tall.webp', // tall portrait 2550×3300\r\n eventSeriesId: 42,\r\n description:\r\n 'Weekly improv comedy show featuring rotating guest performers and audience participation games.',\r\n seriesOccurrences: [\r\n // Same-day shows (Fri Feb 20 — 7pm, 8pm, 9:30pm)\r\n {\r\n id: 2410,\r\n slug: 'improv-throwdown-feb-20-7pm',\r\n startDateTime: showcaseDate(0, 19),\r\n endDateTime: showcaseDate(0, 20, 30),\r\n status: 'sold_out',\r\n ctaText: 'Sold out',\r\n ctaDisabled: true,\r\n },\r\n {\r\n id: 2414,\r\n slug: 'improv-throwdown-feb-20-8pm',\r\n startDateTime: showcaseDate(0, 20),\r\n endDateTime: showcaseDate(0, 21, 30),\r\n status: 'on_sale',\r\n ctaText: 'Get tickets',\r\n ctaDisabled: false,\r\n },\r\n {\r\n id: 2415,\r\n slug: 'improv-throwdown-feb-20-930pm',\r\n startDateTime: showcaseDate(0, 21, 30),\r\n endDateTime: showcaseDate(0, 23),\r\n status: 'on_sale',\r\n ctaText: 'Get tickets',\r\n ctaDisabled: false,\r\n },\r\n // Single show days\r\n {\r\n id: 2411,\r\n slug: 'improv-throwdown-feb-27',\r\n startDateTime: showcaseDate(7, 20),\r\n endDateTime: showcaseDate(7, 22),\r\n status: 'sold_out',\r\n ctaText: 'Sold out',\r\n ctaDisabled: true,\r\n },\r\n {\r\n id: 2412,\r\n slug: 'improv-throwdown-mar-06',\r\n startDateTime: showcaseDate(14, 20),\r\n endDateTime: showcaseDate(14, 22),\r\n status: 'on_sale',\r\n ctaText: 'Get tickets',\r\n ctaDisabled: false,\r\n },\r\n {\r\n id: 2413,\r\n slug: 'improv-throwdown-mar-13',\r\n startDateTime: showcaseDate(21, 20),\r\n endDateTime: showcaseDate(21, 22),\r\n status: 'coming_soon',\r\n ctaText: 'Coming soon',\r\n ctaDisabled: true,\r\n },\r\n ],\r\n};\r\n\r\n// --- Series Instance (one specific occurrence of the series — regular event page with series link) ---\r\nexport const mockSeriesInstanceEvent: EventData = {\r\n ...mockEvent,\r\n id: 2414,\r\n title: 'Improv Throwdown',\r\n slug: 'improv-throwdown-feb-20-8pm',\r\n imageUrl: '/posters/laughlab-tall.webp',\r\n eventSeriesId: 42,\r\n startDateTime: showcaseDate(0, 20),\r\n endDateTime: showcaseDate(0, 21, 30),\r\n description:\r\n 'Weekly improv comedy show featuring rotating guest performers and audience participation games.',\r\n // No seriesOccurrences — this is a single instance, not the series home\r\n};\r\n\r\n// --- Collection Home (loose grouping of different events with widgets) ---\r\nexport const mockCollectionEvent: EventData = {\r\n ...mockEvent,\r\n id: 3000,\r\n title: 'February Comedy Festival',\r\n slug: 'february-comedy-festival',\r\n imageUrl: '/posters/Friday Night Showdown.jpg',\r\n description:\r\n \"A curated collection of the best comedy shows this February. From improv to stand-up, sketch to open mic — there's something for every comedy fan.\",\r\n collectionId: 7,\r\n collectionEvents: [\r\n {\r\n id: 2401,\r\n name: 'Friday Night Comedy Throwdown',\r\n slug: 'friday-night-comedy-throwdown',\r\n image: '/posters/Friday Night Showdown.jpg',\r\n startDateTime: showcaseDate(0, 20),\r\n status: 'on_sale',\r\n ticketsRemaining: 42,\r\n ticketsTotal: 200,\r\n },\r\n {\r\n id: 2402,\r\n name: 'Saturday Night Special',\r\n slug: 'saturday-night-special',\r\n image: '/posters/the-duel-square.webp',\r\n startDateTime: showcaseDate(1, 21),\r\n status: 'on_sale',\r\n ticketsRemaining: 8,\r\n ticketsTotal: 150,\r\n },\r\n {\r\n id: 2403,\r\n name: 'Stand-Up Comedy Workshop',\r\n slug: 'standup-comedy-workshop',\r\n image: '/posters/stand up 101.png',\r\n startDateTime: showcaseDate(2, 14),\r\n status: 'on_sale',\r\n ticketsRemaining: 15,\r\n ticketsTotal: 30,\r\n },\r\n {\r\n id: 2410,\r\n name: 'Improv Throwdown',\r\n slug: 'improv-throwdown',\r\n image: '/posters/laughlab-tall.webp',\r\n startDateTime: showcaseDate(7, 20),\r\n status: 'on_sale',\r\n ticketsRemaining: 65,\r\n ticketsTotal: 200,\r\n },\r\n {\r\n id: 2404,\r\n name: 'Open Mic Night',\r\n slug: 'open-mic-night',\r\n image: '/posters/OpenMic-Twitter.jpg',\r\n startDateTime: showcaseDate(8, 19),\r\n status: 'on_sale',\r\n ticketsRemaining: 100,\r\n ticketsTotal: 100,\r\n },\r\n {\r\n id: 2405,\r\n name: 'Late Night Comedy Underground',\r\n slug: 'late-night-comedy-underground',\r\n image: '/posters/standup-portrait.webp',\r\n startDateTime: showcaseDate(8, 22),\r\n status: 'sold_out',\r\n ticketsRemaining: 0,\r\n ticketsTotal: 80,\r\n },\r\n ],\r\n};\r\n\r\n// --- Registration Event (workshop — no time shown, just date + doors) ---\r\nexport const mockRegistrationEvent: EventData = {\r\n ...mockEvent,\r\n id: 2408,\r\n title: 'Stand-Up Comedy Workshop',\r\n slug: 'standup-comedy-workshop',\r\n imageUrl: '/posters/stand up 101.png', // 16:9 landscape 1920×1080\r\n description:\r\n 'Learn the fundamentals of stand-up comedy in this 3-hour intensive workshop. Write, refine, and perform your first 5-minute set.',\r\n isRegistrationEvent: true,\r\n displayStartTime: false,\r\n displayEndTime: false,\r\n status: 'on_sale',\r\n tickets: [\r\n {\r\n id: 301,\r\n name: 'Workshop Seat',\r\n description: 'Includes materials and performance slot',\r\n price: 75,\r\n fee: 7.5,\r\n quantityAvailable: 8,\r\n quantityTotal: 12,\r\n minPerOrder: 1,\r\n maxPerOrder: 1,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: false,\r\n },\r\n ],\r\n totalTicketsRemaining: 8,\r\n totalTicketsCapacity: 12,\r\n};\r\n\r\n// --- Donation Event ---\r\nexport const mockDonationEvent: EventData = {\r\n ...mockEvent,\r\n id: 2414,\r\n title: 'Charity Comedy Benefit',\r\n slug: 'charity-comedy-benefit',\r\n imageUrl: '/posters/Friday Night Showdown.jpg',\r\n description:\r\n 'All proceeds go to the LA Comedy Relief Fund. Choose your own donation amount or grab a standard ticket.',\r\n status: 'on_sale',\r\n tickets: [\r\n {\r\n id: 401,\r\n name: 'Donation',\r\n description: 'Support the cause — choose your amount',\r\n price: 0,\r\n fee: 0,\r\n quantityAvailable: 200,\r\n quantityTotal: 200,\r\n minPerOrder: 1,\r\n maxPerOrder: 10,\r\n status: 'on_sale',\r\n isDonation: true,\r\n isHidden: false,\r\n ticketType: 2,\r\n },\r\n {\r\n id: 402,\r\n name: 'Standard Admission',\r\n description: 'Includes one drink ticket',\r\n price: 30,\r\n fee: 3,\r\n quantityAvailable: 80,\r\n quantityTotal: 100,\r\n minPerOrder: 1,\r\n maxPerOrder: 6,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: false,\r\n },\r\n ],\r\n totalTicketsRemaining: 280,\r\n totalTicketsCapacity: 300,\r\n};\r\n\r\n// --- Mixed Event (ALL ticket states in one event) ---\r\nexport const mockMixedEvent: EventData = {\r\n ...mockEvent,\r\n id: 2415,\r\n title: 'The Everything Show',\r\n slug: 'the-everything-show',\r\n imageUrl: '/posters/the-duel-square.webp',\r\n description:\r\n 'A showcase event with every ticket state possible — for testing all edge cases.',\r\n status: 'on_sale',\r\n tickets: [\r\n {\r\n id: 501,\r\n name: 'General Admission',\r\n description: 'Standard seating in the main room',\r\n price: 25,\r\n fee: 2.5,\r\n quantityAvailable: 45,\r\n quantityTotal: 150,\r\n minPerOrder: 1,\r\n maxPerOrder: 8,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: false,\r\n },\r\n {\r\n id: 502,\r\n name: 'Basic Entry',\r\n price: 15,\r\n fee: 1.5,\r\n quantityAvailable: 60,\r\n quantityTotal: 80,\r\n minPerOrder: 1,\r\n maxPerOrder: 4,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: false,\r\n },\r\n {\r\n id: 503,\r\n name: 'VIP Front Row',\r\n description: 'Premium seats with complimentary drink',\r\n price: 75,\r\n fee: 7.5,\r\n quantityAvailable: 2,\r\n quantityTotal: 20,\r\n minPerOrder: 1,\r\n maxPerOrder: 4,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: false,\r\n },\r\n {\r\n id: 504,\r\n name: 'Early Bird',\r\n description: 'Limited early bird pricing',\r\n price: 20,\r\n fee: 2,\r\n quantityAvailable: 0,\r\n quantityTotal: 30,\r\n minPerOrder: 1,\r\n maxPerOrder: 4,\r\n status: 'sold_out',\r\n isDonation: false,\r\n isHidden: false,\r\n },\r\n {\r\n id: 505,\r\n name: 'Late Night Add-On',\r\n description: 'Access to the after-party at midnight',\r\n price: 40,\r\n fee: 4,\r\n quantityAvailable: 50,\r\n quantityTotal: 50,\r\n minPerOrder: 1,\r\n maxPerOrder: 2,\r\n status: 'coming_soon',\r\n salesStartDate: showcaseDate(9, 10),\r\n isDonation: false,\r\n isHidden: false,\r\n },\r\n {\r\n id: 506,\r\n name: 'Weekend Bundle',\r\n description: 'Includes Saturday + Sunday shows',\r\n price: 45,\r\n fee: 4.5,\r\n quantityAvailable: 0,\r\n quantityTotal: 25,\r\n minPerOrder: 1,\r\n maxPerOrder: 4,\r\n status: 'sales_ended',\r\n salesEndDate: showcaseDate(-10, 23, 59),\r\n isDonation: false,\r\n isHidden: false,\r\n },\r\n {\r\n id: 507,\r\n name: 'Donation',\r\n description: 'Support the performers directly',\r\n price: 0,\r\n fee: 0,\r\n quantityAvailable: 100,\r\n quantityTotal: 100,\r\n minPerOrder: 1,\r\n maxPerOrder: 5,\r\n status: 'on_sale',\r\n isDonation: true,\r\n isHidden: false,\r\n ticketType: 2,\r\n },\r\n {\r\n id: 508,\r\n name: 'Secret VIP Lounge',\r\n description: 'Backstage access with meet & greet',\r\n price: 150,\r\n fee: 15,\r\n quantityAvailable: 10,\r\n quantityTotal: 10,\r\n minPerOrder: 1,\r\n maxPerOrder: 2,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: true,\r\n },\r\n {\r\n id: 509,\r\n name: 'Industry Comp',\r\n description: 'Complimentary ticket for industry professionals',\r\n price: 0,\r\n fee: 0,\r\n quantityAvailable: 20,\r\n quantityTotal: 20,\r\n minPerOrder: 1,\r\n maxPerOrder: 1,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: true,\r\n },\r\n ],\r\n totalTicketsRemaining: 287,\r\n totalTicketsCapacity: 485,\r\n};\r\n\r\n// --- Sectioned Event (tickets grouped by section) ---\r\nexport const mockSectionedEvent: EventData = {\r\n ...mockEvent,\r\n id: 2416,\r\n title: 'Multi-Stage Festival',\r\n slug: 'multi-stage-festival',\r\n imageUrl: '/posters/OpenMic-Twitter.jpg',\r\n description:\r\n 'Three stages, one incredible night. Choose your zone and enjoy performances across the venue.',\r\n status: 'on_sale',\r\n tickets: [\r\n {\r\n id: 601,\r\n name: 'Floor Standing',\r\n description: 'Standing room on the main floor',\r\n price: 35,\r\n fee: 3.5,\r\n quantityAvailable: 100,\r\n quantityTotal: 200,\r\n minPerOrder: 1,\r\n maxPerOrder: 8,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: false,\r\n sectionName: 'Floor',\r\n },\r\n {\r\n id: 602,\r\n name: 'Floor Reserved',\r\n description: 'Reserved seat on the main floor',\r\n price: 50,\r\n fee: 5,\r\n quantityAvailable: 30,\r\n quantityTotal: 80,\r\n minPerOrder: 1,\r\n maxPerOrder: 6,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: false,\r\n sectionName: 'Floor',\r\n },\r\n {\r\n id: 603,\r\n name: 'Balcony Standard',\r\n description: 'Standard balcony seating with great views',\r\n price: 40,\r\n fee: 4,\r\n quantityAvailable: 50,\r\n quantityTotal: 60,\r\n minPerOrder: 1,\r\n maxPerOrder: 6,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: false,\r\n sectionName: 'Balcony',\r\n },\r\n {\r\n id: 604,\r\n name: 'Balcony Premium',\r\n description: 'Front-row balcony seats',\r\n price: 60,\r\n fee: 6,\r\n quantityAvailable: 5,\r\n quantityTotal: 20,\r\n minPerOrder: 1,\r\n maxPerOrder: 4,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: false,\r\n sectionName: 'Balcony',\r\n },\r\n {\r\n id: 605,\r\n name: 'VIP Lounge Table',\r\n description:\r\n 'Private table for 4 with bottle service and backstage access',\r\n price: 250,\r\n fee: 25,\r\n quantityAvailable: 3,\r\n quantityTotal: 8,\r\n minPerOrder: 1,\r\n maxPerOrder: 2,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: false,\r\n sectionName: 'VIP Lounge',\r\n },\r\n ],\r\n totalTicketsRemaining: 188,\r\n totalTicketsCapacity: 368,\r\n};\r\n\r\n// --- Promo Event (hidden tickets for promo reveal testing) ---\r\nexport const mockPromoEvent: EventData = {\r\n ...mockEvent,\r\n id: 2417,\r\n title: 'Secret Show',\r\n slug: 'secret-show',\r\n imageUrl: '/posters/luke-null-tall.webp',\r\n description:\r\n 'An intimate comedy experience. Some tickets are only available with a promo code.',\r\n status: 'on_sale',\r\n tickets: [\r\n {\r\n id: 701,\r\n name: 'General Admission',\r\n price: 30,\r\n fee: 3,\r\n quantityAvailable: 40,\r\n quantityTotal: 60,\r\n minPerOrder: 1,\r\n maxPerOrder: 6,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: false,\r\n },\r\n {\r\n id: 702,\r\n name: 'Premium Seat',\r\n description: 'Reserved seating in rows 1-5',\r\n price: 50,\r\n fee: 5,\r\n quantityAvailable: 15,\r\n quantityTotal: 30,\r\n minPerOrder: 1,\r\n maxPerOrder: 4,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: false,\r\n },\r\n {\r\n id: 703,\r\n name: 'Artist Meet & Greet',\r\n description:\r\n 'Backstage pass with photo opportunity — promo code required',\r\n price: 100,\r\n fee: 10,\r\n quantityAvailable: 8,\r\n quantityTotal: 10,\r\n minPerOrder: 1,\r\n maxPerOrder: 2,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: true,\r\n },\r\n {\r\n id: 704,\r\n name: 'Industry Comp',\r\n description: 'Complimentary entry for industry professionals',\r\n price: 0,\r\n fee: 0,\r\n quantityAvailable: 10,\r\n quantityTotal: 10,\r\n minPerOrder: 1,\r\n maxPerOrder: 1,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: true,\r\n },\r\n ],\r\n totalTicketsRemaining: 73,\r\n totalTicketsCapacity: 110,\r\n};\r\n\r\n// --- Hidden-Only Event (MIC-1039) — no visible tickets, only hidden remain ---\r\n// Lands the user on a page where the only purchasable seats are gated behind\r\n// a promo code. With zero visible tickets the page should suppress the ticket\r\n// list entirely and render only the PromoCodeInput.\r\nexport const mockHiddenOnlyEvent: EventData = {\r\n ...mockEvent,\r\n id: 2419,\r\n title: 'Industry Showcase',\r\n slug: 'industry-showcase',\r\n description:\r\n 'A private comedy showcase. Tickets are only available with a promo code.',\r\n status: 'on_sale',\r\n tickets: [\r\n {\r\n id: 902,\r\n name: 'Industry Comp',\r\n description:\r\n 'Complimentary entry for industry professionals — promo code required',\r\n price: 0,\r\n fee: 0,\r\n quantityAvailable: 15,\r\n quantityTotal: 20,\r\n minPerOrder: 1,\r\n maxPerOrder: 2,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: true,\r\n },\r\n {\r\n id: 903,\r\n name: 'Artist Hold',\r\n description: 'Held for artist guests — promo code required',\r\n price: 50,\r\n fee: 5,\r\n quantityAvailable: 5,\r\n quantityTotal: 10,\r\n minPerOrder: 1,\r\n maxPerOrder: 4,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: true,\r\n },\r\n ],\r\n totalTicketsRemaining: 0,\r\n totalTicketsCapacity: 0,\r\n};\r\n\r\n// --- Multi-Stage Event (stage name + age restriction) ---\r\nexport const mockMultiStageEvent: EventData = {\r\n ...mockEvent,\r\n id: 2418,\r\n title: 'Late Night Comedy Underground',\r\n slug: 'late-night-comedy-underground',\r\n imageUrl: '/posters/laughlab-tall.webp',\r\n description:\r\n 'The raunchiest, most unfiltered comedy night in LA. Side stage, no holds barred.',\r\n status: 'on_sale',\r\n stageName: 'Side Stage',\r\n ageRestriction: 21,\r\n displayAgeRestriction: true,\r\n tickets: [\r\n {\r\n id: 801,\r\n name: 'General Admission',\r\n price: 20,\r\n fee: 2,\r\n quantityAvailable: 25,\r\n quantityTotal: 40,\r\n minPerOrder: 1,\r\n maxPerOrder: 4,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: false,\r\n },\r\n {\r\n id: 802,\r\n name: 'VIP Booth',\r\n description: 'Reserved booth for 2 with drinks included',\r\n price: 80,\r\n fee: 8,\r\n quantityAvailable: 4,\r\n quantityTotal: 6,\r\n minPerOrder: 1,\r\n maxPerOrder: 2,\r\n status: 'on_sale',\r\n isDonation: false,\r\n isHidden: false,\r\n },\r\n ],\r\n totalTicketsRemaining: 29,\r\n totalTicketsCapacity: 46,\r\n};\r\n\r\n// --- Long Name Event (Laugh Factory-style: all performers in the title) ---\r\nexport const mockLongNameEvent: EventData = {\r\n ...mockEvent,\r\n id: 2420,\r\n title:\r\n 'The Friday Night All-Star Comedy Throwdown featuring Dave Martinez, Sarah Chen, Mike Thompson, Bobby Lee, Andrew Santino, Hasan Minhaj, and Very Special Guests from Netflix, Comedy Central, HBO, and Amazon Prime',\r\n slug: 'the-friday-night-all-star-comedy-throwdown',\r\n imageUrl: '/posters/laughlab-tall.webp',\r\n description: `The biggest lineup of the year! Seven of the hottest comics in LA on one stage for one unforgettable night. This is the show comedy fans have been waiting for — a stacked bill from top to bottom with headliners you've seen on every major streaming platform.\r\n\r\nDave Martinez (Netflix's \"Comedy Knockout\") headlines with his signature high-energy style. Sarah Chen brings her razor-sharp observational humor. Mike Thompson keeps the energy sky-high between sets. Bobby Lee delivers his unhinged brilliance. Andrew Santino roasts everything in sight. Hasan Minhaj brings the political heat. Plus surprise guests you won't want to miss.\r\n\r\nTwo-drink minimum. No photography or recording. Arrive early — seating is first come, first served.`,\r\n ageRestriction: 18,\r\n displayAgeRestriction: true,\r\n displayStartTime: true,\r\n displayEndTime: true,\r\n displayDoorsTime: true,\r\n performers: [\r\n ...mockPerformers,\r\n {\r\n id: 4,\r\n displayName: 'Bobby Lee',\r\n profileImage:\r\n 'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=200&h=200&fit=crop',\r\n },\r\n {\r\n id: 5,\r\n displayName: 'Andrew Santino',\r\n profileImage:\r\n 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=200&h=200&fit=crop',\r\n },\r\n {\r\n id: 6,\r\n displayName: 'Hasan Minhaj',\r\n profileImage:\r\n 'https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?w=200&h=200&fit=crop',\r\n },\r\n ],\r\n};\r\n\r\n// --- Wide/Panoramic Image Event (tests min-height behavior) ---\r\nexport const mockWideImageEvent: EventData = {\r\n ...mockEvent,\r\n id: 2421,\r\n title: 'Sunset Sessions: Rooftop Jazz & Cocktails',\r\n slug: 'sunset-sessions-rooftop-jazz',\r\n imageUrl: '/posters/Wide.jpg',\r\n description: `Join us on the rooftop for an evening of smooth jazz, craft cocktails, and stunning sunset views over the city. Featuring a rotating cast of LA's finest jazz musicians in an intimate outdoor setting.\r\n\r\nFull bar available with specialty cocktails curated for the evening. Light bites and small plates from our kitchen. Dress code: smart casual.`,\r\n displayStartTime: true,\r\n displayEndTime: true,\r\n displayDoorsTime: true,\r\n};\r\n\r\n// --- Password Protected Event ---\r\nexport const mockPasswordEvent: EventData = {\r\n ...mockEvent,\r\n id: 2409,\r\n title: 'Secret Comedy Club',\r\n slug: 'secret-comedy-club',\r\n imageUrl: '/posters/luke-null-tall.webp', // tall portrait 625×937\r\n description: 'An exclusive underground comedy experience. Password required.',\r\n isPasswordProtected: true,\r\n status: 'on_sale',\r\n};\r\n","export type DataVariant =\r\n\t| 'default'\r\n\t| 'sold_out'\r\n\t| 'free'\r\n\t| 'registration'\r\n\t| 'series'\r\n\t| 'series_instance'\r\n\t| 'collection'\r\n\t| 'donation'\r\n\t| 'mixed'\r\n\t| 'sections'\r\n\t| 'promo'\r\n\t| 'multi_stage'\r\n\t| 'long'\r\n\t| 'wide';\r\n\r\nexport interface ToggleOption {\r\n\tvalue: string;\r\n\tlabel: string;\r\n\tcolor: string;\r\n}\r\n\r\nclass DataToggleStore {\r\n\tcurrent = $state<string>('default');\r\n\toptions = $state<ToggleOption[]>([]);\r\n\tisActive = $state(false);\r\n}\r\n\r\nexport const dataToggleStore = new DataToggleStore();\r\n","/**\r\n * Canonical state-option sets for the public-calendar-flow showcase.\r\n *\r\n * Per R-PATTERN-01 (canonicals-golden-rules.md): function form is the source,\r\n * static snapshots derive at module init. Every showcase surface that drives\r\n * `dataToggleStore` reads its option set from here — Checkout, Success and\r\n * ShowcaseEvent each used to inline their own array beside the variant union\r\n * they switch on, so the same `{ default, free, registration, donation }` core\r\n * lived in three places and could drift silently.\r\n *\r\n * Ordering is per-surface and deliberate: Checkout lists donation before\r\n * registration, Success lists registration before donation. The sets stay\r\n * distinct rather than merged so no surface's toggle order changes.\r\n */\r\nimport type { ToggleOption } from '$lib/public-calendar-flow/data-toggle-store.svelte';\r\n\r\n/**\r\n * Categorical hues for the showcase toggle dots — keyed by hue role, not by\r\n * state, so each class is named once and reused across every set.\r\n *\r\n * `info` is raw Tailwind palette (`bg-sky-500`) rather than an SC semantic\r\n * token, carried over verbatim from the arrays this module absorbed. It is the\r\n * one non-token hue here; replacing it is a color-category call, not an\r\n * options-array one.\r\n */\r\nconst HUE = {\r\n\tsuccess: 'bg-accent-success',\r\n\tneutral: 'bg-muted-foreground',\r\n\tinfo: 'bg-sky-500',\r\n\tbrand: 'bg-brand-primary',\r\n\tdanger: 'bg-accent-danger',\r\n\twarning: 'bg-accent-warning',\r\n\twarningSubtle: 'bg-status-warning-bg0',\r\n} as const;\r\n\r\nexport function getShowcaseBrowseStates(): ToggleOption[] {\r\n\treturn [\r\n\t\t{ value: 'default', label: 'Default', color: HUE.success },\r\n\t\t{ value: 'empty', label: 'Empty', color: HUE.neutral },\r\n\t\t{ value: 'sparse', label: '2 events', color: HUE.info },\r\n\t\t{ value: 'busy', label: 'Many events', color: HUE.brand },\r\n\t];\r\n}\r\n\r\nexport function getShowcaseCalendarStates(): ToggleOption[] {\r\n\treturn [\r\n\t\t{ value: 'default', label: 'Default', color: HUE.success },\r\n\t\t{ value: 'empty', label: 'Empty month', color: HUE.neutral },\r\n\t\t{ value: 'busy', label: 'Busy month', color: HUE.brand },\r\n\t];\r\n}\r\n\r\nexport function getShowcaseCheckoutStates(): ToggleOption[] {\r\n\treturn [\r\n\t\t{ value: 'default', label: 'Standard', color: HUE.success },\r\n\t\t{ value: 'free', label: 'Free', color: HUE.info },\r\n\t\t{ value: 'donation', label: 'Donation', color: HUE.danger },\r\n\t\t{ value: 'registration', label: 'Registration', color: HUE.brand },\r\n\t\t{ value: 'timer_warning', label: 'Timer warning', color: HUE.warningSubtle },\r\n\t\t{ value: 'expired', label: 'Expired', color: HUE.danger },\r\n\t\t{ value: 'promo', label: 'Promo discount', color: HUE.success },\r\n\t];\r\n}\r\n\r\nexport function getShowcaseSuccessStates(): ToggleOption[] {\r\n\treturn [\r\n\t\t{ value: 'default', label: 'Standard', color: HUE.success },\r\n\t\t{ value: 'free', label: 'Free', color: HUE.info },\r\n\t\t{ value: 'registration', label: 'Registration', color: HUE.brand },\r\n\t\t{ value: 'donation', label: 'Donation', color: HUE.danger },\r\n\t];\r\n}\r\n\r\n/**\r\n * Event showcase picker — five hues cover 14 variants; the label disambiguates.\r\n * `default` reads \"On sale\" and `free` is brand-hued here, unlike Checkout and\r\n * Success: an event is on sale, a checkout is standard.\r\n */\r\nexport function getShowcaseEventStates(): ToggleOption[] {\r\n\treturn [\r\n\t\t{ value: 'default', label: 'On sale', color: HUE.success },\r\n\t\t{ value: 'sold_out', label: 'Sold out', color: HUE.neutral },\r\n\t\t{ value: 'free', label: 'Free', color: HUE.brand },\r\n\t\t{ value: 'registration', label: 'Registration', color: HUE.brand },\r\n\t\t{ value: 'series', label: 'Series', color: HUE.brand },\r\n\t\t{ value: 'series_instance', label: 'Instance', color: HUE.warning },\r\n\t\t{ value: 'collection', label: 'Collection', color: HUE.danger },\r\n\t\t{ value: 'donation', label: 'Donation', color: HUE.danger },\r\n\t\t{ value: 'mixed', label: 'Mixed', color: HUE.warning },\r\n\t\t{ value: 'sections', label: 'Sections', color: HUE.brand },\r\n\t\t{ value: 'promo', label: 'Promo codes', color: HUE.success },\r\n\t\t{ value: 'multi_stage', label: 'Multi-stage', color: HUE.danger },\r\n\t\t{ value: 'long', label: 'Long name', color: HUE.warning },\r\n\t\t{ value: 'wide', label: 'Wide image', color: HUE.neutral },\r\n\t];\r\n}\r\n\r\n/** Static snapshots derived from the functions above — for non-reactive consumers. */\r\nexport const SHOWCASE_BROWSE_STATES = getShowcaseBrowseStates();\r\nexport const SHOWCASE_CALENDAR_STATES = getShowcaseCalendarStates();\r\n"],"names":["showcaseDate","daysFromFriday","hour","minute","now","daysToFriday","base","y","m","d","hh","mm","showcaseDateOnly","mockVenue","getDefaultTimezone","mockPerformers","mockFaqs","mockTickets","_now","_evDate","_ymd","mockEvent","DEFAULT_TIMEZONE","t","mockFreeEvent","mockRegistrationEvent","mockDonationEvent","DataToggleStore","#current","$","#isActive","dataToggleStore","HUE","getShowcaseCheckoutStates","getShowcaseSuccessStates"],"mappings":";;AAgBA,SAASA,EACPC,GACAC,GACAC,IAAS,GACD;AACR,QAAMC,wBAAU,KAAA,GAEVC,KAAgB,IADVD,EAAI,UAAA,IACgB,KAAK,KAAK,GAEpCE,IAAO,IAAI;AAAA,IACf,KAAK,IAAIF,EAAI,eAAA,GAAkBA,EAAI,YAAA,GAAeA,EAAI,WAAA,CAAY;AAAA,EAAA;AAE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