@spteck/react-controls-v2 2.4.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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,78 +992,111 @@ 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:
|
|
1000
|
-
return {
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
995
|
+
}, Ma = (e) => {
|
|
996
|
+
let { cols: t, verticalSpacing: n, horizontalSpacing: r, styles: i, gridItemAutoFlow: a, minItemWidth: o, enableInfiniteScroll: s } = e, { getSpacing: c, getCurrentDevice: l, getBaseStyles: u } = na();
|
|
997
|
+
return {
|
|
998
|
+
gridStyles: w.useCallback((d, f) => {
|
|
999
|
+
let p = u(e, d, f), m = `${c(n, d, "vertical")} ${c(r, d, "horizontal")}`, h = l(d), g = `repeat(auto-${a ?? "fill"}, minmax(min(100%, ${o ?? 250}px), 1fr))`;
|
|
1000
|
+
if (t && t > 0) {
|
|
1001
|
+
let e = t ?? 0;
|
|
1002
|
+
switch (h) {
|
|
1003
|
+
case "ExtraSmall":
|
|
1004
|
+
e = Math.min(t, 1);
|
|
1005
|
+
break;
|
|
1006
|
+
case "Small":
|
|
1007
|
+
e = Math.min(t, 2);
|
|
1008
|
+
break;
|
|
1009
|
+
case "Medium":
|
|
1010
|
+
e = Math.min(t, 3);
|
|
1011
|
+
break;
|
|
1012
|
+
case "Large":
|
|
1013
|
+
e = Math.min(t, 4);
|
|
1014
|
+
break;
|
|
1015
|
+
case "ExtraLarge":
|
|
1016
|
+
e = Math.min(t, 4);
|
|
1017
|
+
break;
|
|
1018
|
+
case "ExtraExtraLarge":
|
|
1019
|
+
e = Math.min(t, 5);
|
|
1020
|
+
break;
|
|
1021
|
+
case "XXXLarge":
|
|
1022
|
+
e = Math.min(t, 6);
|
|
1023
|
+
break;
|
|
1024
|
+
default: e = 0;
|
|
1025
|
+
}
|
|
1026
|
+
g = `repeat(${e}, minmax(auto, 1fr))`;
|
|
1027
1027
|
}
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1028
|
+
return {
|
|
1029
|
+
...p,
|
|
1030
|
+
display: "grid",
|
|
1031
|
+
gridTemplateColumns: g,
|
|
1032
|
+
gap: m,
|
|
1033
|
+
overflow: "hidden",
|
|
1034
|
+
overflowY: s ? "auto" : "hidden",
|
|
1035
|
+
...s ? {
|
|
1036
|
+
scrollbarWidth: "thin",
|
|
1037
|
+
scrollbarColor: `${V.colorBrandBackground} ${V.colorNeutralBackground3}`,
|
|
1038
|
+
paddingRight: "10px"
|
|
1039
|
+
} : {},
|
|
1040
|
+
...i
|
|
1041
|
+
};
|
|
1042
|
+
}, [
|
|
1043
|
+
u,
|
|
1044
|
+
e,
|
|
1045
|
+
c,
|
|
1046
|
+
n,
|
|
1047
|
+
r,
|
|
1048
|
+
l,
|
|
1049
|
+
t,
|
|
1050
|
+
i,
|
|
1051
|
+
a,
|
|
1052
|
+
o,
|
|
1053
|
+
s
|
|
1054
|
+
]),
|
|
1055
|
+
scrollbarClassName: w.useMemo(() => {
|
|
1056
|
+
if (s) return H`
|
|
1057
|
+
&::-webkit-scrollbar {
|
|
1058
|
+
width: 6px !important;
|
|
1059
|
+
height: 6px !important;
|
|
1060
|
+
}
|
|
1061
|
+
&::-webkit-scrollbar-track {
|
|
1062
|
+
background: ${V.colorNeutralBackground3} !important;
|
|
1063
|
+
border-radius: ${V.borderRadiusMedium} !important;
|
|
1064
|
+
}
|
|
1065
|
+
&::-webkit-scrollbar-thumb {
|
|
1066
|
+
background: ${V.colorBrandBackground} !important;
|
|
1067
|
+
border-radius: ${V.borderRadiusMedium} !important;
|
|
1068
|
+
}
|
|
1069
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
1070
|
+
background: ${V.colorBrandBackgroundHover} !important;
|
|
1071
|
+
}
|
|
1072
|
+
`;
|
|
1073
|
+
}, [s])
|
|
1074
|
+
};
|
|
1075
|
+
}, Na = (e) => {
|
|
1076
|
+
let { children: t, className: n, onScroll: r } = e, { gridStyles: i, scrollbarClassName: a } = Ma(e), o = w.useRef(null), [s, c] = w.useState(0), [l, u] = w.useState(0);
|
|
1052
1077
|
return w.useEffect(() => {
|
|
1053
1078
|
let e;
|
|
1054
|
-
return
|
|
1079
|
+
return o.current && (e = new Sn((e) => {
|
|
1055
1080
|
for (let t of e) {
|
|
1056
1081
|
let { width: e, height: n } = t.contentRect;
|
|
1057
|
-
|
|
1082
|
+
c(e), u(n);
|
|
1058
1083
|
}
|
|
1059
|
-
}), e.observe(
|
|
1084
|
+
}), e.observe(o.current)), () => {
|
|
1060
1085
|
e && e.disconnect();
|
|
1061
1086
|
};
|
|
1062
1087
|
}, []), /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F("div", {
|
|
1063
|
-
className: n,
|
|
1064
|
-
style:
|
|
1065
|
-
ref:
|
|
1088
|
+
className: [n, a].filter(Boolean).join(" "),
|
|
1089
|
+
style: i(s, l),
|
|
1090
|
+
ref: o,
|
|
1091
|
+
onScroll: w.useCallback((e) => {
|
|
1092
|
+
if (!r) return;
|
|
1093
|
+
let { scrollTop: t, scrollHeight: n, clientHeight: i } = e.currentTarget;
|
|
1094
|
+
(t + i) / n >= .95 && r(e);
|
|
1095
|
+
}, [r]),
|
|
1066
1096
|
children: t
|
|
1067
1097
|
}) });
|
|
1068
|
-
},
|
|
1069
|
-
let { maxWith: t } = e, { getBaseStyles: n } =
|
|
1098
|
+
}, Pa = (e) => {
|
|
1099
|
+
let { maxWith: t } = e, { getBaseStyles: n } = na();
|
|
1070
1100
|
return {
|
|
1071
1101
|
rootStyles: w.useCallback((r, i) => ({
|
|
1072
1102
|
...n(e, r, i),
|
|
@@ -1081,7 +1111,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1081
1111
|
overflow: "hidden"
|
|
1082
1112
|
})
|
|
1083
1113
|
};
|
|
1084
|
-
},
|
|
1114
|
+
}, Fa = {
|
|
1085
1115
|
areas: [
|
|
1086
1116
|
"header header header",
|
|
1087
1117
|
"sidebar content sidebar",
|
|
@@ -1089,8 +1119,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1089
1119
|
],
|
|
1090
1120
|
columns: "1fr 3fr 1fr",
|
|
1091
1121
|
rows: "auto 1fr auto"
|
|
1092
|
-
},
|
|
1093
|
-
let { className: t, children: n, layoutConfig: r =
|
|
1122
|
+
}, Ia = (e) => {
|
|
1123
|
+
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
1124
|
...e,
|
|
1095
1125
|
layoutConfig: r
|
|
1096
1126
|
}), d = ((e, t) => {
|
|
@@ -1125,21 +1155,21 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1125
1155
|
children: e
|
|
1126
1156
|
}, t) : e)
|
|
1127
1157
|
});
|
|
1128
|
-
},
|
|
1158
|
+
}, La = (e) => {
|
|
1129
1159
|
let { area: t, children: n } = e;
|
|
1130
1160
|
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F("div", {
|
|
1131
1161
|
style: { gridArea: t },
|
|
1132
1162
|
children: n
|
|
1133
1163
|
}) });
|
|
1134
|
-
},
|
|
1135
|
-
let { verticalSpacing: t, horizontalSpacing: n } = e, { getSpacing: r } =
|
|
1164
|
+
}, Ra = (e) => {
|
|
1165
|
+
let { verticalSpacing: t, horizontalSpacing: n } = e, { getSpacing: r } = na();
|
|
1136
1166
|
return { spaceStyles: w.useCallback((e) => e ? n ? { width: r(n, e, "horizontal") } : t ? { height: r(t, e, "vertical") } : {} : {}, [
|
|
1137
1167
|
r,
|
|
1138
1168
|
n,
|
|
1139
1169
|
t
|
|
1140
1170
|
]) };
|
|
1141
|
-
},
|
|
1142
|
-
let t = w.useRef(null), [n, r] = w.useState(0), { spaceStyles: i } =
|
|
1171
|
+
}, za = (e) => {
|
|
1172
|
+
let t = w.useRef(null), [n, r] = w.useState(0), { spaceStyles: i } = Ra(e);
|
|
1143
1173
|
return w.useEffect(() => {
|
|
1144
1174
|
let e;
|
|
1145
1175
|
return t.current && (e = new Sn((e) => {
|
|
@@ -1155,8 +1185,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1155
1185
|
style: i(n),
|
|
1156
1186
|
ref: t
|
|
1157
1187
|
}) });
|
|
1158
|
-
},
|
|
1159
|
-
let { horizontal: t, horizontalAlign: n, verticalAlign: r, verticalFill: i, wrap: a, columnGap: o, RowGap: s } = e, { getBaseStyles: c } =
|
|
1188
|
+
}, Ba = (e) => {
|
|
1189
|
+
let { horizontal: t, horizontalAlign: n, verticalAlign: r, verticalFill: i, wrap: a, columnGap: o, RowGap: s } = e, { getBaseStyles: c } = na();
|
|
1160
1190
|
return { stackStyles: w.useCallback((l, u) => {
|
|
1161
1191
|
let d = r || "start", f = t ? n : "start", p = t ? {
|
|
1162
1192
|
flexFlow: a ? "row wrap" : "row nowrap",
|
|
@@ -1187,7 +1217,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1187
1217
|
a
|
|
1188
1218
|
]) };
|
|
1189
1219
|
}, K = (e) => {
|
|
1190
|
-
let { children: t, className: n } = e, { stackStyles: r } =
|
|
1220
|
+
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
1221
|
return w.useEffect(() => {
|
|
1192
1222
|
let e;
|
|
1193
1223
|
return i.current && (e = new Sn((e) => {
|
|
@@ -1204,8 +1234,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1204
1234
|
ref: i,
|
|
1205
1235
|
children: t
|
|
1206
1236
|
}) });
|
|
1207
|
-
},
|
|
1208
|
-
let { children: t, grow: n, disableShrink: r, shrink: i, order: a, alignSelf: o, verticalFill: s } = e, { getBaseStyles: c } =
|
|
1237
|
+
}, Va = (e) => {
|
|
1238
|
+
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
1239
|
return w.useEffect(() => {
|
|
1210
1240
|
let e;
|
|
1211
1241
|
return l.current && (e = new Sn((e) => {
|
|
@@ -1231,7 +1261,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1231
1261
|
},
|
|
1232
1262
|
children: t
|
|
1233
1263
|
}) });
|
|
1234
|
-
},
|
|
1264
|
+
}, Ha = ({ ratio: e, children: t, maxWidth: n, maxHeight: r, style: i = {}, ...a }) => {
|
|
1235
1265
|
let o = {
|
|
1236
1266
|
position: "relative",
|
|
1237
1267
|
width: "100%",
|
|
@@ -1254,8 +1284,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1254
1284
|
children: t
|
|
1255
1285
|
})
|
|
1256
1286
|
});
|
|
1257
|
-
},
|
|
1258
|
-
let { styles: t } = e, { getBaseStyles: n } =
|
|
1287
|
+
}, Ua = (e) => {
|
|
1288
|
+
let { styles: t } = e, { getBaseStyles: n } = na();
|
|
1259
1289
|
return { aspectRatioStyles: w.useCallback((r, i) => ({
|
|
1260
1290
|
...n(e, r, i),
|
|
1261
1291
|
...t
|
|
@@ -1264,8 +1294,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1264
1294
|
e,
|
|
1265
1295
|
t
|
|
1266
1296
|
]) };
|
|
1267
|
-
},
|
|
1268
|
-
let { styles: t } = e, { getBaseStyles: n } =
|
|
1297
|
+
}, Wa = (e) => {
|
|
1298
|
+
let { styles: t } = e, { getBaseStyles: n } = na();
|
|
1269
1299
|
return {
|
|
1270
1300
|
centerStyles: w.useCallback((r, i) => ({
|
|
1271
1301
|
...n(e, r, i),
|
|
@@ -1286,8 +1316,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1286
1316
|
textAlign: "center"
|
|
1287
1317
|
})
|
|
1288
1318
|
};
|
|
1289
|
-
},
|
|
1290
|
-
let { className: t, children: n } = e, r = w.useRef(null), [i, a] = w.useState(0), [o, s] = w.useState(0), { centerStyles: c } =
|
|
1319
|
+
}, Ga = (e) => {
|
|
1320
|
+
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
1321
|
let n;
|
|
1292
1322
|
return (...r) => {
|
|
1293
1323
|
clearTimeout(n), n = setTimeout(() => e(...r), t);
|
|
@@ -1319,8 +1349,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1319
1349
|
ref: r,
|
|
1320
1350
|
children: n
|
|
1321
1351
|
});
|
|
1322
|
-
},
|
|
1323
|
-
let { maxWidth: t } = e, { getBaseStyles: n } =
|
|
1352
|
+
}, Ka = (e) => {
|
|
1353
|
+
let { maxWidth: t } = e, { getBaseStyles: n } = na();
|
|
1324
1354
|
return { containerStyles: w.useCallback((r, i) => !r || !i ? {} : {
|
|
1325
1355
|
...n(e, r, i),
|
|
1326
1356
|
maxWidth: t
|
|
@@ -1329,8 +1359,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1329
1359
|
t,
|
|
1330
1360
|
e
|
|
1331
1361
|
]) };
|
|
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 } =
|
|
1362
|
+
}, qa = (e) => {
|
|
1363
|
+
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
1364
|
for (let t of e) {
|
|
1335
1365
|
let { width: e, height: n } = t.contentRect;
|
|
1336
1366
|
u(e), f(n);
|
|
@@ -1361,9 +1391,9 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1361
1391
|
...h
|
|
1362
1392
|
},
|
|
1363
1393
|
ref: c,
|
|
1364
|
-
children: s ? /* @__PURE__ */ F(
|
|
1394
|
+
children: s ? /* @__PURE__ */ F(Ga, { children: n }) : n
|
|
1365
1395
|
});
|
|
1366
|
-
},
|
|
1396
|
+
}, Ja = (e) => {
|
|
1367
1397
|
let [t, n] = N(!0), [r, i] = N(!0), a = D(() => {
|
|
1368
1398
|
e && e.scrollPrev();
|
|
1369
1399
|
}, [e]), o = D(() => {
|
|
@@ -1379,8 +1409,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1379
1409
|
onPrevButtonClick: a,
|
|
1380
1410
|
onNextButtonClick: o
|
|
1381
1411
|
};
|
|
1382
|
-
},
|
|
1383
|
-
let { getCurrentDevice: n } =
|
|
1412
|
+
}, Ya = (e, t) => {
|
|
1413
|
+
let { getCurrentDevice: n } = na(), r = w.useCallback(() => {
|
|
1384
1414
|
let e = n(t), r = "95%";
|
|
1385
1415
|
switch (e) {
|
|
1386
1416
|
case "Medium":
|
|
@@ -1449,8 +1479,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1449
1479
|
alignItems: "center"
|
|
1450
1480
|
})
|
|
1451
1481
|
};
|
|
1452
|
-
},
|
|
1453
|
-
let { styles: t } = e, { getBaseStyles: n } =
|
|
1482
|
+
}, Xa = (e) => {
|
|
1483
|
+
let { styles: t } = e, { getBaseStyles: n } = na();
|
|
1454
1484
|
return { carouselStyles: w.useCallback((r, i) => ({
|
|
1455
1485
|
...n(e, r, i),
|
|
1456
1486
|
...t
|
|
@@ -1459,16 +1489,15 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1459
1489
|
e,
|
|
1460
1490
|
t
|
|
1461
1491
|
]) };
|
|
1462
|
-
},
|
|
1492
|
+
}, Za = () => ({ titleStyles: H({
|
|
1463
1493
|
display: "-webkit-box",
|
|
1464
1494
|
overflow: "hidden",
|
|
1465
1495
|
textOverflow: "ellipsis",
|
|
1466
1496
|
WebkitLineClamp: "1",
|
|
1467
1497
|
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);
|
|
1498
|
+
textAlign: "start"
|
|
1499
|
+
}) }), Qa = (e) => {
|
|
1500
|
+
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
1501
|
return w.useEffect(() => {
|
|
1473
1502
|
let e;
|
|
1474
1503
|
return i.current && (e = new Sn((e) => {
|
|
@@ -1481,6 +1510,9 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1481
1510
|
};
|
|
1482
1511
|
}, []), /* @__PURE__ */ F(P, { children: /* @__PURE__ */ I("div", {
|
|
1483
1512
|
id: "-carousel",
|
|
1513
|
+
role: "region",
|
|
1514
|
+
"aria-roledescription": "carousel",
|
|
1515
|
+
"aria-label": r || "Carousel",
|
|
1484
1516
|
className: B(t, "embla"),
|
|
1485
1517
|
style: { ...l(a, s) },
|
|
1486
1518
|
ref: i,
|
|
@@ -1495,12 +1527,14 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1495
1527
|
onClick: b,
|
|
1496
1528
|
disabled: v,
|
|
1497
1529
|
appearance: "subtle",
|
|
1498
|
-
icon: /* @__PURE__ */ F(qn, {})
|
|
1530
|
+
icon: /* @__PURE__ */ F(qn, {}),
|
|
1531
|
+
"aria-label": "Previous slide"
|
|
1499
1532
|
}), /* @__PURE__ */ F(R, {
|
|
1500
1533
|
onClick: x,
|
|
1501
1534
|
disabled: y,
|
|
1502
1535
|
appearance: "subtle",
|
|
1503
|
-
icon: /* @__PURE__ */ F(Jn, {})
|
|
1536
|
+
icon: /* @__PURE__ */ F(Jn, {}),
|
|
1537
|
+
"aria-label": "Next slide"
|
|
1504
1538
|
})]
|
|
1505
1539
|
})]
|
|
1506
1540
|
}), /* @__PURE__ */ F("div", {
|
|
@@ -1510,12 +1544,15 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1510
1544
|
className: h,
|
|
1511
1545
|
children: n.map((e, t) => /* @__PURE__ */ F("div", {
|
|
1512
1546
|
className: m,
|
|
1547
|
+
role: "group",
|
|
1548
|
+
"aria-roledescription": "slide",
|
|
1549
|
+
"aria-label": `Slide ${t + 1} of ${n.length}`,
|
|
1513
1550
|
children: e
|
|
1514
1551
|
}, t))
|
|
1515
1552
|
})
|
|
1516
1553
|
})]
|
|
1517
1554
|
}) });
|
|
1518
|
-
},
|
|
1555
|
+
}, $a = (e) => {
|
|
1519
1556
|
let { direction: t = "horizontal", resizerSize: n = 6 } = e, r = t === "horizontal";
|
|
1520
1557
|
return {
|
|
1521
1558
|
root: H({
|
|
@@ -1604,8 +1641,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1604
1641
|
...b
|
|
1605
1642
|
})),
|
|
1606
1643
|
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 =
|
|
1644
|
+
}))), eo = (e) => {
|
|
1645
|
+
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
1646
|
w.useEffect(() => {
|
|
1610
1647
|
if (_ !== null || !h.current) return;
|
|
1611
1648
|
let e = h.current.getBoundingClientRect(), t = m ? e.width : e.height;
|
|
@@ -1719,12 +1756,22 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1719
1756
|
style: { flex: "0 0 auto" },
|
|
1720
1757
|
children: l
|
|
1721
1758
|
}),
|
|
1722
|
-
o && /* @__PURE__ */ F(
|
|
1759
|
+
o && /* @__PURE__ */ F("div", {
|
|
1723
1760
|
ref: O,
|
|
1724
1761
|
className: k,
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1762
|
+
style: {
|
|
1763
|
+
flex: "0 0 auto",
|
|
1764
|
+
display: "flex",
|
|
1765
|
+
alignItems: "center",
|
|
1766
|
+
justifyContent: "center"
|
|
1767
|
+
},
|
|
1768
|
+
role: "separator",
|
|
1769
|
+
"aria-orientation": m ? "vertical" : "horizontal",
|
|
1770
|
+
"aria-valuenow": Math.round(_ ?? r),
|
|
1771
|
+
"aria-valuemin": r,
|
|
1772
|
+
"aria-valuemax": i === Infinity ? void 0 : i,
|
|
1773
|
+
"aria-label": "Resize pane",
|
|
1774
|
+
tabIndex: 0,
|
|
1728
1775
|
children: /* @__PURE__ */ I(J, {
|
|
1729
1776
|
className: p.resizerGrip,
|
|
1730
1777
|
direction: m ? "vertical" : "horizontal",
|
|
@@ -1757,7 +1804,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1757
1804
|
})
|
|
1758
1805
|
]
|
|
1759
1806
|
});
|
|
1760
|
-
},
|
|
1807
|
+
}, to = ({ anchorPoint: e, isOpen: t, onClose: n, excludeRefs: r, children: i, theme: a }) => {
|
|
1761
1808
|
let o = M(null), [s, c] = N(null);
|
|
1762
1809
|
A(() => {
|
|
1763
1810
|
if (!t) {
|
|
@@ -1799,10 +1846,12 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1799
1846
|
n
|
|
1800
1847
|
]), !t) return null;
|
|
1801
1848
|
let u = s || e;
|
|
1802
|
-
return
|
|
1849
|
+
return Tr.createPortal(a ? /* @__PURE__ */ F(Be, {
|
|
1803
1850
|
theme: a,
|
|
1804
1851
|
children: /* @__PURE__ */ F(he, {
|
|
1805
1852
|
ref: o,
|
|
1853
|
+
role: "dialog",
|
|
1854
|
+
"aria-modal": "true",
|
|
1806
1855
|
style: {
|
|
1807
1856
|
position: "fixed",
|
|
1808
1857
|
zIndex: 1e3,
|
|
@@ -1813,6 +1862,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1813
1862
|
})
|
|
1814
1863
|
}) : /* @__PURE__ */ F(he, {
|
|
1815
1864
|
ref: o,
|
|
1865
|
+
role: "dialog",
|
|
1866
|
+
"aria-modal": "true",
|
|
1816
1867
|
style: {
|
|
1817
1868
|
position: "fixed",
|
|
1818
1869
|
zIndex: 1e3,
|
|
@@ -1821,7 +1872,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1821
1872
|
},
|
|
1822
1873
|
children: i
|
|
1823
1874
|
}), document.body);
|
|
1824
|
-
},
|
|
1875
|
+
}, no = Ht({
|
|
1825
1876
|
labelContainer: {
|
|
1826
1877
|
display: "flex",
|
|
1827
1878
|
flexDirection: "row",
|
|
@@ -1831,17 +1882,18 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1831
1882
|
},
|
|
1832
1883
|
iconStyles: { width: "26px" },
|
|
1833
1884
|
item: { paddingLeft: "15px" }
|
|
1834
|
-
}),
|
|
1835
|
-
let { label: t, icon: n, isRequired: r } = e, i =
|
|
1885
|
+
}), ro = (e) => {
|
|
1886
|
+
let { label: t, icon: n, isRequired: r } = e, i = no();
|
|
1836
1887
|
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ I("div", {
|
|
1837
1888
|
className: i.labelContainer,
|
|
1838
1889
|
children: [
|
|
1839
|
-
n && w.isValidElement(n) ? n : /* @__PURE__ */ F(
|
|
1890
|
+
n && w.isValidElement(n) ? n : /* @__PURE__ */ F(Dr, {
|
|
1840
1891
|
icon: n,
|
|
1841
1892
|
className: i.iconStyles,
|
|
1842
1893
|
width: "20px",
|
|
1843
1894
|
height: "20px",
|
|
1844
|
-
color: V.colorBrandForeground1
|
|
1895
|
+
color: V.colorBrandForeground1,
|
|
1896
|
+
"aria-hidden": "true"
|
|
1845
1897
|
}),
|
|
1846
1898
|
/* @__PURE__ */ F(pe, {
|
|
1847
1899
|
style: { color: V.colorBrandForeground1 },
|
|
@@ -1853,7 +1905,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1853
1905
|
})
|
|
1854
1906
|
]
|
|
1855
1907
|
}) });
|
|
1856
|
-
},
|
|
1908
|
+
}, io = Ht({
|
|
1857
1909
|
root: {
|
|
1858
1910
|
display: "flex",
|
|
1859
1911
|
justifyContent: "center",
|
|
@@ -1865,8 +1917,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1865
1917
|
width: "100px",
|
|
1866
1918
|
height: "100px"
|
|
1867
1919
|
}
|
|
1868
|
-
}),
|
|
1869
|
-
let { size: t, label: n, labelPosition: r, style: i, className: a } = e, o =
|
|
1920
|
+
}), ao = (e) => {
|
|
1921
|
+
let { size: t, label: n, labelPosition: r, style: i, className: a } = e, o = io();
|
|
1870
1922
|
return /* @__PURE__ */ F("div", {
|
|
1871
1923
|
className: o.root,
|
|
1872
1924
|
children: /* @__PURE__ */ F(wt, {
|
|
@@ -1874,10 +1926,11 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1874
1926
|
className: B(o.spinner, a),
|
|
1875
1927
|
size: t,
|
|
1876
1928
|
label: n,
|
|
1877
|
-
labelPosition: r
|
|
1929
|
+
labelPosition: r,
|
|
1930
|
+
"aria-label": n ? void 0 : "Loading"
|
|
1878
1931
|
})
|
|
1879
1932
|
});
|
|
1880
|
-
},
|
|
1933
|
+
}, oo = {
|
|
1881
1934
|
xs: V.fontSizeBase200,
|
|
1882
1935
|
s: V.fontSizeBase300,
|
|
1883
1936
|
m: V.fontSizeBase400,
|
|
@@ -1891,11 +1944,11 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1891
1944
|
l: V.spacingHorizontalL,
|
|
1892
1945
|
xl: V.spacingHorizontalXL,
|
|
1893
1946
|
xxl: V.spacingHorizontalXXL
|
|
1894
|
-
},
|
|
1947
|
+
}, so = {
|
|
1895
1948
|
regular: V.fontWeightRegular,
|
|
1896
1949
|
semibold: V.fontWeightSemibold,
|
|
1897
1950
|
bold: V.fontWeightBold
|
|
1898
|
-
},
|
|
1951
|
+
}, co = (e) => {
|
|
1899
1952
|
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
1953
|
color: y,
|
|
1901
1954
|
padding: o && Y[o] ? Y[o] : o,
|
|
@@ -1911,8 +1964,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1911
1964
|
}), w = {
|
|
1912
1965
|
..._,
|
|
1913
1966
|
...n ? { fontFamily: n } : {},
|
|
1914
|
-
...t ? { fontSize:
|
|
1915
|
-
...r ? { fontWeight:
|
|
1967
|
+
...t ? { fontSize: oo[t] ? oo[t] : t } : {},
|
|
1968
|
+
...r ? { fontWeight: so[r] ? so[r] : r } : {},
|
|
1916
1969
|
...i ? {
|
|
1917
1970
|
display: "-webkit-box",
|
|
1918
1971
|
WebkitBoxOrient: "vertical",
|
|
@@ -1929,7 +1982,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1929
1982
|
wrap: S,
|
|
1930
1983
|
children: g
|
|
1931
1984
|
});
|
|
1932
|
-
},
|
|
1985
|
+
}, lo = (e) => {
|
|
1933
1986
|
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
1987
|
w.useEffect(() => {
|
|
1935
1988
|
n !== void 0 && (u(n), f({ option: [n.key] })), c.current = i.find((e) => e.key === (n?.key ?? i[0]?.key))?.icon;
|
|
@@ -1971,7 +2024,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
1971
2024
|
}) })]
|
|
1972
2025
|
})
|
|
1973
2026
|
}) });
|
|
1974
|
-
},
|
|
2027
|
+
}, uo = () => ({
|
|
1975
2028
|
styles: {
|
|
1976
2029
|
container: H({
|
|
1977
2030
|
display: "flex",
|
|
@@ -2026,12 +2079,12 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2026
2079
|
});
|
|
2027
2080
|
}
|
|
2028
2081
|
}
|
|
2029
|
-
}),
|
|
2082
|
+
}), fo = ({ items: e, theme: t, size: n = "medium" }) => {
|
|
2030
2083
|
let [r, i] = N(!1), a = M(null), o = M(null), [s, c] = N({
|
|
2031
2084
|
top: 0,
|
|
2032
2085
|
left: 0,
|
|
2033
2086
|
position: "absolute"
|
|
2034
|
-
}), { getStyles: l } =
|
|
2087
|
+
}), { getStyles: l } = uo();
|
|
2035
2088
|
return k(() => {
|
|
2036
2089
|
let e = (e) => {
|
|
2037
2090
|
!a.current?.contains(e.target) && !o.current?.contains(e.target) && r && i(!1);
|
|
@@ -2052,8 +2105,9 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2052
2105
|
position: "absolute"
|
|
2053
2106
|
}), i((e) => !e);
|
|
2054
2107
|
}
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2108
|
+
},
|
|
2109
|
+
"aria-label": "More items"
|
|
2110
|
+
}), r && Er(t ? /* @__PURE__ */ F(Be, {
|
|
2057
2111
|
theme: t,
|
|
2058
2112
|
children: /* @__PURE__ */ F(he, {
|
|
2059
2113
|
ref: o,
|
|
@@ -2095,13 +2149,13 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2095
2149
|
})
|
|
2096
2150
|
}, `overflow-${t}`))
|
|
2097
2151
|
}), document.body)] });
|
|
2098
|
-
},
|
|
2152
|
+
}, po = (e, t) => {
|
|
2099
2153
|
let n;
|
|
2100
2154
|
return (...r) => {
|
|
2101
2155
|
clearTimeout(n), n = setTimeout(() => e(...r), t);
|
|
2102
2156
|
};
|
|
2103
|
-
},
|
|
2104
|
-
let { styles: s, getStyles: c } =
|
|
2157
|
+
}, mo = ({ items: e, maxWidth: t = "100%", styles: n, theme: r, size: i = "medium", currentIndex: a = e.length - 1, className: o }) => {
|
|
2158
|
+
let { styles: s, getStyles: c } = uo(), l = M(null), [u, d] = N([]), [f, p] = N([]);
|
|
2105
2159
|
return k(() => {
|
|
2106
2160
|
let t = () => {
|
|
2107
2161
|
if (!l.current) return;
|
|
@@ -2109,7 +2163,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2109
2163
|
e.forEach((e) => {
|
|
2110
2164
|
n + 80 <= t - 50 ? (r.push(e), n += 80) : i.push(e);
|
|
2111
2165
|
}), d(r), p(i);
|
|
2112
|
-
}, n =
|
|
2166
|
+
}, n = po(t, 100), r = new Sn(() => {
|
|
2113
2167
|
n();
|
|
2114
2168
|
});
|
|
2115
2169
|
return l.current && r.observe(l.current), t(), () => {
|
|
@@ -2146,46 +2200,46 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2146
2200
|
className: c(e, i),
|
|
2147
2201
|
children: e.label
|
|
2148
2202
|
})
|
|
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(
|
|
2203
|
+
}, 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
2204
|
items: f,
|
|
2151
2205
|
theme: r
|
|
2152
2206
|
})]
|
|
2153
2207
|
})
|
|
2154
2208
|
});
|
|
2155
|
-
},
|
|
2156
|
-
let
|
|
2157
|
-
c &&
|
|
2158
|
-
}, [c]),
|
|
2159
|
-
c &&
|
|
2160
|
-
}, [c]),
|
|
2161
|
-
|
|
2209
|
+
}, ho = ({ icon: e, hoverIcon: t, imageSrc: n, width: r = 24, height: i = 24, color: a, hoverColor: o, onClick: s, enabled: c = !0, ariaLabel: l }) => {
|
|
2210
|
+
let u = a || V.colorBrandBackground, d = o || V.colorBrandBackgroundHover, f = V.fontFamilyBase, [p, m] = N(!1), h = D(() => {
|
|
2211
|
+
c && m(!0);
|
|
2212
|
+
}, [c]), g = D(() => {
|
|
2213
|
+
c && m(!1);
|
|
2214
|
+
}, [c]), _ = j(() => c && p && t ? t : e, [
|
|
2215
|
+
p,
|
|
2162
2216
|
t,
|
|
2163
2217
|
e,
|
|
2164
2218
|
c
|
|
2165
|
-
]),
|
|
2219
|
+
]), v = j(() => ({
|
|
2166
2220
|
width: r,
|
|
2167
2221
|
height: i,
|
|
2168
|
-
color:
|
|
2222
|
+
color: p ? d : u,
|
|
2169
2223
|
display: "flex",
|
|
2170
2224
|
alignItems: "center",
|
|
2171
2225
|
justifyContent: "center",
|
|
2172
2226
|
opacity: c ? 1 : .5,
|
|
2173
|
-
fontFamily:
|
|
2227
|
+
fontFamily: f,
|
|
2174
2228
|
fontSize: "inherit"
|
|
2175
2229
|
}), [
|
|
2176
2230
|
r,
|
|
2177
2231
|
i,
|
|
2178
|
-
|
|
2232
|
+
p,
|
|
2233
|
+
d,
|
|
2179
2234
|
u,
|
|
2180
|
-
l,
|
|
2181
2235
|
c,
|
|
2182
|
-
|
|
2183
|
-
]),
|
|
2236
|
+
f
|
|
2237
|
+
]), y = j(() => ({
|
|
2184
2238
|
border: "none",
|
|
2185
2239
|
background: "none",
|
|
2186
2240
|
padding: 0,
|
|
2187
2241
|
cursor: c ? "pointer" : "default"
|
|
2188
|
-
}), [c]),
|
|
2242
|
+
}), [c]), b = j(() => ({
|
|
2189
2243
|
width: r,
|
|
2190
2244
|
height: i,
|
|
2191
2245
|
objectFit: "contain",
|
|
@@ -2195,22 +2249,23 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2195
2249
|
i,
|
|
2196
2250
|
c
|
|
2197
2251
|
]);
|
|
2198
|
-
return /* @__PURE__ */ F(
|
|
2252
|
+
return /* @__PURE__ */ F(R, {
|
|
2199
2253
|
onClick: c ? s : void 0,
|
|
2200
|
-
onMouseEnter:
|
|
2201
|
-
onMouseLeave:
|
|
2254
|
+
onMouseEnter: h,
|
|
2255
|
+
onMouseLeave: g,
|
|
2202
2256
|
disabled: !c,
|
|
2203
|
-
style:
|
|
2257
|
+
style: y,
|
|
2258
|
+
"aria-label": l ?? "Icon Button",
|
|
2204
2259
|
children: n ? /* @__PURE__ */ F("img", {
|
|
2205
2260
|
src: n,
|
|
2206
2261
|
alt: "icon",
|
|
2207
|
-
style:
|
|
2208
|
-
}) : T.cloneElement(
|
|
2209
|
-
...
|
|
2210
|
-
...
|
|
2262
|
+
style: b
|
|
2263
|
+
}) : T.cloneElement(_, { style: {
|
|
2264
|
+
..._.props.style,
|
|
2265
|
+
...v
|
|
2211
2266
|
} })
|
|
2212
2267
|
});
|
|
2213
|
-
},
|
|
2268
|
+
}, go = T.memo(ho), _o = () => ({
|
|
2214
2269
|
getSpanSlots: w.useCallback((e, t) => {
|
|
2215
2270
|
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
2271
|
return {
|
|
@@ -2434,13 +2489,13 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2434
2489
|
return t[e] || n;
|
|
2435
2490
|
}, []),
|
|
2436
2491
|
formatDate: w.useCallback((e, t) => tn(sn(e), t), [])
|
|
2437
|
-
}),
|
|
2492
|
+
}), vo = {
|
|
2438
2493
|
start: "Start",
|
|
2439
2494
|
end: "End",
|
|
2440
2495
|
location: "Location",
|
|
2441
2496
|
attendees: "Attendees",
|
|
2442
2497
|
details: "Details"
|
|
2443
|
-
},
|
|
2498
|
+
}, yo = "32px", bo = (e) => ({ styles: {
|
|
2444
2499
|
banner: H({
|
|
2445
2500
|
display: "flex",
|
|
2446
2501
|
justifyContent: "center",
|
|
@@ -2448,7 +2503,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2448
2503
|
alignItems: "center",
|
|
2449
2504
|
padding: "5px 10px 0px 10px"
|
|
2450
2505
|
}),
|
|
2451
|
-
fieldContainer: H({ paddingLeft:
|
|
2506
|
+
fieldContainer: H({ paddingLeft: yo }),
|
|
2452
2507
|
title: H({
|
|
2453
2508
|
lineClamp: 2,
|
|
2454
2509
|
overflow: "hidden",
|
|
@@ -2457,18 +2512,18 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2457
2512
|
wordBreak: "break-word",
|
|
2458
2513
|
WebkitLineClamp: 2
|
|
2459
2514
|
})
|
|
2460
|
-
} }),
|
|
2515
|
+
} }), xo = ({ fieldLabel: e, fieldValue: t, icon: n }) => /* @__PURE__ */ I(K, { children: [/* @__PURE__ */ F(ro, {
|
|
2461
2516
|
label: e,
|
|
2462
2517
|
icon: n
|
|
2463
2518
|
}), /* @__PURE__ */ F(K, {
|
|
2464
|
-
paddingLeft:
|
|
2519
|
+
paddingLeft: yo,
|
|
2465
2520
|
children: /* @__PURE__ */ F(ue, { children: t })
|
|
2466
|
-
})] }),
|
|
2467
|
-
let { event: t, strings: n =
|
|
2521
|
+
})] }), So = (e) => {
|
|
2522
|
+
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
2523
|
label: n.attendees,
|
|
2469
2524
|
icon: "ph:users-three"
|
|
2470
2525
|
}), /* @__PURE__ */ F(K, {
|
|
2471
|
-
paddingLeft:
|
|
2526
|
+
paddingLeft: yo,
|
|
2472
2527
|
children: /* @__PURE__ */ I(oe, {
|
|
2473
2528
|
layout: "stack",
|
|
2474
2529
|
children: [m.inlineItems.map((e) => /* @__PURE__ */ F(se, {
|
|
@@ -2484,7 +2539,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2484
2539
|
h,
|
|
2485
2540
|
n.attendees
|
|
2486
2541
|
]);
|
|
2487
|
-
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F(
|
|
2542
|
+
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F(ja, {
|
|
2488
2543
|
appearance: "subtle",
|
|
2489
2544
|
padding: "m",
|
|
2490
2545
|
paddingTop: "s",
|
|
@@ -2509,17 +2564,17 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2509
2564
|
children: s
|
|
2510
2565
|
})
|
|
2511
2566
|
}),
|
|
2512
|
-
/* @__PURE__ */ F(
|
|
2567
|
+
/* @__PURE__ */ F(xo, {
|
|
2513
2568
|
fieldLabel: n.start,
|
|
2514
2569
|
fieldValue: f,
|
|
2515
2570
|
icon: "mingcute:time-line"
|
|
2516
2571
|
}),
|
|
2517
|
-
/* @__PURE__ */ F(
|
|
2572
|
+
/* @__PURE__ */ F(xo, {
|
|
2518
2573
|
fieldLabel: n.end,
|
|
2519
2574
|
fieldValue: p,
|
|
2520
2575
|
icon: "mingcute:time-line"
|
|
2521
2576
|
}),
|
|
2522
|
-
/* @__PURE__ */ F(
|
|
2577
|
+
/* @__PURE__ */ F(xo, {
|
|
2523
2578
|
fieldLabel: n.location,
|
|
2524
2579
|
fieldValue: o,
|
|
2525
2580
|
icon: "mingcute:location-line"
|
|
@@ -2540,7 +2595,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2540
2595
|
})
|
|
2541
2596
|
})
|
|
2542
2597
|
}) });
|
|
2543
|
-
},
|
|
2598
|
+
}, Co = () => ({
|
|
2544
2599
|
styles: {
|
|
2545
2600
|
calendarWrapper: H({
|
|
2546
2601
|
padding: "20px",
|
|
@@ -2651,8 +2706,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2651
2706
|
backgroundColor: e ?? V.colorBrandBackground,
|
|
2652
2707
|
":hover": { backgroundColor: t ?? V.colorBrandBackgroundHover }
|
|
2653
2708
|
})
|
|
2654
|
-
}),
|
|
2655
|
-
let t = Jt(), { events: n, date: r, onCardHoverChange: i, columnHeight: a } = e, { styles: o, applyEventHouverColorClass: s } =
|
|
2709
|
+
}), wo = (e) => {
|
|
2710
|
+
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
2711
|
i && i(!0, e);
|
|
2657
2712
|
}, [i]), f = w.useCallback((e) => {
|
|
2658
2713
|
i && i(!1, e);
|
|
@@ -2660,7 +2715,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2660
2715
|
c.current?.setTarget(e);
|
|
2661
2716
|
}, [c]), m = w.useCallback((e, t, n) => /* @__PURE__ */ F("div", {
|
|
2662
2717
|
ref: p,
|
|
2663
|
-
children: /* @__PURE__ */ F(
|
|
2718
|
+
children: /* @__PURE__ */ F(ja, {
|
|
2664
2719
|
className: B(o.eventCard, s(n.backgroundColor, n.backgroundColor)),
|
|
2665
2720
|
paddingTop: "4px",
|
|
2666
2721
|
paddingBottom: "4px",
|
|
@@ -2687,7 +2742,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2687
2742
|
children: [/* @__PURE__ */ F(gt, { children: m(n, e, r) }), /* @__PURE__ */ F(ht, {
|
|
2688
2743
|
"aria-labelledby": t,
|
|
2689
2744
|
className: B(o.popoverContent),
|
|
2690
|
-
children: /* @__PURE__ */ F(
|
|
2745
|
+
children: /* @__PURE__ */ F(So, { event: e })
|
|
2691
2746
|
})]
|
|
2692
2747
|
}, n), [
|
|
2693
2748
|
m,
|
|
@@ -2711,8 +2766,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2711
2766
|
}) : e.enableOnHouver ? h(e, t, n) : m(t, e, n);
|
|
2712
2767
|
})
|
|
2713
2768
|
});
|
|
2714
|
-
},
|
|
2715
|
-
let { day: t, currentMonth: n, events: r, date: i, columnHeight: a, onDayClick: o } = e, { styles: s } =
|
|
2769
|
+
}, To = (e) => {
|
|
2770
|
+
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
2771
|
horizontal: !0,
|
|
2717
2772
|
horizontalAlign: "start",
|
|
2718
2773
|
verticalAlign: "center",
|
|
@@ -2729,7 +2784,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2729
2784
|
}), [t]), p = w.useCallback((e) => {
|
|
2730
2785
|
u(e);
|
|
2731
2786
|
}, []);
|
|
2732
|
-
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F(
|
|
2787
|
+
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F(ja, {
|
|
2733
2788
|
onClick: o ? () => o(i) : void 0,
|
|
2734
2789
|
className: B(s.cardDay, n ? "" : s.otherMonthDay, d ? s.currentDay : "", l ? "" : s.cardDayOnHover),
|
|
2735
2790
|
cardHeader: d ? f : /* @__PURE__ */ F(K, {
|
|
@@ -2742,14 +2797,14 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2742
2797
|
paddingBottom: "m",
|
|
2743
2798
|
paddingLeft: "0px",
|
|
2744
2799
|
paddingRight: "0px",
|
|
2745
|
-
cardBody: /* @__PURE__ */ F(
|
|
2800
|
+
cardBody: /* @__PURE__ */ F(wo, {
|
|
2746
2801
|
events: r,
|
|
2747
2802
|
date: i,
|
|
2748
2803
|
onCardHoverChange: p,
|
|
2749
2804
|
columnHeight: a - 60
|
|
2750
2805
|
})
|
|
2751
2806
|
}) });
|
|
2752
|
-
},
|
|
2807
|
+
}, Eo = () => ({
|
|
2753
2808
|
styles: {
|
|
2754
2809
|
container: H({
|
|
2755
2810
|
display: "flex",
|
|
@@ -2940,11 +2995,11 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2940
2995
|
marginTop: 0,
|
|
2941
2996
|
marginBottom: 0
|
|
2942
2997
|
}), [])
|
|
2943
|
-
}),
|
|
2998
|
+
}), Do = {
|
|
2944
2999
|
timeSeparator: " - ",
|
|
2945
3000
|
hourSuffix: "H"
|
|
2946
|
-
},
|
|
2947
|
-
let s = Jt(), { styles: c, applyEventHouverColorClass: l, appyDynamicStyles: u } =
|
|
3001
|
+
}, Oo = ({ event: e, colors: t, spanSlots: n, rowHeight: r, eventIndex: i, eventCount: a, strings: o = Do }) => {
|
|
3002
|
+
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
3003
|
columnGap: 4,
|
|
2949
3004
|
verticalAlign: "center",
|
|
2950
3005
|
children: [/* @__PURE__ */ F(me, {
|
|
@@ -2979,17 +3034,17 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2979
3034
|
children: [/* @__PURE__ */ F(gt, { children: p }), /* @__PURE__ */ F(ht, {
|
|
2980
3035
|
"aria-labelledby": s,
|
|
2981
3036
|
className: B(c.popoverContent),
|
|
2982
|
-
children: /* @__PURE__ */ F(
|
|
3037
|
+
children: /* @__PURE__ */ F(So, { event: e })
|
|
2983
3038
|
})]
|
|
2984
3039
|
}) : p
|
|
2985
3040
|
}, e.id);
|
|
2986
|
-
},
|
|
2987
|
-
let { styles: o, appyDynamicStyles: s } =
|
|
3041
|
+
}, ko = ({ event: e, eventCount: t, spanSlots: n, rowHeight: r, eventIndex: i, view: a }) => {
|
|
3042
|
+
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
3043
|
return w.isValidElement(d) ? w.cloneElement(d, {
|
|
2989
3044
|
event: e,
|
|
2990
3045
|
className: B(d.props.className, o.eventCard, s(i, t, r, n)),
|
|
2991
3046
|
style: { ...d.props.style }
|
|
2992
|
-
}) : /* @__PURE__ */ F(
|
|
3047
|
+
}) : /* @__PURE__ */ F(Oo, {
|
|
2993
3048
|
event: e,
|
|
2994
3049
|
colors: u,
|
|
2995
3050
|
spanSlots: n,
|
|
@@ -2997,10 +3052,10 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
2997
3052
|
eventIndex: i,
|
|
2998
3053
|
eventCount: t
|
|
2999
3054
|
}, e.id);
|
|
3000
|
-
},
|
|
3055
|
+
}, Ao = (e) => {
|
|
3001
3056
|
let t = D((e) => e.map((e) => ({
|
|
3002
3057
|
...e,
|
|
3003
|
-
id: e.id ||
|
|
3058
|
+
id: e.id || Or()
|
|
3004
3059
|
})), []), n = D((t) => new Date(new Date(t).toLocaleString(void 0, { timeZone: e })), [e]);
|
|
3005
3060
|
return {
|
|
3006
3061
|
getMonthCalendar: D((e, r, i) => {
|
|
@@ -3051,7 +3106,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3051
3106
|
return i;
|
|
3052
3107
|
}, [n])
|
|
3053
3108
|
};
|
|
3054
|
-
},
|
|
3109
|
+
}, jo = () => ({
|
|
3055
3110
|
styles: {
|
|
3056
3111
|
container: H({
|
|
3057
3112
|
display: "flex",
|
|
@@ -3201,8 +3256,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3201
3256
|
backgroundColor: e ?? V.colorBrandBackground,
|
|
3202
3257
|
":hover": { backgroundColor: t ?? V.colorBrandBackgroundHover }
|
|
3203
3258
|
})
|
|
3204
|
-
}),
|
|
3205
|
-
let { events: t, currentDay: n, height: r, strings: i =
|
|
3259
|
+
}), Mo = { allDay: "All Day" }, No = 33, Po = (e) => {
|
|
3260
|
+
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
3261
|
className: a.timeCell,
|
|
3207
3262
|
children: /* @__PURE__ */ I(de, { children: [t, ":00"] })
|
|
3208
3263
|
}), /* @__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 +3320,11 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3265
3320
|
style: { gridRow: t + 3 },
|
|
3266
3321
|
children: e.events.map((e, r) => {
|
|
3267
3322
|
let { spanSlots: i, startSlot: a } = s(new Date(e.start), new Date(e.end));
|
|
3268
|
-
return t === a ? /* @__PURE__ */ F(
|
|
3323
|
+
return t === a ? /* @__PURE__ */ F(ko, {
|
|
3269
3324
|
event: e,
|
|
3270
3325
|
eventCount: n,
|
|
3271
3326
|
spanSlots: i,
|
|
3272
|
-
rowHeight:
|
|
3327
|
+
rowHeight: No,
|
|
3273
3328
|
eventIndex: r,
|
|
3274
3329
|
view: "day"
|
|
3275
3330
|
}, e.id) : null;
|
|
@@ -3303,12 +3358,12 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3303
3358
|
});
|
|
3304
3359
|
}, X = /* @__PURE__ */ function(e) {
|
|
3305
3360
|
return e.Day = "day", e.Week = "week", e.Month = "month", e;
|
|
3306
|
-
}({}),
|
|
3361
|
+
}({}), Fo = {
|
|
3307
3362
|
month: "Month",
|
|
3308
3363
|
week: "Week",
|
|
3309
3364
|
day: "Day"
|
|
3310
|
-
},
|
|
3311
|
-
let { onSelected: t, value: n, strings: r =
|
|
3365
|
+
}, Io = (e) => {
|
|
3366
|
+
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
3367
|
w.useEffect(() => {
|
|
3313
3368
|
n !== void 0 && (a(n), s({ view: [n] }));
|
|
3314
3369
|
}, [n]);
|
|
@@ -3370,7 +3425,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3370
3425
|
]
|
|
3371
3426
|
}) })]
|
|
3372
3427
|
}) });
|
|
3373
|
-
},
|
|
3428
|
+
}, Lo = w.memo((e) => {
|
|
3374
3429
|
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
3430
|
c(t.open);
|
|
3376
3431
|
}, []), u = w.useMemo(() => wr(zn, Bn), []), d = w.useCallback((e) => {
|
|
@@ -3388,11 +3443,12 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3388
3443
|
shape: "circular",
|
|
3389
3444
|
icon: /* @__PURE__ */ F(u, {}),
|
|
3390
3445
|
style: { minWidth: "200px" },
|
|
3446
|
+
"aria-label": `Select date: ${a}`,
|
|
3391
3447
|
children: a
|
|
3392
3448
|
})
|
|
3393
3449
|
}), /* @__PURE__ */ F(Ze, {
|
|
3394
3450
|
style: { maxWidth: "fit-content" },
|
|
3395
|
-
children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(
|
|
3451
|
+
children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(kr, {
|
|
3396
3452
|
highlightSelectedMonth: !0,
|
|
3397
3453
|
showGoToToday: !0,
|
|
3398
3454
|
onSelectDate: d,
|
|
@@ -3400,7 +3456,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3400
3456
|
}) })
|
|
3401
3457
|
})]
|
|
3402
3458
|
});
|
|
3403
|
-
}),
|
|
3459
|
+
}), Ro = () => ({ root: H({ outline: "none" }) }), zo = {
|
|
3404
3460
|
months: [
|
|
3405
3461
|
"January",
|
|
3406
3462
|
"February",
|
|
@@ -3448,13 +3504,13 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3448
3504
|
"Sat"
|
|
3449
3505
|
],
|
|
3450
3506
|
goToToday: "Go to today"
|
|
3451
|
-
},
|
|
3452
|
-
let { onDateChange: t, defaultSelectedDate: n, onDismiss: r, strings: i =
|
|
3507
|
+
}, Bo = (e) => {
|
|
3508
|
+
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
3509
|
s(e), t(e), r();
|
|
3454
3510
|
}, [t, r]);
|
|
3455
|
-
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F(
|
|
3511
|
+
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F(kr, {
|
|
3456
3512
|
className: a.root,
|
|
3457
|
-
dateRangeType:
|
|
3513
|
+
dateRangeType: Ar.Month,
|
|
3458
3514
|
highlightSelectedMonth: !0,
|
|
3459
3515
|
isDayPickerVisible: !1,
|
|
3460
3516
|
onSelectDate: c,
|
|
@@ -3464,7 +3520,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3464
3520
|
allFocusable: !1,
|
|
3465
3521
|
strings: i
|
|
3466
3522
|
}) });
|
|
3467
|
-
},
|
|
3523
|
+
}, Vo = (e) => {
|
|
3468
3524
|
let { onSelected: t, value: n } = e, r = wr(zn, Bn), [i, a] = w.useState(n ?? /* @__PURE__ */ new Date());
|
|
3469
3525
|
w.useEffect(() => {
|
|
3470
3526
|
t(n ?? /* @__PURE__ */ new Date()), a(n ?? /* @__PURE__ */ new Date());
|
|
@@ -3483,9 +3539,10 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3483
3539
|
shape: "circular",
|
|
3484
3540
|
icon: /* @__PURE__ */ F(r, {}),
|
|
3485
3541
|
style: { minWidth: "200px" },
|
|
3542
|
+
"aria-label": `Select month: ${tn(i, "MMMM yyyy")}`,
|
|
3486
3543
|
children: tn(i, "MMMM yyyy")
|
|
3487
3544
|
})
|
|
3488
|
-
}), /* @__PURE__ */ F(Ze, { children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(
|
|
3545
|
+
}), /* @__PURE__ */ F(Ze, { children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(Bo, {
|
|
3489
3546
|
onDateChange: l,
|
|
3490
3547
|
defaultSelectedDate: i,
|
|
3491
3548
|
onDismiss: () => {
|
|
@@ -3493,10 +3550,10 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3493
3550
|
}
|
|
3494
3551
|
}) }) })]
|
|
3495
3552
|
}) });
|
|
3496
|
-
},
|
|
3553
|
+
}, Ho = { selectWeekPlaceholder: "Select a week" }, Uo = (e) => {
|
|
3497
3554
|
let t = Intl.DateTimeFormat().resolvedOptions().timeZone, n = L(e.start, "MMM", { timeZone: t }), r = L(e.end, "MMM", { timeZone: t });
|
|
3498
3555
|
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
|
-
},
|
|
3556
|
+
}, Wo = (e) => {
|
|
3500
3557
|
let t = Intl.DateTimeFormat().resolvedOptions().timeZone, n = ne(e, t), r = new Date(n);
|
|
3501
3558
|
r.setDate(n.getDate() - n.getDay());
|
|
3502
3559
|
let i = new Date(r);
|
|
@@ -3504,17 +3561,17 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3504
3561
|
start: ne(r, t),
|
|
3505
3562
|
end: ne(i, t)
|
|
3506
3563
|
};
|
|
3507
|
-
},
|
|
3508
|
-
let { onSelected: t, value: n, strings: r =
|
|
3564
|
+
}, Go = w.memo((e) => {
|
|
3565
|
+
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
3566
|
let e = n ?? /* @__PURE__ */ new Date();
|
|
3510
|
-
return e ? Wo(
|
|
3567
|
+
return e ? Uo(Wo(e)) : r.selectWeekPlaceholder;
|
|
3511
3568
|
}), [l, u] = w.useState(!1), d = w.useCallback((e, t) => {
|
|
3512
3569
|
u(t.open);
|
|
3513
3570
|
}, []), f = w.useMemo(() => wr(zn, Bn), []), p = w.useCallback((e) => {
|
|
3514
3571
|
if (e) {
|
|
3515
3572
|
o(e);
|
|
3516
|
-
let n =
|
|
3517
|
-
c(
|
|
3573
|
+
let n = Wo(e);
|
|
3574
|
+
c(Uo(n)), t({
|
|
3518
3575
|
startDate: n.start,
|
|
3519
3576
|
endDate: n.end
|
|
3520
3577
|
}), u(!1);
|
|
@@ -3529,11 +3586,12 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3529
3586
|
shape: "circular",
|
|
3530
3587
|
icon: /* @__PURE__ */ F(f, {}),
|
|
3531
3588
|
style: { minWidth: "200px" },
|
|
3589
|
+
"aria-label": `Select week: ${s}`,
|
|
3532
3590
|
children: s
|
|
3533
3591
|
})
|
|
3534
3592
|
}), /* @__PURE__ */ F(Ze, {
|
|
3535
3593
|
style: { maxWidth: "fit-content" },
|
|
3536
|
-
children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(
|
|
3594
|
+
children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(kr, {
|
|
3537
3595
|
dateRangeType: i,
|
|
3538
3596
|
highlightSelectedMonth: !0,
|
|
3539
3597
|
showGoToToday: !0,
|
|
@@ -3543,11 +3601,11 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3543
3601
|
}) })
|
|
3544
3602
|
})]
|
|
3545
3603
|
});
|
|
3546
|
-
}),
|
|
3604
|
+
}), Ko = {
|
|
3547
3605
|
today: "Today",
|
|
3548
3606
|
previous: "Previous",
|
|
3549
3607
|
next: "Next"
|
|
3550
|
-
},
|
|
3608
|
+
}, qo = w.memo(({ selectedView: e, onSelectedView: t, currentDate: n, setCurrentDate: r, onWeekChange: i, onMonthChange: a, onDayChange: o, strings: s = Ko }) => {
|
|
3551
3609
|
let c = w.useMemo(() => wr(kn, An), []), l = w.useMemo(() => wr(Pn, Fn), []), u = w.useCallback((e) => {
|
|
3552
3610
|
i(e.startDate), r(e.startDate);
|
|
3553
3611
|
}, [i, r]), d = w.useCallback((e) => {
|
|
@@ -3556,19 +3614,19 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3556
3614
|
o(e), r(e);
|
|
3557
3615
|
}, [o, r]), p = w.useCallback(() => {
|
|
3558
3616
|
switch (e) {
|
|
3559
|
-
case X.Month: return /* @__PURE__ */ F(
|
|
3617
|
+
case X.Month: return /* @__PURE__ */ F(Vo, {
|
|
3560
3618
|
onSelected: d,
|
|
3561
3619
|
value: n
|
|
3562
3620
|
});
|
|
3563
|
-
case X.Week: return /* @__PURE__ */ F(
|
|
3621
|
+
case X.Week: return /* @__PURE__ */ F(Go, {
|
|
3564
3622
|
onSelected: u,
|
|
3565
3623
|
value: n
|
|
3566
3624
|
});
|
|
3567
|
-
case X.Day: return /* @__PURE__ */ F(
|
|
3625
|
+
case X.Day: return /* @__PURE__ */ F(Lo, {
|
|
3568
3626
|
onSelected: f,
|
|
3569
3627
|
value: n
|
|
3570
3628
|
});
|
|
3571
|
-
default: return /* @__PURE__ */ F(
|
|
3629
|
+
default: return /* @__PURE__ */ F(Vo, {
|
|
3572
3630
|
onSelected: d,
|
|
3573
3631
|
value: n
|
|
3574
3632
|
});
|
|
@@ -3656,14 +3714,14 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3656
3714
|
horizontalAlign: "start",
|
|
3657
3715
|
verticalAlign: "center",
|
|
3658
3716
|
columnGap: 10,
|
|
3659
|
-
children: /* @__PURE__ */ F(
|
|
3717
|
+
children: /* @__PURE__ */ F(Io, {
|
|
3660
3718
|
onSelected: t,
|
|
3661
3719
|
value: e
|
|
3662
3720
|
})
|
|
3663
3721
|
})]
|
|
3664
3722
|
});
|
|
3665
|
-
}),
|
|
3666
|
-
let { events: t, currentDay: n, height: r, strings: i =
|
|
3723
|
+
}), Jo = { allDay: "All Day" }, Yo = (e) => {
|
|
3724
|
+
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
3725
|
k(() => {
|
|
3668
3726
|
let e = new Sn(() => {
|
|
3669
3727
|
if (l.current) {
|
|
@@ -3735,7 +3793,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3735
3793
|
style: { gridRow: t + 3 },
|
|
3736
3794
|
children: e.events.map((e, r) => {
|
|
3737
3795
|
let { spanSlots: i, startSlot: a } = u(new Date(e.start), new Date(e.end));
|
|
3738
|
-
return t === a ? /* @__PURE__ */ F(
|
|
3796
|
+
return t === a ? /* @__PURE__ */ F(ko, {
|
|
3739
3797
|
event: e,
|
|
3740
3798
|
eventCount: n,
|
|
3741
3799
|
spanSlots: i,
|
|
@@ -3772,7 +3830,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3772
3830
|
]
|
|
3773
3831
|
})
|
|
3774
3832
|
});
|
|
3775
|
-
},
|
|
3833
|
+
}, Xo = { daysOfWeek: [
|
|
3776
3834
|
"Sunday",
|
|
3777
3835
|
"Monday",
|
|
3778
3836
|
"Tuesday",
|
|
@@ -3780,8 +3838,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3780
3838
|
"Thursday",
|
|
3781
3839
|
"Friday",
|
|
3782
3840
|
"Saturday"
|
|
3783
|
-
] },
|
|
3784
|
-
let l = c?.daysOfWeek ||
|
|
3841
|
+
] }, Zo = ({ currentDate: e, rowHeight: t, getCalendarDays: n, getEventsForDay: r, styles: i, onDaySlotClick: a, height: o, calendarRef: s, strings: c }) => {
|
|
3842
|
+
let l = c?.daysOfWeek || Xo.daysOfWeek;
|
|
3785
3843
|
return /* @__PURE__ */ F(K, {
|
|
3786
3844
|
height: o,
|
|
3787
3845
|
width: "100%",
|
|
@@ -3790,12 +3848,15 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3790
3848
|
children: /* @__PURE__ */ I("div", {
|
|
3791
3849
|
className: i.calendarWrapper,
|
|
3792
3850
|
ref: s,
|
|
3851
|
+
role: "grid",
|
|
3852
|
+
"aria-label": "Calendar",
|
|
3793
3853
|
children: [l.map((e) => /* @__PURE__ */ F(ue, {
|
|
3794
3854
|
className: i.dayHeader,
|
|
3855
|
+
role: "columnheader",
|
|
3795
3856
|
children: e
|
|
3796
3857
|
}, e)), n(e).map((e, n) => {
|
|
3797
3858
|
let { day: i, currentMonth: o } = e, s = o ? r(e) : [];
|
|
3798
|
-
return /* @__PURE__ */ F(
|
|
3859
|
+
return /* @__PURE__ */ F(To, {
|
|
3799
3860
|
day: i,
|
|
3800
3861
|
date: e.date,
|
|
3801
3862
|
currentMonth: e.currentMonth,
|
|
@@ -3806,18 +3867,18 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3806
3867
|
})]
|
|
3807
3868
|
})
|
|
3808
3869
|
});
|
|
3809
|
-
},
|
|
3870
|
+
}, Qo = w.memo(({ events: e, currentDay: t, height: n, strings: r }) => /* @__PURE__ */ F(Yo, {
|
|
3810
3871
|
events: e,
|
|
3811
3872
|
currentDay: t,
|
|
3812
3873
|
height: n,
|
|
3813
3874
|
strings: r
|
|
3814
|
-
})),
|
|
3875
|
+
})), $o = w.memo(({ events: e, currentDay: t, height: n, strings: r }) => /* @__PURE__ */ F(Po, {
|
|
3815
3876
|
currentDay: t,
|
|
3816
3877
|
events: e,
|
|
3817
3878
|
height: n,
|
|
3818
3879
|
strings: r
|
|
3819
|
-
})),
|
|
3820
|
-
let { styles: u } =
|
|
3880
|
+
})), es = ({ events: e, height: t = 800, theme: n, onDayChange: r, onMonthChange: i, onWeekChange: a, onViewChange: o, onDaySlotClick: s, defaultView: c, strings: l }) => {
|
|
3881
|
+
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
3882
|
let t = e.getMonth(), n = un(ln(e));
|
|
3822
3883
|
return Array.from({ length: 42 }, (e, r) => {
|
|
3823
3884
|
let i = Qt(n, r);
|
|
@@ -3856,7 +3917,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3856
3917
|
}, [c]);
|
|
3857
3918
|
let O = w.useCallback(() => {
|
|
3858
3919
|
switch (_) {
|
|
3859
|
-
case X.Month: return /* @__PURE__ */ F(
|
|
3920
|
+
case X.Month: return /* @__PURE__ */ F(Zo, {
|
|
3860
3921
|
events: e,
|
|
3861
3922
|
currentDate: h,
|
|
3862
3923
|
rowHeight: f,
|
|
@@ -3868,19 +3929,19 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3868
3929
|
calendarRef: d,
|
|
3869
3930
|
strings: l?.calendarControl
|
|
3870
3931
|
});
|
|
3871
|
-
case X.Week: return /* @__PURE__ */ F(
|
|
3932
|
+
case X.Week: return /* @__PURE__ */ F(Qo, {
|
|
3872
3933
|
events: e,
|
|
3873
3934
|
currentDay: h,
|
|
3874
3935
|
height: t,
|
|
3875
3936
|
strings: l?.weekView
|
|
3876
3937
|
});
|
|
3877
|
-
case X.Day: return /* @__PURE__ */ F(
|
|
3938
|
+
case X.Day: return /* @__PURE__ */ F($o, {
|
|
3878
3939
|
events: e,
|
|
3879
3940
|
currentDay: h,
|
|
3880
3941
|
height: t,
|
|
3881
3942
|
strings: l?.dayView
|
|
3882
3943
|
});
|
|
3883
|
-
default: return /* @__PURE__ */ F(
|
|
3944
|
+
default: return /* @__PURE__ */ F(Zo, {
|
|
3884
3945
|
events: e,
|
|
3885
3946
|
currentDate: h,
|
|
3886
3947
|
rowHeight: f,
|
|
@@ -3906,7 +3967,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3906
3967
|
]), A = /* @__PURE__ */ I(K, {
|
|
3907
3968
|
height: "100%",
|
|
3908
3969
|
verticalAlign: "start",
|
|
3909
|
-
children: [/* @__PURE__ */ F(
|
|
3970
|
+
children: [/* @__PURE__ */ F(qo, {
|
|
3910
3971
|
selectedView: _,
|
|
3911
3972
|
onSelectedView: T,
|
|
3912
3973
|
currentDate: h,
|
|
@@ -3929,21 +3990,28 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3929
3990
|
children: A
|
|
3930
3991
|
})
|
|
3931
3992
|
});
|
|
3932
|
-
},
|
|
3993
|
+
}, ts = () => ({ tagPickerControl: H({
|
|
3933
3994
|
border: `1px solid ${V.colorNeutralStroke2} !important`,
|
|
3934
3995
|
borderRadius: "50px !important",
|
|
3935
3996
|
backgroundColor: `${V.colorNeutralBackground1} !important`,
|
|
3936
3997
|
padding: "0px 10px",
|
|
3937
3998
|
boxShadow: "none",
|
|
3938
3999
|
transition: "all 0.2s ease !important",
|
|
3939
|
-
"&::after": {
|
|
4000
|
+
"&::after": {
|
|
4001
|
+
content: "\"\"",
|
|
4002
|
+
position: "absolute",
|
|
4003
|
+
inset: "-1px",
|
|
4004
|
+
borderRadius: "inherit",
|
|
4005
|
+
border: "2px solid transparent",
|
|
4006
|
+
pointerEvents: "none"
|
|
4007
|
+
},
|
|
3940
4008
|
"&:hover": { borderColor: `${V.colorBrandStroke1} !important` },
|
|
3941
4009
|
"&:focus-within": {
|
|
3942
4010
|
borderColor: `${V.colorBrandStroke1} !important`,
|
|
3943
4011
|
boxShadow: `0 0 0 2px ${V.colorBrandBackground2} !important`
|
|
3944
4012
|
}
|
|
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 =
|
|
4013
|
+
}) }), 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 }) => {
|
|
4014
|
+
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
4015
|
let i = n.optionValue || "", a = n.optionText || "";
|
|
3948
4016
|
m(i), g(a);
|
|
3949
4017
|
let o = r ? r(i) : "";
|
|
@@ -3989,7 +4057,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
3989
4057
|
})
|
|
3990
4058
|
})
|
|
3991
4059
|
});
|
|
3992
|
-
},
|
|
4060
|
+
}, rs = () => ({ inputRoot: H({
|
|
3993
4061
|
border: `1px solid ${V.colorNeutralStroke2} !important`,
|
|
3994
4062
|
borderBottom: `1px solid ${V.colorNeutralStroke2} !important`,
|
|
3995
4063
|
borderRadius: "50px !important",
|
|
@@ -4007,8 +4075,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4007
4075
|
borderColor: `${V.colorBrandStroke1} !important`,
|
|
4008
4076
|
boxShadow: `0 0 0 2px ${V.colorBrandBackground2} !important`
|
|
4009
4077
|
}
|
|
4010
|
-
}) }),
|
|
4011
|
-
let [b, x] = N(e === void 0 ? "" : String(e)), [S, C] = N(""), w =
|
|
4078
|
+
}) }), 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 }) => {
|
|
4079
|
+
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
4080
|
if (u && e.trim() === "") return t === "number" ? T.numberRequired : T.fieldRequired;
|
|
4013
4081
|
if (t === "number" && e.trim() !== "") {
|
|
4014
4082
|
let t = Number(e);
|
|
@@ -4068,8 +4136,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4068
4136
|
contentAfter: y
|
|
4069
4137
|
})
|
|
4070
4138
|
});
|
|
4071
|
-
},
|
|
4072
|
-
searchBoxStyles:
|
|
4139
|
+
}, as = () => ({
|
|
4140
|
+
searchBoxStyles: jr`
|
|
4073
4141
|
border: 1px solid ${V.colorNeutralStroke2};
|
|
4074
4142
|
border-radius: 50px;
|
|
4075
4143
|
background-color: ${V.colorNeutralBackground1};
|
|
@@ -4124,7 +4192,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4124
4192
|
}
|
|
4125
4193
|
}
|
|
4126
4194
|
`,
|
|
4127
|
-
searchBoxNormalStyles:
|
|
4195
|
+
searchBoxNormalStyles: jr`
|
|
4128
4196
|
border: 1px solid ${V.colorNeutralStroke2};
|
|
4129
4197
|
border-radius: ${V.borderRadiusMedium};
|
|
4130
4198
|
background-color: ${V.colorNeutralBackground1};
|
|
@@ -4179,14 +4247,14 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4179
4247
|
}
|
|
4180
4248
|
}
|
|
4181
4249
|
`,
|
|
4182
|
-
iconWrapperStyles:
|
|
4250
|
+
iconWrapperStyles: jr`
|
|
4183
4251
|
display: flex;
|
|
4184
4252
|
align-items: center;
|
|
4185
4253
|
padding: 2px;
|
|
4186
4254
|
margin-right: 8px;
|
|
4187
4255
|
`
|
|
4188
|
-
}),
|
|
4189
|
-
let [f, p] = N(""), m = M(null), { searchBoxStyles: h, searchBoxNormalStyles: g, iconWrapperStyles: _ } =
|
|
4256
|
+
}), 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 }) => {
|
|
4257
|
+
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
4258
|
b || p(t.value), n?.(t.value);
|
|
4191
4259
|
}, [b, n]), w = D(() => {
|
|
4192
4260
|
b || p(""), m.current?.blur(), r?.(), t?.("");
|
|
@@ -4202,7 +4270,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4202
4270
|
t,
|
|
4203
4271
|
r
|
|
4204
4272
|
]);
|
|
4205
|
-
return /* @__PURE__ */
|
|
4273
|
+
return /* @__PURE__ */ Mr(bt, {
|
|
4206
4274
|
ref: m,
|
|
4207
4275
|
css: S,
|
|
4208
4276
|
className: a,
|
|
@@ -4213,13 +4281,13 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4213
4281
|
onKeyDown: T,
|
|
4214
4282
|
disabled: i,
|
|
4215
4283
|
size: d,
|
|
4216
|
-
contentBefore: u ?? /* @__PURE__ */
|
|
4284
|
+
contentBefore: u ?? /* @__PURE__ */ Mr("span", {
|
|
4217
4285
|
css: _,
|
|
4218
|
-
children: /* @__PURE__ */
|
|
4286
|
+
children: /* @__PURE__ */ Mr(hr, {})
|
|
4219
4287
|
}),
|
|
4220
4288
|
dismiss: { onClick: w }
|
|
4221
4289
|
});
|
|
4222
|
-
},
|
|
4290
|
+
}, ss = ({ onChange: e, defaultKey: t, label: n, options: r = [], minWidth: i, styles: a }) => {
|
|
4223
4291
|
let [o, s] = N(() => r.map((e) => ({
|
|
4224
4292
|
...e,
|
|
4225
4293
|
selected: e.key === (t ?? "status")
|
|
@@ -4236,30 +4304,30 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4236
4304
|
}, [o, e]);
|
|
4237
4305
|
return /* @__PURE__ */ I(J, {
|
|
4238
4306
|
gap: "s",
|
|
4239
|
-
children: [n && /* @__PURE__ */ F(Ge, { children: n }), /* @__PURE__ */ F(
|
|
4307
|
+
children: [n && /* @__PURE__ */ F(Ge, { children: n }), /* @__PURE__ */ F(lo, {
|
|
4240
4308
|
options: o,
|
|
4241
4309
|
onSelected: c,
|
|
4242
4310
|
styles: i ? { minWidth: i } : a ?? {}
|
|
4243
4311
|
})]
|
|
4244
4312
|
});
|
|
4245
|
-
},
|
|
4313
|
+
}, cs = () => ({
|
|
4246
4314
|
menuButton: H({ minWidth: 200 }),
|
|
4247
4315
|
popover: H({
|
|
4248
4316
|
padding: V.spacingVerticalS,
|
|
4249
4317
|
minWidth: 200
|
|
4250
4318
|
}),
|
|
4251
4319
|
timePicker: H({ width: "100%" })
|
|
4252
|
-
}),
|
|
4320
|
+
}), ls = () => ({
|
|
4253
4321
|
root: H({
|
|
4254
4322
|
maxHeight: 280,
|
|
4255
4323
|
overflowY: "auto",
|
|
4256
4324
|
padding: `${V.spacingVerticalXS} 0`
|
|
4257
4325
|
}),
|
|
4258
4326
|
item: H({ cursor: "pointer" })
|
|
4259
|
-
}),
|
|
4327
|
+
}), us = "time", ds = (e, t, n) => {
|
|
4260
4328
|
let r = new Date(e);
|
|
4261
4329
|
return r.setHours(t, n, 0, 0), r;
|
|
4262
|
-
},
|
|
4330
|
+
}, fs = (e, t, n) => {
|
|
4263
4331
|
let r = {
|
|
4264
4332
|
hour: "numeric",
|
|
4265
4333
|
minute: "2-digit",
|
|
@@ -4267,15 +4335,15 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4267
4335
|
...t && { hourCycle: t }
|
|
4268
4336
|
};
|
|
4269
4337
|
return new Intl.DateTimeFormat(void 0, r).format(e);
|
|
4270
|
-
},
|
|
4338
|
+
}, ps = (e) => `${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}`, ms = (e, t, n, r) => {
|
|
4271
4339
|
let i = [], a = e * 60, o = t * 60;
|
|
4272
4340
|
for (let e = a; e < o; e += n) {
|
|
4273
4341
|
let t = Math.floor(e / 60), n = e % 60;
|
|
4274
|
-
i.push(
|
|
4342
|
+
i.push(ds(r, t, n));
|
|
4275
4343
|
}
|
|
4276
4344
|
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 =
|
|
4345
|
+
}, hs = w.memo((e) => {
|
|
4346
|
+
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
4347
|
i,
|
|
4280
4348
|
a,
|
|
4281
4349
|
o,
|
|
@@ -4286,9 +4354,9 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4286
4354
|
return /* @__PURE__ */ F("div", {
|
|
4287
4355
|
className: c.root,
|
|
4288
4356
|
children: u.map((e) => {
|
|
4289
|
-
let t =
|
|
4357
|
+
let t = fs(e, n, r), i = ps(e);
|
|
4290
4358
|
return /* @__PURE__ */ F(Ye, {
|
|
4291
|
-
name:
|
|
4359
|
+
name: us,
|
|
4292
4360
|
value: i,
|
|
4293
4361
|
onClick: d(e, t),
|
|
4294
4362
|
icon: /* @__PURE__ */ F(Xn, {}),
|
|
@@ -4297,13 +4365,13 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4297
4365
|
}, i);
|
|
4298
4366
|
})
|
|
4299
4367
|
});
|
|
4300
|
-
}),
|
|
4368
|
+
}), gs = (e, t) => {
|
|
4301
4369
|
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
4370
|
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 =
|
|
4371
|
+
}, _s = w.memo((e) => {
|
|
4372
|
+
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
4373
|
w.useEffect(() => {
|
|
4306
|
-
n && (m(n), g(
|
|
4374
|
+
n && (m(n), g(fs(n, i, a)));
|
|
4307
4375
|
}, [
|
|
4308
4376
|
n,
|
|
4309
4377
|
i,
|
|
@@ -4311,7 +4379,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4311
4379
|
]);
|
|
4312
4380
|
let y = w.useCallback((e, t) => {
|
|
4313
4381
|
v(t.open);
|
|
4314
|
-
}, []), b = w.useMemo(() => wr(Yn, Xn), []), x = w.useMemo(() => p ? { [
|
|
4382
|
+
}, []), b = w.useMemo(() => wr(Yn, Xn), []), x = w.useMemo(() => p ? { [us]: [ps(p)] } : { [us]: [] }, [p]), S = w.useCallback((e, n) => {
|
|
4315
4383
|
m(e), g(n), t(e), v(!1);
|
|
4316
4384
|
}, [t]);
|
|
4317
4385
|
return /* @__PURE__ */ I(Ke, {
|
|
@@ -4325,11 +4393,12 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4325
4393
|
shape: "circular",
|
|
4326
4394
|
icon: /* @__PURE__ */ F(b, {}),
|
|
4327
4395
|
className: u.menuButton,
|
|
4396
|
+
"aria-label": `Select time: ${h || r}`,
|
|
4328
4397
|
children: h || r
|
|
4329
4398
|
})
|
|
4330
4399
|
}), /* @__PURE__ */ F(Ze, {
|
|
4331
4400
|
className: u.popover,
|
|
4332
|
-
children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(
|
|
4401
|
+
children: /* @__PURE__ */ F(Xe, { children: /* @__PURE__ */ F(hs, {
|
|
4333
4402
|
value: p,
|
|
4334
4403
|
onTimeSelect: S,
|
|
4335
4404
|
hourCycle: i,
|
|
@@ -4341,7 +4410,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4341
4410
|
}) })
|
|
4342
4411
|
})]
|
|
4343
4412
|
});
|
|
4344
|
-
}),
|
|
4413
|
+
}), vs = () => ({
|
|
4345
4414
|
container: H({
|
|
4346
4415
|
display: "flex",
|
|
4347
4416
|
flexDirection: "column",
|
|
@@ -4389,8 +4458,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4389
4458
|
"&::placeholder": { color: V.colorNeutralForeground4 },
|
|
4390
4459
|
"&:focus": { outline: "none" }
|
|
4391
4460
|
})
|
|
4392
|
-
}),
|
|
4393
|
-
let g =
|
|
4461
|
+
}), 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 }) => {
|
|
4462
|
+
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
4463
|
C(e), w.current && clearTimeout(w.current), w.current = setTimeout(() => {
|
|
4395
4464
|
r?.(e);
|
|
4396
4465
|
}, h);
|
|
@@ -4494,7 +4563,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4494
4563
|
l: V.spacingHorizontalL,
|
|
4495
4564
|
xl: V.spacingHorizontalXL,
|
|
4496
4565
|
xxl: V.spacingHorizontalXXL
|
|
4497
|
-
},
|
|
4566
|
+
}, 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
4567
|
className: B(x, H({
|
|
4499
4568
|
display: "flex",
|
|
4500
4569
|
flexDirection: e === "horizontal" ? "row" : "column",
|
|
@@ -4521,7 +4590,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4521
4590
|
...b
|
|
4522
4591
|
})),
|
|
4523
4592
|
children: y
|
|
4524
|
-
})),
|
|
4593
|
+
})), xs = (e) => ({ styles: {
|
|
4525
4594
|
loadingContainer: H({
|
|
4526
4595
|
display: "flex",
|
|
4527
4596
|
justifyContent: "center",
|
|
@@ -4533,8 +4602,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4533
4602
|
marginTop: 20
|
|
4534
4603
|
}),
|
|
4535
4604
|
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 } =
|
|
4605
|
+
} }), Ss = (e) => {
|
|
4606
|
+
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
4607
|
w.useEffect(() => {
|
|
4539
4608
|
r.length > 0 && y(new Set(r.map((e) => _(e))));
|
|
4540
4609
|
}, [r, t]), w.useEffect(() => {
|
|
@@ -4566,6 +4635,9 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4566
4635
|
children: ({ item: e, rowId: t }) => /* @__PURE__ */ F(Ee, {
|
|
4567
4636
|
className: D,
|
|
4568
4637
|
onClick: (t) => E(t, e),
|
|
4638
|
+
onKeyDown: (t) => {
|
|
4639
|
+
a === "row" && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), o?.([e]));
|
|
4640
|
+
},
|
|
4569
4641
|
children: ({ renderCell: t }) => /* @__PURE__ */ F(Ce, { children: t(e) })
|
|
4570
4642
|
}, t)
|
|
4571
4643
|
}), [
|
|
@@ -4573,7 +4645,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4573
4645
|
D,
|
|
4574
4646
|
h,
|
|
4575
4647
|
m
|
|
4576
|
-
]), k = w.useMemo(() => t.length && !f, [t, f]), A = w.useCallback(() => f ? /* @__PURE__ */ F(P, { children: p ?? /* @__PURE__ */ F(
|
|
4648
|
+
]), k = w.useMemo(() => t.length && !f, [t, f]), A = w.useCallback(() => f ? /* @__PURE__ */ F(P, { children: p ?? /* @__PURE__ */ F(bs, {
|
|
4577
4649
|
direction: "vertical",
|
|
4578
4650
|
gap: "s",
|
|
4579
4651
|
justifyContent: "center",
|
|
@@ -4608,7 +4680,7 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4608
4680
|
children: [/* @__PURE__ */ F(we, { children: /* @__PURE__ */ F(Ee, { children: ({ renderHeaderCell: e }) => /* @__PURE__ */ F(Te, { children: e() }) }) }), /* @__PURE__ */ F(A, {})]
|
|
4609
4681
|
})
|
|
4610
4682
|
});
|
|
4611
|
-
},
|
|
4683
|
+
}, Cs = Ht({ scrollbar: {
|
|
4612
4684
|
scrollbarWidth: "thin",
|
|
4613
4685
|
scrollbarColor: `${V.colorBrandBackground} ${V.colorNeutralBackground3}`,
|
|
4614
4686
|
"&::-webkit-scrollbar": {
|
|
@@ -4627,8 +4699,8 @@ var Ca = /* @__PURE__ */ function(e) {
|
|
|
4627
4699
|
} });
|
|
4628
4700
|
//#endregion
|
|
4629
4701
|
//#region src/components/DataGridV2/DataGridV2.tsx
|
|
4630
|
-
function
|
|
4631
|
-
let n =
|
|
4702
|
+
function ws(e, t) {
|
|
4703
|
+
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
4704
|
columnId: e.column,
|
|
4633
4705
|
renderHeaderCell: () => /* @__PURE__ */ F(de, { children: e.header }),
|
|
4634
4706
|
renderCell: (t) => /* @__PURE__ */ F(Ot, {
|
|
@@ -4733,7 +4805,7 @@ function Ts(e, t) {
|
|
|
4733
4805
|
" "
|
|
4734
4806
|
]
|
|
4735
4807
|
})
|
|
4736
|
-
}), !h && i.length ? /* @__PURE__ */ I(
|
|
4808
|
+
}), !h && i.length ? /* @__PURE__ */ I(Pr, {
|
|
4737
4809
|
items: i,
|
|
4738
4810
|
columns: j,
|
|
4739
4811
|
sortable: a,
|
|
@@ -4748,7 +4820,7 @@ function Ts(e, t) {
|
|
|
4748
4820
|
focusMode: "cell",
|
|
4749
4821
|
className: B(_, n),
|
|
4750
4822
|
style: v,
|
|
4751
|
-
children: [/* @__PURE__ */ F(
|
|
4823
|
+
children: [/* @__PURE__ */ F(Lr, { children: /* @__PURE__ */ F(zr, { children: ({ renderHeaderCell: e }) => /* @__PURE__ */ F(Rr, { children: e() }) }) }), /* @__PURE__ */ F(Fr, {
|
|
4752
4824
|
itemSize: O,
|
|
4753
4825
|
height: D,
|
|
4754
4826
|
width: "100%",
|
|
@@ -4758,7 +4830,7 @@ function Ts(e, t) {
|
|
|
4758
4830
|
let n = e.item, r = ae.get(n) ?? i.indexOf(n), a = s === "row", o = a && re === r, l = (e) => {
|
|
4759
4831
|
ie(r), c?.([n]), A?.(n, r);
|
|
4760
4832
|
};
|
|
4761
|
-
return /* @__PURE__ */ F(
|
|
4833
|
+
return /* @__PURE__ */ F(zr, {
|
|
4762
4834
|
style: {
|
|
4763
4835
|
...t,
|
|
4764
4836
|
cursor: a ? "pointer" : void 0,
|
|
@@ -4766,22 +4838,22 @@ function Ts(e, t) {
|
|
|
4766
4838
|
},
|
|
4767
4839
|
onClick: l,
|
|
4768
4840
|
"aria-selected": o || void 0,
|
|
4769
|
-
children: ({ renderCell: e }) => /* @__PURE__ */ F(
|
|
4841
|
+
children: ({ renderCell: e }) => /* @__PURE__ */ F(Ir, { children: e(n) })
|
|
4770
4842
|
});
|
|
4771
4843
|
})()
|
|
4772
4844
|
})]
|
|
4773
4845
|
}, L) : !h && !i.length ? /* @__PURE__ */ F("div", { children: m }) : null]
|
|
4774
4846
|
});
|
|
4775
4847
|
}
|
|
4776
|
-
var
|
|
4777
|
-
|
|
4848
|
+
var Ts = w.forwardRef(ws);
|
|
4849
|
+
Ts.displayName = "DataGridV2";
|
|
4778
4850
|
//#endregion
|
|
4779
4851
|
//#region src/components/renderDialog/RenderDialog.tsx
|
|
4780
|
-
var
|
|
4852
|
+
var Es = 200, Ds = Ht({
|
|
4781
4853
|
dialog: { overflow: "visible" },
|
|
4782
4854
|
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 =
|
|
4855
|
+
}), Os = (e) => {
|
|
4856
|
+
let { isOpen: t, dialogTitle: n, dialogActions: r, children: i, maxWidth: a, className: o, minHeight: s, minWidth: c, maxHeight: l } = e, u = Ds();
|
|
4785
4857
|
return t ? /* @__PURE__ */ F(De, {
|
|
4786
4858
|
open: t,
|
|
4787
4859
|
modalType: "modal",
|
|
@@ -4789,7 +4861,7 @@ var Ds = 200, Os = Ht({
|
|
|
4789
4861
|
className: B(u.dialog, o),
|
|
4790
4862
|
style: {
|
|
4791
4863
|
maxWidth: a ?? 600,
|
|
4792
|
-
minWidth: c ??
|
|
4864
|
+
minWidth: c ?? Es,
|
|
4793
4865
|
...s ? { minHeight: s } : {},
|
|
4794
4866
|
...l ? { maxHeight: l } : {}
|
|
4795
4867
|
},
|
|
@@ -4807,7 +4879,7 @@ var Ds = 200, Os = Ht({
|
|
|
4807
4879
|
]
|
|
4808
4880
|
})
|
|
4809
4881
|
}) : /* @__PURE__ */ F(P, {});
|
|
4810
|
-
},
|
|
4882
|
+
}, ks = (e) => {
|
|
4811
4883
|
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
4884
|
n && n(t.open);
|
|
4813
4885
|
}, [n]), g = /* @__PURE__ */ I(P, { children: [
|
|
@@ -4843,7 +4915,7 @@ var Ds = 200, Os = Ht({
|
|
|
4843
4915
|
position: d,
|
|
4844
4916
|
children: g
|
|
4845
4917
|
});
|
|
4846
|
-
},
|
|
4918
|
+
}, As = (e) => {
|
|
4847
4919
|
let { onDismiss: t, title: n, description: r, icon: i, showCloseButton: a = !0 } = e;
|
|
4848
4920
|
return /* @__PURE__ */ I(J, {
|
|
4849
4921
|
direction: "vertical",
|
|
@@ -4858,7 +4930,7 @@ var Ds = 200, Os = Ht({
|
|
|
4858
4930
|
alignItems: "center",
|
|
4859
4931
|
width: "100%",
|
|
4860
4932
|
gap: "m",
|
|
4861
|
-
children: [i ? w.isValidElement(i) ? i : /* @__PURE__ */ F(
|
|
4933
|
+
children: [i ? w.isValidElement(i) ? i : /* @__PURE__ */ F(Dr, { icon: i }) : null, /* @__PURE__ */ I(J, {
|
|
4862
4934
|
direction: "vertical",
|
|
4863
4935
|
justifyContent: "flex-start",
|
|
4864
4936
|
alignItems: "flex-start",
|
|
@@ -4868,7 +4940,7 @@ var Ds = 200, Os = Ht({
|
|
|
4868
4940
|
justifyContent: "space-between",
|
|
4869
4941
|
gap: "l",
|
|
4870
4942
|
width: "100%",
|
|
4871
|
-
children: [/* @__PURE__ */ F(
|
|
4943
|
+
children: [/* @__PURE__ */ F(co, {
|
|
4872
4944
|
fontSize: "l",
|
|
4873
4945
|
block: !0,
|
|
4874
4946
|
truncate: !0,
|
|
@@ -4883,7 +4955,8 @@ var Ds = 200, Os = Ht({
|
|
|
4883
4955
|
width: 18,
|
|
4884
4956
|
height: 18
|
|
4885
4957
|
} }),
|
|
4886
|
-
color: V.colorBrandBackground
|
|
4958
|
+
color: V.colorBrandBackground,
|
|
4959
|
+
"aria-label": "Close"
|
|
4887
4960
|
})]
|
|
4888
4961
|
}), w.isValidElement(r) ? r : /* @__PURE__ */ F(pe, {
|
|
4889
4962
|
style: {
|
|
@@ -4900,7 +4973,7 @@ var Ds = 200, Os = Ht({
|
|
|
4900
4973
|
})
|
|
4901
4974
|
}), /* @__PURE__ */ F(Ne, { style: { marginTop: 6 } })]
|
|
4902
4975
|
});
|
|
4903
|
-
},
|
|
4976
|
+
}, js = () => ({
|
|
4904
4977
|
closeButton: H({
|
|
4905
4978
|
marginLeft: "auto",
|
|
4906
4979
|
position: "absolute",
|
|
@@ -4976,7 +5049,7 @@ var Ds = 200, Os = Ht({
|
|
|
4976
5049
|
paddingRight: "20px",
|
|
4977
5050
|
width: "100%"
|
|
4978
5051
|
})
|
|
4979
|
-
}),
|
|
5052
|
+
}), Ms = ({ isOpen: e, options: t, onClose: n }) => {
|
|
4980
5053
|
let { log: r } = G(), [i, a] = N(void 0);
|
|
4981
5054
|
r(i || "");
|
|
4982
5055
|
let o = M(null), [s, c] = N(400), { siteUrl: l, listId: u, itemId: d, name: f } = t, p = D(() => {
|
|
@@ -5010,13 +5083,14 @@ var Ds = 200, Os = Ht({
|
|
|
5010
5083
|
l,
|
|
5011
5084
|
u,
|
|
5012
5085
|
d
|
|
5013
|
-
]), /* @__PURE__ */ F(
|
|
5086
|
+
]), /* @__PURE__ */ F(Os, {
|
|
5014
5087
|
isOpen: e,
|
|
5015
5088
|
onDismiss: p,
|
|
5016
5089
|
maxHeight: "fit-content",
|
|
5017
5090
|
children: /* @__PURE__ */ F("iframe", {
|
|
5018
5091
|
ref: o,
|
|
5019
5092
|
src: i || "",
|
|
5093
|
+
title: "Share dialog",
|
|
5020
5094
|
style: {
|
|
5021
5095
|
width: "100%",
|
|
5022
5096
|
height: s,
|
|
@@ -5025,7 +5099,7 @@ var Ds = 200, Os = Ht({
|
|
|
5025
5099
|
onLoad: () => r("Iframe loaded")
|
|
5026
5100
|
})
|
|
5027
5101
|
});
|
|
5028
|
-
},
|
|
5102
|
+
}, Ns = () => j(() => ({
|
|
5029
5103
|
container: H({
|
|
5030
5104
|
display: "flex",
|
|
5031
5105
|
alignItems: "center",
|
|
@@ -5060,14 +5134,21 @@ var Ds = 200, Os = Ht({
|
|
|
5060
5134
|
textAlign: "center",
|
|
5061
5135
|
lineHeight: V.lineHeightBase400
|
|
5062
5136
|
})
|
|
5063
|
-
}), []),
|
|
5064
|
-
let n =
|
|
5137
|
+
}), []), Ps = ({ title: e, message: t }) => {
|
|
5138
|
+
let n = Ns();
|
|
5065
5139
|
return /* @__PURE__ */ F(he, {
|
|
5066
5140
|
className: n.container,
|
|
5141
|
+
role: "alert",
|
|
5142
|
+
"aria-live": "assertive",
|
|
5143
|
+
"aria-atomic": "true",
|
|
5067
5144
|
children: /* @__PURE__ */ I(J, {
|
|
5068
5145
|
gap: "l",
|
|
5069
5146
|
alignItems: "center",
|
|
5070
|
-
children: [/* @__PURE__ */ F(ir, {
|
|
5147
|
+
children: [/* @__PURE__ */ F(ir, {
|
|
5148
|
+
className: n.icon,
|
|
5149
|
+
"aria-hidden": "true",
|
|
5150
|
+
focusable: !1
|
|
5151
|
+
}), /* @__PURE__ */ I(J, {
|
|
5071
5152
|
gap: "s",
|
|
5072
5153
|
alignItems: "center",
|
|
5073
5154
|
children: [/* @__PURE__ */ F(Lt, {
|
|
@@ -5080,7 +5161,7 @@ var Ds = 200, Os = Ht({
|
|
|
5080
5161
|
})]
|
|
5081
5162
|
})
|
|
5082
5163
|
});
|
|
5083
|
-
},
|
|
5164
|
+
}, Fs = Ht({
|
|
5084
5165
|
root: {
|
|
5085
5166
|
display: "flex",
|
|
5086
5167
|
flexDirection: "row",
|
|
@@ -5103,16 +5184,21 @@ var Ds = 200, Os = Ht({
|
|
|
5103
5184
|
backgroundColor: V.colorStatusDangerBackground1
|
|
5104
5185
|
},
|
|
5105
5186
|
errorIcon: { height: "100%" }
|
|
5106
|
-
}),
|
|
5107
|
-
let { messageType: t, children: n, message: r } = e, i =
|
|
5187
|
+
}), Is = (e) => {
|
|
5188
|
+
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
5189
|
className: i.errorContainer,
|
|
5190
|
+
role: "alert",
|
|
5191
|
+
"aria-live": "assertive",
|
|
5192
|
+
"aria-atomic": "true",
|
|
5109
5193
|
children: [/* @__PURE__ */ F("div", {
|
|
5110
5194
|
className: i.errorIcon,
|
|
5111
|
-
children: /* @__PURE__ */ F(
|
|
5195
|
+
children: /* @__PURE__ */ F(Dr, {
|
|
5112
5196
|
icon: "fluent:error-circle-12-regular",
|
|
5113
5197
|
width: "32",
|
|
5114
5198
|
height: "32",
|
|
5115
|
-
color: V.colorStatusDangerForeground1
|
|
5199
|
+
color: V.colorStatusDangerForeground1,
|
|
5200
|
+
"aria-hidden": "true",
|
|
5201
|
+
focusable: "false"
|
|
5116
5202
|
})
|
|
5117
5203
|
}), /* @__PURE__ */ F(ue, { children: r })]
|
|
5118
5204
|
}) }), [
|
|
@@ -5122,23 +5208,26 @@ var Ds = 200, Os = Ht({
|
|
|
5122
5208
|
]);
|
|
5123
5209
|
return w.useEffect(() => {
|
|
5124
5210
|
switch (t) {
|
|
5125
|
-
case
|
|
5211
|
+
case Fi.SUCCESS:
|
|
5126
5212
|
o(/* @__PURE__ */ F(Gn, { primaryFill: V.colorStatusSuccessForeground1 }));
|
|
5127
5213
|
break;
|
|
5128
|
-
case
|
|
5214
|
+
case Fi.INFO:
|
|
5129
5215
|
o(/* @__PURE__ */ F(or, { primaryFill: V.colorStatusWarningForeground1 }));
|
|
5130
5216
|
break;
|
|
5131
5217
|
default: break;
|
|
5132
5218
|
}
|
|
5133
|
-
}, [t]), t ===
|
|
5219
|
+
}, [t]), t === Fi.ERROR ? /* @__PURE__ */ F(s, {}) : /* @__PURE__ */ F(P, { children: /* @__PURE__ */ I("div", {
|
|
5134
5220
|
className: i.root,
|
|
5221
|
+
role: "status",
|
|
5222
|
+
"aria-live": "polite",
|
|
5223
|
+
"aria-atomic": "true",
|
|
5135
5224
|
children: [
|
|
5136
5225
|
a,
|
|
5137
5226
|
/* @__PURE__ */ F(de, { children: r }),
|
|
5138
5227
|
n
|
|
5139
5228
|
]
|
|
5140
5229
|
}) });
|
|
5141
|
-
},
|
|
5230
|
+
}, Ls = () => ({
|
|
5142
5231
|
container: H({
|
|
5143
5232
|
display: "flex",
|
|
5144
5233
|
flexWrap: "nowrap",
|
|
@@ -5161,14 +5250,16 @@ var Ds = 200, Os = Ht({
|
|
|
5161
5250
|
cursor: "pointer",
|
|
5162
5251
|
minWidth: 107
|
|
5163
5252
|
})
|
|
5164
|
-
}),
|
|
5165
|
-
let a =
|
|
5253
|
+
}), Rs = ({ items: e, selectedItemId: t, onSelectedItem: n, renderControl: r, theme: i }) => {
|
|
5254
|
+
let a = Ls(), o = w.useCallback((e) => {
|
|
5166
5255
|
n && n(e);
|
|
5167
5256
|
}, [n]);
|
|
5168
5257
|
return /* @__PURE__ */ F(ut, { children: /* @__PURE__ */ I(Be, {
|
|
5169
5258
|
theme: i,
|
|
5170
5259
|
children: [" ", /* @__PURE__ */ I("div", {
|
|
5171
5260
|
className: B(a.container),
|
|
5261
|
+
role: "toolbar",
|
|
5262
|
+
"aria-label": "Control bar",
|
|
5172
5263
|
children: [
|
|
5173
5264
|
e.map((e) => {
|
|
5174
5265
|
let n = e.id === t;
|
|
@@ -5178,7 +5269,7 @@ var Ds = 200, Os = Ht({
|
|
|
5178
5269
|
children: r(e, n, () => o(e.id))
|
|
5179
5270
|
}, e.id);
|
|
5180
5271
|
}),
|
|
5181
|
-
/* @__PURE__ */ F(
|
|
5272
|
+
/* @__PURE__ */ F(Bs, {
|
|
5182
5273
|
items: e,
|
|
5183
5274
|
onSelectedItem: o,
|
|
5184
5275
|
theme: i
|
|
@@ -5187,11 +5278,11 @@ var Ds = 200, Os = Ht({
|
|
|
5187
5278
|
]
|
|
5188
5279
|
})]
|
|
5189
5280
|
}) });
|
|
5190
|
-
},
|
|
5281
|
+
}, zs = ({ item: e, onSelectedItem: t }) => Yt(e.id) ? null : /* @__PURE__ */ F(Je, {
|
|
5191
5282
|
icon: e.icon,
|
|
5192
5283
|
onClick: () => t(e.id),
|
|
5193
5284
|
children: /* @__PURE__ */ F("div", { children: e.name })
|
|
5194
|
-
}, e.id),
|
|
5285
|
+
}, e.id), Bs = ({ items: e, onSelectedItem: t, theme: n }) => {
|
|
5195
5286
|
let { ref: r, overflowCount: i, isOverflowing: a } = Xt(), o = w.useMemo(() => wr(cr, lr), []);
|
|
5196
5287
|
return a ? /* @__PURE__ */ F(Ve, {
|
|
5197
5288
|
value: "menu-over-",
|
|
@@ -5206,29 +5297,30 @@ var Ds = 200, Os = Ht({
|
|
|
5206
5297
|
"aria-label": `${i} more options`,
|
|
5207
5298
|
role: "button"
|
|
5208
5299
|
})
|
|
5209
|
-
}), /* @__PURE__ */ F(Ze, { children: /* @__PURE__ */ F(Xe, { children: e.map((e) => /* @__PURE__ */ F(
|
|
5300
|
+
}), /* @__PURE__ */ F(Ze, { children: /* @__PURE__ */ F(Xe, { children: e.map((e) => /* @__PURE__ */ F(zs, {
|
|
5210
5301
|
item: e,
|
|
5211
5302
|
onSelectedItem: t
|
|
5212
5303
|
}, e.id)) }) })] })
|
|
5213
5304
|
})
|
|
5214
5305
|
}) : null;
|
|
5215
|
-
},
|
|
5306
|
+
}, Vs = ({ id: e, children: t }) => Yt(e) ? null : /* @__PURE__ */ F(Je, { children: t }), Hs = ({ items: e, renderItem: t, keyExtractor: n }) => {
|
|
5216
5307
|
let { ref: r, overflowCount: i, isOverflowing: a } = Xt();
|
|
5217
5308
|
return a ? /* @__PURE__ */ I(Ke, { children: [/* @__PURE__ */ F(Qe, {
|
|
5218
5309
|
disableButtonEnhancement: !0,
|
|
5219
5310
|
children: /* @__PURE__ */ I(qe, {
|
|
5220
5311
|
ref: r,
|
|
5312
|
+
"aria-label": `+${i} more items`,
|
|
5221
5313
|
children: [
|
|
5222
5314
|
"+",
|
|
5223
5315
|
i,
|
|
5224
5316
|
" items"
|
|
5225
5317
|
]
|
|
5226
5318
|
})
|
|
5227
|
-
}), /* @__PURE__ */ F(Ze, { children: /* @__PURE__ */ F(Xe, { children: e.map((e) => /* @__PURE__ */ F(
|
|
5319
|
+
}), /* @__PURE__ */ F(Ze, { children: /* @__PURE__ */ F(Xe, { children: e.map((e) => /* @__PURE__ */ F(Vs, {
|
|
5228
5320
|
id: n(e),
|
|
5229
5321
|
children: t(e)
|
|
5230
5322
|
}, n(e))) }) })] }) : null;
|
|
5231
|
-
},
|
|
5323
|
+
}, 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
5324
|
let y = T.useMemo(() => {
|
|
5233
5325
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
5234
5326
|
for (let r of e) t.set(r.key, r), r.children && n(r.children);
|
|
@@ -5299,10 +5391,10 @@ var Ds = 200, Os = Ht({
|
|
|
5299
5391
|
]
|
|
5300
5392
|
});
|
|
5301
5393
|
});
|
|
5302
|
-
|
|
5394
|
+
Us.displayName = "Navigation";
|
|
5303
5395
|
//#endregion
|
|
5304
5396
|
//#region src/components/Navigation/useNavigationStyles.ts
|
|
5305
|
-
var
|
|
5397
|
+
var Ws = () => ({
|
|
5306
5398
|
root: H({ width: "100%" }),
|
|
5307
5399
|
sectionHeader: H({
|
|
5308
5400
|
color: V.colorNeutralForeground3,
|
|
@@ -5312,7 +5404,7 @@ var Gs = () => ({
|
|
|
5312
5404
|
textTransform: "uppercase",
|
|
5313
5405
|
letterSpacing: "0.5px"
|
|
5314
5406
|
})
|
|
5315
|
-
}),
|
|
5407
|
+
}), Gs = (e) => ({
|
|
5316
5408
|
videoPlayerContainer: H({
|
|
5317
5409
|
position: "relative",
|
|
5318
5410
|
width: e.width,
|
|
@@ -5332,11 +5424,13 @@ var Gs = () => ({
|
|
|
5332
5424
|
zIndex: 1,
|
|
5333
5425
|
userSelect: "none"
|
|
5334
5426
|
})
|
|
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 =
|
|
5427
|
+
}), Ks = (e) => {
|
|
5428
|
+
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
5429
|
return /* @__PURE__ */ F("div", {
|
|
5338
5430
|
className: l.videoPlayerContainer,
|
|
5339
|
-
|
|
5431
|
+
role: "region",
|
|
5432
|
+
"aria-label": "Video player",
|
|
5433
|
+
children: /* @__PURE__ */ F(Br, {
|
|
5340
5434
|
url: t,
|
|
5341
5435
|
controls: n,
|
|
5342
5436
|
width: r,
|
|
@@ -5349,11 +5443,11 @@ var Gs = () => ({
|
|
|
5349
5443
|
className: l.reactPlayer
|
|
5350
5444
|
})
|
|
5351
5445
|
});
|
|
5352
|
-
}, Js = "spteck-react-controls-maplibre-styles", Ys = (e) => {
|
|
5446
|
+
}, 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
5447
|
let t = e ?? (typeof document < "u" ? document : void 0);
|
|
5354
5448
|
if (!t || t.getElementById(Js)) return;
|
|
5355
5449
|
let n = t.createElement("style");
|
|
5356
|
-
n.id = Js, n.textContent =
|
|
5450
|
+
n.id = Js, n.textContent = qs, t.head.appendChild(n);
|
|
5357
5451
|
}, Xs = H`
|
|
5358
5452
|
position: absolute;
|
|
5359
5453
|
top: 16px;
|
|
@@ -5464,7 +5558,12 @@ var Gs = () => ({
|
|
|
5464
5558
|
src: e.imageUrl,
|
|
5465
5559
|
alt: e.name,
|
|
5466
5560
|
className: t || ec,
|
|
5467
|
-
|
|
5561
|
+
role: "button",
|
|
5562
|
+
tabIndex: 0,
|
|
5563
|
+
onClick: () => n?.(e),
|
|
5564
|
+
onKeyDown: (t) => {
|
|
5565
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), n?.(e));
|
|
5566
|
+
}
|
|
5468
5567
|
})
|
|
5469
5568
|
}), ic = (e) => {
|
|
5470
5569
|
let [t, n] = N(void 0), { error: r } = G();
|
|
@@ -5502,7 +5601,7 @@ var Gs = () => ({
|
|
|
5502
5601
|
if (!o.current || c.length === 0) return;
|
|
5503
5602
|
let e = c.map((e) => e.coordinates[0]), t = c.map((e) => e.coordinates[1]);
|
|
5504
5603
|
o.current.getMap().fitBounds([[Math.min(...e), Math.min(...t)], [Math.max(...e), Math.max(...t)]], { padding: i });
|
|
5505
|
-
}, [c, i]), s ? /* @__PURE__ */ I(
|
|
5604
|
+
}, [c, i]), s ? /* @__PURE__ */ I(Vr, {
|
|
5506
5605
|
ref: o,
|
|
5507
5606
|
initialViewState: {
|
|
5508
5607
|
longitude: 0,
|
|
@@ -5519,7 +5618,7 @@ var Gs = () => ({
|
|
|
5519
5618
|
latitude: 20,
|
|
5520
5619
|
zoom: 1
|
|
5521
5620
|
}
|
|
5522
|
-
}), c.map((e) => /* @__PURE__ */ F(
|
|
5621
|
+
}), c.map((e) => /* @__PURE__ */ F(Hr, {
|
|
5523
5622
|
longitude: e.coordinates[0],
|
|
5524
5623
|
latitude: e.coordinates[1],
|
|
5525
5624
|
anchor: "center",
|
|
@@ -5533,7 +5632,7 @@ var Gs = () => ({
|
|
|
5533
5632
|
}, cc = /* @__PURE__ */ function(e) {
|
|
5534
5633
|
return e[e.SharePoint = 0] = "SharePoint", e[e.Teams = 1] = "Teams", e[e.TeamsDark = 2] = "TeamsDark", e[e.TeamsHighContrast = 3] = "TeamsHighContrast", e;
|
|
5535
5634
|
}({}), lc = (e, t) => {
|
|
5536
|
-
let n =
|
|
5635
|
+
let n = pi();
|
|
5537
5636
|
n.put(`.${t}-ac-container:focus`, { outline: "none !important" }), n.put(`.${t}-ac-adaptiveCard:focus`, { outline: "none !important" }), n.put(`.${t}-ac-pushButton`, {
|
|
5538
5637
|
overflow: "hidden",
|
|
5539
5638
|
textOverflow: "ellipsis",
|
|
@@ -5629,7 +5728,7 @@ var Gs = () => ({
|
|
|
5629
5728
|
backgroundColor: e.colorNeutralBackgroundDisabled,
|
|
5630
5729
|
color: e.colorNeutralForegroundDisabled
|
|
5631
5730
|
});
|
|
5632
|
-
}, uc = (e) => new
|
|
5731
|
+
}, uc = (e) => new $r({
|
|
5633
5732
|
fontFamily: e.fontFamilyBase,
|
|
5634
5733
|
separator: {
|
|
5635
5734
|
lineThickness: 1,
|
|
@@ -5758,10 +5857,10 @@ var Gs = () => ({
|
|
|
5758
5857
|
}
|
|
5759
5858
|
return n.hostConfig.cssClassNamePrefix = `ach${Math.random().toString().replace(/\./g, "")}`, fc(n.hostConfig, n.theme), lc(n.theme, n.hostConfig.cssClassNamePrefix), n;
|
|
5760
5859
|
}, hc = (e) => {
|
|
5761
|
-
|
|
5762
|
-
n.outputHtml = new
|
|
5860
|
+
Kr.onProcessMarkdown ||= (t, n) => {
|
|
5861
|
+
n.outputHtml = new mi.default().render(t), n.didProcess = !0;
|
|
5763
5862
|
try {
|
|
5764
|
-
n.outputHtml = new
|
|
5863
|
+
n.outputHtml = new mi.default().render(t), n.didProcess = !0;
|
|
5765
5864
|
} catch (t) {
|
|
5766
5865
|
e && e("AdaptiveCardHost: Error parsing Markdown", t instanceof Error ? t : void 0), n.didProcess = !1;
|
|
5767
5866
|
}
|
|
@@ -5822,24 +5921,15 @@ var Gs = () => ({
|
|
|
5822
5921
|
...e?.$root,
|
|
5823
5922
|
"@context": i
|
|
5824
5923
|
} } : { $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
|
-
};
|
|
5924
|
+
};
|
|
5925
|
+
//#endregion
|
|
5926
|
+
//#region src/components/adaptiveCardHost/fluentUI/renderCompat.ts
|
|
5927
|
+
function _c(e) {
|
|
5928
|
+
return gi(e);
|
|
5839
5929
|
}
|
|
5840
5930
|
//#endregion
|
|
5841
5931
|
//#region src/components/adaptiveCardHost/fluentUI/Actions.tsx
|
|
5842
|
-
var
|
|
5932
|
+
var vc = (e) => {
|
|
5843
5933
|
let t;
|
|
5844
5934
|
return t = e.iconUrl ? /* @__PURE__ */ F(R, {
|
|
5845
5935
|
className: e.className,
|
|
@@ -5848,7 +5938,7 @@ var yc = (e) => {
|
|
|
5848
5938
|
children: /* @__PURE__ */ I("div", {
|
|
5849
5939
|
style: {
|
|
5850
5940
|
display: "flex",
|
|
5851
|
-
flexDirection: e.iconPlacement ===
|
|
5941
|
+
flexDirection: e.iconPlacement === Si.LeftOfTitle ? "row" : "column",
|
|
5852
5942
|
justifyContent: "center",
|
|
5853
5943
|
alignItems: "center"
|
|
5854
5944
|
},
|
|
@@ -5858,8 +5948,8 @@ var yc = (e) => {
|
|
|
5858
5948
|
width: e.iconSize,
|
|
5859
5949
|
height: e.iconSize,
|
|
5860
5950
|
flexShrink: 0,
|
|
5861
|
-
marginRight: e.iconPlacement ===
|
|
5862
|
-
marginBottom: e.iconPlacement ===
|
|
5951
|
+
marginRight: e.iconPlacement === Si.LeftOfTitle ? 4 : 0,
|
|
5952
|
+
marginBottom: e.iconPlacement === Si.LeftOfTitle ? 0 : 4
|
|
5863
5953
|
},
|
|
5864
5954
|
alt: ""
|
|
5865
5955
|
}), /* @__PURE__ */ F("span", { children: e.text })]
|
|
@@ -5874,15 +5964,15 @@ var yc = (e) => {
|
|
|
5874
5964
|
onClick: e.actionClickHandler,
|
|
5875
5965
|
children: e.text
|
|
5876
5966
|
}), t;
|
|
5877
|
-
},
|
|
5967
|
+
}, yc = (e, t, n, r, i, a, o, s) => {
|
|
5878
5968
|
let c = document.createElement("div");
|
|
5879
5969
|
c.className = "fluentUI";
|
|
5880
|
-
let l =
|
|
5970
|
+
let l = _c(c);
|
|
5881
5971
|
l.render(/* @__PURE__ */ F(Ve, {
|
|
5882
|
-
value:
|
|
5972
|
+
value: fi(),
|
|
5883
5973
|
children: /* @__PURE__ */ F(Be, {
|
|
5884
5974
|
theme: s,
|
|
5885
|
-
children: /* @__PURE__ */ F(
|
|
5975
|
+
children: /* @__PURE__ */ F(vc, {
|
|
5886
5976
|
text: e,
|
|
5887
5977
|
className: n,
|
|
5888
5978
|
iconUrl: t,
|
|
@@ -5911,7 +6001,7 @@ var yc = (e) => {
|
|
|
5911
6001
|
});
|
|
5912
6002
|
}
|
|
5913
6003
|
return c;
|
|
5914
|
-
},
|
|
6004
|
+
}, bc = class extends _i {
|
|
5915
6005
|
updateCssClasses() {}
|
|
5916
6006
|
actionClickHandler = (e) => {
|
|
5917
6007
|
e.stopPropagation(), e.preventDefault(), this.execute();
|
|
@@ -5921,9 +6011,9 @@ var yc = (e) => {
|
|
|
5921
6011
|
iconPlacement: "left",
|
|
5922
6012
|
iconSize: 24
|
|
5923
6013
|
};
|
|
5924
|
-
this._renderedElement =
|
|
6014
|
+
this._renderedElement = yc(this.title ?? "", this.iconUrl || "", e || "", n.iconPlacement, n.iconSize, this.actionClickHandler, this.style, t);
|
|
5925
6015
|
}
|
|
5926
|
-
},
|
|
6016
|
+
}, xc = class extends vi {
|
|
5927
6017
|
updateCssClasses() {}
|
|
5928
6018
|
actionClickHandler = (e) => {
|
|
5929
6019
|
e.stopPropagation(), e.preventDefault(), this.execute();
|
|
@@ -5933,9 +6023,9 @@ var yc = (e) => {
|
|
|
5933
6023
|
iconPlacement: "left",
|
|
5934
6024
|
iconSize: 24
|
|
5935
6025
|
};
|
|
5936
|
-
this._renderedElement =
|
|
6026
|
+
this._renderedElement = yc(this.title ?? "", this.iconUrl || "", e || "", n.iconPlacement, n.iconSize, this.actionClickHandler, this.style, t);
|
|
5937
6027
|
}
|
|
5938
|
-
},
|
|
6028
|
+
}, Sc = class extends yi {
|
|
5939
6029
|
updateCssClasses() {
|
|
5940
6030
|
if (this.renderedElement) {
|
|
5941
6031
|
let e = this.state === 1;
|
|
@@ -5950,9 +6040,9 @@ var yc = (e) => {
|
|
|
5950
6040
|
iconPlacement: "left",
|
|
5951
6041
|
iconSize: 24
|
|
5952
6042
|
};
|
|
5953
|
-
this._renderedElement =
|
|
6043
|
+
this._renderedElement = yc(this.title || "Default Title", this.iconUrl || "", this.iconUrl ?? "", t.iconPlacement, t.iconSize, this.actionClickHandler, this.style);
|
|
5954
6044
|
}
|
|
5955
|
-
},
|
|
6045
|
+
}, Cc = class extends bi {
|
|
5956
6046
|
updateCssClasses() {}
|
|
5957
6047
|
actionClickHandler = (e) => {
|
|
5958
6048
|
e.stopPropagation(), e.preventDefault(), this.execute();
|
|
@@ -5962,9 +6052,9 @@ var yc = (e) => {
|
|
|
5962
6052
|
iconPlacement: "left",
|
|
5963
6053
|
iconSize: 24
|
|
5964
6054
|
};
|
|
5965
|
-
this._renderedElement =
|
|
6055
|
+
this._renderedElement = yc(this.title ?? "", this.iconUrl ?? "", e || "", n.iconPlacement, n.iconSize, this.actionClickHandler, this.style, t);
|
|
5966
6056
|
}
|
|
5967
|
-
},
|
|
6057
|
+
}, wc = class extends xi {
|
|
5968
6058
|
updateCssClasses() {
|
|
5969
6059
|
if (this.renderedElement) {
|
|
5970
6060
|
let e = this.state === 1;
|
|
@@ -5979,17 +6069,17 @@ var yc = (e) => {
|
|
|
5979
6069
|
iconPlacement: "left",
|
|
5980
6070
|
iconSize: 24
|
|
5981
6071
|
};
|
|
5982
|
-
this._renderedElement =
|
|
6072
|
+
this._renderedElement = yc(this.title ?? "", this.iconUrl ?? "", e || "", n.iconPlacement, n.iconSize, this.actionClickHandler, this.style, t);
|
|
5983
6073
|
}
|
|
5984
6074
|
};
|
|
5985
|
-
function
|
|
5986
|
-
e.register("Action.Submit",
|
|
6075
|
+
function Tc(e) {
|
|
6076
|
+
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
6077
|
}
|
|
5988
6078
|
//#endregion
|
|
5989
6079
|
//#region src/components/adaptiveCardHost/fluentUI/internalRender.tsx
|
|
5990
|
-
var
|
|
6080
|
+
var Ec = (e) => {
|
|
5991
6081
|
let t = document.createElement("div");
|
|
5992
|
-
return
|
|
6082
|
+
return _c(t).render(e()), t;
|
|
5993
6083
|
};
|
|
5994
6084
|
//#endregion
|
|
5995
6085
|
//#region \0@oxc-project+runtime@0.122.0/helpers/decorateMetadata.js
|
|
@@ -6006,10 +6096,10 @@ function $(e, t, n, r) {
|
|
|
6006
6096
|
}
|
|
6007
6097
|
//#endregion
|
|
6008
6098
|
//#region src/components/adaptiveCardHost/fluentUI/FluentUIChoiceSetInput.tsx
|
|
6009
|
-
var
|
|
6010
|
-
static valueProperty = new
|
|
6011
|
-
static choicesProperty = new
|
|
6012
|
-
static styleProperty = new
|
|
6099
|
+
var Dc = class extends ei {
|
|
6100
|
+
static valueProperty = new oi(U.v1_5, "value");
|
|
6101
|
+
static choicesProperty = new ii(U.v1_5, "choices", Yr);
|
|
6102
|
+
static styleProperty = new di(U.v1_5, "style", [
|
|
6013
6103
|
{ value: "compact" },
|
|
6014
6104
|
{ value: "expanded" },
|
|
6015
6105
|
{
|
|
@@ -6017,9 +6107,9 @@ var Oc = class extends ni {
|
|
|
6017
6107
|
targetVersion: U.v1_5
|
|
6018
6108
|
}
|
|
6019
6109
|
], "compact");
|
|
6020
|
-
static isMultiSelectProperty = new
|
|
6021
|
-
static placeholderProperty = new
|
|
6022
|
-
static wrapProperty = new
|
|
6110
|
+
static isMultiSelectProperty = new qr(U.v1_5, "isMultiSelect", !1);
|
|
6111
|
+
static placeholderProperty = new oi(U.v1_5, "placeholder");
|
|
6112
|
+
static wrapProperty = new qr(U.v1_5, "wrap", !1);
|
|
6023
6113
|
defaultValue;
|
|
6024
6114
|
style;
|
|
6025
6115
|
get isCompact() {
|
|
@@ -6077,9 +6167,9 @@ var Oc = class extends ni {
|
|
|
6077
6167
|
}, e.key))
|
|
6078
6168
|
});
|
|
6079
6169
|
};
|
|
6080
|
-
return this.element =
|
|
6170
|
+
return this.element = Ec(() => /* @__PURE__ */ I(P, { children: [
|
|
6081
6171
|
!this.isMultiSelect && this.style === "expanded" && /* @__PURE__ */ F(Ve, {
|
|
6082
|
-
value:
|
|
6172
|
+
value: fi(),
|
|
6083
6173
|
children: /* @__PURE__ */ F(Be, {
|
|
6084
6174
|
theme: e,
|
|
6085
6175
|
children: /* @__PURE__ */ F(yt, {
|
|
@@ -6106,7 +6196,7 @@ var Oc = class extends ni {
|
|
|
6106
6196
|
children: this.choices.map((t, n) => {
|
|
6107
6197
|
let r = this.defaultSelectedValues.indexOf(t.value ?? "") > -1;
|
|
6108
6198
|
return /* @__PURE__ */ F(Ve, {
|
|
6109
|
-
value:
|
|
6199
|
+
value: fi(),
|
|
6110
6200
|
children: /* @__PURE__ */ F(Be, {
|
|
6111
6201
|
theme: e,
|
|
6112
6202
|
children: /* @__PURE__ */ F(ye, {
|
|
@@ -6124,7 +6214,7 @@ var Oc = class extends ni {
|
|
|
6124
6214
|
})
|
|
6125
6215
|
}),
|
|
6126
6216
|
(this.style === "compact" || this.style === "filtered") && /* @__PURE__ */ F(Ve, {
|
|
6127
|
-
value:
|
|
6217
|
+
value: fi(),
|
|
6128
6218
|
children: /* @__PURE__ */ F(Be, {
|
|
6129
6219
|
theme: e,
|
|
6130
6220
|
children: /* @__PURE__ */ F(n, {})
|
|
@@ -6139,8 +6229,8 @@ var Oc = class extends ni {
|
|
|
6139
6229
|
this.refControl && this.refControl.focus && this.refControl.focus();
|
|
6140
6230
|
}
|
|
6141
6231
|
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,
|
|
6232
|
+
super.internalValidateProperties(e), this.choices.length === 0 && e.addFailure(this, ui.CollectionCantBeEmpty, si.errors.choiceSetMustHaveAtLeastOneChoice());
|
|
6233
|
+
for (let t of this.choices) (!t.title || !t.value) && e.addFailure(this, ui.PropertyCantBeNull, si.errors.choiceSetChoicesMustHaveTitleAndValue());
|
|
6144
6234
|
}
|
|
6145
6235
|
isSet() {
|
|
6146
6236
|
return !!this.value;
|
|
@@ -6152,14 +6242,14 @@ var Oc = class extends ni {
|
|
|
6152
6242
|
if (this.selectedValues) return this.selectedValues.join(this.hostConfig.choiceSetInputValueSeparator);
|
|
6153
6243
|
}
|
|
6154
6244
|
};
|
|
6155
|
-
$([W(
|
|
6245
|
+
$([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
6246
|
//#endregion
|
|
6157
6247
|
//#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
|
|
6248
|
+
var Oc = class extends ei {
|
|
6249
|
+
static valueProperty = new oi(U.v1_5, "value");
|
|
6250
|
+
static placeholderProperty = new oi(U.v1_5, "placeholder");
|
|
6251
|
+
static minProperty = new oi(U.v1_0, "min");
|
|
6252
|
+
static maxProperty = new oi(U.v1_0, "max");
|
|
6163
6253
|
defaultValue;
|
|
6164
6254
|
min;
|
|
6165
6255
|
max;
|
|
@@ -6169,11 +6259,11 @@ var kc = class extends ni {
|
|
|
6169
6259
|
element;
|
|
6170
6260
|
internalRender() {
|
|
6171
6261
|
let e = pc(this.hostConfig);
|
|
6172
|
-
return this.element =
|
|
6173
|
-
value:
|
|
6262
|
+
return this.element = Ec(() => /* @__PURE__ */ F(Ve, {
|
|
6263
|
+
value: fi(),
|
|
6174
6264
|
children: /* @__PURE__ */ F(Be, {
|
|
6175
6265
|
theme: e,
|
|
6176
|
-
children: /* @__PURE__ */ F(
|
|
6266
|
+
children: /* @__PURE__ */ F(Ci, {
|
|
6177
6267
|
id: this.id,
|
|
6178
6268
|
placeholder: this.placeholder,
|
|
6179
6269
|
minDate: this.convertStringToDate(this.min),
|
|
@@ -6232,14 +6322,14 @@ var kc = class extends ni {
|
|
|
6232
6322
|
}
|
|
6233
6323
|
}
|
|
6234
6324
|
};
|
|
6235
|
-
$([W(
|
|
6325
|
+
$([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
6326
|
//#endregion
|
|
6237
6327
|
//#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
|
|
6328
|
+
var kc = class extends ei {
|
|
6329
|
+
static valueProperty = new ni(U.v1_5, "value");
|
|
6330
|
+
static placeholderProperty = new oi(U.v1_5, "placeholder");
|
|
6331
|
+
static minProperty = new ni(U.v1_0, "min");
|
|
6332
|
+
static maxProperty = new ni(U.v1_0, "max");
|
|
6243
6333
|
defaultValue;
|
|
6244
6334
|
min;
|
|
6245
6335
|
max;
|
|
@@ -6248,8 +6338,8 @@ var Ac = class extends ni {
|
|
|
6248
6338
|
element;
|
|
6249
6339
|
internalRender() {
|
|
6250
6340
|
let e = pc(this.hostConfig);
|
|
6251
|
-
return this.element =
|
|
6252
|
-
value:
|
|
6341
|
+
return this.element = Ec(() => /* @__PURE__ */ F(Ve, {
|
|
6342
|
+
value: fi(),
|
|
6253
6343
|
children: /* @__PURE__ */ F(Be, {
|
|
6254
6344
|
theme: e,
|
|
6255
6345
|
children: /* @__PURE__ */ F(Ct, {
|
|
@@ -6295,10 +6385,10 @@ var Ac = class extends ni {
|
|
|
6295
6385
|
return this.refControl ? Number(this.refControl.value) : void 0;
|
|
6296
6386
|
}
|
|
6297
6387
|
};
|
|
6298
|
-
$([W(
|
|
6388
|
+
$([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
6389
|
//#endregion
|
|
6300
6390
|
//#region src/components/adaptiveCardHost/fluentUI/IconButton.tsx
|
|
6301
|
-
var
|
|
6391
|
+
var Ac = (e) => {
|
|
6302
6392
|
let { ariaLabel: t, iconProps: n, styles: r, className: i, onClick: a, ...o } = e;
|
|
6303
6393
|
return /* @__PURE__ */ F(R, {
|
|
6304
6394
|
appearance: "transparent",
|
|
@@ -6316,19 +6406,19 @@ var jc = (e) => {
|
|
|
6316
6406
|
}
|
|
6317
6407
|
})
|
|
6318
6408
|
});
|
|
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
|
|
6409
|
+
}, jc = { marginLeft: 8 }, Mc, Nc, Pc = class extends ei {
|
|
6410
|
+
static valueProperty = new oi(U.v1_0, "value");
|
|
6411
|
+
static maxLengthProperty = new ni(U.v1_0, "maxLength");
|
|
6412
|
+
static isMultilineProperty = new qr(U.v1_0, "isMultiline", !1);
|
|
6413
|
+
static placeholderProperty = new oi(U.v1_0, "placeholder");
|
|
6414
|
+
static styleProperty = new Xr(U.v1_0, "style", ti, ti.Text);
|
|
6415
|
+
static inlineActionProperty = new Gr(U.v1_0, "inlineAction", ["Action.ShowCard"]);
|
|
6416
|
+
static regexProperty = new oi(U.v1_3, "regex", !0);
|
|
6327
6417
|
defaultValue;
|
|
6328
6418
|
maxLength;
|
|
6329
6419
|
isMultiline = !1;
|
|
6330
6420
|
placeholder;
|
|
6331
|
-
style =
|
|
6421
|
+
style = ti.Text;
|
|
6332
6422
|
inlineAction;
|
|
6333
6423
|
regex;
|
|
6334
6424
|
refControl = null;
|
|
@@ -6336,8 +6426,8 @@ var jc = (e) => {
|
|
|
6336
6426
|
_value = this.defaultValue || "";
|
|
6337
6427
|
internalRender() {
|
|
6338
6428
|
let e = pc(this.hostConfig);
|
|
6339
|
-
return this.element =
|
|
6340
|
-
value:
|
|
6429
|
+
return this.element = Ec(() => /* @__PURE__ */ F(Ve, {
|
|
6430
|
+
value: fi(),
|
|
6341
6431
|
children: /* @__PURE__ */ F(Be, {
|
|
6342
6432
|
theme: e,
|
|
6343
6433
|
children: this.isMultiline ? /* @__PURE__ */ F(It, {
|
|
@@ -6357,7 +6447,7 @@ var jc = (e) => {
|
|
|
6357
6447
|
}) : /* @__PURE__ */ F(We, {
|
|
6358
6448
|
id: this.id,
|
|
6359
6449
|
style: { width: "100%" },
|
|
6360
|
-
type:
|
|
6450
|
+
type: ti[this.style].toLowerCase(),
|
|
6361
6451
|
defaultValue: this.defaultValue,
|
|
6362
6452
|
placeholder: this.placeholder,
|
|
6363
6453
|
maxLength: this.maxLength,
|
|
@@ -6379,31 +6469,31 @@ var jc = (e) => {
|
|
|
6379
6469
|
let e = super.overrideInternalRender();
|
|
6380
6470
|
return this.inlineAction && this.inputControlContainerElement.appendChild(this.buildInlineActionButton()), e || document.createElement("div");
|
|
6381
6471
|
}
|
|
6382
|
-
buildInlineActionButton = () =>
|
|
6472
|
+
buildInlineActionButton = () => Ec(this.inlineAction?.iconUrl ? this.inlineIconActionButton : this.buildTextOnlyInlineActionActionButton);
|
|
6383
6473
|
inlineActionClickHandler = (e) => {
|
|
6384
6474
|
e.stopPropagation(), e.preventDefault(), this.inlineAction?.execute();
|
|
6385
6475
|
};
|
|
6386
6476
|
inlineIconActionButton = () => /* @__PURE__ */ F(Be, {
|
|
6387
6477
|
theme: this.hostConfig.hostCapabilities.getCustomProperty(dc),
|
|
6388
|
-
children: /* @__PURE__ */ F(
|
|
6478
|
+
children: /* @__PURE__ */ F(Ac, {
|
|
6389
6479
|
ariaLabel: this.inlineAction?.title || "Inline action",
|
|
6390
6480
|
className: this.hostConfig.makeCssClassName("ac-inlineActionButton", "iconOnly"),
|
|
6391
6481
|
iconProps: { src: this.inlineAction?.iconUrl ?? "" },
|
|
6392
6482
|
onClick: this.inlineActionClickHandler,
|
|
6393
|
-
styles:
|
|
6483
|
+
styles: jc
|
|
6394
6484
|
})
|
|
6395
6485
|
});
|
|
6396
6486
|
buildTextOnlyInlineActionActionButton = () => {
|
|
6397
6487
|
let e = this.hostConfig.hostCapabilities.getCustomProperty(dc);
|
|
6398
6488
|
return /* @__PURE__ */ F(Ve, {
|
|
6399
|
-
value:
|
|
6489
|
+
value: fi(),
|
|
6400
6490
|
children: /* @__PURE__ */ F(Be, {
|
|
6401
6491
|
theme: e,
|
|
6402
6492
|
children: /* @__PURE__ */ F(R, {
|
|
6403
6493
|
appearance: "primary",
|
|
6404
6494
|
className: this.hostConfig.makeCssClassName("ac-inlineActionButton", "textOnly"),
|
|
6405
6495
|
onClick: this.inlineActionClickHandler,
|
|
6406
|
-
style:
|
|
6496
|
+
style: jc,
|
|
6407
6497
|
children: this.inlineAction?.title ?? ""
|
|
6408
6498
|
})
|
|
6409
6499
|
})
|
|
@@ -6436,24 +6526,24 @@ var jc = (e) => {
|
|
|
6436
6526
|
if (this._value) return this._value;
|
|
6437
6527
|
}
|
|
6438
6528
|
};
|
|
6439
|
-
$([W(
|
|
6529
|
+
$([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
6530
|
//#endregion
|
|
6441
6531
|
//#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 ?
|
|
6532
|
+
var Fc = (e) => {
|
|
6533
|
+
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
6534
|
return /* @__PURE__ */ F(Ve, {
|
|
6445
6535
|
value: t,
|
|
6446
6536
|
children: /* @__PURE__ */ F(Be, {
|
|
6447
6537
|
theme: o,
|
|
6448
|
-
children: /* @__PURE__ */ F(
|
|
6538
|
+
children: /* @__PURE__ */ F(wi, {
|
|
6449
6539
|
style: { width: "100%" },
|
|
6450
6540
|
expandIcon: /* @__PURE__ */ F(Xn, {}),
|
|
6451
6541
|
id: t,
|
|
6452
6542
|
freeform: !0,
|
|
6453
|
-
min: r ?
|
|
6454
|
-
max: i ?
|
|
6543
|
+
min: r ? Ti(r) : void 0,
|
|
6544
|
+
max: i ? Ti(i) : void 0,
|
|
6455
6545
|
placeholder: a,
|
|
6456
|
-
value: c ?
|
|
6546
|
+
value: c ? Ti(c) : u,
|
|
6457
6547
|
onTimeChange: (e, t) => {
|
|
6458
6548
|
let n = t.selectedTime ?? void 0, r = t.selectedTimeText ?? "";
|
|
6459
6549
|
l(n), d(r), s && n && s(n, r);
|
|
@@ -6464,14 +6554,14 @@ var Ic = (e) => {
|
|
|
6464
6554
|
})
|
|
6465
6555
|
})
|
|
6466
6556
|
});
|
|
6467
|
-
},
|
|
6557
|
+
}, Ic = class e extends ei {
|
|
6468
6558
|
static convertTimeStringToDate(e) {
|
|
6469
6559
|
return /* @__PURE__ */ new Date("1973-09-04T" + e + ":00Z");
|
|
6470
6560
|
}
|
|
6471
|
-
static valueProperty = new
|
|
6472
|
-
static placeholderProperty = new
|
|
6473
|
-
static minProperty = new
|
|
6474
|
-
static maxProperty = new
|
|
6561
|
+
static valueProperty = new li(U.v1_0, "value");
|
|
6562
|
+
static placeholderProperty = new oi(U.v1_0, "placeholder");
|
|
6563
|
+
static minProperty = new li(U.v1_0, "min");
|
|
6564
|
+
static maxProperty = new li(U.v1_0, "max");
|
|
6475
6565
|
defaultValue;
|
|
6476
6566
|
min;
|
|
6477
6567
|
max;
|
|
@@ -6480,8 +6570,8 @@ var Ic = (e) => {
|
|
|
6480
6570
|
element;
|
|
6481
6571
|
internalRender() {
|
|
6482
6572
|
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:
|
|
6573
|
+
return this.element = Ec(() => /* @__PURE__ */ F(Fc, {
|
|
6574
|
+
id: fi(),
|
|
6485
6575
|
defaultTime: n,
|
|
6486
6576
|
minTime: r,
|
|
6487
6577
|
maxTime: i,
|
|
@@ -6520,18 +6610,18 @@ var Ic = (e) => {
|
|
|
6520
6610
|
return t;
|
|
6521
6611
|
}
|
|
6522
6612
|
get value() {
|
|
6523
|
-
return this._time ?
|
|
6613
|
+
return this._time ? Ti(this._time) : void 0;
|
|
6524
6614
|
}
|
|
6525
6615
|
};
|
|
6526
|
-
$([W(
|
|
6616
|
+
$([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
6617
|
//#endregion
|
|
6528
6618
|
//#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
|
|
6619
|
+
var Lc = class extends ei {
|
|
6620
|
+
static valueProperty = new oi(U.v1_5, "value");
|
|
6621
|
+
static titleProperty = new oi(U.v1_5, "title");
|
|
6622
|
+
static valueOnProperty = new oi(U.v1_5, "valueOn", !0, void 0, "true", (e) => "true");
|
|
6623
|
+
static valueOffProperty = new oi(U.v1_5, "valueOff", !0, void 0, "false", (e) => "false");
|
|
6624
|
+
static wrapProperty = new qr(U.v1_2, "wrap", !1);
|
|
6535
6625
|
defaultValue;
|
|
6536
6626
|
title;
|
|
6537
6627
|
valueOn = "true";
|
|
@@ -6542,8 +6632,8 @@ var Rc = class extends ni {
|
|
|
6542
6632
|
element;
|
|
6543
6633
|
internalRender() {
|
|
6544
6634
|
let e = pc(this.hostConfig);
|
|
6545
|
-
return this.element =
|
|
6546
|
-
value:
|
|
6635
|
+
return this.element = Ec(() => /* @__PURE__ */ F(Ve, {
|
|
6636
|
+
value: fi(),
|
|
6547
6637
|
children: /* @__PURE__ */ F(Be, {
|
|
6548
6638
|
theme: e,
|
|
6549
6639
|
style: { backgroundColor: "transparent" },
|
|
@@ -6587,15 +6677,15 @@ var Rc = class extends ni {
|
|
|
6587
6677
|
return this._value !== null && this._value !== void 0 ? this._value ? this.valueOn : this.valueOff : this.isRequired ? void 0 : this.valueOff;
|
|
6588
6678
|
}
|
|
6589
6679
|
};
|
|
6590
|
-
$([W(
|
|
6680
|
+
$([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
6681
|
//#endregion
|
|
6592
6682
|
//#region src/components/adaptiveCardHost/fluentUI/Elements.tsx
|
|
6593
|
-
function
|
|
6594
|
-
e.register("Input.Text",
|
|
6683
|
+
function Rc(e) {
|
|
6684
|
+
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
6685
|
}
|
|
6596
6686
|
//#endregion
|
|
6597
6687
|
//#region src/components/adaptiveCardHost/AdaptiveCardHost.tsx
|
|
6598
|
-
var
|
|
6688
|
+
var zc = (e) => {
|
|
6599
6689
|
switch (e) {
|
|
6600
6690
|
case cc.SharePoint: return Zt;
|
|
6601
6691
|
case cc.Teams: return qt;
|
|
@@ -6603,12 +6693,12 @@ var Bc = (e) => {
|
|
|
6603
6693
|
case cc.TeamsHighContrast: return Kt;
|
|
6604
6694
|
default: return Zt;
|
|
6605
6695
|
}
|
|
6606
|
-
},
|
|
6696
|
+
}, Bc = (e) => {
|
|
6607
6697
|
let t = M(null), { log: n, error: r, LogLevel: i } = G(), a = M(null), o = M(null), s = M(null);
|
|
6608
6698
|
k(() => {
|
|
6609
6699
|
hc((e, t) => r(e, t));
|
|
6610
6700
|
}, []), k(() => {
|
|
6611
|
-
a.current = null, a.current = new
|
|
6701
|
+
a.current = null, a.current = new Kr(), o.current = new ai();
|
|
6612
6702
|
}, [e]);
|
|
6613
6703
|
let c = D((t) => {
|
|
6614
6704
|
if (e.onInvokeAction) {
|
|
@@ -6617,7 +6707,7 @@ var Bc = (e) => {
|
|
|
6617
6707
|
title: ""
|
|
6618
6708
|
}, r = t.getJsonTypeName();
|
|
6619
6709
|
switch (r) {
|
|
6620
|
-
case
|
|
6710
|
+
case ri.JsonTypeName:
|
|
6621
6711
|
{
|
|
6622
6712
|
let e = t;
|
|
6623
6713
|
n = {
|
|
@@ -6627,7 +6717,7 @@ var Bc = (e) => {
|
|
|
6627
6717
|
};
|
|
6628
6718
|
}
|
|
6629
6719
|
break;
|
|
6630
|
-
case
|
|
6720
|
+
case ci.JsonTypeName:
|
|
6631
6721
|
{
|
|
6632
6722
|
let e = t;
|
|
6633
6723
|
n = {
|
|
@@ -6637,7 +6727,7 @@ var Bc = (e) => {
|
|
|
6637
6727
|
};
|
|
6638
6728
|
}
|
|
6639
6729
|
break;
|
|
6640
|
-
case
|
|
6730
|
+
case Zr.JsonTypeName:
|
|
6641
6731
|
{
|
|
6642
6732
|
let e = t;
|
|
6643
6733
|
n = {
|
|
@@ -6660,14 +6750,14 @@ var Bc = (e) => {
|
|
|
6660
6750
|
}, [e.onInvokeAction]);
|
|
6661
6751
|
return k(() => {
|
|
6662
6752
|
let t, r = e.themeType;
|
|
6663
|
-
s.current = null, r ||= cc.SharePoint, t = e.theme ? e.theme :
|
|
6753
|
+
s.current = null, r ||= cc.SharePoint, t = e.theme ? e.theme : zc(r);
|
|
6664
6754
|
let o = mc(r, t), c = o.hostConfig;
|
|
6665
6755
|
n("hostconfig:", i.Info, c), s.current = t, a.current && (a.current.hostConfig = o.hostConfig), e.onUpdateHostCapabilities && e.onUpdateHostCapabilities(c.hostCapabilities);
|
|
6666
6756
|
}, [e]), k(() => {
|
|
6667
6757
|
a.current && (a.current.onExecuteAction = c);
|
|
6668
6758
|
}, [e, c]), k(() => {
|
|
6669
|
-
let t = new
|
|
6670
|
-
|
|
6759
|
+
let t = new Jr(), n = new Jr();
|
|
6760
|
+
Qr.populateWithDefaultElements(t), Qr.populateWithDefaultActions(n), Rc(t), Tc(n), e.onSetCustomElements && e.onSetCustomElements(t), e.onSetCustomActions && e.onSetCustomActions(n);
|
|
6671
6761
|
let r = o.current;
|
|
6672
6762
|
r && r.setElementRegistry(t), r && r.setActionRegistry(n);
|
|
6673
6763
|
}, [e]), k(() => {
|
|
@@ -6676,7 +6766,7 @@ var Bc = (e) => {
|
|
|
6676
6766
|
if (!n) return;
|
|
6677
6767
|
let r = a.current;
|
|
6678
6768
|
try {
|
|
6679
|
-
let t = new
|
|
6769
|
+
let t = new Ei(e.card), i = gc(e.data ?? { $root: {} }, zc(e.themeType ?? cc.SharePoint), e.context), a = t.expand(i);
|
|
6680
6770
|
if (r && r.parse(a, o.current ?? void 0), r) {
|
|
6681
6771
|
let e = r.render();
|
|
6682
6772
|
e && e.outerHTML !== n.innerHTML && e.outerHTML !== n.innerHTML && (n.innerHTML = "", n.appendChild(e));
|
|
@@ -6684,10 +6774,10 @@ var Bc = (e) => {
|
|
|
6684
6774
|
} catch (t) {
|
|
6685
6775
|
e.onError && e.onError(t);
|
|
6686
6776
|
}
|
|
6687
|
-
}, [e,
|
|
6777
|
+
}, [e, zc]), /* @__PURE__ */ F(Ve, {
|
|
6688
6778
|
value: "adaptiveCardHost",
|
|
6689
6779
|
children: /* @__PURE__ */ F(Be, {
|
|
6690
|
-
theme: s.current ? s.current :
|
|
6780
|
+
theme: s.current ? s.current : zc(e.themeType ?? cc.SharePoint),
|
|
6691
6781
|
children: /* @__PURE__ */ F("div", {
|
|
6692
6782
|
ref: t,
|
|
6693
6783
|
className: `${e.className ? e.className : ""}`,
|
|
@@ -6695,24 +6785,28 @@ var Bc = (e) => {
|
|
|
6695
6785
|
})
|
|
6696
6786
|
})
|
|
6697
6787
|
});
|
|
6698
|
-
},
|
|
6788
|
+
}, Vc = ({ card: e, data: t }) => {
|
|
6699
6789
|
let n = M(null);
|
|
6700
6790
|
return k(() => {
|
|
6701
6791
|
if (!n.current) return;
|
|
6702
6792
|
n.current.innerHTML = "";
|
|
6703
|
-
let r = new
|
|
6793
|
+
let r = new Ei(e).expand({ $root: t }), i = new Ur.AdaptiveCard();
|
|
6704
6794
|
i?.parse(r);
|
|
6705
6795
|
let a = i.render();
|
|
6706
6796
|
a && n.current.appendChild(a);
|
|
6707
|
-
}, [e, t]), /* @__PURE__ */ F("div", {
|
|
6708
|
-
|
|
6797
|
+
}, [e, t]), /* @__PURE__ */ F("div", {
|
|
6798
|
+
ref: n,
|
|
6799
|
+
role: "region",
|
|
6800
|
+
"aria-label": "Adaptive Card"
|
|
6801
|
+
});
|
|
6802
|
+
}, Hc = jr`
|
|
6709
6803
|
position: relative;
|
|
6710
6804
|
display: inline-block;
|
|
6711
6805
|
line-height: 0;
|
|
6712
6806
|
|
|
6713
|
-
`,
|
|
6807
|
+
`, Uc = jr`
|
|
6714
6808
|
display: block;
|
|
6715
|
-
`,
|
|
6809
|
+
`, Wc = jr`
|
|
6716
6810
|
position: absolute;
|
|
6717
6811
|
top: -1px;
|
|
6718
6812
|
right: -6px;
|
|
@@ -6736,42 +6830,42 @@ var Bc = (e) => {
|
|
|
6736
6830
|
box-shadow: ${V.shadow8};
|
|
6737
6831
|
background: ${V.colorBrandBackgroundHover};
|
|
6738
6832
|
}
|
|
6739
|
-
`,
|
|
6740
|
-
${
|
|
6833
|
+
`, Gc = jr`
|
|
6834
|
+
${Wc};
|
|
6741
6835
|
font-size: 9px;
|
|
6742
6836
|
padding: 2px 4px;
|
|
6743
6837
|
border-radius: 8px;
|
|
6744
6838
|
top: -2px;
|
|
6745
6839
|
right: -7px;
|
|
6746
|
-
`,
|
|
6747
|
-
${
|
|
6840
|
+
`, Kc = jr`
|
|
6841
|
+
${Wc};
|
|
6748
6842
|
font-size: 6px;
|
|
6749
6843
|
padding: 1px 2px;
|
|
6750
6844
|
border-radius: 4px;
|
|
6751
6845
|
top: 0px;
|
|
6752
6846
|
right: -4px;
|
|
6753
6847
|
letter-spacing: 0.1px;
|
|
6754
|
-
`,
|
|
6755
|
-
let i =
|
|
6756
|
-
${e >= 24 ?
|
|
6848
|
+
`, qc = ({ size: e = 20, className: t, color: n, aiIndicatorColor: r }) => {
|
|
6849
|
+
let i = jr`
|
|
6850
|
+
${e >= 24 ? Gc : e <= 16 ? Kc : Wc};
|
|
6757
6851
|
${r ? `
|
|
6758
6852
|
background: ${r};
|
|
6759
6853
|
border-color: ${r};
|
|
6760
6854
|
` : ""}
|
|
6761
|
-
`, a =
|
|
6762
|
-
${
|
|
6855
|
+
`, a = jr`
|
|
6856
|
+
${Uc};
|
|
6763
6857
|
font-size: ${e}px;
|
|
6764
6858
|
${n ? `color: ${n};` : "color: inherit;"}
|
|
6765
6859
|
`;
|
|
6766
|
-
return /* @__PURE__ */
|
|
6767
|
-
css: [
|
|
6768
|
-
children: [/* @__PURE__ */
|
|
6860
|
+
return /* @__PURE__ */ Nr("span", {
|
|
6861
|
+
css: [Hc, t && jr`${t}`],
|
|
6862
|
+
children: [/* @__PURE__ */ Mr(hr, { css: a }), /* @__PURE__ */ Mr("span", {
|
|
6769
6863
|
css: i,
|
|
6770
6864
|
children: "AI"
|
|
6771
6865
|
})]
|
|
6772
6866
|
});
|
|
6773
|
-
},
|
|
6774
|
-
searchBoxStyles:
|
|
6867
|
+
}, Jc = () => ({
|
|
6868
|
+
searchBoxStyles: jr`
|
|
6775
6869
|
border: 1px solid ${V.colorNeutralStroke2};
|
|
6776
6870
|
border-radius: 50px; /* Fully circular/pill shape */
|
|
6777
6871
|
background-color: ${V.colorNeutralBackground1};
|
|
@@ -6831,17 +6925,17 @@ var Bc = (e) => {
|
|
|
6831
6925
|
}
|
|
6832
6926
|
}
|
|
6833
6927
|
`,
|
|
6834
|
-
iconWrapperStyles:
|
|
6928
|
+
iconWrapperStyles: jr`
|
|
6835
6929
|
display: flex;
|
|
6836
6930
|
align-items: center;
|
|
6837
6931
|
padding: 2px;
|
|
6838
6932
|
margin-right: 8px;
|
|
6839
6933
|
`
|
|
6840
|
-
}),
|
|
6934
|
+
}), Yc = (e) => ({
|
|
6841
6935
|
generateText: async (e, t) => "Azure OpenAI not configured - please provide configuration",
|
|
6842
6936
|
isConfigured: !1
|
|
6843
|
-
}),
|
|
6844
|
-
let { error: l } = G(), u = _(), d = n || u.placeholder, { generateText: f, isConfigured: p } =
|
|
6937
|
+
}), 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 }) => {
|
|
6938
|
+
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
6939
|
if (!t.trim()) return;
|
|
6846
6940
|
if (!p) {
|
|
6847
6941
|
let e = u.notConfiguredError;
|
|
@@ -6856,7 +6950,7 @@ var Bc = (e) => {
|
|
|
6856
6950
|
r?.(t, n);
|
|
6857
6951
|
} catch (e) {
|
|
6858
6952
|
let t = e instanceof Error ? e.message : u.generationError;
|
|
6859
|
-
l("AISearchControl - Error generating AI search query: " +
|
|
6953
|
+
l("AISearchControl - Error generating AI search query: " + Xc({
|
|
6860
6954
|
operation: "handleAISearch",
|
|
6861
6955
|
userInput: n,
|
|
6862
6956
|
errorMessage: t,
|
|
@@ -6887,7 +6981,7 @@ var Bc = (e) => {
|
|
|
6887
6981
|
g,
|
|
6888
6982
|
r
|
|
6889
6983
|
]);
|
|
6890
|
-
return /* @__PURE__ */
|
|
6984
|
+
return /* @__PURE__ */ Mr(bt, {
|
|
6891
6985
|
ref: y,
|
|
6892
6986
|
css: b,
|
|
6893
6987
|
className: s,
|
|
@@ -6897,13 +6991,13 @@ var Bc = (e) => {
|
|
|
6897
6991
|
onChange: C,
|
|
6898
6992
|
onKeyDown: T,
|
|
6899
6993
|
disabled: o || m,
|
|
6900
|
-
contentBefore: /* @__PURE__ */
|
|
6994
|
+
contentBefore: /* @__PURE__ */ Mr("span", {
|
|
6901
6995
|
css: x,
|
|
6902
|
-
children: /* @__PURE__ */
|
|
6996
|
+
children: /* @__PURE__ */ Mr(qc, { size: 20 })
|
|
6903
6997
|
}),
|
|
6904
6998
|
dismiss: { onClick: w }
|
|
6905
6999
|
});
|
|
6906
|
-
},
|
|
7000
|
+
}, Qc = Ht({
|
|
6907
7001
|
container: {
|
|
6908
7002
|
display: "flex",
|
|
6909
7003
|
flexDirection: "column",
|
|
@@ -6940,8 +7034,8 @@ var Bc = (e) => {
|
|
|
6940
7034
|
overflow: "auto",
|
|
6941
7035
|
border: `1px solid ${V.colorNeutralStroke2}`
|
|
6942
7036
|
}
|
|
6943
|
-
}),
|
|
6944
|
-
let e =
|
|
7037
|
+
}), $c = () => {
|
|
7038
|
+
let e = Qc();
|
|
6945
7039
|
return /* @__PURE__ */ I("div", {
|
|
6946
7040
|
className: e.container,
|
|
6947
7041
|
children: [
|
|
@@ -6955,35 +7049,35 @@ var Bc = (e) => {
|
|
|
6955
7049
|
children: [/* @__PURE__ */ F("span", {
|
|
6956
7050
|
className: e.label,
|
|
6957
7051
|
children: "Small (16px):"
|
|
6958
|
-
}), /* @__PURE__ */ F(
|
|
7052
|
+
}), /* @__PURE__ */ F(qc, { size: 16 })]
|
|
6959
7053
|
}),
|
|
6960
7054
|
/* @__PURE__ */ I("div", {
|
|
6961
7055
|
className: e.iconRow,
|
|
6962
7056
|
children: [/* @__PURE__ */ F("span", {
|
|
6963
7057
|
className: e.label,
|
|
6964
7058
|
children: "Medium (20px):"
|
|
6965
|
-
}), /* @__PURE__ */ F(
|
|
7059
|
+
}), /* @__PURE__ */ F(qc, { size: 20 })]
|
|
6966
7060
|
}),
|
|
6967
7061
|
/* @__PURE__ */ I("div", {
|
|
6968
7062
|
className: e.iconRow,
|
|
6969
7063
|
children: [/* @__PURE__ */ F("span", {
|
|
6970
7064
|
className: e.label,
|
|
6971
7065
|
children: "Large (24px):"
|
|
6972
|
-
}), /* @__PURE__ */ F(
|
|
7066
|
+
}), /* @__PURE__ */ F(qc, { size: 24 })]
|
|
6973
7067
|
}),
|
|
6974
7068
|
/* @__PURE__ */ I("div", {
|
|
6975
7069
|
className: e.iconRow,
|
|
6976
7070
|
children: [/* @__PURE__ */ F("span", {
|
|
6977
7071
|
className: e.label,
|
|
6978
7072
|
children: "Extra Large (32px):"
|
|
6979
|
-
}), /* @__PURE__ */ F(
|
|
7073
|
+
}), /* @__PURE__ */ F(qc, { size: 32 })]
|
|
6980
7074
|
}),
|
|
6981
7075
|
/* @__PURE__ */ I("div", {
|
|
6982
7076
|
className: e.iconRow,
|
|
6983
7077
|
children: [/* @__PURE__ */ F("span", {
|
|
6984
7078
|
className: e.label,
|
|
6985
7079
|
children: "Custom Colors:"
|
|
6986
|
-
}), /* @__PURE__ */ F(
|
|
7080
|
+
}), /* @__PURE__ */ F(qc, {
|
|
6987
7081
|
size: 24,
|
|
6988
7082
|
color: V.colorPaletteBlueForeground2,
|
|
6989
7083
|
aiIndicatorColor: V.colorPaletteGreenForeground2
|
|
@@ -7002,7 +7096,7 @@ var Bc = (e) => {
|
|
|
7002
7096
|
children: "Primary Button:"
|
|
7003
7097
|
}), /* @__PURE__ */ F(R, {
|
|
7004
7098
|
appearance: "primary",
|
|
7005
|
-
icon: /* @__PURE__ */ F(
|
|
7099
|
+
icon: /* @__PURE__ */ F(qc, { size: 16 }),
|
|
7006
7100
|
children: "AI Search"
|
|
7007
7101
|
})]
|
|
7008
7102
|
}),
|
|
@@ -7013,7 +7107,7 @@ var Bc = (e) => {
|
|
|
7013
7107
|
children: "Secondary Button:"
|
|
7014
7108
|
}), /* @__PURE__ */ F(R, {
|
|
7015
7109
|
appearance: "secondary",
|
|
7016
|
-
icon: /* @__PURE__ */ F(
|
|
7110
|
+
icon: /* @__PURE__ */ F(qc, { size: 16 }),
|
|
7017
7111
|
children: "Smart Search"
|
|
7018
7112
|
})]
|
|
7019
7113
|
}),
|
|
@@ -7024,7 +7118,7 @@ var Bc = (e) => {
|
|
|
7024
7118
|
children: "Icon Only Button:"
|
|
7025
7119
|
}), /* @__PURE__ */ F(R, {
|
|
7026
7120
|
appearance: "subtle",
|
|
7027
|
-
icon: /* @__PURE__ */ F(
|
|
7121
|
+
icon: /* @__PURE__ */ F(qc, { size: 20 }),
|
|
7028
7122
|
title: "AI Search"
|
|
7029
7123
|
})]
|
|
7030
7124
|
})
|
|
@@ -7039,7 +7133,7 @@ var Bc = (e) => {
|
|
|
7039
7133
|
})
|
|
7040
7134
|
]
|
|
7041
7135
|
});
|
|
7042
|
-
},
|
|
7136
|
+
}, el = () => ({
|
|
7043
7137
|
container: H({
|
|
7044
7138
|
backgroundColor: V.colorNeutralBackground1,
|
|
7045
7139
|
border: "1px solid " + V.colorNeutralStroke1,
|
|
@@ -7086,11 +7180,13 @@ var Bc = (e) => {
|
|
|
7086
7180
|
minWidth: "36px !important",
|
|
7087
7181
|
minHeight: "36px !important"
|
|
7088
7182
|
})
|
|
7089
|
-
}),
|
|
7090
|
-
let s =
|
|
7183
|
+
}), tl = w.forwardRef(({ value: e, onChange: t, onSend: n, placeholder: r, isRunning: i, onAbort: a }, o) => {
|
|
7184
|
+
let s = el(), c = m(), l = r || c.typeAMessage, u = w.useCallback(() => {
|
|
7091
7185
|
let t = e.trim();
|
|
7092
7186
|
t.length > 0 && n(t);
|
|
7093
|
-
}, [e, n])
|
|
7187
|
+
}, [e, n]), d = (e) => {
|
|
7188
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), u());
|
|
7189
|
+
};
|
|
7094
7190
|
return /* @__PURE__ */ I(K, {
|
|
7095
7191
|
width: "100%",
|
|
7096
7192
|
className: s.container,
|
|
@@ -7098,33 +7194,34 @@ var Bc = (e) => {
|
|
|
7098
7194
|
ref: o,
|
|
7099
7195
|
className: s.textarea,
|
|
7100
7196
|
placeholder: l,
|
|
7197
|
+
"aria-label": l,
|
|
7101
7198
|
value: e,
|
|
7102
7199
|
onChange: (e) => t(e.target.value),
|
|
7103
|
-
onKeyDown:
|
|
7104
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), u());
|
|
7105
|
-
},
|
|
7200
|
+
onKeyDown: d,
|
|
7106
7201
|
rows: 3
|
|
7107
7202
|
}), /* @__PURE__ */ F(K, {
|
|
7108
7203
|
horizontal: !0,
|
|
7109
7204
|
horizontalAlign: "end",
|
|
7110
7205
|
width: "100%",
|
|
7111
|
-
children: i ? /* @__PURE__ */ F(
|
|
7206
|
+
children: i ? /* @__PURE__ */ F(go, {
|
|
7112
7207
|
icon: /* @__PURE__ */ F(pr, {}),
|
|
7113
7208
|
hoverIcon: /* @__PURE__ */ F(fr, {}),
|
|
7114
7209
|
width: 32,
|
|
7115
7210
|
height: 32,
|
|
7116
|
-
onClick: a
|
|
7117
|
-
|
|
7211
|
+
onClick: a,
|
|
7212
|
+
ariaLabel: "Stop generating"
|
|
7213
|
+
}) : /* @__PURE__ */ F(go, {
|
|
7118
7214
|
icon: /* @__PURE__ */ F(On, {}),
|
|
7119
7215
|
hoverIcon: /* @__PURE__ */ F(Dn, {}),
|
|
7120
7216
|
width: 32,
|
|
7121
7217
|
height: 32,
|
|
7122
7218
|
onClick: u,
|
|
7123
|
-
enabled: e.trim().length > 0
|
|
7219
|
+
enabled: e.trim().length > 0,
|
|
7220
|
+
ariaLabel: "Send message"
|
|
7124
7221
|
})
|
|
7125
7222
|
})]
|
|
7126
7223
|
});
|
|
7127
|
-
}),
|
|
7224
|
+
}), nl = () => ({
|
|
7128
7225
|
listContainer: H({
|
|
7129
7226
|
display: "grid",
|
|
7130
7227
|
gridTemplateColumns: "1fr",
|
|
@@ -7157,11 +7254,11 @@ var Bc = (e) => {
|
|
|
7157
7254
|
textAlign: "center",
|
|
7158
7255
|
color: V.colorNeutralForeground3
|
|
7159
7256
|
})
|
|
7160
|
-
}),
|
|
7161
|
-
let l =
|
|
7257
|
+
}), rl = ({ context: e, inputValue: t, parentRef: n, mentionChars: r, onUserSelect: i, theme: a, suggestionsHeader: o, maxSuggestions: s = 100, userFilter: c }) => {
|
|
7258
|
+
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
7259
|
top: 0,
|
|
7163
7260
|
left: 0
|
|
7164
|
-
}), [w, T] = N([]), [E, O] = N(""), [A, j] = N(""), P = M({}), L =
|
|
7261
|
+
}), [w, T] = N([]), [E, O] = N(""), [A, j] = N(""), P = M({}), L = nl(), ee = D(async (e) => {
|
|
7165
7262
|
if (!d) return _("Graph client not available"), [];
|
|
7166
7263
|
let t = `${e}_${s}`;
|
|
7167
7264
|
if (P.current[t]) return P.current[t];
|
|
@@ -7184,7 +7281,7 @@ var Bc = (e) => {
|
|
|
7184
7281
|
d,
|
|
7185
7282
|
f,
|
|
7186
7283
|
s
|
|
7187
|
-
]), te = D(
|
|
7284
|
+
]), te = D(la(async (e, t) => {
|
|
7188
7285
|
h("[debouncedFetch]: Fetching users for query:", e);
|
|
7189
7286
|
let n = await ee(e), r = c ? n.filter((t) => c(t, e)) : n;
|
|
7190
7287
|
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 +7297,7 @@ var Bc = (e) => {
|
|
|
7200
7297
|
left: 0
|
|
7201
7298
|
};
|
|
7202
7299
|
if (t.tagName === "TEXTAREA") {
|
|
7203
|
-
let n = t, r =
|
|
7300
|
+
let n = t, r = Di(n, e), i = n.getBoundingClientRect();
|
|
7204
7301
|
return {
|
|
7205
7302
|
top: i.top + r.top + 22,
|
|
7206
7303
|
left: i.left + r.left + 16
|
|
@@ -7242,6 +7339,8 @@ var Bc = (e) => {
|
|
|
7242
7339
|
i(e, E), b(!1), T([]);
|
|
7243
7340
|
}, ie = D(({ users: e }) => /* @__PURE__ */ I("div", {
|
|
7244
7341
|
className: L.listContainer,
|
|
7342
|
+
role: "listbox",
|
|
7343
|
+
"aria-label": "User suggestions",
|
|
7245
7344
|
children: [e.length === 0 && /* @__PURE__ */ I(pe, {
|
|
7246
7345
|
className: L.noResults,
|
|
7247
7346
|
children: [
|
|
@@ -7252,11 +7351,15 @@ var Bc = (e) => {
|
|
|
7252
7351
|
]
|
|
7253
7352
|
}), e.map((e) => /* @__PURE__ */ F(he, {
|
|
7254
7353
|
appearance: "subtle",
|
|
7354
|
+
role: "option",
|
|
7355
|
+
tabIndex: 0,
|
|
7255
7356
|
onMouseDown: (e) => e.preventDefault(),
|
|
7256
7357
|
onClick: () => re(e),
|
|
7358
|
+
onKeyDown: (t) => {
|
|
7359
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), re(e));
|
|
7360
|
+
},
|
|
7257
7361
|
children: /* @__PURE__ */ F(pt, {
|
|
7258
7362
|
name: e.displayName || m.unknownUser,
|
|
7259
|
-
role: "gridcell",
|
|
7260
7363
|
secondaryText: e.mail || e.userPrincipalName || "",
|
|
7261
7364
|
avatar: { image: { src: e.avatar } }
|
|
7262
7365
|
})
|
|
@@ -7266,7 +7369,7 @@ var Bc = (e) => {
|
|
|
7266
7369
|
A,
|
|
7267
7370
|
re
|
|
7268
7371
|
]);
|
|
7269
|
-
return /* @__PURE__ */ I(
|
|
7372
|
+
return /* @__PURE__ */ I(to, {
|
|
7270
7373
|
theme: a,
|
|
7271
7374
|
anchorPoint: x,
|
|
7272
7375
|
isOpen: y,
|
|
@@ -7281,7 +7384,7 @@ var Bc = (e) => {
|
|
|
7281
7384
|
/* @__PURE__ */ F(ie, { users: w })
|
|
7282
7385
|
]
|
|
7283
7386
|
});
|
|
7284
|
-
},
|
|
7387
|
+
}, il = ({ context: e }) => {
|
|
7285
7388
|
let [t, n] = N(""), [r, i] = N(""), a = M(null), o = M(null);
|
|
7286
7389
|
return /* @__PURE__ */ I(K, {
|
|
7287
7390
|
RowGap: 20,
|
|
@@ -7293,7 +7396,7 @@ var Bc = (e) => {
|
|
|
7293
7396
|
onChange: (e, t) => n(t.value),
|
|
7294
7397
|
placeholder: "Type @ to mention someone..."
|
|
7295
7398
|
}),
|
|
7296
|
-
/* @__PURE__ */ F(
|
|
7399
|
+
/* @__PURE__ */ F(rl, {
|
|
7297
7400
|
context: e,
|
|
7298
7401
|
inputValue: t,
|
|
7299
7402
|
parentRef: a,
|
|
@@ -7317,7 +7420,7 @@ var Bc = (e) => {
|
|
|
7317
7420
|
placeholder: "Type @ to mention someone or # for tags...",
|
|
7318
7421
|
rows: 4
|
|
7319
7422
|
}),
|
|
7320
|
-
/* @__PURE__ */ F(
|
|
7423
|
+
/* @__PURE__ */ F(rl, {
|
|
7321
7424
|
context: e,
|
|
7322
7425
|
inputValue: r,
|
|
7323
7426
|
parentRef: o,
|
|
@@ -7335,7 +7438,7 @@ var Bc = (e) => {
|
|
|
7335
7438
|
})
|
|
7336
7439
|
] })]
|
|
7337
7440
|
});
|
|
7338
|
-
},
|
|
7441
|
+
}, al = () => ({
|
|
7339
7442
|
inputContainer: H({
|
|
7340
7443
|
marginTop: "auto",
|
|
7341
7444
|
marginLeft: "auto",
|
|
@@ -7369,15 +7472,15 @@ var Bc = (e) => {
|
|
|
7369
7472
|
"::-webkit-scrollbar-thumb:hover": { background: V.colorNeutralStroke2 }
|
|
7370
7473
|
}),
|
|
7371
7474
|
sugestionsHeader: H({ color: V.colorBrandBackground })
|
|
7372
|
-
}),
|
|
7373
|
-
let [c, l] = N(n || ""), u = M(null), d =
|
|
7475
|
+
}), ol = ({ context: e, onChange: t, value: n, placeholder: r, onSend: i, theme: a = Zt, isRunning: o, onAbort: s }) => {
|
|
7476
|
+
let [c, l] = N(n || ""), u = M(null), d = al();
|
|
7374
7477
|
return k(() => {
|
|
7375
7478
|
u.current?.focus(), l(n || "");
|
|
7376
7479
|
}, [n]), /* @__PURE__ */ I(K, {
|
|
7377
7480
|
horizontal: !0,
|
|
7378
7481
|
width: "100%",
|
|
7379
7482
|
className: d.inputContainer,
|
|
7380
|
-
children: [/* @__PURE__ */ F(
|
|
7483
|
+
children: [/* @__PURE__ */ F(tl, {
|
|
7381
7484
|
ref: u,
|
|
7382
7485
|
onSend: i,
|
|
7383
7486
|
value: c,
|
|
@@ -7388,7 +7491,7 @@ var Bc = (e) => {
|
|
|
7388
7491
|
placeholder: r,
|
|
7389
7492
|
isRunning: o,
|
|
7390
7493
|
onAbort: s
|
|
7391
|
-
}), /* @__PURE__ */ F(
|
|
7494
|
+
}), /* @__PURE__ */ F(rl, {
|
|
7392
7495
|
context: e,
|
|
7393
7496
|
inputValue: c,
|
|
7394
7497
|
parentRef: u,
|
|
@@ -7404,7 +7507,7 @@ var Bc = (e) => {
|
|
|
7404
7507
|
maxSuggestions: 10
|
|
7405
7508
|
})]
|
|
7406
7509
|
});
|
|
7407
|
-
},
|
|
7510
|
+
}, sl = () => {
|
|
7408
7511
|
let e = V.colorBrandBackground, t = Cn`
|
|
7409
7512
|
0%, 80%, 100% {
|
|
7410
7513
|
opacity: 0;
|
|
@@ -7441,17 +7544,19 @@ var Bc = (e) => {
|
|
|
7441
7544
|
animation-delay: 0.4s;
|
|
7442
7545
|
`
|
|
7443
7546
|
};
|
|
7444
|
-
},
|
|
7445
|
-
let e =
|
|
7547
|
+
}, cl = () => {
|
|
7548
|
+
let e = sl();
|
|
7446
7549
|
return /* @__PURE__ */ I("div", {
|
|
7447
7550
|
className: e.root,
|
|
7551
|
+
role: "status",
|
|
7552
|
+
"aria-label": "Loading response",
|
|
7448
7553
|
children: [
|
|
7449
7554
|
/* @__PURE__ */ F("div", { className: `${e.dot} ${e.dot1}` }),
|
|
7450
7555
|
/* @__PURE__ */ F("div", { className: `${e.dot} ${e.dot2}` }),
|
|
7451
7556
|
/* @__PURE__ */ F("div", { className: `${e.dot} ${e.dot3}` })
|
|
7452
7557
|
]
|
|
7453
7558
|
});
|
|
7454
|
-
},
|
|
7559
|
+
}, ll = (e, t) => {
|
|
7455
7560
|
switch (t.type) {
|
|
7456
7561
|
case "INIT": return {
|
|
7457
7562
|
...e,
|
|
@@ -7491,7 +7596,7 @@ var Bc = (e) => {
|
|
|
7491
7596
|
};
|
|
7492
7597
|
default: return e;
|
|
7493
7598
|
}
|
|
7494
|
-
},
|
|
7599
|
+
}, ul = () => ({ markdown: H({
|
|
7495
7600
|
fontFamily: V.fontFamilyBase,
|
|
7496
7601
|
fontSize: V.fontSizeBase300,
|
|
7497
7602
|
lineHeight: V.lineHeightBase300,
|
|
@@ -7571,10 +7676,10 @@ var Bc = (e) => {
|
|
|
7571
7676
|
marginTop: V.spacingVerticalL,
|
|
7572
7677
|
marginBottom: V.spacingVerticalL
|
|
7573
7678
|
}
|
|
7574
|
-
}) }),
|
|
7575
|
-
let n =
|
|
7679
|
+
}) }), dl = ({ content: e, className: t }) => {
|
|
7680
|
+
let n = ul(), [r, i] = w.useState("");
|
|
7576
7681
|
return w.useEffect(() => {
|
|
7577
|
-
i(new
|
|
7682
|
+
i(new hi({
|
|
7578
7683
|
html: !1,
|
|
7579
7684
|
linkify: !0,
|
|
7580
7685
|
typographer: !0,
|
|
@@ -7582,9 +7687,9 @@ var Bc = (e) => {
|
|
|
7582
7687
|
}).render(e));
|
|
7583
7688
|
}, [e]), /* @__PURE__ */ F("div", {
|
|
7584
7689
|
className: `${n.markdown} ${t || ""}`,
|
|
7585
|
-
dangerouslySetInnerHTML: { __html: r }
|
|
7690
|
+
dangerouslySetInnerHTML: { __html: ji.sanitize(r) }
|
|
7586
7691
|
});
|
|
7587
|
-
},
|
|
7692
|
+
}, fl = Ht({
|
|
7588
7693
|
plainText: {
|
|
7589
7694
|
fontFamily: V.fontFamilyBase,
|
|
7590
7695
|
fontSize: V.fontSizeBase300,
|
|
@@ -7633,11 +7738,11 @@ var Bc = (e) => {
|
|
|
7633
7738
|
color: V.colorNeutralForeground2
|
|
7634
7739
|
},
|
|
7635
7740
|
adaptiveCardWrapper: { width: "100%" }
|
|
7636
|
-
}),
|
|
7637
|
-
let l =
|
|
7741
|
+
}), pl = ({ content: e, forceType: t, onTypeDetected: n, context: r, theme: i = cc.SharePoint, fluentTheme: a, onAdaptiveCardAction: o, className: s, debug: c = !1 }) => {
|
|
7742
|
+
let l = fl(), { error: u } = G(), [d, f] = w.useState(null);
|
|
7638
7743
|
if (w.useEffect(() => {
|
|
7639
7744
|
if (w.isValidElement(e) || typeof e != "string" && typeof e != "object") return;
|
|
7640
|
-
let t =
|
|
7745
|
+
let t = Oa(e);
|
|
7641
7746
|
f(t), n && n(t);
|
|
7642
7747
|
}, [e, n]), w.isValidElement(e)) return /* @__PURE__ */ F(P, { children: e });
|
|
7643
7748
|
let p = t || d?.type, m = d?.content || e;
|
|
@@ -7652,17 +7757,17 @@ var Bc = (e) => {
|
|
|
7652
7757
|
]
|
|
7653
7758
|
}), (() => {
|
|
7654
7759
|
switch (p) {
|
|
7655
|
-
case
|
|
7760
|
+
case Sa.MARKDOWN: return /* @__PURE__ */ F(dl, {
|
|
7656
7761
|
content: m,
|
|
7657
7762
|
className: s
|
|
7658
7763
|
});
|
|
7659
|
-
case
|
|
7764
|
+
case Sa.HTML: return /* @__PURE__ */ F("div", {
|
|
7660
7765
|
className: ` ${s || ""}`,
|
|
7661
|
-
dangerouslySetInnerHTML: { __html: m }
|
|
7766
|
+
dangerouslySetInnerHTML: { __html: ji.sanitize(m) }
|
|
7662
7767
|
});
|
|
7663
|
-
case
|
|
7768
|
+
case Sa.ADAPTIVE_CARD: return /* @__PURE__ */ F("div", {
|
|
7664
7769
|
className: `${l.adaptiveCardWrapper} ${s || ""}`,
|
|
7665
|
-
children: /* @__PURE__ */ F(
|
|
7770
|
+
children: /* @__PURE__ */ F(Bc, {
|
|
7666
7771
|
card: typeof m == "string" ? JSON.parse(m) : m,
|
|
7667
7772
|
context: r,
|
|
7668
7773
|
theme: a,
|
|
@@ -7671,55 +7776,59 @@ var Bc = (e) => {
|
|
|
7671
7776
|
onError: (e) => u("Adaptive Card Error:", e instanceof Error ? e : void 0)
|
|
7672
7777
|
})
|
|
7673
7778
|
});
|
|
7674
|
-
case
|
|
7779
|
+
case Sa.PLAIN_TEXT:
|
|
7675
7780
|
default: return /* @__PURE__ */ F("div", {
|
|
7676
7781
|
className: `${l.plainText} ${s || ""}`,
|
|
7677
7782
|
children: m
|
|
7678
7783
|
});
|
|
7679
7784
|
}
|
|
7680
7785
|
})()] });
|
|
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
|
|
7786
|
+
}, ml = w.forwardRef((e, t) => {
|
|
7787
|
+
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({
|
|
7788
|
+
flex: "1 1 0",
|
|
7789
|
+
overflowY: "auto",
|
|
7790
|
+
overflowX: "hidden",
|
|
7791
|
+
padding: "16px",
|
|
7792
|
+
paddingRight: "25px",
|
|
7793
|
+
"::-webkit-scrollbar": { width: "6px" },
|
|
7794
|
+
"::-webkit-scrollbar-track": {
|
|
7795
|
+
background: V.colorNeutralBackground4,
|
|
7796
|
+
borderRadius: "10px"
|
|
7797
|
+
},
|
|
7798
|
+
"::-webkit-scrollbar-thumb": {
|
|
7799
|
+
background: V.colorBrandStroke2Hover,
|
|
7800
|
+
borderRadius: "10px"
|
|
7801
|
+
},
|
|
7802
|
+
"::-webkit-scrollbar-thumb:hover": { background: V.colorNeutralStroke2 }
|
|
7803
|
+
}), o = H({
|
|
7804
|
+
display: "flex",
|
|
7805
|
+
flexDirection: "column",
|
|
7806
|
+
gap: "10px",
|
|
7807
|
+
paddingRight: "30px"
|
|
7808
|
+
});
|
|
7683
7809
|
return /* @__PURE__ */ F("div", {
|
|
7684
7810
|
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, {
|
|
7811
|
+
className: a,
|
|
7812
|
+
role: "log",
|
|
7813
|
+
"aria-live": "polite",
|
|
7814
|
+
"aria-label": "Chat history",
|
|
7815
|
+
children: /* @__PURE__ */ F(Oi, {
|
|
7816
|
+
className: o,
|
|
7817
|
+
children: n.map((e, t) => e.senderName === "User" ? /* @__PURE__ */ F(Ai, {
|
|
7710
7818
|
status: e.status,
|
|
7711
7819
|
author: e.senderName,
|
|
7712
7820
|
children: i(e.message)
|
|
7713
|
-
}, t) : /* @__PURE__ */ F(
|
|
7821
|
+
}, t) : /* @__PURE__ */ F(ki, {
|
|
7714
7822
|
decoration: e.status === "failed" ? "important" : void 0,
|
|
7715
|
-
avatar: /* @__PURE__ */ F(
|
|
7823
|
+
avatar: /* @__PURE__ */ F(Dr, {
|
|
7716
7824
|
icon: "carbon:ibm-consulting-advantage-assistant",
|
|
7717
7825
|
width: "32",
|
|
7718
7826
|
height: "32",
|
|
7827
|
+
"aria-hidden": "true",
|
|
7719
7828
|
style: { color: V.colorBrandBackground }
|
|
7720
7829
|
}),
|
|
7721
7830
|
author: e.senderName,
|
|
7722
|
-
children: /* @__PURE__ */ F(
|
|
7831
|
+
children: /* @__PURE__ */ F(pl, {
|
|
7723
7832
|
content: i(e.message),
|
|
7724
7833
|
context: r
|
|
7725
7834
|
})
|
|
@@ -7727,10 +7836,10 @@ var Bc = (e) => {
|
|
|
7727
7836
|
})
|
|
7728
7837
|
});
|
|
7729
7838
|
});
|
|
7730
|
-
|
|
7839
|
+
ml.displayName = "ChatList";
|
|
7731
7840
|
//#endregion
|
|
7732
7841
|
//#region src/components/aiAssistant/useAIAssistantStyles.ts
|
|
7733
|
-
var
|
|
7842
|
+
var hl = () => ({
|
|
7734
7843
|
container: H({
|
|
7735
7844
|
display: "flex",
|
|
7736
7845
|
flexDirection: "column",
|
|
@@ -7798,17 +7907,17 @@ var gl = () => ({
|
|
|
7798
7907
|
backgroundColor: V.colorNeutralBackground1,
|
|
7799
7908
|
boxSizing: "border-box"
|
|
7800
7909
|
})
|
|
7801
|
-
}),
|
|
7802
|
-
let { getFormatRelative: n } =
|
|
7910
|
+
}), gl = (e, t) => {
|
|
7911
|
+
let { getFormatRelative: n } = ia(e, t);
|
|
7803
7912
|
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(
|
|
7913
|
+
}, _l = (e) => {
|
|
7914
|
+
let { instrutions: t, timezone: n, locale: r, onResponse: i, openAIConfig: a, theme: o, placeholder: s, context: c } = e, [l, u] = w.useReducer(ll, {
|
|
7806
7915
|
messages: [],
|
|
7807
7916
|
inputText: "",
|
|
7808
7917
|
isLoading: !0,
|
|
7809
7918
|
error: void 0,
|
|
7810
7919
|
isRunning: !1
|
|
7811
|
-
}), { messages: d, inputText: f, isLoading: p, error: h, isRunning: g } = l, _ = w.useRef([]), v = w.useRef(null), y =
|
|
7920
|
+
}), { 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
7921
|
endpoint: a?.endpoint,
|
|
7813
7922
|
mcpServers: a?.mcpServers,
|
|
7814
7923
|
requestHeaders: a?.requestHeaders
|
|
@@ -7826,7 +7935,7 @@ var gl = () => ({
|
|
|
7826
7935
|
welcomeMessage: {
|
|
7827
7936
|
message: "Welcome to AI Assistant! How can I help you today?",
|
|
7828
7937
|
senderName: "Assistant",
|
|
7829
|
-
timeStamp:
|
|
7938
|
+
timeStamp: gl(n, c?.pageContext?.cultureInfo?.currentUICultureName || "en-US"),
|
|
7830
7939
|
status: "received"
|
|
7831
7940
|
}
|
|
7832
7941
|
});
|
|
@@ -7836,7 +7945,7 @@ var gl = () => ({
|
|
|
7836
7945
|
let e = {
|
|
7837
7946
|
message: f,
|
|
7838
7947
|
senderName: "User",
|
|
7839
|
-
timeStamp:
|
|
7948
|
+
timeStamp: gl(n, c?.pageContext?.cultureInfo?.currentUICultureName || "en-US"),
|
|
7840
7949
|
status: "received"
|
|
7841
7950
|
}, o = f;
|
|
7842
7951
|
u({
|
|
@@ -7844,9 +7953,9 @@ var gl = () => ({
|
|
|
7844
7953
|
message: e
|
|
7845
7954
|
}), u({ type: "CLEAR_INPUT" }), u({ type: "SET_IS_RUNNING" });
|
|
7846
7955
|
let s = {
|
|
7847
|
-
message: /* @__PURE__ */ F(
|
|
7956
|
+
message: /* @__PURE__ */ F(cl, {}),
|
|
7848
7957
|
senderName: "Assistant",
|
|
7849
|
-
timeStamp:
|
|
7958
|
+
timeStamp: gl(n, c?.pageContext?.cultureInfo?.currentUICultureName || "en-US"),
|
|
7850
7959
|
status: "sending"
|
|
7851
7960
|
};
|
|
7852
7961
|
u({
|
|
@@ -7909,18 +8018,18 @@ var gl = () => ({
|
|
|
7909
8018
|
inputText: e
|
|
7910
8019
|
});
|
|
7911
8020
|
}, []);
|
|
7912
|
-
return p ? /* @__PURE__ */ F(wt, { size: "medium" }) : h ? /* @__PURE__ */ F(
|
|
8021
|
+
return p ? /* @__PURE__ */ F(wt, { size: "medium" }) : h ? /* @__PURE__ */ F(Is, {
|
|
7913
8022
|
message: b.processingError,
|
|
7914
|
-
messageType:
|
|
8023
|
+
messageType: Fi.INFO
|
|
7915
8024
|
}) : /* @__PURE__ */ I("div", {
|
|
7916
8025
|
className: y.aiAssistantContainer,
|
|
7917
|
-
children: [/* @__PURE__ */ F(
|
|
8026
|
+
children: [/* @__PURE__ */ F(ml, {
|
|
7918
8027
|
ref: v,
|
|
7919
8028
|
messages: d,
|
|
7920
8029
|
context: c
|
|
7921
8030
|
}), /* @__PURE__ */ F("div", {
|
|
7922
8031
|
className: y.aiAssistantInputContainer,
|
|
7923
|
-
children: /* @__PURE__ */ F(
|
|
8032
|
+
children: /* @__PURE__ */ F(ol, {
|
|
7924
8033
|
context: c,
|
|
7925
8034
|
value: f,
|
|
7926
8035
|
onChange: D,
|
|
@@ -7932,11 +8041,11 @@ var gl = () => ({
|
|
|
7932
8041
|
})
|
|
7933
8042
|
})]
|
|
7934
8043
|
});
|
|
7935
|
-
},
|
|
8044
|
+
}, vl = ({ context: e, onChange: t, value: n, placeholder: r, onSend: i, theme: a, isRunning: o, onAbort: s }) => {
|
|
7936
8045
|
let [c, l] = N(n || ""), [u, d] = N(!1), f = M(null), p = m(), [h, g] = N({
|
|
7937
8046
|
top: 0,
|
|
7938
8047
|
left: 0
|
|
7939
|
-
}), [_, v] = N([]), y = M({}), b =
|
|
8048
|
+
}), [_, v] = N([]), y = M({}), b = al(), { warn: x, error: S } = G();
|
|
7940
8049
|
T.useEffect(() => {
|
|
7941
8050
|
f.current?.focus(), l(n || "");
|
|
7942
8051
|
}, [n]);
|
|
@@ -7951,7 +8060,7 @@ var gl = () => ({
|
|
|
7951
8060
|
} catch (e) {
|
|
7952
8061
|
return S("Error fetching users from Graph:", e instanceof Error ? e : void 0), [];
|
|
7953
8062
|
}
|
|
7954
|
-
}, w = D(
|
|
8063
|
+
}, w = D(la(async (e) => {
|
|
7955
8064
|
let t = await C(e);
|
|
7956
8065
|
t.sort((e, t) => e.displayName.localeCompare(t.displayName)), v(t), d(!0), setTimeout(() => {
|
|
7957
8066
|
f.current?.focus();
|
|
@@ -7963,7 +8072,7 @@ var gl = () => ({
|
|
|
7963
8072
|
await w(e.slice(n + 1));
|
|
7964
8073
|
let t = f.current;
|
|
7965
8074
|
if (t) {
|
|
7966
|
-
let e =
|
|
8075
|
+
let e = Di(t, n), r = t.getBoundingClientRect();
|
|
7967
8076
|
g({
|
|
7968
8077
|
top: r.top + e.top + 22,
|
|
7969
8078
|
left: r.left + e.left + 16
|
|
@@ -7992,7 +8101,7 @@ var gl = () => ({
|
|
|
7992
8101
|
horizontal: !0,
|
|
7993
8102
|
width: "100%",
|
|
7994
8103
|
className: b.inputContainer,
|
|
7995
|
-
children: [/* @__PURE__ */ F(
|
|
8104
|
+
children: [/* @__PURE__ */ F(tl, {
|
|
7996
8105
|
ref: f,
|
|
7997
8106
|
onSend: i,
|
|
7998
8107
|
value: c,
|
|
@@ -8001,7 +8110,7 @@ var gl = () => ({
|
|
|
8001
8110
|
placeholder: r,
|
|
8002
8111
|
isRunning: o,
|
|
8003
8112
|
onAbort: s
|
|
8004
|
-
}), /* @__PURE__ */ I(
|
|
8113
|
+
}), /* @__PURE__ */ I(to, {
|
|
8005
8114
|
theme: a,
|
|
8006
8115
|
anchorPoint: h,
|
|
8007
8116
|
isOpen: u,
|
|
@@ -8017,7 +8126,7 @@ var gl = () => ({
|
|
|
8017
8126
|
]
|
|
8018
8127
|
})]
|
|
8019
8128
|
});
|
|
8020
|
-
},
|
|
8129
|
+
}, yl = () => ({
|
|
8021
8130
|
inputContainer: H({
|
|
8022
8131
|
marginTop: "auto",
|
|
8023
8132
|
marginLeft: "auto",
|
|
@@ -8051,7 +8160,7 @@ var gl = () => ({
|
|
|
8051
8160
|
"::-webkit-scrollbar-thumb:hover": { background: V.colorNeutralStroke2 }
|
|
8052
8161
|
}),
|
|
8053
8162
|
sugestionsHeader: H({ color: V.colorBrandBackground })
|
|
8054
|
-
}),
|
|
8163
|
+
}), bl = (e) => {
|
|
8055
8164
|
let { width: t, height: n, zoomable: r = !1 } = e;
|
|
8056
8165
|
return {
|
|
8057
8166
|
root: H({
|
|
@@ -8069,7 +8178,7 @@ var gl = () => ({
|
|
|
8069
8178
|
fontSize: V.fontSizeBase300
|
|
8070
8179
|
})
|
|
8071
8180
|
};
|
|
8072
|
-
},
|
|
8181
|
+
}, xl = 0, Sl = (e) => {
|
|
8073
8182
|
let [t, n] = w.useState(!1);
|
|
8074
8183
|
return w.useEffect(() => {
|
|
8075
8184
|
let t = e.current;
|
|
@@ -8080,8 +8189,8 @@ var gl = () => ({
|
|
|
8080
8189
|
n(.299 * e + .587 * t + .114 * i < 128);
|
|
8081
8190
|
}
|
|
8082
8191
|
}), 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 =
|
|
8192
|
+
}, Cl = (e) => {
|
|
8193
|
+
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
8194
|
w.useEffect(() => {
|
|
8086
8195
|
if (t) {
|
|
8087
8196
|
E(t), x(null);
|
|
@@ -8113,7 +8222,7 @@ var gl = () => ({
|
|
|
8113
8222
|
y(null);
|
|
8114
8223
|
return;
|
|
8115
8224
|
}
|
|
8116
|
-
let e = !1, t = `mermaid-diagram-${++
|
|
8225
|
+
let e = !1, t = `mermaid-diagram-${++xl}`;
|
|
8117
8226
|
return Mi.initialize({
|
|
8118
8227
|
startOnLoad: !1,
|
|
8119
8228
|
theme: _,
|
|
@@ -8179,7 +8288,7 @@ var gl = () => ({
|
|
|
8179
8288
|
});
|
|
8180
8289
|
}, [T]), w.useEffect(() => {
|
|
8181
8290
|
let e = h.current;
|
|
8182
|
-
e && (e.innerHTML = v ?? "");
|
|
8291
|
+
e && (e.innerHTML = v ?? "", e.setAttribute("role", "img"), e.setAttribute("aria-label", "Mermaid diagram"));
|
|
8183
8292
|
}, [v]);
|
|
8184
8293
|
let ee = [f.root, a].filter(Boolean).join(" ");
|
|
8185
8294
|
if (S) return /* @__PURE__ */ F(J, {
|
|
@@ -8194,7 +8303,7 @@ var gl = () => ({
|
|
|
8194
8303
|
alignItems: "center",
|
|
8195
8304
|
justifyContent: "center",
|
|
8196
8305
|
padding: "xxl",
|
|
8197
|
-
children: u ?? /* @__PURE__ */ F(
|
|
8306
|
+
children: u ?? /* @__PURE__ */ F(ao, {
|
|
8198
8307
|
size: "small",
|
|
8199
8308
|
label: D
|
|
8200
8309
|
})
|
|
@@ -8207,9 +8316,9 @@ var gl = () => ({
|
|
|
8207
8316
|
justifyContent: "center",
|
|
8208
8317
|
overflow: "hidden",
|
|
8209
8318
|
background: i,
|
|
8210
|
-
children: d ? d(b) : /* @__PURE__ */ F(
|
|
8319
|
+
children: d ? d(b) : /* @__PURE__ */ F(Is, {
|
|
8211
8320
|
message: O,
|
|
8212
|
-
messageType:
|
|
8321
|
+
messageType: Fi.ERROR
|
|
8213
8322
|
})
|
|
8214
8323
|
});
|
|
8215
8324
|
if (!v) return /* @__PURE__ */ F(J, {
|
|
@@ -8248,17 +8357,17 @@ var gl = () => ({
|
|
|
8248
8357
|
children: /* @__PURE__ */ F(P, {})
|
|
8249
8358
|
})
|
|
8250
8359
|
});
|
|
8251
|
-
},
|
|
8360
|
+
}, wl = (e) => {
|
|
8252
8361
|
let { template: t } = e;
|
|
8253
8362
|
return /* @__PURE__ */ F(P, { children: t });
|
|
8254
|
-
},
|
|
8363
|
+
}, Tl = () => ({
|
|
8255
8364
|
toolbar: H`
|
|
8256
8365
|
display: flex !important;
|
|
8257
8366
|
flex-wrap: nowrap !important;
|
|
8258
8367
|
align-items: center !important;
|
|
8259
8368
|
padding: ${V.spacingVerticalS} ${V.spacingHorizontalM};
|
|
8260
8369
|
background-color: ${V.colorNeutralBackground1};
|
|
8261
|
-
|
|
8370
|
+
|
|
8262
8371
|
min-height: 48px;
|
|
8263
8372
|
gap: ${V.spacingHorizontalXS};
|
|
8264
8373
|
white-space: nowrap;
|
|
@@ -8330,7 +8439,7 @@ var gl = () => ({
|
|
|
8330
8439
|
display: none;
|
|
8331
8440
|
}
|
|
8332
8441
|
`
|
|
8333
|
-
}),
|
|
8442
|
+
}), El = [
|
|
8334
8443
|
{
|
|
8335
8444
|
minWidth: 1280,
|
|
8336
8445
|
gap: 100
|
|
@@ -8352,11 +8461,11 @@ var gl = () => ({
|
|
|
8352
8461
|
gap: 12
|
|
8353
8462
|
}
|
|
8354
8463
|
];
|
|
8355
|
-
function
|
|
8356
|
-
for (let t of
|
|
8357
|
-
return
|
|
8464
|
+
function Dl(e) {
|
|
8465
|
+
for (let t of El) if (e > t.minWidth) return t.gap;
|
|
8466
|
+
return El[El.length - 1].gap;
|
|
8358
8467
|
}
|
|
8359
|
-
function
|
|
8468
|
+
function Ol(e, t, n, r, i = 48) {
|
|
8360
8469
|
let [a, o] = w.useState(r);
|
|
8361
8470
|
return w.useEffect(() => {
|
|
8362
8471
|
let a = e.current, s = t.current, c = n.current;
|
|
@@ -8364,7 +8473,7 @@ function kl(e, t, n, r, i = 48) {
|
|
|
8364
8473
|
let l = () => {
|
|
8365
8474
|
let e = a.offsetWidth;
|
|
8366
8475
|
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 =
|
|
8476
|
+
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
8477
|
if (m <= 0) return;
|
|
8369
8478
|
let h = Array.from(c.children);
|
|
8370
8479
|
if (h.length === 0) {
|
|
@@ -8398,7 +8507,7 @@ function kl(e, t, n, r, i = 48) {
|
|
|
8398
8507
|
}
|
|
8399
8508
|
//#endregion
|
|
8400
8509
|
//#region src/components/ListToolbar/ToolbarItemRenderer.tsx
|
|
8401
|
-
var
|
|
8510
|
+
var kl = ({ item: e, isLoading: t, itemClass: n, labelClass: r }) => {
|
|
8402
8511
|
if (e.visible === !1) return null;
|
|
8403
8512
|
if (e.onRender) return e.onRender();
|
|
8404
8513
|
let i = r ? /* @__PURE__ */ F("span", {
|
|
@@ -8428,7 +8537,7 @@ var Al = ({ item: e, isLoading: t, itemClass: n, labelClass: r }) => {
|
|
|
8428
8537
|
};
|
|
8429
8538
|
//#endregion
|
|
8430
8539
|
//#region src/components/ListToolbar/helpers.ts
|
|
8431
|
-
function
|
|
8540
|
+
function Al(e) {
|
|
8432
8541
|
let t = /* @__PURE__ */ new Map();
|
|
8433
8542
|
for (let n of e) {
|
|
8434
8543
|
let e = n.group || "default";
|
|
@@ -8436,8 +8545,8 @@ function jl(e) {
|
|
|
8436
8545
|
}
|
|
8437
8546
|
return t;
|
|
8438
8547
|
}
|
|
8439
|
-
function
|
|
8440
|
-
let n = [], r =
|
|
8548
|
+
function jl(e, t) {
|
|
8549
|
+
let n = [], r = Al(e), i = Array.from(r.entries());
|
|
8441
8550
|
for (let e = 0; e < i.length; e++) {
|
|
8442
8551
|
let [, r] = i[e], a = e === i.length - 1;
|
|
8443
8552
|
for (let e of r) e.dividerBefore && n.push({
|
|
@@ -8460,17 +8569,17 @@ function Ml(e, t) {
|
|
|
8460
8569
|
}
|
|
8461
8570
|
//#endregion
|
|
8462
8571
|
//#region src/components/ListToolbar/ListToolbar.tsx
|
|
8463
|
-
var
|
|
8464
|
-
let s =
|
|
8572
|
+
var Ml = ({ items: e, farItems: t = [], isLoading: n = !1, ariaLabel: r = "Toolbar", totalCount: i, className: a, showGroupDividers: o = !0 }) => {
|
|
8573
|
+
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
8574
|
let n = e.filter((e) => e.isFarItem && e.visible !== !1), r = t.filter((e) => e.visible !== !1);
|
|
8466
8575
|
return [...n, ...r];
|
|
8467
|
-
}, [e, t]), m = w.useMemo(() =>
|
|
8576
|
+
}, [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
8577
|
let e = /* @__PURE__ */ new Set();
|
|
8469
8578
|
for (let t = 0; t < g && t < h.length; t++) h[t].type === "item" && e.add(h[t].key);
|
|
8470
8579
|
return e;
|
|
8471
8580
|
}, [h, g]), v = w.useMemo(() => f.filter((e) => !_.has(e.key)), [f, _]), y = v.length > 0, b = (e, t, r) => {
|
|
8472
8581
|
let i = [];
|
|
8473
|
-
for (let t of e) t.dividerBefore && i.push(/* @__PURE__ */ F(zt, {}, `${t.key}-divider-before`)), i.push(/* @__PURE__ */ F(
|
|
8582
|
+
for (let t of e) t.dividerBefore && i.push(/* @__PURE__ */ F(zt, {}, `${t.key}-divider-before`)), i.push(/* @__PURE__ */ F(kl, {
|
|
8474
8583
|
item: t,
|
|
8475
8584
|
isLoading: n,
|
|
8476
8585
|
itemClass: s.farItemButton,
|
|
@@ -8488,7 +8597,7 @@ var Nl = ({ items: e, farItems: t = [], isLoading: n = !1, ariaLabel: r = "Toolb
|
|
|
8488
8597
|
ref: d,
|
|
8489
8598
|
className: s.measureSection,
|
|
8490
8599
|
"aria-hidden": "true",
|
|
8491
|
-
children: h.map((e) => e.type === "divider" ? /* @__PURE__ */ F(zt, {}, e.key) : /* @__PURE__ */ F(
|
|
8600
|
+
children: h.map((e) => e.type === "divider" ? /* @__PURE__ */ F(zt, {}, e.key) : /* @__PURE__ */ F(kl, {
|
|
8492
8601
|
item: e.item,
|
|
8493
8602
|
isLoading: n,
|
|
8494
8603
|
itemClass: s.toolbarItem
|
|
@@ -8498,7 +8607,7 @@ var Nl = ({ items: e, farItems: t = [], isLoading: n = !1, ariaLabel: r = "Toolb
|
|
|
8498
8607
|
ref: l,
|
|
8499
8608
|
className: s.leftSection,
|
|
8500
8609
|
children: [
|
|
8501
|
-
h.map((e, t) => t >= g ? null : e.type === "divider" ? /* @__PURE__ */ F(zt, {}, e.key) : /* @__PURE__ */ F(
|
|
8610
|
+
h.map((e, t) => t >= g ? null : e.type === "divider" ? /* @__PURE__ */ F(zt, {}, e.key) : /* @__PURE__ */ F(kl, {
|
|
8502
8611
|
item: e.item,
|
|
8503
8612
|
isLoading: n,
|
|
8504
8613
|
itemClass: s.toolbarItem
|
|
@@ -8541,7 +8650,7 @@ var Nl = ({ items: e, farItems: t = [], isLoading: n = !1, ariaLabel: r = "Toolb
|
|
|
8541
8650
|
})
|
|
8542
8651
|
]
|
|
8543
8652
|
});
|
|
8544
|
-
},
|
|
8653
|
+
}, Nl = () => ({
|
|
8545
8654
|
root: H({
|
|
8546
8655
|
display: "flex",
|
|
8547
8656
|
flexDirection: "row",
|
|
@@ -8581,15 +8690,15 @@ var Nl = ({ items: e, farItems: t = [], isLoading: n = !1, ariaLabel: r = "Toolb
|
|
|
8581
8690
|
alignItems: "center",
|
|
8582
8691
|
width: "100%"
|
|
8583
8692
|
})
|
|
8584
|
-
}),
|
|
8693
|
+
}), Pl = 6e4, Fl = /* @__PURE__ */ new Map(), Il = 300 * 1e3, Ll = 120 * 1e3;
|
|
8585
8694
|
setInterval(() => {
|
|
8586
8695
|
let e = Date.now(), t = [];
|
|
8587
|
-
|
|
8696
|
+
Fl.forEach((n, r) => {
|
|
8588
8697
|
e > n.expiresAt && t.push(r);
|
|
8589
|
-
}), t.forEach((e) =>
|
|
8698
|
+
}), t.forEach((e) => Fl.delete(e));
|
|
8590
8699
|
}, 600 * 1e3);
|
|
8591
|
-
var
|
|
8592
|
-
let n =
|
|
8700
|
+
var Rl = (e, t) => {
|
|
8701
|
+
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
8702
|
if (!r) return a("Graph client not available"), null;
|
|
8594
8703
|
try {
|
|
8595
8704
|
return await r.get(`/users/${e}`);
|
|
@@ -8623,7 +8732,7 @@ var zl = (e, t) => {
|
|
|
8623
8732
|
u(!1);
|
|
8624
8733
|
return;
|
|
8625
8734
|
}
|
|
8626
|
-
let t =
|
|
8735
|
+
let t = Fl.get(e), n = Date.now();
|
|
8627
8736
|
if (t && n < t.expiresAt) {
|
|
8628
8737
|
c(t.data), u(!1);
|
|
8629
8738
|
return;
|
|
@@ -8656,10 +8765,10 @@ var zl = (e, t) => {
|
|
|
8656
8765
|
presence: r,
|
|
8657
8766
|
userPhoto: a
|
|
8658
8767
|
};
|
|
8659
|
-
|
|
8768
|
+
Fl.set(e, {
|
|
8660
8769
|
data: o,
|
|
8661
8770
|
timestamp: n,
|
|
8662
|
-
expiresAt: n +
|
|
8771
|
+
expiresAt: n + Il
|
|
8663
8772
|
}), c(o);
|
|
8664
8773
|
} catch (e) {
|
|
8665
8774
|
i("fetchUser: Error fetching user", e, S.Error);
|
|
@@ -8674,8 +8783,8 @@ var zl = (e, t) => {
|
|
|
8674
8783
|
i
|
|
8675
8784
|
]), h = D(async () => {
|
|
8676
8785
|
if (!e || !s) return;
|
|
8677
|
-
let t =
|
|
8678
|
-
if (!(t && t.data.presence && n - t.timestamp <
|
|
8786
|
+
let t = Fl.get(e), n = Date.now();
|
|
8787
|
+
if (!(t && t.data.presence && n - t.timestamp < Ll)) try {
|
|
8679
8788
|
let r = {
|
|
8680
8789
|
availability: "Offline",
|
|
8681
8790
|
activity: "Offline"
|
|
@@ -8695,10 +8804,10 @@ var zl = (e, t) => {
|
|
|
8695
8804
|
...s,
|
|
8696
8805
|
presence: r
|
|
8697
8806
|
};
|
|
8698
|
-
|
|
8807
|
+
Fl.set(e, {
|
|
8699
8808
|
data: a,
|
|
8700
8809
|
timestamp: n,
|
|
8701
|
-
expiresAt: t?.expiresAt || n +
|
|
8810
|
+
expiresAt: t?.expiresAt || n + Il
|
|
8702
8811
|
}), c(a);
|
|
8703
8812
|
} catch (e) {
|
|
8704
8813
|
i("checkUserPresence: Error in checkUserPresence", e, S.Error);
|
|
@@ -8714,7 +8823,7 @@ var zl = (e, t) => {
|
|
|
8714
8823
|
await m();
|
|
8715
8824
|
})();
|
|
8716
8825
|
}, [m]);
|
|
8717
|
-
let { startPolling: g, stopPolling: _ } =
|
|
8826
|
+
let { startPolling: g, stopPolling: _ } = Vi(h, s ? Pl : Pl * 2, !1);
|
|
8718
8827
|
return k(() => (s && g(), () => {
|
|
8719
8828
|
_();
|
|
8720
8829
|
}), [
|
|
@@ -8726,8 +8835,8 @@ var zl = (e, t) => {
|
|
|
8726
8835
|
loading: l,
|
|
8727
8836
|
refetch: m
|
|
8728
8837
|
};
|
|
8729
|
-
},
|
|
8730
|
-
let u =
|
|
8838
|
+
}, 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 }) => {
|
|
8839
|
+
let u = Nl(), { user: d } = Rl(e, r), f = C(), p = j(() => {
|
|
8731
8840
|
let e = d?.presence?.availability?.toLowerCase(), t = d?.presence?.activity?.toLowerCase();
|
|
8732
8841
|
switch (e) {
|
|
8733
8842
|
case "available": return {
|
|
@@ -8782,7 +8891,7 @@ var zl = (e, t) => {
|
|
|
8782
8891
|
d?.presence?.activity,
|
|
8783
8892
|
f
|
|
8784
8893
|
]);
|
|
8785
|
-
return /* @__PURE__ */ F(
|
|
8894
|
+
return /* @__PURE__ */ F(wl, {
|
|
8786
8895
|
upn: n && d?.mail || "",
|
|
8787
8896
|
template: /* @__PURE__ */ F("div", {
|
|
8788
8897
|
className: B(u.root, a),
|
|
@@ -8841,7 +8950,7 @@ var zl = (e, t) => {
|
|
|
8841
8950
|
})
|
|
8842
8951
|
})
|
|
8843
8952
|
});
|
|
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)),
|
|
8953
|
+
}, (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
8954
|
container: H({
|
|
8846
8955
|
display: "flex",
|
|
8847
8956
|
alignItems: "center",
|
|
@@ -8899,8 +9008,8 @@ var zl = (e, t) => {
|
|
|
8899
9008
|
transition: "background-color 0.2s ease",
|
|
8900
9009
|
"&:hover": { backgroundColor: V.colorNeutralBackground1Hover }
|
|
8901
9010
|
})
|
|
8902
|
-
}),
|
|
8903
|
-
let c =
|
|
9011
|
+
}), Vl = ({ users: e, maxVisible: t = 5, avatarSize: n = 32, showHoverCard: r = !0, context: i, className: a, layout: o = "stack", overflowText: s }) => {
|
|
9012
|
+
let c = Bl(), { warn: l } = G(), { visibleUsers: u, overflowUsers: d } = j(() => !e || e.length === 0 ? {
|
|
8904
9013
|
visibleUsers: [],
|
|
8905
9014
|
overflowUsers: []
|
|
8906
9015
|
} : {
|
|
@@ -8914,7 +9023,7 @@ var zl = (e, t) => {
|
|
|
8914
9023
|
className: `${o === "stack" ? c.stackLayout : c.spreadLayout} ${a || ""}`,
|
|
8915
9024
|
children: [u.map((e, t) => /* @__PURE__ */ F("div", {
|
|
8916
9025
|
className: c.userCardWrapper,
|
|
8917
|
-
children: /* @__PURE__ */ F(
|
|
9026
|
+
children: /* @__PURE__ */ F(zl, {
|
|
8918
9027
|
userId: e.id,
|
|
8919
9028
|
avatarSize: n,
|
|
8920
9029
|
showHoverCard: r ?? !0,
|
|
@@ -8927,6 +9036,7 @@ var zl = (e, t) => {
|
|
|
8927
9036
|
disableButtonEnhancement: !0,
|
|
8928
9037
|
children: /* @__PURE__ */ F(R, {
|
|
8929
9038
|
className: c.overflowButton,
|
|
9039
|
+
"aria-label": `Show ${d.length} more users`,
|
|
8930
9040
|
style: {
|
|
8931
9041
|
width: `${n}px`,
|
|
8932
9042
|
height: `${n}px`,
|
|
@@ -8941,7 +9051,7 @@ var zl = (e, t) => {
|
|
|
8941
9051
|
className: c.popoverUserList,
|
|
8942
9052
|
children: d.map((e, t) => /* @__PURE__ */ F("div", {
|
|
8943
9053
|
className: c.popoverUserCard,
|
|
8944
|
-
children: /* @__PURE__ */ F(
|
|
9054
|
+
children: /* @__PURE__ */ F(zl, {
|
|
8945
9055
|
userId: e.id,
|
|
8946
9056
|
avatarSize: 32,
|
|
8947
9057
|
showHoverCard: r ?? !0,
|
|
@@ -8954,8 +9064,8 @@ var zl = (e, t) => {
|
|
|
8954
9064
|
})]
|
|
8955
9065
|
})]
|
|
8956
9066
|
}) : (l("StackedUsers: context is required to display user cards"), null);
|
|
8957
|
-
},
|
|
8958
|
-
let t =
|
|
9067
|
+
}, Hl = (e) => {
|
|
9068
|
+
let t = Ri(), n = (e || t)?.graphClient, { warn: r, error: i } = G();
|
|
8959
9069
|
return { getItemActivities: D(async (e, t, a) => {
|
|
8960
9070
|
if (!n) return r("Graph client not available for SharePoint activities"), { activities: [] };
|
|
8961
9071
|
try {
|
|
@@ -8969,11 +9079,11 @@ var zl = (e, t) => {
|
|
|
8969
9079
|
throw i("Error fetching SharePoint activities:", e instanceof Error ? e : void 0), e;
|
|
8970
9080
|
}
|
|
8971
9081
|
}, [n]) };
|
|
8972
|
-
},
|
|
9082
|
+
}, Ul = {
|
|
8973
9083
|
width: "20px",
|
|
8974
9084
|
height: "20px",
|
|
8975
9085
|
color: V.colorBrandBackground
|
|
8976
|
-
},
|
|
9086
|
+
}, Wl = [
|
|
8977
9087
|
"access",
|
|
8978
9088
|
"comment",
|
|
8979
9089
|
"create",
|
|
@@ -8985,51 +9095,84 @@ var zl = (e, t) => {
|
|
|
8985
9095
|
"restore",
|
|
8986
9096
|
"share",
|
|
8987
9097
|
"version"
|
|
8988
|
-
],
|
|
8989
|
-
let { getItemActivities: o } =
|
|
9098
|
+
], Gl = /* @__PURE__ */ new Map([]), Kl = ({ siteId: e, listId: t, itemId: n, currentUserEmail: r, strings: i, context: a }) => {
|
|
9099
|
+
let { getItemActivities: o } = Hl(a), c = s(), { warn: l, error: u } = G(), d = new Map([
|
|
8990
9100
|
["access", {
|
|
8991
|
-
message: i?.access || c.accessed ||
|
|
8992
|
-
icon: /* @__PURE__ */ F(ur, {
|
|
9101
|
+
message: i?.access || c.accessed || Gl.get("access")?.message || "",
|
|
9102
|
+
icon: /* @__PURE__ */ F(ur, {
|
|
9103
|
+
style: Ul,
|
|
9104
|
+
"aria-hidden": "true"
|
|
9105
|
+
})
|
|
8993
9106
|
}],
|
|
8994
9107
|
["comment", {
|
|
8995
|
-
message: i?.comment || c.commented ||
|
|
8996
|
-
icon: /* @__PURE__ */ F(Zn, {
|
|
9108
|
+
message: i?.comment || c.commented || Gl.get("comment")?.message || "",
|
|
9109
|
+
icon: /* @__PURE__ */ F(Zn, {
|
|
9110
|
+
style: Ul,
|
|
9111
|
+
"aria-hidden": "true"
|
|
9112
|
+
})
|
|
8997
9113
|
}],
|
|
8998
9114
|
["create", {
|
|
8999
|
-
message: i?.create || c.created ||
|
|
9000
|
-
icon: /* @__PURE__ */ F(Tn, {
|
|
9115
|
+
message: i?.create || c.created || Gl.get("create")?.message || "",
|
|
9116
|
+
icon: /* @__PURE__ */ F(Tn, {
|
|
9117
|
+
style: Ul,
|
|
9118
|
+
"aria-hidden": "true"
|
|
9119
|
+
})
|
|
9001
9120
|
}],
|
|
9002
9121
|
["delete", {
|
|
9003
|
-
message: i?.delete || c.deleted ||
|
|
9004
|
-
icon: /* @__PURE__ */ F($n, {
|
|
9122
|
+
message: i?.delete || c.deleted || Gl.get("delete")?.message || "",
|
|
9123
|
+
icon: /* @__PURE__ */ F($n, {
|
|
9124
|
+
style: Ul,
|
|
9125
|
+
"aria-hidden": "true"
|
|
9126
|
+
})
|
|
9005
9127
|
}],
|
|
9006
9128
|
["edit", {
|
|
9007
|
-
message: i?.edit || c.edited ||
|
|
9008
|
-
icon: /* @__PURE__ */ F(nr, {
|
|
9129
|
+
message: i?.edit || c.edited || Gl.get("edit")?.message || "",
|
|
9130
|
+
icon: /* @__PURE__ */ F(nr, {
|
|
9131
|
+
style: Ul,
|
|
9132
|
+
"aria-hidden": "true"
|
|
9133
|
+
})
|
|
9009
9134
|
}],
|
|
9010
9135
|
["mention", {
|
|
9011
|
-
message: i?.mention || c.mentioned ||
|
|
9012
|
-
icon: /* @__PURE__ */ F(sr, {
|
|
9136
|
+
message: i?.mention || c.mentioned || Gl.get("mention")?.message || "",
|
|
9137
|
+
icon: /* @__PURE__ */ F(sr, {
|
|
9138
|
+
style: Ul,
|
|
9139
|
+
"aria-hidden": "true"
|
|
9140
|
+
})
|
|
9013
9141
|
}],
|
|
9014
9142
|
["move", {
|
|
9015
|
-
message: i?.move || c.moved ||
|
|
9016
|
-
icon: /* @__PURE__ */ F(jn, {
|
|
9143
|
+
message: i?.move || c.moved || Gl.get("move")?.message || "",
|
|
9144
|
+
icon: /* @__PURE__ */ F(jn, {
|
|
9145
|
+
style: Ul,
|
|
9146
|
+
"aria-hidden": "true"
|
|
9147
|
+
})
|
|
9017
9148
|
}],
|
|
9018
9149
|
["rename", {
|
|
9019
|
-
message: i?.rename || c.renamed ||
|
|
9020
|
-
icon: /* @__PURE__ */ F(mr, {
|
|
9150
|
+
message: i?.rename || c.renamed || Gl.get("rename")?.message || "",
|
|
9151
|
+
icon: /* @__PURE__ */ F(mr, {
|
|
9152
|
+
style: Ul,
|
|
9153
|
+
"aria-hidden": "true"
|
|
9154
|
+
})
|
|
9021
9155
|
}],
|
|
9022
9156
|
["restore", {
|
|
9023
|
-
message: i?.restore || c.restored ||
|
|
9024
|
-
icon: /* @__PURE__ */ F(Nn, {
|
|
9157
|
+
message: i?.restore || c.restored || Gl.get("restore")?.message || "",
|
|
9158
|
+
icon: /* @__PURE__ */ F(Nn, {
|
|
9159
|
+
style: Ul,
|
|
9160
|
+
"aria-hidden": "true"
|
|
9161
|
+
})
|
|
9025
9162
|
}],
|
|
9026
9163
|
["share", {
|
|
9027
|
-
message: i?.share || c.shared ||
|
|
9028
|
-
icon: /* @__PURE__ */ F(dr, {
|
|
9164
|
+
message: i?.share || c.shared || Gl.get("share")?.message || "",
|
|
9165
|
+
icon: /* @__PURE__ */ F(dr, {
|
|
9166
|
+
style: Ul,
|
|
9167
|
+
"aria-hidden": "true"
|
|
9168
|
+
})
|
|
9029
9169
|
}],
|
|
9030
9170
|
["version", {
|
|
9031
|
-
message: i?.version || c.versioned ||
|
|
9032
|
-
icon: /* @__PURE__ */ F(ar, {
|
|
9171
|
+
message: i?.version || c.versioned || Gl.get("version")?.message || "",
|
|
9172
|
+
icon: /* @__PURE__ */ F(ar, {
|
|
9173
|
+
style: Ul,
|
|
9174
|
+
"aria-hidden": "true"
|
|
9175
|
+
})
|
|
9033
9176
|
}]
|
|
9034
9177
|
]), [f, p] = w.useState({
|
|
9035
9178
|
message: "",
|
|
@@ -9039,7 +9182,7 @@ var zl = (e, t) => {
|
|
|
9039
9182
|
message: "",
|
|
9040
9183
|
icon: /* @__PURE__ */ F(P, {})
|
|
9041
9184
|
};
|
|
9042
|
-
let { action: t, actor: n } = e, { displayName: r } = n?.user || { displayName: "" }, i =
|
|
9185
|
+
let { action: t, actor: n } = e, { displayName: r } = n?.user || { displayName: "" }, i = Wl.find((e) => t[e]);
|
|
9043
9186
|
if (i) {
|
|
9044
9187
|
let e = d.get(i);
|
|
9045
9188
|
if (e) return {
|
|
@@ -9098,14 +9241,17 @@ var zl = (e, t) => {
|
|
|
9098
9241
|
]
|
|
9099
9242
|
}) })
|
|
9100
9243
|
});
|
|
9101
|
-
},
|
|
9244
|
+
}, ql = (e) => /* @__PURE__ */ I("svg", {
|
|
9102
9245
|
width: "100",
|
|
9103
9246
|
height: "100",
|
|
9104
9247
|
viewBox: "0 0 100 100",
|
|
9105
9248
|
fill: "none",
|
|
9106
9249
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9250
|
+
role: "img",
|
|
9251
|
+
"aria-label": "Business report",
|
|
9107
9252
|
...e,
|
|
9108
9253
|
children: [
|
|
9254
|
+
/* @__PURE__ */ F("title", { children: "Business report" }),
|
|
9109
9255
|
/* @__PURE__ */ F("rect", {
|
|
9110
9256
|
x: "20",
|
|
9111
9257
|
y: "30",
|
|
@@ -9136,7 +9282,7 @@ var zl = (e, t) => {
|
|
|
9136
9282
|
fill: "#0078D4"
|
|
9137
9283
|
})
|
|
9138
9284
|
]
|
|
9139
|
-
}),
|
|
9285
|
+
}), Jl = (e) => {
|
|
9140
9286
|
let { height: t } = e, n = d();
|
|
9141
9287
|
return /* @__PURE__ */ I("div", {
|
|
9142
9288
|
style: {
|
|
@@ -9146,7 +9292,7 @@ var zl = (e, t) => {
|
|
|
9146
9292
|
alignItems: "center",
|
|
9147
9293
|
flexDirection: "column"
|
|
9148
9294
|
},
|
|
9149
|
-
children: [/* @__PURE__ */ F(
|
|
9295
|
+
children: [/* @__PURE__ */ F(ql, {
|
|
9150
9296
|
width: 200,
|
|
9151
9297
|
height: 200
|
|
9152
9298
|
}), /* @__PURE__ */ F(z, {
|
|
@@ -9155,7 +9301,7 @@ var zl = (e, t) => {
|
|
|
9155
9301
|
children: n.noDashboardsAvailable
|
|
9156
9302
|
})]
|
|
9157
9303
|
});
|
|
9158
|
-
},
|
|
9304
|
+
}, Yl = () => ({
|
|
9159
9305
|
gridContainer: H`
|
|
9160
9306
|
display: grid;
|
|
9161
9307
|
gap: 4px;
|
|
@@ -9194,8 +9340,8 @@ var zl = (e, t) => {
|
|
|
9194
9340
|
boxSizing: "border-box",
|
|
9195
9341
|
padding: "8px 0px"
|
|
9196
9342
|
})
|
|
9197
|
-
}),
|
|
9198
|
-
let { onChange: t, values: n, maxCols: r, maxRows: i } = e, a = wr(gr, _r), o =
|
|
9343
|
+
}), Xl = (e) => {
|
|
9344
|
+
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
9345
|
w.useEffect(() => {
|
|
9200
9346
|
l(n);
|
|
9201
9347
|
}, [n]);
|
|
@@ -9219,9 +9365,17 @@ var zl = (e, t) => {
|
|
|
9219
9365
|
for (let t = 0; t < i; t++) for (let n = 0; n < r; n++) {
|
|
9220
9366
|
let r = t < c.spanRows && n < c.spanCols, i = u && t < u.spanRows && n < u.spanCols;
|
|
9221
9367
|
e.push(/* @__PURE__ */ F("div", {
|
|
9368
|
+
role: "gridcell",
|
|
9369
|
+
tabIndex: 0,
|
|
9370
|
+
"aria-label": `Set span to ${n + 1} columns by ${t + 1} rows`,
|
|
9371
|
+
"aria-selected": r,
|
|
9222
9372
|
className: `${o.cell} ${i ? o.hoveredCell : ""} ${r ? o.selectedCell : ""}`,
|
|
9223
9373
|
onMouseEnter: () => _(t, n),
|
|
9224
|
-
onClick: () => g(t, n)
|
|
9374
|
+
onClick: () => g(t, n),
|
|
9375
|
+
onKeyDown: (e) => {
|
|
9376
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), g(t, n));
|
|
9377
|
+
},
|
|
9378
|
+
onFocus: () => _(t, n)
|
|
9225
9379
|
}, `${t}-${n}`));
|
|
9226
9380
|
}
|
|
9227
9381
|
return e;
|
|
@@ -9249,7 +9403,7 @@ var zl = (e, t) => {
|
|
|
9249
9403
|
children: [
|
|
9250
9404
|
/* @__PURE__ */ F("div", {
|
|
9251
9405
|
className: o.zoomContainer,
|
|
9252
|
-
children: /* @__PURE__ */ F(
|
|
9406
|
+
children: /* @__PURE__ */ F(ro, { label: `Span (${c.spanCols} × ${c.spanRows})` })
|
|
9253
9407
|
}),
|
|
9254
9408
|
/* @__PURE__ */ F("div", {
|
|
9255
9409
|
className: o.gridContainer,
|
|
@@ -9267,7 +9421,7 @@ var zl = (e, t) => {
|
|
|
9267
9421
|
]
|
|
9268
9422
|
})]
|
|
9269
9423
|
});
|
|
9270
|
-
},
|
|
9424
|
+
}, Zl = () => ({
|
|
9271
9425
|
dashboardContainer: H({
|
|
9272
9426
|
display: "grid",
|
|
9273
9427
|
padding: "20px",
|
|
@@ -9320,8 +9474,8 @@ var zl = (e, t) => {
|
|
|
9320
9474
|
boxShadow: `${V.shadow8}`
|
|
9321
9475
|
}
|
|
9322
9476
|
})
|
|
9323
|
-
}),
|
|
9324
|
-
let { warn: l } = G(), u =
|
|
9477
|
+
}), 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 }) => {
|
|
9478
|
+
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
9479
|
k(() => {
|
|
9326
9480
|
(async () => {
|
|
9327
9481
|
try {
|
|
@@ -9391,7 +9545,7 @@ var zl = (e, t) => {
|
|
|
9391
9545
|
f,
|
|
9392
9546
|
b
|
|
9393
9547
|
]), k(() => {
|
|
9394
|
-
t <=
|
|
9548
|
+
t <= Ql && w(() => {
|
|
9395
9549
|
let e = {};
|
|
9396
9550
|
return x.forEach((t) => {
|
|
9397
9551
|
e[t.id] = {
|
|
@@ -9401,7 +9555,7 @@ var zl = (e, t) => {
|
|
|
9401
9555
|
}), e;
|
|
9402
9556
|
});
|
|
9403
9557
|
}, [t, x]);
|
|
9404
|
-
let A = j(() => t >
|
|
9558
|
+
let A = j(() => t > Ql, [t]), { minCardWidth: P, gridGap: L, containerPadding: ee } = j(() => ({
|
|
9405
9559
|
minCardWidth: 350,
|
|
9406
9560
|
gridGap: 16,
|
|
9407
9561
|
containerPadding: 20
|
|
@@ -9432,7 +9586,7 @@ var zl = (e, t) => {
|
|
|
9432
9586
|
spanCols: Math.min(t.defaultSpan?.spanCols ?? 1, ne),
|
|
9433
9587
|
spanRows: t.defaultSpan?.spanRows ?? 1
|
|
9434
9588
|
}, e), {}), [x, ne]), se = j(() => x.map((e, t) => {
|
|
9435
|
-
let a = e.showZoom !== !1 && A, o = e.headerAction || (a ? /* @__PURE__ */ F(
|
|
9589
|
+
let a = e.showZoom !== !1 && A, o = e.headerAction || (a ? /* @__PURE__ */ F(Xl, {
|
|
9436
9590
|
values: C[e.id] || oe[e.id] || {
|
|
9437
9591
|
spanCols: 1,
|
|
9438
9592
|
spanRows: 1
|
|
@@ -9444,11 +9598,17 @@ var zl = (e, t) => {
|
|
|
9444
9598
|
}) : void 0);
|
|
9445
9599
|
return /* @__PURE__ */ F("div", {
|
|
9446
9600
|
className: u.cardWrapper,
|
|
9601
|
+
tabIndex: i ? 0 : void 0,
|
|
9602
|
+
role: i ? "listitem" : void 0,
|
|
9603
|
+
"aria-label": i ? `${e.cardTitle}, press Ctrl+Arrow keys to reorder` : void 0,
|
|
9447
9604
|
draggable: i,
|
|
9448
9605
|
onDragStart: () => i && (T.current = t),
|
|
9449
9606
|
onDragEnter: () => i && (E.current = t),
|
|
9450
9607
|
onDragOver: (e) => i && e.preventDefault(),
|
|
9451
9608
|
onDragEnd: i ? ie : void 0,
|
|
9609
|
+
onKeyDown: i ? (e) => {
|
|
9610
|
+
!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()));
|
|
9611
|
+
} : void 0,
|
|
9452
9612
|
style: {
|
|
9453
9613
|
gridColumnEnd: C[e.id]?.spanCols ? `span ${C[e.id].spanCols}` : `span ${oe[e.id]?.spanCols || 1}`,
|
|
9454
9614
|
gridRowEnd: C[e.id]?.spanRows ? `span ${C[e.id].spanRows}` : `span ${oe[e.id]?.spanRows || 1}`,
|
|
@@ -9460,6 +9620,7 @@ var zl = (e, t) => {
|
|
|
9460
9620
|
header: /* @__PURE__ */ I(J, {
|
|
9461
9621
|
gap: "0px",
|
|
9462
9622
|
children: [/* @__PURE__ */ F(z, {
|
|
9623
|
+
as: "h3",
|
|
9463
9624
|
weight: "semibold",
|
|
9464
9625
|
size: 400,
|
|
9465
9626
|
children: e.cardTitle
|
|
@@ -9496,19 +9657,19 @@ var zl = (e, t) => {
|
|
|
9496
9657
|
n,
|
|
9497
9658
|
oe
|
|
9498
9659
|
]);
|
|
9499
|
-
return x.length === 0 ? /* @__PURE__ */ F(
|
|
9660
|
+
return x.length === 0 ? /* @__PURE__ */ F(Jl, {}) : /* @__PURE__ */ F("div", {
|
|
9500
9661
|
ref: O,
|
|
9501
9662
|
className: u.dashboardContainer,
|
|
9502
9663
|
style: { height: n },
|
|
9503
9664
|
children: se
|
|
9504
9665
|
});
|
|
9505
|
-
},
|
|
9666
|
+
}, ru = Cn`
|
|
9506
9667
|
0%, 100% { transform: translateY(0px); }
|
|
9507
9668
|
50% { transform: translateY(-8px); }
|
|
9508
|
-
`,
|
|
9669
|
+
`, iu = Cn`
|
|
9509
9670
|
0% { background-position: -200% center; }
|
|
9510
9671
|
100% { background-position: 200% center; }
|
|
9511
|
-
`,
|
|
9672
|
+
`, au = () => ({
|
|
9512
9673
|
card: H({
|
|
9513
9674
|
width: "100%",
|
|
9514
9675
|
height: "310px",
|
|
@@ -9684,7 +9845,7 @@ var zl = (e, t) => {
|
|
|
9684
9845
|
alignItems: "center",
|
|
9685
9846
|
justifyContent: "center",
|
|
9686
9847
|
boxShadow: `0 8px 24px ${V.colorBrandBackground}40`,
|
|
9687
|
-
animation: `${
|
|
9848
|
+
animation: `${ru} 3s ease-in-out infinite`,
|
|
9688
9849
|
position: "relative",
|
|
9689
9850
|
zIndex: 1
|
|
9690
9851
|
}),
|
|
@@ -9698,7 +9859,7 @@ var zl = (e, t) => {
|
|
|
9698
9859
|
right: "-8px",
|
|
9699
9860
|
color: V.colorPaletteYellowForeground1,
|
|
9700
9861
|
fontSize: "20px",
|
|
9701
|
-
animation: `${
|
|
9862
|
+
animation: `${ru} 2s ease-in-out infinite 0.5s`
|
|
9702
9863
|
}),
|
|
9703
9864
|
noKpiSparkle2: H({
|
|
9704
9865
|
position: "absolute",
|
|
@@ -9706,7 +9867,7 @@ var zl = (e, t) => {
|
|
|
9706
9867
|
left: "-8px",
|
|
9707
9868
|
color: V.colorPaletteLavenderForeground2,
|
|
9708
9869
|
fontSize: "16px",
|
|
9709
|
-
animation: `${
|
|
9870
|
+
animation: `${ru} 2.5s ease-in-out infinite`
|
|
9710
9871
|
}),
|
|
9711
9872
|
noKpiTitle: H({
|
|
9712
9873
|
fontSize: "22px",
|
|
@@ -9734,7 +9895,7 @@ var zl = (e, t) => {
|
|
|
9734
9895
|
WebkitTextFillColor: "transparent",
|
|
9735
9896
|
backgroundClip: "text",
|
|
9736
9897
|
fontWeight: V.fontWeightSemibold,
|
|
9737
|
-
animation: `${
|
|
9898
|
+
animation: `${iu} 3s linear infinite`
|
|
9738
9899
|
}),
|
|
9739
9900
|
noKpiButtonContainer: H({
|
|
9740
9901
|
marginTop: "24px",
|
|
@@ -9763,12 +9924,12 @@ var zl = (e, t) => {
|
|
|
9763
9924
|
gridTemplateColumns: "repeat(auto-fit, minmax(80px, 1fr))",
|
|
9764
9925
|
alignItems: "center"
|
|
9765
9926
|
})
|
|
9766
|
-
}),
|
|
9927
|
+
}), ou = /* @__PURE__ */ function(e) {
|
|
9767
9928
|
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 =
|
|
9929
|
+
}({}), su = (e) => {
|
|
9930
|
+
let { dataCard: t } = e, n = au(), r = b(), [i, a] = w.useState(!1), o = w.useCallback(() => {
|
|
9770
9931
|
a(!1);
|
|
9771
|
-
}, []), s = w.useMemo(() => t.goalMetric ===
|
|
9932
|
+
}, []), s = w.useMemo(() => t.goalMetric === ou.LOWER_IS_BETTER ? t.currentValue <= t.goal : t.currentValue >= t.goal, [
|
|
9772
9933
|
t.currentValue,
|
|
9773
9934
|
t.goal,
|
|
9774
9935
|
t.goalMetric
|
|
@@ -9790,6 +9951,7 @@ var zl = (e, t) => {
|
|
|
9790
9951
|
return /* @__PURE__ */ F(P, { children: /* @__PURE__ */ I(he, {
|
|
9791
9952
|
className: n.card,
|
|
9792
9953
|
onMouseLeave: o,
|
|
9954
|
+
"aria-label": `${t.title || r.defaultTitle}: ${t.currentValue} of ${t.goal} ${r.goal}, ${s ? r.onTrack : r.exceedGoal}`,
|
|
9793
9955
|
children: [/* @__PURE__ */ F("div", { className: s ? n.glowBlobSuccess : n.glowBlobError }), /* @__PURE__ */ I(J, {
|
|
9794
9956
|
gap: "m",
|
|
9795
9957
|
padding: "m",
|
|
@@ -9825,12 +9987,12 @@ var zl = (e, t) => {
|
|
|
9825
9987
|
color: V.colorNeutralForeground3,
|
|
9826
9988
|
fontStyle: "italic"
|
|
9827
9989
|
},
|
|
9828
|
-
children: t.goalMetric ===
|
|
9990
|
+
children: t.goalMetric === ou.LOWER_IS_BETTER ? r.lowerIsBetter : r.higherIsBetter
|
|
9829
9991
|
})]
|
|
9830
9992
|
}),
|
|
9831
9993
|
action: /* @__PURE__ */ F(Bt, {
|
|
9832
9994
|
content: s ? `✓ ${r.withinGoalThreshold}` : `⚠ ${r.exceedsGoalThreshold}`,
|
|
9833
|
-
relationship: "
|
|
9995
|
+
relationship: "description",
|
|
9834
9996
|
children: /* @__PURE__ */ F(le, {
|
|
9835
9997
|
className: n.headerActionBadge,
|
|
9836
9998
|
appearance: "ghost",
|
|
@@ -9892,7 +10054,7 @@ var zl = (e, t) => {
|
|
|
9892
10054
|
/* @__PURE__ */ I(ge, { children: [
|
|
9893
10055
|
/* @__PURE__ */ F(Bt, {
|
|
9894
10056
|
content: r.maxAllowedThreshold,
|
|
9895
|
-
relationship: "
|
|
10057
|
+
relationship: "description",
|
|
9896
10058
|
children: /* @__PURE__ */ I(J, {
|
|
9897
10059
|
alignItems: "center",
|
|
9898
10060
|
gap: V.spacingVerticalXXS,
|
|
@@ -9915,7 +10077,7 @@ var zl = (e, t) => {
|
|
|
9915
10077
|
}),
|
|
9916
10078
|
/* @__PURE__ */ F(Bt, {
|
|
9917
10079
|
content: r.totalItemsInScope,
|
|
9918
|
-
relationship: "
|
|
10080
|
+
relationship: "description",
|
|
9919
10081
|
children: /* @__PURE__ */ I(J, {
|
|
9920
10082
|
alignItems: "center",
|
|
9921
10083
|
gap: V.spacingVerticalXXS,
|
|
@@ -9938,7 +10100,7 @@ var zl = (e, t) => {
|
|
|
9938
10100
|
}),
|
|
9939
10101
|
/* @__PURE__ */ F(Bt, {
|
|
9940
10102
|
content: r.currentValueAsPercent,
|
|
9941
|
-
relationship: "
|
|
10103
|
+
relationship: "description",
|
|
9942
10104
|
children: /* @__PURE__ */ I(J, {
|
|
9943
10105
|
alignItems: "center",
|
|
9944
10106
|
gap: V.spacingVerticalXXS,
|
|
@@ -9966,8 +10128,8 @@ var zl = (e, t) => {
|
|
|
9966
10128
|
]
|
|
9967
10129
|
})]
|
|
9968
10130
|
}) });
|
|
9969
|
-
},
|
|
9970
|
-
let e =
|
|
10131
|
+
}, cu = () => {
|
|
10132
|
+
let e = au(), t = {
|
|
9971
10133
|
headerTitle: H({
|
|
9972
10134
|
width: "120px",
|
|
9973
10135
|
height: "16px"
|
|
@@ -10103,8 +10265,8 @@ var zl = (e, t) => {
|
|
|
10103
10265
|
})
|
|
10104
10266
|
})
|
|
10105
10267
|
});
|
|
10106
|
-
},
|
|
10107
|
-
let e =
|
|
10268
|
+
}, lu = "/sites/mock-site/Lists/Directory Status Config", uu = () => {
|
|
10269
|
+
let e = au(), t = u(), n = lu, r = w.useCallback(() => {
|
|
10108
10270
|
let e = `${window.location.origin}${n}/AllItems.aspx`;
|
|
10109
10271
|
window.open(e, "_blank");
|
|
10110
10272
|
}, [n]);
|
|
@@ -10156,10 +10318,10 @@ var zl = (e, t) => {
|
|
|
10156
10318
|
})
|
|
10157
10319
|
]
|
|
10158
10320
|
});
|
|
10159
|
-
},
|
|
10160
|
-
let { dataCard: t } = e, n =
|
|
10321
|
+
}, du = (e) => {
|
|
10322
|
+
let { dataCard: t } = e, n = au(), r = b(), [i, a] = w.useState(!1), o = w.useCallback(() => {
|
|
10161
10323
|
a(!1);
|
|
10162
|
-
}, []), s = w.useMemo(() => t.goalMetric ===
|
|
10324
|
+
}, []), s = w.useMemo(() => t.goalMetric === ou.LOWER_IS_BETTER ? t.currentValue <= t.goal : t.currentValue >= t.goal, [
|
|
10163
10325
|
t.currentValue,
|
|
10164
10326
|
t.goal,
|
|
10165
10327
|
t.goalMetric
|
|
@@ -10202,7 +10364,7 @@ var zl = (e, t) => {
|
|
|
10202
10364
|
color: V.colorNeutralForeground3,
|
|
10203
10365
|
fontStyle: "italic"
|
|
10204
10366
|
},
|
|
10205
|
-
children: t.goalMetric ===
|
|
10367
|
+
children: t.goalMetric === ou.LOWER_IS_BETTER ? r.lowerIsBetter : r.higherIsBetter
|
|
10206
10368
|
})]
|
|
10207
10369
|
}),
|
|
10208
10370
|
action: /* @__PURE__ */ F(Bt, {
|
|
@@ -10268,7 +10430,7 @@ var zl = (e, t) => {
|
|
|
10268
10430
|
]
|
|
10269
10431
|
})]
|
|
10270
10432
|
}) });
|
|
10271
|
-
},
|
|
10433
|
+
}, fu = [
|
|
10272
10434
|
{
|
|
10273
10435
|
identifier: "kpi-1",
|
|
10274
10436
|
title: "Sales Revenue",
|
|
@@ -10323,23 +10485,23 @@ var zl = (e, t) => {
|
|
|
10323
10485
|
description: "Employee engagement score percentage",
|
|
10324
10486
|
goalMetric: 1
|
|
10325
10487
|
}
|
|
10326
|
-
],
|
|
10327
|
-
let { skeletonCount: t = 3, compact: n = !1 } = e, r =
|
|
10328
|
-
return w.useCallback(() => Array.from({ length: t }).map((e, t) => /* @__PURE__ */ F(
|
|
10488
|
+
], pu = (e) => {
|
|
10489
|
+
let { skeletonCount: t = 3, compact: n = !1 } = e, r = au(), i = fu;
|
|
10490
|
+
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
10491
|
gap: "l",
|
|
10330
10492
|
direction: "horizontal",
|
|
10331
10493
|
padding: "l",
|
|
10332
10494
|
paddingTop: "s",
|
|
10333
10495
|
children: /* @__PURE__ */ F(P, { children: /* @__PURE__ */ F("div", {
|
|
10334
10496
|
className: r.kpiContainer,
|
|
10335
|
-
children: i.length > 0 ? i.map((e) => F(n ?
|
|
10497
|
+
children: i.length > 0 ? i.map((e) => F(n ? du : su, { dataCard: e }, e.identifier)) : /* @__PURE__ */ F(uu, {})
|
|
10336
10498
|
}) })
|
|
10337
10499
|
}) });
|
|
10338
|
-
},
|
|
10500
|
+
}, mu = () => {
|
|
10339
10501
|
let e = w.useRef("");
|
|
10340
10502
|
return e.current ||= "fui-" + Math.random().toString(36).slice(2, 9), e.current;
|
|
10341
|
-
},
|
|
10342
|
-
let t =
|
|
10503
|
+
}, hu = (e) => {
|
|
10504
|
+
let t = mu(), { theme: n = Zt, applicationName: r = t, targetDocument: i = document, applyStylesToPortals: a = !0, className: o, styles: s, children: c } = e;
|
|
10343
10505
|
return /* @__PURE__ */ F(Ve, {
|
|
10344
10506
|
value: r,
|
|
10345
10507
|
children: /* @__PURE__ */ F(Be, {
|
|
@@ -10353,6 +10515,6 @@ var zl = (e, t) => {
|
|
|
10353
10515
|
});
|
|
10354
10516
|
};
|
|
10355
10517
|
//#endregion
|
|
10356
|
-
export {
|
|
10518
|
+
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
10519
|
|
|
10358
10520
|
//# sourceMappingURL=index.js.map
|