@simoncomputing/mui-bueno-v2 0.26.3 → 0.26.4
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/CHANGELOG.md +8 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +165 -165
- package/dist/index.umd.js +7 -7
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -387,7 +387,7 @@ const wV = "0px", CV = "600px", SV = "960px", TV = "1100px", kV = "1536px", EV =
|
|
|
387
387
|
}
|
|
388
388
|
};
|
|
389
389
|
var qO, KO, YO, GO, JO, XO, ZO, QO, eM, tM, nM, rM;
|
|
390
|
-
const
|
|
390
|
+
const kpe = gM({
|
|
391
391
|
...zn,
|
|
392
392
|
palette: {
|
|
393
393
|
...zn.palette,
|
|
@@ -458,7 +458,7 @@ const Spe = gM({
|
|
|
458
458
|
}
|
|
459
459
|
});
|
|
460
460
|
var oM, iM, sM, aM, lM, cM, uM, dM, fM, pM, hM, mM;
|
|
461
|
-
const
|
|
461
|
+
const Epe = gM({
|
|
462
462
|
...zn,
|
|
463
463
|
palette: {
|
|
464
464
|
...zn.palette,
|
|
@@ -43037,7 +43037,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
43037
43037
|
})(su, su.exports)), su.exports;
|
|
43038
43038
|
}
|
|
43039
43039
|
var La = mre();
|
|
43040
|
-
const wD = /* @__PURE__ */ cr(La),
|
|
43040
|
+
const wD = /* @__PURE__ */ cr(La), Rpe = (t) => {
|
|
43041
43041
|
const {
|
|
43042
43042
|
name: e,
|
|
43043
43043
|
onInputChange: n,
|
|
@@ -43093,7 +43093,7 @@ const wD = /* @__PURE__ */ cr(La), Mpe = (t) => {
|
|
|
43093
43093
|
...m
|
|
43094
43094
|
}
|
|
43095
43095
|
);
|
|
43096
|
-
},
|
|
43096
|
+
}, Ipe = (t) => {
|
|
43097
43097
|
const {
|
|
43098
43098
|
name: e,
|
|
43099
43099
|
label: n = Kn(e),
|
|
@@ -43291,7 +43291,7 @@ const wD = /* @__PURE__ */ cr(La), Mpe = (t) => {
|
|
|
43291
43291
|
/* @__PURE__ */ w(Zr, { name: e, id: `${e}-err`, errorMode: y })
|
|
43292
43292
|
] })
|
|
43293
43293
|
] });
|
|
43294
|
-
},
|
|
43294
|
+
}, Dpe = (t) => {
|
|
43295
43295
|
const {
|
|
43296
43296
|
name: e,
|
|
43297
43297
|
checkboxes: n = [],
|
|
@@ -43493,7 +43493,7 @@ const wD = /* @__PURE__ */ cr(La), Mpe = (t) => {
|
|
|
43493
43493
|
d: "M15 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V7zM6 20V4h8v4h4v12zm10-10v5c0 2.21-1.79 4-4 4s-4-1.79-4-4V8.5c0-1.47 1.26-2.64 2.76-2.49 1.3.13 2.24 1.32 2.24 2.63V15h-2V8.5c0-.28-.22-.5-.5-.5s-.5.22-.5.5V15c0 1.1.9 2 2 2s2-.9 2-2v-5z"
|
|
43494
43494
|
}), "FilePresent"), P1 = Pe(/* @__PURE__ */ w("path", {
|
|
43495
43495
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"
|
|
43496
|
-
}), "Delete"),
|
|
43496
|
+
}), "Delete"), Ape = (t) => {
|
|
43497
43497
|
const { name: e } = t, [n, , r] = Zn({ name: e }), { setValue: o } = r, i = n.value;
|
|
43498
43498
|
return /* @__PURE__ */ w("div", { style: { width: "100%" }, children: i.map((s) => /* @__PURE__ */ w(Ea, { sx: { margin: "10px 0px" }, children: /* @__PURE__ */ Q(
|
|
43499
43499
|
jb,
|
|
@@ -43782,7 +43782,7 @@ function Vre(t, e, n) {
|
|
|
43782
43782
|
const r = document.createElement("script");
|
|
43783
43783
|
r.setAttribute("async", ""), r.setAttribute("id", n), r.src = t, r.onerror = () => console.error(`Failed to load script: ${t}`), e.appendChild(r);
|
|
43784
43784
|
}
|
|
43785
|
-
const Hc = { current: null },
|
|
43785
|
+
const Hc = { current: null }, Ppe = (t) => {
|
|
43786
43786
|
const {
|
|
43787
43787
|
name: e,
|
|
43788
43788
|
label: n = Kn(e),
|
|
@@ -44001,7 +44001,7 @@ const Hc = { current: null }, Dpe = (t) => {
|
|
|
44001
44001
|
),
|
|
44002
44002
|
/* @__PURE__ */ w(Zr, { name: e, id: `${e}-err`, errorMode: m })
|
|
44003
44003
|
] });
|
|
44004
|
-
},
|
|
44004
|
+
}, Npe = (t) => {
|
|
44005
44005
|
const {
|
|
44006
44006
|
name: e,
|
|
44007
44007
|
label: n = Kn(e),
|
|
@@ -44034,7 +44034,7 @@ const Hc = { current: null }, Dpe = (t) => {
|
|
|
44034
44034
|
}
|
|
44035
44035
|
)
|
|
44036
44036
|
] });
|
|
44037
|
-
},
|
|
44037
|
+
}, $pe = (t) => {
|
|
44038
44038
|
const {
|
|
44039
44039
|
name: e,
|
|
44040
44040
|
options: n = [],
|
|
@@ -44132,7 +44132,7 @@ const Hc = { current: null }, Dpe = (t) => {
|
|
|
44132
44132
|
/* @__PURE__ */ w(Zr, { name: e, id: `${e}-err`, errorMode: p })
|
|
44133
44133
|
] })
|
|
44134
44134
|
] });
|
|
44135
|
-
},
|
|
44135
|
+
}, Lpe = (t) => {
|
|
44136
44136
|
const {
|
|
44137
44137
|
name: e,
|
|
44138
44138
|
label: n = Kn(e),
|
|
@@ -57261,7 +57261,7 @@ const wO = (t) => {
|
|
|
57261
57261
|
/* @__PURE__ */ w(Zr, { name: e, id: `${e}-err`, errorMode: p })
|
|
57262
57262
|
] })
|
|
57263
57263
|
] });
|
|
57264
|
-
},
|
|
57264
|
+
}, Fpe = (t) => {
|
|
57265
57265
|
const {
|
|
57266
57266
|
nameTo: e,
|
|
57267
57267
|
nameFrom: n,
|
|
@@ -59294,7 +59294,7 @@ function Ade({ placeholder: t } = {}) {
|
|
|
59294
59294
|
function IO(t) {
|
|
59295
59295
|
return Array.from(t).filter((e) => (e.type || "").toLowerCase().startsWith("image/"));
|
|
59296
59296
|
}
|
|
59297
|
-
const
|
|
59297
|
+
const Bpe = (t) => {
|
|
59298
59298
|
const e = Ade({
|
|
59299
59299
|
placeholder: "Add your own content here..."
|
|
59300
59300
|
});
|
|
@@ -61960,7 +61960,7 @@ const Sfe = (t) => {
|
|
|
61960
61960
|
pasteExistingCitation: ""
|
|
61961
61961
|
},
|
|
61962
61962
|
onSubmit: ({ pasteExistingCitation: i }) => {
|
|
61963
|
-
r(
|
|
61963
|
+
r(Efe(i)), o();
|
|
61964
61964
|
},
|
|
61965
61965
|
children: ({ values: i, submitForm: s, setFieldValue: a }) => /* @__PURE__ */ Q(Ql, { flexWrap: "wrap", justifyContent: "flex-end", children: [
|
|
61966
61966
|
/* @__PURE__ */ w(
|
|
@@ -62011,8 +62011,8 @@ const Sfe = (t) => {
|
|
|
62011
62011
|
] })
|
|
62012
62012
|
}
|
|
62013
62013
|
);
|
|
62014
|
-
}, Tfe = (t) => {
|
|
62015
|
-
const e = t.split("|").map((f) => f.trim()).filter(Boolean), n = e.findIndex((f) => f.
|
|
62014
|
+
}, Tfe = ["https://", "http://", "www."], kfe = new RegExp(Tfe.join("|")), Efe = (t) => {
|
|
62015
|
+
const e = t.replace(/\.\s*$/, "").split("|").map((f) => f.trim()).filter(Boolean), n = e.findIndex((f) => f.match(kfe)), r = e.findIndex((f) => f.toUpperCase().startsWith("ACCESSED")), o = e.findIndex((f) => /\bSOURCE\b/.test(f.toUpperCase()));
|
|
62016
62016
|
let s = [n, r, o].find((f) => f !== -1) ?? e.length;
|
|
62017
62017
|
const a = s - 1, l = s - 2;
|
|
62018
62018
|
return {
|
|
@@ -62020,11 +62020,11 @@ const Sfe = (t) => {
|
|
|
62020
62020
|
source: Kf(e, l),
|
|
62021
62021
|
title: Kf(e, a),
|
|
62022
62022
|
url: Kf(e, n),
|
|
62023
|
-
accessedAt:
|
|
62024
|
-
classification:
|
|
62023
|
+
accessedAt: Ofe(e, r),
|
|
62024
|
+
classification: Mfe(e, o),
|
|
62025
62025
|
details: Kf(e, o)
|
|
62026
62026
|
};
|
|
62027
|
-
}, Kf = (t, e) => e < 0 || e >= t.length ? "" : t[e],
|
|
62027
|
+
}, Kf = (t, e) => e < 0 || e >= t.length ? "" : t[e], Ofe = (t, e) => e < 0 || e >= t.length ? "" : Lue(t[e].toUpperCase().replace(/^ACCESSED\s+/, "")), Mfe = (t, e) => e < 0 || e >= t.length ? "" : t[e].toUpperCase().includes("PUBLIC") ? "Public Source" : "Proprietary Source", _fe = (t) => {
|
|
62028
62028
|
const { title: e, onSave: n, onCancel: r, onClose: o, modifyCitation: i, readOnly: s = !1, showCloseBtn: a = !1 } = t, l = an(null), [u, f] = gt(!1), [p, m] = gt(!1), y = an(null), [b, g] = gt(!1), [v, C] = gt({
|
|
62029
62029
|
type: "Url",
|
|
62030
62030
|
source: "",
|
|
@@ -62102,7 +62102,7 @@ const Sfe = (t) => {
|
|
|
62102
62102
|
name: "classification",
|
|
62103
62103
|
row: !0,
|
|
62104
62104
|
required: !0,
|
|
62105
|
-
radios:
|
|
62105
|
+
radios: Rfe
|
|
62106
62106
|
}
|
|
62107
62107
|
)
|
|
62108
62108
|
] }),
|
|
@@ -62136,7 +62136,7 @@ const Sfe = (t) => {
|
|
|
62136
62136
|
}
|
|
62137
62137
|
)
|
|
62138
62138
|
] });
|
|
62139
|
-
},
|
|
62139
|
+
}, Rfe = [
|
|
62140
62140
|
{
|
|
62141
62141
|
label: "Public Source",
|
|
62142
62142
|
value: "Public Source",
|
|
@@ -62147,7 +62147,7 @@ const Sfe = (t) => {
|
|
|
62147
62147
|
value: "Proprietary Source",
|
|
62148
62148
|
helperText: "For private, sensitive, or access-controlled content. Use a VPN, or take extra precautions, when accessing to protect your privacy."
|
|
62149
62149
|
}
|
|
62150
|
-
],
|
|
62150
|
+
], Ife = (t) => {
|
|
62151
62151
|
const {
|
|
62152
62152
|
title: e,
|
|
62153
62153
|
onSave: n,
|
|
@@ -62290,20 +62290,20 @@ const Sfe = (t) => {
|
|
|
62290
62290
|
}
|
|
62291
62291
|
);
|
|
62292
62292
|
};
|
|
62293
|
-
function
|
|
62293
|
+
function Dfe(t) {
|
|
62294
62294
|
return Ke("MuiAlert", t);
|
|
62295
62295
|
}
|
|
62296
|
-
const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSuccess", "colorInfo", "colorWarning", "colorError", "filledSuccess", "filledInfo", "filledWarning", "filledError", "outlined", "outlinedSuccess", "outlinedInfo", "outlinedWarning", "outlinedError", "standard", "standardSuccess", "standardInfo", "standardWarning", "standardError"]),
|
|
62296
|
+
const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSuccess", "colorInfo", "colorWarning", "colorError", "filledSuccess", "filledInfo", "filledWarning", "filledError", "outlined", "outlinedSuccess", "outlinedInfo", "outlinedWarning", "outlinedError", "standard", "standardSuccess", "standardInfo", "standardWarning", "standardError"]), Afe = Pe(/* @__PURE__ */ w("path", {
|
|
62297
62297
|
d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
|
|
62298
|
-
}), "SuccessOutlined"),
|
|
62298
|
+
}), "SuccessOutlined"), Pfe = Pe(/* @__PURE__ */ w("path", {
|
|
62299
62299
|
d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
62300
|
-
}), "ReportProblemOutlined"),
|
|
62300
|
+
}), "ReportProblemOutlined"), Nfe = Pe(/* @__PURE__ */ w("path", {
|
|
62301
62301
|
d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
62302
|
-
}), "ErrorOutline"),
|
|
62302
|
+
}), "ErrorOutline"), $fe = Pe(/* @__PURE__ */ w("path", {
|
|
62303
62303
|
d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
|
|
62304
|
-
}), "InfoOutlined"),
|
|
62304
|
+
}), "InfoOutlined"), Lfe = Pe(/* @__PURE__ */ w("path", {
|
|
62305
62305
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
62306
|
-
}), "Close"),
|
|
62306
|
+
}), "Close"), Ffe = (t) => {
|
|
62307
62307
|
const {
|
|
62308
62308
|
variant: e,
|
|
62309
62309
|
color: n,
|
|
@@ -62315,8 +62315,8 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
|
|
|
62315
62315
|
message: ["message"],
|
|
62316
62316
|
action: ["action"]
|
|
62317
62317
|
};
|
|
62318
|
-
return qe(i,
|
|
62319
|
-
},
|
|
62318
|
+
return qe(i, Dfe, o);
|
|
62319
|
+
}, Bfe = te(zs, {
|
|
62320
62320
|
name: "MuiAlert",
|
|
62321
62321
|
slot: "Root",
|
|
62322
62322
|
overridesResolver: (t, e) => {
|
|
@@ -62379,7 +62379,7 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
|
|
|
62379
62379
|
}
|
|
62380
62380
|
}))]
|
|
62381
62381
|
};
|
|
62382
|
-
})),
|
|
62382
|
+
})), Vfe = te("div", {
|
|
62383
62383
|
name: "MuiAlert",
|
|
62384
62384
|
slot: "Icon",
|
|
62385
62385
|
overridesResolver: (t, e) => e.icon
|
|
@@ -62389,7 +62389,7 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
|
|
|
62389
62389
|
display: "flex",
|
|
62390
62390
|
fontSize: 22,
|
|
62391
62391
|
opacity: 0.9
|
|
62392
|
-
}),
|
|
62392
|
+
}), zfe = te("div", {
|
|
62393
62393
|
name: "MuiAlert",
|
|
62394
62394
|
slot: "Message",
|
|
62395
62395
|
overridesResolver: (t, e) => e.message
|
|
@@ -62397,7 +62397,7 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
|
|
|
62397
62397
|
padding: "8px 0",
|
|
62398
62398
|
minWidth: 0,
|
|
62399
62399
|
overflow: "auto"
|
|
62400
|
-
}),
|
|
62400
|
+
}), Hfe = te("div", {
|
|
62401
62401
|
name: "MuiAlert",
|
|
62402
62402
|
slot: "Action",
|
|
62403
62403
|
overridesResolver: (t, e) => e.action
|
|
@@ -62408,16 +62408,16 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
|
|
|
62408
62408
|
marginLeft: "auto",
|
|
62409
62409
|
marginRight: -8
|
|
62410
62410
|
}), jO = {
|
|
62411
|
-
success: /* @__PURE__ */ w(
|
|
62411
|
+
success: /* @__PURE__ */ w(Afe, {
|
|
62412
62412
|
fontSize: "inherit"
|
|
62413
62413
|
}),
|
|
62414
|
-
warning: /* @__PURE__ */ w(
|
|
62414
|
+
warning: /* @__PURE__ */ w(Pfe, {
|
|
62415
62415
|
fontSize: "inherit"
|
|
62416
62416
|
}),
|
|
62417
|
-
error: /* @__PURE__ */ w(
|
|
62417
|
+
error: /* @__PURE__ */ w(Nfe, {
|
|
62418
62418
|
fontSize: "inherit"
|
|
62419
62419
|
}),
|
|
62420
|
-
info: /* @__PURE__ */ w(
|
|
62420
|
+
info: /* @__PURE__ */ w($fe, {
|
|
62421
62421
|
fontSize: "inherit"
|
|
62422
62422
|
})
|
|
62423
62423
|
}, eP = /* @__PURE__ */ D.forwardRef(function(e, n) {
|
|
@@ -62447,7 +62447,7 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
|
|
|
62447
62447
|
severity: g,
|
|
62448
62448
|
variant: k,
|
|
62449
62449
|
colorSeverity: l || g
|
|
62450
|
-
}, O =
|
|
62450
|
+
}, O = Ffe(S), R = {
|
|
62451
62451
|
slots: {
|
|
62452
62452
|
closeButton: u.CloseButton,
|
|
62453
62453
|
closeIcon: u.CloseIcon,
|
|
@@ -62461,7 +62461,7 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
|
|
|
62461
62461
|
ref: n,
|
|
62462
62462
|
shouldForwardComponentProp: !0,
|
|
62463
62463
|
className: ge(O.root, s),
|
|
62464
|
-
elementType:
|
|
62464
|
+
elementType: Bfe,
|
|
62465
62465
|
externalForwardedProps: {
|
|
62466
62466
|
...R,
|
|
62467
62467
|
...T
|
|
@@ -62473,17 +62473,17 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
|
|
|
62473
62473
|
}
|
|
62474
62474
|
}), [V, M] = Rt("icon", {
|
|
62475
62475
|
className: O.icon,
|
|
62476
|
-
elementType:
|
|
62476
|
+
elementType: Vfe,
|
|
62477
62477
|
externalForwardedProps: R,
|
|
62478
62478
|
ownerState: S
|
|
62479
62479
|
}), [L, z] = Rt("message", {
|
|
62480
62480
|
className: O.message,
|
|
62481
|
-
elementType:
|
|
62481
|
+
elementType: zfe,
|
|
62482
62482
|
externalForwardedProps: R,
|
|
62483
62483
|
ownerState: S
|
|
62484
62484
|
}), [B, A] = Rt("action", {
|
|
62485
62485
|
className: O.action,
|
|
62486
|
-
elementType:
|
|
62486
|
+
elementType: Hfe,
|
|
62487
62487
|
externalForwardedProps: R,
|
|
62488
62488
|
ownerState: S
|
|
62489
62489
|
}), [_, I] = Rt("closeButton", {
|
|
@@ -62491,7 +62491,7 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
|
|
|
62491
62491
|
externalForwardedProps: R,
|
|
62492
62492
|
ownerState: S
|
|
62493
62493
|
}), [F, W] = Rt("closeIcon", {
|
|
62494
|
-
elementType:
|
|
62494
|
+
elementType: Lfe,
|
|
62495
62495
|
externalForwardedProps: R,
|
|
62496
62496
|
ownerState: S
|
|
62497
62497
|
});
|
|
@@ -62676,11 +62676,11 @@ const wd = (t) => {
|
|
|
62676
62676
|
]
|
|
62677
62677
|
}
|
|
62678
62678
|
);
|
|
62679
|
-
},
|
|
62679
|
+
}, Wfe = (t) => /* @__PURE__ */ w(wd, { severity: "error", ...t }), jfe = (t) => /* @__PURE__ */ w(wd, { severity: "success", ...t }), Ufe = (t) => {
|
|
62680
62680
|
const { alert: e, setAlert: n } = t, r = () => n(void 0);
|
|
62681
62681
|
return /* @__PURE__ */ Q(Ln, { children: [
|
|
62682
|
-
(e == null ? void 0 : e.type) === "Error" && /* @__PURE__ */ w(
|
|
62683
|
-
(e == null ? void 0 : e.type) === "Success" && /* @__PURE__ */ w(
|
|
62682
|
+
(e == null ? void 0 : e.type) === "Error" && /* @__PURE__ */ w(Wfe, { "data-testid": "citation-menu-error", onClose: r, title: e.title, children: e.message.toString() }),
|
|
62683
|
+
(e == null ? void 0 : e.type) === "Success" && /* @__PURE__ */ w(jfe, { "data-testid": "citation-menu-success", onClose: r, children: e.message })
|
|
62684
62684
|
] });
|
|
62685
62685
|
};
|
|
62686
62686
|
function tP({
|
|
@@ -62803,7 +62803,7 @@ function tP({
|
|
|
62803
62803
|
canSearch: k
|
|
62804
62804
|
}
|
|
62805
62805
|
), le = /* @__PURE__ */ w(
|
|
62806
|
-
|
|
62806
|
+
_fe,
|
|
62807
62807
|
{
|
|
62808
62808
|
modifyCitation: N,
|
|
62809
62809
|
onSave: F,
|
|
@@ -62817,7 +62817,7 @@ function tP({
|
|
|
62817
62817
|
showCloseBtn: m
|
|
62818
62818
|
}
|
|
62819
62819
|
), ee = /* @__PURE__ */ w(
|
|
62820
|
-
|
|
62820
|
+
Ife,
|
|
62821
62821
|
{
|
|
62822
62822
|
onSave: F,
|
|
62823
62823
|
onCancel: () => L(
|
|
@@ -62831,7 +62831,7 @@ function tP({
|
|
|
62831
62831
|
readOnly: T === "View Attachment",
|
|
62832
62832
|
showCloseBtn: m
|
|
62833
62833
|
}
|
|
62834
|
-
), ne = /* @__PURE__ */ w(
|
|
62834
|
+
), ne = /* @__PURE__ */ w(Ufe, { alert: V, setAlert: M }), ae = T === "Add Citation" || T === "Edit Citation" || T === "View Citation", me = T === "Add Attachment" || T === "Edit Attachment" || T === "View Attachment";
|
|
62835
62835
|
if (m) {
|
|
62836
62836
|
let K = null;
|
|
62837
62837
|
return !m || T === "Insert Citation/Attachment(s)" ? K = re : ae ? K = le : me && (K = ee), /* @__PURE__ */ Q(Ne, { children: [
|
|
@@ -62848,7 +62848,7 @@ function tP({
|
|
|
62848
62848
|
] }) })
|
|
62849
62849
|
] });
|
|
62850
62850
|
}
|
|
62851
|
-
function
|
|
62851
|
+
function qfe({
|
|
62852
62852
|
getSelectedCitationsPaginated: t,
|
|
62853
62853
|
getCitationsPaginated: e,
|
|
62854
62854
|
readOnly: n,
|
|
@@ -62868,7 +62868,7 @@ function jfe({
|
|
|
62868
62868
|
}
|
|
62869
62869
|
);
|
|
62870
62870
|
}
|
|
62871
|
-
const
|
|
62871
|
+
const Kfe = bM("div", {
|
|
62872
62872
|
name: "CitationBubbleMenu",
|
|
62873
62873
|
slot: "content",
|
|
62874
62874
|
overridesResolver: (t, e) => e.content
|
|
@@ -62880,7 +62880,7 @@ const Ufe = bM("div", {
|
|
|
62880
62880
|
border: `1px solid ${t.palette.grey[e ? 700 : 200]}`
|
|
62881
62881
|
};
|
|
62882
62882
|
});
|
|
62883
|
-
function
|
|
62883
|
+
function Yfe({
|
|
62884
62884
|
getCitationsPaginated: t,
|
|
62885
62885
|
getSelectedCitationsPaginated: e,
|
|
62886
62886
|
onCreateCitation: n,
|
|
@@ -62917,8 +62917,8 @@ function qfe({
|
|
|
62917
62917
|
open: b,
|
|
62918
62918
|
...y.bubbleMenuOptions,
|
|
62919
62919
|
...p,
|
|
62920
|
-
children: /* @__PURE__ */ w(
|
|
62921
|
-
|
|
62920
|
+
children: /* @__PURE__ */ w(Kfe, { children: /* @__PURE__ */ w(
|
|
62921
|
+
qfe,
|
|
62922
62922
|
{
|
|
62923
62923
|
getCitationsPaginated: t,
|
|
62924
62924
|
getSelectedCitationsPaginated: (O) => e(O, g),
|
|
@@ -62940,7 +62940,7 @@ function qfe({
|
|
|
62940
62940
|
}
|
|
62941
62941
|
) : null;
|
|
62942
62942
|
}
|
|
62943
|
-
const
|
|
62943
|
+
const Gfe = () => xn.create({
|
|
62944
62944
|
name: "citationBubbleMenuHandler",
|
|
62945
62945
|
addStorage() {
|
|
62946
62946
|
return {
|
|
@@ -62969,7 +62969,7 @@ const Kfe = () => xn.create({
|
|
|
62969
62969
|
};
|
|
62970
62970
|
}
|
|
62971
62971
|
});
|
|
62972
|
-
function
|
|
62972
|
+
function Jfe(t) {
|
|
62973
62973
|
const e = Et(), n = an(null);
|
|
62974
62974
|
return /* @__PURE__ */ w(
|
|
62975
62975
|
Tt,
|
|
@@ -62998,7 +62998,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
62998
62998
|
const t = Xu(nP);
|
|
62999
62999
|
if (!t) throw new Error("useSync must be used inside CitationFieldProvider");
|
|
63000
63000
|
return t;
|
|
63001
|
-
},
|
|
63001
|
+
}, Xfe = ({
|
|
63002
63002
|
node: t,
|
|
63003
63003
|
HTMLAttributes: e,
|
|
63004
63004
|
selected: n,
|
|
@@ -63052,7 +63052,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63052
63052
|
)
|
|
63053
63053
|
}
|
|
63054
63054
|
) });
|
|
63055
|
-
},
|
|
63055
|
+
}, Zfe = ln.create({
|
|
63056
63056
|
name: "citation",
|
|
63057
63057
|
group: "inline",
|
|
63058
63058
|
inline: !0,
|
|
@@ -63079,7 +63079,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63079
63079
|
return ["citation", kt(t)];
|
|
63080
63080
|
},
|
|
63081
63081
|
addNodeView() {
|
|
63082
|
-
return M1(
|
|
63082
|
+
return M1(Xfe);
|
|
63083
63083
|
},
|
|
63084
63084
|
addProseMirrorPlugins() {
|
|
63085
63085
|
return [
|
|
@@ -63107,7 +63107,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63107
63107
|
}
|
|
63108
63108
|
};
|
|
63109
63109
|
}
|
|
63110
|
-
}),
|
|
63110
|
+
}), Qfe = (t) => /* @__PURE__ */ w(gre, { name: t.name, label: "Not Applicable", errorMode: "hidden" }), Vpe = (t) => {
|
|
63111
63111
|
const {
|
|
63112
63112
|
name: e,
|
|
63113
63113
|
label: n = Kn(e),
|
|
@@ -63136,8 +63136,8 @@ const nP = tc(void 0), rP = () => {
|
|
|
63136
63136
|
FA.configure({
|
|
63137
63137
|
placeholder: C
|
|
63138
63138
|
}),
|
|
63139
|
-
|
|
63140
|
-
|
|
63139
|
+
Gfe(),
|
|
63140
|
+
Zfe.configure({
|
|
63141
63141
|
citationMaxLength: a
|
|
63142
63142
|
})
|
|
63143
63143
|
], [N, $, V] = Zn({
|
|
@@ -63193,7 +63193,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63193
63193
|
children: [
|
|
63194
63194
|
/* @__PURE__ */ Q(Ne, { display: "flex", flexDirection: "row", justifyContent: "space-between", alignItems: "center", children: [
|
|
63195
63195
|
!r && /* @__PURE__ */ w(nv, { htmlFor: `citation-field_${e}`, required: o, children: n }),
|
|
63196
|
-
k && /* @__PURE__ */ w(
|
|
63196
|
+
k && /* @__PURE__ */ w(Qfe, { name: k })
|
|
63197
63197
|
] }),
|
|
63198
63198
|
/* @__PURE__ */ w(
|
|
63199
63199
|
gD,
|
|
@@ -63202,7 +63202,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63202
63202
|
extensions: R,
|
|
63203
63203
|
content: L,
|
|
63204
63204
|
editable: !pe,
|
|
63205
|
-
renderControls: pe ? void 0 : () => /* @__PURE__ */ w(C1, { children: /* @__PURE__ */ w(
|
|
63205
|
+
renderControls: pe ? void 0 : () => /* @__PURE__ */ w(C1, { children: /* @__PURE__ */ w(Jfe, {}) }),
|
|
63206
63206
|
onBlur: () => W(),
|
|
63207
63207
|
onUpdate: q,
|
|
63208
63208
|
RichTextFieldProps: {
|
|
@@ -63215,7 +63215,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63215
63215
|
}
|
|
63216
63216
|
},
|
|
63217
63217
|
children: () => /* @__PURE__ */ w(
|
|
63218
|
-
|
|
63218
|
+
Yfe,
|
|
63219
63219
|
{
|
|
63220
63220
|
getCitationsPaginated: (ue) => l(ue).then((J) => (A(J.data), J)),
|
|
63221
63221
|
getSelectedCitationsPaginated: u,
|
|
@@ -63237,10 +63237,10 @@ const nP = tc(void 0), rP = () => {
|
|
|
63237
63237
|
]
|
|
63238
63238
|
}
|
|
63239
63239
|
);
|
|
63240
|
-
},
|
|
63240
|
+
}, zpe = (t) => {
|
|
63241
63241
|
const { name: e = "submit" } = t;
|
|
63242
63242
|
return /* @__PURE__ */ w(Gr, { name: e, type: "submit", ...t });
|
|
63243
|
-
},
|
|
63243
|
+
}, Hpe = (t) => {
|
|
63244
63244
|
const { label: e = "Return to Top", icon: n = lp, scrollThresholdPx: r = 100 } = t, o = K3({
|
|
63245
63245
|
threshold: r
|
|
63246
63246
|
}), i = Ar(() => {
|
|
@@ -63271,7 +63271,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63271
63271
|
)
|
|
63272
63272
|
}
|
|
63273
63273
|
) });
|
|
63274
|
-
},
|
|
63274
|
+
}, epe = (t) => {
|
|
63275
63275
|
const { label: e, menuOptions: n = [], icon: r } = t, o = nc(), [i, s] = D.useState(null), a = !!i, l = (p) => {
|
|
63276
63276
|
s(p.currentTarget);
|
|
63277
63277
|
}, u = () => {
|
|
@@ -63302,7 +63302,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63302
63302
|
/* @__PURE__ */ w(xM, { primary: p.label })
|
|
63303
63303
|
] }, p.label)) })
|
|
63304
63304
|
] });
|
|
63305
|
-
},
|
|
63305
|
+
}, Wpe = () => {
|
|
63306
63306
|
const { values: t, errors: e, status: n } = kM(), { palette: r } = Xn();
|
|
63307
63307
|
return /* @__PURE__ */ w(Ba, { style: { backgroundColor: r.mode === "dark" ? "#303030" : "#f0f0f0", margin: "10px 0" }, children: /* @__PURE__ */ Q(vM, { children: [
|
|
63308
63308
|
/* @__PURE__ */ Q(Yf, { children: [
|
|
@@ -63325,7 +63325,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63325
63325
|
/* @__PURE__ */ w("pre", { children: JSON.stringify(n, null, 2) })
|
|
63326
63326
|
] })
|
|
63327
63327
|
] }) });
|
|
63328
|
-
},
|
|
63328
|
+
}, jpe = (t) => {
|
|
63329
63329
|
const { steps: e, orientation: n, inlineLabel: r = n == "vertical", isResponsive: o = !1 } = t, { width: i } = zA();
|
|
63330
63330
|
let s = !r, a = n;
|
|
63331
63331
|
o && (n && console.warn(
|
|
@@ -63337,7 +63337,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63337
63337
|
...Sr({ ...t }, l)
|
|
63338
63338
|
};
|
|
63339
63339
|
return /* @__PURE__ */ w(X3, { ...u, children: e.map((f) => /* @__PURE__ */ w(Z3, { children: /* @__PURE__ */ w(Q3, { children: f }) }, f)) });
|
|
63340
|
-
},
|
|
63340
|
+
}, Upe = (t) => {
|
|
63341
63341
|
const {
|
|
63342
63342
|
name: e,
|
|
63343
63343
|
label: n = Kn(e),
|
|
@@ -63375,7 +63375,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63375
63375
|
name: e,
|
|
63376
63376
|
render: (T) => /* @__PURE__ */ Q("div", { children: [
|
|
63377
63377
|
C.map((S, O) => /* @__PURE__ */ w(He.Fragment, { children: /* @__PURE__ */ w(
|
|
63378
|
-
|
|
63378
|
+
tpe,
|
|
63379
63379
|
{
|
|
63380
63380
|
variant: l,
|
|
63381
63381
|
content: /* @__PURE__ */ Q(
|
|
@@ -63415,7 +63415,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63415
63415
|
}
|
|
63416
63416
|
)
|
|
63417
63417
|
] });
|
|
63418
|
-
},
|
|
63418
|
+
}, tpe = ({ variant: t, content: e }) => {
|
|
63419
63419
|
switch (t) {
|
|
63420
63420
|
case "card":
|
|
63421
63421
|
return /* @__PURE__ */ w(Ea, { "data-testid": "repeatable-form-group_card", sx: { padding: "8px", marginBottom: "8px" }, children: /* @__PURE__ */ w(jb, { children: e }) });
|
|
@@ -63432,7 +63432,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63432
63432
|
case "none":
|
|
63433
63433
|
return e;
|
|
63434
63434
|
}
|
|
63435
|
-
},
|
|
63435
|
+
}, qpe = (t) => {
|
|
63436
63436
|
const {
|
|
63437
63437
|
confirmBtnLabel: e,
|
|
63438
63438
|
onConfirm: n,
|
|
@@ -63455,7 +63455,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63455
63455
|
...s
|
|
63456
63456
|
}
|
|
63457
63457
|
);
|
|
63458
|
-
},
|
|
63458
|
+
}, Kpe = (t) => {
|
|
63459
63459
|
const {
|
|
63460
63460
|
closeBtnLabel: e = "OK",
|
|
63461
63461
|
closeButtonPosition: n = "bottom",
|
|
@@ -63474,7 +63474,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63474
63474
|
...o
|
|
63475
63475
|
}
|
|
63476
63476
|
);
|
|
63477
|
-
},
|
|
63477
|
+
}, Ype = (t) => {
|
|
63478
63478
|
const {
|
|
63479
63479
|
primaryBtnLabel: e,
|
|
63480
63480
|
onPrimaryAction: n,
|
|
@@ -63512,29 +63512,29 @@ const nP = tc(void 0), rP = () => {
|
|
|
63512
63512
|
...u
|
|
63513
63513
|
}
|
|
63514
63514
|
);
|
|
63515
|
-
},
|
|
63515
|
+
}, npe = {
|
|
63516
63516
|
added: { icon: jre, label: "Added", color: "success" },
|
|
63517
63517
|
deleted: { icon: OD, label: "Deleted", color: "error" },
|
|
63518
63518
|
modified: { icon: Kre, label: "Modified", color: "info" }
|
|
63519
|
-
},
|
|
63519
|
+
}, rpe = (t, e) => /* @__PURE__ */ Q(Ln, { children: [
|
|
63520
63520
|
/* @__PURE__ */ w(Ne, { "data-testid": "diff-table-cell-removed", sx: { backgroundColor: Gp }, children: /* @__PURE__ */ w("s", { children: t }) }),
|
|
63521
63521
|
/* @__PURE__ */ w(Ne, { "data-testid": "diff-table-cell-added", sx: { backgroundColor: Yp }, children: /* @__PURE__ */ w("u", { children: e }) })
|
|
63522
|
-
] }),
|
|
63522
|
+
] }), ope = (t, e, n, r = !1) => {
|
|
63523
63523
|
var i;
|
|
63524
63524
|
let o = {};
|
|
63525
63525
|
for (const s of t)
|
|
63526
63526
|
if (!s.ignoreDiff) {
|
|
63527
63527
|
const a = Nl(s, e, r), l = Nl(s, n, r);
|
|
63528
|
-
(((i = s.isEqual) == null ? void 0 : i.call(s, e, n)) ?? wD.isEqual(a, l)) || (o[kn(s)] =
|
|
63528
|
+
(((i = s.isEqual) == null ? void 0 : i.call(s, e, n)) ?? wD.isEqual(a, l)) || (o[kn(s)] = rpe(a, l));
|
|
63529
63529
|
}
|
|
63530
63530
|
return o;
|
|
63531
|
-
},
|
|
63531
|
+
}, ipe = (t, e, n, r = !1, o) => {
|
|
63532
63532
|
const i = [];
|
|
63533
63533
|
let s = 0, a = 0, l = 0;
|
|
63534
63534
|
for (e.sort((u, f) => u.id - f.id), n.sort((u, f) => u.id - f.id); s < e.length && a < n.length; ) {
|
|
63535
63535
|
const u = e[s], f = n[a];
|
|
63536
63536
|
if (u.id === f.id) {
|
|
63537
|
-
const p =
|
|
63537
|
+
const p = ope(t, u, f, r);
|
|
63538
63538
|
(o == null ? void 0 : o(u, f)) ?? Object.keys(p).length === 0 ? l++ : i.push({
|
|
63539
63539
|
...f,
|
|
63540
63540
|
changeType: "modified",
|
|
@@ -63547,14 +63547,14 @@ const nP = tc(void 0), rP = () => {
|
|
|
63547
63547
|
for (; a < n.length; )
|
|
63548
63548
|
i.push({ ...n[a], changeType: "added" }), a++;
|
|
63549
63549
|
return { dataDiff: i, unmodifiedCount: l };
|
|
63550
|
-
},
|
|
63550
|
+
}, spe = (t) => {
|
|
63551
63551
|
const { beforeData: e, afterData: n, columns: r, isEqual: o, size: i, isMobileScreen: s } = t;
|
|
63552
63552
|
t.renderExpand != null && o == null && console.warn("DiffTable: isEqual prop should be provided when renderExpand is provided");
|
|
63553
|
-
const { dataDiff: a, unmodifiedCount: l } =
|
|
63553
|
+
const { dataDiff: a, unmodifiedCount: l } = ipe(r, e, n, s, o), u = [
|
|
63554
63554
|
{
|
|
63555
63555
|
fieldName: "changeType",
|
|
63556
63556
|
render: (f) => {
|
|
63557
|
-
const p =
|
|
63557
|
+
const p = npe[f];
|
|
63558
63558
|
return /* @__PURE__ */ w(
|
|
63559
63559
|
eV,
|
|
63560
63560
|
{
|
|
@@ -63593,7 +63593,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63593
63593
|
);
|
|
63594
63594
|
} : void 0
|
|
63595
63595
|
};
|
|
63596
|
-
},
|
|
63596
|
+
}, ape = ({
|
|
63597
63597
|
columns: t,
|
|
63598
63598
|
data: e,
|
|
63599
63599
|
emptyTableMsg: n = "No changes to display",
|
|
@@ -63616,13 +63616,13 @@ const nP = tc(void 0), rP = () => {
|
|
|
63616
63616
|
i,
|
|
63617
63617
|
" unmodified rows"
|
|
63618
63618
|
] }) })
|
|
63619
|
-
] }),
|
|
63620
|
-
const { emptyTableMsg: e = "No changes to display", ...n } = t, r = Ls(Xn().breakpoints.down("sm")), o = "beforeData" in n ?
|
|
63619
|
+
] }), Gpe = (t) => {
|
|
63620
|
+
const { emptyTableMsg: e = "No changes to display", ...n } = t, r = Ls(Xn().breakpoints.down("sm")), o = "beforeData" in n ? spe({
|
|
63621
63621
|
...n,
|
|
63622
63622
|
isMobileScreen: r
|
|
63623
63623
|
}) : n;
|
|
63624
|
-
return /* @__PURE__ */ w(
|
|
63625
|
-
},
|
|
63624
|
+
return /* @__PURE__ */ w(ape, { ...o, size: t.size });
|
|
63625
|
+
}, Jpe = (t) => {
|
|
63626
63626
|
const { featureMenuOptions: e = [], copyright: n, logo: r, sx: o = {}, fontColor: i = "primary" } = t, { palette: s } = Xn(), a = nc();
|
|
63627
63627
|
return /* @__PURE__ */ Q(
|
|
63628
63628
|
Ne,
|
|
@@ -63699,7 +63699,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63699
63699
|
]
|
|
63700
63700
|
}
|
|
63701
63701
|
);
|
|
63702
|
-
},
|
|
63702
|
+
}, lpe = (t) => {
|
|
63703
63703
|
const { menuOptionLists: e, anchor: n = "left", children: r } = t, { pathname: o } = cv(), i = nc(), [s, a] = gt(!1), l = (m, y) => /* @__PURE__ */ w(nV, { children: m.map((b) => /* @__PURE__ */ Q(
|
|
63704
63704
|
Dh,
|
|
63705
63705
|
{
|
|
@@ -63729,7 +63729,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63729
63729
|
/* @__PURE__ */ w(Hn, { onClick: () => a(!0), color: "inherit", title: "Menu", children: /* @__PURE__ */ w(toe, {}) }),
|
|
63730
63730
|
/* @__PURE__ */ w(tV, { "data-testid": "mobile-drawer", anchor: n, open: s, onClose: () => a(!1), children: /* @__PURE__ */ w(Ne, { sx: { width: 300 }, display: "flex", flexDirection: "column", justifyContent: "space-between", children: /* @__PURE__ */ w(Ne, { display: "flex", justifyContent: "start", flexDirection: "column", children: f }) }) })
|
|
63731
63731
|
] });
|
|
63732
|
-
},
|
|
63732
|
+
}, cpe = (t) => {
|
|
63733
63733
|
const { env: e, isProd: n } = t;
|
|
63734
63734
|
return n ? null : /* @__PURE__ */ w(
|
|
63735
63735
|
Ba,
|
|
@@ -63746,9 +63746,9 @@ const nP = tc(void 0), rP = () => {
|
|
|
63746
63746
|
] })
|
|
63747
63747
|
}
|
|
63748
63748
|
);
|
|
63749
|
-
},
|
|
63749
|
+
}, upe = (t) => {
|
|
63750
63750
|
const { displayName: e, userMenuOptions: n } = t;
|
|
63751
|
-
return /* @__PURE__ */ w(
|
|
63751
|
+
return /* @__PURE__ */ w(epe, { label: e, menuOptions: n, icon: /* @__PURE__ */ w(roe, {}) });
|
|
63752
63752
|
}, dx = (t) => {
|
|
63753
63753
|
const {
|
|
63754
63754
|
menuOptions: e,
|
|
@@ -63782,13 +63782,13 @@ const nP = tc(void 0), rP = () => {
|
|
|
63782
63782
|
},
|
|
63783
63783
|
l.label
|
|
63784
63784
|
)) });
|
|
63785
|
-
},
|
|
63785
|
+
}, dpe = (t) => {
|
|
63786
63786
|
const { featureMenuOptions: e = [], activeTabIdx: n, sx: r } = t;
|
|
63787
63787
|
return e.length > 0 && /* @__PURE__ */ w(Ba, { sx: { pl: 4, pr: 4, borderRadius: 0 }, "data-testid": "navBar", children: /* @__PURE__ */ w(dx, { menuOptions: e, activeTabIdx: n, sx: r }) });
|
|
63788
|
-
},
|
|
63788
|
+
}, fpe = (t) => {
|
|
63789
63789
|
const { onToggle: e } = t, { palette: n } = Xn(), r = n.mode === "dark";
|
|
63790
63790
|
return /* @__PURE__ */ w(Hn, { onClick: e, color: "inherit", title: "Dark Mode Toggle", children: r ? /* @__PURE__ */ w(ED, {}) : /* @__PURE__ */ w(TD, {}) });
|
|
63791
|
-
},
|
|
63791
|
+
}, Xpe = (t) => {
|
|
63792
63792
|
const {
|
|
63793
63793
|
envInfo: e,
|
|
63794
63794
|
headerRef: n,
|
|
@@ -63810,7 +63810,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63810
63810
|
);
|
|
63811
63811
|
S(N >= 0 ? N : void 0);
|
|
63812
63812
|
}, [C, o]);
|
|
63813
|
-
const O = s && /* @__PURE__ */ w(
|
|
63813
|
+
const O = s && /* @__PURE__ */ w(fpe, { onToggle: s }), R = s && (g || !g && l) ? [
|
|
63814
63814
|
{
|
|
63815
63815
|
icon: k ? /* @__PURE__ */ w(ED, {}) : /* @__PURE__ */ w(TD, {}),
|
|
63816
63816
|
label: `Switch to ${k ? "Light" : "Dark"} mode`,
|
|
@@ -63819,7 +63819,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63819
63819
|
...i
|
|
63820
63820
|
] : i;
|
|
63821
63821
|
return /* @__PURE__ */ Q(iV, { ref: n, position: f, sx: m, elevation: 4, children: [
|
|
63822
|
-
e && /* @__PURE__ */ w(
|
|
63822
|
+
e && /* @__PURE__ */ w(cpe, { ...e }),
|
|
63823
63823
|
u,
|
|
63824
63824
|
/* @__PURE__ */ Q(
|
|
63825
63825
|
sV,
|
|
@@ -63845,7 +63845,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63845
63845
|
) : r }),
|
|
63846
63846
|
/* @__PURE__ */ Q(Ne, { display: "flex", gap: 2, alignItems: "center", children: [
|
|
63847
63847
|
!l && !g && O,
|
|
63848
|
-
g && /* @__PURE__ */ w(
|
|
63848
|
+
g && /* @__PURE__ */ w(lpe, { menuOptionLists: [o, a, R], anchor: "right" }),
|
|
63849
63849
|
!g && /* @__PURE__ */ Q(Ln, { children: [
|
|
63850
63850
|
/* @__PURE__ */ w(Ne, { display: "flex", gap: 0, children: a == null ? void 0 : a.map((N, $) => /* @__PURE__ */ Q(Ne, { display: "flex", alignItems: "center", children: [
|
|
63851
63851
|
$ > 0 && /* @__PURE__ */ w(
|
|
@@ -63870,21 +63870,21 @@ const nP = tc(void 0), rP = () => {
|
|
|
63870
63870
|
)
|
|
63871
63871
|
] }, N.label)) }),
|
|
63872
63872
|
p,
|
|
63873
|
-
l && /* @__PURE__ */ w(
|
|
63873
|
+
l && /* @__PURE__ */ w(upe, { displayName: l, userMenuOptions: R })
|
|
63874
63874
|
] })
|
|
63875
63875
|
] })
|
|
63876
63876
|
]
|
|
63877
63877
|
}
|
|
63878
63878
|
),
|
|
63879
|
-
!g && /* @__PURE__ */ w(
|
|
63879
|
+
!g && /* @__PURE__ */ w(dpe, { featureMenuOptions: o, activeTabIdx: T, sx: y })
|
|
63880
63880
|
] });
|
|
63881
|
-
},
|
|
63881
|
+
}, Zpe = (t) => {
|
|
63882
63882
|
const { sx: e, menuOptions: n = [] } = t, { pathname: r } = cv(), o = Ls(Xn().breakpoints.down("sm")), [i, s] = He.useState(void 0);
|
|
63883
63883
|
return He.useEffect(() => {
|
|
63884
63884
|
const a = n.findIndex((l) => l.path && r.startsWith(l.path)) ?? -1;
|
|
63885
63885
|
s(a >= 0 ? a : void 0);
|
|
63886
63886
|
}, [r, n]), !o && n.length > 0 && /* @__PURE__ */ w(Ne, { sx: e, children: /* @__PURE__ */ w(Ea, { sx: { height: "100%", width: 200 }, children: /* @__PURE__ */ w(dx, { orientation: "vertical", menuOptions: n, activeTabIdx: i }) }) });
|
|
63887
|
-
},
|
|
63887
|
+
}, Qpe = (t) => {
|
|
63888
63888
|
const { featureMenuOptions: e = [], activeTabIdx: n, sx: r } = t, { palette: o } = Xn();
|
|
63889
63889
|
return e.length > 0 && /* @__PURE__ */ w(
|
|
63890
63890
|
dx,
|
|
@@ -63916,7 +63916,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63916
63916
|
}
|
|
63917
63917
|
}
|
|
63918
63918
|
);
|
|
63919
|
-
},
|
|
63919
|
+
}, ehe = ({ children: t, getCitations: e }) => {
|
|
63920
63920
|
const [n, r] = gt([]), [o, i] = gt(!1);
|
|
63921
63921
|
$t(() => {
|
|
63922
63922
|
(async () => e().then((f) => {
|
|
@@ -63962,7 +63962,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
63962
63962
|
children: t
|
|
63963
63963
|
}
|
|
63964
63964
|
);
|
|
63965
|
-
},
|
|
63965
|
+
}, the = (t) => /* @__PURE__ */ w(wd, { severity: "info", ...t }), nhe = (t) => /* @__PURE__ */ w(wd, { severity: "warning", ...t }), ppe = (t) => {
|
|
63966
63966
|
const { crumbInfo: e } = t, n = nc();
|
|
63967
63967
|
return /* @__PURE__ */ w(
|
|
63968
63968
|
aV,
|
|
@@ -63973,8 +63973,8 @@ const nP = tc(void 0), rP = () => {
|
|
|
63973
63973
|
children: e.map(({ label: r, path: o }, i) => o && i < e.length - 1 ? /* @__PURE__ */ w(wM, { color: "primary", sx: { cursor: "pointer" }, onClick: () => n(o), children: r }, r) : /* @__PURE__ */ w(Je, { color: "primary", children: r }, r))
|
|
63974
63974
|
}
|
|
63975
63975
|
);
|
|
63976
|
-
},
|
|
63977
|
-
const { title: e, message: n, type: r, onClose: o, autoHideDuration: i, variant: s = "leftBorder", elevation: a = 6 } = t, l =
|
|
63976
|
+
}, rhe = (t) => {
|
|
63977
|
+
const { title: e, message: n, type: r, onClose: o, autoHideDuration: i, variant: s = "leftBorder", elevation: a = 6 } = t, l = hpe(r);
|
|
63978
63978
|
return /* @__PURE__ */ w(
|
|
63979
63979
|
lV,
|
|
63980
63980
|
{
|
|
@@ -64002,13 +64002,13 @@ const nP = tc(void 0), rP = () => {
|
|
|
64002
64002
|
)
|
|
64003
64003
|
}
|
|
64004
64004
|
);
|
|
64005
|
-
},
|
|
64005
|
+
}, hpe = (t) => t == "logout" ? "info" : t == "timeout" ? "warning" : t, UO = (t) => {
|
|
64006
64006
|
if (t == "timeout")
|
|
64007
64007
|
return /* @__PURE__ */ w(Wre, {});
|
|
64008
64008
|
if (t == "logout")
|
|
64009
64009
|
return /* @__PURE__ */ w(eoe, {});
|
|
64010
|
-
},
|
|
64011
|
-
|
|
64010
|
+
}, ohe = (t) => {
|
|
64011
|
+
mpe(t);
|
|
64012
64012
|
const {
|
|
64013
64013
|
title: e,
|
|
64014
64014
|
createButtonLabel: n = "Add Item",
|
|
@@ -64028,7 +64028,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
64028
64028
|
...l && { marginBottom: "4px" }
|
|
64029
64029
|
},
|
|
64030
64030
|
children: [
|
|
64031
|
-
i.length > 0 && /* @__PURE__ */ w(
|
|
64031
|
+
i.length > 0 && /* @__PURE__ */ w(ppe, { crumbInfo: i }),
|
|
64032
64032
|
/* @__PURE__ */ Q(
|
|
64033
64033
|
Ne,
|
|
64034
64034
|
{
|
|
@@ -64065,10 +64065,10 @@ const nP = tc(void 0), rP = () => {
|
|
|
64065
64065
|
]
|
|
64066
64066
|
}
|
|
64067
64067
|
);
|
|
64068
|
-
},
|
|
64068
|
+
}, mpe = (t) => {
|
|
64069
64069
|
const { showAddButton: e, onAdd: n, createButtonLabel: r } = t, o = "PageHeader component:";
|
|
64070
64070
|
e && !n && console.warn(`${o} "showAddButton" is true but "onAdd" is not defined.`), e && !r && console.warn(`${o} "showAddButton" is true but "createButtonLabel" is not defined`);
|
|
64071
|
-
},
|
|
64071
|
+
}, ihe = (t) => {
|
|
64072
64072
|
const { title: e, titleIcon: n, fullWidthIcon: r = !1, children: o, actionLabel: i, action: s, sx: a } = t, l = Ls(Xn().breakpoints.down("sm"));
|
|
64073
64073
|
return /* @__PURE__ */ Q(Ea, { sx: a || { padding: "30px 40px", display: "flex", flexDirection: "column", gap: "1rem" }, children: [
|
|
64074
64074
|
n && /* @__PURE__ */ w(
|
|
@@ -64113,7 +64113,7 @@ const nP = tc(void 0), rP = () => {
|
|
|
64113
64113
|
}
|
|
64114
64114
|
)
|
|
64115
64115
|
] });
|
|
64116
|
-
},
|
|
64116
|
+
}, she = (t) => {
|
|
64117
64117
|
const { title: e = "Loading...", message: n } = t;
|
|
64118
64118
|
return /* @__PURE__ */ Q(Ne, { className: "loading-page", sx: { gap: 2 }, "data-testid": "loading-page", children: [
|
|
64119
64119
|
/* @__PURE__ */ Q(Ne, { className: "text-content", children: [
|
|
@@ -64123,12 +64123,12 @@ const nP = tc(void 0), rP = () => {
|
|
|
64123
64123
|
/* @__PURE__ */ w(sv, { size: 75, "data-testid": "loading-spinner" })
|
|
64124
64124
|
] });
|
|
64125
64125
|
};
|
|
64126
|
-
function
|
|
64126
|
+
function ahe({ ...t }) {
|
|
64127
64127
|
return /* @__PURE__ */ w(tP, { onSelectCitations: () => {
|
|
64128
64128
|
}, onCancel: () => {
|
|
64129
64129
|
}, ...t });
|
|
64130
64130
|
}
|
|
64131
|
-
const
|
|
64131
|
+
const lhe = (t) => {
|
|
64132
64132
|
const { size: e = "small" } = t;
|
|
64133
64133
|
let n = `${e}px`;
|
|
64134
64134
|
switch (e) {
|
|
@@ -64151,79 +64151,79 @@ const she = (t) => {
|
|
|
64151
64151
|
return /* @__PURE__ */ w(Ne, { height: n });
|
|
64152
64152
|
};
|
|
64153
64153
|
export {
|
|
64154
|
-
|
|
64154
|
+
Kpe as AlertModal,
|
|
64155
64155
|
pre as Autocomplete,
|
|
64156
|
-
|
|
64156
|
+
ppe as Breadcrumbs,
|
|
64157
64157
|
Gr as Button,
|
|
64158
64158
|
gre as Checkbox,
|
|
64159
|
-
|
|
64160
|
-
|
|
64161
|
-
|
|
64162
|
-
|
|
64159
|
+
Dpe as CheckboxGroup,
|
|
64160
|
+
Vpe as CitationField,
|
|
64161
|
+
ehe as CitationFieldProvider,
|
|
64162
|
+
ahe as CitationManager,
|
|
64163
64163
|
Mh as Column,
|
|
64164
|
-
|
|
64165
|
-
|
|
64164
|
+
qpe as ConfirmationModal,
|
|
64165
|
+
fpe as DarkModeToggle,
|
|
64166
64166
|
U0 as DateField,
|
|
64167
|
-
|
|
64168
|
-
|
|
64167
|
+
Fpe as DateRangeField,
|
|
64168
|
+
Ype as DecisionModal,
|
|
64169
64169
|
are as Diff,
|
|
64170
64170
|
S6 as DiffProvider,
|
|
64171
|
-
|
|
64172
|
-
|
|
64173
|
-
|
|
64174
|
-
|
|
64175
|
-
|
|
64176
|
-
|
|
64177
|
-
|
|
64171
|
+
Gpe as DiffTable,
|
|
64172
|
+
ape as DiffTableView,
|
|
64173
|
+
lpe as Drawer,
|
|
64174
|
+
Rpe as DynamicAutocomplete,
|
|
64175
|
+
cpe as EnvironmentBanner,
|
|
64176
|
+
Wfe as ErrorAlert,
|
|
64177
|
+
Ape as FileList,
|
|
64178
64178
|
yre as FileUpload,
|
|
64179
|
-
|
|
64180
|
-
|
|
64181
|
-
|
|
64182
|
-
|
|
64183
|
-
|
|
64179
|
+
Qpe as FloatingNavBar,
|
|
64180
|
+
Jpe as Footer,
|
|
64181
|
+
Wpe as FormDebugger,
|
|
64182
|
+
Xpe as Header,
|
|
64183
|
+
the as InfoAlert,
|
|
64184
64184
|
HA as LoadingButton,
|
|
64185
|
-
|
|
64185
|
+
she as LoadingIndicator,
|
|
64186
64186
|
Pde as LoadingOverlay,
|
|
64187
|
-
|
|
64188
|
-
|
|
64187
|
+
Ppe as Location,
|
|
64188
|
+
epe as MenuButton,
|
|
64189
64189
|
qm as Modal,
|
|
64190
|
-
|
|
64191
|
-
|
|
64192
|
-
|
|
64193
|
-
|
|
64190
|
+
Ipe as MultiAutocomplete,
|
|
64191
|
+
dpe as NavBar,
|
|
64192
|
+
Qfe as NotApplicableCheckbox,
|
|
64193
|
+
ohe as PageHeader,
|
|
64194
64194
|
Lde as PaginatedTable,
|
|
64195
|
-
|
|
64195
|
+
upe as ProfileMenu,
|
|
64196
64196
|
zre as RadioGroup,
|
|
64197
|
-
|
|
64197
|
+
Npe as RangeSlider,
|
|
64198
64198
|
mc as ReadOnly,
|
|
64199
64199
|
C6 as ReadOnlyProvider,
|
|
64200
|
-
|
|
64201
|
-
|
|
64200
|
+
Upe as RepeatableFormGroup,
|
|
64201
|
+
Bpe as RichTextField,
|
|
64202
64202
|
Ql as Row,
|
|
64203
|
-
|
|
64203
|
+
Hpe as ScrollToTop,
|
|
64204
64204
|
loe as SearchField,
|
|
64205
|
-
|
|
64206
|
-
|
|
64207
|
-
|
|
64208
|
-
|
|
64209
|
-
|
|
64210
|
-
|
|
64211
|
-
|
|
64212
|
-
|
|
64213
|
-
|
|
64214
|
-
|
|
64205
|
+
$pe as Select,
|
|
64206
|
+
qfe as SelectableCitationManager,
|
|
64207
|
+
Zpe as Sidebar,
|
|
64208
|
+
ihe as SingleActionCard,
|
|
64209
|
+
rhe as Snackbar,
|
|
64210
|
+
lhe as Spacer,
|
|
64211
|
+
jpe as Stepper,
|
|
64212
|
+
zpe as Submit,
|
|
64213
|
+
jfe as SuccessAlert,
|
|
64214
|
+
Lpe as Switch,
|
|
64215
64215
|
VA as Table,
|
|
64216
64216
|
dx as Tabs,
|
|
64217
64217
|
Hre as TextArea,
|
|
64218
64218
|
Es as TextField,
|
|
64219
64219
|
b_ as TextIcon,
|
|
64220
64220
|
Zr as ValidationError,
|
|
64221
|
-
|
|
64221
|
+
nhe as WarningAlert,
|
|
64222
64222
|
zde as baseCitationTableColumns,
|
|
64223
|
-
|
|
64223
|
+
spe as buildTableDiff,
|
|
64224
64224
|
zn as commonTheme,
|
|
64225
|
-
|
|
64226
|
-
|
|
64225
|
+
Epe as darkTheme,
|
|
64226
|
+
kpe as lightTheme,
|
|
64227
64227
|
ac as useDiff,
|
|
64228
64228
|
sc as useReadOnly
|
|
64229
64229
|
};
|