@getmicdrop/venue-calendar 4.3.132 → 4.3.134

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 (130) hide show
  1. package/dist/{AddOnCard-DVIyT413.js → AddOnCard-KMH1qTLC.js} +6 -6
  2. package/dist/{ArrowLeftIcon-DEgh32lp.js → ArrowLeftIcon-CezkuCvg.js} +1 -1
  3. package/dist/{BlockPlaceholder-hgRNmGkj.js → BlockPlaceholder-BBrehfrB.js} +1 -1
  4. package/dist/{Calendar-e5BCo8VF.js → Calendar-BV1XCdju.js} +4 -4
  5. package/dist/{CalendarFoundryView-ChUcTRbh.js → CalendarFoundryView-CbAqIB4K.js} +19 -19
  6. package/dist/{CalendarIcon-BiIhqa3c.js → CalendarIcon-Y6_CP1BO.js} +1 -1
  7. package/dist/{CartView-BW_i-Hu2.js → CartView-FilZsJhz.js} +17 -17
  8. package/dist/{CheckIcon-BSKGGU_P.js → CheckIcon-BFlrM9LP.js} +1 -1
  9. package/dist/Checkout-B452YAj0.js +1872 -0
  10. package/dist/{Checkout-Ct8IQcr-.js → Checkout-CKu6-3ge.js} +17 -17
  11. package/dist/{CheckoutTimer-D1Xt-i3-.js → CheckoutTimer-CfGllYB_.js} +3 -3
  12. package/dist/{ChevronDownIcon-BYOUR8W8.js → ChevronDownIcon-CmTx77Iz.js} +1 -1
  13. package/dist/{CloseIcon-BhUrqAhx.js → CloseIcon--8LjBB63.js} +1 -1
  14. package/dist/{CollectionView-vnsbekqM.js → CollectionView-CcCJ8QHJ.js} +6 -6
  15. package/dist/{Event-4rMJCXDu.js → Event-BAak3eIv.js} +21 -21
  16. package/dist/{EventCard-DRuU3Q_r.js → EventCard-uMW7-Yc7.js} +1 -1
  17. package/dist/{EventPage-o3Sxc8OV.js → EventPage-BaZJouyy.js} +15 -15
  18. package/dist/{Input-Czk889Ya.js → Input-C0BCVQQ5.js} +1 -1
  19. package/dist/{LocationIcon-_PcJ1uA2.js → LocationIcon-Ct8LQDag.js} +1 -1
  20. package/dist/{PasswordInput-fktfhSU6.js → PasswordInput-DpeH_g-Z.js} +1 -1
  21. package/dist/{RecommendationsRail-CASaEhsf.js → RecommendationsRail-xkW1CQeh.js} +11 -11
  22. package/dist/{ScarcityBadge-DnTalbV0.js → ScarcityBadge-DeFc2A7Q.js} +4 -4
  23. package/dist/{SeriesPage-Dx8PivI6.js → SeriesPage-EfuCWmFn.js} +2 -2
  24. package/dist/{Spinner-BskKgkwa.js → Spinner-DNaDFSCe.js} +1 -1
  25. package/dist/Success-Brgzy360.js +985 -0
  26. package/dist/{TagIcon-BTaz1xN5.js → TagIcon-MVcV8ylU.js} +1 -1
  27. package/dist/{ViewTicketsEmbed-5FmtN5FE.js → ViewTicketsEmbed-ClMXL5iX.js} +213 -223
  28. package/dist/{WarningCircleIcon-B1KX3p19.js → WarningCircleIcon-ch-94kEe.js} +1 -1
  29. package/dist/{WarningTriIcon-C40Ul16E.js → WarningTriIcon-DFjb-boV.js} +1 -1
  30. package/dist/{adapter-BZCYrL13.js → adapter-BPpmiFWD.js} +1 -1
  31. package/dist/api/api.cjs +1 -1
  32. package/dist/api/api.mjs +1 -1
  33. package/dist/api/client.d.ts +10 -3
  34. package/dist/{api-BxKvWBu_.js → api-BO4Z_u98.js} +23 -23
  35. package/dist/{checkoutState-DKdzYK3y.js → checkoutState-wrwq9TD7.js} +18 -18
  36. package/dist/{client-BxgiVv8K.js → client-SmFkruvn.js} +10 -2
  37. package/dist/{constants-lKAMwRvZ.js → constants-D4yEpZuQ.js} +2 -4
  38. package/dist/{copyToClipboard-G1JW70Qn.js → copyToClipboard-Cy_-50GG.js} +1 -1
  39. package/dist/{createErrorGate.svelte-hewD6v3X.js → createErrorGate.svelte-Qp6j3EME.js} +1 -1
  40. package/dist/{cta-CcGCIhvk.js → cta-MXM9aE_E.js} +3 -3
  41. package/dist/{datetime-BSb_4_yZ.js → datetime-C_dBn97N.js} +1 -1
  42. package/dist/{de-CX7o2WAr.js → de-DyiE1KNg.js} +2 -4
  43. package/dist/{de-8y4zZw4b.js → de-lc43hoya.js} +0 -1
  44. package/dist/{defaultLabels-B0ug1Vhr.js → defaultLabels-tC8zM7_V.js} +0 -1
  45. package/dist/defaults-Bv4F-cYY.js +98 -0
  46. package/dist/{es-DeS00ow9.js → es-B0uSu40a.js} +0 -1
  47. package/dist/{es-DS1-fjU8.js → es-DhoitI_1.js} +2 -4
  48. package/dist/{event-B-GHKOCV.js → event-9wBbeiK2.js} +1 -1
  49. package/dist/{event-transform-BttnreVZ.js → event-transform-BXcz1V7x.js} +18 -18
  50. package/dist/{eventStatusStream-CaDLn9GX.js → eventStatusStream-JWP2AXnQ.js} +5 -5
  51. package/dist/{fr-wj3wN-iZ.js → fr-CzTFVHUe.js} +0 -1
  52. package/dist/{fr-CN3PiNzU.js → fr-DB--_n56.js} +2 -4
  53. package/dist/{href-z8jrNd6b.js → href-q4ZIwqKC.js} +3 -3
  54. package/dist/{i18n-Bi0xxbMT.js → i18n-BLVasp8M.js} +19 -19
  55. package/dist/i18n-s5MzdFwq.js +28 -0
  56. package/dist/{id-Bb-uh99i.js → id-BGqV9_gI.js} +0 -1
  57. package/dist/{id-CPG4tPVY.js → id-CMQRjMxp.js} +2 -4
  58. package/dist/{it-BtjDiYDd.js → it-B_BQgPWl.js} +0 -1
  59. package/dist/{it-CjwnCYFF.js → it-hBxsIHz2.js} +2 -4
  60. package/dist/{ja-BRZa3RPq.js → ja-BGWo7WDj.js} +0 -1
  61. package/dist/{ja-C2uiNCJX.js → ja-D1vfwJgB.js} +1 -3
  62. package/dist/{ko-Bh97byDf.js → ko-CRTegEJ4.js} +1 -3
  63. package/dist/{ko-0W8onUpE.js → ko-FKSzdHrm.js} +0 -1
  64. package/dist/locales/4.3.134/flow/de.js +1 -0
  65. package/dist/locales/4.3.134/flow/es.js +1 -0
  66. package/dist/locales/4.3.134/flow/fr.js +1 -0
  67. package/dist/locales/4.3.134/flow/id.js +1 -0
  68. package/dist/locales/4.3.134/flow/it.js +1 -0
  69. package/dist/locales/4.3.134/flow/ja.js +1 -0
  70. package/dist/locales/4.3.134/flow/ko.js +1 -0
  71. package/dist/locales/{4.3.132 → 4.3.134}/flow/nl.js +1 -1
  72. package/dist/locales/4.3.134/flow/pl.js +1 -0
  73. package/dist/locales/4.3.134/flow/pt-br.js +1 -0
  74. package/dist/locales/{4.3.132 → 4.3.134}/flow/tr.js +1 -1
  75. package/dist/locales/4.3.134/flow/zh.js +1 -0
  76. package/dist/locales/{4.3.132 → 4.3.134}/main/de.js +1 -1
  77. package/dist/locales/{4.3.132 → 4.3.134}/main/es.js +1 -1
  78. package/dist/locales/{4.3.132 → 4.3.134}/main/fr.js +1 -1
  79. package/dist/locales/{4.3.132 → 4.3.134}/main/id.js +1 -1
  80. package/dist/locales/{4.3.132 → 4.3.134}/main/it.js +1 -1
  81. package/dist/locales/{4.3.132 → 4.3.134}/main/ja.js +1 -1
  82. package/dist/locales/{4.3.132 → 4.3.134}/main/ko.js +1 -1
  83. package/dist/locales/{4.3.132 → 4.3.134}/main/nl.js +1 -1
  84. package/dist/locales/{4.3.132 → 4.3.134}/main/pl.js +1 -1
  85. package/dist/locales/{4.3.132 → 4.3.134}/main/pt-br.js +1 -1
  86. package/dist/locales/{4.3.132 → 4.3.134}/main/tr.js +1 -1
  87. package/dist/locales/{4.3.132 → 4.3.134}/main/zh.js +1 -1
  88. package/dist/{look-island.svelte-DErOsA9l.js → look-island.svelte-bOGvv0Rx.js} +500 -500
  89. package/dist/looks/{4.3.132 → 4.3.134}/looks.js +11 -11
  90. package/dist/{navigation-6-Uc3FBI.js → navigation-DEa62cmu.js} +4 -4
  91. package/dist/{nl-ve_OaXOQ.js → nl-DhUZIqb8.js} +2 -4
  92. package/dist/{nl-BOmYOo99.js → nl-Dhr_CNfS.js} +0 -1
  93. package/dist/{pixels-Dxa1FA4t.js → pixels-D_on_5fc.js} +1 -1
  94. package/dist/{pl-BHBBOz2I.js → pl-D4bvrh0U.js} +2 -4
  95. package/dist/{pl-DPWWFKMv.js → pl-vklyp95-.js} +0 -1
  96. package/dist/{pt-br-DLGmNm-Y.js → pt-br-BcKTBYBf.js} +0 -1
  97. package/dist/{pt-br-D30dkLzU.js → pt-br-C8yaXBBu.js} +2 -4
  98. package/dist/{serverTotals-KkOXYaTu.js → serverTotals-2i39gy_x.js} +1 -1
  99. package/dist/{showcase-state-options-DzD18XlL.js → showcase-state-options-B5GUg7wk.js} +1 -1
  100. package/dist/{to-event-card-props-PMhCTmUc.js → to-event-card-props-q8vFqxkX.js} +2 -2
  101. package/dist/{tr-BWV_tdGl.js → tr-B4gKhpQA.js} +0 -1
  102. package/dist/{tr-CFVBCuqV.js → tr-C73ecvz8.js} +3 -5
  103. package/dist/{utils-kb8Go96U.js → utils-CWXWwJ7N.js} +27 -27
  104. package/dist/venue-calendar.css +1 -1
  105. package/dist/venue-calendar.es.js +1046 -1046
  106. package/dist/venue-calendar.iife.js +38 -38
  107. package/dist/venue-calendar.umd.js +52 -52
  108. package/dist/{widget-key-context-B-rITlo1.js → widget-key-context-DxoB6BR0.js} +116 -116
  109. package/dist/{zh-pihqmu9w.js → zh-CxcIisjW.js} +0 -1
  110. package/dist/{zh-DeEOoOFR.js → zh-DWi3x7FQ.js} +1 -3
  111. package/package.json +1 -1
  112. package/dist/Checkout-Bt7Xhdfo.js +0 -1947
  113. package/dist/Success-_2EsGGvn.js +0 -958
  114. package/dist/defaults-BclZlhyX.js +0 -67
  115. package/dist/i18n-C352Rlkq.js +0 -28
  116. package/dist/locales/4.3.132/flow/de.js +0 -1
  117. package/dist/locales/4.3.132/flow/es.js +0 -1
  118. package/dist/locales/4.3.132/flow/fr.js +0 -1
  119. package/dist/locales/4.3.132/flow/id.js +0 -1
  120. package/dist/locales/4.3.132/flow/it.js +0 -1
  121. package/dist/locales/4.3.132/flow/ja.js +0 -1
  122. package/dist/locales/4.3.132/flow/ko.js +0 -1
  123. package/dist/locales/4.3.132/flow/pl.js +0 -1
  124. package/dist/locales/4.3.132/flow/pt-br.js +0 -1
  125. package/dist/locales/4.3.132/flow/zh.js +0 -1
  126. /package/dist/looks/{4.3.132 → 4.3.134}/micdrop-wordmark-BYMG6vLR.svg +0 -0
  127. /package/dist/looks/{4.3.132 → 4.3.134}/microphone-Ccv4r-kd.webp +0 -0
  128. /package/dist/looks/{4.3.132 → 4.3.134}/superuser-CZF6a5gO.webp +0 -0
  129. /package/dist/looks/{4.3.132 → 4.3.134}/treasury-DUE7lZzT.webp +0 -0
  130. /package/dist/looks/{4.3.132 → 4.3.134}/user-image-yuS4errP.svg +0 -0
@@ -1,12 +1,12 @@
1
1
  import { g as e, v as t } from "./sizing-B7ixYndz.js";
2
- import { E as n, N as r } from "./defaultLabels-B0ug1Vhr.js";
2
+ import { E as n, N as r } from "./defaultLabels-tC8zM7_V.js";
3
3
  import { n as i } from "./Button-VUB2WJ88.js";
4
4
  import { n as a, t as o } from "./normalizers-CqGXhPZo.js";
5
- import { E as s, S as c, T as l, n as u, o as d, r as f, s as p, x as ee } from "./client-BxgiVv8K.js";
6
- import * as m from "svelte/internal/client";
7
- import { getContext as te } from "svelte";
5
+ import { C as s, D as c, E as l, S as u, c as d, n as f, r as p, s as m } from "./client-SmFkruvn.js";
6
+ import * as h from "svelte/internal/client";
7
+ import { getContext as ee } from "svelte";
8
8
  //#region node_modules/@getmicdrop/svelte-components/dist/errors/classes/ApiError.js
9
- var h = class e extends i {
9
+ var g = class e extends i {
10
10
  constructor(e, t, n = {}) {
11
11
  super(e, `API_${t}`, {
12
12
  status: t,
@@ -34,55 +34,55 @@ var h = class e extends i {
34
34
  requestId: t.headers.get("x-request-id") || void 0
35
35
  });
36
36
  }
37
- }, g = [
37
+ }, _ = [
38
38
  "utmSource",
39
39
  "utmMedium",
40
40
  "utmCampaign",
41
41
  "utmContent",
42
42
  "utmTerm"
43
- ], ne = {
43
+ ], te = {
44
44
  utmSource: "utm_source",
45
45
  utmMedium: "utm_medium",
46
46
  utmCampaign: "utm_campaign",
47
47
  utmContent: "utm_content",
48
48
  utmTerm: "utm_term"
49
- }, _ = "direct";
50
- function v(e) {
49
+ }, v = "direct";
50
+ function y(e) {
51
51
  return e ? e.trim().toLowerCase().replace(/\s+/g, "_") : "";
52
52
  }
53
- function re(e) {
53
+ function ne(e) {
54
54
  let t = {};
55
- for (let n of g) t[n] = v(e[n]);
56
- return t.utmSource ||= _, t;
55
+ for (let n of _) t[n] = y(e[n]);
56
+ return t.utmSource ||= v, t;
57
57
  }
58
- function ie(e) {
58
+ function re(e) {
59
59
  let t = {};
60
- for (let n of g) t[n] = e.get(ne[n]);
61
- return re(t);
60
+ for (let n of _) t[n] = e.get(te[n]);
61
+ return ne(t);
62
62
  }
63
- function y(e) {
63
+ function b(e) {
64
64
  return !!e.utmSource && e.utmSource !== "direct";
65
65
  }
66
66
  //#endregion
67
67
  //#region src/lib/tracking/context.ts
68
- var b = null, x = null, S = {
68
+ var x = null, S = null, C = {
69
69
  search: null,
70
70
  referrer: null,
71
71
  pageUrl: null
72
72
  };
73
+ function ie(e) {
74
+ e.widgetId !== void 0 && (x = e.widgetId || null), e.venueId !== void 0 && (S = e.venueId ?? null);
75
+ }
73
76
  function ae(e) {
74
- e.widgetId !== void 0 && (b = e.widgetId || null), e.venueId !== void 0 && (x = e.venueId ?? null);
77
+ e.search !== void 0 && (C.search = e.search === null ? null : e.search instanceof URLSearchParams ? e.search.toString() : e.search), e.referrer !== void 0 && (C.referrer = e.referrer), e.pageUrl !== void 0 && (C.pageUrl = e.pageUrl);
75
78
  }
76
- function oe(e) {
77
- e.search !== void 0 && (S.search = e.search === null ? null : e.search instanceof URLSearchParams ? e.search.toString() : e.search), e.referrer !== void 0 && (S.referrer = e.referrer), e.pageUrl !== void 0 && (S.pageUrl = e.pageUrl);
79
+ function oe() {
80
+ return x;
78
81
  }
79
82
  function se() {
80
- return b;
83
+ return S;
81
84
  }
82
85
  function ce() {
83
- return x;
84
- }
85
- function le() {
86
86
  if (typeof window > "u") return !0;
87
87
  try {
88
88
  return window.self === window.top;
@@ -90,63 +90,63 @@ function le() {
90
90
  return !1;
91
91
  }
92
92
  }
93
- function C() {
94
- let e = typeof window < "u", t = le(), n = S.search ?? (e ? window.location.search : ""), r = S.referrer ?? (typeof document < "u" ? document.referrer : "") ?? "", i = S.pageUrl ?? (e && t ? window.location.href : "");
93
+ function w() {
94
+ let e = typeof window < "u", t = ce(), n = C.search ?? (e ? window.location.search : ""), r = C.referrer ?? (typeof document < "u" ? document.referrer : "") ?? "", i = C.pageUrl ?? (e && t ? window.location.href : "");
95
95
  return {
96
- utm: ie(new URLSearchParams(n)),
96
+ utm: re(new URLSearchParams(n)),
97
97
  referrer: r || "",
98
98
  pageUrl: i || ""
99
99
  };
100
100
  }
101
- function ue() {
101
+ function le() {
102
102
  if (typeof navigator > "u") return "desktop";
103
103
  let e = navigator.userAgent.toLowerCase();
104
104
  return /ipad|tablet|playbook|silk/.test(e) ? "tablet" : /mobile|iphone|ipod|android.*mobile|windows phone|blackberry/.test(e) ? "mobile" : /android/.test(e) ? "tablet" : "desktop";
105
105
  }
106
106
  //#endregion
107
107
  //#region src/lib/tracking/consent.ts
108
- var w = null, T = !1, E = !1, D = !1;
109
- function de(e) {
110
- w = e;
111
- }
112
- function fe(e) {
108
+ var T = null, E = !1, D = !1, O = !1;
109
+ function ue(e) {
113
110
  T = e;
114
111
  }
115
- function pe(e) {
116
- D = e;
112
+ function de(e) {
113
+ E = e;
117
114
  }
118
- function O() {
119
- return D;
115
+ function fe(e) {
116
+ O = e;
120
117
  }
121
118
  function k() {
122
- return typeof window < "u" && typeof window.__tcfapi == "function";
119
+ return O;
123
120
  }
124
121
  function A() {
122
+ return typeof window < "u" && typeof window.__tcfapi == "function";
123
+ }
124
+ function j() {
125
125
  return typeof navigator < "u" && navigator.globalPrivacyControl === !0;
126
126
  }
127
- function me() {
128
- return D ? !0 : w === null ? k() || A() : w;
127
+ function pe() {
128
+ return O ? !0 : T === null ? A() || j() : T;
129
129
  }
130
- function j() {
131
- return D ? !1 : !me() || T;
130
+ function M() {
131
+ return O ? !1 : !pe() || E;
132
132
  }
133
- function he() {
134
- return D ? !1 : T ? !0 : w === !1 && !A();
133
+ function me() {
134
+ return O ? !1 : E ? !0 : T === !1 && !j();
135
135
  }
136
- function ge() {
137
- if (E || !k()) return;
138
- E = !0;
136
+ function he() {
137
+ if (D || !A()) return;
138
+ D = !0;
139
139
  let e = window.__tcfapi;
140
140
  try {
141
141
  e("addEventListener", 2, (e, t) => {
142
142
  if (!(!t || !e)) {
143
143
  if (e.gdprApplies === !1) {
144
- A() || (T = !0);
144
+ j() || (E = !0);
145
145
  return;
146
146
  }
147
147
  if (e.eventStatus === "tcloaded" || e.eventStatus === "useractioncomplete") {
148
148
  let t = e.purpose?.consents;
149
- T = !!t && Object.values(t).some(Boolean);
149
+ E = !!t && Object.values(t).some(Boolean);
150
150
  }
151
151
  }
152
152
  });
@@ -154,11 +154,11 @@ function ge() {
154
154
  }
155
155
  //#endregion
156
156
  //#region src/lib/tracking/identity.ts
157
- var M = "micdrop_session_id", N = "micdrop_visitor_id", _e = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
158
- function P(e) {
159
- return typeof e == "string" && _e.test(e);
157
+ var N = "micdrop_session_id", P = "micdrop_visitor_id", ge = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
158
+ function F(e) {
159
+ return typeof e == "string" && ge.test(e);
160
160
  }
161
- function F() {
161
+ function I() {
162
162
  let e = typeof crypto < "u" ? crypto : void 0;
163
163
  if (e?.randomUUID) return e.randomUUID();
164
164
  let t = /* @__PURE__ */ new Uint8Array(16);
@@ -169,20 +169,20 @@ function F() {
169
169
  for (let e = 0; e < 16; e++) n.push(t[e].toString(16).padStart(2, "0"));
170
170
  return `${n[0]}${n[1]}${n[2]}${n[3]}-${n[4]}${n[5]}-${n[6]}${n[7]}-${n[8]}${n[9]}-${n[10]}${n[11]}${n[12]}${n[13]}${n[14]}${n[15]}`;
171
171
  }
172
- function I() {
173
- let e = c(M);
174
- return e || (e = F(), s(M, e)), e;
172
+ function L() {
173
+ let e = s(N);
174
+ return e || (e = I(), c(N, e)), e;
175
175
  }
176
- function ve(e) {
177
- let t = ee(N);
178
- if (P(t)) return {
176
+ function _e(e) {
177
+ let t = u(P);
178
+ if (F(t)) return {
179
179
  id: t,
180
180
  createdAt: e,
181
181
  migrated: !0
182
182
  };
183
183
  if (t && typeof t == "object") {
184
184
  let { id: n, createdAt: r } = t;
185
- if (!P(n)) return null;
185
+ if (!F(n)) return null;
186
186
  let i = typeof r == "number" && Number.isFinite(r), a = i ? Math.min(r, e) : e;
187
187
  return {
188
188
  id: n,
@@ -192,29 +192,29 @@ function ve(e) {
192
192
  }
193
193
  return null;
194
194
  }
195
- function L() {
196
- if (!j()) return null;
197
- let e = Date.now(), t = ve(e);
195
+ function R() {
196
+ if (!M()) return null;
197
+ let e = Date.now(), t = _e(e);
198
198
  if (t && e - t.createdAt < 34128e6) {
199
199
  if (t.migrated) {
200
200
  let e = {
201
201
  id: t.id,
202
202
  createdAt: t.createdAt
203
203
  };
204
- l(N, e);
204
+ l(P, e);
205
205
  }
206
206
  return t.id;
207
207
  }
208
- let n = F();
209
- return l(N, {
208
+ let n = I();
209
+ return l(P, {
210
210
  id: n,
211
211
  createdAt: e
212
212
  }), n;
213
213
  }
214
214
  //#endregion
215
215
  //#region src/lib/tracking/attribution-store.ts
216
- var R = "micdrop_attribution";
217
- function ye(e, t) {
216
+ var z = "micdrop_attribution";
217
+ function ve(e, t) {
218
218
  if (!e || !t) return !1;
219
219
  try {
220
220
  let n = new URL(e).host, r = new URL(t).host;
@@ -223,26 +223,26 @@ function ye(e, t) {
223
223
  return !1;
224
224
  }
225
225
  }
226
- function be(e) {
227
- return y(e.utm) || ye(e.referrer, e.pageUrl);
226
+ function ye(e) {
227
+ return b(e.utm) || ve(e.referrer, e.pageUrl);
228
228
  }
229
- function z() {
230
- let e = c(R);
229
+ function B() {
230
+ let e = s(z);
231
231
  return !e || !e.utm || typeof e.utm.utmSource != "string" ? null : e;
232
232
  }
233
- function xe(e = C()) {
234
- let t = be(e), n = z();
235
- !t && n || s(R, {
233
+ function be(e = w()) {
234
+ let t = ye(e), n = B();
235
+ !t && n || c(z, {
236
236
  utm: e.utm,
237
237
  referrer: e.referrer,
238
238
  marketing: t
239
239
  });
240
240
  }
241
- function B() {
242
- let e = z() ?? C();
241
+ function V() {
242
+ let e = B() ?? w();
243
243
  return {
244
- sessionId: I(),
245
- visitorId: L(),
244
+ sessionId: L(),
245
+ visitorId: R(),
246
246
  utmSource: e.utm.utmSource,
247
247
  utmMedium: e.utm.utmMedium,
248
248
  utmCampaign: e.utm.utmCampaign,
@@ -253,7 +253,7 @@ function B() {
253
253
  }
254
254
  //#endregion
255
255
  //#region src/lib/tracking/beacon.ts
256
- var Se = e("tracking"), Ce = /* @__PURE__ */ new Set([
256
+ var xe = e("tracking"), Se = /* @__PURE__ */ new Set([
257
257
  "chunk_load_error",
258
258
  "type_error",
259
259
  "reference_error",
@@ -264,19 +264,19 @@ var Se = e("tracking"), Ce = /* @__PURE__ */ new Set([
264
264
  "abort_error",
265
265
  "not_supported_error",
266
266
  "error"
267
- ]), V = "other";
268
- function we(e) {
267
+ ]), H = "other";
268
+ function Ce(e) {
269
269
  try {
270
270
  let t = e instanceof Error || e && typeof e == "object" && "name" in e ? String(e.name ?? "") : "", n = e && typeof e == "object" && "message" in e ? String(e.message ?? "") : "";
271
271
  if (t === "ChunkLoadError" || /dynamically imported module/i.test(n)) return "chunk_load_error";
272
272
  let r = t.replace(/([a-z0-9])([A-Z])/g, "$1_$2").toLowerCase().replace(/[^a-z0-9_]/g, "");
273
- return Ce.has(r) ? r : V;
273
+ return Se.has(r) ? r : H;
274
274
  } catch {
275
- return V;
275
+ return H;
276
276
  }
277
277
  }
278
- var Te = /* @__PURE__ */ new Set(["add_to_cart", "purchase"]), H = "micdrop_tracked_beacons", Ee = 300;
279
- function U(e, t, n, r, i, a, o, s = "") {
278
+ var we = /* @__PURE__ */ new Set(["add_to_cart", "purchase"]), U = "micdrop_tracked_beacons", Te = 300;
279
+ function Ee(e, t, n, r, i, a, o, s = "") {
280
280
  let c = n || `url:${o}`, l = [
281
281
  e,
282
282
  t ?? "",
@@ -293,18 +293,18 @@ function W(e) {
293
293
  return Number.isFinite(t) ? t : null;
294
294
  }
295
295
  function De(e) {
296
- let t = c(H, []) ?? [];
296
+ let t = s(U, []) ?? [];
297
297
  if (t.includes(e)) return !0;
298
298
  let n = [...t, e];
299
- return s(H, n.length > Ee ? n.slice(-300) : n), !1;
299
+ return c(U, n.length > Te ? n.slice(-300) : n), !1;
300
300
  }
301
301
  async function G(e, { eventId: t = null, widgetId: n, venueId: r, error: i, cartId: a } = {}) {
302
- if (typeof window > "u" || O()) return;
303
- let o = C();
304
- if (xe(o), e === "link_click" && !y(o.utm)) return;
305
- let s = I(), c = n === void 0 ? se() : n;
306
- if (!(Te.has(e) || e === "checkout_started" && !a) && De(U(e, t, c, o.utm.utmSource, o.utm.utmCampaign, s, o.pageUrl, i ? `${i.stage}:${i.errName}` : a ? `cart:${a}` : ""))) return;
307
- let l = r === void 0 ? ce() : r, u = j(), d = {
302
+ if (typeof window > "u" || k()) return;
303
+ let o = w();
304
+ if (be(o), e === "link_click" && !b(o.utm)) return;
305
+ let s = L(), c = n === void 0 ? oe() : n;
306
+ if (!(we.has(e) || e === "checkout_started" && !a) && De(Ee(e, t, c, o.utm.utmSource, o.utm.utmCampaign, s, o.pageUrl, i ? `${i.stage}:${i.errName}` : a ? `cart:${a}` : ""))) return;
307
+ let l = r === void 0 ? se() : r, u = M(), f = {
308
308
  eventType: e,
309
309
  eventId: W(t),
310
310
  venueId: W(l),
@@ -315,8 +315,8 @@ async function G(e, { eventId: t = null, widgetId: n, venueId: r, error: i, cart
315
315
  utmContent: o.utm.utmContent,
316
316
  utmTerm: o.utm.utmTerm,
317
317
  sessionId: s,
318
- visitorId: L(),
319
- deviceType: ue(),
318
+ visitorId: R(),
319
+ deviceType: le(),
320
320
  referrer: u ? o.referrer : "",
321
321
  pageUrl: u ? o.pageUrl : "",
322
322
  ...i ? {
@@ -325,14 +325,14 @@ async function G(e, { eventId: t = null, widgetId: n, venueId: r, error: i, cart
325
325
  } : {}
326
326
  };
327
327
  try {
328
- await fetch(`${p()}/track/pageview`, {
328
+ await fetch(`${d()}/track/pageview`, {
329
329
  method: "POST",
330
330
  headers: { "Content-Type": "application/json" },
331
- body: JSON.stringify(d),
331
+ body: JSON.stringify(f),
332
332
  keepalive: !0
333
333
  });
334
334
  } catch (t) {
335
- Se.error(`Beacon '${e}' failed:`, t);
335
+ xe.error(`Beacon '${e}' failed:`, t);
336
336
  }
337
337
  }
338
338
  var Oe = (e, t) => G("link_click", {
@@ -372,7 +372,7 @@ function Ie(e, t, n, r) {
372
372
  widgetId: n,
373
373
  venueId: r,
374
374
  error: {
375
- errName: we(e),
375
+ errName: Ce(e),
376
376
  stage: t
377
377
  }
378
378
  }).catch(() => {});
@@ -410,12 +410,12 @@ function ze(e) {
410
410
  }
411
411
  //#endregion
412
412
  //#region src/lib/i18n/localeLoader.svelte.js
413
- var K = m.state(0);
413
+ var K = h.state(0);
414
414
  function Be() {
415
- return m.get(K);
415
+ return h.get(K);
416
416
  }
417
417
  function Ve() {
418
- m.set(K, m.get(K) + 1);
418
+ h.set(K, h.get(K) + 1);
419
419
  }
420
420
  //#endregion
421
421
  //#region src/lib/i18n/createI18n.js
@@ -564,7 +564,7 @@ function X(e) {
564
564
  var Z = e("VC");
565
565
  async function Q(e, t, n, r, i, a) {
566
566
  let o = X(i);
567
- return f(`${d()}/cart/${e}/payment-intent`, {
567
+ return p(`${m()}/cart/${e}/payment-intent`, {
568
568
  productQuantities: t,
569
569
  ...n && Object.keys(n).length > 0 ? { donationAmounts: n } : {},
570
570
  ...r ? {
@@ -575,15 +575,15 @@ async function Q(e, t, n, r, i, a) {
575
575
  questionAnswer: r.questionAnswer ?? "",
576
576
  mailingList: r.mailingList ?? !1
577
577
  } : {},
578
- attribution: B(),
578
+ attribution: V(),
579
579
  ...o ? { locale: o } : {}
580
580
  }, { widgetKey: a?.widgetKey });
581
581
  }
582
582
  async function Ue(e, t, n, r, i, a) {
583
583
  try {
584
584
  let o = await Q(e, t, n, r, i, a);
585
- if (!o.success) throw Z.error("Payment intent creation failed:", o.error), new h(o.error || "Failed to create payment intent", o.statusCode ?? 0, {
586
- endpoint: `${d()}/cart/${e}/payment-intent`,
585
+ if (!o.success) throw Z.error("Payment intent creation failed:", o.error), new g(o.error || "Failed to create payment intent", o.statusCode ?? 0, {
586
+ endpoint: `${m()}/cart/${e}/payment-intent`,
587
587
  method: "POST"
588
588
  });
589
589
  return Z.debug("Payment intent created:", o.data), o.data;
@@ -607,7 +607,7 @@ async function Ge(e, t, n, r, i, a) {
607
607
  async function Ke(e, t, n) {
608
608
  if (!e) return null;
609
609
  try {
610
- let r = await u(`${d()}/cart/${e}`, { widgetKey: n?.widgetKey });
610
+ let r = await f(`${m()}/cart/${e}`, { widgetKey: n?.widgetKey });
611
611
  if (!r.success) return null;
612
612
  let { uuid: i, eventID: a, status: o, expiresAt: s, reservations: c, giftCards: l } = ze(r.data);
613
613
  return o !== "reserved" && o !== "active" || t !== void 0 && a !== Number(t) ? null : {
@@ -634,7 +634,7 @@ async function qe(e, t, n) {
634
634
  let n = typeof e == "number" ? e : parseInt(e, 10);
635
635
  !Number.isNaN(n) && t > 0 && (i[n] = t);
636
636
  }
637
- let a = await fetch(`${d()}/cart/${e}`, {
637
+ let a = await fetch(`${m()}/cart/${e}`, {
638
638
  method: "PUT",
639
639
  headers: { "Content-Type": "application/json" },
640
640
  body: JSON.stringify({
@@ -653,7 +653,7 @@ async function qe(e, t, n) {
653
653
  }
654
654
  async function Je(e, t = "", n) {
655
655
  try {
656
- let r = await f(`${p()}/orders/${e}/refund`, { message: t }, { widgetKey: n?.widgetKey });
656
+ let r = await p(`${d()}/orders/${e}/refund`, { message: t }, { widgetKey: n?.widgetKey });
657
657
  return r.success ? { success: !0 } : (Z.error("Refund request failed:", r.error), {
658
658
  success: !1,
659
659
  error: r.error || "Failed to submit refund request"
@@ -668,9 +668,9 @@ async function Je(e, t = "", n) {
668
668
  async function Ye(e, t, n, r) {
669
669
  let i = X(n);
670
670
  try {
671
- let n = await f(`${d()}/validatePaymentIntent/${e}`, {
671
+ let n = await p(`${m()}/validatePaymentIntent/${e}`, {
672
672
  ...t,
673
- attribution: B(),
673
+ attribution: V(),
674
674
  ...i ? { locale: i } : {}
675
675
  }, { widgetKey: r?.widgetKey });
676
676
  if (!n.success) return Z.error("Payment validation failed:", n.error), {
@@ -695,7 +695,7 @@ async function Ye(e, t, n, r) {
695
695
  }
696
696
  async function Xe(e, t) {
697
697
  try {
698
- let n = await f(`${p()}/orders/extend-session`, { orderUuid: e }, { widgetKey: t?.widgetKey });
698
+ let n = await p(`${d()}/orders/extend-session`, { orderUuid: e }, { widgetKey: t?.widgetKey });
699
699
  if (!n.success) return {
700
700
  success: !1,
701
701
  error: n.error || "Failed to extend session",
@@ -716,7 +716,7 @@ async function Xe(e, t) {
716
716
  }
717
717
  async function Ze(e, t) {
718
718
  try {
719
- let n = await u(`${p()}/orders/session/${e}`, { widgetKey: t?.widgetKey });
719
+ let n = await f(`${d()}/orders/session/${e}`, { widgetKey: t?.widgetKey });
720
720
  if (!n.success) return {
721
721
  error: n.error || "No active session found",
722
722
  notFound: n.statusCode === 404
@@ -738,7 +738,7 @@ async function Ze(e, t) {
738
738
  //#region src/lib/widget-key-context.ts
739
739
  var $ = Symbol("micdrop-widget-key");
740
740
  function Qe() {
741
- return te($) || void 0;
741
+ return ee($) || void 0;
742
742
  }
743
743
  //#endregion
744
- export { ge as A, B as C, fe as D, O as E, h as F, ae as M, _ as N, de as O, v as P, ke as S, he as T, Oe as _, Ke as a, Fe as b, Ge as c, X as d, He as f, je as g, Ne as h, Xe as i, oe as j, pe as k, qe as l, Me as m, Qe as n, Ze as o, q as p, Ue as r, Je as s, $ as t, Ye as u, Ae as v, L as w, Ie as x, Pe as y };
744
+ export { he as A, V as C, de as D, k as E, g as F, ie as M, v as N, ue as O, y as P, ke as S, me as T, Oe as _, Ke as a, Fe as b, Ge as c, X as d, He as f, je as g, Ne as h, Xe as i, ae as j, fe as k, qe as l, Me as m, Qe as n, Ze as o, q as p, Ue as r, Je as s, $ as t, Ye as u, Ae as v, R as w, Ie as x, Pe as y };
@@ -507,7 +507,6 @@ var e = {
507
507
  ticketCountOfTotal: "第 {current} 张,共 {total} 张",
508
508
  addToAppleWallet: "添加到 Apple Wallet",
509
509
  addToGoogleWallet: "添加到 Google Wallet",
510
- walletPassesComingSoon: "电子钱包票券即将推出。您的门票就在这里 — 可以截图或下载 PDF",
511
510
  downloadPdf: "下载 PDF",
512
511
  addToCalendarPrefix: "添加到日历:",
513
512
  getDirections: "查看路线",
@@ -90,7 +90,7 @@ var e = {
90
90
  cvc: "CVC",
91
91
  cvcPlaceholder: "123",
92
92
  keepMeUpdated: "接收此活动及同类活动的最新动态",
93
- agreeToTerms: "我同意",
93
+ termsNotice: "提交订单即表示您同意{terms}和{privacy}。",
94
94
  termsAndConditionsLink: "条款与条件",
95
95
  goBack: "返回",
96
96
  goBackToEventDetails: "返回活动详情",
@@ -107,7 +107,6 @@ var e = {
107
107
  cardNumberRequired: "请输入卡号",
108
108
  expiryRequired: "请输入有效期",
109
109
  cvcRequired: "请输入 CVC",
110
- mustAgreeTerms: "您必须同意服务条款",
111
110
  placeOrder: "提交订单",
112
111
  completeOrder: "完成订单",
113
112
  placingOrder: "正在提交订单...",
@@ -160,7 +159,6 @@ var e = {
160
159
  copyLink: "复制此链接:",
161
160
  addToAppleWallet: "添加到 Apple Wallet",
162
161
  saveToGoogleWallet: "保存至 Google Wallet",
163
- walletComingSoon: "Wallet 票卡功能即将推出。您的门票已确认,请查收电子邮箱",
164
162
  reservationHeld: "已为您保留门票",
165
163
  completeSoon: "请尽快完成支付",
166
164
  sessionExpiringSoon: "订单即将超时",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@getmicdrop/venue-calendar",
3
3
  "_version_comment": "4.1.55 was the last PUBLISHED version, and the tree carried 36 commits npm's 4.1.55 does not have — including the gate-password security fix and four money fixes. A filename must never reuse a version npm has taken (jsDelivr/unpkg cache the FIRST bytes they see under `@4.1.55` forever, so republishing that number ships the old widget to every venue that pinned it). Bumped to 4.2.0 here, BEFORE anything is built for publish. `npm run release:preflight` refuses to proceed when this number already exists in the registry.",
4
- "version": "4.3.132",
4
+ "version": "4.3.134",
5
5
  "description": "A customizable Svelte calendar component for displaying comedy events",
6
6
  "type": "module",
7
7
  "types": "./dist/types/index.d.ts",