@getmicdrop/venue-calendar 4.2.20 → 4.2.22

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 (73) hide show
  1. package/dist/{ArrowLeftIcon-CNxF9YFb.js → ArrowLeftIcon-6kNeTusg.js} +1 -1
  2. package/dist/{BlockPlaceholder-CnvIm7eh.js → BlockPlaceholder-CEJDOrNm.js} +1 -1
  3. package/dist/{Calendar-D7s5gLk_.js → Calendar-DnROCC5T.js} +4 -4
  4. package/dist/{CalendarFoundryView-BrsToTIb.js → CalendarFoundryView-Cxdj0Oz9.js} +21 -21
  5. package/dist/{CalendarIcon-BBTaRYp7.js → CalendarIcon-UqiJ_r0h.js} +1 -1
  6. package/dist/{CartView-cHL2n0fE.js → CartView-CbofgBQ_.js} +17 -17
  7. package/dist/{Checkout-Blc7IuZ2.js → Checkout-BcLpNxe4.js} +19 -19
  8. package/dist/{Checkout-DNVyBcrm.js → Checkout-D9zgRmnR.js} +12 -12
  9. package/dist/{CheckoutTimer-D5i2F8al.js → CheckoutTimer-CLrpjh4B.js} +2 -2
  10. package/dist/{ChevronDownIcon-Ba1RZBsy.js → ChevronDownIcon-DV9bpKD7.js} +1 -1
  11. package/dist/{ClockIcon-DNJWLc1C.js → ClockIcon-kkpSZ1q8.js} +1 -1
  12. package/dist/{CloseIcon-BpvJsO5u.js → CloseIcon-eUSt5VYo.js} +1 -1
  13. package/dist/{CollectionView-DzoCBduF.js → CollectionView-6G-31HHl.js} +6 -6
  14. package/dist/{Event-D5u7y0w3.js → Event-DtaPXsEV.js} +15 -15
  15. package/dist/{EventPage-Ddslq4xC.js → EventPage-CAmpqvgI.js} +240 -201
  16. package/dist/{Input-BvutquC_.js → Input-yBh2hkV6.js} +1 -1
  17. package/dist/{MailIcon-r5G2Lccc.js → MailIcon-6aZX_R1q.js} +1 -1
  18. package/dist/{Modal-kJYg2hMo.js → Modal-CQ1kzfIZ.js} +2 -2
  19. package/dist/{ModalFooter-DMxM0E8Y.js → ModalFooter-RlEBjkyy.js} +1 -1
  20. package/dist/{PasswordInput-D5_BuRnw.js → PasswordInput-tXIXquQn.js} +1 -1
  21. package/dist/{ScarcityBadge-R32tzjFi.js → ScarcityBadge-CpzMexCJ.js} +2 -2
  22. package/dist/{SeriesPage-BPm7CNzY.js → SeriesPage-k9Di6IES.js} +3 -3
  23. package/dist/{Success-CXI2Xtdz.js → Success-D2C_NGGZ.js} +11 -11
  24. package/dist/{TagIcon-_OxEQnM3.js → TagIcon-CL-WakC2.js} +1 -1
  25. package/dist/{WarningCircleIcon-D1Kt1Sw1.js → WarningCircleIcon-_c1NIpSQ.js} +1 -1
  26. package/dist/{WarningTriIcon-DjcnvD51.js → WarningTriIcon-CWhEFD0v.js} +1 -1
  27. package/dist/api/api.cjs +1 -1
  28. package/dist/api/api.mjs +42 -27
  29. package/dist/api/index.d.ts +2 -2
  30. package/dist/api/waitlist.d.ts +17 -0
  31. package/dist/{colors-5g6cmoXX.js → colors-tL-ehMVJ.js} +50 -35
  32. package/dist/{constants-BWfNecCz.js → constants-Dd1OW0ym.js} +9 -0
  33. package/dist/{copyToClipboard-BTVrJgtZ.js → copyToClipboard-pItu9GWS.js} +1 -1
  34. package/dist/{event-transform-0VCBk_zn.js → event-transform-bVAER-JP.js} +9 -9
  35. package/dist/{href-D7yXIGzE.js → href-Blf-LMRj.js} +1 -1
  36. package/dist/{i18n-D7pvVga7.js → i18n-CBBSuE6i.js} +3 -3
  37. package/dist/{labels-7f_yKBtq.js → labels-9dG3ox32.js} +1 -1
  38. package/dist/{modalManager.svelte-DDWCrGed.js → modalManager.svelte-6Lza8ixV.js} +1 -1
  39. package/dist/{order-totals-DptlFbmv.js → order-totals-CVbhke9i.js} +1 -1
  40. package/dist/{phoneUtils-PJqYw0dJ.js → phoneUtils-DsK2Ic7g.js} +1 -1
  41. package/dist/{serverTotals-COgFExPF.js → serverTotals-CNjGootb.js} +1 -1
  42. package/dist/{shareCopyFeedback.svelte-DZMLGA3y.js → shareCopyFeedback.svelte-KjYs8ZAM.js} +2 -2
  43. package/dist/{to-event-card-props-BaPEUAZW.js → to-event-card-props-BEUlUY9R.js} +1 -1
  44. package/dist/{utils-DLfxcnPk.js → utils-Qwhx5UAM.js} +1 -1
  45. package/dist/venue-calendar.css +1 -1
  46. package/dist/venue-calendar.es.js +27 -27
  47. package/dist/venue-calendar.iife.js +53 -53
  48. package/dist/venue-calendar.umd.js +55 -55
  49. package/package.json +1 -1
  50. /package/dist/locales/{4.2.20 → 4.2.22}/flow/de.js +0 -0
  51. /package/dist/locales/{4.2.20 → 4.2.22}/flow/es.js +0 -0
  52. /package/dist/locales/{4.2.20 → 4.2.22}/flow/fr.js +0 -0
  53. /package/dist/locales/{4.2.20 → 4.2.22}/flow/id.js +0 -0
  54. /package/dist/locales/{4.2.20 → 4.2.22}/flow/it.js +0 -0
  55. /package/dist/locales/{4.2.20 → 4.2.22}/flow/ja.js +0 -0
  56. /package/dist/locales/{4.2.20 → 4.2.22}/flow/ko.js +0 -0
  57. /package/dist/locales/{4.2.20 → 4.2.22}/flow/nl.js +0 -0
  58. /package/dist/locales/{4.2.20 → 4.2.22}/flow/pl.js +0 -0
  59. /package/dist/locales/{4.2.20 → 4.2.22}/flow/pt-br.js +0 -0
  60. /package/dist/locales/{4.2.20 → 4.2.22}/flow/tr.js +0 -0
  61. /package/dist/locales/{4.2.20 → 4.2.22}/flow/zh.js +0 -0
  62. /package/dist/locales/{4.2.20 → 4.2.22}/main/de.js +0 -0
  63. /package/dist/locales/{4.2.20 → 4.2.22}/main/es.js +0 -0
  64. /package/dist/locales/{4.2.20 → 4.2.22}/main/fr.js +0 -0
  65. /package/dist/locales/{4.2.20 → 4.2.22}/main/id.js +0 -0
  66. /package/dist/locales/{4.2.20 → 4.2.22}/main/it.js +0 -0
  67. /package/dist/locales/{4.2.20 → 4.2.22}/main/ja.js +0 -0
  68. /package/dist/locales/{4.2.20 → 4.2.22}/main/ko.js +0 -0
  69. /package/dist/locales/{4.2.20 → 4.2.22}/main/nl.js +0 -0
  70. /package/dist/locales/{4.2.20 → 4.2.22}/main/pl.js +0 -0
  71. /package/dist/locales/{4.2.20 → 4.2.22}/main/pt-br.js +0 -0
  72. /package/dist/locales/{4.2.20 → 4.2.22}/main/tr.js +0 -0
  73. /package/dist/locales/{4.2.20 → 4.2.22}/main/zh.js +0 -0
@@ -1,36 +1,36 @@
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-DtaPXsEV.js";
4
+ import { n as l, t as u } from "./Input-yBh2hkV6.js";
5
+ import { a as d, c as f, n as p, o as m, s as h } from "./phoneUtils-DsK2Ic7g.js";
6
+ import { y as g } from "./constants-Dd1OW0ym.js";
7
+ import { t as _ } from "./ClockIcon-kkpSZ1q8.js";
8
+ import { n as v } from "./shareCopyFeedback.svelte-KjYs8ZAM.js";
9
+ import { n as y } from "./ScarcityBadge-CpzMexCJ.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";
12
+ import { i as w, l as T, n as E, s as ee, 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-RlEBjkyy.js";
14
+ import { n as N, t as te } from "./modalManager.svelte-6Lza8ixV.js";
15
+ import { T as ne, c as P, g as F, h as re, l as I, m as ie, o as ae, s as L, y as R } from "./colors-tL-ehMVJ.js";
16
16
  import { t as oe } from "./eventStatusStream-C5KadkMh.js";
17
- import { d as L, i as se, t as R } from "./utils-DLfxcnPk.js";
18
- import { r as z } from "./promo-DtLZRskK.js";
19
- import { a as ce, r as le } from "./gate-password-cache-oOcDm9Ki.js";
17
+ import { d as z, i as se, t as ce } from "./utils-Qwhx5UAM.js";
18
+ import { r as le } from "./promo-DtLZRskK.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() });
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), ee = B.prop(o, "validateEmail", 3, !1), D = 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(() => D() ?? B.get(I).confirm), ae = B.derived(() => te() ?? B.get(I).cancel), L = (e) => a(e), R = B.derived(() => !!(ee() && y() && !L(y()))), oe = B.derived(() => !!(x() && (!y() || y().trim() === ""))), z = B.derived(() => E() || B.get(R)), se = B.derived(() => P() || F() || B.get(oe) || B.get(R)), ce = () => {
33
+ B.get(se) || o.onconfirm?.({ value: y() });
34
34
  }, le = (e) => {
35
35
  if (!(e.isComposing || e.keyCode === 229) && b(e)) {
36
36
  if (v() === "textarea") {
@@ -39,11 +39,11 @@ function _e(i, o) {
39
39
  e.preventDefault(), ce();
40
40
  }
41
41
  }, ue = () => {
42
- !P() && !F() && (o.oncancel?.(), _e());
43
- }, _e = () => {
42
+ !P() && !F() && (o.oncancel?.(), de());
43
+ }, de = () => {
44
44
  c(!1), o.onclose?.();
45
- }, ve = () => {
46
- P() || F() || _e();
45
+ }, fe = () => {
46
+ P() || F() || de();
47
47
  };
48
48
  O(i, {
49
49
  get size() {
@@ -59,12 +59,12 @@ function _e(i, o) {
59
59
  c(e);
60
60
  },
61
61
  children: (e, i) => {
62
- var a = ge(), o = B.first_child(a);
62
+ var a = ve(), o = B.first_child(a);
63
63
  k(o, {});
64
64
  var s = B.sibling(o, 2);
65
65
  j(s, {
66
66
  children: (e, i) => {
67
- var a = he(), o = B.first_child(a);
67
+ var a = _e(), o = B.first_child(a);
68
68
  N(o, {
69
69
  children: (e, t) => {
70
70
  var i = W(), a = B.child(i), o = (e) => {
@@ -72,7 +72,7 @@ function _e(i, o) {
72
72
  n(r, {
73
73
  variant: "icon",
74
74
  size: "xs",
75
- onclick: ve,
75
+ onclick: fe,
76
76
  get disabled() {
77
77
  return P();
78
78
  },
@@ -104,7 +104,7 @@ function _e(i, o) {
104
104
  A(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();
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(z) ? "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
128
  }), B.delegated("keydown", t, le), 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,7 +145,7 @@ 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`);
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(z) ? "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
149
  }), B.delegated("keydown", a, le), B.bind_value(a, y), B.append(e, t);
150
150
  };
151
151
  B.if(u, (e) => {
@@ -156,16 +156,16 @@ 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(R) ? B.get(I).invalidEmail : T()) ?? ""}`);
160
160
  }), B.append(e, t);
161
161
  }, E = (e) => {
162
- var t = de(), n = B.child(t, !0);
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(z) && (T() || B.get(R)) ? e(b) : w() && !B.get(z) && e(E, 1);
169
169
  }), B.reset(s), B.reset(i), B.append(e, i);
170
170
  },
171
171
  $$slots: { default: !0 }
@@ -173,7 +173,7 @@ function _e(i, o) {
173
173
  var c = B.sibling(s, 2);
174
174
  M(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
178
  let t = B.derived(() => P() || F());
179
179
  n(e, {
@@ -203,7 +203,7 @@ function _e(i, o) {
203
203
  },
204
204
  onclick: ce,
205
205
  get disabled() {
206
- return B.get(z);
206
+ return B.get(se);
207
207
  },
208
208
  get loading() {
209
209
  return F();
@@ -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,
@@ -250,40 +250,40 @@ function ve(e, t) {
250
250
  hint: `${n.toUpperCase()} applied`,
251
251
  discountAmount: e.amount == null ? 0 : e.amount,
252
252
  discountType: e.discountType === "percentage" ? "%" : e.discountType === "fixed" ? "$" : "",
253
- discountTicketIds: z(e),
253
+ discountTicketIds: le(e),
254
254
  revealHiddenTickets: e.revealHiddenTickets || !1,
255
255
  revealTicketIds: e.revealTicketIds || []
256
256
  };
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 class=\"mt-2 type-body tone-secondary max-w-72\"> </p>"), Se = B.from_html("<p> </p>"), Ce = 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>"), we = B.from_html("<p class=\"type-caption text-accent-danger mt-1\"> </p>"), Y = B.from_html("<div class=\"ml-7\"><!> <!> <p> </p></div>"), Te = B.from_html("<div class=\"p-3 bg-status-error-bg border border-status-error-border rounded-lg\"><p> </p></div>"), X = 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>"), Ee = B.from_html("<!> <!>", 1), De = B.from_html("<div class=\"flex gap-3 w-full\" role=\"group\"><!></div>");
261
+ function Oe(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");
265
- let i = B.prop(t, "onClose", 3, () => {}), o = B.prop(t, "labels", 3, g), c = B.state(""), d = B.state(""), f = B.state(!1), m = B.state(!1), v = B.state(""), y = B.state(!1), b = B.derived(() => B.get(c) && !S(B.get(c)) ? o().pleaseEnterValidEmail || "Please enter a valid email" : ""), x = B.derived(() => B.get(d) && B.get(f) && !C(B.get(d)) ? o().pleaseEnterValidPhone || "Please enter a valid phone number" : "");
266
- function S(e) {
265
+ let i = B.prop(t, "onClose", 3, () => {}), o = B.prop(t, "labels", 3, g), c = B.state(""), d = B.state(""), f = B.state(!1), m = B.state(!1), v = B.state(""), y = B.state(!1), b = B.state(0), x = B.derived(() => B.get(c) && !C(B.get(c)) ? o().pleaseEnterValidEmail || "Please enter a valid email" : ""), S = B.derived(() => B.get(d) && B.get(f) && !w(B.get(d)) ? o().pleaseEnterValidPhone || "Please enter a valid phone number" : "");
266
+ function C(e) {
267
267
  return a(e);
268
268
  }
269
- function C(e) {
269
+ function w(e) {
270
270
  return p(l(e));
271
271
  }
272
- async function w() {
273
- if (B.set(v, ""), !B.get(c) || !S(B.get(c))) {
272
+ async function T() {
273
+ if (B.set(v, ""), !B.get(c) || !C(B.get(c))) {
274
274
  B.set(v, o().pleaseEnterValidEmailAddress || "Please enter a valid email address", !0);
275
275
  return;
276
276
  }
277
- if (B.get(f) && B.get(d) && !C(B.get(d))) {
277
+ if (B.get(f) && B.get(d) && !w(B.get(d))) {
278
278
  B.set(v, o().pleaseEnterValidPhone || "Please enter a valid phone number", !0);
279
279
  return;
280
280
  }
281
281
  B.set(m, !0);
282
- let e = await I(t.eventId, B.get(c), B.get(f) ? B.get(d) : null, B.get(f));
283
- B.set(m, !1), e.success ? B.set(y, !0) : B.set(v, e.error, !0);
282
+ let e = await L(t.eventId, B.get(c), B.get(f) ? B.get(d) : null, B.get(f));
283
+ B.set(m, !1), e.success ? (B.set(y, !0), B.set(b, e.position || 0, !0)) : B.set(v, e.error, !0);
284
284
  }
285
- function T() {
286
- B.set(c, ""), B.set(d, ""), B.set(f, !1), B.set(v, ""), B.set(y, !1), n(!1), i()();
285
+ function E() {
286
+ B.set(c, ""), B.set(d, ""), B.set(f, !1), B.set(v, ""), B.set(y, !1), B.set(b, 0), n(!1), i()();
287
287
  }
288
288
  O(e, {
289
289
  size: "sm",
@@ -295,44 +295,51 @@ function Te(e, t) {
295
295
  n(e);
296
296
  },
297
297
  children: (e, t) => {
298
- var n = X(), i = B.first_child(n);
298
+ var n = Ee(), i = B.first_child(n);
299
299
  k(i, {});
300
300
  var a = B.sibling(i, 2);
301
301
  j(a, {
302
302
  children: (e, t) => {
303
- var n = X(), i = B.first_child(n);
303
+ var n = Ee(), i = B.first_child(n);
304
304
  A(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 = Ce(), 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
+ B.reset(t), B.template_effect((e) => B.set_text(n, e), [() => (o().waitlistPositionEstimate || "You're about #{position} in line — this moves as seats free up").replace("{position}", String(B.get(b)))]), B.append(e, t);
316
+ };
317
+ B.if(u, (e) => {
318
+ B.get(b) > 0 && e(p);
319
+ });
320
+ var m = B.sibling(u, 2), g = (e) => {
321
+ var t = Se(), n = B.child(t, !0);
315
322
  B.reset(t), B.template_effect(() => {
316
323
  B.set_class(t, 1, `mt-2 ${r.xsMuted ?? ""}`), B.set_text(n, o().waitlistSmsAlerts || "You'll also receive SMS alerts");
317
324
  }), B.append(e, t);
318
325
  };
319
- B.if(u, (e) => {
320
- B.get(f) && B.get(d) && e(p);
326
+ B.if(m, (e) => {
327
+ B.get(f) && B.get(d) && e(g);
321
328
  }), B.reset(t), B.template_effect(() => {
322
329
  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
330
  }), B.append(e, t);
324
331
  }, s = (e) => {
325
- var t = Ce(), n = B.child(t), i = B.child(n), a = B.child(i);
332
+ var t = X(), n = B.child(t), i = B.child(n), a = B.child(i);
326
333
  _(a, { size: "24" }), B.reset(i), B.reset(n);
327
334
  var s = B.sibling(n, 2), l = B.child(s, !0);
328
335
  B.reset(s);
329
336
  var p = B.sibling(s, 2), h = B.child(p, !0);
330
337
  B.reset(p);
331
- var g = B.sibling(p, 2), y = B.child(g), S = B.child(y), C = B.child(S, !0);
332
- B.reset(S);
333
- var T = B.sibling(S, 2), E = B.child(T);
338
+ var g = B.sibling(p, 2), y = B.child(g), b = B.child(y), C = B.child(b, !0);
339
+ B.reset(b);
340
+ var w = B.sibling(b, 2), E = B.child(w);
334
341
  {
335
- let e = B.derived(() => o().waitlistEmailPlaceholder || "you@example.com"), t = B.derived(() => B.get(b) ? "border-status-error-border" : "");
342
+ let e = B.derived(() => o().waitlistEmailPlaceholder || "you@example.com"), t = B.derived(() => B.get(x) ? "border-status-error-border" : "");
336
343
  u(E, {
337
344
  id: "waitlist-email",
338
345
  type: "email",
@@ -354,22 +361,22 @@ function Te(e, t) {
354
361
  }
355
362
  });
356
363
  }
357
- B.reset(T);
358
- var D = B.sibling(T, 2), O = (e) => {
359
- var t = xe(), n = B.child(t, !0);
360
- B.reset(t), B.template_effect(() => B.set_text(n, B.get(b))), B.append(e, t);
364
+ B.reset(w);
365
+ var ee = B.sibling(w, 2), D = (e) => {
366
+ var t = we(), n = B.child(t, !0);
367
+ B.reset(t), B.template_effect(() => B.set_text(n, B.get(x))), B.append(e, t);
361
368
  };
362
- B.if(D, (e) => {
363
- B.get(b) && e(O);
369
+ B.if(ee, (e) => {
370
+ B.get(x) && e(D);
364
371
  }), 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);
372
+ var O = B.sibling(y, 2), k = B.child(O), A = B.child(k);
373
+ B.remove_input_defaults(A);
374
+ var j = B.sibling(A, 2), M = B.child(j, !0);
375
+ B.reset(j), B.reset(k);
376
+ var N = B.sibling(k, 2), te = (e) => {
377
+ var t = Y(), n = B.child(t);
371
378
  {
372
- let e = B.derived(() => o().waitlistPhonePlaceholder || "(555) 123-4567"), t = B.derived(() => B.get(x) ? "border-status-error-border" : "");
379
+ let e = B.derived(() => o().waitlistPhonePlaceholder || "(555) 123-4567"), t = B.derived(() => B.get(S) ? "border-status-error-border" : "");
373
380
  u(n, {
374
381
  id: "waitlist-phone",
375
382
  type: "tel",
@@ -391,22 +398,22 @@ function Te(e, t) {
391
398
  });
392
399
  }
393
400
  var i = B.sibling(n, 2), a = (e) => {
394
- var t = xe(), n = B.child(t, !0);
395
- B.reset(t), B.template_effect(() => B.set_text(n, B.get(x))), B.append(e, t);
401
+ var t = we(), n = B.child(t, !0);
402
+ B.reset(t), B.template_effect(() => B.set_text(n, B.get(S))), B.append(e, t);
396
403
  };
397
404
  B.if(i, (e) => {
398
- B.get(x) && e(a);
405
+ B.get(S) && e(a);
399
406
  });
400
407
  var s = B.sibling(i, 2), c = B.child(s, !0);
401
408
  B.reset(s), B.reset(t), B.template_effect(() => {
402
409
  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
410
  }), B.append(e, t);
404
411
  };
405
- B.if(ee, (e) => {
412
+ B.if(N, (e) => {
406
413
  B.get(f) && e(te);
407
- }), B.reset(k);
408
- var ne = B.sibling(k, 2), P = (e) => {
409
- var t = Y(), n = B.child(t), i = B.child(n, !0);
414
+ }), B.reset(O);
415
+ var ne = B.sibling(O, 2), P = (e) => {
416
+ var t = Te(), n = B.child(t), i = B.child(n, !0);
410
417
  B.reset(n), B.reset(t), B.template_effect(() => {
411
418
  B.set_class(n, 1, B.clsx(r.error)), B.set_text(i, B.get(v));
412
419
  }), B.append(e, t);
@@ -414,10 +421,10 @@ function Te(e, t) {
414
421
  B.if(ne, (e) => {
415
422
  B.get(v) && e(P);
416
423
  }), 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");
424
+ 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(A, "aria-label", o().smsOptIn || "Text me when tickets are available"), A.disabled = B.get(m), B.set_text(M, o().smsOptIn || "Text me when tickets are available");
418
425
  }), B.event("submit", g, (e) => {
419
- e.preventDefault(), w();
420
- }), B.bind_checked(j, () => B.get(f), (e) => B.set(f, e)), B.append(e, t);
426
+ e.preventDefault(), T();
427
+ }), B.bind_checked(A, () => B.get(f), (e) => B.set(f, e)), B.append(e, t);
421
428
  };
422
429
  B.if(i, (e) => {
423
430
  B.get(y) ? e(a) : e(s, -1);
@@ -428,11 +435,11 @@ function Te(e, t) {
428
435
  var a = B.sibling(i, 2);
429
436
  M(a, {
430
437
  children: (e, t) => {
431
- var n = we(), r = B.child(n), i = (e) => {
438
+ var n = De(), r = B.child(n), i = (e) => {
432
439
  s(e, {
433
440
  size: "full",
434
441
  variant: "default",
435
- onclick: T,
442
+ onclick: E,
436
443
  children: (e, t) => {
437
444
  B.next();
438
445
  var n = B.text();
@@ -441,11 +448,11 @@ function Te(e, t) {
441
448
  $$slots: { default: !0 }
442
449
  });
443
450
  }, a = (e) => {
444
- var t = X(), n = B.first_child(t);
451
+ var t = Ee(), n = B.first_child(t);
445
452
  s(n, {
446
453
  size: "full",
447
454
  variant: "alternative",
448
- onclick: T,
455
+ onclick: E,
449
456
  get disabled() {
450
457
  return B.get(m);
451
458
  },
@@ -458,11 +465,11 @@ function Te(e, t) {
458
465
  });
459
466
  var r = B.sibling(n, 2);
460
467
  {
461
- let e = B.derived(() => !B.get(c) || !!B.get(b) || B.get(f) && B.get(d) && !!B.get(x));
468
+ let e = B.derived(() => !B.get(c) || !!B.get(x) || B.get(f) && B.get(d) && !!B.get(S));
462
469
  s(r, {
463
470
  size: "full",
464
471
  variant: "default",
465
- onclick: w,
472
+ onclick: T,
466
473
  get loading() {
467
474
  return B.get(m);
468
475
  },
@@ -494,8 +501,8 @@ function Te(e, t) {
494
501
  }
495
502
  //#endregion
496
503
  //#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) {
504
+ var ke = i("EventPage"), Ae = B.from_html("<div class=\"flex items-center justify-center py-12 text-center loading-container svelte-1dk5n3m\"><p> </p></div>"), je = 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>"), Me = 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>"), Ne = B.from_html("<div class=\"waitlist-window-banner svelte-1dk5n3m\"><span class=\"type-body\"> <strong class=\"waitlist-window-time svelte-1dk5n3m\"> </strong> </span></div>"), Pe = B.from_html("<div class=\"waitlist-window-banner svelte-1dk5n3m\"><span class=\"type-body\"> </span></div>"), Fe = 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>"), Ie = B.from_html("<!> <!>", 1), Le = B.from_html("<!> <!> <!>", 1);
505
+ function Re(e, t) {
499
506
  B.push(t, !0);
500
507
  let n = B.prop(t, "rawEvent", 3, void 0), r = B.prop(t, "eventId", 3, void 0), i = B.prop(t, "slug", 3, "");
501
508
  B.prop(t, "currentEventId", 3, void 0);
@@ -505,14 +512,14 @@ function Ne(e, t) {
505
512
  B.user_effect(() => {
506
513
  n() && B.set(A, n());
507
514
  });
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)));
515
+ let M = B.state(null), N = B.state(""), L = B.state(null), le = B.derived(() => {
516
+ if (!B.get(A) || !B.get(L)?.length) return B.get(A);
517
+ let e = B.get(A).availableTickets || [], t = new Set(e.map((e) => String(e.id ?? e.ID))), n = B.get(L).filter((e) => !t.has(String(e.id ?? e.ID)));
511
518
  return n.length === 0 ? B.get(A) : {
512
519
  ...B.get(A),
513
520
  availableTickets: [...e, ...n]
514
521
  };
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("");
522
+ }), V = B.derived(() => B.get(le) ? v(B.get(le)) : null), H = B.derived(() => r() || B.get(V)?.id || ""), U = B.state(!1), W = B.state("");
516
523
  B.user_effect(() => {
517
524
  let e = B.get(H);
518
525
  if (e) return oe(e, {
@@ -524,72 +531,83 @@ function Ne(e, t) {
524
531
  }
525
532
  });
526
533
  });
527
- let de = B.derived(() => i() || B.get(V)?.slug || ""), fe = B.state(B.proxy([])), G = B.derived(() => B.get(V) ? {
534
+ let pe = B.derived(() => i() || B.get(V)?.slug || ""), me = B.state(B.proxy([])), G = B.derived(() => B.get(V) ? {
528
535
  ...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);
536
+ seriesOccurrences: B.get(me).length > 0 ? B.get(me) : B.get(V).seriesOccurrences || []
537
+ } : null), K = te(), he = B.state(!1), q = B.state(""), J = B.state(""), ge = B.state(!1), _e = B.derived(() => B.get(V)?.isPasswordProtected === !0 || B.get(A)?.hasPassword === !0), ve = B.derived(() => B.get(_e) && !B.get(he) && (B.get(A)?.passwordRequired === !0 || !xe(B.get(H))));
538
+ function xe(e) {
539
+ return de("event", e);
533
540
  }
534
- function be(e) {
535
- ce("event", e);
541
+ function Se(e) {
542
+ ue("event", e);
536
543
  }
537
- async function xe(e) {
544
+ async function Ce(e) {
538
545
  let t = e.detail?.value || B.get(q);
539
546
  if (!(!t || !B.get(H))) {
540
- B.set(me, !0), B.set(J, "");
547
+ B.set(ge, !0), B.set(J, "");
541
548
  try {
542
- if ((await re(String(B.get(H)), t)).valid) {
549
+ if ((await ie(String(B.get(H)), t)).valid) {
543
550
  try {
544
- let e = await P(B.get(H), fetch, t);
551
+ let e = await re(B.get(H), fetch, t);
545
552
  e && B.set(A, e, !0);
546
553
  } catch {}
547
- be(B.get(H)), B.set(pe, !0), K.close(), B.set(q, "");
554
+ Se(B.get(H)), B.set(he, !0), K.close(), B.set(q, "");
548
555
  } else B.set(J, b().incorrectPassword || "Incorrect password. Please try again", !0);
549
556
  } catch {
550
557
  B.set(J, b().unableToVerifyPassword || "Unable to verify password. Please try again", !0);
551
558
  } finally {
552
- B.set(me, !1);
559
+ B.set(ge, !1);
553
560
  }
554
561
  }
555
562
  }
556
- function Se() {
563
+ function we() {
557
564
  K.close(), a() && a()();
558
565
  }
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);
564
- t === X && n.length > 0 && B.set(I, n, !0);
566
+ let Y = B.state(""), Te = B.state(0), X = 0;
567
+ async function Ee(e) {
568
+ let t = ++X, n = await ne(String(B.get(H)), e), r = be(n, e);
569
+ if (r.isApplied && t === X && (B.set(Y, r.code, !0), B.set(Te, r.discountAmount, !0), n.revealHiddenTickets || n.revealTicketIds?.length)) {
570
+ let n = await F(String(B.get(H)), e);
571
+ t === X && n.length > 0 && B.set(L, n, !0);
565
572
  }
566
573
  return r;
567
574
  }
568
- function Ne() {
569
- X++, B.set(Y, ""), B.set(Ce, 0), B.set(I, null);
575
+ function De() {
576
+ X++, B.set(Y, ""), B.set(Te, 0), B.set(L, null);
570
577
  }
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);
578
+ let Re = B.state(!1), ze = B.state(!1), Z = B.state(!1), Q = B.state(""), Be = te(), Ve = B.derived(() => B.get(ze) && !B.get(Z)), He = B.state(null), Ue = B.state(null);
572
579
  B.user_effect(() => {
573
- let e = B.get(Le);
580
+ let e = B.get(He);
574
581
  if (e === null) return;
575
582
  let t = () => {
576
583
  let t = e - Date.now();
577
584
  if (t <= 0) {
578
- B.set(Re, null), B.set(Le, null), B.set(Z, !1), B.set(Q, Be("token_expired"), !0);
585
+ 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
586
  return;
580
587
  }
581
- B.set(Re, t);
588
+ B.set(Ue, t);
582
589
  };
583
590
  t();
584
591
  let n = setInterval(t, 1e3);
585
592
  return () => clearInterval(n);
586
593
  });
587
- let ze = B.derived(() => {
588
- if (B.get(Re) === null) return "";
589
- let e = Math.max(0, Math.floor(B.get(Re) / 1e3));
594
+ let We = B.derived(() => {
595
+ if (B.get(Ue) === null) return "";
596
+ let e = Math.max(0, Math.floor(B.get(Ue) / 1e3));
590
597
  return `${Math.floor(e / 60)}:${String(e % 60).padStart(2, "0")}`;
591
- });
592
- function Be(e) {
598
+ }), $ = B.state(""), Ge = B.state(!1), Ke = B.state(!1), qe = B.derived(() => B.get($) === "token_expired" && !!h() && !!_());
599
+ async function Je() {
600
+ if (!(B.get(Ge) || B.get(Ke) || !h() || !_())) {
601
+ B.set(Ge, !0);
602
+ try {
603
+ let e = await P(h(), _());
604
+ 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);
605
+ } finally {
606
+ B.set(Ge, !1);
607
+ }
608
+ }
609
+ }
610
+ function Ye(e) {
593
611
  switch (e) {
594
612
  case "token_expired": return b().waitlistLinkExpired || "This link has expired. You're still on the waitlist";
595
613
  case "token_used": return b().waitlistLinkUsed || "This link has already been used. You're still on the waitlist";
@@ -598,13 +616,13 @@ function Ne(e, t) {
598
616
  default: return b().waitlistLinkInvalid || "This link isn't valid. You're still on the waitlist — we'll email you if tickets free up";
599
617
  }
600
618
  }
601
- function Ve() {
602
- $.open();
619
+ function Xe() {
620
+ Be.open();
603
621
  }
604
- function He() {
622
+ function Ze() {
605
623
  B.set(Q, "");
606
624
  }
607
- async function Ue(e) {
625
+ async function Qe(e) {
608
626
  if (!B.get(G)) return;
609
627
  if (B.set(N, ""), e.total === null) {
610
628
  B.set(N, b().priceUnavailable || "We couldn't load the price for this order — refresh the page or contact the venue", !0);
@@ -612,12 +630,12 @@ function Ne(e, t) {
612
630
  }
613
631
  let t = {}, n = {};
614
632
  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({
633
+ z({
616
634
  eventID: String(B.get(H)),
617
635
  quantities: t,
618
636
  donationAmounts: n,
619
637
  promocode: B.get(Y),
620
- promoDiscountAmount: B.get(Ce),
638
+ promoDiscountAmount: B.get(Te),
621
639
  tickets: B.get(G).tickets.map((e) => ({
622
640
  ID: e.id,
623
641
  name: e.name,
@@ -641,22 +659,22 @@ function Ne(e, t) {
641
659
  B.set(N, r?.error || b().failedToCompleteOrder || "Failed to complete order. Please try again", !0);
642
660
  return;
643
661
  }
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)), {}));
662
+ x(B.get(H), f(), k()), u() ? u()(B.get(H), B.get(pe), B.get(A)) : y(D(E(B.get(H), B.get(pe)), {}));
645
663
  }
646
- function We(e) {
664
+ function $e(e) {
647
665
  if (d()) {
648
666
  d()(e);
649
667
  return;
650
668
  }
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), {})));
669
+ e.id ? y(D(ee(e.id, e.slug), {})) : (ke.warn("Collection event missing id, navigating by slug only"), y(D(w(e.slug), {})));
652
670
  }
653
- function Ge(e) {
654
- l() ? l()(o(e.id), e.slug) : y(D(E(e.id, e.slug), {}));
671
+ function et(e) {
672
+ l() ? l()(o(e.id), e.slug) : y(D(ee(e.id, e.slug), {}));
655
673
  }
656
- ue(async () => {
674
+ fe(async () => {
657
675
  if (!B.get(A) && r()) {
658
676
  try {
659
- let e = await P(r());
677
+ let e = await re(r());
660
678
  B.set(A, e, !0);
661
679
  } catch (e) {
662
680
  B.set(M, e.message || b().failedToLoadEvent || "Failed to load event", !0), B.set(j, !1);
@@ -666,13 +684,13 @@ function Ne(e, t) {
666
684
  }
667
685
  if (!B.get(A)) return;
668
686
  let e = B.get(A).ID || B.get(A).id;
669
- e && (R(e), C(e, f(), k()));
687
+ e && (ce(e), C(e, f(), k()));
670
688
  let t = B.get(A).eventSeriesId || 0, n = B.get(A).venueID || B.get(A).venueId || 0;
671
689
  if (t > 0 && n > 0) try {
672
- let e = await ie(t, n);
690
+ let e = await R(t, n);
673
691
  if (Array.isArray(e) && e.length > 0) {
674
692
  let t = B.get(A).stageId ?? B.get(A).stageID ?? 0;
675
- B.set(fe, e.map((e) => {
693
+ B.set(me, e.map((e) => {
676
694
  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
695
  r.address,
678
696
  r.city,
@@ -692,25 +710,25 @@ function Ne(e, t) {
692
710
  }), !0);
693
711
  }
694
712
  } 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);
713
+ if (B.get(_e) && !xe(B.get(H)) && K.open(), B.get(H)) {
714
+ let e = await ae(B.get(H));
715
+ B.set(Re, e.waitlistEnabled, !0), B.set(ze, e.gated, !0);
698
716
  }
699
717
  if (h() && _()) {
700
- let e = await te(h(), _());
718
+ let e = await I(h(), _());
701
719
  if (e.valid) {
702
720
  if (B.set(Z, !0), e.expiresAt) {
703
721
  let t = Date.parse(e.expiresAt);
704
- Number.isFinite(t) && B.set(Le, t, !0);
722
+ Number.isFinite(t) && B.set(He, t, !0);
705
723
  }
706
- } else B.set(Q, Be(e.errorCode), !0);
724
+ } 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
725
  }
708
726
  });
709
- var Ke = Me(), qe = B.first_child(Ke), Je = (e) => {
710
- var t = De(), n = B.child(t), r = B.child(n, !0);
727
+ var tt = Le(), nt = B.first_child(tt), rt = (e) => {
728
+ var t = Ae(), n = B.child(t), r = B.child(n, !0);
711
729
  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);
730
+ }, it = (e) => {
731
+ var t = je(), n = B.child(t), r = B.child(n);
714
732
  B.reset(n);
715
733
  var i = B.sibling(n, 2), o = (e) => {
716
734
  s(e, {
@@ -729,9 +747,9 @@ function Ne(e, t) {
729
747
  B.if(i, (e) => {
730
748
  a() && e(o);
731
749
  }), B.reset(t), B.template_effect(() => B.set_text(r, `${(b().errorPrefix || "Error:") ?? ""} ${B.get(M) ?? ""}`)), B.append(e, t);
732
- }, Xe = (e) => {
750
+ }, at = (e) => {
733
751
  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);
752
+ var t = Me(), n = B.child(t), r = B.child(n), i = B.child(r), a = B.child(i);
735
753
  m(a, { size: "32" }), B.reset(i);
736
754
  var o = B.sibling(i, 2), l = B.child(o, !0);
737
755
  B.reset(o);
@@ -754,16 +772,16 @@ function Ne(e, t) {
754
772
  get event() {
755
773
  return B.get(G);
756
774
  },
757
- onCheckout: Ue,
775
+ onCheckout: Qe,
758
776
  get checkoutError() {
759
777
  return B.get(N);
760
778
  },
761
- onPromoApply: we,
762
- onPromoRemove: Ne,
763
- onCollectionEventClick: We,
764
- onShowtimeClick: Ge,
779
+ onPromoApply: Ee,
780
+ onPromoRemove: De,
781
+ onCollectionEventClick: $e,
782
+ onShowtimeClick: et,
765
783
  get gated() {
766
- return B.get(Ie);
784
+ return B.get(Ve);
767
785
  },
768
786
  get unavailable() {
769
787
  return B.get(U);
@@ -772,13 +790,13 @@ function Ne(e, t) {
772
790
  return B.get(W);
773
791
  },
774
792
  get waitlistEnabled() {
775
- return B.get(Pe);
793
+ return B.get(Re);
776
794
  },
777
- onJoinWaitlist: Ve,
795
+ onJoinWaitlist: Xe,
778
796
  get waitlistLinkError() {
779
797
  return B.get(Q);
780
798
  },
781
- onDismissWaitlistLinkError: He,
799
+ onDismissWaitlistLinkError: Ze,
782
800
  get labels() {
783
801
  return b();
784
802
  },
@@ -789,34 +807,55 @@ function Ne(e, t) {
789
807
  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
808
  }), B.append(e, t);
791
809
  }, 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);
810
+ var t = Ie(), n = B.first_child(t), r = (e) => {
811
+ var t = Ne(), n = B.child(t), r = B.child(n), i = B.sibling(r), a = B.child(i, !0);
794
812
  B.reset(i);
795
813
  var o = B.sibling(i);
796
814
  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") ?? ""}`);
815
+ 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
816
  }), B.append(e, t);
817
+ }, i = (e) => {
818
+ var t = Pe(), n = B.child(t), r = B.child(n, !0);
819
+ 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);
820
+ }, a = (e) => {
821
+ var t = Fe(), n = B.child(t), r = B.child(n, !0);
822
+ B.reset(n);
823
+ var i = B.sibling(n, 2), a = B.child(i);
824
+ s(a, {
825
+ variant: "default",
826
+ size: "sm",
827
+ get disabled() {
828
+ return B.get(Ge);
829
+ },
830
+ onclick: Je,
831
+ children: (e, t) => {
832
+ B.next();
833
+ var n = B.text();
834
+ 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);
835
+ },
836
+ $$slots: { default: !0 }
837
+ }), 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
838
  };
800
839
  B.if(n, (e) => {
801
- B.get(Z) && B.get(ze) && e(r);
840
+ B.get(Z) && B.get(We) ? e(r) : B.get(Ke) ? e(i, 1) : B.get(qe) && e(a, 2);
802
841
  });
803
- var i = B.sibling(n, 2);
842
+ var o = B.sibling(n, 2);
804
843
  {
805
- let e = B.derived(() => B.get(Z) ? h() : ""), t = B.derived(() => B.get(Z) ? _() : "");
806
- c(i, {
844
+ 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) ? _() : "");
845
+ c(o, {
807
846
  get event() {
808
847
  return B.get(G);
809
848
  },
810
- onCheckout: Ue,
849
+ onCheckout: Qe,
811
850
  get checkoutError() {
812
851
  return B.get(N);
813
852
  },
814
- onPromoApply: we,
815
- onPromoRemove: Ne,
816
- onCollectionEventClick: We,
817
- onShowtimeClick: Ge,
853
+ onPromoApply: Ee,
854
+ onPromoRemove: De,
855
+ onCollectionEventClick: $e,
856
+ onShowtimeClick: et,
818
857
  get gated() {
819
- return B.get(Ie);
858
+ return B.get(Ve);
820
859
  },
821
860
  get unavailable() {
822
861
  return B.get(U);
@@ -825,18 +864,18 @@ function Ne(e, t) {
825
864
  return B.get(W);
826
865
  },
827
866
  get waitlistEnabled() {
828
- return B.get(Pe);
867
+ return B.get(Re);
829
868
  },
830
- onJoinWaitlist: Ve,
869
+ onJoinWaitlist: Xe,
831
870
  get waitlistLinkError() {
832
- return B.get(Q);
871
+ return B.get(e);
833
872
  },
834
- onDismissWaitlistLinkError: He,
873
+ onDismissWaitlistLinkError: Ze,
835
874
  get waitlistToken() {
836
- return B.get(e);
875
+ return B.get(t);
837
876
  },
838
877
  get waitlistEmail() {
839
- return B.get(t);
878
+ return B.get(n);
840
879
  },
841
880
  get labels() {
842
881
  return b();
@@ -849,21 +888,21 @@ function Ne(e, t) {
849
888
  B.append(e, t);
850
889
  };
851
890
  B.if(n, (e) => {
852
- B.get(ge) ? e(r) : e(i, -1);
891
+ B.get(ve) ? e(r) : e(i, -1);
853
892
  }), B.append(e, t);
854
893
  };
855
- B.if(qe, (e) => {
856
- B.get(j) ? e(Je) : B.get(M) ? e(Ye, 1) : B.get(G) && e(Xe, 2);
894
+ B.if(nt, (e) => {
895
+ B.get(j) ? e(rt) : B.get(M) ? e(it, 1) : B.get(G) && e(at, 2);
857
896
  });
858
- var Ze = B.sibling(qe, 2), Qe = () => K.isOpen, $e = (e) => e ? K.open() : K.close();
897
+ var ot = B.sibling(nt, 2), st = () => K.isOpen, ct = (e) => e ? K.open() : K.close();
859
898
  {
860
899
  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, {
900
+ ye(ot, {
862
901
  get open() {
863
- return Qe();
902
+ return st();
864
903
  },
865
904
  set open(e) {
866
- $e(e);
905
+ ct(e);
867
906
  },
868
907
  size: "md",
869
908
  get title() {
@@ -890,11 +929,11 @@ function Ne(e, t) {
890
929
  return B.get(a);
891
930
  },
892
931
  get loading() {
893
- return B.get(me);
932
+ return B.get(ge);
894
933
  },
895
- onconfirm: xe,
896
- oncancel: Se,
897
- onclose: Se,
934
+ onconfirm: Ce,
935
+ oncancel: we,
936
+ onclose: we,
898
937
  get inputValue() {
899
938
  return B.get(q);
900
939
  },
@@ -903,15 +942,15 @@ function Ne(e, t) {
903
942
  }
904
943
  });
905
944
  }
906
- var et = B.sibling(Ze, 2), tt = () => $.isOpen, nt = (e) => e ? $.open() : $.close();
945
+ var lt = B.sibling(ot, 2), ut = () => Be.isOpen, dt = (e) => e ? Be.open() : Be.close();
907
946
  {
908
947
  let e = B.derived(() => B.get(G)?.title || "this event");
909
- Te(et, {
948
+ Oe(lt, {
910
949
  get show() {
911
- return tt();
950
+ return ut();
912
951
  },
913
952
  set show(e) {
914
- nt(e);
953
+ dt(e);
915
954
  },
916
955
  get eventId() {
917
956
  return B.get(H);
@@ -919,13 +958,13 @@ function Ne(e, t) {
919
958
  get eventName() {
920
959
  return B.get(e);
921
960
  },
922
- onClose: () => $.close(),
961
+ onClose: () => Be.close(),
923
962
  get labels() {
924
963
  return b();
925
964
  }
926
965
  });
927
966
  }
928
- B.append(e, Ke), B.pop();
967
+ B.append(e, tt), B.pop();
929
968
  }
930
969
  //#endregion
931
- export { Ne as default };
970
+ export { Re as default };