@forgebuild/sidon-booking-widget 4.1.7 → 4.2.0
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/README.md +632 -629
- package/dist/elements.d.ts +141 -127
- package/dist/sidon-booking-widget.js +891 -781
- package/package.json +50 -50
|
@@ -28,7 +28,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
28
28
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region node_modules/svelte/src/constants.js
|
|
31
|
-
var d = {}, f = Symbol("uninitialized"), p = "http://www.w3.org/1999/xhtml", m = "http://www.w3.org/2000/svg", h = Array.isArray, g = Array.prototype.indexOf, _ = Array.prototype.includes, v = Array.from, y = Object.keys, b = Object.defineProperty, x = Object.getOwnPropertyDescriptor, S = Object.getOwnPropertyDescriptors,
|
|
31
|
+
var d = {}, f = Symbol("uninitialized"), p = "http://www.w3.org/1999/xhtml", m = "http://www.w3.org/2000/svg", h = Array.isArray, g = Array.prototype.indexOf, _ = Array.prototype.includes, v = Array.from, y = Object.keys, b = Object.defineProperty, x = Object.getOwnPropertyDescriptor, S = Object.getOwnPropertyDescriptors, C = Object.prototype, ee = Array.prototype, w = Object.getPrototypeOf, T = Object.isExtensible, te = () => {};
|
|
32
32
|
function ne(e) {
|
|
33
33
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
34
34
|
}
|
|
@@ -42,7 +42,7 @@ function E() {
|
|
|
42
42
|
reject: t
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
var D = 1024, O = 2048, k = 4096, re = 8192,
|
|
45
|
+
var D = 1024, O = 2048, k = 4096, re = 8192, A = 16384, ie = 32768, ae = 1 << 25, j = 65536, oe = 1 << 19, se = 1 << 20, ce = 1 << 25, le = 65536, ue = 1 << 21, de = 1 << 22, fe = 1 << 23, pe = Symbol("$state"), me = Symbol("legacy props"), he = Symbol(""), ge = Symbol("attributes"), _e = Symbol("class"), ve = Symbol("style"), ye = Symbol("text"), be = Symbol("form reset"), xe = new class extends Error {
|
|
46
46
|
name = "StaleReactionError";
|
|
47
47
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
48
48
|
}(), Se = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
@@ -200,7 +200,7 @@ function tt() {
|
|
|
200
200
|
}
|
|
201
201
|
function nt(e) {
|
|
202
202
|
var t = q;
|
|
203
|
-
if (t === null) return K.f |=
|
|
203
|
+
if (t === null) return K.f |= fe, e;
|
|
204
204
|
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
205
205
|
rt(e, t);
|
|
206
206
|
}
|
|
@@ -233,7 +233,7 @@ function ot(e) {
|
|
|
233
233
|
//#endregion
|
|
234
234
|
//#region node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
235
235
|
function st(e) {
|
|
236
|
-
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^=
|
|
236
|
+
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= le, st(t.deps));
|
|
237
237
|
}
|
|
238
238
|
function ct(e, t, n) {
|
|
239
239
|
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), st(e.deps), at(e, D);
|
|
@@ -294,7 +294,7 @@ function ht(e) {
|
|
|
294
294
|
}
|
|
295
295
|
//#endregion
|
|
296
296
|
//#region node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
297
|
-
var gt =
|
|
297
|
+
var gt = j | oe;
|
|
298
298
|
function _t(e, t, n, r) {
|
|
299
299
|
new vt(e, t, n, r);
|
|
300
300
|
}
|
|
@@ -520,7 +520,7 @@ function St() {
|
|
|
520
520
|
/*#__NO_SIDE_EFFECTS__*/
|
|
521
521
|
function Ct(e) {
|
|
522
522
|
var t = 2 | O;
|
|
523
|
-
return q !== null && (q.f |=
|
|
523
|
+
return q !== null && (q.f |= oe), {
|
|
524
524
|
ctx: qe,
|
|
525
525
|
deps: null,
|
|
526
526
|
effects: null,
|
|
@@ -559,7 +559,7 @@ function Tt(e, t, n) {
|
|
|
559
559
|
s.add(n), c.async_deriveds.set(t, n);
|
|
560
560
|
}
|
|
561
561
|
let u = (e, t = void 0) => {
|
|
562
|
-
l?.(), s.delete(n), t !== wt && (c.activate(), t ? (a.f |=
|
|
562
|
+
l?.(), s.delete(n), t !== wt && (c.activate(), t ? (a.f |= fe, $t(a, t)) : (a.f & 8388608 && (a.f ^= fe), $t(a, e)), c.deactivate());
|
|
563
563
|
};
|
|
564
564
|
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
565
565
|
}), Cn(() => {
|
|
@@ -596,7 +596,7 @@ function Ot(e) {
|
|
|
596
596
|
if (!Kn && r !== null && e.v !== f && r.f & 24576) return Fe(), e.v;
|
|
597
597
|
Xn(r);
|
|
598
598
|
try {
|
|
599
|
-
e.f &= ~
|
|
599
|
+
e.f &= ~le, Dt(e), t = ur(e);
|
|
600
600
|
} finally {
|
|
601
601
|
Xn(n);
|
|
602
602
|
}
|
|
@@ -979,7 +979,7 @@ function rn(e, t, n) {
|
|
|
979
979
|
if (l && at(s, t), c & 131072) Jt.add(s);
|
|
980
980
|
else if (c & 2) {
|
|
981
981
|
var u = s;
|
|
982
|
-
Pt?.delete(u), c & 65536 || (c & 512 && (q === null || !(q.f & 2097152)) && (s.f |=
|
|
982
|
+
Pt?.delete(u), c & 65536 || (c & 512 && (q === null || !(q.f & 2097152)) && (s.f |= le), rn(u, k, n));
|
|
983
983
|
} else if (l) {
|
|
984
984
|
var d = s;
|
|
985
985
|
c & 16 && Ut !== null && Ut.add(d), n === null ? Gt(d) : n.push(d);
|
|
@@ -990,7 +990,7 @@ function rn(e, t, n) {
|
|
|
990
990
|
function an(e) {
|
|
991
991
|
if (typeof e != "object" || !e || pe in e) return e;
|
|
992
992
|
let t = w(e);
|
|
993
|
-
if (t !==
|
|
993
|
+
if (t !== C && t !== ee) return e;
|
|
994
994
|
var n = /* @__PURE__ */ new Map(), r = h(e), i = /* @__PURE__ */ V(0), a = null, o = ar, s = (e) => {
|
|
995
995
|
if (ar === o) return e();
|
|
996
996
|
var t = K, n = ar;
|
|
@@ -1190,7 +1190,7 @@ function xn(e, t) {
|
|
|
1190
1190
|
} catch (e) {
|
|
1191
1191
|
throw In(r), e;
|
|
1192
1192
|
}
|
|
1193
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |=
|
|
1193
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= j));
|
|
1194
1194
|
}
|
|
1195
1195
|
if (i !== null && (i.parent = n, n !== null && bn(i, n), K !== null && K.f & 2 && !(e & 64))) {
|
|
1196
1196
|
var a = K;
|
|
@@ -1214,18 +1214,18 @@ function wn(e) {
|
|
|
1214
1214
|
} else return Tn(e);
|
|
1215
1215
|
}
|
|
1216
1216
|
function Tn(e) {
|
|
1217
|
-
return xn(4 |
|
|
1217
|
+
return xn(4 | se, e);
|
|
1218
1218
|
}
|
|
1219
1219
|
function En(e) {
|
|
1220
1220
|
Vt.ensure();
|
|
1221
|
-
let t = xn(64 |
|
|
1221
|
+
let t = xn(64 | oe, e);
|
|
1222
1222
|
return () => {
|
|
1223
1223
|
In(t);
|
|
1224
1224
|
};
|
|
1225
1225
|
}
|
|
1226
1226
|
function Dn(e) {
|
|
1227
1227
|
Vt.ensure();
|
|
1228
|
-
let t = xn(64 |
|
|
1228
|
+
let t = xn(64 | oe, e);
|
|
1229
1229
|
return (e = {}) => new Promise((n) => {
|
|
1230
1230
|
e.outro ? zn(t, () => {
|
|
1231
1231
|
In(t), n(void 0);
|
|
@@ -1236,7 +1236,7 @@ function On(e) {
|
|
|
1236
1236
|
return xn(4, e);
|
|
1237
1237
|
}
|
|
1238
1238
|
function kn(e) {
|
|
1239
|
-
return xn(
|
|
1239
|
+
return xn(de | oe, e);
|
|
1240
1240
|
}
|
|
1241
1241
|
function An(e, t = 0) {
|
|
1242
1242
|
return xn(8 | t, e);
|
|
@@ -1252,7 +1252,7 @@ function jn(e, t = 0) {
|
|
|
1252
1252
|
return xn(16 | t, e);
|
|
1253
1253
|
}
|
|
1254
1254
|
function Mn(e) {
|
|
1255
|
-
return xn(32 |
|
|
1255
|
+
return xn(32 | oe, e);
|
|
1256
1256
|
}
|
|
1257
1257
|
function Nn(e) {
|
|
1258
1258
|
var t = e.teardown;
|
|
@@ -1288,7 +1288,7 @@ function In(e, t = !0) {
|
|
|
1288
1288
|
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (Ln(e.nodes.start, e.nodes.end), n = !0), e.f |= ae, Pn(e, t && !n), fr(e, 0);
|
|
1289
1289
|
var r = e.nodes && e.nodes.t;
|
|
1290
1290
|
if (r !== null) for (let e of r) e.stop();
|
|
1291
|
-
Nn(e), e.f ^= ae, e.f |=
|
|
1291
|
+
Nn(e), e.f ^= ae, e.f |= A;
|
|
1292
1292
|
var i = e.parent;
|
|
1293
1293
|
i !== null && i.first !== null && Rn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1294
1294
|
}
|
|
@@ -1380,7 +1380,7 @@ function sr() {
|
|
|
1380
1380
|
function cr(e) {
|
|
1381
1381
|
var t = e.f;
|
|
1382
1382
|
if (t & 2048) return !0;
|
|
1383
|
-
if (t & 2 && (e.f &= ~
|
|
1383
|
+
if (t & 2 && (e.f &= ~le), t & 4096) {
|
|
1384
1384
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1385
1385
|
var a = n[i];
|
|
1386
1386
|
if (cr(a) && kt(a), a.wv > e.wv) return !0;
|
|
@@ -1402,9 +1402,9 @@ function ur(e) {
|
|
|
1402
1402
|
e.ac.abort(xe);
|
|
1403
1403
|
}), e.ac = null);
|
|
1404
1404
|
try {
|
|
1405
|
-
e.f |=
|
|
1405
|
+
e.f |= ue;
|
|
1406
1406
|
var u = e.fn, d = u();
|
|
1407
|
-
e.f |=
|
|
1407
|
+
e.f |= ie;
|
|
1408
1408
|
var f = e.deps, p = R?.is_fork;
|
|
1409
1409
|
if ($n !== null) {
|
|
1410
1410
|
var m;
|
|
@@ -1418,11 +1418,11 @@ function ur(e) {
|
|
|
1418
1418
|
if (t !== null) for (let e of t) e.rv = ir;
|
|
1419
1419
|
tr !== null && (r === null ? r = tr : r.push(...tr));
|
|
1420
1420
|
}
|
|
1421
|
-
return e.f & 8388608 && (e.f ^=
|
|
1421
|
+
return e.f & 8388608 && (e.f ^= fe), d;
|
|
1422
1422
|
} catch (e) {
|
|
1423
1423
|
return nt(e);
|
|
1424
1424
|
} finally {
|
|
1425
|
-
e.f ^=
|
|
1425
|
+
e.f ^= ue, $n = t, er = n, tr = r, K = i, Zn = a, Je(o), Jn = s, ar = c;
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
1428
|
function dr(e, t) {
|
|
@@ -1436,7 +1436,7 @@ function dr(e, t) {
|
|
|
1436
1436
|
}
|
|
1437
1437
|
if (n === null && t.f & 2 && ($n === null || !_.call($n, t))) {
|
|
1438
1438
|
var a = t;
|
|
1439
|
-
a.f & 512 && (a.f ^= 512, a.f &= ~
|
|
1439
|
+
a.f & 512 && (a.f ^= 512, a.f &= ~le), a.v !== f && ot(a), a.ac !== null && pt(() => {
|
|
1440
1440
|
a.ac.abort(xe), a.ac = null, at(a, O);
|
|
1441
1441
|
}), At(a), fr(a, 0);
|
|
1442
1442
|
}
|
|
@@ -1481,7 +1481,7 @@ function J(e) {
|
|
|
1481
1481
|
var a = i.v;
|
|
1482
1482
|
return (!(i.f & 1024) && i.reactions !== null || gr(i)) && (a = Ot(i)), Yt.set(i, a), a;
|
|
1483
1483
|
}
|
|
1484
|
-
var o = !(i.f & 512) && !Jn && K !== null && (Gn || !!(K.f & 512)), s = (i.f &
|
|
1484
|
+
var o = !(i.f & 512) && !Jn && K !== null && (Gn || !!(K.f & 512)), s = (i.f & ie) === 0;
|
|
1485
1485
|
cr(i) && (o && (i.f |= 512), kt(i)), o && !s && (jt(i), hr(i));
|
|
1486
1486
|
}
|
|
1487
1487
|
if (Pt?.has(e)) return Pt.get(e);
|
|
@@ -1829,7 +1829,7 @@ function qr(e) {
|
|
|
1829
1829
|
function Q(e, t, n = !1) {
|
|
1830
1830
|
var r;
|
|
1831
1831
|
N && (r = P, Be());
|
|
1832
|
-
var i = new Kr(e), a = n ?
|
|
1832
|
+
var i = new Kr(e), a = n ? j : 0;
|
|
1833
1833
|
function o(e, t) {
|
|
1834
1834
|
if (N) {
|
|
1835
1835
|
var n = Ue(r);
|
|
@@ -1885,7 +1885,7 @@ function Xr(e, t, n = !0) {
|
|
|
1885
1885
|
}
|
|
1886
1886
|
for (var i = 0; i < t.length; i++) {
|
|
1887
1887
|
var a = t[i];
|
|
1888
|
-
r?.has(a) ? (a.f |=
|
|
1888
|
+
r?.has(a) ? (a.f |= ce, Un(a, document.createDocumentFragment())) : In(t[i], n);
|
|
1889
1889
|
}
|
|
1890
1890
|
}
|
|
1891
1891
|
var Zr;
|
|
@@ -1901,7 +1901,7 @@ function Qr(e, t, n, r, i, a = null) {
|
|
|
1901
1901
|
return h(e) ? e : e == null ? [] : v(e);
|
|
1902
1902
|
}), d, f = /* @__PURE__ */ new Map(), p = !0;
|
|
1903
1903
|
function m(e) {
|
|
1904
|
-
_.effect.f & 16384 || (_.pending.delete(e), _.fallback = l, ei(_, d, o, t, r), l !== null && (d.length === 0 ? l.f & 33554432 ? (l.f ^=
|
|
1904
|
+
_.effect.f & 16384 || (_.pending.delete(e), _.fallback = l, ei(_, d, o, t, r), l !== null && (d.length === 0 ? l.f & 33554432 ? (l.f ^= ce, ni(l, null, o)) : Vn(l) : zn(l, () => {
|
|
1905
1905
|
l = null;
|
|
1906
1906
|
})));
|
|
1907
1907
|
}
|
|
@@ -1917,9 +1917,9 @@ function Qr(e, t, n, r, i, a = null) {
|
|
|
1917
1917
|
for (var h = /* @__PURE__ */ new Set(), _ = R, v = gn(), y = 0; y < e; y += 1) {
|
|
1918
1918
|
N && P.nodeType === 8 && P.data === "]" && (o = P, c = !0, Re(!1));
|
|
1919
1919
|
var b = d[y], x = r(b, y), S = p ? null : s.get(x);
|
|
1920
|
-
S ? (S.v && $t(S.v, b), S.i && $t(S.i, y), v && _.unskip_effect(S.e)) : (S = ti(s, p ? o : Zr ??= dn(), b, x, y, i, t, n), p || (S.e.f |=
|
|
1920
|
+
S ? (S.v && $t(S.v, b), S.i && $t(S.i, y), v && _.unskip_effect(S.e)) : (S = ti(s, p ? o : Zr ??= dn(), b, x, y, i, t, n), p || (S.e.f |= ce), s.set(x, S)), h.add(x);
|
|
1921
1921
|
}
|
|
1922
|
-
if (e === 0 && a && !l && (p ? l = Mn(() => a(o)) : (l = Mn(() => a(Zr ??= dn())), l.f |=
|
|
1922
|
+
if (e === 0 && a && !l && (p ? l = Mn(() => a(o)) : (l = Mn(() => a(Zr ??= dn())), l.f |= ce)), e > h.size && Te("", "", ""), N && e > 0 && ze(He()), !p) if (f.set(_, h), v) {
|
|
1923
1923
|
for (let [e, t] of s) h.has(e) || _.skip_effect(t.e);
|
|
1924
1924
|
_.oncommit(m), _.ondiscard(g);
|
|
1925
1925
|
} else m(_);
|
|
@@ -1942,7 +1942,7 @@ function ei(e, t, n, r, i) {
|
|
|
1942
1942
|
if (a) for (_ = 0; _ < o; _ += 1) m = t[_], h = i(m, _), g = s.get(h).e, g.f & 33554432 || (g.nodes?.a?.measure(), (d ??= /* @__PURE__ */ new Set()).add(g));
|
|
1943
1943
|
for (_ = 0; _ < o; _ += 1) {
|
|
1944
1944
|
if (m = t[_], h = i(m, _), g = s.get(h).e, e.outrogroups !== null) for (let t of e.outrogroups) t.pending.delete(g), t.done.delete(g);
|
|
1945
|
-
if (g.f & 8192 && (Vn(g), a && (g.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(g))), g.f & 33554432) if (g.f ^=
|
|
1945
|
+
if (g.f & 8192 && (Vn(g), a && (g.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(g))), g.f & 33554432) if (g.f ^= ce, g === c) ni(g, null, n);
|
|
1946
1946
|
else {
|
|
1947
1947
|
var y = u ? u.next : c;
|
|
1948
1948
|
g === e.effect.last && (e.effect.last = g.prev), g.prev && (g.prev.next = g.next), g.next && (g.next.prev = g.prev), ri(e, u, g), ri(e, g, y), ni(g, y, n), u = g, f = [], p = [], c = $r(u.next);
|
|
@@ -1953,10 +1953,10 @@ function ei(e, t, n, r, i) {
|
|
|
1953
1953
|
if (f.length < p.length) {
|
|
1954
1954
|
var b = p[0], x;
|
|
1955
1955
|
u = b.prev;
|
|
1956
|
-
var S = f[0],
|
|
1956
|
+
var S = f[0], C = f[f.length - 1];
|
|
1957
1957
|
for (x = 0; x < f.length; x += 1) ni(f[x], b, n);
|
|
1958
1958
|
for (x = 0; x < p.length; x += 1) l.delete(p[x]);
|
|
1959
|
-
ri(e, S.prev,
|
|
1959
|
+
ri(e, S.prev, C.next), ri(e, u, S), ri(e, C, b), c = b, u = C, --_, f = [], p = [];
|
|
1960
1960
|
} else l.delete(g), ni(g, c, n), ri(e, g.prev, g.next), ri(e, g, u === null ? e.effect.first : u.next), ri(e, u, g), u = g;
|
|
1961
1961
|
continue;
|
|
1962
1962
|
}
|
|
@@ -1970,17 +1970,17 @@ function ei(e, t, n, r, i) {
|
|
|
1970
1970
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
1971
1971
|
}
|
|
1972
1972
|
if (c !== null || l !== void 0) {
|
|
1973
|
-
var
|
|
1974
|
-
if (l !== void 0) for (g of l) g.f & 8192 ||
|
|
1975
|
-
for (; c !== null;) !(c.f & 8192) && c !== e.fallback &&
|
|
1976
|
-
var w =
|
|
1973
|
+
var ee = [];
|
|
1974
|
+
if (l !== void 0) for (g of l) g.f & 8192 || ee.push(g);
|
|
1975
|
+
for (; c !== null;) !(c.f & 8192) && c !== e.fallback && ee.push(c), c = $r(c.next);
|
|
1976
|
+
var w = ee.length;
|
|
1977
1977
|
if (w > 0) {
|
|
1978
1978
|
var T = r & 4 && o === 0 ? n : null;
|
|
1979
1979
|
if (a) {
|
|
1980
|
-
for (_ = 0; _ < w; _ += 1)
|
|
1981
|
-
for (_ = 0; _ < w; _ += 1)
|
|
1980
|
+
for (_ = 0; _ < w; _ += 1) ee[_].nodes?.a?.measure();
|
|
1981
|
+
for (_ = 0; _ < w; _ += 1) ee[_].nodes?.a?.fix();
|
|
1982
1982
|
}
|
|
1983
|
-
Yr(e,
|
|
1983
|
+
Yr(e, ee, T);
|
|
1984
1984
|
}
|
|
1985
1985
|
}
|
|
1986
1986
|
a && et(() => {
|
|
@@ -2034,7 +2034,7 @@ function ii(e, t, n, r, i, a) {
|
|
|
2034
2034
|
}
|
|
2035
2035
|
N && ze(t);
|
|
2036
2036
|
}), () => {};
|
|
2037
|
-
},
|
|
2037
|
+
}, j), Cn(() => {}), o && (Re(!0), ze(c));
|
|
2038
2038
|
}
|
|
2039
2039
|
//#endregion
|
|
2040
2040
|
//#region node_modules/svelte/src/internal/client/dom/css.js
|
|
@@ -2970,7 +2970,7 @@ function _a(e, t) {
|
|
|
2970
2970
|
n.parseDate = la({
|
|
2971
2971
|
config: n.config,
|
|
2972
2972
|
l10n: n.l10n
|
|
2973
|
-
}), n._handlers = [], n.pluginElements = [], n.loadedPlugins = [], n._bind = h, n._setHoursFromDate = f, n._positionCalendar = Ce, n.changeMonth =
|
|
2973
|
+
}), n._handlers = [], n.pluginElements = [], n.loadedPlugins = [], n._bind = h, n._setHoursFromDate = f, n._positionCalendar = Ce, n.changeMonth = j, n.changeYear = de, n.clear = oe, n.close = se, n.onMouseOver = ge, n._createElement = Ji, n.createDay = S, n.destroy = ce, n.isEnabled = fe, n.jumpToDate = v, n.updateValue = Ve, n.open = ve, n.redraw = M, n.set = ke, n.setDate = je, n.toggle = Le;
|
|
2974
2974
|
function r() {
|
|
2975
2975
|
n.utils = { getDaysInMonth: function(e, t) {
|
|
2976
2976
|
return e === void 0 && (e = n.currentMonth), t === void 0 && (t = n.currentYear), e === 1 && (t % 4 == 0 && t % 100 != 0 || t % 400 == 0) ? 29 : n.l10n.daysInMonth[e];
|
|
@@ -3048,7 +3048,7 @@ function _a(e, t) {
|
|
|
3048
3048
|
}
|
|
3049
3049
|
function m(e) {
|
|
3050
3050
|
var t = Qi(e), n = parseInt(t.value) + (e.delta || 0);
|
|
3051
|
-
(n / 1e3 > 1 || e.key === "Enter" && !/[^\d]/.test(n.toString())) &&
|
|
3051
|
+
(n / 1e3 > 1 || e.key === "Enter" && !/[^\d]/.test(n.toString())) && de(n);
|
|
3052
3052
|
}
|
|
3053
3053
|
function h(e, t, r, i) {
|
|
3054
3054
|
if (t instanceof Array) return t.forEach(function(t) {
|
|
@@ -3081,7 +3081,7 @@ function _a(e, t) {
|
|
|
3081
3081
|
var e = Hi(_e, 50);
|
|
3082
3082
|
n._debouncedChange = Hi(g, xa), n.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && h(n.daysContainer, "mouseover", function(e) {
|
|
3083
3083
|
n.config.mode === "range" && ge(Qi(e));
|
|
3084
|
-
}), h(n._input, "keydown", he), n.calendarContainer !== void 0 && h(n.calendarContainer, "keydown", he), !n.config.inline && !n.config.static && h(window, "resize", e), window.ontouchstart === void 0 ? h(window.document, "mousedown",
|
|
3084
|
+
}), h(n._input, "keydown", he), n.calendarContainer !== void 0 && h(n.calendarContainer, "keydown", he), !n.config.inline && !n.config.static && h(window, "resize", e), window.ontouchstart === void 0 ? h(window.document, "mousedown", ue) : h(window.document, "touchstart", ue), h(window.document, "focus", ue, { capture: !0 }), n.config.clickOpens === !0 && (h(n._input, "focus", n.open), h(n._input, "click", n.open)), n.daysContainer !== void 0 && (h(n.monthNav, "click", He), h(n.monthNav, ["keyup", "increment"], m), h(n.daysContainer, "click", De)), n.timeContainer !== void 0 && n.minuteElement !== void 0 && n.hourElement !== void 0 && (h(n.timeContainer, ["increment"], c), h(n.timeContainer, "blur", c, { capture: !0 }), h(n.timeContainer, "click", y), h([n.hourElement, n.minuteElement], ["focus", "click"], function(e) {
|
|
3085
3085
|
return Qi(e).select();
|
|
3086
3086
|
}), n.secondElement !== void 0 && h(n.secondElement, "focus", function() {
|
|
3087
3087
|
return n.secondElement && n.secondElement.select();
|
|
@@ -3113,7 +3113,7 @@ function _a(e, t) {
|
|
|
3113
3113
|
var t = ae(), r = t.weekWrapper, i = t.weekNumbers;
|
|
3114
3114
|
n.innerContainer.appendChild(r), n.weekNumbers = i, n.weekWrapper = r;
|
|
3115
3115
|
}
|
|
3116
|
-
n.rContainer = Ji("div", "flatpickr-rContainer"), n.rContainer.appendChild(
|
|
3116
|
+
n.rContainer = Ji("div", "flatpickr-rContainer"), n.rContainer.appendChild(A()), n.daysContainer || (n.daysContainer = Ji("div", "flatpickr-days"), n.daysContainer.tabIndex = -1), ne(), n.rContainer.appendChild(n.daysContainer), n.innerContainer.appendChild(n.rContainer), e.appendChild(n.innerContainer);
|
|
3117
3117
|
}
|
|
3118
3118
|
n.config.enableTime && e.appendChild(re()), qi(n.calendarContainer, "rangeMode", n.config.mode === "range"), qi(n.calendarContainer, "animate", n.config.animate === !0), qi(n.calendarContainer, "multiMonth", n.config.showMonths > 1), n.calendarContainer.appendChild(e);
|
|
3119
3119
|
var a = n.config.appendTo !== void 0 && n.config.appendTo.nodeType !== void 0;
|
|
@@ -3124,28 +3124,28 @@ function _a(e, t) {
|
|
|
3124
3124
|
!n.config.static && !n.config.inline && (n.config.appendTo === void 0 ? window.document.body : n.config.appendTo).appendChild(n.calendarContainer);
|
|
3125
3125
|
}
|
|
3126
3126
|
function S(e, t, r, i) {
|
|
3127
|
-
var a =
|
|
3127
|
+
var a = fe(t, !0), o = Ji("span", e, t.getDate().toString());
|
|
3128
3128
|
return o.dateObj = t, o.$i = i, o.setAttribute("aria-label", n.formatDate(t, n.config.ariaDateFormat)), e.indexOf("hidden") === -1 && oa(t, n.now) === 0 && (n.todayDateElem = o, o.classList.add("today"), o.setAttribute("aria-current", "date")), a ? (o.tabIndex = -1, P(t) && (o.classList.add("selected"), n.selectedDateElem = o, n.config.mode === "range" && (qi(o, "startRange", n.selectedDates[0] && oa(t, n.selectedDates[0], !0) === 0), qi(o, "endRange", n.selectedDates[1] && oa(t, n.selectedDates[1], !0) === 0), e === "nextMonthDay" && o.classList.add("inRange")))) : o.classList.add("flatpickr-disabled"), n.config.mode === "range" && ze(t) && !P(t) && o.classList.add("inRange"), n.weekNumbers && n.config.showMonths === 1 && e !== "prevMonthDay" && i % 7 == 6 && n.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + n.config.getWeek(t) + "</span>"), N("onDayCreate", o), o;
|
|
3129
3129
|
}
|
|
3130
|
-
function
|
|
3130
|
+
function C(e) {
|
|
3131
3131
|
e.focus(), n.config.mode === "range" && ge(e);
|
|
3132
3132
|
}
|
|
3133
|
-
function
|
|
3133
|
+
function ee(e) {
|
|
3134
3134
|
for (var t = e > 0 ? 0 : n.config.showMonths - 1, r = e > 0 ? n.config.showMonths : -1, i = t; i != r; i += e) for (var a = n.daysContainer.children[i], o = e > 0 ? 0 : a.children.length - 1, s = e > 0 ? a.children.length : -1, c = o; c != s; c += e) {
|
|
3135
3135
|
var l = a.children[c];
|
|
3136
|
-
if (l.className.indexOf("hidden") === -1 &&
|
|
3136
|
+
if (l.className.indexOf("hidden") === -1 && fe(l.dateObj)) return l;
|
|
3137
3137
|
}
|
|
3138
3138
|
}
|
|
3139
3139
|
function w(e, t) {
|
|
3140
3140
|
for (var r = e.className.indexOf("Month") === -1 ? e.dateObj.getMonth() : n.currentMonth, i = t > 0 ? n.config.showMonths : -1, a = t > 0 ? 1 : -1, o = r - n.currentMonth; o != i; o += a) for (var s = n.daysContainer.children[o], c = r - n.currentMonth === o ? e.$i + t : t < 0 ? s.children.length - 1 : 0, l = s.children.length, u = c; u >= 0 && u < l && u != (t > 0 ? l : -1); u += a) {
|
|
3141
3141
|
var d = s.children[u];
|
|
3142
|
-
if (d.className.indexOf("hidden") === -1 &&
|
|
3142
|
+
if (d.className.indexOf("hidden") === -1 && fe(d.dateObj) && Math.abs(e.$i - u) >= Math.abs(t)) return C(d);
|
|
3143
3143
|
}
|
|
3144
|
-
n.changeMonth(a), T(
|
|
3144
|
+
n.changeMonth(a), T(ee(a), 0);
|
|
3145
3145
|
}
|
|
3146
3146
|
function T(e, t) {
|
|
3147
|
-
var r = a(), i = pe(r || document.body), o = e === void 0 ? i ? r : n.selectedDateElem !== void 0 && pe(n.selectedDateElem) ? n.selectedDateElem : n.todayDateElem !== void 0 && pe(n.todayDateElem) ? n.todayDateElem :
|
|
3148
|
-
o === void 0 ? n._input.focus() : i ? w(o, t) :
|
|
3147
|
+
var r = a(), i = pe(r || document.body), o = e === void 0 ? i ? r : n.selectedDateElem !== void 0 && pe(n.selectedDateElem) ? n.selectedDateElem : n.todayDateElem !== void 0 && pe(n.todayDateElem) ? n.todayDateElem : ee(t > 0 ? 1 : -1) : e;
|
|
3148
|
+
o === void 0 ? n._input.focus() : i ? w(o, t) : C(o);
|
|
3149
3149
|
}
|
|
3150
3150
|
function te(e, t) {
|
|
3151
3151
|
for (var r = (new Date(e, t, 1).getDay() - n.l10n.firstDayOfWeek + 7) % 7, i = n.utils.getDaysInMonth((t - 1 + 12) % 12, e), a = n.utils.getDaysInMonth(t, e), o = window.document.createDocumentFragment(), s = n.config.showMonths > 1, c = s ? "prevMonthDay hidden" : "prevMonthDay", l = s ? "nextMonthDay hidden" : "nextMonthDay", u = i + 1 - r, d = 0; u <= i; u++, d++) o.appendChild(S("flatpickr-day " + c, new Date(e, t - 1, u), u, d));
|
|
@@ -3230,15 +3230,15 @@ function _a(e, t) {
|
|
|
3230
3230
|
}
|
|
3231
3231
|
return n.config.time_24hr || (n.amPM = Ji("span", "flatpickr-am-pm", n.l10n.amPM[Wi((n.latestSelectedDateObj ? n.hourElement.value : n.config.defaultHour) > 11)]), n.amPM.title = n.l10n.toggleTitle, n.amPM.tabIndex = -1, n.timeContainer.appendChild(n.amPM)), n.timeContainer;
|
|
3232
3232
|
}
|
|
3233
|
-
function
|
|
3233
|
+
function A() {
|
|
3234
3234
|
n.weekdayContainer ? Yi(n.weekdayContainer) : n.weekdayContainer = Ji("div", "flatpickr-weekdays");
|
|
3235
3235
|
for (var e = n.config.showMonths; e--;) {
|
|
3236
3236
|
var t = Ji("div", "flatpickr-weekdaycontainer");
|
|
3237
3237
|
n.weekdayContainer.appendChild(t);
|
|
3238
3238
|
}
|
|
3239
|
-
return
|
|
3239
|
+
return ie(), n.weekdayContainer;
|
|
3240
3240
|
}
|
|
3241
|
-
function
|
|
3241
|
+
function ie() {
|
|
3242
3242
|
if (n.weekdayContainer) {
|
|
3243
3243
|
var e = n.l10n.firstDayOfWeek, t = ba(n.l10n.weekdays.shorthand);
|
|
3244
3244
|
e > 0 && e < t.length && (t = ba(t.splice(e, t.length), t.splice(0, e)));
|
|
@@ -3255,22 +3255,22 @@ function _a(e, t) {
|
|
|
3255
3255
|
weekNumbers: t
|
|
3256
3256
|
};
|
|
3257
3257
|
}
|
|
3258
|
-
function
|
|
3258
|
+
function j(e, t) {
|
|
3259
3259
|
t === void 0 && (t = !0);
|
|
3260
3260
|
var r = t ? e : e - n.currentMonth;
|
|
3261
3261
|
r < 0 && n._hidePrevMonthArrow === !0 || r > 0 && n._hideNextMonthArrow === !0 || (n.currentMonth += r, (n.currentMonth < 0 || n.currentMonth > 11) && (n.currentYear += n.currentMonth > 11 ? 1 : -1, n.currentMonth = (n.currentMonth + 12) % 12, N("onYearChange"), E()), ne(), N("onMonthChange"), Be());
|
|
3262
3262
|
}
|
|
3263
|
-
function
|
|
3263
|
+
function oe(e, t) {
|
|
3264
3264
|
if (e === void 0 && (e = !0), t === void 0 && (t = !0), n.input.value = "", n.altInput !== void 0 && (n.altInput.value = ""), n.mobileInput !== void 0 && (n.mobileInput.value = ""), n.selectedDates = [], n.latestSelectedDateObj = void 0, t === !0 && (n.currentYear = n._initialDate.getFullYear(), n.currentMonth = n._initialDate.getMonth()), n.config.enableTime === !0) {
|
|
3265
3265
|
var r = sa(n.config), i = r.hours, a = r.minutes, o = r.seconds;
|
|
3266
3266
|
p(i, a, o);
|
|
3267
3267
|
}
|
|
3268
3268
|
n.redraw(), e && N("onChange");
|
|
3269
3269
|
}
|
|
3270
|
-
function
|
|
3270
|
+
function se() {
|
|
3271
3271
|
n.isOpen = !1, n.isMobile || (n.calendarContainer !== void 0 && n.calendarContainer.classList.remove("open"), n._input !== void 0 && n._input.classList.remove("active")), N("onClose");
|
|
3272
3272
|
}
|
|
3273
|
-
function
|
|
3273
|
+
function ce() {
|
|
3274
3274
|
n.config !== void 0 && N("onDestroy");
|
|
3275
3275
|
for (var e = n._handlers.length; e--;) n._handlers[e].remove();
|
|
3276
3276
|
if (n._handlers = [], n.mobileInput) n.mobileInput.parentNode && n.mobileInput.parentNode.removeChild(n.mobileInput), n.mobileInput = void 0;
|
|
@@ -3287,24 +3287,24 @@ function _a(e, t) {
|
|
|
3287
3287
|
} catch {}
|
|
3288
3288
|
});
|
|
3289
3289
|
}
|
|
3290
|
-
function
|
|
3290
|
+
function le(e) {
|
|
3291
3291
|
return n.calendarContainer.contains(e);
|
|
3292
3292
|
}
|
|
3293
|
-
function
|
|
3293
|
+
function ue(e) {
|
|
3294
3294
|
if (n.isOpen && !n.config.inline) {
|
|
3295
|
-
var t = Qi(e), r =
|
|
3295
|
+
var t = Qi(e), r = le(t), i = !(t === n.input || t === n.altInput || n.element.contains(t) || e.path && e.path.indexOf && (~e.path.indexOf(n.input) || ~e.path.indexOf(n.altInput))) && !r && !le(e.relatedTarget), a = !n.config.ignoredFocusElements.some(function(e) {
|
|
3296
3296
|
return e.contains(t);
|
|
3297
3297
|
});
|
|
3298
3298
|
i && a && (n.config.allowInput && n.setDate(n._input.value, !1, n.config.altInput ? n.config.altFormat : n.config.dateFormat), n.timeContainer !== void 0 && n.minuteElement !== void 0 && n.hourElement !== void 0 && n.input.value !== "" && n.input.value !== void 0 && c(), n.close(), n.config && n.config.mode === "range" && n.selectedDates.length === 1 && n.clear(!1));
|
|
3299
3299
|
}
|
|
3300
3300
|
}
|
|
3301
|
-
function
|
|
3301
|
+
function de(e) {
|
|
3302
3302
|
if (!(!e || n.config.minDate && e < n.config.minDate.getFullYear() || n.config.maxDate && e > n.config.maxDate.getFullYear())) {
|
|
3303
3303
|
var t = e, r = n.currentYear !== t;
|
|
3304
3304
|
n.currentYear = t || n.currentYear, n.config.maxDate && n.currentYear === n.config.maxDate.getFullYear() ? n.currentMonth = Math.min(n.config.maxDate.getMonth(), n.currentMonth) : n.config.minDate && n.currentYear === n.config.minDate.getFullYear() && (n.currentMonth = Math.max(n.config.minDate.getMonth(), n.currentMonth)), r && (n.redraw(), N("onYearChange"), E());
|
|
3305
3305
|
}
|
|
3306
3306
|
}
|
|
3307
|
-
function
|
|
3307
|
+
function fe(e, t) {
|
|
3308
3308
|
t === void 0 && (t = !0);
|
|
3309
3309
|
var r = n.parseDate(e, void 0, t);
|
|
3310
3310
|
if (n.config.minDate && r && oa(r, n.config.minDate, t === void 0 ? !n.minDateHasTime : t) < 0 || n.config.maxDate && r && oa(r, n.config.maxDate, t === void 0 ? !n.maxDateHasTime : t) > 0) return !1;
|
|
@@ -3325,14 +3325,14 @@ function _a(e, t) {
|
|
|
3325
3325
|
}
|
|
3326
3326
|
function me(e) {
|
|
3327
3327
|
var t = e.target === n._input, r = n._input.value.trimEnd() !== F();
|
|
3328
|
-
t && r && !(e.relatedTarget &&
|
|
3328
|
+
t && r && !(e.relatedTarget && le(e.relatedTarget)) && n.setDate(n._input.value, !0, e.target === n.altInput ? n.config.altFormat : n.config.dateFormat);
|
|
3329
3329
|
}
|
|
3330
3330
|
function he(t) {
|
|
3331
3331
|
var r = Qi(t), i = n.config.wrap ? e.contains(r) : r === n._input, o = n.config.allowInput, s = n.isOpen && (!o || !i), l = n.config.inline && i && !o;
|
|
3332
3332
|
if (t.keyCode === 13 && i) {
|
|
3333
3333
|
if (o) return n.setDate(n._input.value, !0, r === n.altInput ? n.config.altFormat : n.config.dateFormat), n.close(), r.blur();
|
|
3334
3334
|
n.open();
|
|
3335
|
-
} else if (
|
|
3335
|
+
} else if (le(r) || s || l) {
|
|
3336
3336
|
var u = !!n.timeContainer && n.timeContainer.contains(r);
|
|
3337
3337
|
switch (t.keyCode) {
|
|
3338
3338
|
case 13:
|
|
@@ -3352,7 +3352,7 @@ function _a(e, t) {
|
|
|
3352
3352
|
var f = a();
|
|
3353
3353
|
if (n.daysContainer !== void 0 && (o === !1 || f && pe(f))) {
|
|
3354
3354
|
var p = t.keyCode === 39 ? 1 : -1;
|
|
3355
|
-
t.ctrlKey ? (t.stopPropagation(),
|
|
3355
|
+
t.ctrlKey ? (t.stopPropagation(), j(p), T(ee(1), 0)) : T(void 0, p);
|
|
3356
3356
|
}
|
|
3357
3357
|
} else n.hourElement && n.hourElement.focus();
|
|
3358
3358
|
break;
|
|
@@ -3360,7 +3360,7 @@ function _a(e, t) {
|
|
|
3360
3360
|
case 40:
|
|
3361
3361
|
t.preventDefault();
|
|
3362
3362
|
var m = t.keyCode === 40 ? 1 : -1;
|
|
3363
|
-
n.daysContainer && r.$i !== void 0 || r === n.input || r === n.altInput ? t.ctrlKey ? (t.stopPropagation(),
|
|
3363
|
+
n.daysContainer && r.$i !== void 0 || r === n.input || r === n.altInput ? t.ctrlKey ? (t.stopPropagation(), de(n.currentYear - m), T(ee(1), 0)) : u || T(void 0, m * 7) : r === n.currentYearElement ? de(n.currentYear - m) : n.config.enableTime && (!u && n.hourElement && n.hourElement.focus(), c(t), n._debouncedChange());
|
|
3364
3364
|
break;
|
|
3365
3365
|
case 9: if (u) {
|
|
3366
3366
|
var h = [
|
|
@@ -3386,11 +3386,11 @@ function _a(e, t) {
|
|
|
3386
3386
|
case n.l10n.amPM[1].charAt(0):
|
|
3387
3387
|
case n.l10n.amPM[1].charAt(0).toLowerCase(): n.amPM.textContent = n.l10n.amPM[1], d(), Ve();
|
|
3388
3388
|
}
|
|
3389
|
-
(i ||
|
|
3389
|
+
(i || le(r)) && N("onKeyDown", t);
|
|
3390
3390
|
}
|
|
3391
3391
|
function ge(e, t) {
|
|
3392
3392
|
if (t === void 0 && (t = "flatpickr-day"), !(n.selectedDates.length !== 1 || e && (!e.classList.contains(t) || e.classList.contains("flatpickr-disabled")))) {
|
|
3393
|
-
for (var r = e ? e.dateObj.getTime() : n.days.firstElementChild.dateObj.getTime(), i = n.parseDate(n.selectedDates[0], void 0, !0).getTime(), a = Math.min(r, n.selectedDates[0].getTime()), o = Math.max(r, n.selectedDates[0].getTime()), s = !1, c = 0, l = 0, u = a; u < o; u += pa.DAY)
|
|
3393
|
+
for (var r = e ? e.dateObj.getTime() : n.days.firstElementChild.dateObj.getTime(), i = n.parseDate(n.selectedDates[0], void 0, !0).getTime(), a = Math.min(r, n.selectedDates[0].getTime()), o = Math.max(r, n.selectedDates[0].getTime()), s = !1, c = 0, l = 0, u = a; u < o; u += pa.DAY) fe(new Date(u), !0) || (s ||= u > a && u < o, u < i && (!c || u > c) ? c = u : u > i && (!l || u < l) && (l = u));
|
|
3394
3394
|
Array.from(n.rContainer.querySelectorAll("*:nth-child(-n+" + n.config.showMonths + ") > ." + t)).forEach(function(t) {
|
|
3395
3395
|
var a = t.dateObj.getTime(), o = c > 0 && a < c || l > 0 && a > l;
|
|
3396
3396
|
if (o) {
|
|
@@ -3438,7 +3438,7 @@ function _a(e, t) {
|
|
|
3438
3438
|
return function(t) {
|
|
3439
3439
|
var r = n.config["_" + e + "Date"] = n.parseDate(t, n.config.dateFormat), i = n.config["_" + (e === "min" ? "max" : "min") + "Date"];
|
|
3440
3440
|
r !== void 0 && (n[e === "min" ? "minDateHasTime" : "maxDateHasTime"] = r.getHours() > 0 || r.getMinutes() > 0 || r.getSeconds() > 0), n.selectedDates && (n.selectedDates = n.selectedDates.filter(function(e) {
|
|
3441
|
-
return
|
|
3441
|
+
return fe(e);
|
|
3442
3442
|
}), !n.selectedDates.length && e === "min" && f(r), Ve()), n.daysContainer && (M(), r === void 0 ? n.currentYearElement.removeAttribute(e) : n.currentYearElement[e] = r.getFullYear().toString(), n.currentYearElement.disabled = !!i && r !== void 0 && i.getFullYear() === r.getFullYear());
|
|
3443
3443
|
};
|
|
3444
3444
|
}
|
|
@@ -3550,8 +3550,8 @@ function _a(e, t) {
|
|
|
3550
3550
|
else {
|
|
3551
3551
|
var v = we();
|
|
3552
3552
|
if (v === void 0) return;
|
|
3553
|
-
var y = window.document.body.offsetWidth, b = Math.max(0, y / 2 - i / 2), x = ".flatpickr-calendar.centerMost:before", S = ".flatpickr-calendar.centerMost:after",
|
|
3554
|
-
qi(n.calendarContainer, "rightMost", !1), qi(n.calendarContainer, "centerMost", !0), v.insertRule(x + "," + S +
|
|
3553
|
+
var y = window.document.body.offsetWidth, b = Math.max(0, y / 2 - i / 2), x = ".flatpickr-calendar.centerMost:before", S = ".flatpickr-calendar.centerMost:after", C = v.cssRules.length, ee = "{left:" + c.left + "px;right:auto;}";
|
|
3554
|
+
qi(n.calendarContainer, "rightMost", !1), qi(n.calendarContainer, "centerMost", !0), v.insertRule(x + "," + S + ee, C), n.calendarContainer.style.left = b + "px", n.calendarContainer.style.right = "auto";
|
|
3555
3555
|
}
|
|
3556
3556
|
}
|
|
3557
3557
|
}
|
|
@@ -3599,7 +3599,7 @@ function _a(e, t) {
|
|
|
3599
3599
|
var s = n.currentYear !== i.getFullYear();
|
|
3600
3600
|
n.currentYear = i.getFullYear(), n.currentMonth = i.getMonth(), s && (N("onYearChange"), E()), N("onMonthChange");
|
|
3601
3601
|
}
|
|
3602
|
-
if (Be(), ne(), Ve(), !a && n.config.mode !== "range" && n.config.showMonths === 1 ?
|
|
3602
|
+
if (Be(), ne(), Ve(), !a && n.config.mode !== "range" && n.config.showMonths === 1 ? C(r) : n.selectedDateElem !== void 0 && n.hourElement === void 0 && n.selectedDateElem && n.selectedDateElem.focus(), n.hourElement !== void 0 && n.hourElement !== void 0 && n.hourElement.focus(), n.config.closeOnSelect) {
|
|
3603
3603
|
var c = n.config.mode === "single" && !n.config.enableTime, l = n.config.mode === "range" && n.selectedDates.length === 2 && !n.config.enableTime;
|
|
3604
3604
|
(c || l) && Ee();
|
|
3605
3605
|
}
|
|
@@ -3607,11 +3607,11 @@ function _a(e, t) {
|
|
|
3607
3607
|
}
|
|
3608
3608
|
}
|
|
3609
3609
|
var Oe = {
|
|
3610
|
-
locale: [Se,
|
|
3610
|
+
locale: [Se, ie],
|
|
3611
3611
|
showMonths: [
|
|
3612
3612
|
O,
|
|
3613
3613
|
s,
|
|
3614
|
-
|
|
3614
|
+
A
|
|
3615
3615
|
],
|
|
3616
3616
|
minDate: [v],
|
|
3617
3617
|
maxDate: [v],
|
|
@@ -3651,7 +3651,7 @@ function _a(e, t) {
|
|
|
3651
3651
|
}
|
|
3652
3652
|
else n.config.errorHandler(/* @__PURE__ */ Error("Invalid date supplied: " + JSON.stringify(e)));
|
|
3653
3653
|
n.selectedDates = n.config.allowInvalidPreload ? r : r.filter(function(e) {
|
|
3654
|
-
return e instanceof Date &&
|
|
3654
|
+
return e instanceof Date && fe(e, !1);
|
|
3655
3655
|
}), n.config.mode === "range" && n.selectedDates.sort(function(e, t) {
|
|
3656
3656
|
return e.getTime() - t.getTime();
|
|
3657
3657
|
});
|
|
@@ -3739,7 +3739,7 @@ function _a(e, t) {
|
|
|
3739
3739
|
}
|
|
3740
3740
|
function He(e) {
|
|
3741
3741
|
var t = Qi(e), r = n.prevMonthNav.contains(t), i = n.nextMonthNav.contains(t);
|
|
3742
|
-
r || i ?
|
|
3742
|
+
r || i ? j(r ? -1 : 1) : n.yearElements.indexOf(t) >= 0 ? t.select() : t.classList.contains("arrowUp") ? n.changeYear(n.currentYear + 1) : t.classList.contains("arrowDown") && n.changeYear(n.currentYear - 1);
|
|
3743
3743
|
}
|
|
3744
3744
|
function Ue(e) {
|
|
3745
3745
|
e.preventDefault();
|
|
@@ -4143,11 +4143,11 @@ function Ia(e, t) {
|
|
|
4143
4143
|
}
|
|
4144
4144
|
}, v = Pa(), y = U(v), b = W(U(y), 2), x = U(b), S = W(x, 2);
|
|
4145
4145
|
yi(S), On(() => Ti(S, n)), oi(S, (e, t) => h?.(e, t), n);
|
|
4146
|
-
var
|
|
4146
|
+
var C = W(S, 2);
|
|
4147
4147
|
Ve(2), F(b), F(y);
|
|
4148
|
-
var
|
|
4149
|
-
F(w), oi(w, (e, t) => h?.(e, t), a), F(
|
|
4150
|
-
var te = W(
|
|
4148
|
+
var ee = W(y, 2), w = W(U(ee), 2), T = U(w, !0);
|
|
4149
|
+
F(w), oi(w, (e, t) => h?.(e, t), a), F(ee);
|
|
4150
|
+
var te = W(ee, 2), ne = W(U(te), 2);
|
|
4151
4151
|
yi(ne), Ai(ne, (e) => d = e, () => d), F(te);
|
|
4152
4152
|
var E = W(te, 2), D = (e) => {
|
|
4153
4153
|
var t = Na(), n = U(t), r = U(n, !0);
|
|
@@ -4156,8 +4156,8 @@ function Ia(e, t) {
|
|
|
4156
4156
|
return Q(E, (e) => {
|
|
4157
4157
|
o() && e(D);
|
|
4158
4158
|
}), F(v), G(() => {
|
|
4159
|
-
x.disabled = u(), xi(S, "min", s()), xi(S, "max", c()), S.disabled = u(),
|
|
4160
|
-
}), Tr("click", x, () => m(-1)), Tr("click",
|
|
4159
|
+
x.disabled = u(), xi(S, "min", s()), xi(S, "max", c()), S.disabled = u(), C.disabled = u(), Z(T, a()), bi(ne, J(g)), ne.disabled = u();
|
|
4160
|
+
}), Tr("click", x, () => m(-1)), Tr("click", C, () => m(1)), X(e, v), Xe(_);
|
|
4161
4161
|
}
|
|
4162
4162
|
Er(["click"]), Ii(Ia, {
|
|
4163
4163
|
loa: {},
|
|
@@ -4256,6 +4256,7 @@ function Ga(e) {
|
|
|
4256
4256
|
}
|
|
4257
4257
|
function Ka(e) {
|
|
4258
4258
|
return {
|
|
4259
|
+
signInRequired: e?.sign_in_required === !0,
|
|
4259
4260
|
uploadsAvailable: e?.document_uploads === !0,
|
|
4260
4261
|
requirements: (Array.isArray(e?.requirements) ? e.requirements : []).map((e) => ({
|
|
4261
4262
|
id: String(e.id),
|
|
@@ -4438,7 +4439,7 @@ var go = /* @__PURE__ */ Y("<div class=\"sbm-info svelte-yb07tk\"><span class=\"
|
|
|
4438
4439
|
};
|
|
4439
4440
|
function yo(e, t) {
|
|
4440
4441
|
Ye(t, !0), ai(e, vo);
|
|
4441
|
-
let n = $(t, "mapsApiKey", 7), r = $(t, "mapStyle", 7), i = $(t, "center", 7), a = $(t, "navy", 7), o = $(t, "gold", 7), s = $(t, "sea", 7, ""), c = $(t, "logoMark", 7, null), l = $(t, "marinaName", 7, ""), u = $(t, "otherMarinas", 7), d = $(t, "berths", 7), f = $(t, "overlays", 7), p = $(t, "layout", 7), m = $(t, "loa", 7), h = $(t, "selectedBerth", 7), g = $(t, "onBerthClick", 7), _ = $(t, "staff", 7, !1), v = $(t, "fitInset", 7), y = $(t, "info", 7, null), b, x = /* @__PURE__ */ V(null), S = /* @__PURE__ */ new Map(),
|
|
4442
|
+
let n = $(t, "mapsApiKey", 7), r = $(t, "mapStyle", 7), i = $(t, "center", 7), a = $(t, "navy", 7), o = $(t, "gold", 7), s = $(t, "sea", 7, ""), c = $(t, "logoMark", 7, null), l = $(t, "marinaName", 7, ""), u = $(t, "otherMarinas", 7), d = $(t, "berths", 7), f = $(t, "overlays", 7), p = $(t, "layout", 7), m = $(t, "loa", 7), h = $(t, "selectedBerth", 7), g = $(t, "onBerthClick", 7), _ = $(t, "staff", 7, !1), v = $(t, "fitInset", 7), y = $(t, "info", 7, null), b, x = /* @__PURE__ */ V(null), S = /* @__PURE__ */ new Map(), C = [], ee = [], w = !1;
|
|
4442
4443
|
function T() {
|
|
4443
4444
|
let e = v()?.() ?? 0;
|
|
4444
4445
|
return e > 0 ? {
|
|
@@ -4481,23 +4482,23 @@ function yo(e, t) {
|
|
|
4481
4482
|
strokeColor: a(),
|
|
4482
4483
|
strokeOpacity: 1,
|
|
4483
4484
|
strokeWeight: 1.6
|
|
4484
|
-
})), re = (e) => Math.max(5, e.lengthM || 15),
|
|
4485
|
+
})), re = (e) => Math.max(5, e.lengthM || 15), A = (e, t) => e.angle == null ? e.circle.setRadius(re(e.berth) * t) : e.circle.setPaths(ho(e.berth, e.angle, fo, t)), ie = /* @__PURE__ */ new WeakMap();
|
|
4485
4486
|
function ae(e) {
|
|
4486
4487
|
let t = e.circle, n = Symbol();
|
|
4487
|
-
|
|
4488
|
+
ie.set(t, n);
|
|
4488
4489
|
let r = performance.now(), i = (a) => {
|
|
4489
|
-
if (
|
|
4490
|
+
if (ie.get(t) !== n) return;
|
|
4490
4491
|
let o = a - r;
|
|
4491
4492
|
if (o >= 260) {
|
|
4492
|
-
|
|
4493
|
+
A(e, 1);
|
|
4493
4494
|
return;
|
|
4494
4495
|
}
|
|
4495
4496
|
let s = o < 90 ? o / 90 : 1 - (o - 90) / 170, c = s * (2 - s);
|
|
4496
|
-
|
|
4497
|
+
A(e, 1 + .18 * c), requestAnimationFrame(i);
|
|
4497
4498
|
};
|
|
4498
4499
|
requestAnimationFrame(i);
|
|
4499
4500
|
}
|
|
4500
|
-
let
|
|
4501
|
+
let j = [
|
|
4501
4502
|
{
|
|
4502
4503
|
elementType: "geometry",
|
|
4503
4504
|
stylers: [{ color: "#ffffff" }]
|
|
@@ -4555,7 +4556,7 @@ function yo(e, t) {
|
|
|
4555
4556
|
elementType: "labels.text.fill",
|
|
4556
4557
|
stylers: [{ color: "#aab0b4" }]
|
|
4557
4558
|
}
|
|
4558
|
-
],
|
|
4559
|
+
], oe = /* @__PURE__ */ L(() => [
|
|
4559
4560
|
{
|
|
4560
4561
|
elementType: "geometry",
|
|
4561
4562
|
stylers: [{ color: "#f5efe4" }]
|
|
@@ -4637,7 +4638,7 @@ function yo(e, t) {
|
|
|
4637
4638
|
stylers: [{ color: s() || a() }]
|
|
4638
4639
|
}
|
|
4639
4640
|
]);
|
|
4640
|
-
class
|
|
4641
|
+
class se {
|
|
4641
4642
|
position;
|
|
4642
4643
|
href;
|
|
4643
4644
|
img;
|
|
@@ -4672,7 +4673,7 @@ function yo(e, t) {
|
|
|
4672
4673
|
this.overlayView.setMap(e);
|
|
4673
4674
|
}
|
|
4674
4675
|
}
|
|
4675
|
-
let
|
|
4676
|
+
let ce = {
|
|
4676
4677
|
available: {
|
|
4677
4678
|
fill: "rgba(16,185,129,0.3)",
|
|
4678
4679
|
stroke: "#10b981"
|
|
@@ -4690,7 +4691,7 @@ function yo(e, t) {
|
|
|
4690
4691
|
stroke: "rgba(136,136,136,0.4)"
|
|
4691
4692
|
}
|
|
4692
4693
|
};
|
|
4693
|
-
function
|
|
4694
|
+
function le(e) {
|
|
4694
4695
|
let t = {};
|
|
4695
4696
|
for (let e of d()) e.berthId && (t[e.berthId] = {
|
|
4696
4697
|
price: e.pricePerNight,
|
|
@@ -4703,7 +4704,7 @@ function yo(e, t) {
|
|
|
4703
4704
|
r?.price != null && e.setAttribute("data-price", String(r.price));
|
|
4704
4705
|
let i = r?.status ?? "occupied";
|
|
4705
4706
|
e.setAttribute("data-status", i), _() && r && e.setAttribute("data-pick", "1");
|
|
4706
|
-
let a =
|
|
4707
|
+
let a = ce[i] ?? ce.occupied, o = e.querySelector("rect:not([data-role]), circle");
|
|
4707
4708
|
o && (o.setAttribute("fill", a.fill), o.setAttribute("stroke", a.stroke));
|
|
4708
4709
|
let s = e.querySelector("[data-role=\"entrance\"]");
|
|
4709
4710
|
s && s.setAttribute("fill", a.stroke);
|
|
@@ -4739,7 +4740,7 @@ function yo(e, t) {
|
|
|
4739
4740
|
return e;
|
|
4740
4741
|
}
|
|
4741
4742
|
}
|
|
4742
|
-
class
|
|
4743
|
+
class ue {
|
|
4743
4744
|
bounds;
|
|
4744
4745
|
svgData;
|
|
4745
4746
|
rotation;
|
|
@@ -4756,7 +4757,7 @@ function yo(e, t) {
|
|
|
4756
4757
|
lat: e.neLat,
|
|
4757
4758
|
lng: e.neLng
|
|
4758
4759
|
}
|
|
4759
|
-
}, this.svgData =
|
|
4760
|
+
}, this.svgData = le(e.svgData), this.rotation = e.rotation ?? 0, this.overlayView.onAdd = () => {
|
|
4760
4761
|
this.div = document.createElement("div"), this.div.style.cssText = "position:absolute;pointer-events:none;transform-origin:center center;", this.div.innerHTML = this.svgData;
|
|
4761
4762
|
let e = this.div.querySelector("svg");
|
|
4762
4763
|
e && (e.style.width = "100%", e.style.height = "100%"), this.div.addEventListener("click", (e) => {
|
|
@@ -4764,7 +4765,7 @@ function yo(e, t) {
|
|
|
4764
4765
|
if (!t || !(_() ? t.getAttribute("data-pick") === "1" : t.getAttribute("data-status") === "available" && !t.hasAttribute("data-fit"))) return;
|
|
4765
4766
|
let n = t.getAttribute("data-berth-id");
|
|
4766
4767
|
g()(h() === n ? null : n);
|
|
4767
|
-
}), this.overlayView.getPanes().overlayMouseTarget.appendChild(this.div),
|
|
4768
|
+
}), this.overlayView.getPanes().overlayMouseTarget.appendChild(this.div), de();
|
|
4768
4769
|
}, this.overlayView.draw = () => {
|
|
4769
4770
|
if (!this.div) return;
|
|
4770
4771
|
let e = this.overlayView.getProjection();
|
|
@@ -4779,7 +4780,7 @@ function yo(e, t) {
|
|
|
4779
4780
|
this.overlayView.setMap(e);
|
|
4780
4781
|
}
|
|
4781
4782
|
}
|
|
4782
|
-
function
|
|
4783
|
+
function de() {
|
|
4783
4784
|
let e = b?.getRootNode();
|
|
4784
4785
|
if (!e) return;
|
|
4785
4786
|
let t = new Map(d().map((e) => [e.berthId, e]));
|
|
@@ -4788,24 +4789,24 @@ function yo(e, t) {
|
|
|
4788
4789
|
!_() && r && !ro(r, m()) ? e.setAttribute("data-fit", "small") : e.removeAttribute("data-fit"), n === h() ? e.setAttribute("data-selected", "1") : e.removeAttribute("data-selected");
|
|
4789
4790
|
});
|
|
4790
4791
|
}
|
|
4791
|
-
let
|
|
4792
|
+
let fe = /* @__PURE__ */ V(null), pe = null, me = 0, he = () => {
|
|
4792
4793
|
me ||= requestAnimationFrame(() => {
|
|
4793
4794
|
me = 0, ge();
|
|
4794
4795
|
});
|
|
4795
4796
|
};
|
|
4796
4797
|
function ge() {
|
|
4797
4798
|
if (!J(x) || !b || !h()) {
|
|
4798
|
-
H(
|
|
4799
|
+
H(fe, null);
|
|
4799
4800
|
return;
|
|
4800
4801
|
}
|
|
4801
4802
|
if (r() === "coastal") {
|
|
4802
4803
|
let e = b.getRootNode().querySelector(`[data-berth-id="${CSS.escape(h())}"]`);
|
|
4803
4804
|
if (!e) {
|
|
4804
|
-
H(
|
|
4805
|
+
H(fe, null);
|
|
4805
4806
|
return;
|
|
4806
4807
|
}
|
|
4807
4808
|
let t = e.getBoundingClientRect(), n = b.getBoundingClientRect();
|
|
4808
|
-
H(
|
|
4809
|
+
H(fe, {
|
|
4809
4810
|
x: t.left + t.width / 2 - n.left,
|
|
4810
4811
|
y: t.top - n.top
|
|
4811
4812
|
}, !0);
|
|
@@ -4813,11 +4814,11 @@ function yo(e, t) {
|
|
|
4813
4814
|
}
|
|
4814
4815
|
let e = S.get(h()), t = pe?.getProjection();
|
|
4815
4816
|
if (!e || !t || e.berth.lat == null || e.berth.lng == null) {
|
|
4816
|
-
H(
|
|
4817
|
+
H(fe, null);
|
|
4817
4818
|
return;
|
|
4818
4819
|
}
|
|
4819
4820
|
let n = window.google.maps, i = t.fromLatLngToContainerPixel(new n.LatLng(e.berth.lat, e.berth.lng)), a = e.angle == null ? [e.circle.getBounds().getNorthEast()] : e.circle.getPath().getArray();
|
|
4820
|
-
H(
|
|
4821
|
+
H(fe, {
|
|
4821
4822
|
x: i.x,
|
|
4822
4823
|
y: Math.min(i.y, ...a.map((e) => t.fromLatLngToContainerPixel(e).y))
|
|
4823
4824
|
}, !0);
|
|
@@ -4843,7 +4844,7 @@ function yo(e, t) {
|
|
|
4843
4844
|
zoom: 15,
|
|
4844
4845
|
disableDefaultUI: !0,
|
|
4845
4846
|
zoomControl: !0,
|
|
4846
|
-
styles: r() === "coastal" ? J(
|
|
4847
|
+
styles: r() === "coastal" ? J(oe) : j,
|
|
4847
4848
|
backgroundColor: r() === "coastal" ? "#f5efe4" : "#ffffff"
|
|
4848
4849
|
});
|
|
4849
4850
|
t.event.addListenerOnce(n, "idle", () => {
|
|
@@ -4857,7 +4858,7 @@ function yo(e, t) {
|
|
|
4857
4858
|
wn(() => {
|
|
4858
4859
|
!J(x) || i().lat === ve && i().lng === ye || (ve = i().lat, ye = i().lng, J(x).setCenter(i()));
|
|
4859
4860
|
}), wn(() => {
|
|
4860
|
-
h(), m(), d(), _(),
|
|
4861
|
+
h(), m(), d(), _(), de();
|
|
4861
4862
|
});
|
|
4862
4863
|
function be() {
|
|
4863
4864
|
if (!J(x) || r() !== "chart") return;
|
|
@@ -4909,21 +4910,21 @@ function yo(e, t) {
|
|
|
4909
4910
|
}
|
|
4910
4911
|
}), wn(() => {
|
|
4911
4912
|
if (!J(x)) return;
|
|
4912
|
-
for (let e of
|
|
4913
|
+
for (let e of C) e.setMap(null);
|
|
4913
4914
|
let e = [];
|
|
4914
|
-
c() && e.push(new
|
|
4915
|
-
for (let t of u()) t.logoMark && e.push(new
|
|
4915
|
+
c() && e.push(new se(i(), c(), l(), null));
|
|
4916
|
+
for (let t of u()) t.logoMark && e.push(new se({
|
|
4916
4917
|
lat: t.lat,
|
|
4917
4918
|
lng: t.lng
|
|
4918
4919
|
}, t.logoMark, t.name, t.href));
|
|
4919
4920
|
for (let t of e) t.setMap(J(x));
|
|
4920
|
-
|
|
4921
|
+
C = e;
|
|
4921
4922
|
}), wn(() => {
|
|
4922
4923
|
if (!J(x) || r() !== "coastal") return;
|
|
4923
|
-
for (let e of
|
|
4924
|
+
for (let e of ee) e.setMap(null);
|
|
4924
4925
|
let e = f().length ? f() : p() ? [p()] : [];
|
|
4925
|
-
if (
|
|
4926
|
-
let t = new
|
|
4926
|
+
if (ee = e.map((e) => {
|
|
4927
|
+
let t = new ue(e);
|
|
4927
4928
|
return t.setMap(J(x)), t;
|
|
4928
4929
|
}), e.length && !w) {
|
|
4929
4930
|
w = !0;
|
|
@@ -5063,11 +5064,11 @@ function yo(e, t) {
|
|
|
5063
5064
|
F(i);
|
|
5064
5065
|
var o = W(i, 2), s = U(o, !0);
|
|
5065
5066
|
F(o), F(t), G(() => {
|
|
5066
|
-
mi(t, `left: ${J(
|
|
5067
|
+
mi(t, `left: ${J(fe).x ?? ""}px; top: ${J(fe).y ?? ""}px;`), Z(r, y().title), Z(a, y().price), Z(s, y().note);
|
|
5067
5068
|
}), X(e, t);
|
|
5068
5069
|
};
|
|
5069
5070
|
return Q(Te, (e) => {
|
|
5070
|
-
y() && J(
|
|
5071
|
+
y() && J(fe) && e(M);
|
|
5071
5072
|
}), F(Ce), X(e, Ce), Xe(Se);
|
|
5072
5073
|
}
|
|
5073
5074
|
Ii(yo, {
|
|
@@ -5285,7 +5286,18 @@ async function Vo(e, t, n) {
|
|
|
5285
5286
|
async function Ho(e, t, n) {
|
|
5286
5287
|
return Xa((await Mo(Po(e, t, n, "/cancel"), "Could not cancel the booking", No({}, Fo(n)))).booking);
|
|
5287
5288
|
}
|
|
5288
|
-
async function Uo(e, t, n) {
|
|
5289
|
+
async function Uo(e, t, n, r) {
|
|
5290
|
+
return $a(await Mo(Po(e, t, n, `/documents?requirement_id=${encodeURIComponent(r.requirementId)}`), "Upload failed", {
|
|
5291
|
+
method: "POST",
|
|
5292
|
+
headers: {
|
|
5293
|
+
...Fo(n),
|
|
5294
|
+
"Content-Type": r.contentType,
|
|
5295
|
+
"X-File-Name": lo(r.fileName)
|
|
5296
|
+
},
|
|
5297
|
+
body: r.blob
|
|
5298
|
+
}));
|
|
5299
|
+
}
|
|
5300
|
+
async function Wo(e, t, n) {
|
|
5289
5301
|
await Mo(`${e}/api/sailor/documents?${n.documentId ? `document_id=${encodeURIComponent(n.documentId)}` : `type=${encodeURIComponent(n.type)}`}`, "Upload failed", {
|
|
5290
5302
|
method: "POST",
|
|
5291
5303
|
headers: {
|
|
@@ -5296,10 +5308,10 @@ async function Uo(e, t, n) {
|
|
|
5296
5308
|
body: n.blob
|
|
5297
5309
|
}, !0);
|
|
5298
5310
|
}
|
|
5299
|
-
async function
|
|
5311
|
+
async function Go(e, t, n) {
|
|
5300
5312
|
return Qa(await Mo(Po(e, t, n, "/contract"), "Could not record your agreement", No({}, Fo(n))));
|
|
5301
5313
|
}
|
|
5302
|
-
async function
|
|
5314
|
+
async function Ko(e, t, n) {
|
|
5303
5315
|
try {
|
|
5304
5316
|
return await Mo(Po(e, t, n, "/ably-token"), "Live updates are unavailable", { headers: Fo(n) });
|
|
5305
5317
|
} catch (e) {
|
|
@@ -5307,8 +5319,8 @@ async function Go(e, t, n) {
|
|
|
5307
5319
|
throw e;
|
|
5308
5320
|
}
|
|
5309
5321
|
}
|
|
5310
|
-
var
|
|
5311
|
-
async function
|
|
5322
|
+
var qo = 2e3, Jo = "Please upload a PDF, JPEG or PNG";
|
|
5323
|
+
async function Yo(e) {
|
|
5312
5324
|
if (e.type === "application/pdf" || !e.type && /\.pdf$/i.test(e.name)) {
|
|
5313
5325
|
if (e.size > 4194304) throw Error("PDF files must be 4 MB or smaller");
|
|
5314
5326
|
return {
|
|
@@ -5326,12 +5338,12 @@ async function Jo(e) {
|
|
|
5326
5338
|
try {
|
|
5327
5339
|
t = await createImageBitmap(e);
|
|
5328
5340
|
} catch {
|
|
5329
|
-
throw Error(
|
|
5341
|
+
throw Error(Jo);
|
|
5330
5342
|
}
|
|
5331
|
-
let n = Math.min(1,
|
|
5343
|
+
let n = Math.min(1, qo / Math.max(t.width, t.height)), r = document.createElement("canvas");
|
|
5332
5344
|
r.width = Math.round(t.width * n), r.height = Math.round(t.height * n);
|
|
5333
5345
|
let i = r.getContext("2d");
|
|
5334
|
-
if (!i) throw Error(
|
|
5346
|
+
if (!i) throw Error(Jo);
|
|
5335
5347
|
i.drawImage(t, 0, 0, r.width, r.height), t.close();
|
|
5336
5348
|
let a = `${e.name.replace(/\.[^.]*$/, "")}.jpg`;
|
|
5337
5349
|
for (let e of [.85, .7]) {
|
|
@@ -5346,38 +5358,38 @@ async function Jo(e) {
|
|
|
5346
5358
|
}
|
|
5347
5359
|
//#endregion
|
|
5348
5360
|
//#region src/components/DocumentsStep.svelte
|
|
5349
|
-
var
|
|
5361
|
+
var Xo = /* @__PURE__ */ Y("<div class=\"sbw-sailor svelte-1d47278\"><span class=\"sbw-sailor-email svelte-1d47278\"> <strong> </strong></span> <button type=\"button\" class=\"sbw-link svelte-1d47278\"> </button></div>"), Zo = /* @__PURE__ */ Y("<p class=\"sbw-docs-note svelte-1d47278\"> </p>"), Qo = /* @__PURE__ */ Y("<p class=\"sbw-docs-note svelte-1d47278\"> </p> <!>", 1), $o = /* @__PURE__ */ Pr("<svg class=\"sbw-spin svelte-1d47278\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\"><path d=\"M21 12a9 9 0 1 1-6.219-8.56\"></path></svg>"), es = /* @__PURE__ */ Pr("<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12.5l4.5 4.5L19 7.5\"></path></svg>"), ts = /* @__PURE__ */ Pr("<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12\"></path></svg>"), ns = /* @__PURE__ */ Y("<div class=\"sbw-doc-icon svelte-1d47278\" aria-hidden=\"true\"><!></div>"), rs = /* @__PURE__ */ Y("<span class=\"sbw-required svelte-1d47278\">*</span>"), is = /* @__PURE__ */ Y("<div> </div>"), as = /* @__PURE__ */ Y("<span class=\"sbw-doc-cta svelte-1d47278\"> </span>"), os = /* @__PURE__ */ Y("<input type=\"file\" accept=\"image/*,application/pdf\" class=\"sbw-visually-hidden svelte-1d47278\"/>"), ss = /* @__PURE__ */ Y("<div class=\"sbw-doc-main svelte-1d47278\"><!> <div class=\"sbw-doc-text svelte-1d47278\"><div class=\"sbw-doc-name svelte-1d47278\"> <!></div> <!></div></div> <!> <!>", 1), cs = /* @__PURE__ */ Y("<div class=\"sbw-docs-error svelte-1d47278\" role=\"alert\"> </div>"), ls = /* @__PURE__ */ Y("<p class=\"sbw-docs-error svelte-1d47278\" role=\"alert\"> </p>"), us = /* @__PURE__ */ Y("<!> <!> <!> <!>", 1), ds = /* @__PURE__ */ Y("<p class=\"sbw-docs-error svelte-1d47278\" role=\"alert\"> </p> <button type=\"button\" class=\"sbw-auth-btn svelte-1d47278\"> </button>", 1), fs = /* @__PURE__ */ Y("<div class=\"sbw-auth-actions svelte-1d47278\"><button type=\"button\" class=\"sbw-auth-btn sbw-auth-primary svelte-1d47278\"> </button></div> <!>", 1), ps = /* @__PURE__ */ Y("<img class=\"sbw-signin-logo svelte-1d47278\" alt=\"\"/>"), ms = /* @__PURE__ */ Y("<div><div class=\"sbw-docs-heading svelte-1d47278\"> </div> <!> <!> <!> <!></div> <dialog aria-labelledby=\"sbw-signin-title\"><!> <h2 id=\"sbw-signin-title\" class=\"sbw-signin-title svelte-1d47278\"> </h2> <p class=\"sbw-signin-body svelte-1d47278\"> </p> <div class=\"sbw-signin-actions svelte-1d47278\"><button type=\"button\" class=\"sbw-auth-btn sbw-auth-primary svelte-1d47278\"> </button> <button type=\"button\" class=\"sbw-link svelte-1d47278\"> </button></div></dialog>", 1), hs = {
|
|
5350
5362
|
hash: "svelte-1d47278",
|
|
5351
|
-
code: ".sbw-docs.svelte-1d47278 {display:flex;flex-direction:column;gap:12px;padding:20px;color:var(--brand-ink, #252525);}.sbw-docs-heading.svelte-1d47278 {font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#252525;}.sbw-docs-note.svelte-1d47278 {margin:0;font-size:13px;color:#666;line-height:1.6;}.sbw-docs-error.svelte-1d47278 {margin:0;font-size:14px;color:#cc4949;}.sbw-sailor.svelte-1d47278 {display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid #e4e7ec;border-radius:var(--sbw-radius, 10px);font-size:13px;}.sbw-sailor-email.svelte-1d47278 {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.sbw-link.svelte-1d47278 {flex-shrink:0;padding:0;border:none;background:none;font:inherit;color:var(--brand-navy, #16365b);text-decoration:underline;cursor:pointer;}.sbw-auth-actions.svelte-1d47278 {display:flex;flex-wrap:wrap;gap:10px;}.sbw-auth-btn.svelte-1d47278 {height:48px;padding:0 24px;border-radius:var(--sbw-radius, 10px);border:1px solid rgba(37, 37, 37, 0.15);background:transparent;color:var(--brand-navy, #16365b);font-size:12px;font-weight:600;letter-spacing:2px;text-transform:uppercase;cursor:pointer;}.sbw-auth-btn.sbw-auth-primary.svelte-1d47278 {border:none;background:var(--brand-gold, #c9a86b);}.sbw-auth-btn.svelte-1d47278:hover {background:var(--brand-navy, #16365b);color:#fff;}.sbw-variant-dark.svelte-1d47278 .sbw-sailor:where(.svelte-1d47278),\
|
|
5363
|
+
code: ".sbw-docs.svelte-1d47278 {display:flex;flex-direction:column;gap:12px;padding:20px;color:var(--brand-ink, #252525);}.sbw-docs-heading.svelte-1d47278 {font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#252525;}.sbw-docs-note.svelte-1d47278 {margin:0;font-size:13px;color:#666;line-height:1.6;}.sbw-docs-error.svelte-1d47278 {margin:0;font-size:14px;color:#cc4949;}.sbw-sailor.svelte-1d47278 {display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:12px 16px;border:1px solid #e4e7ec;border-radius:var(--sbw-radius, 10px);font-size:13px;}.sbw-sailor-email.svelte-1d47278 {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.sbw-link.svelte-1d47278 {flex-shrink:0;padding:0;border:none;background:none;font:inherit;color:var(--brand-navy, #16365b);text-decoration:underline;cursor:pointer;}.sbw-auth-actions.svelte-1d47278 {display:flex;flex-wrap:wrap;gap:10px;}.sbw-auth-btn.svelte-1d47278 {height:48px;padding:0 24px;border-radius:var(--sbw-radius, 10px);border:1px solid rgba(37, 37, 37, 0.15);background:transparent;color:var(--brand-navy, #16365b);font-size:12px;font-weight:600;letter-spacing:2px;text-transform:uppercase;cursor:pointer;}.sbw-auth-btn.sbw-auth-primary.svelte-1d47278 {border:none;background:var(--brand-gold, #c9a86b);}.sbw-auth-btn.svelte-1d47278:hover {background:var(--brand-navy, #16365b);color:#fff;}.sbw-variant-dark.svelte-1d47278 .sbw-sailor:where(.svelte-1d47278),\n .sbw-variant-dark.svelte-1d47278 .sbw-auth-btn:where(.svelte-1d47278) {border-radius:0;}.sbw-variant-dark.svelte-1d47278 .sbw-auth-btn:where(.svelte-1d47278) {color:var(--brand-ink, #252525);}.sbw-variant-dark.svelte-1d47278 .sbw-auth-btn.sbw-auth-primary:where(.svelte-1d47278) {background:var(--brand-ink, #252525);color:#fff;}.sbw-variant-dark.svelte-1d47278 .sbw-auth-btn:where(.svelte-1d47278):hover {background:var(--brand-gold, #c9a86b);color:var(--brand-ink, #252525);}.sbw-doc-row.svelte-1d47278 {display:flex;align-items:stretch;border:1px solid #e4e7ec;border-radius:var(--sbw-radius, 10px);overflow:hidden;background:#fff;}.sbw-doc-row.sbw-doc-can.svelte-1d47278 {cursor:pointer;}\n /* The file input is visually hidden, so show keyboard focus on the row. */.sbw-doc-row.svelte-1d47278:focus-within {outline:2px solid var(--brand-navy, #16365b);outline-offset:2px;}.sbw-doc-row.sbw-doc-done.svelte-1d47278 {border-color:var(--brand-navy, #16365b);background:var(--brand-navy, #16365b);color:#fff;}.sbw-doc-row.sbw-doc-busy.svelte-1d47278 {cursor:not-allowed;}.sbw-doc-main.svelte-1d47278 {display:flex;align-items:center;gap:16px;flex:1;min-width:0;padding:16px;}.sbw-doc-icon.svelte-1d47278 {width:32px;height:32px;display:flex;align-items:center;justify-content:center;flex-shrink:0;}.sbw-doc-busy.svelte-1d47278 .sbw-doc-icon:where(.svelte-1d47278) {color:var(--brand-navy, #16365b);}.sbw-spin.svelte-1d47278 {\n animation: svelte-1d47278-sbw-spin 0.8s linear infinite;}\n @keyframes svelte-1d47278-sbw-spin {\n to {\n transform: rotate(360deg);\n }\n }.sbw-doc-text.svelte-1d47278 {min-width:0;flex:1;}.sbw-doc-name.svelte-1d47278 {font-size:16px;font-weight:600;}.sbw-doc-sub.svelte-1d47278 {font-size:13px;opacity:0.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.sbw-doc-sub.sbw-doc-why.svelte-1d47278 {color:#cc4949;opacity:1;white-space:normal;}.sbw-required.svelte-1d47278 {color:#cc4949;}.sbw-doc-cta.svelte-1d47278 {display:inline-flex;align-items:center;justify-content:center;padding:0 20px;border-left:1px solid #e4e7ec;font-size:11px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--brand-navy, #16365b);}.sbw-doc-row.sbw-doc-can.svelte-1d47278:hover .sbw-doc-cta:where(.svelte-1d47278) {background:var(--brand-navy, #16365b);color:#fff;}\n /* 'dark' variant (Fox/Pevero): flush corners and a solid-ink CTA/done\n fill instead of navy. */.sbw-variant-dark.svelte-1d47278 .sbw-doc-row:where(.svelte-1d47278) {border-radius:0;}.sbw-variant-dark.svelte-1d47278 .sbw-doc-row.sbw-doc-done:where(.svelte-1d47278) {border-color:var(--brand-ink, #252525);background:var(--brand-ink, #252525);}.sbw-variant-dark.svelte-1d47278 .sbw-doc-row.sbw-doc-can:where(.svelte-1d47278) .sbw-doc-cta:where(.svelte-1d47278) {background:var(--brand-ink, #252525);color:#fff;}.sbw-variant-dark.svelte-1d47278 .sbw-doc-row.sbw-doc-can:where(.svelte-1d47278):hover .sbw-doc-cta:where(.svelte-1d47278) {background:var(--brand-gold, #c9a86b);color:var(--brand-ink, #252525);}.sbw-signin.svelte-1d47278 {width:min(400px, calc(100vw - 40px));padding:40px 32px 32px;border:none;border-radius:var(--sbw-radius, 10px);background:#fff;color:var(--brand-ink, #252525);text-align:center;box-shadow:0 24px 64px rgba(0, 0, 0, 0.35);}.sbw-signin[open].svelte-1d47278 {\n animation: svelte-1d47278-sbw-signin-in 0.35s ease-out;}.sbw-signin.svelte-1d47278::backdrop {background:rgba(5, 4, 15, 0.55);backdrop-filter:blur(3px);}\n @keyframes svelte-1d47278-sbw-signin-in {\n from {\n opacity: 0;\n transform: translateY(12px);\n }\n }\n @media (prefers-reduced-motion: reduce) {.sbw-signin[open].svelte-1d47278 {\n animation: none;}\n }.sbw-signin-logo.svelte-1d47278 {display:block;height:44px;margin:0 auto 20px;}.sbw-signin-title.svelte-1d47278 {margin:0 0 8px;font-size:22px;font-weight:600;line-height:1.2;}.sbw-signin-body.svelte-1d47278 {margin:0 0 24px;font-size:14px;line-height:1.65;color:#666;}.sbw-signin-actions.svelte-1d47278 {display:flex;flex-direction:column;align-items:center;gap:16px;}.sbw-signin-actions.svelte-1d47278 .sbw-auth-btn:where(.svelte-1d47278) {width:100%;}.sbw-signin.sbw-variant-dark.svelte-1d47278 {border-radius:0;}.sbw-signin.sbw-variant-dark.svelte-1d47278 .sbw-auth-btn:where(.svelte-1d47278) {border-radius:0;color:#fff;background:var(--brand-ink, #252525);}.sbw-signin.sbw-variant-dark.svelte-1d47278 .sbw-auth-btn:where(.svelte-1d47278):hover {background:var(--brand-gold, #c9a86b);color:var(--brand-ink, #252525);}.sbw-signin.svelte-1d47278 .sbw-link:where(.svelte-1d47278) {font-size:13px;color:inherit;}.sbw-visually-hidden.svelte-1d47278 {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}"
|
|
5352
5364
|
};
|
|
5353
|
-
function
|
|
5354
|
-
Ye(t, !0), ai(e,
|
|
5355
|
-
let n = $(t, "apiOrigin", 7), r = $(t, "slug", 7), i = $(t, "sailorApiOrigin", 7), a = $(t, "sidonOrigin", 7), o = $(t, "signInWidth", 7, 480), s = $(t, "signInHeight", 7, 720), c = $(t, "brand", 23, () => ({})), l = $(t, "arrival", 7), u = $(t, "departure", 7), d = $(t, "lang", 7), f = $(t, "labels", 7), p = $(t, "variant", 7), m = $(t, "complete", 15, !1), h = $(t, "sailor", 15, null), g = $(t, "boatName", 15, null), _ = $(t, "boatLength", 15, null), v = /* @__PURE__ */ V(!1),
|
|
5365
|
+
function gs(e, t) {
|
|
5366
|
+
Ye(t, !0), ai(e, hs);
|
|
5367
|
+
let n = $(t, "apiOrigin", 7), r = $(t, "slug", 7), i = $(t, "sailorApiOrigin", 7), a = $(t, "sidonOrigin", 7), o = $(t, "signInWidth", 7, 480), s = $(t, "signInHeight", 7, 720), c = $(t, "brand", 23, () => ({})), l = $(t, "arrival", 7), u = $(t, "departure", 7), d = $(t, "lang", 7), f = $(t, "labels", 7), p = $(t, "variant", 7), m = $(t, "complete", 15, !1), h = $(t, "sailor", 15, null), g = $(t, "boatName", 15, null), _ = $(t, "boatLength", 15, null), v = $(t, "staged", 31, () => an({})), y = /* @__PURE__ */ V(!1), b = null, x = /* @__PURE__ */ V(void 0), S = /* @__PURE__ */ V(!1), C = /* @__PURE__ */ V(null), ee = /* @__PURE__ */ V(!0), w = /* @__PURE__ */ V(!1), T = /* @__PURE__ */ V(an({})), te = /* @__PURE__ */ V(null), ne = 0, E = !1, D = /* @__PURE__ */ L(() => (J(C)?.requirements.length ?? 0) > 0), O = /* @__PURE__ */ L(() => !!J(C) && !J(C).signInRequired), k = /* @__PURE__ */ L(() => J(O) || !!h()), re = (e) => J(O) ? !!v()[e.id] : e.met, A = /* @__PURE__ */ L(() => J(C)?.requirements.some((e) => e.mandatory && !re(e)) ?? !1);
|
|
5356
5368
|
wn(() => {
|
|
5357
|
-
let e = (J(
|
|
5369
|
+
let e = (J(C)?.requirements ?? []).map((e) => e.data?.boat_name);
|
|
5358
5370
|
g(e.find((e) => typeof e == "string" && e.trim())?.trim() ?? null);
|
|
5359
|
-
let t = (J(
|
|
5371
|
+
let t = (J(C)?.requirements ?? []).map((e) => Number(e.data?.loa_metres));
|
|
5360
5372
|
_(t.find((e) => e > 0) ?? null);
|
|
5361
5373
|
}), wn(() => {
|
|
5362
|
-
m(!!J(
|
|
5374
|
+
m(!!J(C) && !J(ee) && !J(w) && (J(O) ? !J(A) : qa(J(C))));
|
|
5363
5375
|
});
|
|
5364
|
-
function
|
|
5376
|
+
function ie() {
|
|
5365
5377
|
let e = Oo(a());
|
|
5366
5378
|
return !e && h() && h(null), e?.token ?? null;
|
|
5367
5379
|
}
|
|
5368
|
-
async function
|
|
5369
|
-
let e = ++
|
|
5380
|
+
async function ae() {
|
|
5381
|
+
let e = ++ne, t = {
|
|
5370
5382
|
arrival: l(),
|
|
5371
5383
|
departure: u()
|
|
5372
5384
|
};
|
|
5373
5385
|
H(ee, !0);
|
|
5374
5386
|
try {
|
|
5375
|
-
let i = await Lo(n(), r(), t,
|
|
5376
|
-
if (
|
|
5377
|
-
H(
|
|
5387
|
+
let i = await Lo(n(), r(), t, ie());
|
|
5388
|
+
if (E || e !== ne) return;
|
|
5389
|
+
H(C, i), H(w, !1);
|
|
5378
5390
|
} catch {
|
|
5379
|
-
if (
|
|
5380
|
-
H(
|
|
5391
|
+
if (E || e !== ne) return;
|
|
5392
|
+
H(w, !0);
|
|
5381
5393
|
}
|
|
5382
5394
|
H(ee, !1);
|
|
5383
5395
|
}
|
|
@@ -5389,34 +5401,34 @@ function hs(e, t) {
|
|
|
5389
5401
|
});
|
|
5390
5402
|
}
|
|
5391
5403
|
wn(() => {
|
|
5392
|
-
l(), u(), _r(() => void
|
|
5404
|
+
l(), u(), _r(() => void ae());
|
|
5393
5405
|
}), qr(() => () => {
|
|
5394
|
-
|
|
5406
|
+
E = !0, b?.cancel();
|
|
5395
5407
|
});
|
|
5396
|
-
async function
|
|
5397
|
-
H(
|
|
5408
|
+
async function j() {
|
|
5409
|
+
H(S, !1), H(y, !0);
|
|
5398
5410
|
try {
|
|
5399
|
-
|
|
5411
|
+
b = Ao(a(), {
|
|
5400
5412
|
width: o(),
|
|
5401
5413
|
height: s(),
|
|
5402
5414
|
brand: c()
|
|
5403
|
-
}), J(
|
|
5404
|
-
let e = await
|
|
5405
|
-
if (
|
|
5415
|
+
}), J(x)?.showModal();
|
|
5416
|
+
let e = await b.done;
|
|
5417
|
+
if (E || !e) return;
|
|
5406
5418
|
h({
|
|
5407
5419
|
email: e.email,
|
|
5408
5420
|
name: e.name
|
|
5409
|
-
}), await
|
|
5421
|
+
}), await ae();
|
|
5410
5422
|
} catch {
|
|
5411
|
-
H(
|
|
5423
|
+
H(S, !0);
|
|
5412
5424
|
} finally {
|
|
5413
|
-
H(
|
|
5425
|
+
H(y, !1), b = null, J(x)?.close();
|
|
5414
5426
|
}
|
|
5415
5427
|
}
|
|
5416
|
-
async function
|
|
5417
|
-
ko(a()), h(null), await
|
|
5428
|
+
async function oe() {
|
|
5429
|
+
ko(a()), h(null), await ae();
|
|
5418
5430
|
}
|
|
5419
|
-
function
|
|
5431
|
+
function se(e) {
|
|
5420
5432
|
if (e.met || !e.latest) return "";
|
|
5421
5433
|
if (!e.latest.expiryDate) return f().docsStep.unreadable;
|
|
5422
5434
|
let t = /* @__PURE__ */ new Date(`${e.latest.expiryDate}T00:00:00`);
|
|
@@ -5426,35 +5438,42 @@ function hs(e, t) {
|
|
|
5426
5438
|
year: "numeric"
|
|
5427
5439
|
}));
|
|
5428
5440
|
}
|
|
5429
|
-
function
|
|
5441
|
+
function ce(e, t) {
|
|
5430
5442
|
return e.type === "application/pdf" || !e.type && /\.pdf$/i.test(e.name) || t instanceof Error && /too large/i.test(t.message) ? f().uploadTooLarge : f().uploadBadType;
|
|
5431
5443
|
}
|
|
5432
|
-
async function
|
|
5444
|
+
async function le(e, t) {
|
|
5433
5445
|
let n = t.currentTarget, r = n.files?.[0];
|
|
5434
5446
|
if (n.value = "", r) {
|
|
5435
|
-
H(
|
|
5436
|
-
...J(
|
|
5447
|
+
H(te, null), H(T, {
|
|
5448
|
+
...J(T),
|
|
5437
5449
|
[e.id]: r.name
|
|
5438
5450
|
}, !0);
|
|
5439
5451
|
try {
|
|
5440
|
-
let t = await
|
|
5452
|
+
let t = await Yo(r).catch((e) => (H(te, ce(r, e), !0), null));
|
|
5441
5453
|
if (!t) return;
|
|
5442
|
-
|
|
5454
|
+
if (J(O)) return void v({
|
|
5455
|
+
...v(),
|
|
5456
|
+
[e.id]: {
|
|
5457
|
+
...t,
|
|
5458
|
+
requirementId: e.id
|
|
5459
|
+
}
|
|
5460
|
+
});
|
|
5461
|
+
let n = ie();
|
|
5443
5462
|
if (!n) throw Error("Signed out");
|
|
5444
|
-
await
|
|
5463
|
+
await Wo(i(), n, {
|
|
5445
5464
|
...t,
|
|
5446
5465
|
type: e.type,
|
|
5447
5466
|
documentId: e.latest?.id
|
|
5448
|
-
}), await
|
|
5467
|
+
}), await ae();
|
|
5449
5468
|
} catch (e) {
|
|
5450
|
-
H(
|
|
5469
|
+
H(te, !(e instanceof jo) || e.status < 400 ? f().uploadFailed : e.status === 401 ? f().docsStep.sessionRejected : e.status === 413 ? f().uploadTooLarge : e.status === 429 ? f().uploadLimit : e.message, !0);
|
|
5451
5470
|
} finally {
|
|
5452
|
-
let { [e.id]: t, ...n } = J(
|
|
5453
|
-
H(
|
|
5471
|
+
let { [e.id]: t, ...n } = J(T);
|
|
5472
|
+
H(T, n, !0);
|
|
5454
5473
|
}
|
|
5455
5474
|
}
|
|
5456
5475
|
}
|
|
5457
|
-
var
|
|
5476
|
+
var ue = {
|
|
5458
5477
|
get apiOrigin() {
|
|
5459
5478
|
return n();
|
|
5460
5479
|
},
|
|
@@ -5550,175 +5569,184 @@ function hs(e, t) {
|
|
|
5550
5569
|
},
|
|
5551
5570
|
set boatLength(e = null) {
|
|
5552
5571
|
_(e), B();
|
|
5572
|
+
},
|
|
5573
|
+
get staged() {
|
|
5574
|
+
return v();
|
|
5575
|
+
},
|
|
5576
|
+
set staged(e = {}) {
|
|
5577
|
+
v(e), B();
|
|
5553
5578
|
}
|
|
5554
|
-
},
|
|
5555
|
-
let
|
|
5556
|
-
var
|
|
5557
|
-
F(
|
|
5558
|
-
var
|
|
5559
|
-
var t =
|
|
5579
|
+
}, de = ms(), fe = mn(de);
|
|
5580
|
+
let pe;
|
|
5581
|
+
var me = U(fe), he = U(me, !0);
|
|
5582
|
+
F(me);
|
|
5583
|
+
var ge = W(me, 2), _e = (e) => {
|
|
5584
|
+
var t = Xo(), n = U(t), r = U(n), i = W(r), a = U(i, !0);
|
|
5560
5585
|
F(i), F(n);
|
|
5561
5586
|
var o = W(n, 2), s = U(o, !0);
|
|
5562
5587
|
F(o), F(t), G(() => {
|
|
5563
5588
|
Z(r, `${f().docsStep.signedInAs ?? ""} `), Z(a, h().email), Z(s, f().docsStep.notYou);
|
|
5564
|
-
}), Tr("click", o,
|
|
5589
|
+
}), Tr("click", o, oe), X(e, t);
|
|
5565
5590
|
};
|
|
5566
|
-
Q(
|
|
5567
|
-
h() && e(
|
|
5591
|
+
Q(ge, (e) => {
|
|
5592
|
+
h() && e(_e);
|
|
5568
5593
|
});
|
|
5569
|
-
var
|
|
5594
|
+
var ve = W(ge, 2), ye = (e) => {
|
|
5570
5595
|
var t = Fr(), n = mn(t), r = (e) => {
|
|
5571
|
-
var t =
|
|
5596
|
+
var t = Zo(), n = U(t, !0);
|
|
5572
5597
|
F(t), G(() => Z(n, f().docsStep.loading)), X(e, t);
|
|
5573
5598
|
};
|
|
5574
5599
|
Q(n, (e) => {
|
|
5575
|
-
J(
|
|
5600
|
+
J(w) || e(r);
|
|
5576
5601
|
}), X(e, t);
|
|
5577
|
-
},
|
|
5578
|
-
var t =
|
|
5602
|
+
}, be = (e) => {
|
|
5603
|
+
var t = Qo(), n = mn(t), r = U(n, !0);
|
|
5579
5604
|
F(n);
|
|
5580
5605
|
var i = W(n, 2), a = (e) => {
|
|
5581
|
-
var t =
|
|
5606
|
+
var t = Zo(), n = U(t, !0);
|
|
5582
5607
|
F(t), G(() => Z(n, f().docsStep.optionalSignIn)), X(e, t);
|
|
5583
5608
|
};
|
|
5584
5609
|
Q(i, (e) => {
|
|
5585
5610
|
h() || e(a);
|
|
5586
5611
|
}), G(() => Z(r, f().docsStep.noDocsNeeded)), X(e, t);
|
|
5587
|
-
},
|
|
5588
|
-
var t =
|
|
5589
|
-
var t =
|
|
5612
|
+
}, xe = (e) => {
|
|
5613
|
+
var t = us(), n = mn(t), r = (e) => {
|
|
5614
|
+
var t = Zo(), n = U(t, !0);
|
|
5615
|
+
F(t), G(() => Z(n, f().docsStep.driveIntro)), X(e, t);
|
|
5616
|
+
}, i = (e) => {
|
|
5617
|
+
var t = Zo(), n = U(t, !0);
|
|
5590
5618
|
F(t), G(() => Z(n, f().docsStep.intro)), X(e, t);
|
|
5591
5619
|
};
|
|
5592
5620
|
Q(n, (e) => {
|
|
5593
|
-
h() || e(
|
|
5621
|
+
J(O) ? e(r) : h() || e(i, 1);
|
|
5594
5622
|
});
|
|
5595
|
-
var
|
|
5596
|
-
Qr(
|
|
5597
|
-
let n = /* @__PURE__ */ L(() => J(
|
|
5598
|
-
var
|
|
5599
|
-
ii(mn(
|
|
5600
|
-
let
|
|
5601
|
-
G(() =>
|
|
5602
|
-
"sbw-doc-can": J(
|
|
5623
|
+
var a = W(n, 2);
|
|
5624
|
+
Qr(a, 17, () => J(C).requirements, (e) => e.id, (e, t) => {
|
|
5625
|
+
let n = /* @__PURE__ */ L(() => J(T)[J(t).id]), r = /* @__PURE__ */ L(() => re(J(t))), i = /* @__PURE__ */ L(() => J(k) && J(C).uploadsAvailable && (J(O) || !J(r)) && !J(n)), a = /* @__PURE__ */ L(() => h() && !J(O) && !J(n) ? se(J(t)) : "");
|
|
5626
|
+
var o = Fr();
|
|
5627
|
+
ii(mn(o), () => J(i) ? "label" : "div", !1, (e, o) => {
|
|
5628
|
+
let s;
|
|
5629
|
+
G(() => s = fi(e, 0, "sbw-doc-row svelte-1d47278", null, s, {
|
|
5630
|
+
"sbw-doc-can": J(i),
|
|
5603
5631
|
"sbw-doc-busy": !!J(n),
|
|
5604
|
-
"sbw-doc-done":
|
|
5632
|
+
"sbw-doc-done": J(k) && J(r) && !J(n)
|
|
5605
5633
|
}));
|
|
5606
|
-
var
|
|
5607
|
-
var
|
|
5608
|
-
X(e, Qo());
|
|
5609
|
-
}, o = (e) => {
|
|
5634
|
+
var c = ss(), l = mn(c), u = U(l), d = (e) => {
|
|
5635
|
+
var t = ns(), i = U(t), a = (e) => {
|
|
5610
5636
|
X(e, $o());
|
|
5611
|
-
},
|
|
5637
|
+
}, o = (e) => {
|
|
5612
5638
|
X(e, es());
|
|
5639
|
+
}, s = (e) => {
|
|
5640
|
+
X(e, ts());
|
|
5613
5641
|
};
|
|
5614
5642
|
Q(i, (e) => {
|
|
5615
|
-
J(n) ? e(a) : J(
|
|
5616
|
-
}), F(
|
|
5643
|
+
J(n) ? e(a) : J(r) ? e(o, 1) : e(s, -1);
|
|
5644
|
+
}), F(t), X(e, t);
|
|
5617
5645
|
};
|
|
5618
|
-
Q(
|
|
5619
|
-
|
|
5646
|
+
Q(u, (e) => {
|
|
5647
|
+
J(k) && e(d);
|
|
5620
5648
|
});
|
|
5621
|
-
var
|
|
5622
|
-
X(e,
|
|
5649
|
+
var p = W(u, 2), m = U(p), h = U(m, !0), g = W(h), _ = (e) => {
|
|
5650
|
+
X(e, rs());
|
|
5623
5651
|
};
|
|
5624
5652
|
Q(g, (e) => {
|
|
5625
5653
|
J(t).mandatory && e(_);
|
|
5626
|
-
}), F(
|
|
5627
|
-
var
|
|
5628
|
-
var
|
|
5629
|
-
let
|
|
5630
|
-
var
|
|
5631
|
-
F(
|
|
5632
|
-
|
|
5633
|
-
}), X(e,
|
|
5654
|
+
}), F(m);
|
|
5655
|
+
var y = W(m, 2), b = (e) => {
|
|
5656
|
+
var o = is();
|
|
5657
|
+
let s;
|
|
5658
|
+
var c = U(o, !0);
|
|
5659
|
+
F(o), G(() => {
|
|
5660
|
+
s = fi(o, 1, "sbw-doc-sub svelte-1d47278", null, s, { "sbw-doc-why": !!J(a) }), Z(c, J(n) ? `${f().uploading} ${J(n)}` : J(O) && J(r) ? v()[J(t).id].fileName : J(r) ? f().docsStep.inAccount : J(a) || (J(i) ? f().tapToUpload : ""));
|
|
5661
|
+
}), X(e, o);
|
|
5634
5662
|
};
|
|
5635
|
-
Q(
|
|
5636
|
-
|
|
5637
|
-
}), F(
|
|
5638
|
-
var
|
|
5639
|
-
var t =
|
|
5663
|
+
Q(y, (e) => {
|
|
5664
|
+
J(k) && e(b);
|
|
5665
|
+
}), F(p), F(l);
|
|
5666
|
+
var x = W(l, 2), S = (e) => {
|
|
5667
|
+
var t = as(), r = U(t, !0);
|
|
5640
5668
|
F(t), G(() => Z(r, J(n) ? f().uploading : f().upload)), X(e, t);
|
|
5641
5669
|
};
|
|
5642
|
-
Q(
|
|
5643
|
-
(J(r) || J(n)) && e(
|
|
5670
|
+
Q(x, (e) => {
|
|
5671
|
+
(J(i) && !J(r) || J(n)) && e(S);
|
|
5644
5672
|
});
|
|
5645
|
-
var
|
|
5646
|
-
var n =
|
|
5647
|
-
Tr("change", n, (e) =>
|
|
5673
|
+
var C = W(x, 2), ee = (e) => {
|
|
5674
|
+
var n = os();
|
|
5675
|
+
Tr("change", n, (e) => le(J(t), e)), X(e, n);
|
|
5648
5676
|
};
|
|
5649
|
-
Q(
|
|
5650
|
-
J(
|
|
5651
|
-
}), G(() => Z(
|
|
5652
|
-
}), X(e,
|
|
5677
|
+
Q(C, (e) => {
|
|
5678
|
+
J(i) && e(ee);
|
|
5679
|
+
}), G(() => Z(h, J(t).name)), X(o, c);
|
|
5680
|
+
}), X(e, o);
|
|
5653
5681
|
});
|
|
5654
|
-
var
|
|
5655
|
-
var t =
|
|
5656
|
-
F(t), G(() => Z(n, J(
|
|
5682
|
+
var o = W(a, 2), s = (e) => {
|
|
5683
|
+
var t = cs(), n = U(t, !0);
|
|
5684
|
+
F(t), G(() => Z(n, J(te))), X(e, t);
|
|
5657
5685
|
};
|
|
5658
|
-
Q(
|
|
5659
|
-
J(
|
|
5686
|
+
Q(o, (e) => {
|
|
5687
|
+
J(te) && e(s);
|
|
5660
5688
|
});
|
|
5661
|
-
var
|
|
5662
|
-
var t =
|
|
5689
|
+
var c = W(o, 2), l = (e) => {
|
|
5690
|
+
var t = ls(), n = U(t, !0);
|
|
5663
5691
|
F(t), G(() => Z(n, f().docsStep.uploadsUnavailable)), X(e, t);
|
|
5664
5692
|
};
|
|
5665
|
-
Q(
|
|
5666
|
-
|
|
5693
|
+
Q(c, (e) => {
|
|
5694
|
+
J(k) && !J(C).uploadsAvailable && J(A) && e(l);
|
|
5667
5695
|
}), X(e, t);
|
|
5668
5696
|
};
|
|
5669
|
-
Q(
|
|
5670
|
-
J(
|
|
5697
|
+
Q(ve, (e) => {
|
|
5698
|
+
J(C) ? J(D) ? e(xe, -1) : e(be, 1) : e(ye);
|
|
5671
5699
|
});
|
|
5672
|
-
var
|
|
5673
|
-
var t =
|
|
5700
|
+
var Se = W(ve, 2), Ce = (e) => {
|
|
5701
|
+
var t = ds(), n = mn(t), r = U(n, !0);
|
|
5674
5702
|
F(n);
|
|
5675
5703
|
var i = W(n, 2), a = U(i, !0);
|
|
5676
5704
|
F(i), G(() => {
|
|
5677
5705
|
Z(r, f().docsStep.statusFailed), Z(a, f().retry);
|
|
5678
|
-
}), Tr("click", i, () =>
|
|
5706
|
+
}), Tr("click", i, () => ae()), X(e, t);
|
|
5679
5707
|
};
|
|
5680
|
-
Q(
|
|
5681
|
-
J(
|
|
5708
|
+
Q(Se, (e) => {
|
|
5709
|
+
J(w) && e(Ce);
|
|
5682
5710
|
});
|
|
5683
|
-
var
|
|
5684
|
-
var t =
|
|
5711
|
+
var we = W(Se, 2), Te = (e) => {
|
|
5712
|
+
var t = fs(), n = mn(t), r = U(n), i = U(r, !0);
|
|
5685
5713
|
F(r), F(n);
|
|
5686
5714
|
var a = W(n, 2), o = (e) => {
|
|
5687
|
-
var t =
|
|
5715
|
+
var t = ls(), n = U(t, !0);
|
|
5688
5716
|
F(t), G(() => Z(n, f().docsStep.signInUnavailable)), X(e, t);
|
|
5689
5717
|
};
|
|
5690
5718
|
Q(a, (e) => {
|
|
5691
|
-
J(
|
|
5719
|
+
J(S) && e(o);
|
|
5692
5720
|
}), G(() => {
|
|
5693
|
-
r.disabled = J(
|
|
5694
|
-
}), Tr("click", r,
|
|
5721
|
+
r.disabled = J(y), Z(i, f().docsStep.signIn);
|
|
5722
|
+
}), Tr("click", r, j), X(e, t);
|
|
5695
5723
|
};
|
|
5696
|
-
Q(
|
|
5697
|
-
J(
|
|
5698
|
-
}), F(
|
|
5699
|
-
var
|
|
5700
|
-
let
|
|
5701
|
-
var
|
|
5702
|
-
var t =
|
|
5724
|
+
Q(we, (e) => {
|
|
5725
|
+
J(C) && !h() && !J(O) && e(Te);
|
|
5726
|
+
}), F(fe);
|
|
5727
|
+
var M = W(fe, 2);
|
|
5728
|
+
let Ee;
|
|
5729
|
+
var De = U(M), Oe = (e) => {
|
|
5730
|
+
var t = ps();
|
|
5703
5731
|
G(() => xi(t, "src", c().logo)), X(e, t);
|
|
5704
5732
|
};
|
|
5705
|
-
Q(
|
|
5706
|
-
c().logo && e(
|
|
5733
|
+
Q(De, (e) => {
|
|
5734
|
+
c().logo && e(Oe);
|
|
5707
5735
|
});
|
|
5708
|
-
var
|
|
5709
|
-
F(
|
|
5710
|
-
var
|
|
5711
|
-
F(
|
|
5712
|
-
var
|
|
5713
|
-
F(
|
|
5714
|
-
var
|
|
5715
|
-
return F(
|
|
5716
|
-
|
|
5717
|
-
}), wr("cancel",
|
|
5718
|
-
e.preventDefault(),
|
|
5719
|
-
}), Tr("click",
|
|
5720
|
-
}
|
|
5721
|
-
Er(["click", "change"]), Ii(
|
|
5736
|
+
var ke = W(De, 2), Ae = U(ke, !0);
|
|
5737
|
+
F(ke);
|
|
5738
|
+
var je = W(ke, 2), Me = U(je, !0);
|
|
5739
|
+
F(je);
|
|
5740
|
+
var Ne = W(je, 2), Pe = U(Ne), Fe = U(Pe, !0);
|
|
5741
|
+
F(Pe);
|
|
5742
|
+
var Ie = W(Pe, 2), Le = U(Ie, !0);
|
|
5743
|
+
return F(Ie), F(Ne), F(M), Ai(M, (e) => H(x, e), () => J(x)), G(() => {
|
|
5744
|
+
pe = fi(fe, 1, "sbw-docs svelte-1d47278", null, pe, { "sbw-variant-dark": p() === "dark" }), Z(he, f().documentsHeading), Ee = fi(M, 1, "sbw-signin svelte-1d47278", null, Ee, { "sbw-variant-dark": p() === "dark" }), Z(Ae, f().docsStep.windowTitle), Z(Me, f().docsStep.windowBody), Z(Fe, f().docsStep.showWindow), Z(Le, f().docsStep.cancelSignIn);
|
|
5745
|
+
}), wr("cancel", M, (e) => {
|
|
5746
|
+
e.preventDefault(), b?.cancel();
|
|
5747
|
+
}), Tr("click", Pe, () => b?.focus()), Tr("click", Ie, () => b?.cancel()), X(e, de), Xe(ue);
|
|
5748
|
+
}
|
|
5749
|
+
Er(["click", "change"]), Ii(gs, {
|
|
5722
5750
|
apiOrigin: {},
|
|
5723
5751
|
slug: {},
|
|
5724
5752
|
sailorApiOrigin: {},
|
|
@@ -5734,18 +5762,19 @@ Er(["click", "change"]), Ii(hs, {
|
|
|
5734
5762
|
complete: {},
|
|
5735
5763
|
sailor: {},
|
|
5736
5764
|
boatName: {},
|
|
5737
|
-
boatLength: {}
|
|
5765
|
+
boatLength: {},
|
|
5766
|
+
staged: {}
|
|
5738
5767
|
}, [], [], { mode: "open" });
|
|
5739
5768
|
//#endregion
|
|
5740
5769
|
//#region src/components/DetailsStep.svelte
|
|
5741
|
-
var
|
|
5770
|
+
var _s = /* @__PURE__ */ Y("<div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-contact-name\" class=\"svelte-xjlajk\"> <span class=\"sbw-required\">*</span></label> <input id=\"sbw-contact-name\" type=\"text\" required=\"\" maxlength=\"100\" autocomplete=\"name\" class=\"svelte-xjlajk\"/></div>"), vs = /* @__PURE__ */ Y("<div class=\"sbw-field-grid svelte-xjlajk\"><div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-email\" class=\"svelte-xjlajk\"> <span class=\"sbw-required\">*</span></label> <input id=\"sbw-email\" type=\"email\" required=\"\" maxlength=\"255\" autocomplete=\"email\" class=\"svelte-xjlajk\"/></div> <div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-phone\" class=\"svelte-xjlajk\"> </label> <input id=\"sbw-phone\" type=\"tel\" maxlength=\"30\" autocomplete=\"tel\" class=\"svelte-xjlajk\"/></div></div>"), ys = /* @__PURE__ */ Y("<div class=\"sbw-details svelte-xjlajk\"><div class=\"sbw-details-heading svelte-xjlajk\"> </div> <div class=\"sbw-field-grid svelte-xjlajk\"><!> <div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-boat-name\" class=\"svelte-xjlajk\"> <span class=\"sbw-required\">*</span></label> <input id=\"sbw-boat-name\" type=\"text\" required=\"\" maxlength=\"100\" class=\"svelte-xjlajk\"/></div></div> <!> <div class=\"sbw-field-grid svelte-xjlajk\"><div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-beam\" class=\"svelte-xjlajk\"> </label> <input id=\"sbw-beam\" type=\"number\" min=\"0.1\" step=\"0.1\" inputmode=\"decimal\" class=\"svelte-xjlajk\"/></div></div> <div class=\"sbw-field svelte-xjlajk\"><label for=\"sbw-notes\" class=\"svelte-xjlajk\"> </label> <textarea id=\"sbw-notes\" rows=\"3\" maxlength=\"2000\" class=\"svelte-xjlajk\"></textarea></div></div>"), bs = {
|
|
5742
5771
|
hash: "svelte-xjlajk",
|
|
5743
|
-
code: ".sbw-details.svelte-xjlajk {display:flex;flex-direction:column;gap:20px;padding:20px;}.sbw-details-heading.svelte-xjlajk {font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#252525;}.sbw-field-grid.svelte-xjlajk {display:grid;grid-template-columns:1fr 1fr;gap:16px;}.sbw-field.svelte-xjlajk {display:flex;flex-direction:column;gap:6px;}.sbw-field.svelte-xjlajk label:where(.svelte-xjlajk) {font-size:11px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#252525;}.sbw-field.svelte-xjlajk input:where(.svelte-xjlajk),\
|
|
5772
|
+
code: ".sbw-details.svelte-xjlajk {display:flex;flex-direction:column;gap:20px;padding:20px;}.sbw-details-heading.svelte-xjlajk {font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#252525;}.sbw-field-grid.svelte-xjlajk {display:grid;grid-template-columns:1fr 1fr;gap:16px;}.sbw-field.svelte-xjlajk {display:flex;flex-direction:column;gap:6px;}.sbw-field.svelte-xjlajk label:where(.svelte-xjlajk) {font-size:11px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#252525;}.sbw-field.svelte-xjlajk input:where(.svelte-xjlajk),\n .sbw-field.svelte-xjlajk textarea:where(.svelte-xjlajk) {height:48px;padding:0 14px;border:1px solid #e4e7ec;border-radius:var(--sbw-radius, 10px);font-size:15px;color:var(--brand-navy, #16365b);background:#fff;outline:none;font-family:inherit;}.sbw-field.svelte-xjlajk textarea:where(.svelte-xjlajk) {height:auto;padding:10px 14px;resize:vertical;}.sbw-field.svelte-xjlajk input:where(.svelte-xjlajk):focus,\n .sbw-field.svelte-xjlajk textarea:where(.svelte-xjlajk):focus {border-color:var(--brand-navy, #16365b);}"
|
|
5744
5773
|
};
|
|
5745
|
-
function
|
|
5746
|
-
Ye(t, !0), ai(e,
|
|
5747
|
-
let n = $(t, "contactName", 15, ""), r = $(t, "contactEmail", 15, ""), i = $(t, "contactPhone", 15, ""), a = $(t, "boatName", 15, ""), o = $(t, "boatBeamM", 15, null), s = $(t, "notes", 15, ""), c = $(t, "emailLocked", 7, !1), l = $(t, "labels", 7);
|
|
5748
|
-
var
|
|
5774
|
+
function xs(e, t) {
|
|
5775
|
+
Ye(t, !0), ai(e, bs);
|
|
5776
|
+
let n = $(t, "contactName", 15, ""), r = $(t, "contactEmail", 15, ""), i = $(t, "contactPhone", 15, ""), a = $(t, "boatName", 15, ""), o = $(t, "boatBeamM", 15, null), s = $(t, "notes", 15, ""), c = $(t, "emailLocked", 7, !1), l = $(t, "contact", 7, !0), u = $(t, "labels", 7);
|
|
5777
|
+
var d = {
|
|
5749
5778
|
get contactName() {
|
|
5750
5779
|
return n();
|
|
5751
5780
|
},
|
|
@@ -5788,42 +5817,60 @@ function vs(e, t) {
|
|
|
5788
5817
|
set emailLocked(e = !1) {
|
|
5789
5818
|
c(e), B();
|
|
5790
5819
|
},
|
|
5791
|
-
get
|
|
5820
|
+
get contact() {
|
|
5792
5821
|
return l();
|
|
5793
5822
|
},
|
|
5794
|
-
set
|
|
5823
|
+
set contact(e = !0) {
|
|
5795
5824
|
l(e), B();
|
|
5825
|
+
},
|
|
5826
|
+
get labels() {
|
|
5827
|
+
return u();
|
|
5828
|
+
},
|
|
5829
|
+
set labels(e) {
|
|
5830
|
+
u(e), B();
|
|
5796
5831
|
}
|
|
5797
|
-
},
|
|
5798
|
-
F(
|
|
5799
|
-
var
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5832
|
+
}, f = ys(), p = U(f), m = U(p, !0);
|
|
5833
|
+
F(p);
|
|
5834
|
+
var h = W(p, 2), g = U(h), _ = (e) => {
|
|
5835
|
+
var t = _s(), r = U(t), i = U(r);
|
|
5836
|
+
Ve(), F(r);
|
|
5837
|
+
var a = W(r, 2);
|
|
5838
|
+
yi(a), F(t), G(() => Z(i, `${u().skipperName ?? ""} `)), Ti(a, n), X(e, t);
|
|
5839
|
+
};
|
|
5840
|
+
Q(g, (e) => {
|
|
5841
|
+
l() && e(_);
|
|
5842
|
+
});
|
|
5843
|
+
var v = W(g, 2), y = U(v), b = U(y);
|
|
5844
|
+
Ve(), F(y);
|
|
5845
|
+
var x = W(y, 2);
|
|
5846
|
+
yi(x), F(v), F(h);
|
|
5847
|
+
var S = W(h, 2), C = (e) => {
|
|
5848
|
+
var t = vs(), n = U(t), a = U(n), o = U(a);
|
|
5849
|
+
Ve(), F(a);
|
|
5850
|
+
var s = W(a, 2);
|
|
5851
|
+
yi(s), F(n);
|
|
5852
|
+
var l = W(n, 2), d = U(l), f = U(d, !0);
|
|
5853
|
+
F(d);
|
|
5854
|
+
var p = W(d, 2);
|
|
5855
|
+
yi(p), F(l), F(t), G(() => {
|
|
5856
|
+
Z(o, `${u().email ?? ""} `), s.readOnly = c(), Z(f, u().phone);
|
|
5857
|
+
}), Ti(s, r), Ti(p, i), X(e, t);
|
|
5858
|
+
};
|
|
5859
|
+
Q(S, (e) => {
|
|
5860
|
+
l() && e(C);
|
|
5861
|
+
});
|
|
5862
|
+
var ee = W(S, 2), w = U(ee), T = U(w), te = U(T, !0);
|
|
5863
|
+
F(T);
|
|
5864
|
+
var ne = W(T, 2);
|
|
5865
|
+
yi(ne), F(w), F(ee);
|
|
5866
|
+
var E = W(ee, 2), D = U(E), O = U(D, !0);
|
|
5867
|
+
F(D);
|
|
5868
|
+
var k = W(D, 2);
|
|
5869
|
+
return dt(k), F(E), F(f), G(() => {
|
|
5870
|
+
Z(m, u().yourDetails), Z(b, `${u().boatName ?? ""} `), Z(te, u().wizard.boatBeam), Z(O, u().notes);
|
|
5871
|
+
}), Ti(x, a), Ti(ne, o), Ti(k, s), X(e, f), Xe(d);
|
|
5872
|
+
}
|
|
5873
|
+
Ii(xs, {
|
|
5827
5874
|
contactName: {},
|
|
5828
5875
|
contactEmail: {},
|
|
5829
5876
|
contactPhone: {},
|
|
@@ -5831,11 +5878,12 @@ Ii(vs, {
|
|
|
5831
5878
|
boatBeamM: {},
|
|
5832
5879
|
notes: {},
|
|
5833
5880
|
emailLocked: {},
|
|
5881
|
+
contact: {},
|
|
5834
5882
|
labels: {}
|
|
5835
5883
|
}, [], [], { mode: "open" });
|
|
5836
5884
|
//#endregion
|
|
5837
5885
|
//#region src/lib/i18n.ts
|
|
5838
|
-
var
|
|
5886
|
+
var Ss = {
|
|
5839
5887
|
it: {
|
|
5840
5888
|
steps: [
|
|
5841
5889
|
"Documenti",
|
|
@@ -5876,6 +5924,7 @@ var ys = {
|
|
|
5876
5924
|
fromSource: (e) => `Da ${e}`,
|
|
5877
5925
|
next: "Avanti",
|
|
5878
5926
|
payAndSend: "Paga e invia",
|
|
5927
|
+
addToCart: "Aggiungi al carrello",
|
|
5879
5928
|
back: "← Indietro",
|
|
5880
5929
|
sending: "Invio…",
|
|
5881
5930
|
readAgree: "Ho letto e accetto",
|
|
@@ -5972,6 +6021,8 @@ var ys = {
|
|
|
5972
6021
|
unreadable: "Non riusciamo a leggere la data di scadenza: carica una copia più nitida",
|
|
5973
6022
|
loading: "Verifica dei documenti…",
|
|
5974
6023
|
statusFailed: "Impossibile verificare i tuoi documenti. Riprova.",
|
|
6024
|
+
driveIntro: "Questa marina richiede i tuoi documenti con la prenotazione. Aggiungili qui: li inviamo alla marina appena il posto barca è bloccato.",
|
|
6025
|
+
sendFailed: "Il posto barca è bloccato, ma alcuni documenti non sono arrivati alla marina. Inviali alla marina via email.",
|
|
5975
6026
|
uploadsUnavailable: "Il caricamento dei documenti non è disponibile al momento, quindi non è possibile proseguire. Riprova più tardi.",
|
|
5976
6027
|
sessionRejected: "Il tuo accesso non è stato accettato. Esci e accedi di nuovo, oppure contatta il marina.",
|
|
5977
6028
|
signInUnavailable: "L'accesso non è disponibile al momento. Riprova.",
|
|
@@ -6022,6 +6073,7 @@ var ys = {
|
|
|
6022
6073
|
fromSource: (e) => `From ${e}`,
|
|
6023
6074
|
next: "Next",
|
|
6024
6075
|
payAndSend: "Pay & send",
|
|
6076
|
+
addToCart: "Add to cart",
|
|
6025
6077
|
back: "← Back",
|
|
6026
6078
|
sending: "Sending…",
|
|
6027
6079
|
readAgree: "I have read and agree to",
|
|
@@ -6118,6 +6170,8 @@ var ys = {
|
|
|
6118
6170
|
unreadable: "We couldn't read an expiry date: upload a clearer copy",
|
|
6119
6171
|
loading: "Checking your documents…",
|
|
6120
6172
|
statusFailed: "Could not check your documents. Please try again.",
|
|
6173
|
+
driveIntro: "This marina needs your documents with your booking. Add them here; we send them to the marina as soon as your berth is held.",
|
|
6174
|
+
sendFailed: "Your berth is held, but some documents didn't reach the marina. Please email them to the marina.",
|
|
6121
6175
|
uploadsUnavailable: "Document uploads are unavailable right now, so this booking can't continue. Please try again later.",
|
|
6122
6176
|
sessionRejected: "Your sign-in wasn't accepted. Sign out and sign in again, or contact the marina.",
|
|
6123
6177
|
signInUnavailable: "Sign-in is unavailable right now. Please try again.",
|
|
@@ -6168,6 +6222,7 @@ var ys = {
|
|
|
6168
6222
|
fromSource: (e) => `Depuis ${e}`,
|
|
6169
6223
|
next: "Suivant",
|
|
6170
6224
|
payAndSend: "Payer et envoyer",
|
|
6225
|
+
addToCart: "Ajouter au panier",
|
|
6171
6226
|
back: "← Retour",
|
|
6172
6227
|
sending: "Envoi…",
|
|
6173
6228
|
readAgree: "J'ai lu et j'accepte",
|
|
@@ -6264,6 +6319,8 @@ var ys = {
|
|
|
6264
6319
|
unreadable: "Nous n'arrivons pas à lire la date d'expiration : envoyez une copie plus nette",
|
|
6265
6320
|
loading: "Vérification de vos documents…",
|
|
6266
6321
|
statusFailed: "Impossible de vérifier vos documents. Réessayez.",
|
|
6322
|
+
driveIntro: "Cette marina demande vos documents avec la réservation. Ajoutez-les ici : nous les envoyons à la marina dès que votre place est bloquée.",
|
|
6323
|
+
sendFailed: "Votre place est bloquée, mais certains documents ne sont pas parvenus à la marina. Envoyez-les-lui par e-mail.",
|
|
6267
6324
|
uploadsUnavailable: "L'envoi de documents est indisponible pour le moment : impossible de continuer. Réessayez plus tard.",
|
|
6268
6325
|
sessionRejected: "Votre connexion n'a pas été acceptée. Déconnectez-vous puis reconnectez-vous, ou contactez la marina.",
|
|
6269
6326
|
signInUnavailable: "La connexion est indisponible pour le moment. Réessayez.",
|
|
@@ -6314,6 +6371,7 @@ var ys = {
|
|
|
6314
6371
|
fromSource: (e) => `Desde ${e}`,
|
|
6315
6372
|
next: "Siguiente",
|
|
6316
6373
|
payAndSend: "Pagar y enviar",
|
|
6374
|
+
addToCart: "Añadir al carrito",
|
|
6317
6375
|
back: "← Atrás",
|
|
6318
6376
|
sending: "Enviando…",
|
|
6319
6377
|
readAgree: "He leído y acepto",
|
|
@@ -6410,6 +6468,8 @@ var ys = {
|
|
|
6410
6468
|
unreadable: "No podemos leer la fecha de caducidad: sube una copia más nítida",
|
|
6411
6469
|
loading: "Comprobando tus documentos…",
|
|
6412
6470
|
statusFailed: "No se han podido comprobar tus documentos. Inténtalo de nuevo.",
|
|
6471
|
+
driveIntro: "Esta marina necesita tus documentos con la reserva. Añádelos aquí: los enviamos a la marina en cuanto tu amarre quede reservado.",
|
|
6472
|
+
sendFailed: "Tu amarre está reservado, pero algunos documentos no llegaron a la marina. Envíalos a la marina por email.",
|
|
6413
6473
|
uploadsUnavailable: "La subida de documentos no está disponible ahora mismo, así que no se puede continuar. Inténtalo más tarde.",
|
|
6414
6474
|
sessionRejected: "Tu inicio de sesión no fue aceptado. Cierra sesión y vuelve a entrar, o contacta con el puerto deportivo.",
|
|
6415
6475
|
signInUnavailable: "El inicio de sesión no está disponible ahora mismo. Inténtalo de nuevo.",
|
|
@@ -6421,107 +6481,107 @@ var ys = {
|
|
|
6421
6481
|
}
|
|
6422
6482
|
}
|
|
6423
6483
|
};
|
|
6424
|
-
function
|
|
6425
|
-
return
|
|
6484
|
+
function Cs(e) {
|
|
6485
|
+
return Ss[e] ?? Ss.en;
|
|
6426
6486
|
}
|
|
6427
6487
|
//#endregion
|
|
6428
6488
|
//#region node_modules/@stripe/stripe-js/dist/index.mjs
|
|
6429
|
-
function
|
|
6489
|
+
function ws(e) {
|
|
6430
6490
|
"@babel/helpers - typeof";
|
|
6431
|
-
return
|
|
6491
|
+
return ws = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
6432
6492
|
return typeof e;
|
|
6433
6493
|
} : function(e) {
|
|
6434
6494
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
6435
|
-
},
|
|
6495
|
+
}, ws(e);
|
|
6436
6496
|
}
|
|
6437
|
-
var
|
|
6438
|
-
|
|
6497
|
+
var Ts, Es, Ds, Os, ks, As, js, Ms, Ns, Ps, Fs, Is, Ls, Rs, zs, Bs, Vs, Hs, Us, Ws, Gs, Ks, qs = o((() => {
|
|
6498
|
+
Ts = "dahlia", Es = function(e) {
|
|
6439
6499
|
return e === 3 ? "v3" : e;
|
|
6440
|
-
},
|
|
6441
|
-
return
|
|
6442
|
-
},
|
|
6443
|
-
for (var e = document.querySelectorAll(`script[src^="${
|
|
6500
|
+
}, Ds = "https://js.stripe.com", Os = `${Ds}/${Ts}/stripe.js`, ks = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, As = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/, js = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Ms = function(e) {
|
|
6501
|
+
return ks.test(e) || As.test(e);
|
|
6502
|
+
}, Ns = function() {
|
|
6503
|
+
for (var e = document.querySelectorAll(`script[src^="${Ds}"]`), t = 0; t < e.length; t++) {
|
|
6444
6504
|
var n = e[t];
|
|
6445
|
-
if (
|
|
6505
|
+
if (Ms(n.src)) return n;
|
|
6446
6506
|
}
|
|
6447
6507
|
return null;
|
|
6448
|
-
},
|
|
6508
|
+
}, Ps = function(e) {
|
|
6449
6509
|
var t = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
|
|
6450
|
-
n.src = `${
|
|
6510
|
+
n.src = `${Os}${t}`;
|
|
6451
6511
|
var r = document.head || document.body;
|
|
6452
6512
|
if (!r) throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
|
|
6453
6513
|
return r.appendChild(n), n;
|
|
6454
|
-
},
|
|
6514
|
+
}, Fs = function(e, t) {
|
|
6455
6515
|
!e || !e._registerWrapper || e._registerWrapper({
|
|
6456
6516
|
name: "stripe-js",
|
|
6457
6517
|
version: "9.13.0",
|
|
6458
6518
|
startTime: t
|
|
6459
6519
|
});
|
|
6460
|
-
},
|
|
6520
|
+
}, Is = null, Ls = null, Rs = null, zs = function(e) {
|
|
6461
6521
|
return function(t) {
|
|
6462
6522
|
e(Error("Failed to load Stripe.js", { cause: t }));
|
|
6463
6523
|
};
|
|
6464
|
-
},
|
|
6524
|
+
}, Bs = function(e, t) {
|
|
6465
6525
|
return function() {
|
|
6466
6526
|
window.Stripe ? e(window.Stripe) : t(/* @__PURE__ */ Error("Stripe.js not available"));
|
|
6467
6527
|
};
|
|
6468
|
-
},
|
|
6469
|
-
return
|
|
6528
|
+
}, Vs = function(e) {
|
|
6529
|
+
return Is === null ? (Is = new Promise(function(t, n) {
|
|
6470
6530
|
if (typeof window > "u" || typeof document > "u") {
|
|
6471
6531
|
t(null);
|
|
6472
6532
|
return;
|
|
6473
6533
|
}
|
|
6474
|
-
if (window.Stripe && e && console.warn(
|
|
6534
|
+
if (window.Stripe && e && console.warn(js), window.Stripe) {
|
|
6475
6535
|
t(window.Stripe);
|
|
6476
6536
|
return;
|
|
6477
6537
|
}
|
|
6478
6538
|
try {
|
|
6479
|
-
var r =
|
|
6480
|
-
if (r && e) console.warn(
|
|
6481
|
-
else if (!r) r =
|
|
6482
|
-
else if (r &&
|
|
6539
|
+
var r = Ns();
|
|
6540
|
+
if (r && e) console.warn(js);
|
|
6541
|
+
else if (!r) r = Ps(e);
|
|
6542
|
+
else if (r && Rs !== null && Ls !== null) {
|
|
6483
6543
|
var i;
|
|
6484
|
-
r.removeEventListener("load",
|
|
6544
|
+
r.removeEventListener("load", Rs), r.removeEventListener("error", Ls), (i = r.parentNode) == null || i.removeChild(r), r = Ps(e);
|
|
6485
6545
|
}
|
|
6486
|
-
|
|
6546
|
+
Rs = Bs(t, n), Ls = zs(n), r.addEventListener("load", Rs), r.addEventListener("error", Ls);
|
|
6487
6547
|
} catch (e) {
|
|
6488
6548
|
n(e);
|
|
6489
6549
|
return;
|
|
6490
6550
|
}
|
|
6491
|
-
}),
|
|
6492
|
-
return
|
|
6493
|
-
})) :
|
|
6494
|
-
},
|
|
6551
|
+
}), Is.catch(function(e) {
|
|
6552
|
+
return Is = null, Promise.reject(e);
|
|
6553
|
+
})) : Is;
|
|
6554
|
+
}, Hs = function(e, t, n) {
|
|
6495
6555
|
if (e === null) return null;
|
|
6496
6556
|
var r = t[0];
|
|
6497
|
-
if (typeof r != "string") throw Error(`Expected publishable key to be of type string, got type ${
|
|
6498
|
-
var i = r.match(/^pk_test/), a =
|
|
6557
|
+
if (typeof r != "string") throw Error(`Expected publishable key to be of type string, got type ${ws(r)} instead.`);
|
|
6558
|
+
var i = r.match(/^pk_test/), a = Es(e.version), o = Ts;
|
|
6499
6559
|
i && a !== o && console.warn(`Stripe.js@${a} was loaded on the page, but @stripe/stripe-js@9.13.0 expected Stripe.js@${o}. This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning`);
|
|
6500
6560
|
var s = e.apply(void 0, t);
|
|
6501
|
-
return
|
|
6502
|
-
},
|
|
6503
|
-
return
|
|
6504
|
-
return
|
|
6505
|
-
}),
|
|
6561
|
+
return Fs(s, n), s;
|
|
6562
|
+
}, Ws = !1, Gs = function() {
|
|
6563
|
+
return Us || (Us = Vs(null).catch(function(e) {
|
|
6564
|
+
return Us = null, Promise.reject(e);
|
|
6565
|
+
}), Us);
|
|
6506
6566
|
}, Promise.resolve().then(function() {
|
|
6507
|
-
return
|
|
6567
|
+
return Gs();
|
|
6508
6568
|
}).catch(function(e) {
|
|
6509
|
-
|
|
6510
|
-
}),
|
|
6569
|
+
Ws || console.warn(e);
|
|
6570
|
+
}), Ks = function() {
|
|
6511
6571
|
var e = [...arguments];
|
|
6512
|
-
|
|
6572
|
+
Ws = !0;
|
|
6513
6573
|
var t = Date.now();
|
|
6514
|
-
return
|
|
6515
|
-
return
|
|
6574
|
+
return Gs().then(function(n) {
|
|
6575
|
+
return Hs(n, e, t);
|
|
6516
6576
|
});
|
|
6517
6577
|
};
|
|
6518
|
-
})),
|
|
6519
|
-
|
|
6578
|
+
})), Js = /* @__PURE__ */ c({ loadStripe: () => Ks }), Ys = o((() => {
|
|
6579
|
+
qs();
|
|
6520
6580
|
}));
|
|
6521
6581
|
//#endregion
|
|
6522
6582
|
//#region src/lib/stripe.ts
|
|
6523
|
-
async function
|
|
6524
|
-
let { loadStripe: t } = await Promise.resolve().then(() => (
|
|
6583
|
+
async function Xs(e) {
|
|
6584
|
+
let { loadStripe: t } = await Promise.resolve().then(() => (Ys(), Js)), n = await t(e.publishableKey);
|
|
6525
6585
|
if (!n) throw Error("Stripe failed to load");
|
|
6526
6586
|
let r = e.colorPrimary || "#16365b", i = n.elements({
|
|
6527
6587
|
clientSecret: e.clientSecret,
|
|
@@ -6552,13 +6612,13 @@ async function qs(e) {
|
|
|
6552
6612
|
}
|
|
6553
6613
|
//#endregion
|
|
6554
6614
|
//#region src/components/PaymentStep.svelte
|
|
6555
|
-
var
|
|
6615
|
+
var Zs = /* @__PURE__ */ Y("<div class=\"sbw-payment-error svelte-1dn2f4w\" role=\"alert\"> </div>"), Qs = /* @__PURE__ */ Y("<div class=\"sbw-payment svelte-1dn2f4w\"><div class=\"sbw-payment-heading svelte-1dn2f4w\"><span> </span> <span class=\"sbw-payment-amount svelte-1dn2f4w\"> </span></div> <p class=\"sbw-payment-note svelte-1dn2f4w\"> </p> <div class=\"sbw-payment-element svelte-1dn2f4w\"></div> <!></div>"), $s = {
|
|
6556
6616
|
hash: "svelte-1dn2f4w",
|
|
6557
6617
|
code: ".sbw-payment.svelte-1dn2f4w {display:flex;flex-direction:column;gap:10px;padding:20px;}.sbw-payment-heading.svelte-1dn2f4w {display:flex;align-items:baseline;justify-content:space-between;font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#252525;}.sbw-payment-amount.svelte-1dn2f4w {font-size:22px;font-weight:500;color:var(--brand-navy, #16365b);}.sbw-payment-note.svelte-1dn2f4w {font-size:12px;color:#252525;line-height:1.6;margin:0;}.sbw-payment-element.svelte-1dn2f4w {padding:14px;border-radius:12px;border:1px solid #e4e7ec;background:#fff;}.sbw-payment-error.svelte-1dn2f4w {font-size:13px;color:#cc4949;}"
|
|
6558
6618
|
};
|
|
6559
|
-
function
|
|
6560
|
-
Ye(t, !0), ai(e,
|
|
6561
|
-
let n = $(t, "payment", 7), r = $(t, "host", 7), i = $(t, "lang", 7), a = $(t, "locale", 7), o = $(t, "totalLabel", 7), s = /* @__PURE__ */ L(() =>
|
|
6619
|
+
function ec(e, t) {
|
|
6620
|
+
Ye(t, !0), ai(e, $s);
|
|
6621
|
+
let n = $(t, "payment", 7), r = $(t, "host", 7), i = $(t, "lang", 7), a = $(t, "locale", 7), o = $(t, "totalLabel", 7), s = /* @__PURE__ */ L(() => Cs(i())), c = "sbw-payment-step", l, u = null, d = /* @__PURE__ */ V(null);
|
|
6562
6622
|
qr(() => {
|
|
6563
6623
|
let e = document.createElement("slot");
|
|
6564
6624
|
e.name = c, l.appendChild(e);
|
|
@@ -6567,7 +6627,7 @@ function Zs(e, t) {
|
|
|
6567
6627
|
let i = !1;
|
|
6568
6628
|
return (async () => {
|
|
6569
6629
|
try {
|
|
6570
|
-
let e = await
|
|
6630
|
+
let e = await Xs({
|
|
6571
6631
|
publishableKey: n().publishableKey,
|
|
6572
6632
|
clientSecret: n().clientSecret,
|
|
6573
6633
|
locale: a(),
|
|
@@ -6618,7 +6678,7 @@ function Zs(e, t) {
|
|
|
6618
6678
|
set totalLabel(e) {
|
|
6619
6679
|
o(e), B();
|
|
6620
6680
|
}
|
|
6621
|
-
}, m =
|
|
6681
|
+
}, m = Qs(), h = U(m), g = U(h), _ = U(g, !0);
|
|
6622
6682
|
F(g);
|
|
6623
6683
|
var v = W(g, 2), y = U(v);
|
|
6624
6684
|
F(v), F(h);
|
|
@@ -6626,17 +6686,17 @@ function Zs(e, t) {
|
|
|
6626
6686
|
F(b);
|
|
6627
6687
|
var S = W(b, 2);
|
|
6628
6688
|
Ai(S, (e) => l = e, () => l);
|
|
6629
|
-
var
|
|
6630
|
-
var t =
|
|
6689
|
+
var C = W(S, 2), ee = (e) => {
|
|
6690
|
+
var t = Zs(), n = U(t, !0);
|
|
6631
6691
|
F(t), G(() => Z(n, J(d))), X(e, t);
|
|
6632
6692
|
};
|
|
6633
|
-
return Q(
|
|
6634
|
-
J(d) && e(
|
|
6693
|
+
return Q(C, (e) => {
|
|
6694
|
+
J(d) && e(ee);
|
|
6635
6695
|
}), F(m), G(() => {
|
|
6636
6696
|
Z(_, J(s).paymentHold), Z(y, `${J(s).total ?? ""} ${o() ?? ""}`), Z(x, J(s).paymentNote);
|
|
6637
6697
|
}), X(e, m), Xe(p);
|
|
6638
6698
|
}
|
|
6639
|
-
Ii(
|
|
6699
|
+
Ii(ec, {
|
|
6640
6700
|
payment: {},
|
|
6641
6701
|
host: {},
|
|
6642
6702
|
lang: {},
|
|
@@ -6645,14 +6705,14 @@ Ii(Zs, {
|
|
|
6645
6705
|
}, [], ["confirm"], { mode: "open" });
|
|
6646
6706
|
//#endregion
|
|
6647
6707
|
//#region src/components/StepNav.svelte
|
|
6648
|
-
var
|
|
6708
|
+
var tc = /* @__PURE__ */ Y("<div class=\"sbw-error svelte-1q5e1i3\" role=\"alert\"> </div>"), nc = /* @__PURE__ */ Y("<button type=\"button\"> </button>"), rc = /* @__PURE__ */ Y("<div class=\"sbw-nav svelte-1q5e1i3\"><!> <button type=\"button\"> </button></div>"), ic = /* @__PURE__ */ Y("<!> <!>", 1), ac = {
|
|
6649
6709
|
hash: "svelte-1q5e1i3",
|
|
6650
|
-
code: ".sbw-error.svelte-1q5e1i3 {margin:0 20px 16px;font-size:14px;color:#cc4949;}.sbw-nav.svelte-1q5e1i3 {display:flex;align-items:center;gap:12px;padding:0 20px 20px;}.sbw-btn-back.svelte-1q5e1i3 {height:52px;padding:0 24px;border-radius:var(--sbw-radius, 10px);border:1px solid rgba(37, 37, 37, 0.15);background:transparent;color:var(--brand-navy, #16365b);font-size:12px;font-weight:600;letter-spacing:2px;text-transform:uppercase;cursor:pointer;}.sbw-btn-back.svelte-1q5e1i3:hover:not(:disabled) {background:#fafafa;}.sbw-btn-next.svelte-1q5e1i3 {flex:1;height:56px;border-radius:var(--sbw-radius, 10px);border:none;background:var(--brand-gold, #c9a86b);color:var(--brand-navy, #16365b);font-size:13px;font-weight:600;letter-spacing:2px;text-transform:uppercase;cursor:pointer;}.sbw-btn-next.svelte-1q5e1i3:hover:not(:disabled) {background:var(--brand-navy, #16365b);color:#fff;}.sbw-btn-next.svelte-1q5e1i3:disabled,\
|
|
6710
|
+
code: ".sbw-error.svelte-1q5e1i3 {margin:0 20px 16px;font-size:14px;color:#cc4949;}.sbw-nav.svelte-1q5e1i3 {display:flex;align-items:center;gap:12px;padding:0 20px 20px;}.sbw-btn-back.svelte-1q5e1i3 {height:52px;padding:0 24px;border-radius:var(--sbw-radius, 10px);border:1px solid rgba(37, 37, 37, 0.15);background:transparent;color:var(--brand-navy, #16365b);font-size:12px;font-weight:600;letter-spacing:2px;text-transform:uppercase;cursor:pointer;}.sbw-btn-back.svelte-1q5e1i3:hover:not(:disabled) {background:#fafafa;}.sbw-btn-next.svelte-1q5e1i3 {flex:1;height:56px;border-radius:var(--sbw-radius, 10px);border:none;background:var(--brand-gold, #c9a86b);color:var(--brand-navy, #16365b);font-size:13px;font-weight:600;letter-spacing:2px;text-transform:uppercase;cursor:pointer;}.sbw-btn-next.svelte-1q5e1i3:hover:not(:disabled) {background:var(--brand-navy, #16365b);color:#fff;}.sbw-btn-next.svelte-1q5e1i3:disabled,\n .sbw-btn-back.svelte-1q5e1i3:disabled {opacity:0.4;cursor:not-allowed;}\n /* 'dark' variant (Fox/Pevero): solid ink button, gold-on-hover, flush\n corners — opposite convention from the default gold-pill 'navy'\n variant (Positano). Mirrors sidon-ai's BookStepNav variant prop. */.sbw-btn-back.sbw-variant-dark.svelte-1q5e1i3 {border-radius:0;color:var(--brand-ink, #252525);}.sbw-btn-next.sbw-variant-dark.svelte-1q5e1i3 {border-radius:0;background:var(--brand-ink, #252525);color:#fff;}.sbw-btn-next.sbw-variant-dark.svelte-1q5e1i3:hover:not(:disabled) {background:var(--brand-gold, #c9a86b);color:var(--brand-ink, #252525);}"
|
|
6651
6711
|
};
|
|
6652
|
-
function
|
|
6653
|
-
Ye(t, !0), ai(e,
|
|
6654
|
-
let n = $(t, "step", 7), r = $(t, "firstStep", 7, 1), i = $(t, "sending", 7), a = $(t, "nextDisabled", 7, !1), o = $(t, "error", 7), s = $(t, "
|
|
6655
|
-
var
|
|
6712
|
+
function oc(e, t) {
|
|
6713
|
+
Ye(t, !0), ai(e, ac);
|
|
6714
|
+
let n = $(t, "step", 7), r = $(t, "firstStep", 7, 1), i = $(t, "sending", 7), a = $(t, "nextDisabled", 7, !1), o = $(t, "error", 7), s = $(t, "nextLabel", 7), c = $(t, "labels", 7), l = $(t, "variant", 7), u = $(t, "onBack", 7), d = $(t, "onNext", 7), f = /* @__PURE__ */ L(() => i() ? c().sending : s() ? s() : n() === 3 ? c().payAndSend : c().next);
|
|
6715
|
+
var p = {
|
|
6656
6716
|
get step() {
|
|
6657
6717
|
return n();
|
|
6658
6718
|
},
|
|
@@ -6683,70 +6743,77 @@ function rc(e, t) {
|
|
|
6683
6743
|
set error(e) {
|
|
6684
6744
|
o(e), B();
|
|
6685
6745
|
},
|
|
6686
|
-
get
|
|
6746
|
+
get nextLabel() {
|
|
6687
6747
|
return s();
|
|
6688
6748
|
},
|
|
6689
|
-
set
|
|
6749
|
+
set nextLabel(e) {
|
|
6690
6750
|
s(e), B();
|
|
6691
6751
|
},
|
|
6692
|
-
get
|
|
6752
|
+
get labels() {
|
|
6693
6753
|
return c();
|
|
6694
6754
|
},
|
|
6695
|
-
set
|
|
6755
|
+
set labels(e) {
|
|
6696
6756
|
c(e), B();
|
|
6697
6757
|
},
|
|
6698
|
-
get
|
|
6758
|
+
get variant() {
|
|
6699
6759
|
return l();
|
|
6700
6760
|
},
|
|
6701
|
-
set
|
|
6761
|
+
set variant(e) {
|
|
6702
6762
|
l(e), B();
|
|
6703
6763
|
},
|
|
6704
|
-
get
|
|
6764
|
+
get onBack() {
|
|
6705
6765
|
return u();
|
|
6706
6766
|
},
|
|
6707
|
-
set
|
|
6767
|
+
set onBack(e) {
|
|
6708
6768
|
u(e), B();
|
|
6769
|
+
},
|
|
6770
|
+
get onNext() {
|
|
6771
|
+
return d();
|
|
6772
|
+
},
|
|
6773
|
+
set onNext(e) {
|
|
6774
|
+
d(e), B();
|
|
6709
6775
|
}
|
|
6710
|
-
},
|
|
6711
|
-
var t =
|
|
6776
|
+
}, m = ic(), h = mn(m), g = (e) => {
|
|
6777
|
+
var t = tc(), n = U(t, !0);
|
|
6712
6778
|
F(t), G(() => Z(n, o())), X(e, t);
|
|
6713
6779
|
};
|
|
6714
|
-
Q(
|
|
6715
|
-
o() && e(
|
|
6780
|
+
Q(h, (e) => {
|
|
6781
|
+
o() && e(g);
|
|
6716
6782
|
});
|
|
6717
|
-
var
|
|
6718
|
-
var t =
|
|
6719
|
-
var t =
|
|
6783
|
+
var _ = W(h, 2), v = (e) => {
|
|
6784
|
+
var t = rc(), o = U(t), s = (e) => {
|
|
6785
|
+
var t = nc();
|
|
6720
6786
|
let n;
|
|
6721
6787
|
var r = U(t, !0);
|
|
6722
6788
|
F(t), G(() => {
|
|
6723
|
-
n = fi(t, 1, "sbw-btn-back svelte-1q5e1i3", null, n, { "sbw-variant-dark":
|
|
6789
|
+
n = fi(t, 1, "sbw-btn-back svelte-1q5e1i3", null, n, { "sbw-variant-dark": l() === "dark" }), t.disabled = i(), Z(r, c().back);
|
|
6724
6790
|
}), Tr("click", t, function(...e) {
|
|
6725
|
-
|
|
6791
|
+
u()?.apply(this, e);
|
|
6726
6792
|
}), X(e, t);
|
|
6727
6793
|
};
|
|
6728
6794
|
Q(o, (e) => {
|
|
6729
|
-
n() > r() && e(
|
|
6795
|
+
n() > r() && e(s);
|
|
6730
6796
|
});
|
|
6731
6797
|
var p = W(o, 2);
|
|
6732
6798
|
let m;
|
|
6733
6799
|
var h = U(p, !0);
|
|
6734
6800
|
F(p), F(t), G(() => {
|
|
6735
|
-
m = fi(p, 1, "sbw-btn-next svelte-1q5e1i3", null, m, { "sbw-variant-dark":
|
|
6801
|
+
m = fi(p, 1, "sbw-btn-next svelte-1q5e1i3", null, m, { "sbw-variant-dark": l() === "dark" }), p.disabled = i() || a(), Z(h, J(f));
|
|
6736
6802
|
}), Tr("click", p, function(...e) {
|
|
6737
|
-
|
|
6803
|
+
d()?.apply(this, e);
|
|
6738
6804
|
}), X(e, t);
|
|
6739
6805
|
};
|
|
6740
|
-
return Q(
|
|
6741
|
-
n() !== 4 && e(
|
|
6742
|
-
}), X(e,
|
|
6806
|
+
return Q(_, (e) => {
|
|
6807
|
+
n() !== 4 && e(v);
|
|
6808
|
+
}), X(e, m), Xe(p);
|
|
6743
6809
|
}
|
|
6744
|
-
Er(["click"]), Ii(
|
|
6810
|
+
Er(["click"]), Ii(oc, {
|
|
6745
6811
|
step: {},
|
|
6746
6812
|
firstStep: {},
|
|
6747
6813
|
sending: {},
|
|
6748
6814
|
nextDisabled: {},
|
|
6749
6815
|
error: {},
|
|
6816
|
+
nextLabel: {},
|
|
6750
6817
|
labels: {},
|
|
6751
6818
|
variant: {},
|
|
6752
6819
|
onBack: {},
|
|
@@ -6754,13 +6821,13 @@ Er(["click"]), Ii(rc, {
|
|
|
6754
6821
|
}, [], [], { mode: "open" });
|
|
6755
6822
|
//#endregion
|
|
6756
6823
|
//#region src/components/ContractSection.svelte
|
|
6757
|
-
var
|
|
6824
|
+
var sc = /* @__PURE__ */ Y("<p class=\"sbw-contract-agreed svelte-1g7u6xt\"> </p>"), cc = /* @__PURE__ */ Y("<label class=\"sbw-agree-row svelte-1g7u6xt\"><input type=\"checkbox\" class=\"svelte-1g7u6xt\"/> <span> <strong> </strong>.</span></label> <button type=\"button\" class=\"sbw-btn-primary\"> </button>", 1), lc = /* @__PURE__ */ Y("<div class=\"sbw-contract-error svelte-1g7u6xt\" role=\"alert\"> </div>"), uc = /* @__PURE__ */ Y("<div class=\"sbw-contract svelte-1g7u6xt\"><details class=\"sbw-contract-doc svelte-1g7u6xt\"><summary class=\"sbw-contract-heading svelte-1g7u6xt\"> </summary> <div class=\"sbw-contract-body svelte-1g7u6xt\"> </div></details> <!> <!></div>"), dc = {
|
|
6758
6825
|
hash: "svelte-1g7u6xt",
|
|
6759
6826
|
code: "\n /* Carried over from the 0.4 DetailsStep contract block. */.sbw-contract.svelte-1g7u6xt {display:flex;flex-direction:column;gap:10px;padding:0 20px 20px;}.sbw-contract-heading.svelte-1g7u6xt {font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#252525;display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;}.sbw-contract-heading.svelte-1g7u6xt::-webkit-details-marker {display:none;}.sbw-contract-heading.svelte-1g7u6xt::after {content:'+';font-size:18px;font-weight:400;letter-spacing:0;}.sbw-contract-doc[open].svelte-1g7u6xt .sbw-contract-heading:where(.svelte-1g7u6xt)::after {content:'−';}.sbw-contract-doc[open].svelte-1g7u6xt .sbw-contract-body:where(.svelte-1g7u6xt) {margin-top:10px;}.sbw-contract-body.svelte-1g7u6xt {max-height:280px;overflow-y:auto;padding:16px;border-radius:14px;border:1px solid rgba(37, 37, 37, 0.08);background:#fafafa;font-size:13px;line-height:1.7;white-space:pre-wrap;color:var(--brand-navy, #16365b);}.sbw-agree-row.svelte-1g7u6xt {display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;color:var(--brand-navy, #16365b);cursor:pointer;}\n /* Sidon's square check (as on its map's Labels toggle), on the native input\n so keyboard and screen readers behave as before. */.sbw-agree-row.svelte-1g7u6xt input:where(.svelte-1g7u6xt) {appearance:none;flex-shrink:0;position:relative;width:20px;height:20px;margin:0;border:2px solid var(--brand-navy, #16365b);border-radius:3px;background:#fff;cursor:pointer;transition:background 0.15s;}.sbw-agree-row.svelte-1g7u6xt input:where(.svelte-1g7u6xt):checked {background:var(--brand-navy, #16365b);}.sbw-agree-row.svelte-1g7u6xt input:where(.svelte-1g7u6xt):checked::after {content:'';position:absolute;left:5px;top:1px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);}.sbw-agree-row.svelte-1g7u6xt input:where(.svelte-1g7u6xt):focus-visible {outline:2px solid var(--brand-gold, #c9a86b);outline-offset:2px;}.sbw-contract-agreed.svelte-1g7u6xt {margin:0;font-size:13px;font-weight:600;color:#1f9d55;}.sbw-contract-error.svelte-1g7u6xt {font-size:14px;color:#cc4949;}"
|
|
6760
6827
|
};
|
|
6761
|
-
function
|
|
6762
|
-
Ye(t, !0), ai(e,
|
|
6763
|
-
let n = $(t, "apiOrigin", 7), r = $(t, "slug", 7), i = $(t, "session", 7), a = $(t, "lang", 7), o = $(t, "booking", 7), s = $(t, "contract", 7), c = $(t, "onchange", 7), l = /* @__PURE__ */ L(() =>
|
|
6828
|
+
function fc(e, t) {
|
|
6829
|
+
Ye(t, !0), ai(e, dc);
|
|
6830
|
+
let n = $(t, "apiOrigin", 7), r = $(t, "slug", 7), i = $(t, "session", 7), a = $(t, "lang", 7), o = $(t, "booking", 7), s = $(t, "contract", 7), c = $(t, "onchange", 7), l = /* @__PURE__ */ L(() => Cs(a())), u = /* @__PURE__ */ V(!1), d = /* @__PURE__ */ V(!1), f = /* @__PURE__ */ V(null), p = /* @__PURE__ */ V(null), m = /* @__PURE__ */ L(() => s().agreedAt ?? J(p)), h = /* @__PURE__ */ L(() => !J(m) && (o().status === "pending" || o().status === "confirmed")), g = (e) => new Date(e).toLocaleDateString(a(), {
|
|
6764
6831
|
day: "numeric",
|
|
6765
6832
|
month: "short",
|
|
6766
6833
|
year: "numeric"
|
|
@@ -6769,7 +6836,7 @@ function lc(e, t) {
|
|
|
6769
6836
|
if (!(!J(u) || J(d))) {
|
|
6770
6837
|
H(d, !0), H(f, null);
|
|
6771
6838
|
try {
|
|
6772
|
-
H(p, (await
|
|
6839
|
+
H(p, (await Go(n(), r(), i())).agreedAt, !0);
|
|
6773
6840
|
} catch (e) {
|
|
6774
6841
|
e instanceof jo ? e.status < 400 ? H(f, J(l).networkError, !0) : e.status !== 409 && H(f, e.message, !0) : H(f, e instanceof Error ? e.message : String(e), !0);
|
|
6775
6842
|
} finally {
|
|
@@ -6820,15 +6887,15 @@ function lc(e, t) {
|
|
|
6820
6887
|
set onchange(e) {
|
|
6821
6888
|
c(e), B();
|
|
6822
6889
|
}
|
|
6823
|
-
}, y =
|
|
6890
|
+
}, y = uc(), b = U(y), x = U(b), S = U(x, !0);
|
|
6824
6891
|
F(x);
|
|
6825
|
-
var
|
|
6826
|
-
F(
|
|
6892
|
+
var C = W(x, 2), ee = U(C, !0);
|
|
6893
|
+
F(C), F(b);
|
|
6827
6894
|
var w = W(b, 2), T = (e) => {
|
|
6828
|
-
var t =
|
|
6895
|
+
var t = sc(), n = U(t, !0);
|
|
6829
6896
|
F(t), G((e) => Z(n, e), [() => J(l).contractAgreedOn(g(J(m)))]), X(e, t);
|
|
6830
6897
|
}, te = (e) => {
|
|
6831
|
-
var t =
|
|
6898
|
+
var t = cc(), n = mn(t), r = U(n);
|
|
6832
6899
|
yi(r);
|
|
6833
6900
|
var i = W(r, 2), a = U(i), o = W(a), s = U(o, !0);
|
|
6834
6901
|
F(o), Ve(), F(i), F(n);
|
|
@@ -6841,16 +6908,16 @@ function lc(e, t) {
|
|
|
6841
6908
|
J(m) ? e(T) : J(h) && e(te, 1);
|
|
6842
6909
|
});
|
|
6843
6910
|
var ne = W(w, 2), E = (e) => {
|
|
6844
|
-
var t =
|
|
6911
|
+
var t = lc(), n = U(t, !0);
|
|
6845
6912
|
F(t), G(() => Z(n, J(f))), X(e, t);
|
|
6846
6913
|
};
|
|
6847
6914
|
return Q(ne, (e) => {
|
|
6848
6915
|
J(f) && e(E);
|
|
6849
6916
|
}), F(y), G(() => {
|
|
6850
|
-
Z(S, J(l).contractHeading), Z(
|
|
6917
|
+
Z(S, J(l).contractHeading), Z(ee, s().renderedBody);
|
|
6851
6918
|
}), X(e, y), Xe(v);
|
|
6852
6919
|
}
|
|
6853
|
-
Er(["click"]), Ii(
|
|
6920
|
+
Er(["click"]), Ii(fc, {
|
|
6854
6921
|
apiOrigin: {},
|
|
6855
6922
|
slug: {},
|
|
6856
6923
|
session: {},
|
|
@@ -6861,7 +6928,7 @@ Er(["click"]), Ii(lc, {
|
|
|
6861
6928
|
}, [], [], { mode: "open" });
|
|
6862
6929
|
//#endregion
|
|
6863
6930
|
//#region node_modules/ably/build/ably.js
|
|
6864
|
-
var
|
|
6931
|
+
var pc = /* @__PURE__ */ s(((e, t) => {
|
|
6865
6932
|
(function(n, r) {
|
|
6866
6933
|
typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.Ably = r() : n.Ably = r();
|
|
6867
6934
|
})(e, () => {
|
|
@@ -6921,7 +6988,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
6921
6988
|
function S(e, t) {
|
|
6922
6989
|
return `${e}`.padStart(t ? 3 : 2, "0");
|
|
6923
6990
|
}
|
|
6924
|
-
function
|
|
6991
|
+
function C(e) {
|
|
6925
6992
|
return b.Config.logTimestamps ? function(t) {
|
|
6926
6993
|
let n = new Date(b.Config.now());
|
|
6927
6994
|
e(S(n.getHours()) + ":" + S(n.getMinutes()) + ":" + S(n.getSeconds()) + "." + S(n.getMilliseconds(), 1) + " " + t);
|
|
@@ -6929,13 +6996,13 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
6929
6996
|
e(t);
|
|
6930
6997
|
};
|
|
6931
6998
|
}
|
|
6932
|
-
var
|
|
6999
|
+
var ee = () => {
|
|
6933
7000
|
let e, t;
|
|
6934
7001
|
return typeof x?.console?.log == "function" ? (e = function(...e) {
|
|
6935
7002
|
console.log.apply(console, e);
|
|
6936
7003
|
}, t = console.warn ? function(...e) {
|
|
6937
7004
|
console.warn.apply(console, e);
|
|
6938
|
-
} : e) : e = t = function() {}, [e, t].map(
|
|
7005
|
+
} : e) : e = t = function() {}, [e, t].map(C);
|
|
6939
7006
|
}, w = class e {
|
|
6940
7007
|
constructor() {
|
|
6941
7008
|
this.deprecated = (e, t) => {
|
|
@@ -6945,7 +7012,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
6945
7012
|
}, this.logLevel = e.defaultLogLevel, this.logHandler = e.defaultLogHandler, this.logErrorHandler = e.defaultLogErrorHandler;
|
|
6946
7013
|
}
|
|
6947
7014
|
static initLogHandlers() {
|
|
6948
|
-
let [t, n] =
|
|
7015
|
+
let [t, n] = ee();
|
|
6949
7016
|
this.defaultLogHandler = t, this.defaultLogErrorHandler = n, this.defaultLogger = new e();
|
|
6950
7017
|
}
|
|
6951
7018
|
static logActionNoStrip(e, t, n, r) {
|
|
@@ -6979,40 +7046,40 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
6979
7046
|
arrChooseN: () => Ae,
|
|
6980
7047
|
arrDeleteValue: () => pe,
|
|
6981
7048
|
arrEquals: () => F,
|
|
6982
|
-
arrIntersect: () =>
|
|
6983
|
-
arrIntersectOb: () =>
|
|
7049
|
+
arrIntersect: () => de,
|
|
7050
|
+
arrIntersectOb: () => fe,
|
|
6984
7051
|
arrPopRandomElement: () => be,
|
|
6985
7052
|
arrWithoutValue: () => me,
|
|
6986
7053
|
cheapRandStr: () => Oe,
|
|
6987
|
-
containsValue: () =>
|
|
7054
|
+
containsValue: () => le,
|
|
6988
7055
|
copy: () => re,
|
|
6989
7056
|
createMissingPluginError: () => Ve,
|
|
6990
7057
|
dataSizeBytes: () => De,
|
|
6991
7058
|
decodeBody: () => Me,
|
|
6992
7059
|
detectV1Callback: () => Te,
|
|
6993
7060
|
encodeBody: () => Ne,
|
|
6994
|
-
ensureArray: () =>
|
|
7061
|
+
ensureArray: () => A,
|
|
6995
7062
|
forInOwnNonNullProperties: () => _e,
|
|
6996
7063
|
getBackoffCoefficient: () => Ie,
|
|
6997
7064
|
getGlobalObject: () => Re,
|
|
6998
7065
|
getJitterCoefficient: () => Le,
|
|
6999
7066
|
getRetryTime: () => N,
|
|
7000
|
-
inherits: () =>
|
|
7067
|
+
inherits: () => ce,
|
|
7001
7068
|
inspectBody: () => Ee,
|
|
7002
7069
|
inspectError: () => M,
|
|
7003
|
-
intersect: () =>
|
|
7070
|
+
intersect: () => ue,
|
|
7004
7071
|
isEmpty: () => ae,
|
|
7005
7072
|
isErrorInfoOrPartialErrorInfo: () => we,
|
|
7006
|
-
isNil: () =>
|
|
7007
|
-
isObject: () =>
|
|
7073
|
+
isNil: () => j,
|
|
7074
|
+
isObject: () => ie,
|
|
7008
7075
|
keysArray: () => he,
|
|
7009
7076
|
listenerToAsyncIterator: () => We,
|
|
7010
7077
|
matchDerivedChannel: () => ze,
|
|
7011
7078
|
mixin: () => k,
|
|
7012
7079
|
parseQueryString: () => Ce,
|
|
7013
|
-
prototypicalClone: () =>
|
|
7080
|
+
prototypicalClone: () => se,
|
|
7014
7081
|
randomString: () => ke,
|
|
7015
|
-
shallowClone: () =>
|
|
7082
|
+
shallowClone: () => oe,
|
|
7016
7083
|
shallowEquals: () => P,
|
|
7017
7084
|
stringifyValues: () => Se,
|
|
7018
7085
|
throwMissingPluginError: () => He,
|
|
@@ -7033,7 +7100,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
7033
7100
|
};
|
|
7034
7101
|
if (typeof t == "object") {
|
|
7035
7102
|
let n = t;
|
|
7036
|
-
if (typeof n.message != "string" || typeof n.code != "number" || typeof n.statusCode != "number" || !
|
|
7103
|
+
if (typeof n.message != "string" || typeof n.code != "number" || typeof n.statusCode != "number" || !j(n.detail) && (typeof n.detail != "object" || Array.isArray(n.detail))) throw Error("ErrorInfo: invalid values: " + b.Config.inspect(n));
|
|
7037
7104
|
o(n.message), Object.setPrototypeOf !== void 0 && Object.setPrototypeOf(this, e.prototype), this.code = n.code, this.statusCode = n.statusCode, this.detail = n.detail, Object.assign(this, n);
|
|
7038
7105
|
} else o(t), Object.setPrototypeOf !== void 0 && Object.setPrototypeOf(this, e.prototype), this.code = n, this.statusCode = r, this.cause = i, this.detail = a;
|
|
7039
7106
|
}
|
|
@@ -7051,7 +7118,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
7051
7118
|
};
|
|
7052
7119
|
if (typeof t == "object") {
|
|
7053
7120
|
let n = t;
|
|
7054
|
-
if (typeof n.message != "string" || !
|
|
7121
|
+
if (typeof n.message != "string" || !j(n.code) && typeof n.code != "number" || !j(n.statusCode) && typeof n.statusCode != "number" || !j(n.detail) && (typeof n.detail != "object" || Array.isArray(n.detail))) throw Error("PartialErrorInfo: invalid values: " + b.Config.inspect(n));
|
|
7055
7122
|
o(n.message), Object.setPrototypeOf !== void 0 && Object.setPrototypeOf(this, e.prototype), this.code = n.code, this.statusCode = n.statusCode, this.detail = n.detail, Object.assign(this, n);
|
|
7056
7123
|
} else o(t), Object.setPrototypeOf !== void 0 && Object.setPrototypeOf(this, e.prototype), this.code = n, this.statusCode = r, this.cause = i, this.detail = a;
|
|
7057
7124
|
}
|
|
@@ -7077,45 +7144,45 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
7077
7144
|
function re(e) {
|
|
7078
7145
|
return k({}, e);
|
|
7079
7146
|
}
|
|
7080
|
-
function ie(e) {
|
|
7081
|
-
return oe(e) ? [] : Array.isArray(e) ? e : [e];
|
|
7082
|
-
}
|
|
7083
7147
|
function A(e) {
|
|
7148
|
+
return j(e) ? [] : Array.isArray(e) ? e : [e];
|
|
7149
|
+
}
|
|
7150
|
+
function ie(e) {
|
|
7084
7151
|
return Object.prototype.toString.call(e) == "[object Object]";
|
|
7085
7152
|
}
|
|
7086
7153
|
function ae(e) {
|
|
7087
7154
|
for (let t in e) return !1;
|
|
7088
7155
|
return !0;
|
|
7089
7156
|
}
|
|
7090
|
-
function
|
|
7157
|
+
function j(e) {
|
|
7091
7158
|
return e == null;
|
|
7092
7159
|
}
|
|
7093
|
-
function
|
|
7160
|
+
function oe(e) {
|
|
7094
7161
|
let t = {};
|
|
7095
7162
|
for (let n in e) t[n] = e[n];
|
|
7096
7163
|
return t;
|
|
7097
7164
|
}
|
|
7098
|
-
function
|
|
7165
|
+
function se(e, t) {
|
|
7099
7166
|
class n {}
|
|
7100
7167
|
n.prototype = e;
|
|
7101
7168
|
let r = new n();
|
|
7102
7169
|
return t && k(r, t), r;
|
|
7103
7170
|
}
|
|
7104
|
-
var
|
|
7171
|
+
var ce = function(e, t) {
|
|
7105
7172
|
if (b.Config.inherits) {
|
|
7106
7173
|
b.Config.inherits(e, t);
|
|
7107
7174
|
return;
|
|
7108
7175
|
}
|
|
7109
|
-
e.super_ = t, e.prototype =
|
|
7176
|
+
e.super_ = t, e.prototype = se(t.prototype, { constructor: e });
|
|
7110
7177
|
};
|
|
7111
|
-
function
|
|
7178
|
+
function le(e, t) {
|
|
7112
7179
|
for (let n in e) if (e[n] == t) return !0;
|
|
7113
7180
|
return !1;
|
|
7114
7181
|
}
|
|
7115
|
-
function
|
|
7116
|
-
return Array.isArray(t) ?
|
|
7182
|
+
function ue(e, t) {
|
|
7183
|
+
return Array.isArray(t) ? de(e, t) : fe(e, t);
|
|
7117
7184
|
}
|
|
7118
|
-
function
|
|
7185
|
+
function de(e, t) {
|
|
7119
7186
|
let n = [];
|
|
7120
7187
|
for (let r = 0; r < e.length; r++) {
|
|
7121
7188
|
let i = e[r];
|
|
@@ -7123,7 +7190,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
7123
7190
|
}
|
|
7124
7191
|
return n;
|
|
7125
7192
|
}
|
|
7126
|
-
function
|
|
7193
|
+
function fe(e, t) {
|
|
7127
7194
|
let n = [];
|
|
7128
7195
|
for (let r = 0; r < e.length; r++) {
|
|
7129
7196
|
let i = e[r];
|
|
@@ -8034,7 +8101,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
8034
8101
|
for (let o = 0; o < e.length; o++) if (r = e[o], n && (r = r[n]), Array.isArray(r)) {
|
|
8035
8102
|
for (; (i = r.indexOf(t)) !== -1;) r.splice(i, 1);
|
|
8036
8103
|
n && r.length === 0 && delete e[o][n];
|
|
8037
|
-
} else if (
|
|
8104
|
+
} else if (ie(r)) for (a in r) Object.prototype.hasOwnProperty.call(r, a) && Array.isArray(r[a]) && It([r], t, a);
|
|
8038
8105
|
}
|
|
8039
8106
|
var Lt = class {
|
|
8040
8107
|
constructor(e) {
|
|
@@ -8049,7 +8116,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
8049
8116
|
if (e.length === 2) {
|
|
8050
8117
|
let [t, n] = e;
|
|
8051
8118
|
if (typeof n != "function") throw Error("EventListener.on(): Invalid arguments: " + b.Config.inspect(e));
|
|
8052
|
-
if (
|
|
8119
|
+
if (j(t)) this.any.push(n);
|
|
8053
8120
|
else if (Array.isArray(t)) t.forEach((e) => {
|
|
8054
8121
|
this.on(e, n);
|
|
8055
8122
|
});
|
|
@@ -8060,7 +8127,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
8060
8127
|
}
|
|
8061
8128
|
}
|
|
8062
8129
|
off(...e) {
|
|
8063
|
-
if (e.length == 0 ||
|
|
8130
|
+
if (e.length == 0 || j(e[0]) && j(e[1])) {
|
|
8064
8131
|
this.any = [], this.events = /* @__PURE__ */ Object.create(null), this.anyOnce = [], this.eventsOnce = /* @__PURE__ */ Object.create(null);
|
|
8065
8132
|
return;
|
|
8066
8133
|
}
|
|
@@ -8070,7 +8137,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
8070
8137
|
if (typeof n != "function") throw Error("EventEmitter.off(): invalid arguments:" + b.Config.inspect(e));
|
|
8071
8138
|
[i, r] = [t, n];
|
|
8072
8139
|
}
|
|
8073
|
-
if (r &&
|
|
8140
|
+
if (r && j(i)) {
|
|
8074
8141
|
It([
|
|
8075
8142
|
this.any,
|
|
8076
8143
|
this.events,
|
|
@@ -8115,7 +8182,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
8115
8182
|
}
|
|
8116
8183
|
let [n, r] = e;
|
|
8117
8184
|
if (e.length === 1 && typeof n == "function") this.anyOnce.push(n);
|
|
8118
|
-
else if (
|
|
8185
|
+
else if (j(n)) {
|
|
8119
8186
|
if (typeof r != "function") throw Error("EventEmitter.once(): Invalid arguments:" + b.Config.inspect(e));
|
|
8120
8187
|
this.anyOnce.push(r);
|
|
8121
8188
|
} else if (Array.isArray(n)) {
|
|
@@ -8236,7 +8303,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
8236
8303
|
data: e,
|
|
8237
8304
|
encoding: t
|
|
8238
8305
|
};
|
|
8239
|
-
if (
|
|
8306
|
+
if (ie(e) || Array.isArray(e)) return {
|
|
8240
8307
|
data: JSON.stringify(e),
|
|
8241
8308
|
encoding: t ? t + "/json" : "json"
|
|
8242
8309
|
};
|
|
@@ -9172,7 +9239,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
9172
9239
|
name: t,
|
|
9173
9240
|
data: n
|
|
9174
9241
|
})], i = e[2];
|
|
9175
|
-
else if (
|
|
9242
|
+
else if (ie(t)) r = [Un.fromValues(t)], i = e[1];
|
|
9176
9243
|
else if (Array.isArray(t)) r = Un.fromValuesArray(t), i = e[1];
|
|
9177
9244
|
else throw new E({
|
|
9178
9245
|
message: "publish() expects an event name (string or null), a message object, or an array of message objects as its first argument",
|
|
@@ -9328,7 +9395,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
9328
9395
|
});
|
|
9329
9396
|
typeof i != "string" && (i = o(i) ?? null), k(d, this.client.options.headers), a && k(d, a);
|
|
9330
9397
|
let f = new pn(this.client, t, d, l, async function(e, t, n) {
|
|
9331
|
-
return
|
|
9398
|
+
return A(n ? e : s(e));
|
|
9332
9399
|
}, !0);
|
|
9333
9400
|
if (!b.Http.methods.includes(u)) throw new E({
|
|
9334
9401
|
message: "Unsupported method " + u,
|
|
@@ -9597,7 +9664,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
9597
9664
|
}
|
|
9598
9665
|
};
|
|
9599
9666
|
function Sr(e) {
|
|
9600
|
-
if (e && "params" in e && !
|
|
9667
|
+
if (e && "params" in e && !ie(e.params)) return new E({
|
|
9601
9668
|
message: "options.params must be an object",
|
|
9602
9669
|
code: 4e4,
|
|
9603
9670
|
statusCode: 400,
|
|
@@ -9715,7 +9782,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
9715
9782
|
name: t,
|
|
9716
9783
|
data: n
|
|
9717
9784
|
})], i = e[2];
|
|
9718
|
-
else if (
|
|
9785
|
+
else if (ie(t)) r = [Un.fromValues(t)], i = e[1];
|
|
9719
9786
|
else if (Array.isArray(t)) r = Un.fromValuesArray(t), i = e[1];
|
|
9720
9787
|
else throw new E({
|
|
9721
9788
|
message: "The single-argument form of publish() expects a message object or an array of message objects",
|
|
@@ -10594,7 +10661,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
10594
10661
|
sendEvents: !1,
|
|
10595
10662
|
failState: "failed"
|
|
10596
10663
|
}
|
|
10597
|
-
}, this.state = this.states.initialized, this.errorReason = null, this.queuedMessages = new kr(this.logger), this.msgSerial = 0, this.connectionDetails = void 0, this.connectionId = void 0, this.connectionKey = void 0, this.connectionStateTtl = n.connectionStateTtl, this.maxIdleInterval = null, this.transports =
|
|
10664
|
+
}, this.state = this.states.initialized, this.errorReason = null, this.queuedMessages = new kr(this.logger), this.msgSerial = 0, this.connectionDetails = void 0, this.connectionId = void 0, this.connectionKey = void 0, this.connectionStateTtl = n.connectionStateTtl, this.maxIdleInterval = null, this.transports = ue(t.transports || I.defaultTransports, this.supportedTransports), this.transportPreference = null, this.transports.includes(Rr.WebSocket) && (this.webSocketTransportAvailable = !0), this.transports.includes(Rr.XhrPolling) ? this.baseTransport = Rr.XhrPolling : this.transports.includes(Rr.Comet) && (this.baseTransport = Rr.Comet), this.domains = I.getHosts(t), this.activeProtocol = null, this.host = null, this.lastAutoReconnectAttempt = null, this.lastActivity = null, this.forceFallbackHost = !1, this.connectCounter = 0, this.wsCheckResult = null, this.webSocketSlowTimer = null, this.webSocketGiveUpTimer = null, this.abandonedWebSocket = !1, T.logAction(this.logger, T.LOG_MINOR, "Realtime.ConnectionManager()", "started"), T.logAction(this.logger, T.LOG_MICRO, "Realtime.ConnectionManager()", "requested transports = [" + (t.transports || I.defaultTransports) + "]"), T.logAction(this.logger, T.LOG_MICRO, "Realtime.ConnectionManager()", "available transports = [" + this.transports + "]"), T.logAction(this.logger, T.LOG_MICRO, "Realtime.ConnectionManager()", "http domains = [" + this.domains + "]"), !this.transports.length) {
|
|
10598
10665
|
let e = "no requested transports available";
|
|
10599
10666
|
throw T.logAction(this.logger, T.LOG_ERROR, "realtime.ConnectionManager()", e), Error(e);
|
|
10600
10667
|
}
|
|
@@ -12339,7 +12406,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
12339
12406
|
}
|
|
12340
12407
|
var Yi = class e extends Lt {
|
|
12341
12408
|
constructor(e, t, n, r, i, a, o, s) {
|
|
12342
|
-
super(o), n ||= {}, n.rnd = Oe(), this.uri = e + xe(n), this.headers = t || {}, this.body = r, this.method = s ? s.toUpperCase() :
|
|
12409
|
+
super(o), n ||= {}, n.rnd = Oe(), this.uri = e + xe(n), this.headers = t || {}, this.body = r, this.method = s ? s.toUpperCase() : j(r) ? "GET" : "POST", this.requestMode = i, this.timeouts = a, this.timedOut = !1, this.requestComplete = !1, this.id = String(++Wi), Gi[this.id] = this;
|
|
12343
12410
|
}
|
|
12344
12411
|
static createRequest(t, n, r, i, a, o, s, c) {
|
|
12345
12412
|
let l = o || I.TIMEOUTS;
|
|
@@ -12699,7 +12766,7 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
12699
12766
|
}), t;
|
|
12700
12767
|
}
|
|
12701
12768
|
async function ya(e, t, n, r, i, a) {
|
|
12702
|
-
let o = new Headers(r || {}), s = e ? e.toUpperCase() :
|
|
12769
|
+
let o = new Headers(r || {}), s = e ? e.toUpperCase() : j(a) ? "GET" : "POST", c = new AbortController(), l, u = new Promise((e) => {
|
|
12703
12770
|
l = setTimeout(() => {
|
|
12704
12771
|
c.abort(), e({ error: new D("Request timed out", null, 408) });
|
|
12705
12772
|
}, t ? t.options.timeouts.httpRequestTimeout : I.TIMEOUTS.httpRequestTimeout);
|
|
@@ -12763,21 +12830,21 @@ var uc = /* @__PURE__ */ s(((e, t) => {
|
|
|
12763
12830
|
return e;
|
|
12764
12831
|
})(t.exports, e)), t.exports;
|
|
12765
12832
|
});
|
|
12766
|
-
})),
|
|
12833
|
+
})), mc = /* @__PURE__ */ Y("<button type=\"button\" class=\"sbw-btn-secondary svelte-1312f6m\"> </button>"), hc = /* @__PURE__ */ Y("<div class=\"sbw-view-error sbw-view-error-first svelte-1312f6m\" role=\"alert\"> </div> <div class=\"sbw-view-actions svelte-1312f6m\"><button type=\"button\" class=\"sbw-btn-secondary svelte-1312f6m\"> </button> <!></div>", 1), gc = /* @__PURE__ */ Y("<div class=\"sbw-view-loading svelte-1312f6m\"> </div>"), _c = /* @__PURE__ */ Pr("<circle cx=\"12\" cy=\"12\" r=\"8.5\" class=\"svelte-1312f6m\"></circle><path d=\"M12 7.5V12l3 2\" class=\"svelte-1312f6m\"></path>", 1), vc = /* @__PURE__ */ Pr("<path d=\"M5 12.5l4.5 4.5L19 7.5\" class=\"svelte-1312f6m\"></path>"), yc = /* @__PURE__ */ Pr("<path d=\"M6.5 6.5l11 11M17.5 6.5l-11 11\" class=\"svelte-1312f6m\"></path>"), bc = /* @__PURE__ */ Y("<p class=\"sbw-hero-live svelte-1312f6m\"><span class=\"sbw-live-dot svelte-1312f6m\"></span> </p>"), xc = /* @__PURE__ */ Y("<div class=\"sbw-panel svelte-1312f6m\"><div class=\"sbw-panel-heading svelte-1312f6m\"><span class=\"svelte-1312f6m\"> </span> <span class=\"sbw-panel-amount svelte-1312f6m\"> </span></div> <p class=\"sbw-panel-note svelte-1312f6m\"> </p> <p class=\"sbw-panel-note svelte-1312f6m\"> </p> <div class=\"sbw-card svelte-1312f6m\"></div> <button type=\"button\" class=\"sbw-btn-primary svelte-1312f6m\"> </button></div>"), Sc = /* @__PURE__ */ Y("<div class=\"sbw-panel svelte-1312f6m\"><div class=\"sbw-panel-heading svelte-1312f6m\"><span class=\"svelte-1312f6m\"> </span></div> <p class=\"sbw-panel-note svelte-1312f6m\"> </p> <p class=\"sbw-panel-note svelte-1312f6m\"> </p> <button type=\"button\" class=\"sbw-btn-secondary svelte-1312f6m\"> </button></div>"), Cc = /* @__PURE__ */ Y("<div class=\"sbw-panel svelte-1312f6m\"><div class=\"sbw-panel-heading svelte-1312f6m\"><span class=\"svelte-1312f6m\"> </span></div> <p class=\"sbw-panel-note svelte-1312f6m\"> </p></div>"), wc = /* @__PURE__ */ Y("<div class=\"svelte-1312f6m\"><dt class=\"svelte-1312f6m\"> </dt><dd class=\"svelte-1312f6m\"> </dd></div>"), Tc = /* @__PURE__ */ Y("<div class=\"sbw-view-error svelte-1312f6m\" role=\"alert\"> </div>"), Ec = /* @__PURE__ */ Y("<div class=\"sbw-view-actions svelte-1312f6m\"><!> <!></div>"), Dc = /* @__PURE__ */ Y("<div role=\"status\"><div class=\"sbw-hero-icon svelte-1312f6m\" aria-hidden=\"true\"><svg width=\"26\" height=\"26\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-1312f6m\"><!></svg></div> <div class=\"sbw-hero-eyebrow svelte-1312f6m\"> </div> <h3 class=\"sbw-hero-title svelte-1312f6m\"> </h3> <p class=\"sbw-hero-body svelte-1312f6m\"> </p> <!></div> <!> <div class=\"sbw-facts-heading svelte-1312f6m\"> </div> <dl class=\"sbw-facts svelte-1312f6m\"><div class=\"svelte-1312f6m\"><dt class=\"svelte-1312f6m\"> </dt><dd class=\"svelte-1312f6m\"> </dd></div> <div class=\"svelte-1312f6m\"><dt class=\"svelte-1312f6m\"> </dt><dd class=\"svelte-1312f6m\"> </dd></div> <div class=\"svelte-1312f6m\"><dt class=\"svelte-1312f6m\"> </dt> <dd class=\"svelte-1312f6m\"> </dd></div> <div class=\"svelte-1312f6m\"><dt class=\"svelte-1312f6m\"> </dt><dd class=\"svelte-1312f6m\"> </dd></div> <!> <div class=\"svelte-1312f6m\"><dt class=\"svelte-1312f6m\"> </dt> <dd class=\"svelte-1312f6m\"> </dd></div></dl> <!> <!> <!> <!> <dialog class=\"sbw-confirm svelte-1312f6m\" aria-labelledby=\"sbw-confirm-title\"><h2 id=\"sbw-confirm-title\" class=\"sbw-confirm-title svelte-1312f6m\"> </h2> <p class=\"sbw-confirm-body svelte-1312f6m\"> </p> <div class=\"sbw-confirm-actions svelte-1312f6m\"><button type=\"button\" class=\"sbw-btn-secondary svelte-1312f6m\"> </button> <button type=\"button\" class=\"sbw-btn-primary svelte-1312f6m\"> </button></div></dialog>", 1), Oc = /* @__PURE__ */ Y("<div><!></div>"), kc = {
|
|
12767
12834
|
hash: "svelte-1312f6m",
|
|
12768
12835
|
code: ".sbw-view.svelte-1312f6m {display:flex;flex-direction:column;color:var(--brand-ink, #252525);}.sbw-view-loading.svelte-1312f6m {padding:32px 20px;font-size:14px;text-align:center;color:#666;}.sbw-view-error.svelte-1312f6m {margin:0 20px 16px;font-size:14px;color:#cc4949;}.sbw-view-error-first.svelte-1312f6m {margin-top:24px;}\r\n /* Hero: the 0.4 SentStep panel, one state per OTA status (+ expired). */.sbw-hero.svelte-1312f6m {display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:32px 20px;}.sbw-hero-icon.svelte-1312f6m {width:56px;height:56px;border-radius:999px;background:var(--brand-gold, #c9a86b);color:var(--brand-navy, #16365b);display:flex;align-items:center;justify-content:center;}.sbw-hero-ok.svelte-1312f6m .sbw-hero-icon:where(.svelte-1312f6m) {background:#1f9d55;color:#fff;}.sbw-hero-bad.svelte-1312f6m .sbw-hero-icon:where(.svelte-1312f6m) {background:#cc4949;color:#fff;}.sbw-hero-eyebrow.svelte-1312f6m {font-size:11px;font-weight:600;letter-spacing:2.5px;text-transform:uppercase;color:var(--brand-gold, #c9a86b);}.sbw-hero-ok.svelte-1312f6m .sbw-hero-eyebrow:where(.svelte-1312f6m) {color:#1f9d55;}.sbw-hero-bad.svelte-1312f6m .sbw-hero-eyebrow:where(.svelte-1312f6m) {color:#cc4949;}.sbw-hero-title.svelte-1312f6m {font-size:32px;font-weight:400;text-transform:uppercase;color:var(--brand-navy, #16365b);margin:0;}.sbw-hero-body.svelte-1312f6m {font-size:14px;color:#252525;max-width:420px;line-height:1.7;margin:0;}.sbw-hero-live.svelte-1312f6m {display:inline-flex;align-items:center;gap:8px;margin:0;font-size:12px;color:#666;}.sbw-live-dot.svelte-1312f6m {width:8px;height:8px;border-radius:999px;background:var(--brand-gold, #c9a86b);\r\n animation: svelte-1312f6m-sbw-pulse 1.6s ease-in-out infinite;}\r\n @keyframes svelte-1312f6m-sbw-pulse {\r\n 50% {\r\n opacity: 0.3;\r\n }\r\n }\r\n @media (prefers-reduced-motion: reduce) {.sbw-live-dot.svelte-1312f6m {\r\n animation: none;}\r\n }.sbw-panel.svelte-1312f6m {display:flex;flex-direction:column;gap:10px;margin:0 20px 20px;padding:16px;border:1px solid #e4e7ec;border-radius:var(--sbw-radius, 10px);}.sbw-panel-heading.svelte-1312f6m {display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#252525;}.sbw-panel-amount.svelte-1312f6m {font-size:22px;font-weight:500;color:var(--brand-navy, #16365b);}.sbw-panel-note.svelte-1312f6m {font-size:12px;color:#252525;line-height:1.6;margin:0;}.sbw-card.svelte-1312f6m {padding:14px;border-radius:12px;border:1px solid #e4e7ec;background:#fff;}.sbw-facts-heading.svelte-1312f6m {padding:0 20px;font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#252525;}.sbw-facts.svelte-1312f6m {display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;margin:10px 0 0;padding:0 20px 20px;}.sbw-facts.svelte-1312f6m dt:where(.svelte-1312f6m) {font-size:11px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#666;}.sbw-facts.svelte-1312f6m dd:where(.svelte-1312f6m) {margin:2px 0 0;font-size:15px;color:var(--brand-navy, #16365b);overflow-wrap:anywhere;}.sbw-view-actions.svelte-1312f6m {display:flex;flex-wrap:wrap;gap:12px;padding:0 20px 20px;}\r\n /* Buttons mirror StepNav's Back/Next. The primary one is :global so\r\n ContractSection's Agree button picks up the same variant styling. */.sbw-btn-secondary.svelte-1312f6m {height:52px;padding:0 24px;border-radius:var(--sbw-radius, 10px);border:1px solid rgba(37, 37, 37, 0.15);background:transparent;color:var(--brand-navy, #16365b);font-size:12px;font-weight:600;letter-spacing:2px;text-transform:uppercase;cursor:pointer;}.sbw-btn-secondary.svelte-1312f6m:hover:not(:disabled) {background:#fafafa;}.sbw-view.svelte-1312f6m .sbw-btn-primary {height:56px;border-radius:var(--sbw-radius, 10px);border:none;background:var(--brand-gold, #c9a86b);color:var(--brand-navy, #16365b);font-size:13px;font-weight:600;letter-spacing:2px;text-transform:uppercase;cursor:pointer;}.sbw-view.svelte-1312f6m .sbw-btn-primary:hover:not(:disabled) {background:var(--brand-navy, #16365b);color:#fff;}.sbw-btn-secondary.svelte-1312f6m:disabled,\r\n .sbw-view.svelte-1312f6m .sbw-btn-primary:disabled {opacity:0.4;cursor:not-allowed;}\r\n /* Cancel confirmation: DocumentsStep's sign-in dialog, with this view's buttons. */.sbw-confirm.svelte-1312f6m {box-sizing:border-box;width:min(440px, calc(100vw - 40px));padding:32px;border:none;border-radius:var(--sbw-radius, 10px);background:#fff;color:var(--brand-ink, #252525);text-align:center;box-shadow:0 24px 64px rgba(0, 0, 0, 0.35);}.sbw-confirm[open].svelte-1312f6m {\r\n animation: svelte-1312f6m-sbw-confirm-in 0.35s ease-out;}.sbw-confirm.svelte-1312f6m::backdrop {background:rgba(5, 4, 15, 0.55);backdrop-filter:blur(3px);}\r\n @keyframes svelte-1312f6m-sbw-confirm-in {\r\n from {\r\n opacity: 0;\r\n transform: translateY(12px);\r\n }\r\n }\r\n @media (prefers-reduced-motion: reduce) {.sbw-confirm[open].svelte-1312f6m {\r\n animation: none;}\r\n }.sbw-confirm-title.svelte-1312f6m {margin:0 0 8px;font-size:22px;font-weight:600;line-height:1.2;color:var(--brand-navy, #16365b);}.sbw-confirm-body.svelte-1312f6m {margin:0 0 24px;font-size:14px;line-height:1.65;color:#666;}.sbw-confirm-actions.svelte-1312f6m {display:flex;flex-wrap:wrap;gap:12px;}\r\n /* .sbw-view: outranks the :global primary rule, so both buttons match. */.sbw-view.svelte-1312f6m .sbw-confirm-actions:where(.svelte-1312f6m) button:where(.svelte-1312f6m) {flex:1 1 150px;height:52px;padding:0 16px;font-size:12px;}.sbw-variant-dark.svelte-1312f6m .sbw-confirm:where(.svelte-1312f6m) {border-radius:0;}\r\n /* 'dark' variant (Fox/Pevero): flush corners, solid ink, gold on hover. */.sbw-variant-dark.svelte-1312f6m .sbw-btn-secondary:where(.svelte-1312f6m) {border-radius:0;color:var(--brand-ink, #252525);}.sbw-view.sbw-variant-dark.svelte-1312f6m .sbw-btn-primary {border-radius:0;background:var(--brand-ink, #252525);color:#fff;}.sbw-view.sbw-variant-dark.svelte-1312f6m .sbw-btn-primary:hover:not(:disabled) {background:var(--brand-gold, #c9a86b);color:var(--brand-ink, #252525);}"
|
|
12769
12836
|
};
|
|
12770
|
-
function
|
|
12771
|
-
Ye(t, !0), ai(e,
|
|
12772
|
-
let n = $(t, "apiOrigin", 7), r = $(t, "slug", 7), i = $(t, "session", 7), a = $(t, "lang", 7), o = $(t, "currencySymbol", 7), s = $(t, "variant", 7), c = $(t, "host", 7), l = $(t, "onstatus", 7), d = $(t, "onstartover", 7), f = "sidon-booking-payment", p = /* @__PURE__ */ V(null), m = /* @__PURE__ */ L(() => Ua(a(), J(p)?.booking.locale)), h = /* @__PURE__ */ L(() =>
|
|
12837
|
+
function Ac(e, t) {
|
|
12838
|
+
Ye(t, !0), ai(e, kc);
|
|
12839
|
+
let n = $(t, "apiOrigin", 7), r = $(t, "slug", 7), i = $(t, "session", 7), a = $(t, "lang", 7), o = $(t, "currencySymbol", 7), s = $(t, "variant", 7), c = $(t, "host", 7), l = $(t, "onstatus", 7), d = $(t, "onstartover", 7), f = "sidon-booking-payment", p = /* @__PURE__ */ V(null), m = /* @__PURE__ */ L(() => Ua(a(), J(p)?.booking.locale)), h = /* @__PURE__ */ L(() => Cs(J(m))), g = /* @__PURE__ */ V(null), _ = /* @__PURE__ */ V(null), v = /* @__PURE__ */ V(!1), y = /* @__PURE__ */ V(!1), b = /* @__PURE__ */ V(!1), x = /* @__PURE__ */ V(!1), S = /* @__PURE__ */ V(null), C = null, ee = null, w = null, T = !1, te = /* @__PURE__ */ V(!1), ne = 0, E = !1, D = null, O, k = (e) => e instanceof jo && e.status < 400 ? J(h).networkError : e instanceof Error ? e.message : String(e), re = (e) => ja(e)?.toLocaleDateString(J(m), {
|
|
12773
12840
|
day: "numeric",
|
|
12774
12841
|
month: "short",
|
|
12775
12842
|
year: "numeric"
|
|
12776
|
-
}) ?? "",
|
|
12843
|
+
}) ?? "", A = (e) => e ? new Date(e).toLocaleTimeString(J(m), {
|
|
12777
12844
|
hour: "2-digit",
|
|
12778
12845
|
minute: "2-digit"
|
|
12779
12846
|
}) : "";
|
|
12780
|
-
async function
|
|
12847
|
+
async function ie() {
|
|
12781
12848
|
let e = ++ne;
|
|
12782
12849
|
try {
|
|
12783
12850
|
let t = await Bo(n(), r(), i());
|
|
@@ -12788,7 +12855,7 @@ function Dc(e, t) {
|
|
|
12788
12855
|
let e = w;
|
|
12789
12856
|
w = a, l()(a, e);
|
|
12790
12857
|
}
|
|
12791
|
-
a === "hold" ? t.payment && !T && (T = !0, ae(t.payment)) :
|
|
12858
|
+
a === "hold" ? t.payment && !T && (T = !0, ae(t.payment)) : oe();
|
|
12792
12859
|
} catch (t) {
|
|
12793
12860
|
if (E || e !== ne || J(p)) return;
|
|
12794
12861
|
H(g, t instanceof jo && t.status === 404 ? J(h).bookingNotFound : J(h).loadFailed, !0);
|
|
@@ -12797,97 +12864,97 @@ function Dc(e, t) {
|
|
|
12797
12864
|
async function ae(e) {
|
|
12798
12865
|
H(te, !1);
|
|
12799
12866
|
try {
|
|
12800
|
-
await Vo(n(), r(), i()), await
|
|
12867
|
+
await Vo(n(), r(), i()), await ie();
|
|
12801
12868
|
} catch (t) {
|
|
12802
12869
|
let n = oo(t instanceof jo ? t.status : 0);
|
|
12803
|
-
n === "lapsed" ? H(y, !0) : n === "card" ? await
|
|
12870
|
+
n === "lapsed" ? H(y, !0) : n === "card" ? await j(e) : (H(_, k(t), !0), H(te, !0), T = !1);
|
|
12804
12871
|
}
|
|
12805
12872
|
}
|
|
12806
|
-
async function
|
|
12807
|
-
if (
|
|
12873
|
+
async function j(e) {
|
|
12874
|
+
if (ee || (H(b, !0), await mr(), E || !J(S))) return;
|
|
12808
12875
|
let t = document.createElement("slot");
|
|
12809
12876
|
t.name = f, J(S).appendChild(t);
|
|
12810
12877
|
let n = document.createElement("div");
|
|
12811
|
-
n.slot = f, c().appendChild(n),
|
|
12878
|
+
n.slot = f, c().appendChild(n), ee = n;
|
|
12812
12879
|
try {
|
|
12813
|
-
let t = await
|
|
12880
|
+
let t = await Xs({
|
|
12814
12881
|
publishableKey: e.publishableKey,
|
|
12815
12882
|
clientSecret: e.clientSecret,
|
|
12816
12883
|
locale: J(m),
|
|
12817
12884
|
mount: n,
|
|
12818
12885
|
colorPrimary: getComputedStyle(c()).getPropertyValue("--brand-navy").trim() || "#16365b"
|
|
12819
12886
|
});
|
|
12820
|
-
if (
|
|
12821
|
-
|
|
12887
|
+
if (ee !== n) return t.destroy();
|
|
12888
|
+
C = t, H(x, !0);
|
|
12822
12889
|
} catch (e) {
|
|
12823
12890
|
H(_, k(e), !0);
|
|
12824
12891
|
}
|
|
12825
12892
|
}
|
|
12826
|
-
function
|
|
12827
|
-
|
|
12893
|
+
function oe() {
|
|
12894
|
+
C?.destroy(), C = null, ee?.remove(), ee = null, H(b, !1), H(x, !1);
|
|
12828
12895
|
}
|
|
12829
|
-
async function
|
|
12830
|
-
if (!
|
|
12896
|
+
async function se() {
|
|
12897
|
+
if (!C || J(v)) return;
|
|
12831
12898
|
H(v, !0), H(_, null);
|
|
12832
12899
|
let e = null;
|
|
12833
12900
|
try {
|
|
12834
|
-
await
|
|
12901
|
+
await C.confirm();
|
|
12835
12902
|
} catch (t) {
|
|
12836
12903
|
e = t;
|
|
12837
12904
|
}
|
|
12838
12905
|
try {
|
|
12839
|
-
await Vo(n(), r(), i()),
|
|
12906
|
+
await Vo(n(), r(), i()), oe();
|
|
12840
12907
|
} catch (t) {
|
|
12841
|
-
t instanceof jo && t.status === 410 ? (H(y, !0),
|
|
12908
|
+
t instanceof jo && t.status === 410 ? (H(y, !0), oe()) : H(_, k(e ?? t), !0);
|
|
12842
12909
|
} finally {
|
|
12843
12910
|
H(v, !1);
|
|
12844
12911
|
}
|
|
12845
|
-
await
|
|
12912
|
+
await ie();
|
|
12846
12913
|
}
|
|
12847
|
-
let
|
|
12848
|
-
async function
|
|
12849
|
-
if (J(
|
|
12914
|
+
let ce = /* @__PURE__ */ V(void 0);
|
|
12915
|
+
async function le() {
|
|
12916
|
+
if (J(ce)?.close(), !J(v)) {
|
|
12850
12917
|
H(v, !0), H(_, null);
|
|
12851
12918
|
try {
|
|
12852
|
-
await Ho(n(), r(), i()),
|
|
12919
|
+
await Ho(n(), r(), i()), oe();
|
|
12853
12920
|
} catch (e) {
|
|
12854
12921
|
H(_, k(e), !0);
|
|
12855
12922
|
} finally {
|
|
12856
12923
|
H(v, !1);
|
|
12857
12924
|
}
|
|
12858
|
-
await
|
|
12925
|
+
await ie();
|
|
12859
12926
|
}
|
|
12860
12927
|
}
|
|
12861
|
-
async function
|
|
12862
|
-
J(v) || (H(v, !0), J(p)?.booking.status === "hold" && await Ho(n(), r(), i()).catch(() => {}),
|
|
12928
|
+
async function ue() {
|
|
12929
|
+
J(v) || (H(v, !0), J(p)?.booking.status === "hold" && await Ho(n(), r(), i()).catch(() => {}), oe(), H(v, !1), d()?.());
|
|
12863
12930
|
}
|
|
12864
|
-
async function
|
|
12931
|
+
async function de() {
|
|
12865
12932
|
try {
|
|
12866
|
-
let e = (await Promise.resolve().then(() => /* @__PURE__ */ u(
|
|
12933
|
+
let e = (await Promise.resolve().then(() => /* @__PURE__ */ u(pc()))).default;
|
|
12867
12934
|
if (E) return;
|
|
12868
12935
|
let t = new e.Realtime({ authCallback: (e, t) => {
|
|
12869
|
-
|
|
12936
|
+
Ko(n(), r(), i()).then((e) => {
|
|
12870
12937
|
if (e) return t(null, e);
|
|
12871
|
-
t("Live updates are not configured", null),
|
|
12938
|
+
t("Live updates are not configured", null), fe();
|
|
12872
12939
|
}, (e) => t(k(e), null));
|
|
12873
12940
|
} });
|
|
12874
|
-
D = t, t.connection.on(["failed", "suspended"], () =>
|
|
12941
|
+
D = t, t.connection.on(["failed", "suspended"], () => fe()), t.channels.get(`marina-booking:${i().id}`).subscribe("updated", () => void ie()).catch(() => fe());
|
|
12875
12942
|
} catch {
|
|
12876
|
-
|
|
12943
|
+
fe();
|
|
12877
12944
|
}
|
|
12878
12945
|
}
|
|
12879
|
-
function
|
|
12946
|
+
function fe() {
|
|
12880
12947
|
D?.close(), D = null, !(E || O) && (O = setInterval(() => {
|
|
12881
|
-
!document.hidden && J(p) && so(J(p).booking.status, J(p).booking.cardHold) &&
|
|
12948
|
+
!document.hidden && J(p) && so(J(p).booking.status, J(p).booking.cardHold) && ie();
|
|
12882
12949
|
}, 3e4));
|
|
12883
12950
|
}
|
|
12884
12951
|
qr(() => {
|
|
12885
|
-
|
|
12952
|
+
ie(), de();
|
|
12886
12953
|
let e = () => {
|
|
12887
|
-
document.visibilityState === "visible" &&
|
|
12954
|
+
document.visibilityState === "visible" && ie();
|
|
12888
12955
|
};
|
|
12889
12956
|
return document.addEventListener("visibilitychange", e), () => {
|
|
12890
|
-
E = !0, document.removeEventListener("visibilitychange", e), clearInterval(O), D?.close(),
|
|
12957
|
+
E = !0, document.removeEventListener("visibilitychange", e), clearInterval(O), D?.close(), oe();
|
|
12891
12958
|
};
|
|
12892
12959
|
});
|
|
12893
12960
|
var pe = {
|
|
@@ -12945,27 +13012,27 @@ function Dc(e, t) {
|
|
|
12945
13012
|
set onstartover(e) {
|
|
12946
13013
|
d(e), B();
|
|
12947
13014
|
}
|
|
12948
|
-
}, me =
|
|
13015
|
+
}, me = Oc();
|
|
12949
13016
|
let he;
|
|
12950
13017
|
var ge = U(me), _e = (e) => {
|
|
12951
13018
|
var t = Fr(), n = mn(t), r = (e) => {
|
|
12952
|
-
var t =
|
|
13019
|
+
var t = hc(), n = mn(t), r = U(n, !0);
|
|
12953
13020
|
F(n);
|
|
12954
13021
|
var i = W(n, 2), a = U(i), o = U(a, !0);
|
|
12955
13022
|
F(a);
|
|
12956
13023
|
var s = W(a, 2), c = (e) => {
|
|
12957
|
-
var t =
|
|
13024
|
+
var t = mc(), n = U(t, !0);
|
|
12958
13025
|
F(t), G(() => {
|
|
12959
13026
|
t.disabled = J(v), Z(n, J(h).startOver);
|
|
12960
|
-
}), Tr("click", t,
|
|
13027
|
+
}), Tr("click", t, ue), X(e, t);
|
|
12961
13028
|
};
|
|
12962
13029
|
Q(s, (e) => {
|
|
12963
13030
|
d() && e(c);
|
|
12964
13031
|
}), F(i), G(() => {
|
|
12965
13032
|
Z(r, J(g)), Z(o, J(h).retry);
|
|
12966
|
-
}), Tr("click", a, () =>
|
|
13033
|
+
}), Tr("click", a, () => ie()), X(e, t);
|
|
12967
13034
|
}, i = (e) => {
|
|
12968
|
-
var t =
|
|
13035
|
+
var t = gc(), n = U(t, !0);
|
|
12969
13036
|
F(t), G(() => Z(n, J(h).loadingBooking)), X(e, t);
|
|
12970
13037
|
};
|
|
12971
13038
|
Q(n, (e) => {
|
|
@@ -12973,18 +13040,18 @@ function Dc(e, t) {
|
|
|
12973
13040
|
}), X(e, t);
|
|
12974
13041
|
}, ve = (e) => {
|
|
12975
13042
|
let t = /* @__PURE__ */ L(() => J(p).booking), a = /* @__PURE__ */ L(() => J(t).expired || J(y) ? "expired" : J(t).status);
|
|
12976
|
-
var s =
|
|
13043
|
+
var s = Dc(), c = mn(s);
|
|
12977
13044
|
let l;
|
|
12978
|
-
var u = U(c), f = U(u), g = U(f),
|
|
12979
|
-
var t =
|
|
13045
|
+
var u = U(c), f = U(u), g = U(f), C = (e) => {
|
|
13046
|
+
var t = _c();
|
|
12980
13047
|
Ve(), X(e, t);
|
|
12981
|
-
},
|
|
12982
|
-
X(e,
|
|
13048
|
+
}, ee = (e) => {
|
|
13049
|
+
X(e, vc());
|
|
12983
13050
|
}, w = (e) => {
|
|
12984
|
-
X(e,
|
|
13051
|
+
X(e, yc());
|
|
12985
13052
|
};
|
|
12986
13053
|
Q(g, (e) => {
|
|
12987
|
-
J(a) === "hold" ? e(
|
|
13054
|
+
J(a) === "hold" ? e(C) : J(a) === "pending" || J(a) === "confirmed" ? e(ee, 1) : e(w, -1);
|
|
12988
13055
|
}), F(f), F(u);
|
|
12989
13056
|
var T = W(u, 2), ne = U(T, !0);
|
|
12990
13057
|
F(T);
|
|
@@ -12992,15 +13059,15 @@ function Dc(e, t) {
|
|
|
12992
13059
|
F(E);
|
|
12993
13060
|
var O = W(E, 2), k = U(O, !0);
|
|
12994
13061
|
F(O);
|
|
12995
|
-
var ae = W(O, 2),
|
|
12996
|
-
var t =
|
|
13062
|
+
var ae = W(O, 2), j = (e) => {
|
|
13063
|
+
var t = bc(), n = W(U(t), 1, !0);
|
|
12997
13064
|
F(t), G(() => Z(n, J(h).waitingForMarina)), X(e, t);
|
|
12998
13065
|
};
|
|
12999
13066
|
Q(ae, (e) => {
|
|
13000
|
-
J(a) === "pending" && e(
|
|
13067
|
+
J(a) === "pending" && e(j);
|
|
13001
13068
|
}), F(c);
|
|
13002
|
-
var
|
|
13003
|
-
var n =
|
|
13069
|
+
var oe = W(c, 2), de = (e) => {
|
|
13070
|
+
var n = xc(), r = U(n), i = U(r), a = U(i, !0);
|
|
13004
13071
|
F(i);
|
|
13005
13072
|
var s = W(i, 2), c = U(s);
|
|
13006
13073
|
F(s), F(r);
|
|
@@ -13013,9 +13080,9 @@ function Dc(e, t) {
|
|
|
13013
13080
|
var g = W(p, 2), _ = U(g, !0);
|
|
13014
13081
|
F(g), F(n), G((e, t) => {
|
|
13015
13082
|
Z(a, J(h).paymentHold), Z(c, `${J(h).total ?? ""} ${e ?? ""}`), Z(u, J(h).paymentNote), Z(f, t), g.disabled = J(v) || !J(x), Z(_, J(v) ? J(h).sending : J(h).payAndSend);
|
|
13016
|
-
}, [() => co(J(t).totalPrice, J(t).currency, o(), J(m)), () => J(h).holdUntil(
|
|
13017
|
-
},
|
|
13018
|
-
var n =
|
|
13083
|
+
}, [() => co(J(t).totalPrice, J(t).currency, o(), J(m)), () => J(h).holdUntil(A(J(t).holdExpiresAt))]), Tr("click", g, se), X(e, n);
|
|
13084
|
+
}, fe = (e) => {
|
|
13085
|
+
var n = Sc(), r = U(n), i = U(r), a = U(i, !0);
|
|
13019
13086
|
F(i), F(r);
|
|
13020
13087
|
var o = W(r, 2), s = U(o, !0);
|
|
13021
13088
|
F(o);
|
|
@@ -13024,19 +13091,19 @@ function Dc(e, t) {
|
|
|
13024
13091
|
var u = W(c, 2), d = U(u, !0);
|
|
13025
13092
|
F(u), F(n), G((e) => {
|
|
13026
13093
|
Z(a, J(h).paymentHold), Z(s, J(h).paymentUnavailable), Z(l, e), Z(d, J(h).retry);
|
|
13027
|
-
}, [() => J(h).holdUntil(
|
|
13094
|
+
}, [() => J(h).holdUntil(A(J(t).holdExpiresAt))]), Tr("click", u, () => ie()), X(e, n);
|
|
13028
13095
|
}, pe = (e) => {
|
|
13029
|
-
var n =
|
|
13096
|
+
var n = Cc(), r = U(n), i = U(r), a = U(i, !0);
|
|
13030
13097
|
F(i), F(r);
|
|
13031
13098
|
var o = W(r, 2), s = U(o, !0);
|
|
13032
13099
|
F(o), F(n), G((e) => {
|
|
13033
13100
|
Z(a, J(h).checkEmailTitle), Z(s, e);
|
|
13034
|
-
}, [() => J(h).checkEmailBody(
|
|
13101
|
+
}, [() => J(h).checkEmailBody(A(J(t).holdExpiresAt))]), X(e, n);
|
|
13035
13102
|
};
|
|
13036
|
-
Q(
|
|
13037
|
-
J(a) === "hold" && J(b) ? e(
|
|
13103
|
+
Q(oe, (e) => {
|
|
13104
|
+
J(a) === "hold" && J(b) ? e(de) : J(a) === "hold" && !J(p).payment && J(t).cardHold ? e(fe, 1) : J(a) === "hold" && !J(p).payment && e(pe, 2);
|
|
13038
13105
|
});
|
|
13039
|
-
var me = W(
|
|
13106
|
+
var me = W(oe, 2), he = U(me, !0);
|
|
13040
13107
|
F(me);
|
|
13041
13108
|
var ge = W(me, 2), _e = U(ge), ve = U(_e), ye = U(ve, !0);
|
|
13042
13109
|
F(ve);
|
|
@@ -13055,7 +13122,7 @@ function Dc(e, t) {
|
|
|
13055
13122
|
var Pe = W(Me), Fe = U(Pe, !0);
|
|
13056
13123
|
F(Pe), F(je);
|
|
13057
13124
|
var Ie = W(je, 2), Le = (e) => {
|
|
13058
|
-
var n =
|
|
13125
|
+
var n = wc(), r = U(n), i = U(r, !0);
|
|
13059
13126
|
F(r);
|
|
13060
13127
|
var a = W(r), o = U(a, !0);
|
|
13061
13128
|
F(a), F(n), G(() => {
|
|
@@ -13070,7 +13137,7 @@ function Dc(e, t) {
|
|
|
13070
13137
|
var ze = W(Re, 2), Be = U(ze, !0);
|
|
13071
13138
|
F(ze), F(N), F(ge);
|
|
13072
13139
|
var He = W(ge, 2), Ue = (e) => {
|
|
13073
|
-
|
|
13140
|
+
fc(e, {
|
|
13074
13141
|
get apiOrigin() {
|
|
13075
13142
|
return n();
|
|
13076
13143
|
},
|
|
@@ -13089,43 +13156,43 @@ function Dc(e, t) {
|
|
|
13089
13156
|
get contract() {
|
|
13090
13157
|
return J(p).contract;
|
|
13091
13158
|
},
|
|
13092
|
-
onchange:
|
|
13159
|
+
onchange: ie
|
|
13093
13160
|
});
|
|
13094
13161
|
};
|
|
13095
13162
|
Q(He, (e) => {
|
|
13096
13163
|
J(p).contract && (J(a) === "pending" || J(a) === "confirmed") && e(Ue);
|
|
13097
13164
|
});
|
|
13098
13165
|
var We = W(He, 2), Ge = (e) => {
|
|
13099
|
-
var t =
|
|
13166
|
+
var t = Tc(), n = U(t, !0);
|
|
13100
13167
|
F(t), G(() => Z(n, J(_))), X(e, t);
|
|
13101
13168
|
};
|
|
13102
13169
|
Q(We, (e) => {
|
|
13103
13170
|
J(_) && e(Ge);
|
|
13104
13171
|
});
|
|
13105
13172
|
var Ke = W(We, 2), qe = (e) => {
|
|
13106
|
-
var t =
|
|
13173
|
+
var t = mc(), n = U(t, !0);
|
|
13107
13174
|
F(t), G(() => Z(n, J(h).retry)), Tr("click", t, () => {
|
|
13108
|
-
H(_, null),
|
|
13175
|
+
H(_, null), ie();
|
|
13109
13176
|
}), X(e, t);
|
|
13110
13177
|
};
|
|
13111
13178
|
Q(Ke, (e) => {
|
|
13112
13179
|
J(te) && e(qe);
|
|
13113
13180
|
});
|
|
13114
13181
|
var Je = W(Ke, 2), Ye = (e) => {
|
|
13115
|
-
var t =
|
|
13116
|
-
var t =
|
|
13182
|
+
var t = Ec(), n = U(t), r = (e) => {
|
|
13183
|
+
var t = mc(), n = U(t, !0);
|
|
13117
13184
|
F(t), G(() => {
|
|
13118
13185
|
t.disabled = J(v), Z(n, J(h).cancelBooking);
|
|
13119
|
-
}), Tr("click", t, () => J(
|
|
13186
|
+
}), Tr("click", t, () => J(ce)?.showModal()), X(e, t);
|
|
13120
13187
|
};
|
|
13121
13188
|
Q(n, (e) => {
|
|
13122
13189
|
(J(a) === "hold" || J(a) === "pending") && e(r);
|
|
13123
13190
|
});
|
|
13124
13191
|
var i = W(n, 2), o = (e) => {
|
|
13125
|
-
var t =
|
|
13192
|
+
var t = mc(), n = U(t, !0);
|
|
13126
13193
|
F(t), G(() => {
|
|
13127
13194
|
t.disabled = J(v), Z(n, J(h).startOver);
|
|
13128
|
-
}), Tr("click", t,
|
|
13195
|
+
}), Tr("click", t, ue), X(e, t);
|
|
13129
13196
|
};
|
|
13130
13197
|
Q(i, (e) => {
|
|
13131
13198
|
d() && e(o);
|
|
@@ -13141,7 +13208,7 @@ function Dc(e, t) {
|
|
|
13141
13208
|
var tt = W($e, 2), nt = U(tt), rt = U(nt, !0);
|
|
13142
13209
|
F(nt);
|
|
13143
13210
|
var it = W(nt, 2), at = U(it, !0);
|
|
13144
|
-
F(it), F(tt), F(Xe), Ai(Xe, (e) => H(
|
|
13211
|
+
F(it), F(tt), F(Xe), Ai(Xe, (e) => H(ce, e), () => J(ce)), G((e, n, r, i) => {
|
|
13145
13212
|
l = fi(c, 1, "sbw-hero svelte-1312f6m", null, l, {
|
|
13146
13213
|
"sbw-hero-ok": J(a) === "confirmed",
|
|
13147
13214
|
"sbw-hero-bad": J(a) === "declined" || J(a) === "cancelled" || J(a) === "expired"
|
|
@@ -13151,13 +13218,13 @@ function Dc(e, t) {
|
|
|
13151
13218
|
() => re(J(t).departure),
|
|
13152
13219
|
() => [J(t).boatName, J(t).boatLengthM == null ? null : `${J(t).boatLengthM} m`].filter(Boolean).join(" · "),
|
|
13153
13220
|
() => J(t).totalPrice == null ? J(h).priceOnRequest : co(J(t).totalPrice, J(t).currency, o(), J(m))
|
|
13154
|
-
]), Tr("click", nt, () => J(
|
|
13221
|
+
]), Tr("click", nt, () => J(ce)?.close()), Tr("click", it, le), X(e, s);
|
|
13155
13222
|
};
|
|
13156
13223
|
return Q(ge, (e) => {
|
|
13157
13224
|
J(p) ? e(ve, -1) : e(_e);
|
|
13158
13225
|
}), F(me), G(() => he = fi(me, 1, "sbw-view svelte-1312f6m", null, he, { "sbw-variant-dark": s() === "dark" })), X(e, me), Xe(pe);
|
|
13159
13226
|
}
|
|
13160
|
-
Er(["click"]), Ii(
|
|
13227
|
+
Er(["click"]), Ii(Ac, {
|
|
13161
13228
|
apiOrigin: {},
|
|
13162
13229
|
slug: {},
|
|
13163
13230
|
session: {},
|
|
@@ -13170,10 +13237,10 @@ Er(["click"]), Ii(Dc, {
|
|
|
13170
13237
|
}, [], [], { mode: "open" });
|
|
13171
13238
|
//#endregion
|
|
13172
13239
|
//#region src/lib/booking-session.ts
|
|
13173
|
-
var
|
|
13174
|
-
function
|
|
13240
|
+
var jc = (e) => `sidon-booking:${e}`;
|
|
13241
|
+
function Mc(e) {
|
|
13175
13242
|
try {
|
|
13176
|
-
let t = JSON.parse(sessionStorage.getItem(
|
|
13243
|
+
let t = JSON.parse(sessionStorage.getItem(jc(e)) ?? "null");
|
|
13177
13244
|
return typeof t?.id == "string" && typeof t?.token == "string" ? {
|
|
13178
13245
|
id: t.id,
|
|
13179
13246
|
token: t.token
|
|
@@ -13182,20 +13249,20 @@ function kc(e) {
|
|
|
13182
13249
|
return null;
|
|
13183
13250
|
}
|
|
13184
13251
|
}
|
|
13185
|
-
function
|
|
13252
|
+
function Nc(e, t) {
|
|
13186
13253
|
try {
|
|
13187
|
-
sessionStorage.setItem(
|
|
13254
|
+
sessionStorage.setItem(jc(e), JSON.stringify({
|
|
13188
13255
|
id: t.id,
|
|
13189
13256
|
token: t.token
|
|
13190
13257
|
}));
|
|
13191
13258
|
} catch {}
|
|
13192
13259
|
}
|
|
13193
|
-
function
|
|
13260
|
+
function Pc(e) {
|
|
13194
13261
|
try {
|
|
13195
|
-
sessionStorage.removeItem(
|
|
13262
|
+
sessionStorage.removeItem(jc(e));
|
|
13196
13263
|
} catch {}
|
|
13197
13264
|
}
|
|
13198
|
-
function
|
|
13265
|
+
function Fc() {
|
|
13199
13266
|
let e = new URL(location.href), t = e.searchParams.get("booking"), n = e.searchParams.get("token");
|
|
13200
13267
|
return n && (e.searchParams.delete("token"), history.replaceState(history.state, "", e)), t && n ? {
|
|
13201
13268
|
id: t,
|
|
@@ -13204,202 +13271,226 @@ function Mc() {
|
|
|
13204
13271
|
}
|
|
13205
13272
|
//#endregion
|
|
13206
13273
|
//#region src/BookingWidget.svelte
|
|
13207
|
-
var
|
|
13274
|
+
var Ic = /* @__PURE__ */ Y("<div><!></div>"), Lc = /* @__PURE__ */ Y("<div class=\"sbw-load-error svelte-h0br6q\" role=\"alert\"> </div>"), Rc = /* @__PURE__ */ Y("<!> <!> <!> <!> <!>", 1), zc = /* @__PURE__ */ Y("<!> <div><!></div>", 1), Bc = {
|
|
13208
13275
|
hash: "svelte-h0br6q",
|
|
13209
13276
|
code: ":host {--sbw-radius: 10px;display:block;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;box-sizing:border-box;max-width:560px; /* fallback until the width prop's effect runs; see script */margin:0 auto;}:host .svelte-h0br6q {box-sizing:border-box;}.sbw-root.svelte-h0br6q {border-radius:var(--sbw-radius);overflow:hidden;background:#fff; /* solid card even where a step leaves gaps */box-shadow:0 8px 32px rgba(0, 0, 0, 0.16);}\n /* Inline, not a replacement for the card: the guest can still change\n dates or length, and the next successful load clears it. */.sbw-load-error.svelte-h0br6q {padding:16px 20px;font-size:14px;color:#cc4949;background:#fff;}\n /* Sits outside .sbw-root (not a child of it) specifically so map-width\n can be set to 100vw and actually break out full-bleed - .sbw-root's\n own overflow:hidden (for its rounded corners) would otherwise clip\n anything wider than the card right back down to the card's width,\n no matter what width/margin the child itself asks for. */.sbw-map-slot.svelte-h0br6q {border-radius:var(--sbw-radius) var(--sbw-radius) 0 0;overflow:hidden;\n /* Google's panes carry z-indexes (the logo overlay's floatPane is ~104);\n contained here, so the overlay card's z-index:1 paints above them. */isolation:isolate;}.sbw-map-slot--full-bleed.svelte-h0br6q {\n /* Standard full-bleed trick: escapes a centered ancestor of any width\n by sizing to the viewport and pulling back by the half-difference.\n Only correct when width is actually 100vw (see class:sbw-map-slot--\n full-bleed above) - applying this margin at any other width would\n misposition it instead of centering it. */margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border-radius:0;}\n /* Overlay: the card's negative-margin pull-up does the overlap, and its\n position/z-index paints it over the map's own positioned layers. */\n /* Below 768px overlay stacks; map-height/map-gap are sized for the\n overlay, so fall back to a half-screen map and a small gap. */\n @media (max-width: 767px) {.sbw-map-slot--overlay.svelte-h0br6q {height:50vh !important;margin-bottom:24px !important;}\n }\n @media (min-width: 768px) {.sbw-map-slot--overlay.svelte-h0br6q {margin-bottom:0 !important; /* beats the stacked inline margin */border-radius:0;}.sbw-root--overlay.svelte-h0br6q {position:relative;z-index:1;max-width:var(--sbw-card-width, 560px);margin-top:calc(var(--sbw-map-gap, 24px) - var(--sbw-map-h, 280px));margin-left:var(--sbw-card-inset, 24px);}\n }"
|
|
13210
13277
|
};
|
|
13211
|
-
function
|
|
13212
|
-
Ye(t, !0), ai(e,
|
|
13213
|
-
let n = $(t, "marina", 7), r = $(t, "apiOrigin", 7, ""), i = $(t, "from", 7, ""), a = $(t, "to", 7, ""), o = $(t, "length", 7, 15), s = $(t, "berth", 7, ""), c = $(t, "locale", 7, ""), l = $(t, "currencySymbol", 7, ""), u = $(t, "variant", 7, "navy"), d = $(t, "mapsApiKey", 7, ""), f = $(t, "mapStyle", 7, "chart"), p = $(t, "mapHeight", 7, "280px"), m = $(t, "mapWidth", 7, "100%"), h = $(t, "mapGap", 7, "0px"), g = $(t, "width", 7, "560px"), _ = $(t, "layout", 7, "stacked"), v = $(t, "logoMark", 7, null), y = $(t, "marinaName", 7, ""), b = $(t, "otherMarinas", 23, () => []), x = $(t, "bookingId", 7), S = $(t, "sidonOrigin", 7, wo),
|
|
13214
|
-
function
|
|
13215
|
-
|
|
13278
|
+
function Vc(e, t) {
|
|
13279
|
+
Ye(t, !0), ai(e, Bc);
|
|
13280
|
+
let n = $(t, "marina", 7), r = $(t, "apiOrigin", 7, ""), i = $(t, "from", 7, ""), a = $(t, "to", 7, ""), o = $(t, "length", 7, 15), s = $(t, "berth", 7, ""), c = $(t, "locale", 7, ""), l = $(t, "currencySymbol", 7, ""), u = $(t, "variant", 7, "navy"), d = $(t, "mapsApiKey", 7, ""), f = $(t, "mapStyle", 7, "chart"), p = $(t, "mapHeight", 7, "280px"), m = $(t, "mapWidth", 7, "100%"), h = $(t, "mapGap", 7, "0px"), g = $(t, "width", 7, "560px"), _ = $(t, "layout", 7, "stacked"), v = $(t, "logoMark", 7, null), y = $(t, "marinaName", 7, ""), b = $(t, "otherMarinas", 23, () => []), x = $(t, "bookingId", 7), S = $(t, "sidonOrigin", 7, wo), C = $(t, "signInWidth", 7, 480), ee = $(t, "signInHeight", 7, 720), w = $(t, "sailorApiOrigin", 7, ""), T = $(t, "addToCart", 7, null), te = /* @__PURE__ */ L(() => !!T()), ne = t.$$host;
|
|
13281
|
+
function E(e, t) {
|
|
13282
|
+
ne.dispatchEvent(new CustomEvent(e, {
|
|
13216
13283
|
detail: t,
|
|
13217
13284
|
bubbles: !0,
|
|
13218
13285
|
composed: !0
|
|
13219
13286
|
}));
|
|
13220
13287
|
}
|
|
13221
|
-
let
|
|
13222
|
-
function
|
|
13223
|
-
let e =
|
|
13288
|
+
let D = /* @__PURE__ */ L(() => Ha(c())), O = /* @__PURE__ */ L(() => Cs(J(D))), k = _r(() => x() != null), re = /* @__PURE__ */ V(an(_r(() => k ? ie() : Mc(n())))), A = /* @__PURE__ */ V(an(_r(() => k || J(re) ? 4 : 1)));
|
|
13289
|
+
function ie() {
|
|
13290
|
+
let e = Fc();
|
|
13224
13291
|
if (e) {
|
|
13225
13292
|
let t = {
|
|
13226
13293
|
id: x() || e.id,
|
|
13227
13294
|
token: e.token
|
|
13228
13295
|
};
|
|
13229
|
-
return
|
|
13296
|
+
return Nc(n(), t), t;
|
|
13230
13297
|
}
|
|
13231
|
-
let t =
|
|
13298
|
+
let t = Mc(n());
|
|
13232
13299
|
return t && (!x() || t.id === x()) ? t : null;
|
|
13233
13300
|
}
|
|
13234
|
-
let
|
|
13301
|
+
let ae = /* @__PURE__ */ V(an(_r(() => o() && o() > 0 ? o() : 15))), j = /* @__PURE__ */ V(an(_r(() => {
|
|
13235
13302
|
let e = ja(i());
|
|
13236
13303
|
if (e) return e;
|
|
13237
13304
|
let t = /* @__PURE__ */ new Date();
|
|
13238
13305
|
return t.setHours(0, 0, 0, 0), t;
|
|
13239
|
-
}))),
|
|
13306
|
+
}))), oe = /* @__PURE__ */ V(an(_r(() => {
|
|
13240
13307
|
let e = ja(a());
|
|
13241
13308
|
if (e) return e;
|
|
13242
13309
|
let t = ja(i()) ?? new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0));
|
|
13243
13310
|
return new Date(t.getTime() + 2592e5);
|
|
13244
|
-
}))),
|
|
13311
|
+
}))), se = /* @__PURE__ */ V(null), ce = /* @__PURE__ */ V(""), le = /* @__PURE__ */ V(""), ue = /* @__PURE__ */ V(""), de = /* @__PURE__ */ V(""), fe = /* @__PURE__ */ V(null), pe = /* @__PURE__ */ V(""), me = /* @__PURE__ */ V(null), he = /* @__PURE__ */ V(an([])), ge = /* @__PURE__ */ V(null), _e = /* @__PURE__ */ V(0), ve = /* @__PURE__ */ V(!1), ye = /* @__PURE__ */ V(null), be = /* @__PURE__ */ V(null), xe = /* @__PURE__ */ V(null), Se = /* @__PURE__ */ V({}), Ce = /* @__PURE__ */ V(null), we = /* @__PURE__ */ L(() => !J(me) || !!J(me).stripePublishableKey), Te = /* @__PURE__ */ V(void 0), M = /* @__PURE__ */ V(!1), Ee = /* @__PURE__ */ V(null), De = /* @__PURE__ */ V("#16365b"), Oe = /* @__PURE__ */ V("#c9a86b"), ke = /* @__PURE__ */ V(""), Ae = /* @__PURE__ */ V("#252525");
|
|
13245
13312
|
qr(() => {
|
|
13246
|
-
let e = getComputedStyle(
|
|
13247
|
-
H(
|
|
13313
|
+
let e = getComputedStyle(ne);
|
|
13314
|
+
H(Ae, e.getPropertyValue("--brand-ink").trim() || J(Ae), !0), H(De, e.getPropertyValue("--brand-navy").trim() || J(De), !0), H(Oe, e.getPropertyValue("--brand-gold").trim() || J(Oe), !0), H(ke, e.getPropertyValue("--brand-sea").trim(), !0);
|
|
13248
13315
|
}), qr(() => {
|
|
13249
13316
|
let e = new ResizeObserver(() => {
|
|
13250
13317
|
window.dispatchEvent(new Event("resize"));
|
|
13251
13318
|
});
|
|
13252
|
-
return e.observe(
|
|
13319
|
+
return e.observe(ne), () => e.disconnect();
|
|
13253
13320
|
}), qr(() => {
|
|
13254
|
-
_() === "overlay" ? (
|
|
13321
|
+
_() === "overlay" ? (ne.style.maxWidth = "none", ne.style.setProperty("--sbw-card-width", g())) : ne.style.maxWidth = g();
|
|
13255
13322
|
});
|
|
13256
|
-
let
|
|
13257
|
-
function
|
|
13258
|
-
return _() !== "overlay" || !J(
|
|
13323
|
+
let je = /* @__PURE__ */ V(void 0), Me = /* @__PURE__ */ V(void 0);
|
|
13324
|
+
function Ne() {
|
|
13325
|
+
return _() !== "overlay" || !J(je) || !J(Me) || !matchMedia("(min-width: 768px)").matches ? 0 : J(Me).getBoundingClientRect().right - J(je).getBoundingClientRect().left;
|
|
13259
13326
|
}
|
|
13260
|
-
let
|
|
13327
|
+
let Pe = /* @__PURE__ */ L(() => !!d() && !k && !J(ge)), Fe = /* @__PURE__ */ L(() => J(fe) != null && J(fe) > 0 ? J(fe) : null), Ie = /* @__PURE__ */ L(() => (J(me)?.berths ?? []).filter((e) => e.status === "available")), Le = /* @__PURE__ */ L(() => !J(Ie).length || J(Ie).some((e) => e.lengthM == null) ? 200 : Math.max(...J(Ie).map((e) => e.lengthM ?? 0))), N = /* @__PURE__ */ L(() => J(se) && J(he).some((e) => e.label === J(se)) ? J(se) : ao(J(he))), Re = /* @__PURE__ */ L(() => J(he).find((e) => e.label === J(N)) ?? null), P = /* @__PURE__ */ L(() => J(Re)?.totalPrice == null ? null : co(J(Re).totalPrice, J(me)?.currency ?? null, l(), J(D))), ze = !1;
|
|
13261
13328
|
wn(() => {
|
|
13262
|
-
|
|
13329
|
+
ze || !J(Ie).length || (ze = !0, J(ae) > J(Le) && H(ae, J(Le), !0));
|
|
13263
13330
|
}), wn(() => {
|
|
13264
13331
|
let e = s();
|
|
13265
13332
|
_r(() => {
|
|
13266
|
-
J(
|
|
13333
|
+
J(A) <= 2 && H(se, e || null, !0);
|
|
13267
13334
|
});
|
|
13268
13335
|
});
|
|
13269
|
-
let
|
|
13336
|
+
let Be = {
|
|
13270
13337
|
arrival: "",
|
|
13271
13338
|
departure: ""
|
|
13272
|
-
},
|
|
13273
|
-
arrival: Aa(J(
|
|
13274
|
-
departure: Aa(J(
|
|
13275
|
-
} :
|
|
13339
|
+
}, Ve = /* @__PURE__ */ L(() => J(j) && J(oe) && +J(oe) > +J(j) ? Be = {
|
|
13340
|
+
arrival: Aa(J(j)),
|
|
13341
|
+
departure: Aa(J(oe))
|
|
13342
|
+
} : Be), He = /* @__PURE__ */ V(1);
|
|
13276
13343
|
qr(() => {
|
|
13277
|
-
|
|
13278
|
-
e.requirements.length || (H(
|
|
13344
|
+
k || Lo(r(), n(), _r(() => J(Ve)), null).then((e) => {
|
|
13345
|
+
e.requirements.length || (H(He, 2), J(A) === 1 && (H(ve, !0), H(A, 2)));
|
|
13279
13346
|
}, () => {});
|
|
13280
13347
|
});
|
|
13281
|
-
let
|
|
13348
|
+
let Ue = {
|
|
13282
13349
|
email: "",
|
|
13283
13350
|
name: ""
|
|
13284
13351
|
};
|
|
13285
13352
|
wn(() => {
|
|
13286
|
-
let e = J(
|
|
13353
|
+
let e = J(ye);
|
|
13287
13354
|
_r(() => {
|
|
13288
13355
|
if (e) {
|
|
13289
|
-
H(
|
|
13356
|
+
H(le, Ue.email = e.email, !0), !J(ce).trim() && e.name && H(ce, Ue.name = e.name, !0);
|
|
13290
13357
|
return;
|
|
13291
13358
|
}
|
|
13292
|
-
|
|
13359
|
+
Ue.email && J(le) === Ue.email && H(le, ""), Ue.name && J(ce) === Ue.name && H(ce, ""), Ue = {
|
|
13293
13360
|
email: "",
|
|
13294
13361
|
name: ""
|
|
13295
13362
|
};
|
|
13296
13363
|
});
|
|
13297
13364
|
}), wn(() => {
|
|
13298
|
-
let e = J(
|
|
13365
|
+
let e = J(xe);
|
|
13299
13366
|
e && _r(() => {
|
|
13300
|
-
H(
|
|
13367
|
+
H(ae, e, !0);
|
|
13301
13368
|
});
|
|
13302
13369
|
});
|
|
13303
|
-
let
|
|
13370
|
+
let We = "";
|
|
13304
13371
|
wn(() => {
|
|
13305
|
-
let e = J(
|
|
13372
|
+
let e = J(be);
|
|
13306
13373
|
_r(() => {
|
|
13307
|
-
e && !J(
|
|
13374
|
+
e && !J(de).trim() ? H(de, We = e, !0) : !e && We && J(de) === We && H(de, We = "", !0);
|
|
13308
13375
|
});
|
|
13309
13376
|
}), wn(() => {
|
|
13310
|
-
if (
|
|
13311
|
-
let e = J(
|
|
13312
|
-
from: Aa(J(
|
|
13313
|
-
to: Aa(J(
|
|
13377
|
+
if (k) return;
|
|
13378
|
+
let e = J(j) && J(oe) ? {
|
|
13379
|
+
from: Aa(J(j)),
|
|
13380
|
+
to: Aa(J(oe))
|
|
13314
13381
|
} : void 0;
|
|
13315
|
-
J(
|
|
13382
|
+
J(_e);
|
|
13316
13383
|
let t = !1, i = setTimeout(() => {
|
|
13317
13384
|
Io(r(), n(), e).then((e) => {
|
|
13318
|
-
t || (H(
|
|
13385
|
+
t || (H(me, e, !0), H(ge, null));
|
|
13319
13386
|
}).catch(() => {
|
|
13320
|
-
t || H(
|
|
13387
|
+
t || H(ge, J(O).wizard.errLoad, !0);
|
|
13321
13388
|
});
|
|
13322
13389
|
}, 200);
|
|
13323
13390
|
return () => {
|
|
13324
13391
|
t = !0, clearTimeout(i);
|
|
13325
13392
|
};
|
|
13326
13393
|
}), wn(() => {
|
|
13327
|
-
if (J(
|
|
13394
|
+
if (J(A) > 2 || !J(j) || !J(oe) || +J(oe) <= +J(j) || !(J(ae) > 0)) return;
|
|
13328
13395
|
let e = {
|
|
13329
|
-
arrival: Aa(J(
|
|
13330
|
-
departure: Aa(J(
|
|
13331
|
-
boatLengthM: J(
|
|
13332
|
-
boatBeamM: J(
|
|
13396
|
+
arrival: Aa(J(j)),
|
|
13397
|
+
departure: Aa(J(oe)),
|
|
13398
|
+
boatLengthM: J(ae),
|
|
13399
|
+
boatBeamM: J(Fe)
|
|
13333
13400
|
};
|
|
13334
|
-
J(
|
|
13401
|
+
J(_e);
|
|
13335
13402
|
let t = !1, i = setTimeout(() => {
|
|
13336
13403
|
Ro(r(), n(), e).then((e) => {
|
|
13337
|
-
t || (H(
|
|
13404
|
+
t || (H(he, e, !0), H(ge, null));
|
|
13338
13405
|
}).catch(() => {
|
|
13339
|
-
t || H(
|
|
13406
|
+
t || H(ge, J(O).wizard.errLoad, !0);
|
|
13340
13407
|
});
|
|
13341
13408
|
}, 200);
|
|
13342
13409
|
return () => {
|
|
13343
13410
|
t = !0, clearTimeout(i);
|
|
13344
13411
|
};
|
|
13345
13412
|
}), wn(() => {
|
|
13346
|
-
|
|
13413
|
+
E("sidon-step-change", { step: J(A) });
|
|
13347
13414
|
}), wn(() => {
|
|
13348
|
-
|
|
13415
|
+
k || E("sidon-loa-change", { loa: J(ae) });
|
|
13349
13416
|
});
|
|
13350
|
-
function
|
|
13351
|
-
J(
|
|
13417
|
+
function Ge(e) {
|
|
13418
|
+
J(A) <= 2 && H(se, e, !0);
|
|
13352
13419
|
}
|
|
13353
|
-
function
|
|
13354
|
-
e < J(
|
|
13420
|
+
function Ke(e) {
|
|
13421
|
+
e < J(A) && it();
|
|
13355
13422
|
}
|
|
13356
|
-
function
|
|
13357
|
-
J(
|
|
13423
|
+
function qe() {
|
|
13424
|
+
J(M) || (H(Ee, null), J(A) === 1 ? J(ve) && H(A, 2) : J(A) === 2 ? J(te) ? Qe() : et() : J(A) === 3 && nt());
|
|
13358
13425
|
}
|
|
13359
|
-
let
|
|
13360
|
-
function
|
|
13361
|
-
let e = J(
|
|
13362
|
-
return !J(
|
|
13426
|
+
let Je = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
13427
|
+
function Ze() {
|
|
13428
|
+
let e = J(O).wizard;
|
|
13429
|
+
return !J(j) || !J(oe) || +J(oe) <= +J(j) ? e.errDates : J(ae) > 0 ? J(N) ? !J(te) && !J(ce).trim() ? e.errName : J(de).trim() ? !J(te) && !Je.test(J(le).trim()) ? e.errEmail : null : e.errBoatName : e.errNoBerth : e.errLength;
|
|
13363
13430
|
}
|
|
13364
|
-
function
|
|
13365
|
-
|
|
13431
|
+
async function Qe() {
|
|
13432
|
+
let e = Ze();
|
|
13433
|
+
if (e) return void H(Ee, e, !0);
|
|
13434
|
+
H(M, !0);
|
|
13435
|
+
try {
|
|
13436
|
+
let e = await T()({
|
|
13437
|
+
berth: J(N),
|
|
13438
|
+
from: Aa(J(j)),
|
|
13439
|
+
to: Aa(J(oe)),
|
|
13440
|
+
length: J(ae),
|
|
13441
|
+
beam: J(Fe),
|
|
13442
|
+
boatName: J(de).trim(),
|
|
13443
|
+
notes: J(pe).trim() || void 0,
|
|
13444
|
+
price: J(Re)?.totalPrice ?? null
|
|
13445
|
+
});
|
|
13446
|
+
typeof e == "string" && H(Ee, e, !0);
|
|
13447
|
+
} catch {
|
|
13448
|
+
H(Ee, J(O).wizard.errNetwork, !0);
|
|
13449
|
+
} finally {
|
|
13450
|
+
H(M, !1);
|
|
13451
|
+
}
|
|
13366
13452
|
}
|
|
13367
|
-
|
|
13368
|
-
|
|
13369
|
-
|
|
13370
|
-
|
|
13453
|
+
function $e() {
|
|
13454
|
+
return J(ye) ? Oo(S())?.token ?? null : null;
|
|
13455
|
+
}
|
|
13456
|
+
async function et() {
|
|
13457
|
+
let e = Ze();
|
|
13458
|
+
if (e) return void H(Ee, e, !0);
|
|
13459
|
+
H(M, !0);
|
|
13371
13460
|
try {
|
|
13372
13461
|
let e = await zo(r(), n(), {
|
|
13373
|
-
berthLabel: J(
|
|
13374
|
-
arrival: Aa(J(
|
|
13375
|
-
departure: Aa(J(
|
|
13376
|
-
contactName: J(
|
|
13377
|
-
contactEmail: J(
|
|
13378
|
-
contactPhone: J(
|
|
13379
|
-
boatName: J(
|
|
13380
|
-
boatLengthM: J(
|
|
13381
|
-
boatBeamM: J(
|
|
13382
|
-
notes: J(
|
|
13383
|
-
locale: J(
|
|
13384
|
-
},
|
|
13462
|
+
berthLabel: J(N),
|
|
13463
|
+
arrival: Aa(J(j)),
|
|
13464
|
+
departure: Aa(J(oe)),
|
|
13465
|
+
contactName: J(ce).trim(),
|
|
13466
|
+
contactEmail: J(le).trim(),
|
|
13467
|
+
contactPhone: J(ue).trim() || void 0,
|
|
13468
|
+
boatName: J(de).trim(),
|
|
13469
|
+
boatLengthM: J(ae),
|
|
13470
|
+
boatBeamM: J(Fe),
|
|
13471
|
+
notes: J(pe).trim() || void 0,
|
|
13472
|
+
locale: J(D)
|
|
13473
|
+
}, $e()), t = {
|
|
13385
13474
|
id: e.booking.id,
|
|
13386
13475
|
token: e.token
|
|
13387
13476
|
};
|
|
13388
|
-
H(
|
|
13477
|
+
H(re, t, !0), Nc(n(), t);
|
|
13478
|
+
let i = await Promise.allSettled(Object.values(J(Se)).map((e) => Uo(r(), n(), t, e)));
|
|
13479
|
+
H(Se, {}), i.some((e) => e.status === "rejected") && H(Ee, J(O).docsStep.sendFailed, !0), e.payment ? (H(Ce, e, !0), H(A, 3)) : rt(t.id);
|
|
13389
13480
|
} catch (e) {
|
|
13390
|
-
|
|
13481
|
+
tt(e);
|
|
13391
13482
|
} finally {
|
|
13392
|
-
H(
|
|
13483
|
+
H(M, !1);
|
|
13393
13484
|
}
|
|
13394
13485
|
}
|
|
13395
|
-
function
|
|
13396
|
-
let t = J(
|
|
13397
|
-
if (!(e instanceof jo) || e.status === 0) return void H(
|
|
13486
|
+
function tt(e) {
|
|
13487
|
+
let t = J(O).wizard;
|
|
13488
|
+
if (!(e instanceof jo) || e.status === 0) return void H(Ee, t.errNetwork, !0);
|
|
13398
13489
|
if (Ja(e.status, e.message)) {
|
|
13399
|
-
H(
|
|
13490
|
+
H(He, 1), H(A, 1), H(Ee, J(O).docsStep.missingNow, !0);
|
|
13400
13491
|
return;
|
|
13401
13492
|
}
|
|
13402
|
-
(e.status === 409 || e.status === 404) && tn(
|
|
13493
|
+
(e.status === 409 || e.status === 404) && tn(_e);
|
|
13403
13494
|
let n = {
|
|
13404
13495
|
404: t.errTaken,
|
|
13405
13496
|
409: t.errTaken,
|
|
@@ -13407,50 +13498,50 @@ function Rc(e, t) {
|
|
|
13407
13498
|
502: t.errPayment,
|
|
13408
13499
|
503: t.errUnavailable
|
|
13409
13500
|
};
|
|
13410
|
-
H(
|
|
13501
|
+
H(Ee, n[e.status] ?? (e.status >= 500 ? t.errUnavailable : e.message), !0);
|
|
13411
13502
|
}
|
|
13412
|
-
async function
|
|
13413
|
-
let e = J(
|
|
13414
|
-
if (!(!e || !J(
|
|
13415
|
-
H(
|
|
13503
|
+
async function nt() {
|
|
13504
|
+
let e = J(re);
|
|
13505
|
+
if (!(!e || !J(Te))) {
|
|
13506
|
+
H(M, !0);
|
|
13416
13507
|
try {
|
|
13417
|
-
await J(
|
|
13508
|
+
await J(Te).confirm();
|
|
13418
13509
|
} catch (e) {
|
|
13419
|
-
H(
|
|
13510
|
+
H(Ee, e instanceof Error ? e.message : J(O).wizard.errNetwork, !0), H(M, !1);
|
|
13420
13511
|
return;
|
|
13421
13512
|
}
|
|
13422
|
-
await Vo(r(), n(), e).catch(() => {}), H(
|
|
13513
|
+
await Vo(r(), n(), e).catch(() => {}), H(M, !1), rt(e.id);
|
|
13423
13514
|
}
|
|
13424
13515
|
}
|
|
13425
|
-
function
|
|
13426
|
-
H(
|
|
13516
|
+
function rt(e) {
|
|
13517
|
+
H(Ce, null), H(A, 4), E("sidon-booked", {
|
|
13427
13518
|
bookingId: e,
|
|
13428
13519
|
marina: n()
|
|
13429
13520
|
});
|
|
13430
13521
|
}
|
|
13431
|
-
async function
|
|
13432
|
-
let e = J(
|
|
13433
|
-
if (J(
|
|
13434
|
-
if (J(
|
|
13435
|
-
H(
|
|
13522
|
+
async function it() {
|
|
13523
|
+
let e = J(re);
|
|
13524
|
+
if (J(M)) return;
|
|
13525
|
+
if (J(A) === 2) {
|
|
13526
|
+
H(Ee, null), H(A, J(He), !0);
|
|
13436
13527
|
return;
|
|
13437
13528
|
}
|
|
13438
|
-
if (J(
|
|
13439
|
-
H(
|
|
13529
|
+
if (J(A) !== 3 || !e) return;
|
|
13530
|
+
H(Ee, null), H(M, !0);
|
|
13440
13531
|
let t = await Ho(r(), n(), e).then(() => !0, (e) => e instanceof jo && e.status >= 400 && e.status < 500 && e.status !== 429);
|
|
13441
|
-
if (H(
|
|
13442
|
-
|
|
13532
|
+
if (H(M, !1), !t) return void H(Ee, J(O).wizard.errNetwork, !0);
|
|
13533
|
+
Pc(n()), H(re, null), H(Ce, null), H(A, 2);
|
|
13443
13534
|
}
|
|
13444
|
-
function
|
|
13445
|
-
|
|
13535
|
+
function at() {
|
|
13536
|
+
Pc(n()), H(re, null), H(Ee, null), H(A, J(He), !0);
|
|
13446
13537
|
}
|
|
13447
|
-
function
|
|
13448
|
-
t !== null && J(
|
|
13449
|
-
bookingId: J(
|
|
13538
|
+
function ot(e, t) {
|
|
13539
|
+
t !== null && J(re) && E("sidon-booking-status", {
|
|
13540
|
+
bookingId: J(re).id,
|
|
13450
13541
|
status: e
|
|
13451
13542
|
});
|
|
13452
13543
|
}
|
|
13453
|
-
var
|
|
13544
|
+
var st = {
|
|
13454
13545
|
get marina() {
|
|
13455
13546
|
return n();
|
|
13456
13547
|
},
|
|
@@ -13578,35 +13669,41 @@ function Rc(e, t) {
|
|
|
13578
13669
|
S(e), B();
|
|
13579
13670
|
},
|
|
13580
13671
|
get signInWidth() {
|
|
13581
|
-
return
|
|
13672
|
+
return C();
|
|
13582
13673
|
},
|
|
13583
13674
|
set signInWidth(e = 480) {
|
|
13584
|
-
|
|
13675
|
+
C(e), B();
|
|
13585
13676
|
},
|
|
13586
13677
|
get signInHeight() {
|
|
13587
|
-
return
|
|
13678
|
+
return ee();
|
|
13588
13679
|
},
|
|
13589
13680
|
set signInHeight(e = 720) {
|
|
13590
|
-
|
|
13681
|
+
ee(e), B();
|
|
13591
13682
|
},
|
|
13592
13683
|
get sailorApiOrigin() {
|
|
13593
13684
|
return w();
|
|
13594
13685
|
},
|
|
13595
13686
|
set sailorApiOrigin(e = "") {
|
|
13596
13687
|
w(e), B();
|
|
13688
|
+
},
|
|
13689
|
+
get addToCart() {
|
|
13690
|
+
return T();
|
|
13691
|
+
},
|
|
13692
|
+
set addToCart(e = null) {
|
|
13693
|
+
T(e), B();
|
|
13597
13694
|
}
|
|
13598
|
-
},
|
|
13599
|
-
var t =
|
|
13695
|
+
}, ct = zc(), lt = mn(ct), ut = (e) => {
|
|
13696
|
+
var t = Ic();
|
|
13600
13697
|
let n;
|
|
13601
13698
|
var r = U(t);
|
|
13602
13699
|
{
|
|
13603
13700
|
let e = /* @__PURE__ */ L(() => ({
|
|
13604
|
-
lat: J(
|
|
13605
|
-
lng: J(
|
|
13606
|
-
})), t = /* @__PURE__ */ L(() => J(
|
|
13607
|
-
title: `${J(
|
|
13608
|
-
price: J(
|
|
13609
|
-
note: J(
|
|
13701
|
+
lat: J(me)?.profile.lat ?? 0,
|
|
13702
|
+
lng: J(me)?.profile.lng ?? 0
|
|
13703
|
+
})), t = /* @__PURE__ */ L(() => J(me)?.berths ?? []), n = /* @__PURE__ */ L(() => J(me)?.overlays ?? []), i = /* @__PURE__ */ L(() => J(me)?.layout ?? null), a = /* @__PURE__ */ L(() => J(Re) ? {
|
|
13704
|
+
title: `${J(O).berth} ${J(Re).label}`,
|
|
13705
|
+
price: J(P) ?? J(O).priceOnRequest,
|
|
13706
|
+
note: J(O).nights(J(Re).nights)
|
|
13610
13707
|
} : null);
|
|
13611
13708
|
yo(r, {
|
|
13612
13709
|
get mapsApiKey() {
|
|
@@ -13619,13 +13716,13 @@ function Rc(e, t) {
|
|
|
13619
13716
|
return J(e);
|
|
13620
13717
|
},
|
|
13621
13718
|
get navy() {
|
|
13622
|
-
return J(
|
|
13719
|
+
return J(De);
|
|
13623
13720
|
},
|
|
13624
13721
|
get gold() {
|
|
13625
|
-
return J(
|
|
13722
|
+
return J(Oe);
|
|
13626
13723
|
},
|
|
13627
13724
|
get sea() {
|
|
13628
|
-
return J(
|
|
13725
|
+
return J(ke);
|
|
13629
13726
|
},
|
|
13630
13727
|
get logoMark() {
|
|
13631
13728
|
return v();
|
|
@@ -13646,35 +13743,35 @@ function Rc(e, t) {
|
|
|
13646
13743
|
return J(i);
|
|
13647
13744
|
},
|
|
13648
13745
|
get loa() {
|
|
13649
|
-
return J(
|
|
13746
|
+
return J(ae);
|
|
13650
13747
|
},
|
|
13651
13748
|
get selectedBerth() {
|
|
13652
|
-
return J(
|
|
13749
|
+
return J(N);
|
|
13653
13750
|
},
|
|
13654
|
-
onBerthClick:
|
|
13655
|
-
fitInset:
|
|
13751
|
+
onBerthClick: Ge,
|
|
13752
|
+
fitInset: Ne,
|
|
13656
13753
|
get info() {
|
|
13657
13754
|
return J(a);
|
|
13658
13755
|
}
|
|
13659
13756
|
});
|
|
13660
13757
|
}
|
|
13661
|
-
F(t), Ai(t, (e) => H(
|
|
13758
|
+
F(t), Ai(t, (e) => H(je, e), () => J(je)), G(() => {
|
|
13662
13759
|
n = fi(t, 1, "sbw-map-slot svelte-h0br6q", null, n, {
|
|
13663
13760
|
"sbw-map-slot--full-bleed": m() === "100vw",
|
|
13664
13761
|
"sbw-map-slot--overlay": _() === "overlay"
|
|
13665
13762
|
}), mi(t, `height: ${p() ?? ""}; width: ${m() ?? ""}; margin-bottom: ${h() ?? ""};`);
|
|
13666
13763
|
}), X(e, t);
|
|
13667
13764
|
};
|
|
13668
|
-
Q(
|
|
13669
|
-
J(
|
|
13765
|
+
Q(lt, (e) => {
|
|
13766
|
+
J(Pe) && e(ut);
|
|
13670
13767
|
});
|
|
13671
|
-
var
|
|
13672
|
-
let
|
|
13673
|
-
var
|
|
13768
|
+
var dt = W(lt, 2);
|
|
13769
|
+
let I;
|
|
13770
|
+
var ft = U(dt), pt = (e) => {
|
|
13674
13771
|
var t = Fr(), i = mn(t), a = (e) => {
|
|
13675
13772
|
{
|
|
13676
|
-
let t = /* @__PURE__ */ L(() => c() ? J(
|
|
13677
|
-
|
|
13773
|
+
let t = /* @__PURE__ */ L(() => c() ? J(D) : null);
|
|
13774
|
+
Ac(e, {
|
|
13678
13775
|
get apiOrigin() {
|
|
13679
13776
|
return r();
|
|
13680
13777
|
},
|
|
@@ -13682,7 +13779,7 @@ function Rc(e, t) {
|
|
|
13682
13779
|
return n();
|
|
13683
13780
|
},
|
|
13684
13781
|
get session() {
|
|
13685
|
-
return J(
|
|
13782
|
+
return J(re);
|
|
13686
13783
|
},
|
|
13687
13784
|
get lang() {
|
|
13688
13785
|
return J(t);
|
|
@@ -13694,31 +13791,31 @@ function Rc(e, t) {
|
|
|
13694
13791
|
return u();
|
|
13695
13792
|
},
|
|
13696
13793
|
get host() {
|
|
13697
|
-
return
|
|
13794
|
+
return ne;
|
|
13698
13795
|
},
|
|
13699
|
-
onstatus:
|
|
13796
|
+
onstatus: ot
|
|
13700
13797
|
});
|
|
13701
13798
|
}
|
|
13702
13799
|
}, o = (e) => {
|
|
13703
|
-
var t =
|
|
13704
|
-
F(t), G(() => Z(n, J(
|
|
13800
|
+
var t = Lc(), n = U(t, !0);
|
|
13801
|
+
F(t), G(() => Z(n, J(O).wizard.linkInvalid)), X(e, t);
|
|
13705
13802
|
};
|
|
13706
13803
|
Q(i, (e) => {
|
|
13707
|
-
J(
|
|
13804
|
+
J(re) ? e(a) : e(o, -1);
|
|
13708
13805
|
}), X(e, t);
|
|
13709
|
-
},
|
|
13710
|
-
var t =
|
|
13806
|
+
}, mt = (e) => {
|
|
13807
|
+
var t = Rc(), i = mn(t);
|
|
13711
13808
|
{
|
|
13712
|
-
let e = /* @__PURE__ */ L(() => J(
|
|
13809
|
+
let e = /* @__PURE__ */ L(() => J(N) ?? "—"), t = /* @__PURE__ */ L(() => c() || "en"), n = /* @__PURE__ */ L(() => J(A) > 2);
|
|
13713
13810
|
Ia(i, {
|
|
13714
13811
|
get berthLabel() {
|
|
13715
13812
|
return J(e);
|
|
13716
13813
|
},
|
|
13717
13814
|
get priceLabel() {
|
|
13718
|
-
return J(
|
|
13815
|
+
return J(P);
|
|
13719
13816
|
},
|
|
13720
13817
|
get maxLoa() {
|
|
13721
|
-
return J(
|
|
13818
|
+
return J(Le);
|
|
13722
13819
|
},
|
|
13723
13820
|
get locale() {
|
|
13724
13821
|
return J(t);
|
|
@@ -13727,61 +13824,61 @@ function Rc(e, t) {
|
|
|
13727
13824
|
return J(n);
|
|
13728
13825
|
},
|
|
13729
13826
|
get loa() {
|
|
13730
|
-
return J(
|
|
13827
|
+
return J(ae);
|
|
13731
13828
|
},
|
|
13732
13829
|
set loa(e) {
|
|
13733
|
-
H(
|
|
13830
|
+
H(ae, e, !0);
|
|
13734
13831
|
},
|
|
13735
13832
|
get from() {
|
|
13736
|
-
return J(
|
|
13833
|
+
return J(j);
|
|
13737
13834
|
},
|
|
13738
13835
|
set from(e) {
|
|
13739
|
-
H(
|
|
13836
|
+
H(j, e, !0);
|
|
13740
13837
|
},
|
|
13741
13838
|
get to() {
|
|
13742
|
-
return J(
|
|
13839
|
+
return J(oe);
|
|
13743
13840
|
},
|
|
13744
13841
|
set to(e) {
|
|
13745
|
-
H(
|
|
13842
|
+
H(oe, e, !0);
|
|
13746
13843
|
}
|
|
13747
13844
|
});
|
|
13748
13845
|
}
|
|
13749
13846
|
var a = W(i, 2);
|
|
13750
13847
|
{
|
|
13751
|
-
let e = /* @__PURE__ */ L(() => J(
|
|
13848
|
+
let e = /* @__PURE__ */ L(() => J(we) ? void 0 : 3);
|
|
13752
13849
|
Co(a, {
|
|
13753
13850
|
get active() {
|
|
13754
|
-
return J(
|
|
13851
|
+
return J(A);
|
|
13755
13852
|
},
|
|
13756
13853
|
get first() {
|
|
13757
|
-
return J(
|
|
13854
|
+
return J(He);
|
|
13758
13855
|
},
|
|
13759
13856
|
get skip() {
|
|
13760
13857
|
return J(e);
|
|
13761
13858
|
},
|
|
13762
13859
|
get labels() {
|
|
13763
|
-
return J(
|
|
13860
|
+
return J(O).steps;
|
|
13764
13861
|
},
|
|
13765
|
-
onStepClick:
|
|
13862
|
+
onStepClick: Ke
|
|
13766
13863
|
});
|
|
13767
13864
|
}
|
|
13768
13865
|
var o = W(a, 2), s = (e) => {
|
|
13769
|
-
var t =
|
|
13770
|
-
F(t), G(() => Z(n, J(
|
|
13866
|
+
var t = Lc(), n = U(t, !0);
|
|
13867
|
+
F(t), G(() => Z(n, J(ge))), X(e, t);
|
|
13771
13868
|
};
|
|
13772
13869
|
Q(o, (e) => {
|
|
13773
|
-
J(
|
|
13870
|
+
J(ge) && J(A) !== 4 && e(s);
|
|
13774
13871
|
});
|
|
13775
13872
|
var d = W(o, 2), f = (e) => {
|
|
13776
13873
|
{
|
|
13777
13874
|
let t = /* @__PURE__ */ L(() => ({
|
|
13778
13875
|
name: y(),
|
|
13779
13876
|
logo: v(),
|
|
13780
|
-
accent: J(
|
|
13781
|
-
background: J(
|
|
13782
|
-
ink: J(
|
|
13877
|
+
accent: J(Oe),
|
|
13878
|
+
background: J(De),
|
|
13879
|
+
ink: J(Ae)
|
|
13783
13880
|
}));
|
|
13784
|
-
|
|
13881
|
+
gs(e, {
|
|
13785
13882
|
get apiOrigin() {
|
|
13786
13883
|
return r();
|
|
13787
13884
|
},
|
|
@@ -13795,128 +13892,137 @@ function Rc(e, t) {
|
|
|
13795
13892
|
return S();
|
|
13796
13893
|
},
|
|
13797
13894
|
get signInWidth() {
|
|
13798
|
-
return
|
|
13895
|
+
return C();
|
|
13799
13896
|
},
|
|
13800
13897
|
get signInHeight() {
|
|
13801
|
-
return
|
|
13898
|
+
return ee();
|
|
13802
13899
|
},
|
|
13803
13900
|
get brand() {
|
|
13804
13901
|
return J(t);
|
|
13805
13902
|
},
|
|
13806
13903
|
get arrival() {
|
|
13807
|
-
return J(
|
|
13904
|
+
return J(Ve).arrival;
|
|
13808
13905
|
},
|
|
13809
13906
|
get departure() {
|
|
13810
|
-
return J(
|
|
13907
|
+
return J(Ve).departure;
|
|
13811
13908
|
},
|
|
13812
13909
|
get lang() {
|
|
13813
|
-
return J(
|
|
13910
|
+
return J(D);
|
|
13814
13911
|
},
|
|
13815
13912
|
get labels() {
|
|
13816
|
-
return J(
|
|
13913
|
+
return J(O);
|
|
13817
13914
|
},
|
|
13818
13915
|
get variant() {
|
|
13819
13916
|
return u();
|
|
13820
13917
|
},
|
|
13821
13918
|
get complete() {
|
|
13822
|
-
return J(
|
|
13919
|
+
return J(ve);
|
|
13823
13920
|
},
|
|
13824
13921
|
set complete(e) {
|
|
13825
|
-
H(
|
|
13922
|
+
H(ve, e, !0);
|
|
13826
13923
|
},
|
|
13827
13924
|
get sailor() {
|
|
13828
|
-
return J(
|
|
13925
|
+
return J(ye);
|
|
13829
13926
|
},
|
|
13830
13927
|
set sailor(e) {
|
|
13831
|
-
H(
|
|
13928
|
+
H(ye, e, !0);
|
|
13832
13929
|
},
|
|
13833
13930
|
get boatName() {
|
|
13834
|
-
return J(
|
|
13931
|
+
return J(be);
|
|
13835
13932
|
},
|
|
13836
13933
|
set boatName(e) {
|
|
13837
|
-
H(
|
|
13934
|
+
H(be, e, !0);
|
|
13838
13935
|
},
|
|
13839
13936
|
get boatLength() {
|
|
13840
|
-
return J(
|
|
13937
|
+
return J(xe);
|
|
13841
13938
|
},
|
|
13842
13939
|
set boatLength(e) {
|
|
13843
|
-
H(
|
|
13940
|
+
H(xe, e, !0);
|
|
13941
|
+
},
|
|
13942
|
+
get staged() {
|
|
13943
|
+
return J(Se);
|
|
13944
|
+
},
|
|
13945
|
+
set staged(e) {
|
|
13946
|
+
H(Se, e);
|
|
13844
13947
|
}
|
|
13845
13948
|
});
|
|
13846
13949
|
}
|
|
13847
13950
|
}, p = (e) => {
|
|
13848
13951
|
{
|
|
13849
|
-
let t = /* @__PURE__ */ L(() => !!J(
|
|
13850
|
-
|
|
13952
|
+
let t = /* @__PURE__ */ L(() => !!J(ye)), n = /* @__PURE__ */ L(() => !J(te));
|
|
13953
|
+
xs(e, {
|
|
13851
13954
|
get emailLocked() {
|
|
13852
13955
|
return J(t);
|
|
13853
13956
|
},
|
|
13957
|
+
get contact() {
|
|
13958
|
+
return J(n);
|
|
13959
|
+
},
|
|
13854
13960
|
get labels() {
|
|
13855
|
-
return J(
|
|
13961
|
+
return J(O);
|
|
13856
13962
|
},
|
|
13857
13963
|
get contactName() {
|
|
13858
|
-
return J(
|
|
13964
|
+
return J(ce);
|
|
13859
13965
|
},
|
|
13860
13966
|
set contactName(e) {
|
|
13861
|
-
H(
|
|
13967
|
+
H(ce, e, !0);
|
|
13862
13968
|
},
|
|
13863
13969
|
get contactEmail() {
|
|
13864
|
-
return J(
|
|
13970
|
+
return J(le);
|
|
13865
13971
|
},
|
|
13866
13972
|
set contactEmail(e) {
|
|
13867
|
-
H(
|
|
13973
|
+
H(le, e, !0);
|
|
13868
13974
|
},
|
|
13869
13975
|
get contactPhone() {
|
|
13870
|
-
return J(
|
|
13976
|
+
return J(ue);
|
|
13871
13977
|
},
|
|
13872
13978
|
set contactPhone(e) {
|
|
13873
|
-
H(
|
|
13979
|
+
H(ue, e, !0);
|
|
13874
13980
|
},
|
|
13875
13981
|
get boatName() {
|
|
13876
|
-
return J(
|
|
13982
|
+
return J(de);
|
|
13877
13983
|
},
|
|
13878
13984
|
set boatName(e) {
|
|
13879
|
-
H(
|
|
13985
|
+
H(de, e, !0);
|
|
13880
13986
|
},
|
|
13881
13987
|
get boatBeamM() {
|
|
13882
|
-
return J(
|
|
13988
|
+
return J(fe);
|
|
13883
13989
|
},
|
|
13884
13990
|
set boatBeamM(e) {
|
|
13885
|
-
H(
|
|
13991
|
+
H(fe, e, !0);
|
|
13886
13992
|
},
|
|
13887
13993
|
get notes() {
|
|
13888
|
-
return J(
|
|
13994
|
+
return J(pe);
|
|
13889
13995
|
},
|
|
13890
13996
|
set notes(e) {
|
|
13891
|
-
H(
|
|
13997
|
+
H(pe, e, !0);
|
|
13892
13998
|
}
|
|
13893
13999
|
});
|
|
13894
14000
|
}
|
|
13895
14001
|
}, m = (e) => {
|
|
13896
14002
|
{
|
|
13897
|
-
let t = /* @__PURE__ */ L(() => co(J(
|
|
13898
|
-
Ai(
|
|
14003
|
+
let t = /* @__PURE__ */ L(() => co(J(Ce).booking.totalPrice, J(Ce).booking.currency, l(), J(D)));
|
|
14004
|
+
Ai(ec(e, {
|
|
13899
14005
|
get payment() {
|
|
13900
|
-
return J(
|
|
14006
|
+
return J(Ce).payment;
|
|
13901
14007
|
},
|
|
13902
14008
|
get host() {
|
|
13903
|
-
return
|
|
14009
|
+
return ne;
|
|
13904
14010
|
},
|
|
13905
14011
|
get lang() {
|
|
13906
|
-
return J(
|
|
14012
|
+
return J(D);
|
|
13907
14013
|
},
|
|
13908
14014
|
get locale() {
|
|
13909
|
-
return J(
|
|
14015
|
+
return J(D);
|
|
13910
14016
|
},
|
|
13911
14017
|
get totalLabel() {
|
|
13912
14018
|
return J(t);
|
|
13913
14019
|
}
|
|
13914
|
-
}), (e) => H(
|
|
14020
|
+
}), (e) => H(Te, e), () => J(Te));
|
|
13915
14021
|
}
|
|
13916
14022
|
}, h = (e) => {
|
|
13917
14023
|
{
|
|
13918
|
-
let t = /* @__PURE__ */ L(() => c() ? J(
|
|
13919
|
-
|
|
14024
|
+
let t = /* @__PURE__ */ L(() => c() ? J(D) : null);
|
|
14025
|
+
Ac(e, {
|
|
13920
14026
|
get apiOrigin() {
|
|
13921
14027
|
return r();
|
|
13922
14028
|
},
|
|
@@ -13924,7 +14030,7 @@ function Rc(e, t) {
|
|
|
13924
14030
|
return n();
|
|
13925
14031
|
},
|
|
13926
14032
|
get session() {
|
|
13927
|
-
return J(
|
|
14033
|
+
return J(re);
|
|
13928
14034
|
},
|
|
13929
14035
|
get lang() {
|
|
13930
14036
|
return J(t);
|
|
@@ -13936,54 +14042,57 @@ function Rc(e, t) {
|
|
|
13936
14042
|
return u();
|
|
13937
14043
|
},
|
|
13938
14044
|
get host() {
|
|
13939
|
-
return
|
|
14045
|
+
return ne;
|
|
13940
14046
|
},
|
|
13941
|
-
onstatus:
|
|
13942
|
-
onstartover:
|
|
14047
|
+
onstatus: ot,
|
|
14048
|
+
onstartover: at
|
|
13943
14049
|
});
|
|
13944
14050
|
}
|
|
13945
14051
|
};
|
|
13946
14052
|
Q(d, (e) => {
|
|
13947
|
-
J(
|
|
14053
|
+
J(A) === 1 ? e(f) : J(A) === 2 ? e(p, 1) : J(A) === 3 && J(Ce)?.payment ? e(m, 2) : J(A) === 4 && J(re) && e(h, 3);
|
|
13948
14054
|
});
|
|
13949
14055
|
var g = W(d, 2);
|
|
13950
14056
|
{
|
|
13951
|
-
let e = /* @__PURE__ */ L(() => J(
|
|
13952
|
-
|
|
14057
|
+
let e = /* @__PURE__ */ L(() => J(te) && J(A) === 2 ? J(O).addToCart : void 0), t = /* @__PURE__ */ L(() => J(A) === 1 && !J(ve));
|
|
14058
|
+
oc(g, {
|
|
13953
14059
|
get step() {
|
|
13954
|
-
return J(
|
|
14060
|
+
return J(A);
|
|
13955
14061
|
},
|
|
13956
14062
|
get firstStep() {
|
|
13957
|
-
return J(
|
|
14063
|
+
return J(He);
|
|
13958
14064
|
},
|
|
13959
14065
|
get sending() {
|
|
13960
|
-
return J(
|
|
14066
|
+
return J(M);
|
|
13961
14067
|
},
|
|
13962
|
-
get
|
|
14068
|
+
get nextLabel() {
|
|
13963
14069
|
return J(e);
|
|
13964
14070
|
},
|
|
14071
|
+
get nextDisabled() {
|
|
14072
|
+
return J(t);
|
|
14073
|
+
},
|
|
13965
14074
|
get error() {
|
|
13966
|
-
return J(
|
|
14075
|
+
return J(Ee);
|
|
13967
14076
|
},
|
|
13968
14077
|
get labels() {
|
|
13969
|
-
return J(
|
|
14078
|
+
return J(O);
|
|
13970
14079
|
},
|
|
13971
14080
|
get variant() {
|
|
13972
14081
|
return u();
|
|
13973
14082
|
},
|
|
13974
|
-
onBack:
|
|
13975
|
-
onNext:
|
|
14083
|
+
onBack: it,
|
|
14084
|
+
onNext: qe
|
|
13976
14085
|
});
|
|
13977
14086
|
}
|
|
13978
14087
|
X(e, t);
|
|
13979
14088
|
};
|
|
13980
|
-
return Q(
|
|
13981
|
-
|
|
13982
|
-
}), F(
|
|
13983
|
-
|
|
13984
|
-
}), X(e,
|
|
14089
|
+
return Q(ft, (e) => {
|
|
14090
|
+
k ? e(pt) : e(mt, -1);
|
|
14091
|
+
}), F(dt), Ai(dt, (e) => H(Me, e), () => J(Me)), G(() => {
|
|
14092
|
+
I = fi(dt, 1, "sbw-root svelte-h0br6q", null, I, { "sbw-root--overlay": _() === "overlay" }), mi(dt, `--sbw-map-h: ${(J(Pe) ? p() : "0px") ?? ""}; --sbw-map-gap: ${(J(Pe) ? h() : "0px") ?? ""};`);
|
|
14093
|
+
}), X(e, ct), Xe(st);
|
|
13985
14094
|
}
|
|
13986
|
-
customElements.define("sidon-booking-widget", Ii(
|
|
14095
|
+
customElements.define("sidon-booking-widget", Ii(Vc, {
|
|
13987
14096
|
marina: {
|
|
13988
14097
|
attribute: "marina",
|
|
13989
14098
|
type: "String"
|
|
@@ -14076,6 +14185,7 @@ customElements.define("sidon-booking-widget", Ii(Rc, {
|
|
|
14076
14185
|
sailorApiOrigin: {
|
|
14077
14186
|
attribute: "sailor-api-origin",
|
|
14078
14187
|
type: "String"
|
|
14079
|
-
}
|
|
14188
|
+
},
|
|
14189
|
+
addToCart: {}
|
|
14080
14190
|
}, [], [], { mode: "open" }));
|
|
14081
14191
|
//#endregion
|