@copart/ops-tool-kit 1.5.38 → 1.6.1-alpha.1
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 +115 -17
- 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.
|
|
36
|
+
const version$3 = "1.6.1-alpha.1";
|
|
37
37
|
const main = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -6333,6 +6333,7 @@ function () {
|
|
|
6333
6333
|
return refreshToken();
|
|
6334
6334
|
|
|
6335
6335
|
case 9:
|
|
6336
|
+
_context.sent;
|
|
6336
6337
|
_context.next = 12;
|
|
6337
6338
|
return fetcher.request(error.response.config);
|
|
6338
6339
|
|
|
@@ -6455,7 +6456,6 @@ function () {
|
|
|
6455
6456
|
return _ref.apply(this, arguments);
|
|
6456
6457
|
};
|
|
6457
6458
|
}();
|
|
6458
|
-
|
|
6459
6459
|
var findAppData = function findAppData(tiles) {
|
|
6460
6460
|
var matchingTiles = tiles.filter(function (tile) {
|
|
6461
6461
|
if (tile.appName) {
|
|
@@ -6474,7 +6474,6 @@ var findAppData = function findAppData(tiles) {
|
|
|
6474
6474
|
return matchingTiles[0];
|
|
6475
6475
|
}
|
|
6476
6476
|
};
|
|
6477
|
-
|
|
6478
6477
|
var getAppTileData =
|
|
6479
6478
|
/*#__PURE__*/
|
|
6480
6479
|
function () {
|
|
@@ -22117,7 +22116,7 @@ FeedbackDialog.defaultProps = {
|
|
|
22117
22116
|
}
|
|
22118
22117
|
};
|
|
22119
22118
|
|
|
22120
|
-
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)
|
|
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";
|
|
22121
22120
|
styleInject(css_248z$b);
|
|
22122
22121
|
|
|
22123
22122
|
var LogOutMenu = function LogOutMenu(_ref) {
|
|
@@ -22165,6 +22164,18 @@ var CopartLogo = function CopartLogo() {
|
|
|
22165
22164
|
}));
|
|
22166
22165
|
};
|
|
22167
22166
|
|
|
22167
|
+
var Help = function Help(_ref) {
|
|
22168
|
+
var handleHelpClick = _ref.handleHelpClick;
|
|
22169
|
+
return React__default["default"].createElement("div", {
|
|
22170
|
+
className: "utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button"
|
|
22171
|
+
}, React__default["default"].createElement(coreComponents.IconButton, {
|
|
22172
|
+
onClick: handleHelpClick
|
|
22173
|
+
}, React__default["default"].createElement(coreComponents.Icon, {
|
|
22174
|
+
name: "help",
|
|
22175
|
+
variant: "material"
|
|
22176
|
+
})));
|
|
22177
|
+
};
|
|
22178
|
+
|
|
22168
22179
|
var css_248z$9 = ".utilities_ops-app-frame_AppBarComponent_FeedbackDialog_FeedbackButton_FeedbackButton--FeedbackButton {\n /* TODO: Perfect the AppBar spacing. */\n margin-left: 7px !important;\n position: relative !important;\n top: 1px;\n cursor: pointer;\n}\n\nbutton.utilities_ops-app-frame_AppBarComponent_FeedbackDialog_FeedbackButton_FeedbackButton--FeedbackButton[type='button'] {\n /* materia-ui hack. */\n padding: 0 !important;\n}\n";
|
|
22169
22180
|
styleInject(css_248z$9);
|
|
22170
22181
|
|
|
@@ -22213,7 +22224,10 @@ var _styleModuleImportMap$5 = {
|
|
|
22213
22224
|
"userMenu": "utilities_ops-app-frame_AppBarComponent_AppBar--userMenu",
|
|
22214
22225
|
"roleAndFlag": "utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag",
|
|
22215
22226
|
"feedback": "utilities_ops-app-frame_AppBarComponent_AppBar--feedback",
|
|
22216
|
-
"overflowItems": "utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems"
|
|
22227
|
+
"overflowItems": "utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems",
|
|
22228
|
+
"mihelp_button": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button",
|
|
22229
|
+
"ideaWidgetContainer": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer",
|
|
22230
|
+
"ideaWidgetHide": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide"
|
|
22217
22231
|
}
|
|
22218
22232
|
};
|
|
22219
22233
|
|
|
@@ -23433,7 +23447,7 @@ var saveSettings$1 = function saveSettings(self) {
|
|
|
23433
23447
|
}
|
|
23434
23448
|
}
|
|
23435
23449
|
});
|
|
23436
|
-
_self$state = self.state, selectedYard = _self$state.selectedYardNumber, selectedRole = _self$state.selectedRole, selectedLanguage = _self$state.selectedLanguage, selectedCurrency = _self$state.selectedCurrency, roles = _self$state.roles;
|
|
23450
|
+
_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;
|
|
23437
23451
|
roleOptionFromState = roles.find(function (roleOption) {
|
|
23438
23452
|
return frontEndUtils.regex.beautifyRoleText(roleOption.roleName) === selectedRole;
|
|
23439
23453
|
}) || head$1(roles);
|
|
@@ -24781,7 +24795,10 @@ var _styleModuleImportMap$4 = {
|
|
|
24781
24795
|
"userMenu": "utilities_ops-app-frame_AppBarComponent_AppBar--userMenu",
|
|
24782
24796
|
"roleAndFlag": "utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag",
|
|
24783
24797
|
"feedback": "utilities_ops-app-frame_AppBarComponent_AppBar--feedback",
|
|
24784
|
-
"overflowItems": "utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems"
|
|
24798
|
+
"overflowItems": "utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems",
|
|
24799
|
+
"mihelp_button": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button",
|
|
24800
|
+
"ideaWidgetContainer": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer",
|
|
24801
|
+
"ideaWidgetHide": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide"
|
|
24785
24802
|
}
|
|
24786
24803
|
};
|
|
24787
24804
|
var overflowSetStyles = {
|
|
@@ -24805,10 +24822,12 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
24805
24822
|
_props$phoneStatusObj = props.phoneStatusObject,
|
|
24806
24823
|
phoneStatusObject = _props$phoneStatusObj === void 0 ? {} : _props$phoneStatusObj,
|
|
24807
24824
|
_togglePhoneAvailability = props.togglePhoneAvailability,
|
|
24825
|
+
handleHelpClick = props.handleHelpClick,
|
|
24808
24826
|
type = props.type,
|
|
24809
24827
|
config = props.config,
|
|
24810
24828
|
_props$navigateTo = props.navigateTo,
|
|
24811
|
-
navigateTo = _props$navigateTo === void 0 ? function (url) {} : _props$navigateTo
|
|
24829
|
+
navigateTo = _props$navigateTo === void 0 ? function (url) {} : _props$navigateTo,
|
|
24830
|
+
isMihelpEnabled = props.isMihelpEnabled;
|
|
24812
24831
|
var coreAppConfig = storage.getLocalItem('opsportal-core:config');
|
|
24813
24832
|
var enableNewToolkitFeatures = coreAppConfig.enableNewToolkitFeatures,
|
|
24814
24833
|
showSettingsMenuByTileConfig = coreAppConfig.showSettingsMenuByTileConfig;
|
|
@@ -24957,7 +24976,7 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
24957
24976
|
text: "Feedback"
|
|
24958
24977
|
}));
|
|
24959
24978
|
},
|
|
24960
|
-
renderIf:
|
|
24979
|
+
renderIf: !isMihelpEnabled,
|
|
24961
24980
|
onClick: function onClick() {
|
|
24962
24981
|
return props.toggleFeedbackDialog(true);
|
|
24963
24982
|
},
|
|
@@ -24968,6 +24987,15 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
24968
24987
|
}
|
|
24969
24988
|
});
|
|
24970
24989
|
}
|
|
24990
|
+
}, {
|
|
24991
|
+
key: 'help',
|
|
24992
|
+
name: 'Help',
|
|
24993
|
+
renderIf: isMihelpEnabled,
|
|
24994
|
+
render: function render() {
|
|
24995
|
+
return React__default["default"].createElement(Help, {
|
|
24996
|
+
handleHelpClick: handleHelpClick
|
|
24997
|
+
});
|
|
24998
|
+
}
|
|
24971
24999
|
}, {
|
|
24972
25000
|
key: 'logout',
|
|
24973
25001
|
name: 'Logout',
|
|
@@ -25010,6 +25038,28 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
25010
25038
|
onItemClick: props.onLogoutItemClicked
|
|
25011
25039
|
});
|
|
25012
25040
|
}
|
|
25041
|
+
}, {
|
|
25042
|
+
key: 'ideaNote',
|
|
25043
|
+
renderIf: true,
|
|
25044
|
+
render: function render() {
|
|
25045
|
+
return React__default["default"].createElement("div", {
|
|
25046
|
+
className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items",
|
|
25047
|
+
style: {
|
|
25048
|
+
cursor: 'pointer'
|
|
25049
|
+
},
|
|
25050
|
+
onClick: function onClick() {
|
|
25051
|
+
return props.setIdeaNoteVisible(true);
|
|
25052
|
+
}
|
|
25053
|
+
}, React__default["default"].createElement(coreComponents.Icon, {
|
|
25054
|
+
name: "reviews",
|
|
25055
|
+
variant: "material",
|
|
25056
|
+
style: {
|
|
25057
|
+
color: 'white',
|
|
25058
|
+
fontSize: '22px',
|
|
25059
|
+
margin: '5px 15px 0 0'
|
|
25060
|
+
}
|
|
25061
|
+
}));
|
|
25062
|
+
}
|
|
25013
25063
|
}];
|
|
25014
25064
|
return items.filter(function (item) {
|
|
25015
25065
|
return item.renderIf;
|
|
@@ -25035,6 +25085,11 @@ var AppBar$1 = function AppBar(props) {
|
|
|
25035
25085
|
calloutTarget = _useState6[0],
|
|
25036
25086
|
setCalloutTarget = _useState6[1];
|
|
25037
25087
|
|
|
25088
|
+
var _useState7 = React.useState(false),
|
|
25089
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
25090
|
+
ideaNoteVisible = _useState8[0],
|
|
25091
|
+
setIdeaNoteVisible = _useState8[1];
|
|
25092
|
+
|
|
25038
25093
|
var isLoggedOn = props.isLoggedOn,
|
|
25039
25094
|
moduleName = props.moduleName,
|
|
25040
25095
|
forceUpdate = props.forceUpdate,
|
|
@@ -25045,10 +25100,10 @@ var AppBar$1 = function AppBar(props) {
|
|
|
25045
25100
|
var _useWindowSize = useWindowSize(),
|
|
25046
25101
|
width = _useWindowSize.width;
|
|
25047
25102
|
|
|
25048
|
-
var
|
|
25049
|
-
|
|
25050
|
-
count =
|
|
25051
|
-
setCount =
|
|
25103
|
+
var _useState9 = React.useState(0),
|
|
25104
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
25105
|
+
count = _useState10[0],
|
|
25106
|
+
setCount = _useState10[1];
|
|
25052
25107
|
|
|
25053
25108
|
React.useLayoutEffect(function () {
|
|
25054
25109
|
setCount(count + 1);
|
|
@@ -25109,7 +25164,8 @@ var AppBar$1 = function AppBar(props) {
|
|
|
25109
25164
|
}, isLoggedOn ? React__default["default"].createElement(OverflowMenu, {
|
|
25110
25165
|
key: "_".concat(width, "_").concat(count),
|
|
25111
25166
|
items: generateAppBarElements(_objectSpread2({}, props, {
|
|
25112
|
-
toggleFeedbackDialog: toggleFeedbackDialog
|
|
25167
|
+
toggleFeedbackDialog: toggleFeedbackDialog,
|
|
25168
|
+
setIdeaNoteVisible: setIdeaNoteVisible
|
|
25113
25169
|
}), function (target) {
|
|
25114
25170
|
setCalloutTarget(target);
|
|
25115
25171
|
setCalloutVisible(true);
|
|
@@ -25138,7 +25194,27 @@ var AppBar$1 = function AppBar(props) {
|
|
|
25138
25194
|
onSave: onSave
|
|
25139
25195
|
}) : null, process.env.STACK === 'uk' ? React__default["default"].createElement(SettingsView, {
|
|
25140
25196
|
onSave: onSave
|
|
25141
|
-
}) : null)) : null
|
|
25197
|
+
}) : null)) : null, ideaNoteVisible && React__default["default"].createElement("div", {
|
|
25198
|
+
className: "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer"
|
|
25199
|
+
}, React__default["default"].createElement("div", {
|
|
25200
|
+
className: "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide",
|
|
25201
|
+
onClick: function onClick() {
|
|
25202
|
+
return setIdeaNoteVisible(false);
|
|
25203
|
+
}
|
|
25204
|
+
}), React__default["default"].createElement("iframe", {
|
|
25205
|
+
allowfullscreen: true,
|
|
25206
|
+
name: "idea-widget-frame",
|
|
25207
|
+
title: "Idea Collection Widget",
|
|
25208
|
+
style: {
|
|
25209
|
+
position: 'absolute',
|
|
25210
|
+
bottom: '0',
|
|
25211
|
+
right: '0',
|
|
25212
|
+
height: '100vh',
|
|
25213
|
+
width: '443px',
|
|
25214
|
+
backgroundColor: 'white'
|
|
25215
|
+
},
|
|
25216
|
+
src: "https://idea-widget.ideanote.io?config=66ff516339"
|
|
25217
|
+
})));
|
|
25142
25218
|
};
|
|
25143
25219
|
AppBar$1.defaultProps = {
|
|
25144
25220
|
config: ['flag', 'role', 'yard'],
|
|
@@ -30280,6 +30356,26 @@ var AppBar = function AppBar(_ref) {
|
|
|
30280
30356
|
}
|
|
30281
30357
|
};
|
|
30282
30358
|
|
|
30359
|
+
var tileData = findAppData(coreAppConfig.tiles || []) || {};
|
|
30360
|
+
var mihelpAppPath = !isCoreRoute ? tileData.mihelpAppPath : null;
|
|
30361
|
+
|
|
30362
|
+
var handleHelpClick = function handleHelpClick() {
|
|
30363
|
+
var country = storage$1.getSessionItem('dashboard', 'selectedCountryA3code');
|
|
30364
|
+
browserCookies.set('mihelpCountry', country.toLowerCase(), {
|
|
30365
|
+
domain: '.copart.com'
|
|
30366
|
+
});
|
|
30367
|
+
var uri = mihelpAppPath ? "".concat(coreAppConfig.mihelpUri, "/applications/").concat(mihelpAppPath) : coreAppConfig.mihelpUri;
|
|
30368
|
+
window.open(uri, "_blank");
|
|
30369
|
+
};
|
|
30370
|
+
|
|
30371
|
+
var isMihelpEnabled;
|
|
30372
|
+
|
|
30373
|
+
if (isCoreRoute) {
|
|
30374
|
+
isMihelpEnabled = coreAppConfig.enableMiHelp;
|
|
30375
|
+
} else {
|
|
30376
|
+
isMihelpEnabled = Boolean(mihelpAppPath);
|
|
30377
|
+
}
|
|
30378
|
+
|
|
30283
30379
|
var feedbackConfig = function feedbackConfig() {
|
|
30284
30380
|
var _storage$coreConfig;
|
|
30285
30381
|
|
|
@@ -30325,6 +30421,8 @@ var AppBar = function AppBar(_ref) {
|
|
|
30325
30421
|
yardNumber: storage$1.activeYardNumber,
|
|
30326
30422
|
onRenderFlag: CountryFlag,
|
|
30327
30423
|
onLogoutItemClicked: handleSettingsItemClick,
|
|
30424
|
+
handleHelpClick: handleHelpClick,
|
|
30425
|
+
isMihelpEnabled: isMihelpEnabled,
|
|
30328
30426
|
sendFeedback: fetcher.sendFeedback,
|
|
30329
30427
|
feedbackConfig: feedbackConfig(),
|
|
30330
30428
|
stack: process.env.STACK,
|
|
@@ -30621,7 +30719,7 @@ var GoHome = function GoHome(props) {
|
|
|
30621
30719
|
}, props.reason));
|
|
30622
30720
|
};
|
|
30623
30721
|
|
|
30624
|
-
|
|
30722
|
+
/******************************************************************************
|
|
30625
30723
|
Copyright (c) Microsoft Corporation.
|
|
30626
30724
|
|
|
30627
30725
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -34224,7 +34322,7 @@ var firebase = firebase$1;
|
|
|
34224
34322
|
registerCoreComponents(firebase);
|
|
34225
34323
|
|
|
34226
34324
|
var name$1 = "firebase";
|
|
34227
|
-
var version$1 = "8.10.
|
|
34325
|
+
var version$1 = "8.10.1";
|
|
34228
34326
|
/**
|
|
34229
34327
|
* @license
|
|
34230
34328
|
* Copyright 2018 Google LLC
|