@getmicdrop/venue-calendar 4.3.135 → 4.3.136

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