@getmicdrop/venue-calendar 4.2.5 → 4.2.6

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 (97) hide show
  1. package/dist/{ArrowLeftIcon-BxKUPFOE.js → ArrowLeftIcon-CNxF9YFb.js} +1 -1
  2. package/dist/{Badge-M6qZyfTF.js → Badge-Bv_MT-Vt.js} +10 -9
  3. package/dist/BlockPlaceholder-CnvIm7eh.js +52 -0
  4. package/dist/Button-C4uFgl7L.js +2141 -0
  5. package/dist/{Calendar-DwNhbEQY.js → Calendar-CYkpiAtv.js} +292 -290
  6. package/dist/CalendarFoundryView-ShEdyNl6.js +22292 -0
  7. package/dist/{CalendarIcon-jLckZ_4N.js → CalendarIcon-BBTaRYp7.js} +1 -1
  8. package/dist/{CartView-B61KRyFq.js → CartView-Bka7Ouuf.js} +651 -644
  9. package/dist/{Checkout-DlQ2x3L6.js → Checkout-B_H3O8m4.js} +92 -91
  10. package/dist/Checkout-C9QQ74zn.js +1811 -0
  11. package/dist/{CheckoutTimer-Cv9iQj2d.js → CheckoutTimer-C4SBpf38.js} +5 -5
  12. package/dist/{ChevronDownIcon-DiZxxS3e.js → ChevronDownIcon-Ba1RZBsy.js} +1 -1
  13. package/dist/{ClockIcon-BrWavNGl.js → ClockIcon-DNJWLc1C.js} +1 -1
  14. package/dist/{CloseIcon-Cmddp2PA.js → CloseIcon-BpvJsO5u.js} +1 -1
  15. package/dist/CloseOutline-qpVa62mu.js +13 -0
  16. package/dist/{CollectionView-DpkF55yD.js → CollectionView-Buv-8pjk.js} +13 -12
  17. package/dist/CropImage-B0tj2_uN.js +404 -0
  18. package/dist/Event-CwTHb9JT.js +3034 -0
  19. package/dist/{EventPage-DnKNNWk8.js → EventPage-yskGEenX.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-VmGIkIrm.js +487 -0
  23. package/dist/{MailIcon-gpZMGdBK.js → MailIcon-r5G2Lccc.js} +1 -1
  24. package/dist/{Modal-D4AUdrz8.js → Modal-CjMTStvm.js} +2 -2
  25. package/dist/{ModalFooter-8Di4-qKC.js → ModalFooter-BndOSwTE.js} +59 -57
  26. package/dist/{PasswordInput-Buk60yEf.js → PasswordInput-CzRzjBIa.js} +4 -4
  27. package/dist/{ScarcityBadge-DgrS89hq.js → ScarcityBadge-hVqsuotm.js} +4 -4
  28. package/dist/{SeriesPage-BCovOJ6a.js → SeriesPage-tnoYKEbW.js} +5 -5
  29. package/dist/{Spinner-ChTN7t75.js → Spinner-BwiDys7C.js} +3 -3
  30. package/dist/{Success-BRufJqwQ.js → Success-CgLRsVYC.js} +78 -77
  31. package/dist/{TagIcon-C0uTQgU8.js → TagIcon-_OxEQnM3.js} +1 -1
  32. package/dist/{ViewTicketsEmbed-CfagtvVL.js → ViewTicketsEmbed-CKucKt-W.js} +60 -59
  33. package/dist/{WarningCircleIcon-B2hkUrvV.js → WarningCircleIcon-D1Kt1Sw1.js} +1 -1
  34. package/dist/{WarningTriIcon-Boy4IW6-.js → WarningTriIcon-DjcnvD51.js} +1 -1
  35. package/dist/{__SKIP_PATHS__-DPK-YB-V.js → __SKIP_PATHS__-BTbGfN80.js} +1 -1
  36. package/dist/{browser-25hnscei.js → browser-Um8Y6K99.js} +7 -7
  37. package/dist/{colors-B9hMXv8l.js → colors-fhDq0k7I.js} +30 -29
  38. package/dist/{constants-DBwdjnEU.js → constants-BWfNecCz.js} +73 -73
  39. package/dist/{copyToClipboard-BDa2_uNf.js → copyToClipboard-BTVrJgtZ.js} +1 -1
  40. package/dist/{createI18n-08XGDh1_.js → createI18n-DBUVdZra.js} +1 -1
  41. package/dist/{event-Cp5D4ctZ.js → event-BrptLro8.js} +1 -1
  42. package/dist/{event-transform-BFJTgtU9.js → event-transform-eNiddvbF.js} +4 -4
  43. package/dist/{eventStatusStream-SyvhRCtk.js → eventStatusStream-sq6uPnMe.js} +2 -2
  44. package/dist/{allowlist-Cu2kP6jt.js → href-D7yXIGzE.js} +21 -4
  45. package/dist/{i18n-4ZGOM8hY.js → i18n-Bk8x-2nR.js} +11 -11
  46. package/dist/imageOptimizer-CB3wKJU8.js +47 -0
  47. package/dist/{labels-99RC9gAv.js → labels-Djxn2Lvi.js} +1 -1
  48. package/dist/{modalManager.svelte-BdNsCq6n.js → modalManager.svelte-DHSGjxWd.js} +2 -2
  49. package/dist/{order-totals-CQ0V7Fdc.js → order-totals-DptlFbmv.js} +15 -13
  50. package/dist/{orders-oRqSQXSf.js → orders-NZP81zYT.js} +20 -19
  51. package/dist/{Input-DsWjpYtc.js → phoneUtils-PJqYw0dJ.js} +694 -1132
  52. package/dist/{pixels-DycN_8bu.js → pixels-BBruZizp.js} +8 -7
  53. package/dist/{promo-BrMcoTYh.js → promo-DtLZRskK.js} +3 -3
  54. package/dist/{serverTotals-CpRaEe9K.js → serverTotals-BO126TTd.js} +1 -1
  55. package/dist/{shareCopyFeedback.svelte-D314p5oA.js → shareCopyFeedback.svelte-DZMLGA3y.js} +25 -25
  56. package/dist/{showcase-state-options-B2XfybZq.js → showcase-state-options-BoJxiEsg.js} +1 -1
  57. package/dist/sortable.esm--ZtTTTPp.js +1451 -0
  58. package/dist/timezones-C5l0SSHK.js +2030 -0
  59. package/dist/{to-event-card-props-BNBWYYPo.js → to-event-card-props-BaPEUAZW.js} +24 -23
  60. package/dist/{utils-CrlClQxc.js → utils-CAxbM_uh.js} +3 -3
  61. package/dist/venue-calendar.css +1 -1
  62. package/dist/venue-calendar.es.js +212 -206
  63. package/dist/venue-calendar.iife.js +64 -63
  64. package/dist/venue-calendar.umd.js +62 -61
  65. package/dist/z-index-B0Vk_Mp1.js +27 -0
  66. package/package.json +220 -220
  67. package/dist/BlockPlaceholder-CLdS2Y-c.js +0 -62
  68. package/dist/CalendarFoundryView-BX5mT6NY.js +0 -23561
  69. package/dist/Checkout-CoExiUba.js +0 -1809
  70. package/dist/Event-CzNN2jRR.js +0 -3040
  71. package/dist/Image-DBJAfLYe.js +0 -81
  72. package/dist/cancel-gqtaw6SK.js +0 -59
  73. package/dist/timezones-Cq1mLtfM.js +0 -4170
  74. /package/dist/locales/{4.2.5 → 4.2.6}/flow/de.js +0 -0
  75. /package/dist/locales/{4.2.5 → 4.2.6}/flow/es.js +0 -0
  76. /package/dist/locales/{4.2.5 → 4.2.6}/flow/fr.js +0 -0
  77. /package/dist/locales/{4.2.5 → 4.2.6}/flow/id.js +0 -0
  78. /package/dist/locales/{4.2.5 → 4.2.6}/flow/it.js +0 -0
  79. /package/dist/locales/{4.2.5 → 4.2.6}/flow/ja.js +0 -0
  80. /package/dist/locales/{4.2.5 → 4.2.6}/flow/ko.js +0 -0
  81. /package/dist/locales/{4.2.5 → 4.2.6}/flow/nl.js +0 -0
  82. /package/dist/locales/{4.2.5 → 4.2.6}/flow/pl.js +0 -0
  83. /package/dist/locales/{4.2.5 → 4.2.6}/flow/pt-br.js +0 -0
  84. /package/dist/locales/{4.2.5 → 4.2.6}/flow/tr.js +0 -0
  85. /package/dist/locales/{4.2.5 → 4.2.6}/flow/zh.js +0 -0
  86. /package/dist/locales/{4.2.5 → 4.2.6}/main/de.js +0 -0
  87. /package/dist/locales/{4.2.5 → 4.2.6}/main/es.js +0 -0
  88. /package/dist/locales/{4.2.5 → 4.2.6}/main/fr.js +0 -0
  89. /package/dist/locales/{4.2.5 → 4.2.6}/main/id.js +0 -0
  90. /package/dist/locales/{4.2.5 → 4.2.6}/main/it.js +0 -0
  91. /package/dist/locales/{4.2.5 → 4.2.6}/main/ja.js +0 -0
  92. /package/dist/locales/{4.2.5 → 4.2.6}/main/ko.js +0 -0
  93. /package/dist/locales/{4.2.5 → 4.2.6}/main/nl.js +0 -0
  94. /package/dist/locales/{4.2.5 → 4.2.6}/main/pl.js +0 -0
  95. /package/dist/locales/{4.2.5 → 4.2.6}/main/pt-br.js +0 -0
  96. /package/dist/locales/{4.2.5 → 4.2.6}/main/tr.js +0 -0
  97. /package/dist/locales/{4.2.5 → 4.2.6}/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-Cmddp2PA.js";
3
- import { _ as l, c as u, y as d } from "./Input-DsWjpYtc.js";
4
- import { C as f, O as p, m, y as h } from "./constants-DBwdjnEU.js";
5
- import { t as g } from "./TagIcon-C0uTQgU8.js";
6
- import { t as _ } from "./WarningTriIcon-Boy4IW6-.js";
7
- import { c as v, n as y, o as b, r as x, t as S } from "./orders-oRqSQXSf.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-8Di4-qKC.js";
10
- import { S as ee, d as A, l as te, u as j } from "./colors-B9hMXv8l.js";
11
- import { t as ne } from "./event-transform-BFJTgtU9.js";
12
- import { a as re, f as ie, p as M, r as ae, u as N } from "./utils-CrlClQxc.js";
13
- import { a as oe, n as se } from "./promo-BrMcoTYh.js";
14
- import { r as ce } from "./order-totals-CQ0V7Fdc.js";
15
- import le, { n as P, t as ue } from "./Checkout-CoExiUba.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-BpvJsO5u.js";
4
+ import { f as l, m as u, r as d } from "./Input-VmGIkIrm.js";
5
+ import { C as f, O as p, m, y as h } from "./constants-BWfNecCz.js";
6
+ import { t as g } from "./TagIcon-_OxEQnM3.js";
7
+ import { t as _ } from "./WarningTriIcon-DjcnvD51.js";
8
+ import { c as v, n as y, o as b, r as x, t as S } from "./orders-NZP81zYT.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-BndOSwTE.js";
11
+ import { S as ee, d as A, l as te, u as j } from "./colors-fhDq0k7I.js";
12
+ import { t as ne } from "./event-transform-eNiddvbF.js";
13
+ import { a as re, f as ie, p as M, r as ae, u as N } from "./utils-CAxbM_uh.js";
14
+ import { a as oe, n as se } from "./promo-DtLZRskK.js";
15
+ import { r as ce } from "./order-totals-DptlFbmv.js";
16
+ import le, { n as P, t as ue } from "./Checkout-C9QQ74zn.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, s = "";
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)), s = t.expiresAt, 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)), s = e.expiresAt, M(F.get(E), t);
504
505
  }
505
506
  } catch {}
506
507
  }
507
- let d = P(`checkout-promo-discount-type-${t}`) || "", m = [];
508
+ let d = P(`checkout-promo-discount-type-${e}`) || "", m = [];
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) && (m = n);
511
512
  } catch {
512
513
  m = [];
513
514
  }
514
515
  let h = p(i.filter((e) => se(m, e.ticketId)).reduce((e, t) => e + (t.subtotal == null ? 0 : t.subtotal), 0)), g = oe(h, F.get(te), d);
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
  ...s ? { deadlineAt: s } : {},
@@ -680,30 +681,30 @@ function Fe(t, n) {
680
681
  F.set(H, { message: u().paymentSystemNotInitialized || "Payment system is not initialized. Please refresh the page" }, !0), F.set(I, !1);
681
682
  return;
682
683
  }
683
- let { error: t } = await F.get(V).submit();
684
- if (t) {
685
- let e = Q(t, u());
684
+ let { error: n } = await F.get(V).submit();
685
+ if (n) {
686
+ let e = Q(n, u());
686
687
  F.set(H, {
687
688
  message: e.message,
688
689
  suggestion: e.suggestion
689
690
  }, !0), F.set(I, !1);
690
691
  return;
691
692
  }
692
- let r = await F.get(z).confirmPayment({
693
+ let i = await F.get(z).confirmPayment({
693
694
  elements: F.get(V),
694
695
  redirect: "if_required"
695
696
  });
696
- if (r.error) {
697
- let e = Q(r.error, u());
697
+ if (i.error) {
698
+ let e = Q(i.error, u());
698
699
  F.set(H, {
699
700
  message: e.message,
700
701
  suggestion: e.suggestion
701
702
  }, !0), F.set(I, !1);
702
703
  return;
703
704
  }
704
- let i = {
705
+ let a = {
705
706
  id: F.get(E),
706
- paymentIntentId: r.paymentIntent.id,
707
+ paymentIntentId: i.paymentIntent.id,
707
708
  tickets: F.get(D),
708
709
  firstName: e.firstName,
709
710
  lastName: e.lastName,
@@ -711,22 +712,22 @@ function Fe(t, n) {
711
712
  paymentMethod: "credit-card",
712
713
  mailingList: e.keepMeUpdated,
713
714
  saleType: "online"
714
- }, s = await b(F.get(E), i);
715
+ }, s = await b(F.get(E), a);
715
716
  if (s?.eventCanceled || s?.eventPostponed) {
716
717
  F.set(W, s.eventCanceled ? "canceled" : "postponed", !0), F.set(H, null);
717
718
  return;
718
719
  }
719
720
  if (s?.status === "Payment succeeded") {
720
721
  de(F.get(E), e.email);
721
- let t = {
722
+ let n = {
722
723
  orderId: F.get(E),
723
724
  eventId: F.get(T)?.id || F.get(T)?.eventID || null,
724
725
  event: F.get(T) || null,
725
- venueId: a() || F.get(T)?.venueId || null,
726
+ venueId: r() || F.get(T)?.venueId || null,
726
727
  organizationId: o() || F.get(T)?.organizationId || null,
727
728
  ...Y()
728
729
  };
729
- n.onNavigateToSuccess && n.onNavigateToSuccess(t);
730
+ t.onNavigateToSuccess && t.onNavigateToSuccess(n);
730
731
  } 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);
731
732
  } catch (e) {
732
733
  $.error("Payment execution error:", e);
@@ -742,26 +743,26 @@ function Fe(t, n) {
742
743
  }
743
744
  async function Se(e) {
744
745
  try {
745
- let t = await j(F.get(E), {
746
+ let n = await j(F.get(E), {
746
747
  firstName: e.firstName,
747
748
  lastName: e.lastName,
748
749
  email: e.email,
749
750
  phoneNumber: null,
750
751
  mailingList: e.keepMeUpdated
751
752
  });
752
- if (t?.success) {
753
- de(t.orderId || F.get(E), e.email);
754
- let r = {
755
- orderId: t.orderId || F.get(E),
753
+ if (n?.success) {
754
+ de(n.orderId || F.get(E), e.email);
755
+ let i = {
756
+ orderId: n.orderId || F.get(E),
756
757
  eventId: F.get(T)?.id || F.get(T)?.eventID || null,
757
758
  event: F.get(T) || null,
758
- venueId: a() || F.get(T)?.venueId || null,
759
+ venueId: r() || F.get(T)?.venueId || null,
759
760
  organizationId: o() || F.get(T)?.organizationId || null,
760
761
  paymentType: "gift_card_only",
761
762
  ...Y()
762
763
  };
763
- n.onNavigateToSuccess && n.onNavigateToSuccess(r);
764
- } else F.set(H, { message: t?.error || u().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
764
+ t.onNavigateToSuccess && t.onNavigateToSuccess(i);
765
+ } else F.set(H, { message: n?.error || u().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
765
766
  } catch (e) {
766
767
  $.error("Gift card payment error:", e);
767
768
  let t = Q(e, u());
@@ -775,13 +776,13 @@ function Fe(t, n) {
775
776
  }
776
777
  async function Ce(e) {
777
778
  try {
778
- 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, {
779
+ 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, {
779
780
  firstName: e.firstName,
780
781
  lastName: e.lastName,
781
782
  email: e.email,
782
783
  mailingList: e.keepMeUpdated
783
784
  });
784
- if (i?.requires_stripe !== !1 && i?.payment_type !== "free" || i?.order_finalized === !1) {
785
+ if (a?.requires_stripe !== !1 && a?.payment_type !== "free" || a?.order_finalized === !1) {
785
786
  F.set(H, { message: u().failedToCompleteOrder || "Failed to complete order. Please try again" }, !0);
786
787
  return;
787
788
  }
@@ -790,12 +791,12 @@ function Fe(t, n) {
790
791
  orderId: F.get(E),
791
792
  eventId: F.get(T)?.id || F.get(T)?.eventID || null,
792
793
  event: F.get(T) || null,
793
- venueId: a() || F.get(T)?.venueId || null,
794
+ venueId: r() || F.get(T)?.venueId || null,
794
795
  organizationId: o() || F.get(T)?.organizationId || null,
795
796
  paymentType: "free",
796
797
  ...Y()
797
798
  };
798
- n.onNavigateToSuccess && n.onNavigateToSuccess(s);
799
+ t.onNavigateToSuccess && t.onNavigateToSuccess(s);
799
800
  } catch (e) {
800
801
  $.error("Free order completion error:", e);
801
802
  let t = Q(e, u());
@@ -941,7 +942,7 @@ function Fe(t, n) {
941
942
  };
942
943
  F.if(Be, (e) => {
943
944
  F.get(he) && e(Ve);
944
- }), F.append(t, Fe), F.pop();
945
+ }), F.append(e, Fe), F.pop();
945
946
  }
946
947
  //#endregion
947
948
  export { Fe as default };