@copart/ops-tool-kit 1.6.2 → 1.6.5
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 +143 -101
- 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.5";
|
|
37
37
|
const main = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -2584,13 +2584,11 @@ function set$1(target, path, value, options) {
|
|
|
2584
2584
|
|
|
2585
2585
|
let opts = options || {};
|
|
2586
2586
|
const isArray = Array.isArray(path);
|
|
2587
|
-
|
|
2588
2587
|
if (!isArray && typeof path !== 'string') {
|
|
2589
2588
|
return target;
|
|
2590
2589
|
}
|
|
2591
2590
|
|
|
2592
2591
|
let merge = opts.merge;
|
|
2593
|
-
|
|
2594
2592
|
if (merge && typeof merge !== 'function') {
|
|
2595
2593
|
merge = Object.assign;
|
|
2596
2594
|
}
|
|
@@ -2633,7 +2631,8 @@ function result(target, path, value, merge) {
|
|
|
2633
2631
|
function split(path, options) {
|
|
2634
2632
|
const id = createKey(path, options);
|
|
2635
2633
|
if (set$1.memo[id]) return set$1.memo[id];
|
|
2636
|
-
|
|
2634
|
+
|
|
2635
|
+
const char = (options && options.separator) ? options.separator : '.';
|
|
2637
2636
|
let keys = [];
|
|
2638
2637
|
let res = [];
|
|
2639
2638
|
|
|
@@ -2645,32 +2644,25 @@ function split(path, options) {
|
|
|
2645
2644
|
|
|
2646
2645
|
for (let i = 0; i < keys.length; i++) {
|
|
2647
2646
|
let prop = keys[i];
|
|
2648
|
-
|
|
2649
2647
|
while (prop && prop.slice(-1) === '\\' && keys[i + 1]) {
|
|
2650
2648
|
prop = prop.slice(0, -1) + char + keys[++i];
|
|
2651
2649
|
}
|
|
2652
|
-
|
|
2653
2650
|
res.push(prop);
|
|
2654
2651
|
}
|
|
2655
|
-
|
|
2656
2652
|
set$1.memo[id] = res;
|
|
2657
2653
|
return res;
|
|
2658
2654
|
}
|
|
2659
2655
|
|
|
2660
2656
|
function createKey(pattern, options) {
|
|
2661
2657
|
let id = pattern;
|
|
2662
|
-
|
|
2663
2658
|
if (typeof options === 'undefined') {
|
|
2664
2659
|
return id + '';
|
|
2665
2660
|
}
|
|
2666
|
-
|
|
2667
2661
|
const keys = Object.keys(options);
|
|
2668
|
-
|
|
2669
2662
|
for (let i = 0; i < keys.length; i++) {
|
|
2670
2663
|
const key = keys[i];
|
|
2671
2664
|
id += ';' + key + '=' + String(options[key]);
|
|
2672
2665
|
}
|
|
2673
|
-
|
|
2674
2666
|
return id;
|
|
2675
2667
|
}
|
|
2676
2668
|
|
|
@@ -6669,72 +6661,87 @@ exports.all = function () {
|
|
|
6669
6661
|
var stack$1 = process.env.STACK;
|
|
6670
6662
|
|
|
6671
6663
|
var getDefaultYard = function getDefaultYard(country) {
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
zip: {
|
|
6686
|
-
zip1: "500032"
|
|
6687
|
-
}
|
|
6664
|
+
if (stack$1 === 'uk') {
|
|
6665
|
+
return {
|
|
6666
|
+
name: "COPART UK",
|
|
6667
|
+
number: 400,
|
|
6668
|
+
userSecurityLevel: "1",
|
|
6669
|
+
address: {
|
|
6670
|
+
city: "WOOTTON",
|
|
6671
|
+
country: "GBR",
|
|
6672
|
+
line1: "ACREY FIELDS",
|
|
6673
|
+
state: "GB",
|
|
6674
|
+
zip: {
|
|
6675
|
+
zip1: "MK43",
|
|
6676
|
+
zip2: ""
|
|
6688
6677
|
}
|
|
6689
|
-
}
|
|
6678
|
+
}
|
|
6679
|
+
};
|
|
6680
|
+
} else {
|
|
6681
|
+
switch (country) {
|
|
6682
|
+
case 'IN':
|
|
6683
|
+
return {
|
|
6684
|
+
name: "CITC",
|
|
6685
|
+
number: 8003,
|
|
6686
|
+
address: {
|
|
6687
|
+
city: "HYDERABAD",
|
|
6688
|
+
country: "IND",
|
|
6689
|
+
line1: "PSR PRIME TOWERS 5TH FLOOR",
|
|
6690
|
+
line2: "SURVEY NO 126P, GACHIBOWLI",
|
|
6691
|
+
state: "TS",
|
|
6692
|
+
zip: {
|
|
6693
|
+
zip1: "500032"
|
|
6694
|
+
}
|
|
6695
|
+
}
|
|
6696
|
+
};
|
|
6690
6697
|
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6698
|
+
case 'US':
|
|
6699
|
+
return {
|
|
6700
|
+
name: "CORPORATE",
|
|
6701
|
+
number: 700,
|
|
6702
|
+
address: {
|
|
6703
|
+
city: "DALLAS",
|
|
6704
|
+
country: "USA",
|
|
6705
|
+
line1: "14185 DALLAS PARKWAY #300",
|
|
6706
|
+
state: "TX",
|
|
6707
|
+
zip: {
|
|
6708
|
+
zip1: "75254"
|
|
6709
|
+
}
|
|
6702
6710
|
}
|
|
6703
|
-
}
|
|
6704
|
-
};
|
|
6711
|
+
};
|
|
6705
6712
|
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6713
|
+
case 'UK':
|
|
6714
|
+
return {
|
|
6715
|
+
name: "COPART UK",
|
|
6716
|
+
number: 400,
|
|
6717
|
+
userSecurityLevel: "1",
|
|
6718
|
+
address: {
|
|
6719
|
+
city: "WOOTTON",
|
|
6720
|
+
country: "GBR",
|
|
6721
|
+
line1: "ACREY FIELDS",
|
|
6722
|
+
state: "GB",
|
|
6723
|
+
zip: {
|
|
6724
|
+
zip1: "MK43",
|
|
6725
|
+
zip2: ""
|
|
6726
|
+
}
|
|
6720
6727
|
}
|
|
6721
|
-
}
|
|
6722
|
-
};
|
|
6728
|
+
};
|
|
6723
6729
|
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6730
|
+
default:
|
|
6731
|
+
return {
|
|
6732
|
+
name: "CORPORATE",
|
|
6733
|
+
number: 700,
|
|
6734
|
+
address: {
|
|
6735
|
+
city: "DALLAS",
|
|
6736
|
+
country: "USA",
|
|
6737
|
+
line1: "14185 DALLAS PARKWAY #300",
|
|
6738
|
+
state: "TX",
|
|
6739
|
+
zip: {
|
|
6740
|
+
zip1: "75254"
|
|
6741
|
+
}
|
|
6735
6742
|
}
|
|
6736
|
-
}
|
|
6737
|
-
|
|
6743
|
+
};
|
|
6744
|
+
}
|
|
6738
6745
|
}
|
|
6739
6746
|
}; // TODO: Dynamic INVALID_CREDENTIALS error with X tries until locked.
|
|
6740
6747
|
|
|
@@ -22144,7 +22151,7 @@ FeedbackDialog.defaultProps = {
|
|
|
22144
22151
|
}
|
|
22145
22152
|
};
|
|
22146
22153
|
|
|
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:
|
|
22154
|
+
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: 5px !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 margin-left: 10px;\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: 100%;\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";
|
|
22148
22155
|
styleInject(css_248z$b);
|
|
22149
22156
|
|
|
22150
22157
|
var LogOutMenu = function LogOutMenu(_ref) {
|
|
@@ -25019,12 +25026,58 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
25019
25026
|
}, {
|
|
25020
25027
|
key: 'help',
|
|
25021
25028
|
name: 'Help',
|
|
25029
|
+
onRender: function onRender() {
|
|
25030
|
+
return React__default["default"].createElement("div", {
|
|
25031
|
+
className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items",
|
|
25032
|
+
onClick: handleHelpClick
|
|
25033
|
+
}, React__default["default"].createElement(OverFlowIcon, {
|
|
25034
|
+
name: "help"
|
|
25035
|
+
}), React__default["default"].createElement(OverFlowText, {
|
|
25036
|
+
text: "MiHelp"
|
|
25037
|
+
}));
|
|
25038
|
+
},
|
|
25022
25039
|
renderIf: isMihelpEnabled,
|
|
25023
25040
|
render: function render() {
|
|
25024
25041
|
return React__default["default"].createElement(Help, {
|
|
25025
25042
|
handleHelpClick: handleHelpClick
|
|
25026
25043
|
});
|
|
25027
25044
|
}
|
|
25045
|
+
}, {
|
|
25046
|
+
key: 'ideaNote',
|
|
25047
|
+
name: 'Innov8Hub',
|
|
25048
|
+
onRender: function onRender(_, dismissMenu) {
|
|
25049
|
+
return React__default["default"].createElement("div", {
|
|
25050
|
+
className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items",
|
|
25051
|
+
onClick: function onClick() {
|
|
25052
|
+
props.setIdeaNoteVisible(true);
|
|
25053
|
+
dismissMenu();
|
|
25054
|
+
}
|
|
25055
|
+
}, React__default["default"].createElement(OverFlowIcon, {
|
|
25056
|
+
name: "emoji_objects"
|
|
25057
|
+
}), React__default["default"].createElement(OverFlowText, {
|
|
25058
|
+
text: "Innov8Hub"
|
|
25059
|
+
}));
|
|
25060
|
+
},
|
|
25061
|
+
renderIf: isIdeaNoteEnabled,
|
|
25062
|
+
render: function render() {
|
|
25063
|
+
return React__default["default"].createElement("div", {
|
|
25064
|
+
className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items",
|
|
25065
|
+
style: {
|
|
25066
|
+
cursor: 'pointer'
|
|
25067
|
+
},
|
|
25068
|
+
onClick: function onClick() {
|
|
25069
|
+
return props.setIdeaNoteVisible(true);
|
|
25070
|
+
}
|
|
25071
|
+
}, React__default["default"].createElement(coreComponents.Icon, {
|
|
25072
|
+
name: "emoji_objects",
|
|
25073
|
+
variant: "material",
|
|
25074
|
+
style: {
|
|
25075
|
+
color: 'white',
|
|
25076
|
+
fontSize: '22px',
|
|
25077
|
+
margin: '4px 0 0 10px'
|
|
25078
|
+
}
|
|
25079
|
+
}));
|
|
25080
|
+
}
|
|
25028
25081
|
}, {
|
|
25029
25082
|
key: 'logout',
|
|
25030
25083
|
name: 'Logout',
|
|
@@ -25036,7 +25089,7 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
25036
25089
|
name: "account_circle"
|
|
25037
25090
|
}), React__default["default"].createElement(OverFlowText, {
|
|
25038
25091
|
text: propOr$1('', 'name', props.logoutItems[0])
|
|
25039
|
-
})), React__default["default"].createElement("div", {
|
|
25092
|
+
})), !showSettingsInAppbar && React__default["default"].createElement("div", {
|
|
25040
25093
|
className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items",
|
|
25041
25094
|
onClick: function onClick() {
|
|
25042
25095
|
navigateTo('/settings');
|
|
@@ -25067,28 +25120,6 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
25067
25120
|
onItemClick: props.onLogoutItemClicked
|
|
25068
25121
|
});
|
|
25069
25122
|
}
|
|
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
|
-
}
|
|
25092
25123
|
}];
|
|
25093
25124
|
return items.filter(function (item) {
|
|
25094
25125
|
return item.renderIf;
|
|
@@ -25239,7 +25270,8 @@ var AppBar$1 = function AppBar(props) {
|
|
|
25239
25270
|
bottom: '0',
|
|
25240
25271
|
right: '0',
|
|
25241
25272
|
height: '100vh',
|
|
25242
|
-
width: '
|
|
25273
|
+
width: '90vw',
|
|
25274
|
+
maxWidth: '443px',
|
|
25243
25275
|
backgroundColor: 'white'
|
|
25244
25276
|
},
|
|
25245
25277
|
src: "https://idea-widget.ideanote.io?config=66ff516339"
|
|
@@ -25844,7 +25876,7 @@ var IconComponent = function IconComponent(_ref) {
|
|
|
25844
25876
|
*/
|
|
25845
25877
|
|
|
25846
25878
|
var b = "function" === typeof Symbol && Symbol.for,
|
|
25847
|
-
c
|
|
25879
|
+
c = b ? Symbol.for("react.element") : 60103,
|
|
25848
25880
|
d = b ? Symbol.for("react.portal") : 60106,
|
|
25849
25881
|
e = b ? Symbol.for("react.fragment") : 60107,
|
|
25850
25882
|
f = b ? Symbol.for("react.strict_mode") : 60108,
|
|
@@ -25868,7 +25900,7 @@ function z(a) {
|
|
|
25868
25900
|
var u = a.$$typeof;
|
|
25869
25901
|
|
|
25870
25902
|
switch (u) {
|
|
25871
|
-
case c
|
|
25903
|
+
case c:
|
|
25872
25904
|
switch (a = a.type, a) {
|
|
25873
25905
|
case l:
|
|
25874
25906
|
case m:
|
|
@@ -25907,7 +25939,7 @@ var AsyncMode = l;
|
|
|
25907
25939
|
var ConcurrentMode = m;
|
|
25908
25940
|
var ContextConsumer = k;
|
|
25909
25941
|
var ContextProvider = h;
|
|
25910
|
-
var Element$1 = c
|
|
25942
|
+
var Element$1 = c;
|
|
25911
25943
|
var ForwardRef = n;
|
|
25912
25944
|
var Fragment = e;
|
|
25913
25945
|
var Lazy = t;
|
|
@@ -25932,7 +25964,7 @@ var isContextProvider = function (a) {
|
|
|
25932
25964
|
};
|
|
25933
25965
|
|
|
25934
25966
|
var isElement = function (a) {
|
|
25935
|
-
return "object" === typeof a && null !== a && a.$$typeof === c
|
|
25967
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
25936
25968
|
};
|
|
25937
25969
|
|
|
25938
25970
|
var isForwardRef = function (a) {
|
|
@@ -30282,6 +30314,17 @@ var APP_BAR_CONFIGS = {
|
|
|
30282
30314
|
|
|
30283
30315
|
var coreAppConfig = storage$1.getLocalItem('opsportal-core:config');
|
|
30284
30316
|
var enableNewToolkitFeatures = coreAppConfig.enableNewToolkitFeatures;
|
|
30317
|
+
|
|
30318
|
+
var getIdeaNoteEnabledStatus = function getIdeaNoteEnabledStatus(tileData) {
|
|
30319
|
+
var coreAppConfig = storage$1.getLocalItem('opsportal-core:config');
|
|
30320
|
+
|
|
30321
|
+
if (isCoreRoute || coreAppConfig.enableIdeaNoteGlobally) {
|
|
30322
|
+
return coreAppConfig.enableIdeaNote;
|
|
30323
|
+
} else {
|
|
30324
|
+
return tileData.enableIdeaNote;
|
|
30325
|
+
}
|
|
30326
|
+
};
|
|
30327
|
+
|
|
30285
30328
|
var SETTINGS_ITEMS = [{
|
|
30286
30329
|
key: 'userName',
|
|
30287
30330
|
name: ''
|
|
@@ -30387,6 +30430,7 @@ var AppBar = function AppBar(_ref) {
|
|
|
30387
30430
|
|
|
30388
30431
|
var tileData = findAppData(coreAppConfig.tiles || []) || {};
|
|
30389
30432
|
var mihelpAppPath = !isCoreRoute ? tileData.mihelpAppPath : null;
|
|
30433
|
+
var isIdeaNoteEnabled = getIdeaNoteEnabledStatus(tileData);
|
|
30390
30434
|
|
|
30391
30435
|
var handleHelpClick = function handleHelpClick() {
|
|
30392
30436
|
var country = storage$1.getSessionItem('dashboard', 'selectedCountryA3code');
|
|
@@ -30405,8 +30449,6 @@ var AppBar = function AppBar(_ref) {
|
|
|
30405
30449
|
isMihelpEnabled = Boolean(mihelpAppPath);
|
|
30406
30450
|
}
|
|
30407
30451
|
|
|
30408
|
-
var isIdeaNoteEnabled = coreAppConfig.enableIdeaNote;
|
|
30409
|
-
|
|
30410
30452
|
var feedbackConfig = function feedbackConfig() {
|
|
30411
30453
|
var _storage$coreConfig;
|
|
30412
30454
|
|