@getmicdrop/venue-calendar 4.3.138 → 4.3.139

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 (211) hide show
  1. package/README.md +895 -840
  2. package/dist/AddOnCard-Dlt_4lut.js +475 -0
  3. package/dist/{Button-B_gbGd63.js → Button-Ch5dRGa2.js} +1 -1
  4. package/dist/{Button-B1cBhdtC.js → Button-DpeQSoQ7.js} +58 -45
  5. package/dist/Calendar-CNWS2xiR.js +396 -0
  6. package/dist/CalendarFoundryView-B5puOxH5.js +16431 -0
  7. package/dist/{ChartBlock-DcsCXfX8.js → ChartBlock-vihMKVdW.js} +2 -2
  8. package/dist/Checkout-B2FvX6Af.js +1070 -0
  9. package/dist/Checkout-y0x-v-XH.js +1995 -0
  10. package/dist/{ChevronDownOutline-kFgRY2cg.js → CloseOutline-Bh9UO94v.js} +2 -2
  11. package/dist/{CollectionView-C0vDg5oJ.js → CollectionView-CcLlV-1f.js} +22 -24
  12. package/dist/{CropImage-BWYeQXXA.js → CropImage-DqLAGy5s.js} +6 -6
  13. package/dist/{DatePicker-v-4ijT8N.js → DatePicker-D20Te0JY.js} +222 -215
  14. package/dist/{Event-vlu8IAxh.js → Event-DoIU0o6C.js} +799 -796
  15. package/dist/{EventCard-puoh3xag.js → EventCard-B8MYLyIW.js} +1 -1
  16. package/dist/EventPage-DM4tjCcL.js +1298 -0
  17. package/dist/{FilterChipGroup-DUGvOaRI.js → FilterChipGroup-BCjc7-pE.js} +1 -1
  18. package/dist/{ImageUploader-CKrf5amy.js → ImageUploader-BzxKIyLN.js} +324 -375
  19. package/dist/{Input-BQk4itex.js → Input-Bp5EgI1F.js} +5 -3
  20. package/dist/Modal-C6EXgkuF.js +159 -0
  21. package/dist/{ModalFooter-gFaDKsfj.js → ModalFooter-C4TD3-zP.js} +1 -1
  22. package/dist/{ModalTitle-CS5AGwrU.js → ModalTitle-BP4Bm3sA.js} +1 -1
  23. package/dist/{PasswordInput-C65GqxdF.js → PasswordInput-BlzSrkPs.js} +1 -1
  24. package/dist/{PhoneInput-Dj1I3bEn.js → PhoneInput-_ByjRGQ0.js} +2 -2
  25. package/dist/{RecommendationsRail-DC5qX1ei.js → RecommendationsRail-BDNnbL-p.js} +53 -50
  26. package/dist/{Search-BE64QcmK.js → Search-vhGEpog6.js} +1 -1
  27. package/dist/SeriesPage-YE8czX1M.js +32 -0
  28. package/dist/{SkeletonLoader-DfW0N9R3.js → SkeletonLoader-Beh2izdy.js} +1 -1
  29. package/dist/Spinner-DgubkWKo.js +88 -0
  30. package/dist/{Success-D3CrUeka.js → Success-CN5HB8gN.js} +164 -166
  31. package/dist/{TimePicker-HYzPI_Dc.js → TimePicker-BDuy9Ap8.js} +1 -1
  32. package/dist/{ViewTicketsEmbed-DzUCgtA3.js → ViewTicketsEmbed-DvoMIiKJ.js} +9 -10
  33. package/dist/{address-field-BwGHcMKY.js → address-field-DOalICpt.js} +2 -2
  34. package/dist/{allowlist-Bt1BHhNd.js → allowlist-DinkGF2L.js} +77 -68
  35. package/dist/api/api.cjs +1 -1
  36. package/dist/api/api.mjs +320 -297
  37. package/dist/api/client.d.ts +14 -53
  38. package/dist/api/events.d.ts +15 -1
  39. package/dist/api/result.d.ts +9 -0
  40. package/dist/{api-CRHFSJDI.js → api-CsAx0rmV.js} +150 -145
  41. package/dist/{avatar-picker-field-CSF5okeM.js → avatar-picker-field-CV4vRxTB.js} +14 -14
  42. package/dist/{checkoutState-BDNjJRMG.js → checkoutState-DSx7g3Vy.js} +12 -21
  43. package/dist/{client-BIN_q-of.js → client-SaDt6559.js} +18 -12
  44. package/dist/{constants-DrFV2oht.js → constants-sRRJh0u-.js} +1 -1
  45. package/dist/{date-field-3tgOYbzF.js → date-field-DylJx0y7.js} +9 -9
  46. package/dist/{date-range-field-D0Aq9me9.js → date-range-field-BOV1V2ab.js} +7 -7
  47. package/dist/{de-CUrE_4a4.js → de-CzkX3H3B.js} +1 -0
  48. package/dist/{defaultLabels-CybwJCNn.js → defaultLabels-DLK6rq4q.js} +1 -0
  49. package/dist/{defaults-B5wyre5O.js → defaults-Cbuin1WS.js} +2 -3
  50. package/dist/{es-B2-z2Kft.js → es-BOLzv8eD.js} +1 -0
  51. package/dist/{event-CEg17hts.js → event-ClsLWtR0.js} +1 -1
  52. package/dist/{event-transform-DqFigNQg.js → event-transform-Cs63X0hI.js} +42 -42
  53. package/dist/{eventStatusStream-DK5fWCTB.js → eventStatusStream-BAh5nJP2.js} +1 -1
  54. package/dist/{field-rules-CKFFB16Q.js → field-rules-Yb2JY1qT.js} +1 -1
  55. package/dist/{file-field-2mPz4Da-.js → file-field-Dwo80kDg.js} +4 -4
  56. package/dist/format-CehusdDg.js +1718 -0
  57. package/dist/{formatters-CzKNRUwz.js → formatters-DUWbI_Eg.js} +25 -35
  58. package/dist/{fr-CiePVIlj.js → fr-DYTIBBXo.js} +1 -0
  59. package/dist/{href-DpbLXQ4c.js → href-BXhNawil.js} +1 -1
  60. package/dist/i18n-BNF6a-QA.js +720 -0
  61. package/dist/i18n-F_QOaHVh.js +26 -0
  62. package/dist/{id-Ttw95_7t.js → id-CIyIkGhH.js} +1 -0
  63. package/dist/{image-field-B8x0WQ2j.js → image-field-DeLzsJlz.js} +2 -2
  64. package/dist/{it-CBbXcFY1.js → it-CF4Db_nK.js} +1 -0
  65. package/dist/{ja-B2Tag7J3.js → ja-5-7WNHD1.js} +1 -0
  66. package/dist/{ko-CcTn4lAi.js → ko-huIzHR3W.js} +1 -0
  67. package/dist/locales/4.3.139/main/de.js +1 -0
  68. package/dist/locales/4.3.139/main/es.js +1 -0
  69. package/dist/locales/4.3.139/main/fr.js +1 -0
  70. package/dist/locales/4.3.139/main/id.js +1 -0
  71. package/dist/locales/4.3.139/main/it.js +1 -0
  72. package/dist/locales/4.3.139/main/ja.js +1 -0
  73. package/dist/locales/4.3.139/main/ko.js +1 -0
  74. package/dist/locales/4.3.139/main/nl.js +1 -0
  75. package/dist/locales/4.3.139/main/pl.js +1 -0
  76. package/dist/locales/4.3.139/main/pt-br.js +1 -0
  77. package/dist/locales/4.3.139/main/tr.js +1 -0
  78. package/dist/locales/4.3.139/main/zh.js +1 -0
  79. package/dist/look-island.svelte-D87MvHNy.js +1296 -0
  80. package/dist/{look-names-JI6GE-Zj.js → look-names-B9MywEzX.js} +68 -58
  81. package/dist/looks/4.3.139/AddOnCard-CKdkGcHH.js +1 -0
  82. package/dist/looks/4.3.139/Checkout-D7CaFYTE.js +1 -0
  83. package/dist/looks/4.3.139/Checkout-DuP46PMi.js +3 -0
  84. package/dist/looks/4.3.139/CollectionView-CWm57JCx.js +1 -0
  85. package/dist/looks/4.3.139/Event-ePupb4qY.js +8 -0
  86. package/dist/looks/4.3.139/EventPage-CgexXhEU.js +1 -0
  87. package/dist/looks/4.3.139/RecommendationsRail-Bz-Mj_r4.js +2 -0
  88. package/dist/looks/4.3.139/SeriesPage-DI2uFF0Y.js +1 -0
  89. package/dist/looks/4.3.139/Success-BkMzmgmc.js +3 -0
  90. package/dist/looks/4.3.139/ViewTicketsEmbed-CbEJwRry.js +1 -0
  91. package/dist/looks/4.3.139/_vc-foundry-calendar-stub-BVbAFEK2.js +1 -0
  92. package/dist/looks/4.3.139/buyerEmail-CqCYa9UL.js +1 -0
  93. package/dist/looks/4.3.139/constants-CU_ZgyQu.js +3 -0
  94. package/dist/looks/4.3.139/defaults-B46SFFK4.js +2 -0
  95. package/dist/looks/4.3.139/dist-BWGSqtWN.js +1 -0
  96. package/dist/looks/4.3.139/eventStatusStream-CW5lJwsa.js +10 -0
  97. package/dist/looks/4.3.139/first-core-DrYq9wBy.js +151 -0
  98. package/dist/looks/4.3.139/first-mount.svelte-DFSLaJWm.js +1 -0
  99. package/dist/looks/4.3.139/first-seo-DvHuCXT6.js +1 -0
  100. package/dist/looks/4.3.139/first.js +1 -0
  101. package/dist/looks/4.3.139/full-widget-DDBk3i4U.js +2 -0
  102. package/dist/looks/4.3.139/gate-password-cache-D4Zls6QM.js +1 -0
  103. package/dist/looks/4.3.139/i18n-DRaFNYsQ.js +1 -0
  104. package/dist/looks/4.3.139/listing-BSaRTkxW.js +1 -0
  105. package/dist/looks/4.3.139/loaders.runtime-BNG8O6-A.js +1 -0
  106. package/dist/looks/4.3.139/looks.js +1 -0
  107. package/dist/looks/4.3.139/modalManager.svelte-CqQWYz9Y.js +1 -0
  108. package/dist/looks/4.3.139/rolldown-runtime-4tVxZq34.js +1 -0
  109. package/dist/looks/4.3.139/serverTotals-Bu1fAPLB.js +1 -0
  110. package/dist/looks/4.3.139/showcase-state-options-CpCMAKVD.js +1 -0
  111. package/dist/looks/4.3.139/utils-pGRhH4A-.js +1 -0
  112. package/dist/{media-field-HieD0ye0.js → media-field-PW8ye6EL.js} +2 -2
  113. package/dist/modalManager.svelte-BHE0t9q3.js +79 -0
  114. package/dist/{multiselect-field-CJ4lUJyS.js → multiselect-field-CmocFs5f.js} +2 -2
  115. package/dist/navigation-B8rkS2On.js +348 -0
  116. package/dist/{nl-DeIqgjIs.js → nl-B1dv1lqk.js} +1 -0
  117. package/dist/{number-field-D5GkkGLB.js → number-field-CUD936Ai.js} +3 -3
  118. package/dist/{numeric-filter-field-CRWZFu_P.js → numeric-filter-field-BmgSYhOt.js} +3 -3
  119. package/dist/{password-field-DdOHXEOo.js → password-field-BfvcZUi_.js} +1 -1
  120. package/dist/{phone-field-BaYmp56f.js → phone-field-DO0U_YZ6.js} +17 -18
  121. package/dist/{pixels-BXXzmoCb.js → pixels-ipedGW6i.js} +7 -7
  122. package/dist/{pl-Bm2FcD5y.js → pl-DLlM_IPo.js} +1 -0
  123. package/dist/{pt-br-XS1Lsa6z.js → pt-br-8V3mf7pu.js} +1 -0
  124. package/dist/repeating-field-BwtJ6VS1.js +488 -0
  125. package/dist/{richtext-field-KmUytgBW.js → richtext-field-DvLCxPvq.js} +2 -2
  126. package/dist/{datetime-BlEsN_-8.js → scarcity-DfQvyhJP.js} +74 -85
  127. package/dist/{searchable-select-field-DettZRav.js → searchable-select-field-zuIqfoQM.js} +17 -17
  128. package/dist/{select-field-Wc4gAtou.js → select-field-DNNN-a9q.js} +6 -6
  129. package/dist/seo/HostSeoController.d.ts +13 -0
  130. package/dist/seo/seo.cjs +1 -1
  131. package/dist/seo/seo.mjs +18 -11
  132. package/dist/{serverTotals-COsx7Mc5.js → serverTotals-BprgDwOw.js} +1 -1
  133. package/dist/{showcase-state-options-CHGUaZtl.js → showcase-state-options-bKRf48yz.js} +2 -2
  134. package/dist/{time-field-CnxZcziR.js → time-field-DmPCoppV.js} +2 -2
  135. package/dist/{to-event-card-props-C9v9dspT.js → to-event-card-props-KVcCJ2JF.js} +34 -34
  136. package/dist/{tr-zKAbMfgi.js → tr-DiUEV65j.js} +1 -0
  137. package/dist/{tree-picker-field-aqux58EQ.js → tree-picker-field-BJwSFAqm.js} +8 -8
  138. package/dist/types/index.d.ts +3 -0
  139. package/dist/{utils-AIszIHUb.js → utils-x8YXRKvr.js} +12 -12
  140. package/dist/venue-BjLCg-PW.js +38 -0
  141. package/dist/venue-calendar.css +1 -1
  142. package/dist/venue-calendar.es.js +1655 -1539
  143. package/dist/venue-calendar.iife.js +1 -54
  144. package/dist/venue-calendar.umd.js +69 -63
  145. package/dist/{widget-key-context-BrWW0fyM.js → widget-key-context-dHM9FiuJ.js} +8 -37
  146. package/dist/{zh-DHfgJplH.js → zh-Cej2EPQt.js} +1 -0
  147. package/package.json +2 -2
  148. package/src/lib/constants/scarcity.ts +1 -2
  149. package/dist/AddOnCard-DEAC26HA.js +0 -348
  150. package/dist/BlockPlaceholder-BKfoE795.js +0 -59
  151. package/dist/Calendar-9xskvKUf.js +0 -395
  152. package/dist/CalendarFoundryView-DbxZNmY7.js +0 -16356
  153. package/dist/CartView-DMINN6bY.js +0 -2200
  154. package/dist/Checkbox-sObkYRdj.js +0 -60
  155. package/dist/Checkout-H9RGBU9D.js +0 -1071
  156. package/dist/Checkout-VnochAZE.js +0 -1967
  157. package/dist/CheckoutTimer-mjcYR3XU.js +0 -42
  158. package/dist/EventPage-DycxjX5Z.js +0 -1301
  159. package/dist/Modal-DOpDiAwN.js +0 -102
  160. package/dist/ScarcityBadge-BAaV2CIY.js +0 -141
  161. package/dist/SeriesPage-Cx89s2B6.js +0 -34
  162. package/dist/Skeleton-B6qB_udJ.js +0 -31
  163. package/dist/Spinner-Bj4dr9kO.js +0 -19
  164. package/dist/Textarea-BDcuBI13.js +0 -72
  165. package/dist/__SKIP_NAVIGATION__-Znm_vYcG.js +0 -5
  166. package/dist/__SKIP_PATHS__-Bzzrca_a.js +0 -5
  167. package/dist/calendar-Cdu8fCIt.js +0 -111
  168. package/dist/cta-qbcIt5Gh.js +0 -116
  169. package/dist/format-CypC4vWs.js +0 -1587
  170. package/dist/heic-to-BoLfsr3l.js +0 -70
  171. package/dist/i18n-B_TWnExv.js +0 -495
  172. package/dist/i18n-CSaUFnlD.js +0 -26
  173. package/dist/instant-BkZCSGDm.js +0 -162
  174. package/dist/labels-D8LN8lY7.js +0 -227
  175. package/dist/locales/4.3.138/main/de.js +0 -1
  176. package/dist/locales/4.3.138/main/es.js +0 -1
  177. package/dist/locales/4.3.138/main/fr.js +0 -1
  178. package/dist/locales/4.3.138/main/id.js +0 -1
  179. package/dist/locales/4.3.138/main/it.js +0 -1
  180. package/dist/locales/4.3.138/main/ja.js +0 -1
  181. package/dist/locales/4.3.138/main/ko.js +0 -1
  182. package/dist/locales/4.3.138/main/nl.js +0 -1
  183. package/dist/locales/4.3.138/main/pl.js +0 -1
  184. package/dist/locales/4.3.138/main/pt-br.js +0 -1
  185. package/dist/locales/4.3.138/main/tr.js +0 -1
  186. package/dist/locales/4.3.138/main/zh.js +0 -1
  187. package/dist/look-island.svelte-B7UH_QVv.js +0 -1270
  188. package/dist/looks/4.3.138/looks.js +0 -248
  189. package/dist/modalManager.svelte-BvyrTI6p.js +0 -51
  190. package/dist/navigation-DpqP-ahJ.js +0 -241
  191. package/dist/repeating-field-B4OhsaGB.js +0 -488
  192. package/dist/venue-DLkL7xdj.js +0 -12
  193. /package/dist/checkout-libs/{4.3.138 → 4.3.139}/phone.js +0 -0
  194. /package/dist/checkout-libs/{4.3.138 → 4.3.139}/qrcode.js +0 -0
  195. /package/dist/locales/{4.3.138 → 4.3.139}/flow/de.js +0 -0
  196. /package/dist/locales/{4.3.138 → 4.3.139}/flow/es.js +0 -0
  197. /package/dist/locales/{4.3.138 → 4.3.139}/flow/fr.js +0 -0
  198. /package/dist/locales/{4.3.138 → 4.3.139}/flow/id.js +0 -0
  199. /package/dist/locales/{4.3.138 → 4.3.139}/flow/it.js +0 -0
  200. /package/dist/locales/{4.3.138 → 4.3.139}/flow/ja.js +0 -0
  201. /package/dist/locales/{4.3.138 → 4.3.139}/flow/ko.js +0 -0
  202. /package/dist/locales/{4.3.138 → 4.3.139}/flow/nl.js +0 -0
  203. /package/dist/locales/{4.3.138 → 4.3.139}/flow/pl.js +0 -0
  204. /package/dist/locales/{4.3.138 → 4.3.139}/flow/pt-br.js +0 -0
  205. /package/dist/locales/{4.3.138 → 4.3.139}/flow/tr.js +0 -0
  206. /package/dist/locales/{4.3.138 → 4.3.139}/flow/zh.js +0 -0
  207. /package/dist/looks/{4.3.138 → 4.3.139}/micdrop-wordmark-BYMG6vLR.svg +0 -0
  208. /package/dist/looks/{4.3.138 → 4.3.139}/microphone-Ccv4r-kd.webp +0 -0
  209. /package/dist/looks/{4.3.138 → 4.3.139}/superuser-CZF6a5gO.webp +0 -0
  210. /package/dist/looks/{4.3.138 → 4.3.139}/treasury-DUE7lZzT.webp +0 -0
  211. /package/dist/looks/{4.3.138 → 4.3.139}/user-image-yuS4errP.svg +0 -0
@@ -1,15 +1,15 @@
1
1
  import { t as e } from "./logger-DM8WW61-.js";
2
- import { d as t, v as n } from "./instant-BkZCSGDm.js";
2
+ import { B as t, W as n } from "./format-CehusdDg.js";
3
3
  import { t as r } from "./AppError-t1LnBwj_.js";
4
- import { s as i } from "./formatters-CzKNRUwz.js";
4
+ import { a as i } from "./formatters-DUWbI_Eg.js";
5
5
  import { a, i as o } from "./normalizers-WYh8Nr3V.js";
6
- import { C as s, d as ee } from "./widget-key-context-BrWW0fyM.js";
7
- import { c, f as te, n as l, r as u, s as d, t as ne, u as f } from "./client-BIN_q-of.js";
8
- import { l as p } from "./navigation-DpqP-ahJ.js";
6
+ import { S as s, u as ee } from "./widget-key-context-dHM9FiuJ.js";
7
+ import { c, d as l, f as u, n as d, r as f, s as p, t as te, u as m } from "./client-SaDt6559.js";
8
+ import { l as h } from "./navigation-B8rkS2On.js";
9
9
  // node_modules/@getmicdrop/svelte-components/dist/utils/liveAnnouncer.js
10
- var m = null;
11
- function re() {
12
- return m && document.body.contains(m) || (m = document.createElement("div"), m.id = "a11y-live-region", m.setAttribute("role", "status"), m.setAttribute("aria-live", "polite"), m.setAttribute("aria-atomic", "true"), m.className = "sr-only", Object.assign(m.style, {
10
+ var g = null;
11
+ function _() {
12
+ return g && document.body.contains(g) || (g = document.createElement("div"), g.id = "a11y-live-region", g.setAttribute("role", "status"), g.setAttribute("aria-live", "polite"), g.setAttribute("aria-atomic", "true"), g.className = "sr-only", Object.assign(g.style, {
13
13
  position: "absolute",
14
14
  width: "1px",
15
15
  height: "1px",
@@ -19,25 +19,25 @@ function re() {
19
19
  clip: "rect(0, 0, 0, 0)",
20
20
  whiteSpace: "nowrap",
21
21
  border: "0"
22
- }), document.body.appendChild(m)), m;
22
+ }), document.body.appendChild(g)), g;
23
23
  }
24
- function h(e, t = {}) {
24
+ function v(e, t = {}) {
25
25
  if (typeof document > "u") return;
26
- let { politeness: n = "polite", atomic: r = !0, delay: i = 100 } = t, a = re();
26
+ let { politeness: n = "polite", atomic: r = !0, delay: i = 100 } = t, a = _();
27
27
  a.setAttribute("aria-live", n), a.setAttribute("aria-atomic", String(r)), a.textContent = "", setTimeout(() => {
28
28
  typeof document < "u" && a.isConnected && (a.textContent = e);
29
29
  }, i);
30
30
  }
31
- function g(e = 500) {
31
+ function y(e = 500) {
32
32
  let t = null;
33
33
  return (n, r) => {
34
34
  t && clearTimeout(t), t = setTimeout(() => {
35
- h(n, r), t = null;
35
+ v(n, r), t = null;
36
36
  }, e);
37
37
  };
38
38
  }
39
39
  // node_modules/@getmicdrop/svelte-components/dist/errors/classes/NotFoundError.js
40
- var _ = class extends r {
40
+ var b = class extends r {
41
41
  constructor(e, t) {
42
42
  let n = t ? `${e} with ID ${t} not found` : `${e} not found`;
43
43
  super(n, "NOT_FOUND", {
@@ -52,22 +52,22 @@ var _ = class extends r {
52
52
  getUserMessage(e) {
53
53
  return a(e)?.fromCode?.(this.code) || o(this.resourceType.toLowerCase());
54
54
  }
55
- }, v = e("VC");
56
- function y(e, t) {
55
+ }, x = e("VC");
56
+ function ne(e, t) {
57
57
  if (e === 404) return "Promo code isn't valid.";
58
58
  let n = (t ?? "").toLowerCase();
59
59
  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";
60
60
  }
61
- async function b(e, t, n) {
61
+ async function re(e, t, n) {
62
62
  try {
63
63
  if (!t || !t.trim()) return {
64
64
  valid: !1,
65
65
  error: "Promo code is required"
66
66
  };
67
- let r = encodeURIComponent(t.trim()), i = await l(`/promo-codes/validate/${e}/${r}`, { widgetKey: n?.widgetKey });
67
+ let r = encodeURIComponent(t.trim()), i = await d(`/promo-codes/validate/${e}/${r}`, { widgetKey: n?.widgetKey });
68
68
  if (!i.success) return {
69
69
  valid: !1,
70
- error: y(i.statusCode, i.error)
70
+ error: ne(i.statusCode, i.error)
71
71
  };
72
72
  let a = i.data;
73
73
  return {
@@ -82,184 +82,189 @@ async function b(e, t, n) {
82
82
  applyToTicketIds: a.applyToTicketIds
83
83
  };
84
84
  } catch (e) {
85
- return v.error("Error validating promo code:", e), {
85
+ return x.error("Error validating promo code:", e), {
86
86
  valid: !1,
87
87
  error: "Network error validating code"
88
88
  };
89
89
  }
90
90
  }
91
- async function ie(e, t) {
92
- try {
93
- let n = await l(`/promo-codes/check/${e}`, { widgetKey: t?.widgetKey });
94
- return !n.success || n.data.hasPromoCodes === !0;
95
- } catch (e) {
96
- return v.error("Error checking promo codes availability:", e), !0;
97
- }
98
- }
99
- async function ae(e, t, n, r) {
91
+ async function ie(e, t, n, r) {
100
92
  try {
101
93
  let i = { promoCode: t };
102
94
  n && Object.keys(n).length > 0 && (i.productQuantities = n);
103
- let a = await u(`${d()}/cart/${e}/apply-promo`, i, { widgetKey: r?.widgetKey });
95
+ let a = await f(`${p()}/cart/${e}/apply-promo`, i, { widgetKey: r?.widgetKey });
104
96
  return a.success ? { success: !0 } : {
105
97
  success: !1,
106
98
  error: a.error || "Failed to apply promo code"
107
99
  };
108
100
  } catch (e) {
109
- return v.error("Error applying promo code:", e), {
101
+ return x.error("Error applying promo code:", e), {
110
102
  success: !1,
111
103
  error: "Network error applying code"
112
104
  };
113
105
  }
114
106
  }
115
107
  // src/lib/api/result.ts
116
- function x(e) {
108
+ function S(e) {
117
109
  return {
118
110
  ok: !0,
119
111
  data: e
120
112
  };
121
113
  }
122
- function S(e) {
114
+ function C(e) {
123
115
  return {
124
116
  ok: !1,
125
117
  error: e
126
118
  };
127
119
  }
128
- function C(e) {
120
+ function w(e) {
129
121
  return {
130
122
  ok: !1,
131
123
  error: e,
132
124
  notFound: !0
133
125
  };
134
126
  }
135
- function w(e, t) {
127
+ function T(e) {
128
+ return {
129
+ ok: !1,
130
+ error: e,
131
+ forbidden: !0
132
+ };
133
+ }
134
+ function E(e) {
135
+ return !e.ok;
136
+ }
137
+ function D(e, t) {
136
138
  return e.ok ? e.data : t;
137
139
  }
138
140
  // src/lib/api/route-manifest.ts
139
- var T = "/api/v2/public", E = "/api/orders/v2/public", D = "/api/orders/v2", O = "00000000-0000-0000-0000-000000000000";
140
- `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}`, `${T}`, `${T}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}`, `${T}`, `${T}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}${O}`, `${T}`, `${T}`, `${T}`, `${T}`, `${T}`, `${T}${O}`, `${E}`, `${E}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${E}`, `${E}${O}`, `${D}`, `${D}`, `${E}`, `${E}`, `${E}`, `${E}`, `${E}`, `${E}${O}`, `${T}`, `${T}${O}`;
141
+ var O = "/api/v2/public", k = "/api/orders/v2/public", A = "/api/orders/v2", j = "00000000-0000-0000-0000-000000000000";
142
+ `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}`, `${O}`, `${O}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}`, `${O}`, `${O}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}${j}`, `${O}`, `${O}`, `${O}`, `${O}`, `${O}`, `${O}${j}`, `${k}`, `${k}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${k}`, `${k}${j}`, `${A}`, `${A}`, `${k}`, `${k}`, `${k}`, `${k}`, `${k}`, `${k}${j}`, `${O}`, `${O}${j}`;
141
143
  // src/lib/api/events.ts
142
- var k = e("VC"), A = /* @__PURE__ */ new Map();
143
- async function j(e, t = fetch, n, r) {
144
+ var M = e("VC"), N = /* @__PURE__ */ new Map();
145
+ async function ae(e, t = fetch, n, r) {
144
146
  let i = n ? `${e}:pw` : String(e), a = `${r?.widgetKey ?? ""}|${i}`;
145
147
  if (t === fetch) {
146
- let e = A.get(a);
148
+ let e = N.get(a);
147
149
  if (e) return e;
148
150
  }
149
151
  let o = (async () => {
150
152
  try {
151
- let i = await t(n ? `${c()}/events/${e}?password=${encodeURIComponent(n)}` : `${c()}/events/${e}`, { headers: te(void 0, r?.widgetKey) });
152
- if (!i.ok) return i.status === 404 ? C("event_not_found") : (k.error(`Failed to fetch event details: ${i.status}`), S("event_fetch_failed"));
153
+ let i = await t(n ? `${c()}/events/${e}?password=${encodeURIComponent(n)}` : `${c()}/events/${e}`, { headers: u(void 0, r?.widgetKey) });
154
+ if (!i.ok) return i.status === 404 ? w("event_not_found") : (M.error(`Failed to fetch event details: ${i.status}`), C("event_fetch_failed"));
153
155
  let a = await i.json();
154
- return a ? x(a) : C("event_not_found");
156
+ return a ? S(a) : w("event_not_found");
155
157
  } catch (e) {
156
- return k.error("Error fetching event details:", e), S("event_fetch_failed");
158
+ return M.error("Error fetching event details:", e), C("event_fetch_failed");
157
159
  }
158
160
  })();
159
- return t === fetch && (A.set(a, o), o.finally(() => {
160
- A.get(a) === o && A.delete(a);
161
+ return t === fetch && (N.set(a, o), o.finally(() => {
162
+ N.get(a) === o && N.delete(a);
161
163
  })), o;
162
164
  }
163
- async function M(e, t = fetch, n, r) {
164
- let i = await j(e, t, n, r);
165
+ async function oe(e, t = fetch, n, r) {
166
+ let i = await ae(e, t, n, r);
165
167
  return i.ok ? i.data : null;
166
168
  }
167
- async function N(e, t, n = (e) => e, r) {
169
+ async function P(e, t, n = (e) => e, r) {
168
170
  try {
169
- let i = await f(e, { widgetKey: r?.widgetKey });
170
- return i ? x(n(i)) : (k.error(`Failed to load (${t}): network or server error`), S(t));
171
+ let { data: i, status: a } = await l(e, { widgetKey: r?.widgetKey });
172
+ return a === 403 ? (M.error(`Refused (${t}): this site may not read it`), T(t)) : i ? S(n(i)) : (M.error(`Failed to load (${t}): network or server error`), C(t));
171
173
  } catch (e) {
172
- return k.error(`Error loading (${t}):`, e), S(t);
174
+ return M.error(`Error loading (${t}):`, e), C(t);
173
175
  }
174
176
  }
175
- function P(e) {
177
+ function F(e) {
176
178
  return Array.isArray(e) ? e : [];
177
179
  }
178
- async function F(e, t, n) {
179
- let r = t?.trim(), i = r ? `?promoCode=${encodeURIComponent(r)}` : "";
180
- return N(`${c()}/tickets/event/${e}${i}`, "tickets_fetch_failed", P, n);
181
- }
182
180
  async function I(e, t, n) {
183
- return w(await F(e, t, n), []);
181
+ let r = t?.trim(), i = r ? `?promoCode=${encodeURIComponent(r)}` : "";
182
+ return P(`${c()}/tickets/event/${e}${i}`, "tickets_fetch_failed", F, n);
184
183
  }
185
- async function L(e, t) {
186
- return e ? N(`${c()}/venues/organization/${e}`, "venues_fetch_failed", P, t) : (k.warn("fetchAllVenues called without orgId"), S("venues_missing_org_id"));
184
+ async function L(e, t, n) {
185
+ return D(await I(e, t, n), []);
187
186
  }
188
187
  async function R(e, t) {
189
- return w(await L(e, t), []);
188
+ return e ? P(`${c()}/venues/organization/${e}`, "venues_fetch_failed", F, t) : (M.warn("fetchAllVenues called without orgId"), C("venues_missing_org_id"));
189
+ }
190
+ async function z(e, t) {
191
+ return D(await R(e, t), []);
190
192
  }
191
- function z(e) {
193
+ function B(e) {
192
194
  return Array.isArray(e) ? e : Array.isArray(e.events) ? e.events : [];
193
195
  }
194
- var B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), H = 3e4;
195
- function U(e, t) {
196
+ var V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), U = 3e4;
197
+ function W(e, t) {
196
198
  return `${t?.widgetKey ?? ""}|${e}`;
197
199
  }
198
- function W(e, t, n) {
200
+ function G(e, t, n) {
199
201
  if (!t || typeof t != "object") return !1;
200
202
  let { year: r, month: i, events: a } = t;
201
203
  if (!Number.isInteger(r) || !Number.isInteger(i) || i < 1 || i > 12 || !Array.isArray(a)) return !1;
202
- let o = G(e, r, i);
203
- return V.set(U(o, n), {
204
+ let o = q(e, r, i);
205
+ return H.set(W(o, n), {
204
206
  events: a,
205
207
  at: Date.now()
206
208
  }), !0;
207
209
  }
208
- function G(e, t, n) {
210
+ function K(e, t, n) {
211
+ return `${c()}/events/venue/${e}/month/${t}/${n}`;
212
+ }
213
+ function q(e, t, n) {
209
214
  return `${c()}/events/organization/${e}/month/${t}/${n}`;
210
215
  }
211
- function K(e) {
212
- let t = V.get(e);
213
- return !t || (V.delete(e), Date.now() - t.at > H) ? null : t.events;
216
+ function se(e) {
217
+ let t = H.get(e);
218
+ return !t || (H.delete(e), Date.now() - t.at > U) ? null : t.events;
214
219
  }
215
- function q(e, t, n, r) {
216
- let i = U(e, r);
217
- if (n?.fresh) V.delete(i);
220
+ function J(e, t, n, r) {
221
+ let i = W(e, r);
222
+ if (n?.fresh) H.delete(i);
218
223
  else {
219
- let e = B.get(i);
224
+ let e = V.get(i);
220
225
  if (e) return e;
221
- let t = K(i);
222
- if (t) return Promise.resolve(x(t));
226
+ let t = se(i);
227
+ if (t) return Promise.resolve(S(t));
223
228
  }
224
- let a = N(e, t, (e) => z(e), r);
225
- return B.set(i, a), a.finally(() => {
226
- B.get(i) === a && B.delete(i);
229
+ let a = P(e, t, (e) => B(e), r);
230
+ return V.set(i, a), a.finally(() => {
231
+ V.get(i) === a && V.delete(i);
227
232
  }), a;
228
233
  }
229
- async function J(e, t, n, r, i) {
230
- return q(`${c()}/events/venue/${e}/month/${t}/${n}`, "month_events_fetch_failed", r, i);
234
+ async function ce(e, t, n, r, i) {
235
+ return J(K(e, t, n), "month_events_fetch_failed", r, i);
231
236
  }
232
- async function oe(e, t, n, r, i) {
233
- return q(G(e, t, n), "org_month_events_fetch_failed", r, i);
237
+ async function le(e, t, n, r, i) {
238
+ return J(q(e, t, n), "org_month_events_fetch_failed", r, i);
234
239
  }
235
- async function se(e, t, n) {
236
- return N(`${c()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed", void 0, n);
240
+ async function ue(e, t, n) {
241
+ return P(`${c()}/series/${e}/occurrences?venueId=${t}`, "series_cta_fetch_failed", void 0, n);
237
242
  }
238
- async function ce(e, t, n) {
239
- let r = await se(e, t, n);
243
+ async function de(e, t, n) {
244
+ let r = await ue(e, t, n);
240
245
  return r.ok ? r.data : null;
241
246
  }
242
- async function le(e, t, n) {
247
+ async function fe(e, t, n) {
243
248
  try {
244
- let r = t ? `?slug=${encodeURIComponent(t)}` : "", i = await f(`${c()}/resolve/${encodeURIComponent(String(e))}${r}`, { widgetKey: n?.widgetKey });
245
- if (!i || !i.type) throw new _("entity", String(e));
249
+ let r = t ? `?slug=${encodeURIComponent(t)}` : "", i = await m(`${c()}/resolve/${encodeURIComponent(String(e))}${r}`, { widgetKey: n?.widgetKey });
250
+ if (!i || !i.type) throw new b("entity", String(e));
246
251
  return i;
247
252
  } catch (e) {
248
- return k.error("Error resolving public entity:", e), null;
253
+ return M.error("Error resolving public entity:", e), null;
249
254
  }
250
255
  }
251
- async function Y(e, t, n) {
256
+ async function pe(e, t, n) {
252
257
  try {
253
- let r = t ? `${c()}/collections/${e}?password=${encodeURIComponent(t)}` : `${c()}/collections/${e}`, i = await f(r, { widgetKey: n?.widgetKey });
254
- if (!i) throw new _("collection", String(e));
258
+ let r = t ? `${c()}/collections/${e}?password=${encodeURIComponent(t)}` : `${c()}/collections/${e}`, i = await m(r, { widgetKey: n?.widgetKey });
259
+ if (!i) throw new b("collection", String(e));
255
260
  return i;
256
261
  } catch (e) {
257
- return k.error("Error fetching collection:", e), null;
262
+ return M.error("Error fetching collection:", e), null;
258
263
  }
259
264
  }
260
- async function ue(e, t, n) {
265
+ async function me(e, t, n) {
261
266
  try {
262
- let r = await f(`${c()}/events/${e}/check-password`, {
267
+ let r = await m(`${c()}/events/${e}/check-password`, {
263
268
  method: "POST",
264
269
  headers: { "Content-Type": "application/json" },
265
270
  body: JSON.stringify({ password: t }),
@@ -267,44 +272,44 @@ async function ue(e, t, n) {
267
272
  });
268
273
  return typeof r == "boolean" ? { valid: r } : { valid: r?.valid === !0 };
269
274
  } catch (e) {
270
- return k.error("Error checking event password:", e), { valid: !1 };
275
+ return M.error("Error checking event password:", e), { valid: !1 };
271
276
  }
272
277
  }
273
278
  // src/lib/api/venues.ts
274
- var X = e("VC");
275
- async function de(e, t) {
279
+ var Y = e("VC");
280
+ async function he(e, t) {
276
281
  try {
277
- if (!e) return X.warn("getVenue called without venueId"), null;
278
- let n = await l(`/venues/${e}`, { widgetKey: t?.widgetKey });
279
- return n.success ? n.data ?? null : (X.error(`Failed to fetch venue: ${n.statusCode}`), null);
282
+ if (!e) return Y.warn("getVenue called without venueId"), null;
283
+ let n = await d(`/venues/${e}`, { widgetKey: t?.widgetKey });
284
+ return n.success ? n.data ?? null : (Y.error(`Failed to fetch venue: ${n.statusCode}`), null);
280
285
  } catch (e) {
281
- return X.error("Error fetching venue:", e), null;
286
+ return Y.error("Error fetching venue:", e), null;
282
287
  }
283
288
  }
284
- async function fe(e, t) {
285
- let n = p(e);
289
+ async function ge(e, t) {
290
+ let n = h(e);
286
291
  if (!n) return !1;
287
292
  try {
288
- let e = await l(`/sites/by-host/${encodeURIComponent(new URL(n).host)}`, { widgetKey: t?.widgetKey });
293
+ let e = await d(`/sites/by-host/${encodeURIComponent(new URL(n).host)}`, { widgetKey: t?.widgetKey });
289
294
  return !!(e.success && e.data);
290
295
  } catch (e) {
291
- return X.warn("hasPublishedSite failed:", e), !1;
296
+ return Y.warn("hasPublishedSite failed:", e), !1;
292
297
  }
293
298
  }
294
299
  // src/lib/api/transformers/giftCard.ts
295
- function Z(e, t) {
300
+ function X(e, t) {
296
301
  return e == null || t(e);
297
302
  }
298
- function pe(e) {
303
+ function _e(e) {
299
304
  if (typeof e != "object" || !e) return !1;
300
305
  let t = e;
301
- 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");
306
+ return t.valid === !0 && Number.isInteger(t.appliedAmount) && typeof t.remainingTotal == "number" && Number.isFinite(t.remainingTotal) && X(t.giftCardCode, (e) => typeof e == "string") && X(t.giftCardBalance, (e) => typeof e == "number" && Number.isFinite(e)) && X(t.fullyCoveredByCard, (e) => typeof e == "boolean");
302
307
  }
303
- var me = "We couldn't apply that gift card. Please try again.";
304
- function he(e) {
305
- if (!pe(e)) return {
308
+ var ve = "We couldn't apply that gift card. Please try again.";
309
+ function ye(e) {
310
+ if (!_e(e)) return {
306
311
  valid: !1,
307
- error: me
312
+ error: ve
308
313
  };
309
314
  let r = e, i = t(n(r.appliedAmount)), a = r.remainingTotal, o = r.fullyCoveredByCard ?? a <= 0, s = !o;
310
315
  return {
@@ -319,33 +324,33 @@ function he(e) {
319
324
  };
320
325
  }
321
326
  // src/lib/api/gift-cards.ts
322
- var Q = e("VC");
323
- async function ge(e, t, n) {
327
+ var Z = e("VC");
328
+ async function be(e, t, n) {
324
329
  try {
325
- let r = await u(`${d()}/cart/${e}/apply-gift-card`, { giftCardCode: t }, { widgetKey: n?.widgetKey });
330
+ let r = await f(`${p()}/cart/${e}/apply-gift-card`, { giftCardCode: t }, { widgetKey: n?.widgetKey });
326
331
  if (!r.success) return r.statusCode === 429 ? {
327
332
  valid: !1,
328
333
  error: "Too many attempts. Please wait a moment and try again."
329
- } : (Q.error("Apply gift card failed:", r.error), {
334
+ } : (Z.error("Apply gift card failed:", r.error), {
330
335
  valid: !1,
331
336
  error: r.error || "Invalid gift card code"
332
337
  });
333
- let i = he(r.data);
334
- return i.valid || Q.error("Apply gift card returned an unusable payload:", r.data), i;
338
+ let i = ye(r.data);
339
+ return i.valid || Z.error("Apply gift card returned an unusable payload:", r.data), i;
335
340
  } catch (e) {
336
- return Q.error("applyGiftCard error:", e), {
341
+ return Z.error("applyGiftCard error:", e), {
337
342
  valid: !1,
338
343
  error: "Network error. Please check your connection and try again."
339
344
  };
340
345
  }
341
346
  }
342
- async function _e(e, t, n) {
347
+ async function xe(e, t, n) {
343
348
  try {
344
- let r = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, i = await ne(`${d()}/cart/${e}/gift-card`, r ? {
349
+ let r = t?.giftCardId ? { giftCardId: t.giftCardId } : t?.code ? { giftCardCode: t.code } : null, i = await te(`${p()}/cart/${e}/gift-card`, r ? {
345
350
  body: JSON.stringify(r),
346
351
  widgetKey: n?.widgetKey
347
352
  } : { widgetKey: n?.widgetKey });
348
- if (!i.success) return Q.error("Remove gift card failed:", i.error), {
353
+ if (!i.success) return Z.error("Remove gift card failed:", i.error), {
349
354
  success: !1,
350
355
  error: i.error || "Failed to remove gift card"
351
356
  };
@@ -355,16 +360,16 @@ async function _e(e, t, n) {
355
360
  ...typeof o == "number" ? { remainingTotal: o } : {}
356
361
  };
357
362
  } catch (e) {
358
- return Q.error("removeGiftCard error:", e), {
363
+ return Z.error("removeGiftCard error:", e), {
359
364
  success: !1,
360
365
  error: "Network error. Please check your connection and try again."
361
366
  };
362
367
  }
363
368
  }
364
- async function ve(e, t, n, r) {
369
+ async function Q(e, t, n, r) {
365
370
  let a = ee(n);
366
371
  try {
367
- let n = await u(`${d()}/cart/${e}/complete-gift-card-payment`, {
372
+ let n = await f(`${p()}/cart/${e}/complete-gift-card-payment`, {
368
373
  customerName: i(t.firstName, t.lastName),
369
374
  customerEmail: t.email,
370
375
  firstName: t.firstName,
@@ -380,20 +385,20 @@ async function ve(e, t, n, r) {
380
385
  success: !0,
381
386
  orderId: n.data?.orderId,
382
387
  confirmationNumber: n.data?.confirmationNumber
383
- } : (Q.error("Complete gift card payment failed:", n.error), {
388
+ } : (Z.error("Complete gift card payment failed:", n.error), {
384
389
  success: !1,
385
390
  error: n.error || "Failed to complete payment"
386
391
  });
387
392
  } catch (e) {
388
- return Q.error("completeGiftCardPayment error:", e), {
393
+ return Z.error("completeGiftCardPayment error:", e), {
389
394
  success: !1,
390
395
  error: "Network error. Please check your connection and try again."
391
396
  };
392
397
  }
393
398
  }
394
399
  // src/lib/api/cart-addons.ts
395
- var ye = e("VC");
396
- async function be(e, t, n) {
400
+ var Se = e("VC");
401
+ async function Ce(e, t, n) {
397
402
  let r = (e) => ({
398
403
  success: !1,
399
404
  error: e,
@@ -408,7 +413,7 @@ async function be(e, t, n) {
408
413
  !Number.isNaN(t) && n > 0 && (i[t] = n);
409
414
  }
410
415
  try {
411
- let t = await u(`${d()}/cart/${e}/add-ons`, { addOnQuantities: i }, { widgetKey: n?.widgetKey });
416
+ let t = await f(`${p()}/cart/${e}/add-ons`, { addOnQuantities: i }, { widgetKey: n?.widgetKey });
412
417
  if (!t.success) return r(t.error || null);
413
418
  let a = t.data || {};
414
419
  return {
@@ -419,16 +424,16 @@ async function be(e, t, n) {
419
424
  repriced: a.repriced === !0
420
425
  };
421
426
  } catch (e) {
422
- return ye.error("updateCartAddOns error:", e), r(null);
427
+ return Se.error("updateCartAddOns error:", e), r(null);
423
428
  }
424
429
  }
425
430
  // src/lib/api/waitlist.ts
426
431
  var $ = e("VC");
427
- async function xe(e, t, n = null, r = !1, i) {
432
+ async function we(e, t, n = null, r = !1, i) {
428
433
  try {
429
434
  let a = { email: t };
430
435
  n && r && (a.phone = n, a.smsOptIn = !0);
431
- let o = await u(`/events/${e}/waitlist`, a, { widgetKey: i?.widgetKey });
436
+ let o = await f(`/events/${e}/waitlist`, a, { widgetKey: i?.widgetKey });
432
437
  return o.success ? {
433
438
  success: !0,
434
439
  updated: o.data?.updated,
@@ -444,9 +449,9 @@ async function xe(e, t, n = null, r = !1, i) {
444
449
  };
445
450
  }
446
451
  }
447
- async function Se(e, t, n) {
452
+ async function Te(e, t, n) {
448
453
  try {
449
- let r = await u(`/checkout/validate-token/${e}`, { email: t }, { widgetKey: n?.widgetKey });
454
+ let r = await f(`/checkout/validate-token/${e}`, { email: t }, { widgetKey: n?.widgetKey });
450
455
  return r.success ? {
451
456
  valid: !0,
452
457
  eventId: r.data?.eventId ?? 0,
@@ -464,9 +469,9 @@ async function Se(e, t, n) {
464
469
  };
465
470
  }
466
471
  }
467
- async function Ce(e, t, n) {
472
+ async function Ee(e, t, n) {
468
473
  try {
469
- let r = await u(`/waitlist/requeue/${e}`, { email: t }, { widgetKey: n?.widgetKey });
474
+ let r = await f(`/waitlist/requeue/${e}`, { email: t }, { widgetKey: n?.widgetKey });
470
475
  return r.success ? { success: !0 } : {
471
476
  success: !1,
472
477
  errorCode: r.error
@@ -478,14 +483,14 @@ async function Ce(e, t, n) {
478
483
  };
479
484
  }
480
485
  }
481
- async function we(e, t) {
486
+ async function De(e, t) {
482
487
  let n = {
483
488
  waitlistEnabled: !1,
484
489
  soldOut: !1,
485
490
  gated: !1
486
491
  };
487
492
  try {
488
- let r = await l(`/events/${e}/waitlist/status`, { widgetKey: t?.widgetKey });
493
+ let r = await d(`/events/${e}/waitlist/status`, { widgetKey: t?.widgetKey });
489
494
  return r.success ? {
490
495
  waitlistEnabled: !!r.data?.waitlistEnabled,
491
496
  soldOut: !!r.data?.soldOut,
@@ -495,8 +500,8 @@ async function we(e, t) {
495
500
  return $.error("getWaitlistStatus error:", e), n;
496
501
  }
497
502
  }
498
- function Te(e) {
503
+ function Oe(e) {
499
504
  let t = String(e % 60).padStart(2, "0");
500
505
  return e >= 3600 ? `${Math.floor(e / 3600)}:${String(Math.floor(e % 3600 / 60)).padStart(2, "0")}:${t}` : `${Math.floor(e / 60)}:${t}`;
501
506
  }
502
- export { ae as C, g as D, h as E, le as S, b as T, Y as _, Se as a, oe as b, ve as c, fe as d, ue as f, F as g, I as h, Ce as i, _e as l, M as m, we as n, be as o, R as p, xe as r, ge as s, Te as t, de as u, ce as v, ie as w, W as x, J as y };
507
+ export { E as C, y as D, v as E, fe as S, re as T, pe as _, Te as a, le as b, Q as c, ge as d, me as f, I as g, L as h, Ee as i, xe as l, oe as m, De as n, Ce as o, z as p, we as r, be as s, Oe as t, he as u, de as v, ie as w, G as x, ce as y };
@@ -1,10 +1,10 @@
1
- import { t as e } from "./Search-BE64QcmK.js";
2
- import { a as t } from "./allowlist-Bt1BHhNd.js";
1
+ import { a as e } from "./allowlist-DinkGF2L.js";
2
+ import { t } from "./Search-vhGEpog6.js";
3
3
  import { i as n } from "./typography-CKwYSv07.js";
4
- import { F as r, d as i } from "./field-rules-CKFFB16Q.js";
5
- import { t as a } from "./Checkbox-sObkYRdj.js";
4
+ import { F as r, d as i } from "./field-rules-Yb2JY1qT.js";
5
+ import { n as a } from "./Modal-C6EXgkuF.js";
6
6
  import { t as o } from "./foundryRuntime-DKyfdkUY.js";
7
- import { r as s } from "./CalendarFoundryView-DbxZNmY7.js";
7
+ import { r as s } from "./CalendarFoundryView-B5puOxH5.js";
8
8
  import "svelte/internal/disclose-version";
9
9
  import * as c from "svelte/internal/client";
10
10
  // node_modules/@getmicdrop/svelte-components/dist/foundry/blocks/fields/avatar-picker-field.svelte
@@ -26,10 +26,10 @@ function m(m, h) {
26
26
  }), [() => s(h.field, h.wiring)]);
27
27
  var w = c.child(C);
28
28
  {
29
- let t = c.derived(() => h.controlId ?? h.field.key), n = c.derived(() => h.testId ?? h.controlId ?? h.field.key), r = c.derived(() => g.common_search());
30
- e(w, {
29
+ let e = c.derived(() => h.controlId ?? h.field.key), n = c.derived(() => h.testId ?? h.controlId ?? h.field.key), r = c.derived(() => g.common_search());
30
+ t(w, {
31
31
  get id() {
32
- return `${c.get(t) ?? ""}-search`;
32
+ return `${c.get(e) ?? ""}-search`;
33
33
  },
34
34
  get "data-testid"() {
35
35
  return `${c.get(n) ?? ""}-search`;
@@ -47,19 +47,19 @@ function m(m, h) {
47
47
  });
48
48
  }
49
49
  var T = c.sibling(w, 2), E = c.child(T);
50
- c.each(E, 19, () => c.get(x), (e, t) => `${t}:${e.value}`, (e, r) => {
51
- var i = d(), o = c.child(i), s = (e) => {
52
- t(e, {
50
+ c.each(E, 19, () => c.get(x), (e, t) => `${t}:${e.value}`, (t, r) => {
51
+ var i = d(), o = c.child(i), s = (t) => {
52
+ e(t, {
53
53
  get src() {
54
54
  return c.get(r).image;
55
55
  },
56
56
  alt: "",
57
57
  size: "sm"
58
58
  });
59
- }, f = (e) => {
59
+ }, f = (t) => {
60
60
  {
61
61
  let n = c.derived(() => c.get(r).label.slice(0, 2));
62
- t(e, {
62
+ e(t, {
63
63
  get initials() {
64
64
  return c.get(n);
65
65
  },
@@ -100,7 +100,7 @@ function m(m, h) {
100
100
  $$slots: { default: !0 }
101
101
  });
102
102
  }
103
- c.reset(p), c.reset(i), c.append(e, i);
103
+ c.reset(p), c.reset(i), c.append(t, i);
104
104
  });
105
105
  var D = c.sibling(E, 2), O = (e) => {
106
106
  var t = f(), r = c.only_child(t, !0);