@getmicdrop/venue-calendar 4.3.8 → 4.3.10

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 (124) hide show
  1. package/dist/{ArrowLeftIcon-DvIbVly-.js → ArrowLeftIcon-BYu_Qbkb.js} +1 -1
  2. package/dist/{Badge-vsC_L__r.js → Badge-DCHGGod2.js} +8 -10
  3. package/dist/{BlockPlaceholder-BMD1gnmE.js → BlockPlaceholder-BoPMt_9Z.js} +2 -2
  4. package/dist/{Button-Cm6xkipe.js → Button-vmWb6wKc.js} +117 -63
  5. package/dist/{Calendar-CPD8dS_i.js → Calendar-D11ctjrD.js} +307 -282
  6. package/dist/{CalendarFoundryView-BY1uJgYA.js → CalendarFoundryView-DKhpjxnV.js} +6510 -6504
  7. package/dist/{CalendarIcon-CCgHZAu4.js → CalendarIcon-C8-UVSje.js} +1 -1
  8. package/dist/{CartView-DVugxQ3D.js → CartView-IqOekmQg.js} +814 -814
  9. package/dist/Checkout-ByQsDGg3.js +1005 -0
  10. package/dist/Checkout-C0lQ0AwV.js +1846 -0
  11. package/dist/{CheckoutTimer-CgGCv_jP.js → CheckoutTimer-B0E9KnHc.js} +15 -15
  12. package/dist/{ChevronDownIcon-gELqaIeP.js → ChevronDownIcon-C1uJ2yvz.js} +1 -1
  13. package/dist/{ClockIcon-C4MxWMqH.js → ClockIcon-Dk9q65sX.js} +1 -1
  14. package/dist/{CloseIcon-D3NjpzeW.js → CloseIcon-CyR73vpD.js} +1 -1
  15. package/dist/{CollectionView-C55yLTPR.js → CollectionView-B-CNyf9Z.js} +17 -17
  16. package/dist/CropImage-4WcoXkHt.js +537 -0
  17. package/dist/{Event-ClxgC-gP.js → Event-B4x0sGkc.js} +1142 -870
  18. package/dist/{EventPage-ziJYmBIZ.js → EventPage--xwhM503.js} +244 -236
  19. package/dist/{Heading-D7TEStkb.js → Heading-Br1Yqnvg.js} +3 -4
  20. package/dist/{Image-CjM21MQP.js → Image-M5RaWbKU.js} +12 -13
  21. package/dist/{Input-CIRGYHTC.js → Input-Bk8lP6TX.js} +53 -53
  22. package/dist/{MailIcon-iy7T12Hz.js → MailIcon-Ic2SruY-.js} +1 -1
  23. package/dist/{Modal-wQSo-C1f.js → Modal-CLeZUJ_i.js} +2 -2
  24. package/dist/ModalFooter-CSoG_uic.js +470 -0
  25. package/dist/ModalHeader-DpKxDJT_.js +18 -0
  26. package/dist/{PasswordInput-Cj8i4djG.js → PasswordInput-BHj_lokg.js} +2 -2
  27. package/dist/RecommendationsRail-8AVZ0aLE.js +445 -0
  28. package/dist/{ScarcityBadge-DbUVeqpx.js → ScarcityBadge-DakRfDx4.js} +19 -19
  29. package/dist/{SeriesPage-doki-1XH.js → SeriesPage-BaOeDNb6.js} +5 -5
  30. package/dist/{Spinner-Dua8H4Z1.js → Spinner-a1KCKWxZ.js} +2 -2
  31. package/dist/{Success-DZOYl6St.js → Success-BtUgc4H7.js} +290 -257
  32. package/dist/{TagIcon-CCyZd0sm.js → TagIcon-BiYfs6T7.js} +1 -1
  33. package/dist/{ViewTicketsEmbed-CF2Aq-qy.js → ViewTicketsEmbed-Lxg7n02-.js} +109 -109
  34. package/dist/{WarningCircleIcon-BuVhRrHd.js → WarningCircleIcon-AuYbQdPU.js} +1 -1
  35. package/dist/{WarningTriIcon-0hefhcdZ.js → WarningTriIcon-BzI-tSDG.js} +1 -1
  36. package/dist/{__SKIP_PATHS__-Dyw31EsB.js → __SKIP_PATHS__-B3OPLTzA.js} +1 -1
  37. package/dist/api/api.cjs +1 -1
  38. package/dist/api/api.mjs +239 -237
  39. package/dist/{api-QG8CoGcM.js → api-C1M2t6HU.js} +114 -112
  40. package/dist/{browser-viCaCwoW.js → browser-DrfMvEfn.js} +7 -7
  41. package/dist/{labels-0dEJldQX.js → constants-YG4UeBdR.js} +17 -4
  42. package/dist/{copyToClipboard-C7KGa7gG.js → copyToClipboard-3SejVveg.js} +1 -1
  43. package/dist/{de-K0-gFyNH.js → de-CzupmMIa.js} +14 -1
  44. package/dist/{defaultLabels-BdLGAc3u.js → defaultLabels-CXCsTwix.js} +331 -356
  45. package/dist/{es-DsZSuXW4.js → es-B-vQxM9Z.js} +14 -1
  46. package/dist/{event-CyPf2sZS.js → event-DAjJ01GM.js} +1 -1
  47. package/dist/{event-transform-DQmD2u_S.js → event-transform-DNqGTQhp.js} +54 -53
  48. package/dist/{eventStatusStream-BFOvtJyO.js → eventStatusStream-CLLN-Rvf.js} +2 -2
  49. package/dist/{fr-BmHldIKE.js → fr-B2g-kG7i.js} +14 -1
  50. package/dist/{href-CbfSre4l.js → href-DuxMJt4c.js} +3 -3
  51. package/dist/{i18n-CSftOFAS.js → i18n-Ct9Bo-Vp.js} +179 -129
  52. package/dist/{i18n-D54CGXK2.js → i18n-KdVjJUV5.js} +2 -2
  53. package/dist/{id-CBHA4B6C.js → id-Dgu5-FC6.js} +14 -1
  54. package/dist/imageOptimizer-Ba8P7ZEJ.js +140 -0
  55. package/dist/{it-CK6ravjO.js → it-C580sMYp.js} +14 -1
  56. package/dist/{ja-COO0Ibrr.js → ja-DLki4zXU.js} +14 -1
  57. package/dist/{ko-D8YqNrZs.js → ko-BUcfb1Gi.js} +14 -1
  58. package/dist/locales/4.3.10/flow/de.js +1 -0
  59. package/dist/locales/4.3.10/flow/es.js +1 -0
  60. package/dist/locales/4.3.10/flow/fr.js +1 -0
  61. package/dist/locales/4.3.10/flow/id.js +1 -0
  62. package/dist/locales/4.3.10/flow/it.js +1 -0
  63. package/dist/locales/4.3.10/flow/ja.js +1 -0
  64. package/dist/locales/4.3.10/flow/ko.js +1 -0
  65. package/dist/locales/4.3.10/flow/nl.js +1 -0
  66. package/dist/locales/4.3.10/flow/pl.js +1 -0
  67. package/dist/locales/4.3.10/flow/pt-br.js +1 -0
  68. package/dist/locales/4.3.10/flow/tr.js +1 -0
  69. package/dist/locales/4.3.10/flow/zh.js +1 -0
  70. package/dist/modalManager.svelte-Cz_6x1Qd.js +37 -0
  71. package/dist/{nl-Bk3DPD7e.js → nl-CivAQA0D.js} +14 -1
  72. package/dist/order-totals-DyVkHVqG.js +151 -0
  73. package/dist/{orders-Bat2EL64.js → orders-rH0WZYOW.js} +18 -18
  74. package/dist/{phoneUtils-Cm9iv40N.js → phoneUtils-BFrVEwkQ.js} +1 -1
  75. package/dist/{pixels-Ha6vOCaS.js → pixels-mdd6C3Bk.js} +3 -3
  76. package/dist/{pl-CPmO94ic.js → pl-C5VwFH2B.js} +14 -1
  77. package/dist/{promo-DWzTN7u9.js → promo-CTRn_F4t.js} +1 -1
  78. package/dist/{pt-br-Ch6NFhW6.js → pt-br-B0w9dhVB.js} +14 -1
  79. package/dist/{constants-q-jR2-bz.js → scarcity-Ccj5RlrR.js} +2 -5
  80. package/dist/{serverTotals-BBlkfqMf.js → serverTotals-Dk3z9sIA.js} +1 -1
  81. package/dist/{showcase-state-options-CxRQ-phi.js → showcase-state-options-8-egiV5-.js} +1 -1
  82. package/dist/{to-event-card-props-BIl0qQs0.js → to-event-card-props-a4k6D100.js} +49 -49
  83. package/dist/{tr-CXnalLJT.js → tr-LGkP5gpA.js} +14 -1
  84. package/dist/{utils-ChgG4jiQ.js → utils-BseYYrbn.js} +82 -78
  85. package/dist/venue-calendar.css +1 -1
  86. package/dist/venue-calendar.es.js +994 -996
  87. package/dist/venue-calendar.iife.js +56 -57
  88. package/dist/venue-calendar.umd.js +51 -52
  89. package/dist/{zh-CM2J1Py4.js → zh-D2ZAdq3T.js} +14 -1
  90. package/package.json +2 -2
  91. package/dist/Checkout-D7KSikhw.js +0 -980
  92. package/dist/Checkout-Ddcw2_8F.js +0 -1846
  93. package/dist/CropImage-CxLcNArr.js +0 -445
  94. package/dist/ModalFooter-DlRXuHQz.js +0 -301
  95. package/dist/imageOptimizer-BwLwBMI6.js +0 -112
  96. package/dist/keyboard-fiZFqeNA.js +0 -29
  97. package/dist/locales/4.3.8/flow/de.js +0 -1
  98. package/dist/locales/4.3.8/flow/es.js +0 -1
  99. package/dist/locales/4.3.8/flow/fr.js +0 -1
  100. package/dist/locales/4.3.8/flow/id.js +0 -1
  101. package/dist/locales/4.3.8/flow/it.js +0 -1
  102. package/dist/locales/4.3.8/flow/ja.js +0 -1
  103. package/dist/locales/4.3.8/flow/ko.js +0 -1
  104. package/dist/locales/4.3.8/flow/nl.js +0 -1
  105. package/dist/locales/4.3.8/flow/pl.js +0 -1
  106. package/dist/locales/4.3.8/flow/pt-br.js +0 -1
  107. package/dist/locales/4.3.8/flow/tr.js +0 -1
  108. package/dist/locales/4.3.8/flow/zh.js +0 -1
  109. package/dist/modalManager.svelte-Dnv5jhxp.js +0 -53
  110. package/dist/order-totals-Ci_p6SG6.js +0 -131
  111. package/dist/portal-DqxEuE-7.js +0 -166
  112. package/dist/shareCopyFeedback.svelte-CW0Yy9Oz.js +0 -330
  113. /package/dist/locales/{4.3.8 → 4.3.10}/main/de.js +0 -0
  114. /package/dist/locales/{4.3.8 → 4.3.10}/main/es.js +0 -0
  115. /package/dist/locales/{4.3.8 → 4.3.10}/main/fr.js +0 -0
  116. /package/dist/locales/{4.3.8 → 4.3.10}/main/id.js +0 -0
  117. /package/dist/locales/{4.3.8 → 4.3.10}/main/it.js +0 -0
  118. /package/dist/locales/{4.3.8 → 4.3.10}/main/ja.js +0 -0
  119. /package/dist/locales/{4.3.8 → 4.3.10}/main/ko.js +0 -0
  120. /package/dist/locales/{4.3.8 → 4.3.10}/main/nl.js +0 -0
  121. /package/dist/locales/{4.3.8 → 4.3.10}/main/pl.js +0 -0
  122. /package/dist/locales/{4.3.8 → 4.3.10}/main/pt-br.js +0 -0
  123. /package/dist/locales/{4.3.8 → 4.3.10}/main/tr.js +0 -0
  124. /package/dist/locales/{4.3.8 → 4.3.10}/main/zh.js +0 -0
@@ -1,57 +1,57 @@
1
- import { C as e, h as t, t as n, v as r, x as i } from "./Button-Cm6xkipe.js";
2
- import { N as a, i as o, j as s, t as c } from "./defaultLabels-BdLGAc3u.js";
3
- import { t as l } from "./Event-ClxgC-gP.js";
4
- import { n as u, t as d } from "./Input-CIRGYHTC.js";
5
- import { d as f, f as p, n as m, p as h } from "./phoneUtils-Cm9iv40N.js";
6
- import { o as g } from "./href-CbfSre4l.js";
7
- import { t as _ } from "./ClockIcon-C4MxWMqH.js";
8
- import { n as v } from "./shareCopyFeedback.svelte-CW0Yy9Oz.js";
9
- import { n as y } from "./ScarcityBadge-DbUVeqpx.js";
10
- import { d as b, p as x, y as S } from "./orders-Bat2EL64.js";
11
- import { i as C } from "./keyboard-fiZFqeNA.js";
12
- import { i as w, l as T, n as E, s as D, t as O } from "./__SKIP_PATHS__-Dyw31EsB.js";
13
- import { a as k, i as A, n as j, r as M, t as N } from "./ModalFooter-DlRXuHQz.js";
14
- import { n as P, t as ee } from "./modalManager.svelte-Dnv5jhxp.js";
15
- import { b as te, d as F, i as I, l as ne, m as re, n as L, r as ie, t as ae, u as R } from "./api-QG8CoGcM.js";
16
- import { t as oe } from "./eventStatusStream-BFOvtJyO.js";
17
- import { t as se } from "./i18n-D54CGXK2.js";
18
- import { a as ce, b as z, c as B, g as le, i as ue, o as V, p as H, s as de, t as fe, v as pe } from "./utils-ChgG4jiQ.js";
19
- import { r as U } from "./promo-DWzTN7u9.js";
1
+ import { C as e, E as t, O as n, b as r, c as i, t as a } from "./Button-vmWb6wKc.js";
2
+ import { t as o } from "./Event-B4x0sGkc.js";
3
+ import { n as s, t as c } from "./Input-Bk8lP6TX.js";
4
+ import { d as l, f as u, n as d, p as f } from "./phoneUtils-BFrVEwkQ.js";
5
+ import { o as p } from "./href-DuxMJt4c.js";
6
+ import { t as m } from "./ClockIcon-Dk9q65sX.js";
7
+ import { r as h } from "./RecommendationsRail-8AVZ0aLE.js";
8
+ import { n as g } from "./ScarcityBadge-DakRfDx4.js";
9
+ import { N as _, i as v, j as y, t as b } from "./defaultLabels-CXCsTwix.js";
10
+ import { d as x, p as S, y as C } from "./orders-rH0WZYOW.js";
11
+ import { i as w, l as T, n as E, s as D, t as O } from "./__SKIP_PATHS__-B3OPLTzA.js";
12
+ import { a as k, i as A, n as j, r as M, t as N } from "./ModalFooter-CSoG_uic.js";
13
+ import { t as P } from "./ModalHeader-DpKxDJT_.js";
14
+ import { t as ee } from "./modalManager.svelte-Cz_6x1Qd.js";
15
+ import { b as te, d as F, i as I, l as ne, m as re, n as L, r as ie, t as ae, u as R } from "./api-C1M2t6HU.js";
16
+ import { t as oe } from "./eventStatusStream-CLLN-Rvf.js";
17
+ import { t as se } from "./i18n-KdVjJUV5.js";
18
+ import { a as ce, b as z, c as B, g as le, i as ue, o as V, p as H, s as de, t as fe, v as pe } from "./utils-BseYYrbn.js";
19
+ import { r as U } from "./promo-CTRn_F4t.js";
20
20
  import { a as me, r as he } from "./gate-password-cache-oOcDm9Ki.js";
21
21
  import "svelte/internal/disclose-version";
22
22
  import * as W from "svelte/internal/client";
23
23
  import { onMount as ge } from "svelte";
24
24
  //#region node_modules/@getmicdrop/svelte-components/dist/recipes/modals/InputModal.svelte
25
25
  var G = W.from_html("<img class=\"w-5 h-5\"/>"), _e = W.from_html("<div class=\"flex justify-end -mt-2 -mr-2 mb-2\"><!></div>"), ve = W.from_html("<h3> </h3>"), K = W.from_html("<div class=\"text-left\"><!> <!></div>"), ye = W.from_html("<p> </p>"), be = W.from_html("<label for=\"modal-input\"> </label>"), xe = W.from_html("<textarea id=\"modal-input\" name=\"value\"></textarea>"), Se = W.from_html("<div class=\"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none\"><!></div>"), Ce = W.from_html("<div class=\"relative\"><!> <input id=\"modal-input\" name=\"value\"/></div>"), we = W.from_html("<p><!> </p>"), Te = W.from_html("<div class=\"text-left mt-4\"><!> <div><!> <!> <!></div></div>"), Ee = W.from_html("<div class=\"flex gap-3\"><!> <!></div>"), De = W.from_html("<!> <!> <!>", 1), Oe = W.from_html("<!> <!>", 1);
26
- function ke(i, a) {
27
- W.push(a, !0);
28
- let o = {
26
+ function ke(t, o) {
27
+ W.push(o, !0);
28
+ let s = {
29
29
  confirm: "Confirm",
30
30
  cancel: "Cancel",
31
31
  close: "Close",
32
32
  invalidEmail: "Please enter a valid email address"
33
- }, c = W.prop(a, "open", 15, !1), l = W.prop(a, "size", 3, "md"), u = W.prop(a, "title", 3, ""), d = W.prop(a, "description", 3, ""), p = W.prop(a, "closeBtn", 3, !1), m = W.prop(a, "persistent", 3, !1), g = W.prop(a, "inputLabel", 3, ""), _ = W.prop(a, "inputPlaceholder", 3, ""), v = W.prop(a, "inputType", 3, "text"), y = W.prop(a, "inputValue", 15, ""), b = W.prop(a, "inputRequired", 3, !1), x = W.prop(a, "inputRows", 3, 4), S = W.prop(a, "inputIcon", 3, null), w = W.prop(a, "helpText", 3, ""), T = W.prop(a, "errorMessage", 3, ""), E = W.prop(a, "showError", 3, !1), D = W.prop(a, "validateEmail", 3, !1), O = W.prop(a, "primaryButtonText", 3, void 0), ee = W.prop(a, "secondaryButtonText", 3, void 0), te = W.prop(a, "primaryButtonVariant", 3, "default"), F = W.prop(a, "disabled", 3, !1), I = W.prop(a, "loading", 3, !1), ne = W.prop(a, "labels", 19, () => ({})), re = W.derived(() => e(o, ne())), L = W.derived(() => O() ?? W.get(re).confirm), ie = W.derived(() => ee() ?? W.get(re).cancel), ae = (e) => s(e), R = W.derived(() => !!(D() && y() && !ae(y()))), oe = W.derived(() => !!(b() && (!y() || y().trim() === ""))), se = W.derived(() => E() || W.get(R)), ce = W.derived(() => F() || I() || W.get(oe) || W.get(R)), z = () => {
34
- W.get(ce) || a.onconfirm?.({ value: y() });
33
+ }, c = W.prop(o, "open", 15, !1), u = W.prop(o, "size", 3, "md"), d = W.prop(o, "title", 3, ""), p = W.prop(o, "description", 3, ""), m = W.prop(o, "closeBtn", 3, !1), h = W.prop(o, "persistent", 3, !1), g = W.prop(o, "inputLabel", 3, ""), _ = W.prop(o, "inputPlaceholder", 3, ""), v = W.prop(o, "inputType", 3, "text"), b = W.prop(o, "inputValue", 15, ""), x = W.prop(o, "inputRequired", 3, !1), S = W.prop(o, "inputRows", 3, 4), C = W.prop(o, "inputIcon", 3, null), w = W.prop(o, "helpText", 3, ""), T = W.prop(o, "errorMessage", 3, ""), E = W.prop(o, "showError", 3, !1), D = W.prop(o, "validateEmail", 3, !1), O = W.prop(o, "primaryButtonText", 3, void 0), ee = W.prop(o, "secondaryButtonText", 3, void 0), te = W.prop(o, "primaryButtonVariant", 3, "default"), F = W.prop(o, "disabled", 3, !1), I = W.prop(o, "loading", 3, !1), ne = W.prop(o, "labels", 19, () => ({})), re = W.derived(() => n(s, ne())), L = W.derived(() => O() ?? W.get(re).confirm), ie = W.derived(() => ee() ?? W.get(re).cancel), ae = (e) => y(e), R = W.derived(() => !!(D() && b() && !ae(b()))), oe = W.derived(() => !!(x() && (!b() || b().trim() === ""))), se = W.derived(() => E() || W.get(R)), ce = W.derived(() => F() || I() || W.get(oe) || W.get(R)), z = () => {
34
+ W.get(ce) || o.onconfirm?.({ value: b() });
35
35
  }, B = (e) => {
36
- if (!(e.isComposing || e.keyCode === 229) && C(e)) {
36
+ if (!(e.isComposing || e.keyCode === 229) && i(e)) {
37
37
  if (v() === "textarea") {
38
38
  if (!(e.metaKey || e.ctrlKey)) return;
39
39
  } else if (e.shiftKey) return;
40
40
  e.preventDefault(), z();
41
41
  }
42
42
  }, le = () => {
43
- !F() && !I() && (a.oncancel?.(), ue());
43
+ !F() && !I() && (o.oncancel?.(), ue());
44
44
  }, ue = () => {
45
- c(!1), a.onclose?.();
45
+ c(!1), o.onclose?.();
46
46
  }, V = () => {
47
47
  F() || I() || ue();
48
48
  };
49
- k(i, {
49
+ k(t, {
50
50
  get size() {
51
- return l();
51
+ return u();
52
52
  },
53
53
  get persistent() {
54
- return m();
54
+ return h();
55
55
  },
56
56
  get open() {
57
57
  return c();
@@ -59,18 +59,18 @@ function ke(i, a) {
59
59
  set open(e) {
60
60
  c(e);
61
61
  },
62
- children: (e, i) => {
63
- var a = Oe(), o = W.first_child(a);
62
+ children: (t, n) => {
63
+ var i = Oe(), o = W.first_child(i);
64
64
  A(o, {});
65
65
  var s = W.sibling(o, 2);
66
66
  M(s, {
67
- children: (e, i) => {
68
- var a = De(), o = W.first_child(a);
67
+ children: (t, n) => {
68
+ var i = De(), o = W.first_child(i);
69
69
  P(o, {
70
- children: (e, t) => {
71
- var i = K(), a = W.child(i), o = (e) => {
72
- var t = _e(), r = W.child(t);
73
- n(r, {
70
+ children: (t, n) => {
71
+ var r = K(), i = W.child(r), o = (e) => {
72
+ var t = _e(), n = W.child(t);
73
+ a(n, {
74
74
  variant: "icon",
75
75
  size: "xs",
76
76
  onclick: V,
@@ -80,104 +80,104 @@ function ke(i, a) {
80
80
  children: (e, t) => {
81
81
  var n = G();
82
82
  W.template_effect(() => {
83
- W.set_attribute(n, "src", f), W.set_attribute(n, "alt", W.get(re).close);
83
+ W.set_attribute(n, "src", l), W.set_attribute(n, "alt", W.get(re).close);
84
84
  }), W.append(e, n);
85
85
  },
86
86
  $$slots: { default: !0 }
87
87
  }), W.reset(t), W.append(e, t);
88
88
  };
89
- W.if(a, (e) => {
90
- p() && e(o);
89
+ W.if(i, (e) => {
90
+ m() && e(o);
91
91
  });
92
- var s = W.sibling(a, 2), c = (e) => {
93
- var t = ve(), n = W.child(t, !0);
94
- W.reset(t), W.template_effect(() => {
95
- W.set_class(t, 1, W.clsx(r.h2)), W.set_text(n, u());
96
- }), W.append(e, t);
92
+ var s = W.sibling(i, 2), c = (t) => {
93
+ var n = ve(), r = W.child(n, !0);
94
+ W.reset(n), W.template_effect(() => {
95
+ W.set_class(n, 1, W.clsx(e.h2)), W.set_text(r, d());
96
+ }), W.append(t, n);
97
97
  };
98
98
  W.if(s, (e) => {
99
- u() && e(c);
100
- }), W.reset(i), W.append(e, i);
99
+ d() && e(c);
100
+ }), W.reset(r), W.append(t, r);
101
101
  },
102
102
  $$slots: { default: !0 }
103
103
  });
104
104
  var s = W.sibling(o, 2);
105
105
  j(s, {
106
- children: (e, n) => {
107
- var i = Te(), a = W.child(i), o = (e) => {
106
+ children: (t, n) => {
107
+ var i = Te(), a = W.child(i), o = (t) => {
108
108
  var n = ye(), i = W.child(n, !0);
109
109
  W.reset(n), W.template_effect(() => {
110
- W.set_class(n, 1, `${r.smMuted} ${t.relaxed} mb-4`), W.set_text(i, d());
111
- }), W.append(e, n);
110
+ W.set_class(n, 1, `${e.smMuted} ${r.relaxed} mb-4`), W.set_text(i, p());
111
+ }), W.append(t, n);
112
112
  };
113
113
  W.if(a, (e) => {
114
- d() && e(o);
114
+ p() && e(o);
115
115
  });
116
- var s = W.sibling(a, 2), c = W.child(s), l = (e) => {
117
- var t = be(), n = W.child(t, !0);
118
- W.reset(t), W.template_effect(() => {
119
- W.set_class(t, 1, `${r.label} block mb-2`), W.set_text(n, g());
120
- }), W.append(e, t);
116
+ var s = W.sibling(a, 2), c = W.child(s), l = (t) => {
117
+ var n = be(), r = W.child(n, !0);
118
+ W.reset(n), W.template_effect(() => {
119
+ W.set_class(n, 1, `${e.label} block mb-2`), W.set_text(r, g());
120
+ }), W.append(t, n);
121
121
  };
122
122
  W.if(c, (e) => {
123
123
  g() && e(l);
124
124
  });
125
- var u = W.sibling(c, 2), f = (e) => {
126
- var t = xe();
127
- W.remove_textarea_child(t), W.template_effect(() => {
128
- W.set_attribute(t, "placeholder", _()), W.set_attribute(t, "rows", x()), W.set_class(t, 1, `w-full px-3 py-2 border ${W.get(se) ? "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 = F() || I();
129
- }), W.delegated("keydown", t, B), W.bind_value(t, y), W.append(e, t);
130
- }, p = (e) => {
131
- var t = Ce(), n = W.child(t), i = (e) => {
132
- let t = W.derived(S);
133
- var n = Se(), i = W.child(n);
125
+ var u = W.sibling(c, 2), d = (t) => {
126
+ var n = xe();
127
+ W.remove_textarea_child(n), W.template_effect(() => {
128
+ W.set_attribute(n, "placeholder", _()), W.set_attribute(n, "rows", S()), W.set_class(n, 1, `w-full px-3 py-2 border ${W.get(se) ? "border-status-error-border" : "border-stroke-primary"} bg-bg-secondary ${e.body ?? ""} rounded-lg focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:border-transparent resize-none`), n.disabled = F() || I();
129
+ }), W.delegated("keydown", n, B), W.bind_value(n, b), W.append(t, n);
130
+ }, m = (t) => {
131
+ var n = Ce(), r = W.child(n), i = (t) => {
132
+ let n = W.derived(C);
133
+ var r = Se(), i = W.child(r);
134
134
  {
135
- let e = W.derived(() => `w-5 h-5 ${r.iconMuted}`);
136
- W.component(i, () => W.get(t), (t, n) => {
137
- n(t, { get class() {
138
- return W.get(e);
135
+ let t = W.derived(() => `w-5 h-5 ${e.iconMuted}`);
136
+ W.component(i, () => W.get(n), (e, n) => {
137
+ n(e, { get class() {
138
+ return W.get(t);
139
139
  } });
140
140
  });
141
141
  }
142
- W.reset(n), W.append(e, n);
142
+ W.reset(r), W.append(t, r);
143
143
  };
144
- W.if(n, (e) => {
145
- S() && e(i);
144
+ W.if(r, (e) => {
145
+ C() && e(i);
146
146
  });
147
- var a = W.sibling(n, 2);
148
- W.remove_input_defaults(a), W.reset(t), W.template_effect(() => {
149
- W.set_attribute(a, "type", v()), W.set_attribute(a, "placeholder", _()), a.required = b(), a.disabled = F() || I(), W.set_class(a, 1, `w-full ${S() ? "pl-10" : "px-3"} py-2 border ${W.get(se) ? "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`);
150
- }), W.delegated("keydown", a, B), W.bind_value(a, y), W.append(e, t);
147
+ var a = W.sibling(r, 2);
148
+ W.remove_input_defaults(a), W.reset(n), W.template_effect(() => {
149
+ W.set_attribute(a, "type", v()), W.set_attribute(a, "placeholder", _()), a.required = x(), a.disabled = F() || I(), W.set_class(a, 1, `w-full ${C() ? "pl-10" : "px-3"} py-2 border ${W.get(se) ? "border-status-error-border" : "border-stroke-primary"} rounded-lg ${e.body ?? ""} bg-card focus:ring-2 focus:ring-focus-ring focus:border-transparent disabled:opacity-50 disabled:cursor-not-allowed`);
150
+ }), W.delegated("keydown", a, B), W.bind_value(a, b), W.append(t, n);
151
151
  };
152
152
  W.if(u, (e) => {
153
- v() === "textarea" ? e(f) : e(p, -1);
153
+ v() === "textarea" ? e(d) : e(m, -1);
154
154
  });
155
- var m = W.sibling(u, 2), C = (e) => {
156
- var t = we(), n = W.child(t);
157
- h(n, { class: "w-4 h-4" });
158
- var i = W.sibling(n);
159
- W.reset(t), W.template_effect(() => {
160
- W.set_class(t, 1, `${r.label} text-accent-danger mt-2 flex items-center gap-1`), W.set_text(i, ` ${(W.get(R) ? W.get(re).invalidEmail : T()) ?? ""}`);
161
- }), W.append(e, t);
162
- }, E = (e) => {
163
- var t = ye(), n = W.child(t, !0);
164
- W.reset(t), W.template_effect(() => {
165
- W.set_class(t, 1, `${r.xsMuted} pt-2`), W.set_text(n, w());
166
- }), W.append(e, t);
155
+ var h = W.sibling(u, 2), y = (t) => {
156
+ var n = we(), r = W.child(n);
157
+ f(r, { class: "w-4 h-4" });
158
+ var i = W.sibling(r);
159
+ W.reset(n), W.template_effect(() => {
160
+ W.set_class(n, 1, `${e.label} text-accent-danger mt-2 flex items-center gap-1`), W.set_text(i, ` ${(W.get(R) ? W.get(re).invalidEmail : T()) ?? ""}`);
161
+ }), W.append(t, n);
162
+ }, E = (t) => {
163
+ var n = ye(), r = W.child(n, !0);
164
+ W.reset(n), W.template_effect(() => {
165
+ W.set_class(n, 1, `${e.xsMuted} pt-2`), W.set_text(r, w());
166
+ }), W.append(t, n);
167
167
  };
168
- W.if(m, (e) => {
169
- W.get(se) && (T() || W.get(R)) ? e(C) : w() && !W.get(se) && e(E, 1);
170
- }), W.reset(s), W.reset(i), W.append(e, i);
168
+ W.if(h, (e) => {
169
+ W.get(se) && (T() || W.get(R)) ? e(y) : w() && !W.get(se) && e(E, 1);
170
+ }), W.reset(s), W.reset(i), W.append(t, i);
171
171
  },
172
172
  $$slots: { default: !0 }
173
173
  });
174
174
  var c = W.sibling(s, 2);
175
175
  N(c, {
176
176
  children: (e, t) => {
177
- var r = Ee(), i = W.child(r), a = (e) => {
177
+ var n = Ee(), r = W.child(n), i = (e) => {
178
178
  {
179
179
  let t = W.derived(() => F() || I());
180
- n(e, {
180
+ a(e, {
181
181
  size: "full",
182
182
  variant: "alternative",
183
183
  onclick: le,
@@ -193,11 +193,11 @@ function ke(i, a) {
193
193
  });
194
194
  }
195
195
  };
196
- W.if(i, (e) => {
197
- W.get(ie) && e(a);
196
+ W.if(r, (e) => {
197
+ W.get(ie) && e(i);
198
198
  });
199
- var o = W.sibling(i, 2);
200
- n(o, {
199
+ var o = W.sibling(r, 2);
200
+ a(o, {
201
201
  size: "full",
202
202
  get variant() {
203
203
  return te();
@@ -215,13 +215,13 @@ function ke(i, a) {
215
215
  W.template_effect(() => W.set_text(n, W.get(L))), W.append(e, n);
216
216
  },
217
217
  $$slots: { default: !0 }
218
- }), W.reset(r), W.append(e, r);
218
+ }), W.reset(n), W.append(e, n);
219
219
  },
220
220
  $$slots: { default: !0 }
221
- }), W.append(e, a);
221
+ }), W.append(t, i);
222
222
  },
223
223
  $$slots: { default: !0 }
224
- }), W.append(e, a);
224
+ }), W.append(t, i);
225
225
  },
226
226
  $$slots: { default: !0 }
227
227
  }), W.pop();
@@ -234,7 +234,7 @@ function Ae(e, t) {
234
234
  code: t,
235
235
  isApplied: !1,
236
236
  isValidating: !1,
237
- error: e.error || "Invalid promo code",
237
+ error: e.error || "Promo code isn't valid.",
238
238
  hint: "",
239
239
  discountAmount: 0,
240
240
  discountType: "",
@@ -258,7 +258,7 @@ function Ae(e, t) {
258
258
  }
259
259
  //#endregion
260
260
  //#region src/lib/public-calendar-flow/surgeQueue.svelte.ts
261
- var je = i("VC"), Me = .25, Ne = 2e3, Pe = 3e4, q = 1e3;
261
+ var je = t("VC"), Me = .25, Ne = 2e3, Pe = 3e4, q = 1e3;
262
262
  function Fe({ eventId: e, onAdmitted: t }) {
263
263
  let n = W.state("open"), r = W.state(!1), i = W.state(null), a = W.state(0), o = W.state(0), s = W.state(0), c = W.state(""), l = W.state(!1), u = W.state(0), d = null, f = 0, p = !1, m = !1, h = 0, g = !1, _ = !1, v = !1;
264
264
  function y(e) {
@@ -369,13 +369,13 @@ function Fe({ eventId: e, onAdmitted: t }) {
369
369
  //#endregion
370
370
  //#region src/components/Modals/WaitlistModal.svelte
371
371
  var J = W.from_html("<p class=\"mt-2 type-body tone-secondary max-w-72\"> </p>"), Y = W.from_html("<p> </p>"), Ie = W.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>"), Le = W.from_html("<p class=\"type-caption text-accent-danger mt-1\"> </p>"), Re = W.from_html("<div class=\"ml-7\"><!> <!> <p> </p></div>"), ze = W.from_html("<div class=\"p-3 bg-status-error-bg border border-status-error-border rounded-lg\"><p> </p></div>"), X = W.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>"), Z = W.from_html("<!> <!>", 1), Be = W.from_html("<div class=\"flex gap-3 w-full\" role=\"group\"><!></div>");
372
- function Ve(e, t) {
373
- W.push(t, !0);
374
- let n = W.prop(t, "show", 15, !1);
375
- W.prop(t, "eventName", 3, "this event");
376
- let i = W.prop(t, "onClose", 3, () => {}), a = W.prop(t, "labels", 3, c), l = W.state(""), f = W.state(""), p = W.state(!1), h = W.state(!1), v = W.state(""), y = W.state(!1), b = W.state(0), x = W.derived(() => W.get(l) && !C(W.get(l)) ? a().pleaseEnterValidEmail || "Please enter a valid email" : ""), S = W.derived(() => W.get(f) && W.get(p) && !T(W.get(f)) ? a().pleaseEnterValidPhone || "Please enter a valid phone number" : "");
372
+ function Ve(t, n) {
373
+ W.push(n, !0);
374
+ let r = W.prop(n, "show", 15, !1);
375
+ W.prop(n, "eventName", 3, "this event");
376
+ let i = W.prop(n, "onClose", 3, () => {}), a = W.prop(n, "labels", 3, b), o = W.state(""), l = W.state(""), u = W.state(!1), f = W.state(!1), h = W.state(""), g = W.state(!1), _ = W.state(0), x = W.derived(() => W.get(o) && !C(W.get(o)) ? a().pleaseEnterValidEmail || "Please enter a valid email" : ""), S = W.derived(() => W.get(l) && W.get(u) && !T(W.get(l)) ? a().pleaseEnterValidPhone || "Please enter a valid phone number" : "");
377
377
  function C(e) {
378
- return s(e);
378
+ return y(e);
379
379
  }
380
380
  function w(e) {
381
381
  switch (e) {
@@ -389,80 +389,80 @@ function Ve(e, t) {
389
389
  }
390
390
  }
391
391
  function T(e) {
392
- return m(u(e));
392
+ return d(s(e));
393
393
  }
394
394
  async function E() {
395
- if (W.set(v, ""), !W.get(l) || !C(W.get(l))) {
396
- W.set(v, a().pleaseEnterValidEmailAddress || "Please enter a valid email address", !0);
395
+ if (W.set(h, ""), !W.get(o) || !C(W.get(o))) {
396
+ W.set(h, a().pleaseEnterValidEmailAddress || "Please enter a valid email address", !0);
397
397
  return;
398
398
  }
399
- if (W.get(p) && W.get(f) && !T(W.get(f))) {
400
- W.set(v, a().pleaseEnterValidPhone || "Please enter a valid phone number", !0);
399
+ if (W.get(u) && W.get(l) && !T(W.get(l))) {
400
+ W.set(h, a().pleaseEnterValidPhone || "Please enter a valid phone number", !0);
401
401
  return;
402
402
  }
403
- W.set(h, !0);
404
- let e = await L(t.eventId, W.get(l), W.get(p) ? W.get(f) : null, W.get(p));
405
- W.set(h, !1), e.success ? (W.set(y, !0), W.set(b, e.position || 0, !0)) : W.set(v, w(e.errorCode), !0);
403
+ W.set(f, !0);
404
+ let e = await L(n.eventId, W.get(o), W.get(u) ? W.get(l) : null, W.get(u));
405
+ W.set(f, !1), e.success ? (W.set(g, !0), W.set(_, e.position || 0, !0)) : W.set(h, w(e.errorCode), !0);
406
406
  }
407
407
  function D() {
408
- W.set(l, ""), W.set(f, ""), W.set(p, !1), W.set(v, ""), W.set(y, !1), W.set(b, 0), n(!1), i()();
408
+ W.set(o, ""), W.set(l, ""), W.set(u, !1), W.set(h, ""), W.set(g, !1), W.set(_, 0), r(!1), i()();
409
409
  }
410
- k(e, {
410
+ k(t, {
411
411
  size: "sm",
412
412
  class: "micdrop",
413
413
  get open() {
414
- return n();
414
+ return r();
415
415
  },
416
416
  set open(e) {
417
- n(e);
417
+ r(e);
418
418
  },
419
- children: (e, t) => {
420
- var n = Z(), i = W.first_child(n);
419
+ children: (t, n) => {
420
+ var r = Z(), i = W.first_child(r);
421
421
  A(i, {});
422
422
  var s = W.sibling(i, 2);
423
423
  M(s, {
424
- children: (e, t) => {
425
- var n = Z(), i = W.first_child(n);
424
+ children: (t, n) => {
425
+ var r = Z(), i = W.first_child(r);
426
426
  j(i, {
427
- children: (e, t) => {
428
- var n = W.comment(), i = W.first_child(n), o = (e) => {
429
- var t = Ie(), n = W.child(t), i = W.child(n);
430
- g(i, { size: "32" }), W.reset(n);
431
- var o = W.sibling(n, 2), s = W.child(o, !0);
427
+ children: (t, n) => {
428
+ var r = W.comment(), i = W.first_child(r), s = (t) => {
429
+ var n = Ie(), r = W.child(n), i = W.child(r);
430
+ p(i, { size: "32" }), W.reset(r);
431
+ var o = W.sibling(r, 2), s = W.child(o, !0);
432
432
  W.reset(o);
433
- var c = W.sibling(o, 2), l = W.child(c, !0);
433
+ var c = W.sibling(o, 2), d = W.child(c, !0);
434
434
  W.reset(c);
435
- var u = W.sibling(c, 2), d = (e) => {
435
+ var f = W.sibling(c, 2), m = (e) => {
436
436
  var t = J(), n = W.child(t, !0);
437
- W.reset(t), W.template_effect((e) => W.set_text(n, e), [() => (a().waitlistPositionEstimate || "You're about #{position} in line — this moves as seats free up").replace("{position}", String(W.get(b)))]), W.append(e, t);
437
+ W.reset(t), W.template_effect((e) => W.set_text(n, e), [() => (a().waitlistPositionEstimate || "You're about #{position} in line — this moves as seats free up").replace("{position}", String(W.get(_)))]), W.append(e, t);
438
438
  };
439
- W.if(u, (e) => {
440
- W.get(b) > 0 && e(d);
439
+ W.if(f, (e) => {
440
+ W.get(_) > 0 && e(m);
441
441
  });
442
- var m = W.sibling(u, 2), h = (e) => {
443
- var t = Y(), n = W.child(t, !0);
444
- W.reset(t), W.template_effect(() => {
445
- W.set_class(t, 1, `mt-2 ${r.xsMuted ?? ""}`), W.set_text(n, a().waitlistSmsAlerts || "You'll also receive SMS alerts");
446
- }), W.append(e, t);
442
+ var h = W.sibling(f, 2), g = (t) => {
443
+ var n = Y(), r = W.child(n, !0);
444
+ W.reset(n), W.template_effect(() => {
445
+ W.set_class(n, 1, `mt-2 ${e.xsMuted ?? ""}`), W.set_text(r, a().waitlistSmsAlerts || "You'll also receive SMS alerts");
446
+ }), W.append(t, n);
447
447
  };
448
- W.if(m, (e) => {
449
- W.get(p) && W.get(f) && e(h);
450
- }), W.reset(t), W.template_effect(() => {
451
- W.set_class(o, 1, `mb-2 ${r.heading ?? ""}`), W.set_text(s, a().youreOnTheList || "You're on the waitlist"), W.set_text(l, a().waitlistNotifyByEmail || "We'll let you know if tickets become available");
452
- }), W.append(e, t);
453
- }, s = (e) => {
454
- var t = X(), n = W.child(t), i = W.child(n), o = W.child(i);
455
- _(o, { size: "24" }), W.reset(i), W.reset(n);
456
- var s = W.sibling(n, 2), c = W.child(s, !0);
457
- W.reset(s);
458
- var u = W.sibling(s, 2), m = W.child(u, !0);
459
- W.reset(u);
460
- var g = W.sibling(u, 2), y = W.child(g), b = W.child(y), C = W.child(b, !0);
448
+ W.if(h, (e) => {
449
+ W.get(u) && W.get(l) && e(g);
450
+ }), W.reset(n), W.template_effect(() => {
451
+ W.set_class(o, 1, `mb-2 ${e.heading ?? ""}`), W.set_text(s, a().youreOnTheList || "You're on the waitlist"), W.set_text(d, a().waitlistNotifyByEmail || "We'll let you know if tickets become available");
452
+ }), W.append(t, n);
453
+ }, d = (t) => {
454
+ var n = X(), r = W.child(n), i = W.child(r), s = W.child(i);
455
+ m(s, { size: "24" }), W.reset(i), W.reset(r);
456
+ var d = W.sibling(r, 2), p = W.child(d, !0);
457
+ W.reset(d);
458
+ var g = W.sibling(d, 2), _ = W.child(g, !0);
459
+ W.reset(g);
460
+ var v = W.sibling(g, 2), y = W.child(v), b = W.child(y), C = W.child(b, !0);
461
461
  W.reset(b);
462
462
  var w = W.sibling(b, 2), T = W.child(w);
463
463
  {
464
464
  let e = W.derived(() => a().waitlistEmailPlaceholder || "you@example.com"), t = W.derived(() => W.get(x) ? "border-status-error-border" : "");
465
- d(T, {
465
+ c(T, {
466
466
  id: "waitlist-email",
467
467
  type: "email",
468
468
  get placeholder() {
@@ -470,16 +470,16 @@ function Ve(e, t) {
470
470
  },
471
471
  required: !0,
472
472
  get disabled() {
473
- return W.get(h);
473
+ return W.get(f);
474
474
  },
475
475
  get class() {
476
476
  return W.get(t);
477
477
  },
478
478
  get value() {
479
- return W.get(l);
479
+ return W.get(o);
480
480
  },
481
481
  set value(e) {
482
- W.set(l, e, !0);
482
+ W.set(o, e, !0);
483
483
  }
484
484
  });
485
485
  }
@@ -495,62 +495,62 @@ function Ve(e, t) {
495
495
  W.remove_input_defaults(j);
496
496
  var M = W.sibling(j, 2), N = W.child(M, !0);
497
497
  W.reset(M), W.reset(A);
498
- var P = W.sibling(A, 2), ee = (e) => {
499
- var t = Re(), n = W.child(t);
498
+ var P = W.sibling(A, 2), ee = (t) => {
499
+ var n = Re(), r = W.child(n);
500
500
  {
501
501
  let e = W.derived(() => a().waitlistPhonePlaceholder || "(555) 123-4567"), t = W.derived(() => W.get(S) ? "border-status-error-border" : "");
502
- d(n, {
502
+ c(r, {
503
503
  id: "waitlist-phone",
504
504
  type: "tel",
505
505
  get placeholder() {
506
506
  return W.get(e);
507
507
  },
508
508
  get disabled() {
509
- return W.get(h);
509
+ return W.get(f);
510
510
  },
511
511
  get class() {
512
512
  return W.get(t);
513
513
  },
514
514
  get value() {
515
- return W.get(f);
515
+ return W.get(l);
516
516
  },
517
517
  set value(e) {
518
- W.set(f, e, !0);
518
+ W.set(l, e, !0);
519
519
  }
520
520
  });
521
521
  }
522
- var i = W.sibling(n, 2), o = (e) => {
522
+ var i = W.sibling(r, 2), o = (e) => {
523
523
  var t = Le(), n = W.child(t, !0);
524
524
  W.reset(t), W.template_effect(() => W.set_text(n, W.get(S))), W.append(e, t);
525
525
  };
526
526
  W.if(i, (e) => {
527
527
  W.get(S) && e(o);
528
528
  });
529
- var s = W.sibling(i, 2), c = W.child(s, !0);
530
- W.reset(s), W.reset(t), W.template_effect(() => {
531
- W.set_class(s, 1, `mt-1 ${r.xsMuted ?? ""}`), W.set_text(c, a().smsDisclaimer || "Message & data rates may apply. Reply STOP to unsubscribe");
532
- }), W.append(e, t);
529
+ var s = W.sibling(i, 2), u = W.child(s, !0);
530
+ W.reset(s), W.reset(n), W.template_effect(() => {
531
+ W.set_class(s, 1, `mt-1 ${e.xsMuted ?? ""}`), W.set_text(u, a().smsDisclaimer || "Message & data rates may apply. Reply STOP to unsubscribe");
532
+ }), W.append(t, n);
533
533
  };
534
534
  W.if(P, (e) => {
535
- W.get(p) && e(ee);
535
+ W.get(u) && e(ee);
536
536
  }), W.reset(k);
537
- var te = W.sibling(k, 2), F = (e) => {
538
- var t = ze(), n = W.child(t), i = W.child(n, !0);
539
- W.reset(n), W.reset(t), W.template_effect(() => {
540
- W.set_class(n, 1, W.clsx(r.error)), W.set_text(i, W.get(v));
541
- }), W.append(e, t);
537
+ var te = W.sibling(k, 2), F = (t) => {
538
+ var n = ze(), r = W.child(n), i = W.child(r, !0);
539
+ W.reset(r), W.reset(n), W.template_effect(() => {
540
+ W.set_class(r, 1, W.clsx(e.error)), W.set_text(i, W.get(h));
541
+ }), W.append(t, n);
542
542
  };
543
543
  W.if(te, (e) => {
544
- W.get(v) && e(F);
545
- }), W.reset(g), W.reset(t), W.template_effect(() => {
546
- W.set_class(s, 1, `mb-2 text-center ${r.heading ?? ""}`), W.set_text(c, a().waitlistTitle || "This show is sold out"), W.set_text(m, a().waitlistDescription || "Want to be notified if tickets become available?"), W.set_text(C, a().waitlistEmailLabel || "Email address"), W.set_attribute(j, "aria-label", a().smsOptIn || "Text me when tickets are available"), j.disabled = W.get(h), W.set_text(N, a().smsOptIn || "Text me when tickets are available");
547
- }), W.event("submit", g, (e) => {
544
+ W.get(h) && e(F);
545
+ }), W.reset(v), W.reset(n), W.template_effect(() => {
546
+ W.set_class(d, 1, `mb-2 text-center ${e.heading ?? ""}`), W.set_text(p, a().waitlistTitle || "This show is sold out"), W.set_text(_, a().waitlistDescription || "Want to be notified if tickets become available?"), W.set_text(C, a().waitlistEmailLabel || "Email address"), W.set_attribute(j, "aria-label", a().smsOptIn || "Text me when tickets are available"), j.disabled = W.get(f), W.set_text(N, a().smsOptIn || "Text me when tickets are available");
547
+ }), W.event("submit", v, (e) => {
548
548
  e.preventDefault(), E();
549
- }), W.bind_checked(j, () => W.get(p), (e) => W.set(p, e)), W.append(e, t);
549
+ }), W.bind_checked(j, () => W.get(u), (e) => W.set(u, e)), W.append(t, n);
550
550
  };
551
551
  W.if(i, (e) => {
552
- W.get(y) ? e(o) : e(s, -1);
553
- }), W.append(e, n);
552
+ W.get(g) ? e(s) : e(d, -1);
553
+ }), W.append(t, r);
554
554
  },
555
555
  $$slots: { default: !0 }
556
556
  });
@@ -558,7 +558,7 @@ function Ve(e, t) {
558
558
  N(s, {
559
559
  children: (e, t) => {
560
560
  var n = Be(), r = W.child(n), i = (e) => {
561
- o(e, {
561
+ v(e, {
562
562
  size: "full",
563
563
  variant: "default",
564
564
  onclick: D,
@@ -571,12 +571,12 @@ function Ve(e, t) {
571
571
  });
572
572
  }, s = (e) => {
573
573
  var t = Z(), n = W.first_child(t);
574
- o(n, {
574
+ v(n, {
575
575
  size: "full",
576
576
  variant: "alternative",
577
577
  onclick: D,
578
578
  get disabled() {
579
- return W.get(h);
579
+ return W.get(f);
580
580
  },
581
581
  children: (e, t) => {
582
582
  W.next();
@@ -587,13 +587,13 @@ function Ve(e, t) {
587
587
  });
588
588
  var r = W.sibling(n, 2);
589
589
  {
590
- let e = W.derived(() => !W.get(l) || !!W.get(x) || W.get(p) && W.get(f) && !!W.get(S));
591
- o(r, {
590
+ let e = W.derived(() => !W.get(o) || !!W.get(x) || W.get(u) && W.get(l) && !!W.get(S));
591
+ v(r, {
592
592
  size: "full",
593
593
  variant: "default",
594
594
  onclick: E,
595
595
  get loading() {
596
- return W.get(h);
596
+ return W.get(f);
597
597
  },
598
598
  get disabled() {
599
599
  return W.get(e);
@@ -601,7 +601,7 @@ function Ve(e, t) {
601
601
  children: (e, t) => {
602
602
  W.next();
603
603
  var n = W.text();
604
- W.template_effect(() => W.set_text(n, W.get(h) ? a().joining || "Joining..." : a().notifyMe || "Notify me")), W.append(e, n);
604
+ W.template_effect(() => W.set_text(n, W.get(f) ? a().joining || "Joining..." : a().notifyMe || "Notify me")), W.append(e, n);
605
605
  },
606
606
  $$slots: { default: !0 }
607
607
  });
@@ -609,28 +609,28 @@ function Ve(e, t) {
609
609
  W.append(e, t);
610
610
  };
611
611
  W.if(r, (e) => {
612
- W.get(y) ? e(i) : e(s, -1);
612
+ W.get(g) ? e(i) : e(s, -1);
613
613
  }), W.reset(n), W.template_effect(() => W.set_attribute(n, "aria-label", a().dialogActions || "Dialog actions")), W.append(e, n);
614
614
  },
615
615
  $$slots: { default: !0 }
616
- }), W.append(e, n);
616
+ }), W.append(t, r);
617
617
  },
618
618
  $$slots: { default: !0 }
619
- }), W.append(e, n);
619
+ }), W.append(t, r);
620
620
  },
621
621
  $$slots: { default: !0 }
622
622
  }), W.pop();
623
623
  }
624
624
  //#endregion
625
625
  //#region src/components/Views/EventPage.svelte
626
- var He = i("EventPage"), Ue = W.from_html("<div class=\"flex items-center justify-center py-12 text-center loading-container svelte-1dk5n3m\"><p> </p></div>"), We = W.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>"), Ge = W.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>"), Ke = W.from_html("<div class=\"waitlist-window-banner svelte-1dk5n3m\"><span class=\"type-body\"> <strong class=\"waitlist-window-time svelte-1dk5n3m\"> </strong> </span></div>"), qe = W.from_html("<div class=\"waitlist-window-banner svelte-1dk5n3m\"><span class=\"type-body\"> </span></div>"), Je = W.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>"), Ye = W.from_html("<!> <!>", 1), Xe = W.from_html("<!> <!> <!>", 1);
626
+ var He = t("EventPage"), Ue = W.from_html("<div class=\"flex items-center justify-center py-12 text-center loading-container svelte-1dk5n3m\"><p> </p></div>"), We = W.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>"), Ge = W.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>"), Ke = W.from_html("<div class=\"waitlist-window-banner svelte-1dk5n3m\"><span class=\"type-body\"> <strong class=\"waitlist-window-time svelte-1dk5n3m\"> </strong> </span></div>"), qe = W.from_html("<div class=\"waitlist-window-banner svelte-1dk5n3m\"><span class=\"type-body\"> </span></div>"), Je = W.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>"), Ye = W.from_html("<!> <!>", 1), Xe = W.from_html("<!> <!> <!>", 1);
627
627
  function Ze(e, t) {
628
628
  W.push(t, !0);
629
629
  let n = W.prop(t, "rawEvent", 3, void 0), r = W.prop(t, "eventId", 3, void 0), i = W.prop(t, "slug", 3, "");
630
630
  W.prop(t, "currentEventId", 3, void 0);
631
- let s = W.prop(t, "onNavigateBack", 3, void 0), c = W.prop(t, "onBuyTickets", 3, void 0), u = W.prop(t, "onNavigateToCart", 3, void 0), d = W.prop(t, "onCollectionEventClick", 3, void 0);
631
+ let a = W.prop(t, "onNavigateBack", 3, void 0), s = W.prop(t, "onBuyTickets", 3, void 0), c = W.prop(t, "onNavigateToCart", 3, void 0), l = W.prop(t, "onCollectionEventClick", 3, void 0);
632
632
  W.prop(t, "organizationId", 3, "");
633
- let f = W.prop(t, "widgetId", 3, null), m = W.prop(t, "venueId", 3, null), h = W.prop(t, "waitlistToken", 3, void 0), g = W.prop(t, "waitlistEmail", 3, void 0), _ = W.prop(t, "labels", 19, () => ({})), C = W.prop(t, "locale", 3, void 0), k = W.derived(() => se(C(), _())), A = () => m() || W.get(j)?.venueID || W.get(j)?.venueId || null, j = W.state(W.proxy(n() ?? null)), M = W.state(W.proxy(!n() && !!r()));
633
+ let d = W.prop(t, "widgetId", 3, null), f = W.prop(t, "venueId", 3, null), p = W.prop(t, "waitlistToken", 3, void 0), m = W.prop(t, "waitlistEmail", 3, void 0), y = W.prop(t, "labels", 19, () => ({})), b = W.prop(t, "locale", 3, void 0), k = W.derived(() => se(b(), y())), A = () => f() || W.get(j)?.venueID || W.get(j)?.venueId || null, j = W.state(W.proxy(n() ?? null)), M = W.state(W.proxy(!n() && !!r()));
634
634
  W.user_effect(() => {
635
635
  n() && W.set(j, n());
636
636
  });
@@ -641,7 +641,7 @@ function Ze(e, t) {
641
641
  ...W.get(j),
642
642
  availableTickets: [...e, ...n]
643
643
  };
644
- }), z = W.derived(() => W.get(ce) ? v(W.get(ce)) : null), B = W.derived(() => r() || W.get(z)?.id || ""), V = W.state(!1), H = W.state("");
644
+ }), z = W.derived(() => W.get(ce) ? h(W.get(ce)) : null), B = W.derived(() => r() || W.get(z)?.id || ""), V = W.state(!1), H = W.state("");
645
645
  W.user_effect(() => {
646
646
  let e = W.get(B);
647
647
  if (e) return oe(e, {
@@ -683,7 +683,7 @@ function Ze(e, t) {
683
683
  }
684
684
  }
685
685
  function Te() {
686
- G.close(), s() && s()();
686
+ G.close(), a() && a()();
687
687
  }
688
688
  let Ee = W.state(""), De = W.state(0), Oe = 0;
689
689
  async function je(e) {
@@ -717,12 +717,12 @@ function Ze(e, t) {
717
717
  if (W.get(Re) === null) return "";
718
718
  let e = Math.max(0, Math.floor(W.get(Re) / 1e3));
719
719
  return `${Math.floor(e / 60)}:${String(e % 60).padStart(2, "0")}`;
720
- }), X = W.state(""), Z = W.state(!1), Be = W.state(!1), Ze = W.derived(() => W.get(X) === "token_expired" && !!h() && !!g());
720
+ }), X = W.state(""), Z = W.state(!1), Be = W.state(!1), Ze = W.derived(() => W.get(X) === "token_expired" && !!p() && !!m());
721
721
  async function Qe() {
722
- if (!(W.get(Z) || W.get(Be) || !h() || !g())) {
722
+ if (!(W.get(Z) || W.get(Be) || !p() || !m())) {
723
723
  W.set(Z, !0);
724
724
  try {
725
- let e = await ie(h(), g());
725
+ let e = await ie(p(), m());
726
726
  e.success ? (W.set(Be, !0), W.set(J, ""), T(W.get(k).waitlistRequeueDone || "You're first in line — we'll email you the moment the next seat opens up", { politeness: "polite" })) : e.errorCode === "entry_not_found" ? (W.set(X, e.errorCode, !0), W.set(J, W.get(k).waitlistRequeueNotOnList || "You're no longer on this waitlist — join again from the button below", !0)) : e.errorCode === "token_used" ? (W.set(X, e.errorCode, !0), W.set(J, $e("token_used"), !0)) : W.set(J, W.get(k).waitlistRequeueFailed || "We couldn't move you up just now — you're still on the waitlist", !0);
727
727
  } finally {
728
728
  W.set(Z, !1);
@@ -769,12 +769,19 @@ function Ze(e, t) {
769
769
  W.set(P, W.get(k).priceUnavailable || "We couldn't load the price for this order — refresh the page or contact the venue", !0);
770
770
  return;
771
771
  }
772
- let t = {}, n = {};
773
- for (let r of e.lines) t[r.ticketId] = r.quantity, W.get(U).tickets.find((e) => e.id === r.ticketId)?.isDonation && (n[r.ticketId] = r.unitPrice);
772
+ let t = {}, n = {}, r = {};
773
+ for (let i of e.lines) {
774
+ if (i.kind === "addon") {
775
+ r[i.ticketId] = i.quantity;
776
+ continue;
777
+ }
778
+ t[i.ticketId] = i.quantity, W.get(U).tickets.find((e) => e.id === i.ticketId)?.isDonation && (n[i.ticketId] = i.unitPrice);
779
+ }
774
780
  le({
775
781
  eventID: String(W.get(B)),
776
782
  quantities: t,
777
783
  donationAmounts: n,
784
+ addOnQuantities: r,
778
785
  promocode: W.get(Ee),
779
786
  promoDiscountAmount: W.get(De),
780
787
  tickets: W.get(U).tickets.map((e) => ({
@@ -786,35 +793,36 @@ function Ze(e, t) {
786
793
  salesChannel: "0"
787
794
  }))
788
795
  });
789
- let r = await ue({
796
+ let i = await ue({
790
797
  eventID: W.get(B),
791
798
  quantities: t,
799
+ ...Object.keys(r).length > 0 ? { addOnQuantities: r } : {},
792
800
  promoCode: W.get(Ee) || void 0,
793
- attribution: S(),
794
- ...W.get(q) && h() && g() ? {
795
- waitlistToken: h(),
796
- customerEmail: g()
801
+ attribution: C(),
802
+ ...W.get(q) && p() && m() ? {
803
+ waitlistToken: p(),
804
+ customerEmail: m()
797
805
  } : {}
798
806
  }, W.get(Q)?.token ?? void 0);
799
- if (!r?.success) {
800
- if (r?.errorType === "queue" && W.get(Q)) {
807
+ if (!i?.success) {
808
+ if (i?.errorType === "queue" && W.get(Q)) {
801
809
  rt = e, W.set(nt, !1), await W.get(Q).join();
802
810
  return;
803
811
  }
804
- W.set(P, r?.error || W.get(k).failedToCompleteOrder || "Failed to complete order. Please try again", !0);
812
+ W.set(P, i?.error || W.get(k).failedToCompleteOrder || "Failed to complete order. Please try again", !0);
805
813
  return;
806
814
  }
807
- b(W.get(B), f(), A()), u() ? u()(W.get(B), W.get(de), W.get(j)) : y(O(E(W.get(B), W.get(de)), {}));
815
+ x(W.get(B), d(), A()), c() ? c()(W.get(B), W.get(de), W.get(j)) : g(O(E(W.get(B), W.get(de)), {}));
808
816
  }
809
817
  function dt(e) {
810
- if (d()) {
811
- d()(e);
818
+ if (l()) {
819
+ l()(e);
812
820
  return;
813
821
  }
814
- e.id ? y(O(D(e.id, e.slug), {})) : (He.warn("Collection event missing id, navigating by slug only"), y(O(w(e.slug), {})));
822
+ e.id ? g(O(D(e.id, e.slug), {})) : (He.warn("Collection event missing id, navigating by slug only"), g(O(w(e.slug), {})));
815
823
  }
816
824
  function ft(e) {
817
- c() ? c()(a(e.id), e.slug) : y(O(D(e.id, e.slug), {}));
825
+ s() ? s()(_(e.id), e.slug) : g(O(D(e.id, e.slug), {}));
818
826
  }
819
827
  ge(async () => {
820
828
  if (!W.get(j) && r()) {
@@ -829,7 +837,7 @@ function Ze(e, t) {
829
837
  }
830
838
  if (!W.get(j)) return;
831
839
  let e = W.get(j).ID || W.get(j).id;
832
- e && (fe(e), x(e, f(), A()));
840
+ e && (fe(e), S(e, d(), A()));
833
841
  let t = W.get(j).eventSeriesId || 0, n = W.get(j).venueID || W.get(j).venueId || 0;
834
842
  if (t > 0 && n > 0) try {
835
843
  let e = await re(t, n);
@@ -859,8 +867,8 @@ function Ze(e, t) {
859
867
  let e = await ae(W.get(B));
860
868
  W.set(Ne, e.waitlistEnabled, !0), W.set(Pe, e.gated, !0);
861
869
  }
862
- if (h() && g()) {
863
- let e = await I(h(), g());
870
+ if (p() && m()) {
871
+ let e = await I(p(), m());
864
872
  if (e.valid && Number(e.eventId) !== Number(W.get(B))) W.set(X, "event_mismatch"), W.set(J, W.get(k).waitlistLinkEventMismatch || "This link is for a different event — open it from that show’s email", !0);
865
873
  else if (e.valid) {
866
874
  if (W.set(q, !0), e.expiresAt) {
@@ -876,11 +884,11 @@ function Ze(e, t) {
876
884
  }, gt = (e) => {
877
885
  var t = We(), n = W.child(t), r = W.child(n);
878
886
  W.reset(n);
879
- var i = W.sibling(n, 2), a = (e) => {
880
- o(e, {
887
+ var i = W.sibling(n, 2), o = (e) => {
888
+ v(e, {
881
889
  variant: "default",
882
890
  get onclick() {
883
- return s();
891
+ return a();
884
892
  },
885
893
  children: (e, t) => {
886
894
  W.next();
@@ -891,18 +899,18 @@ function Ze(e, t) {
891
899
  });
892
900
  };
893
901
  W.if(i, (e) => {
894
- s() && e(a);
902
+ a() && e(o);
895
903
  }), W.reset(t), W.template_effect(() => W.set_text(r, `${(W.get(k).errorPrefix || "Error:") ?? ""} ${W.get(N) ?? ""}`)), W.append(e, t);
896
904
  }, _t = (e) => {
897
905
  var t = W.comment(), n = W.first_child(t), r = (e) => {
898
906
  var t = Ge(), n = W.child(t), r = W.child(n), i = W.child(r), a = W.child(i);
899
- p(a, { size: "32" }), W.reset(i);
907
+ u(a, { size: "32" }), W.reset(i);
900
908
  var s = W.sibling(i, 2), c = W.child(s, !0);
901
909
  W.reset(s);
902
- var u = W.sibling(s, 2), d = W.child(u, !0);
903
- W.reset(u);
904
- var f = W.sibling(u, 2);
905
- o(f, {
910
+ var l = W.sibling(s, 2), d = W.child(l, !0);
911
+ W.reset(l);
912
+ var f = W.sibling(l, 2);
913
+ v(f, {
906
914
  variant: "default",
907
915
  size: "lg",
908
916
  onclick: () => G.open(),
@@ -913,8 +921,8 @@ function Ze(e, t) {
913
921
  },
914
922
  $$slots: { default: !0 }
915
923
  }), W.reset(r), W.reset(n);
916
- var m = W.sibling(n, 2), h = W.child(m);
917
- l(h, {
924
+ var p = W.sibling(n, 2), m = W.child(p);
925
+ o(m, {
918
926
  get event() {
919
927
  return W.get(U);
920
928
  },
@@ -962,9 +970,9 @@ function Ze(e, t) {
962
970
  return W.get(k);
963
971
  },
964
972
  get locale() {
965
- return C();
973
+ return b();
966
974
  }
967
- }), W.reset(m), W.reset(t), W.template_effect(() => {
975
+ }), W.reset(p), W.reset(t), W.template_effect(() => {
968
976
  W.set_text(c, W.get(k).passwordProtectedTitle || "This event is password protected"), W.set_text(d, W.get(k).passwordProtectedDescription || "Enter the event password to view details and purchase tickets");
969
977
  }), W.append(e, t);
970
978
  }, i = (e) => {
@@ -982,7 +990,7 @@ function Ze(e, t) {
982
990
  var t = Je(), n = W.child(t), r = W.child(n, !0);
983
991
  W.reset(n);
984
992
  var i = W.sibling(n, 2), a = W.child(i);
985
- o(a, {
993
+ v(a, {
986
994
  variant: "default",
987
995
  size: "sm",
988
996
  get disabled() {
@@ -1002,8 +1010,8 @@ function Ze(e, t) {
1002
1010
  });
1003
1011
  var s = W.sibling(n, 2);
1004
1012
  {
1005
- let e = W.derived(() => W.get(Ze) || W.get(Be) ? "" : W.get(J)), t = W.derived(() => W.get(q) ? h() : ""), n = W.derived(() => W.get(q) ? g() : "");
1006
- l(s, {
1013
+ let e = W.derived(() => W.get(Ze) || W.get(Be) ? "" : W.get(J)), t = W.derived(() => W.get(q) ? p() : ""), n = W.derived(() => W.get(q) ? m() : "");
1014
+ o(s, {
1007
1015
  get event() {
1008
1016
  return W.get(U);
1009
1017
  },
@@ -1057,7 +1065,7 @@ function Ze(e, t) {
1057
1065
  return W.get(k);
1058
1066
  },
1059
1067
  get locale() {
1060
- return C();
1068
+ return b();
1061
1069
  }
1062
1070
  });
1063
1071
  }