sass-cms-template-common 0.0.16 → 0.0.17
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 +28 -2
- package/dist/index.js +383 -285
- package/dist/index.js.map +1 -1
- package/dist/server.js +1 -1
- package/dist/{services-BQ1IbdWe.js → services-BnR5D-30.js} +5 -3
- package/dist/services-BnR5D-30.js.map +1 -0
- package/package.json +1 -1
- package/dist/services-BQ1IbdWe.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, F as s, G as c, H as l, I as u, J as d, K as f, L as p, M as m, N as h, O as g, P as _, Q as v, R as y, S as b, St as x, T as S, Tt as C, U as w, V as T, W as ee, X as E, Y as te, Z as D, _ as ne, _t as O, a as re, at as ie, b as ae, bt as k, c as oe, ct as se, d as ce, dt as le, et as ue, f as de, ft as A, g as fe, gt as j, h as pe, ht as me, i as he, it as ge, j as _e, k as ve, l as ye, lt as be, m as xe, mt as Se, n as Ce, nt as we, o as Te, ot as Ee, p as De, pt as Oe, q as ke, r as Ae, rt as je, s as Me, st as Ne, t as Pe, tt as Fe, u as Ie, ut as Le, v as Re, vt as ze, w as Be, wt as Ve, x as He, xt as M, y as Ue, yt as We, z as Ge } from "./services-
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, Ct as i, D as a, E as o, F as s, G as c, H as l, I as u, J as d, K as f, L as p, M as m, N as h, O as g, P as _, Q as v, R as y, S as b, St as x, T as S, Tt as C, U as w, V as T, W as ee, X as E, Y as te, Z as D, _ as ne, _t as O, a as re, at as ie, b as ae, bt as k, c as oe, ct as se, d as ce, dt as le, et as ue, f as de, ft as A, g as fe, gt as j, h as pe, ht as me, i as he, it as ge, j as _e, k as ve, l as ye, lt as be, m as xe, mt as Se, n as Ce, nt as we, o as Te, ot as Ee, p as De, pt as Oe, q as ke, r as Ae, rt as je, s as Me, st as Ne, t as Pe, tt as Fe, u as Ie, ut as Le, v as Re, vt as ze, w as Be, wt as Ve, x as He, xt as M, y as Ue, yt as We, z as Ge } from "./services-BnR5D-30.js";
|
|
2
2
|
import { ThemeProvider as Ke, alpha as N, createTheme as qe, useColorScheme as Je } from "@mui/material/styles";
|
|
3
3
|
import { Fragment as Ye, cloneElement as Xe, createContext as Ze, forwardRef as Qe, isValidElement as $e, useCallback as et, useContext as tt, useEffect as nt, useId as rt, useMemo as P, useRef as it, useState as F } from "react";
|
|
4
4
|
import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
@@ -3324,13 +3324,13 @@ var Si = {
|
|
|
3324
3324
|
},
|
|
3325
3325
|
sxActionIconGlyph: { fontSize: 24 },
|
|
3326
3326
|
sxBadge: { "& .MuiBadge-badge": {
|
|
3327
|
-
fontSize:
|
|
3328
|
-
fontWeight:
|
|
3327
|
+
fontSize: 10,
|
|
3328
|
+
fontWeight: 600,
|
|
3329
3329
|
minWidth: 16,
|
|
3330
3330
|
height: 16,
|
|
3331
3331
|
px: .5,
|
|
3332
|
-
top:
|
|
3333
|
-
right:
|
|
3332
|
+
top: 5,
|
|
3333
|
+
right: 5
|
|
3334
3334
|
} },
|
|
3335
3335
|
sxDivider: {
|
|
3336
3336
|
width: "1px",
|
|
@@ -3377,15 +3377,17 @@ var Si = {
|
|
|
3377
3377
|
},
|
|
3378
3378
|
sxProfileMenuPaper: {
|
|
3379
3379
|
mt: 1,
|
|
3380
|
-
minWidth:
|
|
3381
|
-
borderRadius:
|
|
3380
|
+
minWidth: 255,
|
|
3381
|
+
borderRadius: k.accountMenu,
|
|
3382
3382
|
bgcolor: A.menuSurface,
|
|
3383
3383
|
py: .5,
|
|
3384
|
-
boxShadow: M.
|
|
3384
|
+
boxShadow: M.accountMenu
|
|
3385
3385
|
},
|
|
3386
3386
|
sxProfileMenuItem: {
|
|
3387
|
+
mx: 1,
|
|
3388
|
+
px: 1,
|
|
3387
3389
|
py: 1.25,
|
|
3388
|
-
|
|
3390
|
+
borderRadius: k.md,
|
|
3389
3391
|
fontSize: 14,
|
|
3390
3392
|
color: A.textStrong,
|
|
3391
3393
|
"&:hover": { bgcolor: A.neutralHover }
|
|
@@ -3396,7 +3398,7 @@ var Si = {
|
|
|
3396
3398
|
"& .MuiSvgIcon-root": { fontSize: 22 }
|
|
3397
3399
|
},
|
|
3398
3400
|
sxProfileMenuDivider: {
|
|
3399
|
-
my:
|
|
3401
|
+
my: 0,
|
|
3400
3402
|
borderColor: A.border
|
|
3401
3403
|
}
|
|
3402
3404
|
};
|
|
@@ -3612,9 +3614,13 @@ var Ei = {
|
|
|
3612
3614
|
minWidth: 132
|
|
3613
3615
|
},
|
|
3614
3616
|
sxColumnTitle: {
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3617
|
+
fontFamily: O.googleSans,
|
|
3618
|
+
fontSize: 12,
|
|
3619
|
+
fontWeight: 600,
|
|
3620
|
+
lineHeight: 1.4,
|
|
3621
|
+
letterSpacing: "0.4px",
|
|
3622
|
+
textTransform: "uppercase",
|
|
3623
|
+
color: "m3.onSurfaceVariant",
|
|
3618
3624
|
mb: 1
|
|
3619
3625
|
},
|
|
3620
3626
|
sxItem: {
|
|
@@ -3622,7 +3628,7 @@ var Ei = {
|
|
|
3622
3628
|
color: A.textStrong,
|
|
3623
3629
|
py: 1,
|
|
3624
3630
|
px: 1,
|
|
3625
|
-
borderRadius:
|
|
3631
|
+
borderRadius: "10px",
|
|
3626
3632
|
cursor: "pointer",
|
|
3627
3633
|
textDecoration: "none",
|
|
3628
3634
|
display: "block",
|
|
@@ -3991,8 +3997,8 @@ var Y = {
|
|
|
3991
3997
|
}),
|
|
3992
3998
|
sxUnreadDot: {
|
|
3993
3999
|
position: "absolute",
|
|
3994
|
-
top: -
|
|
3995
|
-
right: -
|
|
4000
|
+
top: -5,
|
|
4001
|
+
right: -5,
|
|
3996
4002
|
width: 10,
|
|
3997
4003
|
height: 10,
|
|
3998
4004
|
borderRadius: "50%",
|
|
@@ -4141,7 +4147,7 @@ var Y = {
|
|
|
4141
4147
|
fontWeight: 700,
|
|
4142
4148
|
letterSpacing: "0.06em",
|
|
4143
4149
|
textTransform: "uppercase",
|
|
4144
|
-
color:
|
|
4150
|
+
color: A.primary
|
|
4145
4151
|
},
|
|
4146
4152
|
sxOpportunityCount: {
|
|
4147
4153
|
display: "inline-flex",
|
|
@@ -4152,11 +4158,44 @@ var Y = {
|
|
|
4152
4158
|
px: .5,
|
|
4153
4159
|
borderRadius: k.pill,
|
|
4154
4160
|
bgcolor: A.secondary,
|
|
4155
|
-
color:
|
|
4161
|
+
color: A.onSecondaryContainer,
|
|
4156
4162
|
fontSize: 11,
|
|
4157
4163
|
fontWeight: 600,
|
|
4158
4164
|
lineHeight: 1
|
|
4159
4165
|
},
|
|
4166
|
+
sxOpportunityAvatar: {
|
|
4167
|
+
position: "relative",
|
|
4168
|
+
width: 36,
|
|
4169
|
+
height: 36,
|
|
4170
|
+
borderRadius: 3,
|
|
4171
|
+
display: "grid",
|
|
4172
|
+
placeItems: "center",
|
|
4173
|
+
bgcolor: A.primary,
|
|
4174
|
+
color: A.white,
|
|
4175
|
+
border: "2px solid",
|
|
4176
|
+
borderColor: A.primary,
|
|
4177
|
+
"& svg": { fontSize: 20 },
|
|
4178
|
+
"@keyframes opportunityIconRing": {
|
|
4179
|
+
"0%": {
|
|
4180
|
+
opacity: .6,
|
|
4181
|
+
transform: "scale(1)"
|
|
4182
|
+
},
|
|
4183
|
+
"100%": {
|
|
4184
|
+
opacity: 0,
|
|
4185
|
+
transform: "scale(1.35)"
|
|
4186
|
+
}
|
|
4187
|
+
},
|
|
4188
|
+
"&::after": {
|
|
4189
|
+
content: "\"\"",
|
|
4190
|
+
position: "absolute",
|
|
4191
|
+
inset: "-2px",
|
|
4192
|
+
borderRadius: "inherit",
|
|
4193
|
+
border: "2px solid",
|
|
4194
|
+
borderColor: A.primary,
|
|
4195
|
+
pointerEvents: "none",
|
|
4196
|
+
animation: "opportunityIconRing 1.6s ease-out infinite"
|
|
4197
|
+
}
|
|
4198
|
+
},
|
|
4160
4199
|
sxOpportunityHeaderTitle: {
|
|
4161
4200
|
display: "block",
|
|
4162
4201
|
mt: .25,
|
|
@@ -4165,14 +4204,24 @@ var Y = {
|
|
|
4165
4204
|
lineHeight: 1.3
|
|
4166
4205
|
},
|
|
4167
4206
|
sxOpportunityTopic: (e, t = !1) => ({
|
|
4207
|
+
position: "relative",
|
|
4208
|
+
overflow: "hidden",
|
|
4168
4209
|
display: "block",
|
|
4169
4210
|
bgcolor: Se.topicBg,
|
|
4170
|
-
borderLeft: "4px solid",
|
|
4171
|
-
borderLeftColor: e ? Se.accent : Se.topicBorder,
|
|
4172
4211
|
borderRadius: 2.5,
|
|
4173
4212
|
p: 1,
|
|
4213
|
+
pl: 1.5,
|
|
4174
4214
|
color: "inherit",
|
|
4175
4215
|
textDecoration: "none",
|
|
4216
|
+
"&::before": {
|
|
4217
|
+
content: "\"\"",
|
|
4218
|
+
position: "absolute",
|
|
4219
|
+
left: 0,
|
|
4220
|
+
top: 0,
|
|
4221
|
+
bottom: 0,
|
|
4222
|
+
width: "4px",
|
|
4223
|
+
...e ? { backgroundImage: `linear-gradient(180deg, ${A.primary}, ${A.kundera})` } : { backgroundColor: "m3.outlineVariant" }
|
|
4224
|
+
},
|
|
4176
4225
|
...t ? {
|
|
4177
4226
|
cursor: "pointer",
|
|
4178
4227
|
transition: "filter .12s",
|
|
@@ -4187,13 +4236,15 @@ var Y = {
|
|
|
4187
4236
|
fontWeight: 700,
|
|
4188
4237
|
letterSpacing: "0.04em",
|
|
4189
4238
|
textTransform: "uppercase",
|
|
4190
|
-
color: e ?
|
|
4239
|
+
color: e ? A.primary : "m3.onSurface"
|
|
4191
4240
|
}),
|
|
4192
4241
|
sxOpportunityMetaDot: { color: "m3.onSurfaceVariant" },
|
|
4193
4242
|
sxOpportunityTrending: {
|
|
4194
4243
|
display: "inline-flex",
|
|
4195
4244
|
alignItems: "center",
|
|
4196
4245
|
gap: .25,
|
|
4246
|
+
fontSize: 11,
|
|
4247
|
+
fontWeight: 700,
|
|
4197
4248
|
color: Se.trending
|
|
4198
4249
|
},
|
|
4199
4250
|
sxOpportunityTrendingIcon: { fontSize: 16 },
|
|
@@ -4208,7 +4259,8 @@ var Y = {
|
|
|
4208
4259
|
},
|
|
4209
4260
|
sxOpportunityCode: {
|
|
4210
4261
|
mt: .5,
|
|
4211
|
-
fontSize:
|
|
4262
|
+
fontSize: 11,
|
|
4263
|
+
fontWeight: 500,
|
|
4212
4264
|
color: "m3.onSurfaceVariant"
|
|
4213
4265
|
},
|
|
4214
4266
|
sxOpportunityToggle: {
|
|
@@ -4233,17 +4285,24 @@ var Y = {
|
|
|
4233
4285
|
display: "flex",
|
|
4234
4286
|
alignItems: "center",
|
|
4235
4287
|
justifyContent: "space-between",
|
|
4236
|
-
px:
|
|
4288
|
+
px: 0
|
|
4237
4289
|
},
|
|
4238
4290
|
sxOpportunityRemind: {
|
|
4239
4291
|
bgcolor: "transparent",
|
|
4240
4292
|
border: 0,
|
|
4241
|
-
|
|
4293
|
+
py: "10px",
|
|
4294
|
+
px: "15px",
|
|
4295
|
+
borderRadius: k.pill,
|
|
4242
4296
|
cursor: "pointer",
|
|
4243
4297
|
color: "m3.onSurfaceVariant",
|
|
4244
4298
|
fontSize: 14,
|
|
4299
|
+
fontWeight: 500,
|
|
4245
4300
|
fontFamily: O.googleSans,
|
|
4246
|
-
|
|
4301
|
+
transition: "background-color .12s, color .12s",
|
|
4302
|
+
"&:hover": {
|
|
4303
|
+
bgcolor: (e) => N(e.palette.text.primary, .08),
|
|
4304
|
+
color: "m3.onSurface"
|
|
4305
|
+
}
|
|
4247
4306
|
},
|
|
4248
4307
|
sxOpportunitySeeMore: {
|
|
4249
4308
|
display: "inline-flex",
|
|
@@ -4251,13 +4310,21 @@ var Y = {
|
|
|
4251
4310
|
gap: .5,
|
|
4252
4311
|
bgcolor: "transparent",
|
|
4253
4312
|
border: 0,
|
|
4254
|
-
|
|
4313
|
+
py: "10px",
|
|
4314
|
+
px: "15px",
|
|
4315
|
+
borderRadius: k.pill,
|
|
4255
4316
|
cursor: "pointer",
|
|
4256
|
-
color:
|
|
4317
|
+
color: A.primary,
|
|
4257
4318
|
fontSize: 14,
|
|
4258
|
-
fontWeight:
|
|
4319
|
+
fontWeight: 600,
|
|
4259
4320
|
fontFamily: O.googleSans,
|
|
4260
|
-
|
|
4321
|
+
textDecoration: "none",
|
|
4322
|
+
transition: "background-color .12s, color .12s",
|
|
4323
|
+
"&:hover, &:focus": {
|
|
4324
|
+
bgcolor: A.secondary,
|
|
4325
|
+
color: A.primary,
|
|
4326
|
+
textDecoration: "none"
|
|
4327
|
+
}
|
|
4261
4328
|
},
|
|
4262
4329
|
sxOpportunitySeeMoreIcon: { fontSize: 18 }
|
|
4263
4330
|
}, Wi = {
|
|
@@ -4389,7 +4456,7 @@ function Ki({ item: e, open: t, onToggle: n, onRemindLater: r, onSeeMore: i, see
|
|
|
4389
4456
|
sx: Y.sxOpportunityHeader,
|
|
4390
4457
|
children: [
|
|
4391
4458
|
/* @__PURE__ */ R(z, {
|
|
4392
|
-
sx: Y.
|
|
4459
|
+
sx: Y.sxOpportunityAvatar,
|
|
4393
4460
|
children: [/* @__PURE__ */ L(hn, {}), e.unread ? /* @__PURE__ */ L(z, {
|
|
4394
4461
|
component: "span",
|
|
4395
4462
|
sx: Y.sxUnreadDot
|
|
@@ -4423,18 +4490,20 @@ function Ki({ item: e, open: t, onToggle: n, onRemindLater: r, onSeeMore: i, see
|
|
|
4423
4490
|
component: a ? "a" : "div",
|
|
4424
4491
|
...f,
|
|
4425
4492
|
"data-testid": `link-opportunity-${D(c.id || c.code || "top")}`,
|
|
4426
|
-
sx: Y.sxOpportunityTopic(
|
|
4493
|
+
sx: Y.sxOpportunityTopic(!!c.unread, !!a),
|
|
4427
4494
|
children: [
|
|
4428
4495
|
/* @__PURE__ */ R(H, {
|
|
4429
4496
|
component: "div",
|
|
4430
4497
|
variant: "caption",
|
|
4431
|
-
sx: Y.sxOpportunityMeta(
|
|
4432
|
-
children: [/* @__PURE__ */
|
|
4433
|
-
|
|
4434
|
-
|
|
4498
|
+
sx: Y.sxOpportunityMeta(!!c.unread),
|
|
4499
|
+
children: [/* @__PURE__ */ R(z, {
|
|
4500
|
+
component: "span",
|
|
4501
|
+
sx: Y.sxOpportunityTrending,
|
|
4502
|
+
children: [/* @__PURE__ */ L(xn, { sx: Y.sxOpportunityTrendingIcon }), o.notificationsMenu("editorialOpportunityTop")]
|
|
4503
|
+
}), /* @__PURE__ */ R("span", { children: [
|
|
4504
|
+
"· ",
|
|
4435
4505
|
c.matchPercent,
|
|
4436
|
-
"%",
|
|
4437
|
-
" ",
|
|
4506
|
+
"% ",
|
|
4438
4507
|
o.notificationsMenu("editorialOpportunityMatch")
|
|
4439
4508
|
] })]
|
|
4440
4509
|
}),
|
|
@@ -4461,12 +4530,12 @@ function Ki({ item: e, open: t, onToggle: n, onRemindLater: r, onSeeMore: i, see
|
|
|
4461
4530
|
component: a ? "a" : "div",
|
|
4462
4531
|
...f,
|
|
4463
4532
|
"data-testid": `link-opportunity-${D(t.id || t.code || String(n + 1))}`,
|
|
4464
|
-
sx: Y.sxOpportunityTopic(
|
|
4533
|
+
sx: Y.sxOpportunityTopic(!!t.unread, !!a),
|
|
4465
4534
|
children: [
|
|
4466
4535
|
/* @__PURE__ */ L(H, {
|
|
4467
4536
|
component: "div",
|
|
4468
4537
|
variant: "caption",
|
|
4469
|
-
sx: Y.sxOpportunityMeta(
|
|
4538
|
+
sx: Y.sxOpportunityMeta(!!t.unread),
|
|
4470
4539
|
children: /* @__PURE__ */ R("span", { children: [
|
|
4471
4540
|
t.matchPercent,
|
|
4472
4541
|
"% ",
|
|
@@ -4946,16 +5015,16 @@ function aa(e) {
|
|
|
4946
5015
|
//#endregion
|
|
4947
5016
|
//#region src/lib/components/user-avatar/UserAvatar.styles.ts
|
|
4948
5017
|
var oa = .58, sa = {
|
|
4949
|
-
sxAvatar: (e, t, n) => ({
|
|
5018
|
+
sxAvatar: (e, t, n, r = !1) => ({
|
|
4950
5019
|
width: e,
|
|
4951
5020
|
height: e,
|
|
4952
|
-
bgcolor: n ? A.avatarInactiveBg : A.secondary,
|
|
4953
|
-
color: n ? A.avatarInactiveIcon : A.onSecondaryContainer,
|
|
5021
|
+
bgcolor: n ? A.avatarInactiveBg : r ? "m3.surfaceVariant" : A.secondary,
|
|
5022
|
+
color: n ? A.avatarInactiveIcon : r ? "m3.onSurfaceVariant" : A.onSecondaryContainer,
|
|
4954
5023
|
cursor: t ? "pointer" : "default"
|
|
4955
5024
|
}),
|
|
4956
|
-
sxIcon: (e, t) => ({
|
|
5025
|
+
sxIcon: (e, t, n = !1) => ({
|
|
4957
5026
|
fontSize: Math.round(e * oa),
|
|
4958
|
-
color: t ? A.avatarInactiveIcon : A.onSecondaryContainer
|
|
5027
|
+
color: t ? A.avatarInactiveIcon : n ? "m3.onSurfaceVariant" : A.onSecondaryContainer
|
|
4959
5028
|
}),
|
|
4960
5029
|
sxTooltip: {
|
|
4961
5030
|
bgcolor: A.tooltipSurface,
|
|
@@ -4983,31 +5052,31 @@ function ua() {
|
|
|
4983
5052
|
//#endregion
|
|
4984
5053
|
//#region src/lib/components/user-avatar/UserAvatar.tsx
|
|
4985
5054
|
var da = "noPicture";
|
|
4986
|
-
function fa({ photo: e, description: t, username: n, size: r = 32, showTooltip: i = !0, inactive: a = !1,
|
|
4987
|
-
let { t:
|
|
4988
|
-
src:
|
|
4989
|
-
alt:
|
|
4990
|
-
onClick:
|
|
4991
|
-
"data-testid":
|
|
4992
|
-
slotProps:
|
|
4993
|
-
sx: sa.sxAvatar(r, !!
|
|
4994
|
-
children: /* @__PURE__ */ L(An, { sx: sa.sxIcon(r, a) })
|
|
5055
|
+
function fa({ photo: e, description: t, username: n, size: r = 32, showTooltip: i = !0, inactive: a = !1, neutralFallback: o = !1, cmsOrigin: s, crossOrigin: c, isCurrentUser: l = !1, onClick: u, testId: d }) {
|
|
5056
|
+
let { t: f } = W(), p = ua(), m = l && p ? p.photo : e, h = P(() => !m || m === da ? "" : ta(m, s), [m, s]), g = t?.trim() || n?.trim() || "", _ = g || f.userAvatar("unknownUser"), v = g || f.userAvatar("alt"), y = /* @__PURE__ */ L(jn, {
|
|
5057
|
+
src: h || void 0,
|
|
5058
|
+
alt: v,
|
|
5059
|
+
onClick: u,
|
|
5060
|
+
"data-testid": d ? `avatar-${d}` : void 0,
|
|
5061
|
+
slotProps: c ? { img: { crossOrigin: c } } : void 0,
|
|
5062
|
+
sx: sa.sxAvatar(r, !!u, a, o),
|
|
5063
|
+
children: /* @__PURE__ */ L(An, { sx: sa.sxIcon(r, a, o) })
|
|
4995
5064
|
});
|
|
4996
5065
|
return i ? /* @__PURE__ */ L(at, {
|
|
4997
|
-
title:
|
|
5066
|
+
title: _,
|
|
4998
5067
|
arrow: !0,
|
|
4999
5068
|
slotProps: { tooltip: { sx: sa.sxTooltip } },
|
|
5000
|
-
children:
|
|
5001
|
-
}) :
|
|
5069
|
+
children: y
|
|
5070
|
+
}) : y;
|
|
5002
5071
|
}
|
|
5003
5072
|
//#endregion
|
|
5004
5073
|
//#region src/lib/components/top-bar/ProfileMenu.tsx
|
|
5005
|
-
var pa = "/admin/user_profile/user-settings", ma = "/system/login";
|
|
5006
|
-
function
|
|
5074
|
+
var pa = "/admin/user_profile/user-settings", ma = "/system/login", ha = "ACCESS_WEBMASTERS";
|
|
5075
|
+
function ga(e, t) {
|
|
5007
5076
|
return e ? `${e.replace(/\/$/, "")}${t}` : t;
|
|
5008
5077
|
}
|
|
5009
|
-
function
|
|
5010
|
-
let s = a ? A.danger :
|
|
5078
|
+
function _a({ label: e, icon: t, onSelect: n, href: r, external: i, danger: a, testId: o }) {
|
|
5079
|
+
let s = a ? A.danger : "text.primary";
|
|
5011
5080
|
return /* @__PURE__ */ R(vt, {
|
|
5012
5081
|
onClick: n,
|
|
5013
5082
|
"data-testid": o,
|
|
@@ -5022,60 +5091,78 @@ function ga({ label: e, icon: t, onSelect: n, href: r, external: i, danger: a, t
|
|
|
5022
5091
|
} : {},
|
|
5023
5092
|
children: [/* @__PURE__ */ L(ht, {
|
|
5024
5093
|
sx: J.sxProfileMenuListItemIcon,
|
|
5025
|
-
children: /* @__PURE__ */ L(t, { sx:
|
|
5094
|
+
children: /* @__PURE__ */ L(t, { sx: { color: s } })
|
|
5026
5095
|
}), /* @__PURE__ */ L(gt, {
|
|
5027
5096
|
primary: e,
|
|
5028
5097
|
slotProps: { primary: { sx: {
|
|
5029
5098
|
fontSize: 14,
|
|
5030
|
-
fontWeight:
|
|
5099
|
+
fontWeight: 500,
|
|
5031
5100
|
color: s
|
|
5032
5101
|
} } }
|
|
5033
5102
|
})]
|
|
5034
5103
|
});
|
|
5035
5104
|
}
|
|
5036
|
-
function
|
|
5037
|
-
let { t:
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5105
|
+
function va({ profile: e, avatarOptions: t, legacyBaseUrl: n, cmsBaseUrl: r, legacySession: i, operationPermissions: a, isAdmin: o }) {
|
|
5106
|
+
let { t: s } = W(), [c, l] = F(null), u = !!c, d = aa(e), f = a === void 0 || !!o || a.includes(ha), p = P(() => {
|
|
5107
|
+
let e = [{
|
|
5108
|
+
id: "profile",
|
|
5109
|
+
labelKey: "myProfile",
|
|
5110
|
+
icon: An,
|
|
5111
|
+
href: ga(n, pa)
|
|
5112
|
+
}];
|
|
5113
|
+
if (f) {
|
|
5114
|
+
let t = !!(r && i);
|
|
5115
|
+
e.push({
|
|
5116
|
+
id: "webmaster",
|
|
5117
|
+
labelKey: "webmasterView",
|
|
5118
|
+
icon: On,
|
|
5119
|
+
external: !0,
|
|
5120
|
+
onActivate: t ? () => vi({
|
|
5121
|
+
cmsBaseUrl: r,
|
|
5122
|
+
path: ma,
|
|
5123
|
+
session: i
|
|
5124
|
+
}) : void 0,
|
|
5125
|
+
href: t ? void 0 : ga(r ?? n, ma)
|
|
5126
|
+
});
|
|
5127
|
+
}
|
|
5128
|
+
return e;
|
|
5129
|
+
}, [
|
|
5130
|
+
n,
|
|
5131
|
+
r,
|
|
5132
|
+
i,
|
|
5133
|
+
f
|
|
5134
|
+
]), m = P(() => ({
|
|
5049
5135
|
id: "sign-off",
|
|
5050
5136
|
labelKey: "signOff",
|
|
5051
5137
|
icon: kn
|
|
5052
|
-
}), []),
|
|
5053
|
-
|
|
5138
|
+
}), []), h = () => l(null), g = (e) => {
|
|
5139
|
+
e.onActivate?.(), h();
|
|
5054
5140
|
};
|
|
5055
5141
|
return /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(B, {
|
|
5056
5142
|
id: "profile-menu-button",
|
|
5057
|
-
"aria-label":
|
|
5058
|
-
"aria-controls":
|
|
5143
|
+
"aria-label": s.profileMenu("ariaLabel"),
|
|
5144
|
+
"aria-controls": u ? "profile-menu" : void 0,
|
|
5059
5145
|
"aria-haspopup": "true",
|
|
5060
|
-
"aria-expanded":
|
|
5061
|
-
onClick: (e) =>
|
|
5146
|
+
"aria-expanded": u ? "true" : void 0,
|
|
5147
|
+
onClick: (e) => l(e.currentTarget),
|
|
5062
5148
|
"data-testid": "dropdown-toggle-profile",
|
|
5063
5149
|
sx: J.sxProfileButton,
|
|
5064
5150
|
children: /* @__PURE__ */ L(fa, {
|
|
5065
5151
|
photo: e.image,
|
|
5066
|
-
description:
|
|
5152
|
+
description: d,
|
|
5067
5153
|
username: e.userName,
|
|
5068
5154
|
size: 34,
|
|
5069
5155
|
showTooltip: !1,
|
|
5070
5156
|
isCurrentUser: !0,
|
|
5157
|
+
neutralFallback: !0,
|
|
5071
5158
|
cmsOrigin: t?.cmsOrigin,
|
|
5072
5159
|
crossOrigin: "anonymous"
|
|
5073
5160
|
})
|
|
5074
5161
|
}), /* @__PURE__ */ R(_t, {
|
|
5075
5162
|
id: "profile-menu",
|
|
5076
|
-
anchorEl:
|
|
5077
|
-
open:
|
|
5078
|
-
onClose:
|
|
5163
|
+
anchorEl: c,
|
|
5164
|
+
open: u,
|
|
5165
|
+
onClose: h,
|
|
5079
5166
|
anchorOrigin: {
|
|
5080
5167
|
vertical: "bottom",
|
|
5081
5168
|
horizontal: "right"
|
|
@@ -5100,15 +5187,17 @@ function _a({ profile: e, avatarOptions: t, legacyBaseUrl: n }) {
|
|
|
5100
5187
|
px: 2,
|
|
5101
5188
|
py: 1.5,
|
|
5102
5189
|
borderBottom: 1,
|
|
5103
|
-
borderColor: "divider"
|
|
5190
|
+
borderColor: "divider",
|
|
5191
|
+
mb: .5
|
|
5104
5192
|
},
|
|
5105
5193
|
children: [/* @__PURE__ */ L(fa, {
|
|
5106
5194
|
photo: e.image,
|
|
5107
|
-
description:
|
|
5195
|
+
description: d,
|
|
5108
5196
|
username: e.userName,
|
|
5109
5197
|
size: 40,
|
|
5110
5198
|
showTooltip: !1,
|
|
5111
5199
|
isCurrentUser: !0,
|
|
5200
|
+
neutralFallback: !0,
|
|
5112
5201
|
cmsOrigin: t?.cmsOrigin,
|
|
5113
5202
|
crossOrigin: "anonymous"
|
|
5114
5203
|
}), /* @__PURE__ */ R(z, {
|
|
@@ -5116,31 +5205,36 @@ function _a({ profile: e, avatarOptions: t, legacyBaseUrl: n }) {
|
|
|
5116
5205
|
children: [/* @__PURE__ */ L(H, {
|
|
5117
5206
|
variant: "subtitle2",
|
|
5118
5207
|
sx: {
|
|
5119
|
-
|
|
5120
|
-
|
|
5208
|
+
fontSize: 14,
|
|
5209
|
+
fontWeight: 500,
|
|
5210
|
+
color: "text.primary"
|
|
5121
5211
|
},
|
|
5122
|
-
children:
|
|
5212
|
+
children: d
|
|
5123
5213
|
}), /* @__PURE__ */ L(H, {
|
|
5124
5214
|
variant: "caption",
|
|
5125
|
-
sx: {
|
|
5215
|
+
sx: {
|
|
5216
|
+
fontSize: 12,
|
|
5217
|
+
fontWeight: 400,
|
|
5218
|
+
color: "text.secondary"
|
|
5219
|
+
},
|
|
5126
5220
|
children: e.email
|
|
5127
5221
|
})]
|
|
5128
5222
|
})]
|
|
5129
5223
|
}),
|
|
5130
|
-
|
|
5131
|
-
label:
|
|
5224
|
+
p.map((e) => /* @__PURE__ */ L(_a, {
|
|
5225
|
+
label: s.profileMenu(e.labelKey),
|
|
5132
5226
|
icon: e.icon,
|
|
5133
5227
|
href: e.href,
|
|
5134
5228
|
external: e.external,
|
|
5135
5229
|
testId: `dropdown-item-${D(e.id)}`,
|
|
5136
|
-
onSelect: () =>
|
|
5230
|
+
onSelect: () => g(e)
|
|
5137
5231
|
}, e.id)),
|
|
5138
5232
|
/* @__PURE__ */ L(sn, { sx: J.sxProfileMenuDivider }),
|
|
5139
|
-
/* @__PURE__ */ L(
|
|
5140
|
-
label:
|
|
5141
|
-
icon:
|
|
5233
|
+
/* @__PURE__ */ L(_a, {
|
|
5234
|
+
label: s.profileMenu(m.labelKey),
|
|
5235
|
+
icon: m.icon,
|
|
5142
5236
|
testId: "dropdown-item-sign-off",
|
|
5143
|
-
onSelect: () =>
|
|
5237
|
+
onSelect: () => g(m),
|
|
5144
5238
|
danger: !0
|
|
5145
5239
|
})
|
|
5146
5240
|
]
|
|
@@ -5148,11 +5242,11 @@ function _a({ profile: e, avatarOptions: t, legacyBaseUrl: n }) {
|
|
|
5148
5242
|
}
|
|
5149
5243
|
//#endregion
|
|
5150
5244
|
//#region src/lib/components/top-bar/TopBarClock.tsx
|
|
5151
|
-
function
|
|
5245
|
+
function ya(e) {
|
|
5152
5246
|
let t = (e ?? "").trim();
|
|
5153
5247
|
return t ? `GMT${/^[+-]/.test(t) ? t : `+${t}`}` : "GMT";
|
|
5154
5248
|
}
|
|
5155
|
-
function
|
|
5249
|
+
function ba({ gmtRedaction: e, timeFormat: t }) {
|
|
5156
5250
|
let { locale: n, t: r } = W(), [i, a] = F(null);
|
|
5157
5251
|
if (nt(() => {
|
|
5158
5252
|
a(Date.now());
|
|
@@ -5175,17 +5269,17 @@ function ya({ gmtRedaction: e, timeFormat: t }) {
|
|
|
5175
5269
|
}), /* @__PURE__ */ L(H, {
|
|
5176
5270
|
component: "span",
|
|
5177
5271
|
sx: J.sxClockMeta,
|
|
5178
|
-
children: `${r.topBar("publication")} · ${
|
|
5272
|
+
children: `${r.topBar("publication")} · ${ya(e)}`
|
|
5179
5273
|
})]
|
|
5180
5274
|
})]
|
|
5181
5275
|
});
|
|
5182
5276
|
}
|
|
5183
5277
|
//#endregion
|
|
5184
5278
|
//#region src/lib/components/top-bar/TopBar.tsx
|
|
5185
|
-
function
|
|
5279
|
+
function xa(e, t) {
|
|
5186
5280
|
return e ? `${e.replace(/\/$/, "")}${t}` : t;
|
|
5187
5281
|
}
|
|
5188
|
-
function
|
|
5282
|
+
function Sa() {
|
|
5189
5283
|
return /* @__PURE__ */ L(z, {
|
|
5190
5284
|
component: "span",
|
|
5191
5285
|
role: "separator",
|
|
@@ -5193,7 +5287,7 @@ function xa() {
|
|
|
5193
5287
|
sx: J.sxDivider
|
|
5194
5288
|
});
|
|
5195
5289
|
}
|
|
5196
|
-
function
|
|
5290
|
+
function Ca({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCount: r, notificationsData: i, copilotSuggestionsHref: a, onEditorialSeeMore: o, onEditorialRemindLater: s, profile: c, primaryLogo: l, brandLogo: u, selectedPublicationId: d, getPublicationHref: p, resolvePublicationImageUrl: m, profileAvatarOptions: h, legacyBaseUrl: g, cmsBaseUrl: _, legacySession: v, newContentGroups: y, previewFormats: b, operationPermissions: x, isAdmin: S, onNewContentSelect: C, onPreviewSelect: w }) {
|
|
5197
5291
|
let { t: T, locale: ee } = W(), E = d ? f(e, d) : void 0, te = T.topBar("help"), D = _ ?? g, ne = `/system/modules/com.tfsla.diario.help/${ee}/index.html`;
|
|
5198
5292
|
return /* @__PURE__ */ L(Qt, {
|
|
5199
5293
|
position: "static",
|
|
@@ -5259,7 +5353,7 @@ function Sa({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5259
5353
|
});
|
|
5260
5354
|
return;
|
|
5261
5355
|
}
|
|
5262
|
-
typeof window < "u" && window.open(
|
|
5356
|
+
typeof window < "u" && window.open(xa(D, ne), "_blank", "noopener");
|
|
5263
5357
|
},
|
|
5264
5358
|
"aria-label": te,
|
|
5265
5359
|
sx: J.sxActionIcon,
|
|
@@ -5269,7 +5363,7 @@ function Sa({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5269
5363
|
})
|
|
5270
5364
|
]
|
|
5271
5365
|
}),
|
|
5272
|
-
/* @__PURE__ */ L(
|
|
5366
|
+
/* @__PURE__ */ L(Sa, {}),
|
|
5273
5367
|
u,
|
|
5274
5368
|
/* @__PURE__ */ L(xi, {
|
|
5275
5369
|
sites: e,
|
|
@@ -5277,16 +5371,20 @@ function Sa({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5277
5371
|
getPublicationHref: p,
|
|
5278
5372
|
resolvePublicationImageUrl: m
|
|
5279
5373
|
}),
|
|
5280
|
-
/* @__PURE__ */ L(
|
|
5281
|
-
/* @__PURE__ */ L(
|
|
5374
|
+
/* @__PURE__ */ L(Sa, {}),
|
|
5375
|
+
/* @__PURE__ */ L(ba, {
|
|
5282
5376
|
gmtRedaction: E?.gmtRedaction,
|
|
5283
5377
|
timeFormat: E?.timeFormat
|
|
5284
5378
|
}),
|
|
5285
|
-
/* @__PURE__ */ L(
|
|
5286
|
-
/* @__PURE__ */ L(
|
|
5379
|
+
/* @__PURE__ */ L(Sa, {}),
|
|
5380
|
+
/* @__PURE__ */ L(va, {
|
|
5287
5381
|
profile: c,
|
|
5288
5382
|
avatarOptions: h,
|
|
5289
|
-
legacyBaseUrl: g
|
|
5383
|
+
legacyBaseUrl: g,
|
|
5384
|
+
cmsBaseUrl: _,
|
|
5385
|
+
legacySession: v,
|
|
5386
|
+
operationPermissions: x,
|
|
5387
|
+
isAdmin: S
|
|
5290
5388
|
})
|
|
5291
5389
|
]
|
|
5292
5390
|
})
|
|
@@ -5296,7 +5394,7 @@ function Sa({ sites: e, sidebarOpen: t, onToggleSidebar: n, notificationUnreadCo
|
|
|
5296
5394
|
}
|
|
5297
5395
|
//#endregion
|
|
5298
5396
|
//#region src/lib/components/shell/AppShell.styles.ts
|
|
5299
|
-
var
|
|
5397
|
+
var wa = {
|
|
5300
5398
|
sxRoot: {
|
|
5301
5399
|
display: "flex",
|
|
5302
5400
|
flexDirection: "column",
|
|
@@ -5329,18 +5427,18 @@ var Ca = {
|
|
|
5329
5427
|
};
|
|
5330
5428
|
//#endregion
|
|
5331
5429
|
//#region src/lib/components/shell/AppShell.tsx
|
|
5332
|
-
function
|
|
5430
|
+
function Ta({ pathname: e, sites: t, children: n, notificationUnreadCount: r, notificationsData: i, copilotSuggestionsHref: a, onEditorialSeeMore: o, onEditorialRemindLater: s, profile: c, primaryLogo: l, brandLogo: u, selectedPublicationId: d, getPublicationHref: f, resolvePublicationImageUrl: p, profileAvatarOptions: m, legacyBaseUrl: h, cmsBaseUrl: g, legacySession: _, newContentGroups: v, previewFormats: y, operationPermissions: b, isAdmin: x, onNewContentSelect: S, onPreviewSelect: C, LinkComponent: w = $r, permissions: T, locale: ee, language: E, messages: te, appMessages: D, baseUrl: ne, profileServices: O }) {
|
|
5333
5431
|
return /* @__PURE__ */ L(Ar, {
|
|
5334
5432
|
locale: ee,
|
|
5335
5433
|
language: E,
|
|
5336
5434
|
messages: te,
|
|
5337
5435
|
appMessages: D,
|
|
5338
5436
|
children: /* @__PURE__ */ R(z, {
|
|
5339
|
-
sx:
|
|
5437
|
+
sx: wa.sxRoot,
|
|
5340
5438
|
children: [/* @__PURE__ */ L(z, {
|
|
5341
5439
|
component: "header",
|
|
5342
|
-
sx:
|
|
5343
|
-
children: /* @__PURE__ */ L(
|
|
5440
|
+
sx: wa.sxHeader,
|
|
5441
|
+
children: /* @__PURE__ */ L(Ca, {
|
|
5344
5442
|
sites: t,
|
|
5345
5443
|
notificationUnreadCount: r,
|
|
5346
5444
|
notificationsData: i,
|
|
@@ -5365,7 +5463,7 @@ function wa({ pathname: e, sites: t, children: n, notificationUnreadCount: r, no
|
|
|
5365
5463
|
onPreviewSelect: C
|
|
5366
5464
|
})
|
|
5367
5465
|
}), /* @__PURE__ */ R(z, {
|
|
5368
|
-
sx:
|
|
5466
|
+
sx: wa.sxBody,
|
|
5369
5467
|
children: [/* @__PURE__ */ L(mi, {
|
|
5370
5468
|
pathname: e,
|
|
5371
5469
|
LinkComponent: w,
|
|
@@ -5375,7 +5473,7 @@ function wa({ pathname: e, sites: t, children: n, notificationUnreadCount: r, no
|
|
|
5375
5473
|
profileServices: O
|
|
5376
5474
|
}), /* @__PURE__ */ L(z, {
|
|
5377
5475
|
component: "main",
|
|
5378
|
-
sx:
|
|
5476
|
+
sx: wa.sxMain,
|
|
5379
5477
|
children: n
|
|
5380
5478
|
})]
|
|
5381
5479
|
})]
|
|
@@ -5384,7 +5482,7 @@ function wa({ pathname: e, sites: t, children: n, notificationUnreadCount: r, no
|
|
|
5384
5482
|
}
|
|
5385
5483
|
//#endregion
|
|
5386
5484
|
//#region src/lib/components/sidebar/Sidebar.styles.ts
|
|
5387
|
-
var
|
|
5485
|
+
var Ea = A.secondary, Da = A.surfaceHover, Oa = A.textNav, ka = 24, Aa = 24, Z = {
|
|
5388
5486
|
sxRoot: (e) => {
|
|
5389
5487
|
let t = e ? 195 : 96;
|
|
5390
5488
|
return {
|
|
@@ -5459,10 +5557,10 @@ var Ta = A.secondary, Ea = A.surfaceHover, Da = A.textNav, Oa = 24, ka = 24, Z =
|
|
|
5459
5557
|
px: 0,
|
|
5460
5558
|
py: 0,
|
|
5461
5559
|
borderRadius: "100px",
|
|
5462
|
-
color:
|
|
5560
|
+
color: Oa,
|
|
5463
5561
|
textDecoration: "none",
|
|
5464
|
-
bgcolor: e ?
|
|
5465
|
-
"&:hover": { bgcolor: e ?
|
|
5562
|
+
bgcolor: e ? Ea : "transparent",
|
|
5563
|
+
"&:hover": { bgcolor: e ? Ea : "action.hover" }
|
|
5466
5564
|
} : {
|
|
5467
5565
|
position: "relative",
|
|
5468
5566
|
display: "flex",
|
|
@@ -5480,13 +5578,13 @@ var Ta = A.secondary, Ea = A.surfaceHover, Da = A.textNav, Oa = 24, ka = 24, Z =
|
|
|
5480
5578
|
ml: "-1rem",
|
|
5481
5579
|
mr: 0,
|
|
5482
5580
|
borderRadius: t ? "100px" : "0 100px 100px 0",
|
|
5483
|
-
color:
|
|
5581
|
+
color: Oa,
|
|
5484
5582
|
textDecoration: "none",
|
|
5485
|
-
bgcolor: e ?
|
|
5486
|
-
"&:hover": { bgcolor: e ?
|
|
5583
|
+
bgcolor: e ? Ea : "transparent",
|
|
5584
|
+
"&:hover": { bgcolor: e ? Ea : Da }
|
|
5487
5585
|
},
|
|
5488
5586
|
sxItemIcon: (e, t = !1) => ({
|
|
5489
|
-
fontSize: t ?
|
|
5587
|
+
fontSize: t ? Aa : ka,
|
|
5490
5588
|
color: e ? "secondary.dark" : "m3.onSurfaceVariant",
|
|
5491
5589
|
width: t ? 48 : "auto",
|
|
5492
5590
|
flexShrink: 0
|
|
@@ -5497,7 +5595,7 @@ var Ta = A.secondary, Ea = A.surfaceHover, Da = A.textNav, Oa = 24, ka = 24, Z =
|
|
|
5497
5595
|
fontSize: 14,
|
|
5498
5596
|
fontWeight: e ? 600 : 400,
|
|
5499
5597
|
lineHeight: 1.43,
|
|
5500
|
-
color:
|
|
5598
|
+
color: Oa,
|
|
5501
5599
|
overflow: "hidden",
|
|
5502
5600
|
textOverflow: "ellipsis",
|
|
5503
5601
|
whiteSpace: "nowrap"
|
|
@@ -5527,12 +5625,12 @@ var Ta = A.secondary, Ea = A.surfaceHover, Da = A.textNav, Oa = 24, ka = 24, Z =
|
|
|
5527
5625
|
px: 2,
|
|
5528
5626
|
py: 1,
|
|
5529
5627
|
gap: 1.25,
|
|
5530
|
-
color:
|
|
5531
|
-
bgcolor: e ?
|
|
5532
|
-
"&:hover": { bgcolor: e ?
|
|
5628
|
+
color: Oa,
|
|
5629
|
+
bgcolor: e ? Ea : "transparent",
|
|
5630
|
+
"&:hover": { bgcolor: e ? Ea : A.neutralHover },
|
|
5533
5631
|
"&.Mui-selected": {
|
|
5534
|
-
bgcolor:
|
|
5535
|
-
"&:hover": { bgcolor:
|
|
5632
|
+
bgcolor: Ea,
|
|
5633
|
+
"&:hover": { bgcolor: Ea }
|
|
5536
5634
|
}
|
|
5537
5635
|
}),
|
|
5538
5636
|
sxChildrenMenuListItemIcon: {
|
|
@@ -5559,7 +5657,7 @@ var Ta = A.secondary, Ea = A.surfaceHover, Da = A.textNav, Oa = 24, ka = 24, Z =
|
|
|
5559
5657
|
};
|
|
5560
5658
|
//#endregion
|
|
5561
5659
|
//#region src/lib/components/sidebar/Sidebar.tsx
|
|
5562
|
-
function
|
|
5660
|
+
function ja(e, t, n) {
|
|
5563
5661
|
return e ? n : /* @__PURE__ */ L(at, {
|
|
5564
5662
|
title: t,
|
|
5565
5663
|
placement: "right",
|
|
@@ -5571,7 +5669,7 @@ function Aa(e, t, n) {
|
|
|
5571
5669
|
})
|
|
5572
5670
|
});
|
|
5573
5671
|
}
|
|
5574
|
-
function
|
|
5672
|
+
function Ma({ 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 }) {
|
|
5575
5673
|
let f = `block-${t}`, p = ei(e, l), m = ii(c, e.module), h = ai(e, c), g = !r, _ = ti(s, e.href), v = ni(s, e), y = h.length > 0, b = e.icon, x = n ? _ : _ || v, [S, C] = F(null), w = !!S;
|
|
5576
5674
|
if (!m && !y) return null;
|
|
5577
5675
|
let T = /* @__PURE__ */ R(I, { children: [
|
|
@@ -5623,7 +5721,7 @@ function ja({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i,
|
|
|
5623
5721
|
maxWidth: "100%",
|
|
5624
5722
|
overflow: "hidden"
|
|
5625
5723
|
},
|
|
5626
|
-
children: h.map((e) => /* @__PURE__ */ L(
|
|
5724
|
+
children: h.map((e) => /* @__PURE__ */ L(Ma, {
|
|
5627
5725
|
item: e,
|
|
5628
5726
|
blockIndex: t,
|
|
5629
5727
|
nested: !0,
|
|
@@ -5695,7 +5793,7 @@ function ja({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i,
|
|
|
5695
5793
|
})]
|
|
5696
5794
|
}, e.href);
|
|
5697
5795
|
})
|
|
5698
|
-
})] }) :
|
|
5796
|
+
})] }) : ja(r, p, /* @__PURE__ */ L(z, {
|
|
5699
5797
|
component: o,
|
|
5700
5798
|
href: ri(e, u, d),
|
|
5701
5799
|
"data-testid": `nav-${f}-${D(e.module)}`,
|
|
@@ -5703,7 +5801,7 @@ function ja({ item: e, blockIndex: t, nested: n = !1, open: r = !0, expanded: i,
|
|
|
5703
5801
|
children: T
|
|
5704
5802
|
}));
|
|
5705
5803
|
}
|
|
5706
|
-
function
|
|
5804
|
+
function Na({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions: i, t: a, legacyBaseUrl: o, selectedPublicationId: s }) {
|
|
5707
5805
|
let [c, l] = F(P(() => {
|
|
5708
5806
|
let t = {};
|
|
5709
5807
|
for (let n of e) n.children && (t[n.href] = n.defaultOpen ?? n.children.some((e) => ti(r, e.href)));
|
|
@@ -5714,7 +5812,7 @@ function Ma({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions
|
|
|
5714
5812
|
[e]: !t[e]
|
|
5715
5813
|
}));
|
|
5716
5814
|
};
|
|
5717
|
-
return /* @__PURE__ */ L(I, { children: e.map((e, l) => /* @__PURE__ */ L(
|
|
5815
|
+
return /* @__PURE__ */ L(I, { children: e.map((e, l) => /* @__PURE__ */ L(Ma, {
|
|
5718
5816
|
item: e,
|
|
5719
5817
|
blockIndex: l,
|
|
5720
5818
|
open: t,
|
|
@@ -5728,7 +5826,7 @@ function Ma({ items: e, open: t = !0, LinkComponent: n, pathname: r, permissions
|
|
|
5728
5826
|
selectedPublicationId: s
|
|
5729
5827
|
}, e.href)) });
|
|
5730
5828
|
}
|
|
5731
|
-
function
|
|
5829
|
+
function Pa({ open: e = !0, pathname: t, permissions: n, LinkComponent: r = $r, legacyBaseUrl: i, selectedPublicationId: a }) {
|
|
5732
5830
|
let { t: o } = W();
|
|
5733
5831
|
return /* @__PURE__ */ L(z, {
|
|
5734
5832
|
component: "aside",
|
|
@@ -5739,7 +5837,7 @@ function Na({ open: e = !0, pathname: t, permissions: n, LinkComponent: r = $r,
|
|
|
5739
5837
|
component: "nav",
|
|
5740
5838
|
"aria-label": o.sidebar("navAriaLabel"),
|
|
5741
5839
|
sx: Z.sxNav(e),
|
|
5742
|
-
children: /* @__PURE__ */ L(
|
|
5840
|
+
children: /* @__PURE__ */ L(Na, {
|
|
5743
5841
|
permissions: n,
|
|
5744
5842
|
items: oi,
|
|
5745
5843
|
open: e,
|
|
@@ -5755,7 +5853,7 @@ function Na({ open: e = !0, pathname: t, permissions: n, LinkComponent: r = $r,
|
|
|
5755
5853
|
}
|
|
5756
5854
|
//#endregion
|
|
5757
5855
|
//#region src/lib/components/error-page/CmsErrorPage.styles.ts
|
|
5758
|
-
var
|
|
5856
|
+
var Fa = {
|
|
5759
5857
|
sxRoot: {
|
|
5760
5858
|
position: "fixed",
|
|
5761
5859
|
inset: 0,
|
|
@@ -5844,7 +5942,7 @@ var Pa = {
|
|
|
5844
5942
|
};
|
|
5845
5943
|
//#endregion
|
|
5846
5944
|
//#region src/lib/components/error-page/CmsErrorPage.tsx
|
|
5847
|
-
function
|
|
5945
|
+
function Ia({ variant: e, homeHref: t = "/", LinkComponent: n = $r, illustrationSrc: r }) {
|
|
5848
5946
|
let { t: i } = W(), [a, o] = F(!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 () => {
|
|
5849
5947
|
let e = typeof window < "u" ? window.location.href : "", t = i.errorPage("copyDetailText").replace("{url}", e);
|
|
5850
5948
|
try {
|
|
@@ -5854,24 +5952,24 @@ function Fa({ variant: e, homeHref: t = "/", LinkComponent: n = $r, illustration
|
|
|
5854
5952
|
return /* @__PURE__ */ R(z, {
|
|
5855
5953
|
"data-testid": "panel-error",
|
|
5856
5954
|
"data-variant": e,
|
|
5857
|
-
sx:
|
|
5955
|
+
sx: Fa.sxRoot,
|
|
5858
5956
|
children: [/* @__PURE__ */ L(z, {
|
|
5859
5957
|
component: "img",
|
|
5860
5958
|
src: u,
|
|
5861
5959
|
alt: "",
|
|
5862
5960
|
"aria-hidden": !0,
|
|
5863
|
-
sx:
|
|
5961
|
+
sx: Fa.sxIllustration
|
|
5864
5962
|
}), /* @__PURE__ */ R(z, {
|
|
5865
|
-
sx:
|
|
5963
|
+
sx: Fa.sxContent,
|
|
5866
5964
|
children: [
|
|
5867
5965
|
/* @__PURE__ */ L(H, {
|
|
5868
5966
|
component: "h1",
|
|
5869
|
-
sx:
|
|
5967
|
+
sx: Fa.sxTitle,
|
|
5870
5968
|
children: c
|
|
5871
5969
|
}),
|
|
5872
5970
|
/* @__PURE__ */ L(H, {
|
|
5873
5971
|
component: "p",
|
|
5874
|
-
sx:
|
|
5972
|
+
sx: Fa.sxSubtitle,
|
|
5875
5973
|
children: l
|
|
5876
5974
|
}),
|
|
5877
5975
|
/* @__PURE__ */ L(V, {
|
|
@@ -5880,13 +5978,13 @@ function Fa({ variant: e, homeHref: t = "/", LinkComponent: n = $r, illustration
|
|
|
5880
5978
|
href: t,
|
|
5881
5979
|
sx: {
|
|
5882
5980
|
...ar("cta"),
|
|
5883
|
-
...
|
|
5981
|
+
...Fa.sxButton
|
|
5884
5982
|
},
|
|
5885
5983
|
children: i.errorPage("homeButton")
|
|
5886
5984
|
}),
|
|
5887
5985
|
!s && /* @__PURE__ */ R(H, {
|
|
5888
5986
|
component: "p",
|
|
5889
|
-
sx:
|
|
5987
|
+
sx: Fa.sxErrorLine,
|
|
5890
5988
|
children: [
|
|
5891
5989
|
i.errorPage("errorLabel"),
|
|
5892
5990
|
" ",
|
|
@@ -5898,7 +5996,7 @@ function Fa({ variant: e, homeHref: t = "/", LinkComponent: n = $r, illustration
|
|
|
5898
5996
|
role: "button",
|
|
5899
5997
|
tabIndex: 0,
|
|
5900
5998
|
onClick: d,
|
|
5901
|
-
sx:
|
|
5999
|
+
sx: Fa.sxCopyLink,
|
|
5902
6000
|
children: a ? i.errorPage("copied") : i.errorPage("copyDetail")
|
|
5903
6001
|
})
|
|
5904
6002
|
]
|
|
@@ -5909,30 +6007,30 @@ function Fa({ variant: e, homeHref: t = "/", LinkComponent: n = $r, illustration
|
|
|
5909
6007
|
}
|
|
5910
6008
|
//#endregion
|
|
5911
6009
|
//#region src/lib/components/mui-provider/CmsColorSchemeVars.tsx
|
|
5912
|
-
var { light:
|
|
5913
|
-
function
|
|
6010
|
+
var { light: La, dark: Ra } = le();
|
|
6011
|
+
function za() {
|
|
5914
6012
|
return /* @__PURE__ */ L(Pn, { styles: {
|
|
5915
|
-
":root":
|
|
5916
|
-
":root[data-mui-color-scheme=\"dark\"]":
|
|
6013
|
+
":root": La,
|
|
6014
|
+
":root[data-mui-color-scheme=\"dark\"]": Ra
|
|
5917
6015
|
} });
|
|
5918
6016
|
}
|
|
5919
6017
|
//#endregion
|
|
5920
6018
|
//#region src/lib/components/mui-provider/CmsFontFaces.tsx
|
|
5921
|
-
function
|
|
6019
|
+
function Ba() {
|
|
5922
6020
|
return /* @__PURE__ */ L(Pn, { styles: sr });
|
|
5923
6021
|
}
|
|
5924
6022
|
//#endregion
|
|
5925
6023
|
//#region src/lib/components/mui-provider/CmsThemeInitScript.tsx
|
|
5926
|
-
var
|
|
5927
|
-
function
|
|
6024
|
+
var Va = `(function(){try{var m=localStorage.getItem('${cr}');var e=localStorage.getItem('${lr}');var on=e===null?true:e==='true';var eff=on&&m==='dark'?'dark':'light';document.documentElement.setAttribute('${ur}',eff);}catch(_){}})();`;
|
|
6025
|
+
function Ha() {
|
|
5928
6026
|
return /* @__PURE__ */ L("script", {
|
|
5929
6027
|
suppressHydrationWarning: !0,
|
|
5930
|
-
dangerouslySetInnerHTML: { __html:
|
|
6028
|
+
dangerouslySetInnerHTML: { __html: Va }
|
|
5931
6029
|
});
|
|
5932
6030
|
}
|
|
5933
6031
|
//#endregion
|
|
5934
6032
|
//#region src/lib/components/mui-provider/CmsThemeModeSync.tsx
|
|
5935
|
-
function
|
|
6033
|
+
function Ua() {
|
|
5936
6034
|
let { setMode: e } = Je();
|
|
5937
6035
|
return nt(() => {
|
|
5938
6036
|
e(mr());
|
|
@@ -5940,37 +6038,37 @@ function Ha() {
|
|
|
5940
6038
|
}
|
|
5941
6039
|
//#endregion
|
|
5942
6040
|
//#region src/lib/components/mui-provider/CmsMuiProvider.tsx
|
|
5943
|
-
var
|
|
5944
|
-
function
|
|
6041
|
+
var Wa = tr();
|
|
6042
|
+
function Ga({ children: e }) {
|
|
5945
6043
|
return /* @__PURE__ */ R(Ke, {
|
|
5946
|
-
theme:
|
|
6044
|
+
theme: Wa,
|
|
5947
6045
|
defaultMode: "light",
|
|
5948
6046
|
storageManager: null,
|
|
5949
6047
|
children: [
|
|
5950
|
-
/* @__PURE__ */ L(Va, {}),
|
|
5951
6048
|
/* @__PURE__ */ L(Ha, {}),
|
|
6049
|
+
/* @__PURE__ */ L(Ua, {}),
|
|
5952
6050
|
/* @__PURE__ */ L(Nn, { enableColorScheme: !0 }),
|
|
5953
|
-
/* @__PURE__ */ L(Ra, {}),
|
|
5954
6051
|
/* @__PURE__ */ L(za, {}),
|
|
6052
|
+
/* @__PURE__ */ L(Ba, {}),
|
|
5955
6053
|
e
|
|
5956
6054
|
]
|
|
5957
6055
|
});
|
|
5958
6056
|
}
|
|
5959
6057
|
//#endregion
|
|
5960
6058
|
//#region src/lib/components/mui-provider/NextCmsMuiProvider.tsx
|
|
5961
|
-
var
|
|
5962
|
-
function
|
|
6059
|
+
var Ka = tr();
|
|
6060
|
+
function qa({ children: e }) {
|
|
5963
6061
|
return /* @__PURE__ */ R(Fn, {
|
|
5964
6062
|
options: { enableCssLayer: !0 },
|
|
5965
|
-
children: [/* @__PURE__ */ L(
|
|
5966
|
-
theme:
|
|
6063
|
+
children: [/* @__PURE__ */ L(Ha, {}), /* @__PURE__ */ R(Ke, {
|
|
6064
|
+
theme: Ka,
|
|
5967
6065
|
defaultMode: "light",
|
|
5968
6066
|
storageManager: null,
|
|
5969
6067
|
children: [
|
|
5970
|
-
/* @__PURE__ */ L(
|
|
6068
|
+
/* @__PURE__ */ L(Ua, {}),
|
|
5971
6069
|
/* @__PURE__ */ L(Nn, { enableColorScheme: !0 }),
|
|
5972
|
-
/* @__PURE__ */ L(Ra, {}),
|
|
5973
6070
|
/* @__PURE__ */ L(za, {}),
|
|
6071
|
+
/* @__PURE__ */ L(Ba, {}),
|
|
5974
6072
|
/* @__PURE__ */ L(z, {
|
|
5975
6073
|
sx: {
|
|
5976
6074
|
display: "flex",
|
|
@@ -5986,13 +6084,13 @@ function Ka({ children: e }) {
|
|
|
5986
6084
|
}
|
|
5987
6085
|
//#endregion
|
|
5988
6086
|
//#region src/lib/components/dropdowns/BtnDropdown.styles.ts
|
|
5989
|
-
var
|
|
6087
|
+
var Ja = (e) => e ? "white" : "cta", Ya = {
|
|
5990
6088
|
sxGroup: {
|
|
5991
6089
|
display: "inline-flex",
|
|
5992
6090
|
alignItems: "stretch"
|
|
5993
6091
|
},
|
|
5994
6092
|
sxMainButton: (e, t) => {
|
|
5995
|
-
let n =
|
|
6093
|
+
let n = Ja(e);
|
|
5996
6094
|
return {
|
|
5997
6095
|
height: x.buttonHeight,
|
|
5998
6096
|
px: "20px",
|
|
@@ -6018,7 +6116,7 @@ var qa = (e) => e ? "white" : "cta", Ja = {
|
|
|
6018
6116
|
};
|
|
6019
6117
|
},
|
|
6020
6118
|
sxArrowButton: (e, t) => {
|
|
6021
|
-
let n =
|
|
6119
|
+
let n = Ja(e);
|
|
6022
6120
|
return {
|
|
6023
6121
|
height: x.buttonHeight,
|
|
6024
6122
|
minWidth: 38,
|
|
@@ -6046,19 +6144,19 @@ var qa = (e) => e ? "white" : "cta", Ja = {
|
|
|
6046
6144
|
};
|
|
6047
6145
|
//#endregion
|
|
6048
6146
|
//#region src/lib/components/dropdowns/BtnDropdown.tsx
|
|
6049
|
-
function
|
|
6147
|
+
function Xa({ titleButton: e, options: t, icon: n, onAction: r, disabled: i = !1, enableButton: a = !0, whiteBtn: o = !1, showDropdownOptions: s = !0, testId: c }) {
|
|
6050
6148
|
let [l, u] = F(null), d = !!l, f = (e) => {
|
|
6051
6149
|
u((t) => t ? null : e.currentTarget);
|
|
6052
6150
|
}, p = P(() => t.filter((e) => e.show !== !1), [t]).length > 0, m = s && p;
|
|
6053
6151
|
return /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ R(z, {
|
|
6054
|
-
sx:
|
|
6152
|
+
sx: Ya.sxGroup,
|
|
6055
6153
|
children: [/* @__PURE__ */ L(V, {
|
|
6056
6154
|
disableElevation: !0,
|
|
6057
6155
|
startIcon: n,
|
|
6058
6156
|
onClick: r,
|
|
6059
6157
|
disabled: i || !a,
|
|
6060
6158
|
"data-testid": c ? `btn-${c}` : void 0,
|
|
6061
|
-
sx:
|
|
6159
|
+
sx: Ya.sxMainButton(o, !m),
|
|
6062
6160
|
children: e
|
|
6063
6161
|
}), m ? /* @__PURE__ */ L(V, {
|
|
6064
6162
|
disableElevation: !0,
|
|
@@ -6067,7 +6165,7 @@ function Ya({ titleButton: e, options: t, icon: n, onAction: r, disabled: i = !1
|
|
|
6067
6165
|
onClick: f,
|
|
6068
6166
|
disabled: i,
|
|
6069
6167
|
"data-testid": c ? `dropdown-toggle-${c}` : void 0,
|
|
6070
|
-
sx:
|
|
6168
|
+
sx: Ya.sxArrowButton(o, d),
|
|
6071
6169
|
children: /* @__PURE__ */ L(In, {})
|
|
6072
6170
|
}) : null]
|
|
6073
6171
|
}), /* @__PURE__ */ L(Xi, {
|
|
@@ -6088,17 +6186,17 @@ function Ya({ titleButton: e, options: t, icon: n, onAction: r, disabled: i = !1
|
|
|
6088
6186
|
}
|
|
6089
6187
|
//#endregion
|
|
6090
6188
|
//#region src/lib/components/dropdowns/SelectDropdown.tsx
|
|
6091
|
-
var
|
|
6092
|
-
function
|
|
6189
|
+
var Za = 18;
|
|
6190
|
+
function Qa(e) {
|
|
6093
6191
|
if (!$e(e)) return e;
|
|
6094
6192
|
let t = e;
|
|
6095
6193
|
return Xe(t, { sx: [t.props.sx, {
|
|
6096
|
-
fontSize:
|
|
6097
|
-
width:
|
|
6098
|
-
height:
|
|
6194
|
+
fontSize: Za,
|
|
6195
|
+
width: Za,
|
|
6196
|
+
height: Za
|
|
6099
6197
|
}] });
|
|
6100
6198
|
}
|
|
6101
|
-
function
|
|
6199
|
+
function $a({ 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 }) {
|
|
6102
6200
|
let [d, f] = F(null), p = !!d, m = P(() => t.filter((e) => e.show !== !1), [t]), h = P(() => m.find((t) => t.value === e), [m, e]), g = (e) => {
|
|
6103
6201
|
n(e), f(null);
|
|
6104
6202
|
}, _ = (t) => {
|
|
@@ -6110,7 +6208,7 @@ function Qa({ value: e, options: t, onChange: n, highlighted: r = !1, showIcons:
|
|
|
6110
6208
|
sx: or.sxItem(n),
|
|
6111
6209
|
children: [i && t.icon ? /* @__PURE__ */ L(ht, {
|
|
6112
6210
|
sx: { color: t.iconColor ?? "m3.onSurfaceVariant" },
|
|
6113
|
-
children:
|
|
6211
|
+
children: Qa(t.icon)
|
|
6114
6212
|
}) : null, t.label]
|
|
6115
6213
|
}, t.value);
|
|
6116
6214
|
};
|
|
@@ -6129,7 +6227,7 @@ function Qa({ value: e, options: t, onChange: n, highlighted: r = !1, showIcons:
|
|
|
6129
6227
|
component: "span",
|
|
6130
6228
|
className: "sel-lead",
|
|
6131
6229
|
sx: { color: h.iconColor ?? "inherit" },
|
|
6132
|
-
children:
|
|
6230
|
+
children: Qa(h.icon)
|
|
6133
6231
|
}) : null,
|
|
6134
6232
|
/* @__PURE__ */ L(z, {
|
|
6135
6233
|
component: "span",
|
|
@@ -6182,7 +6280,7 @@ function Qa({ value: e, options: t, onChange: n, highlighted: r = !1, showIcons:
|
|
|
6182
6280
|
}
|
|
6183
6281
|
//#endregion
|
|
6184
6282
|
//#region src/lib/components/search/CmsSearchField.styles.ts
|
|
6185
|
-
var
|
|
6283
|
+
var eo = {
|
|
6186
6284
|
sxRoot: (e) => ({
|
|
6187
6285
|
display: "inline-flex",
|
|
6188
6286
|
alignItems: "center",
|
|
@@ -6272,7 +6370,7 @@ var $a = {
|
|
|
6272
6370
|
};
|
|
6273
6371
|
//#endregion
|
|
6274
6372
|
//#region src/lib/components/search/CmsSearchField.tsx
|
|
6275
|
-
function
|
|
6373
|
+
function to({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, showIcon: a = !0, showAdvanced: o = !1, advancedActive: s = !1, onAdvancedClick: c, collapsible: l = !1, width: u = 320, grow: d = !1, maxWidth: f, endGap: p = 40, advancedAriaLabel: m, clearAriaLabel: h, ariaLabel: g, testId: _ }) {
|
|
6276
6374
|
let { t: v } = W(), y = v.messages.search, b = i ?? y.placeholder, x = g ?? y.inputAriaLabel, S = h ?? y.clearAriaLabel, C = m ?? y.advancedAriaLabel, w = it(null), [T, ee] = F(!1), E = l && !T && e.trim() === "", te = (t) => {
|
|
6277
6375
|
t.key === "Enter" && n?.(e);
|
|
6278
6376
|
}, D = () => {
|
|
@@ -6299,7 +6397,7 @@ function eo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, sh
|
|
|
6299
6397
|
flexBasis: u,
|
|
6300
6398
|
maxWidth: "100%"
|
|
6301
6399
|
}, /* @__PURE__ */ R(z, {
|
|
6302
|
-
sx:
|
|
6400
|
+
sx: eo.sxRoot({
|
|
6303
6401
|
collapsed: E,
|
|
6304
6402
|
focused: T
|
|
6305
6403
|
}),
|
|
@@ -6307,7 +6405,7 @@ function eo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, sh
|
|
|
6307
6405
|
onClick: ne,
|
|
6308
6406
|
"data-testid": _,
|
|
6309
6407
|
children: [
|
|
6310
|
-
a && /* @__PURE__ */ L(Nt, { sx:
|
|
6408
|
+
a && /* @__PURE__ */ L(Nt, { sx: eo.sxLeadIcon(T) }),
|
|
6311
6409
|
!E && /* @__PURE__ */ L(z, {
|
|
6312
6410
|
component: "input",
|
|
6313
6411
|
ref: w,
|
|
@@ -6320,14 +6418,14 @@ function eo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, sh
|
|
|
6320
6418
|
onKeyDown: te,
|
|
6321
6419
|
onFocus: () => ee(!0),
|
|
6322
6420
|
onBlur: () => ee(!1),
|
|
6323
|
-
sx:
|
|
6421
|
+
sx: eo.sxInput,
|
|
6324
6422
|
"data-testid": _ ? `${_}-input` : void 0
|
|
6325
6423
|
}),
|
|
6326
6424
|
!E && e.length > 0 && /* @__PURE__ */ L(B, {
|
|
6327
6425
|
size: "small",
|
|
6328
6426
|
"aria-label": S,
|
|
6329
6427
|
onClick: D,
|
|
6330
|
-
sx:
|
|
6428
|
+
sx: eo.sxClearBtn,
|
|
6331
6429
|
"data-testid": _ ? `${_}-icon-btn-clear` : void 0,
|
|
6332
6430
|
children: /* @__PURE__ */ L(_n, {})
|
|
6333
6431
|
}),
|
|
@@ -6339,14 +6437,14 @@ function eo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, sh
|
|
|
6339
6437
|
e.stopPropagation(), c?.();
|
|
6340
6438
|
},
|
|
6341
6439
|
sx: {
|
|
6342
|
-
|
|
6440
|
+
...eo.sxIconBtn,
|
|
6343
6441
|
position: "relative",
|
|
6344
|
-
...s ?
|
|
6442
|
+
...s ? eo.sxAdvancedActive : {}
|
|
6345
6443
|
},
|
|
6346
6444
|
"data-testid": _ ? `${_}-icon-btn-advanced` : void 0,
|
|
6347
6445
|
children: [/* @__PURE__ */ L(Ln, {}), s && /* @__PURE__ */ L(z, {
|
|
6348
6446
|
component: "span",
|
|
6349
|
-
sx:
|
|
6447
|
+
sx: eo.sxDot
|
|
6350
6448
|
})]
|
|
6351
6449
|
})
|
|
6352
6450
|
]
|
|
@@ -6354,7 +6452,7 @@ function eo({ value: e, onChange: t, onSearch: n, onClear: r, placeholder: i, sh
|
|
|
6354
6452
|
}
|
|
6355
6453
|
//#endregion
|
|
6356
6454
|
//#region src/lib/components/empty-state/CmsEmptyState.styles.ts
|
|
6357
|
-
var
|
|
6455
|
+
var no = {
|
|
6358
6456
|
sxRoot: {
|
|
6359
6457
|
display: "flex",
|
|
6360
6458
|
flexDirection: "column",
|
|
@@ -6388,22 +6486,22 @@ var to = {
|
|
|
6388
6486
|
};
|
|
6389
6487
|
//#endregion
|
|
6390
6488
|
//#region src/lib/components/empty-state/CmsEmptyState.tsx
|
|
6391
|
-
function
|
|
6489
|
+
function ro({ title: e, description: t, icon: n, testId: r }) {
|
|
6392
6490
|
return /* @__PURE__ */ R(z, {
|
|
6393
|
-
sx:
|
|
6491
|
+
sx: no.sxRoot,
|
|
6394
6492
|
"data-testid": r,
|
|
6395
6493
|
children: [
|
|
6396
6494
|
/* @__PURE__ */ L(z, {
|
|
6397
|
-
sx:
|
|
6495
|
+
sx: no.sxIcon,
|
|
6398
6496
|
children: n ?? /* @__PURE__ */ L(Rn, {})
|
|
6399
6497
|
}),
|
|
6400
6498
|
/* @__PURE__ */ L(H, {
|
|
6401
|
-
sx:
|
|
6499
|
+
sx: no.sxTitle,
|
|
6402
6500
|
"data-testid": r ? `${r}-title` : void 0,
|
|
6403
6501
|
children: e
|
|
6404
6502
|
}),
|
|
6405
6503
|
t ? /* @__PURE__ */ L(H, {
|
|
6406
|
-
sx:
|
|
6504
|
+
sx: no.sxDescription,
|
|
6407
6505
|
"data-testid": r ? `${r}-description` : void 0,
|
|
6408
6506
|
children: t
|
|
6409
6507
|
}) : null
|
|
@@ -6412,7 +6510,7 @@ function no({ title: e, description: t, icon: n, testId: r }) {
|
|
|
6412
6510
|
}
|
|
6413
6511
|
//#endregion
|
|
6414
6512
|
//#region src/lib/components/filter-bar/CmsFilterBar.styles.ts
|
|
6415
|
-
var
|
|
6513
|
+
var io = {
|
|
6416
6514
|
sxRoot: {
|
|
6417
6515
|
display: "flex",
|
|
6418
6516
|
alignItems: "center",
|
|
@@ -6483,37 +6581,37 @@ var ro = {
|
|
|
6483
6581
|
};
|
|
6484
6582
|
//#endregion
|
|
6485
6583
|
//#region src/lib/components/filter-bar/CmsFilterBar.tsx
|
|
6486
|
-
function
|
|
6584
|
+
function ao({ label: e, chips: t, onClearAll: n, clearAllLabel: r, testId: i }) {
|
|
6487
6585
|
return t.length === 0 ? null : /* @__PURE__ */ R(z, {
|
|
6488
|
-
sx:
|
|
6586
|
+
sx: io.sxRoot,
|
|
6489
6587
|
"data-testid": i,
|
|
6490
6588
|
children: [
|
|
6491
6589
|
/* @__PURE__ */ R(z, {
|
|
6492
|
-
sx:
|
|
6493
|
-
children: [/* @__PURE__ */ L(zn, { sx:
|
|
6590
|
+
sx: io.sxLabel,
|
|
6591
|
+
children: [/* @__PURE__ */ L(zn, { sx: io.sxLabelIcon }), /* @__PURE__ */ L(H, {
|
|
6494
6592
|
component: "span",
|
|
6495
|
-
sx:
|
|
6593
|
+
sx: io.sxLabelText,
|
|
6496
6594
|
children: e
|
|
6497
6595
|
})]
|
|
6498
6596
|
}),
|
|
6499
6597
|
t.map((e) => /* @__PURE__ */ R(z, {
|
|
6500
|
-
sx:
|
|
6598
|
+
sx: io.sxChip,
|
|
6501
6599
|
"data-testid": e.testId,
|
|
6502
6600
|
children: [
|
|
6503
6601
|
e.icon ? /* @__PURE__ */ L(z, {
|
|
6504
|
-
sx:
|
|
6602
|
+
sx: io.sxChipIcon,
|
|
6505
6603
|
children: e.icon
|
|
6506
6604
|
}) : null,
|
|
6507
6605
|
/* @__PURE__ */ L(z, {
|
|
6508
6606
|
component: "span",
|
|
6509
|
-
sx:
|
|
6607
|
+
sx: io.sxChipLabel,
|
|
6510
6608
|
children: e.label
|
|
6511
6609
|
}),
|
|
6512
6610
|
/* @__PURE__ */ L(B, {
|
|
6513
6611
|
size: "small",
|
|
6514
6612
|
"aria-label": e.removeAriaLabel,
|
|
6515
6613
|
onClick: e.onRemove,
|
|
6516
|
-
sx:
|
|
6614
|
+
sx: io.sxChipRemove,
|
|
6517
6615
|
"data-testid": e.testId ? `${e.testId}-icon-btn-remove` : void 0,
|
|
6518
6616
|
children: /* @__PURE__ */ L(_n, {})
|
|
6519
6617
|
})
|
|
@@ -6522,7 +6620,7 @@ function io({ label: e, chips: t, onClearAll: n, clearAllLabel: r, testId: i })
|
|
|
6522
6620
|
n ? /* @__PURE__ */ L(V, {
|
|
6523
6621
|
onClick: n,
|
|
6524
6622
|
startIcon: /* @__PURE__ */ L(_n, {}),
|
|
6525
|
-
sx:
|
|
6623
|
+
sx: io.sxClearAll,
|
|
6526
6624
|
"data-testid": i ? `${i}-btn-clear-all` : void 0,
|
|
6527
6625
|
children: r
|
|
6528
6626
|
}) : null
|
|
@@ -6648,7 +6746,7 @@ var Q = {
|
|
|
6648
6746
|
};
|
|
6649
6747
|
//#endregion
|
|
6650
6748
|
//#region src/lib/components/fields/CmsCheckboxField.tsx
|
|
6651
|
-
function
|
|
6749
|
+
function oo({ value: e, onChange: t, label: n, disabled: r = !1, testId: i }) {
|
|
6652
6750
|
let a = rt();
|
|
6653
6751
|
return /* @__PURE__ */ L(Un, {
|
|
6654
6752
|
sx: Q.sxCheckboxLabel,
|
|
@@ -6668,7 +6766,7 @@ function ao({ value: e, onChange: t, label: n, disabled: r = !1, testId: i }) {
|
|
|
6668
6766
|
}
|
|
6669
6767
|
//#endregion
|
|
6670
6768
|
//#region src/lib/components/fields/FieldShell.tsx
|
|
6671
|
-
function
|
|
6769
|
+
function so({ label: e, htmlFor: t, hint: n, children: r }) {
|
|
6672
6770
|
return /* @__PURE__ */ R(z, {
|
|
6673
6771
|
sx: Q.sxField,
|
|
6674
6772
|
children: [
|
|
@@ -6688,9 +6786,9 @@ function oo({ label: e, htmlFor: t, hint: n, children: r }) {
|
|
|
6688
6786
|
}
|
|
6689
6787
|
//#endregion
|
|
6690
6788
|
//#region src/lib/components/fields/CmsComboboxField.tsx
|
|
6691
|
-
function
|
|
6789
|
+
function co({ value: e, onChange: t, options: n, label: r, placeholder: i, hint: a, noOptionsText: o, disabled: s = !1, testId: c }) {
|
|
6692
6790
|
let l = rt(), { t: u } = W(), d = o ?? u.messages.search.noOptions, f = P(() => n.filter((e) => e.show !== !1), [n]);
|
|
6693
|
-
return /* @__PURE__ */ L(
|
|
6791
|
+
return /* @__PURE__ */ L(so, {
|
|
6694
6792
|
label: r,
|
|
6695
6793
|
htmlFor: l,
|
|
6696
6794
|
hint: a,
|
|
@@ -6814,10 +6912,10 @@ var $ = {
|
|
|
6814
6912
|
};
|
|
6815
6913
|
//#endregion
|
|
6816
6914
|
//#region src/lib/components/fields/CmsDateField.tsx
|
|
6817
|
-
function
|
|
6915
|
+
function lo(e) {
|
|
6818
6916
|
return e < 10 ? `0${e}` : `${e}`;
|
|
6819
6917
|
}
|
|
6820
|
-
function
|
|
6918
|
+
function uo(e) {
|
|
6821
6919
|
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
|
|
6822
6920
|
return t ? {
|
|
6823
6921
|
y: +t[1],
|
|
@@ -6825,17 +6923,17 @@ function lo(e) {
|
|
|
6825
6923
|
d: +t[3]
|
|
6826
6924
|
} : null;
|
|
6827
6925
|
}
|
|
6828
|
-
function
|
|
6829
|
-
return `${e}-${
|
|
6926
|
+
function fo(e, t, n) {
|
|
6927
|
+
return `${e}-${lo(t + 1)}-${lo(n)}`;
|
|
6830
6928
|
}
|
|
6831
|
-
function
|
|
6832
|
-
let o = rt(), { t: s, locale: c } = W(), l = s.messages.search, u = jr(c), [d, f] = F(null), [p, m] = F(!1), h =
|
|
6929
|
+
function po({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId: a }) {
|
|
6930
|
+
let o = rt(), { t: s, locale: c } = W(), l = s.messages.search, u = jr(c), [d, f] = F(null), [p, m] = F(!1), h = uo(e), g = /* @__PURE__ */ new Date(), [_, v] = F(() => h ? {
|
|
6833
6931
|
y: h.y,
|
|
6834
6932
|
m: h.m
|
|
6835
6933
|
} : {
|
|
6836
6934
|
y: g.getFullYear(),
|
|
6837
6935
|
m: g.getMonth()
|
|
6838
|
-
}), y = h ? `${
|
|
6936
|
+
}), y = h ? `${lo(h.d)}/${lo(h.m + 1)}/${h.y}` : "", b = P(() => {
|
|
6839
6937
|
let e = new Intl.DateTimeFormat(u, { weekday: "short" }), t = new Date(2023, 0, 2);
|
|
6840
6938
|
return Array.from({ length: 7 }, (n, r) => {
|
|
6841
6939
|
let i = new Date(t.getFullYear(), t.getMonth(), t.getDate() + r);
|
|
@@ -6875,9 +6973,9 @@ function fo({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
6875
6973
|
y: e.y,
|
|
6876
6974
|
m: e.m + 1
|
|
6877
6975
|
}), ee = (e) => {
|
|
6878
|
-
t(
|
|
6976
|
+
t(fo(e.y, e.m, e.d)), m(!1);
|
|
6879
6977
|
};
|
|
6880
|
-
return /* @__PURE__ */ R(
|
|
6978
|
+
return /* @__PURE__ */ R(so, {
|
|
6881
6979
|
label: n,
|
|
6882
6980
|
htmlFor: o,
|
|
6883
6981
|
hint: r,
|
|
@@ -6980,7 +7078,7 @@ function fo({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
6980
7078
|
}), /* @__PURE__ */ L(V, {
|
|
6981
7079
|
sx: $.sxFooterBtn,
|
|
6982
7080
|
onClick: () => {
|
|
6983
|
-
t(
|
|
7081
|
+
t(fo(g.getFullYear(), g.getMonth(), g.getDate())), m(!1);
|
|
6984
7082
|
},
|
|
6985
7083
|
children: l.dateToday
|
|
6986
7084
|
})]
|
|
@@ -6991,9 +7089,9 @@ function fo({ value: e, onChange: t, label: n, hint: r, disabled: i = !1, testId
|
|
|
6991
7089
|
}
|
|
6992
7090
|
//#endregion
|
|
6993
7091
|
//#region src/lib/components/fields/CmsMultiSelectField.tsx
|
|
6994
|
-
function
|
|
7092
|
+
function mo({ value: e, onChange: t, options: n, label: r, placeholder: i, hint: a, noOptionsText: o, disabled: s = !1, testId: c }) {
|
|
6995
7093
|
let l = rt(), { t: u } = W(), d = o ?? u.messages.search.noOptions, f = P(() => n.filter((e) => e.show !== !1), [n]), p = P(() => f.filter((t) => e.includes(t.value)), [f, e]);
|
|
6996
|
-
return /* @__PURE__ */ L(
|
|
7094
|
+
return /* @__PURE__ */ L(so, {
|
|
6997
7095
|
label: r,
|
|
6998
7096
|
htmlFor: l,
|
|
6999
7097
|
hint: a,
|
|
@@ -7074,9 +7172,9 @@ function po({ value: e, onChange: t, options: n, label: r, placeholder: i, hint:
|
|
|
7074
7172
|
}
|
|
7075
7173
|
//#endregion
|
|
7076
7174
|
//#region src/lib/components/fields/CmsNumberField.tsx
|
|
7077
|
-
function
|
|
7175
|
+
function ho({ value: e, onChange: t, label: n, placeholder: r, hint: i, min: a, max: o, disabled: s = !1, testId: c }) {
|
|
7078
7176
|
let l = rt();
|
|
7079
|
-
return /* @__PURE__ */ L(
|
|
7177
|
+
return /* @__PURE__ */ L(so, {
|
|
7080
7178
|
label: n,
|
|
7081
7179
|
htmlFor: l,
|
|
7082
7180
|
hint: i,
|
|
@@ -7101,9 +7199,9 @@ function mo({ value: e, onChange: t, label: n, placeholder: r, hint: i, min: a,
|
|
|
7101
7199
|
}
|
|
7102
7200
|
//#endregion
|
|
7103
7201
|
//#region src/lib/components/fields/CmsSelectField.tsx
|
|
7104
|
-
function
|
|
7202
|
+
function go({ value: e, onChange: t, options: n, label: r, placeholder: i, hint: a, disabled: o = !1, showCheck: s = !0, testId: c }) {
|
|
7105
7203
|
let l = rt(), u = P(() => n.filter((e) => e.show !== !1), [n]);
|
|
7106
|
-
return /* @__PURE__ */ L(
|
|
7204
|
+
return /* @__PURE__ */ L(so, {
|
|
7107
7205
|
label: r,
|
|
7108
7206
|
htmlFor: l,
|
|
7109
7207
|
hint: a,
|
|
@@ -7169,9 +7267,9 @@ function ho({ value: e, onChange: t, options: n, label: r, placeholder: i, hint:
|
|
|
7169
7267
|
}
|
|
7170
7268
|
//#endregion
|
|
7171
7269
|
//#region src/lib/components/fields/CmsTagsField.tsx
|
|
7172
|
-
function
|
|
7270
|
+
function _o({ value: e, onChange: t, label: n, placeholder: r, hint: i, suggestions: a = [], startIcon: o, chipSx: s, disabled: c = !1, testId: l }) {
|
|
7173
7271
|
let u = rt();
|
|
7174
|
-
return /* @__PURE__ */ L(
|
|
7272
|
+
return /* @__PURE__ */ L(so, {
|
|
7175
7273
|
label: n,
|
|
7176
7274
|
htmlFor: u,
|
|
7177
7275
|
hint: i,
|
|
@@ -7220,9 +7318,9 @@ function go({ value: e, onChange: t, label: n, placeholder: r, hint: i, suggesti
|
|
|
7220
7318
|
}
|
|
7221
7319
|
//#endregion
|
|
7222
7320
|
//#region src/lib/components/fields/CmsTextField.tsx
|
|
7223
|
-
function
|
|
7321
|
+
function vo({ value: e, onChange: t, label: n, placeholder: r, hint: i, type: a = "text", disabled: o = !1, testId: s }) {
|
|
7224
7322
|
let c = rt();
|
|
7225
|
-
return /* @__PURE__ */ L(
|
|
7323
|
+
return /* @__PURE__ */ L(so, {
|
|
7226
7324
|
label: n,
|
|
7227
7325
|
htmlFor: c,
|
|
7228
7326
|
hint: i,
|
|
@@ -7242,10 +7340,10 @@ function _o({ value: e, onChange: t, label: n, placeholder: r, hint: i, type: a
|
|
|
7242
7340
|
}
|
|
7243
7341
|
//#endregion
|
|
7244
7342
|
//#region src/lib/components/fields/FieldRenderer.tsx
|
|
7245
|
-
function
|
|
7343
|
+
function yo({ field: e, value: t, onChange: n }) {
|
|
7246
7344
|
let r = typeof t == "string" ? t : "", i = Array.isArray(t) ? t : [], a = t === !0;
|
|
7247
7345
|
switch (e.kind) {
|
|
7248
|
-
case "text": return /* @__PURE__ */ L(
|
|
7346
|
+
case "text": return /* @__PURE__ */ L(vo, {
|
|
7249
7347
|
label: e.label,
|
|
7250
7348
|
placeholder: e.placeholder,
|
|
7251
7349
|
hint: e.hint,
|
|
@@ -7255,7 +7353,7 @@ function vo({ field: e, value: t, onChange: n }) {
|
|
|
7255
7353
|
value: r,
|
|
7256
7354
|
onChange: n
|
|
7257
7355
|
});
|
|
7258
|
-
case "number": return /* @__PURE__ */ L(
|
|
7356
|
+
case "number": return /* @__PURE__ */ L(ho, {
|
|
7259
7357
|
label: e.label,
|
|
7260
7358
|
placeholder: e.placeholder,
|
|
7261
7359
|
hint: e.hint,
|
|
@@ -7266,7 +7364,7 @@ function vo({ field: e, value: t, onChange: n }) {
|
|
|
7266
7364
|
value: r,
|
|
7267
7365
|
onChange: n
|
|
7268
7366
|
});
|
|
7269
|
-
case "date": return /* @__PURE__ */ L(
|
|
7367
|
+
case "date": return /* @__PURE__ */ L(po, {
|
|
7270
7368
|
label: e.label,
|
|
7271
7369
|
hint: e.hint,
|
|
7272
7370
|
disabled: e.disabled,
|
|
@@ -7274,7 +7372,7 @@ function vo({ field: e, value: t, onChange: n }) {
|
|
|
7274
7372
|
value: r,
|
|
7275
7373
|
onChange: n
|
|
7276
7374
|
});
|
|
7277
|
-
case "select": return /* @__PURE__ */ L(
|
|
7375
|
+
case "select": return /* @__PURE__ */ L(go, {
|
|
7278
7376
|
label: e.label,
|
|
7279
7377
|
placeholder: e.placeholder,
|
|
7280
7378
|
hint: e.hint,
|
|
@@ -7285,7 +7383,7 @@ function vo({ field: e, value: t, onChange: n }) {
|
|
|
7285
7383
|
value: r,
|
|
7286
7384
|
onChange: n
|
|
7287
7385
|
});
|
|
7288
|
-
case "combobox": return /* @__PURE__ */ L(
|
|
7386
|
+
case "combobox": return /* @__PURE__ */ L(co, {
|
|
7289
7387
|
label: e.label,
|
|
7290
7388
|
placeholder: e.placeholder,
|
|
7291
7389
|
hint: e.hint,
|
|
@@ -7295,7 +7393,7 @@ function vo({ field: e, value: t, onChange: n }) {
|
|
|
7295
7393
|
value: r,
|
|
7296
7394
|
onChange: n
|
|
7297
7395
|
});
|
|
7298
|
-
case "multiselect": return /* @__PURE__ */ L(
|
|
7396
|
+
case "multiselect": return /* @__PURE__ */ L(mo, {
|
|
7299
7397
|
label: e.label,
|
|
7300
7398
|
placeholder: e.placeholder,
|
|
7301
7399
|
hint: e.hint,
|
|
@@ -7305,7 +7403,7 @@ function vo({ field: e, value: t, onChange: n }) {
|
|
|
7305
7403
|
value: i,
|
|
7306
7404
|
onChange: n
|
|
7307
7405
|
});
|
|
7308
|
-
case "tags": return /* @__PURE__ */ L(
|
|
7406
|
+
case "tags": return /* @__PURE__ */ L(_o, {
|
|
7309
7407
|
label: e.label,
|
|
7310
7408
|
placeholder: e.placeholder,
|
|
7311
7409
|
hint: e.hint,
|
|
@@ -7314,7 +7412,7 @@ function vo({ field: e, value: t, onChange: n }) {
|
|
|
7314
7412
|
value: i,
|
|
7315
7413
|
onChange: n
|
|
7316
7414
|
});
|
|
7317
|
-
case "checkbox": return /* @__PURE__ */ L(
|
|
7415
|
+
case "checkbox": return /* @__PURE__ */ L(oo, {
|
|
7318
7416
|
label: e.label,
|
|
7319
7417
|
disabled: e.disabled,
|
|
7320
7418
|
testId: e.testId,
|
|
@@ -7326,7 +7424,7 @@ function vo({ field: e, value: t, onChange: n }) {
|
|
|
7326
7424
|
}
|
|
7327
7425
|
//#endregion
|
|
7328
7426
|
//#region src/lib/components/advanced-search/CmsAdvancedSearch.styles.ts
|
|
7329
|
-
var
|
|
7427
|
+
var bo = {
|
|
7330
7428
|
sxModalPaper: {
|
|
7331
7429
|
width: "min(1080px, calc(100vw - 48px))",
|
|
7332
7430
|
maxWidth: "none",
|
|
@@ -7436,7 +7534,7 @@ var yo = {
|
|
|
7436
7534
|
};
|
|
7437
7535
|
//#endregion
|
|
7438
7536
|
//#region src/lib/components/advanced-search/defaultFields.ts
|
|
7439
|
-
function
|
|
7537
|
+
function xo(e) {
|
|
7440
7538
|
let t = e.messages.searchFields, n = e.messages.searchOptions;
|
|
7441
7539
|
return [
|
|
7442
7540
|
{
|
|
@@ -7628,7 +7726,7 @@ function bo(e) {
|
|
|
7628
7726
|
}
|
|
7629
7727
|
//#endregion
|
|
7630
7728
|
//#region src/lib/components/advanced-search/CmsAdvancedSearch.tsx
|
|
7631
|
-
function
|
|
7729
|
+
function So(e) {
|
|
7632
7730
|
switch (e.kind) {
|
|
7633
7731
|
case "multiselect":
|
|
7634
7732
|
case "tags": return [];
|
|
@@ -7636,10 +7734,10 @@ function xo(e) {
|
|
|
7636
7734
|
default: return "";
|
|
7637
7735
|
}
|
|
7638
7736
|
}
|
|
7639
|
-
function
|
|
7640
|
-
let { t: h } = W(), g = h.messages.search, _ = P(() => a ??
|
|
7737
|
+
function Co({ 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 }) {
|
|
7738
|
+
let { t: h } = W(), g = h.messages.search, _ = P(() => a ?? xo(h), [a, h]), v = r ?? g.title, y = l ?? g.apply, b = u ?? g.reset, x = d ?? g.close, S = P(() => {
|
|
7641
7739
|
let e = {};
|
|
7642
|
-
for (let t of _) e[t.name] =
|
|
7740
|
+
for (let t of _) e[t.name] = So(t);
|
|
7643
7741
|
return {
|
|
7644
7742
|
...e,
|
|
7645
7743
|
...o
|
|
@@ -7653,42 +7751,42 @@ function So({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i,
|
|
|
7653
7751
|
}));
|
|
7654
7752
|
}, te = () => {
|
|
7655
7753
|
let e = {};
|
|
7656
|
-
for (let t of _) e[t.name] =
|
|
7754
|
+
for (let t of _) e[t.name] = So(t);
|
|
7657
7755
|
w(e), c?.();
|
|
7658
7756
|
}, D = () => {
|
|
7659
7757
|
s(C), t();
|
|
7660
7758
|
}, ne = n === "drawer", O = /* @__PURE__ */ R(z, {
|
|
7661
|
-
sx:
|
|
7759
|
+
sx: bo.sxContainer,
|
|
7662
7760
|
"data-testid": m,
|
|
7663
7761
|
children: [
|
|
7664
7762
|
/* @__PURE__ */ R(z, {
|
|
7665
|
-
sx:
|
|
7763
|
+
sx: bo.sxHead,
|
|
7666
7764
|
children: [
|
|
7667
7765
|
/* @__PURE__ */ L(z, {
|
|
7668
|
-
sx:
|
|
7766
|
+
sx: bo.sxHeadIcon,
|
|
7669
7767
|
children: i ?? /* @__PURE__ */ L(zn, {})
|
|
7670
7768
|
}),
|
|
7671
7769
|
/* @__PURE__ */ L(z, {
|
|
7672
7770
|
component: "h2",
|
|
7673
|
-
sx:
|
|
7771
|
+
sx: bo.sxTitle,
|
|
7674
7772
|
children: v
|
|
7675
7773
|
}),
|
|
7676
7774
|
/* @__PURE__ */ L(B, {
|
|
7677
7775
|
"aria-label": x,
|
|
7678
7776
|
onClick: t,
|
|
7679
|
-
sx:
|
|
7777
|
+
sx: bo.sxClose,
|
|
7680
7778
|
"data-testid": m ? `${m}-icon-btn-close` : void 0,
|
|
7681
7779
|
children: /* @__PURE__ */ L(_n, {})
|
|
7682
7780
|
})
|
|
7683
7781
|
]
|
|
7684
7782
|
}),
|
|
7685
7783
|
/* @__PURE__ */ L(z, {
|
|
7686
|
-
sx:
|
|
7784
|
+
sx: bo.sxBody,
|
|
7687
7785
|
children: /* @__PURE__ */ L(z, {
|
|
7688
|
-
sx:
|
|
7786
|
+
sx: bo.sxGrid(f, ne),
|
|
7689
7787
|
children: _.map((e) => /* @__PURE__ */ L(z, {
|
|
7690
7788
|
sx: { gridColumn: !ne && e.span && e.span > 1 ? `span ${e.span}` : void 0 },
|
|
7691
|
-
children: /* @__PURE__ */ L(
|
|
7789
|
+
children: /* @__PURE__ */ L(yo, {
|
|
7692
7790
|
field: e,
|
|
7693
7791
|
value: C[e.name],
|
|
7694
7792
|
onChange: (t) => E(e.name, t)
|
|
@@ -7697,12 +7795,12 @@ function So({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i,
|
|
|
7697
7795
|
})
|
|
7698
7796
|
}),
|
|
7699
7797
|
/* @__PURE__ */ R(z, {
|
|
7700
|
-
sx:
|
|
7798
|
+
sx: bo.sxFoot,
|
|
7701
7799
|
children: [/* @__PURE__ */ L(V, {
|
|
7702
7800
|
type: "button",
|
|
7703
7801
|
disableElevation: !0,
|
|
7704
7802
|
onClick: te,
|
|
7705
|
-
sx:
|
|
7803
|
+
sx: bo.sxReset,
|
|
7706
7804
|
"data-testid": m ? `${m}-btn-reset` : void 0,
|
|
7707
7805
|
children: b
|
|
7708
7806
|
}), /* @__PURE__ */ L(V, {
|
|
@@ -7710,7 +7808,7 @@ function So({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i,
|
|
|
7710
7808
|
disableElevation: !0,
|
|
7711
7809
|
onClick: D,
|
|
7712
7810
|
startIcon: /* @__PURE__ */ L(zn, {}),
|
|
7713
|
-
sx:
|
|
7811
|
+
sx: bo.sxApply,
|
|
7714
7812
|
"data-testid": m ? `${m}-btn-apply` : void 0,
|
|
7715
7813
|
children: y
|
|
7716
7814
|
})]
|
|
@@ -7721,19 +7819,19 @@ function So({ open: e, onClose: t, variant: n = "modal", title: r, titleIcon: i,
|
|
|
7721
7819
|
anchor: "right",
|
|
7722
7820
|
open: e,
|
|
7723
7821
|
onClose: t,
|
|
7724
|
-
slotProps: { paper: { sx:
|
|
7822
|
+
slotProps: { paper: { sx: bo.sxDrawerPaper(p) } },
|
|
7725
7823
|
children: O
|
|
7726
7824
|
}) : /* @__PURE__ */ L(Bn, {
|
|
7727
7825
|
open: e,
|
|
7728
7826
|
onClose: t,
|
|
7729
7827
|
maxWidth: !1,
|
|
7730
|
-
slotProps: { paper: { sx:
|
|
7828
|
+
slotProps: { paper: { sx: bo.sxModalPaper } },
|
|
7731
7829
|
children: O
|
|
7732
7830
|
});
|
|
7733
7831
|
}
|
|
7734
7832
|
//#endregion
|
|
7735
7833
|
//#region src/lib/components/confirm-dialog/CmsConfirmDialog.styles.ts
|
|
7736
|
-
var
|
|
7834
|
+
var wo = {
|
|
7737
7835
|
sxPaper: (e, t, n) => ({
|
|
7738
7836
|
position: "relative",
|
|
7739
7837
|
width: e ?? "auto",
|
|
@@ -7805,16 +7903,16 @@ var Co = {
|
|
|
7805
7903
|
mt: "auto",
|
|
7806
7904
|
pt: "8px"
|
|
7807
7905
|
}
|
|
7808
|
-
},
|
|
7906
|
+
}, To = {
|
|
7809
7907
|
start: "flex-start",
|
|
7810
7908
|
center: "center",
|
|
7811
7909
|
end: "flex-end",
|
|
7812
7910
|
between: "space-between"
|
|
7813
|
-
},
|
|
7911
|
+
}, Eo = {
|
|
7814
7912
|
sxRoot: (e) => ({
|
|
7815
7913
|
display: "flex",
|
|
7816
7914
|
alignItems: "center",
|
|
7817
|
-
justifyContent:
|
|
7915
|
+
justifyContent: To[e],
|
|
7818
7916
|
gap: "10px",
|
|
7819
7917
|
width: "100%"
|
|
7820
7918
|
}),
|
|
@@ -7840,12 +7938,12 @@ var Co = {
|
|
|
7840
7938
|
}
|
|
7841
7939
|
},
|
|
7842
7940
|
sxCancelButton: (e) => ({
|
|
7843
|
-
...
|
|
7844
|
-
...e ?
|
|
7941
|
+
...Eo.sxCancel,
|
|
7942
|
+
...e ? Eo.sxGrow : {}
|
|
7845
7943
|
}),
|
|
7846
7944
|
sxConfirmButton: (e, t) => ({
|
|
7847
|
-
...
|
|
7848
|
-
...t ?
|
|
7945
|
+
...Eo.sxConfirm(e),
|
|
7946
|
+
...t ? Eo.sxGrow : {}
|
|
7849
7947
|
}),
|
|
7850
7948
|
sxConfirm: (e) => {
|
|
7851
7949
|
let t = e === "danger" ? A.danger : A.primary, n = e === "danger" ? A.dangerHover : A.primaryHover;
|
|
@@ -7876,17 +7974,17 @@ var Co = {
|
|
|
7876
7974
|
};
|
|
7877
7975
|
//#endregion
|
|
7878
7976
|
//#region src/lib/components/confirm-dialog/CmsDialogActions.tsx
|
|
7879
|
-
function
|
|
7977
|
+
function Do({ 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 }) {
|
|
7880
7978
|
let d = e != null, f = n != null;
|
|
7881
7979
|
return !d && !f ? null : /* @__PURE__ */ R(z, {
|
|
7882
|
-
sx:
|
|
7980
|
+
sx: Eo.sxRoot(l),
|
|
7883
7981
|
"data-testid": u,
|
|
7884
7982
|
children: [d && /* @__PURE__ */ L(V, {
|
|
7885
7983
|
type: "button",
|
|
7886
7984
|
disableElevation: !0,
|
|
7887
7985
|
onClick: t,
|
|
7888
7986
|
disabled: o,
|
|
7889
|
-
sx:
|
|
7987
|
+
sx: Eo.sxCancelButton(c),
|
|
7890
7988
|
"data-testid": u ? `${u}-btn-cancel` : void 0,
|
|
7891
7989
|
"data-action": "cancel",
|
|
7892
7990
|
children: e
|
|
@@ -7896,7 +7994,7 @@ function Eo({ cancelLabel: e, onCancel: t, confirmLabel: n, onConfirm: r, confir
|
|
|
7896
7994
|
onClick: r,
|
|
7897
7995
|
disabled: s,
|
|
7898
7996
|
startIcon: i ?? void 0,
|
|
7899
|
-
sx:
|
|
7997
|
+
sx: Eo.sxConfirmButton(a, c),
|
|
7900
7998
|
"data-testid": u ? `${u}-btn-confirm` : void 0,
|
|
7901
7999
|
"data-action": "confirm",
|
|
7902
8000
|
children: n
|
|
@@ -7905,7 +8003,7 @@ function Eo({ cancelLabel: e, onCancel: t, confirmLabel: n, onConfirm: r, confir
|
|
|
7905
8003
|
}
|
|
7906
8004
|
//#endregion
|
|
7907
8005
|
//#region src/lib/components/confirm-dialog/CmsConfirmDialog.tsx
|
|
7908
|
-
function
|
|
8006
|
+
function Oo({ 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 }) {
|
|
7909
8007
|
let C = c != null || u != null;
|
|
7910
8008
|
return /* @__PURE__ */ R(Bn, {
|
|
7911
8009
|
open: e,
|
|
@@ -7914,34 +8012,34 @@ function Do({ open: e, onClose: t, icon: n, iconColor: r = A.textNav, title: i,
|
|
|
7914
8012
|
},
|
|
7915
8013
|
maxWidth: !1,
|
|
7916
8014
|
slotProps: { paper: {
|
|
7917
|
-
sx:
|
|
8015
|
+
sx: wo.sxPaper(v, y, b),
|
|
7918
8016
|
...S == null ? {} : { "data-testid": S }
|
|
7919
8017
|
} },
|
|
7920
8018
|
children: [
|
|
7921
8019
|
o && /* @__PURE__ */ L(B, {
|
|
7922
8020
|
"aria-label": s ?? "Close",
|
|
7923
8021
|
onClick: t,
|
|
7924
|
-
sx:
|
|
8022
|
+
sx: wo.sxClose,
|
|
7925
8023
|
"data-testid": S ? `${S}-icon-btn-close` : void 0,
|
|
7926
8024
|
children: /* @__PURE__ */ L(ot, {})
|
|
7927
8025
|
}),
|
|
7928
8026
|
n != null && /* @__PURE__ */ L(z, {
|
|
7929
|
-
sx:
|
|
8027
|
+
sx: wo.sxIcon(r),
|
|
7930
8028
|
children: n
|
|
7931
8029
|
}),
|
|
7932
8030
|
i != null && /* @__PURE__ */ L(z, {
|
|
7933
8031
|
component: "h2",
|
|
7934
|
-
sx:
|
|
8032
|
+
sx: wo.sxTitle,
|
|
7935
8033
|
children: i
|
|
7936
8034
|
}),
|
|
7937
8035
|
a != null && /* @__PURE__ */ L(z, {
|
|
7938
8036
|
component: "p",
|
|
7939
|
-
sx:
|
|
8037
|
+
sx: wo.sxDescription,
|
|
7940
8038
|
children: a
|
|
7941
8039
|
}),
|
|
7942
8040
|
C && /* @__PURE__ */ L(z, {
|
|
7943
|
-
sx:
|
|
7944
|
-
children: /* @__PURE__ */ L(
|
|
8041
|
+
sx: wo.sxActions,
|
|
8042
|
+
children: /* @__PURE__ */ L(Do, {
|
|
7945
8043
|
cancelLabel: c,
|
|
7946
8044
|
onCancel: l ?? t,
|
|
7947
8045
|
confirmLabel: u,
|
|
@@ -7959,6 +8057,6 @@ function Do({ open: e, onClose: t, icon: n, iconColor: r = A.textNav, title: i,
|
|
|
7959
8057
|
});
|
|
7960
8058
|
}
|
|
7961
8059
|
//#endregion
|
|
7962
|
-
export { oi as ACCOUNT_NAV_BLOCKS,
|
|
8060
|
+
export { oi as ACCOUNT_NAV_BLOCKS, Ta as AppShell, Xa as BtnDropdown, Co as CmsAdvancedSearch, a as CmsAudiosServices, t as CmsAuthLoginServices, s as CmsAuthServices, o as CmsCategoriesServices, oo as CmsCheckboxField, S as CmsCkeditorServices, co as CmsComboboxField, r as CmsCommentsServices, Pe as CmsCommonServices, Oo as CmsConfirmDialog, b as CmsContributionsServices, Be as CmsCopilotServices, _ as CmsDashboardServices, po as CmsDateField, Do as CmsDialogActions, ro as CmsEmptyState, Ia as CmsErrorPage, Ue as CmsEventsServices, Re as CmsFileExplorerServices, ao as CmsFilterBar, Ba as CmsFontFaces, ne as CmsGeneralServices, Ar as CmsI18nProvider, fe as CmsImagesServices, Ga as CmsMuiProvider, mo as CmsMultiSelectField, Br as CmsNetworkContext, Gr as CmsNetworkProvider, qr as CmsNetworkToaster, pe as CmsNewsServices, xe as CmsNotificationServices, ho as CmsNumberField, De as CmsPeopleServices, de as CmsPlanningServices, ce as CmsPollsServices, g as CmsPreviewServices, ae as CmsProductivityPlanServices, h as CmsProfileServices, m as CmsPublicationsServices, Ie as CmsRecipesServices, to as CmsSearchField, He as CmsSectionsServices, go as CmsSelectField, _e as CmsSitesServices, _o as CmsTagsField, Ce as CmsTagsServices, vo as CmsTextField, Fr as CmsToast, Ir as CmsToastContext, Lr as CmsToastProvider, Ae as CmsTranscribeServices, he as CmsTriviasServices, ve as CmsUploadServices, ye as CmsUsersServices, re as CmsVideosServices, Te as CmsVodsServices, Me as CmsWorkpaperServices, oe as CmsZonesServices, la as CurrentUserPhotoProvider, Dr as DEFAULT_LOCALE, wi as DEFAULT_NEW_CONTENT_GROUPS, Zi as DEFAULT_PREVIEW_FORMATS, l as DEFAULT_SITE_ID, dr as DEFAULT_THEME_PREFERENCE, $r as DefaultCmsLink, yo as FieldRenderer, so as FieldShell, w as ITEM_DEFAULT_BG, ee as ITEM_HOVER_BG, Xn as LIB_VERSION, c as MENU_BG, ue as NETWORK_ERROR_CODES, ki as NewContentMenu, qa as NextCmsMuiProvider, Gi as NotificationsMenu, Qi as PreviewMenu, va as ProfileMenu, Er as SUPPORTED_LOCALES, $a as SelectDropdown, or as SelectStyles, Pa as Sidebar, mi as SidebarRail, Xi as SimpleDropdown, xi as SiteSelectorMenu, ur as THEME_COLOR_SCHEME_ATTRIBUTE, lr as THEME_ENABLED_STORAGE_KEY, cr as THEME_MODE_STORAGE_KEY, Ca as TopBar, fa as UserAvatar, xo as buildDefaultSearchFields, Fe as classifyNetworkError, ir as cmsButtonDivider, rr as cmsButtonHoverBg, nr as cmsButtonSurface, A as cmsColors, sr as cmsFontFaces, v as cmsNetworkBridge, Le as commonErrorsEn, be as commonErrorsEs, se as commonErrorsPt, Oe as confidenceColors, tr as createAppTheme, vr as createTranslator, Sr as defaultLocaleCatalog, Se as editorialOpportunityColors, yr as enMessages, br as esMessages, me as feedbackBadgeColors, j as feedbackColors, Q as fieldStyles, u as filterModulesByPermissions, f as findPublicationBySlug, ke as findPublicationLabel, O as fontFamilies, y as formatSiteDateTime, d as getAllPublications, ie as getCommonError, te as getDefaultPublicationSlug, fr as getEffectiveThemeMode, jr as getIntlLocaleTag, we as getNetworkErrorCodeFromResult, ia as getProfileAvatarSrc, aa as getProfileDisplayName, Ge as getSiteNow, p as hasModulePermission, ze as interestColors, je as isNetworkErrorCode, Ti as isNewContentItemVisible, ge as isRetryableNetworkCode, Tr as mergeAppMessages, Cr as mergeMessages, Ee as normalizeErrorCode, Or as normalizeLocale, We as notificationColors, n as parseGmtOffsetMinutes, E as parsePublicationSlug, xr as ptMessages, k as radii, mr as readEffectiveThemeMode, pr as readThemePreference, ta as resolveCmsAssetUrl, ea as resolveCmsOrigin, Ne as resolveErrorSeverity, e as resumeAxiosOnNetworkError, M as shadows, x as sizes, i as sourceColors, Ve as stateColors, vi as submitLegacyAdminPage, ar as sxPillButton, T as toSiteWallClock, D as toTestId, Kr as useCmsNetworkStatus, zr as useCmsToast, W as useCmsTranslation, ua as useCurrentUserPhoto, Qr as useResilientAction, C as userStatusColors, hr as writeThemePreference };
|
|
7963
8061
|
|
|
7964
8062
|
//# sourceMappingURL=index.js.map
|