akpm-knowledge-base-chat 2.0.76 → 2.0.77
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 +149 -151
- package/package.json +1 -1
package/CDN/akb-chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 2.0.
|
|
1
|
+
/* Version: 2.0.77 */
|
|
2
2
|
var Qc = Object.defineProperty;
|
|
3
3
|
var qa = (t) => {
|
|
4
4
|
throw TypeError(t);
|
|
@@ -2443,7 +2443,7 @@ function yt(t, e) {
|
|
|
2443
2443
|
n.nodes === null && (n.nodes = { start: t, end: e, a: null, t: null });
|
|
2444
2444
|
}
|
|
2445
2445
|
// @__NO_SIDE_EFFECTS__
|
|
2446
|
-
function
|
|
2446
|
+
function D(t, e) {
|
|
2447
2447
|
var n = (e & fu) !== 0, r = (e & hu) !== 0, i, s = !t.startsWith("<!>");
|
|
2448
2448
|
return () => {
|
|
2449
2449
|
if (we)
|
|
@@ -5660,7 +5660,7 @@ const cg = () => {
|
|
|
5660
5660
|
getUser: vg,
|
|
5661
5661
|
setColorMode: mg
|
|
5662
5662
|
};
|
|
5663
|
-
var bg = /* @__PURE__ */
|
|
5663
|
+
var bg = /* @__PURE__ */ D("<span> </span>"), wg = /* @__PURE__ */ D('<button aria-label="Prompt template" title="Prompt template"><i class="fa-solid fa-scroll"></i></button>'), xg = /* @__PURE__ */ D('<button><i class="fa-solid fa-volume-xmark"></i></button>'), kg = /* @__PURE__ */ D('<button><i class="fa-solid fa-volume-high"></i></button>'), yg = /* @__PURE__ */ D('<span class="notification-badge svelte-1lc0kb8"></span>'), _g = /* @__PURE__ */ D('<header class="svelte-1lc0kb8"><section class="svelte-1lc0kb8"><div class="header-left svelte-1lc0kb8"><h1>Chat</h1> <select class="language-select svelte-1lc0kb8" aria-label="Select language"><option>IT</option><option>EN</option></select></div> <!> <div class="buttons svelte-1lc0kb8"><!> <button><!></button> <!> <button><i class="fa-solid fa-comment-medical"></i></button> <button><i class="fa-solid fa-clock-rotate-left"></i> <!></button> <button><i class="fa-solid fa-minus"></i></button> <button><i class="fa-solid fa-xmark"></i></button></div></section></header>');
|
|
5664
5664
|
const Cg = {
|
|
5665
5665
|
hash: "svelte-1lc0kb8",
|
|
5666
5666
|
code: `header.svelte-1lc0kb8 {display:flex;justify-content:center;align-items:center;height:50px;border-radius:30px 30px 0 0;}.header-left.svelte-1lc0kb8 {display:flex;align-items:center;gap:12px;z-index:1;}h1.svelte-1lc0kb8 {font-size:1.5rem;color:#fff;}h1.light.svelte-1lc0kb8 {color:#3c4450;}.header-chat-title.svelte-1lc0kb8 {position:absolute;left:50%;top:16px;transform:translateX(-50%);max-width:calc(100% - 280px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(255, 255, 255, 0.75);font-size:0.85rem;font-weight:500;pointer-events:none;}.header-chat-title.light.svelte-1lc0kb8 {color:rgba(60, 68, 80, 0.75);}.language-select.svelte-1lc0kb8 {padding:5px;border-radius:5px;border:none;background:#3c4450;color:white;font-size:20px;font-weight:900;transition:200ms;}.language-select.svelte-1lc0kb8:hover {background:#576374;cursor:pointer;}section.svelte-1lc0kb8 {display:flex;justify-content:space-between;align-items:center;width:100%;padding:10px;position:relative;}.buttons.svelte-1lc0kb8 {display:flex;gap:10px;z-index:1;}button.svelte-1lc0kb8 {display:flex;justify-content:center;align-items:center;border:none;cursor:pointer;border-radius:30px;transition:200ms;}.new-chat.svelte-1lc0kb8 {font-size:large;width:30px;height:30px;background:transparent;color:white;padding:0;}.new-chat.light.svelte-1lc0kb8 {color:#3c4450;}.new-chat.svelte-1lc0kb8:hover {background:#1e3a8a;}.new-chat.light.svelte-1lc0kb8:hover {background:#e5e7eb;}.history-button.svelte-1lc0kb8 {font-size:large;width:30px;height:30px;background:transparent;color:white;font-weight:bold;position:relative;}.history-button.light.svelte-1lc0kb8 {color:#3c4450;}.history-button.svelte-1lc0kb8:hover {background:#1e3a8a;}.history-button.light.svelte-1lc0kb8:hover {background:#e5e7eb;}.notification-badge.svelte-1lc0kb8 {position:absolute;top:-2px;right:-2px;width:10px;height:10px;background:#ef4444;border-radius:50%;border:2px solid #1e293b;}.close-button.svelte-1lc0kb8 {font-size:large;width:30px;height:30px;background:transparent;color:white;}.close-button.light.svelte-1lc0kb8 {color:#3c4450;}.close-button.svelte-1lc0kb8:hover {background:red;}.close-button.light.svelte-1lc0kb8:hover {color:white;}.color-mode-button.svelte-1lc0kb8 {font-size:large;width:30px;height:30px;background:transparent;color:white;position:relative;padding:0;}.color-mode-button.light.svelte-1lc0kb8 {color:#3c4450;}.color-mode-button.svelte-1lc0kb8:hover {background:#1e3a8a;}.color-mode-button.light.svelte-1lc0kb8:hover {background:#e5e7eb;}.reduce-button.svelte-1lc0kb8 {font-size:large;width:30px;height:30px;background:transparent;color:white;}.reduce-button.light.svelte-1lc0kb8 {color:#3c4450;}.reduce-button.svelte-1lc0kb8:hover {background:#1e3a8a;}.reduce-button.light.svelte-1lc0kb8:hover {background:#e5e7eb;}\r
|
|
@@ -5805,12 +5805,12 @@ function oc(t, e) {
|
|
|
5805
5805
|
}
|
|
5806
5806
|
var P = O(xe, 2), ee = O(P, 2), j = O(M(ee), 2);
|
|
5807
5807
|
{
|
|
5808
|
-
var
|
|
5808
|
+
var R = (U) => {
|
|
5809
5809
|
var Q = yg();
|
|
5810
5810
|
L(U, Q);
|
|
5811
5811
|
};
|
|
5812
5812
|
le(j, (U) => {
|
|
5813
|
-
v() && U(
|
|
5813
|
+
v() && U(R);
|
|
5814
5814
|
});
|
|
5815
5815
|
}
|
|
5816
5816
|
E(ee);
|
|
@@ -6630,7 +6630,7 @@ class fo {
|
|
|
6630
6630
|
}
|
|
6631
6631
|
}
|
|
6632
6632
|
Uu();
|
|
6633
|
-
var ev = /* @__PURE__ */
|
|
6633
|
+
var ev = /* @__PURE__ */ D("<div></div>");
|
|
6634
6634
|
const tv = {
|
|
6635
6635
|
hash: "svelte-7w2xrx",
|
|
6636
6636
|
code: `.circle.svelte-7w2xrx {height:var(--size);width:var(--size);border-color:var(--color) transparent var(--color) var(--color);border-width:calc(var(--size) / 15);border-style:solid;border-image:initial;border-radius:50%;
|
|
@@ -6685,7 +6685,7 @@ function nv(t, e) {
|
|
|
6685
6685
|
}), L(t, l), de(o);
|
|
6686
6686
|
}
|
|
6687
6687
|
fe(nv, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
6688
|
-
var rv = /* @__PURE__ */
|
|
6688
|
+
var rv = /* @__PURE__ */ D("<div></div>");
|
|
6689
6689
|
const iv = {
|
|
6690
6690
|
hash: "svelte-18p56hv",
|
|
6691
6691
|
code: `.circle.svelte-18p56hv {width:var(--size);height:var(--size);box-sizing:border-box;position:relative;border:3px solid transparent;border-top-color:var(--colorOuter);border-radius:50%;
|
|
@@ -6793,7 +6793,7 @@ fe(
|
|
|
6793
6793
|
[],
|
|
6794
6794
|
{ mode: "open" }
|
|
6795
6795
|
);
|
|
6796
|
-
var av = /* @__PURE__ */
|
|
6796
|
+
var av = /* @__PURE__ */ D('<div class="wrapper svelte-1ld5hqc"><div class="inner svelte-1ld5hqc"><div><div class="single-ball svelte-1ld5hqc"><div> </div></div> <div class="contener_mixte svelte-1ld5hqc"><div> </div></div> <div class="contener_mixte svelte-1ld5hqc"><div> </div></div> <div class="contener_mixte svelte-1ld5hqc"><div> </div></div></div></div></div>');
|
|
6797
6797
|
const ov = {
|
|
6798
6798
|
hash: "svelte-1ld5hqc",
|
|
6799
6799
|
code: `.wrapper.svelte-1ld5hqc {width:var(--size);height:var(--size);display:flex;justify-content:center;align-items:center;line-height:0;box-sizing:border-box;}.inner.svelte-1ld5hqc {transform:scale(calc(var(--floatSize) / 52));}.ball-container.svelte-1ld5hqc {
|
|
@@ -6919,7 +6919,7 @@ const Qe = /[a-zA-Z]/, xa = (t, e) => {
|
|
|
6919
6919
|
}
|
|
6920
6920
|
return `rgba(${(t.match(/.{2}/g) || []).map((r) => parseInt(r, 16)).join(", ")}, ${e})`;
|
|
6921
6921
|
}, Be = (t, e = 0) => [...Array(t).keys()].map((n) => n + e);
|
|
6922
|
-
var cv = /* @__PURE__ */
|
|
6922
|
+
var cv = /* @__PURE__ */ D("<div></div>"), uv = /* @__PURE__ */ D('<div class="wrapper svelte-114lbwa"></div>');
|
|
6923
6923
|
const dv = {
|
|
6924
6924
|
hash: "svelte-114lbwa",
|
|
6925
6925
|
code: `.wrapper.svelte-114lbwa {position:relative;width:var(--size);height:var(--size);}.circle.svelte-114lbwa {position:absolute;width:var(--size);height:var(--size);background-color:var(--color);border-radius:100%;opacity:0.6;top:0;left:0;animation-fill-mode:both;
|
|
@@ -6981,7 +6981,7 @@ function fv(t, e) {
|
|
|
6981
6981
|
}), E(c), N(() => pe(c, `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}`)), L(t, c), de(u);
|
|
6982
6982
|
}
|
|
6983
6983
|
fe(fv, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
6984
|
-
var hv = /* @__PURE__ */
|
|
6984
|
+
var hv = /* @__PURE__ */ D("<div></div>");
|
|
6985
6985
|
const pv = {
|
|
6986
6986
|
hash: "svelte-1xynvbs",
|
|
6987
6987
|
code: `.svelte-1xynvbs {overflow:hidden;position:relative;text-indent:-9999px;display:inline-block;background:#f86;border-radius:50%;transform:rotateZ(90deg);transform-origin:50% 50%;
|
|
@@ -7189,7 +7189,7 @@ function gv(t, e) {
|
|
|
7189
7189
|
}), L(t, o), de(a);
|
|
7190
7190
|
}
|
|
7191
7191
|
fe(gv, { size: {}, duration: {}, pause: {} }, [], [], { mode: "open" });
|
|
7192
|
-
var vv = /* @__PURE__ */
|
|
7192
|
+
var vv = /* @__PURE__ */ D('<div class="wrapper svelte-1rlyajf"><div></div></div>');
|
|
7193
7193
|
const mv = {
|
|
7194
7194
|
hash: "svelte-1rlyajf",
|
|
7195
7195
|
code: `.wrapper.svelte-1rlyajf {width:var(--size);height:var(--size);}.circle.svelte-1rlyajf {width:var(--size);height:var(--size);background-color:var(--color);animation-duration:var(--duration);border-radius:100%;display:inline-block;
|
|
@@ -7245,7 +7245,7 @@ function bv(t, e) {
|
|
|
7245
7245
|
}), L(t, l), de(o);
|
|
7246
7246
|
}
|
|
7247
7247
|
fe(bv, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
7248
|
-
var wv = /* @__PURE__ */
|
|
7248
|
+
var wv = /* @__PURE__ */ D('<div class="wrapper svelte-11s1867"><div></div></div>');
|
|
7249
7249
|
const xv = {
|
|
7250
7250
|
hash: "svelte-11s1867",
|
|
7251
7251
|
code: `.wrapper.svelte-11s1867 {width:var(--size);height:var(--stroke);transform:scale(calc(var(--floatSize) / 75));display:flex;justify-content:center;align-items:center;}.line.svelte-11s1867 {width:var(--size);height:var(--stroke);background:var(--color);border-radius:var(--stroke);transform-origin:center center;
|
|
@@ -7366,7 +7366,7 @@ fe(
|
|
|
7366
7366
|
[],
|
|
7367
7367
|
{ mode: "open" }
|
|
7368
7368
|
);
|
|
7369
|
-
var yv = /* @__PURE__ */
|
|
7369
|
+
var yv = /* @__PURE__ */ D("<div></div>"), _v = /* @__PURE__ */ D('<div class="wrapper svelte-1et11w8"></div>');
|
|
7370
7370
|
const Cv = {
|
|
7371
7371
|
hash: "svelte-1et11w8",
|
|
7372
7372
|
code: `.wrapper.svelte-1et11w8 {height:var(--size);width:var(--size);display:inline-block;text-align:center;font-size:10px;}.rect.svelte-1et11w8 {height:100%;width:10%;display:inline-block;margin-right:4px;transform:scaleY(0.4);background-color:var(--color);
|
|
@@ -7429,7 +7429,7 @@ function Sv(t, e) {
|
|
|
7429
7429
|
}), E(c), N(() => pe(c, `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`)), L(t, c), de(u);
|
|
7430
7430
|
}
|
|
7431
7431
|
fe(Sv, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
7432
|
-
var zv = /* @__PURE__ */
|
|
7432
|
+
var zv = /* @__PURE__ */ D("<div></div>"), Tv = /* @__PURE__ */ D('<div class="wrapper svelte-1u7a0eb"></div>');
|
|
7433
7433
|
const Ev = {
|
|
7434
7434
|
hash: "svelte-1u7a0eb",
|
|
7435
7435
|
code: `.wrapper.svelte-1u7a0eb {height:calc(var(--size) / 15);width:calc(var(--size) * 2);background-color:var(--rgba);position:relative;overflow:hidden;background-clip:padding-box;}.lines.svelte-1u7a0eb {height:calc(var(--size) / 15);background-color:var(--color);}.small-lines.svelte-1u7a0eb {position:absolute;overflow:hidden;background-clip:padding-box;display:block;border-radius:2px;will-change:left, right;animation-fill-mode:forwards;}.small-lines.\\31 .svelte-1u7a0eb{
|
|
@@ -7516,7 +7516,7 @@ function Iv(t, e) {
|
|
|
7516
7516
|
}), E(u), N(() => pe(u, `--size: ${s() ?? ""}${r() ?? ""}; --rgba:${h(o) ?? ""}`)), L(t, u), de(l);
|
|
7517
7517
|
}
|
|
7518
7518
|
fe(Iv, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
7519
|
-
var Av = /* @__PURE__ */
|
|
7519
|
+
var Av = /* @__PURE__ */ D("<div></div>"), $v = /* @__PURE__ */ D('<div class="wrapper svelte-1ctay1k"></div>');
|
|
7520
7520
|
const Mv = {
|
|
7521
7521
|
hash: "svelte-1ctay1k",
|
|
7522
7522
|
code: `.wrapper.svelte-1ctay1k {width:var(--size);height:var(--size);}.circle.svelte-1ctay1k {border-radius:100%;animation-fill-mode:both;position:absolute;opacity:0;width:var(--size);height:var(--size);background-color:var(--color);
|
|
@@ -7582,7 +7582,7 @@ function qv(t, e) {
|
|
|
7582
7582
|
}), E(c), N(() => pe(c, `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), L(t, c), de(u);
|
|
7583
7583
|
}
|
|
7584
7584
|
fe(qv, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
7585
|
-
var Lv = /* @__PURE__ */
|
|
7585
|
+
var Lv = /* @__PURE__ */ D("<div></div>"), Rv = /* @__PURE__ */ D('<div class="wrapper svelte-c5p9k6"></div>');
|
|
7586
7586
|
const Dv = {
|
|
7587
7587
|
hash: "svelte-c5p9k6",
|
|
7588
7588
|
code: `.wrapper.svelte-c5p9k6 {position:relative;width:var(--size);height:var(--size);}.border.svelte-c5p9k6 {border-color:var(--color);position:absolute;top:0px;left:0px;width:var(--size);height:var(--size);opacity:0.4;perspective:800px;border-width:6px;border-style:solid;border-image:initial;border-radius:100%;}.border.\\31 .svelte-c5p9k6{
|
|
@@ -7650,7 +7650,7 @@ function Pv(t, e) {
|
|
|
7650
7650
|
}), E(l), N(() => pe(l, `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), L(t, l), de(o);
|
|
7651
7651
|
}
|
|
7652
7652
|
fe(Pv, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
7653
|
-
var Fv = /* @__PURE__ */
|
|
7653
|
+
var Fv = /* @__PURE__ */ D("<div></div>"), jv = /* @__PURE__ */ D('<div class="wrapper svelte-mqydc1"></div>');
|
|
7654
7654
|
const Ov = {
|
|
7655
7655
|
hash: "svelte-mqydc1",
|
|
7656
7656
|
code: `.wrapper.svelte-mqydc1 {height:var(--size);width:var(--size);display:flex;align-items:center;justify-content:center;}.dot.svelte-mqydc1 {height:var(--dotSize);width:var(--dotSize);background-color:var(--color);margin:2px;display:inline-block;border-radius:100%;
|
|
@@ -7732,7 +7732,7 @@ function Nv(t, e) {
|
|
|
7732
7732
|
}), E(c), N(() => pe(c, `--size:${s() ?? ""}${r() ?? ""}; --duration: ${i() ?? ""};`)), L(t, c), de(u);
|
|
7733
7733
|
}
|
|
7734
7734
|
fe(Nv, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
7735
|
-
var Uv = /* @__PURE__ */
|
|
7735
|
+
var Uv = /* @__PURE__ */ D('<div class="wrapper svelte-10ysxtf"><div></div></div>');
|
|
7736
7736
|
const Bv = {
|
|
7737
7737
|
hash: "svelte-10ysxtf",
|
|
7738
7738
|
code: `.wrapper.svelte-10ysxtf {width:var(--size);height:calc(var(--size) / 2);overflow:hidden;}.rainbow.svelte-10ysxtf {width:var(--size);height:var(--size);border-left-color:transparent;border-bottom-color:transparent;border-top-color:var(--color);border-right-color:var(--color);box-sizing:border-box;transform:rotate(-200deg);border-radius:50%;border-style:solid;
|
|
@@ -7797,7 +7797,7 @@ function Hv(t, e) {
|
|
|
7797
7797
|
}), L(t, l), de(o);
|
|
7798
7798
|
}
|
|
7799
7799
|
fe(Hv, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
7800
|
-
var Yv = /* @__PURE__ */
|
|
7800
|
+
var Yv = /* @__PURE__ */ D('<div class="wrapper svelte-1uk4jqe"><div></div></div>');
|
|
7801
7801
|
const Gv = {
|
|
7802
7802
|
hash: "svelte-1uk4jqe",
|
|
7803
7803
|
code: `.wrapper.svelte-1uk4jqe {width:calc(var(--size) * 1.3);height:calc(var(--size) * 1.3);display:flex;justify-content:center;align-items:center;}.firework.svelte-1uk4jqe {border:calc(var(--size) / 10) dotted var(--color);width:var(--size);height:var(--size);border-radius:50%;
|
|
@@ -7858,7 +7858,7 @@ function Jv(t, e) {
|
|
|
7858
7858
|
}), L(t, l), de(o);
|
|
7859
7859
|
}
|
|
7860
7860
|
fe(Jv, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
7861
|
-
var Vv = /* @__PURE__ */
|
|
7861
|
+
var Vv = /* @__PURE__ */ D("<div></div>"), Wv = /* @__PURE__ */ D('<div class="wrapper svelte-1yesw5o"></div>');
|
|
7862
7862
|
const Zv = {
|
|
7863
7863
|
hash: "svelte-1yesw5o",
|
|
7864
7864
|
code: `.wrapper.svelte-1yesw5o {position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:calc(var(--size) / 2.5);}.cube.svelte-1yesw5o {position:absolute;top:0px;width:calc(var(--size) / 5);height:calc(var(--size) / 2.5);background-color:var(--color);
|
|
@@ -7922,7 +7922,7 @@ function Pi(t, e) {
|
|
|
7922
7922
|
}), E(c), N(() => pe(c, `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""}`)), L(t, c), de(u);
|
|
7923
7923
|
}
|
|
7924
7924
|
fe(Pi, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
7925
|
-
var Xv = /* @__PURE__ */
|
|
7925
|
+
var Xv = /* @__PURE__ */ D("<div></div>"), Qv = /* @__PURE__ */ D('<div class="wrapper svelte-pnnsu3"></div>');
|
|
7926
7926
|
const Kv = {
|
|
7927
7927
|
hash: "svelte-pnnsu3",
|
|
7928
7928
|
code: `.wrapper.svelte-pnnsu3 {position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:var(--size);}.ring.svelte-pnnsu3 {position:absolute;border:2px solid var(--color);border-radius:50%;background-color:transparent;
|
|
@@ -7986,7 +7986,7 @@ function em(t, e) {
|
|
|
7986
7986
|
}), E(c), N(() => pe(c, `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --motionOne: ${-s() / 5}${r() ?? ""}; --motionTwo: ${+s() / 4}${r() ?? ""}; --motionThree: ${-s() / 5}${r() ?? ""}; --duration: ${i() ?? ""};`)), L(t, c), de(u);
|
|
7987
7987
|
}
|
|
7988
7988
|
fe(em, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
7989
|
-
var tm = /* @__PURE__ */
|
|
7989
|
+
var tm = /* @__PURE__ */ D("<div></div>"), nm = /* @__PURE__ */ D('<div class="wrapper svelte-1luu01o"><div></div></div>');
|
|
7990
7990
|
const rm = {
|
|
7991
7991
|
hash: "svelte-1luu01o",
|
|
7992
7992
|
code: `.wrapper.svelte-1luu01o {height:var(--size);width:var(--size);display:flex;justify-content:center;align-items:center;}.spinner.svelte-1luu01o {height:var(--size);width:var(--size);
|
|
@@ -8058,7 +8058,7 @@ function im(t, e) {
|
|
|
8058
8058
|
}), L(t, c), de(u);
|
|
8059
8059
|
}
|
|
8060
8060
|
fe(im, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
8061
|
-
var sm = /* @__PURE__ */
|
|
8061
|
+
var sm = /* @__PURE__ */ D("<div></div>");
|
|
8062
8062
|
const am = {
|
|
8063
8063
|
hash: "svelte-11g0eio",
|
|
8064
8064
|
code: `.square.svelte-11g0eio {height:var(--size);width:var(--size);background-color:var(--color);
|
|
@@ -8123,7 +8123,7 @@ function om(t, e) {
|
|
|
8123
8123
|
}), L(t, l), de(o);
|
|
8124
8124
|
}
|
|
8125
8125
|
fe(om, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
8126
|
-
var lm = /* @__PURE__ */
|
|
8126
|
+
var lm = /* @__PURE__ */ D('<div class="wrapper svelte-og5eod"><div></div></div>');
|
|
8127
8127
|
const cm = {
|
|
8128
8128
|
hash: "svelte-og5eod",
|
|
8129
8129
|
code: `.wrapper.svelte-og5eod {position:relative;display:flex;justify-content:center;align-items:center;width:var(--size);height:var(--size);}.shadow.svelte-og5eod {color:var(--color);font-size:var(--size);overflow:hidden;width:var(--size);height:var(--size);border-radius:50%;margin:28px auto;position:relative;transform:translateZ(0);
|
|
@@ -8206,7 +8206,7 @@ function um(t, e) {
|
|
|
8206
8206
|
}), L(t, l), de(o);
|
|
8207
8207
|
}
|
|
8208
8208
|
fe(um, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
8209
|
-
var dm = /* @__PURE__ */
|
|
8209
|
+
var dm = /* @__PURE__ */ D("<div><div></div> <div></div></div>");
|
|
8210
8210
|
const fm = {
|
|
8211
8211
|
hash: "svelte-15q7j0m",
|
|
8212
8212
|
code: `.wrapper.svelte-15q7j0m {height:var(--size);width:var(--size);border-radius:100%;
|
|
@@ -8263,7 +8263,7 @@ function hm(t, e) {
|
|
|
8263
8263
|
}), L(t, c), de(u);
|
|
8264
8264
|
}
|
|
8265
8265
|
fe(hm, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
8266
|
-
var pm = /* @__PURE__ */
|
|
8266
|
+
var pm = /* @__PURE__ */ D('<div class="wrapper svelte-1gr3osz"><div><div id="top" class="mask svelte-1gr3osz"><div class="plane svelte-1gr3osz"></div></div> <div id="middle" class="mask svelte-1gr3osz"><div class="plane svelte-1gr3osz"></div></div> <div id="bottom" class="mask svelte-1gr3osz"><div class="plane svelte-1gr3osz"></div></div></div></div>');
|
|
8267
8267
|
const gm = {
|
|
8268
8268
|
hash: "svelte-1gr3osz",
|
|
8269
8269
|
code: `.wrapper.svelte-1gr3osz {height:var(--size);width:var(--size);position:relative;display:flex;justify-content:center;align-items:center;}.wrapper.svelte-1gr3osz :where(.svelte-1gr3osz) {line-height:0;box-sizing:border-box;}.spinner-inner.svelte-1gr3osz {height:var(--size);width:var(--size);transform:scale(calc(var(--size) / 70));}.mask.svelte-1gr3osz {position:absolute;border-radius:2px;overflow:hidden;perspective:1000;backface-visibility:hidden;}.plane.svelte-1gr3osz {background:var(--color);width:400%;height:100%;position:absolute;z-index:100;perspective:1000;backface-visibility:hidden;}#top.svelte-1gr3osz .plane:where(.svelte-1gr3osz) {z-index:2000;
|
|
@@ -8342,7 +8342,7 @@ function vm(t, e) {
|
|
|
8342
8342
|
}), L(t, u), de(l);
|
|
8343
8343
|
}
|
|
8344
8344
|
fe(vm, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
8345
|
-
var mm = /* @__PURE__ */
|
|
8345
|
+
var mm = /* @__PURE__ */ D('<span><div class="svelte-1wtjgh6"></div> <div class="svelte-1wtjgh6"></div> <div class="svelte-1wtjgh6"></div></span>');
|
|
8346
8346
|
const bm = {
|
|
8347
8347
|
hash: "svelte-1wtjgh6",
|
|
8348
8348
|
code: `span.svelte-1wtjgh6 {width:var(--size);height:calc(var(--size) / 4);position:relative;display:block;}div.svelte-1wtjgh6 {width:calc(var(--size) / 4);height:calc(var(--size) / 4);position:absolute;left:0%;top:0;border-radius:2px;background:var(--color);transform:translateX(-50%) rotate(45deg) scale(0);
|
|
@@ -8400,7 +8400,7 @@ function wm(t, e) {
|
|
|
8400
8400
|
}), L(t, l), de(o);
|
|
8401
8401
|
}
|
|
8402
8402
|
fe(wm, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
8403
|
-
var xm = /* @__PURE__ */
|
|
8403
|
+
var xm = /* @__PURE__ */ D("<div></div>");
|
|
8404
8404
|
const km = {
|
|
8405
8405
|
hash: "svelte-1s9xlzj",
|
|
8406
8406
|
code: `div.svelte-1s9xlzj {position:relative;width:var(--size);height:var(--size);background-color:transparent;box-shadow:inset 0px 0px 0px 2px var(--color);border-radius:50%;}div.svelte-1s9xlzj::before,
|
|
@@ -8456,7 +8456,7 @@ function ym(t, e) {
|
|
|
8456
8456
|
}), L(t, l), de(o);
|
|
8457
8457
|
}
|
|
8458
8458
|
fe(ym, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
8459
|
-
var _m = /* @__PURE__ */
|
|
8459
|
+
var _m = /* @__PURE__ */ D("<div></div>"), Cm = /* @__PURE__ */ D('<div class="wrapper svelte-1rumbqe"></div>');
|
|
8460
8460
|
const Sm = {
|
|
8461
8461
|
hash: "svelte-1rumbqe",
|
|
8462
8462
|
code: `.wrapper.svelte-1rumbqe {position:relative;display:flex;justify-content:center;align-items:center;width:calc(var(--size) * 2.5);height:var(--size);overflow:hidden;}.bar.svelte-1rumbqe {position:absolute;top:calc(var(--size) / 10);width:calc(var(--size) / 5);height:calc(var(--size) / 10);margin-top:calc(var(--size) - var(--size) / 10);transform:skewY(0deg);background-color:var(--color);
|
|
@@ -8521,7 +8521,7 @@ function zm(t, e) {
|
|
|
8521
8521
|
}), E(c), N(() => pe(c, `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --duration: ${i() ?? ""};`)), L(t, c), de(u);
|
|
8522
8522
|
}
|
|
8523
8523
|
fe(zm, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
8524
|
-
var Tm = /* @__PURE__ */
|
|
8524
|
+
var Tm = /* @__PURE__ */ D("<span></span>"), Em = /* @__PURE__ */ D('<span class="wrapper svelte-14u7y84"></span>');
|
|
8525
8525
|
const Im = {
|
|
8526
8526
|
hash: "svelte-14u7y84",
|
|
8527
8527
|
code: `.wrapper.svelte-14u7y84 {display:inherit;position:relative;width:var(--size);height:var(--size);}.circle.svelte-14u7y84 {position:absolute;width:var(--size);height:var(--size);border:thick solid var(--rgba);border-radius:50%;opacity:1;top:0px;left:0px;animation-fill-mode:both;animation-iteration-count:infinite;animation-timing-function:cubic-bezier(0.165, 0.84, 0.44, 1), cubic-bezier(0.3, 0.61, 0.355, 1);animation-direction:normal, normal;animation-fill-mode:none, none;animation-play-state:running, running;
|
|
@@ -8593,7 +8593,7 @@ function Am(t, e) {
|
|
|
8593
8593
|
}), E(f), N(() => pe(f, `--size: ${s() ?? ""}${r() ?? ""}; --color: ${n() ?? ""}; --rgba: ${h(u) ?? ""}; --duration: ${i() ?? ""}`)), L(t, f), de(c);
|
|
8594
8594
|
}
|
|
8595
8595
|
fe(Am, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
8596
|
-
var $m = /* @__PURE__ */
|
|
8596
|
+
var $m = /* @__PURE__ */ D("<div></div>");
|
|
8597
8597
|
const Mm = {
|
|
8598
8598
|
hash: "svelte-jnrlfo",
|
|
8599
8599
|
code: `.wrapper.svelte-jnrlfo {width:var(--size);height:calc(var(--size) * 1.5);margin-left:var(--size);background:var(--color);display:inline-block;position:relative;box-sizing:border-box;
|
|
@@ -8648,7 +8648,7 @@ function qm(t, e) {
|
|
|
8648
8648
|
}), L(t, l), de(o);
|
|
8649
8649
|
}
|
|
8650
8650
|
fe(qm, { color: {}, unit: {}, duration: {}, size: {}, pause: {} }, [], [], { mode: "open" });
|
|
8651
|
-
var Lm = /* @__PURE__ */
|
|
8651
|
+
var Lm = /* @__PURE__ */ D("<div></div>");
|
|
8652
8652
|
const Rm = {
|
|
8653
8653
|
hash: "svelte-10o3xbl",
|
|
8654
8654
|
code: `.wrapper.svelte-10o3xbl {width:var(--size);height:calc(var(--size) * 1.5);margin-left:var(--size);margin-top:var(--size);background:var(--color);display:inline-block;position:relative;box-sizing:border-box;
|
|
@@ -8774,7 +8774,7 @@ const gi = (t, e) => `${t}-${e}`, cc = (t) => t.isCommon ? t.filename.split(".")
|
|
|
8774
8774
|
}
|
|
8775
8775
|
return null;
|
|
8776
8776
|
};
|
|
8777
|
-
var Gm = /* @__PURE__ */
|
|
8777
|
+
var Gm = /* @__PURE__ */ D('<div class="text-center p-3"><!> <p class="mt-2 text-muted"> </p></div>'), Jm = /* @__PURE__ */ D('<div class="text-center p-3"><i class="fa-solid fa-search text-muted fa-2x"></i> <p class="mt-2 text-muted"> </p></div>'), Vm = /* @__PURE__ */ D('<div class="text-center p-3"><i class="fa-solid fa-file-circle-exclamation text-muted fa-2x"></i> <p class="mt-2 text-muted"><!></p></div>'), Wm = /* @__PURE__ */ D('<div class="document-path svelte-wnzvlk"> </div>'), Zm = /* @__PURE__ */ D('<div class="selected-indicator svelte-wnzvlk"><i class="fa-solid fa-circle-check"></i></div>'), Xm = /* @__PURE__ */ D('<button><div class="document-icon svelte-wnzvlk"><i></i></div> <div class="document-info"><div class="document-title svelte-wnzvlk"> </div> <!></div> <!></button>'), Qm = /* @__PURE__ */ D('<div class="documents-list svelte-wnzvlk"></div>'), Km = /* @__PURE__ */ D('<div class="modal-overlay svelte-wnzvlk"><div class="document-search-modal svelte-wnzvlk"><div class="modal-header svelte-wnzvlk"><h5 class="svelte-wnzvlk"> </h5> <button class="btn btn-sm btn-danger aks-btn-rounded" aria-label="Chiudi modale"><i class="fa-solid fa-xmark"></i></button></div> <div class="modal-body svelte-wnzvlk"><div class="search-container svelte-wnzvlk"><div class="input-group"><span class="input-group-text svelte-wnzvlk"><i class="fa-solid fa-search"></i></span> <input type="text" class="form-control" style="color: black;"/></div></div> <div class="documents-container svelte-wnzvlk"><!></div></div></div></div>');
|
|
8778
8778
|
const e0 = {
|
|
8779
8779
|
hash: "svelte-wnzvlk",
|
|
8780
8780
|
code: `\r
|
|
@@ -8789,43 +8789,43 @@ function fc(t, e) {
|
|
|
8789
8789
|
r(!1), k(p, ""), m();
|
|
8790
8790
|
}, m = () => {
|
|
8791
8791
|
k(l, [], !0), k(u, [], !0), k(c, [], !0), k(f, [], !0);
|
|
8792
|
-
}, x = (
|
|
8793
|
-
if (
|
|
8792
|
+
}, x = (R) => n()[R._id] ? (delete n()[R._id], !0) : !1, S = (R) => Object.keys(n()).length >= R ? (alert(ip({ count: R })), !1) : !0, T = (R) => {
|
|
8793
|
+
if (R instanceof Cn)
|
|
8794
8794
|
return {
|
|
8795
|
-
title:
|
|
8796
|
-
ext_id:
|
|
8797
|
-
gendoc_id:
|
|
8798
|
-
isCommon:
|
|
8795
|
+
title: R.title,
|
|
8796
|
+
ext_id: R.externalId,
|
|
8797
|
+
gendoc_id: R.gendocId,
|
|
8798
|
+
isCommon: R.isCommon
|
|
8799
8799
|
};
|
|
8800
|
-
if (
|
|
8800
|
+
if (R instanceof Sn)
|
|
8801
8801
|
return {
|
|
8802
|
-
title:
|
|
8803
|
-
ext_id:
|
|
8802
|
+
title: R.title,
|
|
8803
|
+
ext_id: R.externalId,
|
|
8804
8804
|
gendoc_id: "",
|
|
8805
8805
|
isCommon: !0
|
|
8806
8806
|
};
|
|
8807
|
-
if (
|
|
8807
|
+
if (R instanceof Gn)
|
|
8808
8808
|
return {
|
|
8809
|
-
title:
|
|
8810
|
-
ext_id:
|
|
8811
|
-
gendoc_id:
|
|
8809
|
+
title: R.name + ".akd",
|
|
8810
|
+
ext_id: R._id,
|
|
8811
|
+
gendoc_id: R._id,
|
|
8812
8812
|
isCommon: !1
|
|
8813
8813
|
};
|
|
8814
|
-
if (
|
|
8814
|
+
if (R instanceof zn)
|
|
8815
8815
|
return {
|
|
8816
|
-
title:
|
|
8817
|
-
ext_id:
|
|
8816
|
+
title: R.name + ".tldv",
|
|
8817
|
+
ext_id: R.externalMeetingId,
|
|
8818
8818
|
gendoc_id: "",
|
|
8819
8819
|
isCommon: !0
|
|
8820
8820
|
};
|
|
8821
8821
|
throw new Error("Unknown document type");
|
|
8822
|
-
}, $ = (
|
|
8823
|
-
if (x(
|
|
8822
|
+
}, $ = (R) => {
|
|
8823
|
+
if (x(R))
|
|
8824
8824
|
return;
|
|
8825
|
-
const W =
|
|
8826
|
-
S(W) && n(n()[
|
|
8827
|
-
}, I = async (
|
|
8828
|
-
if (
|
|
8825
|
+
const W = R instanceof Gn || R instanceof zn ? s.gendoc : s.default;
|
|
8826
|
+
S(W) && n(n()[R._id] = T(R), !0);
|
|
8827
|
+
}, I = async (R, W, ie, re) => {
|
|
8828
|
+
if (R.length < a) {
|
|
8829
8829
|
ie([]);
|
|
8830
8830
|
return;
|
|
8831
8831
|
}
|
|
@@ -8838,8 +8838,8 @@ function fc(t, e) {
|
|
|
8838
8838
|
} finally {
|
|
8839
8839
|
k(d, !1);
|
|
8840
8840
|
}
|
|
8841
|
-
}, A = (
|
|
8842
|
-
const W =
|
|
8841
|
+
}, A = (R) => {
|
|
8842
|
+
const W = R.target;
|
|
8843
8843
|
k(p, W.value, !0);
|
|
8844
8844
|
const re = {
|
|
8845
8845
|
normative: () => I(h(p), () => kt.getForge(h(p), i()), (U) => k(u, U, !0), "Errore nella ricerca forge:"),
|
|
@@ -8853,20 +8853,20 @@ function fc(t, e) {
|
|
|
8853
8853
|
get attachments() {
|
|
8854
8854
|
return n();
|
|
8855
8855
|
},
|
|
8856
|
-
set attachments(
|
|
8857
|
-
n(
|
|
8856
|
+
set attachments(R) {
|
|
8857
|
+
n(R), b();
|
|
8858
8858
|
},
|
|
8859
8859
|
get showDocumentSearchModal() {
|
|
8860
8860
|
return r();
|
|
8861
8861
|
},
|
|
8862
|
-
set showDocumentSearchModal(
|
|
8863
|
-
r(
|
|
8862
|
+
set showDocumentSearchModal(R) {
|
|
8863
|
+
r(R), b();
|
|
8864
8864
|
},
|
|
8865
8865
|
get modeSelected() {
|
|
8866
8866
|
return i();
|
|
8867
8867
|
},
|
|
8868
|
-
set modeSelected(
|
|
8869
|
-
i(
|
|
8868
|
+
set modeSelected(R) {
|
|
8869
|
+
i(R), b();
|
|
8870
8870
|
}
|
|
8871
8871
|
}, y = Km(), C = M(y), q = M(C), B = M(q), J = M(B);
|
|
8872
8872
|
E(B);
|
|
@@ -8876,15 +8876,15 @@ function fc(t, e) {
|
|
|
8876
8876
|
ha(_e), E(X), E(H);
|
|
8877
8877
|
var xe = O(H, 2), ye = M(xe);
|
|
8878
8878
|
{
|
|
8879
|
-
var Me = (
|
|
8879
|
+
var Me = (R) => {
|
|
8880
8880
|
var W = Gm(), ie = M(W);
|
|
8881
8881
|
Pi(ie, { size: "30", color: "#295dcf" });
|
|
8882
8882
|
var re = O(ie, 2), U = M(re, !0);
|
|
8883
|
-
E(re), E(W), N((Q) => be(U, Q), [() => mh()]), L(
|
|
8884
|
-
}, P = (
|
|
8883
|
+
E(re), E(W), N((Q) => be(U, Q), [() => mh()]), L(R, W);
|
|
8884
|
+
}, P = (R) => {
|
|
8885
8885
|
var W = Jm(), ie = O(M(W), 2), re = M(ie, !0);
|
|
8886
|
-
E(ie), E(W), N((U) => be(re, U), [() => xh()]), L(
|
|
8887
|
-
}, ee = (
|
|
8886
|
+
E(ie), E(W), N((U) => be(re, U), [() => xh()]), L(R, W);
|
|
8887
|
+
}, ee = (R) => {
|
|
8888
8888
|
var W = Vm(), ie = O(M(W), 2), re = M(ie);
|
|
8889
8889
|
{
|
|
8890
8890
|
var U = (te) => {
|
|
@@ -8904,8 +8904,8 @@ function fc(t, e) {
|
|
|
8904
8904
|
i() === "normative" || i() === "suite" ? te(U) : i() === "gendoc" ? te(Q, 1) : i() === "transcriptions" ? te(qe, 2) : te(Ae, -1);
|
|
8905
8905
|
});
|
|
8906
8906
|
}
|
|
8907
|
-
E(ie), E(W), L(
|
|
8908
|
-
}, j = (
|
|
8907
|
+
E(ie), E(W), L(R, W);
|
|
8908
|
+
}, j = (R) => {
|
|
8909
8909
|
var W = Qm();
|
|
8910
8910
|
He(W, 21, () => h(g), Je, (ie, re) => {
|
|
8911
8911
|
const U = /* @__PURE__ */ Te(() => Bm(h(re), h(o))), Q = /* @__PURE__ */ Te(() => Hm(h(re))), qe = /* @__PURE__ */ Te(() => Ym(h(re)));
|
|
@@ -8939,15 +8939,15 @@ function fc(t, e) {
|
|
|
8939
8939
|
E(Ae), N(() => {
|
|
8940
8940
|
te = Z(Ae, 1, "document-item svelte-wnzvlk", null, te, { selected: n()[h(re)._id] }), Z(Le, 1, Ki(h(U).class), "svelte-wnzvlk"), pe(Le, `color: ${h(U).color}`), be(_t, h(Q));
|
|
8941
8941
|
}), Ce("click", Ae, () => $(h(re))), L(ie, Ae);
|
|
8942
|
-
}), E(W), L(
|
|
8942
|
+
}), E(W), L(R, W);
|
|
8943
8943
|
};
|
|
8944
|
-
le(ye, (
|
|
8945
|
-
h(d) ?
|
|
8944
|
+
le(ye, (R) => {
|
|
8945
|
+
h(d) ? R(Me) : h(p).length < a ? R(P, 1) : h(g).length === 0 ? R(ee, 2) : R(j, -1);
|
|
8946
8946
|
});
|
|
8947
8947
|
}
|
|
8948
8948
|
return E(xe), E(se), E(C), E(y), N(
|
|
8949
|
-
(
|
|
8950
|
-
be(J, `${
|
|
8949
|
+
(R, W, ie, re) => {
|
|
8950
|
+
be(J, `${R ?? ""}
|
|
8951
8951
|
${W ?? ""}`), ae(_e, "placeholder", `${ie ?? ""} ${re ?? ""} (min 3 caratteri)...`), Hl(_e, h(p));
|
|
8952
8952
|
},
|
|
8953
8953
|
[
|
|
@@ -8970,7 +8970,7 @@ fe(
|
|
|
8970
8970
|
[],
|
|
8971
8971
|
{ mode: "open" }
|
|
8972
8972
|
);
|
|
8973
|
-
var t0 = /* @__PURE__ */
|
|
8973
|
+
var t0 = /* @__PURE__ */ D('<div class="dropdown-content svelte-beso1r"><button><i class="fa-solid fa-file-circle-plus svelte-beso1r"></i> <span> </span></button> <button><i class="fa-solid fa-upload svelte-beso1r"></i> <span> </span></button></div>'), n0 = /* @__PURE__ */ D('<div class="plus-button-container svelte-beso1r"><button><i></i></button> <!></div>');
|
|
8974
8974
|
const r0 = {
|
|
8975
8975
|
hash: "svelte-beso1r",
|
|
8976
8976
|
code: `.plus-button-container.svelte-beso1r {position:relative;flex-shrink:0;}.plus-button.svelte-beso1r {display:flex;justify-content:center;align-items:center;padding:0;width:38px;height:38px;border-radius:50%;background-color:#f8f9fa;color:#295dcf;border:2px solid #e9ecef;transition:all 0.2s ease;font-size:1.1rem;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.plus-button.svelte-beso1r:hover {background-color:#295dcf;color:white;border-color:#295dcf;transform:scale(1.05);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);}.plus-button.svelte-beso1r:active {transform:scale(0.95);}.plus-button-active.svelte-beso1r {background-color:#295dcf;color:white;border-color:#295dcf;}.plus-button-active.svelte-beso1r:hover {background-color:#1d4a9e;border-color:#1d4a9e;transform:scale(1.05);}\r
|
|
@@ -9060,7 +9060,7 @@ fe(
|
|
|
9060
9060
|
[],
|
|
9061
9061
|
{ mode: "open" }
|
|
9062
9062
|
);
|
|
9063
|
-
var i0 = /* @__PURE__ */
|
|
9063
|
+
var i0 = /* @__PURE__ */ D("<option>Generatore di Normative</option>"), s0 = /* @__PURE__ */ D("<option>Analisi Rischi</option>"), a0 = /* @__PURE__ */ D('<select class="mode-select svelte-bv3yfo" aria-label="Select mode"><option>Auto</option><option>Manuale Suite</option><option> </option><option>Knowledge Base</option><option>GenDoc</option><option>Trascrizioni</option><!><option>Agente Suite</option><!></select>');
|
|
9064
9064
|
const o0 = {
|
|
9065
9065
|
hash: "svelte-bv3yfo",
|
|
9066
9066
|
code: ".mode-select.svelte-bv3yfo {flex-shrink:0;height:32px;padding:0 8px;border-radius:16px;border:2px solid #e9ecef;background-color:#f8f9fa;color:#295dcf;font-size:0.8rem;font-weight:500;cursor:pointer;transition:all 0.2s ease;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);outline:none;max-width:120px;}.mode-select.svelte-bv3yfo:hover {background-color:#e9ecef;border-color:#295dcf;}.mode-select.svelte-bv3yfo:focus {border-color:#295dcf;box-shadow:0 0 0 3px rgba(41, 93, 207, 0.1);}"
|
|
@@ -9128,7 +9128,7 @@ function pc(t, e) {
|
|
|
9128
9128
|
}
|
|
9129
9129
|
lt(["change"]);
|
|
9130
9130
|
fe(pc, { modeSelected: {}, userLevel: {}, handleModeChange: {} }, [], [], { mode: "open" });
|
|
9131
|
-
var l0 = /* @__PURE__ */
|
|
9131
|
+
var l0 = /* @__PURE__ */ D('<div class="attachment-title noopen-file-button svelte-1i2ceqk"> </div>'), c0 = /* @__PURE__ */ D('<button class="attachment-title open-file-button svelte-1i2ceqk"> </button>'), u0 = /* @__PURE__ */ D('<div><i></i> <!> <button aria-label="Remove attachment"><i class="fa-solid fa-xmark svelte-1i2ceqk"></i></button></div>'), d0 = /* @__PURE__ */ D('<div class="attachments-container svelte-1i2ceqk"></div>');
|
|
9132
9132
|
const f0 = {
|
|
9133
9133
|
hash: "svelte-1i2ceqk",
|
|
9134
9134
|
code: `.noopen-file-button.svelte-1i2ceqk {background:none;border:none;padding:0;font-size:0.875rem;color:black;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-1i2ceqk {background:none;border:none;cursor:pointer;padding:0;font-size:0.875rem;color:white;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;min-width:0;}.open-file-button.svelte-1i2ceqk:hover {background-color:transparent;text-decoration:underline;}.attachments-container.svelte-1i2ceqk {display:flex;gap:5px;overflow-x:auto;min-width:0;flex:1;padding:2px 0;\r
|
|
@@ -9331,7 +9331,7 @@ class h0 {
|
|
|
9331
9331
|
}
|
|
9332
9332
|
}
|
|
9333
9333
|
}
|
|
9334
|
-
var p0 = /* @__PURE__ */
|
|
9334
|
+
var p0 = /* @__PURE__ */ D('<button class="btn send-button stop-recording-btn svelte-1mfso0n" aria-label="Stop recording"><i class="fa-solid fa-stop"></i></button>'), g0 = /* @__PURE__ */ D('<button class="btn send-button aks-btn-answer svelte-1mfso0n" aria-label="Synthesizing" disabled=""><!></button>'), v0 = /* @__PURE__ */ D('<button class="btn send-button aks-btn-answer svelte-1mfso0n" aria-label="Start recording"><i class="fa-solid fa-microphone"></i></button>'), m0 = /* @__PURE__ */ D('<button class="btn send-button stop-stream-btn svelte-1mfso0n" aria-label="Stop message"><i class="fa-solid fa-stop"></i></button>'), b0 = /* @__PURE__ */ D('<button class="btn send-button aks-btn-answer svelte-1mfso0n" aria-label="Loading" disabled=""><!></button>'), w0 = /* @__PURE__ */ D('<button class="btn send-button aks-btn-answer send-message-btn svelte-1mfso0n" aria-label="Send message"><i class="fa-solid fa-paper-plane"></i></button>'), x0 = /* @__PURE__ */ D('<div class="send-buttons svelte-1mfso0n"><!> <!></div>');
|
|
9335
9335
|
const k0 = {
|
|
9336
9336
|
hash: "svelte-1mfso0n",
|
|
9337
9337
|
code: ".send-buttons.svelte-1mfso0n {display:flex;gap:5px;flex-shrink:0;}.send-button.svelte-1mfso0n {display:flex;justify-content:center;align-items:center;padding:0;width:38px;height:38px;border-radius:50%;transition:all 0.2s ease;border:none;font-size:1rem;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.send-button.svelte-1mfso0n:hover {transform:scale(1.05);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);}.send-button.svelte-1mfso0n:active {transform:scale(0.95);}.send-button.aks-btn-answer.svelte-1mfso0n:hover {background-color:#295dcf;border-color:#295dcf;color:white;}.send-button.svelte-1mfso0n:disabled {opacity:0.4;cursor:not-allowed;transform:none;filter:grayscale(0.3);}.send-button.svelte-1mfso0n:disabled:hover {transform:none;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);opacity:0.4;}.send-message-btn.svelte-1mfso0n {background-color:#295dcf;color:white;}.send-message-btn.svelte-1mfso0n:hover {background-color:#1d4a9e;}.stop-recording-btn.svelte-1mfso0n {background-color:#dc3545;color:white;border-color:#dc3545;}.stop-recording-btn.svelte-1mfso0n:hover {background-color:#c82333;border-color:#bd2130;transform:scale(1.05);}.stop-stream-btn.svelte-1mfso0n {background-color:#6c757d;color:white;border-color:#6c757d;}.stop-stream-btn.svelte-1mfso0n:hover {background-color:#5a6268;border-color:#545b62;transform:scale(1.05);}"
|
|
@@ -9479,7 +9479,7 @@ fe(
|
|
|
9479
9479
|
[],
|
|
9480
9480
|
{ mode: "open" }
|
|
9481
9481
|
);
|
|
9482
|
-
var y0 = /* @__PURE__ */
|
|
9482
|
+
var y0 = /* @__PURE__ */ D('<textarea style="color: black !important;" class="form-control form-control-sm svelte-14dks3g" rows="2"></textarea>');
|
|
9483
9483
|
const _0 = {
|
|
9484
9484
|
hash: "svelte-14dks3g",
|
|
9485
9485
|
code: "textarea.svelte-14dks3g {border:none;overflow-y:auto;resize:none;transition:height 0.1s ease;max-height:120px; /* 5 righe circa */font-size:16px;}"
|
|
@@ -9560,7 +9560,7 @@ fe(
|
|
|
9560
9560
|
[],
|
|
9561
9561
|
{ mode: "open" }
|
|
9562
9562
|
);
|
|
9563
|
-
var C0 = /* @__PURE__ */
|
|
9563
|
+
var C0 = /* @__PURE__ */ D('<div class="chat-blocked-message svelte-1eao0ew"><i class="fa-solid fa-clock-rotate-left svelte-1eao0ew"></i> <span class="svelte-1eao0ew"> </span></div>'), S0 = /* @__PURE__ */ D('<div class="top svelte-1eao0ew"><!></div> <div class="bottom svelte-1eao0ew"><div class="controls-row svelte-1eao0ew"><!> <!> <!> <!></div></div>', 1), z0 = /* @__PURE__ */ D('<div class="input svelte-1eao0ew"><!></div> <!>', 1);
|
|
9564
9564
|
const T0 = {
|
|
9565
9565
|
hash: "svelte-1eao0ew",
|
|
9566
9566
|
code: `.input.svelte-1eao0ew {display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;background:white;border-radius:15px;margin:10px;gap:3px;width:calc(100% - 20px);min-width:0;box-sizing:border-box;}.input.svelte-1eao0ew > .top:where(.svelte-1eao0ew) {display:flex;justify-content:center;align-items:center;width:100%;}.input.svelte-1eao0ew > .bottom:where(.svelte-1eao0ew) {display:flex;justify-content:center;align-items:center;width:100%;min-width:0;}.controls-row.svelte-1eao0ew {display:flex;align-items:center;width:100%;gap:5px;min-width:0;}.chat-blocked-message.svelte-1eao0ew {display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 20px;background:linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);border:2px solid #dee2e6;border-radius:12px;color:#6c757d;font-size:0.95rem;font-weight:500;width:100%;box-sizing:border-box;text-align:center;box-shadow:0 2px 4px rgba(0, 0, 0, 0.05);}.chat-blocked-message.svelte-1eao0ew i:where(.svelte-1eao0ew) {font-size:1.2rem;color:#ffc107;\r
|
|
@@ -9706,11 +9706,11 @@ function bc(t, e) {
|
|
|
9706
9706
|
}, se = z0(), H = rt(se), X = M(H);
|
|
9707
9707
|
{
|
|
9708
9708
|
var _e = (P) => {
|
|
9709
|
-
var ee = C0(), j = O(M(ee), 2),
|
|
9710
|
-
E(j), E(ee), N((W) => be(
|
|
9709
|
+
var ee = C0(), j = O(M(ee), 2), R = M(j, !0);
|
|
9710
|
+
E(j), E(ee), N((W) => be(R, W), [() => wp()]), L(P, ee);
|
|
9711
9711
|
}, xe = (P) => {
|
|
9712
|
-
var ee = S0(), j = rt(ee),
|
|
9713
|
-
mc(
|
|
9712
|
+
var ee = S0(), j = rt(ee), R = M(j);
|
|
9713
|
+
mc(R, {
|
|
9714
9714
|
get isRecording() {
|
|
9715
9715
|
return h(x);
|
|
9716
9716
|
},
|
|
@@ -10974,7 +10974,7 @@ function _o(t, e) {
|
|
|
10974
10974
|
...t
|
|
10975
10975
|
}, e) : null;
|
|
10976
10976
|
}
|
|
10977
|
-
var Ib = /* @__PURE__ */ Dl("<svg></svg>"), Ab = /* @__PURE__ */
|
|
10977
|
+
var Ib = /* @__PURE__ */ Dl("<svg></svg>"), Ab = /* @__PURE__ */ D("<span></span>");
|
|
10978
10978
|
function bn(t, e) {
|
|
10979
10979
|
const n = Wd(e, ["children", "$$slots", "$$events", "$$legacy", "$$host"]);
|
|
10980
10980
|
ue(e, !1);
|
|
@@ -12597,7 +12597,7 @@ Ee.walkTokens;
|
|
|
12597
12597
|
Ee.parseInline;
|
|
12598
12598
|
$t.parse;
|
|
12599
12599
|
At.lex;
|
|
12600
|
-
var h1 = /* @__PURE__ */
|
|
12600
|
+
var h1 = /* @__PURE__ */ D('<div><i class="fa-solid fa-paperclip svelte-c54l2r"></i> <span class="svelte-c54l2r"> </span></div>'), p1 = /* @__PURE__ */ D('<div class="user-attachments-list svelte-c54l2r"></div>'), g1 = /* @__PURE__ */ D('<i class="fa-solid fa-check svelte-c54l2r"></i>'), v1 = /* @__PURE__ */ D('<i class="fa-regular fa-copy svelte-c54l2r"></i>'), m1 = /* @__PURE__ */ D('<div><!> <div class="w-100 d-flex message-plus-play svelte-c54l2r" style="justify-content: flex-end; align-items: center; gap: 5px;"><div class="message-column message-column-sent svelte-c54l2r"><div><div class="message-content svelte-c54l2r"></div></div> <div style="display: flex; justify-content: flex-end;"><button aria-label="Copy message"><!></button></div></div></div></div>');
|
|
12601
12601
|
const b1 = {
|
|
12602
12602
|
hash: "svelte-c54l2r",
|
|
12603
12603
|
code: `.message-sent.svelte-c54l2r {display:flex;background:#c8d9ff;border-radius:10px;border-bottom-right-radius:0;width:fit-content;max-width:80%;margin-left:auto;transition:200ms;user-select:text;}.message-sent.light.svelte-c54l2r {background:#4d5766;color:white;}.message-content.svelte-c54l2r {padding:10px;font-size:16px;}.message-column.svelte-c54l2r {display:flex;flex-direction:column;max-width:80%;width:fit-content;}.message-column-sent.svelte-c54l2r .message-sent:where(.svelte-c54l2r) {max-width:100%;margin-left:unset;}.copy-button.svelte-c54l2r {transition:opacity 200ms;background-color:rgba(255, 255, 255, 0.2);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);border:none;color:white;transition:200ms;border-radius:0 0 8px 8px;height:30px;width:30px;padding:0;font-size:18px;margin:0;}.copy-button.light.svelte-c54l2r {background:radial-gradient(\r
|
|
@@ -12696,7 +12696,7 @@ fe(
|
|
|
12696
12696
|
[],
|
|
12697
12697
|
{ mode: "open" }
|
|
12698
12698
|
);
|
|
12699
|
-
var w1 = /* @__PURE__ */
|
|
12699
|
+
var w1 = /* @__PURE__ */ D('<i class="fa-solid fa-spinner fa-spin svelte-6xfjlj"></i>'), x1 = /* @__PURE__ */ D("<i></i>"), k1 = /* @__PURE__ */ D('<div class="document-path svelte-6xfjlj"> </div>'), y1 = /* @__PURE__ */ D('<button><!> <div class="document-info svelte-6xfjlj"><span class="document-title svelte-6xfjlj"> </span> <!></div></button>'), _1 = /* @__PURE__ */ D('<div class="sources-expanded svelte-6xfjlj"><div class="sources-header svelte-6xfjlj"></div> <div class="sources-list svelte-6xfjlj"></div> <div class="sources-footer svelte-6xfjlj"><button class="copy-sources-btn svelte-6xfjlj"><i class="fa-solid fa-copy svelte-6xfjlj"></i> <span> </span></button></div></div>'), C1 = /* @__PURE__ */ D('<div class="sources-container svelte-6xfjlj"><!></div>'), S1 = /* @__PURE__ */ D('<div class="message-attachments"><!></div>');
|
|
12700
12700
|
const z1 = {
|
|
12701
12701
|
hash: "svelte-6xfjlj",
|
|
12702
12702
|
code: ".sources-container.svelte-6xfjlj {display:flex;flex-direction:column;width:100%;}.sources-expanded.svelte-6xfjlj {background:rgba(255, 255, 255, 0.2);border-radius:0 0 8px 0;box-shadow:0 2px 8px rgba(0, 0, 0, 0.15);margin-top:-10px;overflow:hidden;max-width:100%;}.sources-header.svelte-6xfjlj {height:10px;}.sources-footer.svelte-6xfjlj {display:flex;justify-content:flex-end;align-items:center;padding:0 10px 10px 10px;}.sources-title.svelte-6xfjlj {margin:0;font-size:16px;font-weight:600;color:#333;}.copy-sources-btn.svelte-6xfjlj {display:flex;align-items:center;gap:6px;padding:8px 12px;background:rgba(255, 255, 255, 0.9);color:#295dcf;border:1px solid rgba(255, 255, 255, 0.3);border-radius:8px;cursor:pointer;font-size:13px;transition:all 0.2s;white-space:nowrap;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.copy-sources-btn.svelte-6xfjlj:hover {background:white;box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);transform:translateY(-1px);}.copy-sources-btn.svelte-6xfjlj i:where(.svelte-6xfjlj) {font-size:12px;}.sources-list.svelte-6xfjlj {display:grid;grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));gap:8px;padding:10px;}.dropdown-option.svelte-6xfjlj {display:flex;align-items:center;width:100%;min-width:0;padding:12px 15px;border:1px solid rgba(255, 255, 255, 0.5);border-radius:8px;background:white;color:#333;cursor:pointer;transition:all 0.2s;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.dropdown-option.svelte-6xfjlj:disabled {cursor:wait;opacity:0.7;}.dropdown-option.common.svelte-6xfjlj {color:#8fa1c9;cursor:default;opacity:0.8;}.dropdown-option.svelte-6xfjlj:hover {background:white;color:#295dcf;border-color:rgba(41, 93, 207, 0.3);box-shadow:0 4px 8px rgba(0, 0, 0, 0.15);transform:translateY(-1px);}.dropdown-option.common.svelte-6xfjlj:hover {background:white;color:#8fa1c9;border-color:rgba(255, 255, 255, 0.5);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);transform:none;}.dropdown-option.svelte-6xfjlj i:where(.svelte-6xfjlj) {margin-right:10px;width:16px;text-align:center;}.dropdown-option.svelte-6xfjlj span:where(.svelte-6xfjlj) {font-size:14px;}.document-info.svelte-6xfjlj {display:flex;flex-direction:column;align-items:flex-start;flex:1;}.document-title.svelte-6xfjlj {font-weight:500;margin-bottom:4px;text-align:left;word-break:break-word;}.document-path.svelte-6xfjlj {font-size:0.85em;color:#6c757d;text-align:left;word-break:break-word;}"
|
|
@@ -12805,7 +12805,7 @@ function Uc(t, e) {
|
|
|
12805
12805
|
var y = _1(), C = O(M(y), 2);
|
|
12806
12806
|
He(C, 21, r, Je, (se, H) => {
|
|
12807
12807
|
const X = /* @__PURE__ */ Te(() => gi(h(H).external_id, h(H).filename)), _e = /* @__PURE__ */ Te(() => Pm(h(H))), xe = /* @__PURE__ */ Te(() => h(s)[h(X)]), ye = /* @__PURE__ */ Te(() => jm(h(H), i())), Me = /* @__PURE__ */ Te(() => cc(h(H))), P = /* @__PURE__ */ Te(() => uc(h(H))), ee = /* @__PURE__ */ Te(() => h(H).isCommon ? oi(h(H).commonType).name : ao());
|
|
12808
|
-
var j = y1(),
|
|
12808
|
+
var j = y1(), R = M(j);
|
|
12809
12809
|
{
|
|
12810
12810
|
var W = (te) => {
|
|
12811
12811
|
var K = w1();
|
|
@@ -12816,11 +12816,11 @@ function Uc(t, e) {
|
|
|
12816
12816
|
Z(K, 1, Ki(h(_e).icon), "svelte-6xfjlj"), pe(K, h(_e).color ? `color: ${h(_e).color}` : "");
|
|
12817
12817
|
}), L(te, K);
|
|
12818
12818
|
};
|
|
12819
|
-
le(
|
|
12819
|
+
le(R, (te) => {
|
|
12820
12820
|
h(xe) ? te(W) : te(ie, -1);
|
|
12821
12821
|
});
|
|
12822
12822
|
}
|
|
12823
|
-
var re = O(
|
|
12823
|
+
var re = O(R, 2), U = M(re), Q = M(U, !0);
|
|
12824
12824
|
E(U);
|
|
12825
12825
|
var qe = O(U, 2);
|
|
12826
12826
|
{
|
|
@@ -12861,7 +12861,7 @@ function Uc(t, e) {
|
|
|
12861
12861
|
}
|
|
12862
12862
|
lt(["click"]);
|
|
12863
12863
|
fe(Uc, { isDropdownOpen: {}, attachmentList: {}, userLevel: {} }, [], [], { mode: "open" });
|
|
12864
|
-
var T1 = /* @__PURE__ */
|
|
12864
|
+
var T1 = /* @__PURE__ */ D('<div class="agent-badge svelte-18ivoa8" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-18ivoa8"></i> <span> </span></div>'), E1 = /* @__PURE__ */ D('<button aria-label="Visualizza fonti"><span> </span> <i></i></button>'), I1 = /* @__PURE__ */ D('<i class="fa-solid fa-check svelte-18ivoa8"></i>'), A1 = /* @__PURE__ */ D('<i class="fa-regular fa-copy svelte-18ivoa8"></i>'), $1 = /* @__PURE__ */ D('<button aria-label="Pause message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-18ivoa8"><i class="fa-solid fa-pause"></i></button>'), M1 = /* @__PURE__ */ D('<button aria-label="Play message" class="btn btn-sm btn-primary aks-btn-rounded play-button svelte-18ivoa8"><i class="fa-solid fa-play"></i></button>'), q1 = /* @__PURE__ */ D('<div><div class="w-100 d-flex message-plus-play svelte-18ivoa8" style="justify-content: flex-start; align-items: center; gap: 5px;"><div class="message-column svelte-18ivoa8"><div><div class="message-content svelte-18ivoa8"></div></div> <div class="attachments-container svelte-18ivoa8"><!> <div class="d-flex gap-1" style="width: 100%; align-items: flex-start; justify-content: flex-start;"><!> <!> <button aria-label="Copy message"><!></button></div></div></div> <!></div></div>');
|
|
12865
12865
|
const L1 = {
|
|
12866
12866
|
hash: "svelte-18ivoa8",
|
|
12867
12867
|
code: `.message-received.svelte-18ivoa8 {background:white;border-radius:10px;border-bottom-left-radius:0;min-width:220px;width:fit-content;max-width:80%;transition:200ms;position:relative;user-select:text;}.message-content.svelte-18ivoa8 {padding:10px;font-size:16px;}.message-column.svelte-18ivoa8 {display:flex;flex-direction:column;max-width:80%;width:fit-content;}.message-column.svelte-18ivoa8 .message-received:where(.svelte-18ivoa8) {max-width:100%;}.attachments-container.svelte-18ivoa8 {display:flex;flex-direction:column;width:100%;min-height:35px;}.play-button.svelte-18ivoa8 {transition:opacity 200ms,\r
|
|
@@ -12982,8 +12982,8 @@ function Bc(t, e) {
|
|
|
12982
12982
|
var C = O(_, 2), q = M(C);
|
|
12983
12983
|
{
|
|
12984
12984
|
var B = (P) => {
|
|
12985
|
-
var ee = T1(), j = O(M(ee), 2),
|
|
12986
|
-
E(j), E(ee), N((W) => be(
|
|
12985
|
+
var ee = T1(), j = O(M(ee), 2), R = M(j, !0);
|
|
12986
|
+
E(j), E(ee), N((W) => be(R, W), [() => nc(s().agentUsed)]), L(P, ee);
|
|
12987
12987
|
};
|
|
12988
12988
|
le(q, (P) => {
|
|
12989
12989
|
s().agentUsed != null && s().agentUsed >= 0 && P(B);
|
|
@@ -12992,12 +12992,12 @@ function Bc(t, e) {
|
|
|
12992
12992
|
var J = O(q, 2);
|
|
12993
12993
|
{
|
|
12994
12994
|
var G = (P) => {
|
|
12995
|
-
var ee = E1(), j = M(ee),
|
|
12995
|
+
var ee = E1(), j = M(ee), R = M(j);
|
|
12996
12996
|
E(j);
|
|
12997
12997
|
var W = O(j, 2);
|
|
12998
12998
|
E(ee), N(
|
|
12999
12999
|
(ie) => {
|
|
13000
|
-
Z(ee, 1, `sources-toggle-btn ${h(v)}`, "svelte-18ivoa8"), be(
|
|
13000
|
+
Z(ee, 1, `sources-toggle-btn ${h(v)}`, "svelte-18ivoa8"), be(R, `${ie ?? ""} (${s().attachments.length ?? ""})`), Z(W, 1, `fa-solid fa-chevron-${a()[l()] ? "up" : "down"}`, "svelte-18ivoa8");
|
|
13001
13001
|
},
|
|
13002
13002
|
[() => lh()]
|
|
13003
13003
|
), Ce("click", ee, () => a()[l()] = !a()[l()]), L(P, ee);
|
|
@@ -13025,7 +13025,7 @@ function Bc(t, e) {
|
|
|
13025
13025
|
var ye = (P) => {
|
|
13026
13026
|
var ee = hr(), j = rt(ee);
|
|
13027
13027
|
{
|
|
13028
|
-
var
|
|
13028
|
+
var R = (ie) => {
|
|
13029
13029
|
var re = $1();
|
|
13030
13030
|
N(
|
|
13031
13031
|
(U) => {
|
|
@@ -13048,7 +13048,7 @@ function Bc(t, e) {
|
|
|
13048
13048
|
), Ce("click", re, () => d()(s())), L(ie, re);
|
|
13049
13049
|
};
|
|
13050
13050
|
le(j, (ie) => {
|
|
13051
|
-
c() ? ie(
|
|
13051
|
+
c() ? ie(R) : ie(W, -1);
|
|
13052
13052
|
});
|
|
13053
13053
|
}
|
|
13054
13054
|
L(P, ee);
|
|
@@ -13085,7 +13085,7 @@ fe(
|
|
|
13085
13085
|
[],
|
|
13086
13086
|
{ mode: "open" }
|
|
13087
13087
|
);
|
|
13088
|
-
var R1 = /* @__PURE__ */
|
|
13088
|
+
var R1 = /* @__PURE__ */ D('<div class="streaming-spinner svelte-qq41qv"><!></div>'), D1 = /* @__PURE__ */ D('<div class="w-100 d-flex message-plus-play svelte-qq41qv" style="justify-content: flex-start; align-items: center; gap: 5px;"><div class="message-column svelte-qq41qv"><div class="message-received svelte-qq41qv"><div class="message-content svelte-qq41qv"></div></div> <div class="attachments-container svelte-qq41qv"><div class="d-flex gap-1" style="width: 100%; justify-content: flex-start; align-items: flex-start;"><div class="agent-badge svelte-qq41qv" title="Agente utilizzato"><i class="fa-solid fa-robot svelte-qq41qv"></i> <span> </span></div></div></div></div> <!></div>');
|
|
13089
13089
|
const P1 = {
|
|
13090
13090
|
hash: "svelte-qq41qv",
|
|
13091
13091
|
code: `.message-received.svelte-qq41qv {background:white;border-radius:10px;border-bottom-left-radius:0;min-width:220px;width:fit-content;max-width:80%;transition:200ms;position:relative;user-select:text;}.message-content.svelte-qq41qv {padding:10px;font-size:16px;}.message-column.svelte-qq41qv {display:flex;flex-direction:column;max-width:80%;width:fit-content;}.message-column.svelte-qq41qv .message-received:where(.svelte-qq41qv) {max-width:100%;}.attachments-container.svelte-qq41qv {display:flex;flex-direction:column;width:100%;min-height:35px;}.streaming-spinner.svelte-qq41qv {position:absolute;transform:translateY(-50%);transition:top 200ms ease-out,\r
|
|
@@ -13300,7 +13300,7 @@ async function Io(t, e, n) {
|
|
|
13300
13300
|
}
|
|
13301
13301
|
}
|
|
13302
13302
|
}
|
|
13303
|
-
var N1 = /* @__PURE__ */
|
|
13303
|
+
var N1 = /* @__PURE__ */ D('<div class="loading svelte-1uca092"><!></div>'), U1 = /* @__PURE__ */ D('<div class="alert alert-danger"> </div>'), B1 = /* @__PURE__ */ D('<div class="messages-wrapper svelte-1uca092"><div class="empty-placeholder svelte-1uca092"></div> <!> <!> <!></div>'), H1 = /* @__PURE__ */ D('<div class="loading-placeholder svelte-1uca092"><!></div>'), Y1 = /* @__PURE__ */ D("<div><!> <!></div>");
|
|
13304
13304
|
const G1 = {
|
|
13305
13305
|
hash: "svelte-1uca092",
|
|
13306
13306
|
code: `.empty-placeholder.svelte-1uca092 {height:100%;}.messages-wrapper.svelte-1uca092 {display:flex;flex-direction:column;gap:10px;min-height:100%;}.loading-placeholder.svelte-1uca092 {display:flex;justify-content:center;align-items:center;height:100%;}.chat-body.svelte-1uca092 {display:flex;flex-direction:column;gap:10px;overflow-y:auto;overflow-x:hidden;height:100%;padding:10px;}.chat-body.svelte-1uca092::-webkit-scrollbar {width:8px;}.chat-body.svelte-1uca092 * {--bs-table-color: #333333;--bs-table-striped-color: #333333;--bs-link-color-rgb: 41, 93, 207;}.chat-body.svelte-1uca092 li {color:black;}.chat-body.svelte-1uca092 table {min-width:auto;}.chat-body.svelte-1uca092::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2);border-radius:10px;}.chat-body.svelte-1uca092::-webkit-scrollbar-thumb {background:rgba(255, 255, 255, 0.5);border-radius:10px;transition:0.3s;}.chat-body.svelte-1uca092::-webkit-scrollbar-thumb:hover {background:rgba(255, 255, 255, 0.8);}.chat-body.light.svelte-1uca092::-webkit-scrollbar-track {background:rgba(0, 0, 0, 0.08);border-radius:10px;}.chat-body.light.svelte-1uca092::-webkit-scrollbar-thumb {background:rgba(0, 0, 0, 0.45);border-radius:10px;transition:0.3s;}.chat-body.light.svelte-1uca092::-webkit-scrollbar-thumb:hover {background:rgba(0, 0, 0, 0.55);}.loading.svelte-1uca092 {display:flex;justify-content:start;align-items:center;padding-left:10px;}\r
|
|
@@ -13417,7 +13417,7 @@ function Yc(t, e) {
|
|
|
13417
13417
|
{
|
|
13418
13418
|
var B = (H) => {
|
|
13419
13419
|
var X = B1(), _e = O(M(X), 2);
|
|
13420
|
-
He(_e, 17, () => I.displayMessages, Je, (j,
|
|
13420
|
+
He(_e, 17, () => I.displayMessages, Je, (j, R, W) => {
|
|
13421
13421
|
var ie = hr(), re = rt(ie);
|
|
13422
13422
|
{
|
|
13423
13423
|
var U = (qe) => {
|
|
@@ -13426,7 +13426,7 @@ function Yc(t, e) {
|
|
|
13426
13426
|
var K = (Ue) => {
|
|
13427
13427
|
Nc(Ue, {
|
|
13428
13428
|
get message() {
|
|
13429
|
-
return h(
|
|
13429
|
+
return h(R);
|
|
13430
13430
|
},
|
|
13431
13431
|
get copyButtonStates() {
|
|
13432
13432
|
return h(T);
|
|
@@ -13437,7 +13437,7 @@ function Yc(t, e) {
|
|
|
13437
13437
|
}, Le = (Ue) => {
|
|
13438
13438
|
Bc(Ue, {
|
|
13439
13439
|
get message() {
|
|
13440
|
-
return h(
|
|
13440
|
+
return h(R);
|
|
13441
13441
|
},
|
|
13442
13442
|
get openAttachmentsModal() {
|
|
13443
13443
|
return h(S);
|
|
@@ -13465,11 +13465,11 @@ function Yc(t, e) {
|
|
|
13465
13465
|
});
|
|
13466
13466
|
};
|
|
13467
13467
|
le(te, (Ue) => {
|
|
13468
|
-
h(
|
|
13468
|
+
h(R).sentByUser ? Ue(K) : Ue(Le, -1);
|
|
13469
13469
|
});
|
|
13470
13470
|
}
|
|
13471
13471
|
L(qe, Ae);
|
|
13472
|
-
}, Q = /* @__PURE__ */ Te(() => h(
|
|
13472
|
+
}, Q = /* @__PURE__ */ Te(() => h(R).content.trim() !== "");
|
|
13473
13473
|
le(re, (qe) => {
|
|
13474
13474
|
h(Q) && qe(U);
|
|
13475
13475
|
});
|
|
@@ -13494,7 +13494,7 @@ function Yc(t, e) {
|
|
|
13494
13494
|
}
|
|
13495
13495
|
});
|
|
13496
13496
|
}, Me = (j) => {
|
|
13497
|
-
var
|
|
13497
|
+
var R = N1(), W = M(R);
|
|
13498
13498
|
{
|
|
13499
13499
|
let ie = /* @__PURE__ */ Te(() => h(m) === "light" ? "#3c4450" : "white");
|
|
13500
13500
|
bn(W, {
|
|
@@ -13506,7 +13506,7 @@ function Yc(t, e) {
|
|
|
13506
13506
|
}
|
|
13507
13507
|
});
|
|
13508
13508
|
}
|
|
13509
|
-
E(
|
|
13509
|
+
E(R), L(j, R);
|
|
13510
13510
|
};
|
|
13511
13511
|
le(xe, (j) => {
|
|
13512
13512
|
l().length > 0 ? j(ye) : a() && j(Me, 1);
|
|
@@ -13515,16 +13515,16 @@ function Yc(t, e) {
|
|
|
13515
13515
|
var P = O(xe, 2);
|
|
13516
13516
|
{
|
|
13517
13517
|
var ee = (j) => {
|
|
13518
|
-
var
|
|
13519
|
-
E(
|
|
13518
|
+
var R = U1(), W = M(R, !0);
|
|
13519
|
+
E(R), N(() => be(W, o())), L(j, R);
|
|
13520
13520
|
};
|
|
13521
13521
|
le(P, (j) => {
|
|
13522
13522
|
o() != "" && j(ee);
|
|
13523
13523
|
});
|
|
13524
13524
|
}
|
|
13525
13525
|
E(X), Qt("outroend", X, function(...j) {
|
|
13526
|
-
var
|
|
13527
|
-
(
|
|
13526
|
+
var R;
|
|
13527
|
+
(R = I.handleMessagesOutroEnd) == null || R.apply(this, j);
|
|
13528
13528
|
}), ft(1, X, () => Kt, () => ({ duration: 100, delay: 100 })), ft(2, X, () => Kt, () => ({ duration: 100 })), L(H, X);
|
|
13529
13529
|
};
|
|
13530
13530
|
le(q, (H) => {
|
|
@@ -13572,7 +13572,7 @@ fe(
|
|
|
13572
13572
|
[],
|
|
13573
13573
|
{ mode: "open" }
|
|
13574
13574
|
);
|
|
13575
|
-
var J1 = /* @__PURE__ */
|
|
13575
|
+
var J1 = /* @__PURE__ */ D('<span class="unread-badge svelte-14euf0l"></span>'), V1 = /* @__PURE__ */ D('<span class="meta-sep svelte-14euf0l">·</span> <span class="meta-item svelte-14euf0l"><i class="fa-regular fa-clock svelte-14euf0l"></i> </span>', 1), W1 = /* @__PURE__ */ D('<div><button class="chat-button svelte-14euf0l"><div class="chat-content svelte-14euf0l"><div class="title-row svelte-14euf0l"><span class="chat-title svelte-14euf0l"> </span> <!></div> <div class="meta-row svelte-14euf0l"><span class="meta-item svelte-14euf0l"><i class="fa-regular fa-calendar svelte-14euf0l"></i> </span> <!></div></div></button> <button class="chat-delete svelte-14euf0l" aria-label="Delete chat"><i class="fa-solid fa-trash-can svelte-14euf0l"></i></button></div>');
|
|
13576
13576
|
const Z1 = {
|
|
13577
13577
|
hash: "svelte-14euf0l",
|
|
13578
13578
|
code: `.chat.svelte-14euf0l {background:rgba(255, 255, 255, 0.1);display:flex;justify-content:space-between;align-items:center;border-radius:10px;transition:background 200ms,\r
|
|
@@ -13697,7 +13697,7 @@ fe(
|
|
|
13697
13697
|
[],
|
|
13698
13698
|
{ mode: "open" }
|
|
13699
13699
|
);
|
|
13700
|
-
var X1 = /* @__PURE__ */
|
|
13700
|
+
var X1 = /* @__PURE__ */ D('<div class="loader-container svelte-1opyyad"><div class="loader svelte-1opyyad"></div></div>'), Q1 = /* @__PURE__ */ D('<p class="empty-label svelte-1opyyad"> </p>'), K1 = /* @__PURE__ */ D('<div class="group-header svelte-1opyyad"> </div> <!>', 1), ew = /* @__PURE__ */ D('<div class="loader-more-container svelte-1opyyad"><div class="loader-small svelte-1opyyad"></div></div>'), tw = /* @__PURE__ */ D('<p class="end-label svelte-1opyyad"> </p>'), nw = /* @__PURE__ */ D("<!> <!>", 1), rw = /* @__PURE__ */ D('<div class="history-header svelte-1opyyad"><span class="title svelte-1opyyad"> </span> <button class="close-btn svelte-1opyyad" aria-label="Close history"><i class="fa-solid fa-xmark svelte-1opyyad"></i></button></div> <div class="chats svelte-1opyyad"><!></div>', 1);
|
|
13701
13701
|
const iw = {
|
|
13702
13702
|
hash: "svelte-1opyyad",
|
|
13703
13703
|
code: `.history-header.svelte-1opyyad {display:flex;align-items:center;justify-content:space-between;padding:5px 5px 0;flex-shrink:0;}.title.svelte-1opyyad {font-size:1.5rem;color:#fff;margin:5px;text-align:left;}.close-btn.svelte-1opyyad {display:none;align-items:center;justify-content:center;background:transparent;border:none;color:white;cursor:pointer;font-size:1.2rem;padding:8px;border-radius:8px;transition:background 200ms;flex-shrink:0;}.close-btn.svelte-1opyyad:hover {background:rgba(255, 255, 255, 0.15);}.chats.svelte-1opyyad {display:flex;flex-direction:column;padding:10px;overflow-y:scroll;overflow-x:hidden;height:100%;gap:6px;}.group-header.svelte-1opyyad {font-size:10px;font-weight:700;color:rgba(255, 255, 255, 0.35);text-transform:uppercase;letter-spacing:0.08em;padding:6px 4px 2px;margin-top:6px;}.group-header.svelte-1opyyad:first-child {margin-top:0;}\r
|
|
@@ -13829,7 +13829,7 @@ function Jc(t, e) {
|
|
|
13829
13829
|
var Me = O(xe, 2);
|
|
13830
13830
|
He(Me, 17, () => h(X).chats, (P) => P._id, (P, ee) => {
|
|
13831
13831
|
{
|
|
13832
|
-
let j = /* @__PURE__ */ Te(() => i() === h(ee)._id),
|
|
13832
|
+
let j = /* @__PURE__ */ Te(() => i() === h(ee)._id), R = /* @__PURE__ */ Te(() => a().includes(h(ee)._id));
|
|
13833
13833
|
Gc(P, {
|
|
13834
13834
|
get chat() {
|
|
13835
13835
|
return h(ee);
|
|
@@ -13838,7 +13838,7 @@ function Jc(t, e) {
|
|
|
13838
13838
|
return h(j);
|
|
13839
13839
|
},
|
|
13840
13840
|
get isUnread() {
|
|
13841
|
-
return h(
|
|
13841
|
+
return h(R);
|
|
13842
13842
|
},
|
|
13843
13843
|
get selectChat() {
|
|
13844
13844
|
return o();
|
|
@@ -14016,7 +14016,7 @@ Tieni conto sia del contenuto dei task che degli eventuali file allegati. Il rep
|
|
|
14016
14016
|
]
|
|
14017
14017
|
}
|
|
14018
14018
|
];
|
|
14019
|
-
var aw = /* @__PURE__ */
|
|
14019
|
+
var aw = /* @__PURE__ */ D('<button class="panel-icon-btn svelte-emqiq4" title="Indietro" aria-label="Indietro"><i class="fa-solid fa-arrow-left"></i></button> <span class="panel-title svelte-emqiq4"> </span>', 1), ow = /* @__PURE__ */ D('<span class="panel-title svelte-emqiq4">Prompt Template</span>'), lw = /* @__PURE__ */ D('<span class="optional-badge svelte-emqiq4">(facoltativo)</span>'), cw = /* @__PURE__ */ D('<option class="svelte-emqiq4"> </option>'), uw = /* @__PURE__ */ D('<select class="svelte-emqiq4"></select>'), dw = /* @__PURE__ */ D('<textarea class="svelte-emqiq4"></textarea>'), fw = /* @__PURE__ */ D('<input type="text" class="svelte-emqiq4"/>'), hw = /* @__PURE__ */ D('<div class="field svelte-emqiq4"><label class="svelte-emqiq4"> <!></label> <!></div>'), pw = /* @__PURE__ */ D('<p class="template-preview svelte-emqiq4"> </p> <form id="template-form" class="svelte-emqiq4"></form>', 1), gw = /* @__PURE__ */ D('<li><button class="template-card svelte-emqiq4"><span class="template-label svelte-emqiq4"> </span> <span class="template-desc svelte-emqiq4"> </span></button></li>'), vw = /* @__PURE__ */ D('<ul class="template-list svelte-emqiq4"></ul>'), mw = /* @__PURE__ */ D('<div class="panel-footer svelte-emqiq4"><button type="submit" form="template-form" class="confirm-btn svelte-emqiq4"><i class="fa-solid fa-check"></i> Usa template</button></div>'), bw = /* @__PURE__ */ D('<div class="panel-header svelte-emqiq4"><!></div> <div class="panel-body svelte-emqiq4"><!></div> <!>', 1);
|
|
14020
14020
|
const ww = {
|
|
14021
14021
|
hash: "svelte-emqiq4",
|
|
14022
14022
|
code: `.panel-header.svelte-emqiq4 {display:flex;align-items:center;gap:8px;padding:8px 8px 0;flex-shrink:0;}.panel-title.svelte-emqiq4 {flex:1;font-size:1.5rem;font-weight:500;color:white;margin:5px;overflow:hidden;}.panel-icon-btn.svelte-emqiq4 {display:flex;justify-content:center;align-items:center;width:30px;height:30px;border:none;background:transparent;color:white;border-radius:8px;cursor:pointer;flex-shrink:0;transition:background 200ms;font-size:1rem;}.panel-icon-btn.svelte-emqiq4:hover {background:rgba(255, 255, 255, 0.15);}.panel-body.svelte-emqiq4 {flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;}.panel-body.svelte-emqiq4::-webkit-scrollbar {width:8px;}.panel-body.svelte-emqiq4::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2);border-radius:10px;}.panel-body.svelte-emqiq4::-webkit-scrollbar-thumb {background:rgba(255, 255, 255, 0.5);border-radius:10px;transition:0.3s;}.panel-body.svelte-emqiq4::-webkit-scrollbar-thumb:hover {background:rgba(255, 255, 255, 0.8);}\r
|
|
@@ -14099,8 +14099,8 @@ function Vc(t, e) {
|
|
|
14099
14099
|
var se = hw(), H = M(se), X = M(H), _e = O(X);
|
|
14100
14100
|
{
|
|
14101
14101
|
var xe = (j) => {
|
|
14102
|
-
var
|
|
14103
|
-
L(j,
|
|
14102
|
+
var R = lw();
|
|
14103
|
+
L(j, R);
|
|
14104
14104
|
};
|
|
14105
14105
|
le(_e, (j) => {
|
|
14106
14106
|
h(G).required || j(xe);
|
|
@@ -14110,25 +14110,25 @@ function Vc(t, e) {
|
|
|
14110
14110
|
var ye = O(H, 2);
|
|
14111
14111
|
{
|
|
14112
14112
|
var Me = (j) => {
|
|
14113
|
-
var
|
|
14114
|
-
He(
|
|
14113
|
+
var R = uw();
|
|
14114
|
+
He(R, 21, () => h(G).options, Je, (W, ie) => {
|
|
14115
14115
|
var re = cw(), U = M(re, !0);
|
|
14116
14116
|
E(re);
|
|
14117
14117
|
var Q = {};
|
|
14118
14118
|
N(() => {
|
|
14119
14119
|
be(U, h(ie)), Q !== (Q = h(ie)) && (re.value = (re.__value = h(ie)) ?? "");
|
|
14120
14120
|
}), L(W, re);
|
|
14121
|
-
}), E(
|
|
14121
|
+
}), E(R), N(() => ae(R, "id", `ph-${h(G).key}`)), fa(R, () => h(s)[h(G).key], (W) => h(s)[h(G).key] = W), L(j, R);
|
|
14122
14122
|
}, P = (j) => {
|
|
14123
|
-
var
|
|
14124
|
-
gl(
|
|
14125
|
-
ae(
|
|
14126
|
-
}), Za(
|
|
14123
|
+
var R = dw();
|
|
14124
|
+
gl(R), ae(R, "rows", 4), N(() => {
|
|
14125
|
+
ae(R, "id", `ph-${h(G).key}`), ae(R, "placeholder", h(G).label);
|
|
14126
|
+
}), Za(R, () => h(s)[h(G).key], (W) => h(s)[h(G).key] = W), L(j, R);
|
|
14127
14127
|
}, ee = (j) => {
|
|
14128
|
-
var
|
|
14129
|
-
ha(
|
|
14130
|
-
ae(
|
|
14131
|
-
}), Za(
|
|
14128
|
+
var R = fw();
|
|
14129
|
+
ha(R), N(() => {
|
|
14130
|
+
ae(R, "id", `ph-${h(G).key}`), ae(R, "placeholder", h(G).label);
|
|
14131
|
+
}), Za(R, () => h(s)[h(G).key], (W) => h(s)[h(G).key] = W), L(j, R);
|
|
14132
14132
|
};
|
|
14133
14133
|
le(ye, (j) => {
|
|
14134
14134
|
h(G).options ? j(Me) : h(G).type === "textarea" ? j(P, 1) : j(ee, -1);
|
|
@@ -14170,7 +14170,7 @@ function Vc(t, e) {
|
|
|
14170
14170
|
}
|
|
14171
14171
|
lt(["click"]);
|
|
14172
14172
|
fe(Vc, { onClose: {}, onConfirm: {} }, [], [], { mode: "open" });
|
|
14173
|
-
var xw = /* @__PURE__ */
|
|
14173
|
+
var xw = /* @__PURE__ */ D('<div class="view-wrapper svelte-2u9l7p"><!></div>'), kw = /* @__PURE__ */ D('<div class="view-wrapper svelte-2u9l7p"><!></div>'), yw = /* @__PURE__ */ D('<div class="left-panel svelte-2u9l7p"><!></div>');
|
|
14174
14174
|
const _w = {
|
|
14175
14175
|
hash: "svelte-2u9l7p",
|
|
14176
14176
|
code: `.left-panel.svelte-2u9l7p {position:absolute;top:0;left:-300px;width:300px;height:100%;border-radius:15px;background:#3c4450;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);z-index:-1;overflow:hidden;}.view-wrapper.svelte-2u9l7p {position:absolute;inset:0;padding:5px;display:flex;flex-direction:column;overflow:hidden;}\r
|
|
@@ -14719,7 +14719,7 @@ function Tw(t) {
|
|
|
14719
14719
|
checkUnreadChats: p
|
|
14720
14720
|
};
|
|
14721
14721
|
}
|
|
14722
|
-
var Ew = /* @__PURE__ */
|
|
14722
|
+
var Ew = /* @__PURE__ */ D('<div class="drag-overlay svelte-5k5345"><div class="drag-content svelte-5k5345"><!> <p class="svelte-5k5345"> </p></div></div>'), Iw = /* @__PURE__ */ D('<div class="upload-progress-overlay svelte-5k5345"><div class="upload-progress-content svelte-5k5345"><!> <p class="upload-filename svelte-5k5345"> </p> <div class="progress-bar-container svelte-5k5345"><div class="progress-bar svelte-5k5345"></div></div> <p class="upload-percentage svelte-5k5345"> </p></div></div>'), Aw = /* @__PURE__ */ D('<div class="loading-placeholder svelte-5k5345"><!></div>'), $w = /* @__PURE__ */ D('<!> <div class="resize-border-left svelte-5k5345"></div> <div class="resize-border-top svelte-5k5345"></div> <div class="resize-handle svelte-5k5345"><!></div> <!> <!> <!>', 1), Mw = /* @__PURE__ */ D("<div><!> <!> <!></div>"), qw = /* @__PURE__ */ D('<div class="reduced-chat svelte-5k5345"><span class="svelte-5k5345"> </span> <button class="maximize-chat svelte-5k5345" aria-label="Apri chat"><i class="fa-solid fa-up-right-and-down-left-from-center"></i></button></div>'), Lw = /* @__PURE__ */ D('<div class="external-div"><!> <button id="open-chat-btn"><i class="fa-solid fa-comment-nodes"></i><span class="d-none d-md-inline ps-2 svelte-5k5345"> </span></button></div>');
|
|
14723
14723
|
const Rw = {
|
|
14724
14724
|
hash: "svelte-5k5345",
|
|
14725
14725
|
code: `\r
|
|
@@ -14748,14 +14748,14 @@ function Zc(t, e) {
|
|
|
14748
14748
|
}), A = Sw({
|
|
14749
14749
|
getModeSelected: () => h(S),
|
|
14750
14750
|
getActChat: () => h(v),
|
|
14751
|
-
setAttachment: (j,
|
|
14752
|
-
h(T)[j] =
|
|
14751
|
+
setAttachment: (j, R) => {
|
|
14752
|
+
h(T)[j] = R;
|
|
14753
14753
|
},
|
|
14754
14754
|
sendMessage: I.sendMessage,
|
|
14755
14755
|
setError: (j) => {
|
|
14756
14756
|
I.error = j;
|
|
14757
14757
|
}
|
|
14758
|
-
}), _ = A.uploadFiles;
|
|
14758
|
+
}), _ = (j, R, W) => A.uploadFiles(j, void 0, R, W);
|
|
14759
14759
|
let y = /* @__PURE__ */ V(null);
|
|
14760
14760
|
const C = zw({ getChatElement: () => h(y) }), q = Tw({
|
|
14761
14761
|
getShow: () => h(a),
|
|
@@ -14809,8 +14809,8 @@ function Zc(t, e) {
|
|
|
14809
14809
|
), I.streamMessage = "", I.messages = h(v).messages, I.error = "";
|
|
14810
14810
|
}, se = () => {
|
|
14811
14811
|
k(S, "auto"), G(), B(), k(T, {}, !0);
|
|
14812
|
-
const j = ni(sc),
|
|
14813
|
-
|
|
14812
|
+
const j = ni(sc), R = j == null ? void 0 : j.agentId, W = j == null ? void 0 : j.gendocId, ie = j == null ? void 0 : j.gendocName;
|
|
14813
|
+
R && k(S, R, !0), W && ie && (h(T)[W] = {
|
|
14814
14814
|
title: ie + ".akd",
|
|
14815
14815
|
ext_id: W,
|
|
14816
14816
|
gendoc_id: W,
|
|
@@ -14822,12 +14822,12 @@ function Zc(t, e) {
|
|
|
14822
14822
|
j !== null && (Hs.set(null), (async () => j.chatId ? (k(v, await We.getChat(j.chatId), !0), I.messages = h(v).messages, h(a) || (k(a, !0), q.loadingChats = !0, await q.loadChats(!0), q.loadingChats = !1), await cn(), k(o, !0), k(l, "history")) : se())());
|
|
14823
14823
|
});
|
|
14824
14824
|
const H = async () => {
|
|
14825
|
-
const [j,
|
|
14825
|
+
const [j, R, W] = await Promise.all([
|
|
14826
14826
|
kt.getUsername(),
|
|
14827
14827
|
kt.getUserLevel(),
|
|
14828
14828
|
ac.getUser()
|
|
14829
14829
|
]);
|
|
14830
|
-
k(d, j, !0), k(p,
|
|
14830
|
+
k(d, j, !0), k(p, R, !0), en.set(W.colorMode), k(f, ne(), !0);
|
|
14831
14831
|
const ie = new URLSearchParams(window.location.search);
|
|
14832
14832
|
if (ie.has("chatId")) {
|
|
14833
14833
|
const re = ie.get("chatId");
|
|
@@ -14865,7 +14865,7 @@ function Zc(t, e) {
|
|
|
14865
14865
|
var X = Lw(), _e = M(X);
|
|
14866
14866
|
{
|
|
14867
14867
|
var xe = (j) => {
|
|
14868
|
-
var
|
|
14868
|
+
var R = Mw(), W = M(R);
|
|
14869
14869
|
{
|
|
14870
14870
|
var ie = (te) => {
|
|
14871
14871
|
var K = Ew(), Le = M(K), Ue = M(Le);
|
|
@@ -15113,9 +15113,7 @@ function Zc(t, e) {
|
|
|
15113
15113
|
get stopMessage() {
|
|
15114
15114
|
return I.stopMessage;
|
|
15115
15115
|
},
|
|
15116
|
-
|
|
15117
|
-
return _;
|
|
15118
|
-
},
|
|
15116
|
+
uploadFiles: _,
|
|
15119
15117
|
get loading() {
|
|
15120
15118
|
return I.loading;
|
|
15121
15119
|
},
|
|
@@ -15182,30 +15180,30 @@ function Zc(t, e) {
|
|
|
15182
15180
|
h(x) ? te(qe) : h(v) && te(Ae, 1);
|
|
15183
15181
|
});
|
|
15184
15182
|
}
|
|
15185
|
-
E(
|
|
15183
|
+
E(R), ai(R, (te) => k(y, te), () => h(y)), N(() => Z(R, 1, `chat ${h(g)}`, "svelte-5k5345")), Ce("mousedown", R, function(...te) {
|
|
15186
15184
|
var K;
|
|
15187
15185
|
(K = C.handleMouseDown) == null || K.apply(this, te);
|
|
15188
|
-
}), Qt("dragenter",
|
|
15186
|
+
}), Qt("dragenter", R, function(...te) {
|
|
15189
15187
|
var K;
|
|
15190
15188
|
(K = A.handleDragEnter) == null || K.apply(this, te);
|
|
15191
|
-
}), Qt("dragover",
|
|
15189
|
+
}), Qt("dragover", R, function(...te) {
|
|
15192
15190
|
var K;
|
|
15193
15191
|
(K = A.handleDragOver) == null || K.apply(this, te);
|
|
15194
|
-
}), Qt("dragleave",
|
|
15192
|
+
}), Qt("dragleave", R, function(...te) {
|
|
15195
15193
|
var K;
|
|
15196
15194
|
(K = A.handleDragLeave) == null || K.apply(this, te);
|
|
15197
|
-
}), Qt("drop",
|
|
15195
|
+
}), Qt("drop", R, function(...te) {
|
|
15198
15196
|
var K;
|
|
15199
15197
|
(K = A.handleDrop) == null || K.apply(this, te);
|
|
15200
|
-
}), ft(3,
|
|
15198
|
+
}), ft(3, R, () => Ka, () => ({ y: 50, duration: 500 })), L(j, R);
|
|
15201
15199
|
}, ye = (j) => {
|
|
15202
|
-
var
|
|
15200
|
+
var R = qw(), W = M(R), ie = M(W, !0);
|
|
15203
15201
|
E(W);
|
|
15204
15202
|
var re = O(W, 2);
|
|
15205
|
-
E(
|
|
15203
|
+
E(R), N(() => {
|
|
15206
15204
|
var U;
|
|
15207
15205
|
return be(ie, (U = h(v)) == null ? void 0 : U.title);
|
|
15208
|
-
}), Ce("click", re, J), ft(3,
|
|
15206
|
+
}), Ce("click", re, J), ft(3, R, () => Ka, () => ({ y: 50, duration: 500 })), L(j, R);
|
|
15209
15207
|
};
|
|
15210
15208
|
le(_e, (j) => {
|
|
15211
15209
|
h(a) ? j(xe) : h(u) && j(ye, 1);
|