@copart/ops-tool-kit 1.6.1-alpha.1 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ops-tool-kit.js +97 -48
- 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.3";
|
|
37
37
|
const main = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -6658,55 +6658,90 @@ exports.all = function () {
|
|
|
6658
6658
|
};
|
|
6659
6659
|
});
|
|
6660
6660
|
|
|
6661
|
+
var stack$1 = process.env.STACK;
|
|
6662
|
+
|
|
6661
6663
|
var getDefaultYard = function getDefaultYard(country) {
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
}
|
|
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: ""
|
|
6676
6677
|
}
|
|
6677
|
-
}
|
|
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
|
+
};
|
|
6678
6697
|
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
zip2: ""
|
|
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
|
+
}
|
|
6692
6710
|
}
|
|
6693
|
-
}
|
|
6694
|
-
};
|
|
6711
|
+
};
|
|
6695
6712
|
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
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
|
+
}
|
|
6707
6727
|
}
|
|
6708
|
-
}
|
|
6709
|
-
|
|
6728
|
+
};
|
|
6729
|
+
|
|
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
|
+
}
|
|
6742
|
+
}
|
|
6743
|
+
};
|
|
6744
|
+
}
|
|
6710
6745
|
}
|
|
6711
6746
|
}; // TODO: Dynamic INVALID_CREDENTIALS error with X tries until locked.
|
|
6712
6747
|
|
|
@@ -22116,7 +22151,7 @@ FeedbackDialog.defaultProps = {
|
|
|
22116
22151
|
}
|
|
22117
22152
|
};
|
|
22118
22153
|
|
|
22119
|
-
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";
|
|
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: 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 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: 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";
|
|
22120
22155
|
styleInject(css_248z$b);
|
|
22121
22156
|
|
|
22122
22157
|
var LogOutMenu = function LogOutMenu(_ref) {
|
|
@@ -24827,7 +24862,8 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
24827
24862
|
config = props.config,
|
|
24828
24863
|
_props$navigateTo = props.navigateTo,
|
|
24829
24864
|
navigateTo = _props$navigateTo === void 0 ? function (url) {} : _props$navigateTo,
|
|
24830
|
-
isMihelpEnabled = props.isMihelpEnabled
|
|
24865
|
+
isMihelpEnabled = props.isMihelpEnabled,
|
|
24866
|
+
isIdeaNoteEnabled = props.isIdeaNoteEnabled;
|
|
24831
24867
|
var coreAppConfig = storage.getLocalItem('opsportal-core:config');
|
|
24832
24868
|
var enableNewToolkitFeatures = coreAppConfig.enableNewToolkitFeatures,
|
|
24833
24869
|
showSettingsMenuByTileConfig = coreAppConfig.showSettingsMenuByTileConfig;
|
|
@@ -25040,7 +25076,7 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
25040
25076
|
}
|
|
25041
25077
|
}, {
|
|
25042
25078
|
key: 'ideaNote',
|
|
25043
|
-
renderIf:
|
|
25079
|
+
renderIf: isIdeaNoteEnabled,
|
|
25044
25080
|
render: function render() {
|
|
25045
25081
|
return React__default["default"].createElement("div", {
|
|
25046
25082
|
className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items",
|
|
@@ -25051,7 +25087,7 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
25051
25087
|
return props.setIdeaNoteVisible(true);
|
|
25052
25088
|
}
|
|
25053
25089
|
}, React__default["default"].createElement(coreComponents.Icon, {
|
|
25054
|
-
name: "
|
|
25090
|
+
name: "emoji_objects",
|
|
25055
25091
|
variant: "material",
|
|
25056
25092
|
style: {
|
|
25057
25093
|
color: 'white',
|
|
@@ -30253,6 +30289,17 @@ var APP_BAR_CONFIGS = {
|
|
|
30253
30289
|
|
|
30254
30290
|
var coreAppConfig = storage$1.getLocalItem('opsportal-core:config');
|
|
30255
30291
|
var enableNewToolkitFeatures = coreAppConfig.enableNewToolkitFeatures;
|
|
30292
|
+
|
|
30293
|
+
var getIdeaNoteEnabledStatus = function getIdeaNoteEnabledStatus(tileData) {
|
|
30294
|
+
var coreAppConfig = storage$1.getLocalItem('opsportal-core:config');
|
|
30295
|
+
|
|
30296
|
+
if (isCoreRoute || coreAppConfig.enableIdeaNoteGlobally) {
|
|
30297
|
+
return coreAppConfig.enableIdeaNote;
|
|
30298
|
+
} else {
|
|
30299
|
+
return tileData.enableIdeaNote;
|
|
30300
|
+
}
|
|
30301
|
+
};
|
|
30302
|
+
|
|
30256
30303
|
var SETTINGS_ITEMS = [{
|
|
30257
30304
|
key: 'userName',
|
|
30258
30305
|
name: ''
|
|
@@ -30358,6 +30405,7 @@ var AppBar = function AppBar(_ref) {
|
|
|
30358
30405
|
|
|
30359
30406
|
var tileData = findAppData(coreAppConfig.tiles || []) || {};
|
|
30360
30407
|
var mihelpAppPath = !isCoreRoute ? tileData.mihelpAppPath : null;
|
|
30408
|
+
var isIdeaNoteEnabled = getIdeaNoteEnabledStatus(tileData);
|
|
30361
30409
|
|
|
30362
30410
|
var handleHelpClick = function handleHelpClick() {
|
|
30363
30411
|
var country = storage$1.getSessionItem('dashboard', 'selectedCountryA3code');
|
|
@@ -30423,6 +30471,7 @@ var AppBar = function AppBar(_ref) {
|
|
|
30423
30471
|
onLogoutItemClicked: handleSettingsItemClick,
|
|
30424
30472
|
handleHelpClick: handleHelpClick,
|
|
30425
30473
|
isMihelpEnabled: isMihelpEnabled,
|
|
30474
|
+
isIdeaNoteEnabled: isIdeaNoteEnabled,
|
|
30426
30475
|
sendFeedback: fetcher.sendFeedback,
|
|
30427
30476
|
feedbackConfig: feedbackConfig(),
|
|
30428
30477
|
stack: process.env.STACK,
|