@getmicdrop/venue-calendar 4.3.59 → 4.3.61

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 (119) hide show
  1. package/README.md +818 -818
  2. package/dist/{AddOnCard-TEUXB3Sd.js → AddOnCard-DAk2utke.js} +8 -8
  3. package/dist/{ArrowLeftIcon-C0jreEw8.js → ArrowLeftIcon-B2NmxWA9.js} +1 -1
  4. package/dist/{BlockPlaceholder-DdoOD0gZ.js → BlockPlaceholder-IligENph.js} +1 -1
  5. package/dist/{Button-B8GiiO44.js → Button-CjGyeEzb.js} +1 -1
  6. package/dist/{Button-AZ8OLQqj.js → Button-CsbNNvbX.js} +1 -1
  7. package/dist/{Calendar-BWLg7fOl.js → Calendar-DM7xqU81.js} +5 -5
  8. package/dist/{CalendarFoundryView-C2le5l-k.js → CalendarFoundryView-DQpSevsn.js} +3241 -3516
  9. package/dist/{CalendarIcon-BOEpooZq.js → CalendarIcon-3jHpw2aE.js} +1 -1
  10. package/dist/{CartView-CTL1DQem.js → CartView-wqbSdon7.js} +16 -16
  11. package/dist/{ChartBlock-CaxNJtrg.js → ChartBlock-DXPBjk1T.js} +2 -2
  12. package/dist/{Checkout-D7Cgj12j.js → Checkout-1kTSmfH0.js} +19 -18
  13. package/dist/Checkout-sc0A2N8V.js +1974 -0
  14. package/dist/{CheckoutTimer-DPNmc1BX.js → CheckoutTimer-Btjo7PEg.js} +4 -4
  15. package/dist/{ChevronDownIcon-Czxsi1W2.js → ChevronDownIcon-Dp1MGPEN.js} +1 -1
  16. package/dist/{CloseIcon-hLh5XXvh.js → CloseIcon-DKrZf_7a.js} +3 -3
  17. package/dist/{CollectionView-LFCwHiPj.js → CollectionView-BSyl9I7o.js} +6 -6
  18. package/dist/{CropImage-9r61-nLv.js → CropImage-Bv2BZpVi.js} +5 -5
  19. package/dist/{Event-C63PLQhq.js → Event-BtaN2kmZ.js} +20 -20
  20. package/dist/{EventPage-CyDAwaQF.js → EventPage-u_eHSHuz.js} +18 -18
  21. package/dist/{Heading-CZMbiuFu.js → Heading-pESM-crl.js} +1 -1
  22. package/dist/{Input-dF1ZPavc.js → Input-C-GyzK2y.js} +1 -1
  23. package/dist/{MailIcon-T9SmOpQr.js → MailIcon-COatZ9tD.js} +1 -1
  24. package/dist/{Modal-D6NKikBr.js → Modal-Dfgjcn9T.js} +2 -2
  25. package/dist/{ModalFooter-ngqovl_z.js → ModalFooter-D-09FodC.js} +2 -2
  26. package/dist/{ModalHeader-CI7Ev4MQ.js → ModalHeader-BQMT7jjp.js} +2 -2
  27. package/dist/{PasswordInput-B64o-TXR.js → PasswordInput-BGVvl0X1.js} +1 -1
  28. package/dist/{RecommendationsRail-Cb_c4ohM.js → RecommendationsRail-D9S_5rVW.js} +10 -10
  29. package/dist/{ScarcityBadge-14VWzOL2.js → ScarcityBadge-DU6RgcCz.js} +4 -4
  30. package/dist/Select-CjELEaSF.js +376 -0
  31. package/dist/{SeriesPage-DeALgf5s.js → SeriesPage-DQhp3Q6I.js} +2 -2
  32. package/dist/{Spinner-CW1KZMkc.js → Spinner-a0oCk_yG.js} +1 -1
  33. package/dist/{Success-Dcd9bWCn.js → Success-3ivVwkoj.js} +19 -19
  34. package/dist/{TagIcon-C8DU69Jv.js → TagIcon-CfyFlUh_.js} +1 -1
  35. package/dist/{ViewTicketsEmbed-CWLSFG06.js → ViewTicketsEmbed-C6YkgADR.js} +7 -7
  36. package/dist/{WarningCircleIcon-Cj8SHVfz.js → WarningCircleIcon-DsYifP07.js} +1 -1
  37. package/dist/{WarningTriIcon-CfCwvwsQ.js → WarningTriIcon-C2oaxNjx.js} +1 -1
  38. package/dist/{action-test-id-DJZiaKrZ.js → action-test-id-C3XImt88.js} +1 -1
  39. package/dist/api/transformers/venue.d.ts +26 -0
  40. package/dist/{api-Br260RVo.js → api-BX4Imu-R.js} +4 -4
  41. package/dist/{constants-DWS8C09a.js → constants-CBPzJAKF.js} +2 -0
  42. package/dist/{copyToClipboard-C_fcBdn4.js → copyToClipboard-CIu22_xq.js} +1 -1
  43. package/dist/{createErrorGate.svelte-jZMaO7KA.js → createErrorGate.svelte-Z3I2WfRr.js} +1 -1
  44. package/dist/{de-BEfuIgIj.js → de-B7O-dJsW.js} +2 -0
  45. package/dist/{defaultLabels-CqkC-rOG.js → defaultLabels-DdcEwzXA.js} +2 -2
  46. package/dist/{defaults-BLhQWNFt.js → defaults-DlDhWxIS.js} +2 -2
  47. package/dist/{es-Bd4g_HxR.js → es-CAjDq_xB.js} +2 -0
  48. package/dist/{event-DaWMe2IV.js → event-RAxNIB4i.js} +1 -1
  49. package/dist/{event-transform-WnvEyzV-.js → event-transform-CG6CJlbD.js} +4 -4
  50. package/dist/{eventStatusStream-DgWemzCE.js → eventStatusStream--a-Q0-7h.js} +1 -1
  51. package/dist/{fr-Blc79wvV.js → fr-CcNvBKpw.js} +2 -0
  52. package/dist/{href-x-W1j8EY.js → href-Dz1CMH4c.js} +2 -2
  53. package/dist/{i18n-DFWp9lQ_.js → i18n-CmoV3PXL.js} +2 -2
  54. package/dist/{i18n-DgjCm8g6.js → i18n-DLFy3vxe.js} +19 -19
  55. package/dist/{id-DzzsiF4d.js → id-CSzRaEmh.js} +2 -0
  56. package/dist/{imageOptimizer-Bb09jR0m.js → imageOptimizer-29VfdFGr.js} +3 -3
  57. package/dist/{it-B4zXRsxu.js → it-C1y4ckE2.js} +2 -0
  58. package/dist/{ja-eT4_QPKd.js → ja-BkffKruj.js} +2 -0
  59. package/dist/{keyboard-Crrnn87b.js → keyboard-DVfwTq3J.js} +1 -1
  60. package/dist/{ko-B8Fmrldj.js → ko-rUezp1-T.js} +2 -0
  61. package/dist/locales/4.3.61/flow/de.js +1 -0
  62. package/dist/locales/4.3.61/flow/es.js +1 -0
  63. package/dist/locales/4.3.61/flow/fr.js +1 -0
  64. package/dist/locales/4.3.61/flow/id.js +1 -0
  65. package/dist/locales/4.3.61/flow/it.js +1 -0
  66. package/dist/locales/4.3.61/flow/ja.js +1 -0
  67. package/dist/locales/4.3.61/flow/ko.js +1 -0
  68. package/dist/locales/4.3.61/flow/nl.js +1 -0
  69. package/dist/locales/4.3.61/flow/pl.js +1 -0
  70. package/dist/locales/4.3.61/flow/pt-br.js +1 -0
  71. package/dist/locales/4.3.61/flow/tr.js +1 -0
  72. package/dist/locales/4.3.61/flow/zh.js +1 -0
  73. package/dist/{nl-Dnug8LYt.js → nl-B92Oj0Kq.js} +2 -0
  74. package/dist/{orders-DlyjunUM.js → orders-hXWbPM_g.js} +2 -2
  75. package/dist/{pixels-n1zu1IhF.js → pixels-DziDyEAP.js} +2 -2
  76. package/dist/{pl-C3XxoYWF.js → pl-Q8SsShQJ.js} +2 -0
  77. package/dist/{pt-br-Y40SBe4b.js → pt-br-HJoQU6-m.js} +2 -0
  78. package/dist/{scarcity-KJNxIMxj.js → scarcity-ClhXuC6t.js} +2 -2
  79. package/dist/{serverTotals-Cb7pt5Z-.js → serverTotals-fu4tfMfY.js} +1 -1
  80. package/dist/{showcase-state-options-Ce1_tYvH.js → showcase-state-options-b-ZsraRp.js} +1 -1
  81. package/dist/{to-event-card-props-KoNvp_D9.js → to-event-card-props-DObG6xUq.js} +3 -3
  82. package/dist/{tr-2zIJ-vq2.js → tr-Cztm2s2I.js} +2 -0
  83. package/dist/types/index.d.ts +597 -597
  84. package/dist/{utils-VHFV7pBb.js → utils-C15ZjLiK.js} +2 -2
  85. package/dist/venue-Dv8MYjz_.js +17 -0
  86. package/dist/venue-calendar.css +1 -1
  87. package/dist/venue-calendar.es.js +31 -31
  88. package/dist/venue-calendar.iife.js +35 -35
  89. package/dist/venue-calendar.umd.js +53 -53
  90. package/dist/{zh-vNYvCXO7.js → zh-CInFBbgV.js} +2 -0
  91. package/package.json +220 -220
  92. package/src/lib/theme.js +222 -222
  93. package/dist/Checkbox-BtJwg_CF.js +0 -61
  94. package/dist/Checkout-B9OHWxzh.js +0 -1933
  95. package/dist/locales/4.3.59/flow/de.js +0 -1
  96. package/dist/locales/4.3.59/flow/es.js +0 -1
  97. package/dist/locales/4.3.59/flow/fr.js +0 -1
  98. package/dist/locales/4.3.59/flow/id.js +0 -1
  99. package/dist/locales/4.3.59/flow/it.js +0 -1
  100. package/dist/locales/4.3.59/flow/ja.js +0 -1
  101. package/dist/locales/4.3.59/flow/ko.js +0 -1
  102. package/dist/locales/4.3.59/flow/nl.js +0 -1
  103. package/dist/locales/4.3.59/flow/pl.js +0 -1
  104. package/dist/locales/4.3.59/flow/pt-br.js +0 -1
  105. package/dist/locales/4.3.59/flow/tr.js +0 -1
  106. package/dist/locales/4.3.59/flow/zh.js +0 -1
  107. package/dist/venue-BBoZBuhu.js +0 -13
  108. /package/dist/locales/{4.3.59 → 4.3.61}/main/de.js +0 -0
  109. /package/dist/locales/{4.3.59 → 4.3.61}/main/es.js +0 -0
  110. /package/dist/locales/{4.3.59 → 4.3.61}/main/fr.js +0 -0
  111. /package/dist/locales/{4.3.59 → 4.3.61}/main/id.js +0 -0
  112. /package/dist/locales/{4.3.59 → 4.3.61}/main/it.js +0 -0
  113. /package/dist/locales/{4.3.59 → 4.3.61}/main/ja.js +0 -0
  114. /package/dist/locales/{4.3.59 → 4.3.61}/main/ko.js +0 -0
  115. /package/dist/locales/{4.3.59 → 4.3.61}/main/nl.js +0 -0
  116. /package/dist/locales/{4.3.59 → 4.3.61}/main/pl.js +0 -0
  117. /package/dist/locales/{4.3.59 → 4.3.61}/main/pt-br.js +0 -0
  118. /package/dist/locales/{4.3.59 → 4.3.61}/main/tr.js +0 -0
  119. /package/dist/locales/{4.3.59 → 4.3.61}/main/zh.js +0 -0
@@ -0,0 +1,1974 @@
1
+ import { g as e, m as t } from "./sizing-CFDo_qh_.js";
2
+ import { t as n } from "./Input-C-GyzK2y.js";
3
+ import { E as r, K as i, c as a, r as o, x as s } from "./scarcity-ClhXuC6t.js";
4
+ import { n as c } from "./WarningCircleIcon-DsYifP07.js";
5
+ import { r as l, t as u } from "./Select-CjELEaSF.js";
6
+ import { t as d } from "./CalendarIcon-3jHpw2aE.js";
7
+ import { t as f } from "./WarningTriIcon-C2oaxNjx.js";
8
+ import { t as p } from "./z-index-Bo0dqmiq.js";
9
+ import { B as m, M as h, V as g, b as _, k as v, x as ee, z as y } from "./defaultLabels-DdcEwzXA.js";
10
+ import { r as b, t as x } from "./Button-CsbNNvbX.js";
11
+ import { X as S, et as C, i as w, nt as te } from "./orders-hXWbPM_g.js";
12
+ import "./api-BX4Imu-R.js";
13
+ import { t as ne } from "./LiveRegion-D9Me4kBs.js";
14
+ import { n as T, t as E } from "./Heading-pESM-crl.js";
15
+ import { t as D } from "./Modal-Dfgjcn9T.js";
16
+ import { t as O } from "./Text-CqjLjIF8.js";
17
+ import { t as k } from "./modalManager.svelte-Cz_6x1Qd.js";
18
+ import { i as A, n as j, t as re } from "./i18n-DLFy3vxe.js";
19
+ import { t as M } from "./eventStatusStream--a-Q0-7h.js";
20
+ import { n as ie, t as ae } from "./CheckoutTimer-Btjo7PEg.js";
21
+ import { n as oe, t as se } from "./constants-CBPzJAKF.js";
22
+ import { a as ce, i as N, o as le, r as P, s as ue, t as de } from "./showcase-state-options-b-ZsraRp.js";
23
+ import { i as fe, t as pe } from "./AddOnCard-DAk2utke.js";
24
+ import "svelte/internal/disclose-version";
25
+ import * as F from "svelte/internal/client";
26
+ import { onDestroy as me, onMount as he, untrack as ge } from "svelte";
27
+ //#region node_modules/@getmicdrop/svelte-components/dist/primitives/Icons/phosphor/ChevronLeftIcon.svelte
28
+ var I = F.from_svg("<path d=\"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61Z\"></path>"), _e = F.from_svg("<polyline points=\"160 208 80 128 160 48\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"16\"></polyline>"), ve = F.from_svg("<svg aria-hidden=\"true\" viewBox=\"0 0 256 256\" fill=\"currentColor\" xmlns=\"http://www.w3.org/2000/svg\"><!></svg>");
29
+ function ye(e, t) {
30
+ F.push(t, !0);
31
+ let n = F.prop(t, "size", 3, "24"), r = F.prop(t, "color", 3, "currentColor"), a = F.prop(t, "class", 3, ""), o = i(), s = F.derived(() => t.weight ?? o?.weight ?? "regular");
32
+ var c = ve();
33
+ let l;
34
+ var u = F.child(c), d = (e) => {
35
+ var t = I();
36
+ F.append(e, t);
37
+ }, f = (e) => {
38
+ var t = _e();
39
+ F.append(e, t);
40
+ };
41
+ F.if(u, (e) => {
42
+ F.get(s) === "fill" ? e(d) : e(f, -1);
43
+ }), F.reset(c), F.template_effect(() => {
44
+ F.set_class(c, 0, F.clsx(a())), F.set_attribute(c, "width", n()), F.set_attribute(c, "height", n()), l = F.set_style(c, "", l, { color: r() === "currentColor" ? void 0 : r() });
45
+ }), F.append(e, c), F.pop();
46
+ }
47
+ e("cookies");
48
+ var be = {
49
+ OPERATOR_TOKEN: v("operator_token"),
50
+ REFRESH_TOKEN: v("refresh_token"),
51
+ TOKEN_EXPIRY: v("token_expiry"),
52
+ ACTIVE_CONTEXT_ID: v("active_context_id"),
53
+ PERFORMER_TOKEN: v("performer_token"),
54
+ PERFORMER_REFRESH_TOKEN: v("performer_refresh_token"),
55
+ PERFORMER_TOKEN_EXPIRY: v("performer_token_expiry"),
56
+ USER_DETAILS: v("userDetails"),
57
+ SUPPRESSED_ALERTS: v("suppressedAlerts"),
58
+ SESSION_ID: v("session_id"),
59
+ CHECKOUT_CARTID: v("checkout-cartid"),
60
+ USER_TZ: v("user_tz"),
61
+ EXP: v("exp")
62
+ };
63
+ be.OPERATOR_TOKEN, be.REFRESH_TOKEN;
64
+ function xe() {
65
+ return typeof document > "u" ? {} : document.cookie.split("; ").reduce((e, t) => {
66
+ if (!t) return e;
67
+ let [n, ...r] = t.split("=");
68
+ return e[n] = decodeURIComponent(r.join("=")), e;
69
+ }, {});
70
+ }
71
+ function Se(e) {
72
+ return xe()[e] || null;
73
+ }
74
+ //#endregion
75
+ //#region node_modules/@getmicdrop/svelte-components/dist/utils/storage/registry.js
76
+ var Ce = /* @__PURE__ */ new Map(), we = 0, L = /* @__PURE__ */ new WeakMap();
77
+ function R(e) {
78
+ if (!e) return "";
79
+ let t = L.get(e);
80
+ return t === void 0 && (we += 1, t = `#${we}`, L.set(e, t)), t;
81
+ }
82
+ function Te(e) {
83
+ let t = `${e.kind}:${e.key}`, n = R(e.storage), r = Ce.get(t);
84
+ r || (r = /* @__PURE__ */ new Map(), Ce.set(t, r));
85
+ let i = r.get(n);
86
+ return r.set(n, i ? {
87
+ ...e,
88
+ clearOnLogout: i.clearOnLogout || e.clearOnLogout,
89
+ containsPII: i.containsPII || e.containsPII
90
+ } : e), e.key;
91
+ }
92
+ //#endregion
93
+ //#region node_modules/@getmicdrop/svelte-components/dist/utils/storage/themeStorage.js
94
+ var z = Te({
95
+ key: "micdrop:ui:theme",
96
+ kind: "local"
97
+ }), B = "theme";
98
+ function Ee() {
99
+ if (typeof window > "u") return null;
100
+ let e;
101
+ try {
102
+ e = window.localStorage.getItem(B);
103
+ } catch {
104
+ return null;
105
+ }
106
+ return e === "dark" || e === "light" ? e : null;
107
+ }
108
+ function V() {
109
+ if (!(typeof window > "u")) try {
110
+ window.localStorage.removeItem(B);
111
+ } catch {}
112
+ }
113
+ function H() {
114
+ let e = S(z), t = Ee();
115
+ return e === "dark" || e === "light" ? (t && V(), e) : t ? (C(z, t), V(), t) : null;
116
+ }
117
+ //#endregion
118
+ //#region __SKIP_ENVIRONMENT__
119
+ var U = typeof window < "u";
120
+ //#endregion
121
+ //#region node_modules/@getmicdrop/svelte-components/dist/stripe/useStripeTheme.svelte.js
122
+ function De(e) {
123
+ if (typeof window > "u") return !1;
124
+ try {
125
+ let t = H();
126
+ if (t === "dark") return !0;
127
+ if (t === "light") return !1;
128
+ let n = e || "[data-theme=\"dark\"], [data-theme=\"light\"], .micdrop, [data-theme]", r = document.querySelectorAll(n);
129
+ for (let e of r) if (e.getAttribute("data-theme") === "dark") return !0;
130
+ return document.documentElement.getAttribute("data-theme") === "dark" ? !0 : window.matchMedia?.("(prefers-color-scheme: dark)")?.matches ?? !1;
131
+ } catch {
132
+ return !1;
133
+ }
134
+ }
135
+ function W(e) {
136
+ return e ? "night" : "stripe";
137
+ }
138
+ function Oe(e = {}) {
139
+ let { containerSelector: t = "[data-theme=\"dark\"], [data-theme=\"light\"], .micdrop, [data-theme]", watchChanges: n = !0, fallback: r = "stripe" } = e, i = F.state(F.proxy(r)), a = null, o = null;
140
+ function s() {
141
+ F.set(i, W(De(t)), !0);
142
+ }
143
+ return he(() => {
144
+ if (s(), n && typeof MutationObserver < "u") {
145
+ let e = document.querySelectorAll(t), n = document.documentElement;
146
+ a = new MutationObserver(() => {
147
+ s();
148
+ }), a.observe(n, {
149
+ attributes: !0,
150
+ attributeFilter: ["class", "data-theme"]
151
+ }), e.forEach((e) => {
152
+ a?.observe(e, {
153
+ attributes: !0,
154
+ attributeFilter: ["class", "data-theme"]
155
+ });
156
+ }), o = window.matchMedia("(prefers-color-scheme: dark)"), o.addEventListener("change", s);
157
+ }
158
+ }), me(() => {
159
+ a &&= (a.disconnect(), null), o &&= (o.removeEventListener("change", s), null);
160
+ }), {
161
+ get current() {
162
+ return F.get(i);
163
+ },
164
+ refresh: s
165
+ };
166
+ }
167
+ //#endregion
168
+ //#region src/lib/public-calendar-flow/CheckoutForm.svelte
169
+ var G = F.from_html("<div class=\"attendee-card border-default bg-surface-secondary svelte-12l1urf\"><div class=\"flex items-center justify-between mb-3\"><!> <!></div> <div class=\"space-y-3\"><div class=\"grid grid-cols-1 sm:grid-cols-2 gap-3\"><!> <!></div> <!></div></div>"), K = F.from_html("<section class=\"space-y-5\"><!> <!></section>"), ke = F.from_html("<p class=\"type-body text-accent-danger\" data-testid=\"add-ons-error\"> </p>"), q = F.from_html("<section class=\"space-y-4\" data-testid=\"checkout-add-ons\"><!> <div></div> <!> <!></section>"), J = F.from_html("<section class=\"space-y-4\"><!></section>"), Y = F.from_html("<p class=\"type-body text-color-muted mt-1\"> </p>"), Ae = F.from_html("<p class=\"type-body text-accent-danger mt-2\"> </p> <!>", 1), je = F.from_html("<p class=\"type-body text-color-muted mb-2 -mt-1\"> </p>"), Me = F.from_html("<p class=\"type-body text-accent-danger mb-2\"> </p> <!>", 1), Ne = F.from_html("<p class=\"type-body text-color-muted py-2\"> </p>"), Pe = F.from_html("<div></div> <!>", 1), Fe = F.from_html("<!> <!> <!>", 1), Ie = F.from_html("<!> <p class=\"type-body text-accent-danger mt-2\"> </p> <!>", 1);
170
+ F.from_html("<!> <!> <div class=\"grid grid-cols-2 gap-4\"><!> <!></div>", 1);
171
+ var X = F.from_html("<!> <p class=\"type-body text-accent-danger mt-2\"> </p>", 1), Le = F.from_html("<div class=\"checkout-form-panel space-y-6 bg-surface-secondary border-default svelte-12l1urf\" data-testid=\"checkout-form\"><div class=\"timer-header border-default bg-surface-secondary svelte-12l1urf\"><!> <!></div> <section class=\"space-y-4\"><!> <div class=\"grid grid-cols-1 sm:grid-cols-2 gap-4\"><!> <!></div> <!> <!> <!> <!></section> <!> <!> <!> <!></div>");
172
+ function Re(e, t) {
173
+ F.push(t, !0);
174
+ let r = F.prop(t, "stripe", 3, void 0), i = F.prop(t, "paymentIntent", 3, void 0), a = F.prop(t, "elements", 15, void 0), o = F.prop(t, "paymentError", 3, null), s = F.prop(t, "labels", 3, oe), c = F.prop(t, "giftCard", 3, void 0), d = F.prop(t, "checkoutAddOns", 19, () => []), f = F.prop(t, "addOnQuantities", 19, () => ({})), p = F.prop(t, "addOnTicketCount", 3, 0), m = F.prop(t, "onAddOnQuantityChange", 3, void 0), g = F.prop(t, "addOnsBusy", 3, !1), _ = F.prop(t, "addOnsFailed", 3, !1), v = F.prop(t, "addOnsError", 3, null), ee = F.derived(() => (d() || []).filter((e) => e.resolvedRemaining > 0 || (f()[e.id] || 0) > 0)), y = F.derived(() => !!m() && F.get(ee).length > 0), b = U ? Oe() : { current: "stripe" }, S = F.state(null), C = null, w = F.state(null);
175
+ function te() {
176
+ if (!(!U || !r() || !i() || !F.get(S))) {
177
+ if (C) {
178
+ try {
179
+ C.destroy();
180
+ } catch {}
181
+ C = null;
182
+ }
183
+ a(r().elements({
184
+ clientSecret: i(),
185
+ appearance: { theme: b.current }
186
+ })), C = a().create("payment"), C.mount(F.get(S)), F.set(w, i());
187
+ }
188
+ }
189
+ function ne() {
190
+ if (C) {
191
+ try {
192
+ C.destroy();
193
+ } catch {}
194
+ C = null;
195
+ }
196
+ F.set(w, null);
197
+ }
198
+ F.user_effect(() => {
199
+ r() && i() && F.get(S) && i() !== F.get(w) ? te() : (!r() || !i()) && F.get(w) && ne();
200
+ }), F.user_effect(() => {
201
+ if (F.get(w) && a() && b.current) try {
202
+ a().update({ appearance: { theme: b.current } });
203
+ } catch {}
204
+ }), me(() => {
205
+ C &&= (C.destroy(), null), F.set(w, null);
206
+ });
207
+ let T = F.state(""), D = F.state(""), k = F.state(""), A = F.state(""), j = F.state(""), re = F.state(!1);
208
+ F.state(""), F.state(""), F.state("");
209
+ let M = F.state(F.proxy([])), ie = F.derived(() => t.isFreeOrder || t.orderTotals.total === 0), se = F.derived(() => t.event.askForPhoneAtCheckout !== !1), ce = F.derived(() => F.get(se) && t.event.requiredPhoneAtCheckout === !0), N = F.derived(() => t.event.questionPrompt || ""), le = F.derived(() => !!F.get(N) && t.event.requiredCustomCheckout === !0), P = F.derived(() => !!F.get(N) && t.event.selectedQuestionType === "lineup"), ue = "Someone else", de = F.derived(() => F.get(P) ? (() => {
210
+ let e = [], n = (t) => e.some((e) => e.value === t);
211
+ for (let r of t.event.performers ?? []) {
212
+ let t = (r?.displayName ?? "").trim();
213
+ !t || n(t) || e.push({
214
+ value: t,
215
+ name: t
216
+ });
217
+ }
218
+ return e.length > 0 && !n(ue) && e.push({
219
+ value: ue,
220
+ name: s().someoneElse || ue
221
+ }), e;
222
+ })() : []), fe = F.derived(() => F.get(de).length > 0), he = F.state(!1), I = F.derived(() => (() => {
223
+ if (!F.get(he)) return {};
224
+ let e = {};
225
+ if (F.get(T).trim() || (e.firstName = s().firstNameRequired || "First name is required"), F.get(D).trim() || (e.lastName = s().lastNameRequired || "Last name is required"), F.get(k).trim() ? h(F.get(k)) || (e.email = s().emailInvalid || "Enter a valid email address") : e.email = s().emailRequired || "Email is required", F.get(ce) && !F.get(A).trim() && (e.phone = s().phoneRequired || "Phone number is required"), F.get(le) && !F.get(j).trim() && (e.questionAnswer = s().questionAnswerRequired || "An answer is required"), t.isRegistration) for (let t = 0; t < F.get(M).length; t++) {
226
+ let n = F.get(M)[t];
227
+ n.sameAsPurchaser || (n.firstName.trim() || (e[`attendee_${t}_firstName`] = "First name is required"), n.lastName.trim() || (e[`attendee_${t}_lastName`] = "Last name is required"), n.email.trim() ? h(n.email) || (e[`attendee_${t}_email`] = s().emailInvalidShort || "Enter a valid email") : e[`attendee_${t}_email`] = s().emailRequired || "Email is required");
228
+ }
229
+ return e;
230
+ })()), _e = F.derived(() => Object.keys(F.get(I)).length > 0), ve = F.derived(() => (() => {
231
+ let e = t.event.venue?.name?.trim();
232
+ return e ? (s().keepMeUpdatedByVenue || "Keep me updated about {venue} events and news").replace("{venue}", e) : s().keepMeUpdated || "Keep me updated about this event and similar events";
233
+ })()), be = F.derived(() => t.timerSeconds > 0 && t.timerSeconds <= 120);
234
+ F.user_effect(() => {
235
+ if (t.isRegistration) {
236
+ let e = t.orderTotals.lines.reduce((e, t) => e + t.quantity, 0);
237
+ F.get(M).length !== e && F.set(M, Array.from({ length: e }, (e, t) => ({
238
+ firstName: "",
239
+ lastName: "",
240
+ email: "",
241
+ sameAsPurchaser: t === 0
242
+ })), !0);
243
+ }
244
+ });
245
+ let xe = F.state(F.proxy(ge(() => t.submitRequested)));
246
+ F.user_effect(() => {
247
+ t.submitRequested > F.get(xe) && (F.set(xe, t.submitRequested, !0), Ce());
248
+ });
249
+ function Se(e, t) {
250
+ F.set(M, F.get(M).map((n, r) => r === e ? {
251
+ ...n,
252
+ sameAsPurchaser: t,
253
+ firstName: t ? F.get(T) : n.firstName,
254
+ lastName: t ? F.get(D) : n.lastName,
255
+ email: t ? F.get(k) : n.email
256
+ } : n), !0);
257
+ }
258
+ function Ce() {
259
+ F.set(he, !0), !F.get(_e) && (o()?.blocking && !F.get(ie) || !F.get(ie) && !r() || t.onPlaceOrder({
260
+ firstName: F.get(T),
261
+ lastName: F.get(D),
262
+ email: F.get(k),
263
+ phone: F.get(se) ? F.get(A) : "",
264
+ questionAnswer: F.get(N) ? F.get(j) : void 0,
265
+ keepMeUpdated: F.get(re),
266
+ attendees: t.isRegistration ? F.get(M).map((e) => ({
267
+ firstName: e.sameAsPurchaser ? F.get(T) : e.firstName,
268
+ lastName: e.sameAsPurchaser ? F.get(D) : e.lastName,
269
+ email: e.sameAsPurchaser ? F.get(k) : e.email,
270
+ sameAsPurchaser: e.sameAsPurchaser
271
+ })) : void 0
272
+ }));
273
+ }
274
+ var we = Le(), L = F.child(we), R = F.child(L);
275
+ {
276
+ let e = F.derived(() => s().goBack || "Go back");
277
+ x(R, {
278
+ variant: "icon",
279
+ size: "icon-sm",
280
+ get onclick() {
281
+ return t.onBack;
282
+ },
283
+ get "aria-label"() {
284
+ return F.get(e);
285
+ },
286
+ "data-testid": "checkout-back",
287
+ children: (e, t) => {
288
+ ye(e, { size: "20" });
289
+ },
290
+ $$slots: { default: !0 }
291
+ });
292
+ }
293
+ var Te = F.sibling(R, 2);
294
+ ae(Te, {
295
+ get seconds() {
296
+ return t.timerSeconds;
297
+ },
298
+ get isUrgent() {
299
+ return F.get(be);
300
+ },
301
+ get labels() {
302
+ return s();
303
+ }
304
+ }), F.reset(L);
305
+ var z = F.sibling(L, 2), B = F.child(z);
306
+ E(B, {
307
+ level: 2,
308
+ size: "lg",
309
+ weight: "semibold",
310
+ children: (e, t) => {
311
+ F.next();
312
+ var n = F.text();
313
+ F.template_effect(() => F.set_text(n, s().yourDetails || "Your details")), F.append(e, n);
314
+ },
315
+ $$slots: { default: !0 }
316
+ });
317
+ var Ee = F.sibling(B, 2), V = F.child(Ee);
318
+ {
319
+ let e = F.derived(() => s().firstName || "First name"), t = F.derived(() => s().firstName || "First name"), r = F.derived(() => F.get(I).firstName ?? ""), i = F.derived(() => F.get(I).firstName ? "red" : "base");
320
+ n(V, {
321
+ get label() {
322
+ return F.get(e);
323
+ },
324
+ get placeholder() {
325
+ return F.get(t);
326
+ },
327
+ required: !0,
328
+ get errorText() {
329
+ return F.get(r);
330
+ },
331
+ get color() {
332
+ return F.get(i);
333
+ },
334
+ "data-testid": "checkout-first-name",
335
+ get value() {
336
+ return F.get(T);
337
+ },
338
+ set value(e) {
339
+ F.set(T, e, !0);
340
+ }
341
+ });
342
+ }
343
+ var H = F.sibling(V, 2);
344
+ {
345
+ let e = F.derived(() => s().lastName || "Last name"), t = F.derived(() => s().lastName || "Last name"), r = F.derived(() => F.get(I).lastName ?? ""), i = F.derived(() => F.get(I).lastName ? "red" : "base");
346
+ n(H, {
347
+ get label() {
348
+ return F.get(e);
349
+ },
350
+ get placeholder() {
351
+ return F.get(t);
352
+ },
353
+ required: !0,
354
+ get errorText() {
355
+ return F.get(r);
356
+ },
357
+ get color() {
358
+ return F.get(i);
359
+ },
360
+ "data-testid": "checkout-last-name",
361
+ get value() {
362
+ return F.get(D);
363
+ },
364
+ set value(e) {
365
+ F.set(D, e, !0);
366
+ }
367
+ });
368
+ }
369
+ F.reset(Ee);
370
+ var De = F.sibling(Ee, 2);
371
+ {
372
+ let e = F.derived(() => s().emailAddress || "Email address"), t = F.derived(() => s().emailPlaceholder || "you@example.com"), r = F.derived(() => F.get(I).email ?? ""), i = F.derived(() => F.get(I).email ? "red" : "base");
373
+ n(De, {
374
+ get label() {
375
+ return F.get(e);
376
+ },
377
+ type: "email",
378
+ get placeholder() {
379
+ return F.get(t);
380
+ },
381
+ required: !0,
382
+ get errorText() {
383
+ return F.get(r);
384
+ },
385
+ get color() {
386
+ return F.get(i);
387
+ },
388
+ "data-testid": "checkout-email",
389
+ get value() {
390
+ return F.get(k);
391
+ },
392
+ set value(e) {
393
+ F.set(k, e, !0);
394
+ }
395
+ });
396
+ }
397
+ var W = F.sibling(De, 2), Re = (e) => {
398
+ {
399
+ let t = F.derived(() => s().phone || "Phone number"), r = F.derived(() => s().phonePlaceholder || "(555) 555-5555"), i = F.derived(() => F.get(I).phone ?? ""), a = F.derived(() => F.get(I).phone ? "red" : "base");
400
+ n(e, {
401
+ get label() {
402
+ return F.get(t);
403
+ },
404
+ type: "tel",
405
+ get placeholder() {
406
+ return F.get(r);
407
+ },
408
+ get required() {
409
+ return F.get(ce);
410
+ },
411
+ get errorText() {
412
+ return F.get(i);
413
+ },
414
+ get color() {
415
+ return F.get(a);
416
+ },
417
+ "data-testid": "checkout-phone",
418
+ get value() {
419
+ return F.get(A);
420
+ },
421
+ set value(e) {
422
+ F.set(A, e, !0);
423
+ }
424
+ });
425
+ }
426
+ };
427
+ F.if(W, (e) => {
428
+ F.get(se) && e(Re);
429
+ });
430
+ var Z = F.sibling(W, 2), ze = (e) => {
431
+ {
432
+ let t = F.derived(() => s().chooseFromLineup || "Choose from the lineup"), n = F.derived(() => F.get(I).questionAnswer ?? "");
433
+ u(e, {
434
+ get label() {
435
+ return F.get(N);
436
+ },
437
+ get required() {
438
+ return F.get(le);
439
+ },
440
+ get items() {
441
+ return F.get(de);
442
+ },
443
+ get placeholder() {
444
+ return F.get(t);
445
+ },
446
+ get error() {
447
+ return F.get(n);
448
+ },
449
+ "data-testid": "checkout-question-lineup",
450
+ get value() {
451
+ return F.get(j);
452
+ },
453
+ set value(e) {
454
+ F.set(j, e, !0);
455
+ }
456
+ });
457
+ }
458
+ }, Q = (e) => {
459
+ {
460
+ let t = F.derived(() => F.get(I).questionAnswer ?? ""), r = F.derived(() => F.get(I).questionAnswer ? "red" : "base");
461
+ n(e, {
462
+ get label() {
463
+ return F.get(N);
464
+ },
465
+ get required() {
466
+ return F.get(le);
467
+ },
468
+ get errorText() {
469
+ return F.get(t);
470
+ },
471
+ get color() {
472
+ return F.get(r);
473
+ },
474
+ "data-testid": "checkout-question",
475
+ get value() {
476
+ return F.get(j);
477
+ },
478
+ set value(e) {
479
+ F.set(j, e, !0);
480
+ }
481
+ });
482
+ }
483
+ };
484
+ F.if(Z, (e) => {
485
+ F.get(fe) ? e(ze) : F.get(N) && e(Q, 1);
486
+ });
487
+ var Be = F.sibling(Z, 2);
488
+ l(Be, {
489
+ get checked() {
490
+ return F.get(re);
491
+ },
492
+ set checked(e) {
493
+ F.set(re, e, !0);
494
+ },
495
+ children: (e, t) => {
496
+ F.next();
497
+ var n = F.text();
498
+ F.template_effect(() => F.set_text(n, F.get(ve))), F.append(e, n);
499
+ },
500
+ $$slots: { default: !0 }
501
+ }), F.reset(z);
502
+ var Ve = F.sibling(z, 2), He = (e) => {
503
+ var t = K(), r = F.child(t);
504
+ E(r, {
505
+ level: 2,
506
+ size: "lg",
507
+ weight: "semibold",
508
+ children: (e, t) => {
509
+ F.next();
510
+ var n = F.text();
511
+ F.template_effect(() => F.set_text(n, s().attendeeDetails || "Attendee details")), F.append(e, n);
512
+ },
513
+ $$slots: { default: !0 }
514
+ });
515
+ var i = F.sibling(r, 2);
516
+ F.each(i, 17, () => F.get(M), F.index, (e, t, r) => {
517
+ var i = G(), a = F.child(i), o = F.child(a);
518
+ O(o, {
519
+ size: "sm",
520
+ weight: "semibold",
521
+ children: (e, t) => {
522
+ F.next();
523
+ var n = F.text();
524
+ F.template_effect(() => F.set_text(n, `${(s().attendee || "Attendee") ?? ""}
525
+ ${r + 1}`)), F.append(e, n);
526
+ },
527
+ $$slots: { default: !0 }
528
+ });
529
+ var c = F.sibling(o, 2);
530
+ l(c, {
531
+ get checked() {
532
+ return F.get(t).sameAsPurchaser;
533
+ },
534
+ onchange: ({ checked: e }) => Se(r, e),
535
+ children: (e, t) => {
536
+ F.next();
537
+ var n = F.text();
538
+ F.template_effect(() => F.set_text(n, s().sameAsPurchaser || "Same as purchaser")), F.append(e, n);
539
+ },
540
+ $$slots: { default: !0 }
541
+ }), F.reset(a);
542
+ var u = F.sibling(a, 2), d = F.child(u), f = F.child(d);
543
+ {
544
+ let e = F.derived(() => s().firstName || "First name"), i = F.derived(() => s().firstName || "First name"), a = F.derived(() => F.get(t).sameAsPurchaser ? "" : F.get(I)[`attendee_${r}_firstName`] ?? ""), o = F.derived(() => !F.get(t).sameAsPurchaser && F.get(I)[`attendee_${r}_firstName`] ? "red" : "base");
545
+ n(f, {
546
+ get label() {
547
+ return F.get(e);
548
+ },
549
+ get placeholder() {
550
+ return F.get(i);
551
+ },
552
+ required: !0,
553
+ get disabled() {
554
+ return F.get(t).sameAsPurchaser;
555
+ },
556
+ get errorText() {
557
+ return F.get(a);
558
+ },
559
+ get color() {
560
+ return F.get(o);
561
+ },
562
+ get value() {
563
+ return F.get(t).firstName;
564
+ },
565
+ set value(e) {
566
+ F.get(t).firstName = e;
567
+ }
568
+ });
569
+ }
570
+ var p = F.sibling(f, 2);
571
+ {
572
+ let e = F.derived(() => s().lastName || "Last name"), i = F.derived(() => s().lastName || "Last name"), a = F.derived(() => F.get(t).sameAsPurchaser ? "" : F.get(I)[`attendee_${r}_lastName`] ?? ""), o = F.derived(() => !F.get(t).sameAsPurchaser && F.get(I)[`attendee_${r}_lastName`] ? "red" : "base");
573
+ n(p, {
574
+ get label() {
575
+ return F.get(e);
576
+ },
577
+ get placeholder() {
578
+ return F.get(i);
579
+ },
580
+ required: !0,
581
+ get disabled() {
582
+ return F.get(t).sameAsPurchaser;
583
+ },
584
+ get errorText() {
585
+ return F.get(a);
586
+ },
587
+ get color() {
588
+ return F.get(o);
589
+ },
590
+ get value() {
591
+ return F.get(t).lastName;
592
+ },
593
+ set value(e) {
594
+ F.get(t).lastName = e;
595
+ }
596
+ });
597
+ }
598
+ F.reset(d);
599
+ var m = F.sibling(d, 2);
600
+ {
601
+ let e = F.derived(() => s().email || "Email"), i = F.derived(() => s().attendeeEmailPlaceholder || "attendee@example.com"), a = F.derived(() => F.get(t).sameAsPurchaser ? "" : F.get(I)[`attendee_${r}_email`] ?? ""), o = F.derived(() => !F.get(t).sameAsPurchaser && F.get(I)[`attendee_${r}_email`] ? "red" : "base");
602
+ n(m, {
603
+ get label() {
604
+ return F.get(e);
605
+ },
606
+ type: "email",
607
+ get placeholder() {
608
+ return F.get(i);
609
+ },
610
+ required: !0,
611
+ get disabled() {
612
+ return F.get(t).sameAsPurchaser;
613
+ },
614
+ get errorText() {
615
+ return F.get(a);
616
+ },
617
+ get color() {
618
+ return F.get(o);
619
+ },
620
+ get value() {
621
+ return F.get(t).email;
622
+ },
623
+ set value(e) {
624
+ F.get(t).email = e;
625
+ }
626
+ });
627
+ }
628
+ F.reset(u), F.reset(i), F.append(e, i);
629
+ }), F.reset(t), F.append(e, t);
630
+ };
631
+ F.if(Ve, (e) => {
632
+ t.isRegistration && F.get(M).length > 0 && e(He);
633
+ });
634
+ var Ue = F.sibling(Ve, 2), We = (e) => {
635
+ var t = q(), n = F.child(t);
636
+ E(n, {
637
+ level: 2,
638
+ size: "lg",
639
+ children: (e, t) => {
640
+ F.next();
641
+ var n = F.text();
642
+ F.template_effect(() => F.set_text(n, s().addOnsCheckoutTitle || "Add to your order")), F.append(e, n);
643
+ },
644
+ $$slots: { default: !0 }
645
+ });
646
+ var r = F.sibling(n, 2);
647
+ let i;
648
+ F.each(r, 21, () => F.get(ee), (e) => e.id, (e, t) => {
649
+ {
650
+ let n = F.derived(() => f()[F.get(t).id] || 0), r = F.derived(() => g() ? () => {} : (e, t) => m()?.(e, t));
651
+ pe(e, {
652
+ get addOn() {
653
+ return F.get(t);
654
+ },
655
+ get quantity() {
656
+ return F.get(n);
657
+ },
658
+ get ticketCount() {
659
+ return p();
660
+ },
661
+ get onQuantityChange() {
662
+ return F.get(r);
663
+ },
664
+ get labels() {
665
+ return s();
666
+ }
667
+ });
668
+ }
669
+ }), F.reset(r);
670
+ var a = F.sibling(r, 2), o = (e) => {
671
+ O(e, {
672
+ size: "xs",
673
+ color: "muted",
674
+ class: "block",
675
+ children: (e, t) => {
676
+ F.next();
677
+ var n = F.text();
678
+ F.template_effect(() => F.set_text(n, s().addOnsCheckoutUpdating || "Updating your order…")), F.append(e, n);
679
+ },
680
+ $$slots: { default: !0 }
681
+ });
682
+ };
683
+ F.if(a, (e) => {
684
+ g() && e(o);
685
+ });
686
+ var c = F.sibling(a, 2), l = (e) => {
687
+ var t = ke(), n = F.child(t, !0);
688
+ F.reset(t), F.template_effect(() => F.set_text(n, v() || s().addOnsCheckoutFailed || "That could not be added — please try again")), F.append(e, t);
689
+ };
690
+ F.if(c, (e) => {
691
+ _() && e(l);
692
+ }), F.reset(t), F.template_effect(() => i = F.set_class(r, 1, "space-y-2 svelte-12l1urf", null, i, { "add-ons-busy": g() })), F.append(e, t);
693
+ };
694
+ F.if(Ue, (e) => {
695
+ F.get(y) && e(We);
696
+ });
697
+ var $ = F.sibling(Ue, 2), Ge = (e) => {
698
+ var t = J(), n = F.child(t);
699
+ F.snippet(n, c), F.reset(t), F.append(e, t);
700
+ };
701
+ F.if($, (e) => {
702
+ c() && !t.isFreeOrder && e(Ge);
703
+ });
704
+ var Ke = F.sibling($, 2), qe = (e) => {
705
+ var t = J(), n = F.child(t), a = (e) => {
706
+ var t = F.comment(), n = F.first_child(t), r = (e) => {
707
+ var t = Ae(), n = F.first_child(t), r = F.child(n, !0);
708
+ F.reset(n);
709
+ var i = F.sibling(n, 2), a = (e) => {
710
+ var t = Y(), n = F.child(t, !0);
711
+ F.reset(t), F.template_effect(() => F.set_text(n, o().suggestion)), F.append(e, t);
712
+ };
713
+ F.if(i, (e) => {
714
+ o().suggestion && e(a);
715
+ }), F.template_effect(() => F.set_text(r, o().message)), F.append(e, t);
716
+ };
717
+ F.if(n, (e) => {
718
+ o() && e(r);
719
+ }), F.append(e, t);
720
+ }, c = (e) => {
721
+ var t = Fe(), n = F.first_child(t);
722
+ E(n, {
723
+ level: 2,
724
+ size: "lg",
725
+ weight: "semibold",
726
+ children: (e, t) => {
727
+ F.next();
728
+ var n = F.text();
729
+ F.template_effect(() => F.set_text(n, s().payment || "Payment")), F.append(e, n);
730
+ },
731
+ $$slots: { default: !0 }
732
+ });
733
+ var r = F.sibling(n, 2), i = (e) => {
734
+ var t = Me(), n = F.first_child(t), r = F.child(n, !0);
735
+ F.reset(n);
736
+ var i = F.sibling(n, 2), a = (e) => {
737
+ var t = je(), n = F.child(t, !0);
738
+ F.reset(t), F.template_effect(() => F.set_text(n, o().suggestion)), F.append(e, t);
739
+ };
740
+ F.if(i, (e) => {
741
+ o().suggestion && e(a);
742
+ }), F.template_effect(() => F.set_text(r, o().message)), F.append(e, t);
743
+ };
744
+ F.if(r, (e) => {
745
+ o() && e(i);
746
+ });
747
+ var a = F.sibling(r, 2), c = (e) => {
748
+ var t = Pe(), n = F.first_child(t);
749
+ F.bind_this(n, (e) => F.set(S, e), () => F.get(S));
750
+ var r = F.sibling(n, 2), i = (e) => {
751
+ var t = Ne(), n = F.child(t, !0);
752
+ F.reset(t), F.template_effect(() => F.set_text(n, s().loadingPaymentForm || "Loading secure payment form...")), F.append(e, t);
753
+ };
754
+ F.if(r, (e) => {
755
+ F.get(w) || e(i);
756
+ }), F.append(e, t);
757
+ }, l = (e) => {
758
+ var t = Ne(), n = F.child(t, !0);
759
+ F.reset(t), F.template_effect(() => F.set_text(n, s().loadingPaymentForm || "Loading secure payment form...")), F.append(e, t);
760
+ };
761
+ F.if(a, (e) => {
762
+ U ? e(c) : e(l, -1);
763
+ }), F.append(e, t);
764
+ }, l = (e) => {
765
+ var t = Ie(), n = F.first_child(t);
766
+ E(n, {
767
+ level: 2,
768
+ size: "lg",
769
+ weight: "semibold",
770
+ children: (e, t) => {
771
+ F.next();
772
+ var n = F.text();
773
+ F.template_effect(() => F.set_text(n, s().payment || "Payment")), F.append(e, n);
774
+ },
775
+ $$slots: { default: !0 }
776
+ });
777
+ var r = F.sibling(n, 2), i = F.child(r, !0);
778
+ F.reset(r);
779
+ var a = F.sibling(r, 2), c = (e) => {
780
+ var t = Y(), n = F.child(t, !0);
781
+ F.reset(t), F.template_effect(() => F.set_text(n, o().suggestion)), F.append(e, t);
782
+ };
783
+ F.if(a, (e) => {
784
+ o().suggestion && e(c);
785
+ }), F.template_effect(() => F.set_text(i, o().message)), F.append(e, t);
786
+ }, u = (e) => {
787
+ var t = X(), n = F.first_child(t);
788
+ E(n, {
789
+ level: 2,
790
+ size: "lg",
791
+ weight: "semibold",
792
+ children: (e, t) => {
793
+ F.next();
794
+ var n = F.text();
795
+ F.template_effect(() => F.set_text(n, s().payment || "Payment")), F.append(e, n);
796
+ },
797
+ $$slots: { default: !0 }
798
+ });
799
+ var r = F.sibling(n, 2), i = F.child(r, !0);
800
+ F.reset(r), F.template_effect(() => F.set_text(i, s().paymentUnavailable || "Payment can't be taken for this order right now — refresh the page or contact the venue")), F.append(e, t);
801
+ };
802
+ F.if(n, (e) => {
803
+ F.get(ie) ? e(a) : r() && i() ? e(c, 1) : o() ? e(l, 2) : e(u, -1);
804
+ }), F.reset(t), F.append(e, t);
805
+ };
806
+ F.if(Ke, (e) => {
807
+ (!F.get(ie) || o()) && e(qe);
808
+ }), F.reset(we), F.append(e, we), F.pop();
809
+ }
810
+ //#endregion
811
+ //#region src/lib/public-calendar-flow/CheckoutTermsCheckbox.svelte
812
+ var Z = F.from_html(" <a target=\"_blank\" rel=\"external noopener noreferrer\" class=\"link underline\"> <span class=\"sr-only\">&nbsp;(opens in new tab)</span></a>", 1), ze = F.from_html("<a target=\"_blank\" rel=\"external noopener noreferrer\" class=\"link underline\"> <span class=\"sr-only\">&nbsp;(opens in new tab)</span></a>"), Q = F.from_html("<div class=\"flex items-center gap-1.5\"><!> <!></div>"), Be = F.from_html("<div class=\"space-y-2\" data-terms-gate=\"\"><!> <!> <!></div>");
813
+ function Ve(e, t) {
814
+ F.push(t, !0);
815
+ let n = F.prop(t, "agreeTerms", 15, !1), r = F.prop(t, "showError", 3, !1), i = F.prop(t, "termsUrl", 3, "https://get-micdrop.com/tos"), a = F.prop(t, "privacyUrl", 3, "https://get-micdrop.com/privacy"), o = F.prop(t, "labels", 3, oe);
816
+ var s = Be(), c = F.child(s);
817
+ l(c, {
818
+ get checked() {
819
+ return n();
820
+ },
821
+ set checked(e) {
822
+ n(e);
823
+ },
824
+ children: (e, t) => {
825
+ F.next();
826
+ var n = Z(), r = F.first_child(n), a = F.sibling(r), s = F.child(a, !0);
827
+ F.next(), F.reset(a), F.template_effect(() => {
828
+ F.set_text(r, `${(o().agreeToTerms || "I agree to the") ?? ""} `), F.set_attribute(a, "href", i()), F.set_text(s, o().termsAndConditionsLink || "terms and conditions");
829
+ }), F.append(e, n);
830
+ },
831
+ $$slots: { default: !0 }
832
+ });
833
+ var u = F.sibling(c, 2);
834
+ O(u, {
835
+ size: "xs",
836
+ color: "muted",
837
+ class: "block",
838
+ children: (e, t) => {
839
+ var n = ze(), r = F.child(n, !0);
840
+ F.next(), F.reset(n), F.template_effect(() => {
841
+ F.set_attribute(n, "href", a()), F.set_text(r, o().privacyPolicyLink || "Privacy policy");
842
+ }), F.append(e, n);
843
+ },
844
+ $$slots: { default: !0 }
845
+ });
846
+ var d = F.sibling(u, 2), p = (e) => {
847
+ var t = Q(), n = F.child(t);
848
+ f(n, {
849
+ size: "16",
850
+ class: "text-accent-danger shrink-0"
851
+ });
852
+ var r = F.sibling(n, 2);
853
+ O(r, {
854
+ size: "xs",
855
+ class: "text-accent-danger",
856
+ children: (e, t) => {
857
+ F.next();
858
+ var n = F.text();
859
+ F.template_effect(() => F.set_text(n, o().mustAgreeTerms || "You must agree to the terms")), F.append(e, n);
860
+ },
861
+ $$slots: { default: !0 }
862
+ }), F.reset(t), F.append(e, t);
863
+ };
864
+ F.if(d, (e) => {
865
+ r() && e(p);
866
+ }), F.reset(s), F.append(e, s), F.pop();
867
+ }
868
+ //#endregion
869
+ //#region src/lib/public-calendar-flow/CheckoutSidebar.svelte
870
+ var He = F.from_html(" <!>", 1), Ue = F.from_html("<div class=\"p-5 shrink-0\"><div class=\"flex gap-3\"><div class=\"shrink-0 w-20 h-14 rounded-lg overflow-hidden bg-surface-tertiary\"><!></div> <div class=\"flex-1 min-w-0\"><!> <div class=\"flex items-center gap-1.5 mt-1\"><!> <!></div> <div class=\"mt-0.5\"><!></div></div></div></div> <div class=\"px-5 pb-3 flex-1 overflow-y-auto min-h-0 border-t border-default pt-3\"><!></div> <div class=\"px-5 pt-3 pb-5 shrink-0 border-t border-default space-y-3\" data-testid=\"checkout-summary\"><!> <div data-testid=\"checkout-terms\"><!></div> <!> <!></div>", 1);
871
+ function We(e, t) {
872
+ F.push(t, !0);
873
+ let n = F.prop(t, "saleClosed", 3, !1), r = F.prop(t, "priceUnavailable", 3, !1), i = F.prop(t, "labels", 3, oe), c = F.prop(t, "locale", 3, void 0), l = F.prop(t, "agreeTerms", 15, !1), u = F.prop(t, "termsError", 3, !1);
874
+ T(e, {
875
+ border: !0,
876
+ padding: !1,
877
+ class: "flex flex-col max-h-[calc(100vh-1.5rem)] rounded-xl shadow-lg overflow-hidden bg-surface-secondary",
878
+ children: (e, f) => {
879
+ var p = Ue(), h = F.first_child(p), _ = F.child(h), v = F.child(_), ee = F.child(v);
880
+ g(ee, {
881
+ get src() {
882
+ return t.event.imageUrl;
883
+ },
884
+ get alt() {
885
+ return t.event.title;
886
+ },
887
+ get fallback() {
888
+ return se;
889
+ },
890
+ fit: "cover",
891
+ class: "w-full h-full"
892
+ }), F.reset(v);
893
+ var y = F.sibling(v, 2), b = F.child(y);
894
+ O(b, {
895
+ size: "sm",
896
+ weight: "semibold",
897
+ leading: "tight",
898
+ class: "block line-clamp-2",
899
+ children: (e, n) => {
900
+ F.next();
901
+ var r = F.text();
902
+ F.template_effect(() => F.set_text(r, t.event.title)), F.append(e, r);
903
+ },
904
+ $$slots: { default: !0 }
905
+ });
906
+ var S = F.sibling(b, 2), C = F.child(S);
907
+ d(C, {
908
+ size: "16",
909
+ class: "shrink-0 icon-muted"
910
+ });
911
+ var w = F.sibling(C, 2);
912
+ O(w, {
913
+ size: "xs",
914
+ color: "muted",
915
+ children: (e, n) => {
916
+ F.next();
917
+ var r = He(), i = F.first_child(r), s = F.sibling(i), l = (e) => {
918
+ var n = F.text();
919
+ F.template_effect((e) => F.set_text(n, `· ${e ?? ""}`), [() => a(t.event.startDateTime, t.event.timezone, c())]), F.append(e, n);
920
+ };
921
+ F.if(s, (e) => {
922
+ t.event.displayStartTime !== !1 && e(l);
923
+ }), F.template_effect((e) => F.set_text(i, `${e ?? ""} `), [() => o(t.event.startDateTime, t.event.timezone, c())]), F.append(e, r);
924
+ },
925
+ $$slots: { default: !0 }
926
+ }), F.reset(S);
927
+ var te = F.sibling(S, 2), ne = F.child(te);
928
+ O(ne, {
929
+ size: "xs",
930
+ color: "muted",
931
+ class: "block",
932
+ children: (e, n) => {
933
+ F.next();
934
+ var r = F.text();
935
+ F.template_effect(() => F.set_text(r, t.event.venue.name)), F.append(e, r);
936
+ },
937
+ $$slots: { default: !0 }
938
+ }), F.reset(te), F.reset(y), F.reset(_), F.reset(h);
939
+ var T = F.sibling(h, 2), E = F.child(T);
940
+ j(E, {
941
+ get orderTotals() {
942
+ return t.orderTotals;
943
+ },
944
+ mode: "lines",
945
+ get labels() {
946
+ return i();
947
+ }
948
+ }), F.reset(T);
949
+ var D = F.sibling(T, 2), k = F.child(D);
950
+ j(k, {
951
+ get orderTotals() {
952
+ return t.orderTotals;
953
+ },
954
+ mode: "totals",
955
+ get labels() {
956
+ return i();
957
+ }
958
+ });
959
+ var A = F.sibling(k, 2);
960
+ Ve(F.child(A), {
961
+ get showError() {
962
+ return u();
963
+ },
964
+ get labels() {
965
+ return i();
966
+ },
967
+ get agreeTerms() {
968
+ return l();
969
+ },
970
+ set agreeTerms(e) {
971
+ l(e);
972
+ }
973
+ }), F.reset(A);
974
+ var re = F.sibling(A, 2);
975
+ {
976
+ let e = F.derived(() => t.processing || n() || r()), a = F.derived(() => t.processing && !n() && !r());
977
+ x(re, {
978
+ variant: "default",
979
+ size: "lg",
980
+ class: "w-full",
981
+ get disabled() {
982
+ return F.get(e);
983
+ },
984
+ get loading() {
985
+ return F.get(a);
986
+ },
987
+ get onclick() {
988
+ return t.onPlaceOrder;
989
+ },
990
+ "data-testid": "checkout-place-order",
991
+ children: (e, a) => {
992
+ var o = F.comment(), c = F.first_child(o), l = (e) => {
993
+ var t = F.text();
994
+ F.template_effect(() => F.set_text(t, i().salesClosed || "Sales closed")), F.append(e, t);
995
+ }, u = (e) => {
996
+ var t = F.text();
997
+ F.template_effect(() => F.set_text(t, i().placeOrder || "Place order")), F.append(e, t);
998
+ }, d = (e) => {
999
+ var t = F.text();
1000
+ F.template_effect(() => F.set_text(t, i().placingOrder || "Placing order...")), F.append(e, t);
1001
+ }, f = (e) => {
1002
+ var t = F.text();
1003
+ F.template_effect(() => F.set_text(t, `${(i().completeOrder || "Complete order") ?? ""} · ${(i().free || "Free") ?? ""}`)), F.append(e, t);
1004
+ }, p = (e) => {
1005
+ var n = F.text();
1006
+ F.template_effect((e) => F.set_text(n, `${(i().placeOrder || "Place order") ?? ""} · ${e ?? ""}`), [() => t.orderTotals.total == null ? "—" : s(m(t.orderTotals.total))]), F.append(e, n);
1007
+ };
1008
+ F.if(c, (e) => {
1009
+ n() ? e(l) : r() ? e(u, 1) : t.processing ? e(d, 2) : t.isFreeOrder ? e(f, 3) : e(p, -1);
1010
+ }), F.append(e, o);
1011
+ },
1012
+ $$slots: { default: !0 }
1013
+ });
1014
+ }
1015
+ var M = F.sibling(re, 2), ie = (e) => {
1016
+ O(e, {
1017
+ size: "sm",
1018
+ color: "muted",
1019
+ children: (e, t) => {
1020
+ F.next();
1021
+ var n = F.text();
1022
+ F.template_effect(() => F.set_text(n, i().priceUnavailable || "We couldn't load the price for this order — refresh the page or contact the venue")), F.append(e, n);
1023
+ },
1024
+ $$slots: { default: !0 }
1025
+ });
1026
+ };
1027
+ F.if(M, (e) => {
1028
+ r() && e(ie);
1029
+ }), F.reset(D), F.append(e, p);
1030
+ },
1031
+ $$slots: { default: !0 }
1032
+ }), F.pop();
1033
+ }
1034
+ //#endregion
1035
+ //#region src/lib/public-calendar-flow/CheckoutMobileFooter.svelte
1036
+ var $ = F.from_html("<div class=\"px-4 pb-3 -mt-1\"><!></div>"), Ge = F.from_html("<div class=\"fixed bottom-0 left-0 right-0 bg-surface-primary border-t border-default shadow-lg\"><div class=\"px-4 pt-3\"><!></div> <div class=\"flex items-center justify-between gap-3 px-4 py-3\"><div class=\"flex-1 min-w-0\"><!></div> <!></div> <!></div>");
1037
+ function Ke(e, t) {
1038
+ F.push(t, !0);
1039
+ let n = F.prop(t, "saleClosed", 3, !1), r = F.prop(t, "priceUnavailable", 3, !1), i = F.prop(t, "labels", 3, oe), a = F.prop(t, "agreeTerms", 15, !1), o = F.prop(t, "termsError", 3, !1), c = F.prop(t, "termsUrl", 3, void 0), l = F.prop(t, "privacyUrl", 3, void 0), u = F.derived(() => t.orderTotals.lines.reduce((e, t) => e + t.quantity, 0));
1040
+ var d = Ge();
1041
+ let f;
1042
+ var h = F.child(d);
1043
+ Ve(F.child(h), {
1044
+ get showError() {
1045
+ return o();
1046
+ },
1047
+ get termsUrl() {
1048
+ return c();
1049
+ },
1050
+ get privacyUrl() {
1051
+ return l();
1052
+ },
1053
+ get labels() {
1054
+ return i();
1055
+ },
1056
+ get agreeTerms() {
1057
+ return a();
1058
+ },
1059
+ set agreeTerms(e) {
1060
+ a(e);
1061
+ }
1062
+ }), F.reset(h);
1063
+ var g = F.sibling(h, 2), _ = F.child(g), v = F.child(_);
1064
+ O(v, {
1065
+ size: "sm",
1066
+ weight: "semibold",
1067
+ class: "tabular-nums block",
1068
+ children: (e, n) => {
1069
+ var r = F.comment(), a = F.first_child(r), o = (e) => {
1070
+ var t = F.text();
1071
+ F.template_effect(() => F.set_text(t, `${F.get(u) ?? ""}
1072
+ ${(F.get(u) === 1 ? i().ticket || "ticket" : i().tickets || "tickets") ?? ""} · ${(i().free || "Free") ?? ""}`)), F.append(e, t);
1073
+ }, c = (e) => {
1074
+ var t = F.text("—");
1075
+ F.append(e, t);
1076
+ }, l = (e) => {
1077
+ var n = F.text();
1078
+ F.template_effect((e) => F.set_text(n, e), [() => s(m(t.orderTotals.total))]), F.append(e, n);
1079
+ };
1080
+ F.if(a, (e) => {
1081
+ t.isFreeOrder ? e(o) : t.orderTotals.total == null ? e(c, 1) : e(l, -1);
1082
+ }), F.append(e, r);
1083
+ },
1084
+ $$slots: { default: !0 }
1085
+ }), F.reset(_);
1086
+ var ee = F.sibling(_, 2);
1087
+ {
1088
+ let e = F.derived(() => t.processing || n() || r()), a = F.derived(() => t.processing && !n() && !r());
1089
+ x(ee, {
1090
+ variant: "default",
1091
+ size: "lg",
1092
+ get disabled() {
1093
+ return F.get(e);
1094
+ },
1095
+ get loading() {
1096
+ return F.get(a);
1097
+ },
1098
+ get onclick() {
1099
+ return t.onPlaceOrder;
1100
+ },
1101
+ class: "shrink-0 min-w-36",
1102
+ "data-testid": "checkout-place-order",
1103
+ children: (e, a) => {
1104
+ var o = F.comment(), s = F.first_child(o), c = (e) => {
1105
+ var t = F.text();
1106
+ F.template_effect(() => F.set_text(t, i().salesClosed || "Sales closed")), F.append(e, t);
1107
+ }, l = (e) => {
1108
+ var t = F.text();
1109
+ F.template_effect(() => F.set_text(t, i().placeOrder || "Place order")), F.append(e, t);
1110
+ }, u = (e) => {
1111
+ var t = F.text();
1112
+ F.template_effect(() => F.set_text(t, i().placingOrder || "Placing order...")), F.append(e, t);
1113
+ }, d = (e) => {
1114
+ var t = F.text();
1115
+ F.template_effect(() => F.set_text(t, i().completeOrder || "Complete order")), F.append(e, t);
1116
+ }, f = (e) => {
1117
+ var t = F.text();
1118
+ F.template_effect(() => F.set_text(t, i().placeOrder || "Place order")), F.append(e, t);
1119
+ };
1120
+ F.if(s, (e) => {
1121
+ n() ? e(c) : r() ? e(l, 1) : t.processing ? e(u, 2) : t.isFreeOrder ? e(d, 3) : e(f, -1);
1122
+ }), F.append(e, o);
1123
+ },
1124
+ $$slots: { default: !0 }
1125
+ });
1126
+ }
1127
+ F.reset(g);
1128
+ var y = F.sibling(g, 2), b = (e) => {
1129
+ var t = $(), n = F.child(t);
1130
+ O(n, {
1131
+ size: "sm",
1132
+ color: "muted",
1133
+ children: (e, t) => {
1134
+ F.next();
1135
+ var n = F.text();
1136
+ F.template_effect(() => F.set_text(n, i().priceUnavailable || "We couldn't load the price for this order — refresh the page or contact the venue")), F.append(e, n);
1137
+ },
1138
+ $$slots: { default: !0 }
1139
+ }), F.reset(t), F.append(e, t);
1140
+ };
1141
+ F.if(y, (e) => {
1142
+ r() && e(b);
1143
+ }), F.reset(d), F.template_effect(() => f = F.set_style(d, "padding-bottom: env(safe-area-inset-bottom, 0);", f, { "z-index": p.overlay })), F.append(e, d), F.pop();
1144
+ }
1145
+ //#endregion
1146
+ //#region src/lib/public-calendar-flow/Checkout.svelte
1147
+ var qe = e("CheckoutMain"), Je = F.from_html("<p> </p> <p class=\"tone-secondary mb-6\"> </p> <!>", 1), Ye = F.from_html(" <!>", 1), Xe = F.from_html("<div class=\"mt-4 pt-4 border-t border-default\"><!></div>"), Ze = F.from_html("<div class=\"max-w-6xl\"><div class=\"vc-box-grid-wide grid-cols-booking-split gap-8 items-start\"><div class=\"pb-24 md:pb-0\"><!> <section class=\"vc-box-mobile mobile-order-summary border-default bg-surface-secondary mt-6 svelte-1opgb11\"><div class=\"flex gap-3 pb-3 mb-3 border-b border-default\"><div class=\"shrink-0 w-20 h-14 rounded-lg overflow-hidden bg-surface-tertiary\"><!></div> <div class=\"flex-1 min-w-0\"><!> <div class=\"flex items-center gap-1.5 mt-1\"><!> <!></div> <div class=\"mt-0.5\"><!></div></div></div> <!> <!></section></div> <div class=\"vc-box-desktop-block sticky top-6\"><!></div></div></div> <div class=\"vc-box-mobile\"><!></div>", 1), Qe = F.from_html("<p class=\"timer-modal-hint type-caption svelte-1opgb11\"> </p>"), $e = F.from_html("<div class=\"timer-modal svelte-1opgb11\" id=\"warning-modal-description\"><div class=\"timer-modal-icon warning svelte-1opgb11\"><!></div> <h3 id=\"warning-modal-title\" class=\"timer-modal-title type-subheading svelte-1opgb11\"> </h3> <p class=\"timer-modal-text type-body svelte-1opgb11\"> </p> <!></div>"), et = F.from_html("<!> <p class=\"timer-modal-hint type-caption svelte-1opgb11\"> </p>", 1), tt = F.from_html("<div class=\"timer-modal-actions svelte-1opgb11\"><!></div>"), nt = F.from_html("<div class=\"timer-modal svelte-1opgb11\" id=\"expired-modal-description\"><div class=\"timer-modal-icon expired svelte-1opgb11\"><!></div> <h3 id=\"expired-modal-title\" class=\"timer-modal-title type-subheading svelte-1opgb11\"> </h3> <p class=\"timer-modal-text type-body svelte-1opgb11\"> </p></div>"), rt = F.from_html("<!> <!>", 1), it = F.from_html("<div class=\"timer-modal svelte-1opgb11\" id=\"sale-closed-modal-description\"><div class=\"timer-modal-icon expired svelte-1opgb11\"><!></div> <h3 id=\"sale-closed-modal-title\" class=\"timer-modal-title type-subheading svelte-1opgb11\"><!></h3> <p class=\"timer-modal-text type-body svelte-1opgb11\"><!></p></div>"), at = F.from_html("<div class=\"w-full min-h-screen bg-surface-primary text-color-primary\"><div class=\"max-w-6xl mx-auto px-4 py-6 md:px-6 md:py-8\"><!></div> <!> <!> <!></div>");
1148
+ function ot(e, n) {
1149
+ F.push(n, !0);
1150
+ let i = de(), s = F.derived(() => P.current), l = F.prop(n, "config", 3, void 0), u = F.prop(n, "onPlaceOrder", 3, void 0), p = F.prop(n, "onBack", 3, void 0), m = F.prop(n, "onRetryExpired", 3, void 0), h = F.prop(n, "onExtendSession", 3, void 0), v = F.prop(n, "stripe", 3, void 0), S = F.prop(n, "paymentIntent", 3, void 0), C = F.prop(n, "elements", 15, void 0), T = F.prop(n, "paymentError", 3, null), E = F.prop(n, "eventEnded", 15, !1), ae = F.prop(n, "serverTotalsUnavailable", 3, !1), oe = F.prop(n, "repricing", 3, !1), pe = F.prop(n, "labels", 19, () => ({})), me = F.prop(n, "locale", 3, void 0), he = F.prop(n, "giftCard", 3, void 0), I = F.prop(n, "checkoutAddOns", 19, () => []), _e = F.prop(n, "addOnQuantities", 19, () => ({})), ve = F.prop(n, "addOnTicketCount", 3, 0), ye = F.prop(n, "onAddOnQuantityChange", 3, void 0), xe = F.prop(n, "addOnsBusy", 3, !1), Ce = F.prop(n, "addOnsFailed", 3, !1), we = F.prop(n, "addOnsError", 3, null), L = F.derived(() => re(me(), pe())), R = F.derived(() => !l());
1151
+ F.user_effect(() => {
1152
+ if (F.get(R)) return P.options = i, P.current = "default", P.isActive = !0, () => {
1153
+ P.isActive = !1, P.options = [];
1154
+ };
1155
+ });
1156
+ function Te(e) {
1157
+ switch (e) {
1158
+ case "free": return {
1159
+ event: le,
1160
+ lines: [{
1161
+ ticketId: y(201),
1162
+ ticketName: "Free Entry",
1163
+ quantity: 2,
1164
+ unitPrice: 0,
1165
+ fee: 0,
1166
+ subtotal: 0
1167
+ }],
1168
+ timerStart: 900,
1169
+ promoApplied: !1,
1170
+ promoDiscount: 0,
1171
+ forceExpired: !1
1172
+ };
1173
+ case "donation": return {
1174
+ event: N,
1175
+ lines: [{
1176
+ ticketId: y(401),
1177
+ ticketName: "Donation",
1178
+ quantity: 1,
1179
+ unitPrice: 25,
1180
+ fee: 0,
1181
+ subtotal: 25
1182
+ }, {
1183
+ ticketId: y(402),
1184
+ ticketName: "Standard Admission",
1185
+ quantity: 1,
1186
+ unitPrice: 30,
1187
+ fee: 3,
1188
+ subtotal: 30
1189
+ }],
1190
+ timerStart: 900,
1191
+ promoApplied: !1,
1192
+ promoDiscount: 0,
1193
+ forceExpired: !1
1194
+ };
1195
+ case "registration": return {
1196
+ event: ue,
1197
+ lines: [{
1198
+ ticketId: y(301),
1199
+ ticketName: "Workshop Seat",
1200
+ quantity: 1,
1201
+ unitPrice: 75,
1202
+ fee: 7.5,
1203
+ subtotal: 75
1204
+ }],
1205
+ timerStart: 900,
1206
+ promoApplied: !1,
1207
+ promoDiscount: 0,
1208
+ forceExpired: !1
1209
+ };
1210
+ case "timer_warning": return {
1211
+ event: ce,
1212
+ lines: [{
1213
+ ticketId: y(101),
1214
+ ticketName: "General Admission",
1215
+ quantity: 2,
1216
+ unitPrice: 25,
1217
+ fee: 2.5,
1218
+ subtotal: 50
1219
+ }, {
1220
+ ticketId: y(102),
1221
+ ticketName: "VIP Front Row",
1222
+ quantity: 1,
1223
+ unitPrice: 55,
1224
+ fee: 5.5,
1225
+ subtotal: 55
1226
+ }],
1227
+ timerStart: 33,
1228
+ promoApplied: !1,
1229
+ promoDiscount: 0,
1230
+ forceExpired: !1
1231
+ };
1232
+ case "expired": return {
1233
+ event: ce,
1234
+ lines: [{
1235
+ ticketId: y(101),
1236
+ ticketName: "General Admission",
1237
+ quantity: 2,
1238
+ unitPrice: 25,
1239
+ fee: 2.5,
1240
+ subtotal: 50
1241
+ }, {
1242
+ ticketId: y(102),
1243
+ ticketName: "VIP Front Row",
1244
+ quantity: 1,
1245
+ unitPrice: 55,
1246
+ fee: 5.5,
1247
+ subtotal: 55
1248
+ }],
1249
+ timerStart: 0,
1250
+ promoApplied: !1,
1251
+ promoDiscount: 0,
1252
+ forceExpired: !0
1253
+ };
1254
+ case "promo": return {
1255
+ event: ce,
1256
+ lines: [{
1257
+ ticketId: y(101),
1258
+ ticketName: "General Admission",
1259
+ quantity: 2,
1260
+ unitPrice: 25,
1261
+ fee: 2.5,
1262
+ subtotal: 50
1263
+ }, {
1264
+ ticketId: y(102),
1265
+ ticketName: "VIP Front Row",
1266
+ quantity: 1,
1267
+ unitPrice: 55,
1268
+ fee: 5.5,
1269
+ subtotal: 55
1270
+ }],
1271
+ timerStart: 900,
1272
+ promoApplied: !0,
1273
+ promoDiscount: 10,
1274
+ forceExpired: !1
1275
+ };
1276
+ default: return {
1277
+ event: ce,
1278
+ lines: [{
1279
+ ticketId: y(101),
1280
+ ticketName: "General Admission",
1281
+ quantity: 2,
1282
+ unitPrice: 25,
1283
+ fee: 2.5,
1284
+ subtotal: 50
1285
+ }, {
1286
+ ticketId: y(102),
1287
+ ticketName: "VIP Front Row",
1288
+ quantity: 1,
1289
+ unitPrice: 55,
1290
+ fee: 5.5,
1291
+ subtotal: 55
1292
+ }],
1293
+ timerStart: 900,
1294
+ promoApplied: !1,
1295
+ promoDiscount: 0,
1296
+ forceExpired: !1
1297
+ };
1298
+ }
1299
+ }
1300
+ let z = F.derived(() => F.get(R) ? Te(F.get(s)) : l()), B = F.state(null), Ee = ge(() => !!l()?.deadlineAt), V = F.state(900), H = F.state(!1), U = F.state(!1), De = F.state(0), W = F.state(!1), Oe = F.state(!1);
1301
+ F.user_effect(() => {
1302
+ F.get(W) && F.set(Oe, !1);
1303
+ });
1304
+ let G = k(), K = k(), ke = F.state(!1), q = F.state(!1), J = F.state(3), Y = F.state(!0), Ae = F.derived(() => F.get(z)?.remainingExtensions), je = F.derived(() => F.get(z)?.canExtend);
1305
+ F.user_effect(() => {
1306
+ F.get(Ae) !== void 0 && F.set(J, F.get(Ae), !0);
1307
+ }), F.user_effect(() => {
1308
+ F.get(je) !== void 0 && F.set(Y, F.get(je), !0);
1309
+ });
1310
+ let Me = F.state(null), Ne = k(), Pe = F.derived(() => F.get(R) ? 0 : F.get(z).event?.id ?? 0);
1311
+ F.user_effect(() => {
1312
+ let e = F.get(Pe);
1313
+ if (e) return M(e, {
1314
+ onUnavailable: (e) => {
1315
+ F.get(Me) || (F.set(Me, e === "postponed" ? "postponed" : "canceled", !0), Ne.open());
1316
+ },
1317
+ onAvailable: () => {
1318
+ F.set(Me, null), Ne.close();
1319
+ }
1320
+ });
1321
+ });
1322
+ let Fe = F.state(F.proxy(b()));
1323
+ F.user_effect(() => {
1324
+ let e = setInterval(() => {
1325
+ F.set(Fe, b(), !0);
1326
+ }, 1e3);
1327
+ return () => clearInterval(e);
1328
+ });
1329
+ let Ie = F.derived(() => ie(F.get(z).event, F.get(Fe)));
1330
+ F.user_effect(() => {
1331
+ E(F.get(Ie));
1332
+ });
1333
+ let X = F.derived(() => F.get(Me) ?? (F.get(Ie) ? "ended" : null)), Le = F.derived(() => (() => {
1334
+ let e = Math.floor(F.get(V) / 60), t = F.get(V) % 60;
1335
+ return `${e.toString().padStart(2, "0")}:${t.toString().padStart(2, "0")}`;
1336
+ })()), Z = F.derived(() => (() => {
1337
+ let e = F.get(z).lines;
1338
+ if (e.some((e) => e.subtotal == null)) return {
1339
+ lines: e,
1340
+ subtotal: null,
1341
+ fees: null,
1342
+ taxes: 0,
1343
+ total: null,
1344
+ promoDiscount: 0,
1345
+ giftCardAmount: 0
1346
+ };
1347
+ if (F.get(z).serverTotals) return {
1348
+ lines: e,
1349
+ subtotal: F.get(z).serverTotals.subtotal,
1350
+ fees: F.get(z).serverTotals.fees,
1351
+ taxes: F.get(z).serverTotals.taxes,
1352
+ total: F.get(z).serverTotals.total,
1353
+ promoDiscount: F.get(z).serverTotals.promoDiscount,
1354
+ giftCardAmount: F.get(z).serverTotals.giftCardAmount
1355
+ };
1356
+ let t = r(e.reduce((e, t) => e + (t.subtotal == null ? 0 : t.subtotal), 0)), n = F.get(z).promoApplied ? F.get(z).promoDiscount : 0;
1357
+ if (F.get(R)) {
1358
+ let i = fe(e, F.get(z).event.venue), a = r(Math.max(0, t - n)), o = A(a + i, F.get(z).event.venue.taxPercentage);
1359
+ return {
1360
+ lines: e,
1361
+ subtotal: t,
1362
+ fees: i,
1363
+ taxes: o,
1364
+ total: r(a + i + o),
1365
+ promoDiscount: n,
1366
+ giftCardAmount: 0
1367
+ };
1368
+ }
1369
+ return t === 0 ? {
1370
+ lines: e,
1371
+ subtotal: 0,
1372
+ fees: 0,
1373
+ taxes: 0,
1374
+ total: 0,
1375
+ promoDiscount: n,
1376
+ giftCardAmount: 0
1377
+ } : {
1378
+ lines: e,
1379
+ subtotal: t,
1380
+ fees: null,
1381
+ taxes: 0,
1382
+ total: null,
1383
+ promoDiscount: n,
1384
+ giftCardAmount: 0
1385
+ };
1386
+ })()), ze = F.derived(() => F.get(R) || !!F.get(z).serverTotals && F.get(Z).total !== null), Q = F.derived(() => F.get(Z).total === 0 && F.get(Z).subtotal === 0), Be = F.derived(() => F.get(z).event.isRegistrationEvent), Ve = F.derived(() => !F.get(R) && !F.get(Q) && !oe() && (ae() || F.get(Z).total === null)), He = !1;
1387
+ F.user_effect(() => {
1388
+ let e = F.get(z);
1389
+ if (!He) {
1390
+ He = !0;
1391
+ let t = e.deadlineAt ? ee(e.deadlineAt) : null;
1392
+ t === null ? (F.set(B, Date.now() + e.timerStart * 1e3), F.set(V, e.timerStart, !0)) : (F.set(B, t.getTime(), !0), F.set(V, $(), !0)), F.set(H, e.forceExpired, !0);
1393
+ }
1394
+ });
1395
+ function Ue() {
1396
+ return typeof document > "u" ? null : Se(be.CHECKOUT_CARTID);
1397
+ }
1398
+ function $() {
1399
+ return F.get(B) == null ? F.get(V) : Math.max(0, Math.floor((F.get(B) - Date.now()) / 1e3));
1400
+ }
1401
+ async function Ge() {
1402
+ let e = Ue();
1403
+ if (e) try {
1404
+ let t = await w(e);
1405
+ if (t.notFound) {
1406
+ F.set(B, Date.now(), !0), F.set(V, 0), F.set(H, !0), G.close(), K.open();
1407
+ return;
1408
+ }
1409
+ t.expiresAt && (F.set(B, _(t.expiresAt).getTime(), !0), F.set(V, $(), !0));
1410
+ } catch {}
1411
+ }
1412
+ F.user_effect(() => {
1413
+ if (F.get(H)) return;
1414
+ if (ge(() => F.get(V)) <= 0) {
1415
+ F.set(H, !0), G.close(), K.open();
1416
+ return;
1417
+ }
1418
+ let e = () => {
1419
+ let e = $();
1420
+ if (F.set(V, e, !0), e % 10 == 0 && F.get(B) != null && typeof localStorage < "u") try {
1421
+ let e = Ue();
1422
+ e && localStorage.setItem(`checkout-expiry-${e}`, String(F.get(B)));
1423
+ } catch {}
1424
+ e > 0 && e % 30 == 0 && Ge(), e <= 30 && e > 0 && !F.get(ke) && (G.open(), F.set(ke, !0)), e <= 0 && (F.set(H, !0), G.close(), K.open(), clearInterval(t));
1425
+ }, t = setInterval(e, 1e3), n = (t) => {
1426
+ t?.type === "pageshow" && t.persisted && F.set(U, !1), typeof document < "u" && document.visibilityState === "visible" && (e(), Ge());
1427
+ };
1428
+ return typeof document < "u" && document.addEventListener("visibilitychange", n), typeof window < "u" && window.addEventListener("pageshow", n), Ee || Ge(), () => {
1429
+ clearInterval(t), typeof document < "u" && document.removeEventListener("visibilitychange", n), typeof window < "u" && window.removeEventListener("pageshow", n);
1430
+ };
1431
+ });
1432
+ function ot() {
1433
+ p() && p()();
1434
+ }
1435
+ function st() {
1436
+ if (typeof document > "u") return;
1437
+ let e = Array.from(document.querySelectorAll("[data-terms-gate] input[type=\"checkbox\"]"));
1438
+ (e.find((e) => e.getClientRects().length > 0) ?? e[0])?.focus();
1439
+ }
1440
+ function ct() {
1441
+ if (!F.get(X)) {
1442
+ if (!F.get(W)) {
1443
+ F.set(Oe, !0), st();
1444
+ return;
1445
+ }
1446
+ F.set(De, F.get(De) + 1);
1447
+ }
1448
+ }
1449
+ function lt(e) {
1450
+ if (!F.get(U) && !F.get(X)) {
1451
+ if (F.set(U, !0), u()) {
1452
+ u()(e).catch(() => {}).finally(() => {
1453
+ F.set(U, !1);
1454
+ });
1455
+ return;
1456
+ }
1457
+ setTimeout(() => {
1458
+ F.set(U, !1);
1459
+ }, 1500);
1460
+ }
1461
+ }
1462
+ function ut() {
1463
+ K.close(), m() && m()();
1464
+ }
1465
+ async function dt() {
1466
+ if (!(!F.get(Y) || F.get(q))) {
1467
+ F.set(q, !0);
1468
+ try {
1469
+ if (h()) {
1470
+ let e = await h()();
1471
+ if (e == null) throw new te("Extension request returned no result", 0, {
1472
+ endpoint: "extend-session",
1473
+ method: "POST"
1474
+ });
1475
+ typeof e == "object" ? (e.newExpiryTime ? F.set(B, _(e.newExpiryTime).getTime(), !0) : F.set(B, Date.now() + 9e5), F.set(V, $(), !0), e.remainingExtensions !== void 0 && (F.set(J, e.remainingExtensions, !0), F.set(Y, F.get(J) > 0))) : (F.set(B, Date.now() + 9e5), F.set(V, $(), !0));
1476
+ } else F.set(B, Date.now() + 9e5), F.set(V, $(), !0);
1477
+ F.set(H, !1), F.set(ke, !1), G.close(), K.close();
1478
+ } catch (e) {
1479
+ qe.error("Failed to extend session:", e), G.close(), F.set(Y, !1), F.get(V) <= 0 && (F.set(H, !0), K.open());
1480
+ } finally {
1481
+ F.set(q, !1);
1482
+ }
1483
+ }
1484
+ }
1485
+ function ft() {
1486
+ G.close();
1487
+ }
1488
+ var pt = at(), mt = F.child(pt), ht = F.child(mt), gt = (e) => {
1489
+ ne(e, {
1490
+ visible: !0,
1491
+ politeness: "assertive",
1492
+ class: "text-center py-12",
1493
+ children: (e, n) => {
1494
+ var r = Je(), i = F.first_child(r), a = F.child(i, !0);
1495
+ F.reset(i);
1496
+ var o = F.sibling(i, 2), s = F.child(o, !0);
1497
+ F.reset(o);
1498
+ var c = F.sibling(o, 2);
1499
+ {
1500
+ let e = F.derived(() => F.get(L).goBackToEventDetails || "Go back to event details");
1501
+ x(c, {
1502
+ variant: "default",
1503
+ onclick: ot,
1504
+ get "aria-label"() {
1505
+ return F.get(e);
1506
+ },
1507
+ children: (e, t) => {
1508
+ F.next();
1509
+ var n = F.text();
1510
+ F.template_effect(() => F.set_text(n, F.get(L).goBack || "Go back")), F.append(e, n);
1511
+ },
1512
+ $$slots: { default: !0 }
1513
+ });
1514
+ }
1515
+ F.template_effect(() => {
1516
+ F.set_class(i, 1, `mb-2 ${t.h2 ?? ""}`, "svelte-1opgb11"), F.set_text(a, F.get(L).thisEventHasEnded || "This event has ended"), F.set_text(s, F.get(L).ticketsNoLongerAvailable || "Tickets are no longer available for this event");
1517
+ }), F.append(e, r);
1518
+ },
1519
+ $$slots: { default: !0 }
1520
+ });
1521
+ }, _t = (e) => {
1522
+ var t = Ze(), n = F.first_child(t), r = F.child(n), i = F.child(r), s = F.child(i);
1523
+ Re(s, {
1524
+ get event() {
1525
+ return F.get(z).event;
1526
+ },
1527
+ get orderTotals() {
1528
+ return F.get(Z);
1529
+ },
1530
+ get timerSeconds() {
1531
+ return F.get(V);
1532
+ },
1533
+ get isExpired() {
1534
+ return F.get(H);
1535
+ },
1536
+ get isRegistration() {
1537
+ return F.get(Be);
1538
+ },
1539
+ get isFreeOrder() {
1540
+ return F.get(Q);
1541
+ },
1542
+ get promoApplied() {
1543
+ return F.get(z).promoApplied;
1544
+ },
1545
+ get promoDiscount() {
1546
+ return F.get(z).promoDiscount;
1547
+ },
1548
+ onBack: ot,
1549
+ onPlaceOrder: lt,
1550
+ get processing() {
1551
+ return F.get(U);
1552
+ },
1553
+ get submitRequested() {
1554
+ return F.get(De);
1555
+ },
1556
+ get stripe() {
1557
+ return v();
1558
+ },
1559
+ get paymentIntent() {
1560
+ return S();
1561
+ },
1562
+ get paymentError() {
1563
+ return T();
1564
+ },
1565
+ get labels() {
1566
+ return F.get(L);
1567
+ },
1568
+ get giftCard() {
1569
+ return he();
1570
+ },
1571
+ get checkoutAddOns() {
1572
+ return I();
1573
+ },
1574
+ get addOnQuantities() {
1575
+ return _e();
1576
+ },
1577
+ get addOnTicketCount() {
1578
+ return ve();
1579
+ },
1580
+ get onAddOnQuantityChange() {
1581
+ return ye();
1582
+ },
1583
+ get addOnsBusy() {
1584
+ return xe();
1585
+ },
1586
+ get addOnsFailed() {
1587
+ return Ce();
1588
+ },
1589
+ get addOnsError() {
1590
+ return we();
1591
+ },
1592
+ get elements() {
1593
+ return C();
1594
+ },
1595
+ set elements(e) {
1596
+ C(e);
1597
+ }
1598
+ });
1599
+ var c = F.sibling(s, 2), l = F.child(c), u = F.child(l), f = F.child(u);
1600
+ g(f, {
1601
+ get src() {
1602
+ return F.get(z).event.imageUrl;
1603
+ },
1604
+ get fallback() {
1605
+ return se;
1606
+ },
1607
+ get alt() {
1608
+ return F.get(z).event.title;
1609
+ },
1610
+ class: "w-full h-full"
1611
+ }), F.reset(u);
1612
+ var p = F.sibling(u, 2), m = F.child(p);
1613
+ O(m, {
1614
+ size: "sm",
1615
+ weight: "semibold",
1616
+ leading: "tight",
1617
+ class: "block line-clamp-2",
1618
+ children: (e, t) => {
1619
+ F.next();
1620
+ var n = F.text();
1621
+ F.template_effect(() => F.set_text(n, F.get(z).event.title)), F.append(e, n);
1622
+ },
1623
+ $$slots: { default: !0 }
1624
+ });
1625
+ var h = F.sibling(m, 2), _ = F.child(h);
1626
+ d(_, {
1627
+ size: "16",
1628
+ class: "shrink-0 icon-muted"
1629
+ });
1630
+ var ee = F.sibling(_, 2);
1631
+ O(ee, {
1632
+ size: "xs",
1633
+ color: "muted",
1634
+ children: (e, t) => {
1635
+ F.next();
1636
+ var n = Ye(), r = F.first_child(n), i = F.sibling(r), s = (e) => {
1637
+ var t = F.text();
1638
+ F.template_effect((e) => F.set_text(t, `· ${e ?? ""}`), [() => a(F.get(z).event.startDateTime, F.get(z).event.timezone, me())]), F.append(e, t);
1639
+ };
1640
+ F.if(i, (e) => {
1641
+ F.get(z).event.displayStartTime !== !1 && e(s);
1642
+ }), F.template_effect((e) => F.set_text(r, `${e ?? ""} `), [() => o(F.get(z).event.startDateTime, F.get(z).event.timezone, me())]), F.append(e, n);
1643
+ },
1644
+ $$slots: { default: !0 }
1645
+ }), F.reset(h);
1646
+ var y = F.sibling(h, 2), b = F.child(y);
1647
+ O(b, {
1648
+ size: "xs",
1649
+ color: "muted",
1650
+ class: "block",
1651
+ children: (e, t) => {
1652
+ F.next();
1653
+ var n = F.text();
1654
+ F.template_effect(() => F.set_text(n, F.get(z).event.venue.name)), F.append(e, n);
1655
+ },
1656
+ $$slots: { default: !0 }
1657
+ }), F.reset(y), F.reset(p), F.reset(l);
1658
+ var x = F.sibling(l, 2);
1659
+ j(x, {
1660
+ get orderTotals() {
1661
+ return F.get(Z);
1662
+ },
1663
+ get labels() {
1664
+ return F.get(L);
1665
+ }
1666
+ });
1667
+ var w = F.sibling(x, 2), te = (e) => {
1668
+ var t = Xe(), n = F.child(t);
1669
+ O(n, {
1670
+ size: "xs",
1671
+ color: "muted",
1672
+ leading: "relaxed",
1673
+ class: "block",
1674
+ children: (e, t) => {
1675
+ F.next();
1676
+ var n = F.text();
1677
+ F.template_effect(() => F.set_text(n, F.get(z).event.disclaimer)), F.append(e, n);
1678
+ },
1679
+ $$slots: { default: !0 }
1680
+ }), F.reset(t), F.append(e, t);
1681
+ };
1682
+ F.if(w, (e) => {
1683
+ F.get(z).event.disclaimer && e(te);
1684
+ }), F.reset(c), F.reset(i);
1685
+ var ne = F.sibling(i, 2), E = F.child(ne);
1686
+ {
1687
+ let e = F.derived(() => F.get(U) || !F.get(Q) && !F.get(ze)), t = F.derived(() => !!F.get(X));
1688
+ We(E, {
1689
+ get event() {
1690
+ return F.get(z).event;
1691
+ },
1692
+ get orderTotals() {
1693
+ return F.get(Z);
1694
+ },
1695
+ get isFreeOrder() {
1696
+ return F.get(Q);
1697
+ },
1698
+ get priceUnavailable() {
1699
+ return F.get(Ve);
1700
+ },
1701
+ onPlaceOrder: ct,
1702
+ get processing() {
1703
+ return F.get(e);
1704
+ },
1705
+ get saleClosed() {
1706
+ return F.get(t);
1707
+ },
1708
+ get labels() {
1709
+ return F.get(L);
1710
+ },
1711
+ get locale() {
1712
+ return me();
1713
+ },
1714
+ get termsError() {
1715
+ return F.get(Oe);
1716
+ },
1717
+ get agreeTerms() {
1718
+ return F.get(W);
1719
+ },
1720
+ set agreeTerms(e) {
1721
+ F.set(W, e, !0);
1722
+ }
1723
+ });
1724
+ }
1725
+ F.reset(ne), F.reset(r), F.reset(n);
1726
+ var D = F.sibling(n, 2), k = F.child(D);
1727
+ {
1728
+ let e = F.derived(() => F.get(U) || !F.get(Q) && !F.get(ze)), t = F.derived(() => !!F.get(X));
1729
+ Ke(k, {
1730
+ get orderTotals() {
1731
+ return F.get(Z);
1732
+ },
1733
+ get isFreeOrder() {
1734
+ return F.get(Q);
1735
+ },
1736
+ get priceUnavailable() {
1737
+ return F.get(Ve);
1738
+ },
1739
+ onPlaceOrder: ct,
1740
+ get processing() {
1741
+ return F.get(e);
1742
+ },
1743
+ get saleClosed() {
1744
+ return F.get(t);
1745
+ },
1746
+ get labels() {
1747
+ return F.get(L);
1748
+ },
1749
+ get termsError() {
1750
+ return F.get(Oe);
1751
+ },
1752
+ get agreeTerms() {
1753
+ return F.get(W);
1754
+ },
1755
+ set agreeTerms(e) {
1756
+ F.set(W, e, !0);
1757
+ }
1758
+ });
1759
+ }
1760
+ F.reset(D), F.append(e, t);
1761
+ };
1762
+ F.if(ht, (e) => {
1763
+ F.get(Ie) ? e(gt) : e(_t, -1);
1764
+ }), F.reset(mt);
1765
+ var vt = F.sibling(mt, 2), yt = (e) => {
1766
+ D(e, {
1767
+ class: "micdrop",
1768
+ open: !0,
1769
+ oncancel: () => G.close(),
1770
+ size: "sm",
1771
+ "aria-labelledby": "warning-modal-title",
1772
+ body: (e) => {
1773
+ var t = $e(), n = F.child(t), r = F.child(n);
1774
+ f(r, { size: "32" }), F.reset(n);
1775
+ var i = F.sibling(n, 2), a = F.child(i, !0);
1776
+ F.reset(i);
1777
+ var o = F.sibling(i, 2), s = F.child(o, !0);
1778
+ F.reset(o);
1779
+ var c = F.sibling(o, 2), l = (e) => {
1780
+ var t = Qe(), n = F.child(t, !0);
1781
+ F.reset(t), F.template_effect((e) => F.set_text(n, e), [() => (F.get(L).extensionsRemaining || "Extensions remaining: {count}").replaceAll("{count}", String(F.get(J)))]), F.append(e, t);
1782
+ };
1783
+ F.if(c, (e) => {
1784
+ F.get(Y) && F.get(J) > 0 && e(l);
1785
+ }), F.reset(t), F.template_effect((e) => {
1786
+ F.set_text(a, F.get(L).sessionExpiringSoon || "Session expiring soon"), F.set_text(s, e);
1787
+ }, [() => (F.get(L).sessionExpiringSoonMessage || "Your checkout session will expire in {time}. Your selected tickets will be released back to inventory").replaceAll("{time}", F.get(Le))]), F.append(e, t);
1788
+ },
1789
+ footer: (e) => {
1790
+ var t = tt(), n = F.child(t), r = (e) => {
1791
+ x(e, {
1792
+ variant: "default",
1793
+ size: "lg",
1794
+ class: "w-full",
1795
+ onclick: dt,
1796
+ get disabled() {
1797
+ return F.get(q);
1798
+ },
1799
+ get loading() {
1800
+ return F.get(q);
1801
+ },
1802
+ children: (e, t) => {
1803
+ F.next();
1804
+ var n = F.text();
1805
+ F.template_effect(() => F.set_text(n, F.get(q) ? F.get(L).extendingSession || "Extending..." : F.get(L).continueCheckout || "Continue checkout")), F.append(e, n);
1806
+ },
1807
+ $$slots: { default: !0 }
1808
+ });
1809
+ }, i = (e) => {
1810
+ var t = et(), n = F.first_child(t);
1811
+ x(n, {
1812
+ variant: "default",
1813
+ size: "lg",
1814
+ class: "w-full",
1815
+ onclick: ft,
1816
+ children: (e, t) => {
1817
+ F.next();
1818
+ var n = F.text();
1819
+ F.template_effect(() => F.set_text(n, F.get(L).okIllHurry || "OK, I'll hurry")), F.append(e, n);
1820
+ },
1821
+ $$slots: { default: !0 }
1822
+ });
1823
+ var r = F.sibling(n, 2), i = F.child(r, !0);
1824
+ F.reset(r), F.template_effect(() => F.set_text(i, F.get(L).maxExtensionsReached || "Maximum extensions reached")), F.append(e, t);
1825
+ };
1826
+ F.if(n, (e) => {
1827
+ F.get(Y) ? e(r) : e(i, -1);
1828
+ }), F.reset(t), F.append(e, t);
1829
+ },
1830
+ $$slots: {
1831
+ body: !0,
1832
+ footer: !0
1833
+ }
1834
+ });
1835
+ };
1836
+ F.if(vt, (e) => {
1837
+ G.isOpen && e(yt);
1838
+ });
1839
+ var bt = F.sibling(vt, 2), xt = (e) => {
1840
+ D(e, {
1841
+ class: "micdrop",
1842
+ open: !0,
1843
+ oncancel: () => K.close(),
1844
+ size: "sm",
1845
+ "aria-labelledby": "expired-modal-title",
1846
+ body: (e) => {
1847
+ var t = nt(), n = F.child(t), r = F.child(n);
1848
+ c(r, { size: "32" }), F.reset(n);
1849
+ var i = F.sibling(n, 2), a = F.child(i, !0);
1850
+ F.reset(i);
1851
+ var o = F.sibling(i, 2), s = F.child(o, !0);
1852
+ F.reset(o), F.reset(t), F.template_effect(() => {
1853
+ F.set_text(a, F.get(Y) ? F.get(L).wantToKeepTickets || "Want to keep your tickets?" : F.get(L).sessionExpired || "Session expired"), F.set_text(s, F.get(Y) ? F.get(L).sessionExpiredMessage || "Your checkout session has expired and your selected tickets have been released" : F.get(L).reservationTimedOut || "Your reservation has timed out. Please select your tickets again to continue");
1854
+ }), F.append(e, t);
1855
+ },
1856
+ footer: (e) => {
1857
+ var t = tt(), n = F.child(t), r = (e) => {
1858
+ var t = rt(), n = F.first_child(t);
1859
+ x(n, {
1860
+ variant: "default",
1861
+ size: "lg",
1862
+ class: "w-full",
1863
+ onclick: dt,
1864
+ get disabled() {
1865
+ return F.get(q);
1866
+ },
1867
+ get loading() {
1868
+ return F.get(q);
1869
+ },
1870
+ children: (e, t) => {
1871
+ F.next();
1872
+ var n = F.text();
1873
+ F.template_effect(() => F.set_text(n, F.get(q) ? F.get(L).extendingSession || "Extending..." : F.get(L).keepMyTickets || "Keep my tickets")), F.append(e, n);
1874
+ },
1875
+ $$slots: { default: !0 }
1876
+ });
1877
+ var r = F.sibling(n, 2);
1878
+ x(r, {
1879
+ variant: "alternative",
1880
+ size: "lg",
1881
+ class: "w-full",
1882
+ onclick: ut,
1883
+ children: (e, t) => {
1884
+ F.next();
1885
+ var n = F.text();
1886
+ F.template_effect(() => F.set_text(n, F.get(L).selectTicketsAgain || "Select tickets again")), F.append(e, n);
1887
+ },
1888
+ $$slots: { default: !0 }
1889
+ }), F.append(e, t);
1890
+ }, i = (e) => {
1891
+ x(e, {
1892
+ variant: "default",
1893
+ size: "lg",
1894
+ class: "w-full",
1895
+ onclick: ut,
1896
+ children: (e, t) => {
1897
+ F.next();
1898
+ var n = F.text();
1899
+ F.template_effect(() => F.set_text(n, F.get(L).selectTicketsAgain || "Select tickets again")), F.append(e, n);
1900
+ },
1901
+ $$slots: { default: !0 }
1902
+ });
1903
+ };
1904
+ F.if(n, (e) => {
1905
+ F.get(Y) ? e(r) : e(i, -1);
1906
+ }), F.reset(t), F.append(e, t);
1907
+ },
1908
+ $$slots: {
1909
+ body: !0,
1910
+ footer: !0
1911
+ }
1912
+ });
1913
+ };
1914
+ F.if(bt, (e) => {
1915
+ K.isOpen && e(xt);
1916
+ });
1917
+ var St = F.sibling(bt, 2), Ct = (e) => {
1918
+ D(e, {
1919
+ class: "micdrop",
1920
+ open: !0,
1921
+ oncancel: () => Ne.close(),
1922
+ size: "sm",
1923
+ "aria-labelledby": "sale-closed-modal-title",
1924
+ body: (e) => {
1925
+ var t = it(), n = F.child(t), r = F.child(n);
1926
+ f(r, { size: "32" }), F.reset(n);
1927
+ var i = F.sibling(n, 2), a = F.child(i), o = (e) => {
1928
+ var t = F.text();
1929
+ F.template_effect(() => F.set_text(t, F.get(L).eventCanceledTitle || "This event was canceled")), F.append(e, t);
1930
+ }, s = (e) => {
1931
+ var t = F.text();
1932
+ F.template_effect(() => F.set_text(t, F.get(L).eventPostponedTitle || "Ticket sales are paused")), F.append(e, t);
1933
+ };
1934
+ F.if(a, (e) => {
1935
+ F.get(X) === "canceled" ? e(o) : e(s, -1);
1936
+ }), F.reset(i);
1937
+ var c = F.sibling(i, 2), l = F.child(c), u = (e) => {
1938
+ var t = F.text();
1939
+ F.template_effect(() => F.set_text(t, F.get(L).eventCanceledMessage || "This event has been canceled, so tickets are no longer for sale. You have not been charged")), F.append(e, t);
1940
+ }, d = (e) => {
1941
+ var t = F.text();
1942
+ F.template_effect(() => F.set_text(t, F.get(L).eventPostponedMessage || "Ticket sales for this event have been paused. You have not been charged. Check back soon or contact the organizer")), F.append(e, t);
1943
+ };
1944
+ F.if(l, (e) => {
1945
+ F.get(X) === "canceled" ? e(u) : e(d, -1);
1946
+ }), F.reset(c), F.reset(t), F.append(e, t);
1947
+ },
1948
+ footer: (e) => {
1949
+ var t = tt(), n = F.child(t);
1950
+ x(n, {
1951
+ variant: "default",
1952
+ size: "lg",
1953
+ class: "w-full",
1954
+ onclick: ut,
1955
+ children: (e, t) => {
1956
+ F.next();
1957
+ var n = F.text();
1958
+ F.template_effect(() => F.set_text(n, F.get(L).backToEvents || "Back to events")), F.append(e, n);
1959
+ },
1960
+ $$slots: { default: !0 }
1961
+ }), F.reset(t), F.append(e, t);
1962
+ },
1963
+ $$slots: {
1964
+ body: !0,
1965
+ footer: !0
1966
+ }
1967
+ });
1968
+ };
1969
+ F.if(St, (e) => {
1970
+ Ne.isOpen && e(Ct);
1971
+ }), F.reset(pt), F.append(e, pt), F.pop();
1972
+ }
1973
+ //#endregion
1974
+ export { ot as default, Se as n, be as t };