@instructure/platform-widget-dashboard 3.2.0 → 3.2.1

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.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as Wz from "react/jsx-runtime";
2
- import { jsx as u, jsxs as _, Fragment as _e } from "react/jsx-runtime";
2
+ import { jsx as u, jsxs as D, Fragment as _e } from "react/jsx-runtime";
3
3
  import { Alert as BM } from "@instructure/ui-alerts";
4
4
  import { Button as Z0, IconButton as n2, CloseButton as vo } from "@instructure/ui-buttons";
5
5
  import { Flex as N } from "@instructure/ui-flex";
@@ -548,7 +548,7 @@ const q3 = (e, b) => {
548
548
  type: f,
549
549
  position: { col: m, row: A, relative: 0 },
550
550
  title: h
551
- }, v = [...R.widgets.map((D) => D.position.col === m && D.position.row >= A ? { ...D, position: { ...D.position, row: D.position.row + 1 } } : D), B], y = Y1(
551
+ }, v = [...R.widgets.map((_) => _.position.col === m && _.position.row >= A ? { ..._, position: { ..._.position, row: _.position.row + 1 } } : _), B], y = Y1(
552
552
  Y1(v, U0),
553
553
  F0
554
554
  ), S = pe(y);
@@ -644,8 +644,8 @@ const r2 = void 0, y3 = ({
644
644
  p.errorDecliningInvitation,
645
645
  p.failedToDeclineInvitation
646
646
  ]), s = `/courses/${e.course.id}?invitation=${e.uuid}`;
647
- return /* @__PURE__ */ u(F, { as: "div", margin: "0 0 small 0", "data-testid": "enrollment-invitation", children: /* @__PURE__ */ _(BM, { variant: "success", renderCloseButtonLabel: "", children: [
648
- /* @__PURE__ */ u(N, { children: /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ u(N, { direction: "row", alignItems: "start", children: /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ u(F, { as: "div", children: /* @__PURE__ */ _("span", { children: [
647
+ return /* @__PURE__ */ u(F, { as: "div", margin: "0 0 small 0", "data-testid": "enrollment-invitation", children: /* @__PURE__ */ D(BM, { variant: "success", renderCloseButtonLabel: "", children: [
648
+ /* @__PURE__ */ u(N, { children: /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ u(N, { direction: "row", alignItems: "start", children: /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ u(F, { as: "div", children: /* @__PURE__ */ D("span", { children: [
649
649
  p.invitedToJoin,
650
650
  " ",
651
651
  /* @__PURE__ */ u(j0, { href: s, children: e.course.name }),
@@ -654,7 +654,7 @@ const r2 = void 0, y3 = ({
654
654
  role: e.roleLabel || ((O = e.role) == null ? void 0 : O.name)
655
655
  })
656
656
  ] }) }) }) }) }) }),
657
- /* @__PURE__ */ u(F, { as: "div", margin: "small 0 0 0", children: /* @__PURE__ */ _(N, { gap: "small", justifyItems: "start", children: [
657
+ /* @__PURE__ */ u(F, { as: "div", margin: "small 0 0 0", children: /* @__PURE__ */ D(N, { gap: "small", justifyItems: "start", children: [
658
658
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(
659
659
  Z0,
660
660
  {
@@ -772,14 +772,14 @@ function Sz() {
772
772
  var xz;
773
773
  function Te() {
774
774
  return xz || (xz = 1, function(e) {
775
- var b = n1 && n1.__createBinding || (Object.create ? function(y, S, X, D) {
776
- D === void 0 && (D = X);
775
+ var b = n1 && n1.__createBinding || (Object.create ? function(y, S, X, _) {
776
+ _ === void 0 && (_ = X);
777
777
  var E = Object.getOwnPropertyDescriptor(S, X);
778
778
  (!E || ("get" in E ? !S.__esModule : E.writable || E.configurable)) && (E = { enumerable: !0, get: function() {
779
779
  return S[X];
780
- } }), Object.defineProperty(y, D, E);
781
- } : function(y, S, X, D) {
782
- D === void 0 && (D = X), y[D] = S[X];
780
+ } }), Object.defineProperty(y, _, E);
781
+ } : function(y, S, X, _) {
782
+ _ === void 0 && (_ = X), y[_] = S[X];
783
783
  }), M = n1 && n1.__setModuleDefault || (Object.create ? function(y, S) {
784
784
  Object.defineProperty(y, "default", { enumerable: !0, value: S });
785
785
  } : function(y, S) {
@@ -836,8 +836,8 @@ function Te() {
836
836
  var f = (
837
837
  /** @class */
838
838
  function() {
839
- function y(S, X, D) {
840
- this.decodeTree = S, this.emitCodePoint = X, this.errors = D, this.state = W.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = d.Strict;
839
+ function y(S, X, _) {
840
+ this.decodeTree = S, this.emitCodePoint = X, this.errors = _, this.state = W.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = d.Strict;
841
841
  }
842
842
  return y.prototype.startEntity = function(S) {
843
843
  this.decodeMode = S, this.state = W.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
@@ -856,47 +856,47 @@ function Te() {
856
856
  }
857
857
  }, y.prototype.stateNumericStart = function(S, X) {
858
858
  return X >= S.length ? -1 : (S.charCodeAt(X) | i) === n.LOWER_X ? (this.state = W.NumericHex, this.consumed += 1, this.stateNumericHex(S, X + 1)) : (this.state = W.NumericDecimal, this.stateNumericDecimal(S, X));
859
- }, y.prototype.addToNumericResult = function(S, X, D, E) {
860
- if (X !== D) {
861
- var V = D - X;
859
+ }, y.prototype.addToNumericResult = function(S, X, _, E) {
860
+ if (X !== _) {
861
+ var V = _ - X;
862
862
  this.result = this.result * Math.pow(E, V) + parseInt(S.substr(X, V), E), this.consumed += V;
863
863
  }
864
864
  }, y.prototype.stateNumericHex = function(S, X) {
865
- for (var D = X; X < S.length; ) {
865
+ for (var _ = X; X < S.length; ) {
866
866
  var E = S.charCodeAt(X);
867
867
  if (O(E) || r(E))
868
868
  X += 1;
869
869
  else
870
- return this.addToNumericResult(S, D, X, 16), this.emitNumericEntity(E, 3);
870
+ return this.addToNumericResult(S, _, X, 16), this.emitNumericEntity(E, 3);
871
871
  }
872
- return this.addToNumericResult(S, D, X, 16), -1;
872
+ return this.addToNumericResult(S, _, X, 16), -1;
873
873
  }, y.prototype.stateNumericDecimal = function(S, X) {
874
- for (var D = X; X < S.length; ) {
874
+ for (var _ = X; X < S.length; ) {
875
875
  var E = S.charCodeAt(X);
876
876
  if (O(E))
877
877
  X += 1;
878
878
  else
879
- return this.addToNumericResult(S, D, X, 10), this.emitNumericEntity(E, 2);
879
+ return this.addToNumericResult(S, _, X, 10), this.emitNumericEntity(E, 2);
880
880
  }
881
- return this.addToNumericResult(S, D, X, 10), -1;
881
+ return this.addToNumericResult(S, _, X, 10), -1;
882
882
  }, y.prototype.emitNumericEntity = function(S, X) {
883
- var D;
883
+ var _;
884
884
  if (this.consumed <= X)
885
- return (D = this.errors) === null || D === void 0 || D.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
885
+ return (_ = this.errors) === null || _ === void 0 || _.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
886
886
  if (S === n.SEMI)
887
887
  this.consumed += 1;
888
888
  else if (this.decodeMode === d.Strict)
889
889
  return 0;
890
890
  return this.emitCodePoint((0, t.replaceCodePoint)(this.result), this.consumed), this.errors && (S !== n.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
891
891
  }, y.prototype.stateNamedEntity = function(S, X) {
892
- for (var D = this.decodeTree, E = D[this.treeIndex], V = (E & s.VALUE_LENGTH) >> 14; X < S.length; X++, this.excess++) {
892
+ for (var _ = this.decodeTree, E = _[this.treeIndex], V = (E & s.VALUE_LENGTH) >> 14; X < S.length; X++, this.excess++) {
893
893
  var G = S.charCodeAt(X);
894
- if (this.treeIndex = m(D, E, this.treeIndex + Math.max(1, V), G), this.treeIndex < 0)
894
+ if (this.treeIndex = m(_, E, this.treeIndex + Math.max(1, V), G), this.treeIndex < 0)
895
895
  return this.result === 0 || // If we are parsing an attribute
896
896
  this.decodeMode === d.Attribute && // We shouldn't have consumed any characters after the entity,
897
897
  (V === 0 || // And there should be no invalid characters.
898
898
  l(G)) ? 0 : this.emitNotTerminatedNamedEntity();
899
- if (E = D[this.treeIndex], V = (E & s.VALUE_LENGTH) >> 14, V !== 0) {
899
+ if (E = _[this.treeIndex], V = (E & s.VALUE_LENGTH) >> 14, V !== 0) {
900
900
  if (G === n.SEMI)
901
901
  return this.emitNamedEntityData(this.treeIndex, V, this.consumed + this.excess);
902
902
  this.decodeMode !== d.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
@@ -904,11 +904,11 @@ function Te() {
904
904
  }
905
905
  return -1;
906
906
  }, y.prototype.emitNotTerminatedNamedEntity = function() {
907
- var S, X = this, D = X.result, E = X.decodeTree, V = (E[D] & s.VALUE_LENGTH) >> 14;
908
- return this.emitNamedEntityData(D, V, this.consumed), (S = this.errors) === null || S === void 0 || S.missingSemicolonAfterCharacterReference(), this.consumed;
909
- }, y.prototype.emitNamedEntityData = function(S, X, D) {
907
+ var S, X = this, _ = X.result, E = X.decodeTree, V = (E[_] & s.VALUE_LENGTH) >> 14;
908
+ return this.emitNamedEntityData(_, V, this.consumed), (S = this.errors) === null || S === void 0 || S.missingSemicolonAfterCharacterReference(), this.consumed;
909
+ }, y.prototype.emitNamedEntityData = function(S, X, _) {
910
910
  var E = this.decodeTree;
911
- return this.emitCodePoint(X === 1 ? E[S] & ~s.VALUE_LENGTH : E[S + 1], D), X === 3 && this.emitCodePoint(E[S + 2], D), D;
911
+ return this.emitCodePoint(X === 1 ? E[S] & ~s.VALUE_LENGTH : E[S + 1], _), X === 3 && this.emitCodePoint(E[S + 2], _), _;
912
912
  }, y.prototype.end = function() {
913
913
  var S;
914
914
  switch (this.state) {
@@ -928,8 +928,8 @@ function Te() {
928
928
  );
929
929
  e.EntityDecoder = f;
930
930
  function h(y) {
931
- var S = "", X = new f(y, function(D) {
932
- return S += (0, t.fromCodePoint)(D);
931
+ var S = "", X = new f(y, function(_) {
932
+ return S += (0, t.fromCodePoint)(_);
933
933
  });
934
934
  return function(E, V) {
935
935
  for (var G = 0, z0 = 0; (z0 = E.indexOf("&", z0)) >= 0; ) {
@@ -949,19 +949,19 @@ function Te() {
949
949
  return S = "", P;
950
950
  };
951
951
  }
952
- function m(y, S, X, D) {
952
+ function m(y, S, X, _) {
953
953
  var E = (S & s.BRANCH_LENGTH) >> 7, V = S & s.JUMP_TABLE;
954
954
  if (E === 0)
955
- return V !== 0 && D === V ? X : -1;
955
+ return V !== 0 && _ === V ? X : -1;
956
956
  if (V) {
957
- var G = D - V;
957
+ var G = _ - V;
958
958
  return G < 0 || G >= E ? -1 : y[X + G] - 1;
959
959
  }
960
960
  for (var z0 = X, s0 = z0 + E - 1; z0 <= s0; ) {
961
961
  var P = z0 + s0 >>> 1, Y = y[P];
962
- if (Y < D)
962
+ if (Y < _)
963
963
  z0 = P + 1;
964
- else if (Y > D)
964
+ else if (Y > _)
965
965
  s0 = P - 1;
966
966
  else
967
967
  return y[P + E];
@@ -1528,8 +1528,8 @@ function _z() {
1528
1528
  }, W.prototype.oncdata = function(d, f, h) {
1529
1529
  var m, A, R, L, B, T, v, y, S, X;
1530
1530
  this.endIndex = f;
1531
- var D = this.getSlice(d, f - h);
1532
- this.options.xmlMode || this.options.recognizeCDATA ? ((A = (m = this.cbs).oncdatastart) === null || A === void 0 || A.call(m), (L = (R = this.cbs).ontext) === null || L === void 0 || L.call(R, D), (T = (B = this.cbs).oncdataend) === null || T === void 0 || T.call(B)) : ((y = (v = this.cbs).oncomment) === null || y === void 0 || y.call(v, "[CDATA[".concat(D, "]]")), (X = (S = this.cbs).oncommentend) === null || X === void 0 || X.call(S)), this.startIndex = f + 1;
1531
+ var _ = this.getSlice(d, f - h);
1532
+ this.options.xmlMode || this.options.recognizeCDATA ? ((A = (m = this.cbs).oncdatastart) === null || A === void 0 || A.call(m), (L = (R = this.cbs).ontext) === null || L === void 0 || L.call(R, _), (T = (B = this.cbs).oncdataend) === null || T === void 0 || T.call(B)) : ((y = (v = this.cbs).oncomment) === null || y === void 0 || y.call(v, "[CDATA[".concat(_, "]]")), (X = (S = this.cbs).oncommentend) === null || X === void 0 || X.call(S)), this.startIndex = f + 1;
1533
1533
  }, W.prototype.onend = function() {
1534
1534
  var d, f;
1535
1535
  if (this.cbs.onclosetag) {
@@ -1923,13 +1923,13 @@ function Pz() {
1923
1923
  }), A.namespace != null && (T.namespace = A.namespace), A["x-attribsNamespace"] && (T["x-attribsNamespace"] = b({}, A["x-attribsNamespace"])), A["x-attribsPrefix"] && (T["x-attribsPrefix"] = b({}, A["x-attribsPrefix"])), L = T;
1924
1924
  } else if (r(A)) {
1925
1925
  var B = R ? m(A.children) : [], v = new n(B);
1926
- B.forEach(function(D) {
1927
- return D.parent = v;
1926
+ B.forEach(function(_) {
1927
+ return _.parent = v;
1928
1928
  }), L = v;
1929
1929
  } else if (d(A)) {
1930
1930
  var B = R ? m(A.children) : [], y = new i(B);
1931
- B.forEach(function(D) {
1932
- return D.parent = y;
1931
+ B.forEach(function(_) {
1932
+ return _.parent = y;
1933
1933
  }), A["x-mode"] && (y["x-mode"] = A["x-mode"]), L = y;
1934
1934
  } else if (W(A)) {
1935
1935
  var S = new t(A.name, A.data);
@@ -3104,9 +3104,9 @@ function j3() {
3104
3104
  }
3105
3105
  }
3106
3106
  function h() {
3107
- var m = !1, A, R, L, B, T = {}, v, y, S, X, D;
3107
+ var m = !1, A, R, L, B, T = {}, v, y, S, X, _;
3108
3108
  for (B = 0; B < O.length; B++)
3109
- v = O[B], y = v[v.length - 1], S = v.substring(0, v.length - 1), X = parseInt(S, 10), D = parseFloat(S), n.test(S) && y === "w" ? ((A || R) && (m = !0), X === 0 ? m = !0 : A = X) : i.test(S) && y === "x" ? ((A || R || L) && (m = !0), D < 0 ? m = !0 : R = D) : n.test(S) && y === "h" ? ((L || R) && (m = !0), X === 0 ? m = !0 : L = X) : m = !0;
3109
+ v = O[B], y = v[v.length - 1], S = v.substring(0, v.length - 1), X = parseInt(S, 10), _ = parseFloat(S), n.test(S) && y === "w" ? ((A || R) && (m = !0), X === 0 ? m = !0 : A = X) : i.test(S) && y === "x" ? ((A || R || L) && (m = !0), _ < 0 ? m = !0 : R = _) : n.test(S) && y === "h" ? ((L || R) && (m = !0), X === 0 ? m = !0 : L = X) : m = !0;
3110
3110
  m ? console && console.log && console.log("Invalid srcset descriptor found in '" + b + "' at '" + v + "'.") : (T.url = s, A && (T.w = A), R && (T.d = R), L && (T.h = L), d.push(T));
3111
3111
  }
3112
3112
  };
@@ -4436,7 +4436,7 @@ function Q3() {
4436
4436
  Bp = 1;
4437
4437
  const e = 39, b = 34, M = 92, z = 47, p = 10, o = 32, c = 12, t = 9, a = 13, n = 91, i = 93, s = 40, O = 41, r = 123, q = 125, l = 59, W = 42, d = 58, f = 64, h = /[\t\n\f\r "#'()/;[\\\]{}]/g, m = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, A = /.[\r\n"'(/\\]/, R = /[\da-f]/i;
4438
4438
  return xb = function(B, T = {}) {
4439
- let v = B.css.valueOf(), y = T.ignoreErrors, S, X, D, E, V, G, z0, s0, P, Y, r0 = v.length, j = 0, e0 = [], t0 = [];
4439
+ let v = B.css.valueOf(), y = T.ignoreErrors, S, X, _, E, V, G, z0, s0, P, Y, r0 = v.length, j = 0, e0 = [], t0 = [];
4440
4440
  function M0() {
4441
4441
  return j;
4442
4442
  }
@@ -4513,9 +4513,9 @@ function Q3() {
4513
4513
  break;
4514
4514
  }
4515
4515
  case M: {
4516
- for (E = j, D = !0; v.charCodeAt(E + 1) === M; )
4517
- E += 1, D = !D;
4518
- if (S = v.charCodeAt(E + 1), D && S !== z && S !== o && S !== p && S !== t && S !== a && S !== c && (E += 1, R.test(v.charAt(E)))) {
4516
+ for (E = j, _ = !0; v.charCodeAt(E + 1) === M; )
4517
+ E += 1, _ = !_;
4518
+ if (S = v.charCodeAt(E + 1), _ && S !== z && S !== o && S !== p && S !== t && S !== a && S !== c && (E += 1, R.test(v.charAt(E)))) {
4519
4519
  for (; R.test(v.charAt(E + 1)); )
4520
4520
  E += 1;
4521
4521
  v.charCodeAt(E + 1) === o && (E += 1);
@@ -5515,10 +5515,10 @@ and ensure you are accounting for this risk.
5515
5515
  }
5516
5516
  });
5517
5517
  const X = {};
5518
- let D;
5518
+ let _;
5519
5519
  a(d.transformTags, function(C, w) {
5520
5520
  let g;
5521
- typeof C == "function" ? g = C : typeof C == "string" && (g = q.simpleTransform(C)), w === "*" ? D = g : X[w] = g;
5521
+ typeof C == "function" ? g = C : typeof C == "string" && (g = q.simpleTransform(C)), w === "*" ? _ = g : X[w] = g;
5522
5522
  });
5523
5523
  let E, V, G, z0, s0, P, Y = !1;
5524
5524
  j();
@@ -5533,7 +5533,7 @@ and ensure you are accounting for this risk.
5533
5533
  let x = !1;
5534
5534
  const I = !!g.text;
5535
5535
  let U;
5536
- if (n(X, C) && (U = X[C](C, w), g.attribs = w = U.attribs, U.text !== void 0 && (g.innerText = U.text), C !== U.tagName && (g.name = C = U.tagName, z0[E] = U.tagName)), D && (U = D(C, w), g.attribs = w = U.attribs, C !== U.tagName && (g.name = C = U.tagName, z0[E] = U.tagName)), (!R(C) || d.disallowedTagsMode === "recursiveEscape" && !s(G) || d.nestingLimit != null && E >= d.nestingLimit) && (x = !0, G[E] = !0, (d.disallowedTagsMode === "discard" || d.disallowedTagsMode === "completelyDiscard") && L.indexOf(C) !== -1 && (s0 = !0, P = 1)), E++, x) {
5536
+ if (n(X, C) && (U = X[C](C, w), g.attribs = w = U.attribs, U.text !== void 0 && (g.innerText = U.text), C !== U.tagName && (g.name = C = U.tagName, z0[E] = U.tagName)), _ && (U = _(C, w), g.attribs = w = U.attribs, C !== U.tagName && (g.name = C = U.tagName, z0[E] = U.tagName)), (!R(C) || d.disallowedTagsMode === "recursiveEscape" && !s(G) || d.nestingLimit != null && E >= d.nestingLimit) && (x = !0, G[E] = !0, (d.disallowedTagsMode === "discard" || d.disallowedTagsMode === "completelyDiscard") && L.indexOf(C) !== -1 && (s0 = !0, P = 1)), E++, x) {
5537
5537
  if (d.disallowedTagsMode === "discard" || d.disallowedTagsMode === "completelyDiscard") {
5538
5538
  if (g.innerText && !I) {
5539
5539
  const c0 = e0(g.innerText);
@@ -6131,10 +6131,10 @@ const zO = /* @__PURE__ */ XM(MO), pO = (e) => {
6131
6131
  }, cO = ({ notification: e, onDismiss: b }) => {
6132
6132
  const { translations: M } = O0(), z = () => {
6133
6133
  b(e.id);
6134
- }, p = e.siteAdmin ? /* @__PURE__ */ _(H, { size: "small", children: [
6134
+ }, p = e.siteAdmin ? /* @__PURE__ */ D(H, { size: "small", children: [
6135
6135
  M.messageFrom,
6136
6136
  /* @__PURE__ */ u(H, { weight: "bold", size: "small", children: M.canvasAdministration })
6137
- ] }) : /* @__PURE__ */ _(H, { size: "small", children: [
6137
+ ] }) : /* @__PURE__ */ D(H, { size: "small", children: [
6138
6138
  M.messageFrom,
6139
6139
  /* @__PURE__ */ u(H, { weight: "bold", size: "small", children: e.accountName })
6140
6140
  ] });
@@ -6147,7 +6147,7 @@ const zO = /* @__PURE__ */ XM(MO), pO = (e) => {
6147
6147
  onDismiss: z,
6148
6148
  margin: "0 0 medium 0",
6149
6149
  transition: "none",
6150
- children: /* @__PURE__ */ _(F, { as: "div", children: [
6150
+ children: /* @__PURE__ */ D(F, { as: "div", children: [
6151
6151
  /* @__PURE__ */ u(H, { weight: "bold", size: "medium", as: "div", children: e.subject }),
6152
6152
  /* @__PURE__ */ u(
6153
6153
  F,
@@ -6232,7 +6232,7 @@ const zO = /* @__PURE__ */ XM(MO), pO = (e) => {
6232
6232
  ), q = ((c == null ? void 0 : c.enrollmentInvitations) || []).filter(
6233
6233
  (l) => !p.has(l.id)
6234
6234
  );
6235
- return r.length === 0 && q.length === 0 ? null : /* @__PURE__ */ _(F, { as: "div", margin: "0 0 medium 0", children: [
6235
+ return r.length === 0 && q.length === 0 ? null : /* @__PURE__ */ D(F, { as: "div", margin: "0 0 medium 0", children: [
6236
6236
  q.map((l) => /* @__PURE__ */ u(
6237
6237
  y3,
6238
6238
  {
@@ -6463,7 +6463,7 @@ function pc(e) {
6463
6463
  }
6464
6464
  const oc = ({ count: e, label: b, backgroundColor: M }) => {
6465
6465
  const z = (p) => p >= 1e3 ? `${(p / 1e3).toFixed(1).replace(/\.0$/, "")}k` : p.toLocaleString();
6466
- return /* @__PURE__ */ _(
6466
+ return /* @__PURE__ */ D(
6467
6467
  F,
6468
6468
  {
6469
6469
  as: "div",
@@ -6662,8 +6662,8 @@ function cc() {
6662
6662
  const X = e * a;
6663
6663
  return d.slice(X, X + a);
6664
6664
  }, [d, e, a]), v = o0((X) => {
6665
- const D = X - 1;
6666
- D >= 0 && b(D);
6665
+ const _ = X - 1;
6666
+ _ >= 0 && b(_);
6667
6667
  }, []), y = o0(() => {
6668
6668
  b(0);
6669
6669
  }, []), S = o0(() => {
@@ -6704,7 +6704,7 @@ const mO = ({
6704
6704
  borderRadius: "medium",
6705
6705
  width: "100%",
6706
6706
  height: "100%",
6707
- children: /* @__PURE__ */ _(N, { direction: "column", height: "100%", children: [
6707
+ children: /* @__PURE__ */ D(N, { direction: "column", height: "100%", children: [
6708
6708
  /* @__PURE__ */ u(
6709
6709
  N,
6710
6710
  {
@@ -6724,7 +6724,7 @@ const mO = ({
6724
6724
  width: "100%",
6725
6725
  height: "100%",
6726
6726
  "data-testid": "course-progress-card-body",
6727
- children: /* @__PURE__ */ _(N, { direction: "column", alignItems: "center", height: "100%", padding: "medium", children: [
6727
+ children: /* @__PURE__ */ D(N, { direction: "column", alignItems: "center", height: "100%", padding: "medium", children: [
6728
6728
  /* @__PURE__ */ u(N.Item, { style: { display: "flex", alignItems: "center", width: "100%" }, children: /* @__PURE__ */ u(
6729
6729
  H,
6730
6730
  {
@@ -6734,7 +6734,7 @@ const mO = ({
6734
6734
  children: `${b}%`
6735
6735
  }
6736
6736
  ) }),
6737
- /* @__PURE__ */ u(H, { size: "small", style: { height: "16px" }, children: M > 0 ? c(o.ungradedSubmissions, { count: M }) : /* @__PURE__ */ _(_e, { children: [
6737
+ /* @__PURE__ */ u(H, { size: "small", style: { height: "16px" }, children: M > 0 ? c(o.ungradedSubmissions, { count: M }) : /* @__PURE__ */ D(_e, { children: [
6738
6738
  /* @__PURE__ */ u(Xo, { "aria-hidden": !0, color: "success" }),
6739
6739
  " ",
6740
6740
  o.upToDate
@@ -6821,21 +6821,21 @@ const mO = ({
6821
6821
  }, s = () => {
6822
6822
  t.isInLeftColumn && t.isLastInColumn ? c("move-down-cross") : c("move-down");
6823
6823
  };
6824
- return /* @__PURE__ */ _(M1, { placement: "bottom start", trigger: e, children: [
6825
- /* @__PURE__ */ _(M1.Item, { onSelect: i, disabled: a, children: [
6824
+ return /* @__PURE__ */ D(M1, { placement: "bottom start", trigger: e, children: [
6825
+ /* @__PURE__ */ D(M1.Item, { onSelect: i, disabled: a, children: [
6826
6826
  /* @__PURE__ */ u(hz, {}),
6827
6827
  " ",
6828
6828
  o.moveUp
6829
6829
  ] }),
6830
- /* @__PURE__ */ _(M1.Item, { onSelect: s, disabled: n, children: [
6830
+ /* @__PURE__ */ D(M1.Item, { onSelect: s, disabled: n, children: [
6831
6831
  /* @__PURE__ */ u(Rz, {}),
6832
6832
  " ",
6833
6833
  o.moveDown
6834
6834
  ] })
6835
6835
  ] });
6836
6836
  }
6837
- return /* @__PURE__ */ _(M1, { placement: "bottom start", trigger: e, children: [
6838
- /* @__PURE__ */ _(
6837
+ return /* @__PURE__ */ D(M1, { placement: "bottom start", trigger: e, children: [
6838
+ /* @__PURE__ */ D(
6839
6839
  M1.Item,
6840
6840
  {
6841
6841
  onSelect: () => c("move-to-top"),
@@ -6847,17 +6847,17 @@ const mO = ({
6847
6847
  ]
6848
6848
  }
6849
6849
  ),
6850
- /* @__PURE__ */ _(M1.Item, { onSelect: () => c("move-up"), disabled: t.isFirstInColumn, children: [
6850
+ /* @__PURE__ */ D(M1.Item, { onSelect: () => c("move-up"), disabled: t.isFirstInColumn, children: [
6851
6851
  /* @__PURE__ */ u(hz, {}),
6852
6852
  " ",
6853
6853
  o.moveUp
6854
6854
  ] }),
6855
- /* @__PURE__ */ _(M1.Item, { onSelect: () => c("move-down"), disabled: t.isLastInColumn, children: [
6855
+ /* @__PURE__ */ D(M1.Item, { onSelect: () => c("move-down"), disabled: t.isLastInColumn, children: [
6856
6856
  /* @__PURE__ */ u(Rz, {}),
6857
6857
  " ",
6858
6858
  o.moveDown
6859
6859
  ] }),
6860
- /* @__PURE__ */ _(
6860
+ /* @__PURE__ */ D(
6861
6861
  M1.Item,
6862
6862
  {
6863
6863
  onSelect: () => c("move-to-bottom"),
@@ -6869,7 +6869,7 @@ const mO = ({
6869
6869
  ]
6870
6870
  }
6871
6871
  ),
6872
- /* @__PURE__ */ _(
6872
+ /* @__PURE__ */ D(
6873
6873
  M1.Item,
6874
6874
  {
6875
6875
  onSelect: () => c("move-left-top"),
@@ -6881,12 +6881,12 @@ const mO = ({
6881
6881
  ]
6882
6882
  }
6883
6883
  ),
6884
- /* @__PURE__ */ _(M1.Item, { onSelect: () => c("move-left"), disabled: t.isInLeftColumn, children: [
6884
+ /* @__PURE__ */ D(M1.Item, { onSelect: () => c("move-left"), disabled: t.isInLeftColumn, children: [
6885
6885
  /* @__PURE__ */ u(mz, {}),
6886
6886
  " ",
6887
6887
  o.moveLeftBottom
6888
6888
  ] }),
6889
- /* @__PURE__ */ _(
6889
+ /* @__PURE__ */ D(
6890
6890
  M1.Item,
6891
6891
  {
6892
6892
  onSelect: () => c("move-right-top"),
@@ -6898,7 +6898,7 @@ const mO = ({
6898
6898
  ]
6899
6899
  }
6900
6900
  ),
6901
- /* @__PURE__ */ _(M1.Item, { onSelect: () => c("move-right"), disabled: t.isInRightColumn, children: [
6901
+ /* @__PURE__ */ D(M1.Item, { onSelect: () => c("move-right"), disabled: t.isInRightColumn, children: [
6902
6902
  /* @__PURE__ */ u(nM, {}),
6903
6903
  " ",
6904
6904
  o.moveRightBottom
@@ -6943,7 +6943,7 @@ const mO = ({
6943
6943
  }
6944
6944
  }, X = () => {
6945
6945
  R(e.id, L);
6946
- }, D = /* @__PURE__ */ _("div", { style: { display: "flex", gap: "0.5rem", alignItems: "center" }, children: [
6946
+ }, _ = /* @__PURE__ */ D("div", { style: { display: "flex", gap: "0.5rem", alignItems: "center" }, children: [
6947
6947
  /* @__PURE__ */ u(
6948
6948
  NO,
6949
6949
  {
@@ -6986,7 +6986,7 @@ const mO = ({
6986
6986
  children: /* @__PURE__ */ u(wt, {})
6987
6987
  }
6988
6988
  )
6989
- ] }), E = () => c ? /* @__PURE__ */ u(N, { justifyItems: "center", alignItems: "center", height: "400px", children: /* @__PURE__ */ u(P1, { renderTitle: n || l.loadingWidgetData, size: "medium" }) }) : t ? /* @__PURE__ */ _(F, { as: "div", textAlign: "center", children: [
6989
+ ] }), E = () => c ? /* @__PURE__ */ u(N, { justifyItems: "center", alignItems: "center", height: "400px", children: /* @__PURE__ */ u(P1, { renderTitle: n || l.loadingWidgetData, size: "medium" }) }) : t ? /* @__PURE__ */ D(F, { as: "div", textAlign: "center", children: [
6990
6990
  /* @__PURE__ */ u(H, { color: "danger", size: "medium", children: t }),
6991
6991
  a && /* @__PURE__ */ u(F, { as: "div", margin: "small 0 0", children: /* @__PURE__ */ u(Z0, { onClick: a, size: "small", "data-testid": `${e.id}-retry-button`, children: l.retry }) })
6992
6992
  ] }) : M || /* @__PURE__ */ u(F, { as: "div", textAlign: "center", children: /* @__PURE__ */ u(H, { color: "secondary", size: "medium", children: l.noContentAvailable }) });
@@ -7003,17 +7003,17 @@ const mO = ({
7003
7003
  "data-testid": `widget-${e.id}`,
7004
7004
  "aria-labelledby": p && L ? B : void 0,
7005
7005
  role: "region",
7006
- children: /* @__PURE__ */ _(N, { direction: "column", gap: "small", children: [
7007
- p && L && (f ? /* @__PURE__ */ _(N, { direction: "column", gap: "x-small", children: [
7006
+ children: /* @__PURE__ */ D(N, { direction: "column", gap: "small", children: [
7007
+ p && L && (f ? /* @__PURE__ */ D(N, { direction: "column", gap: "x-small", children: [
7008
7008
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(g2, { level: "h2", margin: "0", id: B, children: L }) }),
7009
7009
  o && /* @__PURE__ */ u(N.Item, { padding: "x-small 0 x-small x-small", children: o }),
7010
- r && /* @__PURE__ */ u(N.Item, { padding: "x-small 0 x-small x-small", children: D })
7011
- ] }) : /* @__PURE__ */ _(N, { direction: "row", alignItems: "center", justifyItems: "space-between", wrap: "wrap", children: [
7010
+ r && /* @__PURE__ */ u(N.Item, { padding: "x-small 0 x-small x-small", children: _ })
7011
+ ] }) : /* @__PURE__ */ D(N, { direction: "row", alignItems: "center", justifyItems: "space-between", wrap: "wrap", children: [
7012
7012
  /* @__PURE__ */ u(N.Item, { shouldGrow: !0, children: /* @__PURE__ */ u(g2, { level: "h2", variant: "titleCardSection", margin: "0", id: B, children: L }) }),
7013
7013
  o && /* @__PURE__ */ u(N.Item, { shouldGrow: !1, children: o }),
7014
- r && /* @__PURE__ */ u(N.Item, { margin: "0 0 0 small", shouldGrow: !1, children: D })
7014
+ r && /* @__PURE__ */ u(N.Item, { margin: "0 0 0 small", shouldGrow: !1, children: _ })
7015
7015
  ] })),
7016
- /* @__PURE__ */ _(
7016
+ /* @__PURE__ */ D(
7017
7017
  F,
7018
7018
  {
7019
7019
  as: "div",
@@ -7045,7 +7045,7 @@ const mO = ({
7045
7045
  }
7046
7046
  ),
7047
7047
  z && !c && !t && /* @__PURE__ */ u(F, { as: "div", margin: "small 0 0", children: z }),
7048
- i && !c && !t && i.totalPages > 1 && /* @__PURE__ */ u(F, { as: "div", textAlign: "center", padding: "x-small 0", "data-testid": "pagination-container", children: /* @__PURE__ */ _(N, { direction: "row", justifyItems: "center", alignItems: "center", gap: "small", children: [
7048
+ i && !c && !t && i.totalPages > 1 && /* @__PURE__ */ u(F, { as: "div", textAlign: "center", padding: "x-small 0", "data-testid": "pagination-container", children: /* @__PURE__ */ D(N, { direction: "row", justifyItems: "center", alignItems: "center", gap: "small", children: [
7049
7049
  i.isLoading && /* @__PURE__ */ u(P1, { size: "x-small", renderTitle: l.loading }),
7050
7050
  /* @__PURE__ */ u(
7051
7051
  Zt,
@@ -7073,10 +7073,10 @@ function yO({
7073
7073
  translations: b
7074
7074
  }) {
7075
7075
  const { data: M } = sO();
7076
- return /* @__PURE__ */ _(N, { alignItems: "center", justifyItems: "space-between", children: [
7076
+ return /* @__PURE__ */ D(N, { alignItems: "center", justifyItems: "space-between", children: [
7077
7077
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(g2, { level: "h3", margin: "0", children: e.name }) }),
7078
- /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ _(N, { gap: "medium", alignItems: "center", children: [
7079
- /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ _(
7078
+ /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ D(N, { gap: "medium", alignItems: "center", children: [
7079
+ /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ D(
7080
7080
  j0,
7081
7081
  {
7082
7082
  href: `${e.dashboardUrl}/conversations`,
@@ -7085,7 +7085,7 @@ function yO({
7085
7085
  rel: "noopener noreferrer",
7086
7086
  "data-testid": `inbox-link-${e.id}`,
7087
7087
  children: [
7088
- /* @__PURE__ */ _(N, { gap: "xx-small", alignItems: "center", children: [
7088
+ /* @__PURE__ */ D(N, { gap: "xx-small", alignItems: "center", children: [
7089
7089
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(St, { "aria-hidden": !0 }) }),
7090
7090
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(H, { size: "small", children: `${b.messages}: ${(M == null ? void 0 : M.inboxCount) ?? 0}` }) })
7091
7091
  ] }),
@@ -7093,7 +7093,7 @@ function yO({
7093
7093
  ]
7094
7094
  }
7095
7095
  ) }),
7096
- /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ _(
7096
+ /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ D(
7097
7097
  j0,
7098
7098
  {
7099
7099
  href: `${e.dashboardUrl}/account_notifications`,
@@ -7102,7 +7102,7 @@ function yO({
7102
7102
  rel: "noopener noreferrer",
7103
7103
  "data-testid": `announcements-link-${e.id}`,
7104
7104
  children: [
7105
- /* @__PURE__ */ _(N, { gap: "xx-small", alignItems: "center", children: [
7105
+ /* @__PURE__ */ D(N, { gap: "xx-small", alignItems: "center", children: [
7106
7106
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(xt, { "aria-hidden": !0 }) }),
7107
7107
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(H, { size: "small", children: `${b.announcements}: ${(M == null ? void 0 : M.announcementCount) ?? 0}` }) })
7108
7108
  ] }),
@@ -7128,8 +7128,8 @@ const TO = ({ widget: e, isEditMode: b = !1 }) => {
7128
7128
  }, []), s = (O, r) => {
7129
7129
  r.value && typeof r.value == "string" && a(r.value);
7130
7130
  };
7131
- return /* @__PURE__ */ u(K0, { widget: e, isEditMode: b, children: /* @__PURE__ */ _(N, { gap: "medium", direction: "column", children: [
7132
- /* @__PURE__ */ u(F, { as: "div", children: /* @__PURE__ */ _(
7131
+ return /* @__PURE__ */ u(K0, { widget: e, isEditMode: b, children: /* @__PURE__ */ D(N, { gap: "medium", direction: "column", children: [
7132
+ /* @__PURE__ */ u(F, { as: "div", children: /* @__PURE__ */ D(
7133
7133
  y0,
7134
7134
  {
7135
7135
  renderLabel: M.view,
@@ -7143,10 +7143,10 @@ const TO = ({ widget: e, isEditMode: b = !1 }) => {
7143
7143
  }
7144
7144
  ) }),
7145
7145
  p.map((O, r) => {
7146
- const q = /* @__PURE__ */ _(N, { direction: "column", gap: "small", children: [
7146
+ const q = /* @__PURE__ */ D(N, { direction: "column", gap: "small", children: [
7147
7147
  /* @__PURE__ */ u(yO, { account: O, translations: M }),
7148
7148
  t === "assignmentsAndQuizzes" ? /* @__PURE__ */ u(qO, { startDate: n, endDate: i }) : /* @__PURE__ */ u(LO, {}),
7149
- /* @__PURE__ */ u(F, { as: "div", textAlign: "center", children: /* @__PURE__ */ _(
7149
+ /* @__PURE__ */ u(F, { as: "div", textAlign: "center", children: /* @__PURE__ */ D(
7150
7150
  j0,
7151
7151
  {
7152
7152
  href: `${O.dashboardUrl}/dashboard`,
@@ -7161,7 +7161,7 @@ const TO = ({ widget: e, isEditMode: b = !1 }) => {
7161
7161
  }
7162
7162
  ) })
7163
7163
  ] });
7164
- return /* @__PURE__ */ _(N2.Fragment, { children: [
7164
+ return /* @__PURE__ */ D(N2.Fragment, { children: [
7165
7165
  r > 0 && /* @__PURE__ */ u(
7166
7166
  F,
7167
7167
  {
@@ -7419,7 +7419,7 @@ const tc = {
7419
7419
  }
7420
7420
  }
7421
7421
  return EO();
7422
- }, [o, c, i == null ? void 0 : i.custom_colors, e]), q = p || (O == null ? void 0 : O.courseCode) || "N/A", l = /* @__PURE__ */ _(
7422
+ }, [o, c, i == null ? void 0 : i.custom_colors, e]), q = p || (O == null ? void 0 : O.courseCode) || "N/A", l = /* @__PURE__ */ D(
7423
7423
  yM,
7424
7424
  {
7425
7425
  color: "primary",
@@ -7525,8 +7525,8 @@ const Pp = ({ children: e, maxLength: b = 80 }) => /* @__PURE__ */ u(H, { title:
7525
7525
  "data-testid": `announcement-item-${o.id}`,
7526
7526
  role: "group",
7527
7527
  "aria-label": o.title,
7528
- children: /* @__PURE__ */ _(N, { direction: "column", gap: "xxx-small", children: [
7529
- /* @__PURE__ */ u(N.Item, { overflowY: "visible", children: /* @__PURE__ */ _(N, { direction: "row", gap: "x-small", children: [
7528
+ children: /* @__PURE__ */ D(N, { direction: "column", gap: "xxx-small", children: [
7529
+ /* @__PURE__ */ u(N.Item, { overflowY: "visible", children: /* @__PURE__ */ D(N, { direction: "row", gap: "x-small", children: [
7530
7530
  /* @__PURE__ */ u(N.Item, { shouldShrink: !1, children: /* @__PURE__ */ u(
7531
7531
  De,
7532
7532
  {
@@ -7535,8 +7535,8 @@ const Pp = ({ children: e, maxLength: b = 80 }) => /* @__PURE__ */ u(H, { title:
7535
7535
  size: "medium"
7536
7536
  }
7537
7537
  ) }),
7538
- /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ _(N, { direction: "column", gap: "xxx-small", children: [
7539
- /* @__PURE__ */ u(N.Item, { shouldShrink: !0, overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ _(N, { direction: "row", justifyItems: "space-between", alignItems: "start", gap: "small", children: [
7538
+ /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ D(N, { direction: "column", gap: "xxx-small", children: [
7539
+ /* @__PURE__ */ u(N.Item, { shouldShrink: !0, overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ D(N, { direction: "row", justifyItems: "space-between", alignItems: "start", gap: "small", children: [
7540
7540
  /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ u(H, { weight: "bold", size: "small", wrap: "normal", color: "primary", children: /* @__PURE__ */ u(Pp, { maxLength: 75, children: o.title }) }) }),
7541
7541
  /* @__PURE__ */ u(N.Item, { shouldShrink: !1, children: r() })
7542
7542
  ] }) }),
@@ -7548,7 +7548,7 @@ const Pp = ({ children: e, maxLength: b = 80 }) => /* @__PURE__ */ u(H, { title:
7548
7548
  size: "x-small"
7549
7549
  }
7550
7550
  ) }),
7551
- /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ _(
7551
+ /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ D(
7552
7552
  H,
7553
7553
  {
7554
7554
  size: "x-small",
@@ -7556,7 +7556,7 @@ const Pp = ({ children: e, maxLength: b = 80 }) => /* @__PURE__ */ u(H, { title:
7556
7556
  wrap: "break-word",
7557
7557
  style: { wordBreak: "break-all" },
7558
7558
  children: [
7559
- ((d = o.author) == null ? void 0 : d.name) && /* @__PURE__ */ _(_e, { children: [
7559
+ ((d = o.author) == null ? void 0 : d.name) && /* @__PURE__ */ D(_e, { children: [
7560
7560
  z("Sent by %{authorName}", {
7561
7561
  authorName: o.author.name
7562
7562
  }),
@@ -7568,7 +7568,7 @@ const Pp = ({ children: e, maxLength: b = 80 }) => /* @__PURE__ */ u(H, { title:
7568
7568
  ) })
7569
7569
  ] }) })
7570
7570
  ] }) }),
7571
- /* @__PURE__ */ u(N.Item, { overflowX: "visible", overflowY: "visible", children: o.message && /* @__PURE__ */ u(F, { children: /* @__PURE__ */ _(H, { size: "x-small", children: [
7571
+ /* @__PURE__ */ u(N.Item, { overflowX: "visible", overflowY: "visible", children: o.message && /* @__PURE__ */ u(F, { children: /* @__PURE__ */ D(H, { size: "x-small", children: [
7572
7572
  /* @__PURE__ */ u(Pp, { maxLength: 120, children: s }),
7573
7573
  " "
7574
7574
  ] }) }) }),
@@ -7611,7 +7611,7 @@ const Pp = ({ children: e, maxLength: b = 80 }) => /* @__PURE__ */ u(H, { title:
7611
7611
  courseCode: (R == null ? void 0 : R.courseCode) || void 0
7612
7612
  }
7613
7613
  };
7614
- }), [t, p]), d = () => /* @__PURE__ */ _(
7614
+ }), [t, p]), d = () => /* @__PURE__ */ D(
7615
7615
  y0,
7616
7616
  {
7617
7617
  renderLabel: z.readFilter,
@@ -7657,7 +7657,7 @@ const Pp = ({ children: e, maxLength: b = 80 }) => /* @__PURE__ */ u(H, { title:
7657
7657
  isLoading: O,
7658
7658
  ariaLabel: z.announcementsPagination
7659
7659
  },
7660
- children: /* @__PURE__ */ _(N, { direction: "column", gap: "small", children: [
7660
+ children: /* @__PURE__ */ D(N, { direction: "column", gap: "small", children: [
7661
7661
  /* @__PURE__ */ u(N.Item, { overflowX: "visible", overflowY: "visible", children: d() }),
7662
7662
  /* @__PURE__ */ u(N.Item, { shouldGrow: !0, children: f() })
7663
7663
  ] })
@@ -7709,7 +7709,7 @@ function IM(e = {}) {
7709
7709
  };
7710
7710
  }
7711
7711
  const jO = ({ courseName: e, maxLines: b = 2 }) => {
7712
- const [M, z] = J(!1), p = /* @__PURE__ */ _(H, { size: "medium", weight: "bold", lineHeight: "condensed", children: [
7712
+ const [M, z] = J(!1), p = /* @__PURE__ */ D(H, { size: "medium", weight: "bold", lineHeight: "condensed", children: [
7713
7713
  M && /* @__PURE__ */ u(O2, { children: e }),
7714
7714
  /* @__PURE__ */ u("span", { "aria-hidden": M, style: { display: "block" }, children: /* @__PURE__ */ u(TM, { maxLines: b, onUpdate: z, children: e }) })
7715
7715
  ] });
@@ -7761,7 +7761,7 @@ const jO = ({ courseName: e, maxLines: b = 2 }) => {
7761
7761
  shadow: "resting",
7762
7762
  role: "listitem",
7763
7763
  "aria-label": M,
7764
- children: /* @__PURE__ */ _(N, { direction: "column", width: "100%", height: "100%", children: [
7764
+ children: /* @__PURE__ */ D(N, { direction: "column", width: "100%", height: "100%", children: [
7765
7765
  /* @__PURE__ */ u(
7766
7766
  N.Item,
7767
7767
  {
@@ -7782,7 +7782,7 @@ const jO = ({ courseName: e, maxLines: b = 2 }) => {
7782
7782
  }
7783
7783
  ),
7784
7784
  /* @__PURE__ */ u(N.Item, { height: "3rem", padding: "0 0 0 xx-small", overflowY: "hidden", overflowX: "hidden", children: /* @__PURE__ */ u(F, { height: "100%", overflowY: "hidden", children: /* @__PURE__ */ u(jO, { courseName: M }) }) }),
7785
- /* @__PURE__ */ u(N.Item, { shouldGrow: !0, padding: "0 0 0 xx-small", overflowY: "visible", children: /* @__PURE__ */ _(N, { direction: "column", gap: "0", height: "100%", children: [
7785
+ /* @__PURE__ */ u(N.Item, { shouldGrow: !0, padding: "0 0 0 xx-small", overflowY: "visible", children: /* @__PURE__ */ D(N, { direction: "column", gap: "0", height: "100%", children: [
7786
7786
  /* @__PURE__ */ u(N.Item, { height: "1.5rem", children: o && z !== null && /* @__PURE__ */ u(
7787
7787
  H,
7788
7788
  {
@@ -7792,7 +7792,7 @@ const jO = ({ courseName: e, maxLines: b = 2 }) => {
7792
7792
  children: HO(o, i)
7793
7793
  }
7794
7794
  ) }),
7795
- /* @__PURE__ */ u(N.Item, { overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ _(N, { children: [
7795
+ /* @__PURE__ */ u(N.Item, { overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ D(N, { children: [
7796
7796
  /* @__PURE__ */ u(N.Item, { overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ u(
7797
7797
  j0,
7798
7798
  {
@@ -7833,7 +7833,7 @@ const jO = ({ courseName: e, maxLines: b = 2 }) => {
7833
7833
  themeOverride: {
7834
7834
  borderColorPrimary: "#E8EAEC"
7835
7835
  },
7836
- children: /* @__PURE__ */ _(N, { direction: "row", justifyItems: "start", alignItems: "center", height: "60px", children: [
7836
+ children: /* @__PURE__ */ D(N, { direction: "row", justifyItems: "start", alignItems: "center", height: "60px", children: [
7837
7837
  /* @__PURE__ */ u(
7838
7838
  N.Item,
7839
7839
  {
@@ -8017,7 +8017,7 @@ const nc = ({
8017
8017
  ],
8018
8018
  [p.notSubmitted, p.missing, p.submitted]
8019
8019
  );
8020
- return /* @__PURE__ */ _(N, { direction: o ? "column" : "row", wrap: "wrap", gap: "small", children: [
8020
+ return /* @__PURE__ */ D(N, { direction: o ? "column" : "row", wrap: "wrap", gap: "small", children: [
8021
8021
  /* @__PURE__ */ u(N.Item, { shouldGrow: !0, overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ u(Oc, { selectedCourse: e, onChange: M }) }),
8022
8022
  /* @__PURE__ */ u(N.Item, { shouldGrow: !0, overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ u(
8023
8023
  y0,
@@ -8501,7 +8501,7 @@ function jp(e, b) {
8501
8501
  }
8502
8502
  const pr = (e, b, M) => {
8503
8503
  const z = new Date(e);
8504
- return isNaN(z.getTime()) ? "" : z.toLocaleDateString(b, {
8504
+ return Number.isNaN(z.getTime()) ? "" : z.toLocaleDateString(b, {
8505
8505
  timeZone: M
8506
8506
  });
8507
8507
  };
@@ -8614,7 +8614,7 @@ function Or({ item: e }) {
8614
8614
  role: "group",
8615
8615
  "aria-label": e.title,
8616
8616
  "data-testid": `listed-course-work-item-${e.id}`,
8617
- children: /* @__PURE__ */ u(F, { as: "div", margin: "small", background: "primary", children: /* @__PURE__ */ _(
8617
+ children: /* @__PURE__ */ u(F, { as: "div", margin: "small", background: "primary", children: /* @__PURE__ */ D(
8618
8618
  N,
8619
8619
  {
8620
8620
  gap: "small",
@@ -8635,7 +8635,7 @@ function Or({ item: e }) {
8635
8635
  children: kM(e.type, p)
8636
8636
  }
8637
8637
  ) }),
8638
- /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ _(N, { direction: "column", gap: "0", children: [
8638
+ /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ D(N, { direction: "column", gap: "0", children: [
8639
8639
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(
8640
8640
  j0,
8641
8641
  {
@@ -8645,7 +8645,7 @@ function Or({ item: e }) {
8645
8645
  children: /* @__PURE__ */ u(H, { weight: "bold", size: "small", children: e.title })
8646
8646
  }
8647
8647
  ) }),
8648
- /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ _(N, { direction: "row", gap: "x-small", alignItems: "center", children: [
8648
+ /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ D(N, { direction: "row", gap: "x-small", alignItems: "center", children: [
8649
8649
  /* @__PURE__ */ u(H, { size: "x-small", color: "secondary", children: e.course.name }),
8650
8650
  /* @__PURE__ */ u(H, { size: "x-small", color: "secondary", children: "|" }),
8651
8651
  /* @__PURE__ */ u(
@@ -8671,7 +8671,7 @@ function Or({ item: e }) {
8671
8671
  display: "inline-block",
8672
8672
  themeOverride: { backgroundPrimary: z.color.background },
8673
8673
  "data-testid": `${z.type}-status-pill-${e.id}`,
8674
- children: /* @__PURE__ */ _(N, { gap: "xx-small", alignItems: "center", children: [
8674
+ children: /* @__PURE__ */ D(N, { gap: "xx-small", alignItems: "center", children: [
8675
8675
  z.icon && /* @__PURE__ */ u(z.icon, { size: "x-small", color: z.iconColor }),
8676
8676
  /* @__PURE__ */ u(
8677
8677
  H,
@@ -8750,7 +8750,7 @@ const Gp = ({
8750
8750
  isLoading: f,
8751
8751
  ariaLabel: o.courseWorkPagination
8752
8752
  },
8753
- children: /* @__PURE__ */ _(N, { direction: "column", gap: "small", height: "100%", children: [
8753
+ children: /* @__PURE__ */ D(N, { direction: "column", gap: "small", height: "100%", children: [
8754
8754
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(
8755
8755
  nc,
8756
8756
  {
@@ -8999,7 +8999,7 @@ function sr({
8999
8999
  isLoading: l,
9000
9000
  ariaLabel: c.instructorsPagination
9001
9001
  },
9002
- children: /* @__PURE__ */ _(N, { direction: "column", height: "100%", children: [
9002
+ children: /* @__PURE__ */ D(N, { direction: "column", height: "100%", children: [
9003
9003
  t.length > 1 && /* @__PURE__ */ u(N.Item, { margin: "0 0 small 0", children: /* @__PURE__ */ u(
9004
9004
  y0,
9005
9005
  {
@@ -9009,7 +9009,7 @@ function sr({
9009
9009
  children: t.map((R) => /* @__PURE__ */ u(y0.Option, { id: R.id, value: R.id, children: R.name }, R.id))
9010
9010
  }
9011
9011
  ) }),
9012
- /* @__PURE__ */ u(N.Item, { shouldGrow: !0, children: /* @__PURE__ */ u(F, { as: "div", children: d.length === 0 ? /* @__PURE__ */ u(H, { color: "secondary", "data-testid": "no-instructors-message", children: c.noInstructorsFound }) : /* @__PURE__ */ u(Y0, { isUnstyled: !0, margin: "0", children: d.map((R) => /* @__PURE__ */ u(Y0.Item, { margin: "0", children: /* @__PURE__ */ _(
9012
+ /* @__PURE__ */ u(N.Item, { shouldGrow: !0, children: /* @__PURE__ */ u(F, { as: "div", children: d.length === 0 ? /* @__PURE__ */ u(H, { color: "secondary", "data-testid": "no-instructors-message", children: c.noInstructorsFound }) : /* @__PURE__ */ u(Y0, { isUnstyled: !0, margin: "0", children: d.map((R) => /* @__PURE__ */ u(Y0.Item, { margin: "0", children: /* @__PURE__ */ D(
9013
9013
  N,
9014
9014
  {
9015
9015
  gap: "small",
@@ -9026,7 +9026,7 @@ function sr({
9026
9026
  "data-testid": `instructor-avatar-${R.id}`
9027
9027
  }
9028
9028
  ) }),
9029
- /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ _(F, { as: "div", children: [
9029
+ /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ D(F, { as: "div", children: [
9030
9030
  /* @__PURE__ */ u(H, { size: "medium", weight: "bold", lineHeight: "condensed", children: R.name }),
9031
9031
  /* @__PURE__ */ u(F, { as: "div", children: /* @__PURE__ */ u(H, { size: "x-small", color: "secondary", children: R.enrollments.map((L) => {
9032
9032
  const B = ur(L.role, c);
@@ -9752,7 +9752,7 @@ function Gr() {
9752
9752
  }
9753
9753
  }
9754
9754
  }
9755
- var A = a, R = n, L = t, B = c, T = b, v = i, y = z, S = q, X = r, D = M, E = o, V = p, G = s, z0 = !1;
9755
+ var A = a, R = n, L = t, B = c, T = b, v = i, y = z, S = q, X = r, _ = M, E = o, V = p, G = s, z0 = !1;
9756
9756
  function s0(w) {
9757
9757
  return z0 || (z0 = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), P(w) || m(w) === a;
9758
9758
  }
@@ -9792,7 +9792,7 @@ function Gr() {
9792
9792
  function C(w) {
9793
9793
  return m(w) === s;
9794
9794
  }
9795
- N0.AsyncMode = A, N0.ConcurrentMode = R, N0.ContextConsumer = L, N0.ContextProvider = B, N0.Element = T, N0.ForwardRef = v, N0.Fragment = y, N0.Lazy = S, N0.Memo = X, N0.Portal = D, N0.Profiler = E, N0.StrictMode = V, N0.Suspense = G, N0.isAsyncMode = s0, N0.isConcurrentMode = P, N0.isContextConsumer = Y, N0.isContextProvider = r0, N0.isElement = j, N0.isForwardRef = e0, N0.isFragment = t0, N0.isLazy = M0, N0.isMemo = Q, N0.isPortal = p0, N0.isProfiler = A0, N0.isStrictMode = i0, N0.isSuspense = C, N0.isValidElementType = h, N0.typeOf = m;
9795
+ N0.AsyncMode = A, N0.ConcurrentMode = R, N0.ContextConsumer = L, N0.ContextProvider = B, N0.Element = T, N0.ForwardRef = v, N0.Fragment = y, N0.Lazy = S, N0.Memo = X, N0.Portal = _, N0.Profiler = E, N0.StrictMode = V, N0.Suspense = G, N0.isAsyncMode = s0, N0.isConcurrentMode = P, N0.isContextConsumer = Y, N0.isContextProvider = r0, N0.isElement = j, N0.isForwardRef = e0, N0.isFragment = t0, N0.isLazy = M0, N0.isMemo = Q, N0.isPortal = p0, N0.isProfiler = A0, N0.isStrictMode = i0, N0.isSuspense = C, N0.isValidElementType = h, N0.typeOf = m;
9796
9796
  }()), N0;
9797
9797
  }
9798
9798
  var Zp;
@@ -10455,7 +10455,7 @@ function qn() {
10455
10455
  }
10456
10456
  function v() {
10457
10457
  function P(Y, r0, j, e0, t0) {
10458
- return D(Y[r0]) ? null : new l("Invalid " + e0 + " `" + t0 + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
10458
+ return _(Y[r0]) ? null : new l("Invalid " + e0 + " `" + t0 + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
10459
10459
  }
10460
10460
  return W(P);
10461
10461
  }
@@ -10504,7 +10504,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
10504
10504
  }
10505
10505
  return W(Y);
10506
10506
  }
10507
- function D(P) {
10507
+ function _(P) {
10508
10508
  switch (typeof P) {
10509
10509
  case "number":
10510
10510
  case "string":
@@ -10514,7 +10514,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
10514
10514
  return !P;
10515
10515
  case "object":
10516
10516
  if (Array.isArray(P))
10517
- return P.every(D);
10517
+ return P.every(_);
10518
10518
  if (P === null || t(P))
10519
10519
  return !0;
10520
10520
  var Y = s(P);
@@ -10522,12 +10522,12 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " ")
10522
10522
  var r0 = Y.call(P), j;
10523
10523
  if (Y !== P.entries) {
10524
10524
  for (; !(j = r0.next()).done; )
10525
- if (!D(j.value))
10525
+ if (!_(j.value))
10526
10526
  return !1;
10527
10527
  } else
10528
10528
  for (; !(j = r0.next()).done; ) {
10529
10529
  var e0 = j.value;
10530
- if (e0 && !D(e0[1]))
10530
+ if (e0 && !_(e0[1]))
10531
10531
  return !1;
10532
10532
  }
10533
10533
  } else
@@ -10994,7 +10994,7 @@ const In = {
10994
10994
  onSubmit: z,
10995
10995
  isCreating: p
10996
10996
  }) => {
10997
- const { translations: o } = O0(), { locale: c, timezone: t } = x0(), [a, n] = J(""), [i, s] = J(""), [O, r] = J([]), q = uo({ defaultTime: Pn }), l = uo({ defaultTime: kn }), [W, d] = J(!1), [f, h] = J(!1), [m, A] = J(!1), [R, L] = J(""), [B, T] = J(""), [v, y] = J(""), [S, X] = J(""), D = m1(null), E = m1(null), V = m1(null);
10997
+ const { translations: o } = O0(), { locale: c, timezone: t } = x0(), [a, n] = J(""), [i, s] = J(""), [O, r] = J([]), q = uo({ defaultTime: Pn }), l = uo({ defaultTime: kn }), [W, d] = J(!1), [f, h] = J(!1), [m, A] = J(!1), [R, L] = J(""), [B, T] = J(""), [v, y] = J(""), [S, X] = J(""), _ = m1(null), E = m1(null), V = m1(null);
10998
10998
  k0(() => {
10999
10999
  if (e) {
11000
11000
  if (r(b ?? []), M) {
@@ -11006,7 +11006,17 @@ const In = {
11006
11006
  r([]), n(""), s(""), q.reset(), l.reset(), d(!1), h(!1), A(!1), L(""), T(""), y(""), X("");
11007
11007
  };
11008
11008
  }
11009
- }, [e]);
11009
+ }, [
11010
+ e,
11011
+ l.initFrom,
11012
+ l.reset,
11013
+ b,
11014
+ M,
11015
+ c,
11016
+ q.initFrom,
11017
+ q.reset,
11018
+ t
11019
+ ]);
11010
11020
  const G = (C, w) => {
11011
11021
  n(w), R && w.trim() && w.length <= aM && L("");
11012
11022
  }, z0 = (C) => {
@@ -11035,7 +11045,7 @@ const In = {
11035
11045
  }, e0 = () => {
11036
11046
  var I;
11037
11047
  let C = !1, w = null;
11038
- a.trim() ? a.length > aM ? (L(o.announcementTitleMaxLength), C = !0, w = D) : L("") : (L(o.announcementTitleRequired), C = !0, w = D), O.length === 0 ? (T(o.announcementCoursesRequired), C = !0, w || (w = E)) : T(""), i.trim() ? new Blob([i]).size > Un ? (y(o.announcementContentTooLarge), C = !0, w || (w = V)) : y("") : (y(o.announcementContentRequired), C = !0, w || (w = V)), q.hasInvalidInput && (C = !0, w || (w = q.inputRef)), l.hasInvalidInput && (C = !0, w || (w = l.inputRef));
11048
+ a.trim() ? a.length > aM ? (L(o.announcementTitleMaxLength), C = !0, w = _) : L("") : (L(o.announcementTitleRequired), C = !0, w = _), O.length === 0 ? (T(o.announcementCoursesRequired), C = !0, w || (w = E)) : T(""), i.trim() ? new Blob([i]).size > Un ? (y(o.announcementContentTooLarge), C = !0, w || (w = V)) : y("") : (y(o.announcementContentRequired), C = !0, w || (w = V)), q.hasInvalidInput && (C = !0, w || (w = q.inputRef)), l.hasInvalidInput && (C = !0, w || (w = l.inputRef));
11039
11049
  const g = jp(q.date, q.time), x = jp(l.date, l.time);
11040
11050
  if (g && x && new Date(x) < new Date(g) ? (X(o.announcementEndDateBeforeStart), C = !0, w || (w = l.inputRef)) : X(""), C) {
11041
11051
  (I = w == null ? void 0 : w.current) == null || I.focus();
@@ -11068,7 +11078,7 @@ const In = {
11068
11078
  courseMessages: Q,
11069
11079
  contentMessages: p0,
11070
11080
  endDateMessages: A0,
11071
- titleRef: D,
11081
+ titleRef: _,
11072
11082
  courseInputRef: E,
11073
11083
  messageRef: V,
11074
11084
  onTitleChange: G,
@@ -11086,9 +11096,9 @@ const In = {
11086
11096
  dateMessages: o
11087
11097
  }) => {
11088
11098
  const { translations: c } = O0(), { locale: t, timezone: a } = x0();
11089
- return /* @__PURE__ */ _("fieldset", { style: Hn, children: [
11099
+ return /* @__PURE__ */ D("fieldset", { style: Hn, children: [
11090
11100
  /* @__PURE__ */ u("legend", { style: Gn, children: /* @__PURE__ */ u(O2, { children: e }) }),
11091
- /* @__PURE__ */ _(N, { gap: "small", wrap: "wrap", alignItems: "start", children: [
11101
+ /* @__PURE__ */ D(N, { gap: "small", wrap: "wrap", alignItems: "start", children: [
11092
11102
  /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, size: "10rem", children: /* @__PURE__ */ u(
11093
11103
  z3,
11094
11104
  {
@@ -11161,15 +11171,15 @@ const In = {
11161
11171
  () => e.filter((X) => A.has(X.id)),
11162
11172
  [e, A]
11163
11173
  ), L = q0(
11164
- () => [...e].sort((X, D) => X.name.localeCompare(D.name)),
11174
+ () => [...e].sort((X, _) => X.name.localeCompare(_.name)),
11165
11175
  [e]
11166
11176
  ), B = q0(() => {
11167
11177
  if (!f) return L;
11168
11178
  const X = f.toLowerCase();
11169
11179
  return L.filter(
11170
- (D) => {
11180
+ (_) => {
11171
11181
  var E, V, G;
11172
- return D.name.toLowerCase().includes(X) || ((E = D.courseCode) == null ? void 0 : E.toLowerCase().includes(X)) || ((V = D.term) == null ? void 0 : V.toLowerCase().includes(X)) || ((G = D.sisId) == null ? void 0 : G.toLowerCase().includes(X));
11182
+ return _.name.toLowerCase().includes(X) || ((E = _.courseCode) == null ? void 0 : E.toLowerCase().includes(X)) || ((V = _.term) == null ? void 0 : V.toLowerCase().includes(X)) || ((G = _.sisId) == null ? void 0 : G.toLowerCase().includes(X));
11173
11183
  }
11174
11184
  );
11175
11185
  }, [L, f]), T = q0(
@@ -11194,9 +11204,18 @@ const In = {
11194
11204
  ]);
11195
11205
  const v = o0(
11196
11206
  (X) => {
11197
- A.has(X) ? M(b.filter((D) => D !== X)) : (!o || b.length < o) && M([...b, X]);
11207
+ const _ = e.find((E) => E.id === X);
11208
+ A.has(X) ? (M(b.filter((E) => E !== X)), _ && (r == null || r(O("courseDeselected", { courseName: _.name })))) : !o || b.length < o ? (M([...b, X]), _ && (r == null || r(O("courseSelected", { courseName: _.name })))) : r == null || r(O("maxSelectionsReached", { count: o }));
11198
11209
  },
11199
- [b, A, M, o]
11210
+ [
11211
+ b,
11212
+ A,
11213
+ M,
11214
+ o,
11215
+ e,
11216
+ r,
11217
+ O
11218
+ ]
11200
11219
  ), y = q0(() => R.length === 0 ? null : /* @__PURE__ */ u(F, { as: "div", display: "inline-block", padding: "xx-small", children: R.map((X) => /* @__PURE__ */ u(
11201
11220
  o3,
11202
11221
  {
@@ -11204,14 +11223,14 @@ const In = {
11204
11223
  dismissible: !0,
11205
11224
  size: "small",
11206
11225
  margin: "0 xx-small xx-small 0",
11207
- onClick: (D) => {
11208
- D.stopPropagation(), D.preventDefault(), v(X.id);
11226
+ onClick: (_) => {
11227
+ _.stopPropagation(), _.preventDefault(), v(X.id);
11209
11228
  },
11210
11229
  "aria-label": O("removeCourse", { name: X.name }),
11211
11230
  "data-testid": `course-tag-${X.id}`
11212
11231
  },
11213
11232
  X.id
11214
- )) }), [R, v]), S = o0(
11233
+ )) }), [R, v, O]), S = o0(
11215
11234
  (X) => {
11216
11235
  X.key === "Backspace" && f === "" && b.length > 0 && M(b.slice(0, -1));
11217
11236
  },
@@ -11232,21 +11251,21 @@ const In = {
11232
11251
  onRequestHideOptions: () => {
11233
11252
  l(!1), h(""), d(null);
11234
11253
  },
11235
- onRequestHighlightOption: (X, { id: D }) => {
11236
- d(D ?? null);
11254
+ onRequestHighlightOption: (X, { id: _ }) => {
11255
+ d(_ ?? null);
11237
11256
  },
11238
- onRequestSelectOption: (X, { id: D }) => {
11239
- D && D !== "more-hint" && (v(D), l(!1), h(""), d(null));
11257
+ onRequestSelectOption: (X, { id: _ }) => {
11258
+ _ && _ !== "more-hint" && (v(_), l(!1), h(""), d(null));
11240
11259
  },
11241
- onInputChange: (X, D) => {
11242
- h(D), l(!0);
11260
+ onInputChange: (X, _) => {
11261
+ h(_), l(!0);
11243
11262
  },
11244
11263
  onKeyDown: S,
11245
11264
  renderBeforeInput: y,
11246
11265
  messages: a,
11247
11266
  interaction: t,
11248
11267
  "data-testid": i,
11249
- children: c ? /* @__PURE__ */ u(S2.Option, { id: "loading", isDisabled: !0, children: /* @__PURE__ */ _(N, { alignItems: "center", gap: "x-small", children: [
11268
+ children: c ? /* @__PURE__ */ u(S2.Option, { id: "loading", isDisabled: !0, children: /* @__PURE__ */ D(N, { alignItems: "center", gap: "x-small", children: [
11250
11269
  /* @__PURE__ */ u(P1, { size: "x-small", renderTitle: s.loadingCourses }),
11251
11270
  /* @__PURE__ */ u(H, { size: "small", children: s.loadingCourses })
11252
11271
  ] }) }) : T.length === 0 ? /* @__PURE__ */ u(S2.Option, { id: "no-results", isDisabled: !0, children: s.noMatchingCourses }) : [
@@ -11256,8 +11275,8 @@ const In = {
11256
11275
  id: X.id,
11257
11276
  isHighlighted: W === X.id,
11258
11277
  isSelected: A.has(X.id),
11259
- renderAfterLabel: ({ isSelected: D }) => D ? /* @__PURE__ */ u(wo, { color: "primary-inverse", size: "x-small" }) : null,
11260
- children: /* @__PURE__ */ _(F, { as: "span", display: "inline-block", children: [
11278
+ renderAfterLabel: ({ isSelected: _ }) => _ ? /* @__PURE__ */ u(wo, { color: "primary-inverse", size: "x-small" }) : null,
11279
+ children: /* @__PURE__ */ D(F, { as: "span", display: "inline-block", children: [
11261
11280
  X.name,
11262
11281
  X.courseCode && /* @__PURE__ */ u(eM, { text: X.courseCode }),
11263
11282
  X.term && /* @__PURE__ */ u(eM, { text: X.term }),
@@ -11301,7 +11320,7 @@ const In = {
11301
11320
  }), O = () => {
11302
11321
  z || b();
11303
11322
  };
11304
- return /* @__PURE__ */ _(
11323
+ return /* @__PURE__ */ D(
11305
11324
  K1,
11306
11325
  {
11307
11326
  open: e,
@@ -11310,7 +11329,7 @@ const In = {
11310
11329
  label: t.createAnnouncement,
11311
11330
  shouldCloseOnDocumentClick: !1,
11312
11331
  children: [
11313
- /* @__PURE__ */ _(K1.Header, { children: [
11332
+ /* @__PURE__ */ D(K1.Header, { children: [
11314
11333
  /* @__PURE__ */ u(
11315
11334
  vo,
11316
11335
  {
@@ -11324,7 +11343,7 @@ const In = {
11324
11343
  ),
11325
11344
  /* @__PURE__ */ u(g2, { children: t.createAnnouncement })
11326
11345
  ] }),
11327
- /* @__PURE__ */ u(K1.Body, { children: /* @__PURE__ */ _(N, { direction: "column", gap: "medium", children: [
11346
+ /* @__PURE__ */ u(K1.Body, { children: /* @__PURE__ */ D(N, { direction: "column", gap: "medium", children: [
11328
11347
  /* @__PURE__ */ u(N.Item, { overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ u(
11329
11348
  _o,
11330
11349
  {
@@ -11382,7 +11401,7 @@ const In = {
11382
11401
  query: { wide: { minWidth: 600 } },
11383
11402
  render: (r, q) => {
11384
11403
  const l = q == null ? void 0 : q.includes("wide");
11385
- return /* @__PURE__ */ _(N, { direction: l ? "row" : "column", gap: "small", alignItems: "start", children: [
11404
+ return /* @__PURE__ */ D(N, { direction: l ? "row" : "column", gap: "small", alignItems: "start", children: [
11386
11405
  /* @__PURE__ */ u(
11387
11406
  N.Item,
11388
11407
  {
@@ -11435,7 +11454,7 @@ const In = {
11435
11454
  }
11436
11455
  }
11437
11456
  ) }),
11438
- /* @__PURE__ */ u(N.Item, { overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ _(
11457
+ /* @__PURE__ */ u(N.Item, { overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ D(
11439
11458
  b3,
11440
11459
  {
11441
11460
  name: "announcement-options",
@@ -11469,7 +11488,7 @@ const In = {
11469
11488
  }
11470
11489
  ) })
11471
11490
  ] }) }),
11472
- /* @__PURE__ */ u(K1.Footer, { children: /* @__PURE__ */ _(N, { justifyItems: "end", gap: "small", children: [
11491
+ /* @__PURE__ */ u(K1.Footer, { children: /* @__PURE__ */ D(N, { justifyItems: "end", gap: "small", children: [
11473
11492
  /* @__PURE__ */ u(N.Item, { overflowY: "visible", children: /* @__PURE__ */ u(
11474
11493
  Z0,
11475
11494
  {
@@ -11521,8 +11540,8 @@ const In = {
11521
11540
  ...M,
11522
11541
  error: O ? z.failedToLoadCourses : null,
11523
11542
  onRetry: r,
11524
- children: /* @__PURE__ */ _(Tc, { theme: In, children: [
11525
- /* @__PURE__ */ _(N, { direction: "column", gap: "medium", children: [
11543
+ children: /* @__PURE__ */ D(Tc, { theme: In, children: [
11544
+ /* @__PURE__ */ D(N, { direction: "column", gap: "medium", children: [
11526
11545
  /* @__PURE__ */ u(
11527
11546
  vc,
11528
11547
  {
@@ -11679,7 +11698,7 @@ const Mi = (e) => {
11679
11698
  "data-testid": `message-item-${e.id}`,
11680
11699
  role: "group",
11681
11700
  "aria-label": e.subject,
11682
- children: /* @__PURE__ */ u(N, { direction: "column", gap: "xxx-small", children: /* @__PURE__ */ u(N.Item, { overflowY: "visible", children: /* @__PURE__ */ _(N, { direction: "row", gap: "x-small", children: [
11701
+ children: /* @__PURE__ */ u(N, { direction: "column", gap: "xxx-small", children: /* @__PURE__ */ u(N.Item, { overflowY: "visible", children: /* @__PURE__ */ D(N, { direction: "row", gap: "x-small", children: [
11683
11702
  /* @__PURE__ */ u(N.Item, { shouldShrink: !1, children: /* @__PURE__ */ u(
11684
11703
  De,
11685
11704
  {
@@ -11688,8 +11707,8 @@ const Mi = (e) => {
11688
11707
  size: "medium"
11689
11708
  }
11690
11709
  ) }),
11691
- /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ _(N, { direction: "column", gap: "xxx-small", children: [
11692
- /* @__PURE__ */ u(N.Item, { shouldShrink: !0, overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ _(N, { direction: "row", justifyItems: "space-between", alignItems: "start", gap: "small", children: [
11710
+ /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ D(N, { direction: "column", gap: "xxx-small", children: [
11711
+ /* @__PURE__ */ u(N.Item, { shouldShrink: !0, overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ D(N, { direction: "row", justifyItems: "space-between", alignItems: "start", gap: "small", children: [
11693
11712
  /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ u(H, { size: "x-small", color: "secondary", wrap: "break-word", children: (M == null ? void 0 : M.name) || b.unknownSender }) }),
11694
11713
  /* @__PURE__ */ u(N.Item, { shouldShrink: !1, children: /* @__PURE__ */ u(H, { size: "x-small", color: "secondary", children: Mi(e.lastMessageAt) }) })
11695
11714
  ] }) }),
@@ -11706,7 +11725,7 @@ const Mi = (e) => {
11706
11725
  }) => {
11707
11726
  const { translations: z } = O0(), [p, o] = N1(e.id, "filter", "unread"), { data: c = [], isLoading: t, error: a, refetch: n } = bi({ limit: 5, filter: p }), i = (l) => {
11708
11727
  o(l);
11709
- }, s = () => /* @__PURE__ */ _(
11728
+ }, s = () => /* @__PURE__ */ D(
11710
11729
  y0,
11711
11730
  {
11712
11731
  renderLabel: "Filter",
@@ -11734,7 +11753,7 @@ const Mi = (e) => {
11734
11753
  onRetry: q,
11735
11754
  loadingText: z.loading,
11736
11755
  actions: r(),
11737
- children: /* @__PURE__ */ _(N, { direction: "column", gap: "small", children: [
11756
+ children: /* @__PURE__ */ D(N, { direction: "column", gap: "small", children: [
11738
11757
  /* @__PURE__ */ u(N.Item, { overflowX: "visible", overflowY: "visible", children: s() }),
11739
11758
  /* @__PURE__ */ u(N.Item, { shouldGrow: !0, children: O() })
11740
11759
  ] })
@@ -11775,17 +11794,17 @@ const Mi = (e) => {
11775
11794
  limit: Q2.PEOPLE
11776
11795
  }), B = (f == null ? void 0 : f.data) ?? [], T = z || null || (L ? c.failedToLoadInstructorData : null), v = !T && (M || l || R), y = (X) => {
11777
11796
  var E, V;
11778
- const D = (V = (E = X.enrollments) == null ? void 0 : E[0]) == null ? void 0 : V.course_id;
11797
+ const _ = (V = (E = X.enrollments) == null ? void 0 : E[0]) == null ? void 0 : V.course_id;
11779
11798
  s({
11780
11799
  id: X.id.split("-")[0],
11781
11800
  displayName: X.name,
11782
11801
  email: X.email,
11783
- contextCode: D ? `course_${D}` : ""
11802
+ contextCode: _ ? `course_${_}` : ""
11784
11803
  }), r((G) => G + 1);
11785
11804
  }, S = () => {
11786
11805
  s(null);
11787
11806
  };
11788
- return /* @__PURE__ */ _(
11807
+ return /* @__PURE__ */ D(
11789
11808
  K0,
11790
11809
  {
11791
11810
  widget: e,
@@ -11804,8 +11823,8 @@ const Mi = (e) => {
11804
11823
  },
11805
11824
  children: [
11806
11825
  /* @__PURE__ */ u(N, { direction: "column", height: "100%", children: /* @__PURE__ */ u(N.Item, { shouldGrow: !0, children: /* @__PURE__ */ u(F, { as: "div", padding: "0", children: B.length === 0 ? /* @__PURE__ */ u(H, { color: "secondary", "data-testid": "no-instructors-message", children: c.noInstructorsFound }) : /* @__PURE__ */ u(F, { as: "div", children: /* @__PURE__ */ u(Y0, { isUnstyled: !0, margin: "0", children: B.map((X) => {
11807
- var D;
11808
- return /* @__PURE__ */ u(Y0.Item, { margin: "0", children: /* @__PURE__ */ _(
11826
+ var _;
11827
+ return /* @__PURE__ */ u(Y0.Item, { margin: "0", children: /* @__PURE__ */ D(
11809
11828
  N,
11810
11829
  {
11811
11830
  gap: "small",
@@ -11822,12 +11841,12 @@ const Mi = (e) => {
11822
11841
  "data-testid": `instructor-avatar-${X.id}`
11823
11842
  }
11824
11843
  ) }),
11825
- /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ _(F, { as: "div", children: [
11844
+ /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ D(F, { as: "div", children: [
11826
11845
  /* @__PURE__ */ u(H, { size: "medium", weight: "bold", lineHeight: "condensed", children: X.name }),
11827
11846
  X.course_code && /* @__PURE__ */ u(F, { as: "div", margin: "xxx-small 0 0 0", children: /* @__PURE__ */ u(
11828
11847
  $2,
11829
11848
  {
11830
- courseId: (D = X.enrollments[0]) == null ? void 0 : D.course_id,
11849
+ courseId: (_ = X.enrollments[0]) == null ? void 0 : _.course_id,
11831
11850
  overrideCode: X.course_code,
11832
11851
  size: "x-small"
11833
11852
  }
@@ -11884,7 +11903,7 @@ const Mi = (e) => {
11884
11903
  ],
11885
11904
  [e]
11886
11905
  );
11887
- return /* @__PURE__ */ u(Y0, { isUnstyled: !0, margin: "none", "data-testid": "progress-legend", "aria-hidden": "true", children: b.map((M) => /* @__PURE__ */ u(Y0.Item, { children: /* @__PURE__ */ _(N, { gap: "x-small", alignItems: "center", children: [
11906
+ return /* @__PURE__ */ u(Y0, { isUnstyled: !0, margin: "none", "data-testid": "progress-legend", "aria-hidden": "true", children: b.map((M) => /* @__PURE__ */ u(Y0.Item, { children: /* @__PURE__ */ D(N, { gap: "x-small", alignItems: "center", children: [
11888
11907
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(
11889
11908
  t3,
11890
11909
  {
@@ -12004,8 +12023,8 @@ const ni = ({
12004
12023
  margin: "small 0",
12005
12024
  borderWidth: "0 0 0 medium",
12006
12025
  themeOverride: { borderColorPrimary: q },
12007
- children: /* @__PURE__ */ _(N, { direction: "column", gap: "x-small", children: [
12008
- /* @__PURE__ */ u(N.Item, { overflowY: "visible", children: /* @__PURE__ */ _(N, { direction: "column", gap: "x-small", children: [
12026
+ children: /* @__PURE__ */ D(N, { direction: "column", gap: "x-small", children: [
12027
+ /* @__PURE__ */ u(N.Item, { overflowY: "visible", children: /* @__PURE__ */ D(N, { direction: "column", gap: "x-small", children: [
12009
12028
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(H, { size: "medium", weight: "bold", wrap: "break-word", children: o }) }),
12010
12029
  /* @__PURE__ */ u(N.Item, { overflowY: "visible", children: /* @__PURE__ */ u(
12011
12030
  j0,
@@ -12017,24 +12036,24 @@ const ni = ({
12017
12036
  children: /* @__PURE__ */ u(H, { size: "small", children: b.goToCourse })
12018
12037
  }
12019
12038
  ) }),
12020
- /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ _(
12039
+ /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ D(
12021
12040
  ze,
12022
12041
  {
12023
12042
  delimiter: "pipe",
12024
12043
  size: "small",
12025
12044
  "data-testid": `course-progress-counts-${p}`,
12026
12045
  children: [
12027
- /* @__PURE__ */ _(ze.Item, { color: "secondary", children: [
12046
+ /* @__PURE__ */ D(ze.Item, { color: "secondary", children: [
12028
12047
  c,
12029
12048
  " ",
12030
12049
  b.graded
12031
12050
  ] }),
12032
- /* @__PURE__ */ _(ze.Item, { color: "secondary", children: [
12051
+ /* @__PURE__ */ D(ze.Item, { color: "secondary", children: [
12033
12052
  t,
12034
12053
  " ",
12035
12054
  b.submitted
12036
12055
  ] }),
12037
- /* @__PURE__ */ _(ze.Item, { color: "secondary", children: [
12056
+ /* @__PURE__ */ D(ze.Item, { color: "secondary", children: [
12038
12057
  i,
12039
12058
  " ",
12040
12059
  b.remaining
@@ -12079,7 +12098,7 @@ const ni = ({
12079
12098
  error: n,
12080
12099
  refetch: i
12081
12100
  } = cc(), s = !a && !n && p && p.length === 0;
12082
- return /* @__PURE__ */ _(
12101
+ return /* @__PURE__ */ D(
12083
12102
  K0,
12084
12103
  {
12085
12104
  widget: e,
@@ -12302,24 +12321,24 @@ const di = (e, b, M) => {
12302
12321
  children: /* @__PURE__ */ u(kt, {})
12303
12322
  }
12304
12323
  );
12305
- return z ? /* @__PURE__ */ u(F, { as: "div", padding: "small 0", "data-testid": `grade-item-${e._id}`, children: /* @__PURE__ */ _(N, { direction: "column", gap: "x-small", children: [
12324
+ return z ? /* @__PURE__ */ u(F, { as: "div", padding: "small 0", "data-testid": `grade-item-${e._id}`, children: /* @__PURE__ */ D(N, { direction: "column", gap: "x-small", children: [
12306
12325
  /* @__PURE__ */ u(N.Item, { children: t }),
12307
12326
  /* @__PURE__ */ u(N.Item, { children: a }),
12308
12327
  /* @__PURE__ */ u(N.Item, { children: n }),
12309
- /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ _(N, { direction: "row", gap: "x-small", alignItems: "center", children: [
12328
+ /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ D(N, { direction: "row", gap: "x-small", alignItems: "center", children: [
12310
12329
  /* @__PURE__ */ u(N.Item, { children: i }),
12311
12330
  /* @__PURE__ */ u(N.Item, { children: s })
12312
12331
  ] }) })
12313
- ] }) }) : /* @__PURE__ */ u(F, { as: "div", padding: "small 0", "data-testid": `grade-item-${e._id}`, children: /* @__PURE__ */ _(N, { gap: "small", alignItems: "center", children: [
12332
+ ] }) }) : /* @__PURE__ */ u(F, { as: "div", padding: "small 0", "data-testid": `grade-item-${e._id}`, children: /* @__PURE__ */ D(N, { gap: "small", alignItems: "center", children: [
12314
12333
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(F, { as: "div", background: "secondary", borderRadius: "medium", padding: "small", children: kM(c, z) }) }),
12315
- /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ _(N, { direction: "column", gap: "x-small", children: [
12334
+ /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ D(N, { direction: "column", gap: "x-small", children: [
12316
12335
  /* @__PURE__ */ u(N.Item, { children: t }),
12317
- /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ _(N, { direction: "row", gap: "x-small", alignItems: "center", wrap: "wrap", children: [
12336
+ /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ D(N, { direction: "row", gap: "x-small", alignItems: "center", wrap: "wrap", children: [
12318
12337
  /* @__PURE__ */ u(N.Item, { children: a }),
12319
12338
  /* @__PURE__ */ u(N.Item, { children: n })
12320
12339
  ] }) })
12321
12340
  ] }) }),
12322
- /* @__PURE__ */ u(N.Item, { align: "center", children: /* @__PURE__ */ _(N, { direction: "row", gap: "x-small", alignItems: "center", children: [
12341
+ /* @__PURE__ */ u(N.Item, { align: "center", children: /* @__PURE__ */ D(N, { direction: "row", gap: "x-small", alignItems: "center", children: [
12323
12342
  /* @__PURE__ */ u(N.Item, { children: i }),
12324
12343
  /* @__PURE__ */ u(N.Item, { children: s })
12325
12344
  ] }) })
@@ -12355,7 +12374,7 @@ const di = (e, b, M) => {
12355
12374
  onPageChange: h,
12356
12375
  ariaLabel: c.recentGradesPagination
12357
12376
  };
12358
- return /* @__PURE__ */ _(
12377
+ return /* @__PURE__ */ D(
12359
12378
  K0,
12360
12379
  {
12361
12380
  widget: e,
@@ -15111,7 +15130,7 @@ function mA() {
15111
15130
  try {
15112
15131
  var g = Intl.DateTimeFormat().resolvedOptions().timeZone;
15113
15132
  if (g && g.length > 3) {
15114
- var x = c[D(g)];
15133
+ var x = c[_(g)];
15115
15134
  if (x)
15116
15135
  return x;
15117
15136
  M0("Moment Timezone found " + g + " from the Intl api, but did not have that data loaded.");
@@ -15129,16 +15148,16 @@ function mA() {
15129
15148
  function X(g) {
15130
15149
  return (!a || g) && (a = S()), a;
15131
15150
  }
15132
- function D(g) {
15151
+ function _(g) {
15133
15152
  return (g || "").toLowerCase().replace(/\//g, "_");
15134
15153
  }
15135
15154
  function E(g) {
15136
15155
  var x, I, U, n0;
15137
15156
  for (typeof g == "string" && (g = [g]), x = 0; x < g.length; x++)
15138
- U = g[x].split("|"), I = U[0], n0 = D(I), z[n0] = g[x], c[n0] = I, v(n0, U[2].split(" "));
15157
+ U = g[x].split("|"), I = U[0], n0 = _(I), z[n0] = g[x], c[n0] = I, v(n0, U[2].split(" "));
15139
15158
  }
15140
15159
  function V(g, x) {
15141
- g = D(g);
15160
+ g = _(g);
15142
15161
  var I = z[g], U;
15143
15162
  return I instanceof f ? I : typeof I == "string" ? (I = new f(I), z[g] = I, I) : p[g] && x !== V && (U = V(p[g], V)) ? (I = z[g] = new f(), I._set(U), I.name = c[g], I) : null;
15144
15163
  }
@@ -15154,7 +15173,7 @@ function mA() {
15154
15173
  function s0(g) {
15155
15174
  var x, I, U, n0;
15156
15175
  for (typeof g == "string" && (g = [g]), x = 0; x < g.length; x++)
15157
- I = g[x].split("|"), U = D(I[0]), n0 = D(I[1]), p[U] = n0, c[U] = I[0], p[n0] = U, c[n0] = I[1];
15176
+ I = g[x].split("|"), U = _(I[0]), n0 = _(I[1]), p[U] = n0, c[U] = I[0], p[n0] = U, c[n0] = I[1];
15158
15177
  }
15159
15178
  function P(g) {
15160
15179
  var x, I, U, n0;
@@ -15281,7 +15300,7 @@ const tM = /* @__PURE__ */ XM(vA), le = 255, OM = 1e4, XA = ({
15281
15300
  }, y = (G, z0) => {
15282
15301
  const s0 = typeof z0.value == "string" ? z0.value : void 0;
15283
15302
  s0 && W(s0 === "none" ? void 0 : s0);
15284
- }, S = (G, z0) => G ? a(t.invalidDate, { date: G }) : t.youMustProvideDateTime, X = n.trim().length > 0 && s && s.isValid(), D = {
15303
+ }, S = (G, z0) => G ? a(t.invalidDate, { date: G }) : t.youMustProvideDateTime, X = n.trim().length > 0 && s && s.isValid(), _ = {
15285
15304
  value: "none",
15286
15305
  label: t.optionalAddCourse
15287
15306
  }, E = q0(
@@ -15291,7 +15310,7 @@ const tM = /* @__PURE__ */ XM(vA), le = 255, OM = 1e4, XA = ({
15291
15310
  })),
15292
15311
  [p]
15293
15312
  ), V = l || "none";
15294
- return /* @__PURE__ */ _(
15313
+ return /* @__PURE__ */ D(
15295
15314
  K1,
15296
15315
  {
15297
15316
  open: e,
@@ -15300,7 +15319,7 @@ const tM = /* @__PURE__ */ XM(vA), le = 255, OM = 1e4, XA = ({
15300
15319
  label: t.addToDo,
15301
15320
  shouldCloseOnDocumentClick: !1,
15302
15321
  children: [
15303
- /* @__PURE__ */ _(K1.Header, { children: [
15322
+ /* @__PURE__ */ D(K1.Header, { children: [
15304
15323
  /* @__PURE__ */ u(
15305
15324
  vo,
15306
15325
  {
@@ -15314,7 +15333,7 @@ const tM = /* @__PURE__ */ XM(vA), le = 255, OM = 1e4, XA = ({
15314
15333
  ),
15315
15334
  /* @__PURE__ */ u(g2, { children: t.addToDo })
15316
15335
  ] }),
15317
- /* @__PURE__ */ u(K1.Body, { children: /* @__PURE__ */ _(N, { direction: "column", gap: "medium", children: [
15336
+ /* @__PURE__ */ u(K1.Body, { children: /* @__PURE__ */ D(N, { direction: "column", gap: "medium", children: [
15318
15337
  /* @__PURE__ */ u(N.Item, { overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ u(
15319
15338
  _o,
15320
15339
  {
@@ -15358,7 +15377,7 @@ const tM = /* @__PURE__ */ XM(vA), le = 255, OM = 1e4, XA = ({
15358
15377
  value: V,
15359
15378
  onChange: y,
15360
15379
  interaction: z ? "disabled" : "enabled",
15361
- children: [D, ...E].map((G) => /* @__PURE__ */ u(y0.Option, { id: G.value, value: G.value, children: G.label }, G.value))
15380
+ children: [_, ...E].map((G) => /* @__PURE__ */ u(y0.Option, { id: G.value, value: G.value, children: G.label }, G.value))
15362
15381
  }
15363
15382
  ) }),
15364
15383
  /* @__PURE__ */ u(N.Item, { overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ u(
@@ -15377,7 +15396,7 @@ const tM = /* @__PURE__ */ XM(vA), le = 255, OM = 1e4, XA = ({
15377
15396
  }
15378
15397
  ) })
15379
15398
  ] }) }),
15380
- /* @__PURE__ */ u(K1.Footer, { children: /* @__PURE__ */ _(N, { justifyItems: "end", gap: "small", children: [
15399
+ /* @__PURE__ */ u(K1.Footer, { children: /* @__PURE__ */ D(N, { justifyItems: "end", gap: "small", children: [
15381
15400
  /* @__PURE__ */ u(N.Item, { overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ u(
15382
15401
  Z0,
15383
15402
  {
@@ -15505,11 +15524,11 @@ function EA(e = {}) {
15505
15524
  if (v >= a.length && y >= 0 && y < i.length && i[y]) {
15506
15525
  const S = i[y];
15507
15526
  !O && q.current !== v && (q.current = v, r(!0), No(l, S).then((X) => {
15508
- n((D) => {
15509
- const E = [...D];
15527
+ n((_) => {
15528
+ const E = [..._];
15510
15529
  return E[v] = X.items, E;
15511
- }), s((D) => {
15512
- const E = [...D];
15530
+ }), s((_) => {
15531
+ const E = [..._];
15513
15532
  return E[v] = X.nextUrl, E;
15514
15533
  });
15515
15534
  }).catch((X) => console.error("Failed to load page:", X)).finally(() => {
@@ -15642,8 +15661,8 @@ const UA = ({ item: e }) => {
15642
15661
  themeOverride: {
15643
15662
  backgroundSecondary: "#F9FAFA"
15644
15663
  },
15645
- children: /* @__PURE__ */ _(N, { gap: "small", alignItems: "center", children: [
15646
- /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ _(N, { direction: "column", gap: "x-small", children: [
15664
+ children: /* @__PURE__ */ D(N, { gap: "small", alignItems: "center", children: [
15665
+ /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ D(N, { direction: "column", gap: "x-small", children: [
15647
15666
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(H, { size: "small", color: "secondary", children: o }) }),
15648
15667
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(
15649
15668
  j0,
@@ -15655,7 +15674,7 @@ const UA = ({ item: e }) => {
15655
15674
  }
15656
15675
  ) }),
15657
15676
  e.plannable.details && /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(H, { size: "small", color: "secondary", lineHeight: "condensed", children: e.plannable.details }) }),
15658
- n && /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ _(N, { gap: "x-small", alignItems: "center", wrap: "wrap", children: [
15677
+ n && /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ D(N, { gap: "x-small", alignItems: "center", wrap: "wrap", children: [
15659
15678
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u($2, { courseId: n, size: "small", useCustomColors: !0 }) }),
15660
15679
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(H, { size: "small", color: "secondary", children: "|" }) }),
15661
15680
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(
@@ -15668,10 +15687,10 @@ const UA = ({ item: e }) => {
15668
15687
  }
15669
15688
  ) })
15670
15689
  ] }) }),
15671
- /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ _(H, { size: "small", children: [
15690
+ /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ D(H, { size: "small", children: [
15672
15691
  z && /* @__PURE__ */ u(H, { size: "small", color: p ? "danger" : "secondary", children: z }),
15673
15692
  z && e.plannable.points_possible !== void 0 && e.plannable.points_possible !== null && /* @__PURE__ */ u(H, { size: "small", color: "secondary", children: " | " }),
15674
- e.plannable.points_possible !== void 0 && e.plannable.points_possible !== null && /* @__PURE__ */ _(H, { size: "small", color: "secondary", children: [
15693
+ e.plannable.points_possible !== void 0 && e.plannable.points_possible !== null && /* @__PURE__ */ D(H, { size: "small", color: "secondary", children: [
15675
15694
  e.plannable.points_possible,
15676
15695
  " pts"
15677
15696
  ] })
@@ -15757,8 +15776,8 @@ const jA = ({ widget: e, isEditMode: b = !1 }) => {
15757
15776
  is_student: !0
15758
15777
  })),
15759
15778
  [A]
15760
- ), B = o || Intl.DateTimeFormat().resolvedOptions().timeZone, T = () => /* @__PURE__ */ _(F, { as: "div", children: [
15761
- /* @__PURE__ */ u(F, { as: "div", padding: "small 0", borderWidth: "0 0 small 0", children: /* @__PURE__ */ _(
15779
+ ), B = o || Intl.DateTimeFormat().resolvedOptions().timeZone, T = () => /* @__PURE__ */ D(F, { as: "div", children: [
15780
+ /* @__PURE__ */ u(F, { as: "div", padding: "small 0", borderWidth: "0 0 small 0", children: /* @__PURE__ */ D(
15762
15781
  y0,
15763
15782
  {
15764
15783
  renderLabel: M.filter,
@@ -15777,7 +15796,7 @@ const jA = ({ widget: e, isEditMode: b = !1 }) => {
15777
15796
  ) }),
15778
15797
  s.length === 0 ? /* @__PURE__ */ u(F, { as: "div", textAlign: "center", padding: "large 0", children: /* @__PURE__ */ u(H, { color: "secondary", size: "medium", "data-testid": "no-todos-message", children: M.noUpcomingItems }) }) : /* @__PURE__ */ u(F, { as: "div", children: /* @__PURE__ */ u(Y0, { isUnstyled: !0, margin: "0", children: s.map((v) => /* @__PURE__ */ u(Y0.Item, { margin: "0", children: /* @__PURE__ */ u(UA, { item: v }) }, `${v.plannable_type}-${v.plannable_id}`)) }) })
15779
15798
  ] });
15780
- return /* @__PURE__ */ _(_e, { children: [
15799
+ return /* @__PURE__ */ D(_e, { children: [
15781
15800
  /* @__PURE__ */ u(
15782
15801
  K0,
15783
15802
  {
@@ -15901,7 +15920,7 @@ const jA = ({ widget: e, isEditMode: b = !1 }) => {
15901
15920
  isEditMode: b
15902
15921
  }) => {
15903
15922
  const { config: M } = Pe(), z = e || M, p = z.widgets.filter((t) => t.position.col === U0).sort((t, a) => t.position.row - a.position.row), o = z.widgets.filter((t) => t.position.col === F0).sort((t, a) => t.position.row - a.position.row), c = (t) => /* @__PURE__ */ u(N, { direction: "column", gap: "medium", width: "100%", children: t.map((a) => /* @__PURE__ */ u(F, { as: "div", children: /* @__PURE__ */ u(GA, { widget: a, isEditMode: b }) }, a.id)) });
15904
- return /* @__PURE__ */ u(F, { as: "div", padding: "medium", children: /* @__PURE__ */ _(N, { gap: "medium", justifyItems: "start", alignItems: "start", children: [
15923
+ return /* @__PURE__ */ u(F, { as: "div", padding: "medium", children: /* @__PURE__ */ D(N, { gap: "medium", justifyItems: "start", alignItems: "start", children: [
15905
15924
  /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: c(p) }),
15906
15925
  /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: c(o) })
15907
15926
  ] }) });
@@ -15977,7 +15996,7 @@ const KA = typeof window < "u" && ((To = window.ENV) == null ? void 0 : To.FEATU
15977
15996
  borderRadius: "medium",
15978
15997
  shadow: "resting",
15979
15998
  "data-testid": "feedback-question-tile",
15980
- children: /* @__PURE__ */ _(N, { direction: "column", alignItems: "center", gap: "x-small", children: [
15999
+ children: /* @__PURE__ */ D(N, { direction: "column", alignItems: "center", gap: "x-small", children: [
15981
16000
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(H, { as: "div", weight: "normal", size: "medium", children: M.question }) }),
15982
16001
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(
15983
16002
  j0,
@@ -16016,9 +16035,9 @@ const KA = typeof window < "u" && ((To = window.ENV) == null ? void 0 : To.FEATU
16016
16035
  }, W = () => {
16017
16036
  r(), n();
16018
16037
  };
16019
- return /* @__PURE__ */ _(F, { as: "div", children: [
16038
+ return /* @__PURE__ */ D(F, { as: "div", children: [
16020
16039
  /* @__PURE__ */ u(rO, {}),
16021
- t && /* @__PURE__ */ _(
16040
+ t && /* @__PURE__ */ D(
16022
16041
  BM,
16023
16042
  {
16024
16043
  variant: "error",
@@ -16032,9 +16051,9 @@ const KA = typeof window < "u" && ((To = window.ENV) == null ? void 0 : To.FEATU
16032
16051
  ]
16033
16052
  }
16034
16053
  ),
16035
- /* @__PURE__ */ u(N, { margin: "0 0 medium", alignItems: "center", children: /* @__PURE__ */ u(N.Item, { shouldGrow: !0, children: /* @__PURE__ */ _(N, { gap: "small", direction: M ? "column" : "row", alignItems: "center", children: [
16054
+ /* @__PURE__ */ u(N, { margin: "0 0 medium", alignItems: "center", children: /* @__PURE__ */ u(N.Item, { shouldGrow: !0, children: /* @__PURE__ */ D(N, { gap: "small", direction: M ? "column" : "row", alignItems: "center", children: [
16036
16055
  /* @__PURE__ */ u(N.Item, { shouldGrow: !0, children: /* @__PURE__ */ u(g2, { level: "h1", margin: "0", "data-testid": "dashboard-heading", children: e.dashboard }) }),
16037
- q && z && (p ? /* @__PURE__ */ _(_e, { children: [
16056
+ q && z && (p ? /* @__PURE__ */ D(_e, { children: [
16038
16057
  /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ u(
16039
16058
  Z0,
16040
16059
  {
@@ -16080,8 +16099,8 @@ function ed({
16080
16099
  onAccountChange: z
16081
16100
  }) {
16082
16101
  const { translations: p } = O0(), { accounts: o } = x0(), c = o.length > 1;
16083
- return /* @__PURE__ */ _(N, { gap: "small", wrap: "wrap", children: [
16084
- /* @__PURE__ */ u(N.Item, { shouldGrow: !0, overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ _(
16102
+ return /* @__PURE__ */ D(N, { gap: "small", wrap: "wrap", children: [
16103
+ /* @__PURE__ */ u(N.Item, { shouldGrow: !0, overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ D(
16085
16104
  y0,
16086
16105
  {
16087
16106
  renderLabel: p.workDue,
@@ -16094,7 +16113,7 @@ function ed({
16094
16113
  ]
16095
16114
  }
16096
16115
  ) }),
16097
- c && z && /* @__PURE__ */ u(N.Item, { shouldGrow: !0, overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ _(
16116
+ c && z && /* @__PURE__ */ u(N.Item, { shouldGrow: !0, overflowX: "visible", overflowY: "visible", children: /* @__PURE__ */ D(
16098
16117
  y0,
16099
16118
  {
16100
16119
  renderLabel: p.account,
@@ -16136,12 +16155,12 @@ function zd({ item: e }) {
16136
16155
  role: "group",
16137
16156
  "aria-label": e.title,
16138
16157
  "data-testid": `listed-upcoming-work-item-${e.id}`,
16139
- children: /* @__PURE__ */ u(F, { as: "div", padding: "small medium", children: /* @__PURE__ */ _(N, { gap: "medium", alignItems: "center", children: [
16158
+ children: /* @__PURE__ */ u(F, { as: "div", padding: "small medium", children: /* @__PURE__ */ D(N, { gap: "medium", alignItems: "center", children: [
16140
16159
  /* @__PURE__ */ u(N.Item, { align: "start", children: /* @__PURE__ */ u(F, { as: "div", padding: "xx-small 0 0 0", children: /* @__PURE__ */ u(N, { alignItems: "center", justifyItems: "center", children: kM(e.type, !1) }) }) }),
16141
- /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ _(N, { direction: "column", gap: "0", children: [
16160
+ /* @__PURE__ */ u(N.Item, { shouldGrow: !0, shouldShrink: !0, children: /* @__PURE__ */ D(N, { direction: "column", gap: "0", children: [
16142
16161
  /* @__PURE__ */ u(H, { weight: "bold", size: "medium", children: e.title }),
16143
16162
  /* @__PURE__ */ u(H, { color: "secondary", size: "small", children: e.course.name }),
16144
- /* @__PURE__ */ _(N, { gap: "x-small", alignItems: "center", children: [
16163
+ /* @__PURE__ */ D(N, { gap: "x-small", alignItems: "center", children: [
16145
16164
  /* @__PURE__ */ u(
16146
16165
  j0,
16147
16166
  {
@@ -16164,7 +16183,7 @@ function zd({ item: e }) {
16164
16183
  )
16165
16184
  ] })
16166
16185
  ] }) }),
16167
- /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ _(N, { gap: "x-small", alignItems: "center", children: [
16186
+ /* @__PURE__ */ u(N.Item, { children: /* @__PURE__ */ D(N, { gap: "x-small", alignItems: "center", children: [
16168
16187
  p && /* @__PURE__ */ u(
16169
16188
  F,
16170
16189
  {
@@ -16174,7 +16193,7 @@ function zd({ item: e }) {
16174
16193
  borderRadius: "pill",
16175
16194
  borderColor: p.isOverdue ? "warning" : "brand",
16176
16195
  padding: "xxx-small x-small",
16177
- children: /* @__PURE__ */ _(N, { gap: "x-small", alignItems: "center", children: [
16196
+ children: /* @__PURE__ */ D(N, { gap: "x-small", alignItems: "center", children: [
16178
16197
  p.isOverdue ? /* @__PURE__ */ u(ye, { color: "warning", size: "x-small" }) : /* @__PURE__ */ u(So, { color: "brand", size: "x-small" }),
16179
16198
  /* @__PURE__ */ u(H, { size: "small", color: p.isOverdue ? "warning" : "brand", children: p.text })
16180
16199
  ] })
@@ -16272,7 +16291,7 @@ function Zd({
16272
16291
  isLoading: m,
16273
16292
  ariaLabel: o.courseWorkPagination
16274
16293
  },
16275
- children: /* @__PURE__ */ _(N, { direction: "column", gap: "0", height: "100%", children: [
16294
+ children: /* @__PURE__ */ D(N, { direction: "column", gap: "0", height: "100%", children: [
16276
16295
  /* @__PURE__ */ u(N.Item, { margin: "medium 0 0 0", children: /* @__PURE__ */ u(
16277
16296
  ed,
16278
16297
  {