@getmicdrop/venue-calendar 4.3.122 → 4.3.123

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 (175) hide show
  1. package/dist/{AddOnCard-BkEFPzAX.js → AddOnCard-nTlOLRHQ.js} +21 -21
  2. package/dist/{ArrowLeftIcon-t-CY0sbi.js → ArrowLeftIcon-D5-uNI0U.js} +2 -2
  3. package/dist/{BlockPlaceholder-BmEZ68_q.js → BlockPlaceholder-CuoGXCMh.js} +4 -4
  4. package/dist/{Button-VUB2WJ88.js → Button-BLmw_oMF.js} +11 -11
  5. package/dist/{Button-B58iYo_t.js → Button-DoHESV6k.js} +5 -5
  6. package/dist/{Calendar-hxcQBkTF.js → Calendar-C9hahXIM.js} +142 -161
  7. package/dist/{CalendarFoundryView-CSAKDe-F.js → CalendarFoundryView-Cv-ICYi9.js} +1475 -1473
  8. package/dist/{CalendarIcon-B5JWs0gm.js → CalendarIcon-5pe0K5ma.js} +2 -2
  9. package/dist/{CartView-CQZw_kwm.js → CartView-CXp67TQT.js} +287 -284
  10. package/dist/{ChartBlock-SYOAO1s_.js → ChartBlock-VVDwIPue.js} +36 -36
  11. package/dist/{CheckIcon-BSwoGox7.js → CheckIcon-FxQwEejD.js} +2 -2
  12. package/dist/{Checkbox-BtJwg_CF.js → Checkbox-Cn1nEBOm.js} +1 -1
  13. package/dist/{Checkout-Bsx9d4qD.js → Checkout-BOftqs3v.js} +383 -381
  14. package/dist/Checkout-DQrcjCeh.js +1934 -0
  15. package/dist/{CheckoutTimer-Bpt5gPyA.js → CheckoutTimer-DPuy8TpI.js} +7 -7
  16. package/dist/{ChevronDownIcon-CVZ0usBx.js → ChevronDownIcon-ADsji-Ia.js} +2 -2
  17. package/dist/{ChevronDownOutline-D7YDiKBF.js → ChevronDownOutline-CAboOQwi.js} +1 -1
  18. package/dist/ChevronRightOutline-BWIIgG7O.js +23 -0
  19. package/dist/{CloseIcon-DUnvWXUY.js → CloseIcon-BgvYIos-.js} +3 -3
  20. package/dist/{CloseOutline-qpVa62mu.js → CloseOutline-BJtQbSqD.js} +1 -1
  21. package/dist/{CollectionView-DXkBRGeQ.js → CollectionView-Ds3iGZYx.js} +8 -8
  22. package/dist/{CropImage-C8W_Xb_V.js → CropImage-Cvl-yxAB.js} +15 -15
  23. package/dist/{EmptyState-CMFePII9.js → EmptyState-BXE5HfzR.js} +2 -2
  24. package/dist/{Event-CmD84Ni8.js → Event-C8Y3zpPM.js} +620 -534
  25. package/dist/EventCard-DGnCiMw9.js +175 -0
  26. package/dist/{EventPage-4ToDFEaL.js → EventPage-DjP9llB-.js} +294 -270
  27. package/dist/{ExclamationCircleOutline-D3XbhOwM.js → ExclamationCircleOutline-CmH69h0L.js} +1 -1
  28. package/dist/{action-test-id-7RXdHucW.js → FallbackBlock-C_-N8OKB.js} +72 -72
  29. package/dist/{Grid-kuP6V0GW.js → Grid-BKWXQEkM.js} +2 -2
  30. package/dist/{Heading-vOVPxhJF.js → Heading-CrJEsrFE.js} +4 -4
  31. package/dist/{Input-BXZmvQ0p.js → Input-komF5aTV.js} +10 -10
  32. package/dist/{LiveRegion-D9Me4kBs.js → LiveRegion-B_OI5McX.js} +2 -2
  33. package/dist/{LocationIcon-E-7CQh4E.js → LocationIcon-D7SbJ6q_.js} +3 -3
  34. package/dist/{Modal-kG0LKgMZ.js → Modal-_a_bJbko.js} +3 -3
  35. package/dist/{ModalFooter-CM5RDuvB.js → ModalFooter-CJPDF8Zl.js} +15 -15
  36. package/dist/{ModalHeader-DBVXezSL.js → ModalHeader-B3K9xN0J.js} +3 -3
  37. package/dist/{PasswordInput-DzXNIwRc.js → PasswordInput-C-SJ5Oix.js} +7 -7
  38. package/dist/{PhoneInput-DnmN_L03.js → PhoneInput-CYg7S7S7.js} +13 -13
  39. package/dist/{RecommendationsRail-CrBSsbBD.js → RecommendationsRail-QP0CJ7-3.js} +71 -68
  40. package/dist/{ScarcityBadge-BL4shc2w.js → ScarcityBadge-Cawy-u79.js} +7 -7
  41. package/dist/{SeriesPage-Dt-T6mco.js → SeriesPage-BXLOd-gT.js} +3 -3
  42. package/dist/{Spinner-B2rdbspc.js → Spinner-DMSIvUd3.js} +3 -3
  43. package/dist/{Success-BTm0jRAO.js → Success-DCJLQx8J.js} +178 -175
  44. package/dist/{TagIcon-BY8tK_qA.js → TagIcon-CwCUhnam.js} +2 -2
  45. package/dist/{Text-CqjLjIF8.js → Text-uKiMcqy6.js} +1 -1
  46. package/dist/{Textarea-Cymhixzd.js → Textarea-DHm4GHH9.js} +3 -3
  47. package/dist/{ViewTicketsEmbed-BjqniKb9.js → ViewTicketsEmbed-Cblb2S6M.js} +24 -23
  48. package/dist/{WarningCircleIcon-C5Lc7qkF.js → WarningCircleIcon-ClRHaffl.js} +4 -4
  49. package/dist/{WarningTriIcon-BM8qc9xx.js → WarningTriIcon-zhqOKjq8.js} +2 -2
  50. package/dist/adapter-DwqQNwIc.js +164 -0
  51. package/dist/api--R8K0DjS.js +489 -0
  52. package/dist/{browser-DxdP6IWt.js → browser-o9TsPy0d.js} +1 -1
  53. package/dist/checkoutState-BtNPT28I.js +198 -0
  54. package/dist/client-CS0e2JHE.js +262 -0
  55. package/dist/{constants-C6MZgb2S.js → constants-lKAMwRvZ.js} +5 -1
  56. package/dist/{controlAria-CGb-KeRn.js → controlAria-DSrMfxwY.js} +2 -2
  57. package/dist/{copyToClipboard-F-akSgaF.js → copyToClipboard-198pSFq9.js} +3 -3
  58. package/dist/{createErrorGate.svelte-CEGaIQeI.js → createErrorGate.svelte-D96YnnB4.js} +5 -5
  59. package/dist/cta-bYAHgtET.js +116 -0
  60. package/dist/{datetime-BnKG6Hjm.js → datetime-B0mHwpmb.js} +53 -53
  61. package/dist/{de-BHcAXwnM.js → de-C3szl-Vf.js} +10 -4
  62. package/dist/{de-BPmqZ6ao.js → de-CX7o2WAr.js} +5 -1
  63. package/dist/{defaultLabels-BbNEEsF7.js → defaultLabels-C8IfDtR9.js} +210 -240
  64. package/dist/{defaults-CcPpWiyw.js → defaults-vPJmFph1.js} +7 -7
  65. package/dist/{dist-bwbfGPKR.js → dist-xFB1K0Ua.js} +2 -2
  66. package/dist/{es-BV3Sgeg-.js → es-DS1-fjU8.js} +5 -1
  67. package/dist/{es-DZ3yceh-.js → es-QnJXFKEx.js} +10 -4
  68. package/dist/{event-DfqUhl5j.js → event-Cn1I6eqc.js} +2 -2
  69. package/dist/{event-transform-DJYPMj8I.js → event-transform-DqzYVPvy.js} +18 -18
  70. package/dist/{eventStatusStream-DXyc5Eng.js → eventStatusStream-D27L0zB8.js} +2 -2
  71. package/dist/{filepond-plugin-file-validate-size-DNnItZ84.js → filepond-plugin-file-validate-size-DSfmFeGz.js} +1 -1
  72. package/dist/{filepond-plugin-file-validate-type-CUMTkI8X.js → filepond-plugin-file-validate-type-C44EKcE7.js} +1 -1
  73. package/dist/{filepond-plugin-image-exif-orientation-GEwHZTBU.js → filepond-plugin-image-exif-orientation-DNdFnriO.js} +1 -1
  74. package/dist/{filepond-plugin-image-preview-DKfgAnVa.js → filepond-plugin-image-preview-BVewVSQZ.js} +1 -1
  75. package/dist/{floatingPosition-XIv5DYuP.js → floatingPosition-TQ0h6TbT.js} +6 -6
  76. package/dist/{fr-Dyi163Vk.js → fr-BVgQDC6c.js} +10 -4
  77. package/dist/{fr-BJ0VQGEj.js → fr-CN3PiNzU.js} +5 -1
  78. package/dist/{href-CfWGAmkP.js → href-Cl_PNVlB.js} +24 -24
  79. package/dist/i18n-BsgEaeHp.js +497 -0
  80. package/dist/i18n-SDe3ZEhB.js +28 -0
  81. package/dist/{id-CVXaHHqU.js → id-CPG4tPVY.js} +5 -1
  82. package/dist/{id-DvFRZVAm.js → id-DCcXxLEY.js} +10 -4
  83. package/dist/{imageOptimizer-B3fj8_30.js → imageOptimizer-C8racBby.js} +11 -11
  84. package/dist/{imageUrl-xyMedKrE.js → imageUrl-ClaMf08i.js} +1 -1
  85. package/dist/{it-C0lzsHje.js → it-CjwnCYFF.js} +5 -1
  86. package/dist/{it-Bh05tcLv.js → it-CufAwhe3.js} +10 -4
  87. package/dist/{ja-Dl2r6tQ6.js → ja-C2uiNCJX.js} +5 -1
  88. package/dist/{ja-CU4PQS4j.js → ja-CMa_nsLY.js} +10 -4
  89. package/dist/{keyboard-DhCcdIyh.js → keyboard-enDXh6xy.js} +4 -4
  90. package/dist/{ko-DINqFSE1.js → ko-Bh97byDf.js} +5 -1
  91. package/dist/{ko-DDk6EdWm.js → ko-BwJHUjqS.js} +10 -4
  92. package/dist/{lazyOnce-CCfEO1xG.js → lazyOnce-BL5svIPP.js} +1 -1
  93. package/dist/locales/{4.3.122 → 4.3.123}/flow/de.js +1 -1
  94. package/dist/locales/{4.3.122 → 4.3.123}/flow/es.js +1 -1
  95. package/dist/locales/{4.3.122 → 4.3.123}/flow/fr.js +1 -1
  96. package/dist/locales/{4.3.122 → 4.3.123}/flow/id.js +1 -1
  97. package/dist/locales/{4.3.122 → 4.3.123}/flow/it.js +1 -1
  98. package/dist/locales/{4.3.122 → 4.3.123}/flow/ja.js +1 -1
  99. package/dist/locales/{4.3.122 → 4.3.123}/flow/ko.js +1 -1
  100. package/dist/locales/{4.3.122 → 4.3.123}/flow/nl.js +1 -1
  101. package/dist/locales/{4.3.122 → 4.3.123}/flow/pl.js +1 -1
  102. package/dist/locales/{4.3.122 → 4.3.123}/flow/pt-br.js +1 -1
  103. package/dist/locales/{4.3.122 → 4.3.123}/flow/tr.js +1 -1
  104. package/dist/locales/{4.3.122 → 4.3.123}/flow/zh.js +1 -1
  105. package/dist/locales/4.3.123/main/de.js +1 -0
  106. package/dist/locales/4.3.123/main/es.js +1 -0
  107. package/dist/locales/4.3.123/main/fr.js +1 -0
  108. package/dist/locales/4.3.123/main/id.js +1 -0
  109. package/dist/locales/4.3.123/main/it.js +1 -0
  110. package/dist/locales/4.3.123/main/ja.js +1 -0
  111. package/dist/locales/4.3.123/main/ko.js +1 -0
  112. package/dist/locales/4.3.123/main/nl.js +1 -0
  113. package/dist/locales/4.3.123/main/pl.js +1 -0
  114. package/dist/locales/4.3.123/main/pt-br.js +1 -0
  115. package/dist/locales/4.3.123/main/tr.js +1 -0
  116. package/dist/locales/4.3.123/main/zh.js +1 -0
  117. package/dist/look-island.svelte-Dr-Vl_J1.js +1279 -0
  118. package/dist/looks/4.3.123/looks.js +226 -0
  119. package/dist/looks/4.3.123/micdrop-wordmark-BYMG6vLR.svg +1 -0
  120. package/dist/looks/4.3.123/microphone-Ccv4r-kd.webp +0 -0
  121. package/dist/looks/4.3.123/superuser-CZF6a5gO.webp +0 -0
  122. package/dist/looks/4.3.123/treasury-DUE7lZzT.webp +0 -0
  123. package/dist/looks/4.3.123/user-image-yuS4errP.svg +9 -0
  124. package/dist/{modalManager.svelte-Cz_6x1Qd.js → modalManager.svelte-BUU99uSO.js} +1 -1
  125. package/dist/navigation-DlpJzq1c.js +176 -0
  126. package/dist/{nl-DOSKYHSx.js → nl-BQALrtyB.js} +10 -4
  127. package/dist/{nl-D92n5tHa.js → nl-ve_OaXOQ.js} +5 -1
  128. package/dist/normalizers-B8Ruvrlh.js +44 -0
  129. package/dist/{phoneUtils-CS66SHie.js → phoneUtils-CQvpvMDO.js} +50 -50
  130. package/dist/{pixels-CFwOgA2N.js → pixels-BZQYpQU0.js} +3 -3
  131. package/dist/{pl-BlZHcnlS.js → pl-BHBBOz2I.js} +5 -1
  132. package/dist/{pl-CkLEymA2.js → pl-DaPcPjBE.js} +10 -4
  133. package/dist/{portal-D-oaEWsY.js → portal-CLBp645_.js} +2 -2
  134. package/dist/{portalContainment-CeAVqIb-.js → portalContainment-Dz0y6lW6.js} +2 -2
  135. package/dist/{pt-br-BHuCQSM-.js → pt-br-BxdP86Vr.js} +10 -4
  136. package/dist/{pt-br-BrxthY0b.js → pt-br-D30dkLzU.js} +5 -1
  137. package/dist/seo/seo.mjs +9 -9
  138. package/dist/{serverTotals-B8SJCzxE.js → serverTotals-F3SRKn1I.js} +6 -6
  139. package/dist/{showcase-state-options-KO_TYk3I.js → showcase-state-options-DRCOUibv.js} +3 -3
  140. package/dist/{sizing-B7ixYndz.js → sizing-DFjg7-wy.js} +3 -3
  141. package/dist/{sortable.esm--ZtTTTPp.js → sortable.esm-RsK3eRs6.js} +1 -1
  142. package/dist/{src-DZgagYE3.js → src-DJtQCBFq.js} +1 -1
  143. package/dist/to-event-card-props-CBtlDgMr.js +205 -0
  144. package/dist/{tr-BnAdi4HO.js → tr-CFVBCuqV.js} +5 -1
  145. package/dist/{tr-Bvc34ODh.js → tr-CSfagpI3.js} +10 -4
  146. package/dist/types/index.d.ts +21 -4
  147. package/dist/utils-BXiwc_cU.js +219 -0
  148. package/dist/venue-calendar.css +1 -1
  149. package/dist/venue-calendar.es.js +1591 -1895
  150. package/dist/venue-calendar.iife.js +35 -35
  151. package/dist/venue-calendar.umd.js +175 -54
  152. package/dist/widget-key-context-litAkRgC.js +744 -0
  153. package/dist/{zh-K0hOzZ3G.js → zh-DWMcKVLH.js} +10 -4
  154. package/dist/{zh-Tg1OTvWs.js → zh-DeEOoOFR.js} +5 -1
  155. package/package.json +3 -3
  156. package/src/lib/theme.js +222 -222
  157. package/dist/Checkout-CN1o3v9L.js +0 -1933
  158. package/dist/api-0hNBT78w.js +0 -654
  159. package/dist/i18n-CIpUYDU6.js +0 -28
  160. package/dist/i18n-DyjdmQSR.js +0 -608
  161. package/dist/locales/4.3.122/main/de.js +0 -1
  162. package/dist/locales/4.3.122/main/es.js +0 -1
  163. package/dist/locales/4.3.122/main/fr.js +0 -1
  164. package/dist/locales/4.3.122/main/id.js +0 -1
  165. package/dist/locales/4.3.122/main/it.js +0 -1
  166. package/dist/locales/4.3.122/main/ja.js +0 -1
  167. package/dist/locales/4.3.122/main/ko.js +0 -1
  168. package/dist/locales/4.3.122/main/nl.js +0 -1
  169. package/dist/locales/4.3.122/main/pl.js +0 -1
  170. package/dist/locales/4.3.122/main/pt-br.js +0 -1
  171. package/dist/locales/4.3.122/main/tr.js +0 -1
  172. package/dist/locales/4.3.122/main/zh.js +0 -1
  173. package/dist/to-event-card-props-DYIfPN8e.js +0 -379
  174. package/dist/utils-BzgFQSTg.js +0 -412
  175. package/dist/widget-key-context-CmI7Qdtf.js +0 -991
@@ -0,0 +1,262 @@
1
+ import { _ as e, g as t } from "./sizing-DFjg7-wy.js";
2
+ //#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/utils/storage/storage.js
3
+ function n(e) {
4
+ if (typeof window > "u") return null;
5
+ try {
6
+ return e === "local" ? window.localStorage : window.sessionStorage;
7
+ } catch {
8
+ return null;
9
+ }
10
+ }
11
+ function r(e, t) {
12
+ if (e == null || e === "") return t;
13
+ try {
14
+ return JSON.parse(e);
15
+ } catch {
16
+ return t;
17
+ }
18
+ }
19
+ function i(e, t, n) {
20
+ if (!e) return n;
21
+ let i;
22
+ try {
23
+ i = e.getItem(t);
24
+ } catch {
25
+ return n;
26
+ }
27
+ return r(i, n);
28
+ }
29
+ function a(t, n, r) {
30
+ if (!t) return !1;
31
+ try {
32
+ return t.setItem(n, JSON.stringify(r)), !0;
33
+ } catch (t) {
34
+ return e.warn(`storage: failed to write "${n}"`, t), !1;
35
+ }
36
+ }
37
+ function o(e, t) {
38
+ if (e) try {
39
+ e.removeItem(t);
40
+ } catch {}
41
+ }
42
+ function s(e, t, r) {
43
+ return i(n(e), t, r);
44
+ }
45
+ function c(e, t, r) {
46
+ return a(n(e), t, r);
47
+ }
48
+ function l(e, t) {
49
+ o(n(e), t);
50
+ }
51
+ function u(e, t = null) {
52
+ return s("local", e, t);
53
+ }
54
+ function d(e, t) {
55
+ return c("local", e, t);
56
+ }
57
+ function f(e) {
58
+ l("local", e);
59
+ }
60
+ function p(e, t = null) {
61
+ return s("session", e, t);
62
+ }
63
+ function m(e, t) {
64
+ return c("session", e, t);
65
+ }
66
+ function h(e) {
67
+ l("session", e);
68
+ }
69
+ //#endregion
70
+ //#region src/lib/config.js
71
+ var g = t("VC:config", { enabled: !0 }), _ = null;
72
+ function v(e) {
73
+ let t = e || null;
74
+ _ && t && t !== _ && g.warn("[VC] setWidgetKey called again with a DIFFERENT key. The widget key is module-global, so every calendar on this page will now use the last one set — any element configured with the previous key will get 403s on its public reads and render empty. Give each element its own widget-key attribute (threaded per-instance) rather than calling setWidgetKey() more than once."), _ = t;
75
+ }
76
+ function y() {
77
+ if (_) return _;
78
+ }
79
+ var b = null;
80
+ function x(e) {
81
+ b = typeof e == "string" && e.trim() ? e.trim() : null;
82
+ }
83
+ function S() {
84
+ return (b || B().baseUrl || (typeof window > "u" ? "" : window.location.origin) || "").replace(/\/+$/, "");
85
+ }
86
+ var C = null;
87
+ function w(e) {
88
+ let t = typeof e == "string" ? e.trim() : "";
89
+ C = /^https:\/\/[^/?#\s]+$/i.test(t.replace(/\/+$/, "")) ? t.replace(/\/+$/, "") : null;
90
+ }
91
+ function T() {
92
+ return b ? S() : C || S();
93
+ }
94
+ function E(e) {}
95
+ var D = {
96
+ postMessageOnSuccess: !1,
97
+ postMessageTargetOrigin: null
98
+ };
99
+ function O(e = {}) {
100
+ D = {
101
+ ...D,
102
+ ...e
103
+ };
104
+ }
105
+ function k() {
106
+ return { ...D };
107
+ }
108
+ //#endregion
109
+ //#region src/lib/api/client.ts
110
+ var A = t("VC"), j = /* @__PURE__ */ new Set();
111
+ function M(e) {
112
+ return j.add(e), () => {
113
+ j.delete(e);
114
+ };
115
+ }
116
+ function N(e) {
117
+ if (e) for (let t of j) try {
118
+ t(e);
119
+ } catch {}
120
+ }
121
+ var P = "ABORTED";
122
+ function F(e, t) {
123
+ let n = t || y();
124
+ return n ? {
125
+ ...e,
126
+ "X-Widget-Key": n
127
+ } : e;
128
+ }
129
+ function I(e, t) {
130
+ let n = `HTTP ${t}`;
131
+ if (!e || typeof e != "object") return { message: n };
132
+ let r = e, i = r.error && typeof r.error == "object" ? r.error : null, a = typeof r.code == "string" ? r.code : typeof i?.code == "string" ? i.code : void 0;
133
+ return {
134
+ message: typeof r.error == "string" ? r.error : typeof i?.message == "string" ? i.message : typeof r.message == "string" ? r.message : n,
135
+ code: a
136
+ };
137
+ }
138
+ var L = class extends Error {
139
+ code;
140
+ statusCode;
141
+ constructor(e, t, n) {
142
+ super(e), this.name = "ApiRequestError", this.code = t, this.statusCode = n;
143
+ }
144
+ }, R = {
145
+ baseUrl: "https://get-micdrop.com",
146
+ timeout: 3e4,
147
+ retries: 2,
148
+ retryDelay: 500,
149
+ onError: (e) => A.error("API Error:", e)
150
+ };
151
+ function z(e) {
152
+ R = {
153
+ ...R,
154
+ ...e
155
+ };
156
+ }
157
+ function B() {
158
+ return { ...R };
159
+ }
160
+ function V() {
161
+ return `${R.baseUrl}/api/v2/public`;
162
+ }
163
+ function H() {
164
+ return `${R.baseUrl}/api/orders/v2/public`;
165
+ }
166
+ var U = (e) => new Promise((t) => setTimeout(t, e));
167
+ async function W(e, t, n) {
168
+ let r = (t.method || "GET").toUpperCase(), i = r === "GET" || r === "HEAD" ? n.retries + 1 : 1, a;
169
+ for (let r = 1; r <= i; r++) {
170
+ let o = new AbortController(), s = setTimeout(() => o.abort(), n.timeout), c = t.signal, l;
171
+ c && (c.aborted ? o.abort() : (l = () => o.abort(), c.addEventListener("abort", l, { once: !0 })));
172
+ try {
173
+ let n = await fetch(e, {
174
+ ...t,
175
+ signal: o.signal
176
+ });
177
+ if (n.status >= 500 && r < i) a = /* @__PURE__ */ Error(`HTTP ${n.status}`);
178
+ else return n;
179
+ } catch (e) {
180
+ if (a = e, c?.aborted) throw e;
181
+ } finally {
182
+ clearTimeout(s), c && l && c.removeEventListener("abort", l);
183
+ }
184
+ r < i && await U(n.retryDelay * 2 ** (r - 1));
185
+ }
186
+ throw a;
187
+ }
188
+ async function G(e, t) {
189
+ return J("GET", e, void 0, t);
190
+ }
191
+ async function K(e, t, n) {
192
+ return J("POST", e, t, n);
193
+ }
194
+ async function q(e, t) {
195
+ return J("DELETE", e, void 0, t);
196
+ }
197
+ async function J(e, t, n, r) {
198
+ let i = t.startsWith("http") || t.startsWith("/api/") ? t : `${V()}${t}`, { widgetKey: a, suppressOnError: o, headers: s, ...c } = r ?? {}, l = (e) => {
199
+ o || R.onError(e);
200
+ };
201
+ try {
202
+ let t = await W(i, {
203
+ method: e,
204
+ headers: F({
205
+ "Content-Type": "application/json",
206
+ ...s
207
+ }, a),
208
+ body: n === void 0 ? void 0 : JSON.stringify(n),
209
+ ...c
210
+ }, R);
211
+ if (!t.ok) {
212
+ let { message: e, code: n } = I(await t.json().catch(() => ({})), t.status);
213
+ return l(new L(e, n, t.status)), N(n), {
214
+ success: !1,
215
+ error: e,
216
+ errorCode: n,
217
+ statusCode: t.status
218
+ };
219
+ }
220
+ return {
221
+ success: !0,
222
+ data: await t.json(),
223
+ statusCode: t.status
224
+ };
225
+ } catch (e) {
226
+ if (r?.signal?.aborted) return {
227
+ success: !1,
228
+ error: "Request aborted",
229
+ errorCode: P,
230
+ aborted: !0
231
+ };
232
+ let t = e instanceof Error ? e.name === "AbortError" ? "Request timed out" : e.message : "Unknown error";
233
+ return l(e instanceof Error ? e : Error(t)), {
234
+ success: !1,
235
+ error: t
236
+ };
237
+ }
238
+ }
239
+ async function Y(e, t) {
240
+ return K(`${V()}/tax-preview`, e, {
241
+ signal: t?.signal,
242
+ suppressOnError: t?.suppressOnError ?? !0,
243
+ widgetKey: t?.widgetKey
244
+ });
245
+ }
246
+ async function X(e, t) {
247
+ try {
248
+ let n = e.startsWith(R.baseUrl), { widgetKey: r, ...i } = t ?? {}, a = await W(e, {
249
+ ...i,
250
+ ...n ? { headers: F(i.headers, r) } : {}
251
+ }, R);
252
+ if (!a.ok) {
253
+ let e = await a.json().catch(() => ({}));
254
+ return A.error(`API request failed: ${a.status}`, e), null;
255
+ }
256
+ return a.json();
257
+ } catch (e) {
258
+ return A.error("API request error:", e), null;
259
+ }
260
+ }
261
+ //#endregion
262
+ export { f as C, m as E, p as S, d as T, x as _, B as a, v as b, M as c, F as d, k as f, O as g, y as h, z as i, X as l, T as m, G as n, H as o, S as p, K as r, V as s, q as t, Y as u, w as v, h as w, u as x, E as y };
@@ -211,9 +211,13 @@ var e = {
211
211
  queueWaitLessThanMinute: "Less than a minute",
212
212
  queueWaitMinute: "{n} minute",
213
213
  queueWaitMinutes: "{n} minutes",
214
- queueKeepPageOpen: "Keep this page open — your spot is saved",
214
+ queueKeepPageOpen: "Keep this page open — closing it gives up your place",
215
+ queueReleaseSpot: "Release my spot",
215
216
  queueAdmittedTitle: "You're in",
216
217
  queueAdmittedBody: "It's your turn — you can buy your tickets now",
218
+ queuePassTimeLeft: "You have {time} to buy your tickets",
219
+ queuePassEndingSoon: "Less than a minute left — buy your tickets now",
220
+ queuePassExpired: "Your turn has run out — buying now puts you back in line",
217
221
  recommendationsHeading: "More at this venue",
218
222
  recommendationFromTonightsLineup: "From tonight's lineup",
219
223
  recommendationSimilarShow: "Similar show",
@@ -1,6 +1,6 @@
1
1
  import "svelte/internal/disclose-version";
2
2
  import * as e from "svelte/internal/client";
3
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/RequiredIndicator/RequiredIndicator.svelte
3
+ //#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/primitives/RequiredIndicator/RequiredIndicator.svelte
4
4
  var t = e.from_html("<span aria-hidden=\"true\">*</span>");
5
5
  function n(n, r) {
6
6
  e.push(r, !0);
@@ -14,7 +14,7 @@ function n(n, r) {
14
14
  }), e.append(n, o), e.pop();
15
15
  }
16
16
  //#endregion
17
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Input/controlAria.js
17
+ //#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/primitives/Input/controlAria.js
18
18
  function r(e, t) {
19
19
  return t ? {
20
20
  "aria-invalid": e.invalid || t["aria-invalid"] ? !0 : void 0,
@@ -1,7 +1,7 @@
1
- import { X as e } from "./datetime-BnKG6Hjm.js";
1
+ import { X as e } from "./datetime-B0mHwpmb.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/MailIcon.svelte
4
+ //#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/MailIcon.svelte
5
5
  var n = t.from_svg("<path d=\"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z\"></path>"), r = t.from_svg("<polyline points=\"224 56 128 144 32 56\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></polyline><path d=\"M32,56H224a0,0,0,0,1,0,0V192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56A0,0,0,0,1,32,56Z\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><line x1=\"110.55\" y1=\"128\" x2=\"34.47\" y2=\"197.74\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line><line x1=\"221.53\" y1=\"197.74\" x2=\"145.45\" y2=\"128\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line>", 1), i = t.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
6
6
  function a(a, o) {
7
7
  t.push(o, !0);
@@ -22,7 +22,7 @@ function a(a, o) {
22
22
  }), t.append(a, f), t.pop();
23
23
  }
24
24
  //#endregion
25
- //#region node_modules/@getmicdrop/svelte-components/dist/utils/copyToClipboard.js
25
+ //#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/utils/copyToClipboard.js
26
26
  async function o(e) {
27
27
  if (typeof navigator < "u" && navigator.clipboard && typeof navigator.clipboard.writeText == "function") try {
28
28
  return await navigator.clipboard.writeText(e), !0;
@@ -1,8 +1,8 @@
1
- import { X as e } from "./datetime-BnKG6Hjm.js";
1
+ import { X as e } from "./datetime-B0mHwpmb.js";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as t from "svelte/internal/client";
4
4
  import { getContext as n, hasContext as r, setContext as i } from "svelte";
5
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/ExclamationTriangleOutline.svelte
5
+ //#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/ExclamationTriangleOutline.svelte
6
6
  var a = t.from_svg("<svg aria-hidden=\"true\" fill=\"none\" stroke-width=\"1.5\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z\"></path></svg>");
7
7
  function o(e, n) {
8
8
  let r = t.prop(n, "size", 3, "24"), i = t.prop(n, "color", 3, "currentColor"), o = t.prop(n, "class", 3, "");
@@ -12,7 +12,7 @@ function o(e, n) {
12
12
  }), t.append(e, s);
13
13
  }
14
14
  //#endregion
15
- //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ViewOffIcon.svelte
15
+ //#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ViewOffIcon.svelte
16
16
  var s = t.from_svg("<path d=\"M96.68,57.87a4,4,0,0,1,2.08-6.6A130.13,130.13,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41a8,8,0,0,1,0,6.5c-.35.79-8.82,19.57-27.65,38.4q-4.28,4.26-8.79,8.07a4,4,0,0,1-5.55-.36ZM213.92,210.62a8,8,0,1,1-11.84,10.76L180,197.13A127.21,127.21,0,0,1,128,208c-34.88,0-66.57-13.26-91.66-38.34C17.51,150.83,9,132.05,8.69,131.26a8,8,0,0,1,0-6.5C9,124,17.51,105.18,36.34,86.35a135,135,0,0,1,25-19.78L42.08,45.38A8,8,0,1,1,53.92,34.62Zm-65.49-48.25-52.69-58a40,40,0,0,0,52.69,58Z\"></path>"), c = t.from_svg("<line x1=\"48\" y1=\"40\" x2=\"208\" y2=\"216\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></line><path d=\"M154.91,157.6a40,40,0,0,1-53.82-59.2\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><path d=\"M135.53,88.71a40,40,0,0,1,32.3,35.53\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><path d=\"M208.61,169.1C230.41,149.58,240,128,240,128S208,56,128,56a126,126,0,0,0-20.68,1.68\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path><path d=\"M74,68.6C33.23,89.24,16,128,16,128s32,72,112,72a118.05,118.05,0,0,0,54-12.6\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></path>", 1), l = t.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
17
17
  function u(n, r) {
18
18
  t.push(r, !0);
@@ -33,10 +33,10 @@ function u(n, r) {
33
33
  }), t.append(n, f), t.pop();
34
34
  }
35
35
  //#endregion
36
- //#region node_modules/@getmicdrop/svelte-components/dist/assets/svg/cancel.svg
36
+ //#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/assets/svg/cancel.svg
37
37
  var d = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='cancel'%3e%3cpath%20id='Vector'%20d='M11.0846%202.91797L2.91797%2011.0846M2.91797%202.91797L11.0846%2011.0846'%20stroke='%23FF6666'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e";
38
38
  //#endregion
39
- //#region node_modules/@getmicdrop/svelte-components/dist/forms/createErrorGate.svelte.js
39
+ //#region ../../../jetbook/npm-calendar/node_modules/@getmicdrop/svelte-components/dist/forms/createErrorGate.svelte.js
40
40
  function f() {
41
41
  let e = t.state(t.proxy({})), n = t.state(!1), r = t.state(0), i = 0, a = t.state(void 0), o = 0;
42
42
  return {
@@ -0,0 +1,116 @@
1
+ import { J as e } from "./datetime-B0mHwpmb.js";
2
+ import { _ as t, a as n, b as r, f as i, o as a, s as o, v as s } from "./defaultLabels-C8IfDtR9.js";
3
+ import { r as c } from "./Button-BLmw_oMF.js";
4
+ import { m as l, p as u } from "./navigation-DlpJzq1c.js";
5
+ //#region src/lib/api/cta.ts
6
+ function d(e, n, a = {}) {
7
+ let { cancelled: o = !1, isRegistration: s = !1, waitlistEnabled: d = !1 } = a, p = c();
8
+ if (o) return {
9
+ text: "Canceled",
10
+ disabled: !0,
11
+ reason: "cancelled"
12
+ };
13
+ if ((e?.status || "").trim().toLowerCase() === "postponed") return {
14
+ text: "Postponed",
15
+ disabled: !0,
16
+ reason: "postponed"
17
+ };
18
+ let m = t(e.endDateTime || e.startDateTime);
19
+ if (m && i(m, p) < 0) return {
20
+ text: "Sales ended",
21
+ disabled: !0,
22
+ reason: "event_past"
23
+ };
24
+ let h = (e?.salesStatus || "").trim().toLowerCase(), g = h === "not_started";
25
+ if (h === "paused") return {
26
+ text: "Sales paused",
27
+ disabled: !0,
28
+ reason: "sales_paused"
29
+ };
30
+ if (h === "ended") return {
31
+ text: "Sales ended",
32
+ disabled: !0,
33
+ reason: "sales_ended"
34
+ };
35
+ let _ = e?.hasPurchasableHiddenTickets === !0 || Array.isArray(n) && n.some(u), v = () => _ ? {
36
+ text: s ? "Reserve a spot" : "Get tickets",
37
+ disabled: !1,
38
+ reason: "hidden_only"
39
+ } : d ? {
40
+ text: "Join Waitlist",
41
+ disabled: !1,
42
+ reason: "sold_out_waitlist"
43
+ } : {
44
+ text: "Sold out",
45
+ disabled: !0,
46
+ reason: "sold_out"
47
+ };
48
+ if (h === "sold_out") return v();
49
+ let y = (n || []).filter((e) => e.salesChannel !== 2 && !e.isHidden && !(typeof e.visibility == "number" && e.visibility >= l.HIDDEN));
50
+ if (y.length === 0) return _ ? {
51
+ text: s ? "Reserve a spot" : "Get tickets",
52
+ disabled: !1,
53
+ reason: "hidden_only"
54
+ } : {
55
+ text: "No tickets available",
56
+ disabled: !0,
57
+ reason: "no_tickets"
58
+ };
59
+ let b = !1, x = !0, S = !0, C = null;
60
+ for (let e of y) {
61
+ let n = t(e.salesBegin || e.salesStart || e.saleBegin || e.onSaleStart), r = t(e.salesEnd || e.saleEnd || e.onSaleEnd), a = e.remainingCapacity ?? e.quantityRemaining ?? e.quantity, o = e.soldOut || a != null && a <= 0, s = n ? i(n, p) > 0 : !1, c = r ? i(r, p) < 0 : !1;
62
+ !o && !s && !c && (b = !0), o || (x = !1), s || (S = !1), s && n && !o && !c && (!C || i(n, C) < 0) && (C = n);
63
+ }
64
+ return g && b ? _ ? {
65
+ text: s ? "Reserve a spot" : "Get tickets",
66
+ disabled: !1,
67
+ reason: "hidden_only"
68
+ } : {
69
+ text: "On sale soon",
70
+ disabled: !0,
71
+ reason: "coming_soon"
72
+ } : b ? {
73
+ text: s ? "Reserve a spot" : "Get tickets",
74
+ disabled: !1,
75
+ reason: "available"
76
+ } : S && C ? _ ? {
77
+ text: s ? "Reserve a spot" : "Get tickets",
78
+ disabled: !1,
79
+ reason: "hidden_only"
80
+ } : {
81
+ text: `On sale ${f(C, i(C, p), [e.timezone, e.timeZone].find((e) => !!e && r(e)))}`,
82
+ disabled: !0,
83
+ reason: "coming_soon"
84
+ } : x ? v() : _ ? {
85
+ text: s ? "Reserve a spot" : "Get tickets",
86
+ disabled: !1,
87
+ reason: "hidden_only"
88
+ } : {
89
+ text: "Sales ended",
90
+ disabled: !0,
91
+ reason: "sales_ended"
92
+ };
93
+ }
94
+ function f(t, r, i) {
95
+ let c = r / 36e5, l = r / 864e5;
96
+ if (i) {
97
+ let e = t.toISOString(), r = s(i, t), u = `${o(e, i)} ${r}`;
98
+ return c < 24 ? u : l <= 7 ? `${n(e, i, !0)} ${u}` : `${a(e, i, { includeYear: !1 })} ${u}`;
99
+ }
100
+ let u = (t) => e(t, {
101
+ hour: "numeric",
102
+ minute: "2-digit",
103
+ hour12: !0
104
+ }, "en-US");
105
+ return c < 24 ? u(t) : l <= 7 ? e(t, {
106
+ weekday: "short",
107
+ hour: "numeric",
108
+ minute: "2-digit",
109
+ hour12: !0
110
+ }, "en-US") : `${e(t, {
111
+ month: "short",
112
+ day: "numeric"
113
+ }, "en-US")} ${u(t)}`;
114
+ }
115
+ //#endregion
116
+ export { d as t };