@simoncomputing/mui-bueno-v2 0.26.2 → 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/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 Spe = gM({
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 Tpe = gM({
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), Mpe = (t) => {
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
- }, _pe = (t) => {
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
- }, Rpe = (t) => {
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"), Ipe = (t) => {
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 }, Dpe = (t) => {
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
- }, Ape = (t) => {
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
- }, Ppe = (t) => {
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
- }, Npe = (t) => {
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
- }, $pe = (t) => {
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 Lpe = (t) => {
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(Tfe(i)), o();
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.toUpperCase().startsWith("HTTPS")), r = e.findIndex((f) => f.toUpperCase().startsWith("ACCESSED")), o = e.findIndex((f) => /\bSOURCE\b/.test(f.toUpperCase()));
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: kfe(e, r),
62024
- classification: Efe(e, o),
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], kfe = (t, e) => e < 0 || e >= t.length ? "" : Lue(t[e].toUpperCase().replace(/^ACCESSED\s+/, "")), Efe = (t, e) => e < 0 || e >= t.length ? "" : t[e].toUpperCase().includes("PUBLIC") ? "Public Source" : "Proprietary Source", Ofe = (t) => {
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: "",
@@ -62049,7 +62049,16 @@ const Sfe = (t) => {
62049
62049
  /* @__PURE__ */ Q(Ql, { justifyContent: "space-between", children: [
62050
62050
  /* @__PURE__ */ Q(Ql, { children: [
62051
62051
  /* @__PURE__ */ w(Je, { variant: "h6", margin: "10px 0", children: e }),
62052
- /* @__PURE__ */ w(Rn, { variant: "text", size: "small", ref: y, onClick: () => g(!0), children: "Paste & Prefill" })
62052
+ !s && /* @__PURE__ */ w(
62053
+ Rn,
62054
+ {
62055
+ variant: "text",
62056
+ size: "small",
62057
+ ref: y,
62058
+ onClick: () => g(!0),
62059
+ children: "Paste & Prefill"
62060
+ }
62061
+ )
62053
62062
  ] }),
62054
62063
  a && /* @__PURE__ */ w(Hn, { onClick: o, children: /* @__PURE__ */ w(Mm, {}) })
62055
62064
  ] }),
@@ -62059,9 +62068,9 @@ const Sfe = (t) => {
62059
62068
  innerRef: l,
62060
62069
  enableReinitialize: !0,
62061
62070
  initialValues: v,
62062
- onSubmit: async (T) => {
62063
- f(!0), n(T).catch((S) => {
62064
- throw f(!1), S;
62071
+ onSubmit: async (S) => {
62072
+ f(!0), n(S).catch((O) => {
62073
+ throw f(!1), O;
62065
62074
  }).finally(() => f(!1));
62066
62075
  },
62067
62076
  validationSchema: ux({
@@ -62072,7 +62081,7 @@ const Sfe = (t) => {
62072
62081
  }),
62073
62082
  validateOnBlur: p,
62074
62083
  validateOnChange: p,
62075
- children: ({ submitForm: T, setValues: S }) => /* @__PURE__ */ Q(EM, { autoComplete: "off", children: [
62084
+ children: ({ submitForm: S, setValues: O }) => /* @__PURE__ */ Q(EM, { autoComplete: "off", children: [
62076
62085
  /* @__PURE__ */ Q(Ne, { display: "flex", flexDirection: "column", gap: s ? 1 : 0, alignItems: "flex-start", children: [
62077
62086
  /* @__PURE__ */ w(Es, { ...k, name: "title", required: !0 }),
62078
62087
  /* @__PURE__ */ w(Es, { ...k, name: "source" }),
@@ -62093,7 +62102,7 @@ const Sfe = (t) => {
62093
62102
  name: "classification",
62094
62103
  row: !0,
62095
62104
  required: !0,
62096
- radios: Mfe
62105
+ radios: Rfe
62097
62106
  }
62098
62107
  )
62099
62108
  ] }),
@@ -62106,7 +62115,7 @@ const Sfe = (t) => {
62106
62115
  loading: u,
62107
62116
  type: "button",
62108
62117
  onClick: () => {
62109
- m(!0), T();
62118
+ m(!0), S();
62110
62119
  },
62111
62120
  children: i ? "Update Citation" : "Add New Citation"
62112
62121
  }
@@ -62116,8 +62125,8 @@ const Sfe = (t) => {
62116
62125
  Sfe,
62117
62126
  {
62118
62127
  open: b,
62119
- onGenerateCitation: (O) => {
62120
- S(O, !0);
62128
+ onGenerateCitation: (R) => {
62129
+ O(R, !0);
62121
62130
  },
62122
62131
  anchorEl: y.current,
62123
62132
  onClose: () => g(!1)
@@ -62127,7 +62136,7 @@ const Sfe = (t) => {
62127
62136
  }
62128
62137
  )
62129
62138
  ] });
62130
- }, Mfe = [
62139
+ }, Rfe = [
62131
62140
  {
62132
62141
  label: "Public Source",
62133
62142
  value: "Public Source",
@@ -62138,7 +62147,7 @@ const Sfe = (t) => {
62138
62147
  value: "Proprietary Source",
62139
62148
  helperText: "For private, sensitive, or access-controlled content. Use a VPN, or take extra precautions, when accessing to protect your privacy."
62140
62149
  }
62141
- ], _fe = (t) => {
62150
+ ], Ife = (t) => {
62142
62151
  const {
62143
62152
  title: e,
62144
62153
  onSave: n,
@@ -62281,20 +62290,20 @@ const Sfe = (t) => {
62281
62290
  }
62282
62291
  );
62283
62292
  };
62284
- function Rfe(t) {
62293
+ function Dfe(t) {
62285
62294
  return Ke("MuiAlert", t);
62286
62295
  }
62287
- 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"]), Ife = Pe(/* @__PURE__ */ w("path", {
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", {
62288
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"
62289
- }), "SuccessOutlined"), Dfe = Pe(/* @__PURE__ */ w("path", {
62298
+ }), "SuccessOutlined"), Pfe = Pe(/* @__PURE__ */ w("path", {
62290
62299
  d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
62291
- }), "ReportProblemOutlined"), Afe = Pe(/* @__PURE__ */ w("path", {
62300
+ }), "ReportProblemOutlined"), Nfe = Pe(/* @__PURE__ */ w("path", {
62292
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"
62293
- }), "ErrorOutline"), Pfe = Pe(/* @__PURE__ */ w("path", {
62302
+ }), "ErrorOutline"), $fe = Pe(/* @__PURE__ */ w("path", {
62294
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"
62295
- }), "InfoOutlined"), Nfe = Pe(/* @__PURE__ */ w("path", {
62304
+ }), "InfoOutlined"), Lfe = Pe(/* @__PURE__ */ w("path", {
62296
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"
62297
- }), "Close"), $fe = (t) => {
62306
+ }), "Close"), Ffe = (t) => {
62298
62307
  const {
62299
62308
  variant: e,
62300
62309
  color: n,
@@ -62306,8 +62315,8 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
62306
62315
  message: ["message"],
62307
62316
  action: ["action"]
62308
62317
  };
62309
- return qe(i, Rfe, o);
62310
- }, Lfe = te(zs, {
62318
+ return qe(i, Dfe, o);
62319
+ }, Bfe = te(zs, {
62311
62320
  name: "MuiAlert",
62312
62321
  slot: "Root",
62313
62322
  overridesResolver: (t, e) => {
@@ -62370,7 +62379,7 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
62370
62379
  }
62371
62380
  }))]
62372
62381
  };
62373
- })), Ffe = te("div", {
62382
+ })), Vfe = te("div", {
62374
62383
  name: "MuiAlert",
62375
62384
  slot: "Icon",
62376
62385
  overridesResolver: (t, e) => e.icon
@@ -62380,7 +62389,7 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
62380
62389
  display: "flex",
62381
62390
  fontSize: 22,
62382
62391
  opacity: 0.9
62383
- }), Bfe = te("div", {
62392
+ }), zfe = te("div", {
62384
62393
  name: "MuiAlert",
62385
62394
  slot: "Message",
62386
62395
  overridesResolver: (t, e) => e.message
@@ -62388,7 +62397,7 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
62388
62397
  padding: "8px 0",
62389
62398
  minWidth: 0,
62390
62399
  overflow: "auto"
62391
- }), Vfe = te("div", {
62400
+ }), Hfe = te("div", {
62392
62401
  name: "MuiAlert",
62393
62402
  slot: "Action",
62394
62403
  overridesResolver: (t, e) => e.action
@@ -62399,16 +62408,16 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
62399
62408
  marginLeft: "auto",
62400
62409
  marginRight: -8
62401
62410
  }), jO = {
62402
- success: /* @__PURE__ */ w(Ife, {
62411
+ success: /* @__PURE__ */ w(Afe, {
62403
62412
  fontSize: "inherit"
62404
62413
  }),
62405
- warning: /* @__PURE__ */ w(Dfe, {
62414
+ warning: /* @__PURE__ */ w(Pfe, {
62406
62415
  fontSize: "inherit"
62407
62416
  }),
62408
- error: /* @__PURE__ */ w(Afe, {
62417
+ error: /* @__PURE__ */ w(Nfe, {
62409
62418
  fontSize: "inherit"
62410
62419
  }),
62411
- info: /* @__PURE__ */ w(Pfe, {
62420
+ info: /* @__PURE__ */ w($fe, {
62412
62421
  fontSize: "inherit"
62413
62422
  })
62414
62423
  }, eP = /* @__PURE__ */ D.forwardRef(function(e, n) {
@@ -62438,7 +62447,7 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
62438
62447
  severity: g,
62439
62448
  variant: k,
62440
62449
  colorSeverity: l || g
62441
- }, O = $fe(S), R = {
62450
+ }, O = Ffe(S), R = {
62442
62451
  slots: {
62443
62452
  closeButton: u.CloseButton,
62444
62453
  closeIcon: u.CloseIcon,
@@ -62452,7 +62461,7 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
62452
62461
  ref: n,
62453
62462
  shouldForwardComponentProp: !0,
62454
62463
  className: ge(O.root, s),
62455
- elementType: Lfe,
62464
+ elementType: Bfe,
62456
62465
  externalForwardedProps: {
62457
62466
  ...R,
62458
62467
  ...T
@@ -62464,17 +62473,17 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
62464
62473
  }
62465
62474
  }), [V, M] = Rt("icon", {
62466
62475
  className: O.icon,
62467
- elementType: Ffe,
62476
+ elementType: Vfe,
62468
62477
  externalForwardedProps: R,
62469
62478
  ownerState: S
62470
62479
  }), [L, z] = Rt("message", {
62471
62480
  className: O.message,
62472
- elementType: Bfe,
62481
+ elementType: zfe,
62473
62482
  externalForwardedProps: R,
62474
62483
  ownerState: S
62475
62484
  }), [B, A] = Rt("action", {
62476
62485
  className: O.action,
62477
- elementType: Vfe,
62486
+ elementType: Hfe,
62478
62487
  externalForwardedProps: R,
62479
62488
  ownerState: S
62480
62489
  }), [_, I] = Rt("closeButton", {
@@ -62482,7 +62491,7 @@ const WO = je("MuiAlert", ["root", "action", "icon", "message", "filled", "color
62482
62491
  externalForwardedProps: R,
62483
62492
  ownerState: S
62484
62493
  }), [F, W] = Rt("closeIcon", {
62485
- elementType: Nfe,
62494
+ elementType: Lfe,
62486
62495
  externalForwardedProps: R,
62487
62496
  ownerState: S
62488
62497
  });
@@ -62667,11 +62676,11 @@ const wd = (t) => {
62667
62676
  ]
62668
62677
  }
62669
62678
  );
62670
- }, zfe = (t) => /* @__PURE__ */ w(wd, { severity: "error", ...t }), Hfe = (t) => /* @__PURE__ */ w(wd, { severity: "success", ...t }), Wfe = (t) => {
62679
+ }, Wfe = (t) => /* @__PURE__ */ w(wd, { severity: "error", ...t }), jfe = (t) => /* @__PURE__ */ w(wd, { severity: "success", ...t }), Ufe = (t) => {
62671
62680
  const { alert: e, setAlert: n } = t, r = () => n(void 0);
62672
62681
  return /* @__PURE__ */ Q(Ln, { children: [
62673
- (e == null ? void 0 : e.type) === "Error" && /* @__PURE__ */ w(zfe, { "data-testid": "citation-menu-error", onClose: r, title: e.title, children: e.message.toString() }),
62674
- (e == null ? void 0 : e.type) === "Success" && /* @__PURE__ */ w(Hfe, { "data-testid": "citation-menu-success", onClose: r, children: e.message })
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 })
62675
62684
  ] });
62676
62685
  };
62677
62686
  function tP({
@@ -62794,7 +62803,7 @@ function tP({
62794
62803
  canSearch: k
62795
62804
  }
62796
62805
  ), le = /* @__PURE__ */ w(
62797
- Ofe,
62806
+ _fe,
62798
62807
  {
62799
62808
  modifyCitation: N,
62800
62809
  onSave: F,
@@ -62808,7 +62817,7 @@ function tP({
62808
62817
  showCloseBtn: m
62809
62818
  }
62810
62819
  ), ee = /* @__PURE__ */ w(
62811
- _fe,
62820
+ Ife,
62812
62821
  {
62813
62822
  onSave: F,
62814
62823
  onCancel: () => L(
@@ -62822,7 +62831,7 @@ function tP({
62822
62831
  readOnly: T === "View Attachment",
62823
62832
  showCloseBtn: m
62824
62833
  }
62825
- ), ne = /* @__PURE__ */ w(Wfe, { alert: V, setAlert: M }), ae = T === "Add Citation" || T === "Edit Citation" || T === "View Citation", me = T === "Add Attachment" || T === "Edit Attachment" || T === "View Attachment";
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";
62826
62835
  if (m) {
62827
62836
  let K = null;
62828
62837
  return !m || T === "Insert Citation/Attachment(s)" ? K = re : ae ? K = le : me && (K = ee), /* @__PURE__ */ Q(Ne, { children: [
@@ -62839,7 +62848,7 @@ function tP({
62839
62848
  ] }) })
62840
62849
  ] });
62841
62850
  }
62842
- function jfe({
62851
+ function qfe({
62843
62852
  getSelectedCitationsPaginated: t,
62844
62853
  getCitationsPaginated: e,
62845
62854
  readOnly: n,
@@ -62859,7 +62868,7 @@ function jfe({
62859
62868
  }
62860
62869
  );
62861
62870
  }
62862
- const Ufe = bM("div", {
62871
+ const Kfe = bM("div", {
62863
62872
  name: "CitationBubbleMenu",
62864
62873
  slot: "content",
62865
62874
  overridesResolver: (t, e) => e.content
@@ -62871,7 +62880,7 @@ const Ufe = bM("div", {
62871
62880
  border: `1px solid ${t.palette.grey[e ? 700 : 200]}`
62872
62881
  };
62873
62882
  });
62874
- function qfe({
62883
+ function Yfe({
62875
62884
  getCitationsPaginated: t,
62876
62885
  getSelectedCitationsPaginated: e,
62877
62886
  onCreateCitation: n,
@@ -62908,8 +62917,8 @@ function qfe({
62908
62917
  open: b,
62909
62918
  ...y.bubbleMenuOptions,
62910
62919
  ...p,
62911
- children: /* @__PURE__ */ w(Ufe, { children: /* @__PURE__ */ w(
62912
- jfe,
62920
+ children: /* @__PURE__ */ w(Kfe, { children: /* @__PURE__ */ w(
62921
+ qfe,
62913
62922
  {
62914
62923
  getCitationsPaginated: t,
62915
62924
  getSelectedCitationsPaginated: (O) => e(O, g),
@@ -62931,7 +62940,7 @@ function qfe({
62931
62940
  }
62932
62941
  ) : null;
62933
62942
  }
62934
- const Kfe = () => xn.create({
62943
+ const Gfe = () => xn.create({
62935
62944
  name: "citationBubbleMenuHandler",
62936
62945
  addStorage() {
62937
62946
  return {
@@ -62960,7 +62969,7 @@ const Kfe = () => xn.create({
62960
62969
  };
62961
62970
  }
62962
62971
  });
62963
- function Yfe(t) {
62972
+ function Jfe(t) {
62964
62973
  const e = Et(), n = an(null);
62965
62974
  return /* @__PURE__ */ w(
62966
62975
  Tt,
@@ -62989,7 +62998,7 @@ const nP = tc(void 0), rP = () => {
62989
62998
  const t = Xu(nP);
62990
62999
  if (!t) throw new Error("useSync must be used inside CitationFieldProvider");
62991
63000
  return t;
62992
- }, Gfe = ({
63001
+ }, Xfe = ({
62993
63002
  node: t,
62994
63003
  HTMLAttributes: e,
62995
63004
  selected: n,
@@ -63043,7 +63052,7 @@ const nP = tc(void 0), rP = () => {
63043
63052
  )
63044
63053
  }
63045
63054
  ) });
63046
- }, Jfe = ln.create({
63055
+ }, Zfe = ln.create({
63047
63056
  name: "citation",
63048
63057
  group: "inline",
63049
63058
  inline: !0,
@@ -63070,7 +63079,7 @@ const nP = tc(void 0), rP = () => {
63070
63079
  return ["citation", kt(t)];
63071
63080
  },
63072
63081
  addNodeView() {
63073
- return M1(Gfe);
63082
+ return M1(Xfe);
63074
63083
  },
63075
63084
  addProseMirrorPlugins() {
63076
63085
  return [
@@ -63098,7 +63107,7 @@ const nP = tc(void 0), rP = () => {
63098
63107
  }
63099
63108
  };
63100
63109
  }
63101
- }), Xfe = (t) => /* @__PURE__ */ w(gre, { name: t.name, label: "Not Applicable", errorMode: "hidden" }), Fpe = (t) => {
63110
+ }), Qfe = (t) => /* @__PURE__ */ w(gre, { name: t.name, label: "Not Applicable", errorMode: "hidden" }), Vpe = (t) => {
63102
63111
  const {
63103
63112
  name: e,
63104
63113
  label: n = Kn(e),
@@ -63127,8 +63136,8 @@ const nP = tc(void 0), rP = () => {
63127
63136
  FA.configure({
63128
63137
  placeholder: C
63129
63138
  }),
63130
- Kfe(),
63131
- Jfe.configure({
63139
+ Gfe(),
63140
+ Zfe.configure({
63132
63141
  citationMaxLength: a
63133
63142
  })
63134
63143
  ], [N, $, V] = Zn({
@@ -63184,7 +63193,7 @@ const nP = tc(void 0), rP = () => {
63184
63193
  children: [
63185
63194
  /* @__PURE__ */ Q(Ne, { display: "flex", flexDirection: "row", justifyContent: "space-between", alignItems: "center", children: [
63186
63195
  !r && /* @__PURE__ */ w(nv, { htmlFor: `citation-field_${e}`, required: o, children: n }),
63187
- k && /* @__PURE__ */ w(Xfe, { name: k })
63196
+ k && /* @__PURE__ */ w(Qfe, { name: k })
63188
63197
  ] }),
63189
63198
  /* @__PURE__ */ w(
63190
63199
  gD,
@@ -63193,7 +63202,7 @@ const nP = tc(void 0), rP = () => {
63193
63202
  extensions: R,
63194
63203
  content: L,
63195
63204
  editable: !pe,
63196
- renderControls: pe ? void 0 : () => /* @__PURE__ */ w(C1, { children: /* @__PURE__ */ w(Yfe, {}) }),
63205
+ renderControls: pe ? void 0 : () => /* @__PURE__ */ w(C1, { children: /* @__PURE__ */ w(Jfe, {}) }),
63197
63206
  onBlur: () => W(),
63198
63207
  onUpdate: q,
63199
63208
  RichTextFieldProps: {
@@ -63206,7 +63215,7 @@ const nP = tc(void 0), rP = () => {
63206
63215
  }
63207
63216
  },
63208
63217
  children: () => /* @__PURE__ */ w(
63209
- qfe,
63218
+ Yfe,
63210
63219
  {
63211
63220
  getCitationsPaginated: (ue) => l(ue).then((J) => (A(J.data), J)),
63212
63221
  getSelectedCitationsPaginated: u,
@@ -63228,10 +63237,10 @@ const nP = tc(void 0), rP = () => {
63228
63237
  ]
63229
63238
  }
63230
63239
  );
63231
- }, Bpe = (t) => {
63240
+ }, zpe = (t) => {
63232
63241
  const { name: e = "submit" } = t;
63233
63242
  return /* @__PURE__ */ w(Gr, { name: e, type: "submit", ...t });
63234
- }, Vpe = (t) => {
63243
+ }, Hpe = (t) => {
63235
63244
  const { label: e = "Return to Top", icon: n = lp, scrollThresholdPx: r = 100 } = t, o = K3({
63236
63245
  threshold: r
63237
63246
  }), i = Ar(() => {
@@ -63262,7 +63271,7 @@ const nP = tc(void 0), rP = () => {
63262
63271
  )
63263
63272
  }
63264
63273
  ) });
63265
- }, Zfe = (t) => {
63274
+ }, epe = (t) => {
63266
63275
  const { label: e, menuOptions: n = [], icon: r } = t, o = nc(), [i, s] = D.useState(null), a = !!i, l = (p) => {
63267
63276
  s(p.currentTarget);
63268
63277
  }, u = () => {
@@ -63293,7 +63302,7 @@ const nP = tc(void 0), rP = () => {
63293
63302
  /* @__PURE__ */ w(xM, { primary: p.label })
63294
63303
  ] }, p.label)) })
63295
63304
  ] });
63296
- }, zpe = () => {
63305
+ }, Wpe = () => {
63297
63306
  const { values: t, errors: e, status: n } = kM(), { palette: r } = Xn();
63298
63307
  return /* @__PURE__ */ w(Ba, { style: { backgroundColor: r.mode === "dark" ? "#303030" : "#f0f0f0", margin: "10px 0" }, children: /* @__PURE__ */ Q(vM, { children: [
63299
63308
  /* @__PURE__ */ Q(Yf, { children: [
@@ -63316,7 +63325,7 @@ const nP = tc(void 0), rP = () => {
63316
63325
  /* @__PURE__ */ w("pre", { children: JSON.stringify(n, null, 2) })
63317
63326
  ] })
63318
63327
  ] }) });
63319
- }, Hpe = (t) => {
63328
+ }, jpe = (t) => {
63320
63329
  const { steps: e, orientation: n, inlineLabel: r = n == "vertical", isResponsive: o = !1 } = t, { width: i } = zA();
63321
63330
  let s = !r, a = n;
63322
63331
  o && (n && console.warn(
@@ -63328,7 +63337,7 @@ const nP = tc(void 0), rP = () => {
63328
63337
  ...Sr({ ...t }, l)
63329
63338
  };
63330
63339
  return /* @__PURE__ */ w(X3, { ...u, children: e.map((f) => /* @__PURE__ */ w(Z3, { children: /* @__PURE__ */ w(Q3, { children: f }) }, f)) });
63331
- }, Wpe = (t) => {
63340
+ }, Upe = (t) => {
63332
63341
  const {
63333
63342
  name: e,
63334
63343
  label: n = Kn(e),
@@ -63366,7 +63375,7 @@ const nP = tc(void 0), rP = () => {
63366
63375
  name: e,
63367
63376
  render: (T) => /* @__PURE__ */ Q("div", { children: [
63368
63377
  C.map((S, O) => /* @__PURE__ */ w(He.Fragment, { children: /* @__PURE__ */ w(
63369
- Qfe,
63378
+ tpe,
63370
63379
  {
63371
63380
  variant: l,
63372
63381
  content: /* @__PURE__ */ Q(
@@ -63406,7 +63415,7 @@ const nP = tc(void 0), rP = () => {
63406
63415
  }
63407
63416
  )
63408
63417
  ] });
63409
- }, Qfe = ({ variant: t, content: e }) => {
63418
+ }, tpe = ({ variant: t, content: e }) => {
63410
63419
  switch (t) {
63411
63420
  case "card":
63412
63421
  return /* @__PURE__ */ w(Ea, { "data-testid": "repeatable-form-group_card", sx: { padding: "8px", marginBottom: "8px" }, children: /* @__PURE__ */ w(jb, { children: e }) });
@@ -63423,7 +63432,7 @@ const nP = tc(void 0), rP = () => {
63423
63432
  case "none":
63424
63433
  return e;
63425
63434
  }
63426
- }, jpe = (t) => {
63435
+ }, qpe = (t) => {
63427
63436
  const {
63428
63437
  confirmBtnLabel: e,
63429
63438
  onConfirm: n,
@@ -63446,7 +63455,7 @@ const nP = tc(void 0), rP = () => {
63446
63455
  ...s
63447
63456
  }
63448
63457
  );
63449
- }, Upe = (t) => {
63458
+ }, Kpe = (t) => {
63450
63459
  const {
63451
63460
  closeBtnLabel: e = "OK",
63452
63461
  closeButtonPosition: n = "bottom",
@@ -63465,7 +63474,7 @@ const nP = tc(void 0), rP = () => {
63465
63474
  ...o
63466
63475
  }
63467
63476
  );
63468
- }, qpe = (t) => {
63477
+ }, Ype = (t) => {
63469
63478
  const {
63470
63479
  primaryBtnLabel: e,
63471
63480
  onPrimaryAction: n,
@@ -63503,29 +63512,29 @@ const nP = tc(void 0), rP = () => {
63503
63512
  ...u
63504
63513
  }
63505
63514
  );
63506
- }, epe = {
63515
+ }, npe = {
63507
63516
  added: { icon: jre, label: "Added", color: "success" },
63508
63517
  deleted: { icon: OD, label: "Deleted", color: "error" },
63509
63518
  modified: { icon: Kre, label: "Modified", color: "info" }
63510
- }, tpe = (t, e) => /* @__PURE__ */ Q(Ln, { children: [
63519
+ }, rpe = (t, e) => /* @__PURE__ */ Q(Ln, { children: [
63511
63520
  /* @__PURE__ */ w(Ne, { "data-testid": "diff-table-cell-removed", sx: { backgroundColor: Gp }, children: /* @__PURE__ */ w("s", { children: t }) }),
63512
63521
  /* @__PURE__ */ w(Ne, { "data-testid": "diff-table-cell-added", sx: { backgroundColor: Yp }, children: /* @__PURE__ */ w("u", { children: e }) })
63513
- ] }), npe = (t, e, n, r = !1) => {
63522
+ ] }), ope = (t, e, n, r = !1) => {
63514
63523
  var i;
63515
63524
  let o = {};
63516
63525
  for (const s of t)
63517
63526
  if (!s.ignoreDiff) {
63518
63527
  const a = Nl(s, e, r), l = Nl(s, n, r);
63519
- (((i = s.isEqual) == null ? void 0 : i.call(s, e, n)) ?? wD.isEqual(a, l)) || (o[kn(s)] = tpe(a, l));
63528
+ (((i = s.isEqual) == null ? void 0 : i.call(s, e, n)) ?? wD.isEqual(a, l)) || (o[kn(s)] = rpe(a, l));
63520
63529
  }
63521
63530
  return o;
63522
- }, rpe = (t, e, n, r = !1, o) => {
63531
+ }, ipe = (t, e, n, r = !1, o) => {
63523
63532
  const i = [];
63524
63533
  let s = 0, a = 0, l = 0;
63525
63534
  for (e.sort((u, f) => u.id - f.id), n.sort((u, f) => u.id - f.id); s < e.length && a < n.length; ) {
63526
63535
  const u = e[s], f = n[a];
63527
63536
  if (u.id === f.id) {
63528
- const p = npe(t, u, f, r);
63537
+ const p = ope(t, u, f, r);
63529
63538
  (o == null ? void 0 : o(u, f)) ?? Object.keys(p).length === 0 ? l++ : i.push({
63530
63539
  ...f,
63531
63540
  changeType: "modified",
@@ -63538,14 +63547,14 @@ const nP = tc(void 0), rP = () => {
63538
63547
  for (; a < n.length; )
63539
63548
  i.push({ ...n[a], changeType: "added" }), a++;
63540
63549
  return { dataDiff: i, unmodifiedCount: l };
63541
- }, ope = (t) => {
63550
+ }, spe = (t) => {
63542
63551
  const { beforeData: e, afterData: n, columns: r, isEqual: o, size: i, isMobileScreen: s } = t;
63543
63552
  t.renderExpand != null && o == null && console.warn("DiffTable: isEqual prop should be provided when renderExpand is provided");
63544
- const { dataDiff: a, unmodifiedCount: l } = rpe(r, e, n, s, o), u = [
63553
+ const { dataDiff: a, unmodifiedCount: l } = ipe(r, e, n, s, o), u = [
63545
63554
  {
63546
63555
  fieldName: "changeType",
63547
63556
  render: (f) => {
63548
- const p = epe[f];
63557
+ const p = npe[f];
63549
63558
  return /* @__PURE__ */ w(
63550
63559
  eV,
63551
63560
  {
@@ -63584,7 +63593,7 @@ const nP = tc(void 0), rP = () => {
63584
63593
  );
63585
63594
  } : void 0
63586
63595
  };
63587
- }, ipe = ({
63596
+ }, ape = ({
63588
63597
  columns: t,
63589
63598
  data: e,
63590
63599
  emptyTableMsg: n = "No changes to display",
@@ -63607,13 +63616,13 @@ const nP = tc(void 0), rP = () => {
63607
63616
  i,
63608
63617
  " unmodified rows"
63609
63618
  ] }) })
63610
- ] }), Kpe = (t) => {
63611
- const { emptyTableMsg: e = "No changes to display", ...n } = t, r = Ls(Xn().breakpoints.down("sm")), o = "beforeData" in n ? ope({
63619
+ ] }), Gpe = (t) => {
63620
+ const { emptyTableMsg: e = "No changes to display", ...n } = t, r = Ls(Xn().breakpoints.down("sm")), o = "beforeData" in n ? spe({
63612
63621
  ...n,
63613
63622
  isMobileScreen: r
63614
63623
  }) : n;
63615
- return /* @__PURE__ */ w(ipe, { ...o, size: t.size });
63616
- }, Ype = (t) => {
63624
+ return /* @__PURE__ */ w(ape, { ...o, size: t.size });
63625
+ }, Jpe = (t) => {
63617
63626
  const { featureMenuOptions: e = [], copyright: n, logo: r, sx: o = {}, fontColor: i = "primary" } = t, { palette: s } = Xn(), a = nc();
63618
63627
  return /* @__PURE__ */ Q(
63619
63628
  Ne,
@@ -63690,7 +63699,7 @@ const nP = tc(void 0), rP = () => {
63690
63699
  ]
63691
63700
  }
63692
63701
  );
63693
- }, spe = (t) => {
63702
+ }, lpe = (t) => {
63694
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(
63695
63704
  Dh,
63696
63705
  {
@@ -63720,7 +63729,7 @@ const nP = tc(void 0), rP = () => {
63720
63729
  /* @__PURE__ */ w(Hn, { onClick: () => a(!0), color: "inherit", title: "Menu", children: /* @__PURE__ */ w(toe, {}) }),
63721
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 }) }) })
63722
63731
  ] });
63723
- }, ape = (t) => {
63732
+ }, cpe = (t) => {
63724
63733
  const { env: e, isProd: n } = t;
63725
63734
  return n ? null : /* @__PURE__ */ w(
63726
63735
  Ba,
@@ -63737,9 +63746,9 @@ const nP = tc(void 0), rP = () => {
63737
63746
  ] })
63738
63747
  }
63739
63748
  );
63740
- }, lpe = (t) => {
63749
+ }, upe = (t) => {
63741
63750
  const { displayName: e, userMenuOptions: n } = t;
63742
- return /* @__PURE__ */ w(Zfe, { label: e, menuOptions: n, icon: /* @__PURE__ */ w(roe, {}) });
63751
+ return /* @__PURE__ */ w(epe, { label: e, menuOptions: n, icon: /* @__PURE__ */ w(roe, {}) });
63743
63752
  }, dx = (t) => {
63744
63753
  const {
63745
63754
  menuOptions: e,
@@ -63773,13 +63782,13 @@ const nP = tc(void 0), rP = () => {
63773
63782
  },
63774
63783
  l.label
63775
63784
  )) });
63776
- }, cpe = (t) => {
63785
+ }, dpe = (t) => {
63777
63786
  const { featureMenuOptions: e = [], activeTabIdx: n, sx: r } = t;
63778
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 }) });
63779
- }, upe = (t) => {
63788
+ }, fpe = (t) => {
63780
63789
  const { onToggle: e } = t, { palette: n } = Xn(), r = n.mode === "dark";
63781
63790
  return /* @__PURE__ */ w(Hn, { onClick: e, color: "inherit", title: "Dark Mode Toggle", children: r ? /* @__PURE__ */ w(ED, {}) : /* @__PURE__ */ w(TD, {}) });
63782
- }, Gpe = (t) => {
63791
+ }, Xpe = (t) => {
63783
63792
  const {
63784
63793
  envInfo: e,
63785
63794
  headerRef: n,
@@ -63801,7 +63810,7 @@ const nP = tc(void 0), rP = () => {
63801
63810
  );
63802
63811
  S(N >= 0 ? N : void 0);
63803
63812
  }, [C, o]);
63804
- const O = s && /* @__PURE__ */ w(upe, { onToggle: s }), R = s && (g || !g && l) ? [
63813
+ const O = s && /* @__PURE__ */ w(fpe, { onToggle: s }), R = s && (g || !g && l) ? [
63805
63814
  {
63806
63815
  icon: k ? /* @__PURE__ */ w(ED, {}) : /* @__PURE__ */ w(TD, {}),
63807
63816
  label: `Switch to ${k ? "Light" : "Dark"} mode`,
@@ -63810,7 +63819,7 @@ const nP = tc(void 0), rP = () => {
63810
63819
  ...i
63811
63820
  ] : i;
63812
63821
  return /* @__PURE__ */ Q(iV, { ref: n, position: f, sx: m, elevation: 4, children: [
63813
- e && /* @__PURE__ */ w(ape, { ...e }),
63822
+ e && /* @__PURE__ */ w(cpe, { ...e }),
63814
63823
  u,
63815
63824
  /* @__PURE__ */ Q(
63816
63825
  sV,
@@ -63836,7 +63845,7 @@ const nP = tc(void 0), rP = () => {
63836
63845
  ) : r }),
63837
63846
  /* @__PURE__ */ Q(Ne, { display: "flex", gap: 2, alignItems: "center", children: [
63838
63847
  !l && !g && O,
63839
- g && /* @__PURE__ */ w(spe, { menuOptionLists: [o, a, R], anchor: "right" }),
63848
+ g && /* @__PURE__ */ w(lpe, { menuOptionLists: [o, a, R], anchor: "right" }),
63840
63849
  !g && /* @__PURE__ */ Q(Ln, { children: [
63841
63850
  /* @__PURE__ */ w(Ne, { display: "flex", gap: 0, children: a == null ? void 0 : a.map((N, $) => /* @__PURE__ */ Q(Ne, { display: "flex", alignItems: "center", children: [
63842
63851
  $ > 0 && /* @__PURE__ */ w(
@@ -63861,21 +63870,21 @@ const nP = tc(void 0), rP = () => {
63861
63870
  )
63862
63871
  ] }, N.label)) }),
63863
63872
  p,
63864
- l && /* @__PURE__ */ w(lpe, { displayName: l, userMenuOptions: R })
63873
+ l && /* @__PURE__ */ w(upe, { displayName: l, userMenuOptions: R })
63865
63874
  ] })
63866
63875
  ] })
63867
63876
  ]
63868
63877
  }
63869
63878
  ),
63870
- !g && /* @__PURE__ */ w(cpe, { featureMenuOptions: o, activeTabIdx: T, sx: y })
63879
+ !g && /* @__PURE__ */ w(dpe, { featureMenuOptions: o, activeTabIdx: T, sx: y })
63871
63880
  ] });
63872
- }, Jpe = (t) => {
63881
+ }, Zpe = (t) => {
63873
63882
  const { sx: e, menuOptions: n = [] } = t, { pathname: r } = cv(), o = Ls(Xn().breakpoints.down("sm")), [i, s] = He.useState(void 0);
63874
63883
  return He.useEffect(() => {
63875
63884
  const a = n.findIndex((l) => l.path && r.startsWith(l.path)) ?? -1;
63876
63885
  s(a >= 0 ? a : void 0);
63877
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 }) }) });
63878
- }, Xpe = (t) => {
63887
+ }, Qpe = (t) => {
63879
63888
  const { featureMenuOptions: e = [], activeTabIdx: n, sx: r } = t, { palette: o } = Xn();
63880
63889
  return e.length > 0 && /* @__PURE__ */ w(
63881
63890
  dx,
@@ -63907,7 +63916,7 @@ const nP = tc(void 0), rP = () => {
63907
63916
  }
63908
63917
  }
63909
63918
  );
63910
- }, Zpe = ({ children: t, getCitations: e }) => {
63919
+ }, ehe = ({ children: t, getCitations: e }) => {
63911
63920
  const [n, r] = gt([]), [o, i] = gt(!1);
63912
63921
  $t(() => {
63913
63922
  (async () => e().then((f) => {
@@ -63953,7 +63962,7 @@ const nP = tc(void 0), rP = () => {
63953
63962
  children: t
63954
63963
  }
63955
63964
  );
63956
- }, Qpe = (t) => /* @__PURE__ */ w(wd, { severity: "info", ...t }), ehe = (t) => /* @__PURE__ */ w(wd, { severity: "warning", ...t }), dpe = (t) => {
63965
+ }, the = (t) => /* @__PURE__ */ w(wd, { severity: "info", ...t }), nhe = (t) => /* @__PURE__ */ w(wd, { severity: "warning", ...t }), ppe = (t) => {
63957
63966
  const { crumbInfo: e } = t, n = nc();
63958
63967
  return /* @__PURE__ */ w(
63959
63968
  aV,
@@ -63964,8 +63973,8 @@ const nP = tc(void 0), rP = () => {
63964
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))
63965
63974
  }
63966
63975
  );
63967
- }, the = (t) => {
63968
- const { title: e, message: n, type: r, onClose: o, autoHideDuration: i, variant: s = "leftBorder", elevation: a = 6 } = t, l = fpe(r);
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);
63969
63978
  return /* @__PURE__ */ w(
63970
63979
  lV,
63971
63980
  {
@@ -63993,13 +64002,13 @@ const nP = tc(void 0), rP = () => {
63993
64002
  )
63994
64003
  }
63995
64004
  );
63996
- }, fpe = (t) => t == "logout" ? "info" : t == "timeout" ? "warning" : t, UO = (t) => {
64005
+ }, hpe = (t) => t == "logout" ? "info" : t == "timeout" ? "warning" : t, UO = (t) => {
63997
64006
  if (t == "timeout")
63998
64007
  return /* @__PURE__ */ w(Wre, {});
63999
64008
  if (t == "logout")
64000
64009
  return /* @__PURE__ */ w(eoe, {});
64001
- }, nhe = (t) => {
64002
- ppe(t);
64010
+ }, ohe = (t) => {
64011
+ mpe(t);
64003
64012
  const {
64004
64013
  title: e,
64005
64014
  createButtonLabel: n = "Add Item",
@@ -64019,7 +64028,7 @@ const nP = tc(void 0), rP = () => {
64019
64028
  ...l && { marginBottom: "4px" }
64020
64029
  },
64021
64030
  children: [
64022
- i.length > 0 && /* @__PURE__ */ w(dpe, { crumbInfo: i }),
64031
+ i.length > 0 && /* @__PURE__ */ w(ppe, { crumbInfo: i }),
64023
64032
  /* @__PURE__ */ Q(
64024
64033
  Ne,
64025
64034
  {
@@ -64056,10 +64065,10 @@ const nP = tc(void 0), rP = () => {
64056
64065
  ]
64057
64066
  }
64058
64067
  );
64059
- }, ppe = (t) => {
64068
+ }, mpe = (t) => {
64060
64069
  const { showAddButton: e, onAdd: n, createButtonLabel: r } = t, o = "PageHeader component:";
64061
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`);
64062
- }, rhe = (t) => {
64071
+ }, ihe = (t) => {
64063
64072
  const { title: e, titleIcon: n, fullWidthIcon: r = !1, children: o, actionLabel: i, action: s, sx: a } = t, l = Ls(Xn().breakpoints.down("sm"));
64064
64073
  return /* @__PURE__ */ Q(Ea, { sx: a || { padding: "30px 40px", display: "flex", flexDirection: "column", gap: "1rem" }, children: [
64065
64074
  n && /* @__PURE__ */ w(
@@ -64104,7 +64113,7 @@ const nP = tc(void 0), rP = () => {
64104
64113
  }
64105
64114
  )
64106
64115
  ] });
64107
- }, ohe = (t) => {
64116
+ }, she = (t) => {
64108
64117
  const { title: e = "Loading...", message: n } = t;
64109
64118
  return /* @__PURE__ */ Q(Ne, { className: "loading-page", sx: { gap: 2 }, "data-testid": "loading-page", children: [
64110
64119
  /* @__PURE__ */ Q(Ne, { className: "text-content", children: [
@@ -64114,12 +64123,12 @@ const nP = tc(void 0), rP = () => {
64114
64123
  /* @__PURE__ */ w(sv, { size: 75, "data-testid": "loading-spinner" })
64115
64124
  ] });
64116
64125
  };
64117
- function ihe({ ...t }) {
64126
+ function ahe({ ...t }) {
64118
64127
  return /* @__PURE__ */ w(tP, { onSelectCitations: () => {
64119
64128
  }, onCancel: () => {
64120
64129
  }, ...t });
64121
64130
  }
64122
- const she = (t) => {
64131
+ const lhe = (t) => {
64123
64132
  const { size: e = "small" } = t;
64124
64133
  let n = `${e}px`;
64125
64134
  switch (e) {
@@ -64142,79 +64151,79 @@ const she = (t) => {
64142
64151
  return /* @__PURE__ */ w(Ne, { height: n });
64143
64152
  };
64144
64153
  export {
64145
- Upe as AlertModal,
64154
+ Kpe as AlertModal,
64146
64155
  pre as Autocomplete,
64147
- dpe as Breadcrumbs,
64156
+ ppe as Breadcrumbs,
64148
64157
  Gr as Button,
64149
64158
  gre as Checkbox,
64150
- Rpe as CheckboxGroup,
64151
- Fpe as CitationField,
64152
- Zpe as CitationFieldProvider,
64153
- ihe as CitationManager,
64159
+ Dpe as CheckboxGroup,
64160
+ Vpe as CitationField,
64161
+ ehe as CitationFieldProvider,
64162
+ ahe as CitationManager,
64154
64163
  Mh as Column,
64155
- jpe as ConfirmationModal,
64156
- upe as DarkModeToggle,
64164
+ qpe as ConfirmationModal,
64165
+ fpe as DarkModeToggle,
64157
64166
  U0 as DateField,
64158
- $pe as DateRangeField,
64159
- qpe as DecisionModal,
64167
+ Fpe as DateRangeField,
64168
+ Ype as DecisionModal,
64160
64169
  are as Diff,
64161
64170
  S6 as DiffProvider,
64162
- Kpe as DiffTable,
64163
- ipe as DiffTableView,
64164
- spe as Drawer,
64165
- Mpe as DynamicAutocomplete,
64166
- ape as EnvironmentBanner,
64167
- zfe as ErrorAlert,
64168
- Ipe as FileList,
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,
64169
64178
  yre as FileUpload,
64170
- Xpe as FloatingNavBar,
64171
- Ype as Footer,
64172
- zpe as FormDebugger,
64173
- Gpe as Header,
64174
- Qpe as InfoAlert,
64179
+ Qpe as FloatingNavBar,
64180
+ Jpe as Footer,
64181
+ Wpe as FormDebugger,
64182
+ Xpe as Header,
64183
+ the as InfoAlert,
64175
64184
  HA as LoadingButton,
64176
- ohe as LoadingIndicator,
64185
+ she as LoadingIndicator,
64177
64186
  Pde as LoadingOverlay,
64178
- Dpe as Location,
64179
- Zfe as MenuButton,
64187
+ Ppe as Location,
64188
+ epe as MenuButton,
64180
64189
  qm as Modal,
64181
- _pe as MultiAutocomplete,
64182
- cpe as NavBar,
64183
- Xfe as NotApplicableCheckbox,
64184
- nhe as PageHeader,
64190
+ Ipe as MultiAutocomplete,
64191
+ dpe as NavBar,
64192
+ Qfe as NotApplicableCheckbox,
64193
+ ohe as PageHeader,
64185
64194
  Lde as PaginatedTable,
64186
- lpe as ProfileMenu,
64195
+ upe as ProfileMenu,
64187
64196
  zre as RadioGroup,
64188
- Ape as RangeSlider,
64197
+ Npe as RangeSlider,
64189
64198
  mc as ReadOnly,
64190
64199
  C6 as ReadOnlyProvider,
64191
- Wpe as RepeatableFormGroup,
64192
- Lpe as RichTextField,
64200
+ Upe as RepeatableFormGroup,
64201
+ Bpe as RichTextField,
64193
64202
  Ql as Row,
64194
- Vpe as ScrollToTop,
64203
+ Hpe as ScrollToTop,
64195
64204
  loe as SearchField,
64196
- Ppe as Select,
64197
- jfe as SelectableCitationManager,
64198
- Jpe as Sidebar,
64199
- rhe as SingleActionCard,
64200
- the as Snackbar,
64201
- she as Spacer,
64202
- Hpe as Stepper,
64203
- Bpe as Submit,
64204
- Hfe as SuccessAlert,
64205
- Npe as Switch,
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,
64206
64215
  VA as Table,
64207
64216
  dx as Tabs,
64208
64217
  Hre as TextArea,
64209
64218
  Es as TextField,
64210
64219
  b_ as TextIcon,
64211
64220
  Zr as ValidationError,
64212
- ehe as WarningAlert,
64221
+ nhe as WarningAlert,
64213
64222
  zde as baseCitationTableColumns,
64214
- ope as buildTableDiff,
64223
+ spe as buildTableDiff,
64215
64224
  zn as commonTheme,
64216
- Tpe as darkTheme,
64217
- Spe as lightTheme,
64225
+ Epe as darkTheme,
64226
+ kpe as lightTheme,
64218
64227
  ac as useDiff,
64219
64228
  sc as useReadOnly
64220
64229
  };