@feedmepos/mf-miniprogram-v2 0.1.0-dev.31 → 0.1.0-dev.33
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Bi = Object.defineProperty;
|
|
2
2
|
var Fi = (t, e, n) => e in t ? Bi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var be = (t, e, n) => Fi(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { defineComponent as pt, ref as ae, computed as B, resolveComponent as je, openBlock as h, createElementBlock as _, normalizeClass as Ae, createElementVNode as f, createVNode as W, toDisplayString as I, createTextVNode as Ke, createCommentVNode as
|
|
4
|
+
import { defineComponent as pt, ref as ae, computed as B, resolveComponent as je, openBlock as h, createElementBlock as _, normalizeClass as Ae, createElementVNode as f, createVNode as W, toDisplayString as I, createTextVNode as Ke, createCommentVNode as j, watch as Ot, createBlock as Se, Fragment as Te, renderList as Re, normalizeStyle as Pt, reactive as qn, nextTick as $n, onBeforeUnmount as ar, withModifiers as Zn, unref as O, withDirectives as Yn, vModelText as Xn, renderSlot as Ui, onMounted as Rn, withCtx as gt, withKeys as ji } from "vue";
|
|
5
5
|
import { useCoreStore as Br, FeedMeAuth as Hi } from "@feedmepos/mf-common";
|
|
6
6
|
import { useDialog as ba } from "@feedmepos/ui-library";
|
|
7
7
|
import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -211,17 +211,17 @@ ${p}` : p;
|
|
|
211
211
|
let y = this.rules.other.nextBulletRegex(c), w = this.rules.other.hrRegex(c), T = this.rules.other.fencesBeginRegex(c), x = this.rules.other.headingBeginRegex(c), $ = this.rules.other.htmlBeginRegex(c), C = this.rules.other.blockquoteBeginRegex(c);
|
|
212
212
|
for (; t; ) {
|
|
213
213
|
let M = t.split(`
|
|
214
|
-
`, 1)[0],
|
|
215
|
-
if (m = M, this.options.pedantic ? (m = m.replace(this.rules.other.listReplaceNesting, " "),
|
|
216
|
-
if (
|
|
217
|
-
` +
|
|
214
|
+
`, 1)[0], U;
|
|
215
|
+
if (m = M, this.options.pedantic ? (m = m.replace(this.rules.other.listReplaceNesting, " "), U = m) : U = m.replace(this.rules.other.tabCharGlobal, " "), T.test(m) || x.test(m) || $.test(m) || C.test(m) || y.test(m) || w.test(m)) break;
|
|
216
|
+
if (U.search(this.rules.other.nonSpaceChar) >= c || !m.trim()) p += `
|
|
217
|
+
` + U.slice(c);
|
|
218
218
|
else {
|
|
219
219
|
if (S || v.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || T.test(v) || x.test(v) || w.test(v)) break;
|
|
220
220
|
p += `
|
|
221
221
|
` + m;
|
|
222
222
|
}
|
|
223
223
|
S = !m.trim(), u += M + `
|
|
224
|
-
`, t = t.substring(M.length + 1), v =
|
|
224
|
+
`, t = t.substring(M.length + 1), v = U.slice(c);
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
s.loose || (l ? s.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (l = !0)), s.items.push({ type: "list_item", raw: u, task: !!this.options.gfm && this.rules.other.listIsTask.test(p), loose: !1, text: p, tokens: [] }), s.raw += u;
|
|
@@ -2200,7 +2200,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), N = L, me = Y), re ==
|
|
|
2200
2200
|
}
|
|
2201
2201
|
re.name || (re.name = L), e[L] = re, re.rawDefinition = Y.bind(null, t), re.aliases && _e(re.aliases, { languageName: L });
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function U(L) {
|
|
2204
2204
|
delete e[L];
|
|
2205
2205
|
for (const Y of Object.keys(n))
|
|
2206
2206
|
n[Y] === L && delete n[Y];
|
|
@@ -2258,7 +2258,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), N = L, me = Y), re ==
|
|
|
2258
2258
|
initHighlighting: T,
|
|
2259
2259
|
initHighlightingOnLoad: x,
|
|
2260
2260
|
registerLanguage: M,
|
|
2261
|
-
unregisterLanguage:
|
|
2261
|
+
unregisterLanguage: U,
|
|
2262
2262
|
listLanguages: ne,
|
|
2263
2263
|
getLanguage: ee,
|
|
2264
2264
|
registerAliases: _e,
|
|
@@ -2515,21 +2515,21 @@ function Wa() {
|
|
|
2515
2515
|
const J = n.createElement("template");
|
|
2516
2516
|
J.content && J.content.ownerDocument && (n = J.content.ownerDocument);
|
|
2517
2517
|
}
|
|
2518
|
-
let
|
|
2518
|
+
let U, ne = "", ee, _e = !1, Ce = 0;
|
|
2519
2519
|
const V = function() {
|
|
2520
2520
|
if (Ce > 0)
|
|
2521
2521
|
throw Xt('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
|
|
2522
2522
|
}, Q = function(d) {
|
|
2523
2523
|
V(), Ce++;
|
|
2524
2524
|
try {
|
|
2525
|
-
return
|
|
2525
|
+
return U.createHTML(d);
|
|
2526
2526
|
} finally {
|
|
2527
2527
|
Ce--;
|
|
2528
2528
|
}
|
|
2529
2529
|
}, pe = function(d) {
|
|
2530
2530
|
V(), Ce++;
|
|
2531
2531
|
try {
|
|
2532
|
-
return
|
|
2532
|
+
return U.createScriptURL(d);
|
|
2533
2533
|
} finally {
|
|
2534
2534
|
Ce--;
|
|
2535
2535
|
}
|
|
@@ -2662,14 +2662,14 @@ function Wa() {
|
|
|
2662
2662
|
throw Xt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
2663
2663
|
if (typeof d.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
2664
2664
|
throw Xt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
2665
|
-
const X =
|
|
2666
|
-
|
|
2665
|
+
const X = U;
|
|
2666
|
+
U = d.TRUSTED_TYPES_POLICY;
|
|
2667
2667
|
try {
|
|
2668
2668
|
ne = Q("");
|
|
2669
2669
|
} catch (fe) {
|
|
2670
|
-
throw
|
|
2670
|
+
throw U = X, fe;
|
|
2671
2671
|
}
|
|
2672
|
-
} else d.TRUSTED_TYPES_POLICY === null ? (
|
|
2672
|
+
} else d.TRUSTED_TYPES_POLICY === null ? (U = void 0, ne = "") : (U === void 0 && (U = we()), U && typeof ne == "string" && (ne = Q("")));
|
|
2673
2673
|
ut && ut(d), lt = d;
|
|
2674
2674
|
}, os = Oe({}, [...xr, ..._r, ...Kl]), ls = Oe({}, [...wr, ...Vl]), Ci = function(d, A, X) {
|
|
2675
2675
|
return A.namespaceURI === se ? d === "svg" : A.namespaceURI === E ? d === "svg" && (X === "annotation-xml" || G[X]) : !!os[d];
|
|
@@ -2771,7 +2771,7 @@ function Wa() {
|
|
|
2771
2771
|
X = Le && Le[0];
|
|
2772
2772
|
}
|
|
2773
2773
|
$t === "application/xhtml+xml" && he === se && (d = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + d + "</body></html>");
|
|
2774
|
-
const fe =
|
|
2774
|
+
const fe = U ? Q(d) : d;
|
|
2775
2775
|
if (he === se)
|
|
2776
2776
|
try {
|
|
2777
2777
|
A = new p().parseFromString(fe, $t);
|
|
@@ -2928,7 +2928,7 @@ function Wa() {
|
|
|
2928
2928
|
}, Li = Oe({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), hs = function(d) {
|
|
2929
2929
|
return !Li[Cn(d)] && ct(Et, d);
|
|
2930
2930
|
}, Di = function(d, A, X, fe) {
|
|
2931
|
-
if (
|
|
2931
|
+
if (U && typeof v == "object" && typeof v.getAttributeType == "function" && !X)
|
|
2932
2932
|
switch (v.getAttributeType(d, A)) {
|
|
2933
2933
|
case "TrustedHTML":
|
|
2934
2934
|
return Q(fe);
|
|
@@ -3060,7 +3060,7 @@ function Wa() {
|
|
|
3060
3060
|
else {
|
|
3061
3061
|
if (!Ne && !We && !ot && // eslint-disable-next-line unicorn/prefer-includes
|
|
3062
3062
|
J.indexOf("<") === -1)
|
|
3063
|
-
return
|
|
3063
|
+
return U && At ? Q(J) : J;
|
|
3064
3064
|
if (A = us(J), !A)
|
|
3065
3065
|
return Ne ? null : At ? ne : "";
|
|
3066
3066
|
}
|
|
@@ -3086,12 +3086,12 @@ function Wa() {
|
|
|
3086
3086
|
}
|
|
3087
3087
|
let Qe = ot ? A.outerHTML : A.innerHTML;
|
|
3088
3088
|
return ot && $e["!doctype"] && A.ownerDocument && A.ownerDocument.doctype && A.ownerDocument.doctype.name && ct(tc, A.ownerDocument.doctype.name) && (Qe = "<!DOCTYPE " + A.ownerDocument.doctype.name + `>
|
|
3089
|
-
` + Qe), We && (Qe = Mn(Qe)),
|
|
3089
|
+
` + Qe), We && (Qe = Mn(Qe)), U && At ? Q(Qe) : Qe;
|
|
3090
3090
|
}, e.setConfig = function() {
|
|
3091
3091
|
let J = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3092
3092
|
hr(J), q = !0, ce = $e, ye = D;
|
|
3093
3093
|
}, e.clearConfig = function() {
|
|
3094
|
-
lt = null, q = !1, ce = null, ye = null,
|
|
3094
|
+
lt = null, q = !1, ce = null, ye = null, U = ee, ne = "";
|
|
3095
3095
|
}, e.isValidAttribute = function(J, d, A) {
|
|
3096
3096
|
lt || hr({});
|
|
3097
3097
|
const X = P(J), fe = P(d);
|
|
@@ -3449,7 +3449,7 @@ function lc(t) {
|
|
|
3449
3449
|
keywords: a,
|
|
3450
3450
|
contains: ["self"].concat(C)
|
|
3451
3451
|
}
|
|
3452
|
-
]),
|
|
3452
|
+
]), U = {
|
|
3453
3453
|
className: "params",
|
|
3454
3454
|
// convert this to negative lookbehind in v12
|
|
3455
3455
|
begin: /(\s*)\(/,
|
|
@@ -3544,7 +3544,7 @@ function lc(t) {
|
|
|
3544
3544
|
3: "title.function"
|
|
3545
3545
|
},
|
|
3546
3546
|
label: "func.def",
|
|
3547
|
-
contains: [
|
|
3547
|
+
contains: [U],
|
|
3548
3548
|
illegal: /%/
|
|
3549
3549
|
}, V = {
|
|
3550
3550
|
relevance: 0,
|
|
@@ -3592,7 +3592,7 @@ function lc(t) {
|
|
|
3592
3592
|
// eat to avoid empty params
|
|
3593
3593
|
begin: /\(\)/
|
|
3594
3594
|
},
|
|
3595
|
-
|
|
3595
|
+
U
|
|
3596
3596
|
]
|
|
3597
3597
|
}, L = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + t.UNDERSCORE_IDENT_RE + ")\\s*=>", Y = {
|
|
3598
3598
|
match: [
|
|
@@ -3611,7 +3611,7 @@ function lc(t) {
|
|
|
3611
3611
|
3: "title.function"
|
|
3612
3612
|
},
|
|
3613
3613
|
contains: [
|
|
3614
|
-
|
|
3614
|
+
U
|
|
3615
3615
|
]
|
|
3616
3616
|
};
|
|
3617
3617
|
return {
|
|
@@ -3735,7 +3735,7 @@ function lc(t) {
|
|
|
3735
3735
|
returnBegin: !0,
|
|
3736
3736
|
label: "func.def",
|
|
3737
3737
|
contains: [
|
|
3738
|
-
|
|
3738
|
+
U,
|
|
3739
3739
|
t.inherit(t.TITLE_MODE, { begin: r, className: "title.function" })
|
|
3740
3740
|
]
|
|
3741
3741
|
},
|
|
@@ -3755,7 +3755,7 @@ function lc(t) {
|
|
|
3755
3755
|
{
|
|
3756
3756
|
match: [/\bconstructor(?=\s*\()/],
|
|
3757
3757
|
className: { 1: "title.function" },
|
|
3758
|
-
contains: [
|
|
3758
|
+
contains: [U]
|
|
3759
3759
|
},
|
|
3760
3760
|
pe,
|
|
3761
3761
|
V,
|
|
@@ -4199,7 +4199,7 @@ function si(t) {
|
|
|
4199
4199
|
keywords: a,
|
|
4200
4200
|
contains: ["self"].concat(C)
|
|
4201
4201
|
}
|
|
4202
|
-
]),
|
|
4202
|
+
]), U = {
|
|
4203
4203
|
className: "params",
|
|
4204
4204
|
// convert this to negative lookbehind in v12
|
|
4205
4205
|
begin: /(\s*)\(/,
|
|
@@ -4294,7 +4294,7 @@ function si(t) {
|
|
|
4294
4294
|
3: "title.function"
|
|
4295
4295
|
},
|
|
4296
4296
|
label: "func.def",
|
|
4297
|
-
contains: [
|
|
4297
|
+
contains: [U],
|
|
4298
4298
|
illegal: /%/
|
|
4299
4299
|
}, V = {
|
|
4300
4300
|
relevance: 0,
|
|
@@ -4342,7 +4342,7 @@ function si(t) {
|
|
|
4342
4342
|
// eat to avoid empty params
|
|
4343
4343
|
begin: /\(\)/
|
|
4344
4344
|
},
|
|
4345
|
-
|
|
4345
|
+
U
|
|
4346
4346
|
]
|
|
4347
4347
|
}, L = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + t.UNDERSCORE_IDENT_RE + ")\\s*=>", Y = {
|
|
4348
4348
|
match: [
|
|
@@ -4361,7 +4361,7 @@ function si(t) {
|
|
|
4361
4361
|
3: "title.function"
|
|
4362
4362
|
},
|
|
4363
4363
|
contains: [
|
|
4364
|
-
|
|
4364
|
+
U
|
|
4365
4365
|
]
|
|
4366
4366
|
};
|
|
4367
4367
|
return {
|
|
@@ -4485,7 +4485,7 @@ function si(t) {
|
|
|
4485
4485
|
returnBegin: !0,
|
|
4486
4486
|
label: "func.def",
|
|
4487
4487
|
contains: [
|
|
4488
|
-
|
|
4488
|
+
U,
|
|
4489
4489
|
t.inherit(t.TITLE_MODE, { begin: r, className: "title.function" })
|
|
4490
4490
|
]
|
|
4491
4491
|
},
|
|
@@ -4505,7 +4505,7 @@ function si(t) {
|
|
|
4505
4505
|
{
|
|
4506
4506
|
match: [/\bconstructor(?=\s*\()/],
|
|
4507
4507
|
className: { 1: "title.function" },
|
|
4508
|
-
contains: [
|
|
4508
|
+
contains: [U]
|
|
4509
4509
|
},
|
|
4510
4510
|
pe,
|
|
4511
4511
|
V,
|
|
@@ -6365,8 +6365,8 @@ const Tc = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
|
|
|
6365
6365
|
class: "tool-card__block hljs",
|
|
6366
6366
|
innerHTML: v.value
|
|
6367
6367
|
}, null, 8, Ic)
|
|
6368
|
-
])) :
|
|
6369
|
-
])) :
|
|
6368
|
+
])) : j("", !0)
|
|
6369
|
+
])) : j("", !0)
|
|
6370
6370
|
], 2);
|
|
6371
6371
|
};
|
|
6372
6372
|
}
|
|
@@ -6433,7 +6433,7 @@ const Tc = { class: "min-w-0 flex-1 truncate text-[11px] leading-[16px] text-fm-
|
|
|
6433
6433
|
key: m.id,
|
|
6434
6434
|
part: m
|
|
6435
6435
|
}, null, 8, ["part"]))), 128))
|
|
6436
|
-
])) :
|
|
6436
|
+
])) : j("", !0)
|
|
6437
6437
|
], 2);
|
|
6438
6438
|
};
|
|
6439
6439
|
}
|
|
@@ -6750,17 +6750,17 @@ const cu = { class: "flex min-w-0 flex-col gap-6" }, uu = { class: "flex items-c
|
|
|
6750
6750
|
key: o.id,
|
|
6751
6751
|
class: "min-w-0 rounded-md bg-white/15 px-[8px] py-[6px]"
|
|
6752
6752
|
}, [
|
|
6753
|
-
o.note ? (h(), _("div", du, I(o.note), 1)) :
|
|
6753
|
+
o.note ? (h(), _("div", du, I(o.note), 1)) : j("", !0),
|
|
6754
6754
|
f("div", pu, [
|
|
6755
6755
|
f("span", fu, I(o.label), 1),
|
|
6756
|
-
o.route && o.route !== "/" ? (h(), _("span", hu, I(o.route), 1)) :
|
|
6757
|
-
o.device ? (h(), _("span", mu, I(o.device), 1)) :
|
|
6756
|
+
o.route && o.route !== "/" ? (h(), _("span", hu, I(o.route), 1)) : j("", !0),
|
|
6757
|
+
o.device ? (h(), _("span", mu, I(o.device), 1)) : j("", !0),
|
|
6758
6758
|
o.source ? (h(), _("span", {
|
|
6759
6759
|
key: 2,
|
|
6760
6760
|
class: "min-w-0 truncate font-mono",
|
|
6761
6761
|
title: o.source
|
|
6762
|
-
}, I(o.source), 9, gu)) :
|
|
6763
|
-
!((l = o.changes) != null && l.length) && o.hasProperties ? (h(), _("span", bu, "properties")) :
|
|
6762
|
+
}, I(o.source), 9, gu)) : j("", !0),
|
|
6763
|
+
!((l = o.changes) != null && l.length) && o.hasProperties ? (h(), _("span", bu, "properties")) : j("", !0)
|
|
6764
6764
|
]),
|
|
6765
6765
|
(a = o.changes) != null && a.length ? (h(), _("ul", yu, [
|
|
6766
6766
|
(h(!0), _(Te, null, Re(o.changes, (i) => (h(), _("li", {
|
|
@@ -6773,19 +6773,19 @@ const cu = { class: "flex min-w-0 flex-col gap-6" }, uu = { class: "flex items-c
|
|
|
6773
6773
|
key: 0,
|
|
6774
6774
|
class: "annotation-message__swatch",
|
|
6775
6775
|
style: Pt({ background: e(i.before) })
|
|
6776
|
-
}, null, 4)) :
|
|
6776
|
+
}, null, 4)) : j("", !0),
|
|
6777
6777
|
Ke(I(i.before) + " ", 1),
|
|
6778
6778
|
r[0] || (r[0] = f("span", { class: "opacity-70" }, "→", -1)),
|
|
6779
6779
|
e(i.after) ? (h(), _("span", {
|
|
6780
6780
|
key: 1,
|
|
6781
6781
|
class: "annotation-message__swatch",
|
|
6782
6782
|
style: Pt({ background: e(i.after) })
|
|
6783
|
-
}, null, 4)) :
|
|
6783
|
+
}, null, 4)) : j("", !0),
|
|
6784
6784
|
Ke(I(i.after), 1)
|
|
6785
6785
|
]),
|
|
6786
|
-
i.token ? (h(), _("span", _u, I(i.token), 1)) :
|
|
6786
|
+
i.token ? (h(), _("span", _u, I(i.token), 1)) : j("", !0)
|
|
6787
6787
|
]))), 128))
|
|
6788
|
-
])) :
|
|
6788
|
+
])) : j("", !0)
|
|
6789
6789
|
]);
|
|
6790
6790
|
}), 128))
|
|
6791
6791
|
]);
|
|
@@ -7135,7 +7135,7 @@ const Du = { class: "my-8 flex flex-col gap-8 rounded-lg border border-fm-color-
|
|
|
7135
7135
|
}, null, 4),
|
|
7136
7136
|
f("span", Hu, I(v.value), 1)
|
|
7137
7137
|
], 8, ju))), 128))
|
|
7138
|
-
])) :
|
|
7138
|
+
])) : j("", !0),
|
|
7139
7139
|
o.value.length ? (h(), _("div", Gu, [
|
|
7140
7140
|
(h(!0), _(Te, null, Re(o.value, (v) => (h(), _("span", {
|
|
7141
7141
|
key: v.label,
|
|
@@ -7144,8 +7144,8 @@ const Du = { class: "my-8 flex flex-col gap-8 rounded-lg border border-fm-color-
|
|
|
7144
7144
|
Ke(I(v.label) + ": ", 1),
|
|
7145
7145
|
f("span", Wu, I(v.value), 1)
|
|
7146
7146
|
]))), 128))
|
|
7147
|
-
])) :
|
|
7148
|
-
r.value ? (h(), _("p", Ku, " Loaded into the BrandKit panel — review the fields there and press Save to make it live. ")) :
|
|
7147
|
+
])) : j("", !0),
|
|
7148
|
+
r.value ? (h(), _("p", Ku, " Loaded into the BrandKit panel — review the fields there and press Save to make it live. ")) : j("", !0)
|
|
7149
7149
|
]);
|
|
7150
7150
|
};
|
|
7151
7151
|
}
|
|
@@ -7264,17 +7264,17 @@ class td {
|
|
|
7264
7264
|
let $;
|
|
7265
7265
|
const C = S[x - 1], M = S[x + 1];
|
|
7266
7266
|
C && (S[x - 1] = void 0);
|
|
7267
|
-
let
|
|
7267
|
+
let U = !1;
|
|
7268
7268
|
if (M) {
|
|
7269
7269
|
const ee = M.oldPos - x;
|
|
7270
|
-
|
|
7270
|
+
U = M && 0 <= ee && ee < a;
|
|
7271
7271
|
}
|
|
7272
7272
|
const ne = C && C.oldPos + 1 < i;
|
|
7273
|
-
if (!
|
|
7273
|
+
if (!U && !ne) {
|
|
7274
7274
|
S[x] = void 0;
|
|
7275
7275
|
continue;
|
|
7276
7276
|
}
|
|
7277
|
-
if (!ne ||
|
|
7277
|
+
if (!ne || U && C.oldPos < M.oldPos ? $ = this.addToPath(M, !0, !1, 0, r) : $ = this.addToPath(C, !1, !0, 1, r), c = this.extractCommon($, n, e, x, r), $.oldPos + 1 >= i && c + 1 >= a)
|
|
7278
7278
|
return l(this.buildValues($.lastComponent, n, e)) || !0;
|
|
7279
7279
|
S[x] = $, $.oldPos + 1 >= i && (w = Math.min(w, x - 1)), c + 1 >= a && (y = Math.max(y, x + 1));
|
|
7280
7280
|
}
|
|
@@ -7429,8 +7429,8 @@ function ad(t) {
|
|
|
7429
7429
|
C && (y.oldFileName = "a/" + p(C[1]), y.isRename = !0);
|
|
7430
7430
|
const M = /^rename to (.*)/.exec($);
|
|
7431
7431
|
M && (y.newFileName = "b/" + p(M[1]), y.isRename = !0);
|
|
7432
|
-
const
|
|
7433
|
-
|
|
7432
|
+
const U = /^copy from (.*)/.exec($);
|
|
7433
|
+
U && (y.oldFileName = "a/" + p(U[1]), y.isCopy = !0);
|
|
7434
7434
|
const ne = /^copy to (.*)/.exec($);
|
|
7435
7435
|
ne && (y.newFileName = "b/" + p(ne[1]), y.isCopy = !0);
|
|
7436
7436
|
const ee = /^new file mode (\d+)/.exec($);
|
|
@@ -7659,14 +7659,14 @@ function id(t, e, n, r, s, o, l) {
|
|
|
7659
7659
|
const M = Math.min(C.length, i);
|
|
7660
7660
|
for (const ne of v(C.slice(0, M)))
|
|
7661
7661
|
y.push(ne);
|
|
7662
|
-
const
|
|
7662
|
+
const U = {
|
|
7663
7663
|
oldStart: S,
|
|
7664
7664
|
oldLines: w - S + M,
|
|
7665
7665
|
newStart: c,
|
|
7666
7666
|
newLines: T - c + M,
|
|
7667
7667
|
lines: y
|
|
7668
7668
|
};
|
|
7669
|
-
m.push(
|
|
7669
|
+
m.push(U), S = 0, c = 0, y = [];
|
|
7670
7670
|
}
|
|
7671
7671
|
w += C.length, T += C.length;
|
|
7672
7672
|
}
|
|
@@ -7725,23 +7725,23 @@ const ld = { class: "diff-card my-[6px] min-w-0 max-w-full overflow-hidden round
|
|
|
7725
7725
|
let T = c.oldStart, x = c.newStart;
|
|
7726
7726
|
if (c.lines.forEach((C, M) => {
|
|
7727
7727
|
y.push({ oldNumber: T, newNumber: x });
|
|
7728
|
-
const
|
|
7729
|
-
(
|
|
7728
|
+
const U = C[0] ?? " ";
|
|
7729
|
+
(U === "+" || U === "-") && w.push(M), U !== "+" && U !== "\\" && T++, U !== "-" && U !== "\\" && x++;
|
|
7730
7730
|
}), !w.length) return [];
|
|
7731
7731
|
const $ = [];
|
|
7732
7732
|
for (const C of w) {
|
|
7733
|
-
const M = Math.max(0, C - S),
|
|
7734
|
-
ne && M <= ne.end + 1 ? ne.end = Math.max(ne.end,
|
|
7733
|
+
const M = Math.max(0, C - S), U = Math.min(c.lines.length - 1, C + S), ne = $[$.length - 1];
|
|
7734
|
+
ne && M <= ne.end + 1 ? ne.end = Math.max(ne.end, U) : $.push({ start: M, end: U });
|
|
7735
7735
|
}
|
|
7736
7736
|
return $.map(({ start: C, end: M }) => {
|
|
7737
7737
|
var ne, ee;
|
|
7738
|
-
const
|
|
7738
|
+
const U = c.lines.slice(C, M + 1);
|
|
7739
7739
|
return {
|
|
7740
7740
|
oldStart: ((ne = y[C]) == null ? void 0 : ne.oldNumber) ?? c.oldStart,
|
|
7741
7741
|
newStart: ((ee = y[C]) == null ? void 0 : ee.newNumber) ?? c.newStart,
|
|
7742
|
-
oldLines:
|
|
7743
|
-
newLines:
|
|
7744
|
-
lines:
|
|
7742
|
+
oldLines: U.filter((_e) => _e[0] !== "+" && _e[0] !== "\\").length,
|
|
7743
|
+
newLines: U.filter((_e) => _e[0] !== "-" && _e[0] !== "\\").length,
|
|
7744
|
+
lines: U
|
|
7745
7745
|
};
|
|
7746
7746
|
});
|
|
7747
7747
|
});
|
|
@@ -7805,7 +7805,7 @@ const ld = { class: "diff-card my-[6px] min-w-0 max-w-full overflow-hidden round
|
|
|
7805
7805
|
t.diffs.length ? (h(), _("span", dd, [
|
|
7806
7806
|
f("span", pd, "+" + I(i.value), 1),
|
|
7807
7807
|
f("span", fd, "-" + I(u.value), 1)
|
|
7808
|
-
])) :
|
|
7808
|
+
])) : j("", !0),
|
|
7809
7809
|
W(y, {
|
|
7810
7810
|
name: "expand_more",
|
|
7811
7811
|
size: "sm",
|
|
@@ -7862,7 +7862,7 @@ const ld = { class: "diff-card my-[6px] min-w-0 max-w-full overflow-hidden round
|
|
|
7862
7862
|
])
|
|
7863
7863
|
], 2))), 128))
|
|
7864
7864
|
]))), 128)),
|
|
7865
|
-
w.hunks.length === 0 ? (h(), _("div", Cd, " No textual changes to display. ")) :
|
|
7865
|
+
w.hunks.length === 0 ? (h(), _("div", Cd, " No textual changes to display. ")) : j("", !0)
|
|
7866
7866
|
])
|
|
7867
7867
|
], 8, md))), 128)) : (h(), _("div", $d, [
|
|
7868
7868
|
(h(!0), _(Te, null, Re(t.files, (w) => (h(), _("div", {
|
|
@@ -7879,9 +7879,9 @@ const ld = { class: "diff-card my-[6px] min-w-0 max-w-full overflow-hidden round
|
|
|
7879
7879
|
title: w
|
|
7880
7880
|
}, I(w), 9, Rd)
|
|
7881
7881
|
]))), 128)),
|
|
7882
|
-
t.loading ? (h(), _("p", Id, " The readable diff will appear when the agent finishes this step. ")) :
|
|
7882
|
+
t.loading ? (h(), _("p", Id, " The readable diff will appear when the agent finishes this step. ")) : j("", !0)
|
|
7883
7883
|
]))
|
|
7884
|
-
])) :
|
|
7884
|
+
])) : j("", !0)
|
|
7885
7885
|
]);
|
|
7886
7886
|
};
|
|
7887
7887
|
}
|
|
@@ -7945,22 +7945,22 @@ const ld = { class: "diff-card my-[6px] min-w-0 max-w-full overflow-hidden round
|
|
|
7945
7945
|
size: "sm"
|
|
7946
7946
|
}),
|
|
7947
7947
|
f("span", null, I(c.part.filename ?? c.part.mime), 1)
|
|
7948
|
-
])) :
|
|
7948
|
+
])) : j("", !0)
|
|
7949
7949
|
], 64))), 128)),
|
|
7950
7950
|
!s.value && (t.message.changedFiles.length || t.message.diffs.length) ? (h(), Se(Od, {
|
|
7951
7951
|
key: 0,
|
|
7952
7952
|
files: t.message.changedFiles,
|
|
7953
7953
|
diffs: t.message.diffs,
|
|
7954
7954
|
loading: t.message.busy && t.message.diffs.length === 0
|
|
7955
|
-
}, null, 8, ["files", "diffs", "loading"])) :
|
|
7955
|
+
}, null, 8, ["files", "diffs", "loading"])) : j("", !0),
|
|
7956
7956
|
a.value ? (h(), _("div", Ld, [
|
|
7957
7957
|
W(m, {
|
|
7958
7958
|
size: "md",
|
|
7959
7959
|
color: "neutral-gray-300"
|
|
7960
7960
|
}),
|
|
7961
7961
|
p[1] || (p[1] = f("span", null, "Thinking…", -1))
|
|
7962
|
-
])) :
|
|
7963
|
-
t.message.errorText ? (h(), _("div", Dd, I(t.message.errorText), 1)) :
|
|
7962
|
+
])) : j("", !0),
|
|
7963
|
+
t.message.errorText ? (h(), _("div", Dd, I(t.message.errorText), 1)) : j("", !0),
|
|
7964
7964
|
!s.value && t.canUndo ? (h(), _("div", zd, [
|
|
7965
7965
|
W(S, {
|
|
7966
7966
|
label: "Undo this turn",
|
|
@@ -7970,7 +7970,7 @@ const ld = { class: "diff-card my-[6px] min-w-0 max-w-full overflow-hidden round
|
|
|
7970
7970
|
disabled: t.undoing,
|
|
7971
7971
|
onClick: p[0] || (p[0] = (c) => r("undo"))
|
|
7972
7972
|
}, null, 8, ["loading", "disabled"])
|
|
7973
|
-
])) :
|
|
7973
|
+
])) : j("", !0)
|
|
7974
7974
|
], 2),
|
|
7975
7975
|
s.value && i.value ? (h(), _("div", {
|
|
7976
7976
|
key: 0,
|
|
@@ -7991,7 +7991,7 @@ const ld = { class: "diff-card my-[6px] min-w-0 max-w-full overflow-hidden round
|
|
|
7991
7991
|
size: "sm"
|
|
7992
7992
|
})),
|
|
7993
7993
|
f("span", null, I(i.value), 1)
|
|
7994
|
-
], 10, Bd)) :
|
|
7994
|
+
], 10, Bd)) : j("", !0)
|
|
7995
7995
|
], 2);
|
|
7996
7996
|
};
|
|
7997
7997
|
}
|
|
@@ -8123,7 +8123,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8123
8123
|
const { added: Q, error: pe } = await gi(V, r.value.length);
|
|
8124
8124
|
r.value = [...r.value, ...Q], s.value = pe;
|
|
8125
8125
|
}
|
|
8126
|
-
function
|
|
8126
|
+
function U() {
|
|
8127
8127
|
var V;
|
|
8128
8128
|
i.value || r.value.length >= rn || (V = a.value) == null || V.click();
|
|
8129
8129
|
}
|
|
@@ -8175,7 +8175,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8175
8175
|
}, null, 8, ["name"]),
|
|
8176
8176
|
f("p", Kd, I(Ce.value.title), 1),
|
|
8177
8177
|
f("p", Vd, I(Ce.value.text), 1)
|
|
8178
|
-
])) :
|
|
8178
|
+
])) : j("", !0)
|
|
8179
8179
|
], 544),
|
|
8180
8180
|
t.chat.canUnrevert ? (h(), _("div", qd, [
|
|
8181
8181
|
Q[1] || (Q[1] = f("span", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, "The last agent turn was undone.", -1)),
|
|
@@ -8186,7 +8186,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8186
8186
|
loading: t.chat.checkpointSaving,
|
|
8187
8187
|
onClick: t.chat.unrevertTurn
|
|
8188
8188
|
}, null, 8, ["loading", "onClick"])
|
|
8189
|
-
])) :
|
|
8189
|
+
])) : j("", !0),
|
|
8190
8190
|
f("form", {
|
|
8191
8191
|
class: "shrink-0 border-t border-fm-color-neutral-gray-100 p-12",
|
|
8192
8192
|
onSubmit: Zn($, ["prevent"])
|
|
@@ -8216,7 +8216,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8216
8216
|
})
|
|
8217
8217
|
], 8, Xd)
|
|
8218
8218
|
]))), 128))
|
|
8219
|
-
])) :
|
|
8219
|
+
])) : j("", !0),
|
|
8220
8220
|
f("div", Jd, [
|
|
8221
8221
|
f("input", {
|
|
8222
8222
|
ref_key: "fileInputEl",
|
|
@@ -8234,7 +8234,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8234
8234
|
disabled: i.value || r.value.length >= O(rn),
|
|
8235
8235
|
title: `Attach image (up to ${O(rn)})`,
|
|
8236
8236
|
"aria-label": "Attach image",
|
|
8237
|
-
onClick:
|
|
8237
|
+
onClick: U
|
|
8238
8238
|
}, null, 8, ["disabled", "title"]),
|
|
8239
8239
|
Yn(f("textarea", {
|
|
8240
8240
|
ref_key: "textareaEl",
|
|
@@ -8256,7 +8256,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8256
8256
|
variant: "secondary",
|
|
8257
8257
|
type: "button",
|
|
8258
8258
|
onClick: t.chat.abort
|
|
8259
|
-
}, null, 8, ["onClick"])) :
|
|
8259
|
+
}, null, 8, ["onClick"])) : j("", !0),
|
|
8260
8260
|
W(we, {
|
|
8261
8261
|
label: p.value,
|
|
8262
8262
|
type: "submit",
|
|
@@ -8264,7 +8264,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8264
8264
|
}, null, 8, ["label", "disabled"])
|
|
8265
8265
|
])
|
|
8266
8266
|
], 2),
|
|
8267
|
-
s.value ? (h(), _("p", ep, I(s.value), 1)) :
|
|
8267
|
+
s.value ? (h(), _("p", ep, I(s.value), 1)) : j("", !0)
|
|
8268
8268
|
], 32)
|
|
8269
8269
|
]);
|
|
8270
8270
|
};
|
|
@@ -8364,7 +8364,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8364
8364
|
color: "typo-primary"
|
|
8365
8365
|
}),
|
|
8366
8366
|
v[3] || (v[3] = Ke(" BrandKit ", -1)),
|
|
8367
|
-
O(r).dirtyCount.value ? (h(), _("span", ap, I(O(r).dirtyCount.value) + " unsaved ", 1)) :
|
|
8367
|
+
O(r).dirtyCount.value ? (h(), _("span", ap, I(O(r).dirtyCount.value) + " unsaved ", 1)) : j("", !0)
|
|
8368
8368
|
]),
|
|
8369
8369
|
f("div", ip, [
|
|
8370
8370
|
f("button", {
|
|
@@ -8404,7 +8404,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8404
8404
|
color: "typo-warning"
|
|
8405
8405
|
}),
|
|
8406
8406
|
f("span", cp, "“" + I(O(r).state.appliedProposal) + "” applied — review the changes, then Save.", 1)
|
|
8407
|
-
])) :
|
|
8407
|
+
])) : j("", !0),
|
|
8408
8408
|
O(r).state.loading ? (h(), _("div", up, [
|
|
8409
8409
|
W(S, {
|
|
8410
8410
|
size: "lg",
|
|
@@ -8426,7 +8426,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8426
8426
|
class: "w-[84px] shrink-0 fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
8427
8427
|
}, [
|
|
8428
8428
|
Ke(I(w.label) + " ", 1),
|
|
8429
|
-
l("colors", w.path) ? (h(), _("span", mp, "•")) :
|
|
8429
|
+
l("colors", w.path) ? (h(), _("span", mp, "•")) : j("", !0)
|
|
8430
8430
|
], 8, hp),
|
|
8431
8431
|
f("input", {
|
|
8432
8432
|
type: "color",
|
|
@@ -8459,7 +8459,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8459
8459
|
class: "w-[84px] shrink-0 fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
8460
8460
|
}, [
|
|
8461
8461
|
Ke(I(y.label) + " ", 1),
|
|
8462
|
-
l("fonts", y.path) ? (h(), _("span", _p, "•")) :
|
|
8462
|
+
l("fonts", y.path) ? (h(), _("span", _p, "•")) : j("", !0)
|
|
8463
8463
|
], 8, xp),
|
|
8464
8464
|
Yn(f("input", {
|
|
8465
8465
|
id: `bk-font-${y.path}`,
|
|
@@ -8473,7 +8473,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8473
8473
|
])
|
|
8474
8474
|
], 8, vp))), 128))
|
|
8475
8475
|
]),
|
|
8476
|
-
O(r).state.error ? (h(), _("p", kp, I(O(r).state.error), 1)) :
|
|
8476
|
+
O(r).state.error ? (h(), _("p", kp, I(O(r).state.error), 1)) : j("", !0)
|
|
8477
8477
|
])),
|
|
8478
8478
|
f("footer", Sp, [
|
|
8479
8479
|
O(r).state.revertKit ? (h(), Se(c, {
|
|
@@ -8554,7 +8554,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8554
8554
|
style: Pt({ background: a.value })
|
|
8555
8555
|
}, null, 4)
|
|
8556
8556
|
], 2),
|
|
8557
|
-
l.value ? (h(), _("span", Ip, I(l.value.label), 1)) :
|
|
8557
|
+
l.value ? (h(), _("span", Ip, I(l.value.label), 1)) : j("", !0),
|
|
8558
8558
|
f("span", {
|
|
8559
8559
|
class: Ae(["color-field__caption", { "color-field__caption--muted": l.value }])
|
|
8560
8560
|
}, I(i.value), 3),
|
|
@@ -8623,9 +8623,9 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8623
8623
|
size: "sm",
|
|
8624
8624
|
color: "typo-secondary"
|
|
8625
8625
|
})
|
|
8626
|
-
], 8, Bp)) :
|
|
8626
|
+
], 8, Bp)) : j("", !0)
|
|
8627
8627
|
])
|
|
8628
|
-
])) :
|
|
8628
|
+
])) : j("", !0)
|
|
8629
8629
|
]);
|
|
8630
8630
|
};
|
|
8631
8631
|
}
|
|
@@ -8681,7 +8681,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8681
8681
|
}), $ = B(() => {
|
|
8682
8682
|
var D;
|
|
8683
8683
|
return ((D = Jt(T.value.top)) == null ? void 0 : D.unit) ?? m.value;
|
|
8684
|
-
}), C = B(() => n.spec.control === "box" && (w.value || !x.value)), M = B(() => n.spec.control === "box"),
|
|
8684
|
+
}), C = B(() => n.spec.control === "box" && (w.value || !x.value)), M = B(() => n.spec.control === "box"), U = B(() => M.value ? $.value : S.value), ne = B(() => {
|
|
8685
8685
|
var D;
|
|
8686
8686
|
return M.value ? ((D = Jt(T.value.top)) == null ? void 0 : D.value) ?? 0 : c.value ?? "";
|
|
8687
8687
|
}), ee = B(() => {
|
|
@@ -8781,7 +8781,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8781
8781
|
function it(D, ie) {
|
|
8782
8782
|
if (u.value) return;
|
|
8783
8783
|
const te = (n.spec.step ?? 1) * (ie.shiftKey ? 10 : 1);
|
|
8784
|
-
r("update", Tn(Y(ee.value + D * te),
|
|
8784
|
+
r("update", Tn(Y(ee.value + D * te), U.value));
|
|
8785
8785
|
}
|
|
8786
8786
|
return (D, ie) => {
|
|
8787
8787
|
var Ue;
|
|
@@ -8811,7 +8811,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8811
8811
|
size: "sm",
|
|
8812
8812
|
color: "typo-secondary"
|
|
8813
8813
|
}, null, 8, ["name"])
|
|
8814
|
-
], 10, Wp)) :
|
|
8814
|
+
], 10, Wp)) : j("", !0),
|
|
8815
8815
|
C.value ? (h(), _("span", Kp, I(O(Un)(T.value)), 1)) : (h(), _(Te, { key: 2 }, [
|
|
8816
8816
|
f("button", {
|
|
8817
8817
|
type: "button",
|
|
@@ -8855,7 +8855,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8855
8855
|
], 8, Zp)
|
|
8856
8856
|
], 64)),
|
|
8857
8857
|
f("select", {
|
|
8858
|
-
value:
|
|
8858
|
+
value: U.value,
|
|
8859
8859
|
disabled: t.disabled,
|
|
8860
8860
|
class: "style-control__unit",
|
|
8861
8861
|
"aria-label": `${t.spec.label} unit`,
|
|
@@ -8892,7 +8892,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8892
8892
|
}, null, 40, ef)
|
|
8893
8893
|
]);
|
|
8894
8894
|
}), 64))
|
|
8895
|
-
])) :
|
|
8895
|
+
])) : j("", !0),
|
|
8896
8896
|
(Ue = t.spec.presets) != null && Ue.length ? (h(), _("div", tf, [
|
|
8897
8897
|
(h(!0), _(Te, null, Re(t.spec.presets, (de) => (h(), _("button", {
|
|
8898
8898
|
key: de,
|
|
@@ -8902,7 +8902,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8902
8902
|
title: de,
|
|
8903
8903
|
onClick: (le) => r("update", de)
|
|
8904
8904
|
}, I(yt(de)), 11, nf))), 128))
|
|
8905
|
-
])) :
|
|
8905
|
+
])) : j("", !0)
|
|
8906
8906
|
])) : t.spec.control === "ratio" ? (h(), _("div", rf, [
|
|
8907
8907
|
f("input", {
|
|
8908
8908
|
value: y.value,
|
|
@@ -8975,8 +8975,8 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
8975
8975
|
class: "style-control__text",
|
|
8976
8976
|
"aria-label": `Custom ${t.spec.label}`,
|
|
8977
8977
|
onChange: ie[4] || (ie[4] = (de) => r("update", de.target.value))
|
|
8978
|
-
}, null, 40, hf)) :
|
|
8979
|
-
])) :
|
|
8978
|
+
}, null, 40, hf)) : j("", !0)
|
|
8979
|
+
])) : j("", !0);
|
|
8980
8980
|
};
|
|
8981
8981
|
}
|
|
8982
8982
|
}), gf = /* @__PURE__ */ Mt(mf, [["__scopeId", "data-v-a36ef5b0"]]), bf = { class: "properties" }, yf = {
|
|
@@ -9048,7 +9048,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
9048
9048
|
color: "typo-tertiary"
|
|
9049
9049
|
})
|
|
9050
9050
|
], 8, xf)
|
|
9051
|
-
])) :
|
|
9051
|
+
])) : j("", !0),
|
|
9052
9052
|
v.value ? (h(), _("div", _f, [
|
|
9053
9053
|
f("img", {
|
|
9054
9054
|
src: v.value.src,
|
|
@@ -9062,7 +9062,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
9062
9062
|
}, I(v.value.name), 9, Sf),
|
|
9063
9063
|
f("div", Tf, I(v.value.alt || "no alt text"), 1)
|
|
9064
9064
|
])
|
|
9065
|
-
])) :
|
|
9065
|
+
])) : j("", !0),
|
|
9066
9066
|
t.element.canEditText ? (h(), _("div", Ef, [
|
|
9067
9067
|
f("div", Af, [
|
|
9068
9068
|
x[3] || (x[3] = f("span", null, "Content", -1)),
|
|
@@ -9080,7 +9080,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
9080
9080
|
size: "sm",
|
|
9081
9081
|
color: "typo-tertiary"
|
|
9082
9082
|
})
|
|
9083
|
-
], 8, Cf)) :
|
|
9083
|
+
], 8, Cf)) : j("", !0)
|
|
9084
9084
|
]),
|
|
9085
9085
|
f("textarea", {
|
|
9086
9086
|
value: t.textValue,
|
|
@@ -9090,7 +9090,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
9090
9090
|
"aria-label": "Element text",
|
|
9091
9091
|
onInput: x[2] || (x[2] = (C) => r("change", { key: "text", value: C.target.value }))
|
|
9092
9092
|
}, null, 40, $f)
|
|
9093
|
-
])) :
|
|
9093
|
+
])) : j("", !0),
|
|
9094
9094
|
(h(!0), _(Te, null, Re(p.value, (C) => (h(), _("div", {
|
|
9095
9095
|
key: C.key,
|
|
9096
9096
|
class: "properties__section"
|
|
@@ -9107,7 +9107,7 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
9107
9107
|
color: "typo-tertiary"
|
|
9108
9108
|
}, null, 8, ["name"]),
|
|
9109
9109
|
f("span", null, I(C.label), 1),
|
|
9110
|
-
c(C.keys) ? (h(), _("span", If, I(c(C.keys)), 1)) :
|
|
9110
|
+
c(C.keys) ? (h(), _("span", If, I(c(C.keys)), 1)) : j("", !0)
|
|
9111
9111
|
], 8, Rf),
|
|
9112
9112
|
m.value.has(C.key) ? (h(), _("div", Nf, [
|
|
9113
9113
|
(h(!0), _(Te, null, Re(C.keys, (M) => (h(), _("div", {
|
|
@@ -9125,14 +9125,14 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
9125
9125
|
disabled: t.disabled,
|
|
9126
9126
|
title: y(M),
|
|
9127
9127
|
"aria-label": y(M),
|
|
9128
|
-
onClick: (
|
|
9128
|
+
onClick: (U) => r("reset", { key: M })
|
|
9129
9129
|
}, [
|
|
9130
9130
|
W($, {
|
|
9131
9131
|
name: "undo",
|
|
9132
9132
|
size: "sm",
|
|
9133
9133
|
color: "typo-tertiary"
|
|
9134
9134
|
})
|
|
9135
|
-
], 8, Mf)) :
|
|
9135
|
+
], 8, Mf)) : j("", !0)
|
|
9136
9136
|
]),
|
|
9137
9137
|
f("div", Lf, [
|
|
9138
9138
|
O(Ht)(M).control === "color" ? (h(), Se(Up, {
|
|
@@ -9141,18 +9141,18 @@ const Gd = { class: "flex h-full min-w-0 flex-col bg-fm-color-neutral-white" },
|
|
|
9141
9141
|
label: O(Ht)(M).label,
|
|
9142
9142
|
presets: s.value,
|
|
9143
9143
|
disabled: t.disabled,
|
|
9144
|
-
onUpdate: (
|
|
9144
|
+
onUpdate: (U) => r("change", { key: M, value: U })
|
|
9145
9145
|
}, null, 8, ["value", "label", "presets", "disabled", "onUpdate"])) : (h(), Se(gf, {
|
|
9146
9146
|
key: 1,
|
|
9147
9147
|
spec: O(Ht)(M),
|
|
9148
9148
|
value: t.values[M] ?? "",
|
|
9149
9149
|
"font-presets": o.value,
|
|
9150
9150
|
disabled: t.disabled,
|
|
9151
|
-
onUpdate: (
|
|
9151
|
+
onUpdate: (U) => r("change", { key: M, value: U })
|
|
9152
9152
|
}, null, 8, ["spec", "value", "font-presets", "disabled", "onUpdate"]))
|
|
9153
9153
|
])
|
|
9154
9154
|
], 2))), 128))
|
|
9155
|
-
])) :
|
|
9155
|
+
])) : j("", !0)
|
|
9156
9156
|
]))), 128))
|
|
9157
9157
|
]);
|
|
9158
9158
|
};
|
|
@@ -9195,10 +9195,7 @@ const Uf = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
9195
9195
|
}, Yf = { class: "flex min-h-0 flex-col gap-6 overflow-y-auto p-[8px]" }, Xf = { class: "flex min-w-0 items-center gap-6" }, Jf = ["aria-label", "onClick"], Qf = ["onClick"], eh = ["aria-pressed", "aria-label", "onClick"], th = {
|
|
9196
9196
|
key: 0,
|
|
9197
9197
|
class: "preview__mini-dot"
|
|
9198
|
-
}, nh = ["
|
|
9199
|
-
key: 0,
|
|
9200
|
-
class: "flex flex-wrap gap-[6px]"
|
|
9201
|
-
}, ih = ["src", "alt"], oh = ["aria-label", "onClick"], lh = {
|
|
9198
|
+
}, nh = ["onClick"], rh = ["onUpdate:modelValue", "placeholder", "onPaste", "onDrop"], sh = { class: "flex flex-wrap items-center gap-[6px]" }, ah = ["disabled", "title", "aria-label", "onClick"], ih = ["src", "alt"], oh = ["aria-label", "onClick"], lh = {
|
|
9202
9199
|
key: 2,
|
|
9203
9200
|
class: "preview__error-tray"
|
|
9204
9201
|
}, ch = ["aria-expanded"], uh = {
|
|
@@ -9231,7 +9228,7 @@ const Uf = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
9231
9228
|
{ key: "iphone-15", label: "iPhone 15", width: 393, height: 852 },
|
|
9232
9229
|
{ key: "pixel-8", label: "Pixel 8", width: 412, height: 915 },
|
|
9233
9230
|
{ key: "galaxy-s24", label: "Galaxy S24", width: 360, height: 780 }
|
|
9234
|
-
],
|
|
9231
|
+
], U = M.map((g) => ({ label: `${g.label} · ${g.width}×${g.height}`, value: g.key })), ne = B(() => M.find((g) => g.key === o.value) ?? M[0]), ee = B(() => {
|
|
9235
9232
|
const g = ne.value.width + Hn, E = ne.value.height + Hn;
|
|
9236
9233
|
return {
|
|
9237
9234
|
"--device-width": `${ne.value.width}px`,
|
|
@@ -9606,7 +9603,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9606
9603
|
W(Z, {
|
|
9607
9604
|
modelValue: o.value,
|
|
9608
9605
|
"onUpdate:modelValue": E[0] || (E[0] = (G) => o.value = G),
|
|
9609
|
-
items: O(
|
|
9606
|
+
items: O(U),
|
|
9610
9607
|
width: 188,
|
|
9611
9608
|
disabled: !e.chat.previewUrl,
|
|
9612
9609
|
placeholder: "Device"
|
|
@@ -9657,7 +9654,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9657
9654
|
class: "preview__brandkit-panel",
|
|
9658
9655
|
onSaved: E[1] || (E[1] = (G) => e.chat.previewUrl && $e()),
|
|
9659
9656
|
onClose: E[2] || (E[2] = (G) => O(r).state.panelOpen = !1)
|
|
9660
|
-
})) :
|
|
9657
|
+
})) : j("", !0),
|
|
9661
9658
|
m.value.length ? (h(), _("section", Gf, [
|
|
9662
9659
|
f("div", Wf, [
|
|
9663
9660
|
f("span", Kf, I(m.value.length) + " annotation" + I(m.value.length === 1 ? "" : "s"), 1),
|
|
@@ -9698,7 +9695,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9698
9695
|
class: "hidden",
|
|
9699
9696
|
onChange: ye
|
|
9700
9697
|
}, null, 544),
|
|
9701
|
-
c.value ? (h(), _("p", Zf, I(c.value), 1)) :
|
|
9698
|
+
c.value ? (h(), _("p", Zf, I(c.value), 1)) : j("", !0),
|
|
9702
9699
|
f("div", Yf, [
|
|
9703
9700
|
(h(!0), _(Te, null, Re(m.value, (G) => {
|
|
9704
9701
|
var mt, Ut, Zt, $t;
|
|
@@ -9727,7 +9724,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9727
9724
|
Ke(I(kt(G.status)), 1)
|
|
9728
9725
|
]),
|
|
9729
9726
|
_: 2
|
|
9730
|
-
}, 1032, ["variant"])) :
|
|
9727
|
+
}, 1032, ["variant"])) : j("", !0),
|
|
9731
9728
|
(Ut = G.payload) != null && Ut.element ? (h(), _("button", {
|
|
9732
9729
|
key: 1,
|
|
9733
9730
|
type: "button",
|
|
@@ -9742,34 +9739,21 @@ ${Yu(g.map(ve))}`;
|
|
|
9742
9739
|
size: "sm",
|
|
9743
9740
|
color: ke(G.id) ? "primary" : "typo-secondary"
|
|
9744
9741
|
}, null, 8, ["color"]),
|
|
9745
|
-
G.changed && !ke(G.id) ? (h(), _("span", th)) :
|
|
9746
|
-
], 10, eh)) :
|
|
9747
|
-
f("button", {
|
|
9748
|
-
type: "button",
|
|
9749
|
-
class: "preview__mini-icon-button",
|
|
9750
|
-
disabled: pe.value || t.chat.sending,
|
|
9751
|
-
title: pe.value ? `Up to ${O(rn)} images per message` : "Attach an image — or paste / drop one on the note",
|
|
9752
|
-
"aria-label": `Attach an image to annotation #${G.id}`,
|
|
9753
|
-
onClick: (Je) => ce(G)
|
|
9754
|
-
}, [
|
|
9755
|
-
W(he, {
|
|
9756
|
-
name: "add_photo_alternate",
|
|
9757
|
-
size: "sm",
|
|
9758
|
-
color: pe.value || t.chat.sending ? "typo-disabled" : "typo-secondary"
|
|
9759
|
-
}, null, 8, ["color"])
|
|
9760
|
-
], 8, nh),
|
|
9742
|
+
G.changed && !ke(G.id) ? (h(), _("span", th)) : j("", !0)
|
|
9743
|
+
], 10, eh)) : j("", !0),
|
|
9761
9744
|
f("button", {
|
|
9762
9745
|
type: "button",
|
|
9763
|
-
class: "preview__mini-icon-button",
|
|
9746
|
+
class: "preview__mini-icon-button preview__mini-icon-button--danger",
|
|
9747
|
+
title: "Remove annotation",
|
|
9764
9748
|
"aria-label": "Remove annotation",
|
|
9765
9749
|
onClick: (Je) => k(G.id)
|
|
9766
9750
|
}, [
|
|
9767
9751
|
W(he, {
|
|
9768
9752
|
name: "close",
|
|
9769
9753
|
size: "sm",
|
|
9770
|
-
color: "typo-
|
|
9754
|
+
color: "typo-tertiary"
|
|
9771
9755
|
})
|
|
9772
|
-
], 8,
|
|
9756
|
+
], 8, nh)
|
|
9773
9757
|
]),
|
|
9774
9758
|
Yn(f("textarea", {
|
|
9775
9759
|
"onUpdate:modelValue": (Je) => G.feedback = Je,
|
|
@@ -9780,10 +9764,25 @@ ${Yu(g.map(ve))}`;
|
|
|
9780
9764
|
onDragover: E[3] || (E[3] = Zn(() => {
|
|
9781
9765
|
}, ["prevent"])),
|
|
9782
9766
|
onDrop: (Je) => ot(Je, G)
|
|
9783
|
-
}, null, 40,
|
|
9767
|
+
}, null, 40, rh), [
|
|
9784
9768
|
[Xn, G.feedback]
|
|
9785
9769
|
]),
|
|
9786
|
-
|
|
9770
|
+
f("div", sh, [
|
|
9771
|
+
f("button", {
|
|
9772
|
+
type: "button",
|
|
9773
|
+
class: "preview__attachment-add",
|
|
9774
|
+
disabled: pe.value || t.chat.sending,
|
|
9775
|
+
title: pe.value ? `Up to ${O(rn)} images per message` : "Attach an image — or paste / drop one on the note",
|
|
9776
|
+
"aria-label": `Attach an image to annotation #${G.id}`,
|
|
9777
|
+
onClick: (Je) => ce(G)
|
|
9778
|
+
}, [
|
|
9779
|
+
W(he, {
|
|
9780
|
+
name: "add_photo_alternate",
|
|
9781
|
+
size: "sm",
|
|
9782
|
+
color: pe.value || t.chat.sending ? "typo-disabled" : "typo-secondary"
|
|
9783
|
+
}, null, 8, ["color"]),
|
|
9784
|
+
E[7] || (E[7] = f("span", null, "Image", -1))
|
|
9785
|
+
], 8, ah),
|
|
9787
9786
|
(h(!0), _(Te, null, Re(G.attachments, (Je) => (h(), _("div", {
|
|
9788
9787
|
key: Je.id,
|
|
9789
9788
|
class: "relative"
|
|
@@ -9806,9 +9805,9 @@ ${Yu(g.map(ve))}`;
|
|
|
9806
9805
|
})
|
|
9807
9806
|
], 8, oh)
|
|
9808
9807
|
]))), 128))
|
|
9809
|
-
])
|
|
9808
|
+
]),
|
|
9810
9809
|
ke(G.id) && (($t = G.payload) != null && $t.element) ? (h(), Se(zf, {
|
|
9811
|
-
key:
|
|
9810
|
+
key: 0,
|
|
9812
9811
|
element: G.payload.element,
|
|
9813
9812
|
values: G.draftStyles,
|
|
9814
9813
|
"before-values": G.beforeStyles,
|
|
@@ -9819,11 +9818,11 @@ ${Yu(g.map(ve))}`;
|
|
|
9819
9818
|
onChange: At,
|
|
9820
9819
|
onReset: Lt,
|
|
9821
9820
|
onResetAll: Dt
|
|
9822
|
-
}, null, 8, ["element", "values", "before-values", "text-value", "before-text", "presets", "disabled"])) :
|
|
9821
|
+
}, null, 8, ["element", "values", "before-values", "text-value", "before-text", "presets", "disabled"])) : j("", !0)
|
|
9823
9822
|
], 2);
|
|
9824
9823
|
}), 128))
|
|
9825
9824
|
])
|
|
9826
|
-
])) :
|
|
9825
|
+
])) : j("", !0),
|
|
9827
9826
|
S.value.length ? (h(), _("section", lh, [
|
|
9828
9827
|
f("button", {
|
|
9829
9828
|
type: "button",
|
|
@@ -9849,9 +9848,9 @@ ${Yu(g.map(ve))}`;
|
|
|
9849
9848
|
]),
|
|
9850
9849
|
f("div", null, [
|
|
9851
9850
|
Ke(I(G.message), 1),
|
|
9852
|
-
G.count > 1 ? (h(), _("span", ph, " ×" + I(G.count), 1)) :
|
|
9851
|
+
G.count > 1 ? (h(), _("span", ph, " ×" + I(G.count), 1)) : j("", !0)
|
|
9853
9852
|
]),
|
|
9854
|
-
te(G) ? (h(), _("div", fh, I(te(G)), 1)) :
|
|
9853
|
+
te(G) ? (h(), _("div", fh, I(te(G)), 1)) : j("", !0)
|
|
9855
9854
|
]))), 128)),
|
|
9856
9855
|
f("button", {
|
|
9857
9856
|
type: "button",
|
|
@@ -9861,15 +9860,15 @@ ${Yu(g.map(ve))}`;
|
|
|
9861
9860
|
S.value = [], T.value = !1;
|
|
9862
9861
|
})
|
|
9863
9862
|
}, "Clear")
|
|
9864
|
-
])) :
|
|
9865
|
-
])) :
|
|
9863
|
+
])) : j("", !0)
|
|
9864
|
+
])) : j("", !0),
|
|
9866
9865
|
e.chat.previewUrl ? (h(), _("div", hh, [
|
|
9867
9866
|
f("div", {
|
|
9868
9867
|
class: "preview__device-stage",
|
|
9869
9868
|
style: Pt(ee.value)
|
|
9870
9869
|
}, [
|
|
9871
9870
|
f("div", mh, [
|
|
9872
|
-
E[
|
|
9871
|
+
E[9] || (E[9] = f("div", { class: "preview__speaker" }, null, -1)),
|
|
9873
9872
|
(h(), _("iframe", {
|
|
9874
9873
|
ref_key: "iframeEl",
|
|
9875
9874
|
ref: u,
|
|
@@ -9885,9 +9884,9 @@ ${Yu(g.map(ve))}`;
|
|
|
9885
9884
|
key: 0,
|
|
9886
9885
|
class: Ae(["preview__annotation-hover", { "preview__annotation-tag-inside": F(tt.value.rect) }]),
|
|
9887
9886
|
style: Pt(Ge.value)
|
|
9888
|
-
}, [...E[
|
|
9887
|
+
}, [...E[8] || (E[8] = [
|
|
9889
9888
|
f("span", null, "Inspect", -1)
|
|
9890
|
-
])], 6)) :
|
|
9889
|
+
])], 6)) : j("", !0),
|
|
9891
9890
|
(h(!0), _(Te, null, Re(m.value, (G) => (h(), _("div", {
|
|
9892
9891
|
key: `marker-${G.id}`,
|
|
9893
9892
|
class: Ae(["preview__annotation-marker", { "preview__annotation-marker--selected": i.value === G.id }]),
|
|
@@ -9899,7 +9898,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9899
9898
|
style: Pt(Ie.value)
|
|
9900
9899
|
}, [
|
|
9901
9900
|
f("span", null, "#" + I(_e.value.id), 1)
|
|
9902
|
-
], 6)) :
|
|
9901
|
+
], 6)) : j("", !0)
|
|
9903
9902
|
])
|
|
9904
9903
|
])
|
|
9905
9904
|
], 4)
|
|
@@ -9927,7 +9926,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9927
9926
|
]);
|
|
9928
9927
|
};
|
|
9929
9928
|
}
|
|
9930
|
-
}), kh = /* @__PURE__ */ Mt(wh, [["__scopeId", "data-v-
|
|
9929
|
+
}), kh = /* @__PURE__ */ Mt(wh, [["__scopeId", "data-v-7597f131"]]), Sh = { class: "flex justify-end gap-8" }, Th = /* @__PURE__ */ pt({
|
|
9931
9930
|
__name: "RenameSessionDialog",
|
|
9932
9931
|
props: {
|
|
9933
9932
|
initialTitle: {}
|
|
@@ -10000,8 +9999,8 @@ ${Yu(g.map(ve))}`;
|
|
|
10000
9999
|
w.addEventListener("abort", M);
|
|
10001
10000
|
try {
|
|
10002
10001
|
for (; ; ) {
|
|
10003
|
-
const { done:
|
|
10004
|
-
if (
|
|
10002
|
+
const { done: U, value: ne } = await $.read();
|
|
10003
|
+
if (U)
|
|
10005
10004
|
break;
|
|
10006
10005
|
C += ne;
|
|
10007
10006
|
const ee = C.split(`
|
|
@@ -11423,7 +11422,7 @@ function wm(t) {
|
|
|
11423
11422
|
return t.type === "text" ? { kind: "text", id: t.id, text: t.text } : t.type === "reasoning" ? { kind: "reasoning", id: t.id, text: t.text } : t.type === "tool" ? { kind: "tool", id: t.id, tool: t.tool, state: t.state } : t.type === "file" ? { kind: "file", id: t.id, mime: t.mime, filename: t.filename, url: t.url } : null;
|
|
11424
11423
|
}
|
|
11425
11424
|
function km() {
|
|
11426
|
-
const t = ae("idle"), e = ae("No session selected"), n = ae(null), r = ae(!1), s = ae(null), o = ae(!1), l = ae(!1), a = ae(null), i = ae(null), u = ae(null), p = ae(!1), v = ae(!1), m = ae(0), S = ae(null), c = ae(!1), y = ae(!1), w = ae([]), T = qn({}), x = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Set(), C = ae(da()), M = B(() => C.value.pending.map((k) => k.message)),
|
|
11425
|
+
const t = ae("idle"), e = ae("No session selected"), n = ae(null), r = ae(!1), s = ae(null), o = ae(!1), l = ae(!1), a = ae(null), i = ae(null), u = ae(null), p = ae(!1), v = ae(!1), m = ae(0), S = ae(null), c = ae(!1), y = ae(!1), w = ae([]), T = qn({}), x = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Set(), C = ae(da()), M = B(() => C.value.pending.map((k) => k.message)), U = ae(0);
|
|
11427
11426
|
let ne = null, ee = 0, _e = 0, Ce = !1;
|
|
11428
11427
|
const V = gm(), Q = /* @__PURE__ */ new Map();
|
|
11429
11428
|
let pe = null, we = null;
|
|
@@ -11440,7 +11439,7 @@ function km() {
|
|
|
11440
11439
|
const ve = oe.parts.find((Be) => Be.id === K.partID);
|
|
11441
11440
|
ve && (ve.kind === "text" || ve.kind === "reasoning") ? ve.text += K.text : ve || oe.parts.push({ kind: "text", id: K.partID, text: K.text }), R = !0;
|
|
11442
11441
|
}
|
|
11443
|
-
Q.size === 0 && ge(), R &&
|
|
11442
|
+
Q.size === 0 && ge(), R && U.value++;
|
|
11444
11443
|
}
|
|
11445
11444
|
function Y() {
|
|
11446
11445
|
Q.clear(), ge();
|
|
@@ -11455,7 +11454,7 @@ function km() {
|
|
|
11455
11454
|
function me() {
|
|
11456
11455
|
Y(), w.value = [];
|
|
11457
11456
|
for (const k of Object.keys(T)) delete T[k];
|
|
11458
|
-
x.clear(), $.clear(),
|
|
11457
|
+
x.clear(), $.clear(), U.value++;
|
|
11459
11458
|
}
|
|
11460
11459
|
function N() {
|
|
11461
11460
|
_e++, C.value = da(), Ce = !1, o.value = !1, l.value = !1;
|
|
@@ -11477,7 +11476,7 @@ function km() {
|
|
|
11477
11476
|
diffs: [],
|
|
11478
11477
|
busy: !0
|
|
11479
11478
|
};
|
|
11480
|
-
return T[k] = oe, w.value.push(k), x.set(k, k),
|
|
11479
|
+
return T[k] = oe, w.value.push(k), x.set(k, k), U.value++, oe;
|
|
11481
11480
|
}
|
|
11482
11481
|
function Fe(k) {
|
|
11483
11482
|
return w.value.map((R) => T[R]).filter((R) => (R == null ? void 0 : R.role) === "assistant" && R.parentId === k);
|
|
@@ -11511,17 +11510,17 @@ function km() {
|
|
|
11511
11510
|
const H = Fe(k), K = H[H.length - 1];
|
|
11512
11511
|
if (!K) return;
|
|
11513
11512
|
const oe = R.map(ze).filter((ve) => !!ve);
|
|
11514
|
-
K.diffs = oe, K.changedFiles = oe.map((ve) => ve.file),
|
|
11513
|
+
K.diffs = oe, K.changedFiles = oe.map((ve) => ve.file), U.value++;
|
|
11515
11514
|
}
|
|
11516
11515
|
function yt(k, R) {
|
|
11517
11516
|
if (R.type === "patch") {
|
|
11518
|
-
k.changedFiles = [.../* @__PURE__ */ new Set([...k.changedFiles, ...R.files])], k.parentId && Me(k.parentId),
|
|
11517
|
+
k.changedFiles = [.../* @__PURE__ */ new Set([...k.changedFiles, ...R.files])], k.parentId && Me(k.parentId), U.value++;
|
|
11519
11518
|
return;
|
|
11520
11519
|
}
|
|
11521
11520
|
const H = wm(R);
|
|
11522
11521
|
if (!H) return;
|
|
11523
11522
|
const K = k.parts.findIndex((oe) => oe.id === H.id);
|
|
11524
|
-
K === -1 ? k.parts.push(H) : k.parts[K] = H,
|
|
11523
|
+
K === -1 ? k.parts.push(H) : k.parts[K] = H, U.value++;
|
|
11525
11524
|
}
|
|
11526
11525
|
function ft(k) {
|
|
11527
11526
|
if (k.sessionID !== a.value) return;
|
|
@@ -11594,7 +11593,7 @@ function km() {
|
|
|
11594
11593
|
const R = pa(C.value);
|
|
11595
11594
|
C.value = R.queue;
|
|
11596
11595
|
const H = R.item;
|
|
11597
|
-
H && (H.failureText ? (H.message.promptState = "failed", H.message.errorText = H.failureText) : delete H.message.promptState,
|
|
11596
|
+
H && (H.failureText ? (H.message.promptState = "failed", H.message.errorText = H.failureText) : delete H.message.promptState, U.value++), k && Ne();
|
|
11598
11597
|
}
|
|
11599
11598
|
function de() {
|
|
11600
11599
|
let k = null;
|
|
@@ -11604,7 +11603,7 @@ function km() {
|
|
|
11604
11603
|
(K == null ? void 0 : K.role) === "assistant" && (K.busy = !1);
|
|
11605
11604
|
}
|
|
11606
11605
|
const R = C.value.active;
|
|
11607
|
-
R ? R.accepted ? (k = R.message.id, Ue(!1)) : R.idleObserved = !0 : Ne(), k && le(k).finally(() => Ne()),
|
|
11606
|
+
R ? R.accepted ? (k = R.message.id, Ue(!1)) : R.idleObserved = !0 : Ne(), k && le(k).finally(() => Ne()), U.value++;
|
|
11608
11607
|
}
|
|
11609
11608
|
async function le(k) {
|
|
11610
11609
|
if (!(!u.value || !i.value || p.value)) {
|
|
@@ -11672,7 +11671,7 @@ function km() {
|
|
|
11672
11671
|
t.value === "ready" && (e.value = "Ready"), de();
|
|
11673
11672
|
else if (K.type === "session.error" && (!K.properties.sessionID || K.properties.sessionID === a.value)) {
|
|
11674
11673
|
const ve = En(K.properties.error), Be = C.value.active;
|
|
11675
|
-
Be && (Be.failureText = ve, Be.message.promptState = "failed",
|
|
11674
|
+
Be && (Be.failureText = ve, Be.message.promptState = "failed", U.value++), e.value = `Session error: ${ve}`;
|
|
11676
11675
|
}
|
|
11677
11676
|
}
|
|
11678
11677
|
if (k !== ee) return;
|
|
@@ -11801,12 +11800,12 @@ function km() {
|
|
|
11801
11800
|
}
|
|
11802
11801
|
function ye(k) {
|
|
11803
11802
|
const { message: R } = k;
|
|
11804
|
-
T[R.key] = R, w.value.push(R.key),
|
|
11803
|
+
T[R.key] = R, w.value.push(R.key), U.value++;
|
|
11805
11804
|
}
|
|
11806
11805
|
function ke(k, R) {
|
|
11807
11806
|
k.failureText = Ye(R), k.message.promptState = "failed", k.message.errorText = k.failureText, l.value = !1;
|
|
11808
11807
|
const H = pa(C.value);
|
|
11809
|
-
C.value = H.queue, e.value = `Failed to send: ${k.failureText}`,
|
|
11808
|
+
C.value = H.queue, e.value = `Failed to send: ${k.failureText}`, U.value++;
|
|
11810
11809
|
}
|
|
11811
11810
|
async function Ne() {
|
|
11812
11811
|
if (Ce || C.value.active || l.value || c.value || !ne || !a.value || p.value || t.value !== "ready") return;
|
|
@@ -11839,7 +11838,7 @@ function km() {
|
|
|
11839
11838
|
}
|
|
11840
11839
|
});
|
|
11841
11840
|
if (g) throw new Error(En(g));
|
|
11842
|
-
R.accepted = !0, R.message.promptState = R.failureText ? "failed" : "running",
|
|
11841
|
+
R.accepted = !0, R.message.promptState = R.failureText ? "failed" : "running", U.value++, R.idleObserved && (Ue(!1), le(xt).finally(() => Ne()));
|
|
11843
11842
|
} catch (ve) {
|
|
11844
11843
|
H === _e && C.value.active === R && ke(R, ve);
|
|
11845
11844
|
} finally {
|
|
@@ -11879,7 +11878,7 @@ function km() {
|
|
|
11879
11878
|
attachments: R,
|
|
11880
11879
|
accepted: !1,
|
|
11881
11880
|
idleObserved: !1
|
|
11882
|
-
}),
|
|
11881
|
+
}), U.value++, Ne(), !0;
|
|
11883
11882
|
}
|
|
11884
11883
|
async function At(k) {
|
|
11885
11884
|
if (!u.value || !i.value || !a.value || p.value || l.value || c.value) return !1;
|
|
@@ -11941,7 +11940,7 @@ function km() {
|
|
|
11941
11940
|
messagesOrder: w,
|
|
11942
11941
|
messagesByKey: T,
|
|
11943
11942
|
queuedMessages: M,
|
|
11944
|
-
revision:
|
|
11943
|
+
revision: U,
|
|
11945
11944
|
init: We,
|
|
11946
11945
|
reset: F,
|
|
11947
11946
|
suspend: vt,
|
|
@@ -12095,7 +12094,7 @@ function Pm() {
|
|
|
12095
12094
|
const F = r.value.find((ue) => ue.id === N);
|
|
12096
12095
|
u.value = N, await C(F);
|
|
12097
12096
|
}
|
|
12098
|
-
async function
|
|
12097
|
+
async function U(N = {}) {
|
|
12099
12098
|
if (c(), !m.value)
|
|
12100
12099
|
throw new Error("Set up the v2 project before creating a session");
|
|
12101
12100
|
a.value = !0;
|
|
@@ -12302,7 +12301,7 @@ function Pm() {
|
|
|
12302
12301
|
refreshSessions: T,
|
|
12303
12302
|
refreshReleases: x,
|
|
12304
12303
|
selectRelease: M,
|
|
12305
|
-
createSession:
|
|
12304
|
+
createSession: U,
|
|
12306
12305
|
sessionChanges: ne,
|
|
12307
12306
|
refreshWorkspaceState: ee,
|
|
12308
12307
|
refreshCheckpoints: _e,
|
|
@@ -12400,7 +12399,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12400
12399
|
setup(t) {
|
|
12401
12400
|
const e = Br(), n = km(), r = Pm(), s = ba(), o = ae("workspace"), l = ae(!1), a = ae(yi(ga, !1)), i = ae(!1), u = ae(null), p = ae(Bf(Cr, yb)), v = ae(!1);
|
|
12402
12401
|
let m = null, S = null, c = null, y = "", w = "", T = null;
|
|
12403
|
-
const x = B(() => r.sessions.find((b) => b.status === "active") ?? null), $ = ae(!1), C = ae(!1), M = ae(!1),
|
|
12402
|
+
const x = B(() => r.sessions.find((b) => b.status === "active") ?? null), $ = ae(!1), C = ae(!1), M = ae(!1), U = ae(!1), ne = ae(!1), ee = B(
|
|
12404
12403
|
() => r.sessions.find((b) => b.id === n.workspaceSessionId) ?? x.value
|
|
12405
12404
|
), _e = B(
|
|
12406
12405
|
() => ee.value ? se(ee.value) : "Workspace"
|
|
@@ -12486,7 +12485,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12486
12485
|
]);
|
|
12487
12486
|
}
|
|
12488
12487
|
async function te() {
|
|
12489
|
-
if (
|
|
12488
|
+
if (U.value = !1, r.syncBusiness(), await r.refreshProject().catch((z) => {
|
|
12490
12489
|
r.statusText = Ye(z);
|
|
12491
12490
|
}), !r.isProvisioned) {
|
|
12492
12491
|
r.sessions = [], r.releases = [];
|
|
@@ -12542,7 +12541,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12542
12541
|
async function Ue(b = "save") {
|
|
12543
12542
|
if (!r.isProvisioned) return;
|
|
12544
12543
|
const z = await r.createSession({ archiveCodeAction: b });
|
|
12545
|
-
o.value = "workspace", M.value = !1,
|
|
12544
|
+
o.value = "workspace", M.value = !1, U.value = !1, await n.init({ businessId: r.businessId, sessionId: z.sessionId }), await ie().catch(() => {
|
|
12546
12545
|
});
|
|
12547
12546
|
}
|
|
12548
12547
|
async function de() {
|
|
@@ -12706,16 +12705,16 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12706
12705
|
return b.status === "rolled_back" ? "Restore live" : "Set live";
|
|
12707
12706
|
}
|
|
12708
12707
|
async function oe(b) {
|
|
12709
|
-
$.value = !1, o.value = "workspace", M.value = !1,
|
|
12708
|
+
$.value = !1, o.value = "workspace", M.value = !1, U.value = !1, await n.init({ businessId: r.businessId, sessionId: b.id, readOnly: b.status !== "active" }), await ie().catch(() => {
|
|
12710
12709
|
});
|
|
12711
12710
|
}
|
|
12712
12711
|
async function ve(b) {
|
|
12713
|
-
$.value = !1, await r.resumeSession(b.id), o.value = "workspace", M.value = !1,
|
|
12712
|
+
$.value = !1, await r.resumeSession(b.id), o.value = "workspace", M.value = !1, U.value = !1, await n.init({ businessId: r.businessId, sessionId: b.id }), await ie().catch(() => {
|
|
12714
12713
|
});
|
|
12715
12714
|
}
|
|
12716
12715
|
async function Be() {
|
|
12717
12716
|
const b = n.workspaceSessionId;
|
|
12718
|
-
b && (await r.resumeSession(b), M.value = !1,
|
|
12717
|
+
b && (await r.resumeSession(b), M.value = !1, U.value = !1, await n.init({ businessId: r.businessId, sessionId: b }), await ie().catch(() => {
|
|
12719
12718
|
}));
|
|
12720
12719
|
}
|
|
12721
12720
|
function Ze(b) {
|
|
@@ -12733,7 +12732,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12733
12732
|
});
|
|
12734
12733
|
}
|
|
12735
12734
|
function xt() {
|
|
12736
|
-
|
|
12735
|
+
U.value = !0, n.suspend("Paused after 30 minutes of inactivity");
|
|
12737
12736
|
}
|
|
12738
12737
|
async function g() {
|
|
12739
12738
|
if (!ne.value) {
|
|
@@ -12741,13 +12740,13 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12741
12740
|
try {
|
|
12742
12741
|
const b = n.workspaceSessionId;
|
|
12743
12742
|
if (!b) {
|
|
12744
|
-
|
|
12743
|
+
U.value = !1, await te();
|
|
12745
12744
|
return;
|
|
12746
12745
|
}
|
|
12747
12746
|
await r.refreshSessions().catch(() => {
|
|
12748
12747
|
});
|
|
12749
12748
|
const z = r.sessions.find((De) => De.id === b);
|
|
12750
|
-
|
|
12749
|
+
U.value = !1, z && z.status !== "active" ? (M.value = !0, await n.init({ businessId: r.businessId, sessionId: b, readOnly: !0 })) : await n.init({ businessId: r.businessId, sessionId: b });
|
|
12751
12750
|
} finally {
|
|
12752
12751
|
ne.value = !1;
|
|
12753
12752
|
}
|
|
@@ -12757,7 +12756,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12757
12756
|
timeoutMs: xb,
|
|
12758
12757
|
// Only a live workspace generates keep-alive traffic worth stopping; the
|
|
12759
12758
|
// read-only/empty states are already quiet.
|
|
12760
|
-
isEligible: () => !
|
|
12759
|
+
isEligible: () => !U.value && !n.readOnly && !!n.workspaceSessionId && n.status === "ready",
|
|
12761
12760
|
// Submission is short-lived now that prompts use promptAsync; agentBusy and
|
|
12762
12761
|
// queued prompts keep idle suspension from interrupting FIFO work.
|
|
12763
12762
|
isActive: () => n.sending || n.agentBusy || n.queuedMessages.length > 0 || Y.value || ne.value,
|
|
@@ -12836,8 +12835,8 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12836
12835
|
color: o.value === P.key ? "primary" : "typo-secondary",
|
|
12837
12836
|
size: "md"
|
|
12838
12837
|
}, null, 8, ["name", "color"]),
|
|
12839
|
-
F.value ?
|
|
12840
|
-
!F.value && P.key === "sessions" ? (h(), _("span", Bm, I(O(r).sessions.length), 1)) :
|
|
12838
|
+
F.value ? j("", !0) : (h(), _("span", zm, I(P.label), 1)),
|
|
12839
|
+
!F.value && P.key === "sessions" ? (h(), _("span", Bm, I(O(r).sessions.length), 1)) : j("", !0)
|
|
12841
12840
|
], 10, Dm)), 64))
|
|
12842
12841
|
]),
|
|
12843
12842
|
f("div", Fm, [
|
|
@@ -12855,10 +12854,10 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12855
12854
|
name: "info",
|
|
12856
12855
|
size: "sm",
|
|
12857
12856
|
color: "typo-secondary"
|
|
12858
|
-
})) :
|
|
12859
|
-
F.value ?
|
|
12860
|
-
], 10, Um)) :
|
|
12861
|
-
O(r).isProvisioned ?
|
|
12857
|
+
})) : j("", !0),
|
|
12858
|
+
F.value ? j("", !0) : (h(), _("span", jm, I(O(r).statusText), 1))
|
|
12859
|
+
], 10, Um)) : j("", !0),
|
|
12860
|
+
O(r).isProvisioned ? j("", !0) : (h(), Se(G, {
|
|
12862
12861
|
key: 1,
|
|
12863
12862
|
icon: "source",
|
|
12864
12863
|
label: F.value ? void 0 : "Set up v2 project",
|
|
@@ -12898,7 +12897,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12898
12897
|
Ke(I(O(Ar)(ee.value.status)), 1)
|
|
12899
12898
|
]),
|
|
12900
12899
|
_: 1
|
|
12901
|
-
}, 8, ["variant"])) :
|
|
12900
|
+
}, 8, ["variant"])) : j("", !0),
|
|
12902
12901
|
W(De, {
|
|
12903
12902
|
name: "expand_more",
|
|
12904
12903
|
color: "typo-secondary",
|
|
@@ -12912,8 +12911,8 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12912
12911
|
title: "Rename session",
|
|
12913
12912
|
"aria-label": "Rename session",
|
|
12914
12913
|
onClick: z[1] || (z[1] = (P) => Ze(ee.value))
|
|
12915
|
-
})) :
|
|
12916
|
-
O(n).readOnly ?
|
|
12914
|
+
})) : j("", !0),
|
|
12915
|
+
O(n).readOnly ? j("", !0) : (h(), Se(Tt, {
|
|
12917
12916
|
key: 1,
|
|
12918
12917
|
variant: O(Om)(O(n).status),
|
|
12919
12918
|
class: "min-w-0 max-w-[240px]"
|
|
@@ -12923,7 +12922,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12923
12922
|
key: 0,
|
|
12924
12923
|
size: "md",
|
|
12925
12924
|
color: "system-warning-300"
|
|
12926
|
-
})) :
|
|
12925
|
+
})) : j("", !0),
|
|
12927
12926
|
f("span", ng, I(O(n).statusText), 1)
|
|
12928
12927
|
]),
|
|
12929
12928
|
_: 1
|
|
@@ -12943,12 +12942,12 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12943
12942
|
key: 0,
|
|
12944
12943
|
size: "md",
|
|
12945
12944
|
color: "neutral-gray-300"
|
|
12946
|
-
})) :
|
|
12945
|
+
})) : j("", !0),
|
|
12947
12946
|
f("span", sg, I(me.value), 1)
|
|
12948
12947
|
]),
|
|
12949
12948
|
_: 1
|
|
12950
12949
|
}, 8, ["variant"])
|
|
12951
|
-
])) :
|
|
12950
|
+
])) : j("", !0),
|
|
12952
12951
|
ee.value && ee.value.status === "active" ? (h(), Se(G, {
|
|
12953
12952
|
key: 1,
|
|
12954
12953
|
icon: "save",
|
|
@@ -12957,7 +12956,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12957
12956
|
loading: O(r).checkpointBusy,
|
|
12958
12957
|
disabled: O(n).agentBusy || O(n).checkpointSaving || O(r).checkpointBusy,
|
|
12959
12958
|
onClick: Ge
|
|
12960
|
-
}, null, 8, ["loading", "disabled"])) :
|
|
12959
|
+
}, null, 8, ["loading", "disabled"])) : j("", !0),
|
|
12961
12960
|
ee.value && ee.value.status === "active" ? (h(), Se(G, {
|
|
12962
12961
|
key: 2,
|
|
12963
12962
|
icon: "build",
|
|
@@ -12966,7 +12965,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12966
12965
|
disabled: !re.value,
|
|
12967
12966
|
loading: O(r).busy,
|
|
12968
12967
|
onClick: tt
|
|
12969
|
-
}, null, 8, ["disabled", "loading"])) :
|
|
12968
|
+
}, null, 8, ["disabled", "loading"])) : j("", !0)
|
|
12970
12969
|
]),
|
|
12971
12970
|
$.value ? (h(), _(Te, { key: 0 }, [
|
|
12972
12971
|
f("div", {
|
|
@@ -12993,9 +12992,9 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
12993
12992
|
_: 2
|
|
12994
12993
|
}, 1032, ["variant"])
|
|
12995
12994
|
], 10, ig))), 128)),
|
|
12996
|
-
O(r).sessions.length ?
|
|
12995
|
+
O(r).sessions.length ? j("", !0) : (h(), _("div", ug, " No sessions yet. "))
|
|
12997
12996
|
])
|
|
12998
|
-
], 64)) :
|
|
12997
|
+
], 64)) : j("", !0)
|
|
12999
12998
|
]),
|
|
13000
12999
|
C.value && ee.value ? (h(), _("section", dg, [
|
|
13001
13000
|
f("div", pg, [
|
|
@@ -13010,7 +13009,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13010
13009
|
onClick: z[3] || (z[3] = (P) => ie(!0))
|
|
13011
13010
|
}, null, 8, ["loading"])
|
|
13012
13011
|
]),
|
|
13013
|
-
(Zt = O(r).workspaceState) != null && Zt.checkpointError || O(n).checkpointError ? (h(), _("div", fg, I((($t = O(r).workspaceState) == null ? void 0 : $t.checkpointError) || O(n).checkpointError), 1)) :
|
|
13012
|
+
(Zt = O(r).workspaceState) != null && Zt.checkpointError || O(n).checkpointError ? (h(), _("div", fg, I((($t = O(r).workspaceState) == null ? void 0 : $t.checkpointError) || O(n).checkpointError), 1)) : j("", !0),
|
|
13014
13013
|
O(r).checkpoints.length ? (h(), _("div", hg, [
|
|
13015
13014
|
(h(!0), _(Te, null, Re(O(r).checkpoints, (P) => (h(), _("div", {
|
|
13016
13015
|
key: P.id,
|
|
@@ -13041,11 +13040,11 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13041
13040
|
f("div", yg, [
|
|
13042
13041
|
f("span", null, I(he(P.created_at)), 1),
|
|
13043
13042
|
f("span", vg, I(P.id), 1),
|
|
13044
|
-
P.verified_remote_sha ? (h(), _("span", xg, I(P.verified_remote_sha.slice(0, 7)), 1)) :
|
|
13045
|
-
P.file_count ? (h(), _("span", _g, I(P.file_count) + " file" + I(P.file_count === 1 ? "" : "s") + " · +" + I(P.additions) + " −" + I(P.deletions), 1)) :
|
|
13043
|
+
P.verified_remote_sha ? (h(), _("span", xg, I(P.verified_remote_sha.slice(0, 7)), 1)) : j("", !0),
|
|
13044
|
+
P.file_count ? (h(), _("span", _g, I(P.file_count) + " file" + I(P.file_count === 1 ? "" : "s") + " · +" + I(P.additions) + " −" + I(P.deletions), 1)) : j("", !0)
|
|
13046
13045
|
]),
|
|
13047
|
-
P.summary ? (h(), _("p", wg, I(P.summary), 1)) :
|
|
13048
|
-
P.error_message ? (h(), _("p", kg, I(P.error_stage) + ": " + I(P.error_message), 1)) :
|
|
13046
|
+
P.summary ? (h(), _("p", wg, I(P.summary), 1)) : j("", !0),
|
|
13047
|
+
P.error_message ? (h(), _("p", kg, I(P.error_stage) + ": " + I(P.error_message), 1)) : j("", !0)
|
|
13049
13048
|
]),
|
|
13050
13049
|
W(G, {
|
|
13051
13050
|
label: "Restore",
|
|
@@ -13056,7 +13055,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13056
13055
|
}, null, 8, ["disabled", "onClick"])
|
|
13057
13056
|
]))), 128))
|
|
13058
13057
|
])) : (h(), _("div", Sg, " No checkpoints yet. Save manually or complete an agent turn to create one. "))
|
|
13059
|
-
])) :
|
|
13058
|
+
])) : j("", !0),
|
|
13060
13059
|
O(n).readOnly && O(n).workspaceSessionId ? (h(), _("div", Tg, [
|
|
13061
13060
|
f("span", Eg, I(M.value ? "This session was archived after being idle. Resume it to keep working with the agent." : "You are viewing an archived session. Resume it to continue working with the agent."), 1),
|
|
13062
13061
|
W(G, {
|
|
@@ -13065,15 +13064,15 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13065
13064
|
loading: O(r).busy,
|
|
13066
13065
|
onClick: Be
|
|
13067
13066
|
}, null, 8, ["loading"])
|
|
13068
|
-
])) :
|
|
13067
|
+
])) : j("", !0),
|
|
13069
13068
|
f("div", {
|
|
13070
13069
|
ref_key: "workspaceSplitEl",
|
|
13071
13070
|
ref: u,
|
|
13072
13071
|
class: "workspace__split relative flex min-h-0 min-w-0 flex-1",
|
|
13073
13072
|
style: Pt(ue.value)
|
|
13074
13073
|
}, [
|
|
13075
|
-
v.value ? (h(), _("div", Ag)) :
|
|
13076
|
-
|
|
13074
|
+
v.value ? (h(), _("div", Ag)) : j("", !0),
|
|
13075
|
+
U.value ? (h(), _("div", Cg, [
|
|
13077
13076
|
f("div", $g, [
|
|
13078
13077
|
W(De, {
|
|
13079
13078
|
name: "pause_circle",
|
|
@@ -13089,7 +13088,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13089
13088
|
onClick: g
|
|
13090
13089
|
}, null, 8, ["loading"])
|
|
13091
13090
|
])
|
|
13092
|
-
])) :
|
|
13091
|
+
])) : j("", !0),
|
|
13093
13092
|
W(tp, {
|
|
13094
13093
|
chat: O(n),
|
|
13095
13094
|
class: "workspace__chat shrink-0"
|
|
@@ -13158,7 +13157,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13158
13157
|
Ke(" Live ", -1)
|
|
13159
13158
|
])]),
|
|
13160
13159
|
_: 1
|
|
13161
|
-
})) :
|
|
13160
|
+
})) : j("", !0),
|
|
13162
13161
|
W(Tt, {
|
|
13163
13162
|
variant: O(Am)(Q.value),
|
|
13164
13163
|
size: "sm"
|
|
@@ -13191,7 +13190,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13191
13190
|
icon: "open_in_new",
|
|
13192
13191
|
variant: "tertiary",
|
|
13193
13192
|
onClick: ke
|
|
13194
|
-
})) :
|
|
13193
|
+
})) : j("", !0)
|
|
13195
13194
|
])
|
|
13196
13195
|
])
|
|
13197
13196
|
]),
|
|
@@ -13202,7 +13201,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13202
13201
|
we.value ? (h(), _("div", Kg, [
|
|
13203
13202
|
z[13] || (z[13] = Ke(" Live: ", -1)),
|
|
13204
13203
|
f("span", Vg, I(we.value.id), 1)
|
|
13205
|
-
])) :
|
|
13204
|
+
])) : j("", !0),
|
|
13206
13205
|
W(G, {
|
|
13207
13206
|
label: "Refresh",
|
|
13208
13207
|
icon: "refresh",
|
|
@@ -13274,7 +13273,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13274
13273
|
icon: "receipt_long",
|
|
13275
13274
|
variant: "tertiary",
|
|
13276
13275
|
onClick: (lt) => R(P)
|
|
13277
|
-
}, null, 8, ["onClick"])) :
|
|
13276
|
+
}, null, 8, ["onClick"])) : j("", !0)
|
|
13278
13277
|
])
|
|
13279
13278
|
], 2))), 128))
|
|
13280
13279
|
]))
|
|
@@ -13340,14 +13339,14 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13340
13339
|
Ke(I(P.release_count) + " release" + I(P.release_count > 1 ? "s" : ""), 1)
|
|
13341
13340
|
]),
|
|
13342
13341
|
_: 2
|
|
13343
|
-
}, 1024)) :
|
|
13342
|
+
}, 1024)) : j("", !0)
|
|
13344
13343
|
]),
|
|
13345
13344
|
f("div", pb, [
|
|
13346
13345
|
f("span", null, "Updated " + I(he(P.updated_at)), 1),
|
|
13347
|
-
P.last_durable_commit_sha ? (h(), _("span", fb, " Saved " + I(P.last_durable_commit_sha.slice(0, 7)), 1)) :
|
|
13348
|
-
P.checkpoint_status === "local_only" || P.checkpoint_status === "failed" ? (h(), _("span", hb, " Save incomplete ")) :
|
|
13346
|
+
P.last_durable_commit_sha ? (h(), _("span", fb, " Saved " + I(P.last_durable_commit_sha.slice(0, 7)), 1)) : j("", !0),
|
|
13347
|
+
P.checkpoint_status === "local_only" || P.checkpoint_status === "failed" ? (h(), _("span", hb, " Save incomplete ")) : j("", !0)
|
|
13349
13348
|
]),
|
|
13350
|
-
P.status === "needs_attention" && P.attention_error ? (h(), _("div", mb, I(P.attention_action) + ": " + I(P.attention_error), 1)) :
|
|
13349
|
+
P.status === "needs_attention" && P.attention_error ? (h(), _("div", mb, I(P.attention_action) + ": " + I(P.attention_error), 1)) : j("", !0)
|
|
13351
13350
|
]),
|
|
13352
13351
|
f("div", gb, [
|
|
13353
13352
|
W(Tt, {
|
|
@@ -13369,7 +13368,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13369
13368
|
variant: "tertiary",
|
|
13370
13369
|
disabled: O(r).busy,
|
|
13371
13370
|
onClick: Zn((lt) => ve(P), ["stop"])
|
|
13372
|
-
}, null, 8, ["disabled", "onClick"])) :
|
|
13371
|
+
}, null, 8, ["disabled", "onClick"])) : j("", !0),
|
|
13373
13372
|
W(De, {
|
|
13374
13373
|
name: "chevron_right",
|
|
13375
13374
|
color: "typo-secondary",
|
|
@@ -13377,7 +13376,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13377
13376
|
})
|
|
13378
13377
|
])
|
|
13379
13378
|
], 42, lb))), 128)),
|
|
13380
|
-
O(r).sessions.length ?
|
|
13379
|
+
O(r).sessions.length ? j("", !0) : (h(), _("div", bb, [
|
|
13381
13380
|
W(De, {
|
|
13382
13381
|
name: "history",
|
|
13383
13382
|
size: "xl",
|
|
@@ -13427,7 +13426,7 @@ const Mm = ["aria-label", "title"], Lm = { class: "flex flex-col gap-[4px]" }, D
|
|
|
13427
13426
|
_: 1
|
|
13428
13427
|
}, 8, ["variant"])
|
|
13429
13428
|
]),
|
|
13430
|
-
L.value ? (h(), _("p", Xm, I(L.value), 1)) :
|
|
13429
|
+
L.value ? (h(), _("p", Xm, I(L.value), 1)) : j("", !0)
|
|
13431
13430
|
])
|
|
13432
13431
|
])
|
|
13433
13432
|
]))
|