@copart/ops-tool-kit 1.12.0-alpha.2 → 1.12.0-alpha.21
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 +626 -333
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +3 -2
package/dist/ops-tool-kit.js
CHANGED
|
@@ -32,7 +32,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
32
32
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
33
33
|
|
|
34
34
|
const name$r = "@copart/ops-tool-kit";
|
|
35
|
-
const version$7 = "1.12.0-alpha.
|
|
35
|
+
const version$7 = "1.12.0-alpha.21";
|
|
36
36
|
const main$1 = "dist/ops-tool-kit.js";
|
|
37
37
|
const style = "dist/ops-tool-kit.css";
|
|
38
38
|
const files = [
|
|
@@ -86,7 +86,8 @@ const devDependencies$1 = {
|
|
|
86
86
|
rollup: "^2.22.1",
|
|
87
87
|
"rollup-plugin-analyzer": "^3.3.0",
|
|
88
88
|
"rollup-plugin-filesize": "9.0.2",
|
|
89
|
-
"rollup-plugin-postcss": "^3.1.3"
|
|
89
|
+
"rollup-plugin-postcss": "^3.1.3",
|
|
90
|
+
"@rollup/plugin-replace": "5.0.5"
|
|
90
91
|
};
|
|
91
92
|
const peerDependencies = {
|
|
92
93
|
"@copart/core-components": "2.3.0-alpha.filters.6",
|
|
@@ -852,7 +853,7 @@ var b$1 = "function" === typeof Symbol && Symbol.for,
|
|
|
852
853
|
d = b$1 ? Symbol.for("react.portal") : 60106,
|
|
853
854
|
e = b$1 ? Symbol.for("react.fragment") : 60107,
|
|
854
855
|
f = b$1 ? Symbol.for("react.strict_mode") : 60108,
|
|
855
|
-
g
|
|
856
|
+
g = b$1 ? Symbol.for("react.profiler") : 60114,
|
|
856
857
|
h$1 = b$1 ? Symbol.for("react.provider") : 60109,
|
|
857
858
|
k$1 = b$1 ? Symbol.for("react.context") : 60110,
|
|
858
859
|
l = b$1 ? Symbol.for("react.async_mode") : 60111,
|
|
@@ -875,7 +876,7 @@ function z$1(a) {
|
|
|
875
876
|
case l:
|
|
876
877
|
case m:
|
|
877
878
|
case e:
|
|
878
|
-
case g
|
|
879
|
+
case g:
|
|
879
880
|
case f:
|
|
880
881
|
case p:
|
|
881
882
|
return a;
|
|
@@ -909,7 +910,7 @@ var Fragment = e;
|
|
|
909
910
|
var Lazy = t;
|
|
910
911
|
var Memo = r;
|
|
911
912
|
var Portal = d;
|
|
912
|
-
var Profiler = g
|
|
913
|
+
var Profiler = g;
|
|
913
914
|
var StrictMode = f;
|
|
914
915
|
var Suspense = p;
|
|
915
916
|
var isAsyncMode = function (a) {
|
|
@@ -941,7 +942,7 @@ var isPortal = function (a) {
|
|
|
941
942
|
return z$1(a) === d;
|
|
942
943
|
};
|
|
943
944
|
var isProfiler = function (a) {
|
|
944
|
-
return z$1(a) === g
|
|
945
|
+
return z$1(a) === g;
|
|
945
946
|
};
|
|
946
947
|
var isStrictMode = function (a) {
|
|
947
948
|
return z$1(a) === f;
|
|
@@ -950,7 +951,7 @@ var isSuspense = function (a) {
|
|
|
950
951
|
return z$1(a) === p;
|
|
951
952
|
};
|
|
952
953
|
var isValidElementType = function (a) {
|
|
953
|
-
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g
|
|
954
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q$1 || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h$1 || a.$$typeof === k$1 || a.$$typeof === n || a.$$typeof === w$1 || a.$$typeof === x$1 || a.$$typeof === y || a.$$typeof === v);
|
|
954
955
|
};
|
|
955
956
|
var typeOf = z$1;
|
|
956
957
|
|
|
@@ -2785,6 +2786,12 @@ var createOpsStorage = function createOpsStorage() {
|
|
|
2785
2786
|
var appAuthName = appData ? appData.appAuthName : (_window$toolkitEnv4 = window.toolkitEnv) !== null && _window$toolkitEnv4 !== void 0 && _window$toolkitEnv4.APP_AUTH_NAME ? window.toolkitEnv.APP_AUTH_NAME : process.env.APP_AUTH_NAME;
|
|
2786
2787
|
return appAuthName ? storage$1.getLocalItem("".concat(appAuthName, ":permissions")) : [];
|
|
2787
2788
|
},
|
|
2789
|
+
get appScopesAndFunctions() {
|
|
2790
|
+
return getLocalItem('appScopesAndFunctions') || [];
|
|
2791
|
+
},
|
|
2792
|
+
get userAppScopes() {
|
|
2793
|
+
return getLocalItem('login', 'userAppScopes') || [];
|
|
2794
|
+
},
|
|
2788
2795
|
get coreConfig() {
|
|
2789
2796
|
return getLocalItem('opsportal-core:config');
|
|
2790
2797
|
},
|
|
@@ -3666,12 +3673,12 @@ function nonStandardBrowserEnv() {
|
|
|
3666
3673
|
|
|
3667
3674
|
// btoa polyfill for IE<10 courtesy https://github.com/davidchambers/Base64.js
|
|
3668
3675
|
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
3669
|
-
function E() {
|
|
3676
|
+
function E$1() {
|
|
3670
3677
|
this.message = 'String contains an invalid character';
|
|
3671
3678
|
}
|
|
3672
|
-
E.prototype = new Error();
|
|
3673
|
-
E.prototype.code = 5;
|
|
3674
|
-
E.prototype.name = 'InvalidCharacterError';
|
|
3679
|
+
E$1.prototype = new Error();
|
|
3680
|
+
E$1.prototype.code = 5;
|
|
3681
|
+
E$1.prototype.name = 'InvalidCharacterError';
|
|
3675
3682
|
function btoa$2(input) {
|
|
3676
3683
|
var str = String(input);
|
|
3677
3684
|
var output = '';
|
|
@@ -3686,7 +3693,7 @@ function btoa$2(input) {
|
|
|
3686
3693
|
output += map.charAt(63 & block >> 8 - idx % 1 * 8)) {
|
|
3687
3694
|
charCode = str.charCodeAt(idx += 3 / 4);
|
|
3688
3695
|
if (charCode > 0xFF) {
|
|
3689
|
-
throw new E();
|
|
3696
|
+
throw new E$1();
|
|
3690
3697
|
}
|
|
3691
3698
|
block = block << 8 | charCode;
|
|
3692
3699
|
}
|
|
@@ -5367,40 +5374,46 @@ var getConfig = /*#__PURE__*/function () {
|
|
|
5367
5374
|
response = _context.sent;
|
|
5368
5375
|
config = response.data.data; // Fill in values needed for access checks.
|
|
5369
5376
|
config.tiles = hydrateTiles(config.tiles);
|
|
5377
|
+
config.tileOverrides = hydrateTiles(config.tileOverrides);
|
|
5370
5378
|
return _context.abrupt("return", config);
|
|
5371
|
-
case
|
|
5372
|
-
_context.prev =
|
|
5379
|
+
case 12:
|
|
5380
|
+
_context.prev = 12;
|
|
5373
5381
|
_context.t0 = _context["catch"](0);
|
|
5374
5382
|
if (!JSON.stringify(_context.t0.response.data).includes('503')) {
|
|
5375
|
-
_context.next =
|
|
5383
|
+
_context.next = 18;
|
|
5376
5384
|
break;
|
|
5377
5385
|
}
|
|
5378
5386
|
return _context.abrupt("return", Promise.reject(new Error('Fetch Error, Please make sure you are on the Copart network')));
|
|
5379
|
-
case 17:
|
|
5380
|
-
Promise.reject(_context.t0);
|
|
5381
5387
|
case 18:
|
|
5388
|
+
Promise.reject(_context.t0);
|
|
5389
|
+
case 19:
|
|
5382
5390
|
case "end":
|
|
5383
5391
|
return _context.stop();
|
|
5384
5392
|
}
|
|
5385
|
-
}, _callee, null, [[0,
|
|
5393
|
+
}, _callee, null, [[0, 12]]);
|
|
5386
5394
|
}));
|
|
5387
5395
|
return function getConfig(_x) {
|
|
5388
5396
|
return _ref.apply(this, arguments);
|
|
5389
5397
|
};
|
|
5390
5398
|
}();
|
|
5391
|
-
var
|
|
5399
|
+
var tileFilter = function tileFilter(tile) {
|
|
5392
5400
|
var _window$toolkitEnv;
|
|
5393
5401
|
var appName = (_window$toolkitEnv = window.toolkitEnv) !== null && _window$toolkitEnv !== void 0 && _window$toolkitEnv.APP_NAME ? window.toolkitEnv.APP_NAME : process.env.APP_NAME;
|
|
5394
5402
|
if (window.location.pathname.includes('embedded')) {
|
|
5395
5403
|
appName = window.location.pathname;
|
|
5396
5404
|
}
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5405
|
+
if (tile.appName) {
|
|
5406
|
+
return tile.appName === 'embedded' ? tile.path === appName : tile.appName === appName;
|
|
5407
|
+
} else {
|
|
5408
|
+
return tile.path === "/".concat(appName);
|
|
5409
|
+
}
|
|
5410
|
+
};
|
|
5411
|
+
var findAppData = function findAppData() {
|
|
5412
|
+
var tiles = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
5413
|
+
var tileOverrides = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
5414
|
+
var matchingTiles = [];
|
|
5415
|
+
matchingTiles = matchingTiles.concat(tileOverrides.filter(tileFilter));
|
|
5416
|
+
matchingTiles = matchingTiles.concat(tiles.filter(tileFilter));
|
|
5404
5417
|
if (matchingTiles.length > 1) {
|
|
5405
5418
|
var currentLocation = window.location.pathname;
|
|
5406
5419
|
return matchingTiles.find(function (tile) {
|
|
@@ -5423,7 +5436,7 @@ var getAppTileData = /*#__PURE__*/function () {
|
|
|
5423
5436
|
case 3:
|
|
5424
5437
|
config = _context2.sent;
|
|
5425
5438
|
storage.setLocalItem('opsportal-core:config', config);
|
|
5426
|
-
return _context2.abrupt("return", findAppData(config.tiles
|
|
5439
|
+
return _context2.abrupt("return", findAppData(config.tiles, config.tileOverrides));
|
|
5427
5440
|
case 6:
|
|
5428
5441
|
case "end":
|
|
5429
5442
|
return _context2.stop();
|
|
@@ -5446,17 +5459,54 @@ var getHeaders$1 = function getHeaders() {
|
|
|
5446
5459
|
};
|
|
5447
5460
|
};
|
|
5448
5461
|
var getPermissions = /*#__PURE__*/function () {
|
|
5449
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(appName) {
|
|
5450
|
-
var _storage$getLocalItem, _storage$getLocalItem2,
|
|
5462
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(appName, useAppScopes) {
|
|
5463
|
+
var permissions, userAppScopes, allAppScopesAndFunctions, currentAppScopesAndFunctions, _currentAppScopesAndF, appFunctions, appFunctionsMap, _storage$getLocalItem, _storage$getLocalItem2, endpoint, response, appDetails;
|
|
5451
5464
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
5452
5465
|
while (1) switch (_context.prev = _context.next) {
|
|
5453
5466
|
case 0:
|
|
5454
5467
|
_context.prev = 0;
|
|
5455
5468
|
permissions = [];
|
|
5469
|
+
if (!useAppScopes) {
|
|
5470
|
+
_context.next = 9;
|
|
5471
|
+
break;
|
|
5472
|
+
}
|
|
5473
|
+
userAppScopes = Array.isArray(storage.userAppScopes) ? storage.userAppScopes : [];
|
|
5474
|
+
allAppScopesAndFunctions = storage.appScopesAndFunctions;
|
|
5475
|
+
currentAppScopesAndFunctions = allAppScopesAndFunctions.find(function (scope) {
|
|
5476
|
+
return scope.appName === appName;
|
|
5477
|
+
});
|
|
5478
|
+
if (currentAppScopesAndFunctions) {
|
|
5479
|
+
appFunctions = {}, appFunctionsMap = {};
|
|
5480
|
+
(_currentAppScopesAndF = currentAppScopesAndFunctions.scopes) === null || _currentAppScopesAndF === void 0 ? void 0 : _currentAppScopesAndF.forEach(function (scope) {
|
|
5481
|
+
var scopeName = scope.appscope;
|
|
5482
|
+
var userHasScope = userAppScopes.find(function (appScope) {
|
|
5483
|
+
return appScope.appName === appName && appScope.scopeName === scopeName;
|
|
5484
|
+
});
|
|
5485
|
+
if (userHasScope) {
|
|
5486
|
+
scope.applicationFunctions.forEach(function (appFunc) {
|
|
5487
|
+
if (!appFunctionsMap[appFunc]) {
|
|
5488
|
+
appFunctionsMap[appFunc] = true;
|
|
5489
|
+
appFunctions[appFunc] = {
|
|
5490
|
+
name: appFunc,
|
|
5491
|
+
description: appFunc,
|
|
5492
|
+
hierarchyDetails: userHasScope.hierarchies
|
|
5493
|
+
};
|
|
5494
|
+
} else {
|
|
5495
|
+
var _appFunctions$appFunc;
|
|
5496
|
+
(_appFunctions$appFunc = appFunctions[appFunc]) === null || _appFunctions$appFunc === void 0 ? void 0 : _appFunctions$appFunc.hierarchyDetails.concat(userHasScope.hierarchies);
|
|
5497
|
+
}
|
|
5498
|
+
});
|
|
5499
|
+
}
|
|
5500
|
+
});
|
|
5501
|
+
permissions = Object.values(appFunctions);
|
|
5502
|
+
}
|
|
5503
|
+
_context.next = 15;
|
|
5504
|
+
break;
|
|
5505
|
+
case 9:
|
|
5456
5506
|
endpoint = (_storage$getLocalItem = storage.getLocalItem('opsportal-core:config')) === null || _storage$getLocalItem === void 0 ? void 0 : (_storage$getLocalItem2 = _storage$getLocalItem.endpoints) === null || _storage$getLocalItem2 === void 0 ? void 0 : _storage$getLocalItem2.g2AppPermissions;
|
|
5457
|
-
_context.next =
|
|
5507
|
+
_context.next = 12;
|
|
5458
5508
|
return fetcher.get("".concat(endpoint).concat(appName), getHeaders$1());
|
|
5459
|
-
case
|
|
5509
|
+
case 12:
|
|
5460
5510
|
response = _context.sent;
|
|
5461
5511
|
appDetails = response.data.applications.find(function (app) {
|
|
5462
5512
|
return app.name === appName;
|
|
@@ -5464,25 +5514,26 @@ var getPermissions = /*#__PURE__*/function () {
|
|
|
5464
5514
|
if (appDetails) {
|
|
5465
5515
|
permissions = appDetails.applicationFunctions;
|
|
5466
5516
|
}
|
|
5517
|
+
case 15:
|
|
5467
5518
|
storage.setLocalItem("".concat(appName, ":permissions"), permissions);
|
|
5468
5519
|
return _context.abrupt("return", permissions);
|
|
5469
|
-
case
|
|
5470
|
-
_context.prev =
|
|
5520
|
+
case 19:
|
|
5521
|
+
_context.prev = 19;
|
|
5471
5522
|
_context.t0 = _context["catch"](0);
|
|
5472
5523
|
if (!(_context.t0.response && JSON.stringify(_context.t0.response.data).includes('503'))) {
|
|
5473
|
-
_context.next =
|
|
5524
|
+
_context.next = 25;
|
|
5474
5525
|
break;
|
|
5475
5526
|
}
|
|
5476
5527
|
return _context.abrupt("return", Promise.reject(new Error('Fetch Error, Please make sure you are on the Copart network')));
|
|
5477
|
-
case
|
|
5528
|
+
case 25:
|
|
5478
5529
|
Promise.reject(_context.t0);
|
|
5479
|
-
case
|
|
5530
|
+
case 26:
|
|
5480
5531
|
case "end":
|
|
5481
5532
|
return _context.stop();
|
|
5482
5533
|
}
|
|
5483
|
-
}, _callee, null, [[0,
|
|
5534
|
+
}, _callee, null, [[0, 19]]);
|
|
5484
5535
|
}));
|
|
5485
|
-
return function getPermissions(_x) {
|
|
5536
|
+
return function getPermissions(_x, _x2) {
|
|
5486
5537
|
return _ref.apply(this, arguments);
|
|
5487
5538
|
};
|
|
5488
5539
|
}();
|
|
@@ -5589,17 +5640,17 @@ var getDefaultYard = function getDefaultYard(country) {
|
|
|
5589
5640
|
var stack = (_window$toolkitEnv = window.toolkitEnv) !== null && _window$toolkitEnv !== void 0 && _window$toolkitEnv.STACK ? window.toolkitEnv.STACK : process.env.STACK;
|
|
5590
5641
|
if (stack === 'uk') {
|
|
5591
5642
|
return {
|
|
5592
|
-
name:
|
|
5643
|
+
name: 'COPART UK',
|
|
5593
5644
|
number: 400,
|
|
5594
|
-
userSecurityLevel:
|
|
5645
|
+
userSecurityLevel: '1',
|
|
5595
5646
|
address: {
|
|
5596
|
-
city:
|
|
5597
|
-
country:
|
|
5598
|
-
line1:
|
|
5599
|
-
state:
|
|
5647
|
+
city: 'WOOTTON',
|
|
5648
|
+
country: 'GBR',
|
|
5649
|
+
line1: 'ACREY FIELDS',
|
|
5650
|
+
state: 'GB',
|
|
5600
5651
|
zip: {
|
|
5601
|
-
zip1:
|
|
5602
|
-
zip2:
|
|
5652
|
+
zip1: 'MK43',
|
|
5653
|
+
zip2: ''
|
|
5603
5654
|
}
|
|
5604
5655
|
}
|
|
5605
5656
|
};
|
|
@@ -5607,60 +5658,60 @@ var getDefaultYard = function getDefaultYard(country) {
|
|
|
5607
5658
|
switch (country) {
|
|
5608
5659
|
case 'IN':
|
|
5609
5660
|
return {
|
|
5610
|
-
name:
|
|
5661
|
+
name: 'CITC',
|
|
5611
5662
|
number: 8003,
|
|
5612
5663
|
address: {
|
|
5613
|
-
city:
|
|
5614
|
-
country:
|
|
5615
|
-
line1:
|
|
5616
|
-
line2:
|
|
5617
|
-
state:
|
|
5664
|
+
city: 'HYDERABAD',
|
|
5665
|
+
country: 'IND',
|
|
5666
|
+
line1: 'PSR PRIME TOWERS 5TH FLOOR',
|
|
5667
|
+
line2: 'SURVEY NO 126P, GACHIBOWLI',
|
|
5668
|
+
state: 'TS',
|
|
5618
5669
|
zip: {
|
|
5619
|
-
zip1:
|
|
5670
|
+
zip1: '500032'
|
|
5620
5671
|
}
|
|
5621
5672
|
}
|
|
5622
5673
|
};
|
|
5623
5674
|
case 'US':
|
|
5624
5675
|
return {
|
|
5625
|
-
name:
|
|
5676
|
+
name: 'CORPORATE',
|
|
5626
5677
|
number: 700,
|
|
5627
5678
|
address: {
|
|
5628
|
-
city:
|
|
5629
|
-
country:
|
|
5630
|
-
line1:
|
|
5631
|
-
state:
|
|
5679
|
+
city: 'DALLAS',
|
|
5680
|
+
country: 'USA',
|
|
5681
|
+
line1: '14185 DALLAS PARKWAY #300',
|
|
5682
|
+
state: 'TX',
|
|
5632
5683
|
zip: {
|
|
5633
|
-
zip1:
|
|
5684
|
+
zip1: '75254'
|
|
5634
5685
|
}
|
|
5635
5686
|
}
|
|
5636
5687
|
};
|
|
5637
5688
|
case 'UK':
|
|
5638
5689
|
return {
|
|
5639
|
-
name:
|
|
5690
|
+
name: 'COPART UK',
|
|
5640
5691
|
number: 400,
|
|
5641
|
-
userSecurityLevel:
|
|
5692
|
+
userSecurityLevel: '1',
|
|
5642
5693
|
address: {
|
|
5643
|
-
city:
|
|
5644
|
-
country:
|
|
5645
|
-
line1:
|
|
5646
|
-
state:
|
|
5694
|
+
city: 'WOOTTON',
|
|
5695
|
+
country: 'GBR',
|
|
5696
|
+
line1: 'ACREY FIELDS',
|
|
5697
|
+
state: 'GB',
|
|
5647
5698
|
zip: {
|
|
5648
|
-
zip1:
|
|
5649
|
-
zip2:
|
|
5699
|
+
zip1: 'MK43',
|
|
5700
|
+
zip2: ''
|
|
5650
5701
|
}
|
|
5651
5702
|
}
|
|
5652
5703
|
};
|
|
5653
5704
|
default:
|
|
5654
5705
|
return {
|
|
5655
|
-
name:
|
|
5706
|
+
name: 'CORPORATE',
|
|
5656
5707
|
number: 700,
|
|
5657
5708
|
address: {
|
|
5658
|
-
city:
|
|
5659
|
-
country:
|
|
5660
|
-
line1:
|
|
5661
|
-
state:
|
|
5709
|
+
city: 'DALLAS',
|
|
5710
|
+
country: 'USA',
|
|
5711
|
+
line1: '14185 DALLAS PARKWAY #300',
|
|
5712
|
+
state: 'TX',
|
|
5662
5713
|
zip: {
|
|
5663
|
-
zip1:
|
|
5714
|
+
zip1: '75254'
|
|
5664
5715
|
}
|
|
5665
5716
|
}
|
|
5666
5717
|
};
|
|
@@ -5735,13 +5786,14 @@ var storeLoginData = function storeLoginData(data) {
|
|
|
5735
5786
|
redirectTo: 'home',
|
|
5736
5787
|
attemptFailed: false,
|
|
5737
5788
|
sessionExpired: false,
|
|
5738
|
-
hasCasAccess: data.hasCasAccess
|
|
5789
|
+
hasCasAccess: data.hasCasAccess,
|
|
5790
|
+
entity_auth_scope: data.entity_auth_scope
|
|
5739
5791
|
});
|
|
5740
5792
|
};
|
|
5741
5793
|
var setupLogin = /*#__PURE__*/function () {
|
|
5742
5794
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(loginData) {
|
|
5743
5795
|
var _window$toolkitEnv3;
|
|
5744
|
-
var stack, hasCasAccess, yardList, entitySamID, entityID, entityCasID, userDetails, noCasAccess, userCountryCode, defaultYard;
|
|
5796
|
+
var stack, hasCasAccess, yardList, entitySamID, entityID, entityCasID, userDetails, noCasAccess, userCountryCode, defaultYard, _storage$getLocalItem, _storage$getLocalItem2, endpoint, appFunctions;
|
|
5745
5797
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
5746
5798
|
while (1) switch (_context2.prev = _context2.next) {
|
|
5747
5799
|
case 0:
|
|
@@ -5813,11 +5865,26 @@ var setupLogin = /*#__PURE__*/function () {
|
|
|
5813
5865
|
loginData.hasCasAccess = hasCasAccess;
|
|
5814
5866
|
case 44:
|
|
5815
5867
|
storeLoginData(loginData);
|
|
5816
|
-
|
|
5868
|
+
_context2.prev = 45;
|
|
5869
|
+
endpoint = (_storage$getLocalItem = storage$1.getLocalItem('opsportal-core:config')) === null || _storage$getLocalItem === void 0 ? void 0 : (_storage$getLocalItem2 = _storage$getLocalItem.endpoints) === null || _storage$getLocalItem2 === void 0 ? void 0 : _storage$getLocalItem2.appScopesAWS;
|
|
5870
|
+
_context2.next = 49;
|
|
5871
|
+
return fetcher.get(endpoint).then(function (res) {
|
|
5872
|
+
return res.data;
|
|
5873
|
+
});
|
|
5874
|
+
case 49:
|
|
5875
|
+
appFunctions = _context2.sent;
|
|
5876
|
+
storage$1.setLocalItem('appScopesAndFunctions', appFunctions);
|
|
5877
|
+
_context2.next = 56;
|
|
5878
|
+
break;
|
|
5879
|
+
case 53:
|
|
5880
|
+
_context2.prev = 53;
|
|
5881
|
+
_context2.t1 = _context2["catch"](45);
|
|
5882
|
+
console.log(_context2.t1);
|
|
5883
|
+
case 56:
|
|
5817
5884
|
case "end":
|
|
5818
5885
|
return _context2.stop();
|
|
5819
5886
|
}
|
|
5820
|
-
}, _callee2, null, [[17, 27]]);
|
|
5887
|
+
}, _callee2, null, [[17, 27], [45, 53]]);
|
|
5821
5888
|
}));
|
|
5822
5889
|
return function setupLogin(_x) {
|
|
5823
5890
|
return _ref2.apply(this, arguments);
|
|
@@ -9270,6 +9337,81 @@ var getInnovationHubToken = /*#__PURE__*/function () {
|
|
|
9270
9337
|
};
|
|
9271
9338
|
}();
|
|
9272
9339
|
|
|
9340
|
+
var getHierarchyDetails = function getHierarchyDetails(hierarchies, hierarchyId) {
|
|
9341
|
+
var hierarchy = hierarchies[hierarchyId];
|
|
9342
|
+
var isHierarchyFromCurrentCountry = hierarchy && hierarchy.countryCode === storage.getSessionItem('dashboard', 'selectedCountryA3code');
|
|
9343
|
+
return isHierarchyFromCurrentCountry ? {
|
|
9344
|
+
id: hierarchy.hierarchyId,
|
|
9345
|
+
level: hierarchy.levelName,
|
|
9346
|
+
name: hierarchy.hierarchyName
|
|
9347
|
+
} : null;
|
|
9348
|
+
};
|
|
9349
|
+
var getUserScopes = /*#__PURE__*/function () {
|
|
9350
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9351
|
+
var _storage$getLocalItem, _storage$getLocalItem2;
|
|
9352
|
+
var endpoint, hierarchies, scopeData, scopeList, filteredScopeList;
|
|
9353
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9354
|
+
while (1) switch (_context.prev = _context.next) {
|
|
9355
|
+
case 0:
|
|
9356
|
+
endpoint = (_storage$getLocalItem = storage.getLocalItem('opsportal-core:config')) === null || _storage$getLocalItem === void 0 ? void 0 : (_storage$getLocalItem2 = _storage$getLocalItem.endpoints) === null || _storage$getLocalItem2 === void 0 ? void 0 : _storage$getLocalItem2.hierarchiesAWS;
|
|
9357
|
+
_context.prev = 1;
|
|
9358
|
+
_context.next = 4;
|
|
9359
|
+
return fetcher.get(endpoint).then(function (res) {
|
|
9360
|
+
return res.data;
|
|
9361
|
+
});
|
|
9362
|
+
case 4:
|
|
9363
|
+
hierarchies = _context.sent;
|
|
9364
|
+
storage.setLocalItem('hierarchies', hierarchies);
|
|
9365
|
+
_context.next = 12;
|
|
9366
|
+
break;
|
|
9367
|
+
case 8:
|
|
9368
|
+
_context.prev = 8;
|
|
9369
|
+
_context.t0 = _context["catch"](1);
|
|
9370
|
+
console.log(_context.t0);
|
|
9371
|
+
hierarchies = storage.getLocalItem('hierarchies');
|
|
9372
|
+
case 12:
|
|
9373
|
+
scopeData = storage.getLocalItem('login', 'entity_auth_scope');
|
|
9374
|
+
scopeList = typeof scopeData === 'string' ? scopeData === null || scopeData === void 0 ? void 0 : scopeData.split(',') : [];
|
|
9375
|
+
scopeList = scopeList.filter(function (scope) {
|
|
9376
|
+
return typeof scope === 'string' && scope.trim() !== '';
|
|
9377
|
+
});
|
|
9378
|
+
filteredScopeList = [];
|
|
9379
|
+
scopeList.forEach(function (scope) {
|
|
9380
|
+
var _storage$getLocalItem3;
|
|
9381
|
+
var scopeInfo = scope === null || scope === void 0 ? void 0 : scope.split('|');
|
|
9382
|
+
var appScopeEnv = (_storage$getLocalItem3 = storage.getLocalItem('opsportal-core:config')) === null || _storage$getLocalItem3 === void 0 ? void 0 : _storage$getLocalItem3.appScopeEnv;
|
|
9383
|
+
var isScopeForCurrentEnv = scopeInfo[0] && scopeInfo[0] === appScopeEnv;
|
|
9384
|
+
if (isScopeForCurrentEnv) {
|
|
9385
|
+
var _scopeInfo$;
|
|
9386
|
+
var hierarchyList = ((_scopeInfo$ = scopeInfo[3]) === null || _scopeInfo$ === void 0 ? void 0 : _scopeInfo$.split(':')) || [];
|
|
9387
|
+
var hierarchiesWithDetails = [];
|
|
9388
|
+
hierarchyList.forEach(function (hierarchy) {
|
|
9389
|
+
var details = getHierarchyDetails(hierarchies, Number(hierarchy));
|
|
9390
|
+
if (details) {
|
|
9391
|
+
hierarchiesWithDetails.push(details);
|
|
9392
|
+
}
|
|
9393
|
+
});
|
|
9394
|
+
if (hierarchiesWithDetails.length > 0) {
|
|
9395
|
+
filteredScopeList.push({
|
|
9396
|
+
appName: scopeInfo[1],
|
|
9397
|
+
scopeName: scopeInfo[2],
|
|
9398
|
+
hierarchies: hierarchiesWithDetails
|
|
9399
|
+
});
|
|
9400
|
+
}
|
|
9401
|
+
}
|
|
9402
|
+
});
|
|
9403
|
+
return _context.abrupt("return", filteredScopeList);
|
|
9404
|
+
case 18:
|
|
9405
|
+
case "end":
|
|
9406
|
+
return _context.stop();
|
|
9407
|
+
}
|
|
9408
|
+
}, _callee, null, [[1, 8]]);
|
|
9409
|
+
}));
|
|
9410
|
+
return function getUserScopes() {
|
|
9411
|
+
return _ref.apply(this, arguments);
|
|
9412
|
+
};
|
|
9413
|
+
}();
|
|
9414
|
+
|
|
9273
9415
|
fetcher.login = login;
|
|
9274
9416
|
fetcher.oktaLogin = oktaLogin;
|
|
9275
9417
|
fetcher.getConfig = getConfig;
|
|
@@ -9285,6 +9427,7 @@ fetcher.getPrintersForYard = getPrintersForYard;
|
|
|
9285
9427
|
fetcher.getPermissions = getPermissions;
|
|
9286
9428
|
fetcher.getCoreAppPermissions = getCoreAppPermissions;
|
|
9287
9429
|
fetcher.getInnovationHubToken = getInnovationHubToken;
|
|
9430
|
+
fetcher.getUserScopes = getUserScopes;
|
|
9288
9431
|
|
|
9289
9432
|
var getRouteName = function getRouteName() {
|
|
9290
9433
|
return window.location.pathname.split('/').splice(1)[0];
|
|
@@ -21281,7 +21424,7 @@ FeedbackDialog.defaultProps = {
|
|
|
21281
21424
|
}
|
|
21282
21425
|
};
|
|
21283
21426
|
|
|
21284
|
-
var css_248z$k = ".utilities_ops-app-frame_AppBarComponent_AppBar--root {\r\n background-color: var(--blue);\r\n background-color: var(--blue);\r\n height: 48px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n white-space: nowrap;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--leftItems {\r\n width: 100%;\r\n display: flex;\r\n justify-content: start;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--appBarIcons {\r\n margin: 0 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogo {\r\n display: flex;\r\n align-items: center;\r\n flex-direction: column;\r\n margin-left: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogoNew {\r\n display: flex;\r\n flex-direction: column;\r\n margin: 3px 0 0 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--moduleName {\r\n color: white;\r\n font-size: 11px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items {\r\n color: white;\r\n cursor: pointer;\r\n font-size: 18px;\r\n display: flex;\r\n justify-content: center;\r\n margin: 8px !important;\r\n position: relative;\r\n width: 25px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--logout {\r\n margin-right: 24px !important;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items i {\r\n color: #fff;\r\n font-size: 20px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--lightBulbIcon i {\r\n color: #ffff00;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--language {\r\n width: auto;\r\n grid-gap: 4px;\r\n grid-gap: 5px;\r\n gap: 5px;\r\n display: flex;\r\n font-size: 14px;\r\n font-weight: 600;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--yard {\r\n width: auto;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n background: #fff;\r\n color: #1D5AB9;\r\n font-weight: 600;\r\n border-radius: 4px;\r\n font-size: 14px;\r\n grid-gap: 8px;\r\n grid-gap: 8px;\r\n gap: 8px;\r\n padding: 2px 8px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--yard span i {\r\n color: #1D5AB9;\r\n font-size: 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--yard .utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber {\r\n font-size: 14px;\r\n font-weight: 400;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col {\r\n display: flex;\r\n color: white;\r\n font-size: 13px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col svg {\r\n color: white;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\r\n width: 6rem;\r\n margin-top: 0rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--text {\r\n margin-top: 0.6rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--iconText {\r\n margin-top: 0.4rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchBar,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--placeholderDiv {\r\n margin-top: -0.2rem;\r\n margin-left: 2rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--appBarLeft > img.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\r\n display: inline;\r\n display: initial;\r\n}\r\n\r\n@font-face {\r\n font-family: 'Open Sans';\r\n font-style: italic;\r\n font-weight: 600;\r\n src: url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhmIqOjjg.woff2)\r\n format('woff2');\r\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--appTitle {\r\n color: #fff;\r\n font-family: 'Open Sans', sans-serif;\r\n font-weight: 600;\r\n font-style: italic;\r\n font-size: 14px;\r\n position: relative;\r\n left: 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--item {\r\n display: flex;\r\n color: white;\r\n font-size: 13px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchIcon {\r\n /* margin-left: 10px;\r\n margin-right: 7px; */\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n background: #fff;\r\n color: #1D5AB9;\r\n font-weight: 600;\r\n border-radius: 4px;\r\n box-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0.4), 0px 1.6px 3.6px 0px rgba(0, 0, 0, 0.13), 0px 0.3px 0.9px 0px rgba(0, 0, 0, 0.10);\r\n font-size: 14px;\r\n grid-gap: 8px;\r\n gap: 8px;\r\n margin: 0 8px;\r\n padding: 6px 20px 7px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchIcon span {\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchIcon span i {\r\n font-size: 18px;\r\n color: #1D5AB9;\r\n}\r\n\r\n/* .searchIcon > div {\r\n margin-left: 7px;\r\n} */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchWrapper i {\r\n color: #fff;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchWrapper span {\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault {\r\n color: white;\r\n cursor: default;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\r\n background-color: white;\r\n border-radius: 20px;\r\n margin: 5px;\r\n padding: 0px 10px;\r\n height: 25px;\r\n font-weight: bold;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--light {\r\n border: 1px solid #1d5ab9;\r\n justify-content: flex-start;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightDefault {\r\n color: black;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\r\n background-color: white;\r\n border-radius: 20px;\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\r\n color: green;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable i {\r\n color: green;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline {\r\n color: red;\r\n margin: 5px 0px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline svg {\r\n margin-right: 5px;\r\n margin-left: 5px;\r\n width: 24px;\r\n height: 24px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--SpinnerWrapper {\r\n margin-left: 5px;\r\n display: inline-flex;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i {\r\n font-size: 16px;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i {\r\n line-height: unset;\r\n font-size: 16px;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable {\r\n color: green;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\r\n margin-right: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\r\n color: red;\r\n}\r\n\r\n/* .userMenu {\r\n margin-left: 10px !important;\r\n margin-right: 5px !important;\r\n} */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\r\n margin-left: 10px !important;\r\n margin-right: 10px !important;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\r\n margin-left: 7px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--feedback {\r\n margin: 0 !important;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems {\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button {\r\n cursor: pointer;\r\n position: relative;\r\n top: -2px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button i {\r\n color: #fff;\r\n font-size: 22px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpDot {\r\n background-color: #ef5350;\r\n border-radius: 50%;\r\n position: absolute;\r\n top: 3px;\r\n left: 13px;\r\n width: 10px;\r\n height: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpTooltip{\r\n position: absolute;\r\n background: #fff;\r\n padding: 8px;\r\n right: 30px;\r\n top: -2px;\r\n border-radius: 2px;\r\n font-weight: 400;\r\n font-size: 12px;\r\n cursor: auto;\r\n color: #000;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpTooltip::before{\r\n content: \"\";\r\n position: absolute;\r\n top: 50%;\r\n left: 100%;\r\n margin-top: -5px;\r\n border-width: 5px;\r\n border-style: solid;\r\n border-color: transparent transparent transparent #fff;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpTooltip i{\r\n color: #000;\r\n font-size: 12px;\r\n margin-left: 5px;\r\n position: relative;\r\n top: 1px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer {\r\n position: absolute;\r\n display: flex;\r\n height: calc(100vh - 48px);\r\n width: 100vw;\r\n bottom: 0;\r\n z-index: 10000;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide {\r\n background-color: rgba(0,0,0,.5);\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--st0{fill:#0075E6;}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--st1{fill:#6A819C;}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--st2{fill:#FFFFFF;}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHideButton {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n position: absolute;\r\n top: 2px;\r\n right: 358px;\r\n height: 38px;\r\n width: 38px;\r\n background-color: white;\r\n z-index: 11000;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--profile {\r\n padding: 5px 7px;\r\n background: #fff;\r\n border-radius: 50%;\r\n font-weight: 600;\r\n color: #1d5ab9;\r\n font-size: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchContainer {\r\n background: rgba(255, 255, 255, 0.40);\r\n -webkit-backdrop-filter: blur(20px);\r\n backdrop-filter: blur(20px);\r\n position: absolute;\r\n top: 50px;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n z-index: 999;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebarWrapper{\r\n position: absolute;\r\n z-index: 10000;\r\n height: 100vh;\r\n top: 48px;\r\n width: 100vw;\r\n background-color: rgba(0,0,0,.5);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebarWrapper .utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebar {\r\n width: 400px;\r\n max-width: 400px;\r\n position: absolute;\r\n right: 0;\r\n height: calc(100vh - 48px);\r\n /* padding: 15px; */\r\n background-color: white;\r\n overflow-y: auto;\r\n}\r\n\r\n@media only screen and (max-width: 1024px) {\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\r\n margin-right: 2px;\r\n }\r\n\r\n /* .searchIcon {\r\n margin-left: 5px;\r\n margin-right: 2px;\r\n }\r\n\r\n .searchIcon > div {\r\n margin-left: 2px;\r\n } */\r\n\r\n /* .userMenu {\r\n margin-left: 3px !important;\r\n margin-right: 3px !important;\r\n } */\r\n\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\r\n margin-left: 3px !important;\r\n margin-right: 3px !important;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\r\n margin-left: 2px;\r\n }\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--sideBarWrapper\r\n{\r\n position: absolute;\r\n z-index: 10000;\r\n height: 100vh;\r\n top: 48px;\r\n width: 100vw;\r\n background-color: rgba(0,0,0,.5);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--innerNotificationDiv\r\n{\r\n width: 400px;\r\n max-width: 400px;\r\n position: absolute;\r\n right: 0;\r\n height: 100%;\r\n padding: 15px;\r\n background-color: white;\r\n overflow-y: auto;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationsHeader{\r\n font-size: 18px;\r\n font-weight: 600;\r\n padding-bottom: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationsWrapper{\r\n display: flex;\r\n flex-direction: column;\r\n grid-gap: 5px;\r\n gap: 5px;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationCount{\r\n background-color: #ef5350;\r\n color: white;\r\n font-size: 12px;\r\n width: 1rem;\r\n border-radius: 50%;\r\n position: absolute;\r\n top: -5px;\r\n left: 11px;\r\n height: 1rem;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationCount.utilities_ops-app-frame_AppBarComponent_AppBar--twoChars {\r\n width: 1.1rem;\r\n height: 1.1rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationCount.utilities_ops-app-frame_AppBarComponent_AppBar--threeChars {\r\n width: 1.3rem;\r\n height: 1.3rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--notificationIconWrapper {\r\n cursor: pointer;\r\n margin-left: 12px;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer {\r\n width: 0px;\r\n height: 0px;\r\n border-left: 8px solid transparent;\r\n border-right: 8px solid transparent;\r\n border-bottom: 11px solid white;\r\n position: absolute;\r\n bottom: -13px;\r\n right: 5px;\r\n}\r\n\r\n/* .arrowTipContainer.ideaNoteArrow {\r\n right: 16px;\r\n} */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpArrow {\r\n right: 3px;\r\n bottom: -9px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer.utilities_ops-app-frame_AppBarComponent_AppBar--profileArrow {\r\n bottom: -12px;\r\n right: 8px;\r\n border-left: 7px solid transparent;\r\n border-right: 7px solid transparent;\r\n border-bottom: 10px solid white;\r\n}\r\n\r\n@media (max-width: 768px) {\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--innerNotificationDiv {\r\n width: 85%;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--notificationCount{\r\n left: 12px;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer {\r\n right: 5px;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer iframe {\r\n width: 85% !important;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer .utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide .utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHideButton {\r\n display: none;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebarWrapper .utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebar {\r\n width: 85%;\r\n }\r\n}";
|
|
21427
|
+
var css_248z$k = ".utilities_ops-app-frame_AppBarComponent_AppBar--root {\r\n background-color: var(--blue);\r\n background-color: var(--blue);\r\n height: 48px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n white-space: nowrap;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--leftItems {\r\n width: 100%;\r\n display: flex;\r\n justify-content: start;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--appBarIcons {\r\n margin: 0 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogo {\r\n display: flex;\r\n align-items: center;\r\n flex-direction: column;\r\n margin-left: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogoNew {\r\n display: flex;\r\n flex-direction: column;\r\n margin: 3px 0 0 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--moduleName {\r\n color: white;\r\n font-size: 11px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items {\r\n color: white;\r\n cursor: pointer;\r\n font-size: 18px;\r\n display: flex;\r\n justify-content: center;\r\n margin: 8px !important;\r\n position: relative;\r\n width: 25px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--logout {\r\n margin-right: 24px !important;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items i {\r\n color: #fff;\r\n font-size: 20px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--lightBulbIcon i {\r\n color: #ffff00;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--language {\r\n width: auto;\r\n grid-gap: 4px;\r\n grid-gap: 5px;\r\n gap: 5px;\r\n display: flex;\r\n font-size: 14px;\r\n font-weight: 600;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--yard {\r\n width: auto;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n background: #fff;\r\n color: #1D5AB9;\r\n font-weight: 600;\r\n border-radius: 4px;\r\n font-size: 14px;\r\n grid-gap: 8px;\r\n grid-gap: 8px;\r\n gap: 8px;\r\n padding: 2px 8px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--yard span i {\r\n color: #1D5AB9;\r\n font-size: 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--yard .utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber {\r\n font-size: 14px;\r\n font-weight: 400;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col {\r\n display: flex;\r\n color: white;\r\n font-size: 13px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col svg {\r\n color: white;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\r\n width: 6rem;\r\n margin-top: 0rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--text {\r\n margin-top: 0.6rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--iconText {\r\n margin-top: 0.4rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchBar,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--placeholderDiv {\r\n margin-top: -0.2rem;\r\n margin-left: 2rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--appBarLeft > img.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\r\n display: inline;\r\n display: initial;\r\n}\r\n\r\n@font-face {\r\n font-family: 'Open Sans';\r\n font-style: italic;\r\n font-weight: 600;\r\n src: url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhmIqOjjg.woff2)\r\n format('woff2');\r\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--appTitle {\r\n color: #fff;\r\n font-family: 'Open Sans', sans-serif;\r\n font-weight: 600;\r\n font-style: italic;\r\n font-size: 14px;\r\n position: relative;\r\n left: 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--item {\r\n display: flex;\r\n color: white;\r\n font-size: 13px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchIcon {\r\n /* margin-left: 10px;\r\n margin-right: 7px; */\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n background: #fff;\r\n color: #1D5AB9;\r\n font-weight: 600;\r\n border-radius: 4px;\r\n box-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0.4), 0px 1.6px 3.6px 0px rgba(0, 0, 0, 0.13), 0px 0.3px 0.9px 0px rgba(0, 0, 0, 0.10);\r\n font-size: 14px;\r\n grid-gap: 8px;\r\n gap: 8px;\r\n margin: 0 8px;\r\n padding: 6px 20px 7px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchIcon span {\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchIcon span i {\r\n font-size: 18px;\r\n color: #1D5AB9;\r\n}\r\n\r\n/* .searchIcon > div {\r\n margin-left: 7px;\r\n} */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchWrapper i {\r\n color: #fff;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchWrapper span {\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault {\r\n color: white;\r\n cursor: default;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\r\n background-color: white;\r\n border-radius: 20px;\r\n margin: 5px;\r\n padding: 0px 10px;\r\n height: 25px;\r\n font-weight: bold;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--light {\r\n border: 1px solid #1d5ab9;\r\n justify-content: flex-start;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightDefault {\r\n color: black;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\r\n background-color: white;\r\n border-radius: 20px;\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\r\n color: green;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable i {\r\n color: green;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline {\r\n color: red;\r\n margin: 5px 0px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline svg {\r\n margin-right: 5px;\r\n margin-left: 5px;\r\n width: 24px;\r\n height: 24px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--SpinnerWrapper {\r\n margin-left: 5px;\r\n display: inline-flex;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i {\r\n font-size: 16px;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i {\r\n line-height: unset;\r\n font-size: 16px;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable {\r\n color: green;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\r\n margin-right: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\r\n color: red;\r\n}\r\n\r\n/* .userMenu {\r\n margin-left: 10px !important;\r\n margin-right: 5px !important;\r\n} */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\r\n margin: 8px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\r\n margin-left: 7px;\r\n font-size: 14px;\r\n font-weight: 600;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--feedback {\r\n margin: 0 !important;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems {\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button {\r\n cursor: pointer;\r\n position: relative;\r\n top: -2px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button i {\r\n color: #fff;\r\n font-size: 22px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpDot {\r\n background-color: #ef5350;\r\n border-radius: 50%;\r\n position: absolute;\r\n top: 3px;\r\n left: 13px;\r\n width: 10px;\r\n height: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpTooltip{\r\n position: absolute;\r\n background: #fff;\r\n padding: 8px;\r\n right: 30px;\r\n top: -2px;\r\n border-radius: 2px;\r\n font-weight: 400;\r\n font-size: 12px;\r\n cursor: auto;\r\n color: #000;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpTooltip::before{\r\n content: \"\";\r\n position: absolute;\r\n top: 50%;\r\n left: 100%;\r\n margin-top: -5px;\r\n border-width: 5px;\r\n border-style: solid;\r\n border-color: transparent transparent transparent #fff;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpTooltip i{\r\n color: #000;\r\n font-size: 12px;\r\n margin-left: 5px;\r\n position: relative;\r\n top: 1px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer {\r\n position: absolute;\r\n display: flex;\r\n height: calc(100vh - 48px);\r\n width: 100vw;\r\n bottom: 0;\r\n z-index: 10000;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide {\r\n background-color: rgba(0,0,0,.5);\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--st0{fill:#0075E6;}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--st1{fill:#6A819C;}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--st2{fill:#FFFFFF;}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHideButton {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n position: absolute;\r\n top: 2px;\r\n right: 358px;\r\n height: 38px;\r\n width: 38px;\r\n background-color: white;\r\n z-index: 11000;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--profile {\r\n padding: 5px 7px;\r\n background: #fff;\r\n border-radius: 50%;\r\n font-weight: 600;\r\n color: #1d5ab9;\r\n font-size: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchContainer {\r\n background: rgba(255, 255, 255, 0.40);\r\n -webkit-backdrop-filter: blur(20px);\r\n backdrop-filter: blur(20px);\r\n position: absolute;\r\n top: 50px;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n z-index: 999;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebarWrapper{\r\n position: absolute;\r\n z-index: 10000;\r\n height: 100vh;\r\n top: 48px;\r\n width: 100vw;\r\n background-color: rgba(0,0,0,.5);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebarWrapper .utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebar {\r\n width: 400px;\r\n max-width: 400px;\r\n position: absolute;\r\n right: 0;\r\n height: calc(100vh - 48px);\r\n /* padding: 15px; */\r\n background-color: white;\r\n overflow-y: auto;\r\n}\r\n\r\n@media only screen and (max-width: 1024px) {\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\r\n margin-right: 2px;\r\n }\r\n\r\n /* .searchIcon {\r\n margin-left: 5px;\r\n margin-right: 2px;\r\n }\r\n\r\n .searchIcon > div {\r\n margin-left: 2px;\r\n } */\r\n\r\n /* .userMenu {\r\n margin-left: 3px !important;\r\n margin-right: 3px !important;\r\n } */\r\n\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\r\n margin-left: 3px !important;\r\n margin-right: 3px !important;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\r\n margin-left: 2px;\r\n }\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--sideBarWrapper\r\n{\r\n position: absolute;\r\n z-index: 10000;\r\n height: 100vh;\r\n top: 48px;\r\n width: 100vw;\r\n background-color: rgba(0,0,0,.5);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--innerNotificationDiv\r\n{\r\n width: 400px;\r\n max-width: 400px;\r\n position: absolute;\r\n right: 0;\r\n height: 100%;\r\n padding: 15px;\r\n background-color: white;\r\n overflow-y: auto;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationsHeader{\r\n font-size: 18px;\r\n font-weight: 600;\r\n padding-bottom: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationsWrapper{\r\n display: flex;\r\n flex-direction: column;\r\n grid-gap: 5px;\r\n gap: 5px;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationCount{\r\n background-color: #ef5350;\r\n color: white;\r\n font-size: 12px;\r\n width: 1rem;\r\n border-radius: 50%;\r\n position: absolute;\r\n top: -5px;\r\n left: 11px;\r\n height: 1rem;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationCount.utilities_ops-app-frame_AppBarComponent_AppBar--twoChars {\r\n width: 1.1rem;\r\n height: 1.1rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationCount.utilities_ops-app-frame_AppBarComponent_AppBar--threeChars {\r\n width: 1.3rem;\r\n height: 1.3rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--notificationIconWrapper {\r\n cursor: pointer;\r\n margin-left: 12px;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer {\r\n width: 0px;\r\n height: 0px;\r\n border-left: 8px solid transparent;\r\n border-right: 8px solid transparent;\r\n border-bottom: 11px solid white;\r\n position: absolute;\r\n bottom: -13px;\r\n right: 5px;\r\n}\r\n\r\n/* .arrowTipContainer.ideaNoteArrow {\r\n right: 16px;\r\n} */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpArrow {\r\n right: 3px;\r\n bottom: -9px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer.utilities_ops-app-frame_AppBarComponent_AppBar--profileArrow {\r\n bottom: -12px;\r\n right: 8px;\r\n border-left: 7px solid transparent;\r\n border-right: 7px solid transparent;\r\n border-bottom: 10px solid white;\r\n}\r\n\r\n@media (max-width: 768px) {\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--innerNotificationDiv {\r\n width: 85%;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--notificationCount{\r\n left: 12px;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer {\r\n right: 5px;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer iframe {\r\n width: 85% !important;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer .utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide .utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHideButton {\r\n display: none;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebarWrapper .utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebar {\r\n width: 85%;\r\n }\r\n}";
|
|
21285
21428
|
styleInject(css_248z$k);
|
|
21286
21429
|
|
|
21287
21430
|
var LogOutMenu = function LogOutMenu(_ref) {
|
|
@@ -21308,7 +21451,7 @@ var LogOutMenu = function LogOutMenu(_ref) {
|
|
|
21308
21451
|
}));
|
|
21309
21452
|
};
|
|
21310
21453
|
|
|
21311
|
-
var css_248z$j = ".utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails {\r\n width: 100%;\r\n display: flex;\r\n padding:
|
|
21454
|
+
var css_248z$j = ".utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails {\r\n width: 100%;\r\n display: flex;\r\n justify-content: space-around;\r\n padding: 20px 0;\r\n border-bottom: 1px solid #EDEBE9;\r\n grid-gap: 24px;\r\n gap: 24px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--details {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--details h3 {\r\n font-size: 16px;\r\n font-style: normal;\r\n font-weight: 600;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--details p {\r\n font-size: 12px;\r\n font-style: normal;\r\n font-weight: 350;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton {\r\n display: flex;\r\n align-items: center;\r\n padding: 7px 20px;\r\n grid-gap: 6px;\r\n grid-gap: 6px;\r\n gap: 6px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton i {\r\n color: #FFF;\r\n font-size: 20px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton span button {\r\n padding: 7px 25px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton span button span {\r\n grid-gap: 6px;\r\n gap: 6px;\r\n}\r\n\r\n@media (max-width: 768px) {\r\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails {\r\n padding: 24px 36px;\r\n flex-direction: column;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton {\r\n padding: 0;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton > span {\r\n width: 100%;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton > span > button {\r\n width: 100%;\r\n }\r\n}";
|
|
21312
21455
|
styleInject(css_248z$j);
|
|
21313
21456
|
|
|
21314
21457
|
var ProfileDetails = function ProfileDetails(_ref) {
|
|
@@ -22945,18 +23088,47 @@ var FeedbackButton = function FeedbackButton(props) {
|
|
|
22945
23088
|
}));
|
|
22946
23089
|
};
|
|
22947
23090
|
|
|
23091
|
+
var FLAG_URL_PREFIX = '/images/flag_icons/flag_';
|
|
23092
|
+
var HEIGHT_22PX = {
|
|
23093
|
+
height: '22px'
|
|
23094
|
+
};
|
|
23095
|
+
var HEIGHT_30PX = {
|
|
23096
|
+
height: '30px'
|
|
23097
|
+
};
|
|
23098
|
+
var COUNTRY_CODES = {
|
|
23099
|
+
ca: 'canada'
|
|
23100
|
+
};
|
|
23101
|
+
|
|
23102
|
+
var code = function code(countryCode) {
|
|
23103
|
+
return COUNTRY_CODES[countryCode] || countryCode;
|
|
23104
|
+
};
|
|
23105
|
+
var flagUrl = function flagUrl(countryCode) {
|
|
23106
|
+
return "".concat(FLAG_URL_PREFIX).concat((code(countryCode) || 'us').toLowerCase(), ".png");
|
|
23107
|
+
};
|
|
23108
|
+
var heightStyle = function heightStyle(type) {
|
|
23109
|
+
return type !== 'cas' ? HEIGHT_22PX : HEIGHT_30PX;
|
|
23110
|
+
};
|
|
23111
|
+
|
|
23112
|
+
var Flag$1 = function Flag(props) {
|
|
23113
|
+
return /*#__PURE__*/React__namespace.createElement("img", {
|
|
23114
|
+
"data-testid": "flag",
|
|
23115
|
+
alt: "Flag",
|
|
23116
|
+
src: flagUrl(props.countryCode),
|
|
23117
|
+
style: heightStyle(props.type),
|
|
23118
|
+
"data-e2e": "cc-Flag"
|
|
23119
|
+
});
|
|
23120
|
+
};
|
|
23121
|
+
|
|
22948
23122
|
var onRenderItem = function onRenderItem(item) {
|
|
22949
23123
|
return item.render();
|
|
22950
23124
|
};
|
|
22951
23125
|
var OverflowMenu = function OverflowMenu(props) {
|
|
22952
|
-
console.log('***props=', props);
|
|
22953
23126
|
var dataToRender = {
|
|
22954
23127
|
primary: props.items,
|
|
22955
23128
|
overflow: []
|
|
22956
23129
|
};
|
|
22957
23130
|
var clickHandler = props.clickHandler;
|
|
22958
23131
|
var onReduceData = function onReduceData(currentData) {
|
|
22959
|
-
console.log('***currentData=', currentData);
|
|
22960
23132
|
if (currentData.primary.length === 0) {
|
|
22961
23133
|
return undefined;
|
|
22962
23134
|
}
|
|
@@ -22965,10 +23137,6 @@ var OverflowMenu = function OverflowMenu(props) {
|
|
|
22965
23137
|
var primary = currentData.primary.filter(function (item) {
|
|
22966
23138
|
return item.key === 'notifications';
|
|
22967
23139
|
});
|
|
22968
|
-
console.log('***onReduceData', {
|
|
22969
|
-
primary: primary,
|
|
22970
|
-
overflow: overflow
|
|
22971
|
-
});
|
|
22972
23140
|
return {
|
|
22973
23141
|
primary: primary,
|
|
22974
23142
|
overflow: overflow
|
|
@@ -22980,10 +23148,6 @@ var OverflowMenu = function OverflowMenu(props) {
|
|
|
22980
23148
|
}
|
|
22981
23149
|
var overflow = currentData.overflow.slice(1);
|
|
22982
23150
|
var primary = [].concat(_toConsumableArray(currentData.primary), _toConsumableArray(currentData.overflow.slice(0, 1)));
|
|
22983
|
-
console.log('***onGrowData', {
|
|
22984
|
-
primary: primary,
|
|
22985
|
-
overflow: overflow
|
|
22986
|
-
});
|
|
22987
23151
|
return {
|
|
22988
23152
|
primary: primary,
|
|
22989
23153
|
overflow: overflow
|
|
@@ -23050,7 +23214,7 @@ var printerFields = [_objectSpread2(_objectSpread2({}, defaultAutoSelectProps),
|
|
|
23050
23214
|
label: 'Bar Code Printer'
|
|
23051
23215
|
})];
|
|
23052
23216
|
|
|
23053
|
-
var css_248z$a = ".utilities_ops-app-frame_AppBarComponent_Settings_PrinterSettings_PrinterSettings--PrinterSettings {\r\n
|
|
23217
|
+
var css_248z$a = ".utilities_ops-app-frame_AppBarComponent_Settings_PrinterSettings_PrinterSettings--PrinterSettings {\r\n padding-right: 0;\r\n width: 100% !important;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PrinterSettings_PrinterSettings--col-1-5 {\r\n width: 20%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PrinterSettings_PrinterSettings--col-1-2 {\r\n width: 50%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PrinterSettings_PrinterSettings--col-1-1 {\r\n width: 100%;\r\n margin: 6px 0;\r\n}\r\n";
|
|
23054
23218
|
styleInject(css_248z$a);
|
|
23055
23219
|
|
|
23056
23220
|
// Properly populate printer options before feeding to autoselect
|
|
@@ -23186,7 +23350,7 @@ var getLanguages = function getLanguages() {
|
|
|
23186
23350
|
}[selectedCountry];
|
|
23187
23351
|
};
|
|
23188
23352
|
|
|
23189
|
-
var css_248z$9 = "/* Simple Grid */\r\n[class*='col-'] {\r\n float: left;\r\n min-height: 1px;\r\n /* padding-right: 10px; */\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid {\r\n width: 100%;\r\n max-width: 1300px;\r\n min-width: 748px; /* when using padded grid on ipad in portrait mode, width should be viewport-width - padding = (768 - 20) = 748. actually, it should be even smaller to allow for padding of grid containing element */\r\n margin: 0 auto;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid:after {\r\n content: '';\r\n display: table;\r\n clear: both;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid-pad {\r\n padding-top: 20px;\r\n padding-left: 20px; /* grid-space to left */\r\n padding-right: 0; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-20px=0 */\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-right {\r\n float: right;\r\n}\r\n\r\n/* Content Columns */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-1 {\r\n width: 100%;\r\n margin: 8px 0;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-2-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-8-12 {\r\n width: 66.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-2,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-6-12 {\r\n width: 50%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-4-12 {\r\n width: 33.33%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-4,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-12 {\r\n width: 25%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-5 {\r\n width: 20%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-6,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-2-12 {\r\n width: 16.667%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-7 {\r\n width: 14.28%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-2-7 {\r\n width: 28.56%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-4 {\r\n width: 75%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-7 {\r\n width: 42.84%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-4-7 {\r\n width: 57.12%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-8 {\r\n width: 12.5%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-9 {\r\n width: 11.1%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-10 {\r\n width: 10%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-10 {\r\n width: 30%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-11 {\r\n width: 9.09%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-12 {\r\n width: 8.33%;\r\n}\r\n\r\n/* Layout Columns */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-11-12 {\r\n width: 91.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-10-12 {\r\n width: 83.333%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-9-12 {\r\n width: 75%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-5-12 {\r\n width: 41.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-7-12 {\r\n width: 58.33%;\r\n}\r\n\r\n/* Pushing blocks */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-2-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-8-12 {\r\n margin-left: 66.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-2,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-6-12 {\r\n margin-left: 50%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-4-12 {\r\n margin-left: 33.33%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-4,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-3-12 {\r\n margin-left: 25%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-5 {\r\n margin-left: 20%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-6,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-2-12 {\r\n margin-left: 16.667%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-7 {\r\n margin-left: 14.28%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-8 {\r\n margin-left: 12.5%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-9 {\r\n margin-left: 11.1%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-10 {\r\n margin-left: 10%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-11 {\r\n margin-left: 9.09%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-12 {\r\n margin-left: 8.33%;\r\n}\r\n\r\n@media handheld, only screen and (max-width: 767px) {\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid {\r\n width: 100%;\r\n min-width: 0;\r\n margin-left: 0;\r\n margin-right: 0;\r\n padding-left: 20px; /* grid-space to left */\r\n padding-right: 10px; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-10px=10px */\r\n }\r\n\r\n [class*='col-'] {\r\n width: auto;\r\n float: none;\r\n margin: 0;\r\n padding-left: 0;\r\n /* padding-right: 10px; */\r\n }\r\n\r\n /* Mobile Layout */\r\n\r\n [class*='mobile-col-'] {\r\n float: left;\r\n margin: 0 0 10px;\r\n padding-left: 0;\r\n padding-right: 10px; /* column-space */\r\n padding-bottom: 0;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-1 {\r\n width: 100%;\r\n margin: 8px 0;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-2-3,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-8-12 {\r\n width: 66.66%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-2,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-6-12 {\r\n width: 50%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-3,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-4-12 {\r\n width: 33.33%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-4,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-3-12 {\r\n width: 25%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-5 {\r\n width: 20%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-6,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-2-12 {\r\n width: 16.667%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-7 {\r\n width: 14.28%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-8 {\r\n width: 12.5%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-9 {\r\n width: 11.1%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-10 {\r\n width: 10%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-11 {\r\n width: 9.09%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-12 {\r\n width: 8.33%;\r\n }\r\n\r\n /* Layout Columns */\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-11-12 {\r\n width: 91.66%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-10-12 {\r\n width: 83.333%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-9-12 {\r\n width: 75%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-5-12 {\r\n width: 41.66%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-7-12 {\r\n width: 58.33%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--hide-on-mobile {\r\n display: none !important;\r\n width: 0;\r\n height: 0;\r\n }\r\n}\r\n\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--SettingsView {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n padding: 0 20px 20px;\r\n margin-top: 65px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm {\r\n width: 100%;\r\n max-width: 1300px;\r\n /* box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px; */\r\n max-width: 800px;\r\n margin: 0 auto;\r\n height: 100%;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm form {\r\n margin: 0 15px;\r\n height: 70%;\r\n overflow-y: auto;\r\n scrollbar-width: none;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsHeader {\r\n display: flex;\r\n align-items: end;\r\n margin: 16px 0 8px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsHeader i{\r\n font-size: 20px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsHeader p {\r\n font-size: 18px;\r\n font-weight: 400;\r\n margin-left: 15px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--header {\r\n width: 100%;\r\n height: 40px;\r\n padding: 0 15px;\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: flex-start;\r\n align-items: center;\r\n background: var(--primaryBlue);\r\n background: var(--primaryBlue);\r\n outline: 1px solid var(--primaryBlue);\r\n outline: 1px solid var(--primaryBlue);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--title {\r\n font-size: 15.9px;\r\n font-weight: 500;\r\n color: var(--white);\r\n color: var(--white);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--sectionTitle {\r\n font-weight: 500;\r\n margin-top: 8px;\r\n margin-bottom: 8px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--body {\r\n padding: 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox {\r\n display: flex;\r\n width: 100%;\r\n justify-content: center;\r\n position: absolute;\r\n bottom: 25px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox span {\r\n width: 80%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox span button {\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox span button span {\r\n grid-gap: 6px;\r\n gap: 6px;\r\n width: auto;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox span button span i {\r\n color: #fff;\r\n font-size: 18px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox span button span .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--saveTxt {\r\n font-size: 16px;\r\n font-weight: 600;\r\n width: auto;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow {\r\n padding-right: 0px;\r\n width: 100%;\r\n margin: 0 9px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--labeledGhost {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings {\r\n padding-right: 0px;\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--title {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n font-weight: 500;\r\n color: black;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--smallInfo {\r\n margin-top: 2px;\r\n margin-bottom: 12px;\r\n font-size: 14px;\r\n opacity: 0.5;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow {\r\n display: flex;\r\n width: 100%;\r\n justify-content: flex-start;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--textField {\r\n position: relative;\r\n width: 50%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--backdrop{\r\n width: 100%;\r\n height: 100%;\r\n position: fixed;\r\n z-index: 100;\r\n left:0;\r\n top:0;\r\n background-color: rgba(0,0,0,0.1);\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--spinner{\r\n position: fixed;\r\n z-index: 500;\r\n left: calc(50% - 30px);\r\n top: calc(50% - 30px);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settings-hr{\r\n padding: 10px;\r\n margin-bottom: 5px;\r\n width: 100%;\r\n outline: none;\r\n border: none;\r\n border-bottom: 1px solid #ddd;\r\n overflow: auto;\r\n}";
|
|
23353
|
+
var css_248z$9 = "/* Simple Grid */\r\n[class*='col-'] {\r\n float: left;\r\n min-height: 1px;\r\n /* padding-right: 10px; */\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid {\r\n width: 100%;\r\n max-width: 1300px;\r\n min-width: 748px; /* when using padded grid on ipad in portrait mode, width should be viewport-width - padding = (768 - 20) = 748. actually, it should be even smaller to allow for padding of grid containing element */\r\n margin: 0 auto;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid:after {\r\n content: '';\r\n display: table;\r\n clear: both;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid-pad {\r\n padding-top: 20px;\r\n padding-left: 20px; /* grid-space to left */\r\n padding-right: 0; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-20px=0 */\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-right {\r\n float: right;\r\n}\r\n\r\n/* Content Columns */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-1 {\r\n width: 100%;\r\n margin: 6px 0;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-2-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-8-12 {\r\n width: 66.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-2,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-6-12 {\r\n width: 50%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-4-12 {\r\n width: 33.33%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-4,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-12 {\r\n width: 25%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-5 {\r\n width: 20%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-6,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-2-12 {\r\n width: 16.667%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-7 {\r\n width: 14.28%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-2-7 {\r\n width: 28.56%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-4 {\r\n width: 75%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-7 {\r\n width: 42.84%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-4-7 {\r\n width: 57.12%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-8 {\r\n width: 12.5%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-9 {\r\n width: 11.1%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-10 {\r\n width: 10%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-10 {\r\n width: 30%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-11 {\r\n width: 9.09%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-12 {\r\n width: 8.33%;\r\n}\r\n\r\n/* Layout Columns */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-11-12 {\r\n width: 91.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-10-12 {\r\n width: 83.333%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-9-12 {\r\n width: 75%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-5-12 {\r\n width: 41.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-7-12 {\r\n width: 58.33%;\r\n}\r\n\r\n/* Pushing blocks */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-2-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-8-12 {\r\n margin-left: 66.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-2,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-6-12 {\r\n margin-left: 50%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-4-12 {\r\n margin-left: 33.33%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-4,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-3-12 {\r\n margin-left: 25%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-5 {\r\n margin-left: 20%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-6,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-2-12 {\r\n margin-left: 16.667%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-7 {\r\n margin-left: 14.28%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-8 {\r\n margin-left: 12.5%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-9 {\r\n margin-left: 11.1%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-10 {\r\n margin-left: 10%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-11 {\r\n margin-left: 9.09%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-12 {\r\n margin-left: 8.33%;\r\n}\r\n\r\n@media handheld, only screen and (max-width: 767px) {\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid {\r\n width: 100%;\r\n min-width: 0;\r\n margin-left: 0;\r\n margin-right: 0;\r\n padding-left: 20px; /* grid-space to left */\r\n padding-right: 10px; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-10px=10px */\r\n }\r\n\r\n [class*='col-'] {\r\n width: auto;\r\n float: none;\r\n margin: 0;\r\n padding-left: 0;\r\n /* padding-right: 10px; */\r\n }\r\n\r\n /* Mobile Layout */\r\n\r\n [class*='mobile-col-'] {\r\n float: left;\r\n margin: 0 0 10px;\r\n padding-left: 0;\r\n padding-right: 10px; /* column-space */\r\n padding-bottom: 0;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-1 {\r\n width: 100%;\r\n margin: 8px 0;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-2-3,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-8-12 {\r\n width: 66.66%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-2,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-6-12 {\r\n width: 50%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-3,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-4-12 {\r\n width: 33.33%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-4,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-3-12 {\r\n width: 25%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-5 {\r\n width: 20%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-6,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-2-12 {\r\n width: 16.667%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-7 {\r\n width: 14.28%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-8 {\r\n width: 12.5%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-9 {\r\n width: 11.1%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-10 {\r\n width: 10%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-11 {\r\n width: 9.09%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-12 {\r\n width: 8.33%;\r\n }\r\n\r\n /* Layout Columns */\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-11-12 {\r\n width: 91.66%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-10-12 {\r\n width: 83.333%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-9-12 {\r\n width: 75%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-5-12 {\r\n width: 41.66%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-7-12 {\r\n width: 58.33%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--hide-on-mobile {\r\n display: none !important;\r\n width: 0;\r\n height: 0;\r\n }\r\n}\r\n\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--SettingsView {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n padding: 0 20px 20px;\r\n margin-top: 65px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm {\r\n display: flex;\r\n flex-direction: column;\r\n width: 100%;\r\n /* box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px; */\r\n max-width: 800px;\r\n margin: 0 auto;\r\n height: 100%;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm form {\r\n margin: 0 15px;\r\n flex: 1 1 0;\r\n overflow-y: auto;\r\n scrollbar-width: none;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsHeader {\r\n display: flex;\r\n align-items: end;\r\n margin: 12px 0 6px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsHeader i{\r\n font-size: 20px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsHeader p {\r\n font-size: 18px;\r\n font-weight: 400;\r\n margin-left: 15px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--header {\r\n width: 100%;\r\n height: 40px;\r\n padding: 0 15px;\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: flex-start;\r\n align-items: center;\r\n background: var(--primaryBlue);\r\n background: var(--primaryBlue);\r\n outline: 1px solid var(--primaryBlue);\r\n outline: 1px solid var(--primaryBlue);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--title {\r\n font-size: 15.9px;\r\n font-weight: 500;\r\n color: var(--white);\r\n color: var(--white);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--sectionTitle {\r\n font-weight: 500;\r\n margin-top: 8px;\r\n margin-bottom: 8px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--body {\r\n padding: 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox {\r\n display: flex;\r\n width: 100%;\r\n justify-content: center;\r\n margin: 20px 0;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox span {\r\n width: 80%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox span button {\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox span button span {\r\n grid-gap: 6px;\r\n gap: 6px;\r\n width: auto;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox span button span i {\r\n color: #fff;\r\n font-size: 18px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox span button span .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--saveTxt {\r\n font-size: 16px;\r\n font-weight: 600;\r\n width: auto;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow {\r\n padding-right: 0px;\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--labeledGhost {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings {\r\n padding-right: 0px;\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--title {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n font-weight: 500;\r\n color: black;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--smallInfo {\r\n margin-top: 2px;\r\n margin-bottom: 12px;\r\n font-size: 14px;\r\n opacity: 0.5;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow {\r\n display: flex;\r\n width: 100%;\r\n justify-content: flex-start;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--textField {\r\n position: relative;\r\n width: 50%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--backdrop{\r\n width: 100%;\r\n height: 100%;\r\n position: fixed;\r\n z-index: 100;\r\n left:0;\r\n top:0;\r\n background-color: rgba(0,0,0,0.1);\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--spinner{\r\n position: absolute;\r\n background: rgba(0, 0, 0, 0.5);\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settings-hr{\r\n padding: 0 !important;\r\n width: 100%;\r\n outline: none;\r\n border: none;\r\n border-bottom: 1px solid #EDEBE9;\r\n overflow: auto;\r\n}";
|
|
23190
23354
|
styleInject(css_248z$9);
|
|
23191
23355
|
|
|
23192
23356
|
var getDescription$1 = function getDescription(languageOptions) {
|
|
@@ -23621,7 +23785,7 @@ var saveSettings$1 = function saveSettings(self) {
|
|
|
23621
23785
|
return /*#__PURE__*/function () {
|
|
23622
23786
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(event) {
|
|
23623
23787
|
var _yard$yard_country_co, _yard$yard_country_co2;
|
|
23624
|
-
var printers, dashboardSessionState, oldSettings, dashboardState, cleanedDashboardState, _self$state, selectedYard, selectedRole, selectedLanguage, selectedCurrency, roles, roleOptionFromState, roleName, _roleOptionFromState$, levelId, _roleOptionFromState$2, hierarchyId, yard, securityLevel, newSettings;
|
|
23788
|
+
var printers, dashboardSessionState, oldSettings, dashboardState, cleanedDashboardState, _self$state, selectedYard, selectedRole, selectedLanguage, selectedCurrency, roles, roleOptionFromState, roleName, _roleOptionFromState$, levelId, _roleOptionFromState$2, hierarchyId, yard, securityLevel, userScopes, newSettings;
|
|
23625
23789
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
23626
23790
|
while (1) switch (_context.prev = _context.next) {
|
|
23627
23791
|
case 0:
|
|
@@ -23694,8 +23858,13 @@ var saveSettings$1 = function saveSettings(self) {
|
|
|
23694
23858
|
storage$1.setLocalItem('dashboard', selectedCurrency || yard.yard_currency, 'selectedCurrency');
|
|
23695
23859
|
securityLevel = pickUserSecurityLevel(getSelectedYard(selectedYard));
|
|
23696
23860
|
storage$1.setSessionItem('securityLevel', Number(securityLevel));
|
|
23697
|
-
// persist user preferences
|
|
23698
23861
|
_context.next = 24;
|
|
23862
|
+
return fetcher.getUserScopes();
|
|
23863
|
+
case 24:
|
|
23864
|
+
userScopes = _context.sent;
|
|
23865
|
+
storage$1.setLocalItem('login', userScopes, 'userAppScopes');
|
|
23866
|
+
// persist user preferences
|
|
23867
|
+
_context.next = 28;
|
|
23699
23868
|
return fetcher.setUserPreferences('oph', {
|
|
23700
23869
|
selectedCurrency: selectedCurrency || yard.yard_currency,
|
|
23701
23870
|
language: selectedLanguage || 'en',
|
|
@@ -23705,7 +23874,7 @@ var saveSettings$1 = function saveSettings(self) {
|
|
|
23705
23874
|
yard: yard,
|
|
23706
23875
|
securityLevel: securityLevel
|
|
23707
23876
|
}, 'USA');
|
|
23708
|
-
case
|
|
23877
|
+
case 28:
|
|
23709
23878
|
self.setState({
|
|
23710
23879
|
oldActivePrinters: printers
|
|
23711
23880
|
});
|
|
@@ -23718,7 +23887,7 @@ var saveSettings$1 = function saveSettings(self) {
|
|
|
23718
23887
|
activePrinters: self.activePrinters
|
|
23719
23888
|
};
|
|
23720
23889
|
self.props.onSave(oldSettings, newSettings);
|
|
23721
|
-
case
|
|
23890
|
+
case 31:
|
|
23722
23891
|
case "end":
|
|
23723
23892
|
return _context.stop();
|
|
23724
23893
|
}
|
|
@@ -23922,24 +24091,26 @@ var SettingsView$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
23922
24091
|
value: this.state.selectedLanguage,
|
|
23923
24092
|
handleChange: this.handleInputChange.selectedLanguage,
|
|
23924
24093
|
selectedCountry: this.state.selectedCountry
|
|
24094
|
+
}), /*#__PURE__*/React__default["default"].createElement(YardNumberContainer, {
|
|
24095
|
+
history: this.yardsHistory,
|
|
24096
|
+
selectedYard: this.state.selectedYardNumber,
|
|
24097
|
+
handleChange: this.handleInputChange.selectedYardNumber,
|
|
24098
|
+
selectedCountry: this.state.selectedCountry
|
|
23925
24099
|
}), /*#__PURE__*/React__default["default"].createElement(RoleSelector$1, {
|
|
23926
24100
|
roles: this.state.roles,
|
|
23927
24101
|
value: this.state.selectedRole,
|
|
23928
24102
|
handleChange: this.handleInputChange.selectedRole,
|
|
23929
24103
|
selectedYard: this.state.selectedYardNumber,
|
|
23930
24104
|
required: false
|
|
23931
|
-
}), /*#__PURE__*/React__default["default"].createElement(YardNumberContainer, {
|
|
23932
|
-
history: this.yardsHistory,
|
|
23933
|
-
selectedYard: this.state.selectedYardNumber,
|
|
23934
|
-
handleChange: this.handleInputChange.selectedYardNumber,
|
|
23935
|
-
selectedCountry: this.state.selectedCountry
|
|
23936
24105
|
})), /*#__PURE__*/React__default["default"].createElement(PrinterSettings, {
|
|
23937
24106
|
activePrinters: this.activePrinters,
|
|
23938
24107
|
setPrinterData: this.setPrinterData,
|
|
23939
24108
|
selectedYard: this.state.selectedYardNumber,
|
|
23940
24109
|
selectedPrinterData: this.selectedPrinterData,
|
|
23941
24110
|
printersData: this.state.printersData
|
|
23942
|
-
})), /*#__PURE__*/React__default["default"].createElement("
|
|
24111
|
+
})), /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
24112
|
+
className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settings-hr"
|
|
24113
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
23943
24114
|
className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox",
|
|
23944
24115
|
"data-e2e": "saveButton"
|
|
23945
24116
|
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.Button, {
|
|
@@ -23952,12 +24123,10 @@ var SettingsView$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
23952
24123
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
23953
24124
|
className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--saveTxt"
|
|
23954
24125
|
}, "Save"))), this.state.showLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
23955
|
-
className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--backdrop"
|
|
23956
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
23957
24126
|
className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--spinner"
|
|
23958
24127
|
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.Spinner, {
|
|
23959
24128
|
size: "60px"
|
|
23960
|
-
})))
|
|
24129
|
+
})));
|
|
23961
24130
|
}
|
|
23962
24131
|
}]);
|
|
23963
24132
|
return SettingsView;
|
|
@@ -24272,7 +24441,7 @@ var saveSettings = function saveSettings(self) {
|
|
|
24272
24441
|
return /*#__PURE__*/function () {
|
|
24273
24442
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(event) {
|
|
24274
24443
|
var _yard$yard_country_co, _storage$getLocalItem, _yard$yard_country_co2;
|
|
24275
|
-
var dashboardSessionState, settingsLocalStorageState, oldSettings, printers, _self$state, selectedYard, _self$state$selectedH, selectedHierarchyOption, selectedRole, _self$state$roles, roles, roleOptionFromState, yardNumbers, yard, selectedHierarchy, getSelectedYard, pickUserSecurityLevel, securityLevel, newSettings;
|
|
24444
|
+
var dashboardSessionState, settingsLocalStorageState, oldSettings, printers, _self$state, selectedYard, _self$state$selectedH, selectedHierarchyOption, selectedRole, _self$state$roles, roles, roleOptionFromState, yardNumbers, yard, selectedHierarchy, userScopes, getSelectedYard, pickUserSecurityLevel, securityLevel, newSettings;
|
|
24276
24445
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
24277
24446
|
while (1) switch (_context2.prev = _context2.next) {
|
|
24278
24447
|
case 0:
|
|
@@ -24339,6 +24508,11 @@ var saveSettings = function saveSettings(self) {
|
|
|
24339
24508
|
storage$1.setLocalItem('settings', selectedHierarchyOption, 'selectedHierarchyOption');
|
|
24340
24509
|
storage$1.setLocalItem('settings', selectedHierarchy, 'selectedHierarchy');
|
|
24341
24510
|
storage$1.setLocalItem('lastSelectedYard', yard);
|
|
24511
|
+
_context2.next = 23;
|
|
24512
|
+
return fetcher.getUserScopes();
|
|
24513
|
+
case 23:
|
|
24514
|
+
userScopes = _context2.sent;
|
|
24515
|
+
storage$1.setLocalItem('login', userScopes, 'userAppScopes');
|
|
24342
24516
|
getSelectedYard = function getSelectedYard() {
|
|
24343
24517
|
var yardList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
24344
24518
|
return yardList.find(function (yard) {
|
|
@@ -24351,7 +24525,7 @@ var saveSettings = function saveSettings(self) {
|
|
|
24351
24525
|
securityLevel = compose(pickUserSecurityLevel, getSelectedYard)((_storage$getLocalItem = storage$1.getLocalItem('login')) === null || _storage$getLocalItem === void 0 ? void 0 : _storage$getLocalItem.yardList);
|
|
24352
24526
|
storage$1.setSessionItem('securityLevel', securityLevel);
|
|
24353
24527
|
// persist user preferences
|
|
24354
|
-
_context2.next =
|
|
24528
|
+
_context2.next = 31;
|
|
24355
24529
|
return fetcher.setUserPreferences('oph', {
|
|
24356
24530
|
selectedCurrency: yard.yard_currency,
|
|
24357
24531
|
language: 'en',
|
|
@@ -24363,7 +24537,7 @@ var saveSettings = function saveSettings(self) {
|
|
|
24363
24537
|
yard: yard,
|
|
24364
24538
|
securityLevel: securityLevel
|
|
24365
24539
|
}, 'GBR');
|
|
24366
|
-
case
|
|
24540
|
+
case 31:
|
|
24367
24541
|
self.setState({
|
|
24368
24542
|
oldActivePrinters: printers
|
|
24369
24543
|
});
|
|
@@ -24377,7 +24551,7 @@ var saveSettings = function saveSettings(self) {
|
|
|
24377
24551
|
activePrinters: printers
|
|
24378
24552
|
};
|
|
24379
24553
|
self.props.onSave(oldSettings, newSettings);
|
|
24380
|
-
case
|
|
24554
|
+
case 34:
|
|
24381
24555
|
case "end":
|
|
24382
24556
|
return _context2.stop();
|
|
24383
24557
|
}
|
|
@@ -24658,7 +24832,9 @@ var SettingsView = /*#__PURE__*/function (_React$Component) {
|
|
|
24658
24832
|
selectedYard: this.state.selectedYardNumber,
|
|
24659
24833
|
selectedPrinterData: this.selectedPrinterData,
|
|
24660
24834
|
printersData: this.state.printersData
|
|
24661
|
-
})), /*#__PURE__*/React__default["default"].createElement("
|
|
24835
|
+
})), /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
24836
|
+
className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settings-hr"
|
|
24837
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24662
24838
|
className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox",
|
|
24663
24839
|
"data-e2e": "saveButton"
|
|
24664
24840
|
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.Button, {
|
|
@@ -24666,18 +24842,16 @@ var SettingsView = /*#__PURE__*/function (_React$Component) {
|
|
|
24666
24842
|
type: "submit",
|
|
24667
24843
|
onClick: this.saveSettings
|
|
24668
24844
|
}, "Save")), this.state.showLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24669
|
-
className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--backdrop"
|
|
24670
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24671
24845
|
className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--spinner"
|
|
24672
24846
|
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.Spinner, {
|
|
24673
24847
|
size: "60px"
|
|
24674
|
-
})))
|
|
24848
|
+
})));
|
|
24675
24849
|
}
|
|
24676
24850
|
}]);
|
|
24677
24851
|
return SettingsView;
|
|
24678
24852
|
}(React__default["default"].Component);
|
|
24679
24853
|
|
|
24680
|
-
var css_248z$7 = ".utilities_ops-announcements_Banner--appBarContentBox {\r\n word-break: break-all;\r\n white-space: pre-wrap;\r\n font-weight: 600;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBarContent {\r\n padding:
|
|
24854
|
+
var css_248z$7 = ".utilities_ops-announcements_Banner--appBarContentBox {\r\n word-break: break-all;\r\n white-space: pre-wrap;\r\n font-weight: 600;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBarContent {\r\n padding: 10px 10px;\r\n font-size: 13px;\r\n width: 95%;\r\n display: flex;\r\n align-items: center;\r\n grid-gap: 20px;\r\n gap: 20px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--tabNotificationInfoBar {\r\n display: flex;\r\n color: #6c7a89;\r\n grid-gap: 8px;\r\n gap: 8px;\r\n width: 90%;\r\n font-size: 12px;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--tabNotificationInfoBar b{\r\n color: #171717;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--tabNotificationInfoBox {\r\n color: white;\r\n width: 31px;\r\n min-height: 31px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBarContentBox {\r\n display: -webkit-box;\r\n -webkit-line-clamp: 2;\r\n overflow: hidden;\r\n /* font-weight: 600; */\r\n /* autoprefixer: off */\r\n -webkit-box-orient: vertical;\r\n /* autoprefixer: on */\r\n font-size: 12px;\r\n color: #201F1E;\r\n cursor: default;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBarContentBox *{\r\n display: inline;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBarContentBox a{\r\n text-decoration: underline;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--tabNotificationBarContentBox {\r\n display: -webkit-box;\r\n -webkit-line-clamp: 3;\r\n overflow: hidden;\r\n width: 95%;\r\n /* font-weight: 600; */\r\n /* autoprefixer: off */\r\n -webkit-box-orient: vertical;\r\n /* autoprefixer: on */\r\n font-size: 12px;\r\n padding: 5px 5px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationInfoBox b{\r\n color: #171717;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationInfoBox i{\r\n font-size: 20px !important;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBtnContainer {\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: center;\r\n grid-gap: 10px;\r\n gap: 10px;\r\n font-size: 12px;\r\n align-items: center;\r\n padding: 0px 10px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBtnContainer .utilities_ops-announcements_Banner--notificationLeftBtn i{\r\n position: relative;\r\n right: -4px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBtnContainer .utilities_ops-announcements_Banner--notificationCountContainer {\r\n width: 50px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationContainer {\r\n display: flex;\r\n flex-direction: row;\r\n /* padding: 10px 10px; */\r\n grid-gap: 5px;\r\n gap: 5px;\r\n min-height: 40px;\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationInfoBox {\r\n color: white;\r\n width: 52px;\r\n min-height: 52px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBarBtn {\r\n width: 52px;\r\n min-height: 52px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBtnContainer i{\r\n font-size: 22px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationContainer.utilities_ops-announcements_Banner--tabNotificationBar {\r\n flex-direction: column;\r\n /* padding: 10px 10px; */\r\n grid-gap: 0px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationContainer.utilities_ops-announcements_Banner--tabNotificationBar i{\r\n font-size: 16px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--arrowTipContainer {\r\n width: 0px;\r\n height: 0px;\r\n border-left: 8px solid transparent;\r\n border-right: 8px solid transparent;\r\n border-bottom: 13px solid white;\r\n position: absolute;\r\n top: 51px;\r\n right: 50px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--appBarContentWrapper {\r\n padding: 0px 5px;\r\n font-size: 12px;\r\n flex: 1 1 0%;\r\n display: flex;\r\n flex-direction: column;\r\n grid-gap: 4px;\r\n gap: 4px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--appBarContentWrapper b{\r\n color: #171717;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--feedUrl {\r\n text-decoration: none !important;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--feedUrl i {\r\n font-size: 14px;\r\n cursor: pointer;\r\n color: #1d5ab9;\r\n left: 2px;\r\n position: relative;\r\n top: 2px;\r\n margin-right: 3px;\r\n}\r\n";
|
|
24681
24855
|
styleInject(css_248z$7);
|
|
24682
24856
|
|
|
24683
24857
|
var _nodeResolve_empty = {};
|
|
@@ -31046,45 +31220,42 @@ var alertInfoColorMapping = {
|
|
|
31046
31220
|
success: 'rgb(50 179 55)'
|
|
31047
31221
|
};
|
|
31048
31222
|
var alertToIconMapping = {
|
|
31049
|
-
alert: '
|
|
31050
|
-
warning: '
|
|
31051
|
-
information: '
|
|
31052
|
-
success: '
|
|
31223
|
+
alert: 'circle-exclamation',
|
|
31224
|
+
warning: 'triangle-exclamation',
|
|
31225
|
+
information: 'circle-info',
|
|
31226
|
+
success: 'circle-check'
|
|
31053
31227
|
};
|
|
31054
31228
|
var Actions = function Actions(_ref) {
|
|
31055
31229
|
var onLeftButtonClick = _ref.onLeftButtonClick,
|
|
31056
31230
|
count = _ref.count,
|
|
31057
31231
|
current = _ref.current,
|
|
31058
|
-
onRightButtonClick = _ref.onRightButtonClick
|
|
31232
|
+
onRightButtonClick = _ref.onRightButtonClick,
|
|
31233
|
+
isMobileView = _ref.isMobileView;
|
|
31059
31234
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31060
|
-
|
|
31061
|
-
|
|
31062
|
-
|
|
31235
|
+
className: "utilities_ops-announcements_Banner--notificationBtnContainer",
|
|
31236
|
+
style: {
|
|
31237
|
+
gap: isMobileView ? '4px' : '10px'
|
|
31238
|
+
}
|
|
31063
31239
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
31064
|
-
onClick: onLeftButtonClick,
|
|
31240
|
+
onClick: current > 1 ? onLeftButtonClick : null,
|
|
31065
31241
|
className: "utilities_ops-announcements_Banner--notificationLeftBtn"
|
|
31066
|
-
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.
|
|
31067
|
-
|
|
31068
|
-
|
|
31242
|
+
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
|
|
31243
|
+
disabled: current === 1,
|
|
31244
|
+
name: isMobileView ? 'angle-left' : 'circle-chevron-left',
|
|
31069
31245
|
style: {
|
|
31070
|
-
fontSize: '16px',
|
|
31071
31246
|
cursor: 'pointer'
|
|
31072
31247
|
}
|
|
31073
|
-
})), count > 1 && /*#__PURE__*/React__default["default"].createElement("div",
|
|
31074
|
-
|
|
31075
|
-
|
|
31076
|
-
|
|
31077
|
-
|
|
31078
|
-
|
|
31079
|
-
|
|
31080
|
-
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.Icon, {
|
|
31081
|
-
name: "arrow_forward_ios",
|
|
31082
|
-
variant: "material",
|
|
31248
|
+
})), count > 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31249
|
+
className: "utilities_ops-announcements_Banner--notificationCountContainer"
|
|
31250
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, "".concat(current, "/").concat(count))), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
31251
|
+
onClick: current < count ? onRightButtonClick : null
|
|
31252
|
+
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
|
|
31253
|
+
disabled: current === count,
|
|
31254
|
+
name: isMobileView ? 'angle-right' : 'circle-chevron-right',
|
|
31083
31255
|
style: {
|
|
31084
|
-
fontSize: '16px',
|
|
31085
31256
|
cursor: 'pointer'
|
|
31086
31257
|
}
|
|
31087
|
-
})))
|
|
31258
|
+
})));
|
|
31088
31259
|
};
|
|
31089
31260
|
var Banner = function Banner(props) {
|
|
31090
31261
|
var count = props.count,
|
|
@@ -31133,12 +31304,17 @@ var Banner = function Banner(props) {
|
|
|
31133
31304
|
style: {
|
|
31134
31305
|
backgroundColor: alertBackgroundColorMapping[categoryDescription.toLowerCase()]
|
|
31135
31306
|
}
|
|
31136
|
-
},
|
|
31137
|
-
|
|
31138
|
-
|
|
31139
|
-
|
|
31140
|
-
|
|
31141
|
-
}
|
|
31307
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31308
|
+
className: "utilities_ops-announcements_Banner--notificationInfoBox",
|
|
31309
|
+
style: {
|
|
31310
|
+
backgroundColor: alertInfoColorMapping[categoryDescription.toLowerCase()]
|
|
31311
|
+
}
|
|
31312
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
|
|
31313
|
+
name: alertToIconMapping[categoryDescription.toLowerCase()],
|
|
31314
|
+
style: {
|
|
31315
|
+
fontSize: '19px'
|
|
31316
|
+
}
|
|
31317
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31142
31318
|
className: "utilities_ops-announcements_Banner--notificationBarContent",
|
|
31143
31319
|
style: expanded ? {
|
|
31144
31320
|
flexDirection: 'column',
|
|
@@ -31147,20 +31323,12 @@ var Banner = function Banner(props) {
|
|
|
31147
31323
|
flexDirection: 'row'
|
|
31148
31324
|
}
|
|
31149
31325
|
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31150
|
-
className: "utilities_ops-announcements_Banner--notificationInfoBox"
|
|
31151
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(coreComponents.Icon, {
|
|
31152
|
-
name: alertToIconMapping[categoryDescription.toLowerCase()],
|
|
31153
|
-
style: {
|
|
31154
|
-
fontSize: '19px',
|
|
31155
|
-
color: alertInfoColorMapping[categoryDescription.toLowerCase()]
|
|
31156
|
-
}
|
|
31157
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", null, sourceApplication && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("b", null, sourceApplication), " -"), " ", timeDiff)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31158
31326
|
className: "utilities_ops-announcements_Banner--notificationBarContentBox",
|
|
31159
31327
|
ref: contentBarRef,
|
|
31160
31328
|
style: _objectSpread2({}, expanded && {
|
|
31161
31329
|
WebkitLineClamp: 'unset'
|
|
31162
31330
|
})
|
|
31163
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
31331
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null, sourceApplication && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("b", null, sourceApplication), " -"), " ", timeDiff), /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, " : "), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
31164
31332
|
onClick: function onClick() {
|
|
31165
31333
|
return isContentOverFlow && setExpanded(!expanded);
|
|
31166
31334
|
},
|
|
@@ -31178,25 +31346,35 @@ var Banner = function Banner(props) {
|
|
|
31178
31346
|
notification: notification,
|
|
31179
31347
|
saveActionComponentState: saveActionComponentState
|
|
31180
31348
|
})), isContentOverFlow && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31181
|
-
|
|
31182
|
-
cursor: 'pointer'
|
|
31183
|
-
},
|
|
31349
|
+
className: "utilities_ops-announcements_Banner--notificationBarBtn",
|
|
31184
31350
|
onClick: function onClick() {
|
|
31185
31351
|
return setExpanded(!expanded);
|
|
31186
31352
|
}
|
|
31187
31353
|
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.Icon, {
|
|
31188
|
-
name: expanded ? 'keyboard_double_arrow_up' : 'keyboard_double_arrow_down',
|
|
31189
|
-
variant: "material"
|
|
31190
|
-
})), (dismissibleFlag === true || dismissibleFlag === "true") && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31191
31354
|
style: {
|
|
31192
|
-
cursor: 'pointer'
|
|
31193
|
-
marginLeft: 'auto'
|
|
31355
|
+
cursor: 'pointer'
|
|
31194
31356
|
},
|
|
31357
|
+
name: expanded ? 'keyboard_double_arrow_up' : 'keyboard_double_arrow_down',
|
|
31358
|
+
variant: "material"
|
|
31359
|
+
})), showNavButtons && /*#__PURE__*/React__default["default"].createElement(Actions, {
|
|
31360
|
+
onLeftButtonClick: onLeftButtonClick,
|
|
31361
|
+
count: count,
|
|
31362
|
+
current: current,
|
|
31363
|
+
onRightButtonClick: onRightButtonClick
|
|
31364
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31365
|
+
className: "utilities_ops-announcements_Banner--notificationBarBtn",
|
|
31366
|
+
style: dismissibleFlag === true || dismissibleFlag === "true" ? {
|
|
31367
|
+
borderLeft: '2px solid rgb(204, 204, 204)'
|
|
31368
|
+
} : {}
|
|
31369
|
+
}, (dismissibleFlag === true || dismissibleFlag === "true") && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31195
31370
|
onClick: onDismiss
|
|
31196
31371
|
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.Icon, {
|
|
31372
|
+
style: {
|
|
31373
|
+
cursor: 'pointer'
|
|
31374
|
+
},
|
|
31197
31375
|
name: "close",
|
|
31198
31376
|
variant: "material"
|
|
31199
|
-
})));
|
|
31377
|
+
}))));
|
|
31200
31378
|
};
|
|
31201
31379
|
var sideNotificationBar = function sideNotificationBar() {
|
|
31202
31380
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -31208,7 +31386,7 @@ var Banner = function Banner(props) {
|
|
|
31208
31386
|
style: {
|
|
31209
31387
|
marginTop: '3px'
|
|
31210
31388
|
}
|
|
31211
|
-
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.
|
|
31389
|
+
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
|
|
31212
31390
|
name: alertToIconMapping[categoryDescription.toLowerCase()],
|
|
31213
31391
|
style: {
|
|
31214
31392
|
fontSize: '16px',
|
|
@@ -31260,54 +31438,46 @@ var Banner = function Banner(props) {
|
|
|
31260
31438
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31261
31439
|
style: {
|
|
31262
31440
|
display: 'flex',
|
|
31263
|
-
|
|
31264
|
-
|
|
31441
|
+
minHeight: '27px',
|
|
31442
|
+
alignItems: 'center'
|
|
31265
31443
|
}
|
|
31266
31444
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31267
|
-
className: "utilities_ops-announcements_Banner--
|
|
31268
|
-
}, /*#__PURE__*/React__default["default"].createElement("div",
|
|
31445
|
+
className: "utilities_ops-announcements_Banner--tabNotificationInfoBar"
|
|
31446
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31447
|
+
className: "utilities_ops-announcements_Banner--tabNotificationInfoBox",
|
|
31448
|
+
style: {
|
|
31449
|
+
backgroundColor: alertInfoColorMapping[categoryDescription.toLowerCase()]
|
|
31450
|
+
}
|
|
31451
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
|
|
31269
31452
|
name: alertToIconMapping[categoryDescription.toLowerCase()],
|
|
31270
31453
|
style: {
|
|
31271
|
-
fontSize: '16px'
|
|
31272
|
-
color: alertInfoColorMapping[categoryDescription.toLowerCase()]
|
|
31454
|
+
fontSize: '16px'
|
|
31273
31455
|
}
|
|
31274
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", null, sourceApplication && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("b", null, sourceApplication), " -"), " ", timeDiff)), /*#__PURE__*/React__default["default"].createElement("div", null, showNavButtons && /*#__PURE__*/React__default["default"].createElement(Actions, {
|
|
31456
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", null, sourceApplication && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("b", null, sourceApplication), " -"), " ", timeDiff)), /*#__PURE__*/React__default["default"].createElement("div", null, showNavButtons && /*#__PURE__*/React__default["default"].createElement(Actions, {
|
|
31275
31457
|
onLeftButtonClick: onLeftButtonClick,
|
|
31276
31458
|
count: count,
|
|
31277
31459
|
current: current,
|
|
31278
|
-
onRightButtonClick: onRightButtonClick
|
|
31460
|
+
onRightButtonClick: onRightButtonClick,
|
|
31461
|
+
isMobileView: true
|
|
31279
31462
|
})), isContentOverFlow && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31280
31463
|
style: {
|
|
31281
31464
|
cursor: 'pointer',
|
|
31282
|
-
|
|
31465
|
+
margin: '-2px 8px 0px 8px'
|
|
31283
31466
|
},
|
|
31284
31467
|
onClick: function onClick() {
|
|
31285
31468
|
return setExpanded(!expanded);
|
|
31286
31469
|
}
|
|
31287
|
-
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.
|
|
31288
|
-
name: expanded ? '
|
|
31289
|
-
|
|
31290
|
-
style: {
|
|
31291
|
-
fontSize: '15px'
|
|
31292
|
-
}
|
|
31293
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31294
|
-
style: {
|
|
31295
|
-
width: '3%'
|
|
31296
|
-
}
|
|
31297
|
-
}, dismissibleFlag && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31470
|
+
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
|
|
31471
|
+
name: expanded ? 'angles-up' : 'angles-down'
|
|
31472
|
+
})), dismissibleFlag && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31298
31473
|
style: {
|
|
31299
31474
|
cursor: 'pointer',
|
|
31300
|
-
|
|
31301
|
-
marginTop: '3px'
|
|
31475
|
+
margin: '-2px 8px 0px 8px'
|
|
31302
31476
|
},
|
|
31303
31477
|
onClick: onDismiss
|
|
31304
|
-
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.
|
|
31305
|
-
name: "
|
|
31306
|
-
|
|
31307
|
-
style: {
|
|
31308
|
-
fontSize: '15px'
|
|
31309
|
-
}
|
|
31310
|
-
})))), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31478
|
+
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
|
|
31479
|
+
name: "xmark"
|
|
31480
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31311
31481
|
className: "utilities_ops-announcements_Banner--tabNotificationBarContentBox",
|
|
31312
31482
|
ref: contentBarRef,
|
|
31313
31483
|
style: _objectSpread2({}, expanded && {
|
|
@@ -31400,6 +31570,18 @@ var Notifications = function Notifications(_ref) {
|
|
|
31400
31570
|
}) : null);
|
|
31401
31571
|
};
|
|
31402
31572
|
|
|
31573
|
+
var capitalizeAndReplaceUnderscores = function capitalizeAndReplaceUnderscores(role) {
|
|
31574
|
+
return role.split('_').filter(Boolean).map(function (word) {
|
|
31575
|
+
return word[0].toUpperCase() + word.substr(1);
|
|
31576
|
+
}).join(' ');
|
|
31577
|
+
};
|
|
31578
|
+
var formatUK = function formatUK(role) {
|
|
31579
|
+
return role.startsWith('uk') ? "UK".concat(role.substr(2)) : role;
|
|
31580
|
+
};
|
|
31581
|
+
var formatRole = function formatRole(role) {
|
|
31582
|
+
return capitalizeAndReplaceUnderscores(formatUK(role));
|
|
31583
|
+
};
|
|
31584
|
+
|
|
31403
31585
|
var _styleModuleImportMap$2 = {
|
|
31404
31586
|
"./AppBar.css": {
|
|
31405
31587
|
"root": "utilities_ops-app-frame_AppBarComponent_AppBar--root",
|
|
@@ -31523,20 +31705,21 @@ var overflowIconStyles = {
|
|
|
31523
31705
|
color: 'white'
|
|
31524
31706
|
};
|
|
31525
31707
|
var generateAppBarElements = function generateAppBarElements(props, showCallout) {
|
|
31526
|
-
|
|
31527
|
-
|
|
31528
|
-
|
|
31708
|
+
var _window$toolkitEnv2;
|
|
31709
|
+
var countryCode = props.countryCode,
|
|
31710
|
+
role = props.role,
|
|
31711
|
+
yardNumber = props.yardNumber;
|
|
31529
31712
|
props.phoneNumber;
|
|
31530
31713
|
props.phoneStatusObject;
|
|
31531
31714
|
props.togglePhoneAvailability;
|
|
31532
|
-
var handleHelpClick = props.handleHelpClick
|
|
31533
|
-
props.type
|
|
31534
|
-
|
|
31715
|
+
var handleHelpClick = props.handleHelpClick,
|
|
31716
|
+
type = props.type,
|
|
31717
|
+
config = props.config,
|
|
31535
31718
|
_props$navigateTo = props.navigateTo,
|
|
31536
|
-
navigateTo = _props$navigateTo === void 0 ? function (url) {} : _props$navigateTo
|
|
31537
|
-
|
|
31538
|
-
|
|
31539
|
-
_props$notifications = props.notifications,
|
|
31719
|
+
navigateTo = _props$navigateTo === void 0 ? function (url) {} : _props$navigateTo;
|
|
31720
|
+
props.isMihelpEnabled;
|
|
31721
|
+
props.isIdeaNoteEnabled;
|
|
31722
|
+
var _props$notifications = props.notifications,
|
|
31540
31723
|
notifications = _props$notifications === void 0 ? [] : _props$notifications;
|
|
31541
31724
|
props.width;
|
|
31542
31725
|
var setNotificationsVisible = props.setNotificationsVisible,
|
|
@@ -31557,7 +31740,9 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
31557
31740
|
mobileMenuVisible = props.mobileMenuVisible;
|
|
31558
31741
|
var coreAppConfig = storage$1.getLocalItem('opsportal-core:config');
|
|
31559
31742
|
var enableNewToolkitFeatures = coreAppConfig.enableNewToolkitFeatures,
|
|
31560
|
-
showSettingsMenuByTileConfig = coreAppConfig.showSettingsMenuByTileConfig
|
|
31743
|
+
showSettingsMenuByTileConfig = coreAppConfig.showSettingsMenuByTileConfig,
|
|
31744
|
+
enableIdeaNote = coreAppConfig.enableIdeaNote,
|
|
31745
|
+
enableMiHelp = coreAppConfig.enableMiHelp;
|
|
31561
31746
|
var showSettingsInAppbar = false;
|
|
31562
31747
|
if (isCoreRoute) {
|
|
31563
31748
|
showSettingsInAppbar = enableNewToolkitFeatures;
|
|
@@ -31605,6 +31790,7 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
31605
31790
|
};
|
|
31606
31791
|
return languageMapper[language];
|
|
31607
31792
|
};
|
|
31793
|
+
var stack = (_window$toolkitEnv2 = window.toolkitEnv) !== null && _window$toolkitEnv2 !== void 0 && _window$toolkitEnv2.STACK ? window.toolkitEnv.STACK : process.env.STACK;
|
|
31608
31794
|
var items = [{
|
|
31609
31795
|
key: 'search',
|
|
31610
31796
|
name: 'Search',
|
|
@@ -31645,7 +31831,7 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
31645
31831
|
text: "Feedback"
|
|
31646
31832
|
}));
|
|
31647
31833
|
},
|
|
31648
|
-
renderIf: !
|
|
31834
|
+
renderIf: !enableMiHelp,
|
|
31649
31835
|
onClick: function onClick() {
|
|
31650
31836
|
return props.toggleFeedbackDialog(true);
|
|
31651
31837
|
},
|
|
@@ -31674,7 +31860,7 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
31674
31860
|
text: "MiHelp"
|
|
31675
31861
|
}));
|
|
31676
31862
|
},
|
|
31677
|
-
renderIf:
|
|
31863
|
+
renderIf: enableMiHelp,
|
|
31678
31864
|
render: function render() {
|
|
31679
31865
|
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
31680
31866
|
className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items"
|
|
@@ -31705,7 +31891,7 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
31705
31891
|
text: "Innov8Hub"
|
|
31706
31892
|
}));
|
|
31707
31893
|
},
|
|
31708
|
-
renderIf:
|
|
31894
|
+
renderIf: enableIdeaNote,
|
|
31709
31895
|
render: function render() {
|
|
31710
31896
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31711
31897
|
className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items utilities_ops-app-frame_AppBarComponent_AppBar--lightBulbIcon",
|
|
@@ -31751,7 +31937,7 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
31751
31937
|
}, {
|
|
31752
31938
|
key: 'language',
|
|
31753
31939
|
name: 'Language',
|
|
31754
|
-
renderIf:
|
|
31940
|
+
renderIf: stack === 'c',
|
|
31755
31941
|
render: function render() {
|
|
31756
31942
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31757
31943
|
className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items utilities_ops-app-frame_AppBarComponent_AppBar--language",
|
|
@@ -31761,7 +31947,38 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
31761
31947
|
}, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
|
|
31762
31948
|
name: "earth-americas",
|
|
31763
31949
|
variant: "regular"
|
|
31764
|
-
}),
|
|
31950
|
+
}), ' ', /*#__PURE__*/React__default["default"].createElement("span", null, getLanguage(storage$1.activeLanguage)));
|
|
31951
|
+
}
|
|
31952
|
+
}, {
|
|
31953
|
+
key: 'roleAndFlag',
|
|
31954
|
+
name: formatRole(role),
|
|
31955
|
+
onRender: function onRender(_, dismissMenu) {
|
|
31956
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31957
|
+
className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items",
|
|
31958
|
+
onClick: function onClick() {
|
|
31959
|
+
navigateTo('/settings');
|
|
31960
|
+
dismissMenu();
|
|
31961
|
+
}
|
|
31962
|
+
}, /*#__PURE__*/React__default["default"].createElement(OverFlowIcon, {
|
|
31963
|
+
name: "supervised_user_circle"
|
|
31964
|
+
}), /*#__PURE__*/React__default["default"].createElement(OverFlowText, {
|
|
31965
|
+
text: formatRole(role)
|
|
31966
|
+
})));
|
|
31967
|
+
},
|
|
31968
|
+
renderIf: config.includes('role') || config.includes('flag'),
|
|
31969
|
+
render: function render() {
|
|
31970
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31971
|
+
id: "roleItem",
|
|
31972
|
+
className: "utilities_ops-app-frame_AppBarComponent_AppBar--item utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag",
|
|
31973
|
+
onClick: showSettingsInAppbar ? function () {
|
|
31974
|
+
return handleIconClick(ICONS.SETTINGS);
|
|
31975
|
+
} : navigateTo('/settings')
|
|
31976
|
+
}, config.includes('flag') ? /*#__PURE__*/React__default["default"].createElement(Flag$1, {
|
|
31977
|
+
countryCode: countryCode,
|
|
31978
|
+
type: type
|
|
31979
|
+
}) : null, config.includes('role') ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
31980
|
+
"data-testid": "role"
|
|
31981
|
+
}, formatRole(role)) : null);
|
|
31765
31982
|
}
|
|
31766
31983
|
}, {
|
|
31767
31984
|
key: 'facility',
|
|
@@ -31923,7 +32140,7 @@ var ICONS = {
|
|
|
31923
32140
|
MOBILE_MENU: 'MOBILE_MENU'
|
|
31924
32141
|
};
|
|
31925
32142
|
var AppBar$1 = function AppBar(props) {
|
|
31926
|
-
var _window$
|
|
32143
|
+
var _window$toolkitEnv4;
|
|
31927
32144
|
var coreAppConfig = storage$1.getLocalItem('opsportal-core:config');
|
|
31928
32145
|
var enableNewToolkitFeatures = coreAppConfig.enableNewToolkitFeatures,
|
|
31929
32146
|
ideaNoteUri = coreAppConfig.ideaNoteUri;
|
|
@@ -31992,7 +32209,6 @@ var AppBar$1 = function AppBar(props) {
|
|
|
31992
32209
|
setCount = _useState22[1];
|
|
31993
32210
|
var mihelpRef = React.useRef(null);
|
|
31994
32211
|
var mihelpIconRef = React.useRef(null);
|
|
31995
|
-
console.log("***mobileMenuVisible=", mobileMenuVisible);
|
|
31996
32212
|
React.useLayoutEffect(function () {
|
|
31997
32213
|
setCount(count + 1);
|
|
31998
32214
|
}, [width]);
|
|
@@ -32032,7 +32248,7 @@ var AppBar$1 = function AppBar(props) {
|
|
|
32032
32248
|
case 7:
|
|
32033
32249
|
_context.prev = 7;
|
|
32034
32250
|
_context.t0 = _context["catch"](0);
|
|
32035
|
-
setIdeaNoteToken(
|
|
32251
|
+
setIdeaNoteToken('TOKEN_ERROR');
|
|
32036
32252
|
console.log(_context.t0);
|
|
32037
32253
|
case 11:
|
|
32038
32254
|
case "end":
|
|
@@ -32124,10 +32340,10 @@ var AppBar$1 = function AppBar(props) {
|
|
|
32124
32340
|
onSettingsSaved(oldSettings, newSettings);
|
|
32125
32341
|
};
|
|
32126
32342
|
var getTile = function getTile() {
|
|
32127
|
-
var _window$
|
|
32343
|
+
var _window$toolkitEnv3;
|
|
32128
32344
|
var appTiles = coreAppConfig.tiles || [];
|
|
32129
32345
|
var appTile;
|
|
32130
|
-
var appName = (_window$
|
|
32346
|
+
var appName = (_window$toolkitEnv3 = window.toolkitEnv) !== null && _window$toolkitEnv3 !== void 0 && _window$toolkitEnv3.APP_NAME ? window.toolkitEnv.APP_NAME : process.env.APP_NAME;
|
|
32131
32347
|
var matchingTiles = appTiles.filter(function (tile) {
|
|
32132
32348
|
if (tile.appName) {
|
|
32133
32349
|
return tile.appName === appName;
|
|
@@ -32182,17 +32398,17 @@ var AppBar$1 = function AppBar(props) {
|
|
|
32182
32398
|
// )
|
|
32183
32399
|
|
|
32184
32400
|
var closeSidebar = function closeSidebar(e) {
|
|
32185
|
-
if (e.target.className.includes(
|
|
32401
|
+
if (e.target.className.includes('sideBarWrapper')) {
|
|
32186
32402
|
setNotificationsVisible(false);
|
|
32187
32403
|
}
|
|
32188
|
-
if (e.target.className.includes(
|
|
32404
|
+
if (e.target.className.includes('settingsSidebarWrapper')) {
|
|
32189
32405
|
setSettingsVisible(false);
|
|
32190
32406
|
}
|
|
32191
|
-
if (e.target.className.includes(
|
|
32407
|
+
if (e.target.className.includes('mobileMenuSidebarWrapper')) {
|
|
32192
32408
|
setMobileMenuVisible(false);
|
|
32193
32409
|
}
|
|
32194
32410
|
};
|
|
32195
|
-
(_window$
|
|
32411
|
+
var stack = (_window$toolkitEnv4 = window.toolkitEnv) !== null && _window$toolkitEnv4 !== void 0 && _window$toolkitEnv4.STACK ? window.toolkitEnv.STACK : process.env.STACK;
|
|
32196
32412
|
var mobileMenuItems = [{
|
|
32197
32413
|
name: 'Help',
|
|
32198
32414
|
icon: 'question-circle',
|
|
@@ -32221,7 +32437,7 @@ var AppBar$1 = function AppBar(props) {
|
|
|
32221
32437
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32222
32438
|
className: "utilities_ops-app-frame_AppBarComponent_AppBar--leftItems"
|
|
32223
32439
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32224
|
-
className: _getClassName(enableNewToolkitFeatures ?
|
|
32440
|
+
className: _getClassName(enableNewToolkitFeatures ? 'copartLogoNew' : 'copartLogo', _styleModuleImportMap$2, {
|
|
32225
32441
|
"handleMissingStyleName": "warn"
|
|
32226
32442
|
})
|
|
32227
32443
|
}, /*#__PURE__*/React__default["default"].createElement(CopartLogo, null), !enableNewToolkitFeatures && !isAuthRoute ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -32293,13 +32509,13 @@ var AppBar$1 = function AppBar(props) {
|
|
|
32293
32509
|
maxWidth: '400px',
|
|
32294
32510
|
backgroundColor: 'white'
|
|
32295
32511
|
},
|
|
32296
|
-
src: ideaNoteToken ===
|
|
32512
|
+
src: ideaNoteToken === 'TOKEN_ERROR' ? ideaNoteUri : "".concat(ideaNoteUri, "&auth.jwt=").concat(ideaNoteToken)
|
|
32297
32513
|
}) : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32298
32514
|
style: {
|
|
32299
32515
|
position: 'absolute',
|
|
32300
32516
|
bottom: '0',
|
|
32301
32517
|
right: '0',
|
|
32302
|
-
height: '
|
|
32518
|
+
height: '100%',
|
|
32303
32519
|
width: '400px',
|
|
32304
32520
|
backgroundColor: 'white'
|
|
32305
32521
|
}
|
|
@@ -32337,11 +32553,11 @@ var AppBar$1 = function AppBar(props) {
|
|
|
32337
32553
|
onClick: closeSidebar
|
|
32338
32554
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
32339
32555
|
className: "utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebar"
|
|
32340
|
-
}, !
|
|
32556
|
+
}, !stack || stack === 'c' ? /*#__PURE__*/React__default["default"].createElement(SettingsView$1, {
|
|
32341
32557
|
onSave: onSave,
|
|
32342
32558
|
onLogoutItemClicked: onLogoutItemClicked,
|
|
32343
32559
|
width: width
|
|
32344
|
-
}) : null,
|
|
32560
|
+
}) : null, stack === 'uk' ? /*#__PURE__*/React__default["default"].createElement(SettingsView, {
|
|
32345
32561
|
onSave: onSave,
|
|
32346
32562
|
onLogoutItemClicked: onLogoutItemClicked,
|
|
32347
32563
|
width: width
|
|
@@ -33914,7 +34130,7 @@ const author = "Brian McKelvey <theturtle32@gmail.com> (https://github.com/thetu
|
|
|
33914
34130
|
const contributors = [
|
|
33915
34131
|
"Iñaki Baz Castillo <ibc@aliax.net> (http://dev.sipdoc.net)"
|
|
33916
34132
|
];
|
|
33917
|
-
const version$6 = "1.0.
|
|
34133
|
+
const version$6 = "1.0.35";
|
|
33918
34134
|
const repository = {
|
|
33919
34135
|
type: "git",
|
|
33920
34136
|
url: "https://github.com/theturtle32/WebSocket-Node.git"
|
|
@@ -33926,7 +34142,7 @@ const engines = {
|
|
|
33926
34142
|
const dependencies = {
|
|
33927
34143
|
bufferutil: "^4.0.1",
|
|
33928
34144
|
debug: "^2.2.0",
|
|
33929
|
-
"es5-ext": "^0.10.
|
|
34145
|
+
"es5-ext": "^0.10.63",
|
|
33930
34146
|
"typedarray-to-buffer": "^3.1.5",
|
|
33931
34147
|
"utf-8-validate": "^5.0.2",
|
|
33932
34148
|
yaeti: "^0.0.6"
|
|
@@ -34269,13 +34485,22 @@ var emailAddressAllowed = function emailAddressAllowed(emailAddress, tile) {
|
|
|
34269
34485
|
|
|
34270
34486
|
// permissionIds are for selected role only
|
|
34271
34487
|
var appFunctionIdAllowed = function appFunctionIdAllowed() {
|
|
34488
|
+
var _window$toolkitEnv;
|
|
34272
34489
|
var coreAppPermissions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
34273
34490
|
var permissionIds = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
34274
|
-
var
|
|
34491
|
+
var appScopes = arguments.length > 3 ? arguments[3] : undefined;
|
|
34492
|
+
var tile = arguments.length > 4 ? arguments[4] : undefined;
|
|
34493
|
+
var stack = (_window$toolkitEnv = window.toolkitEnv) !== null && _window$toolkitEnv !== void 0 && _window$toolkitEnv.STACK ? window.toolkitEnv.STACK : process.env.STACK;
|
|
34494
|
+
if (tile.useAppScopes) {
|
|
34495
|
+
var userAppScopes = Array.isArray(appScopes) ? appScopes : [];
|
|
34496
|
+
return tile.appAuthName && userAppScopes.some(function (appScope) {
|
|
34497
|
+
return appScope.appName === tile.appAuthName;
|
|
34498
|
+
});
|
|
34499
|
+
}
|
|
34275
34500
|
var id = tile.appFunctionId;
|
|
34276
34501
|
if (!id) {
|
|
34277
34502
|
return true; // not defined in config so just allow the tile to be viewed for now
|
|
34278
|
-
} else if (
|
|
34503
|
+
} else if (stack === 'g') {
|
|
34279
34504
|
return includes$1(id, permissionIds);
|
|
34280
34505
|
}
|
|
34281
34506
|
// Check appfunction in opsportal-core permissions
|
|
@@ -34305,12 +34530,13 @@ var getUserData = function getUserData() {
|
|
|
34305
34530
|
permissionIds: storage$1.permissionIds,
|
|
34306
34531
|
allPermissionIds: storage$1.allPermissionIds,
|
|
34307
34532
|
hasCasAccess: storage$1.hasCasAccess,
|
|
34308
|
-
coreAppPermissions: storage$1.coreAppPermissions
|
|
34533
|
+
coreAppPermissions: storage$1.coreAppPermissions,
|
|
34534
|
+
appScopes: storage$1.userAppScopes
|
|
34309
34535
|
};
|
|
34310
34536
|
};
|
|
34311
34537
|
var userHasAccess = function userHasAccess(tile) {
|
|
34312
34538
|
var user = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getUserData();
|
|
34313
|
-
return allAreTruthy([stackIsAllowed(tile.stack), yardNumberAllowed(user.activeYardNumber, tile), securityLevelAllowed(user.securityLevel, tile), emailAddressAllowed(user.emailAddress, tile), appFunctionIdAllowed(user.coreAppPermissions, user.allPermissionIds, user.permissionIds, tile), casAccessAllowed(user.hasCasAccess, tile.requireCasAccess)]);
|
|
34539
|
+
return allAreTruthy([stackIsAllowed(tile.stack), yardNumberAllowed(user.activeYardNumber, tile), securityLevelAllowed(user.securityLevel, tile), emailAddressAllowed(user.emailAddress, tile), appFunctionIdAllowed(user.coreAppPermissions, user.allPermissionIds, user.permissionIds, user.appScopes, tile), casAccessAllowed(user.hasCasAccess, tile.requireCasAccess)]);
|
|
34314
34540
|
};
|
|
34315
34541
|
|
|
34316
34542
|
var accessHelpers = /*#__PURE__*/Object.freeze({
|
|
@@ -34397,7 +34623,7 @@ var AppBar = function AppBar(_ref) {
|
|
|
34397
34623
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
34398
34624
|
showMihelpTooltip = _useState8[0],
|
|
34399
34625
|
setShowMihelpTooltip = _useState8[1];
|
|
34400
|
-
var tileData = findAppData(coreAppConfig.tiles
|
|
34626
|
+
var tileData = findAppData(coreAppConfig.tiles, coreAppConfig.tileOverrides) || {};
|
|
34401
34627
|
var mihelpAppPath = isCoreRoute && !window.location.pathname.includes('embedded') ? null : tileData.mihelpAppPath;
|
|
34402
34628
|
var isMihelpEnabled;
|
|
34403
34629
|
if (isCoreRoute && !window.location.pathname.includes('embedded')) {
|
|
@@ -34562,7 +34788,7 @@ var AppBar = function AppBar(_ref) {
|
|
|
34562
34788
|
var handleHelpClick = function handleHelpClick() {
|
|
34563
34789
|
var country = storage$1.getSessionItem('dashboard', 'selectedCountryA3code');
|
|
34564
34790
|
var uri = mihelpAppPath ? "".concat(coreAppConfig.mihelpUri, "/applications/").concat(mihelpAppPath, "?re=").concat(country.toLowerCase()) : "".concat(coreAppConfig.mihelpUri, "?re=").concat(country.toLowerCase());
|
|
34565
|
-
window.open(uri,
|
|
34791
|
+
window.open(uri, '_blank');
|
|
34566
34792
|
};
|
|
34567
34793
|
var feedbackConfig = function feedbackConfig() {
|
|
34568
34794
|
var _storage$coreConfig;
|
|
@@ -34642,7 +34868,7 @@ var AppBar = function AppBar(_ref) {
|
|
|
34642
34868
|
}
|
|
34643
34869
|
var check = filterNotifications(newNotifications);
|
|
34644
34870
|
var newNotification = _objectSpread2({}, newNotifications[0]);
|
|
34645
|
-
var startTime = newNotification.timeZoneType ===
|
|
34871
|
+
var startTime = newNotification.timeZoneType === 'RPTZ' ? newNotification.startsAt : moment.utc(newNotification.startsAt).local().format('YYYY-MM-DD HH:mm:ss');
|
|
34646
34872
|
// const endTime = newNotification.timeZoneType === "RPTZ" && newNotification.endDateTimeZone !=='UTC' ? newNotification.endsAt : moment.utc(newNotification.endsAt).local().format("YYYY-MM-DD HH:mm:ss")
|
|
34647
34873
|
var currentDate = new Date();
|
|
34648
34874
|
if (!check.length) {
|
|
@@ -34665,7 +34891,7 @@ var AppBar = function AppBar(_ref) {
|
|
|
34665
34891
|
filteredOutNotifications.forEach(function (notification) {
|
|
34666
34892
|
var _notification$newsTar;
|
|
34667
34893
|
if (notification !== null && notification !== void 0 && (_notification$newsTar = notification.newsTarget) !== null && _notification$newsTar !== void 0 && _notification$newsTar.audience_value) {
|
|
34668
|
-
var startTime = moment.utc(notification.startsAt).local().format(
|
|
34894
|
+
var startTime = moment.utc(notification.startsAt).local().format('YYYY-MM-DD HH:mm:ss');
|
|
34669
34895
|
var currentDate = new Date();
|
|
34670
34896
|
if (new Date(startTime) > currentDate) {
|
|
34671
34897
|
setListOfAllFirebaseNotifications(function (notifications) {
|
|
@@ -34776,7 +35002,7 @@ var AppBar = function AppBar(_ref) {
|
|
|
34776
35002
|
if (history.location.pathname !== '/logout' && history.location.pathname !== '/login' && localStorage.getItem('login') && tileConfigAccess) {
|
|
34777
35003
|
if (notificationsSource.includes('Nchan')) {
|
|
34778
35004
|
fetchG2Notifications(updateNotifications, updateAllNotificationsList);
|
|
34779
|
-
if (!(window.navigator.userAgent.includes(
|
|
35005
|
+
if (!(window.navigator.userAgent.includes('Chrome') && window.location.href.includes('localhost'))) {
|
|
34780
35006
|
var client = startWebSocketConnection(updateNotifications, updateAllNotificationsList, reConnectSocket);
|
|
34781
35007
|
var pingIntervalInSec = coreAppConfig.nchanPingIntervalInSec || 30;
|
|
34782
35008
|
setPingInterval(setInterval(function () {
|
|
@@ -34832,7 +35058,12 @@ var AppBar = function AppBar(_ref) {
|
|
|
34832
35058
|
phoneStatus: '',
|
|
34833
35059
|
phoneStatusProcessing: false
|
|
34834
35060
|
} : _storage$chromePlugin;
|
|
34835
|
-
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(
|
|
35061
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Notifications, {
|
|
35062
|
+
notifications: notifications || [],
|
|
35063
|
+
onDismiss: dismissNotification,
|
|
35064
|
+
ActionComponent: ActionComponent,
|
|
35065
|
+
saveActionComponentState: saveActionComponentState
|
|
35066
|
+
}), /*#__PURE__*/React__default["default"].createElement(AppBar$1, {
|
|
34836
35067
|
moduleName: "OPS PORTAL",
|
|
34837
35068
|
isLoggedOn: storage$1.isAuthenticated,
|
|
34838
35069
|
config: APP_BAR_CONFIGS[STACK],
|
|
@@ -34871,11 +35102,6 @@ var AppBar = function AppBar(_ref) {
|
|
|
34871
35102
|
showMihelpDot: showMihelpDot,
|
|
34872
35103
|
setShowMihelpTooltip: setShowMihelpTooltip,
|
|
34873
35104
|
showMihelpTooltip: showMihelpTooltip
|
|
34874
|
-
}), /*#__PURE__*/React__default["default"].createElement(Notifications, {
|
|
34875
|
-
notifications: notifications || [],
|
|
34876
|
-
onDismiss: dismissNotification,
|
|
34877
|
-
ActionComponent: ActionComponent,
|
|
34878
|
-
saveActionComponentState: saveActionComponentState
|
|
34879
35105
|
}), latestRelease && /*#__PURE__*/React__default["default"].createElement(LatestReleaseDialog, {
|
|
34880
35106
|
release: latestRelease,
|
|
34881
35107
|
handleClose: handleReleaseClose,
|
|
@@ -34928,8 +35154,8 @@ var AuthGuard = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
34928
35154
|
key: "componentDidMount",
|
|
34929
35155
|
value: function () {
|
|
34930
35156
|
var _componentDidMount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
34931
|
-
var _window$toolkitEnv;
|
|
34932
|
-
var disableRestrictions, appTile, _window$toolkitEnv2, appAuthName, tileConfigAccess;
|
|
35157
|
+
var _window$toolkitEnv, _window$toolkitEnv3;
|
|
35158
|
+
var disableRestrictions, appTile, _window$toolkitEnv2, appAuthName, stack, tileConfigAccess;
|
|
34933
35159
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
34934
35160
|
while (1) switch (_context.prev = _context.next) {
|
|
34935
35161
|
case 0:
|
|
@@ -34987,20 +35213,26 @@ var AuthGuard = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
34987
35213
|
case 16:
|
|
34988
35214
|
return _context.abrupt("return", this.allowAccess(PATH_NOT_FOUND));
|
|
34989
35215
|
case 17:
|
|
34990
|
-
|
|
34991
|
-
|
|
35216
|
+
// Fetch permissions for opsportal-core and the opsportal application
|
|
35217
|
+
// The app functions required for application visibility(when applicable)
|
|
35218
|
+
// will be part of opsportal-core permissions
|
|
35219
|
+
// Permissions for the opsportal-core and the opsportal application will be available in the
|
|
35220
|
+
// local storage
|
|
35221
|
+
stack = (_window$toolkitEnv3 = window.toolkitEnv) !== null && _window$toolkitEnv3 !== void 0 && _window$toolkitEnv3.STACK ? window.toolkitEnv.STACK : process.env.STACK;
|
|
35222
|
+
if (!(stack !== 'g')) {
|
|
35223
|
+
_context.next = 24;
|
|
34992
35224
|
break;
|
|
34993
35225
|
}
|
|
34994
|
-
_context.next =
|
|
35226
|
+
_context.next = 21;
|
|
34995
35227
|
return fetcher.getCoreAppPermissions();
|
|
34996
|
-
case
|
|
35228
|
+
case 21:
|
|
34997
35229
|
if (!appTile.appAuthName) {
|
|
34998
|
-
_context.next =
|
|
35230
|
+
_context.next = 24;
|
|
34999
35231
|
break;
|
|
35000
35232
|
}
|
|
35001
|
-
_context.next =
|
|
35002
|
-
return fetcher.getPermissions(appTile.appAuthName);
|
|
35003
|
-
case
|
|
35233
|
+
_context.next = 24;
|
|
35234
|
+
return fetcher.getPermissions(appTile.appAuthName, appTile.useAppScopes);
|
|
35235
|
+
case 24:
|
|
35004
35236
|
// If there are rules, evaluate and act accordingly.
|
|
35005
35237
|
tileConfigAccess = userHasAccess(appTile);
|
|
35006
35238
|
if (tileConfigAccess) {
|
|
@@ -35008,7 +35240,7 @@ var AuthGuard = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
35008
35240
|
} else {
|
|
35009
35241
|
this.denyAccess(NO_TILE_PERMISSION);
|
|
35010
35242
|
}
|
|
35011
|
-
case
|
|
35243
|
+
case 26:
|
|
35012
35244
|
case "end":
|
|
35013
35245
|
return _context.stop();
|
|
35014
35246
|
}
|
|
@@ -45469,7 +45701,7 @@ var formatNumber = function formatNumber(number) {
|
|
|
45469
45701
|
return sign * Math.abs(number) + unitlist[unit];
|
|
45470
45702
|
};
|
|
45471
45703
|
|
|
45472
|
-
var css_248z$2 = ".utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer {\r\n display: flex;\r\n flex-direction: column;\r\n position: absolute;\r\n background: #3A4454;\r\n min-width: 50px;\r\n max-width: 50px;\r\n height: 100%;\r\n color: #ffffff;\r\n font-size: 14px;\r\n z-index: 101;\r\n transition: all 0.5s ease-in-out;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer.utilities_ops-app-frame_NavigationBar_NavigationBar--withCounts {\r\n min-width: 100px;\r\n max-width: 100px;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer:hover {\r\n max-width: 500px;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton {\r\n min-width: none;\r\n transition: all 0.5s ease-in-out;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton.utilities_ops-app-frame_NavigationBar_NavigationBar--showExpandIcons{\r\n min-width: auto;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer:hover .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton{\r\n min-width: auto;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenu {\r\n flex: 1;\r\n overflow-y: auto;\r\n -ms-overflow-style: none;\r\n scrollbar-width: none;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenu::-webkit-scrollbar { \r\n display: none;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem {\r\n display: flex;\r\n width: 100%;\r\n padding: 6px 12px 6px 12px;\r\n border-radius: 5px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem.utilities_ops-app-frame_NavigationBar_NavigationBar--disabled {\r\n cursor: default;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemSelected {\r\n color: #323130;\r\n background-color: #fff;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton {\r\n margin-left: auto;\r\n margin-right: 10px;\r\n min-width: none;\r\n transition: all 0.5s ease-in-out;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer.utilities_ops-app-frame_NavigationBar_NavigationBar--withCounts:hover .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton {\r\n min-width: 70px;\r\n text-align: right;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem.utilities_ops-app-frame_NavigationBar_NavigationBar--expandedMenu {\r\n background-color: #73A6FF;\r\n transition: background-color 0.5s ease-in-out;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton i {\r\n margin-left: auto;\r\n font-size: 12px;\r\n color: #fff;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem.utilities_ops-app-frame_NavigationBar_NavigationBar--selected .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton i{\r\n color: #323130;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemCount {\r\n
|
|
45704
|
+
var css_248z$2 = ".utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer {\r\n display: flex;\r\n flex-direction: column;\r\n position: absolute;\r\n background: #3A4454;\r\n min-width: 50px;\r\n max-width: 50px;\r\n height: 100%;\r\n color: #ffffff;\r\n font-size: 14px;\r\n z-index: 101;\r\n transition: all 0.5s ease-in-out;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer.utilities_ops-app-frame_NavigationBar_NavigationBar--withCounts {\r\n min-width: 100px;\r\n max-width: 100px;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer:hover {\r\n max-width: 500px;\r\n transition-delay: 0.25s;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton {\r\n min-width: none;\r\n transition: all 0.5s ease-in-out;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton.utilities_ops-app-frame_NavigationBar_NavigationBar--showExpandIcons{\r\n min-width: auto;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer:hover .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton{\r\n min-width: auto;\r\n transition-delay: 0.25s;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenu {\r\n flex: 1;\r\n overflow-y: auto;\r\n -ms-overflow-style: none;\r\n scrollbar-width: none;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenu::-webkit-scrollbar { \r\n display: none;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem {\r\n display: flex;\r\n width: 100%;\r\n padding: 6px 12px 6px 12px;\r\n border-radius: 5px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem.utilities_ops-app-frame_NavigationBar_NavigationBar--disabled {\r\n cursor: default;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemSelected {\r\n color: #323130;\r\n background-color: #fff;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton {\r\n margin-left: auto;\r\n margin-right: 10px;\r\n min-width: none;\r\n transition: all 0.5s ease-in-out;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer.utilities_ops-app-frame_NavigationBar_NavigationBar--withCounts:hover .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton, .utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer.utilities_ops-app-frame_NavigationBar_NavigationBar--countsAvailable .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton {\r\n min-width: 70px;\r\n text-align: right;\r\n transition-delay: 0.25s;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer.utilities_ops-app-frame_NavigationBar_NavigationBar--countsAvailable:not(:hover) .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton {\r\n min-width: auto;\r\n text-align: auto;\r\n transition-delay: 0.25s;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem.utilities_ops-app-frame_NavigationBar_NavigationBar--expandedMenu {\r\n background-color: #73A6FF;\r\n transition: background-color 0.5s ease-in-out;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton i {\r\n margin-left: auto;\r\n font-size: 12px;\r\n color: #fff;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem.utilities_ops-app-frame_NavigationBar_NavigationBar--selected .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton i{\r\n color: #323130;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemCount {\r\n margin: 0 10px 0 auto;\r\n transition: all 0.5s ease-in-out;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemIcon {\r\n min-width: 20px;\r\n display: flex;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemIcon i {\r\n font-size: 14px;\r\n /* width: 20px; */\r\n color: #fff;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem.utilities_ops-app-frame_NavigationBar_NavigationBar--disabled .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemIcon i {\r\n color: #A19F9D;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemSelected .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemIcon i{\r\n color: #323130;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemSelected .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton i{\r\n color: #323130;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem.utilities_ops-app-frame_NavigationBar_NavigationBar--disabled .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton i {\r\n color: #A19F9D;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton i{\r\n font-size: 0px;\r\n transition: all 0.5s ease-in-out;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton.utilities_ops-app-frame_NavigationBar_NavigationBar--showExpandIcons i{\r\n font-size: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer:hover .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton i{\r\n font-size: 12px;\r\n transition-delay: 0.25s;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName {\r\n max-width: 0;\r\n overflow: hidden;\r\n white-space: nowrap;\r\n margin-top: 2px;\r\n font-weight: 100;\r\n transition: all 0.5s ease-in-out;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer:hover .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName {\r\n max-width: 100%;\r\n margin: 2px 10px 0 10px;\r\n transition-delay: 0.25s;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem.utilities_ops-app-frame_NavigationBar_NavigationBar--disabled .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName {\r\n color: #A19F9D;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1 > .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName {\r\n max-width: 100%;\r\n margin: 0 5px 0 0;\r\n font-weight: 600;\r\n margin-left: 0px;\r\n cursor: auto;\r\n cursor: initial;\r\n transition: all 0.5s ease-in-out;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer:hover .utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1 > .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName {\r\n margin: 0;\r\n transition-delay: 0.25s;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1 > .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemIcon {\r\n margin-right: 0px;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1 > .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem {\r\n padding-left: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1 > .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName > span {\r\n display: inline;\r\n display: initial;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel2 {\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel3 {\r\n display: flex;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel3 .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem {\r\n padding: 6px;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--statusColor {\r\n position: absolute;\r\n width: 10px;\r\n height: 95%;\r\n left: -13px;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer .utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1 .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--level1NavItem {\r\n width: 13px;\r\n margin-left: 1px;\r\n transition: all 0.5s ease-in-out;\r\n}\r\n\r\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer:hover .utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1 .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--level1NavItem {\r\n width: 100%;\r\n margin-left: 1px;\r\n transition-delay: 0.25s;\r\n}";
|
|
45473
45705
|
styleInject(css_248z$2);
|
|
45474
45706
|
|
|
45475
45707
|
var _styleModuleImportMap$1 = {
|
|
@@ -45482,6 +45714,7 @@ var _styleModuleImportMap$1 = {
|
|
|
45482
45714
|
"NavItem": "utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem",
|
|
45483
45715
|
"disabled": "utilities_ops-app-frame_NavigationBar_NavigationBar--disabled",
|
|
45484
45716
|
"NavItemSelected": "utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemSelected",
|
|
45717
|
+
"countsAvailable": "utilities_ops-app-frame_NavigationBar_NavigationBar--countsAvailable",
|
|
45485
45718
|
"expandedMenu": "utilities_ops-app-frame_NavigationBar_NavigationBar--expandedMenu",
|
|
45486
45719
|
"selected": "utilities_ops-app-frame_NavigationBar_NavigationBar--selected",
|
|
45487
45720
|
"NavItemCount": "utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemCount",
|
|
@@ -45545,7 +45778,7 @@ var validateConfig = function validateConfig(navItems) {
|
|
|
45545
45778
|
if (!configItem.isLandingPage && mandatoryKeys.every(function (key) {
|
|
45546
45779
|
return configItem.hasOwnProperty(key);
|
|
45547
45780
|
}) === false) {
|
|
45548
|
-
console.log(
|
|
45781
|
+
console.log('please check and update the navigation config');
|
|
45549
45782
|
return false;
|
|
45550
45783
|
}
|
|
45551
45784
|
if (configItem.subMenuItems) {
|
|
@@ -45578,7 +45811,8 @@ var NavigationBar = function NavigationBar(_ref2) {
|
|
|
45578
45811
|
getCounts = _ref2.getCounts,
|
|
45579
45812
|
activeSubmenu = _ref2.activeSubmenu,
|
|
45580
45813
|
setActiveSubmenu = _ref2.setActiveSubmenu,
|
|
45581
|
-
setShowNavigationCounts = _ref2.setShowNavigationCounts
|
|
45814
|
+
setShowNavigationCounts = _ref2.setShowNavigationCounts,
|
|
45815
|
+
countsRef = _ref2.countsRef;
|
|
45582
45816
|
// const withCounts = getCounts && typeof getCounts === 'function'
|
|
45583
45817
|
var navigateFunction = navigateTo || (history === null || history === void 0 ? void 0 : history.push) || defaultRedirect;
|
|
45584
45818
|
var _useState = React.useState(null),
|
|
@@ -45609,7 +45843,7 @@ var NavigationBar = function NavigationBar(_ref2) {
|
|
|
45609
45843
|
if (Array.isArray(navItems)) {
|
|
45610
45844
|
var isValid = validateConfig(navItems);
|
|
45611
45845
|
if (isValid) {
|
|
45612
|
-
var updatedNavItems = updateRoutes(navItems,
|
|
45846
|
+
var updatedNavItems = updateRoutes(navItems, '');
|
|
45613
45847
|
var depth = getDepth(navItems);
|
|
45614
45848
|
var _getDefaultSelection = getDefaultSelection(updatedNavItems),
|
|
45615
45849
|
selectedItem = _getDefaultSelection.selectedItem,
|
|
@@ -45636,7 +45870,7 @@ var NavigationBar = function NavigationBar(_ref2) {
|
|
|
45636
45870
|
onMouseLeave: function onMouseLeave() {
|
|
45637
45871
|
return setHover(false);
|
|
45638
45872
|
},
|
|
45639
|
-
className: _getClassName("NavBarContainer ".concat(activeSubmenu && withCounts ? 'withCounts' : ''), _styleModuleImportMap$1, {
|
|
45873
|
+
className: _getClassName("NavBarContainer ".concat(activeSubmenu && withCounts ? 'withCounts' : '', " ").concat(getCounts && typeof getCounts === 'function' ? 'countsAvailable' : ''), _styleModuleImportMap$1, {
|
|
45640
45874
|
"handleMissingStyleName": "warn"
|
|
45641
45875
|
})
|
|
45642
45876
|
}, isConfigValid ? /*#__PURE__*/React__default["default"].createElement(NavigationMenu, {
|
|
@@ -45650,7 +45884,8 @@ var NavigationBar = function NavigationBar(_ref2) {
|
|
|
45650
45884
|
setSelected: setSelected,
|
|
45651
45885
|
getCounts: getCounts,
|
|
45652
45886
|
setWithCounts: setWithCounts,
|
|
45653
|
-
withCounts: withCounts
|
|
45887
|
+
withCounts: withCounts,
|
|
45888
|
+
countsRef: countsRef
|
|
45654
45889
|
}) : null, isConfigValid === false ? /*#__PURE__*/React__default["default"].createElement("div", null, "Please check your navigation config") : null);
|
|
45655
45890
|
};
|
|
45656
45891
|
var NavigationMenu = function NavigationMenu(_ref3) {
|
|
@@ -45664,24 +45899,25 @@ var NavigationMenu = function NavigationMenu(_ref3) {
|
|
|
45664
45899
|
setSelected = _ref3.setSelected,
|
|
45665
45900
|
getCounts = _ref3.getCounts,
|
|
45666
45901
|
setWithCounts = _ref3.setWithCounts,
|
|
45667
|
-
withCounts = _ref3.withCounts
|
|
45902
|
+
withCounts = _ref3.withCounts,
|
|
45903
|
+
countsRef = _ref3.countsRef;
|
|
45668
45904
|
var redirectUrl = window.location.pathname;
|
|
45669
45905
|
React.useEffect(function () {
|
|
45670
|
-
if (redirectUrl !=
|
|
45671
|
-
var splitUrl = redirectUrl.split(
|
|
45906
|
+
if (redirectUrl != '/') {
|
|
45907
|
+
var splitUrl = redirectUrl.split('/');
|
|
45672
45908
|
if (!process.env.IS_CORE_APP) {
|
|
45673
45909
|
splitUrl.shift();
|
|
45674
45910
|
}
|
|
45675
45911
|
// if (splitUrl.length - 1 === configDepth) {
|
|
45676
45912
|
if (splitUrl.length - 1) {
|
|
45677
45913
|
if (configDepth === 3) {
|
|
45678
|
-
setActiveSubmenu(
|
|
45679
|
-
setSelected(
|
|
45914
|
+
setActiveSubmenu('/' + splitUrl[1] + '/' + splitUrl[2]);
|
|
45915
|
+
setSelected('/' + splitUrl[1] + '/' + splitUrl[2] + '/' + splitUrl[3]);
|
|
45680
45916
|
} else if (configDepth === 2) {
|
|
45681
|
-
setActiveSubmenu(
|
|
45682
|
-
setSelected(
|
|
45917
|
+
setActiveSubmenu('/' + splitUrl[1]);
|
|
45918
|
+
setSelected('/' + splitUrl[1] + '/' + splitUrl[2]);
|
|
45683
45919
|
} else {
|
|
45684
|
-
setSelected(
|
|
45920
|
+
setSelected('/' + splitUrl[1]);
|
|
45685
45921
|
}
|
|
45686
45922
|
} else {
|
|
45687
45923
|
setActiveSubmenu(null);
|
|
@@ -45693,7 +45929,9 @@ var NavigationMenu = function NavigationMenu(_ref3) {
|
|
|
45693
45929
|
className: _getClassName("NavMenu", _styleModuleImportMap$1, {
|
|
45694
45930
|
"handleMissingStyleName": "warn"
|
|
45695
45931
|
})
|
|
45696
|
-
}, navItems.
|
|
45932
|
+
}, navItems.filter(function (item) {
|
|
45933
|
+
return typeof item.hidden === 'function' ? !item.hidden() : !item.hidden;
|
|
45934
|
+
}).map(function (item) {
|
|
45697
45935
|
var NavComponent = configDepth === 3 && !item.isLandingPage ? NavigationMenuLevel1 : NavigationMenuLevel2;
|
|
45698
45936
|
return /*#__PURE__*/React__default["default"].createElement(NavComponent, {
|
|
45699
45937
|
key: item.name,
|
|
@@ -45707,7 +45945,8 @@ var NavigationMenu = function NavigationMenu(_ref3) {
|
|
|
45707
45945
|
redirectUrl: redirectUrl,
|
|
45708
45946
|
getCounts: getCounts,
|
|
45709
45947
|
setWithCounts: setWithCounts,
|
|
45710
|
-
withCounts: withCounts
|
|
45948
|
+
withCounts: withCounts,
|
|
45949
|
+
countsRef: countsRef
|
|
45711
45950
|
});
|
|
45712
45951
|
}));
|
|
45713
45952
|
};
|
|
@@ -45722,7 +45961,8 @@ var NavigationMenuLevel1 = function NavigationMenuLevel1(_ref4) {
|
|
|
45722
45961
|
setSelected = _ref4.setSelected,
|
|
45723
45962
|
getCounts = _ref4.getCounts,
|
|
45724
45963
|
setWithCounts = _ref4.setWithCounts,
|
|
45725
|
-
withCounts = _ref4.withCounts
|
|
45964
|
+
withCounts = _ref4.withCounts,
|
|
45965
|
+
countsRef = _ref4.countsRef;
|
|
45726
45966
|
var hasSubMenuItems = navItem.subMenuItems && navItem.subMenuItems.length > 0;
|
|
45727
45967
|
var shortName = navItem.shortName ? navItem.shortName.toUpperCase() : dotIcon;
|
|
45728
45968
|
var nameText = isHover ? (_navItem$name = navItem.name) === null || _navItem$name === void 0 ? void 0 : _navItem$name.toUpperCase() : shortName;
|
|
@@ -45736,9 +45976,11 @@ var NavigationMenuLevel1 = function NavigationMenuLevel1(_ref4) {
|
|
|
45736
45976
|
icon: navItem.icon
|
|
45737
45977
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
45738
45978
|
className: "utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName utilities_ops-app-frame_NavigationBar_NavigationBar--level1NavItem"
|
|
45739
|
-
}, nameText), navItem.hasOwnProperty(
|
|
45979
|
+
}, nameText), navItem.hasOwnProperty('count') && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
45740
45980
|
className: "utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemCount"
|
|
45741
|
-
}, navItem.count)), /*#__PURE__*/React__default["default"].createElement("div", null, hasSubMenuItems ? navItem.subMenuItems.
|
|
45981
|
+
}, navItem.count)), /*#__PURE__*/React__default["default"].createElement("div", null, hasSubMenuItems ? navItem.subMenuItems.filter(function (item) {
|
|
45982
|
+
return typeof item.hidden === 'function' ? !item.hidden() : !item.hidden;
|
|
45983
|
+
}).map(function (subItem) {
|
|
45742
45984
|
return /*#__PURE__*/React__default["default"].createElement(NavigationMenuLevel2, {
|
|
45743
45985
|
key: subItem.name,
|
|
45744
45986
|
isHover: isHover,
|
|
@@ -45750,7 +45992,8 @@ var NavigationMenuLevel1 = function NavigationMenuLevel1(_ref4) {
|
|
|
45750
45992
|
navigateFunction: navigateFunction,
|
|
45751
45993
|
getCounts: getCounts,
|
|
45752
45994
|
setWithCounts: setWithCounts,
|
|
45753
|
-
withCounts: withCounts
|
|
45995
|
+
withCounts: withCounts,
|
|
45996
|
+
countsRef: countsRef
|
|
45754
45997
|
});
|
|
45755
45998
|
}) : null));
|
|
45756
45999
|
};
|
|
@@ -45764,7 +46007,8 @@ var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref5) {
|
|
|
45764
46007
|
navigateFunction = _ref5.navigateFunction,
|
|
45765
46008
|
getCounts = _ref5.getCounts,
|
|
45766
46009
|
setWithCounts = _ref5.setWithCounts,
|
|
45767
|
-
withCounts = _ref5.withCounts
|
|
46010
|
+
withCounts = _ref5.withCounts,
|
|
46011
|
+
countsRef = _ref5.countsRef;
|
|
45768
46012
|
var isMenuExpanded = activeSubmenu === navItem.fullRoute;
|
|
45769
46013
|
var showCounts = isMenuExpanded && getCounts && typeof getCounts === 'function';
|
|
45770
46014
|
var _useState13 = React.useState(null),
|
|
@@ -45783,6 +46027,13 @@ var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref5) {
|
|
|
45783
46027
|
if (showCounts) {
|
|
45784
46028
|
setCountsLoading(true);
|
|
45785
46029
|
reloadCounts(navItem.route);
|
|
46030
|
+
if (countsRef && _typeof(countsRef) === 'object') {
|
|
46031
|
+
countsRef.current = {
|
|
46032
|
+
refreshCounts: function refreshCounts() {
|
|
46033
|
+
return reloadCounts(navItem.route);
|
|
46034
|
+
}
|
|
46035
|
+
};
|
|
46036
|
+
}
|
|
45786
46037
|
}
|
|
45787
46038
|
}, [activeSubmenu]);
|
|
45788
46039
|
var reloadCounts = function reloadCounts(menuItemName) {
|
|
@@ -45814,7 +46065,7 @@ var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref5) {
|
|
|
45814
46065
|
animate: isMenuExpanded ? 'open' : 'closed'
|
|
45815
46066
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
45816
46067
|
onClick: handleItemClick,
|
|
45817
|
-
className: _getClassName("NavItem ".concat(isMenuExpanded ?
|
|
46068
|
+
className: _getClassName("NavItem ".concat(isMenuExpanded ? 'expandedMenu' : '', " ").concat(selected === navItem.fullRoute ? 'NavItemSelected' : '', " ").concat(isDisabled ? 'disabled' : ''), _styleModuleImportMap$1, {
|
|
45818
46069
|
"handleMissingStyleName": "warn"
|
|
45819
46070
|
})
|
|
45820
46071
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -45846,7 +46097,9 @@ var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref5) {
|
|
|
45846
46097
|
backgroundColor: '#232932',
|
|
45847
46098
|
borderLeft: '1px solid #8A8886'
|
|
45848
46099
|
}
|
|
45849
|
-
}, hasSubMenuItems && isMenuExpanded ? navItem.subMenuItems.
|
|
46100
|
+
}, hasSubMenuItems && isMenuExpanded ? navItem.subMenuItems.filter(function (item) {
|
|
46101
|
+
return typeof item.hidden === 'function' ? !item.hidden() : !item.hidden;
|
|
46102
|
+
}).map(function (subItem) {
|
|
45850
46103
|
return /*#__PURE__*/React__default["default"].createElement(NavigationMenuLevel3, {
|
|
45851
46104
|
key: subItem.fullRoute,
|
|
45852
46105
|
isHover: isHover,
|
|
@@ -45888,7 +46141,7 @@ var NavigationMenuLevel3 = function NavigationMenuLevel3(_ref6) {
|
|
|
45888
46141
|
onClick: function onClick() {
|
|
45889
46142
|
return !isDisabled && navigateToItem(navItem);
|
|
45890
46143
|
},
|
|
45891
|
-
className: _getClassName("NavItem ".concat(selected === navItem.fullRoute ?
|
|
46144
|
+
className: _getClassName("NavItem ".concat(selected === navItem.fullRoute ? 'NavItemSelected' : '', " ").concat(isDisabled ? 'disabled' : ''), _styleModuleImportMap$1, {
|
|
45892
46145
|
"handleMissingStyleName": "warn"
|
|
45893
46146
|
})
|
|
45894
46147
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -45991,10 +46244,13 @@ var AppFrame = function AppFrame(props) {
|
|
|
45991
46244
|
getCounts: props.getCounts,
|
|
45992
46245
|
activeSubmenu: activeSubmenu,
|
|
45993
46246
|
setActiveSubmenu: setActiveSubmenu,
|
|
45994
|
-
setShowNavigationCounts: setShowNavigationCounts
|
|
46247
|
+
setShowNavigationCounts: setShowNavigationCounts,
|
|
46248
|
+
countsRef: props.countsRef
|
|
45995
46249
|
}) : null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
45996
46250
|
style: {
|
|
45997
|
-
marginLeft: props.showNavigation ? navigationWidth : '0px'
|
|
46251
|
+
marginLeft: props.showNavigation ? navigationWidth : '0px',
|
|
46252
|
+
height: '100%',
|
|
46253
|
+
transition: 'all 0.5s ease-in-out'
|
|
45998
46254
|
}
|
|
45999
46255
|
}, props.children))))));
|
|
46000
46256
|
};
|
|
@@ -46383,12 +46639,21 @@ function getPaddingObject(padding) {
|
|
|
46383
46639
|
};
|
|
46384
46640
|
}
|
|
46385
46641
|
function rectToClientRect(rect) {
|
|
46642
|
+
const {
|
|
46643
|
+
x,
|
|
46644
|
+
y,
|
|
46645
|
+
width,
|
|
46646
|
+
height
|
|
46647
|
+
} = rect;
|
|
46386
46648
|
return {
|
|
46387
|
-
|
|
46388
|
-
|
|
46389
|
-
|
|
46390
|
-
|
|
46391
|
-
|
|
46649
|
+
width,
|
|
46650
|
+
height,
|
|
46651
|
+
top: y,
|
|
46652
|
+
left: x,
|
|
46653
|
+
right: x + width,
|
|
46654
|
+
bottom: y + height,
|
|
46655
|
+
x,
|
|
46656
|
+
y
|
|
46392
46657
|
};
|
|
46393
46658
|
}
|
|
46394
46659
|
|
|
@@ -46577,9 +46842,10 @@ async function detectOverflow(state, options) {
|
|
|
46577
46842
|
strategy
|
|
46578
46843
|
}));
|
|
46579
46844
|
const rect = elementContext === 'floating' ? {
|
|
46580
|
-
...rects.floating,
|
|
46581
46845
|
x,
|
|
46582
|
-
y
|
|
46846
|
+
y,
|
|
46847
|
+
width: rects.floating.width,
|
|
46848
|
+
height: rects.floating.height
|
|
46583
46849
|
} : rects.reference;
|
|
46584
46850
|
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
46585
46851
|
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
@@ -47116,6 +47382,8 @@ async function convertValueToCoords(state, options) {
|
|
|
47116
47382
|
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
47117
47383
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
47118
47384
|
const rawValue = evaluate(options, state);
|
|
47385
|
+
|
|
47386
|
+
// eslint-disable-next-line prefer-const
|
|
47119
47387
|
let {
|
|
47120
47388
|
mainAxis,
|
|
47121
47389
|
crossAxis,
|
|
@@ -47149,7 +47417,7 @@ async function convertValueToCoords(state, options) {
|
|
|
47149
47417
|
* object may be passed.
|
|
47150
47418
|
* @see https://floating-ui.com/docs/offset
|
|
47151
47419
|
*/
|
|
47152
|
-
const offset = function (options) {
|
|
47420
|
+
const offset$1 = function (options) {
|
|
47153
47421
|
if (options === void 0) {
|
|
47154
47422
|
options = 0;
|
|
47155
47423
|
}
|
|
@@ -47366,16 +47634,16 @@ const size = function (options) {
|
|
|
47366
47634
|
widthSide = side;
|
|
47367
47635
|
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
|
47368
47636
|
}
|
|
47369
|
-
const
|
|
47370
|
-
const
|
|
47637
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
47638
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
47639
|
+
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
|
47640
|
+
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
|
47371
47641
|
const noShift = !state.middlewareData.shift;
|
|
47372
47642
|
let availableHeight = overflowAvailableHeight;
|
|
47373
47643
|
let availableWidth = overflowAvailableWidth;
|
|
47374
47644
|
if (isYAxis) {
|
|
47375
|
-
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
47376
47645
|
availableWidth = alignment || noShift ? min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
|
|
47377
47646
|
} else {
|
|
47378
|
-
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
47379
47647
|
availableHeight = alignment || noShift ? min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
|
|
47380
47648
|
}
|
|
47381
47649
|
if (noShift && !alignment) {
|
|
@@ -47464,9 +47732,8 @@ function getContainingBlock(element) {
|
|
|
47464
47732
|
while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
47465
47733
|
if (isContainingBlock(currentNode)) {
|
|
47466
47734
|
return currentNode;
|
|
47467
|
-
} else {
|
|
47468
|
-
currentNode = getParentNode(currentNode);
|
|
47469
47735
|
}
|
|
47736
|
+
currentNode = getParentNode(currentNode);
|
|
47470
47737
|
}
|
|
47471
47738
|
return null;
|
|
47472
47739
|
}
|
|
@@ -47657,10 +47924,10 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
47657
47924
|
});
|
|
47658
47925
|
}
|
|
47659
47926
|
const topLayerSelectors = [':popover-open', ':modal'];
|
|
47660
|
-
function isTopLayer(
|
|
47927
|
+
function isTopLayer(element) {
|
|
47661
47928
|
return topLayerSelectors.some(selector => {
|
|
47662
47929
|
try {
|
|
47663
|
-
return
|
|
47930
|
+
return element.matches(selector);
|
|
47664
47931
|
} catch (e) {
|
|
47665
47932
|
return false;
|
|
47666
47933
|
}
|
|
@@ -47844,7 +48111,7 @@ function getClippingRect(_ref) {
|
|
|
47844
48111
|
rootBoundary,
|
|
47845
48112
|
strategy
|
|
47846
48113
|
} = _ref;
|
|
47847
|
-
const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
48114
|
+
const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
|
|
47848
48115
|
const clippingAncestors = [...elementClippingAncestors, rootBoundary];
|
|
47849
48116
|
const firstClippingAncestor = clippingAncestors[0];
|
|
47850
48117
|
const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
|
|
@@ -47903,6 +48170,9 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
47903
48170
|
height: rect.height
|
|
47904
48171
|
};
|
|
47905
48172
|
}
|
|
48173
|
+
function isStaticPositioned(element) {
|
|
48174
|
+
return getComputedStyle$1(element).position === 'static';
|
|
48175
|
+
}
|
|
47906
48176
|
function getTrueOffsetParent(element, polyfill) {
|
|
47907
48177
|
if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
|
|
47908
48178
|
return null;
|
|
@@ -47916,28 +48186,40 @@ function getTrueOffsetParent(element, polyfill) {
|
|
|
47916
48186
|
// Gets the closest ancestor positioned element. Handles some edge cases,
|
|
47917
48187
|
// such as table ancestors and cross browser bugs.
|
|
47918
48188
|
function getOffsetParent(element, polyfill) {
|
|
47919
|
-
const
|
|
47920
|
-
if (
|
|
47921
|
-
return
|
|
48189
|
+
const win = getWindow(element);
|
|
48190
|
+
if (isTopLayer(element)) {
|
|
48191
|
+
return win;
|
|
48192
|
+
}
|
|
48193
|
+
if (!isHTMLElement(element)) {
|
|
48194
|
+
let svgOffsetParent = getParentNode(element);
|
|
48195
|
+
while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
|
|
48196
|
+
if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
|
|
48197
|
+
return svgOffsetParent;
|
|
48198
|
+
}
|
|
48199
|
+
svgOffsetParent = getParentNode(svgOffsetParent);
|
|
48200
|
+
}
|
|
48201
|
+
return win;
|
|
47922
48202
|
}
|
|
47923
48203
|
let offsetParent = getTrueOffsetParent(element, polyfill);
|
|
47924
|
-
while (offsetParent && isTableElement(offsetParent) &&
|
|
48204
|
+
while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
|
|
47925
48205
|
offsetParent = getTrueOffsetParent(offsetParent, polyfill);
|
|
47926
48206
|
}
|
|
47927
|
-
if (offsetParent && (
|
|
47928
|
-
return
|
|
48207
|
+
if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
|
|
48208
|
+
return win;
|
|
47929
48209
|
}
|
|
47930
|
-
return offsetParent || getContainingBlock(element) ||
|
|
48210
|
+
return offsetParent || getContainingBlock(element) || win;
|
|
47931
48211
|
}
|
|
47932
48212
|
const getElementRects = async function (data) {
|
|
47933
48213
|
const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
|
|
47934
48214
|
const getDimensionsFn = this.getDimensions;
|
|
48215
|
+
const floatingDimensions = await getDimensionsFn(data.floating);
|
|
47935
48216
|
return {
|
|
47936
48217
|
reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
|
|
47937
48218
|
floating: {
|
|
47938
48219
|
x: 0,
|
|
47939
48220
|
y: 0,
|
|
47940
|
-
|
|
48221
|
+
width: floatingDimensions.width,
|
|
48222
|
+
height: floatingDimensions.height
|
|
47941
48223
|
}
|
|
47942
48224
|
};
|
|
47943
48225
|
};
|
|
@@ -48005,9 +48287,11 @@ function observeMove(element, onMove) {
|
|
|
48005
48287
|
return refresh();
|
|
48006
48288
|
}
|
|
48007
48289
|
if (!ratio) {
|
|
48290
|
+
// If the reference is clipped, the ratio is 0. Throttle the refresh
|
|
48291
|
+
// to prevent an infinite loop of updates.
|
|
48008
48292
|
timeoutId = setTimeout(() => {
|
|
48009
48293
|
refresh(false, 1e-7);
|
|
48010
|
-
},
|
|
48294
|
+
}, 1000);
|
|
48011
48295
|
} else {
|
|
48012
48296
|
refresh(false, ratio);
|
|
48013
48297
|
}
|
|
@@ -48111,6 +48395,15 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
48111
48395
|
};
|
|
48112
48396
|
}
|
|
48113
48397
|
|
|
48398
|
+
/**
|
|
48399
|
+
* Modifies the placement by translating the floating element along the
|
|
48400
|
+
* specified axes.
|
|
48401
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
48402
|
+
* object may be passed.
|
|
48403
|
+
* @see https://floating-ui.com/docs/offset
|
|
48404
|
+
*/
|
|
48405
|
+
const offset = offset$1;
|
|
48406
|
+
|
|
48114
48407
|
/**
|
|
48115
48408
|
* Optimizes the visibility of the floating element by choosing the placement
|
|
48116
48409
|
* that has the most space available automatically, without needing to specify a
|
|
@@ -48282,7 +48575,7 @@ function S({
|
|
|
48282
48575
|
s = document.createElement("style");
|
|
48283
48576
|
s.id = t, s.type = "text/css", "top" === c && i.firstChild ? i.insertBefore(s, i.firstChild) : i.appendChild(s), s.styleSheet ? s.styleSheet.cssText = e : s.appendChild(document.createTextNode(e)), b[o] = !0;
|
|
48284
48577
|
}
|
|
48285
|
-
const
|
|
48578
|
+
const E = async ({
|
|
48286
48579
|
elementReference: e = null,
|
|
48287
48580
|
tooltipReference: t = null,
|
|
48288
48581
|
tooltipArrowReference: o = null,
|
|
@@ -48467,7 +48760,7 @@ const D = ({
|
|
|
48467
48760
|
openOnClick: w = !1,
|
|
48468
48761
|
positionStrategy: b = "absolute",
|
|
48469
48762
|
middlewares: S,
|
|
48470
|
-
wrapper:
|
|
48763
|
+
wrapper: g,
|
|
48471
48764
|
delayShow: A = 0,
|
|
48472
48765
|
delayHide: O = 0,
|
|
48473
48766
|
float: k = !1,
|
|
@@ -48515,9 +48808,9 @@ const D = ({
|
|
|
48515
48808
|
be = React.useRef(null),
|
|
48516
48809
|
{
|
|
48517
48810
|
anchorRefs: Se,
|
|
48518
|
-
setActiveAnchor:
|
|
48811
|
+
setActiveAnchor: ge
|
|
48519
48812
|
} = I(r),
|
|
48520
|
-
|
|
48813
|
+
Ee = React.useRef(!1),
|
|
48521
48814
|
[Ae, _e] = React.useState([]),
|
|
48522
48815
|
Oe = React.useRef(!1),
|
|
48523
48816
|
Te = w || h.includes("click"),
|
|
@@ -48614,17 +48907,17 @@ const D = ({
|
|
|
48614
48907
|
},
|
|
48615
48908
|
Ie = (e = O) => {
|
|
48616
48909
|
se.current && clearTimeout(se.current), se.current = setTimeout(() => {
|
|
48617
|
-
|
|
48910
|
+
Ee.current || xe(!1);
|
|
48618
48911
|
}, e);
|
|
48619
48912
|
},
|
|
48620
48913
|
je = e => {
|
|
48621
48914
|
var t;
|
|
48622
48915
|
if (!e) return;
|
|
48623
48916
|
const o = null !== (t = e.currentTarget) && void 0 !== t ? t : e.target;
|
|
48624
|
-
if (!(null == o ? void 0 : o.isConnected)) return Q(null), void
|
|
48917
|
+
if (!(null == o ? void 0 : o.isConnected)) return Q(null), void ge({
|
|
48625
48918
|
current: null
|
|
48626
48919
|
});
|
|
48627
|
-
A ? $e() : xe(!0), Q(o),
|
|
48920
|
+
A ? $e() : xe(!0), Q(o), ge({
|
|
48628
48921
|
current: o
|
|
48629
48922
|
}), se.current && clearTimeout(se.current);
|
|
48630
48923
|
},
|
|
@@ -48648,7 +48941,7 @@ const D = ({
|
|
|
48648
48941
|
bottom: t
|
|
48649
48942
|
})
|
|
48650
48943
|
};
|
|
48651
|
-
|
|
48944
|
+
E({
|
|
48652
48945
|
place: null !== (o = null == ye ? void 0 : ye.place) && void 0 !== o ? o : v,
|
|
48653
48946
|
offset: m,
|
|
48654
48947
|
elementReference: r,
|
|
@@ -48689,7 +48982,7 @@ const D = ({
|
|
|
48689
48982
|
Ve = React.useCallback(() => {
|
|
48690
48983
|
var e, t;
|
|
48691
48984
|
const o = null !== (e = null == ye ? void 0 : ye.position) && void 0 !== e ? e : V;
|
|
48692
|
-
o ? ze(o) : k ? be.current && ze(be.current) : (null == J ? void 0 : J.isConnected) &&
|
|
48985
|
+
o ? ze(o) : k ? be.current && ze(be.current) : (null == J ? void 0 : J.isConnected) && E({
|
|
48693
48986
|
place: null !== (t = null == ye ? void 0 : ye.place) && void 0 !== t ? t : v,
|
|
48694
48987
|
offset: m,
|
|
48695
48988
|
elementReference: J,
|
|
@@ -48760,10 +49053,10 @@ const D = ({
|
|
|
48760
49053
|
listener: De
|
|
48761
49054
|
});
|
|
48762
49055
|
const y = () => {
|
|
48763
|
-
|
|
49056
|
+
Ee.current = !0;
|
|
48764
49057
|
},
|
|
48765
49058
|
h = () => {
|
|
48766
|
-
|
|
49059
|
+
Ee.current = !1, Be();
|
|
48767
49060
|
};
|
|
48768
49061
|
return N && !ke && (null === (e = ne.current) || void 0 === e || e.addEventListener("mouseenter", y), null === (t = ne.current) || void 0 === t || t.addEventListener("mouseleave", h)), a.forEach(({
|
|
48769
49062
|
event: e,
|
|
@@ -48788,7 +49081,7 @@ const D = ({
|
|
|
48788
49081
|
}, [J, Ve, me, Se, Ae, q, H, M, Te, A, O]), React.useEffect(() => {
|
|
48789
49082
|
var e, t;
|
|
48790
49083
|
let o = null !== (t = null !== (e = null == ye ? void 0 : ye.anchorSelect) && void 0 !== e ? e : p) && void 0 !== t ? t : "";
|
|
48791
|
-
!o && r && (o = `[data-tooltip-id='${r}']`);
|
|
49084
|
+
!o && r && (o = `[data-tooltip-id='${r.replace(/'/g, "\\'")}']`);
|
|
48792
49085
|
const l = new MutationObserver(e => {
|
|
48793
49086
|
const t = [],
|
|
48794
49087
|
l = [];
|
|
@@ -48843,7 +49136,7 @@ const D = ({
|
|
|
48843
49136
|
}), []), React.useEffect(() => {
|
|
48844
49137
|
var e;
|
|
48845
49138
|
let t = null !== (e = null == ye ? void 0 : ye.anchorSelect) && void 0 !== e ? e : p;
|
|
48846
|
-
if (!t && r && (t = `[data-tooltip-id='${r}']`), t) try {
|
|
49139
|
+
if (!t && r && (t = `[data-tooltip-id='${r.replace(/'/g, "\\'")}']`), t) try {
|
|
48847
49140
|
const e = Array.from(document.querySelectorAll(t));
|
|
48848
49141
|
_e(e);
|
|
48849
49142
|
} catch (e) {
|
|
@@ -48869,7 +49162,7 @@ const D = ({
|
|
|
48869
49162
|
activeAnchor: J,
|
|
48870
49163
|
place: ue.place,
|
|
48871
49164
|
isOpen: Boolean(me && !R && Fe && Ke)
|
|
48872
|
-
})), me && !R && Fe ? React__default["default"].createElement(
|
|
49165
|
+
})), me && !R && Fe ? React__default["default"].createElement(g, {
|
|
48873
49166
|
id: r,
|
|
48874
49167
|
role: re,
|
|
48875
49168
|
className: classnames("react-tooltip", B.tooltip, z.tooltip, z[u], c, `react-tooltip__place-${ue.place}`, B[Ke ? "show" : "closing"], Ke ? "react-tooltip__show" : "react-tooltip__closing", "fixed" === b && B.fixed, N && B.clickable),
|
|
@@ -48882,7 +49175,7 @@ const D = ({
|
|
|
48882
49175
|
opacity: void 0 !== te && Ke ? te : void 0
|
|
48883
49176
|
},
|
|
48884
49177
|
ref: ne
|
|
48885
|
-
}, Fe, React__default["default"].createElement(
|
|
49178
|
+
}, Fe, React__default["default"].createElement(g, {
|
|
48886
49179
|
className: classnames("react-tooltip-arrow", B.arrow, z.arrow, i, x && B.noArrow),
|
|
48887
49180
|
style: {
|
|
48888
49181
|
...ue.tooltipArrowStyles,
|
|
@@ -48915,8 +49208,8 @@ const D = ({
|
|
|
48915
49208
|
events: w = ["hover"],
|
|
48916
49209
|
openOnClick: b = !1,
|
|
48917
49210
|
positionStrategy: S = "absolute",
|
|
48918
|
-
middlewares:
|
|
48919
|
-
delayShow:
|
|
49211
|
+
middlewares: g,
|
|
49212
|
+
delayShow: E = 0,
|
|
48920
49213
|
delayHide: _ = 0,
|
|
48921
49214
|
float: O = !1,
|
|
48922
49215
|
hidden: T = !1,
|
|
@@ -48947,14 +49240,14 @@ const D = ({
|
|
|
48947
49240
|
[oe, re] = React.useState(v),
|
|
48948
49241
|
[le, ne] = React.useState(p),
|
|
48949
49242
|
[ce, ie] = React.useState(m),
|
|
48950
|
-
[se, ae] = React.useState(
|
|
49243
|
+
[se, ae] = React.useState(E),
|
|
48951
49244
|
[ue, de] = React.useState(_),
|
|
48952
49245
|
[pe, ve] = React.useState(O),
|
|
48953
49246
|
[me, fe] = React.useState(T),
|
|
48954
49247
|
[ye, he] = React.useState(f),
|
|
48955
49248
|
[we, be] = React.useState(w),
|
|
48956
|
-
[Se,
|
|
48957
|
-
[
|
|
49249
|
+
[Se, ge] = React.useState(S),
|
|
49250
|
+
[Ee, Ae] = React.useState(null),
|
|
48958
49251
|
[_e, Oe] = React.useState(null),
|
|
48959
49252
|
Te = React.useRef(P),
|
|
48960
49253
|
{
|
|
@@ -48997,10 +49290,10 @@ const D = ({
|
|
|
48997
49290
|
},
|
|
48998
49291
|
"position-strategy": e => {
|
|
48999
49292
|
var t;
|
|
49000
|
-
|
|
49293
|
+
ge(null !== (t = e) && void 0 !== t ? t : S);
|
|
49001
49294
|
},
|
|
49002
49295
|
"delay-show": e => {
|
|
49003
|
-
ae(null === e ?
|
|
49296
|
+
ae(null === e ? E : Number(e));
|
|
49004
49297
|
},
|
|
49005
49298
|
"delay-hide": e => {
|
|
49006
49299
|
de(null === e ? _ : Number(e));
|
|
@@ -49031,15 +49324,15 @@ const D = ({
|
|
|
49031
49324
|
}, [p]), React.useEffect(() => {
|
|
49032
49325
|
ie(m);
|
|
49033
49326
|
}, [m]), React.useEffect(() => {
|
|
49034
|
-
ae(
|
|
49035
|
-
}, [
|
|
49327
|
+
ae(E);
|
|
49328
|
+
}, [E]), React.useEffect(() => {
|
|
49036
49329
|
de(_);
|
|
49037
49330
|
}, [_]), React.useEffect(() => {
|
|
49038
49331
|
ve(O);
|
|
49039
49332
|
}, [O]), React.useEffect(() => {
|
|
49040
49333
|
fe(T);
|
|
49041
49334
|
}, [T]), React.useEffect(() => {
|
|
49042
|
-
|
|
49335
|
+
ge(S);
|
|
49043
49336
|
}, [S]), React.useEffect(() => {
|
|
49044
49337
|
Te.current !== P && console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.");
|
|
49045
49338
|
}, [P]), React.useEffect(() => {
|
|
@@ -49053,7 +49346,7 @@ const D = ({
|
|
|
49053
49346
|
var e;
|
|
49054
49347
|
const o = new Set(ke);
|
|
49055
49348
|
let l = n;
|
|
49056
|
-
if (!l && t && (l = `[data-tooltip-id='${t}']`), l) try {
|
|
49349
|
+
if (!l && t && (l = `[data-tooltip-id='${t.replace(/'/g, "\\'")}']`), l) try {
|
|
49057
49350
|
document.querySelectorAll(l).forEach(e => {
|
|
49058
49351
|
o.add({
|
|
49059
49352
|
current: e
|
|
@@ -49110,7 +49403,7 @@ const D = ({
|
|
|
49110
49403
|
id: t,
|
|
49111
49404
|
anchorId: r,
|
|
49112
49405
|
anchorSelect: n,
|
|
49113
|
-
className: classnames(u,
|
|
49406
|
+
className: classnames(u, Ee),
|
|
49114
49407
|
classNameArrow: d,
|
|
49115
49408
|
content: xe,
|
|
49116
49409
|
contentWrapperRef: Ne,
|
|
@@ -49121,7 +49414,7 @@ const D = ({
|
|
|
49121
49414
|
events: we,
|
|
49122
49415
|
openOnClick: b,
|
|
49123
49416
|
positionStrategy: Se,
|
|
49124
|
-
middlewares:
|
|
49417
|
+
middlewares: g,
|
|
49125
49418
|
delayShow: se,
|
|
49126
49419
|
delayHide: ue,
|
|
49127
49420
|
float: pe,
|
|
@@ -49174,7 +49467,7 @@ function ContextualHelp(_ref) {
|
|
|
49174
49467
|
article = _useState2[0],
|
|
49175
49468
|
setArticle = _useState2[1];
|
|
49176
49469
|
var coreAppConfig = storage$1.getLocalItem('opsportal-core:config');
|
|
49177
|
-
var tileData = findAppData(coreAppConfig.tiles
|
|
49470
|
+
var tileData = findAppData(coreAppConfig.tiles, coreAppConfig.tileOverrides) || {};
|
|
49178
49471
|
var mihelpAppPath = !isCoreRoute ? tileData.mihelpAppPath : null;
|
|
49179
49472
|
var isMihelpEnabled;
|
|
49180
49473
|
if (isCoreRoute) {
|
|
@@ -49251,8 +49544,8 @@ function ContextualHelp(_ref) {
|
|
|
49251
49544
|
name: "question-circle",
|
|
49252
49545
|
variant: "solid",
|
|
49253
49546
|
style: {
|
|
49254
|
-
color:
|
|
49255
|
-
fontSize:
|
|
49547
|
+
color: '#1d5ab9',
|
|
49548
|
+
fontSize: '22px'
|
|
49256
49549
|
}
|
|
49257
49550
|
})), /*#__PURE__*/React__default["default"].createElement(H, {
|
|
49258
49551
|
anchorSelect: "#helpSnippet1",
|