@feedmepos/mf-miniprogram-v2 0.1.0-dev.13 → 0.1.0-dev.14
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 Hi = Object.defineProperty;
|
|
2
2
|
var Gi = (t, e, n) => e in t ? Hi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var ee = (t, e, n) => Gi(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { defineComponent as dt, ref as de, computed as ue, resolveComponent as ze, openBlock as I, createElementBlock as B, normalizeClass as De, createElementVNode as g, createVNode as te, toDisplayString as W, createTextVNode as Ye, createCommentVNode as he, Fragment as He, renderList as Xe, createBlock as Ae, watch as It, nextTick as on, onBeforeUnmount as ur, withModifiers as kn, withDirectives as Ss, vModelText as As, renderSlot as Wi, onMounted as tr, unref as
|
|
4
|
+
import { defineComponent as dt, ref as de, computed as ue, resolveComponent as ze, openBlock as I, createElementBlock as B, normalizeClass as De, createElementVNode as g, createVNode as te, toDisplayString as W, createTextVNode as Ye, createCommentVNode as he, Fragment as He, renderList as Xe, createBlock as Ae, watch as It, nextTick as on, onBeforeUnmount as ur, withModifiers as kn, withDirectives as Ss, vModelText as As, renderSlot as Wi, onMounted as tr, unref as K, withCtx as nt, normalizeStyle as vn, reactive as nr, withKeys as qi } from "vue";
|
|
5
5
|
import { useCoreStore as dr, FeedMeAuth as Vi } from "@feedmepos/mf-common";
|
|
6
6
|
import { useDialog as Zi } from "@feedmepos/ui-library";
|
|
7
7
|
import { _ as un } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -1918,16 +1918,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = k, ae = H), j ==
|
|
|
1918
1918
|
return D.keywords[G];
|
|
1919
1919
|
}
|
|
1920
1920
|
function N() {
|
|
1921
|
-
if (!
|
|
1921
|
+
if (!Y.keywords) {
|
|
1922
1922
|
Ie.addText(ke);
|
|
1923
1923
|
return;
|
|
1924
1924
|
}
|
|
1925
1925
|
let D = 0;
|
|
1926
|
-
|
|
1927
|
-
let G =
|
|
1926
|
+
Y.keywordPatternRe.lastIndex = 0;
|
|
1927
|
+
let G = Y.keywordPatternRe.exec(ke), ce = "";
|
|
1928
1928
|
for (; G; ) {
|
|
1929
1929
|
ce += ke.substring(D, G.index);
|
|
1930
|
-
const ye = ge.case_insensitive ? G[0].toLowerCase() : G[0], Re = ne(
|
|
1930
|
+
const ye = ge.case_insensitive ? G[0].toLowerCase() : G[0], Re = ne(Y, ye);
|
|
1931
1931
|
if (Re) {
|
|
1932
1932
|
const [qe, wt] = Re;
|
|
1933
1933
|
if (Ie.addText(ce), ce = "", pe[ye] = (pe[ye] || 0) + 1, pe[ye] <= Oo && (bt += wt), qe.startsWith("_"))
|
|
@@ -1938,26 +1938,26 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = k, ae = H), j ==
|
|
|
1938
1938
|
}
|
|
1939
1939
|
} else
|
|
1940
1940
|
ce += G[0];
|
|
1941
|
-
D =
|
|
1941
|
+
D = Y.keywordPatternRe.lastIndex, G = Y.keywordPatternRe.exec(ke);
|
|
1942
1942
|
}
|
|
1943
1943
|
ce += ke.substring(D), Ie.addText(ce);
|
|
1944
1944
|
}
|
|
1945
1945
|
function C() {
|
|
1946
1946
|
if (ke === "") return;
|
|
1947
1947
|
let D = null;
|
|
1948
|
-
if (typeof
|
|
1949
|
-
if (!e[
|
|
1948
|
+
if (typeof Y.subLanguage == "string") {
|
|
1949
|
+
if (!e[Y.subLanguage]) {
|
|
1950
1950
|
Ie.addText(ke);
|
|
1951
1951
|
return;
|
|
1952
1952
|
}
|
|
1953
|
-
D = w(
|
|
1953
|
+
D = w(Y.subLanguage, ke, !0, St[Y.subLanguage]), St[Y.subLanguage] = /** @type {CompiledMode} */
|
|
1954
1954
|
D._top;
|
|
1955
1955
|
} else
|
|
1956
|
-
D = _(ke,
|
|
1957
|
-
|
|
1956
|
+
D = _(ke, Y.subLanguage.length ? Y.subLanguage : null);
|
|
1957
|
+
Y.relevance > 0 && (bt += D.relevance), Ie.__addSublanguage(D._emitter, D.language);
|
|
1958
1958
|
}
|
|
1959
1959
|
function re() {
|
|
1960
|
-
|
|
1960
|
+
Y.subLanguage != null ? C() : N(), ke = "";
|
|
1961
1961
|
}
|
|
1962
1962
|
function me(D, G) {
|
|
1963
1963
|
D !== "" && (Ie.startScope(G), Ie.addText(D), Ie.endScope());
|
|
@@ -1975,7 +1975,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = k, ae = H), j ==
|
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
1977
|
function x(D, G) {
|
|
1978
|
-
return D.scope && typeof D.scope == "string" && Ie.openNode(ge.classNameAliases[D.scope] || D.scope), D.beginScope && (D.beginScope._wrap ? (me(ke, ge.classNameAliases[D.beginScope._wrap] || D.beginScope._wrap), ke = "") : D.beginScope._multi && (Ne(D.beginScope, G), ke = "")),
|
|
1978
|
+
return D.scope && typeof D.scope == "string" && Ie.openNode(ge.classNameAliases[D.scope] || D.scope), D.beginScope && (D.beginScope._wrap ? (me(ke, ge.classNameAliases[D.beginScope._wrap] || D.beginScope._wrap), ke = "") : D.beginScope._multi && (Ne(D.beginScope, G), ke = "")), Y = Object.create(D, { parent: { value: Y } }), Y;
|
|
1979
1979
|
}
|
|
1980
1980
|
function T(D, G, ce) {
|
|
1981
1981
|
let ye = Va(D.endRe, ce);
|
|
@@ -1994,7 +1994,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = k, ae = H), j ==
|
|
|
1994
1994
|
return T(D.parent, G, ce);
|
|
1995
1995
|
}
|
|
1996
1996
|
function P(D) {
|
|
1997
|
-
return
|
|
1997
|
+
return Y.matcher.regexIndex === 0 ? (ke += D[0], 1) : (et = !0, 0);
|
|
1998
1998
|
}
|
|
1999
1999
|
function F(D) {
|
|
2000
2000
|
const G = D[0], ce = D.rule, ye = new Kr(ce), Re = [ce.__beforeBegin, ce["on:begin"]];
|
|
@@ -2004,19 +2004,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = k, ae = H), j ==
|
|
|
2004
2004
|
return ce.skip ? ke += G : (ce.excludeBegin && (ke += G), re(), !ce.returnBegin && !ce.excludeBegin && (ke = G)), x(ce, D), ce.returnBegin ? 0 : G.length;
|
|
2005
2005
|
}
|
|
2006
2006
|
function U(D) {
|
|
2007
|
-
const G = D[0], ce = H.substring(D.index), ye = T(
|
|
2007
|
+
const G = D[0], ce = H.substring(D.index), ye = T(Y, D, ce);
|
|
2008
2008
|
if (!ye)
|
|
2009
2009
|
return ts;
|
|
2010
|
-
const Re =
|
|
2011
|
-
|
|
2010
|
+
const Re = Y;
|
|
2011
|
+
Y.endScope && Y.endScope._wrap ? (re(), me(G, Y.endScope._wrap)) : Y.endScope && Y.endScope._multi ? (re(), Ne(Y.endScope, D)) : Re.skip ? ke += G : (Re.returnEnd || Re.excludeEnd || (ke += G), re(), Re.excludeEnd && (ke = G));
|
|
2012
2012
|
do
|
|
2013
|
-
|
|
2014
|
-
while (
|
|
2013
|
+
Y.scope && Ie.closeNode(), !Y.skip && !Y.subLanguage && (bt += Y.relevance), Y = Y.parent;
|
|
2014
|
+
while (Y !== ye.parent);
|
|
2015
2015
|
return ye.starts && x(ye.starts, D), Re.returnEnd ? 0 : G.length;
|
|
2016
2016
|
}
|
|
2017
2017
|
function fe() {
|
|
2018
2018
|
const D = [];
|
|
2019
|
-
for (let G =
|
|
2019
|
+
for (let G = Y; G !== ge; G = G.parent)
|
|
2020
2020
|
G.scope && D.unshift(G.scope);
|
|
2021
2021
|
D.forEach((G) => Ie.openNode(G));
|
|
2022
2022
|
}
|
|
@@ -2035,8 +2035,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = k, ae = H), j ==
|
|
|
2035
2035
|
if (Q = G, G.type === "begin")
|
|
2036
2036
|
return F(G);
|
|
2037
2037
|
if (G.type === "illegal" && !j) {
|
|
2038
|
-
const ye = new Error('Illegal lexeme "' + ce + '" for mode "' + (
|
|
2039
|
-
throw ye.mode =
|
|
2038
|
+
const ye = new Error('Illegal lexeme "' + ce + '" for mode "' + (Y.scope || "<unnamed>") + '"');
|
|
2039
|
+
throw ye.mode = Y, ye;
|
|
2040
2040
|
} else if (G.type === "end") {
|
|
2041
2041
|
const ye = U(G);
|
|
2042
2042
|
if (ye !== ts)
|
|
@@ -2053,7 +2053,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = k, ae = H), j ==
|
|
|
2053
2053
|
if (!ge)
|
|
2054
2054
|
throw Ct(i.replace("{}", k)), new Error('Unknown language: "' + k + '"');
|
|
2055
2055
|
const rt = Ro(ge);
|
|
2056
|
-
let ft = "",
|
|
2056
|
+
let ft = "", Y = ae || rt;
|
|
2057
2057
|
const St = {}, Ie = new o.__emitter(o);
|
|
2058
2058
|
fe();
|
|
2059
2059
|
let ke = "", bt = 0, Me = 0, st = 0, et = !1;
|
|
@@ -2061,9 +2061,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = k, ae = H), j ==
|
|
|
2061
2061
|
if (ge.__emitTokens)
|
|
2062
2062
|
ge.__emitTokens(H, Ie);
|
|
2063
2063
|
else {
|
|
2064
|
-
for (
|
|
2065
|
-
st++, et ? et = !1 :
|
|
2066
|
-
const D =
|
|
2064
|
+
for (Y.matcher.considerAll(); ; ) {
|
|
2065
|
+
st++, et ? et = !1 : Y.matcher.considerAll(), Y.matcher.lastIndex = Me;
|
|
2066
|
+
const D = Y.matcher.exec(H);
|
|
2067
2067
|
if (!D) break;
|
|
2068
2068
|
const G = H.substring(Me, D.index), ce = Pe(G, D);
|
|
2069
2069
|
Me = D.index + ce;
|
|
@@ -2076,7 +2076,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = k, ae = H), j ==
|
|
|
2076
2076
|
relevance: bt,
|
|
2077
2077
|
illegal: !1,
|
|
2078
2078
|
_emitter: Ie,
|
|
2079
|
-
_top:
|
|
2079
|
+
_top: Y
|
|
2080
2080
|
};
|
|
2081
2081
|
} catch (D) {
|
|
2082
2082
|
if (D.message && D.message.includes("Illegal"))
|
|
@@ -2102,7 +2102,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), pe = k, ae = H), j ==
|
|
|
2102
2102
|
relevance: 0,
|
|
2103
2103
|
errorRaised: D,
|
|
2104
2104
|
_emitter: Ie,
|
|
2105
|
-
_top:
|
|
2105
|
+
_top: Y
|
|
2106
2106
|
};
|
|
2107
2107
|
throw D;
|
|
2108
2108
|
}
|
|
@@ -2563,7 +2563,7 @@ function ti() {
|
|
|
2563
2563
|
value: !1
|
|
2564
2564
|
}
|
|
2565
2565
|
})), rt = null, ft = null;
|
|
2566
|
-
const
|
|
2566
|
+
const Y = Object.seal(Gt(null, {
|
|
2567
2567
|
tagCheck: {
|
|
2568
2568
|
writable: !0,
|
|
2569
2569
|
configurable: !1,
|
|
@@ -2657,7 +2657,7 @@ function ti() {
|
|
|
2657
2657
|
transform: Oe
|
|
2658
2658
|
}), at = Ue(c, "USE_PROFILES") ? c.USE_PROFILES && typeof c.USE_PROFILES == "object" ? Ke(c.USE_PROFILES) : c.USE_PROFILES : !1, St = c.ALLOW_ARIA_ATTR !== !1, Ie = c.ALLOW_DATA_ATTR !== !1, ke = c.ALLOW_UNKNOWN_PROTOCOLS || !1, bt = c.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Me = c.SAFE_FOR_TEMPLATES || !1, st = c.SAFE_FOR_XML !== !1, et = c.WHOLE_DOCUMENT || !1, Re = c.RETURN_DOM || !1, qe = c.RETURN_DOM_FRAGMENT || !1, wt = c.RETURN_TRUSTED_TYPE || !1, ye = c.FORCE_BODY || !1, _t = c.SANITIZE_DOM !== !1, $t = c.SANITIZE_NAMED_PROPS || !1, z = c.KEEP_CONTENT !== !1, Ee = c.IN_PLACE || !1, F = Yo(c.ALLOWED_URI_REGEXP) ? c.ALLOWED_URI_REGEXP : ps, zt = typeof c.NAMESPACE == "string" ? c.NAMESPACE : pt, zn = Ue(c, "MATHML_TEXT_INTEGRATION_POINTS") && c.MATHML_TEXT_INTEGRATION_POINTS && typeof c.MATHML_TEXT_INTEGRATION_POINTS == "object" ? Ke(c.MATHML_TEXT_INTEGRATION_POINTS) : _e({}, Sr), Bn = Ue(c, "HTML_INTEGRATION_POINTS") && c.HTML_INTEGRATION_POINTS && typeof c.HTML_INTEGRATION_POINTS == "object" ? Ke(c.HTML_INTEGRATION_POINTS) : _e({}, Ar);
|
|
2659
2659
|
const m = Ue(c, "CUSTOM_ELEMENT_HANDLING") && c.CUSTOM_ELEMENT_HANDLING && typeof c.CUSTOM_ELEMENT_HANDLING == "object" ? Ke(c.CUSTOM_ELEMENT_HANDLING) : Gt(null);
|
|
2660
|
-
if (ge = Gt(null), Ue(m, "tagNameCheck") && Rr(m.tagNameCheck) && (ge.tagNameCheck = m.tagNameCheck), Ue(m, "attributeNameCheck") && Rr(m.attributeNameCheck) && (ge.attributeNameCheck = m.attributeNameCheck), Ue(m, "allowCustomizedBuiltInElements") && typeof m.allowCustomizedBuiltInElements == "boolean" && (ge.allowCustomizedBuiltInElements = m.allowCustomizedBuiltInElements), We(ge), Me && (Ie = !1), qe && (Re = !0), at && (U = _e({}, us), Q = Gt(null), at.html === !0 && (_e(U, cs), _e(Q, ds)), at.svg === !0 && (_e(U, qn), _e(Q, Kn), _e(Q, yn)), at.svgFilters === !0 && (_e(U, Vn), _e(Q, Kn), _e(Q, yn)), at.mathMl === !0 && (_e(U, Zn), _e(Q, fs), _e(Q, yn))),
|
|
2660
|
+
if (ge = Gt(null), Ue(m, "tagNameCheck") && Rr(m.tagNameCheck) && (ge.tagNameCheck = m.tagNameCheck), Ue(m, "attributeNameCheck") && Rr(m.attributeNameCheck) && (ge.attributeNameCheck = m.attributeNameCheck), Ue(m, "allowCustomizedBuiltInElements") && typeof m.allowCustomizedBuiltInElements == "boolean" && (ge.allowCustomizedBuiltInElements = m.allowCustomizedBuiltInElements), We(ge), Me && (Ie = !1), qe && (Re = !0), at && (U = _e({}, us), Q = Gt(null), at.html === !0 && (_e(U, cs), _e(Q, ds)), at.svg === !0 && (_e(U, qn), _e(Q, Kn), _e(Q, yn)), at.svgFilters === !0 && (_e(U, Vn), _e(Q, Kn), _e(Q, yn)), at.mathMl === !0 && (_e(U, Zn), _e(Q, fs), _e(Q, yn))), Y.tagCheck = null, Y.attributeCheck = null, Ue(c, "ADD_TAGS") && (typeof c.ADD_TAGS == "function" ? Y.tagCheck = c.ADD_TAGS : Et(c.ADD_TAGS) && (U === fe && (U = Ke(U)), _e(U, c.ADD_TAGS, Oe))), Ue(c, "ADD_ATTR") && (typeof c.ADD_ATTR == "function" ? Y.attributeCheck = c.ADD_ATTR : Et(c.ADD_ATTR) && (Q === Pe && (Q = Ke(Q)), _e(Q, c.ADD_ATTR, Oe))), Ue(c, "ADD_URI_SAFE_ATTR") && Et(c.ADD_URI_SAFE_ATTR) && _e(Dt, c.ADD_URI_SAFE_ATTR, Oe), Ue(c, "FORBID_CONTENTS") && Et(c.FORBID_CONTENTS) && (Te === Pt && (Te = Ke(Te)), _e(Te, c.FORBID_CONTENTS, Oe)), Ue(c, "ADD_FORBID_CONTENTS") && Et(c.ADD_FORBID_CONTENTS) && (Te === Pt && (Te = Ke(Te)), _e(Te, c.ADD_FORBID_CONTENTS, Oe)), z && (U["#text"] = !0), et && _e(U, ["html", "head", "body"]), U.table && (_e(U, ["tbody"]), delete rt.tbody), c.TRUSTED_TYPES_POLICY) {
|
|
2661
2661
|
if (typeof c.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
2662
2662
|
throw Rt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
2663
2663
|
if (typeof c.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -2886,7 +2886,7 @@ function ti() {
|
|
|
2886
2886
|
allowedTags: U
|
|
2887
2887
|
}), zi(c, m))
|
|
2888
2888
|
return xt(c), !0;
|
|
2889
|
-
if (rt[m] || !(
|
|
2889
|
+
if (rt[m] || !(Y.tagCheck instanceof Function && Y.tagCheck(m)) && !U[m])
|
|
2890
2890
|
return Bi(c, m);
|
|
2891
2891
|
if ((S ? S(c) : c.nodeType) === ht.element && !$i(c) || (m === "noscript" || m === "noembed" || m === "noframes") && je(cl, c.innerHTML))
|
|
2892
2892
|
return xt(c), !0;
|
|
@@ -2900,7 +2900,7 @@ function ti() {
|
|
|
2900
2900
|
}, $r = function(c, m, L) {
|
|
2901
2901
|
if (ft[m] || _t && (m === "id" || m === "name") && (L in n || L in Ci))
|
|
2902
2902
|
return !1;
|
|
2903
|
-
const Z = Q[m] ||
|
|
2903
|
+
const Z = Q[m] || Y.attributeCheck instanceof Function && Y.attributeCheck(m, c);
|
|
2904
2904
|
if (!(Ie && je(me, m))) {
|
|
2905
2905
|
if (!(St && je(Ne, m))) {
|
|
2906
2906
|
if (Z) {
|
|
@@ -7258,7 +7258,7 @@ const oc = { class: "diff-card my-[6px] min-w-0 max-w-full overflow-hidden round
|
|
|
7258
7258
|
function S(A) {
|
|
7259
7259
|
s.value = s.value.filter((V) => V.id !== A), i.value = null;
|
|
7260
7260
|
}
|
|
7261
|
-
const O = ue(() => e.chat.status === "idle" ? { icon: "chat_bubble", title: "No
|
|
7261
|
+
const O = ue(() => e.chat.status === "idle" ? { icon: "chat_bubble", title: "No session open", text: e.chat.statusText } : e.chat.readOnly ? { icon: "history", title: "Archived session", text: "This conversation is read-only. Resume the session to keep editing." } : {
|
|
7262
7262
|
icon: "smart_toy",
|
|
7263
7263
|
title: "Ask the agent",
|
|
7264
7264
|
text: "Describe a change and the agent will edit the app in the preview on the right."
|
|
@@ -7409,7 +7409,7 @@ const oc = { class: "diff-card my-[6px] min-w-0 max-w-full overflow-hidden round
|
|
|
7409
7409
|
};
|
|
7410
7410
|
}), h = ue(
|
|
7411
7411
|
() => e.chat.status === "ready" && a.value.some((N) => N.feedback.trim())
|
|
7412
|
-
), b = ue(() => e.chat.status === "error" ? e.chat.statusText : e.chat.status === "starting" ? "Cloning repo, installing dependencies, starting dev server…" : e.chat.readOnly ? "Resume this
|
|
7412
|
+
), b = ue(() => e.chat.status === "error" ? e.chat.statusText : e.chat.status === "starting" ? "Cloning repo, installing dependencies, starting dev server…" : e.chat.readOnly && e.chat.workspaceSessionId ? "Resume this session to start a live preview." : e.chat.statusText || "Start a session to get a live preview.");
|
|
7413
7413
|
function R(N) {
|
|
7414
7414
|
return N === "ready" ? "success" : N === "fallback" ? "warning" : "info";
|
|
7415
7415
|
}
|
|
@@ -7585,7 +7585,7 @@ ${me}`;
|
|
|
7585
7585
|
modelValue: r.value,
|
|
7586
7586
|
"onUpdate:modelValue": C[0] || (C[0] = (T) => r.value = T),
|
|
7587
7587
|
class: "preview__device-select shrink-0",
|
|
7588
|
-
items:
|
|
7588
|
+
items: K(p),
|
|
7589
7589
|
width: 188,
|
|
7590
7590
|
disabled: !e.chat.previewUrl,
|
|
7591
7591
|
placeholder: "Device"
|
|
@@ -7753,7 +7753,7 @@ ${me}`;
|
|
|
7753
7753
|
]);
|
|
7754
7754
|
};
|
|
7755
7755
|
}
|
|
7756
|
-
}), gu = /* @__PURE__ */ un(mu, [["__scopeId", "data-v-
|
|
7756
|
+
}), gu = /* @__PURE__ */ un(mu, [["__scopeId", "data-v-0eb3498b"]]), bu = { class: "flex justify-end gap-8" }, yu = /* @__PURE__ */ dt({
|
|
7757
7757
|
__name: "RenameSessionDialog",
|
|
7758
7758
|
props: {
|
|
7759
7759
|
initialTitle: {}
|
|
@@ -7771,11 +7771,11 @@ ${me}`;
|
|
|
7771
7771
|
default: nt(() => [
|
|
7772
7772
|
te(d, { class: "w-[360px] space-y-16 p-16" }, {
|
|
7773
7773
|
default: nt(() => [
|
|
7774
|
-
o[2] || (o[2] = g("div", { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Rename
|
|
7774
|
+
o[2] || (o[2] = g("div", { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Rename session", -1)),
|
|
7775
7775
|
te(a, {
|
|
7776
7776
|
modelValue: s.value,
|
|
7777
7777
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => s.value = p),
|
|
7778
|
-
label: "
|
|
7778
|
+
label: "Session name",
|
|
7779
7779
|
placeholder: "e.g. Homepage banner redesign",
|
|
7780
7780
|
rules: [(p) => !!p.trim() || "Name is required"]
|
|
7781
7781
|
}, null, 8, ["modelValue", "rules"]),
|
|
@@ -9289,7 +9289,7 @@ function hd(t) {
|
|
|
9289
9289
|
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;
|
|
9290
9290
|
}
|
|
9291
9291
|
function md() {
|
|
9292
|
-
const t = de("idle"), e = de("No
|
|
9292
|
+
const t = de("idle"), e = de("No session selected"), n = de(null), r = de(!1), s = de(null), i = de(null), l = de(null), o = de(!1), a = de(!1), u = de([]), d = nr({}), w = de(0);
|
|
9293
9293
|
let p = null, _ = 0;
|
|
9294
9294
|
const f = /* @__PURE__ */ new Map();
|
|
9295
9295
|
let h = null, b = null;
|
|
@@ -9323,7 +9323,7 @@ function md() {
|
|
|
9323
9323
|
for (const x of Object.keys(d)) delete d[x];
|
|
9324
9324
|
w.value++;
|
|
9325
9325
|
}
|
|
9326
|
-
function A(x = "No
|
|
9326
|
+
function A(x = "No session selected") {
|
|
9327
9327
|
_++, p = null, t.value = "idle", e.value = x, n.value = null, r.value = !1, s.value = null, i.value = null, l.value = null, o.value = !0, a.value = !1, O();
|
|
9328
9328
|
}
|
|
9329
9329
|
function V(x, T) {
|
|
@@ -9529,8 +9529,8 @@ function md() {
|
|
|
9529
9529
|
baseUrl: Wt("/api/opencode"),
|
|
9530
9530
|
headers: rt,
|
|
9531
9531
|
fetch: (ft) => {
|
|
9532
|
-
const
|
|
9533
|
-
return
|
|
9532
|
+
const Y = new Request(ft);
|
|
9533
|
+
return Y.headers.set("x-miniprogram-business-id", x.businessId ?? ""), Y.headers.set("x-miniprogram-session-id", fe), Y.timeout = !1, qt(Y);
|
|
9534
9534
|
}
|
|
9535
9535
|
}), s.value = Pe, await ie(Pe), _++, ne(_), t.value = "ready", e.value = "Ready";
|
|
9536
9536
|
} catch (P) {
|
|
@@ -9549,7 +9549,7 @@ function md() {
|
|
|
9549
9549
|
}
|
|
9550
9550
|
async function me(x) {
|
|
9551
9551
|
if (!l.value || !i.value)
|
|
9552
|
-
throw new Error("
|
|
9552
|
+
throw new Error("session not ready for file uploads");
|
|
9553
9553
|
const T = await (await fetch(x.url)).blob(), P = new URLSearchParams();
|
|
9554
9554
|
x.filename && P.set("filename", x.filename);
|
|
9555
9555
|
const F = await qt(
|
|
@@ -9731,7 +9731,7 @@ function kd() {
|
|
|
9731
9731
|
}
|
|
9732
9732
|
async function v(M = {}) {
|
|
9733
9733
|
if (w(), !u.value)
|
|
9734
|
-
throw new Error("Set up the v2 project before creating a
|
|
9734
|
+
throw new Error("Set up the v2 project before creating a session");
|
|
9735
9735
|
s.value = !0;
|
|
9736
9736
|
try {
|
|
9737
9737
|
const X = await tt(
|
|
@@ -9788,7 +9788,7 @@ function kd() {
|
|
|
9788
9788
|
await tt(`/api/projects/${t.value}/sessions/${M}`, {
|
|
9789
9789
|
method: "PATCH",
|
|
9790
9790
|
body: JSON.stringify({ title: le })
|
|
9791
|
-
}), i.value = "Renamed
|
|
9791
|
+
}), i.value = "Renamed session";
|
|
9792
9792
|
} catch (k) {
|
|
9793
9793
|
throw i.value = Je(k), await f().catch(() => {
|
|
9794
9794
|
}), k;
|
|
@@ -9940,7 +9940,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
9940
9940
|
return E ? E.is_live === 1 ? "Latest release is live" : E.build_status === "succeeded" ? "Release ready to go live" : E.build_status === "failed" ? "Build failed" : "Release build in progress" : "No release has been built yet";
|
|
9941
9941
|
}), V = ue(() => {
|
|
9942
9942
|
const E = r.latestRelease;
|
|
9943
|
-
if (!E) return "Build the active
|
|
9943
|
+
if (!E) return "Build the active session to create a release preview.";
|
|
9944
9944
|
const z = E.source_commit_sha.slice(0, 7), Ee = E.build_status ? `Build ${E.build_status}` : "No build status";
|
|
9945
9945
|
return `${E.id} · ${Ee} · ${z}`;
|
|
9946
9946
|
}), J = ue(() => {
|
|
@@ -10047,7 +10047,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10047
10047
|
});
|
|
10048
10048
|
return;
|
|
10049
10049
|
}
|
|
10050
|
-
n.reset("No
|
|
10050
|
+
n.reset("No session yet. Start a new session to begin.");
|
|
10051
10051
|
}
|
|
10052
10052
|
tr(U), tr(() => {
|
|
10053
10053
|
typeof window < "u" && (f = window.matchMedia("(max-width: 960px)"), me(), f.addEventListener("change", me)), Ne();
|
|
@@ -10081,15 +10081,15 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10081
10081
|
await fe();
|
|
10082
10082
|
return;
|
|
10083
10083
|
}
|
|
10084
|
-
l.value = !0, r.statusText = "Checking
|
|
10084
|
+
l.value = !0, r.statusText = "Checking session changes";
|
|
10085
10085
|
try {
|
|
10086
10086
|
if (!(await r.sessionChanges(R.value.id)).dirty) {
|
|
10087
10087
|
await fe();
|
|
10088
10088
|
return;
|
|
10089
10089
|
}
|
|
10090
10090
|
s.open({
|
|
10091
|
-
title: "Start a new
|
|
10092
|
-
message: "This
|
|
10091
|
+
title: "Start a new session?",
|
|
10092
|
+
message: "This session has unpublished code changes. Save them to main before starting, or discard them and keep main as-is. Chat history is saved either way.",
|
|
10093
10093
|
dismissAway: !0,
|
|
10094
10094
|
primaryActions: { close: !0, text: "Save changes" },
|
|
10095
10095
|
secondaryActions: { close: !0, text: "Discard changes" },
|
|
@@ -10101,8 +10101,8 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10101
10101
|
});
|
|
10102
10102
|
} catch (E) {
|
|
10103
10103
|
r.statusText = Je(E), s.open({
|
|
10104
|
-
title: "Start a new
|
|
10105
|
-
message: "The current code state could not be checked. Save changes to main before starting a new
|
|
10104
|
+
title: "Start a new session?",
|
|
10105
|
+
message: "The current code state could not be checked. Save changes to main before starting a new session, or cancel and try again.",
|
|
10106
10106
|
dismissAway: !0,
|
|
10107
10107
|
primaryActions: { close: !0, text: "Save changes" },
|
|
10108
10108
|
tertiaryActions: { close: !0, text: "Cancel" }
|
|
@@ -10110,7 +10110,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10110
10110
|
fe("save");
|
|
10111
10111
|
});
|
|
10112
10112
|
} finally {
|
|
10113
|
-
l.value = !1, r.statusText === "Checking
|
|
10113
|
+
l.value = !1, r.statusText === "Checking session changes" && (r.statusText = "Project ready");
|
|
10114
10114
|
}
|
|
10115
10115
|
}
|
|
10116
10116
|
}
|
|
@@ -10125,7 +10125,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10125
10125
|
async function ft() {
|
|
10126
10126
|
r.latestRelease && await st(r.latestRelease);
|
|
10127
10127
|
}
|
|
10128
|
-
function
|
|
10128
|
+
function Y() {
|
|
10129
10129
|
oe.value && window.open(oe.value, "_blank", "noopener");
|
|
10130
10130
|
}
|
|
10131
10131
|
function St() {
|
|
@@ -10180,7 +10180,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10180
10180
|
}
|
|
10181
10181
|
function Re(E) {
|
|
10182
10182
|
s.open({
|
|
10183
|
-
title: "Rename
|
|
10183
|
+
title: "Rename session",
|
|
10184
10184
|
dialogComponent: yu,
|
|
10185
10185
|
dialogComponentProps: {
|
|
10186
10186
|
initialTitle: E.title,
|
|
@@ -10208,7 +10208,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10208
10208
|
return E.is_live === 1 ? "bg-fm-color-system-success-50" : E.id === r.activeReleaseId ? "bg-fm-color-primary-oats" : "bg-fm-color-neutral-white";
|
|
10209
10209
|
}
|
|
10210
10210
|
function wt(E) {
|
|
10211
|
-
return E.status === "active" ? "Active
|
|
10211
|
+
return E.status === "active" ? "Active session" : E.status === "needs_attention" ? "Needs attention" : "Archived session";
|
|
10212
10212
|
}
|
|
10213
10213
|
function _t(E) {
|
|
10214
10214
|
var z;
|
|
@@ -10267,14 +10267,14 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10267
10267
|
size: "md"
|
|
10268
10268
|
}, null, 8, ["name", "color"]),
|
|
10269
10269
|
ie.value ? he("", !0) : (I(), B("span", Ad, W(q.label), 1)),
|
|
10270
|
-
!ie.value && q.key === "sessions" ? (I(), B("span", Rd, W(
|
|
10270
|
+
!ie.value && q.key === "sessions" ? (I(), B("span", Rd, W(K(r).sessions.length), 1)) : he("", !0)
|
|
10271
10271
|
], 10, Sd)), 64))
|
|
10272
10272
|
]),
|
|
10273
10273
|
g("div", Nd, [
|
|
10274
|
-
|
|
10274
|
+
K(r).statusText ? (I(), B("p", {
|
|
10275
10275
|
key: 0,
|
|
10276
10276
|
class: De(["m-0 flex items-center rounded-md bg-fm-color-neutral-gray-100 fm-typo-en-body-xs-400 text-fm-color-typo-secondary", ie.value ? "justify-center px-[6px] py-[8px]" : "gap-[6px] px-[10px] py-[6px]"]),
|
|
10277
|
-
title:
|
|
10277
|
+
title: K(r).statusText
|
|
10278
10278
|
}, [
|
|
10279
10279
|
X.value ? (I(), Ae(at, {
|
|
10280
10280
|
key: 0,
|
|
@@ -10286,27 +10286,27 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10286
10286
|
size: "sm",
|
|
10287
10287
|
color: "typo-secondary"
|
|
10288
10288
|
})) : he("", !0),
|
|
10289
|
-
ie.value ? he("", !0) : (I(), B("span", Cd, W(
|
|
10289
|
+
ie.value ? he("", !0) : (I(), B("span", Cd, W(K(r).statusText), 1))
|
|
10290
10290
|
], 10, Id)) : he("", !0),
|
|
10291
|
-
|
|
10291
|
+
K(r).isProvisioned ? he("", !0) : (I(), Ae(Te, {
|
|
10292
10292
|
key: 1,
|
|
10293
10293
|
icon: "source",
|
|
10294
10294
|
label: ie.value ? void 0 : "Set up v2 project",
|
|
10295
|
-
loading:
|
|
10295
|
+
loading: K(r).busy,
|
|
10296
10296
|
title: ie.value ? "Set up v2 project" : void 0,
|
|
10297
10297
|
onClick: Q
|
|
10298
10298
|
}, null, 8, ["label", "loading", "title"])),
|
|
10299
10299
|
te(Te, {
|
|
10300
10300
|
icon: "add",
|
|
10301
|
-
label: ie.value ? void 0 : "New
|
|
10302
|
-
disabled: !
|
|
10301
|
+
label: ie.value ? void 0 : "New session",
|
|
10302
|
+
disabled: !K(r).isProvisioned || X.value,
|
|
10303
10303
|
loading: X.value,
|
|
10304
|
-
title: ie.value ? "New
|
|
10304
|
+
title: ie.value ? "New session" : void 0,
|
|
10305
10305
|
onClick: Pe
|
|
10306
10306
|
}, null, 8, ["label", "disabled", "loading", "title"])
|
|
10307
10307
|
])
|
|
10308
10308
|
], 2),
|
|
10309
|
-
|
|
10309
|
+
K(r).isProvisioned ? i.value === "workspace" ? (I(), B("main", Fd, [
|
|
10310
10310
|
g("div", jd, [
|
|
10311
10311
|
g("div", Hd, [
|
|
10312
10312
|
g("button", {
|
|
@@ -10322,10 +10322,10 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10322
10322
|
g("span", Gd, W(O.value), 1),
|
|
10323
10323
|
S.value ? (I(), Ae(lt, {
|
|
10324
10324
|
key: 0,
|
|
10325
|
-
variant:
|
|
10325
|
+
variant: K(Xn)(S.value.status)
|
|
10326
10326
|
}, {
|
|
10327
10327
|
default: nt(() => [
|
|
10328
|
-
Ye(W(
|
|
10328
|
+
Ye(W(K(Qn)(S.value.status)), 1)
|
|
10329
10329
|
]),
|
|
10330
10330
|
_: 1
|
|
10331
10331
|
}, 8, ["variant"])) : he("", !0),
|
|
@@ -10339,22 +10339,22 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10339
10339
|
key: 0,
|
|
10340
10340
|
icon: "edit",
|
|
10341
10341
|
variant: "tertiary",
|
|
10342
|
-
title: "Rename
|
|
10343
|
-
"aria-label": "Rename
|
|
10342
|
+
title: "Rename session",
|
|
10343
|
+
"aria-label": "Rename session",
|
|
10344
10344
|
onClick: z[1] || (z[1] = (q) => Re(S.value))
|
|
10345
10345
|
})) : he("", !0),
|
|
10346
|
-
|
|
10346
|
+
K(n).readOnly ? he("", !0) : (I(), Ae(lt, {
|
|
10347
10347
|
key: 1,
|
|
10348
|
-
variant:
|
|
10348
|
+
variant: K(vd)(K(n).status),
|
|
10349
10349
|
class: "min-w-0 max-w-[240px]"
|
|
10350
10350
|
}, {
|
|
10351
10351
|
default: nt(() => [
|
|
10352
|
-
|
|
10352
|
+
K(n).status === "starting" ? (I(), Ae(at, {
|
|
10353
10353
|
key: 0,
|
|
10354
10354
|
size: "md",
|
|
10355
10355
|
color: "system-warning-300"
|
|
10356
10356
|
})) : he("", !0),
|
|
10357
|
-
g("span", Wd, W(
|
|
10357
|
+
g("span", Wd, W(K(n).statusText), 1)
|
|
10358
10358
|
]),
|
|
10359
10359
|
_: 1
|
|
10360
10360
|
}, 8, ["variant"]))
|
|
@@ -10366,7 +10366,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10366
10366
|
label: "Build release",
|
|
10367
10367
|
variant: "secondary",
|
|
10368
10368
|
disabled: !le.value,
|
|
10369
|
-
loading:
|
|
10369
|
+
loading: K(r).busy,
|
|
10370
10370
|
onClick: ge
|
|
10371
10371
|
}, null, 8, ["disabled", "loading"])) : he("", !0)
|
|
10372
10372
|
]),
|
|
@@ -10376,10 +10376,10 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10376
10376
|
onClick: z[2] || (z[2] = (q) => y.value = !1)
|
|
10377
10377
|
}),
|
|
10378
10378
|
g("div", Vd, [
|
|
10379
|
-
(I(!0), B(He, null, Xe(
|
|
10379
|
+
(I(!0), B(He, null, Xe(K(r).sessions, (q) => (I(), B("button", {
|
|
10380
10380
|
key: q.id,
|
|
10381
10381
|
type: "button",
|
|
10382
|
-
class: De(["flex w-full cursor-pointer items-center gap-8 border-0 bg-transparent px-[12px] py-[8px] text-left hover:bg-fm-color-neutral-gray-100", q.id ===
|
|
10382
|
+
class: De(["flex w-full cursor-pointer items-center gap-8 border-0 bg-transparent px-[12px] py-[8px] text-left hover:bg-fm-color-neutral-gray-100", q.id === K(n).workspaceSessionId ? "bg-fm-color-primary-oats" : ""]),
|
|
10383
10383
|
onClick: (Qe) => G(q)
|
|
10384
10384
|
}, [
|
|
10385
10385
|
g("div", Kd, [
|
|
@@ -10387,24 +10387,24 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10387
10387
|
g("div", Xd, W($t(q.updated_at)), 1)
|
|
10388
10388
|
]),
|
|
10389
10389
|
te(lt, {
|
|
10390
|
-
variant:
|
|
10390
|
+
variant: K(Xn)(q.status)
|
|
10391
10391
|
}, {
|
|
10392
10392
|
default: nt(() => [
|
|
10393
|
-
Ye(W(
|
|
10393
|
+
Ye(W(K(Qn)(q.status)), 1)
|
|
10394
10394
|
]),
|
|
10395
10395
|
_: 2
|
|
10396
10396
|
}, 1032, ["variant"])
|
|
10397
10397
|
], 10, Zd))), 128)),
|
|
10398
|
-
|
|
10398
|
+
K(r).sessions.length ? he("", !0) : (I(), B("div", Qd, " No sessions yet. "))
|
|
10399
10399
|
])
|
|
10400
10400
|
], 64)) : he("", !0)
|
|
10401
10401
|
]),
|
|
10402
|
-
|
|
10403
|
-
g("span", ef, W(v.value ? "This
|
|
10402
|
+
K(n).readOnly && K(n).workspaceSessionId ? (I(), B("div", Jd, [
|
|
10403
|
+
g("span", ef, W(v.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),
|
|
10404
10404
|
te(Te, {
|
|
10405
|
-
label: "Resume
|
|
10405
|
+
label: "Resume session",
|
|
10406
10406
|
icon: "restart_alt",
|
|
10407
|
-
loading:
|
|
10407
|
+
loading: K(r).busy,
|
|
10408
10408
|
onClick: ye
|
|
10409
10409
|
}, null, 8, ["loading"])
|
|
10410
10410
|
])) : he("", !0),
|
|
@@ -10416,7 +10416,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10416
10416
|
}, [
|
|
10417
10417
|
w.value ? (I(), B("div", tf)) : he("", !0),
|
|
10418
10418
|
te(Kc, {
|
|
10419
|
-
chat:
|
|
10419
|
+
chat: K(n),
|
|
10420
10420
|
class: "workspace__chat shrink-0"
|
|
10421
10421
|
}, null, 8, ["chat"]),
|
|
10422
10422
|
g("div", {
|
|
@@ -10435,7 +10435,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10435
10435
|
g("span", { class: "pointer-events-none absolute inset-y-0 left-1/2 hidden w-[3px] -translate-x-1/2 rounded-full bg-fm-color-primary opacity-20 group-hover:block group-focus-visible:block" }, null, -1)
|
|
10436
10436
|
])], 40, nf),
|
|
10437
10437
|
te(gu, {
|
|
10438
|
-
chat:
|
|
10438
|
+
chat: K(n),
|
|
10439
10439
|
class: "min-w-0 flex-1"
|
|
10440
10440
|
}, null, 8, ["chat"])
|
|
10441
10441
|
], 4)
|
|
@@ -10443,7 +10443,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10443
10443
|
g("header", sf, [
|
|
10444
10444
|
z[6] || (z[6] = g("div", { class: "min-w-0" }, [
|
|
10445
10445
|
g("h2", { class: "m-0 fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Releases"),
|
|
10446
|
-
g("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Build from the active
|
|
10446
|
+
g("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Build from the active session, preview the release, then publish when it is ready. ")
|
|
10447
10447
|
], -1)),
|
|
10448
10448
|
g("div", af, [
|
|
10449
10449
|
te(Te, {
|
|
@@ -10457,7 +10457,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10457
10457
|
label: "Build release",
|
|
10458
10458
|
icon: "build",
|
|
10459
10459
|
disabled: !le.value,
|
|
10460
|
-
loading:
|
|
10460
|
+
loading: K(r).busy,
|
|
10461
10461
|
onClick: ge
|
|
10462
10462
|
}, null, 8, ["disabled", "loading"])
|
|
10463
10463
|
])
|
|
@@ -10474,7 +10474,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10474
10474
|
g("p", pf, W(V.value), 1)
|
|
10475
10475
|
]),
|
|
10476
10476
|
g("div", hf, [
|
|
10477
|
-
((Yt =
|
|
10477
|
+
((Yt = K(r).latestRelease) == null ? void 0 : Yt.id) === ((Dt = se.value) == null ? void 0 : Dt.id) ? (I(), Ae(lt, {
|
|
10478
10478
|
key: 0,
|
|
10479
10479
|
variant: "primary",
|
|
10480
10480
|
size: "sm"
|
|
@@ -10485,11 +10485,11 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10485
10485
|
_: 1
|
|
10486
10486
|
})) : he("", !0),
|
|
10487
10487
|
te(lt, {
|
|
10488
|
-
variant:
|
|
10488
|
+
variant: K(gd)(J.value),
|
|
10489
10489
|
size: "sm"
|
|
10490
10490
|
}, {
|
|
10491
10491
|
default: nt(() => [
|
|
10492
|
-
Ye(W(
|
|
10492
|
+
Ye(W(K(bd)(J.value)), 1)
|
|
10493
10493
|
]),
|
|
10494
10494
|
_: 1
|
|
10495
10495
|
}, 8, ["variant"])
|
|
@@ -10499,15 +10499,15 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10499
10499
|
te(Te, {
|
|
10500
10500
|
label: "Set live",
|
|
10501
10501
|
icon: "publish",
|
|
10502
|
-
disabled: !
|
|
10503
|
-
loading:
|
|
10502
|
+
disabled: !K(r).latestRelease || J.value !== "succeeded" || K(r).latestRelease.is_live === 1 || K(r).busy,
|
|
10503
|
+
loading: K(r).busy,
|
|
10504
10504
|
onClick: Ie
|
|
10505
10505
|
}, null, 8, ["disabled", "loading"]),
|
|
10506
10506
|
te(Te, {
|
|
10507
10507
|
label: "Open preview",
|
|
10508
10508
|
icon: "open_in_new",
|
|
10509
10509
|
variant: "secondary",
|
|
10510
|
-
disabled: !
|
|
10510
|
+
disabled: !K(r).latestRelease || J.value !== "succeeded",
|
|
10511
10511
|
onClick: ft
|
|
10512
10512
|
}, null, 8, ["disabled"]),
|
|
10513
10513
|
oe.value ? (I(), Ae(Te, {
|
|
@@ -10515,7 +10515,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10515
10515
|
label: "Build logs",
|
|
10516
10516
|
icon: "open_in_new",
|
|
10517
10517
|
variant: "tertiary",
|
|
10518
|
-
onClick:
|
|
10518
|
+
onClick: Y
|
|
10519
10519
|
})) : he("", !0)
|
|
10520
10520
|
])
|
|
10521
10521
|
])
|
|
@@ -10532,21 +10532,21 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10532
10532
|
label: "Refresh",
|
|
10533
10533
|
icon: "refresh",
|
|
10534
10534
|
variant: "tertiary",
|
|
10535
|
-
loading:
|
|
10536
|
-
onClick: z[3] || (z[3] = (q) =>
|
|
10535
|
+
loading: K(r).busy,
|
|
10536
|
+
onClick: z[3] || (z[3] = (q) => K(r).refreshReleases())
|
|
10537
10537
|
}, null, 8, ["loading"])
|
|
10538
10538
|
])
|
|
10539
10539
|
]),
|
|
10540
|
-
|
|
10540
|
+
K(r).releases.length === 0 ? (I(), B("div", xf, [
|
|
10541
10541
|
te(Ee, {
|
|
10542
10542
|
name: "rocket_launch",
|
|
10543
10543
|
size: "xl",
|
|
10544
10544
|
color: "neutral-gray-300"
|
|
10545
10545
|
}),
|
|
10546
10546
|
z[11] || (z[11] = g("p", { class: "m-0 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, "No releases yet", -1)),
|
|
10547
|
-
z[12] || (z[12] = g("p", { class: "m-0 fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, " Build from the active
|
|
10547
|
+
z[12] || (z[12] = g("p", { class: "m-0 fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, " Build from the active session to create a release you can preview and publish. ", -1))
|
|
10548
10548
|
])) : (I(), B("div", vf, [
|
|
10549
|
-
(I(!0), B(He, null, Xe(
|
|
10549
|
+
(I(!0), B(He, null, Xe(K(r).releases, (q) => (I(), B("div", {
|
|
10550
10550
|
key: q.id,
|
|
10551
10551
|
class: De(["flex items-center gap-16 px-16 py-12", qe(q)])
|
|
10552
10552
|
}, [
|
|
@@ -10565,11 +10565,11 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10565
10565
|
Ye(" " + W(q.session_title || "Manual release"), 1)
|
|
10566
10566
|
]),
|
|
10567
10567
|
te(lt, {
|
|
10568
|
-
variant:
|
|
10568
|
+
variant: K(xd)(q),
|
|
10569
10569
|
size: "sm"
|
|
10570
10570
|
}, {
|
|
10571
10571
|
default: nt(() => [
|
|
10572
|
-
Ye(W(
|
|
10572
|
+
Ye(W(K(_d)(q)), 1)
|
|
10573
10573
|
]),
|
|
10574
10574
|
_: 2
|
|
10575
10575
|
}, 1032, ["variant"])
|
|
@@ -10584,14 +10584,14 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10584
10584
|
te(Te, {
|
|
10585
10585
|
icon: "open_in_new",
|
|
10586
10586
|
variant: "tertiary",
|
|
10587
|
-
disabled: !
|
|
10587
|
+
disabled: !K(Si)(q),
|
|
10588
10588
|
onClick: (Qe) => st(q)
|
|
10589
10589
|
}, null, 8, ["disabled", "onClick"]),
|
|
10590
10590
|
te(Te, {
|
|
10591
10591
|
label: "Set live",
|
|
10592
10592
|
variant: "tertiary",
|
|
10593
|
-
disabled: q.build_status !== "succeeded" || q.is_live === 1 ||
|
|
10594
|
-
loading:
|
|
10593
|
+
disabled: q.build_status !== "succeeded" || q.is_live === 1 || K(r).busy,
|
|
10594
|
+
loading: K(r).busy && q.id === K(r).activeReleaseId,
|
|
10595
10595
|
onClick: (Qe) => ke(q)
|
|
10596
10596
|
}, null, 8, ["disabled", "loading", "onClick"]),
|
|
10597
10597
|
q.build_logs_url ? (I(), Ae(Te, {
|
|
@@ -10615,7 +10615,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10615
10615
|
variant: "secondary",
|
|
10616
10616
|
"border-color": "system-warning-300",
|
|
10617
10617
|
"text-color": "typo-warning",
|
|
10618
|
-
loading:
|
|
10618
|
+
loading: K(r).busy,
|
|
10619
10619
|
onClick: bt
|
|
10620
10620
|
}, null, 8, ["loading"])
|
|
10621
10621
|
])
|
|
@@ -10625,18 +10625,18 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10625
10625
|
g("header", Mf, [
|
|
10626
10626
|
z[14] || (z[14] = g("div", { class: "min-w-0" }, [
|
|
10627
10627
|
g("h2", { class: "m-0 fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Sessions"),
|
|
10628
|
-
g("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Switch between active and archived
|
|
10628
|
+
g("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Switch between active and archived sessions without exposing internal identifiers. ")
|
|
10629
10629
|
], -1)),
|
|
10630
10630
|
te(Te, {
|
|
10631
10631
|
label: "New workspace",
|
|
10632
10632
|
icon: "add",
|
|
10633
|
-
disabled: !
|
|
10633
|
+
disabled: !K(r).isProvisioned || X.value,
|
|
10634
10634
|
loading: X.value,
|
|
10635
10635
|
onClick: Pe
|
|
10636
10636
|
}, null, 8, ["disabled", "loading"])
|
|
10637
10637
|
]),
|
|
10638
10638
|
g("div", Lf, [
|
|
10639
|
-
(I(!0), B(He, null, Xe(
|
|
10639
|
+
(I(!0), B(He, null, Xe(K(r).sessions, (q) => (I(), B("div", {
|
|
10640
10640
|
key: q.id,
|
|
10641
10641
|
role: "button",
|
|
10642
10642
|
tabindex: "0",
|
|
@@ -10674,10 +10674,10 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10674
10674
|
]),
|
|
10675
10675
|
g("div", Ff, [
|
|
10676
10676
|
te(lt, {
|
|
10677
|
-
variant:
|
|
10677
|
+
variant: K(Xn)(q.status)
|
|
10678
10678
|
}, {
|
|
10679
10679
|
default: nt(() => [
|
|
10680
|
-
Ye(W(
|
|
10680
|
+
Ye(W(K(Qn)(q.status)), 1)
|
|
10681
10681
|
]),
|
|
10682
10682
|
_: 2
|
|
10683
10683
|
}, 1032, ["variant"]),
|
|
@@ -10690,7 +10690,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10690
10690
|
key: 0,
|
|
10691
10691
|
label: "Resume",
|
|
10692
10692
|
variant: "tertiary",
|
|
10693
|
-
disabled:
|
|
10693
|
+
disabled: K(r).busy,
|
|
10694
10694
|
onClick: kn((Qe) => ce(q), ["stop"])
|
|
10695
10695
|
}, null, 8, ["disabled", "onClick"])) : he("", !0),
|
|
10696
10696
|
te(Ee, {
|
|
@@ -10700,19 +10700,19 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10700
10700
|
})
|
|
10701
10701
|
])
|
|
10702
10702
|
], 42, $f))), 128)),
|
|
10703
|
-
|
|
10703
|
+
K(r).sessions.length ? he("", !0) : (I(), B("div", jf, [
|
|
10704
10704
|
te(Ee, {
|
|
10705
10705
|
name: "history",
|
|
10706
10706
|
size: "xl",
|
|
10707
10707
|
color: "neutral-gray-300"
|
|
10708
10708
|
}),
|
|
10709
|
-
z[16] || (z[16] = g("p", { class: "m-0 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, "No
|
|
10710
|
-
z[17] || (z[17] = g("p", { class: "m-0 fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, " Start a new
|
|
10709
|
+
z[16] || (z[16] = g("p", { class: "m-0 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, "No sessions yet", -1)),
|
|
10710
|
+
z[17] || (z[17] = g("p", { class: "m-0 fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, " Start a new session to chat with the agent and build the merchant app. ", -1)),
|
|
10711
10711
|
te(Te, {
|
|
10712
|
-
label: "New
|
|
10712
|
+
label: "New session",
|
|
10713
10713
|
icon: "add",
|
|
10714
10714
|
variant: "secondary",
|
|
10715
|
-
disabled: !
|
|
10715
|
+
disabled: !K(r).isProvisioned || X.value,
|
|
10716
10716
|
loading: X.value,
|
|
10717
10717
|
onClick: Pe
|
|
10718
10718
|
}, null, 8, ["disabled", "loading"])
|
|
@@ -10722,12 +10722,12 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10722
10722
|
g("header", Md, [
|
|
10723
10723
|
z[4] || (z[4] = g("div", { class: "min-w-0" }, [
|
|
10724
10724
|
g("h2", { class: "m-0 fm-typo-en-title-sm-600 text-fm-color-typo-primary" }, "Set up v2 project"),
|
|
10725
|
-
g("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Create the merchant app repository and prepare
|
|
10725
|
+
g("p", { class: "m-0 mt-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Create the merchant app repository and prepare live previews. Live traffic stays on v1 until a release is published. ")
|
|
10726
10726
|
], -1)),
|
|
10727
10727
|
te(Te, {
|
|
10728
10728
|
icon: "source",
|
|
10729
10729
|
label: "Set up project",
|
|
10730
|
-
loading:
|
|
10730
|
+
loading: K(r).busy,
|
|
10731
10731
|
onClick: Q
|
|
10732
10732
|
}, null, 8, ["loading"])
|
|
10733
10733
|
]),
|
|
@@ -10735,16 +10735,16 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10735
10735
|
g("section", $d, [
|
|
10736
10736
|
g("div", Pd, [
|
|
10737
10737
|
g("div", Dd, [
|
|
10738
|
-
g("p", zd, W(((Pt =
|
|
10739
|
-
g("p", Bd, W(((Kt =
|
|
10738
|
+
g("p", zd, W(((Pt = K(r).project) == null ? void 0 : Pt.provisioningStatus) === "failed" ? "Setup failed" : "Project is not set up yet"), 1),
|
|
10739
|
+
g("p", Bd, W(((Kt = K(r).project) == null ? void 0 : Kt.repoName) ?? "miniprogram repository"), 1)
|
|
10740
10740
|
]),
|
|
10741
10741
|
te(lt, {
|
|
10742
|
-
variant:
|
|
10742
|
+
variant: K(r).provisioningFailed ? "error" : "neutral"
|
|
10743
10743
|
}, {
|
|
10744
10744
|
default: nt(() => {
|
|
10745
10745
|
var q;
|
|
10746
10746
|
return [
|
|
10747
|
-
Ye(W(
|
|
10747
|
+
Ye(W(K(yd)((q = K(r).project) == null ? void 0 : q.provisioningStatus)), 1)
|
|
10748
10748
|
];
|
|
10749
10749
|
}),
|
|
10750
10750
|
_: 1
|
|
@@ -10757,7 +10757,7 @@ const Ed = ["aria-label", "title"], Td = { class: "flex flex-col gap-[4px]" }, S
|
|
|
10757
10757
|
], 2);
|
|
10758
10758
|
};
|
|
10759
10759
|
}
|
|
10760
|
-
}), Xf = /* @__PURE__ */ un(Wf, [["__scopeId", "data-v-
|
|
10760
|
+
}), Xf = /* @__PURE__ */ un(Wf, [["__scopeId", "data-v-28b26b82"]]);
|
|
10761
10761
|
export {
|
|
10762
10762
|
Xf as default
|
|
10763
10763
|
};
|