@trops/dash-core 0.1.790 → 0.1.791
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 +552 -441
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +551 -440
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1375,6 +1375,12 @@ var ElectronDashboardApi = /*#__PURE__*/function () {
|
|
|
1375
1375
|
try {
|
|
1376
1376
|
// Handle the promise returned by the IPC call
|
|
1377
1377
|
this.api.workspace.saveWorkspaceForApplication(appId, workspaceToSave).then(function (result) {
|
|
1378
|
+
// A failed write comes back as { error: true, message }, not a
|
|
1379
|
+
// rejection — it's an error, never a save.
|
|
1380
|
+
if (result && result.error) {
|
|
1381
|
+
onError(_this8.events.WORKSPACE_SAVE_ERROR, new Error(result.message || "The dashboard wasn't saved."));
|
|
1382
|
+
return;
|
|
1383
|
+
}
|
|
1378
1384
|
onSuccess(_this8.events.WORKSPACE_SAVE_COMPLETE, result);
|
|
1379
1385
|
})["catch"](function (error) {
|
|
1380
1386
|
onError(_this8.events.WORKSPACE_SAVE_ERROR, error);
|
|
@@ -2822,9 +2828,9 @@ function draftIdOf(pkg) {
|
|
|
2822
2828
|
return m ? m[1] : null;
|
|
2823
2829
|
}
|
|
2824
2830
|
|
|
2825
|
-
function _createForOfIteratorHelper$
|
|
2826
|
-
function _unsupportedIterableToArray$
|
|
2827
|
-
function _arrayLikeToArray$
|
|
2831
|
+
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; } } }; }
|
|
2832
|
+
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; } }
|
|
2833
|
+
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; }
|
|
2828
2834
|
|
|
2829
2835
|
/**
|
|
2830
2836
|
* Walk a workspace layout and collect widget component keys that are
|
|
@@ -2838,7 +2844,7 @@ function collectComponentsFromLayout(layout) {
|
|
|
2838
2844
|
|
|
2839
2845
|
// Collect IDs of layout items that are actively referenced by grid cells
|
|
2840
2846
|
var activeItemIds = new Set();
|
|
2841
|
-
var _iterator = _createForOfIteratorHelper$
|
|
2847
|
+
var _iterator = _createForOfIteratorHelper$1c(layout),
|
|
2842
2848
|
_step;
|
|
2843
2849
|
try {
|
|
2844
2850
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -2858,7 +2864,7 @@ function collectComponentsFromLayout(layout) {
|
|
|
2858
2864
|
} finally {
|
|
2859
2865
|
_iterator.f();
|
|
2860
2866
|
}
|
|
2861
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
2867
|
+
var _iterator2 = _createForOfIteratorHelper$1c(layout),
|
|
2862
2868
|
_step2;
|
|
2863
2869
|
try {
|
|
2864
2870
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -2998,7 +3004,7 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
2998
3004
|
_t = [];
|
|
2999
3005
|
case 4:
|
|
3000
3006
|
allDrafts = _t;
|
|
3001
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
3007
|
+
_iterator4 = _createForOfIteratorHelper$1c(allDrafts);
|
|
3002
3008
|
try {
|
|
3003
3009
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
3004
3010
|
d = _step4.value;
|
|
@@ -3172,9 +3178,9 @@ var useInstalledWidgets = function useInstalledWidgets() {
|
|
|
3172
3178
|
};
|
|
3173
3179
|
};
|
|
3174
3180
|
|
|
3175
|
-
function _createForOfIteratorHelper$
|
|
3176
|
-
function _unsupportedIterableToArray$
|
|
3177
|
-
function _arrayLikeToArray$
|
|
3181
|
+
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; } } }; }
|
|
3182
|
+
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; } }
|
|
3183
|
+
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; }
|
|
3178
3184
|
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; }
|
|
3179
3185
|
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; }
|
|
3180
3186
|
/**
|
|
@@ -3270,7 +3276,7 @@ function normalizeRow(row, labelToType) {
|
|
|
3270
3276
|
function unionDedupe(a, b) {
|
|
3271
3277
|
var out = new Set(Array.isArray(a) ? a : []);
|
|
3272
3278
|
if (Array.isArray(b)) {
|
|
3273
|
-
var _iterator = _createForOfIteratorHelper$
|
|
3279
|
+
var _iterator = _createForOfIteratorHelper$1b(b),
|
|
3274
3280
|
_step;
|
|
3275
3281
|
try {
|
|
3276
3282
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -3303,9 +3309,9 @@ function cleanIpcError(message) {
|
|
|
3303
3309
|
return match ? match[1] : message;
|
|
3304
3310
|
}
|
|
3305
3311
|
|
|
3306
|
-
function _createForOfIteratorHelper$
|
|
3307
|
-
function _unsupportedIterableToArray$
|
|
3308
|
-
function _arrayLikeToArray$
|
|
3312
|
+
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; } } }; }
|
|
3313
|
+
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; } }
|
|
3314
|
+
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; }
|
|
3309
3315
|
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; }
|
|
3310
3316
|
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; }
|
|
3311
3317
|
|
|
@@ -3837,7 +3843,7 @@ function useWidgetUpdates() {
|
|
|
3837
3843
|
// (install replaces the entire package, not just one widget)
|
|
3838
3844
|
setUpdates(function (prev) {
|
|
3839
3845
|
var next = new Map(prev);
|
|
3840
|
-
var _iterator = _createForOfIteratorHelper$
|
|
3846
|
+
var _iterator = _createForOfIteratorHelper$1a(next),
|
|
3841
3847
|
_step;
|
|
3842
3848
|
try {
|
|
3843
3849
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -3895,7 +3901,7 @@ function useWidgetUpdates() {
|
|
|
3895
3901
|
var liveUpdates = React.useMemo(function () {
|
|
3896
3902
|
if (!updates || updates.size === 0) return updates;
|
|
3897
3903
|
var installedVersion = new Map();
|
|
3898
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
3904
|
+
var _iterator2 = _createForOfIteratorHelper$1a(installedWidgets),
|
|
3899
3905
|
_step2;
|
|
3900
3906
|
try {
|
|
3901
3907
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -3909,7 +3915,7 @@ function useWidgetUpdates() {
|
|
|
3909
3915
|
_iterator2.f();
|
|
3910
3916
|
}
|
|
3911
3917
|
var live = new Map();
|
|
3912
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
3918
|
+
var _iterator3 = _createForOfIteratorHelper$1a(updates),
|
|
3913
3919
|
_step3;
|
|
3914
3920
|
try {
|
|
3915
3921
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -3937,7 +3943,7 @@ function useWidgetUpdates() {
|
|
|
3937
3943
|
var packagesWithUpdates = React.useMemo(function () {
|
|
3938
3944
|
if (!liveUpdates || liveUpdates.size === 0) return [];
|
|
3939
3945
|
var byPackage = new Map();
|
|
3940
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
3946
|
+
var _iterator4 = _createForOfIteratorHelper$1a(liveUpdates),
|
|
3941
3947
|
_step4;
|
|
3942
3948
|
try {
|
|
3943
3949
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -3965,7 +3971,7 @@ function useWidgetUpdates() {
|
|
|
3965
3971
|
} finally {
|
|
3966
3972
|
_iterator4.f();
|
|
3967
3973
|
}
|
|
3968
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
3974
|
+
var _iterator5 = _createForOfIteratorHelper$1a(installedWidgets),
|
|
3969
3975
|
_step5;
|
|
3970
3976
|
try {
|
|
3971
3977
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -4096,7 +4102,7 @@ function useWidgetUpdates() {
|
|
|
4096
4102
|
// packageId) → grant rows (which are keyed by widgetId like
|
|
4097
4103
|
// `trops.slack.SlackChannels`).
|
|
4098
4104
|
rowByComponentName = new Map();
|
|
4099
|
-
_iterator6 = _createForOfIteratorHelper$
|
|
4105
|
+
_iterator6 = _createForOfIteratorHelper$1a(allRows);
|
|
4100
4106
|
try {
|
|
4101
4107
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
4102
4108
|
r = _step6.value;
|
|
@@ -4109,7 +4115,7 @@ function useWidgetUpdates() {
|
|
|
4109
4115
|
_iterator6.f();
|
|
4110
4116
|
}
|
|
4111
4117
|
widgetsWithMissing = [];
|
|
4112
|
-
_iterator7 = _createForOfIteratorHelper$
|
|
4118
|
+
_iterator7 = _createForOfIteratorHelper$1a(manifests);
|
|
4113
4119
|
_context5.prev = 8;
|
|
4114
4120
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
4115
4121
|
var _manifest$permissions, _manifest$permissions2;
|
|
@@ -4134,7 +4140,7 @@ function useWidgetUpdates() {
|
|
|
4134
4140
|
pkgWidgets = installedWidgets.filter(function (w) {
|
|
4135
4141
|
return (w.packageId || w.name) === packageId;
|
|
4136
4142
|
});
|
|
4137
|
-
_iterator8 = _createForOfIteratorHelper$
|
|
4143
|
+
_iterator8 = _createForOfIteratorHelper$1a(pkgWidgets);
|
|
4138
4144
|
_context4.prev = 2;
|
|
4139
4145
|
_iterator8.s();
|
|
4140
4146
|
case 3:
|
|
@@ -4250,7 +4256,7 @@ function useWidgetUpdates() {
|
|
|
4250
4256
|
// Seed every selected package as pending so the modal renders
|
|
4251
4257
|
// the full per-row state from the first paint.
|
|
4252
4258
|
initial = new Map();
|
|
4253
|
-
_iterator9 = _createForOfIteratorHelper$
|
|
4259
|
+
_iterator9 = _createForOfIteratorHelper$1a(packageNames);
|
|
4254
4260
|
try {
|
|
4255
4261
|
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
4256
4262
|
name = _step9.value;
|
|
@@ -4310,7 +4316,7 @@ function useWidgetUpdates() {
|
|
|
4310
4316
|
// loop so the freshly-installed code can immediately use
|
|
4311
4317
|
// what was approved (and is gated from what wasn't).
|
|
4312
4318
|
accepted = decision.acceptedByWidgetId || {};
|
|
4313
|
-
_iterator0 = _createForOfIteratorHelper$
|
|
4319
|
+
_iterator0 = _createForOfIteratorHelper$1a(preflight.widgets);
|
|
4314
4320
|
_context7.prev = 6;
|
|
4315
4321
|
_iterator0.s();
|
|
4316
4322
|
case 7:
|
|
@@ -4394,7 +4400,7 @@ function useWidgetUpdates() {
|
|
|
4394
4400
|
// e.g. a stale registry zip or a verify mismatch).
|
|
4395
4401
|
failedDetails = [];
|
|
4396
4402
|
_context7.prev = 19;
|
|
4397
|
-
_iterator1 = _createForOfIteratorHelper$
|
|
4403
|
+
_iterator1 = _createForOfIteratorHelper$1a(packageNames);
|
|
4398
4404
|
_context7.prev = 20;
|
|
4399
4405
|
_loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
|
|
4400
4406
|
var pkgName, msg, _t0;
|
|
@@ -4501,7 +4507,7 @@ function useWidgetUpdates() {
|
|
|
4501
4507
|
succeededSet = new Set(succeeded);
|
|
4502
4508
|
setUpdates(function (prev) {
|
|
4503
4509
|
var next = new Map(prev);
|
|
4504
|
-
var _iterator10 = _createForOfIteratorHelper$
|
|
4510
|
+
var _iterator10 = _createForOfIteratorHelper$1a(next),
|
|
4505
4511
|
_step10;
|
|
4506
4512
|
try {
|
|
4507
4513
|
for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
|
|
@@ -4895,9 +4901,9 @@ function useRegistryAuth() {
|
|
|
4895
4901
|
|
|
4896
4902
|
function ownKeys$1K(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; }
|
|
4897
4903
|
function _objectSpread$1K(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1K(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1K(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4898
|
-
function _createForOfIteratorHelper$
|
|
4899
|
-
function _unsupportedIterableToArray$
|
|
4900
|
-
function _arrayLikeToArray$
|
|
4904
|
+
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; } } }; }
|
|
4905
|
+
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; } }
|
|
4906
|
+
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; }
|
|
4901
4907
|
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";
|
|
4902
4908
|
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";
|
|
4903
4909
|
|
|
@@ -4917,7 +4923,7 @@ function flattenPreflightLines(missing) {
|
|
|
4917
4923
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
4918
4924
|
serverName = _Object$entries$_i[0],
|
|
4919
4925
|
perms = _Object$entries$_i[1];
|
|
4920
|
-
var _iterator = _createForOfIteratorHelper$
|
|
4926
|
+
var _iterator = _createForOfIteratorHelper$19(perms.tools || []),
|
|
4921
4927
|
_step;
|
|
4922
4928
|
try {
|
|
4923
4929
|
var _loop2 = function _loop2() {
|
|
@@ -4946,7 +4952,7 @@ function flattenPreflightLines(missing) {
|
|
|
4946
4952
|
} finally {
|
|
4947
4953
|
_iterator.f();
|
|
4948
4954
|
}
|
|
4949
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
4955
|
+
var _iterator2 = _createForOfIteratorHelper$19(perms.readPaths || []),
|
|
4950
4956
|
_step2;
|
|
4951
4957
|
try {
|
|
4952
4958
|
var _loop3 = function _loop3() {
|
|
@@ -4973,7 +4979,7 @@ function flattenPreflightLines(missing) {
|
|
|
4973
4979
|
} finally {
|
|
4974
4980
|
_iterator2.f();
|
|
4975
4981
|
}
|
|
4976
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
4982
|
+
var _iterator3 = _createForOfIteratorHelper$19(perms.writePaths || []),
|
|
4977
4983
|
_step3;
|
|
4978
4984
|
try {
|
|
4979
4985
|
var _loop4 = function _loop4() {
|
|
@@ -5025,13 +5031,13 @@ var WidgetPreflightReview = function WidgetPreflightReview(_ref) {
|
|
|
5025
5031
|
var _pendingPreflight$wid;
|
|
5026
5032
|
if (!pendingPreflight || !((_pendingPreflight$wid = pendingPreflight.widgets) !== null && _pendingPreflight$wid !== void 0 && _pendingPreflight$wid.length)) return;
|
|
5027
5033
|
var initial = {};
|
|
5028
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
5034
|
+
var _iterator4 = _createForOfIteratorHelper$19(pendingPreflight.widgets),
|
|
5029
5035
|
_step4;
|
|
5030
5036
|
try {
|
|
5031
5037
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
5032
5038
|
var w = _step4.value;
|
|
5033
5039
|
initial[w.widgetId] = {};
|
|
5034
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
5040
|
+
var _iterator5 = _createForOfIteratorHelper$19(flattenPreflightLines(w.missing)),
|
|
5035
5041
|
_step5;
|
|
5036
5042
|
try {
|
|
5037
5043
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -5068,7 +5074,7 @@ var WidgetPreflightReview = function WidgetPreflightReview(_ref) {
|
|
|
5068
5074
|
// Build the per-widget addition blob from checked lines. Skip
|
|
5069
5075
|
// widgets where the user unchecked everything.
|
|
5070
5076
|
var acceptedByWidgetId = {};
|
|
5071
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
5077
|
+
var _iterator6 = _createForOfIteratorHelper$19(widgets),
|
|
5072
5078
|
_step6;
|
|
5073
5079
|
try {
|
|
5074
5080
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -5076,7 +5082,7 @@ var WidgetPreflightReview = function WidgetPreflightReview(_ref) {
|
|
|
5076
5082
|
var _lines = flattenPreflightLines(w.missing);
|
|
5077
5083
|
var acc = {};
|
|
5078
5084
|
var any = false;
|
|
5079
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
5085
|
+
var _iterator7 = _createForOfIteratorHelper$19(_lines),
|
|
5080
5086
|
_step7;
|
|
5081
5087
|
try {
|
|
5082
5088
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -6364,9 +6370,9 @@ var LayoutContainer = function LayoutContainer(_ref) {
|
|
|
6364
6370
|
|
|
6365
6371
|
function ownKeys$1H(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; }
|
|
6366
6372
|
function _objectSpread$1H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6367
|
-
function _createForOfIteratorHelper$
|
|
6368
|
-
function _unsupportedIterableToArray$
|
|
6369
|
-
function _arrayLikeToArray$
|
|
6373
|
+
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; } } }; }
|
|
6374
|
+
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; } }
|
|
6375
|
+
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; }
|
|
6370
6376
|
/**
|
|
6371
6377
|
* Layout template definitions for the dashboard template picker.
|
|
6372
6378
|
*
|
|
@@ -6640,7 +6646,7 @@ function createLayoutFromTemplate(template) {
|
|
|
6640
6646
|
cols: template.cols,
|
|
6641
6647
|
gap: "gap-2"
|
|
6642
6648
|
};
|
|
6643
|
-
var _iterator = _createForOfIteratorHelper$
|
|
6649
|
+
var _iterator = _createForOfIteratorHelper$18(template.cells),
|
|
6644
6650
|
_step;
|
|
6645
6651
|
try {
|
|
6646
6652
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -7717,9 +7723,35 @@ function installedText(result, fallbackName) {
|
|
|
7717
7723
|
return text;
|
|
7718
7724
|
}
|
|
7719
7725
|
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7726
|
+
/**
|
|
7727
|
+
* Compatibility helpers for installing a registry dashboard.
|
|
7728
|
+
*/
|
|
7729
|
+
|
|
7730
|
+
/** The key a widget dependency has in compatibility.widgets. */
|
|
7731
|
+
function depKeyFor(dep) {
|
|
7732
|
+
return dep.scope && dep.packageName && dep.widgetName ? "".concat(dep.scope, ".").concat(dep.packageName, ".").concat(dep.widgetName) : dep.id || dep["package"] || dep.name;
|
|
7733
|
+
}
|
|
7734
|
+
|
|
7735
|
+
/**
|
|
7736
|
+
* Names of the required widgets that can't be installed — Install is blocked
|
|
7737
|
+
* while there are any (Phase 1e). No check yet, or a compatible one, blocks
|
|
7738
|
+
* nothing.
|
|
7739
|
+
*/
|
|
7740
|
+
function unavailableRequiredWidgets(widgetDeps, compatibility) {
|
|
7741
|
+
if (!compatibility || compatibility.compatible !== false) return [];
|
|
7742
|
+
return (widgetDeps || []).filter(function (dep) {
|
|
7743
|
+
return dep.required !== false;
|
|
7744
|
+
}).filter(function (dep) {
|
|
7745
|
+
var status = (compatibility.widgets || {})[depKeyFor(dep)];
|
|
7746
|
+
return status !== "installed" && status !== "available";
|
|
7747
|
+
}).map(function (dep) {
|
|
7748
|
+
return dep.displayName || dep.name || dep.packageName;
|
|
7749
|
+
});
|
|
7750
|
+
}
|
|
7751
|
+
|
|
7752
|
+
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; } } }; }
|
|
7753
|
+
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; } }
|
|
7754
|
+
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; }
|
|
7723
7755
|
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; }
|
|
7724
7756
|
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; }
|
|
7725
7757
|
var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
@@ -8086,7 +8118,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
8086
8118
|
toInstall = 0,
|
|
8087
8119
|
unavailable = 0,
|
|
8088
8120
|
hasUnavailableRequired = false;
|
|
8089
|
-
var _iterator = _createForOfIteratorHelper$
|
|
8121
|
+
var _iterator = _createForOfIteratorHelper$17(widgetDeps),
|
|
8090
8122
|
_step;
|
|
8091
8123
|
try {
|
|
8092
8124
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -8114,6 +8146,8 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
8114
8146
|
widgets: augWidgets
|
|
8115
8147
|
};
|
|
8116
8148
|
}();
|
|
8149
|
+
// Install is blocked while a required widget can't be installed (Phase 1e).
|
|
8150
|
+
var blockedBy = unavailableRequiredWidgets(widgetDeps, compatibility);
|
|
8117
8151
|
var wiring = (preview === null || preview === void 0 ? void 0 : preview.wiring) || [];
|
|
8118
8152
|
// Its bots (create-entry 5a-2, US-027 AC3): the registry's summary.
|
|
8119
8153
|
var team = teamLines((preview === null || preview === void 0 ? void 0 : preview.team) || pkg.team);
|
|
@@ -8378,17 +8412,20 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
|
|
|
8378
8412
|
})]
|
|
8379
8413
|
})
|
|
8380
8414
|
})]
|
|
8381
|
-
}), (installResult === null || installResult === void 0 ? void 0 : installResult.status) !== "success" && (installResult === null || installResult === void 0 ? void 0 : installResult.status) !== "auth" && /*#__PURE__*/jsxRuntime.
|
|
8382
|
-
className: "flex items-center justify-end px-6 py-3 border-t ".concat(currentTheme["border-primary-medium"]),
|
|
8383
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
8415
|
+
}), (installResult === null || installResult === void 0 ? void 0 : installResult.status) !== "success" && (installResult === null || installResult === void 0 ? void 0 : installResult.status) !== "auth" && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
8416
|
+
className: "flex items-center justify-end gap-3 px-6 py-3 border-t ".concat(currentTheme["border-primary-medium"]),
|
|
8417
|
+
children: [blockedBy.length > 0 ? /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
8418
|
+
className: "text-sm opacity-70 mr-auto",
|
|
8419
|
+
children: ["Can't install \u2014 these widgets aren't available:", " ", blockedBy.join(", "), "."]
|
|
8420
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
8384
8421
|
title: isInstalling ? "Installing..." : "Install Dashboard",
|
|
8385
8422
|
bgColor: "bg-blue-600",
|
|
8386
8423
|
hoverBackgroundColor: isInstalling ? "" : "hover:bg-blue-700",
|
|
8387
8424
|
textSize: "text-sm",
|
|
8388
8425
|
padding: "py-1.5 px-4",
|
|
8389
8426
|
onClick: handleInstallClick,
|
|
8390
|
-
disabled: isInstalling
|
|
8391
|
-
})
|
|
8427
|
+
disabled: isInstalling || blockedBy.length > 0
|
|
8428
|
+
})]
|
|
8392
8429
|
}), /*#__PURE__*/jsxRuntime.jsx(DashboardInstallOptionsModal, {
|
|
8393
8430
|
isOpen: showOptionsModal,
|
|
8394
8431
|
setIsOpen: setShowOptionsModal,
|
|
@@ -8793,20 +8830,25 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
8793
8830
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
8794
8831
|
selectedFile = _useState14[0],
|
|
8795
8832
|
setSelectedFile = _useState14[1];
|
|
8833
|
+
// Why the file couldn't be read or imported (Phase 1e) — never silent.
|
|
8834
|
+
var _useState15 = React.useState(null),
|
|
8835
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
8836
|
+
importError = _useState16[0],
|
|
8837
|
+
setImportError = _useState16[1];
|
|
8796
8838
|
|
|
8797
8839
|
// Inline new-folder form state
|
|
8798
|
-
var
|
|
8799
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
8800
|
-
isCreatingFolder = _useState16[0],
|
|
8801
|
-
setIsCreatingFolder = _useState16[1];
|
|
8802
|
-
var _useState17 = React.useState(""),
|
|
8840
|
+
var _useState17 = React.useState(false),
|
|
8803
8841
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
8804
|
-
|
|
8805
|
-
|
|
8806
|
-
var _useState19 = React.useState(
|
|
8842
|
+
isCreatingFolder = _useState18[0],
|
|
8843
|
+
setIsCreatingFolder = _useState18[1];
|
|
8844
|
+
var _useState19 = React.useState(""),
|
|
8807
8845
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
8808
|
-
|
|
8809
|
-
|
|
8846
|
+
newFolderName = _useState20[0],
|
|
8847
|
+
setNewFolderName = _useState20[1];
|
|
8848
|
+
var _useState21 = React.useState(null),
|
|
8849
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
8850
|
+
newFolderIcon = _useState22[0],
|
|
8851
|
+
setNewFolderIcon = _useState22[1];
|
|
8810
8852
|
|
|
8811
8853
|
// Reset state when modal opens
|
|
8812
8854
|
React.useEffect(function () {
|
|
@@ -8827,6 +8869,7 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
8827
8869
|
})[0]) === null || _Object$entries$sort$ === void 0 ? void 0 : _Object$entries$sort$[0]) || null : null;
|
|
8828
8870
|
setSelectedThemeKey(appThemeKey || fallback);
|
|
8829
8871
|
setSelectedFile(null);
|
|
8872
|
+
setImportError(null);
|
|
8830
8873
|
setIsCreatingFolder(false);
|
|
8831
8874
|
setNewFolderName("");
|
|
8832
8875
|
setNewFolderIcon(null);
|
|
@@ -8883,33 +8926,46 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
8883
8926
|
}
|
|
8884
8927
|
function _handleImportFromFile() {
|
|
8885
8928
|
_handleImportFromFile = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
8886
|
-
var
|
|
8929
|
+
var _result$dashboardConf, _result$dashboardConf2, _result$dashboardConf3, _result$dashboardConf4, result, _t;
|
|
8887
8930
|
return _regeneratorRuntime.wrap(function (_context) {
|
|
8888
8931
|
while (1) switch (_context.prev = _context.next) {
|
|
8889
8932
|
case 0:
|
|
8890
|
-
|
|
8891
|
-
_context.
|
|
8933
|
+
setImportError(null);
|
|
8934
|
+
_context.prev = 1;
|
|
8935
|
+
_context.next = 2;
|
|
8892
8936
|
return window.mainApi.dashboardConfig.selectDashboardFile();
|
|
8893
|
-
case
|
|
8937
|
+
case 2:
|
|
8894
8938
|
result = _context.sent;
|
|
8895
|
-
if (result
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
setSelectedMenuId(((_result$dashboardConf3 = result.dashboardConfig) === null || _result$dashboardConf3 === void 0 || (_result$dashboardConf3 = _result$dashboardConf3.workspace) === null || _result$dashboardConf3 === void 0 ? void 0 : _result$dashboardConf3.menuId) || (menuItems.length > 0 ? menuItems[0].id : 1));
|
|
8899
|
-
setSelectedThemeKey(((_result$dashboardConf4 = result.dashboardConfig) === null || _result$dashboardConf4 === void 0 || (_result$dashboardConf4 = _result$dashboardConf4.workspace) === null || _result$dashboardConf4 === void 0 ? void 0 : _result$dashboardConf4.themeKey) || null);
|
|
8900
|
-
setActiveStep(0);
|
|
8901
|
-
setCreationMethod("import");
|
|
8939
|
+
if (!(!result || result.canceled)) {
|
|
8940
|
+
_context.next = 3;
|
|
8941
|
+
break;
|
|
8902
8942
|
}
|
|
8903
|
-
_context.
|
|
8904
|
-
break;
|
|
8905
|
-
case 2:
|
|
8906
|
-
_context.prev = 2;
|
|
8907
|
-
_context["catch"](0);
|
|
8943
|
+
return _context.abrupt("return");
|
|
8908
8944
|
case 3:
|
|
8945
|
+
if (result.success) {
|
|
8946
|
+
_context.next = 4;
|
|
8947
|
+
break;
|
|
8948
|
+
}
|
|
8949
|
+
setImportError("Couldn't read that file: ".concat(result.error || "it isn't a dashboard ZIP", "."));
|
|
8950
|
+
return _context.abrupt("return");
|
|
8951
|
+
case 4:
|
|
8952
|
+
setSelectedFile(result);
|
|
8953
|
+
setDashboardName(((_result$dashboardConf = result.dashboardConfig) === null || _result$dashboardConf === void 0 || (_result$dashboardConf = _result$dashboardConf.workspace) === null || _result$dashboardConf === void 0 ? void 0 : _result$dashboardConf.name) || ((_result$dashboardConf2 = result.dashboardConfig) === null || _result$dashboardConf2 === void 0 ? void 0 : _result$dashboardConf2.name) || "");
|
|
8954
|
+
setSelectedMenuId(((_result$dashboardConf3 = result.dashboardConfig) === null || _result$dashboardConf3 === void 0 || (_result$dashboardConf3 = _result$dashboardConf3.workspace) === null || _result$dashboardConf3 === void 0 ? void 0 : _result$dashboardConf3.menuId) || (menuItems.length > 0 ? menuItems[0].id : 1));
|
|
8955
|
+
setSelectedThemeKey(((_result$dashboardConf4 = result.dashboardConfig) === null || _result$dashboardConf4 === void 0 || (_result$dashboardConf4 = _result$dashboardConf4.workspace) === null || _result$dashboardConf4 === void 0 ? void 0 : _result$dashboardConf4.themeKey) || null);
|
|
8956
|
+
setActiveStep(0);
|
|
8957
|
+
setCreationMethod("import");
|
|
8958
|
+
_context.next = 6;
|
|
8959
|
+
break;
|
|
8960
|
+
case 5:
|
|
8961
|
+
_context.prev = 5;
|
|
8962
|
+
_t = _context["catch"](1);
|
|
8963
|
+
setImportError("Couldn't open the file: ".concat(_t && _t.message || "unknown error", "."));
|
|
8964
|
+
case 6:
|
|
8909
8965
|
case "end":
|
|
8910
8966
|
return _context.stop();
|
|
8911
8967
|
}
|
|
8912
|
-
}, _callee, null, [[
|
|
8968
|
+
}, _callee, null, [[1, 5]]);
|
|
8913
8969
|
}));
|
|
8914
8970
|
return _handleImportFromFile.apply(this, arguments);
|
|
8915
8971
|
}
|
|
@@ -8932,7 +8988,7 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
8932
8988
|
}
|
|
8933
8989
|
function _handleImportConfirm() {
|
|
8934
8990
|
_handleImportConfirm = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
8935
|
-
var menuId, newItem, result;
|
|
8991
|
+
var menuId, newItem, result, _t2;
|
|
8936
8992
|
return _regeneratorRuntime.wrap(function (_context2) {
|
|
8937
8993
|
while (1) switch (_context2.prev = _context2.next) {
|
|
8938
8994
|
case 0:
|
|
@@ -8954,6 +9010,7 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
8954
9010
|
onSaveMenuItem(newItem);
|
|
8955
9011
|
}
|
|
8956
9012
|
}
|
|
9013
|
+
setImportError(null);
|
|
8957
9014
|
_context2.prev = 2;
|
|
8958
9015
|
_context2.next = 3;
|
|
8959
9016
|
return window.mainApi.dashboardConfig.importDashboardConfig(appId, {
|
|
@@ -8971,12 +9028,15 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
8971
9028
|
onOpenWorkspace(result.workspace);
|
|
8972
9029
|
}
|
|
8973
9030
|
handleClose();
|
|
9031
|
+
} else {
|
|
9032
|
+
setImportError("The dashboard wasn't imported: ".concat(result && result.error || "no reason given", "."));
|
|
8974
9033
|
}
|
|
8975
9034
|
_context2.next = 5;
|
|
8976
9035
|
break;
|
|
8977
9036
|
case 4:
|
|
8978
9037
|
_context2.prev = 4;
|
|
8979
|
-
_context2["catch"](2);
|
|
9038
|
+
_t2 = _context2["catch"](2);
|
|
9039
|
+
setImportError("The dashboard wasn't imported: ".concat(_t2 && _t2.message || "unknown error", "."));
|
|
8980
9040
|
case 5:
|
|
8981
9041
|
case "end":
|
|
8982
9042
|
return _context2.stop();
|
|
@@ -9407,8 +9467,15 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
9407
9467
|
|
|
9408
9468
|
// Import stepper footer: 4 steps (File, Name, Organize, Theme)
|
|
9409
9469
|
if (creationMethod === "import") {
|
|
9410
|
-
return /*#__PURE__*/jsxRuntime.
|
|
9411
|
-
children: /*#__PURE__*/jsxRuntime.
|
|
9470
|
+
return /*#__PURE__*/jsxRuntime.jsxs(DashReact.Modal.Footer, {
|
|
9471
|
+
children: [importError ? /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
9472
|
+
className: "flex-1 min-w-0 mr-4",
|
|
9473
|
+
children: /*#__PURE__*/jsxRuntime.jsx(DashReact.AlertBanner, {
|
|
9474
|
+
variant: "error",
|
|
9475
|
+
size: "compact",
|
|
9476
|
+
message: importError
|
|
9477
|
+
})
|
|
9478
|
+
}) : null, /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
9412
9479
|
className: "flex flex-row space-x-2",
|
|
9413
9480
|
children: [activeStep === 0 && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
9414
9481
|
children: [/*#__PURE__*/jsxRuntime.jsx(DashReact.Button, {
|
|
@@ -9505,7 +9572,7 @@ var LayoutManagerModal = function LayoutManagerModal(_ref) {
|
|
|
9505
9572
|
hoverBackgroundColor: "hover:bg-blue-500"
|
|
9506
9573
|
})]
|
|
9507
9574
|
})]
|
|
9508
|
-
})
|
|
9575
|
+
})]
|
|
9509
9576
|
});
|
|
9510
9577
|
}
|
|
9511
9578
|
|
|
@@ -9805,9 +9872,9 @@ var LayoutQuickAddMenu = function LayoutQuickAddMenu(_ref) {
|
|
|
9805
9872
|
});
|
|
9806
9873
|
};
|
|
9807
9874
|
|
|
9808
|
-
function _createForOfIteratorHelper$
|
|
9809
|
-
function _unsupportedIterableToArray$
|
|
9810
|
-
function _arrayLikeToArray$
|
|
9875
|
+
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; } } }; }
|
|
9876
|
+
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; } }
|
|
9877
|
+
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; }
|
|
9811
9878
|
|
|
9812
9879
|
/**
|
|
9813
9880
|
* useRegistrySearch — shared hook for browsing and installing registry packages.
|
|
@@ -9921,13 +9988,13 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
9921
9988
|
return c.toLowerCase();
|
|
9922
9989
|
}));
|
|
9923
9990
|
widgets = [];
|
|
9924
|
-
_iterator = _createForOfIteratorHelper$
|
|
9991
|
+
_iterator = _createForOfIteratorHelper$16(pkgs);
|
|
9925
9992
|
try {
|
|
9926
9993
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
9927
9994
|
pkg = _step.value;
|
|
9928
9995
|
// Compute missing APIs for the entire package
|
|
9929
9996
|
allApiProviders = [];
|
|
9930
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
9997
|
+
_iterator2 = _createForOfIteratorHelper$16(pkg.providers || []);
|
|
9931
9998
|
try {
|
|
9932
9999
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
9933
10000
|
p = _step2.value;
|
|
@@ -9940,11 +10007,11 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
9940
10007
|
} finally {
|
|
9941
10008
|
_iterator2.f();
|
|
9942
10009
|
}
|
|
9943
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
10010
|
+
_iterator3 = _createForOfIteratorHelper$16(pkg.widgets || []);
|
|
9944
10011
|
try {
|
|
9945
10012
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
9946
10013
|
w = _step3.value;
|
|
9947
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
10014
|
+
_iterator5 = _createForOfIteratorHelper$16(w.providers || []);
|
|
9948
10015
|
try {
|
|
9949
10016
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
9950
10017
|
_p = _step5.value;
|
|
@@ -9966,7 +10033,7 @@ var useRegistrySearch = function useRegistrySearch() {
|
|
|
9966
10033
|
missingApis = _toConsumableArray(new Set(allApiProviders)).filter(function (api) {
|
|
9967
10034
|
return !capSet.has(api.toLowerCase());
|
|
9968
10035
|
});
|
|
9969
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
10036
|
+
_iterator4 = _createForOfIteratorHelper$16(pkg.widgets || []);
|
|
9970
10037
|
try {
|
|
9971
10038
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
9972
10039
|
widget = _step4.value;
|
|
@@ -10753,9 +10820,9 @@ function WizardThemePreview(_ref) {
|
|
|
10753
10820
|
});
|
|
10754
10821
|
}
|
|
10755
10822
|
|
|
10756
|
-
function _createForOfIteratorHelper$
|
|
10757
|
-
function _unsupportedIterableToArray$
|
|
10758
|
-
function _arrayLikeToArray$
|
|
10823
|
+
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; } } }; }
|
|
10824
|
+
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; } }
|
|
10825
|
+
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; }
|
|
10759
10826
|
var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
10760
10827
|
var _state$selectedDashbo, _state$selectedDashbo2, _state$layout;
|
|
10761
10828
|
var state = _ref.state,
|
|
@@ -10974,7 +11041,7 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
|
|
|
10974
11041
|
installedNames = new Set(installedList.map(function (w) {
|
|
10975
11042
|
return w.name;
|
|
10976
11043
|
}));
|
|
10977
|
-
_iterator = _createForOfIteratorHelper$
|
|
11044
|
+
_iterator = _createForOfIteratorHelper$15(state.selectedWidgets);
|
|
10978
11045
|
_context2.prev = 12;
|
|
10979
11046
|
_iterator.s();
|
|
10980
11047
|
case 13:
|
|
@@ -12663,9 +12730,9 @@ function mergeDownOp(grid, row, col) {
|
|
|
12663
12730
|
}
|
|
12664
12731
|
|
|
12665
12732
|
var _excluded$6 = ["rows", "cols"];
|
|
12666
|
-
function _createForOfIteratorHelper$
|
|
12667
|
-
function _unsupportedIterableToArray$
|
|
12668
|
-
function _arrayLikeToArray$
|
|
12733
|
+
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; } } }; }
|
|
12734
|
+
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; } }
|
|
12735
|
+
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; }
|
|
12669
12736
|
function ownKeys$1D(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; }
|
|
12670
12737
|
function _objectSpread$1D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12671
12738
|
var defaultGrid = {
|
|
@@ -12787,7 +12854,7 @@ function GridEditor(_ref) {
|
|
|
12787
12854
|
function sortObjectByKeys(obj) {
|
|
12788
12855
|
var sortedKeys = Object.keys(obj).sort();
|
|
12789
12856
|
var sortedObj = {};
|
|
12790
|
-
var _iterator = _createForOfIteratorHelper$
|
|
12857
|
+
var _iterator = _createForOfIteratorHelper$14(sortedKeys),
|
|
12791
12858
|
_step;
|
|
12792
12859
|
try {
|
|
12793
12860
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -13260,9 +13327,9 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
|
|
|
13260
13327
|
});
|
|
13261
13328
|
};
|
|
13262
13329
|
|
|
13263
|
-
function _createForOfIteratorHelper$
|
|
13264
|
-
function _unsupportedIterableToArray$
|
|
13265
|
-
function _arrayLikeToArray$
|
|
13330
|
+
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; } } }; }
|
|
13331
|
+
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; } }
|
|
13332
|
+
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; }
|
|
13266
13333
|
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; }
|
|
13267
13334
|
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; }
|
|
13268
13335
|
var DAYS = [{
|
|
@@ -13591,7 +13658,7 @@ var PanelEditItemSchedule = function PanelEditItemSchedule(_ref2) {
|
|
|
13591
13658
|
setIsLoading(true);
|
|
13592
13659
|
window.mainApi.scheduler.getTasks(widgetUuid).then(function (tasks) {
|
|
13593
13660
|
var stateMap = {};
|
|
13594
|
-
var _iterator = _createForOfIteratorHelper$
|
|
13661
|
+
var _iterator = _createForOfIteratorHelper$13(tasks || []),
|
|
13595
13662
|
_step;
|
|
13596
13663
|
try {
|
|
13597
13664
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -13850,9 +13917,9 @@ function isUserWidget(item) {
|
|
|
13850
13917
|
return true;
|
|
13851
13918
|
}
|
|
13852
13919
|
|
|
13853
|
-
function _createForOfIteratorHelper$
|
|
13854
|
-
function _unsupportedIterableToArray$
|
|
13855
|
-
function _arrayLikeToArray$
|
|
13920
|
+
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; } } }; }
|
|
13921
|
+
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; } }
|
|
13922
|
+
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; }
|
|
13856
13923
|
|
|
13857
13924
|
/**
|
|
13858
13925
|
* Resolve which provider name a given widget instance would bind to for
|
|
@@ -13884,7 +13951,7 @@ function resolveProviderName(_ref) {
|
|
|
13884
13951
|
// array. Support both because different callers shape it either way.
|
|
13885
13952
|
if (appProviders) {
|
|
13886
13953
|
if (Array.isArray(appProviders)) {
|
|
13887
|
-
var _iterator = _createForOfIteratorHelper$
|
|
13954
|
+
var _iterator = _createForOfIteratorHelper$12(appProviders),
|
|
13888
13955
|
_step;
|
|
13889
13956
|
try {
|
|
13890
13957
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -13944,7 +14011,7 @@ function forEachWidget(workspace, visit) {
|
|
|
13944
14011
|
};
|
|
13945
14012
|
var _walk = function walk(items) {
|
|
13946
14013
|
if (!Array.isArray(items)) return;
|
|
13947
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
14014
|
+
var _iterator2 = _createForOfIteratorHelper$12(items),
|
|
13948
14015
|
_step2;
|
|
13949
14016
|
try {
|
|
13950
14017
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -13985,7 +14052,7 @@ function forEachWidget(workspace, visit) {
|
|
|
13985
14052
|
// widgets that only live there (e.g. AI-place writes that bypass
|
|
13986
14053
|
// the page handler).
|
|
13987
14054
|
if (Array.isArray(workspace.pages)) {
|
|
13988
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
14055
|
+
var _iterator3 = _createForOfIteratorHelper$12(workspace.pages),
|
|
13989
14056
|
_step3;
|
|
13990
14057
|
try {
|
|
13991
14058
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -14036,7 +14103,7 @@ function getUnresolvedProviders(_ref2) {
|
|
|
14036
14103
|
// the same `type` listed twice (a Claude code-gen quirk), which
|
|
14037
14104
|
// would otherwise produce duplicate rows in the Providers tab.
|
|
14038
14105
|
var seenTypes = new Set();
|
|
14039
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
14106
|
+
var _iterator4 = _createForOfIteratorHelper$12(requirements),
|
|
14040
14107
|
_step4;
|
|
14041
14108
|
try {
|
|
14042
14109
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -14079,7 +14146,7 @@ function getUnresolvedProviders(_ref2) {
|
|
|
14079
14146
|
*/
|
|
14080
14147
|
function groupByProviderType(unresolved) {
|
|
14081
14148
|
var byType = new Map();
|
|
14082
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
14149
|
+
var _iterator5 = _createForOfIteratorHelper$12(unresolved || []),
|
|
14083
14150
|
_step5;
|
|
14084
14151
|
try {
|
|
14085
14152
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -14121,7 +14188,7 @@ function getAllProviderBindings(_ref3) {
|
|
|
14121
14188
|
// quirk) which would otherwise duplicate the per-widget row in
|
|
14122
14189
|
// the Providers tab.
|
|
14123
14190
|
var seenTypes = new Set();
|
|
14124
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
14191
|
+
var _iterator6 = _createForOfIteratorHelper$12(requirements),
|
|
14125
14192
|
_step6;
|
|
14126
14193
|
try {
|
|
14127
14194
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -14163,9 +14230,9 @@ function getAllProviderBindings(_ref3) {
|
|
|
14163
14230
|
|
|
14164
14231
|
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; }
|
|
14165
14232
|
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; }
|
|
14166
|
-
function _createForOfIteratorHelper$
|
|
14167
|
-
function _unsupportedIterableToArray$
|
|
14168
|
-
function _arrayLikeToArray$
|
|
14233
|
+
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; } } }; }
|
|
14234
|
+
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; } }
|
|
14235
|
+
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; }
|
|
14169
14236
|
var EVENT_STRING_RE = /^([^[]+)\[([^\]]+)\]\.(.+)$/;
|
|
14170
14237
|
|
|
14171
14238
|
/** Parse "Component[itemId].event" → { component, itemId, event }. */
|
|
@@ -14342,7 +14409,7 @@ function getCurrentWiring(workspace) {
|
|
|
14342
14409
|
// Live format is array; defensive guard for legacy object
|
|
14343
14410
|
// form (a single source widget keyed under the handler).
|
|
14344
14411
|
var events = Array.isArray(eventList) ? eventList : typeof eventList === "string" ? [eventList] : [];
|
|
14345
|
-
var _iterator = _createForOfIteratorHelper$
|
|
14412
|
+
var _iterator = _createForOfIteratorHelper$11(events),
|
|
14346
14413
|
_step;
|
|
14347
14414
|
try {
|
|
14348
14415
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -14406,7 +14473,7 @@ function getOrphanedListeners(workspace, getWidgetConfig) {
|
|
|
14406
14473
|
if (!byItemId.has(id)) byItemId.set(id, meta);
|
|
14407
14474
|
});
|
|
14408
14475
|
var orphans = [];
|
|
14409
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
14476
|
+
var _iterator2 = _createForOfIteratorHelper$11(wiring),
|
|
14410
14477
|
_step2;
|
|
14411
14478
|
try {
|
|
14412
14479
|
var _loop = function _loop() {
|
|
@@ -14493,7 +14560,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
14493
14560
|
var liveKeys = new Set();
|
|
14494
14561
|
var _walkForLive = function walkForLive(items) {
|
|
14495
14562
|
if (!Array.isArray(items)) return;
|
|
14496
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
14563
|
+
var _iterator3 = _createForOfIteratorHelper$11(items),
|
|
14497
14564
|
_step3;
|
|
14498
14565
|
try {
|
|
14499
14566
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -14514,7 +14581,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
14514
14581
|
};
|
|
14515
14582
|
_walkForLive(workspace.layout);
|
|
14516
14583
|
if (Array.isArray(workspace.pages)) {
|
|
14517
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
14584
|
+
var _iterator4 = _createForOfIteratorHelper$11(workspace.pages),
|
|
14518
14585
|
_step4;
|
|
14519
14586
|
try {
|
|
14520
14587
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -14531,7 +14598,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
14531
14598
|
var removed = 0;
|
|
14532
14599
|
var _pruneListeners = function pruneListeners(items) {
|
|
14533
14600
|
if (!Array.isArray(items)) return;
|
|
14534
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
14601
|
+
var _iterator5 = _createForOfIteratorHelper$11(items),
|
|
14535
14602
|
_step5;
|
|
14536
14603
|
try {
|
|
14537
14604
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -14543,7 +14610,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
14543
14610
|
var events = item.listeners[handler];
|
|
14544
14611
|
if (!Array.isArray(events)) continue;
|
|
14545
14612
|
var kept = [];
|
|
14546
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
14613
|
+
var _iterator6 = _createForOfIteratorHelper$11(events),
|
|
14547
14614
|
_step6;
|
|
14548
14615
|
try {
|
|
14549
14616
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -14580,7 +14647,7 @@ function pruneDeadListenerReferences(workspace) {
|
|
|
14580
14647
|
};
|
|
14581
14648
|
_pruneListeners(workspace.layout);
|
|
14582
14649
|
if (Array.isArray(workspace.pages)) {
|
|
14583
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
14650
|
+
var _iterator7 = _createForOfIteratorHelper$11(workspace.pages),
|
|
14584
14651
|
_step7;
|
|
14585
14652
|
try {
|
|
14586
14653
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -14624,7 +14691,7 @@ function applyWiringChanges(workspace, _ref) {
|
|
|
14624
14691
|
});
|
|
14625
14692
|
return byReceiver.get(id);
|
|
14626
14693
|
};
|
|
14627
|
-
var _iterator8 = _createForOfIteratorHelper$
|
|
14694
|
+
var _iterator8 = _createForOfIteratorHelper$11(adds),
|
|
14628
14695
|
_step8;
|
|
14629
14696
|
try {
|
|
14630
14697
|
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
@@ -14637,7 +14704,7 @@ function applyWiringChanges(workspace, _ref) {
|
|
|
14637
14704
|
} finally {
|
|
14638
14705
|
_iterator8.f();
|
|
14639
14706
|
}
|
|
14640
|
-
var _iterator9 = _createForOfIteratorHelper$
|
|
14707
|
+
var _iterator9 = _createForOfIteratorHelper$11(removes),
|
|
14641
14708
|
_step9;
|
|
14642
14709
|
try {
|
|
14643
14710
|
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
@@ -14711,7 +14778,7 @@ function applyToItem(listeners, _ref2) {
|
|
|
14711
14778
|
}
|
|
14712
14779
|
|
|
14713
14780
|
// Removes first so a re-add (rare) lands.
|
|
14714
|
-
var _iterator0 = _createForOfIteratorHelper$
|
|
14781
|
+
var _iterator0 = _createForOfIteratorHelper$11(removes),
|
|
14715
14782
|
_step0;
|
|
14716
14783
|
try {
|
|
14717
14784
|
var _loop2 = function _loop2() {
|
|
@@ -14740,7 +14807,7 @@ function applyToItem(listeners, _ref2) {
|
|
|
14740
14807
|
} finally {
|
|
14741
14808
|
_iterator0.f();
|
|
14742
14809
|
}
|
|
14743
|
-
var _iterator1 = _createForOfIteratorHelper$
|
|
14810
|
+
var _iterator1 = _createForOfIteratorHelper$11(adds),
|
|
14744
14811
|
_step1;
|
|
14745
14812
|
try {
|
|
14746
14813
|
for (_iterator1.s(); !(_step1 = _iterator1.n()).done;) {
|
|
@@ -14799,9 +14866,9 @@ var SectionLayout = function SectionLayout(_ref) {
|
|
|
14799
14866
|
});
|
|
14800
14867
|
};
|
|
14801
14868
|
|
|
14802
|
-
function _createForOfIteratorHelper
|
|
14803
|
-
function _unsupportedIterableToArray
|
|
14804
|
-
function _arrayLikeToArray
|
|
14869
|
+
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; } } }; }
|
|
14870
|
+
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; } }
|
|
14871
|
+
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; }
|
|
14805
14872
|
|
|
14806
14873
|
/**
|
|
14807
14874
|
* @param {Array<object>} workspaces dashboards (each with id, name, layout/pages)
|
|
@@ -14813,7 +14880,7 @@ function _arrayLikeToArray$$(r, a) { (null == a || a > r.length) && (a = r.lengt
|
|
|
14813
14880
|
function buildWidgetEventCatalog(workspaces, getWidgetConfig) {
|
|
14814
14881
|
if (!Array.isArray(workspaces)) return [];
|
|
14815
14882
|
var out = [];
|
|
14816
|
-
var _iterator = _createForOfIteratorHelper
|
|
14883
|
+
var _iterator = _createForOfIteratorHelper$10(workspaces),
|
|
14817
14884
|
_step;
|
|
14818
14885
|
try {
|
|
14819
14886
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -14886,12 +14953,12 @@ function describeSubscription(sub, catalog) {
|
|
|
14886
14953
|
// Bot subscriptions resolve against the bot catalog; `kind` lets the form
|
|
14887
14954
|
// say "bot missing" instead of "widget missing".
|
|
14888
14955
|
if (sub && sub.source && sub.source.kind === "bot") {
|
|
14889
|
-
var _iterator2 = _createForOfIteratorHelper
|
|
14956
|
+
var _iterator2 = _createForOfIteratorHelper$10(botCatalog || []),
|
|
14890
14957
|
_step2;
|
|
14891
14958
|
try {
|
|
14892
14959
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
14893
14960
|
var b = _step2.value;
|
|
14894
|
-
var _iterator3 = _createForOfIteratorHelper
|
|
14961
|
+
var _iterator3 = _createForOfIteratorHelper$10(b.events),
|
|
14895
14962
|
_step3;
|
|
14896
14963
|
try {
|
|
14897
14964
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -14922,17 +14989,17 @@ function describeSubscription(sub, catalog) {
|
|
|
14922
14989
|
kind: "bot"
|
|
14923
14990
|
};
|
|
14924
14991
|
}
|
|
14925
|
-
var _iterator4 = _createForOfIteratorHelper
|
|
14992
|
+
var _iterator4 = _createForOfIteratorHelper$10(catalog || []),
|
|
14926
14993
|
_step4;
|
|
14927
14994
|
try {
|
|
14928
14995
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
14929
14996
|
var ws = _step4.value;
|
|
14930
|
-
var _iterator5 = _createForOfIteratorHelper
|
|
14997
|
+
var _iterator5 = _createForOfIteratorHelper$10(ws.widgets),
|
|
14931
14998
|
_step5;
|
|
14932
14999
|
try {
|
|
14933
15000
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
14934
15001
|
var w = _step5.value;
|
|
14935
|
-
var _iterator6 = _createForOfIteratorHelper
|
|
15002
|
+
var _iterator6 = _createForOfIteratorHelper$10(w.events),
|
|
14936
15003
|
_step6;
|
|
14937
15004
|
try {
|
|
14938
15005
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -14992,7 +15059,7 @@ function buildBotEventCatalog(bots, toolSources) {
|
|
|
14992
15059
|
if (!Array.isArray(bots)) return [];
|
|
14993
15060
|
var sources = Array.isArray(toolSources) ? toolSources : [];
|
|
14994
15061
|
var out = [];
|
|
14995
|
-
var _iterator7 = _createForOfIteratorHelper
|
|
15062
|
+
var _iterator7 = _createForOfIteratorHelper$10(bots),
|
|
14996
15063
|
_step7;
|
|
14997
15064
|
try {
|
|
14998
15065
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -15008,7 +15075,7 @@ function buildBotEventCatalog(bots, toolSources) {
|
|
|
15008
15075
|
event: "failed",
|
|
15009
15076
|
label: "Failed"
|
|
15010
15077
|
}];
|
|
15011
|
-
var _iterator8 = _createForOfIteratorHelper
|
|
15078
|
+
var _iterator8 = _createForOfIteratorHelper$10(bot.publishes || []),
|
|
15012
15079
|
_step8;
|
|
15013
15080
|
try {
|
|
15014
15081
|
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
@@ -15024,7 +15091,7 @@ function buildBotEventCatalog(bots, toolSources) {
|
|
|
15024
15091
|
} finally {
|
|
15025
15092
|
_iterator8.f();
|
|
15026
15093
|
}
|
|
15027
|
-
var _iterator9 = _createForOfIteratorHelper
|
|
15094
|
+
var _iterator9 = _createForOfIteratorHelper$10(bot.mcpServers || []),
|
|
15028
15095
|
_step9;
|
|
15029
15096
|
try {
|
|
15030
15097
|
var _loop = function _loop() {
|
|
@@ -15037,7 +15104,7 @@ function buildBotEventCatalog(bots, toolSources) {
|
|
|
15037
15104
|
var tools = Array.isArray(sel) ? src.tools.filter(function (t) {
|
|
15038
15105
|
return sel.includes(t);
|
|
15039
15106
|
}) : src.tools;
|
|
15040
|
-
var _iterator0 = _createForOfIteratorHelper
|
|
15107
|
+
var _iterator0 = _createForOfIteratorHelper$10(tools),
|
|
15041
15108
|
_step0;
|
|
15042
15109
|
try {
|
|
15043
15110
|
for (_iterator0.s(); !(_step0 = _iterator0.n()).done;) {
|
|
@@ -15141,21 +15208,21 @@ function buildTriggerOptions(_ref) {
|
|
|
15141
15208
|
var wsList = (Array.isArray(workspaces) ? workspaces : []).filter(function (ws) {
|
|
15142
15209
|
return ws && (teamKey === null || String(ws.id) === teamKey);
|
|
15143
15210
|
});
|
|
15144
|
-
var _iterator1 = _createForOfIteratorHelper
|
|
15211
|
+
var _iterator1 = _createForOfIteratorHelper$10(buildWidgetEventCatalog(wsList, getWidgetConfig)),
|
|
15145
15212
|
_step1;
|
|
15146
15213
|
try {
|
|
15147
15214
|
for (_iterator1.s(); !(_step1 = _iterator1.n()).done;) {
|
|
15148
15215
|
var ws = _step1.value;
|
|
15149
15216
|
var group = "Widgets on ".concat(ws.name);
|
|
15150
15217
|
var seen = {};
|
|
15151
|
-
var _iterator11 = _createForOfIteratorHelper
|
|
15218
|
+
var _iterator11 = _createForOfIteratorHelper$10(ws.widgets),
|
|
15152
15219
|
_step11;
|
|
15153
15220
|
try {
|
|
15154
15221
|
for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
|
|
15155
15222
|
var widget = _step11.value;
|
|
15156
15223
|
seen[widget.label] = (seen[widget.label] || 0) + 1;
|
|
15157
15224
|
var name = seen[widget.label] > 1 ? "".concat(widget.label, " (").concat(seen[widget.label], ")") : widget.label;
|
|
15158
|
-
var _iterator12 = _createForOfIteratorHelper
|
|
15225
|
+
var _iterator12 = _createForOfIteratorHelper$10(widget.events),
|
|
15159
15226
|
_step12;
|
|
15160
15227
|
try {
|
|
15161
15228
|
for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
|
|
@@ -15197,13 +15264,13 @@ function buildTriggerOptions(_ref) {
|
|
|
15197
15264
|
var wsOf = new Map(candidates.map(function (b) {
|
|
15198
15265
|
return [b.id, b.workspaceId];
|
|
15199
15266
|
}));
|
|
15200
|
-
var _iterator10 = _createForOfIteratorHelper
|
|
15267
|
+
var _iterator10 = _createForOfIteratorHelper$10(buildBotEventCatalog(candidates, toolSources, botId)),
|
|
15201
15268
|
_step10;
|
|
15202
15269
|
try {
|
|
15203
15270
|
for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
|
|
15204
15271
|
var entry = _step10.value;
|
|
15205
15272
|
var where = teamKey === null && wsOf.get(entry.botId) !== null && wsOf.get(entry.botId) !== undefined ? " (".concat(nameOfWs.get(String(wsOf.get(entry.botId))) || "another dashboard", ")") : "";
|
|
15206
|
-
var _iterator13 = _createForOfIteratorHelper
|
|
15273
|
+
var _iterator13 = _createForOfIteratorHelper$10(entry.events),
|
|
15207
15274
|
_step13;
|
|
15208
15275
|
try {
|
|
15209
15276
|
for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
|
|
@@ -15251,7 +15318,7 @@ function groupBotEvents(events) {
|
|
|
15251
15318
|
title: "Tools it uses",
|
|
15252
15319
|
events: []
|
|
15253
15320
|
}];
|
|
15254
|
-
var _iterator14 = _createForOfIteratorHelper
|
|
15321
|
+
var _iterator14 = _createForOfIteratorHelper$10(Array.isArray(events) ? events : []),
|
|
15255
15322
|
_step14;
|
|
15256
15323
|
try {
|
|
15257
15324
|
var _loop2 = function _loop2() {
|
|
@@ -18398,9 +18465,9 @@ function mcpJsonToFormState(jsonString, nextRowId) {
|
|
|
18398
18465
|
return result;
|
|
18399
18466
|
}
|
|
18400
18467
|
|
|
18401
|
-
function _createForOfIteratorHelper
|
|
18402
|
-
function _unsupportedIterableToArray
|
|
18403
|
-
function _arrayLikeToArray
|
|
18468
|
+
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; } } }; }
|
|
18469
|
+
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; } }
|
|
18470
|
+
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; }
|
|
18404
18471
|
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; }
|
|
18405
18472
|
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; }
|
|
18406
18473
|
var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
@@ -18685,11 +18752,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
|
|
|
18685
18752
|
|
|
18686
18753
|
// Flatten all widgets from all packages for the widget list
|
|
18687
18754
|
flatWidgets = [];
|
|
18688
|
-
_iterator = _createForOfIteratorHelper
|
|
18755
|
+
_iterator = _createForOfIteratorHelper$$(result.packages || []);
|
|
18689
18756
|
try {
|
|
18690
18757
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
18691
18758
|
pkg = _step.value;
|
|
18692
|
-
_iterator2 = _createForOfIteratorHelper
|
|
18759
|
+
_iterator2 = _createForOfIteratorHelper$$(pkg.widgets || []);
|
|
18693
18760
|
try {
|
|
18694
18761
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
18695
18762
|
widget = _step2.value;
|
|
@@ -20639,9 +20706,9 @@ var useWidgetSchedulerStatus = function useWidgetSchedulerStatus(widgetId) {
|
|
|
20639
20706
|
};
|
|
20640
20707
|
};
|
|
20641
20708
|
|
|
20642
|
-
function _createForOfIteratorHelper$
|
|
20643
|
-
function _unsupportedIterableToArray$
|
|
20644
|
-
function _arrayLikeToArray$
|
|
20709
|
+
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; } } }; }
|
|
20710
|
+
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; } }
|
|
20711
|
+
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; }
|
|
20645
20712
|
function formatCountdown(ms) {
|
|
20646
20713
|
if (ms == null || ms < 0) return "--";
|
|
20647
20714
|
if (ms < 1000) return "< 1s";
|
|
@@ -20770,7 +20837,7 @@ var WidgetCardStatusBar = function WidgetCardStatusBar(_ref) {
|
|
|
20770
20837
|
|
|
20771
20838
|
// Find soonest countdown among enabled tasks
|
|
20772
20839
|
var soonestMs = null;
|
|
20773
|
-
var _iterator = _createForOfIteratorHelper$
|
|
20840
|
+
var _iterator = _createForOfIteratorHelper$_(enabledTasks),
|
|
20774
20841
|
_step;
|
|
20775
20842
|
try {
|
|
20776
20843
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -21162,9 +21229,9 @@ function formatMonthCost(spend, botId) {
|
|
|
21162
21229
|
return "No runs this month";
|
|
21163
21230
|
}
|
|
21164
21231
|
|
|
21165
|
-
function _createForOfIteratorHelper$
|
|
21166
|
-
function _unsupportedIterableToArray$
|
|
21167
|
-
function _arrayLikeToArray$
|
|
21232
|
+
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; } } }; }
|
|
21233
|
+
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; } }
|
|
21234
|
+
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; }
|
|
21168
21235
|
|
|
21169
21236
|
/**
|
|
21170
21237
|
* Select-to-edit in the dashboard editor (create-entry phase 1c, CRE-006).
|
|
@@ -21201,7 +21268,7 @@ function widgetsOf(layout) {
|
|
|
21201
21268
|
|
|
21202
21269
|
/** The grid and cell holding widget `itemId`, or null. */
|
|
21203
21270
|
function findWidgetCell(layout, itemId) {
|
|
21204
|
-
var _iterator = _createForOfIteratorHelper$
|
|
21271
|
+
var _iterator = _createForOfIteratorHelper$Z(Array.isArray(layout) ? layout : []),
|
|
21205
21272
|
_step;
|
|
21206
21273
|
try {
|
|
21207
21274
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -21232,7 +21299,7 @@ function botsFeeding(widget) {
|
|
|
21232
21299
|
var out = new Set();
|
|
21233
21300
|
for (var _i2 = 0, _Object$values = Object.values(widget && widget.listeners || {}); _i2 < _Object$values.length; _i2++) {
|
|
21234
21301
|
var events = _Object$values[_i2];
|
|
21235
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
21302
|
+
var _iterator2 = _createForOfIteratorHelper$Z(Array.isArray(events) ? events : []),
|
|
21236
21303
|
_step2;
|
|
21237
21304
|
try {
|
|
21238
21305
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -21277,7 +21344,7 @@ function relatedTo(selection) {
|
|
|
21277
21344
|
return w.uuid === selection.uuid;
|
|
21278
21345
|
});
|
|
21279
21346
|
if (!widget) return related;
|
|
21280
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
21347
|
+
var _iterator3 = _createForOfIteratorHelper$Z(botsFeeding(widget)),
|
|
21281
21348
|
_step3;
|
|
21282
21349
|
try {
|
|
21283
21350
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -21289,7 +21356,7 @@ function relatedTo(selection) {
|
|
|
21289
21356
|
} finally {
|
|
21290
21357
|
_iterator3.f();
|
|
21291
21358
|
}
|
|
21292
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
21359
|
+
var _iterator4 = _createForOfIteratorHelper$Z(bots),
|
|
21293
21360
|
_step4;
|
|
21294
21361
|
try {
|
|
21295
21362
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -21305,7 +21372,7 @@ function relatedTo(selection) {
|
|
|
21305
21372
|
var _bot = bots.find(function (b) {
|
|
21306
21373
|
return b.id === selection.botId;
|
|
21307
21374
|
});
|
|
21308
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
21375
|
+
var _iterator5 = _createForOfIteratorHelper$Z(widgets),
|
|
21309
21376
|
_step5;
|
|
21310
21377
|
try {
|
|
21311
21378
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -21889,9 +21956,9 @@ var WidgetNotFound = function WidgetNotFound(_ref) {
|
|
|
21889
21956
|
var GRID_CELL_WIDGET_TYPE = "grid-cell-widget";
|
|
21890
21957
|
var SIDEBAR_WIDGET_TYPE = "sidebar-widget";
|
|
21891
21958
|
|
|
21892
|
-
function _createForOfIteratorHelper$
|
|
21893
|
-
function _unsupportedIterableToArray$
|
|
21894
|
-
function _arrayLikeToArray$
|
|
21959
|
+
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; } } }; }
|
|
21960
|
+
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; } }
|
|
21961
|
+
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; }
|
|
21895
21962
|
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; }
|
|
21896
21963
|
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; }
|
|
21897
21964
|
|
|
@@ -22559,7 +22626,7 @@ var LayoutGridContainer = /*#__PURE__*/React.memo(function (_ref4) {
|
|
|
22559
22626
|
return selectable["delete"](cn);
|
|
22560
22627
|
});
|
|
22561
22628
|
var resolved = new Set();
|
|
22562
|
-
var _iterator = _createForOfIteratorHelper$
|
|
22629
|
+
var _iterator = _createForOfIteratorHelper$Y(selectable),
|
|
22563
22630
|
_step;
|
|
22564
22631
|
try {
|
|
22565
22632
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -29969,9 +30036,9 @@ function migrateBareComponentName(componentMap, component) {
|
|
|
29969
30036
|
|
|
29970
30037
|
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; }
|
|
29971
30038
|
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; }
|
|
29972
|
-
function _createForOfIteratorHelper$
|
|
29973
|
-
function _unsupportedIterableToArray$
|
|
29974
|
-
function _arrayLikeToArray$
|
|
30039
|
+
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; } } }; }
|
|
30040
|
+
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; } }
|
|
30041
|
+
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; }
|
|
29975
30042
|
/**
|
|
29976
30043
|
* The model for all layout components used primarily in the renderLayout method
|
|
29977
30044
|
* @param {Object} layoutItem an object containing various attributes of the layout item
|
|
@@ -29983,7 +30050,7 @@ function _arrayLikeToArray$W(r, a) { (null == a || a > r.length) && (a = r.lengt
|
|
|
29983
30050
|
function sortObjectByKeys(obj) {
|
|
29984
30051
|
var sortedKeys = Object.keys(obj).sort();
|
|
29985
30052
|
var sortedObj = {};
|
|
29986
|
-
var _iterator = _createForOfIteratorHelper$
|
|
30053
|
+
var _iterator = _createForOfIteratorHelper$X(sortedKeys),
|
|
29987
30054
|
_step;
|
|
29988
30055
|
try {
|
|
29989
30056
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -30301,9 +30368,9 @@ var SettingsModel = function SettingsModel() {
|
|
|
30301
30368
|
return obj;
|
|
30302
30369
|
};
|
|
30303
30370
|
|
|
30304
|
-
function _createForOfIteratorHelper$
|
|
30305
|
-
function _unsupportedIterableToArray$
|
|
30306
|
-
function _arrayLikeToArray$
|
|
30371
|
+
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; } } }; }
|
|
30372
|
+
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; } }
|
|
30373
|
+
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; }
|
|
30307
30374
|
|
|
30308
30375
|
/**
|
|
30309
30376
|
* Workspace-level pre-pass that migrates legacy bare component
|
|
@@ -30378,7 +30445,7 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
|
|
|
30378
30445
|
};
|
|
30379
30446
|
var _walk = function walk(items) {
|
|
30380
30447
|
if (!Array.isArray(items)) return;
|
|
30381
|
-
var _iterator = _createForOfIteratorHelper$
|
|
30448
|
+
var _iterator = _createForOfIteratorHelper$W(items),
|
|
30382
30449
|
_step;
|
|
30383
30450
|
try {
|
|
30384
30451
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -30400,7 +30467,7 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
|
|
|
30400
30467
|
};
|
|
30401
30468
|
_walk(workspace.layout);
|
|
30402
30469
|
if (Array.isArray(workspace.pages)) {
|
|
30403
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
30470
|
+
var _iterator2 = _createForOfIteratorHelper$W(workspace.pages),
|
|
30404
30471
|
_step2;
|
|
30405
30472
|
try {
|
|
30406
30473
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -30417,9 +30484,9 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
|
|
|
30417
30484
|
return counts;
|
|
30418
30485
|
}
|
|
30419
30486
|
|
|
30420
|
-
function _createForOfIteratorHelper$
|
|
30421
|
-
function _unsupportedIterableToArray$
|
|
30422
|
-
function _arrayLikeToArray$
|
|
30487
|
+
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; } } }; }
|
|
30488
|
+
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; } }
|
|
30489
|
+
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; }
|
|
30423
30490
|
/**
|
|
30424
30491
|
* cleanForeignWidgetsFromWorkspace.js
|
|
30425
30492
|
*
|
|
@@ -30460,7 +30527,7 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
|
|
|
30460
30527
|
var _cleanList = function cleanList(items) {
|
|
30461
30528
|
if (!Array.isArray(items)) return items;
|
|
30462
30529
|
var kept = [];
|
|
30463
|
-
var _iterator = _createForOfIteratorHelper$
|
|
30530
|
+
var _iterator = _createForOfIteratorHelper$V(items),
|
|
30464
30531
|
_step;
|
|
30465
30532
|
try {
|
|
30466
30533
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -30497,7 +30564,7 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
|
|
|
30497
30564
|
workspace.sidebarLayout = _cleanList(workspace.sidebarLayout);
|
|
30498
30565
|
}
|
|
30499
30566
|
if (Array.isArray(workspace.pages)) {
|
|
30500
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
30567
|
+
var _iterator2 = _createForOfIteratorHelper$V(workspace.pages),
|
|
30501
30568
|
_step2;
|
|
30502
30569
|
try {
|
|
30503
30570
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -30515,9 +30582,9 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
|
|
|
30515
30582
|
return summary;
|
|
30516
30583
|
}
|
|
30517
30584
|
|
|
30518
|
-
function _createForOfIteratorHelper$
|
|
30519
|
-
function _unsupportedIterableToArray$
|
|
30520
|
-
function _arrayLikeToArray$
|
|
30585
|
+
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; } } }; }
|
|
30586
|
+
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; } }
|
|
30587
|
+
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; }
|
|
30521
30588
|
/**
|
|
30522
30589
|
* migrateLayoutItemTypes.js
|
|
30523
30590
|
*
|
|
@@ -30579,7 +30646,7 @@ function migrateLayoutItemTypes(workspace) {
|
|
|
30579
30646
|
};
|
|
30580
30647
|
var _walk = function walk(items) {
|
|
30581
30648
|
if (!Array.isArray(items)) return;
|
|
30582
|
-
var _iterator = _createForOfIteratorHelper$
|
|
30649
|
+
var _iterator = _createForOfIteratorHelper$U(items),
|
|
30583
30650
|
_step;
|
|
30584
30651
|
try {
|
|
30585
30652
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -30597,7 +30664,7 @@ function migrateLayoutItemTypes(workspace) {
|
|
|
30597
30664
|
};
|
|
30598
30665
|
_walk(workspace.layout);
|
|
30599
30666
|
if (Array.isArray(workspace.pages)) {
|
|
30600
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
30667
|
+
var _iterator2 = _createForOfIteratorHelper$U(workspace.pages),
|
|
30601
30668
|
_step2;
|
|
30602
30669
|
try {
|
|
30603
30670
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -31169,9 +31236,9 @@ var ThemeModel = function ThemeModel() {
|
|
|
31169
31236
|
}
|
|
31170
31237
|
};
|
|
31171
31238
|
|
|
31172
|
-
function _createForOfIteratorHelper$
|
|
31173
|
-
function _unsupportedIterableToArray$
|
|
31174
|
-
function _arrayLikeToArray$
|
|
31239
|
+
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; } } }; }
|
|
31240
|
+
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; } }
|
|
31241
|
+
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; }
|
|
31175
31242
|
/*
|
|
31176
31243
|
"component": AnalyticsReportsWidget,
|
|
31177
31244
|
"type":"widget",
|
|
@@ -31289,7 +31356,7 @@ var ComponentConfigModel = function ComponentConfigModel() {
|
|
|
31289
31356
|
if ("providers" in obj && Array.isArray(obj.providers)) {
|
|
31290
31357
|
var seen = new Set();
|
|
31291
31358
|
var cleaned = [];
|
|
31292
|
-
var _iterator = _createForOfIteratorHelper$
|
|
31359
|
+
var _iterator = _createForOfIteratorHelper$T(obj.providers),
|
|
31293
31360
|
_step;
|
|
31294
31361
|
try {
|
|
31295
31362
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -31335,9 +31402,9 @@ var MenuItemModel = function MenuItemModel() {
|
|
|
31335
31402
|
return m;
|
|
31336
31403
|
};
|
|
31337
31404
|
|
|
31338
|
-
function _createForOfIteratorHelper$
|
|
31339
|
-
function _unsupportedIterableToArray$
|
|
31340
|
-
function _arrayLikeToArray$
|
|
31405
|
+
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; } } }; }
|
|
31406
|
+
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; } }
|
|
31407
|
+
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; }
|
|
31341
31408
|
function ownKeys$1h(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; }
|
|
31342
31409
|
function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1h(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1h(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31343
31410
|
/**
|
|
@@ -31397,7 +31464,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
31397
31464
|
maxRow = -Infinity;
|
|
31398
31465
|
var minCol = Infinity,
|
|
31399
31466
|
maxCol = -Infinity;
|
|
31400
|
-
var _iterator = _createForOfIteratorHelper$
|
|
31467
|
+
var _iterator = _createForOfIteratorHelper$S(cellNumbers),
|
|
31401
31468
|
_step;
|
|
31402
31469
|
try {
|
|
31403
31470
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -31421,7 +31488,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
31421
31488
|
} finally {
|
|
31422
31489
|
_iterator.f();
|
|
31423
31490
|
}
|
|
31424
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
31491
|
+
var _iterator2 = _createForOfIteratorHelper$S(cellNumbers),
|
|
31425
31492
|
_step2;
|
|
31426
31493
|
try {
|
|
31427
31494
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -31463,7 +31530,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
31463
31530
|
_iterator2.f();
|
|
31464
31531
|
}
|
|
31465
31532
|
var componentsInRange = [];
|
|
31466
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
31533
|
+
var _iterator3 = _createForOfIteratorHelper$S(cellNumbers),
|
|
31467
31534
|
_step3;
|
|
31468
31535
|
try {
|
|
31469
31536
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -31501,7 +31568,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
|
|
|
31501
31568
|
// other selected cells get hidden and have their component refs
|
|
31502
31569
|
// cleared (so a stale ref in a hidden cell never re-renders).
|
|
31503
31570
|
var keepCell = cellNumbers[0];
|
|
31504
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
31571
|
+
var _iterator4 = _createForOfIteratorHelper$S(cellNumbers),
|
|
31505
31572
|
_step4;
|
|
31506
31573
|
try {
|
|
31507
31574
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -32031,9 +32098,9 @@ function deleteGridColumnOp(grid, colNumber) {
|
|
|
32031
32098
|
};
|
|
32032
32099
|
}
|
|
32033
32100
|
|
|
32034
|
-
function _createForOfIteratorHelper$
|
|
32035
|
-
function _unsupportedIterableToArray$
|
|
32036
|
-
function _arrayLikeToArray$
|
|
32101
|
+
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; } } }; }
|
|
32102
|
+
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; } }
|
|
32103
|
+
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; }
|
|
32037
32104
|
/**
|
|
32038
32105
|
* A Model for a Workspace (Dashboard)
|
|
32039
32106
|
* The Dashboard in this instance is the entire Layout inclusive of the workspaces and widgets
|
|
@@ -32105,7 +32172,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
32105
32172
|
|
|
32106
32173
|
// Also normalize grids within pages
|
|
32107
32174
|
if (this.pages.length > 0) {
|
|
32108
|
-
var _iterator = _createForOfIteratorHelper$
|
|
32175
|
+
var _iterator = _createForOfIteratorHelper$R(this.pages),
|
|
32109
32176
|
_step;
|
|
32110
32177
|
try {
|
|
32111
32178
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -33505,7 +33572,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
33505
33572
|
// destructive-delete behavior.
|
|
33506
33573
|
var result = deleteGridRowOp(gridContainer.grid, rowNumber);
|
|
33507
33574
|
gridContainer.grid = result.grid;
|
|
33508
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
33575
|
+
var _iterator2 = _createForOfIteratorHelper$R(result.orphanedComponents),
|
|
33509
33576
|
_step2;
|
|
33510
33577
|
try {
|
|
33511
33578
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -33604,7 +33671,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
33604
33671
|
// Slice 11: pure helper.
|
|
33605
33672
|
var result = deleteGridColumnOp(gridContainer.grid, colNumber);
|
|
33606
33673
|
gridContainer.grid = result.grid;
|
|
33607
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
33674
|
+
var _iterator3 = _createForOfIteratorHelper$R(result.orphanedComponents),
|
|
33608
33675
|
_step3;
|
|
33609
33676
|
try {
|
|
33610
33677
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -33699,7 +33766,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
33699
33766
|
try {
|
|
33700
33767
|
// Collect all item IDs actively referenced by grid cells
|
|
33701
33768
|
var activeItemIds = new Set();
|
|
33702
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
33769
|
+
var _iterator4 = _createForOfIteratorHelper$R(this.layout),
|
|
33703
33770
|
_step4;
|
|
33704
33771
|
try {
|
|
33705
33772
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -33739,7 +33806,7 @@ var DashboardModel = /*#__PURE__*/function () {
|
|
|
33739
33806
|
});
|
|
33740
33807
|
|
|
33741
33808
|
// Clean listener references on remaining items for each removed orphan
|
|
33742
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
33809
|
+
var _iterator5 = _createForOfIteratorHelper$R(orphanedIds),
|
|
33743
33810
|
_step5;
|
|
33744
33811
|
try {
|
|
33745
33812
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -34512,9 +34579,9 @@ var useDashboard = function useDashboard() {
|
|
|
34512
34579
|
});
|
|
34513
34580
|
};
|
|
34514
34581
|
|
|
34515
|
-
function _createForOfIteratorHelper$
|
|
34516
|
-
function _unsupportedIterableToArray$
|
|
34517
|
-
function _arrayLikeToArray$
|
|
34582
|
+
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; } } }; }
|
|
34583
|
+
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; } }
|
|
34584
|
+
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; }
|
|
34518
34585
|
|
|
34519
34586
|
/**
|
|
34520
34587
|
* useWidgetProviders Hook
|
|
@@ -34577,7 +34644,7 @@ var useWidgetProviders = function useWidgetProviders() {
|
|
|
34577
34644
|
// 2. Workspace-level: stored as workspace.selectedProviders[widgetId][providerType]
|
|
34578
34645
|
// 3. App-default: any provider in AppContext.providers flagged isDefaultForType
|
|
34579
34646
|
var providers = {};
|
|
34580
|
-
var _iterator = _createForOfIteratorHelper$
|
|
34647
|
+
var _iterator = _createForOfIteratorHelper$Q(providerDeclarations),
|
|
34581
34648
|
_step;
|
|
34582
34649
|
try {
|
|
34583
34650
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -34636,9 +34703,9 @@ var useWidgetProviders = function useWidgetProviders() {
|
|
|
34636
34703
|
};
|
|
34637
34704
|
};
|
|
34638
34705
|
|
|
34639
|
-
function _createForOfIteratorHelper$
|
|
34640
|
-
function _unsupportedIterableToArray$
|
|
34641
|
-
function _arrayLikeToArray$
|
|
34706
|
+
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; } } }; }
|
|
34707
|
+
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; } }
|
|
34708
|
+
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; }
|
|
34642
34709
|
|
|
34643
34710
|
/**
|
|
34644
34711
|
* Module-level shared state for MCP server connections.
|
|
@@ -34693,7 +34760,7 @@ function unionPathScope(grants, serverName) {
|
|
|
34693
34760
|
allowedPaths: []
|
|
34694
34761
|
};
|
|
34695
34762
|
}
|
|
34696
|
-
var _iterator = _createForOfIteratorHelper$
|
|
34763
|
+
var _iterator = _createForOfIteratorHelper$P(grants),
|
|
34697
34764
|
_step;
|
|
34698
34765
|
try {
|
|
34699
34766
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -34706,7 +34773,7 @@ function unionPathScope(grants, serverName) {
|
|
|
34706
34773
|
var serverPerms = servers[serverName];
|
|
34707
34774
|
if (!serverPerms || _typeof(serverPerms) !== "object") continue;
|
|
34708
34775
|
if (Array.isArray(serverPerms.readPaths)) {
|
|
34709
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
34776
|
+
var _iterator2 = _createForOfIteratorHelper$P(serverPerms.readPaths),
|
|
34710
34777
|
_step2;
|
|
34711
34778
|
try {
|
|
34712
34779
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -34720,7 +34787,7 @@ function unionPathScope(grants, serverName) {
|
|
|
34720
34787
|
}
|
|
34721
34788
|
}
|
|
34722
34789
|
if (Array.isArray(serverPerms.writePaths)) {
|
|
34723
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
34790
|
+
var _iterator3 = _createForOfIteratorHelper$P(serverPerms.writePaths),
|
|
34724
34791
|
_step3;
|
|
34725
34792
|
try {
|
|
34726
34793
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -35527,9 +35594,9 @@ var useNotifications = function useNotifications() {
|
|
|
35527
35594
|
};
|
|
35528
35595
|
};
|
|
35529
35596
|
|
|
35530
|
-
function _createForOfIteratorHelper$
|
|
35531
|
-
function _unsupportedIterableToArray$
|
|
35532
|
-
function _arrayLikeToArray$
|
|
35597
|
+
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; } } }; }
|
|
35598
|
+
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; } }
|
|
35599
|
+
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; }
|
|
35533
35600
|
|
|
35534
35601
|
/**
|
|
35535
35602
|
* useScheduler Hook
|
|
@@ -35602,7 +35669,7 @@ var useScheduler = function useScheduler() {
|
|
|
35602
35669
|
if (pending && pending.length > 0) {
|
|
35603
35670
|
setPendingResults(pending);
|
|
35604
35671
|
// Call handlers for each pending result
|
|
35605
|
-
var _iterator = _createForOfIteratorHelper$
|
|
35672
|
+
var _iterator = _createForOfIteratorHelper$O(pending),
|
|
35606
35673
|
_step;
|
|
35607
35674
|
try {
|
|
35608
35675
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -36841,9 +36908,9 @@ var CustomHexColorPane = function CustomHexColorPane(_ref) {
|
|
|
36841
36908
|
});
|
|
36842
36909
|
};
|
|
36843
36910
|
|
|
36844
|
-
function _createForOfIteratorHelper$
|
|
36845
|
-
function _unsupportedIterableToArray$
|
|
36846
|
-
function _arrayLikeToArray$
|
|
36911
|
+
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; } } }; }
|
|
36912
|
+
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; } }
|
|
36913
|
+
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; }
|
|
36847
36914
|
function rgbDistSq(a, b) {
|
|
36848
36915
|
var dr = a.r - b.r;
|
|
36849
36916
|
var dg = a.g - b.g;
|
|
@@ -36861,13 +36928,13 @@ function nearestSwatch(hex, families) {
|
|
|
36861
36928
|
var target = DashReact.hexToRgb(hex);
|
|
36862
36929
|
if (!target) return null;
|
|
36863
36930
|
var best = null;
|
|
36864
|
-
var _iterator = _createForOfIteratorHelper$
|
|
36931
|
+
var _iterator = _createForOfIteratorHelper$N(families),
|
|
36865
36932
|
_step;
|
|
36866
36933
|
try {
|
|
36867
36934
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
36868
36935
|
var family = _step.value;
|
|
36869
36936
|
var grid = DashReact.getCuratedColorGrid(family) || [];
|
|
36870
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
36937
|
+
var _iterator2 = _createForOfIteratorHelper$N(grid),
|
|
36871
36938
|
_step2;
|
|
36872
36939
|
try {
|
|
36873
36940
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -43929,9 +43996,9 @@ var GrantManuallyModal = function GrantManuallyModal(_ref) {
|
|
|
43929
43996
|
});
|
|
43930
43997
|
};
|
|
43931
43998
|
|
|
43932
|
-
function _createForOfIteratorHelper$
|
|
43933
|
-
function _unsupportedIterableToArray$
|
|
43934
|
-
function _arrayLikeToArray$
|
|
43999
|
+
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; } } }; }
|
|
44000
|
+
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; } }
|
|
44001
|
+
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; }
|
|
43935
44002
|
/**
|
|
43936
44003
|
* groupRowsByPackage
|
|
43937
44004
|
*
|
|
@@ -43983,7 +44050,7 @@ function _hasGrant(granted) {
|
|
|
43983
44050
|
function groupRowsByPackage(rows) {
|
|
43984
44051
|
if (!Array.isArray(rows)) return [];
|
|
43985
44052
|
var byPackage = new Map();
|
|
43986
|
-
var _iterator = _createForOfIteratorHelper$
|
|
44053
|
+
var _iterator = _createForOfIteratorHelper$M(rows),
|
|
43987
44054
|
_step;
|
|
43988
44055
|
try {
|
|
43989
44056
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -44193,15 +44260,15 @@ var PrivacySecurityList = function PrivacySecurityList(_ref) {
|
|
|
44193
44260
|
* absence), false for paths (scanner can't see them)
|
|
44194
44261
|
* @returns {Set<string>} the granted items that are stale
|
|
44195
44262
|
*/
|
|
44196
|
-
function _createForOfIteratorHelper$
|
|
44197
|
-
function _unsupportedIterableToArray$
|
|
44198
|
-
function _arrayLikeToArray$
|
|
44263
|
+
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; } } }; }
|
|
44264
|
+
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; } }
|
|
44265
|
+
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; }
|
|
44199
44266
|
function computeStaleItems(declaredItems, grantedItems, validatesStale) {
|
|
44200
44267
|
var out = new Set();
|
|
44201
44268
|
if (!validatesStale) return out;
|
|
44202
44269
|
var declared = new Set(Array.isArray(declaredItems) ? declaredItems : []);
|
|
44203
44270
|
var granted = Array.isArray(grantedItems) ? grantedItems : [];
|
|
44204
|
-
var _iterator = _createForOfIteratorHelper$
|
|
44271
|
+
var _iterator = _createForOfIteratorHelper$L(granted),
|
|
44205
44272
|
_step;
|
|
44206
44273
|
try {
|
|
44207
44274
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -44798,9 +44865,9 @@ var WidgetPackageDetail = function WidgetPackageDetail(_ref) {
|
|
|
44798
44865
|
*/
|
|
44799
44866
|
function ownKeys$14(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; }
|
|
44800
44867
|
function _objectSpread$14(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$14(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$14(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
44801
|
-
function _createForOfIteratorHelper$
|
|
44802
|
-
function _unsupportedIterableToArray$
|
|
44803
|
-
function _arrayLikeToArray$
|
|
44868
|
+
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; } } }; }
|
|
44869
|
+
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; } }
|
|
44870
|
+
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; }
|
|
44804
44871
|
function applyToolToggle(grant, labels, tool, on) {
|
|
44805
44872
|
if (!grant || _typeof(grant) !== "object") return null;
|
|
44806
44873
|
if (!Array.isArray(labels) || labels.length === 0) return null;
|
|
@@ -44821,7 +44888,7 @@ function applyToolToggle(grant, labels, tool, on) {
|
|
|
44821
44888
|
}
|
|
44822
44889
|
|
|
44823
44890
|
// Apply the toggle to each target label.
|
|
44824
|
-
var _iterator = _createForOfIteratorHelper$
|
|
44891
|
+
var _iterator = _createForOfIteratorHelper$K(labels),
|
|
44825
44892
|
_step;
|
|
44826
44893
|
try {
|
|
44827
44894
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -44881,9 +44948,9 @@ function applyToolToggle(grant, labels, tool, on) {
|
|
|
44881
44948
|
*/
|
|
44882
44949
|
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; }
|
|
44883
44950
|
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; }
|
|
44884
|
-
function _createForOfIteratorHelper$
|
|
44885
|
-
function _unsupportedIterableToArray$
|
|
44886
|
-
function _arrayLikeToArray$
|
|
44951
|
+
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; } } }; }
|
|
44952
|
+
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; } }
|
|
44953
|
+
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; }
|
|
44887
44954
|
var VALID_KINDS$1 = new Set(["readPaths", "writePaths"]);
|
|
44888
44955
|
function applyPathRemoval(grant, labels, kind, path) {
|
|
44889
44956
|
if (!grant || _typeof(grant) !== "object") return null;
|
|
@@ -44902,7 +44969,7 @@ function applyPathRemoval(grant, labels, kind, path) {
|
|
|
44902
44969
|
};
|
|
44903
44970
|
}
|
|
44904
44971
|
if (VALID_KINDS$1.has(kind)) {
|
|
44905
|
-
var _iterator = _createForOfIteratorHelper$
|
|
44972
|
+
var _iterator = _createForOfIteratorHelper$J(labels),
|
|
44906
44973
|
_step;
|
|
44907
44974
|
try {
|
|
44908
44975
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -45010,9 +45077,9 @@ function applyDomainItemRemoval(grant, domain, kind, value) {
|
|
|
45010
45077
|
|
|
45011
45078
|
function ownKeys$11(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; }
|
|
45012
45079
|
function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$11(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$11(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
45013
|
-
function _createForOfIteratorHelper$
|
|
45014
|
-
function _unsupportedIterableToArray$
|
|
45015
|
-
function _arrayLikeToArray$
|
|
45080
|
+
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; } } }; }
|
|
45081
|
+
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; } }
|
|
45082
|
+
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; }
|
|
45016
45083
|
var PrivacySecuritySection = function PrivacySecuritySection() {
|
|
45017
45084
|
var _useContext = React.useContext(AppContext),
|
|
45018
45085
|
providers = _useContext.providers;
|
|
@@ -45183,7 +45250,7 @@ var PrivacySecuritySection = function PrivacySecuritySection() {
|
|
|
45183
45250
|
}
|
|
45184
45251
|
}
|
|
45185
45252
|
targets = labels.length > 0 ? labels : [serverName];
|
|
45186
|
-
_iterator = _createForOfIteratorHelper$
|
|
45253
|
+
_iterator = _createForOfIteratorHelper$I(targets);
|
|
45187
45254
|
_context4.prev = 1;
|
|
45188
45255
|
_iterator.s();
|
|
45189
45256
|
case 2:
|
|
@@ -45477,7 +45544,7 @@ var PrivacySecuritySection = function PrivacySecuritySection() {
|
|
|
45477
45544
|
return _context9.abrupt("return");
|
|
45478
45545
|
case 3:
|
|
45479
45546
|
next = currentGrant;
|
|
45480
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
45547
|
+
_iterator2 = _createForOfIteratorHelper$I(declaredTools);
|
|
45481
45548
|
try {
|
|
45482
45549
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
45483
45550
|
tool = _step2.value;
|
|
@@ -45517,7 +45584,7 @@ var PrivacySecuritySection = function PrivacySecuritySection() {
|
|
|
45517
45584
|
while (1) switch (_context0.prev = _context0.next) {
|
|
45518
45585
|
case 0:
|
|
45519
45586
|
_context0.prev = 0;
|
|
45520
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
45587
|
+
_iterator3 = _createForOfIteratorHelper$I(packageGroup.widgets);
|
|
45521
45588
|
_context0.prev = 1;
|
|
45522
45589
|
_iterator3.s();
|
|
45523
45590
|
case 2:
|
|
@@ -46716,9 +46783,9 @@ function parseCron(cron) {
|
|
|
46716
46783
|
};
|
|
46717
46784
|
}
|
|
46718
46785
|
|
|
46719
|
-
function _createForOfIteratorHelper$
|
|
46720
|
-
function _unsupportedIterableToArray$
|
|
46721
|
-
function _arrayLikeToArray$
|
|
46786
|
+
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; } } }; }
|
|
46787
|
+
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; } }
|
|
46788
|
+
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; }
|
|
46722
46789
|
/**
|
|
46723
46790
|
* teamUtils.js
|
|
46724
46791
|
*
|
|
@@ -46751,7 +46818,7 @@ function dashboardOptions(workspaces) {
|
|
|
46751
46818
|
return w && norm(w.id) !== null;
|
|
46752
46819
|
});
|
|
46753
46820
|
var totals = {};
|
|
46754
|
-
var _iterator = _createForOfIteratorHelper$
|
|
46821
|
+
var _iterator = _createForOfIteratorHelper$H(list),
|
|
46755
46822
|
_step;
|
|
46756
46823
|
try {
|
|
46757
46824
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -46798,7 +46865,7 @@ function groupBotsByTeam(bots, workspaces) {
|
|
|
46798
46865
|
label: "Unassigned",
|
|
46799
46866
|
bots: []
|
|
46800
46867
|
};
|
|
46801
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
46868
|
+
var _iterator2 = _createForOfIteratorHelper$H(list),
|
|
46802
46869
|
_step2;
|
|
46803
46870
|
try {
|
|
46804
46871
|
var _loop = function _loop() {
|
|
@@ -51458,9 +51525,9 @@ var CreateScoutStep = function CreateScoutStep(_ref) {
|
|
|
51458
51525
|
});
|
|
51459
51526
|
};
|
|
51460
51527
|
|
|
51461
|
-
function _createForOfIteratorHelper$
|
|
51462
|
-
function _unsupportedIterableToArray$
|
|
51463
|
-
function _arrayLikeToArray$
|
|
51528
|
+
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; } } }; }
|
|
51529
|
+
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; } }
|
|
51530
|
+
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; }
|
|
51464
51531
|
// A copy of electron/bots/teamPlan.js for the renderer (the Create screen's
|
|
51465
51532
|
// Plan step, phase 4). Keep the two the same — teamPlan.parity.test.js checks.
|
|
51466
51533
|
/**
|
|
@@ -51546,7 +51613,7 @@ function gridCells(grid) {
|
|
|
51546
51613
|
var problems = [];
|
|
51547
51614
|
var taken = new Map(); // "r.c" → widget
|
|
51548
51615
|
var seen = new Set();
|
|
51549
|
-
var _iterator = _createForOfIteratorHelper$
|
|
51616
|
+
var _iterator = _createForOfIteratorHelper$G(Array.isArray(grid.cells) ? grid.cells : []),
|
|
51550
51617
|
_step;
|
|
51551
51618
|
try {
|
|
51552
51619
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -51652,7 +51719,7 @@ function checkGrid(grid, at, names, errors, warnings) {
|
|
|
51652
51719
|
var _gridCells3 = gridCells(grid),
|
|
51653
51720
|
fits = _gridCells3.fits,
|
|
51654
51721
|
problems = _gridCells3.problems;
|
|
51655
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
51722
|
+
var _iterator5 = _createForOfIteratorHelper$G(problems),
|
|
51656
51723
|
_step5;
|
|
51657
51724
|
try {
|
|
51658
51725
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -51664,7 +51731,7 @@ function checkGrid(grid, at, names, errors, warnings) {
|
|
|
51664
51731
|
} finally {
|
|
51665
51732
|
_iterator5.f();
|
|
51666
51733
|
}
|
|
51667
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
51734
|
+
var _iterator6 = _createForOfIteratorHelper$G(fits),
|
|
51668
51735
|
_step6;
|
|
51669
51736
|
try {
|
|
51670
51737
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -51826,7 +51893,7 @@ function validatePlan(plan) {
|
|
|
51826
51893
|
errors.push("".concat(at, ".pages[").concat(j, "] needs a name and a list of widgets."));
|
|
51827
51894
|
return;
|
|
51828
51895
|
}
|
|
51829
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
51896
|
+
var _iterator7 = _createForOfIteratorHelper$G(pg.widgets),
|
|
51830
51897
|
_step7;
|
|
51831
51898
|
try {
|
|
51832
51899
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -51862,7 +51929,7 @@ function validatePlan(plan) {
|
|
|
51862
51929
|
// A provider the user doesn't have: the build waits on that step
|
|
51863
51930
|
// ("needs a provider", CRE-004 AC5) — a warning, not an error.
|
|
51864
51931
|
if (have.size && Array.isArray(p.providers)) {
|
|
51865
|
-
var _iterator8 = _createForOfIteratorHelper$
|
|
51932
|
+
var _iterator8 = _createForOfIteratorHelper$G(p.providers),
|
|
51866
51933
|
_step8;
|
|
51867
51934
|
try {
|
|
51868
51935
|
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
@@ -51887,7 +51954,7 @@ function validatePlan(plan) {
|
|
|
51887
51954
|
if (Array.isArray(pieces)) {
|
|
51888
51955
|
var byName = function byName(kind) {
|
|
51889
51956
|
var out = new Map();
|
|
51890
|
-
var _iterator9 = _createForOfIteratorHelper$
|
|
51957
|
+
var _iterator9 = _createForOfIteratorHelper$G(pieces),
|
|
51891
51958
|
_step9;
|
|
51892
51959
|
try {
|
|
51893
51960
|
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
@@ -51981,9 +52048,9 @@ function validatePlan(plan) {
|
|
|
51981
52048
|
};
|
|
51982
52049
|
}
|
|
51983
52050
|
|
|
51984
|
-
function _createForOfIteratorHelper$
|
|
51985
|
-
function _unsupportedIterableToArray$
|
|
51986
|
-
function _arrayLikeToArray$
|
|
52051
|
+
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; } } }; }
|
|
52052
|
+
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; } }
|
|
52053
|
+
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; }
|
|
51987
52054
|
var STEP_TOKENS = {
|
|
51988
52055
|
widget: {
|
|
51989
52056
|
"new": {
|
|
@@ -52058,7 +52125,7 @@ function estimatePlan(plan) {
|
|
|
52058
52125
|
builder: 0,
|
|
52059
52126
|
checker: 0
|
|
52060
52127
|
};
|
|
52061
|
-
var _iterator = _createForOfIteratorHelper$
|
|
52128
|
+
var _iterator = _createForOfIteratorHelper$F(pieces),
|
|
52062
52129
|
_step;
|
|
52063
52130
|
try {
|
|
52064
52131
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -52117,9 +52184,9 @@ function describeEstimate(est) {
|
|
|
52117
52184
|
|
|
52118
52185
|
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; }
|
|
52119
52186
|
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; }
|
|
52120
|
-
function _createForOfIteratorHelper$
|
|
52121
|
-
function _unsupportedIterableToArray$
|
|
52122
|
-
function _arrayLikeToArray$
|
|
52187
|
+
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; } } }; }
|
|
52188
|
+
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; } }
|
|
52189
|
+
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; }
|
|
52123
52190
|
|
|
52124
52191
|
// The Planner's names for provider types → the type ids Dash uses.
|
|
52125
52192
|
var ALIASES = {
|
|
@@ -52196,12 +52263,12 @@ function buildChecklist(plan) {
|
|
|
52196
52263
|
}
|
|
52197
52264
|
});
|
|
52198
52265
|
var seenType = new Set();
|
|
52199
|
-
var _iterator = _createForOfIteratorHelper$
|
|
52266
|
+
var _iterator = _createForOfIteratorHelper$E(pieces),
|
|
52200
52267
|
_step;
|
|
52201
52268
|
try {
|
|
52202
52269
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
52203
52270
|
var p = _step.value;
|
|
52204
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
52271
|
+
var _iterator3 = _createForOfIteratorHelper$E(p && p.providers || []),
|
|
52205
52272
|
_step3;
|
|
52206
52273
|
try {
|
|
52207
52274
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -52228,7 +52295,7 @@ function buildChecklist(plan) {
|
|
|
52228
52295
|
} finally {
|
|
52229
52296
|
_iterator.f();
|
|
52230
52297
|
}
|
|
52231
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
52298
|
+
var _iterator2 = _createForOfIteratorHelper$E(plan && plan.beforeBuilding || []),
|
|
52232
52299
|
_step2;
|
|
52233
52300
|
try {
|
|
52234
52301
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -52374,7 +52441,7 @@ function countsLine(plan) {
|
|
|
52374
52441
|
});
|
|
52375
52442
|
if (!group.length) return 1; // continue
|
|
52376
52443
|
var bySource = {};
|
|
52377
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
52444
|
+
var _iterator4 = _createForOfIteratorHelper$E(group),
|
|
52378
52445
|
_step4;
|
|
52379
52446
|
try {
|
|
52380
52447
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -52494,7 +52561,7 @@ function botDetails(piece) {
|
|
|
52494
52561
|
return s ? s.charAt(0).toUpperCase() + s.slice(1) : s;
|
|
52495
52562
|
};
|
|
52496
52563
|
var starts = [];
|
|
52497
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
52564
|
+
var _iterator6 = _createForOfIteratorHelper$E(Array.isArray(p.on) ? p.on : []),
|
|
52498
52565
|
_step6;
|
|
52499
52566
|
try {
|
|
52500
52567
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -52540,9 +52607,9 @@ function editNote(edits) {
|
|
|
52540
52607
|
|
|
52541
52608
|
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; }
|
|
52542
52609
|
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; }
|
|
52543
|
-
function _createForOfIteratorHelper$
|
|
52544
|
-
function _unsupportedIterableToArray$
|
|
52545
|
-
function _arrayLikeToArray$
|
|
52610
|
+
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; } } }; }
|
|
52611
|
+
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; } }
|
|
52612
|
+
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; }
|
|
52546
52613
|
function classOf(provider) {
|
|
52547
52614
|
return provider && provider.providerClass || "credential";
|
|
52548
52615
|
}
|
|
@@ -52664,7 +52731,7 @@ function providerUsage(name, _ref2) {
|
|
|
52664
52731
|
bots = _ref2$bots === void 0 ? [] : _ref2$bots,
|
|
52665
52732
|
bindingsFor = _ref2.bindingsFor;
|
|
52666
52733
|
var dashboards = [];
|
|
52667
|
-
var _iterator = _createForOfIteratorHelper$
|
|
52734
|
+
var _iterator = _createForOfIteratorHelper$D(workspaces || []),
|
|
52668
52735
|
_step;
|
|
52669
52736
|
try {
|
|
52670
52737
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -52747,9 +52814,9 @@ function groupProviders(providers) {
|
|
|
52747
52814
|
});
|
|
52748
52815
|
}
|
|
52749
52816
|
|
|
52750
|
-
function _createForOfIteratorHelper$
|
|
52751
|
-
function _unsupportedIterableToArray$
|
|
52752
|
-
function _arrayLikeToArray$
|
|
52817
|
+
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; } } }; }
|
|
52818
|
+
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; } }
|
|
52819
|
+
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; }
|
|
52753
52820
|
function ownKeys$V(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; }
|
|
52754
52821
|
function _objectSpread$V(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$V(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$V(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
52755
52822
|
var getWidgetRequirements$1 = function getWidgetRequirements(name) {
|
|
@@ -52827,7 +52894,7 @@ function useProviderStatus(_ref) {
|
|
|
52827
52894
|
};
|
|
52828
52895
|
var checkRunning = React.useCallback(function () {
|
|
52829
52896
|
if (!dashApi || typeof dashApi.mcpGetServerStatus !== "function") return;
|
|
52830
|
-
var _iterator = _createForOfIteratorHelper$
|
|
52897
|
+
var _iterator = _createForOfIteratorHelper$C(mcpNames ? mcpNames.split("\n") : []),
|
|
52831
52898
|
_step;
|
|
52832
52899
|
try {
|
|
52833
52900
|
var _loop = function _loop() {
|
|
@@ -53083,9 +53150,9 @@ var OverflowMenu = function OverflowMenu(_ref4) {
|
|
|
53083
53150
|
|
|
53084
53151
|
function ownKeys$U(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; }
|
|
53085
53152
|
function _objectSpread$U(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$U(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$U(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
53086
|
-
function _createForOfIteratorHelper$
|
|
53087
|
-
function _unsupportedIterableToArray$
|
|
53088
|
-
function _arrayLikeToArray$
|
|
53153
|
+
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; } } }; }
|
|
53154
|
+
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; } }
|
|
53155
|
+
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; }
|
|
53089
53156
|
/**
|
|
53090
53157
|
* applyBulkProviderBindings — pure utility for the dashboard config
|
|
53091
53158
|
* bulk-edit modal's Save path.
|
|
@@ -53143,7 +53210,7 @@ function applyToLayoutArray(layout, changesByWidgetId) {
|
|
|
53143
53210
|
var next = layout.map(function (item) {
|
|
53144
53211
|
if (!item) return item;
|
|
53145
53212
|
var matchedChanges = null;
|
|
53146
|
-
var _iterator = _createForOfIteratorHelper$
|
|
53213
|
+
var _iterator = _createForOfIteratorHelper$B(changesByWidgetId.entries()),
|
|
53147
53214
|
_step;
|
|
53148
53215
|
try {
|
|
53149
53216
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -53193,7 +53260,7 @@ function applyBulkProviderBindings(workspace, changes) {
|
|
|
53193
53260
|
// Group changes by widgetId so we can match each layout item once
|
|
53194
53261
|
// and apply every type-level change on it in a single pass.
|
|
53195
53262
|
var changesByWidgetId = new Map();
|
|
53196
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
53263
|
+
var _iterator2 = _createForOfIteratorHelper$B(changes),
|
|
53197
53264
|
_step2;
|
|
53198
53265
|
try {
|
|
53199
53266
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -53215,7 +53282,7 @@ function applyBulkProviderBindings(workspace, changes) {
|
|
|
53215
53282
|
// ── Layer 2: workspace.selectedProviders ─────────────────────────
|
|
53216
53283
|
var nextSelectedProviders = _objectSpread$U({}, workspace.selectedProviders || {});
|
|
53217
53284
|
var layer2Changed = false;
|
|
53218
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
53285
|
+
var _iterator3 = _createForOfIteratorHelper$B(changesByWidgetId.entries()),
|
|
53219
53286
|
_step3;
|
|
53220
53287
|
try {
|
|
53221
53288
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -53582,9 +53649,9 @@ function reconcileWorkspaceAfterLayoutChange(workspace) {
|
|
|
53582
53649
|
|
|
53583
53650
|
function ownKeys$S(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; }
|
|
53584
53651
|
function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$S(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$S(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
53585
|
-
function _createForOfIteratorHelper$
|
|
53586
|
-
function _unsupportedIterableToArray$
|
|
53587
|
-
function _arrayLikeToArray$
|
|
53652
|
+
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; } } }; }
|
|
53653
|
+
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; } }
|
|
53654
|
+
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; }
|
|
53588
53655
|
var explicitBinding = function explicitBinding(workspace, binding) {
|
|
53589
53656
|
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;
|
|
53590
53657
|
};
|
|
@@ -53624,7 +53691,7 @@ function providerUseModel(_ref) {
|
|
|
53624
53691
|
return !!(s && s.key === "needsSetup");
|
|
53625
53692
|
};
|
|
53626
53693
|
var dashboards = [];
|
|
53627
|
-
var _iterator = _createForOfIteratorHelper$
|
|
53694
|
+
var _iterator = _createForOfIteratorHelper$A(workspaces || []),
|
|
53628
53695
|
_step;
|
|
53629
53696
|
try {
|
|
53630
53697
|
var _loop = function _loop() {
|
|
@@ -53710,13 +53777,13 @@ function planProviderUse(model) {
|
|
|
53710
53777
|
};
|
|
53711
53778
|
var workspaces = [];
|
|
53712
53779
|
var count = 0;
|
|
53713
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
53780
|
+
var _iterator2 = _createForOfIteratorHelper$A(model.dashboards),
|
|
53714
53781
|
_step2;
|
|
53715
53782
|
try {
|
|
53716
53783
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
53717
53784
|
var d = _step2.value;
|
|
53718
53785
|
var changes = [];
|
|
53719
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
53786
|
+
var _iterator4 = _createForOfIteratorHelper$A(d.rows),
|
|
53720
53787
|
_step4;
|
|
53721
53788
|
try {
|
|
53722
53789
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -53747,7 +53814,7 @@ function planProviderUse(model) {
|
|
|
53747
53814
|
_iterator2.f();
|
|
53748
53815
|
}
|
|
53749
53816
|
var bots = [];
|
|
53750
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
53817
|
+
var _iterator3 = _createForOfIteratorHelper$A(model.bots),
|
|
53751
53818
|
_step3;
|
|
53752
53819
|
try {
|
|
53753
53820
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -53810,7 +53877,7 @@ function _applyProviderUse() {
|
|
|
53810
53877
|
bots: 0,
|
|
53811
53878
|
failed: []
|
|
53812
53879
|
};
|
|
53813
|
-
_iterator5 = _createForOfIteratorHelper$
|
|
53880
|
+
_iterator5 = _createForOfIteratorHelper$A(plan.workspaces);
|
|
53814
53881
|
_context3.prev = 1;
|
|
53815
53882
|
_loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
|
|
53816
53883
|
var _step5$value, workspaceId, changes, workspace, name, updated, _iterator7, _step7, c, _t;
|
|
@@ -53834,7 +53901,7 @@ function _applyProviderUse() {
|
|
|
53834
53901
|
return saveWorkspace(dashApi, appId, updated);
|
|
53835
53902
|
case 3:
|
|
53836
53903
|
result.dashboards += 1;
|
|
53837
|
-
_iterator7 = _createForOfIteratorHelper$
|
|
53904
|
+
_iterator7 = _createForOfIteratorHelper$A(changes);
|
|
53838
53905
|
try {
|
|
53839
53906
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
53840
53907
|
c = _step7.value;
|
|
@@ -53883,7 +53950,7 @@ function _applyProviderUse() {
|
|
|
53883
53950
|
_iterator5.f();
|
|
53884
53951
|
return _context3.finish(6);
|
|
53885
53952
|
case 7:
|
|
53886
|
-
_iterator6 = _createForOfIteratorHelper$
|
|
53953
|
+
_iterator6 = _createForOfIteratorHelper$A(plan.bots);
|
|
53887
53954
|
_context3.prev = 8;
|
|
53888
53955
|
_loop3 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop3() {
|
|
53889
53956
|
var _step6$value, botId, add, bot, name, current, mcpServers, _t2;
|
|
@@ -53962,21 +54029,21 @@ function _applyProviderUse() {
|
|
|
53962
54029
|
|
|
53963
54030
|
function ownKeys$R(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; }
|
|
53964
54031
|
function _objectSpread$R(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$R(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$R(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
53965
|
-
function _createForOfIteratorHelper$
|
|
53966
|
-
function _unsupportedIterableToArray$
|
|
53967
|
-
function _arrayLikeToArray$
|
|
54032
|
+
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; } } }; }
|
|
54033
|
+
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; } }
|
|
54034
|
+
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; }
|
|
53968
54035
|
var plural$5 = function plural(n, one) {
|
|
53969
54036
|
var many = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "".concat(one, "s");
|
|
53970
54037
|
return "".concat(n, " ").concat(n === 1 ? one : many);
|
|
53971
54038
|
};
|
|
53972
54039
|
var initialPicks = function initialPicks(model) {
|
|
53973
54040
|
var picks = {};
|
|
53974
|
-
var _iterator = _createForOfIteratorHelper$
|
|
54041
|
+
var _iterator = _createForOfIteratorHelper$z(model && model.dashboards || []),
|
|
53975
54042
|
_step;
|
|
53976
54043
|
try {
|
|
53977
54044
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
53978
54045
|
var d = _step.value;
|
|
53979
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
54046
|
+
var _iterator3 = _createForOfIteratorHelper$z(d.rows),
|
|
53980
54047
|
_step3;
|
|
53981
54048
|
try {
|
|
53982
54049
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -53994,7 +54061,7 @@ var initialPicks = function initialPicks(model) {
|
|
|
53994
54061
|
} finally {
|
|
53995
54062
|
_iterator.f();
|
|
53996
54063
|
}
|
|
53997
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
54064
|
+
var _iterator2 = _createForOfIteratorHelper$z(model && model.bots || []),
|
|
53998
54065
|
_step2;
|
|
53999
54066
|
try {
|
|
54000
54067
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -54058,12 +54125,12 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
|
|
|
54058
54125
|
}, [isOpen, model]);
|
|
54059
54126
|
var changes = React.useMemo(function () {
|
|
54060
54127
|
var n = 0;
|
|
54061
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
54128
|
+
var _iterator4 = _createForOfIteratorHelper$z(model && model.dashboards || []),
|
|
54062
54129
|
_step4;
|
|
54063
54130
|
try {
|
|
54064
54131
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
54065
54132
|
var d = _step4.value;
|
|
54066
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
54133
|
+
var _iterator6 = _createForOfIteratorHelper$z(d.rows),
|
|
54067
54134
|
_step6;
|
|
54068
54135
|
try {
|
|
54069
54136
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -54081,7 +54148,7 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
|
|
|
54081
54148
|
} finally {
|
|
54082
54149
|
_iterator4.f();
|
|
54083
54150
|
}
|
|
54084
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
54151
|
+
var _iterator5 = _createForOfIteratorHelper$z(model && model.bots || []),
|
|
54085
54152
|
_step5;
|
|
54086
54153
|
try {
|
|
54087
54154
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -54105,7 +54172,7 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
|
|
|
54105
54172
|
var tickAll = function tickAll(rows) {
|
|
54106
54173
|
return setPicks(function (p) {
|
|
54107
54174
|
var next = _objectSpread$R({}, p);
|
|
54108
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
54175
|
+
var _iterator7 = _createForOfIteratorHelper$z(rows),
|
|
54109
54176
|
_step7;
|
|
54110
54177
|
try {
|
|
54111
54178
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -55194,9 +55261,9 @@ var ProviderDetail = function ProviderDetail(_ref) {
|
|
|
55194
55261
|
|
|
55195
55262
|
function ownKeys$P(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; }
|
|
55196
55263
|
function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
55197
|
-
function _createForOfIteratorHelper$
|
|
55198
|
-
function _unsupportedIterableToArray$
|
|
55199
|
-
function _arrayLikeToArray$
|
|
55264
|
+
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; } } }; }
|
|
55265
|
+
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; } }
|
|
55266
|
+
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; }
|
|
55200
55267
|
function isValidWsUrl(url) {
|
|
55201
55268
|
if (!url) return false;
|
|
55202
55269
|
try {
|
|
@@ -55243,7 +55310,7 @@ function extractCredentialFields(url, headerRows) {
|
|
|
55243
55310
|
fields.add(match[1]);
|
|
55244
55311
|
}
|
|
55245
55312
|
}
|
|
55246
|
-
var _iterator = _createForOfIteratorHelper$
|
|
55313
|
+
var _iterator = _createForOfIteratorHelper$y(headerRows),
|
|
55247
55314
|
_step;
|
|
55248
55315
|
try {
|
|
55249
55316
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -55348,7 +55415,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
55348
55415
|
if (!url.trim()) errs.url = "WebSocket URL is required";else if (!isValidWsUrl(url)) errs.url = "URL must start with ws:// or wss://";
|
|
55349
55416
|
|
|
55350
55417
|
// Check required credential fields are filled
|
|
55351
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
55418
|
+
var _iterator2 = _createForOfIteratorHelper$y(credentialFields),
|
|
55352
55419
|
_step2;
|
|
55353
55420
|
try {
|
|
55354
55421
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -55371,7 +55438,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
55371
55438
|
|
|
55372
55439
|
// Build headers object from rows
|
|
55373
55440
|
var headers = {};
|
|
55374
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
55441
|
+
var _iterator3 = _createForOfIteratorHelper$y(headerRows),
|
|
55375
55442
|
_step3;
|
|
55376
55443
|
try {
|
|
55377
55444
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -55440,7 +55507,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
|
|
|
55440
55507
|
|
|
55441
55508
|
// Build config from current form state (same as handleSave)
|
|
55442
55509
|
headers = {};
|
|
55443
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
55510
|
+
_iterator4 = _createForOfIteratorHelper$y(headerRows);
|
|
55444
55511
|
try {
|
|
55445
55512
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
55446
55513
|
row = _step4.value;
|
|
@@ -56639,9 +56706,9 @@ var ProvidersSection = function ProvidersSection(_ref) {
|
|
|
56639
56706
|
});
|
|
56640
56707
|
};
|
|
56641
56708
|
|
|
56642
|
-
function _createForOfIteratorHelper$
|
|
56643
|
-
function _unsupportedIterableToArray$
|
|
56644
|
-
function _arrayLikeToArray$
|
|
56709
|
+
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; } } }; }
|
|
56710
|
+
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; } }
|
|
56711
|
+
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; }
|
|
56645
56712
|
function usePanel() {
|
|
56646
56713
|
var _ref = React.useContext(DashReact.ThemeContext) || {},
|
|
56647
56714
|
currentTheme = _ref.currentTheme;
|
|
@@ -56678,12 +56745,12 @@ function accessLines(permissions) {
|
|
|
56678
56745
|
*/
|
|
56679
56746
|
function listingAccessLines(pkg) {
|
|
56680
56747
|
var lines = [];
|
|
56681
|
-
var _iterator = _createForOfIteratorHelper$
|
|
56748
|
+
var _iterator = _createForOfIteratorHelper$x(pkg && pkg.widgets || []),
|
|
56682
56749
|
_step;
|
|
56683
56750
|
try {
|
|
56684
56751
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
56685
56752
|
var w = _step.value;
|
|
56686
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
56753
|
+
var _iterator3 = _createForOfIteratorHelper$x(accessLines(w && w.permissions)),
|
|
56687
56754
|
_step3;
|
|
56688
56755
|
try {
|
|
56689
56756
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -56707,7 +56774,7 @@ function listingAccessLines(pkg) {
|
|
|
56707
56774
|
}))).map(function (p) {
|
|
56708
56775
|
return p && p.type;
|
|
56709
56776
|
}).filter(Boolean)));
|
|
56710
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
56777
|
+
var _iterator2 = _createForOfIteratorHelper$x(types),
|
|
56711
56778
|
_step2;
|
|
56712
56779
|
try {
|
|
56713
56780
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -57048,9 +57115,9 @@ var SwapPicker = function SwapPicker(_ref5) {
|
|
|
57048
57115
|
|
|
57049
57116
|
function ownKeys$O(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; }
|
|
57050
57117
|
function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$O(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$O(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
57051
|
-
function _createForOfIteratorHelper$
|
|
57052
|
-
function _unsupportedIterableToArray$
|
|
57053
|
-
function _arrayLikeToArray$
|
|
57118
|
+
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; } } }; }
|
|
57119
|
+
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; } }
|
|
57120
|
+
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; }
|
|
57054
57121
|
var ROLE = {
|
|
57055
57122
|
builder: "Builder",
|
|
57056
57123
|
checker: "Checker",
|
|
@@ -57084,13 +57151,13 @@ var HEAD = {
|
|
|
57084
57151
|
/** The providers waiting steps need, once each: ["gmail"]. */
|
|
57085
57152
|
function waitingProviders(steps) {
|
|
57086
57153
|
var out = [];
|
|
57087
|
-
var _iterator = _createForOfIteratorHelper$
|
|
57154
|
+
var _iterator = _createForOfIteratorHelper$w(steps || []),
|
|
57088
57155
|
_step;
|
|
57089
57156
|
try {
|
|
57090
57157
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
57091
57158
|
var s = _step.value;
|
|
57092
57159
|
if (s.status !== "needs-provider") continue;
|
|
57093
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
57160
|
+
var _iterator2 = _createForOfIteratorHelper$w(s.waitingFor || []),
|
|
57094
57161
|
_step2;
|
|
57095
57162
|
try {
|
|
57096
57163
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -57667,7 +57734,7 @@ var RemoveSummary = function RemoveSummary(_ref8) {
|
|
|
57667
57734
|
var n = built.placed.length;
|
|
57668
57735
|
goes.push("".concat(n === 1 ? "The widget" : "The ".concat(n, " widgets"), " it put on ").concat(built.dashboard.name));
|
|
57669
57736
|
}
|
|
57670
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
57737
|
+
var _iterator3 = _createForOfIteratorHelper$w(built.bots || []),
|
|
57671
57738
|
_step3;
|
|
57672
57739
|
try {
|
|
57673
57740
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -57682,7 +57749,7 @@ var RemoveSummary = function RemoveSummary(_ref8) {
|
|
|
57682
57749
|
if (built.dashboard && !targeted) {
|
|
57683
57750
|
goes.push("The dashboard's team lead, if it has one");
|
|
57684
57751
|
}
|
|
57685
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
57752
|
+
var _iterator4 = _createForOfIteratorHelper$w(built.widgets || []),
|
|
57686
57753
|
_step4;
|
|
57687
57754
|
try {
|
|
57688
57755
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -59729,9 +59796,9 @@ var RecentList = function RecentList(_ref2) {
|
|
|
59729
59796
|
|
|
59730
59797
|
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; }
|
|
59731
59798
|
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; }
|
|
59732
|
-
function _createForOfIteratorHelper$
|
|
59733
|
-
function _unsupportedIterableToArray$
|
|
59734
|
-
function _arrayLikeToArray$
|
|
59799
|
+
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; } } }; }
|
|
59800
|
+
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; } }
|
|
59801
|
+
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; }
|
|
59735
59802
|
var STARTER_TAG = "starter";
|
|
59736
59803
|
var titleCase$1 = function titleCase(s) {
|
|
59737
59804
|
return String(s || "").split(/[-_\s]+/).filter(Boolean).map(function (w) {
|
|
@@ -59750,7 +59817,7 @@ function starterPackages(index) {
|
|
|
59750
59817
|
/** "Productivity", … — the categories present, in order of first use. */
|
|
59751
59818
|
function starterCategories(starters) {
|
|
59752
59819
|
var out = [];
|
|
59753
|
-
var _iterator = _createForOfIteratorHelper$
|
|
59820
|
+
var _iterator = _createForOfIteratorHelper$v(starters || []),
|
|
59754
59821
|
_step;
|
|
59755
59822
|
try {
|
|
59756
59823
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -59875,7 +59942,7 @@ function starterToPlan(config) {
|
|
|
59875
59942
|
};
|
|
59876
59943
|
var widgetPieces = [];
|
|
59877
59944
|
var nameOfWidget = new Map();
|
|
59878
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
59945
|
+
var _iterator2 = _createForOfIteratorHelper$v(widgetItems(ws)),
|
|
59879
59946
|
_step2;
|
|
59880
59947
|
try {
|
|
59881
59948
|
var _loop = function _loop() {
|
|
@@ -59965,9 +60032,9 @@ function remixRequest(card, plan) {
|
|
|
59965
60032
|
|
|
59966
60033
|
function ownKeys$H(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; }
|
|
59967
60034
|
function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
59968
|
-
function _createForOfIteratorHelper$
|
|
59969
|
-
function _unsupportedIterableToArray$
|
|
59970
|
-
function _arrayLikeToArray$
|
|
60035
|
+
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; } } }; }
|
|
60036
|
+
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; } }
|
|
60037
|
+
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; }
|
|
59971
60038
|
var titleCase = function titleCase(s) {
|
|
59972
60039
|
return String(s || "").replace(/(^|[-_\s])(\w)/g, function (_m, sep, c) {
|
|
59973
60040
|
return (sep ? " " : "") + c.toUpperCase();
|
|
@@ -60049,7 +60116,7 @@ var StarterCards = function StarterCards(_ref2) {
|
|
|
60049
60116
|
var alive = true;
|
|
60050
60117
|
var api = window.mainApi && window.mainApi.dashboardConfig;
|
|
60051
60118
|
if (!api || !api.getPackageConfig) return undefined;
|
|
60052
|
-
var _iterator = _createForOfIteratorHelper$
|
|
60119
|
+
var _iterator = _createForOfIteratorHelper$u(starters),
|
|
60053
60120
|
_step;
|
|
60054
60121
|
try {
|
|
60055
60122
|
var _loop = function _loop() {
|
|
@@ -60151,9 +60218,9 @@ var StarterCards = function StarterCards(_ref2) {
|
|
|
60151
60218
|
});
|
|
60152
60219
|
};
|
|
60153
60220
|
|
|
60154
|
-
function _createForOfIteratorHelper$
|
|
60155
|
-
function _unsupportedIterableToArray$
|
|
60156
|
-
function _arrayLikeToArray$
|
|
60221
|
+
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; } } }; }
|
|
60222
|
+
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; } }
|
|
60223
|
+
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; }
|
|
60157
60224
|
/**
|
|
60158
60225
|
* leadMessages.js — pure helpers for messaging a team lead directly from the
|
|
60159
60226
|
* AI Assistant's "To:" picker (bot-teams TEAM-013).
|
|
@@ -60199,7 +60266,7 @@ function buildLlmHistory(messages) {
|
|
|
60199
60266
|
content: content
|
|
60200
60267
|
});
|
|
60201
60268
|
};
|
|
60202
|
-
var _iterator = _createForOfIteratorHelper$
|
|
60269
|
+
var _iterator = _createForOfIteratorHelper$t(messages || []),
|
|
60203
60270
|
_step;
|
|
60204
60271
|
try {
|
|
60205
60272
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -61842,9 +61909,9 @@ function _pickType() {
|
|
|
61842
61909
|
return _pickType.apply(this, arguments);
|
|
61843
61910
|
}
|
|
61844
61911
|
|
|
61845
|
-
function _createForOfIteratorHelper$
|
|
61846
|
-
function _unsupportedIterableToArray$
|
|
61847
|
-
function _arrayLikeToArray$
|
|
61912
|
+
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; } } }; }
|
|
61913
|
+
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; } }
|
|
61914
|
+
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; }
|
|
61848
61915
|
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.";
|
|
61849
61916
|
var HEX = /^#[0-9a-f]{6}$/i;
|
|
61850
61917
|
var CHANNELS = ["primary", "secondary", "tertiary", "neutral"];
|
|
@@ -61854,7 +61921,7 @@ function parseThemeAnswer(text) {
|
|
|
61854
61921
|
var j = firstJson(text);
|
|
61855
61922
|
if (!j) return null;
|
|
61856
61923
|
var colors = {};
|
|
61857
|
-
var _iterator = _createForOfIteratorHelper$
|
|
61924
|
+
var _iterator = _createForOfIteratorHelper$s(CHANNELS),
|
|
61858
61925
|
_step;
|
|
61859
61926
|
try {
|
|
61860
61927
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -64679,9 +64746,9 @@ function matchesSource(entry, filter) {
|
|
|
64679
64746
|
return widgetSource(entry, username) === filter;
|
|
64680
64747
|
}
|
|
64681
64748
|
|
|
64682
|
-
function _createForOfIteratorHelper$
|
|
64683
|
-
function _unsupportedIterableToArray$
|
|
64684
|
-
function _arrayLikeToArray$
|
|
64749
|
+
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; } } }; }
|
|
64750
|
+
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; } }
|
|
64751
|
+
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; }
|
|
64685
64752
|
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; }
|
|
64686
64753
|
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; }
|
|
64687
64754
|
var DEFAULT_CONFIG_NAME$1 = "My Workspace";
|
|
@@ -65292,7 +65359,7 @@ var WidgetSidebar = function WidgetSidebar(_ref4) {
|
|
|
65292
65359
|
return _context2.abrupt("return");
|
|
65293
65360
|
case 2:
|
|
65294
65361
|
names = new Set();
|
|
65295
|
-
_iterator = _createForOfIteratorHelper$
|
|
65362
|
+
_iterator = _createForOfIteratorHelper$r(widgets);
|
|
65296
65363
|
try {
|
|
65297
65364
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
65298
65365
|
w = _step.value;
|
|
@@ -66540,9 +66607,9 @@ var useMissingWidgets = function useMissingWidgets(workspace) {
|
|
|
66540
66607
|
|
|
66541
66608
|
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; }
|
|
66542
66609
|
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; }
|
|
66543
|
-
function _createForOfIteratorHelper$
|
|
66544
|
-
function _unsupportedIterableToArray$
|
|
66545
|
-
function _arrayLikeToArray$
|
|
66610
|
+
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; } } }; }
|
|
66611
|
+
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; } }
|
|
66612
|
+
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; }
|
|
66546
66613
|
var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
66547
66614
|
var _ref$missingComponent = _ref.missingComponents,
|
|
66548
66615
|
missingComponents = _ref$missingComponent === void 0 ? [] : _ref$missingComponent,
|
|
@@ -66593,7 +66660,7 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
|
|
|
66593
66660
|
case 0:
|
|
66594
66661
|
results = [];
|
|
66595
66662
|
seen = new Set();
|
|
66596
|
-
_iterator = _createForOfIteratorHelper$
|
|
66663
|
+
_iterator = _createForOfIteratorHelper$q(missingComponents);
|
|
66597
66664
|
_context2.prev = 1;
|
|
66598
66665
|
_loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
|
|
66599
66666
|
var componentKey, _getWidgetSearchQuery, packageName, widgetName, pkg, result;
|
|
@@ -66982,9 +67049,9 @@ function renderFormItem(displayName, key, instructions, required, value, _onChan
|
|
|
66982
67049
|
|
|
66983
67050
|
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; }
|
|
66984
67051
|
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; }
|
|
66985
|
-
function _createForOfIteratorHelper$
|
|
66986
|
-
function _unsupportedIterableToArray$
|
|
66987
|
-
function _arrayLikeToArray$
|
|
67052
|
+
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; } } }; }
|
|
67053
|
+
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; } }
|
|
67054
|
+
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; }
|
|
66988
67055
|
var ALL_WIDGETS_ID = "__ALL__";
|
|
66989
67056
|
|
|
66990
67057
|
/**
|
|
@@ -67072,7 +67139,7 @@ var WidgetsTab = function WidgetsTab(_ref) {
|
|
|
67072
67139
|
// widgets from a single input.
|
|
67073
67140
|
var sharedFields = React.useMemo(function () {
|
|
67074
67141
|
var byKey = new Map();
|
|
67075
|
-
var _iterator = _createForOfIteratorHelper$
|
|
67142
|
+
var _iterator = _createForOfIteratorHelper$p(widgets),
|
|
67076
67143
|
_step;
|
|
67077
67144
|
try {
|
|
67078
67145
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -67113,7 +67180,7 @@ var WidgetsTab = function WidgetsTab(_ref) {
|
|
|
67113
67180
|
}, [sharedFields.length, widgets.length]);
|
|
67114
67181
|
var groupedWidgets = React.useMemo(function () {
|
|
67115
67182
|
var groups = new Map();
|
|
67116
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
67183
|
+
var _iterator2 = _createForOfIteratorHelper$p(widgets),
|
|
67117
67184
|
_step2;
|
|
67118
67185
|
try {
|
|
67119
67186
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -67337,9 +67404,9 @@ function SharedFieldRow(_ref6) {
|
|
|
67337
67404
|
});
|
|
67338
67405
|
}
|
|
67339
67406
|
|
|
67340
|
-
function _createForOfIteratorHelper$
|
|
67341
|
-
function _unsupportedIterableToArray$
|
|
67342
|
-
function _arrayLikeToArray$
|
|
67407
|
+
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; } } }; }
|
|
67408
|
+
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; } }
|
|
67409
|
+
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; }
|
|
67343
67410
|
var PermissionsTab = function PermissionsTab(_ref) {
|
|
67344
67411
|
var workspace = _ref.workspace;
|
|
67345
67412
|
var _React$useContext = React.useContext(AppContext),
|
|
@@ -67566,7 +67633,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
67566
67633
|
return _context4.abrupt("return");
|
|
67567
67634
|
case 3:
|
|
67568
67635
|
next = currentGrant;
|
|
67569
|
-
_iterator = _createForOfIteratorHelper$
|
|
67636
|
+
_iterator = _createForOfIteratorHelper$o(declaredTools);
|
|
67570
67637
|
try {
|
|
67571
67638
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
67572
67639
|
tool = _step.value;
|
|
@@ -67726,7 +67793,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
67726
67793
|
}
|
|
67727
67794
|
}
|
|
67728
67795
|
targets = labels.length > 0 ? labels : [serverName];
|
|
67729
|
-
_iterator2 = _createForOfIteratorHelper$
|
|
67796
|
+
_iterator2 = _createForOfIteratorHelper$o(targets);
|
|
67730
67797
|
_context8.prev = 1;
|
|
67731
67798
|
_iterator2.s();
|
|
67732
67799
|
case 2:
|
|
@@ -67782,7 +67849,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
67782
67849
|
case 0:
|
|
67783
67850
|
setBusy(true);
|
|
67784
67851
|
_context9.prev = 1;
|
|
67785
|
-
_iterator3 = _createForOfIteratorHelper$
|
|
67852
|
+
_iterator3 = _createForOfIteratorHelper$o(filteredRows);
|
|
67786
67853
|
_context9.prev = 2;
|
|
67787
67854
|
_iterator3.s();
|
|
67788
67855
|
case 3:
|
|
@@ -67841,7 +67908,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
|
|
|
67841
67908
|
case 0:
|
|
67842
67909
|
setBusy(true);
|
|
67843
67910
|
_context0.prev = 1;
|
|
67844
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
67911
|
+
_iterator4 = _createForOfIteratorHelper$o(filteredRows);
|
|
67845
67912
|
_context0.prev = 2;
|
|
67846
67913
|
_iterator4.s();
|
|
67847
67914
|
case 3:
|
|
@@ -68436,9 +68503,9 @@ var BotsTab = function BotsTab(_ref2) {
|
|
|
68436
68503
|
});
|
|
68437
68504
|
};
|
|
68438
68505
|
|
|
68439
|
-
function _createForOfIteratorHelper$
|
|
68440
|
-
function _unsupportedIterableToArray$
|
|
68441
|
-
function _arrayLikeToArray$
|
|
68506
|
+
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; } } }; }
|
|
68507
|
+
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; } }
|
|
68508
|
+
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; }
|
|
68442
68509
|
function ownKeys$u(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; }
|
|
68443
68510
|
function _objectSpread$u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
68444
68511
|
var ConfigTab = function ConfigTab(_ref) {
|
|
@@ -68597,7 +68664,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
68597
68664
|
};
|
|
68598
68665
|
if (!appProviders) return byType;
|
|
68599
68666
|
if (Array.isArray(appProviders)) {
|
|
68600
|
-
var _iterator = _createForOfIteratorHelper$
|
|
68667
|
+
var _iterator = _createForOfIteratorHelper$n(appProviders),
|
|
68601
68668
|
_step;
|
|
68602
68669
|
try {
|
|
68603
68670
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -68663,7 +68730,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
68663
68730
|
});
|
|
68664
68731
|
}
|
|
68665
68732
|
if (Array.isArray(workspace === null || workspace === void 0 ? void 0 : workspace.pages)) {
|
|
68666
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
68733
|
+
var _iterator2 = _createForOfIteratorHelper$n(workspace.pages),
|
|
68667
68734
|
_step2;
|
|
68668
68735
|
try {
|
|
68669
68736
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -68690,7 +68757,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
68690
68757
|
var visitedByLocation = new WeakSet();
|
|
68691
68758
|
var _collect = function collect(items, location) {
|
|
68692
68759
|
if (!Array.isArray(items)) return;
|
|
68693
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
68760
|
+
var _iterator3 = _createForOfIteratorHelper$n(items),
|
|
68694
68761
|
_step3;
|
|
68695
68762
|
try {
|
|
68696
68763
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -68791,7 +68858,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
68791
68858
|
}
|
|
68792
68859
|
if (stagedListeners.adds.length > 0) {
|
|
68793
68860
|
// Append; avoid duplicates against current state.
|
|
68794
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
68861
|
+
var _iterator4 = _createForOfIteratorHelper$n(stagedListeners.adds),
|
|
68795
68862
|
_step4;
|
|
68796
68863
|
try {
|
|
68797
68864
|
var _loop = function _loop() {
|
|
@@ -68815,7 +68882,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
68815
68882
|
}
|
|
68816
68883
|
if (orphans.length === 0) return next;
|
|
68817
68884
|
var orphanIndex = new Map();
|
|
68818
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
68885
|
+
var _iterator5 = _createForOfIteratorHelper$n(orphans),
|
|
68819
68886
|
_step5;
|
|
68820
68887
|
try {
|
|
68821
68888
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -68857,7 +68924,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
68857
68924
|
function stagePrefFieldForAll(targetWidgets, key, value) {
|
|
68858
68925
|
setStagedPrefs(function (prev) {
|
|
68859
68926
|
var next = _objectSpread$u({}, prev);
|
|
68860
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
68927
|
+
var _iterator6 = _createForOfIteratorHelper$n(targetWidgets),
|
|
68861
68928
|
_step6;
|
|
68862
68929
|
try {
|
|
68863
68930
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -68902,7 +68969,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
|
|
|
68902
68969
|
});
|
|
68903
68970
|
setStaged(function (prev) {
|
|
68904
68971
|
var next = _objectSpread$u({}, prev);
|
|
68905
|
-
var _iterator7 = _createForOfIteratorHelper$
|
|
68972
|
+
var _iterator7 = _createForOfIteratorHelper$n(affected),
|
|
68906
68973
|
_step7;
|
|
68907
68974
|
try {
|
|
68908
68975
|
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
|
@@ -69751,7 +69818,7 @@ function ListenersTab(_ref1) {
|
|
|
69751
69818
|
// Receiver lookup (by composite key) for label resolution in chips.
|
|
69752
69819
|
var receiverByKey = React.useMemo(function () {
|
|
69753
69820
|
var m = new Map();
|
|
69754
|
-
var _iterator8 = _createForOfIteratorHelper$
|
|
69821
|
+
var _iterator8 = _createForOfIteratorHelper$n(receivers),
|
|
69755
69822
|
_step8;
|
|
69756
69823
|
try {
|
|
69757
69824
|
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
|
@@ -69849,7 +69916,7 @@ function HandlersColumn(_ref11) {
|
|
|
69849
69916
|
onSelectHandler = _ref11.onSelectHandler;
|
|
69850
69917
|
var countsByHandler = React.useMemo(function () {
|
|
69851
69918
|
var m = new Map();
|
|
69852
|
-
var _iterator9 = _createForOfIteratorHelper$
|
|
69919
|
+
var _iterator9 = _createForOfIteratorHelper$n(myWiring),
|
|
69853
69920
|
_step9;
|
|
69854
69921
|
try {
|
|
69855
69922
|
for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
|
|
@@ -69926,7 +69993,7 @@ function EventsColumn(_ref12) {
|
|
|
69926
69993
|
var wiredHere = React.useMemo(function () {
|
|
69927
69994
|
var seen = new Set();
|
|
69928
69995
|
var out = [];
|
|
69929
|
-
var _iterator0 = _createForOfIteratorHelper$
|
|
69996
|
+
var _iterator0 = _createForOfIteratorHelper$n(myWiring),
|
|
69930
69997
|
_step0;
|
|
69931
69998
|
try {
|
|
69932
69999
|
for (_iterator0.s(); !(_step0 = _iterator0.n()).done;) {
|
|
@@ -70620,9 +70687,9 @@ var BotChat = function BotChat(_ref) {
|
|
|
70620
70687
|
});
|
|
70621
70688
|
};
|
|
70622
70689
|
|
|
70623
|
-
function _createForOfIteratorHelper$
|
|
70624
|
-
function _unsupportedIterableToArray$
|
|
70625
|
-
function _arrayLikeToArray$
|
|
70690
|
+
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; } } }; }
|
|
70691
|
+
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; } }
|
|
70692
|
+
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; }
|
|
70626
70693
|
/**
|
|
70627
70694
|
* botSummary — what the Bots page shows about a bot (app-navigation PRD
|
|
70628
70695
|
* NAV-006): its widget-style name, avatar colour, providers + tools, each
|
|
@@ -70656,7 +70723,7 @@ function avatarColor(bot) {
|
|
|
70656
70723
|
/** Each bot's newest run, from `listRecentRuns` (newest first). */
|
|
70657
70724
|
function lastRunsByBot(recent) {
|
|
70658
70725
|
var out = {};
|
|
70659
|
-
var _iterator = _createForOfIteratorHelper$
|
|
70726
|
+
var _iterator = _createForOfIteratorHelper$m(recent || []),
|
|
70660
70727
|
_step;
|
|
70661
70728
|
try {
|
|
70662
70729
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -70707,9 +70774,9 @@ var BotAvatar = function BotAvatar(_ref) {
|
|
|
70707
70774
|
|
|
70708
70775
|
function ownKeys$s(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; }
|
|
70709
70776
|
function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
70710
|
-
function _createForOfIteratorHelper$
|
|
70711
|
-
function _unsupportedIterableToArray$
|
|
70712
|
-
function _arrayLikeToArray$
|
|
70777
|
+
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; } } }; }
|
|
70778
|
+
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; } }
|
|
70779
|
+
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; }
|
|
70713
70780
|
var BOT_EVENT_RE = /^bot:(.+)\[([^\]]+)\]\.(.+)$/;
|
|
70714
70781
|
var slugify = function slugify(name) {
|
|
70715
70782
|
return String(name || "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "bot";
|
|
@@ -70767,13 +70834,13 @@ function diagramEdges() {
|
|
|
70767
70834
|
}));
|
|
70768
70835
|
if (lead) ids["delete"](lead.id);
|
|
70769
70836
|
var edges = [];
|
|
70770
|
-
var _iterator = _createForOfIteratorHelper$
|
|
70837
|
+
var _iterator = _createForOfIteratorHelper$l(members || []),
|
|
70771
70838
|
_step;
|
|
70772
70839
|
try {
|
|
70773
70840
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
70774
70841
|
var to = _step.value;
|
|
70775
70842
|
if (!to || !ids.has(to.id)) continue;
|
|
70776
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
70843
|
+
var _iterator2 = _createForOfIteratorHelper$l(botSubs(to)),
|
|
70777
70844
|
_step2;
|
|
70778
70845
|
try {
|
|
70779
70846
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -70835,12 +70902,12 @@ function runsAfter(bot) {
|
|
|
70835
70902
|
function thenTriggers(botId) {
|
|
70836
70903
|
var members = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
70837
70904
|
var out = [];
|
|
70838
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
70905
|
+
var _iterator3 = _createForOfIteratorHelper$l(members || []),
|
|
70839
70906
|
_step3;
|
|
70840
70907
|
try {
|
|
70841
70908
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
70842
70909
|
var b = _step3.value;
|
|
70843
|
-
var _iterator4 = _createForOfIteratorHelper$
|
|
70910
|
+
var _iterator4 = _createForOfIteratorHelper$l(botSubs(b)),
|
|
70844
70911
|
_step4;
|
|
70845
70912
|
try {
|
|
70846
70913
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
@@ -70927,7 +70994,7 @@ function diagramLayout(_ref2) {
|
|
|
70927
70994
|
function loopEdges() {
|
|
70928
70995
|
var edges = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
70929
70996
|
var next = new Map();
|
|
70930
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
70997
|
+
var _iterator5 = _createForOfIteratorHelper$l(edges),
|
|
70931
70998
|
_step5;
|
|
70932
70999
|
try {
|
|
70933
71000
|
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
|
@@ -70948,7 +71015,7 @@ function loopEdges() {
|
|
|
70948
71015
|
if (id === goal) return true;
|
|
70949
71016
|
if (seen.has(id)) continue;
|
|
70950
71017
|
seen.add(id);
|
|
70951
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
71018
|
+
var _iterator6 = _createForOfIteratorHelper$l(next.get(id) || []),
|
|
70952
71019
|
_step6;
|
|
70953
71020
|
try {
|
|
70954
71021
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -71227,9 +71294,9 @@ var TriggerPopover = function TriggerPopover(_ref) {
|
|
|
71227
71294
|
});
|
|
71228
71295
|
};
|
|
71229
71296
|
|
|
71230
|
-
function _createForOfIteratorHelper$
|
|
71231
|
-
function _unsupportedIterableToArray$
|
|
71232
|
-
function _arrayLikeToArray$
|
|
71297
|
+
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; } } }; }
|
|
71298
|
+
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; } }
|
|
71299
|
+
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; }
|
|
71233
71300
|
function ownKeys$r(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; }
|
|
71234
71301
|
function _objectSpread$r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
71235
71302
|
var CARD_H = 80;
|
|
@@ -71399,7 +71466,7 @@ var TeamChart = function TeamChart(_ref) {
|
|
|
71399
71466
|
return pos[b.id].x + layout.cardW / 2;
|
|
71400
71467
|
});
|
|
71401
71468
|
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]))));
|
|
71402
|
-
var _iterator = _createForOfIteratorHelper$
|
|
71469
|
+
var _iterator = _createForOfIteratorHelper$k(firstRow),
|
|
71403
71470
|
_step;
|
|
71404
71471
|
try {
|
|
71405
71472
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -75192,9 +75259,9 @@ var NewDashboardChooser = function NewDashboardChooser(_ref2) {
|
|
|
75192
75259
|
|
|
75193
75260
|
function ownKeys$m(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; }
|
|
75194
75261
|
function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$m(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$m(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
75195
|
-
function _createForOfIteratorHelper$
|
|
75196
|
-
function _unsupportedIterableToArray$
|
|
75197
|
-
function _arrayLikeToArray$
|
|
75262
|
+
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; } } }; }
|
|
75263
|
+
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; } }
|
|
75264
|
+
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; }
|
|
75198
75265
|
var DASHBOARD_TAGS = ["productivity", "monitoring", "analytics", "communication", "developer", "sales", "marketing", "finance", "project-management", "social", "news", "utilities"];
|
|
75199
75266
|
var BUMP_OPTIONS$1 = [{
|
|
75200
75267
|
value: "patch",
|
|
@@ -75268,7 +75335,7 @@ function collectComponentConfigs() {
|
|
|
75268
75335
|
// fixed "reference" entry.
|
|
75269
75336
|
function seedSelections(plan, dashboardVisibility) {
|
|
75270
75337
|
var selections = {};
|
|
75271
|
-
var _iterator = _createForOfIteratorHelper$
|
|
75338
|
+
var _iterator = _createForOfIteratorHelper$j(plan.widgets || []),
|
|
75272
75339
|
_step;
|
|
75273
75340
|
try {
|
|
75274
75341
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -75662,7 +75729,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref2) {
|
|
|
75662
75729
|
React.useEffect(function () {
|
|
75663
75730
|
if (!isOpen || step !== 5 || !plan || defaultsLoading) return;
|
|
75664
75731
|
var packagesToScan = [];
|
|
75665
|
-
var _iterator2 = _createForOfIteratorHelper$
|
|
75732
|
+
var _iterator2 = _createForOfIteratorHelper$j(plan.widgets || []),
|
|
75666
75733
|
_step2;
|
|
75667
75734
|
try {
|
|
75668
75735
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -75701,7 +75768,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref2) {
|
|
|
75701
75768
|
})).then(function (results) {
|
|
75702
75769
|
setDefaultsByPackage(function (prev) {
|
|
75703
75770
|
var next = _objectSpread$m({}, prev);
|
|
75704
|
-
var _iterator3 = _createForOfIteratorHelper$
|
|
75771
|
+
var _iterator3 = _createForOfIteratorHelper$j(results),
|
|
75705
75772
|
_step3;
|
|
75706
75773
|
try {
|
|
75707
75774
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -75794,7 +75861,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref2) {
|
|
|
75794
75861
|
break;
|
|
75795
75862
|
}
|
|
75796
75863
|
seenPackages = new Set();
|
|
75797
|
-
_iterator4 = _createForOfIteratorHelper$
|
|
75864
|
+
_iterator4 = _createForOfIteratorHelper$j(plan.widgets || []);
|
|
75798
75865
|
_context2.prev = 4;
|
|
75799
75866
|
_iterator4.s();
|
|
75800
75867
|
case 5:
|
|
@@ -76723,7 +76790,7 @@ function DependencyTable(_ref5) {
|
|
|
76723
76790
|
// row. Each row shows the list of component widgets that live inside it
|
|
76724
76791
|
// so the user knows what's getting published.
|
|
76725
76792
|
var byKey = new Map();
|
|
76726
|
-
var _iterator5 = _createForOfIteratorHelper$
|
|
76793
|
+
var _iterator5 = _createForOfIteratorHelper$j(plan.widgets || []),
|
|
76727
76794
|
_step6;
|
|
76728
76795
|
try {
|
|
76729
76796
|
for (_iterator5.s(); !(_step6 = _iterator5.n()).done;) {
|
|
@@ -76894,7 +76961,7 @@ function DefaultsReviewList(_ref7) {
|
|
|
76894
76961
|
// stays aligned with Dependencies — no surprises about WHICH
|
|
76895
76962
|
// package's defaults you're editing.
|
|
76896
76963
|
var rows = [];
|
|
76897
|
-
var _iterator6 = _createForOfIteratorHelper$
|
|
76964
|
+
var _iterator6 = _createForOfIteratorHelper$j((plan === null || plan === void 0 ? void 0 : plan.widgets) || []),
|
|
76898
76965
|
_step7;
|
|
76899
76966
|
try {
|
|
76900
76967
|
for (_iterator6.s(); !(_step7 = _iterator6.n()).done;) {
|
|
@@ -77103,9 +77170,9 @@ function dashboardSummary(workspace) {
|
|
|
77103
77170
|
};
|
|
77104
77171
|
}
|
|
77105
77172
|
|
|
77106
|
-
function _createForOfIteratorHelper$
|
|
77107
|
-
function _unsupportedIterableToArray$
|
|
77108
|
-
function _arrayLikeToArray$
|
|
77173
|
+
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; } } }; }
|
|
77174
|
+
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; } }
|
|
77175
|
+
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; }
|
|
77109
77176
|
|
|
77110
77177
|
/**
|
|
77111
77178
|
* useApprovalsByDashboard — how many bot approvals are waiting on each
|
|
@@ -77148,7 +77215,7 @@ function useApprovalsByDashboard() {
|
|
|
77148
77215
|
return [bot.id, bot.workspaceId];
|
|
77149
77216
|
}));
|
|
77150
77217
|
next = {};
|
|
77151
|
-
_iterator = _createForOfIteratorHelper$
|
|
77218
|
+
_iterator = _createForOfIteratorHelper$i(approvals || []);
|
|
77152
77219
|
_context.prev = 3;
|
|
77153
77220
|
_iterator.s();
|
|
77154
77221
|
case 4:
|
|
@@ -77238,6 +77305,34 @@ function exportedText(result) {
|
|
|
77238
77305
|
return left.length ? "".concat(base, " Not included: ").concat(left.join("; "), ".") : base;
|
|
77239
77306
|
}
|
|
77240
77307
|
|
|
77308
|
+
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; } } }; }
|
|
77309
|
+
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; } }
|
|
77310
|
+
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; }
|
|
77311
|
+
/**
|
|
77312
|
+
* saveErrorText — a failed dashboard save's reason in plain words (Phase 1e).
|
|
77313
|
+
* Disk errors come back as "EACCES: permission denied, open '<long path>'";
|
|
77314
|
+
* the user gets what went wrong, not the code or the path.
|
|
77315
|
+
*/
|
|
77316
|
+
var DISK_ERRORS = [[/^(EACCES|EPERM)\b/, "Dash isn't allowed to write to its data folder."], [/^ENOSPC\b/, "The disk is full."], [/^EROFS\b/, "Dash's data folder is read-only."]];
|
|
77317
|
+
function saveErrorText(error) {
|
|
77318
|
+
var message = (error && error.message || "").trim();
|
|
77319
|
+
var _iterator = _createForOfIteratorHelper$h(DISK_ERRORS),
|
|
77320
|
+
_step;
|
|
77321
|
+
try {
|
|
77322
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
77323
|
+
var _step$value = _slicedToArray(_step.value, 2),
|
|
77324
|
+
code = _step$value[0],
|
|
77325
|
+
text = _step$value[1];
|
|
77326
|
+
if (code.test(message)) return text;
|
|
77327
|
+
}
|
|
77328
|
+
} catch (err) {
|
|
77329
|
+
_iterator.e(err);
|
|
77330
|
+
} finally {
|
|
77331
|
+
_iterator.f();
|
|
77332
|
+
}
|
|
77333
|
+
return message;
|
|
77334
|
+
}
|
|
77335
|
+
|
|
77241
77336
|
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; } } }; }
|
|
77242
77337
|
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; } }
|
|
77243
77338
|
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; }
|
|
@@ -77387,7 +77482,14 @@ var DashboardDetailPanel = function DashboardDetailPanel(_ref2) {
|
|
|
77387
77482
|
dashApi.saveWorkspace(appId, forSave(updated), function () {
|
|
77388
77483
|
return onReloadWorkspaces && onReloadWorkspaces();
|
|
77389
77484
|
}, function (e, err) {
|
|
77390
|
-
return (
|
|
77485
|
+
return window.dispatchEvent(new CustomEvent("dash:notify", {
|
|
77486
|
+
detail: {
|
|
77487
|
+
type: "error",
|
|
77488
|
+
title: "Couldn't save the dashboard",
|
|
77489
|
+
message: saveErrorText(err) || "Try again.",
|
|
77490
|
+
duration: 8000
|
|
77491
|
+
}
|
|
77492
|
+
}));
|
|
77391
77493
|
});
|
|
77392
77494
|
};
|
|
77393
77495
|
var saveName = function saveName() {
|
|
@@ -88010,17 +88112,38 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
88010
88112
|
return;
|
|
88011
88113
|
}
|
|
88012
88114
|
// Not editing: a one-off pick, saved straight away.
|
|
88013
|
-
|
|
88115
|
+
saveRightAway(reconciled, "provider");
|
|
88116
|
+
}
|
|
88117
|
+
}
|
|
88014
88118
|
|
|
88015
|
-
|
|
88016
|
-
|
|
88017
|
-
|
|
88018
|
-
|
|
88019
|
-
|
|
88020
|
-
|
|
88021
|
-
|
|
88119
|
+
// Phase 1e: a change made outside Edit shows at once and is saved straight
|
|
88120
|
+
// away. If the save fails, the screen goes back to what's saved and the
|
|
88121
|
+
// user is told — it never shows a change that didn't happen.
|
|
88122
|
+
function saveRightAway(reconciled, what) {
|
|
88123
|
+
var before = workspaceSelected;
|
|
88124
|
+
updateTabWorkspace(reconciled);
|
|
88125
|
+
var failed = function failed(_e, error) {
|
|
88126
|
+
if (before) updateTabWorkspace(before);
|
|
88127
|
+
notifySaveError("Couldn't save the ".concat(what, " change"), error);
|
|
88128
|
+
};
|
|
88129
|
+
try {
|
|
88130
|
+
dashApi.saveWorkspace(credentials.appId, reconciled, function () {}, failed);
|
|
88131
|
+
} catch (e) {
|
|
88132
|
+
failed(null, e);
|
|
88022
88133
|
}
|
|
88023
88134
|
}
|
|
88135
|
+
function notifySaveError(title, error) {
|
|
88136
|
+
var next = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "Try again.";
|
|
88137
|
+
var reason = saveErrorText(error).replace(/\.+$/, "");
|
|
88138
|
+
window.dispatchEvent(new CustomEvent("dash:notify", {
|
|
88139
|
+
detail: {
|
|
88140
|
+
type: "error",
|
|
88141
|
+
title: title,
|
|
88142
|
+
message: reason ? "".concat(reason, ". ").concat(next) : next,
|
|
88143
|
+
duration: 8000
|
|
88144
|
+
}
|
|
88145
|
+
}));
|
|
88146
|
+
}
|
|
88024
88147
|
|
|
88025
88148
|
// ─── Bulk provider binding save (Dashboard Config modal) ──────────
|
|
88026
88149
|
// Takes [{ widgetId, providerType, providerName }] and writes the
|
|
@@ -88045,15 +88168,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
88045
88168
|
stageWorkspaceEdit(reconciled);
|
|
88046
88169
|
return;
|
|
88047
88170
|
}
|
|
88048
|
-
|
|
88049
|
-
try {
|
|
88050
|
-
dashApi.saveWorkspace(credentials.appId, reconciled, function (e, result) {
|
|
88051
|
-
return (void 0);
|
|
88052
|
-
}, function (e, error) {
|
|
88053
|
-
return (void 0);
|
|
88054
|
-
});
|
|
88055
|
-
} catch (e) {
|
|
88056
|
-
}
|
|
88171
|
+
saveRightAway(reconciled, "provider");
|
|
88057
88172
|
}
|
|
88058
88173
|
|
|
88059
88174
|
// ─── Bulk widget userPrefs save ───────────────────────────────────
|
|
@@ -88079,15 +88194,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
88079
88194
|
stageWorkspaceEdit(reconciled);
|
|
88080
88195
|
return;
|
|
88081
88196
|
}
|
|
88082
|
-
|
|
88083
|
-
try {
|
|
88084
|
-
dashApi.saveWorkspace(credentials.appId, reconciled, function (e, result) {
|
|
88085
|
-
return (void 0);
|
|
88086
|
-
}, function (e, error) {
|
|
88087
|
-
return (void 0);
|
|
88088
|
-
});
|
|
88089
|
-
} catch (e) {
|
|
88090
|
-
}
|
|
88197
|
+
saveRightAway(reconciled, "widget settings");
|
|
88091
88198
|
}
|
|
88092
88199
|
|
|
88093
88200
|
// ─── Bulk listener binding save ──────────────────────────────────
|
|
@@ -88107,15 +88214,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
88107
88214
|
stageWorkspaceEdit(reconciled);
|
|
88108
88215
|
return;
|
|
88109
88216
|
}
|
|
88110
|
-
|
|
88111
|
-
try {
|
|
88112
|
-
dashApi.saveWorkspace(credentials.appId, reconciled, function (e, result) {
|
|
88113
|
-
return (void 0);
|
|
88114
|
-
}, function (e, error) {
|
|
88115
|
-
return (void 0);
|
|
88116
|
-
});
|
|
88117
|
-
} catch (e) {
|
|
88118
|
-
}
|
|
88217
|
+
saveRightAway(reconciled, "listener");
|
|
88119
88218
|
}
|
|
88120
88219
|
|
|
88121
88220
|
// ─── Unresolved providers + listener orphans (modal + auto-open) ─
|
|
@@ -88839,6 +88938,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
88839
88938
|
dashApi.saveWorkspace(credentials.appId, workspaceToSave, handleSaveWorkspaceComplete, handleSaveWorkspaceError);
|
|
88840
88939
|
}
|
|
88841
88940
|
} catch (e) {
|
|
88941
|
+
handleSaveWorkspaceError(null, e);
|
|
88842
88942
|
}
|
|
88843
88943
|
}
|
|
88844
88944
|
function handleSaveWorkspaceComplete(e, message) {
|
|
@@ -88890,7 +88990,10 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
88890
88990
|
return true;
|
|
88891
88991
|
});
|
|
88892
88992
|
}
|
|
88893
|
-
|
|
88993
|
+
|
|
88994
|
+
// A failed Save keeps Edit open with every change still there (Phase 1e).
|
|
88995
|
+
function handleSaveWorkspaceError(_e, error) {
|
|
88996
|
+
notifySaveError("Couldn't save the dashboard", error, "Your changes are still here — try Save again.");
|
|
88894
88997
|
}
|
|
88895
88998
|
function handleOpenThemeManager() {
|
|
88896
88999
|
var themeKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
@@ -90655,7 +90758,15 @@ var MainMenuConst = function MainMenuConst(_ref) {
|
|
|
90655
90758
|
}
|
|
90656
90759
|
function handleSaveWorkspaceMenuIdComplete(e, message) {
|
|
90657
90760
|
}
|
|
90658
|
-
function handleSaveWorkspaceError(e,
|
|
90761
|
+
function handleSaveWorkspaceError(e, error) {
|
|
90762
|
+
window.dispatchEvent(new CustomEvent("dash:notify", {
|
|
90763
|
+
detail: {
|
|
90764
|
+
type: "error",
|
|
90765
|
+
title: "Couldn't move the dashboard",
|
|
90766
|
+
message: saveErrorText(error) || "Try again.",
|
|
90767
|
+
duration: 8000
|
|
90768
|
+
}
|
|
90769
|
+
}));
|
|
90659
90770
|
}
|
|
90660
90771
|
function handleCreateNew(menuItem) {
|
|
90661
90772
|
onClickNewWorkspace && onClickNewWorkspace(menuItem
|