@copart/ops-tool-kit 1.13.6-alpha.1 → 1.13.6-alpha.3
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/ops-tool-kit.js +350 -133
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -49,7 +49,7 @@ var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
|
49
49
|
var ReactRouterDOM__namespace = /*#__PURE__*/_interopNamespace(ReactRouterDOM);
|
|
50
50
|
|
|
51
51
|
const name$1 = "@copart/ops-tool-kit";
|
|
52
|
-
const version$3 = "1.13.6-alpha.
|
|
52
|
+
const version$3 = "1.13.6-alpha.3";
|
|
53
53
|
const main$1 = "dist/ops-tool-kit.js";
|
|
54
54
|
const style = "dist/ops-tool-kit.css";
|
|
55
55
|
const files = [
|
|
@@ -2862,6 +2862,17 @@ var createOpsStorage = function createOpsStorage() {
|
|
|
2862
2862
|
clearStorage$1();
|
|
2863
2863
|
removeLocalItem$1('c2dEnabled');
|
|
2864
2864
|
removeLocalItem$1('mihelpAgentConversations');
|
|
2865
|
+
removeLocalItem$1('mihelpAgentChatScope');
|
|
2866
|
+
var sessionKeys = [];
|
|
2867
|
+
for (var i = 0; i < localStorage.length; i++) {
|
|
2868
|
+
var key = localStorage.key(i);
|
|
2869
|
+
if (key === 'mihelpAgentV2SessionId' || key && (key.startsWith('mihelpAgentV2SessionId:') || key.startsWith('mihelpAgentConversations:'))) {
|
|
2870
|
+
sessionKeys.push(key);
|
|
2871
|
+
}
|
|
2872
|
+
}
|
|
2873
|
+
sessionKeys.forEach(function (key) {
|
|
2874
|
+
return removeLocalItem$1(key);
|
|
2875
|
+
});
|
|
2865
2876
|
window.location.assign('/logout');
|
|
2866
2877
|
}
|
|
2867
2878
|
};
|
|
@@ -21503,70 +21514,89 @@ var resolveSelectedAppNames = function resolveSelectedAppNames(apps, savedAppNam
|
|
|
21503
21514
|
});
|
|
21504
21515
|
return matched.length ? matched : codes;
|
|
21505
21516
|
};
|
|
21506
|
-
var
|
|
21517
|
+
var listFromResponse = function listFromResponse(res) {
|
|
21507
21518
|
var body = pathOr$1(null, ['data'], res);
|
|
21508
|
-
|
|
21509
|
-
|
|
21510
|
-
|
|
21511
|
-
|
|
21512
|
-
var code = app.appCode || app.code;
|
|
21513
|
-
return {
|
|
21514
|
-
code: code,
|
|
21515
|
-
name: code,
|
|
21516
|
-
desc: app.displayName || app.desc || code
|
|
21517
|
-
};
|
|
21518
|
-
});
|
|
21519
|
-
};
|
|
21520
|
-
var sameName = function sameName(left, right) {
|
|
21521
|
-
return String(left || '').trim().toLowerCase() === String(right || '').trim().toLowerCase();
|
|
21522
|
-
};
|
|
21523
|
-
var findStatusAppForTile = function findStatusAppForTile(apps, tileName) {
|
|
21524
|
-
if (!tileName || !Array.isArray(apps)) return null;
|
|
21525
|
-
return apps.find(function (app) {
|
|
21526
|
-
return sameName(app === null || app === void 0 ? void 0 : app.name, tileName) || sameName(app === null || app === void 0 ? void 0 : app.code, tileName);
|
|
21527
|
-
}) || null;
|
|
21528
|
-
};
|
|
21529
|
-
var isStatusAppSelected = function isStatusAppSelected(app, selectedAppNames) {
|
|
21530
|
-
if (!app || !Array.isArray(selectedAppNames)) return false;
|
|
21531
|
-
return selectedAppNames.some(function (name) {
|
|
21532
|
-
return sameName(name, app.code) || sameName(name, app.name) || sameName(name, app.desc);
|
|
21533
|
-
});
|
|
21519
|
+
if (Array.isArray(body)) return body;
|
|
21520
|
+
if (Array.isArray(body === null || body === void 0 ? void 0 : body.data)) return body.data;
|
|
21521
|
+
if (Array.isArray(body === null || body === void 0 ? void 0 : body.response)) return body.response;
|
|
21522
|
+
return [];
|
|
21534
21523
|
};
|
|
21535
|
-
var
|
|
21536
|
-
var _ref = _asyncToGenerator$1(/*#__PURE__*/_regenerator().m(function _callee(
|
|
21537
|
-
var
|
|
21524
|
+
var fetchAllApps = /*#__PURE__*/function () {
|
|
21525
|
+
var _ref = _asyncToGenerator$1(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
21526
|
+
var _coreAppConfig$endpoi;
|
|
21527
|
+
var coreAppConfig, endpoint, res, _t;
|
|
21538
21528
|
return _regenerator().w(function (_context) {
|
|
21539
21529
|
while (1) switch (_context.p = _context.n) {
|
|
21540
21530
|
case 0:
|
|
21541
|
-
|
|
21531
|
+
coreAppConfig = storage$2.getLocalItem('opsportal-core:config');
|
|
21532
|
+
endpoint = coreAppConfig === null || coreAppConfig === void 0 ? void 0 : (_coreAppConfig$endpoi = coreAppConfig.endpoints) === null || _coreAppConfig$endpoi === void 0 ? void 0 : _coreAppConfig$endpoi.getAllUserAvailabilityApps;
|
|
21533
|
+
if (endpoint) {
|
|
21542
21534
|
_context.n = 1;
|
|
21543
21535
|
break;
|
|
21544
21536
|
}
|
|
21545
21537
|
return _context.a(2, []);
|
|
21546
21538
|
case 1:
|
|
21547
21539
|
_context.p = 1;
|
|
21548
|
-
coreAppConfig = storage$2.getLocalItem('opsportal-core:config');
|
|
21549
|
-
endpoints = coreAppConfig.endpoints;
|
|
21550
|
-
endpoint = frontEndUtils.string.substitute(endpoints === null || endpoints === void 0 ? void 0 : endpoints.getProvisonedApps, {
|
|
21551
|
-
copartId: copartId
|
|
21552
|
-
});
|
|
21553
21540
|
_context.n = 2;
|
|
21554
21541
|
return fetcher$1.get(endpoint);
|
|
21555
21542
|
case 2:
|
|
21556
21543
|
res = _context.v;
|
|
21557
|
-
return _context.a(2,
|
|
21544
|
+
return _context.a(2, listFromResponse(res).filter(function (app) {
|
|
21545
|
+
return app && app.appCode;
|
|
21546
|
+
}));
|
|
21558
21547
|
case 3:
|
|
21559
21548
|
_context.p = 3;
|
|
21560
21549
|
_t = _context.v;
|
|
21561
|
-
console.error('Failed to fetch
|
|
21550
|
+
console.error('Failed to fetch all apps:', _t);
|
|
21562
21551
|
return _context.a(2, []);
|
|
21563
21552
|
}
|
|
21564
21553
|
}, _callee, null, [[1, 3]]);
|
|
21565
21554
|
}));
|
|
21566
|
-
return function
|
|
21555
|
+
return function fetchAllApps() {
|
|
21567
21556
|
return _ref.apply(this, arguments);
|
|
21568
21557
|
};
|
|
21569
21558
|
}();
|
|
21559
|
+
var buildUserStatusApps = function buildUserStatusApps(userStatus) {
|
|
21560
|
+
var allApps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
21561
|
+
var provisioned = new Set(toNameList(userStatus === null || userStatus === void 0 ? void 0 : userStatus.provisionedApps).map(function (name) {
|
|
21562
|
+
return name.toLowerCase();
|
|
21563
|
+
}));
|
|
21564
|
+
var byCode = new Map(allApps.filter(function (app) {
|
|
21565
|
+
return app && app.appCode;
|
|
21566
|
+
}).map(function (app) {
|
|
21567
|
+
return [String(app.appCode).trim().toLowerCase(), app];
|
|
21568
|
+
}));
|
|
21569
|
+
var seen = new Set();
|
|
21570
|
+
var apps = [];
|
|
21571
|
+
toNameList(userStatus === null || userStatus === void 0 ? void 0 : userStatus.eligibleApps).forEach(function (code) {
|
|
21572
|
+
var key = code.toLowerCase();
|
|
21573
|
+
if (!provisioned.has(key) || seen.has(key)) return;
|
|
21574
|
+
var match = byCode.get(key);
|
|
21575
|
+
var appCode = (match === null || match === void 0 ? void 0 : match.appCode) || code;
|
|
21576
|
+
seen.add(key);
|
|
21577
|
+
apps.push({
|
|
21578
|
+
code: appCode,
|
|
21579
|
+
name: appCode,
|
|
21580
|
+
desc: (match === null || match === void 0 ? void 0 : match.displayName) || appCode
|
|
21581
|
+
});
|
|
21582
|
+
});
|
|
21583
|
+
return apps;
|
|
21584
|
+
};
|
|
21585
|
+
var sameName = function sameName(left, right) {
|
|
21586
|
+
return String(left || '').trim().toLowerCase() === String(right || '').trim().toLowerCase();
|
|
21587
|
+
};
|
|
21588
|
+
var findStatusAppForTile = function findStatusAppForTile(apps, tileName) {
|
|
21589
|
+
if (!tileName || !Array.isArray(apps)) return null;
|
|
21590
|
+
return apps.find(function (app) {
|
|
21591
|
+
return sameName(app === null || app === void 0 ? void 0 : app.name, tileName) || sameName(app === null || app === void 0 ? void 0 : app.code, tileName);
|
|
21592
|
+
}) || null;
|
|
21593
|
+
};
|
|
21594
|
+
var isStatusAppSelected = function isStatusAppSelected(app, selectedAppNames) {
|
|
21595
|
+
if (!app || !Array.isArray(selectedAppNames)) return false;
|
|
21596
|
+
return selectedAppNames.some(function (name) {
|
|
21597
|
+
return sameName(name, app.code) || sameName(name, app.name) || sameName(name, app.desc);
|
|
21598
|
+
});
|
|
21599
|
+
};
|
|
21570
21600
|
var fetchAvailableStatuses = /*#__PURE__*/function () {
|
|
21571
21601
|
var _ref2 = _asyncToGenerator$1(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
21572
21602
|
var coreAppConfig, endpoints, email, endpoint, res, availableStatuses, _t2;
|
|
@@ -21622,6 +21652,8 @@ var fetchUserStatus = /*#__PURE__*/function () {
|
|
|
21622
21652
|
return _context3.a(2, {
|
|
21623
21653
|
status: doc.user_availability || null,
|
|
21624
21654
|
appNames: toNameList(doc.user_availability_checked_apps),
|
|
21655
|
+
eligibleApps: toNameList(doc.user_eligible_apps),
|
|
21656
|
+
provisionedApps: toNameList(doc.user_provisioned_apps),
|
|
21625
21657
|
copartId: doc.copart_id || null,
|
|
21626
21658
|
selfManaged: doc.self_managed_flag === true
|
|
21627
21659
|
});
|
|
@@ -21674,7 +21706,7 @@ var updateUserStatus = /*#__PURE__*/function () {
|
|
|
21674
21706
|
}
|
|
21675
21707
|
}, _callee4, null, [[1, 3]]);
|
|
21676
21708
|
}));
|
|
21677
|
-
return function updateUserStatus(
|
|
21709
|
+
return function updateUserStatus(_x, _x2) {
|
|
21678
21710
|
return _ref4.apply(this, arguments);
|
|
21679
21711
|
};
|
|
21680
21712
|
}();
|
|
@@ -22108,7 +22140,7 @@ var LogOutMenu = function LogOutMenu(_ref) {
|
|
|
22108
22140
|
}));
|
|
22109
22141
|
};
|
|
22110
22142
|
|
|
22111
|
-
var css_248z$l = ".utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy {\n width: 100%;\n display: flex;\n justify-content: space-around;\n padding: 20px 0;\n border-bottom: 1px solid #EDEBE9;\n grid-gap: 24px;\n gap: 24px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyDetails {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n word-break: break-all;\n text-wrap: wrap;\n padding-left: 15px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyDetails h3 {\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyDetails p {\n font-size: 12px;\n font-style: normal;\n font-weight: 350;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyStatus {\n margin-top: 12px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyStatus .ms-Dropdown-title {\n border-radius: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyStatus .ms-Dropdown:focus:after {\n border: none !important;\n outline: none !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyStatus .ms-Dropdown.is-open:focus:after {\n border: none !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyLogout {\n display: flex;\n align-items: center;\n padding: 7px 20px;\n grid-gap: 6px;\n gap: 6px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyLogout i {\n color: #FFF;\n font-size: 20px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyLogout span button {\n padding: 7px 25px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyLogout span button span {\n grid-gap: 6px;\n gap: 6px;\n}\n\n@media (max-width: 768px) {\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy {\n padding: 24px 36px;\n flex-direction: column;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyDetails {\n align-items: center;\n padding-left: 0;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyLogout {\n padding: 0;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyLogout > span {\n width: 100%;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyLogout > span > button {\n width: 100%;\n }\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails {\n position: relative;\n z-index: 2;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: stretch;\n padding: 16px;\n border-bottom: 1px solid #EDEBE9;\n grid-gap: 12px;\n gap: 12px;\n box-sizing: border-box;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileHeader {\n display: flex;\n align-items: center;\n justify-content: space-between;\n grid-gap: 12px;\n gap: 12px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--details {\n display: flex;\n flex: 1;\n min-width: 0;\n flex-direction: column;\n justify-content: flex-start;\n word-break: break-all;\n text-wrap: wrap;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--details h3 {\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--details p {\n font-size: 12px;\n font-style: normal;\n font-weight: 350;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--selectors {\n display: flex;\n align-items: flex-start;\n flex-wrap: wrap;\n grid-gap: 12px;\n gap: 12px;\n word-break: normal;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--statusSelector,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsSelector {\n flex: 1 1 0;\n min-width: 0;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--statusSelector .ms-Dropdown {\n width: 100%;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsSelector {\n position: relative;\n z-index: 2;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger {\n display: flex;\n align-items: center;\n grid-gap: 8px;\n gap: 8px;\n width: 100%;\n min-width: 0;\n height: 32px;\n padding: 0 10px;\n box-sizing: border-box;\n border: 1px solid rgb(151, 151, 151);\n border-radius: 5px;\n background: #fff;\n color: #323130;\n cursor: pointer;\n font-size: 14px;\n overflow: hidden;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger:hover,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger[aria-expanded='true'] {\n border-color: rgb(23, 23, 23);\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger:disabled,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger:disabled:hover {\n background: #f3f2f1;\n color: #a19f9d;\n border-color: #edebe9;\n cursor: not-allowed;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger:disabled i {\n color: #a19f9d;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger > * {\n flex-shrink: 0;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger i {\n color: rgb(96, 94, 92);\n font-size: 14px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTriggerLabel {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-align: left;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsPanel {\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n z-index: 3;\n width: 280px;\n max-width: min(320px, calc(100vw - 32px));\n padding: 8px 0 12px;\n background: #fff;\n border-radius: 8px;\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);\n white-space: normal;\n word-wrap: break-word;\n box-sizing: border-box;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appOption {\n display: flex;\n align-items: flex-start;\n grid-gap: 10px;\n gap: 10px;\n margin: 0;\n padding: 8px 16px;\n cursor: pointer;\n font-size: 14px;\n color: #323130;\n white-space: normal;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appOption span {\n min-width: 0;\n white-space: normal;\n word-wrap: break-word;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appOption input {\n width: 16px;\n height: 16px;\n margin: 2px 0 0;\n flex-shrink: 0;\n accent-color: #1d5ab9;\n cursor: pointer;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsRow {\n display: flex;\n align-items: center;\n grid-gap: 6px;\n gap: 6px;\n width: 100%;\n min-width: 0;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: 14px;\n height: 18px;\n margin: 0;\n padding: 0;\n border: none;\n outline: none;\n box-shadow: none;\n background: transparent;\n color: #605e5c;\n line-height: 0;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo:hover,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo:focus,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--focus-visible {\n color: #1d5ab9;\n border: none;\n outline: none;\n box-shadow: none;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo:hover,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo:focus,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo:focus-visible {\n color: #1d5ab9;\n border: none;\n outline: none;\n box-shadow: none;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo i {\n font-size: 14px;\n border: none;\n background: transparent;\n box-shadow: none;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTags {\n position: relative;\n display: flex;\n align-items: center;\n grid-gap: 6px;\n gap: 6px;\n flex: 1;\n min-width: 0;\n overflow: hidden;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTag {\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n max-width: 100%;\n height: 18px;\n padding: 0 8px;\n border: 1px solid #1d5ab9;\n border-radius: 999px;\n background: #1d5ab9;\n color: #fff;\n font-size: 10px;\n font-weight: 600;\n line-height: 12px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n flex-shrink: 0;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagShrink {\n flex-shrink: 1;\n min-width: 0;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagMore {\n flex-shrink: 0;\n padding: 0 6px;\n background: #ebf0fa;\n color: #1d5ab9;\n border-color: #ebf0fa;\n cursor: default;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsMeasure {\n position: absolute;\n left: 0;\n top: 0;\n display: flex;\n grid-gap: 6px;\n gap: 6px;\n visibility: hidden;\n pointer-events: none;\n white-space: nowrap;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagTooltip {\n position: fixed;\n z-index: 12000;\n display: flex;\n flex-direction: column;\n grid-gap: 4px;\n gap: 4px;\n width: -webkit-max-content;\n width: -moz-max-content;\n width: max-content;\n height: auto;\n min-width: 120px;\n max-width: 220px;\n min-height: 0;\n padding: 8px 10px;\n background: #323130;\n color: #fff;\n border-radius: 4px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n white-space: normal;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagTooltipHint {\n max-width: 240px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--statusAppNote {\n margin: 0;\n color: #605e5c;\n font-size: 12px;\n line-height: 1.4;\n white-space: normal;\n word-wrap: break-word;\n word-break: break-word;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--statusAppNoteMark {\n color: #a4262c;\n font-size: 12px;\n line-height: 1;\n position: relative;\n top: -3px;\n margin-right: 2px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsHelp {\n margin: 4px 0 12px;\n padding: 12px 16px 0;\n border-top: 1px solid #edebe9;\n color: #605e5c;\n font-size: 13px;\n line-height: 1.4;\n white-space: normal;\n word-wrap: break-word;\n word-break: break-word;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions {\n display: flex;\n grid-gap: 8px;\n gap: 8px;\n padding: 0 12px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions > span {\n flex: 1;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button {\n width: 100%;\n border-radius: 4px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--default {\n background: #ebf3fc;\n border-color: #ebf3fc;\n color: #1d5ab9;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--primary {\n background: #1d5ab9;\n border-color: #1d5ab9;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--primary.is-disabled,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--primary.is-disabled:hover,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--primary:disabled,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--primary:disabled:hover {\n background-color: #f3f2f1;\n border-color: #f3f2f1;\n color: #a19f9d;\n cursor: default;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--primary.is-disabled .ms-Button-label,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--primary:disabled .ms-Button-label {\n color: #a19f9d;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--statusSelector .ms-Dropdown-title {\n border-radius: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--statusSelector .ms-Dropdown:focus:after {\n border: none !important;\n outline: none !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--statusSelector .ms-Dropdown.is-open:focus:after {\n border: none !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n grid-gap: 6px;\n grid-gap: 6px;\n gap: 6px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton i {\n color: #FFF;\n font-size: 20px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton span button {\n padding: 7px 25px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton span button span {\n grid-gap: 6px;\n gap: 6px;\n}\n\n@media (max-width: 1024px) {\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails {\n padding: 24px 36px;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileHeader {\n flex-direction: column;\n align-items: stretch;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--details {\n align-items: center;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--selectors {\n justify-content: center;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton {\n width: 100%;\n align-self: stretch;\n padding: 0;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton > span,\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton > button,\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton button,\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton .ms-Button {\n width: 100%;\n max-width: 100%;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton .ms-Button-flexContainer {\n justify-content: center;\n }\n}";
|
|
22143
|
+
var css_248z$l = ".utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy {\n width: 100%;\n display: flex;\n justify-content: space-around;\n padding: 20px 0;\n border-bottom: 1px solid #EDEBE9;\n grid-gap: 24px;\n gap: 24px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyDetails {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n word-break: break-all;\n text-wrap: wrap;\n padding-left: 15px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyDetails h3 {\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyDetails p {\n font-size: 12px;\n font-style: normal;\n font-weight: 350;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyStatus {\n margin-top: 12px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyStatus .ms-Dropdown-title {\n border-radius: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyStatus .ms-Dropdown:focus:after {\n border: none !important;\n outline: none !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyStatus .ms-Dropdown.is-open:focus:after {\n border: none !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyLogout {\n display: flex;\n align-items: center;\n padding: 7px 20px;\n grid-gap: 6px;\n gap: 6px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyLogout i {\n color: #FFF;\n font-size: 20px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyLogout span button {\n padding: 7px 25px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyLogout span button span {\n grid-gap: 6px;\n gap: 6px;\n}\n\n@media (max-width: 768px) {\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy {\n padding: 24px 36px;\n flex-direction: column;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyDetails {\n align-items: center;\n padding-left: 0;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyLogout {\n padding: 0;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyLogout > span {\n width: 100%;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetailsLegacy .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--legacyLogout > span > button {\n width: 100%;\n }\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails {\n position: relative;\n z-index: 2;\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: stretch;\n padding: 16px;\n border-bottom: 1px solid #EDEBE9;\n grid-gap: 12px;\n gap: 12px;\n box-sizing: border-box;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileHeader {\n display: flex;\n align-items: center;\n justify-content: space-between;\n grid-gap: 12px;\n gap: 12px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--details {\n display: flex;\n flex: 1;\n min-width: 0;\n flex-direction: column;\n justify-content: flex-start;\n word-break: break-all;\n text-wrap: wrap;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--details h3 {\n font-size: 16px;\n font-style: normal;\n font-weight: 600;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--details p {\n font-size: 12px;\n font-style: normal;\n font-weight: 350;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--selectors {\n display: flex;\n align-items: flex-start;\n flex-wrap: wrap;\n grid-gap: 12px;\n gap: 12px;\n word-break: normal;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--statusSelector,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsSelector {\n flex: 1 1 0;\n min-width: 0;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--statusSelector .ms-Dropdown {\n width: 100%;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsSelector {\n position: relative;\n z-index: 2;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger {\n display: flex;\n align-items: center;\n grid-gap: 8px;\n gap: 8px;\n width: 100%;\n min-width: 0;\n height: 32px;\n padding: 0 10px;\n box-sizing: border-box;\n border: 1px solid rgb(151, 151, 151);\n border-radius: 5px;\n background: #fff;\n color: #323130;\n cursor: pointer;\n font-size: 14px;\n overflow: hidden;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger:hover,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger[aria-expanded='true'] {\n border-color: rgb(23, 23, 23);\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger:disabled,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger:disabled:hover {\n background: #f3f2f1;\n color: #a19f9d;\n border-color: #edebe9;\n cursor: not-allowed;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger:disabled i {\n color: #a19f9d;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger > * {\n flex-shrink: 0;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTrigger i {\n color: rgb(96, 94, 92);\n font-size: 14px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTriggerLabel {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-align: left;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsPanel {\n position: absolute;\n top: calc(100% + 4px);\n right: 0;\n z-index: 3;\n width: 280px;\n max-width: min(320px, calc(100vw - 32px));\n padding: 8px 0 12px;\n background: #fff;\n border-radius: 8px;\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);\n white-space: normal;\n word-wrap: break-word;\n box-sizing: border-box;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appOption {\n display: flex;\n align-items: flex-start;\n grid-gap: 10px;\n gap: 10px;\n margin: 0;\n padding: 8px 16px;\n cursor: pointer;\n font-size: 14px;\n color: #323130;\n white-space: normal;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appOption span {\n min-width: 0;\n white-space: normal;\n word-wrap: break-word;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appOption input {\n width: 16px;\n height: 16px;\n margin: 2px 0 0;\n flex-shrink: 0;\n accent-color: #1d5ab9;\n cursor: pointer;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsDivider {\n height: 1px;\n margin: 4px 16px 8px;\n background: #edebe9;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsRow {\n display: flex;\n align-items: center;\n grid-gap: 6px;\n gap: 6px;\n width: 100%;\n min-width: 0;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: 14px;\n height: 18px;\n margin: 0;\n padding: 0;\n border: none;\n outline: none;\n box-shadow: none;\n background: transparent;\n color: #605e5c;\n line-height: 0;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo:hover,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo:focus,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--focus-visible {\n color: #1d5ab9;\n border: none;\n outline: none;\n box-shadow: none;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo:hover,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo:focus,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo:focus-visible {\n color: #1d5ab9;\n border: none;\n outline: none;\n box-shadow: none;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo i {\n font-size: 14px;\n border: none;\n background: transparent;\n box-shadow: none;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTags {\n position: relative;\n display: flex;\n align-items: center;\n grid-gap: 6px;\n gap: 6px;\n flex: 1;\n min-width: 0;\n overflow: hidden;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTag {\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n max-width: 100%;\n height: 18px;\n padding: 0 8px;\n border: 1px solid #1d5ab9;\n border-radius: 999px;\n background: #1d5ab9;\n color: #fff;\n font-size: 10px;\n font-weight: 600;\n line-height: 12px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n flex-shrink: 0;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagShrink {\n flex-shrink: 1;\n min-width: 0;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagMore {\n flex-shrink: 0;\n padding: 0 6px;\n background: #ebf0fa;\n color: #1d5ab9;\n border-color: #ebf0fa;\n cursor: default;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsMeasure {\n position: absolute;\n left: 0;\n top: 0;\n display: flex;\n grid-gap: 6px;\n gap: 6px;\n visibility: hidden;\n pointer-events: none;\n white-space: nowrap;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagTooltip {\n position: fixed;\n z-index: 12000;\n display: flex;\n flex-direction: column;\n grid-gap: 4px;\n gap: 4px;\n width: -webkit-max-content;\n width: -moz-max-content;\n width: max-content;\n height: auto;\n min-width: 120px;\n max-width: 220px;\n min-height: 0;\n padding: 8px 10px;\n background: #323130;\n color: #fff;\n border-radius: 4px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);\n font-size: 12px;\n font-weight: 400;\n line-height: 16px;\n white-space: normal;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagTooltipHint {\n max-width: 240px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--statusAppNote {\n margin: 0;\n color: #605e5c;\n font-size: 12px;\n line-height: 1.4;\n white-space: normal;\n word-wrap: break-word;\n word-break: break-word;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--statusAppNoteMark {\n color: #a4262c;\n font-size: 12px;\n line-height: 1;\n position: relative;\n top: -3px;\n margin-right: 2px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsHelp {\n margin: 4px 0 12px;\n padding: 12px 16px 0;\n border-top: 1px solid #edebe9;\n color: #605e5c;\n font-size: 13px;\n line-height: 1.4;\n white-space: normal;\n word-wrap: break-word;\n word-break: break-word;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions {\n display: flex;\n grid-gap: 8px;\n gap: 8px;\n padding: 0 12px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions > span {\n flex: 1;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button {\n width: 100%;\n border-radius: 4px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--default {\n background: #ebf3fc;\n border-color: #ebf3fc;\n color: #1d5ab9;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--primary {\n background: #1d5ab9;\n border-color: #1d5ab9;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--primary.is-disabled,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--primary.is-disabled:hover,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--primary:disabled,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--primary:disabled:hover {\n background-color: #f3f2f1;\n border-color: #f3f2f1;\n color: #a19f9d;\n cursor: default;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--primary.is-disabled .ms-Button-label,\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsActions .ms-Button--primary:disabled .ms-Button-label {\n color: #a19f9d;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--statusSelector .ms-Dropdown-title {\n border-radius: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--statusSelector .ms-Dropdown:focus:after {\n border: none !important;\n outline: none !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--statusSelector .ms-Dropdown.is-open:focus:after {\n border: none !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton {\n display: flex;\n align-items: center;\n flex-shrink: 0;\n grid-gap: 6px;\n grid-gap: 6px;\n gap: 6px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton i {\n color: #FFF;\n font-size: 20px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton span button {\n padding: 7px 25px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton span button span {\n grid-gap: 6px;\n gap: 6px;\n}\n\n@media (max-width: 1024px) {\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails {\n padding: 24px 36px;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileHeader {\n flex-direction: column;\n align-items: stretch;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--details {\n align-items: center;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--selectors {\n justify-content: center;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton {\n width: 100%;\n align-self: stretch;\n padding: 0;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton > span,\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton > button,\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton button,\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton .ms-Button {\n width: 100%;\n max-width: 100%;\n }\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton .ms-Button-flexContainer {\n justify-content: center;\n }\n}";
|
|
22112
22144
|
styleInject(css_248z$l);
|
|
22113
22145
|
|
|
22114
22146
|
var _styleModuleImportMap$a = {
|
|
@@ -22127,6 +22159,7 @@ var _styleModuleImportMap$a = {
|
|
|
22127
22159
|
"appsTriggerLabel": "utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsTriggerLabel",
|
|
22128
22160
|
"appsPanel": "utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsPanel",
|
|
22129
22161
|
"appOption": "utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appOption",
|
|
22162
|
+
"appsDivider": "utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsDivider",
|
|
22130
22163
|
"appTagsRow": "utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsRow",
|
|
22131
22164
|
"appTagsInfo": "utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTagsInfo",
|
|
22132
22165
|
"appTags": "utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appTags",
|
|
@@ -22436,7 +22469,10 @@ var StatusAppsSelect = function StatusAppsSelect(_ref2) {
|
|
|
22436
22469
|
onChange: function onChange(event) {
|
|
22437
22470
|
return toggleAll(event.target.checked);
|
|
22438
22471
|
}
|
|
22439
|
-
}), /*#__PURE__*/React__default["default"].createElement("span", null, "Select all")),
|
|
22472
|
+
}), /*#__PURE__*/React__default["default"].createElement("span", null, "Select all")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22473
|
+
className: "utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appsDivider",
|
|
22474
|
+
role: "separator"
|
|
22475
|
+
}), apps.map(function (app) {
|
|
22440
22476
|
return /*#__PURE__*/React__default["default"].createElement("label", {
|
|
22441
22477
|
className: "utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--appOption",
|
|
22442
22478
|
key: app.code
|
|
@@ -32075,33 +32111,21 @@ var AppBar = function AppBar(_ref) {
|
|
|
32075
32111
|
}
|
|
32076
32112
|
var loadUserStatus = /*#__PURE__*/function () {
|
|
32077
32113
|
var _ref7 = _asyncToGenerator$1(/*#__PURE__*/_regenerator().m(function _callee6() {
|
|
32078
|
-
var _userStatus$toLowerCa, _yield$Promise$all, _yield$Promise$all2, statuses, userStatusResult,
|
|
32114
|
+
var _userStatus$toLowerCa, appsHidden, _yield$Promise$all, _yield$Promise$all2, statuses, userStatusResult, allApps, apps, statusValue, userStatus, resolvedAppNames, statusList, statusListLower, isSystemAssignedStatus, isValidStatus, finalStatus, offlineIndex, updatedStatus, _t6, _t7;
|
|
32079
32115
|
return _regenerator().w(function (_context6) {
|
|
32080
32116
|
while (1) switch (_context6.p = _context6.n) {
|
|
32081
32117
|
case 0:
|
|
32082
32118
|
_context6.p = 0;
|
|
32119
|
+
appsHidden = isUserStatusAppsHidden();
|
|
32083
32120
|
_context6.n = 1;
|
|
32084
|
-
return Promise.all([fetchAvailableStatuses(), fetchUserStatus()]);
|
|
32121
|
+
return Promise.all([fetchAvailableStatuses(), fetchUserStatus(), appsHidden ? Promise.resolve([]) : fetchAllApps()]);
|
|
32085
32122
|
case 1:
|
|
32086
32123
|
_yield$Promise$all = _context6.v;
|
|
32087
|
-
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all,
|
|
32124
|
+
_yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 3);
|
|
32088
32125
|
statuses = _yield$Promise$all2[0];
|
|
32089
32126
|
userStatusResult = _yield$Promise$all2[1];
|
|
32090
|
-
|
|
32091
|
-
|
|
32092
|
-
_context6.n = 2;
|
|
32093
|
-
break;
|
|
32094
|
-
}
|
|
32095
|
-
_t6 = [];
|
|
32096
|
-
_context6.n = 4;
|
|
32097
|
-
break;
|
|
32098
|
-
case 2:
|
|
32099
|
-
_context6.n = 3;
|
|
32100
|
-
return fetchUserStatusApps(userStatusResult === null || userStatusResult === void 0 ? void 0 : userStatusResult.copartId);
|
|
32101
|
-
case 3:
|
|
32102
|
-
_t6 = _context6.v;
|
|
32103
|
-
case 4:
|
|
32104
|
-
apps = _t6;
|
|
32127
|
+
allApps = _yield$Promise$all2[2];
|
|
32128
|
+
apps = appsHidden ? [] : buildUserStatusApps(userStatusResult, allApps);
|
|
32105
32129
|
setAvailableStatuses(statuses);
|
|
32106
32130
|
setStatusApps(apps);
|
|
32107
32131
|
statusValue = userStatusResult === null || userStatusResult === void 0 ? void 0 : userStatusResult.status;
|
|
@@ -32110,12 +32134,12 @@ var AppBar = function AppBar(_ref) {
|
|
|
32110
32134
|
setSelectedAppNames(resolvedAppNames || []);
|
|
32111
32135
|
setSelfManaged((userStatusResult === null || userStatusResult === void 0 ? void 0 : userStatusResult.selfManaged) === true);
|
|
32112
32136
|
if (!(userStatus === null)) {
|
|
32113
|
-
_context6.n =
|
|
32137
|
+
_context6.n = 2;
|
|
32114
32138
|
break;
|
|
32115
32139
|
}
|
|
32116
32140
|
setAvailableStatuses([]);
|
|
32117
32141
|
return _context6.a(2);
|
|
32118
|
-
case
|
|
32142
|
+
case 2:
|
|
32119
32143
|
statusList = statuses.map(function (s) {
|
|
32120
32144
|
return s.status;
|
|
32121
32145
|
});
|
|
@@ -32126,7 +32150,7 @@ var AppBar = function AppBar(_ref) {
|
|
|
32126
32150
|
isValidStatus = userStatus && (statusListLower.includes(userStatus.toLowerCase()) || isSystemAssignedStatus);
|
|
32127
32151
|
finalStatus = userStatus;
|
|
32128
32152
|
if (isValidStatus) {
|
|
32129
|
-
_context6.n =
|
|
32153
|
+
_context6.n = 7;
|
|
32130
32154
|
break;
|
|
32131
32155
|
}
|
|
32132
32156
|
offlineIndex = statusListLower.indexOf('offline');
|
|
@@ -32136,47 +32160,47 @@ var AppBar = function AppBar(_ref) {
|
|
|
32136
32160
|
finalStatus = statuses[0].status;
|
|
32137
32161
|
}
|
|
32138
32162
|
if (!finalStatus) {
|
|
32139
|
-
_context6.n =
|
|
32163
|
+
_context6.n = 6;
|
|
32140
32164
|
break;
|
|
32141
32165
|
}
|
|
32142
32166
|
setCurrentUserStatus(finalStatus);
|
|
32143
32167
|
storage$2.setLocalItem('dashboard', finalStatus, 'userAvailability');
|
|
32144
|
-
_context6.p =
|
|
32145
|
-
_context6.n =
|
|
32168
|
+
_context6.p = 3;
|
|
32169
|
+
_context6.n = 4;
|
|
32146
32170
|
return updateUserStatus(finalStatus, resolvedAppNames);
|
|
32147
|
-
case
|
|
32171
|
+
case 4:
|
|
32148
32172
|
updatedStatus = _context6.v;
|
|
32149
32173
|
setCurrentUserStatus(updatedStatus);
|
|
32150
32174
|
storage$2.setLocalItem('dashboard', updatedStatus, 'userAvailability');
|
|
32151
|
-
_context6.n =
|
|
32175
|
+
_context6.n = 6;
|
|
32152
32176
|
break;
|
|
32153
|
-
case
|
|
32154
|
-
_context6.p =
|
|
32155
|
-
|
|
32156
|
-
console.error('Failed to update defaulted user status:',
|
|
32177
|
+
case 5:
|
|
32178
|
+
_context6.p = 5;
|
|
32179
|
+
_t6 = _context6.v;
|
|
32180
|
+
console.error('Failed to update defaulted user status:', _t6);
|
|
32157
32181
|
showError('Failed to set default user status.');
|
|
32158
|
-
case
|
|
32159
|
-
_context6.n =
|
|
32182
|
+
case 6:
|
|
32183
|
+
_context6.n = 8;
|
|
32160
32184
|
break;
|
|
32161
|
-
case
|
|
32185
|
+
case 7:
|
|
32162
32186
|
setCurrentUserStatus(finalStatus);
|
|
32163
32187
|
storage$2.setLocalItem('dashboard', finalStatus, 'userAvailability');
|
|
32164
|
-
case
|
|
32165
|
-
_context6.n =
|
|
32188
|
+
case 8:
|
|
32189
|
+
_context6.n = 10;
|
|
32166
32190
|
break;
|
|
32167
|
-
case
|
|
32168
|
-
_context6.p =
|
|
32169
|
-
|
|
32170
|
-
console.error('Failed to load user status:',
|
|
32191
|
+
case 9:
|
|
32192
|
+
_context6.p = 9;
|
|
32193
|
+
_t7 = _context6.v;
|
|
32194
|
+
console.error('Failed to load user status:', _t7);
|
|
32171
32195
|
// if (error.message && error.message.includes('available statuses')) {
|
|
32172
32196
|
// showError('Failed to fetch available statuses.')
|
|
32173
32197
|
// } else {
|
|
32174
32198
|
// showError('Failed to fetch user status.')
|
|
32175
32199
|
// }
|
|
32176
|
-
case
|
|
32200
|
+
case 10:
|
|
32177
32201
|
return _context6.a(2);
|
|
32178
32202
|
}
|
|
32179
|
-
}, _callee6, null, [[
|
|
32203
|
+
}, _callee6, null, [[3, 5], [0, 9]]);
|
|
32180
32204
|
}));
|
|
32181
32205
|
return function loadUserStatus() {
|
|
32182
32206
|
return _ref7.apply(this, arguments);
|
|
@@ -53657,6 +53681,90 @@ var _styleModuleImportMap$2 = {
|
|
|
53657
53681
|
"iphoneChrome": "utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--iphoneChrome"
|
|
53658
53682
|
}
|
|
53659
53683
|
};
|
|
53684
|
+
var MIHELP_V2_SESSION_KEY = 'mihelpAgentV2SessionId';
|
|
53685
|
+
var MIHELP_CHAT_SCOPE_KEY = 'mihelpAgentChatScope';
|
|
53686
|
+
var MIHELP_CONVERSATIONS_KEY = 'mihelpAgentConversations';
|
|
53687
|
+
var isChatV2 = function isChatV2(version) {
|
|
53688
|
+
return String(version || '').toLowerCase() === 'v2';
|
|
53689
|
+
};
|
|
53690
|
+
var v2SessionStorageKey = function v2SessionStorageKey(appName) {
|
|
53691
|
+
return "".concat(MIHELP_V2_SESSION_KEY, ":").concat(appName);
|
|
53692
|
+
};
|
|
53693
|
+
var conversationStorageKey = function conversationStorageKey(chatVersion, appName) {
|
|
53694
|
+
return chatVersion === 'v2' && appName ? "".concat(MIHELP_CONVERSATIONS_KEY, ":").concat(appName) : MIHELP_CONVERSATIONS_KEY;
|
|
53695
|
+
};
|
|
53696
|
+
var readStoredConversations = function readStoredConversations(key) {
|
|
53697
|
+
var stored = storage$2.getLocalItem(key);
|
|
53698
|
+
return Array.isArray(stored) ? stored : [];
|
|
53699
|
+
};
|
|
53700
|
+
var getCurrentChatAppName = function getCurrentChatAppName() {
|
|
53701
|
+
try {
|
|
53702
|
+
var _window$toolkitEnv, _storage$getLocalItem, _window$toolkitEnv2, _window$toolkitEnv3;
|
|
53703
|
+
var isCoreApp = (_window$toolkitEnv = window.toolkitEnv) !== null && _window$toolkitEnv !== void 0 && _window$toolkitEnv.IS_CORE_APP ? window.toolkitEnv.IS_CORE_APP : process.env.IS_CORE_APP;
|
|
53704
|
+
if (isCoreApp) return 'g2Home';
|
|
53705
|
+
var appTiles = ((_storage$getLocalItem = storage$2.getLocalItem('opsportal-core:config')) === null || _storage$getLocalItem === void 0 ? void 0 : _storage$getLocalItem.tiles) || [];
|
|
53706
|
+
var appName = (_window$toolkitEnv2 = window.toolkitEnv) !== null && _window$toolkitEnv2 !== void 0 && _window$toolkitEnv2.APP_NAME ? window.toolkitEnv.APP_NAME : process.env.APP_NAME;
|
|
53707
|
+
var appData = appTiles.find(function (tile) {
|
|
53708
|
+
return tile.appName ? tile.appName === appName : tile.path === "/".concat(appName);
|
|
53709
|
+
});
|
|
53710
|
+
var appAuthName = appData ? appData.appAuthName : (_window$toolkitEnv3 = window.toolkitEnv) !== null && _window$toolkitEnv3 !== void 0 && _window$toolkitEnv3.APP_AUTH_NAME ? window.toolkitEnv.APP_AUTH_NAME : process.env.APP_AUTH_NAME;
|
|
53711
|
+
return appAuthName || appName || '';
|
|
53712
|
+
} catch (e) {
|
|
53713
|
+
return '';
|
|
53714
|
+
}
|
|
53715
|
+
};
|
|
53716
|
+
var normalizeChatScope = function normalizeChatScope(scope) {
|
|
53717
|
+
if (!scope || _typeof$1(scope) !== 'object' || Array.isArray(scope) || !scope.appName) return null;
|
|
53718
|
+
return {
|
|
53719
|
+
version: scope.version === 'v2' ? 'v2' : 'v1',
|
|
53720
|
+
appName: String(scope.appName)
|
|
53721
|
+
};
|
|
53722
|
+
};
|
|
53723
|
+
var shouldClearChat = function shouldClearChat(previous, next) {
|
|
53724
|
+
if (!previous || !(next !== null && next !== void 0 && next.appName)) return false;
|
|
53725
|
+
if (previous.version !== next.version) return true;
|
|
53726
|
+
return next.version === 'v2' && previous.appName !== next.appName;
|
|
53727
|
+
};
|
|
53728
|
+
var getClientContext = function getClientContext() {
|
|
53729
|
+
try {
|
|
53730
|
+
var context = storage$2.appContext;
|
|
53731
|
+
if (context && _typeof$1(context) === 'object' && !Array.isArray(context)) {
|
|
53732
|
+
return context;
|
|
53733
|
+
}
|
|
53734
|
+
if (typeof context === 'string' && context.trim()) {
|
|
53735
|
+
var parsed = JSON.parse(context);
|
|
53736
|
+
if (parsed && _typeof$1(parsed) === 'object' && !Array.isArray(parsed)) {
|
|
53737
|
+
return parsed;
|
|
53738
|
+
}
|
|
53739
|
+
}
|
|
53740
|
+
} catch (e) {
|
|
53741
|
+
console.log('App context error');
|
|
53742
|
+
}
|
|
53743
|
+
return {};
|
|
53744
|
+
};
|
|
53745
|
+
var readSessionId = function readSessionId(session) {
|
|
53746
|
+
var id = session === null || session === void 0 ? void 0 : session.id;
|
|
53747
|
+
if (typeof id === 'string' && id.trim()) return id;
|
|
53748
|
+
if (typeof id === 'number' && Number.isFinite(id)) return String(id);
|
|
53749
|
+
return '';
|
|
53750
|
+
};
|
|
53751
|
+
var getStoredV2SessionId = function getStoredV2SessionId(appName) {
|
|
53752
|
+
if (!appName) return '';
|
|
53753
|
+
return readSessionId({
|
|
53754
|
+
id: storage$2.getLocalItem(v2SessionStorageKey(appName))
|
|
53755
|
+
});
|
|
53756
|
+
};
|
|
53757
|
+
var getV2AssistantContent = function getV2AssistantContent(data) {
|
|
53758
|
+
var _data$message, _choice$message;
|
|
53759
|
+
if (!data) return '';
|
|
53760
|
+
if (typeof data === 'string') return data;
|
|
53761
|
+
if (typeof data.content === 'string') return data.content;
|
|
53762
|
+
if (typeof ((_data$message = data.message) === null || _data$message === void 0 ? void 0 : _data$message.content) === 'string') return data.message.content;
|
|
53763
|
+
var choice = Array.isArray(data.choices) ? data.choices[0] : null;
|
|
53764
|
+
if (typeof (choice === null || choice === void 0 ? void 0 : (_choice$message = choice.message) === null || _choice$message === void 0 ? void 0 : _choice$message.content) === 'string') return choice.message.content;
|
|
53765
|
+
if (typeof (choice === null || choice === void 0 ? void 0 : choice.content) === 'string') return choice.content;
|
|
53766
|
+
return '';
|
|
53767
|
+
};
|
|
53660
53768
|
var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
53661
53769
|
var _ref$quickReplies = _ref.quickReplies,
|
|
53662
53770
|
quickReplies = _ref$quickReplies === void 0 ? [] : _ref$quickReplies;
|
|
@@ -53671,7 +53779,9 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
53671
53779
|
contextTopMessagesCount = _ref$contextTopMessag === void 0 ? 10 : _ref$contextTopMessag,
|
|
53672
53780
|
_ref$contextChunks = _ref.contextChunks,
|
|
53673
53781
|
contextChunks = _ref$contextChunks === void 0 ? 30 : _ref$contextChunks,
|
|
53674
|
-
mihelpAgentRef = _ref.mihelpAgentRef
|
|
53782
|
+
mihelpAgentRef = _ref.mihelpAgentRef,
|
|
53783
|
+
_ref$version = _ref.version,
|
|
53784
|
+
version = _ref$version === void 0 ? '' : _ref$version;
|
|
53675
53785
|
var _useState = React.useState(false),
|
|
53676
53786
|
_useState2 = _slicedToArray(_useState, 2),
|
|
53677
53787
|
showChatWindow = _useState2[0],
|
|
@@ -53689,6 +53799,7 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
53689
53799
|
collectionError = _useState8[0];
|
|
53690
53800
|
_useState8[1];
|
|
53691
53801
|
var retryCount = React.useRef(0);
|
|
53802
|
+
var requestIdRef = React.useRef(0);
|
|
53692
53803
|
var messagesContainerRef = React.useRef(null);
|
|
53693
53804
|
var inputContainerRef = React.useRef(null);
|
|
53694
53805
|
var spinnerRef = React.useRef(null);
|
|
@@ -53971,10 +54082,43 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
53971
54082
|
console.log('No context found');
|
|
53972
54083
|
}
|
|
53973
54084
|
};
|
|
54085
|
+
var currentAppName = getCurrentChatAppName();
|
|
54086
|
+
var chatVersion = isChatV2(version) ? 'v2' : 'v1';
|
|
54087
|
+
var clearChatTranscript = function clearChatTranscript() {
|
|
54088
|
+
setConversations([]);
|
|
54089
|
+
setFeedbacks({});
|
|
54090
|
+
setLastSentFromApp('');
|
|
54091
|
+
setMessage('');
|
|
54092
|
+
setMessageError(false);
|
|
54093
|
+
setCurrentContext(null);
|
|
54094
|
+
storage$2.setLocalItem(conversationStorageKey(chatVersion, currentAppName), []);
|
|
54095
|
+
if (chatVersion !== 'v2') {
|
|
54096
|
+
storage$2.setLocalItem('mihelpAgentFeedbacks', {});
|
|
54097
|
+
storage$2.setLocalItem('mihelpAgentLastSentApp', '');
|
|
54098
|
+
}
|
|
54099
|
+
};
|
|
53974
54100
|
React.useEffect(function () {
|
|
53975
|
-
|
|
53976
|
-
var
|
|
54101
|
+
if (!currentAppName) return undefined;
|
|
54102
|
+
var nextScope = {
|
|
54103
|
+
version: chatVersion,
|
|
54104
|
+
appName: currentAppName
|
|
54105
|
+
};
|
|
54106
|
+
var storedScope = normalizeChatScope(storage$2.getLocalItem(MIHELP_CHAT_SCOPE_KEY));
|
|
54107
|
+
storage$2.setLocalItem(MIHELP_CHAT_SCOPE_KEY, nextScope);
|
|
54108
|
+
if (shouldClearChat(storedScope, nextScope)) {
|
|
54109
|
+
requestIdRef.current += 1;
|
|
54110
|
+
setIsLoading(false);
|
|
54111
|
+
setMessage('');
|
|
54112
|
+
setMessageError(false);
|
|
54113
|
+
}
|
|
54114
|
+
var conversationsToBeSaved = readStoredConversations(conversationStorageKey(chatVersion, currentAppName));
|
|
53977
54115
|
setConversations(conversationsToBeSaved);
|
|
54116
|
+
if (chatVersion === 'v2') {
|
|
54117
|
+
setFeedbacks({});
|
|
54118
|
+
setLastSentFromApp('');
|
|
54119
|
+
setCurrentContext(null);
|
|
54120
|
+
return undefined;
|
|
54121
|
+
}
|
|
53978
54122
|
var feedbacksFromSession = storage$2.getLocalItem('mihelpAgentFeedbacks');
|
|
53979
54123
|
var lastSentApp = storage$2.getLocalItem('mihelpAgentLastSentApp');
|
|
53980
54124
|
var feedbacksToBeSaved = !isEmpty$2(feedbacksFromSession) ? feedbacksFromSession : {};
|
|
@@ -53985,6 +54129,9 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
53985
54129
|
} else {
|
|
53986
54130
|
setCurrentContext(null);
|
|
53987
54131
|
}
|
|
54132
|
+
return undefined;
|
|
54133
|
+
}, [chatVersion, currentAppName]);
|
|
54134
|
+
React.useEffect(function () {
|
|
53988
54135
|
if (mihelpAgentRef && _typeof$1(mihelpAgentRef) === 'object') {
|
|
53989
54136
|
mihelpAgentRef.current = {
|
|
53990
54137
|
openChat: function openChat() {
|
|
@@ -53997,8 +54144,9 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
53997
54144
|
}
|
|
53998
54145
|
}, []);
|
|
53999
54146
|
React.useEffect(function () {
|
|
54147
|
+
var conversationsKey = conversationStorageKey(chatVersion, currentAppName);
|
|
54000
54148
|
var handleStorageChange = function handleStorageChange(event) {
|
|
54001
|
-
if (event.key ===
|
|
54149
|
+
if (event.key === conversationsKey) {
|
|
54002
54150
|
var conversationsFromSession = JSON.parse(event.newValue);
|
|
54003
54151
|
var conversationsToBeSaved = !isEmpty$2(conversationsFromSession) ? conversationsFromSession : [];
|
|
54004
54152
|
setConversations(conversationsToBeSaved);
|
|
@@ -54021,7 +54169,7 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
54021
54169
|
return function () {
|
|
54022
54170
|
window.removeEventListener('storage', handleStorageChange);
|
|
54023
54171
|
};
|
|
54024
|
-
}, []);
|
|
54172
|
+
}, [chatVersion, currentAppName]);
|
|
54025
54173
|
var chatBodyRef = React.useRef(null);
|
|
54026
54174
|
var previousConversationLengthRef = React.useRef(conversations.length);
|
|
54027
54175
|
var previousShowChatWindowRef = React.useRef(showChatWindow);
|
|
@@ -54054,26 +54202,83 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
54054
54202
|
};
|
|
54055
54203
|
var _send = /*#__PURE__*/function () {
|
|
54056
54204
|
var _ref2 = _asyncToGenerator$1(/*#__PURE__*/_regenerator().m(function _callee(messages) {
|
|
54057
|
-
var
|
|
54205
|
+
var requestId, appNameAtSend, _storage$getLocalItem4, _storage$getLocalItem5, _response$data2, _response$data3, newMessages, _storage$getLocalItem2, _storage$getLocalItem3, _response$data, chatMessages, _payload, headers, sessionId, _endpoint, _response, content, nextSessionId, _newConversations, sentFromApp, messagesWithOutId, payload, endpoint, response, newConversations, _t;
|
|
54058
54206
|
return _regenerator().w(function (_context) {
|
|
54059
54207
|
while (1) switch (_context.p = _context.n) {
|
|
54060
54208
|
case 0:
|
|
54209
|
+
requestId = ++requestIdRef.current;
|
|
54210
|
+
appNameAtSend = getCurrentChatAppName();
|
|
54061
54211
|
setIsLoading(true);
|
|
54062
54212
|
setMessageError(false);
|
|
54063
54213
|
_context.p = 1;
|
|
54064
54214
|
newMessages = _toConsumableArray(sanitizeMessages(messages));
|
|
54065
|
-
|
|
54066
|
-
|
|
54067
|
-
|
|
54068
|
-
|
|
54069
|
-
|
|
54070
|
-
|
|
54071
|
-
|
|
54072
|
-
|
|
54073
|
-
|
|
54215
|
+
if (!isChatV2(version)) {
|
|
54216
|
+
_context.n = 6;
|
|
54217
|
+
break;
|
|
54218
|
+
}
|
|
54219
|
+
chatMessages = newMessages.filter(function (m) {
|
|
54220
|
+
return (m === null || m === void 0 ? void 0 : m.role) !== 'system';
|
|
54221
|
+
}).map(function (m) {
|
|
54222
|
+
return {
|
|
54223
|
+
role: m === null || m === void 0 ? void 0 : m.role,
|
|
54224
|
+
content: m === null || m === void 0 ? void 0 : m.content
|
|
54225
|
+
};
|
|
54226
|
+
});
|
|
54227
|
+
_payload = {
|
|
54228
|
+
client_context: getClientContext(),
|
|
54229
|
+
messages: chatMessages
|
|
54230
|
+
};
|
|
54231
|
+
headers = {
|
|
54232
|
+
'Content-Type': 'application/json'
|
|
54233
|
+
};
|
|
54234
|
+
sessionId = getStoredV2SessionId(appNameAtSend);
|
|
54235
|
+
if (sessionId) {
|
|
54236
|
+
headers['X-Session-Id'] = sessionId;
|
|
54237
|
+
}
|
|
54238
|
+
_endpoint = (_storage$getLocalItem2 = storage$2.getLocalItem('opsportal-core:config')) === null || _storage$getLocalItem2 === void 0 ? void 0 : (_storage$getLocalItem3 = _storage$getLocalItem2.endpoints) === null || _storage$getLocalItem3 === void 0 ? void 0 : _storage$getLocalItem3.lotAgentChat;
|
|
54239
|
+
if (_endpoint) {
|
|
54240
|
+
_context.n = 2;
|
|
54241
|
+
break;
|
|
54242
|
+
}
|
|
54243
|
+
console.log('MiHelpAgent: lotAgentChat endpoint missing from config');
|
|
54244
|
+
throw new Error('MiHelpAgent: lotAgentChat endpoint missing from config');
|
|
54245
|
+
case 2:
|
|
54246
|
+
_context.n = 3;
|
|
54247
|
+
return fetcher$1.post(_endpoint, _payload, {
|
|
54248
|
+
headers: headers
|
|
54074
54249
|
});
|
|
54075
|
-
|
|
54076
|
-
|
|
54250
|
+
case 3:
|
|
54251
|
+
_response = _context.v;
|
|
54252
|
+
if (!(requestId !== requestIdRef.current)) {
|
|
54253
|
+
_context.n = 4;
|
|
54254
|
+
break;
|
|
54255
|
+
}
|
|
54256
|
+
return _context.a(2);
|
|
54257
|
+
case 4:
|
|
54258
|
+
content = getV2AssistantContent(_response === null || _response === void 0 ? void 0 : _response.data);
|
|
54259
|
+
if (content) {
|
|
54260
|
+
_context.n = 5;
|
|
54261
|
+
break;
|
|
54262
|
+
}
|
|
54263
|
+
throw new Error('MiHelpAgent: empty v2 response');
|
|
54264
|
+
case 5:
|
|
54265
|
+
nextSessionId = readSessionId(_response === null || _response === void 0 ? void 0 : (_response$data = _response.data) === null || _response$data === void 0 ? void 0 : _response$data.session);
|
|
54266
|
+
if (nextSessionId && appNameAtSend) {
|
|
54267
|
+
storage$2.setLocalItem(v2SessionStorageKey(appNameAtSend), nextSessionId);
|
|
54268
|
+
}
|
|
54269
|
+
setIsLoading(false);
|
|
54270
|
+
_newConversations = [].concat(_toConsumableArray(newMessages), [{
|
|
54271
|
+
role: 'assistant',
|
|
54272
|
+
content: content,
|
|
54273
|
+
id: nonSecure()
|
|
54274
|
+
}]);
|
|
54275
|
+
setConversations(_newConversations);
|
|
54276
|
+
if (appNameAtSend) {
|
|
54277
|
+
storage$2.setLocalItem(conversationStorageKey('v2', appNameAtSend), _newConversations);
|
|
54278
|
+
}
|
|
54279
|
+
return _context.a(2);
|
|
54280
|
+
case 6:
|
|
54281
|
+
sentFromApp = appNameAtSend;
|
|
54077
54282
|
if (systemPrompt && typeof systemPrompt === 'string') {
|
|
54078
54283
|
if (!currentContext) {
|
|
54079
54284
|
if (!newMessages.find(function (m) {
|
|
@@ -54093,7 +54298,7 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
54093
54298
|
if (storage$2.appContext) {
|
|
54094
54299
|
setCurrentContext(storage$2.appContext);
|
|
54095
54300
|
}
|
|
54096
|
-
} else if (!equals$1(currentContext, storage$2.appContext) || lastSentFromApp !==
|
|
54301
|
+
} else if (!equals$1(currentContext, storage$2.appContext) || lastSentFromApp !== sentFromApp) {
|
|
54097
54302
|
setCurrentContext(storage$2.appContext);
|
|
54098
54303
|
newMessages.splice(newMessages.length - 1, 0, {
|
|
54099
54304
|
role: 'system',
|
|
@@ -54117,52 +54322,64 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
54117
54322
|
messages: messagesWithOutId,
|
|
54118
54323
|
// collection,
|
|
54119
54324
|
last_n: contextMessagesCount,
|
|
54120
|
-
app_name:
|
|
54325
|
+
app_name: sentFromApp,
|
|
54121
54326
|
k: contextChunks,
|
|
54122
54327
|
top_n: contextTopMessagesCount,
|
|
54123
54328
|
user_email: storage$2.userEmail
|
|
54124
54329
|
};
|
|
54125
|
-
endpoint = (_storage$
|
|
54126
|
-
_context.n =
|
|
54330
|
+
endpoint = (_storage$getLocalItem4 = storage$2.getLocalItem('opsportal-core:config')) === null || _storage$getLocalItem4 === void 0 ? void 0 : (_storage$getLocalItem5 = _storage$getLocalItem4.endpoints) === null || _storage$getLocalItem5 === void 0 ? void 0 : _storage$getLocalItem5.mihelpChat;
|
|
54331
|
+
_context.n = 7;
|
|
54127
54332
|
return fetcher$1.post(endpoint, payload, {
|
|
54128
54333
|
headers: {
|
|
54129
54334
|
'Content-Type': 'application/json'
|
|
54130
54335
|
}
|
|
54131
54336
|
});
|
|
54132
|
-
case
|
|
54337
|
+
case 7:
|
|
54133
54338
|
response = _context.v;
|
|
54134
|
-
|
|
54339
|
+
if (!(requestId !== requestIdRef.current)) {
|
|
54340
|
+
_context.n = 8;
|
|
54341
|
+
break;
|
|
54342
|
+
}
|
|
54343
|
+
return _context.a(2);
|
|
54344
|
+
case 8:
|
|
54345
|
+
setLastSentFromApp(sentFromApp);
|
|
54135
54346
|
setIsLoading(false);
|
|
54136
54347
|
newConversations = [].concat(_toConsumableArray(newMessages), [{
|
|
54137
54348
|
role: 'assistant',
|
|
54138
|
-
content: response === null || response === void 0 ? void 0 : (_response$
|
|
54139
|
-
retrievedDocuments: response === null || response === void 0 ? void 0 : (_response$
|
|
54349
|
+
content: response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : _response$data2.content,
|
|
54350
|
+
retrievedDocuments: response === null || response === void 0 ? void 0 : (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : _response$data3.retrieved_documents,
|
|
54140
54351
|
id: nonSecure()
|
|
54141
54352
|
}]);
|
|
54142
54353
|
setConversations(newConversations);
|
|
54143
54354
|
storage$2.setLocalItem('mihelpAgentConversations', newConversations);
|
|
54144
|
-
storage$2.setLocalItem('mihelpAgentLastSentApp',
|
|
54145
|
-
_context.n =
|
|
54355
|
+
storage$2.setLocalItem('mihelpAgentLastSentApp', sentFromApp);
|
|
54356
|
+
_context.n = 12;
|
|
54146
54357
|
break;
|
|
54147
|
-
case
|
|
54148
|
-
_context.p =
|
|
54358
|
+
case 9:
|
|
54359
|
+
_context.p = 9;
|
|
54149
54360
|
_t = _context.v;
|
|
54361
|
+
if (!(requestId !== requestIdRef.current)) {
|
|
54362
|
+
_context.n = 10;
|
|
54363
|
+
break;
|
|
54364
|
+
}
|
|
54365
|
+
return _context.a(2);
|
|
54366
|
+
case 10:
|
|
54150
54367
|
if (!(retryCount.current < 3)) {
|
|
54151
|
-
_context.n =
|
|
54368
|
+
_context.n = 11;
|
|
54152
54369
|
break;
|
|
54153
54370
|
}
|
|
54154
54371
|
retryCount.current++;
|
|
54155
54372
|
_send(messages);
|
|
54156
54373
|
return _context.a(2);
|
|
54157
|
-
case
|
|
54374
|
+
case 11:
|
|
54158
54375
|
retryCount.current = 0;
|
|
54159
54376
|
setMessageError(true);
|
|
54160
54377
|
setIsLoading(false);
|
|
54161
54378
|
console.log(_t);
|
|
54162
|
-
case
|
|
54379
|
+
case 12:
|
|
54163
54380
|
return _context.a(2);
|
|
54164
54381
|
}
|
|
54165
|
-
}, _callee, null, [[1,
|
|
54382
|
+
}, _callee, null, [[1, 9]]);
|
|
54166
54383
|
}));
|
|
54167
54384
|
return function send(_x) {
|
|
54168
54385
|
return _ref2.apply(this, arguments);
|
|
@@ -54229,12 +54446,10 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
54229
54446
|
}
|
|
54230
54447
|
}, [quickReplies]);
|
|
54231
54448
|
var handleNewConversation = function handleNewConversation() {
|
|
54232
|
-
|
|
54233
|
-
|
|
54234
|
-
storage$2.
|
|
54235
|
-
|
|
54236
|
-
setMessageError(false);
|
|
54237
|
-
setCurrentContext(null);
|
|
54449
|
+
requestIdRef.current += 1;
|
|
54450
|
+
var appName = getCurrentChatAppName();
|
|
54451
|
+
if (appName) storage$2.removeLocalItem(v2SessionStorageKey(appName));
|
|
54452
|
+
clearChatTranscript();
|
|
54238
54453
|
};
|
|
54239
54454
|
var handleDownload = /*#__PURE__*/function () {
|
|
54240
54455
|
var _ref3 = _asyncToGenerator$1(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
@@ -54313,7 +54528,7 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
54313
54528
|
}();
|
|
54314
54529
|
var updateFeedback = /*#__PURE__*/function () {
|
|
54315
54530
|
var _ref4 = _asyncToGenerator$1(/*#__PURE__*/_regenerator().m(function _callee3(feedback, Currentconversation, conversations) {
|
|
54316
|
-
var _storage$
|
|
54531
|
+
var _storage$getLocalItem6, _storage$getLocalItem7;
|
|
54317
54532
|
var payload, feedbackEndpoint, endpoint, newConversations, _t3;
|
|
54318
54533
|
return _regenerator().w(function (_context3) {
|
|
54319
54534
|
while (1) switch (_context3.p = _context3.n) {
|
|
@@ -54322,7 +54537,7 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
54322
54537
|
payload = {
|
|
54323
54538
|
feedback: feedback
|
|
54324
54539
|
};
|
|
54325
|
-
feedbackEndpoint = (_storage$
|
|
54540
|
+
feedbackEndpoint = (_storage$getLocalItem6 = storage$2.getLocalItem('opsportal-core:config')) === null || _storage$getLocalItem6 === void 0 ? void 0 : (_storage$getLocalItem7 = _storage$getLocalItem6.endpoints) === null || _storage$getLocalItem7 === void 0 ? void 0 : _storage$getLocalItem7.mihelpChatFeedback;
|
|
54326
54541
|
if (feedbackEndpoint) {
|
|
54327
54542
|
_context3.n = 1;
|
|
54328
54543
|
break;
|
|
@@ -54370,7 +54585,7 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
54370
54585
|
}();
|
|
54371
54586
|
var handleFeedback = /*#__PURE__*/function () {
|
|
54372
54587
|
var _ref5 = _asyncToGenerator$1(/*#__PURE__*/_regenerator().m(function _callee4(feedback, Currentconversation, conversations) {
|
|
54373
|
-
var _storage$
|
|
54588
|
+
var _storage$getLocalItem8, _storage$getLocalItem9;
|
|
54374
54589
|
var conversationsUntilCurrentMessage, lastFeedbackIndex, chatHistoryAfterLastFeedback, chatHistoryWithoutSystemPrompts, payload, endpoint, response, newConversations, newFeedbacks, _t4;
|
|
54375
54590
|
return _regenerator().w(function (_context4) {
|
|
54376
54591
|
while (1) switch (_context4.p = _context4.n) {
|
|
@@ -54408,7 +54623,7 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
54408
54623
|
timestamp: new Date().toISOString(),
|
|
54409
54624
|
user_email: storage$2.userEmail
|
|
54410
54625
|
};
|
|
54411
|
-
endpoint = (_storage$
|
|
54626
|
+
endpoint = (_storage$getLocalItem8 = storage$2.getLocalItem('opsportal-core:config')) === null || _storage$getLocalItem8 === void 0 ? void 0 : (_storage$getLocalItem9 = _storage$getLocalItem8.endpoints) === null || _storage$getLocalItem9 === void 0 ? void 0 : _storage$getLocalItem9.mihelpChatFeedback;
|
|
54412
54627
|
if (endpoint) {
|
|
54413
54628
|
_context4.n = 3;
|
|
54414
54629
|
break;
|
|
@@ -54428,10 +54643,10 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
54428
54643
|
case 5:
|
|
54429
54644
|
response = _context4.v;
|
|
54430
54645
|
newConversations = conversations.map(function (conversation) {
|
|
54431
|
-
var _response$
|
|
54646
|
+
var _response$data4;
|
|
54432
54647
|
return (conversation === null || conversation === void 0 ? void 0 : conversation.id) === (Currentconversation === null || Currentconversation === void 0 ? void 0 : Currentconversation.id) ? _objectSpread2(_objectSpread2({}, conversation), {}, {
|
|
54433
54648
|
feedback: feedback,
|
|
54434
|
-
feedbackId: response === null || response === void 0 ? void 0 : (_response$
|
|
54649
|
+
feedbackId: response === null || response === void 0 ? void 0 : (_response$data4 = response.data) === null || _response$data4 === void 0 ? void 0 : _response$data4.feedback_id
|
|
54435
54650
|
}) : conversation;
|
|
54436
54651
|
});
|
|
54437
54652
|
newFeedbacks = _objectSpread2(_objectSpread2({}, feedbacks), {}, _defineProperty$2({}, Currentconversation === null || Currentconversation === void 0 ? void 0 : Currentconversation.id, chatHistoryWithoutSystemPrompts));
|
|
@@ -54589,7 +54804,7 @@ var MiHelpAgent = function MiHelpAgent(_ref) {
|
|
|
54589
54804
|
dangerouslySetInnerHTML: {
|
|
54590
54805
|
__html: conversation === null || conversation === void 0 ? void 0 : conversation.content
|
|
54591
54806
|
}
|
|
54592
|
-
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
54807
|
+
}), !isChatV2(version) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
54593
54808
|
className: "utilities_ops-app-frame_MiHelpAgent_MiHelpAgent--feedbackContainer"
|
|
54594
54809
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
54595
54810
|
onClick: function onClick() {
|
|
@@ -66144,7 +66359,7 @@ var SCROLL = {
|
|
|
66144
66359
|
var NO_SCROLL = {};
|
|
66145
66360
|
var defaultSystemPrompt = 'Format all of the subsequent AI responses in valid HTML5, without markdown code blocks or any additional formatting, ensuring that the response consists only of raw HTML tags. Format your response in this structure:<html> <p> Your answer here </p> </html>';
|
|
66146
66361
|
var AppFrame = function AppFrame(props) {
|
|
66147
|
-
var _props$location, _props$mihelpAgentPro, _props$mihelpAgentPro2, _props$mihelpAgentPro3, _props$mihelpAgentPro4, _props$mihelpAgentPro5, _props$mihelpAgentPro6, _props$mihelpAgentPro7, _props$mihelpAgentPro8;
|
|
66362
|
+
var _props$location, _props$mihelpAgentPro, _props$mihelpAgentPro2, _props$mihelpAgentPro3, _props$mihelpAgentPro4, _props$mihelpAgentPro5, _props$mihelpAgentPro6, _props$mihelpAgentPro7, _props$mihelpAgentPro8, _props$mihelpAgentPro9;
|
|
66148
66363
|
// Set window.toolkitEnv synchronously so it's available for child components that mount immediately
|
|
66149
66364
|
if (props.env) {
|
|
66150
66365
|
window.toolkitEnv = props.env;
|
|
@@ -66335,7 +66550,8 @@ var AppFrame = function AppFrame(props) {
|
|
|
66335
66550
|
contextMessagesCount: props === null || props === void 0 ? void 0 : (_props$mihelpAgentPro5 = props.mihelpAgentProps) === null || _props$mihelpAgentPro5 === void 0 ? void 0 : _props$mihelpAgentPro5.contextMessagesCount,
|
|
66336
66551
|
contextTopMessagesCount: props === null || props === void 0 ? void 0 : (_props$mihelpAgentPro6 = props.mihelpAgentProps) === null || _props$mihelpAgentPro6 === void 0 ? void 0 : _props$mihelpAgentPro6.contextTopMessagesCount,
|
|
66337
66552
|
contextChunks: props === null || props === void 0 ? void 0 : (_props$mihelpAgentPro7 = props.mihelpAgentProps) === null || _props$mihelpAgentPro7 === void 0 ? void 0 : _props$mihelpAgentPro7.contextChunksCount,
|
|
66338
|
-
mihelpAgentRef: props === null || props === void 0 ? void 0 : (_props$mihelpAgentPro8 = props.mihelpAgentProps) === null || _props$mihelpAgentPro8 === void 0 ? void 0 : _props$mihelpAgentPro8.mihelpAgentRef
|
|
66553
|
+
mihelpAgentRef: props === null || props === void 0 ? void 0 : (_props$mihelpAgentPro8 = props.mihelpAgentProps) === null || _props$mihelpAgentPro8 === void 0 ? void 0 : _props$mihelpAgentPro8.mihelpAgentRef,
|
|
66554
|
+
version: props === null || props === void 0 ? void 0 : (_props$mihelpAgentPro9 = props.mihelpAgentProps) === null || _props$mihelpAgentPro9 === void 0 ? void 0 : _props$mihelpAgentPro9.version
|
|
66339
66555
|
})))))));
|
|
66340
66556
|
};
|
|
66341
66557
|
AppFrame.defaultProps = {
|
|
@@ -72347,7 +72563,8 @@ function hydratePermissions(_x2) {
|
|
|
72347
72563
|
* @param {boolean} [options.permissionsOnlyIfArray=true] - Only set permissions when shell returns an array
|
|
72348
72564
|
* @param {boolean} [options.autoSendAppEnv=true] - Post toolkit env to shell during bootstrap
|
|
72349
72565
|
* @param {object} [options.toolkitEnv] - Env payload; defaults to build-time process.env values
|
|
72350
|
-
* @param {object|null} [options.mihelpAgentProps=null] - Optional miHelp agent props for SET_APP_ENV
|
|
72566
|
+
* @param {object|null} [options.mihelpAgentProps=null] - Optional miHelp agent props for SET_APP_ENV.
|
|
72567
|
+
* `version: 'v2'` uses `endpoints.lotAgentChat` from core config and sends `storage.appContext` as `client_context`.
|
|
72351
72568
|
* @param {(oldSettings: *, newSettings: *) => void} [options.onSettingsSaved] - When set, shell
|
|
72352
72569
|
* notifies this callback on settings save instead of reloading the iframe (same contract as
|
|
72353
72570
|
* the former AppFrame onSettingsSaved prop). When omitted, the shell reloads the iframe.
|