@getmicdrop/venue-calendar 4.2.3 → 4.2.5

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 (102) hide show
  1. package/dist/{ArrowLeftIcon-CxZXP_IT.js → ArrowLeftIcon-BxKUPFOE.js} +1 -1
  2. package/dist/{Badge-Bv_MT-Vt.js → Badge-M6qZyfTF.js} +9 -10
  3. package/dist/BlockPlaceholder-CLdS2Y-c.js +62 -0
  4. package/dist/{Calendar-BKefLfIt.js → Calendar-DwNhbEQY.js} +290 -292
  5. package/dist/CalendarFoundryView-BX5mT6NY.js +23561 -0
  6. package/dist/{CalendarIcon-CLGR_zlO.js → CalendarIcon-jLckZ_4N.js} +1 -1
  7. package/dist/{CartView-CHFlfWS9.js → CartView-B61KRyFq.js} +644 -651
  8. package/dist/Checkout-CoExiUba.js +1809 -0
  9. package/dist/{Checkout-C-A4t1eE.js → Checkout-DlQ2x3L6.js} +97 -97
  10. package/dist/{CheckoutTimer-d3KUbevy.js → CheckoutTimer-Cv9iQj2d.js} +5 -5
  11. package/dist/{ChevronDownIcon-YtBeSqjf.js → ChevronDownIcon-DiZxxS3e.js} +1 -1
  12. package/dist/{ClockIcon-a9tJQ5El.js → ClockIcon-BrWavNGl.js} +1 -1
  13. package/dist/{CloseIcon-DSURK5co.js → CloseIcon-Cmddp2PA.js} +1 -1
  14. package/dist/{CollectionView-BiBMllyw.js → CollectionView-DpkF55yD.js} +12 -13
  15. package/dist/Event-CzNN2jRR.js +3040 -0
  16. package/dist/{EventPage-C7K2yA4v.js → EventPage-DnKNNWk8.js} +167 -168
  17. package/dist/{Heading-Dfo3bjyn.js → Heading-B7VYbbfJ.js} +3 -4
  18. package/dist/Image-DBJAfLYe.js +81 -0
  19. package/dist/{phoneUtils-FnBDCqO0.js → Input-DsWjpYtc.js} +1132 -694
  20. package/dist/{MailIcon-DIrQpcGo.js → MailIcon-gpZMGdBK.js} +1 -1
  21. package/dist/{Modal-DrA1swbF.js → Modal-D4AUdrz8.js} +2 -2
  22. package/dist/{ModalFooter-r1NQNG9P.js → ModalFooter-8Di4-qKC.js} +57 -59
  23. package/dist/{PasswordInput-DB4qa7kS.js → PasswordInput-Buk60yEf.js} +4 -4
  24. package/dist/{ScarcityBadge-BJOm7_Ho.js → ScarcityBadge-DgrS89hq.js} +4 -4
  25. package/dist/{SeriesPage-JVmqUSax.js → SeriesPage-BCovOJ6a.js} +5 -5
  26. package/dist/{Spinner-BwiDys7C.js → Spinner-ChTN7t75.js} +3 -3
  27. package/dist/{Success-DAE6gPZM.js → Success-BRufJqwQ.js} +80 -81
  28. package/dist/{TagIcon-CrTNd8qE.js → TagIcon-C0uTQgU8.js} +1 -1
  29. package/dist/{ViewTicketsEmbed-Zx-mvP2p.js → ViewTicketsEmbed-CfagtvVL.js} +66 -67
  30. package/dist/{WarningCircleIcon-C5-op3Cy.js → WarningCircleIcon-B2hkUrvV.js} +1 -1
  31. package/dist/{WarningTriIcon-BxIQn7c2.js → WarningTriIcon-Boy4IW6-.js} +1 -1
  32. package/dist/{__SKIP_PATHS__-DyyiXBgB.js → __SKIP_PATHS__-DPK-YB-V.js} +1 -1
  33. package/dist/{href-C8WGnROy.js → allowlist-Cu2kP6jt.js} +4 -21
  34. package/dist/api/api.cjs +1 -1
  35. package/dist/api/api.mjs +182 -165
  36. package/dist/api/client.d.ts +16 -0
  37. package/dist/api/events.d.ts +21 -2
  38. package/dist/api/types.d.ts +17 -0
  39. package/dist/{browser-Um8Y6K99.js → browser-25hnscei.js} +7 -7
  40. package/dist/cancel-gqtaw6SK.js +59 -0
  41. package/dist/{colors-MuuDk6KF.js → colors-B9hMXv8l.js} +118 -108
  42. package/dist/{constants-CqrJv6nM.js → constants-DBwdjnEU.js} +77 -74
  43. package/dist/{copyToClipboard-CTS9Wtmo.js → copyToClipboard-BDa2_uNf.js} +1 -1
  44. package/dist/{createI18n-DBUVdZra.js → createI18n-08XGDh1_.js} +1 -1
  45. package/dist/{event-BrptLro8.js → event-Cp5D4ctZ.js} +1 -1
  46. package/dist/{event-transform-jFmHl0Qp.js → event-transform-BFJTgtU9.js} +4 -4
  47. package/dist/{eventStatusStream-D04pcbuu.js → eventStatusStream-SyvhRCtk.js} +6 -6
  48. package/dist/{i18n-CcJmTGJP.js → i18n-4ZGOM8hY.js} +11 -11
  49. package/dist/{labels-Q4CaHsVM.js → labels-99RC9gAv.js} +1 -1
  50. package/dist/{modalManager.svelte-qcVxl7C5.js → modalManager.svelte-BdNsCq6n.js} +2 -2
  51. package/dist/{order-totals-BImtvmoh.js → order-totals-CQ0V7Fdc.js} +13 -15
  52. package/dist/{orders-C8kt6c-E.js → orders-oRqSQXSf.js} +209 -199
  53. package/dist/{pixels-MEc7WYiV.js → pixels-DycN_8bu.js} +7 -8
  54. package/dist/{promo-DtLZRskK.js → promo-BrMcoTYh.js} +3 -3
  55. package/dist/{serverTotals-BO126TTd.js → serverTotals-CpRaEe9K.js} +1 -1
  56. package/dist/{shareCopyFeedback.svelte-Dko8NIbm.js → shareCopyFeedback.svelte-D314p5oA.js} +25 -25
  57. package/dist/{showcase-state-options-BoJxiEsg.js → showcase-state-options-B2XfybZq.js} +1 -1
  58. package/dist/timezones-Cq1mLtfM.js +4170 -0
  59. package/dist/{to-event-card-props-BAHzloEA.js → to-event-card-props-BNBWYYPo.js} +23 -24
  60. package/dist/{utils-Ts4-U13Y.js → utils-CrlClQxc.js} +30 -30
  61. package/dist/venue-calendar.css +1 -1
  62. package/dist/venue-calendar.es.js +1292 -1154
  63. package/dist/venue-calendar.iife.js +63 -64
  64. package/dist/venue-calendar.umd.js +59 -60
  65. package/package.json +220 -220
  66. package/dist/BlockPlaceholder-HZ6Coko5.js +0 -52
  67. package/dist/Button-C4uFgl7L.js +0 -2141
  68. package/dist/CalendarFoundryView-tDmFCrJ3.js +0 -22292
  69. package/dist/Checkout-CRX7dcRr.js +0 -1807
  70. package/dist/CloseOutline-qpVa62mu.js +0 -13
  71. package/dist/CropImage-B0tj2_uN.js +0 -404
  72. package/dist/Event-1ZJVzqFN.js +0 -3034
  73. package/dist/Image-B3cEndLZ.js +0 -87
  74. package/dist/Input-DkYIFK4J.js +0 -487
  75. package/dist/imageOptimizer-CB3wKJU8.js +0 -47
  76. package/dist/sortable.esm--ZtTTTPp.js +0 -1451
  77. package/dist/timezones-C5l0SSHK.js +0 -2030
  78. package/dist/z-index-B0Vk_Mp1.js +0 -27
  79. /package/dist/locales/{4.2.3 → 4.2.5}/flow/de.js +0 -0
  80. /package/dist/locales/{4.2.3 → 4.2.5}/flow/es.js +0 -0
  81. /package/dist/locales/{4.2.3 → 4.2.5}/flow/fr.js +0 -0
  82. /package/dist/locales/{4.2.3 → 4.2.5}/flow/id.js +0 -0
  83. /package/dist/locales/{4.2.3 → 4.2.5}/flow/it.js +0 -0
  84. /package/dist/locales/{4.2.3 → 4.2.5}/flow/ja.js +0 -0
  85. /package/dist/locales/{4.2.3 → 4.2.5}/flow/ko.js +0 -0
  86. /package/dist/locales/{4.2.3 → 4.2.5}/flow/nl.js +0 -0
  87. /package/dist/locales/{4.2.3 → 4.2.5}/flow/pl.js +0 -0
  88. /package/dist/locales/{4.2.3 → 4.2.5}/flow/pt-br.js +0 -0
  89. /package/dist/locales/{4.2.3 → 4.2.5}/flow/tr.js +0 -0
  90. /package/dist/locales/{4.2.3 → 4.2.5}/flow/zh.js +0 -0
  91. /package/dist/locales/{4.2.3 → 4.2.5}/main/de.js +0 -0
  92. /package/dist/locales/{4.2.3 → 4.2.5}/main/es.js +0 -0
  93. /package/dist/locales/{4.2.3 → 4.2.5}/main/fr.js +0 -0
  94. /package/dist/locales/{4.2.3 → 4.2.5}/main/id.js +0 -0
  95. /package/dist/locales/{4.2.3 → 4.2.5}/main/it.js +0 -0
  96. /package/dist/locales/{4.2.3 → 4.2.5}/main/ja.js +0 -0
  97. /package/dist/locales/{4.2.3 → 4.2.5}/main/ko.js +0 -0
  98. /package/dist/locales/{4.2.3 → 4.2.5}/main/nl.js +0 -0
  99. /package/dist/locales/{4.2.3 → 4.2.5}/main/pl.js +0 -0
  100. /package/dist/locales/{4.2.3 → 4.2.5}/main/pt-br.js +0 -0
  101. /package/dist/locales/{4.2.3 → 4.2.5}/main/tr.js +0 -0
  102. /package/dist/locales/{4.2.3 → 4.2.5}/main/zh.js +0 -0
@@ -1,7 +1,6 @@
1
- import { _ as e } from "./Button-C4uFgl7L.js";
2
- import { E as t, _ as n, m as r, r as i, y as a } from "./timezones-C5l0SSHK.js";
3
- import { a as o, i as s, r as c, u as l, y as u } from "./constants-CqrJv6nM.js";
4
- import { t as d } from "./Badge-Bv_MT-Vt.js";
1
+ import { D as e, I as t, Z as n, k as r, r as i, w as a } from "./timezones-Cq1mLtfM.js";
2
+ import { a as o, i as s, r as c, u as l, y as u } from "./constants-DBwdjnEU.js";
3
+ import { t as d } from "./Badge-M6qZyfTF.js";
5
4
  import "svelte/internal/disclose-version";
6
5
  import * as f from "svelte/internal/client";
7
6
  //#region node_modules/@getmicdrop/svelte-components/dist/primitives/BlurBackdropImage/BlurBackdropImage.svelte
@@ -144,14 +143,14 @@ function S() {
144
143
  return x += 1;
145
144
  }
146
145
  var C = f.from_html("<span class=\"event-card__badge svelte-18ndok6\"><!></span>"), w = f.from_html("<span> </span>"), T = f.from_html("<div class=\"event-card__pills flex flex-wrap gap-2 relative svelte-18ndok6\"></div>"), E = f.from_html("<p class=\"event-card__description type-body tone-secondary m-0 svelte-18ndok6\"> </p>"), D = f.from_html("<article class=\"event-card relative rounded-lg border bg-card border-border overflow-hidden flex flex-col svelte-18ndok6\"><div class=\"event-card__poster w-full aspect-video bg-muted shrink-0 overflow-hidden svelte-18ndok6\"><!></div> <div class=\"event-card__content flex flex-col flex-1 min-w-0 svelte-18ndok6\"><header class=\"event-card__header\"><h3><!> <a class=\"event-card__title-link svelte-18ndok6\" rel=\"external\"> </a></h3></header> <!> <!> <!></div></article>");
147
- function O(t, n) {
148
- f.push(n, !0);
149
- let r = f.prop(n, "layout", 3, "vertical"), a = f.prop(n, "density", 3, "standard"), o = f.prop(n, "imageUrl", 3, ""), s = f.prop(n, "placeholderImage", 3, ""), c = f.prop(n, "dateLabel", 3, ""), l = f.prop(n, "description", 3, ""), u = f.prop(n, "badge", 3, null), p = f.prop(n, "pills", 19, () => []), m = f.prop(n, "pillVariant", 3, "alternative"), h = f.prop(n, "showDescription", 3, !1), _ = f.prop(n, "hideDate", 3, !1), v = f.derived(() => b[a()]), y = `event-card-title-${S()}`, x = f.derived(() => h() && !!l() && (a() === "standard" || a() === "featured")), O = f.derived(() => !_() && a() !== "micro" && !!c());
150
- function k(e, t) {
151
- t.metaKey || t.ctrlKey || t.shiftKey || t.altKey || n.onpillclick && (t.preventDefault(), t.stopPropagation(), n.onpillclick(e));
146
+ function O(e, t) {
147
+ f.push(t, !0);
148
+ let r = f.prop(t, "layout", 3, "vertical"), a = f.prop(t, "density", 3, "standard"), o = f.prop(t, "imageUrl", 3, ""), s = f.prop(t, "placeholderImage", 3, ""), c = f.prop(t, "dateLabel", 3, ""), l = f.prop(t, "description", 3, ""), u = f.prop(t, "badge", 3, null), p = f.prop(t, "pills", 19, () => []), m = f.prop(t, "pillVariant", 3, "alternative"), h = f.prop(t, "showDescription", 3, !1), _ = f.prop(t, "hideDate", 3, !1), v = f.derived(() => b[a()]), y = `event-card-title-${S()}`, x = f.derived(() => h() && !!l() && (a() === "standard" || a() === "featured")), O = f.derived(() => !_() && a() !== "micro" && !!c());
149
+ function k(e, n) {
150
+ n.metaKey || n.ctrlKey || n.shiftKey || n.altKey || t.onpillclick && (n.preventDefault(), n.stopPropagation(), t.onpillclick(e));
152
151
  }
153
152
  function A(e) {
154
- e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || n.onclick && (e.preventDefault(), n.onclick());
153
+ e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || t.onclick && (e.preventDefault(), t.onclick());
155
154
  }
156
155
  var j = D(), M = f.child(j);
157
156
  g(f.child(M), {
@@ -185,11 +184,11 @@ function O(t, n) {
185
184
  });
186
185
  var R = f.sibling(I, 2), z = f.child(R, !0);
187
186
  f.reset(R), f.reset(F), f.reset(P);
188
- var B = f.sibling(P, 2), V = (t) => {
189
- var n = w(), r = f.child(n, !0);
190
- f.reset(n), f.template_effect(() => {
191
- f.set_class(n, 1, `event-card__date tone-secondary ${e.emphasis ?? ""}`, "svelte-18ndok6"), f.set_text(r, c());
192
- }), f.append(t, n);
187
+ var B = f.sibling(P, 2), V = (e) => {
188
+ var t = w(), r = f.child(t, !0);
189
+ f.reset(t), f.template_effect(() => {
190
+ f.set_class(t, 1, `event-card__date tone-secondary ${n.emphasis ?? ""}`, "svelte-18ndok6"), f.set_text(r, c());
191
+ }), f.append(e, t);
193
192
  };
194
193
  f.if(B, (e) => {
195
194
  f.get(O) && e(V);
@@ -233,8 +232,8 @@ function O(t, n) {
233
232
  f.if(W, (e) => {
234
233
  f.get(x) && e(G);
235
234
  }), f.reset(N), f.reset(j), f.template_effect(() => {
236
- f.set_attribute(j, "data-layout", r()), f.set_attribute(j, "data-density", a()), f.set_attribute(j, "aria-labelledby", y), f.set_class(F, 1, `event-card__title ${e.strong ?? ""} tone-primary m-0`, "svelte-18ndok6"), f.set_attribute(F, "id", y), f.set_attribute(R, "href", n.href), f.set_attribute(R, "aria-label", n.ariaLabel ?? n.title), f.set_text(z, n.title);
237
- }), f.delegated("click", R, A), f.append(t, j), f.pop();
235
+ f.set_attribute(j, "data-layout", r()), f.set_attribute(j, "data-density", a()), f.set_attribute(j, "aria-labelledby", y), f.set_class(F, 1, `event-card__title ${n.strong ?? ""} tone-primary m-0`, "svelte-18ndok6"), f.set_attribute(F, "id", y), f.set_attribute(R, "href", t.href), f.set_attribute(R, "aria-label", t.ariaLabel ?? t.title), f.set_text(z, t.title);
236
+ }), f.delegated("click", R, A), f.append(e, j), f.pop();
238
237
  }
239
238
  f.delegate(["click"]);
240
239
  //#endregion
@@ -317,8 +316,8 @@ function L(e, n) {
317
316
  break;
318
317
  case "past":
319
318
  if (e.startDateTime) {
320
- let i = a(e.endDateTime || e.startDateTime);
321
- if (i && r(i, t()) < 0) return {
319
+ let i = r(e.endDateTime || e.startDateTime);
320
+ if (i && a(i, t()) < 0) return {
322
321
  text: n?.statusPastEvent || "Past event",
323
322
  type: "past"
324
323
  };
@@ -394,12 +393,12 @@ function B(e) {
394
393
  default: return "neutral";
395
394
  }
396
395
  }
397
- function V(e) {
398
- let t = n();
399
- return e.filter((e) => {
396
+ function V(t) {
397
+ let n = e();
398
+ return t.filter((e) => {
400
399
  if (F(e.status ?? "") === "postponed") return !0;
401
- let n = o(t, e.timeZone);
402
- return e.date >= n;
400
+ let t = o(n, e.timeZone);
401
+ return e.date >= t;
403
402
  }).sort((e, t) => e.date.localeCompare(t.date));
404
403
  }
405
404
  //#endregion
@@ -1,6 +1,6 @@
1
- import { x as e } from "./Button-C4uFgl7L.js";
2
- import { D as t, G as n, O as r, T as i, U as a, V as o, j as s, q as c } from "./orders-C8kt6c-E.js";
3
- import "./event-transform-jFmHl0Qp.js";
1
+ import { tt as e } from "./timezones-Cq1mLtfM.js";
2
+ import { D as t, G as n, M as r, O as i, T as a, U as o, Y as s, q as c } from "./orders-oRqSQXSf.js";
3
+ import "./event-transform-BFJTgtU9.js";
4
4
  //#region node_modules/js-cookie/dist/js.cookie.mjs
5
5
  function l(e) {
6
6
  for (var t = 1; t < arguments.length; t++) {
@@ -79,18 +79,18 @@ function T() {
79
79
  };
80
80
  }
81
81
  function E(e) {
82
- let t = {}, r = {}, i = [], s = "", c = 0;
82
+ let t = {}, r = {}, i = [], a = "", s = 0;
83
83
  if (typeof window > "u") return {
84
84
  quantities: t,
85
85
  donationAmounts: r,
86
- promocode: s,
87
- promoDiscountAmount: c,
86
+ promocode: a,
87
+ promoDiscountAmount: s,
88
88
  tickets: i
89
89
  };
90
90
  let l = o(y(e), null);
91
91
  if (!l) {
92
92
  let t = o(b(e), null);
93
- t && (l = t, n(y(e), t), a(b(e)));
93
+ t && (l = t, c(y(e), t), n(b(e)));
94
94
  }
95
95
  if (l) return {
96
96
  quantities: l.quantities || {},
@@ -109,18 +109,18 @@ function E(e) {
109
109
  } catch (e) {
110
110
  g.warn("Failed to parse checkout tickets cookie:", e), i = [];
111
111
  }
112
- return s = m(`checkout-promocode-${e}`) || "", c = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(t).length > 0 || i.length > 0 || s) && (k({
112
+ return a = m(`checkout-promocode-${e}`) || "", s = parseFloat(m(`checkout-promo-discount-${e}`) || "0"), (Object.keys(t).length > 0 || i.length > 0 || a) && (k({
113
113
  eventID: e,
114
114
  quantities: t,
115
115
  donationAmounts: r,
116
- promocode: s,
117
- promoDiscountAmount: c,
116
+ promocode: a,
117
+ promoDiscountAmount: s,
118
118
  tickets: i
119
119
  }), D(e)), {
120
120
  quantities: t,
121
121
  donationAmounts: r,
122
- promocode: s,
123
- promoDiscountAmount: c,
122
+ promocode: a,
123
+ promoDiscountAmount: s,
124
124
  tickets: i
125
125
  };
126
126
  }
@@ -128,26 +128,26 @@ function D(e) {
128
128
  h(`checkout-quantities-${e}`), h(`checkout-tickets-${e}`), h(`checkout-promocode-${e}`), h(`checkout-promo-discount-${e}`);
129
129
  }
130
130
  function O(e) {
131
- a(y(e)), a(b(e)), D(e), h(`checkout-promo-discount-type-${e}`), h(`checkout-promo-reveal-${e}`), h(`checkout-promo-reveal-ids-${e}`), h(`checkout-promo-ticket-ids-${e}`);
131
+ n(y(e)), n(b(e)), D(e), h(`checkout-promo-discount-type-${e}`), h(`checkout-promo-reveal-${e}`), h(`checkout-promo-reveal-ids-${e}`), h(`checkout-promo-ticket-ids-${e}`);
132
132
  }
133
- function k({ eventID: e, quantities: t, donationAmounts: r, promocode: i, promoDiscountAmount: a, tickets: o }) {
133
+ function k({ eventID: e, quantities: t, donationAmounts: n, promocode: r, promoDiscountAmount: i, tickets: a }) {
134
134
  if (typeof window > "u") return;
135
- let s = (o || []).map((e) => ({
135
+ let o = (a || []).map((e) => ({
136
136
  ID: e.ID,
137
137
  name: e.name,
138
138
  price: e.price,
139
139
  type: e.type,
140
140
  visibility: e.visibility,
141
141
  salesChannel: e.salesChannel
142
- })), c = {
142
+ })), s = {
143
143
  quantities: t || {},
144
- donationAmounts: r || {},
145
- promocode: i || "",
146
- promoDiscountAmount: a || 0,
147
- tickets: s,
144
+ donationAmounts: n || {},
145
+ promocode: r || "",
146
+ promoDiscountAmount: i || 0,
147
+ tickets: o,
148
148
  updatedAt: Date.now()
149
149
  };
150
- n(y(e), c);
150
+ c(y(e), s);
151
151
  }
152
152
  function A(e) {
153
153
  if (!e) return null;
@@ -156,13 +156,13 @@ function A(e) {
156
156
  let r = o(S(e), null);
157
157
  if (r == null) return null;
158
158
  let i = N(r);
159
- return i != null && (n(x(e), i), a(S(e))), i;
159
+ return i != null && (c(x(e), i), n(S(e))), i;
160
160
  }
161
161
  function j(e, t) {
162
- !e || !Number.isFinite(t) || n(x(e), t);
162
+ !e || !Number.isFinite(t) || c(x(e), t);
163
163
  }
164
164
  function M(e) {
165
- e && (a(x(e)), a(S(e)));
165
+ e && (n(x(e)), n(S(e)));
166
166
  }
167
167
  function N(e) {
168
168
  let t = typeof e == "number" ? e : parseInt(e, 10);
@@ -197,7 +197,7 @@ async function R() {
197
197
  async function z(e) {
198
198
  try {
199
199
  let n = await t(`/venues/${e}`);
200
- if (!n.success) throw new c(n.error ?? `API error: ${n.statusCode}`, n.statusCode ?? 0, {
200
+ if (!n.success) throw new s(n.error ?? `API error: ${n.statusCode}`, n.statusCode ?? 0, {
201
201
  endpoint: `/venues/${e}`,
202
202
  method: "GET"
203
203
  });
@@ -208,13 +208,13 @@ async function z(e) {
208
208
  }
209
209
  async function B(e = {}) {
210
210
  try {
211
- let t = await R(), { eventID: n, quantities: i, donationAmounts: a, ...o } = e, s = i ? Object.fromEntries(Object.entries(i).map(([e, t]) => [parseInt(e, 10), t])) : {}, c = a ? Object.fromEntries(Object.entries(a).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])) : void 0, l = {
211
+ let t = await R(), { eventID: n, quantities: r, donationAmounts: a, ...o } = e, s = r ? Object.fromEntries(Object.entries(r).map(([e, t]) => [parseInt(e, 10), t])) : {}, c = a ? Object.fromEntries(Object.entries(a).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])) : void 0, l = {
212
212
  purchaserIP: t,
213
213
  eventID: n ? parseInt(String(n), 10) : void 0,
214
214
  quantities: s,
215
215
  ...c && Object.keys(c).length > 0 ? { donationAmounts: c } : {},
216
216
  ...o
217
- }, u = await r("/orders/create", l), d = u.data ?? {};
217
+ }, u = await i("/orders/create", l), d = u.data ?? {};
218
218
  if (!u.success || d.error) {
219
219
  let e = L(d.error) || (typeof d.message == "string" ? d.message : "") || u.error || "Order creation failed", t = e.toLowerCase();
220
220
  return {
@@ -243,7 +243,7 @@ async function V(e) {
243
243
  let n = await t(`/orders/${e}`);
244
244
  if (!n.success) {
245
245
  let t = n.error ?? `Failed to fetch order (${n.statusCode})`;
246
- throw I.error("getOrder error response:", t), new c(t, n.statusCode ?? 0, {
246
+ throw I.error("getOrder error response:", t), new s(t, n.statusCode ?? 0, {
247
247
  endpoint: `/orders/${e}`,
248
248
  method: "GET"
249
249
  });
@@ -257,9 +257,9 @@ async function V(e) {
257
257
  //#region src/lib/utils/utm.ts
258
258
  var H = e("utm");
259
259
  async function U(e) {
260
- let t = new URLSearchParams(window.location.search), n = i(t.get("utm_source")) || "direct";
260
+ let t = new URLSearchParams(window.location.search), n = a(t.get("utm_source")) || "direct";
261
261
  try {
262
- await fetch(`${s()}/utm/${e}/${encodeURIComponent(n)}`);
262
+ await fetch(`${r()}/utm/${e}/${encodeURIComponent(n)}`);
263
263
  } catch (e) {
264
264
  H.error("UTM tracking failed:", e);
265
265
  }