@copart/ops-tool-kit 1.9.0-alpha.1 → 1.9.0-alpha.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 +409 -95
- 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.9.0-alpha.
|
|
36
|
+
const version$3 = "1.9.0-alpha.2";
|
|
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
|
|
|
@@ -30970,7 +30962,7 @@ var GoHome = function GoHome(props) {
|
|
|
30970
30962
|
}, props.reason));
|
|
30971
30963
|
};
|
|
30972
30964
|
|
|
30973
|
-
var css_248z$1 = ".utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer {\n display: flex;\n flex-direction: column;\n position: absolute;\n background: #3A4454;\n min-width: 100px;\n max-width: 100px;\n height: 100%;\n color: #ffffff;\n transition: max-width 0.5s ease-in-out;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer:hover {\n max-width: 400px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenu {\n flex: 1;\n overflow-y: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenu::-webkit-scrollbar { \n display: none;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem {\n display: flex;\n width: 100%;\n padding: 6px 0px 6px 12px;\n border-radius: 5px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem.utilities_ops-app-frame_NavigationBar_NavigationBar--selected {\n color: #323130;\n background-color: #fff;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton {\n margin-left: auto;\n margin-right: 10px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem.utilities_ops-app-frame_NavigationBar_NavigationBar--expandedMenu {\n background-color: #73A6FF;\n transition: background-color 0.5s ease-in-out;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton i {\n margin-left: auto;\n font-size: 10px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemCount {\n margin-left: auto;\n margin-right: 10px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemIcon {\n margin-right: 14.5px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName {\n max-width: 0;\n overflow: hidden;\n white-space:nowrap;\n margin: 0 5px;\n font-weight: 100;\n transition: max-width 0.5s ease-in-out;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer:hover .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName {\n max-width: 100%;\n margin-right: 10px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1 > .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName {\n margin: 0 5px 0 0;\n font-weight: 600;\n margin-left: 0px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1 > .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemIcon {\n margin-right: 0px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1 > .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem {\n padding-left: 15px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1 > .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName > span {\n display: inline;\n display: initial;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel2 {\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel3 {\n margin-left: 10px;\n padding: 0 2px;\n background-color: #232932;\n border-left: 1px solid #8A8886;\n overflow: hidden;\n max-height: 0px;\n transition: max-height 0.5s ease-in-out;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel3.utilities_ops-app-frame_NavigationBar_NavigationBar--expanded {\n max-height: 500px;\n margin-top: 3px;\n}";
|
|
30965
|
+
var css_248z$1 = ".utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer {\n display: flex;\n flex-direction: column;\n position: absolute;\n background: #3A4454;\n min-width: 100px;\n max-width: 100px;\n height: 100%;\n color: #ffffff;\n transition: max-width 0.5s ease-in-out;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer:hover {\n max-width: 400px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenu {\n flex: 1;\n overflow-y: auto;\n -ms-overflow-style: none;\n scrollbar-width: none;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenu::-webkit-scrollbar { \n display: none;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem {\n display: flex;\n width: 100%;\n padding: 6px 0px 6px 12px;\n border-radius: 5px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem.utilities_ops-app-frame_NavigationBar_NavigationBar--selected {\n color: #323130;\n background-color: #fff;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton {\n margin-left: auto;\n margin-right: 10px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem.utilities_ops-app-frame_NavigationBar_NavigationBar--expandedMenu {\n background-color: #73A6FF;\n transition: background-color 0.5s ease-in-out;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton i {\n margin-left: auto;\n font-size: 10px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemCount {\n margin-left: auto;\n margin-right: 10px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemIcon {\n margin-right: 14.5px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName {\n max-width: 0;\n overflow: hidden;\n white-space:nowrap;\n margin: 0 5px;\n font-weight: 100;\n cursor: pointer;\n transition: max-width 0.5s ease-in-out;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer:hover .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName {\n max-width: 100%;\n margin-right: 10px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1 > .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName {\n margin: 0 5px 0 0;\n font-weight: 600;\n margin-left: 0px;\n cursor: auto;\n cursor: initial;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1 > .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemIcon {\n margin-right: 0px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1 > .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem {\n padding-left: 15px;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1 > .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem .utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName > span {\n display: inline;\n display: initial;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel2 {\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel3 {\n margin-left: 10px;\n padding: 0 2px;\n background-color: #232932;\n border-left: 1px solid #8A8886;\n overflow: hidden;\n max-height: 0px;\n transition: max-height 0.5s ease-in-out;\n}\n\n.utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel3.utilities_ops-app-frame_NavigationBar_NavigationBar--expanded {\n max-height: 500px;\n margin-top: 3px;\n}";
|
|
30974
30966
|
styleInject(css_248z$1);
|
|
30975
30967
|
|
|
30976
30968
|
var _styleModuleImportMap = {
|
|
@@ -30991,18 +30983,25 @@ var _styleModuleImportMap = {
|
|
|
30991
30983
|
}
|
|
30992
30984
|
};
|
|
30993
30985
|
|
|
30994
|
-
var
|
|
30986
|
+
var NavIcon = function NavIcon(_ref) {
|
|
30987
|
+
var icon = _ref.icon;
|
|
30988
|
+
return typeof icon === 'string' ? React__default["default"].createElement(coreComponents.Icon, {
|
|
30989
|
+
name: icon
|
|
30990
|
+
}) : icon;
|
|
30991
|
+
};
|
|
30992
|
+
|
|
30993
|
+
var NavigationMenuLevel1 = function NavigationMenuLevel1(_ref2) {
|
|
30995
30994
|
var _navItem$name;
|
|
30996
30995
|
|
|
30997
|
-
var navItem =
|
|
30998
|
-
isHover =
|
|
30999
|
-
activeSubmenu =
|
|
31000
|
-
setActiveSubmenu =
|
|
31001
|
-
navigateTo =
|
|
31002
|
-
selected =
|
|
31003
|
-
setSelected =
|
|
31004
|
-
defaultRedirect =
|
|
31005
|
-
reloadMenuItems =
|
|
30996
|
+
var navItem = _ref2.navItem,
|
|
30997
|
+
isHover = _ref2.isHover,
|
|
30998
|
+
activeSubmenu = _ref2.activeSubmenu,
|
|
30999
|
+
setActiveSubmenu = _ref2.setActiveSubmenu,
|
|
31000
|
+
navigateTo = _ref2.navigateTo,
|
|
31001
|
+
selected = _ref2.selected,
|
|
31002
|
+
setSelected = _ref2.setSelected,
|
|
31003
|
+
defaultRedirect = _ref2.defaultRedirect,
|
|
31004
|
+
reloadMenuItems = _ref2.reloadMenuItems;
|
|
31006
31005
|
var hasSubMenuItems = navItem.subMenuItems && navItem.subMenuItems.length > 0;
|
|
31007
31006
|
return React__default["default"].createElement("div", {
|
|
31008
31007
|
className: "utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel1"
|
|
@@ -31010,11 +31009,13 @@ var NavigationMenuLevel1 = function NavigationMenuLevel1(_ref) {
|
|
|
31010
31009
|
className: "utilities_ops-app-frame_NavigationBar_NavigationBar--NavItem"
|
|
31011
31010
|
}, React__default["default"].createElement("div", {
|
|
31012
31011
|
className: "utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemIcon"
|
|
31013
|
-
},
|
|
31012
|
+
}, React__default["default"].createElement(NavIcon, {
|
|
31013
|
+
icon: navItem.icon
|
|
31014
|
+
})), React__default["default"].createElement("div", {
|
|
31014
31015
|
className: ((isHover ? 'hovered' : '') ? (isHover ? 'hovered' : '') + " " : "") + "utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName"
|
|
31015
31016
|
}, (_navItem$name = navItem.name) === null || _navItem$name === void 0 ? void 0 : _navItem$name.toUpperCase()), React__default["default"].createElement("div", {
|
|
31016
31017
|
className: "utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemCount"
|
|
31017
|
-
}, navItem.count)), React__default["default"].createElement("div", null, hasSubMenuItems
|
|
31018
|
+
}, navItem.count)), React__default["default"].createElement("div", null, hasSubMenuItems ? navItem.subMenuItems.map(function (subItem) {
|
|
31018
31019
|
return React__default["default"].createElement(NavigationMenuLevel2, {
|
|
31019
31020
|
key: subItem.name,
|
|
31020
31021
|
isHover: isHover,
|
|
@@ -31027,19 +31028,19 @@ var NavigationMenuLevel1 = function NavigationMenuLevel1(_ref) {
|
|
|
31027
31028
|
navigateTo: navigateTo,
|
|
31028
31029
|
reloadMenuItems: reloadMenuItems
|
|
31029
31030
|
});
|
|
31030
|
-
})));
|
|
31031
|
+
}) : null));
|
|
31031
31032
|
};
|
|
31032
31033
|
|
|
31033
|
-
var NavigationMenuLevel2 = function NavigationMenuLevel2(
|
|
31034
|
-
var navItem =
|
|
31035
|
-
isHover =
|
|
31036
|
-
selected =
|
|
31037
|
-
setSelected =
|
|
31038
|
-
defaultRedirect =
|
|
31039
|
-
activeSubmenu =
|
|
31040
|
-
setActiveSubmenu =
|
|
31041
|
-
navigateTo =
|
|
31042
|
-
reloadMenuItems =
|
|
31034
|
+
var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref3) {
|
|
31035
|
+
var navItem = _ref3.navItem,
|
|
31036
|
+
isHover = _ref3.isHover,
|
|
31037
|
+
selected = _ref3.selected,
|
|
31038
|
+
setSelected = _ref3.setSelected,
|
|
31039
|
+
defaultRedirect = _ref3.defaultRedirect,
|
|
31040
|
+
activeSubmenu = _ref3.activeSubmenu,
|
|
31041
|
+
setActiveSubmenu = _ref3.setActiveSubmenu,
|
|
31042
|
+
navigateTo = _ref3.navigateTo,
|
|
31043
|
+
reloadMenuItems = _ref3.reloadMenuItems;
|
|
31043
31044
|
|
|
31044
31045
|
var _useState = React.useState(navItem.count),
|
|
31045
31046
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -31071,7 +31072,9 @@ var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref2) {
|
|
|
31071
31072
|
})
|
|
31072
31073
|
}, React__default["default"].createElement("div", {
|
|
31073
31074
|
className: "utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemIcon"
|
|
31074
|
-
},
|
|
31075
|
+
}, React__default["default"].createElement(NavIcon, {
|
|
31076
|
+
icon: navItem.icon
|
|
31077
|
+
})), React__default["default"].createElement("div", {
|
|
31075
31078
|
className: ((isHover ? 'hovered' : '') ? (isHover ? 'hovered' : '') + " " : "") + "utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName"
|
|
31076
31079
|
}, navItem.name), hasSubMenuItems ? React__default["default"].createElement("div", {
|
|
31077
31080
|
className: "utilities_ops-app-frame_NavigationBar_NavigationBar--expandButton"
|
|
@@ -31083,7 +31086,7 @@ var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref2) {
|
|
|
31083
31086
|
className: _getClassName("NavMenuLevel3 ".concat(activeSubmenu == navItem.route ? "expanded" : ""), _styleModuleImportMap, {
|
|
31084
31087
|
"handleMissingStyleName": "warn"
|
|
31085
31088
|
})
|
|
31086
|
-
}, hasSubMenuItems
|
|
31089
|
+
}, hasSubMenuItems ? navItem.subMenuItems.map(function (subItem) {
|
|
31087
31090
|
return React__default["default"].createElement(NavigationMenuLevel3, {
|
|
31088
31091
|
key: subItem.name,
|
|
31089
31092
|
isHover: isHover,
|
|
@@ -31093,16 +31096,16 @@ var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref2) {
|
|
|
31093
31096
|
defaultRedirect: defaultRedirect,
|
|
31094
31097
|
navigateTo: navigateTo
|
|
31095
31098
|
});
|
|
31096
|
-
})));
|
|
31099
|
+
}) : null));
|
|
31097
31100
|
};
|
|
31098
31101
|
|
|
31099
|
-
var NavigationMenuLevel3 = function NavigationMenuLevel3(
|
|
31100
|
-
var navItem =
|
|
31101
|
-
isHover =
|
|
31102
|
-
selected =
|
|
31103
|
-
setSelected =
|
|
31104
|
-
defaultRedirect =
|
|
31105
|
-
navigateTo =
|
|
31102
|
+
var NavigationMenuLevel3 = function NavigationMenuLevel3(_ref4) {
|
|
31103
|
+
var navItem = _ref4.navItem,
|
|
31104
|
+
isHover = _ref4.isHover,
|
|
31105
|
+
selected = _ref4.selected,
|
|
31106
|
+
setSelected = _ref4.setSelected,
|
|
31107
|
+
defaultRedirect = _ref4.defaultRedirect,
|
|
31108
|
+
navigateTo = _ref4.navigateTo;
|
|
31106
31109
|
|
|
31107
31110
|
var _useState3 = React.useState(navItem.count),
|
|
31108
31111
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
@@ -31129,7 +31132,9 @@ var NavigationMenuLevel3 = function NavigationMenuLevel3(_ref3) {
|
|
|
31129
31132
|
})
|
|
31130
31133
|
}, React__default["default"].createElement("div", {
|
|
31131
31134
|
className: "utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemIcon"
|
|
31132
|
-
},
|
|
31135
|
+
}, React__default["default"].createElement(NavIcon, {
|
|
31136
|
+
icon: navItem.icon
|
|
31137
|
+
})), React__default["default"].createElement("div", {
|
|
31133
31138
|
className: ((isHover ? 'hovered' : '') ? (isHover ? 'hovered' : '') + " " : "") + "utilities_ops-app-frame_NavigationBar_NavigationBar--NavItemName"
|
|
31134
31139
|
}, navItem.name), React__default["default"].createElement("div", {
|
|
31135
31140
|
key: isHover,
|
|
@@ -31137,12 +31142,12 @@ var NavigationMenuLevel3 = function NavigationMenuLevel3(_ref3) {
|
|
|
31137
31142
|
}, countText));
|
|
31138
31143
|
};
|
|
31139
31144
|
|
|
31140
|
-
var NavigationMenu = function NavigationMenu(
|
|
31141
|
-
var navItems =
|
|
31142
|
-
isHover =
|
|
31143
|
-
navigateTo =
|
|
31144
|
-
configDepth =
|
|
31145
|
-
reloadMenuItems =
|
|
31145
|
+
var NavigationMenu = function NavigationMenu(_ref5) {
|
|
31146
|
+
var navItems = _ref5.navItems,
|
|
31147
|
+
isHover = _ref5.isHover,
|
|
31148
|
+
navigateTo = _ref5.navigateTo,
|
|
31149
|
+
configDepth = _ref5.configDepth,
|
|
31150
|
+
reloadMenuItems = _ref5.reloadMenuItems;
|
|
31146
31151
|
|
|
31147
31152
|
var _useState5 = React.useState(null),
|
|
31148
31153
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
@@ -31203,10 +31208,9 @@ var NavigationMenu = function NavigationMenu(_ref4) {
|
|
|
31203
31208
|
}));
|
|
31204
31209
|
};
|
|
31205
31210
|
|
|
31206
|
-
var NavigationBar = function NavigationBar(
|
|
31207
|
-
var getNavItems =
|
|
31208
|
-
|
|
31209
|
-
navigateTo = _ref5.navigateTo;
|
|
31211
|
+
var NavigationBar = function NavigationBar(_ref6) {
|
|
31212
|
+
var getNavItems = _ref6.getNavItems,
|
|
31213
|
+
navigateTo = _ref6.navigateTo;
|
|
31210
31214
|
|
|
31211
31215
|
var _useState9 = React.useState(null),
|
|
31212
31216
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
@@ -31228,12 +31232,30 @@ var NavigationBar = function NavigationBar(_ref5) {
|
|
|
31228
31232
|
isConfigValid = _useState16[0],
|
|
31229
31233
|
setConfigValid = _useState16[1];
|
|
31230
31234
|
|
|
31235
|
+
React.useEffect(function () {
|
|
31236
|
+
var navItems = getNavItems();
|
|
31237
|
+
|
|
31238
|
+
if (Array.isArray(navItems)) {
|
|
31239
|
+
var isValid = validateConfig(navItems);
|
|
31240
|
+
|
|
31241
|
+
if (isValid) {
|
|
31242
|
+
setConfigDepth(getDepth(navItems));
|
|
31243
|
+
setNavItemsModified(updateRoutes(navItems, ""));
|
|
31244
|
+
setConfigValid(true);
|
|
31245
|
+
} else {
|
|
31246
|
+
setConfigValid(false);
|
|
31247
|
+
}
|
|
31248
|
+
} else {
|
|
31249
|
+
reloadMenuItems();
|
|
31250
|
+
}
|
|
31251
|
+
}, []);
|
|
31252
|
+
|
|
31231
31253
|
var updateRoutes = function updateRoutes(navItems, parentRoute) {
|
|
31232
31254
|
var updatedItems = navItems.map(function (item) {
|
|
31233
31255
|
var updatedItem = _objectSpread2({}, item);
|
|
31234
31256
|
|
|
31235
31257
|
if (updatedItem.route) {
|
|
31236
|
-
updatedItem.route = parentRoute + updatedItem.route;
|
|
31258
|
+
updatedItem.route = parentRoute + '/' + updatedItem.route;
|
|
31237
31259
|
}
|
|
31238
31260
|
|
|
31239
31261
|
if (updatedItem.subMenuItems) {
|
|
@@ -31247,18 +31269,11 @@ var NavigationBar = function NavigationBar(_ref5) {
|
|
|
31247
31269
|
|
|
31248
31270
|
var getDepth = function getDepth(navItems) {
|
|
31249
31271
|
var depth = 0;
|
|
31250
|
-
|
|
31251
|
-
|
|
31252
|
-
|
|
31253
|
-
|
|
31254
|
-
|
|
31255
|
-
if (tmpDepth > depth) {
|
|
31256
|
-
depth = tmpDepth;
|
|
31257
|
-
}
|
|
31258
|
-
});
|
|
31259
|
-
}
|
|
31260
|
-
|
|
31261
|
-
return 1 + depth;
|
|
31272
|
+
navItems.forEach(function (navItem) {
|
|
31273
|
+
var subMenuDepth = navItem.subMenuItems ? getDepth(navItem.subMenuItems) : 0;
|
|
31274
|
+
depth = Math.max(depth, 1 + subMenuDepth);
|
|
31275
|
+
});
|
|
31276
|
+
return depth;
|
|
31262
31277
|
};
|
|
31263
31278
|
|
|
31264
31279
|
var validateConfig = function validateConfig(navItems) {
|
|
@@ -31289,7 +31304,7 @@ var NavigationBar = function NavigationBar(_ref5) {
|
|
|
31289
31304
|
var isVaild = validateConfig(result);
|
|
31290
31305
|
|
|
31291
31306
|
if (isVaild) {
|
|
31292
|
-
setConfigDepth(getDepth
|
|
31307
|
+
setConfigDepth(getDepth(result));
|
|
31293
31308
|
setNavItemsModified(updateRoutes(result, ""));
|
|
31294
31309
|
setConfigValid(true);
|
|
31295
31310
|
} else {
|
|
@@ -31299,24 +31314,6 @@ var NavigationBar = function NavigationBar(_ref5) {
|
|
|
31299
31314
|
}
|
|
31300
31315
|
};
|
|
31301
31316
|
|
|
31302
|
-
React.useEffect(function () {
|
|
31303
|
-
var navItems = getNavItems();
|
|
31304
|
-
|
|
31305
|
-
if (Array.isArray(navItems)) {
|
|
31306
|
-
var isValid = validateConfig(navItems);
|
|
31307
|
-
|
|
31308
|
-
if (isValid) {
|
|
31309
|
-
setConfigDepth(getDepth.apply(void 0, _toConsumableArray(navItems)));
|
|
31310
|
-
setNavItemsModified(updateRoutes(navItems, ""));
|
|
31311
|
-
setConfigValid(true);
|
|
31312
|
-
} else {
|
|
31313
|
-
setConfigValid(false);
|
|
31314
|
-
}
|
|
31315
|
-
} else {
|
|
31316
|
-
reloadMenuItems();
|
|
31317
|
-
}
|
|
31318
|
-
}, []);
|
|
31319
|
-
|
|
31320
31317
|
var onMouseOver = function onMouseOver() {
|
|
31321
31318
|
setHover(true);
|
|
31322
31319
|
};
|
|
@@ -31325,7 +31322,7 @@ var NavigationBar = function NavigationBar(_ref5) {
|
|
|
31325
31322
|
setHover(false);
|
|
31326
31323
|
};
|
|
31327
31324
|
|
|
31328
|
-
return
|
|
31325
|
+
return React__default["default"].createElement("div", {
|
|
31329
31326
|
className: "utilities_ops-app-frame_NavigationBar_NavigationBar--NavBarContainer",
|
|
31330
31327
|
onMouseOver: onMouseOver,
|
|
31331
31328
|
onMouseLeave: onMouseLeave
|
|
@@ -31335,7 +31332,7 @@ var NavigationBar = function NavigationBar(_ref5) {
|
|
|
31335
31332
|
navigateTo: navigateTo,
|
|
31336
31333
|
configDepth: configDepth,
|
|
31337
31334
|
reloadMenuItems: reloadMenuItems
|
|
31338
|
-
}) : null, !isConfigValid ? React__default["default"].createElement("div", null, "Please check your navigation config") : null)
|
|
31335
|
+
}) : null, !isConfigValid ? React__default["default"].createElement("div", null, "Please check your navigation config") : null);
|
|
31339
31336
|
};
|
|
31340
31337
|
|
|
31341
31338
|
/******************************************************************************
|
|
@@ -45625,6 +45622,325 @@ function withFirebaseConfigCheck (Comp) {
|
|
|
45625
45622
|
|
|
45626
45623
|
var Notifications = withFirebaseConfigCheck(Notifications$2);
|
|
45627
45624
|
|
|
45625
|
+
var _ref, _ref2;
|
|
45626
|
+
var navItems = [{
|
|
45627
|
+
name: "Dispatch",
|
|
45628
|
+
icon: null,
|
|
45629
|
+
count: null,
|
|
45630
|
+
route: 'dispatch',
|
|
45631
|
+
subMenuItems: [{
|
|
45632
|
+
name: "Lots",
|
|
45633
|
+
route: "lots",
|
|
45634
|
+
icon: "Car",
|
|
45635
|
+
count: null,
|
|
45636
|
+
subMenuItems: [{
|
|
45637
|
+
name: "All",
|
|
45638
|
+
route: "all",
|
|
45639
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45640
|
+
name: "Car"
|
|
45641
|
+
}),
|
|
45642
|
+
count: 13174
|
|
45643
|
+
}, {
|
|
45644
|
+
name: "Pending Trip Build",
|
|
45645
|
+
route: 'pendingtripsbuild',
|
|
45646
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45647
|
+
name: "Car"
|
|
45648
|
+
}),
|
|
45649
|
+
count: 10958
|
|
45650
|
+
}, {
|
|
45651
|
+
name: "Pending Processing",
|
|
45652
|
+
route: 'dispatch',
|
|
45653
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45654
|
+
name: "Car"
|
|
45655
|
+
}),
|
|
45656
|
+
count: 2089
|
|
45657
|
+
}, {
|
|
45658
|
+
name: "Pending Paperwork Verification",
|
|
45659
|
+
route: 'pendingprocessing',
|
|
45660
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45661
|
+
name: "Car"
|
|
45662
|
+
}),
|
|
45663
|
+
count: 268
|
|
45664
|
+
}, {
|
|
45665
|
+
name: "Partial Paperwork Verified",
|
|
45666
|
+
route: 'partialpaperwork',
|
|
45667
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45668
|
+
name: "Car"
|
|
45669
|
+
}),
|
|
45670
|
+
count: 19
|
|
45671
|
+
}, {
|
|
45672
|
+
name: "Awaiting Dispatch",
|
|
45673
|
+
route: 'awaitingdispatch',
|
|
45674
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45675
|
+
name: "Car"
|
|
45676
|
+
}),
|
|
45677
|
+
count: 18
|
|
45678
|
+
}, {
|
|
45679
|
+
name: "Overdue and Due Today",
|
|
45680
|
+
route: 'overdue',
|
|
45681
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45682
|
+
name: "Car"
|
|
45683
|
+
}),
|
|
45684
|
+
count: 10462
|
|
45685
|
+
}, {
|
|
45686
|
+
name: "Issue Queue",
|
|
45687
|
+
route: 'issuequeue',
|
|
45688
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45689
|
+
name: "Car"
|
|
45690
|
+
}),
|
|
45691
|
+
count: 21
|
|
45692
|
+
}]
|
|
45693
|
+
}, {
|
|
45694
|
+
name: "Trips View",
|
|
45695
|
+
route: 'tripsview',
|
|
45696
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45697
|
+
name: "AddEvent"
|
|
45698
|
+
})
|
|
45699
|
+
}, (_ref = {
|
|
45700
|
+
name: "Tow Providers",
|
|
45701
|
+
route: 'towproviders',
|
|
45702
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45703
|
+
name: "DeliveryTruck"
|
|
45704
|
+
})
|
|
45705
|
+
}, _defineProperty(_ref, "route", "/towproviders"), _defineProperty(_ref, "subMenuItems", [{
|
|
45706
|
+
name: "All",
|
|
45707
|
+
route: 'all',
|
|
45708
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45709
|
+
name: "Car"
|
|
45710
|
+
}),
|
|
45711
|
+
count: 13174
|
|
45712
|
+
}]), _ref), {
|
|
45713
|
+
name: "Drivers",
|
|
45714
|
+
route: 'drivers',
|
|
45715
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45716
|
+
name: "AlignHorizontalLeft"
|
|
45717
|
+
}),
|
|
45718
|
+
subMenuItems: [{
|
|
45719
|
+
name: "All",
|
|
45720
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45721
|
+
name: "Car"
|
|
45722
|
+
}),
|
|
45723
|
+
route: 'all',
|
|
45724
|
+
count: 13174
|
|
45725
|
+
}]
|
|
45726
|
+
}, {
|
|
45727
|
+
name: "Work Requests",
|
|
45728
|
+
route: 'workrequests',
|
|
45729
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45730
|
+
name: "AnchorLock"
|
|
45731
|
+
}),
|
|
45732
|
+
subMenuItems: [{
|
|
45733
|
+
name: "All",
|
|
45734
|
+
route: 'all',
|
|
45735
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45736
|
+
name: "Car"
|
|
45737
|
+
}),
|
|
45738
|
+
count: 13174
|
|
45739
|
+
}]
|
|
45740
|
+
}, {
|
|
45741
|
+
name: "Advanced Charge Discrepancy",
|
|
45742
|
+
route: 'advanced',
|
|
45743
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45744
|
+
name: "CalendarDay"
|
|
45745
|
+
}),
|
|
45746
|
+
subMenuItems: [{
|
|
45747
|
+
name: "All",
|
|
45748
|
+
route: 'all',
|
|
45749
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45750
|
+
name: "Car"
|
|
45751
|
+
}),
|
|
45752
|
+
count: 13174
|
|
45753
|
+
}]
|
|
45754
|
+
}, {
|
|
45755
|
+
name: "One Time Rate Request Change",
|
|
45756
|
+
route: 'onetime',
|
|
45757
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45758
|
+
name: "AddEvent"
|
|
45759
|
+
}),
|
|
45760
|
+
subMenuItems: [{
|
|
45761
|
+
name: "All",
|
|
45762
|
+
route: 'all',
|
|
45763
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45764
|
+
name: "Car"
|
|
45765
|
+
}),
|
|
45766
|
+
count: 13174
|
|
45767
|
+
}]
|
|
45768
|
+
}]
|
|
45769
|
+
}, {
|
|
45770
|
+
name: "Yard To Yard",
|
|
45771
|
+
route: 'y2y',
|
|
45772
|
+
icon: null,
|
|
45773
|
+
subMenuItems: [{
|
|
45774
|
+
name: "Y2Y Trips",
|
|
45775
|
+
route: 'trips',
|
|
45776
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45777
|
+
name: "Chart"
|
|
45778
|
+
}),
|
|
45779
|
+
subMenuItems: [{
|
|
45780
|
+
name: "All",
|
|
45781
|
+
route: 'all',
|
|
45782
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45783
|
+
name: "Car"
|
|
45784
|
+
}),
|
|
45785
|
+
count: 13174
|
|
45786
|
+
}]
|
|
45787
|
+
}, {
|
|
45788
|
+
name: "Y2Y Requests",
|
|
45789
|
+
route: 'requests',
|
|
45790
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45791
|
+
name: "BucketColor"
|
|
45792
|
+
}),
|
|
45793
|
+
subMenuItems: [{
|
|
45794
|
+
name: "All",
|
|
45795
|
+
route: 'all',
|
|
45796
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45797
|
+
name: "Car"
|
|
45798
|
+
}),
|
|
45799
|
+
count: 13174
|
|
45800
|
+
}]
|
|
45801
|
+
}]
|
|
45802
|
+
}];
|
|
45803
|
+
[{
|
|
45804
|
+
name: "Lots",
|
|
45805
|
+
route: "/lots",
|
|
45806
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45807
|
+
name: "Car"
|
|
45808
|
+
}),
|
|
45809
|
+
count: null,
|
|
45810
|
+
subMenuItems: [{
|
|
45811
|
+
name: "All",
|
|
45812
|
+
route: "/all",
|
|
45813
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45814
|
+
name: "Car"
|
|
45815
|
+
}),
|
|
45816
|
+
count: 13174
|
|
45817
|
+
}, {
|
|
45818
|
+
name: "Pending Trip Build",
|
|
45819
|
+
route: 'pendingtripsbuild',
|
|
45820
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45821
|
+
name: "Car"
|
|
45822
|
+
}),
|
|
45823
|
+
count: 10958
|
|
45824
|
+
}, {
|
|
45825
|
+
name: "Pending Processing",
|
|
45826
|
+
route: 'dispatch',
|
|
45827
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45828
|
+
name: "Car"
|
|
45829
|
+
}),
|
|
45830
|
+
count: 2089
|
|
45831
|
+
}, {
|
|
45832
|
+
name: "Pending Paperwork Verification",
|
|
45833
|
+
route: 'pendingprocessing',
|
|
45834
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45835
|
+
name: "Car"
|
|
45836
|
+
}),
|
|
45837
|
+
count: 268
|
|
45838
|
+
}, {
|
|
45839
|
+
name: "Partial Paperwork Verified",
|
|
45840
|
+
route: 'partialpaperwork',
|
|
45841
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45842
|
+
name: "Car"
|
|
45843
|
+
}),
|
|
45844
|
+
count: 19
|
|
45845
|
+
}, {
|
|
45846
|
+
name: "Awaiting Dispatch",
|
|
45847
|
+
route: 'awaitingdispatch',
|
|
45848
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45849
|
+
name: "Car"
|
|
45850
|
+
}),
|
|
45851
|
+
count: 18
|
|
45852
|
+
}, {
|
|
45853
|
+
name: "Overdue and Due Today",
|
|
45854
|
+
route: 'overdue',
|
|
45855
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45856
|
+
name: "Car"
|
|
45857
|
+
}),
|
|
45858
|
+
count: 10462
|
|
45859
|
+
}, {
|
|
45860
|
+
name: "Issue Queue",
|
|
45861
|
+
route: 'issuequeue',
|
|
45862
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45863
|
+
name: "Car"
|
|
45864
|
+
}),
|
|
45865
|
+
count: 21
|
|
45866
|
+
}]
|
|
45867
|
+
}, {
|
|
45868
|
+
name: "Trips View",
|
|
45869
|
+
route: 'tripsview',
|
|
45870
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45871
|
+
name: "AddEvent"
|
|
45872
|
+
})
|
|
45873
|
+
}, (_ref2 = {
|
|
45874
|
+
name: "Tow Providers",
|
|
45875
|
+
route: 'towproviders',
|
|
45876
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45877
|
+
name: "DeliveryTruck"
|
|
45878
|
+
})
|
|
45879
|
+
}, _defineProperty(_ref2, "route", "/towproviders"), _defineProperty(_ref2, "subMenuItems", [{
|
|
45880
|
+
name: "All",
|
|
45881
|
+
route: 'all',
|
|
45882
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45883
|
+
name: "Car"
|
|
45884
|
+
}),
|
|
45885
|
+
count: 13174
|
|
45886
|
+
}]), _ref2), {
|
|
45887
|
+
name: "Drivers",
|
|
45888
|
+
route: 'drivers',
|
|
45889
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45890
|
+
name: "AlignHorizontalLeft"
|
|
45891
|
+
}),
|
|
45892
|
+
subMenuItems: [{
|
|
45893
|
+
name: "All",
|
|
45894
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45895
|
+
name: "Car"
|
|
45896
|
+
}),
|
|
45897
|
+
route: 'all',
|
|
45898
|
+
count: 13174
|
|
45899
|
+
}]
|
|
45900
|
+
}, {
|
|
45901
|
+
name: "Work Requests",
|
|
45902
|
+
route: 'workrequests',
|
|
45903
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45904
|
+
name: "AnchorLock"
|
|
45905
|
+
}),
|
|
45906
|
+
subMenuItems: [{
|
|
45907
|
+
name: "All",
|
|
45908
|
+
route: 'all',
|
|
45909
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45910
|
+
name: "Car"
|
|
45911
|
+
}),
|
|
45912
|
+
count: 13174
|
|
45913
|
+
}]
|
|
45914
|
+
}, {
|
|
45915
|
+
name: "Advanced Charge Discrepancy",
|
|
45916
|
+
route: 'advanced',
|
|
45917
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45918
|
+
name: "CalendarDay"
|
|
45919
|
+
}),
|
|
45920
|
+
subMenuItems: [{
|
|
45921
|
+
name: "All",
|
|
45922
|
+
route: 'all',
|
|
45923
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45924
|
+
name: "Car"
|
|
45925
|
+
}),
|
|
45926
|
+
count: 13174
|
|
45927
|
+
}]
|
|
45928
|
+
}, {
|
|
45929
|
+
name: "One Time Rate Request Change",
|
|
45930
|
+
route: 'onetime',
|
|
45931
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45932
|
+
name: "AddEvent"
|
|
45933
|
+
}),
|
|
45934
|
+
subMenuItems: [{
|
|
45935
|
+
name: "All",
|
|
45936
|
+
route: 'all',
|
|
45937
|
+
icon: React__default["default"].createElement(coreComponents.Icon, {
|
|
45938
|
+
name: "Car"
|
|
45939
|
+
}),
|
|
45940
|
+
count: 13174
|
|
45941
|
+
}]
|
|
45942
|
+
}];
|
|
45943
|
+
|
|
45628
45944
|
var css_248z = ".utilities_ops-app-frame_AppFrame_AppFrame--AppFrame {\n background: var(--paleGray);\n background: var(--paleGray);\n height: 100vh;\n max-height: 100vh;\n display: flex;\n flex-direction: column;\n flex-basis: 0;\n}\n\n.utilities_ops-app-frame_AppFrame_AppFrame--header {\n flex: 0 1 auto;\n display: flex;\n flex-direction: column;\n}\n\n/* Wrapper that contains the app being developed. */\n\n.utilities_ops-app-frame_AppFrame_AppFrame--AppContainer {\n flex: 1 1 auto;\n}\n";
|
|
45629
45945
|
styleInject(css_248z);
|
|
45630
45946
|
|
|
@@ -45692,22 +46008,20 @@ var AppFrame = function AppFrame(props) {
|
|
|
45692
46008
|
pathname: window.location.pathname
|
|
45693
46009
|
}), React__default["default"].createElement("main", {
|
|
45694
46010
|
className: "utilities_ops-app-frame_AppFrame_AppFrame--AppContainer"
|
|
45695
|
-
},
|
|
46011
|
+
}, props.showNavigation && storage.isAuthenticated ? React__default["default"].createElement(NavigationBar, {
|
|
45696
46012
|
navigateTo: props.navigateTo,
|
|
45697
|
-
showNavigation: props.showNavigation,
|
|
45698
46013
|
getNavItems: props.getNavItems
|
|
45699
46014
|
}) : null, React__default["default"].createElement("div", {
|
|
45700
46015
|
style: {
|
|
45701
|
-
marginLeft: props.
|
|
46016
|
+
marginLeft: props.showNavigation ? '100px' : '0px'
|
|
45702
46017
|
}
|
|
45703
46018
|
}, props.children)))))));
|
|
45704
46019
|
};
|
|
45705
46020
|
AppFrame.defaultProps = {
|
|
45706
|
-
hideNavBar: true,
|
|
45707
46021
|
handleScrolling: true,
|
|
45708
46022
|
showNavigation: true,
|
|
45709
46023
|
getNavItems: function getNavItems() {
|
|
45710
|
-
return
|
|
46024
|
+
return navItems;
|
|
45711
46025
|
}
|
|
45712
46026
|
};
|
|
45713
46027
|
|