sass-cms-template-common 0.0.26 → 0.0.28
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 +1 -1
- package/dist/index.js +350 -309
- package/dist/index.js.map +1 -1
- package/dist/server.js +1 -1
- package/dist/{services-ByTYzguw.js → services-2zqQa6zN.js} +29 -1
- package/dist/services-2zqQa6zN.js.map +1 -0
- package/package.json +1 -1
- package/dist/services-ByTYzguw.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-2zqQa6zN.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";
|
|
@@ -2403,7 +2403,7 @@ var gi = [
|
|
|
2403
2403
|
{
|
|
2404
2404
|
href: "/admin/post",
|
|
2405
2405
|
icon: Rt,
|
|
2406
|
-
module: "
|
|
2406
|
+
module: "NEWS",
|
|
2407
2407
|
legacy: !0,
|
|
2408
2408
|
appendPublicationId: !0
|
|
2409
2409
|
},
|
|
@@ -4122,9 +4122,9 @@ var X = {
|
|
|
4122
4122
|
display: "flex",
|
|
4123
4123
|
flexDirection: "column",
|
|
4124
4124
|
gap: 1.25,
|
|
4125
|
-
p:
|
|
4126
|
-
borderRadius:
|
|
4127
|
-
bgcolor:
|
|
4125
|
+
p: "12px",
|
|
4126
|
+
borderRadius: "12px",
|
|
4127
|
+
bgcolor: _e.cardBg,
|
|
4128
4128
|
width: "100%"
|
|
4129
4129
|
},
|
|
4130
4130
|
sxOpportunityHeader: {
|
|
@@ -4146,7 +4146,7 @@ var X = {
|
|
|
4146
4146
|
fontWeight: 700,
|
|
4147
4147
|
letterSpacing: "0.06em",
|
|
4148
4148
|
textTransform: "uppercase",
|
|
4149
|
-
color: A.
|
|
4149
|
+
color: A.kundera
|
|
4150
4150
|
},
|
|
4151
4151
|
sxOpportunityCount: {
|
|
4152
4152
|
display: "inline-flex",
|
|
@@ -4166,14 +4166,15 @@ var X = {
|
|
|
4166
4166
|
position: "relative",
|
|
4167
4167
|
width: 36,
|
|
4168
4168
|
height: 36,
|
|
4169
|
-
borderRadius:
|
|
4169
|
+
borderRadius: "14px",
|
|
4170
4170
|
display: "grid",
|
|
4171
4171
|
placeItems: "center",
|
|
4172
|
-
bgcolor:
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4172
|
+
bgcolor: _e.iconBg,
|
|
4173
|
+
boxShadow: `inset 0 0 0 1px ${_e.iconShadow}`,
|
|
4174
|
+
"& svg": {
|
|
4175
|
+
fontSize: 20,
|
|
4176
|
+
fill: "url(#editorial-opportunity-icon-gradient)"
|
|
4177
|
+
},
|
|
4177
4178
|
"@keyframes opportunityIconRing": {
|
|
4178
4179
|
"0%": {
|
|
4179
4180
|
opacity: .6,
|
|
@@ -4190,7 +4191,7 @@ var X = {
|
|
|
4190
4191
|
inset: "-2px",
|
|
4191
4192
|
borderRadius: "inherit",
|
|
4192
4193
|
border: "2px solid",
|
|
4193
|
-
borderColor: A.
|
|
4194
|
+
borderColor: A.kundera,
|
|
4194
4195
|
pointerEvents: "none",
|
|
4195
4196
|
animation: "opportunityIconRing 1.6s ease-out infinite"
|
|
4196
4197
|
}
|
|
@@ -4218,6 +4219,7 @@ var X = {
|
|
|
4218
4219
|
top: 0,
|
|
4219
4220
|
bottom: 0,
|
|
4220
4221
|
width: "4px",
|
|
4222
|
+
borderRadius: M.pill,
|
|
4221
4223
|
...e ? { backgroundImage: `linear-gradient(180deg, ${A.primary}, ${A.kundera})` } : { backgroundColor: "m3.outlineVariant" }
|
|
4222
4224
|
},
|
|
4223
4225
|
...t ? {
|
|
@@ -4458,10 +4460,49 @@ function Ji({ item: e, open: t, onToggle: n, onRemindLater: r, onSeeMore: i, see
|
|
|
4458
4460
|
sx: X.sxOpportunityHeader,
|
|
4459
4461
|
children: [/* @__PURE__ */ z(B, {
|
|
4460
4462
|
sx: X.sxOpportunityAvatar,
|
|
4461
|
-
children: [
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4463
|
+
children: [
|
|
4464
|
+
/* @__PURE__ */ R(B, {
|
|
4465
|
+
component: "svg",
|
|
4466
|
+
"aria-hidden": !0,
|
|
4467
|
+
width: 0,
|
|
4468
|
+
height: 0,
|
|
4469
|
+
sx: { position: "absolute" },
|
|
4470
|
+
children: /* @__PURE__ */ R("defs", { children: /* @__PURE__ */ z("linearGradient", {
|
|
4471
|
+
id: "editorial-opportunity-icon-gradient",
|
|
4472
|
+
x1: "0%",
|
|
4473
|
+
y1: "8%",
|
|
4474
|
+
x2: "100%",
|
|
4475
|
+
y2: "82%",
|
|
4476
|
+
children: [
|
|
4477
|
+
/* @__PURE__ */ R("stop", {
|
|
4478
|
+
offset: "0%",
|
|
4479
|
+
stopColor: _e.iconGradientPurple
|
|
4480
|
+
}),
|
|
4481
|
+
/* @__PURE__ */ R("stop", {
|
|
4482
|
+
offset: "25%",
|
|
4483
|
+
stopColor: _e.iconGradientBlue
|
|
4484
|
+
}),
|
|
4485
|
+
/* @__PURE__ */ R("stop", {
|
|
4486
|
+
offset: "50%",
|
|
4487
|
+
stopColor: _e.iconGradientGreen
|
|
4488
|
+
}),
|
|
4489
|
+
/* @__PURE__ */ R("stop", {
|
|
4490
|
+
offset: "75%",
|
|
4491
|
+
stopColor: _e.iconGradientAmber
|
|
4492
|
+
}),
|
|
4493
|
+
/* @__PURE__ */ R("stop", {
|
|
4494
|
+
offset: "100%",
|
|
4495
|
+
stopColor: _e.iconGradientPurple
|
|
4496
|
+
})
|
|
4497
|
+
]
|
|
4498
|
+
}) })
|
|
4499
|
+
}),
|
|
4500
|
+
/* @__PURE__ */ R(bt, {}),
|
|
4501
|
+
e.unread ? /* @__PURE__ */ R(B, {
|
|
4502
|
+
component: "span",
|
|
4503
|
+
sx: X.sxUnreadDot
|
|
4504
|
+
}) : null
|
|
4505
|
+
]
|
|
4465
4506
|
}), /* @__PURE__ */ z(B, {
|
|
4466
4507
|
sx: { minWidth: 0 },
|
|
4467
4508
|
children: [/* @__PURE__ */ z(B, {
|
|
@@ -4771,7 +4812,7 @@ function Qi({ topic: e, type: t, masterBaseUrl: n, currentPublicationId: r, onNa
|
|
|
4771
4812
|
}
|
|
4772
4813
|
//#endregion
|
|
4773
4814
|
//#region src/lib/components/dropdowns/SimpleDropdown.styles.ts
|
|
4774
|
-
var
|
|
4815
|
+
var $i = {
|
|
4775
4816
|
sxTriggerWrap: { display: "inline-flex" },
|
|
4776
4817
|
sxIconTrigger: (e) => ({
|
|
4777
4818
|
borderRadius: "30px",
|
|
@@ -4858,7 +4899,7 @@ var Z = {
|
|
|
4858
4899
|
};
|
|
4859
4900
|
//#endregion
|
|
4860
4901
|
//#region src/lib/components/dropdowns/SimpleDropdown.tsx
|
|
4861
|
-
function
|
|
4902
|
+
function ea({ options: e, trigger: t, triggerIcon: n, columns: r = 1, footer: i, minWidth: a = 220, anchorOrigin: o = {
|
|
4862
4903
|
vertical: "bottom",
|
|
4863
4904
|
horizontal: "right"
|
|
4864
4905
|
}, transformOrigin: s = {
|
|
@@ -4886,19 +4927,19 @@ function $i({ options: e, trigger: t, triggerIcon: n, columns: r = 1, footer: i,
|
|
|
4886
4927
|
selected: e.selected,
|
|
4887
4928
|
onClick: () => C(e, n),
|
|
4888
4929
|
"data-testid": e.testId,
|
|
4889
|
-
sx:
|
|
4930
|
+
sx: $i.sxItem(!!e.selected),
|
|
4890
4931
|
children: [e.icon ? /* @__PURE__ */ R(gt, {
|
|
4891
|
-
sx:
|
|
4932
|
+
sx: $i.sxIcon,
|
|
4892
4933
|
children: e.icon
|
|
4893
4934
|
}) : null, /* @__PURE__ */ z(B, {
|
|
4894
|
-
sx:
|
|
4935
|
+
sx: $i.sxItemText,
|
|
4895
4936
|
children: [/* @__PURE__ */ R(U, {
|
|
4896
4937
|
component: "span",
|
|
4897
|
-
sx:
|
|
4938
|
+
sx: $i.sxLabel(!!e.description),
|
|
4898
4939
|
children: e.label
|
|
4899
4940
|
}), e.description ? /* @__PURE__ */ R(U, {
|
|
4900
4941
|
component: "span",
|
|
4901
|
-
sx:
|
|
4942
|
+
sx: $i.sxDescription,
|
|
4902
4943
|
children: e.description
|
|
4903
4944
|
}) : null]
|
|
4904
4945
|
})]
|
|
@@ -4909,19 +4950,19 @@ function $i({ options: e, trigger: t, triggerIcon: n, columns: r = 1, footer: i,
|
|
|
4909
4950
|
onClick: () => {
|
|
4910
4951
|
e.disabled || (e.onClick?.(e), c && b());
|
|
4911
4952
|
},
|
|
4912
|
-
sx:
|
|
4953
|
+
sx: $i.sxSubItem,
|
|
4913
4954
|
children: e.label
|
|
4914
4955
|
}, `${n}-${e.id ?? t}`)) : null
|
|
4915
4956
|
] }, n);
|
|
4916
4957
|
}, T = /* @__PURE__ */ R(V, {
|
|
4917
4958
|
"aria-haspopup": "true",
|
|
4918
|
-
sx:
|
|
4959
|
+
sx: $i.sxIconTrigger(y),
|
|
4919
4960
|
children: n ?? /* @__PURE__ */ R(Tn, {})
|
|
4920
4961
|
}), E = typeof t == "function" ? t({ open: y }) : t ?? T;
|
|
4921
4962
|
return /* @__PURE__ */ z(L, { children: [!p && E ? /* @__PURE__ */ R(B, {
|
|
4922
4963
|
component: "span",
|
|
4923
4964
|
onClick: x,
|
|
4924
|
-
sx:
|
|
4965
|
+
sx: $i.sxTriggerWrap,
|
|
4925
4966
|
children: E
|
|
4926
4967
|
}) : null, /* @__PURE__ */ z(vt, {
|
|
4927
4968
|
anchorEl: v,
|
|
@@ -4930,20 +4971,20 @@ function $i({ options: e, trigger: t, triggerIcon: n, columns: r = 1, footer: i,
|
|
|
4930
4971
|
anchorOrigin: o,
|
|
4931
4972
|
transformOrigin: s,
|
|
4932
4973
|
slotProps: {
|
|
4933
|
-
paper: { sx:
|
|
4974
|
+
paper: { sx: $i.sxMenuPaper(a, s.vertical === "bottom") },
|
|
4934
4975
|
list: {
|
|
4935
|
-
sx:
|
|
4976
|
+
sx: $i.sxList,
|
|
4936
4977
|
...f ? { "data-testid": f } : {}
|
|
4937
4978
|
}
|
|
4938
4979
|
},
|
|
4939
4980
|
children: [
|
|
4940
4981
|
r === 2 ? /* @__PURE__ */ R(B, {
|
|
4941
|
-
sx:
|
|
4982
|
+
sx: $i.sxGrid,
|
|
4942
4983
|
children: S.map((e, t) => w(e, t))
|
|
4943
4984
|
}) : S.map((e, t) => w(e, t)),
|
|
4944
4985
|
i ? /* @__PURE__ */ R(ln, { sx: { my: .5 } }) : null,
|
|
4945
4986
|
i ? /* @__PURE__ */ R(B, {
|
|
4946
|
-
sx:
|
|
4987
|
+
sx: $i.sxFooter,
|
|
4947
4988
|
children: i
|
|
4948
4989
|
}) : null
|
|
4949
4990
|
]
|
|
@@ -4951,7 +4992,7 @@ function $i({ options: e, trigger: t, triggerIcon: n, columns: r = 1, footer: i,
|
|
|
4951
4992
|
}
|
|
4952
4993
|
//#endregion
|
|
4953
4994
|
//#region src/lib/components/top-bar/previewMenu.config.ts
|
|
4954
|
-
var
|
|
4995
|
+
var ta = [
|
|
4955
4996
|
{
|
|
4956
4997
|
id: "desktop",
|
|
4957
4998
|
labelKey: "desktop",
|
|
@@ -4972,7 +5013,7 @@ var ea = [
|
|
|
4972
5013
|
];
|
|
4973
5014
|
//#endregion
|
|
4974
5015
|
//#region src/lib/components/top-bar/PreviewMenu.tsx
|
|
4975
|
-
function
|
|
5016
|
+
function na({ formats: e = ta, cmsBaseUrl: t, legacySession: n, onSelect: r }) {
|
|
4976
5017
|
let { t: i } = G(), a = i.topBar("preview"), o = F(() => e.map((e) => ({
|
|
4977
5018
|
id: e.id,
|
|
4978
5019
|
label: e.labelKey ? i.previewMenu(e.labelKey) : e.label,
|
|
@@ -4999,7 +5040,7 @@ function ta({ formats: e = ea, cmsBaseUrl: t, legacySession: n, onSelect: r }) {
|
|
|
4999
5040
|
r,
|
|
5000
5041
|
i
|
|
5001
5042
|
]);
|
|
5002
|
-
return e.length === 0 ? null : /* @__PURE__ */ R(
|
|
5043
|
+
return e.length === 0 ? null : /* @__PURE__ */ R(ea, {
|
|
5003
5044
|
options: o,
|
|
5004
5045
|
anchorOrigin: {
|
|
5005
5046
|
vertical: "bottom",
|
|
@@ -5025,36 +5066,36 @@ function ta({ formats: e = ea, cmsBaseUrl: t, legacySession: n, onSelect: r }) {
|
|
|
5025
5066
|
}
|
|
5026
5067
|
//#endregion
|
|
5027
5068
|
//#region src/lib/utils/cms-asset.ts
|
|
5028
|
-
var
|
|
5029
|
-
function
|
|
5069
|
+
var ra = "https://dev.cms-medios.com";
|
|
5070
|
+
function ia(e) {
|
|
5030
5071
|
let t = e?.trim();
|
|
5031
|
-
return t ? t.replace(/\/$/, "") :
|
|
5072
|
+
return t ? t.replace(/\/$/, "") : ra;
|
|
5032
5073
|
}
|
|
5033
|
-
function
|
|
5074
|
+
function aa(e, t) {
|
|
5034
5075
|
if (!e) return "";
|
|
5035
5076
|
if (e.startsWith("http://") || e.startsWith("https://")) return e;
|
|
5036
5077
|
let n = e.startsWith("/") ? e : `/${e}`;
|
|
5037
|
-
return `${
|
|
5078
|
+
return `${ia(t)}${n}`;
|
|
5038
5079
|
}
|
|
5039
5080
|
//#endregion
|
|
5040
5081
|
//#region src/lib/utils/profile-avatar.ts
|
|
5041
|
-
var
|
|
5042
|
-
function
|
|
5043
|
-
let { image: n } = e, r = t?.fallbackAvatar ??
|
|
5044
|
-
return !n || n ===
|
|
5082
|
+
var oa = "noPicture", sa = "/topbar_profile.png";
|
|
5083
|
+
function ca(e, t) {
|
|
5084
|
+
let { image: n } = e, r = t?.fallbackAvatar ?? sa;
|
|
5085
|
+
return !n || n === oa ? r : aa(n, t?.cmsOrigin);
|
|
5045
5086
|
}
|
|
5046
|
-
function
|
|
5087
|
+
function la(e) {
|
|
5047
5088
|
if (e.fullName?.trim()) return e.fullName.trim();
|
|
5048
5089
|
let t = [e.firstName, e.lastName].filter(Boolean);
|
|
5049
5090
|
return t.length > 0 ? t.join(" ") : e.userName;
|
|
5050
5091
|
}
|
|
5051
|
-
function
|
|
5092
|
+
function ua(e) {
|
|
5052
5093
|
let t = [e.firstName, e.lastName].filter(Boolean);
|
|
5053
5094
|
return t.length > 0 ? t.join(" ") : e.userName;
|
|
5054
5095
|
}
|
|
5055
5096
|
//#endregion
|
|
5056
5097
|
//#region src/lib/components/user-avatar/UserAvatar.styles.ts
|
|
5057
|
-
var
|
|
5098
|
+
var da = .58, fa = {
|
|
5058
5099
|
sxAvatar: (e, t, n, r = !1, i = !1) => ({
|
|
5059
5100
|
width: e,
|
|
5060
5101
|
height: e,
|
|
@@ -5063,7 +5104,7 @@ var ua = .58, da = {
|
|
|
5063
5104
|
cursor: t ? "pointer" : "default"
|
|
5064
5105
|
}),
|
|
5065
5106
|
sxIcon: (e, t, n = !1) => ({
|
|
5066
|
-
fontSize: Math.round(e *
|
|
5107
|
+
fontSize: Math.round(e * da),
|
|
5067
5108
|
color: t ? A.avatarInactiveIcon : n ? "m3.onSurfaceVariant" : A.onSecondaryContainer
|
|
5068
5109
|
}),
|
|
5069
5110
|
sxTooltip: {
|
|
@@ -5071,51 +5112,51 @@ var ua = .58, da = {
|
|
|
5071
5112
|
color: A.white,
|
|
5072
5113
|
"& .MuiTooltip-arrow": { color: A.tooltipSurface }
|
|
5073
5114
|
}
|
|
5074
|
-
},
|
|
5075
|
-
function
|
|
5115
|
+
}, pa = Qe(null);
|
|
5116
|
+
function ma({ initialPhoto: e = null, children: t }) {
|
|
5076
5117
|
let [n, r] = I(e), [i, a] = I(e);
|
|
5077
5118
|
i !== e && (a(e), r(e));
|
|
5078
5119
|
let o = F(() => ({
|
|
5079
5120
|
photo: n,
|
|
5080
5121
|
setPhoto: r
|
|
5081
5122
|
}), [n]);
|
|
5082
|
-
return /* @__PURE__ */ R(
|
|
5123
|
+
return /* @__PURE__ */ R(pa.Provider, {
|
|
5083
5124
|
value: o,
|
|
5084
5125
|
children: t
|
|
5085
5126
|
});
|
|
5086
5127
|
}
|
|
5087
5128
|
//#endregion
|
|
5088
5129
|
//#region src/lib/components/user-avatar/useCurrentUserPhoto.ts
|
|
5089
|
-
function
|
|
5090
|
-
return nt(
|
|
5130
|
+
function ha() {
|
|
5131
|
+
return nt(pa);
|
|
5091
5132
|
}
|
|
5092
5133
|
//#endregion
|
|
5093
5134
|
//#region src/lib/components/user-avatar/UserAvatar.tsx
|
|
5094
|
-
var
|
|
5095
|
-
function
|
|
5096
|
-
let { t: p } = G(), m =
|
|
5135
|
+
var ga = "noPicture";
|
|
5136
|
+
function _a({ 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 }) {
|
|
5137
|
+
let { t: p } = G(), m = ha(), h = u && m ? m.photo : e, g = F(() => !h || h === ga ? "" : aa(h, c), [h, c]), _ = t?.trim() || n?.trim() || "", v = _ || p.userAvatar("unknownUser"), y = _ || p.userAvatar("alt"), b = /* @__PURE__ */ R(An, {
|
|
5097
5138
|
src: g || void 0,
|
|
5098
5139
|
alt: y,
|
|
5099
5140
|
onClick: d,
|
|
5100
5141
|
"data-testid": f ? `avatar-${f}` : void 0,
|
|
5101
5142
|
slotProps: l ? { img: { crossOrigin: l } } : void 0,
|
|
5102
|
-
sx:
|
|
5103
|
-
children: /* @__PURE__ */ R(kn, { sx:
|
|
5143
|
+
sx: fa.sxAvatar(r, !!d, a, o, s),
|
|
5144
|
+
children: /* @__PURE__ */ R(kn, { sx: fa.sxIcon(r, a, o) })
|
|
5104
5145
|
});
|
|
5105
5146
|
return i ? /* @__PURE__ */ R(at, {
|
|
5106
5147
|
title: v,
|
|
5107
5148
|
arrow: !0,
|
|
5108
|
-
slotProps: { tooltip: { sx:
|
|
5149
|
+
slotProps: { tooltip: { sx: fa.sxTooltip } },
|
|
5109
5150
|
children: b
|
|
5110
5151
|
}) : b;
|
|
5111
5152
|
}
|
|
5112
5153
|
//#endregion
|
|
5113
5154
|
//#region src/lib/components/top-bar/ProfileMenu.tsx
|
|
5114
|
-
var
|
|
5115
|
-
function
|
|
5155
|
+
var va = "/admin/user_profile/user-settings", ya = "/system/login", ba = "ACCESS_WEBMASTERS";
|
|
5156
|
+
function xa(e, t) {
|
|
5116
5157
|
return e ? `${e.replace(/\/$/, "")}${t}` : t;
|
|
5117
5158
|
}
|
|
5118
|
-
function
|
|
5159
|
+
function Sa({ label: e, icon: t, onSelect: n, href: r, external: i, danger: a, testId: o }) {
|
|
5119
5160
|
let s = a ? A.danger : "text.primary";
|
|
5120
5161
|
return /* @__PURE__ */ z(yt, {
|
|
5121
5162
|
onClick: n,
|
|
@@ -5142,13 +5183,13 @@ function xa({ label: e, icon: t, onSelect: n, href: r, external: i, danger: a, t
|
|
|
5142
5183
|
})]
|
|
5143
5184
|
});
|
|
5144
5185
|
}
|
|
5145
|
-
function
|
|
5146
|
-
let { t: s } = G(), [c, l] = I(null), u = !!c, d =
|
|
5186
|
+
function Ca({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, legacySession: i, operationPermissions: a, isAdmin: o }) {
|
|
5187
|
+
let { t: s } = G(), [c, l] = I(null), u = !!c, d = la(e), f = ua(e), p = [e.lastName, e.firstName].filter(Boolean).join(" ") || e.userName, m = a === void 0 || !!o || a.includes(ba), h = F(() => {
|
|
5147
5188
|
let e = [{
|
|
5148
5189
|
id: "profile",
|
|
5149
5190
|
labelKey: "myProfile",
|
|
5150
5191
|
icon: En,
|
|
5151
|
-
href:
|
|
5192
|
+
href: xa(n, va)
|
|
5152
5193
|
}];
|
|
5153
5194
|
if (m) {
|
|
5154
5195
|
let t = !!(r && i);
|
|
@@ -5159,10 +5200,10 @@ function Sa({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, leg
|
|
|
5159
5200
|
external: !0,
|
|
5160
5201
|
onActivate: t ? () => si({
|
|
5161
5202
|
cmsBaseUrl: r,
|
|
5162
|
-
path:
|
|
5203
|
+
path: ya,
|
|
5163
5204
|
session: i
|
|
5164
5205
|
}) : void 0,
|
|
5165
|
-
href: t ? void 0 :
|
|
5206
|
+
href: t ? void 0 : xa(r ?? n, ya)
|
|
5166
5207
|
});
|
|
5167
5208
|
}
|
|
5168
5209
|
return e;
|
|
@@ -5189,7 +5230,7 @@ function Sa({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, leg
|
|
|
5189
5230
|
onClick: (e) => l(e.currentTarget),
|
|
5190
5231
|
"data-testid": "dropdown-toggle-profile",
|
|
5191
5232
|
sx: Y.sxProfileButton,
|
|
5192
|
-
children: /* @__PURE__ */ R(
|
|
5233
|
+
children: /* @__PURE__ */ R(_a, {
|
|
5193
5234
|
photo: e.image,
|
|
5194
5235
|
description: d,
|
|
5195
5236
|
username: e.userName,
|
|
@@ -5233,7 +5274,7 @@ function Sa({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, leg
|
|
|
5233
5274
|
borderColor: "divider",
|
|
5234
5275
|
mb: .5
|
|
5235
5276
|
},
|
|
5236
|
-
children: [/* @__PURE__ */ R(
|
|
5277
|
+
children: [/* @__PURE__ */ R(_a, {
|
|
5237
5278
|
photo: e.image,
|
|
5238
5279
|
description: d,
|
|
5239
5280
|
username: e.userName,
|
|
@@ -5263,7 +5304,7 @@ function Sa({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, leg
|
|
|
5263
5304
|
})]
|
|
5264
5305
|
})]
|
|
5265
5306
|
}),
|
|
5266
|
-
h.map((e) => /* @__PURE__ */ R(
|
|
5307
|
+
h.map((e) => /* @__PURE__ */ R(Sa, {
|
|
5267
5308
|
label: s.profileMenu(e.labelKey),
|
|
5268
5309
|
icon: e.icon,
|
|
5269
5310
|
href: e.href,
|
|
@@ -5272,7 +5313,7 @@ function Sa({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, leg
|
|
|
5272
5313
|
onSelect: () => v(e)
|
|
5273
5314
|
}, e.id)),
|
|
5274
5315
|
/* @__PURE__ */ R(ln, { sx: Y.sxProfileMenuDivider }),
|
|
5275
|
-
/* @__PURE__ */ R(
|
|
5316
|
+
/* @__PURE__ */ R(Sa, {
|
|
5276
5317
|
label: s.profileMenu(g.labelKey),
|
|
5277
5318
|
icon: g.icon,
|
|
5278
5319
|
testId: "dropdown-item-sign-off",
|
|
@@ -5284,11 +5325,11 @@ function Sa({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, leg
|
|
|
5284
5325
|
}
|
|
5285
5326
|
//#endregion
|
|
5286
5327
|
//#region src/lib/components/top-bar/TopBarClock.tsx
|
|
5287
|
-
function
|
|
5328
|
+
function wa(e) {
|
|
5288
5329
|
let t = (e ?? "").trim();
|
|
5289
5330
|
return t ? `GMT${/^[+-]/.test(t) ? t : `+${t}`}` : "GMT";
|
|
5290
5331
|
}
|
|
5291
|
-
function
|
|
5332
|
+
function Ta({ gmtRedaction: e, timeFormat: t }) {
|
|
5292
5333
|
let { locale: n, t: r } = G(), [i, a] = I(null);
|
|
5293
5334
|
if (P(() => {
|
|
5294
5335
|
a(Date.now());
|
|
@@ -5311,17 +5352,17 @@ function wa({ gmtRedaction: e, timeFormat: t }) {
|
|
|
5311
5352
|
}), /* @__PURE__ */ R(U, {
|
|
5312
5353
|
component: "span",
|
|
5313
5354
|
sx: Y.sxClockMeta,
|
|
5314
|
-
children: `${r.topBar("publication")} · ${
|
|
5355
|
+
children: `${r.topBar("publication")} · ${wa(e)}`
|
|
5315
5356
|
})]
|
|
5316
5357
|
})]
|
|
5317
5358
|
});
|
|
5318
5359
|
}
|
|
5319
5360
|
//#endregion
|
|
5320
5361
|
//#region src/lib/components/top-bar/TopBar.tsx
|
|
5321
|
-
function
|
|
5362
|
+
function Ea(e, t) {
|
|
5322
5363
|
return e ? `${e.replace(/\/$/, "")}${t}` : t;
|
|
5323
5364
|
}
|
|
5324
|
-
function
|
|
5365
|
+
function Da() {
|
|
5325
5366
|
return /* @__PURE__ */ R(B, {
|
|
5326
5367
|
component: "span",
|
|
5327
5368
|
role: "separator",
|
|
@@ -5329,7 +5370,7 @@ function Ea() {
|
|
|
5329
5370
|
sx: Y.sxDivider
|
|
5330
5371
|
});
|
|
5331
5372
|
}
|
|
5332
|
-
function
|
|
5373
|
+
function Oa({ 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 }) {
|
|
5333
5374
|
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`;
|
|
5334
5375
|
return /* @__PURE__ */ R(en, {
|
|
5335
5376
|
position: "static",
|
|
@@ -5372,7 +5413,7 @@ function Da({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5372
5413
|
onOpen: c,
|
|
5373
5414
|
loading: l
|
|
5374
5415
|
}),
|
|
5375
|
-
/* @__PURE__ */ R(
|
|
5416
|
+
/* @__PURE__ */ R(na, {
|
|
5376
5417
|
formats: b,
|
|
5377
5418
|
cmsBaseUrl: v,
|
|
5378
5419
|
legacySession: y,
|
|
@@ -5390,7 +5431,7 @@ function Da({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5390
5431
|
});
|
|
5391
5432
|
return;
|
|
5392
5433
|
}
|
|
5393
|
-
typeof window < "u" && window.open(
|
|
5434
|
+
typeof window < "u" && window.open(Ea(ee, te), "_blank", "noopener");
|
|
5394
5435
|
},
|
|
5395
5436
|
"aria-label": O,
|
|
5396
5437
|
sx: Y.sxActionIcon,
|
|
@@ -5400,7 +5441,7 @@ function Da({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5400
5441
|
})
|
|
5401
5442
|
]
|
|
5402
5443
|
}),
|
|
5403
|
-
/* @__PURE__ */ R(
|
|
5444
|
+
/* @__PURE__ */ R(Da, {}),
|
|
5404
5445
|
f,
|
|
5405
5446
|
/* @__PURE__ */ R(Oi, {
|
|
5406
5447
|
sites: e,
|
|
@@ -5408,13 +5449,13 @@ function Da({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5408
5449
|
getPublicationHref: m,
|
|
5409
5450
|
resolvePublicationImageUrl: h
|
|
5410
5451
|
}),
|
|
5411
|
-
/* @__PURE__ */ R(
|
|
5412
|
-
/* @__PURE__ */ R(
|
|
5452
|
+
/* @__PURE__ */ R(Da, {}),
|
|
5453
|
+
/* @__PURE__ */ R(Ta, {
|
|
5413
5454
|
gmtRedaction: D?.gmtRedaction,
|
|
5414
5455
|
timeFormat: D?.timeFormat
|
|
5415
5456
|
}),
|
|
5416
|
-
/* @__PURE__ */ R(
|
|
5417
|
-
/* @__PURE__ */ R(
|
|
5457
|
+
/* @__PURE__ */ R(Da, {}),
|
|
5458
|
+
/* @__PURE__ */ R(Ca, {
|
|
5418
5459
|
profile: u,
|
|
5419
5460
|
avatarOptions: g,
|
|
5420
5461
|
legacyBaseUrl: _,
|
|
@@ -5431,7 +5472,7 @@ function Da({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5431
5472
|
}
|
|
5432
5473
|
//#endregion
|
|
5433
5474
|
//#region src/lib/components/shell/AppShell.styles.ts
|
|
5434
|
-
var
|
|
5475
|
+
var ka = {
|
|
5435
5476
|
sxRoot: {
|
|
5436
5477
|
display: "flex",
|
|
5437
5478
|
flexDirection: "column",
|
|
@@ -5464,18 +5505,18 @@ var Oa = {
|
|
|
5464
5505
|
};
|
|
5465
5506
|
//#endregion
|
|
5466
5507
|
//#region src/lib/components/shell/AppShell.tsx
|
|
5467
|
-
function
|
|
5508
|
+
function Aa({ 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 = ri, permissions: E, navHrefOverrides: D, locale: O, language: ee, messages: te, appMessages: ne, baseUrl: k, profileServices: re }) {
|
|
5468
5509
|
return /* @__PURE__ */ R(Mr, {
|
|
5469
5510
|
locale: O,
|
|
5470
5511
|
language: ee,
|
|
5471
5512
|
messages: te,
|
|
5472
5513
|
appMessages: ne,
|
|
5473
5514
|
children: /* @__PURE__ */ z(B, {
|
|
5474
|
-
sx:
|
|
5515
|
+
sx: ka.sxRoot,
|
|
5475
5516
|
children: [/* @__PURE__ */ R(B, {
|
|
5476
5517
|
component: "header",
|
|
5477
|
-
sx:
|
|
5478
|
-
children: /* @__PURE__ */ R(
|
|
5518
|
+
sx: ka.sxHeader,
|
|
5519
|
+
children: /* @__PURE__ */ R(Oa, {
|
|
5479
5520
|
sites: t,
|
|
5480
5521
|
notificationUnreadCount: r,
|
|
5481
5522
|
notificationsData: i,
|
|
@@ -5501,7 +5542,7 @@ function ka({ pathname: e, sites: t, children: n, notificationUnreadCount: r, no
|
|
|
5501
5542
|
showAppearanceMenu: w
|
|
5502
5543
|
})
|
|
5503
5544
|
}), /* @__PURE__ */ z(B, {
|
|
5504
|
-
sx:
|
|
5545
|
+
sx: ka.sxBody,
|
|
5505
5546
|
children: [/* @__PURE__ */ R(Ti, {
|
|
5506
5547
|
pathname: e,
|
|
5507
5548
|
LinkComponent: T,
|
|
@@ -5514,7 +5555,7 @@ function ka({ pathname: e, sites: t, children: n, notificationUnreadCount: r, no
|
|
|
5514
5555
|
profileServices: re
|
|
5515
5556
|
}), /* @__PURE__ */ R(B, {
|
|
5516
5557
|
component: "main",
|
|
5517
|
-
sx:
|
|
5558
|
+
sx: ka.sxMain,
|
|
5518
5559
|
children: n
|
|
5519
5560
|
})]
|
|
5520
5561
|
})]
|
|
@@ -5523,7 +5564,7 @@ function ka({ pathname: e, sites: t, children: n, notificationUnreadCount: r, no
|
|
|
5523
5564
|
}
|
|
5524
5565
|
//#endregion
|
|
5525
5566
|
//#region src/lib/components/sidebar/Sidebar.styles.ts
|
|
5526
|
-
var
|
|
5567
|
+
var ja = A.secondary, Ma = A.surfaceHover, Na = A.textNav, Pa = 24, Fa = 24, Z = {
|
|
5527
5568
|
sxRoot: (e) => {
|
|
5528
5569
|
let t = e ? 195 : 96;
|
|
5529
5570
|
return {
|
|
@@ -5598,10 +5639,10 @@ var Aa = A.secondary, ja = A.surfaceHover, Ma = A.textNav, Na = 24, Pa = 24, Q =
|
|
|
5598
5639
|
px: 0,
|
|
5599
5640
|
py: 0,
|
|
5600
5641
|
borderRadius: "100px",
|
|
5601
|
-
color:
|
|
5642
|
+
color: Na,
|
|
5602
5643
|
textDecoration: "none",
|
|
5603
|
-
bgcolor: e ?
|
|
5604
|
-
"&:hover": { bgcolor: e ?
|
|
5644
|
+
bgcolor: e ? ja : "transparent",
|
|
5645
|
+
"&:hover": { bgcolor: e ? ja : "action.hover" }
|
|
5605
5646
|
} : {
|
|
5606
5647
|
position: "relative",
|
|
5607
5648
|
display: "flex",
|
|
@@ -5619,13 +5660,13 @@ var Aa = A.secondary, ja = A.surfaceHover, Ma = A.textNav, Na = 24, Pa = 24, Q =
|
|
|
5619
5660
|
ml: "-1rem",
|
|
5620
5661
|
mr: 0,
|
|
5621
5662
|
borderRadius: t ? "100px" : "0 100px 100px 0",
|
|
5622
|
-
color:
|
|
5663
|
+
color: Na,
|
|
5623
5664
|
textDecoration: "none",
|
|
5624
|
-
bgcolor: e ?
|
|
5625
|
-
"&:hover": { bgcolor: e ?
|
|
5665
|
+
bgcolor: e ? ja : "transparent",
|
|
5666
|
+
"&:hover": { bgcolor: e ? ja : Ma }
|
|
5626
5667
|
},
|
|
5627
5668
|
sxItemIcon: (e, t = !1) => ({
|
|
5628
|
-
fontSize: t ?
|
|
5669
|
+
fontSize: t ? Fa : Pa,
|
|
5629
5670
|
color: e ? "secondary.dark" : "m3.onSurfaceVariant",
|
|
5630
5671
|
width: t ? 48 : "auto",
|
|
5631
5672
|
flexShrink: 0
|
|
@@ -5636,7 +5677,7 @@ var Aa = A.secondary, ja = A.surfaceHover, Ma = A.textNav, Na = 24, Pa = 24, Q =
|
|
|
5636
5677
|
fontSize: 14,
|
|
5637
5678
|
fontWeight: e ? 600 : 400,
|
|
5638
5679
|
lineHeight: 1.43,
|
|
5639
|
-
color:
|
|
5680
|
+
color: Na,
|
|
5640
5681
|
overflow: "hidden",
|
|
5641
5682
|
textOverflow: "ellipsis",
|
|
5642
5683
|
whiteSpace: "nowrap"
|
|
@@ -5668,12 +5709,12 @@ var Aa = A.secondary, ja = A.surfaceHover, Ma = A.textNav, Na = 24, Pa = 24, Q =
|
|
|
5668
5709
|
px: 2,
|
|
5669
5710
|
py: 1,
|
|
5670
5711
|
gap: 1.25,
|
|
5671
|
-
color:
|
|
5672
|
-
bgcolor: e ?
|
|
5673
|
-
"&:hover": { bgcolor: e ?
|
|
5712
|
+
color: Na,
|
|
5713
|
+
bgcolor: e ? ja : "transparent",
|
|
5714
|
+
"&:hover": { bgcolor: e ? ja : A.neutralHover },
|
|
5674
5715
|
"&.Mui-selected": {
|
|
5675
|
-
bgcolor:
|
|
5676
|
-
"&:hover": { bgcolor:
|
|
5716
|
+
bgcolor: ja,
|
|
5717
|
+
"&:hover": { bgcolor: ja }
|
|
5677
5718
|
}
|
|
5678
5719
|
}),
|
|
5679
5720
|
sxChildrenMenuListItemIcon: {
|
|
@@ -5700,19 +5741,19 @@ var Aa = A.secondary, ja = A.surfaceHover, Ma = A.textNav, Na = 24, Pa = 24, Q =
|
|
|
5700
5741
|
};
|
|
5701
5742
|
//#endregion
|
|
5702
5743
|
//#region src/lib/components/sidebar/Sidebar.tsx
|
|
5703
|
-
function
|
|
5744
|
+
function Ia(e, t, n) {
|
|
5704
5745
|
return e ? n : /* @__PURE__ */ R(at, {
|
|
5705
5746
|
title: t,
|
|
5706
5747
|
placement: "right",
|
|
5707
5748
|
arrow: !0,
|
|
5708
5749
|
children: /* @__PURE__ */ R(B, {
|
|
5709
5750
|
component: "span",
|
|
5710
|
-
sx:
|
|
5751
|
+
sx: Z.sxTooltipWrap(e),
|
|
5711
5752
|
children: n
|
|
5712
5753
|
})
|
|
5713
5754
|
});
|
|
5714
5755
|
}
|
|
5715
|
-
function
|
|
5756
|
+
function La({ 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 }) {
|
|
5716
5757
|
let p = `block-${t}`, m = ci(e, l), h = mi(c, e.module), g = hi(e, c), _ = !r, v = li(s, e.href), b = ui(s, e), x = g.length > 0, S = e.icon, C = n ? v : v || b, [w, T] = I(null), E = !!w;
|
|
5717
5758
|
if (!h && !x) return null;
|
|
5718
5759
|
let D = /* @__PURE__ */ z(L, { children: [
|
|
@@ -5724,29 +5765,29 @@ function Ia({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i,
|
|
|
5724
5765
|
onClick: (e) => {
|
|
5725
5766
|
e.preventDefault(), e.stopPropagation(), a?.();
|
|
5726
5767
|
},
|
|
5727
|
-
sx:
|
|
5768
|
+
sx: Z.sxExpandButton,
|
|
5728
5769
|
children: R(i ? jn : mt, { sx: { fontSize: 20 } })
|
|
5729
5770
|
}) : null,
|
|
5730
|
-
/* @__PURE__ */ R(S, { sx:
|
|
5771
|
+
/* @__PURE__ */ R(S, { sx: Z.sxItemIcon(C, _) }),
|
|
5731
5772
|
_ ? null : /* @__PURE__ */ R(U, {
|
|
5732
5773
|
component: "span",
|
|
5733
|
-
sx:
|
|
5774
|
+
sx: Z.sxItemLabel(v),
|
|
5734
5775
|
children: m
|
|
5735
5776
|
}),
|
|
5736
5777
|
h?.isnew && /* @__PURE__ */ R(B, {
|
|
5737
5778
|
component: "span",
|
|
5738
|
-
sx:
|
|
5779
|
+
sx: Z.sxBetaChip(r),
|
|
5739
5780
|
children: l.sidebar("newBadge")
|
|
5740
5781
|
})
|
|
5741
5782
|
] });
|
|
5742
5783
|
return x && !_ ? /* @__PURE__ */ z(B, {
|
|
5743
|
-
sx:
|
|
5784
|
+
sx: Z.sxNavGroup(r),
|
|
5744
5785
|
children: [/* @__PURE__ */ R(B, {
|
|
5745
5786
|
component: "div",
|
|
5746
5787
|
"data-testid": `nav-${p}-${y(e.module)}`,
|
|
5747
5788
|
onClick: a,
|
|
5748
5789
|
sx: {
|
|
5749
|
-
...
|
|
5790
|
+
...Z.sxItem(b, n, !0, !1),
|
|
5750
5791
|
cursor: "pointer"
|
|
5751
5792
|
},
|
|
5752
5793
|
children: D
|
|
@@ -5764,7 +5805,7 @@ function Ia({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i,
|
|
|
5764
5805
|
maxWidth: "100%",
|
|
5765
5806
|
overflow: "hidden"
|
|
5766
5807
|
},
|
|
5767
|
-
children: g.map((e) => /* @__PURE__ */ R(
|
|
5808
|
+
children: g.map((e) => /* @__PURE__ */ R(La, {
|
|
5768
5809
|
item: e,
|
|
5769
5810
|
blockIndex: t,
|
|
5770
5811
|
nested: !0,
|
|
@@ -5790,7 +5831,7 @@ function Ia({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i,
|
|
|
5790
5831
|
onClick: (e) => T(e.currentTarget),
|
|
5791
5832
|
onMouseEnter: (e) => T(e.currentTarget),
|
|
5792
5833
|
sx: {
|
|
5793
|
-
...
|
|
5834
|
+
...Z.sxItem(b, n, x, !0),
|
|
5794
5835
|
border: 0,
|
|
5795
5836
|
background: "transparent",
|
|
5796
5837
|
cursor: "pointer"
|
|
@@ -5810,7 +5851,7 @@ function Ia({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i,
|
|
|
5810
5851
|
horizontal: "left"
|
|
5811
5852
|
},
|
|
5812
5853
|
slotProps: {
|
|
5813
|
-
paper: { sx:
|
|
5854
|
+
paper: { sx: Z.sxChildrenMenuPaper },
|
|
5814
5855
|
list: {
|
|
5815
5856
|
onMouseLeave: () => T(null),
|
|
5816
5857
|
sx: { py: 1 }
|
|
@@ -5823,9 +5864,9 @@ function Ia({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i,
|
|
|
5823
5864
|
component: o,
|
|
5824
5865
|
href: fi(e, u, d, f),
|
|
5825
5866
|
onClick: () => T(null),
|
|
5826
|
-
sx:
|
|
5867
|
+
sx: Z.sxChildrenMenuItem(li(s, e.href)),
|
|
5827
5868
|
children: [/* @__PURE__ */ R(gt, {
|
|
5828
|
-
sx:
|
|
5869
|
+
sx: Z.sxChildrenMenuListItemIcon,
|
|
5829
5870
|
children: /* @__PURE__ */ R(t, {})
|
|
5830
5871
|
}), /* @__PURE__ */ R(_t, {
|
|
5831
5872
|
primary: ci(e, l),
|
|
@@ -5837,15 +5878,15 @@ function Ia({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i,
|
|
|
5837
5878
|
})]
|
|
5838
5879
|
}, e.href);
|
|
5839
5880
|
})
|
|
5840
|
-
})] }) :
|
|
5881
|
+
})] }) : Ia(r, m, /* @__PURE__ */ R(B, {
|
|
5841
5882
|
component: o,
|
|
5842
5883
|
href: fi(e, u, d, f),
|
|
5843
5884
|
"data-testid": `nav-${p}-${y(e.module)}`,
|
|
5844
|
-
sx:
|
|
5885
|
+
sx: Z.sxItem(_ ? b : v, n, x, _),
|
|
5845
5886
|
children: D
|
|
5846
5887
|
}));
|
|
5847
5888
|
}
|
|
5848
|
-
function
|
|
5889
|
+
function Ra({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions: i, t: a, legacyBaseUrl: o, selectedPublicationId: s, navHrefOverrides: c }) {
|
|
5849
5890
|
let [l, u] = I(F(() => {
|
|
5850
5891
|
let t = {};
|
|
5851
5892
|
for (let n of e) n.children && (t[n.href] = n.defaultOpen ?? n.children.some((e) => li(r, e.href)));
|
|
@@ -5856,7 +5897,7 @@ function La({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions
|
|
|
5856
5897
|
[e]: !t[e]
|
|
5857
5898
|
}));
|
|
5858
5899
|
};
|
|
5859
|
-
return /* @__PURE__ */ R(L, { children: e.map((e, u) => /* @__PURE__ */ R(
|
|
5900
|
+
return /* @__PURE__ */ R(L, { children: e.map((e, u) => /* @__PURE__ */ R(La, {
|
|
5860
5901
|
item: e,
|
|
5861
5902
|
blockIndex: u,
|
|
5862
5903
|
open: t,
|
|
@@ -5871,18 +5912,18 @@ function La({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions
|
|
|
5871
5912
|
navHrefOverrides: c
|
|
5872
5913
|
}, e.href)) });
|
|
5873
5914
|
}
|
|
5874
|
-
function
|
|
5915
|
+
function za({ open: e = !0, pathname: t, permissions: n, LinkComponent: r = ri, legacyBaseUrl: i, selectedPublicationId: a, navHrefOverrides: o }) {
|
|
5875
5916
|
let { t: s } = G();
|
|
5876
5917
|
return /* @__PURE__ */ R(B, {
|
|
5877
5918
|
component: "aside",
|
|
5878
|
-
sx:
|
|
5919
|
+
sx: Z.sxRoot(e),
|
|
5879
5920
|
children: /* @__PURE__ */ R(B, {
|
|
5880
|
-
sx:
|
|
5921
|
+
sx: Z.sxNavScroll,
|
|
5881
5922
|
children: /* @__PURE__ */ R(B, {
|
|
5882
5923
|
component: "nav",
|
|
5883
5924
|
"aria-label": s.sidebar("navAriaLabel"),
|
|
5884
|
-
sx:
|
|
5885
|
-
children: /* @__PURE__ */ R(
|
|
5925
|
+
sx: Z.sxNav(e),
|
|
5926
|
+
children: /* @__PURE__ */ R(Ra, {
|
|
5886
5927
|
permissions: n,
|
|
5887
5928
|
items: gi,
|
|
5888
5929
|
open: e,
|
|
@@ -5899,7 +5940,7 @@ function Ra({ open: e = !0, pathname: t, permissions: n, LinkComponent: r = ri,
|
|
|
5899
5940
|
}
|
|
5900
5941
|
//#endregion
|
|
5901
5942
|
//#region src/lib/components/top-bar/newContentMenu.config.ts
|
|
5902
|
-
var
|
|
5943
|
+
var Ba = [
|
|
5903
5944
|
{
|
|
5904
5945
|
titleKey: "frequentsTitle",
|
|
5905
5946
|
items: [
|
|
@@ -5971,12 +6012,12 @@ var za = [
|
|
|
5971
6012
|
]
|
|
5972
6013
|
}
|
|
5973
6014
|
];
|
|
5974
|
-
function
|
|
6015
|
+
function Va(e, t, n) {
|
|
5975
6016
|
return t === void 0 || n || !e.permission ? !0 : (Array.isArray(e.permission) ? e.permission : [e.permission]).every((e) => t.includes(e));
|
|
5976
6017
|
}
|
|
5977
6018
|
//#endregion
|
|
5978
6019
|
//#region src/lib/components/top-bar/NewContentMenu.styles.ts
|
|
5979
|
-
var
|
|
6020
|
+
var Ha = {
|
|
5980
6021
|
sxMenuPaper: {
|
|
5981
6022
|
mt: 1,
|
|
5982
6023
|
borderRadius: 2,
|
|
@@ -6021,22 +6062,22 @@ var Va = {
|
|
|
6021
6062
|
};
|
|
6022
6063
|
//#endregion
|
|
6023
6064
|
//#region src/lib/components/top-bar/NewContentMenu.tsx
|
|
6024
|
-
function
|
|
6065
|
+
function Ua(e) {
|
|
6025
6066
|
return `/?new=${encodeURIComponent(e)}`;
|
|
6026
6067
|
}
|
|
6027
|
-
function
|
|
6068
|
+
function Wa(e, t) {
|
|
6028
6069
|
return `${e.replace(/\/$/, "")}${t}`;
|
|
6029
6070
|
}
|
|
6030
|
-
function
|
|
6071
|
+
function Ga({ groups: e = Ba, operationPermissions: t, isAdmin: n, legacyBaseUrl: r, getRedirectPath: i = Ua, onSelect: a }) {
|
|
6031
6072
|
let { t: o } = G(), [s, c] = I(null), l = !!s, u = () => c(null), d = F(() => e.map((e) => ({
|
|
6032
6073
|
...e,
|
|
6033
|
-
items: e.items.filter((e) =>
|
|
6074
|
+
items: e.items.filter((e) => Va(e, t, n))
|
|
6034
6075
|
})).filter((e) => e.items.length > 0), [
|
|
6035
6076
|
e,
|
|
6036
6077
|
t,
|
|
6037
6078
|
n
|
|
6038
6079
|
]), f = (e) => {
|
|
6039
|
-
r && typeof window < "u" ? window.open(
|
|
6080
|
+
r && typeof window < "u" ? window.open(Wa(r, i(e.id)), "_blank", "noopener") : a?.(e.id), u();
|
|
6040
6081
|
}, p = o.topBar("new");
|
|
6041
6082
|
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(at, {
|
|
6042
6083
|
title: p,
|
|
@@ -6062,19 +6103,19 @@ function Wa({ groups: e = za, operationPermissions: t, isAdmin: n, legacyBaseUrl
|
|
|
6062
6103
|
horizontal: "left"
|
|
6063
6104
|
},
|
|
6064
6105
|
slotProps: {
|
|
6065
|
-
paper: { sx:
|
|
6106
|
+
paper: { sx: Ha.sxMenuPaper },
|
|
6066
6107
|
list: {
|
|
6067
6108
|
sx: { p: 0 },
|
|
6068
6109
|
"data-testid": "dropdown-menu-new-content"
|
|
6069
6110
|
}
|
|
6070
6111
|
},
|
|
6071
6112
|
children: /* @__PURE__ */ R(B, {
|
|
6072
|
-
sx:
|
|
6113
|
+
sx: Ha.sxContainer,
|
|
6073
6114
|
children: d.map((e) => /* @__PURE__ */ z(B, {
|
|
6074
|
-
sx:
|
|
6115
|
+
sx: Ha.sxColumn,
|
|
6075
6116
|
children: [/* @__PURE__ */ R(U, {
|
|
6076
6117
|
component: "span",
|
|
6077
|
-
sx:
|
|
6118
|
+
sx: Ha.sxColumnTitle,
|
|
6078
6119
|
children: o.newMenu(e.titleKey)
|
|
6079
6120
|
}), e.items.map((e) => /* @__PURE__ */ R(B, {
|
|
6080
6121
|
component: "span",
|
|
@@ -6082,7 +6123,7 @@ function Wa({ groups: e = za, operationPermissions: t, isAdmin: n, legacyBaseUrl
|
|
|
6082
6123
|
tabIndex: 0,
|
|
6083
6124
|
onClick: () => f(e),
|
|
6084
6125
|
"data-testid": `dropdown-item-new-${e.id}`,
|
|
6085
|
-
sx:
|
|
6126
|
+
sx: Ha.sxItem,
|
|
6086
6127
|
children: o.newMenu(e.labelKey)
|
|
6087
6128
|
}, e.id))]
|
|
6088
6129
|
}, e.titleKey))
|
|
@@ -6091,7 +6132,7 @@ function Wa({ groups: e = za, operationPermissions: t, isAdmin: n, legacyBaseUrl
|
|
|
6091
6132
|
}
|
|
6092
6133
|
//#endregion
|
|
6093
6134
|
//#region src/lib/components/error-page/CmsErrorPage.styles.ts
|
|
6094
|
-
var
|
|
6135
|
+
var Ka = {
|
|
6095
6136
|
sxRoot: {
|
|
6096
6137
|
position: "fixed",
|
|
6097
6138
|
inset: 0,
|
|
@@ -6180,7 +6221,7 @@ var Ga = {
|
|
|
6180
6221
|
};
|
|
6181
6222
|
//#endregion
|
|
6182
6223
|
//#region src/lib/components/error-page/CmsErrorPage.tsx
|
|
6183
|
-
function
|
|
6224
|
+
function qa({ variant: e, homeHref: t = "/", LinkComponent: n = ri, illustrationSrc: r }) {
|
|
6184
6225
|
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 () => {
|
|
6185
6226
|
let e = typeof window < "u" ? window.location.href : "", t = i.errorPage("copyDetailText").replace("{url}", e);
|
|
6186
6227
|
try {
|
|
@@ -6190,24 +6231,24 @@ function Ka({ variant: e, homeHref: t = "/", LinkComponent: n = ri, illustration
|
|
|
6190
6231
|
return /* @__PURE__ */ z(B, {
|
|
6191
6232
|
"data-testid": "panel-error",
|
|
6192
6233
|
"data-variant": e,
|
|
6193
|
-
sx:
|
|
6234
|
+
sx: Ka.sxRoot,
|
|
6194
6235
|
children: [/* @__PURE__ */ R(B, {
|
|
6195
6236
|
component: "img",
|
|
6196
6237
|
src: u,
|
|
6197
6238
|
alt: "",
|
|
6198
6239
|
"aria-hidden": !0,
|
|
6199
|
-
sx:
|
|
6240
|
+
sx: Ka.sxIllustration
|
|
6200
6241
|
}), /* @__PURE__ */ z(B, {
|
|
6201
|
-
sx:
|
|
6242
|
+
sx: Ka.sxContent,
|
|
6202
6243
|
children: [
|
|
6203
6244
|
/* @__PURE__ */ R(U, {
|
|
6204
6245
|
component: "h1",
|
|
6205
|
-
sx:
|
|
6246
|
+
sx: Ka.sxTitle,
|
|
6206
6247
|
children: c
|
|
6207
6248
|
}),
|
|
6208
6249
|
/* @__PURE__ */ R(U, {
|
|
6209
6250
|
component: "p",
|
|
6210
|
-
sx:
|
|
6251
|
+
sx: Ka.sxSubtitle,
|
|
6211
6252
|
children: l
|
|
6212
6253
|
}),
|
|
6213
6254
|
/* @__PURE__ */ R(H, {
|
|
@@ -6216,13 +6257,13 @@ function Ka({ variant: e, homeHref: t = "/", LinkComponent: n = ri, illustration
|
|
|
6216
6257
|
href: t,
|
|
6217
6258
|
sx: {
|
|
6218
6259
|
...or("cta"),
|
|
6219
|
-
...
|
|
6260
|
+
...Ka.sxButton
|
|
6220
6261
|
},
|
|
6221
6262
|
children: i.errorPage("homeButton")
|
|
6222
6263
|
}),
|
|
6223
6264
|
!s && /* @__PURE__ */ z(U, {
|
|
6224
6265
|
component: "p",
|
|
6225
|
-
sx:
|
|
6266
|
+
sx: Ka.sxErrorLine,
|
|
6226
6267
|
children: [
|
|
6227
6268
|
i.errorPage("errorLabel"),
|
|
6228
6269
|
" ",
|
|
@@ -6234,7 +6275,7 @@ function Ka({ variant: e, homeHref: t = "/", LinkComponent: n = ri, illustration
|
|
|
6234
6275
|
role: "button",
|
|
6235
6276
|
tabIndex: 0,
|
|
6236
6277
|
onClick: d,
|
|
6237
|
-
sx:
|
|
6278
|
+
sx: Ka.sxCopyLink,
|
|
6238
6279
|
children: a ? i.errorPage("copied") : i.errorPage("copyDetail")
|
|
6239
6280
|
})
|
|
6240
6281
|
]
|
|
@@ -6245,30 +6286,30 @@ function Ka({ variant: e, homeHref: t = "/", LinkComponent: n = ri, illustration
|
|
|
6245
6286
|
}
|
|
6246
6287
|
//#endregion
|
|
6247
6288
|
//#region src/lib/components/mui-provider/CmsColorSchemeVars.tsx
|
|
6248
|
-
var { light:
|
|
6249
|
-
function
|
|
6289
|
+
var { light: Ja, dark: Ya } = pe();
|
|
6290
|
+
function Xa() {
|
|
6250
6291
|
return /* @__PURE__ */ R(Pn, { styles: {
|
|
6251
|
-
":root":
|
|
6252
|
-
":root[data-mui-color-scheme=\"dark\"]":
|
|
6292
|
+
":root": Ja,
|
|
6293
|
+
":root[data-mui-color-scheme=\"dark\"]": Ya
|
|
6253
6294
|
} });
|
|
6254
6295
|
}
|
|
6255
6296
|
//#endregion
|
|
6256
6297
|
//#region src/lib/components/mui-provider/CmsFontFaces.tsx
|
|
6257
|
-
function
|
|
6298
|
+
function Za() {
|
|
6258
6299
|
return /* @__PURE__ */ R(Pn, { styles: lr });
|
|
6259
6300
|
}
|
|
6260
6301
|
//#endregion
|
|
6261
6302
|
//#region src/lib/components/mui-provider/CmsThemeInitScript.tsx
|
|
6262
|
-
var
|
|
6263
|
-
function
|
|
6303
|
+
var Qa = `(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(_){}})();`;
|
|
6304
|
+
function $a() {
|
|
6264
6305
|
return /* @__PURE__ */ R("script", {
|
|
6265
6306
|
suppressHydrationWarning: !0,
|
|
6266
|
-
dangerouslySetInnerHTML: { __html:
|
|
6307
|
+
dangerouslySetInnerHTML: { __html: Qa }
|
|
6267
6308
|
});
|
|
6268
6309
|
}
|
|
6269
6310
|
//#endregion
|
|
6270
6311
|
//#region src/lib/components/mui-provider/CmsThemeModeSync.tsx
|
|
6271
|
-
function
|
|
6312
|
+
function eo() {
|
|
6272
6313
|
let { setMode: e } = Ye();
|
|
6273
6314
|
return P(() => {
|
|
6274
6315
|
e(gr());
|
|
@@ -6276,37 +6317,37 @@ function $a() {
|
|
|
6276
6317
|
}
|
|
6277
6318
|
//#endregion
|
|
6278
6319
|
//#region src/lib/components/mui-provider/CmsMuiProvider.tsx
|
|
6279
|
-
var
|
|
6280
|
-
function
|
|
6320
|
+
var to = nr();
|
|
6321
|
+
function no({ children: e }) {
|
|
6281
6322
|
return /* @__PURE__ */ z(qe, {
|
|
6282
|
-
theme:
|
|
6323
|
+
theme: to,
|
|
6283
6324
|
defaultMode: "light",
|
|
6284
6325
|
storageManager: null,
|
|
6285
6326
|
children: [
|
|
6286
|
-
/* @__PURE__ */ R(Qa, {}),
|
|
6287
6327
|
/* @__PURE__ */ R($a, {}),
|
|
6328
|
+
/* @__PURE__ */ R(eo, {}),
|
|
6288
6329
|
/* @__PURE__ */ R(Nn, { enableColorScheme: !0 }),
|
|
6289
|
-
/* @__PURE__ */ R(Ya, {}),
|
|
6290
6330
|
/* @__PURE__ */ R(Xa, {}),
|
|
6331
|
+
/* @__PURE__ */ R(Za, {}),
|
|
6291
6332
|
e
|
|
6292
6333
|
]
|
|
6293
6334
|
});
|
|
6294
6335
|
}
|
|
6295
6336
|
//#endregion
|
|
6296
6337
|
//#region src/lib/components/mui-provider/NextCmsMuiProvider.tsx
|
|
6297
|
-
var
|
|
6298
|
-
function
|
|
6338
|
+
var ro = nr();
|
|
6339
|
+
function io({ children: e }) {
|
|
6299
6340
|
return /* @__PURE__ */ z(Fn, {
|
|
6300
6341
|
options: { enableCssLayer: !0 },
|
|
6301
|
-
children: [/* @__PURE__ */ R(
|
|
6302
|
-
theme:
|
|
6342
|
+
children: [/* @__PURE__ */ R($a, {}), /* @__PURE__ */ z(qe, {
|
|
6343
|
+
theme: ro,
|
|
6303
6344
|
defaultMode: "light",
|
|
6304
6345
|
storageManager: null,
|
|
6305
6346
|
children: [
|
|
6306
|
-
/* @__PURE__ */ R(
|
|
6347
|
+
/* @__PURE__ */ R(eo, {}),
|
|
6307
6348
|
/* @__PURE__ */ R(Nn, { enableColorScheme: !0 }),
|
|
6308
|
-
/* @__PURE__ */ R(Ya, {}),
|
|
6309
6349
|
/* @__PURE__ */ R(Xa, {}),
|
|
6350
|
+
/* @__PURE__ */ R(Za, {}),
|
|
6310
6351
|
/* @__PURE__ */ R(B, {
|
|
6311
6352
|
sx: {
|
|
6312
6353
|
display: "flex",
|
|
@@ -6322,13 +6363,13 @@ function ro({ children: e }) {
|
|
|
6322
6363
|
}
|
|
6323
6364
|
//#endregion
|
|
6324
6365
|
//#region src/lib/components/dropdowns/BtnDropdown.styles.ts
|
|
6325
|
-
var
|
|
6366
|
+
var ao = (e) => e ? "white" : "cta", oo = {
|
|
6326
6367
|
sxGroup: {
|
|
6327
6368
|
display: "inline-flex",
|
|
6328
6369
|
alignItems: "stretch"
|
|
6329
6370
|
},
|
|
6330
6371
|
sxMainButton: (e, t) => {
|
|
6331
|
-
let n =
|
|
6372
|
+
let n = ao(e);
|
|
6332
6373
|
return {
|
|
6333
6374
|
height: i.buttonHeight,
|
|
6334
6375
|
px: "20px",
|
|
@@ -6354,7 +6395,7 @@ var io = (e) => e ? "white" : "cta", ao = {
|
|
|
6354
6395
|
};
|
|
6355
6396
|
},
|
|
6356
6397
|
sxArrowButton: (e, t) => {
|
|
6357
|
-
let n =
|
|
6398
|
+
let n = ao(e);
|
|
6358
6399
|
return {
|
|
6359
6400
|
height: i.buttonHeight,
|
|
6360
6401
|
minWidth: 38,
|
|
@@ -6382,19 +6423,19 @@ var io = (e) => e ? "white" : "cta", ao = {
|
|
|
6382
6423
|
};
|
|
6383
6424
|
//#endregion
|
|
6384
6425
|
//#region src/lib/components/dropdowns/BtnDropdown.tsx
|
|
6385
|
-
function
|
|
6426
|
+
function so({ 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 }) {
|
|
6386
6427
|
let [u, d] = I(null), f = !!u, p = (e) => {
|
|
6387
6428
|
d((t) => t ? null : e.currentTarget);
|
|
6388
6429
|
}, m = F(() => t.filter((e) => e.show !== !1), [t]).length > 0, h = s && m;
|
|
6389
6430
|
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ z(B, {
|
|
6390
|
-
sx:
|
|
6431
|
+
sx: oo.sxGroup,
|
|
6391
6432
|
children: [/* @__PURE__ */ R(H, {
|
|
6392
6433
|
disableElevation: !0,
|
|
6393
6434
|
startIcon: n,
|
|
6394
6435
|
onClick: r,
|
|
6395
6436
|
disabled: i || !a,
|
|
6396
6437
|
"data-testid": l ? `btn-${l}` : void 0,
|
|
6397
|
-
sx:
|
|
6438
|
+
sx: oo.sxMainButton(o, !h),
|
|
6398
6439
|
children: e
|
|
6399
6440
|
}), h ? /* @__PURE__ */ R(H, {
|
|
6400
6441
|
disableElevation: !0,
|
|
@@ -6403,10 +6444,10 @@ function oo({ titleButton: e, options: t, icon: n, onAction: r, disabled: i = !1
|
|
|
6403
6444
|
onClick: p,
|
|
6404
6445
|
disabled: i,
|
|
6405
6446
|
"data-testid": l ? `dropdown-toggle-${l}` : void 0,
|
|
6406
|
-
sx:
|
|
6447
|
+
sx: oo.sxArrowButton(o, f),
|
|
6407
6448
|
children: /* @__PURE__ */ R(In, {})
|
|
6408
6449
|
}) : null]
|
|
6409
|
-
}), /* @__PURE__ */ R(
|
|
6450
|
+
}), /* @__PURE__ */ R(ea, {
|
|
6410
6451
|
options: t,
|
|
6411
6452
|
anchorEl: u,
|
|
6412
6453
|
open: f,
|
|
@@ -6424,17 +6465,17 @@ function oo({ titleButton: e, options: t, icon: n, onAction: r, disabled: i = !1
|
|
|
6424
6465
|
}
|
|
6425
6466
|
//#endregion
|
|
6426
6467
|
//#region src/lib/components/dropdowns/SelectDropdown.tsx
|
|
6427
|
-
var
|
|
6428
|
-
function
|
|
6468
|
+
var co = 18;
|
|
6469
|
+
function lo(e) {
|
|
6429
6470
|
if (!et(e)) return e;
|
|
6430
6471
|
let t = e;
|
|
6431
6472
|
return Ze(t, { sx: [t.props.sx, {
|
|
6432
|
-
fontSize:
|
|
6433
|
-
width:
|
|
6434
|
-
height:
|
|
6473
|
+
fontSize: co,
|
|
6474
|
+
width: co,
|
|
6475
|
+
height: co
|
|
6435
6476
|
}] });
|
|
6436
6477
|
}
|
|
6437
|
-
function
|
|
6478
|
+
function uo({ 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 }) {
|
|
6438
6479
|
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) => {
|
|
6439
6480
|
n(e), f(null);
|
|
6440
6481
|
}, _ = (t) => {
|
|
@@ -6446,7 +6487,7 @@ function lo({ value: e, options: t, onChange: n, highlighted: r = !1, showIcons:
|
|
|
6446
6487
|
sx: sr.sxItem(n),
|
|
6447
6488
|
children: [i && t.icon ? /* @__PURE__ */ R(gt, {
|
|
6448
6489
|
sx: { color: t.iconColor ?? "m3.onSurfaceVariant" },
|
|
6449
|
-
children:
|
|
6490
|
+
children: lo(t.icon)
|
|
6450
6491
|
}) : null, t.label]
|
|
6451
6492
|
}, t.value);
|
|
6452
6493
|
};
|
|
@@ -6465,7 +6506,7 @@ function lo({ value: e, options: t, onChange: n, highlighted: r = !1, showIcons:
|
|
|
6465
6506
|
component: "span",
|
|
6466
6507
|
className: "sel-lead",
|
|
6467
6508
|
sx: { color: h.iconColor ?? "inherit" },
|
|
6468
|
-
children:
|
|
6509
|
+
children: lo(h.icon)
|
|
6469
6510
|
}) : null,
|
|
6470
6511
|
/* @__PURE__ */ R(B, {
|
|
6471
6512
|
component: "span",
|
|
@@ -6518,7 +6559,7 @@ function lo({ value: e, options: t, onChange: n, highlighted: r = !1, showIcons:
|
|
|
6518
6559
|
}
|
|
6519
6560
|
//#endregion
|
|
6520
6561
|
//#region src/lib/components/search/CmsSearchField.styles.ts
|
|
6521
|
-
var
|
|
6562
|
+
var fo = {
|
|
6522
6563
|
sxRoot: (e) => ({
|
|
6523
6564
|
display: "inline-flex",
|
|
6524
6565
|
alignItems: "center",
|
|
@@ -6635,8 +6676,8 @@ var uo = {
|
|
|
6635
6676
|
border: "1.5px solid",
|
|
6636
6677
|
borderColor: "m3.surfaceContainerHigh"
|
|
6637
6678
|
}
|
|
6638
|
-
},
|
|
6639
|
-
function
|
|
6679
|
+
}, po = "0.16s cubic-bezier(0.4, 0, 0.2, 1)", mo = 2400;
|
|
6680
|
+
function ho({ 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 }) {
|
|
6640
6681
|
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 = () => {
|
|
6641
6682
|
let n = e.trim(), r = n && !k.includes(n) ? [...k, n] : k;
|
|
6642
6683
|
return r !== k && o?.(r), n && t(""), r;
|
|
@@ -6665,15 +6706,15 @@ function mo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
|
|
|
6665
6706
|
flexShrink: 1,
|
|
6666
6707
|
flexBasis: 0,
|
|
6667
6708
|
minWidth: 0,
|
|
6668
|
-
maxWidth: ce ? _ ??
|
|
6709
|
+
maxWidth: ce ? _ ?? mo : h,
|
|
6669
6710
|
marginLeft: ce && b != null ? b : "auto",
|
|
6670
6711
|
marginRight: v,
|
|
6671
|
-
transition: `max-width ${
|
|
6712
|
+
transition: `max-width ${po}`
|
|
6672
6713
|
} : {
|
|
6673
6714
|
flexBasis: h,
|
|
6674
6715
|
maxWidth: "100%"
|
|
6675
6716
|
}, /* @__PURE__ */ z(B, {
|
|
6676
|
-
sx:
|
|
6717
|
+
sx: fo.sxRoot({
|
|
6677
6718
|
collapsed: se,
|
|
6678
6719
|
focused: ae
|
|
6679
6720
|
}),
|
|
@@ -6681,9 +6722,9 @@ function mo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
|
|
|
6681
6722
|
onClick: me,
|
|
6682
6723
|
"data-testid": w,
|
|
6683
6724
|
children: [
|
|
6684
|
-
u && /* @__PURE__ */ R(Ft, { sx:
|
|
6725
|
+
u && /* @__PURE__ */ R(Ft, { sx: fo.sxLeadIcon(ae) }),
|
|
6685
6726
|
!se && /* @__PURE__ */ z(B, {
|
|
6686
|
-
sx:
|
|
6727
|
+
sx: fo.sxContent,
|
|
6687
6728
|
children: [ne && k.map((e) => /* @__PURE__ */ R(zn, {
|
|
6688
6729
|
label: e,
|
|
6689
6730
|
size: "small",
|
|
@@ -6692,7 +6733,7 @@ function mo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
|
|
|
6692
6733
|
"aria-label": te,
|
|
6693
6734
|
"data-testid": w ? `${w}-chip-${y(e)}-remove` : void 0
|
|
6694
6735
|
}),
|
|
6695
|
-
sx:
|
|
6736
|
+
sx: fo.sxChip,
|
|
6696
6737
|
"data-testid": w ? `${w}-chip-${y(e)}` : void 0
|
|
6697
6738
|
}, e)), /* @__PURE__ */ R(B, {
|
|
6698
6739
|
component: "input",
|
|
@@ -6706,7 +6747,7 @@ function mo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
|
|
|
6706
6747
|
onKeyDown: fe,
|
|
6707
6748
|
onFocus: () => oe(!0),
|
|
6708
6749
|
onBlur: () => oe(!1),
|
|
6709
|
-
sx:
|
|
6750
|
+
sx: fo.sxInput,
|
|
6710
6751
|
"data-testid": w ? `${w}-input` : void 0
|
|
6711
6752
|
})]
|
|
6712
6753
|
}),
|
|
@@ -6714,7 +6755,7 @@ function mo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
|
|
|
6714
6755
|
size: "small",
|
|
6715
6756
|
"aria-label": O,
|
|
6716
6757
|
onClick: pe,
|
|
6717
|
-
sx:
|
|
6758
|
+
sx: fo.sxClearBtn(ae),
|
|
6718
6759
|
"data-testid": w ? `${w}-icon-btn-clear` : void 0,
|
|
6719
6760
|
children: /* @__PURE__ */ R(Ln, {})
|
|
6720
6761
|
}),
|
|
@@ -6726,14 +6767,14 @@ function mo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
|
|
|
6726
6767
|
e.stopPropagation(), p?.();
|
|
6727
6768
|
},
|
|
6728
6769
|
sx: {
|
|
6729
|
-
...
|
|
6770
|
+
...fo.sxIconBtn,
|
|
6730
6771
|
position: "relative",
|
|
6731
|
-
...f ?
|
|
6772
|
+
...f ? fo.sxAdvancedActive : {}
|
|
6732
6773
|
},
|
|
6733
6774
|
"data-testid": w ? `${w}-icon-btn-advanced` : void 0,
|
|
6734
6775
|
children: [/* @__PURE__ */ R(Rn, {}), f && /* @__PURE__ */ R(B, {
|
|
6735
6776
|
component: "span",
|
|
6736
|
-
sx:
|
|
6777
|
+
sx: fo.sxDot
|
|
6737
6778
|
})]
|
|
6738
6779
|
})
|
|
6739
6780
|
]
|
|
@@ -6741,7 +6782,7 @@ function mo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, ch
|
|
|
6741
6782
|
}
|
|
6742
6783
|
//#endregion
|
|
6743
6784
|
//#region src/lib/components/empty-state/CmsEmptyState.styles.ts
|
|
6744
|
-
var
|
|
6785
|
+
var go = {
|
|
6745
6786
|
sxRoot: {
|
|
6746
6787
|
display: "flex",
|
|
6747
6788
|
flexDirection: "column",
|
|
@@ -6776,22 +6817,22 @@ var ho = {
|
|
|
6776
6817
|
};
|
|
6777
6818
|
//#endregion
|
|
6778
6819
|
//#region src/lib/components/empty-state/CmsEmptyState.tsx
|
|
6779
|
-
function
|
|
6820
|
+
function _o({ title: e, description: t, icon: n, testId: r }) {
|
|
6780
6821
|
return /* @__PURE__ */ z(B, {
|
|
6781
|
-
sx:
|
|
6822
|
+
sx: go.sxRoot,
|
|
6782
6823
|
"data-testid": r,
|
|
6783
6824
|
children: [
|
|
6784
6825
|
/* @__PURE__ */ R(B, {
|
|
6785
|
-
sx:
|
|
6826
|
+
sx: go.sxIcon,
|
|
6786
6827
|
children: n ?? /* @__PURE__ */ R(Bn, {})
|
|
6787
6828
|
}),
|
|
6788
6829
|
/* @__PURE__ */ R(U, {
|
|
6789
|
-
sx:
|
|
6830
|
+
sx: go.sxTitle,
|
|
6790
6831
|
"data-testid": r ? `${r}-title` : void 0,
|
|
6791
6832
|
children: e
|
|
6792
6833
|
}),
|
|
6793
6834
|
t ? /* @__PURE__ */ R(U, {
|
|
6794
|
-
sx:
|
|
6835
|
+
sx: go.sxDescription,
|
|
6795
6836
|
"data-testid": r ? `${r}-description` : void 0,
|
|
6796
6837
|
children: t
|
|
6797
6838
|
}) : null
|
|
@@ -6800,7 +6841,7 @@ function go({ title: e, description: t, icon: n, testId: r }) {
|
|
|
6800
6841
|
}
|
|
6801
6842
|
//#endregion
|
|
6802
6843
|
//#region src/lib/components/status-card/CmsStatusCard.styles.ts
|
|
6803
|
-
var
|
|
6844
|
+
var vo = {
|
|
6804
6845
|
sxRoot: {
|
|
6805
6846
|
display: "flex",
|
|
6806
6847
|
alignItems: "center",
|
|
@@ -6851,30 +6892,30 @@ var _o = {
|
|
|
6851
6892
|
};
|
|
6852
6893
|
//#endregion
|
|
6853
6894
|
//#region src/lib/components/status-card/CmsStatusCard.tsx
|
|
6854
|
-
function
|
|
6895
|
+
function yo({ title: e, description: t, icon: n, iconColor: r = A.textNav, backgroundColor: i = A.menuSurface, children: a, testId: o }) {
|
|
6855
6896
|
return /* @__PURE__ */ R(B, {
|
|
6856
6897
|
sx: {
|
|
6857
|
-
...
|
|
6898
|
+
...vo.sxRoot,
|
|
6858
6899
|
backgroundColor: i
|
|
6859
6900
|
},
|
|
6860
6901
|
"data-testid": o,
|
|
6861
6902
|
children: /* @__PURE__ */ z(B, {
|
|
6862
|
-
sx:
|
|
6903
|
+
sx: vo.sxContent,
|
|
6863
6904
|
children: [
|
|
6864
6905
|
/* @__PURE__ */ R(B, {
|
|
6865
|
-
sx:
|
|
6906
|
+
sx: vo.sxIcon(r),
|
|
6866
6907
|
"data-testid": o ? `${o}-icon` : void 0,
|
|
6867
6908
|
children: n ?? /* @__PURE__ */ R(ut, {})
|
|
6868
6909
|
}),
|
|
6869
6910
|
/* @__PURE__ */ R(U, {
|
|
6870
6911
|
component: "h3",
|
|
6871
|
-
sx:
|
|
6912
|
+
sx: vo.sxTitle,
|
|
6872
6913
|
"data-testid": o ? `${o}-title` : void 0,
|
|
6873
6914
|
children: e
|
|
6874
6915
|
}),
|
|
6875
6916
|
t ? /* @__PURE__ */ R(U, {
|
|
6876
6917
|
component: "p",
|
|
6877
|
-
sx:
|
|
6918
|
+
sx: vo.sxDescription,
|
|
6878
6919
|
"data-testid": o ? `${o}-description` : void 0,
|
|
6879
6920
|
children: t
|
|
6880
6921
|
}) : null,
|
|
@@ -6885,7 +6926,7 @@ function vo({ title: e, description: t, icon: n, iconColor: r = A.textNav, backg
|
|
|
6885
6926
|
}
|
|
6886
6927
|
//#endregion
|
|
6887
6928
|
//#region src/lib/components/filter-bar/CmsFilterBar.styles.ts
|
|
6888
|
-
var
|
|
6929
|
+
var bo = {
|
|
6889
6930
|
sxRoot: {
|
|
6890
6931
|
display: "flex",
|
|
6891
6932
|
alignItems: "center",
|
|
@@ -6956,37 +6997,37 @@ var yo = {
|
|
|
6956
6997
|
};
|
|
6957
6998
|
//#endregion
|
|
6958
6999
|
//#region src/lib/components/filter-bar/CmsFilterBar.tsx
|
|
6959
|
-
function
|
|
7000
|
+
function xo({ label: e, chips: t, onClearAll: n, clearAllLabel: r, testId: i }) {
|
|
6960
7001
|
return t.length === 0 ? null : /* @__PURE__ */ z(B, {
|
|
6961
|
-
sx:
|
|
7002
|
+
sx: bo.sxRoot,
|
|
6962
7003
|
"data-testid": i,
|
|
6963
7004
|
children: [
|
|
6964
7005
|
/* @__PURE__ */ z(B, {
|
|
6965
|
-
sx:
|
|
6966
|
-
children: [/* @__PURE__ */ R(Vn, { sx:
|
|
7006
|
+
sx: bo.sxLabel,
|
|
7007
|
+
children: [/* @__PURE__ */ R(Vn, { sx: bo.sxLabelIcon }), /* @__PURE__ */ R(U, {
|
|
6967
7008
|
component: "span",
|
|
6968
|
-
sx:
|
|
7009
|
+
sx: bo.sxLabelText,
|
|
6969
7010
|
children: e
|
|
6970
7011
|
})]
|
|
6971
7012
|
}),
|
|
6972
7013
|
t.map((e) => /* @__PURE__ */ z(B, {
|
|
6973
|
-
sx:
|
|
7014
|
+
sx: bo.sxChip,
|
|
6974
7015
|
"data-testid": e.testId,
|
|
6975
7016
|
children: [
|
|
6976
7017
|
e.icon ? /* @__PURE__ */ R(B, {
|
|
6977
|
-
sx:
|
|
7018
|
+
sx: bo.sxChipIcon,
|
|
6978
7019
|
children: e.icon
|
|
6979
7020
|
}) : null,
|
|
6980
7021
|
/* @__PURE__ */ R(B, {
|
|
6981
7022
|
component: "span",
|
|
6982
|
-
sx:
|
|
7023
|
+
sx: bo.sxChipLabel,
|
|
6983
7024
|
children: e.label
|
|
6984
7025
|
}),
|
|
6985
7026
|
/* @__PURE__ */ R(V, {
|
|
6986
7027
|
size: "small",
|
|
6987
7028
|
"aria-label": e.removeAriaLabel,
|
|
6988
7029
|
onClick: e.onRemove,
|
|
6989
|
-
sx:
|
|
7030
|
+
sx: bo.sxChipRemove,
|
|
6990
7031
|
"data-testid": e.testId ? `${e.testId}-icon-btn-remove` : void 0,
|
|
6991
7032
|
children: /* @__PURE__ */ R(Ln, {})
|
|
6992
7033
|
})
|
|
@@ -6995,7 +7036,7 @@ function bo({ label: e, chips: t, onClearAll: n, clearAllLabel: r, testId: i })
|
|
|
6995
7036
|
n ? /* @__PURE__ */ R(H, {
|
|
6996
7037
|
onClick: n,
|
|
6997
7038
|
startIcon: /* @__PURE__ */ R(Ln, {}),
|
|
6998
|
-
sx:
|
|
7039
|
+
sx: bo.sxClearAll,
|
|
6999
7040
|
"data-testid": i ? `${i}-btn-clear-all` : void 0,
|
|
7000
7041
|
children: r
|
|
7001
7042
|
}) : null
|
|
@@ -7004,7 +7045,7 @@ function bo({ label: e, chips: t, onClearAll: n, clearAllLabel: r, testId: i })
|
|
|
7004
7045
|
}
|
|
7005
7046
|
//#endregion
|
|
7006
7047
|
//#region src/lib/components/fields/fieldStyles.ts
|
|
7007
|
-
var
|
|
7048
|
+
var Q = {
|
|
7008
7049
|
sxField: {
|
|
7009
7050
|
display: "flex",
|
|
7010
7051
|
flexDirection: "column",
|
|
@@ -7121,10 +7162,10 @@ var $ = {
|
|
|
7121
7162
|
};
|
|
7122
7163
|
//#endregion
|
|
7123
7164
|
//#region src/lib/components/fields/CmsCheckboxField.tsx
|
|
7124
|
-
function
|
|
7165
|
+
function So({ value: e, onChange: t, label: n, disabled: r = !1, testId: i }) {
|
|
7125
7166
|
let a = rt();
|
|
7126
7167
|
return /* @__PURE__ */ R(Gn, {
|
|
7127
|
-
sx:
|
|
7168
|
+
sx: Q.sxCheckboxLabel,
|
|
7128
7169
|
disabled: r,
|
|
7129
7170
|
control: /* @__PURE__ */ R(Wn, {
|
|
7130
7171
|
id: a,
|
|
@@ -7141,19 +7182,19 @@ function xo({ value: e, onChange: t, label: n, disabled: r = !1, testId: i }) {
|
|
|
7141
7182
|
}
|
|
7142
7183
|
//#endregion
|
|
7143
7184
|
//#region src/lib/components/fields/FieldShell.tsx
|
|
7144
|
-
function
|
|
7185
|
+
function Co({ label: e, htmlFor: t, hint: n, children: r }) {
|
|
7145
7186
|
return /* @__PURE__ */ z(B, {
|
|
7146
|
-
sx:
|
|
7187
|
+
sx: Q.sxField,
|
|
7147
7188
|
children: [
|
|
7148
7189
|
e != null && /* @__PURE__ */ R(B, {
|
|
7149
7190
|
component: "label",
|
|
7150
7191
|
htmlFor: t,
|
|
7151
|
-
sx:
|
|
7192
|
+
sx: Q.sxLabel,
|
|
7152
7193
|
children: e
|
|
7153
7194
|
}),
|
|
7154
7195
|
r,
|
|
7155
7196
|
n != null && /* @__PURE__ */ R(B, {
|
|
7156
|
-
sx:
|
|
7197
|
+
sx: Q.sxHint,
|
|
7157
7198
|
children: n
|
|
7158
7199
|
})
|
|
7159
7200
|
]
|
|
@@ -7161,9 +7202,9 @@ function So({ label: e, htmlFor: t, hint: n, children: r }) {
|
|
|
7161
7202
|
}
|
|
7162
7203
|
//#endregion
|
|
7163
7204
|
//#region src/lib/components/fields/CmsComboboxField.tsx
|
|
7164
|
-
function
|
|
7205
|
+
function wo({ value: e, onChange: t, options: n, label: r, placeholder: i, hint: a, noOptionsText: o, disabled: s = !1, testId: c }) {
|
|
7165
7206
|
let l = rt(), { t: u } = G(), d = o ?? u.messages.search.noOptions, f = F(() => n.filter((e) => e.show !== !1), [n]);
|
|
7166
|
-
return /* @__PURE__ */ R(
|
|
7207
|
+
return /* @__PURE__ */ R(Co, {
|
|
7167
7208
|
label: r,
|
|
7168
7209
|
htmlFor: l,
|
|
7169
7210
|
hint: a,
|
|
@@ -7179,21 +7220,21 @@ function Co({ value: e, onChange: t, options: n, label: r, placeholder: i, hint:
|
|
|
7179
7220
|
isOptionEqualToValue: (e, t) => e.value === t.value,
|
|
7180
7221
|
onChange: (e, n) => t(n ? n.value : ""),
|
|
7181
7222
|
slotProps: {
|
|
7182
|
-
paper: { sx:
|
|
7183
|
-
listbox: { sx:
|
|
7223
|
+
paper: { sx: Q.sxAutocompletePaper },
|
|
7224
|
+
listbox: { sx: Q.sxAutocompleteListbox }
|
|
7184
7225
|
},
|
|
7185
7226
|
renderInput: (e) => /* @__PURE__ */ R(qn, {
|
|
7186
7227
|
...e,
|
|
7187
7228
|
variant: "standard",
|
|
7188
7229
|
placeholder: i,
|
|
7189
|
-
sx:
|
|
7230
|
+
sx: Q.sxStandard
|
|
7190
7231
|
})
|
|
7191
7232
|
})
|
|
7192
7233
|
});
|
|
7193
7234
|
}
|
|
7194
7235
|
//#endregion
|
|
7195
7236
|
//#region src/lib/components/fields/CmsDateField.styles.ts
|
|
7196
|
-
var
|
|
7237
|
+
var To = {
|
|
7197
7238
|
sxPaper: {
|
|
7198
7239
|
width: 312,
|
|
7199
7240
|
p: "12px 12px 8px",
|
|
@@ -7287,10 +7328,10 @@ var wo = {
|
|
|
7287
7328
|
};
|
|
7288
7329
|
//#endregion
|
|
7289
7330
|
//#region src/lib/components/fields/CmsDateField.tsx
|
|
7290
|
-
function
|
|
7331
|
+
function Eo(e) {
|
|
7291
7332
|
return e < 10 ? `0${e}` : `${e}`;
|
|
7292
7333
|
}
|
|
7293
|
-
function
|
|
7334
|
+
function Do(e) {
|
|
7294
7335
|
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
7295
7336
|
return t ? {
|
|
7296
7337
|
y: +t[1],
|
|
@@ -7298,17 +7339,17 @@ function Eo(e) {
|
|
|
7298
7339
|
d: +t[3]
|
|
7299
7340
|
} : null;
|
|
7300
7341
|
}
|
|
7301
|
-
function
|
|
7302
|
-
return `${e}-${
|
|
7342
|
+
function Oo(e, t, n) {
|
|
7343
|
+
return `${e}-${Eo(t + 1)}-${Eo(n)}`;
|
|
7303
7344
|
}
|
|
7304
|
-
function
|
|
7305
|
-
let o = rt(), { t: s, locale: c } = G(), l = s.messages.search, u = Nr(c), [d, f] = I(null), [p, m] = I(!1), h =
|
|
7345
|
+
function ko({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId: a }) {
|
|
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 = Do(e), g = /* @__PURE__ */ new Date(), [_, v] = I(() => h ? {
|
|
7306
7347
|
y: h.y,
|
|
7307
7348
|
m: h.m
|
|
7308
7349
|
} : {
|
|
7309
7350
|
y: g.getFullYear(),
|
|
7310
7351
|
m: g.getMonth()
|
|
7311
|
-
}), y = h ? `${
|
|
7352
|
+
}), y = h ? `${Eo(h.d)}/${Eo(h.m + 1)}/${h.y}` : "", b = F(() => {
|
|
7312
7353
|
let e = new Intl.DateTimeFormat(u, { weekday: "short" }), t = new Date(2023, 0, 2);
|
|
7313
7354
|
return Array.from({ length: 7 }, (n, r) => {
|
|
7314
7355
|
let i = new Date(t.getFullYear(), t.getMonth(), t.getDate() + r);
|
|
@@ -7348,9 +7389,9 @@ function Oo({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
7348
7389
|
y: e.y,
|
|
7349
7390
|
m: e.m + 1
|
|
7350
7391
|
}), E = (e) => {
|
|
7351
|
-
t(
|
|
7392
|
+
t(Oo(e.y, e.m, e.d)), m(!1);
|
|
7352
7393
|
};
|
|
7353
|
-
return /* @__PURE__ */ z(
|
|
7394
|
+
return /* @__PURE__ */ z(Co, {
|
|
7354
7395
|
label: n,
|
|
7355
7396
|
htmlFor: o,
|
|
7356
7397
|
hint: r,
|
|
@@ -7364,7 +7405,7 @@ function Oo({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
7364
7405
|
disabled: i,
|
|
7365
7406
|
fullWidth: !0,
|
|
7366
7407
|
onClick: C,
|
|
7367
|
-
sx:
|
|
7408
|
+
sx: Q.sxStandard,
|
|
7368
7409
|
slotProps: {
|
|
7369
7410
|
input: {
|
|
7370
7411
|
readOnly: !0,
|
|
@@ -7398,34 +7439,34 @@ function Oo({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
7398
7439
|
vertical: "top",
|
|
7399
7440
|
horizontal: "left"
|
|
7400
7441
|
},
|
|
7401
|
-
slotProps: { paper: { sx:
|
|
7442
|
+
slotProps: { paper: { sx: To.sxPaper } },
|
|
7402
7443
|
children: [
|
|
7403
7444
|
/* @__PURE__ */ z(B, {
|
|
7404
|
-
sx:
|
|
7445
|
+
sx: To.sxHeader,
|
|
7405
7446
|
children: [/* @__PURE__ */ R(B, {
|
|
7406
|
-
sx:
|
|
7447
|
+
sx: To.sxMonthLabel,
|
|
7407
7448
|
children: x
|
|
7408
7449
|
}), /* @__PURE__ */ z(B, {
|
|
7409
|
-
sx:
|
|
7450
|
+
sx: To.sxNav,
|
|
7410
7451
|
children: [/* @__PURE__ */ R(V, {
|
|
7411
7452
|
size: "small",
|
|
7412
7453
|
"aria-label": l.prevMonthAriaLabel,
|
|
7413
7454
|
onClick: w,
|
|
7414
|
-
sx:
|
|
7455
|
+
sx: To.sxNavBtn,
|
|
7415
7456
|
children: /* @__PURE__ */ R(Yn, {})
|
|
7416
7457
|
}), /* @__PURE__ */ R(V, {
|
|
7417
7458
|
size: "small",
|
|
7418
7459
|
"aria-label": l.nextMonthAriaLabel,
|
|
7419
7460
|
onClick: T,
|
|
7420
|
-
sx:
|
|
7461
|
+
sx: To.sxNavBtn,
|
|
7421
7462
|
children: /* @__PURE__ */ R(mt, {})
|
|
7422
7463
|
})]
|
|
7423
7464
|
})]
|
|
7424
7465
|
}),
|
|
7425
7466
|
/* @__PURE__ */ z(B, {
|
|
7426
|
-
sx:
|
|
7467
|
+
sx: To.sxGrid,
|
|
7427
7468
|
children: [b.map((e, t) => /* @__PURE__ */ R(B, {
|
|
7428
|
-
sx:
|
|
7469
|
+
sx: To.sxDow,
|
|
7429
7470
|
children: e
|
|
7430
7471
|
}, `dow-${t}`)), S.map((e, t) => {
|
|
7431
7472
|
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;
|
|
@@ -7433,7 +7474,7 @@ function Oo({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
7433
7474
|
component: "button",
|
|
7434
7475
|
type: "button",
|
|
7435
7476
|
onClick: () => E(e),
|
|
7436
|
-
sx:
|
|
7477
|
+
sx: To.sxDay({
|
|
7437
7478
|
other: n,
|
|
7438
7479
|
today: r,
|
|
7439
7480
|
selected: i
|
|
@@ -7443,17 +7484,17 @@ function Oo({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
7443
7484
|
})]
|
|
7444
7485
|
}),
|
|
7445
7486
|
/* @__PURE__ */ z(B, {
|
|
7446
|
-
sx:
|
|
7487
|
+
sx: To.sxFooter,
|
|
7447
7488
|
children: [/* @__PURE__ */ R(H, {
|
|
7448
|
-
sx:
|
|
7489
|
+
sx: To.sxFooterBtn,
|
|
7449
7490
|
onClick: () => {
|
|
7450
7491
|
t(""), m(!1);
|
|
7451
7492
|
},
|
|
7452
7493
|
children: l.dateClear
|
|
7453
7494
|
}), /* @__PURE__ */ R(H, {
|
|
7454
|
-
sx:
|
|
7495
|
+
sx: To.sxFooterBtn,
|
|
7455
7496
|
onClick: () => {
|
|
7456
|
-
t(
|
|
7497
|
+
t(Oo(g.getFullYear(), g.getMonth(), g.getDate())), m(!1);
|
|
7457
7498
|
},
|
|
7458
7499
|
children: l.dateToday
|
|
7459
7500
|
})]
|
|
@@ -7464,9 +7505,9 @@ function Oo({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
7464
7505
|
}
|
|
7465
7506
|
//#endregion
|
|
7466
7507
|
//#region src/lib/components/fields/CmsMultiSelectField.tsx
|
|
7467
|
-
function
|
|
7508
|
+
function Ao({ value: e, onChange: t, options: n, label: r, placeholder: i, hint: a, noOptionsText: o, disabled: s = !1, testId: c }) {
|
|
7468
7509
|
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]);
|
|
7469
|
-
return /* @__PURE__ */ R(
|
|
7510
|
+
return /* @__PURE__ */ R(Co, {
|
|
7470
7511
|
label: r,
|
|
7471
7512
|
htmlFor: l,
|
|
7472
7513
|
hint: a,
|
|
@@ -7484,15 +7525,15 @@ function ko({ value: e, onChange: t, options: n, label: r, placeholder: i, hint:
|
|
|
7484
7525
|
isOptionEqualToValue: (e, t) => e.value === t.value,
|
|
7485
7526
|
onChange: (e, n) => t(n.map((e) => e.value)),
|
|
7486
7527
|
slotProps: {
|
|
7487
|
-
paper: { sx:
|
|
7488
|
-
listbox: { sx:
|
|
7528
|
+
paper: { sx: Q.sxAutocompletePaper },
|
|
7529
|
+
listbox: { sx: Q.sxAutocompleteListbox }
|
|
7489
7530
|
},
|
|
7490
7531
|
renderValue: (e, t) => e.map((e, n) => {
|
|
7491
7532
|
let { key: r, ...i } = t({ index: n });
|
|
7492
7533
|
return /* @__PURE__ */ R(zn, {
|
|
7493
7534
|
label: e.label,
|
|
7494
7535
|
size: "small",
|
|
7495
|
-
sx:
|
|
7536
|
+
sx: Q.sxChip,
|
|
7496
7537
|
icon: e.color ? /* @__PURE__ */ R(B, {
|
|
7497
7538
|
component: "span",
|
|
7498
7539
|
sx: {
|
|
@@ -7540,16 +7581,16 @@ function ko({ value: e, onChange: t, options: n, label: r, placeholder: i, hint:
|
|
|
7540
7581
|
...e,
|
|
7541
7582
|
variant: "standard",
|
|
7542
7583
|
placeholder: p.length === 0 ? i : void 0,
|
|
7543
|
-
sx:
|
|
7584
|
+
sx: Q.sxStandard
|
|
7544
7585
|
})
|
|
7545
7586
|
})
|
|
7546
7587
|
});
|
|
7547
7588
|
}
|
|
7548
7589
|
//#endregion
|
|
7549
7590
|
//#region src/lib/components/fields/CmsNumberField.tsx
|
|
7550
|
-
function
|
|
7591
|
+
function jo({ value: e, onChange: t, label: n, placeholder: r, hint: i, min: a, max: o, disabled: s = !1, testId: c }) {
|
|
7551
7592
|
let l = rt();
|
|
7552
|
-
return /* @__PURE__ */ R(
|
|
7593
|
+
return /* @__PURE__ */ R(Co, {
|
|
7553
7594
|
label: n,
|
|
7554
7595
|
htmlFor: l,
|
|
7555
7596
|
hint: i,
|
|
@@ -7562,7 +7603,7 @@ function Ao({ value: e, onChange: t, label: n, placeholder: r, hint: i, min: a,
|
|
|
7562
7603
|
disabled: s,
|
|
7563
7604
|
fullWidth: !0,
|
|
7564
7605
|
onChange: (e) => t(e.target.value),
|
|
7565
|
-
sx:
|
|
7606
|
+
sx: Q.sxStandard,
|
|
7566
7607
|
slotProps: { htmlInput: {
|
|
7567
7608
|
min: a,
|
|
7568
7609
|
max: o,
|
|
@@ -7574,9 +7615,9 @@ function Ao({ value: e, onChange: t, label: n, placeholder: r, hint: i, min: a,
|
|
|
7574
7615
|
}
|
|
7575
7616
|
//#endregion
|
|
7576
7617
|
//#region src/lib/components/fields/CmsSelectField.tsx
|
|
7577
|
-
function
|
|
7618
|
+
function Mo({ value: e, onChange: t, options: n, label: r, placeholder: i, hint: a, disabled: o = !1, showCheck: s = !0, testId: c }) {
|
|
7578
7619
|
let l = rt(), u = F(() => n.filter((e) => e.show !== !1), [n]);
|
|
7579
|
-
return /* @__PURE__ */ R(
|
|
7620
|
+
return /* @__PURE__ */ R(Co, {
|
|
7580
7621
|
label: r,
|
|
7581
7622
|
htmlFor: l,
|
|
7582
7623
|
hint: a,
|
|
@@ -7588,7 +7629,7 @@ function jo({ value: e, onChange: t, options: n, label: r, placeholder: i, hint:
|
|
|
7588
7629
|
disabled: o,
|
|
7589
7630
|
fullWidth: !0,
|
|
7590
7631
|
onChange: (e) => t(e.target.value),
|
|
7591
|
-
sx:
|
|
7632
|
+
sx: Q.sxStandard,
|
|
7592
7633
|
slotProps: {
|
|
7593
7634
|
select: {
|
|
7594
7635
|
displayEmpty: !0,
|
|
@@ -7609,8 +7650,8 @@ function jo({ value: e, onChange: t, options: n, label: r, placeholder: i, hint:
|
|
|
7609
7650
|
horizontal: "left"
|
|
7610
7651
|
},
|
|
7611
7652
|
slotProps: {
|
|
7612
|
-
paper: { sx:
|
|
7613
|
-
list: { sx:
|
|
7653
|
+
paper: { sx: Q.sxSelectMenuPaper },
|
|
7654
|
+
list: { sx: Q.sxSelectList }
|
|
7614
7655
|
}
|
|
7615
7656
|
}
|
|
7616
7657
|
},
|
|
@@ -7618,7 +7659,7 @@ function jo({ value: e, onChange: t, options: n, label: r, placeholder: i, hint:
|
|
|
7618
7659
|
},
|
|
7619
7660
|
children: [i != null && /* @__PURE__ */ R(yt, {
|
|
7620
7661
|
value: "",
|
|
7621
|
-
sx:
|
|
7662
|
+
sx: Q.sxSelectItem,
|
|
7622
7663
|
children: /* @__PURE__ */ R(B, {
|
|
7623
7664
|
component: "span",
|
|
7624
7665
|
sx: {
|
|
@@ -7630,21 +7671,21 @@ function jo({ value: e, onChange: t, options: n, label: r, placeholder: i, hint:
|
|
|
7630
7671
|
}), u.map((t) => /* @__PURE__ */ z(yt, {
|
|
7631
7672
|
value: t.value,
|
|
7632
7673
|
disabled: t.disabled,
|
|
7633
|
-
sx:
|
|
7674
|
+
sx: Q.sxSelectItem,
|
|
7634
7675
|
children: [/* @__PURE__ */ R(B, {
|
|
7635
7676
|
component: "span",
|
|
7636
7677
|
sx: { flex: 1 },
|
|
7637
7678
|
children: t.label
|
|
7638
|
-
}), s && e === t.value && /* @__PURE__ */ R(nn, { sx:
|
|
7679
|
+
}), s && e === t.value && /* @__PURE__ */ R(nn, { sx: Q.sxSelectCheck })]
|
|
7639
7680
|
}, t.value))]
|
|
7640
7681
|
})
|
|
7641
7682
|
});
|
|
7642
7683
|
}
|
|
7643
7684
|
//#endregion
|
|
7644
7685
|
//#region src/lib/components/fields/CmsTagsField.tsx
|
|
7645
|
-
function
|
|
7686
|
+
function No({ value: e, onChange: t, label: n, placeholder: r, hint: i, suggestions: a = [], startIcon: o, chipSx: s, disabled: c = !1, testId: l }) {
|
|
7646
7687
|
let u = rt();
|
|
7647
|
-
return /* @__PURE__ */ R(
|
|
7688
|
+
return /* @__PURE__ */ R(Co, {
|
|
7648
7689
|
label: n,
|
|
7649
7690
|
htmlFor: u,
|
|
7650
7691
|
hint: i,
|
|
@@ -7657,13 +7698,13 @@ function Mo({ value: e, onChange: t, label: n, placeholder: r, hint: i, suggesti
|
|
|
7657
7698
|
value: e,
|
|
7658
7699
|
disabled: c,
|
|
7659
7700
|
onChange: (e, n) => t(n.map((e) => typeof e == "string" ? e.trim() : "").filter((e, t, n) => e && n.indexOf(e) === t)),
|
|
7660
|
-
slotProps: { paper: { sx:
|
|
7701
|
+
slotProps: { paper: { sx: Q.sxAutocompletePaper } },
|
|
7661
7702
|
renderValue: (e, t) => e.map((e, n) => {
|
|
7662
7703
|
let { key: r, ...i } = t({ index: n });
|
|
7663
7704
|
return /* @__PURE__ */ R(zn, {
|
|
7664
7705
|
label: e,
|
|
7665
7706
|
size: "small",
|
|
7666
|
-
sx: s ??
|
|
7707
|
+
sx: s ?? Q.sxChip,
|
|
7667
7708
|
...i
|
|
7668
7709
|
}, r);
|
|
7669
7710
|
}),
|
|
@@ -7671,7 +7712,7 @@ function Mo({ value: e, onChange: t, label: n, placeholder: r, hint: i, suggesti
|
|
|
7671
7712
|
...t,
|
|
7672
7713
|
variant: "standard",
|
|
7673
7714
|
placeholder: e.length === 0 ? r : void 0,
|
|
7674
|
-
sx:
|
|
7715
|
+
sx: Q.sxStandard,
|
|
7675
7716
|
slotProps: o ? {
|
|
7676
7717
|
...t.slotProps,
|
|
7677
7718
|
input: {
|
|
@@ -7693,9 +7734,9 @@ function Mo({ value: e, onChange: t, label: n, placeholder: r, hint: i, suggesti
|
|
|
7693
7734
|
}
|
|
7694
7735
|
//#endregion
|
|
7695
7736
|
//#region src/lib/components/fields/CmsTextField.tsx
|
|
7696
|
-
function
|
|
7737
|
+
function Po({ value: e, onChange: t, label: n, placeholder: r, hint: i, type: a = "text", disabled: o = !1, testId: s }) {
|
|
7697
7738
|
let c = rt();
|
|
7698
|
-
return /* @__PURE__ */ R(
|
|
7739
|
+
return /* @__PURE__ */ R(Co, {
|
|
7699
7740
|
label: n,
|
|
7700
7741
|
htmlFor: c,
|
|
7701
7742
|
hint: i,
|
|
@@ -7708,17 +7749,17 @@ function No({ value: e, onChange: t, label: n, placeholder: r, hint: i, type: a
|
|
|
7708
7749
|
disabled: o,
|
|
7709
7750
|
fullWidth: !0,
|
|
7710
7751
|
onChange: (e) => t(e.target.value),
|
|
7711
|
-
sx:
|
|
7752
|
+
sx: Q.sxStandard,
|
|
7712
7753
|
slotProps: { htmlInput: { "data-testid": s } }
|
|
7713
7754
|
})
|
|
7714
7755
|
});
|
|
7715
7756
|
}
|
|
7716
7757
|
//#endregion
|
|
7717
7758
|
//#region src/lib/components/fields/FieldRenderer.tsx
|
|
7718
|
-
function
|
|
7759
|
+
function Fo({ field: e, value: t, onChange: n }) {
|
|
7719
7760
|
let r = typeof t == "string" ? t : "", i = Array.isArray(t) ? t : [], a = t === !0;
|
|
7720
7761
|
switch (e.kind) {
|
|
7721
|
-
case "text": return /* @__PURE__ */ R(
|
|
7762
|
+
case "text": return /* @__PURE__ */ R(Po, {
|
|
7722
7763
|
label: e.label,
|
|
7723
7764
|
placeholder: e.placeholder,
|
|
7724
7765
|
hint: e.hint,
|
|
@@ -7728,7 +7769,7 @@ function Po({ field: e, value: t, onChange: n }) {
|
|
|
7728
7769
|
value: r,
|
|
7729
7770
|
onChange: n
|
|
7730
7771
|
});
|
|
7731
|
-
case "number": return /* @__PURE__ */ R(
|
|
7772
|
+
case "number": return /* @__PURE__ */ R(jo, {
|
|
7732
7773
|
label: e.label,
|
|
7733
7774
|
placeholder: e.placeholder,
|
|
7734
7775
|
hint: e.hint,
|
|
@@ -7739,7 +7780,7 @@ function Po({ field: e, value: t, onChange: n }) {
|
|
|
7739
7780
|
value: r,
|
|
7740
7781
|
onChange: n
|
|
7741
7782
|
});
|
|
7742
|
-
case "date": return /* @__PURE__ */ R(
|
|
7783
|
+
case "date": return /* @__PURE__ */ R(ko, {
|
|
7743
7784
|
label: e.label,
|
|
7744
7785
|
hint: e.hint,
|
|
7745
7786
|
disabled: e.disabled,
|
|
@@ -7747,7 +7788,7 @@ function Po({ field: e, value: t, onChange: n }) {
|
|
|
7747
7788
|
value: r,
|
|
7748
7789
|
onChange: n
|
|
7749
7790
|
});
|
|
7750
|
-
case "select": return /* @__PURE__ */ R(
|
|
7791
|
+
case "select": return /* @__PURE__ */ R(Mo, {
|
|
7751
7792
|
label: e.label,
|
|
7752
7793
|
placeholder: e.placeholder,
|
|
7753
7794
|
hint: e.hint,
|
|
@@ -7758,7 +7799,7 @@ function Po({ field: e, value: t, onChange: n }) {
|
|
|
7758
7799
|
value: r,
|
|
7759
7800
|
onChange: n
|
|
7760
7801
|
});
|
|
7761
|
-
case "combobox": return /* @__PURE__ */ R(
|
|
7802
|
+
case "combobox": return /* @__PURE__ */ R(wo, {
|
|
7762
7803
|
label: e.label,
|
|
7763
7804
|
placeholder: e.placeholder,
|
|
7764
7805
|
hint: e.hint,
|
|
@@ -7768,7 +7809,7 @@ function Po({ field: e, value: t, onChange: n }) {
|
|
|
7768
7809
|
value: r,
|
|
7769
7810
|
onChange: n
|
|
7770
7811
|
});
|
|
7771
|
-
case "multiselect": return /* @__PURE__ */ R(
|
|
7812
|
+
case "multiselect": return /* @__PURE__ */ R(Ao, {
|
|
7772
7813
|
label: e.label,
|
|
7773
7814
|
placeholder: e.placeholder,
|
|
7774
7815
|
hint: e.hint,
|
|
@@ -7778,7 +7819,7 @@ function Po({ field: e, value: t, onChange: n }) {
|
|
|
7778
7819
|
value: i,
|
|
7779
7820
|
onChange: n
|
|
7780
7821
|
});
|
|
7781
|
-
case "tags": return /* @__PURE__ */ R(
|
|
7822
|
+
case "tags": return /* @__PURE__ */ R(No, {
|
|
7782
7823
|
label: e.label,
|
|
7783
7824
|
placeholder: e.placeholder,
|
|
7784
7825
|
hint: e.hint,
|
|
@@ -7787,7 +7828,7 @@ function Po({ field: e, value: t, onChange: n }) {
|
|
|
7787
7828
|
value: i,
|
|
7788
7829
|
onChange: n
|
|
7789
7830
|
});
|
|
7790
|
-
case "checkbox": return /* @__PURE__ */ R(
|
|
7831
|
+
case "checkbox": return /* @__PURE__ */ R(So, {
|
|
7791
7832
|
label: e.label,
|
|
7792
7833
|
disabled: e.disabled,
|
|
7793
7834
|
testId: e.testId,
|
|
@@ -7799,7 +7840,7 @@ function Po({ field: e, value: t, onChange: n }) {
|
|
|
7799
7840
|
}
|
|
7800
7841
|
//#endregion
|
|
7801
7842
|
//#region src/lib/components/advanced-search/CmsAdvancedSearch.styles.ts
|
|
7802
|
-
var
|
|
7843
|
+
var $ = {
|
|
7803
7844
|
sxModalPaper: {
|
|
7804
7845
|
width: "min(1080px, calc(100vw - 48px))",
|
|
7805
7846
|
maxWidth: "none",
|
|
@@ -8131,37 +8172,37 @@ function Ro({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i,
|
|
|
8131
8172
|
}, ee = () => {
|
|
8132
8173
|
s(C), t();
|
|
8133
8174
|
}, te = n === "drawer", ne = /* @__PURE__ */ z(B, {
|
|
8134
|
-
sx:
|
|
8175
|
+
sx: $.sxContainer,
|
|
8135
8176
|
"data-testid": m,
|
|
8136
8177
|
children: [
|
|
8137
8178
|
/* @__PURE__ */ z(B, {
|
|
8138
|
-
sx:
|
|
8179
|
+
sx: $.sxHead,
|
|
8139
8180
|
children: [
|
|
8140
8181
|
/* @__PURE__ */ R(B, {
|
|
8141
|
-
sx:
|
|
8182
|
+
sx: $.sxHeadIcon,
|
|
8142
8183
|
children: i ?? /* @__PURE__ */ R(Vn, {})
|
|
8143
8184
|
}),
|
|
8144
8185
|
/* @__PURE__ */ R(B, {
|
|
8145
8186
|
component: "h2",
|
|
8146
|
-
sx:
|
|
8187
|
+
sx: $.sxTitle,
|
|
8147
8188
|
children: v
|
|
8148
8189
|
}),
|
|
8149
8190
|
/* @__PURE__ */ R(V, {
|
|
8150
8191
|
"aria-label": x,
|
|
8151
8192
|
onClick: t,
|
|
8152
|
-
sx:
|
|
8193
|
+
sx: $.sxClose,
|
|
8153
8194
|
"data-testid": m ? `${m}-icon-btn-close` : void 0,
|
|
8154
8195
|
children: /* @__PURE__ */ R(Ln, {})
|
|
8155
8196
|
})
|
|
8156
8197
|
]
|
|
8157
8198
|
}),
|
|
8158
8199
|
/* @__PURE__ */ R(B, {
|
|
8159
|
-
sx:
|
|
8200
|
+
sx: $.sxBody,
|
|
8160
8201
|
children: /* @__PURE__ */ R(B, {
|
|
8161
|
-
sx:
|
|
8202
|
+
sx: $.sxGrid(f, te),
|
|
8162
8203
|
children: _.map((e) => /* @__PURE__ */ R(B, {
|
|
8163
8204
|
sx: { gridColumn: !te && e.span && e.span > 1 ? `span ${e.span}` : void 0 },
|
|
8164
|
-
children: /* @__PURE__ */ R(
|
|
8205
|
+
children: /* @__PURE__ */ R(Fo, {
|
|
8165
8206
|
field: e,
|
|
8166
8207
|
value: C[e.name],
|
|
8167
8208
|
onChange: (t) => D(e.name, t)
|
|
@@ -8170,12 +8211,12 @@ function Ro({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i,
|
|
|
8170
8211
|
})
|
|
8171
8212
|
}),
|
|
8172
8213
|
/* @__PURE__ */ z(B, {
|
|
8173
|
-
sx:
|
|
8214
|
+
sx: $.sxFoot,
|
|
8174
8215
|
children: [/* @__PURE__ */ R(H, {
|
|
8175
8216
|
type: "button",
|
|
8176
8217
|
disableElevation: !0,
|
|
8177
8218
|
onClick: O,
|
|
8178
|
-
sx:
|
|
8219
|
+
sx: $.sxReset,
|
|
8179
8220
|
"data-testid": m ? `${m}-btn-reset` : void 0,
|
|
8180
8221
|
children: b
|
|
8181
8222
|
}), /* @__PURE__ */ R(H, {
|
|
@@ -8183,7 +8224,7 @@ function Ro({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i,
|
|
|
8183
8224
|
disableElevation: !0,
|
|
8184
8225
|
onClick: ee,
|
|
8185
8226
|
startIcon: /* @__PURE__ */ R(Vn, {}),
|
|
8186
|
-
sx:
|
|
8227
|
+
sx: $.sxApply,
|
|
8187
8228
|
"data-testid": m ? `${m}-btn-apply` : void 0,
|
|
8188
8229
|
children: y
|
|
8189
8230
|
})]
|
|
@@ -8194,13 +8235,13 @@ function Ro({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i,
|
|
|
8194
8235
|
anchor: "right",
|
|
8195
8236
|
open: e,
|
|
8196
8237
|
onClose: t,
|
|
8197
|
-
slotProps: { paper: { sx:
|
|
8238
|
+
slotProps: { paper: { sx: $.sxDrawerPaper(p) } },
|
|
8198
8239
|
children: ne
|
|
8199
8240
|
}) : /* @__PURE__ */ R(Hn, {
|
|
8200
8241
|
open: e,
|
|
8201
8242
|
onClose: t,
|
|
8202
8243
|
maxWidth: !1,
|
|
8203
|
-
slotProps: { paper: { sx:
|
|
8244
|
+
slotProps: { paper: { sx: $.sxModalPaper } },
|
|
8204
8245
|
children: ne
|
|
8205
8246
|
});
|
|
8206
8247
|
}
|
|
@@ -8451,6 +8492,6 @@ function Wo({ epochMs: e, localeTag: t, style: n = "long", title: r, testId: i,
|
|
|
8451
8492
|
});
|
|
8452
8493
|
}
|
|
8453
8494
|
//#endregion
|
|
8454
|
-
export { gi as ACCOUNT_NAV_BLOCKS,
|
|
8495
|
+
export { gi as ACCOUNT_NAV_BLOCKS, Aa as AppShell, so as BtnDropdown, Ro as CmsAdvancedSearch, a as CmsAudiosServices, t as CmsAuthLoginServices, c as CmsAuthServices, o as CmsCategoriesServices, So as CmsCheckboxField, C as CmsCkeditorServices, wo as CmsComboboxField, r as CmsCommentsServices, Ie as CmsCommonServices, Uo as CmsConfirmDialog, x as CmsContributionsServices, Ve as CmsCopilotServices, v as CmsDashboardServices, ko as CmsDateField, Ho as CmsDialogActions, _o as CmsEmptyState, qa as CmsErrorPage, We as CmsEventsServices, Be as CmsFileExplorerServices, xo as CmsFilterBar, Za as CmsFontFaces, ne as CmsGeneralServices, Mr as CmsI18nProvider, me as CmsImagesServices, no as CmsMuiProvider, Ao as CmsMultiSelectField, Hr as CmsNetworkContext, qr as CmsNetworkProvider, Yr as CmsNetworkToaster, ge as CmsNewsServices, we as CmsNotificationServices, jo 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, Wo as CmsRelativeTime, ho as CmsSearchField, Ue as CmsSectionsServices, Mo as CmsSelectField, be as CmsSitesServices, yo as CmsStatusCard, No as CmsTagsField, Ee as CmsTagsServices, Po 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, ma as CurrentUserPhotoProvider, kr as DEFAULT_LOCALE, Ba as DEFAULT_NEW_CONTENT_GROUPS, ta as DEFAULT_PREVIEW_FORMATS, T as DEFAULT_SITE_ID, pr as DEFAULT_THEME_PREFERENCE, ri as DefaultCmsLink, Fo as FieldRenderer, Co 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, Ga as NewContentMenu, io as NextCmsMuiProvider, qi as NotificationsMenu, na as PreviewMenu, Ca as ProfileMenu, Or as SUPPORTED_LOCALES, uo as SelectDropdown, sr as SelectStyles, za as Sidebar, Ti as SidebarRail, ea as SimpleDropdown, Oi as SiteSelectorMenu, fr as THEME_COLOR_SCHEME_ATTRIBUTE, dr as THEME_ENABLED_STORAGE_KEY, ur as THEME_MODE_STORAGE_KEY, Oa as TopBar, _a as UserAvatar, Io 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, ca as getProfileAvatarSrc, la as getProfileDisplayName, ua as getProfileFullName, n as getSiteNow, m as hasModulePermission, Ge as interestColors, ye as isNetworkErrorCode, Va 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, aa as resolveCmsAssetUrl, ia as resolveCmsOrigin, ce as resolveErrorSeverity, de as resumeAxiosOnNetworkError, S as shadows, i as sizes, He as sourceColors, w as stateColors, si as submitLegacyAdminPage, cr as sxMenuSurface, or as sxPillButton, u as toSiteWallClock, y as toTestId, Jr as useCmsNetworkStatus, Vr as useCmsToast, G as useCmsTranslation, ha as useCurrentUserPhoto, ni as useResilientAction, s as userStatusColors, _r as writeThemePreference };
|
|
8455
8496
|
|
|
8456
8497
|
//# sourceMappingURL=index.js.map
|