@getmicdrop/venue-calendar 4.0.83 → 4.0.86

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 (69) hide show
  1. package/README.md +740 -740
  2. package/dist/{CartView-DBrUqLSR.js → CartView-e2hG7cOV.js} +5 -5
  3. package/dist/CartView-e2hG7cOV.js.map +1 -0
  4. package/dist/{Checkout-BAtOdBIM.js → Checkout-BpTUMyLk.js} +7 -7
  5. package/dist/Checkout-BpTUMyLk.js.map +1 -0
  6. package/dist/Checkout-DmnOMwhl.js +809 -0
  7. package/dist/Checkout-DmnOMwhl.js.map +1 -0
  8. package/dist/{CheckoutTimer-CayvrAa9.js → CheckoutTimer-Dv0c-X6O.js} +4 -4
  9. package/dist/CheckoutTimer-Dv0c-X6O.js.map +1 -0
  10. package/dist/{CollectionView-kk90OMFq.js → CollectionView-CyxK6aI9.js} +5 -5
  11. package/dist/CollectionView-CyxK6aI9.js.map +1 -0
  12. package/dist/{Event-N959l6uT.js → Event-Cw7b9UEd.js} +1125 -1125
  13. package/dist/Event-Cw7b9UEd.js.map +1 -0
  14. package/dist/{EventPage-DaEMiLjY.js → EventPage-BKtFiZL1.js} +7 -7
  15. package/dist/EventPage-BKtFiZL1.js.map +1 -0
  16. package/dist/{Heading-A_nixT3L.js → Heading-D0grC8vd.js} +2 -2
  17. package/dist/{Heading-A_nixT3L.js.map → Heading-D0grC8vd.js.map} +1 -1
  18. package/dist/{ModalHeader-CxMVzApa.js → ModalHeader-V5AlK1dt.js} +2 -2
  19. package/dist/{ModalHeader-CxMVzApa.js.map → ModalHeader-V5AlK1dt.js.map} +1 -1
  20. package/dist/{ScarcityBadge-CiF-JsPl.js → ScarcityBadge-Co7gZXuW.js} +2 -2
  21. package/dist/ScarcityBadge-Co7gZXuW.js.map +1 -0
  22. package/dist/{SeriesPage-CQJHrpTH.js → SeriesPage-USYe3APQ.js} +5 -5
  23. package/dist/SeriesPage-USYe3APQ.js.map +1 -0
  24. package/dist/{Success-R-1NhLjx.js → Success-C387RvIY.js} +7 -7
  25. package/dist/Success-C387RvIY.js.map +1 -0
  26. package/dist/{Text-F6D2QvI6.js → Text-ZUPglf_o.js} +2 -2
  27. package/dist/{Text-F6D2QvI6.js.map → Text-ZUPglf_o.js.map} +1 -1
  28. package/dist/{VenueCalendar-DdRkxjxd.js → VenueCalendar-tmWZSmhT.js} +451 -449
  29. package/dist/VenueCalendar-tmWZSmhT.js.map +1 -0
  30. package/dist/{ViewTicketsEmbed-BwvS8VgE.js → ViewTicketsEmbed--091XJJn.js} +4 -4
  31. package/dist/ViewTicketsEmbed--091XJJn.js.map +1 -0
  32. package/dist/api/api.cjs +1 -1
  33. package/dist/api/api.cjs.map +1 -1
  34. package/dist/api/api.mjs +18 -15
  35. package/dist/api/api.mjs.map +1 -1
  36. package/dist/api/gift-cards.d.ts +3 -2
  37. package/dist/{data-toggle-store.svelte-D9XyVwDW.js → data-toggle-store.svelte-Bn0h8FT_.js} +2 -2
  38. package/dist/data-toggle-store.svelte-Bn0h8FT_.js.map +1 -0
  39. package/dist/{labels-DG5wh_vD.js → labels-C7Znep_T.js} +3 -3
  40. package/dist/labels-C7Znep_T.js.map +1 -0
  41. package/dist/seo/seo.cjs.map +1 -1
  42. package/dist/seo/seo.mjs.map +1 -1
  43. package/dist/{transform-C5S2acqv.js → transform-BxgTZDAD.js} +2 -2
  44. package/dist/transform-BxgTZDAD.js.map +1 -0
  45. package/dist/types/index.d.ts +442 -442
  46. package/dist/venue-calendar.css +1 -1
  47. package/dist/venue-calendar.es.js +2 -2
  48. package/dist/venue-calendar.iife.js +20 -20
  49. package/dist/venue-calendar.iife.js.map +1 -1
  50. package/dist/venue-calendar.umd.js +19 -19
  51. package/dist/venue-calendar.umd.js.map +1 -1
  52. package/package.json +170 -171
  53. package/src/lib/theme.js +222 -222
  54. package/dist/CartView-DBrUqLSR.js.map +0 -1
  55. package/dist/Checkout-BAtOdBIM.js.map +0 -1
  56. package/dist/Checkout-BEcmGOZm.js +0 -789
  57. package/dist/Checkout-BEcmGOZm.js.map +0 -1
  58. package/dist/CheckoutTimer-CayvrAa9.js.map +0 -1
  59. package/dist/CollectionView-kk90OMFq.js.map +0 -1
  60. package/dist/Event-N959l6uT.js.map +0 -1
  61. package/dist/EventPage-DaEMiLjY.js.map +0 -1
  62. package/dist/ScarcityBadge-CiF-JsPl.js.map +0 -1
  63. package/dist/SeriesPage-CQJHrpTH.js.map +0 -1
  64. package/dist/Success-R-1NhLjx.js.map +0 -1
  65. package/dist/VenueCalendar-DdRkxjxd.js.map +0 -1
  66. package/dist/ViewTicketsEmbed-BwvS8VgE.js.map +0 -1
  67. package/dist/data-toggle-store.svelte-D9XyVwDW.js.map +0 -1
  68. package/dist/labels-DG5wh_vD.js.map +0 -1
  69. package/dist/transform-C5S2acqv.js.map +0 -1
@@ -60,9 +60,10 @@ export interface RemoveGiftCardResult {
60
60
  error?: string;
61
61
  }
62
62
  /**
63
- * Remove a gift card from a cart.
63
+ * Remove a gift card from a cart. Pass a `code` to remove a single stacked card;
64
+ * omit it to remove all applied gift cards.
64
65
  */
65
- export declare function removeGiftCard(cartId: string): Promise<RemoveGiftCardResult>;
66
+ export declare function removeGiftCard(cartId: string, code?: string): Promise<RemoveGiftCardResult>;
66
67
  export interface CompleteGiftCardPaymentInput {
67
68
  firstName: string;
68
69
  lastName: string;
@@ -1,4 +1,4 @@
1
- import { A as w } from "./VenueCalendar-DdRkxjxd.js";
1
+ import { A as w } from "./VenueCalendar-tmWZSmhT.js";
2
2
  import * as a from "svelte/internal/client";
3
3
  function e(s, i, p = 0) {
4
4
  const r = /* @__PURE__ */ new Date(), h = (5 - r.getUTCDay() + 7) % 7 || 7, n = new Date(
@@ -417,4 +417,4 @@ export {
417
417
  _ as d,
418
418
  A as m
419
419
  };
420
- //# sourceMappingURL=data-toggle-store.svelte-D9XyVwDW.js.map
420
+ //# sourceMappingURL=data-toggle-store.svelte-Bn0h8FT_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-toggle-store.svelte-Bn0h8FT_.js","sources":["../src/lib/public-calendar-flow/mock-data.ts","../src/lib/public-calendar-flow/data-toggle-store.svelte.ts"],"sourcesContent":["import { getDefaultTimezone } from '@getmicdrop/svelte-components/utils/timezones';\n// Premium Ticket Experience — Mock Data\n// Realistic event data for all design variants. DO NOT MODIFY per-variant.\n\nimport type {\n EventData,\n PerformerData,\n FAQItem,\n VenueData,\n TicketTypeData,\n} from './types';\n\n// All dates here are anchored to \"the upcoming Friday at 8pm\" so the showcase\n// stays in the future regardless of when it's loaded. Hardcoded calendar dates\n// rot every few months and cause `event_past` CTAs even when status === 'on_sale'.\nfunction showcaseDate(\n daysFromFriday: number,\n hour: number,\n minute = 0\n): string {\n const now = new Date();\n const day = now.getUTCDay(); // 0=Sun..6=Sat\n const daysToFriday = (5 - day + 7) % 7 || 7; // always the NEXT Friday (never today)\n const base = new Date(\n Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate())\n );\n base.setUTCDate(base.getUTCDate() + daysToFriday + daysFromFriday);\n const y = base.getUTCFullYear();\n const m = String(base.getUTCMonth() + 1).padStart(2, '0');\n const d = String(base.getUTCDate()).padStart(2, '0');\n const hh = String(hour).padStart(2, '0');\n const mm = String(minute).padStart(2, '0');\n return `${y}-${m}-${d}T${hh}:${mm}:00-08:00`;\n}\n\nfunction showcaseDateOnly(daysFromFriday: number): string {\n return showcaseDate(daysFromFriday, 0).slice(0, 10);\n}\n\n// --- Venue ---\nexport const mockVenue: VenueData = {\n id: 101,\n name: 'The Laugh Factory',\n address: '8001 Sunset Blvd, Los Angeles, CA 90046',\n timezone: getDefaultTimezone(),\n serviceFeePercentage: 10,\n serviceFeeCents: 0,\n taxPercentage: 9.5,\n contactEmail: 'help@thelaughfactory.com',\n};\n\n// --- Performers ---\nexport const mockPerformers: PerformerData[] = [\n {\n id: 1,\n displayName: 'Dave Martinez',\n profileImage:\n 'https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=200&h=200&fit=crop',\n },\n {\n id: 2,\n displayName: 'Sarah Chen',\n profileImage:\n 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=200&h=200&fit=crop',\n },\n {\n id: 3,\n displayName: 'Mike Thompson',\n profileImage:\n 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=200&h=200&fit=crop',\n },\n];\n\n// --- FAQs ---\nexport const mockFaqs: FAQItem[] = [\n {\n question: 'What time do doors open?',\n answer:\n 'Doors open at 7:00 PM, one hour before showtime. We recommend arriving early to get the best seats.',\n },\n {\n question: 'Is there a drink minimum?',\n answer:\n 'Yes, there is a 2-drink minimum per person. Both alcoholic and non-alcoholic beverages count toward the minimum.',\n },\n {\n question: 'Can I get a refund?',\n answer:\n 'Tickets are non-refundable but can be transferred to another person up to 24 hours before the show. Contact us for transfers.',\n },\n {\n question: 'Is the venue accessible?',\n answer:\n 'Yes, the venue is fully wheelchair accessible with ADA-compliant seating available. Please contact us to reserve accessible seating.',\n },\n];\n\n// --- Ticket Types ---\nexport const mockTickets: TicketTypeData[] = [\n\t{\n\t\tid: 101,\n\t\tname: 'General Admission',\n\t\tdescription: 'Standard seating in the main room',\n\t\tprice: 25,\n\t\tfee: 2.5,\n\t\tquantityAvailable: 12,\n\t\tquantityTotal: 150,\n\t\tminPerOrder: 1,\n\t\tmaxPerOrder: 8,\n\t\tstatus: 'on_sale',\n\t\tsalesEndDate: '2026-02-20T20:00:00-08:00',\n\t\tisDonation: false,\n\t\tisHidden: false\n\t},\n\t{\n\t\tid: 102,\n\t\tname: 'VIP Front Row',\n\t\tdescription: 'Premium seats in the first two rows with a complimentary drink',\n\t\tprice: 55,\n\t\tfee: 5.5,\n\t\tquantityAvailable: 3,\n\t\tquantityTotal: 20,\n\t\tminPerOrder: 1,\n\t\tmaxPerOrder: 4,\n\t\tstatus: 'on_sale',\n\t\tsalesEndDate: '2026-02-20T20:00:00-08:00',\n\t\tisDonation: false,\n\t\tisHidden: false\n\t},\n\t{\n\t\tid: 103,\n\t\tname: 'Table for 4',\n\t\tdescription: 'Reserved table for four guests with bottle service',\n\t\tprice: 180,\n\t\tfee: 18,\n\t\tquantityAvailable: 8,\n\t\tquantityTotal: 15,\n\t\tminPerOrder: 1,\n\t\tmaxPerOrder: 3,\n\t\tstatus: 'on_sale',\n\t\tisDonation: false,\n\t\tisHidden: false\n\t},\n\t{\n\t\tid: 104,\n\t\tname: 'Student Discount',\n\t\tdescription: 'Valid student ID required at the door',\n\t\tprice: 15,\n\t\tfee: 1.5,\n\t\tquantityAvailable: 45,\n\t\tquantityTotal: 50,\n\t\tminPerOrder: 1,\n\t\tmaxPerOrder: 2,\n\t\tstatus: 'on_sale',\n\t\tisDonation: false,\n\t\tisHidden: false\n\t},\n\t{\n\t\tid: 105,\n\t\tname: 'Early Bird Special',\n\t\tdescription: 'Limited early bird pricing — first come, first served',\n\t\tprice: 20,\n\t\tfee: 2,\n\t\tquantityAvailable: 15,\n\t\tquantityTotal: 30,\n\t\tminPerOrder: 1,\n\t\tmaxPerOrder: 4,\n\t\tstatus: 'on_sale',\n\t\tisDonation: false,\n\t\tisHidden: false\n\t},\n\t{\n\t\tid: 106,\n\t\tname: 'Senior (65+)',\n\t\tdescription: 'Senior discount with valid ID at the door',\n\t\tprice: 18,\n\t\tfee: 1.8,\n\t\tquantityAvailable: 30,\n\t\tquantityTotal: 40,\n\t\tminPerOrder: 1,\n\t\tmaxPerOrder: 4,\n\t\tstatus: 'on_sale',\n\t\tisDonation: false,\n\t\tisHidden: false\n\t},\n\t{\n\t\tid: 107,\n\t\tname: 'Industry Comp',\n\t\tdescription: 'Discount for industry professionals — credentials required',\n\t\tprice: 12,\n\t\tfee: 1.2,\n\t\tquantityAvailable: 25,\n\t\tquantityTotal: 30,\n\t\tminPerOrder: 1,\n\t\tmaxPerOrder: 2,\n\t\tstatus: 'on_sale',\n\t\tisDonation: false,\n\t\tisHidden: false\n\t},\n\t{\n\t\tid: 108,\n\t\tname: 'Group of 6',\n\t\tdescription: 'Reserved booth for six guests with priority seating',\n\t\tprice: 240,\n\t\tfee: 24,\n\t\tquantityAvailable: 5,\n\t\tquantityTotal: 8,\n\t\tminPerOrder: 1,\n\t\tmaxPerOrder: 2,\n\t\tstatus: 'on_sale',\n\t\tisDonation: false,\n\t\tisHidden: false\n\t},\n\t{\n\t\tid: 109,\n\t\tname: 'Standing Room',\n\t\tdescription: 'Standing room only at the back of the venue',\n\t\tprice: 12,\n\t\tfee: 1.2,\n\t\tquantityAvailable: 50,\n\t\tquantityTotal: 60,\n\t\tminPerOrder: 1,\n\t\tmaxPerOrder: 6,\n\t\tstatus: 'on_sale',\n\t\tisDonation: false,\n\t\tisHidden: false\n\t},\n\t{\n\t\tid: 110,\n\t\tname: 'Day-of Door',\n\t\tdescription: 'Day-of pricing for walk-ins — limited availability',\n\t\tprice: 35,\n\t\tfee: 3.5,\n\t\tquantityAvailable: 20,\n\t\tquantityTotal: 25,\n\t\tminPerOrder: 1,\n\t\tmaxPerOrder: 4,\n\t\tstatus: 'on_sale',\n\t\tisDonation: false,\n\t\tisHidden: false\n\t}\n];\n\n// --- Main Event (on sale, multiple ticket types, scarcity on VIP) ---\n// Computed relative to today (showcase use): always lands ~21 days in the\n// future so the BookingWidget renders the on-sale state, not \"Sales ended\".\n// Memory: [[user_mastermind_date_awareness]] — never hardcode showcase dates.\nconst _now = new Date();\nconst _evDate = new Date(_now.getFullYear(), _now.getMonth(), _now.getDate() + 21);\nconst _ymd = `${_evDate.getFullYear()}-${String(_evDate.getMonth() + 1).padStart(2, '0')}-${String(_evDate.getDate()).padStart(2, '0')}`;\n\nexport const mockEvent: EventData = {\n id: 2405,\n title: 'Friday Night Comedy Throwdown',\n slug: 'friday-night-comedy-throwdown',\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.\n\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.\n\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.`,\n\tdate: _ymd,\n\tstartDateTime: `${_ymd}T20:00:00-08:00`,\n\tendDateTime: `${_ymd}T22:00:00-08:00`,\n\tdoorsOpenTime: `${_ymd}T19:00:00-08:00`,\n\ttimezone: 'America/Los_Angeles',\n\timageUrl: '/posters/Friday Night Showdown.jpg', // wide landscape 800×400\n\tvenue: mockVenue,\n\tperformers: mockPerformers,\n\ttickets: mockTickets,\n\tfaqs: mockFaqs,\n\tdisclaimer: '',\n\tstatus: 'on_sale',\n\tisPasswordProtected: false,\n\tisRegistrationEvent: false,\n\ttotalTicketsRemaining: 68,\n\ttotalTicketsCapacity: 265,\n\tdisplayStartTime: true,\n\tdisplayEndTime: true,\n\tdisplayDoorsTime: true\n};\n\n// --- Sold Out Event (no end time shown) ---\nexport const mockSoldOutEvent: EventData = {\n ...mockEvent,\n id: 2406,\n title: 'Saturday Night Special',\n slug: 'saturday-night-special',\n imageUrl: '/posters/the-duel-square.webp', // square 3000×3000\n date: showcaseDateOnly(1),\n startDateTime: showcaseDate(1, 21),\n endDateTime: showcaseDate(1, 23),\n displayEndTime: false,\n status: 'sold_out',\n totalTicketsRemaining: 0,\n tickets: mockTickets.map(t => ({\n ...t,\n quantityAvailable: 0,\n status: 'sold_out' as const,\n })),\n};\n\n// --- Free Event (no doors time shown) ---\nexport const mockFreeEvent: EventData = {\n ...mockEvent,\n id: 2407,\n title: 'Open Mic Night',\n slug: 'open-mic-night',\n imageUrl: '/posters/OpenMic-Twitter.jpg', // wide landscape 2127×1075\n date: showcaseDateOnly(-2),\n startDateTime: showcaseDate(-2, 19),\n endDateTime: showcaseDate(-2, 21),\n displayDoorsTime: false,\n description:\n 'Free open mic night! Sign up at the door. All skill levels welcome.',\n status: 'on_sale',\n tickets: [\n {\n id: 201,\n name: 'Free Entry',\n description: 'Sign up at the door for a 5-minute set',\n price: 0,\n fee: 0,\n quantityAvailable: 40,\n quantityTotal: 50,\n minPerOrder: 1,\n maxPerOrder: 2,\n status: 'on_sale',\n isDonation: false,\n isHidden: false,\n },\n ],\n totalTicketsRemaining: 40,\n totalTicketsCapacity: 50,\n};\n\n// --- Series Event (with occurrences) ---\nexport const mockSeriesEvent: EventData = {\n ...mockEvent,\n id: 2410,\n title: 'Improv Throwdown',\n slug: 'improv-throwdown',\n imageUrl: '/posters/laughlab-tall.webp', // tall portrait 2550×3300\n eventSeriesId: 42,\n description:\n 'Weekly improv comedy show featuring rotating guest performers and audience participation games.',\n seriesOccurrences: [\n // Same-day shows (Fri Feb 20 — 7pm, 8pm, 9:30pm)\n {\n id: 2410,\n slug: 'improv-throwdown-feb-20-7pm',\n startDateTime: showcaseDate(0, 19),\n endDateTime: showcaseDate(0, 20, 30),\n status: 'sold_out',\n ctaText: 'Sold out',\n ctaDisabled: true,\n },\n {\n id: 2414,\n slug: 'improv-throwdown-feb-20-8pm',\n startDateTime: showcaseDate(0, 20),\n endDateTime: showcaseDate(0, 21, 30),\n status: 'on_sale',\n ctaText: 'Get tickets',\n ctaDisabled: false,\n },\n {\n id: 2415,\n slug: 'improv-throwdown-feb-20-930pm',\n startDateTime: showcaseDate(0, 21, 30),\n endDateTime: showcaseDate(0, 23),\n status: 'on_sale',\n ctaText: 'Get tickets',\n ctaDisabled: false,\n },\n // Single show days\n {\n id: 2411,\n slug: 'improv-throwdown-feb-27',\n startDateTime: showcaseDate(7, 20),\n endDateTime: showcaseDate(7, 22),\n status: 'sold_out',\n ctaText: 'Sold out',\n ctaDisabled: true,\n },\n {\n id: 2412,\n slug: 'improv-throwdown-mar-06',\n startDateTime: showcaseDate(14, 20),\n endDateTime: showcaseDate(14, 22),\n status: 'on_sale',\n ctaText: 'Get tickets',\n ctaDisabled: false,\n },\n {\n id: 2413,\n slug: 'improv-throwdown-mar-13',\n startDateTime: showcaseDate(21, 20),\n endDateTime: showcaseDate(21, 22),\n status: 'coming_soon',\n ctaText: 'Coming soon',\n ctaDisabled: true,\n },\n ],\n};\n\n// --- Series Instance (one specific occurrence of the series — regular event page with series link) ---\nexport const mockSeriesInstanceEvent: EventData = {\n ...mockEvent,\n id: 2414,\n title: 'Improv Throwdown',\n slug: 'improv-throwdown-feb-20-8pm',\n imageUrl: '/posters/laughlab-tall.webp',\n eventSeriesId: 42,\n startDateTime: showcaseDate(0, 20),\n endDateTime: showcaseDate(0, 21, 30),\n description:\n 'Weekly improv comedy show featuring rotating guest performers and audience participation games.',\n // No seriesOccurrences — this is a single instance, not the series home\n};\n\n// --- Collection Home (loose grouping of different events with widgets) ---\nexport const mockCollectionEvent: EventData = {\n ...mockEvent,\n id: 3000,\n title: 'February Comedy Festival',\n slug: 'february-comedy-festival',\n imageUrl: '/posters/Friday Night Showdown.jpg',\n description:\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.\",\n collectionId: 7,\n collectionEvents: [\n {\n id: 2401,\n name: 'Friday Night Comedy Throwdown',\n slug: 'friday-night-comedy-throwdown',\n image: '/posters/Friday Night Showdown.jpg',\n startDateTime: showcaseDate(0, 20),\n status: 'on_sale',\n ticketsRemaining: 42,\n ticketsTotal: 200,\n },\n {\n id: 2402,\n name: 'Saturday Night Special',\n slug: 'saturday-night-special',\n image: '/posters/the-duel-square.webp',\n startDateTime: showcaseDate(1, 21),\n status: 'on_sale',\n ticketsRemaining: 8,\n ticketsTotal: 150,\n },\n {\n id: 2403,\n name: 'Stand-Up Comedy Workshop',\n slug: 'standup-comedy-workshop',\n image: '/posters/stand up 101.png',\n startDateTime: showcaseDate(2, 14),\n status: 'on_sale',\n ticketsRemaining: 15,\n ticketsTotal: 30,\n },\n {\n id: 2410,\n name: 'Improv Throwdown',\n slug: 'improv-throwdown',\n image: '/posters/laughlab-tall.webp',\n startDateTime: showcaseDate(7, 20),\n status: 'on_sale',\n ticketsRemaining: 65,\n ticketsTotal: 200,\n },\n {\n id: 2404,\n name: 'Open Mic Night',\n slug: 'open-mic-night',\n image: '/posters/OpenMic-Twitter.jpg',\n startDateTime: showcaseDate(8, 19),\n status: 'on_sale',\n ticketsRemaining: 100,\n ticketsTotal: 100,\n },\n {\n id: 2405,\n name: 'Late Night Comedy Underground',\n slug: 'late-night-comedy-underground',\n image: '/posters/standup-portrait.webp',\n startDateTime: showcaseDate(8, 22),\n status: 'sold_out',\n ticketsRemaining: 0,\n ticketsTotal: 80,\n },\n ],\n};\n\n// --- Registration Event (workshop — no time shown, just date + doors) ---\nexport const mockRegistrationEvent: EventData = {\n ...mockEvent,\n id: 2408,\n title: 'Stand-Up Comedy Workshop',\n slug: 'standup-comedy-workshop',\n imageUrl: '/posters/stand up 101.png', // 16:9 landscape 1920×1080\n description:\n 'Learn the fundamentals of stand-up comedy in this 3-hour intensive workshop. Write, refine, and perform your first 5-minute set.',\n isRegistrationEvent: true,\n displayStartTime: false,\n displayEndTime: false,\n status: 'on_sale',\n tickets: [\n {\n id: 301,\n name: 'Workshop Seat',\n description: 'Includes materials and performance slot',\n price: 75,\n fee: 7.5,\n quantityAvailable: 8,\n quantityTotal: 12,\n minPerOrder: 1,\n maxPerOrder: 1,\n status: 'on_sale',\n isDonation: false,\n isHidden: false,\n },\n ],\n totalTicketsRemaining: 8,\n totalTicketsCapacity: 12,\n};\n\n// --- Donation Event ---\nexport const mockDonationEvent: EventData = {\n ...mockEvent,\n id: 2414,\n title: 'Charity Comedy Benefit',\n slug: 'charity-comedy-benefit',\n imageUrl: '/posters/Friday Night Showdown.jpg',\n description:\n 'All proceeds go to the LA Comedy Relief Fund. Choose your own donation amount or grab a standard ticket.',\n status: 'on_sale',\n tickets: [\n {\n id: 401,\n name: 'Donation',\n description: 'Support the cause — choose your amount',\n price: 0,\n fee: 0,\n quantityAvailable: 200,\n quantityTotal: 200,\n minPerOrder: 1,\n maxPerOrder: 10,\n status: 'on_sale',\n isDonation: true,\n isHidden: false,\n ticketType: 2,\n },\n {\n id: 402,\n name: 'Standard Admission',\n description: 'Includes one drink ticket',\n price: 30,\n fee: 3,\n quantityAvailable: 80,\n quantityTotal: 100,\n minPerOrder: 1,\n maxPerOrder: 6,\n status: 'on_sale',\n isDonation: false,\n isHidden: false,\n },\n ],\n totalTicketsRemaining: 280,\n totalTicketsCapacity: 300,\n};\n\n// --- Mixed Event (ALL ticket states in one event) ---\nexport const mockMixedEvent: EventData = {\n ...mockEvent,\n id: 2415,\n title: 'The Everything Show',\n slug: 'the-everything-show',\n imageUrl: '/posters/the-duel-square.webp',\n description:\n 'A showcase event with every ticket state possible — for testing all edge cases.',\n status: 'on_sale',\n tickets: [\n {\n id: 501,\n name: 'General Admission',\n description: 'Standard seating in the main room',\n price: 25,\n fee: 2.5,\n quantityAvailable: 45,\n quantityTotal: 150,\n minPerOrder: 1,\n maxPerOrder: 8,\n status: 'on_sale',\n isDonation: false,\n isHidden: false,\n },\n {\n id: 502,\n name: 'Basic Entry',\n price: 15,\n fee: 1.5,\n quantityAvailable: 60,\n quantityTotal: 80,\n minPerOrder: 1,\n maxPerOrder: 4,\n status: 'on_sale',\n isDonation: false,\n isHidden: false,\n },\n {\n id: 503,\n name: 'VIP Front Row',\n description: 'Premium seats with complimentary drink',\n price: 75,\n fee: 7.5,\n quantityAvailable: 2,\n quantityTotal: 20,\n minPerOrder: 1,\n maxPerOrder: 4,\n status: 'on_sale',\n isDonation: false,\n isHidden: false,\n },\n {\n id: 504,\n name: 'Early Bird',\n description: 'Limited early bird pricing',\n price: 20,\n fee: 2,\n quantityAvailable: 0,\n quantityTotal: 30,\n minPerOrder: 1,\n maxPerOrder: 4,\n status: 'sold_out',\n isDonation: false,\n isHidden: false,\n },\n {\n id: 505,\n name: 'Late Night Add-On',\n description: 'Access to the after-party at midnight',\n price: 40,\n fee: 4,\n quantityAvailable: 50,\n quantityTotal: 50,\n minPerOrder: 1,\n maxPerOrder: 2,\n status: 'coming_soon',\n salesStartDate: showcaseDate(9, 10),\n isDonation: false,\n isHidden: false,\n },\n {\n id: 506,\n name: 'Weekend Bundle',\n description: 'Includes Saturday + Sunday shows',\n price: 45,\n fee: 4.5,\n quantityAvailable: 0,\n quantityTotal: 25,\n minPerOrder: 1,\n maxPerOrder: 4,\n status: 'sales_ended',\n salesEndDate: showcaseDate(-10, 23, 59),\n isDonation: false,\n isHidden: false,\n },\n {\n id: 507,\n name: 'Donation',\n description: 'Support the performers directly',\n price: 0,\n fee: 0,\n quantityAvailable: 100,\n quantityTotal: 100,\n minPerOrder: 1,\n maxPerOrder: 5,\n status: 'on_sale',\n isDonation: true,\n isHidden: false,\n ticketType: 2,\n },\n {\n id: 508,\n name: 'Secret VIP Lounge',\n description: 'Backstage access with meet & greet',\n price: 150,\n fee: 15,\n quantityAvailable: 10,\n quantityTotal: 10,\n minPerOrder: 1,\n maxPerOrder: 2,\n status: 'on_sale',\n isDonation: false,\n isHidden: true,\n },\n {\n id: 509,\n name: 'Industry Comp',\n description: 'Complimentary ticket for industry professionals',\n price: 0,\n fee: 0,\n quantityAvailable: 20,\n quantityTotal: 20,\n minPerOrder: 1,\n maxPerOrder: 1,\n status: 'on_sale',\n isDonation: false,\n isHidden: true,\n },\n ],\n totalTicketsRemaining: 287,\n totalTicketsCapacity: 485,\n};\n\n// --- Sectioned Event (tickets grouped by section) ---\nexport const mockSectionedEvent: EventData = {\n ...mockEvent,\n id: 2416,\n title: 'Multi-Stage Festival',\n slug: 'multi-stage-festival',\n imageUrl: '/posters/OpenMic-Twitter.jpg',\n description:\n 'Three stages, one incredible night. Choose your zone and enjoy performances across the venue.',\n status: 'on_sale',\n tickets: [\n {\n id: 601,\n name: 'Floor Standing',\n description: 'Standing room on the main floor',\n price: 35,\n fee: 3.5,\n quantityAvailable: 100,\n quantityTotal: 200,\n minPerOrder: 1,\n maxPerOrder: 8,\n status: 'on_sale',\n isDonation: false,\n isHidden: false,\n sectionName: 'Floor',\n },\n {\n id: 602,\n name: 'Floor Reserved',\n description: 'Reserved seat on the main floor',\n price: 50,\n fee: 5,\n quantityAvailable: 30,\n quantityTotal: 80,\n minPerOrder: 1,\n maxPerOrder: 6,\n status: 'on_sale',\n isDonation: false,\n isHidden: false,\n sectionName: 'Floor',\n },\n {\n id: 603,\n name: 'Balcony Standard',\n description: 'Standard balcony seating with great views',\n price: 40,\n fee: 4,\n quantityAvailable: 50,\n quantityTotal: 60,\n minPerOrder: 1,\n maxPerOrder: 6,\n status: 'on_sale',\n isDonation: false,\n isHidden: false,\n sectionName: 'Balcony',\n },\n {\n id: 604,\n name: 'Balcony Premium',\n description: 'Front-row balcony seats',\n price: 60,\n fee: 6,\n quantityAvailable: 5,\n quantityTotal: 20,\n minPerOrder: 1,\n maxPerOrder: 4,\n status: 'on_sale',\n isDonation: false,\n isHidden: false,\n sectionName: 'Balcony',\n },\n {\n id: 605,\n name: 'VIP Lounge Table',\n description:\n 'Private table for 4 with bottle service and backstage access',\n price: 250,\n fee: 25,\n quantityAvailable: 3,\n quantityTotal: 8,\n minPerOrder: 1,\n maxPerOrder: 2,\n status: 'on_sale',\n isDonation: false,\n isHidden: false,\n sectionName: 'VIP Lounge',\n },\n ],\n totalTicketsRemaining: 188,\n totalTicketsCapacity: 368,\n};\n\n// --- Promo Event (hidden tickets for promo reveal testing) ---\nexport const mockPromoEvent: EventData = {\n ...mockEvent,\n id: 2417,\n title: 'Secret Show',\n slug: 'secret-show',\n imageUrl: '/posters/luke-null-tall.webp',\n description:\n 'An intimate comedy experience. Some tickets are only available with a promo code.',\n status: 'on_sale',\n tickets: [\n {\n id: 701,\n name: 'General Admission',\n price: 30,\n fee: 3,\n quantityAvailable: 40,\n quantityTotal: 60,\n minPerOrder: 1,\n maxPerOrder: 6,\n status: 'on_sale',\n isDonation: false,\n isHidden: false,\n },\n {\n id: 702,\n name: 'Premium Seat',\n description: 'Reserved seating in rows 1-5',\n price: 50,\n fee: 5,\n quantityAvailable: 15,\n quantityTotal: 30,\n minPerOrder: 1,\n maxPerOrder: 4,\n status: 'on_sale',\n isDonation: false,\n isHidden: false,\n },\n {\n id: 703,\n name: 'Artist Meet & Greet',\n description:\n 'Backstage pass with photo opportunity — promo code required',\n price: 100,\n fee: 10,\n quantityAvailable: 8,\n quantityTotal: 10,\n minPerOrder: 1,\n maxPerOrder: 2,\n status: 'on_sale',\n isDonation: false,\n isHidden: true,\n },\n {\n id: 704,\n name: 'Industry Comp',\n description: 'Complimentary entry for industry professionals',\n price: 0,\n fee: 0,\n quantityAvailable: 10,\n quantityTotal: 10,\n minPerOrder: 1,\n maxPerOrder: 1,\n status: 'on_sale',\n isDonation: false,\n isHidden: true,\n },\n ],\n totalTicketsRemaining: 73,\n totalTicketsCapacity: 110,\n};\n\n// --- Hidden-Only Event (MIC-1039) — no visible tickets, only hidden remain ---\n// Lands the user on a page where the only purchasable seats are gated behind\n// a promo code. With zero visible tickets the page should suppress the ticket\n// list entirely and render only the PromoCodeInput.\nexport const mockHiddenOnlyEvent: EventData = {\n ...mockEvent,\n id: 2419,\n title: 'Industry Showcase',\n slug: 'industry-showcase',\n description:\n 'A private comedy showcase. Tickets are only available with a promo code.',\n status: 'on_sale',\n tickets: [\n {\n id: 902,\n name: 'Industry Comp',\n description:\n 'Complimentary entry for industry professionals — promo code required',\n price: 0,\n fee: 0,\n quantityAvailable: 15,\n quantityTotal: 20,\n minPerOrder: 1,\n maxPerOrder: 2,\n status: 'on_sale',\n isDonation: false,\n isHidden: true,\n },\n {\n id: 903,\n name: 'Artist Hold',\n description: 'Held for artist guests — promo code required',\n price: 50,\n fee: 5,\n quantityAvailable: 5,\n quantityTotal: 10,\n minPerOrder: 1,\n maxPerOrder: 4,\n status: 'on_sale',\n isDonation: false,\n isHidden: true,\n },\n ],\n totalTicketsRemaining: 0,\n totalTicketsCapacity: 0,\n};\n\n// --- Multi-Stage Event (stage name + age restriction) ---\nexport const mockMultiStageEvent: EventData = {\n ...mockEvent,\n id: 2418,\n title: 'Late Night Comedy Underground',\n slug: 'late-night-comedy-underground',\n imageUrl: '/posters/laughlab-tall.webp',\n description:\n 'The raunchiest, most unfiltered comedy night in LA. Side stage, no holds barred.',\n status: 'on_sale',\n stageName: 'Side Stage',\n ageRestriction: 21,\n displayAgeRestriction: true,\n tickets: [\n {\n id: 801,\n name: 'General Admission',\n price: 20,\n fee: 2,\n quantityAvailable: 25,\n quantityTotal: 40,\n minPerOrder: 1,\n maxPerOrder: 4,\n status: 'on_sale',\n isDonation: false,\n isHidden: false,\n },\n {\n id: 802,\n name: 'VIP Booth',\n description: 'Reserved booth for 2 with drinks included',\n price: 80,\n fee: 8,\n quantityAvailable: 4,\n quantityTotal: 6,\n minPerOrder: 1,\n maxPerOrder: 2,\n status: 'on_sale',\n isDonation: false,\n isHidden: false,\n },\n ],\n totalTicketsRemaining: 29,\n totalTicketsCapacity: 46,\n};\n\n// --- Long Name Event (Laugh Factory-style: all performers in the title) ---\nexport const mockLongNameEvent: EventData = {\n ...mockEvent,\n id: 2420,\n title:\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',\n slug: 'the-friday-night-all-star-comedy-throwdown',\n imageUrl: '/posters/laughlab-tall.webp',\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.\n\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.\n\nTwo-drink minimum. No photography or recording. Arrive early — seating is first come, first served.`,\n ageRestriction: 18,\n displayAgeRestriction: true,\n displayStartTime: true,\n displayEndTime: true,\n displayDoorsTime: true,\n performers: [\n ...mockPerformers,\n {\n id: 4,\n displayName: 'Bobby Lee',\n profileImage:\n 'https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=200&h=200&fit=crop',\n },\n {\n id: 5,\n displayName: 'Andrew Santino',\n profileImage:\n 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=200&h=200&fit=crop',\n },\n {\n id: 6,\n displayName: 'Hasan Minhaj',\n profileImage:\n 'https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?w=200&h=200&fit=crop',\n },\n ],\n};\n\n// --- Wide/Panoramic Image Event (tests min-height behavior) ---\nexport const mockWideImageEvent: EventData = {\n ...mockEvent,\n id: 2421,\n title: 'Sunset Sessions: Rooftop Jazz & Cocktails',\n slug: 'sunset-sessions-rooftop-jazz',\n imageUrl: '/posters/Wide.jpg',\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.\n\nFull bar available with specialty cocktails curated for the evening. Light bites and small plates from our kitchen. Dress code: smart casual.`,\n displayStartTime: true,\n displayEndTime: true,\n displayDoorsTime: true,\n};\n\n// --- Password Protected Event ---\nexport const mockPasswordEvent: EventData = {\n ...mockEvent,\n id: 2409,\n title: 'Secret Comedy Club',\n slug: 'secret-comedy-club',\n imageUrl: '/posters/luke-null-tall.webp', // tall portrait 625×937\n description: 'An exclusive underground comedy experience. Password required.',\n isPasswordProtected: true,\n status: 'on_sale',\n};\n","export type DataVariant =\n\t| 'default'\n\t| 'sold_out'\n\t| 'free'\n\t| 'registration'\n\t| 'series'\n\t| 'series_instance'\n\t| 'collection'\n\t| 'donation'\n\t| 'mixed'\n\t| 'sections'\n\t| 'promo'\n\t| 'multi_stage'\n\t| 'long'\n\t| 'wide';\n\nexport interface ToggleOption {\n\tvalue: string;\n\tlabel: string;\n\tcolor: string;\n}\n\nclass DataToggleStore {\n\tcurrent = $state<string>('default');\n\toptions = $state<ToggleOption[]>([]);\n\tisActive = $state(false);\n}\n\nexport const dataToggleStore = new DataToggleStore();\n"],"names":["showcaseDate","daysFromFriday","hour","minute","now","daysToFriday","base","y","m","d","hh","mm","showcaseDateOnly","mockVenue","getDefaultTimezone","mockPerformers","mockFaqs","mockTickets","_now","_evDate","_ymd","mockEvent","t","mockFreeEvent","mockRegistrationEvent","mockDonationEvent","DataToggleStore","#current","$","#isActive","dataToggleStore"],"mappings":";;AAeA,SAASA,EACPC,GACAC,GACAC,IAAS,GACD;AACR,QAAMC,wBAAU,KAAA,GAEVC,KAAgB,IADVD,EAAI,UAAA,IACgB,KAAK,KAAK,GACpCE,IAAO,IAAI;AAAA,IACf,KAAK,IAAIF,EAAI,eAAA,GAAkBA,EAAI,YAAA,GAAeA,EAAI,WAAA,CAAY;AAAA,EAAA;AAEpE,EAAAE,EAAK,WAAWA,EAAK,WAAA,IAAeD,IAAeJ,CAAc;AACjE,QAAMM,IAAID,EAAK,eAAA,GACTE,IAAI,OAAOF,EAAK,YAAA,IAAgB,CAAC,EAAE,SAAS,GAAG,GAAG,GAClDG,IAAI,OAAOH,EAAK,WAAA,CAAY,EAAE,SAAS,GAAG,GAAG,GAC7CI,IAAK,OAAOR,CAAI,EAAE,SAAS,GAAG,GAAG,GACjCS,IAAK,OAAOR,CAAM,EAAE,SAAS,GAAG,GAAG;AACzC,SAAO,GAAGI,CAAC,IAAIC,CAAC,IAAIC,CAAC,IAAIC,CAAE,IAAIC,CAAE;AACnC;AAEA,SAASC,EAAiBX,GAAgC;AACxD,SAAOD,EAAaC,GAAgB,CAAC,EAAE,MAAM,GAAG,EAAE;AACpD;AAGO,MAAMY,IAAuB;AAAA,EAClC,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,SAAS;AAAA,EACT,UAAUC,EAAA;AAAA,EACV,sBAAsB;AAAA,EACtB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,cAAc;AAChB,GAGaC,IAAkC;AAAA,EAC7C;AAAA,IACE,IAAI;AAAA,IACJ,aAAa;AAAA,IACb,cACE;AAAA,EAAA;AAAA,EAEJ;AAAA,IACE,IAAI;AAAA,IACJ,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A,MACnB,eAAe;AAAA,MACf,aAAa;AAAA,MACb,aAAa;AAAA,MACb,QAAQ;AAAA,MACR,YAAY;AAAA,MACZ,UAAU;AAAA,IAAA;AAAA,EACZ;AAAA,EAEF,uBAAuB;AAAA,EACvB,sBAAsB;AACxB;AAAA,CAGyC;AAAA,EACvC,GAAGA;AAAA,EAQH,UAmEoBrB,EAAa,GAAG,EAAE,GAepBA,EAAa,KAAK,IAAI,EAAE;AAkD5C;AAAA,CAG6C;AAAA,EAC3C,GAAGqB;AAwFL;AAAA,CAGyC;AAAA,EACvC,GAAGA;AAoEL;AAAA,CAM8C;AAAA,EAC5C,GAAGA;AAwCL;AAAA,CAG8C;AAAA,EAC5C,GAAGA;AA0CL;AAAA,CAG4C;AAAA,EAC1C,GAAGA;AAAA,EAgBH,YAAY;AAAA,IACV,GAAGN;AAAA,EAkBH;AAEJ;AAAA,CAG6C;AAAA,EAC3C,GAAGM;AAWL;AAAA,CAG4C;AAAA,EAC1C,GAAGA;AAQL;ACz/BA,MAAMK,EAAgB;AAAA;;;;;;;;;;;;;;;;;;;;;EAAtB,cAAA;AACW,SAAAC,KAAAC,EAAA,MAAe,SAAS,aACxBA,EAAA,MAAAA,EAAA,MAAA,CAAA,CAAA,CAAA,GACC,KAAAC,KAAAD,EAAA,MAAO,EAAK;AAAA,EAAA;AACxB;AAEO,MAAME,IAAkB,IAAIJ,EAAA;"}
@@ -1,8 +1,8 @@
1
1
  import * as e from "svelte/internal/client";
2
- import { aF as ee, j as ce, aN as ue, ac as z, ao as Q, E as fe, m as q } from "./VenueCalendar-DdRkxjxd.js";
2
+ import { aF as ee, j as ce, aN as ue, ac as z, ao as Q, E as fe, m as q } from "./VenueCalendar-tmWZSmhT.js";
3
3
  import { SvelteMap as te } from "svelte/reactivity";
4
4
  import "svelte/internal/disclose-version";
5
- import { T as k } from "./Text-F6D2QvI6.js";
5
+ import { T as k } from "./Text-ZUPglf_o.js";
6
6
  const me = ce("toast.svelte"), se = 2e4, H = new te(), L = "opt-in:";
7
7
  function ae(t, s, a, i) {
8
8
  const n = setTimeout(
@@ -962,4 +962,4 @@ export {
962
962
  Ye as m,
963
963
  h as t
964
964
  };
965
- //# sourceMappingURL=labels-DG5wh_vD.js.map
965
+ //# sourceMappingURL=labels-C7Znep_T.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels-C7Znep_T.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/components/Toast/toast.svelte.js","../src/lib/api/cta.ts","../src/lib/public-calendar-flow/defaults.ts","../src/lib/public-calendar-flow/OrderSummary.svelte","../src/lib/public-calendar-flow/i18n/labels.js"],"sourcesContent":["import { createLogger } from '../../utils/logger.js';\n/**\n * Micdrop Toast System\n * A modern, macOS-style toast notification system built with Svelte 5 runes.\n * Supports both simple toasts and rich notification-style toasts.\n *\n * Features:\n * - Opt-in batching for high-frequency notifications (merge toasts sharing a key)\n * - Desktop notification support (browser API)\n * - Swipe-to-dismiss on mobile\n * - Haptic feedback on toast display (QOL Bible)\n */\nimport { SvelteMap } from 'svelte/reactivity';\nimport { triggerHaptic } from '../../utils/haptic.js';\nconst logger = createLogger('toast.svelte');\n// =============================================================================\n// BATCHING CONFIGURATION\n// =============================================================================\nconst BATCH_WINDOW_MS = 20000; // 20 seconds - default window to aggregate batched toasts\nconst activeBatches = new SvelteMap();\n// Namespace for opt-in (generic) batch keys, kept distinct from any other\n// internal map usage.\nconst GENERIC_BATCH_PREFIX = 'opt-in:';\nfunction registerBatch(mapKey, toastId, amount, windowMs) {\n const timeout = setTimeout(() => {\n activeBatches.delete(mapKey);\n }, windowMs);\n activeBatches.set(mapKey, {\n toastId,\n count: 1,\n total: amount,\n timeout,\n lastUpdate: Date.now(),\n });\n}\nfunction bumpBatch(batch, amount) {\n batch.count++;\n batch.total += amount;\n batch.lastUpdate = Date.now();\n return { count: batch.count, total: batch.total };\n}\n// Apply a merge to the batched toast (MF parity: update-if-present — if the\n// toast was already dismissed, this is bookkeeping-only; no resurrection).\n// Resets the visual timer (createdAt) and reschedules auto-dismiss.\nfunction applyBatchMerge(batch, ctx, update, duration) {\n toasts = toasts.map(t => t.id === batch.toastId\n ? {\n ...t,\n title: update.title ?? t.title,\n description: update.description ?? t.description,\n onClick: update.onClick ?? t.onClick,\n batchCount: ctx.count,\n batchTotal: ctx.total,\n notification: t.notification\n ? {\n ...t.notification,\n batchCount: ctx.count,\n batchTotal: ctx.total,\n message: update.message ?? t.notification.message,\n }\n : t.notification,\n createdAt: Date.now(), // Reset timer visual (MF parity)\n }\n : t);\n if (duration !== Infinity) {\n scheduleRemoval(batch.toastId, duration);\n }\n}\n// =============================================================================\n// DESKTOP NOTIFICATIONS\n// =============================================================================\nlet desktopNotificationsEnabled = $state(false);\nlet desktopNotificationPermission = $state('default');\n// Check initial permission state\nif (typeof window !== 'undefined' && 'Notification' in window) {\n desktopNotificationPermission = Notification.permission;\n desktopNotificationsEnabled = Notification.permission === 'granted';\n}\nasync function requestDesktopPermission() {\n if (typeof window === 'undefined' || !('Notification' in window)) {\n return false;\n }\n const permission = await Notification.requestPermission();\n desktopNotificationPermission = permission;\n desktopNotificationsEnabled = permission === 'granted';\n return desktopNotificationsEnabled;\n}\nlet pushPreferenceChecker = null;\n// Status-to-preference mapping\nconst STATUS_TO_PREFERENCE = {\n // Admin notifications\n 'ticket sold': { category: 'admin', key: 'ticketSales' },\n 'order completed': { category: 'admin', key: 'ticketSales' },\n 'performer confirmed': { category: 'admin', key: 'performerResponses' },\n 'performer declined': { category: 'admin', key: 'performerResponses' },\n 'event sold out': { category: 'admin', key: 'eventSoldOut' },\n 'show sold out': { category: 'admin', key: 'eventSoldOut' },\n 'section sold out': { category: 'admin', key: 'eventSoldOut' },\n 'ticket type sold out': { category: 'admin', key: 'eventSoldOut' },\n 'vip tickets sold out': { category: 'admin', key: 'eventSoldOut' },\n 'event published': { category: 'admin', key: 'eventPublished' },\n // Performer notifications\n 'avails sent': { category: 'performer', key: 'availabilityRequests' },\n 'avails sent to all': { category: 'performer', key: 'availabilityRequests' },\n 'availability request': {\n category: 'performer',\n key: 'availabilityRequests',\n },\n 'performance invitation': {\n category: 'performer',\n key: 'performanceInvitations',\n },\n 'invited to perform': {\n category: 'performer',\n key: 'performanceInvitations',\n },\n};\nfunction setPushPreferenceChecker(checker) {\n pushPreferenceChecker = checker;\n}\n// Shared normalization — trim + lowercase — used by both the legacy\n// notification-toast path and the new opt-in desktopNotification path so the\n// push-preference checker always receives the same casing the STATUS_TO_PREFERENCE\n// keys were authored in. Without this, a display-cased status like 'Ticket Sold'\n// would miss the 'ticket sold' key and bypass a muted category.\nfunction normalizeStatus(status) {\n return status.trim().toLowerCase();\n}\nfunction isPushEnabledForStatus(status) {\n // If no preference checker is set, allow all (backwards compatibility)\n if (!pushPreferenceChecker)\n return true;\n return pushPreferenceChecker(status);\n}\nfunction showDesktopNotification(title, options) {\n if (!desktopNotificationsEnabled)\n return;\n // Normalize status before the preference check so both the legacy\n // notification-toast path and the opt-in simple-toast path see the same\n // lowercase form the push-preference checker's keys are authored in.\n if (options?.status && !isPushEnabledForStatus(normalizeStatus(options.status))) {\n return; // User has disabled push for this category\n }\n try {\n new Notification(title, {\n body: options?.body,\n icon: options?.icon || '/favicon.png',\n badge: '/favicon.png',\n silent: false,\n });\n }\n catch (e) {\n // Desktop notifications may fail in some contexts (e.g., service workers)\n logger.warn('Desktop notification failed:', e);\n }\n}\n// Fire the OPT-IN desktop notification for a simple toast (creation or batch\n// merge). No-op unless the caller passed `desktopNotification` — notification\n// toasts keep their automatic legacy behavior elsewhere.\nfunction fireDesktopNotificationOption(title, options, update) {\n const dn = options.desktopNotification;\n if (!dn)\n return;\n const cfg = dn === true ? {} : dn;\n showDesktopNotification(cfg.title ?? update?.title ?? title, {\n body: cfg.body ?? update?.description ?? options.description,\n icon: cfg.icon,\n status: cfg.status,\n });\n}\n// Default durations by type (ms).\n// Decided feel (premium brief 02-B): success/info ~4s with pause-on-hover;\n// warning ~5s; ERRORS PERSIST until dismissed (manual/click dismiss) so a\n// failure can't scroll away before it's read. loading is also persistent.\nconst DEFAULT_DURATIONS = {\n success: 4000,\n error: Infinity, // persist until dismissed (was 6000ms auto-dismiss)\n warning: 5000,\n info: 4000,\n loading: Infinity,\n notification: 6000,\n};\n// Maximum number of toasts before oldest are auto-dismissed\nconst MAX_TOASTS = 5;\n// Toast store using Svelte 5 runes\nlet toasts = $state([]);\nconst timers = new SvelteMap();\nfunction generateId() {\n return `toast-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`;\n}\n// Map toast types to haptic feedback styles\nconst TOAST_HAPTIC_STYLES = {\n success: 'success',\n error: 'error',\n warning: 'warning',\n info: 'light',\n loading: null, // No haptic for loading states\n notification: 'light',\n};\n// ===========================================================================\n// ARIA-LIVE ANNOUNCEMENTS (brief 02-C)\n// ===========================================================================\n// Two SEPARATE, persistent live regions — one polite, one assertive — instead\n// of one shared region whose politeness is mutated per-announcement. A shared\n// region races: an error (assertive) at t=0 followed by a success (polite) at\n// t=50ms would flip the region to polite before the error text lands. Separate\n// regions let each politeness write immediately and independently.\nconst LIVE_REGION_IDS = {\n polite: 'sc-toast-live-polite',\n assertive: 'sc-toast-live-assertive',\n};\nfunction getToastLiveRegion(politeness) {\n const id = LIVE_REGION_IDS[politeness];\n let region = document.getElementById(id);\n if (region)\n return region;\n region = document.createElement('div');\n region.id = id;\n region.setAttribute('role', politeness === 'assertive' ? 'alert' : 'status');\n region.setAttribute('aria-live', politeness);\n region.setAttribute('aria-atomic', 'true');\n region.className = 'sr-only';\n Object.assign(region.style, {\n position: 'absolute',\n width: '1px',\n height: '1px',\n padding: '0',\n margin: '-1px',\n overflow: 'hidden',\n clip: 'rect(0, 0, 0, 0)',\n whiteSpace: 'nowrap',\n border: '0',\n });\n document.body.appendChild(region);\n return region;\n}\nfunction announceToMatchingRegion(politeness, message) {\n if (typeof document === 'undefined' || !message)\n return;\n const region = getToastLiveRegion(politeness);\n // Clear then set on the next frame so repeated identical messages still fire.\n region.textContent = '';\n setTimeout(() => {\n region.textContent = message;\n }, 100);\n}\n// Announce a toast to the politeness-matched live region (brief 02-C).\n// Errors interrupt (assertive); everything else is polite.\nfunction announceToast(type, title, description) {\n const message = description ? `${title}. ${description}` : title;\n announceToMatchingRegion(type === 'error' ? 'assertive' : 'polite', message);\n}\nfunction addToast(type, title, options = {}) {\n const duration = options.duration ?? DEFAULT_DURATIONS[type];\n // Opt-in generic batching: merge into an active batch instead of stacking.\n // MF-parity merge semantics: no new announcement, no haptic, timer reset.\n if (options.batch) {\n const mapKey = GENERIC_BATCH_PREFIX + options.batch.key;\n const existingBatch = activeBatches.get(mapKey);\n if (existingBatch) {\n const ctx = bumpBatch(existingBatch, options.batch.amount ?? 1);\n const update = options.batch.render?.(ctx) ?? {};\n applyBatchMerge(existingBatch, ctx, update, duration);\n fireDesktopNotificationOption(title, options, update);\n return existingBatch.toastId;\n }\n }\n const id = generateId();\n // A PERSISTENT ERROR (brief 02-B made errors duration:Infinity) MUST keep a\n // dismiss affordance, or a failure could never be closed. Force `dismissible`\n // on only for that case — never for loading / programmatic Infinity toasts,\n // which intentionally close from code (dismissible:false stays honored there).\n const isPersistentError = type === 'error' && duration === Infinity;\n const dismissible = isPersistentError ? true : (options.dismissible ?? true);\n const newToast = {\n id,\n type,\n title,\n description: options.description,\n duration,\n dismissible,\n onClick: options.onClick,\n action: options.action,\n createdAt: Date.now(),\n ...(options.batch\n ? { batchCount: 1, batchTotal: options.batch.amount ?? 1 }\n : {}),\n };\n // Add to beginning so newest appears at top\n toasts = [newToast, ...toasts];\n // Announce to screen readers via the politeness-matched live region\n // (brief 02-C): errors are assertive (interrupt), everything else is polite.\n announceToast(type, title, options.description);\n // Trigger haptic feedback based on toast type (QOL Bible)\n const hapticStyle = TOAST_HAPTIC_STYLES[type];\n if (hapticStyle) {\n triggerHaptic(hapticStyle);\n }\n // Set auto-dismiss timer if not infinite\n if (duration !== Infinity) {\n scheduleRemoval(id, duration);\n }\n // Opt-in batching: open the (non-sliding) batch window for this key.\n if (options.batch) {\n registerBatch(GENERIC_BATCH_PREFIX + options.batch.key, id, options.batch.amount ?? 1, options.batch.window ?? BATCH_WINDOW_MS);\n }\n // Opt-in desktop notification (simple toasts never fired these before).\n fireDesktopNotificationOption(title, options);\n // Trim overflow — keep only MAX_TOASTS\n if (toasts.length > MAX_TOASTS) {\n const overflow = toasts.slice(MAX_TOASTS);\n for (const t of overflow) {\n const timer = timers.get(t.id);\n if (timer) {\n clearTimeout(timer);\n timers.delete(t.id);\n }\n }\n toasts = toasts.slice(0, MAX_TOASTS);\n }\n return id;\n}\nfunction addNotificationToast(options) {\n const normalizedStatus = normalizeStatus(options.status || '');\n // Batching is purely opt-in: an explicit `batch` object merges toasts\n // sharing the caller's key; `batch: false`/undefined disables batching.\n const genericBatch = typeof options.batch === 'object' && options.batch !== null\n ? options.batch\n : undefined;\n // Generic opt-in batching: merge into an active batch under the caller's key.\n if (genericBatch) {\n const mapKey = GENERIC_BATCH_PREFIX + genericBatch.key;\n const existingBatch = activeBatches.get(mapKey);\n if (existingBatch) {\n const ctx = bumpBatch(existingBatch, genericBatch.amount ?? 1);\n const update = genericBatch.render?.(ctx) ?? {};\n applyBatchMerge(existingBatch, ctx, update, options.duration ?? DEFAULT_DURATIONS.notification);\n // Notification toasts fire desktop notifications automatically (legacy\n // behavior); on merge, prefer the batch-updated body.\n showDesktopNotification(options.event, {\n body: update.desktopBody ??\n update.message ??\n options.message ??\n options.status,\n icon: options.avatar,\n status: normalizedStatus,\n });\n return existingBatch.toastId;\n }\n }\n // Create new toast (either not batched, or first in a new batch)\n const id = generateId();\n const duration = options.duration ?? DEFAULT_DURATIONS.notification;\n const newToast = {\n id,\n type: 'notification',\n notification: {\n name: options.name,\n displayName: options.displayName,\n event: options.event,\n status: options.status,\n avatar: options.avatar,\n message: options.message,\n performerMessage: options.performerMessage,\n eventId: options.eventId,\n batchCount: genericBatch ? 1 : undefined,\n batchTotal: genericBatch ? (genericBatch.amount ?? 1) : undefined,\n },\n duration,\n dismissible: options.dismissible ?? true,\n onClick: options.onClick,\n createdAt: Date.now(),\n ...(genericBatch\n ? { batchCount: 1, batchTotal: genericBatch.amount ?? 1 }\n : {}),\n };\n toasts = [newToast, ...toasts];\n // Announce notification toasts politely (brief 02-C).\n announceToMatchingRegion('polite', [options.name || options.event, options.status, options.message]\n .filter(Boolean)\n .join('. '));\n // Trigger haptic feedback for notification toasts\n triggerHaptic('light');\n if (duration !== Infinity) {\n scheduleRemoval(id, duration);\n }\n // Opt-in batching: open the (non-sliding) batch window for this key.\n if (genericBatch) {\n registerBatch(GENERIC_BATCH_PREFIX + genericBatch.key, id, genericBatch.amount ?? 1, genericBatch.window ?? BATCH_WINDOW_MS);\n }\n // Show desktop notification\n const desktopTitle = options.name || options.event;\n const desktopBody = options.name\n ? `${options.status} · ${options.event}`\n : options.message || options.status;\n showDesktopNotification(desktopTitle, {\n body: desktopBody,\n icon: options.avatar,\n status: normalizedStatus,\n });\n // Trim overflow — keep only MAX_TOASTS\n if (toasts.length > MAX_TOASTS) {\n const overflow = toasts.slice(MAX_TOASTS);\n for (const t of overflow) {\n const timer = timers.get(t.id);\n if (timer) {\n clearTimeout(timer);\n timers.delete(t.id);\n }\n }\n toasts = toasts.slice(0, MAX_TOASTS);\n }\n return id;\n}\nfunction scheduleRemoval(id, delay) {\n const existingTimer = timers.get(id);\n if (existingTimer) {\n clearTimeout(existingTimer);\n }\n const timer = setTimeout(() => {\n dismiss(id);\n }, delay);\n timers.set(id, timer);\n}\nfunction dismiss(id) {\n const timer = timers.get(id);\n if (timer) {\n clearTimeout(timer);\n timers.delete(id);\n }\n toasts = toasts.filter(t => t.id !== id);\n}\nfunction dismissAll() {\n timers.forEach(timer => clearTimeout(timer));\n timers.clear();\n toasts = [];\n}\nfunction pause(id) {\n const toast = toasts.find(t => t.id === id);\n if (!toast || toast.duration === Infinity)\n return;\n const timer = timers.get(id);\n if (timer) {\n clearTimeout(timer);\n timers.delete(id);\n }\n const elapsed = Date.now() - toast.createdAt;\n const remaining = Math.max(0, toast.duration - elapsed);\n toasts = toasts.map(t => t.id === id ? { ...t, pausedAt: Date.now(), remainingTime: remaining } : t);\n}\nfunction resume(id) {\n const foundToast = toasts.find(t => t.id === id);\n if (!foundToast || !foundToast.pausedAt || foundToast.duration === Infinity)\n return;\n const remaining = foundToast.remainingTime ?? foundToast.duration;\n toasts = toasts.map(t => t.id === id\n ? {\n ...t,\n pausedAt: undefined,\n remainingTime: undefined,\n createdAt: Date.now() - (foundToast.duration - remaining),\n }\n : t);\n if (remaining > 0) {\n scheduleRemoval(id, remaining);\n }\n else {\n dismiss(id);\n }\n}\n// Main toast function and methods\nfunction toast(title, options) {\n return addToast('info', title, options);\n}\ntoast.success = (title, options) => addToast('success', title, options);\ntoast.error = (title, options) => addToast('error', title, options);\ntoast.warning = (title, options) => addToast('warning', title, options);\ntoast.info = (title, options) => addToast('info', title, options);\ntoast.loading = (title, options) => addToast('loading', title, { ...options, duration: Infinity });\ntoast.notification = (options) => addNotificationToast(options);\ntoast.dismiss = dismiss;\ntoast.dismissAll = dismissAll;\ntoast.pause = pause;\ntoast.resume = resume;\n// Desktop notification controls\ntoast.requestDesktopPermission = requestDesktopPermission;\ntoast.getDesktopPermission = () => desktopNotificationPermission;\ntoast.isDesktopEnabled = () => desktopNotificationsEnabled;\ntoast.setPushPreferenceChecker = setPushPreferenceChecker;\ntoast.STATUS_TO_PREFERENCE = STATUS_TO_PREFERENCE;\n// Composable: fire a desktop notification WITHOUT creating a toast (no-op\n// unless permission is granted; respects the push-preference checker when a\n// status is supplied). Lets app wrappers compose their own notify flows.\ntoast.desktopNotify = (title, options) => showDesktopNotification(title, options);\ntoast.promise = async (promise, options) => {\n const id = toast.loading(options.loading);\n try {\n const result = await promise;\n dismiss(id);\n toast.success(options.success);\n return result;\n }\n catch (err) {\n dismiss(id);\n toast.error(options.error);\n throw err;\n }\n};\n// Getter for reactive access to toasts\nexport function getToasts() {\n return toasts;\n}\nexport { toast };\n","/**\n * CTA state computation.\n *\n * Pure function (no I/O) — derives the buy-button state from an event and\n * its ticket list. Lives in `api/` because it is the canonical, single\n * source of truth that replaces the duplicate implementations previously\n * scattered across utils/api.js, core/api-client.js, and a few components.\n */\n\n// Import from the specific subpath (not the bare entry) so the api/\n// bundle doesn't pull in the entire SC component graph (Accordion etc.)\n// and break `npm run build:api`.\nimport {\n formatDateRaw,\n formatTime,\n} from '@getmicdrop/svelte-components/utils/formatters';\n// Hidden-ticket predicate from the `/transforms` leaf subpath (no component\n// graph, so `npm run build:api` stays clean). SC's copy was pinned FROM this\n// body (dedup #392) and additionally honours the backend-resolved\n// `effectiveSales*` window for relative-offset tickets (#388). Imported (not\n// just re-exported) so it stays in local scope for `computeCtaState` below.\nimport { isHiddenTicketPurchasable } from '@getmicdrop/svelte-components/transforms';\n\nexport interface CtaStateOptions {\n cancelled?: boolean;\n isRegistration?: boolean;\n waitlistEnabled?: boolean;\n}\n\nexport interface CtaState {\n text: string;\n disabled: boolean;\n reason:\n | 'cancelled'\n | 'event_past'\n | 'no_tickets'\n | 'available'\n | 'coming_soon'\n | 'sold_out_waitlist'\n | 'sold_out'\n | 'sales_ended'\n | 'hidden_only';\n}\n\ninterface CtaEvent {\n startDateTime?: string | null;\n endDateTime?: string | null;\n hasPurchasableHiddenTickets?: boolean;\n}\n\ninterface CtaTicket {\n salesChannel?: number;\n salesBegin?: string | null;\n salesStart?: string | null;\n saleBegin?: string | null;\n onSaleStart?: string | null;\n salesEnd?: string | null;\n saleEnd?: string | null;\n onSaleEnd?: string | null;\n remainingCapacity?: number | null;\n quantityRemaining?: number | null;\n quantity?: number | null;\n soldOut?: boolean;\n isHidden?: boolean;\n visibility?: number;\n}\n\n// A hidden ticket (visibility>=2 or isHidden) that's still on sale drives the\n// \"Sales ended\" / \"Sold out\" / \"No tickets\" → \"Get tickets\" override. The user\n// just needs the promo code to see it. Re-exported from the SC canonical so\n// existing consumers (cta.test.ts, computeCtaState) keep their import path while\n// the single-source body lives in SC (dedup #392).\nexport { isHiddenTicketPurchasable };\n\nexport function computeCtaState(\n event: CtaEvent,\n tickets: CtaTicket[] | undefined,\n options: CtaStateOptions = {}\n): CtaState {\n const {\n cancelled = false,\n isRegistration = false,\n waitlistEnabled = false,\n } = options;\n const now = new Date();\n\n if (cancelled)\n return { text: 'Cancelled', disabled: true, reason: 'cancelled' };\n\n const eventEnd = event.endDateTime || event.startDateTime;\n if (eventEnd && new Date(eventEnd) < now) {\n return { text: 'Sales ended', disabled: true, reason: 'event_past' };\n }\n\n const hiddenAvailable =\n event?.hasPurchasableHiddenTickets === true ||\n (Array.isArray(tickets) && tickets.some(isHiddenTicketPurchasable));\n\n const publicTickets = (tickets || []).filter(\n t =>\n t.salesChannel !== 2 &&\n !t.isHidden &&\n !(typeof t.visibility === 'number' && t.visibility >= 2)\n );\n if (publicTickets.length === 0) {\n if (hiddenAvailable) {\n return {\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\n disabled: false,\n reason: 'hidden_only',\n };\n }\n return {\n text: 'No tickets available',\n disabled: true,\n reason: 'no_tickets',\n };\n }\n\n let hasPurchasable = false;\n let allSoldOut = true;\n let allComingSoon = true;\n let earliestSalesStart: Date | null = null;\n\n for (const ticket of publicTickets) {\n const salesBegin =\n ticket.salesBegin ||\n ticket.salesStart ||\n ticket.saleBegin ||\n ticket.onSaleStart;\n const salesEnd = ticket.salesEnd || ticket.saleEnd || ticket.onSaleEnd;\n const remaining =\n ticket.remainingCapacity ?? ticket.quantityRemaining ?? ticket.quantity;\n const isSoldOut =\n ticket.soldOut ||\n (remaining !== null && remaining !== undefined && remaining <= 0);\n\n const isScheduled = salesBegin ? new Date(salesBegin) > now : false;\n const hasSalesEnded = salesEnd ? new Date(salesEnd) < now : false;\n const isPurchasable = !isSoldOut && !isScheduled && !hasSalesEnded;\n\n if (isPurchasable) hasPurchasable = true;\n if (!isSoldOut) allSoldOut = false;\n if (!isScheduled) allComingSoon = false;\n\n if (isScheduled && salesBegin && !isSoldOut && !hasSalesEnded) {\n const startDate = new Date(salesBegin);\n if (!earliestSalesStart || startDate < earliestSalesStart) {\n earliestSalesStart = startDate;\n }\n }\n }\n\n if (hasPurchasable) {\n return {\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\n disabled: false,\n reason: 'available',\n };\n }\n\n if (allComingSoon && earliestSalesStart) {\n if (hiddenAvailable) {\n return {\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\n disabled: false,\n reason: 'hidden_only',\n };\n }\n const diffMs = earliestSalesStart.getTime() - now.getTime();\n const diffHours = diffMs / (1000 * 60 * 60);\n const diffDays = diffMs / (1000 * 60 * 60 * 24);\n let dateText: string;\n if (diffHours < 24) {\n dateText = formatTime(earliestSalesStart, { hour12: true }, 'en-US');\n } else if (diffDays <= 7) {\n dateText = formatDateRaw(\n earliestSalesStart,\n { weekday: 'short', hour: 'numeric', minute: '2-digit', hour12: true },\n 'en-US'\n );\n } else {\n const d = formatDateRaw(\n earliestSalesStart,\n { month: 'short', day: 'numeric' },\n 'en-US'\n );\n const t = formatTime(earliestSalesStart, { hour12: true }, 'en-US');\n dateText = `${d} ${t}`;\n }\n return {\n text: `On sale ${dateText}`,\n disabled: true,\n reason: 'coming_soon',\n };\n }\n\n if (allSoldOut) {\n if (hiddenAvailable) {\n return {\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\n disabled: false,\n reason: 'hidden_only',\n };\n }\n if (waitlistEnabled) {\n return {\n text: 'Join Waitlist',\n disabled: false,\n reason: 'sold_out_waitlist',\n };\n }\n return { text: 'Sold out', disabled: true, reason: 'sold_out' };\n }\n\n if (hiddenAvailable) {\n return {\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\n disabled: false,\n reason: 'hidden_only',\n };\n }\n\n return { text: 'Sales ended', disabled: true, reason: 'sales_ended' };\n}\n","// @currency-escape: feeCents / 100 in calculateServiceFee is arithmetic,\n// not display. Produces a dollar-magnitude number used in the fee formula\n// `price * (feePercentage / 100) + feeCents / 100`. Per Atlas\n// utility-currency convergence record; the no-handrolled-currency\n// ESLint rule's divideByHundred detector treats variable-name `Cents`\n// as drift but here it's real math.\n\n// Premium Ticket Experience — Constants & Defaults\n// Used by all design variants. DO NOT MODIFY per-variant.\n\n// @raw-intl-datetimeformat-escape: formatSmartSalesDate is a date-formatter\n// implementation (smart relative-date thresholds → \"on Friday at 8 PM\" / \"on Mar 15\").\n// The weekday-long (\"Friday\") and month-short+day (\"Mar 15\") fragments are interpolated\n// into smart-threshold strings; SC formatDate/DATE_FORMATS has no preset that emits a\n// bare weekday or a bare month+day, so it cannot reproduce these byte-identical fragments.\n// This file is the canonical formatter module for public-calendar-flow (it wraps + re-exports\n// scFormatDate/scFormatTime), not a call site.\n\nimport type {\n EventData,\n TicketTypeData,\n ScarcityLevel,\n CtaConfig,\n PromoCodeState,\n} from './types';\nimport { computeCtaState } from '$lib/api';\nimport type { Cents } from '@getmicdrop/svelte-components';\nimport {\n formatTime as scFormatTime,\n roundCurrency,\n} from '@getmicdrop/svelte-components';\nimport {\n formatFullDate,\n formatFullDateCompact,\n formatEventTime,\n formatTimeRange,\n formatDoorsTime,\n formatSalesDate,\n formatBrowseDate,\n formatEventDate,\n formatCleanTimeRange,\n getDateParts,\n} from '$lib/utils/datetime.js';\n\n// --- Re-export production date/time formatters (timezone-aware) ---\nexport {\n formatFullDate,\n formatFullDateCompact,\n formatEventTime,\n formatTimeRange,\n formatDoorsTime,\n formatSalesDate,\n formatBrowseDate,\n formatEventDate,\n formatCleanTimeRange,\n getDateParts,\n};\n\n// --- Scarcity Badge Rules ---\nexport const SCARCITY_THRESHOLDS = {\n SOLD_OUT: 0,\n URGENT: 0.1, // ≤10% remaining → urgent (\"Only X left\")\n LOW: 0.2, // ≤20% remaining (80%+ sold) → \"Selling fast\"\n MAX_EXACT_COUNT: 20, // Don't show exact count above 20\n} as const;\n\nexport function getScarcityLevel(\n remaining: number,\n total: number\n): ScarcityLevel {\n if (total === 0) return 'none';\n if (remaining <= 0) return 'sold_out';\n const pct = remaining / total;\n if (pct <= SCARCITY_THRESHOLDS.URGENT) return 'urgent';\n if (pct <= SCARCITY_THRESHOLDS.LOW) return 'low';\n return 'none';\n}\n\nexport function getScarcityText(\n level: ScarcityLevel,\n remaining: number,\n context: 'browse' | 'event' | 'ticket',\n options?: { isFree?: boolean }\n): string | null {\n if (level === 'none') return null;\n if (level === 'sold_out') return 'Sold out';\n // No scarcity badges on free events/tickets — nothing to lose = no urgency\n if (options?.isFree) return null;\n if (\n level === 'urgent' &&\n context !== 'browse' &&\n remaining <= SCARCITY_THRESHOLDS.MAX_EXACT_COUNT\n ) {\n return `Only ${remaining} left`;\n }\n if (level === 'low' || level === 'urgent') return 'Selling fast';\n return null;\n}\n\n// --- CTA Rules ---\n// Delegates to production computeCtaState() but adapts our EventData shape.\n// Components keep calling getCtaConfig(event) — internal logic is production-aligned.\nexport function getCtaConfig(event: EventData): CtaConfig {\n // Map our EventData tickets to the shape computeCtaState expects.\n // `isHidden` flows through so computeCtaState can apply the hidden-only\n // \"Sales ended\" → \"Get tickets\" override (MIC-1039).\n const apiTickets = event.tickets.map(t => ({\n salesBegin: t.salesStartDate,\n salesEnd: t.salesEndDate,\n remainingCapacity: t.quantityAvailable,\n totalCapacity: t.quantityTotal,\n soldOut: t.status === 'sold_out',\n salesChannel: 1, // All our tickets are online (not \"at the door only\")\n isHidden: t.isHidden,\n }));\n\n // Handle statuses that computeCtaState doesn't compute from tickets\n if (event.status === 'cancelled') {\n return {\n text: 'Cancelled',\n disabled: true,\n reason: 'This event has been cancelled',\n };\n }\n if (event.status === 'past') {\n return {\n text: 'Event ended',\n disabled: true,\n reason: 'This event has ended',\n };\n }\n\n const result = computeCtaState(\n { startDateTime: event.startDateTime, endDateTime: event.endDateTime },\n apiTickets,\n {\n cancelled: false,\n isRegistration: event.isRegistrationEvent,\n waitlistEnabled: false,\n }\n );\n\n return {\n text: result.text,\n disabled: result.disabled,\n reason: result.disabled ? toFriendlyReason(result.reason) : undefined,\n };\n}\n\n/**\n * computeCtaState() returns machine-enum reasons ('event_past', 'sold_out',\n * 'coming_soon', etc) intended for branching, not display. The BookingWidget\n * and MobileCta render `reason` directly as supplementary copy below the\n * button text — which leaks raw enum strings to users.\n *\n * Map each enum to a friendly sentence, OR return undefined when the button\n * `text` already says everything (\"Sales ended\" / \"Sold out\" — no need for\n * a second line repeating it).\n */\nfunction toFriendlyReason(reason: string | undefined): string | undefined {\n if (!reason) return undefined;\n switch (reason) {\n case 'cancelled':\n return 'This event has been cancelled.';\n case 'event_past':\n return 'This event has already happened.';\n case 'no_tickets':\n return 'There are no tickets configured for this event.';\n case 'coming_soon':\n return undefined; // text already shows \"On sale <date>\"\n case 'sold_out':\n return undefined; // text already shows \"Sold out\"\n case 'sold_out_waitlist':\n return 'All tickets are claimed. Join the waitlist to be notified.';\n case 'sales_ended':\n return undefined; // text already shows \"Sales ended\"\n default:\n return undefined; // unknown enum — never leak it\n }\n}\n\n// --- Price Display Rules (from DECISIONS.md #1) ---\nexport function getPriceDisplay(event: EventData): string | null {\n const visibleTickets = event.tickets.filter(\n t => t.status === 'on_sale' && !t.isHidden\n );\n if (visibleTickets.length === 0) return null;\n\n const hasDonation = visibleTickets.some(\n t => t.isDonation || t.ticketType === 2\n );\n const paidTickets = visibleTickets.filter(\n t => !t.isDonation && t.ticketType !== 2\n );\n const hasFree = paidTickets.some(t => t.price === 0);\n const pricedTickets = paidTickets.filter(t => t.price > 0);\n\n // Only donation tickets → \"Donation\"\n if (pricedTickets.length === 0 && !hasFree && hasDonation) return 'Donation';\n\n // Only free tickets (no paid, no donation) → null (BookingWidget shows \"Free\" via isFreeEvent)\n if (pricedTickets.length === 0 && hasFree) return null;\n\n const minPrice = Math.min(...pricedTickets.map(t => t.price));\n\n // Free + paid → \"Free\" (free dominates the display)\n if (hasFree) return null;\n\n // Donation + paid → \"From $X\" (donation is an alternative option)\n if (hasDonation) return `From $${minPrice}`;\n\n // Single paid ticket type → \"$X\"\n if (pricedTickets.length === 1) return `$${minPrice}`;\n\n // Multiple paid ticket types → \"From $X\"\n return `From $${minPrice}`;\n}\n\n// --- Fee Calculation ---\nexport function calculateFee(\n price: number,\n feePercentage: number,\n feeCents: Cents\n): number {\n return roundCurrency(price * (feePercentage / 100) + feeCents / 100);\n}\n\nexport function calculateTax(amount: number, taxPercentage: number): number {\n return roundCurrency(amount * (taxPercentage / 100));\n}\n\n// --- Date Formatting ---\n// PREFERRED: Use the timezone-aware production formatters re-exported above:\n// formatBrowseDate(iso, tz) → \"Fri, Feb 20\"\n// formatFullDateCompact(iso, tz) → \"Friday, February 20\"\n// formatEventTime(iso, tz) → \"8:00 PM\"\n// formatTimeRange(start, end, tz) → \"8:00 PM - 10:00 PM\"\n// formatDoorsTime(doors, tz) → \"7:00 PM\"\n\n// --- Animation Durations ---\nexport const DURATION = {\n instant: 100,\n micro: 150,\n fast: 200,\n normal: 300,\n slow: 400,\n elaborate: 600,\n} as const;\n\n// --- Smart Sales Date Formatting ---\n// Ported from production TicketBlock.svelte — smart thresholds for human-readable dates\nexport function formatSmartSalesDate(dateStr: string): string {\n if (!dateStr) return '';\n const date = new Date(dateStr);\n const now = new Date();\n const diffMs = date.getTime() - now.getTime();\n const diffMinutes = Math.round(diffMs / (1000 * 60));\n const diffHours = diffMs / (1000 * 60 * 60);\n\n // < 1 hour: \"in X minutes\"\n if (diffMinutes > 0 && diffMinutes < 60) {\n const mins = Math.max(1, diffMinutes);\n return `in ${mins} minute${mins !== 1 ? 's' : ''}`;\n }\n\n // 1-24 hours: \"in X hours\"\n if (diffHours > 0 && diffHours < 24) {\n const hours = Math.max(1, Math.round(diffHours));\n return `in ${hours} hour${hours !== 1 ? 's' : ''}`;\n }\n\n // Tomorrow: \"tomorrow at X PM\"\n const tomorrow = new Date(now);\n tomorrow.setDate(tomorrow.getDate() + 1);\n if (date.toDateString() === tomorrow.toDateString()) {\n const timeStr = scFormatTime(\n date,\n { hour: 'numeric', minute: '2-digit' },\n 'en-US'\n );\n return `tomorrow at ${timeStr}`;\n }\n\n // 2-7 days: \"on Friday at X PM\"\n const diffDays = diffMs / (1000 * 60 * 60 * 24);\n if (diffDays > 0 && diffDays <= 7) {\n // @datetime-escape: composite string \"on {dayname} at {time}\" in formatSmartSalesDate — no <Time> preset, function returns a JS string\n const dayName = new Intl.DateTimeFormat('en-US', {\n weekday: 'long',\n }).format(date);\n const timeStr = scFormatTime(\n date,\n { hour: 'numeric', minute: '2-digit' },\n 'en-US'\n );\n return `on ${dayName} at ${timeStr}`;\n }\n\n // > 7 days: \"on Mar 15\"\n // @datetime-escape: composite string \"on {date}\" in formatSmartSalesDate — no <Time> preset, function returns a JS string\n const dateFormatted = new Intl.DateTimeFormat('en-US', {\n month: 'short',\n day: 'numeric',\n }).format(date);\n return `on ${dateFormatted}`;\n}\n\n// --- Promo Code State Factory ---\nexport function createDefaultPromoState(): PromoCodeState {\n return {\n code: '',\n isApplied: false,\n isValidating: false,\n error: '',\n hint: '',\n discountAmount: 0,\n discountType: '',\n discountTicketIds: [],\n revealHiddenTickets: false,\n revealTicketIds: [],\n };\n}\n\n// --- Ticket helpers ---\nexport function getAvailableTickets(\n tickets: TicketTypeData[]\n): TicketTypeData[] {\n return tickets.filter(t => !t.isHidden && t.status === 'on_sale');\n}\n","<!-- @style-escape: widget-intentional. -->\n<script lang=\"ts\">\n\timport type { USD } from '@getmicdrop/svelte-components';\n\timport { Text, formatCurrency } from '@getmicdrop/svelte-components';\n\timport type { OrderTotals } from '$lib/public-calendar-flow/types';\n\timport { DURATION } from '$lib/public-calendar-flow/defaults';\n\n\tinterface Props {\n\t\torderTotals: OrderTotals;\n\t\tlabels?: Record<string, string>;\n\t\t/**\n\t\t * Which section to render.\n\t\t * - `full` (default): ticket lines + totals stacked together.\n\t\t * - `lines` : ticket-line items only. Use when the parent scrolls\n\t\t * this section in a flex column.\n\t\t * - `totals` : subtotal/fees/taxes/promo/total only. Use in a fixed\n\t\t * footer alongside the action button.\n\t\t *\n\t\t * Splitting via `lines` / `totals` lets the sticky sidebars scroll\n\t\t * just the variable-length ticket list while keeping the summary\n\t\t * block and CTA always visible.\n\t\t */\n\t\tmode?: 'full' | 'lines' | 'totals';\n\t}\n\n\tlet { orderTotals, labels = {}, mode = 'full' }: Props = $props();\n</script>\n\n<div\n\tclass=\"space-y-2\"\n\tstyle=\"transition-duration: {DURATION.normal}ms;\"\n>\n\t{#if mode !== 'totals'}\n\t\t<!-- Line items -->\n\t\t{#each orderTotals.lines as line (line.ticketId)}\n\t\t\t<div class=\"flex justify-between\">\n\t\t\t\t<Text size=\"sm\">{line.quantity}x {line.ticketName}</Text>\n\t\t\t\t<Text size=\"sm\">{formatCurrency(line.subtotal as USD)}</Text>\n\t\t\t</div>\n\t\t{/each}\n\t{/if}\n\n\t{#if mode !== 'lines'}\n\t\t<!-- Subtotal. In `totals` mode the parent supplies the separator above\n\t\t this block (BookingWidget wraps the totals block in border-t); a\n\t\t second internal border would render as a double line. Only show\n\t\t the internal border-t in `full` mode where lines + totals stack\n\t\t in one container with no external separator. -->\n\t\t{#if mode === 'full' && orderTotals.lines.length > 1}\n\t\t\t<div class=\"flex justify-between pt-1 border-t border-default\">\n\t\t\t\t<Text size=\"sm\" color=\"muted\">{labels.subtotal || 'Subtotal'}</Text>\n\t\t\t\t<Text size=\"sm\" color=\"muted\">{formatCurrency(orderTotals.subtotal as USD)}</Text>\n\t\t\t</div>\n\t\t{:else if orderTotals.lines.length > 1}\n\t\t\t<div class=\"flex justify-between\">\n\t\t\t\t<Text size=\"sm\" color=\"muted\">{labels.subtotal || 'Subtotal'}</Text>\n\t\t\t\t<Text size=\"sm\" color=\"muted\">{formatCurrency(orderTotals.subtotal as USD)}</Text>\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Fees -->\n\t\t{#if orderTotals.fees > 0}\n\t\t\t<div class=\"flex justify-between\">\n\t\t\t\t<Text size=\"sm\" color=\"muted\">{labels.serviceFees || 'Service fees'}</Text>\n\t\t\t\t<Text size=\"sm\" color=\"muted\">{formatCurrency(orderTotals.fees as USD)}</Text>\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Taxes -->\n\t\t{#if orderTotals.taxes > 0}\n\t\t\t<div class=\"flex justify-between\">\n\t\t\t\t<Text size=\"sm\" color=\"muted\">{labels.taxes || 'Taxes'}</Text>\n\t\t\t\t<Text size=\"sm\" color=\"muted\">{formatCurrency(orderTotals.taxes as USD)}</Text>\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Promo discount -->\n\t\t{#if orderTotals.promoDiscount > 0}\n\t\t\t<div class=\"flex justify-between\">\n\t\t\t\t<Text size=\"sm\" color=\"success\">{labels.promoDiscount || 'Promo discount'}</Text>\n\t\t\t\t<Text size=\"sm\" color=\"success\">-{formatCurrency(orderTotals.promoDiscount as USD)}</Text>\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Gift card — deduction from the amount due; `total` already reflects it -->\n\t\t{#if orderTotals.giftCardAmount > 0}\n\t\t\t<div class=\"flex justify-between\">\n\t\t\t\t<Text size=\"sm\" color=\"success\">{labels.giftCard || 'Gift card'}</Text>\n\t\t\t\t<Text size=\"sm\" color=\"success\">-{formatCurrency(orderTotals.giftCardAmount as USD)}</Text>\n\t\t\t</div>\n\t\t{/if}\n\n\t\t<!-- Total -->\n\t\t<div class=\"flex justify-between pt-2 border-t border-default\">\n\t\t\t<Text size=\"base\" class=\"font-semibold\">{labels.total || 'Total'}</Text>\n\t\t\t<Text size=\"base\" class=\"font-semibold\">{formatCurrency(orderTotals.total as USD)}</Text>\n\t\t</div>\n\t{/if}\n</div>","/**\n * Default English labels for public-calendar-flow components.\n * Consumers override via the `labels` prop on any *Main component.\n *\n * Label keys use flat camelCase. For composed strings (e.g. aria-labels),\n * components build them from atomic label parts.\n */\nexport const defaultLabels = {\n // ── Ticket quantity controls ──────────────────────────────────────\n decrease: 'Decrease',\n increase: 'Increase',\n quantity: 'quantity',\n\n // ── Ticket states ─────────────────────────────────────────────────\n soldOut: 'Sold out',\n free: 'Free',\n unavailable: 'Unavailable',\n eventSoldOut: 'This event is sold out',\n\n // ── Price display ─────────────────────────────────────────────────\n includesFees: 'Includes',\n fees: 'fees',\n fee: 'fee',\n\n // ── Checkout CTAs ─────────────────────────────────────────────────\n checkout: 'Checkout',\n getTickets: 'Get tickets',\n selectTickets: 'Select tickets',\n selectTicketsBelow: 'Select tickets below',\n selectTicketsToContinue: 'Select tickets to continue',\n reserveASpot: 'Reserve a spot',\n\n // ── Password modal / gate ─────────────────────────────────────────\n enterPassword: 'Enter Password',\n enterEventPassword: 'Enter event password',\n passwordRequired: 'Password Required',\n passwordRequiredShort: 'Password required',\n eventRequiresPassword: 'This event requires a password to purchase tickets.',\n eventRequiresPasswordAccess: 'This event requires a password to access tickets.',\n enterEventPasswordToView: 'Enter the event password to view tickets.',\n enterEventPasswordToViewAvailable: 'Enter the event password to view available tickets.',\n eventPassword: 'Event password',\n password: 'Password',\n pleaseEnterPassword: 'Please enter the event password',\n pleaseEnterAPassword: 'Please enter a password',\n eventRequiresPasswordShort: 'This event requires a password',\n unlockTickets: 'Unlock tickets',\n cancel: 'Cancel',\n continue: 'Continue',\n submit: 'Submit',\n\n // ── Order summary ─────────────────────────────────────────────────\n subtotal: 'Subtotal',\n serviceFees: 'Service fees',\n taxes: 'Taxes',\n tax: 'Tax',\n promoDiscount: 'Promo discount',\n giftCard: 'Gift card',\n total: 'Total',\n orderSummary: 'Order summary',\n yourOrder: 'Your Order',\n\n // ── Ticket counts (used in CTA buttons) ───────────────────────────\n ticket: 'ticket',\n tickets: 'tickets',\n\n // ── Checkout form (public-calendar-flow) ───────────────────────────────\n yourDetails: 'Your details',\n attendeeDetails: 'Attendee details',\n attendee: 'Attendee',\n sameAsPurchaser: 'Same as purchaser',\n payment: 'Payment',\n noPaymentRequired: 'No payment required',\n freeEventMessage: 'This is a free event. Complete the form above to reserve your spot.',\n firstName: 'First name',\n lastName: 'Last name',\n emailAddress: 'Email address',\n email: 'Email',\n emailPlaceholder: 'you@example.com',\n attendeeEmailPlaceholder: 'attendee@example.com',\n cardNumber: 'Card number',\n cardPlaceholder: '4242 4242 4242 4242',\n expiryDate: 'Expiry date',\n expiryPlaceholder: 'MM / YY',\n cvc: 'CVC',\n cvcPlaceholder: '123',\n keepMeUpdated: 'Keep me updated about this event and similar events',\n agreeToTerms: 'I agree to the terms and conditions',\n goBack: 'Go back',\n loadingPaymentForm: 'Loading secure payment form...',\n\n // ── Checkout form validation ──────────────────────────────────────\n firstNameRequired: 'First name is required',\n lastNameRequired: 'Last name is required',\n emailRequired: 'Email is required',\n emailInvalid: 'Enter a valid email address',\n emailInvalidShort: 'Enter a valid email',\n cardNumberRequired: 'Card number is required',\n expiryRequired: 'Expiry date is required',\n cvcRequired: 'CVC is required',\n mustAgreeTerms: 'You must agree to the terms',\n\n // ── Place order CTAs ──────────────────────────────────────────────\n placeOrder: 'Place order',\n completeOrder: 'Complete order',\n placingOrder: 'Placing order...',\n\n // ── Promo code ────────────────────────────────────────────────────\n havePromoCode: 'Have a promo code?',\n promoCode: 'Promo code',\n enterCode: 'Enter code',\n apply: 'Apply',\n remove: 'Remove',\n removePromoCode: 'Remove promo code',\n applyPromoCode: 'Apply promo code',\n checkingPromoCode: 'Checking promo code',\n checking: 'Checking...',\n promoApplied: 'Promo applied',\n\n // ── Navigation tabs (app-segments) ────────────────────────────────\n about: 'About',\n ticketsTab: 'Tickets',\n eventSections: 'Event sections',\n\n // ── Event details ─────────────────────────────────────────────────\n eventDetails: 'Event details',\n performers: 'Performers',\n faq: 'FAQ',\n frequentlyAskedQuestions: 'Frequently asked questions',\n doors: 'Doors',\n doorsOpenAt: 'Doors open at',\n\n // ── Series occurrences ────────────────────────────────────────────\n upcomingDates: 'Upcoming Dates',\n\n // ── Close / dismiss ───────────────────────────────────────────────\n closeTicketSelection: 'Close ticket selection',\n closeTicketSelector: 'Close ticket selector',\n\n // ── Accessibility ─────────────────────────────────────────────────\n ticketSelection: 'ticket selection',\n ticketsSelected: 'tickets selected',\n view: 'View',\n\n // ── Success page (public-calendar-flow) ────────────────────────────────\n youreIn: \"You're in!\",\n youreRegistered: \"You're registered!\",\n confirmed: 'confirmed',\n viewTickets: 'View tickets',\n order: 'Order',\n confirmationSentTo: 'Confirmation sent to',\n addToCalendar: 'Add to Calendar',\n googleCalendar: 'Google Calendar',\n appleCalendar: 'Apple Calendar (.ics)',\n share: 'Share',\n map: 'Map',\n backToEvent: 'Back to event',\n needHelp: 'Need help?',\n linkCopied: 'Link copied to clipboard!',\n copyLink: 'Copy this link:',\n addToAppleWallet: 'Add to Apple Wallet',\n saveToGoogleWallet: 'Save to Google Wallet',\n\n // ── Session timer / expiration modals ─────────────────────────────\n sessionExpiringSoon: 'Session expiring soon',\n sessionExpiringSoonMessage: 'Your checkout session will expire in {time}. Your selected tickets will be released back to inventory.',\n extensionsRemaining: '{count} extension{plural} remaining',\n continueCheckout: 'Continue checkout',\n okIllHurry: \"OK, I'll hurry\",\n maxExtensionsReached: 'Maximum extensions reached',\n wantToKeepTickets: 'Want to keep your tickets?',\n sessionExpiredMessage: 'Your checkout session has expired and your selected tickets have been released.',\n sessionExpired: 'Session expired',\n reservationTimedOut: 'Your reservation has timed out. Please select your tickets again to continue.',\n keepMyTickets: 'Keep my tickets',\n selectTicketsAgain: 'Select tickets again',\n extendingSession: 'Extending...',\n\n // ── MobileCta ─────────────────────────────────────────────────────\n selectTicketsLabel: 'Select Tickets',\n};\n\n/**\n * Merge user-provided label overrides with the defaults.\n * Shallow merge — any key provided by the consumer wins.\n *\n * @param {Record<string, string>} [userLabels] - Partial label overrides\n * @returns {Record<string, string>} Merged labels object\n */\nexport function mergeLabels(userLabels = {}) {\n return { ...defaultLabels, ...userLabels };\n}\n"],"names":["logger","createLogger","BATCH_WINDOW_MS","activeBatches","SvelteMap","GENERIC_BATCH_PREFIX","registerBatch","mapKey","toastId","amount","windowMs","timeout","bumpBatch","batch","applyBatchMerge","ctx","update","duration","toasts","t","scheduleRemoval","desktopNotificationsEnabled","$","desktopNotificationPermission","requestDesktopPermission","permission","pushPreferenceChecker","STATUS_TO_PREFERENCE","setPushPreferenceChecker","checker","normalizeStatus","status","isPushEnabledForStatus","showDesktopNotification","title","options","e","fireDesktopNotificationOption","dn","cfg","DEFAULT_DURATIONS","MAX_TOASTS","timers","generateId","TOAST_HAPTIC_STYLES","LIVE_REGION_IDS","getToastLiveRegion","politeness","id","region","announceToMatchingRegion","message","announceToast","type","description","addToast","existingBatch","dismissible","newToast","hapticStyle","triggerHaptic","overflow","timer","addNotificationToast","normalizedStatus","genericBatch","desktopTitle","desktopBody","delay","existingTimer","dismiss","dismissAll","pause","toast","elapsed","remaining","resume","foundToast","promise","result","err","computeCtaState","event","tickets","cancelled","isRegistration","waitlistEnabled","now","eventEnd","hiddenAvailable","isHiddenTicketPurchasable","publicTickets","hasPurchasable","allSoldOut","allComingSoon","earliestSalesStart","ticket","salesBegin","salesEnd","isSoldOut","isScheduled","hasSalesEnded","startDate","diffMs","diffHours","diffDays","dateText","formatTime","formatDateRaw","d","SCARCITY_THRESHOLDS","getScarcityLevel","total","pct","getScarcityText","level","context","getCtaConfig","apiTickets","toFriendlyReason","reason","getPriceDisplay","visibleTickets","hasDonation","paidTickets","hasFree","pricedTickets","minPrice","calculateTax","taxPercentage","roundCurrency","DURATION","formatSmartSalesDate","dateStr","date","diffMinutes","mins","hours","tomorrow","scFormatTime","dayName","timeStr","createDefaultPromoState","labels","$$props","mode","div","root_3","node_1","line","div_1","root","Text","node_2","text","node_3","formatCurrency","$$render","consequent","div_2","root_1","node_6","node_7","$0","text_3","div_3","node_8","node_9","text_5","consequent_1","consequent_2","div_4","node_11","node_12","text_7","consequent_3","div_5","node_14","node_15","text_9","consequent_4","div_6","node_17","node_18","text_11","consequent_5","div_7","node_20","node_21","text_13","consequent_6","div_8","node_19","node_22","node_23","text_15","consequent_7","defaultLabels","mergeLabels","userLabels"],"mappings":";;;;;AAcA,MAAMA,KAASC,GAAa,cAAc,GAIpCC,KAAkB,KAClBC,IAAgB,IAAIC,GAAS,GAG7BC,IAAuB;AAC7B,SAASC,GAAcC,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