@getmicdrop/venue-calendar 4.0.97 → 4.0.99
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.
- package/dist/{CartView-C3CM_of4.js → CartView-tv4und9V.js} +95 -95
- package/dist/{CartView-C3CM_of4.js.map → CartView-tv4und9V.js.map} +1 -1
- package/dist/{Checkout-DlwrJNFl.js → Checkout-CrQVcvtD.js} +39 -39
- package/dist/{Checkout-DlwrJNFl.js.map → Checkout-CrQVcvtD.js.map} +1 -1
- package/dist/{Checkout-C-M3GkqC.js → Checkout-DUJ7VdA-.js} +164 -164
- package/dist/{Checkout-C-M3GkqC.js.map → Checkout-DUJ7VdA-.js.map} +1 -1
- package/dist/{CheckoutTimer-BGpTXav2.js → CheckoutTimer-BfnQg93S.js} +5 -5
- package/dist/{CheckoutTimer-BGpTXav2.js.map → CheckoutTimer-BfnQg93S.js.map} +1 -1
- package/dist/{ClockIcon-CbUBc37W.js → ClockIcon-DjCISuIf.js} +2 -2
- package/dist/{ClockIcon-CbUBc37W.js.map → ClockIcon-DjCISuIf.js.map} +1 -1
- package/dist/{CollectionView-C8jLl4ZF.js → CollectionView-Biiix8cT.js} +19 -19
- package/dist/{CollectionView-C8jLl4ZF.js.map → CollectionView-Biiix8cT.js.map} +1 -1
- package/dist/{Event-BIxmGbtN.js → Event-BWseA69F.js} +1725 -1556
- package/dist/{Event-BIxmGbtN.js.map → Event-BWseA69F.js.map} +1 -1
- package/dist/EventPage-O62RxjBR.js +932 -0
- package/dist/EventPage-O62RxjBR.js.map +1 -0
- package/dist/{Heading-BftmeVf1.js → Heading-FnTNhRjb.js} +10 -10
- package/dist/{Heading-BftmeVf1.js.map → Heading-FnTNhRjb.js.map} +1 -1
- package/dist/{ScarcityBadge-Cj7ihi0s.js → ScarcityBadge-Bp9nPCkW.js} +12 -12
- package/dist/{ScarcityBadge-Cj7ihi0s.js.map → ScarcityBadge-Bp9nPCkW.js.map} +1 -1
- package/dist/{SeriesPage-LSLEq-VI.js → SeriesPage-DV_Hl3f3.js} +7 -7
- package/dist/{SeriesPage-LSLEq-VI.js.map → SeriesPage-DV_Hl3f3.js.map} +1 -1
- package/dist/{Spinner-D6pWJ-VV.js → Spinner-DbxCS7ox.js} +5 -5
- package/dist/{Spinner-D6pWJ-VV.js.map → Spinner-DbxCS7ox.js.map} +1 -1
- package/dist/{Success-BwzdTBRN.js → Success-BtO9Bx_h.js} +23 -23
- package/dist/{Success-BwzdTBRN.js.map → Success-BtO9Bx_h.js.map} +1 -1
- package/dist/{Text-DvAmz2c4.js → Text-CfTsoCGL.js} +9 -9
- package/dist/{Text-DvAmz2c4.js.map → Text-CfTsoCGL.js.map} +1 -1
- package/dist/{VenueCalendar-ZIexgvtu.js → VenueCalendar-DFh-Rx1y.js} +6802 -6147
- package/dist/VenueCalendar-DFh-Rx1y.js.map +1 -0
- package/dist/{ViewTicketsEmbed-Ex-uXFdv.js → ViewTicketsEmbed-CW03gjAW.js} +80 -80
- package/dist/{ViewTicketsEmbed-Ex-uXFdv.js.map → ViewTicketsEmbed-CW03gjAW.js.map} +1 -1
- package/dist/api/api/index.d.ts +2 -2
- package/dist/api/api/waitlist.d.ts +20 -0
- package/dist/api/api.cjs +1 -1
- package/dist/api/api.cjs.map +1 -1
- package/dist/api/api.mjs +192 -164
- package/dist/api/api.mjs.map +1 -1
- package/dist/{data-toggle-store.svelte-CIisuuz8.js → data-toggle-store.svelte-Z_v3PDQs.js} +2 -2
- package/dist/{data-toggle-store.svelte-CIisuuz8.js.map → data-toggle-store.svelte-Z_v3PDQs.js.map} +1 -1
- package/dist/{labels-CGPu9d2k.js → labels-S2uvwo7v.js} +112 -101
- package/dist/{labels-CGPu9d2k.js.map → labels-S2uvwo7v.js.map} +1 -1
- package/dist/{modalManager.svelte-CDhdha2m.js → modalManager.svelte-CjWoFGCr.js} +2 -2
- package/dist/{modalManager.svelte-CDhdha2m.js.map → modalManager.svelte-CjWoFGCr.js.map} +1 -1
- package/dist/{transform-ati8Nk1h.js → transform-DoUBgKbP.js} +8 -8
- package/dist/{transform-ati8Nk1h.js.map → transform-DoUBgKbP.js.map} +1 -1
- package/dist/venue-calendar.css +1 -1
- package/dist/venue-calendar.es.js +15 -15
- package/dist/venue-calendar.iife.js +45 -43
- package/dist/venue-calendar.iife.js.map +1 -1
- package/dist/venue-calendar.umd.js +41 -39
- package/dist/venue-calendar.umd.js.map +1 -1
- package/package.json +180 -179
- package/dist/EventPage-CfFdjshw.js +0 -566
- package/dist/EventPage-CfFdjshw.js.map +0 -1
- package/dist/VenueCalendar-ZIexgvtu.js.map +0 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import "svelte/internal/disclose-version";
|
|
2
2
|
import * as e from "svelte/internal/client";
|
|
3
3
|
import { onMount as mt, onDestroy as it, untrack as Ze } from "svelte";
|
|
4
|
-
import { u as ft,
|
|
5
|
-
import { C as dt, O as
|
|
6
|
-
import { d as Ce, c as
|
|
7
|
-
import { C as Nt, M as He } from "./CheckoutTimer-
|
|
8
|
-
import { H as je, C as At } from "./Heading-
|
|
9
|
-
import { T as ge, I as ct } from "./Text-
|
|
10
|
-
import { c as Ke } from "./modalManager.svelte-
|
|
11
|
-
import { C as qt } from "./ClockIcon-
|
|
12
|
-
var It = e.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>'),
|
|
4
|
+
import { u as ft, aw as pt, p as st, ax as _t, ay as ht, i as Je, f as he, I as _e, W as Qe, U as bt, V as lt, X as nt, z as ot, ah as xt, az as yt, Q as Ue, _ as ce, L as kt, aA as wt } from "./VenueCalendar-DFh-Rx1y.js";
|
|
5
|
+
import { C as dt, O as Xe, m as Pt, c as Tt } from "./labels-S2uvwo7v.js";
|
|
6
|
+
import { d as Ce, c as Ye, a as Et, m as St, b as Ct } from "./data-toggle-store.svelte-Z_v3PDQs.js";
|
|
7
|
+
import { C as Nt, M as He } from "./CheckoutTimer-BfnQg93S.js";
|
|
8
|
+
import { H as je, C as At } from "./Heading-FnTNhRjb.js";
|
|
9
|
+
import { T as ge, I as ct } from "./Text-CfTsoCGL.js";
|
|
10
|
+
import { c as Ke } from "./modalManager.svelte-CjWoFGCr.js";
|
|
11
|
+
import { C as qt } from "./ClockIcon-DjCISuIf.js";
|
|
12
|
+
var It = e.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>'), zt = e.from_svg('<polyline points="160 208 80 128 160 48" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"></polyline>'), Ot = e.from_svg('<svg aria-hidden="true" viewBox="0 0 256 256" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!></svg>');
|
|
13
13
|
function Dt(c, t) {
|
|
14
14
|
e.push(t, !0);
|
|
15
15
|
let k = e.prop(t, "size", 3, "24"), m = e.prop(t, "color", 3, "currentColor"), A = e.prop(t, "class", 3, "");
|
|
16
16
|
const P = ft();
|
|
17
17
|
let a = e.derived(() => t.weight ?? P?.weight ?? "regular");
|
|
18
|
-
var w =
|
|
19
|
-
let
|
|
18
|
+
var w = Ot();
|
|
19
|
+
let z;
|
|
20
20
|
var y = e.child(w);
|
|
21
21
|
{
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
e.append(L,
|
|
22
|
+
var Y = (L) => {
|
|
23
|
+
var O = It();
|
|
24
|
+
e.append(L, O);
|
|
25
25
|
}, j = (L) => {
|
|
26
|
-
var
|
|
27
|
-
e.append(L,
|
|
26
|
+
var O = zt();
|
|
27
|
+
e.append(L, O);
|
|
28
28
|
};
|
|
29
29
|
e.if(y, (L) => {
|
|
30
|
-
e.get(a) === "fill" ? L(
|
|
30
|
+
e.get(a) === "fill" ? L(Y) : L(j, -1);
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
e.reset(w), e.template_effect(() => {
|
|
34
|
-
e.set_class(w, 0, e.clsx(A())), e.set_attribute(w, "width", k()), e.set_attribute(w, "height", k()),
|
|
34
|
+
e.set_class(w, 0, e.clsx(A())), e.set_attribute(w, "width", k()), e.set_attribute(w, "height", k()), z = e.set_style(w, "", z, { color: m() });
|
|
35
35
|
}), e.append(c, w), e.pop();
|
|
36
36
|
}
|
|
37
37
|
st("cookies");
|
|
@@ -50,13 +50,13 @@ function Ft(c) {
|
|
|
50
50
|
return Rt()[c] || null;
|
|
51
51
|
}
|
|
52
52
|
var Lt = e.from_html('<span class="type-label tone-primary"><!></span>'), $t = e.from_html('<label><input type="checkbox"/> <!></label>');
|
|
53
|
-
function
|
|
53
|
+
function Ve(c, t) {
|
|
54
54
|
e.push(t, !0);
|
|
55
|
-
let k = e.prop(t, "checked", 15, !1), m = e.prop(t, "indeterminate", 3, !1), A = e.prop(t, "value", 3, ""), P = e.prop(t, "name", 3, ""), a = e.prop(t, "disabled", 3, !1), w = e.prop(t, "color", 3, "blue"),
|
|
55
|
+
let k = e.prop(t, "checked", 15, !1), m = e.prop(t, "indeterminate", 3, !1), A = e.prop(t, "value", 3, ""), P = e.prop(t, "name", 3, ""), a = e.prop(t, "disabled", 3, !1), w = e.prop(t, "color", 3, "blue"), z = e.prop(t, "class", 3, ""), y = e.state(void 0);
|
|
56
56
|
e.user_effect(() => {
|
|
57
57
|
e.get(y) && (e.get(y).indeterminate = m());
|
|
58
58
|
});
|
|
59
|
-
function
|
|
59
|
+
function Y() {
|
|
60
60
|
t.onchange?.({ checked: k(), value: A() });
|
|
61
61
|
}
|
|
62
62
|
const j = {
|
|
@@ -67,7 +67,7 @@ function Ge(c, t) {
|
|
|
67
67
|
orange: "text-accent-warning",
|
|
68
68
|
yellow: "text-accent-warning"
|
|
69
69
|
};
|
|
70
|
-
let L = e.derived(() => j[w()] || j.blue),
|
|
70
|
+
let L = e.derived(() => j[w()] || j.blue), O = e.derived(() => [
|
|
71
71
|
"w-4 h-4 shrink-0 rounded",
|
|
72
72
|
"border-stroke-primary",
|
|
73
73
|
"focus:outline-none focus:ring-0 focus:ring-offset-0 focus:shadow-none focus-visible:outline-none",
|
|
@@ -87,8 +87,8 @@ function Ge(c, t) {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
e.reset(n), e.template_effect(() => {
|
|
90
|
-
e.set_class(n, 1, `inline-flex items-start gap-2 ${a() ? "cursor-not-allowed" : "cursor-pointer"} select-none ${
|
|
91
|
-
}), e.delegated("change", g,
|
|
90
|
+
e.set_class(n, 1, `inline-flex items-start gap-2 ${a() ? "cursor-not-allowed" : "cursor-pointer"} select-none ${z() ?? ""}`), e.set_attribute(n, "id", t.id), e.set_attribute(g, "name", P()), g.disabled = a(), e.set_attribute(g, "aria-label", t["aria-label"]), e.set_attribute(g, "aria-labelledby", t["aria-labelledby"]), e.set_attribute(g, "aria-describedby", t["aria-describedby"]), e.set_class(g, 1, e.clsx(e.get(O))), Z !== (Z = A()) && (g.value = (g.__value = A()) ?? "");
|
|
91
|
+
}), e.delegated("change", g, Y), e.delegated("click", g, function(...d) {
|
|
92
92
|
t.onclick?.apply(this, d);
|
|
93
93
|
}), e.event("focus", g, function(...d) {
|
|
94
94
|
t.onfocus?.apply(this, d);
|
|
@@ -101,11 +101,11 @@ function Ge(c, t) {
|
|
|
101
101
|
}), e.bind_checked(g, k), e.append(c, n), e.pop();
|
|
102
102
|
}
|
|
103
103
|
e.delegate(["change", "click", "keydown", "keyup"]);
|
|
104
|
-
const
|
|
105
|
-
function
|
|
106
|
-
return
|
|
104
|
+
const Ut = /* @__PURE__ */ new Map();
|
|
105
|
+
function Yt(c) {
|
|
106
|
+
return Ut.set(`${c.kind}:${c.key}`, c), c.key;
|
|
107
107
|
}
|
|
108
|
-
const et =
|
|
108
|
+
const et = Yt({
|
|
109
109
|
key: "micdrop:ui:theme",
|
|
110
110
|
kind: "local"
|
|
111
111
|
}), ut = "theme";
|
|
@@ -131,7 +131,7 @@ function Bt() {
|
|
|
131
131
|
const c = _t(et), t = jt();
|
|
132
132
|
return c === "dark" || c === "light" ? (t && tt(), c) : t ? (ht(et, t), tt(), t) : null;
|
|
133
133
|
}
|
|
134
|
-
const
|
|
134
|
+
const Ge = typeof window < "u";
|
|
135
135
|
function Ht(c) {
|
|
136
136
|
if (typeof window > "u") return !1;
|
|
137
137
|
try {
|
|
@@ -149,7 +149,7 @@ function Ht(c) {
|
|
|
149
149
|
function Kt(c) {
|
|
150
150
|
return c ? "night" : "stripe";
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Vt(c = {}) {
|
|
153
153
|
const {
|
|
154
154
|
containerSelector: t = '[data-theme="dark"], [data-theme="light"], .micdrop, [data-theme]',
|
|
155
155
|
watchChanges: k = !0,
|
|
@@ -161,11 +161,11 @@ function Gt(c = {}) {
|
|
|
161
161
|
}
|
|
162
162
|
return mt(() => {
|
|
163
163
|
if (a(), k && typeof MutationObserver < "u") {
|
|
164
|
-
const w = document.querySelectorAll(t),
|
|
164
|
+
const w = document.querySelectorAll(t), z = document.documentElement;
|
|
165
165
|
P = new MutationObserver(() => {
|
|
166
166
|
a();
|
|
167
|
-
}), P.observe(
|
|
168
|
-
P?.observe(
|
|
167
|
+
}), P.observe(z, { attributes: !0, attributeFilter: ["class", "data-theme"] }), w.forEach((Y) => {
|
|
168
|
+
P?.observe(Y, { attributes: !0, attributeFilter: ["class", "data-theme"] });
|
|
169
169
|
}), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", a);
|
|
170
170
|
}
|
|
171
171
|
}), it(() => {
|
|
@@ -178,14 +178,14 @@ function Gt(c = {}) {
|
|
|
178
178
|
refresh: a
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
var
|
|
181
|
+
var Gt = e.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>'), Wt = e.from_html('<section class="space-y-5"><!> <!></section>'), Qt = e.from_html('<div class="free-order-notice border-default bg-surface-secondary svelte-12l1urf"><!> <div class="mt-1"><!></div></div>'), rt = e.from_html('<p class="type-body text-color-muted py-2"> </p>'), Xt = e.from_html("<div></div> <!>", 1), at = e.from_html('<p class="type-body text-accent-danger mt-2"> </p>'), Zt = e.from_html("<!> <!> <!>", 1), Jt = e.from_html('<!> <!> <div class="grid grid-cols-2 gap-4"><!> <!></div> <!>', 1), er = e.from_html('<div class="flex items-center gap-1.5"><!> <!></div>'), tr = e.from_html('<div class="checkout-form-panel space-y-6 bg-surface-secondary border-default svelte-12l1urf"><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> <!> <section class="space-y-4"><!></section> <section class="space-y-2"><!> <!></section></div>');
|
|
182
182
|
function rr(c, t) {
|
|
183
183
|
e.push(t, !0);
|
|
184
184
|
let k = e.prop(t, "stripe", 3, void 0), m = e.prop(t, "paymentIntent", 3, void 0), A = e.prop(t, "elements", 15, void 0), P = e.prop(t, "paymentError", 3, ""), a = e.prop(t, "labels", 19, () => ({}));
|
|
185
|
-
const w =
|
|
186
|
-
let
|
|
185
|
+
const w = Ge ? Vt() : { current: "stripe" };
|
|
186
|
+
let z = e.state(null), y = null, Y = e.state(null);
|
|
187
187
|
function j() {
|
|
188
|
-
if (!(!
|
|
188
|
+
if (!(!Ge || !k() || !m() || !e.get(z))) {
|
|
189
189
|
if (y) {
|
|
190
190
|
try {
|
|
191
191
|
y.destroy();
|
|
@@ -196,7 +196,7 @@ function rr(c, t) {
|
|
|
196
196
|
A(k().elements({
|
|
197
197
|
clientSecret: m(),
|
|
198
198
|
appearance: { theme: w.current }
|
|
199
|
-
})), y = A().create("payment"), y.mount(e.get(
|
|
199
|
+
})), y = A().create("payment"), y.mount(e.get(z)), e.set(Y, m());
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
function L() {
|
|
@@ -207,29 +207,29 @@ function rr(c, t) {
|
|
|
207
207
|
}
|
|
208
208
|
y = null;
|
|
209
209
|
}
|
|
210
|
-
e.set(
|
|
210
|
+
e.set(Y, null);
|
|
211
211
|
}
|
|
212
212
|
e.user_effect(() => {
|
|
213
|
-
k() && m() && e.get(
|
|
213
|
+
k() && m() && e.get(z) && m() !== e.get(Y) ? j() : (!k() || !m()) && e.get(Y) && L();
|
|
214
214
|
}), e.user_effect(() => {
|
|
215
|
-
if (e.get(
|
|
215
|
+
if (e.get(Y) && A() && w.current)
|
|
216
216
|
try {
|
|
217
217
|
A().update({ appearance: { theme: w.current } });
|
|
218
218
|
} catch {
|
|
219
219
|
}
|
|
220
220
|
}), it(() => {
|
|
221
|
-
y && (y.destroy(), y = null), e.set(
|
|
221
|
+
y && (y.destroy(), y = null), e.set(Y, null);
|
|
222
222
|
});
|
|
223
|
-
let
|
|
223
|
+
let O = e.state(""), n = e.state(""), g = e.state(""), Z = e.state(!1), o = e.state(!1), h = e.state(""), d = e.state(""), f = e.state(""), u = e.state(e.proxy([])), ve = e.derived(() => t.isFreeOrder || t.orderTotals.total === 0), $ = e.state(!1), v = e.derived(() => (() => {
|
|
224
224
|
if (!e.get($)) return {};
|
|
225
225
|
const r = {};
|
|
226
|
-
if (e.get(
|
|
226
|
+
if (e.get(O).trim() || (r.firstName = a().firstNameRequired || "First name is required"), e.get(n).trim() || (r.lastName = a().lastNameRequired || "Last name is required"), e.get(g).trim() ? Je(e.get(g)) || (r.email = a().emailInvalid || "Enter a valid email address") : r.email = a().emailRequired || "Email is required", !e.get(ve) && !k() && (e.get(h).trim() || (r.cardNumber = a().cardNumberRequired || "Card number is required"), e.get(d).trim() || (r.cardExpiry = a().expiryRequired || "Expiry date is required"), e.get(f).trim() || (r.cardCvc = a().cvcRequired || "CVC is required")), e.get(o) || (r.agreeTerms = a().mustAgreeTerms || "You must agree to the terms"), t.isRegistration)
|
|
227
227
|
for (let l = 0; l < e.get(u).length; l++) {
|
|
228
228
|
const s = e.get(u)[l];
|
|
229
|
-
s.sameAsPurchaser || (s.firstName.trim() || (r[`attendee_${l}_firstName`] = "First name is required"), s.lastName.trim() || (r[`attendee_${l}_lastName`] = "Last name is required"), s.email.trim() ?
|
|
229
|
+
s.sameAsPurchaser || (s.firstName.trim() || (r[`attendee_${l}_firstName`] = "First name is required"), s.lastName.trim() || (r[`attendee_${l}_lastName`] = "Last name is required"), s.email.trim() ? Je(s.email) || (r[`attendee_${l}_email`] = a().emailInvalidShort || "Enter a valid email") : r[`attendee_${l}_email`] = a().emailRequired || "Email is required");
|
|
230
230
|
}
|
|
231
231
|
return r;
|
|
232
|
-
})()),
|
|
232
|
+
})()), J = e.derived(() => Object.keys(e.get(v)).length > 0), V = e.derived(() => t.timerSeconds > 0 && t.timerSeconds <= 120);
|
|
233
233
|
e.user_effect(() => {
|
|
234
234
|
if (t.isRegistration) {
|
|
235
235
|
const r = t.orderTotals.lines.reduce((l, s) => l + s.quantity, 0);
|
|
@@ -255,7 +255,7 @@ function rr(c, t) {
|
|
|
255
255
|
e.get(u).map((s, T) => T !== r ? s : {
|
|
256
256
|
...s,
|
|
257
257
|
sameAsPurchaser: l,
|
|
258
|
-
firstName: l ? e.get(
|
|
258
|
+
firstName: l ? e.get(O) : s.firstName,
|
|
259
259
|
lastName: l ? e.get(n) : s.lastName,
|
|
260
260
|
email: l ? e.get(g) : s.email
|
|
261
261
|
}),
|
|
@@ -263,23 +263,23 @@ function rr(c, t) {
|
|
|
263
263
|
);
|
|
264
264
|
}
|
|
265
265
|
function B() {
|
|
266
|
-
e.set($, !0), !e.get(
|
|
267
|
-
firstName: e.get(
|
|
266
|
+
e.set($, !0), !e.get(J) && t.onPlaceOrder({
|
|
267
|
+
firstName: e.get(O),
|
|
268
268
|
lastName: e.get(n),
|
|
269
269
|
email: e.get(g),
|
|
270
270
|
keepMeUpdated: e.get(Z),
|
|
271
271
|
attendees: t.isRegistration ? e.get(u).map((r) => ({
|
|
272
|
-
firstName: r.sameAsPurchaser ? e.get(
|
|
272
|
+
firstName: r.sameAsPurchaser ? e.get(O) : r.firstName,
|
|
273
273
|
lastName: r.sameAsPurchaser ? e.get(n) : r.lastName,
|
|
274
274
|
email: r.sameAsPurchaser ? e.get(g) : r.email,
|
|
275
275
|
sameAsPurchaser: r.sameAsPurchaser
|
|
276
276
|
})) : void 0
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
|
-
var oe = tr(), fe = e.child(oe),
|
|
279
|
+
var oe = tr(), fe = e.child(oe), G = e.child(fe);
|
|
280
280
|
{
|
|
281
281
|
let r = e.derived(() => a().goBack || "Go back");
|
|
282
|
-
he(
|
|
282
|
+
he(G, {
|
|
283
283
|
variant: "icon",
|
|
284
284
|
size: "icon-sm",
|
|
285
285
|
get onclick() {
|
|
@@ -294,13 +294,13 @@ function rr(c, t) {
|
|
|
294
294
|
$$slots: { default: !0 }
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
|
-
var
|
|
298
|
-
Nt(
|
|
297
|
+
var U = e.sibling(G, 2);
|
|
298
|
+
Nt(U, {
|
|
299
299
|
get seconds() {
|
|
300
300
|
return t.timerSeconds;
|
|
301
301
|
},
|
|
302
302
|
get isUrgent() {
|
|
303
|
-
return e.get(
|
|
303
|
+
return e.get(V);
|
|
304
304
|
}
|
|
305
305
|
}), e.reset(fe);
|
|
306
306
|
var be = e.sibling(fe, 2), xe = e.child(be);
|
|
@@ -333,10 +333,10 @@ function rr(c, t) {
|
|
|
333
333
|
return e.get(T);
|
|
334
334
|
},
|
|
335
335
|
get value() {
|
|
336
|
-
return e.get(
|
|
336
|
+
return e.get(O);
|
|
337
337
|
},
|
|
338
338
|
set value(M) {
|
|
339
|
-
e.set(
|
|
339
|
+
e.set(O, M, !0);
|
|
340
340
|
}
|
|
341
341
|
});
|
|
342
342
|
}
|
|
@@ -393,7 +393,7 @@ function rr(c, t) {
|
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
395
|
var qe = e.sibling(ye, 2);
|
|
396
|
-
|
|
396
|
+
Ve(qe, {
|
|
397
397
|
get checked() {
|
|
398
398
|
return e.get(Z);
|
|
399
399
|
},
|
|
@@ -424,7 +424,7 @@ function rr(c, t) {
|
|
|
424
424
|
});
|
|
425
425
|
var T = e.sibling(s, 2);
|
|
426
426
|
e.each(T, 17, () => e.get(u), e.index, (M, _, q) => {
|
|
427
|
-
var W =
|
|
427
|
+
var W = Gt(), R = e.child(W), b = e.child(R);
|
|
428
428
|
ge(b, {
|
|
429
429
|
size: "sm",
|
|
430
430
|
weight: "semibold",
|
|
@@ -437,7 +437,7 @@ function rr(c, t) {
|
|
|
437
437
|
$$slots: { default: !0 }
|
|
438
438
|
});
|
|
439
439
|
var E = e.sibling(b, 2);
|
|
440
|
-
|
|
440
|
+
Ve(E, {
|
|
441
441
|
get checked() {
|
|
442
442
|
return e.get(_).sameAsPurchaser;
|
|
443
443
|
},
|
|
@@ -449,7 +449,7 @@ function rr(c, t) {
|
|
|
449
449
|
},
|
|
450
450
|
$$slots: { default: !0 }
|
|
451
451
|
}), e.reset(R);
|
|
452
|
-
var
|
|
452
|
+
var X = e.sibling(R, 2), re = e.child(X), Q = e.child(re);
|
|
453
453
|
{
|
|
454
454
|
let ae = e.derived(() => a().firstName || "First name"), me = e.derived(() => a().firstName || "First name"), ie = e.derived(() => e.get(_).sameAsPurchaser ? "" : e.get(v)[`attendee_${q}_firstName`] ?? ""), ke = e.derived(() => !e.get(_).sameAsPurchaser && e.get(v)[`attendee_${q}_firstName`] ? "red" : "base");
|
|
455
455
|
_e(Q, {
|
|
@@ -535,14 +535,14 @@ function rr(c, t) {
|
|
|
535
535
|
}
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
|
-
e.reset(
|
|
538
|
+
e.reset(X), e.reset(W), e.append(M, W);
|
|
539
539
|
}), e.reset(l), e.append(r, l);
|
|
540
540
|
};
|
|
541
541
|
e.if(Re, (r) => {
|
|
542
542
|
t.isRegistration && e.get(u).length > 0 && r(Fe);
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
|
-
var Ie = e.sibling(Re, 2),
|
|
545
|
+
var Ie = e.sibling(Re, 2), ze = e.child(Ie);
|
|
546
546
|
{
|
|
547
547
|
var Le = (r) => {
|
|
548
548
|
var l = Qt(), s = e.child(l);
|
|
@@ -586,16 +586,16 @@ function rr(c, t) {
|
|
|
586
586
|
var T = e.sibling(s, 2);
|
|
587
587
|
{
|
|
588
588
|
var M = (R) => {
|
|
589
|
-
var b =
|
|
590
|
-
e.bind_this(E, (Q) => e.set(
|
|
591
|
-
var
|
|
589
|
+
var b = Xt(), E = e.first_child(b);
|
|
590
|
+
e.bind_this(E, (Q) => e.set(z, Q), () => e.get(z));
|
|
591
|
+
var X = e.sibling(E, 2);
|
|
592
592
|
{
|
|
593
593
|
var re = (Q) => {
|
|
594
594
|
var we = rt(), Se = e.child(we, !0);
|
|
595
595
|
e.reset(we), e.template_effect(() => e.set_text(Se, a().loadingPaymentForm || "Loading secure payment form...")), e.append(Q, we);
|
|
596
596
|
};
|
|
597
|
-
e.if(
|
|
598
|
-
e.get(
|
|
597
|
+
e.if(X, (Q) => {
|
|
598
|
+
e.get(Y) || Q(re);
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
601
|
e.append(R, b);
|
|
@@ -604,7 +604,7 @@ function rr(c, t) {
|
|
|
604
604
|
e.reset(b), e.template_effect(() => e.set_text(E, a().loadingPaymentForm || "Loading secure payment form...")), e.append(R, b);
|
|
605
605
|
};
|
|
606
606
|
e.if(T, (R) => {
|
|
607
|
-
|
|
607
|
+
Ge ? R(M) : R(_, -1);
|
|
608
608
|
});
|
|
609
609
|
}
|
|
610
610
|
var q = e.sibling(T, 2);
|
|
@@ -618,22 +618,22 @@ function rr(c, t) {
|
|
|
618
618
|
});
|
|
619
619
|
}
|
|
620
620
|
e.append(r, l);
|
|
621
|
-
},
|
|
622
|
-
var l =
|
|
621
|
+
}, Oe = (r) => {
|
|
622
|
+
var l = Jt(), s = e.first_child(l);
|
|
623
623
|
je(s, {
|
|
624
624
|
level: 2,
|
|
625
625
|
size: "lg",
|
|
626
626
|
weight: "semibold",
|
|
627
627
|
children: (b, E) => {
|
|
628
628
|
e.next();
|
|
629
|
-
var
|
|
630
|
-
e.append(b,
|
|
629
|
+
var X = e.text("Payment");
|
|
630
|
+
e.append(b, X);
|
|
631
631
|
},
|
|
632
632
|
$$slots: { default: !0 }
|
|
633
633
|
});
|
|
634
634
|
var T = e.sibling(s, 2);
|
|
635
635
|
{
|
|
636
|
-
let b = e.derived(() => a().cardNumber || "Card number"), E = e.derived(() => a().cardPlaceholder || "4242 4242 4242 4242"),
|
|
636
|
+
let b = e.derived(() => a().cardNumber || "Card number"), E = e.derived(() => a().cardPlaceholder || "4242 4242 4242 4242"), X = e.derived(() => e.get(v).cardNumber ?? ""), re = e.derived(() => e.get(v).cardNumber ? "red" : "base");
|
|
637
637
|
_e(T, {
|
|
638
638
|
get label() {
|
|
639
639
|
return e.get(b);
|
|
@@ -644,7 +644,7 @@ function rr(c, t) {
|
|
|
644
644
|
type: "creditCardNumber",
|
|
645
645
|
required: !0,
|
|
646
646
|
get errorText() {
|
|
647
|
-
return e.get(
|
|
647
|
+
return e.get(X);
|
|
648
648
|
},
|
|
649
649
|
get color() {
|
|
650
650
|
return e.get(re);
|
|
@@ -659,7 +659,7 @@ function rr(c, t) {
|
|
|
659
659
|
}
|
|
660
660
|
var M = e.sibling(T, 2), _ = e.child(M);
|
|
661
661
|
{
|
|
662
|
-
let b = e.derived(() => a().expiryDate || "Expiry date"), E = e.derived(() => a().expiryPlaceholder || "MM / YY"),
|
|
662
|
+
let b = e.derived(() => a().expiryDate || "Expiry date"), E = e.derived(() => a().expiryPlaceholder || "MM / YY"), X = e.derived(() => e.get(v).cardExpiry ?? ""), re = e.derived(() => e.get(v).cardExpiry ? "red" : "base");
|
|
663
663
|
_e(_, {
|
|
664
664
|
get label() {
|
|
665
665
|
return e.get(b);
|
|
@@ -669,7 +669,7 @@ function rr(c, t) {
|
|
|
669
669
|
},
|
|
670
670
|
required: !0,
|
|
671
671
|
get errorText() {
|
|
672
|
-
return e.get(
|
|
672
|
+
return e.get(X);
|
|
673
673
|
},
|
|
674
674
|
get color() {
|
|
675
675
|
return e.get(re);
|
|
@@ -684,7 +684,7 @@ function rr(c, t) {
|
|
|
684
684
|
}
|
|
685
685
|
var q = e.sibling(_, 2);
|
|
686
686
|
{
|
|
687
|
-
let b = e.derived(() => a().cvc || "CVC"), E = e.derived(() => a().cvcPlaceholder || "123"),
|
|
687
|
+
let b = e.derived(() => a().cvc || "CVC"), E = e.derived(() => a().cvcPlaceholder || "123"), X = e.derived(() => e.get(v).cardCvc ?? ""), re = e.derived(() => e.get(v).cardCvc ? "red" : "base");
|
|
688
688
|
_e(q, {
|
|
689
689
|
get label() {
|
|
690
690
|
return e.get(b);
|
|
@@ -695,7 +695,7 @@ function rr(c, t) {
|
|
|
695
695
|
required: !0,
|
|
696
696
|
maxlength: 4,
|
|
697
697
|
get errorText() {
|
|
698
|
-
return e.get(
|
|
698
|
+
return e.get(X);
|
|
699
699
|
},
|
|
700
700
|
get color() {
|
|
701
701
|
return e.get(re);
|
|
@@ -712,8 +712,8 @@ function rr(c, t) {
|
|
|
712
712
|
var W = e.sibling(M, 2);
|
|
713
713
|
{
|
|
714
714
|
var R = (b) => {
|
|
715
|
-
var E = at(),
|
|
716
|
-
e.reset(E), e.template_effect(() => e.set_text(
|
|
715
|
+
var E = at(), X = e.child(E, !0);
|
|
716
|
+
e.reset(E), e.template_effect(() => e.set_text(X, P())), e.append(b, E);
|
|
717
717
|
};
|
|
718
718
|
e.if(W, (b) => {
|
|
719
719
|
P() && b(R);
|
|
@@ -721,13 +721,13 @@ function rr(c, t) {
|
|
|
721
721
|
}
|
|
722
722
|
e.append(r, l);
|
|
723
723
|
};
|
|
724
|
-
e.if(
|
|
725
|
-
e.get(ve) ? r(Le) : k() && m() ? r(Be, 1) : r(
|
|
724
|
+
e.if(ze, (r) => {
|
|
725
|
+
e.get(ve) ? r(Le) : k() && m() ? r(Be, 1) : r(Oe, -1);
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
728
|
e.reset(Ie);
|
|
729
729
|
var Te = e.sibling(Ie, 2), Ee = e.child(Te);
|
|
730
|
-
|
|
730
|
+
Ve(Ee, {
|
|
731
731
|
get checked() {
|
|
732
732
|
return e.get(o);
|
|
733
733
|
},
|
|
@@ -773,8 +773,8 @@ function sr(c, t) {
|
|
|
773
773
|
padding: !1,
|
|
774
774
|
class: "flex flex-col max-h-[calc(100vh-1.5rem)] rounded-xl shadow-lg overflow-hidden bg-surface-secondary",
|
|
775
775
|
children: (A, P) => {
|
|
776
|
-
var a = ir(), w = e.first_child(a),
|
|
777
|
-
ct(
|
|
776
|
+
var a = ir(), w = e.first_child(a), z = e.child(w), y = e.child(z), Y = e.child(y);
|
|
777
|
+
ct(Y, {
|
|
778
778
|
get src() {
|
|
779
779
|
return t.event.imageUrl;
|
|
780
780
|
},
|
|
@@ -794,12 +794,12 @@ function sr(c, t) {
|
|
|
794
794
|
class: "block leading-tight line-clamp-2",
|
|
795
795
|
children: ($, v) => {
|
|
796
796
|
e.next();
|
|
797
|
-
var
|
|
798
|
-
e.template_effect(() => e.set_text(
|
|
797
|
+
var J = e.text();
|
|
798
|
+
e.template_effect(() => e.set_text(J, t.event.title)), e.append($, J);
|
|
799
799
|
},
|
|
800
800
|
$$slots: { default: !0 }
|
|
801
801
|
});
|
|
802
|
-
var
|
|
802
|
+
var O = e.sibling(L, 2), n = e.child(O);
|
|
803
803
|
dt(n, { size: "16", class: "shrink-0 icon-muted" });
|
|
804
804
|
var g = e.sibling(n, 2);
|
|
805
805
|
ge(g, {
|
|
@@ -807,7 +807,7 @@ function sr(c, t) {
|
|
|
807
807
|
color: "muted",
|
|
808
808
|
children: ($, v) => {
|
|
809
809
|
e.next();
|
|
810
|
-
var
|
|
810
|
+
var J = ar(), V = e.first_child(J), ne = e.sibling(V);
|
|
811
811
|
{
|
|
812
812
|
var te = (B) => {
|
|
813
813
|
var oe = e.text();
|
|
@@ -819,26 +819,26 @@ function sr(c, t) {
|
|
|
819
819
|
t.event.displayStartTime !== !1 && B(te);
|
|
820
820
|
});
|
|
821
821
|
}
|
|
822
|
-
e.template_effect((B) => e.set_text(
|
|
822
|
+
e.template_effect((B) => e.set_text(V, `${B ?? ""} `), [
|
|
823
823
|
() => lt(t.event.startDateTime, t.event.timezone)
|
|
824
|
-
]), e.append($,
|
|
824
|
+
]), e.append($, J);
|
|
825
825
|
},
|
|
826
826
|
$$slots: { default: !0 }
|
|
827
|
-
}), e.reset(
|
|
828
|
-
var Z = e.sibling(
|
|
827
|
+
}), e.reset(O);
|
|
828
|
+
var Z = e.sibling(O, 2), o = e.child(Z);
|
|
829
829
|
ge(o, {
|
|
830
830
|
size: "xs",
|
|
831
831
|
color: "muted",
|
|
832
832
|
class: "block",
|
|
833
833
|
children: ($, v) => {
|
|
834
834
|
e.next();
|
|
835
|
-
var
|
|
836
|
-
e.template_effect(() => e.set_text(
|
|
835
|
+
var J = e.text();
|
|
836
|
+
e.template_effect(() => e.set_text(J, t.event.venue.name)), e.append($, J);
|
|
837
837
|
},
|
|
838
838
|
$$slots: { default: !0 }
|
|
839
|
-
}), e.reset(Z), e.reset(j), e.reset(
|
|
839
|
+
}), e.reset(Z), e.reset(j), e.reset(z), e.reset(w);
|
|
840
840
|
var h = e.sibling(w, 2), d = e.child(h);
|
|
841
|
-
|
|
841
|
+
Xe(d, {
|
|
842
842
|
get orderTotals() {
|
|
843
843
|
return t.orderTotals;
|
|
844
844
|
},
|
|
@@ -848,7 +848,7 @@ function sr(c, t) {
|
|
|
848
848
|
}
|
|
849
849
|
}), e.reset(h);
|
|
850
850
|
var f = e.sibling(h, 2), u = e.child(f);
|
|
851
|
-
|
|
851
|
+
Xe(u, {
|
|
852
852
|
get orderTotals() {
|
|
853
853
|
return t.orderTotals;
|
|
854
854
|
},
|
|
@@ -873,27 +873,27 @@ function sr(c, t) {
|
|
|
873
873
|
get onclick() {
|
|
874
874
|
return t.onPlaceOrder;
|
|
875
875
|
},
|
|
876
|
-
children: (v,
|
|
877
|
-
var
|
|
876
|
+
children: (v, J) => {
|
|
877
|
+
var V = e.comment(), ne = e.first_child(V);
|
|
878
878
|
{
|
|
879
|
-
var te = (
|
|
880
|
-
var
|
|
881
|
-
e.template_effect(() => e.set_text(
|
|
882
|
-
}, B = (
|
|
883
|
-
var
|
|
884
|
-
e.template_effect(() => e.set_text(
|
|
885
|
-
}, oe = (
|
|
886
|
-
var
|
|
887
|
-
e.template_effect(() => e.set_text(
|
|
888
|
-
}, fe = (
|
|
889
|
-
var
|
|
890
|
-
e.template_effect((be) => e.set_text(
|
|
879
|
+
var te = (G) => {
|
|
880
|
+
var U = e.text();
|
|
881
|
+
e.template_effect(() => e.set_text(U, m().salesClosed || "Sales closed")), e.append(G, U);
|
|
882
|
+
}, B = (G) => {
|
|
883
|
+
var U = e.text();
|
|
884
|
+
e.template_effect(() => e.set_text(U, m().placingOrder || "Placing order...")), e.append(G, U);
|
|
885
|
+
}, oe = (G) => {
|
|
886
|
+
var U = e.text();
|
|
887
|
+
e.template_effect(() => e.set_text(U, `${(m().completeOrder || "Complete order") ?? ""} · ${(m().free || "Free") ?? ""}`)), e.append(G, U);
|
|
888
|
+
}, fe = (G) => {
|
|
889
|
+
var U = e.text();
|
|
890
|
+
e.template_effect((be) => e.set_text(U, `${(m().placeOrder || "Place order") ?? ""} · ${be ?? ""}`), [() => ot(t.orderTotals.total)]), e.append(G, U);
|
|
891
891
|
};
|
|
892
|
-
e.if(ne, (
|
|
893
|
-
k() ?
|
|
892
|
+
e.if(ne, (G) => {
|
|
893
|
+
k() ? G(te) : t.processing ? G(B, 1) : t.isFreeOrder ? G(oe, 2) : G(fe, -1);
|
|
894
894
|
});
|
|
895
895
|
}
|
|
896
|
-
e.append(v,
|
|
896
|
+
e.append(v, V);
|
|
897
897
|
},
|
|
898
898
|
$$slots: { default: !0 }
|
|
899
899
|
});
|
|
@@ -909,13 +909,13 @@ function nr(c, t) {
|
|
|
909
909
|
let k = e.prop(t, "saleClosed", 3, !1), m = e.prop(t, "labels", 19, () => ({})), A = e.derived(() => t.orderTotals.lines.reduce((j, L) => j + L.quantity, 0));
|
|
910
910
|
var P = lr();
|
|
911
911
|
let a;
|
|
912
|
-
var w = e.child(P),
|
|
912
|
+
var w = e.child(P), z = e.child(w), y = e.child(z);
|
|
913
913
|
ge(y, {
|
|
914
914
|
size: "sm",
|
|
915
915
|
weight: "semibold",
|
|
916
916
|
class: "tabular-nums block",
|
|
917
917
|
children: (j, L) => {
|
|
918
|
-
var
|
|
918
|
+
var O = e.comment(), n = e.first_child(O);
|
|
919
919
|
{
|
|
920
920
|
var g = (o) => {
|
|
921
921
|
var h = e.text();
|
|
@@ -931,14 +931,14 @@ function nr(c, t) {
|
|
|
931
931
|
t.isFreeOrder ? o(g) : o(Z, -1);
|
|
932
932
|
});
|
|
933
933
|
}
|
|
934
|
-
e.append(j,
|
|
934
|
+
e.append(j, O);
|
|
935
935
|
},
|
|
936
936
|
$$slots: { default: !0 }
|
|
937
|
-
}), e.reset(
|
|
938
|
-
var
|
|
937
|
+
}), e.reset(z);
|
|
938
|
+
var Y = e.sibling(z, 2);
|
|
939
939
|
{
|
|
940
940
|
let j = e.derived(() => t.processing || k());
|
|
941
|
-
he(
|
|
941
|
+
he(Y, {
|
|
942
942
|
variant: "default",
|
|
943
943
|
size: "lg",
|
|
944
944
|
get disabled() {
|
|
@@ -951,7 +951,7 @@ function nr(c, t) {
|
|
|
951
951
|
return t.onPlaceOrder;
|
|
952
952
|
},
|
|
953
953
|
class: "shrink-0 min-w-36",
|
|
954
|
-
children: (L,
|
|
954
|
+
children: (L, O) => {
|
|
955
955
|
var n = e.comment(), g = e.first_child(n);
|
|
956
956
|
{
|
|
957
957
|
var Z = (f) => {
|
|
@@ -1015,8 +1015,8 @@ function _r(c, t) {
|
|
|
1015
1015
|
color: "bg-accent-success"
|
|
1016
1016
|
}
|
|
1017
1017
|
];
|
|
1018
|
-
let m = e.derived(() => Ce.current), A = e.prop(t, "config", 3, void 0), P = e.prop(t, "onPlaceOrder", 3, void 0), a = e.prop(t, "onBack", 3, void 0), w = e.prop(t, "onRetryExpired", 3, void 0),
|
|
1019
|
-
const n = e.derived(() => Pt(
|
|
1018
|
+
let m = e.derived(() => Ce.current), A = e.prop(t, "config", 3, void 0), P = e.prop(t, "onPlaceOrder", 3, void 0), a = e.prop(t, "onBack", 3, void 0), w = e.prop(t, "onRetryExpired", 3, void 0), z = e.prop(t, "onExtendSession", 3, void 0), y = e.prop(t, "stripe", 3, void 0), Y = e.prop(t, "paymentIntent", 3, void 0), j = e.prop(t, "elements", 15, void 0), L = e.prop(t, "paymentError", 3, ""), O = e.prop(t, "labels", 19, () => ({}));
|
|
1019
|
+
const n = e.derived(() => Pt(O()));
|
|
1020
1020
|
let g = e.derived(() => !A());
|
|
1021
1021
|
e.user_effect(() => {
|
|
1022
1022
|
if (e.get(g))
|
|
@@ -1090,7 +1090,7 @@ function _r(c, t) {
|
|
|
1090
1090
|
};
|
|
1091
1091
|
case "timer_warning":
|
|
1092
1092
|
return {
|
|
1093
|
-
event:
|
|
1093
|
+
event: Ye,
|
|
1094
1094
|
lines: [
|
|
1095
1095
|
{
|
|
1096
1096
|
ticketId: ce(101),
|
|
@@ -1117,7 +1117,7 @@ function _r(c, t) {
|
|
|
1117
1117
|
};
|
|
1118
1118
|
case "expired":
|
|
1119
1119
|
return {
|
|
1120
|
-
event:
|
|
1120
|
+
event: Ye,
|
|
1121
1121
|
lines: [
|
|
1122
1122
|
{
|
|
1123
1123
|
ticketId: ce(101),
|
|
@@ -1143,7 +1143,7 @@ function _r(c, t) {
|
|
|
1143
1143
|
};
|
|
1144
1144
|
case "promo":
|
|
1145
1145
|
return {
|
|
1146
|
-
event:
|
|
1146
|
+
event: Ye,
|
|
1147
1147
|
lines: [
|
|
1148
1148
|
{
|
|
1149
1149
|
ticketId: ce(101),
|
|
@@ -1169,7 +1169,7 @@ function _r(c, t) {
|
|
|
1169
1169
|
};
|
|
1170
1170
|
default:
|
|
1171
1171
|
return {
|
|
1172
|
-
event:
|
|
1172
|
+
event: Ye,
|
|
1173
1173
|
lines: [
|
|
1174
1174
|
{
|
|
1175
1175
|
ticketId: ce(101),
|
|
@@ -1197,12 +1197,12 @@ function _r(c, t) {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
let o = e.derived(() => e.get(g) ? Z(e.get(m)) : A()), h = e.state(null), d = e.state(900), f = e.state(!1), u = e.state(!1), ve = e.state(0);
|
|
1199
1199
|
const $ = Ke(), v = Ke();
|
|
1200
|
-
let
|
|
1200
|
+
let J = e.state(!1), V = e.state(!1), ne = e.state(3), te = e.state(!0), B = e.state(null);
|
|
1201
1201
|
const oe = Ke(), fe = 30;
|
|
1202
|
-
let
|
|
1202
|
+
let G = e.derived(() => (() => {
|
|
1203
1203
|
const i = Math.floor(e.get(d) / 60), S = e.get(d) % 60;
|
|
1204
1204
|
return `${i.toString().padStart(2, "0")}:${S.toString().padStart(2, "0")}`;
|
|
1205
|
-
})()),
|
|
1205
|
+
})()), U = e.derived(() => (() => {
|
|
1206
1206
|
const i = e.get(o).lines;
|
|
1207
1207
|
if (e.get(o).serverTotals)
|
|
1208
1208
|
return {
|
|
@@ -1214,17 +1214,17 @@ function _r(c, t) {
|
|
|
1214
1214
|
promoDiscount: e.get(o).serverTotals.promoDiscount,
|
|
1215
1215
|
giftCardAmount: e.get(o).serverTotals.giftCardAmount
|
|
1216
1216
|
};
|
|
1217
|
-
const S =
|
|
1217
|
+
const S = Ue(i.reduce((F, C) => F + C.subtotal, 0)), I = Ue(i.reduce((F, C) => F + C.fee * C.quantity, 0)), x = e.get(o).promoApplied ? e.get(o).promoDiscount : 0, p = Ue(Math.max(0, S - x)), D = Tt(p + I, e.get(o).event.venue.taxPercentage);
|
|
1218
1218
|
return {
|
|
1219
1219
|
lines: i,
|
|
1220
1220
|
subtotal: S,
|
|
1221
1221
|
fees: I,
|
|
1222
1222
|
taxes: D,
|
|
1223
|
-
total:
|
|
1223
|
+
total: Ue(p + I + D),
|
|
1224
1224
|
promoDiscount: x,
|
|
1225
1225
|
giftCardAmount: 0
|
|
1226
1226
|
};
|
|
1227
|
-
})()), be = e.derived(() => e.get(g) || !!e.get(o).serverTotals), xe = e.derived(() => e.get(
|
|
1227
|
+
})()), be = e.derived(() => e.get(g) || !!e.get(o).serverTotals), xe = e.derived(() => e.get(U).total === 0 && e.get(U).subtotal === 0), Ne = e.derived(() => e.get(o).event.isRegistrationEvent), Ae = !1;
|
|
1228
1228
|
e.user_effect(() => {
|
|
1229
1229
|
const i = e.get(o);
|
|
1230
1230
|
Ae || (Ae = !0, e.set(h, Date.now() + i.timerStart * 1e3), e.set(d, i.timerStart, !0), e.set(f, i.forceExpired, !0)), Ze(() => e.get(u)) || (e.set(u, !1), e.set(ve, 0));
|
|
@@ -1273,7 +1273,7 @@ function _r(c, t) {
|
|
|
1273
1273
|
);
|
|
1274
1274
|
} catch {
|
|
1275
1275
|
}
|
|
1276
|
-
x > 0 && x % 30 === 0 && qe(), x <= fe && x > 0 && !e.get(
|
|
1276
|
+
x > 0 && x % 30 === 0 && qe(), x <= fe && x > 0 && !e.get(J) && ($.open(), e.set(J, !0)), x <= 0 && (e.set(f, !0), $.close(), v.open(), clearInterval(S));
|
|
1277
1277
|
}, S = setInterval(i, 1e3), I = (x) => {
|
|
1278
1278
|
x?.type === "pageshow" && x.persisted && (e.set(u, !1), e.set(ve, 0)), typeof document < "u" && document.visibilityState === "visible" && (i(), qe());
|
|
1279
1279
|
};
|
|
@@ -1310,15 +1310,15 @@ function _r(c, t) {
|
|
|
1310
1310
|
);
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function ze() {
|
|
1314
1314
|
v.close(), w() && w()();
|
|
1315
1315
|
}
|
|
1316
1316
|
async function Le() {
|
|
1317
|
-
if (!(!e.get(te) || e.get(
|
|
1318
|
-
e.set(
|
|
1317
|
+
if (!(!e.get(te) || e.get(V))) {
|
|
1318
|
+
e.set(V, !0);
|
|
1319
1319
|
try {
|
|
1320
|
-
if (
|
|
1321
|
-
const i = await
|
|
1320
|
+
if (z()) {
|
|
1321
|
+
const i = await z()();
|
|
1322
1322
|
if (i == null)
|
|
1323
1323
|
throw new wt("Extension request returned no result", "lib/premium-ticket-experience/variants/v3-airbnb-split/CheckoutMain/handleExtendSession");
|
|
1324
1324
|
typeof i == "object" ? (i.newExpiryTime ? e.set(
|
|
@@ -1329,24 +1329,24 @@ function _r(c, t) {
|
|
|
1329
1329
|
) : e.set(h, Date.now() + 900 * 1e3), e.set(d, ye(), !0), i.remainingExtensions !== void 0 && (e.set(ne, i.remainingExtensions, !0), e.set(te, e.get(ne) > 0))) : (e.set(h, Date.now() + 900 * 1e3), e.set(d, ye(), !0));
|
|
1330
1330
|
} else
|
|
1331
1331
|
e.set(h, Date.now() + 900 * 1e3), e.set(d, ye(), !0);
|
|
1332
|
-
e.set(f, !1), e.set(
|
|
1332
|
+
e.set(f, !1), e.set(J, !1), $.close(), v.close();
|
|
1333
1333
|
} catch (i) {
|
|
1334
1334
|
or.error("Failed to extend session:", i), $.close(), e.set(te, !1), e.get(d) <= 0 && (e.set(f, !0), v.open());
|
|
1335
1335
|
} finally {
|
|
1336
|
-
e.set(
|
|
1336
|
+
e.set(V, !1);
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
1340
1340
|
function Be() {
|
|
1341
1341
|
$.close();
|
|
1342
1342
|
}
|
|
1343
|
-
var
|
|
1343
|
+
var Oe = pr(), Te = e.child(Oe), Ee = e.child(Te), $e = e.child(Ee), De = e.child($e), r = e.child(De);
|
|
1344
1344
|
rr(r, {
|
|
1345
1345
|
get event() {
|
|
1346
1346
|
return e.get(o).event;
|
|
1347
1347
|
},
|
|
1348
1348
|
get orderTotals() {
|
|
1349
|
-
return e.get(
|
|
1349
|
+
return e.get(U);
|
|
1350
1350
|
},
|
|
1351
1351
|
get timerSeconds() {
|
|
1352
1352
|
return e.get(d);
|
|
@@ -1378,7 +1378,7 @@ function _r(c, t) {
|
|
|
1378
1378
|
return y();
|
|
1379
1379
|
},
|
|
1380
1380
|
get paymentIntent() {
|
|
1381
|
-
return
|
|
1381
|
+
return Y();
|
|
1382
1382
|
},
|
|
1383
1383
|
get paymentError() {
|
|
1384
1384
|
return L();
|
|
@@ -1441,8 +1441,8 @@ function _r(c, t) {
|
|
|
1441
1441
|
},
|
|
1442
1442
|
$$slots: { default: !0 }
|
|
1443
1443
|
}), e.reset(W);
|
|
1444
|
-
var E = e.sibling(W, 2),
|
|
1445
|
-
ge(
|
|
1444
|
+
var E = e.sibling(W, 2), X = e.child(E);
|
|
1445
|
+
ge(X, {
|
|
1446
1446
|
size: "xs",
|
|
1447
1447
|
color: "muted",
|
|
1448
1448
|
class: "block",
|
|
@@ -1454,9 +1454,9 @@ function _r(c, t) {
|
|
|
1454
1454
|
$$slots: { default: !0 }
|
|
1455
1455
|
}), e.reset(E), e.reset(_), e.reset(s);
|
|
1456
1456
|
var re = e.sibling(s, 2);
|
|
1457
|
-
|
|
1457
|
+
Xe(re, {
|
|
1458
1458
|
get orderTotals() {
|
|
1459
|
-
return e.get(
|
|
1459
|
+
return e.get(U);
|
|
1460
1460
|
},
|
|
1461
1461
|
get labels() {
|
|
1462
1462
|
return e.get(n);
|
|
@@ -1470,7 +1470,7 @@ function _r(c, t) {
|
|
|
1470
1470
|
return e.get(o).event;
|
|
1471
1471
|
},
|
|
1472
1472
|
get orderTotals() {
|
|
1473
|
-
return e.get(
|
|
1473
|
+
return e.get(U);
|
|
1474
1474
|
},
|
|
1475
1475
|
get isFreeOrder() {
|
|
1476
1476
|
return e.get(xe);
|
|
@@ -1493,7 +1493,7 @@ function _r(c, t) {
|
|
|
1493
1493
|
let i = e.derived(() => e.get(u) || !e.get(xe) && !e.get(be)), S = e.derived(() => !!e.get(B));
|
|
1494
1494
|
nr(ae, {
|
|
1495
1495
|
get orderTotals() {
|
|
1496
|
-
return e.get(
|
|
1496
|
+
return e.get(U);
|
|
1497
1497
|
},
|
|
1498
1498
|
get isFreeOrder() {
|
|
1499
1499
|
return e.get(xe);
|
|
@@ -1543,7 +1543,7 @@ function _r(c, t) {
|
|
|
1543
1543
|
e.set_text(N, e.get(n).sessionExpiringSoon || "Session expiring soon"), e.set_text(se, ue);
|
|
1544
1544
|
},
|
|
1545
1545
|
[
|
|
1546
|
-
() => (e.get(n).sessionExpiringSoonMessage || "Your checkout session will expire in {time}. Your selected tickets will be released back to inventory.").replace("{time}", e.get(
|
|
1546
|
+
() => (e.get(n).sessionExpiringSoonMessage || "Your checkout session will expire in {time}. Your selected tickets will be released back to inventory.").replace("{time}", e.get(G))
|
|
1547
1547
|
]
|
|
1548
1548
|
), e.append(x, p);
|
|
1549
1549
|
},
|
|
@@ -1557,15 +1557,15 @@ function _r(c, t) {
|
|
|
1557
1557
|
class: "w-full",
|
|
1558
1558
|
onclick: Le,
|
|
1559
1559
|
get disabled() {
|
|
1560
|
-
return e.get(
|
|
1560
|
+
return e.get(V);
|
|
1561
1561
|
},
|
|
1562
1562
|
get loading() {
|
|
1563
|
-
return e.get(
|
|
1563
|
+
return e.get(V);
|
|
1564
1564
|
},
|
|
1565
1565
|
children: (H, se) => {
|
|
1566
1566
|
e.next();
|
|
1567
1567
|
var ee = e.text();
|
|
1568
|
-
e.template_effect(() => e.set_text(ee, e.get(
|
|
1568
|
+
e.template_effect(() => e.set_text(ee, e.get(V) ? e.get(n).extendingSession || "Extending..." : e.get(n).continueCheckout || "Continue checkout")), e.append(H, ee);
|
|
1569
1569
|
},
|
|
1570
1570
|
$$slots: { default: !0 }
|
|
1571
1571
|
});
|
|
@@ -1628,15 +1628,15 @@ function _r(c, t) {
|
|
|
1628
1628
|
class: "w-full",
|
|
1629
1629
|
onclick: Le,
|
|
1630
1630
|
get disabled() {
|
|
1631
|
-
return e.get(
|
|
1631
|
+
return e.get(V);
|
|
1632
1632
|
},
|
|
1633
1633
|
get loading() {
|
|
1634
|
-
return e.get(
|
|
1634
|
+
return e.get(V);
|
|
1635
1635
|
},
|
|
1636
1636
|
children: (pe, ue) => {
|
|
1637
1637
|
e.next();
|
|
1638
1638
|
var de = e.text();
|
|
1639
|
-
e.template_effect(() => e.set_text(de, e.get(
|
|
1639
|
+
e.template_effect(() => e.set_text(de, e.get(V) ? e.get(n).extendingSession || "Extending..." : e.get(n).keepMyTickets || "Keep my tickets")), e.append(pe, de);
|
|
1640
1640
|
},
|
|
1641
1641
|
$$slots: { default: !0 }
|
|
1642
1642
|
});
|
|
@@ -1645,7 +1645,7 @@ function _r(c, t) {
|
|
|
1645
1645
|
variant: "alternative",
|
|
1646
1646
|
size: "lg",
|
|
1647
1647
|
class: "w-full",
|
|
1648
|
-
onclick:
|
|
1648
|
+
onclick: ze,
|
|
1649
1649
|
children: (pe, ue) => {
|
|
1650
1650
|
e.next();
|
|
1651
1651
|
var de = e.text();
|
|
@@ -1658,7 +1658,7 @@ function _r(c, t) {
|
|
|
1658
1658
|
variant: "default",
|
|
1659
1659
|
size: "lg",
|
|
1660
1660
|
class: "w-full",
|
|
1661
|
-
onclick:
|
|
1661
|
+
onclick: ze,
|
|
1662
1662
|
children: (H, se) => {
|
|
1663
1663
|
e.next();
|
|
1664
1664
|
var ee = e.text();
|
|
@@ -1726,7 +1726,7 @@ function _r(c, t) {
|
|
|
1726
1726
|
variant: "default",
|
|
1727
1727
|
size: "lg",
|
|
1728
1728
|
class: "w-full",
|
|
1729
|
-
onclick:
|
|
1729
|
+
onclick: ze,
|
|
1730
1730
|
children: (F, C) => {
|
|
1731
1731
|
e.next();
|
|
1732
1732
|
var N = e.text();
|
|
@@ -1742,7 +1742,7 @@ function _r(c, t) {
|
|
|
1742
1742
|
oe.isOpen && i(vt);
|
|
1743
1743
|
});
|
|
1744
1744
|
}
|
|
1745
|
-
e.reset(
|
|
1745
|
+
e.reset(Oe), e.append(c, Oe), e.pop();
|
|
1746
1746
|
}
|
|
1747
1747
|
const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1748
1748
|
__proto__: null,
|
|
@@ -1754,4 +1754,4 @@ export {
|
|
|
1754
1754
|
Cr as b,
|
|
1755
1755
|
Ft as g
|
|
1756
1756
|
};
|
|
1757
|
-
//# sourceMappingURL=Checkout-
|
|
1757
|
+
//# sourceMappingURL=Checkout-DUJ7VdA-.js.map
|