@copart/ops-tool-kit 1.6.0 → 1.6.2
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 +106 -21
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -33,7 +33,7 @@ var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
|
33
33
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
34
34
|
|
|
35
35
|
const name$e = "@copart/ops-tool-kit";
|
|
36
|
-
const version$3 = "1.6.
|
|
36
|
+
const version$3 = "1.6.2";
|
|
37
37
|
const main = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -2584,11 +2584,13 @@ function set$1(target, path, value, options) {
|
|
|
2584
2584
|
|
|
2585
2585
|
let opts = options || {};
|
|
2586
2586
|
const isArray = Array.isArray(path);
|
|
2587
|
+
|
|
2587
2588
|
if (!isArray && typeof path !== 'string') {
|
|
2588
2589
|
return target;
|
|
2589
2590
|
}
|
|
2590
2591
|
|
|
2591
2592
|
let merge = opts.merge;
|
|
2593
|
+
|
|
2592
2594
|
if (merge && typeof merge !== 'function') {
|
|
2593
2595
|
merge = Object.assign;
|
|
2594
2596
|
}
|
|
@@ -2631,8 +2633,7 @@ function result(target, path, value, merge) {
|
|
|
2631
2633
|
function split(path, options) {
|
|
2632
2634
|
const id = createKey(path, options);
|
|
2633
2635
|
if (set$1.memo[id]) return set$1.memo[id];
|
|
2634
|
-
|
|
2635
|
-
const char = (options && options.separator) ? options.separator : '.';
|
|
2636
|
+
const char = options && options.separator ? options.separator : '.';
|
|
2636
2637
|
let keys = [];
|
|
2637
2638
|
let res = [];
|
|
2638
2639
|
|
|
@@ -2644,25 +2645,32 @@ function split(path, options) {
|
|
|
2644
2645
|
|
|
2645
2646
|
for (let i = 0; i < keys.length; i++) {
|
|
2646
2647
|
let prop = keys[i];
|
|
2648
|
+
|
|
2647
2649
|
while (prop && prop.slice(-1) === '\\' && keys[i + 1]) {
|
|
2648
2650
|
prop = prop.slice(0, -1) + char + keys[++i];
|
|
2649
2651
|
}
|
|
2652
|
+
|
|
2650
2653
|
res.push(prop);
|
|
2651
2654
|
}
|
|
2655
|
+
|
|
2652
2656
|
set$1.memo[id] = res;
|
|
2653
2657
|
return res;
|
|
2654
2658
|
}
|
|
2655
2659
|
|
|
2656
2660
|
function createKey(pattern, options) {
|
|
2657
2661
|
let id = pattern;
|
|
2662
|
+
|
|
2658
2663
|
if (typeof options === 'undefined') {
|
|
2659
2664
|
return id + '';
|
|
2660
2665
|
}
|
|
2666
|
+
|
|
2661
2667
|
const keys = Object.keys(options);
|
|
2668
|
+
|
|
2662
2669
|
for (let i = 0; i < keys.length; i++) {
|
|
2663
2670
|
const key = keys[i];
|
|
2664
2671
|
id += ';' + key + '=' + String(options[key]);
|
|
2665
2672
|
}
|
|
2673
|
+
|
|
2666
2674
|
return id;
|
|
2667
2675
|
}
|
|
2668
2676
|
|
|
@@ -6333,6 +6341,7 @@ function () {
|
|
|
6333
6341
|
return refreshToken();
|
|
6334
6342
|
|
|
6335
6343
|
case 9:
|
|
6344
|
+
_context.sent;
|
|
6336
6345
|
_context.next = 12;
|
|
6337
6346
|
return fetcher.request(error.response.config);
|
|
6338
6347
|
|
|
@@ -6657,8 +6666,12 @@ exports.all = function () {
|
|
|
6657
6666
|
};
|
|
6658
6667
|
});
|
|
6659
6668
|
|
|
6669
|
+
var stack$1 = process.env.STACK;
|
|
6670
|
+
|
|
6660
6671
|
var getDefaultYard = function getDefaultYard(country) {
|
|
6661
|
-
|
|
6672
|
+
var userCountryCode = country || (stack$1 === c ? 'US' : 'GB');
|
|
6673
|
+
|
|
6674
|
+
switch (userCountryCode) {
|
|
6662
6675
|
case 'IN':
|
|
6663
6676
|
return {
|
|
6664
6677
|
name: "CITC",
|
|
@@ -6675,7 +6688,23 @@ var getDefaultYard = function getDefaultYard(country) {
|
|
|
6675
6688
|
}
|
|
6676
6689
|
};
|
|
6677
6690
|
|
|
6691
|
+
case 'US':
|
|
6692
|
+
return {
|
|
6693
|
+
name: "CORPORATE",
|
|
6694
|
+
number: 700,
|
|
6695
|
+
address: {
|
|
6696
|
+
city: "DALLAS",
|
|
6697
|
+
country: "USA",
|
|
6698
|
+
line1: "14185 DALLAS PARKWAY #300",
|
|
6699
|
+
state: "TX",
|
|
6700
|
+
zip: {
|
|
6701
|
+
zip1: "75254"
|
|
6702
|
+
}
|
|
6703
|
+
}
|
|
6704
|
+
};
|
|
6705
|
+
|
|
6678
6706
|
case 'UK':
|
|
6707
|
+
case 'GB':
|
|
6679
6708
|
return {
|
|
6680
6709
|
name: "COPART UK",
|
|
6681
6710
|
number: 400,
|
|
@@ -22115,7 +22144,7 @@ FeedbackDialog.defaultProps = {
|
|
|
22115
22144
|
}
|
|
22116
22145
|
};
|
|
22117
22146
|
|
|
22118
|
-
var css_248z$b = ".utilities_ops-app-frame_AppBarComponent_AppBar--root {\n background-color: var(--blue);\n background-color: var(--blue);\n height: 64px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n white-space: nowrap;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--leftItems {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogo {\n display: flex;\n align-items: center;\n flex-direction: column;\n margin-left: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogoNew {\n display: flex;\n flex-direction: column;\n margin-left: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--moduleName {\n color: white;\n font-size: 11px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n font-size: 13px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col {\n display: flex;\n color: white;\n font-size: 13px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col svg {\n color: white;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\n width: 6rem;\n margin-top: 0rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--text {\n margin-top: 0.6rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--iconText {\n margin-top: 0.4rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchBar,\n.utilities_ops-app-frame_AppBarComponent_AppBar--placeholderDiv {\n margin-top: -0.2rem;\n margin-left: 2rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--appBarLeft > img.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\n display: inline;\n display: initial;\n}\n\n@font-face {\n font-family: 'Open Sans';\n font-style: italic;\n font-weight: 600;\n src: url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhmIqOjjg.woff2)\n format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--appTitle {\n color: #fff;\n font-family: 'Open Sans', sans-serif;\n font-weight: 600;\n font-style: italic;\n font-size: 14px;\n position: relative;\n left: 16px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--item {\n display: flex;\n color: white;\n font-size: 13px;\n cursor: pointer;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber {\n margin-left: 10px;\n margin-right: 7px;\n cursor: pointer;\n display: flex;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber > div {\n margin-left: 7px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault {\n color: white;\n cursor: default;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable,\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\n background-color: white;\n border-radius: 20px;\n margin: 5px;\n padding: 0px 10px;\n height: 25px;\n font-weight: bold;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--light {\n border: 1px solid #1d5ab9;\n justify-content: flex-start;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightDefault {\n color: black;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline,\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\n background-color: white;\n border-radius: 20px;\n display: flex;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\n color: green;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable i {\n color: green;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline {\n color: red;\n margin: 5px 0px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline svg {\n margin-right: 5px;\n margin-left: 5px;\n width: 24px;\n height: 24px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--SpinnerWrapper {\n margin-left: 5px;\n display: inline-flex;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i {\n font-size: 16px;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i {\n line-height: unset;\n font-size: 16px;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable {\n color: green;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\n margin-right: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\n color: red;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--userMenu {\n margin-left: 10px !important;\n margin-right: 10px !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\n margin-left: 10px !important;\n margin-right: 10px !important;\n display: flex;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\n margin-left: 7px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--feedback {\n margin: 0 !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems {\n width: 100%;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button {\n cursor: pointer;\n position: relative;\n top: 2px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button i {\n color: #fff;\n}\n\n@media only screen and (max-width: 1024px) {\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\n margin-right: 2px;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber {\n margin-left: 5px;\n margin-right: 2px;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber > div {\n margin-left: 2px;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--userMenu {\n margin-left: 3px !important;\n margin-right: 3px !important;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\n margin-left: 3px !important;\n margin-right: 3px !important;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\n margin-left: 2px;\n }\n}\n";
|
|
22147
|
+
var css_248z$b = ".utilities_ops-app-frame_AppBarComponent_AppBar--root {\n background-color: var(--blue);\n background-color: var(--blue);\n height: 64px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n white-space: nowrap;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--leftItems {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogo {\n display: flex;\n align-items: center;\n flex-direction: column;\n margin-left: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogoNew {\n display: flex;\n flex-direction: column;\n margin-left: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--moduleName {\n color: white;\n font-size: 11px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n font-size: 13px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col {\n display: flex;\n color: white;\n font-size: 13px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col svg {\n color: white;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\n width: 6rem;\n margin-top: 0rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--text {\n margin-top: 0.6rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--iconText {\n margin-top: 0.4rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchBar,\n.utilities_ops-app-frame_AppBarComponent_AppBar--placeholderDiv {\n margin-top: -0.2rem;\n margin-left: 2rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--appBarLeft > img.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\n display: inline;\n display: initial;\n}\n\n@font-face {\n font-family: 'Open Sans';\n font-style: italic;\n font-weight: 600;\n src: url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhmIqOjjg.woff2)\n format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--appTitle {\n color: #fff;\n font-family: 'Open Sans', sans-serif;\n font-weight: 600;\n font-style: italic;\n font-size: 14px;\n position: relative;\n left: 16px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--item {\n display: flex;\n color: white;\n font-size: 13px;\n cursor: pointer;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber {\n margin-left: 10px;\n margin-right: 7px;\n cursor: pointer;\n display: flex;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber > div {\n margin-left: 7px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault {\n color: white;\n cursor: default;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable,\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\n background-color: white;\n border-radius: 20px;\n margin: 5px;\n padding: 0px 10px;\n height: 25px;\n font-weight: bold;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--light {\n border: 1px solid #1d5ab9;\n justify-content: flex-start;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightDefault {\n color: black;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline,\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\n background-color: white;\n border-radius: 20px;\n display: flex;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\n color: green;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable i {\n color: green;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline {\n color: red;\n margin: 5px 0px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline svg {\n margin-right: 5px;\n margin-left: 5px;\n width: 24px;\n height: 24px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--SpinnerWrapper {\n margin-left: 5px;\n display: inline-flex;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i {\n font-size: 16px;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i {\n line-height: unset;\n font-size: 16px;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable {\n color: green;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\n margin-right: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\n color: red;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--userMenu {\n margin-left: 10px !important;\n margin-right: 10px !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\n margin-left: 10px !important;\n margin-right: 10px !important;\n display: flex;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\n margin-left: 7px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--feedback {\n margin: 0 !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems {\n width: 100%;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button {\n cursor: pointer;\n position: relative;\n top: 2px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button i {\n color: #fff;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer {\n position: absolute;\n display: flex;\n height: 100vh;\n width: 100vw;\n bottom: 0;\n z-index: 10000;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide {\n background-color: rgba(0,0,0,.5);\n width: calc(100vw - 443px);\n}\n\n@media only screen and (max-width: 1024px) {\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\n margin-right: 2px;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber {\n margin-left: 5px;\n margin-right: 2px;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber > div {\n margin-left: 2px;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--userMenu {\n margin-left: 3px !important;\n margin-right: 3px !important;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\n margin-left: 3px !important;\n margin-right: 3px !important;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\n margin-left: 2px;\n }\n}\n";
|
|
22119
22148
|
styleInject(css_248z$b);
|
|
22120
22149
|
|
|
22121
22150
|
var LogOutMenu = function LogOutMenu(_ref) {
|
|
@@ -22224,7 +22253,9 @@ var _styleModuleImportMap$5 = {
|
|
|
22224
22253
|
"roleAndFlag": "utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag",
|
|
22225
22254
|
"feedback": "utilities_ops-app-frame_AppBarComponent_AppBar--feedback",
|
|
22226
22255
|
"overflowItems": "utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems",
|
|
22227
|
-
"mihelp_button": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button"
|
|
22256
|
+
"mihelp_button": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button",
|
|
22257
|
+
"ideaWidgetContainer": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer",
|
|
22258
|
+
"ideaWidgetHide": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide"
|
|
22228
22259
|
}
|
|
22229
22260
|
};
|
|
22230
22261
|
|
|
@@ -23444,7 +23475,7 @@ var saveSettings$1 = function saveSettings(self) {
|
|
|
23444
23475
|
}
|
|
23445
23476
|
}
|
|
23446
23477
|
});
|
|
23447
|
-
_self$state = self.state, selectedYard = _self$state.selectedYardNumber, selectedRole = _self$state.selectedRole, selectedLanguage = _self$state.selectedLanguage, selectedCurrency = _self$state.selectedCurrency, roles = _self$state.roles;
|
|
23478
|
+
_self$state = self.state, selectedYard = _self$state.selectedYardNumber, selectedRole = _self$state.selectedRole, selectedLanguage = _self$state.selectedLanguage, selectedCurrency = _self$state.selectedCurrency, roles = _self$state.roles, _self$state.selectedRoleOption;
|
|
23448
23479
|
roleOptionFromState = roles.find(function (roleOption) {
|
|
23449
23480
|
return frontEndUtils.regex.beautifyRoleText(roleOption.roleName) === selectedRole;
|
|
23450
23481
|
}) || head$1(roles);
|
|
@@ -24793,7 +24824,9 @@ var _styleModuleImportMap$4 = {
|
|
|
24793
24824
|
"roleAndFlag": "utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag",
|
|
24794
24825
|
"feedback": "utilities_ops-app-frame_AppBarComponent_AppBar--feedback",
|
|
24795
24826
|
"overflowItems": "utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems",
|
|
24796
|
-
"mihelp_button": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button"
|
|
24827
|
+
"mihelp_button": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button",
|
|
24828
|
+
"ideaWidgetContainer": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer",
|
|
24829
|
+
"ideaWidgetHide": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide"
|
|
24797
24830
|
}
|
|
24798
24831
|
};
|
|
24799
24832
|
var overflowSetStyles = {
|
|
@@ -24822,7 +24855,8 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
24822
24855
|
config = props.config,
|
|
24823
24856
|
_props$navigateTo = props.navigateTo,
|
|
24824
24857
|
navigateTo = _props$navigateTo === void 0 ? function (url) {} : _props$navigateTo,
|
|
24825
|
-
isMihelpEnabled = props.isMihelpEnabled
|
|
24858
|
+
isMihelpEnabled = props.isMihelpEnabled,
|
|
24859
|
+
isIdeaNoteEnabled = props.isIdeaNoteEnabled;
|
|
24826
24860
|
var coreAppConfig = storage.getLocalItem('opsportal-core:config');
|
|
24827
24861
|
var enableNewToolkitFeatures = coreAppConfig.enableNewToolkitFeatures,
|
|
24828
24862
|
showSettingsMenuByTileConfig = coreAppConfig.showSettingsMenuByTileConfig;
|
|
@@ -25033,6 +25067,28 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
25033
25067
|
onItemClick: props.onLogoutItemClicked
|
|
25034
25068
|
});
|
|
25035
25069
|
}
|
|
25070
|
+
}, {
|
|
25071
|
+
key: 'ideaNote',
|
|
25072
|
+
renderIf: isIdeaNoteEnabled,
|
|
25073
|
+
render: function render() {
|
|
25074
|
+
return React__default["default"].createElement("div", {
|
|
25075
|
+
className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items",
|
|
25076
|
+
style: {
|
|
25077
|
+
cursor: 'pointer'
|
|
25078
|
+
},
|
|
25079
|
+
onClick: function onClick() {
|
|
25080
|
+
return props.setIdeaNoteVisible(true);
|
|
25081
|
+
}
|
|
25082
|
+
}, React__default["default"].createElement(coreComponents.Icon, {
|
|
25083
|
+
name: "reviews",
|
|
25084
|
+
variant: "material",
|
|
25085
|
+
style: {
|
|
25086
|
+
color: 'white',
|
|
25087
|
+
fontSize: '22px',
|
|
25088
|
+
margin: '5px 15px 0 0'
|
|
25089
|
+
}
|
|
25090
|
+
}));
|
|
25091
|
+
}
|
|
25036
25092
|
}];
|
|
25037
25093
|
return items.filter(function (item) {
|
|
25038
25094
|
return item.renderIf;
|
|
@@ -25058,6 +25114,11 @@ var AppBar$1 = function AppBar(props) {
|
|
|
25058
25114
|
calloutTarget = _useState6[0],
|
|
25059
25115
|
setCalloutTarget = _useState6[1];
|
|
25060
25116
|
|
|
25117
|
+
var _useState7 = React.useState(false),
|
|
25118
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
25119
|
+
ideaNoteVisible = _useState8[0],
|
|
25120
|
+
setIdeaNoteVisible = _useState8[1];
|
|
25121
|
+
|
|
25061
25122
|
var isLoggedOn = props.isLoggedOn,
|
|
25062
25123
|
moduleName = props.moduleName,
|
|
25063
25124
|
forceUpdate = props.forceUpdate,
|
|
@@ -25068,10 +25129,10 @@ var AppBar$1 = function AppBar(props) {
|
|
|
25068
25129
|
var _useWindowSize = useWindowSize(),
|
|
25069
25130
|
width = _useWindowSize.width;
|
|
25070
25131
|
|
|
25071
|
-
var
|
|
25072
|
-
|
|
25073
|
-
count =
|
|
25074
|
-
setCount =
|
|
25132
|
+
var _useState9 = React.useState(0),
|
|
25133
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
25134
|
+
count = _useState10[0],
|
|
25135
|
+
setCount = _useState10[1];
|
|
25075
25136
|
|
|
25076
25137
|
React.useLayoutEffect(function () {
|
|
25077
25138
|
setCount(count + 1);
|
|
@@ -25132,7 +25193,8 @@ var AppBar$1 = function AppBar(props) {
|
|
|
25132
25193
|
}, isLoggedOn ? React__default["default"].createElement(OverflowMenu, {
|
|
25133
25194
|
key: "_".concat(width, "_").concat(count),
|
|
25134
25195
|
items: generateAppBarElements(_objectSpread2({}, props, {
|
|
25135
|
-
toggleFeedbackDialog: toggleFeedbackDialog
|
|
25196
|
+
toggleFeedbackDialog: toggleFeedbackDialog,
|
|
25197
|
+
setIdeaNoteVisible: setIdeaNoteVisible
|
|
25136
25198
|
}), function (target) {
|
|
25137
25199
|
setCalloutTarget(target);
|
|
25138
25200
|
setCalloutVisible(true);
|
|
@@ -25161,7 +25223,27 @@ var AppBar$1 = function AppBar(props) {
|
|
|
25161
25223
|
onSave: onSave
|
|
25162
25224
|
}) : null, process.env.STACK === 'uk' ? React__default["default"].createElement(SettingsView, {
|
|
25163
25225
|
onSave: onSave
|
|
25164
|
-
}) : null)) : null
|
|
25226
|
+
}) : null)) : null, ideaNoteVisible && React__default["default"].createElement("div", {
|
|
25227
|
+
className: "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer"
|
|
25228
|
+
}, React__default["default"].createElement("div", {
|
|
25229
|
+
className: "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide",
|
|
25230
|
+
onClick: function onClick() {
|
|
25231
|
+
return setIdeaNoteVisible(false);
|
|
25232
|
+
}
|
|
25233
|
+
}), React__default["default"].createElement("iframe", {
|
|
25234
|
+
allowfullscreen: true,
|
|
25235
|
+
name: "idea-widget-frame",
|
|
25236
|
+
title: "Idea Collection Widget",
|
|
25237
|
+
style: {
|
|
25238
|
+
position: 'absolute',
|
|
25239
|
+
bottom: '0',
|
|
25240
|
+
right: '0',
|
|
25241
|
+
height: '100vh',
|
|
25242
|
+
width: '443px',
|
|
25243
|
+
backgroundColor: 'white'
|
|
25244
|
+
},
|
|
25245
|
+
src: "https://idea-widget.ideanote.io?config=66ff516339"
|
|
25246
|
+
})));
|
|
25165
25247
|
};
|
|
25166
25248
|
AppBar$1.defaultProps = {
|
|
25167
25249
|
config: ['flag', 'role', 'yard'],
|
|
@@ -25762,7 +25844,7 @@ var IconComponent = function IconComponent(_ref) {
|
|
|
25762
25844
|
*/
|
|
25763
25845
|
|
|
25764
25846
|
var b = "function" === typeof Symbol && Symbol.for,
|
|
25765
|
-
c = b ? Symbol.for("react.element") : 60103,
|
|
25847
|
+
c$1 = b ? Symbol.for("react.element") : 60103,
|
|
25766
25848
|
d = b ? Symbol.for("react.portal") : 60106,
|
|
25767
25849
|
e = b ? Symbol.for("react.fragment") : 60107,
|
|
25768
25850
|
f = b ? Symbol.for("react.strict_mode") : 60108,
|
|
@@ -25786,7 +25868,7 @@ function z(a) {
|
|
|
25786
25868
|
var u = a.$$typeof;
|
|
25787
25869
|
|
|
25788
25870
|
switch (u) {
|
|
25789
|
-
case c:
|
|
25871
|
+
case c$1:
|
|
25790
25872
|
switch (a = a.type, a) {
|
|
25791
25873
|
case l:
|
|
25792
25874
|
case m:
|
|
@@ -25825,7 +25907,7 @@ var AsyncMode = l;
|
|
|
25825
25907
|
var ConcurrentMode = m;
|
|
25826
25908
|
var ContextConsumer = k;
|
|
25827
25909
|
var ContextProvider = h;
|
|
25828
|
-
var Element$1 = c;
|
|
25910
|
+
var Element$1 = c$1;
|
|
25829
25911
|
var ForwardRef = n;
|
|
25830
25912
|
var Fragment = e;
|
|
25831
25913
|
var Lazy = t;
|
|
@@ -25850,7 +25932,7 @@ var isContextProvider = function (a) {
|
|
|
25850
25932
|
};
|
|
25851
25933
|
|
|
25852
25934
|
var isElement = function (a) {
|
|
25853
|
-
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
25935
|
+
return "object" === typeof a && null !== a && a.$$typeof === c$1;
|
|
25854
25936
|
};
|
|
25855
25937
|
|
|
25856
25938
|
var isForwardRef = function (a) {
|
|
@@ -30323,6 +30405,8 @@ var AppBar = function AppBar(_ref) {
|
|
|
30323
30405
|
isMihelpEnabled = Boolean(mihelpAppPath);
|
|
30324
30406
|
}
|
|
30325
30407
|
|
|
30408
|
+
var isIdeaNoteEnabled = coreAppConfig.enableIdeaNote;
|
|
30409
|
+
|
|
30326
30410
|
var feedbackConfig = function feedbackConfig() {
|
|
30327
30411
|
var _storage$coreConfig;
|
|
30328
30412
|
|
|
@@ -30370,6 +30454,7 @@ var AppBar = function AppBar(_ref) {
|
|
|
30370
30454
|
onLogoutItemClicked: handleSettingsItemClick,
|
|
30371
30455
|
handleHelpClick: handleHelpClick,
|
|
30372
30456
|
isMihelpEnabled: isMihelpEnabled,
|
|
30457
|
+
isIdeaNoteEnabled: isIdeaNoteEnabled,
|
|
30373
30458
|
sendFeedback: fetcher.sendFeedback,
|
|
30374
30459
|
feedbackConfig: feedbackConfig(),
|
|
30375
30460
|
stack: process.env.STACK,
|
|
@@ -30666,7 +30751,7 @@ var GoHome = function GoHome(props) {
|
|
|
30666
30751
|
}, props.reason));
|
|
30667
30752
|
};
|
|
30668
30753
|
|
|
30669
|
-
|
|
30754
|
+
/******************************************************************************
|
|
30670
30755
|
Copyright (c) Microsoft Corporation.
|
|
30671
30756
|
|
|
30672
30757
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -34269,7 +34354,7 @@ var firebase = firebase$1;
|
|
|
34269
34354
|
registerCoreComponents(firebase);
|
|
34270
34355
|
|
|
34271
34356
|
var name$1 = "firebase";
|
|
34272
|
-
var version$1 = "8.10.
|
|
34357
|
+
var version$1 = "8.10.1";
|
|
34273
34358
|
/**
|
|
34274
34359
|
* @license
|
|
34275
34360
|
* Copyright 2018 Google LLC
|