@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,102 +0,0 @@
1
- import { a as e, i as t, n, r, t as i } from "./ModalFooter-gFaDKsfj.js";
2
- import { n as a } from "./modalManager.svelte-BvyrTI6p.js";
3
- import "svelte/internal/disclose-version";
4
- import * as o from "svelte/internal/client";
5
- // node_modules/@getmicdrop/svelte-components/dist/primitives/Modal/Modal.svelte
6
- var s = o.from_html("<!> <!> <!> <!>", 1), c = o.from_html("<!> <!>", 1);
7
- function l(l, u) {
8
- o.push(u, !0);
9
- let d = o.prop(u, "open", 15, !1), f = o.prop(u, "size", 3, "md"), p = o.prop(u, "persistent", 3, !1), m = o.prop(u, "haptic", 3, !0), h = o.prop(u, "variant", 3, "sheet");
10
- e(l, {
11
- get size() {
12
- return f();
13
- },
14
- get persistent() {
15
- return p();
16
- },
17
- get haptic() {
18
- return m();
19
- },
20
- get oncancel() {
21
- return u.oncancel;
22
- },
23
- get variant() {
24
- return h();
25
- },
26
- get class() {
27
- return u.class;
28
- },
29
- get "aria-labelledby"() {
30
- return u["aria-labelledby"];
31
- },
32
- get "data-testid"() {
33
- return u["data-testid"];
34
- },
35
- get open() {
36
- return d();
37
- },
38
- set open(e) {
39
- d(e);
40
- },
41
- children: (e, l) => {
42
- var d = c(), f = o.first_child(d);
43
- t(f, {});
44
- var p = o.sibling(f, 2);
45
- r(p, {
46
- children: (e, t) => {
47
- var r = s(), c = o.first_child(r), l = (e) => {
48
- a(e, {
49
- children: (e, t) => {
50
- var n = o.comment(), r = o.first_child(n);
51
- o.snippet(r, () => u.header), o.append(e, n);
52
- },
53
- $$slots: { default: !0 }
54
- });
55
- };
56
- o.if(c, (e) => {
57
- u.header && e(l);
58
- });
59
- var d = o.sibling(c, 2), f = (e) => {
60
- n(e, {
61
- children: (e, t) => {
62
- var n = o.comment(), r = o.first_child(n);
63
- o.snippet(r, () => u.body), o.append(e, n);
64
- },
65
- $$slots: { default: !0 }
66
- });
67
- };
68
- o.if(d, (e) => {
69
- u.body && e(f);
70
- });
71
- var p = o.sibling(d, 2), m = (e) => {
72
- n(e, {
73
- children: (e, t) => {
74
- var n = o.comment(), r = o.first_child(n);
75
- o.snippet(r, () => u.children), o.append(e, n);
76
- },
77
- $$slots: { default: !0 }
78
- });
79
- };
80
- o.if(p, (e) => {
81
- u.children && e(m);
82
- });
83
- var h = o.sibling(p, 2), g = (e) => {
84
- i(e, {
85
- children: (e, t) => {
86
- var n = o.comment(), r = o.first_child(n);
87
- o.snippet(r, () => u.footer), o.append(e, n);
88
- },
89
- $$slots: { default: !0 }
90
- });
91
- };
92
- o.if(h, (e) => {
93
- u.footer && e(g);
94
- }), o.append(e, r);
95
- },
96
- $$slots: { default: !0 }
97
- }), o.append(e, d);
98
- },
99
- $$slots: { default: !0 }
100
- }), o.pop();
101
- }
102
- export { l as t };
@@ -1,141 +0,0 @@
1
- import { n as e } from "./iconWeight-BRXEDAh2.js";
2
- import { t } from "./WarningCircleIcon-jC3nXehu.js";
3
- import { _ as n, d as r, f as i, m as a } from "./instant-BkZCSGDm.js";
4
- import { D as o } from "./api-CRHFSJDI.js";
5
- import { t as s } from "./Badge-CmYqIClC.js";
6
- import { t as c } from "./defaultLabels-CybwJCNn.js";
7
- import { _ as l } from "./datetime-BlEsN_-8.js";
8
- import "svelte/internal/disclose-version";
9
- import * as u from "svelte/internal/client";
10
- // node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/SubtractIcon.svelte
11
- var d = u.from_svg("<path d=\"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H72a8,8,0,0,1,0-16H184a8,8,0,0,1,0,16Z\"></path>"), f = u.from_svg("<line x1=\"40\" y1=\"128\" x2=\"216\" y2=\"128\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line>"), p = u.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
12
- function m(t, n) {
13
- u.push(n, !0);
14
- let r = u.prop(n, "size", 3, "24"), i = u.prop(n, "color", 3, "currentColor"), a = u.prop(n, "class", 3, ""), o = e(), s = u.derived(() => n.weight ?? o?.weight ?? "regular");
15
- var c = p();
16
- let l;
17
- var m = u.child(c), h = (e) => {
18
- var t = d();
19
- u.append(e, t);
20
- }, g = (e) => {
21
- var t = f();
22
- u.append(e, t);
23
- };
24
- u.if(m, (e) => {
25
- u.get(s) === "fill" ? e(h) : e(g, -1);
26
- }), u.reset(c), u.template_effect(() => {
27
- u.set_class(c, 0, u.clsx(a())), u.set_attribute(c, "width", r()), u.set_attribute(c, "height", r()), l = u.set_style(c, "", l, { color: i() === "currentColor" ? void 0 : i() });
28
- }), u.append(t, c), u.pop();
29
- }
30
- // src/lib/utils/promo.ts
31
- var h = [
32
- "percentage",
33
- "%",
34
- "fixed",
35
- "$"
36
- ];
37
- function g(e) {
38
- return h.includes(e);
39
- }
40
- function _(e) {
41
- return e === "percentage" || e === "%";
42
- }
43
- function v(e) {
44
- if (e.appliesToAllTickets !== !1) return [];
45
- let t = e.applyToTicketIds;
46
- return Array.isArray(t) && t.length > 0 ? [...t] : [];
47
- }
48
- function y(e, t) {
49
- if (!e || e.length === 0) return !0;
50
- let n = Number(t);
51
- return Number.isFinite(n) ? e.some((e) => Number(e) === n) : !1;
52
- }
53
- function b(e, t, n) {
54
- if (!g(n) || !(t > 0) || !(e > 0)) return 0;
55
- let r = _(n) ? e * t / 100 : t;
56
- return Math.round(Math.max(0, Math.min(e, r)) * 100) / 100;
57
- }
58
- function x(e, t, o, s) {
59
- if (!g(s) || !(o > 0)) return 0;
60
- if (!_(s)) return b(t, o, s);
61
- let c = e.filter(({ quantity: e }) => e > 0).map(({ unitPrice: e, quantity: t }) => a(i(b(e, o, s)), t));
62
- return r(n(c));
63
- }
64
- // src/components/ScarcityBadge.svelte
65
- var S = 200, C = Object.create(null);
66
- function w(e) {
67
- (C[e] ??= o(S))(e, { politeness: "polite" });
68
- }
69
- var T = u.from_html("<span><!> </span>");
70
- function E(e, n) {
71
- u.push(n, !0);
72
- let r = u.prop(n, "context", 3, "browse"), i = u.prop(n, "variant", 3, "default"), a = u.prop(n, "isFree", 3, !1), o = u.prop(n, "labels", 3, c), d = u.derived(() => l(n.remaining, n.total)), f = u.derived(() => {
73
- let e = o().statusSoldOut || "Sold out", t = o().statusSellingFast || "Selling fast", i = o().scarcityOnlyNLeft || "Only {remaining} left";
74
- return u.get(d) === "sold-out" ? {
75
- type: "sold-out",
76
- text: e,
77
- showFlame: !1
78
- } : a() ? null : r() === "browse" ? u.get(d) === "urgent" || u.get(d) === "low" ? {
79
- type: "scarcity",
80
- text: t,
81
- showFlame: !0
82
- } : null : u.get(d) === "urgent" ? {
83
- type: "scarcity",
84
- text: i.replace("{remaining}", String(n.remaining)),
85
- showFlame: !0
86
- } : u.get(d) === "low" ? {
87
- type: "scarcity",
88
- text: t,
89
- showFlame: !0
90
- } : null;
91
- }), p = u.derived(() => u.get(f)?.type === "sold-out" ? "neutral" : "warning"), m = u.derived(() => u.get(f)?.type === "sold-out" ? o().statusSoldOut || "Sold out" : `${o().scarcityLowAvailability || "Low availability"}: ${u.get(f)?.text}`), h = !1;
92
- u.user_effect(() => {
93
- let e = u.get(f)?.text;
94
- h ? e && w(e) : h = !0;
95
- });
96
- var g = u.comment(), _ = u.first_child(g), v = (e) => {
97
- var n = u.comment(), r = u.first_child(n), a = (e) => {
98
- var n = T(), r = u.child(n), i = (e) => {
99
- t(e, { size: "16" });
100
- };
101
- u.if(r, (e) => {
102
- u.get(f).showFlame && e(i);
103
- });
104
- var a = u.sibling(r);
105
- u.reset(n), u.template_effect(() => {
106
- u.set_class(n, 1, `inline-flex items-center gap-1 type-caption ${u.get(f).type === "sold-out" ? "text-status-error-text" : "text-accent-warning"}`), u.set_attribute(n, "aria-label", u.get(m)), u.set_text(a, ` ${u.get(f).text ?? ""}`);
107
- }), u.append(e, n);
108
- }, o = (e) => {
109
- s(e, {
110
- get variant() {
111
- return u.get(p);
112
- },
113
- size: "sm",
114
- leftIcon: (e) => {
115
- var n = u.comment(), r = u.first_child(n), i = (e) => {
116
- t(e, { size: "16" });
117
- };
118
- u.if(r, (e) => {
119
- u.get(f).showFlame && e(i);
120
- }), u.append(e, n);
121
- },
122
- children: (e, t) => {
123
- u.next();
124
- var n = u.text();
125
- u.template_effect(() => u.set_text(n, u.get(f).text)), u.append(e, n);
126
- },
127
- $$slots: {
128
- leftIcon: !0,
129
- default: !0
130
- }
131
- });
132
- };
133
- u.if(r, (e) => {
134
- i() === "minimal" ? e(a) : e(o, -1);
135
- }), u.append(e, n);
136
- };
137
- u.if(_, (e) => {
138
- u.get(f) && e(v);
139
- }), u.append(e, g), u.pop();
140
- }
141
- export { x as a, v as i, _ as n, b as o, y as r, m as s, E as t };
@@ -1,34 +0,0 @@
1
- import { t as e } from "./Event-vlu8IAxh.js";
2
- import { t } from "./logger-DM8WW61-.js";
3
- import { s as n } from "./RecommendationsRail-DC5qX1ei.js";
4
- import { t as r } from "./__SKIP_NAVIGATION__-Znm_vYcG.js";
5
- import { t as i } from "./__SKIP_PATHS__-Bzzrca_a.js";
6
- import "svelte/internal/disclose-version";
7
- import * as a from "svelte/internal/client";
8
- // src/components/Views/SeriesPage.svelte
9
- function o(o, s) {
10
- a.push(s, !0), t("SeriesPage");
11
- let c = a.prop(s, "onNavigateToOccurrence", 3, void 0), l = a.prop(s, "locale", 3, void 0), u = a.derived(() => s.series ? n(s.series) : null);
12
- function d(e) {
13
- c() ? c()(e.id, e.slug) : r(i("/[id]/[slug]", {
14
- id: String(e.id),
15
- slug: String(e.slug)
16
- }));
17
- }
18
- var f = a.comment(), p = a.first_child(f), m = (t) => {
19
- e(t, {
20
- get event() {
21
- return a.get(u);
22
- },
23
- isSeriesMaster: !0,
24
- onShowtimeClick: d,
25
- get locale() {
26
- return l();
27
- }
28
- });
29
- };
30
- a.if(p, (e) => {
31
- a.get(u) && e(m);
32
- }), a.append(o, f), a.pop();
33
- }
34
- export { o as default };
@@ -1,31 +0,0 @@
1
- import { t as e } from "./labels-CjSrA6gx.js";
2
- import { u as t } from "./sizing-Chy28j6-.js";
3
- import "svelte/internal/disclose-version";
4
- import * as n from "svelte/internal/client";
5
- // node_modules/@getmicdrop/svelte-components/dist/primitives/Skeleton/Skeleton.svelte
6
- var r = n.from_html("<div></div>"), i = n.from_html("<div role=\"status\"><!> <span class=\"sr-only\"> </span></div>");
7
- function a(a, o) {
8
- n.push(o, !0);
9
- let s = {
10
- loadingContent: "Loading content",
11
- loading: "Loading..."
12
- }, c = n.prop(o, "size", 3, "md"), l = n.prop(o, "lines", 3, 3), u = n.prop(o, "animate", 3, !0), d = n.prop(o, "class", 3, ""), f = n.prop(o, "labels", 19, () => ({})), p = n.derived(() => e(s, f())), m = [
13
- "w-full",
14
- "max-w-sm",
15
- "w-full",
16
- "max-w-80",
17
- "max-w-72",
18
- "w-full",
19
- "max-w-72"
20
- ], h = n.derived(() => t[c()] || t.md), g = n.derived(() => u() ? "sc-skeleton-loading" : "bg-border");
21
- var _ = i(), v = n.child(_);
22
- n.each(v, 17, () => Array(l()), n.index, (e, t, i) => {
23
- var a = r();
24
- n.template_effect(() => n.set_class(a, 1, `${n.get(h) ?? ""} ${n.get(g) ?? ""} rounded-full ${m[i % m.length] ?? ""} ${i < l() - 1 ? "mb-2.5" : ""}`)), n.append(e, a);
25
- });
26
- var y = n.sibling(v, 2), b = n.only_child(y, !0);
27
- n.reset(_), n.template_effect(() => {
28
- n.set_class(_, 1, n.clsx(d())), n.set_attribute(_, "aria-label", n.get(p).loadingContent), n.set_text(b, n.get(p).loading);
29
- }), n.append(a, _), n.pop();
30
- }
31
- export { a as t };
@@ -1,19 +0,0 @@
1
- import { t as e } from "./labels-CjSrA6gx.js";
2
- import { a as t } from "./variants-B46fK2iV.js";
3
- import { l as n } from "./sizing-Chy28j6-.js";
4
- import "svelte/internal/disclose-version";
5
- import * as r from "svelte/internal/client";
6
- // node_modules/@getmicdrop/svelte-components/dist/primitives/Spinner/Spinner.svelte
7
- var i = r.from_html("<span class=\"sr-only\" role=\"status\" aria-live=\"polite\"> </span>"), a = r.from_html("<svg aria-hidden=\"true\" viewBox=\"0 0 100 101\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\" fill=\"currentColor\"></path><path d=\"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\" fill=\"currentFill\"></path></svg> <!>", 1);
8
- function o(o, s) {
9
- r.push(s, !0);
10
- let c = { loading: "Loading..." }, l = r.prop(s, "size", 3, "md"), u = r.prop(s, "color", 3, "blue"), d = r.prop(s, "class", 3, ""), f = r.prop(s, "labels", 19, () => ({})), p = r.derived(() => e(c, f())), m = r.derived(() => String(r.get(p).loading ?? "").trim()), h = r.derived(() => r.get(m) !== ""), g = r.derived(() => n[l()] || n.md), _ = r.derived(() => t[u()] || t.blue);
11
- var v = a(), y = r.first_child(v), b = r.sibling(y, 2), x = (e) => {
12
- var t = i(), n = r.only_child(t, !0);
13
- r.template_effect(() => r.set_text(n, r.get(m))), r.append(e, t);
14
- };
15
- r.if(b, (e) => {
16
- r.get(h) && e(x);
17
- }), r.template_effect(() => r.set_class(y, 0, `${r.get(g) ?? ""} tone-muted animate-spin ${r.get(_) ?? ""} ${d() ?? ""}`)), r.append(o, v), r.pop();
18
- }
19
- export { o as t };
@@ -1,72 +0,0 @@
1
- import { i as e, t } from "./typography-CKwYSv07.js";
2
- import { t as n } from "./RequiredIndicator-CRZ_coyR.js";
3
- import { t as r } from "./controlAria-Do9QK0WI.js";
4
- import "svelte/internal/disclose-version";
5
- import * as i from "svelte/internal/client";
6
- // node_modules/@getmicdrop/svelte-components/dist/primitives/Input/Textarea.svelte
7
- var a = i.from_html("<label> <!></label>"), o = i.from_html("<p> </p>"), s = i.from_html("<div class=\"flex flex-col gap-2 w-full\"><!> <textarea></textarea> <!></div>");
8
- function c(c, l) {
9
- let u = i.props_id();
10
- i.push(l, !0);
11
- let d = i.prop(l, "value", 15, ""), f = i.prop(l, "placeholder", 3, ""), p = i.prop(l, "rows", 3, 4), m = i.prop(l, "disabled", 3, !1), h = i.prop(l, "required", 3, !1), g = i.prop(l, "readonly", 3, !1), _ = i.prop(l, "id", 3, u), v = i.prop(l, "name", 3, ""), y = i.prop(l, "label", 3, ""), b = i.prop(l, "error", 3, ""), x = i.prop(l, "maxlength", 3, null), S = i.prop(l, "minlength", 3, null), C = i.prop(l, "class", 3, ""), w = i.derived(() => _() || u), T = i.derived(() => `${i.get(w)}-error`);
12
- function E(e) {
13
- let t = e.target;
14
- d(t.value), l.oninput?.({ value: t.value });
15
- }
16
- function D(e) {
17
- let t = e.target;
18
- l.onchange?.({ value: t.value });
19
- }
20
- function O(e) {
21
- l.onblur?.(e);
22
- }
23
- function k(e) {
24
- l.onfocus?.(e);
25
- }
26
- var A = s(), j = i.child(A), M = (r) => {
27
- var o = a(), s = i.child(o, !0), c = i.sibling(s);
28
- n(c, { get required() {
29
- return h();
30
- } }), i.reset(o), i.template_effect(() => {
31
- i.set_attribute(o, "for", i.get(w)), i.set_class(o, 1, `${e.label} ${t.tight} ${b() ? "text-status-error-text" : ""}`), i.set_text(s, y());
32
- }), i.append(r, o);
33
- };
34
- i.if(j, (e) => {
35
- y() && e(M);
36
- });
37
- var N = i.sibling(j, 2);
38
- i.remove_textarea_child(N), i.attribute_effect(N, (n) => ({
39
- id: i.get(w),
40
- name: v(),
41
- placeholder: f(),
42
- rows: p(),
43
- disabled: m(),
44
- readonly: g(),
45
- maxlength: x(),
46
- minlength: S(),
47
- class: `${e.sm ?? ""} w-full p-2.5 bg-bg-secondary ${t.normal ?? ""} border rounded-lg resize-y transition-colors focus:outline-hidden focus:ring-4 focus:ring-focus-ring placeholder-muted-foreground ${b() ? "border-status-error-border" : "border-stroke-primary hover:border-interactive-border focus:border-interactive-border"} ${m() ? "opacity-50 cursor-not-allowed" : ""} ${C() ?? ""}`,
48
- oninput: E,
49
- onchange: D,
50
- onblur: O,
51
- onfocus: k,
52
- onkeydown: l.onkeydown,
53
- onkeyup: l.onkeyup,
54
- onkeypress: l.onkeypress,
55
- ...n,
56
- "data-testid": l["data-testid"]
57
- }), [() => r({
58
- invalid: !!b(),
59
- required: h(),
60
- describedby: b() ? i.get(T) : void 0
61
- }, l.wiring)]);
62
- var P = i.sibling(N, 2), F = (t) => {
63
- var n = o(), r = i.only_child(n, !0);
64
- i.template_effect(() => {
65
- i.set_attribute(n, "id", i.get(T)), i.set_class(n, 1, i.clsx(e.error)), i.set_text(r, b());
66
- }), i.append(t, n);
67
- };
68
- i.if(P, (e) => {
69
- b() && e(F);
70
- }), i.reset(A), i.bind_value(N, d), i.append(c, A), i.pop();
71
- }
72
- export { c as t };
@@ -1,5 +0,0 @@
1
- // __SKIP_NAVIGATION__
2
- function e(e, t) {
3
- typeof window < "u" && window.location && (t?.replaceState ? window.history.replaceState({}, "", e) : window.location.href = e);
4
- }
5
- export { e as t };
@@ -1,5 +0,0 @@
1
- // __SKIP_PATHS__
2
- function e(e, t) {
3
- return String(e).replace(/\[+(?:\.\.\.)?([^\]=]+?)(?:=[^\]]+)?\]+/g, (e, n) => t && t[n] != null ? String(t[n]) : "");
4
- }
5
- export { e as t };
@@ -1,111 +0,0 @@
1
- import { c as e, l as t, n, t as r, y as i } from "./instant-BkZCSGDm.js";
2
- import { n as a } from "./AppError-t1LnBwj_.js";
3
- // node_modules/@getmicdrop/svelte-components/dist/datetime/local.js
4
- function o(e) {
5
- return e < 10 ? `0${e}` : String(e);
6
- }
7
- function s(e) {
8
- return `${e.getFullYear()}-${o(e.getMonth() + 1)}-${o(e.getDate())}`;
9
- }
10
- function c(e, t, n = "en-US") {
11
- return new Intl.DateTimeFormat(n, t).format(e);
12
- }
13
- // node_modules/@getmicdrop/svelte-components/dist/datetime/calendar.js
14
- function l(e, t, n) {
15
- return new Date(e, t, n);
16
- }
17
- function u(e) {
18
- return Date.UTC(e.getFullYear(), e.getMonth(), e.getDate());
19
- }
20
- function d(n, r) {
21
- if (typeof n != "number" || !Number.isInteger(n)) throw new e(`${r} must be an integer, got ${JSON.stringify(n)}`, t.INVALID_DATE, { value: n });
22
- }
23
- function f(e) {
24
- return r(e, "toLocalDay(date)"), l(e.getFullYear(), e.getMonth(), e.getDate());
25
- }
26
- function p(n, r, i) {
27
- if (d(n, "localDayFromParts(year)"), d(r, "localDayFromParts(monthIndex)"), d(i, "localDayFromParts(day)"), r < 0 || r > 11) throw new e(`localDayFromParts(monthIndex) must be 0-11 (0 = January), got ${r}`, t.INVALID_DATE, {
28
- year: n,
29
- monthIndex: r,
30
- day: i
31
- });
32
- let a = l(n, r, i);
33
- if (a.getFullYear() !== n || a.getMonth() !== r || a.getDate() !== i || Number.isNaN(a.getTime())) throw new e(`localDayFromParts: ${n}-${r + 1}-${i} is not a real calendar date`, t.INVALID_DATE, {
34
- year: n,
35
- monthIndex: r,
36
- day: i
37
- });
38
- return a;
39
- }
40
- function m(n) {
41
- if (typeof n != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(n)) throw new e(`localDayFromYMD expects a YYYY-MM-DD date, got ${JSON.stringify(n)}`, t.INVALID_DATE, { value: n });
42
- let [r, i, a] = n.split("-").map(Number);
43
- return p(r, i - 1, a);
44
- }
45
- function h() {
46
- return f(a());
47
- }
48
- function g(e) {
49
- return r(e, "localDayYMD(day)"), i(s(e));
50
- }
51
- function _(e) {
52
- return r(e, "localWeekday(day)"), e.getDay();
53
- }
54
- function v(e, t) {
55
- return p(e, t, 1), l(e, t + 1, 0).getDate();
56
- }
57
- function y(e, t) {
58
- return r(e, "addLocalDays(day)"), d(t, "addLocalDays(n)"), l(e.getFullYear(), e.getMonth(), e.getDate() + t);
59
- }
60
- function b(e, t) {
61
- r(e, "addLocalMonths(day)"), d(t, "addLocalMonths(n)");
62
- let n = l(e.getFullYear(), e.getMonth() + t, 1), i = n.getFullYear(), a = n.getMonth(), o = l(i, a + 1, 0).getDate();
63
- return l(i, a, Math.min(e.getDate(), o));
64
- }
65
- function x(e) {
66
- return r(e, "startOfLocalMonth(day)"), l(e.getFullYear(), e.getMonth(), 1);
67
- }
68
- function S(e, t) {
69
- return r(e, "wholeDaysBetween(a)"), r(t, "wholeDaysBetween(b)"), (u(t) - u(e)) / 864e5;
70
- }
71
- function C(e, t) {
72
- return r(e, "isSameLocalDay(a)"), r(t, "isSameLocalDay(b)"), u(e) === u(t);
73
- }
74
- function w(e, t) {
75
- return n(e, t) < 0;
76
- }
77
- function T(e, t) {
78
- return n(e, t) > 0;
79
- }
80
- function E(e) {
81
- return w(e, h());
82
- }
83
- function D(e, t, n = {}) {
84
- let { weekStartsOn: r = 0, fillAdjacent: i = !0 } = n, a = p(e, t, 1), o = v(e, t), s = h(), c = [], l = (e, t) => {
85
- c.push({
86
- day: e,
87
- inMonth: t,
88
- isToday: C(e, s)
89
- });
90
- };
91
- if (i) {
92
- let e = (_(a) - r + 7) % 7;
93
- for (let t = e; t > 0; t--) l(y(a, -t), !1);
94
- }
95
- for (let e = 0; e < o; e++) l(y(a, e), !0);
96
- if (i) {
97
- let e = (7 - c.length % 7) % 7, t = y(a, o - 1);
98
- for (let n = 1; n <= e; n++) l(y(t, n), !1);
99
- }
100
- return c;
101
- }
102
- function O(e, t = {}) {
103
- let { weekStartsOn: n = 0 } = t, r = y(e, -((_(e) - n + 7) % 7));
104
- return Array.from({ length: 7 }, (e, t) => y(r, t));
105
- }
106
- function k(e, t = {}) {
107
- r(e, "isLocalDayDisabled(day)");
108
- let { min: n, max: i, disablePast: a = !1, allowedWeekdays: o } = t;
109
- return !!(a && E(e) || n && w(e, n) || i && T(e, i) || o && !o.includes(_(e)));
110
- }
111
- export { S as _, v as a, k as c, m as d, g as f, h as g, f as h, O as i, C as l, x as m, b as n, T as o, _ as p, D as r, w as s, y as t, p as u, c as v };
@@ -1,116 +0,0 @@
1
- import { n as e, s as t } from "./instant-BkZCSGDm.js";
2
- import { n } from "./AppError-t1LnBwj_.js";
3
- import { l as r, n as i, r as a, s as o, t as s } from "./format-CypC4vWs.js";
4
- import { v as c } from "./calendar-Cdu8fCIt.js";
5
- import { _ as l, g as u } from "./navigation-DpqP-ahJ.js";
6
- // src/lib/api/cta.ts
7
- function d(i, a, o = {}) {
8
- let { cancelled: s = !1, isRegistration: c = !1, waitlistEnabled: d = !1 } = o, p = n();
9
- if (s) return {
10
- text: "Canceled",
11
- disabled: !0,
12
- reason: "cancelled"
13
- };
14
- if ((i?.status || "").trim().toLowerCase() === "postponed") return {
15
- text: "Postponed",
16
- disabled: !0,
17
- reason: "postponed"
18
- };
19
- let m = t(i.endDateTime || i.startDateTime);
20
- if (m && e(m, p) < 0) return {
21
- text: "Sales ended",
22
- disabled: !0,
23
- reason: "event_past"
24
- };
25
- let h = (i?.salesStatus || "").trim().toLowerCase(), g = h === "not_started";
26
- if (h === "paused") return {
27
- text: "Sales paused",
28
- disabled: !0,
29
- reason: "sales_paused"
30
- };
31
- if (h === "ended") return {
32
- text: "Sales ended",
33
- disabled: !0,
34
- reason: "sales_ended"
35
- };
36
- let _ = i?.hasPurchasableHiddenTickets === !0 || Array.isArray(a) && a.some(u), v = () => _ ? {
37
- text: c ? "Reserve a spot" : "Get tickets",
38
- disabled: !1,
39
- reason: "hidden_only"
40
- } : d ? {
41
- text: "Join Waitlist",
42
- disabled: !1,
43
- reason: "sold_out_waitlist"
44
- } : {
45
- text: "Sold out",
46
- disabled: !0,
47
- reason: "sold_out"
48
- };
49
- if (h === "sold_out") return v();
50
- let y = (a || []).filter((e) => e.salesChannel !== 2 && !e.isHidden && !(typeof e.visibility == "number" && e.visibility >= l.HIDDEN));
51
- if (y.length === 0) return _ ? {
52
- text: c ? "Reserve a spot" : "Get tickets",
53
- disabled: !1,
54
- reason: "hidden_only"
55
- } : {
56
- text: "No tickets available",
57
- disabled: !0,
58
- reason: "no_tickets"
59
- };
60
- let b = !1, x = !0, S = !0, C = null;
61
- for (let n of y) {
62
- let r = t(n.effectiveSalesBegin || n.salesBegin || n.salesStart || n.saleBegin || n.onSaleStart), i = t(n.effectiveSalesEnd || n.salesEnd || n.saleEnd || n.onSaleEnd), a = n.remainingCapacity ?? n.quantityRemaining ?? n.quantity, o = n.soldOut || a != null && a <= 0, s = r ? e(r, p) > 0 : !1, c = i ? e(i, p) < 0 : !1;
63
- o || s || c || (b = !0), o || (x = !1), s || (S = !1), s && r && !o && !c && (!C || e(r, C) < 0) && (C = r);
64
- }
65
- return g && b ? _ ? {
66
- text: c ? "Reserve a spot" : "Get tickets",
67
- disabled: !1,
68
- reason: "hidden_only"
69
- } : {
70
- text: "On sale soon",
71
- disabled: !0,
72
- reason: "coming_soon"
73
- } : b ? {
74
- text: c ? "Reserve a spot" : "Get tickets",
75
- disabled: !1,
76
- reason: "available"
77
- } : S && C ? _ ? {
78
- text: c ? "Reserve a spot" : "Get tickets",
79
- disabled: !1,
80
- reason: "hidden_only"
81
- } : {
82
- text: `On sale ${f(C, e(C, p), [i.timezone, i.timeZone].find((e) => !!e && r(e)))}`,
83
- disabled: !0,
84
- reason: "coming_soon"
85
- } : x ? v() : _ ? {
86
- text: c ? "Reserve a spot" : "Get tickets",
87
- disabled: !1,
88
- reason: "hidden_only"
89
- } : {
90
- text: "Sales ended",
91
- disabled: !0,
92
- reason: "sales_ended"
93
- };
94
- }
95
- function f(e, t, n) {
96
- let r = t / 36e5, l = t / 864e5;
97
- if (n) {
98
- let t = e.toISOString(), c = o(n, e), u = `${a(t, n)} ${c}`;
99
- return r < 24 ? u : l <= 7 ? `${s(t, n, !0)} ${u}` : `${i(t, n, { includeYear: !1 })} ${u}`;
100
- }
101
- let u = (e) => c(e, {
102
- hour: "numeric",
103
- minute: "2-digit",
104
- hour12: !0
105
- }, "en-US");
106
- return r < 24 ? u(e) : l <= 7 ? c(e, {
107
- weekday: "short",
108
- hour: "numeric",
109
- minute: "2-digit",
110
- hour12: !0
111
- }, "en-US") : `${c(e, {
112
- month: "short",
113
- day: "numeric"
114
- }, "en-US")} ${u(e)}`;
115
- }
116
- export { d as t };