@chatsystem/client 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -447,7 +447,7 @@ async function xf(e, t = {}) {
447
447
  u.drawImage(e, 0, 0);
448
448
  const { data: c } = u.getImageData(0, 0, o.width, o.height), d = o.width, f = o.height, p = new Uint8ClampedArray(d * f);
449
449
  for (let H = 0; H < f; H++) {
450
- let z = H * d;
450
+ const z = H * d;
451
451
  for (let M = 0; M < d; M++) {
452
452
  const $ = (z + M) * 4;
453
453
  p[z + M] = 0.299 * c[$] + 0.587 * c[$ + 1] + 0.114 * c[$ + 2] | 0;
@@ -547,7 +547,7 @@ function ws(e, t, n, r) {
547
547
  i.push(d);
548
548
  }
549
549
  if (i.length < 1) return 0;
550
- let a = [];
550
+ const a = [];
551
551
  for (const o of i) {
552
552
  const u = e[o] * 1.5 + Ji(e, 10) * 0.5;
553
553
  let c = o, d = o;
@@ -19829,7 +19829,7 @@ const td = ({
19829
19829
  /* @__PURE__ */ k("p", { className: "font-bold", children: t })
19830
19830
  ]
19831
19831
  }
19832
- ), nd = ({}) => {
19832
+ ), nd = () => {
19833
19833
  const { companySettings: e } = Ke(fn);
19834
19834
  return /* @__PURE__ */ k(
19835
19835
  "div",
@@ -20816,7 +20816,7 @@ const z_ = (e) => e.charCodeAt(e.length - 1) === 10, $_ = (e) => {
20816
20816
  n(A);
20817
20817
  };
20818
20818
  Ee(r, [t]);
20819
- let {
20819
+ const {
20820
20820
  label: s,
20821
20821
  SubmitComponent: o,
20822
20822
  onSubmit: u,
@@ -20832,8 +20832,7 @@ const z_ = (e) => e.charCodeAt(e.length - 1) === 10, $_ = (e) => {
20832
20832
  inputElementType: "textarea"
20833
20833
  },
20834
20834
  y
20835
- );
20836
- const w = (A) => {
20835
+ ), w = (A) => {
20837
20836
  z_(A.target.value) || a(A.target.value);
20838
20837
  }, I = (A) => {
20839
20838
  if (A.key === "Enter" || A.code === "Enter" || A.keyCode === 13 || A.code === "NumpadEnter") {
@@ -21991,7 +21990,7 @@ const gd = () => {
21991
21990
  cancelTranslation: p,
21992
21991
  recentMessagesTranslation: h
21993
21992
  };
21994
- }, PS = ({}) => {
21993
+ }, PS = () => {
21995
21994
  const { companySettings: e } = Ke(fn);
21996
21995
  return /* @__PURE__ */ k(
21997
21996
  "div",
@@ -22795,17 +22794,14 @@ const QS = () => {
22795
22794
  onCancel: n,
22796
22795
  audioLevel: r = 0
22797
22796
  }) => {
22798
- if (!e) return null;
22799
- const {
22800
- recordingTranslation: i
22801
- } = QS(), a = Ft(() => {
22797
+ const { recordingTranslation: i } = QS(), a = Ft(() => {
22802
22798
  const s = Math.max(0, Math.min(1, r));
22803
22799
  return Array.from({ length: 20 }, (o, u) => {
22804
22800
  const c = Math.sin(u / 19 * Math.PI * 2) * 0.5 + 0.5, d = u % 2 === 0 ? 0.9 : 0.65, f = 6 + s * (14 + c * 18) * d;
22805
22801
  return Math.round(f);
22806
22802
  });
22807
22803
  }, [r]);
22808
- return /* @__PURE__ */ k(
22804
+ return e ? /* @__PURE__ */ k(
22809
22805
  "div",
22810
22806
  {
22811
22807
  className: "relative mt-3 w-full rounded-lg border border-slate-400 bg-white p-1",
@@ -22906,8 +22902,8 @@ const QS = () => {
22906
22902
  )
22907
22903
  ] })
22908
22904
  }
22909
- );
22910
- }, JS = (e) => /(\[.*|\!\[.*)$/.test(e), ZS = (e) => /\)/.test(e), du = () => ({
22905
+ ) : null;
22906
+ }, JS = (e) => /(\[.*|!\[.*)$/.test(e), ZS = (e) => /\)/.test(e), du = () => ({
22911
22907
  rendered: "",
22912
22908
  markdownTag: "",
22913
22909
  isWritingTag: !1,
@@ -24953,7 +24949,7 @@ const wd = () => {
24953
24949
  Object.keys(e).includes(a?.locale) ? r(a) : r(e[mt.ENGLISH]);
24954
24950
  };
24955
24951
  return Ee(() => {
24956
- let a = Ox(e, t);
24952
+ const a = Ox(e, t);
24957
24953
  a.locale !== t && r(e[a.locale]);
24958
24954
  }, []), {
24959
24955
  appCurrentLang: n,
@@ -25188,7 +25184,7 @@ const Gx = ({
25188
25184
  logger: i,
25189
25185
  identityProvider: a
25190
25186
  }) => {
25191
- var s = navigator.language;
25187
+ const s = navigator.language;
25192
25188
  i.log("Brower language", s);
25193
25189
  const o = Dx(s, i), { appCurrentLang: u, handleSetContextCurrentLang: c } = Rx(
25194
25190
  ui,