@mtdt/observeops-ds-elements 0.1.146 → 0.1.147
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.
|
@@ -14,7 +14,7 @@ const l2 = {}, u3 = [], q2 = () => {
|
|
|
14
14
|
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), p4 = (e) => e.startsWith("onUpdate:"), n2 = Object.assign, K4 = (e, t) => {
|
|
15
15
|
const l = e.indexOf(t);
|
|
16
16
|
l > -1 && e.splice(l, 1);
|
|
17
|
-
}, c6 = Object.prototype.hasOwnProperty,
|
|
17
|
+
}, c6 = Object.prototype.hasOwnProperty, Y1 = (e, t) => c6.call(e, t), O1 = Array.isArray, h3 = (e) => E3(e) === "[object Map]", u4 = (e) => E3(e) === "[object Set]", v5 = (e) => E3(e) === "[object Date]", R1 = (e) => typeof e == "function", r2 = (e) => typeof e == "string", $2 = (e) => typeof e == "symbol", t2 = (e) => e !== null && typeof e == "object", Q5 = (e) => (t2(e) || R1(e)) && R1(e.then) && R1(e.catch), X5 = Object.prototype.toString, E3 = (e) => X5.call(e), s6 = (e) => E3(e).slice(8, -1), h4 = (e) => E3(e) === "[object Object]", J4 = (e) => r2(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, V3 = /* @__PURE__ */ W4(
|
|
18
18
|
// the leading comma is intentional so empty string "" is also included
|
|
19
19
|
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
20
20
|
), v4 = (e) => {
|
|
@@ -715,7 +715,7 @@ class v8 extends h8 {
|
|
|
715
715
|
if (!/* @__PURE__ */ _2(c) && !/* @__PURE__ */ K2(c) && (o = /* @__PURE__ */ X1(o), c = /* @__PURE__ */ X1(c)), !r && /* @__PURE__ */ b2(o) && !/* @__PURE__ */ b2(c))
|
|
716
716
|
return u || (o.value = c), !0;
|
|
717
717
|
}
|
|
718
|
-
const i = r ? Number(l) < t.length :
|
|
718
|
+
const i = r ? Number(l) < t.length : Y1(t, l), p = Reflect.set(
|
|
719
719
|
t,
|
|
720
720
|
l,
|
|
721
721
|
c,
|
|
@@ -724,7 +724,7 @@ class v8 extends h8 {
|
|
|
724
724
|
return t === /* @__PURE__ */ X1(s) && (i ? R2(c, o) && U2(t, "set", l, c) : U2(t, "add", l, c)), p;
|
|
725
725
|
}
|
|
726
726
|
deleteProperty(t, l) {
|
|
727
|
-
const c =
|
|
727
|
+
const c = Y1(t, l);
|
|
728
728
|
t[l];
|
|
729
729
|
const s = Reflect.deleteProperty(t, l);
|
|
730
730
|
return s && c && U2(t, "delete", l, void 0), s;
|
|
@@ -856,7 +856,7 @@ function L6(e, t) {
|
|
|
856
856
|
function t5(e, t) {
|
|
857
857
|
const l = L6(e, t);
|
|
858
858
|
return (c, s, o) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? c : Reflect.get(
|
|
859
|
-
|
|
859
|
+
Y1(l, s) && s in c ? l : c,
|
|
860
860
|
s,
|
|
861
861
|
o
|
|
862
862
|
);
|
|
@@ -950,7 +950,7 @@ function X1(e) {
|
|
|
950
950
|
return t ? /* @__PURE__ */ X1(t) : e;
|
|
951
951
|
}
|
|
952
952
|
function T6(e) {
|
|
953
|
-
return !
|
|
953
|
+
return !Y1(e, "__v_skip") && Object.isExtensible(e) && e8(e, "__v_skip", !0), e;
|
|
954
954
|
}
|
|
955
955
|
const A2 = (e) => t2(e) ? /* @__PURE__ */ R3(e) : e, m3 = (e) => t2(e) ? /* @__PURE__ */ R4(e) : e;
|
|
956
956
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -1052,8 +1052,8 @@ function j6(e, t, l = l2) {
|
|
|
1052
1052
|
const P = v, G = s === !0 ? 1 / 0 : s;
|
|
1053
1053
|
v = () => F2(P(), G);
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1056
|
-
h.stop(),
|
|
1055
|
+
const A = C6(), N = () => {
|
|
1056
|
+
h.stop(), A && A.active && K4(A.effects, h);
|
|
1057
1057
|
};
|
|
1058
1058
|
if (o && t) {
|
|
1059
1059
|
const P = t;
|
|
@@ -1063,7 +1063,7 @@ function j6(e, t, l = l2) {
|
|
|
1063
1063
|
};
|
|
1064
1064
|
}
|
|
1065
1065
|
let j = M ? new Array(e.length).fill(W3) : W3;
|
|
1066
|
-
const
|
|
1066
|
+
const z = (P) => {
|
|
1067
1067
|
if (!(!(h.flags & 1) || !h.dirty && !P))
|
|
1068
1068
|
if (t) {
|
|
1069
1069
|
const G = h.run();
|
|
@@ -1089,7 +1089,7 @@ function j6(e, t, l = l2) {
|
|
|
1089
1089
|
} else
|
|
1090
1090
|
h.run();
|
|
1091
1091
|
};
|
|
1092
|
-
return i && i(
|
|
1092
|
+
return i && i(z), h = new s8(v), h.scheduler = r ? () => r(z, !1) : z, g = (P) => q6(P, !1, h), C = h.onStop = () => {
|
|
1093
1093
|
const P = e4.get(h);
|
|
1094
1094
|
if (P) {
|
|
1095
1095
|
if (p)
|
|
@@ -1098,7 +1098,7 @@ function j6(e, t, l = l2) {
|
|
|
1098
1098
|
for (const G of P) G();
|
|
1099
1099
|
e4.delete(h);
|
|
1100
1100
|
}
|
|
1101
|
-
}, t ? c ?
|
|
1101
|
+
}, t ? c ? z(!0) : j = h.run() : r ? r(z.bind(null, !0), !0) : h.run(), N.pause = h.pause.bind(h), N.resume = h.resume.bind(h), N.stop = N, N;
|
|
1102
1102
|
}
|
|
1103
1103
|
function F2(e, t = 1 / 0, l) {
|
|
1104
1104
|
if (t <= 0 || !t2(e) || e.__v_skip || (l = l || /* @__PURE__ */ new Map(), (l.get(e) || 0) >= t))
|
|
@@ -1397,9 +1397,9 @@ const c4 = /* @__PURE__ */ new WeakMap();
|
|
|
1397
1397
|
function S3(e, t, l, c, s = !1) {
|
|
1398
1398
|
if (O1(e)) {
|
|
1399
1399
|
e.forEach(
|
|
1400
|
-
(M,
|
|
1400
|
+
(M, A) => S3(
|
|
1401
1401
|
M,
|
|
1402
|
-
t && (O1(t) ? t[
|
|
1402
|
+
t && (O1(t) ? t[A] : t),
|
|
1403
1403
|
l,
|
|
1404
1404
|
c,
|
|
1405
1405
|
s
|
|
@@ -1411,7 +1411,7 @@ function S3(e, t, l, c, s = !1) {
|
|
|
1411
1411
|
c.shapeFlag & 512 && c.type.__asyncResolved && c.component.subTree.component && S3(e, t, l, c.component.subTree);
|
|
1412
1412
|
return;
|
|
1413
1413
|
}
|
|
1414
|
-
const o = c.shapeFlag & 4 ? w4(c.component) : c.el, r = s ? null : o, { i, r: p } = e, u = t && t.r, h = i.refs === l2 ? i.refs = {} : i.refs, v = i.setupState, C = /* @__PURE__ */ X1(v), g = v === l2 ? Y5 : (M) => x5(h, M) ? !1 :
|
|
1414
|
+
const o = c.shapeFlag & 4 ? w4(c.component) : c.el, r = s ? null : o, { i, r: p } = e, u = t && t.r, h = i.refs === l2 ? i.refs = {} : i.refs, v = i.setupState, C = /* @__PURE__ */ X1(v), g = v === l2 ? Y5 : (M) => x5(h, M) ? !1 : Y1(C, M), S = (M, A) => !(A && x5(h, A));
|
|
1415
1415
|
if (u != null && u !== p) {
|
|
1416
1416
|
if (y5(t), r2(u))
|
|
1417
1417
|
h[u] = null, g(u) && (v[u] = null);
|
|
@@ -1423,8 +1423,8 @@ function S3(e, t, l, c, s = !1) {
|
|
|
1423
1423
|
if (R1(p))
|
|
1424
1424
|
q3(p, i, 12, [r, h]);
|
|
1425
1425
|
else {
|
|
1426
|
-
const M = r2(p),
|
|
1427
|
-
if (M ||
|
|
1426
|
+
const M = r2(p), A = /* @__PURE__ */ b2(p);
|
|
1427
|
+
if (M || A) {
|
|
1428
1428
|
const N = () => {
|
|
1429
1429
|
if (e.f) {
|
|
1430
1430
|
const j = M ? g(p) ? v[p] : h[p] : S() || !e.k ? p.value : h[e.k];
|
|
@@ -1435,10 +1435,10 @@ function S3(e, t, l, c, s = !1) {
|
|
|
1435
1435
|
else if (M)
|
|
1436
1436
|
h[p] = [o], g(p) && (v[p] = h[p]);
|
|
1437
1437
|
else {
|
|
1438
|
-
const
|
|
1439
|
-
S(p, e.k) && (p.value =
|
|
1438
|
+
const z = [o];
|
|
1439
|
+
S(p, e.k) && (p.value = z), e.k && (h[e.k] = z);
|
|
1440
1440
|
}
|
|
1441
|
-
} else M ? (h[p] = r, g(p) && (v[p] = r)) :
|
|
1441
|
+
} else M ? (h[p] = r, g(p) && (v[p] = r)) : A && (S(p, e.k) && (p.value = r), e.k && (h[e.k] = r));
|
|
1442
1442
|
};
|
|
1443
1443
|
if (r) {
|
|
1444
1444
|
const j = () => {
|
|
@@ -1578,7 +1578,7 @@ function v1(e, t, l, c) {
|
|
|
1578
1578
|
s = [];
|
|
1579
1579
|
return s;
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function W1(e, t, l = {}, c, s) {
|
|
1582
1582
|
if (f2.ce || f2.parent && f3(f2.parent) && f2.parent.ce) {
|
|
1583
1583
|
const u = Object.keys(l).length > 0;
|
|
1584
1584
|
return t !== "default" && (l.name = t), a(), M1(
|
|
@@ -1628,7 +1628,7 @@ const q4 = (e) => e ? J8(e) ? w4(e) : q4(e.parent) : null, z3 = (
|
|
|
1628
1628
|
$nextTick: (e) => e.n || (e.n = u2.bind(e.proxy)),
|
|
1629
1629
|
$watch: (e) => K6.bind(e)
|
|
1630
1630
|
})
|
|
1631
|
-
), z4 = (e, t) => e !== l2 && !e.__isScriptSetup &&
|
|
1631
|
+
), z4 = (e, t) => e !== l2 && !e.__isScriptSetup && Y1(e, t), u0 = {
|
|
1632
1632
|
get({ _: e }, t) {
|
|
1633
1633
|
if (t === "__v_skip")
|
|
1634
1634
|
return !0;
|
|
@@ -1649,11 +1649,11 @@ const q4 = (e) => e ? J8(e) ? w4(e) : q4(e.parent) : null, z3 = (
|
|
|
1649
1649
|
else {
|
|
1650
1650
|
if (z4(c, t))
|
|
1651
1651
|
return r[t] = 1, c[t];
|
|
1652
|
-
if (s !== l2 &&
|
|
1652
|
+
if (s !== l2 && Y1(s, t))
|
|
1653
1653
|
return r[t] = 2, s[t];
|
|
1654
|
-
if (
|
|
1654
|
+
if (Y1(o, t))
|
|
1655
1655
|
return r[t] = 3, o[t];
|
|
1656
|
-
if (l !== l2 &&
|
|
1656
|
+
if (l !== l2 && Y1(l, t))
|
|
1657
1657
|
return r[t] = 4, l[t];
|
|
1658
1658
|
j4 && (r[t] = 0);
|
|
1659
1659
|
}
|
|
@@ -1667,26 +1667,26 @@ const q4 = (e) => e ? J8(e) ? w4(e) : q4(e.parent) : null, z3 = (
|
|
|
1667
1667
|
(h = i.__cssModules) && (h = h[t])
|
|
1668
1668
|
)
|
|
1669
1669
|
return h;
|
|
1670
|
-
if (l !== l2 &&
|
|
1670
|
+
if (l !== l2 && Y1(l, t))
|
|
1671
1671
|
return r[t] = 4, l[t];
|
|
1672
1672
|
if (
|
|
1673
1673
|
// global properties
|
|
1674
|
-
v = p.config.globalProperties,
|
|
1674
|
+
v = p.config.globalProperties, Y1(v, t)
|
|
1675
1675
|
)
|
|
1676
1676
|
return v[t];
|
|
1677
1677
|
},
|
|
1678
1678
|
set({ _: e }, t, l) {
|
|
1679
1679
|
const { data: c, setupState: s, ctx: o } = e;
|
|
1680
|
-
return z4(s, t) ? (s[t] = l, !0) : c !== l2 &&
|
|
1680
|
+
return z4(s, t) ? (s[t] = l, !0) : c !== l2 && Y1(c, t) ? (c[t] = l, !0) : Y1(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (o[t] = l, !0);
|
|
1681
1681
|
},
|
|
1682
1682
|
has({
|
|
1683
1683
|
_: { data: e, setupState: t, accessCache: l, ctx: c, appContext: s, props: o, type: r }
|
|
1684
1684
|
}, i) {
|
|
1685
1685
|
let p;
|
|
1686
|
-
return !!(l[i] || e !== l2 && i[0] !== "$" &&
|
|
1686
|
+
return !!(l[i] || e !== l2 && i[0] !== "$" && Y1(e, i) || z4(t, i) || Y1(o, i) || Y1(c, i) || Y1(z3, i) || Y1(s.config.globalProperties, i) || (p = r.__cssModules) && p[i]);
|
|
1687
1687
|
},
|
|
1688
1688
|
defineProperty(e, t, l) {
|
|
1689
|
-
return l.get != null ? e._.accessCache[t] = 0 :
|
|
1689
|
+
return l.get != null ? e._.accessCache[t] = 0 : Y1(l, "value") && this.set(e, t, l.value, null), Reflect.defineProperty(e, t, l);
|
|
1690
1690
|
}
|
|
1691
1691
|
};
|
|
1692
1692
|
function w5(e) {
|
|
@@ -1714,10 +1714,10 @@ function h0(e) {
|
|
|
1714
1714
|
beforeUpdate: g,
|
|
1715
1715
|
updated: S,
|
|
1716
1716
|
activated: M,
|
|
1717
|
-
deactivated:
|
|
1717
|
+
deactivated: A,
|
|
1718
1718
|
beforeDestroy: N,
|
|
1719
1719
|
beforeUnmount: j,
|
|
1720
|
-
destroyed:
|
|
1720
|
+
destroyed: z,
|
|
1721
1721
|
unmounted: P,
|
|
1722
1722
|
render: G,
|
|
1723
1723
|
renderTracked: R,
|
|
@@ -1767,7 +1767,7 @@ function h0(e) {
|
|
|
1767
1767
|
function L1(f1, p1) {
|
|
1768
1768
|
O1(p1) ? p1.forEach((B1) => f1(B1.bind(l))) : p1 && f1(p1.bind(l));
|
|
1769
1769
|
}
|
|
1770
|
-
if (L1(l0, v), L1(k2, C), L1(c0, g), L1(s0, S), L1(X6, M), L1(e0,
|
|
1770
|
+
if (L1(l0, v), L1(k2, C), L1(c0, g), L1(s0, S), L1(X6, M), L1(e0, A), L1(n0, d1), L1(r0, R), L1(a0, B), L1(x2, j), L1(_8, P), L1(o0, r1), O1(J))
|
|
1771
1771
|
if (J.length) {
|
|
1772
1772
|
const f1 = e.exposed || (e.exposed = {});
|
|
1773
1773
|
J.forEach((p1) => {
|
|
@@ -2045,7 +2045,7 @@ function O8(e, t, l = !1) {
|
|
|
2045
2045
|
return !o && !i ? (t2(e) && c.set(e, null), null) : (O1(o) ? o.forEach((p) => r[p] = null) : n2(r, o), t2(e) && c.set(e, r), r);
|
|
2046
2046
|
}
|
|
2047
2047
|
function y4(e, t) {
|
|
2048
|
-
return !e || !d4(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""),
|
|
2048
|
+
return !e || !d4(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""), Y1(e, t[0].toLowerCase() + t.slice(1)) || Y1(e, V2(t)) || Y1(e, t));
|
|
2049
2049
|
}
|
|
2050
2050
|
function V5(e) {
|
|
2051
2051
|
const {
|
|
@@ -2064,7 +2064,7 @@ function V5(e) {
|
|
|
2064
2064
|
setupState: g,
|
|
2065
2065
|
ctx: S,
|
|
2066
2066
|
inheritAttrs: M
|
|
2067
|
-
} = e,
|
|
2067
|
+
} = e, A = l4(e);
|
|
2068
2068
|
let N, j;
|
|
2069
2069
|
try {
|
|
2070
2070
|
if (l.shapeFlag & 4) {
|
|
@@ -2095,15 +2095,15 @@ function V5(e) {
|
|
|
2095
2095
|
} catch (P) {
|
|
2096
2096
|
$3.length = 0, b4(P, e, 1), N = T(J2);
|
|
2097
2097
|
}
|
|
2098
|
-
let
|
|
2098
|
+
let z = N;
|
|
2099
2099
|
if (j && M !== !1) {
|
|
2100
|
-
const P = Object.keys(j), { shapeFlag: G } =
|
|
2100
|
+
const P = Object.keys(j), { shapeFlag: G } = z;
|
|
2101
2101
|
P.length && G & 7 && (o && P.some(p4) && (j = M0(
|
|
2102
2102
|
j,
|
|
2103
2103
|
o
|
|
2104
|
-
)),
|
|
2104
|
+
)), z = b3(z, j, !1, !0));
|
|
2105
2105
|
}
|
|
2106
|
-
return l.dirs && (
|
|
2106
|
+
return l.dirs && (z = b3(z, null, !1, !0), z.dirs = z.dirs ? z.dirs.concat(l.dirs) : l.dirs), l.transition && o5(z, l.transition), N = z, l4(A), N;
|
|
2107
2107
|
}
|
|
2108
2108
|
const w0 = (e) => {
|
|
2109
2109
|
let t;
|
|
@@ -2191,7 +2191,7 @@ function L0(e, t, l, c) {
|
|
|
2191
2191
|
continue;
|
|
2192
2192
|
const g = t[C];
|
|
2193
2193
|
if (p)
|
|
2194
|
-
if (
|
|
2194
|
+
if (Y1(o, C))
|
|
2195
2195
|
g !== o[C] && (o[C] = g, u = !0);
|
|
2196
2196
|
else {
|
|
2197
2197
|
const S = h2(C);
|
|
@@ -2213,9 +2213,9 @@ function L0(e, t, l, c) {
|
|
|
2213
2213
|
let h;
|
|
2214
2214
|
for (const v in i)
|
|
2215
2215
|
(!t || // for camelCase
|
|
2216
|
-
!
|
|
2216
|
+
!Y1(t, v) && // it's possible the original props was passed in as kebab-case
|
|
2217
2217
|
// and converted to camelCase (#955)
|
|
2218
|
-
((h = V2(v)) === v || !
|
|
2218
|
+
((h = V2(v)) === v || !Y1(t, h))) && (p ? l && // for camelCase
|
|
2219
2219
|
(l[v] !== void 0 || // for kebab-case
|
|
2220
2220
|
l[h] !== void 0) && (s[v] = N4(
|
|
2221
2221
|
p,
|
|
@@ -2227,7 +2227,7 @@ function L0(e, t, l, c) {
|
|
|
2227
2227
|
)) : delete s[v]);
|
|
2228
2228
|
if (o !== i)
|
|
2229
2229
|
for (const v in o)
|
|
2230
|
-
(!t || !
|
|
2230
|
+
(!t || !Y1(t, v)) && (delete o[v], u = !0);
|
|
2231
2231
|
}
|
|
2232
2232
|
u && U2(e.attrs, "set", "");
|
|
2233
2233
|
}
|
|
@@ -2240,7 +2240,7 @@ function D8(e, t, l, c) {
|
|
|
2240
2240
|
continue;
|
|
2241
2241
|
const u = t[p];
|
|
2242
2242
|
let h;
|
|
2243
|
-
s &&
|
|
2243
|
+
s && Y1(s, h = h2(p)) ? !o || !o.includes(h) ? l[h] = u : (i || (i = {}))[h] = u : y4(e.emitsOptions, p) || (!(p in c) || u !== c[p]) && (c[p] = u, r = !0);
|
|
2244
2244
|
}
|
|
2245
2245
|
if (o) {
|
|
2246
2246
|
const p = /* @__PURE__ */ X1(l), u = i || l2;
|
|
@@ -2252,7 +2252,7 @@ function D8(e, t, l, c) {
|
|
|
2252
2252
|
v,
|
|
2253
2253
|
u[v],
|
|
2254
2254
|
e,
|
|
2255
|
-
!
|
|
2255
|
+
!Y1(u, v)
|
|
2256
2256
|
);
|
|
2257
2257
|
}
|
|
2258
2258
|
}
|
|
@@ -2261,7 +2261,7 @@ function D8(e, t, l, c) {
|
|
|
2261
2261
|
function N4(e, t, l, c, s, o) {
|
|
2262
2262
|
const r = e[l];
|
|
2263
2263
|
if (r != null) {
|
|
2264
|
-
const i =
|
|
2264
|
+
const i = Y1(r, "default");
|
|
2265
2265
|
if (i && c === void 0) {
|
|
2266
2266
|
const p = r.default;
|
|
2267
2267
|
if (r.type !== Function && !r.skipFactory && R1(p)) {
|
|
@@ -2316,14 +2316,14 @@ function R8(e, t, l = !1) {
|
|
|
2316
2316
|
const v = h2(h);
|
|
2317
2317
|
if (_5(v)) {
|
|
2318
2318
|
const C = o[h], g = r[v] = O1(C) || R1(C) ? { type: C } : n2({}, C), S = g.type;
|
|
2319
|
-
let M = !1,
|
|
2319
|
+
let M = !1, A = !0;
|
|
2320
2320
|
if (O1(S))
|
|
2321
2321
|
for (let N = 0; N < S.length; ++N) {
|
|
2322
|
-
const j = S[N],
|
|
2323
|
-
if (
|
|
2322
|
+
const j = S[N], z = R1(j) && j.name;
|
|
2323
|
+
if (z === "Boolean") {
|
|
2324
2324
|
M = !0;
|
|
2325
2325
|
break;
|
|
2326
|
-
} else
|
|
2326
|
+
} else z === "String" && (A = !1);
|
|
2327
2327
|
}
|
|
2328
2328
|
else
|
|
2329
2329
|
M = R1(S) && S.name === "Boolean";
|
|
@@ -2333,7 +2333,7 @@ function R8(e, t, l = !1) {
|
|
|
2333
2333
|
] = M, g[
|
|
2334
2334
|
1
|
|
2335
2335
|
/* shouldCastTrue */
|
|
2336
|
-
] =
|
|
2336
|
+
] = A, (M || Y1(g, "default")) && i.push(v);
|
|
2337
2337
|
}
|
|
2338
2338
|
}
|
|
2339
2339
|
const u = [r, i];
|
|
@@ -2408,7 +2408,7 @@ function O0(e, t) {
|
|
|
2408
2408
|
const { type: W, ref: x1, shapeFlag: c1 } = b;
|
|
2409
2409
|
switch (W) {
|
|
2410
2410
|
case Z4:
|
|
2411
|
-
|
|
2411
|
+
A(f, b, E, Q);
|
|
2412
2412
|
break;
|
|
2413
2413
|
case J2:
|
|
2414
2414
|
N(f, b, E, Q);
|
|
@@ -2464,7 +2464,7 @@ function O0(e, t) {
|
|
|
2464
2464
|
);
|
|
2465
2465
|
}
|
|
2466
2466
|
x1 != null && K ? S3(x1, f && f.ref, I, b || f, !b) : x1 == null && f && f.ref != null && S3(f.ref, null, I, f, !0);
|
|
2467
|
-
},
|
|
2467
|
+
}, A = (f, b, E, Q) => {
|
|
2468
2468
|
if (f == null)
|
|
2469
2469
|
c(
|
|
2470
2470
|
b.el = i(b.children),
|
|
@@ -2490,7 +2490,7 @@ function O0(e, t) {
|
|
|
2490
2490
|
f.el,
|
|
2491
2491
|
f.anchor
|
|
2492
2492
|
);
|
|
2493
|
-
},
|
|
2493
|
+
}, z = ({ el: f, anchor: b }, E, Q) => {
|
|
2494
2494
|
let K;
|
|
2495
2495
|
for (; f && f !== b; )
|
|
2496
2496
|
K = C(f), c(f, E, Q), f = K;
|
|
@@ -2620,8 +2620,8 @@ function O0(e, t) {
|
|
|
2620
2620
|
else if (s1 & 2 && c1.class !== H1.class && o(l1, "class", null, H1.class, K), s1 & 4 && o(l1, "style", c1.style, H1.style, K), s1 & 8) {
|
|
2621
2621
|
const A1 = b.dynamicProps;
|
|
2622
2622
|
for (let E1 = 0; E1 < A1.length; E1++) {
|
|
2623
|
-
const j1 = A1[E1],
|
|
2624
|
-
(
|
|
2623
|
+
const j1 = A1[E1], K1 = c1[j1], J1 = H1[j1];
|
|
2624
|
+
(J1 !== K1 || j1 === "value") && o(l1, j1, K1, J1, K, E);
|
|
2625
2625
|
}
|
|
2626
2626
|
}
|
|
2627
2627
|
s1 & 1 && f.children !== b.children && h(l1, b.children);
|
|
@@ -2784,12 +2784,12 @@ function O0(e, t) {
|
|
|
2784
2784
|
return;
|
|
2785
2785
|
}
|
|
2786
2786
|
}
|
|
2787
|
-
let j1 = c1,
|
|
2788
|
-
c3(f, !1), c1 ? (c1.el = E1.el, f1(f, c1, a1)) : c1 = E1, H1 && K3(H1), (
|
|
2789
|
-
const
|
|
2790
|
-
f.subTree =
|
|
2787
|
+
let j1 = c1, K1;
|
|
2788
|
+
c3(f, !1), c1 ? (c1.el = E1.el, f1(f, c1, a1)) : c1 = E1, H1 && K3(H1), (K1 = c1.props && c1.props.onVnodeBeforeUpdate) && P2(K1, A1, c1, E1), c3(f, !0);
|
|
2789
|
+
const J1 = V5(f), o2 = f.subTree;
|
|
2790
|
+
f.subTree = J1, M(
|
|
2791
2791
|
o2,
|
|
2792
|
-
|
|
2792
|
+
J1,
|
|
2793
2793
|
// parent may have changed if it's in a teleport
|
|
2794
2794
|
v(o2.el),
|
|
2795
2795
|
// anchor may have changed if it's in a fragment
|
|
@@ -2797,17 +2797,17 @@ function O0(e, t) {
|
|
|
2797
2797
|
f,
|
|
2798
2798
|
K,
|
|
2799
2799
|
I
|
|
2800
|
-
), c1.el =
|
|
2801
|
-
() => P2(
|
|
2800
|
+
), c1.el = J1.el, j1 === null && H0(f, J1.el), w1 && M2(w1, K), (K1 = c1.props && c1.props.onVnodeUpdated) && M2(
|
|
2801
|
+
() => P2(K1, A1, c1, E1),
|
|
2802
2802
|
K
|
|
2803
2803
|
);
|
|
2804
2804
|
} else {
|
|
2805
2805
|
let c1;
|
|
2806
|
-
const { el: H1, props: w1 } = b, { bm: A1, m: E1, parent: j1, root:
|
|
2806
|
+
const { el: H1, props: w1 } = b, { bm: A1, m: E1, parent: j1, root: K1, type: J1 } = f, o2 = f3(b);
|
|
2807
2807
|
c3(f, !1), A1 && K3(A1), !o2 && (c1 = w1 && w1.onVnodeBeforeMount) && P2(c1, j1, b), c3(f, !0);
|
|
2808
2808
|
{
|
|
2809
|
-
|
|
2810
|
-
|
|
2809
|
+
K1.ce && K1.ce._hasShadowRoot() && K1.ce._injectChildStyle(
|
|
2810
|
+
J1,
|
|
2811
2811
|
f.parent ? f.parent.type : void 0
|
|
2812
2812
|
);
|
|
2813
2813
|
const L = f.subTree = V5(f);
|
|
@@ -2992,29 +2992,29 @@ function O0(e, t) {
|
|
|
2992
2992
|
const V1 = b[W] = s1 ? N2(b[W]) : D2(b[W]);
|
|
2993
2993
|
V1.key != null && E1.set(V1.key, W);
|
|
2994
2994
|
}
|
|
2995
|
-
let j1,
|
|
2996
|
-
const
|
|
2995
|
+
let j1, K1 = 0;
|
|
2996
|
+
const J1 = H1 - A1 + 1;
|
|
2997
2997
|
let o2 = !1, L = 0;
|
|
2998
|
-
const U = new Array(
|
|
2999
|
-
for (W = 0; W <
|
|
2998
|
+
const U = new Array(J1);
|
|
2999
|
+
for (W = 0; W < J1; W++) U[W] = 0;
|
|
3000
3000
|
for (W = w1; W <= c1; W++) {
|
|
3001
3001
|
const V1 = f[W];
|
|
3002
|
-
if (
|
|
3002
|
+
if (K1 >= J1) {
|
|
3003
3003
|
_(V1, K, I, !0);
|
|
3004
3004
|
continue;
|
|
3005
3005
|
}
|
|
3006
|
-
let
|
|
3006
|
+
let $;
|
|
3007
3007
|
if (V1.key != null)
|
|
3008
|
-
|
|
3008
|
+
$ = E1.get(V1.key);
|
|
3009
3009
|
else
|
|
3010
3010
|
for (j1 = A1; j1 <= H1; j1++)
|
|
3011
3011
|
if (U[j1 - A1] === 0 && Z3(V1, b[j1])) {
|
|
3012
|
-
|
|
3012
|
+
$ = j1;
|
|
3013
3013
|
break;
|
|
3014
3014
|
}
|
|
3015
|
-
|
|
3015
|
+
$ === void 0 ? _(V1, K, I, !0) : (U[$ - A1] = W + 1, $ >= L ? L = $ : o2 = !0, M(
|
|
3016
3016
|
V1,
|
|
3017
|
-
b[
|
|
3017
|
+
b[$],
|
|
3018
3018
|
E,
|
|
3019
3019
|
null,
|
|
3020
3020
|
K,
|
|
@@ -3022,17 +3022,17 @@ function O0(e, t) {
|
|
|
3022
3022
|
a1,
|
|
3023
3023
|
l1,
|
|
3024
3024
|
s1
|
|
3025
|
-
),
|
|
3025
|
+
), K1++);
|
|
3026
3026
|
}
|
|
3027
3027
|
const _1 = o2 ? P0(U) : u3;
|
|
3028
|
-
for (j1 = _1.length - 1, W =
|
|
3029
|
-
const V1 = A1 + W,
|
|
3028
|
+
for (j1 = _1.length - 1, W = J1 - 1; W >= 0; W--) {
|
|
3029
|
+
const V1 = A1 + W, $ = b[V1], V = b[V1 + 1], i1 = V1 + 1 < x1 ? (
|
|
3030
3030
|
// #13559, #14173 fallback to el placeholder for unresolved async component
|
|
3031
3031
|
V.el || F8(V)
|
|
3032
3032
|
) : Q;
|
|
3033
3033
|
U[W] === 0 ? M(
|
|
3034
3034
|
null,
|
|
3035
|
-
|
|
3035
|
+
$,
|
|
3036
3036
|
E,
|
|
3037
3037
|
i1,
|
|
3038
3038
|
K,
|
|
@@ -3040,7 +3040,7 @@ function O0(e, t) {
|
|
|
3040
3040
|
a1,
|
|
3041
3041
|
l1,
|
|
3042
3042
|
s1
|
|
3043
|
-
) : o2 && (j1 < 0 || W !== _1[j1] ? C1(
|
|
3043
|
+
) : o2 && (j1 < 0 || W !== _1[j1] ? C1($, E, i1, 2) : j1--);
|
|
3044
3044
|
}
|
|
3045
3045
|
}
|
|
3046
3046
|
}, C1 = (f, b, E, Q, K = null) => {
|
|
@@ -3065,7 +3065,7 @@ function O0(e, t) {
|
|
|
3065
3065
|
return;
|
|
3066
3066
|
}
|
|
3067
3067
|
if (a1 === Y3) {
|
|
3068
|
-
|
|
3068
|
+
z(f, b, E);
|
|
3069
3069
|
return;
|
|
3070
3070
|
}
|
|
3071
3071
|
if (Q !== 2 && W & 1 && l1)
|
|
@@ -3105,8 +3105,8 @@ function O0(e, t) {
|
|
|
3105
3105
|
return;
|
|
3106
3106
|
}
|
|
3107
3107
|
const E1 = x1 & 1 && H1, j1 = !f3(f);
|
|
3108
|
-
let
|
|
3109
|
-
if (j1 && (
|
|
3108
|
+
let K1;
|
|
3109
|
+
if (j1 && (K1 = a1 && a1.onVnodeBeforeUnmount) && P2(K1, b, f), x1 & 6)
|
|
3110
3110
|
i2(f.component, E, Q);
|
|
3111
3111
|
else {
|
|
3112
3112
|
if (x1 & 128) {
|
|
@@ -3133,9 +3133,9 @@ function O0(e, t) {
|
|
|
3133
3133
|
!0
|
|
3134
3134
|
) : (I === O && c1 & 384 || !K && x1 & 16) && t1(s1, b, E), Q && g1(f);
|
|
3135
3135
|
}
|
|
3136
|
-
const
|
|
3137
|
-
(j1 && (
|
|
3138
|
-
|
|
3136
|
+
const J1 = A1 != null && w1 == null;
|
|
3137
|
+
(j1 && (K1 = a1 && a1.onVnodeUnmounted) || E1 || J1) && M2(() => {
|
|
3138
|
+
K1 && P2(K1, b, f), E1 && l3(f, null, b, "unmounted"), J1 && (f.el = null);
|
|
3139
3139
|
}, E);
|
|
3140
3140
|
}, g1 = (f) => {
|
|
3141
3141
|
const { type: b, el: E, anchor: Q, transition: K } = f;
|
|
@@ -4073,7 +4073,7 @@ class u5 extends m9 {
|
|
|
4073
4073
|
const l = this._instance && this._instance.exposed;
|
|
4074
4074
|
if (l)
|
|
4075
4075
|
for (const c in l)
|
|
4076
|
-
|
|
4076
|
+
Y1(this, c) || Object.defineProperty(this, c, {
|
|
4077
4077
|
// unwrap ref to be consistent with public instance behavior
|
|
4078
4078
|
get: () => w2(l[c])
|
|
4079
4079
|
});
|
|
@@ -4432,7 +4432,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
4432
4432
|
disabled: e.disabled || e.loading
|
|
4433
4433
|
}, [
|
|
4434
4434
|
e.loading ? (a(), n("span", _9)) : Z("", !0),
|
|
4435
|
-
|
|
4435
|
+
W1(t.$slots, "default")
|
|
4436
4436
|
], 10, L9));
|
|
4437
4437
|
}
|
|
4438
4438
|
}, z9 = /* @__PURE__ */ T1(S9, [["styles", [V9]]]), $9 = ':host([hidden]){display:none!important}.tag.numeric{font-family:var(--numeric-font-family, "JetBrains Mono", monospace);font-feature-settings:"tnum"}.tag{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-family, "Poppins", sans-serif);font-size:.7rem;font-weight:500;line-height:22px;padding:0 8px;border-radius:4px}.tag.disabled{opacity:.5;cursor:not-allowed}.tag-green{color:var(--secondary-green, #14b053);background:var(--secondary-green-lightest, rgba(54, 213, 118, .2))}.tag-red{color:var(--secondary-red, #ec5b5b);background:var(--secondary-red-lightest, rgba(236, 91, 91, .2))}.tag-yellow{color:var(--secondary-yellow, #e8b407);background:var(--secondary-yellow-lightest, rgba(250, 209, 0, .2))}.tag-orange{color:var(--secondary-orange, #f47c22);background:var(--secondary-orange-lightest, rgba(250, 153, 80, .2))}.tag-primary{color:var(--default-tag-text-color, #516381);background:var(--tag-bg-color, var(--neutral-lighter, #e3e8f2))}.tag-purple{color:var(--severity-unreachable, #6d2ed1);background:var(--severity-unreachable-lightest, #e7dcfa)}.tag-unknown{color:var(--severity-unknown, #b1b1b1);background:var(--severity-unknown-lighter, #fcfcfc)}.used-count-pill{color:var(--primary, #111c2c);background:var(--tag-bg-color, #e3e8f2)}.new{color:var(--secondary-green, #14b053);background:var(--secondary-green-lightest, rgba(54, 213, 118, .2))}.provision{color:var(--primary, #111c2c);background:var(--primary-lightest, rgba(9, 157, 217, .2))}.unprovision{color:var(--secondary-orange, #f47c22);background:var(--secondary-orange-lightest, rgba(250, 153, 80, .2))}.neutral-lighter{color:var(--page-text-color, #1d2a3e);background:var(--neutral-lighter, #e3e8f2)}.default,.nav-beta-tag{color:var(--default-tag-text-color, #516381);background:var(--tag-bg-color, #e3e8f2)}.main-tags{color:var(--main-tags-text-color, #218b81);background:var(--main-tags-bg-color, #cdf1ed)}.rounded{border-radius:10px}.compliance-tag-padding{padding-left:.69rem;padding-right:.69rem}.x-wrap{position:relative;display:inline-flex}.x{cursor:pointer;color:inherit;font-size:12px;line-height:1;outline:none;border-radius:2px}.x:focus-visible{outline:1.5px solid var(--checkbox-checked-border-color, #6a7fa0);outline-offset:1px}.confirm{position:absolute;top:calc(100% + 6px);right:0;z-index:20;display:inline-flex;flex-direction:column;gap:6px;min-width:132px;padding:8px 10px;border-radius:4px;cursor:default;background:var(--common-widget-bg, #fff);box-shadow:0 2px 8px var(--neutral-shadow-light, rgba(0, 0, 0, .15));font-family:var(--font-family, "Poppins", sans-serif);font-weight:400}.confirm-title{font-size:.75rem;color:var(--page-text-color, #1d2a3e);white-space:nowrap}.confirm-actions{display:inline-flex;gap:8px;justify-content:flex-end}.confirm-yes,.confirm-no{cursor:pointer;font-size:.7rem;font-weight:500;padding:2px 10px;border-radius:4px;outline:none}.confirm-yes{color:var(--primary-button-text, #fff);background:var(--primary-button-bg, #07101f)}.confirm-no{color:var(--default-button-text, #1d2a3e);background:var(--default-button-bg, #fff);border:1px solid var(--default-button-border, #e3e8f2)}.confirm-yes:focus-visible,.confirm-no:focus-visible{outline:1.5px solid var(--checkbox-checked-border-color, #6a7fa0);outline-offset:1px}', A9 = {
|
|
@@ -4532,9 +4532,9 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
4532
4532
|
healthy: "tag-green",
|
|
4533
4533
|
stable: "tag-green",
|
|
4534
4534
|
operational: "tag-green"
|
|
4535
|
-
}, S = { poweredoff: "up", poweredon: "down" }, M = (P) => P ? P.charAt(0).toUpperCase() + P.slice(1).toLowerCase() : "",
|
|
4536
|
-
() => l.status ? l.forcePrimary ? "tag-primary" : g[
|
|
4537
|
-
), j = x(() => l.rounded || !!l.status),
|
|
4535
|
+
}, S = { poweredoff: "up", poweredon: "down" }, M = (P) => P ? P.charAt(0).toUpperCase() + P.slice(1).toLowerCase() : "", A = x(() => String(l.status || "").toLowerCase()), N = x(
|
|
4536
|
+
() => l.status ? l.forcePrimary ? "tag-primary" : g[A.value] || "tag-primary" : l.variant
|
|
4537
|
+
), j = x(() => l.rounded || !!l.status), z = x(() => M(S[A.value] || String(l.status || "")));
|
|
4538
4538
|
return (P, G) => {
|
|
4539
4539
|
const R = k1("obs-icon");
|
|
4540
4540
|
return s.value ? (a(), n("span", {
|
|
@@ -4542,8 +4542,8 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
4542
4542
|
class: q(["tag", [N.value, { rounded: j.value, disabled: e.disabled, numeric: e.numeric, "compliance-tag-padding": e.compliance }]])
|
|
4543
4543
|
}, [
|
|
4544
4544
|
e.status ? (a(), n(O, { key: 0 }, [
|
|
4545
|
-
$1(H(
|
|
4546
|
-
], 64)) :
|
|
4545
|
+
$1(H(z.value), 1)
|
|
4546
|
+
], 64)) : W1(P.$slots, "default", { key: 1 }),
|
|
4547
4547
|
e.closable && !e.status ? (a(), n("span", {
|
|
4548
4548
|
key: 2,
|
|
4549
4549
|
ref_key: "xWrap",
|
|
@@ -4634,7 +4634,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
4634
4634
|
o.value && !e.indeterminate ? (a(), n("span", R9)) : e.indeterminate ? (a(), n("span", q9)) : Z("", !0)
|
|
4635
4635
|
], 2),
|
|
4636
4636
|
d("span", j9, [
|
|
4637
|
-
|
|
4637
|
+
W1(p.$slots, "default")
|
|
4638
4638
|
])
|
|
4639
4639
|
], 42, D9));
|
|
4640
4640
|
}
|
|
@@ -4901,14 +4901,14 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
4901
4901
|
function g(R) {
|
|
4902
4902
|
return R ? C[R] || (String(R).trim().startsWith("<") ? R : "") : "";
|
|
4903
4903
|
}
|
|
4904
|
-
const S = x(() => l.prefixIcon || ""), M = x(() => l.suffixIcon || (l.type === "search" ? "search" : "")),
|
|
4904
|
+
const S = x(() => l.prefixIcon || ""), M = x(() => l.suffixIcon || (l.type === "search" ? "search" : "")), A = x(() => !!(l.addonBefore || l.addonAfter));
|
|
4905
4905
|
function N(R) {
|
|
4906
4906
|
R && R.stopPropagation(), p(R.target.value), c("input", i.value);
|
|
4907
4907
|
}
|
|
4908
4908
|
function j(R) {
|
|
4909
4909
|
R && R.stopPropagation(), c("change", i.value);
|
|
4910
4910
|
}
|
|
4911
|
-
function
|
|
4911
|
+
function z() {
|
|
4912
4912
|
p(""), c("input", ""), c("change", "");
|
|
4913
4913
|
}
|
|
4914
4914
|
function P(R) {
|
|
@@ -4933,7 +4933,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
4933
4933
|
e.required ? (a(), n("span", v7, " *")) : Z("", !0)
|
|
4934
4934
|
], 8, h7)) : Z("", !0),
|
|
4935
4935
|
d("div", {
|
|
4936
|
-
class: q(["grp", { "has-addon":
|
|
4936
|
+
class: q(["grp", { "has-addon": A.value, area: u.value, block: e.block }])
|
|
4937
4937
|
}, [
|
|
4938
4938
|
e.addonBefore ? (a(), n("span", f7, H(e.addonBefore), 1)) : Z("", !0),
|
|
4939
4939
|
d("div", {
|
|
@@ -4976,7 +4976,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
4976
4976
|
class: "clear",
|
|
4977
4977
|
tabindex: "-1",
|
|
4978
4978
|
"aria-label": "Clear",
|
|
4979
|
-
onClick:
|
|
4979
|
+
onClick: z
|
|
4980
4980
|
}, [
|
|
4981
4981
|
T(d1, {
|
|
4982
4982
|
name: "timesCircle",
|
|
@@ -5043,7 +5043,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
5043
5043
|
rel: e.external ? "noopener noreferrer" : void 0,
|
|
5044
5044
|
"aria-disabled": e.disabled ? "true" : void 0
|
|
5045
5045
|
}, [
|
|
5046
|
-
|
|
5046
|
+
W1(t.$slots, "default")
|
|
5047
5047
|
], 10, _7));
|
|
5048
5048
|
}
|
|
5049
5049
|
}, z7 = /* @__PURE__ */ T1(S7, [["styles", [L7]]]), T4 = {
|
|
@@ -5347,13 +5347,13 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
5347
5347
|
function M() {
|
|
5348
5348
|
p.value = u.value = null;
|
|
5349
5349
|
}
|
|
5350
|
-
function
|
|
5350
|
+
function A() {
|
|
5351
5351
|
o.value = s().map((y) => ({ ...y })), p.value = u.value = null, c("reset"), h();
|
|
5352
5352
|
}
|
|
5353
5353
|
function N(y) {
|
|
5354
5354
|
return y ? String(y).split(",").map((m) => m.trim()).filter(Boolean) : [];
|
|
5355
5355
|
}
|
|
5356
|
-
const j = /* @__PURE__ */ D(null),
|
|
5356
|
+
const j = /* @__PURE__ */ D(null), z = /* @__PURE__ */ D(null), P = /* @__PURE__ */ D(null), G = /* @__PURE__ */ D(null), R = /* @__PURE__ */ D(!1), B = /* @__PURE__ */ D(""), d1 = /* @__PURE__ */ D(-1), r1 = /* @__PURE__ */ D(-1), J = /* @__PURE__ */ D(!1), e1 = /* @__PURE__ */ D(!1), u1 = /* @__PURE__ */ D(!1), n1 = /* @__PURE__ */ D(""), k = /* @__PURE__ */ D(N(l.value)), Y = /* @__PURE__ */ D([]), L1 = /* @__PURE__ */ D({}), f1 = /* @__PURE__ */ D(!1), p1 = /* @__PURE__ */ D({});
|
|
5357
5357
|
F1(() => l.value, (y) => {
|
|
5358
5358
|
k.value = N(y);
|
|
5359
5359
|
});
|
|
@@ -5432,14 +5432,14 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
5432
5432
|
function j1(y) {
|
|
5433
5433
|
return !E1(y) && A1(y).some((m) => k.value.includes(m.value));
|
|
5434
5434
|
}
|
|
5435
|
-
function
|
|
5435
|
+
function K1(y) {
|
|
5436
5436
|
const m = A1(y).filter((Z1) => !Z1.disabled).map((Z1) => Z1.value);
|
|
5437
5437
|
let w = [...k.value];
|
|
5438
5438
|
if (E1(y)) w = w.filter((Z1) => !m.includes(Z1));
|
|
5439
5439
|
else for (const Z1 of m) w.includes(Z1) || w.push(Z1);
|
|
5440
5440
|
k.value = w, c("change", [...k.value]);
|
|
5441
5441
|
}
|
|
5442
|
-
const
|
|
5442
|
+
const J1 = x(() => l.maxValues > 0 && k.value.length >= l.maxValues);
|
|
5443
5443
|
function o2(y) {
|
|
5444
5444
|
const m = d2.value.find((w) => w.value === y);
|
|
5445
5445
|
return m ? m.label : y;
|
|
@@ -5459,7 +5459,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
5459
5459
|
function _1() {
|
|
5460
5460
|
l.disabled || l.loading || (R.value = !0, c("show"), d1.value = Math.max(0, b.value.findIndex((y) => k.value.includes(y.value))), u2(() => {
|
|
5461
5461
|
try {
|
|
5462
|
-
const y =
|
|
5462
|
+
const y = z.value;
|
|
5463
5463
|
y && y.showPopover && !y.matches(":popover-open") && y.showPopover();
|
|
5464
5464
|
} catch {
|
|
5465
5465
|
}
|
|
@@ -5469,7 +5469,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
5469
5469
|
function V1() {
|
|
5470
5470
|
R.value && (R.value = !1, B.value = "", d1.value = -1, c("hide"), window.removeEventListener("scroll", U, !0), window.removeEventListener("resize", U));
|
|
5471
5471
|
}
|
|
5472
|
-
function
|
|
5472
|
+
function $() {
|
|
5473
5473
|
R.value ? V1() : _1();
|
|
5474
5474
|
}
|
|
5475
5475
|
function V(y) {
|
|
@@ -5478,7 +5478,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
5478
5478
|
const m = k.value.indexOf(y.value);
|
|
5479
5479
|
if (m >= 0) k.value.splice(m, 1);
|
|
5480
5480
|
else {
|
|
5481
|
-
if (
|
|
5481
|
+
if (J1.value) return;
|
|
5482
5482
|
k.value.push(y.value);
|
|
5483
5483
|
}
|
|
5484
5484
|
k.value = [...k.value], c("change", [...k.value]);
|
|
@@ -5585,14 +5585,14 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
5585
5585
|
])) : t1.value === "text" ? (a(), n("span", {
|
|
5586
5586
|
key: 1,
|
|
5587
5587
|
class: q(["t-text", { ph: !k.value.length }]),
|
|
5588
|
-
onClick:
|
|
5588
|
+
onClick: $,
|
|
5589
5589
|
onMouseenter: I3,
|
|
5590
5590
|
onMouseleave: N3
|
|
5591
5591
|
}, H(k.value.length ? e.multiple ? e3.value : T2.value : P1.value), 35)) : t1.value === "chip" ? (a(), n("button", {
|
|
5592
5592
|
key: 2,
|
|
5593
5593
|
class: "t-chip",
|
|
5594
5594
|
disabled: e.disabled,
|
|
5595
|
-
onClick:
|
|
5595
|
+
onClick: $
|
|
5596
5596
|
}, [
|
|
5597
5597
|
d("span", {
|
|
5598
5598
|
class: q({ ph: !k.value.length })
|
|
@@ -5601,7 +5601,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
5601
5601
|
key: 3,
|
|
5602
5602
|
class: q(["t-btn", { open: R.value }]),
|
|
5603
5603
|
disabled: e.disabled,
|
|
5604
|
-
onClick:
|
|
5604
|
+
onClick: $
|
|
5605
5605
|
}, [
|
|
5606
5606
|
d("span", {
|
|
5607
5607
|
class: q({ ph: !k.value.length && !e.triggerLabel })
|
|
@@ -5616,7 +5616,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
5616
5616
|
class: q(["t-icon", { on: k.value.length, open: R.value, bordered: i.value }]),
|
|
5617
5617
|
disabled: e.disabled,
|
|
5618
5618
|
"aria-label": e.triggerLabel || P1.value,
|
|
5619
|
-
onClick:
|
|
5619
|
+
onClick: $
|
|
5620
5620
|
}, [
|
|
5621
5621
|
T(w, {
|
|
5622
5622
|
name: e.triggerIcon || (i.value ? "eye" : "ellipsisV"),
|
|
@@ -5627,7 +5627,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
5627
5627
|
key: 5,
|
|
5628
5628
|
class: q(["trig", { open: R.value }]),
|
|
5629
5629
|
disabled: e.disabled,
|
|
5630
|
-
onClick:
|
|
5630
|
+
onClick: $,
|
|
5631
5631
|
onMouseenter: m[1] || (m[1] = (F) => J.value = !0),
|
|
5632
5632
|
onMouseleave: m[2] || (m[2] = (F) => J.value = !1)
|
|
5633
5633
|
}, [
|
|
@@ -5668,7 +5668,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
5668
5668
|
R.value ? (a(), n("div", {
|
|
5669
5669
|
key: 7,
|
|
5670
5670
|
ref_key: "menuRef",
|
|
5671
|
-
ref:
|
|
5671
|
+
ref: z,
|
|
5672
5672
|
popover: "manual",
|
|
5673
5673
|
class: q(["menu", { twopane: e.useAfterMenuDescription, grouped: f.value, cols: i.value }]),
|
|
5674
5674
|
style: S1(L1.value)
|
|
@@ -5704,7 +5704,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
5704
5704
|
key: 1,
|
|
5705
5705
|
class: "cc-reset",
|
|
5706
5706
|
role: "button",
|
|
5707
|
-
onClick:
|
|
5707
|
+
onClick: A
|
|
5708
5708
|
}, [
|
|
5709
5709
|
T(w, {
|
|
5710
5710
|
name: "undo",
|
|
@@ -5818,7 +5818,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
5818
5818
|
key: 0,
|
|
5819
5819
|
class: q(["cbx", F.__branch ? { ck: E1(F), ind: j1(F) } : { ck: k.value.includes(F.value) }]),
|
|
5820
5820
|
"aria-hidden": "true",
|
|
5821
|
-
onClick: y1((D1) => F.__branch ?
|
|
5821
|
+
onClick: y1((D1) => F.__branch ? K1(F) : V(F), ["stop"])
|
|
5822
5822
|
}, null, 10, ve)) : Z("", !0),
|
|
5823
5823
|
F.avatar ? (a(), n("span", {
|
|
5824
5824
|
key: 1,
|
|
@@ -6001,7 +6001,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
6001
6001
|
class: "striperow",
|
|
6002
6002
|
style: S1({ borderLeftColor: c.value })
|
|
6003
6003
|
}, [
|
|
6004
|
-
|
|
6004
|
+
W1(v.$slots, "default", {}, () => [
|
|
6005
6005
|
$1(H(r.value), 1)
|
|
6006
6006
|
])
|
|
6007
6007
|
], 4)) : Z("", !0)
|
|
@@ -6062,7 +6062,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
6062
6062
|
const Y = k.trim();
|
|
6063
6063
|
return s.value ? Y : S.value ? Y.toLowerCase() : Y;
|
|
6064
6064
|
}
|
|
6065
|
-
const
|
|
6065
|
+
const A = x(() => l.placeholder || (s.value ? "Select" : "Add Tags")), N = x(() => !l.disabled && !l.loading), j = x(() => {
|
|
6066
6066
|
const k = h.value.trim().toLowerCase();
|
|
6067
6067
|
if (s.value)
|
|
6068
6068
|
return r.value.filter((p1) => !u.value.includes(p1.value) && (!k || p1.label.toLowerCase().includes(k) || p1.value.toLowerCase().includes(k)));
|
|
@@ -6070,7 +6070,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
6070
6070
|
k && !Y.includes(M(h.value)) && !L1.some((p1) => p1.toLowerCase() === k) && f1.push({ label: h.value.trim(), value: M(h.value), create: !0 });
|
|
6071
6071
|
for (const p1 of L1) f1.push({ label: p1, value: p1 });
|
|
6072
6072
|
return f1;
|
|
6073
|
-
}),
|
|
6073
|
+
}), z = x(() => v.value && N.value && j.value.length > 0);
|
|
6074
6074
|
function P(k) {
|
|
6075
6075
|
u.value = k, c("change", u.value);
|
|
6076
6076
|
}
|
|
@@ -6111,7 +6111,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
6111
6111
|
return (k, Y) => {
|
|
6112
6112
|
const L1 = k1("obs-icon");
|
|
6113
6113
|
return a(), n("div", {
|
|
6114
|
-
class: q(["box", ["t-" + e.type, { disabled: e.disabled, loading: e.loading, block: e.block, open:
|
|
6114
|
+
class: q(["box", ["t-" + e.type, { disabled: e.disabled, loading: e.loading, block: e.block, open: z.value }]]),
|
|
6115
6115
|
onMousedown: y1(J, ["self"])
|
|
6116
6116
|
}, [
|
|
6117
6117
|
(a(!0), n(O, null, v1(u.value, (f1, p1) => (a(), n("span", {
|
|
@@ -6137,7 +6137,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
6137
6137
|
ref_key: "inputEl",
|
|
6138
6138
|
ref: g,
|
|
6139
6139
|
class: "inp",
|
|
6140
|
-
placeholder: u.value.length ? "" :
|
|
6140
|
+
placeholder: u.value.length ? "" : A.value,
|
|
6141
6141
|
"onUpdate:modelValue": Y[0] || (Y[0] = (f1) => h.value = f1),
|
|
6142
6142
|
onInput: y1(d1, ["stop"]),
|
|
6143
6143
|
onKeydown: r1,
|
|
@@ -6145,7 +6145,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
6145
6145
|
onBlur: e1
|
|
6146
6146
|
}, null, 40, qe)), [
|
|
6147
6147
|
[X3, h.value]
|
|
6148
|
-
]) : u.value.length ? Z("", !0) : (a(), n("span", je, H(
|
|
6148
|
+
]) : u.value.length ? Z("", !0) : (a(), n("span", je, H(A.value), 1)),
|
|
6149
6149
|
e.loading ? (a(), n("span", Ie, [
|
|
6150
6150
|
T(L1, {
|
|
6151
6151
|
name: "spinnerThird",
|
|
@@ -6153,7 +6153,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
6153
6153
|
})
|
|
6154
6154
|
])) : !e.disabled || s.value ? (a(), n("span", {
|
|
6155
6155
|
key: 3,
|
|
6156
|
-
class: q(["arrow", { up:
|
|
6156
|
+
class: q(["arrow", { up: z.value, dim: e.disabled }]),
|
|
6157
6157
|
onMousedown: Y[2] || (Y[2] = y1((f1) => N.value && n1(), ["prevent"])),
|
|
6158
6158
|
"aria-hidden": "true"
|
|
6159
6159
|
}, [
|
|
@@ -6162,7 +6162,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
6162
6162
|
size: "10"
|
|
6163
6163
|
})
|
|
6164
6164
|
], 34)) : Z("", !0),
|
|
6165
|
-
|
|
6165
|
+
z.value ? (a(), n("ul", Ne, [
|
|
6166
6166
|
(a(!0), n(O, null, v1(j.value, (f1, p1) => (a(), n("li", {
|
|
6167
6167
|
key: f1.value,
|
|
6168
6168
|
class: q(["mi", { active: p1 === C.value }]),
|
|
@@ -6718,7 +6718,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
6718
6718
|
class: "trigger",
|
|
6719
6719
|
"aria-describedby": e.disabled ? null : w2(t)
|
|
6720
6720
|
}, [
|
|
6721
|
-
|
|
6721
|
+
W1(s.$slots, "trigger", {}, () => [
|
|
6722
6722
|
e.triggerLabel ? (a(), n("button", ml, H(e.triggerLabel), 1)) : (a(), M1(r, {
|
|
6723
6723
|
key: 1,
|
|
6724
6724
|
class: "info",
|
|
@@ -6735,7 +6735,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
6735
6735
|
role: "tooltip",
|
|
6736
6736
|
id: w2(t)
|
|
6737
6737
|
}, [
|
|
6738
|
-
|
|
6738
|
+
W1(s.$slots, "default")
|
|
6739
6739
|
], 8, bl))
|
|
6740
6740
|
], 2);
|
|
6741
6741
|
};
|
|
@@ -6858,7 +6858,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
6858
6858
|
for (let w = 0; w < 24; w++)
|
|
6859
6859
|
for (const Z1 of ["00", "30"]) m.push(String(w).padStart(2, "0") + ":" + Z1);
|
|
6860
6860
|
return m;
|
|
6861
|
-
})(), p = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], u = /* @__PURE__ */ D(!1), h = /* @__PURE__ */ D("presets"), v = /* @__PURE__ */ D(null), C = /* @__PURE__ */ D(l.empty ? null : "-24h"), g = /* @__PURE__ */ D(2026), S = /* @__PURE__ */ D(5), M = /* @__PURE__ */ new Date(),
|
|
6861
|
+
})(), p = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], u = /* @__PURE__ */ D(!1), h = /* @__PURE__ */ D("presets"), v = /* @__PURE__ */ D(null), C = /* @__PURE__ */ D(l.empty ? null : "-24h"), g = /* @__PURE__ */ D(2026), S = /* @__PURE__ */ D(5), M = /* @__PURE__ */ new Date(), A = new Date(M.getFullYear(), M.getMonth(), M.getDate()).getTime(), N = /* @__PURE__ */ R3({ start: new Date(2026, 5, 10).getTime(), end: new Date(2026, 5, 11).getTime(), pickNext: "start" }), j = /* @__PURE__ */ D("10:05"), z = /* @__PURE__ */ D(null), P = /* @__PURE__ */ D(null), G = x(() => l.kind === "range" || l.kind === "range-presets"), R = x(() => l.kind === "range-presets"), B = x(() => C.value === "custom" ? { s: (N.start && N.end ? Math.max(1, Math.round((N.end - N.start) / 864e5)) : 0) + "d", t: "Custom" } : r.find((m) => m.k === C.value) || null);
|
|
6862
6862
|
function d1(m, w) {
|
|
6863
6863
|
const Z1 = new Date(m, w, 1).getDay(), X = new Date(m, w + 1, 0).getDate(), F = [];
|
|
6864
6864
|
for (let a2 = 0; a2 < 42; a2++) {
|
|
@@ -6890,13 +6890,13 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
6890
6890
|
m.stopPropagation(), C.value = null, u.value = !1;
|
|
6891
6891
|
}
|
|
6892
6892
|
function Y(m) {
|
|
6893
|
-
!m.cur || m.ts >
|
|
6893
|
+
!m.cur || m.ts > A || (N.pickNext === "start" || N.start && N.end ? (N.start = m.ts, N.end = null, N.pickNext = "end") : m.ts < N.start ? N.start = m.ts : (N.end = m.ts, N.pickNext = "start"));
|
|
6894
6894
|
}
|
|
6895
6895
|
function L1(m) {
|
|
6896
6896
|
const w = { display: "flex", alignItems: "center", justifyContent: "center", width: "34px", height: "34px", marginTop: "1px", marginBottom: "1px", fontSize: "13px", borderRadius: "4px" }, Z1 = { background: "var(--calendar-selected-day-background-color)", color: "var(--page-background-color)", fontWeight: 500, cursor: "pointer" };
|
|
6897
6897
|
if (!m.cur) return { ...w, color: "var(--neutral-light)", opacity: 0.4 };
|
|
6898
6898
|
const X = N.start, F = N.end, D1 = m.ts;
|
|
6899
|
-
return X && F && D1 === X ? { ...w, ...Z1, borderRadius: "4px 0 0 4px" } : X && F && D1 === F ? { ...w, ...Z1, borderRadius: "0 4px 4px 0" } : X && F && D1 > X && D1 < F ? { ...w, background: "var(--timerange-background-color)", color: "var(--page-text-color)", borderRadius: "0", cursor: "pointer" } : X && !F && D1 === X ? { ...w, ...Z1 } : D1 >
|
|
6899
|
+
return X && F && D1 === X ? { ...w, ...Z1, borderRadius: "4px 0 0 4px" } : X && F && D1 === F ? { ...w, ...Z1, borderRadius: "0 4px 4px 0" } : X && F && D1 > X && D1 < F ? { ...w, background: "var(--timerange-background-color)", color: "var(--page-text-color)", borderRadius: "0", cursor: "pointer" } : X && !F && D1 === X ? { ...w, ...Z1 } : D1 > A ? { ...w, color: "var(--neutral-light)", opacity: 0.5 } : D1 === A ? { ...w, border: "1px solid var(--primary)", color: "var(--primary)", fontWeight: 600, cursor: "pointer" } : { ...w, color: "var(--page-text-color)", cursor: "pointer" };
|
|
6900
6900
|
}
|
|
6901
6901
|
function f1() {
|
|
6902
6902
|
const m = new Date(g.value, S.value - 1, 1);
|
|
@@ -6910,7 +6910,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
6910
6910
|
w.stopPropagation(), P.value = P.value === m ? null : m;
|
|
6911
6911
|
}
|
|
6912
6912
|
function P1(m) {
|
|
6913
|
-
P.value === "from" ? j.value = m :
|
|
6913
|
+
P.value === "from" ? j.value = m : z.value = m, P.value = null;
|
|
6914
6914
|
}
|
|
6915
6915
|
function C1(m) {
|
|
6916
6916
|
S.value = m, v.value = null;
|
|
@@ -6952,7 +6952,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
6952
6952
|
}), x2(() => {
|
|
6953
6953
|
window.removeEventListener("mousemove", b), window.removeEventListener("mouseup", E);
|
|
6954
6954
|
});
|
|
6955
|
-
const Q = x(() => l.kind === "field-time" ? "clock" : "calendar"), K = x(() => l.placeholder || (l.kind === "field-time" ? "Select time" : l.kind === "field-date" ? "Select date" : "Select date & time")), I = /* @__PURE__ */ D(!1), a1 = /* @__PURE__ */ D("date"), l1 = /* @__PURE__ */ D(null), s1 = /* @__PURE__ */ D(null), W = /* @__PURE__ */ D(null), x1 = /* @__PURE__ */ D(null), c1 = Array.from({ length: 12 }, (m, w) => w + 1), H1 = Array.from({ length: 60 }, (m, w) => w), w1 = x(() => l.kind === "field-date" || l.kind === "field-datetime"), A1 = x(() => l.kind === "field-time"), E1 = x(() => d1(g.value, S.value)), j1 = (m) => String(m).padStart(2, "0"),
|
|
6955
|
+
const Q = x(() => l.kind === "field-time" ? "clock" : "calendar"), K = x(() => l.placeholder || (l.kind === "field-time" ? "Select time" : l.kind === "field-date" ? "Select date" : "Select date & time")), I = /* @__PURE__ */ D(!1), a1 = /* @__PURE__ */ D("date"), l1 = /* @__PURE__ */ D(null), s1 = /* @__PURE__ */ D(null), W = /* @__PURE__ */ D(null), x1 = /* @__PURE__ */ D(null), c1 = Array.from({ length: 12 }, (m, w) => w + 1), H1 = Array.from({ length: 60 }, (m, w) => w), w1 = x(() => l.kind === "field-date" || l.kind === "field-datetime"), A1 = x(() => l.kind === "field-time"), E1 = x(() => d1(g.value, S.value)), j1 = (m) => String(m).padStart(2, "0"), K1 = x(() => s1.value != null && W.value != null && x1.value != null), J1 = x(() => K1.value ? `${j1(s1.value)}:${j1(W.value)} ${x1.value}` : ""), o2 = x(() => {
|
|
6956
6956
|
if (!l1.value) return "";
|
|
6957
6957
|
const m = new Date(l1.value);
|
|
6958
6958
|
return `${j1(m.getDate())}/${j1(m.getMonth() + 1)}/${m.getFullYear()}`;
|
|
@@ -6960,33 +6960,33 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
6960
6960
|
if (!l1.value) return "";
|
|
6961
6961
|
const m = new Date(l1.value);
|
|
6962
6962
|
return `${o[m.getMonth()]} ${m.getDate()} ${m.getFullYear()}`;
|
|
6963
|
-
}), U = x(() => A1.value ?
|
|
6963
|
+
}), U = x(() => A1.value ? J1.value : l1.value ? l.kind === "field-datetime" ? `${o2.value}${K1.value ? " " + J1.value : ""}` : o2.value : ""), _1 = x(() => A1.value ? K1.value : !!l1.value);
|
|
6964
6964
|
function V1() {
|
|
6965
6965
|
const m = /* @__PURE__ */ new Date(), w = m.getHours();
|
|
6966
6966
|
s1.value = w % 12 || 12, W.value = m.getMinutes(), x1.value = w < 12 ? "AM" : "PM";
|
|
6967
6967
|
}
|
|
6968
|
-
function
|
|
6969
|
-
l.disabled || (I.value = !I.value, I.value && (a1.value = A1.value ? "time" : "date"), I.value && A1.value && !
|
|
6968
|
+
function $() {
|
|
6969
|
+
l.disabled || (I.value = !I.value, I.value && (a1.value = A1.value ? "time" : "date"), I.value && A1.value && !K1.value && V1());
|
|
6970
6970
|
}
|
|
6971
6971
|
function V(m) {
|
|
6972
6972
|
return {
|
|
6973
6973
|
muted: !m.cur,
|
|
6974
6974
|
sel: m.cur && l1.value === m.ts,
|
|
6975
|
-
today: m.cur && m.ts ===
|
|
6975
|
+
today: m.cur && m.ts === A && l1.value !== m.ts
|
|
6976
6976
|
};
|
|
6977
6977
|
}
|
|
6978
6978
|
function i1(m) {
|
|
6979
6979
|
m.cur && (l1.value = m.ts, l.kind === "field-date" && (I.value = !1));
|
|
6980
6980
|
}
|
|
6981
6981
|
function z1() {
|
|
6982
|
-
l1.value || (l1.value =
|
|
6982
|
+
l1.value || (l1.value = A), K1.value || V1(), a1.value = "time";
|
|
6983
6983
|
}
|
|
6984
6984
|
function m1() {
|
|
6985
6985
|
const m = /* @__PURE__ */ new Date();
|
|
6986
6986
|
l1.value = new Date(m.getFullYear(), m.getMonth(), m.getDate()).getTime(), V1();
|
|
6987
6987
|
}
|
|
6988
6988
|
function q1() {
|
|
6989
|
-
l1.value =
|
|
6989
|
+
l1.value = A, I.value = !1;
|
|
6990
6990
|
}
|
|
6991
6991
|
function N1() {
|
|
6992
6992
|
I.value = !1;
|
|
@@ -7009,11 +7009,11 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
7009
7009
|
}, T2 = x(() => {
|
|
7010
7010
|
if (G.value) {
|
|
7011
7011
|
if (C.value == null) return null;
|
|
7012
|
-
if (C.value === "custom") return { type: "absolute", start: N.start, end: N.end, fromTime: j.value, toTime:
|
|
7012
|
+
if (C.value === "custom") return { type: "absolute", start: N.start, end: N.end, fromTime: j.value, toTime: z.value };
|
|
7013
7013
|
const m = r.find((w) => w.k === C.value);
|
|
7014
7014
|
return { type: "relative", key: C.value, label: m ? m.t : C.value, span: m ? m.s : null };
|
|
7015
7015
|
}
|
|
7016
|
-
return A1.value ?
|
|
7016
|
+
return A1.value ? K1.value ? { time: J1.value } : null : w1.value ? l1.value ? { date: l1.value, display: U.value } : null : l.kind === "slider" ? { startPct: Math.round(b1.value), endPct: Math.round(I1.value), start: n3(b1.value), end: n3(I1.value) } : null;
|
|
7017
7017
|
});
|
|
7018
7018
|
function x3() {
|
|
7019
7019
|
if (s)
|
|
@@ -7051,7 +7051,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
7051
7051
|
}, [
|
|
7052
7052
|
d("span", {
|
|
7053
7053
|
class: q(["field", { disabled: e.disabled, open: I.value }]),
|
|
7054
|
-
onClick:
|
|
7054
|
+
onClick: $
|
|
7055
7055
|
}, [
|
|
7056
7056
|
d("span", {
|
|
7057
7057
|
class: q(["field-ph", { filled: _1.value }])
|
|
@@ -7469,8 +7469,8 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
7469
7469
|
onClick: w[15] || (w[15] = (X) => B1("to", X))
|
|
7470
7470
|
}, [
|
|
7471
7471
|
d("span", {
|
|
7472
|
-
class: q({ muted: !
|
|
7473
|
-
}, H(
|
|
7472
|
+
class: q({ muted: !z.value })
|
|
7473
|
+
}, H(z.value || "Select"), 3),
|
|
7474
7474
|
T(Z1, {
|
|
7475
7475
|
name: "chevronDown",
|
|
7476
7476
|
size: "11",
|
|
@@ -7480,7 +7480,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
7480
7480
|
P.value === "to" ? (a(), n("div", nc, [
|
|
7481
7481
|
(a(!0), n(O, null, v1(w2(i), (X) => (a(), n("div", {
|
|
7482
7482
|
key: X,
|
|
7483
|
-
class: q(["trow", { active:
|
|
7483
|
+
class: q(["trow", { active: z.value === X }]),
|
|
7484
7484
|
onClick: (F) => P1(X)
|
|
7485
7485
|
}, H(X), 11, ic))), 128))
|
|
7486
7486
|
])) : Z("", !0)
|
|
@@ -7545,11 +7545,11 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
7545
7545
|
},
|
|
7546
7546
|
emits: ["change"],
|
|
7547
7547
|
setup(e, { emit: t }) {
|
|
7548
|
-
const l = e, c = t, s = s2(), o = (
|
|
7549
|
-
if (Array.isArray(
|
|
7550
|
-
if (typeof
|
|
7548
|
+
const l = e, c = t, s = s2(), o = ($, V) => {
|
|
7549
|
+
if (Array.isArray($)) return $;
|
|
7550
|
+
if (typeof $ == "string" && $.trim())
|
|
7551
7551
|
try {
|
|
7552
|
-
const i1 = JSON.parse(
|
|
7552
|
+
const i1 = JSON.parse($);
|
|
7553
7553
|
return Array.isArray(i1) ? i1 : V;
|
|
7554
7554
|
} catch {
|
|
7555
7555
|
return V;
|
|
@@ -7569,19 +7569,19 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
7569
7569
|
{ k: "start with", l: "Start With" },
|
|
7570
7570
|
{ k: "end with", l: "End With" },
|
|
7571
7571
|
{ k: "between", l: "Between" }
|
|
7572
|
-
], p = (
|
|
7572
|
+
], p = ($) => JSON.parse(JSON.stringify($)), u = () => ({ operand: "", operator: "", value: "", toValue: "" }), h = () => ({ inclusion: "include", condition: "and", conditions: [u()] }), v = () => ({ condition: "and", groups: [h()] }), C = () => ({ pre: v(), post: v() }), g = /* @__PURE__ */ D(!1), S = /* @__PURE__ */ D("pre"), M = /* @__PURE__ */ D({
|
|
7573
7573
|
pre: { condition: "or", groups: [
|
|
7574
7574
|
{ inclusion: "include", condition: "and", conditions: [{ operand: "Severity", operator: "=", value: "Critical", toValue: "" }, { operand: "Source", operator: "contain", value: "aws", toValue: "" }] },
|
|
7575
7575
|
{ inclusion: "include", condition: "and", conditions: [{ operand: "Status", operator: "=", value: "Down", toValue: "" }] }
|
|
7576
7576
|
] },
|
|
7577
7577
|
post: { condition: "and", groups: [h()] }
|
|
7578
|
-
}),
|
|
7579
|
-
const V = i.find((i1) => i1.k ===
|
|
7580
|
-
return V ? V.l :
|
|
7578
|
+
}), A = /* @__PURE__ */ D(p(M.value)), N = [{ k: "pre", text: "Pre Filters" }, { k: "post", text: "Post Filters" }], j = x(() => S.value === "pre" ? 3 : 1), z = x(() => A.value ? A.value[S.value] : null), P = ($) => {
|
|
7579
|
+
const V = i.find((i1) => i1.k === $);
|
|
7580
|
+
return V ? V.l : $;
|
|
7581
7581
|
};
|
|
7582
|
-
function G(
|
|
7583
|
-
if (
|
|
7584
|
-
const V =
|
|
7582
|
+
function G($) {
|
|
7583
|
+
if (!$ || !$.groups) return "";
|
|
7584
|
+
const V = $.condition === "or" ? "OR" : "AND", i1 = $.groups.map((z1) => {
|
|
7585
7585
|
const m1 = z1.conditions.filter((o1) => o1.operand && o1.operator);
|
|
7586
7586
|
if (!m1.length) return "";
|
|
7587
7587
|
const q1 = z1.condition === "or" ? "OR" : "AND", N1 = m1.map((o1) => o1.operand + " <b>" + P(o1.operator) + "</b> " + (o1.operator === "between" ? (o1.value || "?") + "–" + (o1.toValue || "?") : o1.value || "Any")).join(" " + q1 + " ");
|
|
@@ -7589,30 +7589,30 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
7589
7589
|
}).filter(Boolean);
|
|
7590
7590
|
return i1.length ? i1.length > 1 ? i1.map((z1) => "(" + z1 + ")").join(" " + V + " ") : i1[0] : "";
|
|
7591
7591
|
}
|
|
7592
|
-
const R = x(() => M.value ? ["pre", "post"].map((
|
|
7592
|
+
const R = x(() => M.value ? ["pre", "post"].map(($) => G(M.value[$])).filter(Boolean).join(' <strong style="color:var(--primary,#111c2c);margin:0 6px">|</strong> ') : "");
|
|
7593
7593
|
function B() {
|
|
7594
|
-
g.value || (
|
|
7594
|
+
g.value || (A.value = p(M.value || C())), g.value = !g.value;
|
|
7595
7595
|
}
|
|
7596
|
-
function d1(
|
|
7597
|
-
|
|
7596
|
+
function d1($) {
|
|
7597
|
+
z.value.groups[$].conditions.push(u());
|
|
7598
7598
|
}
|
|
7599
|
-
function r1(
|
|
7600
|
-
|
|
7599
|
+
function r1($, V) {
|
|
7600
|
+
z.value.groups[$].conditions.splice(V, 1);
|
|
7601
7601
|
}
|
|
7602
7602
|
function J() {
|
|
7603
|
-
|
|
7603
|
+
z.value.groups.push(h());
|
|
7604
7604
|
}
|
|
7605
|
-
function e1(
|
|
7606
|
-
|
|
7605
|
+
function e1($) {
|
|
7606
|
+
z.value.groups.splice($, 1);
|
|
7607
7607
|
}
|
|
7608
7608
|
function u1() {
|
|
7609
|
-
M.value = p(
|
|
7609
|
+
M.value = p(A.value), g.value = !1;
|
|
7610
7610
|
}
|
|
7611
7611
|
function n1() {
|
|
7612
|
-
|
|
7612
|
+
A.value = C(), M.value = null, g.value = !1;
|
|
7613
7613
|
}
|
|
7614
7614
|
function k() {
|
|
7615
|
-
|
|
7615
|
+
A.value = { ...A.value, [S.value]: M.value ? p(M.value[S.value]) : v() };
|
|
7616
7616
|
}
|
|
7617
7617
|
const Y = {
|
|
7618
7618
|
enum: [{ k: "is", l: "=", multi: !0 }, { k: "is_not", l: "!=", multi: !0 }, { k: "is_empty", l: "Is Empty", noValue: !0 }, { k: "is_not_empty", l: "Is Not Empty", noValue: !0 }],
|
|
@@ -7641,24 +7641,24 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
7641
7641
|
{ field: "group", operator: "is", value: ["MySQL", "PostgreSQL"] },
|
|
7642
7642
|
{ field: "severity", operator: "is", value: ["Down", "Warning"] },
|
|
7643
7643
|
{ field: "type", operator: "is", value: ["AWS Auto Scaling", "EC2", "S3", "RDS"] }
|
|
7644
|
-
], B1 = x(() => o(l.fields, f1)), P1 = /* @__PURE__ */ D(o(l.value, p1).map((
|
|
7645
|
-
F1(() => l.value, (
|
|
7646
|
-
|
|
7644
|
+
], B1 = x(() => o(l.fields, f1)), P1 = /* @__PURE__ */ D(o(l.value, p1).map(($) => ({ ...$ })));
|
|
7645
|
+
F1(() => l.value, ($) => {
|
|
7646
|
+
$ != null && (P1.value = o($, []).map((V) => ({ ...V })));
|
|
7647
7647
|
});
|
|
7648
7648
|
function C1() {
|
|
7649
|
-
const
|
|
7649
|
+
const $ = P1.value.filter((V) => V.field && V.operator && (b1(V.operator) && b1(V.operator).noValue ? !0 : Array.isArray(V.value) ? V.value.length : V.value !== "" && V.value != null)).map((V) => ({ field: V.field, operator: V.operator, value: V.value }));
|
|
7650
7650
|
if (s)
|
|
7651
7651
|
try {
|
|
7652
|
-
const V = JSON.stringify(
|
|
7652
|
+
const V = JSON.stringify($);
|
|
7653
7653
|
s.value !== V && (s.value = V);
|
|
7654
7654
|
} catch {
|
|
7655
7655
|
}
|
|
7656
|
-
c("change",
|
|
7656
|
+
c("change", $);
|
|
7657
7657
|
}
|
|
7658
7658
|
const _ = /* @__PURE__ */ D(null), g1 = /* @__PURE__ */ D(null), U1 = /* @__PURE__ */ D(null);
|
|
7659
|
-
function i2(
|
|
7659
|
+
function i2($) {
|
|
7660
7660
|
u2(() => {
|
|
7661
|
-
const V = U1.value && U1.value.querySelectorAll(".chip-wrap")[
|
|
7661
|
+
const V = U1.value && U1.value.querySelectorAll(".chip-wrap")[$];
|
|
7662
7662
|
if (!V) {
|
|
7663
7663
|
g1.value = null;
|
|
7664
7664
|
return;
|
|
@@ -7667,115 +7667,115 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
7667
7667
|
g1.value = { left: Math.round(i1.left), top: Math.round(i1.bottom + 6) };
|
|
7668
7668
|
});
|
|
7669
7669
|
}
|
|
7670
|
-
const t1 = (
|
|
7670
|
+
const t1 = ($) => B1.value.find((V) => V.key === $), b1 = ($) => {
|
|
7671
7671
|
for (const V in Y) {
|
|
7672
|
-
const i1 = Y[V].find((z1) => z1.k ===
|
|
7672
|
+
const i1 = Y[V].find((z1) => z1.k === $);
|
|
7673
7673
|
if (i1) return i1;
|
|
7674
7674
|
}
|
|
7675
7675
|
return null;
|
|
7676
|
-
}, I1 = (
|
|
7677
|
-
const V = t1(
|
|
7676
|
+
}, I1 = ($) => {
|
|
7677
|
+
const V = t1($.field);
|
|
7678
7678
|
return V ? V.label : "Select Filter";
|
|
7679
|
-
}, G1 = (
|
|
7680
|
-
const V = b1(
|
|
7679
|
+
}, G1 = ($) => {
|
|
7680
|
+
const V = b1($.operator);
|
|
7681
7681
|
return V ? V.l : "";
|
|
7682
|
-
}, Q1 = (
|
|
7683
|
-
const V = b1(
|
|
7682
|
+
}, Q1 = ($) => {
|
|
7683
|
+
const V = b1($.operator);
|
|
7684
7684
|
return V && !V.noValue;
|
|
7685
|
-
}, d2 = (
|
|
7686
|
-
const V = b1(
|
|
7685
|
+
}, d2 = ($) => {
|
|
7686
|
+
const V = b1($.operator);
|
|
7687
7687
|
return V && V.multi;
|
|
7688
|
-
}, f = (
|
|
7689
|
-
const V =
|
|
7688
|
+
}, f = ($) => {
|
|
7689
|
+
const V = $.value;
|
|
7690
7690
|
return Array.isArray(V) ? V.length ? V.length === 1 ? V[0] : V[0] + " (+" + (V.length - 1) + ")" : "…" : V === "" || V == null ? "…" : V;
|
|
7691
|
-
}, b = (
|
|
7691
|
+
}, b = ($) => !$.operator, E = ($) => !b($) || !$.field, Q = ($, V) => _.value && _.value.i === $ && _.value.step === V, K = x(() => {
|
|
7692
7692
|
if (!_.value) return [];
|
|
7693
|
-
const
|
|
7693
|
+
const $ = P1.value[_.value.i];
|
|
7694
7694
|
if (_.value.step === "field") return B1.value.map((i1) => ({ k: i1.key, l: i1.label }));
|
|
7695
|
-
const V = t1(
|
|
7695
|
+
const V = t1($.field);
|
|
7696
7696
|
return _.value.step === "operator" ? (Y[V ? V.type : "enum"] || []).map((i1) => ({ k: i1.k, l: i1.l })) : (V ? V.values : []).map((i1) => ({ k: i1, l: i1 }));
|
|
7697
|
-
}), I = x(() => P1.value.some((
|
|
7698
|
-
if (
|
|
7699
|
-
if (!Q1(
|
|
7700
|
-
const V =
|
|
7697
|
+
}), I = x(() => P1.value.some(($) => {
|
|
7698
|
+
if (!$.field || !$.operator) return !1;
|
|
7699
|
+
if (!Q1($)) return !0;
|
|
7700
|
+
const V = $.value;
|
|
7701
7701
|
return Array.isArray(V) ? V.length > 0 : V !== "" && V != null;
|
|
7702
7702
|
}));
|
|
7703
|
-
function a1(
|
|
7703
|
+
function a1($, V, i1) {
|
|
7704
7704
|
i1 && i1.stopPropagation();
|
|
7705
|
-
const z1 = P1.value[
|
|
7706
|
-
if (V === "field" && z1.dflt && z1.field && (V = "operator"), Q(
|
|
7705
|
+
const z1 = P1.value[$];
|
|
7706
|
+
if (V === "field" && z1.dflt && z1.field && (V = "operator"), Q($, V)) {
|
|
7707
7707
|
_.value = null, g1.value = null;
|
|
7708
7708
|
return;
|
|
7709
7709
|
}
|
|
7710
|
-
_.value = { i:
|
|
7710
|
+
_.value = { i: $, step: V }, i2($);
|
|
7711
7711
|
}
|
|
7712
|
-
function l1(
|
|
7712
|
+
function l1($) {
|
|
7713
7713
|
const { i: V, step: i1 } = _.value, z1 = P1.value[V];
|
|
7714
7714
|
if (i1 === "field")
|
|
7715
|
-
z1.field =
|
|
7715
|
+
z1.field = $.k, z1.operator = "", z1.value = "", _.value = { i: V, step: "operator" };
|
|
7716
7716
|
else if (i1 === "operator")
|
|
7717
|
-
z1.operator =
|
|
7717
|
+
z1.operator = $.k, z1.value = d2(z1) ? [] : "", _.value = Q1(z1) && !d2(z1) ? { i: V, step: "value" } : null, d2(z1) && Q1(z1) && s1(V);
|
|
7718
7718
|
else if (d2(z1)) {
|
|
7719
7719
|
const m1 = Array.isArray(z1.value) ? z1.value : [];
|
|
7720
|
-
z1.value = m1.includes(
|
|
7720
|
+
z1.value = m1.includes($.k) ? m1.filter((q1) => q1 !== $.k) : [...m1, $.k];
|
|
7721
7721
|
} else
|
|
7722
|
-
z1.value =
|
|
7722
|
+
z1.value = $.k, _.value = null;
|
|
7723
7723
|
P1.value = [...P1.value], C1(), _.value ? i2(_.value.i) : g1.value = null;
|
|
7724
7724
|
}
|
|
7725
|
-
function s1(
|
|
7725
|
+
function s1($) {
|
|
7726
7726
|
u2(() => {
|
|
7727
7727
|
const V = () => {
|
|
7728
|
-
const i1 = U1.value && U1.value.querySelectorAll(".chip-wrap")[
|
|
7728
|
+
const i1 = U1.value && U1.value.querySelectorAll(".chip-wrap")[$], z1 = i1 && i1.querySelector(".valsel obs-select"), m1 = z1 && z1.shadowRoot && z1.shadowRoot.querySelector(".t-text");
|
|
7729
7729
|
return m1 ? (m1.click(), !0) : !1;
|
|
7730
7730
|
};
|
|
7731
7731
|
V() || requestAnimationFrame(V);
|
|
7732
7732
|
});
|
|
7733
7733
|
}
|
|
7734
|
-
const W = (
|
|
7735
|
-
const i1 = P1.value[
|
|
7734
|
+
const W = ($, V) => {
|
|
7735
|
+
const i1 = P1.value[$].value;
|
|
7736
7736
|
return Array.isArray(i1) ? i1.includes(V.k) : i1 === V.k;
|
|
7737
7737
|
};
|
|
7738
|
-
function x1(
|
|
7739
|
-
P1.value.splice(
|
|
7738
|
+
function x1($) {
|
|
7739
|
+
P1.value.splice($, 1), _.value = null, g1.value = null, C1();
|
|
7740
7740
|
}
|
|
7741
7741
|
function c1() {
|
|
7742
7742
|
P1.value.push({ field: "", operator: "", value: "" });
|
|
7743
|
-
const
|
|
7744
|
-
_.value = { i:
|
|
7743
|
+
const $ = P1.value.length - 1;
|
|
7744
|
+
_.value = { i: $, step: "field" }, i2($);
|
|
7745
7745
|
}
|
|
7746
7746
|
function H1() {
|
|
7747
7747
|
P1.value = [], _.value = null, g1.value = null, C1();
|
|
7748
7748
|
}
|
|
7749
|
-
function w1(
|
|
7750
|
-
const V = t1(
|
|
7749
|
+
function w1($) {
|
|
7750
|
+
const V = t1($.field);
|
|
7751
7751
|
return V ? JSON.stringify((V.values || []).map((i1) => typeof i1 == "string" ? { value: i1, label: i1 } : i1.children ? { value: i1.v, label: i1.v, children: i1.children.map((z1) => ({ value: z1, label: z1 })) } : { value: i1.v, label: i1.v, color: i1.col })) : "[]";
|
|
7752
7752
|
}
|
|
7753
|
-
const A1 = (
|
|
7754
|
-
const V = t1(
|
|
7753
|
+
const A1 = ($) => Array.isArray($.value) ? $.value.join(",") : $.value || "", E1 = ($) => {
|
|
7754
|
+
const V = t1($.field);
|
|
7755
7755
|
return !!(V && V.selectAll);
|
|
7756
7756
|
};
|
|
7757
|
-
function j1(
|
|
7757
|
+
function j1($, V) {
|
|
7758
7758
|
const i1 = V && V.detail, z1 = Array.isArray(i1) ? i1[0] : i1;
|
|
7759
|
-
P1.value[
|
|
7759
|
+
P1.value[$].value = Array.isArray(z1) ? z1 : z1 == null || z1 === "" ? [] : [z1], C1();
|
|
7760
7760
|
}
|
|
7761
|
-
const
|
|
7761
|
+
const K1 = ["Down monitors", "Critical alerts", "Unacknowledged", "My favorites"], J1 = /* @__PURE__ */ D({}), o2 = /* @__PURE__ */ D([
|
|
7762
7762
|
{ n: "Backup Status", open: !0, rows: [{ n: "Successful", c: 5, i: "check-circle", col: "var(--secondary-green)" }, { n: "Failed", c: 3, i: "times-circle", col: "var(--secondary-red)" }] },
|
|
7763
7763
|
{ n: "Config Conflict", open: !0, rows: [{ n: "In Sync", c: 1 }, { n: "Conflict Detected", c: 6 }, { n: "Not Applicable", c: 1 }] },
|
|
7764
7764
|
{ n: "Device Type", open: !0, rows: [{ n: "Switch", c: 2, i: "sitemap", col: "var(--primary-alt)" }, { n: "Router", c: 6, i: "server", col: "var(--primary-alt)" }] },
|
|
7765
7765
|
{ n: "Vendor", open: !1, rows: [{ n: "Huawei", c: 1 }, { n: "Cisco Systems", c: 6 }] },
|
|
7766
7766
|
{ n: "Template", open: !1, rows: [{ n: "Cisco", c: 3 }, { n: "sophos firewall", c: 1 }] }
|
|
7767
7767
|
]);
|
|
7768
|
-
function L(
|
|
7769
|
-
|
|
7768
|
+
function L($) {
|
|
7769
|
+
$.open = !$.open;
|
|
7770
7770
|
}
|
|
7771
|
-
function U(
|
|
7772
|
-
|
|
7771
|
+
function U($) {
|
|
7772
|
+
J1.value = { ...J1.value, [$]: !J1.value[$] };
|
|
7773
7773
|
}
|
|
7774
|
-
const _1 = (
|
|
7775
|
-
function V1(
|
|
7776
|
-
|
|
7774
|
+
const _1 = ($) => ({ "check-circle": "checkCircle", "times-circle": "timesCircle", sitemap: "sitemap", server: "server" })[$] || "";
|
|
7775
|
+
function V1($) {
|
|
7776
|
+
$.composedPath().some((V) => V && V.tagName === "OBS-FILTERS") || (g.value = !1, _.value = null, g1.value = null, P1.value.some((V) => !V.field) && (P1.value = P1.value.filter((V) => V.field)));
|
|
7777
7777
|
}
|
|
7778
|
-
return k2(() => document.addEventListener("click", V1, !0)), x2(() => document.removeEventListener("click", V1, !0)), (
|
|
7778
|
+
return k2(() => document.addEventListener("click", V1, !0)), x2(() => document.removeEventListener("click", V1, !0)), ($, V) => {
|
|
7779
7779
|
const i1 = k1("obs-icon"), z1 = k1("obs-select");
|
|
7780
7780
|
return a(), n("div", {
|
|
7781
7781
|
class: q(["fx", "k-" + e.kind])
|
|
@@ -7824,13 +7824,13 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
7824
7824
|
j.value > 1 ? (a(), n("div", Lc, [
|
|
7825
7825
|
d("span", _c, [
|
|
7826
7826
|
H2(d("select", {
|
|
7827
|
-
"onUpdate:modelValue": V[1] || (V[1] = (m1) =>
|
|
7827
|
+
"onUpdate:modelValue": V[1] || (V[1] = (m1) => z.value.condition = m1),
|
|
7828
7828
|
class: "sel"
|
|
7829
7829
|
}, [...V[10] || (V[10] = [
|
|
7830
7830
|
d("option", { value: "and" }, "All", -1),
|
|
7831
7831
|
d("option", { value: "or" }, "Any", -1)
|
|
7832
7832
|
])], 512), [
|
|
7833
|
-
[M3,
|
|
7833
|
+
[M3, z.value.condition]
|
|
7834
7834
|
]),
|
|
7835
7835
|
T(i1, {
|
|
7836
7836
|
class: "chev",
|
|
@@ -7840,7 +7840,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
7840
7840
|
]),
|
|
7841
7841
|
V[11] || (V[11] = d("span", null, "Group(s) matching", -1))
|
|
7842
7842
|
])) : Z("", !0),
|
|
7843
|
-
(a(!0), n(O, null, v1(
|
|
7843
|
+
(a(!0), n(O, null, v1(z.value.groups, (m1, q1) => (a(), n("div", {
|
|
7844
7844
|
key: q1,
|
|
7845
7845
|
class: "grp"
|
|
7846
7846
|
}, [
|
|
@@ -7978,7 +7978,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
7978
7978
|
}),
|
|
7979
7979
|
V[18] || (V[18] = $1("Add Condition", -1))
|
|
7980
7980
|
], 8, Wc)) : Z("", !0),
|
|
7981
|
-
q1 ===
|
|
7981
|
+
q1 === z.value.groups.length - 1 && z.value.groups.length < j.value ? (a(), n("a", {
|
|
7982
7982
|
key: 1,
|
|
7983
7983
|
class: "link",
|
|
7984
7984
|
onClick: V[2] || (V[2] = (N1) => J())
|
|
@@ -7991,7 +7991,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
7991
7991
|
V[19] || (V[19] = $1("Add New Group", -1))
|
|
7992
7992
|
])) : Z("", !0)
|
|
7993
7993
|
]),
|
|
7994
|
-
|
|
7994
|
+
z.value.groups.length > 1 ? (a(), n("a", {
|
|
7995
7995
|
key: 0,
|
|
7996
7996
|
class: "grp-close",
|
|
7997
7997
|
onClick: (N1) => e1(q1)
|
|
@@ -8148,7 +8148,7 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
8148
8148
|
})
|
|
8149
8149
|
]),
|
|
8150
8150
|
d("div", rs, [
|
|
8151
|
-
(a(), n(O, null, v1(
|
|
8151
|
+
(a(), n(O, null, v1(K1, (m1) => d("div", {
|
|
8152
8152
|
key: m1,
|
|
8153
8153
|
class: "quick-row"
|
|
8154
8154
|
}, [
|
|
@@ -8219,10 +8219,10 @@ const V9 = ':host([hidden]){display:none!important}:host{display:inline-block}bu
|
|
|
8219
8219
|
class: "vrow"
|
|
8220
8220
|
}, [
|
|
8221
8221
|
d("span", {
|
|
8222
|
-
class: q(["vcb", { on: !!
|
|
8222
|
+
class: q(["vcb", { on: !!J1.value[m1.n + q1.n] }]),
|
|
8223
8223
|
onClick: y1((N1) => U(m1.n + q1.n), ["prevent"])
|
|
8224
8224
|
}, [
|
|
8225
|
-
|
|
8225
|
+
J1.value[m1.n + q1.n] ? (a(), M1(i1, {
|
|
8226
8226
|
key: 0,
|
|
8227
8227
|
name: "check",
|
|
8228
8228
|
size: "10",
|
|
@@ -8299,7 +8299,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
8299
8299
|
"reset-cancel-save": { right: [{ t: "Reset", v: "default", a: "reset" }, { t: "Cancel", v: "default", close: !0 }, { t: "Save", v: "primary", a: "save" }] },
|
|
8300
8300
|
"delete-split": { left: [{ t: "Delete", v: "error", outline: !0, a: "delete" }], right: [{ t: "Cancel", v: "default", close: !0 }, { t: "Save", v: "primary", a: "save" }] },
|
|
8301
8301
|
"note-split": { note: "* fields are mandatory", right: [{ t: "Back", v: "default", a: "back" }, { t: "Cancel", v: "default", close: !0 }, { t: "Save", v: "primary", a: "save" }] }
|
|
8302
|
-
}, S = x(() => g[l.footer] || null), M = x(() => !!(S.value && (S.value.left || S.value.note))),
|
|
8302
|
+
}, S = x(() => g[l.footer] || null), M = x(() => !!(S.value && (S.value.left || S.value.note))), A = x(() => v.value || !!S.value);
|
|
8303
8303
|
function N(J) {
|
|
8304
8304
|
J.a && s("footer-action", { action: J.a }), J.close && G();
|
|
8305
8305
|
}
|
|
@@ -8307,7 +8307,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
8307
8307
|
const J = C.value;
|
|
8308
8308
|
v.value = !!(J && J.assignedNodes && J.assignedNodes({ flatten: !0 }).some((e1) => e1.nodeType === 1 || (e1.textContent || "").trim()));
|
|
8309
8309
|
}
|
|
8310
|
-
function
|
|
8310
|
+
function z(J) {
|
|
8311
8311
|
if (o)
|
|
8312
8312
|
try {
|
|
8313
8313
|
o.open !== J && (o.open = J);
|
|
@@ -8337,7 +8337,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
8337
8337
|
!J || !J.open || J.close();
|
|
8338
8338
|
}
|
|
8339
8339
|
function R() {
|
|
8340
|
-
p.value = !1, l6(G),
|
|
8340
|
+
p.value = !1, l6(G), z(!1), s("update:open", !1), s("close"), s("after-close");
|
|
8341
8341
|
}
|
|
8342
8342
|
function B(J) {
|
|
8343
8343
|
c(l.escClosable) && J.preventDefault();
|
|
@@ -8378,7 +8378,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
8378
8378
|
id: w2(r),
|
|
8379
8379
|
class: "title"
|
|
8380
8380
|
}, [
|
|
8381
|
-
|
|
8381
|
+
W1(J.$slots, "title", {}, () => [
|
|
8382
8382
|
$1(H(e.title), 1)
|
|
8383
8383
|
])
|
|
8384
8384
|
], 8, ks),
|
|
@@ -8395,14 +8395,14 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
8395
8395
|
])
|
|
8396
8396
|
]),
|
|
8397
8397
|
d("div", {
|
|
8398
|
-
class: q(["body", { scroll: h.value, pad: e.usePadding, hasfoot:
|
|
8398
|
+
class: q(["body", { scroll: h.value, pad: e.usePadding, hasfoot: A.value }])
|
|
8399
8399
|
}, [
|
|
8400
|
-
|
|
8400
|
+
W1(J.$slots, "default")
|
|
8401
8401
|
], 2),
|
|
8402
8402
|
H2(d("footer", {
|
|
8403
8403
|
class: q(["actions", { split: !v.value && M.value }])
|
|
8404
8404
|
}, [
|
|
8405
|
-
|
|
8405
|
+
W1(J.$slots, "actions", {
|
|
8406
8406
|
ref_key: "actionsSlot",
|
|
8407
8407
|
ref: C,
|
|
8408
8408
|
onSlotchange: j
|
|
@@ -8436,7 +8436,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
8436
8436
|
])
|
|
8437
8437
|
], 64)) : Z("", !0)
|
|
8438
8438
|
], 2), [
|
|
8439
|
-
[r4,
|
|
8439
|
+
[r4, A.value]
|
|
8440
8440
|
])
|
|
8441
8441
|
])
|
|
8442
8442
|
], 46, ws);
|
|
@@ -9069,10 +9069,10 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9069
9069
|
F1(() => l.value, (C1) => {
|
|
9070
9070
|
v.value = h(C1);
|
|
9071
9071
|
});
|
|
9072
|
-
const C = /* @__PURE__ */ D(!1), g = /* @__PURE__ */ D(""), S = /* @__PURE__ */ D("all"), M = /* @__PURE__ */ D(null),
|
|
9073
|
-
if (!
|
|
9072
|
+
const C = /* @__PURE__ */ D(!1), g = /* @__PURE__ */ D(""), S = /* @__PURE__ */ D("all"), M = /* @__PURE__ */ D(null), A = /* @__PURE__ */ D(null), N = /* @__PURE__ */ D(null), j = /* @__PURE__ */ D({}), z = x(() => v.value.length), P = (C1) => C1[l.rowKey], G = x(() => {
|
|
9073
|
+
if (!z.value) return l.placeholder;
|
|
9074
9074
|
const C1 = u.value.find((g1) => P(g1) === v.value[0]), _ = C1 ? C1.name ?? C1.label ?? P(C1) : v.value[0];
|
|
9075
|
-
return
|
|
9075
|
+
return z.value > 1 ? `${_} (+${z.value - 1})` : _;
|
|
9076
9076
|
}), R = x(() => {
|
|
9077
9077
|
const C1 = g.value.toLowerCase();
|
|
9078
9078
|
let _ = u.value.filter((g1) => !C1 || p.value.some((U1) => String(g1[U1.key] ?? "").toLowerCase().includes(C1)));
|
|
@@ -9106,7 +9106,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9106
9106
|
const C1 = M.value && M.value.getBoundingClientRect();
|
|
9107
9107
|
if (!C1) return;
|
|
9108
9108
|
j.value = { position: "fixed", inset: "auto", margin: "0", left: `${Math.round(C1.left)}px`, top: `${Math.round(C1.bottom + 4)}px`, width: `${Math.max(Math.round(C1.width), 720)}px` };
|
|
9109
|
-
const _ =
|
|
9109
|
+
const _ = A.value;
|
|
9110
9110
|
if (_ && _.showPopover) {
|
|
9111
9111
|
try {
|
|
9112
9112
|
_.showPopover();
|
|
@@ -9122,7 +9122,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9122
9122
|
function p1() {
|
|
9123
9123
|
if (!C.value) return;
|
|
9124
9124
|
C.value = !1;
|
|
9125
|
-
const C1 =
|
|
9125
|
+
const C1 = A.value;
|
|
9126
9126
|
if (C1 && C1.hidePopover)
|
|
9127
9127
|
try {
|
|
9128
9128
|
C1.hidePopover();
|
|
@@ -9136,7 +9136,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9136
9136
|
function P1(C1) {
|
|
9137
9137
|
if (!C.value) return;
|
|
9138
9138
|
const _ = C1.composedPath ? C1.composedPath() : [];
|
|
9139
|
-
_.includes(M.value) || _.includes(
|
|
9139
|
+
_.includes(M.value) || _.includes(A.value) || p1();
|
|
9140
9140
|
}
|
|
9141
9141
|
return typeof document < "u" && document.addEventListener("click", P1, !0), x2(() => {
|
|
9142
9142
|
typeof document < "u" && document.removeEventListener("click", P1, !0);
|
|
@@ -9154,7 +9154,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9154
9154
|
onClick: y1(B1, ["stop"])
|
|
9155
9155
|
}, [
|
|
9156
9156
|
d("span", {
|
|
9157
|
-
class: q(["tlabel", { ph: !
|
|
9157
|
+
class: q(["tlabel", { ph: !z.value }])
|
|
9158
9158
|
}, H(G.value), 3),
|
|
9159
9159
|
T(g1, {
|
|
9160
9160
|
class: q(["chev", { up: C.value }]),
|
|
@@ -9165,7 +9165,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9165
9165
|
C.value ? (a(), n("div", {
|
|
9166
9166
|
key: 0,
|
|
9167
9167
|
ref_key: "menuRef",
|
|
9168
|
-
ref:
|
|
9168
|
+
ref: A,
|
|
9169
9169
|
popover: "manual",
|
|
9170
9170
|
class: "menu",
|
|
9171
9171
|
style: S1(j.value)
|
|
@@ -9184,8 +9184,8 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9184
9184
|
onInput: y1(Y, ["stop"])
|
|
9185
9185
|
}, null, 40, Ds)
|
|
9186
9186
|
])) : Z("", !0),
|
|
9187
|
-
e.multiple &&
|
|
9188
|
-
d("span", qs, H(
|
|
9187
|
+
e.multiple && z.value ? (a(), n("div", Rs, [
|
|
9188
|
+
d("span", qs, H(z.value), 1),
|
|
9189
9189
|
d("a", {
|
|
9190
9190
|
class: "lnk",
|
|
9191
9191
|
onClick: _[0] || (_[0] = (i2) => S.value = S.value === "selected" ? "all" : "selected")
|
|
@@ -9233,15 +9233,15 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9233
9233
|
},
|
|
9234
9234
|
emits: ["select", "show", "hide"],
|
|
9235
9235
|
setup(e, { emit: t }) {
|
|
9236
|
-
const l = e, c = t, s = s2(), o = (j,
|
|
9236
|
+
const l = e, c = t, s = s2(), o = (j, z = []) => {
|
|
9237
9237
|
if (Array.isArray(j)) return j;
|
|
9238
9238
|
const P = String(j || "").trim();
|
|
9239
|
-
if (!P) return
|
|
9239
|
+
if (!P) return z;
|
|
9240
9240
|
if (P.startsWith("["))
|
|
9241
9241
|
try {
|
|
9242
9242
|
return JSON.parse(P);
|
|
9243
9243
|
} catch {
|
|
9244
|
-
return
|
|
9244
|
+
return z;
|
|
9245
9245
|
}
|
|
9246
9246
|
return P.split(",").map((G) => ({ key: G.trim(), label: G.trim() })).filter((G) => G.key);
|
|
9247
9247
|
}, r = x(() => o(l.items)), i = x(() => l.mode === "inline"), p = /* @__PURE__ */ D(!1), u = /* @__PURE__ */ D(null), h = /* @__PURE__ */ D(null), v = /* @__PURE__ */ D({});
|
|
@@ -9259,7 +9259,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9259
9259
|
u2(() => {
|
|
9260
9260
|
const j = u.value && u.value.getBoundingClientRect();
|
|
9261
9261
|
if (!j) return;
|
|
9262
|
-
const
|
|
9262
|
+
const z = l.placement !== "bottom-start", P = 200, G = Math.round(z ? j.right - P : j.left);
|
|
9263
9263
|
v.value = { position: "fixed", inset: "auto", margin: "0", left: `${Math.max(8, G)}px`, top: `${Math.round(j.bottom + 4)}px`, minWidth: `${P}px` };
|
|
9264
9264
|
const R = h.value;
|
|
9265
9265
|
if (R && R.showPopover)
|
|
@@ -9283,17 +9283,17 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9283
9283
|
}
|
|
9284
9284
|
c("hide");
|
|
9285
9285
|
}
|
|
9286
|
-
function
|
|
9286
|
+
function A() {
|
|
9287
9287
|
p.value ? M() : S();
|
|
9288
9288
|
}
|
|
9289
9289
|
function N(j) {
|
|
9290
9290
|
if (!p.value) return;
|
|
9291
|
-
const
|
|
9292
|
-
|
|
9291
|
+
const z = j.composedPath ? j.composedPath() : [];
|
|
9292
|
+
z.includes(u.value) || z.includes(h.value) || M();
|
|
9293
9293
|
}
|
|
9294
9294
|
return typeof document < "u" && document.addEventListener("click", N, !0), x2(() => {
|
|
9295
9295
|
typeof document < "u" && document.removeEventListener("click", N, !0);
|
|
9296
|
-
}), (j,
|
|
9296
|
+
}), (j, z) => {
|
|
9297
9297
|
const P = k1("obs-icon");
|
|
9298
9298
|
return i.value ? (a(), n("div", {
|
|
9299
9299
|
key: 0,
|
|
@@ -9335,7 +9335,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9335
9335
|
type: "button",
|
|
9336
9336
|
class: "btn-trig",
|
|
9337
9337
|
disabled: e.disabled,
|
|
9338
|
-
onClick: y1(
|
|
9338
|
+
onClick: y1(A, ["stop"])
|
|
9339
9339
|
}, [
|
|
9340
9340
|
d("span", null, H(e.label), 1),
|
|
9341
9341
|
T(P, {
|
|
@@ -9349,7 +9349,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9349
9349
|
class: q(["dots", { act: p.value }]),
|
|
9350
9350
|
disabled: e.disabled,
|
|
9351
9351
|
"aria-label": "Actions",
|
|
9352
|
-
onClick: y1(
|
|
9352
|
+
onClick: y1(A, ["stop"])
|
|
9353
9353
|
}, [
|
|
9354
9354
|
T(P, {
|
|
9355
9355
|
name: "ellipsisV",
|
|
@@ -9441,7 +9441,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9441
9441
|
F1(() => c.value, (r1) => {
|
|
9442
9442
|
v.value = r1;
|
|
9443
9443
|
});
|
|
9444
|
-
const C = x(() => String(v.value).toLowerCase() === "transparent"), g = x(() => /^#[0-9a-fA-F]{6}$/.test(v.value) ? v.value : "#0D9488"), S = /* @__PURE__ */ D(!1), M = /* @__PURE__ */ D(null),
|
|
9444
|
+
const C = x(() => String(v.value).toLowerCase() === "transparent"), g = x(() => /^#[0-9a-fA-F]{6}$/.test(v.value) ? v.value : "#0D9488"), S = /* @__PURE__ */ D(!1), M = /* @__PURE__ */ D(null), A = /* @__PURE__ */ D(null), N = /* @__PURE__ */ D({});
|
|
9445
9445
|
function j(r1) {
|
|
9446
9446
|
if (v.value = r1, o)
|
|
9447
9447
|
try {
|
|
@@ -9450,7 +9450,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9450
9450
|
}
|
|
9451
9451
|
s("change", r1);
|
|
9452
9452
|
}
|
|
9453
|
-
function
|
|
9453
|
+
function z(r1) {
|
|
9454
9454
|
j(r1.target.value);
|
|
9455
9455
|
}
|
|
9456
9456
|
function P() {
|
|
@@ -9458,7 +9458,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9458
9458
|
const r1 = M.value && M.value.getBoundingClientRect();
|
|
9459
9459
|
if (!r1) return;
|
|
9460
9460
|
N.value = { position: "fixed", inset: "auto", margin: "0", left: `${Math.round(r1.left)}px`, top: `${Math.round(r1.bottom + 6)}px` };
|
|
9461
|
-
const J =
|
|
9461
|
+
const J = A.value;
|
|
9462
9462
|
if (J && J.showPopover)
|
|
9463
9463
|
try {
|
|
9464
9464
|
J.showPopover();
|
|
@@ -9472,7 +9472,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9472
9472
|
function R() {
|
|
9473
9473
|
if (!S.value) return;
|
|
9474
9474
|
S.value = !1;
|
|
9475
|
-
const r1 =
|
|
9475
|
+
const r1 = A.value;
|
|
9476
9476
|
if (r1 && r1.hidePopover)
|
|
9477
9477
|
try {
|
|
9478
9478
|
r1.hidePopover();
|
|
@@ -9486,7 +9486,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9486
9486
|
function d1(r1) {
|
|
9487
9487
|
if (!S.value) return;
|
|
9488
9488
|
const J = r1.composedPath ? r1.composedPath() : [];
|
|
9489
|
-
J.includes(M.value) || J.includes(
|
|
9489
|
+
J.includes(M.value) || J.includes(A.value) || R();
|
|
9490
9490
|
}
|
|
9491
9491
|
return typeof document < "u" && document.addEventListener("click", d1, !0), x2(() => {
|
|
9492
9492
|
typeof document < "u" && document.removeEventListener("click", d1, !0);
|
|
@@ -9520,7 +9520,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9520
9520
|
S.value ? (a(), n("div", {
|
|
9521
9521
|
key: 0,
|
|
9522
9522
|
ref_key: "menuRef",
|
|
9523
|
-
ref:
|
|
9523
|
+
ref: A,
|
|
9524
9524
|
popover: "manual",
|
|
9525
9525
|
class: "pop",
|
|
9526
9526
|
style: S1(N.value)
|
|
@@ -9545,7 +9545,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9545
9545
|
d("input", {
|
|
9546
9546
|
type: "color",
|
|
9547
9547
|
value: g.value,
|
|
9548
|
-
onInput: y1(
|
|
9548
|
+
onInput: y1(z, ["stop"])
|
|
9549
9549
|
}, null, 40, ro)
|
|
9550
9550
|
]),
|
|
9551
9551
|
h.value ? (a(), n("span", {
|
|
@@ -9696,16 +9696,16 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9696
9696
|
F1(() => l.selected, (L) => {
|
|
9697
9697
|
g.value = C(L);
|
|
9698
9698
|
});
|
|
9699
|
-
const S = String(l.sort || "").split(":"), M = /* @__PURE__ */ D(S[0] || ""),
|
|
9699
|
+
const S = String(l.sort || "").split(":"), M = /* @__PURE__ */ D(S[0] || ""), A = /* @__PURE__ */ D(S[1] === "desc" ? "desc" : "asc");
|
|
9700
9700
|
F1(() => l.sort, (L) => {
|
|
9701
9701
|
const U = String(L || "").split(":");
|
|
9702
|
-
M.value = U[0] || "",
|
|
9702
|
+
M.value = U[0] || "", A.value = U[1] === "desc" ? "desc" : "asc";
|
|
9703
9703
|
});
|
|
9704
9704
|
const N = /* @__PURE__ */ D(l.page || 1);
|
|
9705
9705
|
F1(() => l.page, (L) => {
|
|
9706
9706
|
N.value = L || 1;
|
|
9707
9707
|
});
|
|
9708
|
-
const j = (L) => L[l.rowKey],
|
|
9708
|
+
const j = (L) => L[l.rowKey], z = x(() => new Set(g.value.map(String))), P = (L) => z.value.has(String(j(L))), G = /* @__PURE__ */ D(null), R = x(() => G.value ?? l.pageSize), B = x(() => R.value > 0), d1 = x(() => [...new Set([R.value, 10, 20, 50, 100].filter((L) => L > 0))].sort((L, U) => L - U)), r1 = x(() => M.value ? u.value.slice().sort((L, U) => (A.value === "asc" ? 1 : -1) * String(L[M.value] ?? "").localeCompare(String(U[M.value] ?? ""), void 0, { numeric: !0 })) : u.value), J = x(() => B.value ? Math.max(1, Math.ceil(r1.value.length / R.value)) : 1), e1 = x(() => {
|
|
9709
9709
|
if (!B.value) return r1.value;
|
|
9710
9710
|
const L = (N.value - 1) * R.value;
|
|
9711
9711
|
return r1.value.slice(L, L + R.value);
|
|
@@ -9737,8 +9737,8 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9737
9737
|
});
|
|
9738
9738
|
function g1(L, U, _1) {
|
|
9739
9739
|
for (const V1 of L || []) {
|
|
9740
|
-
const
|
|
9741
|
-
_1.push({ ...V1, __level: U, __hasKids:
|
|
9740
|
+
const $ = Array.isArray(V1.children) && V1.children.length > 0;
|
|
9741
|
+
_1.push({ ...V1, __level: U, __hasKids: $ }), $ && L1(V1) && g1(V1.children, U + 1, _1);
|
|
9742
9742
|
}
|
|
9743
9743
|
return _1;
|
|
9744
9744
|
}
|
|
@@ -9766,10 +9766,10 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9766
9766
|
}), b = x(() => {
|
|
9767
9767
|
const L = J.value, U = N.value;
|
|
9768
9768
|
if (L <= 7) return Array.from({ length: L }, (V, i1) => i1 + 1);
|
|
9769
|
-
const _1 = [1], V1 = Math.max(2, U - 1),
|
|
9769
|
+
const _1 = [1], V1 = Math.max(2, U - 1), $ = Math.min(L - 1, U + 1);
|
|
9770
9770
|
V1 > 2 && _1.push("…");
|
|
9771
|
-
for (let V = V1; V <=
|
|
9772
|
-
return
|
|
9771
|
+
for (let V = V1; V <= $; V++) _1.push(V);
|
|
9772
|
+
return $ < L - 1 && _1.push("…"), _1.push(L), _1;
|
|
9773
9773
|
}), E = x(() => {
|
|
9774
9774
|
const L = r1.value.length;
|
|
9775
9775
|
if (!L) return "0 items";
|
|
@@ -9790,7 +9790,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9790
9790
|
}
|
|
9791
9791
|
function I(L, U) {
|
|
9792
9792
|
const _1 = U.target && U.target.checked, V1 = String(j(L));
|
|
9793
|
-
g.value = _1 ? [.../* @__PURE__ */ new Set([...g.value, V1])] : g.value.filter((
|
|
9793
|
+
g.value = _1 ? [.../* @__PURE__ */ new Set([...g.value, V1])] : g.value.filter(($) => $ !== V1), K();
|
|
9794
9794
|
}
|
|
9795
9795
|
function a1(L) {
|
|
9796
9796
|
const U = L.target && L.target.checked, _1 = e1.value.map((V1) => String(j(V1)));
|
|
@@ -9800,7 +9800,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9800
9800
|
g.value = [], K();
|
|
9801
9801
|
}
|
|
9802
9802
|
function s1(L) {
|
|
9803
|
-
!i.value || !L.sortable || (M.value === L.key ?
|
|
9803
|
+
!i.value || !L.sortable || (M.value === L.key ? A.value = A.value === "asc" ? "desc" : "asc" : (M.value = L.key, A.value = "asc"), c("sort", { key: M.value, dir: A.value }));
|
|
9804
9804
|
}
|
|
9805
9805
|
function W(L, U) {
|
|
9806
9806
|
const _1 = (U.detail && U.detail[0]) ?? U.detail;
|
|
@@ -9815,19 +9815,19 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9815
9815
|
};
|
|
9816
9816
|
function E1(L, U, _1, V1) {
|
|
9817
9817
|
V1 && V1.stopPropagation && V1.stopPropagation();
|
|
9818
|
-
let
|
|
9819
|
-
_1 === "switch" && (
|
|
9818
|
+
let $ = c1(L, U);
|
|
9819
|
+
_1 === "switch" && ($ = Array.isArray(V1 == null ? void 0 : V1.detail) ? V1.detail[0] : (V1 == null ? void 0 : V1.detail) ?? !H1($)), c("cellaction", { id: j(L), key: U.key, type: _1, value: $ });
|
|
9820
9820
|
}
|
|
9821
9821
|
const j1 = (L) => String(L.sev || L.severity || "critical").toLowerCase().trim();
|
|
9822
|
-
function
|
|
9822
|
+
function K1(L) {
|
|
9823
9823
|
const U = Array.isArray(L) ? L : [];
|
|
9824
9824
|
if (U.length < 2) return "";
|
|
9825
|
-
const _1 = Math.min(...U),
|
|
9826
|
-
return U.map((m1, q1) => `${(q1 / (U.length - 1) * V).toFixed(1)},${(i1 - z1 - (m1 - _1) /
|
|
9825
|
+
const _1 = Math.min(...U), $ = Math.max(...U) - _1 || 1, V = 80, i1 = 18, z1 = 2;
|
|
9826
|
+
return U.map((m1, q1) => `${(q1 / (U.length - 1) * V).toFixed(1)},${(i1 - z1 - (m1 - _1) / $ * (i1 - 2 * z1)).toFixed(1)}`).join(" ");
|
|
9827
9827
|
}
|
|
9828
|
-
const
|
|
9828
|
+
const J1 = (L, U) => `var(${L[U.colorKey] || "--neutral-lighter"}, var(--neutral-lighter, #e3e8f2))`, o2 = (L, U) => Math.max(0, Math.min(100, Number(c1(L, U)) || 0));
|
|
9829
9829
|
return (L, U) => {
|
|
9830
|
-
const _1 = k1("obs-tag"), V1 = k1("obs-checkbox"),
|
|
9830
|
+
const _1 = k1("obs-tag"), V1 = k1("obs-checkbox"), $ = k1("obs-icon"), V = k1("obs-input"), i1 = k1("obs-severity"), z1 = k1("obs-switch"), m1 = k1("obs-button"), q1 = k1("obs-menu"), N1 = k1("obs-link");
|
|
9831
9831
|
return a(), n("div", vo, [
|
|
9832
9832
|
e.selectable && !e.hideSelectionInfo && g.value.length ? (a(), n("div", fo, [
|
|
9833
9833
|
T(_1, {
|
|
@@ -9867,10 +9867,10 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9867
9867
|
}, [
|
|
9868
9868
|
d("span", bo, [
|
|
9869
9869
|
$1(H(o1.title), 1),
|
|
9870
|
-
i.value && o1.sortable && M.value === o1.key ? (a(), M1(
|
|
9870
|
+
i.value && o1.sortable && M.value === o1.key ? (a(), M1($, {
|
|
9871
9871
|
key: 0,
|
|
9872
9872
|
class: "sarr",
|
|
9873
|
-
name:
|
|
9873
|
+
name: A.value === "asc" ? "longArrowUp" : "longArrowDown",
|
|
9874
9874
|
size: "11"
|
|
9875
9875
|
}, null, 8, ["name"])) : Z("", !0)
|
|
9876
9876
|
])
|
|
@@ -9892,7 +9892,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9892
9892
|
class: q(["grp", { clickable: B1.value }]),
|
|
9893
9893
|
onClick: (h1) => C1(o1.__group)
|
|
9894
9894
|
}, [
|
|
9895
|
-
B1.value ? (a(), M1(
|
|
9895
|
+
B1.value ? (a(), M1($, {
|
|
9896
9896
|
key: 0,
|
|
9897
9897
|
name: P1(o1.__group) ? "chevronDown" : "chevronRight",
|
|
9898
9898
|
size: "11"
|
|
@@ -9911,7 +9911,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9911
9911
|
class: "exp-col",
|
|
9912
9912
|
onClick: y1((h1) => f1(o1), ["stop"])
|
|
9913
9913
|
}, [
|
|
9914
|
-
T(
|
|
9914
|
+
T($, {
|
|
9915
9915
|
name: L1(o1) ? "chevronDown" : "chevronRight",
|
|
9916
9916
|
size: "12",
|
|
9917
9917
|
class: "exp-ic"
|
|
@@ -9932,14 +9932,14 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9932
9932
|
(a(!0), n(O, null, v1(p.value, (h1, X2) => (a(), n("td", {
|
|
9933
9933
|
key: h1.key,
|
|
9934
9934
|
class: q(["al-" + (h1.align || "left"), h1.cls, { heat: h1.type === "heat" }]),
|
|
9935
|
-
style: S1(h1.type === "heat" ? { background:
|
|
9935
|
+
style: S1(h1.type === "heat" ? { background: J1(o1, h1) } : null)
|
|
9936
9936
|
}, [
|
|
9937
9937
|
e.tree && X2 === 0 ? (a(), n("span", {
|
|
9938
9938
|
key: 0,
|
|
9939
9939
|
class: "tree-lead",
|
|
9940
9940
|
style: S1({ marginLeft: o1.__level * 20 + "px" })
|
|
9941
9941
|
}, [
|
|
9942
|
-
o1.__hasKids ? (a(), M1(
|
|
9942
|
+
o1.__hasKids ? (a(), M1($, {
|
|
9943
9943
|
key: 0,
|
|
9944
9944
|
class: "tree-chev",
|
|
9945
9945
|
name: L1(o1) ? "chevronDown" : "chevronRight",
|
|
@@ -9976,11 +9976,11 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9976
9976
|
key: 6,
|
|
9977
9977
|
status: String(c1(o1, h1))
|
|
9978
9978
|
}, null, 8, ["status"])) : h1.type === "type" ? (a(), n("span", Oo, [
|
|
9979
|
-
T(
|
|
9979
|
+
T($, {
|
|
9980
9980
|
name: "server",
|
|
9981
9981
|
size: "15"
|
|
9982
9982
|
}),
|
|
9983
|
-
T(
|
|
9983
|
+
T($, {
|
|
9984
9984
|
name: "cog",
|
|
9985
9985
|
size: "14",
|
|
9986
9986
|
class: "cog"
|
|
@@ -9997,7 +9997,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
9997
9997
|
}, 1032, ["variant"]))), 128))
|
|
9998
9998
|
])) : h1.type === "sparkline" ? (a(), n("svg", Po, [
|
|
9999
9999
|
d("polyline", {
|
|
10000
|
-
points:
|
|
10000
|
+
points: K1(c1(o1, h1)),
|
|
10001
10001
|
fill: "none",
|
|
10002
10002
|
stroke: "var(--primary-alt, #3279be)",
|
|
10003
10003
|
"stroke-width": "1.5",
|
|
@@ -10010,7 +10010,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10010
10010
|
onChange: (p2) => E1(o1, h1, "switch", p2),
|
|
10011
10011
|
onClick: U[1] || (U[1] = y1(() => {
|
|
10012
10012
|
}, ["stop"]))
|
|
10013
|
-
}, null, 8, ["checked", "onChange"])) : h1.type === "icon" ? (a(), M1(
|
|
10013
|
+
}, null, 8, ["checked", "onChange"])) : h1.type === "icon" ? (a(), M1($, {
|
|
10014
10014
|
key: 11,
|
|
10015
10015
|
class: "cell-ic-btn",
|
|
10016
10016
|
name: w1(c1(o1, h1)).icon || String(c1(o1, h1)),
|
|
@@ -10026,7 +10026,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10026
10026
|
href: w1(c1(o1, h1)).href || null,
|
|
10027
10027
|
onClick: (p2) => E1(o1, h1, "link", p2)
|
|
10028
10028
|
}, [
|
|
10029
|
-
w1(c1(o1, h1)).icon ? (a(), M1(
|
|
10029
|
+
w1(c1(o1, h1)).icon ? (a(), M1($, {
|
|
10030
10030
|
key: 0,
|
|
10031
10031
|
name: w1(c1(o1, h1)).icon,
|
|
10032
10032
|
size: "14",
|
|
@@ -10041,7 +10041,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10041
10041
|
onClick: (p2) => E1(o1, h1, "button", p2)
|
|
10042
10042
|
}, {
|
|
10043
10043
|
default: e2(() => [
|
|
10044
|
-
w1(c1(o1, h1)).icon ? (a(), M1(
|
|
10044
|
+
w1(c1(o1, h1)).icon ? (a(), M1($, {
|
|
10045
10045
|
key: 0,
|
|
10046
10046
|
name: w1(c1(o1, h1)).icon,
|
|
10047
10047
|
size: "13"
|
|
@@ -10089,7 +10089,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10089
10089
|
])]),
|
|
10090
10090
|
_: 1
|
|
10091
10091
|
})
|
|
10092
|
-
])) : (a(), M1(
|
|
10092
|
+
])) : (a(), M1($, {
|
|
10093
10093
|
key: 1,
|
|
10094
10094
|
name: "pencil",
|
|
10095
10095
|
size: "14",
|
|
@@ -10119,7 +10119,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10119
10119
|
colspan: k.value,
|
|
10120
10120
|
class: "state"
|
|
10121
10121
|
}, [
|
|
10122
|
-
T(
|
|
10122
|
+
T($, {
|
|
10123
10123
|
name: "spinnerThird",
|
|
10124
10124
|
size: "20",
|
|
10125
10125
|
class: "spin"
|
|
@@ -10141,7 +10141,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10141
10141
|
title: "First",
|
|
10142
10142
|
onClick: U[5] || (U[5] = (o1) => x1(1))
|
|
10143
10143
|
}, [
|
|
10144
|
-
T(
|
|
10144
|
+
T($, {
|
|
10145
10145
|
name: "chevronDoubleLeft",
|
|
10146
10146
|
size: "12"
|
|
10147
10147
|
})
|
|
@@ -10151,7 +10151,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10151
10151
|
title: "Previous",
|
|
10152
10152
|
onClick: U[6] || (U[6] = (o1) => x1(N.value - 1))
|
|
10153
10153
|
}, [
|
|
10154
|
-
T(
|
|
10154
|
+
T($, {
|
|
10155
10155
|
name: "chevronLeft",
|
|
10156
10156
|
size: "12"
|
|
10157
10157
|
})
|
|
@@ -10166,7 +10166,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10166
10166
|
title: "Next",
|
|
10167
10167
|
onClick: U[7] || (U[7] = (o1) => x1(N.value + 1))
|
|
10168
10168
|
}, [
|
|
10169
|
-
T(
|
|
10169
|
+
T($, {
|
|
10170
10170
|
name: "chevronRight",
|
|
10171
10171
|
size: "12"
|
|
10172
10172
|
})
|
|
@@ -10176,7 +10176,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10176
10176
|
title: "Last",
|
|
10177
10177
|
onClick: U[8] || (U[8] = (o1) => x1(J.value))
|
|
10178
10178
|
}, [
|
|
10179
|
-
T(
|
|
10179
|
+
T($, {
|
|
10180
10180
|
name: "chevronDoubleRight",
|
|
10181
10181
|
size: "12"
|
|
10182
10182
|
})
|
|
@@ -10219,6 +10219,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10219
10219
|
props: {
|
|
10220
10220
|
open: { type: Boolean, default: !1 },
|
|
10221
10221
|
title: { type: String, default: "" },
|
|
10222
|
+
// header title (default variant) AND the bold heading in the confirm variant
|
|
10222
10223
|
width: { type: [Number, String], default: 560 },
|
|
10223
10224
|
variant: { type: String, default: "default" },
|
|
10224
10225
|
// default | confirm (icon + message + Cancel/action)
|
|
@@ -10241,53 +10242,53 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10241
10242
|
},
|
|
10242
10243
|
emits: ["confirm", "cancel", "close", "show", "hide"],
|
|
10243
10244
|
setup(e, { emit: t }) {
|
|
10244
|
-
const l = e, c = t, s = s2(), o = (
|
|
10245
|
-
function C(
|
|
10245
|
+
const l = e, c = t, s = s2(), o = (z) => z === !0 || z === "" || z === "true", r = (z) => z === !1 || z === "false", i = x(() => l.variant === "confirm"), p = x(() => !o(l.hideFooter)), u = /* @__PURE__ */ D(null), h = /* @__PURE__ */ D(!1), v = x(() => i.value ? { maxWidth: "calc(100vw - 48px)" } : o(l.restrictWidth) ? { width: "1020px", maxWidth: "calc(100vw - 48px)" } : { width: typeof l.width == "number" || /^\d+$/.test(String(l.width)) ? `${l.width}px` : String(l.width), maxWidth: "calc(100vw - 48px)" });
|
|
10246
|
+
function C(z) {
|
|
10246
10247
|
if (s)
|
|
10247
10248
|
try {
|
|
10248
|
-
s.open !==
|
|
10249
|
+
s.open !== z && (s.open = z);
|
|
10249
10250
|
} catch {
|
|
10250
10251
|
}
|
|
10251
10252
|
}
|
|
10252
10253
|
function g() {
|
|
10253
10254
|
h.value || (t6(S), h.value = !0, C(!0), u2(() => {
|
|
10254
|
-
const
|
|
10255
|
-
if (
|
|
10255
|
+
const z = u.value;
|
|
10256
|
+
if (z) {
|
|
10256
10257
|
try {
|
|
10257
|
-
|
|
10258
|
+
z.showModal();
|
|
10258
10259
|
} catch {
|
|
10259
|
-
|
|
10260
|
+
z.setAttribute("open", "");
|
|
10260
10261
|
}
|
|
10261
10262
|
c("show");
|
|
10262
10263
|
}
|
|
10263
10264
|
}));
|
|
10264
10265
|
}
|
|
10265
10266
|
function S() {
|
|
10266
|
-
const
|
|
10267
|
-
|
|
10267
|
+
const z = u.value;
|
|
10268
|
+
z && z.open ? z.close() : M();
|
|
10268
10269
|
}
|
|
10269
10270
|
function M() {
|
|
10270
10271
|
h.value && (h.value = !1, l6(S), C(!1), c("hide"));
|
|
10271
10272
|
}
|
|
10272
|
-
function
|
|
10273
|
-
c(
|
|
10273
|
+
function A(z) {
|
|
10274
|
+
c(z === "confirm" ? "confirm" : "cancel"), z !== "confirm-stay" && (c("close"), S());
|
|
10274
10275
|
}
|
|
10275
|
-
function N(
|
|
10276
|
-
|
|
10276
|
+
function N(z) {
|
|
10277
|
+
z.preventDefault(), !r(l.escClosable) && (c("cancel"), c("close"), S());
|
|
10277
10278
|
}
|
|
10278
|
-
function j(
|
|
10279
|
-
|
|
10279
|
+
function j(z) {
|
|
10280
|
+
z.target === u.value && o(l.maskClosable) && (c("cancel"), c("close"), S());
|
|
10280
10281
|
}
|
|
10281
|
-
return F1(() => l.open, (
|
|
10282
|
-
|
|
10282
|
+
return F1(() => l.open, (z) => {
|
|
10283
|
+
z ? g() : S();
|
|
10283
10284
|
}), k2(() => {
|
|
10284
10285
|
l.open && g();
|
|
10285
10286
|
}), x2(() => {
|
|
10286
|
-
const
|
|
10287
|
-
|
|
10287
|
+
const z = u.value;
|
|
10288
|
+
z && z.open && z.close();
|
|
10288
10289
|
}), s && (s.show = g, s.hide = () => {
|
|
10289
10290
|
c("close"), S();
|
|
10290
|
-
}), (
|
|
10291
|
+
}), (z, P) => {
|
|
10291
10292
|
const G = k1("obs-icon"), R = k1("obs-button");
|
|
10292
10293
|
return a(), n("dialog", {
|
|
10293
10294
|
ref_key: "dlg",
|
|
@@ -10308,12 +10309,12 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10308
10309
|
d("div", aa, [
|
|
10309
10310
|
e.title ? (a(), n("div", ra, H(e.title), 1)) : Z("", !0),
|
|
10310
10311
|
d("div", na, [
|
|
10311
|
-
|
|
10312
|
+
W1(z.$slots, "default")
|
|
10312
10313
|
]),
|
|
10313
10314
|
p.value ? (a(), n("div", ia, [
|
|
10314
10315
|
T(R, {
|
|
10315
10316
|
variant: "default",
|
|
10316
|
-
onClick: P[0] || (P[0] = (B) =>
|
|
10317
|
+
onClick: P[0] || (P[0] = (B) => A("cancel"))
|
|
10317
10318
|
}, {
|
|
10318
10319
|
default: e2(() => [
|
|
10319
10320
|
$1(H(e.cancelText), 1)
|
|
@@ -10323,7 +10324,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10323
10324
|
T(R, {
|
|
10324
10325
|
variant: e.confirmVariant,
|
|
10325
10326
|
outline: "",
|
|
10326
|
-
onClick: P[1] || (P[1] = (B) =>
|
|
10327
|
+
onClick: P[1] || (P[1] = (B) => A("confirm"))
|
|
10327
10328
|
}, {
|
|
10328
10329
|
default: e2(() => [
|
|
10329
10330
|
$1(H(e.confirmText), 1)
|
|
@@ -10339,7 +10340,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10339
10340
|
type: "button",
|
|
10340
10341
|
class: "x",
|
|
10341
10342
|
"aria-label": "Close",
|
|
10342
|
-
onClick: P[2] || (P[2] = (B) =>
|
|
10343
|
+
onClick: P[2] || (P[2] = (B) => A("cancel"))
|
|
10343
10344
|
}, [
|
|
10344
10345
|
T(G, {
|
|
10345
10346
|
name: "times",
|
|
@@ -10348,27 +10349,29 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10348
10349
|
])
|
|
10349
10350
|
]),
|
|
10350
10351
|
d("div", ua, [
|
|
10351
|
-
|
|
10352
|
+
W1(z.$slots, "default")
|
|
10352
10353
|
]),
|
|
10353
10354
|
p.value ? (a(), n("div", ha, [
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
|
|
10361
|
-
|
|
10362
|
-
|
|
10363
|
-
|
|
10364
|
-
|
|
10365
|
-
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
|
|
10371
|
-
|
|
10355
|
+
W1(z.$slots, "footer", {}, () => [
|
|
10356
|
+
T(R, {
|
|
10357
|
+
variant: "default",
|
|
10358
|
+
onClick: P[3] || (P[3] = (B) => A("cancel"))
|
|
10359
|
+
}, {
|
|
10360
|
+
default: e2(() => [
|
|
10361
|
+
$1(H(e.cancelText), 1)
|
|
10362
|
+
]),
|
|
10363
|
+
_: 1
|
|
10364
|
+
}),
|
|
10365
|
+
T(R, {
|
|
10366
|
+
variant: e.confirmVariant,
|
|
10367
|
+
onClick: P[4] || (P[4] = (B) => A("confirm"))
|
|
10368
|
+
}, {
|
|
10369
|
+
default: e2(() => [
|
|
10370
|
+
$1(H(e.confirmText), 1)
|
|
10371
|
+
]),
|
|
10372
|
+
_: 1
|
|
10373
|
+
}, 8, ["variant"])
|
|
10374
|
+
])
|
|
10372
10375
|
])) : Z("", !0)
|
|
10373
10376
|
], 64))
|
|
10374
10377
|
], 38);
|
|
@@ -10494,7 +10497,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10494
10497
|
role: "separator"
|
|
10495
10498
|
}, [
|
|
10496
10499
|
d("span", _a, [
|
|
10497
|
-
|
|
10500
|
+
W1(r.$slots, "default", {}, () => [
|
|
10498
10501
|
$1(H(e.text), 1)
|
|
10499
10502
|
])
|
|
10500
10503
|
])
|
|
@@ -10541,7 +10544,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10541
10544
|
d("div", Oa, [
|
|
10542
10545
|
e.title ? (a(), n("div", Ta, H(e.title), 1)) : Z("", !0),
|
|
10543
10546
|
d("div", Pa, [
|
|
10544
|
-
|
|
10547
|
+
W1(v.$slots, "default")
|
|
10545
10548
|
])
|
|
10546
10549
|
]),
|
|
10547
10550
|
o(e.closable) ? (a(), n("button", {
|
|
@@ -10639,13 +10642,13 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10639
10642
|
], 2);
|
|
10640
10643
|
};
|
|
10641
10644
|
}
|
|
10642
|
-
}, Ua = /* @__PURE__ */ T1(Na, [["styles", [Da]]]), Fa = ":host([hidden]){display:none!important}:host{display:block;height:100%}.sm{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;color:var(--page-text-color, #1d2a3e);border-right:1px solid var(--border-color, #e3e8f2);overflow:hidden;font-size:13px;background:var(--common-widget-bg, #fff)}.hd{display:flex;align-items:center}.hd:not(.seg){padding:0 12px}.tabbar{flex:1;min-width:0}.hd.seg{gap:10px;padding:10px 8px 2px}.switcher{flex:1;min-width:0}.srow{display:flex;align-items:center;gap:8px;padding:8px;--input-height-base: 35px}.sinput{flex:1;min-width:0}.rows{flex:1;overflow:auto;padding-bottom:6px;min-height:0}.row{display:flex;align-items:center;gap:8px;padding:7px 12px;cursor:pointer;text-decoration:none;color:inherit}.row.group{font-weight:500}.chev{color:var(--neutral-light, #6a7fa0);flex-shrink:0;width:14px}.r-ic{color:var(--neutral-light, #6a7fa0);flex-shrink:0}.lbl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fav{color:var(--secondary-yellow, #f5bc18);flex-shrink:0}.count{flex-shrink:0}.r-logo{flex-shrink:0;width:20px;height:20px;object-fit:contain;display:block}.pencil{color:var(--neutral-light, #6a7fa0);flex-shrink:0;visibility:hidden}.row:hover .pencil,.row.active .pencil{visibility:visible}.row:not(.active):hover{background:var(--nav-hover-bg, #ecf1f9)}.row.leaf.active{color:var(--primary, #111c2c);background:var(--code-tag-background-color, #ecf1f9)}.m-sections .row.group{padding-top:9px;padding-bottom:9px;font-size:13px}.m-sections .row.leaf{padding-top:6px;padding-bottom:6px;font-size:13px}.m-sections .row.leaf.active{box-shadow:inset 2px 0 0 var(--primary, #111c2c)}.m-categories .row.group{padding-top:9px;padding-bottom:9px;padding-right:6px;font-size:14px}.m-categories .row.leaf{padding-top:7px;padding-bottom:7px;padding-right:6px;font-size:13px}.m-tree .row.group{padding-top:6px;padding-bottom:6px;font-size:13px}.m-tree .row.group .r-ic{color:var(--primary-alt, #1d2a3e)}.m-tree .row.leaf{padding-top:5px;padding-bottom:5px;font-size:13px}.m-tree .leaf-chev{width:14px}.m-list .row{padding-top:9px;padding-bottom:9px;font-size:14px;border-bottom:1px solid var(--border-color, #e3e8f2)}.m-list .row.active{font-weight:500}", Ga = {
|
|
10645
|
+
}, Ua = /* @__PURE__ */ T1(Na, [["styles", [Da]]]), Fa = ":host([hidden]){display:none!important}:host{display:block;height:100%}.sm{display:flex;flex-direction:column;box-sizing:border-box;width:100%;height:100%;color:var(--page-text-color, #1d2a3e);border-right:1px solid var(--border-color, #e3e8f2);overflow:hidden;font-size:13px;background:var(--common-widget-bg, #fff)}.sm-logo,.sm-foot{display:block;flex:0 0 auto}.hd{display:flex;align-items:center}.hd:not(.seg){padding:0 12px}.tabbar{flex:1;min-width:0}.hd.seg{gap:10px;padding:10px 8px 2px}.switcher{flex:1;min-width:0}.srow{display:flex;align-items:center;gap:8px;padding:8px;--input-height-base: 35px}.sinput{flex:1;min-width:0}.rows{flex:1;overflow:auto;padding-bottom:6px;min-height:0}.row{display:flex;align-items:center;gap:8px;padding:7px 12px;cursor:pointer;text-decoration:none;color:inherit}.row.group{font-weight:500}.chev{color:var(--neutral-light, #6a7fa0);flex-shrink:0;width:14px}.r-ic{color:var(--neutral-light, #6a7fa0);flex-shrink:0}.lbl{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fav{color:var(--secondary-yellow, #f5bc18);flex-shrink:0}.count{flex-shrink:0}.r-logo{flex-shrink:0;width:20px;height:20px;object-fit:contain;display:block}.pencil{color:var(--neutral-light, #6a7fa0);flex-shrink:0;visibility:hidden}.row:hover .pencil,.row.active .pencil{visibility:visible}.row:not(.active):hover{background:var(--nav-hover-bg, #ecf1f9)}.row.leaf.active{color:var(--primary, #111c2c);background:var(--code-tag-background-color, #ecf1f9)}.m-sections .row.group{padding-top:9px;padding-bottom:9px;font-size:13px}.m-sections .row.leaf{padding-top:6px;padding-bottom:6px;font-size:13px}.m-sections .row.leaf.active{box-shadow:inset 2px 0 0 var(--primary, #111c2c)}.m-categories .row.group{padding-top:9px;padding-bottom:9px;padding-right:6px;font-size:14px}.m-categories .row.leaf{padding-top:7px;padding-bottom:7px;padding-right:6px;font-size:13px}.m-tree .row.group{padding-top:6px;padding-bottom:6px;font-size:13px}.m-tree .row.group .r-ic{color:var(--primary-alt, #1d2a3e)}.m-tree .row.leaf{padding-top:5px;padding-bottom:5px;font-size:13px}.m-tree .leaf-chev{width:14px}.m-list .row{padding-top:9px;padding-bottom:9px;font-size:14px;border-bottom:1px solid var(--border-color, #e3e8f2)}.m-list .row.active{font-weight:500}", Ga = { class: "sm-logo" }, Wa = {
|
|
10643
10646
|
key: 1,
|
|
10644
10647
|
class: "srow"
|
|
10645
|
-
},
|
|
10648
|
+
}, Ka = {
|
|
10646
10649
|
class: "rows",
|
|
10647
10650
|
role: "tree"
|
|
10648
|
-
},
|
|
10651
|
+
}, Ja = ["aria-expanded", "onClick"], Ya = ["src"], Qa = { class: "lbl" }, Xa = { class: "sm-foot" }, er = {
|
|
10649
10652
|
__name: "ObsSideMenu.ce",
|
|
10650
10653
|
props: {
|
|
10651
10654
|
mode: { type: String, default: "sections" },
|
|
@@ -10691,7 +10694,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10691
10694
|
J.push({ label: u1.label, icon: u1.icon || "", logo: u1.logo || "", count: u1.count, favorite: !!u1.favorite, edit: !!u1.edit, depth: d1, kids: k, open: Y, path: n1, leaf: !k }), k && Y && M(u1.children, d1 + 1, n1, J);
|
|
10692
10695
|
}
|
|
10693
10696
|
}
|
|
10694
|
-
const
|
|
10697
|
+
const A = x(() => {
|
|
10695
10698
|
const B = [];
|
|
10696
10699
|
return M(r.value, 0, "", B), B;
|
|
10697
10700
|
});
|
|
@@ -10703,7 +10706,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10703
10706
|
F1(() => l.active, (B) => {
|
|
10704
10707
|
j.value = B;
|
|
10705
10708
|
});
|
|
10706
|
-
function
|
|
10709
|
+
function z(B) {
|
|
10707
10710
|
B.kids ? h[B.path] = !h[B.path] : (j.value = B.label, c("select", { label: B.label }));
|
|
10708
10711
|
}
|
|
10709
10712
|
function P(B) {
|
|
@@ -10721,6 +10724,9 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10721
10724
|
return a(), n("div", {
|
|
10722
10725
|
class: q(["sm", "m-" + e.mode])
|
|
10723
10726
|
}, [
|
|
10727
|
+
d("div", Ga, [
|
|
10728
|
+
W1(B.$slots, "logo")
|
|
10729
|
+
]),
|
|
10724
10730
|
i.value.length ? (a(), n("div", {
|
|
10725
10731
|
key: 0,
|
|
10726
10732
|
class: q(["hd", { seg: e.tabStyle === "segmented" }])
|
|
@@ -10739,9 +10745,9 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10739
10745
|
value: p.value,
|
|
10740
10746
|
onChange: R
|
|
10741
10747
|
}, null, 8, ["tabs", "value"])),
|
|
10742
|
-
|
|
10748
|
+
W1(B.$slots, "tabs-action")
|
|
10743
10749
|
], 2)) : Z("", !0),
|
|
10744
|
-
s(e.search) ? (a(), n("div",
|
|
10750
|
+
s(e.search) ? (a(), n("div", Wa, [
|
|
10745
10751
|
T(e1, {
|
|
10746
10752
|
class: "sinput",
|
|
10747
10753
|
type: "text",
|
|
@@ -10750,16 +10756,16 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10750
10756
|
placeholder: e.placeholder,
|
|
10751
10757
|
onInput: P
|
|
10752
10758
|
}, null, 8, ["placeholder"]),
|
|
10753
|
-
|
|
10759
|
+
W1(B.$slots, "search-action")
|
|
10754
10760
|
])) : Z("", !0),
|
|
10755
|
-
d("div",
|
|
10756
|
-
(a(!0), n(O, null, v1(
|
|
10761
|
+
d("div", Ka, [
|
|
10762
|
+
(a(!0), n(O, null, v1(A.value, (Y) => (a(), n("div", {
|
|
10757
10763
|
key: Y.path,
|
|
10758
10764
|
class: q(["row", { group: Y.kids, leaf: Y.leaf, active: Y.leaf && Y.label === j.value }]),
|
|
10759
10765
|
style: S1({ paddingLeft: N(Y) + "px" }),
|
|
10760
10766
|
role: "treeitem",
|
|
10761
10767
|
"aria-expanded": Y.kids ? String(Y.open) : null,
|
|
10762
|
-
onClick: (L1) =>
|
|
10768
|
+
onClick: (L1) => z(Y)
|
|
10763
10769
|
}, [
|
|
10764
10770
|
Y.kids ? (a(), M1(u1, {
|
|
10765
10771
|
key: 0,
|
|
@@ -10784,7 +10790,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10784
10790
|
src: Y.logo,
|
|
10785
10791
|
class: "r-logo",
|
|
10786
10792
|
alt: ""
|
|
10787
|
-
}, null, 8,
|
|
10793
|
+
}, null, 8, Ya)) : (a(), M1(n1, {
|
|
10788
10794
|
key: 1,
|
|
10789
10795
|
name: Y.logo,
|
|
10790
10796
|
size: "20",
|
|
@@ -10796,7 +10802,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10796
10802
|
size: Y.kids ? 19 : 16,
|
|
10797
10803
|
class: "r-ic"
|
|
10798
10804
|
}, null, 8, ["name", "size"])) : Z("", !0),
|
|
10799
|
-
d("span",
|
|
10805
|
+
d("span", Qa, H(Y.label), 1),
|
|
10800
10806
|
Y.count != null && Y.count !== "" ? (a(), M1(k, {
|
|
10801
10807
|
key: 5,
|
|
10802
10808
|
class: "count",
|
|
@@ -10814,15 +10820,18 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10814
10820
|
size: "12",
|
|
10815
10821
|
class: "pencil"
|
|
10816
10822
|
})) : Z("", !0)
|
|
10817
|
-
], 14,
|
|
10823
|
+
], 14, Ja))), 128))
|
|
10824
|
+
]),
|
|
10825
|
+
d("div", Xa, [
|
|
10826
|
+
W1(B.$slots, "default")
|
|
10818
10827
|
])
|
|
10819
10828
|
], 2);
|
|
10820
10829
|
};
|
|
10821
10830
|
}
|
|
10822
|
-
},
|
|
10831
|
+
}, tr = /* @__PURE__ */ T1(er, [["styles", [Fa]]]), lr = ":host([hidden]){display:none!important}:host{display:inline-block;position:relative;flex:0 0 auto;width:65px;height:100%;z-index:40}.sb{position:absolute;top:0;left:0;box-sizing:border-box;display:flex;flex-direction:column;width:65px;height:100%;min-height:var(--sidebar-min-height, 620px);padding-top:4px;background:var(--nav-panel-bg, #f6f9fc);color:var(--nav-text-color, #1d2a3e);box-shadow:2px 0 8px var(--nav-shadow-color, rgba(70, 70, 70, .08));transition:width .15s;overflow:hidden}.sb.expanded{width:170px}.logo{position:relative;z-index:1;display:flex;align-items:center;height:53px;margin:0 8px 8px;padding-left:13px;gap:10px;text-decoration:none;color:inherit;white-space:nowrap;flex-shrink:0}.sb:not(.expanded) .logo{justify-content:center;padding-left:0}.mark{display:inline-flex;align-items:center;flex-shrink:0}.mark .mk{width:26px;height:26px;display:block}.mark ::slotted(img){width:26px;height:26px;display:block}.name{font-size:13px;font-weight:400;color:var(--page-text-color, #1d2a3e)}.items{position:relative;z-index:1;display:flex;flex-direction:column;flex:1;min-height:0}.item{display:flex;align-items:center;height:40px;margin:0 8px 8px;padding-left:17px;gap:14px;border-radius:6px;text-decoration:none;white-space:nowrap;color:var(--nav-text-color, #1d2a3e);flex-shrink:0;cursor:pointer}.sb:not(.expanded) .item{justify-content:center;padding-left:0;gap:0}.item:hover:not(.active){background:var(--nav-hover-bg, #ecf1f9)}.item.active{background:var(--primary-alt, #1d2a3e);color:var(--nav-selected-text-color, #f6f9fc)}.ic{flex-shrink:0}.lbl{display:inline-flex;align-items:center;font-size:13px;gap:8px}.beta{font-size:9px;padding:2px 7px;border-radius:5px;background:var(--code-tag-background-color, #ecf1f9);color:var(--nav-text-color, #1d2a3e);letter-spacing:.5px}.blobs{position:absolute;z-index:0;right:-48px;bottom:-52px;width:236px;height:236px;pointer-events:none;opacity:.5;filter:blur(7px);background:radial-gradient(circle 88px at 150px 138px,var(--secondary-green, #89c540) 0%,var(--secondary-green, #89c540) 24%,transparent 72%),radial-gradient(circle 54px at 96px 96px,var(--secondary-yellow, #f5bc18) 0%,var(--secondary-orange, #f58518) 52%,transparent 78%)}", cr = { class: "mark" }, sr = { class: "items" }, or = ["aria-current", "onClick"], ar = { class: "lbl" }, rr = {
|
|
10823
10832
|
key: 0,
|
|
10824
10833
|
class: "beta"
|
|
10825
|
-
},
|
|
10834
|
+
}, nr = {
|
|
10826
10835
|
__name: "ObsSidebar.ce",
|
|
10827
10836
|
props: {
|
|
10828
10837
|
items: { type: [String, Array], default: "" },
|
|
@@ -10856,8 +10865,8 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10856
10865
|
onClick: h[0] || (h[0] = y1(() => {
|
|
10857
10866
|
}, ["prevent"]))
|
|
10858
10867
|
}, [
|
|
10859
|
-
d("span",
|
|
10860
|
-
|
|
10868
|
+
d("span", cr, [
|
|
10869
|
+
W1(u.$slots, "logo", {}, () => [
|
|
10861
10870
|
T(v, {
|
|
10862
10871
|
name: "motadata",
|
|
10863
10872
|
size: "26",
|
|
@@ -10869,7 +10878,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10869
10878
|
[r4, r.value]
|
|
10870
10879
|
])
|
|
10871
10880
|
]),
|
|
10872
|
-
d("div",
|
|
10881
|
+
d("div", sr, [
|
|
10873
10882
|
(a(!0), n(O, null, v1(i.value, (g) => (a(), n("a", {
|
|
10874
10883
|
key: g.key,
|
|
10875
10884
|
class: q(["item", { active: g.key === e.active }]),
|
|
@@ -10882,13 +10891,13 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10882
10891
|
size: "18",
|
|
10883
10892
|
class: "ic"
|
|
10884
10893
|
}, null, 8, ["name"]),
|
|
10885
|
-
H2(d("span",
|
|
10894
|
+
H2(d("span", ar, [
|
|
10886
10895
|
$1(H(g.label), 1),
|
|
10887
|
-
g.beta ? (a(), n("span",
|
|
10896
|
+
g.beta ? (a(), n("span", rr, "BETA")) : Z("", !0)
|
|
10888
10897
|
], 512), [
|
|
10889
10898
|
[r4, r.value]
|
|
10890
10899
|
])
|
|
10891
|
-
], 10,
|
|
10900
|
+
], 10, or))), 128))
|
|
10892
10901
|
]),
|
|
10893
10902
|
h[3] || (h[3] = d("span", {
|
|
10894
10903
|
class: "blobs",
|
|
@@ -10897,10 +10906,10 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10897
10906
|
], 34);
|
|
10898
10907
|
};
|
|
10899
10908
|
}
|
|
10900
|
-
},
|
|
10909
|
+
}, ir = /* @__PURE__ */ T1(nr, [["styles", [lr]]]), dr = ":host([hidden]){display:none!important}button{font-family:inherit}:host{display:block}.tabs{color:var(--page-text-color, #1d2a3e)}.bar{display:flex;align-items:flex-end;position:relative;border-bottom:1px solid var(--border-color, #e3e8f2)}.tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;outline:0;padding:12px 0 8px;margin:0 20px -1px 0;border-bottom:4px solid transparent;font-family:inherit;font-size:.8rem;font-weight:400;line-height:1.5;text-align:start;color:var(--tabs-text-color, #516381);cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;transition:color .3s cubic-bezier(.645,.045,.355,1)}.tab:last-child{margin-right:0}.tab:hover:not(.disabled){color:var(--primary, #111c2c);border-bottom-color:var(--primary, #111c2c)}.tab.active{color:var(--primary, #111c2c);font-weight:500;border-bottom-color:var(--primary, #111c2c)}.tab.disabled{color:var(--neutral-light, #a5bad0);cursor:not-allowed}.tab .ic{display:inline-flex}.tab .lbl{display:inline-grid}.tab .lbl:after{content:attr(data-label);font-weight:500;height:0;visibility:hidden;overflow:hidden;pointer-events:none}.body{color:var(--page-text-color, #1d2a3e)}.tab-x{display:inline-flex;margin-left:2px;padding:2px;border-radius:3px;color:var(--neutral-light, #6a7fa0)}.tab-x:hover{color:var(--secondary-red, #ec5b5b);background:var(--neutral-lightest, #f4f6fa)}.tab-add{margin:0 0 3px auto;align-self:center}.v-no-border .bar{border-bottom-color:transparent}.v-sticky .bar{position:sticky;top:0;z-index:2;background:var(--page-background-color, #fff)}.v-grey .bar{background:var(--neutral-lightest, #f4f6fa)}", pr = {
|
|
10901
10910
|
class: "bar",
|
|
10902
10911
|
role: "tablist"
|
|
10903
|
-
},
|
|
10912
|
+
}, ur = ["aria-selected", "disabled", "onClick"], hr = ["data-label"], vr = ["onClick"], fr = { class: "body" }, Cr = {
|
|
10904
10913
|
__name: "ObsTabs.ce",
|
|
10905
10914
|
props: {
|
|
10906
10915
|
tabs: { type: String, default: "" },
|
|
@@ -10923,37 +10932,37 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10923
10932
|
if (!M) return [];
|
|
10924
10933
|
if (M[0] === "[")
|
|
10925
10934
|
try {
|
|
10926
|
-
return JSON.parse(M).map((
|
|
10927
|
-
if (
|
|
10935
|
+
return JSON.parse(M).map((A, N) => {
|
|
10936
|
+
if (A && typeof A == "object" && A.key == null && A.value == null && A.label == null && A.text == null && A.name == null)
|
|
10928
10937
|
try {
|
|
10929
|
-
console.warn("obs-tabs: unrecognised tab shape",
|
|
10938
|
+
console.warn("obs-tabs: unrecognised tab shape", A, "— expected {key|value, label|text}");
|
|
10930
10939
|
} catch {
|
|
10931
10940
|
}
|
|
10932
10941
|
return {
|
|
10933
|
-
key: String(
|
|
10934
|
-
label: String(
|
|
10935
|
-
count:
|
|
10936
|
-
icon:
|
|
10937
|
-
disabled:
|
|
10942
|
+
key: String(A.key ?? A.value ?? A.label ?? A.text ?? N),
|
|
10943
|
+
label: String(A.label ?? A.text ?? A.name ?? A.key ?? A.value ?? ""),
|
|
10944
|
+
count: A.count === 0 || A.count ? A.count : null,
|
|
10945
|
+
icon: A.icon || "",
|
|
10946
|
+
disabled: A.disabled === !0 || A.disabled === "true"
|
|
10938
10947
|
};
|
|
10939
10948
|
});
|
|
10940
10949
|
} catch {
|
|
10941
10950
|
return [];
|
|
10942
10951
|
}
|
|
10943
|
-
return M.split(",").map((
|
|
10952
|
+
return M.split(",").map((A) => A.trim()).filter(Boolean).map((A) => ({ key: A, label: A, count: null, icon: "", disabled: !1 }));
|
|
10944
10953
|
}), u = /* @__PURE__ */ D(l.value || p.value[0] && p.value[0].key || "");
|
|
10945
10954
|
F1(() => l.value, (M) => {
|
|
10946
10955
|
M && (u.value = M);
|
|
10947
10956
|
}), F1(p, (M) => {
|
|
10948
|
-
!M.some((
|
|
10957
|
+
!M.some((A) => A.key === u.value) && M[0] && (u.value = M[0].key);
|
|
10949
10958
|
});
|
|
10950
|
-
function h(M,
|
|
10959
|
+
function h(M, A) {
|
|
10951
10960
|
if (u.value = M, o)
|
|
10952
10961
|
try {
|
|
10953
10962
|
o.value = M;
|
|
10954
10963
|
} catch {
|
|
10955
10964
|
}
|
|
10956
|
-
if (
|
|
10965
|
+
if (A && l.persistKey)
|
|
10957
10966
|
try {
|
|
10958
10967
|
localStorage.setItem(i(), M);
|
|
10959
10968
|
} catch {
|
|
@@ -10963,7 +10972,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10963
10972
|
if (l.persistKey)
|
|
10964
10973
|
try {
|
|
10965
10974
|
const M = localStorage.getItem(i());
|
|
10966
|
-
M && p.value.some((
|
|
10975
|
+
M && p.value.some((A) => A.key === M) && h(M, !1);
|
|
10967
10976
|
} catch {
|
|
10968
10977
|
}
|
|
10969
10978
|
});
|
|
@@ -10971,55 +10980,55 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
10971
10980
|
M.disabled || M.key === u.value || (h(M.key, !0), c("change", M.key));
|
|
10972
10981
|
}
|
|
10973
10982
|
const C = x(() => s(l.closable) && p.value.length > 1), g = x(() => s(l.addable));
|
|
10974
|
-
function S(M,
|
|
10975
|
-
|
|
10983
|
+
function S(M, A) {
|
|
10984
|
+
A.stopPropagation(), c("close", M.key);
|
|
10976
10985
|
}
|
|
10977
|
-
return (M,
|
|
10986
|
+
return (M, A) => {
|
|
10978
10987
|
const N = k1("obs-icon"), j = k1("obs-button");
|
|
10979
10988
|
return a(), n("div", {
|
|
10980
10989
|
class: q(["tabs", ["v-" + (e.variant || "line")]])
|
|
10981
10990
|
}, [
|
|
10982
|
-
d("div",
|
|
10983
|
-
(a(!0), n(O, null, v1(p.value, (
|
|
10984
|
-
key:
|
|
10985
|
-
class: q(["tab", { active:
|
|
10991
|
+
d("div", pr, [
|
|
10992
|
+
(a(!0), n(O, null, v1(p.value, (z) => (a(), n("button", {
|
|
10993
|
+
key: z.key,
|
|
10994
|
+
class: q(["tab", { active: z.key === u.value, disabled: z.disabled }]),
|
|
10986
10995
|
role: "tab",
|
|
10987
10996
|
type: "button",
|
|
10988
|
-
"aria-selected":
|
|
10989
|
-
disabled:
|
|
10990
|
-
onClick: (P) => v(
|
|
10997
|
+
"aria-selected": z.key === u.value,
|
|
10998
|
+
disabled: z.disabled,
|
|
10999
|
+
onClick: (P) => v(z)
|
|
10991
11000
|
}, [
|
|
10992
|
-
|
|
11001
|
+
z.icon ? (a(), M1(N, {
|
|
10993
11002
|
key: 0,
|
|
10994
|
-
name:
|
|
11003
|
+
name: z.icon,
|
|
10995
11004
|
size: "14",
|
|
10996
11005
|
class: "ic",
|
|
10997
11006
|
"aria-hidden": "true"
|
|
10998
11007
|
}, null, 8, ["name"])) : Z("", !0),
|
|
10999
11008
|
d("span", {
|
|
11000
11009
|
class: "lbl",
|
|
11001
|
-
"data-label": r(
|
|
11002
|
-
}, H(r(
|
|
11010
|
+
"data-label": r(z)
|
|
11011
|
+
}, H(r(z)), 9, hr),
|
|
11003
11012
|
C.value ? (a(), n("span", {
|
|
11004
11013
|
key: 1,
|
|
11005
11014
|
class: "tab-x",
|
|
11006
11015
|
role: "button",
|
|
11007
11016
|
"aria-label": "Close tab",
|
|
11008
|
-
onClick: (P) => S(
|
|
11017
|
+
onClick: (P) => S(z, P)
|
|
11009
11018
|
}, [
|
|
11010
11019
|
T(N, {
|
|
11011
11020
|
name: "times",
|
|
11012
11021
|
size: "10"
|
|
11013
11022
|
})
|
|
11014
|
-
], 8,
|
|
11015
|
-
], 10,
|
|
11023
|
+
], 8, vr)) : Z("", !0)
|
|
11024
|
+
], 10, ur))), 128)),
|
|
11016
11025
|
g.value ? (a(), M1(j, {
|
|
11017
11026
|
key: 0,
|
|
11018
11027
|
class: "tab-add",
|
|
11019
11028
|
variant: "neutral-lightest",
|
|
11020
11029
|
size: "small",
|
|
11021
11030
|
"aria-label": "Add",
|
|
11022
|
-
onClick:
|
|
11031
|
+
onClick: A[0] || (A[0] = (z) => c("add"))
|
|
11023
11032
|
}, {
|
|
11024
11033
|
default: e2(() => [
|
|
11025
11034
|
T(N, {
|
|
@@ -11030,33 +11039,33 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11030
11039
|
_: 1
|
|
11031
11040
|
})) : Z("", !0)
|
|
11032
11041
|
]),
|
|
11033
|
-
d("div",
|
|
11034
|
-
(a(!0), n(O, null, v1(p.value, (
|
|
11035
|
-
key:
|
|
11042
|
+
d("div", fr, [
|
|
11043
|
+
(a(!0), n(O, null, v1(p.value, (z) => H2((a(), n("div", {
|
|
11044
|
+
key: z.key,
|
|
11036
11045
|
class: "pane",
|
|
11037
11046
|
role: "tabpanel"
|
|
11038
11047
|
}, [
|
|
11039
|
-
|
|
11048
|
+
W1(M.$slots, z.key)
|
|
11040
11049
|
])), [
|
|
11041
|
-
[r4,
|
|
11050
|
+
[r4, z.key === u.value]
|
|
11042
11051
|
])), 128))
|
|
11043
11052
|
])
|
|
11044
11053
|
], 2);
|
|
11045
11054
|
};
|
|
11046
11055
|
}
|
|
11047
|
-
},
|
|
11056
|
+
}, gr = /* @__PURE__ */ T1(Cr, [["styles", [dr]]]), mr = ":host([hidden]){display:none!important}:host{display:block}.st{display:flex;color:var(--page-text-color, #1d2a3e);font-size:13px;--step-done: var(--primary, #099dd9)}.st.done-green{--step-done: var(--secondary-green, #21b573)}.st.d-horizontal{flex-direction:row;align-items:center}.st.d-vertical{flex-direction:column}.step{display:flex;min-width:0}.st.d-horizontal .step{flex:1;flex-direction:row;align-items:center;gap:0}.st.d-horizontal .step.last{flex:0 0 auto}.st.d-horizontal .marker{margin-right:10px}.st.d-vertical .step{flex-direction:row;align-items:flex-start;gap:12px}.rail{position:relative;display:flex;align-items:center;flex-shrink:0}.st.d-vertical .rail{flex-direction:column;align-self:stretch}.marker{display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:50%;font-weight:500;flex-shrink:0;transition:box-shadow .3s,background-color .3s,border-color .3s;z-index:1;border:1px solid var(--border-color, #e3e8f2);color:var(--neutral-regular, #64769a);background:var(--neutral-lightest, #f3f5f9)}.st.s-default .marker{width:32px;height:32px;font-size:14px}.st.s-small .marker{width:24px;height:24px;font-size:12px}.v-dot .marker{width:10px!important;height:10px!important;border-width:0;background:var(--neutral-light, #8e9fbc)}.line{background:var(--border-color, #e3e8f2)}.hline{flex:1;height:1px;min-width:16px;margin-left:8px}.vline{width:1px;flex:1;margin:4px 0;min-height:20px;align-self:center}.body{display:flex;flex-direction:column;min-width:0;gap:2px}.st.d-vertical .body{padding-bottom:12px}.title{font-weight:500;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.desc{color:var(--neutral-light, #8e9fbc);font-size:12px;line-height:1.3;white-space:normal}.step.is-wait .marker{background:var(--neutral-lightest, #f3f5f9);border-color:var(--border-color, #e3e8f2);color:var(--neutral-light, #8e9fbc)}.step.is-wait .title{color:var(--neutral-light, #8e9fbc)}.step.is-process .marker{border-color:var(--primary, #099dd9);background:var(--primary, #099dd9);color:var(--primary-button-text, #fff);box-shadow:0 0 0 3px var(--neutral-lighter, #dfe5ef)}.step.is-process .title{color:var(--page-text-color, #1d2a3e);font-weight:600}.step.is-finish .marker{border-color:var(--step-done);background:var(--step-done);color:var(--primary-button-text, #fff)}.step.is-finish .title{color:var(--page-text-color, #1d2a3e)}.step.is-error .marker{border-color:var(--secondary-red, #e0464d);background:var(--secondary-red, #e0464d);color:var(--primary-button-text, #fff)}.step.is-error .title{color:var(--secondary-red, #e0464d)}.st.f-outline .marker{background:var(--page-background-color, #fff)}.st.f-outline .step.is-wait .marker{background:var(--page-background-color, #fff);border-color:var(--neutral-regular, #64769a);color:var(--neutral-light, #8e9fbc)}.st.f-outline .step.is-process .marker{background:var(--page-background-color, #fff);border-color:var(--primary, #099dd9);color:var(--primary, #099dd9)}.st.f-outline .step.is-finish .marker{background:var(--page-background-color, #fff);border-color:var(--step-done);color:var(--step-done)}.st.f-outline .step.is-error .marker{background:var(--page-background-color, #fff);border-color:var(--secondary-red, #e0464d);color:var(--secondary-red, #e0464d)}.v-dot .step.is-process .marker{background:var(--primary, #099dd9)}.v-dot .step.is-finish .marker{background:var(--step-done)}.v-dot .step.is-error .marker{background:var(--secondary-red, #e0464d)}.st.c-none .line{background:transparent}.st.compact.d-vertical .rail{align-self:auto}.st.compact.d-vertical .vline{min-height:16px}.st.clk .step.nav{cursor:pointer}.st.clk .step.nav:hover .title{color:var(--primary, #099dd9)}.st.clk .step:not(.nav){cursor:not-allowed}", br = ["aria-current", "onClick"], xr = { class: "rail" }, yr = { class: "marker" }, Zr = {
|
|
11048
11057
|
key: 0,
|
|
11049
11058
|
class: "line vline"
|
|
11050
|
-
},
|
|
11059
|
+
}, wr = {
|
|
11051
11060
|
key: 0,
|
|
11052
11061
|
class: "body"
|
|
11053
|
-
},
|
|
11062
|
+
}, Mr = { class: "title" }, kr = {
|
|
11054
11063
|
key: 0,
|
|
11055
11064
|
class: "desc"
|
|
11056
|
-
},
|
|
11065
|
+
}, Hr = {
|
|
11057
11066
|
key: 1,
|
|
11058
11067
|
class: "line hline"
|
|
11059
|
-
},
|
|
11068
|
+
}, Vr = {
|
|
11060
11069
|
__name: "ObsSteps.ce",
|
|
11061
11070
|
props: {
|
|
11062
11071
|
items: { type: [String, Array], default: "" },
|
|
@@ -11108,50 +11117,50 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11108
11117
|
class: q(["st", ["d-" + e.direction, "v-" + e.variant, "s-" + e.size, "f-" + e.fill, "c-" + e.connector, "done-" + e.completed, { clk: u.value, compact: h.value }]]),
|
|
11109
11118
|
role: "list"
|
|
11110
11119
|
}, [
|
|
11111
|
-
(a(!0), n(O, null, v1(r.value, (M,
|
|
11112
|
-
key:
|
|
11113
|
-
class: q(["step", ["is-" + p(
|
|
11120
|
+
(a(!0), n(O, null, v1(r.value, (M, A) => (a(), n("div", {
|
|
11121
|
+
key: A,
|
|
11122
|
+
class: q(["step", ["is-" + p(A), { last: A === r.value.length - 1, nav: u.value && A <= i.value }]]),
|
|
11114
11123
|
role: "listitem",
|
|
11115
|
-
"aria-current":
|
|
11116
|
-
onClick: (N) => v(
|
|
11124
|
+
"aria-current": A === i.value ? "step" : null,
|
|
11125
|
+
onClick: (N) => v(A)
|
|
11117
11126
|
}, [
|
|
11118
|
-
d("div",
|
|
11119
|
-
d("span",
|
|
11120
|
-
p(
|
|
11127
|
+
d("div", xr, [
|
|
11128
|
+
d("span", yr, [
|
|
11129
|
+
p(A) === "finish" && e.variant === "number" ? (a(), M1(S, {
|
|
11121
11130
|
key: 0,
|
|
11122
11131
|
name: "check",
|
|
11123
11132
|
size: "12",
|
|
11124
11133
|
class: "ck"
|
|
11125
|
-
})) : p(
|
|
11134
|
+
})) : p(A) === "error" && e.variant === "number" ? (a(), M1(S, {
|
|
11126
11135
|
key: 1,
|
|
11127
11136
|
name: "times",
|
|
11128
11137
|
size: "12",
|
|
11129
11138
|
class: "ck"
|
|
11130
11139
|
})) : e.variant === "number" ? (a(), n(O, { key: 2 }, [
|
|
11131
|
-
$1(H(
|
|
11140
|
+
$1(H(A + 1), 1)
|
|
11132
11141
|
], 64)) : Z("", !0)
|
|
11133
11142
|
]),
|
|
11134
|
-
e.direction === "vertical" &&
|
|
11143
|
+
e.direction === "vertical" && A !== r.value.length - 1 ? (a(), n("span", Zr)) : Z("", !0)
|
|
11135
11144
|
]),
|
|
11136
|
-
h.value ? Z("", !0) : (a(), n("div",
|
|
11137
|
-
d("span",
|
|
11138
|
-
M.description ? (a(), n("span",
|
|
11145
|
+
h.value ? Z("", !0) : (a(), n("div", wr, [
|
|
11146
|
+
d("span", Mr, H(M.label), 1),
|
|
11147
|
+
M.description ? (a(), n("span", kr, H(M.description), 1)) : Z("", !0)
|
|
11139
11148
|
])),
|
|
11140
|
-
e.direction === "horizontal" &&
|
|
11141
|
-
], 10,
|
|
11149
|
+
e.direction === "horizontal" && A !== r.value.length - 1 ? (a(), n("span", Hr)) : Z("", !0)
|
|
11150
|
+
], 10, br))), 128))
|
|
11142
11151
|
], 2);
|
|
11143
11152
|
};
|
|
11144
11153
|
}
|
|
11145
|
-
},
|
|
11154
|
+
}, Lr = /* @__PURE__ */ T1(Vr, [["styles", [mr]]]), _r = ':host([hidden]){display:none!important}button,a{font-family:inherit}:host{font-family:var(--font-family, "Poppins", sans-serif);display:inline-block}.um{display:inline-block}.avatar{width:32px;height:32px;border:0;border-radius:50%;padding:0;cursor:pointer;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:var(--primary, #111c2c);color:var(--white-regular, #fff);font-size:12px;font-weight:600;transition:box-shadow .15s}.avatar.act{box-shadow:0 0 0 3px var(--neutral-lighter, #dfe5ef)}.ava-img{width:100%;height:100%;object-fit:cover}.ava-txt{line-height:1}.panel{padding:5px;background:var(--page-background-color, #fff);border:1px solid var(--border-color, #e3e8f2);border-radius:8px;box-shadow:0 6px 20px var(--neutral-shadow-light, rgba(29, 42, 62, .14));color:var(--page-text-color, #1d2a3e);font-size:.8rem;--divider-my: 5px}.panel[popover]{margin:0;inset:auto;overflow:visible}.uhead{display:flex;align-items:center;gap:10px;padding:6px 8px}.uh-ava{width:32px;height:32px;border-radius:50%;flex:0 0 auto;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:var(--primary, #111c2c);color:var(--white-regular, #fff);font-size:13px;font-weight:600}.uh-ava img{width:100%;height:100%;object-fit:cover}.uh-txt{display:flex;flex-direction:column;min-width:0}.uh-name{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uh-sub{color:var(--neutral-light, #6a7fa0);font-size:.72rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ugroup{display:flex;flex-direction:column}.urow{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;padding:7px 8px;border:0;border-radius:5px;background:transparent;color:var(--page-text-color, #1d2a3e);font-size:.8rem;text-align:left;text-decoration:none;cursor:pointer}.urow:hover{background:var(--neutral-lighter, #e3e8f2)}.urow.danger{color:var(--secondary-red, #ec5b5b)}.uico{flex:0 0 auto}.ulbl{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.udiv{display:block}.tsw{display:block;width:100%;box-sizing:border-box;padding:2px 4px}', Sr = ["aria-expanded"], zr = ["src"], $r = {
|
|
11146
11155
|
key: 1,
|
|
11147
11156
|
class: "ava-txt"
|
|
11148
|
-
},
|
|
11157
|
+
}, Ar = {
|
|
11149
11158
|
key: 0,
|
|
11150
11159
|
class: "uhead"
|
|
11151
|
-
},
|
|
11160
|
+
}, Or = { class: "uh-ava" }, Tr = ["src"], Pr = { key: 1 }, Br = { class: "uh-txt" }, Er = { class: "uh-name" }, Dr = {
|
|
11152
11161
|
key: 0,
|
|
11153
11162
|
class: "uh-sub"
|
|
11154
|
-
},
|
|
11163
|
+
}, Rr = { class: "ugroup" }, qr = ["href", "onClick"], jr = { class: "ulbl" }, Ir = ["onClick"], Nr = { class: "ulbl" }, Ur = { class: "ugroup" }, Fr = { class: "ulbl" }, Gr = {
|
|
11155
11164
|
__name: "ObsUserMenu.ce",
|
|
11156
11165
|
props: {
|
|
11157
11166
|
name: { type: String, default: "" },
|
|
@@ -11219,10 +11228,10 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11219
11228
|
n1 && (u.value = n1, M(n1));
|
|
11220
11229
|
}
|
|
11221
11230
|
});
|
|
11222
|
-
const
|
|
11223
|
-
function
|
|
11231
|
+
const A = /* @__PURE__ */ D(null), N = /* @__PURE__ */ D(null), j = /* @__PURE__ */ D({});
|
|
11232
|
+
function z() {
|
|
11224
11233
|
u2(() => {
|
|
11225
|
-
const n1 =
|
|
11234
|
+
const n1 = A.value && A.value.getBoundingClientRect();
|
|
11226
11235
|
if (!n1) return;
|
|
11227
11236
|
const k = 240, Y = l.placement !== "bottom-start", L1 = Math.round(Y ? n1.right - k : n1.left);
|
|
11228
11237
|
j.value = { position: "fixed", inset: "auto", margin: "0", left: `${Math.max(8, L1)}px`, top: `${Math.round(n1.bottom + 6)}px`, minWidth: `${k}px` };
|
|
@@ -11235,7 +11244,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11235
11244
|
});
|
|
11236
11245
|
}
|
|
11237
11246
|
function P() {
|
|
11238
|
-
p.value = !0, c("show"),
|
|
11247
|
+
p.value = !0, c("show"), z();
|
|
11239
11248
|
}
|
|
11240
11249
|
function G() {
|
|
11241
11250
|
if (!p.value) return;
|
|
@@ -11269,7 +11278,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11269
11278
|
function e1(n1) {
|
|
11270
11279
|
if (!p.value) return;
|
|
11271
11280
|
const k = n1.composedPath ? n1.composedPath() : [];
|
|
11272
|
-
k.includes(
|
|
11281
|
+
k.includes(A.value) || k.includes(N.value) || G();
|
|
11273
11282
|
}
|
|
11274
11283
|
function u1(n1) {
|
|
11275
11284
|
n1.key === "Escape" && G();
|
|
@@ -11280,7 +11289,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11280
11289
|
const Y = k1("obs-divider"), L1 = k1("obs-icon"), f1 = k1("obs-radio");
|
|
11281
11290
|
return a(), n("div", {
|
|
11282
11291
|
ref_key: "rootRef",
|
|
11283
|
-
ref:
|
|
11292
|
+
ref: A,
|
|
11284
11293
|
class: "um"
|
|
11285
11294
|
}, [
|
|
11286
11295
|
d("button", {
|
|
@@ -11295,8 +11304,8 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11295
11304
|
src: e.avatar,
|
|
11296
11305
|
alt: "",
|
|
11297
11306
|
class: "ava-img"
|
|
11298
|
-
}, null, 8,
|
|
11299
|
-
], 10,
|
|
11307
|
+
}, null, 8, zr)) : (a(), n("span", $r, H(i.value || "?"), 1))
|
|
11308
|
+
], 10, Sr),
|
|
11300
11309
|
p.value ? (a(), n("div", {
|
|
11301
11310
|
key: 0,
|
|
11302
11311
|
ref_key: "panelRef",
|
|
@@ -11306,24 +11315,24 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11306
11315
|
style: S1(j.value),
|
|
11307
11316
|
role: "menu"
|
|
11308
11317
|
}, [
|
|
11309
|
-
e.name || e.subtitle ? (a(), n("div",
|
|
11310
|
-
d("span",
|
|
11318
|
+
e.name || e.subtitle ? (a(), n("div", Ar, [
|
|
11319
|
+
d("span", Or, [
|
|
11311
11320
|
e.avatar ? (a(), n("img", {
|
|
11312
11321
|
key: 0,
|
|
11313
11322
|
src: e.avatar,
|
|
11314
11323
|
alt: ""
|
|
11315
|
-
}, null, 8,
|
|
11324
|
+
}, null, 8, Tr)) : (a(), n("span", Pr, H(i.value || "?"), 1))
|
|
11316
11325
|
]),
|
|
11317
|
-
d("span",
|
|
11318
|
-
d("span",
|
|
11319
|
-
e.subtitle ? (a(), n("span",
|
|
11326
|
+
d("span", Br, [
|
|
11327
|
+
d("span", Er, H(e.name), 1),
|
|
11328
|
+
e.subtitle ? (a(), n("span", Dr, H(e.subtitle), 1)) : Z("", !0)
|
|
11320
11329
|
])
|
|
11321
11330
|
])) : Z("", !0),
|
|
11322
11331
|
e.name || e.subtitle ? (a(), M1(Y, {
|
|
11323
11332
|
key: 1,
|
|
11324
11333
|
class: "udiv"
|
|
11325
11334
|
})) : Z("", !0),
|
|
11326
|
-
d("div",
|
|
11335
|
+
d("div", Rr, [
|
|
11327
11336
|
(a(!0), n(O, null, v1(r.value, (p1, B1) => (a(), n(O, null, [
|
|
11328
11337
|
p1.divider ? (a(), M1(Y, {
|
|
11329
11338
|
key: "d" + B1,
|
|
@@ -11341,8 +11350,8 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11341
11350
|
name: p1.icon,
|
|
11342
11351
|
size: "15"
|
|
11343
11352
|
}, null, 8, ["name"])) : Z("", !0),
|
|
11344
|
-
d("span",
|
|
11345
|
-
], 10,
|
|
11353
|
+
d("span", jr, H(p1.label), 1)
|
|
11354
|
+
], 10, qr)) : (a(), n("button", {
|
|
11346
11355
|
key: "b" + B1,
|
|
11347
11356
|
type: "button",
|
|
11348
11357
|
class: q(["urow", { danger: p1.danger }]),
|
|
@@ -11355,8 +11364,8 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11355
11364
|
name: p1.icon,
|
|
11356
11365
|
size: "15"
|
|
11357
11366
|
}, null, 8, ["name"])) : Z("", !0),
|
|
11358
|
-
d("span",
|
|
11359
|
-
], 10,
|
|
11367
|
+
d("span", Nr, H(p1.label), 1)
|
|
11368
|
+
], 10, Ir))
|
|
11360
11369
|
], 64))), 256))
|
|
11361
11370
|
]),
|
|
11362
11371
|
s(e.themeToggle) ? (a(), n(O, { key: 2 }, [
|
|
@@ -11373,7 +11382,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11373
11382
|
], 64)) : Z("", !0),
|
|
11374
11383
|
s(e.logout) ? (a(), n(O, { key: 3 }, [
|
|
11375
11384
|
T(Y, { class: "udiv" }),
|
|
11376
|
-
d("div",
|
|
11385
|
+
d("div", Ur, [
|
|
11377
11386
|
d("button", {
|
|
11378
11387
|
type: "button",
|
|
11379
11388
|
class: "urow danger",
|
|
@@ -11385,7 +11394,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11385
11394
|
name: "signOutAlt",
|
|
11386
11395
|
size: "15"
|
|
11387
11396
|
}),
|
|
11388
|
-
d("span",
|
|
11397
|
+
d("span", Fr, H(e.logoutLabel), 1)
|
|
11389
11398
|
])
|
|
11390
11399
|
])
|
|
11391
11400
|
], 64)) : Z("", !0)
|
|
@@ -11393,22 +11402,22 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11393
11402
|
], 512);
|
|
11394
11403
|
};
|
|
11395
11404
|
}
|
|
11396
|
-
},
|
|
11405
|
+
}, Wr = /* @__PURE__ */ T1(Gr, [["styles", [_r]]]), Kr = ':host([hidden]){display:none!important}button{font-family:inherit}:host{font-family:var(--font-family, "Poppins", sans-serif);display:inline-block}.nm{display:inline-block}.bell{position:relative;width:36px;height:36px;border:0;border-radius:50%;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;background:none;color:var(--neutral-light, #6a7fa0);transition:background .15s,color .15s}.bell:hover,.bell.act{background:var(--neutral-lighter, #e3e8f2);color:var(--page-text-color, #1d2a3e)}.badge{position:absolute;top:3px;right:3px;min-width:15px;height:15px;padding:0 3px;box-sizing:border-box;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;background:var(--secondary-red, #ec5b5b);color:var(--white-regular, #fff);font-size:9px;font-weight:600;line-height:1}.panel{padding:0;background:var(--page-background-color, #fff);border:1px solid var(--border-color, #e3e8f2);border-radius:8px;box-shadow:0 6px 20px var(--neutral-shadow-light, rgba(29, 42, 62, .14));color:var(--page-text-color, #1d2a3e);font-size:.8rem;overflow:hidden}.panel[popover]{margin:0;inset:auto}.nhead{padding:8px 16px;background:var(--code-tag-background-color, #eef2f8)}.nh-title{font-weight:600;font-size:.92rem}.ntabs{display:block;padding:4px 16px 0;border-bottom:1px solid var(--border-color, #e3e8f2)}.nlist{max-height:400px;overflow:auto;padding:0}.nrow{display:flex;align-items:stretch;gap:12px;width:100%;box-sizing:border-box;padding:9px 16px 9px 0;border:0;border-bottom:1px solid var(--border-color, #e3e8f2);background:transparent;color:var(--page-text-color, #1d2a3e);font-size:.8rem;text-align:left;cursor:pointer}.nrow:hover{background:var(--neutral-lightest, #f3f5f9)}.nbar{width:3px;flex:0 0 auto;border-radius:0 2px 2px 0;align-self:stretch}.nbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;padding-left:13px}.ntitle{line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ndetail{line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ntime{color:var(--neutral-light, #8e9fbc);font-size:.72rem}.ntag{flex:0 0 auto;align-self:center}.nempty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:34px 12px;color:var(--neutral-light, #8e9fbc)}.ne-ic{color:var(--neutral-lighter, #c3cee0)}.nfoot{display:flex;align-items:center;justify-content:center;gap:12px;padding:7px 10px;background:var(--code-tag-background-color, #eef2f8)}.nf-link{cursor:pointer}.nf-sep{color:var(--neutral-light, #8e9fbc)}', Jr = ["aria-expanded"], Yr = {
|
|
11397
11406
|
key: 0,
|
|
11398
11407
|
class: "badge"
|
|
11399
|
-
},
|
|
11408
|
+
}, Qr = { class: "nhead" }, Xr = { class: "nh-title" }, en = {
|
|
11400
11409
|
class: "nlist",
|
|
11401
11410
|
role: "list"
|
|
11402
|
-
},
|
|
11411
|
+
}, tn = ["onClick"], ln = { class: "nbody" }, cn = { class: "ntitle" }, sn = {
|
|
11403
11412
|
key: 0,
|
|
11404
11413
|
class: "ndetail"
|
|
11405
|
-
},
|
|
11414
|
+
}, on = {
|
|
11406
11415
|
key: 1,
|
|
11407
11416
|
class: "ntime"
|
|
11408
|
-
},
|
|
11417
|
+
}, an = {
|
|
11409
11418
|
key: 0,
|
|
11410
11419
|
class: "nempty"
|
|
11411
|
-
},
|
|
11420
|
+
}, rn = { class: "nfoot" }, nn = {
|
|
11412
11421
|
__name: "ObsNotificationMenu.ce",
|
|
11413
11422
|
props: {
|
|
11414
11423
|
count: { type: [Number, String], default: 0 },
|
|
@@ -11445,7 +11454,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11445
11454
|
}), i = /* @__PURE__ */ D(!1), p = /* @__PURE__ */ D(""), u = /* @__PURE__ */ D(null), h = /* @__PURE__ */ D(null), v = /* @__PURE__ */ D({}), C = x(() => s(l.tabs).map((e1) => typeof e1 == "string" ? { label: e1 } : e1)), g = (e1) => String(e1.value ?? e1.label), S = (e1) => e1.count != null ? e1.count : o.value.filter((u1) => u1.tab && String(u1.tab).toLowerCase() === g(e1).toLowerCase()).length, M = x(() => JSON.stringify(C.value.map((e1) => {
|
|
11446
11455
|
const u1 = S(e1);
|
|
11447
11456
|
return { key: g(e1), label: u1 || u1 === 0 ? `${e1.label} (${u1})` : e1.label };
|
|
11448
|
-
}))),
|
|
11457
|
+
}))), A = x(() => {
|
|
11449
11458
|
const e1 = p.value || C.value[0] && g(C.value[0]) || "";
|
|
11450
11459
|
return o.value.filter((u1) => !u1.tab || String(u1.tab).toLowerCase() === String(e1).toLowerCase());
|
|
11451
11460
|
});
|
|
@@ -11466,7 +11475,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11466
11475
|
function j() {
|
|
11467
11476
|
p.value || (p.value = C.value[0] && g(C.value[0]) || ""), i.value = !0, c("show"), N();
|
|
11468
11477
|
}
|
|
11469
|
-
function
|
|
11478
|
+
function z() {
|
|
11470
11479
|
if (!i.value) return;
|
|
11471
11480
|
i.value = !1;
|
|
11472
11481
|
const e1 = h.value;
|
|
@@ -11478,7 +11487,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11478
11487
|
c("hide");
|
|
11479
11488
|
}
|
|
11480
11489
|
function P() {
|
|
11481
|
-
i.value ?
|
|
11490
|
+
i.value ? z() : j();
|
|
11482
11491
|
}
|
|
11483
11492
|
function G(e1) {
|
|
11484
11493
|
const u1 = Array.isArray(e1.detail) ? e1.detail[0] : e1.detail ?? "";
|
|
@@ -11491,15 +11500,15 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11491
11500
|
c("clear", { tab: p.value });
|
|
11492
11501
|
}
|
|
11493
11502
|
function d1() {
|
|
11494
|
-
c("viewall", { tab: p.value }),
|
|
11503
|
+
c("viewall", { tab: p.value }), z();
|
|
11495
11504
|
}
|
|
11496
11505
|
function r1(e1) {
|
|
11497
11506
|
if (!i.value) return;
|
|
11498
11507
|
const u1 = e1.composedPath ? e1.composedPath() : [];
|
|
11499
|
-
u1.includes(u.value) || u1.includes(h.value) ||
|
|
11508
|
+
u1.includes(u.value) || u1.includes(h.value) || z();
|
|
11500
11509
|
}
|
|
11501
11510
|
function J(e1) {
|
|
11502
|
-
e1.key === "Escape" &&
|
|
11511
|
+
e1.key === "Escape" && z();
|
|
11503
11512
|
}
|
|
11504
11513
|
return typeof document < "u" && (document.addEventListener("click", r1, !0), document.addEventListener("keydown", J, !0)), x2(() => {
|
|
11505
11514
|
typeof document < "u" && (document.removeEventListener("click", r1, !0), document.removeEventListener("keydown", J, !0));
|
|
@@ -11521,8 +11530,8 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11521
11530
|
name: "bell",
|
|
11522
11531
|
size: "18"
|
|
11523
11532
|
}),
|
|
11524
|
-
r.value ? (a(), n("span",
|
|
11525
|
-
], 10,
|
|
11533
|
+
r.value ? (a(), n("span", Yr, H(r.value), 1)) : Z("", !0)
|
|
11534
|
+
], 10, Jr),
|
|
11526
11535
|
i.value ? (a(), n("div", {
|
|
11527
11536
|
key: 0,
|
|
11528
11537
|
ref_key: "panelRef",
|
|
@@ -11533,8 +11542,8 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11533
11542
|
role: "dialog",
|
|
11534
11543
|
"aria-label": "Notifications"
|
|
11535
11544
|
}, [
|
|
11536
|
-
d("div",
|
|
11537
|
-
d("span",
|
|
11545
|
+
d("div", Qr, [
|
|
11546
|
+
d("span", Xr, H(e.title), 1)
|
|
11538
11547
|
]),
|
|
11539
11548
|
C.value.length > 1 ? (a(), M1(k, {
|
|
11540
11549
|
key: 0,
|
|
@@ -11543,8 +11552,8 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11543
11552
|
value: p.value,
|
|
11544
11553
|
onChange: G
|
|
11545
11554
|
}, null, 8, ["tabs", "value"])) : Z("", !0),
|
|
11546
|
-
d("div",
|
|
11547
|
-
(a(!0), n(O, null, v1(
|
|
11555
|
+
d("div", en, [
|
|
11556
|
+
(a(!0), n(O, null, v1(A.value, (f1, p1) => (a(), n("button", {
|
|
11548
11557
|
key: p1,
|
|
11549
11558
|
type: "button",
|
|
11550
11559
|
class: q(["nrow", { unread: f1.unread }]),
|
|
@@ -11555,10 +11564,10 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11555
11564
|
class: "nbar",
|
|
11556
11565
|
style: S1({ background: f1.severity ? "var(--severity-" + f1.severity + ", var(--neutral-light, #8e9fbc))" : "var(--neutral-light, #8e9fbc)" })
|
|
11557
11566
|
}, null, 4),
|
|
11558
|
-
d("span",
|
|
11559
|
-
d("span",
|
|
11560
|
-
f1.detail ? (a(), n("span",
|
|
11561
|
-
f1.time ? (a(), n("span",
|
|
11567
|
+
d("span", ln, [
|
|
11568
|
+
d("span", cn, H(f1.text ?? f1.title ?? f1.label), 1),
|
|
11569
|
+
f1.detail ? (a(), n("span", sn, H(f1.detail), 1)) : Z("", !0),
|
|
11570
|
+
f1.time ? (a(), n("span", on, H(f1.time), 1)) : Z("", !0)
|
|
11562
11571
|
]),
|
|
11563
11572
|
f1.tag ? (a(), M1(Y, {
|
|
11564
11573
|
key: 0,
|
|
@@ -11571,8 +11580,8 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11571
11580
|
]),
|
|
11572
11581
|
_: 2
|
|
11573
11582
|
}, 1024)) : Z("", !0)
|
|
11574
|
-
], 10,
|
|
11575
|
-
|
|
11583
|
+
], 10, tn))), 128)),
|
|
11584
|
+
A.value.length ? Z("", !0) : (a(), n("div", an, [
|
|
11576
11585
|
T(n1, {
|
|
11577
11586
|
name: "bell",
|
|
11578
11587
|
size: "22",
|
|
@@ -11581,7 +11590,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11581
11590
|
d("span", null, H(e.emptyText), 1)
|
|
11582
11591
|
]))
|
|
11583
11592
|
]),
|
|
11584
|
-
d("div",
|
|
11593
|
+
d("div", rn, [
|
|
11585
11594
|
T(L1, {
|
|
11586
11595
|
class: "nf-link",
|
|
11587
11596
|
onClick: d1
|
|
@@ -11606,7 +11615,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11606
11615
|
], 512);
|
|
11607
11616
|
};
|
|
11608
11617
|
}
|
|
11609
|
-
},
|
|
11618
|
+
}, dn = /* @__PURE__ */ T1(nn, [["styles", [Kr]]]), pn = ':host([hidden]){display:none!important}button{font-family:inherit}:host{font-family:var(--font-family, "Poppins", sans-serif);display:block}.cpwrap{display:contents}.cp-trigger{width:36px;height:36px;border:0;border-radius:50%;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;background:none;color:var(--neutral-light, #6a7fa0);transition:background .15s,color .15s}.cp-trigger:hover{background:var(--neutral-lighter, #e3e8f2);color:var(--page-text-color, #1d2a3e)}.cp-dialog{position:static;display:block;width:100%;box-sizing:border-box;margin:0;padding:0;border:0;background:transparent;color:inherit;max-width:none;max-height:none;overflow:visible}.cp-dialog:not([open]){display:none}.cpwrap.ov .cp-dialog{position:fixed;display:block;width:min(680px,92vw);margin:12vh auto auto;left:0;right:0}.cpwrap.ov .cp-dialog:not([open]){display:none}.cpwrap.ov .cp-dialog::backdrop{background:var(--modal-backdrop, rgba(29, 42, 62, .28));backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.cpwrap.ov .cp-dialog .cp{max-width:none;box-shadow:0 14px 44px var(--modal-shadow-color, rgba(0, 0, 0, .18))}.cp{display:flex;align-items:stretch;height:44px;box-sizing:border-box;min-width:680px;max-width:800px;margin:0;border:1px solid var(--border-color, #e3e8f2);border-radius:8px;background:var(--page-background-color, #fff);color:var(--page-text-color, #1d2a3e);font-size:.82rem}.cp.blk{max-width:1100px}.cp.ctr{margin-left:auto;margin-right:auto}.cp.err{border-color:var(--secondary-red, #ec5b5b)}.cp-search{display:inline-flex;align-items:center;justify-content:center;padding:0 10px;flex:0 0 auto;background:var(--neutral-lightest, #f3f5f9);color:var(--neutral-light, #6a7fa0);border-radius:8px 0 0 8px}.cp.hascat .cp-search{padding-right:0}.cp-cat{display:inline-flex;align-items:center;flex:0 0 auto;overflow:hidden;background:var(--neutral-lightest, #f3f5f9);--input-height-base: 42px;--page-background-color: transparent;--border-color: transparent;width:92px}.cp-div{width:1px;flex:0 0 auto;background:var(--border-color, #e3e8f2)}.cp-mid{position:relative;flex:1;min-width:0;display:flex;align-items:center;padding-left:12px}.cp-q{flex:1;min-width:0;display:block;--input-height-base: 42px}.cp-suggest{padding:6px;background:var(--page-background-color, #fff);border:1px solid var(--border-color, #e3e8f2);border-radius:8px;box-shadow:0 6px 20px var(--neutral-shadow-light, rgba(29, 42, 62, .14));max-height:320px;overflow:auto}.cp-suggest[popover]{margin:0;inset:auto}.cp-sug{display:block;width:100%;text-align:left;padding:8px 12px;border:0;border-radius:5px;background:transparent;color:var(--primary-alt, #3279be);font-size:.82rem;cursor:pointer;white-space:nowrap}.cp-sug:first-child{color:var(--page-text-color, #1d2a3e)}.cp-sug.on{background:var(--code-tag-background-color, #eef2f8)}.cp-acts{display:inline-flex;align-items:stretch;flex:0 0 auto;gap:2px;padding:0 4px}.cp-tt{display:inline-flex;align-items:center}.cp-exec,.cp-clear{display:inline-flex;align-items:center;justify-content:center;height:42px;width:26px;border:0;background:transparent;color:var(--neutral-light, #6a7fa0);cursor:pointer}.cp-exec:hover{color:var(--page-text-color, #1d2a3e)}.cp-exec.err{color:var(--secondary-red, #ec5b5b);cursor:default}.cp-clear:hover{color:var(--page-text-color, #1d2a3e)}.cp-range{display:inline-flex;align-items:center;flex:0 0 auto;padding:0 6px;background:var(--neutral-lightest, #f3f5f9);border-radius:0 8px 8px 0}', un = ["open"], hn = { class: "cp-search" }, vn = ["onMousedown", "onMouseenter"], fn = { class: "cp-acts" }, Cn = ["aria-label"], gn = {
|
|
11610
11619
|
__name: "ObsCommandPalette.ce",
|
|
11611
11620
|
props: {
|
|
11612
11621
|
value: { type: String, default: "" },
|
|
@@ -11656,10 +11665,10 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11656
11665
|
const h = x(() => !!String(l.error || "").trim()), v = x(() => o(l.suggestions).map((_) => typeof _ == "string" ? _ : _.label ?? _.value ?? String(_))), C = x(() => {
|
|
11657
11666
|
const _ = u.value.trim().toLowerCase();
|
|
11658
11667
|
return _ ? v.value.filter((g1) => g1.toLowerCase().includes(_)) : v.value;
|
|
11659
|
-
}), g = /* @__PURE__ */ D(!1), S = /* @__PURE__ */ D(0), M = /* @__PURE__ */ D(null),
|
|
11668
|
+
}), g = /* @__PURE__ */ D(!1), S = /* @__PURE__ */ D(0), M = /* @__PURE__ */ D(null), A = /* @__PURE__ */ D(null), N = /* @__PURE__ */ D(null), j = /* @__PURE__ */ D({}), z = x(() => g.value && C.value.length > 0);
|
|
11660
11669
|
function P() {
|
|
11661
11670
|
u2(() => {
|
|
11662
|
-
const _ =
|
|
11671
|
+
const _ = A.value && A.value.getBoundingClientRect();
|
|
11663
11672
|
if (!_) return;
|
|
11664
11673
|
j.value = { position: "fixed", inset: "auto", margin: "0", left: `${Math.round(_.left)}px`, top: `${Math.round(_.bottom + 4)}px`, minWidth: `${Math.round(_.width)}px` };
|
|
11665
11674
|
const g1 = N.value;
|
|
@@ -11699,16 +11708,16 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11699
11708
|
h.value || (R(), c("execute", { category: p.value, query: u.value }));
|
|
11700
11709
|
}
|
|
11701
11710
|
function e1(_) {
|
|
11702
|
-
if (_.key === "ArrowDown" &&
|
|
11711
|
+
if (_.key === "ArrowDown" && z.value) {
|
|
11703
11712
|
_.preventDefault(), S.value = (S.value + 1) % C.value.length;
|
|
11704
11713
|
return;
|
|
11705
11714
|
}
|
|
11706
|
-
if (_.key === "ArrowUp" &&
|
|
11715
|
+
if (_.key === "ArrowUp" && z.value) {
|
|
11707
11716
|
_.preventDefault(), S.value = (S.value - 1 + C.value.length) % C.value.length;
|
|
11708
11717
|
return;
|
|
11709
11718
|
}
|
|
11710
11719
|
if (_.key === "Enter") {
|
|
11711
|
-
|
|
11720
|
+
z.value && C.value[S.value] != null ? B(C.value[S.value]) : J();
|
|
11712
11721
|
return;
|
|
11713
11722
|
}
|
|
11714
11723
|
_.key === "Escape" && R();
|
|
@@ -11730,7 +11739,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11730
11739
|
c("open");
|
|
11731
11740
|
}
|
|
11732
11741
|
u2(() => {
|
|
11733
|
-
const g1 =
|
|
11742
|
+
const g1 = A.value && A.value.querySelector("obs-input"), U1 = g1 && g1.shadowRoot && g1.shadowRoot.querySelector("input,textarea");
|
|
11734
11743
|
U1 && U1.focus(), G();
|
|
11735
11744
|
});
|
|
11736
11745
|
}
|
|
@@ -11785,7 +11794,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11785
11794
|
onClick: g1[0] || (g1[0] = y1(() => {
|
|
11786
11795
|
}, ["stop"]))
|
|
11787
11796
|
}, [
|
|
11788
|
-
d("span",
|
|
11797
|
+
d("span", hn, [
|
|
11789
11798
|
T(U1, {
|
|
11790
11799
|
name: "search",
|
|
11791
11800
|
size: "16"
|
|
@@ -11806,7 +11815,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11806
11815
|
], 64)) : Z("", !0),
|
|
11807
11816
|
d("div", {
|
|
11808
11817
|
ref_key: "midRef",
|
|
11809
|
-
ref:
|
|
11818
|
+
ref: A,
|
|
11810
11819
|
class: "cp-mid",
|
|
11811
11820
|
onFocusin: u1
|
|
11812
11821
|
}, [
|
|
@@ -11819,7 +11828,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11819
11828
|
onInput: d1,
|
|
11820
11829
|
onKeydown: e1
|
|
11821
11830
|
}, null, 8, ["value", "placeholder"]),
|
|
11822
|
-
|
|
11831
|
+
z.value ? (a(), n("div", {
|
|
11823
11832
|
key: 0,
|
|
11824
11833
|
ref_key: "sugRef",
|
|
11825
11834
|
ref: N,
|
|
@@ -11835,10 +11844,10 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11835
11844
|
role: "option",
|
|
11836
11845
|
onMousedown: y1((d2) => B(G1), ["prevent"]),
|
|
11837
11846
|
onMouseenter: (d2) => S.value = Q1
|
|
11838
|
-
}, H(G1), 43,
|
|
11847
|
+
}, H(G1), 43, vn))), 128))
|
|
11839
11848
|
], 4)) : Z("", !0)
|
|
11840
11849
|
], 544),
|
|
11841
|
-
d("div",
|
|
11850
|
+
d("div", fn, [
|
|
11842
11851
|
h.value ? (a(), M1(b1, {
|
|
11843
11852
|
key: 0,
|
|
11844
11853
|
class: "cp-tt",
|
|
@@ -11855,7 +11864,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11855
11864
|
name: "exclamationCircle",
|
|
11856
11865
|
size: "16"
|
|
11857
11866
|
})
|
|
11858
|
-
], 8,
|
|
11867
|
+
], 8, Cn),
|
|
11859
11868
|
$1(" " + H(e.error), 1)
|
|
11860
11869
|
]),
|
|
11861
11870
|
_: 1
|
|
@@ -11915,30 +11924,30 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11915
11924
|
})
|
|
11916
11925
|
], 64)) : Z("", !0)
|
|
11917
11926
|
], 2)
|
|
11918
|
-
], 40,
|
|
11927
|
+
], 40, un)
|
|
11919
11928
|
], 2);
|
|
11920
11929
|
};
|
|
11921
11930
|
}
|
|
11922
|
-
},
|
|
11931
|
+
}, mn = /* @__PURE__ */ T1(gn, [["styles", [pn]]]), bn = ":host([hidden]){display:none!important}button{font-family:inherit}:host{display:block}.wrap{display:block;padding:var(--page-header-padding, 16px 20px 0)}.crumb ::slotted(*){display:block;margin-bottom:6px}.ph{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--border-color, #e3e8f2);color:var(--page-text-color, #1d2a3e)}.ph.no-divider{border-bottom-color:transparent}.left{display:flex;align-items:flex-start;gap:10px;min-width:0}.titles{display:flex;flex-direction:column;min-width:0}.ttl-row{display:flex;align-items:center;gap:10px;min-width:0}.subtitle{margin-top:2px;font-size:.75rem;line-height:1.4;color:var(--neutral-theme-color, #6a7fa0);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.accent{flex:0 0 auto;width:3px;height:16px;border-radius:2px}.meta{display:flex;flex-wrap:wrap;align-items:center;row-gap:2px;margin-top:4px;font-size:.75rem;line-height:1.5;color:var(--page-text-color, #1d2a3e)}.meta-item{display:inline-flex;align-items:center}.meta-sep{margin:0 8px;color:var(--neutral-light, #6a7fa0)}.meta-ic{color:var(--neutral-theme-color, #6a7fa0);margin-right:4px;display:inline-flex}.meta-dot{margin-right:4px;display:inline-flex}.meta-label{color:var(--neutral-theme-color, #6a7fa0);margin-right:4px}.meta-value{color:var(--page-text-color, #1d2a3e)}.right{display:flex;align-items:center;gap:8px;flex:0 0 auto}.back{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;padding:0;cursor:pointer;height:24px;display:inline-flex;align-items:center;color:var(--neutral-light, #a5bad0)}.title{margin:0;font-size:16px;font-weight:500;line-height:1.5;color:var(--primary-alt, #1d2a3e);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.count{display:inline-flex;align-items:center;height:18px;padding:0 4px;border-radius:4px;font-size:.7rem;background:var(--timerange-background-color, #e3e8f2);color:var(--timerange-text-color, #7186a8)}", xn = { class: "wrap" }, yn = { class: "crumb" }, Zn = { class: "left" }, wn = { class: "titles" }, Mn = { class: "ttl-row" }, kn = {
|
|
11923
11932
|
key: 1,
|
|
11924
11933
|
class: "title"
|
|
11925
|
-
},
|
|
11934
|
+
}, Hn = {
|
|
11926
11935
|
key: 2,
|
|
11927
11936
|
class: "count"
|
|
11928
|
-
},
|
|
11937
|
+
}, Vn = {
|
|
11929
11938
|
key: 0,
|
|
11930
11939
|
class: "subtitle"
|
|
11931
|
-
},
|
|
11940
|
+
}, Ln = {
|
|
11932
11941
|
key: 1,
|
|
11933
11942
|
class: "meta"
|
|
11934
|
-
},
|
|
11943
|
+
}, _n = {
|
|
11935
11944
|
key: 0,
|
|
11936
11945
|
class: "meta-sep",
|
|
11937
11946
|
"aria-hidden": "true"
|
|
11938
|
-
},
|
|
11947
|
+
}, Sn = { class: "meta-item" }, zn = {
|
|
11939
11948
|
key: 2,
|
|
11940
11949
|
class: "meta-label"
|
|
11941
|
-
},
|
|
11950
|
+
}, $n = { class: "meta-value" }, An = { class: "right" }, On = {
|
|
11942
11951
|
__name: "ObsPageHeader.ce",
|
|
11943
11952
|
props: {
|
|
11944
11953
|
heading: { type: String, default: "" },
|
|
@@ -11973,14 +11982,14 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11973
11982
|
};
|
|
11974
11983
|
return (i, p) => {
|
|
11975
11984
|
const u = k1("obs-icon"), h = k1("obs-severity");
|
|
11976
|
-
return a(), n("div",
|
|
11977
|
-
d("div",
|
|
11978
|
-
|
|
11985
|
+
return a(), n("div", xn, [
|
|
11986
|
+
d("div", yn, [
|
|
11987
|
+
W1(i.$slots, "breadcrumb")
|
|
11979
11988
|
]),
|
|
11980
11989
|
d("div", {
|
|
11981
11990
|
class: q(["ph", { "no-divider": c(e.noDivider) }])
|
|
11982
11991
|
}, [
|
|
11983
|
-
d("div",
|
|
11992
|
+
d("div", Zn, [
|
|
11984
11993
|
c(e.back) ? (a(), n("button", {
|
|
11985
11994
|
key: 0,
|
|
11986
11995
|
class: "back",
|
|
@@ -11993,25 +12002,25 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
11993
12002
|
size: "16"
|
|
11994
12003
|
})
|
|
11995
12004
|
])) : Z("", !0),
|
|
11996
|
-
|
|
11997
|
-
|
|
11998
|
-
d("div",
|
|
11999
|
-
d("div",
|
|
12005
|
+
W1(i.$slots, "back"),
|
|
12006
|
+
W1(i.$slots, "before"),
|
|
12007
|
+
d("div", wn, [
|
|
12008
|
+
d("div", Mn, [
|
|
12000
12009
|
o.value ? (a(), n("span", {
|
|
12001
12010
|
key: 0,
|
|
12002
12011
|
class: "accent",
|
|
12003
12012
|
style: S1({ background: o.value }),
|
|
12004
12013
|
"aria-hidden": "true"
|
|
12005
12014
|
}, null, 4)) : Z("", !0),
|
|
12006
|
-
e.heading ? (a(), n("h4",
|
|
12007
|
-
e.count !== null && e.count !== "" ? (a(), n("span",
|
|
12008
|
-
|
|
12015
|
+
e.heading ? (a(), n("h4", kn, H(e.heading), 1)) : Z("", !0),
|
|
12016
|
+
e.count !== null && e.count !== "" ? (a(), n("span", Hn, H(e.count), 1)) : Z("", !0),
|
|
12017
|
+
W1(i.$slots, "title")
|
|
12009
12018
|
]),
|
|
12010
|
-
e.subtitle ? (a(), n("div",
|
|
12011
|
-
s.value.length ? (a(), n("div",
|
|
12019
|
+
e.subtitle ? (a(), n("div", Vn, H(e.subtitle), 1)) : Z("", !0),
|
|
12020
|
+
s.value.length ? (a(), n("div", Ln, [
|
|
12012
12021
|
(a(!0), n(O, null, v1(s.value, (v, C) => (a(), n(O, { key: C }, [
|
|
12013
|
-
C > 0 ? (a(), n("span",
|
|
12014
|
-
d("span",
|
|
12022
|
+
C > 0 ? (a(), n("span", _n, "|")) : Z("", !0),
|
|
12023
|
+
d("span", Sn, [
|
|
12015
12024
|
v.icon ? (a(), M1(u, {
|
|
12016
12025
|
key: 0,
|
|
12017
12026
|
name: v.icon,
|
|
@@ -12025,32 +12034,32 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12025
12034
|
shape: "dot",
|
|
12026
12035
|
class: "meta-dot"
|
|
12027
12036
|
}, null, 8, ["severity"])) : Z("", !0),
|
|
12028
|
-
v.label ? (a(), n("span",
|
|
12029
|
-
d("span",
|
|
12037
|
+
v.label ? (a(), n("span", zn, H(v.label) + ":", 1)) : Z("", !0),
|
|
12038
|
+
d("span", $n, H(v.value), 1)
|
|
12030
12039
|
])
|
|
12031
12040
|
], 64))), 128))
|
|
12032
12041
|
])) : Z("", !0)
|
|
12033
12042
|
])
|
|
12034
12043
|
]),
|
|
12035
|
-
d("div",
|
|
12036
|
-
|
|
12044
|
+
d("div", An, [
|
|
12045
|
+
W1(i.$slots, "default")
|
|
12037
12046
|
])
|
|
12038
12047
|
], 2)
|
|
12039
12048
|
]);
|
|
12040
12049
|
};
|
|
12041
12050
|
}
|
|
12042
|
-
},
|
|
12051
|
+
}, Tn = /* @__PURE__ */ T1(On, [["styles", [bn]]]), Pn = ":host([hidden]){display:none!important}button{font-family:inherit}:host{display:block}.app{display:flex;align-items:center;justify-content:space-between;height:50px;padding:0 16px;background:var(--page-background-color, #fff);border-bottom:1px solid var(--border-color, #e3e8f2);color:var(--page-text-color, #1d2a3e)}.brand{display:inline-flex;align-items:center;font-size:18px;font-weight:700;letter-spacing:.5px;color:var(--primary-alt, #1d2a3e)}.brand ::slotted(img){height:40px;display:block}.right{display:flex;align-items:center;gap:4px}.circ{position:relative;width:36px;height:36px;border:0;border-radius:50%;padding:0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;background:none;color:var(--neutral-light, #6a7fa0);transition:background .15s,color .15s}.circ:hover{background:var(--neutral-lighter, #e3e8f2)}.circ.active{color:var(--primary, #111c2c)}.badge{position:absolute;top:6px;right:6px;width:14px;height:14px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--secondary-red, #ec5b5b);color:var(--white-regular, #fff);font-size:9px;line-height:1}.build{display:inline-flex;align-items:center;height:22px;margin:0 8px;padding:0 8px;border-radius:4px;font-size:11px;background:var(--timerange-background-color, #e3e8f2);color:var(--primary, #111c2c)}.avatar{width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--primary, #111c2c);color:var(--white-regular, #fff);font-size:12px;font-weight:600;cursor:pointer}", Bn = { class: "app" }, En = { class: "brand" }, Dn = { class: "right" }, Rn = ["aria-label", "title", "onClick"], qn = {
|
|
12043
12052
|
key: 0,
|
|
12044
12053
|
class: "badge"
|
|
12045
|
-
},
|
|
12054
|
+
}, jn = {
|
|
12046
12055
|
key: 0,
|
|
12047
12056
|
class: "build"
|
|
12048
|
-
},
|
|
12057
|
+
}, In = {
|
|
12049
12058
|
key: 0,
|
|
12050
12059
|
class: "avatar",
|
|
12051
12060
|
role: "button",
|
|
12052
12061
|
tabindex: "0"
|
|
12053
|
-
},
|
|
12062
|
+
}, Nn = {
|
|
12054
12063
|
__name: "ObsAppHeader.ce",
|
|
12055
12064
|
props: {
|
|
12056
12065
|
brand: { type: String, default: "" },
|
|
@@ -12080,13 +12089,13 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12080
12089
|
});
|
|
12081
12090
|
return (r, i) => {
|
|
12082
12091
|
const p = k1("obs-icon");
|
|
12083
|
-
return a(), n("header",
|
|
12084
|
-
d("div",
|
|
12085
|
-
|
|
12092
|
+
return a(), n("header", Bn, [
|
|
12093
|
+
d("div", En, [
|
|
12094
|
+
W1(r.$slots, "brand", {}, () => [
|
|
12086
12095
|
$1(H(e.brand), 1)
|
|
12087
12096
|
])
|
|
12088
12097
|
]),
|
|
12089
|
-
d("div",
|
|
12098
|
+
d("div", Dn, [
|
|
12090
12099
|
(a(!0), n(O, null, v1(o.value, (u, h) => (a(), n("button", {
|
|
12091
12100
|
key: h,
|
|
12092
12101
|
class: q(["circ", { active: u.active }]),
|
|
@@ -12099,24 +12108,24 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12099
12108
|
name: u.icon,
|
|
12100
12109
|
size: "18"
|
|
12101
12110
|
}, null, 8, ["name"]),
|
|
12102
|
-
u.badge !== null ? (a(), n("span",
|
|
12103
|
-
], 10,
|
|
12104
|
-
|
|
12105
|
-
e.build ? (a(), n("span",
|
|
12106
|
-
|
|
12107
|
-
e.user ? (a(), n("span",
|
|
12111
|
+
u.badge !== null ? (a(), n("span", qn, H(u.badge), 1)) : Z("", !0)
|
|
12112
|
+
], 10, Rn))), 128)),
|
|
12113
|
+
W1(r.$slots, "default"),
|
|
12114
|
+
e.build ? (a(), n("span", jn, "BUILD : " + H(e.build), 1)) : Z("", !0),
|
|
12115
|
+
W1(r.$slots, "user", {}, () => [
|
|
12116
|
+
e.user ? (a(), n("span", In, H(e.user), 1)) : Z("", !0)
|
|
12108
12117
|
])
|
|
12109
12118
|
])
|
|
12110
12119
|
]);
|
|
12111
12120
|
};
|
|
12112
12121
|
}
|
|
12113
|
-
},
|
|
12122
|
+
}, Un = /* @__PURE__ */ T1(Nn, [["styles", [Pn]]]), Fn = ":host([hidden]){display:none!important}:host{display:block}.tb{display:flex;align-items:center;color:var(--page-text-color, #1d2a3e);font-size:var(--text-sm, .8rem)}.tb.v-grid,.tb.v-widget{justify-content:space-between}.tb-lead{display:flex;align-items:center;gap:8px;min-width:0}.tb-main{display:flex;align-items:center;gap:8px;flex:0 0 auto}.tb.v-bulk{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--border-color, #e3e8f2);border-radius:8px;box-shadow:var(--tooltip-box-shadow, 0 2px 8px rgba(0,0,0,.15));background:var(--page-background-color, #fff)}.tb-sel{display:inline-flex;align-items:center;gap:6px;margin-right:16px}.tb-chk{display:inline-flex}.tb-count{font-size:13px;font-weight:500;white-space:nowrap;color:var(--neutral-light, #6a7fa0)}.tb.v-widget{padding:0 8px;border:1px solid var(--border-color, #e3e8f2);border-bottom:none;border-radius:6px 6px 0 0;background:var(--common-widget-bg, #fff)}.tb-title{font-size:14px;font-weight:500;padding:8px 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}", Gn = ["role"], Wn = {
|
|
12114
12123
|
key: 0,
|
|
12115
12124
|
class: "tb-sel"
|
|
12116
|
-
},
|
|
12125
|
+
}, Kn = { class: "tb-count" }, Jn = { class: "tb-lead" }, Yn = {
|
|
12117
12126
|
key: 0,
|
|
12118
12127
|
class: "tb-title"
|
|
12119
|
-
},
|
|
12128
|
+
}, Qn = { class: "tb-main" }, Xn = {
|
|
12120
12129
|
__name: "ObsToolbar.ce",
|
|
12121
12130
|
props: {
|
|
12122
12131
|
variant: { type: String, default: "" },
|
|
@@ -12138,38 +12147,38 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12138
12147
|
role: e.variant === "bulk" ? "toolbar" : null
|
|
12139
12148
|
}, [
|
|
12140
12149
|
e.variant === "bulk" ? (a(), n(O, { key: 0 }, [
|
|
12141
|
-
e.count !== null && e.count !== "" ? (a(), n("span",
|
|
12150
|
+
e.count !== null && e.count !== "" ? (a(), n("span", Wn, [
|
|
12142
12151
|
T(p, {
|
|
12143
12152
|
checked: "",
|
|
12144
12153
|
class: "tb-chk",
|
|
12145
12154
|
onChange: o
|
|
12146
12155
|
}),
|
|
12147
|
-
d("span",
|
|
12156
|
+
d("span", Kn, H(s.value), 1)
|
|
12148
12157
|
])) : Z("", !0),
|
|
12149
|
-
|
|
12158
|
+
W1(r.$slots, "default")
|
|
12150
12159
|
], 64)) : (a(), n(O, { key: 1 }, [
|
|
12151
|
-
d("div", Wn, [
|
|
12152
|
-
e.variant === "widget" && e.title ? (a(), n("span", Kn, H(e.title), 1)) : Z("", !0),
|
|
12153
|
-
Y1(r.$slots, "start")
|
|
12154
|
-
]),
|
|
12155
12160
|
d("div", Jn, [
|
|
12156
|
-
|
|
12161
|
+
e.variant === "widget" && e.title ? (a(), n("span", Yn, H(e.title), 1)) : Z("", !0),
|
|
12162
|
+
W1(r.$slots, "start")
|
|
12163
|
+
]),
|
|
12164
|
+
d("div", Qn, [
|
|
12165
|
+
W1(r.$slots, "default")
|
|
12157
12166
|
])
|
|
12158
12167
|
], 64))
|
|
12159
|
-
], 10,
|
|
12168
|
+
], 10, Gn);
|
|
12160
12169
|
};
|
|
12161
12170
|
}
|
|
12162
|
-
},
|
|
12171
|
+
}, ei = /* @__PURE__ */ T1(Xn, [["styles", [Fn]]]), ti = ":host([hidden]){display:none!important}button{font-family:inherit}:host{display:block}.mp{display:flex;flex-direction:column;min-height:0;box-sizing:border-box;border:1px solid var(--border-color, #e3e8f2);border-radius:8px;padding:1px 8px 8px 12px;background:var(--page-background-color, #fff);color:var(--page-text-color, #1d2a3e);font-size:.82rem}.mp.embedded{padding-top:0}.mp.embedded .mp-tabs{margin-top:0}.mp-mtabs{display:block;margin-bottom:12px}.mp-monitor{display:flex;flex-direction:column;gap:6px;padding-right:4px}.mp-label{font-size:var(--text-sm, .8rem);font-weight:400;line-height:1.5;color:var(--text-color-common-secondary, #7186a8)}.mp-gs{display:block}.mp-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:28px 0;color:var(--neutral-light, #6a7fa0);text-align:center}.mp-empty p{margin:0}.mp-tabs{display:block;margin:10px 4px 6px 0}.mp-search{display:block;margin:10px 4px 8px 0}.mp-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;max-height:340px;padding-right:2px}.mp-row{display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;height:36px;padding:0 6px 0 2px;border-radius:6px;background:none;color:var(--page-text-color, #1d2a3e)}.mp-row.grab{cursor:grab}.mp-row.grab:active{cursor:grabbing}.mp-row:hover{background:var(--neutral-lightest, #f4f6fb)}.mp-add{display:inline-flex;flex:none;border:0;padding:0;background:none;color:var(--neutral-light, #6a7fa0);cursor:pointer}.mp-add:hover{color:var(--primary, #111c2c)}.mp-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--neutral-regular, #4a5b78)}.mp-drag{display:inline-flex;flex:none;color:var(--neutral-light, #6a7fa0);cursor:grab}.mp-nomatch{padding:16px 8px;color:var(--neutral-light, #6a7fa0);text-align:center}", li = { class: "mp-monitor" }, ci = {
|
|
12163
12172
|
key: 1,
|
|
12164
12173
|
class: "mp-empty"
|
|
12165
|
-
},
|
|
12174
|
+
}, si = { class: "mp-list" }, oi = ["draggable", "title", "onDragstart", "onDragend"], ai = ["onClick"], ri = { class: "mp-name" }, ni = {
|
|
12166
12175
|
key: 1,
|
|
12167
12176
|
class: "mp-drag",
|
|
12168
12177
|
"aria-hidden": "true"
|
|
12169
|
-
},
|
|
12178
|
+
}, ii = {
|
|
12170
12179
|
key: 0,
|
|
12171
12180
|
class: "mp-nomatch"
|
|
12172
|
-
},
|
|
12181
|
+
}, di = {
|
|
12173
12182
|
__name: "ObsMetricPicker.ce",
|
|
12174
12183
|
props: {
|
|
12175
12184
|
monitors: { type: [String, Array], default: "" },
|
|
@@ -12218,7 +12227,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12218
12227
|
return b1 ? b1.name : "";
|
|
12219
12228
|
};
|
|
12220
12229
|
let C = 0;
|
|
12221
|
-
const g = (t1) => ({ key: "t" + C++, monitor: t1 || "", name: v(t1) }), S = r(l.selected, []), M = /* @__PURE__ */ D(S.length ? S.map((t1) => g(typeof t1 == "string" ? t1 : t1.id)) : [g("")]),
|
|
12230
|
+
const g = (t1) => ({ key: "t" + C++, monitor: t1 || "", name: v(t1) }), S = r(l.selected, []), M = /* @__PURE__ */ D(S.length ? S.map((t1) => g(typeof t1 == "string" ? t1 : t1.id)) : [g("")]), A = l.active && M.value.find((t1) => String(t1.monitor) === String(l.active)), N = /* @__PURE__ */ D(A ? A.key : M.value[0].key), j = x(() => M.value.find((t1) => t1.key === N.value) || M.value[0]), z = x(() => j.value ? j.value.monitor : ""), P = x(() => z.value !== "" && z.value != null), G = x(() => JSON.stringify(M.value.map((t1) => ({ key: t1.key, label: t1.name || "Select Monitor" }))));
|
|
12222
12231
|
function R() {
|
|
12223
12232
|
const t1 = g("");
|
|
12224
12233
|
M.value = [...M.value, t1], N.value = t1.key, c("add-monitor");
|
|
@@ -12249,7 +12258,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12249
12258
|
for (const G1 of b1) for (const Q1 of G1.items || G1.children || []) I1.push({ name: Q1.name });
|
|
12250
12259
|
return I1;
|
|
12251
12260
|
}), L1 = x(() => s(l.embedded)), f1 = x(() => L1.value || P.value), p1 = /* @__PURE__ */ D(""), B1 = /* @__PURE__ */ D(/* @__PURE__ */ new Set());
|
|
12252
|
-
F1([
|
|
12261
|
+
F1([z, () => l.counters, () => l.metrics], () => {
|
|
12253
12262
|
B1.value = /* @__PURE__ */ new Set();
|
|
12254
12263
|
});
|
|
12255
12264
|
const P1 = x(() => {
|
|
@@ -12293,7 +12302,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12293
12302
|
onClose: B,
|
|
12294
12303
|
onAdd: R
|
|
12295
12304
|
}, null, 8, ["tabs", "value"]),
|
|
12296
|
-
d("div",
|
|
12305
|
+
d("div", li, [
|
|
12297
12306
|
b1[0] || (b1[0] = d("label", { class: "mp-label" }, "Select Monitor", -1)),
|
|
12298
12307
|
T(G1, {
|
|
12299
12308
|
class: "mp-gs",
|
|
@@ -12301,12 +12310,12 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12301
12310
|
placeholder: "Select Monitor",
|
|
12302
12311
|
columns: h.value,
|
|
12303
12312
|
rows: p.value,
|
|
12304
|
-
value: String(
|
|
12313
|
+
value: String(z.value || ""),
|
|
12305
12314
|
onChange: r1
|
|
12306
12315
|
}, null, 8, ["columns", "rows", "value"])
|
|
12307
12316
|
])
|
|
12308
12317
|
], 64)),
|
|
12309
|
-
!L1.value && !P.value ? (a(), n("div",
|
|
12318
|
+
!L1.value && !P.value ? (a(), n("div", ci, [
|
|
12310
12319
|
T(Q1, {
|
|
12311
12320
|
name: "metricExplorer",
|
|
12312
12321
|
size: "30"
|
|
@@ -12330,7 +12339,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12330
12339
|
placeholder: e.placeholder,
|
|
12331
12340
|
onInput: _
|
|
12332
12341
|
}, null, 8, ["value", "placeholder"]),
|
|
12333
|
-
d("div",
|
|
12342
|
+
d("div", si, [
|
|
12334
12343
|
(a(!0), n(O, null, v1(P1.value, (f) => (a(), n("div", {
|
|
12335
12344
|
key: f.name,
|
|
12336
12345
|
class: q(["mp-row", { grab: k.value }]),
|
|
@@ -12350,25 +12359,25 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12350
12359
|
name: "plusCircle",
|
|
12351
12360
|
size: "16"
|
|
12352
12361
|
})
|
|
12353
|
-
], 8,
|
|
12354
|
-
d("span",
|
|
12355
|
-
k.value ? (a(), n("span",
|
|
12362
|
+
], 8, ai)) : Z("", !0),
|
|
12363
|
+
d("span", ri, H(f.name), 1),
|
|
12364
|
+
k.value ? (a(), n("span", ni, [
|
|
12356
12365
|
T(Q1, {
|
|
12357
12366
|
name: "dragArrows",
|
|
12358
12367
|
size: "14"
|
|
12359
12368
|
})
|
|
12360
12369
|
])) : Z("", !0)
|
|
12361
|
-
], 42,
|
|
12362
|
-
P1.value.length ? Z("", !0) : (a(), n("div",
|
|
12370
|
+
], 42, oi))), 128)),
|
|
12371
|
+
P1.value.length ? Z("", !0) : (a(), n("div", ii, H(p1.value ? `No metrics match “${p1.value}”` : B1.value.size ? "All counters added" : "No metrics"), 1))
|
|
12363
12372
|
])
|
|
12364
12373
|
], 64)) : Z("", !0)
|
|
12365
12374
|
], 2);
|
|
12366
12375
|
};
|
|
12367
12376
|
}
|
|
12368
|
-
},
|
|
12377
|
+
}, pi = /* @__PURE__ */ T1(di, [["styles", [ti]]]), ui = ":host([hidden]){display:none!important}button{font-family:inherit}:host{display:block}.noc{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--page-background-color, #fff);color:var(--page-text-color, #1d2a3e)}.noc.fs{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000}.bar{display:flex;align-items:center;padding:.75rem 1rem;background:var(--page-background-color, #fff);border-bottom:1px solid var(--border-color, #e3e8f2)}.side{display:flex;flex:1;align-items:center;min-width:0}.side.right{justify-content:flex-end;gap:8px}.center{display:flex;flex:0 1 auto;align-items:center;justify-content:center;gap:8px;min-width:0;max-width:50%}.logo{max-height:32px;display:block}.title{margin:0;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:1rem;font-weight:600;color:var(--primary, #111c2c)}.sq{flex:none}.count{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:32px;padding:0 8px;font-weight:600;color:var(--primary, #111c2c);background:var(--neutral-lighter, #e3e8f2);border-radius:4px}.body{flex:1;min-height:0;padding:.5rem;overflow:auto}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;min-height:180px;color:var(--neutral-light, #6a7fa0)}.empty p{margin:0}", hi = { class: "bar" }, vi = { class: "side" }, fi = ["src"], Ci = { class: "center" }, gi = ["title"], mi = { class: "side right" }, bi = ["title"], xi = { class: "body" }, yi = {
|
|
12369
12378
|
key: 0,
|
|
12370
12379
|
class: "empty"
|
|
12371
|
-
},
|
|
12380
|
+
}, Zi = {
|
|
12372
12381
|
__name: "ObsNocPlayer.ce",
|
|
12373
12382
|
props: {
|
|
12374
12383
|
dashboards: { type: [String, Array], default: "" },
|
|
@@ -12410,27 +12419,27 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12410
12419
|
}
|
|
12411
12420
|
function M() {
|
|
12412
12421
|
S(), !(u.value || !v.value) && (g = setInterval(() => {
|
|
12413
|
-
p.value -= 1, p.value <= 0 &&
|
|
12422
|
+
p.value -= 1, p.value <= 0 && A(1);
|
|
12414
12423
|
}, 1e3));
|
|
12415
12424
|
}
|
|
12416
|
-
function
|
|
12425
|
+
function A(R) {
|
|
12417
12426
|
const B = o.value.length;
|
|
12418
12427
|
B && (r.value = (r.value + R + B) % B, p.value = i.value, c("change", { index: r.value, name: C.value }));
|
|
12419
12428
|
}
|
|
12420
12429
|
function N() {
|
|
12421
|
-
|
|
12430
|
+
A(1), u.value || M();
|
|
12422
12431
|
}
|
|
12423
12432
|
function j() {
|
|
12424
|
-
|
|
12433
|
+
A(-1), u.value || M();
|
|
12425
12434
|
}
|
|
12426
|
-
function
|
|
12435
|
+
function z() {
|
|
12427
12436
|
u.value = !u.value, u.value ? (S(), c("pause")) : (p.value = i.value, M(), c("play"));
|
|
12428
12437
|
}
|
|
12429
12438
|
function P() {
|
|
12430
12439
|
c("close");
|
|
12431
12440
|
}
|
|
12432
12441
|
function G(R) {
|
|
12433
|
-
R.key === "Escape" ? P() : R.key === "ArrowRight" ? N() : R.key === "ArrowLeft" ? j() : R.key === " " && (R.preventDefault(),
|
|
12442
|
+
R.key === "Escape" ? P() : R.key === "ArrowRight" ? N() : R.key === "ArrowLeft" ? j() : R.key === " " && (R.preventDefault(), z());
|
|
12434
12443
|
}
|
|
12435
12444
|
return k2(() => {
|
|
12436
12445
|
p.value = i.value, M(), h.value && document.addEventListener("keydown", G);
|
|
@@ -12443,18 +12452,18 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12443
12452
|
return a(), n("div", {
|
|
12444
12453
|
class: q(["noc", { fs: h.value }])
|
|
12445
12454
|
}, [
|
|
12446
|
-
d("div",
|
|
12447
|
-
d("div",
|
|
12448
|
-
|
|
12455
|
+
d("div", hi, [
|
|
12456
|
+
d("div", vi, [
|
|
12457
|
+
W1(R.$slots, "logo", {}, () => [
|
|
12449
12458
|
e.logo ? (a(), n("img", {
|
|
12450
12459
|
key: 0,
|
|
12451
12460
|
src: e.logo,
|
|
12452
12461
|
class: "logo",
|
|
12453
12462
|
alt: "logo"
|
|
12454
|
-
}, null, 8,
|
|
12463
|
+
}, null, 8, fi)) : Z("", !0)
|
|
12455
12464
|
])
|
|
12456
12465
|
]),
|
|
12457
|
-
d("div",
|
|
12466
|
+
d("div", Ci, [
|
|
12458
12467
|
v.value ? (a(), M1(r1, {
|
|
12459
12468
|
key: 0,
|
|
12460
12469
|
class: "sq",
|
|
@@ -12475,7 +12484,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12475
12484
|
d("h3", {
|
|
12476
12485
|
class: "title",
|
|
12477
12486
|
title: C.value
|
|
12478
|
-
}, H(C.value), 9,
|
|
12487
|
+
}, H(C.value), 9, gi),
|
|
12479
12488
|
v.value ? (a(), M1(r1, {
|
|
12480
12489
|
key: 1,
|
|
12481
12490
|
class: "sq",
|
|
@@ -12494,12 +12503,12 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12494
12503
|
_: 1
|
|
12495
12504
|
})) : Z("", !0)
|
|
12496
12505
|
]),
|
|
12497
|
-
d("div",
|
|
12506
|
+
d("div", mi, [
|
|
12498
12507
|
v.value ? (a(), n("span", {
|
|
12499
12508
|
key: 0,
|
|
12500
12509
|
class: "count",
|
|
12501
12510
|
title: `${p.value}s until next dashboard`
|
|
12502
|
-
}, H(p.value), 9,
|
|
12511
|
+
}, H(p.value), 9, bi)) : Z("", !0),
|
|
12503
12512
|
v.value ? (a(), M1(r1, {
|
|
12504
12513
|
key: 1,
|
|
12505
12514
|
class: "sq",
|
|
@@ -12507,7 +12516,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12507
12516
|
squared: "",
|
|
12508
12517
|
title: u.value ? "Play" : "Pause",
|
|
12509
12518
|
"aria-label": u.value ? "Play" : "Pause",
|
|
12510
|
-
onClick:
|
|
12519
|
+
onClick: z
|
|
12511
12520
|
}, {
|
|
12512
12521
|
default: e2(() => [
|
|
12513
12522
|
T(d1, {
|
|
@@ -12535,8 +12544,8 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12535
12544
|
})
|
|
12536
12545
|
])
|
|
12537
12546
|
]),
|
|
12538
|
-
d("div",
|
|
12539
|
-
o.value.length ?
|
|
12547
|
+
d("div", xi, [
|
|
12548
|
+
o.value.length ? W1(R.$slots, "default", { key: 1 }) : (a(), n("div", yi, [
|
|
12540
12549
|
T(d1, {
|
|
12541
12550
|
name: "exclamationTriangle",
|
|
12542
12551
|
size: "40"
|
|
@@ -12547,7 +12556,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12547
12556
|
], 2);
|
|
12548
12557
|
};
|
|
12549
12558
|
}
|
|
12550
|
-
},
|
|
12559
|
+
}, wi = /* @__PURE__ */ T1(Zi, [["styles", [ui]]]), Mi = ":host([hidden]){display:none!important}button{font-family:inherit}:host{display:block}.tl{display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box;height:40px;padding:0 12px;background:var(--timeline-scrollbar-background-color, var(--page-background-color, #fff));border-top:1px solid var(--border-color, #e3e8f2);color:var(--page-text-color, #1d2a3e)}.side{display:flex;flex:0 1 auto;align-items:center;gap:6px;min-width:0}.time{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--page-text-color, #1d2a3e)}.nav{flex:none}.tl.disabled .nav,.nav:disabled{opacity:.5;cursor:not-allowed}", ki = { class: "side" }, Hi = { class: "time" }, Vi = { class: "side end" }, Li = { class: "time" }, _i = {
|
|
12551
12560
|
__name: "ObsTimelineScrollbar.ce",
|
|
12552
12561
|
props: {
|
|
12553
12562
|
start: { type: String, default: "" },
|
|
@@ -12567,7 +12576,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12567
12576
|
return a(), n("div", {
|
|
12568
12577
|
class: q(["tl", { disabled: o.value }])
|
|
12569
12578
|
}, [
|
|
12570
|
-
d("div",
|
|
12579
|
+
d("div", ki, [
|
|
12571
12580
|
T(h, {
|
|
12572
12581
|
class: "nav",
|
|
12573
12582
|
variant: "neutral-lightest",
|
|
@@ -12602,10 +12611,10 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12602
12611
|
]),
|
|
12603
12612
|
_: 1
|
|
12604
12613
|
}, 8, ["disabled"]),
|
|
12605
|
-
d("span",
|
|
12614
|
+
d("span", Hi, H(e.start), 1)
|
|
12606
12615
|
]),
|
|
12607
|
-
d("div",
|
|
12608
|
-
d("span",
|
|
12616
|
+
d("div", Vi, [
|
|
12617
|
+
d("span", Li, H(e.end), 1),
|
|
12609
12618
|
T(h, {
|
|
12610
12619
|
class: "nav",
|
|
12611
12620
|
variant: "neutral-lightest",
|
|
@@ -12644,7 +12653,7 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12644
12653
|
], 2);
|
|
12645
12654
|
};
|
|
12646
12655
|
}
|
|
12647
|
-
},
|
|
12656
|
+
}, Si = /* @__PURE__ */ T1(_i, [["styles", [Mi]]]), zi = {
|
|
12648
12657
|
"obs-button": z9,
|
|
12649
12658
|
"obs-tag": B9,
|
|
12650
12659
|
"obs-checkbox": N9,
|
|
@@ -12679,25 +12688,25 @@ const Zs = ':host([hidden]){display:none!important}:host{font-family:var(--font-
|
|
|
12679
12688
|
"obs-divider": $a,
|
|
12680
12689
|
"obs-banner": Ea,
|
|
12681
12690
|
"obs-breadcrumbs": Ua,
|
|
12682
|
-
"obs-side-menu":
|
|
12683
|
-
"obs-sidebar":
|
|
12684
|
-
"obs-tabs":
|
|
12685
|
-
"obs-steps":
|
|
12686
|
-
"obs-user-menu":
|
|
12687
|
-
"obs-notification-menu":
|
|
12688
|
-
"obs-command-palette":
|
|
12689
|
-
"obs-page-header":
|
|
12690
|
-
"obs-app-header":
|
|
12691
|
-
"obs-toolbar":
|
|
12692
|
-
"obs-metric-picker":
|
|
12693
|
-
"obs-noc-player":
|
|
12694
|
-
"obs-timeline-scrollbar":
|
|
12691
|
+
"obs-side-menu": tr,
|
|
12692
|
+
"obs-sidebar": ir,
|
|
12693
|
+
"obs-tabs": gr,
|
|
12694
|
+
"obs-steps": Lr,
|
|
12695
|
+
"obs-user-menu": Wr,
|
|
12696
|
+
"obs-notification-menu": dn,
|
|
12697
|
+
"obs-command-palette": mn,
|
|
12698
|
+
"obs-page-header": Tn,
|
|
12699
|
+
"obs-app-header": Un,
|
|
12700
|
+
"obs-toolbar": ei,
|
|
12701
|
+
"obs-metric-picker": pi,
|
|
12702
|
+
"obs-noc-player": wi,
|
|
12703
|
+
"obs-timeline-scrollbar": Si
|
|
12695
12704
|
};
|
|
12696
|
-
function
|
|
12697
|
-
for (const [e, t] of Object.entries(
|
|
12705
|
+
function $i() {
|
|
12706
|
+
for (const [e, t] of Object.entries(zi))
|
|
12698
12707
|
customElements.get(e) || customElements.define(e, /* @__PURE__ */ g9(t));
|
|
12699
12708
|
}
|
|
12700
|
-
|
|
12709
|
+
$i();
|
|
12701
12710
|
export {
|
|
12702
|
-
|
|
12711
|
+
$i as register
|
|
12703
12712
|
};
|