@juspay/svelte-ui-components 2.134.1 → 2.135.0
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-wc/index.js
CHANGED
|
@@ -6752,7 +6752,7 @@ var root$65 = /* @__PURE__ */ from_html("<textarea></textarea>"), root_1$54 = /*
|
|
|
6752
6752
|
function Input(e, t) {
|
|
6753
6753
|
let n = props_id();
|
|
6754
6754
|
push(t, !0), append_styles$1(e, $$css$63);
|
|
6755
|
-
let i = prop(t, "value", 15, ""), a = prop(t, "placeholder", 7, ""), o = prop(t, "dataType", 7, "text"), s = prop(t, "label", 7, ""), c = prop(t, "onErrorMessage", 7, ""), l = prop(t, "infoMessage", 7, ""), u = prop(t, "validators", 23, () => []), d = prop(t, "disable", 7, !1), f = prop(t, "readonly", 7, !1), p = prop(t, "spellcheck", 7, null), m = prop(t, "validationPattern", 7, null), h = prop(t, "inProgressPattern", 7, null), g = prop(t, "addFocusColor", 7, !1), _ = prop(t, "maxLength", 7, 1e3), v = prop(t, "minLength", 7, 0), y = prop(t, "min", 7), b = prop(t, "max", 7), x = prop(t, "actionInput", 7, !1), S = prop(t, "useTextArea", 7, !1), C = prop(t, "autoComplete", 7, "on"), w = prop(t, "inputMode", 7), T = prop(t, "name", 7, ""), E = prop(t, "id", 7), D = prop(t, "testId", 7, ""), O = prop(t, "textTransformers", 23, () => []), k = prop(t, "textViewPresentation", 23, () => []), A = prop(t, "onFocus", 7, () => {}), j = prop(t, "onFocusout", 7, () => {}), M = prop(t, "onBlur", 7, () => {}), N = prop(t, "onInput", 7, () => {}), P = prop(t, "onPaste", 7, () => {}), F = prop(t, "onStateChange", 7, () => {}), I = prop(t, "onClick", 7, () => {}), L = prop(t, "onKeyDown", 7, () => {}), R = prop(t, "classes", 7), z = prop(t, "role", 7), B = prop(t, "ariaLabel", 7), V = prop(t, "ariaExpanded", 7), H = prop(t, "ariaAutocomplete", 7), U = prop(t, "ariaControls", 7), W = prop(t, "ariaActivedescendant", 7), G = prop(t, "leftIcon", 7), K = prop(t, "rightIcon", 7), q = prop(t, "onLeftIconClick", 7), J = prop(t, "onRightIconClick", 7), Y = prop(t, "leftIconLabel", 7, "Leading action"), X = prop(t, "rightIconLabel", 7, "Trailing action"), Z = prop(t, "mandatory", 7, !1), Q = prop(t, "forceError", 7, !1),
|
|
6755
|
+
let i = prop(t, "value", 15, ""), a = prop(t, "placeholder", 7, ""), o = prop(t, "dataType", 7, "text"), s = prop(t, "label", 7, ""), c = prop(t, "onErrorMessage", 7, ""), l = prop(t, "infoMessage", 7, ""), u = prop(t, "validators", 23, () => []), d = prop(t, "disable", 7, !1), f = prop(t, "readonly", 7, !1), p = prop(t, "spellcheck", 7, null), m = prop(t, "validationPattern", 7, null), h = prop(t, "inProgressPattern", 7, null), g = prop(t, "addFocusColor", 7, !1), _ = prop(t, "maxLength", 7, 1e3), v = prop(t, "minLength", 7, 0), y = prop(t, "min", 7), b = prop(t, "max", 7), x = prop(t, "actionInput", 7, !1), S = prop(t, "useTextArea", 7, !1), C = prop(t, "autoComplete", 7, "on"), w = prop(t, "inputMode", 7), T = prop(t, "name", 7, ""), E = prop(t, "id", 7), D = prop(t, "testId", 7, ""), O = prop(t, "textTransformers", 23, () => []), k = prop(t, "textViewPresentation", 23, () => []), A = prop(t, "onFocus", 7, () => {}), j = prop(t, "onFocusout", 7, () => {}), M = prop(t, "onBlur", 7, () => {}), N = prop(t, "onInput", 7, () => {}), P = prop(t, "onPaste", 7, () => {}), F = prop(t, "onStateChange", 7, () => {}), I = prop(t, "onClick", 7, () => {}), L = prop(t, "onKeyDown", 7, () => {}), R = prop(t, "classes", 7), z = prop(t, "role", 7), B = prop(t, "ariaLabel", 7), V = prop(t, "ariaExpanded", 7), H = prop(t, "ariaAutocomplete", 7), U = prop(t, "ariaControls", 7), W = prop(t, "ariaActivedescendant", 7), G = prop(t, "leftIcon", 7), K = prop(t, "rightIcon", 7), q = prop(t, "onLeftIconClick", 7), J = prop(t, "onRightIconClick", 7), Y = prop(t, "leftIconLabel", 7, "Leading action"), X = prop(t, "rightIconLabel", 7, "Trailing action"), Z = prop(t, "mandatory", 7, !1), Q = prop(t, "forceError", 7, !1), $ = prop(t, "rows", 7), ee = prop(t, "autoResize", 7, !1), te = prop(t, "minRows", 7), ne = prop(t, "maxRows", 7), re = prop(t, "resize", 7, "none"), ie = prop(t, "showCount", 7, !1), ae = /* @__PURE__ */ user_derived(() => E() || (T() === "" ? n : `${T()}-${n}`)), oe = /* @__PURE__ */ user_derived(() => typeof s() == "string" && s() !== "" && !x());
|
|
6756
6756
|
function se() {
|
|
6757
6757
|
try {
|
|
6758
6758
|
get(ue)?.focus(), get(ue)?.scrollIntoView({
|
|
@@ -6780,16 +6780,16 @@ function Input(e, t) {
|
|
|
6780
6780
|
user_effect(() => {
|
|
6781
6781
|
F()(get(de));
|
|
6782
6782
|
});
|
|
6783
|
-
let fe = /* @__PURE__ */ user_derived(() => get(de) === "Invalid"), pe = /* @__PURE__ */ user_derived(() => get(fe) || Q()), me = /* @__PURE__ */ user_derived(() => `${get(ae)}-error`), he = /* @__PURE__ */ user_derived(() => c() != null && c() !== "" && get(pe) && !x()), ge = /* @__PURE__ */ user_derived(() => `${get(ae)}-info`), _e = /* @__PURE__ */ user_derived(() => l() !== "" && !x()), ve = /* @__PURE__ */ user_derived(() => [get(he) ? get(me) : null, get(_e) ? get(ge) : null].filter(Boolean).join(" ")), ye = /* @__PURE__ */ user_derived(() => typeof G() == "function"), be = /* @__PURE__ */ user_derived(() => typeof K() == "function"), xe = /* @__PURE__ */ user_derived(() => i()?.length ?? 0), Se = /* @__PURE__ */ user_derived(() => _() ?? 1e3), Ce = /* @__PURE__ */ user_derived(() =>
|
|
6783
|
+
let fe = /* @__PURE__ */ user_derived(() => get(de) === "Invalid"), pe = /* @__PURE__ */ user_derived(() => get(fe) || Q()), me = /* @__PURE__ */ user_derived(() => `${get(ae)}-error`), he = /* @__PURE__ */ user_derived(() => c() != null && c() !== "" && get(pe) && !x()), ge = /* @__PURE__ */ user_derived(() => `${get(ae)}-info`), _e = /* @__PURE__ */ user_derived(() => l() !== "" && !x()), ve = /* @__PURE__ */ user_derived(() => [get(he) ? get(me) : null, get(_e) ? get(ge) : null].filter(Boolean).join(" ")), ye = /* @__PURE__ */ user_derived(() => typeof G() == "function"), be = /* @__PURE__ */ user_derived(() => typeof K() == "function"), xe = /* @__PURE__ */ user_derived(() => i()?.length ?? 0), Se = /* @__PURE__ */ user_derived(() => _() ?? 1e3), Ce = /* @__PURE__ */ user_derived(() => ee() ? "none" : re());
|
|
6784
6784
|
function we() {
|
|
6785
6785
|
let e = get(ue);
|
|
6786
|
-
if (!e || !S() ||
|
|
6786
|
+
if (!e || !S() || !ee()) return;
|
|
6787
6787
|
e.style.height = "auto";
|
|
6788
|
-
let t = window.getComputedStyle(e), n = parseFloat(t.lineHeight) || 20, i = parseFloat(t.paddingTop) + parseFloat(t.paddingBottom), a = parseFloat(t.borderTopWidth) + parseFloat(t.borderBottomWidth), o = (te() ??
|
|
6788
|
+
let t = window.getComputedStyle(e), n = parseFloat(t.lineHeight) || 20, i = parseFloat(t.paddingTop) + parseFloat(t.paddingBottom), a = parseFloat(t.borderTopWidth) + parseFloat(t.borderBottomWidth), o = (te() ?? $() ?? 2) * n + i + a, s = ne() == null ? Infinity : ne() * n + i + a, c = parseFloat(t.maxHeight), l = Math.min(s, Number.isFinite(c) ? c : Infinity), u = Math.min(Math.max(e.scrollHeight, o), l);
|
|
6789
6789
|
e.style.height = `${u}px`, e.style.overflowY = e.scrollHeight > l ? "auto" : "hidden";
|
|
6790
6790
|
}
|
|
6791
6791
|
user_effect(() => {
|
|
6792
|
-
i(), S() &&
|
|
6792
|
+
i(), S() && ee() && we();
|
|
6793
6793
|
});
|
|
6794
6794
|
function Te(e) {
|
|
6795
6795
|
if (get(ue) === null) return;
|
|
@@ -7131,16 +7131,16 @@ function Input(e, t) {
|
|
|
7131
7131
|
Q(e), flushSync();
|
|
7132
7132
|
},
|
|
7133
7133
|
get rows() {
|
|
7134
|
-
return
|
|
7134
|
+
return $();
|
|
7135
7135
|
},
|
|
7136
7136
|
set rows(e) {
|
|
7137
|
-
|
|
7137
|
+
$(e), flushSync();
|
|
7138
7138
|
},
|
|
7139
7139
|
get autoResize() {
|
|
7140
|
-
return
|
|
7140
|
+
return ee();
|
|
7141
7141
|
},
|
|
7142
7142
|
set autoResize(e = !1) {
|
|
7143
|
-
|
|
7143
|
+
ee(e), flushSync();
|
|
7144
7144
|
},
|
|
7145
7145
|
get minRows() {
|
|
7146
7146
|
return te();
|
|
@@ -7175,7 +7175,7 @@ function Input(e, t) {
|
|
|
7175
7175
|
remove_textarea_child(t);
|
|
7176
7176
|
let n, s;
|
|
7177
7177
|
bind_this(t, (e) => set(ue, e), () => get(ue)), template_effect(() => {
|
|
7178
|
-
set_attribute(t, "id", get(ae)), set_value(t, i()), set_attribute(t, "placeholder", a()), set_attribute(t, "aria-label", get(oe) ? null : B() ?? null), set_attribute(t, "autocomplete", C()), set_attribute(t, "inputmode", w()), set_attribute(t, "name", T()), set_attribute(t, "role", z()), set_attribute(t, "aria-expanded", V()), set_attribute(t, "aria-autocomplete", H()), set_attribute(t, "aria-controls", U()), set_attribute(t, "aria-activedescendant", W()), set_attribute(t, "aria-required", Z() || null), set_attribute(t, "aria-invalid", get(pe) ? "true" : null), set_attribute(t, "aria-describedby", get(ve) || null), t.required = Z() || null, set_attribute(t, "data-pw", D()), set_attribute(t, "testid", D()), n = set_style(t, `--focus-border: ${+!!g()}px;`, n, { resize: get(Ce) }), set_attribute(t, "rows",
|
|
7178
|
+
set_attribute(t, "id", get(ae)), set_value(t, i()), set_attribute(t, "placeholder", a()), set_attribute(t, "aria-label", get(oe) ? null : B() ?? null), set_attribute(t, "autocomplete", C()), set_attribute(t, "inputmode", w()), set_attribute(t, "name", T()), set_attribute(t, "role", z()), set_attribute(t, "aria-expanded", V()), set_attribute(t, "aria-autocomplete", H()), set_attribute(t, "aria-controls", U()), set_attribute(t, "aria-activedescendant", W()), set_attribute(t, "aria-required", Z() || null), set_attribute(t, "aria-invalid", get(pe) ? "true" : null), set_attribute(t, "aria-describedby", get(ve) || null), t.required = Z() || null, set_attribute(t, "data-pw", D()), set_attribute(t, "testid", D()), n = set_style(t, `--focus-border: ${+!!g()}px;`, n, { resize: get(Ce) }), set_attribute(t, "rows", $() ?? null), t.disabled = d(), t.readOnly = f() || null, set_attribute(t, "spellcheck", p()), set_attribute(t, "maxlength", o() === "tel" ? null : _()), set_attribute(t, "minlength", v()), s = set_class(t, 1, "svelte-1h0c2oe", null, s, { "action-input": x() });
|
|
7179
7179
|
}), event("focus", t, function(...e) {
|
|
7180
7180
|
A()?.apply(this, e);
|
|
7181
7181
|
}), delegated("focusout", t, Oe), delegated("input", t, Te), event("paste", t, Ee), delegated("click", t, function(...e) {
|
|
@@ -12253,14 +12253,14 @@ function ListItem(e, t) {
|
|
|
12253
12253
|
if_block(Z, (e) => {
|
|
12254
12254
|
typeof a() == "string" && a().length > 0 && e(Q);
|
|
12255
12255
|
});
|
|
12256
|
-
var
|
|
12256
|
+
var $ = sibling(Z, 2), ee = (e) => {
|
|
12257
12257
|
var t = root_4$21();
|
|
12258
12258
|
Loader(child(t), {}), reset(t), append(e, t);
|
|
12259
12259
|
};
|
|
12260
|
-
if_block(
|
|
12261
|
-
h() && e(
|
|
12260
|
+
if_block($, (e) => {
|
|
12261
|
+
h() && e(ee);
|
|
12262
12262
|
});
|
|
12263
|
-
var te = sibling(
|
|
12263
|
+
var te = sibling($, 2), ne = (e) => {
|
|
12264
12264
|
var t = root_5$17(), n = child(t, !0);
|
|
12265
12265
|
reset(t), template_effect(() => set_text(n, c())), append(e, t);
|
|
12266
12266
|
};
|
|
@@ -12693,7 +12693,7 @@ function Menu(e, t) {
|
|
|
12693
12693
|
set usePortal(e = !1) {
|
|
12694
12694
|
v(e), flushSync();
|
|
12695
12695
|
}
|
|
12696
|
-
}, Z = root_6$15(), Q = child(Z),
|
|
12696
|
+
}, Z = root_6$15(), Q = child(Z), $ = (e) => {
|
|
12697
12697
|
var t = root$36(), n = child(t), a = (e) => {
|
|
12698
12698
|
var t = comment();
|
|
12699
12699
|
snippet(first_child(t), o, () => ({
|
|
@@ -12706,7 +12706,7 @@ function Menu(e, t) {
|
|
|
12706
12706
|
if_block(n, (e) => {
|
|
12707
12707
|
typeof o() == "function" && e(a);
|
|
12708
12708
|
}), reset(t), bind_this(t, (e) => set(S, e), () => get(S)), append(e, t);
|
|
12709
|
-
},
|
|
12709
|
+
}, ee = (e) => {
|
|
12710
12710
|
var t = root_1$32(), n = child(t), a = (e) => {
|
|
12711
12711
|
var t = comment();
|
|
12712
12712
|
snippet(first_child(t), o, () => ({
|
|
@@ -12723,7 +12723,7 @@ function Menu(e, t) {
|
|
|
12723
12723
|
}), delegated("click", t, R), delegated("keydown", t, G), append(e, t);
|
|
12724
12724
|
};
|
|
12725
12725
|
if_block(Q, (e) => {
|
|
12726
|
-
s() ? e(
|
|
12726
|
+
s() ? e($) : e(ee, -1);
|
|
12727
12727
|
});
|
|
12728
12728
|
var te = sibling(Q, 2), ne = (e) => {
|
|
12729
12729
|
var t = root_5$16();
|
|
@@ -14005,11 +14005,11 @@ function Select(e, t) {
|
|
|
14005
14005
|
async function Q() {
|
|
14006
14006
|
c() || x() || (x(!0), v()?.(), set(A, -1), set(k, ""), o() && (await tick(), get(M) !== null && get(M).focus()));
|
|
14007
14007
|
}
|
|
14008
|
-
function
|
|
14008
|
+
function $() {
|
|
14009
14009
|
x(!1), y()?.(), set(k, ""), set(A, -1);
|
|
14010
14010
|
}
|
|
14011
|
-
function
|
|
14012
|
-
c() || (a() ? i(i().includes(e) ? i().filter((t) => t !== e) : [...i(), e]) : (i([e]),
|
|
14011
|
+
function ee(e) {
|
|
14012
|
+
c() || (a() ? i(i().includes(e) ? i().filter((t) => t !== e) : [...i(), e]) : (i([e]), $()), _()?.(i()));
|
|
14013
14013
|
}
|
|
14014
14014
|
function te(e) {
|
|
14015
14015
|
c() || (i(i().filter((t) => t !== e)), _()?.(i()));
|
|
@@ -14020,7 +14020,7 @@ function Select(e, t) {
|
|
|
14020
14020
|
function re() {
|
|
14021
14021
|
if (get(A) < 0 || get(A) >= get(K).length) return;
|
|
14022
14022
|
let e = get(K).at(get(A));
|
|
14023
|
-
typeof e != "object" || !e || (e.kind === "select-all" ? ne() :
|
|
14023
|
+
typeof e != "object" || !e || (e.kind === "select-all" ? ne() : ee(e.item.id));
|
|
14024
14024
|
}
|
|
14025
14025
|
async function ie(e) {
|
|
14026
14026
|
let t = get(A) + e;
|
|
@@ -14034,7 +14034,7 @@ function Select(e, t) {
|
|
|
14034
14034
|
x() || Q();
|
|
14035
14035
|
return;
|
|
14036
14036
|
}
|
|
14037
|
-
x() ?
|
|
14037
|
+
x() ? $() : Q();
|
|
14038
14038
|
}
|
|
14039
14039
|
function oe(e) {
|
|
14040
14040
|
if (!c()) switch (e.key) {
|
|
@@ -14051,7 +14051,7 @@ function Select(e, t) {
|
|
|
14051
14051
|
e.preventDefault(), ie(-1);
|
|
14052
14052
|
break;
|
|
14053
14053
|
case "Escape":
|
|
14054
|
-
x() && (
|
|
14054
|
+
x() && ($(), !o() && get(N) !== null && get(N).focus());
|
|
14055
14055
|
break;
|
|
14056
14056
|
case "Backspace":
|
|
14057
14057
|
if (a() && get(k) === "" && i().length > 0) {
|
|
@@ -14060,7 +14060,7 @@ function Select(e, t) {
|
|
|
14060
14060
|
}
|
|
14061
14061
|
break;
|
|
14062
14062
|
case "Tab":
|
|
14063
|
-
x() &&
|
|
14063
|
+
x() && $();
|
|
14064
14064
|
break;
|
|
14065
14065
|
}
|
|
14066
14066
|
}
|
|
@@ -14071,7 +14071,7 @@ function Select(e, t) {
|
|
|
14071
14071
|
x() || Q();
|
|
14072
14072
|
}
|
|
14073
14073
|
function le(e) {
|
|
14074
|
-
e.target instanceof Node && get(j) !== null && !get(j).contains(e.target) && !(get(P) !== null && get(P).contains(e.target)) &&
|
|
14074
|
+
e.target instanceof Node && get(j) !== null && !get(j).contains(e.target) && !(get(P) !== null && get(P).contains(e.target)) && $();
|
|
14075
14075
|
}
|
|
14076
14076
|
onMount(() => (document.addEventListener("click", le), () => {
|
|
14077
14077
|
document.removeEventListener("click", le), x() && y()?.();
|
|
@@ -14387,7 +14387,7 @@ function Select(e, t) {
|
|
|
14387
14387
|
var l = sibling(o);
|
|
14388
14388
|
reset(t), template_effect(() => set_text(l, ` ${f() ?? ""}`)), append(e, t);
|
|
14389
14389
|
}, l = (e) => {
|
|
14390
|
-
var o = root_10$8(), s = () =>
|
|
14390
|
+
var o = root_10$8(), s = () => ee(get(t).item.id), c = () => set(A, get(n), !0);
|
|
14391
14391
|
attribute_effect(o, (e, i) => ({
|
|
14392
14392
|
class: "select-option",
|
|
14393
14393
|
role: "option",
|
|
@@ -15275,7 +15275,7 @@ var normalizeColumns = (e, t) => ({
|
|
|
15275
15275
|
})),
|
|
15276
15276
|
rest: n.length - i.length
|
|
15277
15277
|
};
|
|
15278
|
-
}, trend_up_default = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path d=\"M2 11.5L6.5 7L9 9.5L14 4.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M9.5 4.5H14V9\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", trend_down_default = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path d=\"M2 4.5L6.5 9L9 6.5L14 11.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M9.5 11.5H14V7\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", dots_vertical_default = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"none\">\n <circle cx=\"8\" cy=\"3\" r=\"1.5\" fill=\"currentColor\"/>\n <circle cx=\"8\" cy=\"8\" r=\"1.5\" fill=\"currentColor\"/>\n <circle cx=\"8\" cy=\"13\" r=\"1.5\" fill=\"currentColor\"/>\n</svg>\n", root$26 = /* @__PURE__ */ from_html("<div><span class=\"builtin-primary-text svelte-4boxsj\"> </span> <!></div>"), root_1$24 = /* @__PURE__ */ from_html("<div><span class=\"builtin-primary-text svelte-4boxsj\"> </span> <span class=\"builtin-secondary-text svelte-4boxsj\"> </span></div>"), root_2$19 = /* @__PURE__ */ from_html("<span class=\"builtin-icon-label-icon svelte-4boxsj\"><!></span>"), root_3$17 = /* @__PURE__ */ from_html("<div><!> <span> </span></div>"), root_4$14 = /* @__PURE__ */ from_html("<span class=\"builtin-thumb svelte-4boxsj\"><!></span>"), root_5$12 = /* @__PURE__ */ from_html("<span class=\"builtin-thumb builtin-thumb-placeholder svelte-4boxsj\"> </span>"), root_6$12 = /* @__PURE__ */ from_html("<div><!> <div><span class=\"builtin-primary-text svelte-4boxsj\"> </span> <span class=\"builtin-secondary-text svelte-4boxsj\"> </span></div></div>"), root_7$11 = /* @__PURE__ */ from_html("<div></div>"), root_8$10 = /* @__PURE__ */ from_html("<span class=\"builtin-avatar-rest svelte-4boxsj\"> </span>"), root_9$8 = /* @__PURE__ */ from_html("<div><!> <!></div>"), root_10$7 = /* @__PURE__ */ from_html("<span class=\"builtin-primary-text svelte-4boxsj\"> </span>"), root_11$6 = /* @__PURE__ */ from_html("<span class=\"builtin-secondary-text svelte-4boxsj\"> </span>"), root_12$6 = /* @__PURE__ */ from_html("<span class=\"builtin-trend builtin-trend-up svelte-4boxsj\"><span class=\"builtin-trend-icon svelte-4boxsj\"></span> </span>"), root_13$6 = /* @__PURE__ */ from_html("<span class=\"builtin-trend builtin-trend-down svelte-4boxsj\"><span class=\"builtin-trend-icon svelte-4boxsj\"></span> </span>"), root_14$6 = /* @__PURE__ */ from_html("<span class=\"builtin-trend builtin-trend-flat svelte-4boxsj\">↔ 0%</span>"), root_15$6 = /* @__PURE__ */ from_html("<span class=\"builtin-trend builtin-trend-flat svelte-4boxsj\"> </span>"), root_16$5 = /* @__PURE__ */ from_html("<div><!> <!> <!></div>"), root_17$4 = /* @__PURE__ */ from_html("<span class=\"builtin-toggle svelte-4boxsj\" role=\"switch\"><!></span>"), root_18$4 = /* @__PURE__ */ from_html("<span class=\"builtin-interactive svelte-4boxsj\"><!></span>"), root_19$4 = /* @__PURE__ */ from_html("<img class=\"builtin-input-icon svelte-4boxsj\" alt=\"\"/>"), root_20$3 = /* @__PURE__ */ from_html("<img class=\"builtin-button-icon svelte-4boxsj\" alt=\"\"/>"), root_21$3 = /* @__PURE__ */ from_html("<span><!></span>"), root_22$3 = /* @__PURE__ */ from_html("<span class=\"builtin-menu-dots svelte-4boxsj\"></span>"), root_23$3 = /* @__PURE__ */ from_html("<span class=\"builtin-icon-button svelte-4boxsj\"><!></span>"), root_24$3 = /* @__PURE__ */ from_html("<span class=\"builtin-interactive builtin-action-group svelte-4boxsj\"><!> <!></span>"), root_25$2 = /* @__PURE__ */ from_html("<span class=\"builtin-copy-icon svelte-4boxsj\"></span>"), root_26$
|
|
15278
|
+
}, trend_up_default = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path d=\"M2 11.5L6.5 7L9 9.5L14 4.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M9.5 4.5H14V9\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", trend_down_default = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path d=\"M2 4.5L6.5 9L9 6.5L14 11.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n <path d=\"M9.5 11.5H14V7\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n</svg>\n", dots_vertical_default = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"none\">\n <circle cx=\"8\" cy=\"3\" r=\"1.5\" fill=\"currentColor\"/>\n <circle cx=\"8\" cy=\"8\" r=\"1.5\" fill=\"currentColor\"/>\n <circle cx=\"8\" cy=\"13\" r=\"1.5\" fill=\"currentColor\"/>\n</svg>\n", root$26 = /* @__PURE__ */ from_html("<div><span class=\"builtin-primary-text svelte-4boxsj\"> </span> <!></div>"), root_1$24 = /* @__PURE__ */ from_html("<div><span class=\"builtin-primary-text svelte-4boxsj\"> </span> <span class=\"builtin-secondary-text svelte-4boxsj\"> </span></div>"), root_2$19 = /* @__PURE__ */ from_html("<span class=\"builtin-icon-label-icon svelte-4boxsj\"><!></span>"), root_3$17 = /* @__PURE__ */ from_html("<div><!> <span> </span></div>"), root_4$14 = /* @__PURE__ */ from_html("<span class=\"builtin-thumb svelte-4boxsj\"><!></span>"), root_5$12 = /* @__PURE__ */ from_html("<span class=\"builtin-thumb builtin-thumb-placeholder svelte-4boxsj\"> </span>"), root_6$12 = /* @__PURE__ */ from_html("<div><!> <div><span class=\"builtin-primary-text svelte-4boxsj\"> </span> <span class=\"builtin-secondary-text svelte-4boxsj\"> </span></div></div>"), root_7$11 = /* @__PURE__ */ from_html("<div></div>"), root_8$10 = /* @__PURE__ */ from_html("<span class=\"builtin-avatar-rest svelte-4boxsj\"> </span>"), root_9$8 = /* @__PURE__ */ from_html("<div><!> <!></div>"), root_10$7 = /* @__PURE__ */ from_html("<span class=\"builtin-primary-text svelte-4boxsj\"> </span>"), root_11$6 = /* @__PURE__ */ from_html("<span class=\"builtin-secondary-text svelte-4boxsj\"> </span>"), root_12$6 = /* @__PURE__ */ from_html("<span class=\"builtin-trend builtin-trend-up svelte-4boxsj\"><span class=\"builtin-trend-icon svelte-4boxsj\"></span> </span>"), root_13$6 = /* @__PURE__ */ from_html("<span class=\"builtin-trend builtin-trend-down svelte-4boxsj\"><span class=\"builtin-trend-icon svelte-4boxsj\"></span> </span>"), root_14$6 = /* @__PURE__ */ from_html("<span class=\"builtin-trend builtin-trend-flat svelte-4boxsj\">↔ 0%</span>"), root_15$6 = /* @__PURE__ */ from_html("<span class=\"builtin-trend builtin-trend-flat svelte-4boxsj\"> </span>"), root_16$5 = /* @__PURE__ */ from_html("<div><!> <!> <!></div>"), root_17$4 = /* @__PURE__ */ from_html("<span class=\"builtin-toggle svelte-4boxsj\" role=\"switch\"><!></span>"), root_18$4 = /* @__PURE__ */ from_html("<span class=\"builtin-interactive svelte-4boxsj\"><!></span>"), root_19$4 = /* @__PURE__ */ from_html("<img class=\"builtin-input-icon svelte-4boxsj\" alt=\"\"/>"), root_20$3 = /* @__PURE__ */ from_html("<img class=\"builtin-button-icon svelte-4boxsj\" alt=\"\"/>"), root_21$3 = /* @__PURE__ */ from_html("<span><!></span>"), root_22$3 = /* @__PURE__ */ from_html("<span class=\"builtin-menu-dots svelte-4boxsj\"></span>"), root_23$3 = /* @__PURE__ */ from_html("<span class=\"builtin-icon-button svelte-4boxsj\"><!></span>"), root_24$3 = /* @__PURE__ */ from_html("<span class=\"builtin-interactive builtin-action-group svelte-4boxsj\"><!> <!></span>"), root_25$2 = /* @__PURE__ */ from_html("<span class=\"builtin-copy-icon svelte-4boxsj\"></span>"), root_26$2 = /* @__PURE__ */ from_html("<span class=\"builtin-link-copied svelte-4boxsj\">Copied</span>"), root_27$1 = /* @__PURE__ */ from_html("<span class=\"builtin-link-copy svelte-4boxsj\"><!></span> <!>", 1), root_28$1 = /* @__PURE__ */ from_html("<div class=\"builtin-link svelte-4boxsj\"><a target=\"_blank\" rel=\"noopener noreferrer\" class=\"builtin-link-anchor svelte-4boxsj\"> </a> <!></div>"), $$css$27 = {
|
|
15279
15279
|
hash: "svelte-4boxsj",
|
|
15280
15280
|
code: ".builtin-primary-text.svelte-4boxsj {display:block;font-size:var(--table-cell-primary-font-size, var(--table-content-font-size, 14px));color:var(--table-cell-primary-color, var(--table-content-color, #111827));}.builtin-secondary-text.svelte-4boxsj {display:block;font-size:var(--table-cell-secondary-font-size, 12px);color:var(--table-cell-secondary-color, #6b7280);}.builtin-two-line.svelte-4boxsj,\n .builtin-compare.svelte-4boxsj {display:flex;flex-direction:column;gap:var(--table-cell-line-gap, 2px);}\n\n /* column.align lands on the td as text-align, which flex layouts ignore.\n Column-flex builtins follow it via align-items… */.builtin-two-line.builtin-align-end.svelte-4boxsj,\n .builtin-compare.builtin-align-end.svelte-4boxsj {align-items:flex-end;}.builtin-two-line.builtin-align-center.svelte-4boxsj,\n .builtin-compare.builtin-align-center.svelte-4boxsj {align-items:center;}\n\n /* …and row-flex builtins follow it via justify-content. */.builtin-text-tag.builtin-align-end.svelte-4boxsj,\n .builtin-icon-label.builtin-align-end.svelte-4boxsj,\n .builtin-image-two-line.builtin-align-end.svelte-4boxsj,\n .builtin-tag-array.builtin-align-end.svelte-4boxsj,\n .builtin-avatar-stack.builtin-align-end.svelte-4boxsj {justify-content:flex-end;}.builtin-text-tag.builtin-align-center.svelte-4boxsj,\n .builtin-icon-label.builtin-align-center.svelte-4boxsj,\n .builtin-image-two-line.builtin-align-center.svelte-4boxsj,\n .builtin-tag-array.builtin-align-center.svelte-4boxsj,\n .builtin-avatar-stack.builtin-align-center.svelte-4boxsj {justify-content:center;}.builtin-text-tag.svelte-4boxsj {display:flex;align-items:center;gap:var(--table-cell-inline-gap, 8px);}.builtin-icon-label.svelte-4boxsj {display:flex;align-items:center;gap:var(--table-cell-inline-gap, 8px);}.builtin-icon-label-icon.svelte-4boxsj img,\n .builtin-icon-label-icon.svelte-4boxsj svg {width:var(--table-cell-icon-size, 16px);height:var(--table-cell-icon-size, 16px);color:var(--table-cell-icon-color, inherit);display:block;}.builtin-image-two-line.svelte-4boxsj {display:flex;align-items:center;gap:var(--table-cell-inline-gap, 8px);}.builtin-thumb.svelte-4boxsj {display:inline-flex;width:var(--table-cell-thumb-size, 32px);height:var(--table-cell-thumb-size, 32px);border-radius:var(--table-cell-thumb-radius, var(--radius, 4px));overflow:hidden;flex-shrink:0;}.builtin-thumb.svelte-4boxsj img {width:100%;height:100%;object-fit:cover;}.builtin-thumb-placeholder.svelte-4boxsj {display:flex;align-items:center;justify-content:center;background-color:var(--table-cell-thumb-placeholder-background, #f3f4f6);color:var(--table-cell-thumb-placeholder-color, #6b7280);font-size:var(--table-cell-thumb-placeholder-font-size, 14px);font-weight:600;line-height:1;text-transform:uppercase;}.builtin-tag-array.svelte-4boxsj {display:flex;flex-wrap:wrap;gap:var(--table-tag-array-gap, 4px);}.builtin-avatar-stack.svelte-4boxsj {display:flex;align-items:center;gap:var(--table-cell-inline-gap, 8px);}.builtin-avatar-rest.svelte-4boxsj {font-size:var(--table-cell-secondary-font-size, 12px);color:var(--table-cell-secondary-color, #6b7280);}.builtin-trend.svelte-4boxsj {display:inline-flex;align-items:center;gap:var(--table-trend-gap, 4px);font-size:var(--table-cell-secondary-font-size, 12px);}.builtin-trend-up.svelte-4boxsj {color:var(--table-trend-up-color, #16a34a);}.builtin-trend-down.svelte-4boxsj {color:var(--table-trend-down-color, #dc2626);}.builtin-trend-flat.svelte-4boxsj {color:var(--table-trend-flat-color, #6b7280);}.builtin-trend-icon.svelte-4boxsj svg {width:var(--table-trend-icon-size, 12px);height:var(--table-trend-icon-size, 12px);display:block;}.builtin-toggle.svelte-4boxsj {display:inline-flex;align-items:center;}.builtin-interactive.svelte-4boxsj {display:inline-flex;align-items:center;min-width:0;width:var(--table-interactive-width, auto);}.builtin-input-icon.svelte-4boxsj {display:block;width:var(--table-cell-input-icon-size, 16px);height:var(--table-cell-input-icon-size, 16px);}.builtin-button-icon.svelte-4boxsj {display:block;width:var(--table-cell-icon-size, 16px);height:var(--table-cell-icon-size, 16px);}.builtin-action-group.svelte-4boxsj {gap:var(--table-cell-inline-gap, 8px);}.builtin-icon-button.svelte-4boxsj {--button-color: transparent;--button-border: none;--button-padding: 2px;--button-margin: 0;--button-width: fit-content;--button-height: fit-content;--button-text-color: var(--table-cell-icon-button-color, #6b7280);--button-hover-color: var(--table-cell-icon-button-hover-background, rgba(0, 0, 0, 0.05));display:inline-flex;}.builtin-menu-dots.svelte-4boxsj svg {width:var(--table-cell-icon-size, 16px);height:var(--table-cell-icon-size, 16px);display:block;}.builtin-link.svelte-4boxsj {display:flex;align-items:center;gap:var(--table-cell-inline-gap, 8px);min-width:0;}.builtin-link-anchor.svelte-4boxsj {color:var(--table-link-color, #2563eb);text-decoration:var(--table-link-decoration, underline);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;}.builtin-link-copy.svelte-4boxsj {--button-color: transparent;--button-border: none;--button-padding: 2px;--button-margin: 0;--button-width: fit-content;--button-height: fit-content;--button-text-color: var(--table-link-copy-color, #6b7280);--button-hover-color: var(--table-link-copy-hover-background, rgba(0, 0, 0, 0.05));display:inline-flex;flex-shrink:0;}.builtin-copy-icon.svelte-4boxsj svg {width:var(--table-cell-icon-size, 16px);height:var(--table-cell-icon-size, 16px);display:block;}.builtin-link-copied.svelte-4boxsj {font-size:var(--table-cell-secondary-font-size, 12px);color:var(--table-cell-secondary-color, #6b7280);flex-shrink:0;}"
|
|
15281
15281
|
};
|
|
@@ -15925,7 +15925,7 @@ function BuiltinCell(e, t) {
|
|
|
15925
15925
|
}
|
|
15926
15926
|
reset(o);
|
|
15927
15927
|
var c = sibling(o, 2), u = (e) => {
|
|
15928
|
-
var t = root_26$
|
|
15928
|
+
var t = root_26$2();
|
|
15929
15929
|
template_effect(() => {
|
|
15930
15930
|
set_attribute(t, "data-pw", n().testId ? `${n().testId}-link-copied` : null), set_attribute(t, "testid", n().testId ? `${n().testId}-link-copied` : null);
|
|
15931
15931
|
}), append(e, t);
|
|
@@ -15963,7 +15963,7 @@ delegate(["click", "keydown"]), create_custom_element(BuiltinCell, {
|
|
|
15963
15963
|
}, [], [], { mode: "open" });
|
|
15964
15964
|
//#endregion
|
|
15965
15965
|
//#region src/lib/assets/sort-default.svg?raw
|
|
15966
|
-
var sort_default_default = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.64645 1.64645C5.84171 1.45118 6.15829 1.45118 6.35355 1.64645L8.85355 4.14645C9.04882 4.34171 9.04882 4.65829 8.85355 4.85355C8.65829 5.04882 8.34171 5.04882 8.14645 4.85355L6 2.70711L3.85355 4.85355C3.65829 5.04882 3.34171 5.04882 3.14645 4.85355C2.95118 4.65829 2.95118 4.34171 3.14645 4.14645L5.64645 1.64645Z\" fill=\"currentColor\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3.14645 7.14645C3.34171 6.95118 3.65829 6.95118 3.85355 7.14645L6 9.29289L8.14645 7.14645C8.34171 6.95118 8.65829 6.95118 8.85355 7.14645C9.04882 7.34171 9.04882 7.65829 8.85355 7.85355L6.35355 10.3536C6.15829 10.5488 5.84171 10.5488 5.64645 10.3536L3.14645 7.85355C2.95118 7.65829 2.95118 7.34171 3.14645 7.14645Z\" fill=\"currentColor\"/>\n</svg>\n", root$25 = /* @__PURE__ */ from_html("<div class=\"table-title svelte-171ci2i\"> </div>"), root_1$23 = /* @__PURE__ */ from_html("<button class=\"table-search-clear svelte-171ci2i\" type=\"button\" aria-label=\"Clear search\"></button>"), root_2$18 = /* @__PURE__ */ from_html("<div class=\"table-search svelte-171ci2i\"><span class=\"table-search-icon svelte-171ci2i\"></span> <input class=\"table-search-input svelte-171ci2i\" type=\"search\" autocomplete=\"off\"/> <!></div>"), root_3$16 = /* @__PURE__ */ from_html("<div class=\"table-toolbar svelte-171ci2i\"><!></div>"), root_4$13 = /* @__PURE__ */ from_html("<caption class=\"sr-only svelte-171ci2i\"> </caption>"), root_5$11 = /* @__PURE__ */ from_html("<span class=\"table-checkbox-icon svelte-171ci2i\"></span>"), root_6$11 = /* @__PURE__ */ from_html("<th><span><!></span></th>"), root_7$10 = /* @__PURE__ */ from_html("<th></th>"), root_8$9 = /* @__PURE__ */ from_html("<th> </th>"), root_9$7 = /* @__PURE__ */ from_html("<span> </span>"), root_10$6 = /* @__PURE__ */ from_html("<span class=\"table-header-filter-icon svelte-171ci2i\"></span>"), root_11$5 = /* @__PURE__ */ from_html("<span><!></span>"), root_12$5 = /* @__PURE__ */ from_html("<span class=\"table-header-filter svelte-171ci2i\"><!></span>"), root_13$5 = /* @__PURE__ */ from_html("<span class=\"sort-icon sort-icon-asc\"></span>"), root_14$5 = /* @__PURE__ */ from_html("<span class=\"sort-icon sort-icon-desc\"></span>"), root_15$5 = /* @__PURE__ */ from_html("<span class=\"sort-icon sort-icon-idle\"></span>"), root_16$4 = /* @__PURE__ */ from_html("<div class=\"sort-button svelte-171ci2i\"><!></div>"), root_17$3 = /* @__PURE__ */ from_html("<!> <span class=\"table-inline-search-clear svelte-171ci2i\"><!></span>", 1), root_18$3 = /* @__PURE__ */ from_html("<span class=\"table-inline-search-trigger svelte-171ci2i\"><!></span>"), root_19$3 = /* @__PURE__ */ from_html("<span class=\"table-header-inline-search svelte-171ci2i\"><!></span>"), root_20$2 = /* @__PURE__ */ from_html("<th><span class=\"table-header-content svelte-171ci2i\"><!> <!> <!> <!></span></th>"), root_21$2 = /* @__PURE__ */ from_html("<tr><td class=\"table-empty svelte-171ci2i\"><!></td></tr>"), root_22$2 = /* @__PURE__ */ from_html("<td class=\"table-content table-checkbox-col svelte-171ci2i\"><span><!></span></td>"), root_23$2 = /* @__PURE__ */ from_html("<td class=\"table-content table-row-number-col svelte-171ci2i\"> </td>"), root_24$2 = /* @__PURE__ */ from_html("<td><div><!></div></td>"), root_25$1 = /* @__PURE__ */ from_html("<tr><!><!><!></tr>"), root_26 = /* @__PURE__ */ from_html("<div class=\"table-footer svelte-171ci2i\"><!></div>"), root_27 = /* @__PURE__ */ from_html("<span class=\"table-paginator-size svelte-171ci2i\"><!></span>"), root_28 = /* @__PURE__ */ from_html("<div class=\"table-footer table-paginator svelte-171ci2i\"><span class=\"table-paginator-range svelte-171ci2i\"> </span> <span class=\"table-paginator-controls svelte-171ci2i\"><!> <!></span></div>"), root_29 = /* @__PURE__ */ from_html("<div><div><div class=\"table-scroll svelte-171ci2i\"><table class=\"svelte-171ci2i\"><!><thead><tr><!><!><!></tr></thead><tbody><!></tbody></table></div></div> <!></div>"), root_30 = /* @__PURE__ */ from_html("<!> <!> <!> <!>", 1), $$css$26 = {
|
|
15966
|
+
var sort_default_default = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M5.64645 1.64645C5.84171 1.45118 6.15829 1.45118 6.35355 1.64645L8.85355 4.14645C9.04882 4.34171 9.04882 4.65829 8.85355 4.85355C8.65829 5.04882 8.34171 5.04882 8.14645 4.85355L6 2.70711L3.85355 4.85355C3.65829 5.04882 3.34171 5.04882 3.14645 4.85355C2.95118 4.65829 2.95118 4.34171 3.14645 4.14645L5.64645 1.64645Z\" fill=\"currentColor\"/>\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3.14645 7.14645C3.34171 6.95118 3.65829 6.95118 3.85355 7.14645L6 9.29289L8.14645 7.14645C8.34171 6.95118 8.65829 6.95118 8.85355 7.14645C9.04882 7.34171 9.04882 7.65829 8.85355 7.85355L6.35355 10.3536C6.15829 10.5488 5.84171 10.5488 5.64645 10.3536L3.14645 7.85355C2.95118 7.65829 2.95118 7.34171 3.14645 7.14645Z\" fill=\"currentColor\"/>\n</svg>\n", root$25 = /* @__PURE__ */ from_html("<div class=\"table-title svelte-171ci2i\"> </div>"), root_1$23 = /* @__PURE__ */ from_html("<button class=\"table-search-clear svelte-171ci2i\" type=\"button\" aria-label=\"Clear search\"></button>"), root_2$18 = /* @__PURE__ */ from_html("<div class=\"table-search svelte-171ci2i\"><span class=\"table-search-icon svelte-171ci2i\"></span> <input class=\"table-search-input svelte-171ci2i\" type=\"search\" autocomplete=\"off\"/> <!></div>"), root_3$16 = /* @__PURE__ */ from_html("<div class=\"table-toolbar svelte-171ci2i\"><!></div>"), root_4$13 = /* @__PURE__ */ from_html("<caption class=\"sr-only svelte-171ci2i\"> </caption>"), root_5$11 = /* @__PURE__ */ from_html("<span class=\"table-checkbox-icon svelte-171ci2i\"></span>"), root_6$11 = /* @__PURE__ */ from_html("<th><span><!></span></th>"), root_7$10 = /* @__PURE__ */ from_html("<th></th>"), root_8$9 = /* @__PURE__ */ from_html("<th> </th>"), root_9$7 = /* @__PURE__ */ from_html("<span> </span>"), root_10$6 = /* @__PURE__ */ from_html("<span class=\"table-header-filter-icon svelte-171ci2i\"></span>"), root_11$5 = /* @__PURE__ */ from_html("<span><!></span>"), root_12$5 = /* @__PURE__ */ from_html("<span class=\"table-header-filter svelte-171ci2i\"><!></span>"), root_13$5 = /* @__PURE__ */ from_html("<span class=\"sort-icon sort-icon-asc\"></span>"), root_14$5 = /* @__PURE__ */ from_html("<span class=\"sort-icon sort-icon-desc\"></span>"), root_15$5 = /* @__PURE__ */ from_html("<span class=\"sort-icon sort-icon-idle\"></span>"), root_16$4 = /* @__PURE__ */ from_html("<div class=\"sort-button svelte-171ci2i\"><!></div>"), root_17$3 = /* @__PURE__ */ from_html("<!> <span class=\"table-inline-search-clear svelte-171ci2i\"><!></span>", 1), root_18$3 = /* @__PURE__ */ from_html("<span class=\"table-inline-search-trigger svelte-171ci2i\"><!></span>"), root_19$3 = /* @__PURE__ */ from_html("<span class=\"table-header-inline-search svelte-171ci2i\"><!></span>"), root_20$2 = /* @__PURE__ */ from_html("<th><span class=\"table-header-content svelte-171ci2i\"><!> <!> <!> <!></span></th>"), root_21$2 = /* @__PURE__ */ from_html("<tr><td class=\"table-empty svelte-171ci2i\"><!></td></tr>"), root_22$2 = /* @__PURE__ */ from_html("<td class=\"table-content table-checkbox-col svelte-171ci2i\"><span><!></span></td>"), root_23$2 = /* @__PURE__ */ from_html("<td class=\"table-content table-row-number-col svelte-171ci2i\"> </td>"), root_24$2 = /* @__PURE__ */ from_html("<td><div><!></div></td>"), root_25$1 = /* @__PURE__ */ from_html("<tr><!><!><!></tr>"), root_26$1 = /* @__PURE__ */ from_html("<div class=\"table-footer svelte-171ci2i\"><!></div>"), root_27 = /* @__PURE__ */ from_html("<span class=\"table-paginator-size svelte-171ci2i\"><!></span>"), root_28 = /* @__PURE__ */ from_html("<div class=\"table-footer table-paginator svelte-171ci2i\"><span class=\"table-paginator-range svelte-171ci2i\"> </span> <span class=\"table-paginator-controls svelte-171ci2i\"><!> <!></span></div>"), root_29 = /* @__PURE__ */ from_html("<div><div><div class=\"table-scroll svelte-171ci2i\"><table class=\"svelte-171ci2i\"><!><thead><tr><!><!><!></tr></thead><tbody><!></tbody></table></div></div> <!></div>"), root_30 = /* @__PURE__ */ from_html("<!> <!> <!> <!>", 1), $$css$26 = {
|
|
15967
15967
|
hash: "svelte-171ci2i",
|
|
15968
15968
|
code: "\n /* ── Title ─────────────────────────────────────────────────────────────── */.table-title.svelte-171ci2i {margin:var(--table-title-margin, 0px 0px 12px 0px);font-size:var(--table-title-font-size, var(--table-tile-font-size, 18px));font-weight:var(--table-title-font-weight, 600);color:var(--table-title-color, #111827);font-family:var(--table-title-font-family);padding:var(--table-title-padding);}\n\n /* ── C2-3 Search bar ────────────────────────────────────────────────────── */.table-search.svelte-171ci2i {display:flex;align-items:center;gap:var(--table-search-gap, 8px);padding:var(--table-search-padding, 8px 12px);border:var(--table-search-border, 1px solid #e5e7eb);border-radius:var(--table-search-border-radius, var(--radius, 4px));background-color:var(--table-search-background, #ffffff);margin-bottom:var(--table-search-margin-bottom, 8px);}.table-search-icon.svelte-171ci2i {display:inline-flex;align-items:center;color:var(--table-search-icon-color, #9ca3af);flex-shrink:0;}.table-search-icon.svelte-171ci2i svg {width:var(--table-search-icon-size, 16px);height:var(--table-search-icon-size, 16px);}.table-search-input.svelte-171ci2i {flex:1;border:none;outline:none;background:transparent;font-size:var(--table-search-font-size, 14px);color:var(--table-search-color, #111827);min-width:0;}.table-search-input.svelte-171ci2i:focus-visible {outline:2px solid var(--table-focus-outline-color, #3b82f6);outline-offset:2px;border-radius:var(--table-search-focus-border-radius, var(--radius, 4px));}.table-search-input.svelte-171ci2i::placeholder {color:var(--table-search-placeholder-color, #9ca3af);}\n\n /* Hide browser-default clear button on search inputs */.table-search-input.svelte-171ci2i::-webkit-search-cancel-button {display:none;}.table-search-clear.svelte-171ci2i {display:inline-flex;align-items:center;padding:2px;border:none;background:transparent;color:var(--table-search-clear-color, #6b7280);cursor:pointer;border-radius:4px;flex-shrink:0;}.table-search-clear.svelte-171ci2i:hover {color:var(--table-search-clear-hover-color, #111827);background-color:var(--table-search-clear-hover-background, rgba(0, 0, 0, 0.05));}.table-search-clear.svelte-171ci2i svg {width:var(--table-search-clear-icon-size, 14px);height:var(--table-search-clear-icon-size, 14px);}.table-header-inline-search.svelte-171ci2i {display:inline-flex;align-items:center;gap:var(--table-inline-search-gap, 6px);margin-left:auto;}.table-inline-search-trigger.svelte-171ci2i {--button-color: transparent;--button-border: none;--button-padding: var(--table-inline-search-trigger-padding, 4px);--button-text-color: var(--table-inline-search-icon-color, #9ca3af);}.table-inline-search-trigger.svelte-171ci2i svg {width:var(--table-inline-search-icon-size, 16px);height:var(--table-inline-search-icon-size, 16px);display:block;}.table-inline-search-input.svelte-171ci2i {--input-margin: 0;width:var(--table-inline-search-input-width, 160px);}.table-inline-search-clear.svelte-171ci2i {--button-color: transparent;--button-border: none;--button-padding: var(--table-inline-search-clear-padding, 2px);--button-text-color: var(--table-inline-search-clear-color, #6b7280);}.table-inline-search-clear.svelte-171ci2i svg {width:var(--table-inline-search-clear-icon-size, 14px);height:var(--table-inline-search-clear-icon-size, 14px);}\n\n /* ── Container ──────────────────────────────────────────────────────────── */.table-container.svelte-171ci2i {border:var(--table-border, 1px solid #e5e7eb);border-radius:var(--table-border-radius, var(--radius, 4px));width:var(--table-container-width, 100%);overflow:hidden;}.scrollable-table.svelte-171ci2i {height:var(--table-container-height, 143px);overflow-y:auto;}.table-scroll-shell.svelte-171ci2i {position:relative;min-width:0;}\n\n /* Edge scrims: fade the clipped side of the table into its background so\n hidden columns read as \"more content this way\". Class-driven from live\n scroll state — never shown when the table fits. pointer-events: none\n keeps cells under the fade clickable; z-index 2 paints above sticky\n headers (z-index 1). */.table-scroll-shell.svelte-171ci2i::before,\n .table-scroll-shell.svelte-171ci2i::after {content:'';position:absolute;top:0;bottom:0;width:var(--table-scroll-scrim-width, 32px);opacity:0;pointer-events:none;transition:opacity 0.2s ease;z-index:2;}.table-scroll-shell.svelte-171ci2i::before {left:0;border-radius:var(--table-border-radius, var(--radius, 4px)) 0 0\n var(--table-border-radius, var(--radius, 4px));background:linear-gradient(to right, var(--table-scroll-scrim-color, #ffffff), transparent);}.table-scroll-shell.svelte-171ci2i::after {right:0;border-radius:0 var(--table-border-radius, var(--radius, 4px))\n var(--table-border-radius, var(--radius, 4px)) 0;background:linear-gradient(to left, var(--table-scroll-scrim-color, #ffffff), transparent);}.table-scroll-shell.scrollable-left.svelte-171ci2i::before {opacity:1;}.table-scroll-shell.scrollable-right.svelte-171ci2i::after {opacity:1;}.table-scroll.svelte-171ci2i {overflow-x:auto;min-width:0;scrollbar-width:thin;}table.svelte-171ci2i {width:var(--table-width, 100%);border-collapse:var(--table-border-collapse, collapse);}.table-header.svelte-171ci2i,\n .table-content.svelte-171ci2i {border:var(--table-inner-border, none);padding:var(--table-padding, 12px 16px);text-align:var(--table-text-align, left);width:var(--table-column-width);\n /* Wrap at word boundaries; only a single word wider than the column may\n split as a last resort. break-word (not anywhere) keeps each column's\n min-content width at its longest word, so ordinary labels never split\n mid-word — the old break-all default did. Opt back in per consumer via\n --table-word-break / --table-overflow-wrap. */word-break:var(--table-word-break, normal);overflow-wrap:var(--table-overflow-wrap, break-word);}.scrollable-content.svelte-171ci2i {overflow-y:auto;height:var(--scrollable-column-height, 20px);}.table-header.svelte-171ci2i {background-color:var(--table-header-background, var(--table-header-border-bgcolor, #f9fafb));font-size:var(--table-header-font-size, 13px);font-family:var(--table-header-font-family);font-weight:var(--table-header-font-weight, 600);letter-spacing:var(--table-header-letter-spacing, 0.02em);text-transform:var(--table-header-text-transform);color:var(--table-header-color, var(--table-header-font-color, #6b7280));border-bottom:var(--table-header-border, var(--table-inner-border, none));}.table-header-content.svelte-171ci2i {display:flex;align-items:center;gap:4px;justify-content:var(--table-header-justify, flex-start);}.table-header-label.svelte-171ci2i {text-decoration:var(--table-header-tooltip-underline, underline dotted);text-underline-offset:2px;cursor:help;}.table-header-label-plain.svelte-171ci2i {text-decoration:none;}.table-header-filter.svelte-171ci2i {display:inline-flex;align-items:center;}.table-header-filter-trigger.svelte-171ci2i {--button-color: transparent;--button-border: none;--button-padding: 2px;--button-margin: 0;--button-width: fit-content;--button-height: fit-content;--button-text-color: var(--table-sort-button-color, inherit);--button-border-radius: 4px;--button-hover-color: var(--table-sort-button-hover-background, rgba(0, 0, 0, 0.05));display:inline-flex;align-items:center;opacity:var(--table-sort-idle-opacity, 0.5);}.table-header-filter-trigger.svelte-171ci2i:hover {opacity:var(--table-sort-idle-hover-opacity, 0.85);}.table-header-filter-active.svelte-171ci2i {opacity:1;color:var(--table-filter-active-color, #2563eb);}.table-header-filter-icon.svelte-171ci2i svg {width:var(--table-sort-icon-size, 14px);height:var(--table-sort-icon-size, 14px);display:block;}.table-cell-clamp.svelte-171ci2i {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.table-header-sticky.svelte-171ci2i {position:sticky;top:var(--table-header-sticky-top, 0);z-index:1;}.table-content.svelte-171ci2i {background-color:var(--table-content-background, var(--table-content-border-bgcolor));font-size:var(--table-content-font-size, 14px);font-family:var(--table-content-font-family);color:var(--table-content-color, var(--table-content-font-color, #111827));}\n\n /* Column highlight (TableColumn.highlighted). Row hover keeps higher\n specificity and row selection is declared later at equal specificity, so\n both row states paint over the column wash. */.table-header.table-col-highlighted.svelte-171ci2i {background-color:var(\n --table-col-highlight-header-background,\n var(--table-col-highlight-background, #f3f9ff)\n );}.table-content.table-col-highlighted.svelte-171ci2i {background-color:var(--table-col-highlight-background, #f3f9ff);}.table-row.svelte-171ci2i {border-bottom:var(--table-row-border, 1px solid #f3f4f6);background-color:var(--table-row-background);}.table-row.svelte-171ci2i:last-child {border-bottom:var(--table-row-last-border, none);}.table-row.svelte-171ci2i:nth-child(even) {background-color:var(--table-row-alt-background, var(--table-row-background));}.table-row.svelte-171ci2i:hover {background-color:var(--table-row-hover-background);}.table-row.svelte-171ci2i:hover > .table-content:where(.svelte-171ci2i) {background-color:var(\n --table-row-hover-background,\n var(--table-content-background, var(--table-content-border-bgcolor))\n );}.table-row-clickable.svelte-171ci2i {cursor:pointer;}.table-row-clickable.svelte-171ci2i:focus-visible {outline:2px solid var(--table-focus-outline-color, #3b82f6);outline-offset:-2px;}\n\n /* C2-1: Selected row highlight */.table-row-selected.svelte-171ci2i {background-color:var(--table-row-selected-background, #eff6ff);}.table-row-selected.svelte-171ci2i > .table-content:where(.svelte-171ci2i) {background-color:var(--table-row-selected-background, #eff6ff);}\n\n /* Summary/period-total row (summaryRowIndex): both the row and its cells,\n since a themed --table-content-background would otherwise paint over a\n row-level background. Falls back to the regular cell background. */.table-summary-row.svelte-171ci2i {background-color:var(--table-summary-row-background, var(--table-content-background));}.table-summary-row.svelte-171ci2i > .table-content:where(.svelte-171ci2i) {background-color:var(--table-summary-row-background, var(--table-content-background));}\n\n /* ── C2-1 Checkbox column ───────────────────────────────────────────────── */.table-checkbox-col.svelte-171ci2i {width:var(--table-checkbox-col-width, 44px);padding:var(--table-checkbox-col-padding, 12px 12px);}.table-checkbox-box.svelte-171ci2i {display:inline-flex;align-items:center;justify-content:center;width:var(--table-checkbox-size, 18px);height:var(--table-checkbox-size, 18px);border:var(--table-checkbox-border, 2px solid #9ca3af);border-radius:var(--table-checkbox-border-radius, var(--radius, 4px));background-color:var(--table-checkbox-background, transparent);cursor:pointer;flex-shrink:0;transition:background-color 0.15s,\n border-color 0.15s;user-select:none;}.table-checkbox-box.svelte-171ci2i:focus-visible {outline:none;box-shadow:var(--table-checkbox-focus-ring, 0 0 0 3px rgba(59, 130, 246, 0.3));}.table-checkbox-box.svelte-171ci2i:not(.disabled):hover {border-color:var(--table-checkbox-hover-border-color, #6b7280);}.table-checkbox-box.checked.svelte-171ci2i {background-color:var(--table-checkbox-checked-background, #2563eb);border-color:var(--table-checkbox-checked-border-color, #2563eb);}.table-checkbox-box.indeterminate.svelte-171ci2i {background-color:var(--table-checkbox-indeterminate-background, #2563eb);border-color:var(--table-checkbox-indeterminate-border-color, #2563eb);}.table-checkbox-box.disabled.svelte-171ci2i {opacity:var(--table-checkbox-disabled-opacity, 0.4);cursor:not-allowed;}.table-checkbox-icon.svelte-171ci2i {display:inline-flex;align-items:center;justify-content:center;width:var(--table-checkbox-icon-size, 12px);height:var(--table-checkbox-icon-size, 12px);color:var(--table-checkbox-icon-color, #ffffff);}.table-checkbox-icon.svelte-171ci2i svg {width:100%;height:100%;}\n\n /* ── Sort button ────────────────────────────────────────────────────────── */.sort-button.svelte-171ci2i {--button-color: transparent;--button-border: none;--button-padding: 2px;--button-margin: 0;--button-text-color: var(--table-sort-button-color, inherit);--button-border-radius: 4px;--button-width: fit-content;--button-height: fit-content;--button-hover-color: var(--table-sort-button-hover-background, rgba(0, 0, 0, 0.05));--button-hover-text-color: var(\n --table-sort-button-hover-color,\n var(--table-sort-button-color, inherit)\n );display:inline-flex;align-items:center;line-height:1;}.sort-button.svelte-171ci2i .sort-icon {display:inline-flex;align-items:center;}\n\n /* The sorted-direction half paints via currentColor; without an explicit\n color it inherits the Button's text color (white on the default button\n theme), which disappears on light headers. Default to the design\n system's active blue. */.sort-button.svelte-171ci2i .sort-icon:not(.sort-icon-idle) {color:var(--table-sort-active-color, #1b85ff);}.sort-button.svelte-171ci2i .sort-icon svg {width:var(--table-sort-icon-size, 14px);height:var(--table-sort-icon-size, 14px);display:block;}\n\n /* Two-tone state painting. The shared sort-default.svg asset stays\n color-agnostic (fill=\"currentColor\", like every other icon asset); the\n state colors live here. All halves default to the inactive fill, then\n the sorted direction's half is released back to currentColor (the\n active color above). Path order in the asset is up-chevron first,\n down-chevron second. */.sort-button.svelte-171ci2i .sort-icon svg path {fill:var(--table-sort-inactive-color, #c7c7c7);}.sort-button.svelte-171ci2i .sort-icon-asc svg path:first-child,\n .sort-button.svelte-171ci2i .sort-icon-desc svg path:last-child {fill:currentColor;}\n\n /* The design system draws every sort state fully opaque — faintness comes\n from the glyph fills (inactive halves #C7C7C7, active direction\n currentColor), never from transparency. The opacity vars remain for\n consumers that prefer a fade but now default to solid; hover steps the\n inactive halves to the design system's hover gray. */.sort-button.svelte-171ci2i .sort-icon-idle {opacity:var(--table-sort-idle-opacity, 1);}.sort-button.svelte-171ci2i:hover .sort-icon-idle {opacity:var(--table-sort-idle-hover-opacity, 1);--table-sort-inactive-color: var(--table-sort-hover-color, #797979);}\n\n /* ── Empty ──────────────────────────────────────────────────────────────── */.table-empty.svelte-171ci2i {padding:var(--table-empty-padding, 32px 24px);text-align:center;color:var(--table-empty-color, #9ca3af);}\n\n /* ── Footer ─────────────────────────────────────────────────────────────── */.table-footer.svelte-171ci2i {border-top:var(--table-footer-border, 1px solid #e5e7eb);padding:var(--table-footer-padding, 8px 16px);background-color:var(--table-footer-background, transparent);}.table-paginator.svelte-171ci2i {display:flex;align-items:center;justify-content:space-between;gap:var(--table-paginator-gap, 12px);flex-wrap:wrap;}.table-paginator-range.svelte-171ci2i {font-size:var(--table-paginator-range-font-size, 13px);color:var(--table-paginator-range-color, #6b7280);font-variant-numeric:tabular-nums;}.table-paginator-controls.svelte-171ci2i {display:flex;align-items:center;gap:var(--table-paginator-gap, 12px);}.table-paginator-size.svelte-171ci2i {display:inline-flex;min-width:var(--table-paginator-size-width, 72px);}\n\n /* ── Toolbar (bulk actions) ─────────────────────────────────────────────── */.table-toolbar.svelte-171ci2i {display:flex;align-items:center;gap:var(--table-toolbar-gap, 12px);padding:var(--table-toolbar-padding, 8px 12px);border:var(--table-toolbar-border, 1px solid #e5e7eb);border-radius:var(--table-toolbar-border-radius, var(--radius, 4px));background-color:var(--table-toolbar-background, #f9fafb);margin-bottom:var(--table-toolbar-margin-bottom, 8px);}\n\n /* ── Row-number column ──────────────────────────────────────────────────── */.table-row-number-col.svelte-171ci2i {width:var(--table-row-number-col-width, 48px);color:var(--table-row-number-color, #6b7280);font-variant-numeric:tabular-nums;text-align:var(--table-row-number-align, var(--table-text-align, left));}\n\n /* ── Accessibility ──────────────────────────────────────────────────────── */.sr-only.svelte-171ci2i {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap;border-width:0;}"
|
|
15969
15969
|
};
|
|
@@ -15975,9 +15975,9 @@ function Table(e, t) {
|
|
|
15975
15975
|
x()?.(e, t, n);
|
|
15976
15976
|
}, X = (e, t, n, i) => {
|
|
15977
15977
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), x()?.(t, n, i));
|
|
15978
|
-
}, Z = /* @__PURE__ */ user_derived(() => typeof x() == "function"), Q = /* @__PURE__ */ user_derived(() => d() || f()),
|
|
15978
|
+
}, Z = /* @__PURE__ */ user_derived(() => typeof x() == "function"), Q = /* @__PURE__ */ user_derived(() => d() || f()), $ = /* @__PURE__ */ state(!1), ee = /* @__PURE__ */ state(!1), te = (e) => {
|
|
15979
15979
|
let t = () => {
|
|
15980
|
-
set(
|
|
15980
|
+
set($, e.scrollLeft > 2), set(ee, e.scrollLeft + e.clientWidth < e.scrollWidth - 2);
|
|
15981
15981
|
};
|
|
15982
15982
|
t(), e.addEventListener("scroll", t, { passive: !0 });
|
|
15983
15983
|
let n = new ResizeObserver(t);
|
|
@@ -16716,7 +16716,7 @@ function Table(e, t) {
|
|
|
16716
16716
|
get(ve).length === 0 && typeof b() == "function" ? e(U) : e(ie, -1);
|
|
16717
16717
|
}), reset(z), reset(s), reset(a), action(a, (e) => te?.(e)), reset(n);
|
|
16718
16718
|
var ae = sibling(n, 2), de = (e) => {
|
|
16719
|
-
var t = root_26();
|
|
16719
|
+
var t = root_26$1();
|
|
16720
16720
|
snippet(child(t), T), reset(t), append(e, t);
|
|
16721
16721
|
}, me = (e) => {
|
|
16722
16722
|
var t = root_28(), n = child(t), i = child(n, !0);
|
|
@@ -16785,8 +16785,8 @@ function Table(e, t) {
|
|
|
16785
16785
|
typeof T() == "function" ? e(de) : j() && (get(Te) > 1 || j().hasMore) && e(me, 1);
|
|
16786
16786
|
}), reset(t), template_effect(() => {
|
|
16787
16787
|
set_class(t, 1, `table-container ${f() ? "scrollable-table" : ""} ${w() ?? "" ?? ""}`, "svelte-171ci2i"), set_attribute(t, "data-pw", m()), set_attribute(t, "testid", m()), i = set_class(n, 1, "table-scroll-shell svelte-171ci2i", null, i, {
|
|
16788
|
-
"scrollable-left": get(
|
|
16789
|
-
"scrollable-right": get(
|
|
16788
|
+
"scrollable-left": get($),
|
|
16789
|
+
"scrollable-right": get(ee)
|
|
16790
16790
|
});
|
|
16791
16791
|
}), append(e, t);
|
|
16792
16792
|
};
|
|
@@ -17601,7 +17601,7 @@ var TIME_DISPLAY_PATTERN = /^(1[0-2]|0?[1-9]):([0-5][0-9])\s?(AM|PM)$/i, pad = (
|
|
|
17601
17601
|
};
|
|
17602
17602
|
function DateRangePicker(e, t) {
|
|
17603
17603
|
push(t, !0), append_styles$1(e, $$css$23);
|
|
17604
|
-
let n = "<svg viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"8\" cy=\"8\" r=\"6.25\" stroke=\"currentColor\" stroke-width=\"1.5\"/><path d=\"M8 4.5V8l2.25 1.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", i = prop(t, "rangeStart", 15, null), a = prop(t, "rangeEnd", 15, null), o = prop(t, "value", 15, null), s = prop(t, "mode", 7, "range"), c = prop(t, "minDate", 7, null), l = prop(t, "maxDate", 7, null), u = prop(t, "disabledDates", 23, () => []), d = prop(t, "maxRangeDays", 7, null), f = prop(t, "presets", 7, null), p = prop(t, "presetCheckmark", 7, !1), m = prop(t, "showDateInputs", 7, !1), h = prop(t, "showTimeSelection", 7, !1), g = prop(t, "timeSelectionLayout", 7, "toggle"), _ = prop(t, "presetToggle", 7, !1), v = prop(t, "placeholder", 7, "Select date"), y = prop(t, "dualMonth", 7), b = prop(t, "timePicker", 7), x = prop(t, "align", 7, "left"), S = prop(t, "compareStart", 15, null), C = prop(t, "compareEnd", 15, null), w = prop(t, "compareCalendar", 7), T = prop(t, "weekStartsOn", 7, 0), E = prop(t, "locale", 7), D = prop(t, "testId", 7), O = prop(t, "classes", 7), k = prop(t, "triggerSnippet", 7), A = prop(t, "triggerIcon", 7), j = prop(t, "clearable", 7, !1), M = prop(t, "initialPresetLabel", 7), N = prop(t, "compareTrigger", 7), P = prop(t, "openCompare", 15, !1), F = prop(t, "onapply", 7), I = prop(t, "onapplysingle", 7), L = prop(t, "onapplycompare", 7), R = prop(t, "oncancel", 7), z = prop(t, "onopentoggle", 7), B = prop(t, "onclear", 7), V = /* @__PURE__ */ user_derived(() => typeof y() == "boolean" ? y() : s() === "range"), H = /* @__PURE__ */ state(null), U = /* @__PURE__ */ state(null), W = /* @__PURE__ */ state(null), G = /* @__PURE__ */ state(null), K = /* @__PURE__ */ state(null), q = /* @__PURE__ */ state(null), J = /* @__PURE__ */ state("12:00 AM"), Y = /* @__PURE__ */ state("11:59 PM"), X = /* @__PURE__ */ state(!1), Z = /* @__PURE__ */ state(null), Q = /* @__PURE__ */ state(null),
|
|
17604
|
+
let n = "<svg viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"8\" cy=\"8\" r=\"6.25\" stroke=\"currentColor\" stroke-width=\"1.5\"/><path d=\"M8 4.5V8l2.25 1.5\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", i = prop(t, "rangeStart", 15, null), a = prop(t, "rangeEnd", 15, null), o = prop(t, "value", 15, null), s = prop(t, "mode", 7, "range"), c = prop(t, "minDate", 7, null), l = prop(t, "maxDate", 7, null), u = prop(t, "disabledDates", 23, () => []), d = prop(t, "maxRangeDays", 7, null), f = prop(t, "presets", 7, null), p = prop(t, "presetCheckmark", 7, !1), m = prop(t, "showDateInputs", 7, !1), h = prop(t, "showTimeSelection", 7, !1), g = prop(t, "timeSelectionLayout", 7, "toggle"), _ = prop(t, "presetToggle", 7, !1), v = prop(t, "placeholder", 7, "Select date"), y = prop(t, "dualMonth", 7), b = prop(t, "timePicker", 7), x = prop(t, "align", 7, "left"), S = prop(t, "compareStart", 15, null), C = prop(t, "compareEnd", 15, null), w = prop(t, "compareCalendar", 7), T = prop(t, "weekStartsOn", 7, 0), E = prop(t, "locale", 7), D = prop(t, "testId", 7), O = prop(t, "classes", 7), k = prop(t, "triggerSnippet", 7), A = prop(t, "triggerIcon", 7), j = prop(t, "clearable", 7, !1), M = prop(t, "initialPresetLabel", 7), N = prop(t, "compareTrigger", 7), P = prop(t, "openCompare", 15, !1), F = prop(t, "onapply", 7), I = prop(t, "onapplysingle", 7), L = prop(t, "onapplycompare", 7), R = prop(t, "oncancel", 7), z = prop(t, "onopentoggle", 7), B = prop(t, "onclear", 7), V = /* @__PURE__ */ user_derived(() => typeof y() == "boolean" ? y() : s() === "range"), H = /* @__PURE__ */ state(null), U = /* @__PURE__ */ state(null), W = /* @__PURE__ */ state(null), G = /* @__PURE__ */ state(null), K = /* @__PURE__ */ state(null), q = /* @__PURE__ */ state(null), J = /* @__PURE__ */ state("12:00 AM"), Y = /* @__PURE__ */ state("11:59 PM"), X = /* @__PURE__ */ state(!1), Z = /* @__PURE__ */ state(null), Q = /* @__PURE__ */ state(null), $ = /* @__PURE__ */ user_derived(() => get(Z) ?? (get(H) === null ? "" : Ce(get(H)))), ee = /* @__PURE__ */ user_derived(() => get(Q) ?? (get(U) === null ? "" : Ce(get(U)))), te = /* @__PURE__ */ user_derived(() => h() && g() === "inline" && s() === "range"), ne = 1440 * 60 * 1e3;
|
|
17605
17605
|
function re(e) {
|
|
17606
17606
|
return typeof u() == "function" ? u()(e) : u().some((t) => at(t, e));
|
|
17607
17607
|
}
|
|
@@ -17756,12 +17756,12 @@ function DateRangePicker(e, t) {
|
|
|
17756
17756
|
return n === null ? !0 : !((e === "start" ? t.getTime() > n.getTime() : t.getTime() < n.getTime()) || d() !== null && Math.abs(Math.round((t.getTime() - n.getTime()) / ne)) + 1 > d());
|
|
17757
17757
|
}
|
|
17758
17758
|
let qe = /* @__PURE__ */ user_derived(() => {
|
|
17759
|
-
if (get(ee).trim() === "") return !0;
|
|
17760
|
-
let e = parseDateDisplay(get(ee));
|
|
17761
|
-
return e !== null && Ke("start", e);
|
|
17762
|
-
}), Je = /* @__PURE__ */ user_derived(() => {
|
|
17763
17759
|
if (get($).trim() === "") return !0;
|
|
17764
17760
|
let e = parseDateDisplay(get($));
|
|
17761
|
+
return e !== null && Ke("start", e);
|
|
17762
|
+
}), Je = /* @__PURE__ */ user_derived(() => {
|
|
17763
|
+
if (get(ee).trim() === "") return !0;
|
|
17764
|
+
let e = parseDateDisplay(get(ee));
|
|
17765
17765
|
return e !== null && Ke("end", e);
|
|
17766
17766
|
});
|
|
17767
17767
|
function Ye(e) {
|
|
@@ -18214,7 +18214,7 @@ function DateRangePicker(e, t) {
|
|
|
18214
18214
|
html(y, () => n, !0), reset(y);
|
|
18215
18215
|
var b = sibling(y, 2);
|
|
18216
18216
|
remove_input_defaults(b), reset(_), reset(p), template_effect(() => {
|
|
18217
|
-
o = set_class(a, 1, "drp-date-input svelte-gpybdi", null, o, { "drp-date-input-invalid": !get(qe) }), set_value(s, get(
|
|
18217
|
+
o = set_class(a, 1, "drp-date-input svelte-gpybdi", null, o, { "drp-date-input-invalid": !get(qe) }), set_value(s, get($)), set_attribute(s, "aria-invalid", !get(qe)), set_attribute(s, "data-pw", D() ? `${D()}-start-date` : null), set_attribute(s, "testid", D() ? `${D()}-start-date` : null), l = set_class(c, 1, "drp-time-input drp-time-input-inline svelte-gpybdi", null, l, { "drp-time-input-invalid": !get(we) }), set_attribute(d, "aria-invalid", !get(we)), set_attribute(d, "data-pw", D() ? `${D()}-start-time` : null), set_attribute(d, "testid", D() ? `${D()}-start-time` : null), h = set_class(m, 1, "drp-date-input svelte-gpybdi", null, h, { "drp-date-input-invalid": !get(Je) }), set_value(g, get(ee)), set_attribute(g, "aria-invalid", !get(Je)), set_attribute(g, "data-pw", D() ? `${D()}-end-date` : null), set_attribute(g, "testid", D() ? `${D()}-end-date` : null), v = set_class(_, 1, "drp-time-input drp-time-input-inline svelte-gpybdi", null, v, { "drp-time-input-invalid": !get(Te) }), set_attribute(b, "aria-invalid", !get(Te)), set_attribute(b, "data-pw", D() ? `${D()}-end-time` : null), set_attribute(b, "testid", D() ? `${D()}-end-time` : null);
|
|
18218
18218
|
}), delegated("input", s, (e) => Qe(e, "start")), event("blur", s, () => $e("start")), delegated("keydown", s, (e) => et(e, "start")), bind_value(d, () => get(J), (e) => set(J, e)), delegated("input", g, (e) => Qe(e, "end")), event("blur", g, () => $e("end")), delegated("keydown", g, (e) => et(e, "end")), bind_value(b, () => get(Y), (e) => set(Y, e)), append(e, t);
|
|
18219
18219
|
}, c = (e) => {
|
|
18220
18220
|
var t = root_11$4(), i = first_child(t);
|
|
@@ -18238,7 +18238,7 @@ function DateRangePicker(e, t) {
|
|
|
18238
18238
|
if_block(d, (e) => {
|
|
18239
18239
|
h() && e(f);
|
|
18240
18240
|
}), template_effect(() => {
|
|
18241
|
-
a = set_class(i, 1, "drp-date-input svelte-gpybdi", null, a, { "drp-date-input-invalid": !get(qe) }), set_value(o, get(
|
|
18241
|
+
a = set_class(i, 1, "drp-date-input svelte-gpybdi", null, a, { "drp-date-input-invalid": !get(qe) }), set_value(o, get($)), set_attribute(o, "aria-invalid", !get(qe)), set_attribute(o, "data-pw", D() ? `${D()}-start-date` : null), set_attribute(o, "testid", D() ? `${D()}-start-date` : null), l = set_class(c, 1, "drp-date-input svelte-gpybdi", null, l, { "drp-date-input-invalid": !get(Je) }), set_value(u, get(ee)), set_attribute(u, "aria-invalid", !get(Je)), set_attribute(u, "data-pw", D() ? `${D()}-end-date` : null), set_attribute(u, "testid", D() ? `${D()}-end-date` : null);
|
|
18242
18242
|
}), delegated("input", o, (e) => Qe(e, "start")), event("blur", o, () => $e("start")), delegated("keydown", o, (e) => et(e, "start")), delegated("input", u, (e) => Qe(e, "end")), event("blur", u, () => $e("end")), delegated("keydown", u, (e) => et(e, "end")), append(e, t);
|
|
18243
18243
|
};
|
|
18244
18244
|
if_block(o, (e) => {
|
|
@@ -22633,7 +22633,7 @@ var require_lottie = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
22633
22633
|
S = C[b].points, x = S[y - 1], g = S[y], w = g.partialLength;
|
|
22634
22634
|
}
|
|
22635
22635
|
f = p.length, l = 0, u = 0;
|
|
22636
|
-
var j = e.finalSize * 1.2 * .714, M = !0, N, P, F, I = i.length, L, R, z = -1, B, V, H, U = h, W = b, G = y, K = -1, q, J, Y, X, Z, Q, ee,
|
|
22636
|
+
var j = e.finalSize * 1.2 * .714, M = !0, N, P, F, I = i.length, L, R, z = -1, B, V, H, U = h, W = b, G = y, K = -1, q, J, Y, X, Z, Q, $, ee, te = "", ne = this.defaultPropsArray, re;
|
|
22637
22637
|
if (e.j === 2 || e.j === 1) {
|
|
22638
22638
|
var ie = 0, ae = 0, oe = e.j === 2 ? -.5 : -1, se = 0, ce = !0;
|
|
22639
22639
|
for (d = 0; d < f; d += 1) if (p[d].n) {
|
|
@@ -22646,7 +22646,7 @@ var require_lottie = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
22646
22646
|
for (ie && (ie += ae); se < d;) p[se].animatorJustifyOffset = ie, se += 1;
|
|
22647
22647
|
}
|
|
22648
22648
|
for (d = 0; d < f; d += 1) {
|
|
22649
|
-
if (o.reset(), q = 1, p[d].n) l = 0, u += e.yOffset, u += +!!M, h = U, M = !1, this._hasMaskedPath && (b = W, y = G, S = C[b].points, x = S[y - 1], g = S[y], w = g.partialLength, _ = 0), te = "",
|
|
22649
|
+
if (o.reset(), q = 1, p[d].n) l = 0, u += e.yOffset, u += +!!M, h = U, M = !1, this._hasMaskedPath && (b = W, y = G, S = C[b].points, x = S[y - 1], g = S[y], w = g.partialLength, _ = 0), te = "", ee = "", Q = "", re = "", ne = this.defaultPropsArray;
|
|
22650
22650
|
else {
|
|
22651
22651
|
if (this._hasMaskedPath) {
|
|
22652
22652
|
if (K !== p[d].line) {
|
|
@@ -22690,7 +22690,7 @@ var require_lottie = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
22690
22690
|
}
|
|
22691
22691
|
}
|
|
22692
22692
|
for (F = 0; F < I; F += 1) N = i[F].a, N.p.propType && (P = i[F].s, R = P.getMult(p[d].anIndexes[F], a.a[F].s.totalChars), this._hasMaskedPath ? R.length ? o.translate(0, N.p.v[1] * R[0], -N.p.v[2] * R[1]) : o.translate(0, N.p.v[1] * R, -N.p.v[2] * R) : R.length ? o.translate(N.p.v[0] * R[0], N.p.v[1] * R[1], -N.p.v[2] * R[2]) : o.translate(N.p.v[0] * R, N.p.v[1] * R, -N.p.v[2] * R));
|
|
22693
|
-
if (e.strokeWidthAnim && (Q = Y < 0 ? 0 : Y), e.strokeColorAnim && (
|
|
22693
|
+
if (e.strokeWidthAnim && (Q = Y < 0 ? 0 : Y), e.strokeColorAnim && ($ = "rgb(" + Math.round(J[0] * 255) + "," + Math.round(J[1] * 255) + "," + Math.round(J[2] * 255) + ")"), e.fillColorAnim && e.fc && (ee = "rgb(" + Math.round(X[0] * 255) + "," + Math.round(X[1] * 255) + "," + Math.round(X[2] * 255) + ")"), this._hasMaskedPath) {
|
|
22694
22694
|
if (o.translate(0, -e.ls), o.translate(0, n[1] * j * .01 + u, 0), this._pathData.p.v) {
|
|
22695
22695
|
D = (g.point[1] - x.point[1]) / (g.point[0] - x.point[0]);
|
|
22696
22696
|
var ue = Math.atan(D) * 180 / Math.PI;
|
|
@@ -22728,7 +22728,7 @@ var require_lottie = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
22728
22728
|
o.props[15]
|
|
22729
22729
|
], re = q;
|
|
22730
22730
|
}
|
|
22731
|
-
c <= d ? (L = new LetterProps(re, Q, ee,
|
|
22731
|
+
c <= d ? (L = new LetterProps(re, Q, $, ee, te, ne), this.renderedLetters.push(L), c += 1, this.lettersChangedFlag = !0) : (L = this.renderedLetters[d], this.lettersChangedFlag = L.update(re, Q, $, ee, te, ne) || this.lettersChangedFlag);
|
|
22732
22732
|
}
|
|
22733
22733
|
}
|
|
22734
22734
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -27790,7 +27790,7 @@ function MediaUpload(e, t) {
|
|
|
27790
27790
|
p() || e(f);
|
|
27791
27791
|
}), reset(i), template_effect(() => a = set_class(i, 1, "card svelte-nabf7u", null, a, { "is-file": !get(t).isImage })), append(e, i);
|
|
27792
27792
|
});
|
|
27793
|
-
var Q = sibling(Z, 2),
|
|
27793
|
+
var Q = sibling(Z, 2), $ = (e) => {
|
|
27794
27794
|
var t = root_14$2();
|
|
27795
27795
|
let i;
|
|
27796
27796
|
var a = child(t), c = child(a), u = (e) => {
|
|
@@ -27823,13 +27823,13 @@ function MediaUpload(e, t) {
|
|
|
27823
27823
|
}), event("dragover", t, B), event("dragleave", t, V), event("drop", t, z), delegated("change", y, R), append(e, t);
|
|
27824
27824
|
};
|
|
27825
27825
|
if_block(Q, (e) => {
|
|
27826
|
-
get(j) && e(
|
|
27826
|
+
get(j) && e($);
|
|
27827
27827
|
}), reset(X);
|
|
27828
|
-
var
|
|
27828
|
+
var ee = sibling(X, 2), te = (e) => {
|
|
27829
27829
|
var t = root_15$2(), n = child(t, !0);
|
|
27830
27830
|
reset(t), template_effect(() => set_text(n, get(O))), append(e, t);
|
|
27831
27831
|
};
|
|
27832
|
-
return if_block(
|
|
27832
|
+
return if_block(ee, (e) => {
|
|
27833
27833
|
get(O).length > 0 && e(te);
|
|
27834
27834
|
}), reset(W), template_effect(() => {
|
|
27835
27835
|
G = set_class(W, 1, `media-upload ${E() ?? "" ?? ""}`, "svelte-nabf7u", G, { disabled: p() }), set_attribute(W, "data-pw", typeof T() == "string" ? T() : null);
|
|
@@ -28473,8 +28473,8 @@ function Gallery(e, t) {
|
|
|
28473
28473
|
set classes(e) {
|
|
28474
28474
|
E(e), flushSync();
|
|
28475
28475
|
}
|
|
28476
|
-
},
|
|
28477
|
-
each(
|
|
28476
|
+
}, $ = root_15$1(), ee = first_child($);
|
|
28477
|
+
each(ee, 21, i, index, (e, t, a) => {
|
|
28478
28478
|
var o = root_8$5(), s = child(o), l = (e) => {
|
|
28479
28479
|
var o = root_4$7();
|
|
28480
28480
|
n(child(o), () => get(t), () => a), reset(o), template_effect(() => set_attribute(o, "aria-label", c() ? `View image ${a + 1} of ${i().length}: ${get(t).alt}` : get(t).alt)), delegated("click", o, (e) => K(a, e)), append(e, o);
|
|
@@ -28530,8 +28530,8 @@ function Gallery(e, t) {
|
|
|
28530
28530
|
if_block(d, (e) => {
|
|
28531
28531
|
get(z) && e(f);
|
|
28532
28532
|
}), reset(o), append(e, o);
|
|
28533
|
-
}), reset(
|
|
28534
|
-
var te = sibling(
|
|
28533
|
+
}), reset(ee);
|
|
28534
|
+
var te = sibling(ee, 2), ne = (e) => {
|
|
28535
28535
|
var t = root_14$1(), n = child(t);
|
|
28536
28536
|
Button(child(n), {
|
|
28537
28537
|
ariaLabel: "Close gallery",
|
|
@@ -28606,8 +28606,8 @@ function Gallery(e, t) {
|
|
|
28606
28606
|
return if_block(te, (e) => {
|
|
28607
28607
|
o() && e(ne);
|
|
28608
28608
|
}), template_effect(() => {
|
|
28609
|
-
set_class(
|
|
28610
|
-
}), append(e,
|
|
28609
|
+
set_class(ee, 1, `gallery ${a() ?? ""} ${get(I) ? "has-item-footer" : ""} ${E() ?? "" ?? ""}`, "svelte-14wkit2"), set_attribute(ee, "data-pw", typeof v() == "string" ? v() : null);
|
|
28610
|
+
}), append(e, $), pop(Q);
|
|
28611
28611
|
}
|
|
28612
28612
|
delegate(["click", "keydown"]), create_custom_element(Gallery, {
|
|
28613
28613
|
images: {},
|
|
@@ -29066,7 +29066,7 @@ function ChatMessage(e, t) {
|
|
|
29066
29066
|
if_block(Z, (e) => {
|
|
29067
29067
|
typeof d() == "function" && e(Q);
|
|
29068
29068
|
});
|
|
29069
|
-
var
|
|
29069
|
+
var $ = sibling(Z, 2), ee = (e) => {
|
|
29070
29070
|
var t = root_9$2(), n = child(t), i = (e) => {
|
|
29071
29071
|
var t = root_7$4();
|
|
29072
29072
|
Button(child(t), {
|
|
@@ -29146,8 +29146,8 @@ function ChatMessage(e, t) {
|
|
|
29146
29146
|
typeof p() == "function" && e(u);
|
|
29147
29147
|
}), reset(t), append(e, t);
|
|
29148
29148
|
};
|
|
29149
|
-
return if_block(
|
|
29150
|
-
get(M) && e(
|
|
29149
|
+
return if_block($, (e) => {
|
|
29150
|
+
get(M) && e(ee);
|
|
29151
29151
|
}), reset(V), reset(R), reset(I), template_effect(() => {
|
|
29152
29152
|
L = set_class(I, 1, `chat-message party-${get(C) ?? ""} role-${n() ?? ""} ${S() ?? "" ?? ""}`, "svelte-ivh8u", L, {
|
|
29153
29153
|
streaming: s(),
|
|
@@ -29868,7 +29868,7 @@ var send_default = "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentCol
|
|
|
29868
29868
|
};
|
|
29869
29869
|
function ChatComposer(e, t) {
|
|
29870
29870
|
push(t, !0), append_styles$1(e, $$css$7);
|
|
29871
|
-
let n = prop(t, "value", 15, ""), i = prop(t, "placeholder", 7, ""), a = prop(t, "disabled", 7, !1), o = prop(t, "submitOnEnter", 7, !0), s = prop(t, "maxLength", 7, 0), c = prop(t, "streaming", 7, !1), l = prop(t, "recording", 7, !1), u = prop(t, "attachments", 31, () => proxy([])), d = prop(t, "attachmentsPreview", 7), f = prop(t, "richImages", 23, () => []), p = prop(t, "richFiles", 23, () => []), m = prop(t, "richVideos", 23, () => []), h = prop(t, "richImageTooltip", 7), g = prop(t, "richVideoTooltip", 7), _ = prop(t, "richRemoveIcon", 7), v = prop(t, "richFileIcon", 7), y = prop(t, "onremoverichimage", 7), b = prop(t, "onremoverichfile", 7), x = prop(t, "onremoverichvideo", 7), S = prop(t, "onopenrichimage", 7), C = prop(t, "onopenrichvideo", 7), w = prop(t, "onopenrichfile", 7), T = prop(t, "sendable", 7, null), E = prop(t, "accept", 7, ""), D = prop(t, "multiple", 7, !1), O = prop(t, "sendLabel", 7, "Send message"), k = prop(t, "stopLabel", 7, "Stop generating"), A = prop(t, "voiceLabel", 7, "Voice input"), j = prop(t, "attachLabel", 7, "Attach files"), M = prop(t, "sendIcon", 7), N = prop(t, "stopIcon", 7), P = prop(t, "voiceIcon", 7), F = prop(t, "attachIcon", 7), I = prop(t, "actionIcon", 7), L = prop(t, "actionLabel", 7, "Voice conversation"), R = prop(t, "leading", 7), z = prop(t, "onsubmit", 7), B = prop(t, "oninput", 7), V = prop(t, "onkeydown", 7), H = prop(t, "onpaste", 7), U = prop(t, "onstop", 7), W = prop(t, "onvoice", 7), G = prop(t, "onattach", 7), K = prop(t, "onattachclick", 7), q = prop(t, "onaction", 7), J = prop(t, "testId", 7), Y = prop(t, "inputTestId", 7), X = prop(t, "inputAriaLabel", 7), Z = prop(t, "sendTestId", 7), Q = prop(t, "sendSlotTestId", 7),
|
|
29871
|
+
let n = prop(t, "value", 15, ""), i = prop(t, "placeholder", 7, ""), a = prop(t, "disabled", 7, !1), o = prop(t, "submitOnEnter", 7, !0), s = prop(t, "maxLength", 7, 0), c = prop(t, "streaming", 7, !1), l = prop(t, "recording", 7, !1), u = prop(t, "attachments", 31, () => proxy([])), d = prop(t, "attachmentsPreview", 7), f = prop(t, "richImages", 23, () => []), p = prop(t, "richFiles", 23, () => []), m = prop(t, "richVideos", 23, () => []), h = prop(t, "richImageTooltip", 7), g = prop(t, "richVideoTooltip", 7), _ = prop(t, "richRemoveIcon", 7), v = prop(t, "richFileIcon", 7), y = prop(t, "onremoverichimage", 7), b = prop(t, "onremoverichfile", 7), x = prop(t, "onremoverichvideo", 7), S = prop(t, "onopenrichimage", 7), C = prop(t, "onopenrichvideo", 7), w = prop(t, "onopenrichfile", 7), T = prop(t, "sendable", 7, null), E = prop(t, "accept", 7, ""), D = prop(t, "multiple", 7, !1), O = prop(t, "sendLabel", 7, "Send message"), k = prop(t, "stopLabel", 7, "Stop generating"), A = prop(t, "voiceLabel", 7, "Voice input"), j = prop(t, "attachLabel", 7, "Attach files"), M = prop(t, "sendIcon", 7), N = prop(t, "stopIcon", 7), P = prop(t, "voiceIcon", 7), F = prop(t, "attachIcon", 7), I = prop(t, "actionIcon", 7), L = prop(t, "actionLabel", 7, "Voice conversation"), R = prop(t, "leading", 7), z = prop(t, "onsubmit", 7), B = prop(t, "oninput", 7), V = prop(t, "onkeydown", 7), H = prop(t, "onpaste", 7), U = prop(t, "onstop", 7), W = prop(t, "onvoice", 7), G = prop(t, "onattach", 7), K = prop(t, "onattachclick", 7), q = prop(t, "onaction", 7), J = prop(t, "testId", 7), Y = prop(t, "inputTestId", 7), X = prop(t, "inputAriaLabel", 7), Z = prop(t, "sendTestId", 7), Q = prop(t, "sendSlotTestId", 7), $ = prop(t, "stopTestId", 7), ee = prop(t, "voiceTestId", 7), te = prop(t, "attachTestId", 7), ne = prop(t, "actionTestId", 7), re = prop(t, "classes", 7), ie = /* @__PURE__ */ state(null), ae = /* @__PURE__ */ user_derived(() => typeof W() == "function"), oe = /* @__PURE__ */ user_derived(() => typeof G() == "function" || typeof K() == "function"), se = /* @__PURE__ */ user_derived(() => f().length > 0 || m().length > 0 || p().length > 0), ce = /* @__PURE__ */ user_derived(() => !a() && (T() ?? (n().trim().length > 0 || u().length > 0 || get(se))));
|
|
29872
29872
|
function le() {
|
|
29873
29873
|
get(ce) && (z()?.(n(), u()), n(""), u([]));
|
|
29874
29874
|
}
|
|
@@ -30193,16 +30193,16 @@ function ChatComposer(e, t) {
|
|
|
30193
30193
|
Q(e), flushSync();
|
|
30194
30194
|
},
|
|
30195
30195
|
get stopTestId() {
|
|
30196
|
-
return
|
|
30196
|
+
return $();
|
|
30197
30197
|
},
|
|
30198
30198
|
set stopTestId(e) {
|
|
30199
|
-
|
|
30199
|
+
$(e), flushSync();
|
|
30200
30200
|
},
|
|
30201
30201
|
get voiceTestId() {
|
|
30202
|
-
return
|
|
30202
|
+
return ee();
|
|
30203
30203
|
},
|
|
30204
30204
|
set voiceTestId(e) {
|
|
30205
|
-
|
|
30205
|
+
ee(e), flushSync();
|
|
30206
30206
|
},
|
|
30207
30207
|
get attachTestId() {
|
|
30208
30208
|
return te();
|
|
@@ -30354,7 +30354,7 @@ function ChatComposer(e, t) {
|
|
|
30354
30354
|
return A();
|
|
30355
30355
|
},
|
|
30356
30356
|
get testId() {
|
|
30357
|
-
return
|
|
30357
|
+
return ee();
|
|
30358
30358
|
},
|
|
30359
30359
|
children: (e, t) => {
|
|
30360
30360
|
var n = comment(), i = first_child(n), a = (e) => {
|
|
@@ -30382,7 +30382,7 @@ function ChatComposer(e, t) {
|
|
|
30382
30382
|
return k();
|
|
30383
30383
|
},
|
|
30384
30384
|
get testId() {
|
|
30385
|
-
return
|
|
30385
|
+
return $();
|
|
30386
30386
|
},
|
|
30387
30387
|
children: (e, t) => {
|
|
30388
30388
|
var n = comment(), i = first_child(n), a = (e) => {
|
|
@@ -30687,1683 +30687,1421 @@ delegate(["click"]), create_custom_element(ChatSuggestions, {
|
|
|
30687
30687
|
classes: {}
|
|
30688
30688
|
}, [], [], { mode: "open" });
|
|
30689
30689
|
//#endregion
|
|
30690
|
-
//#region src/lib/
|
|
30691
|
-
var root$4 = /* @__PURE__ */ from_html("<div aria-live=\"polite\"><span class=\"
|
|
30692
|
-
hash: "svelte-
|
|
30693
|
-
code: ".chat-tool-status.svelte-1s6lfrc {box-sizing:border-box;display:inline-flex;align-items:center;gap:var(--chat-tool-status-gap, 8px);width:fit-content;padding:var(--chat-tool-status-padding, 8px 14px);background:var(--chat-tool-status-background, #ffffff);border:var(--chat-tool-status-border, 1px solid #e4e4e7);border-radius:var(--chat-tool-status-border-radius, 999px);box-shadow:var(--chat-tool-status-box-shadow, 0 6px 20px rgba(0, 0, 0, 0.08));color:var(--chat-tool-status-color, #52525b);font-size:var(--chat-tool-status-font-size, 0.85rem);font-weight:var(--chat-tool-status-font-weight, 500);max-width:var(--chat-tool-status-max-width, 100%);}.indicator.svelte-1s6lfrc {display:inline-flex;align-items:center;flex-shrink:0;color:var(--chat-tool-status-indicator-color, currentColor);--loader-foreground: var(--chat-tool-status-spinner-color, currentColor);--loader-foreground-end: var(--chat-tool-status-spinner-color-end, transparent);--loader-width: var(--chat-tool-status-spinner-size, 14px);--loader-height: var(--chat-tool-status-spinner-size, 14px);--loader-before-width: 7px;--loader-before-height: 7px;--loader-after-width: 11px;--loader-after-height: 11px;--loader-background: var(--chat-tool-status-background, #ffffff);}.label.svelte-1s6lfrc {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}"
|
|
30690
|
+
//#region src/lib/ThinkingIndicator/ThinkingIndicator.svelte
|
|
30691
|
+
var root$4 = /* @__PURE__ */ from_html("<span class=\"avatar svelte-uzfrw6\"><!></span>"), root_1$4 = /* @__PURE__ */ from_svg("<svg viewBox=\"0 0 16 16\" fill=\"none\" class=\"svelte-uzfrw6\"><path d=\"M4 6l4 4 4-4\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-uzfrw6\"></path></svg>"), root_2$3 = /* @__PURE__ */ from_html("<span class=\"elapsed svelte-uzfrw6\"> </span>"), root_3$3 = /* @__PURE__ */ from_html("<span class=\"status-row svelte-uzfrw6\"><!> <span class=\"label-cluster svelte-uzfrw6\"><span> </span> <span aria-hidden=\"true\"><!></span></span></span> <!>", 1), root_4$2 = /* @__PURE__ */ from_svg("<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" aria-hidden=\"true\" class=\"svelte-uzfrw6\"><circle cx=\"11\" cy=\"11\" r=\"7\" class=\"svelte-uzfrw6\"></circle><path d=\"m21 21-4.3-4.3\" stroke-linecap=\"round\" class=\"svelte-uzfrw6\"></path></svg>"), root_5$2 = /* @__PURE__ */ from_html("<span class=\"trace-query-wrap svelte-uzfrw6\"><!></span>"), root_6$2 = /* @__PURE__ */ from_html("<span> </span>"), root_7$2 = /* @__PURE__ */ from_html("<span class=\"added svelte-uzfrw6\"> </span>"), root_8$2 = /* @__PURE__ */ from_html("<span class=\"removed svelte-uzfrw6\"> </span>"), root_9$1 = /* @__PURE__ */ from_html("<span class=\"row-diffstat svelte-uzfrw6\"><!> <!></span>"), root_10 = /* @__PURE__ */ from_html("<button type=\"button\"><b class=\"row-primary svelte-uzfrw6\"> </b> <!> <!></button>"), root_11 = /* @__PURE__ */ from_html("<span class=\"row-secondary svelte-uzfrw6\"> </span>"), root_12 = /* @__PURE__ */ from_html("<a class=\"trace-row linked svelte-uzfrw6\" target=\"_blank\" rel=\"noopener noreferrer\"><span class=\"row-badge svelte-uzfrw6\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-uzfrw6\"><path d=\"M20 6 9 17l-5-5\" class=\"svelte-uzfrw6\"></path></svg></span> <b class=\"row-primary svelte-uzfrw6\"> </b> <!></a>"), root_13 = /* @__PURE__ */ from_svg("<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-uzfrw6\"><path d=\"M20 6 9 17l-5-5\" class=\"svelte-uzfrw6\"></path></svg>"), root_14 = /* @__PURE__ */ from_html("<span class=\"row-icon svelte-uzfrw6\" aria-hidden=\"true\"><!></span>"), root_15 = /* @__PURE__ */ from_html("<span class=\"row-badge svelte-uzfrw6\" aria-hidden=\"true\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"3\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-uzfrw6\"><path d=\"M20 6 9 17l-5-5\" class=\"svelte-uzfrw6\"></path></svg></span>"), root_16 = /* @__PURE__ */ from_html("<b class=\"row-primary svelte-uzfrw6\"> </b>"), root_17 = /* @__PURE__ */ from_html("<div><!> <!> <!> <!></div>"), root_18 = /* @__PURE__ */ from_html("<div class=\"trace-more svelte-uzfrw6\"> </div>"), root_19 = /* @__PURE__ */ from_html("<!> <div class=\"trace-body svelte-uzfrw6\"><span class=\"trace-connector svelte-uzfrw6\" aria-hidden=\"true\"></span> <div class=\"trace-rows svelte-uzfrw6\"></div></div> <!>", 1), root_20 = /* @__PURE__ */ from_html("<p class=\"detail svelte-uzfrw6\"> </p>"), root_21 = /* @__PURE__ */ from_html("<div class=\"thinking-indicator-body svelte-uzfrw6\"><!></div>"), root_22 = /* @__PURE__ */ from_html("<div><div class=\"toggle svelte-uzfrw6\"><!></div> <!></div>"), root_23 = /* @__PURE__ */ from_html("<span class=\"svelte-uzfrw6\"> </span>"), root_24 = /* @__PURE__ */ from_html("<span><!></span>"), root_25 = /* @__PURE__ */ from_html("<div aria-live=\"polite\" aria-atomic=\"true\"><span class=\"chip-icon svelte-uzfrw6\"><!></span> <span> </span></div>"), root_26 = /* @__PURE__ */ from_html("<div><span class=\"status-row svelte-uzfrw6\"><span class=\"avatar svelte-uzfrw6\"><!></span> <span> </span></span> <!></div>"), $$css$5 = {
|
|
30692
|
+
hash: "svelte-uzfrw6",
|
|
30693
|
+
code: "\n @keyframes svelte-uzfrw6-thinking-indicator-shimmer {\n 0% {\n background-position: 200% 0;\n }\n\n 100% {\n background-position: -200% 0;\n }\n }\n\n @keyframes svelte-uzfrw6-thinking-indicator-fade-up {\n from {\n opacity: 0;\n transform: translateY(9px);\n }\n to {\n opacity: 1;\n transform: none;\n }\n }\n\n @keyframes svelte-uzfrw6-thinking-indicator-fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }.thinking-indicator.svelte-uzfrw6 {box-sizing:border-box;width:100%;}.expandable.svelte-uzfrw6 {border-bottom:var(--thinking-indicator-border-bottom, 1px solid #e4e4e7);padding-block:var(--thinking-indicator-padding-block, 0.5rem);margin-bottom:var(--thinking-indicator-margin-bottom, 1rem);min-height:0;transition:min-height 400ms\n var(--thinking-indicator-trace-ease, cubic-bezier(0.23, 1, 0.32, 1));}.expandable.busy.svelte-uzfrw6 {min-height:var(--thinking-indicator-trace-busy-min-height, 0px);}.toggle.svelte-uzfrw6 {width:100%;--button-color: transparent;--button-border: none;--button-box-shadow: none;--button-hover-box-shadow: none;--button-active-box-shadow: none;--button-width: 100%;--button-padding: 0;--button-justify-content: flex-start;--button-text-color: inherit;--button-content-gap: var(--thinking-indicator-header-gap, 0.375rem);}\n\n /* A flex ROW host makes the inner status-row hug its content, so the shimmer\n gradient maps to the text's own width rather than the full container. Neither\n form stretches to fill the width — a trailing gap after a short label is real\n empty space, not a reserved box, so nothing pushes the elapsed counter away. */.status-host.svelte-uzfrw6 {display:flex;align-items:center;gap:var(--thinking-indicator-header-gap, 0.375rem);}.status-row.svelte-uzfrw6 {display:flex;align-items:center;gap:var(--thinking-indicator-gap, 0.25rem);min-width:0;}.avatar.svelte-uzfrw6 {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--thinking-indicator-avatar-size, 1.5rem);height:var(--thinking-indicator-avatar-size, 1.5rem);--loader-width: var(--thinking-indicator-avatar-loader-size, 1rem);--loader-height: var(--thinking-indicator-avatar-loader-size, 1rem);}\n\n /* The chevron lives in the same flex cluster as the label so it hugs the text\n immediately, instead of drifting to the far edge of the toggle button. */.label-cluster.svelte-uzfrw6 {display:flex;align-items:center;gap:var(--thinking-indicator-arrow-gap, 0.125rem);min-width:0;}.status-label.svelte-uzfrw6 {flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;font-size:var(--thinking-indicator-font-size, 0.75rem);line-height:var(--thinking-indicator-line-height, 1.25rem);color:var(--thinking-indicator-label-color, #858585);background:var(\n --thinking-indicator-shimmer-gradient,\n linear-gradient(90deg, #858585 0%, #bebebe 50%, #858585 100%)\n );background-size:200% 100%;background-clip:text;-webkit-text-fill-color:transparent;\n animation: svelte-uzfrw6-thinking-indicator-shimmer var(--thinking-indicator-shimmer-duration, 2s) linear\n infinite;}\n\n /* A settled label (no live busy phase) holds still instead of shimmering. */.static-label.svelte-uzfrw6 {\n animation: none;-webkit-text-fill-color:var(--thinking-indicator-label-color, #858585);}\n\n /* ---- chip variant: a self-contained floating pill (no ancestor supplies\n background/layout, unlike bare) — deliberately not `width: 100%`/box-sizing\n from `.thinking-indicator`, since a pill hugs its content. */.thinking-indicator-chip.svelte-uzfrw6 {box-sizing:border-box;display:inline-flex;align-items:center;gap:var(--thinking-indicator-chip-gap, 8px);width:fit-content;padding:var(--thinking-indicator-chip-padding, 8px 14px);background:var(--thinking-indicator-chip-background, #ffffff);border:var(--thinking-indicator-chip-border, 1px solid #e4e4e7);border-radius:var(--thinking-indicator-chip-border-radius, 999px);box-shadow:var(--thinking-indicator-chip-box-shadow, 0 6px 20px rgba(0, 0, 0, 0.08));max-width:var(--thinking-indicator-chip-max-width, 100%);}.chip-icon.svelte-uzfrw6 {display:inline-flex;align-items:center;flex-shrink:0;color:var(--thinking-indicator-chip-icon-color, currentColor);--loader-foreground: var(--thinking-indicator-chip-spinner-color, currentColor);--loader-foreground-end: var(--thinking-indicator-chip-spinner-color-end, transparent);--loader-width: var(--thinking-indicator-chip-spinner-size, 14px);--loader-height: var(--thinking-indicator-chip-spinner-size, 14px);--loader-before-width: 7px;--loader-before-height: 7px;--loader-after-width: 11px;--loader-after-height: 11px;--loader-background: var(--thinking-indicator-chip-background, #ffffff);}.chip-label.svelte-uzfrw6 {flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--thinking-indicator-chip-font-size, 0.85rem);font-weight:var(--thinking-indicator-chip-font-weight, 500);color:var(--thinking-indicator-chip-color, #52525b);background:var(\n --thinking-indicator-chip-shimmer-gradient,\n linear-gradient(90deg, #52525b 0%, #a0a0a0 50%, #52525b 100%)\n );background-size:200% 100%;background-clip:text;-webkit-text-fill-color:transparent;\n animation: svelte-uzfrw6-thinking-indicator-shimmer var(--thinking-indicator-chip-shimmer-duration, 2s) linear\n infinite;}\n\n /* Chip defaults to a static label (unlike the default/bare variants) since it\n mirrors ChatToolStatus, which never shimmered — pass `busy` explicitly to\n opt in. Higher specificity than the generic `.static-label` rule above, so\n it correctly overrides with the chip's own color token, not the default\n variant's. */.chip-label.static-label.svelte-uzfrw6 {\n animation: none;-webkit-text-fill-color:var(--thinking-indicator-chip-color, #52525b);}.arrow.svelte-uzfrw6 {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--thinking-indicator-arrow-size, 1rem);height:var(--thinking-indicator-arrow-size, 1rem);color:var(--thinking-indicator-arrow-color, #7a7a7a);transform:rotate(-90deg);transition:var(--thinking-indicator-arrow-transition, transform 0.2s ease-in-out);}.arrow.svelte-uzfrw6 svg:where(.svelte-uzfrw6) {width:100%;height:100%;}.arrow.expanded.svelte-uzfrw6 {transform:rotate(0deg);}.detail.svelte-uzfrw6 {margin:0;padding-top:var(--thinking-indicator-detail-padding-top, 0.5rem);font-size:var(--thinking-indicator-detail-font-size, 0.875rem);line-height:var(--thinking-indicator-detail-line-height, 1.5);color:var(--thinking-indicator-detail-color, #bebebe);text-align:left;}.elapsed.svelte-uzfrw6 {flex-shrink:0;font-variant-numeric:tabular-nums;color:var(--thinking-indicator-elapsed-color, #9a9a9a);font-size:var(--thinking-indicator-elapsed-font-size, 0.75rem);}\n\n /* ---- Trace body (rows?: ThinkingIndicatorTraceRow[]) ---- */\n\n /* Wrapper exists only to carry `inert` while the Accordion has it collapsed —\n no box of its own, so it can't disturb the detail/trace layout it wraps. */.thinking-indicator-body.svelte-uzfrw6 {display:contents;}.trace-query-wrap.svelte-uzfrw6 {display:inline-flex;margin:var(--thinking-indicator-trace-query-margin, 10px 0 0);--pill-width: auto;--pill-justify-content: flex-start;--pill-cursor: default;--pill-gap: 6px;--pill-background: var(--thinking-indicator-trace-query-background, #f1f1f1);--pill-color: var(--thinking-indicator-trace-query-color, #6b6b6b);--pill-border-radius: var(--thinking-indicator-trace-query-radius, 999px);--pill-padding: var(--thinking-indicator-trace-query-padding, 3px 11px);--pill-font-size: var(--thinking-indicator-trace-query-font-size, 0.8125rem);--pill-font-weight: 400;}.trace-query-wrap.svelte-uzfrw6 svg {width:11px;height:11px;}.trace-body.svelte-uzfrw6 {display:flex;gap:var(--thinking-indicator-trace-body-gap, 12px);padding-top:var(--thinking-indicator-trace-body-padding-top, 10px);}.trace-connector.svelte-uzfrw6 {width:2px;border-radius:999px;background:var(--thinking-indicator-trace-connector-color, #dcdcdc);margin-left:6px;flex-shrink:0;transition:height 500ms var(--thinking-indicator-trace-ease, cubic-bezier(0.23, 1, 0.32, 1));}.trace-rows.svelte-uzfrw6 {flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--thinking-indicator-trace-row-gap, 7px);align-self:flex-start;}.trace-row.svelte-uzfrw6 {display:flex;align-items:baseline;gap:8px;font-size:var(--thinking-indicator-trace-row-font-size, 0.8125rem);color:var(--thinking-indicator-trace-row-color, #2b2b2b);\n animation: svelte-uzfrw6-thinking-indicator-fade-up 320ms\n var(--thinking-indicator-trace-ease, cubic-bezier(0.23, 1, 0.32, 1)) both;text-decoration:none;}.trace-row.prose.svelte-uzfrw6 {color:var(--thinking-indicator-trace-prose-color, #6b6b6b);}.trace-row.selectable.svelte-uzfrw6 {border:none;background:none;font:inherit;text-align:left;padding:3px 6px;margin:-3px -6px;border-radius:var(--thinking-indicator-trace-row-radius, 6px);cursor:pointer;transition:background 150ms ease;width:calc(100% + 12px);}.trace-row.selectable.svelte-uzfrw6:hover {background:var(--thinking-indicator-trace-row-hover-background, #f4f4f4);}.trace-row.selectable.selected.svelte-uzfrw6 {background:var(--thinking-indicator-trace-row-selected-background, #ececec);}.trace-row.linked.svelte-uzfrw6:hover .row-primary:where(.svelte-uzfrw6) {text-decoration:underline;}.row-primary.svelte-uzfrw6 {font-weight:var(--thinking-indicator-trace-row-weight, 500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.row-secondary.svelte-uzfrw6 {color:var(--thinking-indicator-trace-secondary-color, #9a9a9a);font-size:var(--thinking-indicator-trace-secondary-font-size, 0.75rem);white-space:nowrap;}.row-secondary.mono.svelte-uzfrw6 {font-family:var(--thinking-indicator-trace-mono-font, ui-monospace, Menlo, monospace);}\n\n /* Steps kind: a static check icon, or — on the frontier row while busy — the\n library Loader, recoloured/resized to match the row's small icon footprint. */.row-icon.svelte-uzfrw6 {display:inline-flex;align-self:center;width:14px;flex-shrink:0;color:var(--thinking-indicator-trace-icon-color, #9a9a9a);--loader-width: var(--thinking-indicator-trace-spinner-size, 11px);--loader-height: var(--thinking-indicator-trace-spinner-size, 11px);--loader-before-width: 5px;--loader-before-height: 5px;--loader-after-width: 8px;--loader-after-height: 8px;--loader-foreground: var(--thinking-indicator-trace-spinner-color, #6b6b6b);--loader-foreground-end: var(--thinking-indicator-trace-spinner-color-end, transparent);--loader-background: var(--thinking-indicator-trace-spinner-track-color, #dcdcdc);}.row-icon.svelte-uzfrw6 svg:where(.svelte-uzfrw6) {width:12px;height:12px;}.row-badge.svelte-uzfrw6 {width:15px;height:15px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;color:var(--thinking-indicator-trace-badge-check-color, #fff);flex-shrink:0;align-self:center;}.row-badge[data-tone='1'].svelte-uzfrw6 {background:var(--thinking-indicator-trace-tone-1, #2f6fec);}.row-badge[data-tone='2'].svelte-uzfrw6 {background:var(--thinking-indicator-trace-tone-2, #e56d24);}.row-badge[data-tone='3'].svelte-uzfrw6 {background:var(--thinking-indicator-trace-tone-3, #1f7a5f);}.row-badge.svelte-uzfrw6 svg:where(.svelte-uzfrw6) {width:9px;height:9px;}.row-diffstat.svelte-uzfrw6 {margin-left:auto;font-family:var(--thinking-indicator-trace-mono-font, ui-monospace, Menlo, monospace);font-size:0.75rem;font-variant-numeric:tabular-nums;white-space:nowrap;display:inline-flex;gap:5px;}.row-diffstat.svelte-uzfrw6 .added:where(.svelte-uzfrw6) {color:var(--thinking-indicator-trace-added-color, #1f7a5f);}.row-diffstat.svelte-uzfrw6 .removed:where(.svelte-uzfrw6) {color:var(--thinking-indicator-trace-removed-color, #c93f38);}.trace-more.svelte-uzfrw6 {font-size:var(--thinking-indicator-trace-more-font-size, 0.75rem);color:var(--thinking-indicator-trace-more-color, #9a9a9a);padding:6px 0 0 22px;\n animation: svelte-uzfrw6-thinking-indicator-fade-in 300ms ease both;}\n\n @media (prefers-reduced-motion: reduce) {.status-label.svelte-uzfrw6,\n .chip-label.svelte-uzfrw6,\n .trace-row.svelte-uzfrw6,\n .trace-more.svelte-uzfrw6 {animation-duration:0.001s;}.expandable.svelte-uzfrw6,\n .trace-connector.svelte-uzfrw6,\n .arrow.svelte-uzfrw6 {transition-duration:0.001s;}.status-label.svelte-uzfrw6 {\n animation: none;-webkit-text-fill-color:var(--thinking-indicator-label-color, #858585);}.chip-label.svelte-uzfrw6 {\n animation: none;-webkit-text-fill-color:var(--thinking-indicator-chip-color, #52525b);}\n }"
|
|
30694
30694
|
};
|
|
30695
|
-
function
|
|
30695
|
+
function ThinkingIndicator(e, t) {
|
|
30696
30696
|
push(t, !0), append_styles$1(e, $$css$5);
|
|
30697
|
-
let n = prop(t, "label", 7), i = prop(t, "
|
|
30698
|
-
|
|
30699
|
-
|
|
30700
|
-
|
|
30701
|
-
|
|
30702
|
-
|
|
30703
|
-
|
|
30704
|
-
|
|
30705
|
-
|
|
30706
|
-
|
|
30707
|
-
|
|
30708
|
-
|
|
30709
|
-
|
|
30710
|
-
|
|
30711
|
-
|
|
30712
|
-
|
|
30713
|
-
|
|
30714
|
-
|
|
30715
|
-
|
|
30716
|
-
|
|
30717
|
-
|
|
30718
|
-
return o();
|
|
30719
|
-
},
|
|
30720
|
-
set classes(e) {
|
|
30721
|
-
o(e), flushSync();
|
|
30722
|
-
}
|
|
30723
|
-
}, c = root$4(), l = child(c), u = child(l), d = (e) => {
|
|
30724
|
-
var t = comment();
|
|
30725
|
-
snippet(first_child(t), i), append(e, t);
|
|
30726
|
-
}, f = (e) => {
|
|
30727
|
-
Loader(e, {});
|
|
30728
|
-
};
|
|
30729
|
-
if_block(u, (e) => {
|
|
30730
|
-
typeof i() == "function" ? e(d) : e(f, -1);
|
|
30731
|
-
}), reset(l);
|
|
30732
|
-
var p = sibling(l, 2), m = child(p, !0);
|
|
30733
|
-
return reset(p), reset(c), template_effect(() => {
|
|
30734
|
-
set_class(c, 1, `chat-tool-status ${o() ?? "" ?? ""}`, "svelte-1s6lfrc"), set_attribute(c, "data-pw", typeof a() == "string" ? a() : null), set_attribute(c, "testid", typeof a() == "string" ? a() : null), set_text(m, n());
|
|
30735
|
-
}), append(e, c), pop(s);
|
|
30736
|
-
}
|
|
30737
|
-
create_custom_element(ChatToolStatus, {
|
|
30738
|
-
label: {},
|
|
30739
|
-
icon: {},
|
|
30740
|
-
testId: {},
|
|
30741
|
-
classes: {}
|
|
30742
|
-
}, [], [], { mode: "open" });
|
|
30743
|
-
//#endregion
|
|
30744
|
-
//#region src/lib/Chat/Chat.svelte
|
|
30745
|
-
var root$3 = /* @__PURE__ */ from_html("<div class=\"tool-status svelte-2jkbfk\"><!></div>"), root_1$4 = /* @__PURE__ */ from_html("<section><!> <!> <div class=\"footer svelte-2jkbfk\"><!> <!> <!></div></section>"), $$css$4 = {
|
|
30746
|
-
hash: "svelte-2jkbfk",
|
|
30747
|
-
code: ".chat.svelte-2jkbfk {box-sizing:border-box;display:flex;flex-direction:column;height:var(--chat-height, 100%);width:var(--chat-width, 100%);background:var(--chat-background, #ffffff);border:var(--chat-border, none);border-radius:var(--chat-border-radius, 0);overflow:hidden;}.footer.svelte-2jkbfk {box-sizing:border-box;display:flex;flex-direction:column;gap:var(--chat-footer-gap, 10px);padding:var(--chat-footer-padding, 12px 1.5rem);background:var(--chat-footer-background, transparent);border-top:var(--chat-footer-border-top, none);}.tool-status.svelte-2jkbfk {display:flex;justify-content:var(--chat-tool-status-justify, center);}"
|
|
30748
|
-
};
|
|
30749
|
-
function Chat(e, t) {
|
|
30750
|
-
push(t, !0), append_styles$1(e, $$css$4);
|
|
30751
|
-
let n = prop(t, "messages", 7), i = prop(t, "value", 15, ""), a = prop(t, "title", 7, ""), o = prop(t, "subtitle", 7, ""), s = prop(t, "image", 7), c = prop(t, "imageAlt", 7, ""), l = prop(t, "placeholder", 7, ""), u = prop(t, "disabled", 7, !1), d = prop(t, "streaming", 7, !1), f = prop(t, "recording", 7, !1), p = prop(t, "autoscroll", 7, !0), m = prop(t, "toolStatus", 7, null), h = prop(t, "suggestions", 23, () => []), g = prop(t, "attachments", 31, () => proxy([])), _ = prop(t, "accept", 7, ""), v = prop(t, "multiple", 7, !1), y = prop(t, "allowCopy", 7, !1), b = prop(t, "closeLabel", 7, "Close"), x = prop(t, "showClose", 7), S = prop(t, "headerAvatar", 7), C = prop(t, "headerActions", 7), w = prop(t, "headerContent", 7), T = prop(t, "message", 7), E = prop(t, "messageBody", 7), D = prop(t, "messageAttachments", 7), O = prop(t, "empty", 7), k = prop(t, "composerLeading", 7), A = prop(t, "sendIcon", 7), j = prop(t, "stopIcon", 7), M = prop(t, "voiceIcon", 7), N = prop(t, "attachIcon", 7), P = prop(t, "onsend", 7), F = prop(t, "onsuggestion", 7), I = prop(t, "onclose", 7), L = prop(t, "onstop", 7), R = prop(t, "onvoice", 7), z = prop(t, "onattach", 7), B = prop(t, "onretry", 7), V = prop(t, "onfeedback", 7), H = prop(t, "testId", 7), U = prop(t, "classes", 7), W = /* @__PURE__ */ user_derived(() => a().length > 0 || o().length > 0 || typeof s() == "string" && s().length > 0 || typeof I() == "function" || typeof S() == "function" || typeof C() == "function"), G = /* @__PURE__ */ user_derived(() => h().length > 0 && n().length === 0);
|
|
30752
|
-
function K(e, t) {
|
|
30753
|
-
if (typeof F() == "function") {
|
|
30754
|
-
F()(e, t);
|
|
30697
|
+
let n = prop(t, "label", 7), i = prop(t, "detail", 7), a = prop(t, "expanded", 15, !1), o = prop(t, "variant", 7, "default"), s = prop(t, "showElapsed", 7, !1), c = prop(t, "onToggle", 7), l = prop(t, "avatar", 7), u = prop(t, "toggleIcon", 7), d = prop(t, "testId", 7), f = prop(t, "toggleTestId", 7), p = prop(t, "detailTestId", 7), m = prop(t, "labelTestId", 7), h = prop(t, "classes", 7), g = prop(t, "rows", 7), _ = prop(t, "kind", 7, "steps"), v = prop(t, "busy", 7), y = prop(t, "query", 7), b = prop(t, "moreLabel", 7), x = prop(t, "selectable", 7, !1), S = prop(t, "selected", 15, null), C = prop(t, "onrowselect", 7), w = prop(t, "onsettled", 7), T = prop(t, "collapseDelayMs", 7, 2600), E = /* @__PURE__ */ user_derived(() => Array.isArray(g())), D = /* @__PURE__ */ user_derived(() => g() ?? []), O = /* @__PURE__ */ user_derived(() => o() === "default" && (get(E) || typeof i() == "string" && i().length > 0)), k = /* @__PURE__ */ user_derived(() => v() ?? (o() === "chip" ? !1 : !get(O))), A = !1, j = () => {
|
|
30698
|
+
A = !0, a(!a()), c()?.();
|
|
30699
|
+
}, M = /* @__PURE__ */ state(0), N = /* @__PURE__ */ state(!1), P = null, F = () => {
|
|
30700
|
+
set(M, 0), set(N, !0), P && clearInterval(P), P = setInterval(() => {
|
|
30701
|
+
set(M, get(M) + 1);
|
|
30702
|
+
}, 1e3);
|
|
30703
|
+
}, I = () => {
|
|
30704
|
+
P &&= (clearInterval(P), null);
|
|
30705
|
+
}, L = (e, t) => {
|
|
30706
|
+
let n = t;
|
|
30707
|
+
return t && F(), {
|
|
30708
|
+
update(e) {
|
|
30709
|
+
e !== n && (n = e, e ? F() : I());
|
|
30710
|
+
},
|
|
30711
|
+
destroy() {
|
|
30712
|
+
I();
|
|
30713
|
+
}
|
|
30714
|
+
};
|
|
30715
|
+
}, R = !1, z = null, B = (e) => {
|
|
30716
|
+
if (e) {
|
|
30717
|
+
R = !1, z &&= (clearTimeout(z), null), A || a(!0);
|
|
30755
30718
|
return;
|
|
30756
30719
|
}
|
|
30757
|
-
|
|
30758
|
-
|
|
30720
|
+
R || (R = !0, w()?.(), T() !== null && !A && (z = setTimeout(() => {
|
|
30721
|
+
A || a(!1);
|
|
30722
|
+
}, T())));
|
|
30723
|
+
}, V = (e, t) => {
|
|
30724
|
+
let n = t;
|
|
30725
|
+
return t === !0 ? a(!0) : t === !1 && (R = !0), {
|
|
30726
|
+
update(e) {
|
|
30727
|
+
e !== n && (n = e, typeof e == "boolean" && B(e));
|
|
30728
|
+
},
|
|
30729
|
+
destroy() {
|
|
30730
|
+
z && clearTimeout(z);
|
|
30731
|
+
}
|
|
30732
|
+
};
|
|
30733
|
+
}, H = /* @__PURE__ */ state(0), U = (e, t) => {
|
|
30734
|
+
let n = t;
|
|
30735
|
+
return { update(e) {
|
|
30736
|
+
e > n && set(H, n, !0), n = e;
|
|
30737
|
+
} };
|
|
30738
|
+
}, W = (e) => `${Math.max(0, e - get(H)) * 120}ms`, G = (e) => {
|
|
30739
|
+
S(S() === e ? null : e), C()?.(S());
|
|
30740
|
+
}, K = /* @__PURE__ */ state(0);
|
|
30759
30741
|
var q = {
|
|
30760
|
-
get
|
|
30742
|
+
get label() {
|
|
30761
30743
|
return n();
|
|
30762
30744
|
},
|
|
30763
|
-
set
|
|
30745
|
+
set label(e) {
|
|
30764
30746
|
n(e), flushSync();
|
|
30765
30747
|
},
|
|
30766
|
-
get
|
|
30748
|
+
get detail() {
|
|
30767
30749
|
return i();
|
|
30768
30750
|
},
|
|
30769
|
-
set
|
|
30751
|
+
set detail(e) {
|
|
30770
30752
|
i(e), flushSync();
|
|
30771
30753
|
},
|
|
30772
|
-
get
|
|
30754
|
+
get expanded() {
|
|
30773
30755
|
return a();
|
|
30774
30756
|
},
|
|
30775
|
-
set
|
|
30757
|
+
set expanded(e = !1) {
|
|
30776
30758
|
a(e), flushSync();
|
|
30777
30759
|
},
|
|
30778
|
-
get
|
|
30760
|
+
get variant() {
|
|
30779
30761
|
return o();
|
|
30780
30762
|
},
|
|
30781
|
-
set
|
|
30763
|
+
set variant(e = "default") {
|
|
30782
30764
|
o(e), flushSync();
|
|
30783
30765
|
},
|
|
30784
|
-
get
|
|
30766
|
+
get showElapsed() {
|
|
30785
30767
|
return s();
|
|
30786
30768
|
},
|
|
30787
|
-
set
|
|
30769
|
+
set showElapsed(e = !1) {
|
|
30788
30770
|
s(e), flushSync();
|
|
30789
30771
|
},
|
|
30790
|
-
get
|
|
30772
|
+
get onToggle() {
|
|
30791
30773
|
return c();
|
|
30792
30774
|
},
|
|
30793
|
-
set
|
|
30775
|
+
set onToggle(e) {
|
|
30794
30776
|
c(e), flushSync();
|
|
30795
30777
|
},
|
|
30796
|
-
get
|
|
30778
|
+
get avatar() {
|
|
30797
30779
|
return l();
|
|
30798
30780
|
},
|
|
30799
|
-
set
|
|
30781
|
+
set avatar(e) {
|
|
30800
30782
|
l(e), flushSync();
|
|
30801
30783
|
},
|
|
30802
|
-
get
|
|
30784
|
+
get toggleIcon() {
|
|
30803
30785
|
return u();
|
|
30804
30786
|
},
|
|
30805
|
-
set
|
|
30787
|
+
set toggleIcon(e) {
|
|
30806
30788
|
u(e), flushSync();
|
|
30807
30789
|
},
|
|
30808
|
-
get
|
|
30790
|
+
get testId() {
|
|
30809
30791
|
return d();
|
|
30810
30792
|
},
|
|
30811
|
-
set
|
|
30793
|
+
set testId(e) {
|
|
30812
30794
|
d(e), flushSync();
|
|
30813
30795
|
},
|
|
30814
|
-
get
|
|
30796
|
+
get toggleTestId() {
|
|
30815
30797
|
return f();
|
|
30816
30798
|
},
|
|
30817
|
-
set
|
|
30799
|
+
set toggleTestId(e) {
|
|
30818
30800
|
f(e), flushSync();
|
|
30819
30801
|
},
|
|
30820
|
-
get
|
|
30802
|
+
get detailTestId() {
|
|
30821
30803
|
return p();
|
|
30822
30804
|
},
|
|
30823
|
-
set
|
|
30805
|
+
set detailTestId(e) {
|
|
30824
30806
|
p(e), flushSync();
|
|
30825
30807
|
},
|
|
30826
|
-
get
|
|
30808
|
+
get labelTestId() {
|
|
30827
30809
|
return m();
|
|
30828
30810
|
},
|
|
30829
|
-
set
|
|
30811
|
+
set labelTestId(e) {
|
|
30830
30812
|
m(e), flushSync();
|
|
30831
30813
|
},
|
|
30832
|
-
get
|
|
30814
|
+
get classes() {
|
|
30833
30815
|
return h();
|
|
30834
30816
|
},
|
|
30835
|
-
set
|
|
30817
|
+
set classes(e) {
|
|
30836
30818
|
h(e), flushSync();
|
|
30837
30819
|
},
|
|
30838
|
-
get
|
|
30820
|
+
get rows() {
|
|
30839
30821
|
return g();
|
|
30840
30822
|
},
|
|
30841
|
-
set
|
|
30823
|
+
set rows(e) {
|
|
30842
30824
|
g(e), flushSync();
|
|
30843
30825
|
},
|
|
30844
|
-
get
|
|
30826
|
+
get kind() {
|
|
30845
30827
|
return _();
|
|
30846
30828
|
},
|
|
30847
|
-
set
|
|
30829
|
+
set kind(e = "steps") {
|
|
30848
30830
|
_(e), flushSync();
|
|
30849
30831
|
},
|
|
30850
|
-
get
|
|
30832
|
+
get busy() {
|
|
30851
30833
|
return v();
|
|
30852
30834
|
},
|
|
30853
|
-
set
|
|
30835
|
+
set busy(e) {
|
|
30854
30836
|
v(e), flushSync();
|
|
30855
30837
|
},
|
|
30856
|
-
get
|
|
30838
|
+
get query() {
|
|
30857
30839
|
return y();
|
|
30858
30840
|
},
|
|
30859
|
-
set
|
|
30841
|
+
set query(e) {
|
|
30860
30842
|
y(e), flushSync();
|
|
30861
30843
|
},
|
|
30862
|
-
get
|
|
30844
|
+
get moreLabel() {
|
|
30863
30845
|
return b();
|
|
30864
30846
|
},
|
|
30865
|
-
set
|
|
30847
|
+
set moreLabel(e) {
|
|
30866
30848
|
b(e), flushSync();
|
|
30867
30849
|
},
|
|
30868
|
-
get
|
|
30850
|
+
get selectable() {
|
|
30869
30851
|
return x();
|
|
30870
30852
|
},
|
|
30871
|
-
set
|
|
30853
|
+
set selectable(e = !1) {
|
|
30872
30854
|
x(e), flushSync();
|
|
30873
30855
|
},
|
|
30874
|
-
get
|
|
30856
|
+
get selected() {
|
|
30875
30857
|
return S();
|
|
30876
30858
|
},
|
|
30877
|
-
set
|
|
30859
|
+
set selected(e = null) {
|
|
30878
30860
|
S(e), flushSync();
|
|
30879
30861
|
},
|
|
30880
|
-
get
|
|
30862
|
+
get onrowselect() {
|
|
30881
30863
|
return C();
|
|
30882
30864
|
},
|
|
30883
|
-
set
|
|
30865
|
+
set onrowselect(e) {
|
|
30884
30866
|
C(e), flushSync();
|
|
30885
30867
|
},
|
|
30886
|
-
get
|
|
30868
|
+
get onsettled() {
|
|
30887
30869
|
return w();
|
|
30888
30870
|
},
|
|
30889
|
-
set
|
|
30871
|
+
set onsettled(e) {
|
|
30890
30872
|
w(e), flushSync();
|
|
30891
30873
|
},
|
|
30892
|
-
get
|
|
30874
|
+
get collapseDelayMs() {
|
|
30893
30875
|
return T();
|
|
30894
30876
|
},
|
|
30895
|
-
set
|
|
30877
|
+
set collapseDelayMs(e = 2600) {
|
|
30896
30878
|
T(e), flushSync();
|
|
30897
|
-
},
|
|
30898
|
-
get messageBody() {
|
|
30899
|
-
return E();
|
|
30900
|
-
},
|
|
30901
|
-
set messageBody(e) {
|
|
30902
|
-
E(e), flushSync();
|
|
30903
|
-
},
|
|
30904
|
-
get messageAttachments() {
|
|
30905
|
-
return D();
|
|
30906
|
-
},
|
|
30907
|
-
set messageAttachments(e) {
|
|
30908
|
-
D(e), flushSync();
|
|
30909
|
-
},
|
|
30910
|
-
get empty() {
|
|
30911
|
-
return O();
|
|
30912
|
-
},
|
|
30913
|
-
set empty(e) {
|
|
30914
|
-
O(e), flushSync();
|
|
30915
|
-
},
|
|
30916
|
-
get composerLeading() {
|
|
30917
|
-
return k();
|
|
30918
|
-
},
|
|
30919
|
-
set composerLeading(e) {
|
|
30920
|
-
k(e), flushSync();
|
|
30921
|
-
},
|
|
30922
|
-
get sendIcon() {
|
|
30923
|
-
return A();
|
|
30924
|
-
},
|
|
30925
|
-
set sendIcon(e) {
|
|
30926
|
-
A(e), flushSync();
|
|
30927
|
-
},
|
|
30928
|
-
get stopIcon() {
|
|
30929
|
-
return j();
|
|
30930
|
-
},
|
|
30931
|
-
set stopIcon(e) {
|
|
30932
|
-
j(e), flushSync();
|
|
30933
|
-
},
|
|
30934
|
-
get voiceIcon() {
|
|
30935
|
-
return M();
|
|
30936
|
-
},
|
|
30937
|
-
set voiceIcon(e) {
|
|
30938
|
-
M(e), flushSync();
|
|
30939
|
-
},
|
|
30940
|
-
get attachIcon() {
|
|
30941
|
-
return N();
|
|
30942
|
-
},
|
|
30943
|
-
set attachIcon(e) {
|
|
30944
|
-
N(e), flushSync();
|
|
30945
|
-
},
|
|
30946
|
-
get onsend() {
|
|
30947
|
-
return P();
|
|
30948
|
-
},
|
|
30949
|
-
set onsend(e) {
|
|
30950
|
-
P(e), flushSync();
|
|
30951
|
-
},
|
|
30952
|
-
get onsuggestion() {
|
|
30953
|
-
return F();
|
|
30954
|
-
},
|
|
30955
|
-
set onsuggestion(e) {
|
|
30956
|
-
F(e), flushSync();
|
|
30957
|
-
},
|
|
30958
|
-
get onclose() {
|
|
30959
|
-
return I();
|
|
30960
|
-
},
|
|
30961
|
-
set onclose(e) {
|
|
30962
|
-
I(e), flushSync();
|
|
30963
|
-
},
|
|
30964
|
-
get onstop() {
|
|
30965
|
-
return L();
|
|
30966
|
-
},
|
|
30967
|
-
set onstop(e) {
|
|
30968
|
-
L(e), flushSync();
|
|
30969
|
-
},
|
|
30970
|
-
get onvoice() {
|
|
30971
|
-
return R();
|
|
30972
|
-
},
|
|
30973
|
-
set onvoice(e) {
|
|
30974
|
-
R(e), flushSync();
|
|
30975
|
-
},
|
|
30976
|
-
get onattach() {
|
|
30977
|
-
return z();
|
|
30978
|
-
},
|
|
30979
|
-
set onattach(e) {
|
|
30980
|
-
z(e), flushSync();
|
|
30981
|
-
},
|
|
30982
|
-
get onretry() {
|
|
30983
|
-
return B();
|
|
30984
|
-
},
|
|
30985
|
-
set onretry(e) {
|
|
30986
|
-
B(e), flushSync();
|
|
30987
|
-
},
|
|
30988
|
-
get onfeedback() {
|
|
30989
|
-
return V();
|
|
30990
|
-
},
|
|
30991
|
-
set onfeedback(e) {
|
|
30992
|
-
V(e), flushSync();
|
|
30993
|
-
},
|
|
30994
|
-
get testId() {
|
|
30995
|
-
return H();
|
|
30996
|
-
},
|
|
30997
|
-
set testId(e) {
|
|
30998
|
-
H(e), flushSync();
|
|
30999
|
-
},
|
|
31000
|
-
get classes() {
|
|
31001
|
-
return U();
|
|
31002
|
-
},
|
|
31003
|
-
set classes(e) {
|
|
31004
|
-
U(e), flushSync();
|
|
31005
30879
|
}
|
|
31006
|
-
}, J =
|
|
31007
|
-
|
|
31008
|
-
|
|
31009
|
-
|
|
31010
|
-
|
|
31011
|
-
|
|
31012
|
-
|
|
31013
|
-
|
|
31014
|
-
|
|
31015
|
-
|
|
31016
|
-
|
|
31017
|
-
|
|
31018
|
-
|
|
31019
|
-
|
|
31020
|
-
|
|
31021
|
-
|
|
31022
|
-
|
|
31023
|
-
|
|
31024
|
-
|
|
31025
|
-
|
|
31026
|
-
|
|
31027
|
-
|
|
31028
|
-
|
|
31029
|
-
|
|
31030
|
-
|
|
31031
|
-
|
|
31032
|
-
|
|
31033
|
-
|
|
31034
|
-
|
|
31035
|
-
|
|
31036
|
-
|
|
31037
|
-
|
|
31038
|
-
|
|
31039
|
-
|
|
31040
|
-
|
|
31041
|
-
|
|
31042
|
-
|
|
31043
|
-
|
|
31044
|
-
|
|
31045
|
-
|
|
31046
|
-
|
|
31047
|
-
|
|
31048
|
-
|
|
31049
|
-
|
|
31050
|
-
|
|
31051
|
-
|
|
31052
|
-
|
|
31053
|
-
|
|
31054
|
-
|
|
31055
|
-
|
|
31056
|
-
|
|
31057
|
-
|
|
31058
|
-
|
|
31059
|
-
|
|
31060
|
-
|
|
31061
|
-
|
|
31062
|
-
|
|
31063
|
-
|
|
31064
|
-
return y();
|
|
31065
|
-
},
|
|
31066
|
-
get onretry() {
|
|
31067
|
-
return B();
|
|
31068
|
-
},
|
|
31069
|
-
get onfeedback() {
|
|
31070
|
-
return V();
|
|
30880
|
+
}, J = comment(), Y = first_child(J), X = (e) => {
|
|
30881
|
+
var t = root_22();
|
|
30882
|
+
let o;
|
|
30883
|
+
var c = child(t), g = child(c);
|
|
30884
|
+
{
|
|
30885
|
+
let e = /* @__PURE__ */ user_derived(() => f() ?? (d() && `${d()}-toggle`));
|
|
30886
|
+
Button(g, {
|
|
30887
|
+
onclick: j,
|
|
30888
|
+
get ariaExpanded() {
|
|
30889
|
+
return a();
|
|
30890
|
+
},
|
|
30891
|
+
get testId() {
|
|
30892
|
+
return get(e);
|
|
30893
|
+
},
|
|
30894
|
+
children: (e, t) => {
|
|
30895
|
+
var i = root_3$3(), o = first_child(i), c = child(o), f = (e) => {
|
|
30896
|
+
var t = root$4(), n = child(t), i = (e) => {
|
|
30897
|
+
var t = comment();
|
|
30898
|
+
snippet(first_child(t), l), append(e, t);
|
|
30899
|
+
}, a = (e) => {
|
|
30900
|
+
Loader(e, {});
|
|
30901
|
+
};
|
|
30902
|
+
if_block(n, (e) => {
|
|
30903
|
+
l() ? e(i) : e(a, -1);
|
|
30904
|
+
}), reset(t), append(e, t);
|
|
30905
|
+
};
|
|
30906
|
+
if_block(c, (e) => {
|
|
30907
|
+
(l() || get(k)) && e(f);
|
|
30908
|
+
});
|
|
30909
|
+
var p = sibling(c, 2), h = child(p);
|
|
30910
|
+
let g;
|
|
30911
|
+
var _ = child(h, !0);
|
|
30912
|
+
reset(h);
|
|
30913
|
+
var v = sibling(h, 2);
|
|
30914
|
+
let y;
|
|
30915
|
+
var b = child(v), x = (e) => {
|
|
30916
|
+
var t = comment();
|
|
30917
|
+
snippet(first_child(t), u), append(e, t);
|
|
30918
|
+
}, S = (e) => {
|
|
30919
|
+
append(e, root_1$4());
|
|
30920
|
+
};
|
|
30921
|
+
if_block(b, (e) => {
|
|
30922
|
+
u() ? e(x) : e(S, -1);
|
|
30923
|
+
}), reset(v), reset(p), reset(o);
|
|
30924
|
+
var C = sibling(o, 2), w = (e) => {
|
|
30925
|
+
var t = root_2$3(), n = child(t);
|
|
30926
|
+
reset(t), template_effect(() => {
|
|
30927
|
+
set_attribute(t, "data-pw", typeof d() == "string" ? `${d()}-elapsed` : null), set_attribute(t, "testid", typeof d() == "string" ? `${d()}-elapsed` : null), set_text(n, `${get(M) ?? ""}s`);
|
|
30928
|
+
}), append(e, t);
|
|
30929
|
+
};
|
|
30930
|
+
if_block(C, (e) => {
|
|
30931
|
+
s() && get(N) && e(w);
|
|
30932
|
+
}), template_effect(() => {
|
|
30933
|
+
g = set_class(h, 1, "status-label svelte-uzfrw6", null, g, { "static-label": !get(k) }), set_attribute(h, "data-pw", m() ?? null), set_text(_, n()), y = set_class(v, 1, "arrow svelte-uzfrw6", null, y, { expanded: a() });
|
|
30934
|
+
}), append(e, i);
|
|
30935
|
+
},
|
|
30936
|
+
$$slots: { default: !0 }
|
|
30937
|
+
});
|
|
31071
30938
|
}
|
|
31072
|
-
|
|
31073
|
-
|
|
31074
|
-
|
|
31075
|
-
get items() {
|
|
31076
|
-
return h();
|
|
31077
|
-
},
|
|
31078
|
-
get disabled() {
|
|
31079
|
-
return u();
|
|
30939
|
+
reset(c), Accordion(sibling(c, 2), {
|
|
30940
|
+
get expand() {
|
|
30941
|
+
return a();
|
|
31080
30942
|
},
|
|
31081
|
-
|
|
31082
|
-
|
|
31083
|
-
|
|
31084
|
-
|
|
31085
|
-
|
|
31086
|
-
|
|
31087
|
-
|
|
31088
|
-
|
|
31089
|
-
|
|
31090
|
-
|
|
31091
|
-
|
|
31092
|
-
|
|
31093
|
-
|
|
31094
|
-
|
|
31095
|
-
|
|
31096
|
-
|
|
31097
|
-
|
|
31098
|
-
|
|
31099
|
-
|
|
31100
|
-
|
|
31101
|
-
|
|
31102
|
-
|
|
31103
|
-
|
|
31104
|
-
|
|
31105
|
-
|
|
31106
|
-
|
|
31107
|
-
|
|
31108
|
-
|
|
31109
|
-
|
|
31110
|
-
|
|
31111
|
-
|
|
31112
|
-
|
|
31113
|
-
|
|
31114
|
-
|
|
31115
|
-
|
|
31116
|
-
|
|
31117
|
-
|
|
31118
|
-
|
|
31119
|
-
|
|
31120
|
-
|
|
31121
|
-
|
|
31122
|
-
|
|
31123
|
-
|
|
31124
|
-
|
|
31125
|
-
|
|
31126
|
-
|
|
31127
|
-
|
|
31128
|
-
|
|
31129
|
-
|
|
31130
|
-
|
|
31131
|
-
|
|
31132
|
-
|
|
31133
|
-
|
|
31134
|
-
|
|
31135
|
-
|
|
31136
|
-
|
|
31137
|
-
|
|
31138
|
-
|
|
31139
|
-
|
|
31140
|
-
|
|
31141
|
-
|
|
31142
|
-
|
|
31143
|
-
|
|
31144
|
-
|
|
31145
|
-
|
|
31146
|
-
|
|
31147
|
-
|
|
31148
|
-
|
|
31149
|
-
|
|
31150
|
-
|
|
31151
|
-
|
|
31152
|
-
|
|
31153
|
-
|
|
31154
|
-
|
|
31155
|
-
|
|
31156
|
-
|
|
31157
|
-
|
|
31158
|
-
|
|
31159
|
-
|
|
31160
|
-
|
|
31161
|
-
|
|
31162
|
-
|
|
31163
|
-
|
|
31164
|
-
|
|
31165
|
-
|
|
31166
|
-
|
|
31167
|
-
|
|
31168
|
-
|
|
31169
|
-
|
|
31170
|
-
|
|
31171
|
-
|
|
31172
|
-
|
|
31173
|
-
|
|
31174
|
-
|
|
31175
|
-
|
|
31176
|
-
|
|
31177
|
-
|
|
31178
|
-
|
|
31179
|
-
|
|
31180
|
-
|
|
31181
|
-
|
|
31182
|
-
|
|
31183
|
-
|
|
31184
|
-
|
|
31185
|
-
|
|
31186
|
-
|
|
31187
|
-
|
|
31188
|
-
|
|
31189
|
-
|
|
31190
|
-
|
|
31191
|
-
|
|
31192
|
-
|
|
31193
|
-
|
|
31194
|
-
|
|
31195
|
-
|
|
31196
|
-
|
|
31197
|
-
|
|
31198
|
-
|
|
31199
|
-
}
|
|
31200
|
-
|
|
31201
|
-
|
|
31202
|
-
|
|
31203
|
-
|
|
31204
|
-
|
|
31205
|
-
|
|
31206
|
-
|
|
31207
|
-
|
|
31208
|
-
|
|
31209
|
-
|
|
31210
|
-
|
|
31211
|
-
|
|
31212
|
-
|
|
31213
|
-
|
|
31214
|
-
|
|
31215
|
-
|
|
31216
|
-
|
|
31217
|
-
|
|
31218
|
-
|
|
31219
|
-
|
|
31220
|
-
|
|
31221
|
-
|
|
31222
|
-
|
|
31223
|
-
|
|
31224
|
-
|
|
31225
|
-
|
|
31226
|
-
|
|
31227
|
-
|
|
31228
|
-
|
|
31229
|
-
|
|
31230
|
-
|
|
31231
|
-
|
|
31232
|
-
|
|
31233
|
-
|
|
31234
|
-
|
|
31235
|
-
|
|
31236
|
-
|
|
31237
|
-
|
|
31238
|
-
|
|
31239
|
-
|
|
31240
|
-
|
|
31241
|
-
|
|
31242
|
-
},
|
|
31243
|
-
|
|
31244
|
-
|
|
31245
|
-
|
|
31246
|
-
|
|
31247
|
-
|
|
31248
|
-
|
|
31249
|
-
|
|
31250
|
-
|
|
31251
|
-
|
|
31252
|
-
|
|
31253
|
-
|
|
31254
|
-
|
|
31255
|
-
|
|
31256
|
-
|
|
31257
|
-
|
|
31258
|
-
|
|
31259
|
-
|
|
31260
|
-
|
|
31261
|
-
|
|
31262
|
-
|
|
31263
|
-
|
|
31264
|
-
|
|
31265
|
-
|
|
31266
|
-
|
|
31267
|
-
|
|
31268
|
-
|
|
31269
|
-
|
|
31270
|
-
|
|
31271
|
-
|
|
31272
|
-
|
|
31273
|
-
|
|
31274
|
-
|
|
31275
|
-
|
|
31276
|
-
|
|
31277
|
-
|
|
31278
|
-
|
|
31279
|
-
|
|
31280
|
-
|
|
31281
|
-
|
|
31282
|
-
|
|
31283
|
-
|
|
31284
|
-
|
|
31285
|
-
|
|
31286
|
-
|
|
31287
|
-
|
|
31288
|
-
|
|
31289
|
-
|
|
31290
|
-
|
|
31291
|
-
|
|
31292
|
-
|
|
31293
|
-
|
|
31294
|
-
|
|
31295
|
-
|
|
31296
|
-
|
|
31297
|
-
|
|
31298
|
-
|
|
31299
|
-
|
|
31300
|
-
|
|
31301
|
-
|
|
31302
|
-
|
|
31303
|
-
|
|
31304
|
-
var rest_excludes$9 = new Set([
|
|
31305
|
-
"$$slots",
|
|
31306
|
-
"$$events",
|
|
31307
|
-
"$$legacy",
|
|
31308
|
-
"$$host"
|
|
31309
|
-
]);
|
|
31310
|
-
function ChatHeader_wc(e, t) {
|
|
31311
|
-
let n = /* @__PURE__ */ rest_props(t, rest_excludes$9);
|
|
31312
|
-
ChatHeader(e, spread_props(() => n));
|
|
31313
|
-
}
|
|
31314
|
-
customElements.define("sui-chat-header", create_custom_element(ChatHeader_wc, {
|
|
31315
|
-
title: {
|
|
31316
|
-
reflect: !0,
|
|
31317
|
-
type: "String"
|
|
31318
|
-
},
|
|
31319
|
-
subtitle: {
|
|
31320
|
-
reflect: !0,
|
|
31321
|
-
type: "String"
|
|
31322
|
-
},
|
|
31323
|
-
image: {
|
|
31324
|
-
reflect: !0,
|
|
31325
|
-
type: "String"
|
|
31326
|
-
},
|
|
31327
|
-
imageAlt: {
|
|
31328
|
-
attribute: "image-alt",
|
|
31329
|
-
type: "String"
|
|
31330
|
-
},
|
|
31331
|
-
avatar: { type: "Object" },
|
|
31332
|
-
actions: { type: "Object" },
|
|
31333
|
-
closeIcon: { type: "Object" },
|
|
31334
|
-
closeLabel: {
|
|
31335
|
-
attribute: "close-label",
|
|
31336
|
-
type: "String"
|
|
31337
|
-
},
|
|
31338
|
-
showClose: {
|
|
31339
|
-
attribute: "show-close",
|
|
31340
|
-
type: "Boolean"
|
|
31341
|
-
},
|
|
31342
|
-
testId: {
|
|
31343
|
-
attribute: "test-id",
|
|
31344
|
-
type: "String"
|
|
31345
|
-
},
|
|
31346
|
-
classes: { type: "String" },
|
|
31347
|
-
onclose: { type: "Object" }
|
|
31348
|
-
}, [], [], { mode: "open" }));
|
|
31349
|
-
//#endregion
|
|
31350
|
-
//#region src/wc/components/ChatMessage.wc.svelte
|
|
31351
|
-
var rest_excludes$8 = new Set([
|
|
31352
|
-
"$$slots",
|
|
31353
|
-
"$$events",
|
|
31354
|
-
"$$legacy",
|
|
31355
|
-
"$$host"
|
|
31356
|
-
]);
|
|
31357
|
-
function ChatMessage_wc(e, t) {
|
|
31358
|
-
let n = /* @__PURE__ */ rest_props(t, rest_excludes$8);
|
|
31359
|
-
ChatMessage(e, spread_props(() => n));
|
|
31360
|
-
}
|
|
31361
|
-
customElements.define("sui-chat-message", create_custom_element(ChatMessage_wc, {
|
|
31362
|
-
role: {
|
|
31363
|
-
reflect: !0,
|
|
31364
|
-
type: "String"
|
|
31365
|
-
},
|
|
31366
|
-
content: { type: "String" },
|
|
31367
|
-
html: { type: "String" },
|
|
31368
|
-
body: { type: "Object" },
|
|
31369
|
-
streaming: {
|
|
31370
|
-
reflect: !0,
|
|
31371
|
-
type: "Boolean"
|
|
31372
|
-
},
|
|
31373
|
-
status: {
|
|
31374
|
-
reflect: !0,
|
|
31375
|
-
type: "String"
|
|
31376
|
-
},
|
|
31377
|
-
avatar: { type: "Object" },
|
|
31378
|
-
header: { type: "Object" },
|
|
31379
|
-
attachments: { type: "Object" },
|
|
31380
|
-
allowCopy: {
|
|
31381
|
-
attribute: "allow-copy",
|
|
31382
|
-
type: "Boolean"
|
|
31383
|
-
},
|
|
31384
|
-
actions: { type: "Object" },
|
|
31385
|
-
copyLabel: {
|
|
31386
|
-
attribute: "copy-label",
|
|
31387
|
-
type: "String"
|
|
31388
|
-
},
|
|
31389
|
-
retryLabel: {
|
|
31390
|
-
attribute: "retry-label",
|
|
31391
|
-
type: "String"
|
|
31392
|
-
},
|
|
31393
|
-
feedbackUpLabel: {
|
|
31394
|
-
attribute: "feedback-up-label",
|
|
31395
|
-
type: "String"
|
|
31396
|
-
},
|
|
31397
|
-
feedbackDownLabel: {
|
|
31398
|
-
attribute: "feedback-down-label",
|
|
31399
|
-
type: "String"
|
|
31400
|
-
},
|
|
31401
|
-
testId: {
|
|
31402
|
-
attribute: "test-id",
|
|
31403
|
-
type: "String"
|
|
31404
|
-
},
|
|
31405
|
-
classes: { type: "String" },
|
|
31406
|
-
onretry: { type: "Object" },
|
|
31407
|
-
onfeedback: { type: "Object" },
|
|
31408
|
-
oncopy: { type: "Object" }
|
|
31409
|
-
}, [], [], { mode: "open" }));
|
|
31410
|
-
//#endregion
|
|
31411
|
-
//#region src/wc/components/ChatMessageList.wc.svelte
|
|
31412
|
-
var rest_excludes$7 = new Set([
|
|
31413
|
-
"$$slots",
|
|
31414
|
-
"$$events",
|
|
31415
|
-
"$$legacy",
|
|
31416
|
-
"$$host"
|
|
31417
|
-
]);
|
|
31418
|
-
function ChatMessageList_wc(e, t) {
|
|
31419
|
-
let n = /* @__PURE__ */ rest_props(t, rest_excludes$7);
|
|
31420
|
-
ChatMessageList(e, spread_props(() => n));
|
|
31421
|
-
}
|
|
31422
|
-
customElements.define("sui-chat-message-list", create_custom_element(ChatMessageList_wc, {
|
|
31423
|
-
messages: { type: "Object" },
|
|
31424
|
-
autoscroll: {
|
|
31425
|
-
reflect: !0,
|
|
31426
|
-
type: "Boolean"
|
|
31427
|
-
},
|
|
31428
|
-
message: { type: "Object" },
|
|
31429
|
-
messageBody: { type: "Object" },
|
|
31430
|
-
scrollPolicy: {
|
|
31431
|
-
attribute: "scroll-policy",
|
|
31432
|
-
type: "String"
|
|
31433
|
-
},
|
|
31434
|
-
pinHold: {
|
|
31435
|
-
attribute: "pin-hold",
|
|
31436
|
-
type: "Boolean"
|
|
31437
|
-
},
|
|
31438
|
-
jump: { type: "Boolean" },
|
|
31439
|
-
onscrollstate: { type: "Object" },
|
|
31440
|
-
messageAttachments: { type: "Object" },
|
|
31441
|
-
empty: { type: "Object" },
|
|
31442
|
-
jumpLabel: {
|
|
31443
|
-
attribute: "jump-label",
|
|
31444
|
-
type: "String"
|
|
31445
|
-
},
|
|
31446
|
-
jumpIcon: { type: "Object" },
|
|
31447
|
-
allowCopy: {
|
|
31448
|
-
attribute: "allow-copy",
|
|
31449
|
-
type: "Boolean"
|
|
31450
|
-
},
|
|
31451
|
-
testId: {
|
|
31452
|
-
attribute: "test-id",
|
|
31453
|
-
type: "String"
|
|
31454
|
-
},
|
|
31455
|
-
classes: { type: "String" },
|
|
31456
|
-
onretry: { type: "Object" },
|
|
31457
|
-
onfeedback: { type: "Object" }
|
|
31458
|
-
}, [], [], { mode: "open" }));
|
|
31459
|
-
//#endregion
|
|
31460
|
-
//#region src/wc/components/ChatComposer.wc.svelte
|
|
31461
|
-
var rest_excludes$6 = new Set([
|
|
31462
|
-
"$$slots",
|
|
31463
|
-
"$$events",
|
|
31464
|
-
"$$legacy",
|
|
31465
|
-
"$$host"
|
|
31466
|
-
]);
|
|
31467
|
-
function ChatComposer_wc(e, t) {
|
|
31468
|
-
let n = /* @__PURE__ */ rest_props(t, rest_excludes$6);
|
|
31469
|
-
ChatComposer(e, spread_props(() => n));
|
|
31470
|
-
}
|
|
31471
|
-
customElements.define("sui-chat-composer", create_custom_element(ChatComposer_wc, {
|
|
31472
|
-
value: { type: "String" },
|
|
31473
|
-
placeholder: {
|
|
31474
|
-
reflect: !0,
|
|
31475
|
-
type: "String"
|
|
31476
|
-
},
|
|
31477
|
-
disabled: {
|
|
31478
|
-
reflect: !0,
|
|
31479
|
-
type: "Boolean"
|
|
31480
|
-
},
|
|
31481
|
-
submitOnEnter: {
|
|
31482
|
-
attribute: "submit-on-enter",
|
|
31483
|
-
type: "Boolean"
|
|
31484
|
-
},
|
|
31485
|
-
maxLength: {
|
|
31486
|
-
attribute: "max-length",
|
|
31487
|
-
type: "Number"
|
|
31488
|
-
},
|
|
31489
|
-
streaming: {
|
|
31490
|
-
reflect: !0,
|
|
31491
|
-
type: "Boolean"
|
|
31492
|
-
},
|
|
31493
|
-
recording: {
|
|
31494
|
-
reflect: !0,
|
|
31495
|
-
type: "Boolean"
|
|
31496
|
-
},
|
|
31497
|
-
attachments: { type: "Object" },
|
|
31498
|
-
attachmentsPreview: { type: "Object" },
|
|
31499
|
-
richImages: { type: "Object" },
|
|
31500
|
-
richFiles: { type: "Object" },
|
|
31501
|
-
richVideos: { type: "Object" },
|
|
31502
|
-
richImageTooltip: { type: "Object" },
|
|
31503
|
-
richVideoTooltip: { type: "Object" },
|
|
31504
|
-
richRemoveIcon: { type: "Object" },
|
|
31505
|
-
richFileIcon: { type: "Object" },
|
|
31506
|
-
onremoverichimage: { type: "Object" },
|
|
31507
|
-
onremoverichfile: { type: "Object" },
|
|
31508
|
-
onremoverichvideo: { type: "Object" },
|
|
31509
|
-
onopenrichimage: { type: "Object" },
|
|
31510
|
-
onopenrichvideo: { type: "Object" },
|
|
31511
|
-
onopenrichfile: { type: "Object" },
|
|
31512
|
-
sendable: { type: "Boolean" },
|
|
31513
|
-
accept: {
|
|
31514
|
-
reflect: !0,
|
|
31515
|
-
type: "String"
|
|
31516
|
-
},
|
|
31517
|
-
multiple: {
|
|
31518
|
-
reflect: !0,
|
|
31519
|
-
type: "Boolean"
|
|
31520
|
-
},
|
|
31521
|
-
sendLabel: {
|
|
31522
|
-
attribute: "send-label",
|
|
31523
|
-
type: "String"
|
|
31524
|
-
},
|
|
31525
|
-
stopLabel: {
|
|
31526
|
-
attribute: "stop-label",
|
|
31527
|
-
type: "String"
|
|
31528
|
-
},
|
|
31529
|
-
voiceLabel: {
|
|
31530
|
-
attribute: "voice-label",
|
|
31531
|
-
type: "String"
|
|
31532
|
-
},
|
|
31533
|
-
attachLabel: {
|
|
31534
|
-
attribute: "attach-label",
|
|
31535
|
-
type: "String"
|
|
31536
|
-
},
|
|
31537
|
-
sendIcon: { type: "Object" },
|
|
31538
|
-
stopIcon: { type: "Object" },
|
|
31539
|
-
voiceIcon: { type: "Object" },
|
|
31540
|
-
attachIcon: { type: "Object" },
|
|
31541
|
-
leading: { type: "Object" },
|
|
31542
|
-
testId: {
|
|
31543
|
-
attribute: "test-id",
|
|
31544
|
-
type: "String"
|
|
31545
|
-
},
|
|
31546
|
-
inputTestId: {
|
|
31547
|
-
attribute: "input-test-id",
|
|
31548
|
-
type: "String"
|
|
31549
|
-
},
|
|
31550
|
-
inputAriaLabel: {
|
|
31551
|
-
attribute: "input-aria-label",
|
|
31552
|
-
type: "String"
|
|
31553
|
-
},
|
|
31554
|
-
sendTestId: {
|
|
31555
|
-
attribute: "send-test-id",
|
|
31556
|
-
type: "String"
|
|
31557
|
-
},
|
|
31558
|
-
sendSlotTestId: {
|
|
31559
|
-
attribute: "send-slot-test-id",
|
|
31560
|
-
type: "String"
|
|
31561
|
-
},
|
|
31562
|
-
stopTestId: {
|
|
31563
|
-
attribute: "stop-test-id",
|
|
31564
|
-
type: "String"
|
|
31565
|
-
},
|
|
31566
|
-
voiceTestId: {
|
|
31567
|
-
attribute: "voice-test-id",
|
|
31568
|
-
type: "String"
|
|
31569
|
-
},
|
|
31570
|
-
attachTestId: {
|
|
31571
|
-
attribute: "attach-test-id",
|
|
31572
|
-
type: "String"
|
|
31573
|
-
},
|
|
31574
|
-
actionTestId: {
|
|
31575
|
-
attribute: "action-test-id",
|
|
31576
|
-
type: "String"
|
|
31577
|
-
},
|
|
31578
|
-
classes: { type: "String" },
|
|
31579
|
-
onsubmit: { type: "Object" },
|
|
31580
|
-
oninput: { type: "Object" },
|
|
31581
|
-
onkeydown: { type: "Object" },
|
|
31582
|
-
onstop: { type: "Object" },
|
|
31583
|
-
onvoice: { type: "Object" },
|
|
31584
|
-
onattach: { type: "Object" },
|
|
31585
|
-
onpaste: { type: "Object" },
|
|
31586
|
-
onattachclick: { type: "Object" },
|
|
31587
|
-
onaction: { type: "Object" },
|
|
31588
|
-
actionIcon: { type: "Object" },
|
|
31589
|
-
actionLabel: {
|
|
31590
|
-
attribute: "action-label",
|
|
31591
|
-
type: "String"
|
|
31592
|
-
}
|
|
31593
|
-
}, [], [], { mode: "open" }));
|
|
31594
|
-
//#endregion
|
|
31595
|
-
//#region src/wc/components/ChatSuggestions.wc.svelte
|
|
31596
|
-
var rest_excludes$5 = new Set([
|
|
31597
|
-
"$$slots",
|
|
31598
|
-
"$$events",
|
|
31599
|
-
"$$legacy",
|
|
31600
|
-
"$$host"
|
|
31601
|
-
]);
|
|
31602
|
-
function ChatSuggestions_wc(e, t) {
|
|
31603
|
-
let n = /* @__PURE__ */ rest_props(t, rest_excludes$5);
|
|
31604
|
-
ChatSuggestions(e, spread_props(() => n));
|
|
31605
|
-
}
|
|
31606
|
-
customElements.define("sui-chat-suggestions", create_custom_element(ChatSuggestions_wc, {
|
|
31607
|
-
items: { type: "Object" },
|
|
31608
|
-
disabled: {
|
|
31609
|
-
reflect: !0,
|
|
31610
|
-
type: "Boolean"
|
|
31611
|
-
},
|
|
31612
|
-
layout: { type: "String" },
|
|
31613
|
-
direction: { type: "String" },
|
|
31614
|
-
maxVisible: {
|
|
31615
|
-
attribute: "max-visible",
|
|
31616
|
-
type: "Number"
|
|
31617
|
-
},
|
|
31618
|
-
loading: {
|
|
31619
|
-
reflect: !0,
|
|
31620
|
-
type: "Boolean"
|
|
31621
|
-
},
|
|
31622
|
-
testId: {
|
|
31623
|
-
attribute: "test-id",
|
|
31624
|
-
type: "String"
|
|
31625
|
-
},
|
|
31626
|
-
classes: { type: "String" },
|
|
31627
|
-
chipClasses: {
|
|
31628
|
-
attribute: "chip-classes",
|
|
31629
|
-
type: "String"
|
|
31630
|
-
},
|
|
31631
|
-
onselect: { type: "Object" }
|
|
31632
|
-
}, [], [], { mode: "open" }));
|
|
31633
|
-
//#endregion
|
|
31634
|
-
//#region src/wc/components/ChatToolStatus.wc.svelte
|
|
31635
|
-
var rest_excludes$4 = new Set([
|
|
31636
|
-
"$$slots",
|
|
31637
|
-
"$$events",
|
|
31638
|
-
"$$legacy",
|
|
31639
|
-
"$$host"
|
|
31640
|
-
]);
|
|
31641
|
-
function ChatToolStatus_wc(e, t) {
|
|
31642
|
-
let n = /* @__PURE__ */ rest_props(t, rest_excludes$4);
|
|
31643
|
-
ChatToolStatus(e, spread_props(() => n));
|
|
30943
|
+
children: (e, t) => {
|
|
30944
|
+
var n = root_21(), o = child(n), s = (e) => {
|
|
30945
|
+
var t = root_19(), n = first_child(t), i = (e) => {
|
|
30946
|
+
var t = root_5$2();
|
|
30947
|
+
Pill(child(t), {
|
|
30948
|
+
get text() {
|
|
30949
|
+
return y();
|
|
30950
|
+
},
|
|
30951
|
+
leadingIcon: (e) => {
|
|
30952
|
+
append(e, root_4$2());
|
|
30953
|
+
},
|
|
30954
|
+
$$slots: { leadingIcon: !0 }
|
|
30955
|
+
}), reset(t), append(e, t);
|
|
30956
|
+
};
|
|
30957
|
+
if_block(n, (e) => {
|
|
30958
|
+
_() === "search" && typeof y() == "string" && y().length > 0 && e(i);
|
|
30959
|
+
});
|
|
30960
|
+
var a = sibling(n, 2), o = child(a);
|
|
30961
|
+
let s;
|
|
30962
|
+
var c = sibling(o, 2);
|
|
30963
|
+
each(c, 21, () => get(D), index, (e, t, n) => {
|
|
30964
|
+
var i = comment(), a = first_child(i), o = (e) => {
|
|
30965
|
+
var i = root_10();
|
|
30966
|
+
let a, o;
|
|
30967
|
+
var s = child(i), c = child(s, !0);
|
|
30968
|
+
reset(s);
|
|
30969
|
+
var l = sibling(s, 2), u = (e) => {
|
|
30970
|
+
var n = root_6$2();
|
|
30971
|
+
let i;
|
|
30972
|
+
var a = child(n, !0);
|
|
30973
|
+
reset(n), template_effect(() => {
|
|
30974
|
+
i = set_class(n, 1, "row-secondary svelte-uzfrw6", null, i, { mono: get(t).mono }), set_text(a, get(t).secondary);
|
|
30975
|
+
}), append(e, n);
|
|
30976
|
+
};
|
|
30977
|
+
if_block(l, (e) => {
|
|
30978
|
+
get(t).secondary && e(u);
|
|
30979
|
+
});
|
|
30980
|
+
var d = sibling(l, 2), f = (e) => {
|
|
30981
|
+
var n = root_9$1(), i = child(n), a = (e) => {
|
|
30982
|
+
var n = root_7$2(), i = child(n);
|
|
30983
|
+
reset(n), template_effect(() => set_text(i, `+${get(t).added ?? ""}`)), append(e, n);
|
|
30984
|
+
};
|
|
30985
|
+
if_block(i, (e) => {
|
|
30986
|
+
typeof get(t).added == "number" && e(a);
|
|
30987
|
+
});
|
|
30988
|
+
var o = sibling(i, 2), s = (e) => {
|
|
30989
|
+
var n = root_8$2(), i = child(n);
|
|
30990
|
+
reset(n), template_effect(() => set_text(i, `−${get(t).removed ?? ""}`)), append(e, n);
|
|
30991
|
+
};
|
|
30992
|
+
if_block(o, (e) => {
|
|
30993
|
+
typeof get(t).removed == "number" && e(s);
|
|
30994
|
+
}), reset(n), append(e, n);
|
|
30995
|
+
};
|
|
30996
|
+
if_block(d, (e) => {
|
|
30997
|
+
(typeof get(t).added == "number" || typeof get(t).removed == "number") && e(f);
|
|
30998
|
+
}), reset(i), template_effect((e) => {
|
|
30999
|
+
a = set_class(i, 1, "trace-row selectable svelte-uzfrw6", null, a, { selected: S() === n }), set_attribute(i, "aria-pressed", S() === n), o = set_style(i, "", o, e), set_text(c, get(t).primary);
|
|
31000
|
+
}, [() => ({ "animation-delay": W(n) })]), delegated("click", i, () => G(n)), append(e, i);
|
|
31001
|
+
}, s = (e) => {
|
|
31002
|
+
var i = root_12();
|
|
31003
|
+
let a;
|
|
31004
|
+
var o = child(i);
|
|
31005
|
+
set_attribute(o, "data-tone", n % 3 + 1);
|
|
31006
|
+
var s = sibling(o, 2), c = child(s, !0);
|
|
31007
|
+
reset(s);
|
|
31008
|
+
var l = sibling(s, 2), u = (e) => {
|
|
31009
|
+
var n = root_11(), i = child(n, !0);
|
|
31010
|
+
reset(n), template_effect(() => set_text(i, get(t).secondary)), append(e, n);
|
|
31011
|
+
};
|
|
31012
|
+
if_block(l, (e) => {
|
|
31013
|
+
get(t).secondary && e(u);
|
|
31014
|
+
}), reset(i), template_effect((e) => {
|
|
31015
|
+
set_attribute(i, "href", get(t).href), a = set_style(i, "", a, e), set_text(c, get(t).primary);
|
|
31016
|
+
}, [() => ({ "animation-delay": W(n) })]), append(e, i);
|
|
31017
|
+
}, c = (e) => {
|
|
31018
|
+
var i = root_17();
|
|
31019
|
+
let a, o;
|
|
31020
|
+
var s = child(i), c = (e) => {
|
|
31021
|
+
var t = root_14(), i = child(t), a = (e) => {
|
|
31022
|
+
Loader(e, {});
|
|
31023
|
+
}, o = (e) => {
|
|
31024
|
+
append(e, root_13());
|
|
31025
|
+
};
|
|
31026
|
+
if_block(i, (e) => {
|
|
31027
|
+
v() && n === get(D).length - 1 ? e(a) : e(o, -1);
|
|
31028
|
+
}), reset(t), append(e, t);
|
|
31029
|
+
}, l = (e) => {
|
|
31030
|
+
var t = root_15();
|
|
31031
|
+
set_attribute(t, "data-tone", n % 3 + 1), append(e, t);
|
|
31032
|
+
};
|
|
31033
|
+
if_block(s, (e) => {
|
|
31034
|
+
_() === "steps" ? e(c) : _() === "search" && e(l, 1);
|
|
31035
|
+
});
|
|
31036
|
+
var u = sibling(s, 2), d = (e) => {
|
|
31037
|
+
var n = text();
|
|
31038
|
+
template_effect(() => set_text(n, get(t).primary)), append(e, n);
|
|
31039
|
+
}, f = (e) => {
|
|
31040
|
+
var n = root_16(), i = child(n, !0);
|
|
31041
|
+
reset(n), template_effect(() => set_text(i, get(t).primary)), append(e, n);
|
|
31042
|
+
};
|
|
31043
|
+
if_block(u, (e) => {
|
|
31044
|
+
_() === "reasoning" ? e(d) : e(f, -1);
|
|
31045
|
+
});
|
|
31046
|
+
var p = sibling(u, 2), m = (e) => {
|
|
31047
|
+
var n = root_6$2();
|
|
31048
|
+
let i;
|
|
31049
|
+
var a = child(n, !0);
|
|
31050
|
+
reset(n), template_effect(() => {
|
|
31051
|
+
i = set_class(n, 1, "row-secondary svelte-uzfrw6", null, i, { mono: get(t).mono }), set_text(a, get(t).secondary);
|
|
31052
|
+
}), append(e, n);
|
|
31053
|
+
};
|
|
31054
|
+
if_block(p, (e) => {
|
|
31055
|
+
get(t).secondary && e(m);
|
|
31056
|
+
});
|
|
31057
|
+
var h = sibling(p, 2), g = (e) => {
|
|
31058
|
+
var n = root_9$1(), i = child(n), a = (e) => {
|
|
31059
|
+
var n = root_7$2(), i = child(n);
|
|
31060
|
+
reset(n), template_effect(() => set_text(i, `+${get(t).added ?? ""}`)), append(e, n);
|
|
31061
|
+
};
|
|
31062
|
+
if_block(i, (e) => {
|
|
31063
|
+
typeof get(t).added == "number" && e(a);
|
|
31064
|
+
});
|
|
31065
|
+
var o = sibling(i, 2), s = (e) => {
|
|
31066
|
+
var n = root_8$2(), i = child(n);
|
|
31067
|
+
reset(n), template_effect(() => set_text(i, `−${get(t).removed ?? ""}`)), append(e, n);
|
|
31068
|
+
};
|
|
31069
|
+
if_block(o, (e) => {
|
|
31070
|
+
typeof get(t).removed == "number" && e(s);
|
|
31071
|
+
}), reset(n), append(e, n);
|
|
31072
|
+
};
|
|
31073
|
+
if_block(h, (e) => {
|
|
31074
|
+
(typeof get(t).added == "number" || typeof get(t).removed == "number") && e(g);
|
|
31075
|
+
}), reset(i), template_effect((e) => {
|
|
31076
|
+
a = set_class(i, 1, "trace-row svelte-uzfrw6", null, a, { prose: _() === "reasoning" }), o = set_style(i, "", o, e);
|
|
31077
|
+
}, [() => ({ "animation-delay": W(n) })]), append(e, i);
|
|
31078
|
+
};
|
|
31079
|
+
if_block(a, (e) => {
|
|
31080
|
+
_() === "coding" && x() ? e(o) : _() === "search" && typeof get(t).href == "string" ? e(s, 1) : e(c, -1);
|
|
31081
|
+
}), append(e, i);
|
|
31082
|
+
}), reset(c), action(c, (e, t) => U?.(e, t), () => get(D).length), effect(() => bind_element_size(c, "clientHeight", (e) => set(K, e))), reset(a);
|
|
31083
|
+
var l = sibling(a, 2), u = (e) => {
|
|
31084
|
+
var t = root_18(), n = child(t, !0);
|
|
31085
|
+
reset(t), template_effect(() => set_text(n, b())), append(e, t);
|
|
31086
|
+
};
|
|
31087
|
+
if_block(l, (e) => {
|
|
31088
|
+
!v() && typeof b() == "string" && b().length > 0 && e(u);
|
|
31089
|
+
}), template_effect(() => s = set_style(o, "", s, { height: `${get(K) ?? ""}px` })), append(e, t);
|
|
31090
|
+
}, c = (e) => {
|
|
31091
|
+
var t = root_20(), n = child(t, !0);
|
|
31092
|
+
reset(t), template_effect(() => {
|
|
31093
|
+
set_attribute(t, "data-pw", p() ?? (d() && `${d()}-detail`) ?? null), set_text(n, i());
|
|
31094
|
+
}), append(e, t);
|
|
31095
|
+
};
|
|
31096
|
+
if_block(o, (e) => {
|
|
31097
|
+
get(E) ? e(s) : e(c, -1);
|
|
31098
|
+
}), reset(n), template_effect(() => n.inert = !a()), append(e, n);
|
|
31099
|
+
},
|
|
31100
|
+
$$slots: { default: !0 }
|
|
31101
|
+
}), reset(t), action(t, (e, t) => V?.(e, t), () => v() ?? null), action(t, (e, t) => L?.(e, t), () => s() && get(k)), template_effect(() => {
|
|
31102
|
+
o = set_class(t, 1, `thinking-indicator expandable ${h() ?? "" ?? ""}`, "svelte-uzfrw6", o, { busy: v() === !0 }), set_attribute(t, "data-pw", typeof d() == "string" ? d() : null), set_attribute(t, "testid", typeof d() == "string" ? d() : null);
|
|
31103
|
+
}), append(e, t);
|
|
31104
|
+
}, Z = (e) => {
|
|
31105
|
+
var t = root_24();
|
|
31106
|
+
let i;
|
|
31107
|
+
var a = child(t), o = (e) => {
|
|
31108
|
+
var t = root_23(), i = child(t, !0);
|
|
31109
|
+
reset(t), template_effect(() => {
|
|
31110
|
+
set_attribute(t, "data-pw", m()), set_attribute(t, "testid", m()), set_text(i, n());
|
|
31111
|
+
}), append(e, t);
|
|
31112
|
+
}, s = (e) => {
|
|
31113
|
+
var t = text();
|
|
31114
|
+
template_effect(() => set_text(t, n())), append(e, t);
|
|
31115
|
+
};
|
|
31116
|
+
if_block(a, (e) => {
|
|
31117
|
+
typeof m() == "string" ? e(o) : e(s, -1);
|
|
31118
|
+
}), reset(t), template_effect(() => {
|
|
31119
|
+
i = set_class(t, 1, `status-label ${h() ?? "" ?? ""}`, "svelte-uzfrw6", i, { "static-label": !get(k) }), set_attribute(t, "data-pw", typeof d() == "string" ? d() : null), set_attribute(t, "testid", typeof d() == "string" ? d() : null);
|
|
31120
|
+
}), append(e, t);
|
|
31121
|
+
}, Q = (e) => {
|
|
31122
|
+
var t = root_25(), i = child(t), a = child(i), o = (e) => {
|
|
31123
|
+
var t = comment();
|
|
31124
|
+
snippet(first_child(t), l), append(e, t);
|
|
31125
|
+
}, s = (e) => {
|
|
31126
|
+
Loader(e, {});
|
|
31127
|
+
};
|
|
31128
|
+
if_block(a, (e) => {
|
|
31129
|
+
l() ? e(o) : e(s, -1);
|
|
31130
|
+
}), reset(i);
|
|
31131
|
+
var c = sibling(i, 2);
|
|
31132
|
+
let u;
|
|
31133
|
+
var f = child(c, !0);
|
|
31134
|
+
reset(c), reset(t), template_effect(() => {
|
|
31135
|
+
set_class(t, 1, `thinking-indicator-chip ${h() ?? "" ?? ""}`, "svelte-uzfrw6"), set_attribute(t, "data-pw", typeof d() == "string" ? d() : null), set_attribute(t, "testid", typeof d() == "string" ? d() : null), u = set_class(c, 1, "chip-label svelte-uzfrw6", null, u, { "static-label": !get(k) }), set_attribute(c, "data-pw", m() ?? null), set_text(f, n());
|
|
31136
|
+
}), append(e, t);
|
|
31137
|
+
}, $ = (e) => {
|
|
31138
|
+
var t = root_26(), i = child(t), a = child(i), o = child(a), c = (e) => {
|
|
31139
|
+
var t = comment();
|
|
31140
|
+
snippet(first_child(t), l), append(e, t);
|
|
31141
|
+
}, u = (e) => {
|
|
31142
|
+
Loader(e, {});
|
|
31143
|
+
};
|
|
31144
|
+
if_block(o, (e) => {
|
|
31145
|
+
l() ? e(c) : e(u, -1);
|
|
31146
|
+
}), reset(a);
|
|
31147
|
+
var f = sibling(a, 2);
|
|
31148
|
+
let p;
|
|
31149
|
+
var g = child(f, !0);
|
|
31150
|
+
reset(f), reset(i);
|
|
31151
|
+
var _ = sibling(i, 2), v = (e) => {
|
|
31152
|
+
var t = root_2$3(), n = child(t);
|
|
31153
|
+
reset(t), template_effect(() => {
|
|
31154
|
+
set_attribute(t, "data-pw", typeof d() == "string" ? `${d()}-elapsed` : null), set_attribute(t, "testid", typeof d() == "string" ? `${d()}-elapsed` : null), set_text(n, `${get(M) ?? ""}s`);
|
|
31155
|
+
}), append(e, t);
|
|
31156
|
+
};
|
|
31157
|
+
if_block(_, (e) => {
|
|
31158
|
+
s() && e(v);
|
|
31159
|
+
}), reset(t), action(t, (e, t) => L?.(e, t), () => s() && get(k)), template_effect(() => {
|
|
31160
|
+
set_class(t, 1, `thinking-indicator status-host ${h() ?? "" ?? ""}`, "svelte-uzfrw6"), set_attribute(t, "data-pw", typeof d() == "string" ? d() : null), set_attribute(t, "testid", typeof d() == "string" ? d() : null), p = set_class(f, 1, "status-label svelte-uzfrw6", null, p, { "static-label": !get(k) }), set_attribute(f, "data-pw", m() ?? null), set_text(g, n());
|
|
31161
|
+
}), append(e, t);
|
|
31162
|
+
};
|
|
31163
|
+
return if_block(Y, (e) => {
|
|
31164
|
+
get(O) ? e(X) : o() === "bare" ? e(Z, 1) : o() === "chip" ? e(Q, 2) : e($, -1);
|
|
31165
|
+
}), append(e, J), pop(q);
|
|
31644
31166
|
}
|
|
31645
|
-
|
|
31646
|
-
label: {
|
|
31647
|
-
|
|
31648
|
-
|
|
31649
|
-
},
|
|
31650
|
-
|
|
31651
|
-
|
|
31652
|
-
|
|
31653
|
-
|
|
31654
|
-
},
|
|
31655
|
-
|
|
31656
|
-
|
|
31167
|
+
delegate(["click"]), create_custom_element(ThinkingIndicator, {
|
|
31168
|
+
label: {},
|
|
31169
|
+
detail: {},
|
|
31170
|
+
expanded: {},
|
|
31171
|
+
variant: {},
|
|
31172
|
+
showElapsed: {},
|
|
31173
|
+
onToggle: {},
|
|
31174
|
+
avatar: {},
|
|
31175
|
+
toggleIcon: {},
|
|
31176
|
+
testId: {},
|
|
31177
|
+
toggleTestId: {},
|
|
31178
|
+
detailTestId: {},
|
|
31179
|
+
labelTestId: {},
|
|
31180
|
+
classes: {},
|
|
31181
|
+
rows: {},
|
|
31182
|
+
kind: {},
|
|
31183
|
+
busy: {},
|
|
31184
|
+
query: {},
|
|
31185
|
+
moreLabel: {},
|
|
31186
|
+
selectable: {},
|
|
31187
|
+
selected: {},
|
|
31188
|
+
onrowselect: {},
|
|
31189
|
+
onsettled: {},
|
|
31190
|
+
collapseDelayMs: {}
|
|
31191
|
+
}, [], [], { mode: "open" });
|
|
31657
31192
|
//#endregion
|
|
31658
|
-
//#region src/lib/
|
|
31659
|
-
var
|
|
31660
|
-
hash: "svelte-
|
|
31661
|
-
code: ".chat
|
|
31193
|
+
//#region src/lib/Chat/Chat.svelte
|
|
31194
|
+
var root$3 = /* @__PURE__ */ from_html("<div class=\"tool-status svelte-2jkbfk\"><!></div>"), root_1$3 = /* @__PURE__ */ from_html("<section><!> <!> <div class=\"footer svelte-2jkbfk\"><!> <!> <!></div></section>"), $$css$4 = {
|
|
31195
|
+
hash: "svelte-2jkbfk",
|
|
31196
|
+
code: ".chat.svelte-2jkbfk {box-sizing:border-box;display:flex;flex-direction:column;height:var(--chat-height, 100%);width:var(--chat-width, 100%);background:var(--chat-background, #ffffff);border:var(--chat-border, none);border-radius:var(--chat-border-radius, 0);overflow:hidden;}.footer.svelte-2jkbfk {box-sizing:border-box;display:flex;flex-direction:column;gap:var(--chat-footer-gap, 10px);padding:var(--chat-footer-padding, 12px 1.5rem);background:var(--chat-footer-background, transparent);border-top:var(--chat-footer-border-top, none);}.tool-status.svelte-2jkbfk {display:flex;justify-content:var(--chat-tool-status-justify, center);\n /* This row is ThinkingIndicator's chip variant internally now, not the standalone\n ChatToolStatus component -- but its public theming contract stays\n --chat-tool-status-*, unchanged, so an existing consumer's overrides keep working\n exactly as before. Defaults below match ChatToolStatus's own byte for byte. */--thinking-indicator-chip-gap: var(--chat-tool-status-gap, 8px);--thinking-indicator-chip-padding: var(--chat-tool-status-padding, 8px 14px);--thinking-indicator-chip-background: var(--chat-tool-status-background, #ffffff);--thinking-indicator-chip-border: var(--chat-tool-status-border, 1px solid #e4e4e7);--thinking-indicator-chip-border-radius: var(--chat-tool-status-border-radius, 999px);--thinking-indicator-chip-box-shadow: var(\n --chat-tool-status-box-shadow,\n 0 6px 20px rgba(0, 0, 0, 0.08)\n );--thinking-indicator-chip-max-width: var(--chat-tool-status-max-width, 100%);--thinking-indicator-chip-color: var(--chat-tool-status-color, #52525b);--thinking-indicator-chip-font-size: var(--chat-tool-status-font-size, 0.85rem);--thinking-indicator-chip-font-weight: var(--chat-tool-status-font-weight, 500);--thinking-indicator-chip-icon-color: var(--chat-tool-status-indicator-color, currentColor);--thinking-indicator-chip-spinner-color: var(--chat-tool-status-spinner-color, currentColor);--thinking-indicator-chip-spinner-color-end: var(\n --chat-tool-status-spinner-color-end,\n transparent\n );--thinking-indicator-chip-spinner-size: var(--chat-tool-status-spinner-size, 14px);}"
|
|
31662
31197
|
};
|
|
31663
|
-
function
|
|
31664
|
-
push(t, !0), append_styles$1(e, $$css$
|
|
31665
|
-
let n = prop(t, "
|
|
31666
|
-
function
|
|
31667
|
-
|
|
31668
|
-
|
|
31669
|
-
"left",
|
|
31670
|
-
"top-left"
|
|
31671
|
-
] : [
|
|
31672
|
-
"top",
|
|
31673
|
-
"right",
|
|
31674
|
-
"top-right"
|
|
31675
|
-
] : t === "right" ? [
|
|
31676
|
-
"bottom",
|
|
31677
|
-
"left",
|
|
31678
|
-
"bottom-left"
|
|
31679
|
-
] : [
|
|
31680
|
-
"bottom",
|
|
31681
|
-
"right",
|
|
31682
|
-
"bottom-right"
|
|
31683
|
-
];
|
|
31684
|
-
}
|
|
31685
|
-
let k = /* @__PURE__ */ state(null), A = /* @__PURE__ */ state(null), j = /* @__PURE__ */ state(null), M = /* @__PURE__ */ state(null), N = /* @__PURE__ */ state(null), P = /* @__PURE__ */ state(null), F = /* @__PURE__ */ state(null), I = /* @__PURE__ */ state(null), L = !1, R = /* @__PURE__ */ user_derived(() => get(M) !== null && get(M).moved), z = /* @__PURE__ */ user_derived(() => get(N) ?? (i().endsWith("right") ? "right" : "left")), B = /* @__PURE__ */ user_derived(() => get(P) ?? (i().startsWith("top") ? "top" : "bottom")), V = /* @__PURE__ */ user_derived(() => O(get(B), get(z))), H = /* @__PURE__ */ user_derived(() => y() ? b() : h()), U = /* @__PURE__ */ user_derived(() => y() ? x() : g());
|
|
31686
|
-
function W(e) {
|
|
31687
|
-
y() ? b(e) : h(e);
|
|
31688
|
-
}
|
|
31689
|
-
function G(e) {
|
|
31690
|
-
y() ? x(e) : g(e);
|
|
31691
|
-
}
|
|
31692
|
-
function K() {
|
|
31693
|
-
if (get(k) === null) return 24;
|
|
31694
|
-
let e = getComputedStyle(get(k)).getPropertyValue("--chat-bubble-offset-x").trim(), t = Number.parseFloat(e);
|
|
31695
|
-
return Number.isNaN(t) ? 24 : t;
|
|
31696
|
-
}
|
|
31697
|
-
function q(e, t, n, i, a, o) {
|
|
31698
|
-
let s = 16, c = 8;
|
|
31699
|
-
set(I, Math.max(0, o === "bottom" ? t - 16 - 8 : window.innerHeight - i - 16 - 8), !0), set(F, Math.max(0, a === "right" ? n - 8 : window.innerWidth - e - 8), !0);
|
|
31700
|
-
}
|
|
31701
|
-
function J(e, t, n, i) {
|
|
31702
|
-
if (typeof window > "u") return;
|
|
31703
|
-
let a = (e + n) / 2 < window.innerWidth / 2 ? "left" : "right", o = (t + i) / 2 < window.innerHeight / 2 ? "top" : "bottom";
|
|
31704
|
-
set(N, a, !0), set(P, o, !0), q(e, t, n, i, a, o);
|
|
31705
|
-
}
|
|
31706
|
-
async function Y(e) {
|
|
31707
|
-
if (e !== n()) {
|
|
31708
|
-
if (e && get(j) !== null) {
|
|
31709
|
-
let e = get(j).getBoundingClientRect();
|
|
31710
|
-
J(e.left, e.top, e.right, e.bottom);
|
|
31711
|
-
}
|
|
31712
|
-
n(e), w()?.(n()), n() ? (S()?.(), await tick(), get(A)?.focus()) : (C()?.(), get(j)?.querySelector("button")?.focus());
|
|
31713
|
-
}
|
|
31714
|
-
}
|
|
31715
|
-
function X() {
|
|
31716
|
-
if (L) {
|
|
31717
|
-
L = !1;
|
|
31198
|
+
function Chat(e, t) {
|
|
31199
|
+
push(t, !0), append_styles$1(e, $$css$4);
|
|
31200
|
+
let n = prop(t, "messages", 7), i = prop(t, "value", 15, ""), a = prop(t, "title", 7, ""), o = prop(t, "subtitle", 7, ""), s = prop(t, "image", 7), c = prop(t, "imageAlt", 7, ""), l = prop(t, "placeholder", 7, ""), u = prop(t, "disabled", 7, !1), d = prop(t, "streaming", 7, !1), f = prop(t, "recording", 7, !1), p = prop(t, "autoscroll", 7, !0), m = prop(t, "toolStatus", 7, null), h = prop(t, "suggestions", 23, () => []), g = prop(t, "attachments", 31, () => proxy([])), _ = prop(t, "accept", 7, ""), v = prop(t, "multiple", 7, !1), y = prop(t, "allowCopy", 7, !1), b = prop(t, "closeLabel", 7, "Close"), x = prop(t, "showClose", 7), S = prop(t, "headerAvatar", 7), C = prop(t, "headerActions", 7), w = prop(t, "headerContent", 7), T = prop(t, "message", 7), E = prop(t, "messageBody", 7), D = prop(t, "messageAttachments", 7), O = prop(t, "empty", 7), k = prop(t, "composerLeading", 7), A = prop(t, "sendIcon", 7), j = prop(t, "stopIcon", 7), M = prop(t, "voiceIcon", 7), N = prop(t, "attachIcon", 7), P = prop(t, "onsend", 7), F = prop(t, "onsuggestion", 7), I = prop(t, "onclose", 7), L = prop(t, "onstop", 7), R = prop(t, "onvoice", 7), z = prop(t, "onattach", 7), B = prop(t, "onretry", 7), V = prop(t, "onfeedback", 7), H = prop(t, "testId", 7), U = prop(t, "classes", 7), W = /* @__PURE__ */ user_derived(() => a().length > 0 || o().length > 0 || typeof s() == "string" && s().length > 0 || typeof I() == "function" || typeof S() == "function" || typeof C() == "function"), G = /* @__PURE__ */ user_derived(() => h().length > 0 && n().length === 0);
|
|
31201
|
+
function K(e, t) {
|
|
31202
|
+
if (typeof F() == "function") {
|
|
31203
|
+
F()(e, t);
|
|
31718
31204
|
return;
|
|
31719
31205
|
}
|
|
31720
|
-
|
|
31721
|
-
}
|
|
31722
|
-
function Z(e) {
|
|
31723
|
-
if (!u() || get(j) === null) return;
|
|
31724
|
-
L = !1;
|
|
31725
|
-
let t = get(j).getBoundingClientRect();
|
|
31726
|
-
set(M, {
|
|
31727
|
-
startX: e.clientX,
|
|
31728
|
-
startY: e.clientY,
|
|
31729
|
-
baseX: f(),
|
|
31730
|
-
baseY: p(),
|
|
31731
|
-
moved: !1,
|
|
31732
|
-
left0: t.left - f(),
|
|
31733
|
-
top0: t.top - p(),
|
|
31734
|
-
width: t.width,
|
|
31735
|
-
height: t.height
|
|
31736
|
-
}, !0);
|
|
31737
|
-
}
|
|
31738
|
-
function Q(e, t, n) {
|
|
31739
|
-
if (typeof window > "u") return {
|
|
31740
|
-
x: t,
|
|
31741
|
-
y: n
|
|
31742
|
-
};
|
|
31743
|
-
let i = t, a = n, o = e.left0 + t, s = e.top0 + n;
|
|
31744
|
-
return o < 0 ? i = -e.left0 : o + e.width > window.innerWidth && (i = window.innerWidth - e.width - e.left0), s < 0 ? a = -e.top0 : s + e.height > window.innerHeight && (a = window.innerHeight - e.height - e.top0), {
|
|
31745
|
-
x: i,
|
|
31746
|
-
y: a
|
|
31747
|
-
};
|
|
31748
|
-
}
|
|
31749
|
-
function ee(e) {
|
|
31750
|
-
if (get(M) === null) return;
|
|
31751
|
-
let t = e.clientX - get(M).startX, i = e.clientY - get(M).startY;
|
|
31752
|
-
if (!get(M).moved && Math.hypot(t, i) < 4) return;
|
|
31753
|
-
get(M).moved = !0;
|
|
31754
|
-
let a = Q(get(M), get(M).baseX + t, get(M).baseY + i);
|
|
31755
|
-
if (f(a.x), p(a.y), n() && get(N) !== null && get(P) !== null) {
|
|
31756
|
-
let e = get(M).left0 + f(), t = get(M).top0 + p();
|
|
31757
|
-
q(e, t, e + get(M).width, t + get(M).height, get(N), get(P));
|
|
31758
|
-
}
|
|
31759
|
-
}
|
|
31760
|
-
function $() {
|
|
31761
|
-
if (get(M) === null) return;
|
|
31762
|
-
let e = get(M);
|
|
31763
|
-
if (set(M, null), !e.moved || (L = !0, typeof window > "u")) return;
|
|
31764
|
-
if (d() === "snap") {
|
|
31765
|
-
let t = K();
|
|
31766
|
-
f(e.left0 + f() + e.width / 2 < window.innerWidth / 2 ? t - e.left0 : window.innerWidth - t - e.width - e.left0);
|
|
31767
|
-
}
|
|
31768
|
-
let t = e.left0 + f(), n = e.top0 + p();
|
|
31769
|
-
J(t, n, t + e.width, n + e.height);
|
|
31770
|
-
}
|
|
31771
|
-
function te(e) {
|
|
31772
|
-
e.key === "Escape" && (e.stopPropagation(), Y(!1));
|
|
31206
|
+
P()?.(e, []);
|
|
31773
31207
|
}
|
|
31774
|
-
var
|
|
31775
|
-
get
|
|
31208
|
+
var q = {
|
|
31209
|
+
get messages() {
|
|
31776
31210
|
return n();
|
|
31777
31211
|
},
|
|
31778
|
-
set
|
|
31212
|
+
set messages(e) {
|
|
31779
31213
|
n(e), flushSync();
|
|
31780
31214
|
},
|
|
31781
|
-
get
|
|
31215
|
+
get value() {
|
|
31782
31216
|
return i();
|
|
31783
31217
|
},
|
|
31784
|
-
set
|
|
31218
|
+
set value(e = "") {
|
|
31785
31219
|
i(e), flushSync();
|
|
31786
31220
|
},
|
|
31787
|
-
get
|
|
31221
|
+
get title() {
|
|
31788
31222
|
return a();
|
|
31789
31223
|
},
|
|
31790
|
-
set
|
|
31224
|
+
set title(e = "") {
|
|
31791
31225
|
a(e), flushSync();
|
|
31792
31226
|
},
|
|
31793
|
-
get
|
|
31227
|
+
get subtitle() {
|
|
31794
31228
|
return o();
|
|
31795
31229
|
},
|
|
31796
|
-
set
|
|
31230
|
+
set subtitle(e = "") {
|
|
31797
31231
|
o(e), flushSync();
|
|
31798
31232
|
},
|
|
31799
|
-
get
|
|
31233
|
+
get image() {
|
|
31800
31234
|
return s();
|
|
31801
31235
|
},
|
|
31802
|
-
set
|
|
31236
|
+
set image(e) {
|
|
31803
31237
|
s(e), flushSync();
|
|
31804
31238
|
},
|
|
31805
|
-
get
|
|
31239
|
+
get imageAlt() {
|
|
31806
31240
|
return c();
|
|
31807
31241
|
},
|
|
31808
|
-
set
|
|
31242
|
+
set imageAlt(e = "") {
|
|
31809
31243
|
c(e), flushSync();
|
|
31810
31244
|
},
|
|
31811
|
-
get
|
|
31245
|
+
get placeholder() {
|
|
31812
31246
|
return l();
|
|
31813
31247
|
},
|
|
31814
|
-
set
|
|
31248
|
+
set placeholder(e = "") {
|
|
31815
31249
|
l(e), flushSync();
|
|
31816
31250
|
},
|
|
31817
|
-
get
|
|
31251
|
+
get disabled() {
|
|
31818
31252
|
return u();
|
|
31819
31253
|
},
|
|
31820
|
-
set
|
|
31254
|
+
set disabled(e = !1) {
|
|
31821
31255
|
u(e), flushSync();
|
|
31822
31256
|
},
|
|
31823
|
-
get
|
|
31257
|
+
get streaming() {
|
|
31824
31258
|
return d();
|
|
31825
31259
|
},
|
|
31826
|
-
set
|
|
31260
|
+
set streaming(e = !1) {
|
|
31827
31261
|
d(e), flushSync();
|
|
31828
31262
|
},
|
|
31829
|
-
get
|
|
31263
|
+
get recording() {
|
|
31830
31264
|
return f();
|
|
31831
31265
|
},
|
|
31832
|
-
set
|
|
31266
|
+
set recording(e = !1) {
|
|
31833
31267
|
f(e), flushSync();
|
|
31834
31268
|
},
|
|
31835
|
-
get
|
|
31269
|
+
get autoscroll() {
|
|
31270
|
+
return p();
|
|
31271
|
+
},
|
|
31272
|
+
set autoscroll(e = !0) {
|
|
31273
|
+
p(e), flushSync();
|
|
31274
|
+
},
|
|
31275
|
+
get toolStatus() {
|
|
31276
|
+
return m();
|
|
31277
|
+
},
|
|
31278
|
+
set toolStatus(e = null) {
|
|
31279
|
+
m(e), flushSync();
|
|
31280
|
+
},
|
|
31281
|
+
get suggestions() {
|
|
31282
|
+
return h();
|
|
31283
|
+
},
|
|
31284
|
+
set suggestions(e = []) {
|
|
31285
|
+
h(e), flushSync();
|
|
31286
|
+
},
|
|
31287
|
+
get attachments() {
|
|
31288
|
+
return g();
|
|
31289
|
+
},
|
|
31290
|
+
set attachments(e = []) {
|
|
31291
|
+
g(e), flushSync();
|
|
31292
|
+
},
|
|
31293
|
+
get accept() {
|
|
31294
|
+
return _();
|
|
31295
|
+
},
|
|
31296
|
+
set accept(e = "") {
|
|
31297
|
+
_(e), flushSync();
|
|
31298
|
+
},
|
|
31299
|
+
get multiple() {
|
|
31300
|
+
return v();
|
|
31301
|
+
},
|
|
31302
|
+
set multiple(e = !1) {
|
|
31303
|
+
v(e), flushSync();
|
|
31304
|
+
},
|
|
31305
|
+
get allowCopy() {
|
|
31306
|
+
return y();
|
|
31307
|
+
},
|
|
31308
|
+
set allowCopy(e = !1) {
|
|
31309
|
+
y(e), flushSync();
|
|
31310
|
+
},
|
|
31311
|
+
get closeLabel() {
|
|
31312
|
+
return b();
|
|
31313
|
+
},
|
|
31314
|
+
set closeLabel(e = "Close") {
|
|
31315
|
+
b(e), flushSync();
|
|
31316
|
+
},
|
|
31317
|
+
get showClose() {
|
|
31318
|
+
return x();
|
|
31319
|
+
},
|
|
31320
|
+
set showClose(e) {
|
|
31321
|
+
x(e), flushSync();
|
|
31322
|
+
},
|
|
31323
|
+
get headerAvatar() {
|
|
31324
|
+
return S();
|
|
31325
|
+
},
|
|
31326
|
+
set headerAvatar(e) {
|
|
31327
|
+
S(e), flushSync();
|
|
31328
|
+
},
|
|
31329
|
+
get headerActions() {
|
|
31330
|
+
return C();
|
|
31331
|
+
},
|
|
31332
|
+
set headerActions(e) {
|
|
31333
|
+
C(e), flushSync();
|
|
31334
|
+
},
|
|
31335
|
+
get headerContent() {
|
|
31336
|
+
return w();
|
|
31337
|
+
},
|
|
31338
|
+
set headerContent(e) {
|
|
31339
|
+
w(e), flushSync();
|
|
31340
|
+
},
|
|
31341
|
+
get message() {
|
|
31342
|
+
return T();
|
|
31343
|
+
},
|
|
31344
|
+
set message(e) {
|
|
31345
|
+
T(e), flushSync();
|
|
31346
|
+
},
|
|
31347
|
+
get messageBody() {
|
|
31348
|
+
return E();
|
|
31349
|
+
},
|
|
31350
|
+
set messageBody(e) {
|
|
31351
|
+
E(e), flushSync();
|
|
31352
|
+
},
|
|
31353
|
+
get messageAttachments() {
|
|
31354
|
+
return D();
|
|
31355
|
+
},
|
|
31356
|
+
set messageAttachments(e) {
|
|
31357
|
+
D(e), flushSync();
|
|
31358
|
+
},
|
|
31359
|
+
get empty() {
|
|
31360
|
+
return O();
|
|
31361
|
+
},
|
|
31362
|
+
set empty(e) {
|
|
31363
|
+
O(e), flushSync();
|
|
31364
|
+
},
|
|
31365
|
+
get composerLeading() {
|
|
31366
|
+
return k();
|
|
31367
|
+
},
|
|
31368
|
+
set composerLeading(e) {
|
|
31369
|
+
k(e), flushSync();
|
|
31370
|
+
},
|
|
31371
|
+
get sendIcon() {
|
|
31372
|
+
return A();
|
|
31373
|
+
},
|
|
31374
|
+
set sendIcon(e) {
|
|
31375
|
+
A(e), flushSync();
|
|
31376
|
+
},
|
|
31377
|
+
get stopIcon() {
|
|
31378
|
+
return j();
|
|
31379
|
+
},
|
|
31380
|
+
set stopIcon(e) {
|
|
31381
|
+
j(e), flushSync();
|
|
31382
|
+
},
|
|
31383
|
+
get voiceIcon() {
|
|
31384
|
+
return M();
|
|
31385
|
+
},
|
|
31386
|
+
set voiceIcon(e) {
|
|
31387
|
+
M(e), flushSync();
|
|
31388
|
+
},
|
|
31389
|
+
get attachIcon() {
|
|
31390
|
+
return N();
|
|
31391
|
+
},
|
|
31392
|
+
set attachIcon(e) {
|
|
31393
|
+
N(e), flushSync();
|
|
31394
|
+
},
|
|
31395
|
+
get onsend() {
|
|
31396
|
+
return P();
|
|
31397
|
+
},
|
|
31398
|
+
set onsend(e) {
|
|
31399
|
+
P(e), flushSync();
|
|
31400
|
+
},
|
|
31401
|
+
get onsuggestion() {
|
|
31402
|
+
return F();
|
|
31403
|
+
},
|
|
31404
|
+
set onsuggestion(e) {
|
|
31405
|
+
F(e), flushSync();
|
|
31406
|
+
},
|
|
31407
|
+
get onclose() {
|
|
31408
|
+
return I();
|
|
31409
|
+
},
|
|
31410
|
+
set onclose(e) {
|
|
31411
|
+
I(e), flushSync();
|
|
31412
|
+
},
|
|
31413
|
+
get onstop() {
|
|
31414
|
+
return L();
|
|
31415
|
+
},
|
|
31416
|
+
set onstop(e) {
|
|
31417
|
+
L(e), flushSync();
|
|
31418
|
+
},
|
|
31419
|
+
get onvoice() {
|
|
31420
|
+
return R();
|
|
31421
|
+
},
|
|
31422
|
+
set onvoice(e) {
|
|
31423
|
+
R(e), flushSync();
|
|
31424
|
+
},
|
|
31425
|
+
get onattach() {
|
|
31426
|
+
return z();
|
|
31427
|
+
},
|
|
31428
|
+
set onattach(e) {
|
|
31429
|
+
z(e), flushSync();
|
|
31430
|
+
},
|
|
31431
|
+
get onretry() {
|
|
31432
|
+
return B();
|
|
31433
|
+
},
|
|
31434
|
+
set onretry(e) {
|
|
31435
|
+
B(e), flushSync();
|
|
31436
|
+
},
|
|
31437
|
+
get onfeedback() {
|
|
31438
|
+
return V();
|
|
31439
|
+
},
|
|
31440
|
+
set onfeedback(e) {
|
|
31441
|
+
V(e), flushSync();
|
|
31442
|
+
},
|
|
31443
|
+
get testId() {
|
|
31444
|
+
return H();
|
|
31445
|
+
},
|
|
31446
|
+
set testId(e) {
|
|
31447
|
+
H(e), flushSync();
|
|
31448
|
+
},
|
|
31449
|
+
get classes() {
|
|
31450
|
+
return U();
|
|
31451
|
+
},
|
|
31452
|
+
set classes(e) {
|
|
31453
|
+
U(e), flushSync();
|
|
31454
|
+
}
|
|
31455
|
+
}, J = root_1$3(), Y = child(J), X = (e) => {
|
|
31456
|
+
ChatHeader(e, {
|
|
31457
|
+
get title() {
|
|
31458
|
+
return a();
|
|
31459
|
+
},
|
|
31460
|
+
get subtitle() {
|
|
31461
|
+
return o();
|
|
31462
|
+
},
|
|
31463
|
+
get image() {
|
|
31464
|
+
return s();
|
|
31465
|
+
},
|
|
31466
|
+
get imageAlt() {
|
|
31467
|
+
return c();
|
|
31468
|
+
},
|
|
31469
|
+
get closeLabel() {
|
|
31470
|
+
return b();
|
|
31471
|
+
},
|
|
31472
|
+
get showClose() {
|
|
31473
|
+
return x();
|
|
31474
|
+
},
|
|
31475
|
+
get onclose() {
|
|
31476
|
+
return I();
|
|
31477
|
+
},
|
|
31478
|
+
get avatar() {
|
|
31479
|
+
return S();
|
|
31480
|
+
},
|
|
31481
|
+
get actions() {
|
|
31482
|
+
return C();
|
|
31483
|
+
},
|
|
31484
|
+
get children() {
|
|
31485
|
+
return w();
|
|
31486
|
+
}
|
|
31487
|
+
});
|
|
31488
|
+
};
|
|
31489
|
+
if_block(Y, (e) => {
|
|
31490
|
+
get(W) && e(X);
|
|
31491
|
+
});
|
|
31492
|
+
var Z = sibling(Y, 2);
|
|
31493
|
+
ChatMessageList(Z, {
|
|
31494
|
+
get messages() {
|
|
31495
|
+
return n();
|
|
31496
|
+
},
|
|
31497
|
+
get autoscroll() {
|
|
31836
31498
|
return p();
|
|
31837
31499
|
},
|
|
31838
|
-
|
|
31839
|
-
|
|
31840
|
-
},
|
|
31841
|
-
get resizable() {
|
|
31842
|
-
return m();
|
|
31843
|
-
},
|
|
31844
|
-
set resizable(e = !1) {
|
|
31845
|
-
m(e), flushSync();
|
|
31500
|
+
get message() {
|
|
31501
|
+
return T();
|
|
31846
31502
|
},
|
|
31847
|
-
get
|
|
31848
|
-
return
|
|
31503
|
+
get messageBody() {
|
|
31504
|
+
return E();
|
|
31849
31505
|
},
|
|
31850
|
-
|
|
31851
|
-
|
|
31506
|
+
get messageAttachments() {
|
|
31507
|
+
return D();
|
|
31852
31508
|
},
|
|
31853
|
-
get
|
|
31854
|
-
return
|
|
31509
|
+
get empty() {
|
|
31510
|
+
return O();
|
|
31855
31511
|
},
|
|
31856
|
-
|
|
31857
|
-
|
|
31512
|
+
get allowCopy() {
|
|
31513
|
+
return y();
|
|
31858
31514
|
},
|
|
31859
|
-
get
|
|
31860
|
-
return
|
|
31515
|
+
get onretry() {
|
|
31516
|
+
return B();
|
|
31861
31517
|
},
|
|
31862
|
-
|
|
31863
|
-
|
|
31518
|
+
get onfeedback() {
|
|
31519
|
+
return V();
|
|
31520
|
+
}
|
|
31521
|
+
});
|
|
31522
|
+
var Q = sibling(Z, 2), $ = child(Q), ee = (e) => {
|
|
31523
|
+
ChatSuggestions(e, {
|
|
31524
|
+
get items() {
|
|
31525
|
+
return h();
|
|
31526
|
+
},
|
|
31527
|
+
get disabled() {
|
|
31528
|
+
return u();
|
|
31529
|
+
},
|
|
31530
|
+
onselect: K
|
|
31531
|
+
});
|
|
31532
|
+
};
|
|
31533
|
+
if_block($, (e) => {
|
|
31534
|
+
get(G) && e(ee);
|
|
31535
|
+
});
|
|
31536
|
+
var te = sibling($, 2), ne = (e) => {
|
|
31537
|
+
var t = root$3();
|
|
31538
|
+
ThinkingIndicator(child(t), {
|
|
31539
|
+
get label() {
|
|
31540
|
+
return m().label;
|
|
31541
|
+
},
|
|
31542
|
+
variant: "chip"
|
|
31543
|
+
}), reset(t), append(e, t);
|
|
31544
|
+
};
|
|
31545
|
+
return if_block(te, (e) => {
|
|
31546
|
+
m() !== null && e(ne);
|
|
31547
|
+
}), ChatComposer(sibling(te, 2), {
|
|
31548
|
+
get placeholder() {
|
|
31549
|
+
return l();
|
|
31864
31550
|
},
|
|
31865
|
-
get
|
|
31866
|
-
return
|
|
31551
|
+
get disabled() {
|
|
31552
|
+
return u();
|
|
31867
31553
|
},
|
|
31868
|
-
|
|
31869
|
-
|
|
31554
|
+
get streaming() {
|
|
31555
|
+
return d();
|
|
31870
31556
|
},
|
|
31871
|
-
get
|
|
31872
|
-
return
|
|
31557
|
+
get recording() {
|
|
31558
|
+
return f();
|
|
31873
31559
|
},
|
|
31874
|
-
|
|
31875
|
-
|
|
31560
|
+
get accept() {
|
|
31561
|
+
return _();
|
|
31876
31562
|
},
|
|
31877
|
-
get
|
|
31878
|
-
return
|
|
31563
|
+
get multiple() {
|
|
31564
|
+
return v();
|
|
31879
31565
|
},
|
|
31880
|
-
|
|
31881
|
-
|
|
31566
|
+
get onsubmit() {
|
|
31567
|
+
return P();
|
|
31882
31568
|
},
|
|
31883
|
-
get
|
|
31884
|
-
return
|
|
31569
|
+
get onstop() {
|
|
31570
|
+
return L();
|
|
31885
31571
|
},
|
|
31886
|
-
|
|
31887
|
-
|
|
31572
|
+
get onvoice() {
|
|
31573
|
+
return R();
|
|
31888
31574
|
},
|
|
31889
|
-
get
|
|
31890
|
-
return
|
|
31575
|
+
get onattach() {
|
|
31576
|
+
return z();
|
|
31891
31577
|
},
|
|
31892
|
-
|
|
31893
|
-
|
|
31578
|
+
get leading() {
|
|
31579
|
+
return k();
|
|
31894
31580
|
},
|
|
31895
|
-
get
|
|
31896
|
-
return
|
|
31581
|
+
get sendIcon() {
|
|
31582
|
+
return A();
|
|
31897
31583
|
},
|
|
31898
|
-
|
|
31899
|
-
|
|
31584
|
+
get stopIcon() {
|
|
31585
|
+
return j();
|
|
31900
31586
|
},
|
|
31901
|
-
get
|
|
31902
|
-
return
|
|
31587
|
+
get voiceIcon() {
|
|
31588
|
+
return M();
|
|
31903
31589
|
},
|
|
31904
|
-
|
|
31905
|
-
|
|
31590
|
+
get attachIcon() {
|
|
31591
|
+
return N();
|
|
31906
31592
|
},
|
|
31907
|
-
get
|
|
31908
|
-
return
|
|
31593
|
+
get value() {
|
|
31594
|
+
return i();
|
|
31909
31595
|
},
|
|
31910
|
-
set
|
|
31911
|
-
|
|
31596
|
+
set value(e) {
|
|
31597
|
+
i(e);
|
|
31912
31598
|
},
|
|
31913
|
-
get
|
|
31914
|
-
return
|
|
31599
|
+
get attachments() {
|
|
31600
|
+
return g();
|
|
31915
31601
|
},
|
|
31916
|
-
set
|
|
31917
|
-
|
|
31918
|
-
}
|
|
31919
|
-
}, re = root_3$3();
|
|
31920
|
-
event("pointermove", $window, ee), event("pointerup", $window, $);
|
|
31921
|
-
let ie, ae;
|
|
31922
|
-
var oe = child(re), se = (e) => {
|
|
31923
|
-
var t = root_2$3();
|
|
31924
|
-
let n;
|
|
31925
|
-
var i = child(t), o = () => get(H), s = W, c = () => get(U), u = G;
|
|
31926
|
-
{
|
|
31927
|
-
let e = /* @__PURE__ */ user_derived(() => !m()), t = /* @__PURE__ */ user_derived(() => get(F) ?? Infinity), n = /* @__PURE__ */ user_derived(() => get(I) ?? Infinity);
|
|
31928
|
-
Resizable(i, {
|
|
31929
|
-
get disabled() {
|
|
31930
|
-
return get(e);
|
|
31931
|
-
},
|
|
31932
|
-
get width() {
|
|
31933
|
-
return o();
|
|
31934
|
-
},
|
|
31935
|
-
set width(e) {
|
|
31936
|
-
s(e);
|
|
31937
|
-
},
|
|
31938
|
-
get height() {
|
|
31939
|
-
return c();
|
|
31940
|
-
},
|
|
31941
|
-
set height(e) {
|
|
31942
|
-
u(e);
|
|
31943
|
-
},
|
|
31944
|
-
get minWidth() {
|
|
31945
|
-
return _();
|
|
31946
|
-
},
|
|
31947
|
-
get minHeight() {
|
|
31948
|
-
return v();
|
|
31949
|
-
},
|
|
31950
|
-
get maxWidth() {
|
|
31951
|
-
return get(t);
|
|
31952
|
-
},
|
|
31953
|
-
get maxHeight() {
|
|
31954
|
-
return get(n);
|
|
31955
|
-
},
|
|
31956
|
-
get handles() {
|
|
31957
|
-
return get(V);
|
|
31958
|
-
},
|
|
31959
|
-
children: (e, t) => {
|
|
31960
|
-
var n = root_1$3(), i = child(n), o = (e) => {
|
|
31961
|
-
var t = comment();
|
|
31962
|
-
snippet(first_child(t), l), append(e, t);
|
|
31963
|
-
};
|
|
31964
|
-
if_block(i, (e) => {
|
|
31965
|
-
typeof l() == "function" && e(o);
|
|
31966
|
-
}), reset(n), bind_this(n, (e) => set(A, e), () => get(A)), template_effect(() => set_attribute(n, "aria-label", a())), delegated("keydown", n, te), append(e, n);
|
|
31967
|
-
},
|
|
31968
|
-
$$slots: { default: !0 }
|
|
31969
|
-
});
|
|
31602
|
+
set attachments(e) {
|
|
31603
|
+
g(e);
|
|
31970
31604
|
}
|
|
31971
|
-
|
|
31972
|
-
|
|
31973
|
-
|
|
31974
|
-
})), append(e, t);
|
|
31975
|
-
};
|
|
31976
|
-
if_block(oe, (e) => {
|
|
31977
|
-
n() && e(se);
|
|
31978
|
-
});
|
|
31979
|
-
var ce = sibling(oe, 2), le = child(ce);
|
|
31980
|
-
{
|
|
31981
|
-
let e = /* @__PURE__ */ user_derived(() => n() ? o() : a());
|
|
31982
|
-
Button(le, {
|
|
31983
|
-
onclick: X,
|
|
31984
|
-
get ariaLabel() {
|
|
31985
|
-
return get(e);
|
|
31986
|
-
},
|
|
31987
|
-
get ariaExpanded() {
|
|
31988
|
-
return n();
|
|
31989
|
-
},
|
|
31990
|
-
children: (e, t) => {
|
|
31991
|
-
var i = comment(), a = first_child(i), o = (e) => {
|
|
31992
|
-
var t = comment(), n = first_child(t), i = (e) => {
|
|
31993
|
-
var t = comment();
|
|
31994
|
-
snippet(first_child(t), c), append(e, t);
|
|
31995
|
-
}, a = (e) => {
|
|
31996
|
-
var t = comment();
|
|
31997
|
-
html(first_child(t), () => close_default), append(e, t);
|
|
31998
|
-
};
|
|
31999
|
-
if_block(n, (e) => {
|
|
32000
|
-
typeof c() == "function" ? e(i) : e(a, -1);
|
|
32001
|
-
}), append(e, t);
|
|
32002
|
-
}, l = (e) => {
|
|
32003
|
-
var t = comment();
|
|
32004
|
-
snippet(first_child(t), s), append(e, t);
|
|
32005
|
-
}, u = (e) => {
|
|
32006
|
-
var t = comment();
|
|
32007
|
-
html(first_child(t), () => chat_default), append(e, t);
|
|
32008
|
-
};
|
|
32009
|
-
if_block(a, (e) => {
|
|
32010
|
-
n() ? e(o) : typeof s() == "function" ? e(l, 1) : e(u, -1);
|
|
32011
|
-
}), append(e, i);
|
|
32012
|
-
},
|
|
32013
|
-
$$slots: { default: !0 }
|
|
32014
|
-
});
|
|
32015
|
-
}
|
|
32016
|
-
return reset(ce), bind_this(ce, (e) => set(j, e), () => get(j)), reset(re), bind_this(re, (e) => set(k, e), () => get(k)), template_effect(() => {
|
|
32017
|
-
ie = set_class(re, 1, `chat-bubble ${E() ?? "" ?? ""}`, "svelte-15b7gm8", ie, {
|
|
32018
|
-
"is-draggable": u(),
|
|
32019
|
-
dragging: get(R)
|
|
32020
|
-
}), set_attribute(re, "data-position", i()), set_attribute(re, "data-effective-side", get(z)), set_attribute(re, "data-effective-vertical", get(B)), set_attribute(re, "data-expanded", y()), set_attribute(re, "data-pw", typeof T() == "string" ? T() : null), set_attribute(re, "testid", typeof T() == "string" ? T() : null), ae = set_style(re, "", ae, { transform: u() ? `translate(${f()}px, ${p()}px)` : null });
|
|
32021
|
-
}), delegated("pointerdown", ce, Z), append(e, re), pop(ne);
|
|
31605
|
+
}), reset(Q), reset(J), template_effect(() => {
|
|
31606
|
+
set_class(J, 1, `chat ${U() ?? "" ?? ""}`, "svelte-2jkbfk"), set_attribute(J, "data-pw", typeof H() == "string" ? H() : null), set_attribute(J, "testid", typeof H() == "string" ? H() : null);
|
|
31607
|
+
}), append(e, J), pop(q);
|
|
32022
31608
|
}
|
|
32023
|
-
|
|
32024
|
-
|
|
32025
|
-
|
|
32026
|
-
|
|
31609
|
+
create_custom_element(Chat, {
|
|
31610
|
+
messages: {},
|
|
31611
|
+
value: {},
|
|
31612
|
+
title: {},
|
|
31613
|
+
subtitle: {},
|
|
31614
|
+
image: {},
|
|
31615
|
+
imageAlt: {},
|
|
31616
|
+
placeholder: {},
|
|
31617
|
+
disabled: {},
|
|
31618
|
+
streaming: {},
|
|
31619
|
+
recording: {},
|
|
31620
|
+
autoscroll: {},
|
|
31621
|
+
toolStatus: {},
|
|
31622
|
+
suggestions: {},
|
|
31623
|
+
attachments: {},
|
|
31624
|
+
accept: {},
|
|
31625
|
+
multiple: {},
|
|
31626
|
+
allowCopy: {},
|
|
32027
31627
|
closeLabel: {},
|
|
32028
|
-
|
|
32029
|
-
|
|
32030
|
-
|
|
32031
|
-
|
|
32032
|
-
|
|
32033
|
-
|
|
32034
|
-
|
|
32035
|
-
|
|
32036
|
-
|
|
32037
|
-
|
|
32038
|
-
|
|
32039
|
-
|
|
32040
|
-
|
|
32041
|
-
|
|
32042
|
-
|
|
32043
|
-
onopen: {},
|
|
31628
|
+
showClose: {},
|
|
31629
|
+
headerAvatar: {},
|
|
31630
|
+
headerActions: {},
|
|
31631
|
+
headerContent: {},
|
|
31632
|
+
message: {},
|
|
31633
|
+
messageBody: {},
|
|
31634
|
+
messageAttachments: {},
|
|
31635
|
+
empty: {},
|
|
31636
|
+
composerLeading: {},
|
|
31637
|
+
sendIcon: {},
|
|
31638
|
+
stopIcon: {},
|
|
31639
|
+
voiceIcon: {},
|
|
31640
|
+
attachIcon: {},
|
|
31641
|
+
onsend: {},
|
|
31642
|
+
onsuggestion: {},
|
|
32044
31643
|
onclose: {},
|
|
32045
|
-
|
|
31644
|
+
onstop: {},
|
|
31645
|
+
onvoice: {},
|
|
31646
|
+
onattach: {},
|
|
31647
|
+
onretry: {},
|
|
31648
|
+
onfeedback: {},
|
|
32046
31649
|
testId: {},
|
|
32047
31650
|
classes: {}
|
|
32048
31651
|
}, [], [], { mode: "open" });
|
|
32049
31652
|
//#endregion
|
|
32050
|
-
//#region src/wc/components/
|
|
32051
|
-
var rest_excludes$
|
|
31653
|
+
//#region src/wc/components/Chat.wc.svelte
|
|
31654
|
+
var rest_excludes$10 = new Set([
|
|
31655
|
+
"$$slots",
|
|
31656
|
+
"$$events",
|
|
31657
|
+
"$$legacy",
|
|
31658
|
+
"$$host"
|
|
31659
|
+
]);
|
|
31660
|
+
function Chat_wc(e, t) {
|
|
31661
|
+
let n = /* @__PURE__ */ rest_props(t, rest_excludes$10);
|
|
31662
|
+
Chat(e, spread_props(() => n));
|
|
31663
|
+
}
|
|
31664
|
+
customElements.define("sui-chat", create_custom_element(Chat_wc, {
|
|
31665
|
+
messages: { type: "Object" },
|
|
31666
|
+
value: { type: "String" },
|
|
31667
|
+
title: {
|
|
31668
|
+
reflect: !0,
|
|
31669
|
+
type: "String"
|
|
31670
|
+
},
|
|
31671
|
+
subtitle: {
|
|
31672
|
+
reflect: !0,
|
|
31673
|
+
type: "String"
|
|
31674
|
+
},
|
|
31675
|
+
image: {
|
|
31676
|
+
reflect: !0,
|
|
31677
|
+
type: "String"
|
|
31678
|
+
},
|
|
31679
|
+
imageAlt: {
|
|
31680
|
+
attribute: "image-alt",
|
|
31681
|
+
type: "String"
|
|
31682
|
+
},
|
|
31683
|
+
placeholder: {
|
|
31684
|
+
reflect: !0,
|
|
31685
|
+
type: "String"
|
|
31686
|
+
},
|
|
31687
|
+
disabled: {
|
|
31688
|
+
reflect: !0,
|
|
31689
|
+
type: "Boolean"
|
|
31690
|
+
},
|
|
31691
|
+
streaming: {
|
|
31692
|
+
reflect: !0,
|
|
31693
|
+
type: "Boolean"
|
|
31694
|
+
},
|
|
31695
|
+
recording: {
|
|
31696
|
+
reflect: !0,
|
|
31697
|
+
type: "Boolean"
|
|
31698
|
+
},
|
|
31699
|
+
autoscroll: {
|
|
31700
|
+
reflect: !0,
|
|
31701
|
+
type: "Boolean"
|
|
31702
|
+
},
|
|
31703
|
+
toolStatus: {
|
|
31704
|
+
attribute: "tool-status",
|
|
31705
|
+
type: "Object"
|
|
31706
|
+
},
|
|
31707
|
+
suggestions: { type: "Object" },
|
|
31708
|
+
attachments: { type: "Object" },
|
|
31709
|
+
accept: {
|
|
31710
|
+
reflect: !0,
|
|
31711
|
+
type: "String"
|
|
31712
|
+
},
|
|
31713
|
+
multiple: {
|
|
31714
|
+
reflect: !0,
|
|
31715
|
+
type: "Boolean"
|
|
31716
|
+
},
|
|
31717
|
+
allowCopy: {
|
|
31718
|
+
attribute: "allow-copy",
|
|
31719
|
+
type: "Boolean"
|
|
31720
|
+
},
|
|
31721
|
+
closeLabel: {
|
|
31722
|
+
attribute: "close-label",
|
|
31723
|
+
type: "String"
|
|
31724
|
+
},
|
|
31725
|
+
showClose: {
|
|
31726
|
+
attribute: "show-close",
|
|
31727
|
+
type: "Boolean"
|
|
31728
|
+
},
|
|
31729
|
+
headerAvatar: { type: "Object" },
|
|
31730
|
+
headerActions: { type: "Object" },
|
|
31731
|
+
message: { type: "Object" },
|
|
31732
|
+
messageBody: { type: "Object" },
|
|
31733
|
+
messageAttachments: { type: "Object" },
|
|
31734
|
+
empty: { type: "Object" },
|
|
31735
|
+
composerLeading: { type: "Object" },
|
|
31736
|
+
sendIcon: { type: "Object" },
|
|
31737
|
+
stopIcon: { type: "Object" },
|
|
31738
|
+
voiceIcon: { type: "Object" },
|
|
31739
|
+
attachIcon: { type: "Object" },
|
|
31740
|
+
testId: {
|
|
31741
|
+
attribute: "test-id",
|
|
31742
|
+
type: "String"
|
|
31743
|
+
},
|
|
31744
|
+
classes: { type: "String" },
|
|
31745
|
+
onsend: { type: "Object" },
|
|
31746
|
+
onsuggestion: { type: "Object" },
|
|
31747
|
+
onclose: { type: "Object" },
|
|
31748
|
+
onstop: { type: "Object" },
|
|
31749
|
+
onvoice: { type: "Object" },
|
|
31750
|
+
onattach: { type: "Object" },
|
|
31751
|
+
onretry: { type: "Object" },
|
|
31752
|
+
onfeedback: { type: "Object" }
|
|
31753
|
+
}, [], [], { mode: "open" }));
|
|
31754
|
+
//#endregion
|
|
31755
|
+
//#region src/wc/components/ChatHeader.wc.svelte
|
|
31756
|
+
var rest_excludes$9 = new Set([
|
|
31757
|
+
"$$slots",
|
|
31758
|
+
"$$events",
|
|
31759
|
+
"$$legacy",
|
|
31760
|
+
"$$host"
|
|
31761
|
+
]);
|
|
31762
|
+
function ChatHeader_wc(e, t) {
|
|
31763
|
+
let n = /* @__PURE__ */ rest_props(t, rest_excludes$9);
|
|
31764
|
+
ChatHeader(e, spread_props(() => n));
|
|
31765
|
+
}
|
|
31766
|
+
customElements.define("sui-chat-header", create_custom_element(ChatHeader_wc, {
|
|
31767
|
+
title: {
|
|
31768
|
+
reflect: !0,
|
|
31769
|
+
type: "String"
|
|
31770
|
+
},
|
|
31771
|
+
subtitle: {
|
|
31772
|
+
reflect: !0,
|
|
31773
|
+
type: "String"
|
|
31774
|
+
},
|
|
31775
|
+
image: {
|
|
31776
|
+
reflect: !0,
|
|
31777
|
+
type: "String"
|
|
31778
|
+
},
|
|
31779
|
+
imageAlt: {
|
|
31780
|
+
attribute: "image-alt",
|
|
31781
|
+
type: "String"
|
|
31782
|
+
},
|
|
31783
|
+
avatar: { type: "Object" },
|
|
31784
|
+
actions: { type: "Object" },
|
|
31785
|
+
closeIcon: { type: "Object" },
|
|
31786
|
+
closeLabel: {
|
|
31787
|
+
attribute: "close-label",
|
|
31788
|
+
type: "String"
|
|
31789
|
+
},
|
|
31790
|
+
showClose: {
|
|
31791
|
+
attribute: "show-close",
|
|
31792
|
+
type: "Boolean"
|
|
31793
|
+
},
|
|
31794
|
+
testId: {
|
|
31795
|
+
attribute: "test-id",
|
|
31796
|
+
type: "String"
|
|
31797
|
+
},
|
|
31798
|
+
classes: { type: "String" },
|
|
31799
|
+
onclose: { type: "Object" }
|
|
31800
|
+
}, [], [], { mode: "open" }));
|
|
31801
|
+
//#endregion
|
|
31802
|
+
//#region src/wc/components/ChatMessage.wc.svelte
|
|
31803
|
+
var rest_excludes$8 = new Set([
|
|
31804
|
+
"$$slots",
|
|
31805
|
+
"$$events",
|
|
31806
|
+
"$$legacy",
|
|
31807
|
+
"$$host"
|
|
31808
|
+
]);
|
|
31809
|
+
function ChatMessage_wc(e, t) {
|
|
31810
|
+
let n = /* @__PURE__ */ rest_props(t, rest_excludes$8);
|
|
31811
|
+
ChatMessage(e, spread_props(() => n));
|
|
31812
|
+
}
|
|
31813
|
+
customElements.define("sui-chat-message", create_custom_element(ChatMessage_wc, {
|
|
31814
|
+
role: {
|
|
31815
|
+
reflect: !0,
|
|
31816
|
+
type: "String"
|
|
31817
|
+
},
|
|
31818
|
+
content: { type: "String" },
|
|
31819
|
+
html: { type: "String" },
|
|
31820
|
+
body: { type: "Object" },
|
|
31821
|
+
streaming: {
|
|
31822
|
+
reflect: !0,
|
|
31823
|
+
type: "Boolean"
|
|
31824
|
+
},
|
|
31825
|
+
status: {
|
|
31826
|
+
reflect: !0,
|
|
31827
|
+
type: "String"
|
|
31828
|
+
},
|
|
31829
|
+
avatar: { type: "Object" },
|
|
31830
|
+
header: { type: "Object" },
|
|
31831
|
+
attachments: { type: "Object" },
|
|
31832
|
+
allowCopy: {
|
|
31833
|
+
attribute: "allow-copy",
|
|
31834
|
+
type: "Boolean"
|
|
31835
|
+
},
|
|
31836
|
+
actions: { type: "Object" },
|
|
31837
|
+
copyLabel: {
|
|
31838
|
+
attribute: "copy-label",
|
|
31839
|
+
type: "String"
|
|
31840
|
+
},
|
|
31841
|
+
retryLabel: {
|
|
31842
|
+
attribute: "retry-label",
|
|
31843
|
+
type: "String"
|
|
31844
|
+
},
|
|
31845
|
+
feedbackUpLabel: {
|
|
31846
|
+
attribute: "feedback-up-label",
|
|
31847
|
+
type: "String"
|
|
31848
|
+
},
|
|
31849
|
+
feedbackDownLabel: {
|
|
31850
|
+
attribute: "feedback-down-label",
|
|
31851
|
+
type: "String"
|
|
31852
|
+
},
|
|
31853
|
+
testId: {
|
|
31854
|
+
attribute: "test-id",
|
|
31855
|
+
type: "String"
|
|
31856
|
+
},
|
|
31857
|
+
classes: { type: "String" },
|
|
31858
|
+
onretry: { type: "Object" },
|
|
31859
|
+
onfeedback: { type: "Object" },
|
|
31860
|
+
oncopy: { type: "Object" }
|
|
31861
|
+
}, [], [], { mode: "open" }));
|
|
31862
|
+
//#endregion
|
|
31863
|
+
//#region src/wc/components/ChatMessageList.wc.svelte
|
|
31864
|
+
var rest_excludes$7 = new Set([
|
|
32052
31865
|
"$$slots",
|
|
32053
31866
|
"$$events",
|
|
32054
31867
|
"$$legacy",
|
|
32055
31868
|
"$$host"
|
|
32056
31869
|
]);
|
|
32057
|
-
function
|
|
32058
|
-
let n = /* @__PURE__ */ rest_props(t, rest_excludes$
|
|
32059
|
-
|
|
31870
|
+
function ChatMessageList_wc(e, t) {
|
|
31871
|
+
let n = /* @__PURE__ */ rest_props(t, rest_excludes$7);
|
|
31872
|
+
ChatMessageList(e, spread_props(() => n));
|
|
32060
31873
|
}
|
|
32061
|
-
customElements.define("sui-chat-
|
|
32062
|
-
|
|
31874
|
+
customElements.define("sui-chat-message-list", create_custom_element(ChatMessageList_wc, {
|
|
31875
|
+
messages: { type: "Object" },
|
|
31876
|
+
autoscroll: {
|
|
32063
31877
|
reflect: !0,
|
|
32064
31878
|
type: "Boolean"
|
|
32065
31879
|
},
|
|
32066
|
-
|
|
32067
|
-
|
|
32068
|
-
|
|
32069
|
-
|
|
32070
|
-
label: {
|
|
32071
|
-
reflect: !0,
|
|
32072
|
-
type: "String"
|
|
32073
|
-
},
|
|
32074
|
-
closeLabel: {
|
|
32075
|
-
attribute: "close-label",
|
|
31880
|
+
message: { type: "Object" },
|
|
31881
|
+
messageBody: { type: "Object" },
|
|
31882
|
+
scrollPolicy: {
|
|
31883
|
+
attribute: "scroll-policy",
|
|
32076
31884
|
type: "String"
|
|
32077
31885
|
},
|
|
32078
|
-
|
|
32079
|
-
|
|
32080
|
-
children: { type: "Object" },
|
|
32081
|
-
draggable: {
|
|
32082
|
-
reflect: !0,
|
|
31886
|
+
pinHold: {
|
|
31887
|
+
attribute: "pin-hold",
|
|
32083
31888
|
type: "Boolean"
|
|
32084
31889
|
},
|
|
32085
|
-
|
|
32086
|
-
|
|
31890
|
+
jump: { type: "Boolean" },
|
|
31891
|
+
onscrollstate: { type: "Object" },
|
|
31892
|
+
messageAttachments: { type: "Object" },
|
|
31893
|
+
empty: { type: "Object" },
|
|
31894
|
+
jumpLabel: {
|
|
31895
|
+
attribute: "jump-label",
|
|
32087
31896
|
type: "String"
|
|
32088
31897
|
},
|
|
32089
|
-
|
|
32090
|
-
|
|
32091
|
-
|
|
32092
|
-
},
|
|
32093
|
-
dragY: {
|
|
32094
|
-
attribute: "drag-y",
|
|
32095
|
-
type: "Number"
|
|
32096
|
-
},
|
|
32097
|
-
resizable: {
|
|
32098
|
-
reflect: !0,
|
|
32099
|
-
type: "Boolean"
|
|
32100
|
-
},
|
|
32101
|
-
panelWidth: {
|
|
32102
|
-
attribute: "panel-width",
|
|
32103
|
-
type: "Number"
|
|
32104
|
-
},
|
|
32105
|
-
panelHeight: {
|
|
32106
|
-
attribute: "panel-height",
|
|
32107
|
-
type: "Number"
|
|
32108
|
-
},
|
|
32109
|
-
minPanelWidth: {
|
|
32110
|
-
attribute: "min-panel-width",
|
|
32111
|
-
type: "Number"
|
|
32112
|
-
},
|
|
32113
|
-
minPanelHeight: {
|
|
32114
|
-
attribute: "min-panel-height",
|
|
32115
|
-
type: "Number"
|
|
32116
|
-
},
|
|
32117
|
-
expanded: {
|
|
32118
|
-
reflect: !0,
|
|
31898
|
+
jumpIcon: { type: "Object" },
|
|
31899
|
+
allowCopy: {
|
|
31900
|
+
attribute: "allow-copy",
|
|
32119
31901
|
type: "Boolean"
|
|
32120
31902
|
},
|
|
32121
|
-
expandedPanelWidth: {
|
|
32122
|
-
attribute: "expanded-panel-width",
|
|
32123
|
-
type: "Number"
|
|
32124
|
-
},
|
|
32125
|
-
expandedPanelHeight: {
|
|
32126
|
-
attribute: "expanded-panel-height",
|
|
32127
|
-
type: "Number"
|
|
32128
|
-
},
|
|
32129
31903
|
testId: {
|
|
32130
31904
|
attribute: "test-id",
|
|
32131
31905
|
type: "String"
|
|
32132
31906
|
},
|
|
32133
31907
|
classes: { type: "String" },
|
|
32134
|
-
|
|
32135
|
-
|
|
32136
|
-
ontoggle: { type: "Object" }
|
|
31908
|
+
onretry: { type: "Object" },
|
|
31909
|
+
onfeedback: { type: "Object" }
|
|
32137
31910
|
}, [], [], { mode: "open" }));
|
|
32138
31911
|
//#endregion
|
|
32139
|
-
//#region src/
|
|
32140
|
-
var
|
|
32141
|
-
|
|
32142
|
-
|
|
32143
|
-
|
|
32144
|
-
|
|
32145
|
-
|
|
32146
|
-
|
|
32147
|
-
|
|
32148
|
-
|
|
32149
|
-
reset(n), append(e, n);
|
|
32150
|
-
};
|
|
32151
|
-
if_block(i, (e) => {
|
|
32152
|
-
typeof t().added == "number" && e(a);
|
|
32153
|
-
});
|
|
32154
|
-
var o = sibling(i, 2), s = (e) => {
|
|
32155
|
-
var n = root_1$2(), i = child(n);
|
|
32156
|
-
{
|
|
32157
|
-
let e = /* @__PURE__ */ user_derived(() => `−${t().removed}`);
|
|
32158
|
-
Pill(i, { get text() {
|
|
32159
|
-
return get(e);
|
|
32160
|
-
} });
|
|
32161
|
-
}
|
|
32162
|
-
reset(n), append(e, n);
|
|
32163
|
-
};
|
|
32164
|
-
if_block(o, (e) => {
|
|
32165
|
-
typeof t().removed == "number" && e(s);
|
|
32166
|
-
}), append(e, n);
|
|
32167
|
-
}, root$2 = /* @__PURE__ */ from_html("<span class=\"diffstat-pill diffstat-added svelte-1vnfzde\"><!></span>"), root_1$2 = /* @__PURE__ */ from_html("<span class=\"diffstat-pill diffstat-removed svelte-1vnfzde\"><!></span>"), root_2$2 = /* @__PURE__ */ from_html("<!> <!>", 1), root_3$2 = /* @__PURE__ */ from_html("<span class=\"chip-spinner svelte-1vnfzde\" aria-hidden=\"true\"><!></span>"), root_4$2 = /* @__PURE__ */ from_html("<span> </span>"), root_5$2 = /* @__PURE__ */ from_html("<span class=\"diffstat chip-diffstat svelte-1vnfzde\"><!></span>"), root_6$2 = /* @__PURE__ */ from_html("<span class=\"diffstat popover-diffstat svelte-1vnfzde\"><!></span>"), root_7$2 = /* @__PURE__ */ from_html("<div class=\"chip-popover svelte-1vnfzde\" role=\"dialog\" tabindex=\"-1\"><p> </p> <!></div>"), root_8$2 = /* @__PURE__ */ from_html("<div class=\"chip-wrap\"><button type=\"button\"><!> <b class=\"chip-label svelte-1vnfzde\"> </b> <!> <!></button> <!></div>"), root_9$1 = /* @__PURE__ */ from_html("<div></div>"), $$css$2 = {
|
|
32168
|
-
hash: "svelte-1vnfzde",
|
|
32169
|
-
code: "\n @keyframes svelte-1vnfzde-tool-call-log-fade-up {\n from {\n opacity: 0;\n transform: translateY(9px);\n }\n to {\n opacity: 1;\n transform: none;\n }\n }.tool-call-log.svelte-1vnfzde {display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--tool-call-log-gap, 8px);}\n\n /* Bespoke <button> markup (Pill's root is a non-interactive <div> and can't carry\n aria-expanded/button semantics — see docs), but its sizing recipe is deliberately\n pulled from Pill's own tokens (line-height, cursor) so it reads as the same family\n of control as the diffstat Pill badges nested inside it. */.chip.svelte-1vnfzde {display:inline-flex;align-items:center;gap:var(--tool-call-log-chip-gap, 6px);padding:var(--tool-call-log-chip-padding, 6px 10px);background:var(--tool-call-log-chip-background, #fafafa);border:var(--tool-call-log-chip-border, 1px solid #e4e4e7);border-radius:var(--tool-call-log-chip-radius, 6px);font:inherit;font-size:var(--tool-call-log-font-size, 0.8125rem);line-height:var(--tool-call-log-chip-line-height, 1);color:var(--tool-call-log-label-color, #2b2b2b);cursor:var(--tool-call-log-chip-cursor, pointer);max-width:100%;\n animation: svelte-1vnfzde-tool-call-log-fade-up 320ms var(--tool-call-log-ease, cubic-bezier(0.23, 1, 0.32, 1))\n both;transition:background 150ms ease,\n border-color 150ms ease;}.chip.svelte-1vnfzde:hover {background:var(--tool-call-log-chip-hover-background, #f1f1f1);}.chip[aria-expanded='true'].svelte-1vnfzde {border-color:var(--tool-call-log-chip-open-border-color, #c7c7cc);}.chip.error.svelte-1vnfzde {color:var(--tool-call-log-error-color, #c93f38);border-color:var(--tool-call-log-error-border-color, #f2b8b5);background:var(--tool-call-log-error-background, #fdf1f0);}.chip.error.svelte-1vnfzde:hover {background:var(--tool-call-log-error-hover-background, #fbe6e5);}.chip-label.svelte-1vnfzde {font-weight:var(--tool-call-log-label-weight, 500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.chip-meta.svelte-1vnfzde {color:var(--tool-call-log-meta-color, #9a9a9a);font-size:var(--tool-call-log-meta-font-size, 0.75rem);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.chip-meta.mono.svelte-1vnfzde {font-family:var(--tool-call-log-mono-font, ui-monospace, Menlo, monospace);}\n\n /* Sizes and colors the nested library Loader via CSS custom-property\n inheritance (no :global() needed — Loader is a plain DOM descendant of\n this span, same pattern as ThinkingIndicator's `.avatar`). Loader itself\n ships no literal fallback for --loader-foreground/-foreground-end/\n -background, so all three are set explicitly here rather than left to\n chance. */.chip-spinner.svelte-1vnfzde {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;--loader-width: var(--tool-call-log-spinner-size, 11px);--loader-height: var(--tool-call-log-spinner-size, 11px);--loader-before-width: 5px;--loader-before-height: 5px;--loader-after-width: 8px;--loader-after-height: 8px;--loader-foreground: var(--tool-call-log-spinner-color, #6b6b6b);--loader-foreground-end: var(--tool-call-log-spinner-track-color, #dcdcdc);--loader-background: var(--tool-call-log-chip-background, #fafafa);}.diffstat.svelte-1vnfzde {display:inline-flex;align-items:center;gap:4px;font-variant-numeric:tabular-nums;flex-shrink:0;}.chip-diffstat.svelte-1vnfzde {margin-left:var(--tool-call-log-diffstat-margin, 2px);}\n\n /* Pill customized into the small diffstat badge via its own --pill-* tokens\n (inherited the same way — Pill is a plain descendant of this span). Pill\n defaults `cursor` to `pointer` even when non-interactive, so it is pinned\n back to `default` here: these badges carry no onclick. */.diffstat-pill.svelte-1vnfzde {display:inline-flex;--pill-padding: var(--tool-call-log-diffstat-padding, 0 4px);--pill-border-radius: var(--tool-call-log-diffstat-radius, 4px);--pill-font-size: var(--tool-call-log-diffstat-font-size, 0.6875rem);--pill-font-family: var(--tool-call-log-mono-font, ui-monospace, Menlo, monospace);--pill-line-height: 1;--pill-cursor: default;}.diffstat-added.svelte-1vnfzde {--pill-background: var(--tool-call-log-added-background, #e4f5ee);--pill-color: var(--tool-call-log-added-color, #1f7a5f);}.diffstat-removed.svelte-1vnfzde {--pill-background: var(--tool-call-log-removed-background, #fbeceb);--pill-color: var(--tool-call-log-removed-color, #c93f38);}\n\n /* Always portaled to document.body (see `popoverPortal`), so `position:\n fixed` is the baseline rather than a portal-only override — left/top/\n z-index come from the inline `popoverStyle`, computed against the live\n anchor rect. */.chip-popover.svelte-1vnfzde {position:fixed;z-index:var(--tool-call-log-popover-z-index, 1000);display:flex;flex-direction:column;gap:var(--tool-call-log-popover-gap, 6px);min-width:var(--tool-call-log-popover-min-width, 220px);max-width:var(--tool-call-log-popover-max-width, 340px);padding:var(--tool-call-log-popover-padding, 10px 12px);background:var(--tool-call-log-popover-background, #ffffff);border:var(--tool-call-log-popover-border, 1px solid #e4e4e7);border-radius:var(--tool-call-log-popover-radius, 10px);box-shadow:var(--tool-call-log-popover-shadow, 0 10px 30px rgba(0, 0, 0, 0.12));\n animation: svelte-1vnfzde-tool-call-log-fade-up 200ms var(--tool-call-log-ease, cubic-bezier(0.23, 1, 0.32, 1))\n both;}.popover-detail.svelte-1vnfzde {margin:0;color:var(--tool-call-log-popover-color, #2b2b2b);font-size:var(--tool-call-log-popover-font-size, 0.8125rem);white-space:pre-wrap;overflow-wrap:anywhere;}.popover-detail.mono.svelte-1vnfzde {font-family:var(--tool-call-log-mono-font, ui-monospace, Menlo, monospace);}\n\n @media (prefers-reduced-motion: reduce) {.chip.svelte-1vnfzde,\n .chip-popover.svelte-1vnfzde {animation-duration:0.001s;}\n /* Loader's own spin keyframe lives on its internally-scoped `.loader`\n class, which this file cannot reach with a plain scoped selector —\n :global() is required to disable it, same pattern as `.pill-dismiss\n :global(svg)` elsewhere in the library. Loader ships no\n reduced-motion guard of its own. */.chip-spinner.svelte-1vnfzde .loader {\n animation: none;}\n }"
|
|
32170
|
-
};
|
|
32171
|
-
function ToolCallLog(e, t) {
|
|
32172
|
-
push(t, !0), append_styles$1(e, $$css$2);
|
|
32173
|
-
let n = prop(t, "chips", 7), i = prop(t, "onchipclick", 7), a = prop(t, "testId", 7), o = prop(t, "classes", 7), s = /* @__PURE__ */ state(null), c = /* @__PURE__ */ state(0), l = /* @__PURE__ */ state(proxy([])), u = /* @__PURE__ */ state(null), d = /* @__PURE__ */ state(0), f = /* @__PURE__ */ state(0), p = /* @__PURE__ */ state(0), m = 6, h = (e, t) => {
|
|
32174
|
-
let n = t;
|
|
32175
|
-
return { update(e) {
|
|
32176
|
-
e > n && set(c, n, !0), n = e;
|
|
32177
|
-
} };
|
|
32178
|
-
}, g = (e) => `${Math.max(0, e - get(c)) * 120}ms`, _ = (e, t) => {
|
|
32179
|
-
if (typeof t.detail == "string" && t.detail.length > 0) {
|
|
32180
|
-
set(s, get(s) === e ? null : e, !0);
|
|
32181
|
-
return;
|
|
32182
|
-
}
|
|
32183
|
-
i()?.(e, t);
|
|
32184
|
-
}, v = (e) => {
|
|
32185
|
-
e.key === "Escape" && get(s) !== null && set(s, null);
|
|
32186
|
-
}, y = /* @__PURE__ */ user_derived(() => {
|
|
32187
|
-
if (get(s) === null || typeof window > "u") return "";
|
|
32188
|
-
let e = get(l)[get(s)];
|
|
32189
|
-
if (e == null) return "";
|
|
32190
|
-
get(p);
|
|
32191
|
-
let t = e.getBoundingClientRect(), { left: n, top: i } = computeMenuDropdownPosition({
|
|
32192
|
-
container: {
|
|
32193
|
-
left: t.left,
|
|
32194
|
-
right: t.right,
|
|
32195
|
-
top: t.top,
|
|
32196
|
-
bottom: t.bottom
|
|
32197
|
-
},
|
|
32198
|
-
dropdown: {
|
|
32199
|
-
width: get(d),
|
|
32200
|
-
height: get(f)
|
|
32201
|
-
},
|
|
32202
|
-
placement: "bottom-left",
|
|
32203
|
-
gap: 6,
|
|
32204
|
-
viewport: {
|
|
32205
|
-
width: window.innerWidth,
|
|
32206
|
-
height: window.innerHeight
|
|
32207
|
-
}
|
|
32208
|
-
});
|
|
32209
|
-
return `position:fixed;left:${n}px;top:${i}px;right:auto;bottom:auto;margin:0;z-index:var(--tool-call-log-popover-z-index,1000);`;
|
|
32210
|
-
}), b = (e) => {
|
|
32211
|
-
document.body.appendChild(e);
|
|
32212
|
-
let t = null, n = () => {
|
|
32213
|
-
t === null && (t = requestAnimationFrame(() => {
|
|
32214
|
-
t = null, set(p, get(p) + 1);
|
|
32215
|
-
}));
|
|
32216
|
-
};
|
|
32217
|
-
return window.addEventListener("scroll", n, {
|
|
32218
|
-
capture: !0,
|
|
32219
|
-
passive: !0
|
|
32220
|
-
}), window.addEventListener("resize", n), { destroy() {
|
|
32221
|
-
window.removeEventListener("scroll", n, { capture: !0 }), window.removeEventListener("resize", n), t !== null && cancelAnimationFrame(t), e.remove();
|
|
32222
|
-
} };
|
|
32223
|
-
}, x = (e) => {
|
|
32224
|
-
let t = e.target;
|
|
32225
|
-
if (get(s) === null || !(t instanceof Node)) return;
|
|
32226
|
-
let n = get(l).some((e) => e !== null && e.contains(t)), i = get(u) !== null && get(u).contains(t);
|
|
32227
|
-
!n && !i && set(s, null);
|
|
32228
|
-
};
|
|
32229
|
-
onMount(() => (document.addEventListener("click", x), () => {
|
|
32230
|
-
document.removeEventListener("click", x);
|
|
32231
|
-
}));
|
|
32232
|
-
var S = {
|
|
32233
|
-
get chips() {
|
|
32234
|
-
return n();
|
|
32235
|
-
},
|
|
32236
|
-
set chips(e) {
|
|
32237
|
-
n(e), flushSync();
|
|
32238
|
-
},
|
|
32239
|
-
get onchipclick() {
|
|
32240
|
-
return i();
|
|
32241
|
-
},
|
|
32242
|
-
set onchipclick(e) {
|
|
32243
|
-
i(e), flushSync();
|
|
32244
|
-
},
|
|
32245
|
-
get testId() {
|
|
32246
|
-
return a();
|
|
32247
|
-
},
|
|
32248
|
-
set testId(e) {
|
|
32249
|
-
a(e), flushSync();
|
|
32250
|
-
},
|
|
32251
|
-
get classes() {
|
|
32252
|
-
return o();
|
|
32253
|
-
},
|
|
32254
|
-
set classes(e) {
|
|
32255
|
-
o(e), flushSync();
|
|
32256
|
-
}
|
|
32257
|
-
}, C = root_9$1();
|
|
32258
|
-
return event("keydown", $window, v), each(C, 21, n, index, (e, t, n) => {
|
|
32259
|
-
let i = /* @__PURE__ */ user_derived(() => get(t).detail), o = /* @__PURE__ */ user_derived(() => typeof get(i) == "string" && get(i).length > 0), c = /* @__PURE__ */ user_derived(() => typeof get(t).added == "number" || typeof get(t).removed == "number");
|
|
32260
|
-
var p = root_8$2(), m = child(p);
|
|
32261
|
-
let h, v;
|
|
32262
|
-
var x = child(m), S = (e) => {
|
|
32263
|
-
var t = root_3$2();
|
|
32264
|
-
Loader(child(t), {}), reset(t), append(e, t);
|
|
32265
|
-
};
|
|
32266
|
-
if_block(x, (e) => {
|
|
32267
|
-
get(t).state === "running" && e(S);
|
|
32268
|
-
});
|
|
32269
|
-
var C = sibling(x, 2), w = child(C, !0);
|
|
32270
|
-
reset(C);
|
|
32271
|
-
var T = sibling(C, 2), E = (e) => {
|
|
32272
|
-
var n = root_4$2();
|
|
32273
|
-
let i;
|
|
32274
|
-
var a = child(n, !0);
|
|
32275
|
-
reset(n), template_effect(() => {
|
|
32276
|
-
i = set_class(n, 1, "chip-meta svelte-1vnfzde", null, i, { mono: get(t).mono }), set_text(a, get(t).meta);
|
|
32277
|
-
}), append(e, n);
|
|
32278
|
-
};
|
|
32279
|
-
if_block(T, (e) => {
|
|
32280
|
-
typeof get(t).meta == "string" && get(t).meta.length > 0 && e(E);
|
|
32281
|
-
});
|
|
32282
|
-
var D = sibling(T, 2), O = (e) => {
|
|
32283
|
-
var n = root_5$2();
|
|
32284
|
-
diffstatBadges(child(n), () => get(t)), reset(n), append(e, n);
|
|
32285
|
-
};
|
|
32286
|
-
if_block(D, (e) => {
|
|
32287
|
-
get(c) && e(O);
|
|
32288
|
-
}), reset(m), bind_this(m, (e, t) => get(l)[t] = e, (e) => get(l)?.[e], () => [n]);
|
|
32289
|
-
var k = sibling(m, 2), A = (e) => {
|
|
32290
|
-
var o = root_7$2(), s = child(o);
|
|
32291
|
-
let l;
|
|
32292
|
-
var p = child(s, !0);
|
|
32293
|
-
reset(s);
|
|
32294
|
-
var m = sibling(s, 2), h = (e) => {
|
|
32295
|
-
var n = root_6$2();
|
|
32296
|
-
diffstatBadges(child(n), () => get(t)), reset(n), append(e, n);
|
|
32297
|
-
};
|
|
32298
|
-
if_block(m, (e) => {
|
|
32299
|
-
get(c) && e(h);
|
|
32300
|
-
}), reset(o), bind_this(o, (e) => set(u, e), () => get(u)), effect(() => bind_element_size(o, "clientWidth", (e) => set(d, e))), effect(() => bind_element_size(o, "clientHeight", (e) => set(f, e))), action(o, (e) => b?.(e)), template_effect(() => {
|
|
32301
|
-
set_attribute(o, "aria-label", `${get(t).label} details`), set_style(o, get(y)), set_attribute(o, "data-pw", typeof a() == "string" ? `${a()}-popover-${n}` : null), set_attribute(o, "testid", typeof a() == "string" ? `${a()}-popover-${n}` : null), l = set_class(s, 1, "popover-detail svelte-1vnfzde", null, l, { mono: get(t).mono }), set_text(p, get(i));
|
|
32302
|
-
}), append(e, o);
|
|
32303
|
-
};
|
|
32304
|
-
if_block(k, (e) => {
|
|
32305
|
-
get(o) && get(s) === n && e(A);
|
|
32306
|
-
}), reset(p), template_effect((e) => {
|
|
32307
|
-
h = set_class(m, 1, "chip svelte-1vnfzde", null, h, { error: get(t).state === "error" }), set_attribute(m, "aria-expanded", get(o) ? get(s) === n : null), set_attribute(m, "data-pw", typeof a() == "string" ? `${a()}-chip-${n}` : null), set_attribute(m, "testid", typeof a() == "string" ? `${a()}-chip-${n}` : null), v = set_style(m, "", v, e), set_text(w, get(t).label);
|
|
32308
|
-
}, [() => ({ "animation-delay": g(n) })]), delegated("click", m, () => _(n, get(t))), append(e, p);
|
|
32309
|
-
}), reset(C), action(C, (e, t) => h?.(e, t), () => n().length), template_effect(() => {
|
|
32310
|
-
set_class(C, 1, `tool-call-log ${o() ?? "" ?? ""}`, "svelte-1vnfzde"), set_attribute(C, "data-pw", typeof a() == "string" ? a() : null), set_attribute(C, "testid", typeof a() == "string" ? a() : null);
|
|
32311
|
-
}), append(e, C), pop(S);
|
|
31912
|
+
//#region src/wc/components/ChatComposer.wc.svelte
|
|
31913
|
+
var rest_excludes$6 = new Set([
|
|
31914
|
+
"$$slots",
|
|
31915
|
+
"$$events",
|
|
31916
|
+
"$$legacy",
|
|
31917
|
+
"$$host"
|
|
31918
|
+
]);
|
|
31919
|
+
function ChatComposer_wc(e, t) {
|
|
31920
|
+
let n = /* @__PURE__ */ rest_props(t, rest_excludes$6);
|
|
31921
|
+
ChatComposer(e, spread_props(() => n));
|
|
32312
31922
|
}
|
|
32313
|
-
|
|
32314
|
-
|
|
32315
|
-
|
|
32316
|
-
|
|
32317
|
-
|
|
32318
|
-
},
|
|
31923
|
+
customElements.define("sui-chat-composer", create_custom_element(ChatComposer_wc, {
|
|
31924
|
+
value: { type: "String" },
|
|
31925
|
+
placeholder: {
|
|
31926
|
+
reflect: !0,
|
|
31927
|
+
type: "String"
|
|
31928
|
+
},
|
|
31929
|
+
disabled: {
|
|
31930
|
+
reflect: !0,
|
|
31931
|
+
type: "Boolean"
|
|
31932
|
+
},
|
|
31933
|
+
submitOnEnter: {
|
|
31934
|
+
attribute: "submit-on-enter",
|
|
31935
|
+
type: "Boolean"
|
|
31936
|
+
},
|
|
31937
|
+
maxLength: {
|
|
31938
|
+
attribute: "max-length",
|
|
31939
|
+
type: "Number"
|
|
31940
|
+
},
|
|
31941
|
+
streaming: {
|
|
31942
|
+
reflect: !0,
|
|
31943
|
+
type: "Boolean"
|
|
31944
|
+
},
|
|
31945
|
+
recording: {
|
|
31946
|
+
reflect: !0,
|
|
31947
|
+
type: "Boolean"
|
|
31948
|
+
},
|
|
31949
|
+
attachments: { type: "Object" },
|
|
31950
|
+
attachmentsPreview: { type: "Object" },
|
|
31951
|
+
richImages: { type: "Object" },
|
|
31952
|
+
richFiles: { type: "Object" },
|
|
31953
|
+
richVideos: { type: "Object" },
|
|
31954
|
+
richImageTooltip: { type: "Object" },
|
|
31955
|
+
richVideoTooltip: { type: "Object" },
|
|
31956
|
+
richRemoveIcon: { type: "Object" },
|
|
31957
|
+
richFileIcon: { type: "Object" },
|
|
31958
|
+
onremoverichimage: { type: "Object" },
|
|
31959
|
+
onremoverichfile: { type: "Object" },
|
|
31960
|
+
onremoverichvideo: { type: "Object" },
|
|
31961
|
+
onopenrichimage: { type: "Object" },
|
|
31962
|
+
onopenrichvideo: { type: "Object" },
|
|
31963
|
+
onopenrichfile: { type: "Object" },
|
|
31964
|
+
sendable: { type: "Boolean" },
|
|
31965
|
+
accept: {
|
|
31966
|
+
reflect: !0,
|
|
31967
|
+
type: "String"
|
|
31968
|
+
},
|
|
31969
|
+
multiple: {
|
|
31970
|
+
reflect: !0,
|
|
31971
|
+
type: "Boolean"
|
|
31972
|
+
},
|
|
31973
|
+
sendLabel: {
|
|
31974
|
+
attribute: "send-label",
|
|
31975
|
+
type: "String"
|
|
31976
|
+
},
|
|
31977
|
+
stopLabel: {
|
|
31978
|
+
attribute: "stop-label",
|
|
31979
|
+
type: "String"
|
|
31980
|
+
},
|
|
31981
|
+
voiceLabel: {
|
|
31982
|
+
attribute: "voice-label",
|
|
31983
|
+
type: "String"
|
|
31984
|
+
},
|
|
31985
|
+
attachLabel: {
|
|
31986
|
+
attribute: "attach-label",
|
|
31987
|
+
type: "String"
|
|
31988
|
+
},
|
|
31989
|
+
sendIcon: { type: "Object" },
|
|
31990
|
+
stopIcon: { type: "Object" },
|
|
31991
|
+
voiceIcon: { type: "Object" },
|
|
31992
|
+
attachIcon: { type: "Object" },
|
|
31993
|
+
leading: { type: "Object" },
|
|
31994
|
+
testId: {
|
|
31995
|
+
attribute: "test-id",
|
|
31996
|
+
type: "String"
|
|
31997
|
+
},
|
|
31998
|
+
inputTestId: {
|
|
31999
|
+
attribute: "input-test-id",
|
|
32000
|
+
type: "String"
|
|
32001
|
+
},
|
|
32002
|
+
inputAriaLabel: {
|
|
32003
|
+
attribute: "input-aria-label",
|
|
32004
|
+
type: "String"
|
|
32005
|
+
},
|
|
32006
|
+
sendTestId: {
|
|
32007
|
+
attribute: "send-test-id",
|
|
32008
|
+
type: "String"
|
|
32009
|
+
},
|
|
32010
|
+
sendSlotTestId: {
|
|
32011
|
+
attribute: "send-slot-test-id",
|
|
32012
|
+
type: "String"
|
|
32013
|
+
},
|
|
32014
|
+
stopTestId: {
|
|
32015
|
+
attribute: "stop-test-id",
|
|
32016
|
+
type: "String"
|
|
32017
|
+
},
|
|
32018
|
+
voiceTestId: {
|
|
32019
|
+
attribute: "voice-test-id",
|
|
32020
|
+
type: "String"
|
|
32021
|
+
},
|
|
32022
|
+
attachTestId: {
|
|
32023
|
+
attribute: "attach-test-id",
|
|
32024
|
+
type: "String"
|
|
32025
|
+
},
|
|
32026
|
+
actionTestId: {
|
|
32027
|
+
attribute: "action-test-id",
|
|
32028
|
+
type: "String"
|
|
32029
|
+
},
|
|
32030
|
+
classes: { type: "String" },
|
|
32031
|
+
onsubmit: { type: "Object" },
|
|
32032
|
+
oninput: { type: "Object" },
|
|
32033
|
+
onkeydown: { type: "Object" },
|
|
32034
|
+
onstop: { type: "Object" },
|
|
32035
|
+
onvoice: { type: "Object" },
|
|
32036
|
+
onattach: { type: "Object" },
|
|
32037
|
+
onpaste: { type: "Object" },
|
|
32038
|
+
onattachclick: { type: "Object" },
|
|
32039
|
+
onaction: { type: "Object" },
|
|
32040
|
+
actionIcon: { type: "Object" },
|
|
32041
|
+
actionLabel: {
|
|
32042
|
+
attribute: "action-label",
|
|
32043
|
+
type: "String"
|
|
32044
|
+
}
|
|
32045
|
+
}, [], [], { mode: "open" }));
|
|
32319
32046
|
//#endregion
|
|
32320
|
-
//#region src/wc/components/
|
|
32321
|
-
var rest_excludes$
|
|
32047
|
+
//#region src/wc/components/ChatSuggestions.wc.svelte
|
|
32048
|
+
var rest_excludes$5 = new Set([
|
|
32322
32049
|
"$$slots",
|
|
32323
32050
|
"$$events",
|
|
32324
32051
|
"$$legacy",
|
|
32325
32052
|
"$$host"
|
|
32326
32053
|
]);
|
|
32327
|
-
function
|
|
32328
|
-
let n = /* @__PURE__ */ rest_props(t, rest_excludes$
|
|
32329
|
-
|
|
32054
|
+
function ChatSuggestions_wc(e, t) {
|
|
32055
|
+
let n = /* @__PURE__ */ rest_props(t, rest_excludes$5);
|
|
32056
|
+
ChatSuggestions(e, spread_props(() => n));
|
|
32330
32057
|
}
|
|
32331
|
-
customElements.define("sui-
|
|
32332
|
-
|
|
32333
|
-
|
|
32058
|
+
customElements.define("sui-chat-suggestions", create_custom_element(ChatSuggestions_wc, {
|
|
32059
|
+
items: { type: "Object" },
|
|
32060
|
+
disabled: {
|
|
32061
|
+
reflect: !0,
|
|
32062
|
+
type: "Boolean"
|
|
32063
|
+
},
|
|
32064
|
+
layout: { type: "String" },
|
|
32065
|
+
direction: { type: "String" },
|
|
32066
|
+
maxVisible: {
|
|
32067
|
+
attribute: "max-visible",
|
|
32068
|
+
type: "Number"
|
|
32069
|
+
},
|
|
32070
|
+
loading: {
|
|
32071
|
+
reflect: !0,
|
|
32072
|
+
type: "Boolean"
|
|
32073
|
+
},
|
|
32334
32074
|
testId: {
|
|
32335
32075
|
attribute: "test-id",
|
|
32336
32076
|
type: "String"
|
|
32337
32077
|
},
|
|
32338
|
-
classes: { type: "String" }
|
|
32078
|
+
classes: { type: "String" },
|
|
32079
|
+
chipClasses: {
|
|
32080
|
+
attribute: "chip-classes",
|
|
32081
|
+
type: "String"
|
|
32082
|
+
},
|
|
32083
|
+
onselect: { type: "Object" }
|
|
32339
32084
|
}, [], [], { mode: "open" }));
|
|
32340
32085
|
//#endregion
|
|
32341
|
-
//#region src/lib/
|
|
32342
|
-
var root$
|
|
32343
|
-
hash: "svelte-
|
|
32344
|
-
code: "
|
|
32086
|
+
//#region src/lib/ChatToolStatus/ChatToolStatus.svelte
|
|
32087
|
+
var root$2 = /* @__PURE__ */ from_html("<div aria-live=\"polite\"><span class=\"indicator svelte-1s6lfrc\"><!></span> <span class=\"label svelte-1s6lfrc\"> </span></div>"), $$css$3 = {
|
|
32088
|
+
hash: "svelte-1s6lfrc",
|
|
32089
|
+
code: ".chat-tool-status.svelte-1s6lfrc {box-sizing:border-box;display:inline-flex;align-items:center;gap:var(--chat-tool-status-gap, 8px);width:fit-content;padding:var(--chat-tool-status-padding, 8px 14px);background:var(--chat-tool-status-background, #ffffff);border:var(--chat-tool-status-border, 1px solid #e4e4e7);border-radius:var(--chat-tool-status-border-radius, 999px);box-shadow:var(--chat-tool-status-box-shadow, 0 6px 20px rgba(0, 0, 0, 0.08));color:var(--chat-tool-status-color, #52525b);font-size:var(--chat-tool-status-font-size, 0.85rem);font-weight:var(--chat-tool-status-font-weight, 500);max-width:var(--chat-tool-status-max-width, 100%);}.indicator.svelte-1s6lfrc {display:inline-flex;align-items:center;flex-shrink:0;color:var(--chat-tool-status-indicator-color, currentColor);--loader-foreground: var(--chat-tool-status-spinner-color, currentColor);--loader-foreground-end: var(--chat-tool-status-spinner-color-end, transparent);--loader-width: var(--chat-tool-status-spinner-size, 14px);--loader-height: var(--chat-tool-status-spinner-size, 14px);--loader-before-width: 7px;--loader-before-height: 7px;--loader-after-width: 11px;--loader-after-height: 11px;--loader-background: var(--chat-tool-status-background, #ffffff);}.label.svelte-1s6lfrc {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}"
|
|
32345
32090
|
};
|
|
32346
|
-
function
|
|
32347
|
-
push(t, !0), append_styles$1(e, $$css$
|
|
32348
|
-
let n = prop(t, "
|
|
32349
|
-
|
|
32350
|
-
|
|
32351
|
-
e > n && set(s, n, !0), n = e;
|
|
32352
|
-
} };
|
|
32353
|
-
}, l = (e) => `${Math.max(0, e - get(s)) * 120}ms`, u = (e) => {
|
|
32354
|
-
i()?.(e);
|
|
32355
|
-
};
|
|
32356
|
-
var d = {
|
|
32357
|
-
get rows() {
|
|
32091
|
+
function ChatToolStatus(e, t) {
|
|
32092
|
+
push(t, !0), append_styles$1(e, $$css$3);
|
|
32093
|
+
let n = prop(t, "label", 7), i = prop(t, "icon", 7), a = prop(t, "testId", 7), o = prop(t, "classes", 7);
|
|
32094
|
+
var s = {
|
|
32095
|
+
get label() {
|
|
32358
32096
|
return n();
|
|
32359
32097
|
},
|
|
32360
|
-
set
|
|
32098
|
+
set label(e) {
|
|
32361
32099
|
n(e), flushSync();
|
|
32362
32100
|
},
|
|
32363
|
-
get
|
|
32101
|
+
get icon() {
|
|
32364
32102
|
return i();
|
|
32365
32103
|
},
|
|
32366
|
-
set
|
|
32104
|
+
set icon(e) {
|
|
32367
32105
|
i(e), flushSync();
|
|
32368
32106
|
},
|
|
32369
32107
|
get testId() {
|
|
@@ -32378,79 +32116,44 @@ function TaskList(e, t) {
|
|
|
32378
32116
|
set classes(e) {
|
|
32379
32117
|
o(e), flushSync();
|
|
32380
32118
|
}
|
|
32381
|
-
},
|
|
32382
|
-
|
|
32383
|
-
|
|
32384
|
-
|
|
32385
|
-
|
|
32386
|
-
|
|
32387
|
-
|
|
32388
|
-
|
|
32389
|
-
|
|
32390
|
-
|
|
32391
|
-
|
|
32392
|
-
|
|
32393
|
-
|
|
32394
|
-
|
|
32395
|
-
|
|
32396
|
-
|
|
32397
|
-
|
|
32398
|
-
get(t).status === "pending" ? e(a) : get(t).status === "running" ? e(o, 1) : get(t).status === "done" ? e(s, 2) : get(t).status === "failed" && e(c, 3);
|
|
32399
|
-
}), reset(n), template_effect(() => set_attribute(n, "data-status", get(t).status)), append(e, n);
|
|
32400
|
-
}), reset(c);
|
|
32401
|
-
var d = sibling(c, 2), f = child(d), p = child(f, !0);
|
|
32402
|
-
reset(f);
|
|
32403
|
-
var m = sibling(f, 2), h = (e) => {
|
|
32404
|
-
var n = root_5$1();
|
|
32405
|
-
let i;
|
|
32406
|
-
var a = child(n, !0);
|
|
32407
|
-
reset(n), template_effect(() => {
|
|
32408
|
-
i = set_class(n, 1, "row-secondary svelte-1te9fae", null, i, { mono: get(t).mono }), set_text(a, get(t).secondary);
|
|
32409
|
-
}), append(e, n);
|
|
32410
|
-
};
|
|
32411
|
-
if_block(m, (e) => {
|
|
32412
|
-
typeof get(t).secondary == "string" && get(t).secondary.length > 0 && e(h);
|
|
32413
|
-
}), reset(d);
|
|
32414
|
-
var g = sibling(d, 2), _ = (e) => {
|
|
32415
|
-
var i = root_6$1();
|
|
32416
|
-
Button(child(i), spread_props({
|
|
32417
|
-
get text() {
|
|
32418
|
-
return get(t).retryLabel;
|
|
32419
|
-
},
|
|
32420
|
-
size: "sm",
|
|
32421
|
-
onclick: () => u(n)
|
|
32422
|
-
}, () => typeof a() == "string" ? { testId: `${a()}-row-${n}-retry` } : {})), reset(i), append(e, i);
|
|
32423
|
-
};
|
|
32424
|
-
if_block(g, (e) => {
|
|
32425
|
-
get(t).status === "failed" && typeof get(t).retryLabel == "string" && get(t).retryLabel.length > 0 && e(_);
|
|
32426
|
-
}), reset(i), template_effect((e) => {
|
|
32427
|
-
o = set_class(i, 1, "task-row svelte-1te9fae", null, o, { pending: get(t).status === "pending" }), set_attribute(i, "data-pw", typeof a() == "string" ? `${a()}-row-${n}` : null), set_attribute(i, "testid", typeof a() == "string" ? `${a()}-row-${n}` : null), s = set_style(i, "", s, e), set_text(p, get(t).label);
|
|
32428
|
-
}, [() => ({ "animation-delay": l(n) })]), append(e, i);
|
|
32429
|
-
}), reset(f), action(f, (e, t) => c?.(e, t), () => n().length), template_effect(() => {
|
|
32430
|
-
set_class(f, 1, `task-list ${o() ?? "" ?? ""}`, "svelte-1te9fae"), set_attribute(f, "data-pw", typeof a() == "string" ? a() : null), set_attribute(f, "testid", typeof a() == "string" ? a() : null);
|
|
32431
|
-
}), append(e, f), pop(d);
|
|
32432
|
-
}
|
|
32433
|
-
create_custom_element(TaskList, {
|
|
32434
|
-
rows: {},
|
|
32435
|
-
onretry: {},
|
|
32119
|
+
}, c = root$2(), l = child(c), u = child(l), d = (e) => {
|
|
32120
|
+
var t = comment();
|
|
32121
|
+
snippet(first_child(t), i), append(e, t);
|
|
32122
|
+
}, f = (e) => {
|
|
32123
|
+
Loader(e, {});
|
|
32124
|
+
};
|
|
32125
|
+
if_block(u, (e) => {
|
|
32126
|
+
typeof i() == "function" ? e(d) : e(f, -1);
|
|
32127
|
+
}), reset(l);
|
|
32128
|
+
var p = sibling(l, 2), m = child(p, !0);
|
|
32129
|
+
return reset(p), reset(c), template_effect(() => {
|
|
32130
|
+
set_class(c, 1, `chat-tool-status ${o() ?? "" ?? ""}`, "svelte-1s6lfrc"), set_attribute(c, "data-pw", typeof a() == "string" ? a() : null), set_attribute(c, "testid", typeof a() == "string" ? a() : null), set_text(m, n());
|
|
32131
|
+
}), append(e, c), pop(s);
|
|
32132
|
+
}
|
|
32133
|
+
create_custom_element(ChatToolStatus, {
|
|
32134
|
+
label: {},
|
|
32135
|
+
icon: {},
|
|
32436
32136
|
testId: {},
|
|
32437
32137
|
classes: {}
|
|
32438
32138
|
}, [], [], { mode: "open" });
|
|
32439
32139
|
//#endregion
|
|
32440
|
-
//#region src/wc/components/
|
|
32441
|
-
var rest_excludes$
|
|
32140
|
+
//#region src/wc/components/ChatToolStatus.wc.svelte
|
|
32141
|
+
var rest_excludes$4 = new Set([
|
|
32442
32142
|
"$$slots",
|
|
32443
32143
|
"$$events",
|
|
32444
32144
|
"$$legacy",
|
|
32445
32145
|
"$$host"
|
|
32446
32146
|
]);
|
|
32447
|
-
function
|
|
32448
|
-
let n = /* @__PURE__ */ rest_props(t, rest_excludes$
|
|
32449
|
-
|
|
32147
|
+
function ChatToolStatus_wc(e, t) {
|
|
32148
|
+
let n = /* @__PURE__ */ rest_props(t, rest_excludes$4);
|
|
32149
|
+
ChatToolStatus(e, spread_props(() => n));
|
|
32450
32150
|
}
|
|
32451
|
-
customElements.define("sui-
|
|
32452
|
-
|
|
32453
|
-
|
|
32151
|
+
customElements.define("sui-chat-tool-status", create_custom_element(ChatToolStatus_wc, {
|
|
32152
|
+
label: {
|
|
32153
|
+
reflect: !0,
|
|
32154
|
+
type: "String"
|
|
32155
|
+
},
|
|
32156
|
+
icon: { type: "Object" },
|
|
32454
32157
|
testId: {
|
|
32455
32158
|
attribute: "test-id",
|
|
32456
32159
|
type: "String"
|
|
@@ -32458,493 +32161,809 @@ customElements.define("sui-task-list", create_custom_element(TaskList_wc, {
|
|
|
32458
32161
|
classes: { type: "String" }
|
|
32459
32162
|
}, [], [], { mode: "open" }));
|
|
32460
32163
|
//#endregion
|
|
32461
|
-
//#region src/lib/
|
|
32462
|
-
var
|
|
32463
|
-
hash: "svelte-
|
|
32464
|
-
code: "\n @keyframes svelte-uzfrw6-thinking-indicator-shimmer {\n 0% {\n background-position: 200% 0;\n }\n\n 100% {\n background-position: -200% 0;\n }\n }\n\n @keyframes svelte-uzfrw6-thinking-indicator-fade-up {\n from {\n opacity: 0;\n transform: translateY(9px);\n }\n to {\n opacity: 1;\n transform: none;\n }\n }\n\n @keyframes svelte-uzfrw6-thinking-indicator-fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }.thinking-indicator.svelte-uzfrw6 {box-sizing:border-box;width:100%;}.expandable.svelte-uzfrw6 {border-bottom:var(--thinking-indicator-border-bottom, 1px solid #e4e4e7);padding-block:var(--thinking-indicator-padding-block, 0.5rem);margin-bottom:var(--thinking-indicator-margin-bottom, 1rem);min-height:0;transition:min-height 400ms\n var(--thinking-indicator-trace-ease, cubic-bezier(0.23, 1, 0.32, 1));}.expandable.busy.svelte-uzfrw6 {min-height:var(--thinking-indicator-trace-busy-min-height, 0px);}.toggle.svelte-uzfrw6 {width:100%;--button-color: transparent;--button-border: none;--button-box-shadow: none;--button-hover-box-shadow: none;--button-active-box-shadow: none;--button-width: 100%;--button-padding: 0;--button-justify-content: flex-start;--button-text-color: inherit;--button-content-gap: var(--thinking-indicator-header-gap, 0.375rem);}\n\n /* A flex ROW host makes the inner status-row hug its content, so the shimmer\n gradient maps to the text's own width rather than the full container. Neither\n form stretches to fill the width — a trailing gap after a short label is real\n empty space, not a reserved box, so nothing pushes the elapsed counter away. */.status-host.svelte-uzfrw6 {display:flex;align-items:center;gap:var(--thinking-indicator-header-gap, 0.375rem);}.status-row.svelte-uzfrw6 {display:flex;align-items:center;gap:var(--thinking-indicator-gap, 0.25rem);min-width:0;}.avatar.svelte-uzfrw6 {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--thinking-indicator-avatar-size, 1.5rem);height:var(--thinking-indicator-avatar-size, 1.5rem);--loader-width: var(--thinking-indicator-avatar-loader-size, 1rem);--loader-height: var(--thinking-indicator-avatar-loader-size, 1rem);}\n\n /* The chevron lives in the same flex cluster as the label so it hugs the text\n immediately, instead of drifting to the far edge of the toggle button. */.label-cluster.svelte-uzfrw6 {display:flex;align-items:center;gap:var(--thinking-indicator-arrow-gap, 0.125rem);min-width:0;}.status-label.svelte-uzfrw6 {flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left;font-size:var(--thinking-indicator-font-size, 0.75rem);line-height:var(--thinking-indicator-line-height, 1.25rem);color:var(--thinking-indicator-label-color, #858585);background:var(\n --thinking-indicator-shimmer-gradient,\n linear-gradient(90deg, #858585 0%, #bebebe 50%, #858585 100%)\n );background-size:200% 100%;background-clip:text;-webkit-text-fill-color:transparent;\n animation: svelte-uzfrw6-thinking-indicator-shimmer var(--thinking-indicator-shimmer-duration, 2s) linear\n infinite;}\n\n /* A settled label (no live busy phase) holds still instead of shimmering. */.static-label.svelte-uzfrw6 {\n animation: none;-webkit-text-fill-color:var(--thinking-indicator-label-color, #858585);}.arrow.svelte-uzfrw6 {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--thinking-indicator-arrow-size, 1rem);height:var(--thinking-indicator-arrow-size, 1rem);color:var(--thinking-indicator-arrow-color, #7a7a7a);transform:rotate(-90deg);transition:var(--thinking-indicator-arrow-transition, transform 0.2s ease-in-out);}.arrow.svelte-uzfrw6 svg:where(.svelte-uzfrw6) {width:100%;height:100%;}.arrow.expanded.svelte-uzfrw6 {transform:rotate(0deg);}.detail.svelte-uzfrw6 {margin:0;padding-top:var(--thinking-indicator-detail-padding-top, 0.5rem);font-size:var(--thinking-indicator-detail-font-size, 0.875rem);line-height:var(--thinking-indicator-detail-line-height, 1.5);color:var(--thinking-indicator-detail-color, #bebebe);text-align:left;}.elapsed.svelte-uzfrw6 {flex-shrink:0;font-variant-numeric:tabular-nums;color:var(--thinking-indicator-elapsed-color, #9a9a9a);font-size:var(--thinking-indicator-elapsed-font-size, 0.75rem);}\n\n /* ---- Trace body (rows?: ThinkingIndicatorTraceRow[]) ---- */\n\n /* Wrapper exists only to carry `inert` while the Accordion has it collapsed —\n no box of its own, so it can't disturb the detail/trace layout it wraps. */.thinking-indicator-body.svelte-uzfrw6 {display:contents;}.trace-query-wrap.svelte-uzfrw6 {display:inline-flex;margin:var(--thinking-indicator-trace-query-margin, 10px 0 0);--pill-width: auto;--pill-justify-content: flex-start;--pill-cursor: default;--pill-gap: 6px;--pill-background: var(--thinking-indicator-trace-query-background, #f1f1f1);--pill-color: var(--thinking-indicator-trace-query-color, #6b6b6b);--pill-border-radius: var(--thinking-indicator-trace-query-radius, 999px);--pill-padding: var(--thinking-indicator-trace-query-padding, 3px 11px);--pill-font-size: var(--thinking-indicator-trace-query-font-size, 0.8125rem);--pill-font-weight: 400;}.trace-query-wrap.svelte-uzfrw6 svg {width:11px;height:11px;}.trace-body.svelte-uzfrw6 {display:flex;gap:var(--thinking-indicator-trace-body-gap, 12px);padding-top:var(--thinking-indicator-trace-body-padding-top, 10px);}.trace-connector.svelte-uzfrw6 {width:2px;border-radius:999px;background:var(--thinking-indicator-trace-connector-color, #dcdcdc);margin-left:6px;flex-shrink:0;transition:height 500ms var(--thinking-indicator-trace-ease, cubic-bezier(0.23, 1, 0.32, 1));}.trace-rows.svelte-uzfrw6 {flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--thinking-indicator-trace-row-gap, 7px);align-self:flex-start;}.trace-row.svelte-uzfrw6 {display:flex;align-items:baseline;gap:8px;font-size:var(--thinking-indicator-trace-row-font-size, 0.8125rem);color:var(--thinking-indicator-trace-row-color, #2b2b2b);\n animation: svelte-uzfrw6-thinking-indicator-fade-up 320ms\n var(--thinking-indicator-trace-ease, cubic-bezier(0.23, 1, 0.32, 1)) both;text-decoration:none;}.trace-row.prose.svelte-uzfrw6 {color:var(--thinking-indicator-trace-prose-color, #6b6b6b);}.trace-row.selectable.svelte-uzfrw6 {border:none;background:none;font:inherit;text-align:left;padding:3px 6px;margin:-3px -6px;border-radius:var(--thinking-indicator-trace-row-radius, 6px);cursor:pointer;transition:background 150ms ease;width:calc(100% + 12px);}.trace-row.selectable.svelte-uzfrw6:hover {background:var(--thinking-indicator-trace-row-hover-background, #f4f4f4);}.trace-row.selectable.selected.svelte-uzfrw6 {background:var(--thinking-indicator-trace-row-selected-background, #ececec);}.trace-row.linked.svelte-uzfrw6:hover .row-primary:where(.svelte-uzfrw6) {text-decoration:underline;}.row-primary.svelte-uzfrw6 {font-weight:var(--thinking-indicator-trace-row-weight, 500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.row-secondary.svelte-uzfrw6 {color:var(--thinking-indicator-trace-secondary-color, #9a9a9a);font-size:var(--thinking-indicator-trace-secondary-font-size, 0.75rem);white-space:nowrap;}.row-secondary.mono.svelte-uzfrw6 {font-family:var(--thinking-indicator-trace-mono-font, ui-monospace, Menlo, monospace);}\n\n /* Steps kind: a static check icon, or — on the frontier row while busy — the\n library Loader, recoloured/resized to match the row's small icon footprint. */.row-icon.svelte-uzfrw6 {display:inline-flex;align-self:center;width:14px;flex-shrink:0;color:var(--thinking-indicator-trace-icon-color, #9a9a9a);--loader-width: var(--thinking-indicator-trace-spinner-size, 11px);--loader-height: var(--thinking-indicator-trace-spinner-size, 11px);--loader-before-width: 5px;--loader-before-height: 5px;--loader-after-width: 8px;--loader-after-height: 8px;--loader-foreground: var(--thinking-indicator-trace-spinner-color, #6b6b6b);--loader-foreground-end: var(--thinking-indicator-trace-spinner-color-end, transparent);--loader-background: var(--thinking-indicator-trace-spinner-track-color, #dcdcdc);}.row-icon.svelte-uzfrw6 svg:where(.svelte-uzfrw6) {width:12px;height:12px;}.row-badge.svelte-uzfrw6 {width:15px;height:15px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;color:var(--thinking-indicator-trace-badge-check-color, #fff);flex-shrink:0;align-self:center;}.row-badge[data-tone='1'].svelte-uzfrw6 {background:var(--thinking-indicator-trace-tone-1, #2f6fec);}.row-badge[data-tone='2'].svelte-uzfrw6 {background:var(--thinking-indicator-trace-tone-2, #e56d24);}.row-badge[data-tone='3'].svelte-uzfrw6 {background:var(--thinking-indicator-trace-tone-3, #1f7a5f);}.row-badge.svelte-uzfrw6 svg:where(.svelte-uzfrw6) {width:9px;height:9px;}.row-diffstat.svelte-uzfrw6 {margin-left:auto;font-family:var(--thinking-indicator-trace-mono-font, ui-monospace, Menlo, monospace);font-size:0.75rem;font-variant-numeric:tabular-nums;white-space:nowrap;display:inline-flex;gap:5px;}.row-diffstat.svelte-uzfrw6 .added:where(.svelte-uzfrw6) {color:var(--thinking-indicator-trace-added-color, #1f7a5f);}.row-diffstat.svelte-uzfrw6 .removed:where(.svelte-uzfrw6) {color:var(--thinking-indicator-trace-removed-color, #c93f38);}.trace-more.svelte-uzfrw6 {font-size:var(--thinking-indicator-trace-more-font-size, 0.75rem);color:var(--thinking-indicator-trace-more-color, #9a9a9a);padding:6px 0 0 22px;\n animation: svelte-uzfrw6-thinking-indicator-fade-in 300ms ease both;}\n\n @media (prefers-reduced-motion: reduce) {.status-label.svelte-uzfrw6,\n .trace-row.svelte-uzfrw6,\n .trace-more.svelte-uzfrw6 {animation-duration:0.001s;}.expandable.svelte-uzfrw6,\n .trace-connector.svelte-uzfrw6,\n .arrow.svelte-uzfrw6 {transition-duration:0.001s;}.status-label.svelte-uzfrw6 {\n animation: none;-webkit-text-fill-color:var(--thinking-indicator-label-color, #858585);}\n }"
|
|
32164
|
+
//#region src/lib/assets/chat.svg?raw
|
|
32165
|
+
var chat_default = "<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z\" />\n</svg>\n", root_1$2 = /* @__PURE__ */ from_html("<div class=\"panel svelte-15b7gm8\" role=\"dialog\" tabindex=\"-1\"><!></div>"), root_2$2 = /* @__PURE__ */ from_html("<div class=\"panel-anchor svelte-15b7gm8\"><!></div>"), root_3$2 = /* @__PURE__ */ from_html("<div><!> <div class=\"launcher svelte-15b7gm8\"><!></div></div>"), $$css$2 = {
|
|
32166
|
+
hash: "svelte-15b7gm8",
|
|
32167
|
+
code: ".chat-bubble.svelte-15b7gm8 {position:fixed;z-index:var(--chat-bubble-z-index, 1000);transition:var(--chat-bubble-snap-transition, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1));}.chat-bubble.dragging.svelte-15b7gm8 {transition:none;}.chat-bubble[data-position='bottom-right'].svelte-15b7gm8 {right:var(--chat-bubble-offset-x, 24px);bottom:var(--chat-bubble-offset-y, 24px);}.chat-bubble[data-position='bottom-left'].svelte-15b7gm8 {left:var(--chat-bubble-offset-x, 24px);bottom:var(--chat-bubble-offset-y, 24px);}.chat-bubble[data-position='top-right'].svelte-15b7gm8 {right:var(--chat-bubble-offset-x, 24px);top:var(--chat-bubble-offset-y, 24px);}.chat-bubble[data-position='top-left'].svelte-15b7gm8 {left:var(--chat-bubble-offset-x, 24px);top:var(--chat-bubble-offset-y, 24px);}.panel-anchor.svelte-15b7gm8 {position:absolute;--resizable-handle-color: var(--chat-bubble-resize-handle-color, transparent);--resizable-transition: var(\n --chat-bubble-expand-transition,\n width 0.32s cubic-bezier(0.22, 1, 0.36, 1),\n height 0.32s cubic-bezier(0.22, 1, 0.36, 1)\n );}.chat-bubble[data-effective-vertical='bottom'].svelte-15b7gm8 .panel-anchor:where(.svelte-15b7gm8) {bottom:calc(100% + var(--chat-bubble-panel-gap, 16px));}.chat-bubble[data-effective-vertical='top'].svelte-15b7gm8 .panel-anchor:where(.svelte-15b7gm8) {top:calc(100% + var(--chat-bubble-panel-gap, 16px));}.chat-bubble[data-effective-side='right'].svelte-15b7gm8 .panel-anchor:where(.svelte-15b7gm8) {right:0;}.chat-bubble[data-effective-side='left'].svelte-15b7gm8 .panel-anchor:where(.svelte-15b7gm8) {left:0;}.panel.svelte-15b7gm8 {box-sizing:border-box;width:100%;height:100%;max-width:var(--chat-bubble-panel-max-width, calc(100vw - 32px));max-height:var(--chat-bubble-panel-max-height, calc(100dvh - 120px));border-radius:var(--chat-bubble-panel-border-radius, 16px);overflow:hidden;background:var(--chat-bubble-panel-background, #ffffff);box-shadow:var(--chat-bubble-panel-box-shadow, 0 16px 48px rgba(0, 0, 0, 0.22));outline:none;}.launcher.svelte-15b7gm8 {--button-width: var(--chat-bubble-width, var(--chat-bubble-size, 56px));--button-height: var(--chat-bubble-height, var(--chat-bubble-size, 56px));--button-padding: var(--chat-bubble-padding, 16px);--button-border-radius: var(--chat-bubble-border-radius, 50%);--button-color: var(--chat-bubble-background-color, #18181b);--button-text-color: var(--chat-bubble-color, #ffffff);--button-content-gap: 0px;--button-box-shadow: var(--chat-bubble-box-shadow, 0 8px 24px rgba(0, 0, 0, 0.25));--button-hover-color: var(--chat-bubble-hover-background-color, #27272a);}.chat-bubble.is-draggable.svelte-15b7gm8 .launcher:where(.svelte-15b7gm8) {--cursor: grab;touch-action:none;}.chat-bubble.is-draggable.dragging.svelte-15b7gm8 .launcher:where(.svelte-15b7gm8) {--cursor: grabbing;}.launcher.svelte-15b7gm8 svg {height:100%;width:100%;}\n\n @media (prefers-reduced-motion: reduce) {.chat-bubble.svelte-15b7gm8 {transition:none;}\n }"
|
|
32465
32168
|
};
|
|
32466
|
-
function
|
|
32467
|
-
push(t, !0), append_styles$1(e, $$css);
|
|
32468
|
-
let n = prop(t, "
|
|
32469
|
-
|
|
32470
|
-
|
|
32471
|
-
|
|
32472
|
-
|
|
32473
|
-
|
|
32474
|
-
|
|
32475
|
-
|
|
32476
|
-
|
|
32477
|
-
|
|
32478
|
-
|
|
32479
|
-
|
|
32480
|
-
|
|
32481
|
-
|
|
32482
|
-
|
|
32483
|
-
|
|
32169
|
+
function ChatBubble(e, t) {
|
|
32170
|
+
push(t, !0), append_styles$1(e, $$css$2);
|
|
32171
|
+
let n = prop(t, "open", 15, !1), i = prop(t, "position", 7, "bottom-right"), a = prop(t, "label", 7, "Open chat"), o = prop(t, "closeLabel", 7, "Close chat"), s = prop(t, "icon", 7), c = prop(t, "openIcon", 7), l = prop(t, "children", 7), u = prop(t, "draggable", 7, !1), d = prop(t, "dragMode", 7, "snap"), f = prop(t, "dragX", 15, 0), p = prop(t, "dragY", 15, 0), m = prop(t, "resizable", 7, !1), h = prop(t, "panelWidth", 15, 380), g = prop(t, "panelHeight", 15, 600), _ = prop(t, "minPanelWidth", 7, 280), v = prop(t, "minPanelHeight", 7, 360), y = prop(t, "expanded", 15, !1), b = prop(t, "expandedPanelWidth", 15, 600), x = prop(t, "expandedPanelHeight", 15, 760), S = prop(t, "onopen", 7), C = prop(t, "onclose", 7), w = prop(t, "ontoggle", 7), T = prop(t, "testId", 7), E = prop(t, "classes", 7), D = 4;
|
|
32172
|
+
function O(e, t) {
|
|
32173
|
+
return e === "bottom" ? t === "right" ? [
|
|
32174
|
+
"top",
|
|
32175
|
+
"left",
|
|
32176
|
+
"top-left"
|
|
32177
|
+
] : [
|
|
32178
|
+
"top",
|
|
32179
|
+
"right",
|
|
32180
|
+
"top-right"
|
|
32181
|
+
] : t === "right" ? [
|
|
32182
|
+
"bottom",
|
|
32183
|
+
"left",
|
|
32184
|
+
"bottom-left"
|
|
32185
|
+
] : [
|
|
32186
|
+
"bottom",
|
|
32187
|
+
"right",
|
|
32188
|
+
"bottom-right"
|
|
32189
|
+
];
|
|
32190
|
+
}
|
|
32191
|
+
let k = /* @__PURE__ */ state(null), A = /* @__PURE__ */ state(null), j = /* @__PURE__ */ state(null), M = /* @__PURE__ */ state(null), N = /* @__PURE__ */ state(null), P = /* @__PURE__ */ state(null), F = /* @__PURE__ */ state(null), I = /* @__PURE__ */ state(null), L = !1, R = /* @__PURE__ */ user_derived(() => get(M) !== null && get(M).moved), z = /* @__PURE__ */ user_derived(() => get(N) ?? (i().endsWith("right") ? "right" : "left")), B = /* @__PURE__ */ user_derived(() => get(P) ?? (i().startsWith("top") ? "top" : "bottom")), V = /* @__PURE__ */ user_derived(() => O(get(B), get(z))), H = /* @__PURE__ */ user_derived(() => y() ? b() : h()), U = /* @__PURE__ */ user_derived(() => y() ? x() : g());
|
|
32192
|
+
function W(e) {
|
|
32193
|
+
y() ? b(e) : h(e);
|
|
32194
|
+
}
|
|
32195
|
+
function G(e) {
|
|
32196
|
+
y() ? x(e) : g(e);
|
|
32197
|
+
}
|
|
32198
|
+
function K() {
|
|
32199
|
+
if (get(k) === null) return 24;
|
|
32200
|
+
let e = getComputedStyle(get(k)).getPropertyValue("--chat-bubble-offset-x").trim(), t = Number.parseFloat(e);
|
|
32201
|
+
return Number.isNaN(t) ? 24 : t;
|
|
32202
|
+
}
|
|
32203
|
+
function q(e, t, n, i, a, o) {
|
|
32204
|
+
let s = 16, c = 8;
|
|
32205
|
+
set(I, Math.max(0, o === "bottom" ? t - 16 - 8 : window.innerHeight - i - 16 - 8), !0), set(F, Math.max(0, a === "right" ? n - 8 : window.innerWidth - e - 8), !0);
|
|
32206
|
+
}
|
|
32207
|
+
function J(e, t, n, i) {
|
|
32208
|
+
if (typeof window > "u") return;
|
|
32209
|
+
let a = (e + n) / 2 < window.innerWidth / 2 ? "left" : "right", o = (t + i) / 2 < window.innerHeight / 2 ? "top" : "bottom";
|
|
32210
|
+
set(N, a, !0), set(P, o, !0), q(e, t, n, i, a, o);
|
|
32211
|
+
}
|
|
32212
|
+
async function Y(e) {
|
|
32213
|
+
if (e !== n()) {
|
|
32214
|
+
if (e && get(j) !== null) {
|
|
32215
|
+
let e = get(j).getBoundingClientRect();
|
|
32216
|
+
J(e.left, e.top, e.right, e.bottom);
|
|
32484
32217
|
}
|
|
32485
|
-
|
|
32486
|
-
|
|
32487
|
-
|
|
32488
|
-
|
|
32218
|
+
n(e), w()?.(n()), n() ? (S()?.(), await tick(), get(A)?.focus()) : (C()?.(), get(j)?.querySelector("button")?.focus());
|
|
32219
|
+
}
|
|
32220
|
+
}
|
|
32221
|
+
function X() {
|
|
32222
|
+
if (L) {
|
|
32223
|
+
L = !1;
|
|
32489
32224
|
return;
|
|
32490
32225
|
}
|
|
32491
|
-
|
|
32492
|
-
|
|
32493
|
-
|
|
32494
|
-
|
|
32495
|
-
|
|
32496
|
-
|
|
32497
|
-
|
|
32498
|
-
|
|
32499
|
-
|
|
32500
|
-
|
|
32501
|
-
|
|
32502
|
-
|
|
32226
|
+
Y(!n());
|
|
32227
|
+
}
|
|
32228
|
+
function Z(e) {
|
|
32229
|
+
if (!u() || get(j) === null) return;
|
|
32230
|
+
L = !1;
|
|
32231
|
+
let t = get(j).getBoundingClientRect();
|
|
32232
|
+
set(M, {
|
|
32233
|
+
startX: e.clientX,
|
|
32234
|
+
startY: e.clientY,
|
|
32235
|
+
baseX: f(),
|
|
32236
|
+
baseY: p(),
|
|
32237
|
+
moved: !1,
|
|
32238
|
+
left0: t.left - f(),
|
|
32239
|
+
top0: t.top - p(),
|
|
32240
|
+
width: t.width,
|
|
32241
|
+
height: t.height
|
|
32242
|
+
}, !0);
|
|
32243
|
+
}
|
|
32244
|
+
function Q(e, t, n) {
|
|
32245
|
+
if (typeof window > "u") return {
|
|
32246
|
+
x: t,
|
|
32247
|
+
y: n
|
|
32503
32248
|
};
|
|
32504
|
-
|
|
32505
|
-
|
|
32506
|
-
|
|
32507
|
-
|
|
32508
|
-
}
|
|
32509
|
-
}
|
|
32510
|
-
|
|
32511
|
-
|
|
32512
|
-
|
|
32513
|
-
get
|
|
32249
|
+
let i = t, a = n, o = e.left0 + t, s = e.top0 + n;
|
|
32250
|
+
return o < 0 ? i = -e.left0 : o + e.width > window.innerWidth && (i = window.innerWidth - e.width - e.left0), s < 0 ? a = -e.top0 : s + e.height > window.innerHeight && (a = window.innerHeight - e.height - e.top0), {
|
|
32251
|
+
x: i,
|
|
32252
|
+
y: a
|
|
32253
|
+
};
|
|
32254
|
+
}
|
|
32255
|
+
function $(e) {
|
|
32256
|
+
if (get(M) === null) return;
|
|
32257
|
+
let t = e.clientX - get(M).startX, i = e.clientY - get(M).startY;
|
|
32258
|
+
if (!get(M).moved && Math.hypot(t, i) < 4) return;
|
|
32259
|
+
get(M).moved = !0;
|
|
32260
|
+
let a = Q(get(M), get(M).baseX + t, get(M).baseY + i);
|
|
32261
|
+
if (f(a.x), p(a.y), n() && get(N) !== null && get(P) !== null) {
|
|
32262
|
+
let e = get(M).left0 + f(), t = get(M).top0 + p();
|
|
32263
|
+
q(e, t, e + get(M).width, t + get(M).height, get(N), get(P));
|
|
32264
|
+
}
|
|
32265
|
+
}
|
|
32266
|
+
function ee() {
|
|
32267
|
+
if (get(M) === null) return;
|
|
32268
|
+
let e = get(M);
|
|
32269
|
+
if (set(M, null), !e.moved || (L = !0, typeof window > "u")) return;
|
|
32270
|
+
if (d() === "snap") {
|
|
32271
|
+
let t = K();
|
|
32272
|
+
f(e.left0 + f() + e.width / 2 < window.innerWidth / 2 ? t - e.left0 : window.innerWidth - t - e.width - e.left0);
|
|
32273
|
+
}
|
|
32274
|
+
let t = e.left0 + f(), n = e.top0 + p();
|
|
32275
|
+
J(t, n, t + e.width, n + e.height);
|
|
32276
|
+
}
|
|
32277
|
+
function te(e) {
|
|
32278
|
+
e.key === "Escape" && (e.stopPropagation(), Y(!1));
|
|
32279
|
+
}
|
|
32280
|
+
var ne = {
|
|
32281
|
+
get open() {
|
|
32514
32282
|
return n();
|
|
32515
32283
|
},
|
|
32516
|
-
set
|
|
32284
|
+
set open(e = !1) {
|
|
32517
32285
|
n(e), flushSync();
|
|
32518
32286
|
},
|
|
32519
|
-
get
|
|
32287
|
+
get position() {
|
|
32520
32288
|
return i();
|
|
32521
32289
|
},
|
|
32522
|
-
set
|
|
32290
|
+
set position(e = "bottom-right") {
|
|
32523
32291
|
i(e), flushSync();
|
|
32524
32292
|
},
|
|
32525
|
-
get
|
|
32293
|
+
get label() {
|
|
32526
32294
|
return a();
|
|
32527
32295
|
},
|
|
32528
|
-
set
|
|
32296
|
+
set label(e = "Open chat") {
|
|
32529
32297
|
a(e), flushSync();
|
|
32530
32298
|
},
|
|
32531
|
-
get
|
|
32299
|
+
get closeLabel() {
|
|
32532
32300
|
return o();
|
|
32533
32301
|
},
|
|
32534
|
-
set
|
|
32302
|
+
set closeLabel(e = "Close chat") {
|
|
32535
32303
|
o(e), flushSync();
|
|
32536
32304
|
},
|
|
32537
|
-
get
|
|
32305
|
+
get icon() {
|
|
32538
32306
|
return s();
|
|
32539
32307
|
},
|
|
32540
|
-
set
|
|
32308
|
+
set icon(e) {
|
|
32541
32309
|
s(e), flushSync();
|
|
32542
32310
|
},
|
|
32543
|
-
get
|
|
32311
|
+
get openIcon() {
|
|
32544
32312
|
return c();
|
|
32545
32313
|
},
|
|
32546
|
-
set
|
|
32314
|
+
set openIcon(e) {
|
|
32547
32315
|
c(e), flushSync();
|
|
32548
32316
|
},
|
|
32549
|
-
get
|
|
32317
|
+
get children() {
|
|
32550
32318
|
return l();
|
|
32551
32319
|
},
|
|
32552
|
-
set
|
|
32320
|
+
set children(e) {
|
|
32553
32321
|
l(e), flushSync();
|
|
32554
32322
|
},
|
|
32555
|
-
get
|
|
32323
|
+
get draggable() {
|
|
32556
32324
|
return u();
|
|
32557
32325
|
},
|
|
32558
|
-
set
|
|
32326
|
+
set draggable(e = !1) {
|
|
32559
32327
|
u(e), flushSync();
|
|
32560
32328
|
},
|
|
32561
|
-
get
|
|
32329
|
+
get dragMode() {
|
|
32562
32330
|
return d();
|
|
32563
32331
|
},
|
|
32564
|
-
set
|
|
32332
|
+
set dragMode(e = "snap") {
|
|
32565
32333
|
d(e), flushSync();
|
|
32566
32334
|
},
|
|
32567
|
-
get
|
|
32335
|
+
get dragX() {
|
|
32568
32336
|
return f();
|
|
32569
32337
|
},
|
|
32570
|
-
set
|
|
32338
|
+
set dragX(e = 0) {
|
|
32571
32339
|
f(e), flushSync();
|
|
32572
32340
|
},
|
|
32573
|
-
get
|
|
32341
|
+
get dragY() {
|
|
32574
32342
|
return p();
|
|
32575
32343
|
},
|
|
32576
|
-
set
|
|
32344
|
+
set dragY(e = 0) {
|
|
32577
32345
|
p(e), flushSync();
|
|
32578
32346
|
},
|
|
32579
|
-
get
|
|
32347
|
+
get resizable() {
|
|
32580
32348
|
return m();
|
|
32581
32349
|
},
|
|
32582
|
-
set
|
|
32350
|
+
set resizable(e = !1) {
|
|
32583
32351
|
m(e), flushSync();
|
|
32584
32352
|
},
|
|
32585
|
-
get
|
|
32353
|
+
get panelWidth() {
|
|
32586
32354
|
return h();
|
|
32587
32355
|
},
|
|
32588
|
-
set
|
|
32356
|
+
set panelWidth(e = 380) {
|
|
32589
32357
|
h(e), flushSync();
|
|
32590
32358
|
},
|
|
32591
|
-
get
|
|
32359
|
+
get panelHeight() {
|
|
32592
32360
|
return g();
|
|
32593
32361
|
},
|
|
32594
|
-
set
|
|
32362
|
+
set panelHeight(e = 600) {
|
|
32595
32363
|
g(e), flushSync();
|
|
32596
32364
|
},
|
|
32597
|
-
get
|
|
32365
|
+
get minPanelWidth() {
|
|
32598
32366
|
return _();
|
|
32599
32367
|
},
|
|
32600
|
-
set
|
|
32368
|
+
set minPanelWidth(e = 280) {
|
|
32601
32369
|
_(e), flushSync();
|
|
32602
32370
|
},
|
|
32603
|
-
get
|
|
32371
|
+
get minPanelHeight() {
|
|
32604
32372
|
return v();
|
|
32605
32373
|
},
|
|
32606
|
-
set
|
|
32374
|
+
set minPanelHeight(e = 360) {
|
|
32607
32375
|
v(e), flushSync();
|
|
32608
32376
|
},
|
|
32609
|
-
get
|
|
32377
|
+
get expanded() {
|
|
32610
32378
|
return y();
|
|
32611
32379
|
},
|
|
32612
|
-
set
|
|
32380
|
+
set expanded(e = !1) {
|
|
32613
32381
|
y(e), flushSync();
|
|
32614
32382
|
},
|
|
32615
|
-
get
|
|
32383
|
+
get expandedPanelWidth() {
|
|
32616
32384
|
return b();
|
|
32617
32385
|
},
|
|
32618
|
-
set
|
|
32386
|
+
set expandedPanelWidth(e = 600) {
|
|
32619
32387
|
b(e), flushSync();
|
|
32620
32388
|
},
|
|
32621
|
-
get
|
|
32389
|
+
get expandedPanelHeight() {
|
|
32622
32390
|
return x();
|
|
32623
32391
|
},
|
|
32624
|
-
set
|
|
32392
|
+
set expandedPanelHeight(e = 760) {
|
|
32625
32393
|
x(e), flushSync();
|
|
32626
32394
|
},
|
|
32627
|
-
get
|
|
32395
|
+
get onopen() {
|
|
32628
32396
|
return S();
|
|
32629
32397
|
},
|
|
32630
|
-
set
|
|
32398
|
+
set onopen(e) {
|
|
32631
32399
|
S(e), flushSync();
|
|
32632
32400
|
},
|
|
32633
|
-
get
|
|
32401
|
+
get onclose() {
|
|
32634
32402
|
return C();
|
|
32635
32403
|
},
|
|
32636
|
-
set
|
|
32404
|
+
set onclose(e) {
|
|
32637
32405
|
C(e), flushSync();
|
|
32638
32406
|
},
|
|
32639
|
-
get
|
|
32407
|
+
get ontoggle() {
|
|
32640
32408
|
return w();
|
|
32641
32409
|
},
|
|
32642
|
-
set
|
|
32410
|
+
set ontoggle(e) {
|
|
32643
32411
|
w(e), flushSync();
|
|
32644
32412
|
},
|
|
32645
|
-
get
|
|
32413
|
+
get testId() {
|
|
32646
32414
|
return T();
|
|
32647
32415
|
},
|
|
32648
|
-
set
|
|
32416
|
+
set testId(e) {
|
|
32649
32417
|
T(e), flushSync();
|
|
32418
|
+
},
|
|
32419
|
+
get classes() {
|
|
32420
|
+
return E();
|
|
32421
|
+
},
|
|
32422
|
+
set classes(e) {
|
|
32423
|
+
E(e), flushSync();
|
|
32650
32424
|
}
|
|
32651
|
-
},
|
|
32652
|
-
|
|
32653
|
-
|
|
32654
|
-
|
|
32425
|
+
}, re = root_3$2();
|
|
32426
|
+
event("pointermove", $window, $), event("pointerup", $window, ee);
|
|
32427
|
+
let ie, ae;
|
|
32428
|
+
var oe = child(re), se = (e) => {
|
|
32429
|
+
var t = root_2$2();
|
|
32430
|
+
let n;
|
|
32431
|
+
var i = child(t), o = () => get(H), s = W, c = () => get(U), u = G;
|
|
32655
32432
|
{
|
|
32656
|
-
let e = /* @__PURE__ */ user_derived(() =>
|
|
32657
|
-
|
|
32658
|
-
|
|
32659
|
-
get ariaExpanded() {
|
|
32660
|
-
return a();
|
|
32661
|
-
},
|
|
32662
|
-
get testId() {
|
|
32433
|
+
let e = /* @__PURE__ */ user_derived(() => !m()), t = /* @__PURE__ */ user_derived(() => get(F) ?? Infinity), n = /* @__PURE__ */ user_derived(() => get(I) ?? Infinity);
|
|
32434
|
+
Resizable(i, {
|
|
32435
|
+
get disabled() {
|
|
32663
32436
|
return get(e);
|
|
32664
32437
|
},
|
|
32438
|
+
get width() {
|
|
32439
|
+
return o();
|
|
32440
|
+
},
|
|
32441
|
+
set width(e) {
|
|
32442
|
+
s(e);
|
|
32443
|
+
},
|
|
32444
|
+
get height() {
|
|
32445
|
+
return c();
|
|
32446
|
+
},
|
|
32447
|
+
set height(e) {
|
|
32448
|
+
u(e);
|
|
32449
|
+
},
|
|
32450
|
+
get minWidth() {
|
|
32451
|
+
return _();
|
|
32452
|
+
},
|
|
32453
|
+
get minHeight() {
|
|
32454
|
+
return v();
|
|
32455
|
+
},
|
|
32456
|
+
get maxWidth() {
|
|
32457
|
+
return get(t);
|
|
32458
|
+
},
|
|
32459
|
+
get maxHeight() {
|
|
32460
|
+
return get(n);
|
|
32461
|
+
},
|
|
32462
|
+
get handles() {
|
|
32463
|
+
return get(V);
|
|
32464
|
+
},
|
|
32665
32465
|
children: (e, t) => {
|
|
32666
|
-
var
|
|
32667
|
-
var t = root(), n = child(t), i = (e) => {
|
|
32668
|
-
var t = comment();
|
|
32669
|
-
snippet(first_child(t), l), append(e, t);
|
|
32670
|
-
}, a = (e) => {
|
|
32671
|
-
Loader(e, {});
|
|
32672
|
-
};
|
|
32673
|
-
if_block(n, (e) => {
|
|
32674
|
-
l() ? e(i) : e(a, -1);
|
|
32675
|
-
}), reset(t), append(e, t);
|
|
32676
|
-
};
|
|
32677
|
-
if_block(c, (e) => {
|
|
32678
|
-
(l() || get(k)) && e(f);
|
|
32679
|
-
});
|
|
32680
|
-
var p = sibling(c, 2), h = child(p);
|
|
32681
|
-
let g;
|
|
32682
|
-
var _ = child(h, !0);
|
|
32683
|
-
reset(h);
|
|
32684
|
-
var v = sibling(h, 2);
|
|
32685
|
-
let y;
|
|
32686
|
-
var b = child(v), x = (e) => {
|
|
32466
|
+
var n = root_1$2(), i = child(n), o = (e) => {
|
|
32687
32467
|
var t = comment();
|
|
32688
|
-
snippet(first_child(t),
|
|
32689
|
-
}, S = (e) => {
|
|
32690
|
-
append(e, root_1());
|
|
32691
|
-
};
|
|
32692
|
-
if_block(b, (e) => {
|
|
32693
|
-
u() ? e(x) : e(S, -1);
|
|
32694
|
-
}), reset(v), reset(p), reset(o);
|
|
32695
|
-
var C = sibling(o, 2), w = (e) => {
|
|
32696
|
-
var t = root_2(), n = child(t);
|
|
32697
|
-
reset(t), template_effect(() => {
|
|
32698
|
-
set_attribute(t, "data-pw", typeof d() == "string" ? `${d()}-elapsed` : null), set_attribute(t, "testid", typeof d() == "string" ? `${d()}-elapsed` : null), set_text(n, `${get(M) ?? ""}s`);
|
|
32699
|
-
}), append(e, t);
|
|
32468
|
+
snippet(first_child(t), l), append(e, t);
|
|
32700
32469
|
};
|
|
32701
|
-
if_block(
|
|
32702
|
-
|
|
32703
|
-
}), template_effect(() =>
|
|
32704
|
-
g = set_class(h, 1, "status-label svelte-uzfrw6", null, g, { "static-label": !get(k) }), set_attribute(h, "data-pw", m() ?? null), set_text(_, n()), y = set_class(v, 1, "arrow svelte-uzfrw6", null, y, { expanded: a() });
|
|
32705
|
-
}), append(e, i);
|
|
32470
|
+
if_block(i, (e) => {
|
|
32471
|
+
typeof l() == "function" && e(o);
|
|
32472
|
+
}), reset(n), bind_this(n, (e) => set(A, e), () => get(A)), template_effect(() => set_attribute(n, "aria-label", a())), delegated("keydown", n, te), append(e, n);
|
|
32706
32473
|
},
|
|
32707
32474
|
$$slots: { default: !0 }
|
|
32708
32475
|
});
|
|
32709
32476
|
}
|
|
32710
|
-
reset(
|
|
32711
|
-
get
|
|
32712
|
-
|
|
32477
|
+
reset(t), template_effect(() => n = set_style(t, "", n, {
|
|
32478
|
+
"--resizable-max-width": get(F) === null ? null : `${get(F)}px`,
|
|
32479
|
+
"--resizable-max-height": get(I) === null ? null : `${get(I)}px`
|
|
32480
|
+
})), append(e, t);
|
|
32481
|
+
};
|
|
32482
|
+
if_block(oe, (e) => {
|
|
32483
|
+
n() && e(se);
|
|
32484
|
+
});
|
|
32485
|
+
var ce = sibling(oe, 2), le = child(ce);
|
|
32486
|
+
{
|
|
32487
|
+
let e = /* @__PURE__ */ user_derived(() => n() ? o() : a());
|
|
32488
|
+
Button(le, {
|
|
32489
|
+
onclick: X,
|
|
32490
|
+
get ariaLabel() {
|
|
32491
|
+
return get(e);
|
|
32492
|
+
},
|
|
32493
|
+
get ariaExpanded() {
|
|
32494
|
+
return n();
|
|
32713
32495
|
},
|
|
32714
32496
|
children: (e, t) => {
|
|
32715
|
-
var
|
|
32716
|
-
var t =
|
|
32717
|
-
var t =
|
|
32718
|
-
|
|
32719
|
-
|
|
32720
|
-
|
|
32721
|
-
|
|
32722
|
-
leadingIcon: (e) => {
|
|
32723
|
-
append(e, root_4());
|
|
32724
|
-
},
|
|
32725
|
-
$$slots: { leadingIcon: !0 }
|
|
32726
|
-
}), reset(t), append(e, t);
|
|
32727
|
-
};
|
|
32728
|
-
if_block(n, (e) => {
|
|
32729
|
-
_() === "search" && typeof y() == "string" && y().length > 0 && e(i);
|
|
32730
|
-
});
|
|
32731
|
-
var a = sibling(n, 2), o = child(a);
|
|
32732
|
-
let s;
|
|
32733
|
-
var c = sibling(o, 2);
|
|
32734
|
-
each(c, 21, () => get(D), index, (e, t, n) => {
|
|
32735
|
-
var i = comment(), a = first_child(i), o = (e) => {
|
|
32736
|
-
var i = root_10();
|
|
32737
|
-
let a, o;
|
|
32738
|
-
var s = child(i), c = child(s, !0);
|
|
32739
|
-
reset(s);
|
|
32740
|
-
var l = sibling(s, 2), u = (e) => {
|
|
32741
|
-
var n = root_6();
|
|
32742
|
-
let i;
|
|
32743
|
-
var a = child(n, !0);
|
|
32744
|
-
reset(n), template_effect(() => {
|
|
32745
|
-
i = set_class(n, 1, "row-secondary svelte-uzfrw6", null, i, { mono: get(t).mono }), set_text(a, get(t).secondary);
|
|
32746
|
-
}), append(e, n);
|
|
32747
|
-
};
|
|
32748
|
-
if_block(l, (e) => {
|
|
32749
|
-
get(t).secondary && e(u);
|
|
32750
|
-
});
|
|
32751
|
-
var d = sibling(l, 2), f = (e) => {
|
|
32752
|
-
var n = root_9(), i = child(n), a = (e) => {
|
|
32753
|
-
var n = root_7(), i = child(n);
|
|
32754
|
-
reset(n), template_effect(() => set_text(i, `+${get(t).added ?? ""}`)), append(e, n);
|
|
32755
|
-
};
|
|
32756
|
-
if_block(i, (e) => {
|
|
32757
|
-
typeof get(t).added == "number" && e(a);
|
|
32758
|
-
});
|
|
32759
|
-
var o = sibling(i, 2), s = (e) => {
|
|
32760
|
-
var n = root_8(), i = child(n);
|
|
32761
|
-
reset(n), template_effect(() => set_text(i, `−${get(t).removed ?? ""}`)), append(e, n);
|
|
32762
|
-
};
|
|
32763
|
-
if_block(o, (e) => {
|
|
32764
|
-
typeof get(t).removed == "number" && e(s);
|
|
32765
|
-
}), reset(n), append(e, n);
|
|
32766
|
-
};
|
|
32767
|
-
if_block(d, (e) => {
|
|
32768
|
-
(typeof get(t).added == "number" || typeof get(t).removed == "number") && e(f);
|
|
32769
|
-
}), reset(i), template_effect((e) => {
|
|
32770
|
-
a = set_class(i, 1, "trace-row selectable svelte-uzfrw6", null, a, { selected: S() === n }), set_attribute(i, "aria-pressed", S() === n), o = set_style(i, "", o, e), set_text(c, get(t).primary);
|
|
32771
|
-
}, [() => ({ "animation-delay": W(n) })]), delegated("click", i, () => G(n)), append(e, i);
|
|
32772
|
-
}, s = (e) => {
|
|
32773
|
-
var i = root_12();
|
|
32774
|
-
let a;
|
|
32775
|
-
var o = child(i);
|
|
32776
|
-
set_attribute(o, "data-tone", n % 3 + 1);
|
|
32777
|
-
var s = sibling(o, 2), c = child(s, !0);
|
|
32778
|
-
reset(s);
|
|
32779
|
-
var l = sibling(s, 2), u = (e) => {
|
|
32780
|
-
var n = root_11(), i = child(n, !0);
|
|
32781
|
-
reset(n), template_effect(() => set_text(i, get(t).secondary)), append(e, n);
|
|
32782
|
-
};
|
|
32783
|
-
if_block(l, (e) => {
|
|
32784
|
-
get(t).secondary && e(u);
|
|
32785
|
-
}), reset(i), template_effect((e) => {
|
|
32786
|
-
set_attribute(i, "href", get(t).href), a = set_style(i, "", a, e), set_text(c, get(t).primary);
|
|
32787
|
-
}, [() => ({ "animation-delay": W(n) })]), append(e, i);
|
|
32788
|
-
}, c = (e) => {
|
|
32789
|
-
var i = root_17();
|
|
32790
|
-
let a, o;
|
|
32791
|
-
var s = child(i), c = (e) => {
|
|
32792
|
-
var t = root_14(), i = child(t), a = (e) => {
|
|
32793
|
-
Loader(e, {});
|
|
32794
|
-
}, o = (e) => {
|
|
32795
|
-
append(e, root_13());
|
|
32796
|
-
};
|
|
32797
|
-
if_block(i, (e) => {
|
|
32798
|
-
v() && n === get(D).length - 1 ? e(a) : e(o, -1);
|
|
32799
|
-
}), reset(t), append(e, t);
|
|
32800
|
-
}, l = (e) => {
|
|
32801
|
-
var t = root_15();
|
|
32802
|
-
set_attribute(t, "data-tone", n % 3 + 1), append(e, t);
|
|
32803
|
-
};
|
|
32804
|
-
if_block(s, (e) => {
|
|
32805
|
-
_() === "steps" ? e(c) : _() === "search" && e(l, 1);
|
|
32806
|
-
});
|
|
32807
|
-
var u = sibling(s, 2), d = (e) => {
|
|
32808
|
-
var n = text();
|
|
32809
|
-
template_effect(() => set_text(n, get(t).primary)), append(e, n);
|
|
32810
|
-
}, f = (e) => {
|
|
32811
|
-
var n = root_16(), i = child(n, !0);
|
|
32812
|
-
reset(n), template_effect(() => set_text(i, get(t).primary)), append(e, n);
|
|
32813
|
-
};
|
|
32814
|
-
if_block(u, (e) => {
|
|
32815
|
-
_() === "reasoning" ? e(d) : e(f, -1);
|
|
32816
|
-
});
|
|
32817
|
-
var p = sibling(u, 2), m = (e) => {
|
|
32818
|
-
var n = root_6();
|
|
32819
|
-
let i;
|
|
32820
|
-
var a = child(n, !0);
|
|
32821
|
-
reset(n), template_effect(() => {
|
|
32822
|
-
i = set_class(n, 1, "row-secondary svelte-uzfrw6", null, i, { mono: get(t).mono }), set_text(a, get(t).secondary);
|
|
32823
|
-
}), append(e, n);
|
|
32824
|
-
};
|
|
32825
|
-
if_block(p, (e) => {
|
|
32826
|
-
get(t).secondary && e(m);
|
|
32827
|
-
});
|
|
32828
|
-
var h = sibling(p, 2), g = (e) => {
|
|
32829
|
-
var n = root_9(), i = child(n), a = (e) => {
|
|
32830
|
-
var n = root_7(), i = child(n);
|
|
32831
|
-
reset(n), template_effect(() => set_text(i, `+${get(t).added ?? ""}`)), append(e, n);
|
|
32832
|
-
};
|
|
32833
|
-
if_block(i, (e) => {
|
|
32834
|
-
typeof get(t).added == "number" && e(a);
|
|
32835
|
-
});
|
|
32836
|
-
var o = sibling(i, 2), s = (e) => {
|
|
32837
|
-
var n = root_8(), i = child(n);
|
|
32838
|
-
reset(n), template_effect(() => set_text(i, `−${get(t).removed ?? ""}`)), append(e, n);
|
|
32839
|
-
};
|
|
32840
|
-
if_block(o, (e) => {
|
|
32841
|
-
typeof get(t).removed == "number" && e(s);
|
|
32842
|
-
}), reset(n), append(e, n);
|
|
32843
|
-
};
|
|
32844
|
-
if_block(h, (e) => {
|
|
32845
|
-
(typeof get(t).added == "number" || typeof get(t).removed == "number") && e(g);
|
|
32846
|
-
}), reset(i), template_effect((e) => {
|
|
32847
|
-
a = set_class(i, 1, "trace-row svelte-uzfrw6", null, a, { prose: _() === "reasoning" }), o = set_style(i, "", o, e);
|
|
32848
|
-
}, [() => ({ "animation-delay": W(n) })]), append(e, i);
|
|
32849
|
-
};
|
|
32850
|
-
if_block(a, (e) => {
|
|
32851
|
-
_() === "coding" && x() ? e(o) : _() === "search" && typeof get(t).href == "string" ? e(s, 1) : e(c, -1);
|
|
32852
|
-
}), append(e, i);
|
|
32853
|
-
}), reset(c), action(c, (e, t) => U?.(e, t), () => get(D).length), effect(() => bind_element_size(c, "clientHeight", (e) => set(K, e))), reset(a);
|
|
32854
|
-
var l = sibling(a, 2), u = (e) => {
|
|
32855
|
-
var t = root_18(), n = child(t, !0);
|
|
32856
|
-
reset(t), template_effect(() => set_text(n, b())), append(e, t);
|
|
32497
|
+
var i = comment(), a = first_child(i), o = (e) => {
|
|
32498
|
+
var t = comment(), n = first_child(t), i = (e) => {
|
|
32499
|
+
var t = comment();
|
|
32500
|
+
snippet(first_child(t), c), append(e, t);
|
|
32501
|
+
}, a = (e) => {
|
|
32502
|
+
var t = comment();
|
|
32503
|
+
html(first_child(t), () => close_default), append(e, t);
|
|
32857
32504
|
};
|
|
32858
|
-
if_block(
|
|
32859
|
-
|
|
32860
|
-
}), template_effect(() => s = set_style(o, "", s, { height: `${get(K) ?? ""}px` })), append(e, t);
|
|
32861
|
-
}, c = (e) => {
|
|
32862
|
-
var t = root_20(), n = child(t, !0);
|
|
32863
|
-
reset(t), template_effect(() => {
|
|
32864
|
-
set_attribute(t, "data-pw", p() ?? (d() && `${d()}-detail`) ?? null), set_text(n, i());
|
|
32505
|
+
if_block(n, (e) => {
|
|
32506
|
+
typeof c() == "function" ? e(i) : e(a, -1);
|
|
32865
32507
|
}), append(e, t);
|
|
32508
|
+
}, l = (e) => {
|
|
32509
|
+
var t = comment();
|
|
32510
|
+
snippet(first_child(t), s), append(e, t);
|
|
32511
|
+
}, u = (e) => {
|
|
32512
|
+
var t = comment();
|
|
32513
|
+
html(first_child(t), () => chat_default), append(e, t);
|
|
32866
32514
|
};
|
|
32867
|
-
if_block(
|
|
32868
|
-
|
|
32869
|
-
}),
|
|
32515
|
+
if_block(a, (e) => {
|
|
32516
|
+
n() ? e(o) : typeof s() == "function" ? e(l, 1) : e(u, -1);
|
|
32517
|
+
}), append(e, i);
|
|
32870
32518
|
},
|
|
32871
32519
|
$$slots: { default: !0 }
|
|
32872
|
-
})
|
|
32873
|
-
|
|
32874
|
-
|
|
32875
|
-
|
|
32876
|
-
|
|
32877
|
-
|
|
32878
|
-
|
|
32879
|
-
|
|
32880
|
-
|
|
32881
|
-
|
|
32882
|
-
|
|
32883
|
-
|
|
32884
|
-
|
|
32885
|
-
|
|
32520
|
+
});
|
|
32521
|
+
}
|
|
32522
|
+
return reset(ce), bind_this(ce, (e) => set(j, e), () => get(j)), reset(re), bind_this(re, (e) => set(k, e), () => get(k)), template_effect(() => {
|
|
32523
|
+
ie = set_class(re, 1, `chat-bubble ${E() ?? "" ?? ""}`, "svelte-15b7gm8", ie, {
|
|
32524
|
+
"is-draggable": u(),
|
|
32525
|
+
dragging: get(R)
|
|
32526
|
+
}), set_attribute(re, "data-position", i()), set_attribute(re, "data-effective-side", get(z)), set_attribute(re, "data-effective-vertical", get(B)), set_attribute(re, "data-expanded", y()), set_attribute(re, "data-pw", typeof T() == "string" ? T() : null), set_attribute(re, "testid", typeof T() == "string" ? T() : null), ae = set_style(re, "", ae, { transform: u() ? `translate(${f()}px, ${p()}px)` : null });
|
|
32527
|
+
}), delegated("pointerdown", ce, Z), append(e, re), pop(ne);
|
|
32528
|
+
}
|
|
32529
|
+
delegate(["keydown", "pointerdown"]), create_custom_element(ChatBubble, {
|
|
32530
|
+
open: {},
|
|
32531
|
+
position: {},
|
|
32532
|
+
label: {},
|
|
32533
|
+
closeLabel: {},
|
|
32534
|
+
icon: {},
|
|
32535
|
+
openIcon: {},
|
|
32536
|
+
children: {},
|
|
32537
|
+
draggable: {},
|
|
32538
|
+
dragMode: {},
|
|
32539
|
+
dragX: {},
|
|
32540
|
+
dragY: {},
|
|
32541
|
+
resizable: {},
|
|
32542
|
+
panelWidth: {},
|
|
32543
|
+
panelHeight: {},
|
|
32544
|
+
minPanelWidth: {},
|
|
32545
|
+
minPanelHeight: {},
|
|
32546
|
+
expanded: {},
|
|
32547
|
+
expandedPanelWidth: {},
|
|
32548
|
+
expandedPanelHeight: {},
|
|
32549
|
+
onopen: {},
|
|
32550
|
+
onclose: {},
|
|
32551
|
+
ontoggle: {},
|
|
32552
|
+
testId: {},
|
|
32553
|
+
classes: {}
|
|
32554
|
+
}, [], [], { mode: "open" });
|
|
32555
|
+
//#endregion
|
|
32556
|
+
//#region src/wc/components/ChatBubble.wc.svelte
|
|
32557
|
+
var rest_excludes$3 = new Set([
|
|
32558
|
+
"$$slots",
|
|
32559
|
+
"$$events",
|
|
32560
|
+
"$$legacy",
|
|
32561
|
+
"$$host"
|
|
32562
|
+
]);
|
|
32563
|
+
function ChatBubble_wc(e, t) {
|
|
32564
|
+
let n = /* @__PURE__ */ rest_props(t, rest_excludes$3);
|
|
32565
|
+
ChatBubble(e, spread_props(() => n));
|
|
32566
|
+
}
|
|
32567
|
+
customElements.define("sui-chat-bubble", create_custom_element(ChatBubble_wc, {
|
|
32568
|
+
open: {
|
|
32569
|
+
reflect: !0,
|
|
32570
|
+
type: "Boolean"
|
|
32571
|
+
},
|
|
32572
|
+
position: {
|
|
32573
|
+
reflect: !0,
|
|
32574
|
+
type: "String"
|
|
32575
|
+
},
|
|
32576
|
+
label: {
|
|
32577
|
+
reflect: !0,
|
|
32578
|
+
type: "String"
|
|
32579
|
+
},
|
|
32580
|
+
closeLabel: {
|
|
32581
|
+
attribute: "close-label",
|
|
32582
|
+
type: "String"
|
|
32583
|
+
},
|
|
32584
|
+
icon: { type: "Object" },
|
|
32585
|
+
openIcon: { type: "Object" },
|
|
32586
|
+
children: { type: "Object" },
|
|
32587
|
+
draggable: {
|
|
32588
|
+
reflect: !0,
|
|
32589
|
+
type: "Boolean"
|
|
32590
|
+
},
|
|
32591
|
+
dragMode: {
|
|
32592
|
+
attribute: "drag-mode",
|
|
32593
|
+
type: "String"
|
|
32594
|
+
},
|
|
32595
|
+
dragX: {
|
|
32596
|
+
attribute: "drag-x",
|
|
32597
|
+
type: "Number"
|
|
32598
|
+
},
|
|
32599
|
+
dragY: {
|
|
32600
|
+
attribute: "drag-y",
|
|
32601
|
+
type: "Number"
|
|
32602
|
+
},
|
|
32603
|
+
resizable: {
|
|
32604
|
+
reflect: !0,
|
|
32605
|
+
type: "Boolean"
|
|
32606
|
+
},
|
|
32607
|
+
panelWidth: {
|
|
32608
|
+
attribute: "panel-width",
|
|
32609
|
+
type: "Number"
|
|
32610
|
+
},
|
|
32611
|
+
panelHeight: {
|
|
32612
|
+
attribute: "panel-height",
|
|
32613
|
+
type: "Number"
|
|
32614
|
+
},
|
|
32615
|
+
minPanelWidth: {
|
|
32616
|
+
attribute: "min-panel-width",
|
|
32617
|
+
type: "Number"
|
|
32618
|
+
},
|
|
32619
|
+
minPanelHeight: {
|
|
32620
|
+
attribute: "min-panel-height",
|
|
32621
|
+
type: "Number"
|
|
32622
|
+
},
|
|
32623
|
+
expanded: {
|
|
32624
|
+
reflect: !0,
|
|
32625
|
+
type: "Boolean"
|
|
32626
|
+
},
|
|
32627
|
+
expandedPanelWidth: {
|
|
32628
|
+
attribute: "expanded-panel-width",
|
|
32629
|
+
type: "Number"
|
|
32630
|
+
},
|
|
32631
|
+
expandedPanelHeight: {
|
|
32632
|
+
attribute: "expanded-panel-height",
|
|
32633
|
+
type: "Number"
|
|
32634
|
+
},
|
|
32635
|
+
testId: {
|
|
32636
|
+
attribute: "test-id",
|
|
32637
|
+
type: "String"
|
|
32638
|
+
},
|
|
32639
|
+
classes: { type: "String" },
|
|
32640
|
+
onopen: { type: "Object" },
|
|
32641
|
+
onclose: { type: "Object" },
|
|
32642
|
+
ontoggle: { type: "Object" }
|
|
32643
|
+
}, [], [], { mode: "open" }));
|
|
32644
|
+
//#endregion
|
|
32645
|
+
//#region src/lib/ToolCallLog/ToolCallLog.svelte
|
|
32646
|
+
var diffstatBadges = (e, t = noop) => {
|
|
32647
|
+
var n = root_2$1(), i = first_child(n), a = (e) => {
|
|
32648
|
+
var n = root$1(), i = child(n);
|
|
32649
|
+
{
|
|
32650
|
+
let e = /* @__PURE__ */ user_derived(() => `+${t().added}`);
|
|
32651
|
+
Pill(i, { get text() {
|
|
32652
|
+
return get(e);
|
|
32653
|
+
} });
|
|
32654
|
+
}
|
|
32655
|
+
reset(n), append(e, n);
|
|
32656
|
+
};
|
|
32657
|
+
if_block(i, (e) => {
|
|
32658
|
+
typeof t().added == "number" && e(a);
|
|
32659
|
+
});
|
|
32660
|
+
var o = sibling(i, 2), s = (e) => {
|
|
32661
|
+
var n = root_1$1(), i = child(n);
|
|
32662
|
+
{
|
|
32663
|
+
let e = /* @__PURE__ */ user_derived(() => `−${t().removed}`);
|
|
32664
|
+
Pill(i, { get text() {
|
|
32665
|
+
return get(e);
|
|
32666
|
+
} });
|
|
32667
|
+
}
|
|
32668
|
+
reset(n), append(e, n);
|
|
32669
|
+
};
|
|
32670
|
+
if_block(o, (e) => {
|
|
32671
|
+
typeof t().removed == "number" && e(s);
|
|
32672
|
+
}), append(e, n);
|
|
32673
|
+
}, root$1 = /* @__PURE__ */ from_html("<span class=\"diffstat-pill diffstat-added svelte-1vnfzde\"><!></span>"), root_1$1 = /* @__PURE__ */ from_html("<span class=\"diffstat-pill diffstat-removed svelte-1vnfzde\"><!></span>"), root_2$1 = /* @__PURE__ */ from_html("<!> <!>", 1), root_3$1 = /* @__PURE__ */ from_html("<span class=\"chip-spinner svelte-1vnfzde\" aria-hidden=\"true\"><!></span>"), root_4$1 = /* @__PURE__ */ from_html("<span> </span>"), root_5$1 = /* @__PURE__ */ from_html("<span class=\"diffstat chip-diffstat svelte-1vnfzde\"><!></span>"), root_6$1 = /* @__PURE__ */ from_html("<span class=\"diffstat popover-diffstat svelte-1vnfzde\"><!></span>"), root_7$1 = /* @__PURE__ */ from_html("<div class=\"chip-popover svelte-1vnfzde\" role=\"dialog\" tabindex=\"-1\"><p> </p> <!></div>"), root_8$1 = /* @__PURE__ */ from_html("<div class=\"chip-wrap\"><button type=\"button\"><!> <b class=\"chip-label svelte-1vnfzde\"> </b> <!> <!></button> <!></div>"), root_9 = /* @__PURE__ */ from_html("<div></div>"), $$css$1 = {
|
|
32674
|
+
hash: "svelte-1vnfzde",
|
|
32675
|
+
code: "\n @keyframes svelte-1vnfzde-tool-call-log-fade-up {\n from {\n opacity: 0;\n transform: translateY(9px);\n }\n to {\n opacity: 1;\n transform: none;\n }\n }.tool-call-log.svelte-1vnfzde {display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--tool-call-log-gap, 8px);}\n\n /* Bespoke <button> markup (Pill's root is a non-interactive <div> and can't carry\n aria-expanded/button semantics — see docs), but its sizing recipe is deliberately\n pulled from Pill's own tokens (line-height, cursor) so it reads as the same family\n of control as the diffstat Pill badges nested inside it. */.chip.svelte-1vnfzde {display:inline-flex;align-items:center;gap:var(--tool-call-log-chip-gap, 6px);padding:var(--tool-call-log-chip-padding, 6px 10px);background:var(--tool-call-log-chip-background, #fafafa);border:var(--tool-call-log-chip-border, 1px solid #e4e4e7);border-radius:var(--tool-call-log-chip-radius, 6px);font:inherit;font-size:var(--tool-call-log-font-size, 0.8125rem);line-height:var(--tool-call-log-chip-line-height, 1);color:var(--tool-call-log-label-color, #2b2b2b);cursor:var(--tool-call-log-chip-cursor, pointer);max-width:100%;\n animation: svelte-1vnfzde-tool-call-log-fade-up 320ms var(--tool-call-log-ease, cubic-bezier(0.23, 1, 0.32, 1))\n both;transition:background 150ms ease,\n border-color 150ms ease;}.chip.svelte-1vnfzde:hover {background:var(--tool-call-log-chip-hover-background, #f1f1f1);}.chip[aria-expanded='true'].svelte-1vnfzde {border-color:var(--tool-call-log-chip-open-border-color, #c7c7cc);}.chip.error.svelte-1vnfzde {color:var(--tool-call-log-error-color, #c93f38);border-color:var(--tool-call-log-error-border-color, #f2b8b5);background:var(--tool-call-log-error-background, #fdf1f0);}.chip.error.svelte-1vnfzde:hover {background:var(--tool-call-log-error-hover-background, #fbe6e5);}.chip-label.svelte-1vnfzde {font-weight:var(--tool-call-log-label-weight, 500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.chip-meta.svelte-1vnfzde {color:var(--tool-call-log-meta-color, #9a9a9a);font-size:var(--tool-call-log-meta-font-size, 0.75rem);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.chip-meta.mono.svelte-1vnfzde {font-family:var(--tool-call-log-mono-font, ui-monospace, Menlo, monospace);}\n\n /* Sizes and colors the nested library Loader via CSS custom-property\n inheritance (no :global() needed — Loader is a plain DOM descendant of\n this span, same pattern as ThinkingIndicator's `.avatar`). Loader itself\n ships no literal fallback for --loader-foreground/-foreground-end/\n -background, so all three are set explicitly here rather than left to\n chance. */.chip-spinner.svelte-1vnfzde {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;--loader-width: var(--tool-call-log-spinner-size, 11px);--loader-height: var(--tool-call-log-spinner-size, 11px);--loader-before-width: 5px;--loader-before-height: 5px;--loader-after-width: 8px;--loader-after-height: 8px;--loader-foreground: var(--tool-call-log-spinner-color, #6b6b6b);--loader-foreground-end: var(--tool-call-log-spinner-track-color, #dcdcdc);--loader-background: var(--tool-call-log-chip-background, #fafafa);}.diffstat.svelte-1vnfzde {display:inline-flex;align-items:center;gap:4px;font-variant-numeric:tabular-nums;flex-shrink:0;}.chip-diffstat.svelte-1vnfzde {margin-left:var(--tool-call-log-diffstat-margin, 2px);}\n\n /* Pill customized into the small diffstat badge via its own --pill-* tokens\n (inherited the same way — Pill is a plain descendant of this span). Pill\n defaults `cursor` to `pointer` even when non-interactive, so it is pinned\n back to `default` here: these badges carry no onclick. */.diffstat-pill.svelte-1vnfzde {display:inline-flex;--pill-padding: var(--tool-call-log-diffstat-padding, 0 4px);--pill-border-radius: var(--tool-call-log-diffstat-radius, 4px);--pill-font-size: var(--tool-call-log-diffstat-font-size, 0.6875rem);--pill-font-family: var(--tool-call-log-mono-font, ui-monospace, Menlo, monospace);--pill-line-height: 1;--pill-cursor: default;}.diffstat-added.svelte-1vnfzde {--pill-background: var(--tool-call-log-added-background, #e4f5ee);--pill-color: var(--tool-call-log-added-color, #1f7a5f);}.diffstat-removed.svelte-1vnfzde {--pill-background: var(--tool-call-log-removed-background, #fbeceb);--pill-color: var(--tool-call-log-removed-color, #c93f38);}\n\n /* Always portaled to document.body (see `popoverPortal`), so `position:\n fixed` is the baseline rather than a portal-only override — left/top/\n z-index come from the inline `popoverStyle`, computed against the live\n anchor rect. */.chip-popover.svelte-1vnfzde {position:fixed;z-index:var(--tool-call-log-popover-z-index, 1000);display:flex;flex-direction:column;gap:var(--tool-call-log-popover-gap, 6px);min-width:var(--tool-call-log-popover-min-width, 220px);max-width:var(--tool-call-log-popover-max-width, 340px);padding:var(--tool-call-log-popover-padding, 10px 12px);background:var(--tool-call-log-popover-background, #ffffff);border:var(--tool-call-log-popover-border, 1px solid #e4e4e7);border-radius:var(--tool-call-log-popover-radius, 10px);box-shadow:var(--tool-call-log-popover-shadow, 0 10px 30px rgba(0, 0, 0, 0.12));\n animation: svelte-1vnfzde-tool-call-log-fade-up 200ms var(--tool-call-log-ease, cubic-bezier(0.23, 1, 0.32, 1))\n both;}.popover-detail.svelte-1vnfzde {margin:0;color:var(--tool-call-log-popover-color, #2b2b2b);font-size:var(--tool-call-log-popover-font-size, 0.8125rem);white-space:pre-wrap;overflow-wrap:anywhere;}.popover-detail.mono.svelte-1vnfzde {font-family:var(--tool-call-log-mono-font, ui-monospace, Menlo, monospace);}\n\n @media (prefers-reduced-motion: reduce) {.chip.svelte-1vnfzde,\n .chip-popover.svelte-1vnfzde {animation-duration:0.001s;}\n /* Loader's own spin keyframe lives on its internally-scoped `.loader`\n class, which this file cannot reach with a plain scoped selector —\n :global() is required to disable it, same pattern as `.pill-dismiss\n :global(svg)` elsewhere in the library. Loader ships no\n reduced-motion guard of its own. */.chip-spinner.svelte-1vnfzde .loader {\n animation: none;}\n }"
|
|
32676
|
+
};
|
|
32677
|
+
function ToolCallLog(e, t) {
|
|
32678
|
+
push(t, !0), append_styles$1(e, $$css$1);
|
|
32679
|
+
let n = prop(t, "chips", 7), i = prop(t, "onchipclick", 7), a = prop(t, "testId", 7), o = prop(t, "classes", 7), s = /* @__PURE__ */ state(null), c = /* @__PURE__ */ state(0), l = /* @__PURE__ */ state(proxy([])), u = /* @__PURE__ */ state(null), d = /* @__PURE__ */ state(0), f = /* @__PURE__ */ state(0), p = /* @__PURE__ */ state(0), m = 6, h = (e, t) => {
|
|
32680
|
+
let n = t;
|
|
32681
|
+
return { update(e) {
|
|
32682
|
+
e > n && set(c, n, !0), n = e;
|
|
32683
|
+
} };
|
|
32684
|
+
}, g = (e) => `${Math.max(0, e - get(c)) * 120}ms`, _ = (e, t) => {
|
|
32685
|
+
if (typeof t.detail == "string" && t.detail.length > 0) {
|
|
32686
|
+
set(s, get(s) === e ? null : e, !0);
|
|
32687
|
+
return;
|
|
32688
|
+
}
|
|
32689
|
+
i()?.(e, t);
|
|
32690
|
+
}, v = (e) => {
|
|
32691
|
+
e.key === "Escape" && get(s) !== null && set(s, null);
|
|
32692
|
+
}, y = /* @__PURE__ */ user_derived(() => {
|
|
32693
|
+
if (get(s) === null || typeof window > "u") return "";
|
|
32694
|
+
let e = get(l)[get(s)];
|
|
32695
|
+
if (e == null) return "";
|
|
32696
|
+
get(p);
|
|
32697
|
+
let t = e.getBoundingClientRect(), { left: n, top: i } = computeMenuDropdownPosition({
|
|
32698
|
+
container: {
|
|
32699
|
+
left: t.left,
|
|
32700
|
+
right: t.right,
|
|
32701
|
+
top: t.top,
|
|
32702
|
+
bottom: t.bottom
|
|
32703
|
+
},
|
|
32704
|
+
dropdown: {
|
|
32705
|
+
width: get(d),
|
|
32706
|
+
height: get(f)
|
|
32707
|
+
},
|
|
32708
|
+
placement: "bottom-left",
|
|
32709
|
+
gap: 6,
|
|
32710
|
+
viewport: {
|
|
32711
|
+
width: window.innerWidth,
|
|
32712
|
+
height: window.innerHeight
|
|
32713
|
+
}
|
|
32714
|
+
});
|
|
32715
|
+
return `position:fixed;left:${n}px;top:${i}px;right:auto;bottom:auto;margin:0;z-index:var(--tool-call-log-popover-z-index,1000);`;
|
|
32716
|
+
}), b = (e) => {
|
|
32717
|
+
document.body.appendChild(e);
|
|
32718
|
+
let t = null, n = () => {
|
|
32719
|
+
t === null && (t = requestAnimationFrame(() => {
|
|
32720
|
+
t = null, set(p, get(p) + 1);
|
|
32721
|
+
}));
|
|
32722
|
+
};
|
|
32723
|
+
return window.addEventListener("scroll", n, {
|
|
32724
|
+
capture: !0,
|
|
32725
|
+
passive: !0
|
|
32726
|
+
}), window.addEventListener("resize", n), { destroy() {
|
|
32727
|
+
window.removeEventListener("scroll", n, { capture: !0 }), window.removeEventListener("resize", n), t !== null && cancelAnimationFrame(t), e.remove();
|
|
32728
|
+
} };
|
|
32729
|
+
}, x = (e) => {
|
|
32730
|
+
let t = e.target;
|
|
32731
|
+
if (get(s) === null || !(t instanceof Node)) return;
|
|
32732
|
+
let n = get(l).some((e) => e !== null && e.contains(t)), i = get(u) !== null && get(u).contains(t);
|
|
32733
|
+
!n && !i && set(s, null);
|
|
32734
|
+
};
|
|
32735
|
+
onMount(() => (document.addEventListener("click", x), () => {
|
|
32736
|
+
document.removeEventListener("click", x);
|
|
32737
|
+
}));
|
|
32738
|
+
var S = {
|
|
32739
|
+
get chips() {
|
|
32740
|
+
return n();
|
|
32741
|
+
},
|
|
32742
|
+
set chips(e) {
|
|
32743
|
+
n(e), flushSync();
|
|
32744
|
+
},
|
|
32745
|
+
get onchipclick() {
|
|
32746
|
+
return i();
|
|
32747
|
+
},
|
|
32748
|
+
set onchipclick(e) {
|
|
32749
|
+
i(e), flushSync();
|
|
32750
|
+
},
|
|
32751
|
+
get testId() {
|
|
32752
|
+
return a();
|
|
32753
|
+
},
|
|
32754
|
+
set testId(e) {
|
|
32755
|
+
a(e), flushSync();
|
|
32756
|
+
},
|
|
32757
|
+
get classes() {
|
|
32758
|
+
return o();
|
|
32759
|
+
},
|
|
32760
|
+
set classes(e) {
|
|
32761
|
+
o(e), flushSync();
|
|
32762
|
+
}
|
|
32763
|
+
}, C = root_9();
|
|
32764
|
+
return event("keydown", $window, v), each(C, 21, n, index, (e, t, n) => {
|
|
32765
|
+
let i = /* @__PURE__ */ user_derived(() => get(t).detail), o = /* @__PURE__ */ user_derived(() => typeof get(i) == "string" && get(i).length > 0), c = /* @__PURE__ */ user_derived(() => typeof get(t).added == "number" || typeof get(t).removed == "number");
|
|
32766
|
+
var p = root_8$1(), m = child(p);
|
|
32767
|
+
let h, v;
|
|
32768
|
+
var x = child(m), S = (e) => {
|
|
32769
|
+
var t = root_3$1();
|
|
32770
|
+
Loader(child(t), {}), reset(t), append(e, t);
|
|
32886
32771
|
};
|
|
32887
|
-
if_block(
|
|
32888
|
-
|
|
32889
|
-
})
|
|
32890
|
-
|
|
32891
|
-
|
|
32892
|
-
|
|
32893
|
-
|
|
32894
|
-
|
|
32895
|
-
|
|
32896
|
-
|
|
32897
|
-
|
|
32772
|
+
if_block(x, (e) => {
|
|
32773
|
+
get(t).state === "running" && e(S);
|
|
32774
|
+
});
|
|
32775
|
+
var C = sibling(x, 2), w = child(C, !0);
|
|
32776
|
+
reset(C);
|
|
32777
|
+
var T = sibling(C, 2), E = (e) => {
|
|
32778
|
+
var n = root_4$1();
|
|
32779
|
+
let i;
|
|
32780
|
+
var a = child(n, !0);
|
|
32781
|
+
reset(n), template_effect(() => {
|
|
32782
|
+
i = set_class(n, 1, "chip-meta svelte-1vnfzde", null, i, { mono: get(t).mono }), set_text(a, get(t).meta);
|
|
32783
|
+
}), append(e, n);
|
|
32898
32784
|
};
|
|
32899
|
-
if_block(
|
|
32900
|
-
|
|
32901
|
-
})
|
|
32902
|
-
var
|
|
32903
|
-
|
|
32904
|
-
|
|
32905
|
-
reset(f), reset(i);
|
|
32906
|
-
var _ = sibling(i, 2), v = (e) => {
|
|
32907
|
-
var t = root_2(), n = child(t);
|
|
32908
|
-
reset(t), template_effect(() => {
|
|
32909
|
-
set_attribute(t, "data-pw", typeof d() == "string" ? `${d()}-elapsed` : null), set_attribute(t, "testid", typeof d() == "string" ? `${d()}-elapsed` : null), set_text(n, `${get(M) ?? ""}s`);
|
|
32910
|
-
}), append(e, t);
|
|
32785
|
+
if_block(T, (e) => {
|
|
32786
|
+
typeof get(t).meta == "string" && get(t).meta.length > 0 && e(E);
|
|
32787
|
+
});
|
|
32788
|
+
var D = sibling(T, 2), O = (e) => {
|
|
32789
|
+
var n = root_5$1();
|
|
32790
|
+
diffstatBadges(child(n), () => get(t)), reset(n), append(e, n);
|
|
32911
32791
|
};
|
|
32912
|
-
if_block(
|
|
32913
|
-
|
|
32914
|
-
}), reset(
|
|
32915
|
-
|
|
32916
|
-
|
|
32917
|
-
|
|
32918
|
-
|
|
32919
|
-
|
|
32920
|
-
|
|
32792
|
+
if_block(D, (e) => {
|
|
32793
|
+
get(c) && e(O);
|
|
32794
|
+
}), reset(m), bind_this(m, (e, t) => get(l)[t] = e, (e) => get(l)?.[e], () => [n]);
|
|
32795
|
+
var k = sibling(m, 2), A = (e) => {
|
|
32796
|
+
var o = root_7$1(), s = child(o);
|
|
32797
|
+
let l;
|
|
32798
|
+
var p = child(s, !0);
|
|
32799
|
+
reset(s);
|
|
32800
|
+
var m = sibling(s, 2), h = (e) => {
|
|
32801
|
+
var n = root_6$1();
|
|
32802
|
+
diffstatBadges(child(n), () => get(t)), reset(n), append(e, n);
|
|
32803
|
+
};
|
|
32804
|
+
if_block(m, (e) => {
|
|
32805
|
+
get(c) && e(h);
|
|
32806
|
+
}), reset(o), bind_this(o, (e) => set(u, e), () => get(u)), effect(() => bind_element_size(o, "clientWidth", (e) => set(d, e))), effect(() => bind_element_size(o, "clientHeight", (e) => set(f, e))), action(o, (e) => b?.(e)), template_effect(() => {
|
|
32807
|
+
set_attribute(o, "aria-label", `${get(t).label} details`), set_style(o, get(y)), set_attribute(o, "data-pw", typeof a() == "string" ? `${a()}-popover-${n}` : null), set_attribute(o, "testid", typeof a() == "string" ? `${a()}-popover-${n}` : null), l = set_class(s, 1, "popover-detail svelte-1vnfzde", null, l, { mono: get(t).mono }), set_text(p, get(i));
|
|
32808
|
+
}), append(e, o);
|
|
32809
|
+
};
|
|
32810
|
+
if_block(k, (e) => {
|
|
32811
|
+
get(o) && get(s) === n && e(A);
|
|
32812
|
+
}), reset(p), template_effect((e) => {
|
|
32813
|
+
h = set_class(m, 1, "chip svelte-1vnfzde", null, h, { error: get(t).state === "error" }), set_attribute(m, "aria-expanded", get(o) ? get(s) === n : null), set_attribute(m, "data-pw", typeof a() == "string" ? `${a()}-chip-${n}` : null), set_attribute(m, "testid", typeof a() == "string" ? `${a()}-chip-${n}` : null), v = set_style(m, "", v, e), set_text(w, get(t).label);
|
|
32814
|
+
}, [() => ({ "animation-delay": g(n) })]), delegated("click", m, () => _(n, get(t))), append(e, p);
|
|
32815
|
+
}), reset(C), action(C, (e, t) => h?.(e, t), () => n().length), template_effect(() => {
|
|
32816
|
+
set_class(C, 1, `tool-call-log ${o() ?? "" ?? ""}`, "svelte-1vnfzde"), set_attribute(C, "data-pw", typeof a() == "string" ? a() : null), set_attribute(C, "testid", typeof a() == "string" ? a() : null);
|
|
32817
|
+
}), append(e, C), pop(S);
|
|
32921
32818
|
}
|
|
32922
|
-
delegate(["click"]), create_custom_element(
|
|
32923
|
-
|
|
32924
|
-
|
|
32925
|
-
expanded: {},
|
|
32926
|
-
variant: {},
|
|
32927
|
-
showElapsed: {},
|
|
32928
|
-
onToggle: {},
|
|
32929
|
-
avatar: {},
|
|
32930
|
-
toggleIcon: {},
|
|
32819
|
+
delegate(["click"]), create_custom_element(ToolCallLog, {
|
|
32820
|
+
chips: {},
|
|
32821
|
+
onchipclick: {},
|
|
32931
32822
|
testId: {},
|
|
32932
|
-
|
|
32933
|
-
|
|
32934
|
-
|
|
32935
|
-
|
|
32823
|
+
classes: {}
|
|
32824
|
+
}, [], [], { mode: "open" });
|
|
32825
|
+
//#endregion
|
|
32826
|
+
//#region src/wc/components/ToolCallLog.wc.svelte
|
|
32827
|
+
var rest_excludes$2 = new Set([
|
|
32828
|
+
"$$slots",
|
|
32829
|
+
"$$events",
|
|
32830
|
+
"$$legacy",
|
|
32831
|
+
"$$host"
|
|
32832
|
+
]);
|
|
32833
|
+
function ToolCallLog_wc(e, t) {
|
|
32834
|
+
let n = /* @__PURE__ */ rest_props(t, rest_excludes$2);
|
|
32835
|
+
ToolCallLog(e, spread_props(() => n));
|
|
32836
|
+
}
|
|
32837
|
+
customElements.define("sui-tool-call-log", create_custom_element(ToolCallLog_wc, {
|
|
32838
|
+
chips: { type: "Array" },
|
|
32839
|
+
onchipclick: { type: "Object" },
|
|
32840
|
+
testId: {
|
|
32841
|
+
attribute: "test-id",
|
|
32842
|
+
type: "String"
|
|
32843
|
+
},
|
|
32844
|
+
classes: { type: "String" }
|
|
32845
|
+
}, [], [], { mode: "open" }));
|
|
32846
|
+
//#endregion
|
|
32847
|
+
//#region src/lib/TaskList/TaskList.svelte
|
|
32848
|
+
var root = /* @__PURE__ */ from_html("<span class=\"glyph-dot svelte-1te9fae\"></span>"), root_1 = /* @__PURE__ */ from_html("<span class=\"glyph-spinner svelte-1te9fae\"><!></span>"), root_2 = /* @__PURE__ */ from_html("<span class=\"glyph-check svelte-1te9fae\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-1te9fae\"><path d=\"M20 6 9 17l-5-5\"></path></svg></span>"), root_3 = /* @__PURE__ */ from_html("<span class=\"glyph-x svelte-1te9fae\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"svelte-1te9fae\"><path d=\"M6 6l12 12M18 6 6 18\"></path></svg></span>"), root_4 = /* @__PURE__ */ from_html("<span class=\"glyph-inner svelte-1te9fae\" aria-hidden=\"true\"><!></span>"), root_5 = /* @__PURE__ */ from_html("<span> </span>"), root_6 = /* @__PURE__ */ from_html("<div class=\"row-retry svelte-1te9fae\"><!></div>"), root_7 = /* @__PURE__ */ from_html("<div><span class=\"row-glyph svelte-1te9fae\"><!></span> <span class=\"row-text svelte-1te9fae\"><span class=\"row-label svelte-1te9fae\"> </span> <!></span> <!></div>"), root_8 = /* @__PURE__ */ from_html("<div></div>"), $$css = {
|
|
32849
|
+
hash: "svelte-1te9fae",
|
|
32850
|
+
code: "\n @keyframes svelte-1te9fae-task-list-fade-up {\n from {\n opacity: 0;\n transform: translateY(9px);\n }\n to {\n opacity: 1;\n transform: none;\n }\n }\n @keyframes svelte-1te9fae-task-list-glyph-fade {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n @keyframes svelte-1te9fae-task-list-check-pop {\n from {\n opacity: 0;\n transform: scale(0.5);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n }.task-list.svelte-1te9fae {display:flex;flex-direction:column;gap:var(--task-list-row-gap, 10px);}.task-row.svelte-1te9fae {display:flex;align-items:baseline;gap:var(--task-list-row-inline-gap, 10px);\n animation: svelte-1te9fae-task-list-fade-up 320ms var(--task-list-ease, cubic-bezier(0.23, 1, 0.32, 1)) both;}.row-glyph.svelte-1te9fae {display:inline-flex;align-self:center;align-items:center;justify-content:center;width:var(--task-list-glyph-size, 16px);height:var(--task-list-glyph-size, 16px);flex-shrink:0;}.glyph-inner.svelte-1te9fae {display:inline-flex;align-items:center;justify-content:center;\n animation: svelte-1te9fae-task-list-glyph-fade 150ms ease both;}.glyph-dot.svelte-1te9fae {width:6px;height:6px;border-radius:50%;background:var(--task-list-dot-color, #9a9a9a);}\n\n /* Loader draws its own ring via a rotating gradient rather than a bordered arc, so the old\n track/spinner two-tone maps onto the gradient's start/end stops: --loader-foreground is the\n bright leading edge, --loader-foreground-end the dimmer trailing one. The size vars are\n calc()'d off a single token so before/after stay proportional if a consumer overrides it. */.glyph-spinner.svelte-1te9fae {display:inline-flex;--loader-foreground: var(--task-list-spinner-color, #6b6b6b);--loader-foreground-end: var(--task-list-spinner-track-color, #dcdcdc);--loader-width: var(--task-list-spinner-size, 11px);--loader-height: var(--task-list-spinner-size, 11px);--loader-before-width: calc(var(--task-list-spinner-size, 11px) * 0.5);--loader-before-height: calc(var(--task-list-spinner-size, 11px) * 0.5);--loader-after-width: calc(var(--task-list-spinner-size, 11px) * 0.75);--loader-after-height: calc(var(--task-list-spinner-size, 11px) * 0.75);}.glyph-check.svelte-1te9fae,\n .glyph-x.svelte-1te9fae {display:inline-flex;}.glyph-check.svelte-1te9fae svg:where(.svelte-1te9fae),\n .glyph-x.svelte-1te9fae svg:where(.svelte-1te9fae) {width:12px;height:12px;}.glyph-check.svelte-1te9fae {color:var(--task-list-done-color, #6b6b6b);\n animation: svelte-1te9fae-task-list-check-pop 200ms var(--task-list-ease, cubic-bezier(0.23, 1, 0.32, 1)) both;}.glyph-x.svelte-1te9fae {color:var(--task-list-error-color, #c93f38);}.row-text.svelte-1te9fae {flex:1;min-width:0;display:flex;align-items:baseline;gap:var(--task-list-text-gap, 8px);}.task-row.pending.svelte-1te9fae .row-text:where(.svelte-1te9fae) {opacity:var(--task-list-pending-opacity, 0.55);}.row-label.svelte-1te9fae {font-size:var(--task-list-row-font-size, 0.875rem);font-weight:var(--task-list-row-weight, 500);color:var(--task-list-row-color, #2b2b2b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.row-secondary.svelte-1te9fae {font-size:var(--task-list-secondary-font-size, 0.75rem);color:var(--task-list-secondary-color, #9a9a9a);white-space:nowrap;}.row-secondary.mono.svelte-1te9fae {font-family:var(--task-list-mono-font, ui-monospace, Menlo, monospace);}\n\n /* Themes the embedded Button into the compact error-tinted pill via its own custom\n properties — these inherit down into Button's internal rules regardless of the\n component boundary, the same wrapper-div pattern Banner uses for its dismiss button. */.row-retry.svelte-1te9fae {margin-left:auto;flex-shrink:0;align-self:center;--button-color: var(--task-list-retry-background, rgba(201, 63, 56, 0.12));--button-text-color: var(--task-list-retry-color, #c93f38);--button-hover-color: var(--task-list-retry-hover-background, rgba(201, 63, 56, 0.2));--button-hover-text-color: var(--task-list-retry-color, #c93f38);--button-border: none;--button-padding: var(--task-list-retry-padding, 3px 10px);--button-border-radius: var(--task-list-retry-radius, 999px);--button-font-size: var(--task-list-retry-font-size, 0.75rem);--button-font-weight: var(--task-list-retry-weight, 600);--button-transition: background 150ms ease;}\n\n @media (prefers-reduced-motion: reduce) {.task-row.svelte-1te9fae,\n .glyph-inner.svelte-1te9fae,\n .glyph-check.svelte-1te9fae {animation-duration:0.001s;}\n /* Loader's spin lives on its own internally-scoped element, reached here via :global()\n scoped to a descendant of our local .glyph-spinner wrapper — the 3-class specificity\n that produces reliably beats Loader's own 2-class rule regardless of stylesheet order. */.glyph-spinner.svelte-1te9fae .loader {\n animation: none;\n -webkit-animation: none;}\n }"
|
|
32851
|
+
};
|
|
32852
|
+
function TaskList(e, t) {
|
|
32853
|
+
push(t, !0), append_styles$1(e, $$css);
|
|
32854
|
+
let n = prop(t, "rows", 7), i = prop(t, "onretry", 7), a = prop(t, "testId", 7), o = prop(t, "classes", 7), s = /* @__PURE__ */ state(0), c = (e, t) => {
|
|
32855
|
+
let n = t;
|
|
32856
|
+
return { update(e) {
|
|
32857
|
+
e > n && set(s, n, !0), n = e;
|
|
32858
|
+
} };
|
|
32859
|
+
}, l = (e) => `${Math.max(0, e - get(s)) * 120}ms`, u = (e) => {
|
|
32860
|
+
i()?.(e);
|
|
32861
|
+
};
|
|
32862
|
+
var d = {
|
|
32863
|
+
get rows() {
|
|
32864
|
+
return n();
|
|
32865
|
+
},
|
|
32866
|
+
set rows(e) {
|
|
32867
|
+
n(e), flushSync();
|
|
32868
|
+
},
|
|
32869
|
+
get onretry() {
|
|
32870
|
+
return i();
|
|
32871
|
+
},
|
|
32872
|
+
set onretry(e) {
|
|
32873
|
+
i(e), flushSync();
|
|
32874
|
+
},
|
|
32875
|
+
get testId() {
|
|
32876
|
+
return a();
|
|
32877
|
+
},
|
|
32878
|
+
set testId(e) {
|
|
32879
|
+
a(e), flushSync();
|
|
32880
|
+
},
|
|
32881
|
+
get classes() {
|
|
32882
|
+
return o();
|
|
32883
|
+
},
|
|
32884
|
+
set classes(e) {
|
|
32885
|
+
o(e), flushSync();
|
|
32886
|
+
}
|
|
32887
|
+
}, f = root_8();
|
|
32888
|
+
return each(f, 21, n, index, (e, t, n) => {
|
|
32889
|
+
var i = root_7();
|
|
32890
|
+
let o, s;
|
|
32891
|
+
var c = child(i);
|
|
32892
|
+
key(child(c), () => get(t).status, (e) => {
|
|
32893
|
+
var n = root_4(), i = child(n), a = (e) => {
|
|
32894
|
+
append(e, root());
|
|
32895
|
+
}, o = (e) => {
|
|
32896
|
+
var t = root_1();
|
|
32897
|
+
Loader(child(t), {}), reset(t), append(e, t);
|
|
32898
|
+
}, s = (e) => {
|
|
32899
|
+
append(e, root_2());
|
|
32900
|
+
}, c = (e) => {
|
|
32901
|
+
append(e, root_3());
|
|
32902
|
+
};
|
|
32903
|
+
if_block(i, (e) => {
|
|
32904
|
+
get(t).status === "pending" ? e(a) : get(t).status === "running" ? e(o, 1) : get(t).status === "done" ? e(s, 2) : get(t).status === "failed" && e(c, 3);
|
|
32905
|
+
}), reset(n), template_effect(() => set_attribute(n, "data-status", get(t).status)), append(e, n);
|
|
32906
|
+
}), reset(c);
|
|
32907
|
+
var d = sibling(c, 2), f = child(d), p = child(f, !0);
|
|
32908
|
+
reset(f);
|
|
32909
|
+
var m = sibling(f, 2), h = (e) => {
|
|
32910
|
+
var n = root_5();
|
|
32911
|
+
let i;
|
|
32912
|
+
var a = child(n, !0);
|
|
32913
|
+
reset(n), template_effect(() => {
|
|
32914
|
+
i = set_class(n, 1, "row-secondary svelte-1te9fae", null, i, { mono: get(t).mono }), set_text(a, get(t).secondary);
|
|
32915
|
+
}), append(e, n);
|
|
32916
|
+
};
|
|
32917
|
+
if_block(m, (e) => {
|
|
32918
|
+
typeof get(t).secondary == "string" && get(t).secondary.length > 0 && e(h);
|
|
32919
|
+
}), reset(d);
|
|
32920
|
+
var g = sibling(d, 2), _ = (e) => {
|
|
32921
|
+
var i = root_6();
|
|
32922
|
+
Button(child(i), spread_props({
|
|
32923
|
+
get text() {
|
|
32924
|
+
return get(t).retryLabel;
|
|
32925
|
+
},
|
|
32926
|
+
size: "sm",
|
|
32927
|
+
onclick: () => u(n)
|
|
32928
|
+
}, () => typeof a() == "string" ? { testId: `${a()}-row-${n}-retry` } : {})), reset(i), append(e, i);
|
|
32929
|
+
};
|
|
32930
|
+
if_block(g, (e) => {
|
|
32931
|
+
get(t).status === "failed" && typeof get(t).retryLabel == "string" && get(t).retryLabel.length > 0 && e(_);
|
|
32932
|
+
}), reset(i), template_effect((e) => {
|
|
32933
|
+
o = set_class(i, 1, "task-row svelte-1te9fae", null, o, { pending: get(t).status === "pending" }), set_attribute(i, "data-pw", typeof a() == "string" ? `${a()}-row-${n}` : null), set_attribute(i, "testid", typeof a() == "string" ? `${a()}-row-${n}` : null), s = set_style(i, "", s, e), set_text(p, get(t).label);
|
|
32934
|
+
}, [() => ({ "animation-delay": l(n) })]), append(e, i);
|
|
32935
|
+
}), reset(f), action(f, (e, t) => c?.(e, t), () => n().length), template_effect(() => {
|
|
32936
|
+
set_class(f, 1, `task-list ${o() ?? "" ?? ""}`, "svelte-1te9fae"), set_attribute(f, "data-pw", typeof a() == "string" ? a() : null), set_attribute(f, "testid", typeof a() == "string" ? a() : null);
|
|
32937
|
+
}), append(e, f), pop(d);
|
|
32938
|
+
}
|
|
32939
|
+
create_custom_element(TaskList, {
|
|
32936
32940
|
rows: {},
|
|
32937
|
-
|
|
32938
|
-
|
|
32939
|
-
|
|
32940
|
-
moreLabel: {},
|
|
32941
|
-
selectable: {},
|
|
32942
|
-
selected: {},
|
|
32943
|
-
onrowselect: {},
|
|
32944
|
-
onsettled: {},
|
|
32945
|
-
collapseDelayMs: {}
|
|
32941
|
+
onretry: {},
|
|
32942
|
+
testId: {},
|
|
32943
|
+
classes: {}
|
|
32946
32944
|
}, [], [], { mode: "open" });
|
|
32947
32945
|
//#endregion
|
|
32946
|
+
//#region src/wc/components/TaskList.wc.svelte
|
|
32947
|
+
var rest_excludes$1 = new Set([
|
|
32948
|
+
"$$slots",
|
|
32949
|
+
"$$events",
|
|
32950
|
+
"$$legacy",
|
|
32951
|
+
"$$host"
|
|
32952
|
+
]);
|
|
32953
|
+
function TaskList_wc(e, t) {
|
|
32954
|
+
let n = /* @__PURE__ */ rest_props(t, rest_excludes$1);
|
|
32955
|
+
TaskList(e, spread_props(() => n));
|
|
32956
|
+
}
|
|
32957
|
+
customElements.define("sui-task-list", create_custom_element(TaskList_wc, {
|
|
32958
|
+
rows: { type: "Array" },
|
|
32959
|
+
onretry: { type: "Object" },
|
|
32960
|
+
testId: {
|
|
32961
|
+
attribute: "test-id",
|
|
32962
|
+
type: "String"
|
|
32963
|
+
},
|
|
32964
|
+
classes: { type: "String" }
|
|
32965
|
+
}, [], [], { mode: "open" }));
|
|
32966
|
+
//#endregion
|
|
32948
32967
|
//#region src/wc/components/ThinkingIndicator.wc.svelte
|
|
32949
32968
|
var rest_excludes = new Set([
|
|
32950
32969
|
"$$slots",
|