@getmicdrop/venue-calendar 4.3.134 → 4.3.135

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 (52) hide show
  1. package/dist/{AddOnCard-KMH1qTLC.js → AddOnCard-_OX1BqWV.js} +2 -2
  2. package/dist/{CartView-FilZsJhz.js → CartView-DtgNCACZ.js} +5 -5
  3. package/dist/{Checkout-CKu6-3ge.js → Checkout-BnI2UqNd.js} +7 -7
  4. package/dist/{Checkout-B452YAj0.js → Checkout-DpyT_TuS.js} +3 -3
  5. package/dist/{CollectionView-CcCJ8QHJ.js → CollectionView-CKVGypsb.js} +3 -3
  6. package/dist/{Event-BAak3eIv.js → Event-C2BfY4hq.js} +6 -6
  7. package/dist/{EventPage-BaZJouyy.js → EventPage-Bd3VBdhn.js} +6 -6
  8. package/dist/{RecommendationsRail-xkW1CQeh.js → RecommendationsRail-DL03xY8R.js} +1 -1
  9. package/dist/{ScarcityBadge-DeFc2A7Q.js → ScarcityBadge-BB4ZD_8N.js} +1 -1
  10. package/dist/{SeriesPage-EfuCWmFn.js → SeriesPage-lhbMdwIi.js} +2 -2
  11. package/dist/{Success-Brgzy360.js → Success-LFYYWMod.js} +5 -5
  12. package/dist/{api-BO4Z_u98.js → api-C02BQT4E.js} +1 -1
  13. package/dist/{cta-MXM9aE_E.js → cta-BpblR0dm.js} +1 -1
  14. package/dist/{event-transform-BXcz1V7x.js → event-transform-Cp_h6-Ot.js} +1 -1
  15. package/dist/{i18n-BLVasp8M.js → i18n-DUMRUvVc.js} +2 -2
  16. package/dist/{look-island.svelte-bOGvv0Rx.js → look-island.svelte-C27bvwqP.js} +3 -3
  17. package/dist/looks/{4.3.134 → 4.3.135}/looks.js +9 -9
  18. package/dist/{navigation-DEa62cmu.js → navigation-Cochv2HZ.js} +47 -39
  19. package/dist/{utils-CWXWwJ7N.js → utils-CNwfP0zV.js} +1 -1
  20. package/dist/venue-calendar.es.js +15 -15
  21. package/dist/venue-calendar.iife.js +30 -30
  22. package/dist/venue-calendar.umd.js +57 -57
  23. package/package.json +1 -1
  24. /package/dist/locales/{4.3.134 → 4.3.135}/flow/de.js +0 -0
  25. /package/dist/locales/{4.3.134 → 4.3.135}/flow/es.js +0 -0
  26. /package/dist/locales/{4.3.134 → 4.3.135}/flow/fr.js +0 -0
  27. /package/dist/locales/{4.3.134 → 4.3.135}/flow/id.js +0 -0
  28. /package/dist/locales/{4.3.134 → 4.3.135}/flow/it.js +0 -0
  29. /package/dist/locales/{4.3.134 → 4.3.135}/flow/ja.js +0 -0
  30. /package/dist/locales/{4.3.134 → 4.3.135}/flow/ko.js +0 -0
  31. /package/dist/locales/{4.3.134 → 4.3.135}/flow/nl.js +0 -0
  32. /package/dist/locales/{4.3.134 → 4.3.135}/flow/pl.js +0 -0
  33. /package/dist/locales/{4.3.134 → 4.3.135}/flow/pt-br.js +0 -0
  34. /package/dist/locales/{4.3.134 → 4.3.135}/flow/tr.js +0 -0
  35. /package/dist/locales/{4.3.134 → 4.3.135}/flow/zh.js +0 -0
  36. /package/dist/locales/{4.3.134 → 4.3.135}/main/de.js +0 -0
  37. /package/dist/locales/{4.3.134 → 4.3.135}/main/es.js +0 -0
  38. /package/dist/locales/{4.3.134 → 4.3.135}/main/fr.js +0 -0
  39. /package/dist/locales/{4.3.134 → 4.3.135}/main/id.js +0 -0
  40. /package/dist/locales/{4.3.134 → 4.3.135}/main/it.js +0 -0
  41. /package/dist/locales/{4.3.134 → 4.3.135}/main/ja.js +0 -0
  42. /package/dist/locales/{4.3.134 → 4.3.135}/main/ko.js +0 -0
  43. /package/dist/locales/{4.3.134 → 4.3.135}/main/nl.js +0 -0
  44. /package/dist/locales/{4.3.134 → 4.3.135}/main/pl.js +0 -0
  45. /package/dist/locales/{4.3.134 → 4.3.135}/main/pt-br.js +0 -0
  46. /package/dist/locales/{4.3.134 → 4.3.135}/main/tr.js +0 -0
  47. /package/dist/locales/{4.3.134 → 4.3.135}/main/zh.js +0 -0
  48. /package/dist/looks/{4.3.134 → 4.3.135}/micdrop-wordmark-BYMG6vLR.svg +0 -0
  49. /package/dist/looks/{4.3.134 → 4.3.135}/microphone-Ccv4r-kd.webp +0 -0
  50. /package/dist/looks/{4.3.134 → 4.3.135}/superuser-CZF6a5gO.webp +0 -0
  51. /package/dist/looks/{4.3.134 → 4.3.135}/treasury-DUE7lZzT.webp +0 -0
  52. /package/dist/looks/{4.3.134 → 4.3.135}/user-image-yuS4errP.svg +0 -0
@@ -72,18 +72,26 @@ function v(e) {
72
72
  }
73
73
  //#endregion
74
74
  //#region src/lib/url-manager/index.ts
75
- var y = 0;
75
+ var y = "__MICDROP_VC_HASH_ROUTING__";
76
76
  function b() {
77
- return y > 0;
77
+ if (typeof window > "u") return 0;
78
+ let e = window[y];
79
+ return typeof e == "number" ? e : 0;
78
80
  }
79
- var x = null;
80
- function S(e) {
81
- return x && x !== e ? !1 : (x = e, !0);
81
+ function x(e) {
82
+ window[y] = Math.max(0, b() + e);
82
83
  }
83
- function C(e) {
84
- x === e && (x = null);
84
+ function S() {
85
+ return b() > 0;
85
86
  }
86
- var w = class {
87
+ var C = null;
88
+ function w(e) {
89
+ return C && C !== e ? !1 : (C = e, !0);
90
+ }
91
+ function T(e) {
92
+ C === e && (C = null);
93
+ }
94
+ var E = class {
87
95
  onNavigate;
88
96
  handleHashChange;
89
97
  prevEntityKey;
@@ -94,7 +102,7 @@ var w = class {
94
102
  e instanceof PopStateEvent && e.state?.micdrop && e.state.step !== window.history.state?.step && window.history.replaceState(e.state, "", window.location.href);
95
103
  let t = this.getEntityKey();
96
104
  t !== this.prevEntityKey && (this.prevEntityKey = t, this.onNavigate(this.readState()));
97
- }, typeof window < "u" && (window.addEventListener("hashchange", this.handleHashChange), window.addEventListener("popstate", this.handleHashChange), y++, this.counted = !0);
105
+ }, typeof window < "u" && (window.addEventListener("hashchange", this.handleHashChange), window.addEventListener("popstate", this.handleHashChange), x(1), this.counted = !0);
98
106
  }
99
107
  readState() {
100
108
  if (typeof window > "u") return {
@@ -106,34 +114,34 @@ var w = class {
106
114
  return {
107
115
  entity: e,
108
116
  month: new URLSearchParams(window.location.search).get("m") || null,
109
- step: e ? E() : null
117
+ step: e ? O() : null
110
118
  };
111
119
  }
112
120
  pushEntity(e, t) {
113
121
  if (typeof window > "u") return;
114
122
  let n = `#${e}${t ? "-" + t : ""}`;
115
- this.replaceHash(n, E() ? "show" : null), this.prevEntityKey = this.getEntityKey();
123
+ this.replaceHash(n, O() ? "show" : null), this.prevEntityKey = this.getEntityKey();
116
124
  }
117
125
  openEntity(e, t) {
118
126
  if (typeof window > "u") return;
119
127
  let n = new URL(window.location.href);
120
- n.hash = `#${e}${t ? "-" + t : ""}`, window.history.pushState(T("show"), "", n.toString()), this.prevEntityKey = this.getEntityKey();
128
+ n.hash = `#${e}${t ? "-" + t : ""}`, window.history.pushState(D("show"), "", n.toString()), this.prevEntityKey = this.getEntityKey();
121
129
  }
122
130
  pushStep(e) {
123
131
  if (typeof window > "u") return;
124
- let t = E() === e ? "replaceState" : "pushState";
125
- window.history[t](T(e), "", window.location.href), this.prevEntityKey = this.getEntityKey(), this.stepLength = window.history.length;
132
+ let t = O() === e ? "replaceState" : "pushState";
133
+ window.history[t](D(e), "", window.location.href), this.prevEntityKey = this.getEntityKey(), this.stepLength = window.history.length;
126
134
  }
127
135
  replaceStep(e) {
128
136
  if (typeof window > "u") return;
129
137
  let t = window.history.state?.showPanel === !0;
130
- window.history.replaceState(T(e), "", window.location.href), this.prevEntityKey = this.getEntityKey();
138
+ window.history.replaceState(D(e), "", window.location.href), this.prevEntityKey = this.getEntityKey();
131
139
  let n = t && this.stepLength ? window.history.length - this.stepLength : 0;
132
140
  this.stepLength = 0, n > 0 && window.history.go(-n);
133
141
  }
134
142
  stackEntityOverListing() {
135
143
  if (typeof window > "u") return;
136
- let e = E();
144
+ let e = O();
137
145
  if (e && e !== "show") {
138
146
  let e = this.readEntityFromHash()?.id;
139
147
  this.prevEntityKey = e ? `${e}|show` : "", window.history.back();
@@ -141,7 +149,7 @@ var w = class {
141
149
  }
142
150
  if (e) return;
143
151
  let t = window.location.href;
144
- this.replaceHash(""), window.history.pushState(T("show"), "", t), this.prevEntityKey = this.getEntityKey();
152
+ this.replaceHash(""), window.history.pushState(D("show"), "", t), this.prevEntityKey = this.getEntityKey();
145
153
  }
146
154
  onPushedEntry() {
147
155
  return typeof window > "u" ? !1 : window.history.state?.showPanel === !0;
@@ -158,80 +166,80 @@ var w = class {
158
166
  }, "", t.toString());
159
167
  }
160
168
  destroy() {
161
- typeof window < "u" && (window.removeEventListener("hashchange", this.handleHashChange), window.removeEventListener("popstate", this.handleHashChange)), this.counted && (this.counted = !1, y--);
169
+ typeof window < "u" && (window.removeEventListener("hashchange", this.handleHashChange), window.removeEventListener("popstate", this.handleHashChange)), this.counted && (this.counted = !1, x(-1));
162
170
  }
163
171
  readEntityFromHash() {
164
172
  return e((window.location.hash || "").replace(/^#/, ""));
165
173
  }
166
174
  replaceHash(e, t = null) {
167
175
  let n = new URL(window.location.href);
168
- n.hash = e, window.history.replaceState(t ? T(t) : { micdrop: !0 }, "", n.toString());
176
+ n.hash = e, window.history.replaceState(t ? D(t) : { micdrop: !0 }, "", n.toString());
169
177
  }
170
178
  getEntityKey() {
171
179
  if (typeof window > "u") return "";
172
- let e = this.readEntityFromHash()?.id ?? "", t = E();
180
+ let e = this.readEntityFromHash()?.id ?? "", t = O();
173
181
  return e && t ? `${e}|${t}` : e;
174
182
  }
175
183
  };
176
- function T(e) {
184
+ function D(e) {
177
185
  return {
178
186
  micdrop: !0,
179
187
  showPanel: !0,
180
188
  step: e
181
189
  };
182
190
  }
183
- function E() {
191
+ function O() {
184
192
  let e = window.history.state;
185
193
  return e?.showPanel ? e.step === "checkout" || e.step === "success" ? e.step : "show" : null;
186
194
  }
187
195
  //#endregion
188
196
  //#region src/lib/navigation.ts
189
- function D(e, t) {
197
+ function k(e, t) {
190
198
  let n = t ? `${e}-${t}` : `${e}`;
191
- if (typeof window < "u" && b()) {
199
+ if (typeof window < "u" && S()) {
192
200
  let { origin: e, pathname: t, search: r } = window.location;
193
201
  return `${e}${t}${r}#${n}`;
194
202
  }
195
203
  return `${o()}/e/${n}`;
196
204
  }
197
- function O(e, t, n) {
205
+ function A(e, t, n) {
198
206
  let r = n?.toString(), i = t ? `/e/${e}-${t}` : `/e/${e}`;
199
207
  return `${s()}${i}${r ? `?${r}` : ""}`;
200
208
  }
201
- var k = "get-micdrop.com";
202
- function A(e) {
209
+ var j = "get-micdrop.com";
210
+ function M(e) {
203
211
  let t = typeof e == "string" ? e.trim() : "";
204
- return t ? `https://${encodeURIComponent(t)}.${k}` : "";
212
+ return t ? `https://${encodeURIComponent(t)}.${j}` : "";
205
213
  }
206
- function j(e) {
207
- let t = A(e);
214
+ function N(e) {
215
+ let t = M(e);
208
216
  return t ? `${t}/gift-cards/buy` : "";
209
217
  }
210
- function M(e, t, n) {
218
+ function P(e, t, n) {
211
219
  let r = n?.toString();
212
220
  return `/${e}/${t}${r ? `?${r}` : ""}`;
213
221
  }
214
- function N(e) {
222
+ function F(e) {
215
223
  return `/${e}`;
216
224
  }
217
- function P(e) {
225
+ function I(e) {
218
226
  return `${s()}/${e}`;
219
227
  }
220
- function F(e, t) {
228
+ function L(e, t) {
221
229
  return `/${e}/${t}/checkout`;
222
230
  }
223
- function I(e) {
231
+ function R(e) {
224
232
  return `/?${e.toString()}`;
225
233
  }
226
- function L(e) {
234
+ function z(e) {
227
235
  let t = new URLSearchParams();
228
236
  e.orderId && t.set("orderId", e.orderId), e.ticketCount && e.ticketCount > 0 && t.set("tickets", String(e.ticketCount));
229
237
  let n = t.toString();
230
238
  return n ? `?${n}` : "";
231
239
  }
232
- function R(e, t, n = {}) {
240
+ function B(e, t, n = {}) {
233
241
  let r = t ? `/e/${e}-${t}` : `/e/${e}`;
234
- return `${s()}${r}/tickets/checkout/success${L(n)}`;
242
+ return `${s()}${r}/tickets/checkout/success${z(n)}`;
235
243
  }
236
244
  //#endregion
237
- export { l as _, D as a, p as b, R as c, w as d, S as f, _ as g, v as h, O as i, A as l, C as m, P as n, M as o, b as p, N as r, j as s, F as t, I as u, m as v, h as x, f as y };
245
+ export { l as _, k as a, p as b, B as c, E as d, w as f, _ as g, v as h, A as i, M as l, T as m, I as n, P as o, S as p, F as r, N as s, L as t, R as u, m as v, h as x, f as y };
@@ -1,7 +1,7 @@
1
1
  import { g as e } from "./sizing-B7ixYndz.js";
2
2
  import { F as t, P as n } from "./widget-key-context-DxoB6BR0.js";
3
3
  import { c as r, n as i, r as a } from "./client-SmFkruvn.js";
4
- import "./event-transform-BXcz1V7x.js";
4
+ import "./event-transform-Cp_h6-Ot.js";
5
5
  import { f as o } from "./checkoutState-wrwq9TD7.js";
6
6
  //#region src/lib/api/surge-queue.ts
7
7
  var s = e("VC"), c = "queue_unavailable", l = {
@@ -34,7 +34,7 @@ import { c as x } from "./portalContainment-CeAVqIb-.js";
34
34
  import { _ as S, f as C, g as w, l as T, n as E, t as D, w as te } from "./defaultLabels-tC8zM7_V.js";
35
35
  import { r as ne, t as re } from "./Button-VUB2WJ88.js";
36
36
  import { A as O, D as k, M as ie, O as ae, S as oe, _ as se, j as ce, k as A, n as le, p as ue, t as de, v as fe, w as pe, x as me } from "./widget-key-context-DxoB6BR0.js";
37
- import { T as j, b as he, d as ge, p as _e, u as ve, x as ye, y as be } from "./api-BO4Z_u98.js";
37
+ import { T as j, b as he, d as ge, p as _e, u as ve, x as ye, y as be } from "./api-C02BQT4E.js";
38
38
  import { a as xe, d as Se, i as M, n as N, r as Ce, t as we } from "./ModalFooter-Cru7v0io.js";
39
39
  import { t as Te } from "./portal-D-oaEWsY.js";
40
40
  import { C as Ee, D as P, E as De, S as Oe, _ as ke, a as F, b as Ae, c as je, f as Me, l as Ne, m as Pe, n as Fe, o as Ie, s as Le, v as I, x as L, y as Re } from "./client-SmFkruvn.js";
@@ -42,8 +42,8 @@ import { n as ze, r as Be, t as Ve } from "./adapter-BPpmiFWD.js";
42
42
  import { t as He } from "./lazyOnce-CCfEO1xG.js";
43
43
  import { t as Ue } from "./EmptyState-CMFePII9.js";
44
44
  import { t as R } from "./EventCard-uMW7-Yc7.js";
45
- import { _ as We, a as Ge, d as Ke, f as qe, m as Je, n as Ye, s as Xe } from "./navigation-DEa62cmu.js";
46
- import { i as z, r as Ze } from "./event-transform-BXcz1V7x.js";
45
+ import { _ as We, a as Ge, d as Ke, f as qe, m as Je, n as Ye, s as Xe } from "./navigation-Cochv2HZ.js";
46
+ import { i as z, r as Ze } from "./event-transform-Cp_h6-Ot.js";
47
47
  import { a as Qe, i as $e, l as et, n as tt, o as nt, s as rt, t as it, u as at } from "./pixels-D_on_5fc.js";
48
48
  import { o as B, r as V, t as H } from "./to-event-card-props-q8vFqxkX.js";
49
49
  import { n as ot } from "./eventStatusStream-JWP2AXnQ.js";
@@ -1637,7 +1637,7 @@ function qr(e, n) {
1637
1637
  }
1638
1638
  //#endregion
1639
1639
  //#region src/lib/browse-widgets/looks.loaders.static.js
1640
- var Jr = () => import("./look-island.svelte-bOGvv0Rx.js"), Yr = (e) => (t) => {
1640
+ var Jr = () => import("./look-island.svelte-C27bvwqP.js"), Yr = (e) => (t) => {
1641
1641
  let n = U.state(null), r = !1;
1642
1642
  return Jr().then((i) => {
1643
1643
  r || U.set(n, i.mountLook(t, ht(e), { siteOrigin: Pe() }));
@@ -2107,7 +2107,7 @@ function si(e, n) {
2107
2107
  r < n && window.scrollBy(0, r - n);
2108
2108
  }
2109
2109
  async function zn(e) {
2110
- e === "series" ? U.get(vt) || U.set(vt, (await import("./SeriesPage-EfuCWmFn.js")).default, !0) : e === "collection" ? U.get(yt) || U.set(yt, (await import("./CollectionView-CcCJ8QHJ.js")).default, !0) : U.get(_t) || U.set(_t, (await import("./EventPage-BaZJouyy.js")).default, !0);
2110
+ e === "series" ? U.get(vt) || U.set(vt, (await import("./SeriesPage-lhbMdwIi.js")).default, !0) : e === "collection" ? U.get(yt) || U.set(yt, (await import("./CollectionView-CKVGypsb.js")).default, !0) : U.get(_t) || U.set(_t, (await import("./EventPage-Bd3VBdhn.js")).default, !0);
2111
2111
  }
2112
2112
  async function Vn({ type: e, id: t, slug: n = "", data: r = null, initialEventData: i = null, pushHash: a = !0, newEntry: o = !1 }) {
2113
2113
  if (U.get(Y) && !qe(Tt)) return;
@@ -2172,11 +2172,11 @@ function si(e, n) {
2172
2172
  }, !0), U.set(W, "checkout"), U.get(Y) && r && b?.pushStep("checkout"), tt({
2173
2173
  eventId: e,
2174
2174
  contentName: n?.name || n?.title || U.get(G)?.data?.name || U.get(G)?.data?.title || ""
2175
- }), U.get(bt) || U.set(bt, (await import("./Checkout-CKu6-3ge.js")).default, !0), await pt(), i === q && Rn();
2175
+ }), U.get(bt) || U.set(bt, (await import("./Checkout-BnI2UqNd.js")).default, !0), await pt(), i === q && Rn();
2176
2176
  }
2177
2177
  async function Yn(e) {
2178
2178
  let t = ++q;
2179
- U.set(K, e || {}, !0), U.set(W, "success"), U.get(Y) && b?.onPushedEntry() && b.replaceStep("success"), U.get(xt) || U.set(xt, (await import("./Success-Brgzy360.js")).default, !0), await pt(), t === q && Rn();
2179
+ U.set(K, e || {}, !0), U.set(W, "success"), U.get(Y) && b?.onPushedEntry() && b.replaceStep("success"), U.get(xt) || U.set(xt, (await import("./Success-LFYYWMod.js")).default, !0), await pt(), t === q && Rn();
2180
2180
  }
2181
2181
  function Xn() {
2182
2182
  U.get(G) ? Vn({
@@ -3727,7 +3727,7 @@ if (typeof window < "u" && typeof HTMLElement < "u") {
3727
3727
  }
3728
3728
  //#endregion
3729
3729
  //#region src/lib/VenueCalendar.js
3730
- var Hi = "4.3.134", Ui = e("VenueCalendar"), Wi = null;
3730
+ var Hi = "4.3.135", Ui = e("VenueCalendar"), Wi = null;
3731
3731
  function Gi(e = {}) {
3732
3732
  typeof e.onError == "function" && (Wi = e.onError, F({ onError: (t) => {
3733
3733
  try {
@@ -3758,14 +3758,14 @@ function Ji(e, t) {
3758
3758
  return qi.has(e) || qi.set(e, t()), qi.get(e);
3759
3759
  }
3760
3760
  var $ = {
3761
- EventPage: () => Ji("EventPage", () => import("./EventPage-BaZJouyy.js").then((e) => e.default)),
3762
- Checkout: () => Ji("Checkout", () => import("./Checkout-CKu6-3ge.js").then((e) => e.default)),
3763
- Success: () => Ji("Success", () => import("./Success-Brgzy360.js").then((e) => e.default)),
3764
- CartView: () => Ji("CartView", () => import("./CartView-FilZsJhz.js").then((e) => e.default)),
3761
+ EventPage: () => Ji("EventPage", () => import("./EventPage-Bd3VBdhn.js").then((e) => e.default)),
3762
+ Checkout: () => Ji("Checkout", () => import("./Checkout-BnI2UqNd.js").then((e) => e.default)),
3763
+ Success: () => Ji("Success", () => import("./Success-LFYYWMod.js").then((e) => e.default)),
3764
+ CartView: () => Ji("CartView", () => import("./CartView-DtgNCACZ.js").then((e) => e.default)),
3765
3765
  ViewTicketsEmbed: () => Ji("ViewTicketsEmbed", () => import("./ViewTicketsEmbed-ClMXL5iX.js").then((e) => e.default)),
3766
- CheckoutMain: () => Ji("CheckoutMain", () => import("./Checkout-B452YAj0.js").then((e) => e.default)),
3767
- SeriesPage: () => Ji("SeriesPage", () => import("./SeriesPage-EfuCWmFn.js").then((e) => e.default)),
3768
- CollectionView: () => Ji("CollectionView", () => import("./CollectionView-CcCJ8QHJ.js").then((e) => e.default))
3766
+ CheckoutMain: () => Ji("CheckoutMain", () => import("./Checkout-DpyT_TuS.js").then((e) => e.default)),
3767
+ SeriesPage: () => Ji("SeriesPage", () => import("./SeriesPage-lhbMdwIi.js").then((e) => e.default)),
3768
+ CollectionView: () => Ji("CollectionView", () => import("./CollectionView-CKVGypsb.js").then((e) => e.default))
3769
3769
  };
3770
3770
  function Yi(e, t) {
3771
3771
  let n;