@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,5 +1,5 @@
1
1
  import { t as e } from "./logger-DM8WW61-.js";
2
- import { E as t, S as n, w as r } from "./client-BIN_q-of.js";
2
+ import { E as t, S as n, w as r } from "./client-SaDt6559.js";
3
3
  // node_modules/js-cookie/dist/js.cookie.mjs
4
4
  function i(e) {
5
5
  for (var t = 1; t < arguments.length; t++) {
@@ -156,40 +156,31 @@ function T({ eventID: e, quantities: n, donationAmounts: r, addOnQuantities: i,
156
156
  function E(e) {
157
157
  if (!e) return null;
158
158
  let i = n(g(e), null);
159
- if (i != null) return k(i);
159
+ if (i != null) return O(i);
160
160
  let a = n(_(e), null);
161
161
  if (a == null) return null;
162
- let o = k(a);
162
+ let o = O(a);
163
163
  return o != null && (t(g(e), o), r(_(e))), o;
164
164
  }
165
165
  function D(e, n) {
166
166
  e && Number.isFinite(n) && t(g(e), n);
167
167
  }
168
168
  function O(e) {
169
- e && (r(g(e)), r(_(e)));
170
- }
171
- function k(e) {
172
169
  let t = typeof e == "number" ? e : parseInt(e, 10);
173
170
  return Number.isFinite(t) && t > 0 ? t : null;
174
171
  }
175
- function A(e) {
172
+ function k(e) {
176
173
  let t = x();
177
174
  c(v, e, t), c(y, e, t);
178
175
  }
179
- async function j(e) {
180
- let t = p(`order-id-${e}`), n = `order-id-${e}`, r = l(t) || l(n);
181
- if (r) return r;
182
- let i = `order-${e}-${Date.now()}`, a = x();
183
- return c(t, i, a), c(n, i, a), i;
176
+ var A = (e) => f(`queue-token-${e}`);
177
+ function j(e) {
178
+ return n(A(e), null);
184
179
  }
185
- var M = (e) => f(`queue-token-${e}`);
186
- function N(e) {
187
- return n(M(e), null);
188
- }
189
- function P(e, n) {
190
- n && t(M(e), n);
180
+ function M(e, n) {
181
+ n && t(A(e), n);
191
182
  }
192
- function F(e) {
193
- r(M(e));
183
+ function N(e) {
184
+ r(A(e));
194
185
  }
195
- export { c as _, F as a, S as c, N as d, A as f, u as g, l as h, O as i, T as l, P as m, y as n, j as o, D as p, w as r, b as s, v as t, E as u };
186
+ export { S as a, j as c, M as d, u as f, b as i, k as l, w as n, T as o, N as r, E as s, v as t, D as u };
@@ -235,13 +235,6 @@ async function J(e, t, n, r) {
235
235
  }
236
236
  }
237
237
  async function Y(e, t) {
238
- return K(`${V()}/tax-preview`, e, {
239
- signal: t?.signal,
240
- suppressOnError: t?.suppressOnError ?? !0,
241
- widgetKey: t?.widgetKey
242
- });
243
- }
244
- async function X(e, t) {
245
238
  try {
246
239
  let n = await W(e, e.startsWith(R.baseUrl) ? { headers: F(void 0, t?.widgetKey) } : {}, R);
247
240
  return n.body?.cancel().catch(() => {}), n.ok;
@@ -249,7 +242,11 @@ async function X(e, t) {
249
242
  return !1;
250
243
  }
251
244
  }
252
- async function Z(e, t) {
245
+ async function X(e, t) {
246
+ return (await Q(e, t)).data;
247
+ }
248
+ var Z = Q;
249
+ async function Q(e, t) {
253
250
  try {
254
251
  let n = e.startsWith(R.baseUrl), { widgetKey: r, ...i } = t ?? {}, a = await W(e, {
255
252
  ...i,
@@ -257,11 +254,20 @@ async function Z(e, t) {
257
254
  }, R);
258
255
  if (!a.ok) {
259
256
  let e = await a.json().catch(() => ({}));
260
- return A.error(`API request failed: ${a.status}`, e), null;
257
+ return A.error(`API request failed: ${a.status}`, e), {
258
+ data: null,
259
+ status: a.status
260
+ };
261
261
  }
262
- return a.json();
262
+ return {
263
+ data: await a.json(),
264
+ status: a.status
265
+ };
263
266
  } catch (e) {
264
- return A.error("API request error:", e), null;
267
+ return A.error("API request error:", e), {
268
+ data: null,
269
+ status: 0
270
+ };
265
271
  }
266
272
  }
267
- export { p as C, m as D, d as E, u as S, h as T, O as _, z as a, E as b, V as c, Y as d, F as f, y as g, T as h, X as i, M as l, S as m, G as n, B as o, k as p, K as r, H as s, q as t, Z as u, x as v, f as w, v as x, w as y };
273
+ export { p as C, m as D, d as E, u as S, h as T, O as _, z as a, E as b, V as c, Z as d, F as f, y as g, T as h, Y as i, M as l, S as m, G as n, B as o, k as p, K as r, H as s, q as t, X as u, x as v, f as w, v as x, w as y };
@@ -1,4 +1,4 @@
1
- import { m as e } from "./client-BIN_q-of.js";
1
+ import { m as e } from "./client-SaDt6559.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
4
  // node_modules/@getmicdrop/svelte-components/dist/components/Text.svelte
@@ -1,6 +1,6 @@
1
- import { d as e, f as t, h as n } from "./calendar-Cdu8fCIt.js";
2
- import { O as r } from "./field-rules-CKFFB16Q.js";
3
- import { t as i } from "./DatePicker-v-4ijT8N.js";
1
+ import { S as e, v as t, y as n } from "./format-CehusdDg.js";
2
+ import { O as r } from "./field-rules-Yb2JY1qT.js";
3
+ import { t as i } from "./DatePicker-D20Te0JY.js";
4
4
  import { t as a } from "./foundryRuntime-DKyfdkUY.js";
5
5
  import "svelte/internal/disclose-version";
6
6
  import * as o from "svelte/internal/client";
@@ -27,10 +27,10 @@ function s(s, c) {
27
27
  onOrBefore: (e) => l.datepicker_on_or_before({ date: e }),
28
28
  weekdayUnavailable: l.datepicker_weekday_unavailable()
29
29
  }));
30
- function d(t) {
31
- if (typeof t != "string" || t === "") return null;
30
+ function d(e) {
31
+ if (typeof e != "string" || e === "") return null;
32
32
  try {
33
- return e(t);
33
+ return t(e);
34
34
  } catch {
35
35
  return null;
36
36
  }
@@ -42,10 +42,10 @@ function s(s, c) {
42
42
  }
43
43
  let p = o.derived(() => c.field.date ?? {}), m = o.derived(() => d(c.values[c.field.key])), h = o.derived(() => r(c.field, c.values)), g = o.derived(() => d(o.get(h).minDate)), _ = o.derived(() => d(o.get(h).maxDate)), v = o.derived(() => f(o.get(p).allowedWeekdays));
44
44
  {
45
- let e = o.derived(() => c.controlId ?? c.field.key), r = o.derived(() => c.testId ?? c.controlId ?? c.field.key), a = o.derived(() => c.disabled === !0), l = o.derived(() => o.get(p).disablePastDates ?? !1), d = o.derived(() => o.get(p).usePortal ?? !1);
45
+ let t = o.derived(() => c.controlId ?? c.field.key), r = o.derived(() => c.testId ?? c.controlId ?? c.field.key), a = o.derived(() => c.disabled === !0), l = o.derived(() => o.get(p).disablePastDates ?? !1), d = o.derived(() => o.get(p).usePortal ?? !1);
46
46
  i(s, {
47
47
  get id() {
48
- return o.get(e);
48
+ return o.get(t);
49
49
  },
50
50
  get wiring() {
51
51
  return c.wiring;
@@ -80,7 +80,7 @@ function s(s, c) {
80
80
  get labels() {
81
81
  return o.get(u);
82
82
  },
83
- onchange: ({ date: e }) => c.set(c.field.key, e ? t(n(e)) : null)
83
+ onchange: ({ date: t }) => c.set(c.field.key, t ? n(e(t)) : null)
84
84
  });
85
85
  }
86
86
  o.pop();
@@ -1,10 +1,10 @@
1
1
  import { i as e } from "./typography-CKwYSv07.js";
2
- import { d as t, f as n, h as r } from "./calendar-Cdu8fCIt.js";
3
- import { a as i, r as a } from "./field-rules-CKFFB16Q.js";
4
- import { t as o } from "./FilterChipGroup-DUGvOaRI.js";
5
- import { t as s } from "./DatePicker-v-4ijT8N.js";
2
+ import { S as t, v as n, y as r } from "./format-CehusdDg.js";
3
+ import { a as i, r as a } from "./field-rules-Yb2JY1qT.js";
4
+ import { t as o } from "./FilterChipGroup-BCjc7-pE.js";
5
+ import { t as s } from "./DatePicker-D20Te0JY.js";
6
6
  import { t as c } from "./foundryRuntime-DKyfdkUY.js";
7
- import { r as l } from "./CalendarFoundryView-DbxZNmY7.js";
7
+ import { r as l } from "./CalendarFoundryView-B5puOxH5.js";
8
8
  import "svelte/internal/disclose-version";
9
9
  import * as u from "svelte/internal/client";
10
10
  // node_modules/@getmicdrop/svelte-components/dist/foundry/blocks/fields/date-range-field.svelte
@@ -36,13 +36,13 @@ function f(f, p) {
36
36
  }));
37
37
  function b(e) {
38
38
  if (typeof e == "string" && e !== "") try {
39
- return t(e);
39
+ return n(e);
40
40
  } catch {
41
41
  return;
42
42
  }
43
43
  }
44
44
  function x(e) {
45
- return e ? n(r(e)) : "";
45
+ return e ? r(t(e)) : "";
46
46
  }
47
47
  function S(e) {
48
48
  p.set(p.field.key, a(e.openEnded === !0 ? {
@@ -105,6 +105,7 @@ var e = {
105
105
  networkErrorCancel: "Abbrechen",
106
106
  retryingConnection: "Verbindung wird erneut hergestellt...",
107
107
  couldNotLoadEvents: "Events konnten nicht geladen werden. Bitte überprüfe deine Internetverbindung und versuche es erneut.",
108
+ calendarNotEnabled: "Dieser Kalender ist für diese Website nicht aktiviert",
108
109
  offlineMessage: "Du bist offline. Einige Funktionen stehen erst nach erneuter Verbindung zur Verfügung.",
109
110
  poweredBy: "Bereitgestellt von",
110
111
  micdropAriaLabel: "MicDrop – Ticketplattform für Events",
@@ -118,6 +118,7 @@ var n = {
118
118
  networkErrorCancel: "Cancel",
119
119
  retryingConnection: "Retrying connection",
120
120
  couldNotLoadEvents: "We couldn't load the events. Please check your internet connection and try again",
121
+ calendarNotEnabled: "This calendar isn't enabled for this site",
121
122
  offlineMessage: "You're offline. Some features may not work until you reconnect",
122
123
  poweredBy: "Powered by",
123
124
  micdropAriaLabel: "MicDrop - Event ticketing platform",
@@ -1,6 +1,5 @@
1
- import { x as e } from "./instant-BkZCSGDm.js";
2
- import { c as t, i as n, r, t as i } from "./format-CypC4vWs.js";
3
- import { c as a, h as o, i as s, n as c } from "./client-BIN_q-of.js";
1
+ import { G as e, N as t, i as n, r, t as i } from "./format-CehusdDg.js";
2
+ import { c as a, h as o, i as s, n as c } from "./client-SaDt6559.js";
4
3
  import { n as l } from "./loaders.static-Bw9asjrm.js";
5
4
  // src/lib/utils/ics.ts
6
5
  function u(e) {
@@ -105,6 +105,7 @@ var e = {
105
105
  networkErrorCancel: "Cancelar",
106
106
  retryingConnection: "Reintentando conexión",
107
107
  couldNotLoadEvents: "No pudimos cargar los eventos. Comprueba tu conexión a internet e inténtalo de nuevo",
108
+ calendarNotEnabled: "Este calendario no está habilitado para este sitio",
108
109
  offlineMessage: "Estás sin conexión. Es posible que algunas funciones no estén disponibles hasta que te reconectes",
109
110
  poweredBy: "Con la tecnología de",
110
111
  micdropAriaLabel: "MicDrop - Plataforma de venta de entradas para eventos",
@@ -1,4 +1,4 @@
1
- import { s as e } from "./instant-BkZCSGDm.js";
1
+ import { A as e } from "./format-CehusdDg.js";
2
2
  import { n as t } from "./imageUrl-iAS2Xo17.js";
3
3
  // src/lib/api/transformers/event.ts
4
4
  function n(e) {
@@ -1,9 +1,9 @@
1
- import { c as e } from "./format-CypC4vWs.js";
1
+ import { N as e } from "./format-CehusdDg.js";
2
2
  import { t } from "./imageUrl-iAS2Xo17.js";
3
- import { b as n, h as r, v as i, x as a, y as o } from "./navigation-DpqP-ahJ.js";
4
- import { a as s, l as c, n as l, s as u, u as d } from "./datetime-BlEsN_-8.js";
3
+ import { _ as n, b as r, h as i, v as a, y as o } from "./navigation-B8rkS2On.js";
4
+ import { d as s, i as c, l, s as u, u as d } from "./scarcity-DfQvyhJP.js";
5
5
  import { t as f } from "./colors-CdP193E5.js";
6
- import { t as p } from "./event-CEg17hts.js";
6
+ import { t as p } from "./event-ClsLWtR0.js";
7
7
  // src/lib/utils/event-transform.js
8
8
  var m = "data:image/svg+xml," + encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 300" fill="none">
9
9
  <rect width="200" height="300" fill="${f[200]}"/>
@@ -35,7 +35,7 @@ function y(e, t, n) {
35
35
  function b(e, t) {
36
36
  if (!e.startDateTime) return "";
37
37
  try {
38
- return e.endDateTime ? c(e.startDateTime, e.endDateTime, t) : u(e.startDateTime, t);
38
+ return e.endDateTime ? d(e.startDateTime, e.endDateTime, t) : l(e.startDateTime, t);
39
39
  } catch {
40
40
  let n = {
41
41
  hour: "numeric",
@@ -54,7 +54,7 @@ function x(e, t) {
54
54
  dateOfMonth: ""
55
55
  };
56
56
  try {
57
- let n = d(e, t);
57
+ let n = s(e, t);
58
58
  return {
59
59
  day: n.day,
60
60
  month: n.month,
@@ -75,68 +75,68 @@ var S = {
75
75
  function C(t, n = { mode: S.DETAIL }) {
76
76
  let { mode: r = S.DETAIL } = n;
77
77
  if (!t) return r === S.BROWSE ? D() : O();
78
- let i = p(t), a = e(i.timeZone || i.timezone), o = h(t), s = {
78
+ let i = p(t), a = i.venue || {}, o = e(i.timeZone || i.timezone || a.timeZone || a.timezone), s = h(t), c = {
79
79
  id: i.id,
80
80
  name: i.title || "",
81
- image: o,
82
- timeZone: a,
81
+ image: s,
82
+ timeZone: o,
83
83
  startDateTime: i.startDateTime || null,
84
84
  salesStatus: i.salesStatus
85
85
  };
86
- return r === S.BROWSE ? w(t, i, s, a) : T(t, i, s, a, o);
86
+ return r === S.BROWSE ? w(t, i, c, o) : T(t, i, c, o, s);
87
87
  }
88
- function w(e, a, o, s) {
89
- let c = a.startDateTime ? l(a.startDateTime, s) : "", u;
90
- if (typeof a.ticketsRemaining == "number" && typeof a.ticketsTotal == "number") {
91
- let e = a.ticketsRemaining, t = a.ticketsTotal;
88
+ function w(e, r, a, s) {
89
+ let l = r.startDateTime ? c(r.startDateTime, s) : "", u;
90
+ if (typeof r.ticketsRemaining == "number" && typeof r.ticketsTotal == "number") {
91
+ let e = r.ticketsRemaining, t = r.ticketsTotal;
92
92
  u = {
93
93
  totalRemaining: e,
94
94
  totalCapacity: t,
95
95
  isSoldOut: t > 0 && e <= 0
96
96
  };
97
97
  } else {
98
- let t = n(e.availableTickets || [], {
98
+ let t = o(e.availableTickets || [], {
99
99
  excludeDoorOnly: !0,
100
100
  publicOnly: !0
101
101
  });
102
- u = i(t);
102
+ u = n(t);
103
103
  }
104
104
  return {
105
- ...o,
105
+ ...a,
106
106
  image: t(e, { placeholder: "" }),
107
- date: c || a.date || "",
108
- status: a.status || "On Sale",
109
- timeline: b(a, s),
110
- endDateTime: a.endDateTime || null,
111
- description: a.description || a.eventSummary || "",
112
- venueId: a.venueId,
113
- eventSeriesId: a.eventSeriesId || null,
107
+ date: l || r.date || "",
108
+ status: r.status || "On Sale",
109
+ timeline: b(r, s),
110
+ endDateTime: r.endDateTime || null,
111
+ description: r.description || r.eventSummary || "",
112
+ venueId: r.venueId,
113
+ eventSeriesId: r.eventSeriesId || null,
114
114
  ticketsRemaining: u.totalRemaining,
115
115
  ticketsTotal: u.totalCapacity,
116
116
  isSoldOut: u.isSoldOut,
117
- hasPurchasableHiddenTickets: r(e),
118
- stageId: a.stageId ?? null,
119
- eventCategoryTypes: a.eventCategoryTypes ?? null,
120
- ageRestriction: a.ageRestriction ?? null,
121
- stageName: a.stage?.name || a.stageName || void 0,
122
- doorsOpenTime: a.doorsOpenTime,
123
- displayDoorsTime: a.displayDoorsTime,
124
- displayStartTime: a.displayStartTime,
125
- displayAgeRestriction: a.displayAgeRestriction,
126
- publicPerformers: a.publicPerformers ?? null,
127
- collectionIds: a.collectionIds ?? null
117
+ hasPurchasableHiddenTickets: i(e),
118
+ stageId: r.stageId ?? null,
119
+ eventCategoryTypes: r.eventCategoryTypes ?? null,
120
+ ageRestriction: r.ageRestriction ?? null,
121
+ stageName: r.stage?.name || r.stageName || void 0,
122
+ doorsOpenTime: r.doorsOpenTime,
123
+ displayDoorsTime: r.displayDoorsTime,
124
+ displayStartTime: r.displayStartTime,
125
+ displayAgeRestriction: r.displayAgeRestriction,
126
+ publicPerformers: r.publicPerformers ?? null,
127
+ collectionIds: r.collectionIds ?? null
128
128
  };
129
129
  }
130
- function T(e, t, i, s, c) {
130
+ function T(e, t, n, s, c) {
131
131
  let l = (e.availableTickets || []).map((e) => ({
132
132
  ...e,
133
- status: o(e)
134
- })), u = n(l, {
133
+ status: a(e)
134
+ })), u = o(l, {
135
135
  excludeDoorOnly: !1,
136
136
  publicOnly: !0
137
137
  }), d = x(t.startDateTime, s);
138
138
  return {
139
- ...i,
139
+ ...n,
140
140
  date: t.startDateTime ? E(t.startDateTime, s) : null,
141
141
  endDateTime: t.endDateTime,
142
142
  description: t.description,
@@ -148,14 +148,14 @@ function T(e, t, i, s, c) {
148
148
  location: t.venue?.googleLocationNameCache || t.venue?.address || "",
149
149
  ...d,
150
150
  coverImage: c,
151
- price: a(e.availableTickets),
151
+ price: r(e.availableTickets),
152
152
  status: t.status || "On Sale",
153
153
  eventSummary: t.eventSummary,
154
154
  password: t.password,
155
155
  availableTickets: l,
156
156
  publicTickets: u,
157
157
  ...e.addOns ? { addOns: e.addOns } : {},
158
- hasPurchasableHiddenTickets: r(e),
158
+ hasPurchasableHiddenTickets: i(e),
159
159
  doorsOpenTime: t.doorsOpenTime,
160
160
  venue: t.venue,
161
161
  venueID: t.venueId,
@@ -177,7 +177,7 @@ function T(e, t, i, s, c) {
177
177
  };
178
178
  }
179
179
  function E(e, t) {
180
- return e && s(e, t, {
180
+ return e && u(e, t, {
181
181
  weekday: "short",
182
182
  month: "short",
183
183
  day: "numeric",
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./logger-DM8WW61-.js";
2
- import { c as t, g as n } from "./client-BIN_q-of.js";
2
+ import { c as t, g as n } from "./client-SaDt6559.js";
3
3
  // src/lib/public-calendar-flow/eventStatusStream.ts
4
4
  var r = e("VC"), i = /* @__PURE__ */ new Set([
5
5
  "canceled",
@@ -1,4 +1,4 @@
1
- import { t as e } from "./allowlist-Bt1BHhNd.js";
1
+ import { t as e } from "./allowlist-DinkGF2L.js";
2
2
  // node_modules/@getmicdrop/svelte-components/dist/messages.js
3
3
  var t = {
4
4
  REQUIRED: "This field is required",
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "./labels-CjSrA6gx.js";
2
- import { r as t } from "./BlockPlaceholder-BKfoE795.js";
3
- import { t as n } from "./Button-B1cBhdtC.js";
2
+ import { t } from "./CloseOutline-Bh9UO94v.js";
3
+ import { t as n } from "./Button-DpeQSoQ7.js";
4
4
  import { i as r, r as i } from "./typography-CKwYSv07.js";
5
- import { v as a } from "./field-rules-CKFFB16Q.js";
6
- import { t as o } from "./Spinner-Bj4dr9kO.js";
5
+ import { v as a } from "./field-rules-Yb2JY1qT.js";
6
+ import { t as o } from "./Spinner-DgubkWKo.js";
7
7
  import { t as s } from "./Stack-Ck1wrJ0l.js";
8
8
  import "svelte/internal/disclose-version";
9
9
  import * as c from "svelte/internal/client";