@getmicdrop/venue-calendar 4.0.95 → 4.0.96

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 (63) hide show
  1. package/dist/{CartView-Cq0DU1Cy.js → CartView-DC-YjxhJ.js} +721 -726
  2. package/dist/CartView-DC-YjxhJ.js.map +1 -0
  3. package/dist/{Checkout-BV5f49vY.js → Checkout-DFEzsNwm.js} +8 -4
  4. package/dist/Checkout-DFEzsNwm.js.map +1 -0
  5. package/dist/{Checkout-BA43iGDc.js → Checkout-SGb68I5A.js} +271 -259
  6. package/dist/Checkout-SGb68I5A.js.map +1 -0
  7. package/dist/{CheckoutTimer-KyKyInco.js → CheckoutTimer-BUlr4C7O.js} +5 -5
  8. package/dist/{CheckoutTimer-KyKyInco.js.map → CheckoutTimer-BUlr4C7O.js.map} +1 -1
  9. package/dist/{ClockIcon-BD24dBol.js → ClockIcon-CI96OiJj.js} +2 -2
  10. package/dist/{ClockIcon-BD24dBol.js.map → ClockIcon-CI96OiJj.js.map} +1 -1
  11. package/dist/{CollectionView-CKIxku9-.js → CollectionView-kDS8R_bu.js} +35 -35
  12. package/dist/CollectionView-kDS8R_bu.js.map +1 -0
  13. package/dist/{Event-BPdt1Io5.js → Event-DUViqNEG.js} +497 -497
  14. package/dist/{Event-BPdt1Io5.js.map → Event-DUViqNEG.js.map} +1 -1
  15. package/dist/{EventPage-DRnTMGTK.js → EventPage-CbYWOehC.js} +6 -6
  16. package/dist/{EventPage-DRnTMGTK.js.map → EventPage-CbYWOehC.js.map} +1 -1
  17. package/dist/{Heading-pQuVpBrL.js → Heading-DtOhaDMn.js} +10 -10
  18. package/dist/{Heading-pQuVpBrL.js.map → Heading-DtOhaDMn.js.map} +1 -1
  19. package/dist/{ScarcityBadge-DoYdujCs.js → ScarcityBadge-CBKc57di.js} +16 -16
  20. package/dist/{ScarcityBadge-DoYdujCs.js.map → ScarcityBadge-CBKc57di.js.map} +1 -1
  21. package/dist/{SeriesPage-vw7Hva9F.js → SeriesPage-BPDSiLWH.js} +5 -5
  22. package/dist/{SeriesPage-vw7Hva9F.js.map → SeriesPage-BPDSiLWH.js.map} +1 -1
  23. package/dist/{Spinner-BfFZMaDP.js → Spinner-BUWcjtbI.js} +2 -2
  24. package/dist/{Spinner-BfFZMaDP.js.map → Spinner-BUWcjtbI.js.map} +1 -1
  25. package/dist/{Success-Cjj6CC4w.js → Success-6kCesfnC.js} +15 -9
  26. package/dist/Success-6kCesfnC.js.map +1 -0
  27. package/dist/{Text-CT79Zi5n.js → Text-B5MZ6L1O.js} +2 -2
  28. package/dist/{Text-CT79Zi5n.js.map → Text-B5MZ6L1O.js.map} +1 -1
  29. package/dist/{VenueCalendar-Cz7_VBC6.js → VenueCalendar-BRTDpyWV.js} +1504 -1498
  30. package/dist/VenueCalendar-BRTDpyWV.js.map +1 -0
  31. package/dist/{ViewTicketsEmbed-BvCfoKY3.js → ViewTicketsEmbed-BgIXGtz6.js} +5 -5
  32. package/dist/ViewTicketsEmbed-BgIXGtz6.js.map +1 -0
  33. package/dist/api/api/transformers/event.d.ts +6 -4
  34. package/dist/api/api.cjs +1 -1
  35. package/dist/api/api.cjs.map +1 -1
  36. package/dist/api/api.mjs +204 -207
  37. package/dist/api/api.mjs.map +1 -1
  38. package/dist/{data-toggle-store.svelte-BHwbM34q.js → data-toggle-store.svelte-D3w7V3t9.js} +2 -2
  39. package/dist/data-toggle-store.svelte-D3w7V3t9.js.map +1 -0
  40. package/dist/{labels-_x9WkVuZ.js → labels-wyDolzF_.js} +8 -8
  41. package/dist/labels-wyDolzF_.js.map +1 -0
  42. package/dist/{modalManager.svelte-Csm1WlvP.js → modalManager.svelte-DBBSS3Zi.js} +2 -2
  43. package/dist/{modalManager.svelte-Csm1WlvP.js.map → modalManager.svelte-DBBSS3Zi.js.map} +1 -1
  44. package/dist/seo/seo.cjs.map +1 -1
  45. package/dist/seo/seo.mjs.map +1 -1
  46. package/dist/{transform-WRPgSKLN.js → transform-Bcl3riJb.js} +2 -2
  47. package/dist/{transform-WRPgSKLN.js.map → transform-Bcl3riJb.js.map} +1 -1
  48. package/dist/venue-calendar.css +1 -1
  49. package/dist/venue-calendar.es.js +4 -4
  50. package/dist/venue-calendar.iife.js +33 -33
  51. package/dist/venue-calendar.iife.js.map +1 -1
  52. package/dist/venue-calendar.umd.js +33 -33
  53. package/dist/venue-calendar.umd.js.map +1 -1
  54. package/package.json +5 -2
  55. package/dist/CartView-Cq0DU1Cy.js.map +0 -1
  56. package/dist/Checkout-BA43iGDc.js.map +0 -1
  57. package/dist/Checkout-BV5f49vY.js.map +0 -1
  58. package/dist/CollectionView-CKIxku9-.js.map +0 -1
  59. package/dist/Success-Cjj6CC4w.js.map +0 -1
  60. package/dist/VenueCalendar-Cz7_VBC6.js.map +0 -1
  61. package/dist/ViewTicketsEmbed-BvCfoKY3.js.map +0 -1
  62. package/dist/data-toggle-store.svelte-BHwbM34q.js.map +0 -1
  63. package/dist/labels-_x9WkVuZ.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { J as w } from "./VenueCalendar-Cz7_VBC6.js";
1
+ import { J as w } from "./VenueCalendar-BRTDpyWV.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
  A as d,
418
418
  _ as m
419
419
  };
420
- //# sourceMappingURL=data-toggle-store.svelte-BHwbM34q.js.map
420
+ //# sourceMappingURL=data-toggle-store.svelte-D3w7V3t9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-toggle-store.svelte-D3w7V3t9.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(); // @datetime-escape: mock/demo fixture data — not a live datetime path\n const day = now.getUTCDay(); // 0=Sun..6=Sat\n const daysToFriday = (5 - day + 7) % 7 || 7; // always the NEXT Friday (never today)\n // @datetime-escape: mock/demo fixture data — not a live datetime path\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(); // @datetime-escape: mock/demo fixture data — not a live datetime path\nconst _evDate = new Date(_now.getFullYear(), _now.getMonth(), _now.getDate() + 21); // @datetime-escape: mock/demo fixture data — not a live datetime path\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,GAEpCE,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,aAAa;AAAA,IACb,cACE;AAAA,EAAA;AAAA,EAEJ;AAAA,IACE,IAAI;AAAA,IACJ,aAAa;AAAA,IACb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Z,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;AC1/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,12 +1,12 @@
1
1
  import "svelte/internal/disclose-version";
2
2
  import * as e from "svelte/internal/client";
3
- import { u as I, aM as L, K as N, r as D, aC as V } from "./VenueCalendar-Cz7_VBC6.js";
4
- import { T as m } from "./Text-CT79Zi5n.js";
3
+ import { u as F, aN as I, K as L, r as D, aD as V } from "./VenueCalendar-BRTDpyWV.js";
4
+ import { T as m } from "./Text-B5MZ6L1O.js";
5
5
  var G = e.from_svg('<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"></path>'), U = e.from_svg('<rect x="40" y="40" width="176" height="176" rx="8" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></rect><line x1="176" y1="24" x2="176" y2="56" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line><line x1="80" y1="24" x2="80" y2="56" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line><line x1="40" y1="88" x2="216" y2="88" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line><polyline points="88 128 104 120 104 184" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline><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"></path>', 1), Y = e.from_svg('<svg aria-hidden="true" viewBox="0 0 256 256" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!></svg>');
6
6
  function se(r, t) {
7
7
  e.push(t, !0);
8
8
  let a = e.prop(t, "size", 3, "24"), f = e.prop(t, "color", 3, "currentColor"), p = e.prop(t, "class", 3, "");
9
- const T = I();
9
+ const T = F();
10
10
  let k = e.derived(() => t.weight ?? T?.weight ?? "regular");
11
11
  var o = Y();
12
12
  let S;
@@ -41,7 +41,7 @@ function j(r, t, a = {}) {
41
41
  const o = r.endDateTime || r.startDateTime;
42
42
  if (o && new Date(o) < k)
43
43
  return { text: "Sales ended", disabled: !0, reason: "event_past" };
44
- const S = r?.hasPurchasableHiddenTickets === !0 || Array.isArray(t) && t.some(L), g = (t || []).filter(
44
+ const S = r?.hasPurchasableHiddenTickets === !0 || Array.isArray(t) && t.some(I), g = (t || []).filter(
45
45
  (i) => i.salesChannel !== 2 && !i.isHidden && !(typeof i.visibility == "number" && i.visibility >= 2)
46
46
  );
47
47
  if (g.length === 0)
@@ -204,7 +204,7 @@ function ie(r) {
204
204
  return p ? "Free" : a ? `From $${k}` : T.length === 1 ? `$${k}` : `From $${k}`;
205
205
  }
206
206
  function ne(r, t) {
207
- return N(r * (t / 100));
207
+ return L(r * (t / 100));
208
208
  }
209
209
  const B = {
210
210
  normal: 300
@@ -447,8 +447,8 @@ function de(r, t) {
447
447
  },
448
448
  $$slots: { default: !0 }
449
449
  });
450
- var F = e.sibling(M, 2);
451
- m(F, {
450
+ var N = e.sibling(M, 2);
451
+ m(N, {
452
452
  size: "base",
453
453
  weight: "semibold",
454
454
  children: (n, l) => {
@@ -636,4 +636,4 @@ export {
636
636
  re as g,
637
637
  ce as m
638
638
  };
639
- //# sourceMappingURL=labels-_x9WkVuZ.js.map
639
+ //# sourceMappingURL=labels-wyDolzF_.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels-wyDolzF_.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/CalendarIcon.svelte","../node_modules/@getmicdrop/svelte-components/dist/datetime/local.js","../src/lib/api/cta.ts","../src/lib/public-calendar-flow/defaults.ts","../src/lib/public-calendar-flow/OrderSummary.svelte","../src/lib/public-calendar-flow/i18n/labels.js"],"sourcesContent":["<script lang=\"ts\">\n /**\n * Calendar — Phosphor icon (canonical Micdrop icon family).\n * Outline by default; pass `weight=\"fill\"` for solid, or let a stateful parent\n * (NavItem / Tabs / BottomNav / status badge) drive it via icon-weight context.\n */\n import { useIconWeight, type IconWeight } from './iconWeight.js';\n\n interface Props {\n /** Pixel size (width + height). */\n size?: string;\n /** Icon color; defaults to `currentColor` (inherits text color). */\n color?: string;\n /** Extra classes. */\n class?: string;\n /** `regular` (outline) or `fill` (solid). Overrides ambient state weight. */\n weight?: IconWeight;\n }\n\n let { size = '24', color = 'currentColor', class: className = '', weight }: Props = $props();\n\n const ctx = useIconWeight();\n let resolved: IconWeight = $derived(weight ?? ctx?.weight ?? 'regular');\n</script>\n\n<svg\n class={className}\n aria-hidden=\"true\"\n width={size}\n height={size}\n viewBox=\"0 0 256 256\"\n fill=\"currentColor\"\n style:color={color}\n xmlns=\"http://www.w3.org/2000/svg\"\n>\n {#if resolved === 'fill'}<path d=\"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM112,184a8,8,0,0,1-16,0V132.94l-4.42,2.22a8,8,0,0,1-7.16-14.32l16-8A8,8,0,0,1,112,120Zm56-8a8,8,0,0,1,0,16H136a8,8,0,0,1-6.4-12.8l28.78-38.37A8,8,0,1,0,145.07,132a8,8,0,1,1-13.85-8A24,24,0,0,1,176,136a23.76,23.76,0,0,1-4.84,14.45L152,176ZM48,80V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80Z\"/>{:else}<rect x=\"40\" y=\"40\" width=\"176\" height=\"176\" rx=\"8\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><line x1=\"176\" y1=\"24\" x2=\"176\" y2=\"56\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><line x1=\"80\" y1=\"24\" x2=\"80\" y2=\"56\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><line x1=\"40\" y1=\"88\" x2=\"216\" y2=\"88\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><polyline points=\"88 128 104 120 104 184\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/><path d=\"M138.14,128a16,16,0,1,1,26.64,17.63L136,184h32\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"/>{/if}\n</svg>\n","/**\n * Browser-local date helpers — calendar chrome & `<input type=\"datetime-local\">`.\n *\n * These are the ONE exception to the module's golden rule (\"timezone is always\n * required\"). They operate on a JavaScript `Date` in the **browser's own local\n * timezone**, with NO IANA timezone argument and NO UTC conversion. They exist\n * for the cases where browser-local IS the correct semantic:\n *\n * - Scheduling / calendar-grid chrome that reflects the operator's own clock.\n * - Producing the `YYYY-MM-DD` / `YYYY-MM-DDTHH:mm` strings that native\n * `<input type=\"date\">` / `<input type=\"datetime-local\">` require (those\n * inputs are defined to read/write **local** wall-clock time, never UTC).\n *\n * The distinction from the venue-timezone formatters in `./format.ts` is\n * deliberate and load-bearing — keep it unmistakable:\n *\n * | Concern | Use | From |\n * |---------------------------------|-----------------------------------|---------------|\n * | Venue/event display time | `formatDayOfWeek(utcIso, tz)` | `./format.ts` |\n * | Operator's own clock / inputs | `formatLocalDayOfWeek(date)` | this file |\n *\n * Name-collision resolution (Atlas AUDIT #17): the venue-tz `formatDayOfWeek`\n * (UTC ISO + IANA tz) keeps the canonical name in `format.ts`; the browser-local\n * variant (a `Date`, no tz) is named `formatLocalDayOfWeek` here so the two can\n * never be confused at a call site.\n *\n * @module datetime/local\n */\nimport { getUserLocale } from './timezone.js';\n/**\n * Pads a number to two digits (e.g. `5` -> `\"05\"`).\n */\nfunction pad2(n) {\n return n < 10 ? `0${n}` : String(n);\n}\n/**\n * Current local date+time as an HTML `<input type=\"datetime-local\">` value.\n *\n * Format: `YYYY-MM-DDTHH:mm` (no seconds, no timezone) — exactly the value\n * format the native control reads and writes. Uses the browser's local clock;\n * does NOT convert to/from UTC.\n *\n * @returns Local-time string in `YYYY-MM-DDTHH:mm` form.\n *\n * @example\n * getCurrentDateTimeLocalFormat() // \"2026-06-09T14:30\" (in the viewer's tz)\n */\nexport function getCurrentDateTimeLocalFormat() {\n const now = new Date();\n return (`${now.getFullYear()}-${pad2(now.getMonth() + 1)}-${pad2(now.getDate())}` +\n `T${pad2(now.getHours())}:${pad2(now.getMinutes())}`);\n}\n/**\n * Formats a `Date` as a `YYYY-MM-DD` string in the **browser's local timezone**.\n *\n * This is the value format for `<input type=\"date\">`. It reads the local\n * wall-clock parts (`getFullYear`/`getMonth`/`getDate`) — it does NOT use\n * `toISOString()` (which would shift to UTC and can roll the date across\n * midnight). Use this when \"the day on the operator's calendar\" is what matters.\n *\n * @param date - The date to format (interpreted in browser-local time).\n * @returns Local date string in `YYYY-MM-DD` form.\n *\n * @example\n * formatLocalDate(new Date(2026, 5, 9)) // \"2026-06-09\"\n */\nexport function formatLocalDate(date) {\n return (`${date.getFullYear()}-${pad2(date.getMonth() + 1)}-${pad2(date.getDate())}`);\n}\n/**\n * Formats a `Date`'s weekday in the **browser's local timezone**.\n *\n * The browser-local sibling of the venue-timezone {@link import('./format.js').formatDayOfWeek}\n * (which takes a UTC ISO string + IANA timezone). This one takes a plain `Date`\n * and renders its weekday in local time — for calendar chrome where the\n * operator's own clock is the reference.\n *\n * @param date - The date whose weekday to format (browser-local).\n * @param full - If `true` (default), returns the full name (\"Monday\");\n * if `false`, the short name (\"Mon\").\n * @param locale - BCP-47 locale tag. Defaults to the viewer's resolved locale\n * via {@link import('./timezone.js').getUserLocale}. An app with its own i18n\n * locale should pass it explicitly.\n * @returns Localized weekday name in browser-local time.\n *\n * @example\n * formatLocalDayOfWeek(new Date(2026, 5, 8)) // \"Monday\"\n * formatLocalDayOfWeek(new Date(2026, 5, 8), false) // \"Mon\"\n */\nexport function formatLocalDayOfWeek(date, full = true, locale = getUserLocale()) {\n return new Intl.DateTimeFormat(locale, {\n weekday: full ? 'long' : 'short',\n }).format(date);\n}\n/**\n * Formats a `Date` in the **browser's local timezone** with caller-supplied\n * Intl options — the generic display-label formatter for viewer-local picker\n * chrome (single/range date pickers, month-year headers, day cells).\n *\n * Browser-local sibling of the venue-timezone formatters in `./format.ts`: it\n * renders the Date's local wall-clock parts (NO IANA timezone argument, NO UTC\n * conversion) via `Intl.DateTimeFormat`. This is the honest canonical home for\n * the labels the deprecated `formatDate` in `utils/formatters` used to produce\n * for viewer-local pickers — but it injects NO default field set: the caller's\n * `options` are authoritative (the pickers already pass fully-specified option\n * objects). The `'en-US'` locale default preserves the historical picker output.\n *\n * @param date - The date to format (interpreted in browser-local time).\n * @param options - Intl formatting options (authoritative; no defaults merged).\n * @param locale - BCP-47 locale tag. Defaults to `'en-US'` to match the\n * historical picker label output.\n * @returns The localized label in browser-local time.\n *\n * @example\n * formatLocal(new Date(2026, 5, 9), { weekday: 'long', month: 'long', day: 'numeric', year: 'numeric' })\n * // \"Tuesday, June 9, 2026\"\n */\nexport function formatLocal(date, options, locale = 'en-US') {\n return new Intl.DateTimeFormat(locale, options).format(date);\n}\n","/**\n * CTA state computation.\n *\n * Pure function (no I/O) — derives the buy-button state from an event and\n * its ticket list. Lives in `api/` because it is the canonical, single\n * source of truth that replaces the duplicate implementations previously\n * scattered across utils/api.js, core/api-client.js, and a few components.\n */\n\n// Import from the specific subpath (not the bare entry) so the api/\n// bundle doesn't pull in the entire SC component graph (Accordion etc.)\n// and break `npm run build:api`. `formatLocal` is the sanctioned browser-local\n// (no-timezone) Intl label home — these \"On sale …\" countdown labels render in\n// the viewer's own clock, so no venue timezone applies. The datetime subpath is\n// leaf/component-free; only `formatLocal` (→ Intl) is pulled, no date-fns.\nimport { formatLocal } from '@getmicdrop/svelte-components/datetime';\n// Hidden-ticket predicate from the `/transforms` leaf subpath (no component\n// graph, so `npm run build:api` stays clean). SC's copy was pinned FROM this\n// body (dedup #392) and additionally honours the backend-resolved\n// `effectiveSales*` window for relative-offset tickets (#388). Imported (not\n// just re-exported) so it stays in local scope for `computeCtaState` below.\nimport { isHiddenTicketPurchasable } from '@getmicdrop/svelte-components/transforms';\n\nexport interface CtaStateOptions {\n cancelled?: boolean;\n isRegistration?: boolean;\n waitlistEnabled?: boolean;\n}\n\nexport interface CtaState {\n text: string;\n disabled: boolean;\n reason:\n | 'cancelled'\n | 'event_past'\n | 'no_tickets'\n | 'available'\n | 'coming_soon'\n | 'sold_out_waitlist'\n | 'sold_out'\n | 'sales_ended'\n | 'hidden_only';\n}\n\ninterface CtaEvent {\n startDateTime?: string | null;\n endDateTime?: string | null;\n hasPurchasableHiddenTickets?: boolean;\n}\n\ninterface CtaTicket {\n salesChannel?: number;\n salesBegin?: string | null;\n salesStart?: string | null;\n saleBegin?: string | null;\n onSaleStart?: string | null;\n salesEnd?: string | null;\n saleEnd?: string | null;\n onSaleEnd?: string | null;\n remainingCapacity?: number | null;\n quantityRemaining?: number | null;\n quantity?: number | null;\n soldOut?: boolean;\n isHidden?: boolean;\n visibility?: number;\n}\n\n// A hidden ticket (visibility>=2 or isHidden) that's still on sale drives the\n// \"Sales ended\" / \"Sold out\" / \"No tickets\" → \"Get tickets\" override. The user\n// just needs the promo code to see it. Re-exported from the SC canonical so\n// existing consumers (cta.test.ts, computeCtaState) keep their import path while\n// the single-source body lives in SC (dedup #392).\nexport { isHiddenTicketPurchasable };\n\nexport function computeCtaState(\n event: CtaEvent,\n tickets: CtaTicket[] | undefined,\n options: CtaStateOptions = {}\n): CtaState {\n const {\n cancelled = false,\n isRegistration = false,\n waitlistEnabled = false,\n } = options;\n const now = new Date(); // @datetime-escape: absolute-instant compare of a UTC-Z field vs now — tz-independent\n\n if (cancelled)\n return { text: 'Cancelled', disabled: true, reason: 'cancelled' };\n\n const eventEnd = event.endDateTime || event.startDateTime;\n // @datetime-escape: absolute-instant compare of a UTC-Z field vs now — tz-independent\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; // @datetime-escape: absolute-instant compare of a UTC-Z field vs now — tz-independent\n const hasSalesEnded = salesEnd ? new Date(salesEnd) < now : false; // @datetime-escape: absolute-instant compare of a UTC-Z field vs now — tz-independent\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); // @datetime-escape: absolute-instant compare of a UTC-Z field vs now — tz-independent\n if (!earliestSalesStart || startDate < earliestSalesStart) {\n earliestSalesStart = startDate;\n }\n }\n }\n\n if (hasPurchasable) {\n return {\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\n disabled: false,\n reason: 'available',\n };\n }\n\n if (allComingSoon && earliestSalesStart) {\n if (hiddenAvailable) {\n return {\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\n disabled: false,\n reason: 'hidden_only',\n };\n }\n const diffMs = earliestSalesStart.getTime() - now.getTime();\n const diffHours = diffMs / (1000 * 60 * 60);\n const diffDays = diffMs / (1000 * 60 * 60 * 24);\n // Viewer-local time label (\"8:00 PM\") — the shape shared by the <24h branch\n // and the >7d composite. Matches the deprecated `formatTime(d,{hour12:true})`\n // defaults-merge exactly.\n const timeLabel = (d: Date) =>\n formatLocal(\n d,\n { hour: 'numeric', minute: '2-digit', hour12: true },\n 'en-US'\n );\n let dateText: string;\n if (diffHours < 24) {\n dateText = timeLabel(earliestSalesStart);\n } else if (diffDays <= 7) {\n dateText = formatLocal(\n earliestSalesStart,\n { weekday: 'short', hour: 'numeric', minute: '2-digit', hour12: true },\n 'en-US'\n );\n } else {\n const d = formatLocal(\n earliestSalesStart,\n { month: 'short', day: 'numeric' },\n 'en-US'\n );\n dateText = `${d} ${timeLabel(earliestSalesStart)}`;\n }\n return {\n text: `On sale ${dateText}`,\n disabled: true,\n reason: 'coming_soon',\n };\n }\n\n if (allSoldOut) {\n if (hiddenAvailable) {\n return {\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\n disabled: false,\n reason: 'hidden_only',\n };\n }\n if (waitlistEnabled) {\n return {\n text: 'Join Waitlist',\n disabled: false,\n reason: 'sold_out_waitlist',\n };\n }\n return { text: 'Sold out', disabled: true, reason: 'sold_out' };\n }\n\n if (hiddenAvailable) {\n return {\n text: isRegistration ? 'Reserve a spot' : 'Get tickets',\n disabled: false,\n reason: 'hidden_only',\n };\n }\n\n return { text: 'Sales ended', disabled: true, reason: 'sales_ended' };\n}\n","// @currency-escape: feeCents / 100 in calculateServiceFee is arithmetic,\n// not display. Produces a dollar-magnitude number used in the fee formula\n// `price * (feePercentage / 100) + feeCents / 100`. Per Atlas\n// utility-currency convergence record; the no-handrolled-currency\n// ESLint rule's divideByHundred detector treats variable-name `Cents`\n// as drift but here it's real math.\n\n// Premium Ticket Experience — Constants & Defaults\n// Used by all design variants. DO NOT MODIFY per-variant.\n\n// This file is the canonical formatter module for public-calendar-flow: it\n// wraps + re-exports the timezone-aware production date/time formatters, plus\n// the shared sales-countdown formatter (formatSmartSalesDate) hoisted into\n// svelte-components (SC #471). No raw Intl date formatting lives here anymore.\n\nimport type {\n EventData,\n TicketTypeData,\n ScarcityLevel,\n CtaConfig,\n PromoCodeState,\n} from './types';\nimport { computeCtaState } from '$lib/api';\nimport type { Cents } from '@getmicdrop/svelte-components';\nimport { roundCurrency } from '@getmicdrop/svelte-components';\nimport { formatSmartSalesDate } from '@getmicdrop/svelte-components/utils/formatters';\nimport {\n formatFullDate,\n formatFullDateCompact,\n formatEventTime,\n formatTimeRange,\n formatDoorsTime,\n formatSalesDate,\n formatBrowseDate,\n formatEventDate,\n formatCleanTimeRange,\n getDateParts,\n} from '$lib/utils/datetime.js';\n\n// --- Re-export production date/time formatters (timezone-aware) ---\nexport {\n formatFullDate,\n formatFullDateCompact,\n formatEventTime,\n formatTimeRange,\n formatDoorsTime,\n formatSalesDate,\n formatBrowseDate,\n formatEventDate,\n formatCleanTimeRange,\n getDateParts,\n};\n\n// Shared sales-countdown formatter, adopted from svelte-components (SC #471).\n// Kept as a re-export so public-calendar-flow consumers import it from this\n// module unchanged. English defaults match VC's prior copy; the clock time\n// renders in UTC (matching the production TicketBlock origin) rather than the\n// old copy's viewer-local time.\nexport { formatSmartSalesDate };\n\n// --- Scarcity Badge Rules ---\nexport const SCARCITY_THRESHOLDS = {\n SOLD_OUT: 0,\n URGENT: 0.1, // ≤10% remaining → urgent (\"Only X left\")\n LOW: 0.2, // ≤20% remaining (80%+ sold) → \"Selling fast\"\n MAX_EXACT_COUNT: 20, // Don't show exact count above 20\n} as const;\n\nexport function getScarcityLevel(\n remaining: number,\n total: number\n): ScarcityLevel {\n if (total === 0) return 'none';\n if (remaining <= 0) return 'sold_out';\n const pct = remaining / total;\n if (pct <= SCARCITY_THRESHOLDS.URGENT) return 'urgent';\n if (pct <= SCARCITY_THRESHOLDS.LOW) return 'low';\n return 'none';\n}\n\nexport function getScarcityText(\n level: ScarcityLevel,\n remaining: number,\n context: 'browse' | 'event' | 'ticket',\n options?: { isFree?: boolean }\n): string | null {\n if (level === 'none') return null;\n if (level === 'sold_out') return 'Sold out';\n // No scarcity badges on free events/tickets — nothing to lose = no urgency\n if (options?.isFree) return null;\n if (\n level === 'urgent' &&\n context !== 'browse' &&\n remaining <= SCARCITY_THRESHOLDS.MAX_EXACT_COUNT\n ) {\n return `Only ${remaining} left`;\n }\n if (level === 'low' || level === 'urgent') return 'Selling fast';\n return null;\n}\n\n// --- CTA Rules ---\n// Delegates to production computeCtaState() but adapts our EventData shape.\n// Components keep calling getCtaConfig(event) — internal logic is production-aligned.\nexport function getCtaConfig(event: EventData): CtaConfig {\n // Map our EventData tickets to the shape computeCtaState expects.\n // `isHidden` flows through so computeCtaState can apply the hidden-only\n // \"Sales ended\" → \"Get tickets\" override (MIC-1039).\n const apiTickets = event.tickets.map(t => ({\n salesBegin: t.salesStartDate,\n salesEnd: t.salesEndDate,\n remainingCapacity: t.quantityAvailable,\n totalCapacity: t.quantityTotal,\n soldOut: t.status === 'sold_out',\n salesChannel: 1, // All our tickets are online (not \"at the door only\")\n isHidden: t.isHidden,\n }));\n\n // Handle statuses that computeCtaState doesn't compute from tickets\n if (event.status === 'cancelled') {\n return {\n text: 'Cancelled',\n disabled: true,\n reason: 'This event has been cancelled',\n };\n }\n if (event.status === 'past') {\n return {\n text: 'Event ended',\n disabled: true,\n reason: 'This event has ended',\n };\n }\n\n const result = computeCtaState(\n { startDateTime: event.startDateTime, endDateTime: event.endDateTime },\n apiTickets,\n {\n cancelled: false,\n isRegistration: event.isRegistrationEvent,\n waitlistEnabled: false,\n }\n );\n\n return {\n text: result.text,\n disabled: result.disabled,\n reason: result.disabled ? toFriendlyReason(result.reason) : undefined,\n };\n}\n\n/**\n * computeCtaState() returns machine-enum reasons ('event_past', 'sold_out',\n * 'coming_soon', etc) intended for branching, not display. The BookingWidget\n * and MobileCta render `reason` directly as supplementary copy below the\n * button text — which leaks raw enum strings to users.\n *\n * Map each enum to a friendly sentence, OR return undefined when the button\n * `text` already says everything (\"Sales ended\" / \"Sold out\" — no need for\n * a second line repeating it).\n */\nfunction toFriendlyReason(reason: string | undefined): string | undefined {\n if (!reason) return undefined;\n switch (reason) {\n case 'cancelled':\n return 'This event has been cancelled.';\n case 'event_past':\n return 'This event has already happened.';\n case 'no_tickets':\n return 'There are no tickets configured for this event.';\n case 'coming_soon':\n return undefined; // text already shows \"On sale <date>\"\n case 'sold_out':\n return undefined; // text already shows \"Sold out\"\n case 'sold_out_waitlist':\n return 'All tickets are claimed. Join the waitlist to be notified.';\n case 'sales_ended':\n return undefined; // text already shows \"Sales ended\"\n default:\n return undefined; // unknown enum — never leak it\n }\n}\n\n// --- Price Display Rules (from DECISIONS.md #1) ---\nexport function getPriceDisplay(event: EventData): string | null {\n const visibleTickets = event.tickets.filter(\n t => t.status === 'on_sale' && !t.isHidden\n );\n if (visibleTickets.length === 0) return null;\n\n const hasDonation = visibleTickets.some(\n t => t.isDonation || t.ticketType === 2\n );\n const paidTickets = visibleTickets.filter(\n t => !t.isDonation && t.ticketType !== 2\n );\n const hasFree = paidTickets.some(t => t.price === 0);\n const pricedTickets = paidTickets.filter(t => t.price > 0);\n\n // Only donation tickets → \"Donation\"\n if (pricedTickets.length === 0 && !hasFree && hasDonation) return 'Donation';\n\n // Only free tickets (no paid, no donation) → null (BookingWidget shows \"Free\" via isFreeEvent)\n if (pricedTickets.length === 0 && hasFree) return null;\n\n const minPrice = Math.min(...pricedTickets.map(t => t.price));\n\n // Free + paid → \"Free\" (free dominates the display). Non-donation free tickets\n // outrank the paid options in the headline, matching the shared \"Free\" label\n // every other price surface uses. Returning null here left the widget blank.\n if (hasFree) return 'Free';\n\n // Donation + paid → \"From $X\" (donation is an alternative option)\n if (hasDonation) return `From $${minPrice}`;\n\n // Single paid ticket type → \"$X\"\n if (pricedTickets.length === 1) return `$${minPrice}`;\n\n // Multiple paid ticket types → \"From $X\"\n return `From $${minPrice}`;\n}\n\n// --- Fee Calculation ---\nexport function calculateFee(\n price: number,\n feePercentage: number,\n feeCents: Cents\n): number {\n return roundCurrency(price * (feePercentage / 100) + feeCents / 100);\n}\n\nexport function calculateTax(amount: number, taxPercentage: number): number {\n return roundCurrency(amount * (taxPercentage / 100));\n}\n\n// --- Date Formatting ---\n// PREFERRED: Use the timezone-aware production formatters re-exported above:\n// formatBrowseDate(iso, tz) → \"Fri, Feb 20\"\n// formatFullDateCompact(iso, tz) → \"Friday, February 20\"\n// formatEventTime(iso, tz) → \"8:00 PM\"\n// formatTimeRange(start, end, tz) → \"8:00 PM - 10:00 PM\"\n// formatDoorsTime(doors, tz) → \"7:00 PM\"\n\n// --- Animation Durations ---\nexport const DURATION = {\n instant: 100,\n micro: 150,\n fast: 200,\n normal: 300,\n slow: 400,\n elaborate: 600,\n} as const;\n\n// --- Promo Code State Factory ---\nexport function createDefaultPromoState(): PromoCodeState {\n return {\n code: '',\n isApplied: false,\n isValidating: false,\n error: '',\n hint: '',\n discountAmount: 0,\n discountType: '',\n discountTicketIds: [],\n revealHiddenTickets: false,\n revealTicketIds: [],\n };\n}\n\n// --- Ticket helpers ---\nexport function getAvailableTickets(\n tickets: TicketTypeData[]\n): TicketTypeData[] {\n return tickets.filter(t => !t.isHidden && t.status === 'on_sale');\n}\n","<!-- @style-escape: widget-intentional. -->\n<script lang=\"ts\">\n import type { USD } from '@getmicdrop/svelte-components';\n import { Text, formatCurrency } from '@getmicdrop/svelte-components';\n import type { OrderTotals } from '$lib/public-calendar-flow/types';\n import { formatPriceOrFree } from '$lib/core';\n import { DURATION } from '$lib/public-calendar-flow/defaults';\n\n interface Props {\n orderTotals: OrderTotals;\n labels?: Record<string, string>;\n /**\n * Which section to render.\n * - `full` (default): ticket lines + totals stacked together.\n * - `lines` : ticket-line items only. Use when the parent scrolls\n * this section in a flex column.\n * - `totals` : subtotal/fees/taxes/promo/total only. Use in a fixed\n * footer alongside the action button.\n *\n * Splitting via `lines` / `totals` lets the sticky sidebars scroll\n * just the variable-length ticket list while keeping the summary\n * block and CTA always visible.\n */\n mode?: 'full' | 'lines' | 'totals';\n }\n\n let { orderTotals, labels = {}, mode = 'full' }: Props = $props();\n</script>\n\n<div class=\"space-y-2\" style=\"transition-duration: {DURATION.normal}ms;\">\n {#if mode !== 'totals'}\n <!-- Line items -->\n {#each orderTotals.lines as line (line.ticketId)}\n <div class=\"flex justify-between\">\n <Text size=\"sm\">{line.quantity}x {line.ticketName}</Text>\n <Text size=\"sm\"\n >{line.isDonation\n ? formatCurrency(line.subtotal as USD)\n : formatPriceOrFree(line.subtotal, labels)}</Text\n >\n </div>\n {/each}\n {/if}\n\n {#if mode !== 'lines'}\n <!-- Subtotal. In `totals` mode the parent supplies the separator above\n\t\t this block (BookingWidget wraps the totals block in border-t); a\n\t\t second internal border would render as a double line. Only show\n\t\t the internal border-t in `full` mode where lines + totals stack\n\t\t in one container with no external separator. -->\n {#if mode === 'full' && orderTotals.lines.length > 1}\n <div class=\"flex justify-between pt-1 border-t border-default\">\n <Text size=\"sm\" color=\"muted\">{labels.subtotal || 'Subtotal'}</Text>\n <Text size=\"sm\" color=\"muted\"\n >{formatCurrency(orderTotals.subtotal as USD)}</Text\n >\n </div>\n {:else if orderTotals.lines.length > 1}\n <div class=\"flex justify-between\">\n <Text size=\"sm\" color=\"muted\">{labels.subtotal || 'Subtotal'}</Text>\n <Text size=\"sm\" color=\"muted\"\n >{formatCurrency(orderTotals.subtotal as USD)}</Text\n >\n </div>\n {/if}\n\n <!-- Fees -->\n {#if orderTotals.fees > 0}\n <div class=\"flex justify-between\">\n <Text size=\"sm\" color=\"muted\"\n >{labels.serviceFees || 'Service fees'}</Text\n >\n <Text size=\"sm\" color=\"muted\"\n >{formatCurrency(orderTotals.fees as USD)}</Text\n >\n </div>\n {/if}\n\n <!-- Taxes -->\n {#if orderTotals.taxes > 0}\n <div class=\"flex justify-between\">\n <Text size=\"sm\" color=\"muted\">{labels.taxes || 'Taxes'}</Text>\n <Text size=\"sm\" color=\"muted\"\n >{formatCurrency(orderTotals.taxes as USD)}</Text\n >\n </div>\n {/if}\n\n <!-- Promo discount -->\n {#if orderTotals.promoDiscount > 0}\n <div class=\"flex justify-between\">\n <Text size=\"sm\" color=\"success\"\n >{labels.promoDiscount || 'Promo discount'}</Text\n >\n <Text size=\"sm\" color=\"success\"\n >-{formatCurrency(orderTotals.promoDiscount as USD)}</Text\n >\n </div>\n {/if}\n\n <!-- Gift card — deduction from the amount due; `total` already reflects it -->\n {#if orderTotals.giftCardAmount > 0}\n <div class=\"flex justify-between\">\n <Text size=\"sm\" color=\"success\">{labels.giftCard || 'Gift card'}</Text>\n <Text size=\"sm\" color=\"success\"\n >-{formatCurrency(orderTotals.giftCardAmount as USD)}</Text\n >\n </div>\n {/if}\n\n <!-- Total -->\n <div class=\"flex justify-between pt-2 border-t border-default\">\n <Text size=\"base\" weight=\"semibold\">{labels.total || 'Total'}</Text>\n <Text size=\"base\" weight=\"semibold\"\n >{formatCurrency(orderTotals.total as USD)}</Text\n >\n </div>\n {/if}\n</div>\n","/**\n * Default English labels for public-calendar-flow components.\n * Consumers override via the `labels` prop on any *Main component.\n *\n * Label keys use flat camelCase. For composed strings (e.g. aria-labels),\n * components build them from atomic label parts.\n */\nexport const defaultLabels = {\n // ── Ticket quantity controls ──────────────────────────────────────\n decrease: 'Decrease',\n increase: 'Increase',\n quantity: 'quantity',\n\n // ── Ticket states ─────────────────────────────────────────────────\n soldOut: 'Sold out',\n free: 'Free',\n unavailable: 'Unavailable',\n eventSoldOut: 'This event is sold out',\n\n // ── Price display ─────────────────────────────────────────────────\n includesFees: 'Includes',\n fees: 'fees',\n fee: 'fee',\n\n // ── Checkout CTAs ─────────────────────────────────────────────────\n checkout: 'Checkout',\n getTickets: 'Get tickets',\n selectTickets: 'Select tickets',\n selectTicketsBelow: 'Select tickets below',\n selectTicketsToContinue: 'Select tickets to continue',\n reserveASpot: 'Reserve a spot',\n\n // ── Password modal / gate ─────────────────────────────────────────\n enterPassword: 'Enter Password',\n enterEventPassword: 'Enter event password',\n passwordRequired: 'Password Required',\n passwordRequiredShort: 'Password required',\n eventRequiresPassword: 'This event requires a password to purchase tickets.',\n eventRequiresPasswordAccess: 'This event requires a password to access tickets.',\n enterEventPasswordToView: 'Enter the event password to view tickets.',\n enterEventPasswordToViewAvailable: 'Enter the event password to view available tickets.',\n eventPassword: 'Event password',\n password: 'Password',\n pleaseEnterPassword: 'Please enter the event password',\n pleaseEnterAPassword: 'Please enter a password',\n eventRequiresPasswordShort: 'This event requires a password',\n unlockTickets: 'Unlock tickets',\n cancel: 'Cancel',\n continue: 'Continue',\n submit: 'Submit',\n\n // ── Order summary ─────────────────────────────────────────────────\n subtotal: 'Subtotal',\n serviceFees: 'Service fees',\n taxes: 'Taxes',\n tax: 'Tax',\n promoDiscount: 'Promo discount',\n giftCard: 'Gift card',\n total: 'Total',\n orderSummary: 'Order summary',\n yourOrder: 'Your Order',\n\n // ── Ticket counts (used in CTA buttons) ───────────────────────────\n ticket: 'ticket',\n tickets: 'tickets',\n\n // ── Checkout form (public-calendar-flow) ───────────────────────────────\n yourDetails: 'Your details',\n attendeeDetails: 'Attendee details',\n attendee: 'Attendee',\n sameAsPurchaser: 'Same as purchaser',\n payment: 'Payment',\n noPaymentRequired: 'No payment required',\n freeEventMessage: 'This is a free event. Complete the form above to reserve your spot.',\n firstName: 'First name',\n lastName: 'Last name',\n emailAddress: 'Email address',\n email: 'Email',\n emailPlaceholder: 'you@example.com',\n attendeeEmailPlaceholder: 'attendee@example.com',\n cardNumber: 'Card number',\n cardPlaceholder: '4242 4242 4242 4242',\n expiryDate: 'Expiry date',\n expiryPlaceholder: 'MM / YY',\n cvc: 'CVC',\n cvcPlaceholder: '123',\n keepMeUpdated: 'Keep me updated about this event and similar events',\n agreeToTerms: 'I agree to the terms and conditions',\n goBack: 'Go back',\n loadingPaymentForm: 'Loading secure payment form...',\n\n // ── Checkout form validation ──────────────────────────────────────\n firstNameRequired: 'First name is required',\n lastNameRequired: 'Last name is required',\n emailRequired: 'Email is required',\n emailInvalid: 'Enter a valid email address',\n emailInvalidShort: 'Enter a valid email',\n cardNumberRequired: 'Card number is required',\n expiryRequired: 'Expiry date is required',\n cvcRequired: 'CVC is required',\n mustAgreeTerms: 'You must agree to the terms',\n\n // ── Place order CTAs ──────────────────────────────────────────────\n placeOrder: 'Place order',\n completeOrder: 'Complete order',\n placingOrder: 'Placing order...',\n\n // ── Promo code ────────────────────────────────────────────────────\n havePromoCode: 'Have a promo code?',\n promoCode: 'Promo code',\n enterCode: 'Enter code',\n apply: 'Apply',\n remove: 'Remove',\n removePromoCode: 'Remove promo code',\n applyPromoCode: 'Apply promo code',\n checkingPromoCode: 'Checking promo code',\n checking: 'Checking...',\n promoApplied: 'Promo applied',\n\n // ── Navigation tabs (app-segments) ────────────────────────────────\n about: 'About',\n ticketsTab: 'Tickets',\n eventSections: 'Event sections',\n\n // ── Event details ─────────────────────────────────────────────────\n eventDetails: 'Event details',\n performers: 'Performers',\n faq: 'FAQ',\n frequentlyAskedQuestions: 'Frequently asked questions',\n doors: 'Doors',\n doorsOpenAt: 'Doors open at',\n\n // ── Series occurrences ────────────────────────────────────────────\n upcomingDates: 'Upcoming Dates',\n\n // ── Close / dismiss ───────────────────────────────────────────────\n closeTicketSelection: 'Close ticket selection',\n closeTicketSelector: 'Close ticket selector',\n\n // ── Accessibility ─────────────────────────────────────────────────\n ticketSelection: 'ticket selection',\n ticketsSelected: 'tickets selected',\n view: 'View',\n\n // ── Success page (public-calendar-flow) ────────────────────────────────\n youreIn: \"You're in!\",\n youreRegistered: \"You're registered!\",\n confirmed: 'confirmed',\n viewTickets: 'View tickets',\n order: 'Order',\n confirmationSentTo: 'Confirmation sent to',\n addToCalendar: 'Add to Calendar',\n googleCalendar: 'Google Calendar',\n appleCalendar: 'Apple Calendar (.ics)',\n share: 'Share',\n map: 'Map',\n backToEvent: 'Back to event',\n needHelp: 'Need help?',\n linkCopied: 'Link copied to clipboard!',\n copyLink: 'Copy this link:',\n addToAppleWallet: 'Add to Apple Wallet',\n saveToGoogleWallet: 'Save to Google Wallet',\n\n // ── Session timer / expiration modals ─────────────────────────────\n sessionExpiringSoon: 'Session expiring soon',\n sessionExpiringSoonMessage: 'Your checkout session will expire in {time}. Your selected tickets will be released back to inventory.',\n extensionsRemaining: '{count} extension{plural} remaining',\n continueCheckout: 'Continue checkout',\n okIllHurry: \"OK, I'll hurry\",\n maxExtensionsReached: 'Maximum extensions reached',\n wantToKeepTickets: 'Want to keep your tickets?',\n sessionExpiredMessage: 'Your checkout session has expired and your selected tickets have been released.',\n sessionExpired: 'Session expired',\n reservationTimedOut: 'Your reservation has timed out. Please select your tickets again to continue.',\n keepMyTickets: 'Keep my tickets',\n selectTicketsAgain: 'Select tickets again',\n extendingSession: 'Extending...',\n\n // ── MobileCta ─────────────────────────────────────────────────────\n selectTicketsLabel: 'Select Tickets',\n};\n\n/**\n * Merge user-provided label overrides with the defaults.\n * Shallow merge — any key provided by the consumer wins.\n *\n * @param {Record<string, string>} [userLabels] - Partial label overrides\n * @returns {Record<string, string>} Merged labels object\n */\nexport function mergeLabels(userLabels = {}) {\n return { ...defaultLabels, ...userLabels };\n}\n"],"names":["size","$","$$props","color","className","ctx","useIconWeight","resolved","svg","root_2","path","root","$$render","consequent","alternate","styles","formatLocal","date","options","locale","computeCtaState","event","tickets","cancelled","isRegistration","waitlistEnabled","now","eventEnd","hiddenAvailable","isHiddenTicketPurchasable","publicTickets","t","hasPurchasable","allSoldOut","allComingSoon","earliestSalesStart","ticket","salesBegin","salesEnd","remaining","isSoldOut","isScheduled","hasSalesEnded","startDate","diffMs","diffHours","diffDays","timeLabel","d","dateText","SCARCITY_THRESHOLDS","getScarcityLevel","total","pct","getScarcityText","level","context","getCtaConfig","apiTickets","result","toFriendlyReason","reason","getPriceDisplay","visibleTickets","hasDonation","paidTickets","hasFree","pricedTickets","minPrice","calculateTax","amount","taxPercentage","roundCurrency","DURATION","createDefaultPromoState","labels","mode","div","root_3","node_1","line","div_1","Text","node_2","text","node_3","formatCurrency","formatPriceOrFree","div_2","root_1","node_6","node_7","$0","text_3","div_3","node_8","node_9","text_5","consequent_1","consequent_2","div_4","node_11","node_12","text_7","consequent_3","div_5","node_14","node_15","text_9","consequent_4","div_6","node_17","node_18","text_11","consequent_5","div_7","node_20","node_21","text_13","consequent_6","div_8","node_19","node_22","node_23","text_15","consequent_7","defaultLabels","mergeLabels","userLabels"],"mappings":";;;;;kBAAA;;AAmBE,MAAMA,IAAIC,EAAA,KAAAC,GAAA,QAAA,GAAG,IAAI,GAAEC,0BAAQ,cAAc,GAASC,0BAAY,EAAE;AAEhE,QAAMC,IAAMC,EAAa;AACzB,MAAIC,IAAoBN,EAAA,QAAA,MAAAC,EAAA,UAAsBG,GAAK,UAAU,SAAS;MAGvEG,IAAEC,EAAA;;kBAAFD,CAAE;;;UAUyBE,IAAIC,EAAA;kBAAJD,CAAI;AAAA;;;;;AAAzB,MAAAT,EAAA,IAAAM,CAAQ,MAAK,SAAMK,EAAAC,CAAA,IAAAD,EAAAE,GAAA,EAAA;AAAA;;UAVzBN,CAAE;AAAF,IAAAP,EAAA,UAAAO,aACQJ,EAAS,CAAA,CAAA,GADjBH,EAAA,cAAAO,YAGQR,EAAI,CAAA,GAHZC,EAAA,cAAAO,aAISR,EAAI,CAAA,GAJbe,IAAAd,EAAA,UAAAO,mBAOcL,EAAK,GAAA;AAAA,kBAPnBK,CAAE;AAFK;AC8FD,SAASQ,EAAYC,GAAMC,GAASC,IAAS,SAAS;AACzD,SAAO,IAAI,KAAK,eAAeA,GAAQD,CAAO,EAAE,OAAOD,CAAI;AAC/D;AC7CO,SAASG,EACdC,GACAC,GACAJ,IAA2B,CAAA,GACjB;AACV,QAAM;AAAA,IACJ,WAAAK,IAAY;AAAA,IACZ,gBAAAC,IAAiB;AAAA,IACjB,iBAAAC,IAAkB;AAAA,EAAA,IAChBP,GACEQ,wBAAU,KAAA;AAEhB,MAAIH;AACF,WAAO,EA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;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,4BAA4B;AAAA,EAC5B,qBAAqB;AAAA,EACrB,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,sBAAsB;AAAA,EACtB,mBAAmB;AAAA,EACnB,uBAAuB;AAAA,EACvB,gBAAgB;AAAA,EAChB,qBAAqB;AAAA,EACrB,eAAe;AAAA,EACf,oBAAoB;AAAA,EACpB,kBAAkB;AAAA;AAAA,EAGlB,oBAAoB;AACtB;AASO,SAASC,GAAYC,IAAa,IAAI;AAC3C,SAAO,EAAE,GAAGF,GAAe,GAAGE,EAAU;AAC1C;","x_google_ignoreList":[0,1]}
@@ -1,6 +1,6 @@
1
1
  import "svelte/internal/disclose-version";
2
2
  import * as e from "svelte/internal/client";
3
- import { av as u, aw as d } from "./VenueCalendar-Cz7_VBC6.js";
3
+ import { aw as u, ax as d } from "./VenueCalendar-BRTDpyWV.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-Csm1WlvP.js.map
56
+ //# sourceMappingURL=modalManager.svelte-DBBSS3Zi.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modalManager.svelte-Csm1WlvP.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalHeader.svelte","../node_modules/@getmicdrop/svelte-components/dist/utils/modalManager.svelte.js"],"sourcesContent":["<script lang=\"ts\">\n import type { Snippet } from 'svelte';\n import { getModalContext } from './context.js';\n import { cn } from '../../utils/classNames.js';\n\n interface Props {\n class?: string;\n children?: Snippet;\n }\n\n let { class: className, children }: Props = $props();\n\n // Validates this component is inside ModalRoot\n getModalContext();\n</script>\n\n<div class={cn('shrink-0 px-6 pt-6 pb-3', className)}>\n {#if children}{@render children()}{/if}\n</div>\n","/**\n * behavior-modal-orchestration canonical (R-MODAL-1/3).\n *\n * Two rune primitives for modal open-state — pick by modal count:\n *\n * - `createModalState<T>()` — ONE modal. Replaces the dominant\n * `let showFooModal = $state(false)` + `let fooData = $state(null)` pair.\n * Use: `modal.isOpen`, `modal.data`, `modal.open(data?)`, `modal.close()`.\n *\n * - `createModalManager<Id>()` — a page with 3+ modals. Replaces N booleans\n * with one registry: `m.open(id, payload?)`, `m.close(id)`, `m.isOpen(id)`,\n * `m.payload(id)`, `m.active`, `m.closeAll()`. Coordinates exclusive-open\n * (opening one closes the others) and focus-return (focus goes back to the\n * element that was active before the first modal opened) in one place,\n * instead of the implicit-by-convention mutual exclusion seen across the\n * 4-modal accounts page and the 3-modal checkout hand-off chains.\n *\n * `createModalState` is lifted verbatim from micdrop-frontend's storeUtils\n * (zero consumers there); `createModalManager` is new — no modal coordinator\n * existed in any of the four repos.\n *\n * ## Binding to `ModalRoot` (`bind()`)\n * Both factories expose a `bind(...)` helper returning the props to spread onto a\n * `ModalRoot`, wiring its open-state to the manager:\n *\n * <ModalRoot {...modals.bind('edit')}>…</ModalRoot> // multi\n * <ModalRoot {...editModal.bind()}>…</ModalRoot> // single\n *\n * `bind()` returns a `{ get open, set open, oncancel }` object. The `open`\n * **getter** keeps `ModalRoot` reading the manager's live open-state (so opening\n * the modal anywhere re-renders it); `oncancel` closes the modal through the\n * manager. `ModalRoot`'s only self-close path (`resetModal`) always fires\n * `oncancel` before flipping its own local `open`, so escape / backdrop dismissal\n * routes back through the manager and the two never desync.\n *\n * This deliberately avoids the foot-gun it replaces: you can't write\n * `bind:open={modals.isOpen('edit')}` (a method call isn't an assignable lvalue),\n * and feeding `bind:open` a `$derived` is the read-only binding runtime bug. The\n * getter + `oncancel` spread sidesteps both — no per-page `$state` boolean, no\n * accidental derived binding. The `set open` setter completes the\n * getter/setter pair so the object also reads/writes cleanly when assigned to\n * programmatically. Scroll-lock + focus-trap stay in `ModalRoot`; the manager\n * owns only open-state, payload, exclusivity, and focus-return.\n */\n/**\n * Reactive open/close state for a single modal, with optional context data.\n *\n * @example\n * const editModal = createModalState<User>();\n * editModal.open(user); // editModal.isOpen === true, editModal.data === user\n * editModal.close(); // isOpen === false, data === null\n *\n * // Compose with ModalRoot by spreading the bind() props:\n * // <ModalRoot {...editModal.bind()}>…</ModalRoot>\n */\nexport function createModalState() {\n let isOpen = $state(false);\n let data = $state(null);\n return {\n get isOpen() {\n return isOpen;\n },\n get data() {\n return data;\n },\n open(newData) {\n data = newData ?? null;\n isOpen = true;\n },\n close() {\n isOpen = false;\n data = null;\n },\n toggle(newData) {\n if (isOpen) {\n isOpen = false;\n data = null;\n }\n else {\n data = newData ?? null;\n isOpen = true;\n }\n },\n bind() {\n return {\n get open() {\n return isOpen;\n },\n set open(value) {\n // Binding-driven open carries no data (data stays null); use the\n // explicit open(data) call when a payload is needed.\n if (value)\n isOpen = true;\n else {\n isOpen = false;\n data = null;\n }\n },\n oncancel() {\n isOpen = false;\n data = null;\n },\n };\n },\n };\n}\n/**\n * Coordinate a set of named modals on one page. See module docs for when to\n * reach for this over `createModalState`.\n *\n * @example\n * const modals = createModalManager<'create' | 'edit' | 'delete'>();\n * modals.open('edit', user);\n * modals.isOpen('edit'); // true\n * modals.payload<User>('edit');\n * modals.open('delete'); // 'edit' auto-closes (exclusive)\n * modals.closeAll(); // focus returns to the original trigger\n *\n * // Compose with ModalRoot by spreading the bind() props:\n * // <ModalRoot {...modals.bind('edit')}>…</ModalRoot>\n */\nexport function createModalManager(options = {}) {\n const exclusive = options.exclusive ?? true;\n const restoreFocus = options.restoreFocus ?? true;\n const modals = $state({});\n let returnFocusEl = null;\n function anyOpen() {\n return Object.values(modals).some((m) => m.open);\n }\n function isOpen(id) {\n return modals[id]?.open ?? false;\n }\n /** Remember the active element when transitioning from \"none open\" → \"open\". */\n function captureReturnFocus() {\n if (!restoreFocus || typeof document === 'undefined')\n return;\n if (!anyOpen()) {\n const el = document.activeElement;\n returnFocusEl = el instanceof HTMLElement ? el : null;\n }\n }\n /** Return focus to the captured trigger once everything is closed. */\n function restoreReturnFocus() {\n if (!restoreFocus)\n return;\n if (!anyOpen() && returnFocusEl) {\n returnFocusEl.focus();\n returnFocusEl = null;\n }\n }\n function open(id, payload) {\n captureReturnFocus();\n if (exclusive) {\n for (const key of Object.keys(modals)) {\n if (key !== id) {\n modals[key].open = false;\n modals[key].payload = null;\n }\n }\n }\n modals[id] = { open: true, payload: payload ?? null };\n }\n function close(id) {\n const entry = modals[id];\n if (entry) {\n entry.open = false;\n entry.payload = null;\n }\n restoreReturnFocus();\n }\n function toggle(id, payload) {\n if (isOpen(id))\n close(id);\n else\n open(id, payload);\n }\n function closeAll() {\n for (const key of Object.keys(modals)) {\n modals[key].open = false;\n modals[key].payload = null;\n }\n restoreReturnFocus();\n }\n return {\n isOpen,\n payload(id) {\n return modals[id]?.payload ?? null;\n },\n get active() {\n return Object.keys(modals).filter((key) => modals[key].open);\n },\n open,\n close,\n toggle,\n closeAll,\n bind(id) {\n return {\n get open() {\n return isOpen(id);\n },\n set open(value) {\n // Binding-driven open carries no payload; use open(id, payload) for that.\n if (value)\n open(id);\n else\n close(id);\n },\n oncancel() {\n close(id);\n },\n };\n },\n };\n}\n"],"names":["getModalContext","div","root","$0","$","cn","$$props","createModalState","isOpen","data","newData","value"],"mappings":";;;;iBAAA;iBAaEA,EAAe;MAGhBC,IAAGC,EAAA,eAAHD,CAAG;;;;;;;;;;UAAHA,CAAG,wCAAHA,GAAG,GAAAE,CAAA,GAAA,CAAA,MAAAC,EAAA,KAAQC,EAAG,2BAAyBC,EAAA,KAAA,CAAA,CAAA,CAAA,eAAvCL,CAAG;AAFI;ACyCD,SAASM,IAAmB;AAC/B,MAAIC,IAASJ,EAAA,MAAO,EAAK,GACrBK,IAAOL,EAAA,MAAO,IAAI;AACtB,SAAM;AAAA,IACF,IAAI,SAAS;AACT,mBAAOI,CAAM;AAAA,IACjB;AAAA,IACA,IAAI,OAAO;AACP,mBAAOC,CAAI;AAAA,IACf;AAAA,IACA,KAAKC,GAAS;YACVD,GAAOC,KAAW,MAAI,EAAA,GACtBN,EAAA,IAAAI,GAAS,EAAI;AAAA,IACjB;AAAA,IACA,QAAQ;AACJ,MAAAJ,EAAA,IAAAI,GAAS,EAAK,GACdJ,EAAA,IAAAK,GAAO,IAAI;AAAA,IACf;AAAA,IACA,OAAOC,GAAS;AACZ,MAAEN,EAAA,IAAEI,CAAM,KACNJ,EAAA,IAAAI,GAAS,EAAK,GACdJ,EAAA,IAAAK,GAAO,IAAI,YAGXA,GAAOC,KAAW,MAAI,EAAA,GACtBN,EAAA,IAAAI,GAAS,EAAI;AAAA,IAErB;AAAA,IACA,OAAO;AACH,aAAM;AAAA,QACF,IAAI,OAAO;AACP,uBAAOA,CAAM;AAAA,QACjB;AAAA,QACA,IAAI,KAAKG,GAAO;AAGZ,UAAIA,IAAKP,EAAA,IACLI,GAAS,EAAI,KAEbJ,EAAA,IAAAI,GAAS,EAAK,GACdJ,EAAA,IAAAK,GAAO,IAAI;AAAA,QAEnB;AAAA,QACA,WAAW;AACP,UAAAL,EAAA,IAAAI,GAAS,EAAK,GACdJ,EAAA,IAAAK,GAAO,IAAI;AAAA,QACf;AAAA;IAER;AAAA;AAER;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"modalManager.svelte-DBBSS3Zi.js","sources":["../node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/ModalHeader.svelte","../node_modules/@getmicdrop/svelte-components/dist/utils/modalManager.svelte.js"],"sourcesContent":["<script lang=\"ts\">\n import type { Snippet } from 'svelte';\n import { getModalContext } from './context.js';\n import { cn } from '../../utils/classNames.js';\n\n interface Props {\n class?: string;\n children?: Snippet;\n }\n\n let { class: className, children }: Props = $props();\n\n // Validates this component is inside ModalRoot\n getModalContext();\n</script>\n\n<div class={cn('shrink-0 px-6 pt-6 pb-3', className)}>\n {#if children}{@render children()}{/if}\n</div>\n","/**\n * behavior-modal-orchestration canonical (R-MODAL-1/3).\n *\n * Two rune primitives for modal open-state — pick by modal count:\n *\n * - `createModalState<T>()` — ONE modal. Replaces the dominant\n * `let showFooModal = $state(false)` + `let fooData = $state(null)` pair.\n * Use: `modal.isOpen`, `modal.data`, `modal.open(data?)`, `modal.close()`.\n *\n * - `createModalManager<Id>()` — a page with 3+ modals. Replaces N booleans\n * with one registry: `m.open(id, payload?)`, `m.close(id)`, `m.isOpen(id)`,\n * `m.payload(id)`, `m.active`, `m.closeAll()`. Coordinates exclusive-open\n * (opening one closes the others) and focus-return (focus goes back to the\n * element that was active before the first modal opened) in one place,\n * instead of the implicit-by-convention mutual exclusion seen across the\n * 4-modal accounts page and the 3-modal checkout hand-off chains.\n *\n * `createModalState` is lifted verbatim from micdrop-frontend's storeUtils\n * (zero consumers there); `createModalManager` is new — no modal coordinator\n * existed in any of the four repos.\n *\n * ## Binding to `ModalRoot` (`bind()`)\n * Both factories expose a `bind(...)` helper returning the props to spread onto a\n * `ModalRoot`, wiring its open-state to the manager:\n *\n * <ModalRoot {...modals.bind('edit')}>…</ModalRoot> // multi\n * <ModalRoot {...editModal.bind()}>…</ModalRoot> // single\n *\n * `bind()` returns a `{ get open, set open, oncancel }` object. The `open`\n * **getter** keeps `ModalRoot` reading the manager's live open-state (so opening\n * the modal anywhere re-renders it); `oncancel` closes the modal through the\n * manager. `ModalRoot`'s only self-close path (`resetModal`) always fires\n * `oncancel` before flipping its own local `open`, so escape / backdrop dismissal\n * routes back through the manager and the two never desync.\n *\n * This deliberately avoids the foot-gun it replaces: you can't write\n * `bind:open={modals.isOpen('edit')}` (a method call isn't an assignable lvalue),\n * and feeding `bind:open` a `$derived` is the read-only binding runtime bug. The\n * getter + `oncancel` spread sidesteps both — no per-page `$state` boolean, no\n * accidental derived binding. The `set open` setter completes the\n * getter/setter pair so the object also reads/writes cleanly when assigned to\n * programmatically. Scroll-lock + focus-trap stay in `ModalRoot`; the manager\n * owns only open-state, payload, exclusivity, and focus-return.\n */\n/**\n * Reactive open/close state for a single modal, with optional context data.\n *\n * @example\n * const editModal = createModalState<User>();\n * editModal.open(user); // editModal.isOpen === true, editModal.data === user\n * editModal.close(); // isOpen === false, data === null\n *\n * // Compose with ModalRoot by spreading the bind() props:\n * // <ModalRoot {...editModal.bind()}>…</ModalRoot>\n */\nexport function createModalState() {\n let isOpen = $state(false);\n let data = $state(null);\n return {\n get isOpen() {\n return isOpen;\n },\n get data() {\n return data;\n },\n open(newData) {\n data = newData ?? null;\n isOpen = true;\n },\n close() {\n isOpen = false;\n data = null;\n },\n toggle(newData) {\n if (isOpen) {\n isOpen = false;\n data = null;\n }\n else {\n data = newData ?? null;\n isOpen = true;\n }\n },\n bind() {\n return {\n get open() {\n return isOpen;\n },\n set open(value) {\n // Binding-driven open carries no data (data stays null); use the\n // explicit open(data) call when a payload is needed.\n if (value)\n isOpen = true;\n else {\n isOpen = false;\n data = null;\n }\n },\n oncancel() {\n isOpen = false;\n data = null;\n },\n };\n },\n };\n}\n/**\n * Coordinate a set of named modals on one page. See module docs for when to\n * reach for this over `createModalState`.\n *\n * @example\n * const modals = createModalManager<'create' | 'edit' | 'delete'>();\n * modals.open('edit', user);\n * modals.isOpen('edit'); // true\n * modals.payload<User>('edit');\n * modals.open('delete'); // 'edit' auto-closes (exclusive)\n * modals.closeAll(); // focus returns to the original trigger\n *\n * // Compose with ModalRoot by spreading the bind() props:\n * // <ModalRoot {...modals.bind('edit')}>…</ModalRoot>\n */\nexport function createModalManager(options = {}) {\n const exclusive = options.exclusive ?? true;\n const restoreFocus = options.restoreFocus ?? true;\n const modals = $state({});\n let returnFocusEl = null;\n function anyOpen() {\n return Object.values(modals).some((m) => m.open);\n }\n function isOpen(id) {\n return modals[id]?.open ?? false;\n }\n /** Remember the active element when transitioning from \"none open\" → \"open\". */\n function captureReturnFocus() {\n if (!restoreFocus || typeof document === 'undefined')\n return;\n if (!anyOpen()) {\n const el = document.activeElement;\n returnFocusEl = el instanceof HTMLElement ? el : null;\n }\n }\n /** Return focus to the captured trigger once everything is closed. */\n function restoreReturnFocus() {\n if (!restoreFocus)\n return;\n if (!anyOpen() && returnFocusEl) {\n returnFocusEl.focus();\n returnFocusEl = null;\n }\n }\n function open(id, payload) {\n captureReturnFocus();\n if (exclusive) {\n for (const key of Object.keys(modals)) {\n if (key !== id) {\n modals[key].open = false;\n modals[key].payload = null;\n }\n }\n }\n modals[id] = { open: true, payload: payload ?? null };\n }\n function close(id) {\n const entry = modals[id];\n if (entry) {\n entry.open = false;\n entry.payload = null;\n }\n restoreReturnFocus();\n }\n function toggle(id, payload) {\n if (isOpen(id))\n close(id);\n else\n open(id, payload);\n }\n function closeAll() {\n for (const key of Object.keys(modals)) {\n modals[key].open = false;\n modals[key].payload = null;\n }\n restoreReturnFocus();\n }\n return {\n isOpen,\n payload(id) {\n return modals[id]?.payload ?? null;\n },\n get active() {\n return Object.keys(modals).filter((key) => modals[key].open);\n },\n open,\n close,\n toggle,\n closeAll,\n bind(id) {\n return {\n get open() {\n return isOpen(id);\n },\n set open(value) {\n // Binding-driven open carries no payload; use open(id, payload) for that.\n if (value)\n open(id);\n else\n close(id);\n },\n oncancel() {\n close(id);\n },\n };\n },\n };\n}\n"],"names":["getModalContext","div","root","$0","$","cn","$$props","createModalState","isOpen","data","newData","value"],"mappings":";;;;iBAAA;iBAaEA,EAAe;MAGhBC,IAAGC,EAAA,eAAHD,CAAG;;;;;;;;;;UAAHA,CAAG,wCAAHA,GAAG,GAAAE,CAAA,GAAA,CAAA,MAAAC,EAAA,KAAQC,EAAG,2BAAyBC,EAAA,KAAA,CAAA,CAAA,CAAA,eAAvCL,CAAG;AAFI;ACyCD,SAASM,IAAmB;AAC/B,MAAIC,IAASJ,EAAA,MAAO,EAAK,GACrBK,IAAOL,EAAA,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