@getmicdrop/venue-calendar 4.2.19 → 4.2.21

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 +809 -809
  2. package/dist/{ArrowLeftIcon-CNxF9YFb.js → ArrowLeftIcon-BqN28ha3.js} +1 -1
  3. package/dist/{BlockPlaceholder-CnvIm7eh.js → BlockPlaceholder-BbAt-Tg-.js} +1 -1
  4. package/dist/{Calendar-D7s5gLk_.js → Calendar-U5hnCpbC.js} +4 -4
  5. package/dist/{CalendarFoundryView-BrsToTIb.js → CalendarFoundryView-Dp9aWtMW.js} +21 -21
  6. package/dist/{CalendarIcon-BBTaRYp7.js → CalendarIcon-rW7mGNf-.js} +1 -1
  7. package/dist/{CartView-cHL2n0fE.js → CartView-C_Jserc3.js} +17 -17
  8. package/dist/{Checkout-Blc7IuZ2.js → Checkout--3sirpfA.js} +19 -19
  9. package/dist/{Checkout-DNVyBcrm.js → Checkout-6iLNyJL4.js} +12 -12
  10. package/dist/{CheckoutTimer-D5i2F8al.js → CheckoutTimer-DeggCjT7.js} +2 -2
  11. package/dist/{ChevronDownIcon-Ba1RZBsy.js → ChevronDownIcon-CRBoka3q.js} +1 -1
  12. package/dist/{ClockIcon-DNJWLc1C.js → ClockIcon-C2SSi7r9.js} +1 -1
  13. package/dist/{CloseIcon-BpvJsO5u.js → CloseIcon-DbyLo0wv.js} +1 -1
  14. package/dist/{CollectionView-DzoCBduF.js → CollectionView-DsY-3zrB.js} +6 -6
  15. package/dist/{Event-D5u7y0w3.js → Event-Cg55HVe2.js} +15 -15
  16. package/dist/{EventPage-Ddslq4xC.js → EventPage-B0D2Nt8W.js} +253 -221
  17. package/dist/{Input-BvutquC_.js → Input-CsEAqNoQ.js} +1 -1
  18. package/dist/{MailIcon-r5G2Lccc.js → MailIcon-AAaLCJoB.js} +1 -1
  19. package/dist/{Modal-kJYg2hMo.js → Modal-CkmAyUI8.js} +2 -2
  20. package/dist/{ModalFooter-DMxM0E8Y.js → ModalFooter-qMsABjsX.js} +1 -1
  21. package/dist/{PasswordInput-D5_BuRnw.js → PasswordInput-D8t781xL.js} +1 -1
  22. package/dist/{ScarcityBadge-R32tzjFi.js → ScarcityBadge-D8jxkAwg.js} +2 -2
  23. package/dist/{SeriesPage-BPm7CNzY.js → SeriesPage-DJd4xn3s.js} +3 -3
  24. package/dist/{Success-CXI2Xtdz.js → Success-B6-9onbn.js} +11 -11
  25. package/dist/{TagIcon-_OxEQnM3.js → TagIcon-W-WW2VlE.js} +1 -1
  26. package/dist/{WarningCircleIcon-D1Kt1Sw1.js → WarningCircleIcon-MDOyrbVe.js} +1 -1
  27. package/dist/{WarningTriIcon-DjcnvD51.js → WarningTriIcon-xGAKz2tQ.js} +1 -1
  28. package/dist/api/api.cjs +1 -1
  29. package/dist/api/api.mjs +40 -26
  30. package/dist/api/index.d.ts +2 -2
  31. package/dist/api/types.d.ts +545 -545
  32. package/dist/api/waitlist.d.ts +13 -0
  33. package/dist/{colors-5g6cmoXX.js → colors-Cda5acAs.js} +48 -34
  34. package/dist/{constants-BWfNecCz.js → constants-CJl8xBgZ.js} +8 -0
  35. package/dist/{copyToClipboard-BTVrJgtZ.js → copyToClipboard-CR4oQ-Cl.js} +1 -1
  36. package/dist/{event-transform-0VCBk_zn.js → event-transform-CiNAjNiG.js} +9 -9
  37. package/dist/{href-D7yXIGzE.js → href-DVMxZ5ld.js} +1 -1
  38. package/dist/{i18n-D7pvVga7.js → i18n-BjGCvdyp.js} +3 -3
  39. package/dist/{labels-7f_yKBtq.js → labels-B3HOg72i.js} +1 -1
  40. package/dist/{modalManager.svelte-DDWCrGed.js → modalManager.svelte-DWKDviaT.js} +1 -1
  41. package/dist/{order-totals-DptlFbmv.js → order-totals-Bb6CAQ2m.js} +1 -1
  42. package/dist/{phoneUtils-PJqYw0dJ.js → phoneUtils-BzmQamKZ.js} +1 -1
  43. package/dist/seo/types.d.ts +156 -156
  44. package/dist/{serverTotals-COgFExPF.js → serverTotals-BgBXBXhP.js} +1 -1
  45. package/dist/{shareCopyFeedback.svelte-DZMLGA3y.js → shareCopyFeedback.svelte-Ds8OOtQ2.js} +2 -2
  46. package/dist/{to-event-card-props-BaPEUAZW.js → to-event-card-props-Bxj-yK9y.js} +1 -1
  47. package/dist/types/index.d.ts +509 -509
  48. package/dist/{utils-DLfxcnPk.js → utils-DMilKJFC.js} +1 -1
  49. package/dist/venue-calendar.css +1 -1
  50. package/dist/venue-calendar.es.js +27 -27
  51. package/dist/venue-calendar.iife.js +22 -22
  52. package/dist/venue-calendar.umd.js +55 -55
  53. package/package.json +2 -2
  54. package/src/lib/theme.js +222 -222
  55. /package/dist/locales/{4.2.19 → 4.2.21}/flow/de.js +0 -0
  56. /package/dist/locales/{4.2.19 → 4.2.21}/flow/es.js +0 -0
  57. /package/dist/locales/{4.2.19 → 4.2.21}/flow/fr.js +0 -0
  58. /package/dist/locales/{4.2.19 → 4.2.21}/flow/id.js +0 -0
  59. /package/dist/locales/{4.2.19 → 4.2.21}/flow/it.js +0 -0
  60. /package/dist/locales/{4.2.19 → 4.2.21}/flow/ja.js +0 -0
  61. /package/dist/locales/{4.2.19 → 4.2.21}/flow/ko.js +0 -0
  62. /package/dist/locales/{4.2.19 → 4.2.21}/flow/nl.js +0 -0
  63. /package/dist/locales/{4.2.19 → 4.2.21}/flow/pl.js +0 -0
  64. /package/dist/locales/{4.2.19 → 4.2.21}/flow/pt-br.js +0 -0
  65. /package/dist/locales/{4.2.19 → 4.2.21}/flow/tr.js +0 -0
  66. /package/dist/locales/{4.2.19 → 4.2.21}/flow/zh.js +0 -0
  67. /package/dist/locales/{4.2.19 → 4.2.21}/main/de.js +0 -0
  68. /package/dist/locales/{4.2.19 → 4.2.21}/main/es.js +0 -0
  69. /package/dist/locales/{4.2.19 → 4.2.21}/main/fr.js +0 -0
  70. /package/dist/locales/{4.2.19 → 4.2.21}/main/id.js +0 -0
  71. /package/dist/locales/{4.2.19 → 4.2.21}/main/it.js +0 -0
  72. /package/dist/locales/{4.2.19 → 4.2.21}/main/ja.js +0 -0
  73. /package/dist/locales/{4.2.19 → 4.2.21}/main/ko.js +0 -0
  74. /package/dist/locales/{4.2.19 → 4.2.21}/main/nl.js +0 -0
  75. /package/dist/locales/{4.2.19 → 4.2.21}/main/pl.js +0 -0
  76. /package/dist/locales/{4.2.19 → 4.2.21}/main/pt-br.js +0 -0
  77. /package/dist/locales/{4.2.19 → 4.2.21}/main/tr.js +0 -0
  78. /package/dist/locales/{4.2.19 → 4.2.21}/main/zh.js +0 -0
@@ -1,51 +1,51 @@
1
1
  import { C as e, h as t, t as n, v as r, x as i } from "./Button-C4uFgl7L.js";
2
2
  import { A as a, M as o, r as s } from "./timezones-C5l0SSHK.js";
3
- import { t as c } from "./Event-D5u7y0w3.js";
4
- import { n as l, t as u } from "./Input-BvutquC_.js";
5
- import { a as d, c as f, n as p, o as m, s as h } from "./phoneUtils-PJqYw0dJ.js";
6
- import { y as g } from "./constants-BWfNecCz.js";
7
- import { t as _ } from "./ClockIcon-DNJWLc1C.js";
8
- import { n as v } from "./shareCopyFeedback.svelte-DZMLGA3y.js";
9
- import { n as y } from "./ScarcityBadge-R32tzjFi.js";
3
+ import { t as c } from "./Event-Cg55HVe2.js";
4
+ import { n as l, t as u } from "./Input-CsEAqNoQ.js";
5
+ import { a as d, c as f, n as p, o as m, s as h } from "./phoneUtils-BzmQamKZ.js";
6
+ import { y as g } from "./constants-CJl8xBgZ.js";
7
+ import { t as _ } from "./ClockIcon-C2SSi7r9.js";
8
+ import { n as v } from "./shareCopyFeedback.svelte-Ds8OOtQ2.js";
9
+ import { n as y } from "./ScarcityBadge-D8jxkAwg.js";
10
10
  import { i as b } from "./Badge-Bv_MT-Vt.js";
11
11
  import { c as x, g as S, u as C } from "./orders-xGH8-IQn.js";
12
- import { i as w, n as T, s as E, t as D } from "./__SKIP_PATHS__-DmdRxELE.js";
13
- import { a as O, i as k, n as A, r as j, t as M } from "./ModalFooter-DMxM0E8Y.js";
14
- import { n as N, t as ee } from "./modalManager.svelte-DDWCrGed.js";
15
- import { c as te, h as ne, m as P, o as F, p as re, s as I, v as ie, w as ae } from "./colors-5g6cmoXX.js";
16
- import { t as oe } from "./eventStatusStream-C5KadkMh.js";
17
- import { d as L, i as se, t as R } from "./utils-DLfxcnPk.js";
12
+ import { i as w, l as T, n as ee, s as te, t as E } from "./__SKIP_PATHS__-DmdRxELE.js";
13
+ import { a as D, i as O, n as k, r as A, t as j } from "./ModalFooter-qMsABjsX.js";
14
+ import { n as M, t as ne } from "./modalManager.svelte-DWKDviaT.js";
15
+ import { T as re, c as N, g as P, h as ie, l as F, m as ae, o as oe, s as I, y as L } from "./colors-Cda5acAs.js";
16
+ import { t as se } from "./eventStatusStream-C5KadkMh.js";
17
+ import { d as R, i as ce, t as le } from "./utils-DMilKJFC.js";
18
18
  import { r as z } from "./promo-DtLZRskK.js";
19
- import { a as ce, r as le } from "./gate-password-cache-oOcDm9Ki.js";
19
+ import { a as ue, r as de } from "./gate-password-cache-oOcDm9Ki.js";
20
20
  import "svelte/internal/disclose-version";
21
21
  import * as B from "svelte/internal/client";
22
- import { onMount as ue } from "svelte";
22
+ import { onMount as fe } from "svelte";
23
23
  //#region node_modules/@getmicdrop/svelte-components/dist/recipes/modals/InputModal.svelte
24
- var V = B.from_html("<img class=\"w-5 h-5\"/>"), H = B.from_html("<div class=\"flex justify-end -mt-2 -mr-2 mb-2\"><!></div>"), U = B.from_html("<h3> </h3>"), W = B.from_html("<div class=\"text-left\"><!> <!></div>"), de = B.from_html("<p> </p>"), fe = B.from_html("<label for=\"modal-input\"> </label>"), G = B.from_html("<textarea id=\"modal-input\" name=\"value\"></textarea>"), K = B.from_html("<div class=\"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none\"><!></div>"), pe = B.from_html("<div class=\"relative\"><!> <input id=\"modal-input\" name=\"value\"/></div>"), q = B.from_html("<p><!> </p>"), J = B.from_html("<div class=\"text-left mt-4\"><!> <div><!> <!> <!></div></div>"), me = B.from_html("<div class=\"flex gap-3\"><!> <!></div>"), he = B.from_html("<!> <!> <!>", 1), ge = B.from_html("<!> <!>", 1);
25
- function _e(i, o) {
24
+ var V = B.from_html("<img class=\"w-5 h-5\"/>"), H = B.from_html("<div class=\"flex justify-end -mt-2 -mr-2 mb-2\"><!></div>"), U = B.from_html("<h3> </h3>"), W = B.from_html("<div class=\"text-left\"><!> <!></div>"), pe = B.from_html("<p> </p>"), me = B.from_html("<label for=\"modal-input\"> </label>"), G = B.from_html("<textarea id=\"modal-input\" name=\"value\"></textarea>"), K = B.from_html("<div class=\"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none\"><!></div>"), he = B.from_html("<div class=\"relative\"><!> <input id=\"modal-input\" name=\"value\"/></div>"), q = B.from_html("<p><!> </p>"), J = B.from_html("<div class=\"text-left mt-4\"><!> <div><!> <!> <!></div></div>"), ge = B.from_html("<div class=\"flex gap-3\"><!> <!></div>"), _e = B.from_html("<!> <!> <!>", 1), ve = B.from_html("<!> <!>", 1);
25
+ function ye(i, o) {
26
26
  B.push(o, !0);
27
27
  let s = {
28
28
  confirm: "Confirm",
29
29
  cancel: "Cancel",
30
30
  close: "Close",
31
31
  invalidEmail: "Please enter a valid email address"
32
- }, c = B.prop(o, "open", 15, !1), l = B.prop(o, "size", 3, "md"), u = B.prop(o, "title", 3, ""), p = B.prop(o, "description", 3, ""), m = B.prop(o, "closeBtn", 3, !1), h = B.prop(o, "persistent", 3, !1), g = B.prop(o, "inputLabel", 3, ""), _ = B.prop(o, "inputPlaceholder", 3, ""), v = B.prop(o, "inputType", 3, "text"), y = B.prop(o, "inputValue", 15, ""), x = B.prop(o, "inputRequired", 3, !1), S = B.prop(o, "inputRows", 3, 4), C = B.prop(o, "inputIcon", 3, null), w = B.prop(o, "helpText", 3, ""), T = B.prop(o, "errorMessage", 3, ""), E = B.prop(o, "showError", 3, !1), D = B.prop(o, "validateEmail", 3, !1), ee = B.prop(o, "primaryButtonText", 3, void 0), te = B.prop(o, "secondaryButtonText", 3, void 0), ne = B.prop(o, "primaryButtonVariant", 3, "default"), P = B.prop(o, "disabled", 3, !1), F = B.prop(o, "loading", 3, !1), re = B.prop(o, "labels", 19, () => ({})), I = B.derived(() => e(s, re())), ie = B.derived(() => ee() ?? B.get(I).confirm), ae = B.derived(() => te() ?? B.get(I).cancel), oe = (e) => a(e), L = B.derived(() => !!(D() && y() && !oe(y()))), se = B.derived(() => !!(x() && (!y() || y().trim() === ""))), R = B.derived(() => E() || B.get(L)), z = B.derived(() => P() || F() || B.get(se) || B.get(L)), ce = () => {
33
- B.get(z) || o.onconfirm?.({ value: y() });
34
- }, le = (e) => {
32
+ }, c = B.prop(o, "open", 15, !1), l = B.prop(o, "size", 3, "md"), u = B.prop(o, "title", 3, ""), p = B.prop(o, "description", 3, ""), m = B.prop(o, "closeBtn", 3, !1), h = B.prop(o, "persistent", 3, !1), g = B.prop(o, "inputLabel", 3, ""), _ = B.prop(o, "inputPlaceholder", 3, ""), v = B.prop(o, "inputType", 3, "text"), y = B.prop(o, "inputValue", 15, ""), x = B.prop(o, "inputRequired", 3, !1), S = B.prop(o, "inputRows", 3, 4), C = B.prop(o, "inputIcon", 3, null), w = B.prop(o, "helpText", 3, ""), T = B.prop(o, "errorMessage", 3, ""), ee = B.prop(o, "showError", 3, !1), te = B.prop(o, "validateEmail", 3, !1), E = B.prop(o, "primaryButtonText", 3, void 0), ne = B.prop(o, "secondaryButtonText", 3, void 0), re = B.prop(o, "primaryButtonVariant", 3, "default"), N = B.prop(o, "disabled", 3, !1), P = B.prop(o, "loading", 3, !1), ie = B.prop(o, "labels", 19, () => ({})), F = B.derived(() => e(s, ie())), ae = B.derived(() => E() ?? B.get(F).confirm), oe = B.derived(() => ne() ?? B.get(F).cancel), I = (e) => a(e), L = B.derived(() => !!(te() && y() && !I(y()))), se = B.derived(() => !!(x() && (!y() || y().trim() === ""))), R = B.derived(() => ee() || B.get(L)), ce = B.derived(() => N() || P() || B.get(se) || B.get(L)), le = () => {
33
+ B.get(ce) || o.onconfirm?.({ value: y() });
34
+ }, z = (e) => {
35
35
  if (!(e.isComposing || e.keyCode === 229) && b(e)) {
36
36
  if (v() === "textarea") {
37
37
  if (!(e.metaKey || e.ctrlKey)) return;
38
38
  } else if (e.shiftKey) return;
39
- e.preventDefault(), ce();
39
+ e.preventDefault(), le();
40
40
  }
41
41
  }, ue = () => {
42
- !P() && !F() && (o.oncancel?.(), _e());
43
- }, _e = () => {
42
+ !N() && !P() && (o.oncancel?.(), de());
43
+ }, de = () => {
44
44
  c(!1), o.onclose?.();
45
- }, ve = () => {
46
- P() || F() || _e();
45
+ }, fe = () => {
46
+ N() || P() || de();
47
47
  };
48
- O(i, {
48
+ D(i, {
49
49
  get size() {
50
50
  return l();
51
51
  },
@@ -59,27 +59,27 @@ function _e(i, o) {
59
59
  c(e);
60
60
  },
61
61
  children: (e, i) => {
62
- var a = ge(), o = B.first_child(a);
63
- k(o, {});
62
+ var a = ve(), o = B.first_child(a);
63
+ O(o, {});
64
64
  var s = B.sibling(o, 2);
65
- j(s, {
65
+ A(s, {
66
66
  children: (e, i) => {
67
- var a = he(), o = B.first_child(a);
68
- N(o, {
67
+ var a = _e(), o = B.first_child(a);
68
+ M(o, {
69
69
  children: (e, t) => {
70
70
  var i = W(), a = B.child(i), o = (e) => {
71
71
  var t = H(), r = B.child(t);
72
72
  n(r, {
73
73
  variant: "icon",
74
74
  size: "xs",
75
- onclick: ve,
75
+ onclick: fe,
76
76
  get disabled() {
77
- return P();
77
+ return N();
78
78
  },
79
79
  children: (e, t) => {
80
80
  var n = V();
81
81
  B.template_effect(() => {
82
- B.set_attribute(n, "src", d), B.set_attribute(n, "alt", B.get(I).close);
82
+ B.set_attribute(n, "src", d), B.set_attribute(n, "alt", B.get(F).close);
83
83
  }), B.append(e, n);
84
84
  },
85
85
  $$slots: { default: !0 }
@@ -101,10 +101,10 @@ function _e(i, o) {
101
101
  $$slots: { default: !0 }
102
102
  });
103
103
  var s = B.sibling(o, 2);
104
- A(s, {
104
+ k(s, {
105
105
  children: (e, n) => {
106
106
  var i = J(), a = B.child(i), o = (e) => {
107
- var n = de(), i = B.child(n, !0);
107
+ var n = pe(), i = B.child(n, !0);
108
108
  B.reset(n), B.template_effect(() => {
109
109
  B.set_class(n, 1, `${r.smMuted} ${t.relaxed} mb-4`), B.set_text(i, p());
110
110
  }), B.append(e, n);
@@ -113,7 +113,7 @@ function _e(i, o) {
113
113
  p() && e(o);
114
114
  });
115
115
  var s = B.sibling(a, 2), c = B.child(s), l = (e) => {
116
- var t = fe(), n = B.child(t, !0);
116
+ var t = me(), n = B.child(t, !0);
117
117
  B.reset(t), B.template_effect(() => {
118
118
  B.set_class(t, 1, `${r.label} block mb-2`), B.set_text(n, g());
119
119
  }), B.append(e, t);
@@ -124,10 +124,10 @@ function _e(i, o) {
124
124
  var u = B.sibling(c, 2), d = (e) => {
125
125
  var t = G();
126
126
  B.remove_textarea_child(t), B.template_effect(() => {
127
- B.set_attribute(t, "placeholder", _()), B.set_attribute(t, "rows", S()), B.set_class(t, 1, `w-full px-3 py-2 border ${B.get(R) ? "border-status-error-border" : "border-stroke-primary"} bg-bg-secondary ${r.body ?? ""} rounded-lg focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:border-transparent resize-none`), t.disabled = P() || F();
128
- }), B.delegated("keydown", t, le), B.bind_value(t, y), B.append(e, t);
127
+ B.set_attribute(t, "placeholder", _()), B.set_attribute(t, "rows", S()), B.set_class(t, 1, `w-full px-3 py-2 border ${B.get(R) ? "border-status-error-border" : "border-stroke-primary"} bg-bg-secondary ${r.body ?? ""} rounded-lg focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:border-transparent resize-none`), t.disabled = N() || P();
128
+ }), B.delegated("keydown", t, z), B.bind_value(t, y), B.append(e, t);
129
129
  }, m = (e) => {
130
- var t = pe(), n = B.child(t), i = (e) => {
130
+ var t = he(), n = B.child(t), i = (e) => {
131
131
  let t = B.derived(C);
132
132
  var n = K(), i = B.child(n);
133
133
  {
@@ -145,8 +145,8 @@ function _e(i, o) {
145
145
  });
146
146
  var a = B.sibling(n, 2);
147
147
  B.remove_input_defaults(a), B.reset(t), B.template_effect(() => {
148
- B.set_attribute(a, "type", v()), B.set_attribute(a, "placeholder", _()), a.required = x(), a.disabled = P() || F(), B.set_class(a, 1, `w-full ${C() ? "pl-10" : "px-3"} py-2 border ${B.get(R) ? "border-status-error-border" : "border-stroke-primary"} rounded-lg ${r.body ?? ""} bg-card focus:ring-2 focus:ring-focus-ring focus:border-transparent disabled:opacity-50 disabled:cursor-not-allowed`);
149
- }), B.delegated("keydown", a, le), B.bind_value(a, y), B.append(e, t);
148
+ B.set_attribute(a, "type", v()), B.set_attribute(a, "placeholder", _()), a.required = x(), a.disabled = N() || P(), B.set_class(a, 1, `w-full ${C() ? "pl-10" : "px-3"} py-2 border ${B.get(R) ? "border-status-error-border" : "border-stroke-primary"} rounded-lg ${r.body ?? ""} bg-card focus:ring-2 focus:ring-focus-ring focus:border-transparent disabled:opacity-50 disabled:cursor-not-allowed`);
149
+ }), B.delegated("keydown", a, z), B.bind_value(a, y), B.append(e, t);
150
150
  };
151
151
  B.if(u, (e) => {
152
152
  v() === "textarea" ? e(d) : e(m, -1);
@@ -156,26 +156,26 @@ function _e(i, o) {
156
156
  f(n, { class: "w-4 h-4" });
157
157
  var i = B.sibling(n);
158
158
  B.reset(t), B.template_effect(() => {
159
- B.set_class(t, 1, `${r.label} text-accent-danger mt-2 flex items-center gap-1`), B.set_text(i, ` ${(B.get(L) ? B.get(I).invalidEmail : T()) ?? ""}`);
159
+ B.set_class(t, 1, `${r.label} text-accent-danger mt-2 flex items-center gap-1`), B.set_text(i, ` ${(B.get(L) ? B.get(F).invalidEmail : T()) ?? ""}`);
160
160
  }), B.append(e, t);
161
- }, E = (e) => {
162
- var t = de(), n = B.child(t, !0);
161
+ }, ee = (e) => {
162
+ var t = pe(), n = B.child(t, !0);
163
163
  B.reset(t), B.template_effect(() => {
164
164
  B.set_class(t, 1, `${r.xsMuted} pt-2`), B.set_text(n, w());
165
165
  }), B.append(e, t);
166
166
  };
167
167
  B.if(h, (e) => {
168
- B.get(R) && (T() || B.get(L)) ? e(b) : w() && !B.get(R) && e(E, 1);
168
+ B.get(R) && (T() || B.get(L)) ? e(b) : w() && !B.get(R) && e(ee, 1);
169
169
  }), B.reset(s), B.reset(i), B.append(e, i);
170
170
  },
171
171
  $$slots: { default: !0 }
172
172
  });
173
173
  var c = B.sibling(s, 2);
174
- M(c, {
174
+ j(c, {
175
175
  children: (e, t) => {
176
- var r = me(), i = B.child(r), a = (e) => {
176
+ var r = ge(), i = B.child(r), a = (e) => {
177
177
  {
178
- let t = B.derived(() => P() || F());
178
+ let t = B.derived(() => N() || P());
179
179
  n(e, {
180
180
  size: "full",
181
181
  variant: "alternative",
@@ -186,32 +186,32 @@ function _e(i, o) {
186
186
  children: (e, t) => {
187
187
  B.next();
188
188
  var n = B.text();
189
- B.template_effect(() => B.set_text(n, B.get(ae))), B.append(e, n);
189
+ B.template_effect(() => B.set_text(n, B.get(oe))), B.append(e, n);
190
190
  },
191
191
  $$slots: { default: !0 }
192
192
  });
193
193
  }
194
194
  };
195
195
  B.if(i, (e) => {
196
- B.get(ae) && e(a);
196
+ B.get(oe) && e(a);
197
197
  });
198
198
  var o = B.sibling(i, 2);
199
199
  n(o, {
200
200
  size: "full",
201
201
  get variant() {
202
- return ne();
202
+ return re();
203
203
  },
204
- onclick: ce,
204
+ onclick: le,
205
205
  get disabled() {
206
- return B.get(z);
206
+ return B.get(ce);
207
207
  },
208
208
  get loading() {
209
- return F();
209
+ return P();
210
210
  },
211
211
  children: (e, t) => {
212
212
  B.next();
213
213
  var n = B.text();
214
- B.template_effect(() => B.set_text(n, B.get(ie))), B.append(e, n);
214
+ B.template_effect(() => B.set_text(n, B.get(ae))), B.append(e, n);
215
215
  },
216
216
  $$slots: { default: !0 }
217
217
  }), B.reset(r), B.append(e, r);
@@ -228,7 +228,7 @@ function _e(i, o) {
228
228
  B.delegate(["keydown"]);
229
229
  //#endregion
230
230
  //#region src/lib/public-calendar-flow/promo-state.ts
231
- function ve(e, t) {
231
+ function be(e, t) {
232
232
  if (!e.valid) return {
233
233
  code: t,
234
234
  isApplied: !1,
@@ -257,8 +257,8 @@ function ve(e, t) {
257
257
  }
258
258
  //#endregion
259
259
  //#region src/components/Modals/WaitlistModal.svelte
260
- var ye = B.from_html("<p> </p>"), be = B.from_html("<div class=\"flex flex-col items-center text-center pt-6 px-4 pb-4\"><div class=\"w-16 h-16 rounded-full flex items-center justify-center mb-4 bg-accent-success/10 text-accent-success\" aria-hidden=\"true\"><!></div> <h3 id=\"waitlist-title\"> </h3> <p id=\"waitlist-description\" class=\"type-body tone-secondary max-w-72\"> </p> <!></div>"), xe = B.from_html("<p class=\"type-caption text-accent-danger mt-1\"> </p>"), Se = B.from_html("<div class=\"ml-7\"><!> <!> <p> </p></div>"), Y = B.from_html("<div class=\"p-3 bg-status-error-bg border border-status-error-border rounded-lg\"><p> </p></div>"), Ce = B.from_html("<div class=\"flex flex-col pt-6 px-4 pb-4\"><div class=\"flex items-center justify-center mb-4\"><div class=\"w-12 h-12 rounded-full flex items-center justify-center bg-brand-primary/10 text-brand-primary\" aria-hidden=\"true\"><!></div></div> <h3 id=\"waitlist-title\"> </h3> <p id=\"waitlist-description\" class=\"type-body tone-secondary text-center mb-6\"> </p> <form class=\"space-y-4\"><div><label for=\"waitlist-email\" class=\"block type-label tone-secondary mb-1\"> </label> <div class=\"relative\"><!></div> <!></div> <div class=\"space-y-2\"><label class=\"flex items-start gap-3 cursor-pointer\"><input type=\"checkbox\" name=\"smsOptIn\" class=\"mt-0.5 w-4 h-4 text-brand-primary border-stroke-primary rounded focus-ring\"/> <span class=\"type-body tone-secondary\"> </span></label> <!></div> <!></form></div>"), X = B.from_html("<!> <!>", 1), we = B.from_html("<div class=\"flex gap-3 w-full\" role=\"group\"><!></div>");
261
- function Te(e, t) {
260
+ var xe = B.from_html("<p> </p>"), Se = B.from_html("<div class=\"flex flex-col items-center text-center pt-6 px-4 pb-4\"><div class=\"w-16 h-16 rounded-full flex items-center justify-center mb-4 bg-accent-success/10 text-accent-success\" aria-hidden=\"true\"><!></div> <h3 id=\"waitlist-title\"> </h3> <p id=\"waitlist-description\" class=\"type-body tone-secondary max-w-72\"> </p> <!></div>"), Ce = B.from_html("<p class=\"type-caption text-accent-danger mt-1\"> </p>"), we = B.from_html("<div class=\"ml-7\"><!> <!> <p> </p></div>"), Y = B.from_html("<div class=\"p-3 bg-status-error-bg border border-status-error-border rounded-lg\"><p> </p></div>"), Te = B.from_html("<div class=\"flex flex-col pt-6 px-4 pb-4\"><div class=\"flex items-center justify-center mb-4\"><div class=\"w-12 h-12 rounded-full flex items-center justify-center bg-brand-primary/10 text-brand-primary\" aria-hidden=\"true\"><!></div></div> <h3 id=\"waitlist-title\"> </h3> <p id=\"waitlist-description\" class=\"type-body tone-secondary text-center mb-6\"> </p> <form class=\"space-y-4\"><div><label for=\"waitlist-email\" class=\"block type-label tone-secondary mb-1\"> </label> <div class=\"relative\"><!></div> <!></div> <div class=\"space-y-2\"><label class=\"flex items-start gap-3 cursor-pointer\"><input type=\"checkbox\" name=\"smsOptIn\" class=\"mt-0.5 w-4 h-4 text-brand-primary border-stroke-primary rounded focus-ring\"/> <span class=\"type-body tone-secondary\"> </span></label> <!></div> <!></form></div>"), X = B.from_html("<!> <!>", 1), Ee = B.from_html("<div class=\"flex gap-3 w-full\" role=\"group\"><!></div>");
261
+ function De(e, t) {
262
262
  B.push(t, !0);
263
263
  let n = B.prop(t, "show", 15, !1);
264
264
  B.prop(t, "eventName", 3, "this event");
@@ -285,7 +285,7 @@ function Te(e, t) {
285
285
  function T() {
286
286
  B.set(c, ""), B.set(d, ""), B.set(f, !1), B.set(v, ""), B.set(y, !1), n(!1), i()();
287
287
  }
288
- O(e, {
288
+ D(e, {
289
289
  size: "sm",
290
290
  class: "micdrop",
291
291
  get open() {
@@ -296,22 +296,22 @@ function Te(e, t) {
296
296
  },
297
297
  children: (e, t) => {
298
298
  var n = X(), i = B.first_child(n);
299
- k(i, {});
299
+ O(i, {});
300
300
  var a = B.sibling(i, 2);
301
- j(a, {
301
+ A(a, {
302
302
  children: (e, t) => {
303
303
  var n = X(), i = B.first_child(n);
304
- A(i, {
304
+ k(i, {
305
305
  children: (e, t) => {
306
306
  var n = B.comment(), i = B.first_child(n), a = (e) => {
307
- var t = be(), n = B.child(t), i = B.child(n);
307
+ var t = Se(), n = B.child(t), i = B.child(n);
308
308
  h(i, { size: "32" }), B.reset(n);
309
309
  var a = B.sibling(n, 2), s = B.child(a, !0);
310
310
  B.reset(a);
311
311
  var c = B.sibling(a, 2), l = B.child(c, !0);
312
312
  B.reset(c);
313
313
  var u = B.sibling(c, 2), p = (e) => {
314
- var t = ye(), n = B.child(t, !0);
314
+ var t = xe(), n = B.child(t, !0);
315
315
  B.reset(t), B.template_effect(() => {
316
316
  B.set_class(t, 1, `mt-2 ${r.xsMuted ?? ""}`), B.set_text(n, o().waitlistSmsAlerts || "You'll also receive SMS alerts");
317
317
  }), B.append(e, t);
@@ -322,7 +322,7 @@ function Te(e, t) {
322
322
  B.set_class(a, 1, `mb-2 ${r.heading ?? ""}`), B.set_text(s, o().youreOnTheList || "You're on the waitlist"), B.set_text(l, o().waitlistNotifyByEmail || "We'll let you know if tickets become available");
323
323
  }), B.append(e, t);
324
324
  }, s = (e) => {
325
- var t = Ce(), n = B.child(t), i = B.child(n), a = B.child(i);
325
+ var t = Te(), n = B.child(t), i = B.child(n), a = B.child(i);
326
326
  _(a, { size: "24" }), B.reset(i), B.reset(n);
327
327
  var s = B.sibling(n, 2), l = B.child(s, !0);
328
328
  B.reset(s);
@@ -330,10 +330,10 @@ function Te(e, t) {
330
330
  B.reset(p);
331
331
  var g = B.sibling(p, 2), y = B.child(g), S = B.child(y), C = B.child(S, !0);
332
332
  B.reset(S);
333
- var T = B.sibling(S, 2), E = B.child(T);
333
+ var T = B.sibling(S, 2), ee = B.child(T);
334
334
  {
335
335
  let e = B.derived(() => o().waitlistEmailPlaceholder || "you@example.com"), t = B.derived(() => B.get(b) ? "border-status-error-border" : "");
336
- u(E, {
336
+ u(ee, {
337
337
  id: "waitlist-email",
338
338
  type: "email",
339
339
  get placeholder() {
@@ -355,19 +355,19 @@ function Te(e, t) {
355
355
  });
356
356
  }
357
357
  B.reset(T);
358
- var D = B.sibling(T, 2), O = (e) => {
359
- var t = xe(), n = B.child(t, !0);
358
+ var te = B.sibling(T, 2), E = (e) => {
359
+ var t = Ce(), n = B.child(t, !0);
360
360
  B.reset(t), B.template_effect(() => B.set_text(n, B.get(b))), B.append(e, t);
361
361
  };
362
- B.if(D, (e) => {
363
- B.get(b) && e(O);
362
+ B.if(te, (e) => {
363
+ B.get(b) && e(E);
364
364
  }), B.reset(y);
365
- var k = B.sibling(y, 2), A = B.child(k), j = B.child(A);
366
- B.remove_input_defaults(j);
367
- var M = B.sibling(j, 2), N = B.child(M, !0);
368
- B.reset(M), B.reset(A);
369
- var ee = B.sibling(A, 2), te = (e) => {
370
- var t = Se(), n = B.child(t);
365
+ var D = B.sibling(y, 2), O = B.child(D), k = B.child(O);
366
+ B.remove_input_defaults(k);
367
+ var A = B.sibling(k, 2), j = B.child(A, !0);
368
+ B.reset(A), B.reset(O);
369
+ var M = B.sibling(O, 2), ne = (e) => {
370
+ var t = we(), n = B.child(t);
371
371
  {
372
372
  let e = B.derived(() => o().waitlistPhonePlaceholder || "(555) 123-4567"), t = B.derived(() => B.get(x) ? "border-status-error-border" : "");
373
373
  u(n, {
@@ -391,7 +391,7 @@ function Te(e, t) {
391
391
  });
392
392
  }
393
393
  var i = B.sibling(n, 2), a = (e) => {
394
- var t = xe(), n = B.child(t, !0);
394
+ var t = Ce(), n = B.child(t, !0);
395
395
  B.reset(t), B.template_effect(() => B.set_text(n, B.get(x))), B.append(e, t);
396
396
  };
397
397
  B.if(i, (e) => {
@@ -402,22 +402,22 @@ function Te(e, t) {
402
402
  B.set_class(s, 1, `mt-1 ${r.xsMuted ?? ""}`), B.set_text(c, o().smsDisclaimer || "Message & data rates may apply. Reply STOP to unsubscribe");
403
403
  }), B.append(e, t);
404
404
  };
405
- B.if(ee, (e) => {
406
- B.get(f) && e(te);
407
- }), B.reset(k);
408
- var ne = B.sibling(k, 2), P = (e) => {
405
+ B.if(M, (e) => {
406
+ B.get(f) && e(ne);
407
+ }), B.reset(D);
408
+ var re = B.sibling(D, 2), N = (e) => {
409
409
  var t = Y(), n = B.child(t), i = B.child(n, !0);
410
410
  B.reset(n), B.reset(t), B.template_effect(() => {
411
411
  B.set_class(n, 1, B.clsx(r.error)), B.set_text(i, B.get(v));
412
412
  }), B.append(e, t);
413
413
  };
414
- B.if(ne, (e) => {
415
- B.get(v) && e(P);
414
+ B.if(re, (e) => {
415
+ B.get(v) && e(N);
416
416
  }), B.reset(g), B.reset(t), B.template_effect(() => {
417
- B.set_class(s, 1, `mb-2 text-center ${r.heading ?? ""}`), B.set_text(l, o().waitlistTitle || "This show is sold out"), B.set_text(h, o().waitlistDescription || "Want to be notified if tickets become available?"), B.set_text(C, o().waitlistEmailLabel || "Email address"), B.set_attribute(j, "aria-label", o().smsOptIn || "Text me when tickets are available"), j.disabled = B.get(m), B.set_text(N, o().smsOptIn || "Text me when tickets are available");
417
+ B.set_class(s, 1, `mb-2 text-center ${r.heading ?? ""}`), B.set_text(l, o().waitlistTitle || "This show is sold out"), B.set_text(h, o().waitlistDescription || "Want to be notified if tickets become available?"), B.set_text(C, o().waitlistEmailLabel || "Email address"), B.set_attribute(k, "aria-label", o().smsOptIn || "Text me when tickets are available"), k.disabled = B.get(m), B.set_text(j, o().smsOptIn || "Text me when tickets are available");
418
418
  }), B.event("submit", g, (e) => {
419
419
  e.preventDefault(), w();
420
- }), B.bind_checked(j, () => B.get(f), (e) => B.set(f, e)), B.append(e, t);
420
+ }), B.bind_checked(k, () => B.get(f), (e) => B.set(f, e)), B.append(e, t);
421
421
  };
422
422
  B.if(i, (e) => {
423
423
  B.get(y) ? e(a) : e(s, -1);
@@ -426,9 +426,9 @@ function Te(e, t) {
426
426
  $$slots: { default: !0 }
427
427
  });
428
428
  var a = B.sibling(i, 2);
429
- M(a, {
429
+ j(a, {
430
430
  children: (e, t) => {
431
- var n = we(), r = B.child(n), i = (e) => {
431
+ var n = Ee(), r = B.child(n), i = (e) => {
432
432
  s(e, {
433
433
  size: "full",
434
434
  variant: "default",
@@ -494,28 +494,28 @@ function Te(e, t) {
494
494
  }
495
495
  //#endregion
496
496
  //#region src/components/Views/EventPage.svelte
497
- var Ee = i("EventPage"), De = B.from_html("<div class=\"flex items-center justify-center py-12 text-center loading-container svelte-1dk5n3m\"><p> </p></div>"), Oe = B.from_html("<div class=\"flex flex-col items-center justify-center py-12 text-center gap-4\"><p class=\"error-text svelte-1dk5n3m\"> </p> <!></div>"), ke = B.from_html("<div class=\"locked-wrapper svelte-1dk5n3m\"><div class=\"locked-overlay absolute inset-0 z-navigation flex flex-col items-center justify-center min-h-96 svelte-1dk5n3m\"><div class=\"text-center p-8\"><div class=\"locked-icon-wrapper w-20 h-20 mx-auto mb-4 rounded-full flex items-center justify-center svelte-1dk5n3m\"><!></div> <h2 class=\"locked-title type-heading mb-2 svelte-1dk5n3m\"> </h2> <p class=\"locked-description type-body max-w-xs mx-auto mb-6 svelte-1dk5n3m\"> </p> <!></div></div> <div class=\"blur-content svelte-1dk5n3m\"><!></div></div>"), Ae = B.from_html("<div class=\"waitlist-window-banner svelte-1dk5n3m\"><span class=\"type-body\"> <strong class=\"waitlist-window-time svelte-1dk5n3m\"> </strong> </span></div>"), je = B.from_html("<!> <!>", 1), Me = B.from_html("<!> <!> <!>", 1);
498
- function Ne(e, t) {
497
+ var Oe = i("EventPage"), ke = B.from_html("<div class=\"flex items-center justify-center py-12 text-center loading-container svelte-1dk5n3m\"><p> </p></div>"), Ae = B.from_html("<div class=\"flex flex-col items-center justify-center py-12 text-center gap-4\"><p class=\"error-text svelte-1dk5n3m\"> </p> <!></div>"), je = B.from_html("<div class=\"locked-wrapper svelte-1dk5n3m\"><div class=\"locked-overlay absolute inset-0 z-navigation flex flex-col items-center justify-center min-h-96 svelte-1dk5n3m\"><div class=\"text-center p-8\"><div class=\"locked-icon-wrapper w-20 h-20 mx-auto mb-4 rounded-full flex items-center justify-center svelte-1dk5n3m\"><!></div> <h2 class=\"locked-title type-heading mb-2 svelte-1dk5n3m\"> </h2> <p class=\"locked-description type-body max-w-xs mx-auto mb-6 svelte-1dk5n3m\"> </p> <!></div></div> <div class=\"blur-content svelte-1dk5n3m\"><!></div></div>"), Me = B.from_html("<div class=\"waitlist-window-banner svelte-1dk5n3m\"><span class=\"type-body\"> <strong class=\"waitlist-window-time svelte-1dk5n3m\"> </strong> </span></div>"), Ne = B.from_html("<div class=\"waitlist-window-banner svelte-1dk5n3m\"><span class=\"type-body\"> </span></div>"), Pe = B.from_html("<div class=\"waitlist-window-banner waitlist-window-banner-expired svelte-1dk5n3m\"><span class=\"type-body\"> </span> <div class=\"waitlist-requeue-action svelte-1dk5n3m\"><!></div></div>"), Fe = B.from_html("<!> <!>", 1), Ie = B.from_html("<!> <!> <!>", 1);
498
+ function Le(e, t) {
499
499
  B.push(t, !0);
500
500
  let n = B.prop(t, "rawEvent", 3, void 0), r = B.prop(t, "eventId", 3, void 0), i = B.prop(t, "slug", 3, "");
501
501
  B.prop(t, "currentEventId", 3, void 0);
502
502
  let a = B.prop(t, "onNavigateBack", 3, void 0), l = B.prop(t, "onBuyTickets", 3, void 0), u = B.prop(t, "onNavigateToCart", 3, void 0), d = B.prop(t, "onCollectionEventClick", 3, void 0);
503
503
  B.prop(t, "organizationId", 3, "");
504
- let f = B.prop(t, "widgetId", 3, null), p = B.prop(t, "venueId", 3, null), h = B.prop(t, "waitlistToken", 3, void 0), _ = B.prop(t, "waitlistEmail", 3, void 0), b = B.prop(t, "labels", 3, g), O = B.prop(t, "locale", 3, void 0), k = () => p() || B.get(A)?.venueID || B.get(A)?.venueId || null, A = B.state(B.proxy(n() ?? null)), j = B.state(B.proxy(!n() && !!r()));
504
+ let f = B.prop(t, "widgetId", 3, null), p = B.prop(t, "venueId", 3, null), h = B.prop(t, "waitlistToken", 3, void 0), _ = B.prop(t, "waitlistEmail", 3, void 0), b = B.prop(t, "labels", 3, g), D = B.prop(t, "locale", 3, void 0), O = () => p() || B.get(k)?.venueID || B.get(k)?.venueId || null, k = B.state(B.proxy(n() ?? null)), A = B.state(B.proxy(!n() && !!r()));
505
505
  B.user_effect(() => {
506
- n() && B.set(A, n());
506
+ n() && B.set(k, n());
507
507
  });
508
- let M = B.state(null), N = B.state(""), I = B.state(null), z = B.derived(() => {
509
- if (!B.get(A) || !B.get(I)?.length) return B.get(A);
510
- let e = B.get(A).availableTickets || [], t = new Set(e.map((e) => String(e.id ?? e.ID))), n = B.get(I).filter((e) => !t.has(String(e.id ?? e.ID)));
511
- return n.length === 0 ? B.get(A) : {
512
- ...B.get(A),
508
+ let j = B.state(null), M = B.state(""), I = B.state(null), z = B.derived(() => {
509
+ if (!B.get(k) || !B.get(I)?.length) return B.get(k);
510
+ let e = B.get(k).availableTickets || [], t = new Set(e.map((e) => String(e.id ?? e.ID))), n = B.get(I).filter((e) => !t.has(String(e.id ?? e.ID)));
511
+ return n.length === 0 ? B.get(k) : {
512
+ ...B.get(k),
513
513
  availableTickets: [...e, ...n]
514
514
  };
515
515
  }), V = B.derived(() => B.get(z) ? v(B.get(z)) : null), H = B.derived(() => r() || B.get(V)?.id || ""), U = B.state(!1), W = B.state("");
516
516
  B.user_effect(() => {
517
517
  let e = B.get(H);
518
- if (e) return oe(e, {
518
+ if (e) return se(e, {
519
519
  onUnavailable: (e) => {
520
520
  B.set(U, !0), B.set(W, e, !0);
521
521
  },
@@ -524,72 +524,83 @@ function Ne(e, t) {
524
524
  }
525
525
  });
526
526
  });
527
- let de = B.derived(() => i() || B.get(V)?.slug || ""), fe = B.state(B.proxy([])), G = B.derived(() => B.get(V) ? {
527
+ let pe = B.derived(() => i() || B.get(V)?.slug || ""), me = B.state(B.proxy([])), G = B.derived(() => B.get(V) ? {
528
528
  ...B.get(V),
529
- seriesOccurrences: B.get(fe).length > 0 ? B.get(fe) : B.get(V).seriesOccurrences || []
530
- } : null), K = ee(), pe = B.state(!1), q = B.state(""), J = B.state(""), me = B.state(!1), he = B.derived(() => B.get(V)?.isPasswordProtected === !0 || B.get(A)?.hasPassword === !0), ge = B.derived(() => B.get(he) && !B.get(pe) && (B.get(A)?.passwordRequired === !0 || !ye(B.get(H))));
531
- function ye(e) {
532
- return le("event", e);
529
+ seriesOccurrences: B.get(me).length > 0 ? B.get(me) : B.get(V).seriesOccurrences || []
530
+ } : null), K = ne(), he = B.state(!1), q = B.state(""), J = B.state(""), ge = B.state(!1), _e = B.derived(() => B.get(V)?.isPasswordProtected === !0 || B.get(k)?.hasPassword === !0), ve = B.derived(() => B.get(_e) && !B.get(he) && (B.get(k)?.passwordRequired === !0 || !xe(B.get(H))));
531
+ function xe(e) {
532
+ return de("event", e);
533
533
  }
534
- function be(e) {
535
- ce("event", e);
534
+ function Se(e) {
535
+ ue("event", e);
536
536
  }
537
- async function xe(e) {
537
+ async function Ce(e) {
538
538
  let t = e.detail?.value || B.get(q);
539
539
  if (!(!t || !B.get(H))) {
540
- B.set(me, !0), B.set(J, "");
540
+ B.set(ge, !0), B.set(J, "");
541
541
  try {
542
- if ((await re(String(B.get(H)), t)).valid) {
542
+ if ((await ae(String(B.get(H)), t)).valid) {
543
543
  try {
544
- let e = await P(B.get(H), fetch, t);
545
- e && B.set(A, e, !0);
544
+ let e = await ie(B.get(H), fetch, t);
545
+ e && B.set(k, e, !0);
546
546
  } catch {}
547
- be(B.get(H)), B.set(pe, !0), K.close(), B.set(q, "");
547
+ Se(B.get(H)), B.set(he, !0), K.close(), B.set(q, "");
548
548
  } else B.set(J, b().incorrectPassword || "Incorrect password. Please try again", !0);
549
549
  } catch {
550
550
  B.set(J, b().unableToVerifyPassword || "Unable to verify password. Please try again", !0);
551
551
  } finally {
552
- B.set(me, !1);
552
+ B.set(ge, !1);
553
553
  }
554
554
  }
555
555
  }
556
- function Se() {
556
+ function we() {
557
557
  K.close(), a() && a()();
558
558
  }
559
- let Y = B.state(""), Ce = B.state(0), X = 0;
560
- async function we(e) {
561
- let t = ++X, n = await ae(String(B.get(H)), e), r = ve(n, e);
562
- if (r.isApplied && t === X && (B.set(Y, r.code, !0), B.set(Ce, r.discountAmount, !0), n.revealHiddenTickets || n.revealTicketIds?.length)) {
563
- let n = await ne(String(B.get(H)), e);
559
+ let Y = B.state(""), Te = B.state(0), X = 0;
560
+ async function Ee(e) {
561
+ let t = ++X, n = await re(String(B.get(H)), e), r = be(n, e);
562
+ if (r.isApplied && t === X && (B.set(Y, r.code, !0), B.set(Te, r.discountAmount, !0), n.revealHiddenTickets || n.revealTicketIds?.length)) {
563
+ let n = await P(String(B.get(H)), e);
564
564
  t === X && n.length > 0 && B.set(I, n, !0);
565
565
  }
566
566
  return r;
567
567
  }
568
- function Ne() {
569
- X++, B.set(Y, ""), B.set(Ce, 0), B.set(I, null);
568
+ function Le() {
569
+ X++, B.set(Y, ""), B.set(Te, 0), B.set(I, null);
570
570
  }
571
- let Pe = B.state(!1), Fe = B.state(!1), Z = B.state(!1), Q = B.state(""), $ = ee(), Ie = B.derived(() => B.get(Fe) && !B.get(Z)), Le = B.state(null), Re = B.state(null);
571
+ let Re = B.state(!1), ze = B.state(!1), Z = B.state(!1), Q = B.state(""), Be = ne(), Ve = B.derived(() => B.get(ze) && !B.get(Z)), He = B.state(null), Ue = B.state(null);
572
572
  B.user_effect(() => {
573
- let e = B.get(Le);
573
+ let e = B.get(He);
574
574
  if (e === null) return;
575
575
  let t = () => {
576
576
  let t = e - Date.now();
577
577
  if (t <= 0) {
578
- B.set(Re, null), B.set(Le, null), B.set(Z, !1), B.set(Q, Be("token_expired"), !0);
578
+ B.set(Ue, null), B.set(He, null), B.set(Z, !1), B.set($, "token_expired"), B.set(Q, Ye("token_expired"), !0), T(B.get(Q), { politeness: "assertive" });
579
579
  return;
580
580
  }
581
- B.set(Re, t);
581
+ B.set(Ue, t);
582
582
  };
583
583
  t();
584
584
  let n = setInterval(t, 1e3);
585
585
  return () => clearInterval(n);
586
586
  });
587
- let ze = B.derived(() => {
588
- if (B.get(Re) === null) return "";
589
- let e = Math.max(0, Math.floor(B.get(Re) / 1e3));
587
+ let We = B.derived(() => {
588
+ if (B.get(Ue) === null) return "";
589
+ let e = Math.max(0, Math.floor(B.get(Ue) / 1e3));
590
590
  return `${Math.floor(e / 60)}:${String(e % 60).padStart(2, "0")}`;
591
- });
592
- function Be(e) {
591
+ }), $ = B.state(""), Ge = B.state(!1), Ke = B.state(!1), qe = B.derived(() => B.get($) === "token_expired" && !!h() && !!_());
592
+ async function Je() {
593
+ if (!(B.get(Ge) || B.get(Ke) || !h() || !_())) {
594
+ B.set(Ge, !0);
595
+ try {
596
+ let e = await N(h(), _());
597
+ e.success ? (B.set(Ke, !0), B.set(Q, ""), T(b().waitlistRequeueDone || "You're first in line — we'll email you the moment the next seat opens up", { politeness: "polite" })) : e.errorCode === "entry_not_found" ? (B.set($, e.errorCode, !0), B.set(Q, b().waitlistRequeueNotOnList || "You're no longer on this waitlist — join again from the button below", !0)) : e.errorCode === "token_used" ? (B.set($, e.errorCode, !0), B.set(Q, Ye("token_used"), !0)) : B.set(Q, b().waitlistRequeueFailed || "We couldn't move you up just now — you're still on the waitlist", !0);
598
+ } finally {
599
+ B.set(Ge, !1);
600
+ }
601
+ }
602
+ }
603
+ function Ye(e) {
593
604
  switch (e) {
594
605
  case "token_expired": return b().waitlistLinkExpired || "This link has expired. You're still on the waitlist";
595
606
  case "token_used": return b().waitlistLinkUsed || "This link has already been used. You're still on the waitlist";
@@ -598,26 +609,26 @@ function Ne(e, t) {
598
609
  default: return b().waitlistLinkInvalid || "This link isn't valid. You're still on the waitlist — we'll email you if tickets free up";
599
610
  }
600
611
  }
601
- function Ve() {
602
- $.open();
612
+ function Xe() {
613
+ Be.open();
603
614
  }
604
- function He() {
615
+ function Ze() {
605
616
  B.set(Q, "");
606
617
  }
607
- async function Ue(e) {
618
+ async function Qe(e) {
608
619
  if (!B.get(G)) return;
609
- if (B.set(N, ""), e.total === null) {
610
- B.set(N, b().priceUnavailable || "We couldn't load the price for this order — refresh the page or contact the venue", !0);
620
+ if (B.set(M, ""), e.total === null) {
621
+ B.set(M, b().priceUnavailable || "We couldn't load the price for this order — refresh the page or contact the venue", !0);
611
622
  return;
612
623
  }
613
624
  let t = {}, n = {};
614
625
  for (let r of e.lines) t[r.ticketId] = r.quantity, B.get(G).tickets.find((e) => e.id === r.ticketId)?.isDonation && (n[r.ticketId] = r.unitPrice);
615
- L({
626
+ R({
616
627
  eventID: String(B.get(H)),
617
628
  quantities: t,
618
629
  donationAmounts: n,
619
630
  promocode: B.get(Y),
620
- promoDiscountAmount: B.get(Ce),
631
+ promoDiscountAmount: B.get(Te),
621
632
  tickets: B.get(G).tickets.map((e) => ({
622
633
  ID: e.id,
623
634
  name: e.name,
@@ -627,7 +638,7 @@ function Ne(e, t) {
627
638
  salesChannel: "0"
628
639
  }))
629
640
  });
630
- let r = await se({
641
+ let r = await ce({
631
642
  eventID: B.get(H),
632
643
  quantities: t,
633
644
  promoCode: B.get(Y) || void 0,
@@ -638,41 +649,41 @@ function Ne(e, t) {
638
649
  } : {}
639
650
  });
640
651
  if (!r?.success) {
641
- B.set(N, r?.error || b().failedToCompleteOrder || "Failed to complete order. Please try again", !0);
652
+ B.set(M, r?.error || b().failedToCompleteOrder || "Failed to complete order. Please try again", !0);
642
653
  return;
643
654
  }
644
- x(B.get(H), f(), k()), u() ? u()(B.get(H), B.get(de), B.get(A)) : y(D(T(B.get(H), B.get(de)), {}));
655
+ x(B.get(H), f(), O()), u() ? u()(B.get(H), B.get(pe), B.get(k)) : y(E(ee(B.get(H), B.get(pe)), {}));
645
656
  }
646
- function We(e) {
657
+ function $e(e) {
647
658
  if (d()) {
648
659
  d()(e);
649
660
  return;
650
661
  }
651
- e.id ? y(D(E(e.id, e.slug), {})) : (Ee.warn("Collection event missing id, navigating by slug only"), y(D(w(e.slug), {})));
662
+ e.id ? y(E(te(e.id, e.slug), {})) : (Oe.warn("Collection event missing id, navigating by slug only"), y(E(w(e.slug), {})));
652
663
  }
653
- function Ge(e) {
654
- l() ? l()(o(e.id), e.slug) : y(D(E(e.id, e.slug), {}));
664
+ function et(e) {
665
+ l() ? l()(o(e.id), e.slug) : y(E(te(e.id, e.slug), {}));
655
666
  }
656
- ue(async () => {
657
- if (!B.get(A) && r()) {
667
+ fe(async () => {
668
+ if (!B.get(k) && r()) {
658
669
  try {
659
- let e = await P(r());
660
- B.set(A, e, !0);
670
+ let e = await ie(r());
671
+ B.set(k, e, !0);
661
672
  } catch (e) {
662
- B.set(M, e.message || b().failedToLoadEvent || "Failed to load event", !0), B.set(j, !1);
673
+ B.set(j, e.message || b().failedToLoadEvent || "Failed to load event", !0), B.set(A, !1);
663
674
  return;
664
675
  }
665
- B.set(j, !1);
676
+ B.set(A, !1);
666
677
  }
667
- if (!B.get(A)) return;
668
- let e = B.get(A).ID || B.get(A).id;
669
- e && (R(e), C(e, f(), k()));
670
- let t = B.get(A).eventSeriesId || 0, n = B.get(A).venueID || B.get(A).venueId || 0;
678
+ if (!B.get(k)) return;
679
+ let e = B.get(k).ID || B.get(k).id;
680
+ e && (le(e), C(e, f(), O()));
681
+ let t = B.get(k).eventSeriesId || 0, n = B.get(k).venueID || B.get(k).venueId || 0;
671
682
  if (t > 0 && n > 0) try {
672
- let e = await ie(t, n);
683
+ let e = await L(t, n);
673
684
  if (Array.isArray(e) && e.length > 0) {
674
- let t = B.get(A).stageId ?? B.get(A).stageID ?? 0;
675
- B.set(fe, e.map((e) => {
685
+ let t = B.get(k).stageId ?? B.get(k).stageID ?? 0;
686
+ B.set(me, e.map((e) => {
676
687
  let r = e.venue || {}, i = r.id && r.id !== n || e.stageId && e.stageId !== t, a = i ? [r.name, e.stage?.name].filter(Boolean).join(" — ") : "", o = i ? r.googleLocationNameCache || [
677
688
  r.address,
678
689
  r.city,
@@ -692,25 +703,25 @@ function Ne(e, t) {
692
703
  }), !0);
693
704
  }
694
705
  } catch {}
695
- if (B.get(he) && !ye(B.get(H)) && K.open(), B.get(H)) {
696
- let e = await F(B.get(H));
697
- B.set(Pe, e.waitlistEnabled, !0), B.set(Fe, e.gated, !0);
706
+ if (B.get(_e) && !xe(B.get(H)) && K.open(), B.get(H)) {
707
+ let e = await oe(B.get(H));
708
+ B.set(Re, e.waitlistEnabled, !0), B.set(ze, e.gated, !0);
698
709
  }
699
710
  if (h() && _()) {
700
- let e = await te(h(), _());
711
+ let e = await F(h(), _());
701
712
  if (e.valid) {
702
713
  if (B.set(Z, !0), e.expiresAt) {
703
714
  let t = Date.parse(e.expiresAt);
704
- Number.isFinite(t) && B.set(Le, t, !0);
715
+ Number.isFinite(t) && B.set(He, t, !0);
705
716
  }
706
- } else B.set(Q, Be(e.errorCode), !0);
717
+ } else B.set($, e.errorCode || "invalid_token", !0), B.set(Q, Ye(e.errorCode), !0), B.get($) === "token_expired" && T(B.get(Q), { politeness: "polite" });
707
718
  }
708
719
  });
709
- var Ke = Me(), qe = B.first_child(Ke), Je = (e) => {
710
- var t = De(), n = B.child(t), r = B.child(n, !0);
720
+ var tt = Ie(), nt = B.first_child(tt), rt = (e) => {
721
+ var t = ke(), n = B.child(t), r = B.child(n, !0);
711
722
  B.reset(n), B.reset(t), B.template_effect(() => B.set_text(r, b().loadingEvent || "Loading event...")), B.append(e, t);
712
- }, Ye = (e) => {
713
- var t = Oe(), n = B.child(t), r = B.child(n);
723
+ }, it = (e) => {
724
+ var t = Ae(), n = B.child(t), r = B.child(n);
714
725
  B.reset(n);
715
726
  var i = B.sibling(n, 2), o = (e) => {
716
727
  s(e, {
@@ -728,10 +739,10 @@ function Ne(e, t) {
728
739
  };
729
740
  B.if(i, (e) => {
730
741
  a() && e(o);
731
- }), B.reset(t), B.template_effect(() => B.set_text(r, `${(b().errorPrefix || "Error:") ?? ""} ${B.get(M) ?? ""}`)), B.append(e, t);
732
- }, Xe = (e) => {
742
+ }), B.reset(t), B.template_effect(() => B.set_text(r, `${(b().errorPrefix || "Error:") ?? ""} ${B.get(j) ?? ""}`)), B.append(e, t);
743
+ }, at = (e) => {
733
744
  var t = B.comment(), n = B.first_child(t), r = (e) => {
734
- var t = ke(), n = B.child(t), r = B.child(n), i = B.child(r), a = B.child(i);
745
+ var t = je(), n = B.child(t), r = B.child(n), i = B.child(r), a = B.child(i);
735
746
  m(a, { size: "32" }), B.reset(i);
736
747
  var o = B.sibling(i, 2), l = B.child(o, !0);
737
748
  B.reset(o);
@@ -754,16 +765,16 @@ function Ne(e, t) {
754
765
  get event() {
755
766
  return B.get(G);
756
767
  },
757
- onCheckout: Ue,
768
+ onCheckout: Qe,
758
769
  get checkoutError() {
759
- return B.get(N);
770
+ return B.get(M);
760
771
  },
761
- onPromoApply: we,
762
- onPromoRemove: Ne,
763
- onCollectionEventClick: We,
764
- onShowtimeClick: Ge,
772
+ onPromoApply: Ee,
773
+ onPromoRemove: Le,
774
+ onCollectionEventClick: $e,
775
+ onShowtimeClick: et,
765
776
  get gated() {
766
- return B.get(Ie);
777
+ return B.get(Ve);
767
778
  },
768
779
  get unavailable() {
769
780
  return B.get(U);
@@ -772,51 +783,72 @@ function Ne(e, t) {
772
783
  return B.get(W);
773
784
  },
774
785
  get waitlistEnabled() {
775
- return B.get(Pe);
786
+ return B.get(Re);
776
787
  },
777
- onJoinWaitlist: Ve,
788
+ onJoinWaitlist: Xe,
778
789
  get waitlistLinkError() {
779
790
  return B.get(Q);
780
791
  },
781
- onDismissWaitlistLinkError: He,
792
+ onDismissWaitlistLinkError: Ze,
782
793
  get labels() {
783
794
  return b();
784
795
  },
785
796
  get locale() {
786
- return O();
797
+ return D();
787
798
  }
788
799
  }), B.reset(p), B.reset(t), B.template_effect(() => {
789
800
  B.set_text(l, b().passwordProtectedTitle || "This event is password protected"), B.set_text(d, b().passwordProtectedDescription || "Enter the event password to view details and purchase tickets");
790
801
  }), B.append(e, t);
791
802
  }, i = (e) => {
792
- var t = je(), n = B.first_child(t), r = (e) => {
793
- var t = Ae(), n = B.child(t), r = B.child(n), i = B.sibling(r), a = B.child(i, !0);
803
+ var t = Fe(), n = B.first_child(t), r = (e) => {
804
+ var t = Me(), n = B.child(t), r = B.child(n), i = B.sibling(r), a = B.child(i, !0);
794
805
  B.reset(i);
795
806
  var o = B.sibling(i);
796
807
  B.reset(n), B.reset(t), B.template_effect(() => {
797
- B.set_text(r, `${(b().waitlistWindowNotice || "These tickets are being held for you for") ?? ""} `), B.set_text(a, B.get(ze)), B.set_text(o, ` ${(b().waitlistWindowSuffix || "— after that, your spot passes to the next person in line") ?? ""}`);
808
+ B.set_text(r, `${(b().waitlistWindowNotice || "These tickets are being held for you for") ?? ""} `), B.set_text(a, B.get(We)), B.set_text(o, ` ${(b().waitlistWindowSuffix || "— after that, your spot passes to the next person in line") ?? ""}`);
798
809
  }), B.append(e, t);
810
+ }, i = (e) => {
811
+ var t = Ne(), n = B.child(t), r = B.child(n, !0);
812
+ B.reset(n), B.reset(t), B.template_effect(() => B.set_text(r, b().waitlistRequeueDone || "You're first in line — we'll email you the moment the next seat opens up")), B.append(e, t);
813
+ }, a = (e) => {
814
+ var t = Pe(), n = B.child(t), r = B.child(n, !0);
815
+ B.reset(n);
816
+ var i = B.sibling(n, 2), a = B.child(i);
817
+ s(a, {
818
+ variant: "default",
819
+ size: "sm",
820
+ get disabled() {
821
+ return B.get(Ge);
822
+ },
823
+ onclick: Je,
824
+ children: (e, t) => {
825
+ B.next();
826
+ var n = B.text();
827
+ B.template_effect(() => B.set_text(n, B.get(Ge) ? b().waitlistRequeueBusy || "Moving you up…" : b().waitlistRequeueCta || "Take the next spot in line")), B.append(e, n);
828
+ },
829
+ $$slots: { default: !0 }
830
+ }), B.reset(i), B.reset(t), B.template_effect(() => B.set_text(r, b().waitlistWindowExpired || "Your purchase window has expired — the seat is being offered to the next person in line")), B.append(e, t);
799
831
  };
800
832
  B.if(n, (e) => {
801
- B.get(Z) && B.get(ze) && e(r);
833
+ B.get(Z) && B.get(We) ? e(r) : B.get(Ke) ? e(i, 1) : B.get(qe) && e(a, 2);
802
834
  });
803
- var i = B.sibling(n, 2);
835
+ var o = B.sibling(n, 2);
804
836
  {
805
- let e = B.derived(() => B.get(Z) ? h() : ""), t = B.derived(() => B.get(Z) ? _() : "");
806
- c(i, {
837
+ let e = B.derived(() => B.get(qe) || B.get(Ke) ? "" : B.get(Q)), t = B.derived(() => B.get(Z) ? h() : ""), n = B.derived(() => B.get(Z) ? _() : "");
838
+ c(o, {
807
839
  get event() {
808
840
  return B.get(G);
809
841
  },
810
- onCheckout: Ue,
842
+ onCheckout: Qe,
811
843
  get checkoutError() {
812
- return B.get(N);
844
+ return B.get(M);
813
845
  },
814
- onPromoApply: we,
815
- onPromoRemove: Ne,
816
- onCollectionEventClick: We,
817
- onShowtimeClick: Ge,
846
+ onPromoApply: Ee,
847
+ onPromoRemove: Le,
848
+ onCollectionEventClick: $e,
849
+ onShowtimeClick: et,
818
850
  get gated() {
819
- return B.get(Ie);
851
+ return B.get(Ve);
820
852
  },
821
853
  get unavailable() {
822
854
  return B.get(U);
@@ -825,45 +857,45 @@ function Ne(e, t) {
825
857
  return B.get(W);
826
858
  },
827
859
  get waitlistEnabled() {
828
- return B.get(Pe);
860
+ return B.get(Re);
829
861
  },
830
- onJoinWaitlist: Ve,
862
+ onJoinWaitlist: Xe,
831
863
  get waitlistLinkError() {
832
- return B.get(Q);
864
+ return B.get(e);
833
865
  },
834
- onDismissWaitlistLinkError: He,
866
+ onDismissWaitlistLinkError: Ze,
835
867
  get waitlistToken() {
836
- return B.get(e);
868
+ return B.get(t);
837
869
  },
838
870
  get waitlistEmail() {
839
- return B.get(t);
871
+ return B.get(n);
840
872
  },
841
873
  get labels() {
842
874
  return b();
843
875
  },
844
876
  get locale() {
845
- return O();
877
+ return D();
846
878
  }
847
879
  });
848
880
  }
849
881
  B.append(e, t);
850
882
  };
851
883
  B.if(n, (e) => {
852
- B.get(ge) ? e(r) : e(i, -1);
884
+ B.get(ve) ? e(r) : e(i, -1);
853
885
  }), B.append(e, t);
854
886
  };
855
- B.if(qe, (e) => {
856
- B.get(j) ? e(Je) : B.get(M) ? e(Ye, 1) : B.get(G) && e(Xe, 2);
887
+ B.if(nt, (e) => {
888
+ B.get(A) ? e(rt) : B.get(j) ? e(it, 1) : B.get(G) && e(at, 2);
857
889
  });
858
- var Ze = B.sibling(qe, 2), Qe = () => K.isOpen, $e = (e) => e ? K.open() : K.close();
890
+ var ot = B.sibling(nt, 2), st = () => K.isOpen, ct = (e) => e ? K.open() : K.close();
859
891
  {
860
892
  let e = B.derived(() => b().enterEventPassword || "Enter event password"), t = B.derived(() => b().passwordModalDescription || "This event requires a password to view. Please enter the password provided by the event organizer"), n = B.derived(() => b().passwordLabel || "Password"), r = B.derived(() => !!B.get(J)), i = B.derived(() => b().unlockEvent || "Unlock event"), a = B.derived(() => b().goBack || "Go back");
861
- _e(Ze, {
893
+ ye(ot, {
862
894
  get open() {
863
- return Qe();
895
+ return st();
864
896
  },
865
897
  set open(e) {
866
- $e(e);
898
+ ct(e);
867
899
  },
868
900
  size: "md",
869
901
  get title() {
@@ -890,11 +922,11 @@ function Ne(e, t) {
890
922
  return B.get(a);
891
923
  },
892
924
  get loading() {
893
- return B.get(me);
925
+ return B.get(ge);
894
926
  },
895
- onconfirm: xe,
896
- oncancel: Se,
897
- onclose: Se,
927
+ onconfirm: Ce,
928
+ oncancel: we,
929
+ onclose: we,
898
930
  get inputValue() {
899
931
  return B.get(q);
900
932
  },
@@ -903,15 +935,15 @@ function Ne(e, t) {
903
935
  }
904
936
  });
905
937
  }
906
- var et = B.sibling(Ze, 2), tt = () => $.isOpen, nt = (e) => e ? $.open() : $.close();
938
+ var lt = B.sibling(ot, 2), ut = () => Be.isOpen, dt = (e) => e ? Be.open() : Be.close();
907
939
  {
908
940
  let e = B.derived(() => B.get(G)?.title || "this event");
909
- Te(et, {
941
+ De(lt, {
910
942
  get show() {
911
- return tt();
943
+ return ut();
912
944
  },
913
945
  set show(e) {
914
- nt(e);
946
+ dt(e);
915
947
  },
916
948
  get eventId() {
917
949
  return B.get(H);
@@ -919,13 +951,13 @@ function Ne(e, t) {
919
951
  get eventName() {
920
952
  return B.get(e);
921
953
  },
922
- onClose: () => $.close(),
954
+ onClose: () => Be.close(),
923
955
  get labels() {
924
956
  return b();
925
957
  }
926
958
  });
927
959
  }
928
- B.append(e, Ke), B.pop();
960
+ B.append(e, tt), B.pop();
929
961
  }
930
962
  //#endregion
931
- export { Ne as default };
963
+ export { Le as default };