sass-cms-template-common 0.0.28 → 0.0.30
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.d.ts +49 -1
- package/dist/index.js +435 -405
- package/dist/index.js.map +1 -1
- package/dist/server.js +1 -1
- package/dist/{services-2zqQa6zN.js → services-2-xDDqd5.js} +9 -1
- package/dist/services-2-xDDqd5.js.map +1 -0
- package/package.json +1 -1
- package/dist/services-2zqQa6zN.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, Ct as i, D as a, E as o, Et as s, F as c, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as b, S as x, St as S, T as C, Tt as w, U as T, V as E, W as D, X as O, Y as ee, Z as te, _ as ne, _t as k, a as re, at as ie, b as ae, bt as oe, c as se, ct as ce, d as le, dt as ue, et as de, f as fe, ft as pe, g as me, gt as he, h as ge, ht as _e, i as ve, it as ye, j as be, k as xe, l as Se, lt as Ce, m as we, mt as Te, n as Ee, nt as De, o as Oe, ot as ke, p as Ae, pt as A, q as je, r as Me, rt as Ne, s as Pe, st as Fe, t as Ie, tt as Le, u as Re, ut as ze, v as Be, vt as j, w as Ve, wt as He, x as Ue, xt as M, y as We, yt as Ge, z as Ke } from "./services-
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, Ct as i, D as a, E as o, Et as s, F as c, G as l, H as u, I as d, J as f, K as p, L as m, M as h, N as g, O as _, P as v, Q as y, R as b, S as x, St as S, T as C, Tt as w, U as T, V as E, W as D, X as O, Y as ee, Z as te, _ as ne, _t as k, a as re, at as ie, b as ae, bt as oe, c as se, ct as ce, d as le, dt as ue, et as de, f as fe, ft as pe, g as me, gt as he, h as ge, ht as _e, i as ve, it as ye, j as be, k as xe, l as Se, lt as Ce, m as we, mt as Te, n as Ee, nt as De, o as Oe, ot as ke, p as Ae, pt as A, q as je, r as Me, rt as Ne, s as Pe, st as Fe, t as Ie, tt as Le, u as Re, ut as ze, v as Be, vt as j, w as Ve, wt as He, x as Ue, xt as M, y as We, yt as Ge, z as Ke } from "./services-2-xDDqd5.js";
|
|
2
2
|
import { ThemeProvider as qe, alpha as N, createTheme as Je, useColorScheme as Ye } from "@mui/material/styles";
|
|
3
3
|
import { Fragment as Xe, cloneElement as Ze, createContext as Qe, forwardRef as $e, isValidElement as et, useCallback as tt, useContext as nt, useEffect as P, useId as rt, useMemo as F, useRef as it, useState as I } from "react";
|
|
4
4
|
import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
|
|
@@ -2282,51 +2282,81 @@ function ni() {
|
|
|
2282
2282
|
]);
|
|
2283
2283
|
}
|
|
2284
2284
|
//#endregion
|
|
2285
|
+
//#region src/lib/network/useResilientFormAction.ts
|
|
2286
|
+
function ri(e) {
|
|
2287
|
+
let t = e?.digest;
|
|
2288
|
+
return typeof t == "string" && t.startsWith("NEXT_");
|
|
2289
|
+
}
|
|
2290
|
+
function ii(e, t) {
|
|
2291
|
+
let n = ni(), { onError: r, service: i, params: a, maxRetries: o, notifyRetry: s } = t;
|
|
2292
|
+
return tt(async (t, c) => {
|
|
2293
|
+
try {
|
|
2294
|
+
return await n(() => e(t, c), {
|
|
2295
|
+
service: i,
|
|
2296
|
+
params: a,
|
|
2297
|
+
maxRetries: o,
|
|
2298
|
+
notifyRetry: s
|
|
2299
|
+
});
|
|
2300
|
+
} catch (e) {
|
|
2301
|
+
if (ri(e)) throw e;
|
|
2302
|
+
return r(e, De(e));
|
|
2303
|
+
}
|
|
2304
|
+
}, [
|
|
2305
|
+
n,
|
|
2306
|
+
e,
|
|
2307
|
+
r,
|
|
2308
|
+
i,
|
|
2309
|
+
a,
|
|
2310
|
+
o,
|
|
2311
|
+
s
|
|
2312
|
+
]);
|
|
2313
|
+
}
|
|
2314
|
+
//#endregion
|
|
2285
2315
|
//#region src/lib/components/link.tsx
|
|
2286
|
-
var
|
|
2316
|
+
var ai = $e(function({ href: e, children: t, ...n }, r) {
|
|
2287
2317
|
return /* @__PURE__ */ R("a", {
|
|
2288
2318
|
href: e,
|
|
2289
2319
|
ref: r,
|
|
2290
2320
|
...n,
|
|
2291
2321
|
children: t
|
|
2292
2322
|
});
|
|
2293
|
-
}),
|
|
2294
|
-
function
|
|
2323
|
+
}), oi = "/system/modules/com.tfsla.diario.webservices/auth/adminBack/login";
|
|
2324
|
+
function si(e) {
|
|
2295
2325
|
return `https://${e.replace(/^https?:\/\//, "").replace(/\/$/, "")}`;
|
|
2296
2326
|
}
|
|
2297
|
-
function
|
|
2327
|
+
function ci(e, t) {
|
|
2298
2328
|
let n = document.createElement("input");
|
|
2299
2329
|
return n.setAttribute("type", "hidden"), n.setAttribute("id", e), n.setAttribute("name", e), n.setAttribute("value", t), n;
|
|
2300
2330
|
}
|
|
2301
|
-
function
|
|
2302
|
-
let { cmsBaseUrl: t, path: n, session: r, device: i } = e, a = `${
|
|
2331
|
+
function li(e) {
|
|
2332
|
+
let { cmsBaseUrl: t, path: n, session: r, device: i } = e, a = `${si(t)}${oi}`, o = n, s = i?.queryString ?? "";
|
|
2303
2333
|
s.length && (o = s.includes("/") ? `${s}?path=${o}` : `${o}?${s}`);
|
|
2304
2334
|
let c = document.createElement("form");
|
|
2305
|
-
c.setAttribute("method", "post"), c.setAttribute("action", a), c.setAttribute("target", "_blank"), c.appendChild(
|
|
2335
|
+
c.setAttribute("method", "post"), c.setAttribute("action", a), c.setAttribute("target", "_blank"), c.appendChild(ci("token", btoa(r.token))), c.appendChild(ci("project", r.project ?? "Offline")), c.appendChild(ci("browserId", r.browserId)), c.appendChild(ci("siteName", r.siteName)), c.appendChild(ci("publication", String(r.publication))), c.appendChild(ci("r", o)), c.appendChild(ci("user", r.userName)), document.body.appendChild(c), c.submit(), document.body.removeChild(c);
|
|
2306
2336
|
}
|
|
2307
2337
|
//#endregion
|
|
2308
2338
|
//#region src/lib/components/sidebar/nav-helpers.ts
|
|
2309
|
-
function
|
|
2339
|
+
function ui(e, t) {
|
|
2310
2340
|
return e.label ?? t.navigation(e.module);
|
|
2311
2341
|
}
|
|
2312
|
-
function
|
|
2342
|
+
function di(e, t) {
|
|
2313
2343
|
return !!(e === t || t !== "/" && e.startsWith(`${t}/`));
|
|
2314
2344
|
}
|
|
2315
|
-
function
|
|
2316
|
-
return
|
|
2345
|
+
function fi(e, t) {
|
|
2346
|
+
return di(e, t.href) ? !0 : t.children?.some((t) => di(e, t.href)) ?? !1;
|
|
2317
2347
|
}
|
|
2318
|
-
function
|
|
2348
|
+
function pi(e, t) {
|
|
2319
2349
|
return t?.[e.module] || void 0;
|
|
2320
2350
|
}
|
|
2321
|
-
function
|
|
2322
|
-
let i =
|
|
2351
|
+
function mi(e, t, n, r) {
|
|
2352
|
+
let i = pi(e, r);
|
|
2323
2353
|
if (i) return i;
|
|
2324
2354
|
if (!e.legacy || !t) return e.href;
|
|
2325
2355
|
let a = `${t.replace(/\/$/, "")}${e.href}`;
|
|
2326
2356
|
return e.appendPublicationId && n ? `${a.replace(/\/$/, "")}/${n}` : a;
|
|
2327
2357
|
}
|
|
2328
|
-
function
|
|
2329
|
-
let n =
|
|
2358
|
+
function hi(e, t) {
|
|
2359
|
+
let n = pi(e, t.navHrefOverrides);
|
|
2330
2360
|
return n ? {
|
|
2331
2361
|
kind: "link",
|
|
2332
2362
|
href: n,
|
|
@@ -2336,7 +2366,7 @@ function pi(e, t) {
|
|
|
2336
2366
|
path: e.href
|
|
2337
2367
|
} : e.legacy ? {
|
|
2338
2368
|
kind: "link",
|
|
2339
|
-
href:
|
|
2369
|
+
href: mi(e, t.legacyBaseUrl, t.selectedPublicationId),
|
|
2340
2370
|
external: !0
|
|
2341
2371
|
} : {
|
|
2342
2372
|
kind: "link",
|
|
@@ -2344,15 +2374,15 @@ function pi(e, t) {
|
|
|
2344
2374
|
external: !1
|
|
2345
2375
|
};
|
|
2346
2376
|
}
|
|
2347
|
-
function
|
|
2377
|
+
function gi(e, t) {
|
|
2348
2378
|
return e.find((e) => e.module === t);
|
|
2349
2379
|
}
|
|
2350
|
-
function
|
|
2351
|
-
return e.children?.filter((e) =>
|
|
2380
|
+
function _i(e, t) {
|
|
2381
|
+
return e.children?.filter((e) => gi(t, e.module)) ?? [];
|
|
2352
2382
|
}
|
|
2353
2383
|
//#endregion
|
|
2354
2384
|
//#region src/lib/components/sidebar/nav-blocks.ts
|
|
2355
|
-
var
|
|
2385
|
+
var vi = [
|
|
2356
2386
|
{
|
|
2357
2387
|
href: "/admin/comments/",
|
|
2358
2388
|
icon: Ut,
|
|
@@ -2578,12 +2608,12 @@ var gi = [
|
|
|
2578
2608
|
icon: bt,
|
|
2579
2609
|
module: "COPILOT"
|
|
2580
2610
|
}
|
|
2581
|
-
],
|
|
2611
|
+
], yi = 56, bi = 32, xi = 22, Si = {
|
|
2582
2612
|
scrollbarWidth: "none",
|
|
2583
2613
|
msOverflowStyle: "none",
|
|
2584
2614
|
"&::-webkit-scrollbar": { display: "none" }
|
|
2585
2615
|
};
|
|
2586
|
-
function
|
|
2616
|
+
function Ci(e) {
|
|
2587
2617
|
return e === "ai" ? {
|
|
2588
2618
|
bg: w.generating.bg,
|
|
2589
2619
|
on: w.generating.on
|
|
@@ -2614,7 +2644,7 @@ var q = {
|
|
|
2614
2644
|
overflowX: "hidden",
|
|
2615
2645
|
width: "100%",
|
|
2616
2646
|
boxSizing: "border-box",
|
|
2617
|
-
...
|
|
2647
|
+
...Si
|
|
2618
2648
|
},
|
|
2619
2649
|
sxNav: {
|
|
2620
2650
|
display: "flex",
|
|
@@ -2677,11 +2707,11 @@ var q = {
|
|
|
2677
2707
|
my: .5
|
|
2678
2708
|
},
|
|
2679
2709
|
sxItemIconBox: (e, t) => {
|
|
2680
|
-
let n =
|
|
2710
|
+
let n = Ci(t);
|
|
2681
2711
|
return {
|
|
2682
2712
|
position: "relative",
|
|
2683
|
-
width:
|
|
2684
|
-
height:
|
|
2713
|
+
width: yi,
|
|
2714
|
+
height: bi,
|
|
2685
2715
|
borderRadius: "16px",
|
|
2686
2716
|
display: "grid",
|
|
2687
2717
|
placeItems: "center",
|
|
@@ -2694,14 +2724,14 @@ var q = {
|
|
|
2694
2724
|
}
|
|
2695
2725
|
};
|
|
2696
2726
|
},
|
|
2697
|
-
sxItemIcon: { fontSize:
|
|
2727
|
+
sxItemIcon: { fontSize: xi },
|
|
2698
2728
|
sxItemLabel: (e, t) => ({
|
|
2699
2729
|
fontSize: 12,
|
|
2700
2730
|
fontWeight: 500,
|
|
2701
2731
|
lineHeight: 1,
|
|
2702
2732
|
textAlign: "center",
|
|
2703
2733
|
mt: "4px",
|
|
2704
|
-
color: e ?
|
|
2734
|
+
color: e ? Ci(t).on : A.textNav
|
|
2705
2735
|
}),
|
|
2706
2736
|
sxChildrenChevron: {
|
|
2707
2737
|
position: "absolute",
|
|
@@ -2768,8 +2798,8 @@ var q = {
|
|
|
2768
2798
|
};
|
|
2769
2799
|
//#endregion
|
|
2770
2800
|
//#region src/lib/components/sidebar/SidebarRail.tsx
|
|
2771
|
-
function
|
|
2772
|
-
let { item: t, legacyBaseUrl: n, cmsBaseUrl: r, legacySession: i, selectedPublicationId: a, navHrefOverrides: o } = e, s =
|
|
2801
|
+
function wi(e) {
|
|
2802
|
+
let { item: t, legacyBaseUrl: n, cmsBaseUrl: r, legacySession: i, selectedPublicationId: a, navHrefOverrides: o } = e, s = hi(t, {
|
|
2773
2803
|
legacyBaseUrl: n,
|
|
2774
2804
|
cmsBaseUrl: r,
|
|
2775
2805
|
selectedPublicationId: a,
|
|
@@ -2777,7 +2807,7 @@ function Si(e) {
|
|
|
2777
2807
|
});
|
|
2778
2808
|
return s.kind === "jsp" ? r && i ? {
|
|
2779
2809
|
mode: "jsp-post",
|
|
2780
|
-
onClick: () =>
|
|
2810
|
+
onClick: () => li({
|
|
2781
2811
|
cmsBaseUrl: r,
|
|
2782
2812
|
path: s.path,
|
|
2783
2813
|
session: i
|
|
@@ -2792,7 +2822,7 @@ function Si(e) {
|
|
|
2792
2822
|
external: s.external
|
|
2793
2823
|
};
|
|
2794
2824
|
}
|
|
2795
|
-
function
|
|
2825
|
+
function Ti(e) {
|
|
2796
2826
|
if (typeof e == "string") return e;
|
|
2797
2827
|
if (e && typeof e == "object") {
|
|
2798
2828
|
let { pin: t, module: n } = e;
|
|
@@ -2800,15 +2830,15 @@ function Ci(e) {
|
|
|
2800
2830
|
if (typeof n == "string") return n;
|
|
2801
2831
|
}
|
|
2802
2832
|
}
|
|
2803
|
-
function
|
|
2804
|
-
let f = `block-${t}`, { t: p } = G(), [m, h] = I(null), g = !!m, _ = it(null), v =
|
|
2833
|
+
function Ei({ item: e, blockIndex: t, pathname: n, permissions: r, LinkComponent: i, legacyBaseUrl: a, cmsBaseUrl: o, legacySession: s, selectedPublicationId: c, navHrefOverrides: l, pinned: u, onTogglePin: d }) {
|
|
2834
|
+
let f = `block-${t}`, { t: p } = G(), [m, h] = I(null), g = !!m, _ = it(null), v = gi(r, e.module), b = _i(e, r), x = b.length > 0, S = x ? fi(n, e) : di(n, e.href);
|
|
2805
2835
|
if (P(() => {
|
|
2806
2836
|
S && _.current?.scrollIntoView({
|
|
2807
2837
|
block: "center",
|
|
2808
2838
|
inline: "nearest"
|
|
2809
2839
|
});
|
|
2810
2840
|
}, [S, n]), !v && !x) return null;
|
|
2811
|
-
let C =
|
|
2841
|
+
let C = ui(e, p), w = e.icon, T = ht, E = /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ z(B, {
|
|
2812
2842
|
sx: q.sxItemIconBox(S, e.accent),
|
|
2813
2843
|
children: [
|
|
2814
2844
|
/* @__PURE__ */ R(w, { sx: q.sxItemIcon }),
|
|
@@ -2871,17 +2901,17 @@ function wi({ item: e, blockIndex: t, pathname: n, permissions: r, LinkComponent
|
|
|
2871
2901
|
sx: q.sxChildrenMenuTitle,
|
|
2872
2902
|
children: C
|
|
2873
2903
|
}), b.map((e) => {
|
|
2874
|
-
let t = e.icon, r =
|
|
2904
|
+
let t = e.icon, r = wi({
|
|
2875
2905
|
item: e,
|
|
2876
2906
|
legacyBaseUrl: a,
|
|
2877
2907
|
cmsBaseUrl: o,
|
|
2878
2908
|
legacySession: s,
|
|
2879
2909
|
selectedPublicationId: c,
|
|
2880
2910
|
navHrefOverrides: l
|
|
2881
|
-
}), u = q.sxChildrenMenuItem(
|
|
2911
|
+
}), u = q.sxChildrenMenuItem(di(n, e.href)), d = /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(gt, {
|
|
2882
2912
|
sx: q.sxChildrenMenuListItemIcon,
|
|
2883
2913
|
children: /* @__PURE__ */ R(t, {})
|
|
2884
|
-
}), /* @__PURE__ */ R(_t, { primary:
|
|
2914
|
+
}), /* @__PURE__ */ R(_t, { primary: ui(e, p) })] }), f = `dropdown-item-nav-${y(e.module)}`;
|
|
2885
2915
|
return r.mode === "jsp-post" ? /* @__PURE__ */ R(yt, {
|
|
2886
2916
|
"data-testid": f,
|
|
2887
2917
|
component: "button",
|
|
@@ -2905,7 +2935,7 @@ function wi({ item: e, blockIndex: t, pathname: n, permissions: r, LinkComponent
|
|
|
2905
2935
|
})
|
|
2906
2936
|
]
|
|
2907
2937
|
});
|
|
2908
|
-
let O =
|
|
2938
|
+
let O = wi({
|
|
2909
2939
|
item: e,
|
|
2910
2940
|
legacyBaseUrl: a,
|
|
2911
2941
|
cmsBaseUrl: o,
|
|
@@ -2934,13 +2964,13 @@ function wi({ item: e, blockIndex: t, pathname: n, permissions: r, LinkComponent
|
|
|
2934
2964
|
}), D]
|
|
2935
2965
|
});
|
|
2936
2966
|
}
|
|
2937
|
-
function
|
|
2967
|
+
function Di({ pathname: e, permissions: t, LinkComponent: n = ai, legacyBaseUrl: r, cmsBaseUrl: i, legacySession: a, selectedPublicationId: o, navHrefOverrides: s, items: c = vi, profileServices: l }) {
|
|
2938
2968
|
let { t: u } = G(), [d, f] = I([]);
|
|
2939
2969
|
P(() => {
|
|
2940
2970
|
if (!l) return;
|
|
2941
2971
|
let e = !1;
|
|
2942
2972
|
return l.getPins().then((t) => {
|
|
2943
|
-
e || f((t.pines ?? []).map(
|
|
2973
|
+
e || f((t.pines ?? []).map(Ti).filter((e) => !!e));
|
|
2944
2974
|
}).catch((e) => {
|
|
2945
2975
|
console.error("[SidebarRail] getPins", e);
|
|
2946
2976
|
}), () => {
|
|
@@ -2963,7 +2993,7 @@ function Ti({ pathname: e, permissions: t, LinkComponent: n = ri, legacyBaseUrl:
|
|
|
2963
2993
|
"aria-label": u.sidebar("navAriaLabel"),
|
|
2964
2994
|
sx: q.sxNav,
|
|
2965
2995
|
children: [
|
|
2966
|
-
h.map((l) => /* @__PURE__ */ R(
|
|
2996
|
+
h.map((l) => /* @__PURE__ */ R(Ei, {
|
|
2967
2997
|
item: l,
|
|
2968
2998
|
blockIndex: c.indexOf(l),
|
|
2969
2999
|
pathname: e,
|
|
@@ -2978,7 +3008,7 @@ function Ti({ pathname: e, permissions: t, LinkComponent: n = ri, legacyBaseUrl:
|
|
|
2978
3008
|
onTogglePin: () => p(l.module)
|
|
2979
3009
|
}, l.href)),
|
|
2980
3010
|
h.length > 0 && /* @__PURE__ */ R(B, { sx: q.sxPinDivider }),
|
|
2981
|
-
g.map((l) => /* @__PURE__ */ R(
|
|
3011
|
+
g.map((l) => /* @__PURE__ */ R(Ei, {
|
|
2982
3012
|
item: l,
|
|
2983
3013
|
blockIndex: c.indexOf(l),
|
|
2984
3014
|
pathname: e,
|
|
@@ -3177,11 +3207,11 @@ var J = {
|
|
|
3177
3207
|
};
|
|
3178
3208
|
//#endregion
|
|
3179
3209
|
//#region src/lib/components/site-selector-menu/SiteSelectorMenu.tsx
|
|
3180
|
-
function
|
|
3210
|
+
function Oi(e) {
|
|
3181
3211
|
return !!(e.children && e.children.length > 0);
|
|
3182
3212
|
}
|
|
3183
|
-
function
|
|
3184
|
-
let s =
|
|
3213
|
+
function ki({ publication: e, selected: t, isSub: n, href: r, imageUrl: i, expanded: a, onToggle: o }) {
|
|
3214
|
+
let s = Oi(e);
|
|
3185
3215
|
return /* @__PURE__ */ R("a", {
|
|
3186
3216
|
href: r,
|
|
3187
3217
|
style: {
|
|
@@ -3233,11 +3263,11 @@ function Di({ publication: e, selected: t, isSub: n, href: r, imageUrl: i, expan
|
|
|
3233
3263
|
})
|
|
3234
3264
|
});
|
|
3235
3265
|
}
|
|
3236
|
-
function
|
|
3266
|
+
function Ai({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolvePublicationImageUrl: r }) {
|
|
3237
3267
|
let [i, a] = I(null), o = !!i, [s, c] = I(() => {
|
|
3238
3268
|
let n = /* @__PURE__ */ new Set();
|
|
3239
3269
|
return e.forEach((e) => e.publications.forEach((e) => {
|
|
3240
|
-
|
|
3270
|
+
Oi(e) && e.children.some((e) => String(e.id) === t) && n.add(e.id);
|
|
3241
3271
|
})), n;
|
|
3242
3272
|
}), l = (e) => {
|
|
3243
3273
|
a(e.currentTarget);
|
|
@@ -3303,8 +3333,8 @@ function Oi({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolve
|
|
|
3303
3333
|
sx: J.sxSectionTitle,
|
|
3304
3334
|
children: e.title
|
|
3305
3335
|
}), e.publications.map((e) => {
|
|
3306
|
-
let t =
|
|
3307
|
-
return /* @__PURE__ */ z(B, { children: [/* @__PURE__ */ R(
|
|
3336
|
+
let t = Oi(e), r = s.has(e.id);
|
|
3337
|
+
return /* @__PURE__ */ z(B, { children: [/* @__PURE__ */ R(ki, {
|
|
3308
3338
|
publication: e,
|
|
3309
3339
|
selected: p(e),
|
|
3310
3340
|
isSub: !1,
|
|
@@ -3314,7 +3344,7 @@ function Oi({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolve
|
|
|
3314
3344
|
onToggle: () => d(e.id)
|
|
3315
3345
|
}), t && r ? /* @__PURE__ */ R(B, {
|
|
3316
3346
|
sx: J.sxKids,
|
|
3317
|
-
children: e.children.map((e) => /* @__PURE__ */ R(
|
|
3347
|
+
children: e.children.map((e) => /* @__PURE__ */ R(ki, {
|
|
3318
3348
|
publication: e,
|
|
3319
3349
|
selected: p(e),
|
|
3320
3350
|
isSub: !0,
|
|
@@ -3328,7 +3358,7 @@ function Oi({ sites: e, selectedPublicationId: t, getPublicationHref: n, resolve
|
|
|
3328
3358
|
}
|
|
3329
3359
|
//#endregion
|
|
3330
3360
|
//#region src/lib/components/top-bar/AppearanceMenu.styles.ts
|
|
3331
|
-
var
|
|
3361
|
+
var ji = {
|
|
3332
3362
|
sxPaper: {
|
|
3333
3363
|
mt: 1,
|
|
3334
3364
|
p: 2,
|
|
@@ -3597,7 +3627,7 @@ var ki = {
|
|
|
3597
3627
|
};
|
|
3598
3628
|
//#endregion
|
|
3599
3629
|
//#region src/lib/components/top-bar/AppearanceMenu.tsx
|
|
3600
|
-
function
|
|
3630
|
+
function Mi() {
|
|
3601
3631
|
let { t: e } = G(), { setMode: t } = Ye(), [n, r] = I(null), [i, a] = I(!0), [o, s] = I("light"), c = !!n, l = e.topBar("appearance");
|
|
3602
3632
|
P(() => {
|
|
3603
3633
|
let e = hr();
|
|
@@ -3644,33 +3674,33 @@ function Ai() {
|
|
|
3644
3674
|
horizontal: "right"
|
|
3645
3675
|
},
|
|
3646
3676
|
slotProps: { paper: {
|
|
3647
|
-
sx:
|
|
3677
|
+
sx: ji.sxPaper,
|
|
3648
3678
|
"data-testid": "dropdown-menu-appearance"
|
|
3649
3679
|
} },
|
|
3650
3680
|
children: [
|
|
3651
3681
|
/* @__PURE__ */ R(U, {
|
|
3652
|
-
sx:
|
|
3682
|
+
sx: ji.sxTitle,
|
|
3653
3683
|
children: l
|
|
3654
3684
|
}),
|
|
3655
3685
|
/* @__PURE__ */ z(B, {
|
|
3656
|
-
sx:
|
|
3686
|
+
sx: ji.sxRow,
|
|
3657
3687
|
children: [/* @__PURE__ */ z(B, { children: [/* @__PURE__ */ R(U, {
|
|
3658
|
-
sx:
|
|
3688
|
+
sx: ji.sxRowLabel,
|
|
3659
3689
|
children: e.topBar("newTheme")
|
|
3660
3690
|
}), /* @__PURE__ */ R(U, {
|
|
3661
|
-
sx:
|
|
3691
|
+
sx: ji.sxRowSub,
|
|
3662
3692
|
children: e.topBar("newThemeSubtitle")
|
|
3663
3693
|
})] }), /* @__PURE__ */ R(dn, {
|
|
3664
3694
|
checked: i,
|
|
3665
3695
|
onChange: (e) => u(e.target.checked),
|
|
3666
3696
|
"data-testid": "check-new-theme",
|
|
3667
|
-
sx:
|
|
3697
|
+
sx: ji.sxSwitch,
|
|
3668
3698
|
slotProps: { input: { "aria-label": e.topBar("newTheme") } }
|
|
3669
3699
|
})]
|
|
3670
3700
|
}),
|
|
3671
|
-
/* @__PURE__ */ R(ln, { sx:
|
|
3701
|
+
/* @__PURE__ */ R(ln, { sx: ji.sxDivider }),
|
|
3672
3702
|
/* @__PURE__ */ R(U, {
|
|
3673
|
-
sx:
|
|
3703
|
+
sx: ji.sxCaption,
|
|
3674
3704
|
children: e.topBar("modeLabel")
|
|
3675
3705
|
}),
|
|
3676
3706
|
/* @__PURE__ */ z(pn, {
|
|
@@ -3679,7 +3709,7 @@ function Ai() {
|
|
|
3679
3709
|
onChange: d,
|
|
3680
3710
|
disabled: !i,
|
|
3681
3711
|
"aria-label": e.topBar("modeLabel"),
|
|
3682
|
-
sx:
|
|
3712
|
+
sx: ji.sxToggleGroup,
|
|
3683
3713
|
children: [/* @__PURE__ */ z(fn, {
|
|
3684
3714
|
value: "light",
|
|
3685
3715
|
"aria-label": e.topBar("modeLight"),
|
|
@@ -3695,7 +3725,7 @@ function Ai() {
|
|
|
3695
3725
|
})]
|
|
3696
3726
|
}),
|
|
3697
3727
|
!i && /* @__PURE__ */ R(U, {
|
|
3698
|
-
sx:
|
|
3728
|
+
sx: ji.sxHelper,
|
|
3699
3729
|
children: e.topBar("classicUnavailable")
|
|
3700
3730
|
})
|
|
3701
3731
|
]
|
|
@@ -3703,7 +3733,7 @@ function Ai() {
|
|
|
3703
3733
|
}
|
|
3704
3734
|
//#endregion
|
|
3705
3735
|
//#region src/lib/components/top-bar/notificationsFeed.ts
|
|
3706
|
-
var
|
|
3736
|
+
var Ni = [
|
|
3707
3737
|
"hls",
|
|
3708
3738
|
"dash",
|
|
3709
3739
|
"mp4",
|
|
@@ -3712,14 +3742,14 @@ var ji = [
|
|
|
3712
3742
|
"m3u8",
|
|
3713
3743
|
"mpd"
|
|
3714
3744
|
];
|
|
3715
|
-
function
|
|
3745
|
+
function Pi(e) {
|
|
3716
3746
|
return String(e).padStart(2, "0");
|
|
3717
3747
|
}
|
|
3718
|
-
function
|
|
3748
|
+
function Fi(e) {
|
|
3719
3749
|
if (e == null) return null;
|
|
3720
3750
|
if (typeof e == "object") {
|
|
3721
3751
|
let t = e.time;
|
|
3722
|
-
return
|
|
3752
|
+
return Fi(t);
|
|
3723
3753
|
}
|
|
3724
3754
|
if (typeof e == "string") {
|
|
3725
3755
|
let t = e.trim();
|
|
@@ -3730,8 +3760,8 @@ function Ni(e) {
|
|
|
3730
3760
|
let t = Number(e);
|
|
3731
3761
|
return Number.isNaN(t) ? null : t;
|
|
3732
3762
|
}
|
|
3733
|
-
function
|
|
3734
|
-
let r =
|
|
3763
|
+
function Ii(e, t, n) {
|
|
3764
|
+
let r = Fi(e);
|
|
3735
3765
|
if (r == null) return {
|
|
3736
3766
|
date: "",
|
|
3737
3767
|
time: "",
|
|
@@ -3739,7 +3769,7 @@ function Pi(e, t, n) {
|
|
|
3739
3769
|
isYesterday: !1,
|
|
3740
3770
|
sortTime: 0
|
|
3741
3771
|
};
|
|
3742
|
-
let i = u(r, t), a = new Date(i), o = `${
|
|
3772
|
+
let i = u(r, t), a = new Date(i), o = `${Pi(a.getUTCDate())}/${Pi(a.getUTCMonth() + 1)}/${a.getUTCFullYear()}`, s = `${Pi(a.getUTCHours())}:${Pi(a.getUTCMinutes())}`, c = new Date(n), l = /* @__PURE__ */ new Date(n - 864e5), d = (e, t) => e.getUTCFullYear() === t.getUTCFullYear() && e.getUTCMonth() === t.getUTCMonth() && e.getUTCDate() === t.getUTCDate();
|
|
3743
3773
|
return {
|
|
3744
3774
|
date: o,
|
|
3745
3775
|
time: s,
|
|
@@ -3748,24 +3778,24 @@ function Pi(e, t, n) {
|
|
|
3748
3778
|
sortTime: r
|
|
3749
3779
|
};
|
|
3750
3780
|
}
|
|
3751
|
-
function
|
|
3752
|
-
let n =
|
|
3781
|
+
function Li(e, t) {
|
|
3782
|
+
let n = Fi(e);
|
|
3753
3783
|
if (n == null) return {
|
|
3754
3784
|
date: "",
|
|
3755
3785
|
time: ""
|
|
3756
3786
|
};
|
|
3757
3787
|
let r = new Date(u(n, t));
|
|
3758
3788
|
return {
|
|
3759
|
-
date: `${
|
|
3760
|
-
time: `${
|
|
3789
|
+
date: `${Pi(r.getUTCDate())}/${Pi(r.getUTCMonth() + 1)}`,
|
|
3790
|
+
time: `${Pi(r.getUTCHours())}:${Pi(r.getUTCMinutes())}`
|
|
3761
3791
|
};
|
|
3762
3792
|
}
|
|
3763
|
-
function
|
|
3793
|
+
function Ri(e) {
|
|
3764
3794
|
if (!e) return "";
|
|
3765
|
-
let t = e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), n = RegExp(`\\b(${
|
|
3795
|
+
let t = e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), n = RegExp(`\\b(${Ni.join("|")})\\b`, "gi");
|
|
3766
3796
|
return t.replace(n, (e) => `<strong>${e.toUpperCase()}</strong>`);
|
|
3767
3797
|
}
|
|
3768
|
-
function
|
|
3798
|
+
function zi(e) {
|
|
3769
3799
|
if (!e) return {
|
|
3770
3800
|
preText: "",
|
|
3771
3801
|
pathPart: "",
|
|
@@ -3782,16 +3812,16 @@ function Li(e) {
|
|
|
3782
3812
|
postText: ""
|
|
3783
3813
|
};
|
|
3784
3814
|
}
|
|
3785
|
-
function
|
|
3815
|
+
function Bi(e, t, n) {
|
|
3786
3816
|
if (!e || !e.length) return null;
|
|
3787
|
-
let r = e.filter((e) => e &&
|
|
3817
|
+
let r = e.filter((e) => e && Fi(e.timeStamp) != null), i = r.length ? r.reduce((e, t) => Number(Fi(t.timeStamp)) > Number(Fi(e.timeStamp)) ? t : e, r[0]) : null;
|
|
3788
3818
|
return {
|
|
3789
3819
|
id: "assigned-group",
|
|
3790
3820
|
type: "assigned",
|
|
3791
|
-
...
|
|
3821
|
+
...Ii(i ? i.timeStamp : Date.now(), t, n),
|
|
3792
3822
|
count: e.length,
|
|
3793
3823
|
children: e.map((e) => {
|
|
3794
|
-
let r =
|
|
3824
|
+
let r = Ii(e.assignedDate, t, n);
|
|
3795
3825
|
return {
|
|
3796
3826
|
title: String(e.title ?? ""),
|
|
3797
3827
|
code: `CP-${e.id}`,
|
|
@@ -3808,9 +3838,9 @@ function Ri(e, t, n) {
|
|
|
3808
3838
|
unread: e.some((e) => !e.isRead)
|
|
3809
3839
|
};
|
|
3810
3840
|
}
|
|
3811
|
-
function
|
|
3841
|
+
function Vi(e, t, n, r) {
|
|
3812
3842
|
if (!e || !e.length) return null;
|
|
3813
|
-
let i = e.filter((e) => e && e.startdate != null), a = i.length ? i.reduce((e, t) => Number(t.startdate) < Number(e.startdate) ? t : e, i[0]) : e[0], o =
|
|
3843
|
+
let i = e.filter((e) => e && e.startdate != null), a = i.length ? i.reduce((e, t) => Number(t.startdate) < Number(e.startdate) ? t : e, i[0]) : e[0], o = Ii(r, t, n), s = a.startdate == null ? null : Li(a.startdate, t);
|
|
3814
3844
|
return {
|
|
3815
3845
|
id: "pending-group",
|
|
3816
3846
|
type: "pending",
|
|
@@ -3818,7 +3848,7 @@ function zi(e, t, n, r) {
|
|
|
3818
3848
|
count: e.length,
|
|
3819
3849
|
expirationDatetime: s ? `${s.date}, ${s.time}hs` : "",
|
|
3820
3850
|
children: e.map((e) => {
|
|
3821
|
-
let n =
|
|
3851
|
+
let n = Li(e.startdate, t);
|
|
3822
3852
|
return {
|
|
3823
3853
|
title: String(e.title ?? ""),
|
|
3824
3854
|
code: `CP-${e.id}`,
|
|
@@ -3834,10 +3864,10 @@ function zi(e, t, n, r) {
|
|
|
3834
3864
|
unread: e.some((e) => !e.isRead)
|
|
3835
3865
|
};
|
|
3836
3866
|
}
|
|
3837
|
-
function
|
|
3867
|
+
function Hi(e, t, n, r) {
|
|
3838
3868
|
let i = String(e.description ?? ""), a = i.indexOf("("), o = i.indexOf(")"), s, c = "", l = i;
|
|
3839
3869
|
a !== -1 && o !== -1 && o > a ? (s = i.substring(0, a).trim(), c = i.substring(a, o + 1).trim(), l = i.substring(o + 1).trim()) : s = String(e.userName ?? "");
|
|
3840
|
-
let u =
|
|
3870
|
+
let u = zi(l), d = Ii(e.timeStamp, t, n);
|
|
3841
3871
|
return {
|
|
3842
3872
|
id: `system-${e.actionId ?? "x"}-${r}`,
|
|
3843
3873
|
type: "system",
|
|
@@ -3845,15 +3875,15 @@ function Bi(e, t, n, r) {
|
|
|
3845
3875
|
userFullName: s,
|
|
3846
3876
|
userLogin: c,
|
|
3847
3877
|
pathPart: u.pathPart,
|
|
3848
|
-
preTextHtml:
|
|
3849
|
-
postTextHtml:
|
|
3850
|
-
detailHtml:
|
|
3878
|
+
preTextHtml: Ri(u.preText),
|
|
3879
|
+
postTextHtml: Ri(u.postText),
|
|
3880
|
+
detailHtml: Ri(i),
|
|
3851
3881
|
unread: !e.isRead
|
|
3852
3882
|
};
|
|
3853
3883
|
}
|
|
3854
|
-
function
|
|
3884
|
+
function Ui(e, t, n) {
|
|
3855
3885
|
return !e || !e.length ? [] : e.map((e, r) => {
|
|
3856
|
-
let i =
|
|
3886
|
+
let i = Ii(e.timeStamp, t, n);
|
|
3857
3887
|
return {
|
|
3858
3888
|
id: `unassigned-${e.id ?? "x"}-${r}`,
|
|
3859
3889
|
type: "unassigned",
|
|
@@ -3865,15 +3895,15 @@ function Vi(e, t, n) {
|
|
|
3865
3895
|
};
|
|
3866
3896
|
});
|
|
3867
3897
|
}
|
|
3868
|
-
function
|
|
3898
|
+
function Wi(e, t, n, r) {
|
|
3869
3899
|
if (!e || !e.length) return null;
|
|
3870
3900
|
let i = e.filter((e) => e && !(e.id != null && r.has(String(e.id))));
|
|
3871
3901
|
if (!i.length) return null;
|
|
3872
|
-
let a = i.filter((e) =>
|
|
3902
|
+
let a = i.filter((e) => Fi(e.created_at) != null), o = a.length ? a.reduce((e, t) => Number(Fi(t.created_at)) > Number(Fi(e.created_at)) ? t : e, a[0]) : null;
|
|
3873
3903
|
return {
|
|
3874
3904
|
id: "editorial-group",
|
|
3875
3905
|
type: "editorialOpportunity",
|
|
3876
|
-
...
|
|
3906
|
+
...Ii(o ? o.created_at : Date.now(), t, n),
|
|
3877
3907
|
count: i.length,
|
|
3878
3908
|
children: i.map((e) => ({
|
|
3879
3909
|
id: e.id == null ? void 0 : String(e.id),
|
|
@@ -3886,24 +3916,24 @@ function Hi(e, t, n, r) {
|
|
|
3886
3916
|
unread: i.some((e) => !e.isRead)
|
|
3887
3917
|
};
|
|
3888
3918
|
}
|
|
3889
|
-
function
|
|
3919
|
+
function Gi(e, t = {}) {
|
|
3890
3920
|
let n = t.now ?? Date.now(), r = t.gmtRedaction, i = u(n, r), a = new Set(t.snoozedCopilotIds ?? []), o = [];
|
|
3891
3921
|
if (e) {
|
|
3892
|
-
let t =
|
|
3922
|
+
let t = Wi(e.copilot, r, i, a);
|
|
3893
3923
|
t && o.push(t);
|
|
3894
|
-
let s =
|
|
3924
|
+
let s = Bi(e.newsTask, r, i);
|
|
3895
3925
|
s && o.push(s);
|
|
3896
|
-
let c =
|
|
3897
|
-
c && o.push(c), o.push(...
|
|
3898
|
-
o.push(
|
|
3926
|
+
let c = Vi(e.expireTask, r, i, n);
|
|
3927
|
+
c && o.push(c), o.push(...Ui(e.unassignTask, r, i)), (e.videos ?? []).forEach((e, t) => {
|
|
3928
|
+
o.push(Hi(e, r, i, t));
|
|
3899
3929
|
});
|
|
3900
3930
|
}
|
|
3901
3931
|
return o.sort((e, t) => (t.sortTime || 0) - (e.sortTime || 0)), o;
|
|
3902
3932
|
}
|
|
3903
|
-
function
|
|
3933
|
+
function Ki(e, t) {
|
|
3904
3934
|
return e ? `${e.replace(/\/$/, "")}${t}` : t;
|
|
3905
3935
|
}
|
|
3906
|
-
function
|
|
3936
|
+
function qi(e, t, n) {
|
|
3907
3937
|
let r = e.publication == null ? Number(n) : Number(e.publication);
|
|
3908
3938
|
if (!r) return;
|
|
3909
3939
|
let i = `/admin/planning/${r}`;
|
|
@@ -3914,7 +3944,7 @@ function Gi(e, t, n) {
|
|
|
3914
3944
|
});
|
|
3915
3945
|
e.eventId && t.set("eventId", String(e.eventId)), i += `?${t.toString()}`;
|
|
3916
3946
|
}
|
|
3917
|
-
return
|
|
3947
|
+
return Ki(t, i);
|
|
3918
3948
|
}
|
|
3919
3949
|
//#endregion
|
|
3920
3950
|
//#region src/lib/components/top-bar/NotificationsMenu.styles.ts
|
|
@@ -4328,15 +4358,15 @@ var X = {
|
|
|
4328
4358
|
}
|
|
4329
4359
|
},
|
|
4330
4360
|
sxOpportunitySeeMoreIcon: { fontSize: 18 }
|
|
4331
|
-
},
|
|
4361
|
+
}, Ji = {
|
|
4332
4362
|
assigned: hn,
|
|
4333
4363
|
pending: yn,
|
|
4334
4364
|
unassigned: vn,
|
|
4335
4365
|
system: Nt,
|
|
4336
4366
|
editorialOpportunity: bt
|
|
4337
4367
|
};
|
|
4338
|
-
function
|
|
4339
|
-
let { t: u } = G(), [d, f] = I(null), [p, m] = I({}), [h, g] = I(null), [_, v] = I(/* @__PURE__ */ new Set()), b = !!d, x = e > 0 ? e : void 0, S = F(() =>
|
|
4368
|
+
function Yi({ unreadCount: e, notificationsData: t, masterBaseUrl: n, currentPublicationId: r, gmtRedaction: i, copilotSuggestionsHref: a, onEditorialSeeMore: o, onEditorialRemindLater: s, onOpen: c, loading: l }) {
|
|
4369
|
+
let { t: u } = G(), [d, f] = I(null), [p, m] = I({}), [h, g] = I(null), [_, v] = I(/* @__PURE__ */ new Set()), b = !!d, x = e > 0 ? e : void 0, S = F(() => Gi(t, {
|
|
4340
4370
|
now: h ?? void 0,
|
|
4341
4371
|
gmtRedaction: i,
|
|
4342
4372
|
snoozedCopilotIds: _
|
|
@@ -4419,7 +4449,7 @@ function qi({ unreadCount: e, notificationsData: t, masterBaseUrl: n, currentPub
|
|
|
4419
4449
|
sx: X.sxTimestamp,
|
|
4420
4450
|
children: O(e)
|
|
4421
4451
|
}) : null,
|
|
4422
|
-
e.type === "editorialOpportunity" ? /* @__PURE__ */ R(
|
|
4452
|
+
e.type === "editorialOpportunity" ? /* @__PURE__ */ R(Xi, {
|
|
4423
4453
|
item: e,
|
|
4424
4454
|
open: !!p[e.id],
|
|
4425
4455
|
onToggle: () => T(e.id),
|
|
@@ -4427,10 +4457,10 @@ function qi({ unreadCount: e, notificationsData: t, masterBaseUrl: n, currentPub
|
|
|
4427
4457
|
onSeeMore: D,
|
|
4428
4458
|
seeMoreHref: a,
|
|
4429
4459
|
t: u
|
|
4430
|
-
}) : e.type === "unassigned" ? /* @__PURE__ */ R(
|
|
4460
|
+
}) : e.type === "unassigned" ? /* @__PURE__ */ R(Qi, {
|
|
4431
4461
|
item: e,
|
|
4432
4462
|
t: u
|
|
4433
|
-
}) : e.type === "system" ? /* @__PURE__ */ R(
|
|
4463
|
+
}) : e.type === "system" ? /* @__PURE__ */ R(Zi, { item: e }) : /* @__PURE__ */ R($i, {
|
|
4434
4464
|
item: e,
|
|
4435
4465
|
open: !!p[e.id],
|
|
4436
4466
|
onToggle: () => T(e.id),
|
|
@@ -4444,7 +4474,7 @@ function qi({ unreadCount: e, notificationsData: t, masterBaseUrl: n, currentPub
|
|
|
4444
4474
|
})]
|
|
4445
4475
|
})] });
|
|
4446
4476
|
}
|
|
4447
|
-
function
|
|
4477
|
+
function Xi({ item: e, open: t, onToggle: n, onRemindLater: r, onSeeMore: i, seeMoreHref: a, t: o }) {
|
|
4448
4478
|
let s = e.children ?? [], [c, ...l] = s, u = e.count ?? s.length, d = !!a && /^https?:\/\//i.test(a), f = a ? {
|
|
4449
4479
|
href: a,
|
|
4450
4480
|
onClick: i,
|
|
@@ -4631,7 +4661,7 @@ function Ji({ item: e, open: t, onToggle: n, onRemindLater: r, onSeeMore: i, see
|
|
|
4631
4661
|
]
|
|
4632
4662
|
});
|
|
4633
4663
|
}
|
|
4634
|
-
function
|
|
4664
|
+
function Zi({ item: e }) {
|
|
4635
4665
|
let t = e.userFullName || e.userLogin || e.preTextHtml || e.pathPart || e.postTextHtml;
|
|
4636
4666
|
return /* @__PURE__ */ z(B, {
|
|
4637
4667
|
sx: X.sxRow(!1),
|
|
@@ -4673,7 +4703,7 @@ function Yi({ item: e }) {
|
|
|
4673
4703
|
})]
|
|
4674
4704
|
});
|
|
4675
4705
|
}
|
|
4676
|
-
function
|
|
4706
|
+
function Qi({ item: e, t }) {
|
|
4677
4707
|
let n = !!(e.userFullName || e.userLogin);
|
|
4678
4708
|
return /* @__PURE__ */ z(B, {
|
|
4679
4709
|
sx: X.sxRow(!1),
|
|
@@ -4714,8 +4744,8 @@ function Xi({ item: e, t }) {
|
|
|
4714
4744
|
})]
|
|
4715
4745
|
});
|
|
4716
4746
|
}
|
|
4717
|
-
function
|
|
4718
|
-
let s =
|
|
4747
|
+
function $i({ item: e, open: t, onToggle: n, masterBaseUrl: r, currentPublicationId: i, onNavigate: a, t: o }) {
|
|
4748
|
+
let s = Ji[e.type], c = e.type === "assigned" ? o.notificationsMenu("assignedBefore") : o.notificationsMenu("pendingBefore"), l = e.type === "assigned" ? o.notificationsMenu("assignedAfter") : o.notificationsMenu("pendingAfter");
|
|
4719
4749
|
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ z(B, {
|
|
4720
4750
|
component: "button",
|
|
4721
4751
|
type: "button",
|
|
@@ -4756,7 +4786,7 @@ function Zi({ item: e, open: t, onToggle: n, masterBaseUrl: r, currentPublicatio
|
|
|
4756
4786
|
unmountOnExit: !0,
|
|
4757
4787
|
children: /* @__PURE__ */ R(B, {
|
|
4758
4788
|
sx: X.sxTopics,
|
|
4759
|
-
children: (e.children ?? []).map((t, n) => /* @__PURE__ */ R(
|
|
4789
|
+
children: (e.children ?? []).map((t, n) => /* @__PURE__ */ R(ea, {
|
|
4760
4790
|
topic: t,
|
|
4761
4791
|
type: e.type,
|
|
4762
4792
|
masterBaseUrl: r,
|
|
@@ -4767,8 +4797,8 @@ function Zi({ item: e, open: t, onToggle: n, masterBaseUrl: r, currentPublicatio
|
|
|
4767
4797
|
})
|
|
4768
4798
|
})] });
|
|
4769
4799
|
}
|
|
4770
|
-
function
|
|
4771
|
-
let o =
|
|
4800
|
+
function ea({ topic: e, type: t, masterBaseUrl: n, currentPublicationId: r, onNavigate: i, t: a }) {
|
|
4801
|
+
let o = qi(e, n, r), s = e.assignedToday ? a.notificationsMenu("assignedToday") : e.assignedYesterday ? a.notificationsMenu("assignedYesterday") : `${a.notificationsMenu("assignedOn")} ${e.assignedDate ?? ""}`;
|
|
4772
4802
|
return /* @__PURE__ */ z(B, {
|
|
4773
4803
|
component: o ? "a" : "div",
|
|
4774
4804
|
href: o,
|
|
@@ -4812,7 +4842,7 @@ function Qi({ topic: e, type: t, masterBaseUrl: n, currentPublicationId: r, onNa
|
|
|
4812
4842
|
}
|
|
4813
4843
|
//#endregion
|
|
4814
4844
|
//#region src/lib/components/dropdowns/SimpleDropdown.styles.ts
|
|
4815
|
-
var
|
|
4845
|
+
var ta = {
|
|
4816
4846
|
sxTriggerWrap: { display: "inline-flex" },
|
|
4817
4847
|
sxIconTrigger: (e) => ({
|
|
4818
4848
|
borderRadius: "30px",
|
|
@@ -4899,7 +4929,7 @@ var $i = {
|
|
|
4899
4929
|
};
|
|
4900
4930
|
//#endregion
|
|
4901
4931
|
//#region src/lib/components/dropdowns/SimpleDropdown.tsx
|
|
4902
|
-
function
|
|
4932
|
+
function na({ options: e, trigger: t, triggerIcon: n, columns: r = 1, footer: i, minWidth: a = 220, anchorOrigin: o = {
|
|
4903
4933
|
vertical: "bottom",
|
|
4904
4934
|
horizontal: "right"
|
|
4905
4935
|
}, transformOrigin: s = {
|
|
@@ -4927,19 +4957,19 @@ function ea({ options: e, trigger: t, triggerIcon: n, columns: r = 1, footer: i,
|
|
|
4927
4957
|
selected: e.selected,
|
|
4928
4958
|
onClick: () => C(e, n),
|
|
4929
4959
|
"data-testid": e.testId,
|
|
4930
|
-
sx:
|
|
4960
|
+
sx: ta.sxItem(!!e.selected),
|
|
4931
4961
|
children: [e.icon ? /* @__PURE__ */ R(gt, {
|
|
4932
|
-
sx:
|
|
4962
|
+
sx: ta.sxIcon,
|
|
4933
4963
|
children: e.icon
|
|
4934
4964
|
}) : null, /* @__PURE__ */ z(B, {
|
|
4935
|
-
sx:
|
|
4965
|
+
sx: ta.sxItemText,
|
|
4936
4966
|
children: [/* @__PURE__ */ R(U, {
|
|
4937
4967
|
component: "span",
|
|
4938
|
-
sx:
|
|
4968
|
+
sx: ta.sxLabel(!!e.description),
|
|
4939
4969
|
children: e.label
|
|
4940
4970
|
}), e.description ? /* @__PURE__ */ R(U, {
|
|
4941
4971
|
component: "span",
|
|
4942
|
-
sx:
|
|
4972
|
+
sx: ta.sxDescription,
|
|
4943
4973
|
children: e.description
|
|
4944
4974
|
}) : null]
|
|
4945
4975
|
})]
|
|
@@ -4950,19 +4980,19 @@ function ea({ options: e, trigger: t, triggerIcon: n, columns: r = 1, footer: i,
|
|
|
4950
4980
|
onClick: () => {
|
|
4951
4981
|
e.disabled || (e.onClick?.(e), c && b());
|
|
4952
4982
|
},
|
|
4953
|
-
sx:
|
|
4983
|
+
sx: ta.sxSubItem,
|
|
4954
4984
|
children: e.label
|
|
4955
4985
|
}, `${n}-${e.id ?? t}`)) : null
|
|
4956
4986
|
] }, n);
|
|
4957
4987
|
}, T = /* @__PURE__ */ R(V, {
|
|
4958
4988
|
"aria-haspopup": "true",
|
|
4959
|
-
sx:
|
|
4989
|
+
sx: ta.sxIconTrigger(y),
|
|
4960
4990
|
children: n ?? /* @__PURE__ */ R(Tn, {})
|
|
4961
4991
|
}), E = typeof t == "function" ? t({ open: y }) : t ?? T;
|
|
4962
4992
|
return /* @__PURE__ */ z(L, { children: [!p && E ? /* @__PURE__ */ R(B, {
|
|
4963
4993
|
component: "span",
|
|
4964
4994
|
onClick: x,
|
|
4965
|
-
sx:
|
|
4995
|
+
sx: ta.sxTriggerWrap,
|
|
4966
4996
|
children: E
|
|
4967
4997
|
}) : null, /* @__PURE__ */ z(vt, {
|
|
4968
4998
|
anchorEl: v,
|
|
@@ -4971,20 +5001,20 @@ function ea({ options: e, trigger: t, triggerIcon: n, columns: r = 1, footer: i,
|
|
|
4971
5001
|
anchorOrigin: o,
|
|
4972
5002
|
transformOrigin: s,
|
|
4973
5003
|
slotProps: {
|
|
4974
|
-
paper: { sx:
|
|
5004
|
+
paper: { sx: ta.sxMenuPaper(a, s.vertical === "bottom") },
|
|
4975
5005
|
list: {
|
|
4976
|
-
sx:
|
|
5006
|
+
sx: ta.sxList,
|
|
4977
5007
|
...f ? { "data-testid": f } : {}
|
|
4978
5008
|
}
|
|
4979
5009
|
},
|
|
4980
5010
|
children: [
|
|
4981
5011
|
r === 2 ? /* @__PURE__ */ R(B, {
|
|
4982
|
-
sx:
|
|
5012
|
+
sx: ta.sxGrid,
|
|
4983
5013
|
children: S.map((e, t) => w(e, t))
|
|
4984
5014
|
}) : S.map((e, t) => w(e, t)),
|
|
4985
5015
|
i ? /* @__PURE__ */ R(ln, { sx: { my: .5 } }) : null,
|
|
4986
5016
|
i ? /* @__PURE__ */ R(B, {
|
|
4987
|
-
sx:
|
|
5017
|
+
sx: ta.sxFooter,
|
|
4988
5018
|
children: i
|
|
4989
5019
|
}) : null
|
|
4990
5020
|
]
|
|
@@ -4992,7 +5022,7 @@ function ea({ options: e, trigger: t, triggerIcon: n, columns: r = 1, footer: i,
|
|
|
4992
5022
|
}
|
|
4993
5023
|
//#endregion
|
|
4994
5024
|
//#region src/lib/components/top-bar/previewMenu.config.ts
|
|
4995
|
-
var
|
|
5025
|
+
var ra = [
|
|
4996
5026
|
{
|
|
4997
5027
|
id: "desktop",
|
|
4998
5028
|
labelKey: "desktop",
|
|
@@ -5013,14 +5043,14 @@ var ta = [
|
|
|
5013
5043
|
];
|
|
5014
5044
|
//#endregion
|
|
5015
5045
|
//#region src/lib/components/top-bar/PreviewMenu.tsx
|
|
5016
|
-
function
|
|
5046
|
+
function ia({ formats: e = ra, cmsBaseUrl: t, legacySession: n, onSelect: r }) {
|
|
5017
5047
|
let { t: i } = G(), a = i.topBar("preview"), o = F(() => e.map((e) => ({
|
|
5018
5048
|
id: e.id,
|
|
5019
5049
|
label: e.labelKey ? i.previewMenu(e.labelKey) : e.label,
|
|
5020
5050
|
testId: `dropdown-item-preview-${e.id}`,
|
|
5021
5051
|
onClick: () => {
|
|
5022
5052
|
if (t && n && e.path) {
|
|
5023
|
-
|
|
5053
|
+
li({
|
|
5024
5054
|
cmsBaseUrl: t,
|
|
5025
5055
|
path: e.path,
|
|
5026
5056
|
session: n,
|
|
@@ -5040,7 +5070,7 @@ function na({ formats: e = ta, cmsBaseUrl: t, legacySession: n, onSelect: r }) {
|
|
|
5040
5070
|
r,
|
|
5041
5071
|
i
|
|
5042
5072
|
]);
|
|
5043
|
-
return e.length === 0 ? null : /* @__PURE__ */ R(
|
|
5073
|
+
return e.length === 0 ? null : /* @__PURE__ */ R(na, {
|
|
5044
5074
|
options: o,
|
|
5045
5075
|
anchorOrigin: {
|
|
5046
5076
|
vertical: "bottom",
|
|
@@ -5066,36 +5096,36 @@ function na({ formats: e = ta, cmsBaseUrl: t, legacySession: n, onSelect: r }) {
|
|
|
5066
5096
|
}
|
|
5067
5097
|
//#endregion
|
|
5068
5098
|
//#region src/lib/utils/cms-asset.ts
|
|
5069
|
-
var
|
|
5070
|
-
function
|
|
5099
|
+
var aa = "https://dev.cms-medios.com";
|
|
5100
|
+
function oa(e) {
|
|
5071
5101
|
let t = e?.trim();
|
|
5072
|
-
return t ? t.replace(/\/$/, "") :
|
|
5102
|
+
return t ? t.replace(/\/$/, "") : aa;
|
|
5073
5103
|
}
|
|
5074
|
-
function
|
|
5104
|
+
function sa(e, t) {
|
|
5075
5105
|
if (!e) return "";
|
|
5076
5106
|
if (e.startsWith("http://") || e.startsWith("https://")) return e;
|
|
5077
5107
|
let n = e.startsWith("/") ? e : `/${e}`;
|
|
5078
|
-
return `${
|
|
5108
|
+
return `${oa(t)}${n}`;
|
|
5079
5109
|
}
|
|
5080
5110
|
//#endregion
|
|
5081
5111
|
//#region src/lib/utils/profile-avatar.ts
|
|
5082
|
-
var
|
|
5083
|
-
function
|
|
5084
|
-
let { image: n } = e, r = t?.fallbackAvatar ??
|
|
5085
|
-
return !n || n ===
|
|
5112
|
+
var ca = "noPicture", la = "/topbar_profile.png";
|
|
5113
|
+
function ua(e, t) {
|
|
5114
|
+
let { image: n } = e, r = t?.fallbackAvatar ?? la;
|
|
5115
|
+
return !n || n === ca ? r : sa(n, t?.cmsOrigin);
|
|
5086
5116
|
}
|
|
5087
|
-
function
|
|
5117
|
+
function da(e) {
|
|
5088
5118
|
if (e.fullName?.trim()) return e.fullName.trim();
|
|
5089
5119
|
let t = [e.firstName, e.lastName].filter(Boolean);
|
|
5090
5120
|
return t.length > 0 ? t.join(" ") : e.userName;
|
|
5091
5121
|
}
|
|
5092
|
-
function
|
|
5122
|
+
function fa(e) {
|
|
5093
5123
|
let t = [e.firstName, e.lastName].filter(Boolean);
|
|
5094
5124
|
return t.length > 0 ? t.join(" ") : e.userName;
|
|
5095
5125
|
}
|
|
5096
5126
|
//#endregion
|
|
5097
5127
|
//#region src/lib/components/user-avatar/UserAvatar.styles.ts
|
|
5098
|
-
var
|
|
5128
|
+
var pa = .58, ma = {
|
|
5099
5129
|
sxAvatar: (e, t, n, r = !1, i = !1) => ({
|
|
5100
5130
|
width: e,
|
|
5101
5131
|
height: e,
|
|
@@ -5104,7 +5134,7 @@ var da = .58, fa = {
|
|
|
5104
5134
|
cursor: t ? "pointer" : "default"
|
|
5105
5135
|
}),
|
|
5106
5136
|
sxIcon: (e, t, n = !1) => ({
|
|
5107
|
-
fontSize: Math.round(e *
|
|
5137
|
+
fontSize: Math.round(e * pa),
|
|
5108
5138
|
color: t ? A.avatarInactiveIcon : n ? "m3.onSurfaceVariant" : A.onSecondaryContainer
|
|
5109
5139
|
}),
|
|
5110
5140
|
sxTooltip: {
|
|
@@ -5112,51 +5142,51 @@ var da = .58, fa = {
|
|
|
5112
5142
|
color: A.white,
|
|
5113
5143
|
"& .MuiTooltip-arrow": { color: A.tooltipSurface }
|
|
5114
5144
|
}
|
|
5115
|
-
},
|
|
5116
|
-
function
|
|
5145
|
+
}, ha = Qe(null);
|
|
5146
|
+
function ga({ initialPhoto: e = null, children: t }) {
|
|
5117
5147
|
let [n, r] = I(e), [i, a] = I(e);
|
|
5118
5148
|
i !== e && (a(e), r(e));
|
|
5119
5149
|
let o = F(() => ({
|
|
5120
5150
|
photo: n,
|
|
5121
5151
|
setPhoto: r
|
|
5122
5152
|
}), [n]);
|
|
5123
|
-
return /* @__PURE__ */ R(
|
|
5153
|
+
return /* @__PURE__ */ R(ha.Provider, {
|
|
5124
5154
|
value: o,
|
|
5125
5155
|
children: t
|
|
5126
5156
|
});
|
|
5127
5157
|
}
|
|
5128
5158
|
//#endregion
|
|
5129
5159
|
//#region src/lib/components/user-avatar/useCurrentUserPhoto.ts
|
|
5130
|
-
function
|
|
5131
|
-
return nt(
|
|
5160
|
+
function _a() {
|
|
5161
|
+
return nt(ha);
|
|
5132
5162
|
}
|
|
5133
5163
|
//#endregion
|
|
5134
5164
|
//#region src/lib/components/user-avatar/UserAvatar.tsx
|
|
5135
|
-
var
|
|
5136
|
-
function
|
|
5137
|
-
let { t: p } = G(), m =
|
|
5165
|
+
var va = "noPicture";
|
|
5166
|
+
function ya({ photo: e, description: t, username: n, size: r = 32, showTooltip: i = !0, inactive: a = !1, neutralFallback: o = !1, transparentFallbackBg: s = !1, cmsOrigin: c, crossOrigin: l, isCurrentUser: u = !1, onClick: d, testId: f }) {
|
|
5167
|
+
let { t: p } = G(), m = _a(), h = u && m ? m.photo : e, g = F(() => !h || h === va ? "" : sa(h, c), [h, c]), _ = t?.trim() || n?.trim() || "", v = _ || p.userAvatar("unknownUser"), y = _ || p.userAvatar("alt"), b = /* @__PURE__ */ R(An, {
|
|
5138
5168
|
src: g || void 0,
|
|
5139
5169
|
alt: y,
|
|
5140
5170
|
onClick: d,
|
|
5141
5171
|
"data-testid": f ? `avatar-${f}` : void 0,
|
|
5142
5172
|
slotProps: l ? { img: { crossOrigin: l } } : void 0,
|
|
5143
|
-
sx:
|
|
5144
|
-
children: /* @__PURE__ */ R(kn, { sx:
|
|
5173
|
+
sx: ma.sxAvatar(r, !!d, a, o, s),
|
|
5174
|
+
children: /* @__PURE__ */ R(kn, { sx: ma.sxIcon(r, a, o) })
|
|
5145
5175
|
});
|
|
5146
5176
|
return i ? /* @__PURE__ */ R(at, {
|
|
5147
5177
|
title: v,
|
|
5148
5178
|
arrow: !0,
|
|
5149
|
-
slotProps: { tooltip: { sx:
|
|
5179
|
+
slotProps: { tooltip: { sx: ma.sxTooltip } },
|
|
5150
5180
|
children: b
|
|
5151
5181
|
}) : b;
|
|
5152
5182
|
}
|
|
5153
5183
|
//#endregion
|
|
5154
5184
|
//#region src/lib/components/top-bar/ProfileMenu.tsx
|
|
5155
|
-
var
|
|
5156
|
-
function
|
|
5185
|
+
var ba = "/admin/user_profile/user-settings", xa = "/system/login", Sa = "ACCESS_WEBMASTERS";
|
|
5186
|
+
function Ca(e, t) {
|
|
5157
5187
|
return e ? `${e.replace(/\/$/, "")}${t}` : t;
|
|
5158
5188
|
}
|
|
5159
|
-
function
|
|
5189
|
+
function wa({ label: e, icon: t, onSelect: n, href: r, external: i, danger: a, testId: o }) {
|
|
5160
5190
|
let s = a ? A.danger : "text.primary";
|
|
5161
5191
|
return /* @__PURE__ */ z(yt, {
|
|
5162
5192
|
onClick: n,
|
|
@@ -5183,13 +5213,13 @@ function Sa({ label: e, icon: t, onSelect: n, href: r, external: i, danger: a, t
|
|
|
5183
5213
|
})]
|
|
5184
5214
|
});
|
|
5185
5215
|
}
|
|
5186
|
-
function
|
|
5187
|
-
let { t: s } = G(), [c, l] = I(null), u = !!c, d =
|
|
5216
|
+
function Ta({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, legacySession: i, operationPermissions: a, isAdmin: o }) {
|
|
5217
|
+
let { t: s } = G(), [c, l] = I(null), u = !!c, d = da(e), f = fa(e), p = [e.lastName, e.firstName].filter(Boolean).join(" ") || e.userName, m = a === void 0 || !!o || a.includes(Sa), h = F(() => {
|
|
5188
5218
|
let e = [{
|
|
5189
5219
|
id: "profile",
|
|
5190
5220
|
labelKey: "myProfile",
|
|
5191
5221
|
icon: En,
|
|
5192
|
-
href:
|
|
5222
|
+
href: Ca(n, ba)
|
|
5193
5223
|
}];
|
|
5194
5224
|
if (m) {
|
|
5195
5225
|
let t = !!(r && i);
|
|
@@ -5198,12 +5228,12 @@ function Ca({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, leg
|
|
|
5198
5228
|
labelKey: "webmasterView",
|
|
5199
5229
|
icon: Dn,
|
|
5200
5230
|
external: !0,
|
|
5201
|
-
onActivate: t ? () =>
|
|
5231
|
+
onActivate: t ? () => li({
|
|
5202
5232
|
cmsBaseUrl: r,
|
|
5203
|
-
path:
|
|
5233
|
+
path: xa,
|
|
5204
5234
|
session: i
|
|
5205
5235
|
}) : void 0,
|
|
5206
|
-
href: t ? void 0 :
|
|
5236
|
+
href: t ? void 0 : Ca(r ?? n, xa)
|
|
5207
5237
|
});
|
|
5208
5238
|
}
|
|
5209
5239
|
return e;
|
|
@@ -5230,7 +5260,7 @@ function Ca({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, leg
|
|
|
5230
5260
|
onClick: (e) => l(e.currentTarget),
|
|
5231
5261
|
"data-testid": "dropdown-toggle-profile",
|
|
5232
5262
|
sx: Y.sxProfileButton,
|
|
5233
|
-
children: /* @__PURE__ */ R(
|
|
5263
|
+
children: /* @__PURE__ */ R(ya, {
|
|
5234
5264
|
photo: e.image,
|
|
5235
5265
|
description: d,
|
|
5236
5266
|
username: e.userName,
|
|
@@ -5274,7 +5304,7 @@ function Ca({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, leg
|
|
|
5274
5304
|
borderColor: "divider",
|
|
5275
5305
|
mb: .5
|
|
5276
5306
|
},
|
|
5277
|
-
children: [/* @__PURE__ */ R(
|
|
5307
|
+
children: [/* @__PURE__ */ R(ya, {
|
|
5278
5308
|
photo: e.image,
|
|
5279
5309
|
description: d,
|
|
5280
5310
|
username: e.userName,
|
|
@@ -5304,7 +5334,7 @@ function Ca({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, leg
|
|
|
5304
5334
|
})]
|
|
5305
5335
|
})]
|
|
5306
5336
|
}),
|
|
5307
|
-
h.map((e) => /* @__PURE__ */ R(
|
|
5337
|
+
h.map((e) => /* @__PURE__ */ R(wa, {
|
|
5308
5338
|
label: s.profileMenu(e.labelKey),
|
|
5309
5339
|
icon: e.icon,
|
|
5310
5340
|
href: e.href,
|
|
@@ -5313,7 +5343,7 @@ function Ca({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, leg
|
|
|
5313
5343
|
onSelect: () => v(e)
|
|
5314
5344
|
}, e.id)),
|
|
5315
5345
|
/* @__PURE__ */ R(ln, { sx: Y.sxProfileMenuDivider }),
|
|
5316
|
-
/* @__PURE__ */ R(
|
|
5346
|
+
/* @__PURE__ */ R(wa, {
|
|
5317
5347
|
label: s.profileMenu(g.labelKey),
|
|
5318
5348
|
icon: g.icon,
|
|
5319
5349
|
testId: "dropdown-item-sign-off",
|
|
@@ -5325,11 +5355,11 @@ function Ca({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, leg
|
|
|
5325
5355
|
}
|
|
5326
5356
|
//#endregion
|
|
5327
5357
|
//#region src/lib/components/top-bar/TopBarClock.tsx
|
|
5328
|
-
function
|
|
5358
|
+
function Ea(e) {
|
|
5329
5359
|
let t = (e ?? "").trim();
|
|
5330
5360
|
return t ? `GMT${/^[+-]/.test(t) ? t : `+${t}`}` : "GMT";
|
|
5331
5361
|
}
|
|
5332
|
-
function
|
|
5362
|
+
function Da({ gmtRedaction: e, timeFormat: t }) {
|
|
5333
5363
|
let { locale: n, t: r } = G(), [i, a] = I(null);
|
|
5334
5364
|
if (P(() => {
|
|
5335
5365
|
a(Date.now());
|
|
@@ -5352,17 +5382,17 @@ function Ta({ gmtRedaction: e, timeFormat: t }) {
|
|
|
5352
5382
|
}), /* @__PURE__ */ R(U, {
|
|
5353
5383
|
component: "span",
|
|
5354
5384
|
sx: Y.sxClockMeta,
|
|
5355
|
-
children: `${r.topBar("publication")} · ${
|
|
5385
|
+
children: `${r.topBar("publication")} · ${Ea(e)}`
|
|
5356
5386
|
})]
|
|
5357
5387
|
})]
|
|
5358
5388
|
});
|
|
5359
5389
|
}
|
|
5360
5390
|
//#endregion
|
|
5361
5391
|
//#region src/lib/components/top-bar/TopBar.tsx
|
|
5362
|
-
function
|
|
5392
|
+
function Oa(e, t) {
|
|
5363
5393
|
return e ? `${e.replace(/\/$/, "")}${t}` : t;
|
|
5364
5394
|
}
|
|
5365
|
-
function
|
|
5395
|
+
function ka() {
|
|
5366
5396
|
return /* @__PURE__ */ R(B, {
|
|
5367
5397
|
component: "span",
|
|
5368
5398
|
role: "separator",
|
|
@@ -5370,7 +5400,7 @@ function Da() {
|
|
|
5370
5400
|
sx: Y.sxDivider
|
|
5371
5401
|
});
|
|
5372
5402
|
}
|
|
5373
|
-
function
|
|
5403
|
+
function Aa({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCount: r, notificationsData: i, copilotSuggestionsHref: a, onEditorialSeeMore: o, onEditorialRemindLater: s, onNotificationsOpen: c, notificationsLoading: l, profile: u, primaryLogo: d, brandLogo: f, selectedPublicationId: p, getPublicationHref: m, resolvePublicationImageUrl: h, profileAvatarOptions: g, legacyBaseUrl: _, cmsBaseUrl: v, legacySession: y, previewFormats: b, operationPermissions: x, isAdmin: S, onPreviewSelect: C, showAppearanceMenu: w = !0 }) {
|
|
5374
5404
|
let { t: T, locale: E } = G(), D = p ? je(e, p) : void 0, O = T.topBar("help"), ee = v ?? _, te = `/system/modules/com.tfsla.diario.help/${E}/index.html`;
|
|
5375
5405
|
return /* @__PURE__ */ R(en, {
|
|
5376
5406
|
position: "static",
|
|
@@ -5400,8 +5430,8 @@ function Oa({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5400
5430
|
/* @__PURE__ */ z(B, {
|
|
5401
5431
|
sx: Y.sxIconActionsRow,
|
|
5402
5432
|
children: [
|
|
5403
|
-
w && /* @__PURE__ */ R(
|
|
5404
|
-
/* @__PURE__ */ R(
|
|
5433
|
+
w && /* @__PURE__ */ R(Mi, {}),
|
|
5434
|
+
/* @__PURE__ */ R(Yi, {
|
|
5405
5435
|
unreadCount: r,
|
|
5406
5436
|
notificationsData: i,
|
|
5407
5437
|
masterBaseUrl: _,
|
|
@@ -5413,7 +5443,7 @@ function Oa({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5413
5443
|
onOpen: c,
|
|
5414
5444
|
loading: l
|
|
5415
5445
|
}),
|
|
5416
|
-
/* @__PURE__ */ R(
|
|
5446
|
+
/* @__PURE__ */ R(ia, {
|
|
5417
5447
|
formats: b,
|
|
5418
5448
|
cmsBaseUrl: v,
|
|
5419
5449
|
legacySession: y,
|
|
@@ -5424,14 +5454,14 @@ function Oa({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5424
5454
|
children: /* @__PURE__ */ R(V, {
|
|
5425
5455
|
onClick: () => {
|
|
5426
5456
|
if (v && y) {
|
|
5427
|
-
|
|
5457
|
+
li({
|
|
5428
5458
|
cmsBaseUrl: v,
|
|
5429
5459
|
path: te,
|
|
5430
5460
|
session: y
|
|
5431
5461
|
});
|
|
5432
5462
|
return;
|
|
5433
5463
|
}
|
|
5434
|
-
typeof window < "u" && window.open(
|
|
5464
|
+
typeof window < "u" && window.open(Oa(ee, te), "_blank", "noopener");
|
|
5435
5465
|
},
|
|
5436
5466
|
"aria-label": O,
|
|
5437
5467
|
sx: Y.sxActionIcon,
|
|
@@ -5441,21 +5471,21 @@ function Oa({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5441
5471
|
})
|
|
5442
5472
|
]
|
|
5443
5473
|
}),
|
|
5444
|
-
/* @__PURE__ */ R(
|
|
5474
|
+
/* @__PURE__ */ R(ka, {}),
|
|
5445
5475
|
f,
|
|
5446
|
-
/* @__PURE__ */ R(
|
|
5476
|
+
/* @__PURE__ */ R(Ai, {
|
|
5447
5477
|
sites: e,
|
|
5448
5478
|
selectedPublicationId: p,
|
|
5449
5479
|
getPublicationHref: m,
|
|
5450
5480
|
resolvePublicationImageUrl: h
|
|
5451
5481
|
}),
|
|
5452
|
-
/* @__PURE__ */ R(
|
|
5453
|
-
/* @__PURE__ */ R(
|
|
5482
|
+
/* @__PURE__ */ R(ka, {}),
|
|
5483
|
+
/* @__PURE__ */ R(Da, {
|
|
5454
5484
|
gmtRedaction: D?.gmtRedaction,
|
|
5455
5485
|
timeFormat: D?.timeFormat
|
|
5456
5486
|
}),
|
|
5457
|
-
/* @__PURE__ */ R(
|
|
5458
|
-
/* @__PURE__ */ R(
|
|
5487
|
+
/* @__PURE__ */ R(ka, {}),
|
|
5488
|
+
/* @__PURE__ */ R(Ta, {
|
|
5459
5489
|
profile: u,
|
|
5460
5490
|
avatarOptions: g,
|
|
5461
5491
|
legacyBaseUrl: _,
|
|
@@ -5472,7 +5502,7 @@ function Oa({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5472
5502
|
}
|
|
5473
5503
|
//#endregion
|
|
5474
5504
|
//#region src/lib/components/shell/AppShell.styles.ts
|
|
5475
|
-
var
|
|
5505
|
+
var ja = {
|
|
5476
5506
|
sxRoot: {
|
|
5477
5507
|
display: "flex",
|
|
5478
5508
|
flexDirection: "column",
|
|
@@ -5505,18 +5535,18 @@ var ka = {
|
|
|
5505
5535
|
};
|
|
5506
5536
|
//#endregion
|
|
5507
5537
|
//#region src/lib/components/shell/AppShell.tsx
|
|
5508
|
-
function
|
|
5538
|
+
function Ma({ pathname: e, sites: t, children: n, notificationUnreadCount: r, notificationsData: i, copilotSuggestionsHref: a, onEditorialSeeMore: o, onEditorialRemindLater: s, onNotificationsOpen: c, notificationsLoading: l, profile: u, primaryLogo: d, brandLogo: f, selectedPublicationId: p, getPublicationHref: m, resolvePublicationImageUrl: h, profileAvatarOptions: g, legacyBaseUrl: _, cmsBaseUrl: v, legacySession: y, previewFormats: b, operationPermissions: x, isAdmin: S, onPreviewSelect: C, showAppearanceMenu: w = !0, LinkComponent: T = ai, permissions: E, navHrefOverrides: D, locale: O, language: ee, messages: te, appMessages: ne, baseUrl: k, profileServices: re }) {
|
|
5509
5539
|
return /* @__PURE__ */ R(Mr, {
|
|
5510
5540
|
locale: O,
|
|
5511
5541
|
language: ee,
|
|
5512
5542
|
messages: te,
|
|
5513
5543
|
appMessages: ne,
|
|
5514
5544
|
children: /* @__PURE__ */ z(B, {
|
|
5515
|
-
sx:
|
|
5545
|
+
sx: ja.sxRoot,
|
|
5516
5546
|
children: [/* @__PURE__ */ R(B, {
|
|
5517
5547
|
component: "header",
|
|
5518
|
-
sx:
|
|
5519
|
-
children: /* @__PURE__ */ R(
|
|
5548
|
+
sx: ja.sxHeader,
|
|
5549
|
+
children: /* @__PURE__ */ R(Aa, {
|
|
5520
5550
|
sites: t,
|
|
5521
5551
|
notificationUnreadCount: r,
|
|
5522
5552
|
notificationsData: i,
|
|
@@ -5542,8 +5572,8 @@ function Aa({ pathname: e, sites: t, children: n, notificationUnreadCount: r, no
|
|
|
5542
5572
|
showAppearanceMenu: w
|
|
5543
5573
|
})
|
|
5544
5574
|
}), /* @__PURE__ */ z(B, {
|
|
5545
|
-
sx:
|
|
5546
|
-
children: [/* @__PURE__ */ R(
|
|
5575
|
+
sx: ja.sxBody,
|
|
5576
|
+
children: [/* @__PURE__ */ R(Di, {
|
|
5547
5577
|
pathname: e,
|
|
5548
5578
|
LinkComponent: T,
|
|
5549
5579
|
permissions: E,
|
|
@@ -5555,7 +5585,7 @@ function Aa({ pathname: e, sites: t, children: n, notificationUnreadCount: r, no
|
|
|
5555
5585
|
profileServices: re
|
|
5556
5586
|
}), /* @__PURE__ */ R(B, {
|
|
5557
5587
|
component: "main",
|
|
5558
|
-
sx:
|
|
5588
|
+
sx: ja.sxMain,
|
|
5559
5589
|
children: n
|
|
5560
5590
|
})]
|
|
5561
5591
|
})]
|
|
@@ -5564,7 +5594,7 @@ function Aa({ pathname: e, sites: t, children: n, notificationUnreadCount: r, no
|
|
|
5564
5594
|
}
|
|
5565
5595
|
//#endregion
|
|
5566
5596
|
//#region src/lib/components/sidebar/Sidebar.styles.ts
|
|
5567
|
-
var
|
|
5597
|
+
var Na = A.secondary, Pa = A.surfaceHover, Fa = A.textNav, Ia = 24, La = 24, Z = {
|
|
5568
5598
|
sxRoot: (e) => {
|
|
5569
5599
|
let t = e ? 195 : 96;
|
|
5570
5600
|
return {
|
|
@@ -5639,10 +5669,10 @@ var ja = A.secondary, Ma = A.surfaceHover, Na = A.textNav, Pa = 24, Fa = 24, Z =
|
|
|
5639
5669
|
px: 0,
|
|
5640
5670
|
py: 0,
|
|
5641
5671
|
borderRadius: "100px",
|
|
5642
|
-
color:
|
|
5672
|
+
color: Fa,
|
|
5643
5673
|
textDecoration: "none",
|
|
5644
|
-
bgcolor: e ?
|
|
5645
|
-
"&:hover": { bgcolor: e ?
|
|
5674
|
+
bgcolor: e ? Na : "transparent",
|
|
5675
|
+
"&:hover": { bgcolor: e ? Na : "action.hover" }
|
|
5646
5676
|
} : {
|
|
5647
5677
|
position: "relative",
|
|
5648
5678
|
display: "flex",
|
|
@@ -5660,13 +5690,13 @@ var ja = A.secondary, Ma = A.surfaceHover, Na = A.textNav, Pa = 24, Fa = 24, Z =
|
|
|
5660
5690
|
ml: "-1rem",
|
|
5661
5691
|
mr: 0,
|
|
5662
5692
|
borderRadius: t ? "100px" : "0 100px 100px 0",
|
|
5663
|
-
color:
|
|
5693
|
+
color: Fa,
|
|
5664
5694
|
textDecoration: "none",
|
|
5665
|
-
bgcolor: e ?
|
|
5666
|
-
"&:hover": { bgcolor: e ?
|
|
5695
|
+
bgcolor: e ? Na : "transparent",
|
|
5696
|
+
"&:hover": { bgcolor: e ? Na : Pa }
|
|
5667
5697
|
},
|
|
5668
5698
|
sxItemIcon: (e, t = !1) => ({
|
|
5669
|
-
fontSize: t ?
|
|
5699
|
+
fontSize: t ? La : Ia,
|
|
5670
5700
|
color: e ? "secondary.dark" : "m3.onSurfaceVariant",
|
|
5671
5701
|
width: t ? 48 : "auto",
|
|
5672
5702
|
flexShrink: 0
|
|
@@ -5677,7 +5707,7 @@ var ja = A.secondary, Ma = A.surfaceHover, Na = A.textNav, Pa = 24, Fa = 24, Z =
|
|
|
5677
5707
|
fontSize: 14,
|
|
5678
5708
|
fontWeight: e ? 600 : 400,
|
|
5679
5709
|
lineHeight: 1.43,
|
|
5680
|
-
color:
|
|
5710
|
+
color: Fa,
|
|
5681
5711
|
overflow: "hidden",
|
|
5682
5712
|
textOverflow: "ellipsis",
|
|
5683
5713
|
whiteSpace: "nowrap"
|
|
@@ -5709,12 +5739,12 @@ var ja = A.secondary, Ma = A.surfaceHover, Na = A.textNav, Pa = 24, Fa = 24, Z =
|
|
|
5709
5739
|
px: 2,
|
|
5710
5740
|
py: 1,
|
|
5711
5741
|
gap: 1.25,
|
|
5712
|
-
color:
|
|
5713
|
-
bgcolor: e ?
|
|
5714
|
-
"&:hover": { bgcolor: e ?
|
|
5742
|
+
color: Fa,
|
|
5743
|
+
bgcolor: e ? Na : "transparent",
|
|
5744
|
+
"&:hover": { bgcolor: e ? Na : A.neutralHover },
|
|
5715
5745
|
"&.Mui-selected": {
|
|
5716
|
-
bgcolor:
|
|
5717
|
-
"&:hover": { bgcolor:
|
|
5746
|
+
bgcolor: Na,
|
|
5747
|
+
"&:hover": { bgcolor: Na }
|
|
5718
5748
|
}
|
|
5719
5749
|
}),
|
|
5720
5750
|
sxChildrenMenuListItemIcon: {
|
|
@@ -5741,7 +5771,7 @@ var ja = A.secondary, Ma = A.surfaceHover, Na = A.textNav, Pa = 24, Fa = 24, Z =
|
|
|
5741
5771
|
};
|
|
5742
5772
|
//#endregion
|
|
5743
5773
|
//#region src/lib/components/sidebar/Sidebar.tsx
|
|
5744
|
-
function
|
|
5774
|
+
function Ra(e, t, n) {
|
|
5745
5775
|
return e ? n : /* @__PURE__ */ R(at, {
|
|
5746
5776
|
title: t,
|
|
5747
5777
|
placement: "right",
|
|
@@ -5753,8 +5783,8 @@ function Ia(e, t, n) {
|
|
|
5753
5783
|
})
|
|
5754
5784
|
});
|
|
5755
5785
|
}
|
|
5756
|
-
function
|
|
5757
|
-
let p = `block-${t}`, m =
|
|
5786
|
+
function za({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i, onToggleExpand: a, LinkComponent: o, pathname: s, permissions: c, t: l, legacyBaseUrl: u, selectedPublicationId: d, navHrefOverrides: f }) {
|
|
5787
|
+
let p = `block-${t}`, m = ui(e, l), h = gi(c, e.module), g = _i(e, c), _ = !r, v = di(s, e.href), b = fi(s, e), x = g.length > 0, S = e.icon, C = n ? v : v || b, [w, T] = I(null), E = !!w;
|
|
5758
5788
|
if (!h && !x) return null;
|
|
5759
5789
|
let D = /* @__PURE__ */ z(L, { children: [
|
|
5760
5790
|
x && !_ ? /* @__PURE__ */ R(V, {
|
|
@@ -5805,7 +5835,7 @@ function La({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i,
|
|
|
5805
5835
|
maxWidth: "100%",
|
|
5806
5836
|
overflow: "hidden"
|
|
5807
5837
|
},
|
|
5808
|
-
children: g.map((e) => /* @__PURE__ */ R(
|
|
5838
|
+
children: g.map((e) => /* @__PURE__ */ R(za, {
|
|
5809
5839
|
item: e,
|
|
5810
5840
|
blockIndex: t,
|
|
5811
5841
|
nested: !0,
|
|
@@ -5862,14 +5892,14 @@ function La({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i,
|
|
|
5862
5892
|
return /* @__PURE__ */ z(yt, {
|
|
5863
5893
|
"data-testid": `dropdown-item-nav-${y(e.module)}`,
|
|
5864
5894
|
component: o,
|
|
5865
|
-
href:
|
|
5895
|
+
href: mi(e, u, d, f),
|
|
5866
5896
|
onClick: () => T(null),
|
|
5867
|
-
sx: Z.sxChildrenMenuItem(
|
|
5897
|
+
sx: Z.sxChildrenMenuItem(di(s, e.href)),
|
|
5868
5898
|
children: [/* @__PURE__ */ R(gt, {
|
|
5869
5899
|
sx: Z.sxChildrenMenuListItemIcon,
|
|
5870
5900
|
children: /* @__PURE__ */ R(t, {})
|
|
5871
5901
|
}), /* @__PURE__ */ R(_t, {
|
|
5872
|
-
primary:
|
|
5902
|
+
primary: ui(e, l),
|
|
5873
5903
|
slotProps: { primary: { sx: {
|
|
5874
5904
|
fontSize: 14,
|
|
5875
5905
|
fontWeight: 400,
|
|
@@ -5878,18 +5908,18 @@ function La({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i,
|
|
|
5878
5908
|
})]
|
|
5879
5909
|
}, e.href);
|
|
5880
5910
|
})
|
|
5881
|
-
})] }) :
|
|
5911
|
+
})] }) : Ra(r, m, /* @__PURE__ */ R(B, {
|
|
5882
5912
|
component: o,
|
|
5883
|
-
href:
|
|
5913
|
+
href: mi(e, u, d, f),
|
|
5884
5914
|
"data-testid": `nav-${p}-${y(e.module)}`,
|
|
5885
5915
|
sx: Z.sxItem(_ ? b : v, n, x, _),
|
|
5886
5916
|
children: D
|
|
5887
5917
|
}));
|
|
5888
5918
|
}
|
|
5889
|
-
function
|
|
5919
|
+
function Ba({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions: i, t: a, legacyBaseUrl: o, selectedPublicationId: s, navHrefOverrides: c }) {
|
|
5890
5920
|
let [l, u] = I(F(() => {
|
|
5891
5921
|
let t = {};
|
|
5892
|
-
for (let n of e) n.children && (t[n.href] = n.defaultOpen ?? n.children.some((e) =>
|
|
5922
|
+
for (let n of e) n.children && (t[n.href] = n.defaultOpen ?? n.children.some((e) => di(r, e.href)));
|
|
5893
5923
|
return t;
|
|
5894
5924
|
}, [e, r])), d = (e) => {
|
|
5895
5925
|
u((t) => ({
|
|
@@ -5897,13 +5927,13 @@ function Ra({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions
|
|
|
5897
5927
|
[e]: !t[e]
|
|
5898
5928
|
}));
|
|
5899
5929
|
};
|
|
5900
|
-
return /* @__PURE__ */ R(L, { children: e.map((e, u) => /* @__PURE__ */ R(
|
|
5930
|
+
return /* @__PURE__ */ R(L, { children: e.map((e, u) => /* @__PURE__ */ R(za, {
|
|
5901
5931
|
item: e,
|
|
5902
5932
|
blockIndex: u,
|
|
5903
5933
|
open: t,
|
|
5904
5934
|
permissions: i,
|
|
5905
5935
|
expanded: l[e.href],
|
|
5906
|
-
onToggleExpand:
|
|
5936
|
+
onToggleExpand: _i(e, i).length > 0 ? () => d(e.href) : void 0,
|
|
5907
5937
|
LinkComponent: n,
|
|
5908
5938
|
pathname: r,
|
|
5909
5939
|
t: a,
|
|
@@ -5912,7 +5942,7 @@ function Ra({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions
|
|
|
5912
5942
|
navHrefOverrides: c
|
|
5913
5943
|
}, e.href)) });
|
|
5914
5944
|
}
|
|
5915
|
-
function
|
|
5945
|
+
function Va({ open: e = !0, pathname: t, permissions: n, LinkComponent: r = ai, legacyBaseUrl: i, selectedPublicationId: a, navHrefOverrides: o }) {
|
|
5916
5946
|
let { t: s } = G();
|
|
5917
5947
|
return /* @__PURE__ */ R(B, {
|
|
5918
5948
|
component: "aside",
|
|
@@ -5923,9 +5953,9 @@ function za({ open: e = !0, pathname: t, permissions: n, LinkComponent: r = ri,
|
|
|
5923
5953
|
component: "nav",
|
|
5924
5954
|
"aria-label": s.sidebar("navAriaLabel"),
|
|
5925
5955
|
sx: Z.sxNav(e),
|
|
5926
|
-
children: /* @__PURE__ */ R(
|
|
5956
|
+
children: /* @__PURE__ */ R(Ba, {
|
|
5927
5957
|
permissions: n,
|
|
5928
|
-
items:
|
|
5958
|
+
items: vi,
|
|
5929
5959
|
open: e,
|
|
5930
5960
|
LinkComponent: r,
|
|
5931
5961
|
pathname: t,
|
|
@@ -5940,7 +5970,7 @@ function za({ open: e = !0, pathname: t, permissions: n, LinkComponent: r = ri,
|
|
|
5940
5970
|
}
|
|
5941
5971
|
//#endregion
|
|
5942
5972
|
//#region src/lib/components/top-bar/newContentMenu.config.ts
|
|
5943
|
-
var
|
|
5973
|
+
var Ha = [
|
|
5944
5974
|
{
|
|
5945
5975
|
titleKey: "frequentsTitle",
|
|
5946
5976
|
items: [
|
|
@@ -6012,12 +6042,12 @@ var Ba = [
|
|
|
6012
6042
|
]
|
|
6013
6043
|
}
|
|
6014
6044
|
];
|
|
6015
|
-
function
|
|
6045
|
+
function Ua(e, t, n) {
|
|
6016
6046
|
return t === void 0 || n || !e.permission ? !0 : (Array.isArray(e.permission) ? e.permission : [e.permission]).every((e) => t.includes(e));
|
|
6017
6047
|
}
|
|
6018
6048
|
//#endregion
|
|
6019
6049
|
//#region src/lib/components/top-bar/NewContentMenu.styles.ts
|
|
6020
|
-
var
|
|
6050
|
+
var Wa = {
|
|
6021
6051
|
sxMenuPaper: {
|
|
6022
6052
|
mt: 1,
|
|
6023
6053
|
borderRadius: 2,
|
|
@@ -6062,22 +6092,22 @@ var Ha = {
|
|
|
6062
6092
|
};
|
|
6063
6093
|
//#endregion
|
|
6064
6094
|
//#region src/lib/components/top-bar/NewContentMenu.tsx
|
|
6065
|
-
function
|
|
6095
|
+
function Ga(e) {
|
|
6066
6096
|
return `/?new=${encodeURIComponent(e)}`;
|
|
6067
6097
|
}
|
|
6068
|
-
function
|
|
6098
|
+
function Ka(e, t) {
|
|
6069
6099
|
return `${e.replace(/\/$/, "")}${t}`;
|
|
6070
6100
|
}
|
|
6071
|
-
function
|
|
6101
|
+
function qa({ groups: e = Ha, operationPermissions: t, isAdmin: n, legacyBaseUrl: r, getRedirectPath: i = Ga, onSelect: a }) {
|
|
6072
6102
|
let { t: o } = G(), [s, c] = I(null), l = !!s, u = () => c(null), d = F(() => e.map((e) => ({
|
|
6073
6103
|
...e,
|
|
6074
|
-
items: e.items.filter((e) =>
|
|
6104
|
+
items: e.items.filter((e) => Ua(e, t, n))
|
|
6075
6105
|
})).filter((e) => e.items.length > 0), [
|
|
6076
6106
|
e,
|
|
6077
6107
|
t,
|
|
6078
6108
|
n
|
|
6079
6109
|
]), f = (e) => {
|
|
6080
|
-
r && typeof window < "u" ? window.open(
|
|
6110
|
+
r && typeof window < "u" ? window.open(Ka(r, i(e.id)), "_blank", "noopener") : a?.(e.id), u();
|
|
6081
6111
|
}, p = o.topBar("new");
|
|
6082
6112
|
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(at, {
|
|
6083
6113
|
title: p,
|
|
@@ -6103,19 +6133,19 @@ function Ga({ groups: e = Ba, operationPermissions: t, isAdmin: n, legacyBaseUrl
|
|
|
6103
6133
|
horizontal: "left"
|
|
6104
6134
|
},
|
|
6105
6135
|
slotProps: {
|
|
6106
|
-
paper: { sx:
|
|
6136
|
+
paper: { sx: Wa.sxMenuPaper },
|
|
6107
6137
|
list: {
|
|
6108
6138
|
sx: { p: 0 },
|
|
6109
6139
|
"data-testid": "dropdown-menu-new-content"
|
|
6110
6140
|
}
|
|
6111
6141
|
},
|
|
6112
6142
|
children: /* @__PURE__ */ R(B, {
|
|
6113
|
-
sx:
|
|
6143
|
+
sx: Wa.sxContainer,
|
|
6114
6144
|
children: d.map((e) => /* @__PURE__ */ z(B, {
|
|
6115
|
-
sx:
|
|
6145
|
+
sx: Wa.sxColumn,
|
|
6116
6146
|
children: [/* @__PURE__ */ R(U, {
|
|
6117
6147
|
component: "span",
|
|
6118
|
-
sx:
|
|
6148
|
+
sx: Wa.sxColumnTitle,
|
|
6119
6149
|
children: o.newMenu(e.titleKey)
|
|
6120
6150
|
}), e.items.map((e) => /* @__PURE__ */ R(B, {
|
|
6121
6151
|
component: "span",
|
|
@@ -6123,7 +6153,7 @@ function Ga({ groups: e = Ba, operationPermissions: t, isAdmin: n, legacyBaseUrl
|
|
|
6123
6153
|
tabIndex: 0,
|
|
6124
6154
|
onClick: () => f(e),
|
|
6125
6155
|
"data-testid": `dropdown-item-new-${e.id}`,
|
|
6126
|
-
sx:
|
|
6156
|
+
sx: Wa.sxItem,
|
|
6127
6157
|
children: o.newMenu(e.labelKey)
|
|
6128
6158
|
}, e.id))]
|
|
6129
6159
|
}, e.titleKey))
|
|
@@ -6132,7 +6162,7 @@ function Ga({ groups: e = Ba, operationPermissions: t, isAdmin: n, legacyBaseUrl
|
|
|
6132
6162
|
}
|
|
6133
6163
|
//#endregion
|
|
6134
6164
|
//#region src/lib/components/error-page/CmsErrorPage.styles.ts
|
|
6135
|
-
var
|
|
6165
|
+
var Ja = {
|
|
6136
6166
|
sxRoot: {
|
|
6137
6167
|
position: "fixed",
|
|
6138
6168
|
inset: 0,
|
|
@@ -6221,7 +6251,7 @@ var Ka = {
|
|
|
6221
6251
|
};
|
|
6222
6252
|
//#endregion
|
|
6223
6253
|
//#region src/lib/components/error-page/CmsErrorPage.tsx
|
|
6224
|
-
function
|
|
6254
|
+
function Ya({ variant: e, homeHref: t = "/", LinkComponent: n = ai, illustrationSrc: r }) {
|
|
6225
6255
|
let { t: i } = G(), [a, o] = I(!1), s = e === "not-allowed", c = i.errorPage(s ? "notAllowedTitle" : "notFoundTitle"), l = i.errorPage(s ? "notAllowedSubtitle" : "notFoundSubtitle"), u = r ?? (s ? "/errors/not-allowed.png" : "/errors/notfound.png"), d = async () => {
|
|
6226
6256
|
let e = typeof window < "u" ? window.location.href : "", t = i.errorPage("copyDetailText").replace("{url}", e);
|
|
6227
6257
|
try {
|
|
@@ -6231,24 +6261,24 @@ function qa({ variant: e, homeHref: t = "/", LinkComponent: n = ri, illustration
|
|
|
6231
6261
|
return /* @__PURE__ */ z(B, {
|
|
6232
6262
|
"data-testid": "panel-error",
|
|
6233
6263
|
"data-variant": e,
|
|
6234
|
-
sx:
|
|
6264
|
+
sx: Ja.sxRoot,
|
|
6235
6265
|
children: [/* @__PURE__ */ R(B, {
|
|
6236
6266
|
component: "img",
|
|
6237
6267
|
src: u,
|
|
6238
6268
|
alt: "",
|
|
6239
6269
|
"aria-hidden": !0,
|
|
6240
|
-
sx:
|
|
6270
|
+
sx: Ja.sxIllustration
|
|
6241
6271
|
}), /* @__PURE__ */ z(B, {
|
|
6242
|
-
sx:
|
|
6272
|
+
sx: Ja.sxContent,
|
|
6243
6273
|
children: [
|
|
6244
6274
|
/* @__PURE__ */ R(U, {
|
|
6245
6275
|
component: "h1",
|
|
6246
|
-
sx:
|
|
6276
|
+
sx: Ja.sxTitle,
|
|
6247
6277
|
children: c
|
|
6248
6278
|
}),
|
|
6249
6279
|
/* @__PURE__ */ R(U, {
|
|
6250
6280
|
component: "p",
|
|
6251
|
-
sx:
|
|
6281
|
+
sx: Ja.sxSubtitle,
|
|
6252
6282
|
children: l
|
|
6253
6283
|
}),
|
|
6254
6284
|
/* @__PURE__ */ R(H, {
|
|
@@ -6257,13 +6287,13 @@ function qa({ variant: e, homeHref: t = "/", LinkComponent: n = ri, illustration
|
|
|
6257
6287
|
href: t,
|
|
6258
6288
|
sx: {
|
|
6259
6289
|
...or("cta"),
|
|
6260
|
-
...
|
|
6290
|
+
...Ja.sxButton
|
|
6261
6291
|
},
|
|
6262
6292
|
children: i.errorPage("homeButton")
|
|
6263
6293
|
}),
|
|
6264
6294
|
!s && /* @__PURE__ */ z(U, {
|
|
6265
6295
|
component: "p",
|
|
6266
|
-
sx:
|
|
6296
|
+
sx: Ja.sxErrorLine,
|
|
6267
6297
|
children: [
|
|
6268
6298
|
i.errorPage("errorLabel"),
|
|
6269
6299
|
" ",
|
|
@@ -6275,7 +6305,7 @@ function qa({ variant: e, homeHref: t = "/", LinkComponent: n = ri, illustration
|
|
|
6275
6305
|
role: "button",
|
|
6276
6306
|
tabIndex: 0,
|
|
6277
6307
|
onClick: d,
|
|
6278
|
-
sx:
|
|
6308
|
+
sx: Ja.sxCopyLink,
|
|
6279
6309
|
children: a ? i.errorPage("copied") : i.errorPage("copyDetail")
|
|
6280
6310
|
})
|
|
6281
6311
|
]
|
|
@@ -6286,30 +6316,30 @@ function qa({ variant: e, homeHref: t = "/", LinkComponent: n = ri, illustration
|
|
|
6286
6316
|
}
|
|
6287
6317
|
//#endregion
|
|
6288
6318
|
//#region src/lib/components/mui-provider/CmsColorSchemeVars.tsx
|
|
6289
|
-
var { light:
|
|
6290
|
-
function
|
|
6319
|
+
var { light: Xa, dark: Za } = pe();
|
|
6320
|
+
function Qa() {
|
|
6291
6321
|
return /* @__PURE__ */ R(Pn, { styles: {
|
|
6292
|
-
":root":
|
|
6293
|
-
":root[data-mui-color-scheme=\"dark\"]":
|
|
6322
|
+
":root": Xa,
|
|
6323
|
+
":root[data-mui-color-scheme=\"dark\"]": Za
|
|
6294
6324
|
} });
|
|
6295
6325
|
}
|
|
6296
6326
|
//#endregion
|
|
6297
6327
|
//#region src/lib/components/mui-provider/CmsFontFaces.tsx
|
|
6298
|
-
function
|
|
6328
|
+
function $a() {
|
|
6299
6329
|
return /* @__PURE__ */ R(Pn, { styles: lr });
|
|
6300
6330
|
}
|
|
6301
6331
|
//#endregion
|
|
6302
6332
|
//#region src/lib/components/mui-provider/CmsThemeInitScript.tsx
|
|
6303
|
-
var
|
|
6304
|
-
function
|
|
6333
|
+
var eo = `(function(){try{var m=localStorage.getItem('${ur}');var e=localStorage.getItem('${dr}');var on=e===null?true:e==='true';var eff=on&&m==='dark'?'dark':'light';document.documentElement.setAttribute('${fr}',eff);}catch(_){}})();`;
|
|
6334
|
+
function to() {
|
|
6305
6335
|
return /* @__PURE__ */ R("script", {
|
|
6306
6336
|
suppressHydrationWarning: !0,
|
|
6307
|
-
dangerouslySetInnerHTML: { __html:
|
|
6337
|
+
dangerouslySetInnerHTML: { __html: eo }
|
|
6308
6338
|
});
|
|
6309
6339
|
}
|
|
6310
6340
|
//#endregion
|
|
6311
6341
|
//#region src/lib/components/mui-provider/CmsThemeModeSync.tsx
|
|
6312
|
-
function
|
|
6342
|
+
function no() {
|
|
6313
6343
|
let { setMode: e } = Ye();
|
|
6314
6344
|
return P(() => {
|
|
6315
6345
|
e(gr());
|
|
@@ -6317,37 +6347,37 @@ function eo() {
|
|
|
6317
6347
|
}
|
|
6318
6348
|
//#endregion
|
|
6319
6349
|
//#region src/lib/components/mui-provider/CmsMuiProvider.tsx
|
|
6320
|
-
var
|
|
6321
|
-
function
|
|
6350
|
+
var ro = nr();
|
|
6351
|
+
function io({ children: e }) {
|
|
6322
6352
|
return /* @__PURE__ */ z(qe, {
|
|
6323
|
-
theme:
|
|
6353
|
+
theme: ro,
|
|
6324
6354
|
defaultMode: "light",
|
|
6325
6355
|
storageManager: null,
|
|
6326
6356
|
children: [
|
|
6327
|
-
/* @__PURE__ */ R(
|
|
6328
|
-
/* @__PURE__ */ R(
|
|
6357
|
+
/* @__PURE__ */ R(to, {}),
|
|
6358
|
+
/* @__PURE__ */ R(no, {}),
|
|
6329
6359
|
/* @__PURE__ */ R(Nn, { enableColorScheme: !0 }),
|
|
6330
|
-
/* @__PURE__ */ R(
|
|
6331
|
-
/* @__PURE__ */ R(
|
|
6360
|
+
/* @__PURE__ */ R(Qa, {}),
|
|
6361
|
+
/* @__PURE__ */ R($a, {}),
|
|
6332
6362
|
e
|
|
6333
6363
|
]
|
|
6334
6364
|
});
|
|
6335
6365
|
}
|
|
6336
6366
|
//#endregion
|
|
6337
6367
|
//#region src/lib/components/mui-provider/NextCmsMuiProvider.tsx
|
|
6338
|
-
var
|
|
6339
|
-
function
|
|
6368
|
+
var ao = nr();
|
|
6369
|
+
function oo({ children: e }) {
|
|
6340
6370
|
return /* @__PURE__ */ z(Fn, {
|
|
6341
6371
|
options: { enableCssLayer: !0 },
|
|
6342
|
-
children: [/* @__PURE__ */ R(
|
|
6343
|
-
theme:
|
|
6372
|
+
children: [/* @__PURE__ */ R(to, {}), /* @__PURE__ */ z(qe, {
|
|
6373
|
+
theme: ao,
|
|
6344
6374
|
defaultMode: "light",
|
|
6345
6375
|
storageManager: null,
|
|
6346
6376
|
children: [
|
|
6347
|
-
/* @__PURE__ */ R(
|
|
6377
|
+
/* @__PURE__ */ R(no, {}),
|
|
6348
6378
|
/* @__PURE__ */ R(Nn, { enableColorScheme: !0 }),
|
|
6349
|
-
/* @__PURE__ */ R(
|
|
6350
|
-
/* @__PURE__ */ R(
|
|
6379
|
+
/* @__PURE__ */ R(Qa, {}),
|
|
6380
|
+
/* @__PURE__ */ R($a, {}),
|
|
6351
6381
|
/* @__PURE__ */ R(B, {
|
|
6352
6382
|
sx: {
|
|
6353
6383
|
display: "flex",
|
|
@@ -6363,13 +6393,13 @@ function io({ children: e }) {
|
|
|
6363
6393
|
}
|
|
6364
6394
|
//#endregion
|
|
6365
6395
|
//#region src/lib/components/dropdowns/BtnDropdown.styles.ts
|
|
6366
|
-
var
|
|
6396
|
+
var so = (e) => e ? "white" : "cta", co = {
|
|
6367
6397
|
sxGroup: {
|
|
6368
6398
|
display: "inline-flex",
|
|
6369
6399
|
alignItems: "stretch"
|
|
6370
6400
|
},
|
|
6371
6401
|
sxMainButton: (e, t) => {
|
|
6372
|
-
let n =
|
|
6402
|
+
let n = so(e);
|
|
6373
6403
|
return {
|
|
6374
6404
|
height: i.buttonHeight,
|
|
6375
6405
|
px: "20px",
|
|
@@ -6395,7 +6425,7 @@ var ao = (e) => e ? "white" : "cta", oo = {
|
|
|
6395
6425
|
};
|
|
6396
6426
|
},
|
|
6397
6427
|
sxArrowButton: (e, t) => {
|
|
6398
|
-
let n =
|
|
6428
|
+
let n = so(e);
|
|
6399
6429
|
return {
|
|
6400
6430
|
height: i.buttonHeight,
|
|
6401
6431
|
minWidth: 38,
|
|
@@ -6423,19 +6453,19 @@ var ao = (e) => e ? "white" : "cta", oo = {
|
|
|
6423
6453
|
};
|
|
6424
6454
|
//#endregion
|
|
6425
6455
|
//#region src/lib/components/dropdowns/BtnDropdown.tsx
|
|
6426
|
-
function
|
|
6456
|
+
function lo({ titleButton: e, options: t, icon: n, onAction: r, disabled: i = !1, enableButton: a = !0, whiteBtn: o = !1, showDropdownOptions: s = !0, openUpward: c = !1, testId: l }) {
|
|
6427
6457
|
let [u, d] = I(null), f = !!u, p = (e) => {
|
|
6428
6458
|
d((t) => t ? null : e.currentTarget);
|
|
6429
6459
|
}, m = F(() => t.filter((e) => e.show !== !1), [t]).length > 0, h = s && m;
|
|
6430
6460
|
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ z(B, {
|
|
6431
|
-
sx:
|
|
6461
|
+
sx: co.sxGroup,
|
|
6432
6462
|
children: [/* @__PURE__ */ R(H, {
|
|
6433
6463
|
disableElevation: !0,
|
|
6434
6464
|
startIcon: n,
|
|
6435
6465
|
onClick: r,
|
|
6436
6466
|
disabled: i || !a,
|
|
6437
6467
|
"data-testid": l ? `btn-${l}` : void 0,
|
|
6438
|
-
sx:
|
|
6468
|
+
sx: co.sxMainButton(o, !h),
|
|
6439
6469
|
children: e
|
|
6440
6470
|
}), h ? /* @__PURE__ */ R(H, {
|
|
6441
6471
|
disableElevation: !0,
|
|
@@ -6444,10 +6474,10 @@ function so({ titleButton: e, options: t, icon: n, onAction: r, disabled: i = !1
|
|
|
6444
6474
|
onClick: p,
|
|
6445
6475
|
disabled: i,
|
|
6446
6476
|
"data-testid": l ? `dropdown-toggle-${l}` : void 0,
|
|
6447
|
-
sx:
|
|
6477
|
+
sx: co.sxArrowButton(o, f),
|
|
6448
6478
|
children: /* @__PURE__ */ R(In, {})
|
|
6449
6479
|
}) : null]
|
|
6450
|
-
}), /* @__PURE__ */ R(
|
|
6480
|
+
}), /* @__PURE__ */ R(na, {
|
|
6451
6481
|
options: t,
|
|
6452
6482
|
anchorEl: u,
|
|
6453
6483
|
open: f,
|
|
@@ -6465,17 +6495,17 @@ function so({ titleButton: e, options: t, icon: n, onAction: r, disabled: i = !1
|
|
|
6465
6495
|
}
|
|
6466
6496
|
//#endregion
|
|
6467
6497
|
//#region src/lib/components/dropdowns/SelectDropdown.tsx
|
|
6468
|
-
var
|
|
6469
|
-
function
|
|
6498
|
+
var uo = 18;
|
|
6499
|
+
function fo(e) {
|
|
6470
6500
|
if (!et(e)) return e;
|
|
6471
6501
|
let t = e;
|
|
6472
6502
|
return Ze(t, { sx: [t.props.sx, {
|
|
6473
|
-
fontSize:
|
|
6474
|
-
width:
|
|
6475
|
-
height:
|
|
6503
|
+
fontSize: uo,
|
|
6504
|
+
width: uo,
|
|
6505
|
+
height: uo
|
|
6476
6506
|
}] });
|
|
6477
6507
|
}
|
|
6478
|
-
function
|
|
6508
|
+
function po({ value: e, options: t, onChange: n, highlighted: r = !1, showIcons: i = !0, minWidth: a = 200, disabled: o = !1, placeholder: s, prefix: c, ariaLabel: l, testId: u }) {
|
|
6479
6509
|
let [d, f] = I(null), p = !!d, m = F(() => t.filter((e) => e.show !== !1), [t]), h = F(() => m.find((t) => t.value === e), [m, e]), g = (e) => {
|
|
6480
6510
|
n(e), f(null);
|
|
6481
6511
|
}, _ = (t) => {
|
|
@@ -6487,7 +6517,7 @@ function uo({ value: e, options: t, onChange: n, highlighted: r = !1, showIcons:
|
|
|
6487
6517
|
sx: sr.sxItem(n),
|
|
6488
6518
|
children: [i && t.icon ? /* @__PURE__ */ R(gt, {
|
|
6489
6519
|
sx: { color: t.iconColor ?? "m3.onSurfaceVariant" },
|
|
6490
|
-
children:
|
|
6520
|
+
children: fo(t.icon)
|
|
6491
6521
|
}) : null, t.label]
|
|
6492
6522
|
}, t.value);
|
|
6493
6523
|
};
|
|
@@ -6506,7 +6536,7 @@ function uo({ value: e, options: t, onChange: n, highlighted: r = !1, showIcons:
|
|
|
6506
6536
|
component: "span",
|
|
6507
6537
|
className: "sel-lead",
|
|
6508
6538
|
sx: { color: h.iconColor ?? "inherit" },
|
|
6509
|
-
children:
|
|
6539
|
+
children: fo(h.icon)
|
|
6510
6540
|
}) : null,
|
|
6511
6541
|
/* @__PURE__ */ R(B, {
|
|
6512
6542
|
component: "span",
|
|
@@ -6559,7 +6589,7 @@ function uo({ value: e, options: t, onChange: n, highlighted: r = !1, showIcons:
|
|
|
6559
6589
|
}
|
|
6560
6590
|
//#endregion
|
|
6561
6591
|
//#region src/lib/components/search/CmsSearchField.styles.ts
|
|
6562
|
-
var
|
|
6592
|
+
var mo = {
|
|
6563
6593
|
sxRoot: (e) => ({
|
|
6564
6594
|
display: "inline-flex",
|
|
6565
6595
|
alignItems: "center",
|
|
@@ -6624,7 +6654,7 @@ var fo = {
|
|
|
6624
6654
|
outline: 0,
|
|
6625
6655
|
background: "transparent",
|
|
6626
6656
|
fontFamily: j.googleSans,
|
|
6627
|
-
fontSize:
|
|
6657
|
+
fontSize: 14,
|
|
6628
6658
|
fontWeight: 400,
|
|
6629
6659
|
color: A.textNav,
|
|
6630
6660
|
"&::placeholder": {
|
|
@@ -6676,8 +6706,8 @@ var fo = {
|
|
|
6676
6706
|
border: "1.5px solid",
|
|
6677
6707
|
borderColor: "m3.surfaceContainerHigh"
|
|
6678
6708
|
}
|
|
6679
|
-
},
|
|
6680
|
-
function
|
|
6709
|
+
}, ho = "0.16s cubic-bezier(0.4, 0, 0.2, 1)", go = 2400;
|
|
6710
|
+
function _o({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, chips: a, onChipsChange: o, chipSeparator: s = ";", addPlaceholder: c, removeChipAriaLabel: l, showIcon: u = !0, showAdvanced: d = !1, advancedActive: f = !1, onAdvancedClick: p, collapsible: m = !1, width: h = 320, grow: g = !1, maxWidth: _, endGap: v = 40, startGap: b, advancedAriaLabel: x, clearAriaLabel: S, ariaLabel: C, testId: w }) {
|
|
6681
6711
|
let { t: T } = G(), E = T.messages.search, D = C ?? E.inputAriaLabel, O = S ?? E.clearAriaLabel, ee = x ?? E.advancedAriaLabel, te = l ?? E.removeChipAriaLabel, ne = a !== void 0, k = a ?? [], re = ne && k.length > 0 ? c ?? E.addPlaceholder : i ?? E.placeholder, ie = it(null), [ae, oe] = I(!1), se = m && !ae && e.trim() === "" && k.length === 0, ce = ae || k.length > 0, le = e.length > 0 || k.length > 0, ue = () => {
|
|
6682
6712
|
let n = e.trim(), r = n && !k.includes(n) ? [...k, n] : k;
|
|
6683
6713
|
return r !== k && o?.(r), n && t(""), r;
|
|
@@ -6706,15 +6736,15 @@ function ho({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
|
|
|
6706
6736
|
flexShrink: 1,
|
|
6707
6737
|
flexBasis: 0,
|
|
6708
6738
|
minWidth: 0,
|
|
6709
|
-
maxWidth: ce ? _ ??
|
|
6739
|
+
maxWidth: ce ? _ ?? go : h,
|
|
6710
6740
|
marginLeft: ce && b != null ? b : "auto",
|
|
6711
6741
|
marginRight: v,
|
|
6712
|
-
transition: `max-width ${
|
|
6742
|
+
transition: `max-width ${ho}`
|
|
6713
6743
|
} : {
|
|
6714
6744
|
flexBasis: h,
|
|
6715
6745
|
maxWidth: "100%"
|
|
6716
6746
|
}, /* @__PURE__ */ z(B, {
|
|
6717
|
-
sx:
|
|
6747
|
+
sx: mo.sxRoot({
|
|
6718
6748
|
collapsed: se,
|
|
6719
6749
|
focused: ae
|
|
6720
6750
|
}),
|
|
@@ -6722,9 +6752,9 @@ function ho({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
|
|
|
6722
6752
|
onClick: me,
|
|
6723
6753
|
"data-testid": w,
|
|
6724
6754
|
children: [
|
|
6725
|
-
u && /* @__PURE__ */ R(Ft, { sx:
|
|
6755
|
+
u && /* @__PURE__ */ R(Ft, { sx: mo.sxLeadIcon(ae) }),
|
|
6726
6756
|
!se && /* @__PURE__ */ z(B, {
|
|
6727
|
-
sx:
|
|
6757
|
+
sx: mo.sxContent,
|
|
6728
6758
|
children: [ne && k.map((e) => /* @__PURE__ */ R(zn, {
|
|
6729
6759
|
label: e,
|
|
6730
6760
|
size: "small",
|
|
@@ -6733,7 +6763,7 @@ function ho({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
|
|
|
6733
6763
|
"aria-label": te,
|
|
6734
6764
|
"data-testid": w ? `${w}-chip-${y(e)}-remove` : void 0
|
|
6735
6765
|
}),
|
|
6736
|
-
sx:
|
|
6766
|
+
sx: mo.sxChip,
|
|
6737
6767
|
"data-testid": w ? `${w}-chip-${y(e)}` : void 0
|
|
6738
6768
|
}, e)), /* @__PURE__ */ R(B, {
|
|
6739
6769
|
component: "input",
|
|
@@ -6747,7 +6777,7 @@ function ho({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
|
|
|
6747
6777
|
onKeyDown: fe,
|
|
6748
6778
|
onFocus: () => oe(!0),
|
|
6749
6779
|
onBlur: () => oe(!1),
|
|
6750
|
-
sx:
|
|
6780
|
+
sx: mo.sxInput,
|
|
6751
6781
|
"data-testid": w ? `${w}-input` : void 0
|
|
6752
6782
|
})]
|
|
6753
6783
|
}),
|
|
@@ -6755,7 +6785,7 @@ function ho({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
|
|
|
6755
6785
|
size: "small",
|
|
6756
6786
|
"aria-label": O,
|
|
6757
6787
|
onClick: pe,
|
|
6758
|
-
sx:
|
|
6788
|
+
sx: mo.sxClearBtn(ae),
|
|
6759
6789
|
"data-testid": w ? `${w}-icon-btn-clear` : void 0,
|
|
6760
6790
|
children: /* @__PURE__ */ R(Ln, {})
|
|
6761
6791
|
}),
|
|
@@ -6767,14 +6797,14 @@ function ho({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
|
|
|
6767
6797
|
e.stopPropagation(), p?.();
|
|
6768
6798
|
},
|
|
6769
6799
|
sx: {
|
|
6770
|
-
...
|
|
6800
|
+
...mo.sxIconBtn,
|
|
6771
6801
|
position: "relative",
|
|
6772
|
-
...f ?
|
|
6802
|
+
...f ? mo.sxAdvancedActive : {}
|
|
6773
6803
|
},
|
|
6774
6804
|
"data-testid": w ? `${w}-icon-btn-advanced` : void 0,
|
|
6775
6805
|
children: [/* @__PURE__ */ R(Rn, {}), f && /* @__PURE__ */ R(B, {
|
|
6776
6806
|
component: "span",
|
|
6777
|
-
sx:
|
|
6807
|
+
sx: mo.sxDot
|
|
6778
6808
|
})]
|
|
6779
6809
|
})
|
|
6780
6810
|
]
|
|
@@ -6782,7 +6812,7 @@ function ho({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
|
|
|
6782
6812
|
}
|
|
6783
6813
|
//#endregion
|
|
6784
6814
|
//#region src/lib/components/empty-state/CmsEmptyState.styles.ts
|
|
6785
|
-
var
|
|
6815
|
+
var vo = {
|
|
6786
6816
|
sxRoot: {
|
|
6787
6817
|
display: "flex",
|
|
6788
6818
|
flexDirection: "column",
|
|
@@ -6817,22 +6847,22 @@ var go = {
|
|
|
6817
6847
|
};
|
|
6818
6848
|
//#endregion
|
|
6819
6849
|
//#region src/lib/components/empty-state/CmsEmptyState.tsx
|
|
6820
|
-
function
|
|
6850
|
+
function yo({ title: e, description: t, icon: n, testId: r }) {
|
|
6821
6851
|
return /* @__PURE__ */ z(B, {
|
|
6822
|
-
sx:
|
|
6852
|
+
sx: vo.sxRoot,
|
|
6823
6853
|
"data-testid": r,
|
|
6824
6854
|
children: [
|
|
6825
6855
|
/* @__PURE__ */ R(B, {
|
|
6826
|
-
sx:
|
|
6856
|
+
sx: vo.sxIcon,
|
|
6827
6857
|
children: n ?? /* @__PURE__ */ R(Bn, {})
|
|
6828
6858
|
}),
|
|
6829
6859
|
/* @__PURE__ */ R(U, {
|
|
6830
|
-
sx:
|
|
6860
|
+
sx: vo.sxTitle,
|
|
6831
6861
|
"data-testid": r ? `${r}-title` : void 0,
|
|
6832
6862
|
children: e
|
|
6833
6863
|
}),
|
|
6834
6864
|
t ? /* @__PURE__ */ R(U, {
|
|
6835
|
-
sx:
|
|
6865
|
+
sx: vo.sxDescription,
|
|
6836
6866
|
"data-testid": r ? `${r}-description` : void 0,
|
|
6837
6867
|
children: t
|
|
6838
6868
|
}) : null
|
|
@@ -6841,7 +6871,7 @@ function _o({ title: e, description: t, icon: n, testId: r }) {
|
|
|
6841
6871
|
}
|
|
6842
6872
|
//#endregion
|
|
6843
6873
|
//#region src/lib/components/status-card/CmsStatusCard.styles.ts
|
|
6844
|
-
var
|
|
6874
|
+
var bo = {
|
|
6845
6875
|
sxRoot: {
|
|
6846
6876
|
display: "flex",
|
|
6847
6877
|
alignItems: "center",
|
|
@@ -6892,30 +6922,30 @@ var vo = {
|
|
|
6892
6922
|
};
|
|
6893
6923
|
//#endregion
|
|
6894
6924
|
//#region src/lib/components/status-card/CmsStatusCard.tsx
|
|
6895
|
-
function
|
|
6925
|
+
function xo({ title: e, description: t, icon: n, iconColor: r = A.textNav, backgroundColor: i = A.menuSurface, children: a, testId: o }) {
|
|
6896
6926
|
return /* @__PURE__ */ R(B, {
|
|
6897
6927
|
sx: {
|
|
6898
|
-
...
|
|
6928
|
+
...bo.sxRoot,
|
|
6899
6929
|
backgroundColor: i
|
|
6900
6930
|
},
|
|
6901
6931
|
"data-testid": o,
|
|
6902
6932
|
children: /* @__PURE__ */ z(B, {
|
|
6903
|
-
sx:
|
|
6933
|
+
sx: bo.sxContent,
|
|
6904
6934
|
children: [
|
|
6905
6935
|
/* @__PURE__ */ R(B, {
|
|
6906
|
-
sx:
|
|
6936
|
+
sx: bo.sxIcon(r),
|
|
6907
6937
|
"data-testid": o ? `${o}-icon` : void 0,
|
|
6908
6938
|
children: n ?? /* @__PURE__ */ R(ut, {})
|
|
6909
6939
|
}),
|
|
6910
6940
|
/* @__PURE__ */ R(U, {
|
|
6911
6941
|
component: "h3",
|
|
6912
|
-
sx:
|
|
6942
|
+
sx: bo.sxTitle,
|
|
6913
6943
|
"data-testid": o ? `${o}-title` : void 0,
|
|
6914
6944
|
children: e
|
|
6915
6945
|
}),
|
|
6916
6946
|
t ? /* @__PURE__ */ R(U, {
|
|
6917
6947
|
component: "p",
|
|
6918
|
-
sx:
|
|
6948
|
+
sx: bo.sxDescription,
|
|
6919
6949
|
"data-testid": o ? `${o}-description` : void 0,
|
|
6920
6950
|
children: t
|
|
6921
6951
|
}) : null,
|
|
@@ -6926,7 +6956,7 @@ function yo({ title: e, description: t, icon: n, iconColor: r = A.textNav, backg
|
|
|
6926
6956
|
}
|
|
6927
6957
|
//#endregion
|
|
6928
6958
|
//#region src/lib/components/filter-bar/CmsFilterBar.styles.ts
|
|
6929
|
-
var
|
|
6959
|
+
var So = {
|
|
6930
6960
|
sxRoot: {
|
|
6931
6961
|
display: "flex",
|
|
6932
6962
|
alignItems: "center",
|
|
@@ -6997,37 +7027,37 @@ var bo = {
|
|
|
6997
7027
|
};
|
|
6998
7028
|
//#endregion
|
|
6999
7029
|
//#region src/lib/components/filter-bar/CmsFilterBar.tsx
|
|
7000
|
-
function
|
|
7030
|
+
function Co({ label: e, chips: t, onClearAll: n, clearAllLabel: r, testId: i }) {
|
|
7001
7031
|
return t.length === 0 ? null : /* @__PURE__ */ z(B, {
|
|
7002
|
-
sx:
|
|
7032
|
+
sx: So.sxRoot,
|
|
7003
7033
|
"data-testid": i,
|
|
7004
7034
|
children: [
|
|
7005
7035
|
/* @__PURE__ */ z(B, {
|
|
7006
|
-
sx:
|
|
7007
|
-
children: [/* @__PURE__ */ R(Vn, { sx:
|
|
7036
|
+
sx: So.sxLabel,
|
|
7037
|
+
children: [/* @__PURE__ */ R(Vn, { sx: So.sxLabelIcon }), /* @__PURE__ */ R(U, {
|
|
7008
7038
|
component: "span",
|
|
7009
|
-
sx:
|
|
7039
|
+
sx: So.sxLabelText,
|
|
7010
7040
|
children: e
|
|
7011
7041
|
})]
|
|
7012
7042
|
}),
|
|
7013
7043
|
t.map((e) => /* @__PURE__ */ z(B, {
|
|
7014
|
-
sx:
|
|
7044
|
+
sx: So.sxChip,
|
|
7015
7045
|
"data-testid": e.testId,
|
|
7016
7046
|
children: [
|
|
7017
7047
|
e.icon ? /* @__PURE__ */ R(B, {
|
|
7018
|
-
sx:
|
|
7048
|
+
sx: So.sxChipIcon,
|
|
7019
7049
|
children: e.icon
|
|
7020
7050
|
}) : null,
|
|
7021
7051
|
/* @__PURE__ */ R(B, {
|
|
7022
7052
|
component: "span",
|
|
7023
|
-
sx:
|
|
7053
|
+
sx: So.sxChipLabel,
|
|
7024
7054
|
children: e.label
|
|
7025
7055
|
}),
|
|
7026
7056
|
/* @__PURE__ */ R(V, {
|
|
7027
7057
|
size: "small",
|
|
7028
7058
|
"aria-label": e.removeAriaLabel,
|
|
7029
7059
|
onClick: e.onRemove,
|
|
7030
|
-
sx:
|
|
7060
|
+
sx: So.sxChipRemove,
|
|
7031
7061
|
"data-testid": e.testId ? `${e.testId}-icon-btn-remove` : void 0,
|
|
7032
7062
|
children: /* @__PURE__ */ R(Ln, {})
|
|
7033
7063
|
})
|
|
@@ -7036,7 +7066,7 @@ function xo({ label: e, chips: t, onClearAll: n, clearAllLabel: r, testId: i })
|
|
|
7036
7066
|
n ? /* @__PURE__ */ R(H, {
|
|
7037
7067
|
onClick: n,
|
|
7038
7068
|
startIcon: /* @__PURE__ */ R(Ln, {}),
|
|
7039
|
-
sx:
|
|
7069
|
+
sx: So.sxClearAll,
|
|
7040
7070
|
"data-testid": i ? `${i}-btn-clear-all` : void 0,
|
|
7041
7071
|
children: r
|
|
7042
7072
|
}) : null
|
|
@@ -7162,7 +7192,7 @@ var Q = {
|
|
|
7162
7192
|
};
|
|
7163
7193
|
//#endregion
|
|
7164
7194
|
//#region src/lib/components/fields/CmsCheckboxField.tsx
|
|
7165
|
-
function
|
|
7195
|
+
function wo({ value: e, onChange: t, label: n, disabled: r = !1, testId: i }) {
|
|
7166
7196
|
let a = rt();
|
|
7167
7197
|
return /* @__PURE__ */ R(Gn, {
|
|
7168
7198
|
sx: Q.sxCheckboxLabel,
|
|
@@ -7182,7 +7212,7 @@ function So({ value: e, onChange: t, label: n, disabled: r = !1, testId: i }) {
|
|
|
7182
7212
|
}
|
|
7183
7213
|
//#endregion
|
|
7184
7214
|
//#region src/lib/components/fields/FieldShell.tsx
|
|
7185
|
-
function
|
|
7215
|
+
function To({ label: e, htmlFor: t, hint: n, children: r }) {
|
|
7186
7216
|
return /* @__PURE__ */ z(B, {
|
|
7187
7217
|
sx: Q.sxField,
|
|
7188
7218
|
children: [
|
|
@@ -7202,9 +7232,9 @@ function Co({ label: e, htmlFor: t, hint: n, children: r }) {
|
|
|
7202
7232
|
}
|
|
7203
7233
|
//#endregion
|
|
7204
7234
|
//#region src/lib/components/fields/CmsComboboxField.tsx
|
|
7205
|
-
function
|
|
7235
|
+
function Eo({ value: e, onChange: t, options: n, label: r, placeholder: i, hint: a, noOptionsText: o, disabled: s = !1, testId: c }) {
|
|
7206
7236
|
let l = rt(), { t: u } = G(), d = o ?? u.messages.search.noOptions, f = F(() => n.filter((e) => e.show !== !1), [n]);
|
|
7207
|
-
return /* @__PURE__ */ R(
|
|
7237
|
+
return /* @__PURE__ */ R(To, {
|
|
7208
7238
|
label: r,
|
|
7209
7239
|
htmlFor: l,
|
|
7210
7240
|
hint: a,
|
|
@@ -7234,7 +7264,7 @@ function wo({ value: e, onChange: t, options: n, label: r, placeholder: i, hint:
|
|
|
7234
7264
|
}
|
|
7235
7265
|
//#endregion
|
|
7236
7266
|
//#region src/lib/components/fields/CmsDateField.styles.ts
|
|
7237
|
-
var
|
|
7267
|
+
var Do = {
|
|
7238
7268
|
sxPaper: {
|
|
7239
7269
|
width: 312,
|
|
7240
7270
|
p: "12px 12px 8px",
|
|
@@ -7328,10 +7358,10 @@ var To = {
|
|
|
7328
7358
|
};
|
|
7329
7359
|
//#endregion
|
|
7330
7360
|
//#region src/lib/components/fields/CmsDateField.tsx
|
|
7331
|
-
function
|
|
7361
|
+
function Oo(e) {
|
|
7332
7362
|
return e < 10 ? `0${e}` : `${e}`;
|
|
7333
7363
|
}
|
|
7334
|
-
function
|
|
7364
|
+
function ko(e) {
|
|
7335
7365
|
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
7336
7366
|
return t ? {
|
|
7337
7367
|
y: +t[1],
|
|
@@ -7339,17 +7369,17 @@ function Do(e) {
|
|
|
7339
7369
|
d: +t[3]
|
|
7340
7370
|
} : null;
|
|
7341
7371
|
}
|
|
7342
|
-
function
|
|
7343
|
-
return `${e}-${
|
|
7372
|
+
function Ao(e, t, n) {
|
|
7373
|
+
return `${e}-${Oo(t + 1)}-${Oo(n)}`;
|
|
7344
7374
|
}
|
|
7345
|
-
function
|
|
7346
|
-
let o = rt(), { t: s, locale: c } = G(), l = s.messages.search, u = Nr(c), [d, f] = I(null), [p, m] = I(!1), h =
|
|
7375
|
+
function jo({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId: a }) {
|
|
7376
|
+
let o = rt(), { t: s, locale: c } = G(), l = s.messages.search, u = Nr(c), [d, f] = I(null), [p, m] = I(!1), h = ko(e), g = /* @__PURE__ */ new Date(), [_, v] = I(() => h ? {
|
|
7347
7377
|
y: h.y,
|
|
7348
7378
|
m: h.m
|
|
7349
7379
|
} : {
|
|
7350
7380
|
y: g.getFullYear(),
|
|
7351
7381
|
m: g.getMonth()
|
|
7352
|
-
}), y = h ? `${
|
|
7382
|
+
}), y = h ? `${Oo(h.d)}/${Oo(h.m + 1)}/${h.y}` : "", b = F(() => {
|
|
7353
7383
|
let e = new Intl.DateTimeFormat(u, { weekday: "short" }), t = new Date(2023, 0, 2);
|
|
7354
7384
|
return Array.from({ length: 7 }, (n, r) => {
|
|
7355
7385
|
let i = new Date(t.getFullYear(), t.getMonth(), t.getDate() + r);
|
|
@@ -7389,9 +7419,9 @@ function ko({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
7389
7419
|
y: e.y,
|
|
7390
7420
|
m: e.m + 1
|
|
7391
7421
|
}), E = (e) => {
|
|
7392
|
-
t(
|
|
7422
|
+
t(Ao(e.y, e.m, e.d)), m(!1);
|
|
7393
7423
|
};
|
|
7394
|
-
return /* @__PURE__ */ z(
|
|
7424
|
+
return /* @__PURE__ */ z(To, {
|
|
7395
7425
|
label: n,
|
|
7396
7426
|
htmlFor: o,
|
|
7397
7427
|
hint: r,
|
|
@@ -7439,34 +7469,34 @@ function ko({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
7439
7469
|
vertical: "top",
|
|
7440
7470
|
horizontal: "left"
|
|
7441
7471
|
},
|
|
7442
|
-
slotProps: { paper: { sx:
|
|
7472
|
+
slotProps: { paper: { sx: Do.sxPaper } },
|
|
7443
7473
|
children: [
|
|
7444
7474
|
/* @__PURE__ */ z(B, {
|
|
7445
|
-
sx:
|
|
7475
|
+
sx: Do.sxHeader,
|
|
7446
7476
|
children: [/* @__PURE__ */ R(B, {
|
|
7447
|
-
sx:
|
|
7477
|
+
sx: Do.sxMonthLabel,
|
|
7448
7478
|
children: x
|
|
7449
7479
|
}), /* @__PURE__ */ z(B, {
|
|
7450
|
-
sx:
|
|
7480
|
+
sx: Do.sxNav,
|
|
7451
7481
|
children: [/* @__PURE__ */ R(V, {
|
|
7452
7482
|
size: "small",
|
|
7453
7483
|
"aria-label": l.prevMonthAriaLabel,
|
|
7454
7484
|
onClick: w,
|
|
7455
|
-
sx:
|
|
7485
|
+
sx: Do.sxNavBtn,
|
|
7456
7486
|
children: /* @__PURE__ */ R(Yn, {})
|
|
7457
7487
|
}), /* @__PURE__ */ R(V, {
|
|
7458
7488
|
size: "small",
|
|
7459
7489
|
"aria-label": l.nextMonthAriaLabel,
|
|
7460
7490
|
onClick: T,
|
|
7461
|
-
sx:
|
|
7491
|
+
sx: Do.sxNavBtn,
|
|
7462
7492
|
children: /* @__PURE__ */ R(mt, {})
|
|
7463
7493
|
})]
|
|
7464
7494
|
})]
|
|
7465
7495
|
}),
|
|
7466
7496
|
/* @__PURE__ */ z(B, {
|
|
7467
|
-
sx:
|
|
7497
|
+
sx: Do.sxGrid,
|
|
7468
7498
|
children: [b.map((e, t) => /* @__PURE__ */ R(B, {
|
|
7469
|
-
sx:
|
|
7499
|
+
sx: Do.sxDow,
|
|
7470
7500
|
children: e
|
|
7471
7501
|
}, `dow-${t}`)), S.map((e, t) => {
|
|
7472
7502
|
let n = e.m !== _.m, r = e.y === g.getFullYear() && e.m === g.getMonth() && e.d === g.getDate(), i = !!h && e.y === h.y && e.m === h.m && e.d === h.d;
|
|
@@ -7474,7 +7504,7 @@ function ko({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
7474
7504
|
component: "button",
|
|
7475
7505
|
type: "button",
|
|
7476
7506
|
onClick: () => E(e),
|
|
7477
|
-
sx:
|
|
7507
|
+
sx: Do.sxDay({
|
|
7478
7508
|
other: n,
|
|
7479
7509
|
today: r,
|
|
7480
7510
|
selected: i
|
|
@@ -7484,17 +7514,17 @@ function ko({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
7484
7514
|
})]
|
|
7485
7515
|
}),
|
|
7486
7516
|
/* @__PURE__ */ z(B, {
|
|
7487
|
-
sx:
|
|
7517
|
+
sx: Do.sxFooter,
|
|
7488
7518
|
children: [/* @__PURE__ */ R(H, {
|
|
7489
|
-
sx:
|
|
7519
|
+
sx: Do.sxFooterBtn,
|
|
7490
7520
|
onClick: () => {
|
|
7491
7521
|
t(""), m(!1);
|
|
7492
7522
|
},
|
|
7493
7523
|
children: l.dateClear
|
|
7494
7524
|
}), /* @__PURE__ */ R(H, {
|
|
7495
|
-
sx:
|
|
7525
|
+
sx: Do.sxFooterBtn,
|
|
7496
7526
|
onClick: () => {
|
|
7497
|
-
t(
|
|
7527
|
+
t(Ao(g.getFullYear(), g.getMonth(), g.getDate())), m(!1);
|
|
7498
7528
|
},
|
|
7499
7529
|
children: l.dateToday
|
|
7500
7530
|
})]
|
|
@@ -7505,9 +7535,9 @@ function ko({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
7505
7535
|
}
|
|
7506
7536
|
//#endregion
|
|
7507
7537
|
//#region src/lib/components/fields/CmsMultiSelectField.tsx
|
|
7508
|
-
function
|
|
7538
|
+
function Mo({ value: e, onChange: t, options: n, label: r, placeholder: i, hint: a, noOptionsText: o, disabled: s = !1, testId: c }) {
|
|
7509
7539
|
let l = rt(), { t: u } = G(), d = o ?? u.messages.search.noOptions, f = F(() => n.filter((e) => e.show !== !1), [n]), p = F(() => f.filter((t) => e.includes(t.value)), [f, e]);
|
|
7510
|
-
return /* @__PURE__ */ R(
|
|
7540
|
+
return /* @__PURE__ */ R(To, {
|
|
7511
7541
|
label: r,
|
|
7512
7542
|
htmlFor: l,
|
|
7513
7543
|
hint: a,
|
|
@@ -7588,9 +7618,9 @@ function Ao({ value: e, onChange: t, options: n, label: r, placeholder: i, hint:
|
|
|
7588
7618
|
}
|
|
7589
7619
|
//#endregion
|
|
7590
7620
|
//#region src/lib/components/fields/CmsNumberField.tsx
|
|
7591
|
-
function
|
|
7621
|
+
function No({ value: e, onChange: t, label: n, placeholder: r, hint: i, min: a, max: o, disabled: s = !1, testId: c }) {
|
|
7592
7622
|
let l = rt();
|
|
7593
|
-
return /* @__PURE__ */ R(
|
|
7623
|
+
return /* @__PURE__ */ R(To, {
|
|
7594
7624
|
label: n,
|
|
7595
7625
|
htmlFor: l,
|
|
7596
7626
|
hint: i,
|
|
@@ -7615,9 +7645,9 @@ function jo({ value: e, onChange: t, label: n, placeholder: r, hint: i, min: a,
|
|
|
7615
7645
|
}
|
|
7616
7646
|
//#endregion
|
|
7617
7647
|
//#region src/lib/components/fields/CmsSelectField.tsx
|
|
7618
|
-
function
|
|
7648
|
+
function Po({ value: e, onChange: t, options: n, label: r, placeholder: i, hint: a, disabled: o = !1, showCheck: s = !0, testId: c }) {
|
|
7619
7649
|
let l = rt(), u = F(() => n.filter((e) => e.show !== !1), [n]);
|
|
7620
|
-
return /* @__PURE__ */ R(
|
|
7650
|
+
return /* @__PURE__ */ R(To, {
|
|
7621
7651
|
label: r,
|
|
7622
7652
|
htmlFor: l,
|
|
7623
7653
|
hint: a,
|
|
@@ -7683,9 +7713,9 @@ function Mo({ value: e, onChange: t, options: n, label: r, placeholder: i, hint:
|
|
|
7683
7713
|
}
|
|
7684
7714
|
//#endregion
|
|
7685
7715
|
//#region src/lib/components/fields/CmsTagsField.tsx
|
|
7686
|
-
function
|
|
7716
|
+
function Fo({ value: e, onChange: t, label: n, placeholder: r, hint: i, suggestions: a = [], startIcon: o, chipSx: s, disabled: c = !1, testId: l }) {
|
|
7687
7717
|
let u = rt();
|
|
7688
|
-
return /* @__PURE__ */ R(
|
|
7718
|
+
return /* @__PURE__ */ R(To, {
|
|
7689
7719
|
label: n,
|
|
7690
7720
|
htmlFor: u,
|
|
7691
7721
|
hint: i,
|
|
@@ -7734,9 +7764,9 @@ function No({ value: e, onChange: t, label: n, placeholder: r, hint: i, suggesti
|
|
|
7734
7764
|
}
|
|
7735
7765
|
//#endregion
|
|
7736
7766
|
//#region src/lib/components/fields/CmsTextField.tsx
|
|
7737
|
-
function
|
|
7767
|
+
function Io({ value: e, onChange: t, label: n, placeholder: r, hint: i, type: a = "text", disabled: o = !1, testId: s }) {
|
|
7738
7768
|
let c = rt();
|
|
7739
|
-
return /* @__PURE__ */ R(
|
|
7769
|
+
return /* @__PURE__ */ R(To, {
|
|
7740
7770
|
label: n,
|
|
7741
7771
|
htmlFor: c,
|
|
7742
7772
|
hint: i,
|
|
@@ -7756,10 +7786,10 @@ function Po({ value: e, onChange: t, label: n, placeholder: r, hint: i, type: a
|
|
|
7756
7786
|
}
|
|
7757
7787
|
//#endregion
|
|
7758
7788
|
//#region src/lib/components/fields/FieldRenderer.tsx
|
|
7759
|
-
function
|
|
7789
|
+
function Lo({ field: e, value: t, onChange: n }) {
|
|
7760
7790
|
let r = typeof t == "string" ? t : "", i = Array.isArray(t) ? t : [], a = t === !0;
|
|
7761
7791
|
switch (e.kind) {
|
|
7762
|
-
case "text": return /* @__PURE__ */ R(
|
|
7792
|
+
case "text": return /* @__PURE__ */ R(Io, {
|
|
7763
7793
|
label: e.label,
|
|
7764
7794
|
placeholder: e.placeholder,
|
|
7765
7795
|
hint: e.hint,
|
|
@@ -7769,7 +7799,7 @@ function Fo({ field: e, value: t, onChange: n }) {
|
|
|
7769
7799
|
value: r,
|
|
7770
7800
|
onChange: n
|
|
7771
7801
|
});
|
|
7772
|
-
case "number": return /* @__PURE__ */ R(
|
|
7802
|
+
case "number": return /* @__PURE__ */ R(No, {
|
|
7773
7803
|
label: e.label,
|
|
7774
7804
|
placeholder: e.placeholder,
|
|
7775
7805
|
hint: e.hint,
|
|
@@ -7780,7 +7810,7 @@ function Fo({ field: e, value: t, onChange: n }) {
|
|
|
7780
7810
|
value: r,
|
|
7781
7811
|
onChange: n
|
|
7782
7812
|
});
|
|
7783
|
-
case "date": return /* @__PURE__ */ R(
|
|
7813
|
+
case "date": return /* @__PURE__ */ R(jo, {
|
|
7784
7814
|
label: e.label,
|
|
7785
7815
|
hint: e.hint,
|
|
7786
7816
|
disabled: e.disabled,
|
|
@@ -7788,7 +7818,7 @@ function Fo({ field: e, value: t, onChange: n }) {
|
|
|
7788
7818
|
value: r,
|
|
7789
7819
|
onChange: n
|
|
7790
7820
|
});
|
|
7791
|
-
case "select": return /* @__PURE__ */ R(
|
|
7821
|
+
case "select": return /* @__PURE__ */ R(Po, {
|
|
7792
7822
|
label: e.label,
|
|
7793
7823
|
placeholder: e.placeholder,
|
|
7794
7824
|
hint: e.hint,
|
|
@@ -7799,7 +7829,7 @@ function Fo({ field: e, value: t, onChange: n }) {
|
|
|
7799
7829
|
value: r,
|
|
7800
7830
|
onChange: n
|
|
7801
7831
|
});
|
|
7802
|
-
case "combobox": return /* @__PURE__ */ R(
|
|
7832
|
+
case "combobox": return /* @__PURE__ */ R(Eo, {
|
|
7803
7833
|
label: e.label,
|
|
7804
7834
|
placeholder: e.placeholder,
|
|
7805
7835
|
hint: e.hint,
|
|
@@ -7809,7 +7839,7 @@ function Fo({ field: e, value: t, onChange: n }) {
|
|
|
7809
7839
|
value: r,
|
|
7810
7840
|
onChange: n
|
|
7811
7841
|
});
|
|
7812
|
-
case "multiselect": return /* @__PURE__ */ R(
|
|
7842
|
+
case "multiselect": return /* @__PURE__ */ R(Mo, {
|
|
7813
7843
|
label: e.label,
|
|
7814
7844
|
placeholder: e.placeholder,
|
|
7815
7845
|
hint: e.hint,
|
|
@@ -7819,7 +7849,7 @@ function Fo({ field: e, value: t, onChange: n }) {
|
|
|
7819
7849
|
value: i,
|
|
7820
7850
|
onChange: n
|
|
7821
7851
|
});
|
|
7822
|
-
case "tags": return /* @__PURE__ */ R(
|
|
7852
|
+
case "tags": return /* @__PURE__ */ R(Fo, {
|
|
7823
7853
|
label: e.label,
|
|
7824
7854
|
placeholder: e.placeholder,
|
|
7825
7855
|
hint: e.hint,
|
|
@@ -7828,7 +7858,7 @@ function Fo({ field: e, value: t, onChange: n }) {
|
|
|
7828
7858
|
value: i,
|
|
7829
7859
|
onChange: n
|
|
7830
7860
|
});
|
|
7831
|
-
case "checkbox": return /* @__PURE__ */ R(
|
|
7861
|
+
case "checkbox": return /* @__PURE__ */ R(wo, {
|
|
7832
7862
|
label: e.label,
|
|
7833
7863
|
disabled: e.disabled,
|
|
7834
7864
|
testId: e.testId,
|
|
@@ -7950,7 +7980,7 @@ var $ = {
|
|
|
7950
7980
|
};
|
|
7951
7981
|
//#endregion
|
|
7952
7982
|
//#region src/lib/components/advanced-search/defaultFields.ts
|
|
7953
|
-
function
|
|
7983
|
+
function Ro(e) {
|
|
7954
7984
|
let t = e.messages.searchFields, n = e.messages.searchOptions;
|
|
7955
7985
|
return [
|
|
7956
7986
|
{
|
|
@@ -8142,7 +8172,7 @@ function Io(e) {
|
|
|
8142
8172
|
}
|
|
8143
8173
|
//#endregion
|
|
8144
8174
|
//#region src/lib/components/advanced-search/CmsAdvancedSearch.tsx
|
|
8145
|
-
function
|
|
8175
|
+
function zo(e) {
|
|
8146
8176
|
switch (e.kind) {
|
|
8147
8177
|
case "multiselect":
|
|
8148
8178
|
case "tags": return [];
|
|
@@ -8150,10 +8180,10 @@ function Lo(e) {
|
|
|
8150
8180
|
default: return "";
|
|
8151
8181
|
}
|
|
8152
8182
|
}
|
|
8153
|
-
function
|
|
8154
|
-
let { t: h } = G(), g = h.messages.search, _ = F(() => a ??
|
|
8183
|
+
function Bo({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i, fields: a, initialValues: o, onApply: s, onReset: c, applyLabel: l, resetLabel: u, closeAriaLabel: d, columns: f = 3, drawerWidth: p = 360, testId: m }) {
|
|
8184
|
+
let { t: h } = G(), g = h.messages.search, _ = F(() => a ?? Ro(h), [a, h]), v = r ?? g.title, y = l ?? g.apply, b = u ?? g.reset, x = d ?? g.close, S = F(() => {
|
|
8155
8185
|
let e = {};
|
|
8156
|
-
for (let t of _) e[t.name] =
|
|
8186
|
+
for (let t of _) e[t.name] = zo(t);
|
|
8157
8187
|
return {
|
|
8158
8188
|
...e,
|
|
8159
8189
|
...o
|
|
@@ -8167,7 +8197,7 @@ function Ro({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i,
|
|
|
8167
8197
|
}));
|
|
8168
8198
|
}, O = () => {
|
|
8169
8199
|
let e = {};
|
|
8170
|
-
for (let t of _) e[t.name] =
|
|
8200
|
+
for (let t of _) e[t.name] = zo(t);
|
|
8171
8201
|
w(e), c?.();
|
|
8172
8202
|
}, ee = () => {
|
|
8173
8203
|
s(C), t();
|
|
@@ -8202,7 +8232,7 @@ function Ro({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i,
|
|
|
8202
8232
|
sx: $.sxGrid(f, te),
|
|
8203
8233
|
children: _.map((e) => /* @__PURE__ */ R(B, {
|
|
8204
8234
|
sx: { gridColumn: !te && e.span && e.span > 1 ? `span ${e.span}` : void 0 },
|
|
8205
|
-
children: /* @__PURE__ */ R(
|
|
8235
|
+
children: /* @__PURE__ */ R(Lo, {
|
|
8206
8236
|
field: e,
|
|
8207
8237
|
value: C[e.name],
|
|
8208
8238
|
onChange: (t) => D(e.name, t)
|
|
@@ -8247,7 +8277,7 @@ function Ro({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i,
|
|
|
8247
8277
|
}
|
|
8248
8278
|
//#endregion
|
|
8249
8279
|
//#region src/lib/components/confirm-dialog/CmsConfirmDialog.styles.ts
|
|
8250
|
-
var
|
|
8280
|
+
var Vo = {
|
|
8251
8281
|
sxPaper: (e, t, n) => ({
|
|
8252
8282
|
position: "relative",
|
|
8253
8283
|
width: e ?? "auto",
|
|
@@ -8319,16 +8349,16 @@ var zo = {
|
|
|
8319
8349
|
mt: "auto",
|
|
8320
8350
|
pt: "8px"
|
|
8321
8351
|
}
|
|
8322
|
-
},
|
|
8352
|
+
}, Ho = {
|
|
8323
8353
|
start: "flex-start",
|
|
8324
8354
|
center: "center",
|
|
8325
8355
|
end: "flex-end",
|
|
8326
8356
|
between: "space-between"
|
|
8327
|
-
},
|
|
8357
|
+
}, Uo = {
|
|
8328
8358
|
sxRoot: (e) => ({
|
|
8329
8359
|
display: "flex",
|
|
8330
8360
|
alignItems: "center",
|
|
8331
|
-
justifyContent:
|
|
8361
|
+
justifyContent: Ho[e],
|
|
8332
8362
|
gap: "10px",
|
|
8333
8363
|
width: "100%"
|
|
8334
8364
|
}),
|
|
@@ -8354,12 +8384,12 @@ var zo = {
|
|
|
8354
8384
|
}
|
|
8355
8385
|
},
|
|
8356
8386
|
sxCancelButton: (e) => ({
|
|
8357
|
-
...
|
|
8358
|
-
...e ?
|
|
8387
|
+
...Uo.sxCancel,
|
|
8388
|
+
...e ? Uo.sxGrow : {}
|
|
8359
8389
|
}),
|
|
8360
8390
|
sxConfirmButton: (e, t) => ({
|
|
8361
|
-
...
|
|
8362
|
-
...t ?
|
|
8391
|
+
...Uo.sxConfirm(e),
|
|
8392
|
+
...t ? Uo.sxGrow : {}
|
|
8363
8393
|
}),
|
|
8364
8394
|
sxConfirm: (e) => {
|
|
8365
8395
|
let t = e === "danger" ? A.danger : A.primary, n = e === "danger" ? A.dangerHover : A.primaryHover;
|
|
@@ -8390,17 +8420,17 @@ var zo = {
|
|
|
8390
8420
|
};
|
|
8391
8421
|
//#endregion
|
|
8392
8422
|
//#region src/lib/components/confirm-dialog/CmsDialogActions.tsx
|
|
8393
|
-
function
|
|
8423
|
+
function Wo({ cancelLabel: e, onCancel: t, confirmLabel: n, onConfirm: r, confirmIcon: i, confirmColor: a = "primary", cancelDisabled: o, confirmDisabled: s, fullWidth: c = !0, align: l = "end", testId: u }) {
|
|
8394
8424
|
let d = e != null, f = n != null;
|
|
8395
8425
|
return !d && !f ? null : /* @__PURE__ */ z(B, {
|
|
8396
|
-
sx:
|
|
8426
|
+
sx: Uo.sxRoot(l),
|
|
8397
8427
|
"data-testid": u,
|
|
8398
8428
|
children: [d && /* @__PURE__ */ R(H, {
|
|
8399
8429
|
type: "button",
|
|
8400
8430
|
disableElevation: !0,
|
|
8401
8431
|
onClick: t,
|
|
8402
8432
|
disabled: o,
|
|
8403
|
-
sx:
|
|
8433
|
+
sx: Uo.sxCancelButton(c),
|
|
8404
8434
|
"data-testid": u ? `${u}-btn-cancel` : void 0,
|
|
8405
8435
|
"data-action": "cancel",
|
|
8406
8436
|
children: e
|
|
@@ -8410,7 +8440,7 @@ function Ho({ cancelLabel: e, onCancel: t, confirmLabel: n, onConfirm: r, confir
|
|
|
8410
8440
|
onClick: r,
|
|
8411
8441
|
disabled: s,
|
|
8412
8442
|
startIcon: i ?? void 0,
|
|
8413
|
-
sx:
|
|
8443
|
+
sx: Uo.sxConfirmButton(a, c),
|
|
8414
8444
|
"data-testid": u ? `${u}-btn-confirm` : void 0,
|
|
8415
8445
|
"data-action": "confirm",
|
|
8416
8446
|
children: n
|
|
@@ -8419,7 +8449,7 @@ function Ho({ cancelLabel: e, onCancel: t, confirmLabel: n, onConfirm: r, confir
|
|
|
8419
8449
|
}
|
|
8420
8450
|
//#endregion
|
|
8421
8451
|
//#region src/lib/components/confirm-dialog/CmsConfirmDialog.tsx
|
|
8422
|
-
function
|
|
8452
|
+
function Go({ open: e, onClose: t, icon: n, iconColor: r = A.textNav, title: i, description: a, showClose: o = !0, closeAriaLabel: s, cancelLabel: c, onCancel: l, confirmLabel: u, onConfirm: d, confirmIcon: f, confirmColor: p = "primary", cancelDisabled: m, confirmDisabled: h, fullWidthActions: g = !1, actionsAlign: _ = "end", width: v, minWidth: y = 420, minHeight: b = 280, disableBackdropClose: x, testId: S }) {
|
|
8423
8453
|
let C = c != null || u != null;
|
|
8424
8454
|
return /* @__PURE__ */ z(Hn, {
|
|
8425
8455
|
open: e,
|
|
@@ -8428,34 +8458,34 @@ function Uo({ open: e, onClose: t, icon: n, iconColor: r = A.textNav, title: i,
|
|
|
8428
8458
|
},
|
|
8429
8459
|
maxWidth: !1,
|
|
8430
8460
|
slotProps: { paper: {
|
|
8431
|
-
sx:
|
|
8461
|
+
sx: Vo.sxPaper(v, y, b),
|
|
8432
8462
|
...S == null ? {} : { "data-testid": S }
|
|
8433
8463
|
} },
|
|
8434
8464
|
children: [
|
|
8435
8465
|
o && /* @__PURE__ */ R(V, {
|
|
8436
8466
|
"aria-label": s ?? "Close",
|
|
8437
8467
|
onClick: t,
|
|
8438
|
-
sx:
|
|
8468
|
+
sx: Vo.sxClose,
|
|
8439
8469
|
"data-testid": S ? `${S}-icon-btn-close` : void 0,
|
|
8440
8470
|
children: /* @__PURE__ */ R(ot, {})
|
|
8441
8471
|
}),
|
|
8442
8472
|
n != null && /* @__PURE__ */ R(B, {
|
|
8443
|
-
sx:
|
|
8473
|
+
sx: Vo.sxIcon(r),
|
|
8444
8474
|
children: n
|
|
8445
8475
|
}),
|
|
8446
8476
|
i != null && /* @__PURE__ */ R(B, {
|
|
8447
8477
|
component: "h2",
|
|
8448
|
-
sx:
|
|
8478
|
+
sx: Vo.sxTitle,
|
|
8449
8479
|
children: i
|
|
8450
8480
|
}),
|
|
8451
8481
|
a != null && /* @__PURE__ */ R(B, {
|
|
8452
8482
|
component: "p",
|
|
8453
|
-
sx:
|
|
8483
|
+
sx: Vo.sxDescription,
|
|
8454
8484
|
children: a
|
|
8455
8485
|
}),
|
|
8456
8486
|
C && /* @__PURE__ */ R(B, {
|
|
8457
|
-
sx:
|
|
8458
|
-
children: /* @__PURE__ */ R(
|
|
8487
|
+
sx: Vo.sxActions,
|
|
8488
|
+
children: /* @__PURE__ */ R(Wo, {
|
|
8459
8489
|
cancelLabel: c,
|
|
8460
8490
|
onCancel: l ?? t,
|
|
8461
8491
|
confirmLabel: u,
|
|
@@ -8474,7 +8504,7 @@ function Uo({ open: e, onClose: t, icon: n, iconColor: r = A.textNav, title: i,
|
|
|
8474
8504
|
}
|
|
8475
8505
|
//#endregion
|
|
8476
8506
|
//#region src/lib/components/relative-time/CmsRelativeTime.tsx
|
|
8477
|
-
function
|
|
8507
|
+
function Ko({ epochMs: e, localeTag: t, style: n = "long", title: r, testId: i, className: a }) {
|
|
8478
8508
|
let [o, s] = I(null);
|
|
8479
8509
|
return P(() => {
|
|
8480
8510
|
s(Date.now());
|
|
@@ -8492,6 +8522,6 @@ function Wo({ epochMs: e, localeTag: t, style: n = "long", title: r, testId: i,
|
|
|
8492
8522
|
});
|
|
8493
8523
|
}
|
|
8494
8524
|
//#endregion
|
|
8495
|
-
export {
|
|
8525
|
+
export { vi as ACCOUNT_NAV_BLOCKS, Ma as AppShell, lo as BtnDropdown, Bo as CmsAdvancedSearch, a as CmsAudiosServices, t as CmsAuthLoginServices, c as CmsAuthServices, o as CmsCategoriesServices, wo as CmsCheckboxField, C as CmsCkeditorServices, Eo as CmsComboboxField, r as CmsCommentsServices, Ie as CmsCommonServices, Go as CmsConfirmDialog, x as CmsContributionsServices, Ve as CmsCopilotServices, v as CmsDashboardServices, jo as CmsDateField, Wo as CmsDialogActions, yo as CmsEmptyState, Ya as CmsErrorPage, We as CmsEventsServices, Be as CmsFileExplorerServices, Co as CmsFilterBar, $a as CmsFontFaces, ne as CmsGeneralServices, Mr as CmsI18nProvider, me as CmsImagesServices, io as CmsMuiProvider, Mo as CmsMultiSelectField, Hr as CmsNetworkContext, qr as CmsNetworkProvider, Yr as CmsNetworkToaster, ge as CmsNewsServices, we as CmsNotificationServices, No as CmsNumberField, Ae as CmsPeopleServices, fe as CmsPlanningServices, le as CmsPollsServices, _ as CmsPreviewServices, ae as CmsProductivityPlanServices, g as CmsProfileServices, h as CmsPublicationsServices, Re as CmsRecipesServices, Ko as CmsRelativeTime, _o as CmsSearchField, Ue as CmsSectionsServices, Po as CmsSelectField, be as CmsSitesServices, xo as CmsStatusCard, Fo as CmsTagsField, Ee as CmsTagsServices, Io as CmsTextField, Lr as CmsToast, Rr as CmsToastContext, zr as CmsToastProvider, Me as CmsTranscribeServices, ve as CmsTriviasServices, xe as CmsUploadServices, Se as CmsUsersServices, re as CmsVideosServices, Oe as CmsVodsServices, Pe as CmsWorkpaperServices, se as CmsZonesServices, ga as CurrentUserPhotoProvider, kr as DEFAULT_LOCALE, Ha as DEFAULT_NEW_CONTENT_GROUPS, ra as DEFAULT_PREVIEW_FORMATS, T as DEFAULT_SITE_ID, pr as DEFAULT_THEME_PREFERENCE, ai as DefaultCmsLink, Lo as FieldRenderer, To as FieldShell, D as ITEM_DEFAULT_BG, l as ITEM_HOVER_BG, Zn as LIB_VERSION, p as MENU_BG, Le as NETWORK_ERROR_CODES, qa as NewContentMenu, oo as NextCmsMuiProvider, Yi as NotificationsMenu, ia as PreviewMenu, Ta as ProfileMenu, Or as SUPPORTED_LOCALES, po as SelectDropdown, sr as SelectStyles, Va as Sidebar, Di as SidebarRail, na as SimpleDropdown, Ai as SiteSelectorMenu, fr as THEME_COLOR_SCHEME_ATTRIBUTE, dr as THEME_ENABLED_STORAGE_KEY, ur as THEME_MODE_STORAGE_KEY, Aa as TopBar, ya as UserAvatar, Ro as buildDefaultSearchFields, De as classifyNetworkError, ar as cmsButtonDivider, ir as cmsButtonHoverBg, rr as cmsButtonSurface, A as cmsColors, lr as cmsFontFaces, e as cmsNetworkBridge, ue as commonErrorsEn, ze as commonErrorsEs, Ce as commonErrorsPt, Te as confidenceColors, nr as createAppTheme, br as createTranslator, wr as defaultLocaleCatalog, _e as editorialOpportunityColors, xr as enMessages, Sr as esMessages, he as feedbackBadgeColors, k as feedbackColors, Q as fieldStyles, d as filterModulesByPermissions, je as findPublicationBySlug, f as findPublicationLabel, j as fontFamilies, b as formatRelativeTime, Ke as formatSiteDateTime, ee as getAllPublications, ke as getCommonError, O as getDefaultPublicationSlug, mr as getEffectiveThemeMode, Nr as getIntlLocaleTag, Ne as getNetworkErrorCodeFromResult, ua as getProfileAvatarSrc, da as getProfileDisplayName, fa as getProfileFullName, n as getSiteNow, m as hasModulePermission, Ge as interestColors, ri as isFrameworkControlFlowError, ye as isNetworkErrorCode, Ua as isNewContentItemVisible, ie as isRetryableNetworkCode, Dr as mergeAppMessages, Tr as mergeMessages, Fe as normalizeErrorCode, Ar as normalizeLocale, oe as notificationColors, E as parseGmtOffsetMinutes, te as parsePublicationSlug, Cr as ptMessages, M as radii, gr as readEffectiveThemeMode, hr as readThemePreference, sa as resolveCmsAssetUrl, oa as resolveCmsOrigin, ce as resolveErrorSeverity, de as resumeAxiosOnNetworkError, S as shadows, i as sizes, He as sourceColors, w as stateColors, li as submitLegacyAdminPage, cr as sxMenuSurface, or as sxPillButton, u as toSiteWallClock, y as toTestId, Jr as useCmsNetworkStatus, Vr as useCmsToast, G as useCmsTranslation, _a as useCurrentUserPhoto, ni as useResilientAction, ii as useResilientFormAction, s as userStatusColors, _r as writeThemePreference };
|
|
8496
8526
|
|
|
8497
8527
|
//# sourceMappingURL=index.js.map
|