akpm-knowledge-base-chat 1.0.81 → 1.0.83
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/CDN/akb-chat.js +15 -16
- package/package.json +1 -1
package/CDN/akb-chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 1.0.
|
|
1
|
+
/* Version: 1.0.83 */
|
|
2
2
|
var co = Object.defineProperty;
|
|
3
3
|
var Hs = (t) => {
|
|
4
4
|
throw TypeError(t);
|
|
@@ -10140,16 +10140,16 @@ le(
|
|
|
10140
10140
|
[],
|
|
10141
10141
|
!0
|
|
10142
10142
|
);
|
|
10143
|
-
const yg = (t, e, n, r, s, a) => {
|
|
10143
|
+
const yg = (t) => t.toLowerCase().includes("it") ? "it" : t.toLowerCase().includes("en") ? "en" : "it", kg = (t, e, n, r, s, a) => {
|
|
10144
10144
|
p(e) || (w(e, !1), w(n, ""), r()), s(), w(a, E({}));
|
|
10145
10145
|
};
|
|
10146
|
-
var
|
|
10147
|
-
const
|
|
10146
|
+
var zg = /* @__PURE__ */ T('<div class="loading-placeholder svelte-1hgblks"><!></div>'), $g = /* @__PURE__ */ T('<!> <div class="resize-border-left svelte-1hgblks"></div> <div class="resize-border-top svelte-1hgblks"></div> <div class="resize-handle svelte-1hgblks"><!></div> <!> <!> <!>', 1), Sg = /* @__PURE__ */ T('<div class="chat svelte-1hgblks"><!></div>'), Tg = (t, e) => w(e, !p(e)), Cg = (t, e) => e("normative"), Eg = (t, e) => e("suite"), Ig = /* @__PURE__ */ T('<div class="bottom-right-buttons svelte-1hgblks"><button class="pin-forge-buttons svelte-1hgblks"><i class="fa-solid fa-thumbtack"></i></button> <div class="btn-with-tooltip svelte-1hgblks"><span class="custom-tooltip svelte-1hgblks"> </span> <button class="hidden-btn hidden-btn-1 svelte-1hgblks" aria-label="normative"><i class="fa-solid fa-book-open"></i></button></div> <div class="btn-with-tooltip svelte-1hgblks"><span class="custom-tooltip svelte-1hgblks"> </span> <button class="hidden-btn hidden-btn-2 svelte-1hgblks" aria-label="suite info"><i class="fa-solid fa-circle-info"></i></button></div></div>'), Ag = /* @__PURE__ */ T('<div class="external-div"><!> <button><i class="fa-solid fa-comment-nodes"></i><span class="d-none d-md-inline ps-2"> </span></button> <!></div>');
|
|
10147
|
+
const Lg = {
|
|
10148
10148
|
hash: "svelte-1hgblks",
|
|
10149
10149
|
code: ".loading-placeholder.svelte-1hgblks {display:flex;justify-content:center;align-items:center;height:100%;}.chat.svelte-1hgblks {position:fixed;bottom:0;right:0;width:75%;height:90%;min-width:300px;min-height:400px;border-radius:15px;display:flex;flex-direction:column;margin:30px;padding:10px;background:#295dcf;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);resize:none;overflow:visible;z-index:1000;}.resize-handle.svelte-1hgblks {position:absolute;top:-2px;left:-2px;cursor:nw-resize;z-index:1002;display:flex;align-items:flex-start;justify-content:flex-start;}.resize-border-left.svelte-1hgblks {position:absolute;top:0;left:-2px;width:4px;height:100%;cursor:ew-resize;z-index:1001;background:transparent;}.resize-border-top.svelte-1hgblks {position:absolute;top:-2px;left:0;width:100%;height:4px;cursor:ns-resize;z-index:1001;background:transparent;}.no-select.svelte-1hgblks {user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;}.bottom-right-buttons.svelte-1hgblks {position:fixed;bottom:20px;right:0;display:flex;flex-direction:column;gap:15px;z-index:999;transform:translateX(50px);padding:5px;transition:350ms;}.bottom-right-buttons.visible.svelte-1hgblks {transform:translateX(0);}.bottom-right-buttons.svelte-1hgblks:hover {transform:translateX(0);}.pin-forge-buttons.svelte-1hgblks {width:30px;height:30px;border-radius:50%;border:none;background:rgba(0, 0, 0, 0.6);color:white;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;align-self:center;transition:200ms;font-size:14px;}.pin-forge-buttons.svelte-1hgblks:hover {background:rgba(0, 0, 0, 0.85);transform:scale(1.1);}.pin-forge-buttons.pinned.svelte-1hgblks {background:#295dcf;transform:rotate(45deg);}.pin-forge-buttons.pinned.svelte-1hgblks:hover {background:#1e4ba8;transform:rotate(45deg) scale(1.1);}.btn-with-tooltip.svelte-1hgblks {position:relative;display:flex;align-items:center;transition:300ms;}.btn-with-tooltip.svelte-1hgblks:hover {transform:translateX(-6px);}.custom-tooltip.svelte-1hgblks {position:absolute;right:70px;background:rgba(0, 0, 0, 0.85);color:white;padding:8px 12px;border-radius:6px;white-space:nowrap;font-size:14px;opacity:0;pointer-events:none;transition:opacity 200ms;box-shadow:0 2px 8px rgba(0, 0, 0, 0.3);}.bottom-right-buttons.visible.svelte-1hgblks .custom-tooltip:where(.svelte-1hgblks) {opacity:1;}.btn-with-tooltip.svelte-1hgblks:hover .custom-tooltip:where(.svelte-1hgblks) {opacity:1;}.hidden-btn.svelte-1hgblks {width:60px;height:60px;border-radius:50%;border:none;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:200ms;}.hidden-btn-1.svelte-1hgblks {background:#28853d;color:white;}.hidden-btn-1.svelte-1hgblks:hover {background:#206a31;}.hidden-btn-2.svelte-1hgblks {background:#0099ff;color:white;}.hidden-btn-2.svelte-1hgblks:hover {background:#007acc;}"
|
|
10150
10150
|
};
|
|
10151
10151
|
function no(t, e) {
|
|
10152
|
-
re(e, !0), ue(t,
|
|
10152
|
+
re(e, !0), ue(t, Lg);
|
|
10153
10153
|
let n = V(!1), r = V(!1), s = V("it"), a = V(""), i = V(0), o = V(null), l = V(E([])), c = V(E([])), u = V(!1), d = V(!0), f = V(E(new Audio())), h = V(!0), b = V(""), m = V(""), z = V(E([])), _ = V(null);
|
|
10154
10154
|
const y = (D, Y) => {
|
|
10155
10155
|
w(m, p(m) + D), w(z, E(Y));
|
|
@@ -10257,15 +10257,15 @@ function no(t, e) {
|
|
|
10257
10257
|
console.error("Failed to load username", D), w(b, E(/* @__PURE__ */ Uu())), w(d, !1);
|
|
10258
10258
|
}
|
|
10259
10259
|
});
|
|
10260
|
-
var Me =
|
|
10260
|
+
var Me = Ag(), Ue = S(Me);
|
|
10261
10261
|
{
|
|
10262
10262
|
var Ye = (D) => {
|
|
10263
|
-
var Y =
|
|
10263
|
+
var Y = Sg();
|
|
10264
10264
|
Y.__mousedown = Pe;
|
|
10265
10265
|
var ge = S(Y);
|
|
10266
10266
|
{
|
|
10267
10267
|
var _e = ($e) => {
|
|
10268
|
-
var ne =
|
|
10268
|
+
var ne = zg(), Le = S(ne);
|
|
10269
10269
|
xn(Le, {
|
|
10270
10270
|
icon: "svg-spinners:270-ring-with-bg",
|
|
10271
10271
|
width: "50px",
|
|
@@ -10276,7 +10276,7 @@ function no(t, e) {
|
|
|
10276
10276
|
var ne = Se(), Le = ye(ne);
|
|
10277
10277
|
{
|
|
10278
10278
|
var L = (P) => {
|
|
10279
|
-
var Q =
|
|
10279
|
+
var Q = $g(), K = ye(Q);
|
|
10280
10280
|
to(K, {
|
|
10281
10281
|
newChat: Be,
|
|
10282
10282
|
get showHistory() {
|
|
@@ -10487,7 +10487,7 @@ function no(t, e) {
|
|
|
10487
10487
|
}
|
|
10488
10488
|
var Fe = q(Ue, 2);
|
|
10489
10489
|
Fe.__click = [
|
|
10490
|
-
|
|
10490
|
+
kg,
|
|
10491
10491
|
O,
|
|
10492
10492
|
$,
|
|
10493
10493
|
Be,
|
|
@@ -10499,16 +10499,16 @@ function no(t, e) {
|
|
|
10499
10499
|
var G = q(Fe, 2);
|
|
10500
10500
|
{
|
|
10501
10501
|
var ce = (D) => {
|
|
10502
|
-
var Y =
|
|
10503
|
-
ge.__click = [
|
|
10502
|
+
var Y = Ig(), ge = S(Y);
|
|
10503
|
+
ge.__click = [Tg, I];
|
|
10504
10504
|
var _e = q(ge, 2), de = S(_e), $e = S(de, !0);
|
|
10505
10505
|
k(de);
|
|
10506
10506
|
var ne = q(de, 2);
|
|
10507
|
-
ne.__click = [
|
|
10507
|
+
ne.__click = [Cg, He], k(_e);
|
|
10508
10508
|
var Le = q(_e, 2), L = S(Le), P = S(L, !0);
|
|
10509
10509
|
k(L);
|
|
10510
10510
|
var Q = q(L, 2);
|
|
10511
|
-
Q.__click = [
|
|
10511
|
+
Q.__click = [Eg, He], k(Le), k(Y), F(
|
|
10512
10512
|
(K, je) => {
|
|
10513
10513
|
oe(Y, "visible", p(I)), N(ge, "aria-label", p(I) ? "unpin forge buttons" : "pin forge buttons"), oe(ge, "pinned", p(I)), Ne($e, K), Ne(P, je);
|
|
10514
10514
|
},
|
|
@@ -10531,13 +10531,12 @@ function no(t, e) {
|
|
|
10531
10531
|
}
|
|
10532
10532
|
Xt(["mousedown", "click"]);
|
|
10533
10533
|
le(no, {}, [], [], !0);
|
|
10534
|
-
const Lg = (t) => t.toLowerCase().includes("it") ? "it" : t.toLowerCase().includes("en") ? "en" : "it";
|
|
10535
10534
|
function jg(t, e) {
|
|
10536
10535
|
re(e, !0);
|
|
10537
10536
|
let n = g(e, "envId", 23, () => {
|
|
10538
10537
|
}), r = g(e, "token", 23, () => {
|
|
10539
10538
|
}), s = g(e, "lang", 7, "it");
|
|
10540
|
-
return document.cookie = `akb-chat-envid=${n()}`, document.cookie = `akb-chat-token=${r()}`, ec(
|
|
10539
|
+
return document.cookie = `akb-chat-envid=${n()}`, document.cookie = `akb-chat-token=${r()}`, ec(yg(s())), no(t, {}), se({
|
|
10541
10540
|
get envId() {
|
|
10542
10541
|
return n();
|
|
10543
10542
|
},
|