@mitodl/smoot-design 3.4.1 → 3.6.0

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.
@@ -1145,7 +1145,7 @@ Error generating stack: ` + i.message + `
1145
1145
  function Oe(t) {
1146
1146
  me.current === t && (ke(_e), ke(me)), ce.current === t && (ke(ce), Oa._currentValue = ye);
1147
1147
  }
1148
- var Fe = Object.prototype.hasOwnProperty, ht = e.unstable_scheduleCallback, Ft = e.unstable_cancelCallback, fn = e.unstable_shouldYield, xe = e.unstable_requestPaint, De = e.unstable_now, wt = e.unstable_getCurrentPriorityLevel, X = e.unstable_ImmediatePriority, le = e.unstable_UserBlockingPriority, de = e.unstable_NormalPriority, Ae = e.unstable_LowPriority, Ie = e.unstable_IdlePriority, Ue = e.log, en = e.unstable_setDisableYieldValue, Ut = null, zt = null;
1148
+ var Fe = Object.prototype.hasOwnProperty, ht = e.unstable_scheduleCallback, Ft = e.unstable_cancelCallback, fn = e.unstable_shouldYield, xe = e.unstable_requestPaint, De = e.unstable_now, wt = e.unstable_getCurrentPriorityLevel, X = e.unstable_ImmediatePriority, le = e.unstable_UserBlockingPriority, de = e.unstable_NormalPriority, Ae = e.unstable_LowPriority, Ie = e.unstable_IdlePriority, Ue = e.log, tn = e.unstable_setDisableYieldValue, Ut = null, zt = null;
1149
1149
  function ai(t) {
1150
1150
  if (zt && typeof zt.onCommitFiberRoot == "function")
1151
1151
  try {
@@ -1159,7 +1159,7 @@ Error generating stack: ` + i.message + `
1159
1159
  }
1160
1160
  }
1161
1161
  function yt(t) {
1162
- if (typeof Ue == "function" && en(t), zt && typeof zt.setStrictMode == "function")
1162
+ if (typeof Ue == "function" && tn(t), zt && typeof zt.setStrictMode == "function")
1163
1163
  try {
1164
1164
  zt.setStrictMode(Ut, t);
1165
1165
  } catch {
@@ -1334,9 +1334,9 @@ Error generating stack: ` + i.message + `
1334
1334
  ie.p = i;
1335
1335
  }
1336
1336
  }
1337
- var _r = Math.random().toString(36).slice(2), Pt = "__reactFiber$" + _r, tn = "__reactProps$" + _r, Ui = "__reactContainer$" + _r, Us = "__reactEvents$" + _r, BS = "__reactListeners$" + _r, LS = "__reactHandles$" + _r, Vp = "__reactResources$" + _r, Vl = "__reactMarker$" + _r;
1337
+ var _r = Math.random().toString(36).slice(2), Pt = "__reactFiber$" + _r, nn = "__reactProps$" + _r, Ui = "__reactContainer$" + _r, Us = "__reactEvents$" + _r, BS = "__reactListeners$" + _r, LS = "__reactHandles$" + _r, Vp = "__reactResources$" + _r, Vl = "__reactMarker$" + _r;
1338
1338
  function js(t) {
1339
- delete t[Pt], delete t[tn], delete t[Us], delete t[BS], delete t[LS];
1339
+ delete t[Pt], delete t[nn], delete t[Us], delete t[BS], delete t[LS];
1340
1340
  }
1341
1341
  function ui(t) {
1342
1342
  var n = t[Pt];
@@ -1702,7 +1702,7 @@ Error generating stack: ` + i.message + `
1702
1702
  function Jp(t) {
1703
1703
  var n = ji(t);
1704
1704
  if (n && (t = n.stateNode)) {
1705
- var i = t[tn] || null;
1705
+ var i = t[nn] || null;
1706
1706
  e: switch (t = n.stateNode, n.type) {
1707
1707
  case "input":
1708
1708
  if (Hs(
@@ -1723,7 +1723,7 @@ Error generating stack: ` + i.message + `
1723
1723
  ), n = 0; n < i.length; n++) {
1724
1724
  var o = i[n];
1725
1725
  if (o !== t && o.form === t.form) {
1726
- var c = o[tn] || null;
1726
+ var c = o[nn] || null;
1727
1727
  if (!c) throw Error(a(90));
1728
1728
  Hs(
1729
1729
  o,
@@ -1764,7 +1764,7 @@ Error generating stack: ` + i.message + `
1764
1764
  function $l(t, n) {
1765
1765
  var i = t.stateNode;
1766
1766
  if (i === null) return null;
1767
- var o = i[tn] || null;
1767
+ var o = i[nn] || null;
1768
1768
  if (o === null) return null;
1769
1769
  i = o[n];
1770
1770
  e: switch (n) {
@@ -1822,7 +1822,7 @@ Error generating stack: ` + i.message + `
1822
1822
  function nh() {
1823
1823
  return !1;
1824
1824
  }
1825
- function nn(t) {
1825
+ function rn(t) {
1826
1826
  function n(i, o, c, p, b) {
1827
1827
  this._reactName = i, this._targetInst = c, this.type = o, this.nativeEvent = p, this.target = b, this.currentTarget = null;
1828
1828
  for (var C in t)
@@ -1853,7 +1853,7 @@ Error generating stack: ` + i.message + `
1853
1853
  },
1854
1854
  defaultPrevented: 0,
1855
1855
  isTrusted: 0
1856
- }, qo = nn(ci), Yl = E({}, ci, { view: 0, detail: 0 }), GS = nn(Yl), Ps, Xs, Fl, $o = E({}, Yl, {
1856
+ }, qo = rn(ci), Yl = E({}, ci, { view: 0, detail: 0 }), GS = rn(Yl), Ps, Xs, Fl, $o = E({}, Yl, {
1857
1857
  screenX: 0,
1858
1858
  screenY: 0,
1859
1859
  clientX: 0,
@@ -1876,15 +1876,15 @@ Error generating stack: ` + i.message + `
1876
1876
  movementY: function(t) {
1877
1877
  return "movementY" in t ? t.movementY : Xs;
1878
1878
  }
1879
- }), rh = nn($o), YS = E({}, $o, { dataTransfer: 0 }), FS = nn(YS), PS = E({}, Yl, { relatedTarget: 0 }), Qs = nn(PS), XS = E({}, ci, {
1879
+ }), rh = rn($o), YS = E({}, $o, { dataTransfer: 0 }), FS = rn(YS), PS = E({}, Yl, { relatedTarget: 0 }), Qs = rn(PS), XS = E({}, ci, {
1880
1880
  animationName: 0,
1881
1881
  elapsedTime: 0,
1882
1882
  pseudoElement: 0
1883
- }), QS = nn(XS), KS = E({}, ci, {
1883
+ }), QS = rn(XS), KS = E({}, ci, {
1884
1884
  clipboardData: function(t) {
1885
1885
  return "clipboardData" in t ? t.clipboardData : window.clipboardData;
1886
1886
  }
1887
- }), ZS = nn(KS), WS = E({}, ci, { data: 0 }), ih = nn(WS), JS = {
1887
+ }), ZS = rn(KS), WS = E({}, ci, { data: 0 }), ih = rn(WS), JS = {
1888
1888
  Esc: "Escape",
1889
1889
  Spacebar: " ",
1890
1890
  Left: "ArrowLeft",
@@ -1973,7 +1973,7 @@ Error generating stack: ` + i.message + `
1973
1973
  which: function(t) {
1974
1974
  return t.type === "keypress" ? Io(t) : t.type === "keydown" || t.type === "keyup" ? t.keyCode : 0;
1975
1975
  }
1976
- }), iv = nn(rv), lv = E({}, $o, {
1976
+ }), iv = rn(rv), lv = E({}, $o, {
1977
1977
  pointerId: 0,
1978
1978
  width: 0,
1979
1979
  height: 0,
@@ -1984,7 +1984,7 @@ Error generating stack: ` + i.message + `
1984
1984
  twist: 0,
1985
1985
  pointerType: 0,
1986
1986
  isPrimary: 0
1987
- }), lh = nn(lv), av = E({}, Yl, {
1987
+ }), lh = rn(lv), av = E({}, Yl, {
1988
1988
  touches: 0,
1989
1989
  targetTouches: 0,
1990
1990
  changedTouches: 0,
@@ -1993,11 +1993,11 @@ Error generating stack: ` + i.message + `
1993
1993
  ctrlKey: 0,
1994
1994
  shiftKey: 0,
1995
1995
  getModifierState: Ks
1996
- }), ov = nn(av), uv = E({}, ci, {
1996
+ }), ov = rn(av), uv = E({}, ci, {
1997
1997
  propertyName: 0,
1998
1998
  elapsedTime: 0,
1999
1999
  pseudoElement: 0
2000
- }), sv = nn(uv), cv = E({}, $o, {
2000
+ }), sv = rn(uv), cv = E({}, $o, {
2001
2001
  deltaX: function(t) {
2002
2002
  return "deltaX" in t ? t.deltaX : "wheelDeltaX" in t ? -t.wheelDeltaX : 0;
2003
2003
  },
@@ -2006,10 +2006,10 @@ Error generating stack: ` + i.message + `
2006
2006
  },
2007
2007
  deltaZ: 0,
2008
2008
  deltaMode: 0
2009
- }), fv = nn(cv), dv = E({}, ci, {
2009
+ }), fv = rn(cv), dv = E({}, ci, {
2010
2010
  newState: 0,
2011
2011
  oldState: 0
2012
- }), pv = nn(dv), hv = [9, 13, 27, 32], Zs = sr && "CompositionEvent" in window, Pl = null;
2012
+ }), pv = rn(dv), hv = [9, 13, 27, 32], Zs = sr && "CompositionEvent" in window, Pl = null;
2013
2013
  sr && "documentMode" in document && (Pl = document.documentMode);
2014
2014
  var mv = sr && "TextEvent" in window && !Pl, ah = sr && (!Zs || Pl && 8 < Pl && 11 >= Pl), oh = " ", uh = !1;
2015
2015
  function sh(t, n) {
@@ -2377,7 +2377,7 @@ Error generating stack: ` + i.message + `
2377
2377
  }
2378
2378
  function zh(t) {
2379
2379
  var n = t.stateNode, i = t.type, o = t.memoizedProps;
2380
- switch (n[Pt] = t, n[tn] = o, i) {
2380
+ switch (n[Pt] = t, n[nn] = o, i) {
2381
2381
  case "dialog":
2382
2382
  $e("cancel", n), $e("close", n);
2383
2383
  break;
@@ -3111,7 +3111,7 @@ Error generating stack: ` + i.message + `
3111
3111
  }
3112
3112
  Lr = 0, kt = et = Ne = null, nl = !1, oa = ru = 0, rl = null;
3113
3113
  }
3114
- function rn() {
3114
+ function ln() {
3115
3115
  var t = {
3116
3116
  memoizedState: null,
3117
3117
  baseState: null,
@@ -3309,7 +3309,7 @@ Error generating stack: ` + i.message + `
3309
3309
  n !== null && Jt(n, t, 2);
3310
3310
  }
3311
3311
  function Cc(t) {
3312
- var n = rn();
3312
+ var n = ln();
3313
3313
  if (typeof t == "function") {
3314
3314
  var i = t;
3315
3315
  if (t = i(), bi) {
@@ -3442,7 +3442,7 @@ Error generating stack: ` + i.message + `
3442
3442
  o && (n = i[0]);
3443
3443
  }
3444
3444
  }
3445
- return i = rn(), i.memoizedState = i.baseState = n, o = {
3445
+ return i = ln(), i.memoizedState = i.baseState = n, o = {
3446
3446
  pending: null,
3447
3447
  lanes: 0,
3448
3448
  dispatch: null,
@@ -3457,7 +3457,7 @@ Error generating stack: ` + i.message + `
3457
3457
  Ne,
3458
3458
  !1,
3459
3459
  o.queue
3460
- ), o = rn(), c = {
3460
+ ), o = ln(), c = {
3461
3461
  state: n,
3462
3462
  dispatch: null,
3463
3463
  action: t,
@@ -3506,7 +3506,7 @@ Error generating stack: ` + i.message + `
3506
3506
  return Rt().memoizedState;
3507
3507
  }
3508
3508
  function ou(t, n, i, o) {
3509
- var c = rn();
3509
+ var c = ln();
3510
3510
  Ne.flags |= t, c.memoizedState = il(
3511
3511
  1 | n,
3512
3512
  i,
@@ -3785,7 +3785,7 @@ Error generating stack: ` + i.message + `
3785
3785
  readContext: Xt,
3786
3786
  use: lu,
3787
3787
  useCallback: function(t, n) {
3788
- return rn().memoizedState = [
3788
+ return ln().memoizedState = [
3789
3789
  t,
3790
3790
  n === void 0 ? null : n
3791
3791
  ], t;
@@ -3807,7 +3807,7 @@ Error generating stack: ` + i.message + `
3807
3807
  ou(4, 2, t, n);
3808
3808
  },
3809
3809
  useMemo: function(t, n) {
3810
- var i = rn();
3810
+ var i = ln();
3811
3811
  n = n === void 0 ? null : n;
3812
3812
  var o = t();
3813
3813
  if (bi) {
@@ -3821,7 +3821,7 @@ Error generating stack: ` + i.message + `
3821
3821
  return i.memoizedState = [o, n], o;
3822
3822
  },
3823
3823
  useReducer: function(t, n, i) {
3824
- var o = rn();
3824
+ var o = ln();
3825
3825
  if (i !== void 0) {
3826
3826
  var c = i(n);
3827
3827
  if (bi) {
@@ -3846,7 +3846,7 @@ Error generating stack: ` + i.message + `
3846
3846
  ), [o.memoizedState, t];
3847
3847
  },
3848
3848
  useRef: function(t) {
3849
- var n = rn();
3849
+ var n = ln();
3850
3850
  return t = { current: t }, n.memoizedState = t;
3851
3851
  },
3852
3852
  useState: function(t) {
@@ -3856,7 +3856,7 @@ Error generating stack: ` + i.message + `
3856
3856
  },
3857
3857
  useDebugValue: Ac,
3858
3858
  useDeferredValue: function(t, n) {
3859
- var i = rn();
3859
+ var i = ln();
3860
3860
  return kc(i, t, n);
3861
3861
  },
3862
3862
  useTransition: function() {
@@ -3867,10 +3867,10 @@ Error generating stack: ` + i.message + `
3867
3867
  t.queue,
3868
3868
  !0,
3869
3869
  !1
3870
- ), rn().memoizedState = t, [!1, t];
3870
+ ), ln().memoizedState = t, [!1, t];
3871
3871
  },
3872
3872
  useSyncExternalStore: function(t, n, i) {
3873
- var o = Ne, c = rn();
3873
+ var o = Ne, c = ln();
3874
3874
  if (Pe) {
3875
3875
  if (i === void 0)
3876
3876
  throw Error(a(407));
@@ -3897,7 +3897,7 @@ Error generating stack: ` + i.message + `
3897
3897
  ), i;
3898
3898
  },
3899
3899
  useId: function() {
3900
- var t = rn(), n = at.identifierPrefix;
3900
+ var t = ln(), n = at.identifierPrefix;
3901
3901
  if (Pe) {
3902
3902
  var i = dr, o = fr;
3903
3903
  i = (o & ~(1 << 32 - At(o) - 1)).toString(32) + i, n = ":" + n + "R" + i, i = ru++, 0 < i && (n += "H" + i.toString(32)), n += ":";
@@ -3906,14 +3906,14 @@ Error generating stack: ` + i.message + `
3906
3906
  return t.memoizedState = n;
3907
3907
  },
3908
3908
  useCacheRefresh: function() {
3909
- return rn().memoizedState = Iv.bind(
3909
+ return ln().memoizedState = Iv.bind(
3910
3910
  null,
3911
3911
  Ne
3912
3912
  );
3913
3913
  }
3914
3914
  };
3915
3915
  Si.useMemoCache = vc, Si.useHostTransitionStatus = Oc, Si.useFormState = om, Si.useActionState = om, Si.useOptimistic = function(t) {
3916
- var n = rn();
3916
+ var n = ln();
3917
3917
  n.memoizedState = n.baseState = t;
3918
3918
  var i = {
3919
3919
  pending: null,
@@ -4885,7 +4885,7 @@ Error generating stack: ` + i.message + `
4885
4885
  null
4886
4886
  )) ? n.memoizedState = i : Pe || (i = n.type, t = n.pendingProps, o = Ru(
4887
4887
  ge.current
4888
- ).createElement(i), o[Pt] = n, o[tn] = t, Gt(o, i, t), jt(o), n.stateNode = o) : n.memoizedState = Zg(
4888
+ ).createElement(i), o[Pt] = n, o[nn] = t, Gt(o, i, t), jt(o), n.stateNode = o) : n.memoizedState = Zg(
4889
4889
  n.type,
4890
4890
  t.memoizedProps,
4891
4891
  n.pendingProps,
@@ -5414,7 +5414,7 @@ Error generating stack: ` + i.message + `
5414
5414
  function tg(t, n, i) {
5415
5415
  try {
5416
5416
  var o = t.stateNode;
5417
- hx(o, t.type, i, n), o[tn] = n;
5417
+ hx(o, t.type, i, n), o[nn] = n;
5418
5418
  } catch (c) {
5419
5419
  rt(t, t.return, c);
5420
5420
  }
@@ -5918,7 +5918,7 @@ Error generating stack: ` + i.message + `
5918
5918
  }
5919
5919
  for (var ae = t.type, G = c.attributes; G.length; )
5920
5920
  c.removeAttributeNode(G[0]);
5921
- Gt(c, ae, p), c[Pt] = t, c[tn] = p;
5921
+ Gt(c, ae, p), c[Pt] = t, c[nn] = p;
5922
5922
  } catch (Se) {
5923
5923
  rt(t, t.return, Se);
5924
5924
  }
@@ -6766,7 +6766,7 @@ Error generating stack: ` + i.message + `
6766
6766
  t = typeof o.is == "string" ? c.createElement(i, { is: o.is }) : c.createElement(i);
6767
6767
  }
6768
6768
  }
6769
- t[Pt] = n, t[tn] = o;
6769
+ t[Pt] = n, t[nn] = o;
6770
6770
  e: for (c = n.child; c !== null; ) {
6771
6771
  if (c.tag === 5 || c.tag === 6)
6772
6772
  t.appendChild(c.stateNode);
@@ -7699,9 +7699,9 @@ Error generating stack: ` + i.message + `
7699
7699
  function ux(t, n, i, o, c) {
7700
7700
  if (n === "submit" && i && i.stateNode === c) {
7701
7701
  var p = Lg(
7702
- (c[tn] || null).action
7702
+ (c[nn] || null).action
7703
7703
  ), b = o.submitter;
7704
- b && (n = (n = b[tn] || null) ? Lg(n.formAction) : b.getAttribute("formAction"), n !== null && (p = n, b = null));
7704
+ b && (n = (n = b[nn] || null) ? Lg(n.formAction) : b.getAttribute("formAction"), n !== null && (p = n, b = null));
7705
7705
  var C = new qo(
7706
7706
  "action",
7707
7707
  "action",
@@ -8475,7 +8475,7 @@ Error generating stack: ` + i.message + `
8475
8475
  default:
8476
8476
  if (!$p.hasOwnProperty(i))
8477
8477
  e: {
8478
- if (i[0] === "o" && i[1] === "n" && (c = i.endsWith("Capture"), n = i.slice(2, c ? i.length - 7 : void 0), p = t[tn] || null, p = p != null ? p[i] : null, typeof p == "function" && t.removeEventListener(n, p, c), typeof o == "function")) {
8478
+ if (i[0] === "o" && i[1] === "n" && (c = i.endsWith("Capture"), n = i.slice(2, c ? i.length - 7 : void 0), p = t[nn] || null, p = p != null ? p[i] : null, typeof p == "function" && t.removeEventListener(n, p, c), typeof o == "function")) {
8479
8479
  typeof p != "function" && p !== null && (i in t ? t[i] = null : t.hasAttribute(i) && t.removeAttribute(i)), t.addEventListener(n, o, c);
8480
8480
  break e;
8481
8481
  }
@@ -9938,13 +9938,13 @@ Error generating stack: ` + i.message + `
9938
9938
  cy(i), i.blockedOn === null && Zr.shift();
9939
9939
  if (i = (t.ownerDocument || t).$$reactFormReplay, i != null)
9940
9940
  for (o = 0; o < i.length; o += 3) {
9941
- var c = i[o], p = i[o + 1], b = c[tn] || null;
9941
+ var c = i[o], p = i[o + 1], b = c[nn] || null;
9942
9942
  if (typeof p == "function")
9943
9943
  b || dy(i);
9944
9944
  else if (b) {
9945
9945
  var C = null;
9946
9946
  if (p && p.hasAttribute("formAction")) {
9947
- if (c = p, b = p[tn] || null)
9947
+ if (c = p, b = p[nn] || null)
9948
9948
  C = b.formAction;
9949
9949
  else if (Hf(c) !== null) continue;
9950
9950
  } else C = b.action;
@@ -13403,8 +13403,8 @@ function FC(e) {
13403
13403
  const Ae = de.replace("%s", ce).match(/\[([^\]]+)\]/);
13404
13404
  if (Ae) {
13405
13405
  const [Ie, Ue] = Ae[1].split("=");
13406
- Ue || se.forEach((en) => {
13407
- H.removeAttribute(Ie.replace(ce, en));
13406
+ Ue || se.forEach((tn) => {
13407
+ H.removeAttribute(Ie.replace(ce, tn));
13408
13408
  }), H.setAttribute(Ie, Ue ? Ue.replace(/"|'/g, "") : "");
13409
13409
  } else
13410
13410
  H.setAttribute(de, ce);
@@ -14786,7 +14786,7 @@ const NT = (e, r) => {
14786
14786
  F && F(Ue), k.onFocus && k.onFocus(Ue), ce && ce.onFocus ? ce.onFocus(Ue) : ge(!0);
14787
14787
  }, ht = (Ue) => {
14788
14788
  E && E(Ue), k.onBlur && k.onBlur(Ue), ce && ce.onBlur ? ce.onBlur(Ue) : ge(!1);
14789
- }, Ft = (Ue, ...en) => {
14789
+ }, Ft = (Ue, ...tn) => {
14790
14790
  if (!Ce) {
14791
14791
  const Ut = Ue.target || ke.current;
14792
14792
  if (Ut == null)
@@ -14795,7 +14795,7 @@ const NT = (e, r) => {
14795
14795
  value: Ut.value
14796
14796
  });
14797
14797
  }
14798
- k.onChange && k.onChange(Ue, ...en), I && I(Ue, ...en);
14798
+ k.onChange && k.onChange(Ue, ...tn), I && I(Ue, ...tn);
14799
14799
  };
14800
14800
  M.useEffect(() => {
14801
14801
  Oe(ke.current);
@@ -14944,7 +14944,7 @@ const Ya = /* @__PURE__ */ Bi(VT), qT = {
14944
14944
  small: "small",
14945
14945
  medium: "small",
14946
14946
  large: "medium",
14947
- chat: "medium",
14947
+ chat: "chat",
14948
14948
  hero: "large"
14949
14949
  }, u0 = ({ size: e, theme: r, multiline: l }) => tp([
14950
14950
  (e === "small" || e === "medium") && {
@@ -15005,12 +15005,14 @@ const Ya = /* @__PURE__ */ Bi(VT), qT = {
15005
15005
  e === "chat" && {
15006
15006
  padding: "0 16px",
15007
15007
  borderRadius: "8px",
15008
- "&:hover:not(.Mui-disabled):not(.Mui-focused)": {
15009
- borderColor: r.custom.colors.silverGrayLight
15010
- },
15011
- "&.Mui-focused": {
15012
- borderColor: r.custom.colors.silverGrayLight,
15013
- outline: "none"
15008
+ borderColor: r.custom.colors.silverGrayLight,
15009
+ "&:hover:not(.Mui-disabled), &.Mui-focused, :hover:not(.Mui-disabled):not(.Mui-focused)": {
15010
+ boxShadow: "0px 8px 20px 0px rgba(120, 147, 172, 0.10)",
15011
+ borderColor: r.custom.colors.silverGray,
15012
+ outline: "none",
15013
+ svg: {
15014
+ fill: r.custom.colors.lightRed
15015
+ }
15014
15016
  },
15015
15017
  ".Mit-AdornmentButton": {
15016
15018
  padding: "0 16px"
@@ -15154,8 +15156,8 @@ const Yu = {
15154
15156
  modeStorageKey: "mui-mode"
15155
15157
  }, {
15156
15158
  CssVarsProvider: QT,
15157
- useColorScheme: s6,
15158
- getInitColorSchemeScript: c6
15159
+ useColorScheme: c6,
15160
+ getInitColorSchemeScript: f6
15159
15161
  } = FC({
15160
15162
  themeId: Rr,
15161
15163
  // @ts-ignore ignore module augmentation tests
@@ -20888,7 +20890,7 @@ function qR(e, r, l) {
20888
20890
  return h === u ? (e.consume(h), a++, m) : (e.exit("thematicBreakSequence"), We(h) ? ct(e, d, "whitespace")(h) : d(h));
20889
20891
  }
20890
20892
  }
20891
- const ln = {
20893
+ const an = {
20892
20894
  name: "list",
20893
20895
  tokenize: YR,
20894
20896
  continuation: {
@@ -20949,7 +20951,7 @@ function FR(e, r, l) {
20949
20951
  return a.containerState.furtherBlankLines || !We(d) ? (a.containerState.furtherBlankLines = void 0, a.containerState.initialBlankLine = void 0, f(d)) : (a.containerState.furtherBlankLines = void 0, a.containerState.initialBlankLine = void 0, e.attempt(GR, r, f)(d));
20950
20952
  }
20951
20953
  function f(d) {
20952
- return a.containerState._closeFlow = !0, a.interrupt = void 0, ct(e, e.attempt(ln, r, l), "linePrefix", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(d);
20954
+ return a.containerState._closeFlow = !0, a.interrupt = void 0, ct(e, e.attempt(an, r, l), "linePrefix", a.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(d);
20953
20955
  }
20954
20956
  }
20955
20957
  function PR(e, r, l) {
@@ -21362,19 +21364,19 @@ function a5(e, r) {
21362
21364
  return a.join("");
21363
21365
  }
21364
21366
  const o5 = {
21365
- 42: ln,
21366
- 43: ln,
21367
- 45: ln,
21368
- 48: ln,
21369
- 49: ln,
21370
- 50: ln,
21371
- 51: ln,
21372
- 52: ln,
21373
- 53: ln,
21374
- 54: ln,
21375
- 55: ln,
21376
- 56: ln,
21377
- 57: ln,
21367
+ 42: an,
21368
+ 43: an,
21369
+ 45: an,
21370
+ 48: an,
21371
+ 49: an,
21372
+ 50: an,
21373
+ 51: an,
21374
+ 52: an,
21375
+ 53: an,
21376
+ 54: an,
21377
+ 55: an,
21378
+ 56: an,
21379
+ 57: an,
21378
21380
  62: nS
21379
21381
  }, u5 = {
21380
21382
  91: sR
@@ -21657,7 +21659,7 @@ function T5(e) {
21657
21659
  return le;
21658
21660
  }
21659
21661
  function u(X, le, de) {
21660
- let Ae = le - 1, Ie = -1, Ue = !1, en, Ut, zt, ai;
21662
+ let Ae = le - 1, Ie = -1, Ue = !1, tn, Ut, zt, ai;
21661
21663
  for (; ++Ae <= de; ) {
21662
21664
  const yt = X[Ae];
21663
21665
  switch (yt[1].type) {
@@ -21668,7 +21670,7 @@ function T5(e) {
21668
21670
  break;
21669
21671
  }
21670
21672
  case "lineEndingBlank": {
21671
- yt[0] === "enter" && (en && !ai && !Ie && !zt && (zt = Ae), ai = void 0);
21673
+ yt[0] === "enter" && (tn && !ai && !Ie && !zt && (zt = Ae), ai = void 0);
21672
21674
  break;
21673
21675
  }
21674
21676
  case "linePrefix":
@@ -21681,7 +21683,7 @@ function T5(e) {
21681
21683
  ai = void 0;
21682
21684
  }
21683
21685
  if (!Ie && yt[0] === "enter" && yt[1].type === "listItemPrefix" || Ie === -1 && yt[0] === "exit" && (yt[1].type === "listUnordered" || yt[1].type === "listOrdered")) {
21684
- if (en) {
21686
+ if (tn) {
21685
21687
  let At = Ae;
21686
21688
  for (Ut = void 0; At--; ) {
21687
21689
  const jn = X[At];
@@ -21690,7 +21692,7 @@ function T5(e) {
21690
21692
  Ut && (X[Ut][1].type = "lineEndingBlank", Ue = !0), jn[1].type = "lineEnding", Ut = At;
21691
21693
  } else if (!(jn[1].type === "linePrefix" || jn[1].type === "blockQuotePrefix" || jn[1].type === "blockQuotePrefixWhitespace" || jn[1].type === "blockQuoteMarker" || jn[1].type === "listItemIndent")) break;
21692
21694
  }
21693
- zt && (!Ut || zt < Ut) && (en._spread = !0), en.end = Object.assign({}, Ut ? X[Ut][1].start : yt[1].end), X.splice(Ut || Ae, 0, ["exit", en, yt[2]]), Ae++, de++;
21695
+ zt && (!Ut || zt < Ut) && (tn._spread = !0), tn.end = Object.assign({}, Ut ? X[Ut][1].start : yt[1].end), X.splice(Ut || Ae, 0, ["exit", tn, yt[2]]), Ae++, de++;
21694
21696
  }
21695
21697
  if (yt[1].type === "listItemPrefix") {
21696
21698
  const At = {
@@ -21700,7 +21702,7 @@ function T5(e) {
21700
21702
  // @ts-expect-error: we’ll add `end` in a second.
21701
21703
  end: void 0
21702
21704
  };
21703
- en = At, X.splice(Ae, 0, ["enter", At, yt[2]]), Ae++, de++, zt = void 0, ai = !0;
21705
+ tn = At, X.splice(Ae, 0, ["enter", At, yt[2]]), Ae++, de++, zt = void 0, ai = !0;
21704
21706
  }
21705
21707
  }
21706
21708
  }
@@ -25939,7 +25941,7 @@ const V3 = Mo(/* @__PURE__ */ fe.jsx("path", {
25939
25941
  a,
25940
25942
  /* @__PURE__ */ M.createElement(W3, { id: d }, r, " message")
25941
25943
  ) : null;
25942
- }, an = {
25944
+ }, en = {
25943
25945
  root: "MitAiChat--root",
25944
25946
  title: "MitAiChat--title",
25945
25947
  conversationStarter: "MitAiChat--conversationStarter",
@@ -25948,7 +25950,8 @@ const V3 = Mo(/* @__PURE__ */ fe.jsx("path", {
25948
25950
  messageRowUser: "MitAiChat--messageRowUser",
25949
25951
  messageRowAssistant: "MitAiChat--messageRowAssistant",
25950
25952
  message: "MitAiChat--message",
25951
- input: "MitAiChat--input"
25953
+ input: "MitAiChat--input",
25954
+ bottomSection: "MitAiChat--bottomSection"
25952
25955
  }, eO = nt.div({
25953
25956
  width: "100%",
25954
25957
  height: "100%",
@@ -25977,15 +25980,14 @@ const V3 = Mo(/* @__PURE__ */ fe.jsx("path", {
25977
25980
  display: "flex",
25978
25981
  flexDirection: "column",
25979
25982
  flex: 1,
25980
- paddingTop: "14px",
25981
- paddingBottom: "24px",
25983
+ padding: "14px 0",
25982
25984
  overflow: "auto",
25983
- gap: "24px"
25985
+ gap: "16px"
25984
25986
  }), S1 = nt.div({
25985
25987
  display: "flex",
25986
25988
  width: "100%",
25987
25989
  gap: "10px",
25988
- [`&.${an.messageRowUser}`]: {
25990
+ [`&.${en.messageRowUser}`]: {
25989
25991
  flexDirection: "row-reverse"
25990
25992
  },
25991
25993
  "> *": {
@@ -26003,20 +26005,24 @@ const V3 = Mo(/* @__PURE__ */ fe.jsx("path", {
26003
26005
  "p:last-of-type": {
26004
26006
  marginBottom: 0
26005
26007
  },
26008
+ "ol, ul": {
26009
+ paddingInlineStart: "32px",
26010
+ li: {
26011
+ margin: "16px 0"
26012
+ }
26013
+ },
26014
+ ul: {
26015
+ marginInlineStart: "-16px"
26016
+ },
26006
26017
  a: {
26007
26018
  color: e.custom.colors.red,
26008
26019
  fontWeight: "normal"
26009
26020
  },
26010
26021
  borderRadius: "12px",
26011
- [`.${an.messageRowAssistant} &`]: {
26012
- border: `1px solid ${e.custom.colors.lightGray2}`,
26013
- borderRadius: "0px 8px 8px 8px",
26014
- svg: {
26015
- fill: e.custom.colors.silverGrayDark,
26016
- display: "block"
26017
- }
26022
+ [`.${en.messageRowAssistant} &`]: {
26023
+ padding: "12px 16px 12px 0"
26018
26024
  },
26019
- [`.${an.messageRowUser} &`]: {
26025
+ [`.${en.messageRowUser} &`]: {
26020
26026
  borderRadius: "8px 0px 8px 8px",
26021
26027
  backgroundColor: e.custom.colors.lightGray1
26022
26028
  }
@@ -26042,17 +26048,15 @@ const V3 = Mo(/* @__PURE__ */ fe.jsx("path", {
26042
26048
  })), aO = nt(sw)({
26043
26049
  width: "40px",
26044
26050
  height: "40px"
26045
- }), oO = nt(FT)(({ theme: e }) => ({
26046
- backgroundColor: e.custom.colors.lightGray1,
26047
- borderRadius: "8px",
26048
- border: `1px solid ${e.custom.colors.lightGray2}`
26049
- })), uO = nt(aw)(({ theme: e }) => ({
26051
+ }), oO = nt(aw)(({ theme: e }) => ({
26050
26052
  fill: e.custom.colors.red
26051
- })), sO = nt(ow)(({ theme: e }) => ({
26053
+ })), uO = nt(ow)(({ theme: e }) => ({
26052
26054
  fill: e.custom.colors.red
26053
- })), cO = nt(Xd)(({ theme: e }) => ({
26055
+ })), sO = nt.div({
26056
+ paddingTop: "12px"
26057
+ }), cO = nt(Xd)(({ theme: e }) => ({
26054
26058
  color: e.custom.colors.silverGrayDark,
26055
- marginTop: "16px",
26059
+ marginTop: "14px",
26056
26060
  textAlign: "center"
26057
26061
  })), fO = nt(
26058
26062
  ({ title: e, askTimTitle: r, onClose: l, className: a }) => /* @__PURE__ */ M.createElement("div", { className: a }, r ? /* @__PURE__ */ M.createElement(nO, null, /* @__PURE__ */ M.createElement(uw, null), /* @__PURE__ */ M.createElement(Xd, { variant: "body1" }, "Ask", /* @__PURE__ */ M.createElement("strong", null, "TIM"), " ", r)) : null, e ? /* @__PURE__ */ M.createElement(M.Fragment, null, /* @__PURE__ */ M.createElement(aO, null), /* @__PURE__ */ M.createElement(Xd, { flex: 1, variant: "h5" }, e)) : null, l ? /* @__PURE__ */ M.createElement(
@@ -26124,18 +26128,18 @@ const V3 = Mo(/* @__PURE__ */ fe.jsx("path", {
26124
26128
  top: T.current.scrollHeight
26125
26129
  });
26126
26130
  }, P = V[V.length - 1];
26127
- return /* @__PURE__ */ M.createElement(eO, { className: Ya(l, an.root), ...R }, /* @__PURE__ */ M.createElement(
26131
+ return /* @__PURE__ */ M.createElement(eO, { className: Ya(l, en.root), ...R }, /* @__PURE__ */ M.createElement(
26128
26132
  fO,
26129
26133
  {
26130
26134
  title: m,
26131
26135
  askTimTitle: h,
26132
26136
  onClose: g,
26133
- className: Ya(l, an.title)
26137
+ className: Ya(l, en.title)
26134
26138
  }
26135
26139
  ), /* @__PURE__ */ M.createElement(
26136
26140
  rO,
26137
26141
  {
26138
- className: an.messagesContainer,
26142
+ className: en.messagesContainer,
26139
26143
  ref: T
26140
26144
  },
26141
26145
  V.map((Z) => /* @__PURE__ */ M.createElement(
@@ -26143,17 +26147,17 @@ const V3 = Mo(/* @__PURE__ */ fe.jsx("path", {
26143
26147
  {
26144
26148
  key: Z.id,
26145
26149
  "data-chat-role": Z.role,
26146
- className: Ya(an.messageRow, {
26147
- [an.messageRowUser]: Z.role === "user",
26148
- [an.messageRowAssistant]: Z.role === "assistant"
26150
+ className: Ya(en.messageRow, {
26151
+ [en.messageRowUser]: Z.role === "user",
26152
+ [en.messageRowAssistant]: Z.role === "assistant"
26149
26153
  })
26150
26154
  },
26151
- /* @__PURE__ */ M.createElement(v1, { className: an.message }, /* @__PURE__ */ M.createElement(ES, null, Z.role === "user" ? "You said: " : "Assistant said: "), /* @__PURE__ */ M.createElement(F4, { skipHtml: !0 }, Z.content))
26155
+ /* @__PURE__ */ M.createElement(v1, { className: en.message }, /* @__PURE__ */ M.createElement(ES, null, Z.role === "user" ? "You said: " : "Assistant said: "), /* @__PURE__ */ M.createElement(F4, { skipHtml: !0 }, Z.content))
26152
26156
  )),
26153
26157
  E ? /* @__PURE__ */ M.createElement(iO, null, a == null ? void 0 : a.map((Z) => /* @__PURE__ */ M.createElement(
26154
26158
  lO,
26155
26159
  {
26156
- className: an.conversationStarter,
26160
+ className: en.conversationStarter,
26157
26161
  key: Z.content,
26158
26162
  onClick: () => {
26159
26163
  F(), A({ role: "user", content: Z.content });
@@ -26165,15 +26169,15 @@ const V3 = Mo(/* @__PURE__ */ fe.jsx("path", {
26165
26169
  S1,
26166
26170
  {
26167
26171
  className: Ya(
26168
- an.messageRow,
26169
- an.messageRowAssistant
26172
+ en.messageRow,
26173
+ en.messageRowAssistant
26170
26174
  ),
26171
26175
  key: "loading"
26172
26176
  },
26173
26177
  /* @__PURE__ */ M.createElement(v1, null, /* @__PURE__ */ M.createElement(lw, null))
26174
26178
  ) : null,
26175
26179
  ne ? /* @__PURE__ */ M.createElement(J3, { severity: "error", closable: !0 }, "An unexpected error has occurred.") : null
26176
- ), /* @__PURE__ */ M.createElement(
26180
+ ), /* @__PURE__ */ M.createElement(sO, { className: en.bottomSection }, /* @__PURE__ */ M.createElement(
26177
26181
  "form",
26178
26182
  {
26179
26183
  onSubmit: (Z) => {
@@ -26181,11 +26185,11 @@ const V3 = Mo(/* @__PURE__ */ fe.jsx("path", {
26181
26185
  }
26182
26186
  },
26183
26187
  /* @__PURE__ */ M.createElement(
26184
- oO,
26188
+ FT,
26185
26189
  {
26186
26190
  fullWidth: !0,
26187
26191
  size: "chat",
26188
- className: an.input,
26192
+ className: en.input,
26189
26193
  placeholder: v,
26190
26194
  name: "message",
26191
26195
  sx: { flex: 1 },
@@ -26198,22 +26202,21 @@ const V3 = Mo(/* @__PURE__ */ fe.jsx("path", {
26198
26202
  onClick: H,
26199
26203
  disabled: !Y
26200
26204
  },
26201
- /* @__PURE__ */ M.createElement(sO, null)
26205
+ /* @__PURE__ */ M.createElement(uO, null)
26202
26206
  ) : /* @__PURE__ */ M.createElement(
26203
26207
  s0,
26204
26208
  {
26205
26209
  "aria-label": "Send",
26206
26210
  type: "submit",
26207
- disabled: !B,
26208
26211
  onClick: (Z) => {
26209
26212
  F(), z(Z);
26210
26213
  }
26211
26214
  },
26212
- /* @__PURE__ */ M.createElement(uO, null)
26215
+ /* @__PURE__ */ M.createElement(oO, null)
26213
26216
  )
26214
26217
  }
26215
26218
  )
26216
- ), /* @__PURE__ */ M.createElement(cO, { variant: "body3" }, "AI-generated content may be incorrect."), /* @__PURE__ */ M.createElement(
26219
+ ), /* @__PURE__ */ M.createElement(cO, { variant: "body3" }, "AI-generated content may be incorrect.")), /* @__PURE__ */ M.createElement(
26217
26220
  J4,
26218
26221
  {
26219
26222
  isLoading: _,
@@ -27295,9 +27298,9 @@ const WO = /* @__PURE__ */ M.forwardRef(function(r, l) {
27295
27298
  ...R,
27296
27299
  children: F
27297
27300
  });
27298
- }), JO = ({
27301
+ }), JO = (e) => e, e6 = ({
27299
27302
  messageOrigin: e,
27300
- transformBody: r,
27303
+ transformBody: r = JO,
27301
27304
  className: l
27302
27305
  }) => {
27303
27306
  const [a, u] = M.useState(!1), [s, f] = M.useState(null);
@@ -27305,7 +27308,7 @@ const WO = /* @__PURE__ */ M.forwardRef(function(r, l) {
27305
27308
  const d = (m) => {
27306
27309
  m.origin === e && m.data.type === "smoot-design::chat-open" && (u(!0), f(m.data.payload));
27307
27310
  };
27308
- return console.log("Attaching listener"), window.addEventListener("message", d), () => {
27311
+ return window.addEventListener("message", d), () => {
27309
27312
  window.removeEventListener("message", d);
27310
27313
  };
27311
27314
  }, [e]), /* @__PURE__ */ M.createElement(
@@ -27332,14 +27335,17 @@ const WO = /* @__PURE__ */ M.forwardRef(function(r, l) {
27332
27335
  {
27333
27336
  ...s,
27334
27337
  requestOpts: {
27335
- transformBody: r,
27338
+ transformBody: (d) => ({
27339
+ ...s.requestBody,
27340
+ ...r == null ? void 0 : r(d)
27341
+ }),
27336
27342
  apiUrl: s == null ? void 0 : s.apiUrl
27337
27343
  },
27338
27344
  onClose: () => u(!1)
27339
27345
  }
27340
27346
  ) : null
27341
27347
  );
27342
- }, e6 = {
27348
+ }, t6 = {
27343
27349
  defaultProps: {
27344
27350
  disableRipple: !0
27345
27351
  },
@@ -27380,7 +27386,7 @@ const WO = /* @__PURE__ */ M.forwardRef(function(r, l) {
27380
27386
  lightRed: "#D02E44",
27381
27387
  orange: "#FAB005",
27382
27388
  yellow: "#FFEB00"
27383
- }, t6 = {
27389
+ }, n6 = {
27384
27390
  defaultProps: {
27385
27391
  size: "medium",
27386
27392
  color: "default",
@@ -27541,13 +27547,13 @@ const WO = /* @__PURE__ */ M.forwardRef(function(r, l) {
27541
27547
  }
27542
27548
  }
27543
27549
  ]
27544
- }, n6 = {
27550
+ }, r6 = {
27545
27551
  colors: Ve,
27546
27552
  dimensions: {
27547
27553
  headerHeight: "72px",
27548
27554
  headerHeightSm: "60px"
27549
27555
  }
27550
- }, r6 = {
27556
+ }, i6 = {
27551
27557
  values: {
27552
27558
  xs: 0,
27553
27559
  sm: 600,
@@ -27555,8 +27561,8 @@ const WO = /* @__PURE__ */ M.forwardRef(function(r, l) {
27555
27561
  lg: 1320,
27556
27562
  xl: 1536
27557
27563
  }
27558
- }, i6 = {
27559
- custom: n6,
27564
+ }, l6 = {
27565
+ custom: r6,
27560
27566
  palette: {
27561
27567
  primary: {
27562
27568
  main: Ve.mitRed,
@@ -27576,9 +27582,9 @@ const WO = /* @__PURE__ */ M.forwardRef(function(r, l) {
27576
27582
  },
27577
27583
  spacing: 8,
27578
27584
  typography: fb,
27579
- breakpoints: r6,
27585
+ breakpoints: i6,
27580
27586
  components: {
27581
- MuiButtonBase: e6,
27587
+ MuiButtonBase: t6,
27582
27588
  MuiTypography: WT,
27583
27589
  MuiMenu: {
27584
27590
  styleOverrides: { paper: { borderRadius: "4px" } }
@@ -27592,17 +27598,17 @@ const WO = /* @__PURE__ */ M.forwardRef(function(r, l) {
27592
27598
  popupIndicator: { paddingRight: 0, marginRight: 0 }
27593
27599
  }
27594
27600
  },
27595
- MuiChip: t6
27601
+ MuiChip: n6
27596
27602
  }
27597
- }, l6 = (e) => Ms(un(i6, e)), a6 = l6(), o6 = ({
27603
+ }, a6 = (e) => Ms(un(l6, e)), o6 = a6(), u6 = ({
27598
27604
  children: e,
27599
- theme: r = a6
27600
- }) => /* @__PURE__ */ M.createElement(ZT, { theme: r }, e), f6 = (e) => {
27605
+ theme: r = o6
27606
+ }) => /* @__PURE__ */ M.createElement(ZT, { theme: r }, e), d6 = (e) => {
27601
27607
  const r = document.createElement("div");
27602
27608
  r.id = "smoot-chat-drawer-root", document.body.append(r), Jx.createRoot(r).render(
27603
- /* @__PURE__ */ M.createElement(o6, null, /* @__PURE__ */ M.createElement(JO, { ...e }))
27609
+ /* @__PURE__ */ M.createElement(u6, null, /* @__PURE__ */ M.createElement(e6, { ...e }))
27604
27610
  );
27605
27611
  };
27606
27612
  export {
27607
- f6 as init
27613
+ d6 as init
27608
27614
  };