@spteck/react-controls-v2 2.4.0 → 2.4.1
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/components/iconButton/IconButtonProps.d.ts +2 -0
- package/dist/index.cjs +28 -28
- package/dist/index.js +910 -781
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -11,44 +11,41 @@ import { ResizeObserver as Sn } from "@juggle/resize-observer";
|
|
|
11
11
|
import { css as H, keyframes as Cn } from "@emotion/css";
|
|
12
12
|
import wn from "embla-carousel-react";
|
|
13
13
|
import { AddRegular as Tn, AlertFilled as En, ArrowCircleUp32Filled as Dn, ArrowCircleUp32Regular as On, ArrowDownFilled as kn, ArrowDownRegular as An, ArrowMoveRegular as jn, ArrowReset24Regular as Mn, ArrowSyncRegular as Nn, ArrowUpFilled as Pn, ArrowUpRegular as Fn, CalculatorRegular as In, CalendarDayFilled as Ln, CalendarDayRegular as Rn, CalendarMonthFilled as zn, CalendarMonthRegular as Bn, CalendarTodayRegular as Vn, CalendarWorkWeekFilled as Hn, CalendarWorkWeekRegular as Un, CheckmarkCircle12Filled as Wn, CheckmarkCircle32Regular as Gn, CheckmarkCircleRegular as Kn, ChevronLeftRegular as qn, ChevronRightRegular as Jn, ClockFilled as Yn, ClockRegular as Xn, CommentRegular as Zn, DataBarVerticalStarRegular as Qn, DeleteRegular as $n, Dismiss24Regular as er, DocumentRegular as tr, EditRegular as nr, ErrorCircle12Filled as rr, ErrorCircleRegular as ir, HistoryRegular as ar, Info32Regular as or, MentionRegular as sr, MoreHorizontalFilled as cr, MoreHorizontalRegular as lr, OpenRegular as ur, PeopleRegular as dr, RecordStopFilled as fr, RecordStopRegular as pr, RenameRegular as mr, SearchRegular as hr, Settings20Filled as gr, Settings20Regular as _r, SettingsRegular as vr, SparkleRegular as yr, TargetRegular as br, Warning12Filled as xr, ZoomIn24Regular as Sr, ZoomOut24Regular as Cr, bundleIcon as wr } from "@fluentui/react-icons";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import Vr from "react-
|
|
23
|
-
import
|
|
24
|
-
import Wr from "
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import _i from "
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
35
|
-
import Oi from "
|
|
36
|
-
import
|
|
14
|
+
import Tr, { createPortal as Er } from "react-dom";
|
|
15
|
+
import { Icon as Dr } from "@iconify/react";
|
|
16
|
+
import { v4 as Or } from "uuid";
|
|
17
|
+
import { Calendar as kr, DateRangeType as Ar } from "@fluentui/react-calendar-compat";
|
|
18
|
+
import { css as jr } from "@emotion/react";
|
|
19
|
+
import { jsx as Mr, jsxs as Nr } from "@emotion/react/jsx-runtime";
|
|
20
|
+
import { DataGrid as Pr, DataGridBody as Fr, DataGridCell as Ir, DataGridHeader as Lr, DataGridHeaderCell as Rr, DataGridRow as zr } from "@fluentui-contrib/react-data-grid-react-window";
|
|
21
|
+
import Br from "react-player";
|
|
22
|
+
import Vr, { Marker as Hr } from "react-map-gl/maplibre";
|
|
23
|
+
import * as Ur from "adaptivecards";
|
|
24
|
+
import { Action as Wr, ActionProperty as Gr, AdaptiveCard as Kr, BoolProperty as qr, CardObjectRegistry as Jr, Choice as Yr, EnumProperty as Xr, ExecuteAction as Zr, GlobalRegistry as Qr, HostConfig as $r, Input as ei, InputTextStyle as ti, NumProperty as ni, OpenUrlAction as ri, SerializableObjectCollectionProperty as ii, SerializationContext as ai, StringProperty as oi, Strings as si, SubmitAction as ci, TimeProperty as li, ValidationEvent as ui, ValueSetProperty as di, Versions as U, generateUniqueId as fi, property as W } from "adaptivecards";
|
|
25
|
+
import { create as pi } from "nano-css";
|
|
26
|
+
import * as mi from "markdown-it";
|
|
27
|
+
import hi from "markdown-it";
|
|
28
|
+
import { createRoot as gi } from "react-dom/client";
|
|
29
|
+
import { ExecuteAction as _i, OpenUrlAction as vi, ShowCardAction as yi, SubmitAction as bi, ToggleVisibilityAction as xi } from "adaptivecards/lib/card-elements";
|
|
30
|
+
import { ActionIconPlacement as Si } from "adaptivecards/lib/enums";
|
|
31
|
+
import { DatePicker as Ci } from "@fluentui/react-datepicker-compat";
|
|
32
|
+
import { TimePicker as wi, formatDateToTimeString as Ti } from "@fluentui/react-timepicker-compat";
|
|
33
|
+
import { Template as Ei } from "adaptivecards-templating";
|
|
34
|
+
import Di from "textarea-caret";
|
|
35
|
+
import { Chat as Oi, ChatMessage as ki, ChatMyMessage as Ai } from "@fluentui-contrib/react-chat";
|
|
36
|
+
import ji from "dompurify";
|
|
37
37
|
import Mi from "mermaid";
|
|
38
38
|
import { Fade as Ni } from "@fluentui/react-motion-components-preview";
|
|
39
|
-
//#region
|
|
40
|
-
var Pi = /* @__PURE__ */
|
|
41
|
-
if (typeof require < "u") return require.apply(this, arguments);
|
|
42
|
-
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
43
|
-
}), Fi = /* @__PURE__ */ function(e) {
|
|
39
|
+
//#region src/constants/EBreakPoints.ts
|
|
40
|
+
var Pi = /* @__PURE__ */ function(e) {
|
|
44
41
|
return e[e.XXXLarge = 1900] = "XXXLarge", e[e.ExtraExtraLarge = 1400] = "ExtraExtraLarge", e[e.ExtraLarge = 1200] = "ExtraLarge", e[e.Large = 992] = "Large", e[e.Medium = 768] = "Medium", e[e.Small = 576] = "Small", e[e.ExtraSmall = 320] = "ExtraSmall", e;
|
|
45
|
-
}({}),
|
|
42
|
+
}({}), Fi = /* @__PURE__ */ function(e) {
|
|
46
43
|
return e.INFO = "info", e.ERROR = "error", e.SUCCESS = "success", e;
|
|
47
|
-
}({}),
|
|
44
|
+
}({}), Ii = E(void 0), Li = ({ context: e, children: t }) => /* @__PURE__ */ F(Ii.Provider, {
|
|
48
45
|
value: e,
|
|
49
46
|
children: t
|
|
50
|
-
}),
|
|
51
|
-
let e =
|
|
47
|
+
}), Ri = () => O(Ii), G = () => {
|
|
48
|
+
let e = Ri()?.loggingProvider;
|
|
52
49
|
return {
|
|
53
50
|
log: (t, r = n.Info, i) => {
|
|
54
51
|
e ? e.log(t, r, i) : console.log(t, i);
|
|
@@ -68,8 +65,8 @@ var Pi = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy <
|
|
|
68
65
|
LogLevel: n,
|
|
69
66
|
ErrorType: S
|
|
70
67
|
};
|
|
71
|
-
},
|
|
72
|
-
let e =
|
|
68
|
+
}, zi = () => {
|
|
69
|
+
let e = Ri()?.graphClient, { warn: t, error: n } = G();
|
|
73
70
|
return {
|
|
74
71
|
getUser: D(async (r) => {
|
|
75
72
|
if (!e) return t("Graph client not available"), null;
|
|
@@ -106,8 +103,8 @@ var Pi = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy <
|
|
|
106
103
|
}, [e]),
|
|
107
104
|
graphClient: e
|
|
108
105
|
};
|
|
109
|
-
},
|
|
110
|
-
let e =
|
|
106
|
+
}, Bi = () => {
|
|
107
|
+
let e = Ri()?.storageProvider, { warn: t, error: n } = G();
|
|
111
108
|
return {
|
|
112
109
|
getCachedData: D(async (r) => {
|
|
113
110
|
if (!e) {
|
|
@@ -155,7 +152,7 @@ var Pi = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy <
|
|
|
155
152
|
}
|
|
156
153
|
}, [e])
|
|
157
154
|
};
|
|
158
|
-
},
|
|
155
|
+
}, Vi = (e, t, n = !0) => {
|
|
159
156
|
let [r, i] = N(!1), a = M(null), o = M(e);
|
|
160
157
|
k(() => {
|
|
161
158
|
o.current = e;
|
|
@@ -174,8 +171,8 @@ var Pi = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy <
|
|
|
174
171
|
stopPolling: c,
|
|
175
172
|
isPolling: r
|
|
176
173
|
};
|
|
177
|
-
},
|
|
178
|
-
let e =
|
|
174
|
+
}, Hi = () => {
|
|
175
|
+
let e = Ri(), t = j(() => Intl.DateTimeFormat().resolvedOptions().timeZone, []);
|
|
179
176
|
return {
|
|
180
177
|
timeZone: t,
|
|
181
178
|
convertToUserTimeZone: (e, n) => te(e, n || t),
|
|
@@ -186,7 +183,7 @@ var Pi = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy <
|
|
|
186
183
|
},
|
|
187
184
|
getUserTimeZone: () => (e?.pageContext?.user?.preferUserTimeZone, t)
|
|
188
185
|
};
|
|
189
|
-
},
|
|
186
|
+
}, Ui = () => {
|
|
190
187
|
let { verbose: e, error: t } = G();
|
|
191
188
|
return { parseSSEResponse: D((n, r = {}) => {
|
|
192
189
|
let { stripMarkdown: i = !0, debug: a = !1 } = r;
|
|
@@ -277,8 +274,8 @@ var Pi = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy <
|
|
|
277
274
|
};
|
|
278
275
|
}
|
|
279
276
|
}, []) };
|
|
280
|
-
},
|
|
281
|
-
let [t, n] = N(""), [r, i] = N(!1), [a, o] = N(null), s = M(null), { parseSSEResponse: c } =
|
|
277
|
+
}, Wi = (e) => {
|
|
278
|
+
let [t, n] = N(""), [r, i] = N(!1), [a, o] = N(null), s = M(null), { parseSSEResponse: c } = Ui(), { warn: l } = G(), u = M(e.conversationId || crypto.randomUUID());
|
|
282
279
|
return {
|
|
283
280
|
response: t,
|
|
284
281
|
isLoading: r,
|
|
@@ -347,11 +344,11 @@ var Pi = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy <
|
|
|
347
344
|
}, []),
|
|
348
345
|
conversationId: u.current
|
|
349
346
|
};
|
|
350
|
-
},
|
|
351
|
-
function
|
|
347
|
+
}, Gi = /* @__PURE__ */ new Set();
|
|
348
|
+
function Ki(e) {
|
|
352
349
|
e.fontFaces.forEach((t) => {
|
|
353
350
|
let n = `${e.name}|${t.fontWeight}|${t.fontStyle}`;
|
|
354
|
-
if (
|
|
351
|
+
if (Gi.has(n)) return;
|
|
355
352
|
let r = t.url.split(".").pop()?.split("?")[0]?.toLowerCase(), i = r && {
|
|
356
353
|
woff2: "woff2",
|
|
357
354
|
woff: "woff",
|
|
@@ -365,22 +362,22 @@ function qi(e) {
|
|
|
365
362
|
font-style: ${t.fontStyle};
|
|
366
363
|
font-display: swap;
|
|
367
364
|
}`, o = document.createElement("style");
|
|
368
|
-
o.setAttribute("data-brand-font", e.name), o.textContent = a, document.head.appendChild(o),
|
|
365
|
+
o.setAttribute("data-brand-font", e.name), o.textContent = a, document.head.appendChild(o), Gi.add(n);
|
|
369
366
|
});
|
|
370
367
|
}
|
|
371
|
-
function
|
|
368
|
+
function qi(e) {
|
|
372
369
|
if (e) {
|
|
373
370
|
if (e.d) return e.d;
|
|
374
371
|
if (e.BrandFontLibraryUrl || e.SiteUrl) return e;
|
|
375
372
|
}
|
|
376
373
|
}
|
|
377
|
-
var
|
|
374
|
+
var Ji = new Set([
|
|
378
375
|
"woff2",
|
|
379
376
|
"woff",
|
|
380
377
|
"ttf",
|
|
381
378
|
"otf",
|
|
382
379
|
"eot"
|
|
383
|
-
]),
|
|
380
|
+
]), Yi = {
|
|
384
381
|
thin: 100,
|
|
385
382
|
hairline: 100,
|
|
386
383
|
extralight: 200,
|
|
@@ -397,10 +394,10 @@ var Yi = new Set([
|
|
|
397
394
|
black: 900,
|
|
398
395
|
heavy: 900
|
|
399
396
|
};
|
|
400
|
-
function
|
|
401
|
-
let n = (e?.trim() || t.replace(/\.[^.]+$/, "")).toLowerCase(), r = n.includes("italic") || n.includes("oblique"), i = n.replace(/italic|oblique/gi, "").trim().replace(/[\s_-]+/g, ""), a =
|
|
397
|
+
function Xi(e, t) {
|
|
398
|
+
let n = (e?.trim() || t.replace(/\.[^.]+$/, "")).toLowerCase(), r = n.includes("italic") || n.includes("oblique"), i = n.replace(/italic|oblique/gi, "").trim().replace(/[\s_-]+/g, ""), a = Yi[i] ?? 400;
|
|
402
399
|
if (a === 400 && i !== "regular" && i !== "normal" && i !== "") {
|
|
403
|
-
for (let [e, t] of Object.entries(
|
|
400
|
+
for (let [e, t] of Object.entries(Yi)) if (i.includes(e)) {
|
|
404
401
|
a = t;
|
|
405
402
|
break;
|
|
406
403
|
}
|
|
@@ -410,7 +407,7 @@ function Zi(e, t) {
|
|
|
410
407
|
fontStyle: r ? "italic" : "normal"
|
|
411
408
|
};
|
|
412
409
|
}
|
|
413
|
-
var
|
|
410
|
+
var Zi = "_SPFontFamilyName", Qi = "_SPFontFaces", $i = "_spFontVisible", ea = [
|
|
414
411
|
{
|
|
415
412
|
id: "fluent-base",
|
|
416
413
|
name: "'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",
|
|
@@ -429,8 +426,8 @@ var Qi = "_SPFontFamilyName", $i = "_SPFontFaces", ea = "_spFontVisible", ta = [
|
|
|
429
426
|
isDefault: !1,
|
|
430
427
|
fontFaces: []
|
|
431
428
|
}
|
|
432
|
-
],
|
|
433
|
-
let { siteUrl: t, disabled: n, fonts: r } = e, i =
|
|
429
|
+
], ta = (e = {}) => {
|
|
430
|
+
let { siteUrl: t, disabled: n, fonts: r } = e, i = Ri(), { warn: a, error: o } = G(), [s, c] = N(r ?? []), [l, u] = N(!n && !r), [d, f] = N(), [p, m] = N(!1), h = M(!1), g = D(async () => {
|
|
434
431
|
if (n) return;
|
|
435
432
|
let e = t ?? i?.pageContext?.web?.absoluteUrl;
|
|
436
433
|
if (!e) {
|
|
@@ -450,16 +447,16 @@ var Qi = "_SPFontFamilyName", $i = "_SPFontFaces", ea = "_spFontVisible", ta = [
|
|
|
450
447
|
});
|
|
451
448
|
if (!r.ok) throw Error(`SharePoint REST returned ${r.status}: ${t}`);
|
|
452
449
|
return await r.json();
|
|
453
|
-
}, r =
|
|
450
|
+
}, r = qi(await n(t)), o = r?.BrandFontLibraryUrl, s = typeof o == "string" ? o : o?.DecodedUrl, l = r?.IsBrandCenterSiteFeatureEnabled === !0 || String(r?.IsBrandCenterSiteFeatureEnabled).toLowerCase() === "true";
|
|
454
451
|
if (!s || !l) {
|
|
455
|
-
a("useBrandCenterFonts: Brand Center is not configured for this tenant — using Fluent UI 9 defaults."), m(!1), c(
|
|
452
|
+
a("useBrandCenterFonts: Brand Center is not configured for this tenant — using Fluent UI 9 defaults."), m(!1), c(ea), u(!1);
|
|
456
453
|
return;
|
|
457
454
|
}
|
|
458
|
-
let d = r?.SiteUrl, f = typeof d == "string" ? d : d?.DecodedUrl ?? e, p = new URL(f).origin, h = s.startsWith("http") ? new URL(s).pathname : s, g = await n(`${f}/_api/web/GetList('${encodeURIComponent(h)}')/items?$select=Id,FileLeafRef,FileRef,${Qi},${$i}
|
|
455
|
+
let d = r?.SiteUrl, f = typeof d == "string" ? d : d?.DecodedUrl ?? e, p = new URL(f).origin, h = s.startsWith("http") ? new URL(s).pathname : s, g = await n(`${f}/_api/web/GetList('${encodeURIComponent(h)}')/items?$select=Id,FileLeafRef,FileRef,${Zi},${Qi},${$i},File/Name,File/ServerRelativeUrl&$expand=File&$top=5000`), _ = g.d?.results ?? g.value ?? [], v = /* @__PURE__ */ new Map();
|
|
459
456
|
for (let e of _) {
|
|
460
457
|
let t = e.File?.Name ?? e.FileLeafRef ?? "", n = t.split(".").pop()?.toLowerCase() ?? "";
|
|
461
|
-
if (!
|
|
462
|
-
let r = e[
|
|
458
|
+
if (!Ji.has(n) || e[$i] === !1) continue;
|
|
459
|
+
let r = e[Zi] ?? t.replace(/\.[^.]+$/, "").split(/[-_]/)[0] ?? t, i = v.get(r);
|
|
463
460
|
i ? i.items.push(e) : v.set(r, { items: [e] });
|
|
464
461
|
}
|
|
465
462
|
let y = [];
|
|
@@ -468,7 +465,7 @@ var Qi = "_SPFontFamilyName", $i = "_SPFontFaces", ea = "_spFontVisible", ta = [
|
|
|
468
465
|
for (let e of t.items) {
|
|
469
466
|
let t = e.File?.Name ?? e.FileLeafRef ?? "", r = e.File?.ServerRelativeUrl ?? e.FileRef ?? "";
|
|
470
467
|
if (!r) continue;
|
|
471
|
-
let i = e[
|
|
468
|
+
let i = e[Qi], { fontWeight: a, fontStyle: o } = Xi(i, t), s = `${p}${r}`;
|
|
472
469
|
n.push({
|
|
473
470
|
url: s,
|
|
474
471
|
fontWeight: a,
|
|
@@ -482,10 +479,10 @@ var Qi = "_SPFontFamilyName", $i = "_SPFontFaces", ea = "_spFontVisible", ta = [
|
|
|
482
479
|
fontFaces: n
|
|
483
480
|
});
|
|
484
481
|
}
|
|
485
|
-
y.length > 0 && !y.some((e) => e.isDefault) && (y[0].isDefault = !0), y.forEach(
|
|
482
|
+
y.length > 0 && !y.some((e) => e.isDefault) && (y[0].isDefault = !0), y.forEach(Ki), c(y), m(!0);
|
|
486
483
|
} catch (e) {
|
|
487
484
|
let t = e instanceof Error ? e.message : String(e);
|
|
488
|
-
o("useBrandCenterFonts: failed to load fonts — falling back to Fluent UI 9 defaults", e instanceof Error ? e : void 0), f(t), m(!1), c(
|
|
485
|
+
o("useBrandCenterFonts: failed to load fonts — falling back to Fluent UI 9 defaults", e instanceof Error ? e : void 0), f(t), m(!1), c(ea);
|
|
489
486
|
} finally {
|
|
490
487
|
u(!1);
|
|
491
488
|
}
|
|
@@ -498,7 +495,7 @@ var Qi = "_SPFontFamilyName", $i = "_SPFontFaces", ea = "_spFontVisible", ta = [
|
|
|
498
495
|
]);
|
|
499
496
|
k(() => {
|
|
500
497
|
if (r) {
|
|
501
|
-
r.forEach(
|
|
498
|
+
r.forEach(Ki);
|
|
502
499
|
return;
|
|
503
500
|
}
|
|
504
501
|
!h.current && !n && (h.current = !0, g());
|
|
@@ -517,7 +514,7 @@ var Qi = "_SPFontFamilyName", $i = "_SPFontFaces", ea = "_spFontVisible", ta = [
|
|
|
517
514
|
isBrandCenterAvailable: p,
|
|
518
515
|
refresh: g
|
|
519
516
|
};
|
|
520
|
-
},
|
|
517
|
+
}, na = () => {
|
|
521
518
|
let e = w.useCallback((e, t) => `${e}${t}`, []), t = w.useCallback((e) => {
|
|
522
519
|
if (!e) return !1;
|
|
523
520
|
try {
|
|
@@ -539,7 +536,7 @@ var Qi = "_SPFontFamilyName", $i = "_SPFontFaces", ea = "_spFontVisible", ta = [
|
|
|
539
536
|
}, []), o = w.useCallback((e) => {
|
|
540
537
|
let t = e.split(window.location.hostname)[1];
|
|
541
538
|
return t = n(t), t;
|
|
542
|
-
}, []), s = w.useCallback((e) => encodeURIComponent(e.replace(/[%]/g, "%25")).replace(/[']/g, "%27%27").replace(/[&]/g, "%26").replace(/[#]/g, "%23").replace(/[?]/g, "%3F").replace(/[/]/g, "%2F").replace(/[+]/g, "%2B"), []), c = w.useCallback((e) => e == null ? !1 : Object.prototype.hasOwnProperty.call(e, "extraSmall") || Object.prototype.hasOwnProperty.call(e, "small") || Object.prototype.hasOwnProperty.call(e, "medium") || Object.prototype.hasOwnProperty.call(e, "large") || Object.prototype.hasOwnProperty.call(e, "extraLarge"), []), l = w.useCallback((e, t) => e[t.toString().toLowerCase()], []), u = w.useCallback((e) => e >=
|
|
539
|
+
}, []), s = w.useCallback((e) => encodeURIComponent(e.replace(/[%]/g, "%25")).replace(/[']/g, "%27%27").replace(/[&]/g, "%26").replace(/[#]/g, "%23").replace(/[?]/g, "%3F").replace(/[/]/g, "%2F").replace(/[+]/g, "%2B"), []), c = w.useCallback((e) => e == null ? !1 : Object.prototype.hasOwnProperty.call(e, "extraSmall") || Object.prototype.hasOwnProperty.call(e, "small") || Object.prototype.hasOwnProperty.call(e, "medium") || Object.prototype.hasOwnProperty.call(e, "large") || Object.prototype.hasOwnProperty.call(e, "extraLarge"), []), l = w.useCallback((e, t) => e[t.toString().toLowerCase()], []), u = w.useCallback((e) => e >= Pi.XXXLarge ? "XXXLarge" : e >= Pi.ExtraExtraLarge ? "ExtraExtraLarge" : e >= Pi.ExtraLarge ? "ExtraLarge" : e >= Number(Pi.Large) ? "Large" : e >= Number(Pi.Medium) ? "Medium" : e >= Number(Pi.Small) ? "Small" : "ExtraSmall", []), d = w.useCallback((e, t) => {
|
|
543
540
|
let n = u(t), r = {
|
|
544
541
|
ExtraSmall: "xs",
|
|
545
542
|
Small: "s",
|
|
@@ -619,7 +616,7 @@ var Qi = "_SPFontFamilyName", $i = "_SPFontFaces", ea = "_spFontVisible", ta = [
|
|
|
619
616
|
l
|
|
620
617
|
])
|
|
621
618
|
};
|
|
622
|
-
},
|
|
619
|
+
}, ra = {
|
|
623
620
|
"en-US": fn,
|
|
624
621
|
"es-ES": pn,
|
|
625
622
|
"fr-FR": mn,
|
|
@@ -630,8 +627,8 @@ var Qi = "_SPFontFamilyName", $i = "_SPFontFaces", ea = "_spFontVisible", ta = [
|
|
|
630
627
|
"ja-JP": gn,
|
|
631
628
|
"ko-KR": _n,
|
|
632
629
|
"zh-CN": yn
|
|
633
|
-
},
|
|
634
|
-
let n = t &&
|
|
630
|
+
}, ia = (e, t) => {
|
|
631
|
+
let n = t && ra[t] || fn, { error: r } = G();
|
|
635
632
|
return {
|
|
636
633
|
getFormatRelative: (e) => {
|
|
637
634
|
try {
|
|
@@ -668,8 +665,8 @@ var Qi = "_SPFontFamilyName", $i = "_SPFontFaces", ea = "_spFontVisible", ta = [
|
|
|
668
665
|
}
|
|
669
666
|
}
|
|
670
667
|
};
|
|
671
|
-
},
|
|
672
|
-
let { getFormatRelative: r, formatDate: i } =
|
|
668
|
+
}, aa = (e, t, n) => {
|
|
669
|
+
let { getFormatRelative: r, formatDate: i } = ia(t, e);
|
|
673
670
|
return {
|
|
674
671
|
formatUtcDate: (e, t = "PP") => {
|
|
675
672
|
let n = $t(/* @__PURE__ */ new Date(), sn(e)), a = "";
|
|
@@ -712,7 +709,7 @@ var Qi = "_SPFontFamilyName", $i = "_SPFontFaces", ea = "_spFontVisible", ta = [
|
|
|
712
709
|
return new Date(d);
|
|
713
710
|
}
|
|
714
711
|
};
|
|
715
|
-
},
|
|
712
|
+
}, oa = process.env.NODE_ENV !== "production", sa = "data:image/", ca = () => {
|
|
716
713
|
let { error: e } = G(), t = D(async (e) => {
|
|
717
714
|
let t = await fetch(e).then((e) => e.text());
|
|
718
715
|
return "data:image/svg+xml;base64," + btoa(t);
|
|
@@ -725,19 +722,19 @@ var Qi = "_SPFontFamilyName", $i = "_SPFontFaces", ea = "_spFontVisible", ta = [
|
|
|
725
722
|
try {
|
|
726
723
|
s = t.toDataURL("image/png", 1), i(s);
|
|
727
724
|
} catch (t) {
|
|
728
|
-
|
|
725
|
+
oa && e(`[ImageService.getBase64Image]: Err='${t.message}'`), a(t);
|
|
729
726
|
}
|
|
730
727
|
}), o.addEventListener("error", (t) => {
|
|
731
|
-
|
|
728
|
+
oa && e(`[ImageService.getBase64Image]: Image load error='${t.message}'`), a(t);
|
|
732
729
|
}), o.src = t;
|
|
733
|
-
}), []), r = D((e) => !xn(e) && e.indexOf(
|
|
730
|
+
}), []), r = D((e) => !xn(e) && e.indexOf(sa) >= 0, []);
|
|
734
731
|
return {
|
|
735
732
|
getBase64ImageFromDOMImg: D((t) => {
|
|
736
733
|
try {
|
|
737
734
|
let e = document.getElementById(t), n = document.createElement("canvas");
|
|
738
735
|
return n.width = e.width, n.height = e.height, n.getContext("2d")?.drawImage(e, 0, 0), n.toDataURL("image/png");
|
|
739
736
|
} catch (t) {
|
|
740
|
-
|
|
737
|
+
oa && e(`[getBase64ImageFromDOMImg]: Err='${t.message}'`);
|
|
741
738
|
return;
|
|
742
739
|
}
|
|
743
740
|
}, []),
|
|
@@ -748,7 +745,7 @@ var Qi = "_SPFontFamilyName", $i = "_SPFontFaces", ea = "_spFontVisible", ta = [
|
|
|
748
745
|
};
|
|
749
746
|
//#endregion
|
|
750
747
|
//#region src/utils/lodash.ts
|
|
751
|
-
function
|
|
748
|
+
function la(e, t = 0) {
|
|
752
749
|
let n = null;
|
|
753
750
|
return function(...r) {
|
|
754
751
|
let i = this;
|
|
@@ -757,7 +754,7 @@ function ua(e, t = 0) {
|
|
|
757
754
|
}, t);
|
|
758
755
|
};
|
|
759
756
|
}
|
|
760
|
-
function
|
|
757
|
+
function ua(e, t = 0) {
|
|
761
758
|
let n = null, r = 0;
|
|
762
759
|
return function(...i) {
|
|
763
760
|
let a = this, o = Date.now();
|
|
@@ -768,21 +765,21 @@ function da(e, t = 0) {
|
|
|
768
765
|
}, s);
|
|
769
766
|
};
|
|
770
767
|
}
|
|
771
|
-
function
|
|
768
|
+
function da(e) {
|
|
772
769
|
if (typeof e != "object" || !e) return e;
|
|
773
770
|
if (e instanceof Date) return new Date(e.getTime());
|
|
774
|
-
if (e instanceof Array) return e.map((e) =>
|
|
771
|
+
if (e instanceof Array) return e.map((e) => da(e));
|
|
775
772
|
if (e instanceof Object) {
|
|
776
773
|
let t = {};
|
|
777
|
-
for (let n in e) e.hasOwnProperty(n) && (t[n] =
|
|
774
|
+
for (let n in e) e.hasOwnProperty(n) && (t[n] = da(e[n]));
|
|
778
775
|
return t;
|
|
779
776
|
}
|
|
780
777
|
return e;
|
|
781
778
|
}
|
|
782
|
-
function
|
|
779
|
+
function fa(e) {
|
|
783
780
|
return e == null ? !0 : typeof e == "string" || Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1;
|
|
784
781
|
}
|
|
785
|
-
function
|
|
782
|
+
function pa(e, t, n) {
|
|
786
783
|
let r = Array.isArray(t) ? t : t.split("."), i = e;
|
|
787
784
|
for (let e of r) {
|
|
788
785
|
if (i == null) return n;
|
|
@@ -790,60 +787,60 @@ function ma(e, t, n) {
|
|
|
790
787
|
}
|
|
791
788
|
return i === void 0 ? n : i;
|
|
792
789
|
}
|
|
793
|
-
function
|
|
790
|
+
function ma(e, t, n) {
|
|
794
791
|
let r = Array.isArray(t) ? t : t.split("."), i = r.pop();
|
|
795
792
|
if (!i) return e;
|
|
796
793
|
let a = e;
|
|
797
794
|
for (let e of r) (!(e in a) || typeof a[e] != "object") && (a[e] = {}), a = a[e];
|
|
798
795
|
return a[i] = n, e;
|
|
799
796
|
}
|
|
800
|
-
function
|
|
797
|
+
function ha(e) {
|
|
801
798
|
return Array.from(new Set(e));
|
|
802
799
|
}
|
|
803
|
-
function
|
|
800
|
+
function ga(e, t) {
|
|
804
801
|
let n = /* @__PURE__ */ new Set();
|
|
805
802
|
return e.filter((e) => {
|
|
806
803
|
let r = t(e);
|
|
807
804
|
return n.has(r) ? !1 : (n.add(r), !0);
|
|
808
805
|
});
|
|
809
806
|
}
|
|
810
|
-
function
|
|
807
|
+
function _a(e, t) {
|
|
811
808
|
return e.reduce((e, n) => {
|
|
812
809
|
let r = String(t(n));
|
|
813
810
|
return e[r] || (e[r] = []), e[r].push(n), e;
|
|
814
811
|
}, {});
|
|
815
812
|
}
|
|
816
|
-
function
|
|
813
|
+
function va(e, t) {
|
|
817
814
|
return e.map(t);
|
|
818
815
|
}
|
|
819
|
-
function
|
|
816
|
+
function ya(e, t) {
|
|
820
817
|
return e.filter(t);
|
|
821
818
|
}
|
|
822
|
-
function
|
|
819
|
+
function ba(e, t) {
|
|
823
820
|
return e.some(t);
|
|
824
821
|
}
|
|
825
|
-
function
|
|
822
|
+
function xa(e, t) {
|
|
826
823
|
return e.every(t);
|
|
827
824
|
}
|
|
828
825
|
//#endregion
|
|
829
826
|
//#region src/utils/contentDetector.ts
|
|
830
|
-
var
|
|
827
|
+
var Sa = /* @__PURE__ */ function(e) {
|
|
831
828
|
return e.HTML = "html", e.MARKDOWN = "markdown", e.ADAPTIVE_CARD = "adaptiveCard", e.PLAIN_TEXT = "plainText", e;
|
|
832
|
-
}({}),
|
|
829
|
+
}({}), Ca = (e) => {
|
|
833
830
|
try {
|
|
834
831
|
let t = JSON.parse(e);
|
|
835
832
|
return typeof t == "object" && !!t;
|
|
836
833
|
} catch {
|
|
837
834
|
return !1;
|
|
838
835
|
}
|
|
839
|
-
},
|
|
836
|
+
}, wa = (e) => {
|
|
840
837
|
try {
|
|
841
838
|
let t = JSON.parse(e);
|
|
842
839
|
return t && typeof t == "object" && (t.type === "AdaptiveCard" || t.$schema?.includes("adaptivecards.io"));
|
|
843
840
|
} catch {
|
|
844
841
|
return !1;
|
|
845
842
|
}
|
|
846
|
-
},
|
|
843
|
+
}, Ta = (e) => {
|
|
847
844
|
let t = e.trim(), n = [
|
|
848
845
|
/^<!DOCTYPE\s+html/i,
|
|
849
846
|
/^<html[\s>]/i,
|
|
@@ -851,7 +848,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
851
848
|
/<(div|span|p|h[1-6]|table|ul|ol|li|a|img|br|hr|strong|em|b|i)[\s>]/i
|
|
852
849
|
], r = /<[^>]+>/.test(t), i = /^<[^>]+>/.test(t), a = (t.match(/<(?!\/)[^>]+>/g) || []).length;
|
|
853
850
|
return n.some((e) => e.test(t)) || r && i && a > 0;
|
|
854
|
-
},
|
|
851
|
+
}, Ea = (e) => {
|
|
855
852
|
let t = e.trim(), n = [
|
|
856
853
|
/^#{1,6}\s+.+$/m,
|
|
857
854
|
/\*\*.*?\*\*/,
|
|
@@ -868,14 +865,14 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
868
865
|
/^\s*---\s*$/m
|
|
869
866
|
].some((e) => e.test(t)), r = /^<[^>]+>/.test(t);
|
|
870
867
|
return n && !r;
|
|
871
|
-
},
|
|
868
|
+
}, Da = (e, t, n = !1) => {
|
|
872
869
|
let r = t.filter((t) => t.test(e)).length / t.length;
|
|
873
870
|
return n ? 1 - r : r;
|
|
874
|
-
},
|
|
871
|
+
}, Oa = (e) => {
|
|
875
872
|
if (typeof e == "object" && e) {
|
|
876
873
|
let t = e;
|
|
877
874
|
if (t.type === "AdaptiveCard" || t.$schema?.includes("adaptivecards.io")) return {
|
|
878
|
-
type:
|
|
875
|
+
type: Sa.ADAPTIVE_CARD,
|
|
879
876
|
content: e,
|
|
880
877
|
confidence: 1
|
|
881
878
|
};
|
|
@@ -883,29 +880,29 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
883
880
|
}
|
|
884
881
|
let t = e, n = t.trim();
|
|
885
882
|
if (!n || n.length < 3) return {
|
|
886
|
-
type:
|
|
883
|
+
type: Sa.PLAIN_TEXT,
|
|
887
884
|
content: t,
|
|
888
885
|
confidence: 1
|
|
889
886
|
};
|
|
890
|
-
if (
|
|
891
|
-
type:
|
|
887
|
+
if (Ca(n) && wa(n)) return {
|
|
888
|
+
type: Sa.ADAPTIVE_CARD,
|
|
892
889
|
content: JSON.parse(n),
|
|
893
890
|
confidence: 1
|
|
894
891
|
};
|
|
895
|
-
if (
|
|
896
|
-
let e = Math.max(.7,
|
|
892
|
+
if (Ta(n)) {
|
|
893
|
+
let e = Math.max(.7, Da(n, [
|
|
897
894
|
/^<!DOCTYPE\s+html/i,
|
|
898
895
|
/^<html[\s>]/i,
|
|
899
896
|
/<(div|span|p|h[1-6]|table|ul|ol|li)[\s>]/i
|
|
900
897
|
]));
|
|
901
898
|
return {
|
|
902
|
-
type:
|
|
899
|
+
type: Sa.HTML,
|
|
903
900
|
content: t,
|
|
904
901
|
confidence: e
|
|
905
902
|
};
|
|
906
903
|
}
|
|
907
|
-
if (
|
|
908
|
-
let e = Math.max(.6,
|
|
904
|
+
if (Ea(n)) {
|
|
905
|
+
let e = Math.max(.6, Da(n, [
|
|
909
906
|
/^#{1,6}\s+.+$/m,
|
|
910
907
|
/\*\*.*?\*\*/,
|
|
911
908
|
/\[.*?\]\(.*?\)/,
|
|
@@ -915,18 +912,18 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
915
912
|
/^\|.*\|.*\|$/m
|
|
916
913
|
]));
|
|
917
914
|
return {
|
|
918
|
-
type:
|
|
915
|
+
type: Sa.MARKDOWN,
|
|
919
916
|
content: t,
|
|
920
917
|
confidence: e
|
|
921
918
|
};
|
|
922
919
|
}
|
|
923
920
|
return {
|
|
924
|
-
type:
|
|
921
|
+
type: Sa.PLAIN_TEXT,
|
|
925
922
|
content: t,
|
|
926
923
|
confidence: .5
|
|
927
924
|
};
|
|
928
|
-
},
|
|
929
|
-
let { styles: t } = e, { getBaseStyles: n } =
|
|
925
|
+
}, ka = (e) => Oa(e).type, Aa = (e) => {
|
|
926
|
+
let { styles: t } = e, { getBaseStyles: n } = na();
|
|
930
927
|
return {
|
|
931
928
|
cardStyles: w.useCallback((r, i) => ({
|
|
932
929
|
...n(e, r, i),
|
|
@@ -944,8 +941,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
944
941
|
overflow: "unset"
|
|
945
942
|
}), [])
|
|
946
943
|
};
|
|
947
|
-
},
|
|
948
|
-
let { className: t, cardBody: n, cardBodyClassName: r, cardHeader: i, cardHeaderClassName: a, cardHeaderImage: o, cardHeaderAction: s, cardHeaderDescription: c, cardFooterAction: l, cardFooterClassName: u, cardFooterContent: d, cardPreviewImage: f, cardPreviewLogo: p, cardPreviewPosition: m = "top" } = e, { cardStyles: h, bodyCardDefaultStyles: g } =
|
|
944
|
+
}, ja = (e) => {
|
|
945
|
+
let { className: t, cardBody: n, cardBodyClassName: r, cardHeader: i, cardHeaderClassName: a, cardHeaderImage: o, cardHeaderAction: s, cardHeaderDescription: c, cardFooterAction: l, cardFooterClassName: u, cardFooterContent: d, cardPreviewImage: f, cardPreviewLogo: p, cardPreviewPosition: m = "top" } = e, { cardStyles: h, bodyCardDefaultStyles: g } = Aa(e), _ = w.useRef(null), [v, y] = w.useState(0), [b, x] = w.useState(0);
|
|
949
946
|
return w.useEffect(() => {
|
|
950
947
|
let e;
|
|
951
948
|
return _.current && (e = new Sn((e) => {
|
|
@@ -995,8 +992,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
995
992
|
]
|
|
996
993
|
})
|
|
997
994
|
}) });
|
|
998
|
-
},
|
|
999
|
-
let { cols: t, verticalSpacing: n, horizontalSpacing: r, styles: i, gridItemAutoFlow: a, minItemWidth: o } = e, { getSpacing: s, getCurrentDevice: c, getBaseStyles: l } =
|
|
995
|
+
}, Ma = (e) => {
|
|
996
|
+
let { cols: t, verticalSpacing: n, horizontalSpacing: r, styles: i, gridItemAutoFlow: a, minItemWidth: o } = e, { getSpacing: s, getCurrentDevice: c, getBaseStyles: l } = na();
|
|
1000
997
|
return { gridStyles: w.useCallback((u, d) => {
|
|
1001
998
|
let f = l(e, u, d), p = `${s(n, u, "vertical")} ${s(r, u, "horizontal")}`, m = c(u), h = `repeat(auto-${a ?? "fill"}, minmax(min(100%, ${o ?? 250}px), 1fr))`;
|
|
1002
999
|
if (t && t > 0) {
|
|
@@ -1047,8 +1044,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1047
1044
|
a,
|
|
1048
1045
|
o
|
|
1049
1046
|
]) };
|
|
1050
|
-
},
|
|
1051
|
-
let { children: t, className: n } = e, { gridStyles: r } =
|
|
1047
|
+
}, Na = (e) => {
|
|
1048
|
+
let { children: t, className: n } = e, { gridStyles: r } = Ma(e), i = w.useRef(null), [a, o] = w.useState(0), [s, c] = w.useState(0);
|
|
1052
1049
|
return w.useEffect(() => {
|
|
1053
1050
|
let e;
|
|
1054
1051
|
return i.current && (e = new Sn((e) => {
|
|
@@ -1065,8 +1062,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1065
1062
|
ref: i,
|
|
1066
1063
|
children: t
|
|
1067
1064
|
}) });
|
|
1068
|
-
},
|
|
1069
|
-
let { maxWith: t } = e, { getBaseStyles: n } =
|
|
1065
|
+
}, Pa = (e) => {
|
|
1066
|
+
let { maxWith: t } = e, { getBaseStyles: n } = na();
|
|
1070
1067
|
return {
|
|
1071
1068
|
rootStyles: w.useCallback((r, i) => ({
|
|
1072
1069
|
...n(e, r, i),
|
|
@@ -1081,7 +1078,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1081
1078
|
overflow: "hidden"
|
|
1082
1079
|
})
|
|
1083
1080
|
};
|
|
1084
|
-
},
|
|
1081
|
+
}, Fa = {
|
|
1085
1082
|
areas: [
|
|
1086
1083
|
"header header header",
|
|
1087
1084
|
"sidebar content sidebar",
|
|
@@ -1089,8 +1086,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1089
1086
|
],
|
|
1090
1087
|
columns: "1fr 3fr 1fr",
|
|
1091
1088
|
rows: "auto 1fr auto"
|
|
1092
|
-
},
|
|
1093
|
-
let { className: t, children: n, layoutConfig: r =
|
|
1089
|
+
}, Ia = (e) => {
|
|
1090
|
+
let { className: t, children: n, layoutConfig: r = Fa } = e, i = w.useRef(null), [a, o] = w.useState(0), [s, c] = w.useState(0), { rootStyles: l, layoutGridStyles: u } = Pa({
|
|
1094
1091
|
...e,
|
|
1095
1092
|
layoutConfig: r
|
|
1096
1093
|
}), d = ((e, t) => {
|
|
@@ -1125,21 +1122,21 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1125
1122
|
children: e
|
|
1126
1123
|
}, t) : e)
|
|
1127
1124
|
});
|
|
1128
|
-
},
|
|
1125
|
+
}, La = (e) => {
|
|
1129
1126
|
let { area: t, children: n } = e;
|
|
1130
1127
|
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F("div", {
|
|
1131
1128
|
style: { gridArea: t },
|
|
1132
1129
|
children: n
|
|
1133
1130
|
}) });
|
|
1134
|
-
},
|
|
1135
|
-
let { verticalSpacing: t, horizontalSpacing: n } = e, { getSpacing: r } =
|
|
1131
|
+
}, Ra = (e) => {
|
|
1132
|
+
let { verticalSpacing: t, horizontalSpacing: n } = e, { getSpacing: r } = na();
|
|
1136
1133
|
return { spaceStyles: w.useCallback((e) => e ? n ? { width: r(n, e, "horizontal") } : t ? { height: r(t, e, "vertical") } : {} : {}, [
|
|
1137
1134
|
r,
|
|
1138
1135
|
n,
|
|
1139
1136
|
t
|
|
1140
1137
|
]) };
|
|
1141
|
-
},
|
|
1142
|
-
let t = w.useRef(null), [n, r] = w.useState(0), { spaceStyles: i } =
|
|
1138
|
+
}, za = (e) => {
|
|
1139
|
+
let t = w.useRef(null), [n, r] = w.useState(0), { spaceStyles: i } = Ra(e);
|
|
1143
1140
|
return w.useEffect(() => {
|
|
1144
1141
|
let e;
|
|
1145
1142
|
return t.current && (e = new Sn((e) => {
|
|
@@ -1155,8 +1152,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1155
1152
|
style: i(n),
|
|
1156
1153
|
ref: t
|
|
1157
1154
|
}) });
|
|
1158
|
-
},
|
|
1159
|
-
let { horizontal: t, horizontalAlign: n, verticalAlign: r, verticalFill: i, wrap: a, columnGap: o, RowGap: s } = e, { getBaseStyles: c } =
|
|
1155
|
+
}, Ba = (e) => {
|
|
1156
|
+
let { horizontal: t, horizontalAlign: n, verticalAlign: r, verticalFill: i, wrap: a, columnGap: o, RowGap: s } = e, { getBaseStyles: c } = na();
|
|
1160
1157
|
return { stackStyles: w.useCallback((l, u) => {
|
|
1161
1158
|
let d = r || "start", f = t ? n : "start", p = t ? {
|
|
1162
1159
|
flexFlow: a ? "row wrap" : "row nowrap",
|
|
@@ -1187,7 +1184,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1187
1184
|
a
|
|
1188
1185
|
]) };
|
|
1189
1186
|
}, K = (e) => {
|
|
1190
|
-
let { children: t, className: n } = e, { stackStyles: r } =
|
|
1187
|
+
let { children: t, className: n } = e, { stackStyles: r } = Ba(e), i = w.useRef(null), [a, o] = w.useState(0), [s, c] = w.useState(0);
|
|
1191
1188
|
return w.useEffect(() => {
|
|
1192
1189
|
let e;
|
|
1193
1190
|
return i.current && (e = new Sn((e) => {
|
|
@@ -1204,8 +1201,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1204
1201
|
ref: i,
|
|
1205
1202
|
children: t
|
|
1206
1203
|
}) });
|
|
1207
|
-
},
|
|
1208
|
-
let { children: t, grow: n, disableShrink: r, shrink: i, order: a, alignSelf: o, verticalFill: s } = e, { getBaseStyles: c } =
|
|
1204
|
+
}, Va = (e) => {
|
|
1205
|
+
let { children: t, grow: n, disableShrink: r, shrink: i, order: a, alignSelf: o, verticalFill: s } = e, { getBaseStyles: c } = na(), l = w.useRef(null), [u, d] = w.useState(0), [f, p] = w.useState(0), m = c(e, u, f);
|
|
1209
1206
|
return w.useEffect(() => {
|
|
1210
1207
|
let e;
|
|
1211
1208
|
return l.current && (e = new Sn((e) => {
|
|
@@ -1231,7 +1228,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1231
1228
|
},
|
|
1232
1229
|
children: t
|
|
1233
1230
|
}) });
|
|
1234
|
-
},
|
|
1231
|
+
}, Ha = ({ ratio: e, children: t, maxWidth: n, maxHeight: r, style: i = {}, ...a }) => {
|
|
1235
1232
|
let o = {
|
|
1236
1233
|
position: "relative",
|
|
1237
1234
|
width: "100%",
|
|
@@ -1254,8 +1251,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1254
1251
|
children: t
|
|
1255
1252
|
})
|
|
1256
1253
|
});
|
|
1257
|
-
},
|
|
1258
|
-
let { styles: t } = e, { getBaseStyles: n } =
|
|
1254
|
+
}, Ua = (e) => {
|
|
1255
|
+
let { styles: t } = e, { getBaseStyles: n } = na();
|
|
1259
1256
|
return { aspectRatioStyles: w.useCallback((r, i) => ({
|
|
1260
1257
|
...n(e, r, i),
|
|
1261
1258
|
...t
|
|
@@ -1264,8 +1261,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1264
1261
|
e,
|
|
1265
1262
|
t
|
|
1266
1263
|
]) };
|
|
1267
|
-
},
|
|
1268
|
-
let { styles: t } = e, { getBaseStyles: n } =
|
|
1264
|
+
}, Wa = (e) => {
|
|
1265
|
+
let { styles: t } = e, { getBaseStyles: n } = na();
|
|
1269
1266
|
return {
|
|
1270
1267
|
centerStyles: w.useCallback((r, i) => ({
|
|
1271
1268
|
...n(e, r, i),
|
|
@@ -1286,8 +1283,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1286
1283
|
textAlign: "center"
|
|
1287
1284
|
})
|
|
1288
1285
|
};
|
|
1289
|
-
},
|
|
1290
|
-
let { className: t, children: n } = e, r = w.useRef(null), [i, a] = w.useState(0), [o, s] = w.useState(0), { centerStyles: c } =
|
|
1286
|
+
}, Ga = (e) => {
|
|
1287
|
+
let { className: t, children: n } = e, r = w.useRef(null), [i, a] = w.useState(0), [o, s] = w.useState(0), { centerStyles: c } = Wa(e), l = (e, t) => {
|
|
1291
1288
|
let n;
|
|
1292
1289
|
return (...r) => {
|
|
1293
1290
|
clearTimeout(n), n = setTimeout(() => e(...r), t);
|
|
@@ -1319,8 +1316,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1319
1316
|
ref: r,
|
|
1320
1317
|
children: n
|
|
1321
1318
|
});
|
|
1322
|
-
},
|
|
1323
|
-
let { maxWidth: t } = e, { getBaseStyles: n } =
|
|
1319
|
+
}, Ka = (e) => {
|
|
1320
|
+
let { maxWidth: t } = e, { getBaseStyles: n } = na();
|
|
1324
1321
|
return { containerStyles: w.useCallback((r, i) => !r || !i ? {} : {
|
|
1325
1322
|
...n(e, r, i),
|
|
1326
1323
|
maxWidth: t
|
|
@@ -1329,8 +1326,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1329
1326
|
t,
|
|
1330
1327
|
e
|
|
1331
1328
|
]) };
|
|
1332
|
-
},
|
|
1333
|
-
let { className: t, children: n, style: r, alignItems: i = "center", justifyContent: a = "center", flexDirection: o = "row", centerContent: s = !0 } = e, c = w.useRef(null), [l, u] = w.useState(0), [d, f] = w.useState(0), { containerStyles: p } =
|
|
1329
|
+
}, qa = (e) => {
|
|
1330
|
+
let { className: t, children: n, style: r, alignItems: i = "center", justifyContent: a = "center", flexDirection: o = "row", centerContent: s = !0 } = e, c = w.useRef(null), [l, u] = w.useState(0), [d, f] = w.useState(0), { containerStyles: p } = Ka(e), m = w.useMemo(() => bn((e) => {
|
|
1334
1331
|
for (let t of e) {
|
|
1335
1332
|
let { width: e, height: n } = t.contentRect;
|
|
1336
1333
|
u(e), f(n);
|
|
@@ -1361,9 +1358,9 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1361
1358
|
...h
|
|
1362
1359
|
},
|
|
1363
1360
|
ref: c,
|
|
1364
|
-
children: s ? /* @__PURE__ */ F(
|
|
1361
|
+
children: s ? /* @__PURE__ */ F(Ga, { children: n }) : n
|
|
1365
1362
|
});
|
|
1366
|
-
},
|
|
1363
|
+
}, Ja = (e) => {
|
|
1367
1364
|
let [t, n] = N(!0), [r, i] = N(!0), a = D(() => {
|
|
1368
1365
|
e && e.scrollPrev();
|
|
1369
1366
|
}, [e]), o = D(() => {
|
|
@@ -1379,8 +1376,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1379
1376
|
onPrevButtonClick: a,
|
|
1380
1377
|
onNextButtonClick: o
|
|
1381
1378
|
};
|
|
1382
|
-
},
|
|
1383
|
-
let { getCurrentDevice: n } =
|
|
1379
|
+
}, Ya = (e, t) => {
|
|
1380
|
+
let { getCurrentDevice: n } = na(), r = w.useCallback(() => {
|
|
1384
1381
|
let e = n(t), r = "95%";
|
|
1385
1382
|
switch (e) {
|
|
1386
1383
|
case "Medium":
|
|
@@ -1449,8 +1446,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1449
1446
|
alignItems: "center"
|
|
1450
1447
|
})
|
|
1451
1448
|
};
|
|
1452
|
-
},
|
|
1453
|
-
let { styles: t } = e, { getBaseStyles: n } =
|
|
1449
|
+
}, Xa = (e) => {
|
|
1450
|
+
let { styles: t } = e, { getBaseStyles: n } = na();
|
|
1454
1451
|
return { carouselStyles: w.useCallback((r, i) => ({
|
|
1455
1452
|
...n(e, r, i),
|
|
1456
1453
|
...t
|
|
@@ -1459,16 +1456,15 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1459
1456
|
e,
|
|
1460
1457
|
t
|
|
1461
1458
|
]) };
|
|
1462
|
-
},
|
|
1459
|
+
}, Za = () => ({ titleStyles: H({
|
|
1463
1460
|
display: "-webkit-box",
|
|
1464
1461
|
overflow: "hidden",
|
|
1465
1462
|
textOverflow: "ellipsis",
|
|
1466
1463
|
WebkitLineClamp: "1",
|
|
1467
1464
|
WebkitBoxOrient: "vertical",
|
|
1468
|
-
textAlign: "start"
|
|
1469
|
-
|
|
1470
|
-
}) }),
|
|
1471
|
-
let { className: t, items: n, title: r } = e, i = w.useRef(null), [a, o] = w.useState(0), [s, c] = w.useState(0), { carouselStyles: l } = Za(e), [u, d] = wn(), f = Qa(), { enableControls: p, embla__slide: m, embla__container: h, embla__viewport: g, embla__buttons: _ } = Xa(e, a), { prevBtnDisabled: v, nextBtnDisabled: y, onPrevButtonClick: b, onNextButtonClick: x } = Ya(d);
|
|
1465
|
+
textAlign: "start"
|
|
1466
|
+
}) }), Qa = (e) => {
|
|
1467
|
+
let { className: t, items: n, title: r } = e, i = w.useRef(null), [a, o] = w.useState(0), [s, c] = w.useState(0), { carouselStyles: l } = Xa(e), [u, d] = wn(), f = Za(), { enableControls: p, embla__slide: m, embla__container: h, embla__viewport: g, embla__buttons: _ } = Ya(e, a), { prevBtnDisabled: v, nextBtnDisabled: y, onPrevButtonClick: b, onNextButtonClick: x } = Ja(d);
|
|
1472
1468
|
return w.useEffect(() => {
|
|
1473
1469
|
let e;
|
|
1474
1470
|
return i.current && (e = new Sn((e) => {
|
|
@@ -1481,6 +1477,9 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1481
1477
|
};
|
|
1482
1478
|
}, []), /* @__PURE__ */ F(P, { children: /* @__PURE__ */ I("div", {
|
|
1483
1479
|
id: "-carousel",
|
|
1480
|
+
role: "region",
|
|
1481
|
+
"aria-roledescription": "carousel",
|
|
1482
|
+
"aria-label": r || "Carousel",
|
|
1484
1483
|
className: B(t, "embla"),
|
|
1485
1484
|
style: { ...l(a, s) },
|
|
1486
1485
|
ref: i,
|
|
@@ -1495,12 +1494,14 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1495
1494
|
onClick: b,
|
|
1496
1495
|
disabled: v,
|
|
1497
1496
|
appearance: "subtle",
|
|
1498
|
-
icon: /* @__PURE__ */ F(qn, {})
|
|
1497
|
+
icon: /* @__PURE__ */ F(qn, {}),
|
|
1498
|
+
"aria-label": "Previous slide"
|
|
1499
1499
|
}), /* @__PURE__ */ F(R, {
|
|
1500
1500
|
onClick: x,
|
|
1501
1501
|
disabled: y,
|
|
1502
1502
|
appearance: "subtle",
|
|
1503
|
-
icon: /* @__PURE__ */ F(Jn, {})
|
|
1503
|
+
icon: /* @__PURE__ */ F(Jn, {}),
|
|
1504
|
+
"aria-label": "Next slide"
|
|
1504
1505
|
})]
|
|
1505
1506
|
})]
|
|
1506
1507
|
}), /* @__PURE__ */ F("div", {
|
|
@@ -1510,12 +1511,15 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1510
1511
|
className: h,
|
|
1511
1512
|
children: n.map((e, t) => /* @__PURE__ */ F("div", {
|
|
1512
1513
|
className: m,
|
|
1514
|
+
role: "group",
|
|
1515
|
+
"aria-roledescription": "slide",
|
|
1516
|
+
"aria-label": `Slide ${t + 1} of ${n.length}`,
|
|
1513
1517
|
children: e
|
|
1514
1518
|
}, t))
|
|
1515
1519
|
})
|
|
1516
1520
|
})]
|
|
1517
1521
|
}) });
|
|
1518
|
-
},
|
|
1522
|
+
}, $a = (e) => {
|
|
1519
1523
|
let { direction: t = "horizontal", resizerSize: n = 6 } = e, r = t === "horizontal";
|
|
1520
1524
|
return {
|
|
1521
1525
|
root: H({
|
|
@@ -1604,8 +1608,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1604
1608
|
...b
|
|
1605
1609
|
})),
|
|
1606
1610
|
children: y
|
|
1607
|
-
}))),
|
|
1608
|
-
let { direction: t = "horizontal", defaultSize: n = "50%", minSize: r = 100, maxSize: i = Infinity, minSecondarySize: a = 100, resizable: o = !0, onResize: s, onResizeEnd: c, primaryContent: l, secondaryContent: u, className: d, styles: f } = e, p =
|
|
1611
|
+
}))), eo = (e) => {
|
|
1612
|
+
let { direction: t = "horizontal", defaultSize: n = "50%", minSize: r = 100, maxSize: i = Infinity, minSecondarySize: a = 100, resizable: o = !0, onResize: s, onResizeEnd: c, primaryContent: l, secondaryContent: u, className: d, styles: f } = e, p = $a(e), m = t === "horizontal", h = w.useRef(null), g = w.useRef(null), [_, v] = w.useState(null), [y, b] = w.useState(!1), [x, S] = w.useState(!1);
|
|
1609
1613
|
w.useEffect(() => {
|
|
1610
1614
|
if (_ !== null || !h.current) return;
|
|
1611
1615
|
let e = h.current.getBoundingClientRect(), t = m ? e.width : e.height;
|
|
@@ -1719,12 +1723,22 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1719
1723
|
style: { flex: "0 0 auto" },
|
|
1720
1724
|
children: l
|
|
1721
1725
|
}),
|
|
1722
|
-
o && /* @__PURE__ */ F(
|
|
1726
|
+
o && /* @__PURE__ */ F("div", {
|
|
1723
1727
|
ref: O,
|
|
1724
1728
|
className: k,
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1729
|
+
style: {
|
|
1730
|
+
flex: "0 0 auto",
|
|
1731
|
+
display: "flex",
|
|
1732
|
+
alignItems: "center",
|
|
1733
|
+
justifyContent: "center"
|
|
1734
|
+
},
|
|
1735
|
+
role: "separator",
|
|
1736
|
+
"aria-orientation": m ? "vertical" : "horizontal",
|
|
1737
|
+
"aria-valuenow": Math.round(_ ?? r),
|
|
1738
|
+
"aria-valuemin": r,
|
|
1739
|
+
"aria-valuemax": i === Infinity ? void 0 : i,
|
|
1740
|
+
"aria-label": "Resize pane",
|
|
1741
|
+
tabIndex: 0,
|
|
1728
1742
|
children: /* @__PURE__ */ I(J, {
|
|
1729
1743
|
className: p.resizerGrip,
|
|
1730
1744
|
direction: m ? "vertical" : "horizontal",
|
|
@@ -1757,7 +1771,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1757
1771
|
})
|
|
1758
1772
|
]
|
|
1759
1773
|
});
|
|
1760
|
-
},
|
|
1774
|
+
}, to = ({ anchorPoint: e, isOpen: t, onClose: n, excludeRefs: r, children: i, theme: a }) => {
|
|
1761
1775
|
let o = M(null), [s, c] = N(null);
|
|
1762
1776
|
A(() => {
|
|
1763
1777
|
if (!t) {
|
|
@@ -1799,10 +1813,12 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1799
1813
|
n
|
|
1800
1814
|
]), !t) return null;
|
|
1801
1815
|
let u = s || e;
|
|
1802
|
-
return
|
|
1816
|
+
return Tr.createPortal(a ? /* @__PURE__ */ F(Be, {
|
|
1803
1817
|
theme: a,
|
|
1804
1818
|
children: /* @__PURE__ */ F(he, {
|
|
1805
1819
|
ref: o,
|
|
1820
|
+
role: "dialog",
|
|
1821
|
+
"aria-modal": "true",
|
|
1806
1822
|
style: {
|
|
1807
1823
|
position: "fixed",
|
|
1808
1824
|
zIndex: 1e3,
|
|
@@ -1813,6 +1829,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1813
1829
|
})
|
|
1814
1830
|
}) : /* @__PURE__ */ F(he, {
|
|
1815
1831
|
ref: o,
|
|
1832
|
+
role: "dialog",
|
|
1833
|
+
"aria-modal": "true",
|
|
1816
1834
|
style: {
|
|
1817
1835
|
position: "fixed",
|
|
1818
1836
|
zIndex: 1e3,
|
|
@@ -1821,7 +1839,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1821
1839
|
},
|
|
1822
1840
|
children: i
|
|
1823
1841
|
}), document.body);
|
|
1824
|
-
},
|
|
1842
|
+
}, no = Ht({
|
|
1825
1843
|
labelContainer: {
|
|
1826
1844
|
display: "flex",
|
|
1827
1845
|
flexDirection: "row",
|
|
@@ -1831,17 +1849,18 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1831
1849
|
},
|
|
1832
1850
|
iconStyles: { width: "26px" },
|
|
1833
1851
|
item: { paddingLeft: "15px" }
|
|
1834
|
-
}),
|
|
1835
|
-
let { label: t, icon: n, isRequired: r } = e, i =
|
|
1852
|
+
}), ro = (e) => {
|
|
1853
|
+
let { label: t, icon: n, isRequired: r } = e, i = no();
|
|
1836
1854
|
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ I("div", {
|
|
1837
1855
|
className: i.labelContainer,
|
|
1838
1856
|
children: [
|
|
1839
|
-
n && w.isValidElement(n) ? n : /* @__PURE__ */ F(
|
|
1857
|
+
n && w.isValidElement(n) ? n : /* @__PURE__ */ F(Dr, {
|
|
1840
1858
|
icon: n,
|
|
1841
1859
|
className: i.iconStyles,
|
|
1842
1860
|
width: "20px",
|
|
1843
1861
|
height: "20px",
|
|
1844
|
-
color: V.colorBrandForeground1
|
|
1862
|
+
color: V.colorBrandForeground1,
|
|
1863
|
+
"aria-hidden": "true"
|
|
1845
1864
|
}),
|
|
1846
1865
|
/* @__PURE__ */ F(pe, {
|
|
1847
1866
|
style: { color: V.colorBrandForeground1 },
|
|
@@ -1853,7 +1872,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1853
1872
|
})
|
|
1854
1873
|
]
|
|
1855
1874
|
}) });
|
|
1856
|
-
},
|
|
1875
|
+
}, io = Ht({
|
|
1857
1876
|
root: {
|
|
1858
1877
|
display: "flex",
|
|
1859
1878
|
justifyContent: "center",
|
|
@@ -1865,8 +1884,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1865
1884
|
width: "100px",
|
|
1866
1885
|
height: "100px"
|
|
1867
1886
|
}
|
|
1868
|
-
}),
|
|
1869
|
-
let { size: t, label: n, labelPosition: r, style: i, className: a } = e, o =
|
|
1887
|
+
}), ao = (e) => {
|
|
1888
|
+
let { size: t, label: n, labelPosition: r, style: i, className: a } = e, o = io();
|
|
1870
1889
|
return /* @__PURE__ */ F("div", {
|
|
1871
1890
|
className: o.root,
|
|
1872
1891
|
children: /* @__PURE__ */ F(wt, {
|
|
@@ -1874,10 +1893,11 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1874
1893
|
className: B(o.spinner, a),
|
|
1875
1894
|
size: t,
|
|
1876
1895
|
label: n,
|
|
1877
|
-
labelPosition: r
|
|
1896
|
+
labelPosition: r,
|
|
1897
|
+
"aria-label": n ? void 0 : "Loading"
|
|
1878
1898
|
})
|
|
1879
1899
|
});
|
|
1880
|
-
},
|
|
1900
|
+
}, oo = {
|
|
1881
1901
|
xs: V.fontSizeBase200,
|
|
1882
1902
|
s: V.fontSizeBase300,
|
|
1883
1903
|
m: V.fontSizeBase400,
|
|
@@ -1891,11 +1911,11 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1891
1911
|
l: V.spacingHorizontalL,
|
|
1892
1912
|
xl: V.spacingHorizontalXL,
|
|
1893
1913
|
xxl: V.spacingHorizontalXXL
|
|
1894
|
-
},
|
|
1914
|
+
}, so = {
|
|
1895
1915
|
regular: V.fontWeightRegular,
|
|
1896
1916
|
semibold: V.fontWeightSemibold,
|
|
1897
1917
|
bold: V.fontWeightBold
|
|
1898
|
-
},
|
|
1918
|
+
}, co = (e) => {
|
|
1899
1919
|
let { fontSize: t, fontFamily: n, fontWeight: r, numberOfLines: i, as: a, padding: o, paddingTop: s, paddingBottom: c, paddingLeft: l, paddingRight: u, margin: d, marginTop: f, marginBottom: p, marginLeft: m, marginRight: h, children: g, style: _, className: v, color: y, block: b, truncate: x, wrap: S } = e, C = H({
|
|
1900
1920
|
color: y,
|
|
1901
1921
|
padding: o && Y[o] ? Y[o] : o,
|
|
@@ -1911,8 +1931,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1911
1931
|
}), w = {
|
|
1912
1932
|
..._,
|
|
1913
1933
|
...n ? { fontFamily: n } : {},
|
|
1914
|
-
...t ? { fontSize:
|
|
1915
|
-
...r ? { fontWeight:
|
|
1934
|
+
...t ? { fontSize: oo[t] ? oo[t] : t } : {},
|
|
1935
|
+
...r ? { fontWeight: so[r] ? so[r] : r } : {},
|
|
1916
1936
|
...i ? {
|
|
1917
1937
|
display: "-webkit-box",
|
|
1918
1938
|
WebkitBoxOrient: "vertical",
|
|
@@ -1929,7 +1949,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1929
1949
|
wrap: S,
|
|
1930
1950
|
children: g
|
|
1931
1951
|
});
|
|
1932
|
-
},
|
|
1952
|
+
}, lo = (e) => {
|
|
1933
1953
|
let { onSelected: t, value: n, styles: r, options: i, apparence: a, shape: o, label: s } = e, c = w.useRef(), [l, u] = w.useState(n ?? i[0]), [d, f] = w.useState({ option: [n ? n?.key : i?.[0]?.key] }), p = w.useRef(null);
|
|
1934
1954
|
w.useEffect(() => {
|
|
1935
1955
|
n !== void 0 && (u(n), f({ option: [n.key] })), c.current = i.find((e) => e.key === (n?.key ?? i[0]?.key))?.icon;
|
|
@@ -1971,7 +1991,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1971
1991
|
}) })]
|
|
1972
1992
|
})
|
|
1973
1993
|
}) });
|
|
1974
|
-
},
|
|
1994
|
+
}, uo = () => ({
|
|
1975
1995
|
styles: {
|
|
1976
1996
|
container: H({
|
|
1977
1997
|
display: "flex",
|
|
@@ -2026,12 +2046,12 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2026
2046
|
});
|
|
2027
2047
|
}
|
|
2028
2048
|
}
|
|
2029
|
-
}),
|
|
2049
|
+
}), fo = ({ items: e, theme: t, size: n = "medium" }) => {
|
|
2030
2050
|
let [r, i] = N(!1), a = M(null), o = M(null), [s, c] = N({
|
|
2031
2051
|
top: 0,
|
|
2032
2052
|
left: 0,
|
|
2033
2053
|
position: "absolute"
|
|
2034
|
-
}), { getStyles: l } =
|
|
2054
|
+
}), { getStyles: l } = uo();
|
|
2035
2055
|
return k(() => {
|
|
2036
2056
|
let e = (e) => {
|
|
2037
2057
|
!a.current?.contains(e.target) && !o.current?.contains(e.target) && r && i(!1);
|
|
@@ -2052,8 +2072,9 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2052
2072
|
position: "absolute"
|
|
2053
2073
|
}), i((e) => !e);
|
|
2054
2074
|
}
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2075
|
+
},
|
|
2076
|
+
"aria-label": "More items"
|
|
2077
|
+
}), r && Er(t ? /* @__PURE__ */ F(Be, {
|
|
2057
2078
|
theme: t,
|
|
2058
2079
|
children: /* @__PURE__ */ F(he, {
|
|
2059
2080
|
ref: o,
|
|
@@ -2095,13 +2116,13 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2095
2116
|
})
|
|
2096
2117
|
}, `overflow-${t}`))
|
|
2097
2118
|
}), document.body)] });
|
|
2098
|
-
},
|
|
2119
|
+
}, po = (e, t) => {
|
|
2099
2120
|
let n;
|
|
2100
2121
|
return (...r) => {
|
|
2101
2122
|
clearTimeout(n), n = setTimeout(() => e(...r), t);
|
|
2102
2123
|
};
|
|
2103
|
-
},
|
|
2104
|
-
let { styles: s, getStyles: c } =
|
|
2124
|
+
}, mo = ({ items: e, maxWidth: t = "100%", styles: n, theme: r, size: i = "medium", currentIndex: a = e.length - 1, className: o }) => {
|
|
2125
|
+
let { styles: s, getStyles: c } = uo(), l = M(null), [u, d] = N([]), [f, p] = N([]);
|
|
2105
2126
|
return k(() => {
|
|
2106
2127
|
let t = () => {
|
|
2107
2128
|
if (!l.current) return;
|
|
@@ -2109,7 +2130,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2109
2130
|
e.forEach((e) => {
|
|
2110
2131
|
n + 80 <= t - 50 ? (r.push(e), n += 80) : i.push(e);
|
|
2111
2132
|
}), d(r), p(i);
|
|
2112
|
-
}, n =
|
|
2133
|
+
}, n = po(t, 100), r = new Sn(() => {
|
|
2113
2134
|
n();
|
|
2114
2135
|
});
|
|
2115
2136
|
return l.current && r.observe(l.current), t(), () => {
|
|
@@ -2146,46 +2167,46 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2146
2167
|
className: c(e, i),
|
|
2147
2168
|
children: e.label
|
|
2148
2169
|
})
|
|
2149
|
-
}, e.label), t < u.length - 1 && /* @__PURE__ */ F(Jn, { style: { fontSize: i === "large" ? "20px" : i === "medium" ? "16px" : "12px" } })] }, e.label ?? `breadcrumb-${t}`)), f.length > 0 && /* @__PURE__ */ F(
|
|
2170
|
+
}, e.label), t < u.length - 1 && /* @__PURE__ */ F(Jn, { style: { fontSize: i === "large" ? "20px" : i === "medium" ? "16px" : "12px" } })] }, e.label ?? `breadcrumb-${t}`)), f.length > 0 && /* @__PURE__ */ F(fo, {
|
|
2150
2171
|
items: f,
|
|
2151
2172
|
theme: r
|
|
2152
2173
|
})]
|
|
2153
2174
|
})
|
|
2154
2175
|
});
|
|
2155
|
-
},
|
|
2156
|
-
let
|
|
2157
|
-
c &&
|
|
2158
|
-
}, [c]),
|
|
2159
|
-
c &&
|
|
2160
|
-
}, [c]),
|
|
2161
|
-
|
|
2176
|
+
}, ho = ({ icon: e, hoverIcon: t, imageSrc: n, width: r = 24, height: i = 24, color: a, hoverColor: o, onClick: s, enabled: c = !0, ariaLabel: l }) => {
|
|
2177
|
+
let u = a || V.colorBrandBackground, d = o || V.colorBrandBackgroundHover, f = V.fontFamilyBase, [p, m] = N(!1), h = D(() => {
|
|
2178
|
+
c && m(!0);
|
|
2179
|
+
}, [c]), g = D(() => {
|
|
2180
|
+
c && m(!1);
|
|
2181
|
+
}, [c]), _ = j(() => c && p && t ? t : e, [
|
|
2182
|
+
p,
|
|
2162
2183
|
t,
|
|
2163
2184
|
e,
|
|
2164
2185
|
c
|
|
2165
|
-
]),
|
|
2186
|
+
]), v = j(() => ({
|
|
2166
2187
|
width: r,
|
|
2167
2188
|
height: i,
|
|
2168
|
-
color:
|
|
2189
|
+
color: p ? d : u,
|
|
2169
2190
|
display: "flex",
|
|
2170
2191
|
alignItems: "center",
|
|
2171
2192
|
justifyContent: "center",
|
|
2172
2193
|
opacity: c ? 1 : .5,
|
|
2173
|
-
fontFamily:
|
|
2194
|
+
fontFamily: f,
|
|
2174
2195
|
fontSize: "inherit"
|
|
2175
2196
|
}), [
|
|
2176
2197
|
r,
|
|
2177
2198
|
i,
|
|
2178
|
-
|
|
2199
|
+
p,
|
|
2200
|
+
d,
|
|
2179
2201
|
u,
|
|
2180
|
-
l,
|
|
2181
2202
|
c,
|
|
2182
|
-
|
|
2183
|
-
]),
|
|
2203
|
+
f
|
|
2204
|
+
]), y = j(() => ({
|
|
2184
2205
|
border: "none",
|
|
2185
2206
|
background: "none",
|
|
2186
2207
|
padding: 0,
|
|
2187
2208
|
cursor: c ? "pointer" : "default"
|
|
2188
|
-
}), [c]),
|
|
2209
|
+
}), [c]), b = j(() => ({
|
|
2189
2210
|
width: r,
|
|
2190
2211
|
height: i,
|
|
2191
2212
|
objectFit: "contain",
|
|
@@ -2195,22 +2216,23 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2195
2216
|
i,
|
|
2196
2217
|
c
|
|
2197
2218
|
]);
|
|
2198
|
-
return /* @__PURE__ */ F(
|
|
2219
|
+
return /* @__PURE__ */ F(R, {
|
|
2199
2220
|
onClick: c ? s : void 0,
|
|
2200
|
-
onMouseEnter:
|
|
2201
|
-
onMouseLeave:
|
|
2221
|
+
onMouseEnter: h,
|
|
2222
|
+
onMouseLeave: g,
|
|
2202
2223
|
disabled: !c,
|
|
2203
|
-
style:
|
|
2224
|
+
style: y,
|
|
2225
|
+
"aria-label": l ?? "Icon Button",
|
|
2204
2226
|
children: n ? /* @__PURE__ */ F("img", {
|
|
2205
2227
|
src: n,
|
|
2206
2228
|
alt: "icon",
|
|
2207
|
-
style:
|
|
2208
|
-
}) : T.cloneElement(
|
|
2209
|
-
...
|
|
2210
|
-
...
|
|
2229
|
+
style: b
|
|
2230
|
+
}) : T.cloneElement(_, { style: {
|
|
2231
|
+
..._.props.style,
|
|
2232
|
+
...v
|
|
2211
2233
|
} })
|
|
2212
2234
|
});
|
|
2213
|
-
},
|
|
2235
|
+
}, go = T.memo(ho), _o = () => ({
|
|
2214
2236
|
getSpanSlots: w.useCallback((e, t) => {
|
|
2215
2237
|
let n = new Date(e), r = new Date(t), i = n.getHours(), a = n.getMinutes(), o = i * 2 + (a >= 1 ? 1 : 0), s = r.getHours(), c = r.getMinutes(), l = s * 2 + (c >= 1 ? 2 : 0);
|
|
2216
2238
|
return {
|
|
@@ -2434,13 +2456,13 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2434
2456
|
return t[e] || n;
|
|
2435
2457
|
}, []),
|
|
2436
2458
|
formatDate: w.useCallback((e, t) => tn(sn(e), t), [])
|
|
2437
|
-
}),
|
|
2459
|
+
}), vo = {
|
|
2438
2460
|
start: "Start",
|
|
2439
2461
|
end: "End",
|
|
2440
2462
|
location: "Location",
|
|
2441
2463
|
attendees: "Attendees",
|
|
2442
2464
|
details: "Details"
|
|
2443
|
-
},
|
|
2465
|
+
}, yo = "32px", bo = (e) => ({ styles: {
|
|
2444
2466
|
banner: H({
|
|
2445
2467
|
display: "flex",
|
|
2446
2468
|
justifyContent: "center",
|
|
@@ -2448,7 +2470,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2448
2470
|
alignItems: "center",
|
|
2449
2471
|
padding: "5px 10px 0px 10px"
|
|
2450
2472
|
}),
|
|
2451
|
-
fieldContainer: H({ paddingLeft:
|
|
2473
|
+
fieldContainer: H({ paddingLeft: yo }),
|
|
2452
2474
|
title: H({
|
|
2453
2475
|
lineClamp: 2,
|
|
2454
2476
|
overflow: "hidden",
|
|
@@ -2457,18 +2479,18 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2457
2479
|
wordBreak: "break-word",
|
|
2458
2480
|
WebkitLineClamp: 2
|
|
2459
2481
|
})
|
|
2460
|
-
} }),
|
|
2482
|
+
} }), xo = ({ fieldLabel: e, fieldValue: t, icon: n }) => /* @__PURE__ */ I(K, { children: [/* @__PURE__ */ F(ro, {
|
|
2461
2483
|
label: e,
|
|
2462
2484
|
icon: n
|
|
2463
2485
|
}), /* @__PURE__ */ F(K, {
|
|
2464
|
-
paddingLeft:
|
|
2486
|
+
paddingLeft: yo,
|
|
2465
2487
|
children: /* @__PURE__ */ F(ue, { children: t })
|
|
2466
|
-
})] }),
|
|
2467
|
-
let { event: t, strings: n =
|
|
2488
|
+
})] }), So = (e) => {
|
|
2489
|
+
let { event: t, strings: n = vo } = e, { title: r, start: i, end: a, location: o, category: s, attendees: c, weblink: l } = t, { styles: u } = bo(t), { formatDate: d } = _o(), f = d(i, "PPp"), p = d(a, "PPp"), m = Ut({ items: c?.map((e) => e.id) || [] }), h = w.useCallback((e) => c?.find((t) => t.id === e) || void 0, [c]), g = w.useCallback(() => /* @__PURE__ */ I(K, { children: [/* @__PURE__ */ F(ro, {
|
|
2468
2490
|
label: n.attendees,
|
|
2469
2491
|
icon: "ph:users-three"
|
|
2470
2492
|
}), /* @__PURE__ */ F(K, {
|
|
2471
|
-
paddingLeft:
|
|
2493
|
+
paddingLeft: yo,
|
|
2472
2494
|
children: /* @__PURE__ */ I(oe, {
|
|
2473
2495
|
layout: "stack",
|
|
2474
2496
|
children: [m.inlineItems.map((e) => /* @__PURE__ */ F(se, {
|
|
@@ -2484,7 +2506,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2484
2506
|
h,
|
|
2485
2507
|
n.attendees
|
|
2486
2508
|
]);
|
|
2487
|
-
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F(
|
|
2509
|
+
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F(ja, {
|
|
2488
2510
|
appearance: "subtle",
|
|
2489
2511
|
padding: "m",
|
|
2490
2512
|
paddingTop: "s",
|
|
@@ -2509,17 +2531,17 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2509
2531
|
children: s
|
|
2510
2532
|
})
|
|
2511
2533
|
}),
|
|
2512
|
-
/* @__PURE__ */ F(
|
|
2534
|
+
/* @__PURE__ */ F(xo, {
|
|
2513
2535
|
fieldLabel: n.start,
|
|
2514
2536
|
fieldValue: f,
|
|
2515
2537
|
icon: "mingcute:time-line"
|
|
2516
2538
|
}),
|
|
2517
|
-
/* @__PURE__ */ F(
|
|
2539
|
+
/* @__PURE__ */ F(xo, {
|
|
2518
2540
|
fieldLabel: n.end,
|
|
2519
2541
|
fieldValue: p,
|
|
2520
2542
|
icon: "mingcute:time-line"
|
|
2521
2543
|
}),
|
|
2522
|
-
/* @__PURE__ */ F(
|
|
2544
|
+
/* @__PURE__ */ F(xo, {
|
|
2523
2545
|
fieldLabel: n.location,
|
|
2524
2546
|
fieldValue: o,
|
|
2525
2547
|
icon: "mingcute:location-line"
|
|
@@ -2540,7 +2562,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2540
2562
|
})
|
|
2541
2563
|
})
|
|
2542
2564
|
}) });
|
|
2543
|
-
},
|
|
2565
|
+
}, Co = () => ({
|
|
2544
2566
|
styles: {
|
|
2545
2567
|
calendarWrapper: H({
|
|
2546
2568
|
padding: "20px",
|
|
@@ -2651,8 +2673,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2651
2673
|
backgroundColor: e ?? V.colorBrandBackground,
|
|
2652
2674
|
":hover": { backgroundColor: t ?? V.colorBrandBackgroundHover }
|
|
2653
2675
|
})
|
|
2654
|
-
}),
|
|
2655
|
-
let t = Jt(), { events: n, date: r, onCardHoverChange: i, columnHeight: a } = e, { styles: o, applyEventHouverColorClass: s } =
|
|
2676
|
+
}), wo = (e) => {
|
|
2677
|
+
let t = Jt(), { events: n, date: r, onCardHoverChange: i, columnHeight: a } = e, { styles: o, applyEventHouverColorClass: s } = Co(), c = w.useRef(null), { getEventColors: l, getCalendarColors: u } = _o(), d = w.useCallback((e) => {
|
|
2656
2678
|
i && i(!0, e);
|
|
2657
2679
|
}, [i]), f = w.useCallback((e) => {
|
|
2658
2680
|
i && i(!1, e);
|
|
@@ -2660,7 +2682,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2660
2682
|
c.current?.setTarget(e);
|
|
2661
2683
|
}, [c]), m = w.useCallback((e, t, n) => /* @__PURE__ */ F("div", {
|
|
2662
2684
|
ref: p,
|
|
2663
|
-
children: /* @__PURE__ */ F(
|
|
2685
|
+
children: /* @__PURE__ */ F(ja, {
|
|
2664
2686
|
className: B(o.eventCard, s(n.backgroundColor, n.backgroundColor)),
|
|
2665
2687
|
paddingTop: "4px",
|
|
2666
2688
|
paddingBottom: "4px",
|
|
@@ -2687,7 +2709,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2687
2709
|
children: [/* @__PURE__ */ F(gt, { children: m(n, e, r) }), /* @__PURE__ */ F(ht, {
|
|
2688
2710
|
"aria-labelledby": t,
|
|
2689
2711
|
className: B(o.popoverContent),
|
|
2690
|
-
children: /* @__PURE__ */ F(
|
|
2712
|
+
children: /* @__PURE__ */ F(So, { event: e })
|
|
2691
2713
|
})]
|
|
2692
2714
|
}, n), [
|
|
2693
2715
|
m,
|
|
@@ -2711,8 +2733,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2711
2733
|
}) : e.enableOnHouver ? h(e, t, n) : m(t, e, n);
|
|
2712
2734
|
})
|
|
2713
2735
|
});
|
|
2714
|
-
},
|
|
2715
|
-
let { day: t, currentMonth: n, events: r, date: i, columnHeight: a, onDayClick: o } = e, { styles: s } =
|
|
2736
|
+
}, To = (e) => {
|
|
2737
|
+
let { day: t, currentMonth: n, events: r, date: i, columnHeight: a, onDayClick: o } = e, { styles: s } = Co(), c = /* @__PURE__ */ new Date(), [l, u] = w.useState(!1), d = w.useMemo(() => rn(i, c), [i, c]), f = w.useMemo(() => /* @__PURE__ */ F(K, {
|
|
2716
2738
|
horizontal: !0,
|
|
2717
2739
|
horizontalAlign: "start",
|
|
2718
2740
|
verticalAlign: "center",
|
|
@@ -2729,7 +2751,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2729
2751
|
}), [t]), p = w.useCallback((e) => {
|
|
2730
2752
|
u(e);
|
|
2731
2753
|
}, []);
|
|
2732
|
-
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F(
|
|
2754
|
+
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F(ja, {
|
|
2733
2755
|
onClick: o ? () => o(i) : void 0,
|
|
2734
2756
|
className: B(s.cardDay, n ? "" : s.otherMonthDay, d ? s.currentDay : "", l ? "" : s.cardDayOnHover),
|
|
2735
2757
|
cardHeader: d ? f : /* @__PURE__ */ F(K, {
|
|
@@ -2742,14 +2764,14 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2742
2764
|
paddingBottom: "m",
|
|
2743
2765
|
paddingLeft: "0px",
|
|
2744
2766
|
paddingRight: "0px",
|
|
2745
|
-
cardBody: /* @__PURE__ */ F(
|
|
2767
|
+
cardBody: /* @__PURE__ */ F(wo, {
|
|
2746
2768
|
events: r,
|
|
2747
2769
|
date: i,
|
|
2748
2770
|
onCardHoverChange: p,
|
|
2749
2771
|
columnHeight: a - 60
|
|
2750
2772
|
})
|
|
2751
2773
|
}) });
|
|
2752
|
-
},
|
|
2774
|
+
}, Eo = () => ({
|
|
2753
2775
|
styles: {
|
|
2754
2776
|
container: H({
|
|
2755
2777
|
display: "flex",
|
|
@@ -2940,11 +2962,11 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2940
2962
|
marginTop: 0,
|
|
2941
2963
|
marginBottom: 0
|
|
2942
2964
|
}), [])
|
|
2943
|
-
}),
|
|
2965
|
+
}), Do = {
|
|
2944
2966
|
timeSeparator: " - ",
|
|
2945
2967
|
hourSuffix: "H"
|
|
2946
|
-
},
|
|
2947
|
-
let s = Jt(), { styles: c, applyEventHouverColorClass: l, appyDynamicStyles: u } =
|
|
2968
|
+
}, Oo = ({ event: e, colors: t, spanSlots: n, rowHeight: r, eventIndex: i, eventCount: a, strings: o = Do }) => {
|
|
2969
|
+
let s = Jt(), { styles: c, applyEventHouverColorClass: l, appyDynamicStyles: u } = Eo(), d = w.useRef(null), { formatDate: f } = _o(), p = w.useMemo(() => /* @__PURE__ */ F("div", { children: /* @__PURE__ */ I(K, {
|
|
2948
2970
|
columnGap: 4,
|
|
2949
2971
|
verticalAlign: "center",
|
|
2950
2972
|
children: [/* @__PURE__ */ F(me, {
|
|
@@ -2979,17 +3001,17 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2979
3001
|
children: [/* @__PURE__ */ F(gt, { children: p }), /* @__PURE__ */ F(ht, {
|
|
2980
3002
|
"aria-labelledby": s,
|
|
2981
3003
|
className: B(c.popoverContent),
|
|
2982
|
-
children: /* @__PURE__ */ F(
|
|
3004
|
+
children: /* @__PURE__ */ F(So, { event: e })
|
|
2983
3005
|
})]
|
|
2984
3006
|
}) : p
|
|
2985
3007
|
}, e.id);
|
|
2986
|
-
},
|
|
2987
|
-
let { styles: o, appyDynamicStyles: s } =
|
|
3008
|
+
}, ko = ({ event: e, eventCount: t, spanSlots: n, rowHeight: r, eventIndex: i, view: a }) => {
|
|
3009
|
+
let { styles: o, appyDynamicStyles: s } = Eo(), { getEventColors: c, getCalendarColors: l } = _o(), u = e.color ? l(e.color) : c(e.category), d = a === "day" ? e.onRenderInDayView?.(e) : e.onRenderInWeekView?.(e);
|
|
2988
3010
|
return w.isValidElement(d) ? w.cloneElement(d, {
|
|
2989
3011
|
event: e,
|
|
2990
3012
|
className: B(d.props.className, o.eventCard, s(i, t, r, n)),
|
|
2991
3013
|
style: { ...d.props.style }
|
|
2992
|
-
}) : /* @__PURE__ */ F(
|
|
3014
|
+
}) : /* @__PURE__ */ F(Oo, {
|
|
2993
3015
|
event: e,
|
|
2994
3016
|
colors: u,
|
|
2995
3017
|
spanSlots: n,
|
|
@@ -2997,10 +3019,10 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2997
3019
|
eventIndex: i,
|
|
2998
3020
|
eventCount: t
|
|
2999
3021
|
}, e.id);
|
|
3000
|
-
},
|
|
3022
|
+
}, Ao = (e) => {
|
|
3001
3023
|
let t = D((e) => e.map((e) => ({
|
|
3002
3024
|
...e,
|
|
3003
|
-
id: e.id ||
|
|
3025
|
+
id: e.id || Or()
|
|
3004
3026
|
})), []), n = D((t) => new Date(new Date(t).toLocaleString(void 0, { timeZone: e })), [e]);
|
|
3005
3027
|
return {
|
|
3006
3028
|
getMonthCalendar: D((e, r, i) => {
|
|
@@ -3051,7 +3073,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3051
3073
|
return i;
|
|
3052
3074
|
}, [n])
|
|
3053
3075
|
};
|
|
3054
|
-
},
|
|
3076
|
+
}, jo = () => ({
|
|
3055
3077
|
styles: {
|
|
3056
3078
|
container: H({
|
|
3057
3079
|
display: "flex",
|
|
@@ -3201,8 +3223,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3201
3223
|
backgroundColor: e ?? V.colorBrandBackground,
|
|
3202
3224
|
":hover": { backgroundColor: t ?? V.colorBrandBackgroundHover }
|
|
3203
3225
|
})
|
|
3204
|
-
}),
|
|
3205
|
-
let { events: t, currentDay: n, height: r, strings: i =
|
|
3226
|
+
}), Mo = { allDay: "All Day" }, No = 33, Po = (e) => {
|
|
3227
|
+
let { events: t, currentDay: n, height: r, strings: i = Mo } = e, { styles: a } = jo(), o = M(null), { getSpanSlots: s, getEventColors: c, getCalendarColors: l } = _o(), u = Intl.DateTimeFormat().resolvedOptions().timeZone, { getWeekEvents: d } = Ao(u), f = w.useCallback(() => Array.from({ length: 24 }, (e, t) => /* @__PURE__ */ I(w.Fragment, { children: [/* @__PURE__ */ F("div", {
|
|
3206
3228
|
className: a.timeCell,
|
|
3207
3229
|
children: /* @__PURE__ */ I(de, { children: [t, ":00"] })
|
|
3208
3230
|
}), /* @__PURE__ */ F("div", { className: a.timeCell })] }, t)), [a.timeCell]), p = w.useCallback(() => /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ F("div", { className: a.blankHeader }), Array.from({ length: 1 }, (e, t) => {
|
|
@@ -3265,11 +3287,11 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3265
3287
|
style: { gridRow: t + 3 },
|
|
3266
3288
|
children: e.events.map((e, r) => {
|
|
3267
3289
|
let { spanSlots: i, startSlot: a } = s(new Date(e.start), new Date(e.end));
|
|
3268
|
-
return t === a ? /* @__PURE__ */ F(
|
|
3290
|
+
return t === a ? /* @__PURE__ */ F(ko, {
|
|
3269
3291
|
event: e,
|
|
3270
3292
|
eventCount: n,
|
|
3271
3293
|
spanSlots: i,
|
|
3272
|
-
rowHeight:
|
|
3294
|
+
rowHeight: No,
|
|
3273
3295
|
eventIndex: r,
|
|
3274
3296
|
view: "day"
|
|
3275
3297
|
}, e.id) : null;
|
|
@@ -3303,12 +3325,12 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3303
3325
|
});
|
|
3304
3326
|
}, X = /* @__PURE__ */ function(e) {
|
|
3305
3327
|
return e.Day = "day", e.Week = "week", e.Month = "month", e;
|
|
3306
|
-
}({}),
|
|
3328
|
+
}({}), Fo = {
|
|
3307
3329
|
month: "Month",
|
|
3308
3330
|
week: "Week",
|
|
3309
3331
|
day: "Day"
|
|
3310
|
-
},
|
|
3311
|
-
let { onSelected: t, value: n, strings: r =
|
|
3332
|
+
}, Io = (e) => {
|
|
3333
|
+
let { onSelected: t, value: n, strings: r = Fo } = e, [i, a] = w.useState(n ?? X.Month), [o, s] = w.useState({ view: [n ?? X.Month] }), c = w.useMemo(() => wr(Ln, Rn), []), l = w.useMemo(() => wr(zn, Bn), []), u = w.useMemo(() => wr(Hn, Un), []);
|
|
3312
3334
|
w.useEffect(() => {
|
|
3313
3335
|
n !== void 0 && (a(n), s({ view: [n] }));
|
|
3314
3336
|
}, [n]);
|
|
@@ -3370,7 +3392,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3370
3392
|
]
|
|
3371
3393
|
}) })]
|
|
3372
3394
|
}) });
|
|
3373
|
-
},
|
|
3395
|
+
}, Lo = w.memo((e) => {
|
|
3374
3396
|
let { onSelected: t, value: n } = e, [r, i] = w.useState(n ?? /* @__PURE__ */ new Date()), [a, o] = w.useState(() => L(n ?? /* @__PURE__ */ new Date(), "dd MMM, yyyy")), [s, c] = w.useState(!1), l = w.useCallback((e, t) => {
|
|
3375
3397
|
c(t.open);
|
|
3376
3398
|
}, []), u = w.useMemo(() => wr(zn, Bn), []), d = w.useCallback((e) => {
|
|
@@ -3388,11 +3410,12 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3388
3410
|
shape: "circular",
|
|
3389
3411
|
icon: /* @__PURE__ */ F(u, {}),
|
|
3390
3412
|
style: { minWidth: "200px" },
|
|
3413
|
+
"aria-label": `Select date: ${a}`,
|
|
3391
3414
|
children: a
|
|
3392
3415
|
})
|
|
3393
3416
|
}), /* @__PURE__ */ F(Ze, {
|
|
3394
3417
|
style: { maxWidth: "fit-content" },
|
|
3395
|
-
children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(
|
|
3418
|
+
children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(kr, {
|
|
3396
3419
|
highlightSelectedMonth: !0,
|
|
3397
3420
|
showGoToToday: !0,
|
|
3398
3421
|
onSelectDate: d,
|
|
@@ -3400,7 +3423,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3400
3423
|
}) })
|
|
3401
3424
|
})]
|
|
3402
3425
|
});
|
|
3403
|
-
}),
|
|
3426
|
+
}), Ro = () => ({ root: H({ outline: "none" }) }), zo = {
|
|
3404
3427
|
months: [
|
|
3405
3428
|
"January",
|
|
3406
3429
|
"February",
|
|
@@ -3448,13 +3471,13 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3448
3471
|
"Sat"
|
|
3449
3472
|
],
|
|
3450
3473
|
goToToday: "Go to today"
|
|
3451
|
-
},
|
|
3452
|
-
let { onDateChange: t, defaultSelectedDate: n, onDismiss: r, strings: i =
|
|
3474
|
+
}, Bo = (e) => {
|
|
3475
|
+
let { onDateChange: t, defaultSelectedDate: n, onDismiss: r, strings: i = zo } = e, a = Ro(), [o, s] = w.useState(n ?? /* @__PURE__ */ new Date()), c = w.useCallback((e, n) => {
|
|
3453
3476
|
s(e), t(e), r();
|
|
3454
3477
|
}, [t, r]);
|
|
3455
|
-
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F(
|
|
3478
|
+
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F(kr, {
|
|
3456
3479
|
className: a.root,
|
|
3457
|
-
dateRangeType:
|
|
3480
|
+
dateRangeType: Ar.Month,
|
|
3458
3481
|
highlightSelectedMonth: !0,
|
|
3459
3482
|
isDayPickerVisible: !1,
|
|
3460
3483
|
onSelectDate: c,
|
|
@@ -3464,7 +3487,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3464
3487
|
allFocusable: !1,
|
|
3465
3488
|
strings: i
|
|
3466
3489
|
}) });
|
|
3467
|
-
},
|
|
3490
|
+
}, Vo = (e) => {
|
|
3468
3491
|
let { onSelected: t, value: n } = e, r = wr(zn, Bn), [i, a] = w.useState(n ?? /* @__PURE__ */ new Date());
|
|
3469
3492
|
w.useEffect(() => {
|
|
3470
3493
|
t(n ?? /* @__PURE__ */ new Date()), a(n ?? /* @__PURE__ */ new Date());
|
|
@@ -3483,9 +3506,10 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3483
3506
|
shape: "circular",
|
|
3484
3507
|
icon: /* @__PURE__ */ F(r, {}),
|
|
3485
3508
|
style: { minWidth: "200px" },
|
|
3509
|
+
"aria-label": `Select month: ${tn(i, "MMMM yyyy")}`,
|
|
3486
3510
|
children: tn(i, "MMMM yyyy")
|
|
3487
3511
|
})
|
|
3488
|
-
}), /* @__PURE__ */ F(Ze, { children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(
|
|
3512
|
+
}), /* @__PURE__ */ F(Ze, { children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(Bo, {
|
|
3489
3513
|
onDateChange: l,
|
|
3490
3514
|
defaultSelectedDate: i,
|
|
3491
3515
|
onDismiss: () => {
|
|
@@ -3493,10 +3517,10 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3493
3517
|
}
|
|
3494
3518
|
}) }) })]
|
|
3495
3519
|
}) });
|
|
3496
|
-
},
|
|
3520
|
+
}, Ho = { selectWeekPlaceholder: "Select a week" }, Uo = (e) => {
|
|
3497
3521
|
let t = Intl.DateTimeFormat().resolvedOptions().timeZone, n = L(e.start, "MMM", { timeZone: t }), r = L(e.end, "MMM", { timeZone: t });
|
|
3498
3522
|
return L(e.start, "yyyy", { timeZone: t }) === L(e.end, "yyyy", { timeZone: t }) ? n === r ? `${L(e.start, "dd", { timeZone: t })} - ${L(e.end, "dd MMM yyyy", { timeZone: t })}` : `${L(e.start, "dd MMM", { timeZone: t })} - ${L(e.end, "dd MMM yyyy", { timeZone: t })}` : `${L(e.start, "dd MMM yyyy", { timeZone: t })} - ${L(e.end, "dd MMM yyyy", { timeZone: t })}`;
|
|
3499
|
-
},
|
|
3523
|
+
}, Wo = (e) => {
|
|
3500
3524
|
let t = Intl.DateTimeFormat().resolvedOptions().timeZone, n = ne(e, t), r = new Date(n);
|
|
3501
3525
|
r.setDate(n.getDate() - n.getDay());
|
|
3502
3526
|
let i = new Date(r);
|
|
@@ -3504,17 +3528,17 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3504
3528
|
start: ne(r, t),
|
|
3505
3529
|
end: ne(i, t)
|
|
3506
3530
|
};
|
|
3507
|
-
},
|
|
3508
|
-
let { onSelected: t, value: n, strings: r =
|
|
3531
|
+
}, Go = w.memo((e) => {
|
|
3532
|
+
let { onSelected: t, value: n, strings: r = Ho } = e, i = Ar.Week, [a, o] = w.useState(n ?? /* @__PURE__ */ new Date()), [s, c] = w.useState(() => {
|
|
3509
3533
|
let e = n ?? /* @__PURE__ */ new Date();
|
|
3510
|
-
return e ? Wo(
|
|
3534
|
+
return e ? Uo(Wo(e)) : r.selectWeekPlaceholder;
|
|
3511
3535
|
}), [l, u] = w.useState(!1), d = w.useCallback((e, t) => {
|
|
3512
3536
|
u(t.open);
|
|
3513
3537
|
}, []), f = w.useMemo(() => wr(zn, Bn), []), p = w.useCallback((e) => {
|
|
3514
3538
|
if (e) {
|
|
3515
3539
|
o(e);
|
|
3516
|
-
let n =
|
|
3517
|
-
c(
|
|
3540
|
+
let n = Wo(e);
|
|
3541
|
+
c(Uo(n)), t({
|
|
3518
3542
|
startDate: n.start,
|
|
3519
3543
|
endDate: n.end
|
|
3520
3544
|
}), u(!1);
|
|
@@ -3529,11 +3553,12 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3529
3553
|
shape: "circular",
|
|
3530
3554
|
icon: /* @__PURE__ */ F(f, {}),
|
|
3531
3555
|
style: { minWidth: "200px" },
|
|
3556
|
+
"aria-label": `Select week: ${s}`,
|
|
3532
3557
|
children: s
|
|
3533
3558
|
})
|
|
3534
3559
|
}), /* @__PURE__ */ F(Ze, {
|
|
3535
3560
|
style: { maxWidth: "fit-content" },
|
|
3536
|
-
children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(
|
|
3561
|
+
children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(kr, {
|
|
3537
3562
|
dateRangeType: i,
|
|
3538
3563
|
highlightSelectedMonth: !0,
|
|
3539
3564
|
showGoToToday: !0,
|
|
@@ -3543,11 +3568,11 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3543
3568
|
}) })
|
|
3544
3569
|
})]
|
|
3545
3570
|
});
|
|
3546
|
-
}),
|
|
3571
|
+
}), Ko = {
|
|
3547
3572
|
today: "Today",
|
|
3548
3573
|
previous: "Previous",
|
|
3549
3574
|
next: "Next"
|
|
3550
|
-
},
|
|
3575
|
+
}, qo = w.memo(({ selectedView: e, onSelectedView: t, currentDate: n, setCurrentDate: r, onWeekChange: i, onMonthChange: a, onDayChange: o, strings: s = Ko }) => {
|
|
3551
3576
|
let c = w.useMemo(() => wr(kn, An), []), l = w.useMemo(() => wr(Pn, Fn), []), u = w.useCallback((e) => {
|
|
3552
3577
|
i(e.startDate), r(e.startDate);
|
|
3553
3578
|
}, [i, r]), d = w.useCallback((e) => {
|
|
@@ -3556,19 +3581,19 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3556
3581
|
o(e), r(e);
|
|
3557
3582
|
}, [o, r]), p = w.useCallback(() => {
|
|
3558
3583
|
switch (e) {
|
|
3559
|
-
case X.Month: return /* @__PURE__ */ F(
|
|
3584
|
+
case X.Month: return /* @__PURE__ */ F(Vo, {
|
|
3560
3585
|
onSelected: d,
|
|
3561
3586
|
value: n
|
|
3562
3587
|
});
|
|
3563
|
-
case X.Week: return /* @__PURE__ */ F(
|
|
3588
|
+
case X.Week: return /* @__PURE__ */ F(Go, {
|
|
3564
3589
|
onSelected: u,
|
|
3565
3590
|
value: n
|
|
3566
3591
|
});
|
|
3567
|
-
case X.Day: return /* @__PURE__ */ F(
|
|
3592
|
+
case X.Day: return /* @__PURE__ */ F(Lo, {
|
|
3568
3593
|
onSelected: f,
|
|
3569
3594
|
value: n
|
|
3570
3595
|
});
|
|
3571
|
-
default: return /* @__PURE__ */ F(
|
|
3596
|
+
default: return /* @__PURE__ */ F(Vo, {
|
|
3572
3597
|
onSelected: d,
|
|
3573
3598
|
value: n
|
|
3574
3599
|
});
|
|
@@ -3656,14 +3681,14 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3656
3681
|
horizontalAlign: "start",
|
|
3657
3682
|
verticalAlign: "center",
|
|
3658
3683
|
columnGap: 10,
|
|
3659
|
-
children: /* @__PURE__ */ F(
|
|
3684
|
+
children: /* @__PURE__ */ F(Io, {
|
|
3660
3685
|
onSelected: t,
|
|
3661
3686
|
value: e
|
|
3662
3687
|
})
|
|
3663
3688
|
})]
|
|
3664
3689
|
});
|
|
3665
|
-
}),
|
|
3666
|
-
let { events: t, currentDay: n, height: r, strings: i =
|
|
3690
|
+
}), Jo = { allDay: "All Day" }, Yo = (e) => {
|
|
3691
|
+
let { events: t, currentDay: n, height: r, strings: i = Jo } = e, { styles: a } = Eo(), [o] = N(n), [s, c] = N(32), l = M(null), { getSpanSlots: u, getEventColors: d, getCalendarColors: f, formatDate: p } = _o(), m = un(o, { weekStartsOn: 0 }), h = Intl.DateTimeFormat().resolvedOptions().timeZone, { getWeekEvents: g } = Ao(h);
|
|
3667
3692
|
k(() => {
|
|
3668
3693
|
let e = new Sn(() => {
|
|
3669
3694
|
if (l.current) {
|
|
@@ -3735,7 +3760,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3735
3760
|
style: { gridRow: t + 3 },
|
|
3736
3761
|
children: e.events.map((e, r) => {
|
|
3737
3762
|
let { spanSlots: i, startSlot: a } = u(new Date(e.start), new Date(e.end));
|
|
3738
|
-
return t === a ? /* @__PURE__ */ F(
|
|
3763
|
+
return t === a ? /* @__PURE__ */ F(ko, {
|
|
3739
3764
|
event: e,
|
|
3740
3765
|
eventCount: n,
|
|
3741
3766
|
spanSlots: i,
|
|
@@ -3772,7 +3797,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3772
3797
|
]
|
|
3773
3798
|
})
|
|
3774
3799
|
});
|
|
3775
|
-
},
|
|
3800
|
+
}, Xo = { daysOfWeek: [
|
|
3776
3801
|
"Sunday",
|
|
3777
3802
|
"Monday",
|
|
3778
3803
|
"Tuesday",
|
|
@@ -3780,8 +3805,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3780
3805
|
"Thursday",
|
|
3781
3806
|
"Friday",
|
|
3782
3807
|
"Saturday"
|
|
3783
|
-
] },
|
|
3784
|
-
let l = c?.daysOfWeek ||
|
|
3808
|
+
] }, Zo = ({ currentDate: e, rowHeight: t, getCalendarDays: n, getEventsForDay: r, styles: i, onDaySlotClick: a, height: o, calendarRef: s, strings: c }) => {
|
|
3809
|
+
let l = c?.daysOfWeek || Xo.daysOfWeek;
|
|
3785
3810
|
return /* @__PURE__ */ F(K, {
|
|
3786
3811
|
height: o,
|
|
3787
3812
|
width: "100%",
|
|
@@ -3790,12 +3815,15 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3790
3815
|
children: /* @__PURE__ */ I("div", {
|
|
3791
3816
|
className: i.calendarWrapper,
|
|
3792
3817
|
ref: s,
|
|
3818
|
+
role: "grid",
|
|
3819
|
+
"aria-label": "Calendar",
|
|
3793
3820
|
children: [l.map((e) => /* @__PURE__ */ F(ue, {
|
|
3794
3821
|
className: i.dayHeader,
|
|
3822
|
+
role: "columnheader",
|
|
3795
3823
|
children: e
|
|
3796
3824
|
}, e)), n(e).map((e, n) => {
|
|
3797
3825
|
let { day: i, currentMonth: o } = e, s = o ? r(e) : [];
|
|
3798
|
-
return /* @__PURE__ */ F(
|
|
3826
|
+
return /* @__PURE__ */ F(To, {
|
|
3799
3827
|
day: i,
|
|
3800
3828
|
date: e.date,
|
|
3801
3829
|
currentMonth: e.currentMonth,
|
|
@@ -3806,18 +3834,18 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3806
3834
|
})]
|
|
3807
3835
|
})
|
|
3808
3836
|
});
|
|
3809
|
-
},
|
|
3837
|
+
}, Qo = w.memo(({ events: e, currentDay: t, height: n, strings: r }) => /* @__PURE__ */ F(Yo, {
|
|
3810
3838
|
events: e,
|
|
3811
3839
|
currentDay: t,
|
|
3812
3840
|
height: n,
|
|
3813
3841
|
strings: r
|
|
3814
|
-
})),
|
|
3842
|
+
})), $o = w.memo(({ events: e, currentDay: t, height: n, strings: r }) => /* @__PURE__ */ F(Po, {
|
|
3815
3843
|
currentDay: t,
|
|
3816
3844
|
events: e,
|
|
3817
3845
|
height: n,
|
|
3818
3846
|
strings: r
|
|
3819
|
-
})),
|
|
3820
|
-
let { styles: u } =
|
|
3847
|
+
})), es = ({ events: e, height: t = 800, theme: n, onDayChange: r, onMonthChange: i, onWeekChange: a, onViewChange: o, onDaySlotClick: s, defaultView: c, strings: l }) => {
|
|
3848
|
+
let { styles: u } = Co(), d = M(null), [f, p] = N(null), m = M(0), [h, g] = N(/* @__PURE__ */ new Date()), [_, v] = N(c ?? X.Month), { getMonthCalendar: y } = Ao(Intl.DateTimeFormat().resolvedOptions().timeZone), b = w.useCallback((e) => {
|
|
3821
3849
|
let t = e.getMonth(), n = un(ln(e));
|
|
3822
3850
|
return Array.from({ length: 42 }, (e, r) => {
|
|
3823
3851
|
let i = Qt(n, r);
|
|
@@ -3856,7 +3884,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3856
3884
|
}, [c]);
|
|
3857
3885
|
let O = w.useCallback(() => {
|
|
3858
3886
|
switch (_) {
|
|
3859
|
-
case X.Month: return /* @__PURE__ */ F(
|
|
3887
|
+
case X.Month: return /* @__PURE__ */ F(Zo, {
|
|
3860
3888
|
events: e,
|
|
3861
3889
|
currentDate: h,
|
|
3862
3890
|
rowHeight: f,
|
|
@@ -3868,19 +3896,19 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3868
3896
|
calendarRef: d,
|
|
3869
3897
|
strings: l?.calendarControl
|
|
3870
3898
|
});
|
|
3871
|
-
case X.Week: return /* @__PURE__ */ F(
|
|
3899
|
+
case X.Week: return /* @__PURE__ */ F(Qo, {
|
|
3872
3900
|
events: e,
|
|
3873
3901
|
currentDay: h,
|
|
3874
3902
|
height: t,
|
|
3875
3903
|
strings: l?.weekView
|
|
3876
3904
|
});
|
|
3877
|
-
case X.Day: return /* @__PURE__ */ F(
|
|
3905
|
+
case X.Day: return /* @__PURE__ */ F($o, {
|
|
3878
3906
|
events: e,
|
|
3879
3907
|
currentDay: h,
|
|
3880
3908
|
height: t,
|
|
3881
3909
|
strings: l?.dayView
|
|
3882
3910
|
});
|
|
3883
|
-
default: return /* @__PURE__ */ F(
|
|
3911
|
+
default: return /* @__PURE__ */ F(Zo, {
|
|
3884
3912
|
events: e,
|
|
3885
3913
|
currentDate: h,
|
|
3886
3914
|
rowHeight: f,
|
|
@@ -3906,7 +3934,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3906
3934
|
]), A = /* @__PURE__ */ I(K, {
|
|
3907
3935
|
height: "100%",
|
|
3908
3936
|
verticalAlign: "start",
|
|
3909
|
-
children: [/* @__PURE__ */ F(
|
|
3937
|
+
children: [/* @__PURE__ */ F(qo, {
|
|
3910
3938
|
selectedView: _,
|
|
3911
3939
|
onSelectedView: T,
|
|
3912
3940
|
currentDate: h,
|
|
@@ -3929,21 +3957,28 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3929
3957
|
children: A
|
|
3930
3958
|
})
|
|
3931
3959
|
});
|
|
3932
|
-
},
|
|
3960
|
+
}, ts = () => ({ tagPickerControl: H({
|
|
3933
3961
|
border: `1px solid ${V.colorNeutralStroke2} !important`,
|
|
3934
3962
|
borderRadius: "50px !important",
|
|
3935
3963
|
backgroundColor: `${V.colorNeutralBackground1} !important`,
|
|
3936
3964
|
padding: "0px 10px",
|
|
3937
3965
|
boxShadow: "none",
|
|
3938
3966
|
transition: "all 0.2s ease !important",
|
|
3939
|
-
"&::after": {
|
|
3967
|
+
"&::after": {
|
|
3968
|
+
content: "\"\"",
|
|
3969
|
+
position: "absolute",
|
|
3970
|
+
inset: "-1px",
|
|
3971
|
+
borderRadius: "inherit",
|
|
3972
|
+
border: "2px solid transparent",
|
|
3973
|
+
pointerEvents: "none"
|
|
3974
|
+
},
|
|
3940
3975
|
"&:hover": { borderColor: `${V.colorBrandStroke1} !important` },
|
|
3941
3976
|
"&:focus-within": {
|
|
3942
3977
|
borderColor: `${V.colorBrandStroke1} !important`,
|
|
3943
3978
|
boxShadow: `0 0 0 2px ${V.colorBrandBackground2} !important`
|
|
3944
3979
|
}
|
|
3945
|
-
}) }),
|
|
3946
|
-
let f = o ? e.find((e) => e.value === o) : void 0, [p, m] = N(o || ""), [h, g] = N(f?.text || ""), [_, v] = N(""), y =
|
|
3980
|
+
}) }), ns = ({ options: e, onChange: t, renderItem: n, validate: r, label: i, placeholder: a, defaultValue: o, message: s, messageType: c, required: l, size: u, hint: d }) => {
|
|
3981
|
+
let f = o ? e.find((e) => e.value === o) : void 0, [p, m] = N(o || ""), [h, g] = N(f?.text || ""), [_, v] = N(""), y = ts(), b = (e, n) => {
|
|
3947
3982
|
let i = n.optionValue || "", a = n.optionText || "";
|
|
3948
3983
|
m(i), g(a);
|
|
3949
3984
|
let o = r ? r(i) : "";
|
|
@@ -3989,7 +4024,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3989
4024
|
})
|
|
3990
4025
|
})
|
|
3991
4026
|
});
|
|
3992
|
-
},
|
|
4027
|
+
}, rs = () => ({ inputRoot: H({
|
|
3993
4028
|
border: `1px solid ${V.colorNeutralStroke2} !important`,
|
|
3994
4029
|
borderBottom: `1px solid ${V.colorNeutralStroke2} !important`,
|
|
3995
4030
|
borderRadius: "50px !important",
|
|
@@ -4007,8 +4042,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4007
4042
|
borderColor: `${V.colorBrandStroke1} !important`,
|
|
4008
4043
|
boxShadow: `0 0 0 2px ${V.colorBrandBackground2} !important`
|
|
4009
4044
|
}
|
|
4010
|
-
}) }),
|
|
4011
|
-
let [b, x] = N(e === void 0 ? "" : String(e)), [S, C] = N(""), w =
|
|
4045
|
+
}) }), is = ({ value: e, type: t = "text", shape: n = "normal", onChange: r, validate: i, label: a, placeholder: s, message: c, messageType: l, required: u, size: d, hint: f, disabled: p, readOnly: m, min: h, max: g, step: _, contentBefore: v, contentAfter: y }) => {
|
|
4046
|
+
let [b, x] = N(e === void 0 ? "" : String(e)), [S, C] = N(""), w = rs(), T = o(), E = e !== void 0, O = E ? String(e) : b, k = D((e) => {
|
|
4012
4047
|
if (u && e.trim() === "") return t === "number" ? T.numberRequired : T.fieldRequired;
|
|
4013
4048
|
if (t === "number" && e.trim() !== "") {
|
|
4014
4049
|
let t = Number(e);
|
|
@@ -4068,8 +4103,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4068
4103
|
contentAfter: y
|
|
4069
4104
|
})
|
|
4070
4105
|
});
|
|
4071
|
-
},
|
|
4072
|
-
searchBoxStyles:
|
|
4106
|
+
}, as = () => ({
|
|
4107
|
+
searchBoxStyles: jr`
|
|
4073
4108
|
border: 1px solid ${V.colorNeutralStroke2};
|
|
4074
4109
|
border-radius: 50px;
|
|
4075
4110
|
background-color: ${V.colorNeutralBackground1};
|
|
@@ -4124,7 +4159,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4124
4159
|
}
|
|
4125
4160
|
}
|
|
4126
4161
|
`,
|
|
4127
|
-
searchBoxNormalStyles:
|
|
4162
|
+
searchBoxNormalStyles: jr`
|
|
4128
4163
|
border: 1px solid ${V.colorNeutralStroke2};
|
|
4129
4164
|
border-radius: ${V.borderRadiusMedium};
|
|
4130
4165
|
background-color: ${V.colorNeutralBackground1};
|
|
@@ -4179,14 +4214,14 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4179
4214
|
}
|
|
4180
4215
|
}
|
|
4181
4216
|
`,
|
|
4182
|
-
iconWrapperStyles:
|
|
4217
|
+
iconWrapperStyles: jr`
|
|
4183
4218
|
display: flex;
|
|
4184
4219
|
align-items: center;
|
|
4185
4220
|
padding: 2px;
|
|
4186
4221
|
margin-right: 8px;
|
|
4187
4222
|
`
|
|
4188
|
-
}),
|
|
4189
|
-
let [f, p] = N(""), m = M(null), { searchBoxStyles: h, searchBoxNormalStyles: g, iconWrapperStyles: _ } =
|
|
4223
|
+
}), os = ({ placeholder: e, onSearch: t, onChange: n, onClear: r, disabled: i = !1, className: a, width: o, value: s, shape: c = "circular", contentBefore: u, size: d }) => {
|
|
4224
|
+
let [f, p] = N(""), m = M(null), { searchBoxStyles: h, searchBoxNormalStyles: g, iconWrapperStyles: _ } = as(), v = l(), y = e || v.placeholder, b = s !== void 0, x = b ? s : f, S = c === "circular" ? h : g, C = D((e, t) => {
|
|
4190
4225
|
b || p(t.value), n?.(t.value);
|
|
4191
4226
|
}, [b, n]), w = D(() => {
|
|
4192
4227
|
b || p(""), m.current?.blur(), r?.(), t?.("");
|
|
@@ -4202,7 +4237,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4202
4237
|
t,
|
|
4203
4238
|
r
|
|
4204
4239
|
]);
|
|
4205
|
-
return /* @__PURE__ */
|
|
4240
|
+
return /* @__PURE__ */ Mr(bt, {
|
|
4206
4241
|
ref: m,
|
|
4207
4242
|
css: S,
|
|
4208
4243
|
className: a,
|
|
@@ -4213,13 +4248,13 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4213
4248
|
onKeyDown: T,
|
|
4214
4249
|
disabled: i,
|
|
4215
4250
|
size: d,
|
|
4216
|
-
contentBefore: u ?? /* @__PURE__ */
|
|
4251
|
+
contentBefore: u ?? /* @__PURE__ */ Mr("span", {
|
|
4217
4252
|
css: _,
|
|
4218
|
-
children: /* @__PURE__ */
|
|
4253
|
+
children: /* @__PURE__ */ Mr(hr, {})
|
|
4219
4254
|
}),
|
|
4220
4255
|
dismiss: { onClick: w }
|
|
4221
4256
|
});
|
|
4222
|
-
},
|
|
4257
|
+
}, ss = ({ onChange: e, defaultKey: t, label: n, options: r = [], minWidth: i, styles: a }) => {
|
|
4223
4258
|
let [o, s] = N(() => r.map((e) => ({
|
|
4224
4259
|
...e,
|
|
4225
4260
|
selected: e.key === (t ?? "status")
|
|
@@ -4236,30 +4271,30 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4236
4271
|
}, [o, e]);
|
|
4237
4272
|
return /* @__PURE__ */ I(J, {
|
|
4238
4273
|
gap: "s",
|
|
4239
|
-
children: [n && /* @__PURE__ */ F(Ge, { children: n }), /* @__PURE__ */ F(
|
|
4274
|
+
children: [n && /* @__PURE__ */ F(Ge, { children: n }), /* @__PURE__ */ F(lo, {
|
|
4240
4275
|
options: o,
|
|
4241
4276
|
onSelected: c,
|
|
4242
4277
|
styles: i ? { minWidth: i } : a ?? {}
|
|
4243
4278
|
})]
|
|
4244
4279
|
});
|
|
4245
|
-
},
|
|
4280
|
+
}, cs = () => ({
|
|
4246
4281
|
menuButton: H({ minWidth: 200 }),
|
|
4247
4282
|
popover: H({
|
|
4248
4283
|
padding: V.spacingVerticalS,
|
|
4249
4284
|
minWidth: 200
|
|
4250
4285
|
}),
|
|
4251
4286
|
timePicker: H({ width: "100%" })
|
|
4252
|
-
}),
|
|
4287
|
+
}), ls = () => ({
|
|
4253
4288
|
root: H({
|
|
4254
4289
|
maxHeight: 280,
|
|
4255
4290
|
overflowY: "auto",
|
|
4256
4291
|
padding: `${V.spacingVerticalXS} 0`
|
|
4257
4292
|
}),
|
|
4258
4293
|
item: H({ cursor: "pointer" })
|
|
4259
|
-
}),
|
|
4294
|
+
}), us = "time", ds = (e, t, n) => {
|
|
4260
4295
|
let r = new Date(e);
|
|
4261
4296
|
return r.setHours(t, n, 0, 0), r;
|
|
4262
|
-
},
|
|
4297
|
+
}, fs = (e, t, n) => {
|
|
4263
4298
|
let r = {
|
|
4264
4299
|
hour: "numeric",
|
|
4265
4300
|
minute: "2-digit",
|
|
@@ -4267,15 +4302,15 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4267
4302
|
...t && { hourCycle: t }
|
|
4268
4303
|
};
|
|
4269
4304
|
return new Intl.DateTimeFormat(void 0, r).format(e);
|
|
4270
|
-
},
|
|
4305
|
+
}, ps = (e) => `${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}`, ms = (e, t, n, r) => {
|
|
4271
4306
|
let i = [], a = e * 60, o = t * 60;
|
|
4272
4307
|
for (let e = a; e < o; e += n) {
|
|
4273
4308
|
let t = Math.floor(e / 60), n = e % 60;
|
|
4274
|
-
i.push(
|
|
4309
|
+
i.push(ds(r, t, n));
|
|
4275
4310
|
}
|
|
4276
4311
|
return i;
|
|
4277
|
-
},
|
|
4278
|
-
let { onTimeSelect: t, hourCycle: n, showSeconds: r = !1, startHour: i = 0, endHour: a = 24, increment: o = 30, dateAnchor: s } = e, c =
|
|
4312
|
+
}, hs = w.memo((e) => {
|
|
4313
|
+
let { onTimeSelect: t, hourCycle: n, showSeconds: r = !1, startHour: i = 0, endHour: a = 24, increment: o = 30, dateAnchor: s } = e, c = ls(), l = w.useMemo(() => s ?? /* @__PURE__ */ new Date(), [s]), u = w.useMemo(() => ms(i, a, o, l), [
|
|
4279
4314
|
i,
|
|
4280
4315
|
a,
|
|
4281
4316
|
o,
|
|
@@ -4286,9 +4321,9 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4286
4321
|
return /* @__PURE__ */ F("div", {
|
|
4287
4322
|
className: c.root,
|
|
4288
4323
|
children: u.map((e) => {
|
|
4289
|
-
let t =
|
|
4324
|
+
let t = fs(e, n, r), i = ps(e);
|
|
4290
4325
|
return /* @__PURE__ */ F(Ye, {
|
|
4291
|
-
name:
|
|
4326
|
+
name: us,
|
|
4292
4327
|
value: i,
|
|
4293
4328
|
onClick: d(e, t),
|
|
4294
4329
|
icon: /* @__PURE__ */ F(Xn, {}),
|
|
@@ -4297,13 +4332,13 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4297
4332
|
}, i);
|
|
4298
4333
|
})
|
|
4299
4334
|
});
|
|
4300
|
-
}),
|
|
4335
|
+
}), gs = (e, t) => {
|
|
4301
4336
|
let n = t ? new Date(t) : /* @__PURE__ */ new Date(), r = n.getHours() * 60 + n.getMinutes(), i = Math.ceil(r / e) * e, a = new Date(n);
|
|
4302
4337
|
return a.setHours(Math.floor(i / 60), i % 60, 0, 0), a;
|
|
4303
|
-
},
|
|
4304
|
-
let { onSelected: t, value: n, placeholder: r = "Select a time", hourCycle: i, showSeconds: a = !1, startHour: o, endHour: s, increment: c = 30, dateAnchor: l } = e, u =
|
|
4338
|
+
}, _s = w.memo((e) => {
|
|
4339
|
+
let { onSelected: t, value: n, placeholder: r = "Select a time", hourCycle: i, showSeconds: a = !1, startHour: o, endHour: s, increment: c = 30, dateAnchor: l } = e, u = cs(), d = w.useMemo(() => gs(c, l), [c, l]), f = n ?? d, [p, m] = w.useState(f), [h, g] = w.useState(() => fs(f, i, a)), [_, v] = w.useState(!1);
|
|
4305
4340
|
w.useEffect(() => {
|
|
4306
|
-
n && (m(n), g(
|
|
4341
|
+
n && (m(n), g(fs(n, i, a)));
|
|
4307
4342
|
}, [
|
|
4308
4343
|
n,
|
|
4309
4344
|
i,
|
|
@@ -4311,7 +4346,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4311
4346
|
]);
|
|
4312
4347
|
let y = w.useCallback((e, t) => {
|
|
4313
4348
|
v(t.open);
|
|
4314
|
-
}, []), b = w.useMemo(() => wr(Yn, Xn), []), x = w.useMemo(() => p ? { [
|
|
4349
|
+
}, []), b = w.useMemo(() => wr(Yn, Xn), []), x = w.useMemo(() => p ? { [us]: [ps(p)] } : { [us]: [] }, [p]), S = w.useCallback((e, n) => {
|
|
4315
4350
|
m(e), g(n), t(e), v(!1);
|
|
4316
4351
|
}, [t]);
|
|
4317
4352
|
return /* @__PURE__ */ I(Ke, {
|
|
@@ -4325,11 +4360,12 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4325
4360
|
shape: "circular",
|
|
4326
4361
|
icon: /* @__PURE__ */ F(b, {}),
|
|
4327
4362
|
className: u.menuButton,
|
|
4363
|
+
"aria-label": `Select time: ${h || r}`,
|
|
4328
4364
|
children: h || r
|
|
4329
4365
|
})
|
|
4330
4366
|
}), /* @__PURE__ */ F(Ze, {
|
|
4331
4367
|
className: u.popover,
|
|
4332
|
-
children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(
|
|
4368
|
+
children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(hs, {
|
|
4333
4369
|
value: p,
|
|
4334
4370
|
onTimeSelect: S,
|
|
4335
4371
|
hourCycle: i,
|
|
@@ -4341,7 +4377,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4341
4377
|
}) })
|
|
4342
4378
|
})]
|
|
4343
4379
|
});
|
|
4344
|
-
}),
|
|
4380
|
+
}), vs = () => ({
|
|
4345
4381
|
container: H({
|
|
4346
4382
|
display: "flex",
|
|
4347
4383
|
flexDirection: "column",
|
|
@@ -4389,8 +4425,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4389
4425
|
"&::placeholder": { color: V.colorNeutralForeground4 },
|
|
4390
4426
|
"&:focus": { outline: "none" }
|
|
4391
4427
|
})
|
|
4392
|
-
}),
|
|
4393
|
-
let g =
|
|
4428
|
+
}), ys = ({ options: e, selectedOptions: t = [], onSelectionChange: n, onSearchChange: r, onLoadMore: i, pagingInfo: a, placeholder: o, disabled: s = !1, maxSelectedOptions: c, width: l, className: u, noResultsMessage: d, loadingMessage: p, loadingMoreMessage: m, searchDebounceMs: h = 300 }) => {
|
|
4429
|
+
let g = vs(), _ = f(), v = o || _.placeholder, y = d || _.noResultsFound, b = p || _.searching, x = m || _.loadingMore, [S, C] = N(""), w = M(null), T = M(null), E = t.map((e) => e.value), O = a?.isLoading ?? !1, A = a?.isLoadingMore ?? !1, j = a?.hasMore ?? !1, L = e.filter((e) => !E.includes(e.value)), ee = D((e) => {
|
|
4394
4430
|
C(e), w.current && clearTimeout(w.current), w.current = setTimeout(() => {
|
|
4395
4431
|
r?.(e);
|
|
4396
4432
|
}, h);
|
|
@@ -4494,7 +4530,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4494
4530
|
l: V.spacingHorizontalL,
|
|
4495
4531
|
xl: V.spacingHorizontalXL,
|
|
4496
4532
|
xxl: V.spacingHorizontalXXL
|
|
4497
|
-
},
|
|
4533
|
+
}, bs = T.memo(({ direction: e = "vertical", justifyContent: t = "flex-start", alignItems: n = "stretch", gap: r, columnGap: i, rowGap: a, margin: o, padding: s, marginTop: c, marginBottom: l, marginLeft: u, marginRight: d, paddingTop: f, paddingBottom: p, paddingLeft: m, paddingRight: h, width: g, height: _, wrap: v = !1, children: y, style: b, className: x, overflow: S, background: C }) => /* @__PURE__ */ F("div", {
|
|
4498
4534
|
className: B(x, H({
|
|
4499
4535
|
display: "flex",
|
|
4500
4536
|
flexDirection: e === "horizontal" ? "row" : "column",
|
|
@@ -4521,7 +4557,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4521
4557
|
...b
|
|
4522
4558
|
})),
|
|
4523
4559
|
children: y
|
|
4524
|
-
})),
|
|
4560
|
+
})), xs = (e) => ({ styles: {
|
|
4525
4561
|
loadingContainer: H({
|
|
4526
4562
|
display: "flex",
|
|
4527
4563
|
justifyContent: "center",
|
|
@@ -4533,8 +4569,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4533
4569
|
marginTop: 20
|
|
4534
4570
|
}),
|
|
4535
4571
|
rowSelection: H({ ":hover": { cursor: "pointer" } })
|
|
4536
|
-
} }),
|
|
4537
|
-
let { items: t, columns: n, defaultSelectedItems: r = [], enableSorting: i = !1, selectionMode: a = "none", onSelectionChange: o, onSortChange: s, defaultSortState: c, columnSizingOptions: l, enableResizing: u = !1, noItemsMessage: d, isLoadingData: f, isLoadingDataMessage: p, dataGridBodyClassName: m, dataGridBodyStyles: h, refreshData: g } = e, _ = (e) => t.findIndex((t) => t === e), [v, y] = w.useState(new Set(r.map((e) => _(e)))), b = w.useRef(null), { styles: x } =
|
|
4572
|
+
} }), Ss = (e) => {
|
|
4573
|
+
let { items: t, columns: n, defaultSelectedItems: r = [], enableSorting: i = !1, selectionMode: a = "none", onSelectionChange: o, onSortChange: s, defaultSortState: c, columnSizingOptions: l, enableResizing: u = !1, noItemsMessage: d, isLoadingData: f, isLoadingDataMessage: p, dataGridBodyClassName: m, dataGridBodyStyles: h, refreshData: g } = e, _ = (e) => t.findIndex((t) => t === e), [v, y] = w.useState(new Set(r.map((e) => _(e)))), b = w.useRef(null), { styles: x } = xs(e);
|
|
4538
4574
|
w.useEffect(() => {
|
|
4539
4575
|
r.length > 0 && y(new Set(r.map((e) => _(e))));
|
|
4540
4576
|
}, [r, t]), w.useEffect(() => {
|
|
@@ -4566,6 +4602,9 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4566
4602
|
children: ({ item: e, rowId: t }) => /* @__PURE__ */ F(Ee, {
|
|
4567
4603
|
className: D,
|
|
4568
4604
|
onClick: (t) => E(t, e),
|
|
4605
|
+
onKeyDown: (t) => {
|
|
4606
|
+
a === "row" && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), o?.([e]));
|
|
4607
|
+
},
|
|
4569
4608
|
children: ({ renderCell: t }) => /* @__PURE__ */ F(Ce, { children: t(e) })
|
|
4570
4609
|
}, t)
|
|
4571
4610
|
}), [
|
|
@@ -4573,7 +4612,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4573
4612
|
D,
|
|
4574
4613
|
h,
|
|
4575
4614
|
m
|
|
4576
|
-
]), k = w.useMemo(() => t.length && !f, [t, f]), A = w.useCallback(() => f ? /* @__PURE__ */ F(P, { children: p ?? /* @__PURE__ */ F(
|
|
4615
|
+
]), k = w.useMemo(() => t.length && !f, [t, f]), A = w.useCallback(() => f ? /* @__PURE__ */ F(P, { children: p ?? /* @__PURE__ */ F(bs, {
|
|
4577
4616
|
direction: "vertical",
|
|
4578
4617
|
gap: "s",
|
|
4579
4618
|
justifyContent: "center",
|
|
@@ -4608,7 +4647,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4608
4647
|
children: [/* @__PURE__ */ F(we, { children: /* @__PURE__ */ F(Ee, { children: ({ renderHeaderCell: e }) => /* @__PURE__ */ F(Te, { children: e() }) }) }), /* @__PURE__ */ F(A, {})]
|
|
4609
4648
|
})
|
|
4610
4649
|
});
|
|
4611
|
-
},
|
|
4650
|
+
}, Cs = Ht({ scrollbar: {
|
|
4612
4651
|
scrollbarWidth: "thin",
|
|
4613
4652
|
scrollbarColor: `${V.colorBrandBackground} ${V.colorNeutralBackground3}`,
|
|
4614
4653
|
"&::-webkit-scrollbar": {
|
|
@@ -4627,8 +4666,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4627
4666
|
} });
|
|
4628
4667
|
//#endregion
|
|
4629
4668
|
//#region src/components/DataGridV2/DataGridV2.tsx
|
|
4630
|
-
function
|
|
4631
|
-
let n =
|
|
4669
|
+
function ws(e, t) {
|
|
4670
|
+
let n = Cs().scrollbar, { columns: r, items: i, enableSorting: a = !1, enableResizing: o = !1, selectionMode: s = "none", onSelectionChange: c, defaultSelectedItems: l = [], defaultSortState: u, onSortChange: d, columnSizingOptions: f, resizableColumnsOptions: p, noItemsMessage: m, isLoadingData: h, isLoadingDataMessage: g, dataGridBodyClassName: _, dataGridBodyStyles: v, refreshData: y, enableInfiniteScroll: b, onLoadMore: x, infiniteScrollPageSize: S, hasNextPage: C, isLoadingMore: T, autoShowLastPage: E = !0, virtualizedHeight: D = 600, virtualizedItemSize: O = 44, startIndex: k, onRowClick: A } = e, j = w.useMemo(() => r.map((e) => Vt({
|
|
4632
4671
|
columnId: e.column,
|
|
4633
4672
|
renderHeaderCell: () => /* @__PURE__ */ F(de, { children: e.header }),
|
|
4634
4673
|
renderCell: (t) => /* @__PURE__ */ F(Ot, {
|
|
@@ -4733,7 +4772,7 @@ function Ts(e, t) {
|
|
|
4733
4772
|
" "
|
|
4734
4773
|
]
|
|
4735
4774
|
})
|
|
4736
|
-
}), !h && i.length ? /* @__PURE__ */ I(
|
|
4775
|
+
}), !h && i.length ? /* @__PURE__ */ I(Pr, {
|
|
4737
4776
|
items: i,
|
|
4738
4777
|
columns: j,
|
|
4739
4778
|
sortable: a,
|
|
@@ -4748,7 +4787,7 @@ function Ts(e, t) {
|
|
|
4748
4787
|
focusMode: "cell",
|
|
4749
4788
|
className: B(_, n),
|
|
4750
4789
|
style: v,
|
|
4751
|
-
children: [/* @__PURE__ */ F(
|
|
4790
|
+
children: [/* @__PURE__ */ F(Lr, { children: /* @__PURE__ */ F(zr, { children: ({ renderHeaderCell: e }) => /* @__PURE__ */ F(Rr, { children: e() }) }) }), /* @__PURE__ */ F(Fr, {
|
|
4752
4791
|
itemSize: O,
|
|
4753
4792
|
height: D,
|
|
4754
4793
|
width: "100%",
|
|
@@ -4758,7 +4797,7 @@ function Ts(e, t) {
|
|
|
4758
4797
|
let n = e.item, r = ae.get(n) ?? i.indexOf(n), a = s === "row", o = a && re === r, l = (e) => {
|
|
4759
4798
|
ie(r), c?.([n]), A?.(n, r);
|
|
4760
4799
|
};
|
|
4761
|
-
return /* @__PURE__ */ F(
|
|
4800
|
+
return /* @__PURE__ */ F(zr, {
|
|
4762
4801
|
style: {
|
|
4763
4802
|
...t,
|
|
4764
4803
|
cursor: a ? "pointer" : void 0,
|
|
@@ -4766,22 +4805,22 @@ function Ts(e, t) {
|
|
|
4766
4805
|
},
|
|
4767
4806
|
onClick: l,
|
|
4768
4807
|
"aria-selected": o || void 0,
|
|
4769
|
-
children: ({ renderCell: e }) => /* @__PURE__ */ F(
|
|
4808
|
+
children: ({ renderCell: e }) => /* @__PURE__ */ F(Ir, { children: e(n) })
|
|
4770
4809
|
});
|
|
4771
4810
|
})()
|
|
4772
4811
|
})]
|
|
4773
4812
|
}, L) : !h && !i.length ? /* @__PURE__ */ F("div", { children: m }) : null]
|
|
4774
4813
|
});
|
|
4775
4814
|
}
|
|
4776
|
-
var
|
|
4777
|
-
|
|
4815
|
+
var Ts = w.forwardRef(ws);
|
|
4816
|
+
Ts.displayName = "DataGridV2";
|
|
4778
4817
|
//#endregion
|
|
4779
4818
|
//#region src/components/renderDialog/RenderDialog.tsx
|
|
4780
|
-
var
|
|
4819
|
+
var Es = 200, Ds = Ht({
|
|
4781
4820
|
dialog: { overflow: "visible" },
|
|
4782
4821
|
dialogBody: { overflow: "visible" }
|
|
4783
|
-
}),
|
|
4784
|
-
let { isOpen: t, dialogTitle: n, dialogActions: r, children: i, maxWidth: a, className: o, minHeight: s, minWidth: c, maxHeight: l } = e, u =
|
|
4822
|
+
}), Os = (e) => {
|
|
4823
|
+
let { isOpen: t, dialogTitle: n, dialogActions: r, children: i, maxWidth: a, className: o, minHeight: s, minWidth: c, maxHeight: l } = e, u = Ds();
|
|
4785
4824
|
return t ? /* @__PURE__ */ F(De, {
|
|
4786
4825
|
open: t,
|
|
4787
4826
|
modalType: "modal",
|
|
@@ -4789,7 +4828,7 @@ var Ds = 200, Os = Ht({
|
|
|
4789
4828
|
className: B(u.dialog, o),
|
|
4790
4829
|
style: {
|
|
4791
4830
|
maxWidth: a ?? 600,
|
|
4792
|
-
minWidth: c ??
|
|
4831
|
+
minWidth: c ?? Es,
|
|
4793
4832
|
...s ? { minHeight: s } : {},
|
|
4794
4833
|
...l ? { maxHeight: l } : {}
|
|
4795
4834
|
},
|
|
@@ -4807,7 +4846,7 @@ var Ds = 200, Os = Ht({
|
|
|
4807
4846
|
]
|
|
4808
4847
|
})
|
|
4809
4848
|
}) : /* @__PURE__ */ F(P, {});
|
|
4810
|
-
},
|
|
4849
|
+
}, ks = (e) => {
|
|
4811
4850
|
let { isOpen: t, onOpenChange: n, title: r, headerActions: i, footerActions: a, size: o, separator: s, type: c, style: l, children: u, position: d, classNameHeader: f = "", classNameBody: p = "", classNameFooter: m = "" } = e, h = w.useCallback((e, t) => {
|
|
4812
4851
|
n && n(t.open);
|
|
4813
4852
|
}, [n]), g = /* @__PURE__ */ I(P, { children: [
|
|
@@ -4843,7 +4882,7 @@ var Ds = 200, Os = Ht({
|
|
|
4843
4882
|
position: d,
|
|
4844
4883
|
children: g
|
|
4845
4884
|
});
|
|
4846
|
-
},
|
|
4885
|
+
}, As = (e) => {
|
|
4847
4886
|
let { onDismiss: t, title: n, description: r, icon: i, showCloseButton: a = !0 } = e;
|
|
4848
4887
|
return /* @__PURE__ */ I(J, {
|
|
4849
4888
|
direction: "vertical",
|
|
@@ -4858,7 +4897,7 @@ var Ds = 200, Os = Ht({
|
|
|
4858
4897
|
alignItems: "center",
|
|
4859
4898
|
width: "100%",
|
|
4860
4899
|
gap: "m",
|
|
4861
|
-
children: [i ? w.isValidElement(i) ? i : /* @__PURE__ */ F(
|
|
4900
|
+
children: [i ? w.isValidElement(i) ? i : /* @__PURE__ */ F(Dr, { icon: i }) : null, /* @__PURE__ */ I(J, {
|
|
4862
4901
|
direction: "vertical",
|
|
4863
4902
|
justifyContent: "flex-start",
|
|
4864
4903
|
alignItems: "flex-start",
|
|
@@ -4868,7 +4907,7 @@ var Ds = 200, Os = Ht({
|
|
|
4868
4907
|
justifyContent: "space-between",
|
|
4869
4908
|
gap: "l",
|
|
4870
4909
|
width: "100%",
|
|
4871
|
-
children: [/* @__PURE__ */ F(
|
|
4910
|
+
children: [/* @__PURE__ */ F(co, {
|
|
4872
4911
|
fontSize: "l",
|
|
4873
4912
|
block: !0,
|
|
4874
4913
|
truncate: !0,
|
|
@@ -4883,7 +4922,8 @@ var Ds = 200, Os = Ht({
|
|
|
4883
4922
|
width: 18,
|
|
4884
4923
|
height: 18
|
|
4885
4924
|
} }),
|
|
4886
|
-
color: V.colorBrandBackground
|
|
4925
|
+
color: V.colorBrandBackground,
|
|
4926
|
+
"aria-label": "Close"
|
|
4887
4927
|
})]
|
|
4888
4928
|
}), w.isValidElement(r) ? r : /* @__PURE__ */ F(pe, {
|
|
4889
4929
|
style: {
|
|
@@ -4900,7 +4940,7 @@ var Ds = 200, Os = Ht({
|
|
|
4900
4940
|
})
|
|
4901
4941
|
}), /* @__PURE__ */ F(Ne, { style: { marginTop: 6 } })]
|
|
4902
4942
|
});
|
|
4903
|
-
},
|
|
4943
|
+
}, js = () => ({
|
|
4904
4944
|
closeButton: H({
|
|
4905
4945
|
marginLeft: "auto",
|
|
4906
4946
|
position: "absolute",
|
|
@@ -4976,7 +5016,7 @@ var Ds = 200, Os = Ht({
|
|
|
4976
5016
|
paddingRight: "20px",
|
|
4977
5017
|
width: "100%"
|
|
4978
5018
|
})
|
|
4979
|
-
}),
|
|
5019
|
+
}), Ms = ({ isOpen: e, options: t, onClose: n }) => {
|
|
4980
5020
|
let { log: r } = G(), [i, a] = N(void 0);
|
|
4981
5021
|
r(i || "");
|
|
4982
5022
|
let o = M(null), [s, c] = N(400), { siteUrl: l, listId: u, itemId: d, name: f } = t, p = D(() => {
|
|
@@ -5010,13 +5050,14 @@ var Ds = 200, Os = Ht({
|
|
|
5010
5050
|
l,
|
|
5011
5051
|
u,
|
|
5012
5052
|
d
|
|
5013
|
-
]), /* @__PURE__ */ F(
|
|
5053
|
+
]), /* @__PURE__ */ F(Os, {
|
|
5014
5054
|
isOpen: e,
|
|
5015
5055
|
onDismiss: p,
|
|
5016
5056
|
maxHeight: "fit-content",
|
|
5017
5057
|
children: /* @__PURE__ */ F("iframe", {
|
|
5018
5058
|
ref: o,
|
|
5019
5059
|
src: i || "",
|
|
5060
|
+
title: "Share dialog",
|
|
5020
5061
|
style: {
|
|
5021
5062
|
width: "100%",
|
|
5022
5063
|
height: s,
|
|
@@ -5025,7 +5066,7 @@ var Ds = 200, Os = Ht({
|
|
|
5025
5066
|
onLoad: () => r("Iframe loaded")
|
|
5026
5067
|
})
|
|
5027
5068
|
});
|
|
5028
|
-
},
|
|
5069
|
+
}, Ns = () => j(() => ({
|
|
5029
5070
|
container: H({
|
|
5030
5071
|
display: "flex",
|
|
5031
5072
|
alignItems: "center",
|
|
@@ -5060,14 +5101,21 @@ var Ds = 200, Os = Ht({
|
|
|
5060
5101
|
textAlign: "center",
|
|
5061
5102
|
lineHeight: V.lineHeightBase400
|
|
5062
5103
|
})
|
|
5063
|
-
}), []),
|
|
5064
|
-
let n =
|
|
5104
|
+
}), []), Ps = ({ title: e, message: t }) => {
|
|
5105
|
+
let n = Ns();
|
|
5065
5106
|
return /* @__PURE__ */ F(he, {
|
|
5066
5107
|
className: n.container,
|
|
5108
|
+
role: "alert",
|
|
5109
|
+
"aria-live": "assertive",
|
|
5110
|
+
"aria-atomic": "true",
|
|
5067
5111
|
children: /* @__PURE__ */ I(J, {
|
|
5068
5112
|
gap: "l",
|
|
5069
5113
|
alignItems: "center",
|
|
5070
|
-
children: [/* @__PURE__ */ F(ir, {
|
|
5114
|
+
children: [/* @__PURE__ */ F(ir, {
|
|
5115
|
+
className: n.icon,
|
|
5116
|
+
"aria-hidden": "true",
|
|
5117
|
+
focusable: !1
|
|
5118
|
+
}), /* @__PURE__ */ I(J, {
|
|
5071
5119
|
gap: "s",
|
|
5072
5120
|
alignItems: "center",
|
|
5073
5121
|
children: [/* @__PURE__ */ F(Lt, {
|
|
@@ -5080,7 +5128,7 @@ var Ds = 200, Os = Ht({
|
|
|
5080
5128
|
})]
|
|
5081
5129
|
})
|
|
5082
5130
|
});
|
|
5083
|
-
},
|
|
5131
|
+
}, Fs = Ht({
|
|
5084
5132
|
root: {
|
|
5085
5133
|
display: "flex",
|
|
5086
5134
|
flexDirection: "row",
|
|
@@ -5103,16 +5151,21 @@ var Ds = 200, Os = Ht({
|
|
|
5103
5151
|
backgroundColor: V.colorStatusDangerBackground1
|
|
5104
5152
|
},
|
|
5105
5153
|
errorIcon: { height: "100%" }
|
|
5106
|
-
}),
|
|
5107
|
-
let { messageType: t, children: n, message: r } = e, i =
|
|
5154
|
+
}), Is = (e) => {
|
|
5155
|
+
let { messageType: t, children: n, message: r } = e, i = Fs(), [a, o] = w.useState(null), s = w.useCallback(() => /* @__PURE__ */ F(P, { children: /* @__PURE__ */ I("div", {
|
|
5108
5156
|
className: i.errorContainer,
|
|
5157
|
+
role: "alert",
|
|
5158
|
+
"aria-live": "assertive",
|
|
5159
|
+
"aria-atomic": "true",
|
|
5109
5160
|
children: [/* @__PURE__ */ F("div", {
|
|
5110
5161
|
className: i.errorIcon,
|
|
5111
|
-
children: /* @__PURE__ */ F(
|
|
5162
|
+
children: /* @__PURE__ */ F(Dr, {
|
|
5112
5163
|
icon: "fluent:error-circle-12-regular",
|
|
5113
5164
|
width: "32",
|
|
5114
5165
|
height: "32",
|
|
5115
|
-
color: V.colorStatusDangerForeground1
|
|
5166
|
+
color: V.colorStatusDangerForeground1,
|
|
5167
|
+
"aria-hidden": "true",
|
|
5168
|
+
focusable: "false"
|
|
5116
5169
|
})
|
|
5117
5170
|
}), /* @__PURE__ */ F(ue, { children: r })]
|
|
5118
5171
|
}) }), [
|
|
@@ -5122,23 +5175,26 @@ var Ds = 200, Os = Ht({
|
|
|
5122
5175
|
]);
|
|
5123
5176
|
return w.useEffect(() => {
|
|
5124
5177
|
switch (t) {
|
|
5125
|
-
case
|
|
5178
|
+
case Fi.SUCCESS:
|
|
5126
5179
|
o(/* @__PURE__ */ F(Gn, { primaryFill: V.colorStatusSuccessForeground1 }));
|
|
5127
5180
|
break;
|
|
5128
|
-
case
|
|
5181
|
+
case Fi.INFO:
|
|
5129
5182
|
o(/* @__PURE__ */ F(or, { primaryFill: V.colorStatusWarningForeground1 }));
|
|
5130
5183
|
break;
|
|
5131
5184
|
default: break;
|
|
5132
5185
|
}
|
|
5133
|
-
}, [t]), t ===
|
|
5186
|
+
}, [t]), t === Fi.ERROR ? /* @__PURE__ */ F(s, {}) : /* @__PURE__ */ F(P, { children: /* @__PURE__ */ I("div", {
|
|
5134
5187
|
className: i.root,
|
|
5188
|
+
role: "status",
|
|
5189
|
+
"aria-live": "polite",
|
|
5190
|
+
"aria-atomic": "true",
|
|
5135
5191
|
children: [
|
|
5136
5192
|
a,
|
|
5137
5193
|
/* @__PURE__ */ F(de, { children: r }),
|
|
5138
5194
|
n
|
|
5139
5195
|
]
|
|
5140
5196
|
}) });
|
|
5141
|
-
},
|
|
5197
|
+
}, Ls = () => ({
|
|
5142
5198
|
container: H({
|
|
5143
5199
|
display: "flex",
|
|
5144
5200
|
flexWrap: "nowrap",
|
|
@@ -5161,14 +5217,16 @@ var Ds = 200, Os = Ht({
|
|
|
5161
5217
|
cursor: "pointer",
|
|
5162
5218
|
minWidth: 107
|
|
5163
5219
|
})
|
|
5164
|
-
}),
|
|
5165
|
-
let a =
|
|
5220
|
+
}), Rs = ({ items: e, selectedItemId: t, onSelectedItem: n, renderControl: r, theme: i }) => {
|
|
5221
|
+
let a = Ls(), o = w.useCallback((e) => {
|
|
5166
5222
|
n && n(e);
|
|
5167
5223
|
}, [n]);
|
|
5168
5224
|
return /* @__PURE__ */ F(ut, { children: /* @__PURE__ */ I(Be, {
|
|
5169
5225
|
theme: i,
|
|
5170
5226
|
children: [" ", /* @__PURE__ */ I("div", {
|
|
5171
5227
|
className: B(a.container),
|
|
5228
|
+
role: "toolbar",
|
|
5229
|
+
"aria-label": "Control bar",
|
|
5172
5230
|
children: [
|
|
5173
5231
|
e.map((e) => {
|
|
5174
5232
|
let n = e.id === t;
|
|
@@ -5178,7 +5236,7 @@ var Ds = 200, Os = Ht({
|
|
|
5178
5236
|
children: r(e, n, () => o(e.id))
|
|
5179
5237
|
}, e.id);
|
|
5180
5238
|
}),
|
|
5181
|
-
/* @__PURE__ */ F(
|
|
5239
|
+
/* @__PURE__ */ F(Bs, {
|
|
5182
5240
|
items: e,
|
|
5183
5241
|
onSelectedItem: o,
|
|
5184
5242
|
theme: i
|
|
@@ -5187,11 +5245,11 @@ var Ds = 200, Os = Ht({
|
|
|
5187
5245
|
]
|
|
5188
5246
|
})]
|
|
5189
5247
|
}) });
|
|
5190
|
-
},
|
|
5248
|
+
}, zs = ({ item: e, onSelectedItem: t }) => Yt(e.id) ? null : /* @__PURE__ */ F(Je, {
|
|
5191
5249
|
icon: e.icon,
|
|
5192
5250
|
onClick: () => t(e.id),
|
|
5193
5251
|
children: /* @__PURE__ */ F("div", { children: e.name })
|
|
5194
|
-
}, e.id),
|
|
5252
|
+
}, e.id), Bs = ({ items: e, onSelectedItem: t, theme: n }) => {
|
|
5195
5253
|
let { ref: r, overflowCount: i, isOverflowing: a } = Xt(), o = w.useMemo(() => wr(cr, lr), []);
|
|
5196
5254
|
return a ? /* @__PURE__ */ F(Ve, {
|
|
5197
5255
|
value: "menu-over-",
|
|
@@ -5206,29 +5264,30 @@ var Ds = 200, Os = Ht({
|
|
|
5206
5264
|
"aria-label": `${i} more options`,
|
|
5207
5265
|
role: "button"
|
|
5208
5266
|
})
|
|
5209
|
-
}), /* @__PURE__ */ F(Ze, { children: /* @__PURE__ */ F(Xe, { children: e.map((e) => /* @__PURE__ */ F(
|
|
5267
|
+
}), /* @__PURE__ */ F(Ze, { children: /* @__PURE__ */ F(Xe, { children: e.map((e) => /* @__PURE__ */ F(zs, {
|
|
5210
5268
|
item: e,
|
|
5211
5269
|
onSelectedItem: t
|
|
5212
5270
|
}, e.id)) }) })] })
|
|
5213
5271
|
})
|
|
5214
5272
|
}) : null;
|
|
5215
|
-
},
|
|
5273
|
+
}, Vs = ({ id: e, children: t }) => Yt(e) ? null : /* @__PURE__ */ F(Je, { children: t }), Hs = ({ items: e, renderItem: t, keyExtractor: n }) => {
|
|
5216
5274
|
let { ref: r, overflowCount: i, isOverflowing: a } = Xt();
|
|
5217
5275
|
return a ? /* @__PURE__ */ I(Ke, { children: [/* @__PURE__ */ F(Qe, {
|
|
5218
5276
|
disableButtonEnhancement: !0,
|
|
5219
5277
|
children: /* @__PURE__ */ I(qe, {
|
|
5220
5278
|
ref: r,
|
|
5279
|
+
"aria-label": `+${i} more items`,
|
|
5221
5280
|
children: [
|
|
5222
5281
|
"+",
|
|
5223
5282
|
i,
|
|
5224
5283
|
" items"
|
|
5225
5284
|
]
|
|
5226
5285
|
})
|
|
5227
|
-
}), /* @__PURE__ */ F(Ze, { children: /* @__PURE__ */ F(Xe, { children: e.map((e) => /* @__PURE__ */ F(
|
|
5286
|
+
}), /* @__PURE__ */ F(Ze, { children: /* @__PURE__ */ F(Xe, { children: e.map((e) => /* @__PURE__ */ F(Vs, {
|
|
5228
5287
|
id: n(e),
|
|
5229
5288
|
children: t(e)
|
|
5230
5289
|
}, n(e))) }) })] }) : null;
|
|
5231
|
-
},
|
|
5290
|
+
}, Us = T.memo(({ items: e, open: t = !0, defaultOpen: n, drawerType: r = "inline", size: i = "small", appItem: a, header: o, footer: s, selectedKey: c, defaultSelectedKey: l, selectedCategoryKey: u, onNavigate: d, multiple: f = !0, density: p = "medium", defaultOpenCategories: m, openCategories: h, onCategoryToggle: g, className: _, style: v }) => {
|
|
5232
5291
|
let y = T.useMemo(() => {
|
|
5233
5292
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
5234
5293
|
for (let r of e) t.set(r.key, r), r.children && n(r.children);
|
|
@@ -5299,10 +5358,10 @@ var Ds = 200, Os = Ht({
|
|
|
5299
5358
|
]
|
|
5300
5359
|
});
|
|
5301
5360
|
});
|
|
5302
|
-
|
|
5361
|
+
Us.displayName = "Navigation";
|
|
5303
5362
|
//#endregion
|
|
5304
5363
|
//#region src/components/Navigation/useNavigationStyles.ts
|
|
5305
|
-
var
|
|
5364
|
+
var Ws = () => ({
|
|
5306
5365
|
root: H({ width: "100%" }),
|
|
5307
5366
|
sectionHeader: H({
|
|
5308
5367
|
color: V.colorNeutralForeground3,
|
|
@@ -5312,7 +5371,7 @@ var Gs = () => ({
|
|
|
5312
5371
|
textTransform: "uppercase",
|
|
5313
5372
|
letterSpacing: "0.5px"
|
|
5314
5373
|
})
|
|
5315
|
-
}),
|
|
5374
|
+
}), Gs = (e) => ({
|
|
5316
5375
|
videoPlayerContainer: H({
|
|
5317
5376
|
position: "relative",
|
|
5318
5377
|
width: e.width,
|
|
@@ -5332,11 +5391,13 @@ var Gs = () => ({
|
|
|
5332
5391
|
zIndex: 1,
|
|
5333
5392
|
userSelect: "none"
|
|
5334
5393
|
})
|
|
5335
|
-
}),
|
|
5336
|
-
let { url: t, controls: n = !0, width: r = "100%", height: i = "100%", loop: a = !1, muted: o = !1 } = e, [s, c] = N(!1), l =
|
|
5394
|
+
}), Ks = (e) => {
|
|
5395
|
+
let { url: t, controls: n = !0, width: r = "100%", height: i = "100%", loop: a = !1, muted: o = !1 } = e, [s, c] = N(!1), l = Gs(e);
|
|
5337
5396
|
return /* @__PURE__ */ F("div", {
|
|
5338
5397
|
className: l.videoPlayerContainer,
|
|
5339
|
-
|
|
5398
|
+
role: "region",
|
|
5399
|
+
"aria-label": "Video player",
|
|
5400
|
+
children: /* @__PURE__ */ F(Br, {
|
|
5340
5401
|
url: t,
|
|
5341
5402
|
controls: n,
|
|
5342
5403
|
width: r,
|
|
@@ -5349,11 +5410,11 @@ var Gs = () => ({
|
|
|
5349
5410
|
className: l.reactPlayer
|
|
5350
5411
|
})
|
|
5351
5412
|
});
|
|
5352
|
-
}, Js = "spteck-react-controls-maplibre-styles", Ys = (e) => {
|
|
5413
|
+
}, qs = ".maplibregl-map{-webkit-tap-highlight-color:#0000;font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;position:relative;overflow:hidden}.maplibregl-canvas{position:absolute;top:0;left:0}.maplibregl-map:fullscreen{width:100%;height:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;z-index:2;position:absolute}.maplibregl-ctrl-top-left{top:0;left:0}.maplibregl-ctrl-top-right{top:0;right:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px buttontext}}.maplibregl-ctrl-group button{box-sizing:border-box;cursor:pointer;background-color:#0000;border:0;outline:none;width:29px;height:29px;padding:0;display:block}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;width:100%;height:100%;display:block}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:#0000}.maplibregl-ctrl-group button+button{border-top:1px solid buttontext}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}@media (hover:hover){.maplibregl-ctrl button:not(:disabled):hover{background-color:#0000000d}}.maplibregl-ctrl button:not(:disabled):active{background-color:#0000000d}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E\")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E\")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E\")}}.maplibregl-ctrl button.maplibregl-ctrl-globe .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%23333' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-globe-enabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' stroke='%2333b5e5' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8.5'/%3E%3Cpath d='M17.5 11c0 4.819-3.02 8.5-6.5 8.5S4.5 15.819 4.5 11 7.52 2.5 11 2.5s6.5 3.681 6.5 8.5Z'/%3E%3Cpath d='M13.5 11c0 2.447-.331 4.64-.853 6.206-.262.785-.562 1.384-.872 1.777-.314.399-.58.517-.775.517s-.461-.118-.775-.517c-.31-.393-.61-.992-.872-1.777C8.831 15.64 8.5 13.446 8.5 11s.331-4.64.853-6.206c.262-.785.562-1.384.872-1.777.314-.399.58-.517.775-.517s.461.118.775.517c.31.393.61.992.872 1.777.522 1.565.853 3.76.853 6.206Z'/%3E%3Cpath d='M11 7.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138q.07-.058.224-.138c.299-.151.763-.302 1.379-.434C7.378 5.666 9.091 5.5 11 5.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138q-.07.058-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428ZM4.486 6.436ZM11 16.5c-1.909 0-3.622-.166-4.845-.428-.616-.132-1.08-.283-1.379-.434a1.3 1.3 0 0 1-.224-.138 1.3 1.3 0 0 1 .224-.138c.299-.151.763-.302 1.379-.434C7.378 14.666 9.091 14.5 11 14.5s3.622.166 4.845.428c.616.132 1.08.283 1.379.434.105.053.177.1.224.138a1.3 1.3 0 0 1-.224.138c-.299.151-.763.302-1.379.434-1.223.262-2.936.428-4.845.428Zm-6.514-1.064ZM11 12.5c-2.46 0-4.672-.222-6.255-.574-.796-.177-1.406-.38-1.805-.59a1.5 1.5 0 0 1-.39-.272.3.3 0 0 1-.047-.064.3.3 0 0 1 .048-.064c.066-.073.189-.167.389-.272.399-.21 1.009-.413 1.805-.59C6.328 9.722 8.54 9.5 11 9.5s4.672.222 6.256.574c.795.177 1.405.38 1.804.59.2.105.323.2.39.272a.3.3 0 0 1 .047.064.3.3 0 0 1-.048.064 1.4 1.4 0 0 1-.389.272c-.399.21-1.009.413-1.804.59-1.584.352-3.796.574-6.256.574Zm-8.501-1.51v.002zm0 .018v.002zm17.002.002v-.002zm0-.018v-.002z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:2s linear infinite maplibregl-spin}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E\")}}@keyframes maplibregl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{cursor:pointer;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E\");background-repeat:no-repeat;width:88px;height:23px;margin:0 0 -4px -4px;display:block;overflow:hidden}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:#0000;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E\")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E\")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{box-sizing:content-box;color:#000;background-color:#fff;border-radius:12px;min-height:20px;margin:10px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{visibility:visible;padding:2px 28px 2px 8px}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{box-sizing:border-box;cursor:pointer;background-color:#ffffff80;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\");border:0;border-radius:12px;outline:none;width:24px;height:24px;display:none;position:absolute;top:0;right:0}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:#0000000d}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;right:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{top:0;left:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E\")}}.maplibregl-ctrl-attrib a{color:#000000bf;text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{box-sizing:border-box;color:#333;white-space:nowrap;background-color:#ffffffbf;border:2px solid #333;border-top:#333;padding:0 5px;font-size:10px}.maplibregl-popup{pointer-events:none;will-change:transform;display:flex;position:absolute;top:0;left:0}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{z-index:1;border:10px solid #0000;width:0;height:0}.maplibregl-popup-anchor-top .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;align-self:center}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;border-left:none;align-self:flex-start}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{border-top:none;border-bottom-color:#fff;border-right:none;align-self:flex-end}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;align-self:center}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;border-left:none;align-self:flex-start}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{border-top-color:#fff;border-bottom:none;border-right:none;align-self:flex-end}.maplibregl-popup-anchor-left .maplibregl-popup-tip{border-left:none;border-right-color:#fff;align-self:center}.maplibregl-popup-anchor-right .maplibregl-popup-tip{border-left-color:#fff;border-right:none;align-self:center}.maplibregl-popup-close-button{cursor:pointer;background-color:#0000;border:0;border-radius:0 3px 0 0;position:absolute;top:0;right:0}.maplibregl-popup-close-button:hover{background-color:#0000000d}.maplibregl-popup-content{pointer-events:auto;background:#fff;border-radius:3px;padding:15px 10px;position:relative;box-shadow:0 1px 2px #0000001a}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{will-change:transform;transition:opacity .2s;position:absolute;top:0;left:0}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;width:15px;height:15px}.maplibregl-user-location-dot:before{content:\"\";animation:2s infinite maplibregl-user-location-dot-pulse;position:absolute}.maplibregl-user-location-dot:after{box-sizing:border-box;content:\"\";border:2px solid #fff;border-radius:50%;width:19px;height:19px;position:absolute;top:-2px;left:-2px;box-shadow:0 0 3px #00000059}@media (prefers-reduced-motion:reduce){.maplibregl-user-location-dot:before{animation:none}}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;width:1px;height:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{opacity:.5;background:#fff;border:2px dotted #202020;width:0;height:0;position:absolute;top:0;left:0}.maplibregl-cooperative-gesture-screen{color:#fff;opacity:0;pointer-events:none;z-index:99999;background:#0006;justify-content:center;align-items:center;padding:1rem;font-size:1.4em;line-height:1.2;transition:opacity 1s 1s;display:flex;position:absolute;inset:0}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity 50ms}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(pointer:coarse){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{z-index:99999;width:100%!important;height:100%!important;position:fixed!important;top:0!important;left:0!important}", Js = "spteck-react-controls-maplibre-styles", Ys = (e) => {
|
|
5353
5414
|
let t = e ?? (typeof document < "u" ? document : void 0);
|
|
5354
5415
|
if (!t || t.getElementById(Js)) return;
|
|
5355
5416
|
let n = t.createElement("style");
|
|
5356
|
-
n.id = Js, n.textContent =
|
|
5417
|
+
n.id = Js, n.textContent = qs, t.head.appendChild(n);
|
|
5357
5418
|
}, Xs = H`
|
|
5358
5419
|
position: absolute;
|
|
5359
5420
|
top: 16px;
|
|
@@ -5464,7 +5525,12 @@ var Gs = () => ({
|
|
|
5464
5525
|
src: e.imageUrl,
|
|
5465
5526
|
alt: e.name,
|
|
5466
5527
|
className: t || ec,
|
|
5467
|
-
|
|
5528
|
+
role: "button",
|
|
5529
|
+
tabIndex: 0,
|
|
5530
|
+
onClick: () => n?.(e),
|
|
5531
|
+
onKeyDown: (t) => {
|
|
5532
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), n?.(e));
|
|
5533
|
+
}
|
|
5468
5534
|
})
|
|
5469
5535
|
}), ic = (e) => {
|
|
5470
5536
|
let [t, n] = N(void 0), { error: r } = G();
|
|
@@ -5502,7 +5568,7 @@ var Gs = () => ({
|
|
|
5502
5568
|
if (!o.current || c.length === 0) return;
|
|
5503
5569
|
let e = c.map((e) => e.coordinates[0]), t = c.map((e) => e.coordinates[1]);
|
|
5504
5570
|
o.current.getMap().fitBounds([[Math.min(...e), Math.min(...t)], [Math.max(...e), Math.max(...t)]], { padding: i });
|
|
5505
|
-
}, [c, i]), s ? /* @__PURE__ */ I(
|
|
5571
|
+
}, [c, i]), s ? /* @__PURE__ */ I(Vr, {
|
|
5506
5572
|
ref: o,
|
|
5507
5573
|
initialViewState: {
|
|
5508
5574
|
longitude: 0,
|
|
@@ -5519,7 +5585,7 @@ var Gs = () => ({
|
|
|
5519
5585
|
latitude: 20,
|
|
5520
5586
|
zoom: 1
|
|
5521
5587
|
}
|
|
5522
|
-
}), c.map((e) => /* @__PURE__ */ F(
|
|
5588
|
+
}), c.map((e) => /* @__PURE__ */ F(Hr, {
|
|
5523
5589
|
longitude: e.coordinates[0],
|
|
5524
5590
|
latitude: e.coordinates[1],
|
|
5525
5591
|
anchor: "center",
|
|
@@ -5533,7 +5599,7 @@ var Gs = () => ({
|
|
|
5533
5599
|
}, cc = /* @__PURE__ */ function(e) {
|
|
5534
5600
|
return e[e.SharePoint = 0] = "SharePoint", e[e.Teams = 1] = "Teams", e[e.TeamsDark = 2] = "TeamsDark", e[e.TeamsHighContrast = 3] = "TeamsHighContrast", e;
|
|
5535
5601
|
}({}), lc = (e, t) => {
|
|
5536
|
-
let n =
|
|
5602
|
+
let n = pi();
|
|
5537
5603
|
n.put(`.${t}-ac-container:focus`, { outline: "none !important" }), n.put(`.${t}-ac-adaptiveCard:focus`, { outline: "none !important" }), n.put(`.${t}-ac-pushButton`, {
|
|
5538
5604
|
overflow: "hidden",
|
|
5539
5605
|
textOverflow: "ellipsis",
|
|
@@ -5629,7 +5695,7 @@ var Gs = () => ({
|
|
|
5629
5695
|
backgroundColor: e.colorNeutralBackgroundDisabled,
|
|
5630
5696
|
color: e.colorNeutralForegroundDisabled
|
|
5631
5697
|
});
|
|
5632
|
-
}, uc = (e) => new
|
|
5698
|
+
}, uc = (e) => new $r({
|
|
5633
5699
|
fontFamily: e.fontFamilyBase,
|
|
5634
5700
|
separator: {
|
|
5635
5701
|
lineThickness: 1,
|
|
@@ -5758,10 +5824,10 @@ var Gs = () => ({
|
|
|
5758
5824
|
}
|
|
5759
5825
|
return n.hostConfig.cssClassNamePrefix = `ach${Math.random().toString().replace(/\./g, "")}`, fc(n.hostConfig, n.theme), lc(n.theme, n.hostConfig.cssClassNamePrefix), n;
|
|
5760
5826
|
}, hc = (e) => {
|
|
5761
|
-
|
|
5762
|
-
n.outputHtml = new
|
|
5827
|
+
Kr.onProcessMarkdown ||= (t, n) => {
|
|
5828
|
+
n.outputHtml = new mi.default().render(t), n.didProcess = !0;
|
|
5763
5829
|
try {
|
|
5764
|
-
n.outputHtml = new
|
|
5830
|
+
n.outputHtml = new mi.default().render(t), n.didProcess = !0;
|
|
5765
5831
|
} catch (t) {
|
|
5766
5832
|
e && e("AdaptiveCardHost: Error parsing Markdown", t instanceof Error ? t : void 0), n.didProcess = !1;
|
|
5767
5833
|
}
|
|
@@ -5822,24 +5888,15 @@ var Gs = () => ({
|
|
|
5822
5888
|
...e?.$root,
|
|
5823
5889
|
"@context": i
|
|
5824
5890
|
} } : { $root: { "@context": i } }, r;
|
|
5825
|
-
}
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
function vc(e) {
|
|
5831
|
-
return _c ? _c(e) : {
|
|
5832
|
-
render(t) {
|
|
5833
|
-
Tr.render(t, e);
|
|
5834
|
-
},
|
|
5835
|
-
unmount() {
|
|
5836
|
-
Tr.unmountComponentAtNode(e);
|
|
5837
|
-
}
|
|
5838
|
-
};
|
|
5891
|
+
};
|
|
5892
|
+
//#endregion
|
|
5893
|
+
//#region src/components/adaptiveCardHost/fluentUI/renderCompat.ts
|
|
5894
|
+
function _c(e) {
|
|
5895
|
+
return gi(e);
|
|
5839
5896
|
}
|
|
5840
5897
|
//#endregion
|
|
5841
5898
|
//#region src/components/adaptiveCardHost/fluentUI/Actions.tsx
|
|
5842
|
-
var
|
|
5899
|
+
var vc = (e) => {
|
|
5843
5900
|
let t;
|
|
5844
5901
|
return t = e.iconUrl ? /* @__PURE__ */ F(R, {
|
|
5845
5902
|
className: e.className,
|
|
@@ -5848,7 +5905,7 @@ var yc = (e) => {
|
|
|
5848
5905
|
children: /* @__PURE__ */ I("div", {
|
|
5849
5906
|
style: {
|
|
5850
5907
|
display: "flex",
|
|
5851
|
-
flexDirection: e.iconPlacement ===
|
|
5908
|
+
flexDirection: e.iconPlacement === Si.LeftOfTitle ? "row" : "column",
|
|
5852
5909
|
justifyContent: "center",
|
|
5853
5910
|
alignItems: "center"
|
|
5854
5911
|
},
|
|
@@ -5858,8 +5915,8 @@ var yc = (e) => {
|
|
|
5858
5915
|
width: e.iconSize,
|
|
5859
5916
|
height: e.iconSize,
|
|
5860
5917
|
flexShrink: 0,
|
|
5861
|
-
marginRight: e.iconPlacement ===
|
|
5862
|
-
marginBottom: e.iconPlacement ===
|
|
5918
|
+
marginRight: e.iconPlacement === Si.LeftOfTitle ? 4 : 0,
|
|
5919
|
+
marginBottom: e.iconPlacement === Si.LeftOfTitle ? 0 : 4
|
|
5863
5920
|
},
|
|
5864
5921
|
alt: ""
|
|
5865
5922
|
}), /* @__PURE__ */ F("span", { children: e.text })]
|
|
@@ -5874,15 +5931,15 @@ var yc = (e) => {
|
|
|
5874
5931
|
onClick: e.actionClickHandler,
|
|
5875
5932
|
children: e.text
|
|
5876
5933
|
}), t;
|
|
5877
|
-
},
|
|
5934
|
+
}, yc = (e, t, n, r, i, a, o, s) => {
|
|
5878
5935
|
let c = document.createElement("div");
|
|
5879
5936
|
c.className = "fluentUI";
|
|
5880
|
-
let l =
|
|
5937
|
+
let l = _c(c);
|
|
5881
5938
|
l.render(/* @__PURE__ */ F(Ve, {
|
|
5882
|
-
value:
|
|
5939
|
+
value: fi(),
|
|
5883
5940
|
children: /* @__PURE__ */ F(Be, {
|
|
5884
5941
|
theme: s,
|
|
5885
|
-
children: /* @__PURE__ */ F(
|
|
5942
|
+
children: /* @__PURE__ */ F(vc, {
|
|
5886
5943
|
text: e,
|
|
5887
5944
|
className: n,
|
|
5888
5945
|
iconUrl: t,
|
|
@@ -5911,7 +5968,7 @@ var yc = (e) => {
|
|
|
5911
5968
|
});
|
|
5912
5969
|
}
|
|
5913
5970
|
return c;
|
|
5914
|
-
},
|
|
5971
|
+
}, bc = class extends _i {
|
|
5915
5972
|
updateCssClasses() {}
|
|
5916
5973
|
actionClickHandler = (e) => {
|
|
5917
5974
|
e.stopPropagation(), e.preventDefault(), this.execute();
|
|
@@ -5921,9 +5978,9 @@ var yc = (e) => {
|
|
|
5921
5978
|
iconPlacement: "left",
|
|
5922
5979
|
iconSize: 24
|
|
5923
5980
|
};
|
|
5924
|
-
this._renderedElement =
|
|
5981
|
+
this._renderedElement = yc(this.title ?? "", this.iconUrl || "", e || "", n.iconPlacement, n.iconSize, this.actionClickHandler, this.style, t);
|
|
5925
5982
|
}
|
|
5926
|
-
},
|
|
5983
|
+
}, xc = class extends vi {
|
|
5927
5984
|
updateCssClasses() {}
|
|
5928
5985
|
actionClickHandler = (e) => {
|
|
5929
5986
|
e.stopPropagation(), e.preventDefault(), this.execute();
|
|
@@ -5933,9 +5990,9 @@ var yc = (e) => {
|
|
|
5933
5990
|
iconPlacement: "left",
|
|
5934
5991
|
iconSize: 24
|
|
5935
5992
|
};
|
|
5936
|
-
this._renderedElement =
|
|
5993
|
+
this._renderedElement = yc(this.title ?? "", this.iconUrl || "", e || "", n.iconPlacement, n.iconSize, this.actionClickHandler, this.style, t);
|
|
5937
5994
|
}
|
|
5938
|
-
},
|
|
5995
|
+
}, Sc = class extends yi {
|
|
5939
5996
|
updateCssClasses() {
|
|
5940
5997
|
if (this.renderedElement) {
|
|
5941
5998
|
let e = this.state === 1;
|
|
@@ -5950,9 +6007,9 @@ var yc = (e) => {
|
|
|
5950
6007
|
iconPlacement: "left",
|
|
5951
6008
|
iconSize: 24
|
|
5952
6009
|
};
|
|
5953
|
-
this._renderedElement =
|
|
6010
|
+
this._renderedElement = yc(this.title || "Default Title", this.iconUrl || "", this.iconUrl ?? "", t.iconPlacement, t.iconSize, this.actionClickHandler, this.style);
|
|
5954
6011
|
}
|
|
5955
|
-
},
|
|
6012
|
+
}, Cc = class extends bi {
|
|
5956
6013
|
updateCssClasses() {}
|
|
5957
6014
|
actionClickHandler = (e) => {
|
|
5958
6015
|
e.stopPropagation(), e.preventDefault(), this.execute();
|
|
@@ -5962,9 +6019,9 @@ var yc = (e) => {
|
|
|
5962
6019
|
iconPlacement: "left",
|
|
5963
6020
|
iconSize: 24
|
|
5964
6021
|
};
|
|
5965
|
-
this._renderedElement =
|
|
6022
|
+
this._renderedElement = yc(this.title ?? "", this.iconUrl ?? "", e || "", n.iconPlacement, n.iconSize, this.actionClickHandler, this.style, t);
|
|
5966
6023
|
}
|
|
5967
|
-
},
|
|
6024
|
+
}, wc = class extends xi {
|
|
5968
6025
|
updateCssClasses() {
|
|
5969
6026
|
if (this.renderedElement) {
|
|
5970
6027
|
let e = this.state === 1;
|
|
@@ -5979,17 +6036,17 @@ var yc = (e) => {
|
|
|
5979
6036
|
iconPlacement: "left",
|
|
5980
6037
|
iconSize: 24
|
|
5981
6038
|
};
|
|
5982
|
-
this._renderedElement =
|
|
6039
|
+
this._renderedElement = yc(this.title ?? "", this.iconUrl ?? "", e || "", n.iconPlacement, n.iconSize, this.actionClickHandler, this.style, t);
|
|
5983
6040
|
}
|
|
5984
6041
|
};
|
|
5985
|
-
function
|
|
5986
|
-
e.register("Action.Submit",
|
|
6042
|
+
function Tc(e) {
|
|
6043
|
+
e.register("Action.Submit", Cc), e.register("Action.OpenUrl", xc), e.register("Action.ShowCard", Sc), e.register("Action.ToggleVisibility", wc), e.register("Action.Execute", bc);
|
|
5987
6044
|
}
|
|
5988
6045
|
//#endregion
|
|
5989
6046
|
//#region src/components/adaptiveCardHost/fluentUI/internalRender.tsx
|
|
5990
|
-
var
|
|
6047
|
+
var Ec = (e) => {
|
|
5991
6048
|
let t = document.createElement("div");
|
|
5992
|
-
return
|
|
6049
|
+
return _c(t).render(e()), t;
|
|
5993
6050
|
};
|
|
5994
6051
|
//#endregion
|
|
5995
6052
|
//#region \0@oxc-project+runtime@0.122.0/helpers/decorateMetadata.js
|
|
@@ -6006,10 +6063,10 @@ function $(e, t, n, r) {
|
|
|
6006
6063
|
}
|
|
6007
6064
|
//#endregion
|
|
6008
6065
|
//#region src/components/adaptiveCardHost/fluentUI/FluentUIChoiceSetInput.tsx
|
|
6009
|
-
var
|
|
6010
|
-
static valueProperty = new
|
|
6011
|
-
static choicesProperty = new
|
|
6012
|
-
static styleProperty = new
|
|
6066
|
+
var Dc = class extends ei {
|
|
6067
|
+
static valueProperty = new oi(U.v1_5, "value");
|
|
6068
|
+
static choicesProperty = new ii(U.v1_5, "choices", Yr);
|
|
6069
|
+
static styleProperty = new di(U.v1_5, "style", [
|
|
6013
6070
|
{ value: "compact" },
|
|
6014
6071
|
{ value: "expanded" },
|
|
6015
6072
|
{
|
|
@@ -6017,9 +6074,9 @@ var Oc = class extends ni {
|
|
|
6017
6074
|
targetVersion: U.v1_5
|
|
6018
6075
|
}
|
|
6019
6076
|
], "compact");
|
|
6020
|
-
static isMultiSelectProperty = new
|
|
6021
|
-
static placeholderProperty = new
|
|
6022
|
-
static wrapProperty = new
|
|
6077
|
+
static isMultiSelectProperty = new qr(U.v1_5, "isMultiSelect", !1);
|
|
6078
|
+
static placeholderProperty = new oi(U.v1_5, "placeholder");
|
|
6079
|
+
static wrapProperty = new qr(U.v1_5, "wrap", !1);
|
|
6023
6080
|
defaultValue;
|
|
6024
6081
|
style;
|
|
6025
6082
|
get isCompact() {
|
|
@@ -6077,9 +6134,9 @@ var Oc = class extends ni {
|
|
|
6077
6134
|
}, e.key))
|
|
6078
6135
|
});
|
|
6079
6136
|
};
|
|
6080
|
-
return this.element =
|
|
6137
|
+
return this.element = Ec(() => /* @__PURE__ */ I(P, { children: [
|
|
6081
6138
|
!this.isMultiSelect && this.style === "expanded" && /* @__PURE__ */ F(Ve, {
|
|
6082
|
-
value:
|
|
6139
|
+
value: fi(),
|
|
6083
6140
|
children: /* @__PURE__ */ F(Be, {
|
|
6084
6141
|
theme: e,
|
|
6085
6142
|
children: /* @__PURE__ */ F(yt, {
|
|
@@ -6106,7 +6163,7 @@ var Oc = class extends ni {
|
|
|
6106
6163
|
children: this.choices.map((t, n) => {
|
|
6107
6164
|
let r = this.defaultSelectedValues.indexOf(t.value ?? "") > -1;
|
|
6108
6165
|
return /* @__PURE__ */ F(Ve, {
|
|
6109
|
-
value:
|
|
6166
|
+
value: fi(),
|
|
6110
6167
|
children: /* @__PURE__ */ F(Be, {
|
|
6111
6168
|
theme: e,
|
|
6112
6169
|
children: /* @__PURE__ */ F(ye, {
|
|
@@ -6124,7 +6181,7 @@ var Oc = class extends ni {
|
|
|
6124
6181
|
})
|
|
6125
6182
|
}),
|
|
6126
6183
|
(this.style === "compact" || this.style === "filtered") && /* @__PURE__ */ F(Ve, {
|
|
6127
|
-
value:
|
|
6184
|
+
value: fi(),
|
|
6128
6185
|
children: /* @__PURE__ */ F(Be, {
|
|
6129
6186
|
theme: e,
|
|
6130
6187
|
children: /* @__PURE__ */ F(n, {})
|
|
@@ -6139,8 +6196,8 @@ var Oc = class extends ni {
|
|
|
6139
6196
|
this.refControl && this.refControl.focus && this.refControl.focus();
|
|
6140
6197
|
}
|
|
6141
6198
|
internalValidateProperties(e) {
|
|
6142
|
-
super.internalValidateProperties(e), this.choices.length === 0 && e.addFailure(this,
|
|
6143
|
-
for (let t of this.choices) (!t.title || !t.value) && e.addFailure(this,
|
|
6199
|
+
super.internalValidateProperties(e), this.choices.length === 0 && e.addFailure(this, ui.CollectionCantBeEmpty, si.errors.choiceSetMustHaveAtLeastOneChoice());
|
|
6200
|
+
for (let t of this.choices) (!t.title || !t.value) && e.addFailure(this, ui.PropertyCantBeNull, si.errors.choiceSetChoicesMustHaveTitleAndValue());
|
|
6144
6201
|
}
|
|
6145
6202
|
isSet() {
|
|
6146
6203
|
return !!this.value;
|
|
@@ -6152,14 +6209,14 @@ var Oc = class extends ni {
|
|
|
6152
6209
|
if (this.selectedValues) return this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator);
|
|
6153
6210
|
}
|
|
6154
6211
|
};
|
|
6155
|
-
$([W(
|
|
6212
|
+
$([W(Dc.valueProperty), Q("design:type", String)], Dc.prototype, "defaultValue", void 0), $([W(Dc.styleProperty), Q("design:type", String)], Dc.prototype, "style", void 0), $([W(Dc.isMultiSelectProperty), Q("design:type", Boolean)], Dc.prototype, "isMultiSelect", void 0), $([W(Dc.placeholderProperty), Q("design:type", String)], Dc.prototype, "placeholder", void 0), $([W(Dc.wrapProperty), Q("design:type", Boolean)], Dc.prototype, "wrap", void 0), $([W(Dc.choicesProperty), Q("design:type", Array)], Dc.prototype, "choices", void 0);
|
|
6156
6213
|
//#endregion
|
|
6157
6214
|
//#region src/components/adaptiveCardHost/fluentUI/FluentUIDateInput.tsx
|
|
6158
|
-
var
|
|
6159
|
-
static valueProperty = new
|
|
6160
|
-
static placeholderProperty = new
|
|
6161
|
-
static minProperty = new
|
|
6162
|
-
static maxProperty = new
|
|
6215
|
+
var Oc = class extends ei {
|
|
6216
|
+
static valueProperty = new oi(U.v1_5, "value");
|
|
6217
|
+
static placeholderProperty = new oi(U.v1_5, "placeholder");
|
|
6218
|
+
static minProperty = new oi(U.v1_0, "min");
|
|
6219
|
+
static maxProperty = new oi(U.v1_0, "max");
|
|
6163
6220
|
defaultValue;
|
|
6164
6221
|
min;
|
|
6165
6222
|
max;
|
|
@@ -6169,11 +6226,11 @@ var kc = class extends ni {
|
|
|
6169
6226
|
element;
|
|
6170
6227
|
internalRender() {
|
|
6171
6228
|
let e = pc(this.hostConfig);
|
|
6172
|
-
return this.element =
|
|
6173
|
-
value:
|
|
6229
|
+
return this.element = Ec(() => /* @__PURE__ */ F(Ve, {
|
|
6230
|
+
value: fi(),
|
|
6174
6231
|
children: /* @__PURE__ */ F(Be, {
|
|
6175
6232
|
theme: e,
|
|
6176
|
-
children: /* @__PURE__ */ F(
|
|
6233
|
+
children: /* @__PURE__ */ F(Ci, {
|
|
6177
6234
|
id: this.id,
|
|
6178
6235
|
placeholder: this.placeholder,
|
|
6179
6236
|
minDate: this.convertStringToDate(this.min),
|
|
@@ -6232,14 +6289,14 @@ var kc = class extends ni {
|
|
|
6232
6289
|
}
|
|
6233
6290
|
}
|
|
6234
6291
|
};
|
|
6235
|
-
$([W(
|
|
6292
|
+
$([W(Oc.valueProperty), Q("design:type", String)], Oc.prototype, "defaultValue", void 0), $([W(Oc.minProperty), Q("design:type", String)], Oc.prototype, "min", void 0), $([W(Oc.maxProperty), Q("design:type", String)], Oc.prototype, "max", void 0), $([W(Oc.placeholderProperty), Q("design:type", String)], Oc.prototype, "placeholder", void 0);
|
|
6236
6293
|
//#endregion
|
|
6237
6294
|
//#region src/components/adaptiveCardHost/fluentUI/FluentUINumberInput.tsx
|
|
6238
|
-
var
|
|
6239
|
-
static valueProperty = new
|
|
6240
|
-
static placeholderProperty = new
|
|
6241
|
-
static minProperty = new
|
|
6242
|
-
static maxProperty = new
|
|
6295
|
+
var kc = class extends ei {
|
|
6296
|
+
static valueProperty = new ni(U.v1_5, "value");
|
|
6297
|
+
static placeholderProperty = new oi(U.v1_5, "placeholder");
|
|
6298
|
+
static minProperty = new ni(U.v1_0, "min");
|
|
6299
|
+
static maxProperty = new ni(U.v1_0, "max");
|
|
6243
6300
|
defaultValue;
|
|
6244
6301
|
min;
|
|
6245
6302
|
max;
|
|
@@ -6248,8 +6305,8 @@ var Ac = class extends ni {
|
|
|
6248
6305
|
element;
|
|
6249
6306
|
internalRender() {
|
|
6250
6307
|
let e = pc(this.hostConfig);
|
|
6251
|
-
return this.element =
|
|
6252
|
-
value:
|
|
6308
|
+
return this.element = Ec(() => /* @__PURE__ */ F(Ve, {
|
|
6309
|
+
value: fi(),
|
|
6253
6310
|
children: /* @__PURE__ */ F(Be, {
|
|
6254
6311
|
theme: e,
|
|
6255
6312
|
children: /* @__PURE__ */ F(Ct, {
|
|
@@ -6295,10 +6352,10 @@ var Ac = class extends ni {
|
|
|
6295
6352
|
return this.refControl ? Number(this.refControl.value) : void 0;
|
|
6296
6353
|
}
|
|
6297
6354
|
};
|
|
6298
|
-
$([W(
|
|
6355
|
+
$([W(kc.valueProperty), Q("design:type", Number)], kc.prototype, "defaultValue", void 0), $([W(kc.minProperty), Q("design:type", Number)], kc.prototype, "min", void 0), $([W(kc.maxProperty), Q("design:type", Number)], kc.prototype, "max", void 0), $([W(kc.placeholderProperty), Q("design:type", String)], kc.prototype, "placeholder", void 0);
|
|
6299
6356
|
//#endregion
|
|
6300
6357
|
//#region src/components/adaptiveCardHost/fluentUI/IconButton.tsx
|
|
6301
|
-
var
|
|
6358
|
+
var Ac = (e) => {
|
|
6302
6359
|
let { ariaLabel: t, iconProps: n, styles: r, className: i, onClick: a, ...o } = e;
|
|
6303
6360
|
return /* @__PURE__ */ F(R, {
|
|
6304
6361
|
appearance: "transparent",
|
|
@@ -6316,19 +6373,19 @@ var jc = (e) => {
|
|
|
6316
6373
|
}
|
|
6317
6374
|
})
|
|
6318
6375
|
});
|
|
6319
|
-
},
|
|
6320
|
-
static valueProperty = new
|
|
6321
|
-
static maxLengthProperty = new
|
|
6322
|
-
static isMultilineProperty = new
|
|
6323
|
-
static placeholderProperty = new
|
|
6324
|
-
static styleProperty = new
|
|
6325
|
-
static inlineActionProperty = new
|
|
6326
|
-
static regexProperty = new
|
|
6376
|
+
}, jc = { marginLeft: 8 }, Mc, Nc, Pc = class extends ei {
|
|
6377
|
+
static valueProperty = new oi(U.v1_0, "value");
|
|
6378
|
+
static maxLengthProperty = new ni(U.v1_0, "maxLength");
|
|
6379
|
+
static isMultilineProperty = new qr(U.v1_0, "isMultiline", !1);
|
|
6380
|
+
static placeholderProperty = new oi(U.v1_0, "placeholder");
|
|
6381
|
+
static styleProperty = new Xr(U.v1_0, "style", ti, ti.Text);
|
|
6382
|
+
static inlineActionProperty = new Gr(U.v1_0, "inlineAction", ["Action.ShowCard"]);
|
|
6383
|
+
static regexProperty = new oi(U.v1_3, "regex", !0);
|
|
6327
6384
|
defaultValue;
|
|
6328
6385
|
maxLength;
|
|
6329
6386
|
isMultiline = !1;
|
|
6330
6387
|
placeholder;
|
|
6331
|
-
style =
|
|
6388
|
+
style = ti.Text;
|
|
6332
6389
|
inlineAction;
|
|
6333
6390
|
regex;
|
|
6334
6391
|
refControl = null;
|
|
@@ -6336,8 +6393,8 @@ var jc = (e) => {
|
|
|
6336
6393
|
_value = this.defaultValue || "";
|
|
6337
6394
|
internalRender() {
|
|
6338
6395
|
let e = pc(this.hostConfig);
|
|
6339
|
-
return this.element =
|
|
6340
|
-
value:
|
|
6396
|
+
return this.element = Ec(() => /* @__PURE__ */ F(Ve, {
|
|
6397
|
+
value: fi(),
|
|
6341
6398
|
children: /* @__PURE__ */ F(Be, {
|
|
6342
6399
|
theme: e,
|
|
6343
6400
|
children: this.isMultiline ? /* @__PURE__ */ F(It, {
|
|
@@ -6357,7 +6414,7 @@ var jc = (e) => {
|
|
|
6357
6414
|
}) : /* @__PURE__ */ F(We, {
|
|
6358
6415
|
id: this.id,
|
|
6359
6416
|
style: { width: "100%" },
|
|
6360
|
-
type:
|
|
6417
|
+
type: ti[this.style].toLowerCase(),
|
|
6361
6418
|
defaultValue: this.defaultValue,
|
|
6362
6419
|
placeholder: this.placeholder,
|
|
6363
6420
|
maxLength: this.maxLength,
|
|
@@ -6379,31 +6436,31 @@ var jc = (e) => {
|
|
|
6379
6436
|
let e = super.overrideInternalRender();
|
|
6380
6437
|
return this.inlineAction && this.inputControlContainerElement.appendChild(this.buildInlineActionButton()), e || document.createElement("div");
|
|
6381
6438
|
}
|
|
6382
|
-
buildInlineActionButton = () =>
|
|
6439
|
+
buildInlineActionButton = () => Ec(this.inlineAction?.iconUrl ? this.inlineIconActionButton : this.buildTextOnlyInlineActionActionButton);
|
|
6383
6440
|
inlineActionClickHandler = (e) => {
|
|
6384
6441
|
e.stopPropagation(), e.preventDefault(), this.inlineAction?.execute();
|
|
6385
6442
|
};
|
|
6386
6443
|
inlineIconActionButton = () => /* @__PURE__ */ F(Be, {
|
|
6387
6444
|
theme: this.hostConfig.hostCapabilities.getCustomProperty(dc),
|
|
6388
|
-
children: /* @__PURE__ */ F(
|
|
6445
|
+
children: /* @__PURE__ */ F(Ac, {
|
|
6389
6446
|
ariaLabel: this.inlineAction?.title || "Inline action",
|
|
6390
6447
|
className: this.hostConfig.makeCssClassName("ac-inlineActionButton", "iconOnly"),
|
|
6391
6448
|
iconProps: { src: this.inlineAction?.iconUrl ?? "" },
|
|
6392
6449
|
onClick: this.inlineActionClickHandler,
|
|
6393
|
-
styles:
|
|
6450
|
+
styles: jc
|
|
6394
6451
|
})
|
|
6395
6452
|
});
|
|
6396
6453
|
buildTextOnlyInlineActionActionButton = () => {
|
|
6397
6454
|
let e = this.hostConfig.hostCapabilities.getCustomProperty(dc);
|
|
6398
6455
|
return /* @__PURE__ */ F(Ve, {
|
|
6399
|
-
value:
|
|
6456
|
+
value: fi(),
|
|
6400
6457
|
children: /* @__PURE__ */ F(Be, {
|
|
6401
6458
|
theme: e,
|
|
6402
6459
|
children: /* @__PURE__ */ F(R, {
|
|
6403
6460
|
appearance: "primary",
|
|
6404
6461
|
className: this.hostConfig.makeCssClassName("ac-inlineActionButton", "textOnly"),
|
|
6405
6462
|
onClick: this.inlineActionClickHandler,
|
|
6406
|
-
style:
|
|
6463
|
+
style: jc,
|
|
6407
6464
|
children: this.inlineAction?.title ?? ""
|
|
6408
6465
|
})
|
|
6409
6466
|
})
|
|
@@ -6436,24 +6493,24 @@ var jc = (e) => {
|
|
|
6436
6493
|
if (this._value) return this._value;
|
|
6437
6494
|
}
|
|
6438
6495
|
};
|
|
6439
|
-
$([W(
|
|
6496
|
+
$([W(Pc.valueProperty), Q("design:type", String)], Pc.prototype, "defaultValue", void 0), $([W(Pc.maxLengthProperty), Q("design:type", Number)], Pc.prototype, "maxLength", void 0), $([W(Pc.isMultilineProperty), Q("design:type", Boolean)], Pc.prototype, "isMultiline", void 0), $([W(Pc.placeholderProperty), Q("design:type", String)], Pc.prototype, "placeholder", void 0), $([W(Pc.styleProperty), Q("design:type", typeof (Mc = ti !== void 0 && ti) == "function" ? Mc : Object)], Pc.prototype, "style", void 0), $([W(Pc.inlineActionProperty), Q("design:type", typeof (Nc = Wr !== void 0 && Wr) == "function" ? Nc : Object)], Pc.prototype, "inlineAction", void 0), $([W(Pc.regexProperty), Q("design:type", String)], Pc.prototype, "regex", void 0);
|
|
6440
6497
|
//#endregion
|
|
6441
6498
|
//#region src/components/adaptiveCardHost/fluentUI/FluentUITimeInput.tsx
|
|
6442
|
-
var
|
|
6443
|
-
let { id: t, defaultTime: n, minTime: r, maxTime: i, placeholder: a, theme: o, onTimeChange: s } = e, [c, l] = w.useState(n), [u, d] = w.useState(n ?
|
|
6499
|
+
var Fc = (e) => {
|
|
6500
|
+
let { id: t, defaultTime: n, minTime: r, maxTime: i, placeholder: a, theme: o, onTimeChange: s } = e, [c, l] = w.useState(n), [u, d] = w.useState(n ? Ti(n ?? /* @__PURE__ */ new Date()) : "");
|
|
6444
6501
|
return /* @__PURE__ */ F(Ve, {
|
|
6445
6502
|
value: t,
|
|
6446
6503
|
children: /* @__PURE__ */ F(Be, {
|
|
6447
6504
|
theme: o,
|
|
6448
|
-
children: /* @__PURE__ */ F(
|
|
6505
|
+
children: /* @__PURE__ */ F(wi, {
|
|
6449
6506
|
style: { width: "100%" },
|
|
6450
6507
|
expandIcon: /* @__PURE__ */ F(Xn, {}),
|
|
6451
6508
|
id: t,
|
|
6452
6509
|
freeform: !0,
|
|
6453
|
-
min: r ?
|
|
6454
|
-
max: i ?
|
|
6510
|
+
min: r ? Ti(r) : void 0,
|
|
6511
|
+
max: i ? Ti(i) : void 0,
|
|
6455
6512
|
placeholder: a,
|
|
6456
|
-
value: c ?
|
|
6513
|
+
value: c ? Ti(c) : u,
|
|
6457
6514
|
onTimeChange: (e, t) => {
|
|
6458
6515
|
let n = t.selectedTime ?? void 0, r = t.selectedTimeText ?? "";
|
|
6459
6516
|
l(n), d(r), s && n && s(n, r);
|
|
@@ -6464,14 +6521,14 @@ var Ic = (e) => {
|
|
|
6464
6521
|
})
|
|
6465
6522
|
})
|
|
6466
6523
|
});
|
|
6467
|
-
},
|
|
6524
|
+
}, Ic = class e extends ei {
|
|
6468
6525
|
static convertTimeStringToDate(e) {
|
|
6469
6526
|
return /* @__PURE__ */ new Date("1973-09-04T" + e + ":00Z");
|
|
6470
6527
|
}
|
|
6471
|
-
static valueProperty = new
|
|
6472
|
-
static placeholderProperty = new
|
|
6473
|
-
static minProperty = new
|
|
6474
|
-
static maxProperty = new
|
|
6528
|
+
static valueProperty = new li(U.v1_0, "value");
|
|
6529
|
+
static placeholderProperty = new oi(U.v1_0, "placeholder");
|
|
6530
|
+
static minProperty = new li(U.v1_0, "min");
|
|
6531
|
+
static maxProperty = new li(U.v1_0, "max");
|
|
6475
6532
|
defaultValue;
|
|
6476
6533
|
min;
|
|
6477
6534
|
max;
|
|
@@ -6480,8 +6537,8 @@ var Ic = (e) => {
|
|
|
6480
6537
|
element;
|
|
6481
6538
|
internalRender() {
|
|
6482
6539
|
let t = pc(this.hostConfig), n = this.defaultValue ? e.convertTimeStringToDate(this.defaultValue) : void 0, r = this.min ? e.convertTimeStringToDate(this.min) : void 0, i = this.max ? e.convertTimeStringToDate(this.max) : void 0;
|
|
6483
|
-
return this.element =
|
|
6484
|
-
id:
|
|
6540
|
+
return this.element = Ec(() => /* @__PURE__ */ F(Fc, {
|
|
6541
|
+
id: fi(),
|
|
6485
6542
|
defaultTime: n,
|
|
6486
6543
|
minTime: r,
|
|
6487
6544
|
maxTime: i,
|
|
@@ -6520,18 +6577,18 @@ var Ic = (e) => {
|
|
|
6520
6577
|
return t;
|
|
6521
6578
|
}
|
|
6522
6579
|
get value() {
|
|
6523
|
-
return this._time ?
|
|
6580
|
+
return this._time ? Ti(this._time) : void 0;
|
|
6524
6581
|
}
|
|
6525
6582
|
};
|
|
6526
|
-
$([W(
|
|
6583
|
+
$([W(Ic.valueProperty), Q("design:type", String)], Ic.prototype, "defaultValue", void 0), $([W(Ic.minProperty), Q("design:type", String)], Ic.prototype, "min", void 0), $([W(Ic.maxProperty), Q("design:type", String)], Ic.prototype, "max", void 0), $([W(Ic.placeholderProperty), Q("design:type", String)], Ic.prototype, "placeholder", void 0);
|
|
6527
6584
|
//#endregion
|
|
6528
6585
|
//#region src/components/adaptiveCardHost/fluentUI/FluentUIToggleInput.tsx
|
|
6529
|
-
var
|
|
6530
|
-
static valueProperty = new
|
|
6531
|
-
static titleProperty = new
|
|
6532
|
-
static valueOnProperty = new
|
|
6533
|
-
static valueOffProperty = new
|
|
6534
|
-
static wrapProperty = new
|
|
6586
|
+
var Lc = class extends ei {
|
|
6587
|
+
static valueProperty = new oi(U.v1_5, "value");
|
|
6588
|
+
static titleProperty = new oi(U.v1_5, "title");
|
|
6589
|
+
static valueOnProperty = new oi(U.v1_5, "valueOn", !0, void 0, "true", (e) => "true");
|
|
6590
|
+
static valueOffProperty = new oi(U.v1_5, "valueOff", !0, void 0, "false", (e) => "false");
|
|
6591
|
+
static wrapProperty = new qr(U.v1_2, "wrap", !1);
|
|
6535
6592
|
defaultValue;
|
|
6536
6593
|
title;
|
|
6537
6594
|
valueOn = "true";
|
|
@@ -6542,8 +6599,8 @@ var Rc = class extends ni {
|
|
|
6542
6599
|
element;
|
|
6543
6600
|
internalRender() {
|
|
6544
6601
|
let e = pc(this.hostConfig);
|
|
6545
|
-
return this.element =
|
|
6546
|
-
value:
|
|
6602
|
+
return this.element = Ec(() => /* @__PURE__ */ F(Ve, {
|
|
6603
|
+
value: fi(),
|
|
6547
6604
|
children: /* @__PURE__ */ F(Be, {
|
|
6548
6605
|
theme: e,
|
|
6549
6606
|
style: { backgroundColor: "transparent" },
|
|
@@ -6587,15 +6644,15 @@ var Rc = class extends ni {
|
|
|
6587
6644
|
return this._value !== null && this._value !== void 0 ? this._value ? this.valueOn : this.valueOff : this.isRequired ? void 0 : this.valueOff;
|
|
6588
6645
|
}
|
|
6589
6646
|
};
|
|
6590
|
-
$([W(
|
|
6647
|
+
$([W(Lc.valueProperty), Q("design:type", String)], Lc.prototype, "defaultValue", void 0), $([W(Lc.titleProperty), Q("design:type", String)], Lc.prototype, "title", void 0), $([W(Lc.valueOnProperty), Q("design:type", String)], Lc.prototype, "valueOn", void 0), $([W(Lc.valueOffProperty), Q("design:type", String)], Lc.prototype, "valueOff", void 0), $([W(Lc.wrapProperty), Q("design:type", Boolean)], Lc.prototype, "wrap", void 0);
|
|
6591
6648
|
//#endregion
|
|
6592
6649
|
//#region src/components/adaptiveCardHost/fluentUI/Elements.tsx
|
|
6593
|
-
function
|
|
6594
|
-
e.register("Input.Text",
|
|
6650
|
+
function Rc(e) {
|
|
6651
|
+
e.register("Input.Text", Pc), e.register("Input.Number", kc), e.register("Input.Time", Ic), e.register("Input.Date", Oc), e.register("Input.Toggle", Lc), e.register("Input.ChoiceSet", Dc);
|
|
6595
6652
|
}
|
|
6596
6653
|
//#endregion
|
|
6597
6654
|
//#region src/components/adaptiveCardHost/AdaptiveCardHost.tsx
|
|
6598
|
-
var
|
|
6655
|
+
var zc = (e) => {
|
|
6599
6656
|
switch (e) {
|
|
6600
6657
|
case cc.SharePoint: return Zt;
|
|
6601
6658
|
case cc.Teams: return qt;
|
|
@@ -6603,12 +6660,12 @@ var Bc = (e) => {
|
|
|
6603
6660
|
case cc.TeamsHighContrast: return Kt;
|
|
6604
6661
|
default: return Zt;
|
|
6605
6662
|
}
|
|
6606
|
-
},
|
|
6663
|
+
}, Bc = (e) => {
|
|
6607
6664
|
let t = M(null), { log: n, error: r, LogLevel: i } = G(), a = M(null), o = M(null), s = M(null);
|
|
6608
6665
|
k(() => {
|
|
6609
6666
|
hc((e, t) => r(e, t));
|
|
6610
6667
|
}, []), k(() => {
|
|
6611
|
-
a.current = null, a.current = new
|
|
6668
|
+
a.current = null, a.current = new Kr(), o.current = new ai();
|
|
6612
6669
|
}, [e]);
|
|
6613
6670
|
let c = D((t) => {
|
|
6614
6671
|
if (e.onInvokeAction) {
|
|
@@ -6617,7 +6674,7 @@ var Bc = (e) => {
|
|
|
6617
6674
|
title: ""
|
|
6618
6675
|
}, r = t.getJsonTypeName();
|
|
6619
6676
|
switch (r) {
|
|
6620
|
-
case
|
|
6677
|
+
case ri.JsonTypeName:
|
|
6621
6678
|
{
|
|
6622
6679
|
let e = t;
|
|
6623
6680
|
n = {
|
|
@@ -6627,7 +6684,7 @@ var Bc = (e) => {
|
|
|
6627
6684
|
};
|
|
6628
6685
|
}
|
|
6629
6686
|
break;
|
|
6630
|
-
case
|
|
6687
|
+
case ci.JsonTypeName:
|
|
6631
6688
|
{
|
|
6632
6689
|
let e = t;
|
|
6633
6690
|
n = {
|
|
@@ -6637,7 +6694,7 @@ var Bc = (e) => {
|
|
|
6637
6694
|
};
|
|
6638
6695
|
}
|
|
6639
6696
|
break;
|
|
6640
|
-
case
|
|
6697
|
+
case Zr.JsonTypeName:
|
|
6641
6698
|
{
|
|
6642
6699
|
let e = t;
|
|
6643
6700
|
n = {
|
|
@@ -6660,14 +6717,14 @@ var Bc = (e) => {
|
|
|
6660
6717
|
}, [e.onInvokeAction]);
|
|
6661
6718
|
return k(() => {
|
|
6662
6719
|
let t, r = e.themeType;
|
|
6663
|
-
s.current = null, r ||= cc.SharePoint, t = e.theme ? e.theme :
|
|
6720
|
+
s.current = null, r ||= cc.SharePoint, t = e.theme ? e.theme : zc(r);
|
|
6664
6721
|
let o = mc(r, t), c = o.hostConfig;
|
|
6665
6722
|
n("hostconfig:", i.Info, c), s.current = t, a.current && (a.current.hostConfig = o.hostConfig), e.onUpdateHostCapabilities && e.onUpdateHostCapabilities(c.hostCapabilities);
|
|
6666
6723
|
}, [e]), k(() => {
|
|
6667
6724
|
a.current && (a.current.onExecuteAction = c);
|
|
6668
6725
|
}, [e, c]), k(() => {
|
|
6669
|
-
let t = new
|
|
6670
|
-
|
|
6726
|
+
let t = new Jr(), n = new Jr();
|
|
6727
|
+
Qr.populateWithDefaultElements(t), Qr.populateWithDefaultActions(n), Rc(t), Tc(n), e.onSetCustomElements && e.onSetCustomElements(t), e.onSetCustomActions && e.onSetCustomActions(n);
|
|
6671
6728
|
let r = o.current;
|
|
6672
6729
|
r && r.setElementRegistry(t), r && r.setActionRegistry(n);
|
|
6673
6730
|
}, [e]), k(() => {
|
|
@@ -6676,7 +6733,7 @@ var Bc = (e) => {
|
|
|
6676
6733
|
if (!n) return;
|
|
6677
6734
|
let r = a.current;
|
|
6678
6735
|
try {
|
|
6679
|
-
let t = new
|
|
6736
|
+
let t = new Ei(e.card), i = gc(e.data ?? { $root: {} }, zc(e.themeType ?? cc.SharePoint), e.context), a = t.expand(i);
|
|
6680
6737
|
if (r && r.parse(a, o.current ?? void 0), r) {
|
|
6681
6738
|
let e = r.render();
|
|
6682
6739
|
e && e.outerHTML !== n.innerHTML && e.outerHTML !== n.innerHTML && (n.innerHTML = "", n.appendChild(e));
|
|
@@ -6684,10 +6741,10 @@ var Bc = (e) => {
|
|
|
6684
6741
|
} catch (t) {
|
|
6685
6742
|
e.onError && e.onError(t);
|
|
6686
6743
|
}
|
|
6687
|
-
}, [e,
|
|
6744
|
+
}, [e, zc]), /* @__PURE__ */ F(Ve, {
|
|
6688
6745
|
value: "adaptiveCardHost",
|
|
6689
6746
|
children: /* @__PURE__ */ F(Be, {
|
|
6690
|
-
theme: s.current ? s.current :
|
|
6747
|
+
theme: s.current ? s.current : zc(e.themeType ?? cc.SharePoint),
|
|
6691
6748
|
children: /* @__PURE__ */ F("div", {
|
|
6692
6749
|
ref: t,
|
|
6693
6750
|
className: `${e.className ? e.className : ""}`,
|
|
@@ -6695,24 +6752,28 @@ var Bc = (e) => {
|
|
|
6695
6752
|
})
|
|
6696
6753
|
})
|
|
6697
6754
|
});
|
|
6698
|
-
},
|
|
6755
|
+
}, Vc = ({ card: e, data: t }) => {
|
|
6699
6756
|
let n = M(null);
|
|
6700
6757
|
return k(() => {
|
|
6701
6758
|
if (!n.current) return;
|
|
6702
6759
|
n.current.innerHTML = "";
|
|
6703
|
-
let r = new
|
|
6760
|
+
let r = new Ei(e).expand({ $root: t }), i = new Ur.AdaptiveCard();
|
|
6704
6761
|
i?.parse(r);
|
|
6705
6762
|
let a = i.render();
|
|
6706
6763
|
a && n.current.appendChild(a);
|
|
6707
|
-
}, [e, t]), /* @__PURE__ */ F("div", {
|
|
6708
|
-
|
|
6764
|
+
}, [e, t]), /* @__PURE__ */ F("div", {
|
|
6765
|
+
ref: n,
|
|
6766
|
+
role: "region",
|
|
6767
|
+
"aria-label": "Adaptive Card"
|
|
6768
|
+
});
|
|
6769
|
+
}, Hc = jr`
|
|
6709
6770
|
position: relative;
|
|
6710
6771
|
display: inline-block;
|
|
6711
6772
|
line-height: 0;
|
|
6712
6773
|
|
|
6713
|
-
`,
|
|
6774
|
+
`, Uc = jr`
|
|
6714
6775
|
display: block;
|
|
6715
|
-
`,
|
|
6776
|
+
`, Wc = jr`
|
|
6716
6777
|
position: absolute;
|
|
6717
6778
|
top: -1px;
|
|
6718
6779
|
right: -6px;
|
|
@@ -6736,42 +6797,42 @@ var Bc = (e) => {
|
|
|
6736
6797
|
box-shadow: ${V.shadow8};
|
|
6737
6798
|
background: ${V.colorBrandBackgroundHover};
|
|
6738
6799
|
}
|
|
6739
|
-
`,
|
|
6740
|
-
${
|
|
6800
|
+
`, Gc = jr`
|
|
6801
|
+
${Wc};
|
|
6741
6802
|
font-size: 9px;
|
|
6742
6803
|
padding: 2px 4px;
|
|
6743
6804
|
border-radius: 8px;
|
|
6744
6805
|
top: -2px;
|
|
6745
6806
|
right: -7px;
|
|
6746
|
-
`,
|
|
6747
|
-
${
|
|
6807
|
+
`, Kc = jr`
|
|
6808
|
+
${Wc};
|
|
6748
6809
|
font-size: 6px;
|
|
6749
6810
|
padding: 1px 2px;
|
|
6750
6811
|
border-radius: 4px;
|
|
6751
6812
|
top: 0px;
|
|
6752
6813
|
right: -4px;
|
|
6753
6814
|
letter-spacing: 0.1px;
|
|
6754
|
-
`,
|
|
6755
|
-
let i =
|
|
6756
|
-
${e >= 24 ?
|
|
6815
|
+
`, qc = ({ size: e = 20, className: t, color: n, aiIndicatorColor: r }) => {
|
|
6816
|
+
let i = jr`
|
|
6817
|
+
${e >= 24 ? Gc : e <= 16 ? Kc : Wc};
|
|
6757
6818
|
${r ? `
|
|
6758
6819
|
background: ${r};
|
|
6759
6820
|
border-color: ${r};
|
|
6760
6821
|
` : ""}
|
|
6761
|
-
`, a =
|
|
6762
|
-
${
|
|
6822
|
+
`, a = jr`
|
|
6823
|
+
${Uc};
|
|
6763
6824
|
font-size: ${e}px;
|
|
6764
6825
|
${n ? `color: ${n};` : "color: inherit;"}
|
|
6765
6826
|
`;
|
|
6766
|
-
return /* @__PURE__ */
|
|
6767
|
-
css: [
|
|
6768
|
-
children: [/* @__PURE__ */
|
|
6827
|
+
return /* @__PURE__ */ Nr("span", {
|
|
6828
|
+
css: [Hc, t && jr`${t}`],
|
|
6829
|
+
children: [/* @__PURE__ */ Mr(hr, { css: a }), /* @__PURE__ */ Mr("span", {
|
|
6769
6830
|
css: i,
|
|
6770
6831
|
children: "AI"
|
|
6771
6832
|
})]
|
|
6772
6833
|
});
|
|
6773
|
-
},
|
|
6774
|
-
searchBoxStyles:
|
|
6834
|
+
}, Jc = () => ({
|
|
6835
|
+
searchBoxStyles: jr`
|
|
6775
6836
|
border: 1px solid ${V.colorNeutralStroke2};
|
|
6776
6837
|
border-radius: 50px; /* Fully circular/pill shape */
|
|
6777
6838
|
background-color: ${V.colorNeutralBackground1};
|
|
@@ -6831,17 +6892,17 @@ var Bc = (e) => {
|
|
|
6831
6892
|
}
|
|
6832
6893
|
}
|
|
6833
6894
|
`,
|
|
6834
|
-
iconWrapperStyles:
|
|
6895
|
+
iconWrapperStyles: jr`
|
|
6835
6896
|
display: flex;
|
|
6836
6897
|
align-items: center;
|
|
6837
6898
|
padding: 2px;
|
|
6838
6899
|
margin-right: 8px;
|
|
6839
6900
|
`
|
|
6840
|
-
}),
|
|
6901
|
+
}), Yc = (e) => ({
|
|
6841
6902
|
generateText: async (e, t) => "Azure OpenAI not configured - please provide configuration",
|
|
6842
6903
|
isConfigured: !1
|
|
6843
|
-
}),
|
|
6844
|
-
let { error: l } = G(), u = _(), d = n || u.placeholder, { generateText: f, isConfigured: p } =
|
|
6904
|
+
}), Xc = (e) => JSON.stringify(e), Zc = ({ systemPromptTemplate: e, azureOpenAIConfig: t, placeholder: n, onSearchQueryGenerated: r, onSearchStart: i, onSearchError: a, disabled: o = !1, className: s, width: c }) => {
|
|
6905
|
+
let { error: l } = G(), u = _(), d = n || u.placeholder, { generateText: f, isConfigured: p } = Yc({ config: t }), [m, h] = N(!1), [g, v] = N(""), y = M(null), { searchBoxStyles: b, iconWrapperStyles: x } = Jc(), S = D(async (t) => {
|
|
6845
6906
|
if (!t.trim()) return;
|
|
6846
6907
|
if (!p) {
|
|
6847
6908
|
let e = u.notConfiguredError;
|
|
@@ -6856,7 +6917,7 @@ var Bc = (e) => {
|
|
|
6856
6917
|
r?.(t, n);
|
|
6857
6918
|
} catch (e) {
|
|
6858
6919
|
let t = e instanceof Error ? e.message : u.generationError;
|
|
6859
|
-
l("AISearchControl - Error generating AI search query: " +
|
|
6920
|
+
l("AISearchControl - Error generating AI search query: " + Xc({
|
|
6860
6921
|
operation: "handleAISearch",
|
|
6861
6922
|
userInput: n,
|
|
6862
6923
|
errorMessage: t,
|
|
@@ -6887,7 +6948,7 @@ var Bc = (e) => {
|
|
|
6887
6948
|
g,
|
|
6888
6949
|
r
|
|
6889
6950
|
]);
|
|
6890
|
-
return /* @__PURE__ */
|
|
6951
|
+
return /* @__PURE__ */ Mr(bt, {
|
|
6891
6952
|
ref: y,
|
|
6892
6953
|
css: b,
|
|
6893
6954
|
className: s,
|
|
@@ -6897,13 +6958,13 @@ var Bc = (e) => {
|
|
|
6897
6958
|
onChange: C,
|
|
6898
6959
|
onKeyDown: T,
|
|
6899
6960
|
disabled: o || m,
|
|
6900
|
-
contentBefore: /* @__PURE__ */
|
|
6961
|
+
contentBefore: /* @__PURE__ */ Mr("span", {
|
|
6901
6962
|
css: x,
|
|
6902
|
-
children: /* @__PURE__ */
|
|
6963
|
+
children: /* @__PURE__ */ Mr(qc, { size: 20 })
|
|
6903
6964
|
}),
|
|
6904
6965
|
dismiss: { onClick: w }
|
|
6905
6966
|
});
|
|
6906
|
-
},
|
|
6967
|
+
}, Qc = Ht({
|
|
6907
6968
|
container: {
|
|
6908
6969
|
display: "flex",
|
|
6909
6970
|
flexDirection: "column",
|
|
@@ -6940,8 +7001,8 @@ var Bc = (e) => {
|
|
|
6940
7001
|
overflow: "auto",
|
|
6941
7002
|
border: `1px solid ${V.colorNeutralStroke2}`
|
|
6942
7003
|
}
|
|
6943
|
-
}),
|
|
6944
|
-
let e =
|
|
7004
|
+
}), $c = () => {
|
|
7005
|
+
let e = Qc();
|
|
6945
7006
|
return /* @__PURE__ */ I("div", {
|
|
6946
7007
|
className: e.container,
|
|
6947
7008
|
children: [
|
|
@@ -6955,35 +7016,35 @@ var Bc = (e) => {
|
|
|
6955
7016
|
children: [/* @__PURE__ */ F("span", {
|
|
6956
7017
|
className: e.label,
|
|
6957
7018
|
children: "Small (16px):"
|
|
6958
|
-
}), /* @__PURE__ */ F(
|
|
7019
|
+
}), /* @__PURE__ */ F(qc, { size: 16 })]
|
|
6959
7020
|
}),
|
|
6960
7021
|
/* @__PURE__ */ I("div", {
|
|
6961
7022
|
className: e.iconRow,
|
|
6962
7023
|
children: [/* @__PURE__ */ F("span", {
|
|
6963
7024
|
className: e.label,
|
|
6964
7025
|
children: "Medium (20px):"
|
|
6965
|
-
}), /* @__PURE__ */ F(
|
|
7026
|
+
}), /* @__PURE__ */ F(qc, { size: 20 })]
|
|
6966
7027
|
}),
|
|
6967
7028
|
/* @__PURE__ */ I("div", {
|
|
6968
7029
|
className: e.iconRow,
|
|
6969
7030
|
children: [/* @__PURE__ */ F("span", {
|
|
6970
7031
|
className: e.label,
|
|
6971
7032
|
children: "Large (24px):"
|
|
6972
|
-
}), /* @__PURE__ */ F(
|
|
7033
|
+
}), /* @__PURE__ */ F(qc, { size: 24 })]
|
|
6973
7034
|
}),
|
|
6974
7035
|
/* @__PURE__ */ I("div", {
|
|
6975
7036
|
className: e.iconRow,
|
|
6976
7037
|
children: [/* @__PURE__ */ F("span", {
|
|
6977
7038
|
className: e.label,
|
|
6978
7039
|
children: "Extra Large (32px):"
|
|
6979
|
-
}), /* @__PURE__ */ F(
|
|
7040
|
+
}), /* @__PURE__ */ F(qc, { size: 32 })]
|
|
6980
7041
|
}),
|
|
6981
7042
|
/* @__PURE__ */ I("div", {
|
|
6982
7043
|
className: e.iconRow,
|
|
6983
7044
|
children: [/* @__PURE__ */ F("span", {
|
|
6984
7045
|
className: e.label,
|
|
6985
7046
|
children: "Custom Colors:"
|
|
6986
|
-
}), /* @__PURE__ */ F(
|
|
7047
|
+
}), /* @__PURE__ */ F(qc, {
|
|
6987
7048
|
size: 24,
|
|
6988
7049
|
color: V.colorPaletteBlueForeground2,
|
|
6989
7050
|
aiIndicatorColor: V.colorPaletteGreenForeground2
|
|
@@ -7002,7 +7063,7 @@ var Bc = (e) => {
|
|
|
7002
7063
|
children: "Primary Button:"
|
|
7003
7064
|
}), /* @__PURE__ */ F(R, {
|
|
7004
7065
|
appearance: "primary",
|
|
7005
|
-
icon: /* @__PURE__ */ F(
|
|
7066
|
+
icon: /* @__PURE__ */ F(qc, { size: 16 }),
|
|
7006
7067
|
children: "AI Search"
|
|
7007
7068
|
})]
|
|
7008
7069
|
}),
|
|
@@ -7013,7 +7074,7 @@ var Bc = (e) => {
|
|
|
7013
7074
|
children: "Secondary Button:"
|
|
7014
7075
|
}), /* @__PURE__ */ F(R, {
|
|
7015
7076
|
appearance: "secondary",
|
|
7016
|
-
icon: /* @__PURE__ */ F(
|
|
7077
|
+
icon: /* @__PURE__ */ F(qc, { size: 16 }),
|
|
7017
7078
|
children: "Smart Search"
|
|
7018
7079
|
})]
|
|
7019
7080
|
}),
|
|
@@ -7024,7 +7085,7 @@ var Bc = (e) => {
|
|
|
7024
7085
|
children: "Icon Only Button:"
|
|
7025
7086
|
}), /* @__PURE__ */ F(R, {
|
|
7026
7087
|
appearance: "subtle",
|
|
7027
|
-
icon: /* @__PURE__ */ F(
|
|
7088
|
+
icon: /* @__PURE__ */ F(qc, { size: 20 }),
|
|
7028
7089
|
title: "AI Search"
|
|
7029
7090
|
})]
|
|
7030
7091
|
})
|
|
@@ -7039,7 +7100,7 @@ var Bc = (e) => {
|
|
|
7039
7100
|
})
|
|
7040
7101
|
]
|
|
7041
7102
|
});
|
|
7042
|
-
},
|
|
7103
|
+
}, el = () => ({
|
|
7043
7104
|
container: H({
|
|
7044
7105
|
backgroundColor: V.colorNeutralBackground1,
|
|
7045
7106
|
border: "1px solid " + V.colorNeutralStroke1,
|
|
@@ -7086,11 +7147,13 @@ var Bc = (e) => {
|
|
|
7086
7147
|
minWidth: "36px !important",
|
|
7087
7148
|
minHeight: "36px !important"
|
|
7088
7149
|
})
|
|
7089
|
-
}),
|
|
7090
|
-
let s =
|
|
7150
|
+
}), tl = w.forwardRef(({ value: e, onChange: t, onSend: n, placeholder: r, isRunning: i, onAbort: a }, o) => {
|
|
7151
|
+
let s = el(), c = m(), l = r || c.typeAMessage, u = w.useCallback(() => {
|
|
7091
7152
|
let t = e.trim();
|
|
7092
7153
|
t.length > 0 && n(t);
|
|
7093
|
-
}, [e, n])
|
|
7154
|
+
}, [e, n]), d = (e) => {
|
|
7155
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), u());
|
|
7156
|
+
};
|
|
7094
7157
|
return /* @__PURE__ */ I(K, {
|
|
7095
7158
|
width: "100%",
|
|
7096
7159
|
className: s.container,
|
|
@@ -7098,33 +7161,34 @@ var Bc = (e) => {
|
|
|
7098
7161
|
ref: o,
|
|
7099
7162
|
className: s.textarea,
|
|
7100
7163
|
placeholder: l,
|
|
7164
|
+
"aria-label": l,
|
|
7101
7165
|
value: e,
|
|
7102
7166
|
onChange: (e) => t(e.target.value),
|
|
7103
|
-
onKeyDown:
|
|
7104
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), u());
|
|
7105
|
-
},
|
|
7167
|
+
onKeyDown: d,
|
|
7106
7168
|
rows: 3
|
|
7107
7169
|
}), /* @__PURE__ */ F(K, {
|
|
7108
7170
|
horizontal: !0,
|
|
7109
7171
|
horizontalAlign: "end",
|
|
7110
7172
|
width: "100%",
|
|
7111
|
-
children: i ? /* @__PURE__ */ F(
|
|
7173
|
+
children: i ? /* @__PURE__ */ F(go, {
|
|
7112
7174
|
icon: /* @__PURE__ */ F(pr, {}),
|
|
7113
7175
|
hoverIcon: /* @__PURE__ */ F(fr, {}),
|
|
7114
7176
|
width: 32,
|
|
7115
7177
|
height: 32,
|
|
7116
|
-
onClick: a
|
|
7117
|
-
|
|
7178
|
+
onClick: a,
|
|
7179
|
+
ariaLabel: "Stop generating"
|
|
7180
|
+
}) : /* @__PURE__ */ F(go, {
|
|
7118
7181
|
icon: /* @__PURE__ */ F(On, {}),
|
|
7119
7182
|
hoverIcon: /* @__PURE__ */ F(Dn, {}),
|
|
7120
7183
|
width: 32,
|
|
7121
7184
|
height: 32,
|
|
7122
7185
|
onClick: u,
|
|
7123
|
-
enabled: e.trim().length > 0
|
|
7186
|
+
enabled: e.trim().length > 0,
|
|
7187
|
+
ariaLabel: "Send message"
|
|
7124
7188
|
})
|
|
7125
7189
|
})]
|
|
7126
7190
|
});
|
|
7127
|
-
}),
|
|
7191
|
+
}), nl = () => ({
|
|
7128
7192
|
listContainer: H({
|
|
7129
7193
|
display: "grid",
|
|
7130
7194
|
gridTemplateColumns: "1fr",
|
|
@@ -7157,11 +7221,11 @@ var Bc = (e) => {
|
|
|
7157
7221
|
textAlign: "center",
|
|
7158
7222
|
color: V.colorNeutralForeground3
|
|
7159
7223
|
})
|
|
7160
|
-
}),
|
|
7161
|
-
let l =
|
|
7224
|
+
}), rl = ({ context: e, inputValue: t, parentRef: n, mentionChars: r, onUserSelect: i, theme: a, suggestionsHeader: o, maxSuggestions: s = 100, userFilter: c }) => {
|
|
7225
|
+
let l = Ri(), u = e || l, d = u?.graphClient, f = u?.pageContext?.web?.absoluteUrl || "", p = g(), m = C(), { verbose: h, warn: _, error: v } = G(), [y, b] = N(!1), [x, S] = N({
|
|
7162
7226
|
top: 0,
|
|
7163
7227
|
left: 0
|
|
7164
|
-
}), [w, T] = N([]), [E, O] = N(""), [A, j] = N(""), P = M({}), L =
|
|
7228
|
+
}), [w, T] = N([]), [E, O] = N(""), [A, j] = N(""), P = M({}), L = nl(), ee = D(async (e) => {
|
|
7165
7229
|
if (!d) return _("Graph client not available"), [];
|
|
7166
7230
|
let t = `${e}_${s}`;
|
|
7167
7231
|
if (P.current[t]) return P.current[t];
|
|
@@ -7184,7 +7248,7 @@ var Bc = (e) => {
|
|
|
7184
7248
|
d,
|
|
7185
7249
|
f,
|
|
7186
7250
|
s
|
|
7187
|
-
]), te = D(
|
|
7251
|
+
]), te = D(la(async (e, t) => {
|
|
7188
7252
|
h("[debouncedFetch]: Fetching users for query:", e);
|
|
7189
7253
|
let n = await ee(e), r = c ? n.filter((t) => c(t, e)) : n;
|
|
7190
7254
|
h("[debouncedFetch]: Filtered users:", r), r.sort((e, t) => e.displayName.localeCompare(t.displayName)), T(r), O(t), j(e), b(!0), h("[debouncedFetch]: Menu should be shown now");
|
|
@@ -7200,7 +7264,7 @@ var Bc = (e) => {
|
|
|
7200
7264
|
left: 0
|
|
7201
7265
|
};
|
|
7202
7266
|
if (t.tagName === "TEXTAREA") {
|
|
7203
|
-
let n = t, r =
|
|
7267
|
+
let n = t, r = Di(n, e), i = n.getBoundingClientRect();
|
|
7204
7268
|
return {
|
|
7205
7269
|
top: i.top + r.top + 22,
|
|
7206
7270
|
left: i.left + r.left + 16
|
|
@@ -7242,6 +7306,8 @@ var Bc = (e) => {
|
|
|
7242
7306
|
i(e, E), b(!1), T([]);
|
|
7243
7307
|
}, ie = D(({ users: e }) => /* @__PURE__ */ I("div", {
|
|
7244
7308
|
className: L.listContainer,
|
|
7309
|
+
role: "listbox",
|
|
7310
|
+
"aria-label": "User suggestions",
|
|
7245
7311
|
children: [e.length === 0 && /* @__PURE__ */ I(pe, {
|
|
7246
7312
|
className: L.noResults,
|
|
7247
7313
|
children: [
|
|
@@ -7252,11 +7318,15 @@ var Bc = (e) => {
|
|
|
7252
7318
|
]
|
|
7253
7319
|
}), e.map((e) => /* @__PURE__ */ F(he, {
|
|
7254
7320
|
appearance: "subtle",
|
|
7321
|
+
role: "option",
|
|
7322
|
+
tabIndex: 0,
|
|
7255
7323
|
onMouseDown: (e) => e.preventDefault(),
|
|
7256
7324
|
onClick: () => re(e),
|
|
7325
|
+
onKeyDown: (t) => {
|
|
7326
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), re(e));
|
|
7327
|
+
},
|
|
7257
7328
|
children: /* @__PURE__ */ F(pt, {
|
|
7258
7329
|
name: e.displayName || m.unknownUser,
|
|
7259
|
-
role: "gridcell",
|
|
7260
7330
|
secondaryText: e.mail || e.userPrincipalName || "",
|
|
7261
7331
|
avatar: { image: { src: e.avatar } }
|
|
7262
7332
|
})
|
|
@@ -7266,7 +7336,7 @@ var Bc = (e) => {
|
|
|
7266
7336
|
A,
|
|
7267
7337
|
re
|
|
7268
7338
|
]);
|
|
7269
|
-
return /* @__PURE__ */ I(
|
|
7339
|
+
return /* @__PURE__ */ I(to, {
|
|
7270
7340
|
theme: a,
|
|
7271
7341
|
anchorPoint: x,
|
|
7272
7342
|
isOpen: y,
|
|
@@ -7281,7 +7351,7 @@ var Bc = (e) => {
|
|
|
7281
7351
|
/* @__PURE__ */ F(ie, { users: w })
|
|
7282
7352
|
]
|
|
7283
7353
|
});
|
|
7284
|
-
},
|
|
7354
|
+
}, il = ({ context: e }) => {
|
|
7285
7355
|
let [t, n] = N(""), [r, i] = N(""), a = M(null), o = M(null);
|
|
7286
7356
|
return /* @__PURE__ */ I(K, {
|
|
7287
7357
|
RowGap: 20,
|
|
@@ -7293,7 +7363,7 @@ var Bc = (e) => {
|
|
|
7293
7363
|
onChange: (e, t) => n(t.value),
|
|
7294
7364
|
placeholder: "Type @ to mention someone..."
|
|
7295
7365
|
}),
|
|
7296
|
-
/* @__PURE__ */ F(
|
|
7366
|
+
/* @__PURE__ */ F(rl, {
|
|
7297
7367
|
context: e,
|
|
7298
7368
|
inputValue: t,
|
|
7299
7369
|
parentRef: a,
|
|
@@ -7317,7 +7387,7 @@ var Bc = (e) => {
|
|
|
7317
7387
|
placeholder: "Type @ to mention someone or # for tags...",
|
|
7318
7388
|
rows: 4
|
|
7319
7389
|
}),
|
|
7320
|
-
/* @__PURE__ */ F(
|
|
7390
|
+
/* @__PURE__ */ F(rl, {
|
|
7321
7391
|
context: e,
|
|
7322
7392
|
inputValue: r,
|
|
7323
7393
|
parentRef: o,
|
|
@@ -7335,7 +7405,7 @@ var Bc = (e) => {
|
|
|
7335
7405
|
})
|
|
7336
7406
|
] })]
|
|
7337
7407
|
});
|
|
7338
|
-
},
|
|
7408
|
+
}, al = () => ({
|
|
7339
7409
|
inputContainer: H({
|
|
7340
7410
|
marginTop: "auto",
|
|
7341
7411
|
marginLeft: "auto",
|
|
@@ -7369,15 +7439,15 @@ var Bc = (e) => {
|
|
|
7369
7439
|
"::-webkit-scrollbar-thumb:hover": { background: V.colorNeutralStroke2 }
|
|
7370
7440
|
}),
|
|
7371
7441
|
sugestionsHeader: H({ color: V.colorBrandBackground })
|
|
7372
|
-
}),
|
|
7373
|
-
let [c, l] = N(n || ""), u = M(null), d =
|
|
7442
|
+
}), ol = ({ context: e, onChange: t, value: n, placeholder: r, onSend: i, theme: a = Zt, isRunning: o, onAbort: s }) => {
|
|
7443
|
+
let [c, l] = N(n || ""), u = M(null), d = al();
|
|
7374
7444
|
return k(() => {
|
|
7375
7445
|
u.current?.focus(), l(n || "");
|
|
7376
7446
|
}, [n]), /* @__PURE__ */ I(K, {
|
|
7377
7447
|
horizontal: !0,
|
|
7378
7448
|
width: "100%",
|
|
7379
7449
|
className: d.inputContainer,
|
|
7380
|
-
children: [/* @__PURE__ */ F(
|
|
7450
|
+
children: [/* @__PURE__ */ F(tl, {
|
|
7381
7451
|
ref: u,
|
|
7382
7452
|
onSend: i,
|
|
7383
7453
|
value: c,
|
|
@@ -7388,7 +7458,7 @@ var Bc = (e) => {
|
|
|
7388
7458
|
placeholder: r,
|
|
7389
7459
|
isRunning: o,
|
|
7390
7460
|
onAbort: s
|
|
7391
|
-
}), /* @__PURE__ */ F(
|
|
7461
|
+
}), /* @__PURE__ */ F(rl, {
|
|
7392
7462
|
context: e,
|
|
7393
7463
|
inputValue: c,
|
|
7394
7464
|
parentRef: u,
|
|
@@ -7404,7 +7474,7 @@ var Bc = (e) => {
|
|
|
7404
7474
|
maxSuggestions: 10
|
|
7405
7475
|
})]
|
|
7406
7476
|
});
|
|
7407
|
-
},
|
|
7477
|
+
}, sl = () => {
|
|
7408
7478
|
let e = V.colorBrandBackground, t = Cn`
|
|
7409
7479
|
0%, 80%, 100% {
|
|
7410
7480
|
opacity: 0;
|
|
@@ -7441,17 +7511,19 @@ var Bc = (e) => {
|
|
|
7441
7511
|
animation-delay: 0.4s;
|
|
7442
7512
|
`
|
|
7443
7513
|
};
|
|
7444
|
-
},
|
|
7445
|
-
let e =
|
|
7514
|
+
}, cl = () => {
|
|
7515
|
+
let e = sl();
|
|
7446
7516
|
return /* @__PURE__ */ I("div", {
|
|
7447
7517
|
className: e.root,
|
|
7518
|
+
role: "status",
|
|
7519
|
+
"aria-label": "Loading response",
|
|
7448
7520
|
children: [
|
|
7449
7521
|
/* @__PURE__ */ F("div", { className: `${e.dot} ${e.dot1}` }),
|
|
7450
7522
|
/* @__PURE__ */ F("div", { className: `${e.dot} ${e.dot2}` }),
|
|
7451
7523
|
/* @__PURE__ */ F("div", { className: `${e.dot} ${e.dot3}` })
|
|
7452
7524
|
]
|
|
7453
7525
|
});
|
|
7454
|
-
},
|
|
7526
|
+
}, ll = (e, t) => {
|
|
7455
7527
|
switch (t.type) {
|
|
7456
7528
|
case "INIT": return {
|
|
7457
7529
|
...e,
|
|
@@ -7491,7 +7563,7 @@ var Bc = (e) => {
|
|
|
7491
7563
|
};
|
|
7492
7564
|
default: return e;
|
|
7493
7565
|
}
|
|
7494
|
-
},
|
|
7566
|
+
}, ul = () => ({ markdown: H({
|
|
7495
7567
|
fontFamily: V.fontFamilyBase,
|
|
7496
7568
|
fontSize: V.fontSizeBase300,
|
|
7497
7569
|
lineHeight: V.lineHeightBase300,
|
|
@@ -7571,10 +7643,10 @@ var Bc = (e) => {
|
|
|
7571
7643
|
marginTop: V.spacingVerticalL,
|
|
7572
7644
|
marginBottom: V.spacingVerticalL
|
|
7573
7645
|
}
|
|
7574
|
-
}) }),
|
|
7575
|
-
let n =
|
|
7646
|
+
}) }), dl = ({ content: e, className: t }) => {
|
|
7647
|
+
let n = ul(), [r, i] = w.useState("");
|
|
7576
7648
|
return w.useEffect(() => {
|
|
7577
|
-
i(new
|
|
7649
|
+
i(new hi({
|
|
7578
7650
|
html: !1,
|
|
7579
7651
|
linkify: !0,
|
|
7580
7652
|
typographer: !0,
|
|
@@ -7582,9 +7654,9 @@ var Bc = (e) => {
|
|
|
7582
7654
|
}).render(e));
|
|
7583
7655
|
}, [e]), /* @__PURE__ */ F("div", {
|
|
7584
7656
|
className: `${n.markdown} ${t || ""}`,
|
|
7585
|
-
dangerouslySetInnerHTML: { __html: r }
|
|
7657
|
+
dangerouslySetInnerHTML: { __html: ji.sanitize(r) }
|
|
7586
7658
|
});
|
|
7587
|
-
},
|
|
7659
|
+
}, fl = Ht({
|
|
7588
7660
|
plainText: {
|
|
7589
7661
|
fontFamily: V.fontFamilyBase,
|
|
7590
7662
|
fontSize: V.fontSizeBase300,
|
|
@@ -7633,11 +7705,11 @@ var Bc = (e) => {
|
|
|
7633
7705
|
color: V.colorNeutralForeground2
|
|
7634
7706
|
},
|
|
7635
7707
|
adaptiveCardWrapper: { width: "100%" }
|
|
7636
|
-
}),
|
|
7637
|
-
let l =
|
|
7708
|
+
}), pl = ({ content: e, forceType: t, onTypeDetected: n, context: r, theme: i = cc.SharePoint, fluentTheme: a, onAdaptiveCardAction: o, className: s, debug: c = !1 }) => {
|
|
7709
|
+
let l = fl(), { error: u } = G(), [d, f] = w.useState(null);
|
|
7638
7710
|
if (w.useEffect(() => {
|
|
7639
7711
|
if (w.isValidElement(e) || typeof e != "string" && typeof e != "object") return;
|
|
7640
|
-
let t =
|
|
7712
|
+
let t = Oa(e);
|
|
7641
7713
|
f(t), n && n(t);
|
|
7642
7714
|
}, [e, n]), w.isValidElement(e)) return /* @__PURE__ */ F(P, { children: e });
|
|
7643
7715
|
let p = t || d?.type, m = d?.content || e;
|
|
@@ -7652,17 +7724,17 @@ var Bc = (e) => {
|
|
|
7652
7724
|
]
|
|
7653
7725
|
}), (() => {
|
|
7654
7726
|
switch (p) {
|
|
7655
|
-
case
|
|
7727
|
+
case Sa.MARKDOWN: return /* @__PURE__ */ F(dl, {
|
|
7656
7728
|
content: m,
|
|
7657
7729
|
className: s
|
|
7658
7730
|
});
|
|
7659
|
-
case
|
|
7731
|
+
case Sa.HTML: return /* @__PURE__ */ F("div", {
|
|
7660
7732
|
className: ` ${s || ""}`,
|
|
7661
|
-
dangerouslySetInnerHTML: { __html: m }
|
|
7733
|
+
dangerouslySetInnerHTML: { __html: ji.sanitize(m) }
|
|
7662
7734
|
});
|
|
7663
|
-
case
|
|
7735
|
+
case Sa.ADAPTIVE_CARD: return /* @__PURE__ */ F("div", {
|
|
7664
7736
|
className: `${l.adaptiveCardWrapper} ${s || ""}`,
|
|
7665
|
-
children: /* @__PURE__ */ F(
|
|
7737
|
+
children: /* @__PURE__ */ F(Bc, {
|
|
7666
7738
|
card: typeof m == "string" ? JSON.parse(m) : m,
|
|
7667
7739
|
context: r,
|
|
7668
7740
|
theme: a,
|
|
@@ -7671,55 +7743,59 @@ var Bc = (e) => {
|
|
|
7671
7743
|
onError: (e) => u("Adaptive Card Error:", e instanceof Error ? e : void 0)
|
|
7672
7744
|
})
|
|
7673
7745
|
});
|
|
7674
|
-
case
|
|
7746
|
+
case Sa.PLAIN_TEXT:
|
|
7675
7747
|
default: return /* @__PURE__ */ F("div", {
|
|
7676
7748
|
className: `${l.plainText} ${s || ""}`,
|
|
7677
7749
|
children: m
|
|
7678
7750
|
});
|
|
7679
7751
|
}
|
|
7680
7752
|
})()] });
|
|
7681
|
-
},
|
|
7682
|
-
let { messages: n, context: r } = e, i = (e) => w.isValidElement(e) ? e : typeof e == "string" ? e.replace(/\{"status"\s*:\s*"executing"\}/gi, "").replace(/\{'status'\s*:\s*'executing'\}/gi, "").trim() : e
|
|
7753
|
+
}, ml = w.forwardRef((e, t) => {
|
|
7754
|
+
let { messages: n, context: r } = e, i = (e) => w.isValidElement(e) ? e : typeof e == "string" ? e.replace(/\{"status"\s*:\s*"executing"\}/gi, "").replace(/\{'status'\s*:\s*'executing'\}/gi, "").trim() : e, a = H({
|
|
7755
|
+
flex: "1 1 0",
|
|
7756
|
+
overflowY: "auto",
|
|
7757
|
+
overflowX: "hidden",
|
|
7758
|
+
padding: "16px",
|
|
7759
|
+
paddingRight: "25px",
|
|
7760
|
+
"::-webkit-scrollbar": { width: "6px" },
|
|
7761
|
+
"::-webkit-scrollbar-track": {
|
|
7762
|
+
background: V.colorNeutralBackground4,
|
|
7763
|
+
borderRadius: "10px"
|
|
7764
|
+
},
|
|
7765
|
+
"::-webkit-scrollbar-thumb": {
|
|
7766
|
+
background: V.colorBrandStroke2Hover,
|
|
7767
|
+
borderRadius: "10px"
|
|
7768
|
+
},
|
|
7769
|
+
"::-webkit-scrollbar-thumb:hover": { background: V.colorNeutralStroke2 }
|
|
7770
|
+
}), o = H({
|
|
7771
|
+
display: "flex",
|
|
7772
|
+
flexDirection: "column",
|
|
7773
|
+
gap: "10px",
|
|
7774
|
+
paddingRight: "30px"
|
|
7775
|
+
});
|
|
7683
7776
|
return /* @__PURE__ */ F("div", {
|
|
7684
7777
|
ref: t,
|
|
7685
|
-
className:
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
"::-webkit-scrollbar-track": {
|
|
7693
|
-
background: V.colorNeutralBackground4,
|
|
7694
|
-
borderRadius: "10px"
|
|
7695
|
-
},
|
|
7696
|
-
"::-webkit-scrollbar-thumb": {
|
|
7697
|
-
background: V.colorBrandStroke2Hover,
|
|
7698
|
-
borderRadius: "10px"
|
|
7699
|
-
},
|
|
7700
|
-
"::-webkit-scrollbar-thumb:hover": { background: V.colorNeutralStroke2 }
|
|
7701
|
-
}),
|
|
7702
|
-
children: /* @__PURE__ */ F(ki, {
|
|
7703
|
-
className: H({
|
|
7704
|
-
display: "flex",
|
|
7705
|
-
flexDirection: "column",
|
|
7706
|
-
gap: "10px",
|
|
7707
|
-
paddingRight: "30px"
|
|
7708
|
-
}),
|
|
7709
|
-
children: n.map((e, t) => e.senderName === "User" ? /* @__PURE__ */ F(ji, {
|
|
7778
|
+
className: a,
|
|
7779
|
+
role: "log",
|
|
7780
|
+
"aria-live": "polite",
|
|
7781
|
+
"aria-label": "Chat history",
|
|
7782
|
+
children: /* @__PURE__ */ F(Oi, {
|
|
7783
|
+
className: o,
|
|
7784
|
+
children: n.map((e, t) => e.senderName === "User" ? /* @__PURE__ */ F(Ai, {
|
|
7710
7785
|
status: e.status,
|
|
7711
7786
|
author: e.senderName,
|
|
7712
7787
|
children: i(e.message)
|
|
7713
|
-
}, t) : /* @__PURE__ */ F(
|
|
7788
|
+
}, t) : /* @__PURE__ */ F(ki, {
|
|
7714
7789
|
decoration: e.status === "failed" ? "important" : void 0,
|
|
7715
|
-
avatar: /* @__PURE__ */ F(
|
|
7790
|
+
avatar: /* @__PURE__ */ F(Dr, {
|
|
7716
7791
|
icon: "carbon:ibm-consulting-advantage-assistant",
|
|
7717
7792
|
width: "32",
|
|
7718
7793
|
height: "32",
|
|
7794
|
+
"aria-hidden": "true",
|
|
7719
7795
|
style: { color: V.colorBrandBackground }
|
|
7720
7796
|
}),
|
|
7721
7797
|
author: e.senderName,
|
|
7722
|
-
children: /* @__PURE__ */ F(
|
|
7798
|
+
children: /* @__PURE__ */ F(pl, {
|
|
7723
7799
|
content: i(e.message),
|
|
7724
7800
|
context: r
|
|
7725
7801
|
})
|
|
@@ -7727,10 +7803,10 @@ var Bc = (e) => {
|
|
|
7727
7803
|
})
|
|
7728
7804
|
});
|
|
7729
7805
|
});
|
|
7730
|
-
|
|
7806
|
+
ml.displayName = "ChatList";
|
|
7731
7807
|
//#endregion
|
|
7732
7808
|
//#region src/components/aiAssistant/useAIAssistantStyles.ts
|
|
7733
|
-
var
|
|
7809
|
+
var hl = () => ({
|
|
7734
7810
|
container: H({
|
|
7735
7811
|
display: "flex",
|
|
7736
7812
|
flexDirection: "column",
|
|
@@ -7798,17 +7874,17 @@ var gl = () => ({
|
|
|
7798
7874
|
backgroundColor: V.colorNeutralBackground1,
|
|
7799
7875
|
boxSizing: "border-box"
|
|
7800
7876
|
})
|
|
7801
|
-
}),
|
|
7802
|
-
let { getFormatRelative: n } =
|
|
7877
|
+
}), gl = (e, t) => {
|
|
7878
|
+
let { getFormatRelative: n } = ia(e, t);
|
|
7803
7879
|
return n(/* @__PURE__ */ new Date());
|
|
7804
|
-
},
|
|
7805
|
-
let { instrutions: t, timezone: n, locale: r, onResponse: i, openAIConfig: a, theme: o, placeholder: s, context: c } = e, [l, u] = w.useReducer(
|
|
7880
|
+
}, _l = (e) => {
|
|
7881
|
+
let { instrutions: t, timezone: n, locale: r, onResponse: i, openAIConfig: a, theme: o, placeholder: s, context: c } = e, [l, u] = w.useReducer(ll, {
|
|
7806
7882
|
messages: [],
|
|
7807
7883
|
inputText: "",
|
|
7808
7884
|
isLoading: !0,
|
|
7809
7885
|
error: void 0,
|
|
7810
7886
|
isRunning: !1
|
|
7811
|
-
}), { messages: d, inputText: f, isLoading: p, error: h, isRunning: g } = l, _ = w.useRef([]), v = w.useRef(null), y =
|
|
7887
|
+
}), { messages: d, inputText: f, isLoading: p, error: h, isRunning: g } = l, _ = w.useRef([]), v = w.useRef(null), y = hl(), b = m(), { error: x } = G(), { sendMessage: S, cancelRequest: C } = Wi({
|
|
7812
7888
|
endpoint: a?.endpoint,
|
|
7813
7889
|
mcpServers: a?.mcpServers,
|
|
7814
7890
|
requestHeaders: a?.requestHeaders
|
|
@@ -7826,7 +7902,7 @@ var gl = () => ({
|
|
|
7826
7902
|
welcomeMessage: {
|
|
7827
7903
|
message: "Welcome to AI Assistant! How can I help you today?",
|
|
7828
7904
|
senderName: "Assistant",
|
|
7829
|
-
timeStamp:
|
|
7905
|
+
timeStamp: gl(n, c?.pageContext?.cultureInfo?.currentUICultureName || "en-US"),
|
|
7830
7906
|
status: "received"
|
|
7831
7907
|
}
|
|
7832
7908
|
});
|
|
@@ -7836,7 +7912,7 @@ var gl = () => ({
|
|
|
7836
7912
|
let e = {
|
|
7837
7913
|
message: f,
|
|
7838
7914
|
senderName: "User",
|
|
7839
|
-
timeStamp:
|
|
7915
|
+
timeStamp: gl(n, c?.pageContext?.cultureInfo?.currentUICultureName || "en-US"),
|
|
7840
7916
|
status: "received"
|
|
7841
7917
|
}, o = f;
|
|
7842
7918
|
u({
|
|
@@ -7844,9 +7920,9 @@ var gl = () => ({
|
|
|
7844
7920
|
message: e
|
|
7845
7921
|
}), u({ type: "CLEAR_INPUT" }), u({ type: "SET_IS_RUNNING" });
|
|
7846
7922
|
let s = {
|
|
7847
|
-
message: /* @__PURE__ */ F(
|
|
7923
|
+
message: /* @__PURE__ */ F(cl, {}),
|
|
7848
7924
|
senderName: "Assistant",
|
|
7849
|
-
timeStamp:
|
|
7925
|
+
timeStamp: gl(n, c?.pageContext?.cultureInfo?.currentUICultureName || "en-US"),
|
|
7850
7926
|
status: "sending"
|
|
7851
7927
|
};
|
|
7852
7928
|
u({
|
|
@@ -7909,18 +7985,18 @@ var gl = () => ({
|
|
|
7909
7985
|
inputText: e
|
|
7910
7986
|
});
|
|
7911
7987
|
}, []);
|
|
7912
|
-
return p ? /* @__PURE__ */ F(wt, { size: "medium" }) : h ? /* @__PURE__ */ F(
|
|
7988
|
+
return p ? /* @__PURE__ */ F(wt, { size: "medium" }) : h ? /* @__PURE__ */ F(Is, {
|
|
7913
7989
|
message: b.processingError,
|
|
7914
|
-
messageType:
|
|
7990
|
+
messageType: Fi.INFO
|
|
7915
7991
|
}) : /* @__PURE__ */ I("div", {
|
|
7916
7992
|
className: y.aiAssistantContainer,
|
|
7917
|
-
children: [/* @__PURE__ */ F(
|
|
7993
|
+
children: [/* @__PURE__ */ F(ml, {
|
|
7918
7994
|
ref: v,
|
|
7919
7995
|
messages: d,
|
|
7920
7996
|
context: c
|
|
7921
7997
|
}), /* @__PURE__ */ F("div", {
|
|
7922
7998
|
className: y.aiAssistantInputContainer,
|
|
7923
|
-
children: /* @__PURE__ */ F(
|
|
7999
|
+
children: /* @__PURE__ */ F(ol, {
|
|
7924
8000
|
context: c,
|
|
7925
8001
|
value: f,
|
|
7926
8002
|
onChange: D,
|
|
@@ -7932,11 +8008,11 @@ var gl = () => ({
|
|
|
7932
8008
|
})
|
|
7933
8009
|
})]
|
|
7934
8010
|
});
|
|
7935
|
-
},
|
|
8011
|
+
}, vl = ({ context: e, onChange: t, value: n, placeholder: r, onSend: i, theme: a, isRunning: o, onAbort: s }) => {
|
|
7936
8012
|
let [c, l] = N(n || ""), [u, d] = N(!1), f = M(null), p = m(), [h, g] = N({
|
|
7937
8013
|
top: 0,
|
|
7938
8014
|
left: 0
|
|
7939
|
-
}), [_, v] = N([]), y = M({}), b =
|
|
8015
|
+
}), [_, v] = N([]), y = M({}), b = al(), { warn: x, error: S } = G();
|
|
7940
8016
|
T.useEffect(() => {
|
|
7941
8017
|
f.current?.focus(), l(n || "");
|
|
7942
8018
|
}, [n]);
|
|
@@ -7951,7 +8027,7 @@ var gl = () => ({
|
|
|
7951
8027
|
} catch (e) {
|
|
7952
8028
|
return S("Error fetching users from Graph:", e instanceof Error ? e : void 0), [];
|
|
7953
8029
|
}
|
|
7954
|
-
}, w = D(
|
|
8030
|
+
}, w = D(la(async (e) => {
|
|
7955
8031
|
let t = await C(e);
|
|
7956
8032
|
t.sort((e, t) => e.displayName.localeCompare(t.displayName)), v(t), d(!0), setTimeout(() => {
|
|
7957
8033
|
f.current?.focus();
|
|
@@ -7963,7 +8039,7 @@ var gl = () => ({
|
|
|
7963
8039
|
await w(e.slice(n + 1));
|
|
7964
8040
|
let t = f.current;
|
|
7965
8041
|
if (t) {
|
|
7966
|
-
let e =
|
|
8042
|
+
let e = Di(t, n), r = t.getBoundingClientRect();
|
|
7967
8043
|
g({
|
|
7968
8044
|
top: r.top + e.top + 22,
|
|
7969
8045
|
left: r.left + e.left + 16
|
|
@@ -7992,7 +8068,7 @@ var gl = () => ({
|
|
|
7992
8068
|
horizontal: !0,
|
|
7993
8069
|
width: "100%",
|
|
7994
8070
|
className: b.inputContainer,
|
|
7995
|
-
children: [/* @__PURE__ */ F(
|
|
8071
|
+
children: [/* @__PURE__ */ F(tl, {
|
|
7996
8072
|
ref: f,
|
|
7997
8073
|
onSend: i,
|
|
7998
8074
|
value: c,
|
|
@@ -8001,7 +8077,7 @@ var gl = () => ({
|
|
|
8001
8077
|
placeholder: r,
|
|
8002
8078
|
isRunning: o,
|
|
8003
8079
|
onAbort: s
|
|
8004
|
-
}), /* @__PURE__ */ I(
|
|
8080
|
+
}), /* @__PURE__ */ I(to, {
|
|
8005
8081
|
theme: a,
|
|
8006
8082
|
anchorPoint: h,
|
|
8007
8083
|
isOpen: u,
|
|
@@ -8017,7 +8093,7 @@ var gl = () => ({
|
|
|
8017
8093
|
]
|
|
8018
8094
|
})]
|
|
8019
8095
|
});
|
|
8020
|
-
},
|
|
8096
|
+
}, yl = () => ({
|
|
8021
8097
|
inputContainer: H({
|
|
8022
8098
|
marginTop: "auto",
|
|
8023
8099
|
marginLeft: "auto",
|
|
@@ -8051,7 +8127,7 @@ var gl = () => ({
|
|
|
8051
8127
|
"::-webkit-scrollbar-thumb:hover": { background: V.colorNeutralStroke2 }
|
|
8052
8128
|
}),
|
|
8053
8129
|
sugestionsHeader: H({ color: V.colorBrandBackground })
|
|
8054
|
-
}),
|
|
8130
|
+
}), bl = (e) => {
|
|
8055
8131
|
let { width: t, height: n, zoomable: r = !1 } = e;
|
|
8056
8132
|
return {
|
|
8057
8133
|
root: H({
|
|
@@ -8069,7 +8145,7 @@ var gl = () => ({
|
|
|
8069
8145
|
fontSize: V.fontSizeBase300
|
|
8070
8146
|
})
|
|
8071
8147
|
};
|
|
8072
|
-
},
|
|
8148
|
+
}, xl = 0, Sl = (e) => {
|
|
8073
8149
|
let [t, n] = w.useState(!1);
|
|
8074
8150
|
return w.useEffect(() => {
|
|
8075
8151
|
let t = e.current;
|
|
@@ -8080,8 +8156,8 @@ var gl = () => ({
|
|
|
8080
8156
|
n(.299 * e + .587 * t + .114 * i < 128);
|
|
8081
8157
|
}
|
|
8082
8158
|
}), t;
|
|
8083
|
-
},
|
|
8084
|
-
let { source: t, url: n, theme: r, backgroundColor: i, className: a, styles: o, zoomable: s = !1, onRendered: c, onError: l, loadingContent: u, errorContent: d } = e, f =
|
|
8159
|
+
}, Cl = (e) => {
|
|
8160
|
+
let { source: t, url: n, theme: r, backgroundColor: i, className: a, styles: o, zoomable: s = !1, onRendered: c, onError: l, loadingContent: u, errorContent: d } = e, f = bl(e), m = w.useRef(null), h = w.useRef(null), g = Sl(m), _ = r ?? (g ? "dark" : "default"), [v, y] = w.useState(null), [b, x] = w.useState(null), [S, C] = w.useState(!1), [T, E] = w.useState(null), { loading: D, errorMessage: O, noSource: k } = p();
|
|
8085
8161
|
w.useEffect(() => {
|
|
8086
8162
|
if (t) {
|
|
8087
8163
|
E(t), x(null);
|
|
@@ -8113,7 +8189,7 @@ var gl = () => ({
|
|
|
8113
8189
|
y(null);
|
|
8114
8190
|
return;
|
|
8115
8191
|
}
|
|
8116
|
-
let e = !1, t = `mermaid-diagram-${++
|
|
8192
|
+
let e = !1, t = `mermaid-diagram-${++xl}`;
|
|
8117
8193
|
return Mi.initialize({
|
|
8118
8194
|
startOnLoad: !1,
|
|
8119
8195
|
theme: _,
|
|
@@ -8179,7 +8255,7 @@ var gl = () => ({
|
|
|
8179
8255
|
});
|
|
8180
8256
|
}, [T]), w.useEffect(() => {
|
|
8181
8257
|
let e = h.current;
|
|
8182
|
-
e && (e.innerHTML = v ?? "");
|
|
8258
|
+
e && (e.innerHTML = v ?? "", e.setAttribute("role", "img"), e.setAttribute("aria-label", "Mermaid diagram"));
|
|
8183
8259
|
}, [v]);
|
|
8184
8260
|
let ee = [f.root, a].filter(Boolean).join(" ");
|
|
8185
8261
|
if (S) return /* @__PURE__ */ F(J, {
|
|
@@ -8194,7 +8270,7 @@ var gl = () => ({
|
|
|
8194
8270
|
alignItems: "center",
|
|
8195
8271
|
justifyContent: "center",
|
|
8196
8272
|
padding: "xxl",
|
|
8197
|
-
children: u ?? /* @__PURE__ */ F(
|
|
8273
|
+
children: u ?? /* @__PURE__ */ F(ao, {
|
|
8198
8274
|
size: "small",
|
|
8199
8275
|
label: D
|
|
8200
8276
|
})
|
|
@@ -8207,9 +8283,9 @@ var gl = () => ({
|
|
|
8207
8283
|
justifyContent: "center",
|
|
8208
8284
|
overflow: "hidden",
|
|
8209
8285
|
background: i,
|
|
8210
|
-
children: d ? d(b) : /* @__PURE__ */ F(
|
|
8286
|
+
children: d ? d(b) : /* @__PURE__ */ F(Is, {
|
|
8211
8287
|
message: O,
|
|
8212
|
-
messageType:
|
|
8288
|
+
messageType: Fi.ERROR
|
|
8213
8289
|
})
|
|
8214
8290
|
});
|
|
8215
8291
|
if (!v) return /* @__PURE__ */ F(J, {
|
|
@@ -8248,10 +8324,10 @@ var gl = () => ({
|
|
|
8248
8324
|
children: /* @__PURE__ */ F(P, {})
|
|
8249
8325
|
})
|
|
8250
8326
|
});
|
|
8251
|
-
},
|
|
8327
|
+
}, wl = (e) => {
|
|
8252
8328
|
let { template: t } = e;
|
|
8253
8329
|
return /* @__PURE__ */ F(P, { children: t });
|
|
8254
|
-
},
|
|
8330
|
+
}, Tl = () => ({
|
|
8255
8331
|
toolbar: H`
|
|
8256
8332
|
display: flex !important;
|
|
8257
8333
|
flex-wrap: nowrap !important;
|
|
@@ -8330,7 +8406,7 @@ var gl = () => ({
|
|
|
8330
8406
|
display: none;
|
|
8331
8407
|
}
|
|
8332
8408
|
`
|
|
8333
|
-
}),
|
|
8409
|
+
}), El = [
|
|
8334
8410
|
{
|
|
8335
8411
|
minWidth: 1280,
|
|
8336
8412
|
gap: 100
|
|
@@ -8352,11 +8428,11 @@ var gl = () => ({
|
|
|
8352
8428
|
gap: 12
|
|
8353
8429
|
}
|
|
8354
8430
|
];
|
|
8355
|
-
function
|
|
8356
|
-
for (let t of
|
|
8357
|
-
return
|
|
8431
|
+
function Dl(e) {
|
|
8432
|
+
for (let t of El) if (e > t.minWidth) return t.gap;
|
|
8433
|
+
return El[El.length - 1].gap;
|
|
8358
8434
|
}
|
|
8359
|
-
function
|
|
8435
|
+
function Ol(e, t, n, r, i = 48) {
|
|
8360
8436
|
let [a, o] = w.useState(r);
|
|
8361
8437
|
return w.useEffect(() => {
|
|
8362
8438
|
let a = e.current, s = t.current, c = n.current;
|
|
@@ -8364,7 +8440,7 @@ function kl(e, t, n, r, i = 48) {
|
|
|
8364
8440
|
let l = () => {
|
|
8365
8441
|
let e = a.offsetWidth;
|
|
8366
8442
|
if (e === 0) return;
|
|
8367
|
-
let t = getComputedStyle(a), n = parseFloat(t.paddingLeft || "0"), l = parseFloat(t.paddingRight || "0"), u = parseFloat(t.columnGap || t.gap || "0"), d =
|
|
8443
|
+
let t = getComputedStyle(a), n = parseFloat(t.paddingLeft || "0"), l = parseFloat(t.paddingRight || "0"), u = parseFloat(t.columnGap || t.gap || "0"), d = Dl(e), f = s ? s.offsetWidth : 0, p = f > 0 ? f + d + u : 0, m = e - n - l - p;
|
|
8368
8444
|
if (m <= 0) return;
|
|
8369
8445
|
let h = Array.from(c.children);
|
|
8370
8446
|
if (h.length === 0) {
|
|
@@ -8398,7 +8474,7 @@ function kl(e, t, n, r, i = 48) {
|
|
|
8398
8474
|
}
|
|
8399
8475
|
//#endregion
|
|
8400
8476
|
//#region src/components/ListToolbar/ToolbarItemRenderer.tsx
|
|
8401
|
-
var
|
|
8477
|
+
var kl = ({ item: e, isLoading: t, itemClass: n, labelClass: r }) => {
|
|
8402
8478
|
if (e.visible === !1) return null;
|
|
8403
8479
|
if (e.onRender) return e.onRender();
|
|
8404
8480
|
let i = r ? /* @__PURE__ */ F("span", {
|
|
@@ -8428,7 +8504,7 @@ var Al = ({ item: e, isLoading: t, itemClass: n, labelClass: r }) => {
|
|
|
8428
8504
|
};
|
|
8429
8505
|
//#endregion
|
|
8430
8506
|
//#region src/components/ListToolbar/helpers.ts
|
|
8431
|
-
function
|
|
8507
|
+
function Al(e) {
|
|
8432
8508
|
let t = /* @__PURE__ */ new Map();
|
|
8433
8509
|
for (let n of e) {
|
|
8434
8510
|
let e = n.group || "default";
|
|
@@ -8436,8 +8512,8 @@ function jl(e) {
|
|
|
8436
8512
|
}
|
|
8437
8513
|
return t;
|
|
8438
8514
|
}
|
|
8439
|
-
function
|
|
8440
|
-
let n = [], r =
|
|
8515
|
+
function jl(e, t) {
|
|
8516
|
+
let n = [], r = Al(e), i = Array.from(r.entries());
|
|
8441
8517
|
for (let e = 0; e < i.length; e++) {
|
|
8442
8518
|
let [, r] = i[e], a = e === i.length - 1;
|
|
8443
8519
|
for (let e of r) e.dividerBefore && n.push({
|
|
@@ -8460,17 +8536,17 @@ function Ml(e, t) {
|
|
|
8460
8536
|
}
|
|
8461
8537
|
//#endregion
|
|
8462
8538
|
//#region src/components/ListToolbar/ListToolbar.tsx
|
|
8463
|
-
var
|
|
8464
|
-
let s =
|
|
8539
|
+
var Ml = ({ items: e, farItems: t = [], isLoading: n = !1, ariaLabel: r = "Toolbar", totalCount: i, className: a, showGroupDividers: o = !0 }) => {
|
|
8540
|
+
let s = Tl(), c = w.useRef(null), l = w.useRef(null), u = w.useRef(null), d = w.useRef(null), f = w.useMemo(() => e.filter((e) => !e.isFarItem && e.visible !== !1), [e]), p = w.useMemo(() => {
|
|
8465
8541
|
let n = e.filter((e) => e.isFarItem && e.visible !== !1), r = t.filter((e) => e.visible !== !1);
|
|
8466
8542
|
return [...n, ...r];
|
|
8467
|
-
}, [e, t]), m = w.useMemo(() =>
|
|
8543
|
+
}, [e, t]), m = w.useMemo(() => Al(p), [p]), h = w.useMemo(() => jl(f, o), [f, o]), g = Ol(c, u, d, h.length), _ = w.useMemo(() => {
|
|
8468
8544
|
let e = /* @__PURE__ */ new Set();
|
|
8469
8545
|
for (let t = 0; t < g && t < h.length; t++) h[t].type === "item" && e.add(h[t].key);
|
|
8470
8546
|
return e;
|
|
8471
8547
|
}, [h, g]), v = w.useMemo(() => f.filter((e) => !_.has(e.key)), [f, _]), y = v.length > 0, b = (e, t, r) => {
|
|
8472
8548
|
let i = [];
|
|
8473
|
-
for (let t of e) t.dividerBefore && i.push(/* @__PURE__ */ F(zt, {}, `${t.key}-divider-before`)), i.push(/* @__PURE__ */ F(
|
|
8549
|
+
for (let t of e) t.dividerBefore && i.push(/* @__PURE__ */ F(zt, {}, `${t.key}-divider-before`)), i.push(/* @__PURE__ */ F(kl, {
|
|
8474
8550
|
item: t,
|
|
8475
8551
|
isLoading: n,
|
|
8476
8552
|
itemClass: s.farItemButton,
|
|
@@ -8488,7 +8564,7 @@ var Nl = ({ items: e, farItems: t = [], isLoading: n = !1, ariaLabel: r = "Toolb
|
|
|
8488
8564
|
ref: d,
|
|
8489
8565
|
className: s.measureSection,
|
|
8490
8566
|
"aria-hidden": "true",
|
|
8491
|
-
children: h.map((e) => e.type === "divider" ? /* @__PURE__ */ F(zt, {}, e.key) : /* @__PURE__ */ F(
|
|
8567
|
+
children: h.map((e) => e.type === "divider" ? /* @__PURE__ */ F(zt, {}, e.key) : /* @__PURE__ */ F(kl, {
|
|
8492
8568
|
item: e.item,
|
|
8493
8569
|
isLoading: n,
|
|
8494
8570
|
itemClass: s.toolbarItem
|
|
@@ -8498,7 +8574,7 @@ var Nl = ({ items: e, farItems: t = [], isLoading: n = !1, ariaLabel: r = "Toolb
|
|
|
8498
8574
|
ref: l,
|
|
8499
8575
|
className: s.leftSection,
|
|
8500
8576
|
children: [
|
|
8501
|
-
h.map((e, t) => t >= g ? null : e.type === "divider" ? /* @__PURE__ */ F(zt, {}, e.key) : /* @__PURE__ */ F(
|
|
8577
|
+
h.map((e, t) => t >= g ? null : e.type === "divider" ? /* @__PURE__ */ F(zt, {}, e.key) : /* @__PURE__ */ F(kl, {
|
|
8502
8578
|
item: e.item,
|
|
8503
8579
|
isLoading: n,
|
|
8504
8580
|
itemClass: s.toolbarItem
|
|
@@ -8541,7 +8617,7 @@ var Nl = ({ items: e, farItems: t = [], isLoading: n = !1, ariaLabel: r = "Toolb
|
|
|
8541
8617
|
})
|
|
8542
8618
|
]
|
|
8543
8619
|
});
|
|
8544
|
-
},
|
|
8620
|
+
}, Nl = () => ({
|
|
8545
8621
|
root: H({
|
|
8546
8622
|
display: "flex",
|
|
8547
8623
|
flexDirection: "row",
|
|
@@ -8581,15 +8657,15 @@ var Nl = ({ items: e, farItems: t = [], isLoading: n = !1, ariaLabel: r = "Toolb
|
|
|
8581
8657
|
alignItems: "center",
|
|
8582
8658
|
width: "100%"
|
|
8583
8659
|
})
|
|
8584
|
-
}),
|
|
8660
|
+
}), Pl = 6e4, Fl = /* @__PURE__ */ new Map(), Il = 300 * 1e3, Ll = 120 * 1e3;
|
|
8585
8661
|
setInterval(() => {
|
|
8586
8662
|
let e = Date.now(), t = [];
|
|
8587
|
-
|
|
8663
|
+
Fl.forEach((n, r) => {
|
|
8588
8664
|
e > n.expiresAt && t.push(r);
|
|
8589
|
-
}), t.forEach((e) =>
|
|
8665
|
+
}), t.forEach((e) => Fl.delete(e));
|
|
8590
8666
|
}, 600 * 1e3);
|
|
8591
|
-
var
|
|
8592
|
-
let n =
|
|
8667
|
+
var Rl = (e, t) => {
|
|
8668
|
+
let n = Ri(), r = (t || n)?.graphClient, { error: i, warn: a, verbose: o } = G(), [s, c] = N(void 0), [l, u] = N(!0), d = D(async (e) => {
|
|
8593
8669
|
if (!r) return a("Graph client not available"), null;
|
|
8594
8670
|
try {
|
|
8595
8671
|
return await r.get(`/users/${e}`);
|
|
@@ -8623,7 +8699,7 @@ var zl = (e, t) => {
|
|
|
8623
8699
|
u(!1);
|
|
8624
8700
|
return;
|
|
8625
8701
|
}
|
|
8626
|
-
let t =
|
|
8702
|
+
let t = Fl.get(e), n = Date.now();
|
|
8627
8703
|
if (t && n < t.expiresAt) {
|
|
8628
8704
|
c(t.data), u(!1);
|
|
8629
8705
|
return;
|
|
@@ -8656,10 +8732,10 @@ var zl = (e, t) => {
|
|
|
8656
8732
|
presence: r,
|
|
8657
8733
|
userPhoto: a
|
|
8658
8734
|
};
|
|
8659
|
-
|
|
8735
|
+
Fl.set(e, {
|
|
8660
8736
|
data: o,
|
|
8661
8737
|
timestamp: n,
|
|
8662
|
-
expiresAt: n +
|
|
8738
|
+
expiresAt: n + Il
|
|
8663
8739
|
}), c(o);
|
|
8664
8740
|
} catch (e) {
|
|
8665
8741
|
i("fetchUser: Error fetching user", e, S.Error);
|
|
@@ -8674,8 +8750,8 @@ var zl = (e, t) => {
|
|
|
8674
8750
|
i
|
|
8675
8751
|
]), h = D(async () => {
|
|
8676
8752
|
if (!e || !s) return;
|
|
8677
|
-
let t =
|
|
8678
|
-
if (!(t && t.data.presence && n - t.timestamp <
|
|
8753
|
+
let t = Fl.get(e), n = Date.now();
|
|
8754
|
+
if (!(t && t.data.presence && n - t.timestamp < Ll)) try {
|
|
8679
8755
|
let r = {
|
|
8680
8756
|
availability: "Offline",
|
|
8681
8757
|
activity: "Offline"
|
|
@@ -8695,10 +8771,10 @@ var zl = (e, t) => {
|
|
|
8695
8771
|
...s,
|
|
8696
8772
|
presence: r
|
|
8697
8773
|
};
|
|
8698
|
-
|
|
8774
|
+
Fl.set(e, {
|
|
8699
8775
|
data: a,
|
|
8700
8776
|
timestamp: n,
|
|
8701
|
-
expiresAt: t?.expiresAt || n +
|
|
8777
|
+
expiresAt: t?.expiresAt || n + Il
|
|
8702
8778
|
}), c(a);
|
|
8703
8779
|
} catch (e) {
|
|
8704
8780
|
i("checkUserPresence: Error in checkUserPresence", e, S.Error);
|
|
@@ -8714,7 +8790,7 @@ var zl = (e, t) => {
|
|
|
8714
8790
|
await m();
|
|
8715
8791
|
})();
|
|
8716
8792
|
}, [m]);
|
|
8717
|
-
let { startPolling: g, stopPolling: _ } =
|
|
8793
|
+
let { startPolling: g, stopPolling: _ } = Vi(h, s ? Pl : Pl * 2, !1);
|
|
8718
8794
|
return k(() => (s && g(), () => {
|
|
8719
8795
|
_();
|
|
8720
8796
|
}), [
|
|
@@ -8726,8 +8802,8 @@ var zl = (e, t) => {
|
|
|
8726
8802
|
loading: l,
|
|
8727
8803
|
refetch: m
|
|
8728
8804
|
};
|
|
8729
|
-
},
|
|
8730
|
-
let u =
|
|
8805
|
+
}, zl = T.memo(({ userId: e, avatarSize: t = 32, showHoverCard: n = !0, context: r, textPosition: i = "after", className: a, avatarOnly: o = !1, secondaryText: s, tertiaryText: c, quaternaryText: l }) => {
|
|
8806
|
+
let u = Nl(), { user: d } = Rl(e, r), f = C(), p = j(() => {
|
|
8731
8807
|
let e = d?.presence?.availability?.toLowerCase(), t = d?.presence?.activity?.toLowerCase();
|
|
8732
8808
|
switch (e) {
|
|
8733
8809
|
case "available": return {
|
|
@@ -8782,7 +8858,7 @@ var zl = (e, t) => {
|
|
|
8782
8858
|
d?.presence?.activity,
|
|
8783
8859
|
f
|
|
8784
8860
|
]);
|
|
8785
|
-
return /* @__PURE__ */ F(
|
|
8861
|
+
return /* @__PURE__ */ F(wl, {
|
|
8786
8862
|
upn: n && d?.mail || "",
|
|
8787
8863
|
template: /* @__PURE__ */ F("div", {
|
|
8788
8864
|
className: B(u.root, a),
|
|
@@ -8841,7 +8917,7 @@ var zl = (e, t) => {
|
|
|
8841
8917
|
})
|
|
8842
8918
|
})
|
|
8843
8919
|
});
|
|
8844
|
-
}, (e, t) => e.userId === t.userId && e.avatarSize === t.avatarSize && e.showHoverCard === t.showHoverCard && e.textPosition === t.textPosition && e.avatarOnly === t.avatarOnly && e.className === t.className && JSON.stringify(e.secondaryText) === JSON.stringify(t.secondaryText) && JSON.stringify(e.tertiaryText) === JSON.stringify(t.tertiaryText) && JSON.stringify(e.quaternaryText) === JSON.stringify(t.quaternaryText)),
|
|
8920
|
+
}, (e, t) => e.userId === t.userId && e.avatarSize === t.avatarSize && e.showHoverCard === t.showHoverCard && e.textPosition === t.textPosition && e.avatarOnly === t.avatarOnly && e.className === t.className && JSON.stringify(e.secondaryText) === JSON.stringify(t.secondaryText) && JSON.stringify(e.tertiaryText) === JSON.stringify(t.tertiaryText) && JSON.stringify(e.quaternaryText) === JSON.stringify(t.quaternaryText)), Bl = () => ({
|
|
8845
8921
|
container: H({
|
|
8846
8922
|
display: "flex",
|
|
8847
8923
|
alignItems: "center",
|
|
@@ -8899,8 +8975,8 @@ var zl = (e, t) => {
|
|
|
8899
8975
|
transition: "background-color 0.2s ease",
|
|
8900
8976
|
"&:hover": { backgroundColor: V.colorNeutralBackground1Hover }
|
|
8901
8977
|
})
|
|
8902
|
-
}),
|
|
8903
|
-
let c =
|
|
8978
|
+
}), Vl = ({ users: e, maxVisible: t = 5, avatarSize: n = 32, showHoverCard: r = !0, context: i, className: a, layout: o = "stack", overflowText: s }) => {
|
|
8979
|
+
let c = Bl(), { warn: l } = G(), { visibleUsers: u, overflowUsers: d } = j(() => !e || e.length === 0 ? {
|
|
8904
8980
|
visibleUsers: [],
|
|
8905
8981
|
overflowUsers: []
|
|
8906
8982
|
} : {
|
|
@@ -8914,7 +8990,7 @@ var zl = (e, t) => {
|
|
|
8914
8990
|
className: `${o === "stack" ? c.stackLayout : c.spreadLayout} ${a || ""}`,
|
|
8915
8991
|
children: [u.map((e, t) => /* @__PURE__ */ F("div", {
|
|
8916
8992
|
className: c.userCardWrapper,
|
|
8917
|
-
children: /* @__PURE__ */ F(
|
|
8993
|
+
children: /* @__PURE__ */ F(zl, {
|
|
8918
8994
|
userId: e.id,
|
|
8919
8995
|
avatarSize: n,
|
|
8920
8996
|
showHoverCard: r ?? !0,
|
|
@@ -8927,6 +9003,7 @@ var zl = (e, t) => {
|
|
|
8927
9003
|
disableButtonEnhancement: !0,
|
|
8928
9004
|
children: /* @__PURE__ */ F(R, {
|
|
8929
9005
|
className: c.overflowButton,
|
|
9006
|
+
"aria-label": `Show ${d.length} more users`,
|
|
8930
9007
|
style: {
|
|
8931
9008
|
width: `${n}px`,
|
|
8932
9009
|
height: `${n}px`,
|
|
@@ -8941,7 +9018,7 @@ var zl = (e, t) => {
|
|
|
8941
9018
|
className: c.popoverUserList,
|
|
8942
9019
|
children: d.map((e, t) => /* @__PURE__ */ F("div", {
|
|
8943
9020
|
className: c.popoverUserCard,
|
|
8944
|
-
children: /* @__PURE__ */ F(
|
|
9021
|
+
children: /* @__PURE__ */ F(zl, {
|
|
8945
9022
|
userId: e.id,
|
|
8946
9023
|
avatarSize: 32,
|
|
8947
9024
|
showHoverCard: r ?? !0,
|
|
@@ -8954,8 +9031,8 @@ var zl = (e, t) => {
|
|
|
8954
9031
|
})]
|
|
8955
9032
|
})]
|
|
8956
9033
|
}) : (l("StackedUsers: context is required to display user cards"), null);
|
|
8957
|
-
},
|
|
8958
|
-
let t =
|
|
9034
|
+
}, Hl = (e) => {
|
|
9035
|
+
let t = Ri(), n = (e || t)?.graphClient, { warn: r, error: i } = G();
|
|
8959
9036
|
return { getItemActivities: D(async (e, t, a) => {
|
|
8960
9037
|
if (!n) return r("Graph client not available for SharePoint activities"), { activities: [] };
|
|
8961
9038
|
try {
|
|
@@ -8969,11 +9046,11 @@ var zl = (e, t) => {
|
|
|
8969
9046
|
throw i("Error fetching SharePoint activities:", e instanceof Error ? e : void 0), e;
|
|
8970
9047
|
}
|
|
8971
9048
|
}, [n]) };
|
|
8972
|
-
},
|
|
9049
|
+
}, Ul = {
|
|
8973
9050
|
width: "20px",
|
|
8974
9051
|
height: "20px",
|
|
8975
9052
|
color: V.colorBrandBackground
|
|
8976
|
-
},
|
|
9053
|
+
}, Wl = [
|
|
8977
9054
|
"access",
|
|
8978
9055
|
"comment",
|
|
8979
9056
|
"create",
|
|
@@ -8985,51 +9062,84 @@ var zl = (e, t) => {
|
|
|
8985
9062
|
"restore",
|
|
8986
9063
|
"share",
|
|
8987
9064
|
"version"
|
|
8988
|
-
],
|
|
8989
|
-
let { getItemActivities: o } =
|
|
9065
|
+
], Gl = /* @__PURE__ */ new Map([]), Kl = ({ siteId: e, listId: t, itemId: n, currentUserEmail: r, strings: i, context: a }) => {
|
|
9066
|
+
let { getItemActivities: o } = Hl(a), c = s(), { warn: l, error: u } = G(), d = new Map([
|
|
8990
9067
|
["access", {
|
|
8991
|
-
message: i?.access || c.accessed ||
|
|
8992
|
-
icon: /* @__PURE__ */ F(ur, {
|
|
9068
|
+
message: i?.access || c.accessed || Gl.get("access")?.message || "",
|
|
9069
|
+
icon: /* @__PURE__ */ F(ur, {
|
|
9070
|
+
style: Ul,
|
|
9071
|
+
"aria-hidden": "true"
|
|
9072
|
+
})
|
|
8993
9073
|
}],
|
|
8994
9074
|
["comment", {
|
|
8995
|
-
message: i?.comment || c.commented ||
|
|
8996
|
-
icon: /* @__PURE__ */ F(Zn, {
|
|
9075
|
+
message: i?.comment || c.commented || Gl.get("comment")?.message || "",
|
|
9076
|
+
icon: /* @__PURE__ */ F(Zn, {
|
|
9077
|
+
style: Ul,
|
|
9078
|
+
"aria-hidden": "true"
|
|
9079
|
+
})
|
|
8997
9080
|
}],
|
|
8998
9081
|
["create", {
|
|
8999
|
-
message: i?.create || c.created ||
|
|
9000
|
-
icon: /* @__PURE__ */ F(Tn, {
|
|
9082
|
+
message: i?.create || c.created || Gl.get("create")?.message || "",
|
|
9083
|
+
icon: /* @__PURE__ */ F(Tn, {
|
|
9084
|
+
style: Ul,
|
|
9085
|
+
"aria-hidden": "true"
|
|
9086
|
+
})
|
|
9001
9087
|
}],
|
|
9002
9088
|
["delete", {
|
|
9003
|
-
message: i?.delete || c.deleted ||
|
|
9004
|
-
icon: /* @__PURE__ */ F($n, {
|
|
9089
|
+
message: i?.delete || c.deleted || Gl.get("delete")?.message || "",
|
|
9090
|
+
icon: /* @__PURE__ */ F($n, {
|
|
9091
|
+
style: Ul,
|
|
9092
|
+
"aria-hidden": "true"
|
|
9093
|
+
})
|
|
9005
9094
|
}],
|
|
9006
9095
|
["edit", {
|
|
9007
|
-
message: i?.edit || c.edited ||
|
|
9008
|
-
icon: /* @__PURE__ */ F(nr, {
|
|
9096
|
+
message: i?.edit || c.edited || Gl.get("edit")?.message || "",
|
|
9097
|
+
icon: /* @__PURE__ */ F(nr, {
|
|
9098
|
+
style: Ul,
|
|
9099
|
+
"aria-hidden": "true"
|
|
9100
|
+
})
|
|
9009
9101
|
}],
|
|
9010
9102
|
["mention", {
|
|
9011
|
-
message: i?.mention || c.mentioned ||
|
|
9012
|
-
icon: /* @__PURE__ */ F(sr, {
|
|
9103
|
+
message: i?.mention || c.mentioned || Gl.get("mention")?.message || "",
|
|
9104
|
+
icon: /* @__PURE__ */ F(sr, {
|
|
9105
|
+
style: Ul,
|
|
9106
|
+
"aria-hidden": "true"
|
|
9107
|
+
})
|
|
9013
9108
|
}],
|
|
9014
9109
|
["move", {
|
|
9015
|
-
message: i?.move || c.moved ||
|
|
9016
|
-
icon: /* @__PURE__ */ F(jn, {
|
|
9110
|
+
message: i?.move || c.moved || Gl.get("move")?.message || "",
|
|
9111
|
+
icon: /* @__PURE__ */ F(jn, {
|
|
9112
|
+
style: Ul,
|
|
9113
|
+
"aria-hidden": "true"
|
|
9114
|
+
})
|
|
9017
9115
|
}],
|
|
9018
9116
|
["rename", {
|
|
9019
|
-
message: i?.rename || c.renamed ||
|
|
9020
|
-
icon: /* @__PURE__ */ F(mr, {
|
|
9117
|
+
message: i?.rename || c.renamed || Gl.get("rename")?.message || "",
|
|
9118
|
+
icon: /* @__PURE__ */ F(mr, {
|
|
9119
|
+
style: Ul,
|
|
9120
|
+
"aria-hidden": "true"
|
|
9121
|
+
})
|
|
9021
9122
|
}],
|
|
9022
9123
|
["restore", {
|
|
9023
|
-
message: i?.restore || c.restored ||
|
|
9024
|
-
icon: /* @__PURE__ */ F(Nn, {
|
|
9124
|
+
message: i?.restore || c.restored || Gl.get("restore")?.message || "",
|
|
9125
|
+
icon: /* @__PURE__ */ F(Nn, {
|
|
9126
|
+
style: Ul,
|
|
9127
|
+
"aria-hidden": "true"
|
|
9128
|
+
})
|
|
9025
9129
|
}],
|
|
9026
9130
|
["share", {
|
|
9027
|
-
message: i?.share || c.shared ||
|
|
9028
|
-
icon: /* @__PURE__ */ F(dr, {
|
|
9131
|
+
message: i?.share || c.shared || Gl.get("share")?.message || "",
|
|
9132
|
+
icon: /* @__PURE__ */ F(dr, {
|
|
9133
|
+
style: Ul,
|
|
9134
|
+
"aria-hidden": "true"
|
|
9135
|
+
})
|
|
9029
9136
|
}],
|
|
9030
9137
|
["version", {
|
|
9031
|
-
message: i?.version || c.versioned ||
|
|
9032
|
-
icon: /* @__PURE__ */ F(ar, {
|
|
9138
|
+
message: i?.version || c.versioned || Gl.get("version")?.message || "",
|
|
9139
|
+
icon: /* @__PURE__ */ F(ar, {
|
|
9140
|
+
style: Ul,
|
|
9141
|
+
"aria-hidden": "true"
|
|
9142
|
+
})
|
|
9033
9143
|
}]
|
|
9034
9144
|
]), [f, p] = w.useState({
|
|
9035
9145
|
message: "",
|
|
@@ -9039,7 +9149,7 @@ var zl = (e, t) => {
|
|
|
9039
9149
|
message: "",
|
|
9040
9150
|
icon: /* @__PURE__ */ F(P, {})
|
|
9041
9151
|
};
|
|
9042
|
-
let { action: t, actor: n } = e, { displayName: r } = n?.user || { displayName: "" }, i =
|
|
9152
|
+
let { action: t, actor: n } = e, { displayName: r } = n?.user || { displayName: "" }, i = Wl.find((e) => t[e]);
|
|
9043
9153
|
if (i) {
|
|
9044
9154
|
let e = d.get(i);
|
|
9045
9155
|
if (e) return {
|
|
@@ -9098,14 +9208,17 @@ var zl = (e, t) => {
|
|
|
9098
9208
|
]
|
|
9099
9209
|
}) })
|
|
9100
9210
|
});
|
|
9101
|
-
},
|
|
9211
|
+
}, ql = (e) => /* @__PURE__ */ I("svg", {
|
|
9102
9212
|
width: "100",
|
|
9103
9213
|
height: "100",
|
|
9104
9214
|
viewBox: "0 0 100 100",
|
|
9105
9215
|
fill: "none",
|
|
9106
9216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9217
|
+
role: "img",
|
|
9218
|
+
"aria-label": "Business report",
|
|
9107
9219
|
...e,
|
|
9108
9220
|
children: [
|
|
9221
|
+
/* @__PURE__ */ F("title", { children: "Business report" }),
|
|
9109
9222
|
/* @__PURE__ */ F("rect", {
|
|
9110
9223
|
x: "20",
|
|
9111
9224
|
y: "30",
|
|
@@ -9136,7 +9249,7 @@ var zl = (e, t) => {
|
|
|
9136
9249
|
fill: "#0078D4"
|
|
9137
9250
|
})
|
|
9138
9251
|
]
|
|
9139
|
-
}),
|
|
9252
|
+
}), Jl = (e) => {
|
|
9140
9253
|
let { height: t } = e, n = d();
|
|
9141
9254
|
return /* @__PURE__ */ I("div", {
|
|
9142
9255
|
style: {
|
|
@@ -9146,7 +9259,7 @@ var zl = (e, t) => {
|
|
|
9146
9259
|
alignItems: "center",
|
|
9147
9260
|
flexDirection: "column"
|
|
9148
9261
|
},
|
|
9149
|
-
children: [/* @__PURE__ */ F(
|
|
9262
|
+
children: [/* @__PURE__ */ F(ql, {
|
|
9150
9263
|
width: 200,
|
|
9151
9264
|
height: 200
|
|
9152
9265
|
}), /* @__PURE__ */ F(z, {
|
|
@@ -9155,7 +9268,7 @@ var zl = (e, t) => {
|
|
|
9155
9268
|
children: n.noDashboardsAvailable
|
|
9156
9269
|
})]
|
|
9157
9270
|
});
|
|
9158
|
-
},
|
|
9271
|
+
}, Yl = () => ({
|
|
9159
9272
|
gridContainer: H`
|
|
9160
9273
|
display: grid;
|
|
9161
9274
|
gap: 4px;
|
|
@@ -9194,8 +9307,8 @@ var zl = (e, t) => {
|
|
|
9194
9307
|
boxSizing: "border-box",
|
|
9195
9308
|
padding: "8px 0px"
|
|
9196
9309
|
})
|
|
9197
|
-
}),
|
|
9198
|
-
let { onChange: t, values: n, maxCols: r, maxRows: i } = e, a = wr(gr, _r), o =
|
|
9310
|
+
}), Xl = (e) => {
|
|
9311
|
+
let { onChange: t, values: n, maxCols: r, maxRows: i } = e, a = wr(gr, _r), o = Yl(), s = d(), [c, l] = w.useState(n), [u, f] = w.useState(null), [p, m] = w.useState(!1);
|
|
9199
9312
|
w.useEffect(() => {
|
|
9200
9313
|
l(n);
|
|
9201
9314
|
}, [n]);
|
|
@@ -9219,9 +9332,17 @@ var zl = (e, t) => {
|
|
|
9219
9332
|
for (let t = 0; t < i; t++) for (let n = 0; n < r; n++) {
|
|
9220
9333
|
let r = t < c.spanRows && n < c.spanCols, i = u && t < u.spanRows && n < u.spanCols;
|
|
9221
9334
|
e.push(/* @__PURE__ */ F("div", {
|
|
9335
|
+
role: "gridcell",
|
|
9336
|
+
tabIndex: 0,
|
|
9337
|
+
"aria-label": `Set span to ${n + 1} columns by ${t + 1} rows`,
|
|
9338
|
+
"aria-selected": r,
|
|
9222
9339
|
className: `${o.cell} ${i ? o.hoveredCell : ""} ${r ? o.selectedCell : ""}`,
|
|
9223
9340
|
onMouseEnter: () => _(t, n),
|
|
9224
|
-
onClick: () => g(t, n)
|
|
9341
|
+
onClick: () => g(t, n),
|
|
9342
|
+
onKeyDown: (e) => {
|
|
9343
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), g(t, n));
|
|
9344
|
+
},
|
|
9345
|
+
onFocus: () => _(t, n)
|
|
9225
9346
|
}, `${t}-${n}`));
|
|
9226
9347
|
}
|
|
9227
9348
|
return e;
|
|
@@ -9249,7 +9370,7 @@ var zl = (e, t) => {
|
|
|
9249
9370
|
children: [
|
|
9250
9371
|
/* @__PURE__ */ F("div", {
|
|
9251
9372
|
className: o.zoomContainer,
|
|
9252
|
-
children: /* @__PURE__ */ F(
|
|
9373
|
+
children: /* @__PURE__ */ F(ro, { label: `Span (${c.spanCols} × ${c.spanRows})` })
|
|
9253
9374
|
}),
|
|
9254
9375
|
/* @__PURE__ */ F("div", {
|
|
9255
9376
|
className: o.gridContainer,
|
|
@@ -9267,7 +9388,7 @@ var zl = (e, t) => {
|
|
|
9267
9388
|
]
|
|
9268
9389
|
})]
|
|
9269
9390
|
});
|
|
9270
|
-
},
|
|
9391
|
+
}, Zl = () => ({
|
|
9271
9392
|
dashboardContainer: H({
|
|
9272
9393
|
display: "grid",
|
|
9273
9394
|
padding: "20px",
|
|
@@ -9320,8 +9441,8 @@ var zl = (e, t) => {
|
|
|
9320
9441
|
boxShadow: `${V.shadow8}`
|
|
9321
9442
|
}
|
|
9322
9443
|
})
|
|
9323
|
-
}),
|
|
9324
|
-
let { warn: l } = G(), u =
|
|
9444
|
+
}), Ql = 600, $l = 4, eu = "app-dashboard", tu = 30, nu = ({ cards: e, containerWidth: t, containerHeight: n = "100%", maxSpanRows: r = $l, enableDragAndDrop: i = !0, enableCache: a = !0, cacheKeyPrefix: o = eu, onCardsReorder: s, onCardResize: c }) => {
|
|
9445
|
+
let { warn: l } = G(), u = Zl(), d = `${o}-layout-settings`, f = `${o}-card-order`, { getCachedData: p, setCachedData: m } = Bi(), h = D((e) => p(e), [p]), g = D((e, t) => m(e, t, tu * 24 * 60), [m]), { getCachedData: _, setCachedData: v } = Bi(), y = D((e) => _(e), [_]), b = D((e, t) => v(e, t, tu * 24 * 60), [v]), [x, S] = N([]), [C, w] = N({}), T = M(null), E = M(null), O = M(null);
|
|
9325
9446
|
k(() => {
|
|
9326
9447
|
(async () => {
|
|
9327
9448
|
try {
|
|
@@ -9391,7 +9512,7 @@ var zl = (e, t) => {
|
|
|
9391
9512
|
f,
|
|
9392
9513
|
b
|
|
9393
9514
|
]), k(() => {
|
|
9394
|
-
t <=
|
|
9515
|
+
t <= Ql && w(() => {
|
|
9395
9516
|
let e = {};
|
|
9396
9517
|
return x.forEach((t) => {
|
|
9397
9518
|
e[t.id] = {
|
|
@@ -9401,7 +9522,7 @@ var zl = (e, t) => {
|
|
|
9401
9522
|
}), e;
|
|
9402
9523
|
});
|
|
9403
9524
|
}, [t, x]);
|
|
9404
|
-
let A = j(() => t >
|
|
9525
|
+
let A = j(() => t > Ql, [t]), { minCardWidth: P, gridGap: L, containerPadding: ee } = j(() => ({
|
|
9405
9526
|
minCardWidth: 350,
|
|
9406
9527
|
gridGap: 16,
|
|
9407
9528
|
containerPadding: 20
|
|
@@ -9432,7 +9553,7 @@ var zl = (e, t) => {
|
|
|
9432
9553
|
spanCols: Math.min(t.defaultSpan?.spanCols ?? 1, ne),
|
|
9433
9554
|
spanRows: t.defaultSpan?.spanRows ?? 1
|
|
9434
9555
|
}, e), {}), [x, ne]), se = j(() => x.map((e, t) => {
|
|
9435
|
-
let a = e.showZoom !== !1 && A, o = e.headerAction || (a ? /* @__PURE__ */ F(
|
|
9556
|
+
let a = e.showZoom !== !1 && A, o = e.headerAction || (a ? /* @__PURE__ */ F(Xl, {
|
|
9436
9557
|
values: C[e.id] || oe[e.id] || {
|
|
9437
9558
|
spanCols: 1,
|
|
9438
9559
|
spanRows: 1
|
|
@@ -9444,11 +9565,17 @@ var zl = (e, t) => {
|
|
|
9444
9565
|
}) : void 0);
|
|
9445
9566
|
return /* @__PURE__ */ F("div", {
|
|
9446
9567
|
className: u.cardWrapper,
|
|
9568
|
+
tabIndex: i ? 0 : void 0,
|
|
9569
|
+
role: i ? "listitem" : void 0,
|
|
9570
|
+
"aria-label": i ? `${e.cardTitle}, press Ctrl+Arrow keys to reorder` : void 0,
|
|
9447
9571
|
draggable: i,
|
|
9448
9572
|
onDragStart: () => i && (T.current = t),
|
|
9449
9573
|
onDragEnter: () => i && (E.current = t),
|
|
9450
9574
|
onDragOver: (e) => i && e.preventDefault(),
|
|
9451
9575
|
onDragEnd: i ? ie : void 0,
|
|
9576
|
+
onKeyDown: i ? (e) => {
|
|
9577
|
+
!e.ctrlKey && !e.metaKey || (e.key === "ArrowLeft" || e.key === "ArrowUp" ? t > 0 && (e.preventDefault(), T.current = t, E.current = t - 1, ie()) : (e.key === "ArrowRight" || e.key === "ArrowDown") && t < x.length - 1 && (e.preventDefault(), T.current = t, E.current = t + 1, ie()));
|
|
9578
|
+
} : void 0,
|
|
9452
9579
|
style: {
|
|
9453
9580
|
gridColumnEnd: C[e.id]?.spanCols ? `span ${C[e.id].spanCols}` : `span ${oe[e.id]?.spanCols || 1}`,
|
|
9454
9581
|
gridRowEnd: C[e.id]?.spanRows ? `span ${C[e.id].spanRows}` : `span ${oe[e.id]?.spanRows || 1}`,
|
|
@@ -9460,6 +9587,7 @@ var zl = (e, t) => {
|
|
|
9460
9587
|
header: /* @__PURE__ */ I(J, {
|
|
9461
9588
|
gap: "0px",
|
|
9462
9589
|
children: [/* @__PURE__ */ F(z, {
|
|
9590
|
+
as: "h3",
|
|
9463
9591
|
weight: "semibold",
|
|
9464
9592
|
size: 400,
|
|
9465
9593
|
children: e.cardTitle
|
|
@@ -9496,19 +9624,19 @@ var zl = (e, t) => {
|
|
|
9496
9624
|
n,
|
|
9497
9625
|
oe
|
|
9498
9626
|
]);
|
|
9499
|
-
return x.length === 0 ? /* @__PURE__ */ F(
|
|
9627
|
+
return x.length === 0 ? /* @__PURE__ */ F(Jl, {}) : /* @__PURE__ */ F("div", {
|
|
9500
9628
|
ref: O,
|
|
9501
9629
|
className: u.dashboardContainer,
|
|
9502
9630
|
style: { height: n },
|
|
9503
9631
|
children: se
|
|
9504
9632
|
});
|
|
9505
|
-
},
|
|
9633
|
+
}, ru = Cn`
|
|
9506
9634
|
0%, 100% { transform: translateY(0px); }
|
|
9507
9635
|
50% { transform: translateY(-8px); }
|
|
9508
|
-
`,
|
|
9636
|
+
`, iu = Cn`
|
|
9509
9637
|
0% { background-position: -200% center; }
|
|
9510
9638
|
100% { background-position: 200% center; }
|
|
9511
|
-
`,
|
|
9639
|
+
`, au = () => ({
|
|
9512
9640
|
card: H({
|
|
9513
9641
|
width: "100%",
|
|
9514
9642
|
height: "310px",
|
|
@@ -9684,7 +9812,7 @@ var zl = (e, t) => {
|
|
|
9684
9812
|
alignItems: "center",
|
|
9685
9813
|
justifyContent: "center",
|
|
9686
9814
|
boxShadow: `0 8px 24px ${V.colorBrandBackground}40`,
|
|
9687
|
-
animation: `${
|
|
9815
|
+
animation: `${ru} 3s ease-in-out infinite`,
|
|
9688
9816
|
position: "relative",
|
|
9689
9817
|
zIndex: 1
|
|
9690
9818
|
}),
|
|
@@ -9698,7 +9826,7 @@ var zl = (e, t) => {
|
|
|
9698
9826
|
right: "-8px",
|
|
9699
9827
|
color: V.colorPaletteYellowForeground1,
|
|
9700
9828
|
fontSize: "20px",
|
|
9701
|
-
animation: `${
|
|
9829
|
+
animation: `${ru} 2s ease-in-out infinite 0.5s`
|
|
9702
9830
|
}),
|
|
9703
9831
|
noKpiSparkle2: H({
|
|
9704
9832
|
position: "absolute",
|
|
@@ -9706,7 +9834,7 @@ var zl = (e, t) => {
|
|
|
9706
9834
|
left: "-8px",
|
|
9707
9835
|
color: V.colorPaletteLavenderForeground2,
|
|
9708
9836
|
fontSize: "16px",
|
|
9709
|
-
animation: `${
|
|
9837
|
+
animation: `${ru} 2.5s ease-in-out infinite`
|
|
9710
9838
|
}),
|
|
9711
9839
|
noKpiTitle: H({
|
|
9712
9840
|
fontSize: "22px",
|
|
@@ -9734,7 +9862,7 @@ var zl = (e, t) => {
|
|
|
9734
9862
|
WebkitTextFillColor: "transparent",
|
|
9735
9863
|
backgroundClip: "text",
|
|
9736
9864
|
fontWeight: V.fontWeightSemibold,
|
|
9737
|
-
animation: `${
|
|
9865
|
+
animation: `${iu} 3s linear infinite`
|
|
9738
9866
|
}),
|
|
9739
9867
|
noKpiButtonContainer: H({
|
|
9740
9868
|
marginTop: "24px",
|
|
@@ -9763,12 +9891,12 @@ var zl = (e, t) => {
|
|
|
9763
9891
|
gridTemplateColumns: "repeat(auto-fit, minmax(80px, 1fr))",
|
|
9764
9892
|
alignItems: "center"
|
|
9765
9893
|
})
|
|
9766
|
-
}),
|
|
9894
|
+
}), ou = /* @__PURE__ */ function(e) {
|
|
9767
9895
|
return e[e.LOWER_IS_BETTER = 1] = "LOWER_IS_BETTER", e[e.HIGHER_IS_BETTER = 2] = "HIGHER_IS_BETTER", e;
|
|
9768
|
-
}({}),
|
|
9769
|
-
let { dataCard: t } = e, n =
|
|
9896
|
+
}({}), su = (e) => {
|
|
9897
|
+
let { dataCard: t } = e, n = au(), r = b(), [i, a] = w.useState(!1), o = w.useCallback(() => {
|
|
9770
9898
|
a(!1);
|
|
9771
|
-
}, []), s = w.useMemo(() => t.goalMetric ===
|
|
9899
|
+
}, []), s = w.useMemo(() => t.goalMetric === ou.LOWER_IS_BETTER ? t.currentValue <= t.goal : t.currentValue >= t.goal, [
|
|
9772
9900
|
t.currentValue,
|
|
9773
9901
|
t.goal,
|
|
9774
9902
|
t.goalMetric
|
|
@@ -9790,6 +9918,7 @@ var zl = (e, t) => {
|
|
|
9790
9918
|
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ I(he, {
|
|
9791
9919
|
className: n.card,
|
|
9792
9920
|
onMouseLeave: o,
|
|
9921
|
+
"aria-label": `${t.title || r.defaultTitle}: ${t.currentValue} of ${t.goal} ${r.goal}, ${s ? r.onTrack : r.exceedGoal}`,
|
|
9793
9922
|
children: [/* @__PURE__ */ F("div", { className: s ? n.glowBlobSuccess : n.glowBlobError }), /* @__PURE__ */ I(J, {
|
|
9794
9923
|
gap: "m",
|
|
9795
9924
|
padding: "m",
|
|
@@ -9825,12 +9954,12 @@ var zl = (e, t) => {
|
|
|
9825
9954
|
color: V.colorNeutralForeground3,
|
|
9826
9955
|
fontStyle: "italic"
|
|
9827
9956
|
},
|
|
9828
|
-
children: t.goalMetric ===
|
|
9957
|
+
children: t.goalMetric === ou.LOWER_IS_BETTER ? r.lowerIsBetter : r.higherIsBetter
|
|
9829
9958
|
})]
|
|
9830
9959
|
}),
|
|
9831
9960
|
action: /* @__PURE__ */ F(Bt, {
|
|
9832
9961
|
content: s ? `✓ ${r.withinGoalThreshold}` : `⚠ ${r.exceedsGoalThreshold}`,
|
|
9833
|
-
relationship: "
|
|
9962
|
+
relationship: "description",
|
|
9834
9963
|
children: /* @__PURE__ */ F(le, {
|
|
9835
9964
|
className: n.headerActionBadge,
|
|
9836
9965
|
appearance: "ghost",
|
|
@@ -9892,7 +10021,7 @@ var zl = (e, t) => {
|
|
|
9892
10021
|
/* @__PURE__ */ I(ge, { children: [
|
|
9893
10022
|
/* @__PURE__ */ F(Bt, {
|
|
9894
10023
|
content: r.maxAllowedThreshold,
|
|
9895
|
-
relationship: "
|
|
10024
|
+
relationship: "description",
|
|
9896
10025
|
children: /* @__PURE__ */ I(J, {
|
|
9897
10026
|
alignItems: "center",
|
|
9898
10027
|
gap: V.spacingVerticalXXS,
|
|
@@ -9915,7 +10044,7 @@ var zl = (e, t) => {
|
|
|
9915
10044
|
}),
|
|
9916
10045
|
/* @__PURE__ */ F(Bt, {
|
|
9917
10046
|
content: r.totalItemsInScope,
|
|
9918
|
-
relationship: "
|
|
10047
|
+
relationship: "description",
|
|
9919
10048
|
children: /* @__PURE__ */ I(J, {
|
|
9920
10049
|
alignItems: "center",
|
|
9921
10050
|
gap: V.spacingVerticalXXS,
|
|
@@ -9938,7 +10067,7 @@ var zl = (e, t) => {
|
|
|
9938
10067
|
}),
|
|
9939
10068
|
/* @__PURE__ */ F(Bt, {
|
|
9940
10069
|
content: r.currentValueAsPercent,
|
|
9941
|
-
relationship: "
|
|
10070
|
+
relationship: "description",
|
|
9942
10071
|
children: /* @__PURE__ */ I(J, {
|
|
9943
10072
|
alignItems: "center",
|
|
9944
10073
|
gap: V.spacingVerticalXXS,
|
|
@@ -9966,8 +10095,8 @@ var zl = (e, t) => {
|
|
|
9966
10095
|
]
|
|
9967
10096
|
})]
|
|
9968
10097
|
}) });
|
|
9969
|
-
},
|
|
9970
|
-
let e =
|
|
10098
|
+
}, cu = () => {
|
|
10099
|
+
let e = au(), t = {
|
|
9971
10100
|
headerTitle: H({
|
|
9972
10101
|
width: "120px",
|
|
9973
10102
|
height: "16px"
|
|
@@ -10103,8 +10232,8 @@ var zl = (e, t) => {
|
|
|
10103
10232
|
})
|
|
10104
10233
|
})
|
|
10105
10234
|
});
|
|
10106
|
-
},
|
|
10107
|
-
let e =
|
|
10235
|
+
}, lu = "/sites/mock-site/Lists/Directory Status Config", uu = () => {
|
|
10236
|
+
let e = au(), t = u(), n = lu, r = w.useCallback(() => {
|
|
10108
10237
|
let e = `${window.location.origin}${n}/AllItems.aspx`;
|
|
10109
10238
|
window.open(e, "_blank");
|
|
10110
10239
|
}, [n]);
|
|
@@ -10156,10 +10285,10 @@ var zl = (e, t) => {
|
|
|
10156
10285
|
})
|
|
10157
10286
|
]
|
|
10158
10287
|
});
|
|
10159
|
-
},
|
|
10160
|
-
let { dataCard: t } = e, n =
|
|
10288
|
+
}, du = (e) => {
|
|
10289
|
+
let { dataCard: t } = e, n = au(), r = b(), [i, a] = w.useState(!1), o = w.useCallback(() => {
|
|
10161
10290
|
a(!1);
|
|
10162
|
-
}, []), s = w.useMemo(() => t.goalMetric ===
|
|
10291
|
+
}, []), s = w.useMemo(() => t.goalMetric === ou.LOWER_IS_BETTER ? t.currentValue <= t.goal : t.currentValue >= t.goal, [
|
|
10163
10292
|
t.currentValue,
|
|
10164
10293
|
t.goal,
|
|
10165
10294
|
t.goalMetric
|
|
@@ -10202,7 +10331,7 @@ var zl = (e, t) => {
|
|
|
10202
10331
|
color: V.colorNeutralForeground3,
|
|
10203
10332
|
fontStyle: "italic"
|
|
10204
10333
|
},
|
|
10205
|
-
children: t.goalMetric ===
|
|
10334
|
+
children: t.goalMetric === ou.LOWER_IS_BETTER ? r.lowerIsBetter : r.higherIsBetter
|
|
10206
10335
|
})]
|
|
10207
10336
|
}),
|
|
10208
10337
|
action: /* @__PURE__ */ F(Bt, {
|
|
@@ -10268,7 +10397,7 @@ var zl = (e, t) => {
|
|
|
10268
10397
|
]
|
|
10269
10398
|
})]
|
|
10270
10399
|
}) });
|
|
10271
|
-
},
|
|
10400
|
+
}, fu = [
|
|
10272
10401
|
{
|
|
10273
10402
|
identifier: "kpi-1",
|
|
10274
10403
|
title: "Sales Revenue",
|
|
@@ -10323,23 +10452,23 @@ var zl = (e, t) => {
|
|
|
10323
10452
|
description: "Employee engagement score percentage",
|
|
10324
10453
|
goalMetric: 1
|
|
10325
10454
|
}
|
|
10326
|
-
],
|
|
10327
|
-
let { skeletonCount: t = 3, compact: n = !1 } = e, r =
|
|
10328
|
-
return w.useCallback(() => Array.from({ length: t }).map((e, t) => /* @__PURE__ */ F(
|
|
10455
|
+
], pu = (e) => {
|
|
10456
|
+
let { skeletonCount: t = 3, compact: n = !1 } = e, r = au(), i = fu;
|
|
10457
|
+
return w.useCallback(() => Array.from({ length: t }).map((e, t) => /* @__PURE__ */ F(cu, {}, `kpi-skeleton-${t}`)), [t]), /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F(J, {
|
|
10329
10458
|
gap: "l",
|
|
10330
10459
|
direction: "horizontal",
|
|
10331
10460
|
padding: "l",
|
|
10332
10461
|
paddingTop: "s",
|
|
10333
10462
|
children: /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F("div", {
|
|
10334
10463
|
className: r.kpiContainer,
|
|
10335
|
-
children: i.length > 0 ? i.map((e) => F(n ?
|
|
10464
|
+
children: i.length > 0 ? i.map((e) => F(n ? du : su, { dataCard: e }, e.identifier)) : /* @__PURE__ */ F(uu, {})
|
|
10336
10465
|
}) })
|
|
10337
10466
|
}) });
|
|
10338
|
-
},
|
|
10467
|
+
}, mu = () => {
|
|
10339
10468
|
let e = w.useRef("");
|
|
10340
10469
|
return e.current ||= "fui-" + Math.random().toString(36).slice(2, 9), e.current;
|
|
10341
|
-
},
|
|
10342
|
-
let t =
|
|
10470
|
+
}, hu = (e) => {
|
|
10471
|
+
let t = mu(), { theme: n = Zt, applicationName: r = t, targetDocument: i = document, applyStylesToPortals: a = !0, className: o, styles: s, children: c } = e;
|
|
10343
10472
|
return /* @__PURE__ */ F(Ve, {
|
|
10344
10473
|
value: r,
|
|
10345
10474
|
children: /* @__PURE__ */ F(Be, {
|
|
@@ -10353,6 +10482,6 @@ var zl = (e, t) => {
|
|
|
10353
10482
|
});
|
|
10354
10483
|
};
|
|
10355
10484
|
//#endregion
|
|
10356
|
-
export {
|
|
10485
|
+
export { _l as AIAssistant, Zc as AISearchControl, qc as AISearchIcon, $c as AISearchIconExample, Bc as AdaptiveCardHost, cc as AdaptiveCardHostThemeType, nu as AppDashboard, Ha as AspectRatio, mo as Breadcrumb, lo as ButtonMenu, es as CalendarControl, Bo as CalendarMonth, ja as Card, Qa as Carousel, Ga as Center, tl as ChatInput, ol as ChatInputWithMensions, vl as ChatInputWithMensionsV1, ml as ChatList, qa as Container, pl as ContentRenderer, Sa as ContentType, Rs as CustomControlBar, Ss as DataGrid, Ts as DataGridV2, ns as DropdownField, Pi as EBreakPoints, X as ECalendarViews, ou as EGoalMetric, Fi as EMessageType, S as ErrorType, hu as FluentUIProvider, Hs as GenericOverFlowMenu, Na as Grid, ho as IconButton, is as InputField, ys as ItemPicker, su as KPICard, du as KPICardCompact, cu as KPICardSkeleton, pu as Kpis, Ia as Layout, La as LayoutItem, Kl as ListItemActivityMessage, Ml as ListToolbar, wl as LivePersona, y as LocalizationProvider, n as LogLevel, sc as MaplibreWorldMap, dl as MarkdownRenderer, rl as Mensions, il as MensionsExample, Cl as MermaidDiagram, Us as Navigation, uu as NoKpisCard, hs as OptionTime, to as Popup, Vc as RenderAdaptiveCard, Os as RenderDialog, ks as RenderDrawer, As as RenderHeader, ro as RenderLabel, ao as RenderSpinner, os as SearchControl, Lo as SelectDay, Vo as SelectMonth, _s as SelectTime, ss as SelectView, Go as SelectWeek, Ms as ShareDialog, Ps as ShowError, Is as ShowMessage, za as Space, eo as SplitPane, K as Stack, Va as StackItem, J as StackV2, Vl as StackedUsers, us as TIME_RADIO_GROUP, co as TypographyControl, Li as UniversalProvider, zl as UserCard, Ks as VideoPlayer, da as cloneDeep, la as debounce, t as deepMerge, Xo as defaultCalendarControlStrings, zo as defaultCalendarMonthStrings, Ho as defaultSelectWeekStrings, Oa as detectContentType, e as en, xa as every, ya as filter, fs as formatTime, pa as get, ka as getContentType, _a as groupBy, fa as isEmpty, va as map, ma as set, ba as some, ua as throttle, ps as timeKey, ha as uniq, ga as uniqBy, m as useAIAssistantStrings, _ as useAISearchControlStrings, d as useAppDashboardStrings, Ri as useApplicationContext, Ua as useAspectRatioStyles, ta as useBrandCenterFonts, Ao as useCalendar, i as useCalendarStrings, Co as useCalendarStyles, Wa as useCenterStyles, h as useCommonStrings, v as useComponentStrings, na as useComponentUtils, xs as useDataGridStyles, aa as useDateUtils, jo as useDayViewStyles, zi as useGraphAPI, Ma as useGridStyles, ca as useImageUtils, Bi as useIndexedDBCache, o as useInputFieldStrings, f as useItemPickerStrings, b as useKpiStrings, Pa as useLayoutStyles, s as useListItemActivityStrings, c as useLocalization, G as useLogging, g as useMensionsStrings, nl as useMensionsStyles, p as useMermaidDiagramStrings, bl as useMermaidDiagramStyles, Ws as useNavigationStyles, u as useNoKpiStrings, ls as useOptionTimeStyles, Vi as usePolling, js as useRenderHeaderStyles, l as useSearchControlStrings, cs as useSelectTimeStyles, r as useShareDialogStrings, Ns as useShowErrorStyles, Fs as useShowMessageStyles, Ra as useSpaceStyles, $a as useSplitPaneStyles, Ba as useStackStyles, x as useStrings, yl as useStyles, Hi as useTimeZoneHelper, C as useUserCardStrings, _o as useUtils, Gs as useVideoStyles, Eo as useWeekViewStyles, a as useWorldMapStrings };
|
|
10357
10486
|
|
|
10358
10487
|
//# sourceMappingURL=index.js.map
|