@getmicdrop/venue-calendar 4.2.2 → 4.2.3

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 (98) hide show
  1. package/dist/{ArrowLeftIcon-DQ-h5PcH.js → ArrowLeftIcon-CxZXP_IT.js} +1 -1
  2. package/dist/{Badge-M6qZyfTF.js → Badge-Bv_MT-Vt.js} +10 -9
  3. package/dist/BlockPlaceholder-HZ6Coko5.js +52 -0
  4. package/dist/Button-C4uFgl7L.js +2141 -0
  5. package/dist/{Calendar-BX22svpz.js → Calendar-BKefLfIt.js} +292 -290
  6. package/dist/CalendarFoundryView-tDmFCrJ3.js +22292 -0
  7. package/dist/{CalendarIcon-DR197Ioz.js → CalendarIcon-CLGR_zlO.js} +1 -1
  8. package/dist/{CartView-B2VtVvZM.js → CartView-CHFlfWS9.js} +651 -644
  9. package/dist/{Checkout-BTqfjvDp.js → Checkout-C-A4t1eE.js} +92 -91
  10. package/dist/Checkout-CRX7dcRr.js +1807 -0
  11. package/dist/{CheckoutTimer-Cng5tcGO.js → CheckoutTimer-d3KUbevy.js} +5 -5
  12. package/dist/{ChevronDownIcon-C_RiK-BW.js → ChevronDownIcon-YtBeSqjf.js} +1 -1
  13. package/dist/{ClockIcon-BOJENuPq.js → ClockIcon-a9tJQ5El.js} +1 -1
  14. package/dist/{CloseIcon-Rc7tpX2a.js → CloseIcon-DSURK5co.js} +1 -1
  15. package/dist/CloseOutline-qpVa62mu.js +13 -0
  16. package/dist/{CollectionView-A1zP8yz5.js → CollectionView-BiBMllyw.js} +13 -12
  17. package/dist/CropImage-B0tj2_uN.js +404 -0
  18. package/dist/Event-1ZJVzqFN.js +3034 -0
  19. package/dist/{EventPage-hxrPKPhm.js → EventPage-C7K2yA4v.js} +168 -167
  20. package/dist/{Heading-B7VYbbfJ.js → Heading-Dfo3bjyn.js} +4 -3
  21. package/dist/Image-B3cEndLZ.js +87 -0
  22. package/dist/Input-DkYIFK4J.js +487 -0
  23. package/dist/{MailIcon-rxvK4Wga.js → MailIcon-DIrQpcGo.js} +1 -1
  24. package/dist/{Modal-BVD2O8hd.js → Modal-DrA1swbF.js} +2 -2
  25. package/dist/{ModalFooter-CfboEe1M.js → ModalFooter-r1NQNG9P.js} +59 -57
  26. package/dist/{PasswordInput-BAlq2j97.js → PasswordInput-DB4qa7kS.js} +4 -4
  27. package/dist/{ScarcityBadge-h7ygRD_C.js → ScarcityBadge-BJOm7_Ho.js} +4 -4
  28. package/dist/{SeriesPage-D-cwUNZM.js → SeriesPage-JVmqUSax.js} +5 -5
  29. package/dist/{Spinner-ChTN7t75.js → Spinner-BwiDys7C.js} +3 -3
  30. package/dist/{Success-CIAX5zmz.js → Success-DAE6gPZM.js} +77 -76
  31. package/dist/{TagIcon-V0qMu9wS.js → TagIcon-CrTNd8qE.js} +1 -1
  32. package/dist/{ViewTicketsEmbed-By-IcUJZ.js → ViewTicketsEmbed-Zx-mvP2p.js} +60 -59
  33. package/dist/{WarningCircleIcon-D32h6VDr.js → WarningCircleIcon-C5-op3Cy.js} +1 -1
  34. package/dist/{WarningTriIcon-BPDrCiKU.js → WarningTriIcon-BxIQn7c2.js} +1 -1
  35. package/dist/{__SKIP_PATHS__-DirqE5Xe.js → __SKIP_PATHS__-DyyiXBgB.js} +1 -1
  36. package/dist/api/types.d.ts +528 -528
  37. package/dist/{browser-25hnscei.js → browser-Um8Y6K99.js} +7 -7
  38. package/dist/{colors-5ifWyP6H.js → colors-MuuDk6KF.js} +30 -29
  39. package/dist/{constants-Dcj3kgZE.js → constants-CqrJv6nM.js} +73 -73
  40. package/dist/{copyToClipboard-CNxFW3ni.js → copyToClipboard-CTS9Wtmo.js} +1 -1
  41. package/dist/{createI18n-08XGDh1_.js → createI18n-DBUVdZra.js} +1 -1
  42. package/dist/{event-Cp5D4ctZ.js → event-BrptLro8.js} +1 -1
  43. package/dist/{event-transform-DSuEpMxr.js → event-transform-jFmHl0Qp.js} +4 -4
  44. package/dist/{eventStatusStream-CIZVH5Lp.js → eventStatusStream-D04pcbuu.js} +2 -2
  45. package/dist/{allowlist-BiUmz2AF.js → href-C8WGnROy.js} +21 -4
  46. package/dist/{i18n-CEeBd5Hi.js → i18n-CcJmTGJP.js} +11 -11
  47. package/dist/imageOptimizer-CB3wKJU8.js +47 -0
  48. package/dist/{labels-CtyfffZI.js → labels-Q4CaHsVM.js} +1 -1
  49. package/dist/{modalManager.svelte-BH-QJm9M.js → modalManager.svelte-qcVxl7C5.js} +2 -2
  50. package/dist/{order-totals-hcdvbJvw.js → order-totals-BImtvmoh.js} +15 -13
  51. package/dist/{orders-tzTe2hNM.js → orders-C8kt6c-E.js} +20 -19
  52. package/dist/{Input-W-QE9nWi.js → phoneUtils-FnBDCqO0.js} +694 -1132
  53. package/dist/{pixels-7kl8Fcjl.js → pixels-MEc7WYiV.js} +8 -7
  54. package/dist/{promo-BrMcoTYh.js → promo-DtLZRskK.js} +3 -3
  55. package/dist/{serverTotals-CpRaEe9K.js → serverTotals-BO126TTd.js} +1 -1
  56. package/dist/{shareCopyFeedback.svelte-DsyhrfiP.js → shareCopyFeedback.svelte-Dko8NIbm.js} +25 -25
  57. package/dist/{showcase-state-options-B2XfybZq.js → showcase-state-options-BoJxiEsg.js} +1 -1
  58. package/dist/sortable.esm--ZtTTTPp.js +1451 -0
  59. package/dist/timezones-C5l0SSHK.js +2030 -0
  60. package/dist/{to-event-card-props-VPne8W4I.js → to-event-card-props-BAHzloEA.js} +24 -23
  61. package/dist/{utils-DJVlBMbw.js → utils-Ts4-U13Y.js} +3 -3
  62. package/dist/venue-calendar.css +1 -1
  63. package/dist/venue-calendar.es.js +200 -199
  64. package/dist/venue-calendar.iife.js +63 -62
  65. package/dist/venue-calendar.umd.js +60 -59
  66. package/dist/z-index-B0Vk_Mp1.js +27 -0
  67. package/package.json +220 -220
  68. package/dist/BlockPlaceholder-IOcqxTx2.js +0 -62
  69. package/dist/CalendarFoundryView-Ct39xn0Q.js +0 -23561
  70. package/dist/Checkout-CXcjQfbc.js +0 -1805
  71. package/dist/Event-C_0lUZvV.js +0 -3040
  72. package/dist/Image-DBJAfLYe.js +0 -81
  73. package/dist/cancel-Cq2Q8qW7.js +0 -59
  74. package/dist/timezones-Cq1mLtfM.js +0 -4170
  75. /package/dist/locales/{4.2.2 → 4.2.3}/flow/de.js +0 -0
  76. /package/dist/locales/{4.2.2 → 4.2.3}/flow/es.js +0 -0
  77. /package/dist/locales/{4.2.2 → 4.2.3}/flow/fr.js +0 -0
  78. /package/dist/locales/{4.2.2 → 4.2.3}/flow/id.js +0 -0
  79. /package/dist/locales/{4.2.2 → 4.2.3}/flow/it.js +0 -0
  80. /package/dist/locales/{4.2.2 → 4.2.3}/flow/ja.js +0 -0
  81. /package/dist/locales/{4.2.2 → 4.2.3}/flow/ko.js +0 -0
  82. /package/dist/locales/{4.2.2 → 4.2.3}/flow/nl.js +0 -0
  83. /package/dist/locales/{4.2.2 → 4.2.3}/flow/pl.js +0 -0
  84. /package/dist/locales/{4.2.2 → 4.2.3}/flow/pt-br.js +0 -0
  85. /package/dist/locales/{4.2.2 → 4.2.3}/flow/tr.js +0 -0
  86. /package/dist/locales/{4.2.2 → 4.2.3}/flow/zh.js +0 -0
  87. /package/dist/locales/{4.2.2 → 4.2.3}/main/de.js +0 -0
  88. /package/dist/locales/{4.2.2 → 4.2.3}/main/es.js +0 -0
  89. /package/dist/locales/{4.2.2 → 4.2.3}/main/fr.js +0 -0
  90. /package/dist/locales/{4.2.2 → 4.2.3}/main/id.js +0 -0
  91. /package/dist/locales/{4.2.2 → 4.2.3}/main/it.js +0 -0
  92. /package/dist/locales/{4.2.2 → 4.2.3}/main/ja.js +0 -0
  93. /package/dist/locales/{4.2.2 → 4.2.3}/main/ko.js +0 -0
  94. /package/dist/locales/{4.2.2 → 4.2.3}/main/nl.js +0 -0
  95. /package/dist/locales/{4.2.2 → 4.2.3}/main/pl.js +0 -0
  96. /package/dist/locales/{4.2.2 → 4.2.3}/main/pt-br.js +0 -0
  97. /package/dist/locales/{4.2.2 → 4.2.3}/main/tr.js +0 -0
  98. /package/dist/locales/{4.2.2 → 4.2.3}/main/zh.js +0 -0
@@ -1,18 +1,19 @@
1
- import { O as e, Q as t, Z as n, r, t as i, tt as a } from "./timezones-Cq1mLtfM.js";
2
- import { n as o, r as s, t as c } from "./CloseIcon-Rc7tpX2a.js";
3
- import { _ as l, c as u, y as d } from "./Input-W-QE9nWi.js";
4
- import { C as f, O as p, m, y as h } from "./constants-Dcj3kgZE.js";
5
- import { t as g } from "./TagIcon-V0qMu9wS.js";
6
- import { t as _ } from "./WarningTriIcon-BPDrCiKU.js";
7
- import { c as v, n as y, o as b, r as x, t as S } from "./orders-tzTe2hNM.js";
8
- import { n as C, t as w } from "./serverTotals-CpRaEe9K.js";
9
- import { a as T, i as E, n as D, r as O, t as k } from "./ModalFooter-CfboEe1M.js";
10
- import { S as ee, d as A, l as te, u as j } from "./colors-5ifWyP6H.js";
11
- import { t as ne } from "./event-transform-DSuEpMxr.js";
12
- import { a as re, f as ie, p as M, r as ae, u as N } from "./utils-DJVlBMbw.js";
13
- import { a as oe, n as se } from "./promo-BrMcoTYh.js";
14
- import { r as ce } from "./order-totals-hcdvbJvw.js";
15
- import le, { n as P, t as ue } from "./Checkout-CXcjQfbc.js";
1
+ import { _ as e, v as t, x as n } from "./Button-C4uFgl7L.js";
2
+ import { r, t as i, v as a } from "./timezones-C5l0SSHK.js";
3
+ import { n as o, r as s, t as c } from "./CloseIcon-DSURK5co.js";
4
+ import { f as l, m as u, r as d } from "./Input-DkYIFK4J.js";
5
+ import { C as f, O as p, m, y as h } from "./constants-CqrJv6nM.js";
6
+ import { t as g } from "./TagIcon-CrTNd8qE.js";
7
+ import { t as _ } from "./WarningTriIcon-BxIQn7c2.js";
8
+ import { c as v, n as y, o as b, r as x, t as S } from "./orders-C8kt6c-E.js";
9
+ import { n as C, t as w } from "./serverTotals-BO126TTd.js";
10
+ import { a as T, i as E, n as D, r as O, t as k } from "./ModalFooter-r1NQNG9P.js";
11
+ import { S as ee, d as A, l as te, u as j } from "./colors-MuuDk6KF.js";
12
+ import { t as ne } from "./event-transform-jFmHl0Qp.js";
13
+ import { a as re, f as ie, p as M, r as ae, u as N } from "./utils-Ts4-U13Y.js";
14
+ import { a as oe, n as se } from "./promo-DtLZRskK.js";
15
+ import { r as ce } from "./order-totals-BImtvmoh.js";
16
+ import le, { n as P, t as ue } from "./Checkout-CRX7dcRr.js";
16
17
  import { n as de } from "./buyerEmail-BfCq-gDt.js";
17
18
  import "svelte/internal/disclose-version";
18
19
  import * as F from "svelte/internal/client";
@@ -180,10 +181,10 @@ function Q(e, t = h) {
180
181
  }
181
182
  //#endregion
182
183
  //#region src/components/Events/Checkout/GiftCardInput.svelte
183
- var be = a("GiftCardInput"), xe = F.from_html("<div class=\"applied-card mb-2 svelte-emw0hd\"><div class=\"flex items-center gap-3\"><div class=\"applied-icon svelte-emw0hd\"><!></div> <div class=\"flex flex-col flex-1\"><span class=\"type-caption text-status-success-text\"> </span> <span class=\"type-body font-mono text-text-primary\"> </span></div> <span class=\"type-label text-accent-success\"> </span> <!></div></div>"), Se = F.from_html("<div><!> <span> </span></div>"), Ce = F.from_html("<div class=\"flex justify-between items-center type-body mt-1.5\"><span class=\"text-text-secondary\"> </span> <span class=\"type-label text-text-primary\"> </span></div>"), we = F.from_html("<div class=\"applied-card mb-3 svelte-emw0hd\"><div class=\"flex justify-between items-center type-body\"><span class=\"text-text-secondary\"> </span> <span class=\"type-label text-accent-success\"> </span></div> <!></div>"), Te = F.from_html("<div class=\"flex items-center gap-1.5 mt-2 type-body text-accent-danger\"><!> <span> </span></div>"), Ee = F.from_html("<div class=\"input-section svelte-emw0hd\"><div class=\"flex gap-2\"><input type=\"text\" name=\"giftCardCode\" autocomplete=\"off\" autocapitalize=\"characters\"/> <!></div> <!></div>"), De = F.from_html("<div class=\"mb-4\"><!> <!> <button type=\"button\"><!> <span> </span> <span class=\"toggle-indicator svelte-emw0hd\"> </span></button> <!></div>");
184
- function Oe(e, i) {
184
+ var be = n("GiftCardInput"), xe = F.from_html("<div class=\"applied-card mb-2 svelte-emw0hd\"><div class=\"flex items-center gap-3\"><div class=\"applied-icon svelte-emw0hd\"><!></div> <div class=\"flex flex-col flex-1\"><span class=\"type-caption text-status-success-text\"> </span> <span class=\"type-body font-mono text-text-primary\"> </span></div> <span class=\"type-label text-accent-success\"> </span> <!></div></div>"), Se = F.from_html("<div><!> <span> </span></div>"), Ce = F.from_html("<div class=\"flex justify-between items-center type-body mt-1.5\"><span class=\"text-text-secondary\"> </span> <span class=\"type-label text-text-primary\"> </span></div>"), we = F.from_html("<div class=\"applied-card mb-3 svelte-emw0hd\"><div class=\"flex justify-between items-center type-body\"><span class=\"text-text-secondary\"> </span> <span class=\"type-label text-accent-success\"> </span></div> <!></div>"), Te = F.from_html("<div class=\"flex items-center gap-1.5 mt-2 type-body text-accent-danger\"><!> <span> </span></div>"), Ee = F.from_html("<div class=\"input-section svelte-emw0hd\"><div class=\"flex gap-2\"><input type=\"text\" name=\"giftCardCode\" autocomplete=\"off\" autocapitalize=\"characters\"/> <!></div> <!></div>"), De = F.from_html("<div class=\"mb-4\"><!> <!> <button type=\"button\"><!> <span> </span> <span class=\"toggle-indicator svelte-emw0hd\"> </span></button> <!></div>");
185
+ function Oe(n, i) {
185
186
  F.push(i, !0);
186
- let a = F.prop(i, "onApplied", 3, () => {}), s = F.prop(i, "onRemoved", 3, () => {}), d = F.prop(i, "disabled", 3, !1), p = F.prop(i, "labels", 3, h), m = F.state(""), v = F.state(!1), y = F.state(""), b = F.state(F.proxy([])), x = F.state(!1), S = F.state(0), C = F.derived(() => F.get(b).reduce((e, t) => e + (t.giftCardAmount || 0), 0)), w = F.derived(() => Math.max(0, F.get(S) - F.get(C))), T = F.derived(() => F.get(b).length > 0 && F.get(w) <= 0);
187
+ let a = F.prop(i, "onApplied", 3, () => {}), s = F.prop(i, "onRemoved", 3, () => {}), u = F.prop(i, "disabled", 3, !1), p = F.prop(i, "labels", 3, h), m = F.state(""), v = F.state(!1), y = F.state(""), b = F.state(F.proxy([])), x = F.state(!1), S = F.state(0), C = F.derived(() => F.get(b).reduce((e, t) => e + (t.giftCardAmount || 0), 0)), w = F.derived(() => Math.max(0, F.get(S) - F.get(C))), T = F.derived(() => F.get(b).length > 0 && F.get(w) <= 0);
187
188
  function E() {
188
189
  if (F.get(b).length === 0) {
189
190
  s()();
@@ -258,7 +259,7 @@ function Oe(e, i) {
258
259
  return F.get(v);
259
260
  },
260
261
  get disabled() {
261
- return d();
262
+ return u();
262
263
  },
263
264
  get "aria-label"() {
264
265
  return F.get(e);
@@ -271,20 +272,20 @@ function Oe(e, i) {
271
272
  }
272
273
  F.reset(i), F.reset(n), F.template_effect((e) => {
273
274
  F.set_text(g, p().giftCardApplied || "Gift card applied"), F.set_text(y, F.get(t).code), F.set_text(x, `-${e ?? ""}`);
274
- }, [() => f(F.get(t).giftCardAmount)]), F.transition(3, n, () => l, () => ({ duration: u.fast })), F.append(e, n);
275
+ }, [() => f(F.get(t).giftCardAmount)]), F.transition(3, n, () => l, () => ({ duration: d.fast })), F.append(e, n);
275
276
  });
276
- var re = F.sibling(ne, 2), ie = (e) => {
277
+ var re = F.sibling(ne, 2), ie = (n) => {
277
278
  var r = we(), i = F.child(r), a = F.child(i), s = F.child(a, !0);
278
279
  F.reset(a);
279
280
  var c = F.sibling(a, 2), l = F.child(c);
280
281
  F.reset(c), F.reset(i);
281
- var u = F.sibling(i, 2), d = (e) => {
282
+ var u = F.sibling(i, 2), d = (n) => {
282
283
  var r = Se(), i = F.child(r);
283
284
  o(i, { size: "16" });
284
285
  var a = F.sibling(i, 2), s = F.child(a, !0);
285
286
  F.reset(a), F.reset(r), F.template_effect(() => {
286
- F.set_class(r, 1, `full-coverage-badge ${t.caption ?? ""} ${n.emphasis ?? ""}`, "svelte-emw0hd"), F.set_text(s, p().fullyCoveredByGiftCard || "Fully covered by gift card");
287
- }), F.append(e, r);
287
+ F.set_class(r, 1, `full-coverage-badge ${t.caption ?? ""} ${e.emphasis ?? ""}`, "svelte-emw0hd"), F.set_text(s, p().fullyCoveredByGiftCard || "Fully covered by gift card");
288
+ }), F.append(n, r);
288
289
  }, m = (e) => {
289
290
  var t = Ce(), n = F.child(t), r = F.child(n, !0);
290
291
  F.reset(n);
@@ -297,7 +298,7 @@ function Oe(e, i) {
297
298
  F.get(T) ? e(d) : e(m, -1);
298
299
  }), F.reset(r), F.template_effect((e) => {
299
300
  F.set_text(s, p().appliedToOrder || "Applied to order"), F.set_text(l, `-${e ?? ""}`);
300
- }, [() => f(F.get(C))]), F.append(e, r);
301
+ }, [() => f(F.get(C))]), F.append(n, r);
301
302
  };
302
303
  F.if(re, (e) => {
303
304
  F.get(b).length > 0 && e(ie);
@@ -317,7 +318,7 @@ function Oe(e, i) {
317
318
  let o;
318
319
  var s = F.sibling(a, 2);
319
320
  {
320
- let e = F.derived(() => !F.get(m).trim() || d());
321
+ let e = F.derived(() => !F.get(m).trim() || u());
321
322
  r(s, {
322
323
  variant: "default",
323
324
  size: "sm",
@@ -342,19 +343,19 @@ function Oe(e, i) {
342
343
  var t = Te(), n = F.child(t);
343
344
  _(n, { size: "16" });
344
345
  var r = F.sibling(n, 2), i = F.child(r, !0);
345
- F.reset(r), F.reset(t), F.template_effect(() => F.set_text(i, F.get(y))), F.transition(3, t, () => l, () => ({ duration: u.micro })), F.append(e, t);
346
+ F.reset(r), F.reset(t), F.template_effect(() => F.set_text(i, F.get(y))), F.transition(3, t, () => l, () => ({ duration: d.micro })), F.append(e, t);
346
347
  };
347
348
  F.if(c, (e) => {
348
349
  F.get(y) && e(f);
349
350
  }), F.reset(n), F.template_effect(() => {
350
- F.set_attribute(a, "aria-label", p().enterGiftCardCode || "Enter gift card code"), F.set_attribute(a, "placeholder", p().enterGiftCardCode || "Enter gift card code"), a.disabled = F.get(v) || d(), o = F.set_class(a, 1, `gift-input ${t.body ?? ""}`, "svelte-emw0hd", o, { "has-error": !!F.get(y) });
351
- }), F.delegated("keydown", a, k), F.bind_value(a, () => F.get(m), (e) => F.set(m, e)), F.transition(3, n, () => l, () => ({ duration: u.fast })), F.append(e, n);
351
+ F.set_attribute(a, "aria-label", p().enterGiftCardCode || "Enter gift card code"), F.set_attribute(a, "placeholder", p().enterGiftCardCode || "Enter gift card code"), a.disabled = F.get(v) || u(), o = F.set_class(a, 1, `gift-input ${t.body ?? ""}`, "svelte-emw0hd", o, { "has-error": !!F.get(y) });
352
+ }), F.delegated("keydown", a, k), F.bind_value(a, () => F.get(m), (e) => F.set(m, e)), F.transition(3, n, () => l, () => ({ duration: d.fast })), F.append(e, n);
352
353
  };
353
354
  F.if(le, (e) => {
354
355
  F.get(x) && e(P);
355
356
  }), F.reset(j), F.template_effect(() => {
356
- F.set_class(M, 1, `gift-card-toggle ${t.label ?? ""}`, "svelte-emw0hd"), M.disabled = d(), F.set_attribute(M, "aria-expanded", F.get(x)), F.set_text(oe, F.get(b).length > 0 ? p().addAnotherGiftCard || "Add another gift card" : p().haveAGiftCard || "Have a gift card?"), F.set_text(ce, F.get(x) ? "-" : "+");
357
- }), F.delegated("click", M, ee), F.append(e, j), F.pop();
357
+ F.set_class(M, 1, `gift-card-toggle ${t.label ?? ""}`, "svelte-emw0hd"), M.disabled = u(), F.set_attribute(M, "aria-expanded", F.get(x)), F.set_text(oe, F.get(b).length > 0 ? p().addAnotherGiftCard || "Add another gift card" : p().haveAGiftCard || "Have a gift card?"), F.set_text(ce, F.get(x) ? "-" : "+");
358
+ }), F.delegated("click", M, ee), F.append(n, j), F.pop();
358
359
  }
359
360
  F.delegate(["click", "keydown"]);
360
361
  //#endregion
@@ -362,7 +363,7 @@ F.delegate(["click", "keydown"]);
362
363
  var ke = F.from_html("<div class=\"flex flex-col items-center text-center pt-6 px-4 pb-4\"><div aria-hidden=\"true\"><!></div> <h3 id=\"event-unavailable-title\"> </h3> <p id=\"event-unavailable-body\" class=\"type-body tone-secondary max-w-72\"> </p></div>"), Ae = F.from_html("<!> <!>", 1);
363
364
  function je(e, n) {
364
365
  F.push(n, !0);
365
- let i = F.prop(n, "open", 15, !1), a = F.prop(n, "onBackToEvents", 3, () => {}), o = F.prop(n, "labels", 3, h), c = F.derived(() => n.reason === "canceled"), l = F.derived(() => F.get(c) ? o().eventCanceledTitle || "Event cancelled" : o().eventPostponedTitle || "Event postponed"), u = F.derived(() => F.get(c) ? o().eventCanceledBody || "This event was cancelled — you weren't charged" : o().eventPostponedBody || "Sales are paused while this show is rescheduled — you weren't charged"), f = F.derived(() => o().backToEvents || "Back to events");
366
+ let i = F.prop(n, "open", 15, !1), a = F.prop(n, "onBackToEvents", 3, () => {}), o = F.prop(n, "labels", 3, h), c = F.derived(() => n.reason === "canceled"), l = F.derived(() => F.get(c) ? o().eventCanceledTitle || "Event cancelled" : o().eventPostponedTitle || "Event postponed"), d = F.derived(() => F.get(c) ? o().eventCanceledBody || "This event was cancelled — you weren't charged" : o().eventPostponedBody || "Sales are paused while this show is rescheduled — you weren't charged"), f = F.derived(() => o().backToEvents || "Back to events");
366
367
  T(e, {
367
368
  size: "sm",
368
369
  role: "alertdialog",
@@ -383,7 +384,7 @@ function je(e, n) {
383
384
  D(o, {
384
385
  children: (e, n) => {
385
386
  var r = ke(), i = F.child(r), a = F.child(i), o = (e) => {
386
- d(e, { size: "32" });
387
+ u(e, { size: "32" });
387
388
  }, f = (e) => {
388
389
  s(e, { size: "32" });
389
390
  };
@@ -394,7 +395,7 @@ function je(e, n) {
394
395
  F.reset(p);
395
396
  var h = F.sibling(p, 2), g = F.child(h, !0);
396
397
  F.reset(h), F.reset(r), F.template_effect(() => {
397
- F.set_class(i, 1, `w-16 h-16 rounded-full flex items-center justify-center mb-4 ${F.get(c) ? "bg-accent-danger/10 text-accent-danger" : "bg-accent-warning/10 text-accent-warning"}`), F.set_class(p, 1, `mb-2 ${t.heading ?? ""}`), F.set_text(m, F.get(l)), F.set_text(g, F.get(u));
398
+ F.set_class(i, 1, `w-16 h-16 rounded-full flex items-center justify-center mb-4 ${F.get(c) ? "bg-accent-danger/10 text-accent-danger" : "bg-accent-warning/10 text-accent-warning"}`), F.set_class(p, 1, `mb-2 ${t.heading ?? ""}`), F.set_text(m, F.get(l)), F.set_text(g, F.get(d));
398
399
  }), F.append(e, r);
399
400
  },
400
401
  $$slots: { default: !0 }
@@ -430,18 +431,18 @@ function je(e, n) {
430
431
  }
431
432
  //#endregion
432
433
  //#region src/components/Views/Checkout.svelte
433
- var $ = a("Checkout"), Me = F.from_html("<div class=\"p-8 text-center\"><p class=\"text-accent-danger\"> </p></div>"), Ne = F.from_html("<div class=\"p-8 text-center\"><p class=\"tone-muted\"> </p></div>"), Pe = F.from_html("<!> <!>", 1);
434
- function Fe(t, n) {
435
- F.push(n, !0);
436
- let r = F.prop(n, "availableTickets", 23, () => []);
437
- F.prop(n, "value", 3, "");
438
- let a = F.prop(n, "venueId", 3, ""), o = F.prop(n, "organizationId", 3, ""), s = F.prop(n, "onNavigateBack", 3, void 0), c = F.prop(n, "initialError", 3, void 0), l = F.prop(n, "widgetId", 3, null), u = F.prop(n, "labels", 3, h), d = F.prop(n, "locale", 3, void 0), f = F.derived(() => (n.data || {}).id);
439
- F.derived(() => (n.data || {}).orgSlug);
440
- let g = F.derived(() => (n.data || {}).slug), _ = F.derived(() => (n.data || {}).event), T = F.derived(() => F.get(_) ? ne(F.get(_)) : n.data && (n.data.id || F.get(f)) ? {
441
- id: n.data.id || F.get(f),
442
- eventID: n.data.id || F.get(f),
443
- venueID: n.data.venueID ?? n.data.venueId ?? null,
444
- venueId: n.data.venueId ?? n.data.venueID ?? null,
434
+ var $ = n("Checkout"), Me = F.from_html("<div class=\"p-8 text-center\"><p class=\"text-accent-danger\"> </p></div>"), Ne = F.from_html("<div class=\"p-8 text-center\"><p class=\"tone-muted\"> </p></div>"), Pe = F.from_html("<!> <!>", 1);
435
+ function Fe(e, t) {
436
+ F.push(t, !0);
437
+ let n = F.prop(t, "availableTickets", 23, () => []);
438
+ F.prop(t, "value", 3, "");
439
+ let r = F.prop(t, "venueId", 3, ""), o = F.prop(t, "organizationId", 3, ""), s = F.prop(t, "onNavigateBack", 3, void 0), c = F.prop(t, "initialError", 3, void 0), l = F.prop(t, "widgetId", 3, null), u = F.prop(t, "labels", 3, h), d = F.prop(t, "locale", 3, void 0), f = F.derived(() => (t.data || {}).id);
440
+ F.derived(() => (t.data || {}).orgSlug);
441
+ let g = F.derived(() => (t.data || {}).slug), _ = F.derived(() => (t.data || {}).event), T = F.derived(() => F.get(_) ? ne(F.get(_)) : t.data && (t.data.id || F.get(f)) ? {
442
+ id: t.data.id || F.get(f),
443
+ eventID: t.data.id || F.get(f),
444
+ venueID: t.data.venueID ?? t.data.venueId ?? null,
445
+ venueId: t.data.venueId ?? t.data.venueID ?? null,
445
446
  eventTicketingType: 0,
446
447
  ticketType: 0,
447
448
  availableTickets: []
@@ -457,16 +458,16 @@ function Fe(t, n) {
457
458
  F.set(pe, !0), F.set(me, u().noCheckoutSession || "No checkout session found. Please select tickets first", !0);
458
459
  return;
459
460
  }
460
- v(F.get(T)?.eventID || F.get(T)?.id || F.get(f), l(), a() || F.get(T)?.venueID || F.get(T)?.venueId || null);
461
- let t = F.get(T)?.eventID || F.get(T)?.id || F.get(f);
461
+ v(F.get(T)?.eventID || F.get(T)?.id || F.get(f), l(), r() || F.get(T)?.venueID || F.get(T)?.venueId || null);
462
+ let e = F.get(T)?.eventID || F.get(T)?.id || F.get(f);
462
463
  try {
463
- let e = N(t);
464
- F.set(D, e.quantities || {}, !0), F.set(O, e.donationAmounts || {}, !0), F.set(A, e.promocode || "", !0), F.set(te, e.promoDiscountAmount || 0, !0), F.set(k, e.tickets || [], !0);
464
+ let t = N(e);
465
+ F.set(D, t.quantities || {}, !0), F.set(O, t.donationAmounts || {}, !0), F.set(A, t.promocode || "", !0), F.set(te, t.promoDiscountAmount || 0, !0), F.set(k, t.tickets || [], !0);
465
466
  } catch (e) {
466
467
  $.error("Error loading checkout state:", e), F.set(D, {}, !0), F.set(k, [], !0);
467
468
  }
468
- F.get(k).length > 0 && F.get(T) && (F.get(T).availableTickets = F.get(k), r(F.get(k)));
469
- let n = {
469
+ F.get(k).length > 0 && F.get(T) && (F.get(T).availableTickets = F.get(k), n(F.get(k)));
470
+ let t = {
470
471
  serviceFeeCents: 0,
471
472
  serviceFeePercentage: 0,
472
473
  serviceFeeChargeType: "both",
@@ -475,8 +476,8 @@ function Fe(t, n) {
475
476
  taxPercentage: 0
476
477
  };
477
478
  try {
478
- let e = await ae(F.get(T)?.venueID || F.get(T)?.venueId || a());
479
- n = {
479
+ let e = await ae(F.get(T)?.venueID || F.get(T)?.venueId || r());
480
+ t = {
480
481
  serviceFeeCents: Number(e?.serviceFeeCents == null ? 0 : e.serviceFeeCents),
481
482
  serviceFeePercentage: Number(e?.serviceFeePercentage ?? 0),
482
483
  serviceFeeChargeType: String(e?.serviceFeeChargeType ?? "both"),
@@ -487,33 +488,33 @@ function Fe(t, n) {
487
488
  } catch (e) {
488
489
  $.error("Error fetching venue data:", e);
489
490
  }
490
- let i = _e(F.get(D), F.get(k), n);
491
+ let i = _e(F.get(D), F.get(k), t);
491
492
  Object.keys(F.get(D)).length > 0 && await ge();
492
493
  let o = 900;
493
494
  if (F.get(E)) {
494
- let t = ie(F.get(E));
495
- if (t) {
496
- let e = Math.max(0, Math.floor((t - Date.now()) / 1e3));
497
- e > 0 && (o = e);
495
+ let e = ie(F.get(E));
496
+ if (e) {
497
+ let t = Math.max(0, Math.floor((e - Date.now()) / 1e3));
498
+ t > 0 && (o = t);
498
499
  }
499
500
  try {
500
- let t = await x(F.get(E));
501
- if (!t.error && t.expiresAt) {
502
- let n = e(t.expiresAt).getTime();
503
- o = Math.max(0, Math.floor((n - Date.now()) / 1e3)), M(F.get(E), n);
501
+ let e = await x(F.get(E));
502
+ if (!e.error && e.expiresAt) {
503
+ let t = a(e.expiresAt).getTime();
504
+ o = Math.max(0, Math.floor((t - Date.now()) / 1e3)), M(F.get(E), t);
504
505
  }
505
506
  } catch {}
506
507
  }
507
- let s = P(`checkout-promo-discount-type-${t}`) || "", d = [];
508
+ let s = P(`checkout-promo-discount-type-${e}`) || "", d = [];
508
509
  try {
509
- let e = P(`checkout-promo-ticket-ids-${t}`), n = e ? JSON.parse(e) : [];
510
+ let t = P(`checkout-promo-ticket-ids-${e}`), n = t ? JSON.parse(t) : [];
510
511
  Array.isArray(n) && (d = n);
511
512
  } catch {
512
513
  d = [];
513
514
  }
514
515
  let m = p(i.filter((e) => se(d, e.ticketId)).reduce((e, t) => e + (t.subtotal == null ? 0 : t.subtotal), 0)), h = oe(m, F.get(te), s);
515
516
  if (F.set(K, {
516
- event: Z(F.get(T), n),
517
+ event: Z(F.get(T), t),
517
518
  lines: i,
518
519
  timerStart: o,
519
520
  promoApplied: !!F.get(A),
@@ -679,30 +680,30 @@ function Fe(t, n) {
679
680
  F.set(H, { message: u().paymentSystemNotInitialized || "Payment system is not initialized. Please refresh the page" }, !0), F.set(I, !1);
680
681
  return;
681
682
  }
682
- let { error: t } = await F.get(V).submit();
683
- if (t) {
684
- let e = Q(t, u());
683
+ let { error: n } = await F.get(V).submit();
684
+ if (n) {
685
+ let e = Q(n, u());
685
686
  F.set(H, {
686
687
  message: e.message,
687
688
  suggestion: e.suggestion
688
689
  }, !0), F.set(I, !1);
689
690
  return;
690
691
  }
691
- let r = await F.get(z).confirmPayment({
692
+ let i = await F.get(z).confirmPayment({
692
693
  elements: F.get(V),
693
694
  redirect: "if_required"
694
695
  });
695
- if (r.error) {
696
- let e = Q(r.error, u());
696
+ if (i.error) {
697
+ let e = Q(i.error, u());
697
698
  F.set(H, {
698
699
  message: e.message,
699
700
  suggestion: e.suggestion
700
701
  }, !0), F.set(I, !1);
701
702
  return;
702
703
  }
703
- let i = {
704
+ let a = {
704
705
  id: F.get(E),
705
- paymentIntentId: r.paymentIntent.id,
706
+ paymentIntentId: i.paymentIntent.id,
706
707
  tickets: F.get(D),
707
708
  firstName: e.firstName,
708
709
  lastName: e.lastName,
@@ -710,22 +711,22 @@ function Fe(t, n) {
710
711
  paymentMethod: "credit-card",
711
712
  mailingList: e.keepMeUpdated,
712
713
  saleType: "online"
713
- }, s = await b(F.get(E), i);
714
+ }, s = await b(F.get(E), a);
714
715
  if (s?.eventCanceled || s?.eventPostponed) {
715
716
  F.set(W, s.eventCanceled ? "canceled" : "postponed", !0), F.set(H, null);
716
717
  return;
717
718
  }
718
719
  if (s?.status === "Payment succeeded") {
719
720
  de(F.get(E), e.email);
720
- let t = {
721
+ let n = {
721
722
  orderId: F.get(E),
722
723
  eventId: F.get(T)?.id || F.get(T)?.eventID || null,
723
724
  event: F.get(T) || null,
724
- venueId: a() || F.get(T)?.venueId || null,
725
+ venueId: r() || F.get(T)?.venueId || null,
725
726
  organizationId: o() || F.get(T)?.organizationId || null,
726
727
  ...Y()
727
728
  };
728
- n.onNavigateToSuccess && n.onNavigateToSuccess(t);
729
+ t.onNavigateToSuccess && t.onNavigateToSuccess(n);
729
730
  } else s?.status === "Payment amount does not match the total price" ? F.set(H, { message: u().paymentAmountMismatch || "Payment amount mismatch. Please refresh and try again" }, !0) : F.set(H, { message: u().paymentValidationFailed || "Payment validation failed. Please try again" }, !0);
730
731
  } catch (e) {
731
732
  $.error("Payment execution error:", e);
@@ -741,26 +742,26 @@ function Fe(t, n) {
741
742
  }
742
743
  async function Se(e) {
743
744
  try {
744
- let t = await j(F.get(E), {
745
+ let n = await j(F.get(E), {
745
746
  firstName: e.firstName,
746
747
  lastName: e.lastName,
747
748
  email: e.email,
748
749
  phoneNumber: null,
749
750
  mailingList: e.keepMeUpdated
750
751
  });
751
- if (t?.success) {
752
- de(t.orderId || F.get(E), e.email);
753
- let r = {
754
- orderId: t.orderId || F.get(E),
752
+ if (n?.success) {
753
+ de(n.orderId || F.get(E), e.email);
754
+ let i = {
755
+ orderId: n.orderId || F.get(E),
755
756
  eventId: F.get(T)?.id || F.get(T)?.eventID || null,
756
757
  event: F.get(T) || null,
757
- venueId: a() || F.get(T)?.venueId || null,
758
+ venueId: r() || F.get(T)?.venueId || null,
758
759
  organizationId: o() || F.get(T)?.organizationId || null,
759
760
  paymentType: "gift_card_only",
760
761
  ...Y()
761
762
  };
762
- n.onNavigateToSuccess && n.onNavigateToSuccess(r);
763
- } else F.set(H, { message: t?.error || u().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
763
+ t.onNavigateToSuccess && t.onNavigateToSuccess(i);
764
+ } else F.set(H, { message: n?.error || u().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
764
765
  } catch (e) {
765
766
  $.error("Gift card payment error:", e);
766
767
  let t = Q(e, u());
@@ -774,13 +775,13 @@ function Fe(t, n) {
774
775
  }
775
776
  async function Ce(e) {
776
777
  try {
777
- let t = Object.fromEntries(Object.entries(F.get(D)).filter(([e, t]) => t > 0)), r = Object.fromEntries(Object.entries(F.get(O)).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])), i = await S(F.get(E), t, Object.keys(r).length > 0 ? r : void 0, {
778
+ let n = Object.fromEntries(Object.entries(F.get(D)).filter(([e, t]) => t > 0)), i = Object.fromEntries(Object.entries(F.get(O)).filter(([, e]) => parseFloat(String(e)) > 0).map(([e, t]) => [parseInt(e, 10), parseFloat(String(t))])), a = await S(F.get(E), n, Object.keys(i).length > 0 ? i : void 0, {
778
779
  firstName: e.firstName,
779
780
  lastName: e.lastName,
780
781
  email: e.email,
781
782
  mailingList: e.keepMeUpdated
782
783
  });
783
- if (i?.requires_stripe !== !1 && i?.payment_type !== "free" || i?.order_finalized === !1) {
784
+ if (a?.requires_stripe !== !1 && a?.payment_type !== "free" || a?.order_finalized === !1) {
784
785
  F.set(H, { message: u().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
785
786
  return;
786
787
  }
@@ -789,12 +790,12 @@ function Fe(t, n) {
789
790
  orderId: F.get(E),
790
791
  eventId: F.get(T)?.id || F.get(T)?.eventID || null,
791
792
  event: F.get(T) || null,
792
- venueId: a() || F.get(T)?.venueId || null,
793
+ venueId: r() || F.get(T)?.venueId || null,
793
794
  organizationId: o() || F.get(T)?.organizationId || null,
794
795
  paymentType: "free",
795
796
  ...Y()
796
797
  };
797
- n.onNavigateToSuccess && n.onNavigateToSuccess(s);
798
+ t.onNavigateToSuccess && t.onNavigateToSuccess(s);
798
799
  } catch (e) {
799
800
  $.error("Free order completion error:", e);
800
801
  let t = Q(e, u());
@@ -940,7 +941,7 @@ function Fe(t, n) {
940
941
  };
941
942
  F.if(Be, (e) => {
942
943
  F.get(he) && e(Ve);
943
- }), F.append(t, Fe), F.pop();
944
+ }), F.append(e, Fe), F.pop();
944
945
  }
945
946
  //#endregion
946
947
  export { Fe as default };