@fluid-app/fluid-cli-theme-dev 0.1.665 → 0.1.666

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.
@@ -1,7 +1,7 @@
1
1
  var uH = Object.defineProperty;
2
2
  var cH = (e, t, n) => t in e ? uH(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var zg = (e, t, n) => cH(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { aJ as yf, ax as gt, l as A, aE as Ke, Z as F, _ as Ye, Y as tt, j as c, aK as dH, aL as fH, i as Im, aM as pH, aI as qM, W as UM, ai as jd, an as hH, P as VM, X as Et, aN as Ad, av as Bt, aO as mH, aC as HM, aD as gH, aw as V8, au as yH, aP as bH, aQ as vH, D as xH, ak as _H, a1 as wH, a8 as kH, aj as SH, B as jH, E as AH, z as CH } from "./account-screen-runtime-CCY1xG25.js";
4
+ import { aJ as yf, ax as gt, l as A, aE as Ke, Z as F, _ as Xe, Y as tt, j as c, aK as dH, aL as fH, i as Im, aM as pH, aI as qM, W as UM, ai as jd, an as hH, P as VM, X as Et, aN as Ad, av as Bt, aO as mH, aC as HM, aD as gH, aw as V8, au as yH, aP as bH, aQ as vH, D as xH, ak as _H, a1 as wH, a8 as kH, aj as SH, B as jH, E as AH, z as CH } from "./account-screen-runtime-CCY1xG25.js";
5
5
  import { _ as lt, u as et, o as fe, s as N, b as Ee, h as WM, d as ke, n as ne, a as Pn, f as Lm, i as xe, g as Ge, r as Vo, e as ps, c as sr, j as KM, k as U4, m as EH, Z as TH, p as PH, q as OH, t as NH, v as Z2, w as Pa } from "./schemas-Cg7EObbC.js";
6
6
  import { a as MH, c as DH, b as GM, u as RH } from "./translation-api-context-factory-BvgIQ7Kx.js";
7
7
  import { u as xi } from "./useInfiniteQuery-BNm7VYEX.js";
@@ -8474,7 +8474,7 @@ function OC(e, t) {
8474
8474
  }
8475
8475
  return n;
8476
8476
  }
8477
- function Ht(e) {
8477
+ function Wt(e) {
8478
8478
  for (var t = 1; t < arguments.length; t++) {
8479
8479
  var n = arguments[t] != null ? arguments[t] : {};
8480
8480
  t % 2 ? OC(Object(n), !0).forEach(function(r) {
@@ -8561,7 +8561,7 @@ var Jee = function(t) {
8561
8561
  }
8562
8562
  return o;
8563
8563
  }, Lw = function(t) {
8564
- var n, r = t, i = r.type.displayName, a = (n = t.type) !== null && n !== void 0 && n.defaultProps ? Ht(Ht({}, t.type.defaultProps), t.props) : t.props, o = a.stroke, s = a.fill, l;
8564
+ var n, r = t, i = r.type.displayName, a = (n = t.type) !== null && n !== void 0 && n.defaultProps ? Wt(Wt({}, t.type.defaultProps), t.props) : t.props, o = a.stroke, s = a.fill, l;
8565
8565
  switch (i) {
8566
8566
  case "Line":
8567
8567
  l = o;
@@ -8585,7 +8585,7 @@ var Jee = function(t) {
8585
8585
  return Sa(S.type).indexOf("Bar") >= 0;
8586
8586
  });
8587
8587
  if (b && b.length) {
8588
- var v = b[0].type.defaultProps, _ = v !== void 0 ? Ht(Ht({}, v), b[0].props) : b[0].props, x = _.barSize, w = _[g];
8588
+ var v = b[0].type.defaultProps, _ = v !== void 0 ? Wt(Wt({}, v), b[0].props) : b[0].props, x = _.barSize, w = _[g];
8589
8589
  o[w] || (o[w] = []);
8590
8590
  var k = ze(x) ? n : x;
8591
8591
  o[w].push({
@@ -8656,9 +8656,9 @@ var Jee = function(t) {
8656
8656
  if (u) {
8657
8657
  var d = i || {}, f = d.width, p = d.height, h = u.align, m = u.verticalAlign, y = u.layout;
8658
8658
  if ((y === "vertical" || y === "horizontal" && m === "middle") && h !== "center" && ye(t[h]))
8659
- return Ht(Ht({}, t), {}, $s({}, h, t[h] + (f || 0)));
8659
+ return Wt(Wt({}, t), {}, $s({}, h, t[h] + (f || 0)));
8660
8660
  if ((y === "horizontal" || y === "vertical" && h === "center") && m !== "middle" && ye(t[m]))
8661
- return Ht(Ht({}, t), {}, $s({}, m, t[m] + (p || 0)));
8661
+ return Wt(Wt({}, t), {}, $s({}, m, t[m] + (p || 0)));
8662
8662
  }
8663
8663
  return t;
8664
8664
  }, rte = function(t, n, r) {
@@ -8860,7 +8860,7 @@ var Jee = function(t) {
8860
8860
  if (!t)
8861
8861
  return null;
8862
8862
  var s = o ? n.reverse() : n, l = {}, u = s.reduce(function(f, p) {
8863
- var h, m = (h = p.type) !== null && h !== void 0 && h.defaultProps ? Ht(Ht({}, p.type.defaultProps), p.props) : p.props, y = m.stackId, g = m.hide;
8863
+ var h, m = (h = p.type) !== null && h !== void 0 && h.defaultProps ? Wt(Wt({}, p.type.defaultProps), p.props) : p.props, y = m.stackId, g = m.hide;
8864
8864
  if (g)
8865
8865
  return f;
8866
8866
  var b = m[r], v = f[b] || {
@@ -8880,7 +8880,7 @@ var Jee = function(t) {
8880
8880
  cateAxisId: i,
8881
8881
  items: [p]
8882
8882
  };
8883
- return Ht(Ht({}, f), {}, $s({}, b, v));
8883
+ return Wt(Wt({}, f), {}, $s({}, b, v));
8884
8884
  }, l), d = {};
8885
8885
  return Object.keys(u).reduce(function(f, p) {
8886
8886
  var h = u[p];
@@ -8888,7 +8888,7 @@ var Jee = function(t) {
8888
8888
  var m = {};
8889
8889
  h.stackGroups = Object.keys(h.stackGroups).reduce(function(y, g) {
8890
8890
  var b = h.stackGroups[g];
8891
- return Ht(Ht({}, y), {}, $s({}, g, {
8891
+ return Wt(Wt({}, y), {}, $s({}, g, {
8892
8892
  numericAxisId: r,
8893
8893
  cateAxisId: i,
8894
8894
  items: b.items,
@@ -8896,7 +8896,7 @@ var Jee = function(t) {
8896
8896
  }));
8897
8897
  }, m);
8898
8898
  }
8899
- return Ht(Ht({}, f), {}, $s({}, p, h));
8899
+ return Wt(Wt({}, f), {}, $s({}, p, h));
8900
8900
  }, d);
8901
8901
  }, aI = function(t, n) {
8902
8902
  var r = n.realScaleType, i = n.type, a = n.tickCount, o = n.originalDomain, s = n.allowDecimals, l = r || n.scale;
@@ -8946,7 +8946,7 @@ var MC = function(t) {
8946
8946
  }
8947
8947
  return r[0];
8948
8948
  }, pte = function(t, n) {
8949
- var r, i = (r = t.type) !== null && r !== void 0 && r.defaultProps ? Ht(Ht({}, t.type.defaultProps), t.props) : t.props, a = i.stackId;
8949
+ var r, i = (r = t.type) !== null && r !== void 0 && r.defaultProps ? Wt(Wt({}, t.type.defaultProps), t.props) : t.props, a = i.stackId;
8950
8950
  if (cn(a)) {
8951
8951
  var o = n[a];
8952
8952
  if (o) {
@@ -9007,8 +9007,8 @@ var MC = function(t) {
9007
9007
  }, IC = function(t, n, r) {
9008
9008
  return !t || !t.length || Ma(t, lr(r, "type.defaultProps.domain")) ? n : t;
9009
9009
  }, sI = function(t, n) {
9010
- var r = t.type.defaultProps ? Ht(Ht({}, t.type.defaultProps), t.props) : t.props, i = r.dataKey, a = r.name, o = r.unit, s = r.formatter, l = r.tooltipType, u = r.chartType, d = r.hide;
9011
- return Ht(Ht({}, Ne(t, !1)), {}, {
9010
+ var r = t.type.defaultProps ? Wt(Wt({}, t.type.defaultProps), t.props) : t.props, i = r.dataKey, a = r.name, o = r.unit, s = r.formatter, l = r.tooltipType, u = r.chartType, d = r.hide;
9011
+ return Wt(Wt({}, Ne(t, !1)), {}, {
9012
9012
  dataKey: i,
9013
9013
  unit: o,
9014
9014
  formatter: s,
@@ -18351,11 +18351,11 @@ var j3 = function(t, n, r, i) {
18351
18351
  graphicalItems: [$],
18352
18352
  dataStartIndex: S,
18353
18353
  dataEndIndex: C
18354
- }), Q = $.type.defaultProps !== void 0 ? oe(oe({}, $.type.defaultProps), $.props) : $.props, I = Q.dataKey, V = Q.maxBarSize, q = Q["".concat(D, "Id")], X = Q["".concat(L, "Id")], ae = {}, G = l.reduce(function(Xe, Re) {
18354
+ }), Q = $.type.defaultProps !== void 0 ? oe(oe({}, $.type.defaultProps), $.props) : $.props, I = Q.dataKey, V = Q.maxBarSize, q = Q["".concat(D, "Id")], X = Q["".concat(L, "Id")], ae = {}, G = l.reduce(function(Ye, Re) {
18355
18355
  var Me = v["".concat(Re.axisType, "Map")], pe = Q["".concat(Re.axisType, "Id")];
18356
18356
  Me && Me[pe] || Re.axisType === "zAxis" || Do();
18357
18357
  var ve = Me[pe];
18358
- return oe(oe({}, Xe), {}, Ue(Ue({}, Re.axisType, ve), "".concat(Re.axisType, "Ticks"), Fi(ve)));
18358
+ return oe(oe({}, Ye), {}, Ue(Ue({}, Re.axisType, ve), "".concat(Re.axisType, "Ticks"), Fi(ve)));
18359
18359
  }, ae), H = G[L], U = G["".concat(L, "Ticks")], te = x && x[q] && x[q].hasStack && pte($, x[q].stackGroups), W = Sa($.type).indexOf("Bar") >= 0, se = ih(H, U), he = [], Y = z && ete({
18360
18360
  barSize: T,
18361
18361
  stackGroups: x,
@@ -18369,10 +18369,10 @@ var j3 = function(t, n, r, i) {
18369
18369
  bandSize: je !== se ? je : se,
18370
18370
  sizeList: Y[X],
18371
18371
  maxBarSize: we
18372
- }), je !== se && (he = he.map(function(Xe) {
18373
- return oe(oe({}, Xe), {}, {
18374
- position: oe(oe({}, Xe.position), {}, {
18375
- offset: Xe.position.offset - je / 2
18372
+ }), je !== se && (he = he.map(function(Ye) {
18373
+ return oe(oe({}, Ye), {}, {
18374
+ position: oe(oe({}, Ye.position), {}, {
18375
+ offset: Ye.position.offset - je / 2
18376
18376
  })
18377
18377
  });
18378
18378
  }));
@@ -18767,10 +18767,10 @@ var j3 = function(t, n, r, i) {
18767
18767
  } else {
18768
18768
  var Y, ie = (Y = w.getItemByXY(w.state.activeCoordinate)) !== null && Y !== void 0 ? Y : {
18769
18769
  graphicalItem: H
18770
- }, ue = ie.graphicalItem, we = ue.item, je = we === void 0 ? k : we, Pe = ue.childIndex, Xe = oe(oe(oe({}, T.props), G), {}, {
18770
+ }, ue = ie.graphicalItem, we = ue.item, je = we === void 0 ? k : we, Pe = ue.childIndex, Ye = oe(oe(oe({}, T.props), G), {}, {
18771
18771
  activeIndex: Pe
18772
18772
  });
18773
- return [/* @__PURE__ */ A.cloneElement(je, Xe), null, null];
18773
+ return [/* @__PURE__ */ A.cloneElement(je, Ye), null, null];
18774
18774
  }
18775
18775
  return R ? [H, null, null] : [H, null];
18776
18776
  }), Ue(w, "renderCustomized", function(k, S, C) {
@@ -21224,7 +21224,7 @@ function Rde(e) {
21224
21224
  k[x] = ie, P[x] = ie - z;
21225
21225
  }
21226
21226
  if (s) {
21227
- var ue, we = x === "x" ? Kn : Gn, je = x === "x" ? Mr : Dr, Pe = k[w], Xe = w === "y" ? "height" : "width", Re = Pe + g[we], Me = Pe - g[je], pe = [Kn, Gn].indexOf(b) !== -1, ve = (ue = E?.[w]) != null ? ue : 0, K = pe ? Re : Pe - S[Xe] - C[Xe] - ve + j.altAxis, de = pe ? Pe + S[Xe] + C[Xe] - ve - j.altAxis : Me, Ae = h && pe ? ade(K, Pe, de) : Yu(h ? K : Re, Pe, h ? de : Me);
21227
+ var ue, we = x === "x" ? Kn : Gn, je = x === "x" ? Mr : Dr, Pe = k[w], Ye = w === "y" ? "height" : "width", Re = Pe + g[we], Me = Pe - g[je], pe = [Kn, Gn].indexOf(b) !== -1, ve = (ue = E?.[w]) != null ? ue : 0, K = pe ? Re : Pe - S[Ye] - C[Ye] - ve + j.altAxis, de = pe ? Pe + S[Ye] + C[Ye] - ve - j.altAxis : Me, Ae = h && pe ? ade(K, Pe, de) : Yu(h ? K : Re, Pe, h ? de : Me);
21228
21228
  k[w] = Ae, P[w] = Ae - Pe;
21229
21229
  }
21230
21230
  t.modifiersData[r] = P;
@@ -21924,7 +21924,7 @@ function yfe(e, t) {
21924
21924
  function he(re) {
21925
21925
  var _e = re.target, Ce = M().contains(_e) || k.contains(_e);
21926
21926
  if (!(re.type === "mousemove" && Ce)) {
21927
- var He = Xe().concat(k).map(function(Le) {
21927
+ var He = Ye().concat(k).map(function(Le) {
21928
21928
  var $t, Ie = Le._tippy, kt = ($t = Ie.popperInstance) == null ? void 0 : $t.state;
21929
21929
  return kt ? {
21930
21930
  popperRect: Le.getBoundingClientRect(),
@@ -22015,7 +22015,7 @@ function yfe(e, t) {
22015
22015
  var re = x.props.appendTo, _e, Ce = M();
22016
22016
  x.props.interactive && re === HL || re === "parent" ? _e = Ce.parentNode : _e = WL(re, [Ce]), _e.contains(k) || _e.appendChild(k), x.state.isMounted = !0, we();
22017
22017
  }
22018
- function Xe() {
22018
+ function Ye() {
22019
22019
  return Ih(k.querySelectorAll("[data-tippy-root]"));
22020
22020
  }
22021
22021
  function Re(re) {
@@ -22056,7 +22056,7 @@ function yfe(e, t) {
22056
22056
  }));
22057
22057
  x.props = Ce, te(), _e.interactiveDebounce !== Ce.interactiveDebounce && (ee(), m = Q7(he, Ce.interactiveDebounce)), _e.triggerTarget && !Ce.triggerTarget ? hs(_e.triggerTarget).forEach(function(He) {
22058
22058
  He.removeAttribute("aria-expanded");
22059
- }) : Ce.triggerTarget && e.removeAttribute("aria-expanded"), R(), z(), S && S(_e, Ce), x.popperInstance && (we(), Xe().forEach(function(He) {
22059
+ }) : Ce.triggerTarget && e.removeAttribute("aria-expanded"), R(), z(), S && S(_e, Ce), x.popperInstance && (we(), Ye().forEach(function(He) {
22060
22060
  requestAnimationFrame(He._tippy.popperInstance.forceUpdate);
22061
22061
  })), B("onAfterUpdate", [x, re]);
22062
22062
  }
@@ -22101,7 +22101,7 @@ function yfe(e, t) {
22101
22101
  O().addEventListener("mousemove", m), Z7(Nf, m), m(re);
22102
22102
  }
22103
22103
  function Fe() {
22104
- x.state.isVisible && x.hide(), x.state.isMounted && (je(), Xe().forEach(function(re) {
22104
+ x.state.isVisible && x.hide(), x.state.isMounted && (je(), Ye().forEach(function(re) {
22105
22105
  re._tippy.unmount();
22106
22106
  }), k.parentNode && k.parentNode.removeChild(k), Uv = Uv.filter(function(re) {
22107
22107
  return re !== x;
@@ -22998,7 +22998,7 @@ function Rfe(e) {
22998
22998
  });
22999
22999
  }
23000
23000
  function Ul(e) {
23001
- const t = Ze(), n = Ye();
23001
+ const t = Ze(), n = Xe();
23002
23002
  return tt({
23003
23003
  queryKey: Z.conversationMetadata(e),
23004
23004
  queryFn: async () => {
@@ -23181,7 +23181,7 @@ function Qfe(e, t, n) {
23181
23181
  );
23182
23182
  }
23183
23183
  function Zfe(e) {
23184
- const t = Ye(), { data: n } = tt({
23184
+ const t = Xe(), { data: n } = tt({
23185
23185
  queryKey: Lo(e),
23186
23186
  queryFn: () => t.getQueryData(Lo(e)) ?? [],
23187
23187
  initialData: [],
@@ -23295,7 +23295,7 @@ function ipe(e, t) {
23295
23295
  );
23296
23296
  }
23297
23297
  function Vl() {
23298
- const e = Ze(), t = Ye();
23298
+ const e = Ze(), t = Xe();
23299
23299
  return et({
23300
23300
  mutationFn: async (n) => {
23301
23301
  const r = () => Promise.reject(new Error("Today is not available"));
@@ -23350,7 +23350,7 @@ function ape(e, t, n) {
23350
23350
  });
23351
23351
  }
23352
23352
  function ope(e) {
23353
- const t = Ze(), n = Ye();
23353
+ const t = Ze(), n = Xe();
23354
23354
  return tt({
23355
23355
  queryKey: Z.todayPost(e),
23356
23356
  enabled: !!t.getTodayPost,
@@ -23386,7 +23386,7 @@ function lpe(e, t, n) {
23386
23386
  });
23387
23387
  }
23388
23388
  function f$(e) {
23389
- const t = Ze(), n = Ye();
23389
+ const t = Ze(), n = Xe();
23390
23390
  return et({
23391
23391
  mutationFn: async (r) => r.kind === "create" ? await t.createTodayComment?.(e, r.body) ?? null : r.kind === "restore" ? await t.restoreTodayComment?.(r.commentId) ?? null : (await t.deleteTodayComment?.(r.commentId), null),
23392
23392
  onSuccess: (r, i) => {
@@ -23415,7 +23415,7 @@ function upe(e) {
23415
23415
  });
23416
23416
  }
23417
23417
  function cpe() {
23418
- const e = Ze(), t = Ye();
23418
+ const e = Ze(), t = Xe();
23419
23419
  return et({
23420
23420
  mutationFn: async (n) => {
23421
23421
  await e.dismissTodayReport?.(n);
@@ -23426,7 +23426,7 @@ function cpe() {
23426
23426
  });
23427
23427
  }
23428
23428
  function h$() {
23429
- const e = Ze(), t = Ye(), n = {
23429
+ const e = Ze(), t = Xe(), n = {
23430
23430
  pin: e.pinConversation?.bind(e),
23431
23431
  unpin: e.unpinConversation?.bind(e),
23432
23432
  mute: e.muteConversation?.bind(e),
@@ -23488,7 +23488,7 @@ function ppe() {
23488
23488
  });
23489
23489
  }
23490
23490
  function m$() {
23491
- const e = Ze(), t = Ye();
23491
+ const e = Ze(), t = Xe();
23492
23492
  return et({
23493
23493
  mutationFn: async (n) => n.kind === "accept" ? e.acceptConversationShare?.(n.shareId) : n.kind === "end" ? e.endConversationShare?.(n.shareId) : e.inviteCompanyToConversation?.(
23494
23494
  n.conversationId,
@@ -23541,7 +23541,7 @@ function mpe() {
23541
23541
  });
23542
23542
  }
23543
23543
  function gpe() {
23544
- const e = Ze(), t = Ye(), n = et({
23544
+ const e = Ze(), t = Xe(), n = et({
23545
23545
  mutationFn: async (i) => {
23546
23546
  const { conversationId: a, messageId: o, reactionString: s } = i;
23547
23547
  return e.reactToMessage(a, {
@@ -23641,7 +23641,7 @@ function gpe() {
23641
23641
  };
23642
23642
  }
23643
23643
  function ype(e, t) {
23644
- const { conversationId: n, messageId: r, perPage: i = E0 } = e, a = Ze(), o = Ye(), s = !r, l = xi({
23644
+ const { conversationId: n, messageId: r, perPage: i = E0 } = e, a = Ze(), o = Xe(), s = !r, l = xi({
23645
23645
  queryKey: Z.listMessages(
23646
23646
  n,
23647
23647
  r ? String(r) : void 0
@@ -23698,7 +23698,7 @@ function ype(e, t) {
23698
23698
  };
23699
23699
  }
23700
23700
  function g$(e, t, n) {
23701
- const r = Ze(), i = Ye(), a = A.useRef(null);
23701
+ const r = Ze(), i = Xe(), a = A.useRef(null);
23702
23702
  return et({
23703
23703
  mutationFn: async (o) => {
23704
23704
  const s = i.getQueryData(
@@ -23845,7 +23845,7 @@ function g$(e, t, n) {
23845
23845
  });
23846
23846
  }
23847
23847
  function bpe(e, t) {
23848
- const { conversationId: n, editScheduledId: r, editScheduledMessage: i } = e, a = Ze(), o = Ye();
23848
+ const { conversationId: n, editScheduledId: r, editScheduledMessage: i } = e, a = Ze(), o = Xe();
23849
23849
  return et({
23850
23850
  mutationFn: async ({
23851
23851
  body: s,
@@ -24044,7 +24044,7 @@ function Ape(e) {
24044
24044
  onNavigate: s,
24045
24045
  onCreationError: l,
24046
24046
  onValidationError: u
24047
- } = e, d = Ze(), { t: f } = ce(), p = Ye(), h = Lm(cT, {
24047
+ } = e, d = Ze(), { t: f } = ce(), p = Xe(), h = Lm(cT, {
24048
24048
  defaultValues: {
24049
24049
  channelName: "",
24050
24050
  description: "",
@@ -24812,7 +24812,7 @@ function nhe(e) {
24812
24812
  onConsumerChange: o,
24813
24813
  onMessageEvent: s,
24814
24814
  sessionAuthentication: l = !1
24815
- } = e, u = Ye(), d = A.useRef(
24815
+ } = e, u = Xe(), d = A.useRef(
24816
24816
  /* @__PURE__ */ new Map()
24817
24817
  ), f = A.useRef(
24818
24818
  null
@@ -25288,7 +25288,7 @@ function Mn() {
25288
25288
  );
25289
25289
  return e;
25290
25290
  }
25291
- function Kt() {
25291
+ function qt() {
25292
25292
  return Mn().navigation;
25293
25293
  }
25294
25294
  const she = fH({
@@ -27350,7 +27350,7 @@ function ume() {
27350
27350
  return Me;
27351
27351
  },
27352
27352
  SSG_FALLBACK_EXPORT_ERROR: function() {
27353
- return Xe;
27353
+ return Ye;
27354
27354
  },
27355
27355
  SSG_GET_INITIAL_PROPS_CONFLICT: function() {
27356
27356
  return te;
@@ -27374,7 +27374,7 @@ function ume() {
27374
27374
  return pe;
27375
27375
  }
27376
27376
  });
27377
- const n = "text/plain", r = "text/html; charset=utf-8", i = "application/json; charset=utf-8", a = "nxtP", o = "nxtI", s = "x-matched-path", l = "x-prerender-revalidate", u = "x-prerender-revalidate-if-generated", d = ".segments", f = ".segment.rsc", p = ".rsc", h = ".action", m = ".json", y = ".meta", g = ".body", b = "x-nextjs-deployment-id", v = "x-next-cache-tags", _ = "x-next-revalidated-tags", x = "x-next-revalidate-tag-token", w = "next-resume", k = "x-next-resume-state-length", S = 128, C = 256, T = 1024, j = "_N_T_", E = "_N_RP_", P = 31536e3, M = 4294967294, O = "middleware", D = `(?:src/)?${O}`, L = "proxy", z = `(?:src/)?${L}`, B = "instrumentation", $ = "private-next-pages", R = "private-dot-next", ee = "private-next-root-dir", Q = "private-next-app-dir", I = "private-next-rsc-mod-ref-proxy", V = "private-next-rsc-action-validate", q = "private-next-rsc-server-reference", X = "private-next-rsc-cache-wrapper", ae = "private-next-rsc-track-dynamic-import", G = "private-next-rsc-action-encryption", H = "private-next-rsc-action-client-wrapper", U = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", te = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", W = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", se = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", he = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", Y = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", ie = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", ue = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", we = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", je = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", Pe = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', Xe = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", Re = [
27377
+ const n = "text/plain", r = "text/html; charset=utf-8", i = "application/json; charset=utf-8", a = "nxtP", o = "nxtI", s = "x-matched-path", l = "x-prerender-revalidate", u = "x-prerender-revalidate-if-generated", d = ".segments", f = ".segment.rsc", p = ".rsc", h = ".action", m = ".json", y = ".meta", g = ".body", b = "x-nextjs-deployment-id", v = "x-next-cache-tags", _ = "x-next-revalidated-tags", x = "x-next-revalidate-tag-token", w = "next-resume", k = "x-next-resume-state-length", S = 128, C = 256, T = 1024, j = "_N_T_", E = "_N_RP_", P = 31536e3, M = 4294967294, O = "middleware", D = `(?:src/)?${O}`, L = "proxy", z = `(?:src/)?${L}`, B = "instrumentation", $ = "private-next-pages", R = "private-dot-next", ee = "private-next-root-dir", Q = "private-next-app-dir", I = "private-next-rsc-mod-ref-proxy", V = "private-next-rsc-action-validate", q = "private-next-rsc-server-reference", X = "private-next-rsc-cache-wrapper", ae = "private-next-rsc-track-dynamic-import", G = "private-next-rsc-action-encryption", H = "private-next-rsc-action-client-wrapper", U = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", te = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", W = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", se = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", he = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", Y = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", ie = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", ue = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", we = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", je = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", Pe = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', Ye = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", Re = [
27378
27378
  "app",
27379
27379
  "pages",
27380
27380
  "components",
@@ -28701,14 +28701,14 @@ function Nme() {
28701
28701
  ae && (ie = o.default.Children.only(M));
28702
28702
  const ue = ae ? ie && typeof ie == "object" && ie.ref : P, [we, je, Pe] = (0, h.useIntersection)({
28703
28703
  rootMargin: "200px"
28704
- }), Xe = o.default.useCallback((pe) => {
28704
+ }), Ye = o.default.useCallback((pe) => {
28705
28705
  (Y.current !== se || he.current !== W) && (Pe(), Y.current = se, he.current = W), we(pe);
28706
28706
  }, [
28707
28707
  se,
28708
28708
  W,
28709
28709
  Pe,
28710
28710
  we
28711
- ]), Re = (0, g.useMergedRef)(Xe, ue);
28711
+ ]), Re = (0, g.useMergedRef)(Ye, ue);
28712
28712
  o.default.useEffect(() => {
28713
28713
  U && (!je || !te || v(U, W, se, {
28714
28714
  // dedupe across appear/disappear of the Link.
@@ -30094,7 +30094,7 @@ function h0e({
30094
30094
  open: t,
30095
30095
  onOpenChange: n
30096
30096
  }) {
30097
- const { t: r } = ce(), i = Ze(), a = Ye(), [o, s] = A.useState(""), [l, u] = A.useState(null), d = d0e(e), { data: f = [], isLoading: p } = tt({
30097
+ const { t: r } = ce(), i = Ze(), a = Xe(), [o, s] = A.useState(""), [l, u] = A.useState(null), d = d0e(e), { data: f = [], isLoading: p } = tt({
30098
30098
  queryKey: d,
30099
30099
  queryFn: () => i.listIncomingWebhooks(e),
30100
30100
  enabled: t && !!i.listIncomingWebhooks
@@ -30837,7 +30837,7 @@ function T0e({
30837
30837
  canManage: e,
30838
30838
  onToast: t
30839
30839
  }) {
30840
- const { t: n } = ce(), r = Ze(), i = Ye(), [a, o] = A.useState(null), { data: s, isLoading: l, isError: u } = tt({
30840
+ const { t: n } = ce(), r = Ze(), i = Xe(), [a, o] = A.useState(null), { data: s, isLoading: l, isError: u } = tt({
30841
30841
  queryKey: Z.appSenders(),
30842
30842
  queryFn: () => r.listAppSenders?.() ?? Promise.reject(new Error("unavailable")),
30843
30843
  enabled: !!r.listAppSenders
@@ -31034,7 +31034,7 @@ function M0e({
31034
31034
  function D0e({
31035
31035
  onToast: e
31036
31036
  }) {
31037
- const { t } = ce(), n = Ze(), r = Ye(), [i, a] = A.useState(null), { data: o, isLoading: s, isError: l } = tt({
31037
+ const { t } = ce(), n = Ze(), r = Xe(), [i, a] = A.useState(null), { data: o, isLoading: s, isError: l } = tt({
31038
31038
  queryKey: Z.sendDelegations(),
31039
31039
  queryFn: () => n.listSendDelegations?.() ?? Promise.reject(new Error("unavailable")),
31040
31040
  enabled: !!n.listSendDelegations
@@ -31251,7 +31251,7 @@ function q0e({
31251
31251
  canManage: e,
31252
31252
  onToast: t
31253
31253
  }) {
31254
- const { t: n } = ce(), r = Ze(), i = Ye(), { data: a, isLoading: o, isError: s } = tt({
31254
+ const { t: n } = ce(), r = Ze(), i = Xe(), { data: a, isLoading: o, isError: s } = tt({
31255
31255
  queryKey: Z.memberMessagingPolicy(),
31256
31256
  queryFn: () => r.getMemberMessagingPolicy?.() ?? Promise.reject(new Error("unavailable"))
31257
31257
  }), [l, u] = A.useState(
@@ -32575,7 +32575,7 @@ function bz({
32575
32575
  }
32576
32576
  const Pe = (je ? "" : H.current.text) + Y.key.toLowerCase();
32577
32577
  H.current = { text: Pe, at: we };
32578
- const Xe = [...Pe].every((pe) => pe === Pe[0]), Re = Xe ? Pe.slice(0, 1) : Pe, Me = Xe || R < 0 ? R : R - 1;
32578
+ const Ye = [...Pe].every((pe) => pe === Pe[0]), Re = Ye ? Pe.slice(0, 1) : Pe, Me = Ye || R < 0 ? R : R - 1;
32579
32579
  for (let pe = 1; pe <= E.length; pe++) {
32580
32580
  const ve = (Me + pe + E.length) % E.length, K = E[ve];
32581
32581
  if (K && !K.disabled && K.label.toLowerCase().startsWith(Re)) {
@@ -33663,7 +33663,7 @@ function L9({
33663
33663
  }
33664
33664
  const $x = [...Z.today(), "panel"];
33665
33665
  function Mk() {
33666
- const e = Ye(), { data: t = "feed" } = tt({
33666
+ const e = Xe(), { data: t = "feed" } = tt({
33667
33667
  queryKey: $x,
33668
33668
  queryFn: () => e.getQueryData($x) ?? "feed",
33669
33669
  initialData: "feed",
@@ -33685,7 +33685,7 @@ function G0() {
33685
33685
  }
33686
33686
  const zx = (e) => [...Z.all(), "canvas-panel", e];
33687
33687
  function Dk(e) {
33688
- const t = Ye(), { data: n = null } = tt({
33688
+ const t = Xe(), { data: n = null } = tt({
33689
33689
  queryKey: zx(e),
33690
33690
  queryFn: () => t.getQueryData(zx(e)) ?? null,
33691
33691
  initialData: null,
@@ -33746,7 +33746,7 @@ function $9({
33746
33746
  menu: e = [],
33747
33747
  onShowList: t
33748
33748
  }) {
33749
- const { t: n } = ce(), r = Kt(), i = r.currentRoute, a = "conversationId" in i ? i.conversationId : 0, { data: o } = Ul(a), s = u1e(i), l = l1e(i.view === "today"), u = G0(), d = i.view === "outbound" && !!u?.channels.length, f = i.view === "outbound-new" && u?.canView ? [
33749
+ const { t: n } = ce(), r = qt(), i = r.currentRoute, a = "conversationId" in i ? i.conversationId : 0, { data: o } = Ul(a), s = u1e(i), l = l1e(i.view === "today"), u = G0(), d = i.view === "outbound" && !!u?.channels.length, f = i.view === "outbound-new" && u?.canView ? [
33750
33750
  {
33751
33751
  id: "outbound-history",
33752
33752
  label: n("outbound_history"),
@@ -33907,12 +33907,12 @@ function d1e() {
33907
33907
  }
33908
33908
  }
33909
33909
  else if (X?.keys) {
33910
- var Xe = X.keys, Re = Xe.length;
33910
+ var Ye = X.keys, Re = Ye.length;
33911
33911
  e: for (var ue = 0; ue < he; ++ue) {
33912
33912
  var we = q[ue];
33913
33913
  {
33914
33914
  for (var Me = 0, pe = 0; pe < Re; ++pe) {
33915
- var ie = Xe[pe], je = D(we, ie);
33915
+ var ie = Ye[pe], je = D(we, ie);
33916
33916
  if (!je) {
33917
33917
  M[pe] = ee;
33918
33918
  continue;
@@ -34105,10 +34105,10 @@ function d1e() {
34105
34105
  }
34106
34106
  var ue = 0, we = !1, je = 0, Pe = q._nextBeginningIndexes;
34107
34107
  Pe === R && (Pe = q._nextBeginningIndexes = w(q.target)), he = C[0] === 0 ? 0 : Pe[C[0] - 1];
34108
- var Xe = 0;
34108
+ var Ye = 0;
34109
34109
  if (he !== se) for (; ; )
34110
34110
  if (he >= se) {
34111
- if (ue <= 0 || (++Xe, Xe > 200)) break;
34111
+ if (ue <= 0 || (++Ye, Ye > 200)) break;
34112
34112
  --ue;
34113
34113
  var Re = T[--je];
34114
34114
  he = Pe[Re];
@@ -34181,9 +34181,9 @@ function d1e() {
34181
34181
  break;
34182
34182
  }
34183
34183
  if (je) {
34184
- var Pe = we[we.len - 1] + 1, Xe = q._nextBeginningIndexes[Pe - 1];
34185
- for (let K = Pe - 1; K >= 0 && Xe === q._nextBeginningIndexes[K]; K--)
34186
- q._nextBeginningIndexes[K] = Pe, j[se * 2 + 0] = K, j[se * 2 + 1] = Xe, se++;
34184
+ var Pe = we[we.len - 1] + 1, Ye = q._nextBeginningIndexes[Pe - 1];
34185
+ for (let K = Pe - 1; K >= 0 && Ye === q._nextBeginningIndexes[K]; K--)
34186
+ q._nextBeginningIndexes[K] = Pe, j[se * 2 + 0] = K, j[se * 2 + 1] = Ye, se++;
34187
34187
  }
34188
34188
  }
34189
34189
  G += H._score / W, P[pe] = H._score / W, H._indexes[0] < U && (G -= (U - H._indexes[0]) * 2), U = H._indexes[0];
@@ -36828,7 +36828,7 @@ function aye({
36828
36828
  onOpenChange: t,
36829
36829
  onToast: n
36830
36830
  }) {
36831
- const r = Ze(), { auth: i } = Mn(), a = Kt(), { data: o = W9 } = tt({
36831
+ const r = Ze(), { auth: i } = Mn(), a = qt(), { data: o = W9 } = tt({
36832
36832
  queryKey: ["messaging", "channel-filter-options"],
36833
36833
  queryFn: () => r.getChannelFilterOptions?.() ?? Promise.resolve(W9),
36834
36834
  enabled: e && !!r.getChannelFilterOptions,
@@ -37043,7 +37043,7 @@ function Br({
37043
37043
  action: u,
37044
37044
  empty: d
37045
37045
  }) {
37046
- const { t: f } = ce(), { auth: p } = Mn(), { currentRoute: h } = Kt(), [m, y] = Xi(
37046
+ const { t: f } = ce(), { auth: p } = Mn(), { currentRoute: h } = qt(), [m, y] = Xi(
37047
37047
  `messaging-show:${p.recipientId ?? "guest"}:${t}`,
37048
37048
  {
37049
37049
  defaultValue: Hv.defaultMode,
@@ -37191,7 +37191,7 @@ function fye({
37191
37191
  function pye({
37192
37192
  item: e
37193
37193
  }) {
37194
- const { t } = ce(), n = Kt(), r = h$(), i = e.purpose === "support", a = e.unread ? "read" : "unread", o = r.available.has(a) ? [
37194
+ const { t } = ce(), n = qt(), r = h$(), i = e.purpose === "support", a = e.unread ? "read" : "unread", o = r.available.has(a) ? [
37195
37195
  {
37196
37196
  id: a,
37197
37197
  label: t(e.unread ? "sidebar_mark_read" : "sidebar_mark_unread"),
@@ -37261,7 +37261,7 @@ function mye({ bot: e }) {
37261
37261
  function vr({
37262
37262
  item: e
37263
37263
  }) {
37264
- const { t } = ce(), { auth: n } = Mn(), r = Kt(), i = h$();
37264
+ const { t } = ce(), { auth: n } = Mn(), r = qt(), i = h$();
37265
37265
  if (!n.currentUser) return null;
37266
37266
  const a = e.recipients.filter(
37267
37267
  (m) => !T0(
@@ -37333,7 +37333,7 @@ function yye({
37333
37333
  renderLockedDownlineItem: v,
37334
37334
  searching: _ = !1
37335
37335
  }) {
37336
- const { t: x } = ce(), w = Kt(), k = a.filter((O) => {
37336
+ const { t: x } = ce(), w = qt(), k = a.filter((O) => {
37337
37337
  const D = g?.id === O.id;
37338
37338
  return O.recipients.length > 0 || D && !b && v;
37339
37339
  }), S = [
@@ -37666,7 +37666,7 @@ function _ye(e) {
37666
37666
  function wye({
37667
37667
  conversations: e
37668
37668
  }) {
37669
- const { t } = ce(), { data: n } = $fe(), r = Kt(), i = Nz(), a = Ye(), [o, s] = A.useState(!0);
37669
+ const { t } = ce(), { data: n } = $fe(), r = qt(), i = Nz(), a = Xe(), [o, s] = A.useState(!0);
37670
37670
  return !n || n.total_unread === 0 ? null : /* @__PURE__ */ c.jsx(
37671
37671
  xz,
37672
37672
  {
@@ -37706,7 +37706,7 @@ function wye({
37706
37706
  );
37707
37707
  }
37708
37708
  function kye() {
37709
- const { t: e } = ce(), t = Kt(), { data: n } = P0(), r = c$();
37709
+ const { t: e } = ce(), t = qt(), { data: n } = P0(), r = c$();
37710
37710
  if (!n?.available) return null;
37711
37711
  const i = t.currentRoute.view === "today";
37712
37712
  return /* @__PURE__ */ c.jsx("ul", { className: "mb-1", children: /* @__PURE__ */ c.jsx(
@@ -37722,7 +37722,7 @@ function kye() {
37722
37722
  ) });
37723
37723
  }
37724
37724
  function Sye() {
37725
- const { t: e } = ce(), t = Kt(), n = G0();
37725
+ const { t: e } = ce(), t = qt(), n = G0();
37726
37726
  if (!n || !n.canView && !n.channels.length)
37727
37727
  return null;
37728
37728
  const r = t.currentRoute.view;
@@ -37776,7 +37776,7 @@ function Eye({
37776
37776
  weBots: u,
37777
37777
  listNotice: d
37778
37778
  }) {
37779
- const { t: f } = ce(), p = Kt(), h = Tz(), [m, y] = A.useState(!1), [g, b] = A.useState(""), [v, _] = A.useState(!1), [x, w] = A.useState(null), [k, S] = A.useState(null), [C, T] = A.useState(
37779
+ const { t: f } = ce(), p = qt(), h = Tz(), [m, y] = A.useState(!1), [g, b] = A.useState(""), [v, _] = A.useState(!1), [x, w] = A.useState(null), [k, S] = A.useState(null), [C, T] = A.useState(
37780
37780
  null
37781
37781
  ), j = A.useMemo(
37782
37782
  () => ({
@@ -37845,7 +37845,7 @@ function Eye({
37845
37845
  we.isLoading,
37846
37846
  je
37847
37847
  ]);
37848
- const Pe = [], Xe = [], Re = [], Me = [], pe = [], ve = [], K = [], de = [], Ae = [], De = [], Ve = [], ut = g.trim().toLowerCase(), Fe = G.filter(
37848
+ const Pe = [], Ye = [], Re = [], Me = [], pe = [], ve = [], K = [], de = [], Ae = [], De = [], Ve = [], ut = g.trim().toLowerCase(), Fe = G.filter(
37849
37849
  (Ie) => !ut || [Ie.name, Ie.host_company.name].join(" ").toLowerCase().includes(ut)
37850
37850
  ), Be = (Ie) => !ut || [
37851
37851
  Ie.name,
@@ -37870,7 +37870,7 @@ function Eye({
37870
37870
  Pe.push(Ie);
37871
37871
  break;
37872
37872
  case "email":
37873
- Xe.push(Ie);
37873
+ Ye.push(Ie);
37874
37874
  break;
37875
37875
  case "public-channel":
37876
37876
  Re.push(Ie);
@@ -38000,7 +38000,7 @@ function Eye({
38000
38000
  yye,
38001
38001
  {
38002
38002
  smsEntries: Pe,
38003
- emailEntries: Xe,
38003
+ emailEntries: Ye,
38004
38004
  publicChannels: Re,
38005
38005
  privateChannels: Me,
38006
38006
  broadcastChannels: pe,
@@ -38642,7 +38642,7 @@ function Uye(e) {
38642
38642
  };
38643
38643
  }
38644
38644
  function Hk() {
38645
- const e = Nt(), t = Ye();
38645
+ const e = Nt(), t = Xe();
38646
38646
  return {
38647
38647
  api: e,
38648
38648
  queryClient: t,
@@ -38680,7 +38680,7 @@ function Wye(e) {
38680
38680
  });
38681
38681
  }
38682
38682
  function Kye(e) {
38683
- const t = Nt(), n = Ye();
38683
+ const t = Nt(), n = Xe();
38684
38684
  return et({
38685
38685
  mutationFn: () => t.deleteBot(e),
38686
38686
  onSuccess: () => {
@@ -38693,7 +38693,7 @@ function Kye(e) {
38693
38693
  });
38694
38694
  }
38695
38695
  function zz() {
38696
- const e = Nt(), t = Ye();
38696
+ const e = Nt(), t = Xe();
38697
38697
  return et({
38698
38698
  mutationFn: (n) => e.openDirectConversation(n),
38699
38699
  onSuccess: (n, r) => {
@@ -38706,7 +38706,7 @@ function zz() {
38706
38706
  });
38707
38707
  }
38708
38708
  function Gye() {
38709
- const e = Nt(), t = Ye();
38709
+ const e = Nt(), t = Xe();
38710
38710
  return et({
38711
38711
  mutationFn: ({ botId: n, conversationId: r }) => e.seatInConversation(n, r),
38712
38712
  onSettled: (n, r, { botId: i }) => {
@@ -38840,7 +38840,7 @@ function Wk() {
38840
38840
  });
38841
38841
  }
38842
38842
  function Zye() {
38843
- const e = Nt(), t = Ye(), n = Je.connectors(e.cacheScope);
38843
+ const e = Nt(), t = Xe(), n = Je.connectors(e.cacheScope);
38844
38844
  return et({
38845
38845
  mutationFn: ({ key: r, enabled: i }) => e.setConnectorAllowed(r, i),
38846
38846
  onSuccess: (r) => t.setQueryData(n, r),
@@ -38857,7 +38857,7 @@ function Fz() {
38857
38857
  });
38858
38858
  }
38859
38859
  function Jl() {
38860
- const e = Nt(), t = Ye(), n = Je.connections(e.cacheScope);
38860
+ const e = Nt(), t = Xe(), n = Je.connections(e.cacheScope);
38861
38861
  return {
38862
38862
  key: n,
38863
38863
  replace: (r) => t.setQueryData(n, (i) => i ? i.some((a) => a.id === r.id) ? i.map(
@@ -38906,7 +38906,7 @@ function rbe(e) {
38906
38906
  });
38907
38907
  }
38908
38908
  function qz(e) {
38909
- const t = Nt(), n = Ye(), { key: r, reload: i } = Jl();
38909
+ const t = Nt(), n = Xe(), { key: r, reload: i } = Jl();
38910
38910
  return et({
38911
38911
  mutationFn: () => t.deleteConnection(e),
38912
38912
  onSuccess: () => {
@@ -39934,7 +39934,7 @@ function wbe(e, t) {
39934
39934
  });
39935
39935
  }
39936
39936
  function kbe(e) {
39937
- const t = Nt(), n = Ye();
39937
+ const t = Nt(), n = Xe();
39938
39938
  return et({
39939
39939
  mutationFn: (r) => t.changeOwner(e, r),
39940
39940
  onSuccess: (r) => {
@@ -40317,7 +40317,7 @@ function Mbe(e) {
40317
40317
  });
40318
40318
  }
40319
40319
  function Dbe(e) {
40320
- const t = Nt(), n = Ye(), r = Je.stewards(t.cacheScope, e);
40320
+ const t = Nt(), n = Xe(), r = Je.stewards(t.cacheScope, e);
40321
40321
  return et({
40322
40322
  mutationFn: (i) => t.removeSteward(e, i),
40323
40323
  onSuccess: (i, a) => {
@@ -40667,10 +40667,10 @@ function $be({
40667
40667
  open: n,
40668
40668
  onOpenChange: r
40669
40669
  }) {
40670
- const { t: i } = dt(), [a, o] = A.useState(!1), s = n ?? a, l = (f) => {
40671
- o(f), r?.(f);
40672
- }, { bots: u } = rF(), d = u.find((f) => f.recipientId === e);
40673
- return d ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
40670
+ const { t: i } = dt(), [a, o] = A.useState(!1), s = n ?? a, l = (h) => {
40671
+ o(h), r?.(h);
40672
+ }, { bots: u } = rF(), d = Xe(), f = qt(), p = u.find((h) => h.recipientId === e);
40673
+ return p ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
40674
40674
  /* @__PURE__ */ c.jsxs(
40675
40675
  le,
40676
40676
  {
@@ -40695,15 +40695,17 @@ function $be({
40695
40695
  children: s ? /* @__PURE__ */ c.jsx("div", { className: "px-4 py-4", children: /* @__PURE__ */ c.jsx(
40696
40696
  Ibe,
40697
40697
  {
40698
- botId: d.id,
40698
+ botId: p.id,
40699
40699
  canUpdate: t.canUpdate,
40700
40700
  canDelete: t.canDelete,
40701
40701
  onBack: () => l(!1),
40702
40702
  onDeleted: () => {
40703
- l(!1), t.onDeleted?.();
40703
+ l(!1), d.invalidateQueries({
40704
+ queryKey: Z.listConversations()
40705
+ }), f.navigate({ view: "index" }), t.onDeleted?.();
40704
40706
  }
40705
40707
  },
40706
- d.id
40708
+ p.id
40707
40709
  ) }) : null
40708
40710
  }
40709
40711
  )
@@ -41296,7 +41298,7 @@ function lve({
41296
41298
  onToast: t,
41297
41299
  onSaved: n
41298
41300
  }) {
41299
- const { t: r } = ce(), i = Ye(), { data: a, isLoading: o, isError: s } = tt({
41301
+ const { t: r } = ce(), i = Xe(), { data: a, isLoading: o, isError: s } = tt({
41300
41302
  queryKey: nve(),
41301
41303
  queryFn: () => e.fetchMyProfile?.() ?? Promise.reject(new Error("unavailable")),
41302
41304
  persister: void 0,
@@ -41519,7 +41521,7 @@ function cve() {
41519
41521
  return A.useContext(lF);
41520
41522
  }
41521
41523
  function uF(e) {
41522
- const t = Ye();
41524
+ const t = Xe();
41523
41525
  return () => Promise.all([
41524
41526
  t.invalidateQueries({
41525
41527
  queryKey: Z.listMessages(e)
@@ -45758,7 +45760,7 @@ function i_e(e) {
45758
45760
  image: a(we),
45759
45761
  label: o,
45760
45762
  link: a(je),
45761
- listItem: a(Xe),
45763
+ listItem: a(Ye),
45762
45764
  listItemValue: p,
45763
45765
  listOrdered: a(Pe, f),
45764
45766
  listUnordered: a(Pe),
@@ -46208,7 +46210,7 @@ function i_e(e) {
46208
46210
  children: []
46209
46211
  };
46210
46212
  }
46211
- function Xe(K) {
46213
+ function Ye(K) {
46212
46214
  return {
46213
46215
  type: "listItem",
46214
46216
  spread: K._spread,
@@ -51403,8 +51405,8 @@ function uke({
51403
51405
  }
51404
51406
  )
51405
51407
  ] });
51406
- const Y = e === "line", ie = p === !0 || p === "x", ue = p === !0 || p === "y", we = (me) => Wh(me, R.indexOf(me)), je = _?.color ?? v6[R.length] ?? Fs, Pe = Zwe(H, Math.max(2, Math.floor(E / 84))), Xe = q ? [...t, ...ae] : t, Re = Xe.flatMap((me) => I.map((ot) => jt(me, ot.key))), Me = Math.max(
51407
- ...Xe.map(
51408
+ const Y = e === "line", ie = p === !0 || p === "x", ue = p === !0 || p === "y", we = (me) => Wh(me, R.indexOf(me)), je = _?.color ?? v6[R.length] ?? Fs, Pe = Zwe(H, Math.max(2, Math.floor(E / 84))), Ye = q ? [...t, ...ae] : t, Re = Ye.flatMap((me) => I.map((ot) => jt(me, ot.key))), Me = Math.max(
51409
+ ...Ye.map(
51408
51410
  (me) => d ? I.reduce((ot, pt) => ot + jt(me, pt.key), 0) : Math.max(...I.map((ot) => jt(me, ot.key)))
51409
51411
  )
51410
51412
  ), pe = eke(
@@ -52053,7 +52055,7 @@ const _ke = (e, t) => ["we-bots", e, "approval", t];
52053
52055
  function wke({
52054
52056
  approvalId: e
52055
52057
  }) {
52056
- const t = Gd(), { t: n } = ce(), r = Ye(), i = _ke(t?.cacheScope ?? "none", e), a = tt({
52058
+ const t = Gd(), { t: n } = ce(), r = Xe(), i = _ke(t?.cacheScope ?? "none", e), a = tt({
52057
52059
  queryKey: i,
52058
52060
  queryFn: ({ signal: m }) => t.fetchApproval(e, m),
52059
52061
  enabled: t !== null,
@@ -52531,7 +52533,7 @@ function XB(e, t, n) {
52531
52533
  const r = Math.max(t - o6e, 0);
52532
52534
  return SB(n - e(r), t - r);
52533
52535
  }
52534
- const Vt = {
52536
+ const Ht = {
52535
52537
  // Default spring physics
52536
52538
  stiffness: 100,
52537
52539
  damping: 10,
@@ -52560,9 +52562,9 @@ const Vt = {
52560
52562
  minDamping: 0.05,
52561
52563
  maxDamping: 1
52562
52564
  }, d2 = 1e-3;
52563
- function s6e({ duration: e = Vt.duration, bounce: t = Vt.bounce, velocity: n = Vt.velocity, mass: r = Vt.mass }) {
52565
+ function s6e({ duration: e = Ht.duration, bounce: t = Ht.bounce, velocity: n = Ht.velocity, mass: r = Ht.mass }) {
52564
52566
  let i, a, o = 1 - t;
52565
- o = Yi(Vt.minDamping, Vt.maxDamping, o), e = Yi(Vt.minDuration, Vt.maxDuration, /* @__PURE__ */ Er(e)), o < 1 ? (i = (u) => {
52567
+ o = Yi(Ht.minDamping, Ht.maxDamping, o), e = Yi(Ht.minDuration, Ht.maxDuration, /* @__PURE__ */ Er(e)), o < 1 ? (i = (u) => {
52566
52568
  const d = u * o, f = d * e, p = d - n, h = l4(u, o), m = Math.exp(-f);
52567
52569
  return d2 - p / h * m;
52568
52570
  }, a = (u) => {
@@ -52578,8 +52580,8 @@ function s6e({ duration: e = Vt.duration, bounce: t = Vt.bounce, velocity: n = V
52578
52580
  const s = 5 / e, l = u6e(i, a, s);
52579
52581
  if (e = /* @__PURE__ */ Zr(e), isNaN(l))
52580
52582
  return {
52581
- stiffness: Vt.stiffness,
52582
- damping: Vt.damping,
52583
+ stiffness: Ht.stiffness,
52584
+ damping: Ht.damping,
52583
52585
  duration: e
52584
52586
  };
52585
52587
  {
@@ -52607,10 +52609,10 @@ function eO(e, t) {
52607
52609
  }
52608
52610
  function f6e(e) {
52609
52611
  let t = {
52610
- velocity: Vt.velocity,
52611
- stiffness: Vt.stiffness,
52612
- damping: Vt.damping,
52613
- mass: Vt.mass,
52612
+ velocity: Ht.velocity,
52613
+ stiffness: Ht.stiffness,
52614
+ damping: Ht.damping,
52615
+ mass: Ht.mass,
52614
52616
  isResolvedFromDuration: !1,
52615
52617
  ...e
52616
52618
  };
@@ -52619,7 +52621,7 @@ function f6e(e) {
52619
52621
  const n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * Yi(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
52620
52622
  t = {
52621
52623
  ...t,
52622
- mass: Vt.mass,
52624
+ mass: Ht.mass,
52623
52625
  stiffness: i,
52624
52626
  damping: a
52625
52627
  };
@@ -52628,12 +52630,12 @@ function f6e(e) {
52628
52630
  t = {
52629
52631
  ...t,
52630
52632
  ...n,
52631
- mass: Vt.mass
52633
+ mass: Ht.mass
52632
52634
  }, t.isResolvedFromDuration = !0;
52633
52635
  }
52634
52636
  return t;
52635
52637
  }
52636
- function ud(e = Vt.visualDuration, t = Vt.bounce) {
52638
+ function ud(e = Ht.visualDuration, t = Ht.bounce) {
52637
52639
  const n = typeof e != "object" ? {
52638
52640
  visualDuration: e,
52639
52641
  keyframes: [0, 1],
@@ -52644,7 +52646,7 @@ function ud(e = Vt.visualDuration, t = Vt.bounce) {
52644
52646
  ...n,
52645
52647
  velocity: -/* @__PURE__ */ Er(n.velocity || 0)
52646
52648
  }), m = p || 0, y = u / (2 * Math.sqrt(l * d)), g = o - a, b = /* @__PURE__ */ Er(Math.sqrt(l / d)), v = Math.abs(g) < 5;
52647
- r || (r = v ? Vt.restSpeed.granular : Vt.restSpeed.default), i || (i = v ? Vt.restDelta.granular : Vt.restDelta.default);
52649
+ r || (r = v ? Ht.restSpeed.granular : Ht.restSpeed.default), i || (i = v ? Ht.restDelta.granular : Ht.restDelta.default);
52648
52650
  let _;
52649
52651
  if (y < 1) {
52650
52652
  const w = l4(b, y);
@@ -57744,7 +57746,7 @@ function n8({
57744
57746
  inThread: m = !1,
57745
57747
  dayDividers: y = !1
57746
57748
  }) {
57747
- const { t: g } = ce(), b = Tz() === !0, [v, _] = A.useState(!1), x = Ye(), { react: w, unreact: k } = gpe(), S = Ze(), C = (ie) => {
57749
+ const { t: g } = ce(), b = Tz() === !0, [v, _] = A.useState(!1), x = Xe(), { react: w, unreact: k } = gpe(), S = Ze(), C = (ie) => {
57748
57750
  w({
57749
57751
  conversationId: e.id,
57750
57752
  messageId: t.id,
@@ -58611,7 +58613,7 @@ const E4 = (e, t) => {
58611
58613
  });
58612
58614
  };
58613
58615
  function qje(e) {
58614
- const { data: t } = Ul(e), n = Ye(), r = !e, i = A.useRef(/* @__PURE__ */ new Map()), a = () => {
58616
+ const { data: t } = Ul(e), n = Xe(), r = !e, i = A.useRef(/* @__PURE__ */ new Map()), a = () => {
58615
58617
  const b = t?.draft_message ?? void 0;
58616
58618
  return {
58617
58619
  body: b?.body || "",
@@ -58880,7 +58882,7 @@ function Kje() {
58880
58882
  }, []), e;
58881
58883
  }
58882
58884
  function Gje(e, t) {
58883
- const n = Ye(), r = Ze();
58885
+ const n = Xe(), r = Ze();
58884
58886
  return et({
58885
58887
  mutationFn: async () => {
58886
58888
  if (!e)
@@ -59093,7 +59095,7 @@ Vn.prototype = {
59093
59095
  return i.j[e] = o, o;
59094
59096
  }
59095
59097
  };
59096
- const at = (e, t, n, r, i) => e.ta(t, n, r, i), Ut = (e, t, n, r, i) => e.tr(t, n, r, i), _N = (e, t, n, r, i) => e.ts(t, n, r, i), ge = (e, t, n, r, i) => e.tt(t, n, r, i), Di = "WORD", M4 = "UWORD", AU = "ASCIINUMERICAL", CU = "ALPHANUMERICAL", hd = "LOCALHOST", D4 = "TLD", R4 = "UTLD", Tp = "SCHEME", bs = "SLASH_SCHEME", i8 = "NUM", I4 = "WS", a8 = "NL", dc = "OPENBRACE", fc = "CLOSEBRACE", tm = "OPENBRACKET", nm = "CLOSEBRACKET", rm = "OPENPAREN", im = "CLOSEPAREN", am = "OPENANGLEBRACKET", om = "CLOSEANGLEBRACKET", sm = "FULLWIDTHLEFTPAREN", lm = "FULLWIDTHRIGHTPAREN", um = "LEFTCORNERBRACKET", cm = "RIGHTCORNERBRACKET", dm = "LEFTWHITECORNERBRACKET", fm = "RIGHTWHITECORNERBRACKET", pm = "FULLWIDTHLESSTHAN", hm = "FULLWIDTHGREATERTHAN", mm = "AMPERSAND", gm = "APOSTROPHE", ym = "ASTERISK", ha = "AT", bm = "BACKSLASH", vm = "BACKTICK", xm = "CARET", ya = "COLON", o8 = "COMMA", _m = "DOLLAR", ai = "DOT", wm = "EQUALS", s8 = "EXCLAMATION", wr = "HYPHEN", pc = "PERCENT", km = "PIPE", Sm = "PLUS", jm = "POUND", hc = "QUERY", l8 = "QUOTE", EU = "FULLWIDTHMIDDLEDOT", u8 = "SEMI", oi = "SLASH", mc = "TILDE", Am = "UNDERSCORE", TU = "EMOJI", Cm = "SYM";
59098
+ const at = (e, t, n, r, i) => e.ta(t, n, r, i), Vt = (e, t, n, r, i) => e.tr(t, n, r, i), _N = (e, t, n, r, i) => e.ts(t, n, r, i), ge = (e, t, n, r, i) => e.tt(t, n, r, i), Di = "WORD", M4 = "UWORD", AU = "ASCIINUMERICAL", CU = "ALPHANUMERICAL", hd = "LOCALHOST", D4 = "TLD", R4 = "UTLD", Tp = "SCHEME", bs = "SLASH_SCHEME", i8 = "NUM", I4 = "WS", a8 = "NL", dc = "OPENBRACE", fc = "CLOSEBRACE", tm = "OPENBRACKET", nm = "CLOSEBRACKET", rm = "OPENPAREN", im = "CLOSEPAREN", am = "OPENANGLEBRACKET", om = "CLOSEANGLEBRACKET", sm = "FULLWIDTHLEFTPAREN", lm = "FULLWIDTHRIGHTPAREN", um = "LEFTCORNERBRACKET", cm = "RIGHTCORNERBRACKET", dm = "LEFTWHITECORNERBRACKET", fm = "RIGHTWHITECORNERBRACKET", pm = "FULLWIDTHLESSTHAN", hm = "FULLWIDTHGREATERTHAN", mm = "AMPERSAND", gm = "APOSTROPHE", ym = "ASTERISK", ha = "AT", bm = "BACKSLASH", vm = "BACKTICK", xm = "CARET", ya = "COLON", o8 = "COMMA", _m = "DOLLAR", ai = "DOT", wm = "EQUALS", s8 = "EXCLAMATION", wr = "HYPHEN", pc = "PERCENT", km = "PIPE", Sm = "PLUS", jm = "POUND", hc = "QUERY", l8 = "QUOTE", EU = "FULLWIDTHMIDDLEDOT", u8 = "SEMI", oi = "SLASH", mc = "TILDE", Am = "UNDERSCORE", TU = "EMOJI", Cm = "SYM";
59097
59099
  var PU = /* @__PURE__ */ Object.freeze({
59098
59100
  __proto__: null,
59099
59101
  ALPHANUMERICAL: CU,
@@ -59160,36 +59162,36 @@ function iAe(e = []) {
59160
59162
  Vn.groups = t;
59161
59163
  const n = new Vn();
59162
59164
  up == null && (up = kN(Yje)), cp == null && (cp = kN(Qje)), ge(n, "'", gm), ge(n, "{", dc), ge(n, "}", fc), ge(n, "[", tm), ge(n, "]", nm), ge(n, "(", rm), ge(n, ")", im), ge(n, "<", am), ge(n, ">", om), ge(n, "(", sm), ge(n, ")", lm), ge(n, "「", um), ge(n, "」", cm), ge(n, "『", dm), ge(n, "』", fm), ge(n, "<", pm), ge(n, ">", hm), ge(n, "&", mm), ge(n, "*", ym), ge(n, "@", ha), ge(n, "`", vm), ge(n, "^", xm), ge(n, ":", ya), ge(n, ",", o8), ge(n, "$", _m), ge(n, ".", ai), ge(n, "=", wm), ge(n, "!", s8), ge(n, "-", wr), ge(n, "%", pc), ge(n, "|", km), ge(n, "+", Sm), ge(n, "#", jm), ge(n, "?", hc), ge(n, '"', l8), ge(n, "/", oi), ge(n, ";", u8), ge(n, "~", mc), ge(n, "_", Am), ge(n, "\\", bm), ge(n, "・", EU);
59163
- const r = Ut(n, Ni, i8, {
59165
+ const r = Vt(n, Ni, i8, {
59164
59166
  [T4]: !0
59165
59167
  });
59166
- Ut(r, Ni, r);
59167
- const i = Ut(r, Oi, AU, {
59168
+ Vt(r, Ni, r);
59169
+ const i = Vt(r, Oi, AU, {
59168
59170
  [cc]: !0
59169
- }), a = Ut(r, Tu, CU, {
59171
+ }), a = Vt(r, Tu, CU, {
59170
59172
  [$u]: !0
59171
- }), o = Ut(n, Oi, Di, {
59173
+ }), o = Vt(n, Oi, Di, {
59172
59174
  [P4]: !0
59173
59175
  });
59174
- Ut(o, Ni, i), Ut(o, Oi, o), Ut(i, Ni, i), Ut(i, Oi, i);
59175
- const s = Ut(n, Tu, M4, {
59176
+ Vt(o, Ni, i), Vt(o, Oi, o), Vt(i, Ni, i), Vt(i, Oi, i);
59177
+ const s = Vt(n, Tu, M4, {
59176
59178
  [O4]: !0
59177
59179
  });
59178
- Ut(s, Oi), Ut(s, Ni, a), Ut(s, Tu, s), Ut(a, Ni, a), Ut(a, Oi), Ut(a, Tu, a);
59180
+ Vt(s, Oi), Vt(s, Ni, a), Vt(s, Tu, s), Vt(a, Ni, a), Vt(a, Oi), Vt(a, Tu, a);
59179
59181
  const l = ge(n, C2, a8, {
59180
59182
  [S2]: !0
59181
59183
  }), u = ge(n, wN, I4, {
59182
59184
  [S2]: !0
59183
- }), d = Ut(n, A2, I4, {
59185
+ }), d = Vt(n, A2, I4, {
59184
59186
  [S2]: !0
59185
59187
  });
59186
- ge(n, E2, d), ge(u, C2, l), ge(u, E2, d), Ut(u, A2, d), ge(d, wN), ge(d, C2), Ut(d, A2, d), ge(d, E2, d);
59187
- const f = Ut(n, j2, TU, {
59188
+ ge(n, E2, d), ge(u, C2, l), ge(u, E2, d), Vt(u, A2, d), ge(d, wN), ge(d, C2), Vt(d, A2, d), ge(d, E2, d);
59189
+ const f = Vt(n, j2, TU, {
59188
59190
  [jU]: !0
59189
59191
  });
59190
- ge(f, "#"), Ut(f, j2, f), ge(f, nAe, f);
59192
+ ge(f, "#"), Vt(f, j2, f), ge(f, nAe, f);
59191
59193
  const p = ge(f, rAe);
59192
- ge(p, "#"), Ut(p, j2, f);
59194
+ ge(p, "#"), Vt(p, j2, f);
59193
59195
  const h = [[Oi, o], [Ni, i]], m = [[Oi, null], [Tu, s], [Ni, a]];
59194
59196
  for (let y = 0; y < up.length; y++)
59195
59197
  ua(n, up[y], D4, Di, h);
@@ -68510,7 +68512,7 @@ function Eg({
68510
68512
  })
68511
68513
  )
68512
68514
  ]
68513
- })), je = U, Xe = !(se?.isEmpty ?? !0) || W.length > 0 || k;
68515
+ })), je = U, Ye = !(se?.isEmpty ?? !0) || W.length > 0 || k;
68514
68516
  return (
68515
68517
  // Mist's chat box (ChatComposer): one surface, its edge drawn by the
68516
68518
  // card shadow's own hairline, at a 20px corner concentric with the 28px
@@ -68562,9 +68564,9 @@ function Eg({
68562
68564
  canAttach: T,
68563
68565
  onSend: Y,
68564
68566
  onSchedule: ue,
68565
- messageHasContent: Xe,
68567
+ messageHasContent: Ye,
68566
68568
  canMentionUsers: !!a && a.length > 0,
68567
- canSendMessage: he && Xe && !te && !i,
68569
+ canSendMessage: he && Ye && !te && !i,
68568
68570
  mode: u,
68569
68571
  onSaveEdit: u === "editScheduled" ? Y : void 0,
68570
68572
  canSchedule: p,
@@ -68653,7 +68655,7 @@ function $Pe({
68653
68655
  renderComposer: l,
68654
68656
  canUpdate: u = !0
68655
68657
  }) {
68656
- const { t: d } = ce(), f = Ze(), p = Rz(), [h, m] = A.useState(!1), y = Ye(), g = xi({
68658
+ const { t: d } = ce(), f = Ze(), p = Rz(), [h, m] = A.useState(!1), y = Xe(), g = xi({
68657
68659
  queryKey: Z.threadReplies(e.id, t),
68658
68660
  queryFn: ({ pageParam: O }) => f.listThreadReplies?.(e.id, t, {
68659
68661
  ...O ? { before: O } : {}
@@ -69000,7 +69002,7 @@ function QPe({
69000
69002
  revision: n,
69001
69003
  onAsk: r
69002
69004
  }) {
69003
- const { t: i, locale: a } = ce(), o = Rz(), s = Nt(), l = Ye(), u = rF(), d = u.bots.find(
69005
+ const { t: i, locale: a } = ce(), o = Rz(), s = Nt(), l = Xe(), u = rF(), d = u.bots.find(
69004
69006
  (P) => P.recipientId === e.recipientId
69005
69007
  ), f = d?.id ?? "", p = !d && !u.error && (u.isLoading || u.hasNextPage), { hasNextPage: h, isFetchingNextPage: m, fetchNextPage: y, error: g } = u;
69006
69008
  A.useEffect(() => {
@@ -69363,7 +69365,7 @@ function Pp({
69363
69365
  canSchedule: p,
69364
69366
  canUpdate: h = !0
69365
69367
  }) {
69366
- const m = Ye(), { auth: y, renderImage: g } = Mn(), b = Kt(), v = Iz(), { t: _ } = ce(), x = g ?? iF, [w, k] = A.useState(!1), [S, C] = A.useState(null), T = A.useRef(0), j = A.useRef(!1), E = b.currentRoute, P = E.view === "new", M = E.view === "message", O = E.view === "at", { scrollTo: D, issueCorrection: L } = Fje(v), z = A.useRef(!1), B = A.useCallback(
69368
+ const m = Xe(), { auth: y, renderImage: g } = Mn(), b = qt(), v = Iz(), { t: _ } = ce(), x = g ?? iF, [w, k] = A.useState(!1), [S, C] = A.useState(null), T = A.useRef(0), j = A.useRef(!1), E = b.currentRoute, P = E.view === "new", M = E.view === "message", O = E.view === "at", { scrollTo: D, issueCorrection: L } = Fje(v), z = A.useRef(!1), B = A.useCallback(
69367
69369
  (Te, rt) => {
69368
69370
  if (Te) {
69369
69371
  b.navigate({
@@ -69422,12 +69424,12 @@ function Pp({
69422
69424
  return Te ? Number.parseInt(Te, 10) : Number.NaN;
69423
69425
  }
69424
69426
  return Number.NaN;
69425
- })(), Pe = Number.isFinite(je), Xe = A.useMemo(() => {
69427
+ })(), Pe = Number.isFinite(je), Ye = A.useMemo(() => {
69426
69428
  if (!Pe) return null;
69427
69429
  const Te = ue?.pages ?? [];
69428
69430
  for (const rt of Te) {
69429
- const qt = (rt?.[1]?.items || []).find((zr) => zr.id === je);
69430
- if (qt) return qt;
69431
+ const Ut = (rt?.[1]?.items || []).find((zr) => zr.id === je);
69432
+ if (Ut) return Ut;
69431
69433
  }
69432
69434
  return null;
69433
69435
  }, [Pe, je, ue]), [Re, Me] = A.useState(null), pe = y.currentUser, ve = y.isLoading, K = A.useMemo(() => pe?.recipientId ? {
@@ -69456,7 +69458,7 @@ function Pp({
69456
69458
  }), Fe = dOe({
69457
69459
  conversationId: e,
69458
69460
  editScheduledId: je,
69459
- editScheduledMessage: Xe,
69461
+ editScheduledMessage: Ye,
69460
69462
  onSuccess: () => {
69461
69463
  b.navigate({ view: "scheduled" }), o?.(_("scheduled_message_updated"), "success");
69462
69464
  },
@@ -69465,7 +69467,7 @@ function Pp({
69465
69467
  }
69466
69468
  }), { saveEdit: Be, sendTimeDialog: re } = rOe({
69467
69469
  messageId: je,
69468
- scheduledAt: Xe?.scheduled_at,
69470
+ scheduledAt: Ye?.scheduled_at,
69469
69471
  save: (Te) => h ? Fe.mutateAsync(Te) : Promise.reject(new Error("Messaging is read only"))
69470
69472
  }), { data: _e = !1 } = tt({
69471
69473
  queryKey: Z.newMessageFlag(e),
@@ -69519,8 +69521,8 @@ function Pp({
69519
69521
  }
69520
69522
  const rt = $.length;
69521
69523
  if (rt >= Te) {
69522
- const ct = rt - Te, qt = $[ct]?.id;
69523
- typeof qt == "number" ? (C(qt), j.current = !0, T.current = 0) : T.current = Te;
69524
+ const ct = rt - Te, Ut = $[ct]?.id;
69525
+ typeof Ut == "number" ? (C(Ut), j.current = !0, T.current = 0) : T.current = Te;
69524
69526
  } else
69525
69527
  T.current = Te;
69526
69528
  }, [U, $.length, $]), A.useEffect(() => {
@@ -69533,18 +69535,18 @@ function Pp({
69533
69535
  }, [$, $.length]);
69534
69536
  const He = A.useRef(/* @__PURE__ */ new Set());
69535
69537
  A.useEffect(() => {
69536
- const Te = /* @__PURE__ */ new Map(), rt = (ct, qt) => Date.parse(ct.sent_at ?? ct.created_at) - Date.parse(qt.sent_at ?? qt.created_at) || ct.id - qt.id;
69538
+ const Te = /* @__PURE__ */ new Map(), rt = (ct, Ut) => Date.parse(ct.sent_at ?? ct.created_at) - Date.parse(Ut.sent_at ?? Ut.created_at) || ct.id - Ut.id;
69537
69539
  for (const ct of $) {
69538
- const qt = R3(ct);
69539
- if (!qt) continue;
69540
- const zr = Te.get(qt.recipientId);
69541
- (!zr || rt(ct, zr) > 0) && Te.set(qt.recipientId, ct);
69540
+ const Ut = R3(ct);
69541
+ if (!Ut) continue;
69542
+ const zr = Te.get(Ut.recipientId);
69543
+ (!zr || rt(ct, zr) > 0) && Te.set(Ut.recipientId, ct);
69542
69544
  }
69543
69545
  for (const ct of Te.values()) {
69544
69546
  if (He.current.has(ct.id)) continue;
69545
69547
  He.current.add(ct.id);
69546
- const qt = R3(ct);
69547
- qt && e$(m, qt);
69548
+ const Ut = R3(ct);
69549
+ Ut && e$(m, Ut);
69548
69550
  }
69549
69551
  }, [$, m]);
69550
69552
  const Le = A.useMemo(() => JPe($), [$]), [$t, Ie] = A.useState(null), kt = $t?.conversationId === e ? $t.messageId : null, mr = A.useCallback(
@@ -69574,7 +69576,7 @@ function Pp({
69574
69576
  ), Qa = kt === null ? void 0 : $.find((Te) => Te.id === kt), Dg = A.useMemo(() => {
69575
69577
  if (!U) return [];
69576
69578
  let Te = !1;
69577
- const rt = !ee, ct = Le.inConversation, qt = ct[0], zr = qt?.type === "SystemMessage" && qt?.body === "conversation_created", Lg = rt && !zr, Za = ct.reduce(
69579
+ const rt = !ee, ct = Le.inConversation, Ut = ct[0], zr = Ut?.type === "SystemMessage" && Ut?.body === "conversation_created", Lg = rt && !zr, Za = ct.reduce(
69578
69580
  (rn, Xt, $g, iH) => {
69579
69581
  const cu = iH[$g - 1], B8 = cu?.sent_at, q8 = Xt.sent_at, U8 = !cu || !B8 || !q8 ? !0 : !bl(new Date(B8), new Date(q8));
69580
69582
  if (U8 && rn.push(
@@ -69764,7 +69766,7 @@ function Pp({
69764
69766
  uploader: f,
69765
69767
  saveDrafts: n,
69766
69768
  isEditingScheduled: Pe,
69767
- editScheduledMessage: Xe,
69769
+ editScheduledMessage: Ye,
69768
69770
  mentionableUsers: Ce,
69769
69771
  renderImage: x,
69770
69772
  isLoading: $r,
@@ -69991,9 +69993,9 @@ function Pp({
69991
69993
  user: K,
69992
69994
  isSendPending: Ve.isPending,
69993
69995
  isUpdatePending: !1,
69994
- onSend: (ct, qt) => h ? Ve.mutateAsync({
69996
+ onSend: (ct, Ut) => h ? Ve.mutateAsync({
69995
69997
  body: ct,
69996
- attachments: qt,
69998
+ attachments: Ut,
69997
69999
  replyToId: kt,
69998
70000
  alsoSendToChannel: Te
69999
70001
  }).then((zr) => (rt(), zr)) : Promise.reject(
@@ -70081,7 +70083,7 @@ function pOe({
70081
70083
  renderProfileContent: n,
70082
70084
  getMessageLink: r
70083
70085
  }) {
70084
- const { t: i } = ce(), { navigate: a } = Kt(), o = Ze(), {
70086
+ const { t: i } = ce(), { navigate: a } = qt(), o = Ze(), {
70085
70087
  data: s,
70086
70088
  fetchNextPage: l,
70087
70089
  hasNextPage: u,
@@ -70257,7 +70259,7 @@ async function bOe(e) {
70257
70259
  }));
70258
70260
  }
70259
70261
  function vOe() {
70260
- const e = Ql(), t = Gd(), n = Ye();
70262
+ const e = Ql(), t = Gd(), n = Xe();
70261
70263
  return A.useMemo(() => {
70262
70264
  if (!(!e || !t))
70263
70265
  return async (r) => {
@@ -70489,7 +70491,7 @@ function kOe(e) {
70489
70491
  function SOe({
70490
70492
  onToast: e
70491
70493
  }) {
70492
- const t = Ze(), n = zz(), r = Gye(), i = Ye(), a = Kt(), { t: o } = ce();
70494
+ const t = Ze(), n = zz(), r = Gye(), i = Xe(), a = qt(), { t: o } = ce();
70493
70495
  return et({
70494
70496
  mutationFn: async ({ bots: s, people: l }) => {
70495
70497
  if (!jV({ bots: s, people: l }))
@@ -70835,7 +70837,7 @@ function ROe({
70835
70837
  message: e,
70836
70838
  onToast: t
70837
70839
  }) {
70838
- const { t: n } = ce(), { auth: r, renderImage: i } = Mn(), { navigate: a } = Kt(), o = Ye(), s = Ze(), [l, u] = A.useState(!1), [d, f] = A.useState(!1), [p, h] = A.useState(!1), [m, y] = A.useState(""), g = e.scheduled_at || e.metadata?.scheduled_at, b = e.conversation, v = b?.id ?? e.conversation_id ?? 0, _ = typeof v == "string" ? Number.parseInt(v, 10) : Number(v), { data: x } = Ul(_), w = e.type, k = x || b, S = r.currentUser?.affiliateId, C = x ? x.recipients.filter(
70840
+ const { t: n } = ce(), { auth: r, renderImage: i } = Mn(), { navigate: a } = qt(), o = Xe(), s = Ze(), [l, u] = A.useState(!1), [d, f] = A.useState(!1), [p, h] = A.useState(!1), [m, y] = A.useState(""), g = e.scheduled_at || e.metadata?.scheduled_at, b = e.conversation, v = b?.id ?? e.conversation_id ?? 0, _ = typeof v == "string" ? Number.parseInt(v, 10) : Number(v), { data: x } = Ul(_), w = e.type, k = x || b, S = r.currentUser?.affiliateId, C = x ? x.recipients.filter(
70839
70841
  (L) => !T0(L, S, r.recipientId)
70840
70842
  ) : void 0, T = x ? vn(x).type : void 0, j = (() => {
70841
70843
  const L = k?.name || "", { emoji: z } = Fo(L);
@@ -71448,7 +71450,7 @@ function GOe({
71448
71450
  scope: e,
71449
71451
  onCompose: t
71450
71452
  }) {
71451
- const { t: n, locale: r } = ce(), i = Ye(), [a, o] = A.useState(!1), [s, l] = A.useState(""), [u, d] = A.useState({}), f = TV(s, 300), p = {
71453
+ const { t: n, locale: r } = ce(), i = Xe(), [a, o] = A.useState(!1), [s, l] = A.useState(""), [u, d] = A.useState({}), f = TV(s, 300), p = {
71452
71454
  exclude_channel: "flow",
71453
71455
  ...u,
71454
71456
  ...HOe(f)
@@ -71748,7 +71750,7 @@ function EM({
71748
71750
  ] });
71749
71751
  }
71750
71752
  function XOe(e) {
71751
- const t = Tg(), n = Ye();
71753
+ const t = Tg(), n = Xe();
71752
71754
  return et({
71753
71755
  mutationKey: ["outbound-send", e],
71754
71756
  mutationFn: ({
@@ -72171,7 +72173,7 @@ function rNe({
72171
72173
  );
72172
72174
  }
72173
72175
  function iNe() {
72174
- const e = G0(), t = Kt();
72176
+ const e = G0(), t = qt();
72175
72177
  return e?.canView ? /* @__PURE__ */ c.jsx(
72176
72178
  GOe,
72177
72179
  {
@@ -72182,7 +72184,7 @@ function iNe() {
72182
72184
  ) : /* @__PURE__ */ c.jsx(xn, { error: { status: 403 } });
72183
72185
  }
72184
72186
  function aNe() {
72185
- const e = G0(), t = Kt();
72187
+ const e = G0(), t = qt();
72186
72188
  return e?.channels.length ? /* @__PURE__ */ c.jsx(
72187
72189
  nNe,
72188
72190
  {
@@ -72818,7 +72820,7 @@ function yNe({
72818
72820
  ] });
72819
72821
  }
72820
72822
  function bNe() {
72821
- const e = Ql()?.connections, t = Kt();
72823
+ const e = Ql()?.connections, t = qt();
72822
72824
  return e ? /* @__PURE__ */ c.jsx(Xd, { children: /* @__PURE__ */ c.jsx(
72823
72825
  fNe,
72824
72826
  {
@@ -72966,7 +72968,7 @@ function wNe({
72966
72968
  ] });
72967
72969
  }
72968
72970
  function kNe() {
72969
- const e = Ql()?.connections, t = Kt(), { t: n } = dt();
72971
+ const e = Ql()?.connections, t = qt(), { t: n } = dt();
72970
72972
  return e?.canManageCompany ? /* @__PURE__ */ c.jsx(Xd, { children: /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col gap-5", children: [
72971
72973
  /* @__PURE__ */ c.jsx("div", { children: /* @__PURE__ */ c.jsxs(
72972
72974
  le,
@@ -73027,7 +73029,7 @@ function ANe() {
73027
73029
  };
73028
73030
  }
73029
73031
  function CNe() {
73030
- const e = Nt(), t = Ye();
73032
+ const e = Nt(), t = Xe();
73031
73033
  return et({
73032
73034
  mutationFn: ({ key: n, name: r }) => e.installTemplate(n, r),
73033
73035
  onSuccess: (n) => {
@@ -73299,7 +73301,7 @@ function NNe() {
73299
73301
  return e?.marketplace ? /* @__PURE__ */ c.jsx(MNe, { weBots: e }) : null;
73300
73302
  }
73301
73303
  function MNe({ weBots: e }) {
73302
- const t = Kt(), n = zz();
73304
+ const t = qt(), n = zz();
73303
73305
  return /* @__PURE__ */ c.jsx(
73304
73306
  PNe,
73305
73307
  {
@@ -74663,7 +74665,7 @@ function aMe({
74663
74665
  postLink: n,
74664
74666
  onToast: r
74665
74667
  }) {
74666
- const i = Kt(), a = Iz(), o = i.currentRoute, s = o.view === "today" ? o.postId : void 0, l = o.view === "today" && !!o.reply, { t: u } = ce(), { auth: d } = Mn(), f = Ye(), p = P0(), h = !!p.data?.available, m = Jfe(h), y = c$(), g = !!p.data?.can_moderate, [b] = Mk(), v = A.useRef(null), _ = A.useRef(!1);
74668
+ const i = qt(), a = Iz(), o = i.currentRoute, s = o.view === "today" ? o.postId : void 0, l = o.view === "today" && !!o.reply, { t: u } = ce(), { auth: d } = Mn(), f = Xe(), p = P0(), h = !!p.data?.available, m = Jfe(h), y = c$(), g = !!p.data?.can_moderate, [b] = Mk(), v = A.useRef(null), _ = A.useRef(!1);
74667
74669
  A.useLayoutEffect(() => {
74668
74670
  const D = a.current;
74669
74671
  if (!D) return;
@@ -74919,7 +74921,7 @@ function sMe({
74919
74921
  todayUploader: o,
74920
74922
  getTodayPostLink: s
74921
74923
  }) {
74922
- const { currentRoute: l } = Kt();
74924
+ const { currentRoute: l } = qt();
74923
74925
  switch (l.view) {
74924
74926
  case "index":
74925
74927
  return null;
@@ -75137,7 +75139,7 @@ async function Qe(e, t) {
75137
75139
  y.error.issues
75138
75140
  ), m);
75139
75141
  }
75140
- const Bi = N().datetime({ offset: !0 }), Jr = Bi.nullable(), Wt = N().nullable(), vi = Pn([Ge("").transform(() => null), N().url()]).nullable(), fMe = xe({
75142
+ const Bi = N().datetime({ offset: !0 }), Jr = Bi.nullable(), Kt = N().nullable(), vi = Pn([Ge("").transform(() => null), N().url()]).nullable(), fMe = xe({
75141
75143
  pagination: xe({
75142
75144
  current: ne(),
75143
75145
  previous: ne().nullable(),
@@ -75249,7 +75251,7 @@ const uu = xe({
75249
75251
  filename: N(),
75250
75252
  kind: N(),
75251
75253
  image_url: vi,
75252
- image_path: Wt,
75254
+ image_path: Kt,
75253
75255
  content_type: N().nullable(),
75254
75256
  attachable_type: N().nullable(),
75255
75257
  attachable_id: ne().nullable(),
@@ -75282,9 +75284,9 @@ const uu = xe({
75282
75284
  discarded_at: Jr,
75283
75285
  left_conversation_at: Jr,
75284
75286
  blocked: ke().nullable(),
75285
- country_name: Wt,
75287
+ country_name: Kt,
75286
75288
  pro_user: ke(),
75287
- avatar_background: Wt,
75289
+ avatar_background: Kt,
75288
75290
  email: N().email().nullable().optional(),
75289
75291
  phone: N().nullable().optional(),
75290
75292
  status: lt(["online", "offline", "away"]).optional(),
@@ -75299,7 +75301,7 @@ const uu = xe({
75299
75301
  discarded_at: Jr,
75300
75302
  blocked: ke().nullable(),
75301
75303
  blocker: ke().nullable(),
75302
- avatar_background: Wt,
75304
+ avatar_background: Kt,
75303
75305
  seen_at: Jr.optional(),
75304
75306
  email: N().email().nullable().optional(),
75305
75307
  phone: N().nullable().optional(),
@@ -75311,7 +75313,7 @@ const uu = xe({
75311
75313
  last_name: N(),
75312
75314
  discarded_at: Jr,
75313
75315
  blocked: ke().nullable(),
75314
- avatar_background: Wt,
75316
+ avatar_background: Kt,
75315
75317
  email: N().email().nullable().optional(),
75316
75318
  phone: N().nullable().optional(),
75317
75319
  removed_at: Jr.optional()
@@ -75321,7 +75323,7 @@ xe({
75321
75323
  first_name: N(),
75322
75324
  last_name: N(),
75323
75325
  image_url: vi,
75324
- avatar_background: Wt,
75326
+ avatar_background: Kt,
75325
75327
  seen_at: Jr.optional()
75326
75328
  });
75327
75329
  const SMe = xe({
@@ -75351,7 +75353,7 @@ const AMe = xe({
75351
75353
  ),
75352
75354
  attachments: Ee(zV),
75353
75355
  sender_recipient: za.optional(),
75354
- conversation: xe({ id: ne(), name: Wt }).passthrough().optional()
75356
+ conversation: xe({ id: ne(), name: Kt }).passthrough().optional()
75355
75357
  }), CMe = sa(I8), zM = xe({
75356
75358
  name: N(),
75357
75359
  avatar_url: N().nullable().optional()
@@ -75380,7 +75382,7 @@ const AMe = xe({
75380
75382
  }).nullable().optional(),
75381
75383
  id: ne(),
75382
75384
  name: N(),
75383
- description: Wt,
75385
+ description: Kt,
75384
75386
  kind: N().nullable(),
75385
75387
  type: N(),
75386
75388
  status: N(),
@@ -75408,8 +75410,8 @@ const AMe = xe({
75408
75410
  muted: ke().nullable().optional(),
75409
75411
  announcing: ke().nullable().optional(),
75410
75412
  scheduled_messages_count: ne().nullable().optional(),
75411
- avatar_background_color: Wt,
75412
- avatar_emoji: Wt,
75413
+ avatar_background_color: Kt,
75414
+ avatar_emoji: Kt,
75413
75415
  avatar_url: vi,
75414
75416
  pinned_messages_count: ne().nullable().optional(),
75415
75417
  recipients: Ee(R8),
@@ -75578,24 +75580,24 @@ sa(UMe);
75578
75580
  const VMe = xe({
75579
75581
  id: ne(),
75580
75582
  name: N(),
75581
- description: Wt,
75582
- webhook_url: Wt,
75583
- removed_at: Wt,
75584
- avatar_url: Wt
75583
+ description: Kt,
75584
+ webhook_url: Kt,
75585
+ removed_at: Kt,
75586
+ avatar_url: Kt
75585
75587
  }), HMe = xe({
75586
75588
  id: ne(),
75587
75589
  title: N(),
75588
- description: Wt,
75590
+ description: Kt,
75589
75591
  type: N(),
75590
- image_url: Wt,
75591
- avatar_background_color: Wt,
75592
- avatar_emoji: Wt,
75592
+ image_url: Kt,
75593
+ avatar_background_color: Kt,
75594
+ avatar_emoji: Kt,
75593
75595
  conversation: L8.nullable(),
75594
75596
  conversations: Ee(VMe).optional(),
75595
- webhook_external_uri: Wt,
75596
- webhook_auth_token: Wt,
75597
- webhook_http_method: Wt,
75598
- archived_at: Wt,
75597
+ webhook_external_uri: Kt,
75598
+ webhook_auth_token: Kt,
75599
+ webhook_http_method: Kt,
75600
+ archived_at: Kt,
75599
75601
  recipient: za.optional()
75600
75602
  });
75601
75603
  sa(HMe);
@@ -76467,7 +76469,7 @@ function mRe(e) {
76467
76469
  );
76468
76470
  }
76469
76471
  function gRe() {
76470
- const { t: e } = ce(), { isMobile: t } = cW(), { auth: n, renderImage: r } = Mn(), i = Kt(), { currentRoute: a } = i, o = "conversationId" in a ? a.conversationId : 0, { data: s } = Ul(o), l = r ?? mRe, u = n.currentUser, d = s?.name, f = hRe[a.view], p = f ? e(f) : void 0, h = a.view === "index";
76472
+ const { t: e } = ce(), { isMobile: t } = cW(), { auth: n, renderImage: r } = Mn(), i = qt(), { currentRoute: a } = i, o = "conversationId" in a ? a.conversationId : 0, { data: s } = Ul(o), l = r ?? mRe, u = n.currentUser, d = s?.name, f = hRe[a.view], p = f ? e(f) : void 0, h = a.view === "index";
76471
76473
  pRe(t && !h);
76472
76474
  const m = p ?? d ?? (h ? e("messaging_title") : null), y = m ? /* @__PURE__ */ c.jsx("div", { className: "flex min-w-0 items-center", children: /* @__PURE__ */ c.jsx("h1", { className: "text-foreground truncate text-lg font-semibold", children: m }) }) : null;
76473
76475
  return t ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
@@ -76570,7 +76572,7 @@ function BM(e, t, n) {
76570
76572
  }
76571
76573
  }
76572
76574
  function xRe(e, t, n, r) {
76573
- const i = Ye(), a = vRe(e), o = "conversationUuid" in a ? a.conversationUuid : void 0, s = A.useRef(/* @__PURE__ */ new Map()), [l, u] = A.useState();
76575
+ const i = Xe(), a = vRe(e), o = "conversationUuid" in a ? a.conversationUuid : void 0, s = A.useRef(/* @__PURE__ */ new Map()), [l, u] = A.useState();
76574
76576
  A.useEffect(() => {
76575
76577
  if (!o || s.current.has(o)) return;
76576
76578
  let p = !0;