@feedmepos/mf-miniprogram-v2 0.1.0-dev.32 → 0.1.0-dev.34
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.
|
@@ -2621,7 +2621,7 @@ function Wa() {
|
|
|
2621
2621
|
const Ze = Oe({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
2622
2622
|
let xt = null;
|
|
2623
2623
|
const g = Oe({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), E = "http://www.w3.org/1998/Math/MathML", Z = "http://www.w3.org/2000/svg", se = "http://www.w3.org/1999/xhtml";
|
|
2624
|
-
let
|
|
2624
|
+
let fe = se, b = !1, z = null;
|
|
2625
2625
|
const De = Oe({}, [E, Z, se], vr), St = ut(["mi", "mo", "mn", "ms", "mtext"]);
|
|
2626
2626
|
let G = Oe({}, St);
|
|
2627
2627
|
const mt = ut(["annotation-xml"]);
|
|
@@ -2655,7 +2655,7 @@ function Wa() {
|
|
|
2655
2655
|
transform: P
|
|
2656
2656
|
}), de = Kt(d, "FORBID_ATTR", wt({}), {
|
|
2657
2657
|
transform: P
|
|
2658
|
-
}), K = st(d, "USE_PROFILES") ? d.USE_PROFILES && typeof d.USE_PROFILES == "object" ? wt(d.USE_PROFILES) : d.USE_PROFILES : !1, tt = d.ALLOW_ARIA_ATTR !== !1, Ge = d.ALLOW_DATA_ATTR !== !1, Ie = d.ALLOW_UNKNOWN_PROTOCOLS || !1, ht = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, We = d.SAFE_FOR_TEMPLATES || !1, vt = d.SAFE_FOR_XML !== !1, ot = d.WHOLE_DOCUMENT || !1, Ne = d.RETURN_DOM || !1, Xe = d.RETURN_DOM_FRAGMENT || !1, At = d.RETURN_TRUSTED_TYPE || !1, ke = d.FORCE_BODY || !1, Lt = d.SANITIZE_DOM !== !1, Dt = d.SANITIZE_NAMED_PROPS || !1, R = d.KEEP_CONTENT !== !1, H = d.IN_PLACE || !1, kt = Wl(d.ALLOWED_URI_REGEXP) ? d.ALLOWED_URI_REGEXP : Ws,
|
|
2658
|
+
}), K = st(d, "USE_PROFILES") ? d.USE_PROFILES && typeof d.USE_PROFILES == "object" ? wt(d.USE_PROFILES) : d.USE_PROFILES : !1, tt = d.ALLOW_ARIA_ATTR !== !1, Ge = d.ALLOW_DATA_ATTR !== !1, Ie = d.ALLOW_UNKNOWN_PROTOCOLS || !1, ht = d.ALLOW_SELF_CLOSE_IN_ATTR !== !1, We = d.SAFE_FOR_TEMPLATES || !1, vt = d.SAFE_FOR_XML !== !1, ot = d.WHOLE_DOCUMENT || !1, Ne = d.RETURN_DOM || !1, Xe = d.RETURN_DOM_FRAGMENT || !1, At = d.RETURN_TRUSTED_TYPE || !1, ke = d.FORCE_BODY || !1, Lt = d.SANITIZE_DOM !== !1, Dt = d.SANITIZE_NAMED_PROPS || !1, R = d.KEEP_CONTENT !== !1, H = d.IN_PLACE || !1, kt = Wl(d.ALLOWED_URI_REGEXP) ? d.ALLOWED_URI_REGEXP : Ws, fe = typeof d.NAMESPACE == "string" ? d.NAMESPACE : se, G = st(d, "MATHML_TEXT_INTEGRATION_POINTS") && d.MATHML_TEXT_INTEGRATION_POINTS && typeof d.MATHML_TEXT_INTEGRATION_POINTS == "object" ? wt(d.MATHML_TEXT_INTEGRATION_POINTS) : Oe({}, St), Ut = st(d, "HTML_INTEGRATION_POINTS") && d.HTML_INTEGRATION_POINTS && typeof d.HTML_INTEGRATION_POINTS == "object" ? wt(d.HTML_INTEGRATION_POINTS) : Oe({}, mt);
|
|
2659
2659
|
const A = st(d, "CUSTOM_ELEMENT_HANDLING") && d.CUSTOM_ELEMENT_HANDLING && typeof d.CUSTOM_ELEMENT_HANDLING == "object" ? wt(d.CUSTOM_ELEMENT_HANDLING) : mn(null);
|
|
2660
2660
|
if (te = mn(null), st(A, "tagNameCheck") && is(A.tagNameCheck) && (te.tagNameCheck = A.tagNameCheck), st(A, "attributeNameCheck") && is(A.attributeNameCheck) && (te.attributeNameCheck = A.attributeNameCheck), st(A, "allowCustomizedBuiltInElements") && typeof A.allowCustomizedBuiltInElements == "boolean" && (te.allowCustomizedBuiltInElements = A.allowCustomizedBuiltInElements), dt(te), We && (Ge = !1), Xe && (Ne = !0), K && ($e = Oe({}, js), D = mn(null), K.html === !0 && (Oe($e, Us), Oe(D, Hs)), K.svg === !0 && (Oe($e, xr), Oe(D, kr), Oe(D, Fn)), K.svgFilters === !0 && (Oe($e, _r), Oe(D, kr), Oe(D, Fn)), K.mathMl === !0 && (Oe($e, wr), Oe(D, Gs), Oe(D, Fn))), le.tagCheck = null, le.attributeCheck = null, st(d, "ADD_TAGS") && (typeof d.ADD_TAGS == "function" ? le.tagCheck = d.ADD_TAGS : Vt(d.ADD_TAGS) && ($e === it && ($e = wt($e)), Oe($e, d.ADD_TAGS, P))), st(d, "ADD_ATTR") && (typeof d.ADD_ATTR == "function" ? le.attributeCheck = d.ADD_ATTR : Vt(d.ADD_ATTR) && (D === ie && (D = wt(D)), Oe(D, d.ADD_ATTR, P))), st(d, "ADD_URI_SAFE_ATTR") && Vt(d.ADD_URI_SAFE_ATTR) && Oe(xt, d.ADD_URI_SAFE_ATTR, P), st(d, "FORBID_CONTENTS") && Vt(d.FORBID_CONTENTS) && (oe === ve && (oe = wt(oe)), Oe(oe, d.FORBID_CONTENTS, P)), st(d, "ADD_FORBID_CONTENTS") && Vt(d.ADD_FORBID_CONTENTS) && (oe === ve && (oe = wt(oe)), Oe(oe, d.ADD_FORBID_CONTENTS, P)), R && ($e["#text"] = !0), ot && Oe($e, ["html", "head", "body"]), $e.table && (Oe($e, ["tbody"]), delete Ue.tbody), d.TRUSTED_TYPES_POLICY) {
|
|
2661
2661
|
if (typeof d.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
@@ -2666,8 +2666,8 @@ function Wa() {
|
|
|
2666
2666
|
j = d.TRUSTED_TYPES_POLICY;
|
|
2667
2667
|
try {
|
|
2668
2668
|
ne = Q("");
|
|
2669
|
-
} catch (
|
|
2670
|
-
throw j = X,
|
|
2669
|
+
} catch (he) {
|
|
2670
|
+
throw j = X, he;
|
|
2671
2671
|
}
|
|
2672
2672
|
} else d.TRUSTED_TYPES_POLICY === null ? (j = void 0, ne = "") : (j === void 0 && (j = we()), j && typeof ne == "string" && (ne = Q("")));
|
|
2673
2673
|
ut && ut(d), lt = d;
|
|
@@ -2680,11 +2680,11 @@ function Wa() {
|
|
|
2680
2680
|
}, Ii = function(d) {
|
|
2681
2681
|
let A = T(d);
|
|
2682
2682
|
(!A || !A.tagName) && (A = {
|
|
2683
|
-
namespaceURI:
|
|
2683
|
+
namespaceURI: fe,
|
|
2684
2684
|
tagName: "template"
|
|
2685
2685
|
});
|
|
2686
|
-
const X = Cn(d.tagName),
|
|
2687
|
-
return z[d.namespaceURI] ? d.namespaceURI === Z ? Ci(X, A,
|
|
2686
|
+
const X = Cn(d.tagName), he = Cn(A.tagName);
|
|
2687
|
+
return z[d.namespaceURI] ? d.namespaceURI === Z ? Ci(X, A, he) : d.namespaceURI === E ? $i(X, A, he) : d.namespaceURI === se ? Ri(X, A, he) : !!($t === "application/xhtml+xml" && z[d.namespaceURI]) : !1;
|
|
2688
2688
|
}, Gt = function(d) {
|
|
2689
2689
|
fn(e.removed, {
|
|
2690
2690
|
element: d
|
|
@@ -2698,10 +2698,10 @@ function Wa() {
|
|
|
2698
2698
|
}, cs = function(d) {
|
|
2699
2699
|
const A = w(d);
|
|
2700
2700
|
if (A) {
|
|
2701
|
-
const
|
|
2701
|
+
const he = [];
|
|
2702
2702
|
wn(A, (Ee) => {
|
|
2703
|
-
fn(
|
|
2704
|
-
}), wn(
|
|
2703
|
+
fn(he, Ee);
|
|
2704
|
+
}), wn(he, (Ee) => {
|
|
2705
2705
|
try {
|
|
2706
2706
|
c(Ee);
|
|
2707
2707
|
} catch {
|
|
@@ -2710,8 +2710,8 @@ function Wa() {
|
|
|
2710
2710
|
}
|
|
2711
2711
|
const X = $(d);
|
|
2712
2712
|
if (X)
|
|
2713
|
-
for (let
|
|
2714
|
-
const Ee = X[
|
|
2713
|
+
for (let he = X.length - 1; he >= 0; --he) {
|
|
2714
|
+
const Ee = X[he], Le = Ee && Ee.name;
|
|
2715
2715
|
if (typeof Le == "string")
|
|
2716
2716
|
try {
|
|
2717
2717
|
d.removeAttribute(Le);
|
|
@@ -2745,7 +2745,7 @@ function Wa() {
|
|
|
2745
2745
|
const A = $(d);
|
|
2746
2746
|
if (A)
|
|
2747
2747
|
for (let X = A.length - 1; X >= 0; --X) {
|
|
2748
|
-
const
|
|
2748
|
+
const he = A[X], Ee = he && he.name;
|
|
2749
2749
|
if (!(typeof Ee != "string" || D[P(Ee)]))
|
|
2750
2750
|
try {
|
|
2751
2751
|
d.removeAttribute(Ee);
|
|
@@ -2770,22 +2770,22 @@ function Wa() {
|
|
|
2770
2770
|
const Le = Ds(d, /^[\r\n\t ]+/);
|
|
2771
2771
|
X = Le && Le[0];
|
|
2772
2772
|
}
|
|
2773
|
-
$t === "application/xhtml+xml" &&
|
|
2774
|
-
const
|
|
2775
|
-
if (
|
|
2773
|
+
$t === "application/xhtml+xml" && fe === se && (d = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + d + "</body></html>");
|
|
2774
|
+
const he = j ? Q(d) : d;
|
|
2775
|
+
if (fe === se)
|
|
2776
2776
|
try {
|
|
2777
|
-
A = new p().parseFromString(
|
|
2777
|
+
A = new p().parseFromString(he, $t);
|
|
2778
2778
|
} catch {
|
|
2779
2779
|
}
|
|
2780
2780
|
if (!A || !A.documentElement) {
|
|
2781
|
-
A = L.createDocument(
|
|
2781
|
+
A = L.createDocument(fe, "template", null);
|
|
2782
2782
|
try {
|
|
2783
|
-
A.documentElement.innerHTML = b ? ne :
|
|
2783
|
+
A.documentElement.innerHTML = b ? ne : he;
|
|
2784
2784
|
} catch {
|
|
2785
2785
|
}
|
|
2786
2786
|
}
|
|
2787
2787
|
const Ee = A.body || A.documentElement;
|
|
2788
|
-
return d && X && Ee.insertBefore(n.createTextNode(X), Ee.childNodes[0] || null),
|
|
2788
|
+
return d && X && Ee.insertBefore(n.createTextNode(X), Ee.childNodes[0] || null), fe === se ? me.call(A, ot ? "html" : "body")[0] : ot ? A.documentElement : Ee;
|
|
2789
2789
|
}, ds = function(d) {
|
|
2790
2790
|
return Y.call(
|
|
2791
2791
|
d.ownerDocument || d,
|
|
@@ -2806,9 +2806,9 @@ function Wa() {
|
|
|
2806
2806
|
i.SHOW_TEXT | i.SHOW_COMMENT | i.SHOW_CDATA_SECTION | i.SHOW_PROCESSING_INSTRUCTION,
|
|
2807
2807
|
null
|
|
2808
2808
|
);
|
|
2809
|
-
let
|
|
2810
|
-
for (;
|
|
2811
|
-
|
|
2809
|
+
let he = X.nextNode();
|
|
2810
|
+
for (; he; )
|
|
2811
|
+
he.data = Mn(he.data), he = X.nextNode();
|
|
2812
2812
|
const Ee = (A = d.querySelectorAll) === null || A === void 0 ? void 0 : A.call(d, "template");
|
|
2813
2813
|
Ee && wn(Ee, (Le) => {
|
|
2814
2814
|
un(Le.content) && mr(Le.content);
|
|
@@ -2867,11 +2867,11 @@ function Wa() {
|
|
|
2867
2867
|
if (!Ue[A] && hs(A) && (te.tagNameCheck instanceof RegExp && ct(te.tagNameCheck, A) || te.tagNameCheck instanceof Function && te.tagNameCheck(A)))
|
|
2868
2868
|
return !1;
|
|
2869
2869
|
if (R && !oe[A]) {
|
|
2870
|
-
const X = T(d),
|
|
2871
|
-
if (
|
|
2872
|
-
const Ee =
|
|
2870
|
+
const X = T(d), he = w(d);
|
|
2871
|
+
if (he && X) {
|
|
2872
|
+
const Ee = he.length;
|
|
2873
2873
|
for (let Le = Ee - 1; Le >= 0; --Le) {
|
|
2874
|
-
const rt = H ?
|
|
2874
|
+
const rt = H ? he[Le] : S(he[Le], !0);
|
|
2875
2875
|
X.insertBefore(rt, y(d));
|
|
2876
2876
|
}
|
|
2877
2877
|
}
|
|
@@ -2891,19 +2891,19 @@ function Wa() {
|
|
|
2891
2891
|
if ((C ? C(d) : d.nodeType) === zt.element && !Ii(d) || (A === "noscript" || A === "noembed" || A === "noframes") && ct(sc, d.innerHTML))
|
|
2892
2892
|
return Gt(d), !0;
|
|
2893
2893
|
if (We && d.nodeType === zt.text) {
|
|
2894
|
-
const
|
|
2895
|
-
d.textContent !==
|
|
2894
|
+
const he = Mn(d.textContent);
|
|
2895
|
+
d.textContent !== he && (fn(e.removed, {
|
|
2896
2896
|
element: d.cloneNode()
|
|
2897
|
-
}), d.textContent =
|
|
2897
|
+
}), d.textContent = he);
|
|
2898
2898
|
}
|
|
2899
2899
|
return jt(F.afterSanitizeElements, d, null), !1;
|
|
2900
2900
|
}, fs = function(d, A, X) {
|
|
2901
2901
|
if (de[A] || Lt && (A === "id" || A === "name") && (X in n || X in Ai))
|
|
2902
2902
|
return !1;
|
|
2903
|
-
const
|
|
2903
|
+
const he = D[A] || le.attributeCheck instanceof Function && le.attributeCheck(A, d);
|
|
2904
2904
|
if (!(Ge && ct(ze, A))) {
|
|
2905
2905
|
if (!(tt && ct(qe, A))) {
|
|
2906
|
-
if (
|
|
2906
|
+
if (he) {
|
|
2907
2907
|
if (!xt[A]) {
|
|
2908
2908
|
if (!ct(kt, kn(X, ft, ""))) {
|
|
2909
2909
|
if (!((A === "src" || A === "xlink:href" || A === "href") && d !== "script" && zs(X, "data:") === 0 && Be[d])) {
|
|
@@ -2927,18 +2927,18 @@ function Wa() {
|
|
|
2927
2927
|
return !0;
|
|
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
|
-
}, Di = function(d, A, X,
|
|
2930
|
+
}, Di = function(d, A, X, he) {
|
|
2931
2931
|
if (j && typeof v == "object" && typeof v.getAttributeType == "function" && !X)
|
|
2932
2932
|
switch (v.getAttributeType(d, A)) {
|
|
2933
2933
|
case "TrustedHTML":
|
|
2934
|
-
return Q(
|
|
2934
|
+
return Q(he);
|
|
2935
2935
|
case "TrustedScriptURL":
|
|
2936
|
-
return pe(
|
|
2936
|
+
return pe(he);
|
|
2937
2937
|
}
|
|
2938
|
-
return
|
|
2939
|
-
}, zi = function(d, A, X,
|
|
2938
|
+
return he;
|
|
2939
|
+
}, zi = function(d, A, X, he) {
|
|
2940
2940
|
try {
|
|
2941
|
-
X ? d.setAttributeNS(X, A,
|
|
2941
|
+
X ? d.setAttributeNS(X, A, he) : d.setAttribute(A, he), Ln(d) ? Gt(d) : Ls(e.removed);
|
|
2942
2942
|
} catch {
|
|
2943
2943
|
Yt(A, d);
|
|
2944
2944
|
}
|
|
@@ -2954,10 +2954,10 @@ function Wa() {
|
|
|
2954
2954
|
allowedAttributes: D,
|
|
2955
2955
|
forceKeepAttr: void 0
|
|
2956
2956
|
};
|
|
2957
|
-
let
|
|
2957
|
+
let he = A.length;
|
|
2958
2958
|
const Ee = P(d.nodeName);
|
|
2959
|
-
for (;
|
|
2960
|
-
const Le = A[
|
|
2959
|
+
for (; he--; ) {
|
|
2960
|
+
const Le = A[he], rt = Le.name, Qe = Le.namespaceURI, Ct = Le.value, Rt = P(rt), br = Ct;
|
|
2961
2961
|
let _t = rt === "value" ? br : Bl(br);
|
|
2962
2962
|
if (X.attrName = Rt, X.attrValue = _t, X.keepAttr = !0, X.forceKeepAttr = void 0, jt(F.uponSanitizeAttribute, d, X), _t = X.attrValue, Dt && (Rt === "id" || Rt === "name") && zs(_t, k) !== 0 && (Yt(rt, d), _t = k + _t), vt && ct(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, _t)) {
|
|
2963
2963
|
Yt(rt, d);
|
|
@@ -3004,7 +3004,7 @@ function Wa() {
|
|
|
3004
3004
|
Dn(X.shadow);
|
|
3005
3005
|
continue;
|
|
3006
3006
|
}
|
|
3007
|
-
const
|
|
3007
|
+
const he = X.node, Le = (C ? C(he) : he.nodeType) === zt.element, rt = w(he);
|
|
3008
3008
|
if (rt)
|
|
3009
3009
|
for (let Qe = rt.length - 1; Qe >= 0; --Qe)
|
|
3010
3010
|
A.push({
|
|
@@ -3012,9 +3012,9 @@ function Wa() {
|
|
|
3012
3012
|
shadow: null
|
|
3013
3013
|
});
|
|
3014
3014
|
if (Le) {
|
|
3015
|
-
const Qe = M ? M(
|
|
3015
|
+
const Qe = M ? M(he) : null;
|
|
3016
3016
|
if (typeof Qe == "string" && P(Qe) === "template") {
|
|
3017
|
-
const Ct =
|
|
3017
|
+
const Ct = he.content;
|
|
3018
3018
|
un(Ct) && A.push({
|
|
3019
3019
|
node: Ct,
|
|
3020
3020
|
shadow: null
|
|
@@ -3022,7 +3022,7 @@ function Wa() {
|
|
|
3022
3022
|
}
|
|
3023
3023
|
}
|
|
3024
3024
|
if (Le) {
|
|
3025
|
-
const Qe = x(
|
|
3025
|
+
const Qe = x(he);
|
|
3026
3026
|
un(Qe) && A.push({
|
|
3027
3027
|
node: null,
|
|
3028
3028
|
shadow: Qe
|
|
@@ -3034,7 +3034,7 @@ function Wa() {
|
|
|
3034
3034
|
}
|
|
3035
3035
|
};
|
|
3036
3036
|
return e.sanitize = function(J) {
|
|
3037
|
-
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, A = null, X = null,
|
|
3037
|
+
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, A = null, X = null, he = null, Ee = null;
|
|
3038
3038
|
if (b = !J, b && (J = "<!-->"), typeof J != "string" && !xn(J) && (J = Gl(J), typeof J != "string"))
|
|
3039
3039
|
throw Xt("dirty is not a string, aborting");
|
|
3040
3040
|
if (!e.isSupported)
|
|
@@ -3067,8 +3067,8 @@ function Wa() {
|
|
|
3067
3067
|
A && ke && Gt(A.firstChild);
|
|
3068
3068
|
const rt = ds(Le ? J : A);
|
|
3069
3069
|
try {
|
|
3070
|
-
for (;
|
|
3071
|
-
ps(
|
|
3070
|
+
for (; he = rt.nextNode(); )
|
|
3071
|
+
ps(he), ms(he), un(he.content) && Dn(he.content);
|
|
3072
3072
|
} catch (Ct) {
|
|
3073
3073
|
throw Le && cs(J), Ct;
|
|
3074
3074
|
}
|
|
@@ -3094,8 +3094,8 @@ function Wa() {
|
|
|
3094
3094
|
lt = null, q = !1, ce = null, ye = null, j = ee, ne = "";
|
|
3095
3095
|
}, e.isValidAttribute = function(J, d, A) {
|
|
3096
3096
|
lt || hr({});
|
|
3097
|
-
const X = P(J),
|
|
3098
|
-
return fs(X,
|
|
3097
|
+
const X = P(J), he = P(d);
|
|
3098
|
+
return fs(X, he, A);
|
|
3099
3099
|
}, e.addHook = function(J, d) {
|
|
3100
3100
|
typeof d == "function" && st(F, J) && fn(F[J], d);
|
|
3101
3101
|
}, e.removeHook = function(J, d) {
|
|
@@ -9192,13 +9192,13 @@ const Uf = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
9192
9192
|
}, Wf = { class: "flex h-[40px] items-center justify-between gap-8 border-b border-fm-color-neutral-gray-100 px-[10px]" }, Kf = { class: "min-w-0 truncate fm-typo-en-body-sm-600 text-fm-color-typo-primary" }, Vf = { class: "flex shrink-0 items-center gap-4" }, qf = ["disabled"], Zf = {
|
|
9193
9193
|
key: 0,
|
|
9194
9194
|
class: "m-0 shrink-0 bg-fm-color-error-light px-[10px] py-[5px] text-[11px] leading-[15px] text-fm-color-error"
|
|
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 = { class: "
|
|
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 = ["onClick"], th = { class: "relative min-w-0" }, nh = ["onUpdate:modelValue", "placeholder", "onPaste", "onDrop"], rh = ["disabled", "title", "aria-label", "onClick"], sh = {
|
|
9196
9196
|
key: 0,
|
|
9197
|
-
class: "
|
|
9198
|
-
},
|
|
9197
|
+
class: "flex flex-wrap items-center gap-[6px]"
|
|
9198
|
+
}, ah = ["src", "alt"], ih = ["aria-label", "onClick"], oh = ["aria-expanded", "aria-label", "onClick"], lh = {
|
|
9199
9199
|
key: 0,
|
|
9200
|
-
class: "
|
|
9201
|
-
},
|
|
9200
|
+
class: "preview__toggle-dot"
|
|
9201
|
+
}, ch = {
|
|
9202
9202
|
key: 2,
|
|
9203
9203
|
class: "preview__error-tray"
|
|
9204
9204
|
}, uh = ["aria-expanded"], dh = {
|
|
@@ -9267,12 +9267,12 @@ const Uf = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
9267
9267
|
]), re = /* @__PURE__ */ new Map([["brand", "Brand"], ["heading", "Heading"], ["body", "Body"]]);
|
|
9268
9268
|
function me(g) {
|
|
9269
9269
|
if (!g) return null;
|
|
9270
|
-
const { width: E, height: Z } = ne.value, se = Math.max(0, Math.min(E, g.x)),
|
|
9270
|
+
const { width: E, height: Z } = ne.value, se = Math.max(0, Math.min(E, g.x)), fe = Math.max(0, Math.min(Z, g.y));
|
|
9271
9271
|
return {
|
|
9272
9272
|
left: se,
|
|
9273
|
-
top:
|
|
9273
|
+
top: fe,
|
|
9274
9274
|
width: Math.max(0, Math.min(E, g.x + g.width) - se),
|
|
9275
|
-
height: Math.max(0, Math.min(Z, g.y + g.height) -
|
|
9275
|
+
height: Math.max(0, Math.min(Z, g.y + g.height) - fe)
|
|
9276
9276
|
};
|
|
9277
9277
|
}
|
|
9278
9278
|
function N(g) {
|
|
@@ -9303,7 +9303,7 @@ const Uf = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
9303
9303
|
var se;
|
|
9304
9304
|
const E = Me();
|
|
9305
9305
|
if (!E || !((se = u.value) != null && se.contentWindow)) return !1;
|
|
9306
|
-
const Z = Object.fromEntries(Object.entries({ source: "opencode-poc", ...g }).map(([
|
|
9306
|
+
const Z = Object.fromEntries(Object.entries({ source: "opencode-poc", ...g }).map(([fe, b]) => !b || typeof b != "object" || Array.isArray(b) ? [fe, b] : [fe, Object.fromEntries(Object.entries(b))]));
|
|
9307
9307
|
try {
|
|
9308
9308
|
return u.value.contentWindow.postMessage(Z, E), !0;
|
|
9309
9309
|
} catch {
|
|
@@ -9385,7 +9385,7 @@ const Uf = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
9385
9385
|
}, 1800);
|
|
9386
9386
|
}
|
|
9387
9387
|
function le(g) {
|
|
9388
|
-
var se,
|
|
9388
|
+
var se, fe, b, z, De, St, G;
|
|
9389
9389
|
if (g.source !== ((se = u.value) == null ? void 0 : se.contentWindow) || g.origin !== Me()) return;
|
|
9390
9390
|
const E = g.data;
|
|
9391
9391
|
if (E.source !== "opencode-preview-bridge") return;
|
|
@@ -9394,7 +9394,7 @@ const Uf = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
9394
9394
|
return;
|
|
9395
9395
|
}
|
|
9396
9396
|
if (E.type === "annotation-hover") {
|
|
9397
|
-
tt.value = (
|
|
9397
|
+
tt.value = (fe = E.payload) != null && fe.matched ? E.payload.element : null;
|
|
9398
9398
|
return;
|
|
9399
9399
|
}
|
|
9400
9400
|
if (E.type === "annotation-pick") {
|
|
@@ -9460,8 +9460,8 @@ const Uf = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
9460
9460
|
E.value = "";
|
|
9461
9461
|
const se = m.value.find((b) => b.id === w);
|
|
9462
9462
|
if (w = null, !se) return;
|
|
9463
|
-
const
|
|
9464
|
-
|
|
9463
|
+
const fe = Z.filter((b) => pr.has(b.type));
|
|
9464
|
+
fe.length ? We(se, fe) : Z.length && (c.value = "Only PNG, JPEG, WebP, or GIF images are supported.");
|
|
9465
9465
|
}
|
|
9466
9466
|
function ke(g) {
|
|
9467
9467
|
return l.value && i.value === g;
|
|
@@ -9475,8 +9475,8 @@ const Uf = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
9475
9475
|
if (!E) return;
|
|
9476
9476
|
const { styles: Z, appliedKeys: se } = su(g.beforeStyles, g.draftStyles, g.appliedStyleKeys);
|
|
9477
9477
|
g.appliedStyleKeys = se;
|
|
9478
|
-
const
|
|
9479
|
-
g.textApplied =
|
|
9478
|
+
const fe = !!E.canEditText && g.draftText !== g.beforeText, b = fe || g.textApplied;
|
|
9479
|
+
g.textApplied = fe, g.changed = !!(se.length || fe), !(!Object.keys(Z).length && !b) && ze({
|
|
9480
9480
|
type: "annotation-preview",
|
|
9481
9481
|
requestId: g.id,
|
|
9482
9482
|
styles: Z,
|
|
@@ -9517,11 +9517,11 @@ const Uf = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
9517
9517
|
}
|
|
9518
9518
|
}
|
|
9519
9519
|
function K(g) {
|
|
9520
|
-
var se,
|
|
9520
|
+
var se, fe;
|
|
9521
9521
|
const E = ((se = g.payload) == null ? void 0 : se.element) ?? null, Z = Js(g.beforeStyles, g.draftStyles, Ce.value);
|
|
9522
9522
|
return lu({
|
|
9523
9523
|
id: g.id,
|
|
9524
|
-
route: H(((
|
|
9524
|
+
route: H(((fe = g.payload) == null ? void 0 : fe.url) ?? e.chat.previewUrl),
|
|
9525
9525
|
device: `${g.device.label} · ${g.device.width}×${g.device.height}`,
|
|
9526
9526
|
element: E,
|
|
9527
9527
|
note: g.feedback,
|
|
@@ -9533,11 +9533,11 @@ const Uf = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
9533
9533
|
}
|
|
9534
9534
|
function oe(g) {
|
|
9535
9535
|
var Z, se;
|
|
9536
|
-
const E = Js(g.beforeStyles, g.draftStyles, Ce.value).map((
|
|
9537
|
-
label: Ht(
|
|
9538
|
-
before:
|
|
9539
|
-
after:
|
|
9540
|
-
...
|
|
9536
|
+
const E = Js(g.beforeStyles, g.draftStyles, Ce.value).map((fe) => ({
|
|
9537
|
+
label: Ht(fe.property).label,
|
|
9538
|
+
before: fe.before || "unset",
|
|
9539
|
+
after: fe.after || "unset",
|
|
9540
|
+
...fe.token ? { token: fe.token } : {}
|
|
9541
9541
|
}));
|
|
9542
9542
|
return (se = (Z = g.payload) == null ? void 0 : Z.element) != null && se.canEditText && g.draftText !== g.beforeText && E.unshift({
|
|
9543
9543
|
label: "Content",
|
|
@@ -9546,8 +9546,8 @@ const Uf = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
9546
9546
|
}), E;
|
|
9547
9547
|
}
|
|
9548
9548
|
function ve(g) {
|
|
9549
|
-
var se,
|
|
9550
|
-
const E = (
|
|
9549
|
+
var se, fe, b, z;
|
|
9550
|
+
const E = (fe = (se = g.payload) == null ? void 0 : se.element) == null ? void 0 : fe.sourceInspector, Z = oe(g);
|
|
9551
9551
|
return {
|
|
9552
9552
|
id: g.id,
|
|
9553
9553
|
note: g.feedback.trim(),
|
|
@@ -9562,10 +9562,10 @@ const Uf = { class: "relative flex h-full min-w-0 flex-col bg-fm-color-neutral-w
|
|
|
9562
9562
|
const g = m.value.filter((se) => se.status !== "inspecting" && (se.feedback.trim() || se.changed || se.attachments.length));
|
|
9563
9563
|
if (!g.length || e.chat.status !== "ready") return;
|
|
9564
9564
|
const E = g.flatMap(
|
|
9565
|
-
(se) => se.attachments.map((
|
|
9566
|
-
mime:
|
|
9567
|
-
filename: Hd(se.id,
|
|
9568
|
-
url:
|
|
9565
|
+
(se) => se.attachments.map((fe) => ({
|
|
9566
|
+
mime: fe.mime,
|
|
9567
|
+
filename: Hd(se.id, fe.filename),
|
|
9568
|
+
url: fe.url
|
|
9569
9569
|
}))
|
|
9570
9570
|
), Z = `I marked ${g.length} preview annotation${g.length === 1 ? "" : "s"}. Apply the requested intent in the owning Vue source or design tokens, preserving dynamic and responsive semantics.
|
|
9571
9571
|
|
|
@@ -9600,7 +9600,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9600
9600
|
R(), tt.value = null, a.value = !1;
|
|
9601
9601
|
}), (g, E) => {
|
|
9602
9602
|
var b, z, De, St;
|
|
9603
|
-
const Z = je("FmSelect"), se = je("FmButton"),
|
|
9603
|
+
const Z = je("FmSelect"), se = je("FmButton"), fe = je("FmIcon");
|
|
9604
9604
|
return h(), _("div", Uf, [
|
|
9605
9605
|
f("header", jf, [
|
|
9606
9606
|
W(Z, {
|
|
@@ -9640,7 +9640,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9640
9640
|
rel: "noopener",
|
|
9641
9641
|
"aria-label": "Open preview"
|
|
9642
9642
|
}, [
|
|
9643
|
-
W(
|
|
9643
|
+
W(fe, {
|
|
9644
9644
|
name: "open_in_new",
|
|
9645
9645
|
size: "md",
|
|
9646
9646
|
color: e.chat.previewUrl ? "typo-primary" : "typo-disabled"
|
|
@@ -9668,7 +9668,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9668
9668
|
"aria-label": "Clear annotations",
|
|
9669
9669
|
onClick: R
|
|
9670
9670
|
}, [
|
|
9671
|
-
W(
|
|
9671
|
+
W(fe, {
|
|
9672
9672
|
name: "delete_sweep",
|
|
9673
9673
|
size: "sm",
|
|
9674
9674
|
color: "typo-secondary"
|
|
@@ -9680,7 +9680,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9680
9680
|
disabled: !V.value || t.chat.sending,
|
|
9681
9681
|
onClick: Be
|
|
9682
9682
|
}, [
|
|
9683
|
-
W(
|
|
9683
|
+
W(fe, {
|
|
9684
9684
|
name: "send",
|
|
9685
9685
|
size: "sm",
|
|
9686
9686
|
color: "typo-white"
|
|
@@ -9728,38 +9728,6 @@ ${Yu(g.map(ve))}`;
|
|
|
9728
9728
|
]),
|
|
9729
9729
|
_: 2
|
|
9730
9730
|
}, 1032, ["variant"])) : U("", !0),
|
|
9731
|
-
f("div", eh, [
|
|
9732
|
-
(Ut = G.payload) != null && Ut.element ? (h(), _("button", {
|
|
9733
|
-
key: 0,
|
|
9734
|
-
type: "button",
|
|
9735
|
-
class: Ae(["preview__mini-icon-button", { "preview__mini-icon-button--active": ke(G.id) }]),
|
|
9736
|
-
"aria-pressed": ke(G.id),
|
|
9737
|
-
"aria-label": `Edit properties for annotation #${G.id}`,
|
|
9738
|
-
title: "Edit properties",
|
|
9739
|
-
onClick: (Je) => Ne(G.id)
|
|
9740
|
-
}, [
|
|
9741
|
-
W(he, {
|
|
9742
|
-
name: "tune",
|
|
9743
|
-
size: "sm",
|
|
9744
|
-
color: ke(G.id) ? "primary" : "typo-secondary"
|
|
9745
|
-
}, null, 8, ["color"]),
|
|
9746
|
-
G.changed && !ke(G.id) ? (h(), _("span", nh)) : U("", !0)
|
|
9747
|
-
], 10, th)) : U("", !0),
|
|
9748
|
-
f("button", {
|
|
9749
|
-
type: "button",
|
|
9750
|
-
class: "preview__mini-icon-button",
|
|
9751
|
-
disabled: pe.value || t.chat.sending,
|
|
9752
|
-
title: pe.value ? `Up to ${O(rn)} images per message` : "Attach an image — or paste / drop one on the note",
|
|
9753
|
-
"aria-label": `Attach an image to annotation #${G.id}`,
|
|
9754
|
-
onClick: (Je) => ce(G)
|
|
9755
|
-
}, [
|
|
9756
|
-
W(he, {
|
|
9757
|
-
name: "add_photo_alternate",
|
|
9758
|
-
size: "sm",
|
|
9759
|
-
color: pe.value || t.chat.sending ? "typo-disabled" : "typo-secondary"
|
|
9760
|
-
}, null, 8, ["color"])
|
|
9761
|
-
], 8, rh)
|
|
9762
|
-
]),
|
|
9763
9731
|
f("button", {
|
|
9764
9732
|
type: "button",
|
|
9765
9733
|
class: "preview__mini-icon-button preview__mini-icon-button--danger",
|
|
@@ -9767,26 +9735,42 @@ ${Yu(g.map(ve))}`;
|
|
|
9767
9735
|
"aria-label": "Remove annotation",
|
|
9768
9736
|
onClick: (Je) => k(G.id)
|
|
9769
9737
|
}, [
|
|
9770
|
-
W(
|
|
9738
|
+
W(fe, {
|
|
9771
9739
|
name: "close",
|
|
9772
9740
|
size: "sm",
|
|
9773
9741
|
color: "typo-tertiary"
|
|
9774
9742
|
})
|
|
9775
|
-
], 8,
|
|
9743
|
+
], 8, eh)
|
|
9776
9744
|
]),
|
|
9777
|
-
|
|
9778
|
-
"
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9745
|
+
f("div", th, [
|
|
9746
|
+
Yn(f("textarea", {
|
|
9747
|
+
"onUpdate:modelValue": (Je) => G.feedback = Je,
|
|
9748
|
+
rows: "2",
|
|
9749
|
+
placeholder: (Ut = G.payload) != null && Ut.element && O(cr)(G.payload.element) === "media" ? "Describe the change, or paste/drop the replacement image…" : "Describe what should change here…",
|
|
9750
|
+
class: "min-h-[62px] max-h-[120px] w-full resize-y rounded-md border border-fm-color-neutral-gray-200 px-[10px] pb-[30px] pt-[7px] fm-typo-en-body-sm-400 outline-none focus:border-fm-color-primary",
|
|
9751
|
+
onPaste: (Je) => vt(Je, G),
|
|
9752
|
+
onDragover: E[3] || (E[3] = Zn(() => {
|
|
9753
|
+
}, ["prevent"])),
|
|
9754
|
+
onDrop: (Je) => ot(Je, G)
|
|
9755
|
+
}, null, 40, nh), [
|
|
9756
|
+
[Xn, G.feedback]
|
|
9757
|
+
]),
|
|
9758
|
+
f("button", {
|
|
9759
|
+
type: "button",
|
|
9760
|
+
class: "preview__attachment-add",
|
|
9761
|
+
disabled: pe.value || t.chat.sending,
|
|
9762
|
+
title: pe.value ? `Up to ${O(rn)} images per message` : "Attach an image — or paste / drop one on the note",
|
|
9763
|
+
"aria-label": `Attach an image to annotation #${G.id}`,
|
|
9764
|
+
onClick: (Je) => ce(G)
|
|
9765
|
+
}, [
|
|
9766
|
+
W(fe, {
|
|
9767
|
+
name: "add_photo_alternate",
|
|
9768
|
+
size: "sm",
|
|
9769
|
+
color: pe.value || t.chat.sending ? "typo-disabled" : "typo-secondary"
|
|
9770
|
+
}, null, 8, ["color"])
|
|
9771
|
+
], 8, rh)
|
|
9788
9772
|
]),
|
|
9789
|
-
G.attachments.length ? (h(), _("div",
|
|
9773
|
+
G.attachments.length ? (h(), _("div", sh, [
|
|
9790
9774
|
(h(!0), _(Te, null, Re(G.attachments, (Je) => (h(), _("div", {
|
|
9791
9775
|
key: Je.id,
|
|
9792
9776
|
class: "relative"
|
|
@@ -9795,23 +9779,45 @@ ${Yu(g.map(ve))}`;
|
|
|
9795
9779
|
src: Je.url,
|
|
9796
9780
|
alt: Je.filename || "attached image",
|
|
9797
9781
|
class: "preview__attachment"
|
|
9798
|
-
}, null, 8,
|
|
9782
|
+
}, null, 8, ah),
|
|
9799
9783
|
f("button", {
|
|
9800
9784
|
type: "button",
|
|
9801
9785
|
class: "preview__attachment-remove",
|
|
9802
9786
|
"aria-label": `Remove ${Je.filename || "image"}`,
|
|
9803
9787
|
onClick: (vn) => q(G, Je.id)
|
|
9804
9788
|
}, [
|
|
9805
|
-
W(
|
|
9789
|
+
W(fe, {
|
|
9806
9790
|
name: "close",
|
|
9807
9791
|
size: "sm",
|
|
9808
9792
|
color: "typo-white"
|
|
9809
9793
|
})
|
|
9810
|
-
], 8,
|
|
9794
|
+
], 8, ih)
|
|
9811
9795
|
]))), 128))
|
|
9812
9796
|
])) : U("", !0),
|
|
9813
|
-
|
|
9797
|
+
(Zt = G.payload) != null && Zt.element ? (h(), _("button", {
|
|
9814
9798
|
key: 1,
|
|
9799
|
+
type: "button",
|
|
9800
|
+
class: Ae(["preview__properties-toggle", { "preview__properties-toggle--active": ke(G.id) }]),
|
|
9801
|
+
"aria-expanded": ke(G.id),
|
|
9802
|
+
"aria-label": `Edit properties for annotation #${G.id}`,
|
|
9803
|
+
onClick: (Je) => Ne(G.id)
|
|
9804
|
+
}, [
|
|
9805
|
+
W(fe, {
|
|
9806
|
+
name: "tune",
|
|
9807
|
+
size: "sm",
|
|
9808
|
+
color: ke(G.id) ? "primary" : "typo-tertiary"
|
|
9809
|
+
}, null, 8, ["color"]),
|
|
9810
|
+
E[7] || (E[7] = f("span", null, "Properties", -1)),
|
|
9811
|
+
G.changed && !ke(G.id) ? (h(), _("span", lh)) : U("", !0),
|
|
9812
|
+
W(fe, {
|
|
9813
|
+
class: "ml-auto",
|
|
9814
|
+
name: ke(G.id) ? "expand_less" : "expand_more",
|
|
9815
|
+
size: "sm",
|
|
9816
|
+
color: "typo-tertiary"
|
|
9817
|
+
}, null, 8, ["name"])
|
|
9818
|
+
], 10, oh)) : U("", !0),
|
|
9819
|
+
ke(G.id) && (($t = G.payload) != null && $t.element) ? (h(), Se(zf, {
|
|
9820
|
+
key: 2,
|
|
9815
9821
|
element: G.payload.element,
|
|
9816
9822
|
values: G.draftStyles,
|
|
9817
9823
|
"before-values": G.beforeStyles,
|
|
@@ -9835,7 +9841,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9835
9841
|
onClick: E[4] || (E[4] = (G) => T.value = !T.value)
|
|
9836
9842
|
}, [
|
|
9837
9843
|
f("span", null, I(ge.value), 1),
|
|
9838
|
-
W(
|
|
9844
|
+
W(fe, {
|
|
9839
9845
|
name: "expand_more",
|
|
9840
9846
|
size: "sm",
|
|
9841
9847
|
color: "typo-secondary"
|
|
@@ -9872,7 +9878,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9872
9878
|
style: Pt(ee.value)
|
|
9873
9879
|
}, [
|
|
9874
9880
|
f("div", gh, [
|
|
9875
|
-
E[
|
|
9881
|
+
E[9] || (E[9] = f("div", { class: "preview__speaker" }, null, -1)),
|
|
9876
9882
|
(h(), _("iframe", {
|
|
9877
9883
|
ref_key: "iframeEl",
|
|
9878
9884
|
ref: u,
|
|
@@ -9888,7 +9894,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9888
9894
|
key: 0,
|
|
9889
9895
|
class: Ae(["preview__annotation-hover", { "preview__annotation-tag-inside": F(tt.value.rect) }]),
|
|
9890
9896
|
style: Pt(Ge.value)
|
|
9891
|
-
}, [...E[
|
|
9897
|
+
}, [...E[8] || (E[8] = [
|
|
9892
9898
|
f("span", null, "Inspect", -1)
|
|
9893
9899
|
])], 6)) : U("", !0),
|
|
9894
9900
|
(h(!0), _(Te, null, Re(m.value, (G) => (h(), _("div", {
|
|
@@ -9908,7 +9914,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9908
9914
|
], 4)
|
|
9909
9915
|
])) : (h(), _("div", vh, [
|
|
9910
9916
|
f("div", null, [
|
|
9911
|
-
W(
|
|
9917
|
+
W(fe, {
|
|
9912
9918
|
name: "visibility",
|
|
9913
9919
|
size: "xl",
|
|
9914
9920
|
color: "typo-tertiary"
|
|
@@ -9930,7 +9936,7 @@ ${Yu(g.map(ve))}`;
|
|
|
9930
9936
|
]);
|
|
9931
9937
|
};
|
|
9932
9938
|
}
|
|
9933
|
-
}), Sh = /* @__PURE__ */ Mt(kh, [["__scopeId", "data-v-
|
|
9939
|
+
}), Sh = /* @__PURE__ */ Mt(kh, [["__scopeId", "data-v-503eef4f"]]), Th = { class: "flex justify-end gap-8" }, Eh = /* @__PURE__ */ pt({
|
|
9934
9940
|
__name: "RenameSessionDialog",
|
|
9935
9941
|
props: {
|
|
9936
9942
|
initialTitle: {}
|
|
@@ -11745,8 +11751,8 @@ function Sm() {
|
|
|
11745
11751
|
baseUrl: Qt("/api/opencode"),
|
|
11746
11752
|
headers: Z,
|
|
11747
11753
|
fetch: (se) => {
|
|
11748
|
-
const
|
|
11749
|
-
return
|
|
11754
|
+
const fe = new Request(se);
|
|
11755
|
+
return fe.headers.set("x-miniprogram-business-id", k.businessId ?? ""), fe.headers.set("x-miniprogram-session-id", Ze), fe.timeout = !1, en(fe);
|
|
11750
11756
|
}
|
|
11751
11757
|
}), a.value = g, await kt(g), ee++, Ie(ee), t.value = "ready", e.value = "Ready";
|
|
11752
11758
|
} catch (H) {
|
|
@@ -12426,7 +12432,7 @@ const Lm = ["aria-label", "title"], Dm = { class: "flex flex-col gap-[4px]" }, z
|
|
|
12426
12432
|
return ((b = r.project) == null ? void 0 : b.provisioningError) ?? null;
|
|
12427
12433
|
}), Y = B(() => r.busy || l.value), re = B(() => !!(x.value && r.isProvisioned && !Y.value && !n.agentBusy && !n.checkpointSaving && !r.checkpointBusy)), me = B(() => {
|
|
12428
12434
|
const b = r.workspaceState;
|
|
12429
|
-
return !ee.value || ee.value.status !== "active" ? "Read-only history" : b ? n.status === "starting" && b.syncState === "unavailable" ? b.lastDurableCommitSha ? `Starting workspace · saved ${b.lastDurableCommitSha.slice(0, 7)}` : "Starting workspace" : b.syncState === "unavailable" ? b.lastDurableCommitSha ? `Workspace unavailable · saved ${b.lastDurableCommitSha.slice(0, 7)}` : "Workspace unavailable" : b.syncState === "diverged" ? "Workspace diverged from main" : b.syncState === "behind" ? `${b.commitsBehindOrigin} commit${b.commitsBehindOrigin === 1 ? "" : "s"} behind main` : b.syncState === "uncommitted" ? `${b.statusCount} local change${b.statusCount === 1 ? "" : "s"} · awaiting save` : b.syncState === "unpushed" ? `${b.commitsAheadOrigin} local commit${b.commitsAheadOrigin === 1 ? "" : "s"} · not pushed` : b.syncState === "saving" || n.checkpointSaving || r.checkpointBusy ? "Saving checkpoint…" : b.syncState === "save_failed" ? "Save failed · retry scheduled" : b.lastDurableCommitSha ? `Saved to GitHub${b.lastPushedAt ? ` · ${
|
|
12435
|
+
return !ee.value || ee.value.status !== "active" ? "Read-only history" : b ? n.status === "starting" && b.syncState === "unavailable" ? b.lastDurableCommitSha ? `Starting workspace · saved ${b.lastDurableCommitSha.slice(0, 7)}` : "Starting workspace" : b.syncState === "unavailable" ? b.lastDurableCommitSha ? `Workspace unavailable · saved ${b.lastDurableCommitSha.slice(0, 7)}` : "Workspace unavailable" : b.syncState === "diverged" ? "Workspace diverged from main" : b.syncState === "behind" ? `${b.commitsBehindOrigin} commit${b.commitsBehindOrigin === 1 ? "" : "s"} behind main` : b.syncState === "uncommitted" ? `${b.statusCount} local change${b.statusCount === 1 ? "" : "s"} · awaiting save` : b.syncState === "unpushed" ? `${b.commitsAheadOrigin} local commit${b.commitsAheadOrigin === 1 ? "" : "s"} · not pushed` : b.syncState === "saving" || n.checkpointSaving || r.checkpointBusy ? "Saving checkpoint…" : b.syncState === "save_failed" ? "Save failed · retry scheduled" : b.lastDurableCommitSha ? `Saved to GitHub${b.lastPushedAt ? ` · ${fe(b.lastPushedAt)}` : ""} · ${b.lastDurableCommitSha.slice(0, 7)}` : "No durable checkpoint yet" : "Checking save status…";
|
|
12430
12436
|
}), N = B(() => {
|
|
12431
12437
|
var z;
|
|
12432
12438
|
const b = (z = r.workspaceState) == null ? void 0 : z.syncState;
|
|
@@ -12787,7 +12793,7 @@ const Lm = ["aria-label", "title"], Dm = { class: "flex flex-col gap-[4px]" }, z
|
|
|
12787
12793
|
var z;
|
|
12788
12794
|
return ((z = b.title) == null ? void 0 : z.trim()) || Z(b);
|
|
12789
12795
|
}
|
|
12790
|
-
function
|
|
12796
|
+
function fe(b) {
|
|
12791
12797
|
if (!b) return "No timestamp";
|
|
12792
12798
|
const z = new Date(b);
|
|
12793
12799
|
return Number.isNaN(z.getTime()) ? "No timestamp" : new Intl.DateTimeFormat(void 0, {
|
|
@@ -12985,7 +12991,7 @@ const Lm = ["aria-label", "title"], Dm = { class: "flex flex-col gap-[4px]" }, z
|
|
|
12985
12991
|
}, [
|
|
12986
12992
|
f("div", lg, [
|
|
12987
12993
|
f("div", cg, I(se(P)), 1),
|
|
12988
|
-
f("div", ug, I(
|
|
12994
|
+
f("div", ug, I(fe(P.updated_at)), 1)
|
|
12989
12995
|
]),
|
|
12990
12996
|
W(Tt, {
|
|
12991
12997
|
variant: O(Er)(P.status)
|
|
@@ -13042,7 +13048,7 @@ const Lm = ["aria-label", "title"], Dm = { class: "flex flex-col gap-[4px]" }, z
|
|
|
13042
13048
|
}, 1032, ["variant"])
|
|
13043
13049
|
]),
|
|
13044
13050
|
f("div", vg, [
|
|
13045
|
-
f("span", null, I(
|
|
13051
|
+
f("span", null, I(fe(P.created_at)), 1),
|
|
13046
13052
|
f("span", xg, I(P.id), 1),
|
|
13047
13053
|
P.verified_remote_sha ? (h(), _("span", _g, I(P.verified_remote_sha.slice(0, 7)), 1)) : U("", !0),
|
|
13048
13054
|
P.file_count ? (h(), _("span", wg, I(P.file_count) + " file" + I(P.file_count === 1 ? "" : "s") + " · +" + I(P.additions) + " −" + I(P.deletions), 1)) : U("", !0)
|
|
@@ -13253,7 +13259,7 @@ const Lm = ["aria-label", "title"], Dm = { class: "flex flex-col gap-[4px]" }, z
|
|
|
13253
13259
|
}, 1032, ["variant"])
|
|
13254
13260
|
]),
|
|
13255
13261
|
f("div", eb, [
|
|
13256
|
-
f("span", null, I(
|
|
13262
|
+
f("span", null, I(fe(P.created_at)), 1),
|
|
13257
13263
|
f("span", tb, I(P.id), 1),
|
|
13258
13264
|
f("span", nb, I(P.source_commit_sha.slice(0, 7)), 1)
|
|
13259
13265
|
])
|
|
@@ -13346,7 +13352,7 @@ const Lm = ["aria-label", "title"], Dm = { class: "flex flex-col gap-[4px]" }, z
|
|
|
13346
13352
|
}, 1024)) : U("", !0)
|
|
13347
13353
|
]),
|
|
13348
13354
|
f("div", fb, [
|
|
13349
|
-
f("span", null, "Updated " + I(
|
|
13355
|
+
f("span", null, "Updated " + I(fe(P.updated_at)), 1),
|
|
13350
13356
|
P.last_durable_commit_sha ? (h(), _("span", hb, " Saved " + I(P.last_durable_commit_sha.slice(0, 7)), 1)) : U("", !0),
|
|
13351
13357
|
P.checkpoint_status === "local_only" || P.checkpoint_status === "failed" ? (h(), _("span", mb, " Save incomplete ")) : U("", !0)
|
|
13352
13358
|
]),
|