@trops/dash-core 0.1.861 → 0.1.862
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1148 -626
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1148 -626
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2876,9 +2876,9 @@ function draftIdOf(pkg) {
|
|
|
2876
2876
|
return m ? m[1] : null;
|
|
2877
2877
|
}
|
|
2878
2878
|
|
|
2879
|
-
function _createForOfIteratorHelper$
|
|
2880
|
-
function _unsupportedIterableToArray$
|
|
2881
|
-
function _arrayLikeToArray$
|
|
2879
|
+
function _createForOfIteratorHelper$1o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1o(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
2880
|
+
function _unsupportedIterableToArray$1o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1o(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1o(r, a) : void 0; } }
|
|
2881
|
+
function _arrayLikeToArray$1o(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
2882
2882
|
|
|
2883
2883
|
/**
|
|
2884
2884
|
* Walk a workspace layout and collect widget component keys that are
|
|
@@ -2892,7 +2892,7 @@ function collectComponentsFromLayout(layout) {
|
|
|
2892
2892
|
|
|
2893
2893
|
// Collect IDs of layout items that are actively referenced by grid cells
|
|
2894
2894
|
var activeItemIds = new Set();
|
|
2895
|
-
var _iterator = _createForOfIteratorHelper$
|
|
2895
|
+
var _iterator = _createForOfIteratorHelper$1o(layout),
|
|
2896
2896
|
_step;
|
|
2897
2897
|
try {
|
|
2898
2898
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -2912,7 +2912,7 @@ function collectComponentsFromLayout(layout) {
|
|
|
2912
2912
|
} finally {
|
|
2913
2913
|
_iterator.f();
|
|
2914
2914
|
}
|
|
2915
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
2915
|
+
var _iterator2 = _createForOfIteratorHelper$1o(layout),
|
|
2916
2916
|
_step2;
|
|
2917
2917
|
try {
|
|
2918
2918
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -3053,7 +3053,7 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
3053
3053
|
_t = [];
|
|
3054
3054
|
case 4:
|
|
3055
3055
|
allDrafts = _t;
|
|
3056
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
3056
|
+
_iterator4 = _createForOfIteratorHelper$1o(allDrafts);
|
|
3057
3057
|
try {
|
|
3058
3058
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
3059
3059
|
d = _step4.value;
|
|
@@ -3261,9 +3261,9 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
3261
3261
|
};
|
|
3262
3262
|
};
|
|
3263
3263
|
|
|
3264
|
-
function _createForOfIteratorHelper$
|
|
3265
|
-
function _unsupportedIterableToArray$
|
|
3266
|
-
function _arrayLikeToArray$
|
|
3264
|
+
function _createForOfIteratorHelper$1n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1n(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
3265
|
+
function _unsupportedIterableToArray$1n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1n(r, a) : void 0; } }
|
|
3266
|
+
function _arrayLikeToArray$1n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
3267
3267
|
function ownKeys$23(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3268
3268
|
function _objectSpread$23(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$23(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$23(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3269
3269
|
/**
|
|
@@ -3359,7 +3359,7 @@ function normalizeRow(row, labelToType) {
|
|
|
3359
3359
|
function unionDedupe(a, b) {
|
|
3360
3360
|
var out = new Set(Array.isArray(a) ? a : []);
|
|
3361
3361
|
if (Array.isArray(b)) {
|
|
3362
|
-
var _iterator = _createForOfIteratorHelper$
|
|
3362
|
+
var _iterator = _createForOfIteratorHelper$1n(b),
|
|
3363
3363
|
_step;
|
|
3364
3364
|
try {
|
|
3365
3365
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -3929,9 +3929,9 @@ function useRegistryAuthGate() {
|
|
|
3929
3929
|
};
|
|
3930
3930
|
}
|
|
3931
3931
|
|
|
3932
|
-
function _createForOfIteratorHelper$
|
|
3933
|
-
function _unsupportedIterableToArray$
|
|
3934
|
-
function _arrayLikeToArray$
|
|
3932
|
+
function _createForOfIteratorHelper$1m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1m(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
3933
|
+
function _unsupportedIterableToArray$1m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1m(r, a) : void 0; } }
|
|
3934
|
+
function _arrayLikeToArray$1m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
3935
3935
|
function ownKeys$21(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3936
3936
|
function _objectSpread$21(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$21(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$21(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3937
3937
|
|
|
@@ -4429,7 +4429,7 @@ function useWidgetUpdates() {
|
|
|
4429
4429
|
// (install replaces the entire package, not just one widget)
|
|
4430
4430
|
setUpdates(function (prev) {
|
|
4431
4431
|
var next = new Map(prev);
|
|
4432
|
-
var _iterator = _createForOfIteratorHelper$
|
|
4432
|
+
var _iterator = _createForOfIteratorHelper$1m(next),
|
|
4433
4433
|
_step;
|
|
4434
4434
|
try {
|
|
4435
4435
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -4489,7 +4489,7 @@ function useWidgetUpdates() {
|
|
|
4489
4489
|
var liveUpdates = React.useMemo(function () {
|
|
4490
4490
|
if (!updates || updates.size === 0) return updates;
|
|
4491
4491
|
var installedVersion = new Map();
|
|
4492
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
4492
|
+
var _iterator2 = _createForOfIteratorHelper$1m(installedWidgets),
|
|
4493
4493
|
_step2;
|
|
4494
4494
|
try {
|
|
4495
4495
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -4503,7 +4503,7 @@ function useWidgetUpdates() {
|
|
|
4503
4503
|
_iterator2.f();
|
|
4504
4504
|
}
|
|
4505
4505
|
var live = new Map();
|
|
4506
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
4506
|
+
var _iterator3 = _createForOfIteratorHelper$1m(updates),
|
|
4507
4507
|
_step3;
|
|
4508
4508
|
try {
|
|
4509
4509
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -4531,7 +4531,7 @@ function useWidgetUpdates() {
|
|
|
4531
4531
|
var packagesWithUpdates = React.useMemo(function () {
|
|
4532
4532
|
if (!liveUpdates || liveUpdates.size === 0) return [];
|
|
4533
4533
|
var byPackage = new Map();
|
|
4534
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
4534
|
+
var _iterator4 = _createForOfIteratorHelper$1m(liveUpdates),
|
|
4535
4535
|
_step4;
|
|
4536
4536
|
try {
|
|
4537
4537
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -4559,7 +4559,7 @@ function useWidgetUpdates() {
|
|
|
4559
4559
|
} finally {
|
|
4560
4560
|
_iterator4.f();
|
|
4561
4561
|
}
|
|
4562
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
4562
|
+
var _iterator5 = _createForOfIteratorHelper$1m(installedWidgets),
|
|
4563
4563
|
_step5;
|
|
4564
4564
|
try {
|
|
4565
4565
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -4690,7 +4690,7 @@ function useWidgetUpdates() {
|
|
|
4690
4690
|
// packageId) → grant rows (which are keyed by widgetId like
|
|
4691
4691
|
// `trops.slack.SlackChannels`).
|
|
4692
4692
|
rowByComponentName = new Map();
|
|
4693
|
-
_iterator6 = _createForOfIteratorHelper$
|
|
4693
|
+
_iterator6 = _createForOfIteratorHelper$1m(allRows);
|
|
4694
4694
|
try {
|
|
4695
4695
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
4696
4696
|
r = _step6.value;
|
|
@@ -4703,7 +4703,7 @@ function useWidgetUpdates() {
|
|
|
4703
4703
|
_iterator6.f();
|
|
4704
4704
|
}
|
|
4705
4705
|
widgetsWithMissing = [];
|
|
4706
|
-
_iterator7 = _createForOfIteratorHelper$
|
|
4706
|
+
_iterator7 = _createForOfIteratorHelper$1m(manifests);
|
|
4707
4707
|
_context5.prev = 8;
|
|
4708
4708
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
4709
4709
|
var _manifest$permissions, _manifest$permissions2;
|
|
@@ -4728,7 +4728,7 @@ function useWidgetUpdates() {
|
|
|
4728
4728
|
pkgWidgets = installedWidgets.filter(function (w) {
|
|
4729
4729
|
return (w.packageId || w.name) === packageId;
|
|
4730
4730
|
});
|
|
4731
|
-
_iterator8 = _createForOfIteratorHelper$
|
|
4731
|
+
_iterator8 = _createForOfIteratorHelper$1m(pkgWidgets);
|
|
4732
4732
|
_context4.prev = 2;
|
|
4733
4733
|
_iterator8.s();
|
|
4734
4734
|
case 3:
|
|
@@ -4876,7 +4876,7 @@ function useWidgetUpdates() {
|
|
|
4876
4876
|
// Seed every selected package as pending so the modal renders
|
|
4877
4877
|
// the full per-row state from the first paint.
|
|
4878
4878
|
initial = new Map();
|
|
4879
|
-
_iterator9 = _createForOfIteratorHelper$
|
|
4879
|
+
_iterator9 = _createForOfIteratorHelper$1m(packageNames);
|
|
4880
4880
|
try {
|
|
4881
4881
|
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
4882
4882
|
name = _step9.value;
|
|
@@ -4938,7 +4938,7 @@ function useWidgetUpdates() {
|
|
|
4938
4938
|
// loop so the freshly-installed code can immediately use
|
|
4939
4939
|
// what was approved (and is gated from what wasn't).
|
|
4940
4940
|
accepted = decision.acceptedByWidgetId || {};
|
|
4941
|
-
_iterator0 = _createForOfIteratorHelper$
|
|
4941
|
+
_iterator0 = _createForOfIteratorHelper$1m(preflight.widgets);
|
|
4942
4942
|
_context7.prev = 6;
|
|
4943
4943
|
_iterator0.s();
|
|
4944
4944
|
case 7:
|
|
@@ -5022,7 +5022,7 @@ function useWidgetUpdates() {
|
|
|
5022
5022
|
// e.g. a stale registry zip or a verify mismatch).
|
|
5023
5023
|
failedDetails = [];
|
|
5024
5024
|
_context7.prev = 19;
|
|
5025
|
-
_iterator1 = _createForOfIteratorHelper$
|
|
5025
|
+
_iterator1 = _createForOfIteratorHelper$1m(packageNames);
|
|
5026
5026
|
_context7.prev = 20;
|
|
5027
5027
|
_loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
|
|
5028
5028
|
var pkgName, msg, _t0;
|
|
@@ -5129,7 +5129,7 @@ function useWidgetUpdates() {
|
|
|
5129
5129
|
succeededSet = new Set(succeeded);
|
|
5130
5130
|
setUpdates(function (prev) {
|
|
5131
5131
|
var next = new Map(prev);
|
|
5132
|
-
var _iterator10 = _createForOfIteratorHelper$
|
|
5132
|
+
var _iterator10 = _createForOfIteratorHelper$1m(next),
|
|
5133
5133
|
_step10;
|
|
5134
5134
|
try {
|
|
5135
5135
|
for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
|
|
@@ -5457,9 +5457,9 @@ function useAppUpdates() {
|
|
|
5457
5457
|
|
|
5458
5458
|
function ownKeys$1$(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5459
5459
|
function _objectSpread$1$(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1$(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1$(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5460
|
-
function _createForOfIteratorHelper$
|
|
5461
|
-
function _unsupportedIterableToArray$
|
|
5462
|
-
function _arrayLikeToArray$
|
|
5460
|
+
function _createForOfIteratorHelper$1l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1l(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
5461
|
+
function _unsupportedIterableToArray$1l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1l(r, a) : void 0; } }
|
|
5462
|
+
function _arrayLikeToArray$1l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5463
5463
|
var secondaryBtnClass$1 = "px-3 py-2 text-sm font-medium rounded bg-gray-700 hover:bg-gray-600 disabled:bg-gray-800 disabled:text-gray-500 disabled:cursor-not-allowed text-gray-100";
|
|
5464
5464
|
var primaryBtnClass$1 = "px-3 py-2 text-sm font-medium rounded bg-blue-600 hover:bg-blue-500 disabled:bg-gray-700 disabled:text-gray-500 disabled:cursor-not-allowed text-white";
|
|
5465
5465
|
|
|
@@ -5479,7 +5479,7 @@ function flattenPreflightLines(missing) {
|
|
|
5479
5479
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
5480
5480
|
serverName = _Object$entries$_i[0],
|
|
5481
5481
|
perms = _Object$entries$_i[1];
|
|
5482
|
-
var _iterator = _createForOfIteratorHelper$
|
|
5482
|
+
var _iterator = _createForOfIteratorHelper$1l(perms.tools || []),
|
|
5483
5483
|
_step;
|
|
5484
5484
|
try {
|
|
5485
5485
|
var _loop2 = function _loop2() {
|
|
@@ -5508,7 +5508,7 @@ function flattenPreflightLines(missing) {
|
|
|
5508
5508
|
} finally {
|
|
5509
5509
|
_iterator.f();
|
|
5510
5510
|
}
|
|
5511
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
5511
|
+
var _iterator2 = _createForOfIteratorHelper$1l(perms.readPaths || []),
|
|
5512
5512
|
_step2;
|
|
5513
5513
|
try {
|
|
5514
5514
|
var _loop3 = function _loop3() {
|
|
@@ -5535,7 +5535,7 @@ function flattenPreflightLines(missing) {
|
|
|
5535
5535
|
} finally {
|
|
5536
5536
|
_iterator2.f();
|
|
5537
5537
|
}
|
|
5538
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
5538
|
+
var _iterator3 = _createForOfIteratorHelper$1l(perms.writePaths || []),
|
|
5539
5539
|
_step3;
|
|
5540
5540
|
try {
|
|
5541
5541
|
var _loop4 = function _loop4() {
|
|
@@ -5587,13 +5587,13 @@ var WidgetPreflightReview = function WidgetPreflightReview(_ref) {
|
|
|
5587
5587
|
var _pendingPreflight$wid;
|
|
5588
5588
|
if (!pendingPreflight || !((_pendingPreflight$wid = pendingPreflight.widgets) !== null && _pendingPreflight$wid !== void 0 && _pendingPreflight$wid.length)) return;
|
|
5589
5589
|
var initial = {};
|
|
5590
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
5590
|
+
var _iterator4 = _createForOfIteratorHelper$1l(pendingPreflight.widgets),
|
|
5591
5591
|
_step4;
|
|
5592
5592
|
try {
|
|
5593
5593
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
5594
5594
|
var w = _step4.value;
|
|
5595
5595
|
initial[w.widgetId] = {};
|
|
5596
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
5596
|
+
var _iterator5 = _createForOfIteratorHelper$1l(flattenPreflightLines(w.missing)),
|
|
5597
5597
|
_step5;
|
|
5598
5598
|
try {
|
|
5599
5599
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -5630,7 +5630,7 @@ var WidgetPreflightReview = function WidgetPreflightReview(_ref) {
|
|
|
5630
5630
|
// Build the per-widget addition blob from checked lines. Skip
|
|
5631
5631
|
// widgets where the user unchecked everything.
|
|
5632
5632
|
var acceptedByWidgetId = {};
|
|
5633
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
5633
|
+
var _iterator6 = _createForOfIteratorHelper$1l(widgets),
|
|
5634
5634
|
_step6;
|
|
5635
5635
|
try {
|
|
5636
5636
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -5638,7 +5638,7 @@ var WidgetPreflightReview = function WidgetPreflightReview(_ref) {
|
|
|
5638
5638
|
var _lines = flattenPreflightLines(w.missing);
|
|
5639
5639
|
var acc = {};
|
|
5640
5640
|
var any = false;
|
|
5641
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
5641
|
+
var _iterator7 = _createForOfIteratorHelper$1l(_lines),
|
|
5642
5642
|
_step7;
|
|
5643
5643
|
try {
|
|
5644
5644
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -7920,9 +7920,9 @@ function unavailableRequiredWidgets(widgetDeps, compatibility) {
|
|
|
7920
7920
|
});
|
|
7921
7921
|
}
|
|
7922
7922
|
|
|
7923
|
-
function _createForOfIteratorHelper$
|
|
7924
|
-
function _unsupportedIterableToArray$
|
|
7925
|
-
function _arrayLikeToArray$
|
|
7923
|
+
function _createForOfIteratorHelper$1k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1k(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
7924
|
+
function _unsupportedIterableToArray$1k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1k(r, a) : void 0; } }
|
|
7925
|
+
function _arrayLikeToArray$1k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7926
7926
|
function ownKeys$1X(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7927
7927
|
function _objectSpread$1X(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1X(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1X(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7928
7928
|
var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
@@ -8289,7 +8289,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
8289
8289
|
toInstall = 0,
|
|
8290
8290
|
unavailable = 0,
|
|
8291
8291
|
hasUnavailableRequired = false;
|
|
8292
|
-
var _iterator = _createForOfIteratorHelper$
|
|
8292
|
+
var _iterator = _createForOfIteratorHelper$1k(widgetDeps),
|
|
8293
8293
|
_step;
|
|
8294
8294
|
try {
|
|
8295
8295
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -11549,9 +11549,9 @@ function isUserWidget(item) {
|
|
|
11549
11549
|
return true;
|
|
11550
11550
|
}
|
|
11551
11551
|
|
|
11552
|
-
function _createForOfIteratorHelper$
|
|
11553
|
-
function _unsupportedIterableToArray$
|
|
11554
|
-
function _arrayLikeToArray$
|
|
11552
|
+
function _createForOfIteratorHelper$1j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1j(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11553
|
+
function _unsupportedIterableToArray$1j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1j(r, a) : void 0; } }
|
|
11554
|
+
function _arrayLikeToArray$1j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11555
11555
|
|
|
11556
11556
|
/**
|
|
11557
11557
|
* Whether a provider of this name exists. appProviders is a map keyed by
|
|
@@ -11605,7 +11605,7 @@ function resolveProviderName(_ref) {
|
|
|
11605
11605
|
// array. Support both because different callers shape it either way.
|
|
11606
11606
|
if (appProviders) {
|
|
11607
11607
|
if (Array.isArray(appProviders)) {
|
|
11608
|
-
var _iterator = _createForOfIteratorHelper$
|
|
11608
|
+
var _iterator = _createForOfIteratorHelper$1j(appProviders),
|
|
11609
11609
|
_step;
|
|
11610
11610
|
try {
|
|
11611
11611
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -11665,7 +11665,7 @@ function forEachWidget(workspace, visit) {
|
|
|
11665
11665
|
};
|
|
11666
11666
|
var _walk = function walk(items) {
|
|
11667
11667
|
if (!Array.isArray(items)) return;
|
|
11668
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
11668
|
+
var _iterator2 = _createForOfIteratorHelper$1j(items),
|
|
11669
11669
|
_step2;
|
|
11670
11670
|
try {
|
|
11671
11671
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -11706,7 +11706,7 @@ function forEachWidget(workspace, visit) {
|
|
|
11706
11706
|
// widgets that only live there (e.g. AI-place writes that bypass
|
|
11707
11707
|
// the page handler).
|
|
11708
11708
|
if (Array.isArray(workspace.pages)) {
|
|
11709
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
11709
|
+
var _iterator3 = _createForOfIteratorHelper$1j(workspace.pages),
|
|
11710
11710
|
_step3;
|
|
11711
11711
|
try {
|
|
11712
11712
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -11758,7 +11758,7 @@ function getUnresolvedProviders(_ref2) {
|
|
|
11758
11758
|
// the same `type` listed twice (a Claude code-gen quirk), which
|
|
11759
11759
|
// would otherwise produce duplicate rows in the Providers tab.
|
|
11760
11760
|
var seenTypes = new Set();
|
|
11761
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
11761
|
+
var _iterator4 = _createForOfIteratorHelper$1j(requirements),
|
|
11762
11762
|
_step4;
|
|
11763
11763
|
try {
|
|
11764
11764
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -11802,7 +11802,7 @@ function getUnresolvedProviders(_ref2) {
|
|
|
11802
11802
|
*/
|
|
11803
11803
|
function groupByProviderType(unresolved) {
|
|
11804
11804
|
var byType = new Map();
|
|
11805
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
11805
|
+
var _iterator5 = _createForOfIteratorHelper$1j(unresolved || []),
|
|
11806
11806
|
_step5;
|
|
11807
11807
|
try {
|
|
11808
11808
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -11845,7 +11845,7 @@ function getAllProviderBindings(_ref3) {
|
|
|
11845
11845
|
// quirk) which would otherwise duplicate the per-widget row in
|
|
11846
11846
|
// the Providers tab.
|
|
11847
11847
|
var seenTypes = new Set();
|
|
11848
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
11848
|
+
var _iterator6 = _createForOfIteratorHelper$1j(requirements),
|
|
11849
11849
|
_step6;
|
|
11850
11850
|
try {
|
|
11851
11851
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -11888,9 +11888,9 @@ function getAllProviderBindings(_ref3) {
|
|
|
11888
11888
|
|
|
11889
11889
|
function ownKeys$1V(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11890
11890
|
function _objectSpread$1V(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1V(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1V(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11891
|
-
function _createForOfIteratorHelper$
|
|
11892
|
-
function _unsupportedIterableToArray$
|
|
11893
|
-
function _arrayLikeToArray$
|
|
11891
|
+
function _createForOfIteratorHelper$1i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1i(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11892
|
+
function _unsupportedIterableToArray$1i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1i(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1i(r, a) : void 0; } }
|
|
11893
|
+
function _arrayLikeToArray$1i(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11894
11894
|
var EVENT_STRING_RE = /^([^[]+)\[([^\]]+)\]\.(.+)$/;
|
|
11895
11895
|
|
|
11896
11896
|
/** Parse "Component[itemId].event" → { component, itemId, event }. */
|
|
@@ -12067,7 +12067,7 @@ function getCurrentWiring(workspace) {
|
|
|
12067
12067
|
// Live format is array; defensive guard for legacy object
|
|
12068
12068
|
// form (a single source widget keyed under the handler).
|
|
12069
12069
|
var events = Array.isArray(eventList) ? eventList : typeof eventList === "string" ? [eventList] : [];
|
|
12070
|
-
var _iterator = _createForOfIteratorHelper$
|
|
12070
|
+
var _iterator = _createForOfIteratorHelper$1i(events),
|
|
12071
12071
|
_step;
|
|
12072
12072
|
try {
|
|
12073
12073
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -12131,7 +12131,7 @@ function getOrphanedListeners(workspace, getWidgetConfig) {
|
|
|
12131
12131
|
if (!byItemId.has(id)) byItemId.set(id, meta);
|
|
12132
12132
|
});
|
|
12133
12133
|
var orphans = [];
|
|
12134
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
12134
|
+
var _iterator2 = _createForOfIteratorHelper$1i(wiring),
|
|
12135
12135
|
_step2;
|
|
12136
12136
|
try {
|
|
12137
12137
|
var _loop = function _loop() {
|
|
@@ -12218,7 +12218,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
12218
12218
|
var liveKeys = new Set();
|
|
12219
12219
|
var _walkForLive = function walkForLive(items) {
|
|
12220
12220
|
if (!Array.isArray(items)) return;
|
|
12221
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
12221
|
+
var _iterator3 = _createForOfIteratorHelper$1i(items),
|
|
12222
12222
|
_step3;
|
|
12223
12223
|
try {
|
|
12224
12224
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -12239,7 +12239,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
12239
12239
|
};
|
|
12240
12240
|
_walkForLive(workspace.layout);
|
|
12241
12241
|
if (Array.isArray(workspace.pages)) {
|
|
12242
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
12242
|
+
var _iterator4 = _createForOfIteratorHelper$1i(workspace.pages),
|
|
12243
12243
|
_step4;
|
|
12244
12244
|
try {
|
|
12245
12245
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -12256,7 +12256,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
12256
12256
|
var removed = 0;
|
|
12257
12257
|
var _pruneListeners = function pruneListeners(items) {
|
|
12258
12258
|
if (!Array.isArray(items)) return;
|
|
12259
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
12259
|
+
var _iterator5 = _createForOfIteratorHelper$1i(items),
|
|
12260
12260
|
_step5;
|
|
12261
12261
|
try {
|
|
12262
12262
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -12268,7 +12268,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
12268
12268
|
var events = item.listeners[handler];
|
|
12269
12269
|
if (!Array.isArray(events)) continue;
|
|
12270
12270
|
var kept = [];
|
|
12271
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
12271
|
+
var _iterator6 = _createForOfIteratorHelper$1i(events),
|
|
12272
12272
|
_step6;
|
|
12273
12273
|
try {
|
|
12274
12274
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -12305,7 +12305,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
12305
12305
|
};
|
|
12306
12306
|
_pruneListeners(workspace.layout);
|
|
12307
12307
|
if (Array.isArray(workspace.pages)) {
|
|
12308
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
12308
|
+
var _iterator7 = _createForOfIteratorHelper$1i(workspace.pages),
|
|
12309
12309
|
_step7;
|
|
12310
12310
|
try {
|
|
12311
12311
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -12349,7 +12349,7 @@ function applyWiringChanges(workspace, _ref) {
|
|
|
12349
12349
|
});
|
|
12350
12350
|
return byReceiver.get(id);
|
|
12351
12351
|
};
|
|
12352
|
-
var _iterator8 = _createForOfIteratorHelper$
|
|
12352
|
+
var _iterator8 = _createForOfIteratorHelper$1i(adds),
|
|
12353
12353
|
_step8;
|
|
12354
12354
|
try {
|
|
12355
12355
|
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
@@ -12362,7 +12362,7 @@ function applyWiringChanges(workspace, _ref) {
|
|
|
12362
12362
|
} finally {
|
|
12363
12363
|
_iterator8.f();
|
|
12364
12364
|
}
|
|
12365
|
-
var _iterator9 = _createForOfIteratorHelper$
|
|
12365
|
+
var _iterator9 = _createForOfIteratorHelper$1i(removes),
|
|
12366
12366
|
_step9;
|
|
12367
12367
|
try {
|
|
12368
12368
|
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
@@ -12436,7 +12436,7 @@ function applyToItem(listeners, _ref2) {
|
|
|
12436
12436
|
}
|
|
12437
12437
|
|
|
12438
12438
|
// Removes first so a re-add (rare) lands.
|
|
12439
|
-
var _iterator0 = _createForOfIteratorHelper$
|
|
12439
|
+
var _iterator0 = _createForOfIteratorHelper$1i(removes),
|
|
12440
12440
|
_step0;
|
|
12441
12441
|
try {
|
|
12442
12442
|
var _loop2 = function _loop2() {
|
|
@@ -12465,7 +12465,7 @@ function applyToItem(listeners, _ref2) {
|
|
|
12465
12465
|
} finally {
|
|
12466
12466
|
_iterator0.f();
|
|
12467
12467
|
}
|
|
12468
|
-
var _iterator1 = _createForOfIteratorHelper$
|
|
12468
|
+
var _iterator1 = _createForOfIteratorHelper$1i(adds),
|
|
12469
12469
|
_step1;
|
|
12470
12470
|
try {
|
|
12471
12471
|
for (_iterator1.s(); !(_step1 = _iterator1.n()).done;) {
|
|
@@ -12524,9 +12524,9 @@ var SectionLayout = function SectionLayout(_ref) {
|
|
|
12524
12524
|
});
|
|
12525
12525
|
};
|
|
12526
12526
|
|
|
12527
|
-
function _createForOfIteratorHelper$
|
|
12528
|
-
function _unsupportedIterableToArray$
|
|
12529
|
-
function _arrayLikeToArray$
|
|
12527
|
+
function _createForOfIteratorHelper$1h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1h(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12528
|
+
function _unsupportedIterableToArray$1h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1h(r, a) : void 0; } }
|
|
12529
|
+
function _arrayLikeToArray$1h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
12530
12530
|
|
|
12531
12531
|
/**
|
|
12532
12532
|
* @param {Array<object>} workspaces dashboards (each with id, name, layout/pages)
|
|
@@ -12538,7 +12538,7 @@ function _arrayLikeToArray$1g(r, a) { (null == a || a > r.length) && (a = r.leng
|
|
|
12538
12538
|
function buildWidgetEventCatalog(workspaces, getWidgetConfig) {
|
|
12539
12539
|
if (!Array.isArray(workspaces)) return [];
|
|
12540
12540
|
var out = [];
|
|
12541
|
-
var _iterator = _createForOfIteratorHelper$
|
|
12541
|
+
var _iterator = _createForOfIteratorHelper$1h(workspaces),
|
|
12542
12542
|
_step;
|
|
12543
12543
|
try {
|
|
12544
12544
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -12611,12 +12611,12 @@ function describeSubscription(sub, catalog) {
|
|
|
12611
12611
|
// Bot subscriptions resolve against the bot catalog; `kind` lets the form
|
|
12612
12612
|
// say "bot missing" instead of "widget missing".
|
|
12613
12613
|
if (sub && sub.source && sub.source.kind === "bot") {
|
|
12614
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
12614
|
+
var _iterator2 = _createForOfIteratorHelper$1h(botCatalog || []),
|
|
12615
12615
|
_step2;
|
|
12616
12616
|
try {
|
|
12617
12617
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
12618
12618
|
var b = _step2.value;
|
|
12619
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
12619
|
+
var _iterator3 = _createForOfIteratorHelper$1h(b.events),
|
|
12620
12620
|
_step3;
|
|
12621
12621
|
try {
|
|
12622
12622
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -12647,17 +12647,17 @@ function describeSubscription(sub, catalog) {
|
|
|
12647
12647
|
kind: "bot"
|
|
12648
12648
|
};
|
|
12649
12649
|
}
|
|
12650
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
12650
|
+
var _iterator4 = _createForOfIteratorHelper$1h(catalog || []),
|
|
12651
12651
|
_step4;
|
|
12652
12652
|
try {
|
|
12653
12653
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
12654
12654
|
var ws = _step4.value;
|
|
12655
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
12655
|
+
var _iterator5 = _createForOfIteratorHelper$1h(ws.widgets),
|
|
12656
12656
|
_step5;
|
|
12657
12657
|
try {
|
|
12658
12658
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
12659
12659
|
var w = _step5.value;
|
|
12660
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
12660
|
+
var _iterator6 = _createForOfIteratorHelper$1h(w.events),
|
|
12661
12661
|
_step6;
|
|
12662
12662
|
try {
|
|
12663
12663
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -12717,7 +12717,7 @@ function buildBotEventCatalog(bots, toolSources) {
|
|
|
12717
12717
|
if (!Array.isArray(bots)) return [];
|
|
12718
12718
|
var sources = Array.isArray(toolSources) ? toolSources : [];
|
|
12719
12719
|
var out = [];
|
|
12720
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
12720
|
+
var _iterator7 = _createForOfIteratorHelper$1h(bots),
|
|
12721
12721
|
_step7;
|
|
12722
12722
|
try {
|
|
12723
12723
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -12733,7 +12733,7 @@ function buildBotEventCatalog(bots, toolSources) {
|
|
|
12733
12733
|
event: "failed",
|
|
12734
12734
|
label: "Failed"
|
|
12735
12735
|
}];
|
|
12736
|
-
var _iterator8 = _createForOfIteratorHelper$
|
|
12736
|
+
var _iterator8 = _createForOfIteratorHelper$1h(bot.publishes || []),
|
|
12737
12737
|
_step8;
|
|
12738
12738
|
try {
|
|
12739
12739
|
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
@@ -12749,7 +12749,7 @@ function buildBotEventCatalog(bots, toolSources) {
|
|
|
12749
12749
|
} finally {
|
|
12750
12750
|
_iterator8.f();
|
|
12751
12751
|
}
|
|
12752
|
-
var _iterator9 = _createForOfIteratorHelper$
|
|
12752
|
+
var _iterator9 = _createForOfIteratorHelper$1h(bot.mcpServers || []),
|
|
12753
12753
|
_step9;
|
|
12754
12754
|
try {
|
|
12755
12755
|
var _loop = function _loop() {
|
|
@@ -12762,7 +12762,7 @@ function buildBotEventCatalog(bots, toolSources) {
|
|
|
12762
12762
|
var tools = Array.isArray(sel) ? src.tools.filter(function (t) {
|
|
12763
12763
|
return sel.includes(t);
|
|
12764
12764
|
}) : src.tools;
|
|
12765
|
-
var _iterator0 = _createForOfIteratorHelper$
|
|
12765
|
+
var _iterator0 = _createForOfIteratorHelper$1h(tools),
|
|
12766
12766
|
_step0;
|
|
12767
12767
|
try {
|
|
12768
12768
|
for (_iterator0.s(); !(_step0 = _iterator0.n()).done;) {
|
|
@@ -12866,21 +12866,21 @@ function buildTriggerOptions(_ref) {
|
|
|
12866
12866
|
var wsList = (Array.isArray(workspaces) ? workspaces : []).filter(function (ws) {
|
|
12867
12867
|
return ws && (teamKey === null || String(ws.id) === teamKey);
|
|
12868
12868
|
});
|
|
12869
|
-
var _iterator1 = _createForOfIteratorHelper$
|
|
12869
|
+
var _iterator1 = _createForOfIteratorHelper$1h(buildWidgetEventCatalog(wsList, getWidgetConfig)),
|
|
12870
12870
|
_step1;
|
|
12871
12871
|
try {
|
|
12872
12872
|
for (_iterator1.s(); !(_step1 = _iterator1.n()).done;) {
|
|
12873
12873
|
var ws = _step1.value;
|
|
12874
12874
|
var group = "Widgets on ".concat(ws.name);
|
|
12875
12875
|
var seen = {};
|
|
12876
|
-
var _iterator11 = _createForOfIteratorHelper$
|
|
12876
|
+
var _iterator11 = _createForOfIteratorHelper$1h(ws.widgets),
|
|
12877
12877
|
_step11;
|
|
12878
12878
|
try {
|
|
12879
12879
|
for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
|
|
12880
12880
|
var widget = _step11.value;
|
|
12881
12881
|
seen[widget.label] = (seen[widget.label] || 0) + 1;
|
|
12882
12882
|
var name = seen[widget.label] > 1 ? "".concat(widget.label, " (").concat(seen[widget.label], ")") : widget.label;
|
|
12883
|
-
var _iterator12 = _createForOfIteratorHelper$
|
|
12883
|
+
var _iterator12 = _createForOfIteratorHelper$1h(widget.events),
|
|
12884
12884
|
_step12;
|
|
12885
12885
|
try {
|
|
12886
12886
|
for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
|
|
@@ -12922,13 +12922,13 @@ function buildTriggerOptions(_ref) {
|
|
|
12922
12922
|
var wsOf = new Map(candidates.map(function (b) {
|
|
12923
12923
|
return [b.id, b.workspaceId];
|
|
12924
12924
|
}));
|
|
12925
|
-
var _iterator10 = _createForOfIteratorHelper$
|
|
12925
|
+
var _iterator10 = _createForOfIteratorHelper$1h(buildBotEventCatalog(candidates, toolSources, botId)),
|
|
12926
12926
|
_step10;
|
|
12927
12927
|
try {
|
|
12928
12928
|
for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
|
|
12929
12929
|
var entry = _step10.value;
|
|
12930
12930
|
var where = teamKey === null && wsOf.get(entry.botId) !== null && wsOf.get(entry.botId) !== undefined ? " (".concat(nameOfWs.get(String(wsOf.get(entry.botId))) || "another dashboard", ")") : "";
|
|
12931
|
-
var _iterator13 = _createForOfIteratorHelper$
|
|
12931
|
+
var _iterator13 = _createForOfIteratorHelper$1h(entry.events),
|
|
12932
12932
|
_step13;
|
|
12933
12933
|
try {
|
|
12934
12934
|
for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
|
|
@@ -12976,7 +12976,7 @@ function groupBotEvents(events) {
|
|
|
12976
12976
|
title: "Tools it uses",
|
|
12977
12977
|
events: []
|
|
12978
12978
|
}];
|
|
12979
|
-
var _iterator14 = _createForOfIteratorHelper$
|
|
12979
|
+
var _iterator14 = _createForOfIteratorHelper$1h(Array.isArray(events) ? events : []),
|
|
12980
12980
|
_step14;
|
|
12981
12981
|
try {
|
|
12982
12982
|
var _loop2 = function _loop2() {
|
|
@@ -13585,9 +13585,9 @@ var getUserConfigurableProviders = function getUserConfigurableProviders(provide
|
|
|
13585
13585
|
});
|
|
13586
13586
|
};
|
|
13587
13587
|
|
|
13588
|
-
function _createForOfIteratorHelper$
|
|
13589
|
-
function _unsupportedIterableToArray$
|
|
13590
|
-
function _arrayLikeToArray$
|
|
13588
|
+
function _createForOfIteratorHelper$1g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1g(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
13589
|
+
function _unsupportedIterableToArray$1g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1g(r, a) : void 0; } }
|
|
13590
|
+
function _arrayLikeToArray$1g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13591
13591
|
// A copy of electron/bots/teamPlan.js for the renderer (the Create screen's
|
|
13592
13592
|
// Plan step, phase 4). Keep the two the same — teamPlan.parity.test.js checks.
|
|
13593
13593
|
/**
|
|
@@ -13676,7 +13676,7 @@ function gridCells(grid) {
|
|
|
13676
13676
|
var problems = [];
|
|
13677
13677
|
var taken = new Map(); // "r.c" → widget
|
|
13678
13678
|
var seen = new Set();
|
|
13679
|
-
var _iterator = _createForOfIteratorHelper$
|
|
13679
|
+
var _iterator = _createForOfIteratorHelper$1g(Array.isArray(grid.cells) ? grid.cells : []),
|
|
13680
13680
|
_step;
|
|
13681
13681
|
try {
|
|
13682
13682
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -13782,7 +13782,7 @@ function checkGrid(grid, at, names, errors, warnings) {
|
|
|
13782
13782
|
var _gridCells3 = gridCells(grid),
|
|
13783
13783
|
fits = _gridCells3.fits,
|
|
13784
13784
|
problems = _gridCells3.problems;
|
|
13785
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
13785
|
+
var _iterator5 = _createForOfIteratorHelper$1g(problems),
|
|
13786
13786
|
_step5;
|
|
13787
13787
|
try {
|
|
13788
13788
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -13794,7 +13794,7 @@ function checkGrid(grid, at, names, errors, warnings) {
|
|
|
13794
13794
|
} finally {
|
|
13795
13795
|
_iterator5.f();
|
|
13796
13796
|
}
|
|
13797
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
13797
|
+
var _iterator6 = _createForOfIteratorHelper$1g(fits),
|
|
13798
13798
|
_step6;
|
|
13799
13799
|
try {
|
|
13800
13800
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -13999,7 +13999,7 @@ function validatePlan(plan) {
|
|
|
13999
13999
|
errors.push("".concat(at, ".pages[").concat(j, "] needs a name and a list of widgets."));
|
|
14000
14000
|
return;
|
|
14001
14001
|
}
|
|
14002
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
14002
|
+
var _iterator7 = _createForOfIteratorHelper$1g(pg.widgets),
|
|
14003
14003
|
_step7;
|
|
14004
14004
|
try {
|
|
14005
14005
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -14044,7 +14044,7 @@ function validatePlan(plan) {
|
|
|
14044
14044
|
// A provider the user doesn't have: the build waits on that step
|
|
14045
14045
|
// ("needs a provider", CRE-004 AC5) — a warning, not an error.
|
|
14046
14046
|
if (have.size && Array.isArray(p.providers)) {
|
|
14047
|
-
var _iterator8 = _createForOfIteratorHelper$
|
|
14047
|
+
var _iterator8 = _createForOfIteratorHelper$1g(p.providers),
|
|
14048
14048
|
_step8;
|
|
14049
14049
|
try {
|
|
14050
14050
|
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
@@ -14069,7 +14069,7 @@ function validatePlan(plan) {
|
|
|
14069
14069
|
if (Array.isArray(pieces)) {
|
|
14070
14070
|
var byName = function byName(kind) {
|
|
14071
14071
|
var out = new Map();
|
|
14072
|
-
var _iterator9 = _createForOfIteratorHelper$
|
|
14072
|
+
var _iterator9 = _createForOfIteratorHelper$1g(pieces),
|
|
14073
14073
|
_step9;
|
|
14074
14074
|
try {
|
|
14075
14075
|
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
@@ -14363,9 +14363,9 @@ function parseCron(cron) {
|
|
|
14363
14363
|
|
|
14364
14364
|
function ownKeys$1T(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14365
14365
|
function _objectSpread$1T(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1T(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1T(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14366
|
-
function _createForOfIteratorHelper$
|
|
14367
|
-
function _unsupportedIterableToArray$
|
|
14368
|
-
function _arrayLikeToArray$
|
|
14366
|
+
function _createForOfIteratorHelper$1f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1f(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
14367
|
+
function _unsupportedIterableToArray$1f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1f(r, a) : void 0; } }
|
|
14368
|
+
function _arrayLikeToArray$1f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14369
14369
|
|
|
14370
14370
|
// The Planner's names for provider types → the type ids Dash uses.
|
|
14371
14371
|
var ALIASES = {
|
|
@@ -14398,7 +14398,7 @@ function normalizeType(name) {
|
|
|
14398
14398
|
function providerTypesOf(providers) {
|
|
14399
14399
|
var list = Array.isArray(providers) ? providers : Object.values(providers || {});
|
|
14400
14400
|
var out = new Set();
|
|
14401
|
-
var _iterator = _createForOfIteratorHelper$
|
|
14401
|
+
var _iterator = _createForOfIteratorHelper$1f(list),
|
|
14402
14402
|
_step;
|
|
14403
14403
|
try {
|
|
14404
14404
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -14556,12 +14556,12 @@ function buildChecklist(plan) {
|
|
|
14556
14556
|
}
|
|
14557
14557
|
});
|
|
14558
14558
|
var seenType = new Set();
|
|
14559
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
14559
|
+
var _iterator2 = _createForOfIteratorHelper$1f(pieces),
|
|
14560
14560
|
_step2;
|
|
14561
14561
|
try {
|
|
14562
14562
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
14563
14563
|
var p = _step2.value;
|
|
14564
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
14564
|
+
var _iterator4 = _createForOfIteratorHelper$1f(p && p.providers || []),
|
|
14565
14565
|
_step4;
|
|
14566
14566
|
try {
|
|
14567
14567
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -14588,7 +14588,7 @@ function buildChecklist(plan) {
|
|
|
14588
14588
|
} finally {
|
|
14589
14589
|
_iterator2.f();
|
|
14590
14590
|
}
|
|
14591
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
14591
|
+
var _iterator3 = _createForOfIteratorHelper$1f(plan && plan.beforeBuilding || []),
|
|
14592
14592
|
_step3;
|
|
14593
14593
|
try {
|
|
14594
14594
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -14741,7 +14741,7 @@ function countsLine(plan) {
|
|
|
14741
14741
|
// A piece with no source (a plan's layout often has none) is one the
|
|
14742
14742
|
// plan makes: new — not "1 undefined layout" (QA 2026-10-22).
|
|
14743
14743
|
var bySource = {};
|
|
14744
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
14744
|
+
var _iterator5 = _createForOfIteratorHelper$1f(group),
|
|
14745
14745
|
_step5;
|
|
14746
14746
|
try {
|
|
14747
14747
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -14863,7 +14863,7 @@ function botDetails(piece) {
|
|
|
14863
14863
|
return s ? s.charAt(0).toUpperCase() + s.slice(1) : s;
|
|
14864
14864
|
};
|
|
14865
14865
|
var starts = [];
|
|
14866
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
14866
|
+
var _iterator7 = _createForOfIteratorHelper$1f(Array.isArray(p.on) ? p.on : []),
|
|
14867
14867
|
_step7;
|
|
14868
14868
|
try {
|
|
14869
14869
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -16478,9 +16478,9 @@ function mcpJsonToFormState(jsonString, nextRowId) {
|
|
|
16478
16478
|
return result;
|
|
16479
16479
|
}
|
|
16480
16480
|
|
|
16481
|
-
function _createForOfIteratorHelper$
|
|
16482
|
-
function _unsupportedIterableToArray$
|
|
16483
|
-
function _arrayLikeToArray$
|
|
16481
|
+
function _createForOfIteratorHelper$1e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1e(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
16482
|
+
function _unsupportedIterableToArray$1e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1e(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1e(r, a) : void 0; } }
|
|
16483
|
+
function _arrayLikeToArray$1e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
16484
16484
|
function ownKeys$1P(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16485
16485
|
function _objectSpread$1P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16486
16486
|
var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
@@ -16765,11 +16765,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
16765
16765
|
|
|
16766
16766
|
// Flatten all widgets from all packages for the widget list
|
|
16767
16767
|
flatWidgets = [];
|
|
16768
|
-
_iterator = _createForOfIteratorHelper$
|
|
16768
|
+
_iterator = _createForOfIteratorHelper$1e(result.packages || []);
|
|
16769
16769
|
try {
|
|
16770
16770
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
16771
16771
|
pkg = _step.value;
|
|
16772
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
16772
|
+
_iterator2 = _createForOfIteratorHelper$1e(pkg.widgets || []);
|
|
16773
16773
|
try {
|
|
16774
16774
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
16775
16775
|
widget = _step2.value;
|
|
@@ -18460,9 +18460,9 @@ function deriveWidgetOwnership(_ref2) {
|
|
|
18460
18460
|
};
|
|
18461
18461
|
}
|
|
18462
18462
|
|
|
18463
|
-
function _createForOfIteratorHelper$
|
|
18464
|
-
function _unsupportedIterableToArray$
|
|
18465
|
-
function _arrayLikeToArray$
|
|
18463
|
+
function _createForOfIteratorHelper$1d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1d(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
18464
|
+
function _unsupportedIterableToArray$1d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1d(r, a) : void 0; } }
|
|
18465
|
+
function _arrayLikeToArray$1d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
18466
18466
|
|
|
18467
18467
|
/**
|
|
18468
18468
|
* "Built by AI · yours", "Loaded from your folder · yours",
|
|
@@ -18528,7 +18528,7 @@ function listenerRows(item) {
|
|
|
18528
18528
|
var handler = _Object$keys[_i];
|
|
18529
18529
|
var list = listeners[handler];
|
|
18530
18530
|
if (!Array.isArray(list)) continue;
|
|
18531
|
-
var _iterator = _createForOfIteratorHelper$
|
|
18531
|
+
var _iterator = _createForOfIteratorHelper$1d(list),
|
|
18532
18532
|
_step;
|
|
18533
18533
|
try {
|
|
18534
18534
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -18941,9 +18941,9 @@ var useWidgetSchedulerStatus = function useWidgetSchedulerStatus(widgetId) {
|
|
|
18941
18941
|
};
|
|
18942
18942
|
};
|
|
18943
18943
|
|
|
18944
|
-
function _createForOfIteratorHelper$
|
|
18945
|
-
function _unsupportedIterableToArray$
|
|
18946
|
-
function _arrayLikeToArray$
|
|
18944
|
+
function _createForOfIteratorHelper$1c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1c(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
18945
|
+
function _unsupportedIterableToArray$1c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1c(r, a) : void 0; } }
|
|
18946
|
+
function _arrayLikeToArray$1c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
18947
18947
|
function formatCountdown(ms) {
|
|
18948
18948
|
if (ms == null || ms < 0) return "--";
|
|
18949
18949
|
if (ms < 1000) return "< 1s";
|
|
@@ -19072,7 +19072,7 @@ var WidgetCardStatusBar = function WidgetCardStatusBar(_ref) {
|
|
|
19072
19072
|
|
|
19073
19073
|
// Find soonest countdown among enabled tasks
|
|
19074
19074
|
var soonestMs = null;
|
|
19075
|
-
var _iterator = _createForOfIteratorHelper$
|
|
19075
|
+
var _iterator = _createForOfIteratorHelper$1c(enabledTasks),
|
|
19076
19076
|
_step;
|
|
19077
19077
|
try {
|
|
19078
19078
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -19437,9 +19437,9 @@ function formatMonthCost(spend, botId) {
|
|
|
19437
19437
|
return "No runs this month";
|
|
19438
19438
|
}
|
|
19439
19439
|
|
|
19440
|
-
function _createForOfIteratorHelper$
|
|
19441
|
-
function _unsupportedIterableToArray$
|
|
19442
|
-
function _arrayLikeToArray$
|
|
19440
|
+
function _createForOfIteratorHelper$1b(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1b(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
19441
|
+
function _unsupportedIterableToArray$1b(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1b(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1b(r, a) : void 0; } }
|
|
19442
|
+
function _arrayLikeToArray$1b(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
19443
19443
|
|
|
19444
19444
|
/**
|
|
19445
19445
|
* Select-to-edit in the dashboard editor (create-entry phase 1c, CRE-006).
|
|
@@ -19476,7 +19476,7 @@ function widgetsOf$1(layout) {
|
|
|
19476
19476
|
|
|
19477
19477
|
/** The grid and cell holding widget `itemId`, or null. */
|
|
19478
19478
|
function findWidgetCell(layout, itemId) {
|
|
19479
|
-
var _iterator = _createForOfIteratorHelper$
|
|
19479
|
+
var _iterator = _createForOfIteratorHelper$1b(Array.isArray(layout) ? layout : []),
|
|
19480
19480
|
_step;
|
|
19481
19481
|
try {
|
|
19482
19482
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -19507,7 +19507,7 @@ function botsFeeding(widget) {
|
|
|
19507
19507
|
var out = new Set();
|
|
19508
19508
|
for (var _i2 = 0, _Object$values = Object.values(widget && widget.listeners || {}); _i2 < _Object$values.length; _i2++) {
|
|
19509
19509
|
var events = _Object$values[_i2];
|
|
19510
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
19510
|
+
var _iterator2 = _createForOfIteratorHelper$1b(Array.isArray(events) ? events : []),
|
|
19511
19511
|
_step2;
|
|
19512
19512
|
try {
|
|
19513
19513
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -19552,7 +19552,7 @@ function relatedTo(selection) {
|
|
|
19552
19552
|
return w.uuid === selection.uuid;
|
|
19553
19553
|
});
|
|
19554
19554
|
if (!widget) return related;
|
|
19555
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
19555
|
+
var _iterator3 = _createForOfIteratorHelper$1b(botsFeeding(widget)),
|
|
19556
19556
|
_step3;
|
|
19557
19557
|
try {
|
|
19558
19558
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -19564,7 +19564,7 @@ function relatedTo(selection) {
|
|
|
19564
19564
|
} finally {
|
|
19565
19565
|
_iterator3.f();
|
|
19566
19566
|
}
|
|
19567
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
19567
|
+
var _iterator4 = _createForOfIteratorHelper$1b(bots),
|
|
19568
19568
|
_step4;
|
|
19569
19569
|
try {
|
|
19570
19570
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -19580,7 +19580,7 @@ function relatedTo(selection) {
|
|
|
19580
19580
|
var _bot = bots.find(function (b) {
|
|
19581
19581
|
return b.id === selection.botId;
|
|
19582
19582
|
});
|
|
19583
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
19583
|
+
var _iterator5 = _createForOfIteratorHelper$1b(widgets),
|
|
19584
19584
|
_step5;
|
|
19585
19585
|
try {
|
|
19586
19586
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -20160,9 +20160,9 @@ var WidgetNotFound = function WidgetNotFound(_ref) {
|
|
|
20160
20160
|
var GRID_CELL_WIDGET_TYPE = "grid-cell-widget";
|
|
20161
20161
|
var SIDEBAR_WIDGET_TYPE = "sidebar-widget";
|
|
20162
20162
|
|
|
20163
|
-
function _createForOfIteratorHelper$
|
|
20164
|
-
function _unsupportedIterableToArray$
|
|
20165
|
-
function _arrayLikeToArray$
|
|
20163
|
+
function _createForOfIteratorHelper$1a(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1a(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
20164
|
+
function _unsupportedIterableToArray$1a(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1a(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1a(r, a) : void 0; } }
|
|
20165
|
+
function _arrayLikeToArray$1a(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
20166
20166
|
function ownKeys$1N(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20167
20167
|
function _objectSpread$1N(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1N(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1N(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20168
20168
|
var DraggableDroppableCellBody = function DraggableDroppableCellBody(props) {
|
|
@@ -20820,7 +20820,7 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref4) {
|
|
|
20820
20820
|
return selectable["delete"](cn);
|
|
20821
20821
|
});
|
|
20822
20822
|
var resolved = new Set();
|
|
20823
|
-
var _iterator = _createForOfIteratorHelper$
|
|
20823
|
+
var _iterator = _createForOfIteratorHelper$1a(selectable),
|
|
20824
20824
|
_step;
|
|
20825
20825
|
try {
|
|
20826
20826
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -28443,9 +28443,9 @@ function migrateBareComponentName(componentMap, component) {
|
|
|
28443
28443
|
|
|
28444
28444
|
function ownKeys$1C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
28445
28445
|
function _objectSpread$1C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1C(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28446
|
-
function _createForOfIteratorHelper$
|
|
28447
|
-
function _unsupportedIterableToArray$
|
|
28448
|
-
function _arrayLikeToArray$
|
|
28446
|
+
function _createForOfIteratorHelper$19(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$19(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
28447
|
+
function _unsupportedIterableToArray$19(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$19(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$19(r, a) : void 0; } }
|
|
28448
|
+
function _arrayLikeToArray$19(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
28449
28449
|
/**
|
|
28450
28450
|
* The model for all layout components used primarily in the renderLayout method
|
|
28451
28451
|
* @param {Object} layoutItem an object containing various attributes of the layout item
|
|
@@ -28457,7 +28457,7 @@ function _arrayLikeToArray$18(r, a) { (null == a || a > r.length) && (a = r.leng
|
|
|
28457
28457
|
function sortObjectByKeys(obj) {
|
|
28458
28458
|
var sortedKeys = Object.keys(obj).sort();
|
|
28459
28459
|
var sortedObj = {};
|
|
28460
|
-
var _iterator = _createForOfIteratorHelper$
|
|
28460
|
+
var _iterator = _createForOfIteratorHelper$19(sortedKeys),
|
|
28461
28461
|
_step;
|
|
28462
28462
|
try {
|
|
28463
28463
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -28775,9 +28775,9 @@ var SettingsModel = function SettingsModel() {
|
|
|
28775
28775
|
return obj;
|
|
28776
28776
|
};
|
|
28777
28777
|
|
|
28778
|
-
function _createForOfIteratorHelper$
|
|
28779
|
-
function _unsupportedIterableToArray$
|
|
28780
|
-
function _arrayLikeToArray$
|
|
28778
|
+
function _createForOfIteratorHelper$18(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$18(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
28779
|
+
function _unsupportedIterableToArray$18(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$18(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$18(r, a) : void 0; } }
|
|
28780
|
+
function _arrayLikeToArray$18(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
28781
28781
|
|
|
28782
28782
|
/**
|
|
28783
28783
|
* Workspace-level pre-pass that migrates legacy bare component
|
|
@@ -28852,7 +28852,7 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
|
|
|
28852
28852
|
};
|
|
28853
28853
|
var _walk = function walk(items) {
|
|
28854
28854
|
if (!Array.isArray(items)) return;
|
|
28855
|
-
var _iterator = _createForOfIteratorHelper$
|
|
28855
|
+
var _iterator = _createForOfIteratorHelper$18(items),
|
|
28856
28856
|
_step;
|
|
28857
28857
|
try {
|
|
28858
28858
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -28874,7 +28874,7 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
|
|
|
28874
28874
|
};
|
|
28875
28875
|
_walk(workspace.layout);
|
|
28876
28876
|
if (Array.isArray(workspace.pages)) {
|
|
28877
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
28877
|
+
var _iterator2 = _createForOfIteratorHelper$18(workspace.pages),
|
|
28878
28878
|
_step2;
|
|
28879
28879
|
try {
|
|
28880
28880
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -28891,9 +28891,9 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
|
|
|
28891
28891
|
return counts;
|
|
28892
28892
|
}
|
|
28893
28893
|
|
|
28894
|
-
function _createForOfIteratorHelper$
|
|
28895
|
-
function _unsupportedIterableToArray$
|
|
28896
|
-
function _arrayLikeToArray$
|
|
28894
|
+
function _createForOfIteratorHelper$17(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$17(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
28895
|
+
function _unsupportedIterableToArray$17(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$17(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$17(r, a) : void 0; } }
|
|
28896
|
+
function _arrayLikeToArray$17(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
28897
28897
|
/**
|
|
28898
28898
|
* cleanForeignWidgetsFromWorkspace.js
|
|
28899
28899
|
*
|
|
@@ -28934,7 +28934,7 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
|
|
|
28934
28934
|
var _cleanList = function cleanList(items) {
|
|
28935
28935
|
if (!Array.isArray(items)) return items;
|
|
28936
28936
|
var kept = [];
|
|
28937
|
-
var _iterator = _createForOfIteratorHelper$
|
|
28937
|
+
var _iterator = _createForOfIteratorHelper$17(items),
|
|
28938
28938
|
_step;
|
|
28939
28939
|
try {
|
|
28940
28940
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -28971,7 +28971,7 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
|
|
|
28971
28971
|
workspace.sidebarLayout = _cleanList(workspace.sidebarLayout);
|
|
28972
28972
|
}
|
|
28973
28973
|
if (Array.isArray(workspace.pages)) {
|
|
28974
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
28974
|
+
var _iterator2 = _createForOfIteratorHelper$17(workspace.pages),
|
|
28975
28975
|
_step2;
|
|
28976
28976
|
try {
|
|
28977
28977
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -28989,9 +28989,9 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
|
|
|
28989
28989
|
return summary;
|
|
28990
28990
|
}
|
|
28991
28991
|
|
|
28992
|
-
function _createForOfIteratorHelper$
|
|
28993
|
-
function _unsupportedIterableToArray$
|
|
28994
|
-
function _arrayLikeToArray$
|
|
28992
|
+
function _createForOfIteratorHelper$16(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$16(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
28993
|
+
function _unsupportedIterableToArray$16(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$16(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$16(r, a) : void 0; } }
|
|
28994
|
+
function _arrayLikeToArray$16(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
28995
28995
|
/**
|
|
28996
28996
|
* migrateLayoutItemTypes.js
|
|
28997
28997
|
*
|
|
@@ -29053,7 +29053,7 @@ function migrateLayoutItemTypes(workspace) {
|
|
|
29053
29053
|
};
|
|
29054
29054
|
var _walk = function walk(items) {
|
|
29055
29055
|
if (!Array.isArray(items)) return;
|
|
29056
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29056
|
+
var _iterator = _createForOfIteratorHelper$16(items),
|
|
29057
29057
|
_step;
|
|
29058
29058
|
try {
|
|
29059
29059
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29071,7 +29071,7 @@ function migrateLayoutItemTypes(workspace) {
|
|
|
29071
29071
|
};
|
|
29072
29072
|
_walk(workspace.layout);
|
|
29073
29073
|
if (Array.isArray(workspace.pages)) {
|
|
29074
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
29074
|
+
var _iterator2 = _createForOfIteratorHelper$16(workspace.pages),
|
|
29075
29075
|
_step2;
|
|
29076
29076
|
try {
|
|
29077
29077
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -29647,9 +29647,9 @@ var ThemeModel = function ThemeModel() {
|
|
|
29647
29647
|
var _excluded$7 = ["key", "label"];
|
|
29648
29648
|
function ownKeys$1A(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29649
29649
|
function _objectSpread$1A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29650
|
-
function _createForOfIteratorHelper$
|
|
29651
|
-
function _unsupportedIterableToArray$
|
|
29652
|
-
function _arrayLikeToArray$
|
|
29650
|
+
function _createForOfIteratorHelper$15(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$15(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
29651
|
+
function _unsupportedIterableToArray$15(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$15(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$15(r, a) : void 0; } }
|
|
29652
|
+
function _arrayLikeToArray$15(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
29653
29653
|
/**
|
|
29654
29654
|
* A widget's settings as an object keyed by setting name — the documented
|
|
29655
29655
|
* userConfig shape ({ title: { type, displayName, … } }). Some widgets list
|
|
@@ -29679,7 +29679,7 @@ function normalizeUserConfig(userConfig) {
|
|
|
29679
29679
|
return changed ? _out : userConfig;
|
|
29680
29680
|
}
|
|
29681
29681
|
var out = {};
|
|
29682
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29682
|
+
var _iterator = _createForOfIteratorHelper$15(userConfig),
|
|
29683
29683
|
_step;
|
|
29684
29684
|
try {
|
|
29685
29685
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29739,9 +29739,9 @@ function normalizeField(field) {
|
|
|
29739
29739
|
return next;
|
|
29740
29740
|
}
|
|
29741
29741
|
|
|
29742
|
-
function _createForOfIteratorHelper$
|
|
29743
|
-
function _unsupportedIterableToArray$
|
|
29744
|
-
function _arrayLikeToArray$
|
|
29742
|
+
function _createForOfIteratorHelper$14(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$14(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
29743
|
+
function _unsupportedIterableToArray$14(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$14(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$14(r, a) : void 0; } }
|
|
29744
|
+
function _arrayLikeToArray$14(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
29745
29745
|
|
|
29746
29746
|
/**
|
|
29747
29747
|
* ComponentConfigModel
|
|
@@ -29821,7 +29821,7 @@ var ComponentConfigModel = function ComponentConfigModel() {
|
|
|
29821
29821
|
if ("providers" in obj && Array.isArray(obj.providers)) {
|
|
29822
29822
|
var seen = new Set();
|
|
29823
29823
|
var cleaned = [];
|
|
29824
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29824
|
+
var _iterator = _createForOfIteratorHelper$14(obj.providers),
|
|
29825
29825
|
_step;
|
|
29826
29826
|
try {
|
|
29827
29827
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29867,9 +29867,9 @@ var MenuItemModel = function MenuItemModel() {
|
|
|
29867
29867
|
return m;
|
|
29868
29868
|
};
|
|
29869
29869
|
|
|
29870
|
-
function _createForOfIteratorHelper$
|
|
29871
|
-
function _unsupportedIterableToArray$
|
|
29872
|
-
function _arrayLikeToArray$
|
|
29870
|
+
function _createForOfIteratorHelper$13(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$13(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
29871
|
+
function _unsupportedIterableToArray$13(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$13(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$13(r, a) : void 0; } }
|
|
29872
|
+
function _arrayLikeToArray$13(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
29873
29873
|
function ownKeys$1z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29874
29874
|
function _objectSpread$1z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29875
29875
|
/**
|
|
@@ -29929,7 +29929,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
29929
29929
|
maxRow = -Infinity;
|
|
29930
29930
|
var minCol = Infinity,
|
|
29931
29931
|
maxCol = -Infinity;
|
|
29932
|
-
var _iterator = _createForOfIteratorHelper$
|
|
29932
|
+
var _iterator = _createForOfIteratorHelper$13(cellNumbers),
|
|
29933
29933
|
_step;
|
|
29934
29934
|
try {
|
|
29935
29935
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29953,7 +29953,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
29953
29953
|
} finally {
|
|
29954
29954
|
_iterator.f();
|
|
29955
29955
|
}
|
|
29956
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
29956
|
+
var _iterator2 = _createForOfIteratorHelper$13(cellNumbers),
|
|
29957
29957
|
_step2;
|
|
29958
29958
|
try {
|
|
29959
29959
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -29995,7 +29995,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
29995
29995
|
_iterator2.f();
|
|
29996
29996
|
}
|
|
29997
29997
|
var componentsInRange = [];
|
|
29998
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
29998
|
+
var _iterator3 = _createForOfIteratorHelper$13(cellNumbers),
|
|
29999
29999
|
_step3;
|
|
30000
30000
|
try {
|
|
30001
30001
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -30033,7 +30033,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
30033
30033
|
// other selected cells get hidden and have their component refs
|
|
30034
30034
|
// cleared (so a stale ref in a hidden cell never re-renders).
|
|
30035
30035
|
var keepCell = cellNumbers[0];
|
|
30036
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
30036
|
+
var _iterator4 = _createForOfIteratorHelper$13(cellNumbers),
|
|
30037
30037
|
_step4;
|
|
30038
30038
|
try {
|
|
30039
30039
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -30563,9 +30563,9 @@ function deleteGridColumnOp(grid, colNumber) {
|
|
|
30563
30563
|
};
|
|
30564
30564
|
}
|
|
30565
30565
|
|
|
30566
|
-
function _createForOfIteratorHelper$
|
|
30567
|
-
function _unsupportedIterableToArray$
|
|
30568
|
-
function _arrayLikeToArray$
|
|
30566
|
+
function _createForOfIteratorHelper$12(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$12(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
30567
|
+
function _unsupportedIterableToArray$12(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$12(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$12(r, a) : void 0; } }
|
|
30568
|
+
function _arrayLikeToArray$12(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
30569
30569
|
/**
|
|
30570
30570
|
* A Model for a Workspace (Dashboard)
|
|
30571
30571
|
* The Dashboard in this instance is the entire Layout inclusive of the workspaces and widgets
|
|
@@ -30637,7 +30637,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
30637
30637
|
|
|
30638
30638
|
// Also normalize grids within pages
|
|
30639
30639
|
if (this.pages.length > 0) {
|
|
30640
|
-
var _iterator = _createForOfIteratorHelper$
|
|
30640
|
+
var _iterator = _createForOfIteratorHelper$12(this.pages),
|
|
30641
30641
|
_step;
|
|
30642
30642
|
try {
|
|
30643
30643
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -32039,7 +32039,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
32039
32039
|
// destructive-delete behavior.
|
|
32040
32040
|
var result = deleteGridRowOp(gridContainer.grid, rowNumber);
|
|
32041
32041
|
gridContainer.grid = result.grid;
|
|
32042
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
32042
|
+
var _iterator2 = _createForOfIteratorHelper$12(result.orphanedComponents),
|
|
32043
32043
|
_step2;
|
|
32044
32044
|
try {
|
|
32045
32045
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -32138,7 +32138,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
32138
32138
|
// Slice 11: pure helper.
|
|
32139
32139
|
var result = deleteGridColumnOp(gridContainer.grid, colNumber);
|
|
32140
32140
|
gridContainer.grid = result.grid;
|
|
32141
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
32141
|
+
var _iterator3 = _createForOfIteratorHelper$12(result.orphanedComponents),
|
|
32142
32142
|
_step3;
|
|
32143
32143
|
try {
|
|
32144
32144
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -32233,7 +32233,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
32233
32233
|
try {
|
|
32234
32234
|
// Collect all item IDs actively referenced by grid cells
|
|
32235
32235
|
var activeItemIds = new Set();
|
|
32236
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
32236
|
+
var _iterator4 = _createForOfIteratorHelper$12(this.layout),
|
|
32237
32237
|
_step4;
|
|
32238
32238
|
try {
|
|
32239
32239
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -32273,7 +32273,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
32273
32273
|
});
|
|
32274
32274
|
|
|
32275
32275
|
// Clean listener references on remaining items for each removed orphan
|
|
32276
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
32276
|
+
var _iterator5 = _createForOfIteratorHelper$12(orphanedIds),
|
|
32277
32277
|
_step5;
|
|
32278
32278
|
try {
|
|
32279
32279
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -33046,9 +33046,9 @@ var useDashboard = function useDashboard() {
|
|
|
33046
33046
|
});
|
|
33047
33047
|
};
|
|
33048
33048
|
|
|
33049
|
-
function _createForOfIteratorHelper$
|
|
33050
|
-
function _unsupportedIterableToArray$
|
|
33051
|
-
function _arrayLikeToArray$
|
|
33049
|
+
function _createForOfIteratorHelper$11(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$11(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
33050
|
+
function _unsupportedIterableToArray$11(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$11(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$11(r, a) : void 0; } }
|
|
33051
|
+
function _arrayLikeToArray$11(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
33052
33052
|
|
|
33053
33053
|
/**
|
|
33054
33054
|
* useWidgetProviders Hook
|
|
@@ -33111,7 +33111,7 @@ var useWidgetProviders = function useWidgetProviders() {
|
|
|
33111
33111
|
// 2. Workspace-level: stored as workspace.selectedProviders[widgetId][providerType]
|
|
33112
33112
|
// 3. App-default: any provider in AppContext.providers flagged isDefaultForType
|
|
33113
33113
|
var providers = {};
|
|
33114
|
-
var _iterator = _createForOfIteratorHelper$
|
|
33114
|
+
var _iterator = _createForOfIteratorHelper$11(providerDeclarations),
|
|
33115
33115
|
_step;
|
|
33116
33116
|
try {
|
|
33117
33117
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -33170,9 +33170,9 @@ var useWidgetProviders = function useWidgetProviders() {
|
|
|
33170
33170
|
};
|
|
33171
33171
|
};
|
|
33172
33172
|
|
|
33173
|
-
function _createForOfIteratorHelper
|
|
33174
|
-
function _unsupportedIterableToArray
|
|
33175
|
-
function _arrayLikeToArray
|
|
33173
|
+
function _createForOfIteratorHelper$10(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$10(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
33174
|
+
function _unsupportedIterableToArray$10(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$10(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$10(r, a) : void 0; } }
|
|
33175
|
+
function _arrayLikeToArray$10(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
33176
33176
|
|
|
33177
33177
|
/**
|
|
33178
33178
|
* Module-level shared state for MCP server connections.
|
|
@@ -33227,7 +33227,7 @@ function unionPathScope(grants, serverName) {
|
|
|
33227
33227
|
allowedPaths: []
|
|
33228
33228
|
};
|
|
33229
33229
|
}
|
|
33230
|
-
var _iterator = _createForOfIteratorHelper
|
|
33230
|
+
var _iterator = _createForOfIteratorHelper$10(grants),
|
|
33231
33231
|
_step;
|
|
33232
33232
|
try {
|
|
33233
33233
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -33240,7 +33240,7 @@ function unionPathScope(grants, serverName) {
|
|
|
33240
33240
|
var serverPerms = servers[serverName];
|
|
33241
33241
|
if (!serverPerms || _typeof(serverPerms) !== "object") continue;
|
|
33242
33242
|
if (Array.isArray(serverPerms.readPaths)) {
|
|
33243
|
-
var _iterator2 = _createForOfIteratorHelper
|
|
33243
|
+
var _iterator2 = _createForOfIteratorHelper$10(serverPerms.readPaths),
|
|
33244
33244
|
_step2;
|
|
33245
33245
|
try {
|
|
33246
33246
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -33254,7 +33254,7 @@ function unionPathScope(grants, serverName) {
|
|
|
33254
33254
|
}
|
|
33255
33255
|
}
|
|
33256
33256
|
if (Array.isArray(serverPerms.writePaths)) {
|
|
33257
|
-
var _iterator3 = _createForOfIteratorHelper
|
|
33257
|
+
var _iterator3 = _createForOfIteratorHelper$10(serverPerms.writePaths),
|
|
33258
33258
|
_step3;
|
|
33259
33259
|
try {
|
|
33260
33260
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -34061,9 +34061,9 @@ var useNotifications = function useNotifications() {
|
|
|
34061
34061
|
};
|
|
34062
34062
|
};
|
|
34063
34063
|
|
|
34064
|
-
function _createForOfIteratorHelper
|
|
34065
|
-
function _unsupportedIterableToArray
|
|
34066
|
-
function _arrayLikeToArray
|
|
34064
|
+
function _createForOfIteratorHelper$$(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$$(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
34065
|
+
function _unsupportedIterableToArray$$(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$$(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$$(r, a) : void 0; } }
|
|
34066
|
+
function _arrayLikeToArray$$(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
34067
34067
|
|
|
34068
34068
|
/**
|
|
34069
34069
|
* useScheduler Hook
|
|
@@ -34136,7 +34136,7 @@ var useScheduler = function useScheduler() {
|
|
|
34136
34136
|
if (pending && pending.length > 0) {
|
|
34137
34137
|
setPendingResults(pending);
|
|
34138
34138
|
// Call handlers for each pending result
|
|
34139
|
-
var _iterator = _createForOfIteratorHelper
|
|
34139
|
+
var _iterator = _createForOfIteratorHelper$$(pending),
|
|
34140
34140
|
_step;
|
|
34141
34141
|
try {
|
|
34142
34142
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -35382,9 +35382,9 @@ var CustomHexColorPane = function CustomHexColorPane(_ref) {
|
|
|
35382
35382
|
});
|
|
35383
35383
|
};
|
|
35384
35384
|
|
|
35385
|
-
function _createForOfIteratorHelper$
|
|
35386
|
-
function _unsupportedIterableToArray$
|
|
35387
|
-
function _arrayLikeToArray$
|
|
35385
|
+
function _createForOfIteratorHelper$_(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$_(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
35386
|
+
function _unsupportedIterableToArray$_(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$_(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$_(r, a) : void 0; } }
|
|
35387
|
+
function _arrayLikeToArray$_(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
35388
35388
|
function rgbDistSq(a, b) {
|
|
35389
35389
|
var dr = a.r - b.r;
|
|
35390
35390
|
var dg = a.g - b.g;
|
|
@@ -35402,13 +35402,13 @@ function nearestSwatch(hex, families) {
|
|
|
35402
35402
|
var target = DashReact.hexToRgb(hex);
|
|
35403
35403
|
if (!target) return null;
|
|
35404
35404
|
var best = null;
|
|
35405
|
-
var _iterator = _createForOfIteratorHelper$
|
|
35405
|
+
var _iterator = _createForOfIteratorHelper$_(families),
|
|
35406
35406
|
_step;
|
|
35407
35407
|
try {
|
|
35408
35408
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
35409
35409
|
var family = _step.value;
|
|
35410
35410
|
var grid = DashReact.getCuratedColorGrid(family) || [];
|
|
35411
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
35411
|
+
var _iterator2 = _createForOfIteratorHelper$_(grid),
|
|
35412
35412
|
_step2;
|
|
35413
35413
|
try {
|
|
35414
35414
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -42380,9 +42380,9 @@ var GrantManuallyModal = function GrantManuallyModal(_ref) {
|
|
|
42380
42380
|
});
|
|
42381
42381
|
};
|
|
42382
42382
|
|
|
42383
|
-
function _createForOfIteratorHelper$
|
|
42384
|
-
function _unsupportedIterableToArray$
|
|
42385
|
-
function _arrayLikeToArray$
|
|
42383
|
+
function _createForOfIteratorHelper$Z(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$Z(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
42384
|
+
function _unsupportedIterableToArray$Z(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$Z(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$Z(r, a) : void 0; } }
|
|
42385
|
+
function _arrayLikeToArray$Z(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
42386
42386
|
/**
|
|
42387
42387
|
* groupRowsByPackage
|
|
42388
42388
|
*
|
|
@@ -42434,7 +42434,7 @@ function _hasGrant(granted) {
|
|
|
42434
42434
|
function groupRowsByPackage(rows) {
|
|
42435
42435
|
if (!Array.isArray(rows)) return [];
|
|
42436
42436
|
var byPackage = new Map();
|
|
42437
|
-
var _iterator = _createForOfIteratorHelper$
|
|
42437
|
+
var _iterator = _createForOfIteratorHelper$Z(rows),
|
|
42438
42438
|
_step;
|
|
42439
42439
|
try {
|
|
42440
42440
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -42644,15 +42644,15 @@ var PrivacySecurityList = function PrivacySecurityList(_ref) {
|
|
|
42644
42644
|
* absence), false for paths (scanner can't see them)
|
|
42645
42645
|
* @returns {Set<string>} the granted items that are stale
|
|
42646
42646
|
*/
|
|
42647
|
-
function _createForOfIteratorHelper$
|
|
42648
|
-
function _unsupportedIterableToArray$
|
|
42649
|
-
function _arrayLikeToArray$
|
|
42647
|
+
function _createForOfIteratorHelper$Y(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$Y(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
42648
|
+
function _unsupportedIterableToArray$Y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$Y(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$Y(r, a) : void 0; } }
|
|
42649
|
+
function _arrayLikeToArray$Y(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
42650
42650
|
function computeStaleItems(declaredItems, grantedItems, validatesStale) {
|
|
42651
42651
|
var out = new Set();
|
|
42652
42652
|
if (!validatesStale) return out;
|
|
42653
42653
|
var declared = new Set(Array.isArray(declaredItems) ? declaredItems : []);
|
|
42654
42654
|
var granted = Array.isArray(grantedItems) ? grantedItems : [];
|
|
42655
|
-
var _iterator = _createForOfIteratorHelper$
|
|
42655
|
+
var _iterator = _createForOfIteratorHelper$Y(granted),
|
|
42656
42656
|
_step;
|
|
42657
42657
|
try {
|
|
42658
42658
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -43249,9 +43249,9 @@ var WidgetPackageDetail = function WidgetPackageDetail(_ref) {
|
|
|
43249
43249
|
*/
|
|
43250
43250
|
function ownKeys$1m(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
43251
43251
|
function _objectSpread$1m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
43252
|
-
function _createForOfIteratorHelper$
|
|
43253
|
-
function _unsupportedIterableToArray$
|
|
43254
|
-
function _arrayLikeToArray$
|
|
43252
|
+
function _createForOfIteratorHelper$X(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$X(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
43253
|
+
function _unsupportedIterableToArray$X(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$X(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$X(r, a) : void 0; } }
|
|
43254
|
+
function _arrayLikeToArray$X(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
43255
43255
|
function applyToolToggle(grant, labels, tool, on) {
|
|
43256
43256
|
if (!grant || _typeof(grant) !== "object") return null;
|
|
43257
43257
|
if (!Array.isArray(labels) || labels.length === 0) return null;
|
|
@@ -43272,7 +43272,7 @@ function applyToolToggle(grant, labels, tool, on) {
|
|
|
43272
43272
|
}
|
|
43273
43273
|
|
|
43274
43274
|
// Apply the toggle to each target label.
|
|
43275
|
-
var _iterator = _createForOfIteratorHelper$
|
|
43275
|
+
var _iterator = _createForOfIteratorHelper$X(labels),
|
|
43276
43276
|
_step;
|
|
43277
43277
|
try {
|
|
43278
43278
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -43332,9 +43332,9 @@ function applyToolToggle(grant, labels, tool, on) {
|
|
|
43332
43332
|
*/
|
|
43333
43333
|
function ownKeys$1l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
43334
43334
|
function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
43335
|
-
function _createForOfIteratorHelper$
|
|
43336
|
-
function _unsupportedIterableToArray$
|
|
43337
|
-
function _arrayLikeToArray$
|
|
43335
|
+
function _createForOfIteratorHelper$W(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$W(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
43336
|
+
function _unsupportedIterableToArray$W(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$W(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$W(r, a) : void 0; } }
|
|
43337
|
+
function _arrayLikeToArray$W(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
43338
43338
|
var VALID_KINDS$1 = new Set(["readPaths", "writePaths"]);
|
|
43339
43339
|
function applyPathRemoval(grant, labels, kind, path) {
|
|
43340
43340
|
if (!grant || _typeof(grant) !== "object") return null;
|
|
@@ -43353,7 +43353,7 @@ function applyPathRemoval(grant, labels, kind, path) {
|
|
|
43353
43353
|
};
|
|
43354
43354
|
}
|
|
43355
43355
|
if (VALID_KINDS$1.has(kind)) {
|
|
43356
|
-
var _iterator = _createForOfIteratorHelper$
|
|
43356
|
+
var _iterator = _createForOfIteratorHelper$W(labels),
|
|
43357
43357
|
_step;
|
|
43358
43358
|
try {
|
|
43359
43359
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -43461,9 +43461,9 @@ function applyDomainItemRemoval(grant, domain, kind, value) {
|
|
|
43461
43461
|
|
|
43462
43462
|
function ownKeys$1j(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
43463
43463
|
function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1j(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1j(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
43464
|
-
function _createForOfIteratorHelper$
|
|
43465
|
-
function _unsupportedIterableToArray$
|
|
43466
|
-
function _arrayLikeToArray$
|
|
43464
|
+
function _createForOfIteratorHelper$V(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$V(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
43465
|
+
function _unsupportedIterableToArray$V(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$V(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$V(r, a) : void 0; } }
|
|
43466
|
+
function _arrayLikeToArray$V(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
43467
43467
|
var PrivacySecuritySection = function PrivacySecuritySection() {
|
|
43468
43468
|
var _useContext = React.useContext(AppContext),
|
|
43469
43469
|
providers = _useContext.providers;
|
|
@@ -43634,7 +43634,7 @@ var PrivacySecuritySection = function PrivacySecuritySection() {
|
|
|
43634
43634
|
}
|
|
43635
43635
|
}
|
|
43636
43636
|
targets = labels.length > 0 ? labels : [serverName];
|
|
43637
|
-
_iterator = _createForOfIteratorHelper$
|
|
43637
|
+
_iterator = _createForOfIteratorHelper$V(targets);
|
|
43638
43638
|
_context4.prev = 1;
|
|
43639
43639
|
_iterator.s();
|
|
43640
43640
|
case 2:
|
|
@@ -43928,7 +43928,7 @@ var PrivacySecuritySection = function PrivacySecuritySection() {
|
|
|
43928
43928
|
return _context9.abrupt("return");
|
|
43929
43929
|
case 3:
|
|
43930
43930
|
next = currentGrant;
|
|
43931
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
43931
|
+
_iterator2 = _createForOfIteratorHelper$V(declaredTools);
|
|
43932
43932
|
try {
|
|
43933
43933
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
43934
43934
|
tool = _step2.value;
|
|
@@ -43968,7 +43968,7 @@ var PrivacySecuritySection = function PrivacySecuritySection() {
|
|
|
43968
43968
|
while (1) switch (_context0.prev = _context0.next) {
|
|
43969
43969
|
case 0:
|
|
43970
43970
|
_context0.prev = 0;
|
|
43971
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
43971
|
+
_iterator3 = _createForOfIteratorHelper$V(packageGroup.widgets);
|
|
43972
43972
|
_context0.prev = 1;
|
|
43973
43973
|
_iterator3.s();
|
|
43974
43974
|
case 2:
|
|
@@ -45939,9 +45939,9 @@ var LoadProfileModal = function LoadProfileModal(_ref) {
|
|
|
45939
45939
|
|
|
45940
45940
|
function ownKeys$1g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
45941
45941
|
function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
45942
|
-
function _createForOfIteratorHelper$
|
|
45943
|
-
function _unsupportedIterableToArray$
|
|
45944
|
-
function _arrayLikeToArray$
|
|
45942
|
+
function _createForOfIteratorHelper$U(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$U(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
45943
|
+
function _unsupportedIterableToArray$U(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$U(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$U(r, a) : void 0; } }
|
|
45944
|
+
function _arrayLikeToArray$U(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
45945
45945
|
var plural$a = function plural(n, noun) {
|
|
45946
45946
|
return "".concat(n, " ").concat(noun).concat(n === 1 ? "" : "s");
|
|
45947
45947
|
};
|
|
@@ -46083,7 +46083,7 @@ var LoadProfileV2Modal = function LoadProfileV2Modal(_ref) {
|
|
|
46083
46083
|
// The file's provider name → this computer's (null: set up later).
|
|
46084
46084
|
var _useState9 = React.useState(function () {
|
|
46085
46085
|
var out = {};
|
|
46086
|
-
var _iterator = _createForOfIteratorHelper$
|
|
46086
|
+
var _iterator = _createForOfIteratorHelper$U(preview.providers || []),
|
|
46087
46087
|
_step;
|
|
46088
46088
|
try {
|
|
46089
46089
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -46374,9 +46374,9 @@ var LoadProfileV2Modal = function LoadProfileV2Modal(_ref) {
|
|
|
46374
46374
|
});
|
|
46375
46375
|
};
|
|
46376
46376
|
|
|
46377
|
-
function _createForOfIteratorHelper$
|
|
46378
|
-
function _unsupportedIterableToArray$
|
|
46379
|
-
function _arrayLikeToArray$
|
|
46377
|
+
function _createForOfIteratorHelper$T(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$T(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
46378
|
+
function _unsupportedIterableToArray$T(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$T(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$T(r, a) : void 0; } }
|
|
46379
|
+
function _arrayLikeToArray$T(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
46380
46380
|
var KINDS = [{
|
|
46381
46381
|
kind: "dashboards",
|
|
46382
46382
|
title: "Dashboards",
|
|
@@ -47063,7 +47063,7 @@ var ProfilesSection = function ProfilesSection(_ref2) {
|
|
|
47063
47063
|
return !i.inProfile;
|
|
47064
47064
|
});
|
|
47065
47065
|
setBusyKey("all");
|
|
47066
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
47066
|
+
_iterator2 = _createForOfIteratorHelper$T(missing);
|
|
47067
47067
|
_context1.prev = 1;
|
|
47068
47068
|
_iterator2.s();
|
|
47069
47069
|
case 2:
|
|
@@ -47328,7 +47328,7 @@ var ProfilesSection = function ProfilesSection(_ref2) {
|
|
|
47328
47328
|
return "".concat(n, " ").concat(plural$9(res.botsPaused.length, "bot"), " arrived paused \u2014 turn them on when you're ready.");
|
|
47329
47329
|
});
|
|
47330
47330
|
}
|
|
47331
|
-
var _iterator = _createForOfIteratorHelper$
|
|
47331
|
+
var _iterator = _createForOfIteratorHelper$T(res.botsWaiting || []),
|
|
47332
47332
|
_step;
|
|
47333
47333
|
try {
|
|
47334
47334
|
var _loop = function _loop() {
|
|
@@ -47969,9 +47969,9 @@ var DashboardLoaderModal = function DashboardLoaderModal(_ref) {
|
|
|
47969
47969
|
|
|
47970
47970
|
function ownKeys$1f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
47971
47971
|
function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
47972
|
-
function _createForOfIteratorHelper$
|
|
47973
|
-
function _unsupportedIterableToArray$
|
|
47974
|
-
function _arrayLikeToArray$
|
|
47972
|
+
function _createForOfIteratorHelper$S(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$S(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
47973
|
+
function _unsupportedIterableToArray$S(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$S(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$S(r, a) : void 0; } }
|
|
47974
|
+
function _arrayLikeToArray$S(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
47975
47975
|
/**
|
|
47976
47976
|
* Layout template definitions for the dashboard template picker.
|
|
47977
47977
|
*
|
|
@@ -48245,7 +48245,7 @@ function createLayoutFromTemplate(template) {
|
|
|
48245
48245
|
cols: template.cols,
|
|
48246
48246
|
gap: "gap-2"
|
|
48247
48247
|
};
|
|
48248
|
-
var _iterator = _createForOfIteratorHelper$
|
|
48248
|
+
var _iterator = _createForOfIteratorHelper$S(template.cells),
|
|
48249
48249
|
_step;
|
|
48250
48250
|
try {
|
|
48251
48251
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -48308,9 +48308,9 @@ function keepLatest(edited, opened, latest) {
|
|
|
48308
48308
|
return out;
|
|
48309
48309
|
}
|
|
48310
48310
|
|
|
48311
|
-
function _createForOfIteratorHelper$
|
|
48312
|
-
function _unsupportedIterableToArray$
|
|
48313
|
-
function _arrayLikeToArray$
|
|
48311
|
+
function _createForOfIteratorHelper$R(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$R(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
48312
|
+
function _unsupportedIterableToArray$R(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$R(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$R(r, a) : void 0; } }
|
|
48313
|
+
function _arrayLikeToArray$R(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
48314
48314
|
/**
|
|
48315
48315
|
* teamUtils.js
|
|
48316
48316
|
*
|
|
@@ -48343,7 +48343,7 @@ function dashboardOptions(workspaces) {
|
|
|
48343
48343
|
return w && norm$1(w.id) !== null;
|
|
48344
48344
|
});
|
|
48345
48345
|
var totals = {};
|
|
48346
|
-
var _iterator = _createForOfIteratorHelper$
|
|
48346
|
+
var _iterator = _createForOfIteratorHelper$R(list),
|
|
48347
48347
|
_step;
|
|
48348
48348
|
try {
|
|
48349
48349
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -48390,7 +48390,7 @@ function groupBotsByTeam(bots, workspaces) {
|
|
|
48390
48390
|
label: "Unassigned",
|
|
48391
48391
|
bots: []
|
|
48392
48392
|
};
|
|
48393
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
48393
|
+
var _iterator2 = _createForOfIteratorHelper$R(list),
|
|
48394
48394
|
_step2;
|
|
48395
48395
|
try {
|
|
48396
48396
|
var _loop = function _loop() {
|
|
@@ -48483,7 +48483,7 @@ var PROVIDER_NAMES = {
|
|
|
48483
48483
|
};
|
|
48484
48484
|
|
|
48485
48485
|
/** A provider id as people know it. */
|
|
48486
|
-
function providerName(id) {
|
|
48486
|
+
function providerName$1(id) {
|
|
48487
48487
|
return PROVIDER_NAMES[id] || id || "Unknown";
|
|
48488
48488
|
}
|
|
48489
48489
|
|
|
@@ -50086,9 +50086,9 @@ function appendAnswerText(text, chunk) {
|
|
|
50086
50086
|
return prev + next;
|
|
50087
50087
|
}
|
|
50088
50088
|
|
|
50089
|
-
function _createForOfIteratorHelper$
|
|
50090
|
-
function _unsupportedIterableToArray$
|
|
50091
|
-
function _arrayLikeToArray$
|
|
50089
|
+
function _createForOfIteratorHelper$Q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$Q(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
50090
|
+
function _unsupportedIterableToArray$Q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$Q(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$Q(r, a) : void 0; } }
|
|
50091
|
+
function _arrayLikeToArray$Q(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
50092
50092
|
function ownKeys$1b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
50093
50093
|
function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
50094
50094
|
function bots$1() {
|
|
@@ -50377,7 +50377,7 @@ function _stopTeamRole() {
|
|
|
50377
50377
|
_context3["catch"](4);
|
|
50378
50378
|
team = [];
|
|
50379
50379
|
case 8:
|
|
50380
|
-
_iterator = _createForOfIteratorHelper$
|
|
50380
|
+
_iterator = _createForOfIteratorHelper$Q(team);
|
|
50381
50381
|
_context3.prev = 9;
|
|
50382
50382
|
_iterator.s();
|
|
50383
50383
|
case 10:
|
|
@@ -50464,9 +50464,9 @@ function withoutMatches(text) {
|
|
|
50464
50464
|
|
|
50465
50465
|
function ownKeys$1a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
50466
50466
|
function _objectSpread$1a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
50467
|
-
function _createForOfIteratorHelper$
|
|
50468
|
-
function _unsupportedIterableToArray$
|
|
50469
|
-
function _arrayLikeToArray$
|
|
50467
|
+
function _createForOfIteratorHelper$P(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$P(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
50468
|
+
function _unsupportedIterableToArray$P(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$P(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$P(r, a) : void 0; } }
|
|
50469
|
+
function _arrayLikeToArray$P(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
50470
50470
|
var STARTER_TAG = "starter";
|
|
50471
50471
|
var titleCase$1 = function titleCase(s) {
|
|
50472
50472
|
return String(s || "").split(/[-_\s]+/).filter(Boolean).map(function (w) {
|
|
@@ -50485,7 +50485,7 @@ function starterPackages(index) {
|
|
|
50485
50485
|
/** "Productivity", … — the categories present, in order of first use. */
|
|
50486
50486
|
function starterCategories(starters) {
|
|
50487
50487
|
var out = [];
|
|
50488
|
-
var _iterator = _createForOfIteratorHelper$
|
|
50488
|
+
var _iterator = _createForOfIteratorHelper$P(starters || []),
|
|
50489
50489
|
_step;
|
|
50490
50490
|
try {
|
|
50491
50491
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -50610,7 +50610,7 @@ function starterToPlan(config) {
|
|
|
50610
50610
|
};
|
|
50611
50611
|
var widgetPieces = [];
|
|
50612
50612
|
var nameOfWidget = new Map();
|
|
50613
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
50613
|
+
var _iterator2 = _createForOfIteratorHelper$P(widgetItems(ws)),
|
|
50614
50614
|
_step2;
|
|
50615
50615
|
try {
|
|
50616
50616
|
var _loop = function _loop() {
|
|
@@ -51678,9 +51678,9 @@ var DashTeamApprovals = function DashTeamApprovals(_ref) {
|
|
|
51678
51678
|
});
|
|
51679
51679
|
};
|
|
51680
51680
|
|
|
51681
|
-
function _createForOfIteratorHelper$
|
|
51682
|
-
function _unsupportedIterableToArray$
|
|
51683
|
-
function _arrayLikeToArray$
|
|
51681
|
+
function _createForOfIteratorHelper$O(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$O(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
51682
|
+
function _unsupportedIterableToArray$O(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$O(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$O(r, a) : void 0; } }
|
|
51683
|
+
function _arrayLikeToArray$O(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
51684
51684
|
var STEP_TOKENS = {
|
|
51685
51685
|
widget: {
|
|
51686
51686
|
"new": {
|
|
@@ -51755,7 +51755,7 @@ function estimatePlan(plan) {
|
|
|
51755
51755
|
builder: 0,
|
|
51756
51756
|
checker: 0
|
|
51757
51757
|
};
|
|
51758
|
-
var _iterator = _createForOfIteratorHelper$
|
|
51758
|
+
var _iterator = _createForOfIteratorHelper$O(pieces),
|
|
51759
51759
|
_step;
|
|
51760
51760
|
try {
|
|
51761
51761
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -51814,9 +51814,9 @@ function describeEstimate(est) {
|
|
|
51814
51814
|
|
|
51815
51815
|
function ownKeys$17(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
51816
51816
|
function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$17(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$17(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
51817
|
-
function _createForOfIteratorHelper$
|
|
51818
|
-
function _unsupportedIterableToArray$
|
|
51819
|
-
function _arrayLikeToArray$
|
|
51817
|
+
function _createForOfIteratorHelper$N(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$N(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
51818
|
+
function _unsupportedIterableToArray$N(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$N(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$N(r, a) : void 0; } }
|
|
51819
|
+
function _arrayLikeToArray$N(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
51820
51820
|
function classOf(provider) {
|
|
51821
51821
|
return provider && provider.providerClass || "credential";
|
|
51822
51822
|
}
|
|
@@ -51938,7 +51938,7 @@ function providerUsage(name, _ref2) {
|
|
|
51938
51938
|
bots = _ref2$bots === void 0 ? [] : _ref2$bots,
|
|
51939
51939
|
bindingsFor = _ref2.bindingsFor;
|
|
51940
51940
|
var dashboards = [];
|
|
51941
|
-
var _iterator = _createForOfIteratorHelper$
|
|
51941
|
+
var _iterator = _createForOfIteratorHelper$N(workspaces || []),
|
|
51942
51942
|
_step;
|
|
51943
51943
|
try {
|
|
51944
51944
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -52108,9 +52108,9 @@ function groupProviders(providers) {
|
|
|
52108
52108
|
});
|
|
52109
52109
|
}
|
|
52110
52110
|
|
|
52111
|
-
function _createForOfIteratorHelper$
|
|
52112
|
-
function _unsupportedIterableToArray$
|
|
52113
|
-
function _arrayLikeToArray$
|
|
52111
|
+
function _createForOfIteratorHelper$M(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$M(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
52112
|
+
function _unsupportedIterableToArray$M(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$M(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$M(r, a) : void 0; } }
|
|
52113
|
+
function _arrayLikeToArray$M(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
52114
52114
|
function ownKeys$16(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
52115
52115
|
function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$16(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$16(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
52116
52116
|
var getWidgetRequirements$1 = function getWidgetRequirements(name) {
|
|
@@ -52194,7 +52194,7 @@ function useProviderStatus(_ref) {
|
|
|
52194
52194
|
};
|
|
52195
52195
|
var checkRunning = React.useCallback(function () {
|
|
52196
52196
|
if (!dashApi || typeof dashApi.mcpGetServerStatus !== "function") return;
|
|
52197
|
-
var _iterator = _createForOfIteratorHelper$
|
|
52197
|
+
var _iterator = _createForOfIteratorHelper$M(mcpNames ? mcpNames.split("\n") : []),
|
|
52198
52198
|
_step;
|
|
52199
52199
|
try {
|
|
52200
52200
|
var _loop = function _loop() {
|
|
@@ -52453,9 +52453,9 @@ var OverflowMenu = function OverflowMenu(_ref4) {
|
|
|
52453
52453
|
|
|
52454
52454
|
function ownKeys$15(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
52455
52455
|
function _objectSpread$15(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$15(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$15(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
52456
|
-
function _createForOfIteratorHelper$
|
|
52457
|
-
function _unsupportedIterableToArray$
|
|
52458
|
-
function _arrayLikeToArray$
|
|
52456
|
+
function _createForOfIteratorHelper$L(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$L(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
52457
|
+
function _unsupportedIterableToArray$L(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$L(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$L(r, a) : void 0; } }
|
|
52458
|
+
function _arrayLikeToArray$L(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
52459
52459
|
/**
|
|
52460
52460
|
* applyBulkProviderBindings — pure utility for the dashboard config
|
|
52461
52461
|
* bulk-edit modal's Save path.
|
|
@@ -52513,7 +52513,7 @@ function applyToLayoutArray(layout, changesByWidgetId) {
|
|
|
52513
52513
|
var next = layout.map(function (item) {
|
|
52514
52514
|
if (!item) return item;
|
|
52515
52515
|
var matchedChanges = null;
|
|
52516
|
-
var _iterator = _createForOfIteratorHelper$
|
|
52516
|
+
var _iterator = _createForOfIteratorHelper$L(changesByWidgetId.entries()),
|
|
52517
52517
|
_step;
|
|
52518
52518
|
try {
|
|
52519
52519
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -52563,7 +52563,7 @@ function applyBulkProviderBindings(workspace, changes) {
|
|
|
52563
52563
|
// Group changes by widgetId so we can match each layout item once
|
|
52564
52564
|
// and apply every type-level change on it in a single pass.
|
|
52565
52565
|
var changesByWidgetId = new Map();
|
|
52566
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
52566
|
+
var _iterator2 = _createForOfIteratorHelper$L(changes),
|
|
52567
52567
|
_step2;
|
|
52568
52568
|
try {
|
|
52569
52569
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -52585,7 +52585,7 @@ function applyBulkProviderBindings(workspace, changes) {
|
|
|
52585
52585
|
// ── Layer 2: workspace.selectedProviders ─────────────────────────
|
|
52586
52586
|
var nextSelectedProviders = _objectSpread$15({}, workspace.selectedProviders || {});
|
|
52587
52587
|
var layer2Changed = false;
|
|
52588
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
52588
|
+
var _iterator3 = _createForOfIteratorHelper$L(changesByWidgetId.entries()),
|
|
52589
52589
|
_step3;
|
|
52590
52590
|
try {
|
|
52591
52591
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -52952,9 +52952,9 @@ function reconcileWorkspaceAfterLayoutChange(workspace) {
|
|
|
52952
52952
|
|
|
52953
52953
|
function ownKeys$13(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
52954
52954
|
function _objectSpread$13(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$13(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$13(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
52955
|
-
function _createForOfIteratorHelper$
|
|
52956
|
-
function _unsupportedIterableToArray$
|
|
52957
|
-
function _arrayLikeToArray$
|
|
52955
|
+
function _createForOfIteratorHelper$K(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$K(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
52956
|
+
function _unsupportedIterableToArray$K(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$K(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$K(r, a) : void 0; } }
|
|
52957
|
+
function _arrayLikeToArray$K(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
52958
52958
|
var explicitBinding = function explicitBinding(workspace, binding) {
|
|
52959
52959
|
return binding.layoutItem && binding.layoutItem.selectedProviders && binding.layoutItem.selectedProviders[binding.providerType] || binding.widgetId != null && workspace.selectedProviders && workspace.selectedProviders[binding.widgetId] && workspace.selectedProviders[binding.widgetId][binding.providerType] || null;
|
|
52960
52960
|
};
|
|
@@ -52994,7 +52994,7 @@ function providerUseModel(_ref) {
|
|
|
52994
52994
|
return !!(s && s.key === "needsSetup");
|
|
52995
52995
|
};
|
|
52996
52996
|
var dashboards = [];
|
|
52997
|
-
var _iterator = _createForOfIteratorHelper$
|
|
52997
|
+
var _iterator = _createForOfIteratorHelper$K(workspaces || []),
|
|
52998
52998
|
_step;
|
|
52999
52999
|
try {
|
|
53000
53000
|
var _loop = function _loop() {
|
|
@@ -53080,13 +53080,13 @@ function planProviderUse(model) {
|
|
|
53080
53080
|
};
|
|
53081
53081
|
var workspaces = [];
|
|
53082
53082
|
var count = 0;
|
|
53083
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
53083
|
+
var _iterator2 = _createForOfIteratorHelper$K(model.dashboards),
|
|
53084
53084
|
_step2;
|
|
53085
53085
|
try {
|
|
53086
53086
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
53087
53087
|
var d = _step2.value;
|
|
53088
53088
|
var changes = [];
|
|
53089
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
53089
|
+
var _iterator4 = _createForOfIteratorHelper$K(d.rows),
|
|
53090
53090
|
_step4;
|
|
53091
53091
|
try {
|
|
53092
53092
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -53117,7 +53117,7 @@ function planProviderUse(model) {
|
|
|
53117
53117
|
_iterator2.f();
|
|
53118
53118
|
}
|
|
53119
53119
|
var bots = [];
|
|
53120
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
53120
|
+
var _iterator3 = _createForOfIteratorHelper$K(model.bots),
|
|
53121
53121
|
_step3;
|
|
53122
53122
|
try {
|
|
53123
53123
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -53180,7 +53180,7 @@ function _applyProviderUse() {
|
|
|
53180
53180
|
bots: 0,
|
|
53181
53181
|
failed: []
|
|
53182
53182
|
};
|
|
53183
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
53183
|
+
_iterator5 = _createForOfIteratorHelper$K(plan.workspaces);
|
|
53184
53184
|
_context3.prev = 1;
|
|
53185
53185
|
_loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
|
|
53186
53186
|
var _step5$value, workspaceId, changes, workspace, name, updated, _iterator7, _step7, c, _t;
|
|
@@ -53204,7 +53204,7 @@ function _applyProviderUse() {
|
|
|
53204
53204
|
return saveWorkspace(dashApi, appId, updated);
|
|
53205
53205
|
case 3:
|
|
53206
53206
|
result.dashboards += 1;
|
|
53207
|
-
_iterator7 = _createForOfIteratorHelper$
|
|
53207
|
+
_iterator7 = _createForOfIteratorHelper$K(changes);
|
|
53208
53208
|
try {
|
|
53209
53209
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
53210
53210
|
c = _step7.value;
|
|
@@ -53253,7 +53253,7 @@ function _applyProviderUse() {
|
|
|
53253
53253
|
_iterator5.f();
|
|
53254
53254
|
return _context3.finish(6);
|
|
53255
53255
|
case 7:
|
|
53256
|
-
_iterator6 = _createForOfIteratorHelper$
|
|
53256
|
+
_iterator6 = _createForOfIteratorHelper$K(plan.bots);
|
|
53257
53257
|
_context3.prev = 8;
|
|
53258
53258
|
_loop3 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop3() {
|
|
53259
53259
|
var _step6$value, botId, add, bot, name, current, mcpServers, _t2;
|
|
@@ -53332,21 +53332,21 @@ function _applyProviderUse() {
|
|
|
53332
53332
|
|
|
53333
53333
|
function ownKeys$12(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
53334
53334
|
function _objectSpread$12(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$12(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$12(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
53335
|
-
function _createForOfIteratorHelper$
|
|
53336
|
-
function _unsupportedIterableToArray$
|
|
53337
|
-
function _arrayLikeToArray$
|
|
53335
|
+
function _createForOfIteratorHelper$J(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$J(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
53336
|
+
function _unsupportedIterableToArray$J(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$J(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$J(r, a) : void 0; } }
|
|
53337
|
+
function _arrayLikeToArray$J(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
53338
53338
|
var plural$7 = function plural(n, one) {
|
|
53339
53339
|
var many = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "".concat(one, "s");
|
|
53340
53340
|
return "".concat(n, " ").concat(n === 1 ? one : many);
|
|
53341
53341
|
};
|
|
53342
53342
|
var initialPicks = function initialPicks(model) {
|
|
53343
53343
|
var picks = {};
|
|
53344
|
-
var _iterator = _createForOfIteratorHelper$
|
|
53344
|
+
var _iterator = _createForOfIteratorHelper$J(model && model.dashboards || []),
|
|
53345
53345
|
_step;
|
|
53346
53346
|
try {
|
|
53347
53347
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
53348
53348
|
var d = _step.value;
|
|
53349
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
53349
|
+
var _iterator3 = _createForOfIteratorHelper$J(d.rows),
|
|
53350
53350
|
_step3;
|
|
53351
53351
|
try {
|
|
53352
53352
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -53364,7 +53364,7 @@ var initialPicks = function initialPicks(model) {
|
|
|
53364
53364
|
} finally {
|
|
53365
53365
|
_iterator.f();
|
|
53366
53366
|
}
|
|
53367
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
53367
|
+
var _iterator2 = _createForOfIteratorHelper$J(model && model.bots || []),
|
|
53368
53368
|
_step2;
|
|
53369
53369
|
try {
|
|
53370
53370
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -53428,12 +53428,12 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
|
|
|
53428
53428
|
}, [isOpen, model]);
|
|
53429
53429
|
var changes = React.useMemo(function () {
|
|
53430
53430
|
var n = 0;
|
|
53431
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
53431
|
+
var _iterator4 = _createForOfIteratorHelper$J(model && model.dashboards || []),
|
|
53432
53432
|
_step4;
|
|
53433
53433
|
try {
|
|
53434
53434
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
53435
53435
|
var d = _step4.value;
|
|
53436
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
53436
|
+
var _iterator6 = _createForOfIteratorHelper$J(d.rows),
|
|
53437
53437
|
_step6;
|
|
53438
53438
|
try {
|
|
53439
53439
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -53451,7 +53451,7 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
|
|
|
53451
53451
|
} finally {
|
|
53452
53452
|
_iterator4.f();
|
|
53453
53453
|
}
|
|
53454
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
53454
|
+
var _iterator5 = _createForOfIteratorHelper$J(model && model.bots || []),
|
|
53455
53455
|
_step5;
|
|
53456
53456
|
try {
|
|
53457
53457
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -53475,7 +53475,7 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
|
|
|
53475
53475
|
var tickAll = function tickAll(rows) {
|
|
53476
53476
|
return setPicks(function (p) {
|
|
53477
53477
|
var next = _objectSpread$12({}, p);
|
|
53478
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
53478
|
+
var _iterator7 = _createForOfIteratorHelper$J(rows),
|
|
53479
53479
|
_step7;
|
|
53480
53480
|
try {
|
|
53481
53481
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -53711,9 +53711,9 @@ var Row = function Row(_ref4) {
|
|
|
53711
53711
|
});
|
|
53712
53712
|
};
|
|
53713
53713
|
|
|
53714
|
-
function _createForOfIteratorHelper$
|
|
53715
|
-
function _unsupportedIterableToArray$
|
|
53716
|
-
function _arrayLikeToArray$
|
|
53714
|
+
function _createForOfIteratorHelper$I(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$I(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
53715
|
+
function _unsupportedIterableToArray$I(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$I(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$I(r, a) : void 0; } }
|
|
53716
|
+
function _arrayLikeToArray$I(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
53717
53717
|
/**
|
|
53718
53718
|
* connectionErrorText — a failed connection test's reason in plain words.
|
|
53719
53719
|
* Network errors come back as "connect ECONNREFUSED 127.0.0.1:8080"; the
|
|
@@ -53756,7 +53756,7 @@ var CONNECTION_ERRORS = [[/ECONNREFUSED/, function (host) {
|
|
|
53756
53756
|
*/
|
|
53757
53757
|
function connectionErrorText(message, url) {
|
|
53758
53758
|
var raw = String(message || "").trim();
|
|
53759
|
-
var _iterator = _createForOfIteratorHelper$
|
|
53759
|
+
var _iterator = _createForOfIteratorHelper$I(CONNECTION_ERRORS),
|
|
53760
53760
|
_step;
|
|
53761
53761
|
try {
|
|
53762
53762
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -56869,9 +56869,9 @@ var McpCatalogDetail = function McpCatalogDetail(_ref) {
|
|
|
56869
56869
|
|
|
56870
56870
|
function ownKeys$_(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
56871
56871
|
function _objectSpread$_(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$_(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$_(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
56872
|
-
function _createForOfIteratorHelper$
|
|
56873
|
-
function _unsupportedIterableToArray$
|
|
56874
|
-
function _arrayLikeToArray$
|
|
56872
|
+
function _createForOfIteratorHelper$H(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$H(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
56873
|
+
function _unsupportedIterableToArray$H(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$H(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$H(r, a) : void 0; } }
|
|
56874
|
+
function _arrayLikeToArray$H(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
56875
56875
|
function isValidWsUrl(url) {
|
|
56876
56876
|
if (!url) return false;
|
|
56877
56877
|
try {
|
|
@@ -56918,7 +56918,7 @@ function extractCredentialFields(url, headerRows) {
|
|
|
56918
56918
|
fields.add(match[1]);
|
|
56919
56919
|
}
|
|
56920
56920
|
}
|
|
56921
|
-
var _iterator = _createForOfIteratorHelper$
|
|
56921
|
+
var _iterator = _createForOfIteratorHelper$H(headerRows),
|
|
56922
56922
|
_step;
|
|
56923
56923
|
try {
|
|
56924
56924
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -57024,7 +57024,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
57024
57024
|
if (!url.trim()) errs.url = "WebSocket URL is required";else if (!isValidWsUrl(url)) errs.url = "URL must start with ws:// or wss://";
|
|
57025
57025
|
|
|
57026
57026
|
// Check required credential fields are filled
|
|
57027
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
57027
|
+
var _iterator2 = _createForOfIteratorHelper$H(credentialFields),
|
|
57028
57028
|
_step2;
|
|
57029
57029
|
try {
|
|
57030
57030
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -57047,7 +57047,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
57047
57047
|
|
|
57048
57048
|
// Build headers object from rows
|
|
57049
57049
|
var headers = {};
|
|
57050
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
57050
|
+
var _iterator3 = _createForOfIteratorHelper$H(headerRows),
|
|
57051
57051
|
_step3;
|
|
57052
57052
|
try {
|
|
57053
57053
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -57118,7 +57118,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
57118
57118
|
|
|
57119
57119
|
// Build config from current form state (same as handleSave)
|
|
57120
57120
|
headers = {};
|
|
57121
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
57121
|
+
_iterator4 = _createForOfIteratorHelper$H(headerRows);
|
|
57122
57122
|
try {
|
|
57123
57123
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
57124
57124
|
row = _step4.value;
|
|
@@ -58505,9 +58505,9 @@ var ProvidersSection = function ProvidersSection(_ref) {
|
|
|
58505
58505
|
});
|
|
58506
58506
|
};
|
|
58507
58507
|
|
|
58508
|
-
function _createForOfIteratorHelper$
|
|
58509
|
-
function _unsupportedIterableToArray$
|
|
58510
|
-
function _arrayLikeToArray$
|
|
58508
|
+
function _createForOfIteratorHelper$G(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$G(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
58509
|
+
function _unsupportedIterableToArray$G(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$G(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$G(r, a) : void 0; } }
|
|
58510
|
+
function _arrayLikeToArray$G(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
58511
58511
|
function usePanel() {
|
|
58512
58512
|
var _ref = React.useContext(DashReact.ThemeContext) || {},
|
|
58513
58513
|
currentTheme = _ref.currentTheme;
|
|
@@ -58544,12 +58544,12 @@ function accessLines(permissions) {
|
|
|
58544
58544
|
*/
|
|
58545
58545
|
function listingAccessLines(pkg) {
|
|
58546
58546
|
var lines = [];
|
|
58547
|
-
var _iterator = _createForOfIteratorHelper$
|
|
58547
|
+
var _iterator = _createForOfIteratorHelper$G(pkg && pkg.widgets || []),
|
|
58548
58548
|
_step;
|
|
58549
58549
|
try {
|
|
58550
58550
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
58551
58551
|
var w = _step.value;
|
|
58552
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
58552
|
+
var _iterator3 = _createForOfIteratorHelper$G(accessLines(w && w.permissions)),
|
|
58553
58553
|
_step3;
|
|
58554
58554
|
try {
|
|
58555
58555
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -58573,7 +58573,7 @@ function listingAccessLines(pkg) {
|
|
|
58573
58573
|
}))).map(function (p) {
|
|
58574
58574
|
return p && p.type;
|
|
58575
58575
|
}).filter(Boolean)));
|
|
58576
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
58576
|
+
var _iterator2 = _createForOfIteratorHelper$G(types),
|
|
58577
58577
|
_step2;
|
|
58578
58578
|
try {
|
|
58579
58579
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -59067,16 +59067,16 @@ function getWidgetPreviewRenderer() {
|
|
|
59067
59067
|
|
|
59068
59068
|
function ownKeys$Z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
59069
59069
|
function _objectSpread$Z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$Z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$Z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
59070
|
-
function _createForOfIteratorHelper$
|
|
59071
|
-
function _unsupportedIterableToArray$
|
|
59072
|
-
function _arrayLikeToArray$
|
|
59070
|
+
function _createForOfIteratorHelper$F(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$F(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
59071
|
+
function _unsupportedIterableToArray$F(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$F(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$F(r, a) : void 0; } }
|
|
59072
|
+
function _arrayLikeToArray$F(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
59073
59073
|
function previewProviders(widget, appProviders) {
|
|
59074
59074
|
var chosen = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
59075
59075
|
var needs = [];
|
|
59076
59076
|
var selected = {};
|
|
59077
59077
|
var missing = null;
|
|
59078
59078
|
var unchosen = null;
|
|
59079
|
-
var _iterator = _createForOfIteratorHelper$
|
|
59079
|
+
var _iterator = _createForOfIteratorHelper$F(getUserConfigurableProviders(widget && widget.providers)),
|
|
59080
59080
|
_step;
|
|
59081
59081
|
try {
|
|
59082
59082
|
var _loop = function _loop() {
|
|
@@ -59766,15 +59766,15 @@ function lineDiff(before, after) {
|
|
|
59766
59766
|
|
|
59767
59767
|
function ownKeys$X(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
59768
59768
|
function _objectSpread$X(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$X(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$X(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
59769
|
-
function _createForOfIteratorHelper$
|
|
59770
|
-
function _unsupportedIterableToArray$
|
|
59771
|
-
function _arrayLikeToArray$
|
|
59769
|
+
function _createForOfIteratorHelper$E(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$E(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
59770
|
+
function _unsupportedIterableToArray$E(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$E(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$E(r, a) : void 0; } }
|
|
59771
|
+
function _arrayLikeToArray$E(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
59772
59772
|
function plannedProviders(planned) {
|
|
59773
59773
|
var needs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
59774
59774
|
var appProviders = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
59775
59775
|
var out = {};
|
|
59776
59776
|
if (!planned) return out;
|
|
59777
|
-
var _iterator = _createForOfIteratorHelper$
|
|
59777
|
+
var _iterator = _createForOfIteratorHelper$E(needs),
|
|
59778
59778
|
_step;
|
|
59779
59779
|
try {
|
|
59780
59780
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -60357,9 +60357,9 @@ var CellPreview = function CellPreview(_ref) {
|
|
|
60357
60357
|
|
|
60358
60358
|
function ownKeys$W(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
60359
60359
|
function _objectSpread$W(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$W(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$W(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
60360
|
-
function _createForOfIteratorHelper$
|
|
60361
|
-
function _unsupportedIterableToArray$
|
|
60362
|
-
function _arrayLikeToArray$
|
|
60360
|
+
function _createForOfIteratorHelper$D(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$D(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
60361
|
+
function _unsupportedIterableToArray$D(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$D(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$D(r, a) : void 0; } }
|
|
60362
|
+
function _arrayLikeToArray$D(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
60363
60363
|
var ROLE = {
|
|
60364
60364
|
builder: "Builder",
|
|
60365
60365
|
checker: "Checker",
|
|
@@ -60397,13 +60397,13 @@ var HEAD = {
|
|
|
60397
60397
|
/** The providers waiting steps need, once each: ["gmail"]. */
|
|
60398
60398
|
function waitingProviders(steps) {
|
|
60399
60399
|
var out = [];
|
|
60400
|
-
var _iterator = _createForOfIteratorHelper$
|
|
60400
|
+
var _iterator = _createForOfIteratorHelper$D(steps || []),
|
|
60401
60401
|
_step;
|
|
60402
60402
|
try {
|
|
60403
60403
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
60404
60404
|
var s = _step.value;
|
|
60405
60405
|
if (s.status !== "needs-provider") continue;
|
|
60406
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
60406
|
+
var _iterator2 = _createForOfIteratorHelper$D(s.waitingFor || []),
|
|
60407
60407
|
_step2;
|
|
60408
60408
|
try {
|
|
60409
60409
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -61370,7 +61370,7 @@ var RemoveSummary = function RemoveSummary(_ref11) {
|
|
|
61370
61370
|
var n = built.placed.length;
|
|
61371
61371
|
goes.push("".concat(n === 1 ? "The widget" : "The ".concat(n, " widgets"), " it put on ").concat(built.dashboard.name));
|
|
61372
61372
|
}
|
|
61373
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
61373
|
+
var _iterator3 = _createForOfIteratorHelper$D(built.bots || []),
|
|
61374
61374
|
_step3;
|
|
61375
61375
|
try {
|
|
61376
61376
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -61385,7 +61385,7 @@ var RemoveSummary = function RemoveSummary(_ref11) {
|
|
|
61385
61385
|
if (built.dashboard && !targeted) {
|
|
61386
61386
|
goes.push("The dashboard's team lead, if it has one");
|
|
61387
61387
|
}
|
|
61388
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
61388
|
+
var _iterator4 = _createForOfIteratorHelper$D(built.widgets || []),
|
|
61389
61389
|
_step4;
|
|
61390
61390
|
try {
|
|
61391
61391
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -61994,16 +61994,86 @@ var PlanChecklistRows = function PlanChecklistRows(_ref1) {
|
|
|
61994
61994
|
_ref1$who = _ref1.who,
|
|
61995
61995
|
who = _ref1$who === void 0 ? null : _ref1$who,
|
|
61996
61996
|
_ref1$readOnly = _ref1.readOnly,
|
|
61997
|
-
readOnly = _ref1$readOnly === void 0 ? false : _ref1$readOnly
|
|
61997
|
+
readOnly = _ref1$readOnly === void 0 ? false : _ref1$readOnly,
|
|
61998
|
+
_ref1$rows = _ref1.rows,
|
|
61999
|
+
rows = _ref1$rows === void 0 ? false : _ref1$rows;
|
|
61998
62000
|
var _useConfigTokens3 = useConfigTokens(),
|
|
61999
62001
|
muted = _useConfigTokens3.muted,
|
|
62000
|
-
strong = _useConfigTokens3.strong
|
|
62002
|
+
strong = _useConfigTokens3.strong,
|
|
62003
|
+
hairline = _useConfigTokens3.hairline;
|
|
62004
|
+
var statusTokens = DashReact.useStatusTokens();
|
|
62001
62005
|
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
62002
62006
|
children: checklist.map(function (it) {
|
|
62003
62007
|
var skipped = isSkipped(it, checks, have);
|
|
62004
62008
|
var done = isDone(it, checks, have) && !skipped;
|
|
62005
62009
|
// The user's providers that could stand in, closest first.
|
|
62006
62010
|
var choices = it.kind === "connect" ? providerChoices(providers, it.providerType) : [];
|
|
62011
|
+
var picker = choices.length ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
62012
|
+
className: "w-full",
|
|
62013
|
+
"data-testid": "checklist-use-provider",
|
|
62014
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.SelectInput, {
|
|
62015
|
+
label: "Or use one you have",
|
|
62016
|
+
value: "",
|
|
62017
|
+
onChange: function onChange(name) {
|
|
62018
|
+
var p = choices.find(function (x) {
|
|
62019
|
+
return x.name === name;
|
|
62020
|
+
});
|
|
62021
|
+
if (p) onPickProvider(it, p);
|
|
62022
|
+
},
|
|
62023
|
+
options: [{
|
|
62024
|
+
value: "",
|
|
62025
|
+
label: "Pick a provider…"
|
|
62026
|
+
}].concat(_toConsumableArray(choices.map(function (p) {
|
|
62027
|
+
return {
|
|
62028
|
+
value: p.name,
|
|
62029
|
+
label: p.type ? "".concat(p.name, " \xB7 ").concat(p.type) : p.name
|
|
62030
|
+
};
|
|
62031
|
+
})))
|
|
62032
|
+
})
|
|
62033
|
+
}) : null;
|
|
62034
|
+
if (rows) {
|
|
62035
|
+
// The lead workspace's Before it builds (frame 1): a mark, who
|
|
62036
|
+
// asks, what and its detail, the action on the same line.
|
|
62037
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
62038
|
+
className: "flex flex-row items-start gap-3 px-4 py-3 border-t text-sm ".concat(hairline),
|
|
62039
|
+
"data-testid": "checklist-item",
|
|
62040
|
+
children: [done ? /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
62041
|
+
icon: "check",
|
|
62042
|
+
className: "h-3 w-3 mt-1 ".concat(statusTokens.success.icon),
|
|
62043
|
+
"aria-label": "Done"
|
|
62044
|
+
}) :
|
|
62045
|
+
/*#__PURE__*/
|
|
62046
|
+
// A hollow ring: still to do (frame 1's ○).
|
|
62047
|
+
jsxRuntime.jsx("span", {
|
|
62048
|
+
role: "img",
|
|
62049
|
+
"aria-label": "To do",
|
|
62050
|
+
className: "inline-block flex-shrink-0 h-2.5 w-2.5 mt-1 rounded-full border ".concat(hairline)
|
|
62051
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
62052
|
+
className: "flex-1 min-w-0 flex flex-col items-start gap-1",
|
|
62053
|
+
children: [who ? /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
62054
|
+
className: "flex flex-row items-center gap-1.5 text-xs ".concat(muted),
|
|
62055
|
+
"data-testid": "checklist-who",
|
|
62056
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
62057
|
+
className: "inline-block h-2 w-2 rounded-full ".concat(statusTokens.success.solidBg),
|
|
62058
|
+
"aria-hidden": "true"
|
|
62059
|
+
}), who(it)]
|
|
62060
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
62061
|
+
className: done ? muted : strong,
|
|
62062
|
+
children: it.label
|
|
62063
|
+
}), it["package"] || skipped ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
62064
|
+
className: "text-xs ".concat(muted),
|
|
62065
|
+
"data-testid": skipped ? "checklist-skipped" : undefined,
|
|
62066
|
+
children: skipped ? "Skipped — what needs it waits" : it["package"]
|
|
62067
|
+
}) : null, done || readOnly ? null : picker]
|
|
62068
|
+
}), done || readOnly ? null : /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, {
|
|
62069
|
+
title: it.kind === "install" ? "Review" : it.kind === "connect" ? "Connect" : "OK",
|
|
62070
|
+
size: "sm",
|
|
62071
|
+
onClick: function onClick() {
|
|
62072
|
+
return onAction(it);
|
|
62073
|
+
}
|
|
62074
|
+
})]
|
|
62075
|
+
}, it.id);
|
|
62076
|
+
}
|
|
62007
62077
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
62008
62078
|
className: "flex ".concat(compact ? "flex-col items-stretch" : "flex-row items-center", " gap-3 text-sm py-1"),
|
|
62009
62079
|
"data-testid": "checklist-item",
|
|
@@ -62037,26 +62107,7 @@ var PlanChecklistRows = function PlanChecklistRows(_ref1) {
|
|
|
62037
62107
|
}
|
|
62038
62108
|
}), choices.length ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
62039
62109
|
className: compact ? "w-full" : "w-56",
|
|
62040
|
-
|
|
62041
|
-
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.SelectInput, {
|
|
62042
|
-
label: "Or use one you have",
|
|
62043
|
-
value: "",
|
|
62044
|
-
onChange: function onChange(name) {
|
|
62045
|
-
var p = choices.find(function (x) {
|
|
62046
|
-
return x.name === name;
|
|
62047
|
-
});
|
|
62048
|
-
if (p) onPickProvider(it, p);
|
|
62049
|
-
},
|
|
62050
|
-
options: [{
|
|
62051
|
-
value: "",
|
|
62052
|
-
label: "Pick a provider…"
|
|
62053
|
-
}].concat(_toConsumableArray(choices.map(function (p) {
|
|
62054
|
-
return {
|
|
62055
|
-
value: p.name,
|
|
62056
|
-
label: p.type ? "".concat(p.name, " \xB7 ").concat(p.type) : p.name
|
|
62057
|
-
};
|
|
62058
|
-
})))
|
|
62059
|
-
})
|
|
62110
|
+
children: picker
|
|
62060
62111
|
}) : null]
|
|
62061
62112
|
})]
|
|
62062
62113
|
}, it.id);
|
|
@@ -64146,9 +64197,9 @@ var CreateEdit = function CreateEdit(_ref) {
|
|
|
64146
64197
|
|
|
64147
64198
|
function ownKeys$Q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
64148
64199
|
function _objectSpread$Q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$Q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$Q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
64149
|
-
function _createForOfIteratorHelper$
|
|
64150
|
-
function _unsupportedIterableToArray$
|
|
64151
|
-
function _arrayLikeToArray$
|
|
64200
|
+
function _createForOfIteratorHelper$C(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$C(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
64201
|
+
function _unsupportedIterableToArray$C(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$C(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$C(r, a) : void 0; } }
|
|
64202
|
+
function _arrayLikeToArray$C(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
64152
64203
|
var titleCase = function titleCase(s) {
|
|
64153
64204
|
return String(s || "").replace(/(^|[-_\s])(\w)/g, function (_m, sep, c) {
|
|
64154
64205
|
return (sep ? " " : "") + c.toUpperCase();
|
|
@@ -64230,7 +64281,7 @@ var StarterCards = function StarterCards(_ref2) {
|
|
|
64230
64281
|
var alive = true;
|
|
64231
64282
|
var api = window.mainApi && window.mainApi.dashboardConfig;
|
|
64232
64283
|
if (!api || !api.getPackageConfig) return undefined;
|
|
64233
|
-
var _iterator = _createForOfIteratorHelper$
|
|
64284
|
+
var _iterator = _createForOfIteratorHelper$C(starters),
|
|
64234
64285
|
_step;
|
|
64235
64286
|
try {
|
|
64236
64287
|
var _loop = function _loop() {
|
|
@@ -64858,9 +64909,9 @@ function _pickType() {
|
|
|
64858
64909
|
return _pickType.apply(this, arguments);
|
|
64859
64910
|
}
|
|
64860
64911
|
|
|
64861
|
-
function _createForOfIteratorHelper$
|
|
64862
|
-
function _unsupportedIterableToArray$
|
|
64863
|
-
function _arrayLikeToArray$
|
|
64912
|
+
function _createForOfIteratorHelper$B(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$B(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
64913
|
+
function _unsupportedIterableToArray$B(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$B(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$B(r, a) : void 0; } }
|
|
64914
|
+
function _arrayLikeToArray$B(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
64864
64915
|
var THEME_SYSTEM = "You design color themes for Dash, a desktop dashboard app with a dark and a light mode. From the user's description, answer with JSON only:\n{\"name\": \"<2-3 word theme name>\", \"primary\": \"#rrggbb\", \"secondary\": \"#rrggbb\", \"tertiary\": \"#rrggbb\", \"neutral\": \"#rrggbb\"}\n- primary: the main accent (buttons, highlights).\n- secondary and tertiary: supporting accents that go with it.\n- neutral: a low-saturation gray-ish color for backgrounds and borders.\nPick colors that read well on both dark and light backgrounds.";
|
|
64865
64916
|
var HEX = /^#[0-9a-f]{6}$/i;
|
|
64866
64917
|
var CHANNELS = ["primary", "secondary", "tertiary", "neutral"];
|
|
@@ -64870,7 +64921,7 @@ function parseThemeAnswer(text) {
|
|
|
64870
64921
|
var j = firstJson(text);
|
|
64871
64922
|
if (!j) return null;
|
|
64872
64923
|
var colors = {};
|
|
64873
|
-
var _iterator = _createForOfIteratorHelper$
|
|
64924
|
+
var _iterator = _createForOfIteratorHelper$B(CHANNELS),
|
|
64874
64925
|
_step;
|
|
64875
64926
|
try {
|
|
64876
64927
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -64938,9 +64989,9 @@ function _themeFromPrompt() {
|
|
|
64938
64989
|
return _themeFromPrompt.apply(this, arguments);
|
|
64939
64990
|
}
|
|
64940
64991
|
|
|
64941
|
-
function _createForOfIteratorHelper$
|
|
64942
|
-
function _unsupportedIterableToArray$
|
|
64943
|
-
function _arrayLikeToArray$
|
|
64992
|
+
function _createForOfIteratorHelper$A(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$A(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
64993
|
+
function _unsupportedIterableToArray$A(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$A(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$A(r, a) : void 0; } }
|
|
64994
|
+
function _arrayLikeToArray$A(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
64944
64995
|
|
|
64945
64996
|
// How much of a bot's instructions says what it does.
|
|
64946
64997
|
var DOES_MAX = 160;
|
|
@@ -65033,7 +65084,7 @@ function contextRequest(ctx, lead) {
|
|
|
65033
65084
|
if (ctx.widgets.length) lines.push("Widgets: ".concat(ctx.widgets.join(", "), "."));
|
|
65034
65085
|
if (ctx.bots.length) {
|
|
65035
65086
|
lines.push("Its bots:");
|
|
65036
|
-
var _iterator = _createForOfIteratorHelper$
|
|
65087
|
+
var _iterator = _createForOfIteratorHelper$A(ctx.bots),
|
|
65037
65088
|
_step;
|
|
65038
65089
|
try {
|
|
65039
65090
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -68995,9 +69046,9 @@ function matchesSource(entry, filter) {
|
|
|
68995
69046
|
return widgetSource(entry, username) === filter;
|
|
68996
69047
|
}
|
|
68997
69048
|
|
|
68998
|
-
function _createForOfIteratorHelper$
|
|
68999
|
-
function _unsupportedIterableToArray$
|
|
69000
|
-
function _arrayLikeToArray$
|
|
69049
|
+
function _createForOfIteratorHelper$z(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$z(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
69050
|
+
function _unsupportedIterableToArray$z(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$z(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$z(r, a) : void 0; } }
|
|
69051
|
+
function _arrayLikeToArray$z(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
69001
69052
|
|
|
69002
69053
|
/**
|
|
69003
69054
|
* useRegistrySearch — shared hook for browsing and installing registry packages.
|
|
@@ -69111,13 +69162,13 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
69111
69162
|
return c.toLowerCase();
|
|
69112
69163
|
}));
|
|
69113
69164
|
widgets = [];
|
|
69114
|
-
_iterator = _createForOfIteratorHelper$
|
|
69165
|
+
_iterator = _createForOfIteratorHelper$z(pkgs);
|
|
69115
69166
|
try {
|
|
69116
69167
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
69117
69168
|
pkg = _step.value;
|
|
69118
69169
|
// Compute missing APIs for the entire package
|
|
69119
69170
|
allApiProviders = [];
|
|
69120
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
69171
|
+
_iterator2 = _createForOfIteratorHelper$z(pkg.providers || []);
|
|
69121
69172
|
try {
|
|
69122
69173
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
69123
69174
|
p = _step2.value;
|
|
@@ -69130,11 +69181,11 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
69130
69181
|
} finally {
|
|
69131
69182
|
_iterator2.f();
|
|
69132
69183
|
}
|
|
69133
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
69184
|
+
_iterator3 = _createForOfIteratorHelper$z(pkg.widgets || []);
|
|
69134
69185
|
try {
|
|
69135
69186
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
69136
69187
|
w = _step3.value;
|
|
69137
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
69188
|
+
_iterator5 = _createForOfIteratorHelper$z(w.providers || []);
|
|
69138
69189
|
try {
|
|
69139
69190
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
69140
69191
|
_p = _step5.value;
|
|
@@ -69156,7 +69207,7 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
69156
69207
|
missingApis = _toConsumableArray(new Set(allApiProviders)).filter(function (api) {
|
|
69157
69208
|
return !capSet.has(api.toLowerCase());
|
|
69158
69209
|
});
|
|
69159
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
69210
|
+
_iterator4 = _createForOfIteratorHelper$z(pkg.widgets || []);
|
|
69160
69211
|
try {
|
|
69161
69212
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
69162
69213
|
widget = _step4.value;
|
|
@@ -69309,9 +69360,9 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
69309
69360
|
};
|
|
69310
69361
|
};
|
|
69311
69362
|
|
|
69312
|
-
function _createForOfIteratorHelper$
|
|
69313
|
-
function _unsupportedIterableToArray$
|
|
69314
|
-
function _arrayLikeToArray$
|
|
69363
|
+
function _createForOfIteratorHelper$y(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$y(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
69364
|
+
function _unsupportedIterableToArray$y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$y(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$y(r, a) : void 0; } }
|
|
69365
|
+
function _arrayLikeToArray$y(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
69315
69366
|
var RECENT_LIMIT$2 = 5;
|
|
69316
69367
|
var RECENT_DAYS = 14;
|
|
69317
69368
|
var DAY_MS = 24 * 60 * 60 * 1000;
|
|
@@ -69333,7 +69384,7 @@ function recentlyCreated(widgets, registry) {
|
|
|
69333
69384
|
_opts$days = opts.days,
|
|
69334
69385
|
days = _opts$days === void 0 ? RECENT_DAYS : _opts$days;
|
|
69335
69386
|
var byPackage = new Map();
|
|
69336
|
-
var _iterator = _createForOfIteratorHelper$
|
|
69387
|
+
var _iterator = _createForOfIteratorHelper$y(registry || []),
|
|
69337
69388
|
_step;
|
|
69338
69389
|
try {
|
|
69339
69390
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -69349,7 +69400,7 @@ function recentlyCreated(widgets, registry) {
|
|
|
69349
69400
|
}
|
|
69350
69401
|
var since = now - days * DAY_MS;
|
|
69351
69402
|
var rows = [];
|
|
69352
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
69403
|
+
var _iterator2 = _createForOfIteratorHelper$y(widgets || []),
|
|
69353
69404
|
_step2;
|
|
69354
69405
|
try {
|
|
69355
69406
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -69379,9 +69430,9 @@ function recentlyCreated(widgets, registry) {
|
|
|
69379
69430
|
});
|
|
69380
69431
|
}
|
|
69381
69432
|
|
|
69382
|
-
function _createForOfIteratorHelper$
|
|
69383
|
-
function _unsupportedIterableToArray$
|
|
69384
|
-
function _arrayLikeToArray$
|
|
69433
|
+
function _createForOfIteratorHelper$x(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$x(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
69434
|
+
function _unsupportedIterableToArray$x(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$x(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$x(r, a) : void 0; } }
|
|
69435
|
+
function _arrayLikeToArray$x(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
69385
69436
|
function ownKeys$J(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
69386
69437
|
function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
69387
69438
|
var DEFAULT_CONFIG_NAME$1 = "My Workspace";
|
|
@@ -69996,7 +70047,7 @@ var WidgetSidebar = function WidgetSidebar(_ref4) {
|
|
|
69996
70047
|
return _context2.abrupt("return");
|
|
69997
70048
|
case 2:
|
|
69998
70049
|
names = new Set();
|
|
69999
|
-
_iterator = _createForOfIteratorHelper$
|
|
70050
|
+
_iterator = _createForOfIteratorHelper$x(widgets);
|
|
70000
70051
|
try {
|
|
70001
70052
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
70002
70053
|
w = _step.value;
|
|
@@ -70727,9 +70778,9 @@ var EditPanel = function EditPanel(_ref) {
|
|
|
70727
70778
|
});
|
|
70728
70779
|
};
|
|
70729
70780
|
|
|
70730
|
-
function _createForOfIteratorHelper$
|
|
70731
|
-
function _unsupportedIterableToArray$
|
|
70732
|
-
function _arrayLikeToArray$
|
|
70781
|
+
function _createForOfIteratorHelper$w(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$w(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
70782
|
+
function _unsupportedIterableToArray$w(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$w(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$w(r, a) : void 0; } }
|
|
70783
|
+
function _arrayLikeToArray$w(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
70733
70784
|
function ownKeys$I(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
70734
70785
|
function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$I(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
70735
70786
|
var DAYS = [{
|
|
@@ -71066,7 +71117,7 @@ var PanelEditItemSchedule = function PanelEditItemSchedule(_ref2) {
|
|
|
71066
71117
|
setIsLoading(true);
|
|
71067
71118
|
window.mainApi.scheduler.getTasks(widgetUuid).then(function (tasks) {
|
|
71068
71119
|
var stateMap = {};
|
|
71069
|
-
var _iterator = _createForOfIteratorHelper$
|
|
71120
|
+
var _iterator = _createForOfIteratorHelper$w(tasks || []),
|
|
71070
71121
|
_step;
|
|
71071
71122
|
try {
|
|
71072
71123
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -71961,9 +72012,9 @@ var EditBotsRow = function EditBotsRow(_ref) {
|
|
|
71961
72012
|
});
|
|
71962
72013
|
};
|
|
71963
72014
|
|
|
71964
|
-
function _createForOfIteratorHelper$
|
|
71965
|
-
function _unsupportedIterableToArray$
|
|
71966
|
-
function _arrayLikeToArray$
|
|
72015
|
+
function _createForOfIteratorHelper$v(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$v(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
72016
|
+
function _unsupportedIterableToArray$v(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$v(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$v(r, a) : void 0; } }
|
|
72017
|
+
function _arrayLikeToArray$v(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
71967
72018
|
/**
|
|
71968
72019
|
* Dashboard Config hands one widget to the edit panel (consolidation Phase
|
|
71969
72020
|
* 3P): where that widget is — its layout item, the layout it's in, its page
|
|
@@ -71981,7 +72032,7 @@ function findWidgetForHandOff(workspace, target) {
|
|
|
71981
72032
|
return !!i && (target.uuid != null && (i.uuid === target.uuid || i.uuidString === target.uuid) || target.component != null && target.itemId != null && i.component === target.component && String(i.id) === String(target.itemId));
|
|
71982
72033
|
};
|
|
71983
72034
|
var pages = Array.isArray(workspace.pages) ? workspace.pages : [];
|
|
71984
|
-
var _iterator = _createForOfIteratorHelper$
|
|
72035
|
+
var _iterator = _createForOfIteratorHelper$v(pages),
|
|
71985
72036
|
_step;
|
|
71986
72037
|
try {
|
|
71987
72038
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -72065,9 +72116,9 @@ var useMissingWidgets = function useMissingWidgets(workspace) {
|
|
|
72065
72116
|
|
|
72066
72117
|
function ownKeys$F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
72067
72118
|
function _objectSpread$F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$F(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
72068
|
-
function _createForOfIteratorHelper$
|
|
72069
|
-
function _unsupportedIterableToArray$
|
|
72070
|
-
function _arrayLikeToArray$
|
|
72119
|
+
function _createForOfIteratorHelper$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
72120
|
+
function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
|
|
72121
|
+
function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
72071
72122
|
var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
72072
72123
|
var _ref$missingComponent = _ref.missingComponents,
|
|
72073
72124
|
missingComponents = _ref$missingComponent === void 0 ? [] : _ref$missingComponent,
|
|
@@ -72118,7 +72169,7 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
72118
72169
|
case 0:
|
|
72119
72170
|
results = [];
|
|
72120
72171
|
seen = new Set();
|
|
72121
|
-
_iterator = _createForOfIteratorHelper$
|
|
72172
|
+
_iterator = _createForOfIteratorHelper$u(missingComponents);
|
|
72122
72173
|
_context2.prev = 1;
|
|
72123
72174
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
72124
72175
|
var componentKey, _getWidgetSearchQuery, packageName, widgetName, pkg, result;
|
|
@@ -72246,7 +72297,7 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
72246
72297
|
while (1) switch (_context4.prev = _context4.next) {
|
|
72247
72298
|
case 0:
|
|
72248
72299
|
refused = [];
|
|
72249
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
72300
|
+
_iterator2 = _createForOfIteratorHelper$u(indexes);
|
|
72250
72301
|
_context4.prev = 1;
|
|
72251
72302
|
_loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
|
|
72252
72303
|
var i, widget, packageName, packageScope, downloadUrl, packageVersion, scopedId, resolvedUrl, message, _t3;
|
|
@@ -72505,9 +72556,9 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
72505
72556
|
|
|
72506
72557
|
function ownKeys$E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
72507
72558
|
function _objectSpread$E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
72508
|
-
function _createForOfIteratorHelper$
|
|
72509
|
-
function _unsupportedIterableToArray$
|
|
72510
|
-
function _arrayLikeToArray$
|
|
72559
|
+
function _createForOfIteratorHelper$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
72560
|
+
function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$t(r, a) : void 0; } }
|
|
72561
|
+
function _arrayLikeToArray$t(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
72511
72562
|
/**
|
|
72512
72563
|
* numberDuplicateLabels — two widgets of the same kind read "Notepad 1" and
|
|
72513
72564
|
* "Notepad 2" instead of being told apart by an internal id or uuid.
|
|
@@ -72520,7 +72571,7 @@ function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.lengt
|
|
|
72520
72571
|
function numberDuplicateLabels(list, key) {
|
|
72521
72572
|
if (!Array.isArray(list)) return list;
|
|
72522
72573
|
var counts = new Map();
|
|
72523
|
-
var _iterator = _createForOfIteratorHelper$
|
|
72574
|
+
var _iterator = _createForOfIteratorHelper$t(list),
|
|
72524
72575
|
_step;
|
|
72525
72576
|
try {
|
|
72526
72577
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -72545,9 +72596,9 @@ function numberDuplicateLabels(list, key) {
|
|
|
72545
72596
|
|
|
72546
72597
|
function ownKeys$D(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
72547
72598
|
function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
72548
|
-
function _createForOfIteratorHelper$
|
|
72549
|
-
function _unsupportedIterableToArray$
|
|
72550
|
-
function _arrayLikeToArray$
|
|
72599
|
+
function _createForOfIteratorHelper$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
72600
|
+
function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
|
|
72601
|
+
function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
72551
72602
|
var ALL_WIDGETS_ID = "__ALL__";
|
|
72552
72603
|
|
|
72553
72604
|
/**
|
|
@@ -72645,7 +72696,7 @@ var WidgetsTab = function WidgetsTab(_ref) {
|
|
|
72645
72696
|
// widgets from a single input.
|
|
72646
72697
|
var sharedFields = React.useMemo(function () {
|
|
72647
72698
|
var byKey = new Map();
|
|
72648
|
-
var _iterator = _createForOfIteratorHelper$
|
|
72699
|
+
var _iterator = _createForOfIteratorHelper$s(widgets),
|
|
72649
72700
|
_step;
|
|
72650
72701
|
try {
|
|
72651
72702
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -72686,7 +72737,7 @@ var WidgetsTab = function WidgetsTab(_ref) {
|
|
|
72686
72737
|
}, [sharedFields.length, widgets.length]);
|
|
72687
72738
|
var groupedWidgets = React.useMemo(function () {
|
|
72688
72739
|
var groups = new Map();
|
|
72689
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
72740
|
+
var _iterator2 = _createForOfIteratorHelper$s(widgets),
|
|
72690
72741
|
_step2;
|
|
72691
72742
|
try {
|
|
72692
72743
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -73001,9 +73052,9 @@ function SharedFieldRow(_ref13) {
|
|
|
73001
73052
|
});
|
|
73002
73053
|
}
|
|
73003
73054
|
|
|
73004
|
-
function _createForOfIteratorHelper$
|
|
73005
|
-
function _unsupportedIterableToArray$
|
|
73006
|
-
function _arrayLikeToArray$
|
|
73055
|
+
function _createForOfIteratorHelper$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
73056
|
+
function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
|
|
73057
|
+
function _arrayLikeToArray$r(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
73007
73058
|
var PermissionsTab = function PermissionsTab(_ref) {
|
|
73008
73059
|
var workspace = _ref.workspace;
|
|
73009
73060
|
var _React$useContext = React.useContext(AppContext),
|
|
@@ -73230,7 +73281,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
73230
73281
|
return _context4.abrupt("return");
|
|
73231
73282
|
case 3:
|
|
73232
73283
|
next = currentGrant;
|
|
73233
|
-
_iterator = _createForOfIteratorHelper$
|
|
73284
|
+
_iterator = _createForOfIteratorHelper$r(declaredTools);
|
|
73234
73285
|
try {
|
|
73235
73286
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
73236
73287
|
tool = _step.value;
|
|
@@ -73390,7 +73441,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
73390
73441
|
}
|
|
73391
73442
|
}
|
|
73392
73443
|
targets = labels.length > 0 ? labels : [serverName];
|
|
73393
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
73444
|
+
_iterator2 = _createForOfIteratorHelper$r(targets);
|
|
73394
73445
|
_context8.prev = 1;
|
|
73395
73446
|
_iterator2.s();
|
|
73396
73447
|
case 2:
|
|
@@ -73446,7 +73497,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
73446
73497
|
case 0:
|
|
73447
73498
|
setBusy(true);
|
|
73448
73499
|
_context9.prev = 1;
|
|
73449
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
73500
|
+
_iterator3 = _createForOfIteratorHelper$r(filteredRows);
|
|
73450
73501
|
_context9.prev = 2;
|
|
73451
73502
|
_iterator3.s();
|
|
73452
73503
|
case 3:
|
|
@@ -73505,7 +73556,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
73505
73556
|
case 0:
|
|
73506
73557
|
setBusy(true);
|
|
73507
73558
|
_context0.prev = 1;
|
|
73508
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
73559
|
+
_iterator4 = _createForOfIteratorHelper$r(filteredRows);
|
|
73509
73560
|
_context0.prev = 2;
|
|
73510
73561
|
_iterator4.s();
|
|
73511
73562
|
case 3:
|
|
@@ -74182,9 +74233,9 @@ var NotificationsList = function NotificationsList(_ref2) {
|
|
|
74182
74233
|
});
|
|
74183
74234
|
};
|
|
74184
74235
|
|
|
74185
|
-
function _createForOfIteratorHelper$
|
|
74186
|
-
function _unsupportedIterableToArray$
|
|
74187
|
-
function _arrayLikeToArray$
|
|
74236
|
+
function _createForOfIteratorHelper$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
74237
|
+
function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$q(r, a) : void 0; } }
|
|
74238
|
+
function _arrayLikeToArray$q(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
74188
74239
|
function ownKeys$B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
74189
74240
|
function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
74190
74241
|
var widgetNameOf = function widgetNameOf(component) {
|
|
@@ -74354,7 +74405,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
74354
74405
|
};
|
|
74355
74406
|
if (!appProviders) return byType;
|
|
74356
74407
|
if (Array.isArray(appProviders)) {
|
|
74357
|
-
var _iterator = _createForOfIteratorHelper$
|
|
74408
|
+
var _iterator = _createForOfIteratorHelper$q(appProviders),
|
|
74358
74409
|
_step;
|
|
74359
74410
|
try {
|
|
74360
74411
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -74425,7 +74476,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
74425
74476
|
});
|
|
74426
74477
|
}
|
|
74427
74478
|
if (Array.isArray(workspace === null || workspace === void 0 ? void 0 : workspace.pages)) {
|
|
74428
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
74479
|
+
var _iterator2 = _createForOfIteratorHelper$q(workspace.pages),
|
|
74429
74480
|
_step2;
|
|
74430
74481
|
try {
|
|
74431
74482
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -74452,7 +74503,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
74452
74503
|
var visitedByLocation = new WeakSet();
|
|
74453
74504
|
var _collect = function collect(items, location) {
|
|
74454
74505
|
if (!Array.isArray(items)) return;
|
|
74455
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
74506
|
+
var _iterator3 = _createForOfIteratorHelper$q(items),
|
|
74456
74507
|
_step3;
|
|
74457
74508
|
try {
|
|
74458
74509
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -74553,7 +74604,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
74553
74604
|
}
|
|
74554
74605
|
if (stagedListeners.adds.length > 0) {
|
|
74555
74606
|
// Append; avoid duplicates against current state.
|
|
74556
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
74607
|
+
var _iterator4 = _createForOfIteratorHelper$q(stagedListeners.adds),
|
|
74557
74608
|
_step4;
|
|
74558
74609
|
try {
|
|
74559
74610
|
var _loop = function _loop() {
|
|
@@ -74577,7 +74628,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
74577
74628
|
}
|
|
74578
74629
|
if (orphans.length === 0) return next;
|
|
74579
74630
|
var orphanIndex = new Map();
|
|
74580
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
74631
|
+
var _iterator5 = _createForOfIteratorHelper$q(orphans),
|
|
74581
74632
|
_step5;
|
|
74582
74633
|
try {
|
|
74583
74634
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -74619,7 +74670,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
74619
74670
|
function stagePrefFieldForAll(targetWidgets, key, value) {
|
|
74620
74671
|
setStagedPrefs(function (prev) {
|
|
74621
74672
|
var next = _objectSpread$B({}, prev);
|
|
74622
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
74673
|
+
var _iterator6 = _createForOfIteratorHelper$q(targetWidgets),
|
|
74623
74674
|
_step6;
|
|
74624
74675
|
try {
|
|
74625
74676
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -74664,7 +74715,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
74664
74715
|
});
|
|
74665
74716
|
setStaged(function (prev) {
|
|
74666
74717
|
var next = _objectSpread$B({}, prev);
|
|
74667
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
74718
|
+
var _iterator7 = _createForOfIteratorHelper$q(affected),
|
|
74668
74719
|
_step7;
|
|
74669
74720
|
try {
|
|
74670
74721
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -75532,7 +75583,7 @@ function ListenersTab(_ref1) {
|
|
|
75532
75583
|
// Receiver lookup (by composite key) for label resolution in chips.
|
|
75533
75584
|
var receiverByKey = React.useMemo(function () {
|
|
75534
75585
|
var m = new Map();
|
|
75535
|
-
var _iterator8 = _createForOfIteratorHelper$
|
|
75586
|
+
var _iterator8 = _createForOfIteratorHelper$q(receivers),
|
|
75536
75587
|
_step8;
|
|
75537
75588
|
try {
|
|
75538
75589
|
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
@@ -75630,7 +75681,7 @@ function HandlersColumn(_ref11) {
|
|
|
75630
75681
|
onSelectHandler = _ref11.onSelectHandler;
|
|
75631
75682
|
var countsByHandler = React.useMemo(function () {
|
|
75632
75683
|
var m = new Map();
|
|
75633
|
-
var _iterator9 = _createForOfIteratorHelper$
|
|
75684
|
+
var _iterator9 = _createForOfIteratorHelper$q(myWiring),
|
|
75634
75685
|
_step9;
|
|
75635
75686
|
try {
|
|
75636
75687
|
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
@@ -75707,7 +75758,7 @@ function EventsColumn(_ref12) {
|
|
|
75707
75758
|
var wiredHere = React.useMemo(function () {
|
|
75708
75759
|
var seen = new Set();
|
|
75709
75760
|
var out = [];
|
|
75710
|
-
var _iterator0 = _createForOfIteratorHelper$
|
|
75761
|
+
var _iterator0 = _createForOfIteratorHelper$q(myWiring),
|
|
75711
75762
|
_step0;
|
|
75712
75763
|
try {
|
|
75713
75764
|
for (_iterator0.s(); !(_step0 = _iterator0.n()).done;) {
|
|
@@ -75825,9 +75876,9 @@ function EventsColumn(_ref12) {
|
|
|
75825
75876
|
);
|
|
75826
75877
|
}
|
|
75827
75878
|
|
|
75828
|
-
function _createForOfIteratorHelper$
|
|
75829
|
-
function _unsupportedIterableToArray$
|
|
75830
|
-
function _arrayLikeToArray$
|
|
75879
|
+
function _createForOfIteratorHelper$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
75880
|
+
function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$p(r, a) : void 0; } }
|
|
75881
|
+
function _arrayLikeToArray$p(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
75831
75882
|
/**
|
|
75832
75883
|
* botSummary — what the Bots page shows about a bot (app-navigation PRD
|
|
75833
75884
|
* NAV-006): its widget-style name, avatar colour, providers + tools, each
|
|
@@ -75861,7 +75912,7 @@ function avatarColor(bot) {
|
|
|
75861
75912
|
/** Each bot's newest run, from `listRecentRuns` (newest first). */
|
|
75862
75913
|
function lastRunsByBot(recent) {
|
|
75863
75914
|
var out = {};
|
|
75864
|
-
var _iterator = _createForOfIteratorHelper$
|
|
75915
|
+
var _iterator = _createForOfIteratorHelper$p(recent || []),
|
|
75865
75916
|
_step;
|
|
75866
75917
|
try {
|
|
75867
75918
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -75902,9 +75953,9 @@ var BotAvatar = function BotAvatar(_ref) {
|
|
|
75902
75953
|
|
|
75903
75954
|
function ownKeys$A(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
75904
75955
|
function _objectSpread$A(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$A(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$A(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
75905
|
-
function _createForOfIteratorHelper$
|
|
75906
|
-
function _unsupportedIterableToArray$
|
|
75907
|
-
function _arrayLikeToArray$
|
|
75956
|
+
function _createForOfIteratorHelper$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
75957
|
+
function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$o(r, a) : void 0; } }
|
|
75958
|
+
function _arrayLikeToArray$o(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
75908
75959
|
var BOT_EVENT_RE = /^bot:(.+)\[([^\]]+)\]\.(.+)$/;
|
|
75909
75960
|
var slugify = function slugify(name) {
|
|
75910
75961
|
return String(name || "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "bot";
|
|
@@ -75962,13 +76013,13 @@ function diagramEdges() {
|
|
|
75962
76013
|
}));
|
|
75963
76014
|
if (lead) ids["delete"](lead.id);
|
|
75964
76015
|
var edges = [];
|
|
75965
|
-
var _iterator = _createForOfIteratorHelper$
|
|
76016
|
+
var _iterator = _createForOfIteratorHelper$o(members || []),
|
|
75966
76017
|
_step;
|
|
75967
76018
|
try {
|
|
75968
76019
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
75969
76020
|
var to = _step.value;
|
|
75970
76021
|
if (!to || !ids.has(to.id)) continue;
|
|
75971
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
76022
|
+
var _iterator2 = _createForOfIteratorHelper$o(botSubs(to)),
|
|
75972
76023
|
_step2;
|
|
75973
76024
|
try {
|
|
75974
76025
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -76030,12 +76081,12 @@ function runsAfter(bot) {
|
|
|
76030
76081
|
function thenTriggers(botId) {
|
|
76031
76082
|
var members = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
76032
76083
|
var out = [];
|
|
76033
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
76084
|
+
var _iterator3 = _createForOfIteratorHelper$o(members || []),
|
|
76034
76085
|
_step3;
|
|
76035
76086
|
try {
|
|
76036
76087
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
76037
76088
|
var b = _step3.value;
|
|
76038
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
76089
|
+
var _iterator4 = _createForOfIteratorHelper$o(botSubs(b)),
|
|
76039
76090
|
_step4;
|
|
76040
76091
|
try {
|
|
76041
76092
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -76122,7 +76173,7 @@ function diagramLayout(_ref2) {
|
|
|
76122
76173
|
function loopEdges() {
|
|
76123
76174
|
var edges = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
76124
76175
|
var next = new Map();
|
|
76125
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
76176
|
+
var _iterator5 = _createForOfIteratorHelper$o(edges),
|
|
76126
76177
|
_step5;
|
|
76127
76178
|
try {
|
|
76128
76179
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -76143,7 +76194,7 @@ function loopEdges() {
|
|
|
76143
76194
|
if (id === goal) return true;
|
|
76144
76195
|
if (seen.has(id)) continue;
|
|
76145
76196
|
seen.add(id);
|
|
76146
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
76197
|
+
var _iterator6 = _createForOfIteratorHelper$o(next.get(id) || []),
|
|
76147
76198
|
_step6;
|
|
76148
76199
|
try {
|
|
76149
76200
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -76422,9 +76473,9 @@ var TriggerPopover = function TriggerPopover(_ref) {
|
|
|
76422
76473
|
});
|
|
76423
76474
|
};
|
|
76424
76475
|
|
|
76425
|
-
function _createForOfIteratorHelper$
|
|
76426
|
-
function _unsupportedIterableToArray$
|
|
76427
|
-
function _arrayLikeToArray$
|
|
76476
|
+
function _createForOfIteratorHelper$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
76477
|
+
function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
|
|
76478
|
+
function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
76428
76479
|
function ownKeys$z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
76429
76480
|
function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
76430
76481
|
var CARD_H = 80;
|
|
@@ -76594,7 +76645,7 @@ var TeamChart = function TeamChart(_ref) {
|
|
|
76594
76645
|
return pos[b.id].x + layout.cardW / 2;
|
|
76595
76646
|
});
|
|
76596
76647
|
teamLines.push("M".concat(Math.min.apply(Math, _toConsumableArray(xs).concat([lx])), ",").concat(layout.busY, " H").concat(Math.max.apply(Math, _toConsumableArray(xs).concat([lx]))));
|
|
76597
|
-
var _iterator = _createForOfIteratorHelper$
|
|
76648
|
+
var _iterator = _createForOfIteratorHelper$n(firstRow),
|
|
76598
76649
|
_step;
|
|
76599
76650
|
try {
|
|
76600
76651
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -82517,9 +82568,9 @@ function useAllBots() {
|
|
|
82517
82568
|
}, [loading, bots, dashTeam, running, paused, approvals, lastRuns, approve, refresh]);
|
|
82518
82569
|
}
|
|
82519
82570
|
|
|
82520
|
-
function _createForOfIteratorHelper$
|
|
82521
|
-
function _unsupportedIterableToArray$
|
|
82522
|
-
function _arrayLikeToArray$
|
|
82571
|
+
function _createForOfIteratorHelper$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
82572
|
+
function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
|
|
82573
|
+
function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
82523
82574
|
/**
|
|
82524
82575
|
* leadMessages.js — pure helpers for messaging a team lead directly from the
|
|
82525
82576
|
* AI Assistant's "To:" picker (bot-teams TEAM-013).
|
|
@@ -82565,7 +82616,7 @@ function buildLlmHistory(messages) {
|
|
|
82565
82616
|
content: content
|
|
82566
82617
|
});
|
|
82567
82618
|
};
|
|
82568
|
-
var _iterator = _createForOfIteratorHelper$
|
|
82619
|
+
var _iterator = _createForOfIteratorHelper$m(messages || []),
|
|
82569
82620
|
_step;
|
|
82570
82621
|
try {
|
|
82571
82622
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -83118,7 +83169,11 @@ var AskStep = function AskStep(_ref) {
|
|
|
83118
83169
|
_ref$renderAfter = _ref.renderAfter,
|
|
83119
83170
|
renderAfter = _ref$renderAfter === void 0 ? null : _ref$renderAfter,
|
|
83120
83171
|
_ref$prepareSend = _ref.prepareSend,
|
|
83121
|
-
prepareSend = _ref$prepareSend === void 0 ? null : _ref$prepareSend
|
|
83172
|
+
prepareSend = _ref$prepareSend === void 0 ? null : _ref$prepareSend,
|
|
83173
|
+
_ref$placeholder = _ref.placeholder,
|
|
83174
|
+
placeholder = _ref$placeholder === void 0 ? null : _ref$placeholder,
|
|
83175
|
+
_ref$hint = _ref.hint,
|
|
83176
|
+
hint = _ref$hint === void 0 ? undefined : _ref$hint;
|
|
83122
83177
|
// [{ who: "you" | "planner" | "lead" | "role" | "note" | "step", text, meta?, plan? }]
|
|
83123
83178
|
// A step is a hand-off ("Asked Inbox Watch"): { id, bot, label, request,
|
|
83124
83179
|
// status, answer?, result? } (handoffSteps.js).
|
|
@@ -83549,6 +83604,13 @@ var AskStep = function AskStep(_ref) {
|
|
|
83549
83604
|
var box = boxes && boxes.length ? boxes[boxes.length - 1] : null;
|
|
83550
83605
|
if (box) box.focus();
|
|
83551
83606
|
};
|
|
83607
|
+
// The conversation follows its newest message (and what shows after it:
|
|
83608
|
+
// the plan's card, the reply choices).
|
|
83609
|
+
var scroller = React.useRef(null);
|
|
83610
|
+
React.useEffect(function () {
|
|
83611
|
+
var el = scroller.current;
|
|
83612
|
+
if (el) el.scrollTop = el.scrollHeight;
|
|
83613
|
+
}, [messages.length, busy]);
|
|
83552
83614
|
var after = function after(m, i) {
|
|
83553
83615
|
return renderAfter ? renderAfter(m, i, {
|
|
83554
83616
|
send: send,
|
|
@@ -83561,6 +83623,7 @@ var AskStep = function AskStep(_ref) {
|
|
|
83561
83623
|
className: "flex-1 min-h-0 flex flex-col",
|
|
83562
83624
|
"data-testid": "ask-step",
|
|
83563
83625
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
83626
|
+
ref: scroller,
|
|
83564
83627
|
className: "flex-1 min-h-0 overflow-y-auto",
|
|
83565
83628
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
83566
83629
|
className: "flex flex-col gap-3 px-3 py-3",
|
|
@@ -83639,7 +83702,7 @@ var AskStep = function AskStep(_ref) {
|
|
|
83639
83702
|
})
|
|
83640
83703
|
}) : null]
|
|
83641
83704
|
})
|
|
83642
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.ChatComposer, {
|
|
83705
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.ChatComposer, _objectSpread$r(_objectSpread$r({
|
|
83643
83706
|
ariaLabel: "Ask a follow-up",
|
|
83644
83707
|
value: reply,
|
|
83645
83708
|
onChange: function onChange(v) {
|
|
@@ -83650,17 +83713,19 @@ var AskStep = function AskStep(_ref) {
|
|
|
83650
83713
|
},
|
|
83651
83714
|
busy: busy,
|
|
83652
83715
|
onStop: stopNow,
|
|
83653
|
-
placeholder: busy ? "".concat(replyName.charAt(0).toUpperCase()).concat(replyName.slice(1), " is looking\u2026") : lead ? "Ask ".concat(lead.leadName, " a follow-up\u2026") : teamRole ? "Ask the ".concat(roleName, " a follow-up\u2026") : "Ask a follow-up…",
|
|
83716
|
+
placeholder: busy ? "".concat(replyName.charAt(0).toUpperCase()).concat(replyName.slice(1), " is looking\u2026") : placeholder ? placeholder : lead ? "Ask ".concat(lead.leadName, " a follow-up\u2026") : teamRole ? "Ask the ".concat(roleName, " a follow-up\u2026") : "Ask a follow-up…",
|
|
83654
83717
|
above: !hideTo && (lead || teamRole) ? /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
83655
83718
|
className: "text-xs ".concat(muted),
|
|
83656
83719
|
"data-testid": "ask-to",
|
|
83657
83720
|
children: ["To: ", lead ? leadLabel(lead) : "".concat(roleName, " \xB7 Dash team")]
|
|
83658
83721
|
}) : null
|
|
83722
|
+
}, hint !== undefined ? {
|
|
83723
|
+
hint: hint
|
|
83724
|
+
} : {}), {}, {
|
|
83659
83725
|
// Same word as the dock's first question (one label per action).
|
|
83660
|
-
,
|
|
83661
83726
|
sendLabel: "Ask",
|
|
83662
83727
|
className: "flex-shrink-0"
|
|
83663
|
-
})]
|
|
83728
|
+
}))]
|
|
83664
83729
|
});
|
|
83665
83730
|
};
|
|
83666
83731
|
|
|
@@ -84456,9 +84521,9 @@ var BotPageModal = function BotPageModal(_ref) {
|
|
|
84456
84521
|
});
|
|
84457
84522
|
};
|
|
84458
84523
|
|
|
84459
|
-
function _createForOfIteratorHelper$
|
|
84460
|
-
function _unsupportedIterableToArray$
|
|
84461
|
-
function _arrayLikeToArray$
|
|
84524
|
+
function _createForOfIteratorHelper$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
84525
|
+
function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
|
|
84526
|
+
function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
84462
84527
|
/**
|
|
84463
84528
|
* workspaceContacts.js — who the lead workspace can talk to (lead-workspace
|
|
84464
84529
|
* release 2): the Dash Lead, each dashboard's lead, and each bot on no
|
|
@@ -84467,12 +84532,14 @@ function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.lengt
|
|
|
84467
84532
|
* A contact:
|
|
84468
84533
|
* { key, kind: "dashlead" | "lead" | "bot", name, sub, botId,
|
|
84469
84534
|
* recipient (what AskStep is given; null for a lone bot),
|
|
84470
|
-
* members: [{ id, name }] (the bots it hands work to)
|
|
84535
|
+
* members: [{ id, name, role? }] (the bots it hands work to),
|
|
84536
|
+
* line (under its name at the top of the switcher) }
|
|
84471
84537
|
* `key` matches a conversation's `with` from Recent ("role:dashlead",
|
|
84472
84538
|
* "lead:<botId>"); a lone bot's is "bot:<id>".
|
|
84473
84539
|
*/
|
|
84474
84540
|
|
|
84475
|
-
|
|
84541
|
+
// In the order they work (frame 1): the Scout looks first.
|
|
84542
|
+
var WORK_ROLES = ["scout", "planner", "builder", "checker"];
|
|
84476
84543
|
var sameId = function sameId(a, b) {
|
|
84477
84544
|
return a !== null && a !== undefined && b !== null && b !== undefined && String(a) === String(b);
|
|
84478
84545
|
};
|
|
@@ -84516,12 +84583,17 @@ function contactGroups() {
|
|
|
84516
84583
|
}).filter(Boolean).map(function (b) {
|
|
84517
84584
|
return {
|
|
84518
84585
|
id: b.id,
|
|
84519
|
-
name: b.name
|
|
84586
|
+
name: b.name,
|
|
84587
|
+
role: b.role
|
|
84520
84588
|
};
|
|
84521
84589
|
})
|
|
84522
84590
|
});
|
|
84591
|
+
var d = leadsGroup[0];
|
|
84592
|
+
d.line = d.members.map(function (m) {
|
|
84593
|
+
return m.name;
|
|
84594
|
+
}).join(" · ") || d.sub;
|
|
84523
84595
|
}
|
|
84524
|
-
var _iterator = _createForOfIteratorHelper$
|
|
84596
|
+
var _iterator = _createForOfIteratorHelper$l(leads || []),
|
|
84525
84597
|
_step;
|
|
84526
84598
|
try {
|
|
84527
84599
|
var _loop = function _loop() {
|
|
@@ -84542,7 +84614,10 @@ function contactGroups() {
|
|
|
84542
84614
|
sub: "".concat(l.dashboardLabel || l.dashboardName || "Dashboard", " \xB7 ").concat(plural$5(members.length, "bot")),
|
|
84543
84615
|
botId: l.botId,
|
|
84544
84616
|
recipient: l,
|
|
84545
|
-
members: members
|
|
84617
|
+
members: members,
|
|
84618
|
+
line: members.map(function (m) {
|
|
84619
|
+
return m.name;
|
|
84620
|
+
}).join(" · ") || "No bots yet"
|
|
84546
84621
|
});
|
|
84547
84622
|
};
|
|
84548
84623
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -84563,7 +84638,8 @@ function contactGroups() {
|
|
|
84563
84638
|
sub: "A bot on no dashboard",
|
|
84564
84639
|
botId: b.id,
|
|
84565
84640
|
recipient: null,
|
|
84566
|
-
members: []
|
|
84641
|
+
members: [],
|
|
84642
|
+
line: "A bot on no dashboard"
|
|
84567
84643
|
};
|
|
84568
84644
|
});
|
|
84569
84645
|
return [{
|
|
@@ -84579,7 +84655,7 @@ function contactGroups() {
|
|
|
84579
84655
|
|
|
84580
84656
|
/** One contact by key, from the groups; null when it's gone. */
|
|
84581
84657
|
function findContact(groups, key) {
|
|
84582
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
84658
|
+
var _iterator2 = _createForOfIteratorHelper$l(groups || []),
|
|
84583
84659
|
_step2;
|
|
84584
84660
|
try {
|
|
84585
84661
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -84609,6 +84685,10 @@ function contactThreads(entries, key) {
|
|
|
84609
84685
|
});
|
|
84610
84686
|
}
|
|
84611
84687
|
|
|
84688
|
+
function _createForOfIteratorHelper$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
84689
|
+
function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
|
|
84690
|
+
function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
84691
|
+
|
|
84612
84692
|
/** The latest hand-off step that brought a plan, or null. */
|
|
84613
84693
|
function latestPlanStep(messages) {
|
|
84614
84694
|
var list = Array.isArray(messages) ? messages : [];
|
|
@@ -84743,25 +84823,169 @@ function withPlanContext(text, plan) {
|
|
|
84743
84823
|
function whoAsks() {
|
|
84744
84824
|
return "Planner · Dash team";
|
|
84745
84825
|
}
|
|
84826
|
+
var SOURCE_LINE = {
|
|
84827
|
+
yours: "Yours",
|
|
84828
|
+
"ai-built": "AI-built",
|
|
84829
|
+
registry: "From the registry",
|
|
84830
|
+
"new": "New",
|
|
84831
|
+
update: "Yours, changed"
|
|
84832
|
+
};
|
|
84833
|
+
|
|
84834
|
+
/** "1 widget" · "3 widgets" */
|
|
84835
|
+
var count = function count(n, one) {
|
|
84836
|
+
return "".concat(n, " ").concat(one).concat(n === 1 ? "" : "s");
|
|
84837
|
+
};
|
|
84838
|
+
|
|
84839
|
+
/** The providers the plan needs connected (Before it builds' connects). */
|
|
84840
|
+
var connectItems = function connectItems(checklist) {
|
|
84841
|
+
return (checklist || []).filter(function (it) {
|
|
84842
|
+
return it && it.kind === "connect";
|
|
84843
|
+
});
|
|
84844
|
+
};
|
|
84845
|
+
var providerName = function providerName(it) {
|
|
84846
|
+
return String(it.label || "").replace(/^Connect /, "");
|
|
84847
|
+
};
|
|
84848
|
+
|
|
84849
|
+
/**
|
|
84850
|
+
* The opened plan's line (frame 6): "4 widgets · 1 bot · uses Home
|
|
84851
|
+
* Assistant".
|
|
84852
|
+
*/
|
|
84853
|
+
function planSubLine(plan) {
|
|
84854
|
+
var checklist = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
84855
|
+
var pieces = plan && Array.isArray(plan.pieces) && plan.pieces || [];
|
|
84856
|
+
var widgets = pieces.filter(function (p) {
|
|
84857
|
+
return p && p.kind === "widget";
|
|
84858
|
+
}).length;
|
|
84859
|
+
var bots = pieces.filter(function (p) {
|
|
84860
|
+
return p && p.kind === "bot";
|
|
84861
|
+
}).length;
|
|
84862
|
+
var uses = connectItems(checklist).map(providerName);
|
|
84863
|
+
return [widgets ? count(widgets, "widget") : null, bots ? count(bots, "bot") : null, uses.length ? "uses ".concat(uses.join(", ")) : null].filter(Boolean).join(" · ");
|
|
84864
|
+
}
|
|
84865
|
+
|
|
84866
|
+
/**
|
|
84867
|
+
* The opened plan's rows (frame 6): one per widget or bot — its name, where
|
|
84868
|
+
* it comes from and what it's for — then a warning row per provider still to
|
|
84869
|
+
* connect. `isDone(item)` says whether a connect is done.
|
|
84870
|
+
* @returns {{ main: string, sub: string, warn?: boolean }[]}
|
|
84871
|
+
*/
|
|
84872
|
+
function planRows(plan) {
|
|
84873
|
+
var checklist = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
84874
|
+
var isDone = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function () {
|
|
84875
|
+
return false;
|
|
84876
|
+
};
|
|
84877
|
+
var pieces = plan && Array.isArray(plan.pieces) && plan.pieces || [];
|
|
84878
|
+
var rows = pieces.filter(function (p) {
|
|
84879
|
+
return p && (p.kind === "widget" || p.kind === "bot") && p.name;
|
|
84880
|
+
}).map(function (p) {
|
|
84881
|
+
var source = SOURCE_LINE[p.source] || SOURCE_LINE["new"];
|
|
84882
|
+
var what = String(p.adds || p.notes || p["package"] || "").trim();
|
|
84883
|
+
return {
|
|
84884
|
+
main: p.name,
|
|
84885
|
+
sub: what ? "".concat(source, " \u2014 ").concat(what) : source
|
|
84886
|
+
};
|
|
84887
|
+
});
|
|
84888
|
+
var _iterator = _createForOfIteratorHelper$k(connectItems(checklist)),
|
|
84889
|
+
_step;
|
|
84890
|
+
try {
|
|
84891
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
84892
|
+
var it = _step.value;
|
|
84893
|
+
if (isDone(it)) continue;
|
|
84894
|
+
rows.push({
|
|
84895
|
+
main: "Needs ".concat(providerName(it), " connected"),
|
|
84896
|
+
sub: "Before it builds, or during the build",
|
|
84897
|
+
warn: true
|
|
84898
|
+
});
|
|
84899
|
+
}
|
|
84900
|
+
} catch (err) {
|
|
84901
|
+
_iterator.e(err);
|
|
84902
|
+
} finally {
|
|
84903
|
+
_iterator.f();
|
|
84904
|
+
}
|
|
84905
|
+
return rows;
|
|
84906
|
+
}
|
|
84907
|
+
|
|
84908
|
+
/**
|
|
84909
|
+
* The Providers line at the foot of the right column: each provider the plan
|
|
84910
|
+
* needs and whether it's connected; "none needed" for a plan that needs
|
|
84911
|
+
* none.
|
|
84912
|
+
*/
|
|
84913
|
+
function providersLine() {
|
|
84914
|
+
var checklist = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
84915
|
+
var isDone = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {
|
|
84916
|
+
return false;
|
|
84917
|
+
};
|
|
84918
|
+
var items = connectItems(checklist);
|
|
84919
|
+
if (!items.length) return "none needed";
|
|
84920
|
+
return items.map(function (it) {
|
|
84921
|
+
return "".concat(providerName(it), " \xB7 ").concat(isDone(it) ? "connected" : "not connected yet");
|
|
84922
|
+
}).join(" · ");
|
|
84923
|
+
}
|
|
84746
84924
|
|
|
84747
84925
|
function ownKeys$q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
84748
84926
|
function _objectSpread$q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
84749
|
-
var
|
|
84750
|
-
var
|
|
84751
|
-
|
|
84927
|
+
var OutputCard = function OutputCard(_ref) {
|
|
84928
|
+
var _ref$icon = _ref.icon,
|
|
84929
|
+
icon = _ref$icon === void 0 ? "table-cells-large" : _ref$icon,
|
|
84930
|
+
title = _ref.title,
|
|
84931
|
+
_ref$sub = _ref.sub,
|
|
84932
|
+
sub = _ref$sub === void 0 ? "" : _ref$sub,
|
|
84933
|
+
_ref$kind = _ref.kind,
|
|
84934
|
+
kind = _ref$kind === void 0 ? "" : _ref$kind,
|
|
84935
|
+
onClick = _ref.onClick,
|
|
84936
|
+
_ref$bordered = _ref.bordered,
|
|
84937
|
+
bordered = _ref$bordered === void 0 ? true : _ref$bordered,
|
|
84938
|
+
testId = _ref.testId;
|
|
84752
84939
|
var _useConfigTokens = useConfigTokens(),
|
|
84753
84940
|
muted = _useConfigTokens.muted,
|
|
84754
|
-
|
|
84941
|
+
strong = _useConfigTokens.strong,
|
|
84942
|
+
hairline = _useConfigTokens.hairline,
|
|
84943
|
+
selectedBg = _useConfigTokens.selectedBg,
|
|
84944
|
+
fieldBg = _useConfigTokens.fieldBg;
|
|
84945
|
+
return /*#__PURE__*/jsxRuntime.jsxs("button", {
|
|
84946
|
+
type: "button",
|
|
84947
|
+
onClick: onClick,
|
|
84948
|
+
className: "w-full flex flex-row items-center gap-3 rounded-xl px-4 py-3 text-left ".concat(bordered ? "border ".concat(hairline) : "", " ").concat(selectedBg, " dr-role-surface"),
|
|
84949
|
+
"data-testid": testId,
|
|
84950
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
84951
|
+
className: "flex-shrink-0 flex items-center justify-center h-10 w-10 rounded-lg ".concat(fieldBg, " dr-role-well ").concat(muted),
|
|
84952
|
+
"aria-hidden": "true",
|
|
84953
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
84954
|
+
icon: icon,
|
|
84955
|
+
className: "h-4 w-4"
|
|
84956
|
+
})
|
|
84957
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
84958
|
+
className: "flex-1 min-w-0 flex flex-col gap-0.5",
|
|
84959
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
84960
|
+
className: "text-sm font-semibold truncate ".concat(strong),
|
|
84961
|
+
children: title
|
|
84962
|
+
}), sub ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
84963
|
+
className: "text-xs ".concat(muted),
|
|
84964
|
+
children: sub
|
|
84965
|
+
}) : null]
|
|
84966
|
+
}), kind ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
84967
|
+
className: "flex-shrink-0 text-xs ".concat(muted),
|
|
84968
|
+
children: kind
|
|
84969
|
+
}) : null]
|
|
84970
|
+
});
|
|
84971
|
+
};
|
|
84972
|
+
|
|
84973
|
+
/**
|
|
84974
|
+
* The plan as a card in the conversation: opens it on the right. An earlier
|
|
84975
|
+
* plan (one the Planner has since changed) says so, and still opens.
|
|
84976
|
+
*/
|
|
84977
|
+
var PlanCard = function PlanCard(_ref2) {
|
|
84978
|
+
var plan = _ref2.plan,
|
|
84979
|
+
_ref2$earlier = _ref2.earlier,
|
|
84980
|
+
earlier = _ref2$earlier === void 0 ? false : _ref2$earlier,
|
|
84981
|
+
onOpen = _ref2.onOpen;
|
|
84755
84982
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
84756
|
-
className: "self-start w-full max-w-md
|
|
84983
|
+
className: "self-start w-full max-w-md",
|
|
84757
84984
|
"data-testid": "workspace-plan-card",
|
|
84758
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
84759
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
84760
|
-
icon: "table-cells-large",
|
|
84761
|
-
className: "h-4 w-4 ".concat(muted)
|
|
84762
|
-
}),
|
|
84985
|
+
children: /*#__PURE__*/jsxRuntime.jsx(OutputCard, {
|
|
84763
84986
|
title: planName(plan),
|
|
84764
|
-
|
|
84987
|
+
sub: earlier ? "".concat(planLine(plan), " \xB7 changed since") : planLine(plan),
|
|
84988
|
+
bordered: false,
|
|
84765
84989
|
onClick: onOpen
|
|
84766
84990
|
})
|
|
84767
84991
|
});
|
|
@@ -84776,14 +85000,14 @@ var PlanCard = function PlanCard(_ref) {
|
|
|
84776
85000
|
* @param {() => void} onChange Change something (the reply box)
|
|
84777
85001
|
* @param {boolean} sent already sent to Create to build
|
|
84778
85002
|
*/
|
|
84779
|
-
var PlanChoices = function PlanChoices(
|
|
84780
|
-
var plan =
|
|
84781
|
-
check =
|
|
84782
|
-
|
|
84783
|
-
sent =
|
|
84784
|
-
onSend =
|
|
84785
|
-
onBuild =
|
|
84786
|
-
onChange =
|
|
85003
|
+
var PlanChoices = function PlanChoices(_ref3) {
|
|
85004
|
+
var plan = _ref3.plan,
|
|
85005
|
+
check = _ref3.check,
|
|
85006
|
+
_ref3$sent = _ref3.sent,
|
|
85007
|
+
sent = _ref3$sent === void 0 ? false : _ref3$sent,
|
|
85008
|
+
onSend = _ref3.onSend,
|
|
85009
|
+
onBuild = _ref3.onBuild,
|
|
85010
|
+
onChange = _ref3.onChange;
|
|
84787
85011
|
var _useConfigTokens2 = useConfigTokens(),
|
|
84788
85012
|
muted = _useConfigTokens2.muted,
|
|
84789
85013
|
strong = _useConfigTokens2.strong,
|
|
@@ -84865,8 +85089,7 @@ var PlanChoices = function PlanChoices(_ref2) {
|
|
|
84865
85089
|
className: "text-sm ".concat(muted),
|
|
84866
85090
|
children: "The plan has a few gaps, so it can't be built yet."
|
|
84867
85091
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
84868
|
-
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.
|
|
84869
|
-
size: "sm",
|
|
85092
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, {
|
|
84870
85093
|
title: "Ask the Planner to fix it",
|
|
84871
85094
|
onClick: function onClick() {
|
|
84872
85095
|
return (
|
|
@@ -84893,7 +85116,7 @@ var PlanChoices = function PlanChoices(_ref2) {
|
|
|
84893
85116
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
84894
85117
|
title: "Yes, build it",
|
|
84895
85118
|
onClick: onBuild
|
|
84896
|
-
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.
|
|
85119
|
+
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, {
|
|
84897
85120
|
title: "Change something",
|
|
84898
85121
|
onClick: onChange
|
|
84899
85122
|
})]
|
|
@@ -84901,20 +85124,23 @@ var PlanChoices = function PlanChoices(_ref2) {
|
|
|
84901
85124
|
};
|
|
84902
85125
|
|
|
84903
85126
|
/**
|
|
84904
|
-
* Before it builds (Create's checklist, frame 1): each item
|
|
84905
|
-
*
|
|
85127
|
+
* Before it builds (Create's checklist, frame 1): a box with each item on a
|
|
85128
|
+
* row — done or not, who asks, what — and its action beside it.
|
|
84906
85129
|
*
|
|
84907
85130
|
* @param {object} wp useWorkspacePlan's result
|
|
84908
85131
|
* @param {boolean} readOnly the lead is answering: a new plan may come
|
|
84909
85132
|
*/
|
|
84910
|
-
var BeforeItBuilds = function BeforeItBuilds(
|
|
84911
|
-
var wp =
|
|
84912
|
-
|
|
84913
|
-
readOnly =
|
|
85133
|
+
var BeforeItBuilds = function BeforeItBuilds(_ref4) {
|
|
85134
|
+
var wp = _ref4.wp,
|
|
85135
|
+
_ref4$readOnly = _ref4.readOnly,
|
|
85136
|
+
readOnly = _ref4$readOnly === void 0 ? false : _ref4$readOnly;
|
|
84914
85137
|
var _useState3 = React.useState(null),
|
|
84915
85138
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
84916
85139
|
dialog = _useState4[0],
|
|
84917
85140
|
setDialog = _useState4[1];
|
|
85141
|
+
var _useConfigTokens3 = useConfigTokens(),
|
|
85142
|
+
strong = _useConfigTokens3.strong;
|
|
85143
|
+
var statusTokens = DashReact.useStatusTokens();
|
|
84918
85144
|
var plan = wp.plan,
|
|
84919
85145
|
checklist = wp.checklist,
|
|
84920
85146
|
checks = wp.checks,
|
|
@@ -84922,15 +85148,18 @@ var BeforeItBuilds = function BeforeItBuilds(_ref3) {
|
|
|
84922
85148
|
if (!plan || !checklist.length) return null;
|
|
84923
85149
|
var done = checklist.length - wp.open;
|
|
84924
85150
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
84925
|
-
children: [/*#__PURE__*/jsxRuntime.
|
|
84926
|
-
|
|
84927
|
-
|
|
84928
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
85151
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
85152
|
+
className: "flex flex-col rounded-xl border overflow-hidden ".concat(statusTokens.warning.accentBorder),
|
|
85153
|
+
"data-testid": "workspace-before",
|
|
85154
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
85155
|
+
className: "px-4 py-3 text-sm font-semibold ".concat(strong),
|
|
85156
|
+
children: ["Before it builds \xB7 ", done, " of ", checklist.length, " done"]
|
|
85157
|
+
}), /*#__PURE__*/jsxRuntime.jsx(PlanChecklistRows, {
|
|
84929
85158
|
checklist: checklist,
|
|
84930
85159
|
checks: checks,
|
|
84931
85160
|
have: have,
|
|
84932
85161
|
providers: wp.providers,
|
|
84933
|
-
|
|
85162
|
+
rows: true,
|
|
84934
85163
|
readOnly: readOnly,
|
|
84935
85164
|
who: whoAsks,
|
|
84936
85165
|
onAction: function onAction(it) {
|
|
@@ -84940,7 +85169,7 @@ var BeforeItBuilds = function BeforeItBuilds(_ref3) {
|
|
|
84940
85169
|
});
|
|
84941
85170
|
},
|
|
84942
85171
|
onPickProvider: wp.pickProvider
|
|
84943
|
-
})
|
|
85172
|
+
})]
|
|
84944
85173
|
}), dialog && dialog.kind === "install" ? /*#__PURE__*/jsxRuntime.jsx(InstallReviewDialog, {
|
|
84945
85174
|
item: dialog.item,
|
|
84946
85175
|
onApprove: function onApprove() {
|
|
@@ -84963,7 +85192,7 @@ var BeforeItBuilds = function BeforeItBuilds(_ref3) {
|
|
|
84963
85192
|
setDialog(null);
|
|
84964
85193
|
},
|
|
84965
85194
|
onClose: (/*#__PURE__*/function () {
|
|
84966
|
-
var
|
|
85195
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(created) {
|
|
84967
85196
|
var it, made;
|
|
84968
85197
|
return _regeneratorRuntime.wrap(function (_context) {
|
|
84969
85198
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -84993,7 +85222,7 @@ var BeforeItBuilds = function BeforeItBuilds(_ref3) {
|
|
|
84993
85222
|
}, _callee, null, [[1, 3]]);
|
|
84994
85223
|
}));
|
|
84995
85224
|
return function (_x) {
|
|
84996
|
-
return
|
|
85225
|
+
return _ref5.apply(this, arguments);
|
|
84997
85226
|
};
|
|
84998
85227
|
}())
|
|
84999
85228
|
}) : null]
|
|
@@ -85001,22 +85230,31 @@ var BeforeItBuilds = function BeforeItBuilds(_ref3) {
|
|
|
85001
85230
|
};
|
|
85002
85231
|
|
|
85003
85232
|
/**
|
|
85004
|
-
* The plan, opened on the right: what it makes,
|
|
85005
|
-
*
|
|
85233
|
+
* The plan, opened on the right (frame 6): what it makes, one row each, and
|
|
85234
|
+
* what still needs connecting. Changes are asked for in the chat (Change
|
|
85235
|
+
* something). The current plan has Yes, build it, so it can be built
|
|
85236
|
+
* whatever the chat ended on; an earlier one (`plan` given) is only shown.
|
|
85006
85237
|
*/
|
|
85007
|
-
var PlanOutput = function PlanOutput(
|
|
85008
|
-
var wp =
|
|
85009
|
-
|
|
85010
|
-
|
|
85011
|
-
|
|
85012
|
-
|
|
85013
|
-
|
|
85014
|
-
|
|
85015
|
-
|
|
85016
|
-
|
|
85238
|
+
var PlanOutput = function PlanOutput(_ref6) {
|
|
85239
|
+
var wp = _ref6.wp,
|
|
85240
|
+
_ref6$plan = _ref6.plan,
|
|
85241
|
+
earlier = _ref6$plan === void 0 ? null : _ref6$plan,
|
|
85242
|
+
_ref6$readOnly = _ref6.readOnly,
|
|
85243
|
+
readOnly = _ref6$readOnly === void 0 ? false : _ref6$readOnly,
|
|
85244
|
+
_ref6$onBuild = _ref6.onBuild,
|
|
85245
|
+
onBuild = _ref6$onBuild === void 0 ? null : _ref6$onBuild;
|
|
85246
|
+
var _useConfigTokens4 = useConfigTokens(),
|
|
85247
|
+
muted = _useConfigTokens4.muted,
|
|
85248
|
+
strong = _useConfigTokens4.strong,
|
|
85249
|
+
hairline = _useConfigTokens4.hairline;
|
|
85250
|
+
var statusTokens = DashReact.useStatusTokens();
|
|
85251
|
+
var plan = earlier || wp.plan;
|
|
85017
85252
|
if (!plan) return null;
|
|
85018
|
-
var
|
|
85019
|
-
var
|
|
85253
|
+
var checklist = earlier ? [] : wp.checklist;
|
|
85254
|
+
var connected = function connected(it) {
|
|
85255
|
+
return isDone(it, wp.checks, wp.have);
|
|
85256
|
+
};
|
|
85257
|
+
var rows = planRows(plan, checklist, connected);
|
|
85020
85258
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
85021
85259
|
className: "flex flex-col gap-4",
|
|
85022
85260
|
"data-testid": "workspace-plan-output",
|
|
@@ -85024,31 +85262,44 @@ var PlanOutput = function PlanOutput(_ref5) {
|
|
|
85024
85262
|
className: "flex flex-col gap-1",
|
|
85025
85263
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85026
85264
|
className: "text-xs ".concat(muted),
|
|
85027
|
-
children: "Planner
|
|
85265
|
+
children: earlier ? "Planner · an earlier plan" : "Planner · the plan"
|
|
85028
85266
|
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85029
85267
|
className: "text-lg font-semibold ".concat(strong),
|
|
85030
85268
|
children: planName(plan)
|
|
85031
|
-
}),
|
|
85032
|
-
className: "text-sm",
|
|
85033
|
-
children: plan.summary
|
|
85034
|
-
}) : null, /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
85269
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85035
85270
|
className: "text-sm ".concat(muted),
|
|
85036
|
-
children:
|
|
85037
|
-
})]
|
|
85038
|
-
}), pieces.length ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
85039
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(PlanPieces, {
|
|
85040
|
-
plan: plan,
|
|
85041
|
-
target: target,
|
|
85042
|
-
readOnly: readOnly,
|
|
85043
|
-
onEdit: wp.edit
|
|
85044
|
-
}), target ? null : /*#__PURE__*/jsxRuntime.jsx(PlanSketch, {
|
|
85045
|
-
plan: plan,
|
|
85046
|
-
compact: true
|
|
85047
|
-
}), /*#__PURE__*/jsxRuntime.jsx(PlanExpect, {
|
|
85048
|
-
plan: plan,
|
|
85049
|
-
estimate: estimatePlan(plan, {})
|
|
85271
|
+
children: planSubLine(plan, checklist) || "Nothing to make yet"
|
|
85050
85272
|
})]
|
|
85051
|
-
})
|
|
85273
|
+
}), rows.length ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
85274
|
+
className: "flex flex-col rounded-xl border overflow-hidden ".concat(hairline),
|
|
85275
|
+
"data-testid": "workspace-plan-rows",
|
|
85276
|
+
children: rows.map(function (r, i) {
|
|
85277
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
85278
|
+
className: "flex flex-row items-start gap-3 px-4 py-3 text-sm ".concat(i ? "border-t ".concat(hairline) : ""),
|
|
85279
|
+
"data-testid": "workspace-plan-row",
|
|
85280
|
+
children: [r.warn ? /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
85281
|
+
icon: "triangle-exclamation",
|
|
85282
|
+
className: "h-3 w-3 mt-1 ".concat(statusTokens.warning.icon),
|
|
85283
|
+
"aria-hidden": "true"
|
|
85284
|
+
}) : /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85285
|
+
className: "inline-block flex-shrink-0 h-2.5 w-2.5 mt-1 rounded-full border ".concat(hairline),
|
|
85286
|
+
"aria-hidden": "true"
|
|
85287
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
85288
|
+
className: "flex-1 min-w-0 flex flex-col gap-0.5",
|
|
85289
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85290
|
+
className: strong,
|
|
85291
|
+
children: r.main
|
|
85292
|
+
}), r.sub ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85293
|
+
className: "text-xs ".concat(muted),
|
|
85294
|
+
children: r.sub
|
|
85295
|
+
}) : null]
|
|
85296
|
+
})]
|
|
85297
|
+
}, i);
|
|
85298
|
+
})
|
|
85299
|
+
}) : null, earlier ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85300
|
+
className: "text-sm ".concat(muted),
|
|
85301
|
+
children: "The Planner changed this plan since \u2014 the latest is under Outputs."
|
|
85302
|
+
}) : readOnly ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85052
85303
|
className: "text-sm ".concat(muted),
|
|
85053
85304
|
children: "The Dash Lead is answering \u2014 the plan may change."
|
|
85054
85305
|
}) : wp.sent ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
@@ -85058,11 +85309,17 @@ var PlanOutput = function PlanOutput(_ref5) {
|
|
|
85058
85309
|
}) : onBuild && canBuild({
|
|
85059
85310
|
plan: plan,
|
|
85060
85311
|
check: wp.check
|
|
85061
|
-
}) ? /*#__PURE__*/jsxRuntime.
|
|
85062
|
-
|
|
85063
|
-
|
|
85064
|
-
|
|
85065
|
-
|
|
85312
|
+
}) ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
85313
|
+
className: "flex flex-col gap-2",
|
|
85314
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85315
|
+
className: "text-xs ".concat(muted),
|
|
85316
|
+
children: "Want something different? Say so in the chat."
|
|
85317
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
85318
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
85319
|
+
title: "Yes, build it",
|
|
85320
|
+
onClick: onBuild
|
|
85321
|
+
})
|
|
85322
|
+
})]
|
|
85066
85323
|
}) : null]
|
|
85067
85324
|
});
|
|
85068
85325
|
};
|
|
@@ -85098,6 +85355,40 @@ var norm = function norm(name) {
|
|
|
85098
85355
|
return String(name || "").replace(/^the /i, "").trim().toLowerCase();
|
|
85099
85356
|
};
|
|
85100
85357
|
|
|
85358
|
+
// What each Dash team role is for, under its name until it's asked (frame
|
|
85359
|
+
// 13), and what its output is called (frame 1).
|
|
85360
|
+
var ROLE_LINES = {
|
|
85361
|
+
scout: "finds what you already have",
|
|
85362
|
+
planner: "turns your request into a plan",
|
|
85363
|
+
builder: "builds what you approve",
|
|
85364
|
+
checker: "checks what's built"
|
|
85365
|
+
};
|
|
85366
|
+
var ROLE_OUTPUT = {
|
|
85367
|
+
scout: "Findings"
|
|
85368
|
+
};
|
|
85369
|
+
|
|
85370
|
+
/**
|
|
85371
|
+
* Where you can start a new Dash Lead conversation from (frame 13).
|
|
85372
|
+
* `onStartFrom(kind)`: "describe" | "registry" | "copy" | "widget".
|
|
85373
|
+
*/
|
|
85374
|
+
var START_FROM = [{
|
|
85375
|
+
kind: "describe",
|
|
85376
|
+
title: "Describe it",
|
|
85377
|
+
sub: "Say what you want in the box — the usual way"
|
|
85378
|
+
}, {
|
|
85379
|
+
kind: "registry",
|
|
85380
|
+
title: "A dashboard from the registry",
|
|
85381
|
+
sub: "Install a ready-made one and its bots, then adjust it"
|
|
85382
|
+
}, {
|
|
85383
|
+
kind: "copy",
|
|
85384
|
+
title: "Copy one of your dashboards",
|
|
85385
|
+
sub: "Start from what you have and change it"
|
|
85386
|
+
}, {
|
|
85387
|
+
kind: "widget",
|
|
85388
|
+
title: "Edit a widget you have",
|
|
85389
|
+
sub: "Open it in the Widget Builder"
|
|
85390
|
+
}];
|
|
85391
|
+
|
|
85101
85392
|
/**
|
|
85102
85393
|
* What each bot is doing right now — one line, from its stream: the tool
|
|
85103
85394
|
* it's calling, or that it's writing. Cleared when its run ends.
|
|
@@ -85172,10 +85463,86 @@ function shortTime(at) {
|
|
|
85172
85463
|
}
|
|
85173
85464
|
|
|
85174
85465
|
/**
|
|
85175
|
-
*
|
|
85176
|
-
*
|
|
85177
|
-
*
|
|
85178
|
-
|
|
85466
|
+
* A team member's state and line (frames 1, 13): working (its live line),
|
|
85467
|
+
* done (what it answered), or not asked yet — ready, or waiting while a plan
|
|
85468
|
+
* waits for the go-ahead.
|
|
85469
|
+
*/
|
|
85470
|
+
function memberState(m, last, status, _ref2) {
|
|
85471
|
+
var plan = _ref2.plan,
|
|
85472
|
+
lines = _ref2.lines;
|
|
85473
|
+
var working = !!(last && last.status === "asking");
|
|
85474
|
+
if (working) return {
|
|
85475
|
+
tone: "working",
|
|
85476
|
+
state: "working",
|
|
85477
|
+
line: lines[m.id] || "starting…"
|
|
85478
|
+
};
|
|
85479
|
+
if (last) {
|
|
85480
|
+
if (last.status === "failed") return {
|
|
85481
|
+
tone: "bad",
|
|
85482
|
+
state: "couldn't answer",
|
|
85483
|
+
line: last.result || ""
|
|
85484
|
+
};
|
|
85485
|
+
if (last.status === "stopped") return {
|
|
85486
|
+
tone: "idle",
|
|
85487
|
+
state: "stopped",
|
|
85488
|
+
line: last.result || ""
|
|
85489
|
+
};
|
|
85490
|
+
// A plan says what it is ("drafted a plan — 2 widgets"), not the
|
|
85491
|
+
// Planner's first words.
|
|
85492
|
+
if (last.plan) {
|
|
85493
|
+
var what = planSubLine(last.plan);
|
|
85494
|
+
return {
|
|
85495
|
+
tone: "ok",
|
|
85496
|
+
state: "done",
|
|
85497
|
+
line: what ? "drafted a plan \u2014 ".concat(what) : "drafted a plan"
|
|
85498
|
+
};
|
|
85499
|
+
}
|
|
85500
|
+
return {
|
|
85501
|
+
tone: "ok",
|
|
85502
|
+
state: "done",
|
|
85503
|
+
line: last.result || ""
|
|
85504
|
+
};
|
|
85505
|
+
}
|
|
85506
|
+
if (status === "Running") return {
|
|
85507
|
+
tone: "idle",
|
|
85508
|
+
state: "busy with its own run",
|
|
85509
|
+
line: ""
|
|
85510
|
+
};
|
|
85511
|
+
if (status === "Paused") return {
|
|
85512
|
+
tone: "idle",
|
|
85513
|
+
state: "paused",
|
|
85514
|
+
line: ""
|
|
85515
|
+
};
|
|
85516
|
+
if (plan && m.role === "builder") return {
|
|
85517
|
+
tone: "idle",
|
|
85518
|
+
state: "waiting",
|
|
85519
|
+
line: "waiting for your go-ahead"
|
|
85520
|
+
};
|
|
85521
|
+
if (plan && m.role === "checker") return {
|
|
85522
|
+
tone: "idle",
|
|
85523
|
+
state: "waiting",
|
|
85524
|
+
line: ROLE_LINES.checker
|
|
85525
|
+
};
|
|
85526
|
+
// The plan came without it (the lead looked itself).
|
|
85527
|
+
if (plan && m.role === "scout") return {
|
|
85528
|
+
tone: "idle",
|
|
85529
|
+
state: "not needed",
|
|
85530
|
+
line: ""
|
|
85531
|
+
};
|
|
85532
|
+
return {
|
|
85533
|
+
tone: "idle",
|
|
85534
|
+
state: "ready",
|
|
85535
|
+
line: ROLE_LINES[m.role] || ""
|
|
85536
|
+
};
|
|
85537
|
+
}
|
|
85538
|
+
|
|
85539
|
+
/**
|
|
85540
|
+
* WorkspaceSide — the workspace's right column (lead-workspace releases 2
|
|
85541
|
+
* and 3a, frames 1, 6, 13): Outputs — where to start from (a new Dash Lead
|
|
85542
|
+
* conversation), Before it builds, the team's approvals, the plan and the
|
|
85543
|
+
* team's answers — then Team in this conversation (each bot: its state, a
|
|
85544
|
+
* live line while it works, its output) and the providers the plan needs. A
|
|
85545
|
+
* lone bot shows its runs instead of a team.
|
|
85179
85546
|
*
|
|
85180
85547
|
* @param {object} contact workspaceContacts' contact
|
|
85181
85548
|
* @param {object[]} messages the conversation (AskStep's), with its steps
|
|
@@ -85183,36 +85550,48 @@ function shortTime(at) {
|
|
|
85183
85550
|
* @param {object|null} wp the conversation's plan (useWorkspacePlan)
|
|
85184
85551
|
* @param {boolean} planReadOnly the lead is answering: a new plan may come
|
|
85185
85552
|
* @param {() => void} onBuild Yes, build it
|
|
85186
|
-
* @param {string|null} open what's opened: "plan",
|
|
85553
|
+
* @param {string|null} open what's opened: "plan", "plan:<step id>" (an
|
|
85554
|
+
* earlier plan), a step's id, or null
|
|
85187
85555
|
* @param {(what) => void} onOpen
|
|
85188
85556
|
* @param {boolean} wide, onToggleWide the column's size
|
|
85189
|
-
|
|
85190
|
-
|
|
85191
|
-
|
|
85192
|
-
|
|
85193
|
-
|
|
85194
|
-
|
|
85195
|
-
|
|
85557
|
+
* @param {boolean} isNew a new conversation, nothing asked yet
|
|
85558
|
+
* @param {(kind) => void} onStartFrom a Start from choice
|
|
85559
|
+
*/
|
|
85560
|
+
var WorkspaceSide = function WorkspaceSide(_ref3) {
|
|
85561
|
+
var contact = _ref3.contact,
|
|
85562
|
+
_ref3$messages = _ref3.messages,
|
|
85563
|
+
messages = _ref3$messages === void 0 ? [] : _ref3$messages,
|
|
85564
|
+
_ref3$statusOf = _ref3.statusOf,
|
|
85565
|
+
statusOf = _ref3$statusOf === void 0 ? function () {
|
|
85196
85566
|
return "Idle";
|
|
85197
|
-
} :
|
|
85198
|
-
|
|
85199
|
-
wp =
|
|
85200
|
-
|
|
85201
|
-
planReadOnly =
|
|
85202
|
-
|
|
85203
|
-
onBuild =
|
|
85204
|
-
|
|
85205
|
-
open =
|
|
85206
|
-
|
|
85207
|
-
onOpen =
|
|
85208
|
-
|
|
85209
|
-
wide =
|
|
85210
|
-
|
|
85211
|
-
onToggleWide =
|
|
85567
|
+
} : _ref3$statusOf,
|
|
85568
|
+
_ref3$wp = _ref3.wp,
|
|
85569
|
+
wp = _ref3$wp === void 0 ? null : _ref3$wp,
|
|
85570
|
+
_ref3$planReadOnly = _ref3.planReadOnly,
|
|
85571
|
+
planReadOnly = _ref3$planReadOnly === void 0 ? false : _ref3$planReadOnly,
|
|
85572
|
+
_ref3$onBuild = _ref3.onBuild,
|
|
85573
|
+
onBuild = _ref3$onBuild === void 0 ? null : _ref3$onBuild,
|
|
85574
|
+
_ref3$open = _ref3.open,
|
|
85575
|
+
open = _ref3$open === void 0 ? null : _ref3$open,
|
|
85576
|
+
_ref3$onOpen = _ref3.onOpen,
|
|
85577
|
+
onOpen = _ref3$onOpen === void 0 ? function () {} : _ref3$onOpen,
|
|
85578
|
+
_ref3$wide = _ref3.wide,
|
|
85579
|
+
wide = _ref3$wide === void 0 ? false : _ref3$wide,
|
|
85580
|
+
_ref3$onToggleWide = _ref3.onToggleWide,
|
|
85581
|
+
onToggleWide = _ref3$onToggleWide === void 0 ? null : _ref3$onToggleWide,
|
|
85582
|
+
_ref3$isNew = _ref3.isNew,
|
|
85583
|
+
isNew = _ref3$isNew === void 0 ? false : _ref3$isNew,
|
|
85584
|
+
_ref3$onStartFrom = _ref3.onStartFrom,
|
|
85585
|
+
onStartFrom = _ref3$onStartFrom === void 0 ? null : _ref3$onStartFrom;
|
|
85212
85586
|
var _useConfigTokens = useConfigTokens(),
|
|
85213
85587
|
muted = _useConfigTokens.muted,
|
|
85214
85588
|
strong = _useConfigTokens.strong,
|
|
85215
85589
|
hairline = _useConfigTokens.hairline;
|
|
85590
|
+
var _ref4 = React.useContext(DashReact.ThemeContext) || {},
|
|
85591
|
+
currentTheme = _ref4.currentTheme;
|
|
85592
|
+
// The link colour: the accent role (Aurora gives it its own text shade).
|
|
85593
|
+
var link = "".concat(currentTheme && currentTheme["text-primary-medium"] || "", " dr-role-accent");
|
|
85594
|
+
var statusTokens = DashReact.useStatusTokens();
|
|
85216
85595
|
var members = contact && contact.members || [];
|
|
85217
85596
|
var lines = useLiveLines(members.map(function (m) {
|
|
85218
85597
|
return m.id;
|
|
@@ -85221,8 +85600,6 @@ var WorkspaceSide = function WorkspaceSide(_ref2) {
|
|
|
85221
85600
|
var steps = (messages || []).filter(function (m) {
|
|
85222
85601
|
return m && m.who === "step";
|
|
85223
85602
|
});
|
|
85224
|
-
|
|
85225
|
-
// A step opened from Outputs or a bot's row: the latest version of it.
|
|
85226
85603
|
var plan = wp && wp.plan ? wp.plan : null;
|
|
85227
85604
|
var back = /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
85228
85605
|
className: "flex flex-row items-center gap-2",
|
|
@@ -85234,9 +85611,10 @@ var WorkspaceSide = function WorkspaceSide(_ref2) {
|
|
|
85234
85611
|
}
|
|
85235
85612
|
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85236
85613
|
className: "flex-1"
|
|
85237
|
-
}), onToggleWide ? /*#__PURE__*/jsxRuntime.jsx(DashReact.
|
|
85614
|
+
}), onToggleWide ? /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, {
|
|
85238
85615
|
size: "sm",
|
|
85239
|
-
title: wide ? "Shrink" : "Expand",
|
|
85616
|
+
title: wide ? "Shrink ⇥" : "⇤ Expand",
|
|
85617
|
+
ariaLabel: wide ? "Shrink" : "Expand",
|
|
85240
85618
|
onClick: onToggleWide
|
|
85241
85619
|
}) : null]
|
|
85242
85620
|
});
|
|
@@ -85250,6 +85628,19 @@ var WorkspaceSide = function WorkspaceSide(_ref2) {
|
|
|
85250
85628
|
})]
|
|
85251
85629
|
});
|
|
85252
85630
|
}
|
|
85631
|
+
// An earlier plan, from its card in the chat.
|
|
85632
|
+
var earlierStep = typeof open === "string" && open.startsWith("plan:") ? steps.find(function (s) {
|
|
85633
|
+
return s.id === open.slice(5) && s.plan;
|
|
85634
|
+
}) || null : null;
|
|
85635
|
+
if (earlierStep && wp) {
|
|
85636
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
85637
|
+
className: "flex flex-col gap-4 p-5 min-h-0 overflow-y-auto",
|
|
85638
|
+
children: [back, /*#__PURE__*/jsxRuntime.jsx(PlanOutput, {
|
|
85639
|
+
wp: wp,
|
|
85640
|
+
plan: earlierStep.plan
|
|
85641
|
+
})]
|
|
85642
|
+
});
|
|
85643
|
+
}
|
|
85253
85644
|
var step = open && open !== "plan" ? steps.find(function (s) {
|
|
85254
85645
|
return s.id === open;
|
|
85255
85646
|
}) || null : null;
|
|
@@ -85295,52 +85686,78 @@ var WorkspaceSide = function WorkspaceSide(_ref2) {
|
|
|
85295
85686
|
id: contact.botId,
|
|
85296
85687
|
name: contact.name
|
|
85297
85688
|
}].concat(_toConsumableArray(members)) : [];
|
|
85689
|
+
var startFrom = isNew && contact && contact.kind === "dashlead" && onStartFrom;
|
|
85690
|
+
var connected = function connected(it) {
|
|
85691
|
+
return wp ? isDone(it, wp.checks, wp.have) : false;
|
|
85692
|
+
};
|
|
85693
|
+
var dot = {
|
|
85694
|
+
ok: statusTokens.success.icon,
|
|
85695
|
+
bad: statusTokens.error.icon,
|
|
85696
|
+
idle: muted
|
|
85697
|
+
};
|
|
85298
85698
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
85299
|
-
className: "flex flex-col gap-
|
|
85699
|
+
className: "flex flex-col gap-4 p-5 min-h-0 overflow-y-auto",
|
|
85300
85700
|
"data-testid": "workspace-side",
|
|
85301
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
85302
|
-
|
|
85303
|
-
|
|
85304
|
-
}),
|
|
85305
|
-
wp: wp,
|
|
85306
|
-
readOnly: planReadOnly
|
|
85307
|
-
}) : null, /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
85701
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85702
|
+
className: "text-sm font-semibold ".concat(strong),
|
|
85703
|
+
children: "Outputs"
|
|
85704
|
+
}), startFrom ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
85308
85705
|
className: "flex flex-col gap-2",
|
|
85706
|
+
"data-testid": "workspace-start-from",
|
|
85309
85707
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85310
|
-
className: "text-
|
|
85311
|
-
children: "
|
|
85312
|
-
}),
|
|
85313
|
-
|
|
85314
|
-
|
|
85315
|
-
icon: "table-cells-large",
|
|
85316
|
-
className: "h-4 w-4 ".concat(muted)
|
|
85317
|
-
}),
|
|
85318
|
-
title: "".concat(planName(plan), " \u2014 plan"),
|
|
85319
|
-
meta: planStatus({
|
|
85320
|
-
plan: plan,
|
|
85321
|
-
check: wp.check,
|
|
85322
|
-
open: wp.open
|
|
85323
|
-
}),
|
|
85324
|
-
onClick: function onClick() {
|
|
85325
|
-
return onOpen("plan");
|
|
85326
|
-
}
|
|
85327
|
-
}) : null, answered.length || plan ? answered.map(function (s) {
|
|
85328
|
-
return /*#__PURE__*/jsxRuntime.jsx(DashReact.ListRow, {
|
|
85329
|
-
testId: "workspace-output",
|
|
85330
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
85331
|
-
icon: "comment",
|
|
85332
|
-
className: "h-4 w-4 ".concat(muted)
|
|
85333
|
-
}),
|
|
85334
|
-
title: "".concat(cap(s.bot), "'s answer"),
|
|
85335
|
-
meta: s.result,
|
|
85708
|
+
className: "text-xs ".concat(muted),
|
|
85709
|
+
children: "Start from"
|
|
85710
|
+
}), START_FROM.map(function (s) {
|
|
85711
|
+
return /*#__PURE__*/jsxRuntime.jsxs("button", {
|
|
85712
|
+
type: "button",
|
|
85336
85713
|
onClick: function onClick() {
|
|
85337
|
-
return
|
|
85338
|
-
}
|
|
85339
|
-
|
|
85340
|
-
|
|
85341
|
-
|
|
85342
|
-
|
|
85714
|
+
return onStartFrom(s.kind);
|
|
85715
|
+
},
|
|
85716
|
+
className: "flex flex-col gap-0.5 rounded-lg border px-3 py-2.5 text-left ".concat(hairline),
|
|
85717
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85718
|
+
className: "text-sm font-semibold ".concat(strong),
|
|
85719
|
+
children: s.title
|
|
85720
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85721
|
+
className: "text-xs ".concat(muted),
|
|
85722
|
+
children: s.sub
|
|
85723
|
+
})]
|
|
85724
|
+
}, s.kind);
|
|
85343
85725
|
})]
|
|
85726
|
+
}) : null, wp ? /*#__PURE__*/jsxRuntime.jsx(BeforeItBuilds, {
|
|
85727
|
+
wp: wp,
|
|
85728
|
+
readOnly: planReadOnly
|
|
85729
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsx(DashTeamApprovals, {
|
|
85730
|
+
compact: true,
|
|
85731
|
+
bots: approvalBots
|
|
85732
|
+
}), plan ? /*#__PURE__*/jsxRuntime.jsx(OutputCard, {
|
|
85733
|
+
testId: "workspace-output-plan",
|
|
85734
|
+
title: "".concat(planName(plan), " \u2014 plan"),
|
|
85735
|
+
sub: planStatus({
|
|
85736
|
+
plan: plan,
|
|
85737
|
+
check: wp.check,
|
|
85738
|
+
open: wp.open
|
|
85739
|
+
}),
|
|
85740
|
+
kind: "Plan",
|
|
85741
|
+
onClick: function onClick() {
|
|
85742
|
+
return onOpen("plan");
|
|
85743
|
+
}
|
|
85744
|
+
}) : null, answered.map(function (s) {
|
|
85745
|
+
return /*#__PURE__*/jsxRuntime.jsx(OutputCard, {
|
|
85746
|
+
testId: "workspace-output",
|
|
85747
|
+
icon: "comment",
|
|
85748
|
+
title: "".concat(cap(s.bot), "'s answer"),
|
|
85749
|
+
sub: s.result,
|
|
85750
|
+
kind: "Answer",
|
|
85751
|
+
onClick: function onClick() {
|
|
85752
|
+
return onOpen(s.id);
|
|
85753
|
+
}
|
|
85754
|
+
}, s.id);
|
|
85755
|
+
}), !answered.length && !plan && !startFrom ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85756
|
+
className: "rounded-xl border border-dashed p-6 text-center text-sm ".concat(hairline, " ").concat(muted),
|
|
85757
|
+
children: isBot ? "Its answers and results show here." : "What the team makes shows here."
|
|
85758
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
85759
|
+
className: "border-t ".concat(hairline),
|
|
85760
|
+
"aria-hidden": "true"
|
|
85344
85761
|
}), isBot ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
85345
85762
|
className: "flex flex-col gap-2",
|
|
85346
85763
|
"data-testid": "workspace-runs",
|
|
@@ -85363,7 +85780,7 @@ var WorkspaceSide = function WorkspaceSide(_ref2) {
|
|
|
85363
85780
|
children: "No runs yet."
|
|
85364
85781
|
})]
|
|
85365
85782
|
}) : /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
85366
|
-
className: "flex flex-col gap-
|
|
85783
|
+
className: "flex flex-col gap-3",
|
|
85367
85784
|
"data-testid": "workspace-team",
|
|
85368
85785
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85369
85786
|
className: "text-sm font-semibold ".concat(strong),
|
|
@@ -85373,50 +85790,66 @@ var WorkspaceSide = function WorkspaceSide(_ref2) {
|
|
|
85373
85790
|
return norm(s.bot) === norm(m.name);
|
|
85374
85791
|
});
|
|
85375
85792
|
var last = mine[mine.length - 1] || null;
|
|
85376
|
-
var
|
|
85377
|
-
|
|
85378
|
-
|
|
85379
|
-
|
|
85793
|
+
var _memberState = memberState(m, last, statusOf(m.id), {
|
|
85794
|
+
plan: plan,
|
|
85795
|
+
lines: lines
|
|
85796
|
+
}),
|
|
85797
|
+
tone = _memberState.tone,
|
|
85798
|
+
state = _memberState.state,
|
|
85799
|
+
line = _memberState.line;
|
|
85800
|
+
var out = last && last.plan && plan ? {
|
|
85801
|
+
label: "Plan",
|
|
85802
|
+
open: "plan"
|
|
85803
|
+
} : last && last.answer ? {
|
|
85804
|
+
label: ROLE_OUTPUT[m.role] || "Answer",
|
|
85805
|
+
open: last.id
|
|
85806
|
+
} : null;
|
|
85380
85807
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
85381
85808
|
className: "flex flex-row items-start gap-3",
|
|
85382
85809
|
"data-testid": "workspace-member",
|
|
85383
85810
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
85384
|
-
icon:
|
|
85385
|
-
className: "h-
|
|
85811
|
+
icon: tone === "working" ? "spinner" : "circle",
|
|
85812
|
+
className: "h-2 w-2 mt-1.5 ".concat(tone === "working" ? "animate-spin ".concat(muted) : dot[tone]),
|
|
85813
|
+
"aria-hidden": "true"
|
|
85386
85814
|
}), /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
85387
85815
|
className: "flex-1 min-w-0 flex flex-col gap-0.5",
|
|
85388
85816
|
children: [/*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
85389
85817
|
className: "text-sm",
|
|
85390
85818
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85391
|
-
className: "font-
|
|
85819
|
+
className: "font-semibold ".concat(strong),
|
|
85392
85820
|
children: m.name
|
|
85393
85821
|
}), /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
85394
|
-
className: muted,
|
|
85822
|
+
className: "text-xs ".concat(muted),
|
|
85395
85823
|
children: [" \xB7 ", state]
|
|
85396
85824
|
})]
|
|
85397
85825
|
}), line ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85398
85826
|
className: "text-xs font-mono truncate ".concat(muted),
|
|
85399
85827
|
children: line
|
|
85400
85828
|
}) : null]
|
|
85401
|
-
}),
|
|
85402
|
-
|
|
85403
|
-
title: "Plan \u203A",
|
|
85404
|
-
onClick: function onClick() {
|
|
85405
|
-
return onOpen("plan");
|
|
85406
|
-
}
|
|
85407
|
-
}) : last && last.answer ? /*#__PURE__*/jsxRuntime.jsx(DashReact.Button3, {
|
|
85408
|
-
size: "sm",
|
|
85409
|
-
title: "Answer \u203A",
|
|
85829
|
+
}), out ? /*#__PURE__*/jsxRuntime.jsxs("button", {
|
|
85830
|
+
type: "button",
|
|
85410
85831
|
onClick: function onClick() {
|
|
85411
|
-
return onOpen(
|
|
85412
|
-
}
|
|
85832
|
+
return onOpen(out.open);
|
|
85833
|
+
},
|
|
85834
|
+
className: "flex-shrink-0 text-sm ".concat(link),
|
|
85835
|
+
children: [out.label, " \u203A"]
|
|
85413
85836
|
}) : null]
|
|
85414
85837
|
}, m.id);
|
|
85415
85838
|
}) : /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85416
85839
|
className: "text-sm ".concat(muted),
|
|
85417
85840
|
children: "This team has no bots yet."
|
|
85418
85841
|
})]
|
|
85419
|
-
})
|
|
85842
|
+
}), plan ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
85843
|
+
className: "flex flex-row gap-2 text-sm",
|
|
85844
|
+
"data-testid": "workspace-providers",
|
|
85845
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85846
|
+
className: "font-semibold ".concat(strong),
|
|
85847
|
+
children: "Providers"
|
|
85848
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85849
|
+
className: muted,
|
|
85850
|
+
children: providersLine(wp.checklist, connected)
|
|
85851
|
+
})]
|
|
85852
|
+
}) : null]
|
|
85420
85853
|
});
|
|
85421
85854
|
};
|
|
85422
85855
|
|
|
@@ -85650,6 +86083,7 @@ var EMPTY$1 = [];
|
|
|
85650
86083
|
var TICK_MS$1 = 60000;
|
|
85651
86084
|
var SIDE_MIN = 320;
|
|
85652
86085
|
var SIDE_MAX = 900;
|
|
86086
|
+
var WIDE = 760;
|
|
85653
86087
|
function botsApi() {
|
|
85654
86088
|
return typeof window !== "undefined" && window.mainApi ? window.mainApi.bots : null;
|
|
85655
86089
|
}
|
|
@@ -85708,8 +86142,8 @@ function startText(contact) {
|
|
|
85708
86142
|
if (contact.kind === "dashlead") {
|
|
85709
86143
|
return {
|
|
85710
86144
|
title: "What should we make?",
|
|
85711
|
-
text: "Describe it in your own words — a dashboard, a widget, a bot, or a
|
|
85712
|
-
starters: ["
|
|
86145
|
+
text: "Describe it in your own words — a dashboard, a widget, a bot, or a change to one you have. The team plans it with you, and nothing is made until you say yes.",
|
|
86146
|
+
starters: ["A dashboard for my smart home", "A widget that shows my calendar", "A bot that sums up my email each morning", "Change one of my dashboards"]
|
|
85713
86147
|
};
|
|
85714
86148
|
}
|
|
85715
86149
|
var first = contact.members[0];
|
|
@@ -85734,11 +86168,15 @@ function startText(contact) {
|
|
|
85734
86168
|
* @param {{ key?: string }|null} request who to open on ("role:dashlead",
|
|
85735
86169
|
* "lead:<botId>", "bot:<botId>"); default the Dash Lead
|
|
85736
86170
|
* @param {() => void} onClose
|
|
86171
|
+
* @param {(page) => void} [onOpenPage] opens an app page ("dashboards",
|
|
86172
|
+
* "widgets") in the workspace's place — Start from's copy and edit
|
|
85737
86173
|
*/
|
|
85738
86174
|
var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
85739
86175
|
var _ref$request = _ref.request,
|
|
85740
86176
|
request = _ref$request === void 0 ? null : _ref$request,
|
|
85741
|
-
onClose = _ref.onClose
|
|
86177
|
+
onClose = _ref.onClose,
|
|
86178
|
+
_ref$onOpenPage = _ref.onOpenPage,
|
|
86179
|
+
onOpenPage = _ref$onOpenPage === void 0 ? null : _ref$onOpenPage;
|
|
85742
86180
|
var _ref2 = React.useContext(DashReact.ThemeContext) || {},
|
|
85743
86181
|
currentTheme = _ref2.currentTheme;
|
|
85744
86182
|
var panel = DashReact.getStylesForItem(DashReact.themeObjects.PANEL, currentTheme, {
|
|
@@ -85749,6 +86187,7 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
85749
86187
|
strong = _useConfigTokens.strong,
|
|
85750
86188
|
hairline = _useConfigTokens.hairline,
|
|
85751
86189
|
selectedBg = _useConfigTokens.selectedBg;
|
|
86190
|
+
var composer = React.useRef(null);
|
|
85752
86191
|
var all = useAllBots();
|
|
85753
86192
|
var _useTeamLeads = useTeamLeads(true),
|
|
85754
86193
|
leads = _useTeamLeads.leads,
|
|
@@ -85873,6 +86312,29 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
85873
86312
|
// The lead is still answering: the plan isn't changed meanwhile.
|
|
85874
86313
|
var answering = stillAnswering(messages);
|
|
85875
86314
|
|
|
86315
|
+
// Start from (frame 13). Describing it is the box; the registry's
|
|
86316
|
+
// dashboards are in Create for now (release 6 brings them here); copying a
|
|
86317
|
+
// dashboard and editing a widget are on their pages.
|
|
86318
|
+
var startFrom = function startFrom(kind) {
|
|
86319
|
+
if (kind === "describe") {
|
|
86320
|
+
if (composer.current) composer.current.focus();
|
|
86321
|
+
return;
|
|
86322
|
+
}
|
|
86323
|
+
if (kind === "registry") {
|
|
86324
|
+
if (typeof window !== "undefined") {
|
|
86325
|
+
window.dispatchEvent(new CustomEvent("dash:open-create", {
|
|
86326
|
+
detail: {
|
|
86327
|
+
type: "dashboard"
|
|
86328
|
+
}
|
|
86329
|
+
}));
|
|
86330
|
+
}
|
|
86331
|
+
onClose();
|
|
86332
|
+
return;
|
|
86333
|
+
}
|
|
86334
|
+
var page = kind === "copy" ? "dashboards" : "widgets";
|
|
86335
|
+
if (onOpenPage) onOpenPage(page);else onClose();
|
|
86336
|
+
};
|
|
86337
|
+
|
|
85876
86338
|
// After a message: the plan's card under the step that brought it, and
|
|
85877
86339
|
// the reply choices under the lead's answer to it.
|
|
85878
86340
|
var choicesAt = choicesIndex(messages);
|
|
@@ -85885,6 +86347,16 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
85885
86347
|
}
|
|
85886
86348
|
});
|
|
85887
86349
|
}
|
|
86350
|
+
// An earlier plan keeps its card: the history still opens it.
|
|
86351
|
+
if (m.who === "step" && m.plan) {
|
|
86352
|
+
return /*#__PURE__*/jsxRuntime.jsx(PlanCard, {
|
|
86353
|
+
plan: m.plan,
|
|
86354
|
+
earlier: true,
|
|
86355
|
+
onOpen: function onOpen() {
|
|
86356
|
+
return setSideOpen("plan:".concat(m.id));
|
|
86357
|
+
}
|
|
86358
|
+
});
|
|
86359
|
+
}
|
|
85888
86360
|
if (i === choicesAt && wp.plan && !api.busy) {
|
|
85889
86361
|
return /*#__PURE__*/jsxRuntime.jsx(PlanChoices, {
|
|
85890
86362
|
plan: wp.plan,
|
|
@@ -85945,7 +86417,7 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
85945
86417
|
children: contact ? contact.name : "No one to talk to yet"
|
|
85946
86418
|
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85947
86419
|
className: "text-xs truncate ".concat(muted),
|
|
85948
|
-
children: contact ? contact.sub : ""
|
|
86420
|
+
children: contact ? contact.line || contact.sub : ""
|
|
85949
86421
|
})]
|
|
85950
86422
|
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
85951
86423
|
icon: "chevron-down",
|
|
@@ -85953,11 +86425,13 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
85953
86425
|
})]
|
|
85954
86426
|
}), switchOpen ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
85955
86427
|
role: "menu",
|
|
85956
|
-
className: "absolute left-
|
|
85957
|
-
// Below the switcher, never over it
|
|
86428
|
+
className: "absolute left-1 right-1 z-30 flex flex-col gap-1 rounded-lg border p-2 shadow-lg overflow-y-auto ".concat(hairline, " ").concat(panel.backgroundColor || "")
|
|
86429
|
+
// Below the switcher, never over it; a long list scrolls
|
|
86430
|
+
// inside the window.
|
|
85958
86431
|
,
|
|
85959
86432
|
style: {
|
|
85960
|
-
top: 76
|
|
86433
|
+
top: 76,
|
|
86434
|
+
maxHeight: "calc(100% - 88px)"
|
|
85961
86435
|
},
|
|
85962
86436
|
"data-testid": "workspace-switcher-menu",
|
|
85963
86437
|
children: groups.map(function (g) {
|
|
@@ -85967,11 +86441,39 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
85967
86441
|
className: "px-2 pt-1 text-xs ".concat(muted),
|
|
85968
86442
|
children: g.label
|
|
85969
86443
|
}), g.items.map(function (c) {
|
|
86444
|
+
var current = c.key === (contact && contact.key);
|
|
85970
86445
|
return /*#__PURE__*/jsxRuntime.jsx(DashReact.ListRow, {
|
|
85971
86446
|
testId: "workspace-switcher-item",
|
|
85972
|
-
|
|
85973
|
-
|
|
85974
|
-
|
|
86447
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(BotAvatar, {
|
|
86448
|
+
bot: {
|
|
86449
|
+
id: c.botId,
|
|
86450
|
+
name: c.name
|
|
86451
|
+
},
|
|
86452
|
+
icon: c.kind === "dashlead" ? "people-group" : undefined
|
|
86453
|
+
}),
|
|
86454
|
+
title: /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
86455
|
+
className: "flex flex-row items-center gap-2",
|
|
86456
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
86457
|
+
className: "truncate",
|
|
86458
|
+
children: c.name
|
|
86459
|
+
}), current ? /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
86460
|
+
role: "img",
|
|
86461
|
+
"aria-label": "Current",
|
|
86462
|
+
className: "flex-shrink-0",
|
|
86463
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
86464
|
+
icon: "check",
|
|
86465
|
+
className: "h-3 w-3"
|
|
86466
|
+
})
|
|
86467
|
+
}) : null]
|
|
86468
|
+
}),
|
|
86469
|
+
ariaLabel: c.name
|
|
86470
|
+
// One line: a long dashboard name never strands "· 0 bots".
|
|
86471
|
+
,
|
|
86472
|
+
meta: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
86473
|
+
className: "block truncate",
|
|
86474
|
+
children: c.sub
|
|
86475
|
+
}),
|
|
86476
|
+
selected: current,
|
|
85975
86477
|
onClick: function onClick() {
|
|
85976
86478
|
return switchTo(c.key);
|
|
85977
86479
|
}
|
|
@@ -85990,9 +86492,13 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
85990
86492
|
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
85991
86493
|
className: "px-2 pt-3 pb-1 text-xs ".concat(muted),
|
|
85992
86494
|
children: "Recents"
|
|
85993
|
-
}), /*#__PURE__*/jsxRuntime.
|
|
86495
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
85994
86496
|
className: "flex-1 min-h-0 overflow-y-auto flex flex-col",
|
|
85995
|
-
children:
|
|
86497
|
+
children: [open ? null : /*#__PURE__*/jsxRuntime.jsx(DashReact.ListRow, {
|
|
86498
|
+
testId: "workspace-thread-new",
|
|
86499
|
+
title: "New conversation",
|
|
86500
|
+
selected: true
|
|
86501
|
+
}), threads.length ? threads.map(function (t) {
|
|
85996
86502
|
return /*#__PURE__*/jsxRuntime.jsx(DashReact.ListRow, {
|
|
85997
86503
|
testId: "workspace-thread",
|
|
85998
86504
|
title: t.title
|
|
@@ -86011,10 +86517,10 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
86011
86517
|
});
|
|
86012
86518
|
}
|
|
86013
86519
|
}, t.id);
|
|
86014
|
-
}) : /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
86520
|
+
}) : open ? /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
86015
86521
|
className: "px-2 py-2 text-xs ".concat(muted),
|
|
86016
86522
|
children: ["Your conversations with ", contact ? contact.name : "them", " ", "show here."]
|
|
86017
|
-
})
|
|
86523
|
+
}) : null]
|
|
86018
86524
|
})]
|
|
86019
86525
|
})]
|
|
86020
86526
|
}), /*#__PURE__*/jsxRuntime.jsxs("section", {
|
|
@@ -86059,7 +86565,9 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
86059
86565
|
,
|
|
86060
86566
|
prepareSend: function prepareSend(t) {
|
|
86061
86567
|
return withPlanContext(t, wp.plan, wp.takeEdits());
|
|
86062
|
-
}
|
|
86568
|
+
},
|
|
86569
|
+
placeholder: "Reply",
|
|
86570
|
+
hint: null
|
|
86063
86571
|
}, "".concat(contact.key, ":").concat(open.key)) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
86064
86572
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
86065
86573
|
className: "flex-1 min-h-0 overflow-y-auto flex flex-col justify-center px-6",
|
|
@@ -86075,7 +86583,7 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
86075
86583
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
86076
86584
|
className: "flex flex-row flex-wrap gap-2",
|
|
86077
86585
|
children: start.starters.map(function (s) {
|
|
86078
|
-
return /*#__PURE__*/jsxRuntime.jsx(DashReact.
|
|
86586
|
+
return /*#__PURE__*/jsxRuntime.jsx(DashReact.Button2, {
|
|
86079
86587
|
size: "sm",
|
|
86080
86588
|
title: s,
|
|
86081
86589
|
onClick: function onClick() {
|
|
@@ -86086,6 +86594,7 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
86086
86594
|
})]
|
|
86087
86595
|
})
|
|
86088
86596
|
}), /*#__PURE__*/jsxRuntime.jsx(DashReact.ChatComposer, {
|
|
86597
|
+
ref: composer,
|
|
86089
86598
|
ariaLabel: contact ? "Ask ".concat(contact.name) : "Ask",
|
|
86090
86599
|
value: draft,
|
|
86091
86600
|
onChange: function onChange(v) {
|
|
@@ -86094,7 +86603,8 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
86094
86603
|
onSend: function onSend() {
|
|
86095
86604
|
return ask();
|
|
86096
86605
|
},
|
|
86097
|
-
placeholder:
|
|
86606
|
+
placeholder: "Reply",
|
|
86607
|
+
hint: null,
|
|
86098
86608
|
sendLabel: "Ask",
|
|
86099
86609
|
className: "flex-shrink-0"
|
|
86100
86610
|
})]
|
|
@@ -86105,15 +86615,21 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
86105
86615
|
"aria-label": "Outputs",
|
|
86106
86616
|
className: "flex-shrink-0 flex flex-col min-h-0 border-l ".concat(hairline),
|
|
86107
86617
|
style: {
|
|
86108
|
-
// Expanded,
|
|
86109
|
-
|
|
86618
|
+
// Expanded (frame 37): 760 wide, and never more than half the
|
|
86619
|
+
// screen, so the conversation keeps room.
|
|
86620
|
+
width: wide ? Math.min(WIDE, Math.round((typeof window !== "undefined" ? window.innerWidth : 1600) * 0.5)) : sideWidth
|
|
86110
86621
|
},
|
|
86111
86622
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
86112
86623
|
className: "flex-shrink-0 flex flex-row items-center justify-end px-3 py-2 border-b ".concat(hairline),
|
|
86113
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
86114
|
-
|
|
86115
|
-
|
|
86116
|
-
onClick: onClose
|
|
86624
|
+
children: /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
86625
|
+
type: "button",
|
|
86626
|
+
"aria-label": "Close",
|
|
86627
|
+
onClick: onClose,
|
|
86628
|
+
className: "flex items-center justify-center h-8 w-8 rounded-lg ".concat(muted),
|
|
86629
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.FontAwesomeIcon, {
|
|
86630
|
+
icon: "xmark",
|
|
86631
|
+
className: "h-4 w-4"
|
|
86632
|
+
})
|
|
86117
86633
|
})
|
|
86118
86634
|
}), contact ? /*#__PURE__*/jsxRuntime.jsx(WorkspaceSide, {
|
|
86119
86635
|
contact: contact,
|
|
@@ -86129,7 +86645,9 @@ var LeadWorkspace = function LeadWorkspace(_ref) {
|
|
|
86129
86645
|
return setWide(function (v) {
|
|
86130
86646
|
return !v;
|
|
86131
86647
|
});
|
|
86132
|
-
}
|
|
86648
|
+
},
|
|
86649
|
+
isNew: !open && !isBot,
|
|
86650
|
+
onStartFrom: startFrom
|
|
86133
86651
|
}) : null]
|
|
86134
86652
|
})]
|
|
86135
86653
|
})
|
|
@@ -89405,7 +89923,7 @@ var SpendingView = function SpendingView() {
|
|
|
89405
89923
|
title: "By AI provider",
|
|
89406
89924
|
rows: summary.providers,
|
|
89407
89925
|
nameOf: function nameOf(r) {
|
|
89408
|
-
return providerName(r.id);
|
|
89926
|
+
return providerName$1(r.id);
|
|
89409
89927
|
},
|
|
89410
89928
|
empty: "No runs counted by provider yet \u2014 this starts with the next run.",
|
|
89411
89929
|
muted: muted,
|
|
@@ -99899,6 +100417,10 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
99899
100417
|
request: workspaceRequest,
|
|
99900
100418
|
onClose: function onClose() {
|
|
99901
100419
|
return setWorkspaceRequest(null);
|
|
100420
|
+
},
|
|
100421
|
+
onOpenPage: function onOpenPage(page) {
|
|
100422
|
+
setWorkspaceRequest(null);
|
|
100423
|
+
handleOpenPageGuarded(page);
|
|
99902
100424
|
}
|
|
99903
100425
|
}, workspaceRequest.seq) : null, /*#__PURE__*/jsxRuntime.jsx(BotPageModal, {
|
|
99904
100426
|
request: botPageRequest,
|