@getmicdrop/venue-calendar 4.3.34 → 4.3.36

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 (128) hide show
  1. package/dist/{ArrowLeftIcon-C5NUNFeL.js → ArrowLeftIcon-bH5d6LQO.js} +1 -1
  2. package/dist/{BlockPlaceholder-BFgIxUDA.js → BlockPlaceholder-yXhu9HrQ.js} +1 -1
  3. package/dist/{Calendar-Cbg9VnYr.js → Calendar-BjE02HrG.js} +5 -5
  4. package/dist/{CalendarFoundryView-DcjrxbP1.js → CalendarFoundryView-BytAeaqk.js} +70 -65
  5. package/dist/{CalendarIcon-jP9rYFKk.js → CalendarIcon-Cg9UUTeu.js} +1 -1
  6. package/dist/{CartView-BVaW78NV.js → CartView-BVAj8ns8.js} +138 -138
  7. package/dist/{Checkout-DNs1cjbB.js → Checkout-Cw_mvXUd.js} +16 -16
  8. package/dist/{Checkout-BnfAQRI6.js → Checkout-DFoOLl6K.js} +27 -28
  9. package/dist/{CheckoutTimer-Cwt4Ftza.js → CheckoutTimer-BDxy_Fou.js} +3 -3
  10. package/dist/{ChevronDownIcon-CsKZMqNH.js → ChevronDownIcon-BA40Kl0C.js} +1 -1
  11. package/dist/{ClockIcon-HiO23hRG.js → ClockIcon-DjC-doTv.js} +1 -1
  12. package/dist/{CloseIcon-B8Sm_5ym.js → CloseIcon-BdwmaxDK.js} +1 -1
  13. package/dist/{CollectionView-BK1iSWcA.js → CollectionView-BRJKmgmu.js} +13 -13
  14. package/dist/{CropImage-B9d215n1.js → CropImage-Ct6MRg_a.js} +3 -3
  15. package/dist/{Event-AfkOD3uO.js → Event-CJZetg3I.js} +24 -25
  16. package/dist/{EventPage-Cdt0a5QJ.js → EventPage-Bt5872Cp.js} +111 -111
  17. package/dist/{Input-BLMJJJfH.js → Input-o-1w57H2.js} +2 -2
  18. package/dist/{MailIcon-KYN2vf3S.js → MailIcon-DCMMhuHr.js} +1 -1
  19. package/dist/{Modal-gEHiBqWZ.js → Modal-DZ8fudB4.js} +2 -2
  20. package/dist/{ModalFooter-D21lJobf.js → ModalFooter-T1gpnywp.js} +1 -1
  21. package/dist/{ModalHeader-fa2P2o57.js → ModalHeader-DkKpWKcG.js} +1 -1
  22. package/dist/{PasswordInput-D4q7ha7D.js → PasswordInput-zX7J--jb.js} +2 -2
  23. package/dist/{RecommendationsRail-BZf1DOmo.js → RecommendationsRail-DcIHxWHf.js} +7 -7
  24. package/dist/{ScarcityBadge-AHlWKMNd.js → ScarcityBadge-CwYWJOsJ.js} +4 -4
  25. package/dist/{SeriesPage-Dl6PBlrN.js → SeriesPage-ByxpytgT.js} +4 -4
  26. package/dist/Success-CFbOlDG7.js +887 -0
  27. package/dist/{TagIcon-DoPOkfiA.js → TagIcon-CkfQvNGi.js} +1 -1
  28. package/dist/Textarea-D24kYZAW.js +63 -0
  29. package/dist/{ViewTicketsEmbed-kOPSXNDx.js → ViewTicketsEmbed-KbA05I2k.js} +236 -298
  30. package/dist/{WarningCircleIcon-CFfLr8KS.js → WarningCircleIcon-Iq24pJJf.js} +1 -1
  31. package/dist/{WarningTriIcon-DNmtiOjd.js → WarningTriIcon-Dw5GnHpq.js} +1 -1
  32. package/dist/__SKIP_PATHS__-C0ixDSSm.js +6 -0
  33. package/dist/api/api.cjs +1 -1
  34. package/dist/api/api.mjs +264 -242
  35. package/dist/api/index.d.ts +1 -1
  36. package/dist/api/venues.d.ts +7 -0
  37. package/dist/{api-CEmt-15i.js → api-DRQ3j7AT.js} +171 -119
  38. package/dist/{browser-B_8qS4Bh.js → browser-DxdP6IWt.js} +169 -231
  39. package/dist/{constants-DZLNBlGm.js → constants-YYsgll7v.js} +8 -7
  40. package/dist/{copyToClipboard-ajE-WfxH.js → copyToClipboard-C3IBl2Z1.js} +1 -1
  41. package/dist/{de-C4OeiQ3V.js → de-BY5vJUGN.js} +1 -1
  42. package/dist/{de-CrMbvuuV.js → de-CFh1o4IO.js} +1 -0
  43. package/dist/{defaultLabels-OQGIv2n1.js → defaultLabels-Zp9QbN37.js} +1 -1
  44. package/dist/defaults-BMbXcKP9.js +67 -0
  45. package/dist/{es-CmbcTI7U.js → es-By1tBWcL.js} +1 -0
  46. package/dist/{es-CW2TmxIh.js → es-jUq9nrJk.js} +1 -1
  47. package/dist/{navigation-BHE6fobo.js → event-c9mHeEJz.js} +24 -57
  48. package/dist/{event-transform-Biw1swA_.js → event-transform-BchpSia3.js} +25 -25
  49. package/dist/{eventStatusStream-lf8vfXK6.js → eventStatusStream-dDHNTEOf.js} +1 -1
  50. package/dist/{fr-CAQjiRpV.js → fr-BF6a7cw7.js} +1 -0
  51. package/dist/{fr-C7djAcvW.js → fr-BhVwmvlV.js} +1 -1
  52. package/dist/{href-CPeCYE4T.js → href-1o0O9xTA.js} +2 -2
  53. package/dist/{i18n-Bmvq2TcR.js → i18n-1R1ah9KT.js} +18 -18
  54. package/dist/i18n-i-1mHdch.js +28 -0
  55. package/dist/{id-CN96JRiT.js → id-CWU5ZvLv.js} +1 -1
  56. package/dist/{id-Bz5RjCc1.js → id-Lo_q281j.js} +1 -0
  57. package/dist/{imageOptimizer-CXtAyNGI.js → imageOptimizer-DkJp4tei.js} +2 -2
  58. package/dist/{it-wMX0iXW-.js → it-CB7RtPbU.js} +1 -0
  59. package/dist/{it-DFWEl9q6.js → it-wlDmN3hH.js} +1 -1
  60. package/dist/{ja-BHzUvYMy.js → ja-DOzvvYpK.js} +1 -0
  61. package/dist/{ja-CMVyfs3-.js → ja-DpA7hJaC.js} +1 -1
  62. package/dist/{ko-zuSw9I4o.js → ko-DdWLaFvo.js} +1 -1
  63. package/dist/{ko-hy8WDqbp.js → ko-b-vWxFpt.js} +1 -0
  64. package/dist/{__SKIP_PATHS__-BQgiZG5h.js → liveAnnouncer-D3xVL7qA.js} +1 -6
  65. package/dist/locales/{4.3.34 → 4.3.36}/flow/de.js +1 -1
  66. package/dist/locales/{4.3.34 → 4.3.36}/flow/es.js +1 -1
  67. package/dist/locales/{4.3.34 → 4.3.36}/flow/fr.js +1 -1
  68. package/dist/locales/{4.3.34 → 4.3.36}/flow/id.js +1 -1
  69. package/dist/locales/{4.3.34 → 4.3.36}/flow/it.js +1 -1
  70. package/dist/locales/{4.3.34 → 4.3.36}/flow/ja.js +1 -1
  71. package/dist/locales/{4.3.34 → 4.3.36}/flow/ko.js +1 -1
  72. package/dist/locales/{4.3.34 → 4.3.36}/flow/nl.js +1 -1
  73. package/dist/locales/{4.3.34 → 4.3.36}/flow/pl.js +1 -1
  74. package/dist/locales/{4.3.34 → 4.3.36}/flow/pt-br.js +1 -1
  75. package/dist/locales/{4.3.34 → 4.3.36}/flow/tr.js +1 -1
  76. package/dist/locales/{4.3.34 → 4.3.36}/flow/zh.js +1 -1
  77. package/dist/locales/4.3.36/main/de.js +1 -0
  78. package/dist/locales/4.3.36/main/es.js +1 -0
  79. package/dist/locales/4.3.36/main/fr.js +1 -0
  80. package/dist/locales/4.3.36/main/id.js +1 -0
  81. package/dist/locales/4.3.36/main/it.js +1 -0
  82. package/dist/locales/4.3.36/main/ja.js +1 -0
  83. package/dist/locales/4.3.36/main/ko.js +1 -0
  84. package/dist/locales/4.3.36/main/nl.js +1 -0
  85. package/dist/locales/4.3.36/main/pl.js +1 -0
  86. package/dist/locales/4.3.36/main/pt-br.js +1 -0
  87. package/dist/locales/4.3.36/main/tr.js +1 -0
  88. package/dist/locales/4.3.36/main/zh.js +1 -0
  89. package/dist/{nl-CkQAHeS-.js → nl-BwxAfMRa.js} +1 -1
  90. package/dist/{nl-a59DlSFb.js → nl-Dazc9kaV.js} +1 -0
  91. package/dist/{order-totals-yAfj2LIo.js → order-totals-BEUOdkCb.js} +3 -3
  92. package/dist/{orders-Cp6dGII_.js → orders-jQz7QFjK.js} +1 -1
  93. package/dist/{phoneUtils-CFZyDPA3.js → phoneUtils-CbiDWdEC.js} +1 -1
  94. package/dist/{pixels-Tg_bLOjd.js → pixels-DnbRn43e.js} +2 -2
  95. package/dist/{pl-DuIttORH.js → pl-CuRdwJXc.js} +1 -1
  96. package/dist/{pl-Dmn5DPMF.js → pl-tSyy-lx_.js} +1 -0
  97. package/dist/{promo-RdgJBu-u.js → promo-BrstveEs.js} +1 -1
  98. package/dist/{pt-br-DkLlN_4i.js → pt-br-BUWJLxKf.js} +1 -1
  99. package/dist/{pt-br-DA_CwwjY.js → pt-br-BxzrK97M.js} +1 -0
  100. package/dist/{scarcity-CgNGIioR.js → scarcity-CwnIxi1J.js} +1 -1
  101. package/dist/{serverTotals-PF6gaenQ.js → serverTotals-D2-FzkdS.js} +1 -1
  102. package/dist/{showcase-state-options-C4_hcf2M.js → showcase-state-options-CDOHpho6.js} +1 -1
  103. package/dist/{to-event-card-props-CWfWAJWW.js → to-event-card-props-ChcFQ_rl.js} +2 -2
  104. package/dist/{tr-BE24jHAY.js → tr-DTe5Urub.js} +1 -1
  105. package/dist/{tr-DM96GLXF.js → tr-DhAMB3UQ.js} +1 -0
  106. package/dist/{utils-DlVakPI5.js → utils-DvGzK5Cl.js} +2 -2
  107. package/dist/venue-calendar.css +1 -1
  108. package/dist/venue-calendar.es.js +894 -892
  109. package/dist/venue-calendar.iife.js +52 -52
  110. package/dist/venue-calendar.umd.js +53 -53
  111. package/dist/{z-index-BgKs9X9U.js → z-index-Bo0dqmiq.js} +1 -1
  112. package/dist/{zh-cUmo9Rzd.js → zh-BnBN3ggx.js} +1 -1
  113. package/dist/{zh-CdWAelYB.js → zh-C2-VLP_R.js} +1 -0
  114. package/package.json +2 -2
  115. package/dist/Success-DDE54FBH.js +0 -863
  116. package/dist/i18n-Lx3QVVPj.js +0 -28
  117. package/dist/locales/4.3.34/main/de.js +0 -1
  118. package/dist/locales/4.3.34/main/es.js +0 -1
  119. package/dist/locales/4.3.34/main/fr.js +0 -1
  120. package/dist/locales/4.3.34/main/id.js +0 -1
  121. package/dist/locales/4.3.34/main/it.js +0 -1
  122. package/dist/locales/4.3.34/main/ja.js +0 -1
  123. package/dist/locales/4.3.34/main/ko.js +0 -1
  124. package/dist/locales/4.3.34/main/nl.js +0 -1
  125. package/dist/locales/4.3.34/main/pl.js +0 -1
  126. package/dist/locales/4.3.34/main/pt-br.js +0 -1
  127. package/dist/locales/4.3.34/main/tr.js +0 -1
  128. package/dist/locales/4.3.34/main/zh.js +0 -1
@@ -35,7 +35,7 @@ export type { CartReservationView, CartView } from './orders.js';
35
35
  export { validatePromoCode, hasPromoCodes, applyPromoCode, removePromoCode, } from './promo.js';
36
36
  export { fetchEventDetails, fetchEventTickets, fetchEventPerformers, fetchAllVenues, fetchVenueEvents, getMonthEvents, getOrgMonthEvents, getSeriesOccurrences, fetchSeriesOccurrences, fetchPublicCollection, resolvePublicEntity, checkEventPassword, checkCollectionPassword, testNetworkConnection, fetchEventDetailsResult, fetchEventTicketsResult, fetchEventPerformersResult, fetchAllVenuesResult, fetchVenueEventsResult, getMonthEventsResult, getOrgMonthEventsResult, getSeriesOccurrencesResult, fetchSeriesOccurrencesResult, } from './events.js';
37
37
  export { ok, err, errNotFound, isOk, isErr, unwrapOr, type Result, } from './result.js';
38
- export { getVenue, getVenueFees, getVenueBySlug } from './venues.js';
38
+ export { getVenue, getVenueFees, getVenueBySlug, hasPublishedSite, } from './venues.js';
39
39
  export { createGiftCardPurchase, applyGiftCard, removeGiftCard, completeGiftCardPayment, } from './gift-cards.js';
40
40
  export type { GiftCardPurchaseRequest, GiftCardPurchaseResponse, ApplyGiftCardResult, RemoveGiftCardResult, CompleteGiftCardPaymentInput, CompleteGiftCardPaymentResult, } from './gift-cards.js';
41
41
  export { joinWaitlist, getWaitlistStatus, validateWaitlistToken, requeueWaitlistToFront, formatWaitlistWindow, } from './waitlist.js';
@@ -31,3 +31,10 @@ export declare function getVenueFees(venueId: string | number): Promise<{
31
31
  * @returns Venue details or null on error
32
32
  */
33
33
  export declare function getVenueBySlug(slug: string): Promise<Venue | null>;
34
+ /**
35
+ * Whether the venue has a published site — the test for drawing the calendar's
36
+ * gift-card link, whose destination lives on that site. Reads the public
37
+ * published-site read for the venue's own host. Any failure answers false: the
38
+ * link is optional chrome, same as `getVenue`'s swallow.
39
+ */
40
+ export declare function hasPublishedSite(venueSlug: string | null | undefined): Promise<boolean>;
@@ -1,7 +1,7 @@
1
1
  import { E as e } from "./Button-klwKgfhG.js";
2
- import { w as t } from "./scarcity-CgNGIioR.js";
3
- import { A as n, M as r, O as i, _ as a, c as o, g as s, l as c, v as l, x as u, z as d } from "./defaultLabels-OQGIv2n1.js";
4
- import { I as f, L as p, M as m, N as h, c as g, j as _, y as ee, z as v } from "./orders-Cp6dGII_.js";
2
+ import { w as t } from "./scarcity-CwnIxi1J.js";
3
+ import { A as n, M as r, O as i, _ as a, c as o, g as s, l as c, v as l, x as u, z as d } from "./defaultLabels-Zp9QbN37.js";
4
+ import { H as f, I as p, L as m, M as h, N as g, c as ee, j as _, y as te, z as v } from "./orders-jQz7QFjK.js";
5
5
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/ticket.js
6
6
  var y = {
7
7
  EVERYWHERE: 0,
@@ -18,7 +18,7 @@ function x(e) {
18
18
  function S(e, t) {
19
19
  return e.totalCapacity ?? e.quantity ?? t;
20
20
  }
21
- function te(e) {
21
+ function C(e) {
22
22
  let t = n(), r = a(e.effectiveSalesBegin, e.salesBegin, e.saleStartDate) ?? null, i = a(e.effectiveSalesEnd, e.salesEnd, e.saleEndDate) ?? null, o = u(r), c = u(i);
23
23
  if (!l(r) && !o) return "scheduled";
24
24
  if (!l(i) && !c) return "sales_ended";
@@ -33,7 +33,7 @@ function ne(e, t = {}) {
33
33
  let n = e;
34
34
  return t.excludeDoorOnly && (n = n.filter((e) => e.salesChannel !== y.BOX_OFFICE_ONLY)), t.publicOnly && (n = n.filter((e) => e.visibility === b.VISIBLE)), n;
35
35
  }
36
- function C(e) {
36
+ function re(e) {
37
37
  if (!Array.isArray(e) || e.length === 0) return {
38
38
  totalRemaining: 0,
39
39
  totalCapacity: 0,
@@ -50,29 +50,29 @@ function C(e) {
50
50
  isSoldOut: t === 0
51
51
  };
52
52
  }
53
- function w(e) {
53
+ function ie(e) {
54
54
  if (!Array.isArray(e) || e.length === 0) return 0;
55
55
  let t = e.map((e) => Number(e.price ?? e.ticketPrice)).filter((e) => Number.isFinite(e) && e > 0);
56
56
  return t.length > 0 ? Math.min(...t) : 0;
57
57
  }
58
58
  //#endregion
59
59
  //#region node_modules/@getmicdrop/svelte-components/dist/transforms/event.js
60
- function T(e) {
60
+ function ae(e) {
61
61
  return e.availableTickets || e.available_tickets || e.tickets || [];
62
62
  }
63
- function E(e) {
63
+ function w(e) {
64
64
  if (!e || !(e.isHidden === !0 || typeof e.visibility == "number" && e.visibility >= b.HIDDEN) || e.salesChannel === y.BOX_OFFICE_ONLY) return !1;
65
65
  let t = n(), r = a(e.effectiveSalesBegin, e.salesBegin, e.salesStart, e.saleBegin, e.onSaleStart, e.saleStartDate), i = a(e.effectiveSalesEnd, e.salesEnd, e.saleEnd, e.onSaleEnd, e.saleEndDate), o = u(r), c = u(i);
66
66
  if (!l(r) && !o || !l(i) && !c || o && s(o, t) > 0 || c && s(c, t) < 0) return !1;
67
67
  let d = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity;
68
68
  return !(e.soldOut || d != null && d <= 0);
69
69
  }
70
- function re(e) {
71
- return e ? e.hasHiddenTickets === !0 || T(e).some(E) : !1;
70
+ function oe(e) {
71
+ return e ? e.hasHiddenTickets === !0 || ae(e).some(w) : !1;
72
72
  }
73
73
  //#endregion
74
74
  //#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/NotFoundError.js
75
- var D = class extends i {
75
+ var T = class extends i {
76
76
  constructor(e, t) {
77
77
  let n = t ? `${e} with ID ${t} not found` : `${e} not found`;
78
78
  super(n, "NOT_FOUND", {
@@ -87,11 +87,11 @@ var D = class extends i {
87
87
  getUserMessage(e) {
88
88
  return c(e)?.fromCode?.(this.code) || o(this.resourceType.toLowerCase());
89
89
  }
90
- }, ie = {
90
+ }, se = {
91
91
  primary: "#0284fe",
92
92
  secondary: "#1d4ed8",
93
93
  tertiary: "#2563eb"
94
- }, O = {
94
+ }, E = {
95
95
  50: "#f9fafb",
96
96
  100: "#f3f4f6",
97
97
  200: "#e5e7eb",
@@ -102,31 +102,31 @@ var D = class extends i {
102
102
  700: "#374151",
103
103
  800: "#1f2937",
104
104
  900: "#111827"
105
- }, k = {
105
+ }, D = {
106
106
  text: {
107
- primary: O[900],
108
- secondary: O[500],
109
- muted: O[400],
107
+ primary: E[900],
108
+ secondary: E[500],
109
+ muted: E[400],
110
110
  inverted: "#ffffff"
111
111
  },
112
112
  background: {
113
113
  primary: "#ffffff",
114
- secondary: O[50],
115
- tertiary: O[100],
116
- dark: O[800],
117
- darker: O[900]
114
+ secondary: E[50],
115
+ tertiary: E[100],
116
+ dark: E[800],
117
+ darker: E[900]
118
118
  },
119
119
  border: {
120
- default: O[200],
121
- strong: O[300],
122
- muted: O[100],
120
+ default: E[200],
121
+ strong: E[300],
122
+ muted: E[100],
123
123
  light: "#e0e0e0"
124
124
  },
125
125
  success: "#16a34a",
126
126
  error: "#ef4444",
127
127
  warning: "#f59e0b",
128
128
  info: "#3b82f6"
129
- }, A = {
129
+ }, O = {
130
130
  blue: {
131
131
  200: "#bfdbfe",
132
132
  500: "#3b82f6",
@@ -177,35 +177,35 @@ var D = class extends i {
177
177
  300: "#ffeaa7"
178
178
  },
179
179
  coral: "#ff6b6b"
180
- }, j = { defaultThemePrimary: "#7c3aed" }, ae = {
181
- blue: ie.tertiary,
180
+ }, ce = { defaultThemePrimary: "#7c3aed" }, k = {
181
+ blue: se.tertiary,
182
182
  black: "#000000",
183
- darkGray: O[700],
183
+ darkGray: E[700],
184
184
  gray: "#666666",
185
- lightGray: O[400],
186
- white: k.background.primary,
185
+ lightGray: E[400],
186
+ white: D.background.primary,
187
187
  offWhite: "#fafafa",
188
- lightBorder: O[200],
188
+ lightBorder: E[200],
189
189
  border: "#cccccc",
190
- orange: k.warning,
191
- red: k.error,
192
- green: A.green[500]
193
- }, M = e("VC");
194
- function oe(e, t) {
190
+ orange: D.warning,
191
+ red: D.error,
192
+ green: O.green[500]
193
+ }, A = e("VC");
194
+ function j(e, t) {
195
195
  if (e === 404) return "Promo code isn't valid.";
196
196
  let n = (t ?? "").toLowerCase();
197
197
  return e === 400 ? n.includes("not yet active") ? "Promo code doesn't apply." : n.includes("expired") ? "Promo code expired." : n.includes("limit") ? "Promo code has reached its limit." : "Promo code isn't valid." : "Failed to validate code";
198
198
  }
199
- async function se(e, t) {
199
+ async function M(e, t) {
200
200
  try {
201
201
  if (!t || !t.trim()) return {
202
202
  valid: !1,
203
203
  error: "Promo code is required"
204
204
  };
205
- let n = encodeURIComponent(t.trim()), r = await m(`/promo-codes/validate/${e}/${n}`);
205
+ let n = encodeURIComponent(t.trim()), r = await h(`/promo-codes/validate/${e}/${n}`);
206
206
  if (!r.success) return {
207
207
  valid: !1,
208
- error: oe(r.statusCode, r.error)
208
+ error: j(r.statusCode, r.error)
209
209
  };
210
210
  let i = r.data;
211
211
  return {
@@ -220,31 +220,31 @@ async function se(e, t) {
220
220
  applyToTicketIds: i.applyToTicketIds
221
221
  };
222
222
  } catch (e) {
223
- return M.error("Error validating promo code:", e), {
223
+ return A.error("Error validating promo code:", e), {
224
224
  valid: !1,
225
225
  error: "Network error validating code"
226
226
  };
227
227
  }
228
228
  }
229
- async function ce(e) {
229
+ async function le(e) {
230
230
  try {
231
- let t = await m(`/promo-codes/check/${e}`);
231
+ let t = await h(`/promo-codes/check/${e}`);
232
232
  return !t.success || t.data.hasPromoCodes === !0;
233
233
  } catch (e) {
234
- return M.error("Error checking promo codes availability:", e), !0;
234
+ return A.error("Error checking promo codes availability:", e), !0;
235
235
  }
236
236
  }
237
- async function le(e, t, n) {
237
+ async function ue(e, t, n) {
238
238
  try {
239
239
  let r = { promoCode: t };
240
240
  n && Object.keys(n).length > 0 && (r.productQuantities = n);
241
- let i = await h(`${f()}/cart/${e}/apply-promo`, r);
241
+ let i = await g(`${p()}/cart/${e}/apply-promo`, r);
242
242
  return i.success ? { success: !0 } : {
243
243
  success: !1,
244
244
  error: i.error || "Failed to apply promo code"
245
245
  };
246
246
  } catch (e) {
247
- return M.error("Error applying promo code:", e), {
247
+ return A.error("Error applying promo code:", e), {
248
248
  success: !1,
249
249
  error: "Network error applying code"
250
250
  };
@@ -271,142 +271,194 @@ function F(e) {
271
271
  notFound: !0
272
272
  };
273
273
  }
274
- function I(e, t) {
274
+ function de(e, t) {
275
275
  return e.ok ? e.data : t;
276
276
  }
277
277
  //#endregion
278
278
  //#region src/lib/api/route-manifest.ts
279
- var L = "/api/v2/public", R = "/api/orders/v2/public", z = "/api/orders/v2", B = "00000000-0000-0000-0000-000000000000";
280
- `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}${B}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}`, `${L}${B}`, `${R}`, `${R}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${R}`, `${R}${B}`, `${z}`, `${z}`, `${R}`, `${R}`, `${R}`, `${R}`, `${L}`, `${L}${B}`, `${L}`, `${L}`;
279
+ var I = "/api/v2/public", L = "/api/orders/v2/public", R = "/api/orders/v2", z = "00000000-0000-0000-0000-000000000000";
280
+ `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}${z}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}`, `${I}${z}`, `${L}`, `${L}`, `${L}`, `${L}${z}`, `${L}`, `${L}${z}`, `${L}`, `${L}${z}`, `${L}`, `${L}${z}`, `${L}`, `${L}${z}`, `${L}`, `${L}${z}`, `${L}`, `${L}${z}`, `${L}`, `${L}${z}`, `${R}`, `${R}`, `${L}`, `${L}`, `${L}`, `${L}`, `${I}`, `${I}${z}`, `${I}`, `${I}`;
281
281
  //#endregion
282
282
  //#region src/lib/api/events.ts
283
- var V = e("VC"), H = /* @__PURE__ */ new Map();
284
- async function U(e, t = fetch, n) {
283
+ var B = e("VC"), V = /* @__PURE__ */ new Map();
284
+ async function H(e, t = fetch, n) {
285
285
  let r = n ? `${e}:pw` : String(e);
286
286
  if (t === fetch) {
287
- let e = H.get(r);
287
+ let e = V.get(r);
288
288
  if (e) return e;
289
289
  }
290
290
  let i = (async () => {
291
291
  try {
292
- let r = await t(n ? `${p()}/events/${e}?password=${encodeURIComponent(n)}` : `${p()}/events/${e}`);
293
- if (!r.ok) return r.status === 404 ? F("event_not_found") : (V.error(`Failed to fetch event details: ${r.status}`), P("event_fetch_failed"));
292
+ let r = await t(n ? `${m()}/events/${e}?password=${encodeURIComponent(n)}` : `${m()}/events/${e}`);
293
+ if (!r.ok) return r.status === 404 ? F("event_not_found") : (B.error(`Failed to fetch event details: ${r.status}`), P("event_fetch_failed"));
294
294
  let i = await r.json();
295
295
  return i ? N(i) : F("event_not_found");
296
296
  } catch (e) {
297
- return V.error("Error fetching event details:", e), P("event_fetch_failed");
297
+ return B.error("Error fetching event details:", e), P("event_fetch_failed");
298
298
  }
299
299
  })();
300
- return t === fetch && (H.set(r, i), i.finally(() => {
301
- H.get(r) === i && H.delete(r);
300
+ return t === fetch && (V.set(r, i), i.finally(() => {
301
+ V.get(r) === i && V.delete(r);
302
302
  })), i;
303
303
  }
304
- async function W(e, t = fetch, n) {
305
- let r = await U(e, t, n);
304
+ async function fe(e, t = fetch, n) {
305
+ let r = await H(e, t, n);
306
306
  return r.ok ? r.data : null;
307
307
  }
308
- async function G(e, t, n = (e) => e) {
308
+ async function U(e, t, n = (e) => e) {
309
309
  try {
310
310
  let r = await v(e);
311
- return r ? N(n(r)) : (V.error(`Failed to load (${t}): network or server error`), P(t));
311
+ return r ? N(n(r)) : (B.error(`Failed to load (${t}): network or server error`), P(t));
312
312
  } catch (e) {
313
- return V.error(`Error loading (${t}):`, e), P(t);
313
+ return B.error(`Error loading (${t}):`, e), P(t);
314
314
  }
315
315
  }
316
- function ue(e) {
316
+ function pe(e) {
317
317
  return Array.isArray(e) ? e : [];
318
318
  }
319
- async function K(e, t) {
319
+ async function W(e, t) {
320
320
  let n = t?.trim(), r = n ? `?promoCode=${encodeURIComponent(n)}` : "";
321
- return G(`${p()}/tickets/event/${e}${r}`, "tickets_fetch_failed", ue);
321
+ return U(`${m()}/tickets/event/${e}${r}`, "tickets_fetch_failed", pe);
322
322
  }
323
- async function de(e, t) {
324
- return I(await K(e, t), []);
323
+ async function me(e, t) {
324
+ return de(await W(e, t), []);
325
325
  }
326
- function q(e) {
326
+ function he(e) {
327
327
  return Array.isArray(e) ? e : Array.isArray(e.events) ? e.events : [];
328
328
  }
329
- var J = /* @__PURE__ */ new Map();
330
- function Y(e, t, n) {
329
+ var G = /* @__PURE__ */ new Map();
330
+ function K(e, t, n) {
331
331
  if (!n?.fresh) {
332
- let t = J.get(e);
332
+ let t = G.get(e);
333
333
  if (t) return t;
334
334
  }
335
- let r = G(e, t, (e) => q(e));
336
- return J.set(e, r), r.finally(() => {
337
- J.get(e) === r && J.delete(e);
335
+ let r = U(e, t, (e) => he(e));
336
+ return G.set(e, r), r.finally(() => {
337
+ G.get(e) === r && G.delete(e);
338
338
  }), r;
339
339
  }
340
- async function fe(e, t, n, r) {
341
- return Y(`${p()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
340
+ async function ge(e, t, n, r) {
341
+ return K(`${m()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r);
342
342
  }
343
- async function pe(e, t, n, r) {
344
- return Y(`${p()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
343
+ async function _e(e, t, n, r) {
344
+ return K(`${m()}/events/organization/${e}/month/${t}/${n}`, "org_month_events_fetch_failed", r);
345
345
  }
346
- async function me(e, t) {
347
- return G(`${p()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
346
+ async function ve(e, t) {
347
+ return U(`${m()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed");
348
348
  }
349
- async function he(e, t) {
350
- let n = await me(e, t);
349
+ async function ye(e, t) {
350
+ let n = await ve(e, t);
351
351
  return n.ok ? n.data : null;
352
352
  }
353
- async function ge(e, t) {
353
+ async function q(e, t) {
354
354
  try {
355
- let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await v(`${p()}/resolve/${encodeURIComponent(String(e))}${n}`);
356
- if (!r || !r.type) throw new D("entity", String(e));
355
+ let n = t ? `?slug=${encodeURIComponent(t)}` : "", r = await v(`${m()}/resolve/${encodeURIComponent(String(e))}${n}`);
356
+ if (!r || !r.type) throw new T("entity", String(e));
357
357
  return r;
358
358
  } catch (e) {
359
- return V.error("Error resolving public entity:", e), null;
359
+ return B.error("Error resolving public entity:", e), null;
360
360
  }
361
361
  }
362
- async function _e(e, t) {
362
+ async function be(e, t) {
363
363
  try {
364
- let n = t ? `${p()}/collections/${e}?password=${encodeURIComponent(t)}` : `${p()}/collections/${e}`, r = await v(n);
365
- if (!r) throw new D("collection", String(e));
364
+ let n = t ? `${m()}/collections/${e}?password=${encodeURIComponent(t)}` : `${m()}/collections/${e}`, r = await v(n);
365
+ if (!r) throw new T("collection", String(e));
366
366
  return r;
367
367
  } catch (e) {
368
- return V.error("Error fetching collection:", e), null;
368
+ return B.error("Error fetching collection:", e), null;
369
369
  }
370
370
  }
371
- async function ve(e, t) {
371
+ async function xe(e, t) {
372
372
  try {
373
- let n = await v(`${p()}/events/${e}/check-password`, {
373
+ let n = await v(`${m()}/events/${e}/check-password`, {
374
374
  method: "POST",
375
375
  headers: { "Content-Type": "application/json" },
376
376
  body: JSON.stringify({ password: t })
377
377
  });
378
378
  return typeof n == "boolean" ? { valid: n } : { valid: n?.valid === !0 };
379
379
  } catch (e) {
380
- return V.error("Error checking event password:", e), { valid: !1 };
380
+ return B.error("Error checking event password:", e), { valid: !1 };
381
381
  }
382
382
  }
383
383
  //#endregion
384
+ //#region src/lib/navigation.ts
385
+ function Se(e, t) {
386
+ let n = f();
387
+ return t ? `${n}/e/${e}-${t}` : `${n}/e/${e}`;
388
+ }
389
+ function Ce(e, t, n) {
390
+ let r = n?.toString(), i = t ? `/e/${e}-${t}` : `/e/${e}`;
391
+ return `${f()}${i}${r ? `?${r}` : ""}`;
392
+ }
393
+ function J(e) {
394
+ let t = typeof e == "string" ? e.trim() : "";
395
+ if (!t) return "";
396
+ let n = new URL(f());
397
+ return `${n.protocol}//${encodeURIComponent(t)}.${n.hostname.replace(/^www\./, "")}`;
398
+ }
399
+ function we(e) {
400
+ let t = J(e);
401
+ return t ? `${t}/gift-cards/buy` : "";
402
+ }
403
+ function Te(e, t, n) {
404
+ let r = n?.toString();
405
+ return `/${e}/${t}${r ? `?${r}` : ""}`;
406
+ }
407
+ function Ee(e) {
408
+ return `/${e}`;
409
+ }
410
+ function De(e) {
411
+ return `${f()}/${e}`;
412
+ }
413
+ function Y(e, t) {
414
+ return `/${e}/${t}/checkout`;
415
+ }
416
+ function Oe(e) {
417
+ return `/?${e.toString()}`;
418
+ }
419
+ function ke(e, t, n = {}) {
420
+ let r = `${Y(e, t)}/success`, i = new URLSearchParams();
421
+ n.orderId && i.set("orderId", n.orderId), n.ticketCount && n.ticketCount > 0 && i.set("tickets", String(n.ticketCount));
422
+ let a = i.toString();
423
+ return a ? `${r}?${a}` : r;
424
+ }
425
+ //#endregion
384
426
  //#region src/lib/api/venues.ts
385
427
  var X = e("VC");
386
- async function ye(e) {
428
+ async function Ae(e) {
387
429
  try {
388
430
  if (!e) return X.warn("getVenue called without venueId"), null;
389
- let t = await m(`/venues/${e}`);
431
+ let t = await h(`/venues/${e}`);
390
432
  return t.success ? t.data ?? null : (X.error(`Failed to fetch venue: ${t.statusCode}`), null);
391
433
  } catch (e) {
392
434
  return X.error("Error fetching venue:", e), null;
393
435
  }
394
436
  }
437
+ async function je(e) {
438
+ let t = J(e);
439
+ if (!t) return !1;
440
+ try {
441
+ let e = await h(`/sites/by-host/${encodeURIComponent(new URL(t).host)}`);
442
+ return !!(e.success && e.data);
443
+ } catch (e) {
444
+ return X.warn("hasPublishedSite failed:", e), !1;
445
+ }
446
+ }
395
447
  //#endregion
396
448
  //#region src/lib/api/transformers/giftCard.ts
397
449
  function Z(e, t) {
398
450
  return e == null || t(e);
399
451
  }
400
- function be(e) {
452
+ function Me(e) {
401
453
  if (typeof e != "object" || !e) return !1;
402
454
  let t = e;
403
455
  return t.valid === !0 && Number.isInteger(t.appliedAmount) && typeof t.remainingTotal == "number" && Number.isFinite(t.remainingTotal) && Z(t.giftCardCode, (e) => typeof e == "string") && Z(t.giftCardBalance, (e) => typeof e == "number" && Number.isFinite(e)) && Z(t.fullyCoveredByCard, (e) => typeof e == "boolean");
404
456
  }
405
- var xe = "We couldn't apply that gift card. Please try again.";
406
- function Se(e) {
407
- if (!be(e)) return {
457
+ var Ne = "We couldn't apply that gift card. Please try again.";
458
+ function Pe(e) {
459
+ if (!Me(e)) return {
408
460
  valid: !1,
409
- error: xe
461
+ error: Ne
410
462
  };
411
463
  let t = e, n = r(d(t.appliedAmount)), i = t.remainingTotal, a = t.fullyCoveredByCard ?? i <= 0, o = !a;
412
464
  return {
@@ -423,9 +475,9 @@ function Se(e) {
423
475
  //#endregion
424
476
  //#region src/lib/api/gift-cards.ts
425
477
  var Q = e("VC");
426
- async function Ce(e, t) {
478
+ async function Fe(e, t) {
427
479
  try {
428
- let n = await h(`${f()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
480
+ let n = await g(`${p()}/cart/${e}/apply-gift-card`, { giftCardCode: t });
429
481
  if (!n.success) return n.statusCode === 429 ? {
430
482
  valid: !1,
431
483
  error: "Too many attempts. Please wait a moment and try again."
@@ -433,7 +485,7 @@ async function Ce(e, t) {
433
485
  valid: !1,
434
486
  error: n.error || "Invalid gift card code"
435
487
  });
436
- let r = Se(n.data);
488
+ let r = Pe(n.data);
437
489
  return r.valid || Q.error("Apply gift card returned an unusable payload:", n.data), r;
438
490
  } catch (e) {
439
491
  return Q.error("applyGiftCard error:", e), {
@@ -442,9 +494,9 @@ async function Ce(e, t) {
442
494
  };
443
495
  }
444
496
  }
445
- async function we(e, t) {
497
+ async function Ie(e, t) {
446
498
  try {
447
- let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await _(`${f()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
499
+ let n = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, r = await _(`${p()}/cart/${e}/gift-card`, n ? { body: JSON.stringify(n) } : void 0);
448
500
  if (!r.success) return Q.error("Remove gift card failed:", r.error), {
449
501
  success: !1,
450
502
  error: r.error || "Failed to remove gift card"
@@ -461,10 +513,10 @@ async function we(e, t) {
461
513
  };
462
514
  }
463
515
  }
464
- async function Te(e, n, r) {
465
- let i = g(r);
516
+ async function Le(e, n, r) {
517
+ let i = ee(r);
466
518
  try {
467
- let r = await h(`${f()}/cart/${e}/complete-gift-card-payment`, {
519
+ let r = await g(`${p()}/cart/${e}/complete-gift-card-payment`, {
468
520
  customerName: t(n.firstName, n.lastName),
469
521
  customerEmail: n.email,
470
522
  firstName: n.firstName,
@@ -473,7 +525,7 @@ async function Te(e, n, r) {
473
525
  phoneNumber: n.phoneNumber || null,
474
526
  questionAnswer: n.questionAnswer || "",
475
527
  mailingList: n.mailingList || !1,
476
- attribution: ee(),
528
+ attribution: te(),
477
529
  ...i ? { locale: i } : {}
478
530
  });
479
531
  return r.success ? {
@@ -494,11 +546,11 @@ async function Te(e, n, r) {
494
546
  //#endregion
495
547
  //#region src/lib/api/waitlist.ts
496
548
  var $ = e("VC");
497
- async function Ee(e, t, n = null, r = !1) {
549
+ async function Re(e, t, n = null, r = !1) {
498
550
  try {
499
551
  let i = { email: t };
500
552
  n && r && (i.phone = n, i.smsOptIn = !0);
501
- let a = await h(`/events/${e}/waitlist`, i);
553
+ let a = await g(`/events/${e}/waitlist`, i);
502
554
  return a.success ? {
503
555
  success: !0,
504
556
  updated: a.data?.updated,
@@ -514,9 +566,9 @@ async function Ee(e, t, n = null, r = !1) {
514
566
  };
515
567
  }
516
568
  }
517
- async function De(e, t) {
569
+ async function ze(e, t) {
518
570
  try {
519
- let n = await h(`/checkout/validate-token/${e}`, { email: t });
571
+ let n = await g(`/checkout/validate-token/${e}`, { email: t });
520
572
  return n.success ? {
521
573
  valid: !0,
522
574
  eventId: n.data?.eventId ?? 0,
@@ -534,9 +586,9 @@ async function De(e, t) {
534
586
  };
535
587
  }
536
588
  }
537
- async function Oe(e, t) {
589
+ async function Be(e, t) {
538
590
  try {
539
- let n = await h(`/waitlist/requeue/${e}`, { email: t });
591
+ let n = await g(`/waitlist/requeue/${e}`, { email: t });
540
592
  return n.success ? { success: !0 } : {
541
593
  success: !1,
542
594
  errorCode: n.error
@@ -548,14 +600,14 @@ async function Oe(e, t) {
548
600
  };
549
601
  }
550
602
  }
551
- async function ke(e) {
603
+ async function Ve(e) {
552
604
  let t = {
553
605
  waitlistEnabled: !1,
554
606
  soldOut: !1,
555
607
  gated: !1
556
608
  };
557
609
  try {
558
- let n = await m(`/events/${e}/waitlist/status`);
610
+ let n = await h(`/events/${e}/waitlist/status`);
559
611
  return n.success ? {
560
612
  waitlistEnabled: !!n.data?.waitlistEnabled,
561
613
  soldOut: !!n.data?.soldOut,
@@ -565,9 +617,9 @@ async function ke(e) {
565
617
  return $.error("getWaitlistStatus error:", e), t;
566
618
  }
567
619
  }
568
- function Ae(e) {
620
+ function He(e) {
569
621
  let t = String(e % 60).padStart(2, "0");
570
622
  return e >= 3600 ? `${Math.floor(e / 3600)}:${String(Math.floor(e % 3600 / 60)).padStart(2, "0")}:${t}` : `${Math.floor(e / 60)}:${t}`;
571
623
  }
572
624
  //#endregion
573
- export { C as A, j as C, re as D, ae as E, ne as M, w as N, E as O, A as S, k as T, pe as _, De as a, ce as b, we as c, W as d, de as f, fe as g, he as h, Oe as i, te as j, b as k, ye as l, _e as m, ke as n, Ce as o, K as p, Ee as r, Te as s, Ae as t, ve as u, ge as v, O as w, se as x, le as y };
625
+ export { le as A, re as B, W as C, _e as D, ge as E, D as F, ne as H, k as I, oe as L, O as M, ce as N, q as O, E as P, w as R, me as S, ye as T, ie as U, C as V, Te as _, ze as a, xe as b, Ie as c, ke as d, Y as f, Se as g, Ce as h, Be as i, M as j, ue as k, Ae as l, Ee as m, Ve as n, Fe as o, De as p, Re as r, Le as s, He as t, je as u, we as v, be as w, fe as x, Oe as y, b as z };