akpm-knowledge-base-chat 2.0.50 → 2.0.52

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.
Files changed (2) hide show
  1. package/CDN/akb-chat.js +12 -7
  2. package/package.json +1 -1
package/CDN/akb-chat.js CHANGED
@@ -1,4 +1,4 @@
1
- /* Version: 2.0.50 */
1
+ /* Version: 2.0.52 */
2
2
  var Do = Object.defineProperty;
3
3
  var ls = (t) => {
4
4
  throw TypeError(t);
@@ -7652,8 +7652,8 @@ const kv = (t, e, n) => {
7652
7652
  }, zv = (t, e, n) => {
7653
7653
  v(e, !1), v(n, !0);
7654
7654
  };
7655
- var Sv = /* @__PURE__ */ j('<div class="chat-blocked-message svelte-52jnh1"><i class="fa-solid fa-clock-rotate-left svelte-52jnh1"></i> <span class="svelte-52jnh1"> </span></div>'), Cv = (t, e, n) => {
7656
- d(e) || v(n, E(t.target.value));
7655
+ var Sv = /* @__PURE__ */ j('<div class="chat-blocked-message svelte-52jnh1"><i class="fa-solid fa-clock-rotate-left svelte-52jnh1"></i> <span class="svelte-52jnh1"> </span></div>'), Cv = (t, e, n, r) => {
7656
+ !d(e) && !n() && v(r, E(t.target.value));
7657
7657
  }, Tv = /* @__PURE__ */ j('<div class="dropdown-content svelte-52jnh1"><button><i class="fa-solid fa-file-circle-plus svelte-52jnh1"></i> <span class="svelte-52jnh1"> </span></button> <button><i class="fa-solid fa-upload svelte-52jnh1"></i> <span class="svelte-52jnh1"> </span></button></div>'), Ev = /* @__PURE__ */ j('<option class="svelte-52jnh1">Generatore di Normative</option>'), Iv = /* @__PURE__ */ j('<div class="attachment-title noopen-file-button svelte-52jnh1"> </div>'), $v = (t, e, n, r, i) => e(n(), r(), i()), Av = /* @__PURE__ */ j('<button class="attachment-title open-file-button svelte-52jnh1"> </button>'), jv = (t, e, n, r, i) => e(n(), r(), i()), Lv = /* @__PURE__ */ j('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-52jnh1"></i></button></div>'), Rv = /* @__PURE__ */ j('<button class="btn send-button stop-recording-btn svelte-52jnh1" aria-label="Stop recording"><i class="fa-solid fa-stop svelte-52jnh1"></i></button>'), Fv = /* @__PURE__ */ j('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Synthesizing" disabled><!></button>'), Dv = /* @__PURE__ */ j('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Start recording"><i class="fa-solid fa-microphone svelte-52jnh1"></i></button>'), Pv = /* @__PURE__ */ j('<button class="btn send-button stop-stream-btn svelte-52jnh1" aria-label="Stop message"><i class="fa-solid fa-stop svelte-52jnh1"></i></button>'), Mv = /* @__PURE__ */ j('<button class="btn send-button aks-btn-answer svelte-52jnh1" aria-label="Loading" disabled><!></button>'), Ov = /* @__PURE__ */ j('<button class="btn send-button aks-btn-answer send-message-btn svelte-52jnh1" aria-label="Send message"><i class="fa-solid fa-paper-plane svelte-52jnh1"></i></button>'), qv = /* @__PURE__ */ j('<div class="top svelte-52jnh1"><textarea style="color: black !important;" class="form-control form-control-sm svelte-52jnh1" rows="2"></textarea></div> <div class="bottom svelte-52jnh1"><div class="controls-row svelte-52jnh1"><div class="plus-button-container svelte-52jnh1"><button><i></i></button> <!></div> <select class="mode-select svelte-52jnh1" aria-label="Select mode"><option class="svelte-52jnh1">Auto</option><option class="svelte-52jnh1">Manuale Suite</option><option class="svelte-52jnh1"> </option><option class="svelte-52jnh1">Knowledge Base</option><option class="svelte-52jnh1">GenDoc</option><option class="svelte-52jnh1">Trascrizioni</option><!><option class="svelte-52jnh1">Agente Suite</option></select> <div class="attachments-container svelte-52jnh1"></div> <div class="send-buttons svelte-52jnh1"><!> <!></div></div></div>', 1), Uv = /* @__PURE__ */ j('<div class="input svelte-52jnh1"><!></div> <!>', 1);
7658
7658
  const Nv = {
7659
7659
  hash: "svelte-52jnh1",
@@ -7729,7 +7729,7 @@ function co(t, e) {
7729
7729
  behavior: "smooth"
7730
7730
  });
7731
7731
  }, Le = () => {
7732
- i() || !d(b).trim() || (n()(d(b), a()), Je());
7732
+ i() || !d(b).trim() || (n()(d(b), a()), Je(), d(_) && d(_).blur());
7733
7733
  }, Xe = async () => {
7734
7734
  i() || !F || (v(b, ""), v(x, ""), await F.startRecording());
7735
7735
  }, W = () => {
@@ -7771,7 +7771,12 @@ function co(t, e) {
7771
7771
  k(ae), k(H), M((oe) => me(ne, oe), [() => Hd()]), S(z, H);
7772
7772
  }, le = (z) => {
7773
7773
  var H = qv(), ae = et(H), ne = y(ae);
7774
- Hl(ne), ne.__input = [Cv, L, b], jr(ne, (V) => v(_, V), () => d(_)), k(ae);
7774
+ Hl(ne), ne.__input = [
7775
+ Cv,
7776
+ L,
7777
+ i,
7778
+ b
7779
+ ], jr(ne, (V) => v(_, V), () => d(_)), k(ae);
7775
7780
  var oe = P(ae, 2), Ee = y(oe), We = y(Ee), Me = y(We);
7776
7781
  Me.__click = [yv, R];
7777
7782
  var Ne = y(Me);
@@ -7962,7 +7967,7 @@ function co(t, e) {
7962
7967
  }
7963
7968
  k(ze), k(Ee), k(oe), M(
7964
7969
  (V, se, Re) => {
7965
- q(ne, "placeholder", V), Na(ne, d(C)), ne.readOnly = d(L), kt(Me, `${`btn plus-button ${d(R) ? "plus-button-active" : ""}` ?? ""} svelte-52jnh1`), q(Me, "aria-label", se), q(Me, "title", se), kt(Ne, `${`fa-solid ${d(R) ? "fa-xmark" : "fa-plus"}` ?? ""} svelte-52jnh1`), me(Z, Re);
7970
+ q(ne, "placeholder", V), Na(ne, d(C)), ne.readOnly = d(L) || i(), kt(Me, `${`btn plus-button ${d(R) ? "plus-button-active" : ""}` ?? ""} svelte-52jnh1`), q(Me, "aria-label", se), q(Me, "title", se), kt(Ne, `${`fa-solid ${d(R) ? "fa-xmark" : "fa-plus"}` ?? ""} svelte-52jnh1`), me(Z, Re);
7966
7971
  },
7967
7972
  [
7968
7973
  () => Mc(),
@@ -12094,7 +12099,7 @@ function Fo(t, e) {
12094
12099
  let U = await _t.getChat(d(o)._id);
12095
12100
  v(o, E(U)), v(c, E(d(o).messages)), v(Pe, !1);
12096
12101
  }
12097
- G.length > 0 && v(ne, E(G));
12102
+ v(ne, E(G));
12098
12103
  } catch (G) {
12099
12104
  console.error("Error fetching unread chats:", G);
12100
12105
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "akpm-knowledge-base-chat",
3
3
  "private": false,
4
- "version": "2.0.50",
4
+ "version": "2.0.52",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "CDN"