@getmicdrop/venue-calendar 4.0.107 → 4.0.108

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 (78) hide show
  1. package/README.md +740 -740
  2. package/dist/CartView-eQNOdQSz.js +2354 -0
  3. package/dist/CartView-eQNOdQSz.js.map +1 -0
  4. package/dist/{Checkout-Db6v9jHf.js → Checkout-C4zUFYYG.js} +606 -622
  5. package/dist/Checkout-C4zUFYYG.js.map +1 -0
  6. package/dist/{Checkout-JvsT5PvE.js → Checkout-CACB_Qvi.js} +3 -3
  7. package/dist/Checkout-CACB_Qvi.js.map +1 -0
  8. package/dist/{CheckoutTimer-3Hp1OSA3.js → CheckoutTimer-D5llSBPs.js} +5 -5
  9. package/dist/CheckoutTimer-D5llSBPs.js.map +1 -0
  10. package/dist/{ClockIcon-CaqjP14C.js → ClockIcon-BJnxLZ4f.js} +2 -2
  11. package/dist/ClockIcon-BJnxLZ4f.js.map +1 -0
  12. package/dist/{CollectionView-DXJfvNlt.js → CollectionView-BLpwWRcN.js} +31 -31
  13. package/dist/CollectionView-BLpwWRcN.js.map +1 -0
  14. package/dist/{Event-BJRx05iL.js → Event-DXp4Ypv4.js} +15 -15
  15. package/dist/Event-DXp4Ypv4.js.map +1 -0
  16. package/dist/EventPage-Dfxyzfg2.js +949 -0
  17. package/dist/EventPage-Dfxyzfg2.js.map +1 -0
  18. package/dist/{Heading-BbCHtFCM.js → Heading-C_Pc_j8f.js} +2 -2
  19. package/dist/Heading-C_Pc_j8f.js.map +1 -0
  20. package/dist/{ScarcityBadge-iHyVN-k7.js → ScarcityBadge-CSi-i0-w.js} +22 -22
  21. package/dist/ScarcityBadge-CSi-i0-w.js.map +1 -0
  22. package/dist/{SeriesPage-b9aAGbcb.js → SeriesPage-bPZlyzQ6.js} +5 -5
  23. package/dist/SeriesPage-bPZlyzQ6.js.map +1 -0
  24. package/dist/{Spinner-DC99jWmt.js → Spinner-BFIjCOTb.js} +2 -2
  25. package/dist/Spinner-BFIjCOTb.js.map +1 -0
  26. package/dist/{Success-H4fQrbfA.js → Success-Cv8d2syu.js} +122 -139
  27. package/dist/Success-Cv8d2syu.js.map +1 -0
  28. package/dist/{Text-CKmfSVMa.js → Text-tWGKQJab.js} +9 -9
  29. package/dist/Text-tWGKQJab.js.map +1 -0
  30. package/dist/{VenueCalendar-DmxiEy6q.js → VenueCalendar-Dhoi9hF5.js} +4443 -4364
  31. package/dist/VenueCalendar-Dhoi9hF5.js.map +1 -0
  32. package/dist/{ViewTicketsEmbed-BKrQgPf8.js → ViewTicketsEmbed-BrXae6cK.js} +79 -79
  33. package/dist/ViewTicketsEmbed-BrXae6cK.js.map +1 -0
  34. package/dist/api/api.cjs.map +1 -1
  35. package/dist/api/api.mjs.map +1 -1
  36. package/dist/api/types.d.ts +483 -483
  37. package/dist/{labels-DgU1irgj.js → labels-CGndTgO9.js} +39 -42
  38. package/dist/labels-CGndTgO9.js.map +1 -0
  39. package/dist/{modalManager.svelte-Ddxmimtn.js → modalManager.svelte-BgW5Xd6y.js} +2 -2
  40. package/dist/modalManager.svelte-BgW5Xd6y.js.map +1 -0
  41. package/dist/promo-WWbp2OWI.js.map +1 -1
  42. package/dist/seo/seo.cjs.map +1 -1
  43. package/dist/seo/seo.mjs.map +1 -1
  44. package/dist/{data-toggle-store.svelte-BEm-nTSr.js → showcase-state-options-BxLP2R1L.js} +72 -45
  45. package/dist/showcase-state-options-BxLP2R1L.js.map +1 -0
  46. package/dist/{transform-BOx8W51w.js → transform-CVOgA-Ky.js} +10 -10
  47. package/dist/transform-CVOgA-Ky.js.map +1 -0
  48. package/dist/types/index.d.ts +455 -455
  49. package/dist/venue-calendar.css +1 -1
  50. package/dist/venue-calendar.es.js +4 -4
  51. package/dist/venue-calendar.iife.js +44 -44
  52. package/dist/venue-calendar.iife.js.map +1 -1
  53. package/dist/venue-calendar.umd.js +42 -42
  54. package/dist/venue-calendar.umd.js.map +1 -1
  55. package/package.json +11 -3
  56. package/src/lib/theme.js +222 -222
  57. package/dist/CartView-DC_stfl4.js +0 -2348
  58. package/dist/CartView-DC_stfl4.js.map +0 -1
  59. package/dist/Checkout-Db6v9jHf.js.map +0 -1
  60. package/dist/Checkout-JvsT5PvE.js.map +0 -1
  61. package/dist/CheckoutTimer-3Hp1OSA3.js.map +0 -1
  62. package/dist/ClockIcon-CaqjP14C.js.map +0 -1
  63. package/dist/CollectionView-DXJfvNlt.js.map +0 -1
  64. package/dist/Event-BJRx05iL.js.map +0 -1
  65. package/dist/EventPage-E0tOQVFN.js +0 -940
  66. package/dist/EventPage-E0tOQVFN.js.map +0 -1
  67. package/dist/Heading-BbCHtFCM.js.map +0 -1
  68. package/dist/ScarcityBadge-iHyVN-k7.js.map +0 -1
  69. package/dist/SeriesPage-b9aAGbcb.js.map +0 -1
  70. package/dist/Spinner-DC99jWmt.js.map +0 -1
  71. package/dist/Success-H4fQrbfA.js.map +0 -1
  72. package/dist/Text-CKmfSVMa.js.map +0 -1
  73. package/dist/VenueCalendar-DmxiEy6q.js.map +0 -1
  74. package/dist/ViewTicketsEmbed-BKrQgPf8.js.map +0 -1
  75. package/dist/data-toggle-store.svelte-BEm-nTSr.js.map +0 -1
  76. package/dist/labels-DgU1irgj.js.map +0 -1
  77. package/dist/modalManager.svelte-Ddxmimtn.js.map +0 -1
  78. package/dist/transform-BOx8W51w.js.map +0 -1
@@ -1,30 +1,30 @@
1
1
  import "svelte/internal/disclose-version";
2
2
  import * as e from "svelte/internal/client";
3
3
  import { onMount as le, onDestroy as Te } from "svelte";
4
- import { u as ne, U as he, V as Ee, X as ze, Y as Se, Z as Pe, f as ae, _ as De, $ as Ae, a0 as Q, a1 as Ne, a2 as Ue, a3 as Me, a4 as Le, a5 as Oe, a6 as ve, a7 as Re, a8 as Ve, S as je, p as Fe } from "./VenueCalendar-DmxiEy6q.js";
5
- import { c as He, E as Be, L as qe, t as Ge } from "./transform-BOx8W51w.js";
6
- import { d as ee, m as Ze, a as We, b as Ye, c as Ke } from "./data-toggle-store.svelte-BEm-nTSr.js";
7
- import { O as Xe, C as ue, m as Je, c as Qe } from "./labels-DgU1irgj.js";
8
- import { C as _e, H as $e } from "./Heading-BbCHtFCM.js";
9
- import { T as $, I as et } from "./Text-CKmfSVMa.js";
10
- var tt = e.from_svg('<path d="M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"></path>'), rt = e.from_svg('<line x1="128" y1="144" x2="128" y2="32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line><polyline points="216 144 216 208 40 208 40 144" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline><polyline points="168 104 128 144 88 104" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline>', 1), at = e.from_svg('<svg aria-hidden="true" viewBox="0 0 256 256" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!></svg>');
11
- function st(h, t) {
4
+ import { u as ne, V as he, X as Ee, Y as Se, Z as ze, _ as Pe, g as ae, $ as De, a0 as Ae, a1 as Q, a2 as Ne, a3 as Ue, a4 as Me, a5 as Le, a6 as Oe, a7 as ve, a8 as Ve, a9 as Re, T as je, q as He } from "./VenueCalendar-Dhoi9hF5.js";
5
+ import { c as Fe, E as Be, L as qe, t as Ge } from "./transform-CVOgA-Ky.js";
6
+ import { d as ee, m as Ze, a as We, b as Ye, c as Ke, g as Xe } from "./showcase-state-options-BxLP2R1L.js";
7
+ import { O as Je, C as ue, m as Qe, c as $e } from "./labels-CGndTgO9.js";
8
+ import { C as _e, H as et } from "./Heading-C_Pc_j8f.js";
9
+ import { T as $, I as tt } from "./Text-tWGKQJab.js";
10
+ var rt = e.from_svg('<path d="M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"></path>'), at = e.from_svg('<line x1="128" y1="144" x2="128" y2="32" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line><polyline points="216 144 216 208 40 208 40 144" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline><polyline points="168 104 128 144 88 104" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline>', 1), st = e.from_svg('<svg aria-hidden="true" viewBox="0 0 256 256" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!></svg>');
11
+ function lt(h, t) {
12
12
  e.push(t, !0);
13
13
  let a = e.prop(t, "size", 3, "24"), _ = e.prop(t, "color", 3, "currentColor"), w = e.prop(t, "class", 3, "");
14
14
  const E = ne();
15
15
  let U = e.derived(() => t.weight ?? E?.weight ?? "regular");
16
- var r = at();
16
+ var r = st();
17
17
  let p;
18
- var S = e.child(r);
18
+ var z = e.child(r);
19
19
  {
20
20
  var n = (o) => {
21
- var m = tt();
21
+ var m = rt();
22
22
  e.append(o, m);
23
23
  }, x = (o) => {
24
- var m = rt();
24
+ var m = at();
25
25
  e.next(2), e.append(o, m);
26
26
  };
27
- e.if(S, (o) => {
27
+ e.if(z, (o) => {
28
28
  e.get(U) === "fill" ? o(n) : o(x, -1);
29
29
  });
30
30
  }
@@ -32,24 +32,24 @@ function st(h, t) {
32
32
  e.set_class(r, 0, e.clsx(w())), e.set_attribute(r, "width", a()), e.set_attribute(r, "height", a()), p = e.set_style(r, "", p, { color: _() });
33
33
  }), e.append(h, r), e.pop();
34
34
  }
35
- var lt = e.from_svg('<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z"></path>'), nt = e.from_svg('<circle cx="128" cy="180" r="12"></circle><path d="M128,144v-8c17.67,0,32-12.54,32-28s-14.33-28-32-28S96,92.54,96,108v4" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path><circle cx="128" cy="128" r="96" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></circle>', 1), it = e.from_svg('<svg aria-hidden="true" viewBox="0 0 256 256" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!></svg>');
36
- function ot(h, t) {
35
+ var nt = e.from_svg('<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,168a12,12,0,1,1,12-12A12,12,0,0,1,128,192Zm8-48.72V144a8,8,0,0,1-16,0v-8a8,8,0,0,1,8-8c13.23,0,24-9,24-20s-10.77-20-24-20-24,9-24,20v4a8,8,0,0,1-16,0v-4c0-19.85,17.94-36,40-36s40,16.15,40,36C168,125.38,154.24,139.93,136,143.28Z"></path>'), it = e.from_svg('<circle cx="128" cy="180" r="12"></circle><path d="M128,144v-8c17.67,0,32-12.54,32-28s-14.33-28-32-28S96,92.54,96,108v4" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path><circle cx="128" cy="128" r="96" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></circle>', 1), ot = e.from_svg('<svg aria-hidden="true" viewBox="0 0 256 256" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!></svg>');
36
+ function dt(h, t) {
37
37
  e.push(t, !0);
38
38
  let a = e.prop(t, "size", 3, "24"), _ = e.prop(t, "color", 3, "currentColor"), w = e.prop(t, "class", 3, "");
39
39
  const E = ne();
40
40
  let U = e.derived(() => t.weight ?? E?.weight ?? "regular");
41
- var r = it();
41
+ var r = ot();
42
42
  let p;
43
- var S = e.child(r);
43
+ var z = e.child(r);
44
44
  {
45
45
  var n = (o) => {
46
- var m = lt();
46
+ var m = nt();
47
47
  e.append(o, m);
48
48
  }, x = (o) => {
49
- var m = nt();
49
+ var m = it();
50
50
  e.next(2), e.append(o, m);
51
51
  };
52
- e.if(S, (o) => {
52
+ e.if(z, (o) => {
53
53
  e.get(U) === "fill" ? o(n) : o(x, -1);
54
54
  });
55
55
  }
@@ -57,24 +57,24 @@ function ot(h, t) {
57
57
  e.set_class(r, 0, e.clsx(w())), e.set_attribute(r, "width", a()), e.set_attribute(r, "height", a()), p = e.set_style(r, "", p, { color: _() });
58
58
  }), e.append(h, r), e.pop();
59
59
  }
60
- var dt = e.from_svg('<path d="M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"></path>'), ct = e.from_svg('<polyline points="224 56 128 144 32 56" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline><path d="M32,56H224a0,0,0,0,1,0,0V192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56A0,0,0,0,1,32,56Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path><line x1="110.55" y1="128" x2="34.47" y2="197.74" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line><line x1="221.53" y1="197.74" x2="145.45" y2="128" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line>', 1), vt = e.from_svg('<svg aria-hidden="true" viewBox="0 0 256 256" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!></svg>');
61
- function ut(h, t) {
60
+ var ct = e.from_svg('<path d="M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM98.71,128,40,181.81V74.19Zm11.84,10.85,12,11.05a8,8,0,0,0,10.82,0l12-11.05,58,53.15H52.57ZM157.29,128,216,74.18V181.82Z"></path>'), vt = e.from_svg('<polyline points="224 56 128 144 32 56" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline><path d="M32,56H224a0,0,0,0,1,0,0V192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V56A0,0,0,0,1,32,56Z" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></path><line x1="110.55" y1="128" x2="34.47" y2="197.74" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line><line x1="221.53" y1="197.74" x2="145.45" y2="128" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></line>', 1), ut = e.from_svg('<svg aria-hidden="true" viewBox="0 0 256 256" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!></svg>');
61
+ function gt(h, t) {
62
62
  e.push(t, !0);
63
63
  let a = e.prop(t, "size", 3, "24"), _ = e.prop(t, "color", 3, "currentColor"), w = e.prop(t, "class", 3, "");
64
64
  const E = ne();
65
65
  let U = e.derived(() => t.weight ?? E?.weight ?? "regular");
66
- var r = vt();
66
+ var r = ut();
67
67
  let p;
68
- var S = e.child(r);
68
+ var z = e.child(r);
69
69
  {
70
70
  var n = (o) => {
71
- var m = dt();
71
+ var m = ct();
72
72
  e.append(o, m);
73
73
  }, x = (o) => {
74
- var m = ct();
74
+ var m = vt();
75
75
  e.next(3), e.append(o, m);
76
76
  };
77
- e.if(S, (o) => {
77
+ e.if(z, (o) => {
78
78
  e.get(U) === "fill" ? o(n) : o(x, -1);
79
79
  });
80
80
  }
@@ -83,30 +83,30 @@ function ut(h, t) {
83
83
  }), e.append(h, r), e.pop();
84
84
  }
85
85
  const be = (h) => `micdrop_pending_validate_${h}`;
86
- function gt(h) {
86
+ function mt(h) {
87
87
  return h ? he(be(h), null) : null;
88
88
  }
89
89
  function ge(h) {
90
90
  h && Ee(be(h));
91
91
  }
92
- var mt = e.from_html('<div class="p-6 md:p-8"><div class="flex justify-center mb-6"><div class="indicator-container svelte-667vry"><div></div> <svg viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="24" class="checkmark-circle svelte-667vry"></circle><circle cx="26" cy="26" r="24" class="checkmark-fill svelte-667vry"></circle><path d="M14 27l7 7 17-17" class="checkmark-check svelte-667vry"></path></svg></div></div> <div><div class="flex flex-col gap-3 text-center mb-6"><!> <!> <!></div> <div class="mb-6"><!></div> <div class="flex justify-between items-center py-3 border-t border-default"><!></div> <div class="flex items-center justify-center gap-2 p-3 rounded-lg bg-surface-secondary mt-4"><!> <!></div></div></div>');
92
+ var ft = e.from_html('<div class="p-6 md:p-8"><div class="flex justify-center mb-6"><div class="indicator-container svelte-667vry"><div></div> <svg viewBox="0 0 52 52" aria-hidden="true"><circle cx="26" cy="26" r="24" class="checkmark-circle svelte-667vry"></circle><circle cx="26" cy="26" r="24" class="checkmark-fill svelte-667vry"></circle><path d="M14 27l7 7 17-17" class="checkmark-check svelte-667vry"></path></svg></div></div> <div><div class="flex flex-col gap-3 text-center mb-6"><!> <!> <!></div> <div class="mb-6"><!></div> <div class="flex justify-between items-center py-3 border-t border-default"><!></div> <div class="flex items-center justify-center gap-2 p-3 rounded-lg bg-surface-secondary mt-4"><!> <!></div></div></div>');
93
93
  function me(h, t) {
94
94
  e.push(t, !0);
95
- let a = e.prop(t, "labels", 19, () => ({})), _ = e.derived(() => t.orderTotals.lines.reduce((E, U) => E + U.quantity, 0)), w = e.derived(() => t.event.isRegistrationEvent ? a().youreRegistered || "You're registered!" : a().youreIn || "You're in!");
95
+ let a = e.prop(t, "labels", 19, () => ({})), _ = e.derived(() => t.orderTotals.lines.reduce((E, U) => E + U.quantity, 0)), w = e.derived(() => t.event.isRegistrationEvent ? a().youreRegistered || "You're registered" : a().youreIn || "You're in");
96
96
  _e(h, {
97
97
  border: !0,
98
98
  padding: !1,
99
99
  class: "rounded-xl shadow-lg overflow-hidden bg-surface-primary",
100
100
  children: (E, U) => {
101
- var r = mt(), p = e.child(r), S = e.child(p), n = e.child(S);
101
+ var r = ft(), p = e.child(r), z = e.child(p), n = e.child(z);
102
102
  let x;
103
103
  var o = e.sibling(n, 2);
104
104
  let m;
105
- e.reset(S), e.reset(p);
105
+ e.reset(z), e.reset(p);
106
106
  var C = e.sibling(p, 2);
107
- let R;
107
+ let V;
108
108
  var B = e.child(C), b = e.child(B);
109
- $e(b, {
109
+ et(b, {
110
110
  level: 1,
111
111
  size: "xl",
112
112
  weight: "bold",
@@ -142,8 +142,8 @@ function me(h, t) {
142
142
  },
143
143
  $$slots: { default: !0 }
144
144
  }), e.reset(B);
145
- var D = e.sibling(B, 2), V = e.child(D);
146
- Xe(V, {
145
+ var D = e.sibling(B, 2), R = e.child(D);
146
+ Je(R, {
147
147
  get orderTotals() {
148
148
  return t.orderTotals;
149
149
  },
@@ -164,7 +164,7 @@ function me(h, t) {
164
164
  $$slots: { default: !0 }
165
165
  }), e.reset(j);
166
166
  var L = e.sibling(j, 2), i = e.child(L);
167
- ut(i, { size: "16", class: "shrink-0 text-color-muted" });
167
+ gt(i, { size: "16", class: "shrink-0 text-color-muted" });
168
168
  var u = e.sibling(i, 2);
169
169
  $(u, {
170
170
  size: "xs",
@@ -177,17 +177,17 @@ function me(h, t) {
177
177
  },
178
178
  $$slots: { default: !0 }
179
179
  }), e.reset(L), e.reset(C), e.reset(r), e.template_effect(() => {
180
- x = e.set_class(n, 1, "processing-spinner svelte-667vry", null, x, { "fade-out": t.showCheckmark }), m = e.set_class(o, 0, "checkmark-svg svelte-667vry", null, m, { active: t.showCheckmark }), R = e.set_class(C, 1, "content-section svelte-667vry", null, R, { visible: t.showContent });
180
+ x = e.set_class(n, 1, "processing-spinner svelte-667vry", null, x, { "fade-out": t.showCheckmark }), m = e.set_class(o, 0, "checkmark-svg svelte-667vry", null, m, { active: t.showCheckmark }), V = e.set_class(C, 1, "content-section svelte-667vry", null, V, { visible: t.showContent });
181
181
  }), e.append(E, r);
182
182
  },
183
183
  $$slots: { default: !0 }
184
184
  }), e.pop();
185
185
  }
186
- var ft = e.from_html(" <!>", 1), pt = e.from_html('<p class="wallet-note caption svelte-4szgdz" role="status"> </p>'), ht = e.from_html("<!> <!>", 1), _t = e.from_html('<div class="dropdown-menu bg-surface-primary border-default svelte-4szgdz"><a rel="noopener noreferrer" class="dropdown-item text-color-primary hover:bg-surface-secondary svelte-4szgdz"><svg aria-hidden="true" class="shrink-0" width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z" fill="#4285F4"></path><path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" fill="#34A853"></path><path d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18A10.96 10.96 0 0 0 1 12c0 1.77.42 3.45 1.18 4.93l3.66-2.84z" fill="#FBBC05"></path><path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" fill="#EA4335"></path></svg> </a> <button type="button" class="dropdown-item text-color-primary hover:bg-surface-secondary svelte-4szgdz"><!> </button></div>'), fe = e.from_html("<!> ", 1), bt = e.from_html('<p class="copy-fallback caption svelte-4szgdz" role="alert">Copy failed — select to copy: <span class="copy-url svelte-4szgdz"> </span></p>'), kt = e.from_html('<span class="text-color-muted">·</span> <a class="text-link text-color-muted hover:text-color-secondary svelte-4szgdz"><!> </a>', 1), xt = e.from_html('<div class="rounded-t-xl overflow-hidden bg-surface-tertiary"><!></div> <div class="p-5 space-y-4"><div><!> <div class="flex items-center gap-1.5 mt-1.5"><!> <!></div> <div class="mt-0.5"><!></div></div> <div class="flex flex-col items-center gap-3"><button type="button" class="wallet-badge-btn svelte-4szgdz"><img src="/wallet-badges/apple-wallet.svg" class="wallet-badge-img svelte-4szgdz"/></button> <button type="button" class="wallet-badge-btn svelte-4szgdz"><img src="/wallet-badges/google-wallet-dark.svg" class="wallet-badge-img google-dark svelte-4szgdz"/> <img src="/wallet-badges/google-wallet-light.svg" class="wallet-badge-img google-light svelte-4szgdz"/></button> <!></div> <div class="divider"></div> <div class="calendar-dropdown relative"><!> <!></div> <div class="flex gap-2"><!> <!></div> <!> <div class="flex items-center justify-center gap-4 pt-1"><button type="button" class="text-link text-color-muted hover:text-color-secondary svelte-4szgdz"><!> </button> <!></div></div>', 1), yt = e.from_html("<div><!></div>");
186
+ var pt = e.from_html(" <!>", 1), ht = e.from_html('<p class="wallet-note caption svelte-4szgdz" role="status"> </p>'), _t = e.from_html("<!> <!>", 1), bt = e.from_html('<div class="dropdown-menu bg-surface-primary border-default svelte-4szgdz"><a rel="noopener noreferrer" class="dropdown-item text-color-primary hover:bg-surface-secondary svelte-4szgdz"><svg aria-hidden="true" class="shrink-0" width="16" height="16" viewBox="0 0 24 24" fill="none"><path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z" fill="#4285F4"></path><path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" fill="#34A853"></path><path d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18A10.96 10.96 0 0 0 1 12c0 1.77.42 3.45 1.18 4.93l3.66-2.84z" fill="#FBBC05"></path><path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" fill="#EA4335"></path></svg> </a> <button type="button" class="dropdown-item text-color-primary hover:bg-surface-secondary svelte-4szgdz"><!> </button></div>'), fe = e.from_html("<!> ", 1), kt = e.from_html('<p class="copy-fallback caption svelte-4szgdz" role="alert">Copy failed — select to copy: <span class="copy-url svelte-4szgdz"> </span></p>'), xt = e.from_html('<span class="text-color-muted">·</span> <a class="text-link text-color-muted hover:text-color-secondary svelte-4szgdz"><!> </a>', 1), yt = e.from_html('<div class="rounded-t-xl overflow-hidden bg-surface-tertiary"><!></div> <div class="p-5 space-y-4"><div><!> <div class="flex items-center gap-1.5 mt-1.5"><!> <!></div> <div class="mt-0.5"><!></div></div> <div class="flex flex-col items-center gap-3"><button type="button" class="wallet-badge-btn svelte-4szgdz"><img src="/wallet-badges/apple-wallet.svg" class="wallet-badge-img svelte-4szgdz"/></button> <button type="button" class="wallet-badge-btn svelte-4szgdz"><img src="/wallet-badges/google-wallet-dark.svg" class="wallet-badge-img google-dark svelte-4szgdz"/> <img src="/wallet-badges/google-wallet-light.svg" class="wallet-badge-img google-light svelte-4szgdz"/></button> <!></div> <div class="divider"></div> <div class="calendar-dropdown relative"><!> <!></div> <div class="flex gap-2"><!> <!></div> <!> <div class="flex items-center justify-center gap-4 pt-1"><button type="button" class="text-link text-color-muted hover:text-color-secondary svelte-4szgdz"><!> </button> <!></div></div>', 1), wt = e.from_html("<div><!></div>");
187
187
  function pe(h, t) {
188
188
  e.push(t, !0);
189
189
  let a = e.prop(t, "labels", 19, () => ({})), _ = e.state(!1);
190
- const w = He();
190
+ const w = Fe();
191
191
  let E = e.state("");
192
192
  function U() {
193
193
  e.set(_, !e.get(_));
@@ -202,12 +202,12 @@ function pe(h, t) {
202
202
  const b = new Date(t.event.startDateTime), P = t.event.endDateTime ? new Date(t.event.endDateTime) : (
203
203
  // @datetime-escape: ICS/calendar-URL instant serialized to UTC — tz-independent
204
204
  new Date(b.getTime() + 7200 * 1e3)
205
- ), y = (M) => M.toISOString().replace(/[-:]/g, "").replace(/\.\d{3}/, ""), V = [t.event.venue.name, t.event.venue.address].filter(Boolean).join(", ");
205
+ ), y = (M) => M.toISOString().replace(/[-:]/g, "").replace(/\.\d{3}/, ""), R = [t.event.venue.name, t.event.venue.address].filter(Boolean).join(", ");
206
206
  return `https://calendar.google.com/calendar/render?${new URLSearchParams({
207
207
  action: "TEMPLATE",
208
208
  text: t.event.title,
209
209
  dates: `${y(b)}/${y(P)}`,
210
- location: V,
210
+ location: R,
211
211
  details: `Event: ${t.eventUrl}
212
212
 
213
213
  Ticket confirmation #${t.orderId}`
@@ -217,14 +217,14 @@ Ticket confirmation #${t.orderId}`
217
217
  const b = new Date(t.event.startDateTime), P = t.event.endDateTime ? new Date(t.event.endDateTime) : (
218
218
  // @datetime-escape: ICS/calendar-URL instant serialized to UTC — tz-independent
219
219
  new Date(b.getTime() + 7200 * 1e3)
220
- ), y = (s) => s.toISOString().replace(/[-:]/g, "").replace(/\.\d{3}/, ""), D = `order-${t.orderId}-event-${t.event.id}@micdrop.com`, V = y(/* @__PURE__ */ new Date()), M = [t.event.venue.name, t.event.venue.address].filter(Boolean).join(", "), L = (s) => s ? s.replace(/\\/g, "\\\\").replace(/;/g, "\\;").replace(/,/g, "\\,").replace(/\n/g, "\\n") : "", i = `BEGIN:VCALENDAR
220
+ ), y = (s) => s.toISOString().replace(/[-:]/g, "").replace(/\.\d{3}/, ""), D = `order-${t.orderId}-event-${t.event.id}@micdrop.com`, R = y(/* @__PURE__ */ new Date()), M = [t.event.venue.name, t.event.venue.address].filter(Boolean).join(", "), L = (s) => s ? s.replace(/\\/g, "\\\\").replace(/;/g, "\\;").replace(/,/g, "\\,").replace(/\n/g, "\\n") : "", i = `BEGIN:VCALENDAR
221
221
  VERSION:2.0
222
222
  PRODID:-//MicDrop//Ticket Confirmation//EN
223
223
  CALSCALE:GREGORIAN
224
224
  METHOD:PUBLISH
225
225
  BEGIN:VEVENT
226
226
  UID:${D}
227
- DTSTAMP:${V}
227
+ DTSTAMP:${R}
228
228
  DTSTART:${y(b)}
229
229
  DTEND:${y(P)}
230
230
  SUMMARY:${L(t.event.title)}
@@ -246,7 +246,7 @@ END:VCALENDAR`, u = new Blob([i], { type: "text/calendar;charset=utf-8" }), l =
246
246
  }
247
247
  e.set(_, !1);
248
248
  }
249
- function S() {
249
+ function z() {
250
250
  e.set(_, !1);
251
251
  }
252
252
  function n() {
@@ -263,16 +263,16 @@ END:VCALENDAR`, u = new Blob([i], { type: "text/calendar;charset=utf-8" }), l =
263
263
  function m() {
264
264
  window.location.href = t.eventUrl;
265
265
  }
266
- var C = yt();
267
- let R;
266
+ var C = wt();
267
+ let V;
268
268
  var B = e.child(C);
269
269
  _e(B, {
270
270
  border: !0,
271
271
  padding: !1,
272
272
  class: "rounded-xl shadow-lg overflow-hidden bg-surface-secondary",
273
273
  children: (b, P) => {
274
- var y = xt(), D = e.first_child(y), V = e.child(D);
275
- et(V, {
274
+ var y = yt(), D = e.first_child(y), R = e.child(D);
275
+ tt(R, {
276
276
  get src() {
277
277
  return t.event.imageUrl;
278
278
  },
@@ -280,7 +280,7 @@ END:VCALENDAR`, u = new Blob([i], { type: "text/calendar;charset=utf-8" }), l =
280
280
  return t.event.title;
281
281
  },
282
282
  get fallback() {
283
- return ze;
283
+ return Se;
284
284
  },
285
285
  fit: "contain",
286
286
  class: "w-full max-h-60 min-h-24"
@@ -305,7 +305,7 @@ END:VCALENDAR`, u = new Blob([i], { type: "text/calendar;charset=utf-8" }), l =
305
305
  color: "muted",
306
306
  children: (v, k) => {
307
307
  e.next();
308
- var d = ft(), T = e.first_child(d), N = e.sibling(T);
308
+ var d = pt(), T = e.first_child(d), N = e.sibling(T);
309
309
  {
310
310
  var K = (W) => {
311
311
  var ce = e.text();
@@ -318,7 +318,7 @@ END:VCALENDAR`, u = new Blob([i], { type: "text/calendar;charset=utf-8" }), l =
318
318
  });
319
319
  }
320
320
  e.template_effect((W) => e.set_text(T, `${W ?? ""} `), [
321
- () => Se(t.event.startDateTime, t.event.timezone)
321
+ () => ze(t.event.startDateTime, t.event.timezone)
322
322
  ]), e.append(v, d);
323
323
  },
324
324
  $$slots: { default: !0 }
@@ -335,29 +335,29 @@ END:VCALENDAR`, u = new Blob([i], { type: "text/calendar;charset=utf-8" }), l =
335
335
  },
336
336
  $$slots: { default: !0 }
337
337
  }), e.reset(s), e.reset(M);
338
- var z = e.sibling(M, 2), I = e.child(z), A = e.child(I);
338
+ var S = e.sibling(M, 2), I = e.child(S), A = e.child(I);
339
339
  e.reset(I);
340
- var q = e.sibling(I, 2), F = e.child(q), G = e.sibling(F, 2);
340
+ var q = e.sibling(I, 2), H = e.child(q), G = e.sibling(H, 2);
341
341
  e.reset(q);
342
342
  var Z = e.sibling(q, 2);
343
343
  {
344
344
  var Y = (v) => {
345
- var k = pt(), d = e.child(k, !0);
345
+ var k = ht(), d = e.child(k, !0);
346
346
  e.reset(k), e.template_effect(() => e.set_text(d, e.get(E))), e.append(v, k);
347
347
  };
348
348
  e.if(Z, (v) => {
349
349
  e.get(E) && v(Y);
350
350
  });
351
351
  }
352
- e.reset(z);
353
- var X = e.sibling(z, 4), g = e.child(X);
352
+ e.reset(S);
353
+ var X = e.sibling(S, 4), g = e.child(X);
354
354
  ae(g, {
355
355
  variant: "default",
356
356
  size: "md",
357
357
  class: "w-full",
358
358
  onclick: U,
359
359
  children: (v, k) => {
360
- var d = ht(), T = e.first_child(d);
360
+ var d = _t(), T = e.first_child(d);
361
361
  ue(T, { size: "16" });
362
362
  var N = e.sibling(T), K = e.sibling(N);
363
363
  {
@@ -369,24 +369,24 @@ END:VCALENDAR`, u = new Blob([i], { type: "text/calendar;charset=utf-8" }), l =
369
369
  }
370
370
  });
371
371
  }
372
- e.template_effect(() => e.set_text(N, ` ${(a().addToCalendar || "Add to Calendar") ?? ""} `)), e.append(v, d);
372
+ e.template_effect(() => e.set_text(N, ` ${(a().addToCalendar || "Add to calendar") ?? ""} `)), e.append(v, d);
373
373
  },
374
374
  $$slots: { default: !0 }
375
375
  });
376
376
  var O = e.sibling(g, 2);
377
377
  {
378
- var H = (v) => {
379
- var k = _t(), d = e.child(k), T = e.sibling(e.child(d));
378
+ var F = (v) => {
379
+ var k = bt(), d = e.child(k), T = e.sibling(e.child(d));
380
380
  e.reset(d);
381
381
  var N = e.sibling(d, 2), K = e.child(N);
382
- st(K, { size: "16", class: "shrink-0" });
382
+ lt(K, { size: "16", class: "shrink-0" });
383
383
  var W = e.sibling(K);
384
384
  e.reset(N), e.reset(k), e.template_effect(() => {
385
385
  e.set_attribute(d, "href", e.get(r)), e.set_text(T, ` ${(a().googleCalendar || "Google Calendar") ?? ""}`), e.set_text(W, ` ${(a().appleCalendar || "Apple Calendar (.ics)") ?? ""}`);
386
- }), e.delegated("click", d, S), e.delegated("click", N, p), e.append(v, k);
386
+ }), e.delegated("click", d, z), e.delegated("click", N, p), e.append(v, k);
387
387
  };
388
388
  e.if(O, (v) => {
389
- e.get(_) && v(H);
389
+ e.get(_) && v(F);
390
390
  });
391
391
  }
392
392
  e.reset(X);
@@ -431,7 +431,7 @@ END:VCALENDAR`, u = new Blob([i], { type: "text/calendar;charset=utf-8" }), l =
431
431
  var ie = e.sibling(f, 2);
432
432
  {
433
433
  var xe = (v) => {
434
- var k = bt(), d = e.sibling(e.child(k)), T = e.child(d, !0);
434
+ var k = kt(), d = e.sibling(e.child(k)), T = e.child(d, !0);
435
435
  e.reset(d), e.reset(k), e.template_effect(() => e.set_text(T, w.copyFailedUrl)), e.append(v, k);
436
436
  };
437
437
  e.if(ie, (v) => {
@@ -445,8 +445,8 @@ END:VCALENDAR`, u = new Blob([i], { type: "text/calendar;charset=utf-8" }), l =
445
445
  var we = e.sibling(re, 2);
446
446
  {
447
447
  var Ce = (v) => {
448
- var k = kt(), d = e.sibling(e.first_child(k), 2), T = e.child(d);
449
- ot(T, { size: "16", class: "shrink-0" });
448
+ var k = xt(), d = e.sibling(e.first_child(k), 2), T = e.child(d);
449
+ dt(T, { size: "16", class: "shrink-0" });
450
450
  var N = e.sibling(T);
451
451
  e.reset(d), e.template_effect(() => {
452
452
  e.set_attribute(d, "href", `mailto:${t.event.venue.contactEmail ?? ""}?subject=Help with Order ${t.orderId ?? ""}`), e.set_text(N, ` ${(a().needHelp || "Need help?") ?? ""}`);
@@ -457,36 +457,19 @@ END:VCALENDAR`, u = new Blob([i], { type: "text/calendar;charset=utf-8" }), l =
457
457
  });
458
458
  }
459
459
  e.reset(oe), e.reset(j), e.template_effect(() => {
460
- e.set_attribute(A, "alt", a().addToAppleWallet || "Add to Apple Wallet"), e.set_attribute(F, "alt", a().saveToGoogleWallet || "Save to Google Wallet"), e.set_attribute(G, "alt", a().saveToGoogleWallet || "Save to Google Wallet"), e.set_text(ye, ` ${(a().backToEvent || "Back to event") ?? ""}`);
460
+ e.set_attribute(A, "alt", a().addToAppleWallet || "Add to Apple Wallet"), e.set_attribute(H, "alt", a().saveToGoogleWallet || "Save to Google Wallet"), e.set_attribute(G, "alt", a().saveToGoogleWallet || "Save to Google Wallet"), e.set_text(ye, ` ${(a().backToEvent || "Back to event") ?? ""}`);
461
461
  }), e.delegated("click", I, x), e.delegated("click", q, x), e.delegated("click", re, m), e.append(b, y);
462
462
  },
463
463
  $$slots: { default: !0 }
464
- }), e.reset(C), e.template_effect(() => R = e.set_class(C, 1, "actions-wrapper svelte-4szgdz", null, R, { visible: t.showContent })), e.append(h, C), e.pop();
464
+ }), e.reset(C), e.template_effect(() => V = e.set_class(C, 1, "actions-wrapper svelte-4szgdz", null, V, { visible: t.showContent })), e.append(h, C), e.pop();
465
465
  }
466
466
  e.delegate(["click"]);
467
- var wt = e.from_html('<div class="w-full min-h-screen bg-surface-primary text-color-primary"><div class="max-w-6xl mx-auto px-4 py-6 md:px-6 md:py-8"><div class="hidden md:grid grid-cols-booking-split gap-8 items-start"><!> <div class="sticky top-6"><!></div></div> <div class="md:hidden space-y-6"><!> <!></div></div></div>');
468
- function Ct(h, t) {
467
+ var Ct = e.from_html('<div class="w-full min-h-screen bg-surface-primary text-color-primary"><div class="max-w-6xl mx-auto px-4 py-6 md:px-6 md:py-8"><div class="hidden md:grid grid-cols-booking-split gap-8 items-start"><!> <div class="sticky top-6"><!></div></div> <div class="md:hidden space-y-6"><!> <!></div></div></div>');
468
+ function It(h, t) {
469
469
  e.push(t, !0);
470
- const a = [
471
- {
472
- value: "default",
473
- label: "Standard",
474
- color: "bg-accent-success"
475
- },
476
- { value: "free", label: "Free", color: "bg-sky-500" },
477
- {
478
- value: "registration",
479
- label: "Registration",
480
- color: "bg-brand-primary"
481
- },
482
- {
483
- value: "donation",
484
- label: "Donation",
485
- color: "bg-accent-danger"
486
- }
487
- ];
470
+ const a = Xe();
488
471
  let _ = e.derived(() => ee.current), w = e.prop(t, "data", 3, void 0), E = e.prop(t, "eventUrl", 3, void 0), U = e.prop(t, "labels", 19, () => ({}));
489
- const r = e.derived(() => Je(U()));
472
+ const r = e.derived(() => Qe(U()));
490
473
  let p = e.derived(() => !w());
491
474
  e.user_effect(() => {
492
475
  if (e.get(p))
@@ -494,7 +477,7 @@ function Ct(h, t) {
494
477
  ee.isActive = !1, ee.options = [];
495
478
  };
496
479
  });
497
- const S = {
480
+ const z = {
498
481
  default: {
499
482
  event: Ke,
500
483
  orderId: "12847",
@@ -578,7 +561,7 @@ function Ct(h, t) {
578
561
  customerEmail: "generous@example.com"
579
562
  }
580
563
  };
581
- let n = e.derived(() => e.get(p) ? S[e.get(_)] : w()), x = e.derived(() => (() => {
564
+ let n = e.derived(() => e.get(p) ? z[e.get(_)] : w()), x = e.derived(() => (() => {
582
565
  const u = e.get(n).lines;
583
566
  if (e.get(n).serverTotals)
584
567
  return {
@@ -590,7 +573,7 @@ function Ct(h, t) {
590
573
  promoDiscount: e.get(n).serverTotals.promoDiscount,
591
574
  giftCardAmount: e.get(n).serverTotals.giftCardAmount
592
575
  };
593
- const l = u.reduce((z, I) => z + I.subtotal, 0), s = u.reduce((z, I) => z + I.fee * I.quantity, 0), c = Qe(l + s, e.get(n).event.venue.taxPercentage);
576
+ const l = u.reduce((S, I) => S + I.subtotal, 0), s = u.reduce((S, I) => S + I.fee * I.quantity, 0), c = $e(l + s, e.get(n).event.venue.taxPercentage);
594
577
  return {
595
578
  lines: u,
596
579
  subtotal: l,
@@ -600,9 +583,9 @@ function Ct(h, t) {
600
583
  promoDiscount: 0,
601
584
  giftCardAmount: 0
602
585
  };
603
- })()), o = e.derived(() => e.get(p) ? typeof window > "u" ? "#" : `${window.location.origin}/e/${e.get(n).event.id}-${e.get(n).event.slug}` : E() || "#"), m = e.state(!1), C = e.state(!1), R = e.state(!1);
586
+ })()), o = e.derived(() => e.get(p) ? typeof window > "u" ? "#" : `${window.location.origin}/e/${e.get(n).event.id}-${e.get(n).event.slug}` : E() || "#"), m = e.state(!1), C = e.state(!1), V = e.state(!1);
604
587
  function B() {
605
- if (e.get(R)) {
588
+ if (e.get(V)) {
606
589
  e.set(m, !0), e.set(C, !0);
607
590
  return;
608
591
  }
@@ -621,9 +604,9 @@ function Ct(h, t) {
621
604
  e.user_effect(() => {
622
605
  e.get(p) && (e.get(_), B());
623
606
  }), le(() => {
624
- e.set(R, window.matchMedia("(prefers-reduced-motion: reduce)").matches, !0), B();
607
+ e.set(V, window.matchMedia("(prefers-reduced-motion: reduce)").matches, !0), B();
625
608
  });
626
- var b = wt(), P = e.child(b), y = e.child(P), D = e.child(y);
609
+ var b = Ct(), P = e.child(b), y = e.child(P), D = e.child(y);
627
610
  me(D, {
628
611
  get event() {
629
612
  return e.get(n).event;
@@ -647,7 +630,7 @@ function Ct(h, t) {
647
630
  return e.get(r);
648
631
  }
649
632
  });
650
- var V = e.sibling(D, 2), j = e.child(V);
633
+ var R = e.sibling(D, 2), j = e.child(R);
651
634
  pe(j, {
652
635
  get event() {
653
636
  return e.get(n).event;
@@ -664,7 +647,7 @@ function Ct(h, t) {
664
647
  get labels() {
665
648
  return e.get(r);
666
649
  }
667
- }), e.reset(V), e.reset(y);
650
+ }), e.reset(R), e.reset(y);
668
651
  var M = e.sibling(y, 2), L = e.child(M);
669
652
  me(L, {
670
653
  get event() {
@@ -708,14 +691,14 @@ function Ct(h, t) {
708
691
  }
709
692
  }), e.reset(M), e.reset(P), e.reset(b), e.append(h, b), e.pop();
710
693
  }
711
- const se = Fe("Success");
712
- var It = e.from_html('<p class="payment-failed-title svelte-1mm1psu"> </p> <p class="payment-failed-message svelte-1mm1psu"> </p>', 1), Tt = e.from_html('<p class="payment-failed-title svelte-1mm1psu"> </p> <p class="payment-failed-message svelte-1mm1psu"> </p> <a class="payment-failed-retry svelte-1mm1psu"> </a>', 1), Et = e.from_html('<div class="flex flex-col items-center justify-center py-24 text-center gap-4 payment-failed-container"><!></div>'), zt = e.from_html('<div class="flex flex-col items-center justify-center py-24 text-center gap-4 error-container svelte-1mm1psu"><p class="svelte-1mm1psu"> </p></div>'), St = e.from_html('<div class="flex items-center justify-center py-24 text-center loading-container svelte-1mm1psu"><p> </p></div>');
694
+ const se = He("Success");
695
+ var Tt = e.from_html('<p class="payment-failed-title svelte-1mm1psu"> </p> <p class="payment-failed-message svelte-1mm1psu"> </p>', 1), Et = e.from_html('<p class="payment-failed-title svelte-1mm1psu"> </p> <p class="payment-failed-message svelte-1mm1psu"> </p> <a class="payment-failed-retry svelte-1mm1psu"> </a>', 1), St = e.from_html('<div class="flex flex-col items-center justify-center py-24 text-center gap-4 payment-failed-container"><!></div>'), zt = e.from_html('<div class="flex flex-col items-center justify-center py-24 text-center gap-4 error-container svelte-1mm1psu"><p class="svelte-1mm1psu"> </p></div>'), Pt = e.from_html('<div class="flex items-center justify-center py-24 text-center loading-container svelte-1mm1psu"><p> </p></div>');
713
696
  function Rt(h, t) {
714
697
  e.push(t, !0);
715
- let a = e.prop(t, "data", 19, () => ({})), _ = e.prop(t, "browseUrl", 3, "/"), w = e.prop(t, "eventUrl", 3, void 0), E = e.prop(t, "widgetId", 3, null), U = e.prop(t, "venueId", 3, null), r = e.prop(t, "labels", 19, () => ({})), p = e.state(null), S = e.state(""), n = e.state(null), x = e.state(!0), o = e.derived(() => String(a()?.redirectStatus || "")), m = e.derived(() => e.get(o) !== "" && e.get(o) !== "succeeded"), C = e.derived(() => e.get(o) === "pending" || e.get(o) === "processing"), R = e.state(!1), B = e.state(!1), b = e.derived(() => a()?.id && a()?.slug ? `/${a().id}/${a().slug}` : _());
698
+ let a = e.prop(t, "data", 19, () => ({})), _ = e.prop(t, "browseUrl", 3, "/"), w = e.prop(t, "eventUrl", 3, void 0), E = e.prop(t, "widgetId", 3, null), U = e.prop(t, "venueId", 3, null), r = e.prop(t, "labels", 19, () => ({})), p = e.state(null), z = e.state(""), n = e.state(null), x = e.state(!0), o = e.derived(() => String(a()?.redirectStatus || "")), m = e.derived(() => e.get(o) !== "" && e.get(o) !== "succeeded"), C = e.derived(() => e.get(o) === "pending" || e.get(o) === "processing"), V = e.state(!1), B = e.state(!1), b = e.derived(() => a()?.id && a()?.slug ? `/${a().id}/${a().slug}` : _());
716
699
  async function P(i, u) {
717
700
  if (!i) return "unconfirmed";
718
- const l = gt(i);
701
+ const l = mt(i);
719
702
  if (l && u) {
720
703
  const s = await je(i, { ...l, id: i, paymentIntentId: u });
721
704
  if (s?.success)
@@ -738,7 +721,7 @@ function Rt(h, t) {
738
721
  if (e.get(o) === "succeeded") {
739
722
  const g = String(a()?.orderId || a()?.orderUuid || ""), O = await P(g, String(a()?.paymentIntentId || ""));
740
723
  if (O !== "ok") {
741
- O === "no-charge" ? e.set(B, !0) : e.set(R, !0), e.set(x, !1);
724
+ O === "no-charge" ? e.set(B, !0) : e.set(V, !0), e.set(x, !1);
742
725
  return;
743
726
  }
744
727
  }
@@ -752,7 +735,7 @@ function Rt(h, t) {
752
735
  // CalendarContainer hands the buyer email straight to this component. The
753
736
  // full-page route never sources it from the URL/loader — email there comes
754
737
  // from getOrder(orderId) below. Buyer email is PII and must not ride in a URL.
755
- customerEmail: z,
738
+ customerEmail: S,
756
739
  ticketCount: I,
757
740
  // Order total + currency threaded from Checkout → CalendarContainer
758
741
  // (MISSION-TRUTH C6). Present on the embed purchase path; undefined on the
@@ -763,41 +746,41 @@ function Rt(h, t) {
763
746
  {
764
747
  const { postMessageOnSuccess: g, postMessageTargetOrigin: O } = Ne();
765
748
  if (g) {
766
- const H = {
749
+ const F = {
767
750
  orderId: String(s || c || ""),
768
751
  eventId: i ?? a()?.eventId ?? l?.id ?? null
769
752
  };
770
- typeof A == "number" && Number.isFinite(A) && (H.value = A, H.currency = q || "USD"), Ue(H, O);
753
+ typeof A == "number" && Number.isFinite(A) && (F.value = A, F.currency = q || "USD"), Ue(F, O);
771
754
  }
772
755
  }
773
756
  {
774
- const g = i ?? a()?.eventId ?? l?.id ?? null, O = String(s || c || ""), H = "micdrop_purchased_orders", f = he(H, []) ?? [], J = !!O && f.includes(O);
757
+ const g = i ?? a()?.eventId ?? l?.id ?? null, O = String(s || c || ""), F = "micdrop_purchased_orders", f = he(F, []) ?? [], J = !!O && f.includes(O);
775
758
  g != null && !J && (Me(g, E(), U() || l?.venueID || l?.venueId || null), Le({
776
759
  eventId: g,
777
760
  orderId: O,
778
761
  value: typeof A == "number" ? A : null,
779
762
  currency: q,
780
763
  contentName: l?.name || l?.title || ""
781
- }), O && Oe(H, [...f, O]));
764
+ }), O && Oe(F, [...f, O]));
782
765
  }
783
- e.set(S, w() || `${window.location.origin}/e/${i}-${u}`, !0);
784
- let F;
766
+ e.set(z, w() || `${window.location.origin}/e/${i}-${u}`, !0);
767
+ let H;
785
768
  try {
786
- F = Ge(l);
769
+ H = Ge(l);
787
770
  } catch (g) {
788
771
  se.warn("Success: transformApiEvent failed:", g), e.set(n, r().failedToLoadEventData || "Failed to load event data.", !0), e.set(x, !1);
789
772
  return;
790
773
  }
791
- let G = s || "", Z = z || "", Y = [], X = null;
774
+ let G = s || "", Z = S || "", Y = [], X = null;
792
775
  if (G)
793
776
  try {
794
777
  const g = await ve(G);
795
778
  if (g) {
796
779
  Z = g.customerEmail || Z;
797
- const O = g.purchasedTickets || g.tickets || [], H = /* @__PURE__ */ new Map();
780
+ const O = g.purchasedTickets || g.tickets || [], F = /* @__PURE__ */ new Map();
798
781
  for (const f of O) {
799
- const J = `${f.ticketTypeId || f.ticketId || 0}-${f.ticketName || f.name || ""}`, te = H.get(J);
800
- te ? (te.quantity += 1, te.subtotal += f.purchasePrice || f.price || 0) : H.set(J, {
782
+ const J = `${f.ticketTypeId || f.ticketId || 0}-${f.ticketName || f.name || ""}`, te = F.get(J);
783
+ te ? (te.quantity += 1, te.subtotal += f.purchasePrice || f.price || 0) : F.set(J, {
801
784
  // @type-escape: OrderLine.ticketId is a branded TicketId, but the
802
785
  // order-confirmation wire carries a raw numeric type-id (0 for
803
786
  // legacy/unknown rows, which the validating toTicketId rejects as
@@ -811,7 +794,7 @@ function Rt(h, t) {
811
794
  subtotal: f.purchasePrice || f.price || 0
812
795
  });
813
796
  }
814
- if (Y = Array.from(H.values()), typeof g.totalPrice == "number") {
797
+ if (Y = Array.from(F.values()), typeof g.totalPrice == "number") {
815
798
  const f = Number(g.totalPrice) - Number(g.giftCardPaymentAmount ?? 0);
816
799
  X = {
817
800
  subtotal: g.basePrice ?? 0,
@@ -839,39 +822,39 @@ function Rt(h, t) {
839
822
  ]), e.set(
840
823
  p,
841
824
  {
842
- event: F,
825
+ event: H,
843
826
  orderId: String(G),
844
827
  lines: Y,
845
828
  customerEmail: Z,
846
829
  ...X ? { serverTotals: X } : {}
847
830
  },
848
831
  !0
849
- ), Re(String(i)), Ve("checkout-cartid"), e.set(x, !1);
832
+ ), Ve(String(i)), Re("checkout-cartid"), e.set(x, !1);
850
833
  });
851
834
  var y = e.comment(), D = e.first_child(y);
852
835
  {
853
- var V = (i) => {
854
- var u = Et(), l = e.child(u);
836
+ var R = (i) => {
837
+ var u = St(), l = e.child(u);
855
838
  {
856
- var s = (z) => {
857
- var I = It(), A = e.first_child(I), q = e.child(A, !0);
839
+ var s = (S) => {
840
+ var I = Tt(), A = e.first_child(I), q = e.child(A, !0);
858
841
  e.reset(A);
859
- var F = e.sibling(A, 2), G = e.child(F, !0);
860
- e.reset(F), e.template_effect(() => {
842
+ var H = e.sibling(A, 2), G = e.child(H, !0);
843
+ e.reset(H), e.template_effect(() => {
861
844
  e.set_text(q, r().paymentNotConfirmedTitle || "Payment not confirmed"), e.set_text(G, r().paymentNotConfirmedMessage || "We couldn’t confirm this payment yet. If it completes, a confirmation email will arrive shortly — please don’t try again until then.");
862
- }), e.append(z, I);
863
- }, c = (z) => {
864
- var I = Tt(), A = e.first_child(I), q = e.child(A, !0);
845
+ }), e.append(S, I);
846
+ }, c = (S) => {
847
+ var I = Et(), A = e.first_child(I), q = e.child(A, !0);
865
848
  e.reset(A);
866
- var F = e.sibling(A, 2), G = e.child(F, !0);
867
- e.reset(F);
868
- var Z = e.sibling(F, 2), Y = e.child(Z, !0);
849
+ var H = e.sibling(A, 2), G = e.child(H, !0);
850
+ e.reset(H);
851
+ var Z = e.sibling(H, 2), Y = e.child(Z, !0);
869
852
  e.reset(Z), e.template_effect(() => {
870
853
  e.set_text(q, r().paymentNotCompletedTitle || "Payment wasn't completed"), e.set_text(G, r().paymentNotCompletedMessage || "The payment didn’t go through, so no tickets were issued. You can head back to the event and try again."), e.set_attribute(Z, "href", e.get(b)), e.set_text(Y, r().backToEvent || "Back to event");
871
- }), e.append(z, I);
854
+ }), e.append(S, I);
872
855
  };
873
- e.if(l, (z) => {
874
- e.get(C) || e.get(R) ? z(s) : z(c, -1);
856
+ e.if(l, (S) => {
857
+ e.get(C) || e.get(V) ? S(s) : S(c, -1);
875
858
  });
876
859
  }
877
860
  e.reset(u), e.append(i, u);
@@ -879,20 +862,20 @@ function Rt(h, t) {
879
862
  var u = zt(), l = e.child(u), s = e.child(l, !0);
880
863
  e.reset(l), e.reset(u), e.template_effect(() => e.set_text(s, e.get(n))), e.append(i, u);
881
864
  }, M = (i) => {
882
- var u = St(), l = e.child(u), s = e.child(l, !0);
865
+ var u = Pt(), l = e.child(u), s = e.child(l, !0);
883
866
  e.reset(l), e.reset(u), e.template_effect(() => e.set_text(s, r().loadingYourOrder || "Loading your order")), e.append(i, u);
884
867
  }, L = (i) => {
885
- Ct(i, {
868
+ It(i, {
886
869
  get data() {
887
870
  return e.get(p);
888
871
  },
889
872
  get eventUrl() {
890
- return e.get(S);
873
+ return e.get(z);
891
874
  }
892
875
  });
893
876
  };
894
877
  e.if(D, (i) => {
895
- e.get(m) || e.get(B) || e.get(R) ? i(V) : e.get(n) ? i(j, 1) : e.get(x) || !e.get(p) ? i(M, 2) : i(L, -1);
878
+ e.get(m) || e.get(B) || e.get(V) ? i(R) : e.get(n) ? i(j, 1) : e.get(x) || !e.get(p) ? i(M, 2) : i(L, -1);
896
879
  });
897
880
  }
898
881
  e.append(h, y), e.pop();
@@ -900,4 +883,4 @@ function Rt(h, t) {
900
883
  export {
901
884
  Rt as default
902
885
  };
903
- //# sourceMappingURL=Success-H4fQrbfA.js.map
886
+ //# sourceMappingURL=Success-Cv8d2syu.js.map