@campphillip/widgets 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/banners.widget.js +2 -6
- package/dist/board-events.widget.js +2 -6
- package/dist/campphillip.js +248 -2334
- package/dist/categories.widget.js +2 -6
- package/dist/events.widget.js +2 -6
- package/dist/rates.widget.js +2 -6
- package/dist/vendor.js +7679 -0
- package/dist/widgets.css +1 -1
- package/package.json +1 -1
package/dist/campphillip.js
CHANGED
|
@@ -1,413 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var ot = (t, e, n) => zt(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import j, { useMemo as ct, createElement as Tt, useState as S, useEffect as J } from "react";
|
|
5
|
-
import Kt from "react-dom";
|
|
6
|
-
function Zt(t) {
|
|
1
|
+
import { c as A, j as e, S as d, P as w, a as q, b as O, i as I, f as m, d as L, r as c, e as x, R as _ } from "./vendor.js";
|
|
2
|
+
function We(t) {
|
|
7
3
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
8
4
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
ut = 1;
|
|
14
|
-
var t = j, e = /* @__PURE__ */ Symbol.for("react.element"), n = /* @__PURE__ */ Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
15
|
-
function s(c, h, f) {
|
|
16
|
-
var d, u = {}, l = null, m = null;
|
|
17
|
-
f !== void 0 && (l = "" + f), h.key !== void 0 && (l = "" + h.key), h.ref !== void 0 && (m = h.ref);
|
|
18
|
-
for (d in h) r.call(h, d) && !i.hasOwnProperty(d) && (u[d] = h[d]);
|
|
19
|
-
if (c && c.defaultProps) for (d in h = c.defaultProps, h) u[d] === void 0 && (u[d] = h[d]);
|
|
20
|
-
return { $$typeof: e, type: c, key: l, ref: m, props: u, _owner: a.current };
|
|
21
|
-
}
|
|
22
|
-
return E.Fragment = n, E.jsx = s, E.jsxs = s, E;
|
|
23
|
-
}
|
|
24
|
-
var lt;
|
|
25
|
-
function ee() {
|
|
26
|
-
return lt || (lt = 1, K.exports = te()), K.exports;
|
|
27
|
-
}
|
|
28
|
-
var o = ee(), L = {}, dt;
|
|
29
|
-
function ne() {
|
|
30
|
-
if (dt) return L;
|
|
31
|
-
dt = 1;
|
|
32
|
-
var t = Kt;
|
|
33
|
-
return L.createRoot = t.createRoot, L.hydrateRoot = t.hydrateRoot, L;
|
|
34
|
-
}
|
|
35
|
-
var zr = ne();
|
|
36
|
-
const ht = "image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";
|
|
37
|
-
function re(t) {
|
|
38
|
-
const [, e, n, r] = t.split("-");
|
|
39
|
-
if (!e || !n || !r)
|
|
40
|
-
throw new Error(`Malformed asset _ref '${t}'. Expected an id like "${ht}".`);
|
|
41
|
-
const [a, i] = n.split("x"), s = +a, c = +i;
|
|
42
|
-
if (!(isFinite(s) && isFinite(c)))
|
|
43
|
-
throw new Error(`Malformed asset _ref '${t}'. Expected an id like "${ht}".`);
|
|
44
|
-
return { id: e, width: s, height: c, format: r };
|
|
45
|
-
}
|
|
46
|
-
const ae = (t) => {
|
|
47
|
-
const e = t;
|
|
48
|
-
return e ? typeof e._ref == "string" : !1;
|
|
49
|
-
}, ie = (t) => {
|
|
50
|
-
const e = t;
|
|
51
|
-
return e ? typeof e._id == "string" : !1;
|
|
52
|
-
}, se = (t) => {
|
|
53
|
-
const e = t;
|
|
54
|
-
return e && e.asset ? typeof e.asset.url == "string" : !1;
|
|
55
|
-
}, oe = (t) => {
|
|
56
|
-
if (typeof t == "object" && t !== null) {
|
|
57
|
-
const e = t;
|
|
58
|
-
return e._upload && (!e.asset || !e.asset._ref);
|
|
59
|
-
}
|
|
60
|
-
return !1;
|
|
61
|
-
};
|
|
62
|
-
function ce(t) {
|
|
63
|
-
if (!t)
|
|
64
|
-
return null;
|
|
65
|
-
let e;
|
|
66
|
-
if (typeof t == "string" && ue(t))
|
|
67
|
-
e = {
|
|
68
|
-
asset: { _ref: ft(t) }
|
|
69
|
-
};
|
|
70
|
-
else if (typeof t == "string")
|
|
71
|
-
e = {
|
|
72
|
-
asset: { _ref: t }
|
|
73
|
-
};
|
|
74
|
-
else if (ae(t))
|
|
75
|
-
e = {
|
|
76
|
-
asset: t
|
|
77
|
-
};
|
|
78
|
-
else if (ie(t))
|
|
79
|
-
e = {
|
|
80
|
-
asset: {
|
|
81
|
-
_ref: t._id || ""
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
else if (se(t))
|
|
85
|
-
e = {
|
|
86
|
-
asset: {
|
|
87
|
-
_ref: ft(t.asset.url)
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
else if (typeof t.asset == "object")
|
|
91
|
-
e = { ...t };
|
|
92
|
-
else
|
|
93
|
-
return null;
|
|
94
|
-
const n = t;
|
|
95
|
-
return n.crop && (e.crop = n.crop), n.hotspot && (e.hotspot = n.hotspot), le(e);
|
|
96
|
-
}
|
|
97
|
-
function ue(t) {
|
|
98
|
-
return /^https?:\/\//.test(`${t}`);
|
|
99
|
-
}
|
|
100
|
-
function ft(t) {
|
|
101
|
-
return `image-${t.split("/").slice(-1)[0]}`.replace(/\.([a-z]+)$/, "-$1");
|
|
102
|
-
}
|
|
103
|
-
function le(t) {
|
|
104
|
-
if (t.crop && t.hotspot)
|
|
105
|
-
return t;
|
|
106
|
-
const e = { ...t };
|
|
107
|
-
return e.crop || (e.crop = {
|
|
108
|
-
left: 0,
|
|
109
|
-
top: 0,
|
|
110
|
-
bottom: 0,
|
|
111
|
-
right: 0
|
|
112
|
-
}), e.hotspot || (e.hotspot = {
|
|
113
|
-
x: 0.5,
|
|
114
|
-
y: 0.5,
|
|
115
|
-
height: 1,
|
|
116
|
-
width: 1
|
|
117
|
-
}), e;
|
|
118
|
-
}
|
|
119
|
-
const Dt = [
|
|
120
|
-
["width", "w"],
|
|
121
|
-
["height", "h"],
|
|
122
|
-
["format", "fm"],
|
|
123
|
-
["download", "dl"],
|
|
124
|
-
["blur", "blur"],
|
|
125
|
-
["sharpen", "sharp"],
|
|
126
|
-
["invert", "invert"],
|
|
127
|
-
["orientation", "or"],
|
|
128
|
-
["minHeight", "min-h"],
|
|
129
|
-
["maxHeight", "max-h"],
|
|
130
|
-
["minWidth", "min-w"],
|
|
131
|
-
["maxWidth", "max-w"],
|
|
132
|
-
["quality", "q"],
|
|
133
|
-
["fit", "fit"],
|
|
134
|
-
["crop", "crop"],
|
|
135
|
-
["saturation", "sat"],
|
|
136
|
-
["auto", "auto"],
|
|
137
|
-
["dpr", "dpr"],
|
|
138
|
-
["pad", "pad"],
|
|
139
|
-
["frame", "frame"]
|
|
140
|
-
];
|
|
141
|
-
function de(t) {
|
|
142
|
-
let e = { ...t || {} };
|
|
143
|
-
const n = e.source;
|
|
144
|
-
delete e.source;
|
|
145
|
-
const r = ce(n);
|
|
146
|
-
if (!r) {
|
|
147
|
-
if (n && oe(n))
|
|
148
|
-
return "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";
|
|
149
|
-
throw new Error(`Unable to resolve image URL from source (${JSON.stringify(n)})`);
|
|
150
|
-
}
|
|
151
|
-
const a = r.asset._ref || r.asset._id || "", i = re(a), s = Math.round(r.crop.left * i.width), c = Math.round(r.crop.top * i.height), h = {
|
|
152
|
-
left: s,
|
|
153
|
-
top: c,
|
|
154
|
-
width: Math.round(i.width - r.crop.right * i.width - s),
|
|
155
|
-
height: Math.round(i.height - r.crop.bottom * i.height - c)
|
|
156
|
-
}, f = r.hotspot.height * i.height / 2, d = r.hotspot.width * i.width / 2, u = r.hotspot.x * i.width, l = r.hotspot.y * i.height, m = {
|
|
157
|
-
left: u - d,
|
|
158
|
-
top: l - f,
|
|
159
|
-
right: u + d,
|
|
160
|
-
bottom: l + f
|
|
161
|
-
};
|
|
162
|
-
return e.rect || e.focalPoint || e.ignoreImageParams || e.crop || (e = { ...e, ...fe({ crop: h, hotspot: m }, e) }), he({ ...e, asset: i });
|
|
163
|
-
}
|
|
164
|
-
function he(t) {
|
|
165
|
-
const e = (t.baseUrl || "https://cdn.sanity.io").replace(/\/+$/, ""), n = t.vanityName ? `/${t.vanityName}` : "", r = `${t.asset.id}-${t.asset.width}x${t.asset.height}.${t.asset.format}${n}`, a = t.mediaLibraryId ? `${e}/media-libraries/${t.mediaLibraryId}/images/${r}` : `${e}/images/${t.projectId}/${t.dataset}/${r}`, i = [];
|
|
166
|
-
if (t.rect) {
|
|
167
|
-
const { left: c, top: h, width: f, height: d } = t.rect;
|
|
168
|
-
(c !== 0 || h !== 0 || d !== t.asset.height || f !== t.asset.width) && i.push(`rect=${c},${h},${f},${d}`);
|
|
169
|
-
}
|
|
170
|
-
t.bg && i.push(`bg=${t.bg}`), t.focalPoint && (i.push(`fp-x=${t.focalPoint.x}`), i.push(`fp-y=${t.focalPoint.y}`));
|
|
171
|
-
const s = [t.flipHorizontal && "h", t.flipVertical && "v"].filter(Boolean).join("");
|
|
172
|
-
return s && i.push(`flip=${s}`), Dt.forEach((c) => {
|
|
173
|
-
const [h, f] = c;
|
|
174
|
-
typeof t[h] < "u" ? i.push(`${f}=${encodeURIComponent(t[h])}`) : typeof t[f] < "u" && i.push(`${f}=${encodeURIComponent(t[f])}`);
|
|
175
|
-
}), i.length === 0 ? a : `${a}?${i.join("&")}`;
|
|
176
|
-
}
|
|
177
|
-
function fe(t, e) {
|
|
178
|
-
let n;
|
|
179
|
-
const r = e.width, a = e.height;
|
|
180
|
-
if (!(r && a))
|
|
181
|
-
return { width: r, height: a, rect: t.crop };
|
|
182
|
-
const i = t.crop, s = t.hotspot, c = r / a;
|
|
183
|
-
if (i.width / i.height > c) {
|
|
184
|
-
const h = Math.round(i.height), f = Math.round(h * c), d = Math.max(0, Math.round(i.top)), u = Math.round((s.right - s.left) / 2 + s.left);
|
|
185
|
-
let l = Math.max(0, Math.round(u - f / 2));
|
|
186
|
-
l < i.left ? l = i.left : l + f > i.left + i.width && (l = i.left + i.width - f), n = { left: l, top: d, width: f, height: h };
|
|
187
|
-
} else {
|
|
188
|
-
const h = i.width, f = Math.round(h / c), d = Math.max(0, Math.round(i.left)), u = Math.round((s.bottom - s.top) / 2 + s.top);
|
|
189
|
-
let l = Math.max(0, Math.round(u - f / 2));
|
|
190
|
-
l < i.top ? l = i.top : l + f > i.top + i.height && (l = i.top + i.height - f), n = { left: d, top: l, width: h, height: f };
|
|
191
|
-
}
|
|
192
|
-
return {
|
|
193
|
-
width: r,
|
|
194
|
-
height: a,
|
|
195
|
-
rect: n
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
const me = ["clip", "crop", "fill", "fillmax", "max", "scale", "min"], pe = ["top", "bottom", "left", "right", "center", "focalpoint", "entropy"], ye = ["format"];
|
|
199
|
-
function ge(t) {
|
|
200
|
-
return t && "config" in t ? typeof t.config == "function" : !1;
|
|
201
|
-
}
|
|
202
|
-
function we(t) {
|
|
203
|
-
return t && "clientConfig" in t ? typeof t.clientConfig == "object" : !1;
|
|
204
|
-
}
|
|
205
|
-
function mt(t) {
|
|
206
|
-
const { apiHost: e, projectId: n, dataset: r } = t, a = {
|
|
207
|
-
baseUrl: (e || "https://api.sanity.io").replace(/^https:\/\/api\./, "https://cdn.")
|
|
208
|
-
}, i = t["~experimental_resource"];
|
|
209
|
-
if (i?.type === "media-library") {
|
|
210
|
-
if (typeof i.id != "string" || i.id.length === 0)
|
|
211
|
-
throw new Error('Media library clients must include an id in "~experimental_resource"');
|
|
212
|
-
return { ...a, mediaLibraryId: i.id };
|
|
213
|
-
}
|
|
214
|
-
return { ...a, projectId: n, dataset: r };
|
|
215
|
-
}
|
|
216
|
-
function be(t) {
|
|
217
|
-
const e = Dt;
|
|
218
|
-
for (const n of e) {
|
|
219
|
-
const [r, a] = n;
|
|
220
|
-
if (t === r || t === a)
|
|
221
|
-
return r;
|
|
222
|
-
}
|
|
223
|
-
return t;
|
|
224
|
-
}
|
|
225
|
-
function Nt(t) {
|
|
226
|
-
let e = {};
|
|
227
|
-
return ge(t) ? e = mt(t.config()) : we(t) ? e = mt(t.clientConfig) : e = t || {}, e;
|
|
228
|
-
}
|
|
229
|
-
function xe(t, e) {
|
|
230
|
-
const n = Nt(e);
|
|
231
|
-
return new t(null, n);
|
|
232
|
-
}
|
|
233
|
-
function ve(t) {
|
|
234
|
-
return xe(U, t);
|
|
235
|
-
}
|
|
236
|
-
function ke(t, e) {
|
|
237
|
-
const n = e.baseUrl || t.baseUrl, r = { baseUrl: n };
|
|
238
|
-
for (const a in e)
|
|
239
|
-
if (e.hasOwnProperty(a)) {
|
|
240
|
-
const i = be(a);
|
|
241
|
-
r[i] = e[a];
|
|
242
|
-
}
|
|
243
|
-
return { baseUrl: n, ...r };
|
|
244
|
-
}
|
|
245
|
-
class U {
|
|
246
|
-
constructor(e, n) {
|
|
247
|
-
ot(this, "options");
|
|
248
|
-
this.options = e ? { ...e.options || {}, ...n || {} } : { ...n || {} };
|
|
249
|
-
}
|
|
250
|
-
withOptions(e) {
|
|
251
|
-
const n = ke(this.options, e);
|
|
252
|
-
return new U(this, n);
|
|
253
|
-
}
|
|
254
|
-
// The image to be represented. Accepts a Sanity 'image'-document, 'asset'-document or
|
|
255
|
-
// _id of asset. To get the benefit of automatic hot-spot/crop integration with the content
|
|
256
|
-
// studio, the 'image'-document must be provided.
|
|
257
|
-
image(e) {
|
|
258
|
-
return this.withOptions({ source: e });
|
|
259
|
-
}
|
|
260
|
-
// Specify the dataset
|
|
261
|
-
dataset(e) {
|
|
262
|
-
return this.withOptions({ dataset: e });
|
|
263
|
-
}
|
|
264
|
-
// Specify the projectId
|
|
265
|
-
projectId(e) {
|
|
266
|
-
return this.withOptions({ projectId: e });
|
|
267
|
-
}
|
|
268
|
-
withClient(e) {
|
|
269
|
-
const n = Nt(e), r = { ...this.options };
|
|
270
|
-
return delete r.baseUrl, delete r.projectId, delete r.dataset, delete r.mediaLibraryId, new U(null, { ...n, ...r });
|
|
271
|
-
}
|
|
272
|
-
// Specify background color
|
|
273
|
-
bg(e) {
|
|
274
|
-
return this.withOptions({ bg: e });
|
|
275
|
-
}
|
|
276
|
-
// Set DPR scaling factor
|
|
277
|
-
dpr(e) {
|
|
278
|
-
return this.withOptions(e && e !== 1 ? { dpr: e } : {});
|
|
279
|
-
}
|
|
280
|
-
// Specify the width of the image in pixels
|
|
281
|
-
width(e) {
|
|
282
|
-
return this.withOptions({ width: e });
|
|
283
|
-
}
|
|
284
|
-
// Specify the height of the image in pixels
|
|
285
|
-
height(e) {
|
|
286
|
-
return this.withOptions({ height: e });
|
|
287
|
-
}
|
|
288
|
-
// Specify focal point in fraction of image dimensions. Each component 0.0-1.0
|
|
289
|
-
focalPoint(e, n) {
|
|
290
|
-
return this.withOptions({ focalPoint: { x: e, y: n } });
|
|
291
|
-
}
|
|
292
|
-
maxWidth(e) {
|
|
293
|
-
return this.withOptions({ maxWidth: e });
|
|
294
|
-
}
|
|
295
|
-
minWidth(e) {
|
|
296
|
-
return this.withOptions({ minWidth: e });
|
|
297
|
-
}
|
|
298
|
-
maxHeight(e) {
|
|
299
|
-
return this.withOptions({ maxHeight: e });
|
|
300
|
-
}
|
|
301
|
-
minHeight(e) {
|
|
302
|
-
return this.withOptions({ minHeight: e });
|
|
303
|
-
}
|
|
304
|
-
// Specify width and height in pixels
|
|
305
|
-
size(e, n) {
|
|
306
|
-
return this.withOptions({ width: e, height: n });
|
|
307
|
-
}
|
|
308
|
-
// Specify blur between 0 and 100
|
|
309
|
-
blur(e) {
|
|
310
|
-
return this.withOptions({ blur: e });
|
|
311
|
-
}
|
|
312
|
-
sharpen(e) {
|
|
313
|
-
return this.withOptions({ sharpen: e });
|
|
314
|
-
}
|
|
315
|
-
// Specify the desired rectangle of the image
|
|
316
|
-
rect(e, n, r, a) {
|
|
317
|
-
return this.withOptions({ rect: { left: e, top: n, width: r, height: a } });
|
|
318
|
-
}
|
|
319
|
-
// Specify the image format of the image. 'jpg', 'pjpg', 'png', 'webp'
|
|
320
|
-
format(e) {
|
|
321
|
-
return this.withOptions({ format: e });
|
|
322
|
-
}
|
|
323
|
-
invert(e) {
|
|
324
|
-
return this.withOptions({ invert: e });
|
|
325
|
-
}
|
|
326
|
-
// Rotation in degrees 0, 90, 180, 270
|
|
327
|
-
orientation(e) {
|
|
328
|
-
return this.withOptions({ orientation: e });
|
|
329
|
-
}
|
|
330
|
-
// Compression quality 0-100
|
|
331
|
-
quality(e) {
|
|
332
|
-
return this.withOptions({ quality: e });
|
|
333
|
-
}
|
|
334
|
-
// Make it a download link. Parameter is default filename.
|
|
335
|
-
forceDownload(e) {
|
|
336
|
-
return this.withOptions({ download: e });
|
|
337
|
-
}
|
|
338
|
-
// Flip image horizontally
|
|
339
|
-
flipHorizontal() {
|
|
340
|
-
return this.withOptions({ flipHorizontal: !0 });
|
|
341
|
-
}
|
|
342
|
-
// Flip image vertically
|
|
343
|
-
flipVertical() {
|
|
344
|
-
return this.withOptions({ flipVertical: !0 });
|
|
345
|
-
}
|
|
346
|
-
// Ignore crop/hotspot from image record, even when present
|
|
347
|
-
ignoreImageParams() {
|
|
348
|
-
return this.withOptions({ ignoreImageParams: !0 });
|
|
349
|
-
}
|
|
350
|
-
fit(e) {
|
|
351
|
-
if (me.indexOf(e) === -1)
|
|
352
|
-
throw new Error(`Invalid fit mode "${e}"`);
|
|
353
|
-
return this.withOptions({ fit: e });
|
|
354
|
-
}
|
|
355
|
-
crop(e) {
|
|
356
|
-
if (pe.indexOf(e) === -1)
|
|
357
|
-
throw new Error(`Invalid crop mode "${e}"`);
|
|
358
|
-
return this.withOptions({ crop: e });
|
|
359
|
-
}
|
|
360
|
-
// Saturation
|
|
361
|
-
saturation(e) {
|
|
362
|
-
return this.withOptions({ saturation: e });
|
|
363
|
-
}
|
|
364
|
-
auto(e) {
|
|
365
|
-
if (ye.indexOf(e) === -1)
|
|
366
|
-
throw new Error(`Invalid auto mode "${e}"`);
|
|
367
|
-
return this.withOptions({ auto: e });
|
|
368
|
-
}
|
|
369
|
-
// Specify the number of pixels to pad the image
|
|
370
|
-
pad(e) {
|
|
371
|
-
return this.withOptions({ pad: e });
|
|
372
|
-
}
|
|
373
|
-
// Vanity URL for more SEO friendly URLs
|
|
374
|
-
vanityName(e) {
|
|
375
|
-
return this.withOptions({ vanityName: e });
|
|
376
|
-
}
|
|
377
|
-
frame(e) {
|
|
378
|
-
if (e !== 1)
|
|
379
|
-
throw new Error(`Invalid frame value "${e}"`);
|
|
380
|
-
return this.withOptions({ frame: e });
|
|
381
|
-
}
|
|
382
|
-
// Gets the url based on the submitted parameters
|
|
383
|
-
url() {
|
|
384
|
-
return de(this.options);
|
|
385
|
-
}
|
|
386
|
-
// Alias for url()
|
|
387
|
-
toString() {
|
|
388
|
-
return this.url();
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
const Et = "m5ik5me8", It = "production", _e = `https://${Et}.api.sanity.io/v1/data/query/${It}`, B = {
|
|
392
|
-
async fetch(t, e) {
|
|
393
|
-
const n = JSON.stringify(e ? { query: t, params: e } : { query: t }), a = await fetch(_e, { method: "POST", headers: { "Content-Type": "application/json" }, body: n }), i = await a.text().catch(() => "");
|
|
394
|
-
if (!a.ok)
|
|
5
|
+
const S = "m5ik5me8", k = "production", H = `https://${S}.api.sanity.io/v1/data/query/${k}`, y = {
|
|
6
|
+
async fetch(t, n) {
|
|
7
|
+
const a = JSON.stringify(n ? { query: t, params: n } : { query: t }), s = await fetch(H, { method: "POST", headers: { "Content-Type": "application/json" }, body: a }), r = await s.text().catch(() => "");
|
|
8
|
+
if (!s.ok)
|
|
395
9
|
try {
|
|
396
|
-
const
|
|
397
|
-
throw new Error(`Sanity fetch failed (${
|
|
10
|
+
const v = JSON.parse(r)?.error?.description ?? r ?? s.statusText;
|
|
11
|
+
throw new Error(`Sanity fetch failed (${s.status}): ${v}`);
|
|
398
12
|
} catch {
|
|
399
|
-
throw new Error(`Sanity fetch failed (${
|
|
13
|
+
throw new Error(`Sanity fetch failed (${s.status}): ${r || s.statusText}`);
|
|
400
14
|
}
|
|
401
|
-
let
|
|
15
|
+
let i;
|
|
402
16
|
try {
|
|
403
|
-
|
|
17
|
+
i = JSON.parse(r);
|
|
404
18
|
} catch {
|
|
405
19
|
throw new Error("Sanity returned a non-JSON response");
|
|
406
20
|
}
|
|
407
|
-
if (
|
|
408
|
-
return
|
|
21
|
+
if (i?.error) throw new Error(`Sanity error: ${JSON.stringify(i.error)}`);
|
|
22
|
+
return i?.result ?? null;
|
|
409
23
|
}
|
|
410
|
-
},
|
|
24
|
+
}, P = A({ projectId: S, dataset: k }), f = (t) => P.image(t), U = async () => await y.fetch("*[_type == 'banner']"), G = async () => await y.fetch(`*[_type == 'event'] | order(startDate asc)
|
|
411
25
|
{
|
|
412
26
|
name,
|
|
413
27
|
image,
|
|
@@ -416,7 +30,7 @@ const Et = "m5ik5me8", It = "production", _e = `https://${Et}.api.sanity.io/v1/d
|
|
|
416
30
|
endDate,
|
|
417
31
|
shortDescription,
|
|
418
32
|
buttons
|
|
419
|
-
}`),
|
|
33
|
+
}`), J = async () => await y.fetch(`*[_type == 'board-event'] | order(startDate asc)
|
|
420
34
|
{
|
|
421
35
|
name,
|
|
422
36
|
image,
|
|
@@ -425,1821 +39,107 @@ const Et = "m5ik5me8", It = "production", _e = `https://${Et}.api.sanity.io/v1/d
|
|
|
425
39
|
endDate,
|
|
426
40
|
shortDescription,
|
|
427
41
|
buttons
|
|
428
|
-
}`),
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
}
|
|
432
|
-
function Wt(t) {
|
|
433
|
-
return typeof t._type == "string" && t._type[0] !== "@" && (!("markDefs" in t) || !t.markDefs || Array.isArray(t.markDefs) && t.markDefs.every((e) => typeof e._key == "string")) && "children" in t && Array.isArray(t.children) && t.children.every((e) => typeof e == "object" && "_type" in e);
|
|
434
|
-
}
|
|
435
|
-
function $t(t) {
|
|
436
|
-
return Wt(t) && "listItem" in t && typeof t.listItem == "string" && (t.level === void 0 || typeof t.level == "number");
|
|
437
|
-
}
|
|
438
|
-
function At(t) {
|
|
439
|
-
return t._type === "@list";
|
|
440
|
-
}
|
|
441
|
-
function Rt(t) {
|
|
442
|
-
return t._type === "@span";
|
|
443
|
-
}
|
|
444
|
-
function Yt(t) {
|
|
445
|
-
return t._type === "@text";
|
|
446
|
-
}
|
|
447
|
-
const pt = [
|
|
448
|
-
"strong",
|
|
449
|
-
"em",
|
|
450
|
-
"code",
|
|
451
|
-
"underline",
|
|
452
|
-
"strike-through"
|
|
453
|
-
];
|
|
454
|
-
function Te(t, e, n) {
|
|
455
|
-
if (!Q(t) || !t.marks || !t.marks.length) return [];
|
|
456
|
-
let r = t.marks.slice(), a = {};
|
|
457
|
-
return r.forEach((i) => {
|
|
458
|
-
a[i] = 1;
|
|
459
|
-
for (let s = e + 1; s < n.length; s++) {
|
|
460
|
-
let c = n[s];
|
|
461
|
-
if (c && Q(c) && Array.isArray(c.marks) && c.marks.indexOf(i) !== -1) a[i]++;
|
|
462
|
-
else break;
|
|
463
|
-
}
|
|
464
|
-
}), r.sort((i, s) => De(a, i, s));
|
|
465
|
-
}
|
|
466
|
-
function De(t, e, n) {
|
|
467
|
-
let r = t[e], a = t[n];
|
|
468
|
-
if (r !== a) return a - r;
|
|
469
|
-
let i = pt.indexOf(e), s = pt.indexOf(n);
|
|
470
|
-
return i === s ? e.localeCompare(n) : i - s;
|
|
471
|
-
}
|
|
472
|
-
function Ne(t) {
|
|
473
|
-
let { children: e } = t, n = t.markDefs ?? [];
|
|
474
|
-
if (!e || !e.length) return [];
|
|
475
|
-
let r = e.map(Te), a = {
|
|
476
|
-
_type: "@span",
|
|
477
|
-
children: [],
|
|
478
|
-
markType: "<unknown>"
|
|
479
|
-
}, i = [a];
|
|
480
|
-
for (let s = 0; s < e.length; s++) {
|
|
481
|
-
let c = e[s];
|
|
482
|
-
if (!c) continue;
|
|
483
|
-
let h = r[s] || [], f = 1;
|
|
484
|
-
if (i.length > 1) for (; f < i.length; f++) {
|
|
485
|
-
let u = i[f]?.markKey || "", l = h.indexOf(u);
|
|
486
|
-
if (l === -1) break;
|
|
487
|
-
h.splice(l, 1);
|
|
488
|
-
}
|
|
489
|
-
i = i.slice(0, f);
|
|
490
|
-
let d = i[i.length - 1];
|
|
491
|
-
if (d) {
|
|
492
|
-
for (let u of h) {
|
|
493
|
-
let l = n?.find((w) => w._key === u), m = {
|
|
494
|
-
_type: "@span",
|
|
495
|
-
_key: c._key,
|
|
496
|
-
children: [],
|
|
497
|
-
markDef: l,
|
|
498
|
-
markType: l ? l._type : u,
|
|
499
|
-
markKey: u
|
|
500
|
-
};
|
|
501
|
-
d.children.push(m), i.push(m), d = m;
|
|
502
|
-
}
|
|
503
|
-
if (Q(c)) {
|
|
504
|
-
let u = c.text.split(`
|
|
505
|
-
`);
|
|
506
|
-
for (let l = u.length; l-- > 1; ) u.splice(l, 0, `
|
|
507
|
-
`);
|
|
508
|
-
d.children = d.children.concat(u.map((l) => ({
|
|
509
|
-
_type: "@text",
|
|
510
|
-
text: l
|
|
511
|
-
})));
|
|
512
|
-
} else d.children = d.children.concat(c);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
return a.children;
|
|
516
|
-
}
|
|
517
|
-
function Ee(t, e) {
|
|
518
|
-
let n = [], r;
|
|
519
|
-
for (let a = 0; a < t.length; a++) {
|
|
520
|
-
let i = t[a];
|
|
521
|
-
if (i) {
|
|
522
|
-
if (!$t(i)) {
|
|
523
|
-
n.push(i), r = void 0;
|
|
524
|
-
continue;
|
|
525
|
-
}
|
|
526
|
-
if (!r) {
|
|
527
|
-
r = F(i, a, e), n.push(r);
|
|
528
|
-
continue;
|
|
529
|
-
}
|
|
530
|
-
if (Ie(i, r)) {
|
|
531
|
-
r.children.push(i);
|
|
532
|
-
continue;
|
|
533
|
-
}
|
|
534
|
-
if ((i.level || 1) > r.level) {
|
|
535
|
-
let s = F(i, a, e);
|
|
536
|
-
if (e === "html") {
|
|
537
|
-
let c = r.children[r.children.length - 1], h = {
|
|
538
|
-
...c,
|
|
539
|
-
children: [...c.children, s]
|
|
540
|
-
};
|
|
541
|
-
r.children[r.children.length - 1] = h;
|
|
542
|
-
} else r.children.push(s);
|
|
543
|
-
r = s;
|
|
544
|
-
continue;
|
|
545
|
-
}
|
|
546
|
-
if ((i.level || 1) < r.level) {
|
|
547
|
-
let s = n[n.length - 1], c = s && et(s, i);
|
|
548
|
-
if (c) {
|
|
549
|
-
r = c, r.children.push(i);
|
|
550
|
-
continue;
|
|
551
|
-
}
|
|
552
|
-
r = F(i, a, e), n.push(r);
|
|
553
|
-
continue;
|
|
554
|
-
}
|
|
555
|
-
if (i.listItem !== r.listItem) {
|
|
556
|
-
let s = n[n.length - 1], c = s && et(s, { level: i.level || 1 });
|
|
557
|
-
if (c && c.listItem === i.listItem) {
|
|
558
|
-
r = c, r.children.push(i);
|
|
559
|
-
continue;
|
|
560
|
-
} else {
|
|
561
|
-
r = F(i, a, e), n.push(r);
|
|
562
|
-
continue;
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
console.warn("Unknown state encountered for block", i), n.push(i);
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
return n;
|
|
569
|
-
}
|
|
570
|
-
function Ie(t, e) {
|
|
571
|
-
return (t.level || 1) === e.level && t.listItem === e.listItem;
|
|
572
|
-
}
|
|
573
|
-
function F(t, e, n) {
|
|
574
|
-
return {
|
|
575
|
-
_type: "@list",
|
|
576
|
-
_key: `${t._key || `${e}`}-parent`,
|
|
577
|
-
mode: n,
|
|
578
|
-
level: t.level || 1,
|
|
579
|
-
listItem: t.listItem,
|
|
580
|
-
children: [t]
|
|
581
|
-
};
|
|
582
|
-
}
|
|
583
|
-
function et(t, e) {
|
|
584
|
-
let n = e.level || 1, r = e.listItem || "normal", a = typeof e.listItem == "string";
|
|
585
|
-
if (At(t) && (t.level || 1) === n && a && (t.listItem || "normal") === r) return t;
|
|
586
|
-
if (!("children" in t)) return;
|
|
587
|
-
let i = t.children[t.children.length - 1];
|
|
588
|
-
return i && !Q(i) ? et(i, e) : void 0;
|
|
589
|
-
}
|
|
590
|
-
function Bt(t) {
|
|
591
|
-
let e = "";
|
|
592
|
-
return t.children.forEach((n) => {
|
|
593
|
-
Yt(n) ? e += n.text : Rt(n) && (e += Bt(n));
|
|
594
|
-
}), e;
|
|
595
|
-
}
|
|
596
|
-
const We = "html", $e = {
|
|
597
|
-
number: ({ children: t }) => /* @__PURE__ */ o.jsx("ol", { children: t }),
|
|
598
|
-
bullet: ({ children: t }) => /* @__PURE__ */ o.jsx("ul", { children: t })
|
|
599
|
-
}, Ae = ({ children: t }) => /* @__PURE__ */ o.jsx("li", { children: t }), Re = ({ children: t, value: e }) => /* @__PURE__ */ o.jsx("a", {
|
|
600
|
-
href: e?.href,
|
|
601
|
-
children: t
|
|
602
|
-
}), Ye = { textDecoration: "underline" }, Be = {
|
|
603
|
-
em: ({ children: t }) => /* @__PURE__ */ o.jsx("em", { children: t }),
|
|
604
|
-
strong: ({ children: t }) => /* @__PURE__ */ o.jsx("strong", { children: t }),
|
|
605
|
-
code: ({ children: t }) => /* @__PURE__ */ o.jsx("code", { children: t }),
|
|
606
|
-
underline: ({ children: t }) => /* @__PURE__ */ o.jsx("span", {
|
|
607
|
-
style: Ye,
|
|
608
|
-
children: t
|
|
609
|
-
}),
|
|
610
|
-
"strike-through": ({ children: t }) => /* @__PURE__ */ o.jsx("del", { children: t }),
|
|
611
|
-
link: Re
|
|
612
|
-
}, q = (t, e) => `[@portabletext/react] Unknown ${t}, specify a component for it in the \`components.${e}\` prop`, qt = (t) => q(`block type "${t}"`, "types"), qe = (t) => q(`mark type "${t}"`, "marks"), Le = (t) => q(`block style "${t}"`, "block"), Fe = (t) => q(`list style "${t}"`, "list"), He = (t) => q(`list item style "${t}"`, "listItem");
|
|
613
|
-
function Ue(t) {
|
|
614
|
-
console.warn(t);
|
|
615
|
-
}
|
|
616
|
-
const Qe = { display: "none" }, yt = {
|
|
617
|
-
types: {},
|
|
618
|
-
block: {
|
|
619
|
-
normal: ({ children: t }) => /* @__PURE__ */ o.jsx("p", { children: t }),
|
|
620
|
-
blockquote: ({ children: t }) => /* @__PURE__ */ o.jsx("blockquote", { children: t }),
|
|
621
|
-
h1: ({ children: t }) => /* @__PURE__ */ o.jsx("h1", { children: t }),
|
|
622
|
-
h2: ({ children: t }) => /* @__PURE__ */ o.jsx("h2", { children: t }),
|
|
623
|
-
h3: ({ children: t }) => /* @__PURE__ */ o.jsx("h3", { children: t }),
|
|
624
|
-
h4: ({ children: t }) => /* @__PURE__ */ o.jsx("h4", { children: t }),
|
|
625
|
-
h5: ({ children: t }) => /* @__PURE__ */ o.jsx("h5", { children: t }),
|
|
626
|
-
h6: ({ children: t }) => /* @__PURE__ */ o.jsx("h6", { children: t })
|
|
627
|
-
},
|
|
628
|
-
marks: Be,
|
|
629
|
-
list: $e,
|
|
630
|
-
listItem: Ae,
|
|
631
|
-
hardBreak: () => /* @__PURE__ */ o.jsx("br", {}),
|
|
632
|
-
unknownType: ({ value: t, isInline: e }) => {
|
|
633
|
-
let n = qt(t._type);
|
|
634
|
-
return o.jsx(e ? "span" : "div", {
|
|
635
|
-
style: Qe,
|
|
636
|
-
children: n
|
|
637
|
-
});
|
|
638
|
-
},
|
|
639
|
-
unknownMark: ({ markType: t, children: e }) => /* @__PURE__ */ o.jsx("span", {
|
|
640
|
-
className: `unknown__pt__mark__${t}`,
|
|
641
|
-
children: e
|
|
642
|
-
}),
|
|
643
|
-
unknownList: ({ children: t }) => /* @__PURE__ */ o.jsx("ul", { children: t }),
|
|
644
|
-
unknownListItem: ({ children: t }) => /* @__PURE__ */ o.jsx("li", { children: t }),
|
|
645
|
-
unknownBlockStyle: ({ children: t }) => /* @__PURE__ */ o.jsx("p", { children: t })
|
|
646
|
-
};
|
|
647
|
-
function Ge(t, e) {
|
|
648
|
-
let { block: n, list: r, listItem: a, marks: i, types: s, ...c } = e;
|
|
649
|
-
return {
|
|
650
|
-
...t,
|
|
651
|
-
block: I(t, e, "block"),
|
|
652
|
-
list: I(t, e, "list"),
|
|
653
|
-
listItem: I(t, e, "listItem"),
|
|
654
|
-
marks: I(t, e, "marks"),
|
|
655
|
-
types: I(t, e, "types"),
|
|
656
|
-
...c
|
|
657
|
-
};
|
|
658
|
-
}
|
|
659
|
-
function I(t, e, n) {
|
|
660
|
-
let r = e[n], a = t[n];
|
|
661
|
-
return typeof r == "function" || r && typeof a == "function" ? r : r ? {
|
|
662
|
-
...a,
|
|
663
|
-
...r
|
|
664
|
-
} : a;
|
|
665
|
-
}
|
|
666
|
-
function Lt({ value: t, components: e, listNestingMode: n, onMissingComponent: r = Ue }) {
|
|
667
|
-
let a = r || Je, i = Ee(Array.isArray(t) ? t : [t], n || We), s = ct(() => e ? Ge(yt, e) : yt, [e]), c = ct(() => Xe(s, a), [s, a]);
|
|
668
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: i.map((h, f) => c({
|
|
669
|
-
node: h,
|
|
670
|
-
index: f,
|
|
671
|
-
isInline: !1,
|
|
672
|
-
renderNode: c
|
|
673
|
-
})) });
|
|
674
|
-
}
|
|
675
|
-
const Xe = (t, e) => {
|
|
676
|
-
function n(u) {
|
|
677
|
-
let { node: l, index: m, isInline: w } = u, y = l._key || `node-${m}`;
|
|
678
|
-
return At(l) ? i(l, m, y) : $t(l) ? a(l, m, y) : Rt(l) ? s(l, m, y) : r(l) ? d(l, m, y, w) : Wt(l) ? c(l, m, y, w) : Yt(l) ? h(l, y) : f(l, m, y, w);
|
|
679
|
-
}
|
|
680
|
-
function r(u) {
|
|
681
|
-
return u._type in t.types;
|
|
682
|
-
}
|
|
683
|
-
function a(u, l, m) {
|
|
684
|
-
let w = gt({
|
|
685
|
-
node: u,
|
|
686
|
-
index: l,
|
|
687
|
-
isInline: !1,
|
|
688
|
-
renderNode: n
|
|
689
|
-
}), y = t.listItem, b = (typeof y == "function" ? y : y[u.listItem]) || t.unknownListItem;
|
|
690
|
-
if (b === t.unknownListItem) {
|
|
691
|
-
let x = u.listItem || "bullet";
|
|
692
|
-
e(He(x), {
|
|
693
|
-
type: x,
|
|
694
|
-
nodeType: "listItemStyle"
|
|
695
|
-
});
|
|
696
|
-
}
|
|
697
|
-
let g = w.children;
|
|
698
|
-
if (u.style && u.style !== "normal") {
|
|
699
|
-
let { listItem: x, ...v } = u;
|
|
700
|
-
g = n({
|
|
701
|
-
node: v,
|
|
702
|
-
index: l,
|
|
703
|
-
isInline: !1
|
|
704
|
-
});
|
|
705
|
-
}
|
|
706
|
-
return /* @__PURE__ */ o.jsx(b, {
|
|
707
|
-
value: u,
|
|
708
|
-
index: l,
|
|
709
|
-
isInline: !1,
|
|
710
|
-
renderNode: n,
|
|
711
|
-
children: g
|
|
712
|
-
}, m);
|
|
713
|
-
}
|
|
714
|
-
function i(u, l, m) {
|
|
715
|
-
let w = u.children.map((g, x) => n({
|
|
716
|
-
node: g._key ? g : {
|
|
717
|
-
...g,
|
|
718
|
-
_key: `li-${l}-${x}`
|
|
719
|
-
},
|
|
720
|
-
index: x,
|
|
721
|
-
isInline: !1
|
|
722
|
-
})), y = t.list, b = (typeof y == "function" ? y : y[u.listItem]) || t.unknownList;
|
|
723
|
-
if (b === t.unknownList) {
|
|
724
|
-
let g = u.listItem || "bullet";
|
|
725
|
-
e(Fe(g), {
|
|
726
|
-
nodeType: "listStyle",
|
|
727
|
-
type: g
|
|
728
|
-
});
|
|
729
|
-
}
|
|
730
|
-
return /* @__PURE__ */ o.jsx(b, {
|
|
731
|
-
value: u,
|
|
732
|
-
index: l,
|
|
733
|
-
isInline: !1,
|
|
734
|
-
renderNode: n,
|
|
735
|
-
children: w
|
|
736
|
-
}, m);
|
|
737
|
-
}
|
|
738
|
-
function s(u, l, m) {
|
|
739
|
-
let { markDef: w, markType: y, markKey: b } = u, g = t.marks[y] || t.unknownMark, x = u.children.map((v, O) => n({
|
|
740
|
-
node: v,
|
|
741
|
-
index: O,
|
|
742
|
-
isInline: !0
|
|
743
|
-
}));
|
|
744
|
-
return g === t.unknownMark && e(qe(y), {
|
|
745
|
-
nodeType: "mark",
|
|
746
|
-
type: y
|
|
747
|
-
}), /* @__PURE__ */ o.jsx(g, {
|
|
748
|
-
text: Bt(u),
|
|
749
|
-
value: w,
|
|
750
|
-
markType: y,
|
|
751
|
-
markKey: b,
|
|
752
|
-
renderNode: n,
|
|
753
|
-
children: x
|
|
754
|
-
}, m);
|
|
755
|
-
}
|
|
756
|
-
function c(u, l, m, w) {
|
|
757
|
-
let { _key: y, ...b } = gt({
|
|
758
|
-
node: u,
|
|
759
|
-
index: l,
|
|
760
|
-
isInline: w,
|
|
761
|
-
renderNode: n
|
|
762
|
-
}), g = b.node.style || "normal", x = (typeof t.block == "function" ? t.block : t.block[g]) || t.unknownBlockStyle;
|
|
763
|
-
return x === t.unknownBlockStyle && e(Le(g), {
|
|
764
|
-
nodeType: "blockStyle",
|
|
765
|
-
type: g
|
|
766
|
-
}), /* @__PURE__ */ o.jsx(x, {
|
|
767
|
-
...b,
|
|
768
|
-
value: b.node,
|
|
769
|
-
renderNode: n
|
|
770
|
-
}, m);
|
|
771
|
-
}
|
|
772
|
-
function h(u, l) {
|
|
773
|
-
if (u.text === `
|
|
774
|
-
`) {
|
|
775
|
-
let m = t.hardBreak;
|
|
776
|
-
return m ? /* @__PURE__ */ o.jsx(m, {}, l) : `
|
|
777
|
-
`;
|
|
778
|
-
}
|
|
779
|
-
return u.text;
|
|
780
|
-
}
|
|
781
|
-
function f(u, l, m, w) {
|
|
782
|
-
let y = {
|
|
783
|
-
value: u,
|
|
784
|
-
isInline: w,
|
|
785
|
-
index: l,
|
|
786
|
-
renderNode: n
|
|
787
|
-
};
|
|
788
|
-
e(qt(u._type), {
|
|
789
|
-
nodeType: "block",
|
|
790
|
-
type: u._type
|
|
791
|
-
});
|
|
792
|
-
let b = t.unknownType;
|
|
793
|
-
return /* @__PURE__ */ o.jsx(b, { ...y }, m);
|
|
794
|
-
}
|
|
795
|
-
function d(u, l, m, w) {
|
|
796
|
-
let y = {
|
|
797
|
-
value: u,
|
|
798
|
-
isInline: w,
|
|
799
|
-
index: l,
|
|
800
|
-
renderNode: n
|
|
801
|
-
}, b = t.types[u._type];
|
|
802
|
-
return b ? /* @__PURE__ */ o.jsx(b, { ...y }, m) : null;
|
|
803
|
-
}
|
|
804
|
-
return n;
|
|
805
|
-
};
|
|
806
|
-
function gt(t) {
|
|
807
|
-
let { node: e, index: n, isInline: r, renderNode: a } = t, i = Ne(e).map((s, c) => a({
|
|
808
|
-
node: s,
|
|
809
|
-
isInline: !0,
|
|
810
|
-
index: c,
|
|
811
|
-
renderNode: a
|
|
812
|
-
}));
|
|
813
|
-
return {
|
|
814
|
-
_key: e._key || `block-${n}`,
|
|
815
|
-
children: i,
|
|
816
|
-
index: n,
|
|
817
|
-
isInline: r,
|
|
818
|
-
node: e
|
|
819
|
-
};
|
|
820
|
-
}
|
|
821
|
-
function Je() {
|
|
822
|
-
}
|
|
823
|
-
const Ft = j.createContext({}), Ht = !0;
|
|
824
|
-
function Ve({ baseColor: t, highlightColor: e, width: n, height: r, borderRadius: a, circle: i, direction: s, duration: c, enableAnimation: h = Ht, customHighlightBackground: f }) {
|
|
825
|
-
const d = {};
|
|
826
|
-
return s === "rtl" && (d["--animation-direction"] = "reverse"), typeof c == "number" && (d["--animation-duration"] = `${c}s`), h || (d["--pseudo-element-display"] = "none"), (typeof n == "string" || typeof n == "number") && (d.width = n), (typeof r == "string" || typeof r == "number") && (d.height = r), (typeof a == "string" || typeof a == "number") && (d.borderRadius = a), i && (d.borderRadius = "50%"), typeof t < "u" && (d["--base-color"] = t), typeof e < "u" && (d["--highlight-color"] = e), typeof f == "string" && (d["--custom-highlight-background"] = f), d;
|
|
827
|
-
}
|
|
828
|
-
function T({ count: t = 1, wrapper: e, className: n, containerClassName: r, containerTestId: a, circle: i = !1, style: s, ...c }) {
|
|
829
|
-
var h, f, d;
|
|
830
|
-
const u = j.useContext(Ft), l = { ...c };
|
|
831
|
-
for (const [v, O] of Object.entries(c))
|
|
832
|
-
typeof O > "u" && delete l[v];
|
|
833
|
-
const m = {
|
|
834
|
-
...u,
|
|
835
|
-
...l,
|
|
836
|
-
circle: i
|
|
837
|
-
}, w = {
|
|
838
|
-
...s,
|
|
839
|
-
...Ve(m)
|
|
840
|
-
};
|
|
841
|
-
let y = "react-loading-skeleton";
|
|
842
|
-
n && (y += ` ${n}`);
|
|
843
|
-
const b = (h = m.inline) !== null && h !== void 0 ? h : !1, g = [], x = Math.ceil(t);
|
|
844
|
-
for (let v = 0; v < x; v++) {
|
|
845
|
-
let O = w;
|
|
846
|
-
if (x > t && v === x - 1) {
|
|
847
|
-
const z = (f = O.width) !== null && f !== void 0 ? f : "100%", st = t % 1, Jt = typeof z == "number" ? z * st : `calc(${z} * ${st})`;
|
|
848
|
-
O = { ...O, width: Jt };
|
|
849
|
-
}
|
|
850
|
-
const it = j.createElement("span", { className: y, style: O, key: v }, "");
|
|
851
|
-
b ? g.push(it) : g.push(j.createElement(
|
|
852
|
-
j.Fragment,
|
|
853
|
-
{ key: v },
|
|
854
|
-
it,
|
|
855
|
-
j.createElement("br", null)
|
|
856
|
-
));
|
|
857
|
-
}
|
|
858
|
-
return j.createElement("span", { className: r, "data-testid": a, "aria-live": "polite", "aria-busy": (d = m.enableAnimation) !== null && d !== void 0 ? d : Ht }, e ? g.map((v, O) => j.createElement(e, { key: O }, v)) : g);
|
|
859
|
-
}
|
|
860
|
-
function ze({ children: t, ...e }) {
|
|
861
|
-
return j.createElement(Ft.Provider, { value: e }, t);
|
|
862
|
-
}
|
|
863
|
-
const Ke = "_banner_1d1ur_1", wt = {
|
|
864
|
-
banner: Ke
|
|
865
|
-
}, Ze = {
|
|
42
|
+
}`), F = async () => y.fetch("*[_type == 'category']|order(orderRank)"), W = async () => y.fetch("*[_type == 'rateCategory']|order(orderRank)"), Y = "_banner_1d1ur_1", b = {
|
|
43
|
+
banner: Y
|
|
44
|
+
}, z = {
|
|
866
45
|
marks: {
|
|
867
|
-
color: ({ value: t, children:
|
|
46
|
+
color: ({ value: t, children: n }) => /* @__PURE__ */ e.jsx(
|
|
868
47
|
"span",
|
|
869
48
|
{
|
|
870
49
|
style: {
|
|
871
50
|
color: t.hex
|
|
872
51
|
},
|
|
873
|
-
children:
|
|
52
|
+
children: n
|
|
874
53
|
}
|
|
875
54
|
)
|
|
876
55
|
}
|
|
877
|
-
},
|
|
878
|
-
const
|
|
879
|
-
|
|
56
|
+
}, Q = ({ image: t, text: n, url: a, loading: o }) => {
|
|
57
|
+
const s = () => {
|
|
58
|
+
a && (window.location.href = a);
|
|
880
59
|
};
|
|
881
|
-
return
|
|
60
|
+
return o ? /* @__PURE__ */ e.jsx("div", { className: b.banner, style: { display: "block" }, children: /* @__PURE__ */ e.jsx(d, { height: "100%", width: "100%" }) }) : /* @__PURE__ */ e.jsx(
|
|
882
61
|
"span",
|
|
883
62
|
{
|
|
884
|
-
onClick:
|
|
63
|
+
onClick: s,
|
|
885
64
|
style: {
|
|
886
|
-
cursor:
|
|
65
|
+
cursor: a ? "pointer" : "",
|
|
887
66
|
backgroundImage: `linear-gradient(
|
|
888
67
|
rgba(0, 0, 0, 0.2),
|
|
889
68
|
rgba(0, 0, 0, 0.2)
|
|
890
|
-
), url("${
|
|
69
|
+
), url("${f(t).width(1440).url()}")`
|
|
891
70
|
},
|
|
892
|
-
className:
|
|
893
|
-
children: /* @__PURE__ */
|
|
894
|
-
}
|
|
895
|
-
);
|
|
896
|
-
}, en = "_bannerContainer_79bac_1", nn = "_bannerApp_79bac_8", bt = {
|
|
897
|
-
bannerContainer: en,
|
|
898
|
-
bannerApp: nn
|
|
899
|
-
}, rn = ({ children: t }) => /* @__PURE__ */ o.jsx("div", { className: bt.bannerContainer, children: /* @__PURE__ */ o.jsx("div", { className: bt.bannerApp, children: t }) });
|
|
900
|
-
var Z = { exports: {} };
|
|
901
|
-
var xt;
|
|
902
|
-
function an() {
|
|
903
|
-
return xt || (xt = 1, (function(t) {
|
|
904
|
-
(function() {
|
|
905
|
-
var e = {}.hasOwnProperty;
|
|
906
|
-
function n() {
|
|
907
|
-
for (var i = "", s = 0; s < arguments.length; s++) {
|
|
908
|
-
var c = arguments[s];
|
|
909
|
-
c && (i = a(i, r(c)));
|
|
910
|
-
}
|
|
911
|
-
return i;
|
|
912
|
-
}
|
|
913
|
-
function r(i) {
|
|
914
|
-
if (typeof i == "string" || typeof i == "number")
|
|
915
|
-
return i;
|
|
916
|
-
if (typeof i != "object")
|
|
917
|
-
return "";
|
|
918
|
-
if (Array.isArray(i))
|
|
919
|
-
return n.apply(null, i);
|
|
920
|
-
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
|
|
921
|
-
return i.toString();
|
|
922
|
-
var s = "";
|
|
923
|
-
for (var c in i)
|
|
924
|
-
e.call(i, c) && i[c] && (s = a(s, c));
|
|
925
|
-
return s;
|
|
926
|
-
}
|
|
927
|
-
function a(i, s) {
|
|
928
|
-
return s ? i ? i + " " + s : i + s : i;
|
|
929
|
-
}
|
|
930
|
-
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
931
|
-
})();
|
|
932
|
-
})(Z)), Z.exports;
|
|
933
|
-
}
|
|
934
|
-
var sn = an();
|
|
935
|
-
const on = /* @__PURE__ */ Zt(sn), Ut = 6048e5, cn = 864e5, vt = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
936
|
-
function C(t, e) {
|
|
937
|
-
return typeof t == "function" ? t(e) : t && typeof t == "object" && vt in t ? t[vt](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
|
|
938
|
-
}
|
|
939
|
-
function _(t, e) {
|
|
940
|
-
return C(e || t, t);
|
|
941
|
-
}
|
|
942
|
-
let un = {};
|
|
943
|
-
function V() {
|
|
944
|
-
return un;
|
|
945
|
-
}
|
|
946
|
-
function Y(t, e) {
|
|
947
|
-
const n = V(), r = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, a = _(t, e?.in), i = a.getDay(), s = (i < r ? 7 : 0) + i - r;
|
|
948
|
-
return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
|
|
949
|
-
}
|
|
950
|
-
function G(t, e) {
|
|
951
|
-
return Y(t, { ...e, weekStartsOn: 1 });
|
|
952
|
-
}
|
|
953
|
-
function Qt(t, e) {
|
|
954
|
-
const n = _(t, e?.in), r = n.getFullYear(), a = C(n, 0);
|
|
955
|
-
a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
956
|
-
const i = G(a), s = C(n, 0);
|
|
957
|
-
s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0);
|
|
958
|
-
const c = G(s);
|
|
959
|
-
return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >= c.getTime() ? r : r - 1;
|
|
960
|
-
}
|
|
961
|
-
function kt(t) {
|
|
962
|
-
const e = _(t), n = new Date(
|
|
963
|
-
Date.UTC(
|
|
964
|
-
e.getFullYear(),
|
|
965
|
-
e.getMonth(),
|
|
966
|
-
e.getDate(),
|
|
967
|
-
e.getHours(),
|
|
968
|
-
e.getMinutes(),
|
|
969
|
-
e.getSeconds(),
|
|
970
|
-
e.getMilliseconds()
|
|
971
|
-
)
|
|
972
|
-
);
|
|
973
|
-
return n.setUTCFullYear(e.getFullYear()), +t - +n;
|
|
974
|
-
}
|
|
975
|
-
function at(t, ...e) {
|
|
976
|
-
const n = C.bind(
|
|
977
|
-
null,
|
|
978
|
-
e.find((r) => typeof r == "object")
|
|
979
|
-
);
|
|
980
|
-
return e.map(n);
|
|
981
|
-
}
|
|
982
|
-
function X(t, e) {
|
|
983
|
-
const n = _(t, e?.in);
|
|
984
|
-
return n.setHours(0, 0, 0, 0), n;
|
|
985
|
-
}
|
|
986
|
-
function ln(t, e, n) {
|
|
987
|
-
const [r, a] = at(
|
|
988
|
-
n?.in,
|
|
989
|
-
t,
|
|
990
|
-
e
|
|
991
|
-
), i = X(r), s = X(a), c = +i - kt(i), h = +s - kt(s);
|
|
992
|
-
return Math.round((c - h) / cn);
|
|
993
|
-
}
|
|
994
|
-
function dn(t, e) {
|
|
995
|
-
const n = Qt(t, e), r = C(t, 0);
|
|
996
|
-
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), G(r);
|
|
997
|
-
}
|
|
998
|
-
function hn(t, e, n) {
|
|
999
|
-
const [r, a] = at(
|
|
1000
|
-
n?.in,
|
|
1001
|
-
t,
|
|
1002
|
-
e
|
|
1003
|
-
);
|
|
1004
|
-
return +X(r) == +X(a);
|
|
1005
|
-
}
|
|
1006
|
-
function fn(t) {
|
|
1007
|
-
return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
|
|
1008
|
-
}
|
|
1009
|
-
function mn(t) {
|
|
1010
|
-
return !(!fn(t) && typeof t != "number" || isNaN(+_(t)));
|
|
1011
|
-
}
|
|
1012
|
-
function pn(t, e) {
|
|
1013
|
-
const n = _(t, e?.in);
|
|
1014
|
-
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
1015
|
-
}
|
|
1016
|
-
const yn = {
|
|
1017
|
-
lessThanXSeconds: {
|
|
1018
|
-
one: "less than a second",
|
|
1019
|
-
other: "less than {{count}} seconds"
|
|
1020
|
-
},
|
|
1021
|
-
xSeconds: {
|
|
1022
|
-
one: "1 second",
|
|
1023
|
-
other: "{{count}} seconds"
|
|
1024
|
-
},
|
|
1025
|
-
halfAMinute: "half a minute",
|
|
1026
|
-
lessThanXMinutes: {
|
|
1027
|
-
one: "less than a minute",
|
|
1028
|
-
other: "less than {{count}} minutes"
|
|
1029
|
-
},
|
|
1030
|
-
xMinutes: {
|
|
1031
|
-
one: "1 minute",
|
|
1032
|
-
other: "{{count}} minutes"
|
|
1033
|
-
},
|
|
1034
|
-
aboutXHours: {
|
|
1035
|
-
one: "about 1 hour",
|
|
1036
|
-
other: "about {{count}} hours"
|
|
1037
|
-
},
|
|
1038
|
-
xHours: {
|
|
1039
|
-
one: "1 hour",
|
|
1040
|
-
other: "{{count}} hours"
|
|
1041
|
-
},
|
|
1042
|
-
xDays: {
|
|
1043
|
-
one: "1 day",
|
|
1044
|
-
other: "{{count}} days"
|
|
1045
|
-
},
|
|
1046
|
-
aboutXWeeks: {
|
|
1047
|
-
one: "about 1 week",
|
|
1048
|
-
other: "about {{count}} weeks"
|
|
1049
|
-
},
|
|
1050
|
-
xWeeks: {
|
|
1051
|
-
one: "1 week",
|
|
1052
|
-
other: "{{count}} weeks"
|
|
1053
|
-
},
|
|
1054
|
-
aboutXMonths: {
|
|
1055
|
-
one: "about 1 month",
|
|
1056
|
-
other: "about {{count}} months"
|
|
1057
|
-
},
|
|
1058
|
-
xMonths: {
|
|
1059
|
-
one: "1 month",
|
|
1060
|
-
other: "{{count}} months"
|
|
1061
|
-
},
|
|
1062
|
-
aboutXYears: {
|
|
1063
|
-
one: "about 1 year",
|
|
1064
|
-
other: "about {{count}} years"
|
|
1065
|
-
},
|
|
1066
|
-
xYears: {
|
|
1067
|
-
one: "1 year",
|
|
1068
|
-
other: "{{count}} years"
|
|
1069
|
-
},
|
|
1070
|
-
overXYears: {
|
|
1071
|
-
one: "over 1 year",
|
|
1072
|
-
other: "over {{count}} years"
|
|
1073
|
-
},
|
|
1074
|
-
almostXYears: {
|
|
1075
|
-
one: "almost 1 year",
|
|
1076
|
-
other: "almost {{count}} years"
|
|
1077
|
-
}
|
|
1078
|
-
}, gn = (t, e, n) => {
|
|
1079
|
-
let r;
|
|
1080
|
-
const a = yn[t];
|
|
1081
|
-
return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
1082
|
-
};
|
|
1083
|
-
function tt(t) {
|
|
1084
|
-
return (e = {}) => {
|
|
1085
|
-
const n = e.width ? String(e.width) : t.defaultWidth;
|
|
1086
|
-
return t.formats[n] || t.formats[t.defaultWidth];
|
|
1087
|
-
};
|
|
1088
|
-
}
|
|
1089
|
-
const wn = {
|
|
1090
|
-
full: "EEEE, MMMM do, y",
|
|
1091
|
-
long: "MMMM do, y",
|
|
1092
|
-
medium: "MMM d, y",
|
|
1093
|
-
short: "MM/dd/yyyy"
|
|
1094
|
-
}, bn = {
|
|
1095
|
-
full: "h:mm:ss a zzzz",
|
|
1096
|
-
long: "h:mm:ss a z",
|
|
1097
|
-
medium: "h:mm:ss a",
|
|
1098
|
-
short: "h:mm a"
|
|
1099
|
-
}, xn = {
|
|
1100
|
-
full: "{{date}} 'at' {{time}}",
|
|
1101
|
-
long: "{{date}} 'at' {{time}}",
|
|
1102
|
-
medium: "{{date}}, {{time}}",
|
|
1103
|
-
short: "{{date}}, {{time}}"
|
|
1104
|
-
}, vn = {
|
|
1105
|
-
date: tt({
|
|
1106
|
-
formats: wn,
|
|
1107
|
-
defaultWidth: "full"
|
|
1108
|
-
}),
|
|
1109
|
-
time: tt({
|
|
1110
|
-
formats: bn,
|
|
1111
|
-
defaultWidth: "full"
|
|
1112
|
-
}),
|
|
1113
|
-
dateTime: tt({
|
|
1114
|
-
formats: xn,
|
|
1115
|
-
defaultWidth: "full"
|
|
1116
|
-
})
|
|
1117
|
-
}, kn = {
|
|
1118
|
-
lastWeek: "'last' eeee 'at' p",
|
|
1119
|
-
yesterday: "'yesterday at' p",
|
|
1120
|
-
today: "'today at' p",
|
|
1121
|
-
tomorrow: "'tomorrow at' p",
|
|
1122
|
-
nextWeek: "eeee 'at' p",
|
|
1123
|
-
other: "P"
|
|
1124
|
-
}, _n = (t, e, n, r) => kn[t];
|
|
1125
|
-
function W(t) {
|
|
1126
|
-
return (e, n) => {
|
|
1127
|
-
const r = n?.context ? String(n.context) : "standalone";
|
|
1128
|
-
let a;
|
|
1129
|
-
if (r === "formatting" && t.formattingValues) {
|
|
1130
|
-
const s = t.defaultFormattingWidth || t.defaultWidth, c = n?.width ? String(n.width) : s;
|
|
1131
|
-
a = t.formattingValues[c] || t.formattingValues[s];
|
|
1132
|
-
} else {
|
|
1133
|
-
const s = t.defaultWidth, c = n?.width ? String(n.width) : t.defaultWidth;
|
|
1134
|
-
a = t.values[c] || t.values[s];
|
|
1135
|
-
}
|
|
1136
|
-
const i = t.argumentCallback ? t.argumentCallback(e) : e;
|
|
1137
|
-
return a[i];
|
|
1138
|
-
};
|
|
1139
|
-
}
|
|
1140
|
-
const On = {
|
|
1141
|
-
narrow: ["B", "A"],
|
|
1142
|
-
abbreviated: ["BC", "AD"],
|
|
1143
|
-
wide: ["Before Christ", "Anno Domini"]
|
|
1144
|
-
}, jn = {
|
|
1145
|
-
narrow: ["1", "2", "3", "4"],
|
|
1146
|
-
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
1147
|
-
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
1148
|
-
}, Mn = {
|
|
1149
|
-
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
1150
|
-
abbreviated: [
|
|
1151
|
-
"Jan",
|
|
1152
|
-
"Feb",
|
|
1153
|
-
"Mar",
|
|
1154
|
-
"Apr",
|
|
1155
|
-
"May",
|
|
1156
|
-
"Jun",
|
|
1157
|
-
"Jul",
|
|
1158
|
-
"Aug",
|
|
1159
|
-
"Sep",
|
|
1160
|
-
"Oct",
|
|
1161
|
-
"Nov",
|
|
1162
|
-
"Dec"
|
|
1163
|
-
],
|
|
1164
|
-
wide: [
|
|
1165
|
-
"January",
|
|
1166
|
-
"February",
|
|
1167
|
-
"March",
|
|
1168
|
-
"April",
|
|
1169
|
-
"May",
|
|
1170
|
-
"June",
|
|
1171
|
-
"July",
|
|
1172
|
-
"August",
|
|
1173
|
-
"September",
|
|
1174
|
-
"October",
|
|
1175
|
-
"November",
|
|
1176
|
-
"December"
|
|
1177
|
-
]
|
|
1178
|
-
}, Sn = {
|
|
1179
|
-
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
1180
|
-
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
1181
|
-
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
1182
|
-
wide: [
|
|
1183
|
-
"Sunday",
|
|
1184
|
-
"Monday",
|
|
1185
|
-
"Tuesday",
|
|
1186
|
-
"Wednesday",
|
|
1187
|
-
"Thursday",
|
|
1188
|
-
"Friday",
|
|
1189
|
-
"Saturday"
|
|
1190
|
-
]
|
|
1191
|
-
}, Cn = {
|
|
1192
|
-
narrow: {
|
|
1193
|
-
am: "a",
|
|
1194
|
-
pm: "p",
|
|
1195
|
-
midnight: "mi",
|
|
1196
|
-
noon: "n",
|
|
1197
|
-
morning: "morning",
|
|
1198
|
-
afternoon: "afternoon",
|
|
1199
|
-
evening: "evening",
|
|
1200
|
-
night: "night"
|
|
1201
|
-
},
|
|
1202
|
-
abbreviated: {
|
|
1203
|
-
am: "AM",
|
|
1204
|
-
pm: "PM",
|
|
1205
|
-
midnight: "midnight",
|
|
1206
|
-
noon: "noon",
|
|
1207
|
-
morning: "morning",
|
|
1208
|
-
afternoon: "afternoon",
|
|
1209
|
-
evening: "evening",
|
|
1210
|
-
night: "night"
|
|
1211
|
-
},
|
|
1212
|
-
wide: {
|
|
1213
|
-
am: "a.m.",
|
|
1214
|
-
pm: "p.m.",
|
|
1215
|
-
midnight: "midnight",
|
|
1216
|
-
noon: "noon",
|
|
1217
|
-
morning: "morning",
|
|
1218
|
-
afternoon: "afternoon",
|
|
1219
|
-
evening: "evening",
|
|
1220
|
-
night: "night"
|
|
1221
|
-
}
|
|
1222
|
-
}, Pn = {
|
|
1223
|
-
narrow: {
|
|
1224
|
-
am: "a",
|
|
1225
|
-
pm: "p",
|
|
1226
|
-
midnight: "mi",
|
|
1227
|
-
noon: "n",
|
|
1228
|
-
morning: "in the morning",
|
|
1229
|
-
afternoon: "in the afternoon",
|
|
1230
|
-
evening: "in the evening",
|
|
1231
|
-
night: "at night"
|
|
1232
|
-
},
|
|
1233
|
-
abbreviated: {
|
|
1234
|
-
am: "AM",
|
|
1235
|
-
pm: "PM",
|
|
1236
|
-
midnight: "midnight",
|
|
1237
|
-
noon: "noon",
|
|
1238
|
-
morning: "in the morning",
|
|
1239
|
-
afternoon: "in the afternoon",
|
|
1240
|
-
evening: "in the evening",
|
|
1241
|
-
night: "at night"
|
|
1242
|
-
},
|
|
1243
|
-
wide: {
|
|
1244
|
-
am: "a.m.",
|
|
1245
|
-
pm: "p.m.",
|
|
1246
|
-
midnight: "midnight",
|
|
1247
|
-
noon: "noon",
|
|
1248
|
-
morning: "in the morning",
|
|
1249
|
-
afternoon: "in the afternoon",
|
|
1250
|
-
evening: "in the evening",
|
|
1251
|
-
night: "at night"
|
|
1252
|
-
}
|
|
1253
|
-
}, Tn = (t, e) => {
|
|
1254
|
-
const n = Number(t), r = n % 100;
|
|
1255
|
-
if (r > 20 || r < 10)
|
|
1256
|
-
switch (r % 10) {
|
|
1257
|
-
case 1:
|
|
1258
|
-
return n + "st";
|
|
1259
|
-
case 2:
|
|
1260
|
-
return n + "nd";
|
|
1261
|
-
case 3:
|
|
1262
|
-
return n + "rd";
|
|
1263
|
-
}
|
|
1264
|
-
return n + "th";
|
|
1265
|
-
}, Dn = {
|
|
1266
|
-
ordinalNumber: Tn,
|
|
1267
|
-
era: W({
|
|
1268
|
-
values: On,
|
|
1269
|
-
defaultWidth: "wide"
|
|
1270
|
-
}),
|
|
1271
|
-
quarter: W({
|
|
1272
|
-
values: jn,
|
|
1273
|
-
defaultWidth: "wide",
|
|
1274
|
-
argumentCallback: (t) => t - 1
|
|
1275
|
-
}),
|
|
1276
|
-
month: W({
|
|
1277
|
-
values: Mn,
|
|
1278
|
-
defaultWidth: "wide"
|
|
1279
|
-
}),
|
|
1280
|
-
day: W({
|
|
1281
|
-
values: Sn,
|
|
1282
|
-
defaultWidth: "wide"
|
|
1283
|
-
}),
|
|
1284
|
-
dayPeriod: W({
|
|
1285
|
-
values: Cn,
|
|
1286
|
-
defaultWidth: "wide",
|
|
1287
|
-
formattingValues: Pn,
|
|
1288
|
-
defaultFormattingWidth: "wide"
|
|
1289
|
-
})
|
|
1290
|
-
};
|
|
1291
|
-
function $(t) {
|
|
1292
|
-
return (e, n = {}) => {
|
|
1293
|
-
const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
|
|
1294
|
-
if (!i)
|
|
1295
|
-
return null;
|
|
1296
|
-
const s = i[0], c = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], h = Array.isArray(c) ? En(c, (u) => u.test(s)) : (
|
|
1297
|
-
// [TODO] -- I challenge you to fix the type
|
|
1298
|
-
Nn(c, (u) => u.test(s))
|
|
1299
|
-
);
|
|
1300
|
-
let f;
|
|
1301
|
-
f = t.valueCallback ? t.valueCallback(h) : h, f = n.valueCallback ? (
|
|
1302
|
-
// [TODO] -- I challenge you to fix the type
|
|
1303
|
-
n.valueCallback(f)
|
|
1304
|
-
) : f;
|
|
1305
|
-
const d = e.slice(s.length);
|
|
1306
|
-
return { value: f, rest: d };
|
|
1307
|
-
};
|
|
1308
|
-
}
|
|
1309
|
-
function Nn(t, e) {
|
|
1310
|
-
for (const n in t)
|
|
1311
|
-
if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
|
|
1312
|
-
return n;
|
|
1313
|
-
}
|
|
1314
|
-
function En(t, e) {
|
|
1315
|
-
for (let n = 0; n < t.length; n++)
|
|
1316
|
-
if (e(t[n]))
|
|
1317
|
-
return n;
|
|
1318
|
-
}
|
|
1319
|
-
function In(t) {
|
|
1320
|
-
return (e, n = {}) => {
|
|
1321
|
-
const r = e.match(t.matchPattern);
|
|
1322
|
-
if (!r) return null;
|
|
1323
|
-
const a = r[0], i = e.match(t.parsePattern);
|
|
1324
|
-
if (!i) return null;
|
|
1325
|
-
let s = t.valueCallback ? t.valueCallback(i[0]) : i[0];
|
|
1326
|
-
s = n.valueCallback ? n.valueCallback(s) : s;
|
|
1327
|
-
const c = e.slice(a.length);
|
|
1328
|
-
return { value: s, rest: c };
|
|
1329
|
-
};
|
|
1330
|
-
}
|
|
1331
|
-
const Wn = /^(\d+)(th|st|nd|rd)?/i, $n = /\d+/i, An = {
|
|
1332
|
-
narrow: /^(b|a)/i,
|
|
1333
|
-
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
1334
|
-
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
1335
|
-
}, Rn = {
|
|
1336
|
-
any: [/^b/i, /^(a|c)/i]
|
|
1337
|
-
}, Yn = {
|
|
1338
|
-
narrow: /^[1234]/i,
|
|
1339
|
-
abbreviated: /^q[1234]/i,
|
|
1340
|
-
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
1341
|
-
}, Bn = {
|
|
1342
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
1343
|
-
}, qn = {
|
|
1344
|
-
narrow: /^[jfmasond]/i,
|
|
1345
|
-
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
1346
|
-
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
1347
|
-
}, Ln = {
|
|
1348
|
-
narrow: [
|
|
1349
|
-
/^j/i,
|
|
1350
|
-
/^f/i,
|
|
1351
|
-
/^m/i,
|
|
1352
|
-
/^a/i,
|
|
1353
|
-
/^m/i,
|
|
1354
|
-
/^j/i,
|
|
1355
|
-
/^j/i,
|
|
1356
|
-
/^a/i,
|
|
1357
|
-
/^s/i,
|
|
1358
|
-
/^o/i,
|
|
1359
|
-
/^n/i,
|
|
1360
|
-
/^d/i
|
|
1361
|
-
],
|
|
1362
|
-
any: [
|
|
1363
|
-
/^ja/i,
|
|
1364
|
-
/^f/i,
|
|
1365
|
-
/^mar/i,
|
|
1366
|
-
/^ap/i,
|
|
1367
|
-
/^may/i,
|
|
1368
|
-
/^jun/i,
|
|
1369
|
-
/^jul/i,
|
|
1370
|
-
/^au/i,
|
|
1371
|
-
/^s/i,
|
|
1372
|
-
/^o/i,
|
|
1373
|
-
/^n/i,
|
|
1374
|
-
/^d/i
|
|
1375
|
-
]
|
|
1376
|
-
}, Fn = {
|
|
1377
|
-
narrow: /^[smtwf]/i,
|
|
1378
|
-
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
1379
|
-
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
1380
|
-
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
1381
|
-
}, Hn = {
|
|
1382
|
-
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
1383
|
-
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
1384
|
-
}, Un = {
|
|
1385
|
-
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
1386
|
-
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
1387
|
-
}, Qn = {
|
|
1388
|
-
any: {
|
|
1389
|
-
am: /^a/i,
|
|
1390
|
-
pm: /^p/i,
|
|
1391
|
-
midnight: /^mi/i,
|
|
1392
|
-
noon: /^no/i,
|
|
1393
|
-
morning: /morning/i,
|
|
1394
|
-
afternoon: /afternoon/i,
|
|
1395
|
-
evening: /evening/i,
|
|
1396
|
-
night: /night/i
|
|
1397
|
-
}
|
|
1398
|
-
}, Gn = {
|
|
1399
|
-
ordinalNumber: In({
|
|
1400
|
-
matchPattern: Wn,
|
|
1401
|
-
parsePattern: $n,
|
|
1402
|
-
valueCallback: (t) => parseInt(t, 10)
|
|
1403
|
-
}),
|
|
1404
|
-
era: $({
|
|
1405
|
-
matchPatterns: An,
|
|
1406
|
-
defaultMatchWidth: "wide",
|
|
1407
|
-
parsePatterns: Rn,
|
|
1408
|
-
defaultParseWidth: "any"
|
|
1409
|
-
}),
|
|
1410
|
-
quarter: $({
|
|
1411
|
-
matchPatterns: Yn,
|
|
1412
|
-
defaultMatchWidth: "wide",
|
|
1413
|
-
parsePatterns: Bn,
|
|
1414
|
-
defaultParseWidth: "any",
|
|
1415
|
-
valueCallback: (t) => t + 1
|
|
1416
|
-
}),
|
|
1417
|
-
month: $({
|
|
1418
|
-
matchPatterns: qn,
|
|
1419
|
-
defaultMatchWidth: "wide",
|
|
1420
|
-
parsePatterns: Ln,
|
|
1421
|
-
defaultParseWidth: "any"
|
|
1422
|
-
}),
|
|
1423
|
-
day: $({
|
|
1424
|
-
matchPatterns: Fn,
|
|
1425
|
-
defaultMatchWidth: "wide",
|
|
1426
|
-
parsePatterns: Hn,
|
|
1427
|
-
defaultParseWidth: "any"
|
|
1428
|
-
}),
|
|
1429
|
-
dayPeriod: $({
|
|
1430
|
-
matchPatterns: Un,
|
|
1431
|
-
defaultMatchWidth: "any",
|
|
1432
|
-
parsePatterns: Qn,
|
|
1433
|
-
defaultParseWidth: "any"
|
|
1434
|
-
})
|
|
1435
|
-
}, Xn = {
|
|
1436
|
-
code: "en-US",
|
|
1437
|
-
formatDistance: gn,
|
|
1438
|
-
formatLong: vn,
|
|
1439
|
-
formatRelative: _n,
|
|
1440
|
-
localize: Dn,
|
|
1441
|
-
match: Gn,
|
|
1442
|
-
options: {
|
|
1443
|
-
weekStartsOn: 0,
|
|
1444
|
-
firstWeekContainsDate: 1
|
|
1445
|
-
}
|
|
1446
|
-
};
|
|
1447
|
-
function Jn(t, e) {
|
|
1448
|
-
const n = _(t, e?.in);
|
|
1449
|
-
return ln(n, pn(n)) + 1;
|
|
1450
|
-
}
|
|
1451
|
-
function Vn(t, e) {
|
|
1452
|
-
const n = _(t, e?.in), r = +G(n) - +dn(n);
|
|
1453
|
-
return Math.round(r / Ut) + 1;
|
|
1454
|
-
}
|
|
1455
|
-
function Gt(t, e) {
|
|
1456
|
-
const n = _(t, e?.in), r = n.getFullYear(), a = V(), i = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = C(e?.in || t, 0);
|
|
1457
|
-
s.setFullYear(r + 1, 0, i), s.setHours(0, 0, 0, 0);
|
|
1458
|
-
const c = Y(s, e), h = C(e?.in || t, 0);
|
|
1459
|
-
h.setFullYear(r, 0, i), h.setHours(0, 0, 0, 0);
|
|
1460
|
-
const f = Y(h, e);
|
|
1461
|
-
return +n >= +c ? r + 1 : +n >= +f ? r : r - 1;
|
|
1462
|
-
}
|
|
1463
|
-
function zn(t, e) {
|
|
1464
|
-
const n = V(), r = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = Gt(t, e), i = C(e?.in || t, 0);
|
|
1465
|
-
return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), Y(i, e);
|
|
1466
|
-
}
|
|
1467
|
-
function Kn(t, e) {
|
|
1468
|
-
const n = _(t, e?.in), r = +Y(n, e) - +zn(n, e);
|
|
1469
|
-
return Math.round(r / Ut) + 1;
|
|
1470
|
-
}
|
|
1471
|
-
function p(t, e) {
|
|
1472
|
-
const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
|
|
1473
|
-
return n + r;
|
|
1474
|
-
}
|
|
1475
|
-
const M = {
|
|
1476
|
-
// Year
|
|
1477
|
-
y(t, e) {
|
|
1478
|
-
const n = t.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
1479
|
-
return p(e === "yy" ? r % 100 : r, e.length);
|
|
1480
|
-
},
|
|
1481
|
-
// Month
|
|
1482
|
-
M(t, e) {
|
|
1483
|
-
const n = t.getMonth();
|
|
1484
|
-
return e === "M" ? String(n + 1) : p(n + 1, 2);
|
|
1485
|
-
},
|
|
1486
|
-
// Day of the month
|
|
1487
|
-
d(t, e) {
|
|
1488
|
-
return p(t.getDate(), e.length);
|
|
1489
|
-
},
|
|
1490
|
-
// AM or PM
|
|
1491
|
-
a(t, e) {
|
|
1492
|
-
const n = t.getHours() / 12 >= 1 ? "pm" : "am";
|
|
1493
|
-
switch (e) {
|
|
1494
|
-
case "a":
|
|
1495
|
-
case "aa":
|
|
1496
|
-
return n.toUpperCase();
|
|
1497
|
-
case "aaa":
|
|
1498
|
-
return n;
|
|
1499
|
-
case "aaaaa":
|
|
1500
|
-
return n[0];
|
|
1501
|
-
default:
|
|
1502
|
-
return n === "am" ? "a.m." : "p.m.";
|
|
1503
|
-
}
|
|
1504
|
-
},
|
|
1505
|
-
// Hour [1-12]
|
|
1506
|
-
h(t, e) {
|
|
1507
|
-
return p(t.getHours() % 12 || 12, e.length);
|
|
1508
|
-
},
|
|
1509
|
-
// Hour [0-23]
|
|
1510
|
-
H(t, e) {
|
|
1511
|
-
return p(t.getHours(), e.length);
|
|
1512
|
-
},
|
|
1513
|
-
// Minute
|
|
1514
|
-
m(t, e) {
|
|
1515
|
-
return p(t.getMinutes(), e.length);
|
|
1516
|
-
},
|
|
1517
|
-
// Second
|
|
1518
|
-
s(t, e) {
|
|
1519
|
-
return p(t.getSeconds(), e.length);
|
|
1520
|
-
},
|
|
1521
|
-
// Fraction of second
|
|
1522
|
-
S(t, e) {
|
|
1523
|
-
const n = e.length, r = t.getMilliseconds(), a = Math.trunc(
|
|
1524
|
-
r * Math.pow(10, n - 3)
|
|
1525
|
-
);
|
|
1526
|
-
return p(a, e.length);
|
|
1527
|
-
}
|
|
1528
|
-
}, D = {
|
|
1529
|
-
midnight: "midnight",
|
|
1530
|
-
noon: "noon",
|
|
1531
|
-
morning: "morning",
|
|
1532
|
-
afternoon: "afternoon",
|
|
1533
|
-
evening: "evening",
|
|
1534
|
-
night: "night"
|
|
1535
|
-
}, _t = {
|
|
1536
|
-
// Era
|
|
1537
|
-
G: function(t, e, n) {
|
|
1538
|
-
const r = t.getFullYear() > 0 ? 1 : 0;
|
|
1539
|
-
switch (e) {
|
|
1540
|
-
// AD, BC
|
|
1541
|
-
case "G":
|
|
1542
|
-
case "GG":
|
|
1543
|
-
case "GGG":
|
|
1544
|
-
return n.era(r, { width: "abbreviated" });
|
|
1545
|
-
// A, B
|
|
1546
|
-
case "GGGGG":
|
|
1547
|
-
return n.era(r, { width: "narrow" });
|
|
1548
|
-
default:
|
|
1549
|
-
return n.era(r, { width: "wide" });
|
|
1550
|
-
}
|
|
1551
|
-
},
|
|
1552
|
-
// Year
|
|
1553
|
-
y: function(t, e, n) {
|
|
1554
|
-
if (e === "yo") {
|
|
1555
|
-
const r = t.getFullYear(), a = r > 0 ? r : 1 - r;
|
|
1556
|
-
return n.ordinalNumber(a, { unit: "year" });
|
|
71
|
+
className: b.banner,
|
|
72
|
+
children: /* @__PURE__ */ e.jsx(w, { value: n, components: z })
|
|
1557
73
|
}
|
|
1558
|
-
return M.y(t, e);
|
|
1559
|
-
},
|
|
1560
|
-
// Local week-numbering year
|
|
1561
|
-
Y: function(t, e, n, r) {
|
|
1562
|
-
const a = Gt(t, r), i = a > 0 ? a : 1 - a;
|
|
1563
|
-
if (e === "YY") {
|
|
1564
|
-
const s = i % 100;
|
|
1565
|
-
return p(s, 2);
|
|
1566
|
-
}
|
|
1567
|
-
return e === "Yo" ? n.ordinalNumber(i, { unit: "year" }) : p(i, e.length);
|
|
1568
|
-
},
|
|
1569
|
-
// ISO week-numbering year
|
|
1570
|
-
R: function(t, e) {
|
|
1571
|
-
const n = Qt(t);
|
|
1572
|
-
return p(n, e.length);
|
|
1573
|
-
},
|
|
1574
|
-
// Extended year. This is a single number designating the year of this calendar system.
|
|
1575
|
-
// The main difference between `y` and `u` localizers are B.C. years:
|
|
1576
|
-
// | Year | `y` | `u` |
|
|
1577
|
-
// |------|-----|-----|
|
|
1578
|
-
// | AC 1 | 1 | 1 |
|
|
1579
|
-
// | BC 1 | 1 | 0 |
|
|
1580
|
-
// | BC 2 | 2 | -1 |
|
|
1581
|
-
// Also `yy` always returns the last two digits of a year,
|
|
1582
|
-
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
1583
|
-
u: function(t, e) {
|
|
1584
|
-
const n = t.getFullYear();
|
|
1585
|
-
return p(n, e.length);
|
|
1586
|
-
},
|
|
1587
|
-
// Quarter
|
|
1588
|
-
Q: function(t, e, n) {
|
|
1589
|
-
const r = Math.ceil((t.getMonth() + 1) / 3);
|
|
1590
|
-
switch (e) {
|
|
1591
|
-
// 1, 2, 3, 4
|
|
1592
|
-
case "Q":
|
|
1593
|
-
return String(r);
|
|
1594
|
-
// 01, 02, 03, 04
|
|
1595
|
-
case "QQ":
|
|
1596
|
-
return p(r, 2);
|
|
1597
|
-
// 1st, 2nd, 3rd, 4th
|
|
1598
|
-
case "Qo":
|
|
1599
|
-
return n.ordinalNumber(r, { unit: "quarter" });
|
|
1600
|
-
// Q1, Q2, Q3, Q4
|
|
1601
|
-
case "QQQ":
|
|
1602
|
-
return n.quarter(r, {
|
|
1603
|
-
width: "abbreviated",
|
|
1604
|
-
context: "formatting"
|
|
1605
|
-
});
|
|
1606
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
1607
|
-
case "QQQQQ":
|
|
1608
|
-
return n.quarter(r, {
|
|
1609
|
-
width: "narrow",
|
|
1610
|
-
context: "formatting"
|
|
1611
|
-
});
|
|
1612
|
-
default:
|
|
1613
|
-
return n.quarter(r, {
|
|
1614
|
-
width: "wide",
|
|
1615
|
-
context: "formatting"
|
|
1616
|
-
});
|
|
1617
|
-
}
|
|
1618
|
-
},
|
|
1619
|
-
// Stand-alone quarter
|
|
1620
|
-
q: function(t, e, n) {
|
|
1621
|
-
const r = Math.ceil((t.getMonth() + 1) / 3);
|
|
1622
|
-
switch (e) {
|
|
1623
|
-
// 1, 2, 3, 4
|
|
1624
|
-
case "q":
|
|
1625
|
-
return String(r);
|
|
1626
|
-
// 01, 02, 03, 04
|
|
1627
|
-
case "qq":
|
|
1628
|
-
return p(r, 2);
|
|
1629
|
-
// 1st, 2nd, 3rd, 4th
|
|
1630
|
-
case "qo":
|
|
1631
|
-
return n.ordinalNumber(r, { unit: "quarter" });
|
|
1632
|
-
// Q1, Q2, Q3, Q4
|
|
1633
|
-
case "qqq":
|
|
1634
|
-
return n.quarter(r, {
|
|
1635
|
-
width: "abbreviated",
|
|
1636
|
-
context: "standalone"
|
|
1637
|
-
});
|
|
1638
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
1639
|
-
case "qqqqq":
|
|
1640
|
-
return n.quarter(r, {
|
|
1641
|
-
width: "narrow",
|
|
1642
|
-
context: "standalone"
|
|
1643
|
-
});
|
|
1644
|
-
default:
|
|
1645
|
-
return n.quarter(r, {
|
|
1646
|
-
width: "wide",
|
|
1647
|
-
context: "standalone"
|
|
1648
|
-
});
|
|
1649
|
-
}
|
|
1650
|
-
},
|
|
1651
|
-
// Month
|
|
1652
|
-
M: function(t, e, n) {
|
|
1653
|
-
const r = t.getMonth();
|
|
1654
|
-
switch (e) {
|
|
1655
|
-
case "M":
|
|
1656
|
-
case "MM":
|
|
1657
|
-
return M.M(t, e);
|
|
1658
|
-
// 1st, 2nd, ..., 12th
|
|
1659
|
-
case "Mo":
|
|
1660
|
-
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
1661
|
-
// Jan, Feb, ..., Dec
|
|
1662
|
-
case "MMM":
|
|
1663
|
-
return n.month(r, {
|
|
1664
|
-
width: "abbreviated",
|
|
1665
|
-
context: "formatting"
|
|
1666
|
-
});
|
|
1667
|
-
// J, F, ..., D
|
|
1668
|
-
case "MMMMM":
|
|
1669
|
-
return n.month(r, {
|
|
1670
|
-
width: "narrow",
|
|
1671
|
-
context: "formatting"
|
|
1672
|
-
});
|
|
1673
|
-
default:
|
|
1674
|
-
return n.month(r, { width: "wide", context: "formatting" });
|
|
1675
|
-
}
|
|
1676
|
-
},
|
|
1677
|
-
// Stand-alone month
|
|
1678
|
-
L: function(t, e, n) {
|
|
1679
|
-
const r = t.getMonth();
|
|
1680
|
-
switch (e) {
|
|
1681
|
-
// 1, 2, ..., 12
|
|
1682
|
-
case "L":
|
|
1683
|
-
return String(r + 1);
|
|
1684
|
-
// 01, 02, ..., 12
|
|
1685
|
-
case "LL":
|
|
1686
|
-
return p(r + 1, 2);
|
|
1687
|
-
// 1st, 2nd, ..., 12th
|
|
1688
|
-
case "Lo":
|
|
1689
|
-
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
1690
|
-
// Jan, Feb, ..., Dec
|
|
1691
|
-
case "LLL":
|
|
1692
|
-
return n.month(r, {
|
|
1693
|
-
width: "abbreviated",
|
|
1694
|
-
context: "standalone"
|
|
1695
|
-
});
|
|
1696
|
-
// J, F, ..., D
|
|
1697
|
-
case "LLLLL":
|
|
1698
|
-
return n.month(r, {
|
|
1699
|
-
width: "narrow",
|
|
1700
|
-
context: "standalone"
|
|
1701
|
-
});
|
|
1702
|
-
default:
|
|
1703
|
-
return n.month(r, { width: "wide", context: "standalone" });
|
|
1704
|
-
}
|
|
1705
|
-
},
|
|
1706
|
-
// Local week of year
|
|
1707
|
-
w: function(t, e, n, r) {
|
|
1708
|
-
const a = Kn(t, r);
|
|
1709
|
-
return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : p(a, e.length);
|
|
1710
|
-
},
|
|
1711
|
-
// ISO week of year
|
|
1712
|
-
I: function(t, e, n) {
|
|
1713
|
-
const r = Vn(t);
|
|
1714
|
-
return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : p(r, e.length);
|
|
1715
|
-
},
|
|
1716
|
-
// Day of the month
|
|
1717
|
-
d: function(t, e, n) {
|
|
1718
|
-
return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : M.d(t, e);
|
|
1719
|
-
},
|
|
1720
|
-
// Day of year
|
|
1721
|
-
D: function(t, e, n) {
|
|
1722
|
-
const r = Jn(t);
|
|
1723
|
-
return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : p(r, e.length);
|
|
1724
|
-
},
|
|
1725
|
-
// Day of week
|
|
1726
|
-
E: function(t, e, n) {
|
|
1727
|
-
const r = t.getDay();
|
|
1728
|
-
switch (e) {
|
|
1729
|
-
// Tue
|
|
1730
|
-
case "E":
|
|
1731
|
-
case "EE":
|
|
1732
|
-
case "EEE":
|
|
1733
|
-
return n.day(r, {
|
|
1734
|
-
width: "abbreviated",
|
|
1735
|
-
context: "formatting"
|
|
1736
|
-
});
|
|
1737
|
-
// T
|
|
1738
|
-
case "EEEEE":
|
|
1739
|
-
return n.day(r, {
|
|
1740
|
-
width: "narrow",
|
|
1741
|
-
context: "formatting"
|
|
1742
|
-
});
|
|
1743
|
-
// Tu
|
|
1744
|
-
case "EEEEEE":
|
|
1745
|
-
return n.day(r, {
|
|
1746
|
-
width: "short",
|
|
1747
|
-
context: "formatting"
|
|
1748
|
-
});
|
|
1749
|
-
default:
|
|
1750
|
-
return n.day(r, {
|
|
1751
|
-
width: "wide",
|
|
1752
|
-
context: "formatting"
|
|
1753
|
-
});
|
|
1754
|
-
}
|
|
1755
|
-
},
|
|
1756
|
-
// Local day of week
|
|
1757
|
-
e: function(t, e, n, r) {
|
|
1758
|
-
const a = t.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
|
|
1759
|
-
switch (e) {
|
|
1760
|
-
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
1761
|
-
case "e":
|
|
1762
|
-
return String(i);
|
|
1763
|
-
// Padded numerical value
|
|
1764
|
-
case "ee":
|
|
1765
|
-
return p(i, 2);
|
|
1766
|
-
// 1st, 2nd, ..., 7th
|
|
1767
|
-
case "eo":
|
|
1768
|
-
return n.ordinalNumber(i, { unit: "day" });
|
|
1769
|
-
case "eee":
|
|
1770
|
-
return n.day(a, {
|
|
1771
|
-
width: "abbreviated",
|
|
1772
|
-
context: "formatting"
|
|
1773
|
-
});
|
|
1774
|
-
// T
|
|
1775
|
-
case "eeeee":
|
|
1776
|
-
return n.day(a, {
|
|
1777
|
-
width: "narrow",
|
|
1778
|
-
context: "formatting"
|
|
1779
|
-
});
|
|
1780
|
-
// Tu
|
|
1781
|
-
case "eeeeee":
|
|
1782
|
-
return n.day(a, {
|
|
1783
|
-
width: "short",
|
|
1784
|
-
context: "formatting"
|
|
1785
|
-
});
|
|
1786
|
-
default:
|
|
1787
|
-
return n.day(a, {
|
|
1788
|
-
width: "wide",
|
|
1789
|
-
context: "formatting"
|
|
1790
|
-
});
|
|
1791
|
-
}
|
|
1792
|
-
},
|
|
1793
|
-
// Stand-alone local day of week
|
|
1794
|
-
c: function(t, e, n, r) {
|
|
1795
|
-
const a = t.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
|
|
1796
|
-
switch (e) {
|
|
1797
|
-
// Numerical value (same as in `e`)
|
|
1798
|
-
case "c":
|
|
1799
|
-
return String(i);
|
|
1800
|
-
// Padded numerical value
|
|
1801
|
-
case "cc":
|
|
1802
|
-
return p(i, e.length);
|
|
1803
|
-
// 1st, 2nd, ..., 7th
|
|
1804
|
-
case "co":
|
|
1805
|
-
return n.ordinalNumber(i, { unit: "day" });
|
|
1806
|
-
case "ccc":
|
|
1807
|
-
return n.day(a, {
|
|
1808
|
-
width: "abbreviated",
|
|
1809
|
-
context: "standalone"
|
|
1810
|
-
});
|
|
1811
|
-
// T
|
|
1812
|
-
case "ccccc":
|
|
1813
|
-
return n.day(a, {
|
|
1814
|
-
width: "narrow",
|
|
1815
|
-
context: "standalone"
|
|
1816
|
-
});
|
|
1817
|
-
// Tu
|
|
1818
|
-
case "cccccc":
|
|
1819
|
-
return n.day(a, {
|
|
1820
|
-
width: "short",
|
|
1821
|
-
context: "standalone"
|
|
1822
|
-
});
|
|
1823
|
-
default:
|
|
1824
|
-
return n.day(a, {
|
|
1825
|
-
width: "wide",
|
|
1826
|
-
context: "standalone"
|
|
1827
|
-
});
|
|
1828
|
-
}
|
|
1829
|
-
},
|
|
1830
|
-
// ISO day of week
|
|
1831
|
-
i: function(t, e, n) {
|
|
1832
|
-
const r = t.getDay(), a = r === 0 ? 7 : r;
|
|
1833
|
-
switch (e) {
|
|
1834
|
-
// 2
|
|
1835
|
-
case "i":
|
|
1836
|
-
return String(a);
|
|
1837
|
-
// 02
|
|
1838
|
-
case "ii":
|
|
1839
|
-
return p(a, e.length);
|
|
1840
|
-
// 2nd
|
|
1841
|
-
case "io":
|
|
1842
|
-
return n.ordinalNumber(a, { unit: "day" });
|
|
1843
|
-
// Tue
|
|
1844
|
-
case "iii":
|
|
1845
|
-
return n.day(r, {
|
|
1846
|
-
width: "abbreviated",
|
|
1847
|
-
context: "formatting"
|
|
1848
|
-
});
|
|
1849
|
-
// T
|
|
1850
|
-
case "iiiii":
|
|
1851
|
-
return n.day(r, {
|
|
1852
|
-
width: "narrow",
|
|
1853
|
-
context: "formatting"
|
|
1854
|
-
});
|
|
1855
|
-
// Tu
|
|
1856
|
-
case "iiiiii":
|
|
1857
|
-
return n.day(r, {
|
|
1858
|
-
width: "short",
|
|
1859
|
-
context: "formatting"
|
|
1860
|
-
});
|
|
1861
|
-
default:
|
|
1862
|
-
return n.day(r, {
|
|
1863
|
-
width: "wide",
|
|
1864
|
-
context: "formatting"
|
|
1865
|
-
});
|
|
1866
|
-
}
|
|
1867
|
-
},
|
|
1868
|
-
// AM or PM
|
|
1869
|
-
a: function(t, e, n) {
|
|
1870
|
-
const a = t.getHours() / 12 >= 1 ? "pm" : "am";
|
|
1871
|
-
switch (e) {
|
|
1872
|
-
case "a":
|
|
1873
|
-
case "aa":
|
|
1874
|
-
return n.dayPeriod(a, {
|
|
1875
|
-
width: "abbreviated",
|
|
1876
|
-
context: "formatting"
|
|
1877
|
-
});
|
|
1878
|
-
case "aaa":
|
|
1879
|
-
return n.dayPeriod(a, {
|
|
1880
|
-
width: "abbreviated",
|
|
1881
|
-
context: "formatting"
|
|
1882
|
-
}).toLowerCase();
|
|
1883
|
-
case "aaaaa":
|
|
1884
|
-
return n.dayPeriod(a, {
|
|
1885
|
-
width: "narrow",
|
|
1886
|
-
context: "formatting"
|
|
1887
|
-
});
|
|
1888
|
-
default:
|
|
1889
|
-
return n.dayPeriod(a, {
|
|
1890
|
-
width: "wide",
|
|
1891
|
-
context: "formatting"
|
|
1892
|
-
});
|
|
1893
|
-
}
|
|
1894
|
-
},
|
|
1895
|
-
// AM, PM, midnight, noon
|
|
1896
|
-
b: function(t, e, n) {
|
|
1897
|
-
const r = t.getHours();
|
|
1898
|
-
let a;
|
|
1899
|
-
switch (r === 12 ? a = D.noon : r === 0 ? a = D.midnight : a = r / 12 >= 1 ? "pm" : "am", e) {
|
|
1900
|
-
case "b":
|
|
1901
|
-
case "bb":
|
|
1902
|
-
return n.dayPeriod(a, {
|
|
1903
|
-
width: "abbreviated",
|
|
1904
|
-
context: "formatting"
|
|
1905
|
-
});
|
|
1906
|
-
case "bbb":
|
|
1907
|
-
return n.dayPeriod(a, {
|
|
1908
|
-
width: "abbreviated",
|
|
1909
|
-
context: "formatting"
|
|
1910
|
-
}).toLowerCase();
|
|
1911
|
-
case "bbbbb":
|
|
1912
|
-
return n.dayPeriod(a, {
|
|
1913
|
-
width: "narrow",
|
|
1914
|
-
context: "formatting"
|
|
1915
|
-
});
|
|
1916
|
-
default:
|
|
1917
|
-
return n.dayPeriod(a, {
|
|
1918
|
-
width: "wide",
|
|
1919
|
-
context: "formatting"
|
|
1920
|
-
});
|
|
1921
|
-
}
|
|
1922
|
-
},
|
|
1923
|
-
// in the morning, in the afternoon, in the evening, at night
|
|
1924
|
-
B: function(t, e, n) {
|
|
1925
|
-
const r = t.getHours();
|
|
1926
|
-
let a;
|
|
1927
|
-
switch (r >= 17 ? a = D.evening : r >= 12 ? a = D.afternoon : r >= 4 ? a = D.morning : a = D.night, e) {
|
|
1928
|
-
case "B":
|
|
1929
|
-
case "BB":
|
|
1930
|
-
case "BBB":
|
|
1931
|
-
return n.dayPeriod(a, {
|
|
1932
|
-
width: "abbreviated",
|
|
1933
|
-
context: "formatting"
|
|
1934
|
-
});
|
|
1935
|
-
case "BBBBB":
|
|
1936
|
-
return n.dayPeriod(a, {
|
|
1937
|
-
width: "narrow",
|
|
1938
|
-
context: "formatting"
|
|
1939
|
-
});
|
|
1940
|
-
default:
|
|
1941
|
-
return n.dayPeriod(a, {
|
|
1942
|
-
width: "wide",
|
|
1943
|
-
context: "formatting"
|
|
1944
|
-
});
|
|
1945
|
-
}
|
|
1946
|
-
},
|
|
1947
|
-
// Hour [1-12]
|
|
1948
|
-
h: function(t, e, n) {
|
|
1949
|
-
if (e === "ho") {
|
|
1950
|
-
let r = t.getHours() % 12;
|
|
1951
|
-
return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
|
|
1952
|
-
}
|
|
1953
|
-
return M.h(t, e);
|
|
1954
|
-
},
|
|
1955
|
-
// Hour [0-23]
|
|
1956
|
-
H: function(t, e, n) {
|
|
1957
|
-
return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : M.H(t, e);
|
|
1958
|
-
},
|
|
1959
|
-
// Hour [0-11]
|
|
1960
|
-
K: function(t, e, n) {
|
|
1961
|
-
const r = t.getHours() % 12;
|
|
1962
|
-
return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : p(r, e.length);
|
|
1963
|
-
},
|
|
1964
|
-
// Hour [1-24]
|
|
1965
|
-
k: function(t, e, n) {
|
|
1966
|
-
let r = t.getHours();
|
|
1967
|
-
return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : p(r, e.length);
|
|
1968
|
-
},
|
|
1969
|
-
// Minute
|
|
1970
|
-
m: function(t, e, n) {
|
|
1971
|
-
return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : M.m(t, e);
|
|
1972
|
-
},
|
|
1973
|
-
// Second
|
|
1974
|
-
s: function(t, e, n) {
|
|
1975
|
-
return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : M.s(t, e);
|
|
1976
|
-
},
|
|
1977
|
-
// Fraction of second
|
|
1978
|
-
S: function(t, e) {
|
|
1979
|
-
return M.S(t, e);
|
|
1980
|
-
},
|
|
1981
|
-
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1982
|
-
X: function(t, e, n) {
|
|
1983
|
-
const r = t.getTimezoneOffset();
|
|
1984
|
-
if (r === 0)
|
|
1985
|
-
return "Z";
|
|
1986
|
-
switch (e) {
|
|
1987
|
-
// Hours and optional minutes
|
|
1988
|
-
case "X":
|
|
1989
|
-
return jt(r);
|
|
1990
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
1991
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1992
|
-
// so this token always has the same output as `XX`
|
|
1993
|
-
case "XXXX":
|
|
1994
|
-
case "XX":
|
|
1995
|
-
return P(r);
|
|
1996
|
-
// Hours and minutes with `:` delimiter
|
|
1997
|
-
default:
|
|
1998
|
-
return P(r, ":");
|
|
1999
|
-
}
|
|
2000
|
-
},
|
|
2001
|
-
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
2002
|
-
x: function(t, e, n) {
|
|
2003
|
-
const r = t.getTimezoneOffset();
|
|
2004
|
-
switch (e) {
|
|
2005
|
-
// Hours and optional minutes
|
|
2006
|
-
case "x":
|
|
2007
|
-
return jt(r);
|
|
2008
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
2009
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
2010
|
-
// so this token always has the same output as `xx`
|
|
2011
|
-
case "xxxx":
|
|
2012
|
-
case "xx":
|
|
2013
|
-
return P(r);
|
|
2014
|
-
// Hours and minutes with `:` delimiter
|
|
2015
|
-
default:
|
|
2016
|
-
return P(r, ":");
|
|
2017
|
-
}
|
|
2018
|
-
},
|
|
2019
|
-
// Timezone (GMT)
|
|
2020
|
-
O: function(t, e, n) {
|
|
2021
|
-
const r = t.getTimezoneOffset();
|
|
2022
|
-
switch (e) {
|
|
2023
|
-
// Short
|
|
2024
|
-
case "O":
|
|
2025
|
-
case "OO":
|
|
2026
|
-
case "OOO":
|
|
2027
|
-
return "GMT" + Ot(r, ":");
|
|
2028
|
-
default:
|
|
2029
|
-
return "GMT" + P(r, ":");
|
|
2030
|
-
}
|
|
2031
|
-
},
|
|
2032
|
-
// Timezone (specific non-location)
|
|
2033
|
-
z: function(t, e, n) {
|
|
2034
|
-
const r = t.getTimezoneOffset();
|
|
2035
|
-
switch (e) {
|
|
2036
|
-
// Short
|
|
2037
|
-
case "z":
|
|
2038
|
-
case "zz":
|
|
2039
|
-
case "zzz":
|
|
2040
|
-
return "GMT" + Ot(r, ":");
|
|
2041
|
-
default:
|
|
2042
|
-
return "GMT" + P(r, ":");
|
|
2043
|
-
}
|
|
2044
|
-
},
|
|
2045
|
-
// Seconds timestamp
|
|
2046
|
-
t: function(t, e, n) {
|
|
2047
|
-
const r = Math.trunc(+t / 1e3);
|
|
2048
|
-
return p(r, e.length);
|
|
2049
|
-
},
|
|
2050
|
-
// Milliseconds timestamp
|
|
2051
|
-
T: function(t, e, n) {
|
|
2052
|
-
return p(+t, e.length);
|
|
2053
|
-
}
|
|
2054
|
-
};
|
|
2055
|
-
function Ot(t, e = "") {
|
|
2056
|
-
const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), i = r % 60;
|
|
2057
|
-
return i === 0 ? n + String(a) : n + String(a) + e + p(i, 2);
|
|
2058
|
-
}
|
|
2059
|
-
function jt(t, e) {
|
|
2060
|
-
return t % 60 === 0 ? (t > 0 ? "-" : "+") + p(Math.abs(t) / 60, 2) : P(t, e);
|
|
2061
|
-
}
|
|
2062
|
-
function P(t, e = "") {
|
|
2063
|
-
const n = t > 0 ? "-" : "+", r = Math.abs(t), a = p(Math.trunc(r / 60), 2), i = p(r % 60, 2);
|
|
2064
|
-
return n + a + e + i;
|
|
2065
|
-
}
|
|
2066
|
-
const Mt = (t, e) => {
|
|
2067
|
-
switch (t) {
|
|
2068
|
-
case "P":
|
|
2069
|
-
return e.date({ width: "short" });
|
|
2070
|
-
case "PP":
|
|
2071
|
-
return e.date({ width: "medium" });
|
|
2072
|
-
case "PPP":
|
|
2073
|
-
return e.date({ width: "long" });
|
|
2074
|
-
default:
|
|
2075
|
-
return e.date({ width: "full" });
|
|
2076
|
-
}
|
|
2077
|
-
}, Xt = (t, e) => {
|
|
2078
|
-
switch (t) {
|
|
2079
|
-
case "p":
|
|
2080
|
-
return e.time({ width: "short" });
|
|
2081
|
-
case "pp":
|
|
2082
|
-
return e.time({ width: "medium" });
|
|
2083
|
-
case "ppp":
|
|
2084
|
-
return e.time({ width: "long" });
|
|
2085
|
-
default:
|
|
2086
|
-
return e.time({ width: "full" });
|
|
2087
|
-
}
|
|
2088
|
-
}, Zn = (t, e) => {
|
|
2089
|
-
const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
|
|
2090
|
-
if (!a)
|
|
2091
|
-
return Mt(t, e);
|
|
2092
|
-
let i;
|
|
2093
|
-
switch (r) {
|
|
2094
|
-
case "P":
|
|
2095
|
-
i = e.dateTime({ width: "short" });
|
|
2096
|
-
break;
|
|
2097
|
-
case "PP":
|
|
2098
|
-
i = e.dateTime({ width: "medium" });
|
|
2099
|
-
break;
|
|
2100
|
-
case "PPP":
|
|
2101
|
-
i = e.dateTime({ width: "long" });
|
|
2102
|
-
break;
|
|
2103
|
-
default:
|
|
2104
|
-
i = e.dateTime({ width: "full" });
|
|
2105
|
-
break;
|
|
2106
|
-
}
|
|
2107
|
-
return i.replace("{{date}}", Mt(r, e)).replace("{{time}}", Xt(a, e));
|
|
2108
|
-
}, tr = {
|
|
2109
|
-
p: Xt,
|
|
2110
|
-
P: Zn
|
|
2111
|
-
}, er = /^D+$/, nr = /^Y+$/, rr = ["D", "DD", "YY", "YYYY"];
|
|
2112
|
-
function ar(t) {
|
|
2113
|
-
return er.test(t);
|
|
2114
|
-
}
|
|
2115
|
-
function ir(t) {
|
|
2116
|
-
return nr.test(t);
|
|
2117
|
-
}
|
|
2118
|
-
function sr(t, e, n) {
|
|
2119
|
-
const r = or(t, e, n);
|
|
2120
|
-
if (console.warn(r), rr.includes(t)) throw new RangeError(r);
|
|
2121
|
-
}
|
|
2122
|
-
function or(t, e, n) {
|
|
2123
|
-
const r = t[0] === "Y" ? "years" : "days of the month";
|
|
2124
|
-
return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2125
|
-
}
|
|
2126
|
-
const cr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, ur = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, lr = /^'([^]*?)'?$/, dr = /''/g, hr = /[a-zA-Z]/;
|
|
2127
|
-
function A(t, e, n) {
|
|
2128
|
-
const r = V(), a = r.locale ?? Xn, i = r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, s = r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, c = _(t, n?.in);
|
|
2129
|
-
if (!mn(c))
|
|
2130
|
-
throw new RangeError("Invalid time value");
|
|
2131
|
-
let h = e.match(ur).map((d) => {
|
|
2132
|
-
const u = d[0];
|
|
2133
|
-
if (u === "p" || u === "P") {
|
|
2134
|
-
const l = tr[u];
|
|
2135
|
-
return l(d, a.formatLong);
|
|
2136
|
-
}
|
|
2137
|
-
return d;
|
|
2138
|
-
}).join("").match(cr).map((d) => {
|
|
2139
|
-
if (d === "''")
|
|
2140
|
-
return { isToken: !1, value: "'" };
|
|
2141
|
-
const u = d[0];
|
|
2142
|
-
if (u === "'")
|
|
2143
|
-
return { isToken: !1, value: fr(d) };
|
|
2144
|
-
if (_t[u])
|
|
2145
|
-
return { isToken: !0, value: d };
|
|
2146
|
-
if (u.match(hr))
|
|
2147
|
-
throw new RangeError(
|
|
2148
|
-
"Format string contains an unescaped latin alphabet character `" + u + "`"
|
|
2149
|
-
);
|
|
2150
|
-
return { isToken: !1, value: d };
|
|
2151
|
-
});
|
|
2152
|
-
a.localize.preprocessor && (h = a.localize.preprocessor(c, h));
|
|
2153
|
-
const f = {
|
|
2154
|
-
firstWeekContainsDate: i,
|
|
2155
|
-
weekStartsOn: s,
|
|
2156
|
-
locale: a
|
|
2157
|
-
};
|
|
2158
|
-
return h.map((d) => {
|
|
2159
|
-
if (!d.isToken) return d.value;
|
|
2160
|
-
const u = d.value;
|
|
2161
|
-
(ir(u) || ar(u)) && sr(u, e, String(t));
|
|
2162
|
-
const l = _t[u[0]];
|
|
2163
|
-
return l(c, u, a.localize, f);
|
|
2164
|
-
}).join("");
|
|
2165
|
-
}
|
|
2166
|
-
function fr(t) {
|
|
2167
|
-
const e = t.match(lr);
|
|
2168
|
-
return e ? e[1].replace(dr, "'") : t;
|
|
2169
|
-
}
|
|
2170
|
-
function mr(t, e, n) {
|
|
2171
|
-
const [r, a] = at(
|
|
2172
|
-
n?.in,
|
|
2173
|
-
t,
|
|
2174
|
-
e
|
|
2175
74
|
);
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
75
|
+
}, K = "_bannerContainer_79bac_1", X = "_bannerApp_79bac_8", C = {
|
|
76
|
+
bannerContainer: K,
|
|
77
|
+
bannerApp: X
|
|
78
|
+
}, Z = ({ children: t }) => /* @__PURE__ */ e.jsx("div", { className: C.bannerContainer, children: /* @__PURE__ */ e.jsx("div", { className: C.bannerApp, children: t }) }), V = "_eventCard_1x1as_1", ee = "_eventCardBody_1x1as_12", te = "_image_1x1as_27", ne = "_eventCardTitle_1x1as_33", se = "_eventCardDate_1x1as_40", ae = "_eventCardDescription_1x1as_45", re = "_eventButtons_1x1as_53", oe = "_eventButton_1x1as_53", ce = "_square_1x1as_116", l = {
|
|
79
|
+
eventCard: V,
|
|
80
|
+
eventCardBody: ee,
|
|
81
|
+
image: te,
|
|
82
|
+
eventCardTitle: ne,
|
|
83
|
+
eventCardDate: se,
|
|
84
|
+
eventCardDescription: ae,
|
|
85
|
+
eventButtons: re,
|
|
86
|
+
eventButton: oe,
|
|
87
|
+
square: ce
|
|
88
|
+
}, g = ({
|
|
2189
89
|
name: t,
|
|
2190
|
-
image:
|
|
2191
|
-
imageType:
|
|
2192
|
-
startDate:
|
|
2193
|
-
endDate:
|
|
2194
|
-
shortDescription:
|
|
2195
|
-
buttons:
|
|
2196
|
-
loading:
|
|
2197
|
-
containerStyle:
|
|
90
|
+
image: n,
|
|
91
|
+
imageType: a,
|
|
92
|
+
startDate: o,
|
|
93
|
+
endDate: s,
|
|
94
|
+
shortDescription: r,
|
|
95
|
+
buttons: i,
|
|
96
|
+
loading: u,
|
|
97
|
+
containerStyle: v
|
|
2198
98
|
}) => {
|
|
2199
|
-
const
|
|
2200
|
-
return /* @__PURE__ */
|
|
2201
|
-
|
|
99
|
+
const $ = ie(o, s);
|
|
100
|
+
return /* @__PURE__ */ e.jsx(q, { baseColor: "#dcdcdc", children: /* @__PURE__ */ e.jsxs("div", { className: l.eventCard, style: { ...v }, children: [
|
|
101
|
+
n ? /* @__PURE__ */ e.jsx(
|
|
2202
102
|
"img",
|
|
2203
103
|
{
|
|
2204
|
-
src:
|
|
2205
|
-
className:
|
|
2206
|
-
|
|
2207
|
-
|
|
104
|
+
src: f(n).height(400).url(),
|
|
105
|
+
className: O(
|
|
106
|
+
l.image,
|
|
107
|
+
a === "square" && l.square
|
|
2208
108
|
),
|
|
2209
109
|
crossOrigin: "anonymous",
|
|
2210
110
|
alt: ""
|
|
2211
111
|
}
|
|
2212
|
-
) : /* @__PURE__ */
|
|
2213
|
-
|
|
112
|
+
) : /* @__PURE__ */ e.jsx("div", { className: l.image, children: /* @__PURE__ */ e.jsx(
|
|
113
|
+
d,
|
|
2214
114
|
{
|
|
2215
115
|
height: 400,
|
|
2216
116
|
style: { lineHeight: "normal" }
|
|
2217
117
|
}
|
|
2218
118
|
) }),
|
|
2219
|
-
/* @__PURE__ */
|
|
2220
|
-
/* @__PURE__ */
|
|
2221
|
-
/* @__PURE__ */
|
|
2222
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ e.jsxs("div", { className: l.eventCardBody, children: [
|
|
120
|
+
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
121
|
+
/* @__PURE__ */ e.jsx("h3", { className: l.eventCardTitle, children: t || /* @__PURE__ */ e.jsx(d, {}) }),
|
|
122
|
+
/* @__PURE__ */ e.jsx("div", { className: l.eventCardDate, children: $ || /* @__PURE__ */ e.jsx(d, {}) })
|
|
2223
123
|
] }),
|
|
2224
|
-
/* @__PURE__ */
|
|
2225
|
-
/* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ e.jsx("div", { className: l.eventCardDescription, children: r ? /* @__PURE__ */ e.jsx(w, { value: r }) : /* @__PURE__ */ e.jsx(d, { count: 7 }) }),
|
|
125
|
+
/* @__PURE__ */ e.jsx("div", { className: l.eventButtons, children: i ? i.map(({ url: T, text: M, _key: R }) => /* @__PURE__ */ e.jsx(
|
|
2226
126
|
"a",
|
|
2227
127
|
{
|
|
2228
|
-
href:
|
|
2229
|
-
className:
|
|
2230
|
-
children: /* @__PURE__ */
|
|
128
|
+
href: T,
|
|
129
|
+
className: l.eventButton,
|
|
130
|
+
children: /* @__PURE__ */ e.jsx("div", { children: M })
|
|
2231
131
|
},
|
|
2232
|
-
|
|
2233
|
-
)) :
|
|
132
|
+
R
|
|
133
|
+
)) : u && /* @__PURE__ */ e.jsx(d, { className: l.eventButton }) })
|
|
2234
134
|
] })
|
|
2235
135
|
] }) });
|
|
2236
136
|
};
|
|
2237
|
-
function
|
|
2238
|
-
if (!t || !
|
|
2239
|
-
const
|
|
2240
|
-
return
|
|
137
|
+
function ie(t, n) {
|
|
138
|
+
if (!t || !n) return null;
|
|
139
|
+
const a = new Date(t), o = new Date(n);
|
|
140
|
+
return I(a, o) ? m(a, "MMMM d") : L(a, o) ? m(a, "MMMM d") + " – " + m(o, "d") : m(a, "MMMM d") + " – " + m(o, "MMMM d");
|
|
2241
141
|
}
|
|
2242
|
-
const
|
|
142
|
+
const le = () => /* @__PURE__ */ e.jsxs(
|
|
2243
143
|
"svg",
|
|
2244
144
|
{
|
|
2245
145
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2253,65 +153,65 @@ const jr = () => /* @__PURE__ */ o.jsxs(
|
|
|
2253
153
|
strokeLinejoin: "round",
|
|
2254
154
|
className: "feather feather-calendar",
|
|
2255
155
|
children: [
|
|
2256
|
-
/* @__PURE__ */
|
|
2257
|
-
/* @__PURE__ */
|
|
2258
|
-
/* @__PURE__ */
|
|
2259
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ e.jsx("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }),
|
|
157
|
+
/* @__PURE__ */ e.jsx("line", { x1: "16", y1: "2", x2: "16", y2: "6" }),
|
|
158
|
+
/* @__PURE__ */ e.jsx("line", { x1: "8", y1: "2", x2: "8", y2: "6" }),
|
|
159
|
+
/* @__PURE__ */ e.jsx("line", { x1: "3", y1: "10", x2: "21", y2: "10" })
|
|
2260
160
|
]
|
|
2261
161
|
}
|
|
2262
|
-
),
|
|
2263
|
-
campEventsApp:
|
|
2264
|
-
eventsHeader:
|
|
2265
|
-
calendarButton:
|
|
2266
|
-
eventsContainer:
|
|
2267
|
-
empty:
|
|
2268
|
-
},
|
|
162
|
+
), de = "_campEventsApp_17stc_1", ue = "_eventsHeader_17stc_14", he = "_calendarButton_17stc_30", me = "_eventsContainer_17stc_50", pe = "_empty_17stc_57", p = {
|
|
163
|
+
campEventsApp: de,
|
|
164
|
+
eventsHeader: ue,
|
|
165
|
+
calendarButton: he,
|
|
166
|
+
eventsContainer: me,
|
|
167
|
+
empty: pe
|
|
168
|
+
}, xe = ({
|
|
2269
169
|
events: t,
|
|
2270
|
-
loading:
|
|
2271
|
-
title:
|
|
2272
|
-
showCalendar:
|
|
2273
|
-
}) => /* @__PURE__ */
|
|
2274
|
-
/* @__PURE__ */
|
|
2275
|
-
/* @__PURE__ */
|
|
2276
|
-
|
|
170
|
+
loading: n,
|
|
171
|
+
title: a = "What's going on at Camp?",
|
|
172
|
+
showCalendar: o = !0
|
|
173
|
+
}) => /* @__PURE__ */ e.jsxs("div", { className: p.campEventsApp, children: [
|
|
174
|
+
/* @__PURE__ */ e.jsxs("div", { className: p.eventsHeader, children: [
|
|
175
|
+
/* @__PURE__ */ e.jsx("h1", { children: a }),
|
|
176
|
+
o && /* @__PURE__ */ e.jsxs("a", { className: p.calendarButton, href: "/calendar", children: [
|
|
2277
177
|
"Check out our calendar",
|
|
2278
|
-
/* @__PURE__ */
|
|
178
|
+
/* @__PURE__ */ e.jsx(le, {})
|
|
2279
179
|
] })
|
|
2280
180
|
] }),
|
|
2281
|
-
/* @__PURE__ */
|
|
2282
|
-
/* @__PURE__ */
|
|
2283
|
-
/* @__PURE__ */
|
|
2284
|
-
/* @__PURE__ */
|
|
2285
|
-
] }) : t && t.length > 0 ? t.map((
|
|
2286
|
-
|
|
181
|
+
/* @__PURE__ */ e.jsx("div", { className: p.eventsContainer, children: n ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
182
|
+
/* @__PURE__ */ e.jsx(g, { loading: n }, "loading-1"),
|
|
183
|
+
/* @__PURE__ */ e.jsx(g, { loading: n }, "loading-2"),
|
|
184
|
+
/* @__PURE__ */ e.jsx(g, { loading: n }, "loading-3")
|
|
185
|
+
] }) : t && t.length > 0 ? t.map((s, r) => /* @__PURE__ */ c.createElement(
|
|
186
|
+
g,
|
|
2287
187
|
{
|
|
2288
|
-
...
|
|
2289
|
-
key:
|
|
2290
|
-
loading:
|
|
188
|
+
...s,
|
|
189
|
+
key: r,
|
|
190
|
+
loading: n
|
|
2291
191
|
}
|
|
2292
|
-
)) : /* @__PURE__ */
|
|
2293
|
-
/* @__PURE__ */
|
|
192
|
+
)) : /* @__PURE__ */ e.jsxs("div", { className: p.empty, children: [
|
|
193
|
+
/* @__PURE__ */ e.jsx("img", { src: "https://d2114hmso7dut1.cloudfront.net/customers/096355b6-1a03-11eb-a9c3-0614187498c1/sites/096f9d4e-1a03-11eb-b2dd-0614187498c1/files/67900ba0-5f83-11eb-9222-e3d4d8baf1a9/original/file.png?t=1611630366" }),
|
|
2294
194
|
"No upcoming events. Check back later!"
|
|
2295
195
|
] }) })
|
|
2296
|
-
] }),
|
|
2297
|
-
contentButton:
|
|
196
|
+
] }), _e = "_contentButton_2dk7a_1", ye = "_overlay_2dk7a_40", ge = "_buttonTitle_2dk7a_56", ve = "_buttonSubtitle_2dk7a_57", h = {
|
|
197
|
+
contentButton: _e,
|
|
2298
198
|
"category-image": "_category-image_2dk7a_25",
|
|
2299
|
-
overlay:
|
|
2300
|
-
buttonTitle:
|
|
2301
|
-
buttonSubtitle:
|
|
2302
|
-
},
|
|
199
|
+
overlay: ye,
|
|
200
|
+
buttonTitle: ge,
|
|
201
|
+
buttonSubtitle: ve
|
|
202
|
+
}, je = ({
|
|
2303
203
|
title: t,
|
|
2304
|
-
subtitle:
|
|
2305
|
-
url:
|
|
2306
|
-
imageUrl:
|
|
2307
|
-
loading:
|
|
2308
|
-
}) =>
|
|
204
|
+
subtitle: n,
|
|
205
|
+
url: a,
|
|
206
|
+
imageUrl: o,
|
|
207
|
+
loading: s
|
|
208
|
+
}) => s ? /* @__PURE__ */ e.jsx(
|
|
2309
209
|
"div",
|
|
2310
210
|
{
|
|
2311
|
-
className:
|
|
211
|
+
className: h.contentButton,
|
|
2312
212
|
style: { display: "block" },
|
|
2313
|
-
children: /* @__PURE__ */
|
|
2314
|
-
|
|
213
|
+
children: /* @__PURE__ */ e.jsx(
|
|
214
|
+
d,
|
|
2315
215
|
{
|
|
2316
216
|
height: "100%",
|
|
2317
217
|
width: "100%",
|
|
@@ -2319,155 +219,169 @@ const jr = () => /* @__PURE__ */ o.jsxs(
|
|
|
2319
219
|
}
|
|
2320
220
|
)
|
|
2321
221
|
}
|
|
2322
|
-
) : /* @__PURE__ */
|
|
2323
|
-
/* @__PURE__ */
|
|
222
|
+
) : /* @__PURE__ */ e.jsxs("a", { href: a, className: h.contentButton, children: [
|
|
223
|
+
/* @__PURE__ */ e.jsx(
|
|
2324
224
|
"img",
|
|
2325
225
|
{
|
|
2326
|
-
src:
|
|
226
|
+
src: o,
|
|
2327
227
|
alt: t,
|
|
2328
|
-
className:
|
|
228
|
+
className: h["category-image"]
|
|
2329
229
|
}
|
|
2330
230
|
),
|
|
2331
|
-
/* @__PURE__ */
|
|
2332
|
-
/* @__PURE__ */
|
|
2333
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ e.jsxs("div", { className: h.overlay, children: [
|
|
232
|
+
/* @__PURE__ */ e.jsx("div", { className: h.buttonTitle, children: t }),
|
|
233
|
+
/* @__PURE__ */ e.jsx("div", { className: h.buttonSubtitle, children: n })
|
|
2334
234
|
] })
|
|
2335
|
-
] }),
|
|
2336
|
-
categoryContainer:
|
|
2337
|
-
},
|
|
235
|
+
] }), fe = "_categoryContainer_1yxkk_1", be = {
|
|
236
|
+
categoryContainer: fe
|
|
237
|
+
}, Ce = ({
|
|
2338
238
|
categories: t,
|
|
2339
|
-
loading:
|
|
2340
|
-
}) => /* @__PURE__ */
|
|
2341
|
-
|
|
239
|
+
loading: n
|
|
240
|
+
}) => /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx("div", { className: be.categoryContainer, children: t.length > 0 && t.map((a) => /* @__PURE__ */ e.jsx(
|
|
241
|
+
je,
|
|
2342
242
|
{
|
|
2343
|
-
title:
|
|
2344
|
-
subtitle:
|
|
2345
|
-
url:
|
|
2346
|
-
imageUrl:
|
|
2347
|
-
loading:
|
|
2348
|
-
},
|
|
2349
|
-
|
|
2350
|
-
)) }) }),
|
|
2351
|
-
...
|
|
2352
|
-
imageUrl:
|
|
2353
|
-
})),
|
|
2354
|
-
description:
|
|
2355
|
-
},
|
|
2356
|
-
const { title:
|
|
2357
|
-
return /* @__PURE__ */
|
|
2358
|
-
|
|
2359
|
-
|
|
243
|
+
title: a.title,
|
|
244
|
+
subtitle: a.subtitle,
|
|
245
|
+
url: a.url,
|
|
246
|
+
imageUrl: a.imageUrl,
|
|
247
|
+
loading: n
|
|
248
|
+
},
|
|
249
|
+
a.title
|
|
250
|
+
)) }) }), Ne = (t) => t.map((n) => ({
|
|
251
|
+
...n,
|
|
252
|
+
imageUrl: f(n.image).width(800).url()
|
|
253
|
+
})), Be = "_description_z94kn_1", Ee = {
|
|
254
|
+
description: Be
|
|
255
|
+
}, we = ({ rateDescription: t }) => {
|
|
256
|
+
const { title: n, text: a } = t || {};
|
|
257
|
+
return /* @__PURE__ */ e.jsxs("div", { className: Ee.description, children: [
|
|
258
|
+
n && /* @__PURE__ */ e.jsx("h4", { children: n }),
|
|
259
|
+
a && /* @__PURE__ */ e.jsx("span", { children: a })
|
|
2360
260
|
] });
|
|
2361
|
-
},
|
|
261
|
+
}, j = ({
|
|
2362
262
|
name: t,
|
|
2363
|
-
detail:
|
|
2364
|
-
value:
|
|
2365
|
-
className:
|
|
2366
|
-
}) => /* @__PURE__ */
|
|
2367
|
-
/* @__PURE__ */
|
|
2368
|
-
|
|
2369
|
-
/* @__PURE__ */
|
|
2370
|
-
] }),
|
|
263
|
+
detail: n,
|
|
264
|
+
value: a,
|
|
265
|
+
className: o
|
|
266
|
+
}) => /* @__PURE__ */ e.jsxs("tr", { className: o, children: [
|
|
267
|
+
/* @__PURE__ */ e.jsx("td", { children: t }),
|
|
268
|
+
n && /* @__PURE__ */ e.jsx("td", { children: n }),
|
|
269
|
+
/* @__PURE__ */ e.jsx("td", { children: a })
|
|
270
|
+
] }), N = {
|
|
2371
271
|
"group-title": "_group-title_12ylh_1",
|
|
2372
272
|
"rate-group-child": "_rate-group-child_12ylh_5"
|
|
2373
|
-
},
|
|
2374
|
-
/* @__PURE__ */
|
|
2375
|
-
t.childRates.map((
|
|
2376
|
-
|
|
273
|
+
}, Se = ({ rateGroup: t }) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
274
|
+
/* @__PURE__ */ e.jsx(j, { name: t.name, className: N["group-title"] }),
|
|
275
|
+
t.childRates.map((n) => /* @__PURE__ */ e.jsx(
|
|
276
|
+
j,
|
|
2377
277
|
{
|
|
2378
|
-
name:
|
|
2379
|
-
value:
|
|
2380
|
-
className:
|
|
278
|
+
name: n.name,
|
|
279
|
+
value: n.cost,
|
|
280
|
+
className: N["rate-group-child"]
|
|
2381
281
|
},
|
|
2382
|
-
|
|
282
|
+
n.name
|
|
2383
283
|
))
|
|
2384
|
-
] }),
|
|
284
|
+
] }), B = {
|
|
2385
285
|
"rate-table": "_rate-table_6wuu7_1",
|
|
2386
286
|
"group-title": "_group-title_6wuu7_33"
|
|
2387
|
-
},
|
|
2388
|
-
const { rateTable:
|
|
2389
|
-
if (
|
|
2390
|
-
return
|
|
2391
|
-
detail:
|
|
2392
|
-
...
|
|
2393
|
-
}), /* @__PURE__ */
|
|
2394
|
-
|
|
287
|
+
}, ke = (t) => {
|
|
288
|
+
const { rateTable: n } = t, a = n.some((r) => r._type === "rateGroup"), o = n.some((r) => r._type === "rate" && r.detail), s = n.map((r) => {
|
|
289
|
+
if (r._type === "rate")
|
|
290
|
+
return o && (r = {
|
|
291
|
+
detail: r.detail ?? " ",
|
|
292
|
+
...r
|
|
293
|
+
}), /* @__PURE__ */ e.jsx(
|
|
294
|
+
j,
|
|
2395
295
|
{
|
|
2396
|
-
name:
|
|
2397
|
-
detail:
|
|
2398
|
-
value:
|
|
2399
|
-
className:
|
|
296
|
+
name: r.name,
|
|
297
|
+
detail: r.detail,
|
|
298
|
+
value: r.cost,
|
|
299
|
+
className: a ? B["group-title"] : ""
|
|
2400
300
|
},
|
|
2401
|
-
|
|
301
|
+
r.name
|
|
2402
302
|
);
|
|
2403
|
-
if (
|
|
2404
|
-
return /* @__PURE__ */
|
|
303
|
+
if (r._type === "rateGroup")
|
|
304
|
+
return /* @__PURE__ */ e.jsx(Se, { rateGroup: r }, r.name);
|
|
2405
305
|
});
|
|
2406
|
-
return /* @__PURE__ */
|
|
2407
|
-
},
|
|
306
|
+
return /* @__PURE__ */ e.jsx("table", { className: B["rate-table"], children: /* @__PURE__ */ e.jsx("tbody", { children: s }) });
|
|
307
|
+
}, E = {
|
|
2408
308
|
"rate-card": "_rate-card_i5ys9_1",
|
|
2409
309
|
"rate-card-heading": "_rate-card-heading_i5ys9_13"
|
|
2410
|
-
},
|
|
2411
|
-
const { heading:
|
|
2412
|
-
if (
|
|
2413
|
-
return [...
|
|
310
|
+
}, De = (t) => {
|
|
311
|
+
const { heading: n, rates: a } = t, o = a.reduce((s, r) => {
|
|
312
|
+
if (r._type === "rateDescription")
|
|
313
|
+
return [...s, r];
|
|
2414
314
|
{
|
|
2415
|
-
const
|
|
2416
|
-
return Array.isArray(
|
|
315
|
+
const i = s[s.length - 1];
|
|
316
|
+
return Array.isArray(i) ? (i.push(r), s) : [...s, [r]];
|
|
2417
317
|
}
|
|
2418
318
|
}, []);
|
|
2419
|
-
return /* @__PURE__ */
|
|
2420
|
-
/* @__PURE__ */
|
|
2421
|
-
|
|
319
|
+
return /* @__PURE__ */ e.jsxs("div", { className: E["rate-card"], children: [
|
|
320
|
+
/* @__PURE__ */ e.jsx("div", { className: E["rate-card-heading"], children: /* @__PURE__ */ e.jsx("h3", { children: n }) }),
|
|
321
|
+
o.map((s, r) => Array.isArray(s) ? /* @__PURE__ */ e.jsx(ke, { rateTable: s }, r) : /* @__PURE__ */ e.jsx(we, { rateDescription: s }, r))
|
|
2422
322
|
] });
|
|
2423
|
-
},
|
|
2424
|
-
const [
|
|
2425
|
-
return
|
|
2426
|
-
async function
|
|
2427
|
-
(t === "events" ?
|
|
2428
|
-
}
|
|
2429
|
-
|
|
2430
|
-
}, [t]), /* @__PURE__ */
|
|
2431
|
-
|
|
323
|
+
}, D = ({ type: t }) => {
|
|
324
|
+
const [n, a] = c.useState([]), [o, s] = c.useState(!0);
|
|
325
|
+
return c.useEffect(() => {
|
|
326
|
+
async function r() {
|
|
327
|
+
(t === "events" ? G : J)().then((u) => a(u)).catch((u) => console.log(u)).finally(() => s(!1));
|
|
328
|
+
}
|
|
329
|
+
r();
|
|
330
|
+
}, [t]), /* @__PURE__ */ e.jsx(
|
|
331
|
+
xe,
|
|
2432
332
|
{
|
|
2433
|
-
events:
|
|
2434
|
-
loading:
|
|
333
|
+
events: n,
|
|
334
|
+
loading: o,
|
|
2435
335
|
showCalendar: t === "events",
|
|
2436
336
|
title: t === "events" ? "What's going on at Camp?" : "Upcoming Board Events"
|
|
2437
337
|
}
|
|
2438
338
|
);
|
|
2439
|
-
},
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
},
|
|
339
|
+
}, $e = document.getElementById("camp-events"), Te = x.createRoot($e);
|
|
340
|
+
Te.render(
|
|
341
|
+
/* @__PURE__ */ e.jsx(_.StrictMode, { children: /* @__PURE__ */ e.jsx(D, { type: "events" }) })
|
|
342
|
+
);
|
|
343
|
+
const Me = document.getElementById("board-events"), Re = x.createRoot(Me);
|
|
344
|
+
Re.render(
|
|
345
|
+
/* @__PURE__ */ e.jsx(_.StrictMode, { children: /* @__PURE__ */ e.jsx(D, { type: "board-events" }) })
|
|
346
|
+
);
|
|
347
|
+
const Ae = () => {
|
|
348
|
+
const [t, n] = c.useState([]), [a, o] = c.useState(!0);
|
|
349
|
+
return c.useEffect(() => {
|
|
350
|
+
U().then((s) => n(s)).catch((s) => console.log(s)).finally(() => o(!1));
|
|
351
|
+
}, []), /* @__PURE__ */ e.jsx(Z, { children: t.map((s) => /* @__PURE__ */ c.createElement(Q, { ...s, loading: a, key: s._id })) });
|
|
352
|
+
}, qe = document.getElementById("camp-banners"), Oe = x.createRoot(qe);
|
|
353
|
+
Oe.render(
|
|
354
|
+
/* @__PURE__ */ e.jsx(_.StrictMode, { children: /* @__PURE__ */ e.jsx(Ae, {}) })
|
|
355
|
+
);
|
|
356
|
+
const Ie = () => {
|
|
357
|
+
const [t, n] = c.useState([]), [a, o] = c.useState(!0);
|
|
358
|
+
return c.useEffect(() => {
|
|
359
|
+
F().then(
|
|
360
|
+
(s) => n(Ne(s))
|
|
361
|
+
).catch((s) => console.log(s)).finally(() => o(!1));
|
|
362
|
+
}, []), /* @__PURE__ */ e.jsx(Ce, { categories: t, loading: a });
|
|
363
|
+
}, Le = document.getElementById("camp-categories"), He = x.createRoot(Le);
|
|
364
|
+
He.render(
|
|
365
|
+
/* @__PURE__ */ e.jsx(_.StrictMode, { children: /* @__PURE__ */ e.jsx(Ie, {}) })
|
|
366
|
+
);
|
|
367
|
+
const Pe = {
|
|
2452
368
|
"rates-container": "_rates-container_123ct_1"
|
|
2453
|
-
},
|
|
2454
|
-
const [t,
|
|
2455
|
-
return
|
|
2456
|
-
|
|
2457
|
-
}, []), /* @__PURE__ */
|
|
2458
|
-
|
|
369
|
+
}, Ue = () => {
|
|
370
|
+
const [t, n] = c.useState([]), [a, o] = c.useState(!0);
|
|
371
|
+
return c.useEffect(() => {
|
|
372
|
+
W().then((s) => n(s)).catch((s) => console.log(s)).finally(() => o(!1));
|
|
373
|
+
}, []), /* @__PURE__ */ e.jsx("div", { className: Pe["rates-container"], children: t.map((s) => /* @__PURE__ */ e.jsx(
|
|
374
|
+
De,
|
|
2459
375
|
{
|
|
2460
|
-
heading:
|
|
2461
|
-
rates:
|
|
376
|
+
heading: s.name,
|
|
377
|
+
rates: s.rates
|
|
2462
378
|
},
|
|
2463
|
-
|
|
379
|
+
s.name
|
|
2464
380
|
)) });
|
|
2465
|
-
};
|
|
381
|
+
}, Ge = document.getElementById("camp-rates"), Je = x.createRoot(Ge);
|
|
382
|
+
Je.render(
|
|
383
|
+
/* @__PURE__ */ e.jsx(_.StrictMode, { children: /* @__PURE__ */ e.jsx(Ue, {}) })
|
|
384
|
+
);
|
|
2466
385
|
export {
|
|
2467
|
-
|
|
2468
|
-
ta as C,
|
|
2469
|
-
Kr as E,
|
|
2470
|
-
ea as R,
|
|
2471
|
-
zr as c,
|
|
2472
|
-
o as j
|
|
386
|
+
We as g
|
|
2473
387
|
};
|