@copart/ops-tool-kit 1.6.0-alpha.1 → 1.6.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.
@@ -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.0-alpha.1";
36
+ const version$3 = "1.6.1";
37
37
  const main = "dist/ops-tool-kit.js";
38
38
  const style = "dist/ops-tool-kit.css";
39
39
  const files = [
@@ -2584,11 +2584,13 @@ function set$1(target, path, value, options) {
2584
2584
 
2585
2585
  let opts = options || {};
2586
2586
  const isArray = Array.isArray(path);
2587
+
2587
2588
  if (!isArray && typeof path !== 'string') {
2588
2589
  return target;
2589
2590
  }
2590
2591
 
2591
2592
  let merge = opts.merge;
2593
+
2592
2594
  if (merge && typeof merge !== 'function') {
2593
2595
  merge = Object.assign;
2594
2596
  }
@@ -2631,8 +2633,7 @@ function result(target, path, value, merge) {
2631
2633
  function split(path, options) {
2632
2634
  const id = createKey(path, options);
2633
2635
  if (set$1.memo[id]) return set$1.memo[id];
2634
-
2635
- const char = (options && options.separator) ? options.separator : '.';
2636
+ const char = options && options.separator ? options.separator : '.';
2636
2637
  let keys = [];
2637
2638
  let res = [];
2638
2639
 
@@ -2644,25 +2645,32 @@ function split(path, options) {
2644
2645
 
2645
2646
  for (let i = 0; i < keys.length; i++) {
2646
2647
  let prop = keys[i];
2648
+
2647
2649
  while (prop && prop.slice(-1) === '\\' && keys[i + 1]) {
2648
2650
  prop = prop.slice(0, -1) + char + keys[++i];
2649
2651
  }
2652
+
2650
2653
  res.push(prop);
2651
2654
  }
2655
+
2652
2656
  set$1.memo[id] = res;
2653
2657
  return res;
2654
2658
  }
2655
2659
 
2656
2660
  function createKey(pattern, options) {
2657
2661
  let id = pattern;
2662
+
2658
2663
  if (typeof options === 'undefined') {
2659
2664
  return id + '';
2660
2665
  }
2666
+
2661
2667
  const keys = Object.keys(options);
2668
+
2662
2669
  for (let i = 0; i < keys.length; i++) {
2663
2670
  const key = keys[i];
2664
2671
  id += ';' + key + '=' + String(options[key]);
2665
2672
  }
2673
+
2666
2674
  return id;
2667
2675
  }
2668
2676
 
@@ -6333,6 +6341,7 @@ function () {
6333
6341
  return refreshToken();
6334
6342
 
6335
6343
  case 9:
6344
+ _context.sent;
6336
6345
  _context.next = 12;
6337
6346
  return fetcher.request(error.response.config);
6338
6347
 
@@ -6657,8 +6666,12 @@ exports.all = function () {
6657
6666
  };
6658
6667
  });
6659
6668
 
6669
+ var stack$1 = process.env.STACK;
6670
+
6660
6671
  var getDefaultYard = function getDefaultYard(country) {
6661
- switch (country) {
6672
+ var userCountryCode = country || (stack$1 === c ? 'US' : 'GB');
6673
+
6674
+ switch (userCountryCode) {
6662
6675
  case 'IN':
6663
6676
  return {
6664
6677
  name: "CITC",
@@ -6675,7 +6688,23 @@ var getDefaultYard = function getDefaultYard(country) {
6675
6688
  }
6676
6689
  };
6677
6690
 
6691
+ case 'US':
6692
+ return {
6693
+ name: "CORPORATE",
6694
+ number: 700,
6695
+ address: {
6696
+ city: "DALLAS",
6697
+ country: "USA",
6698
+ line1: "14185 DALLAS PARKWAY #300",
6699
+ state: "TX",
6700
+ zip: {
6701
+ zip1: "75254"
6702
+ }
6703
+ }
6704
+ };
6705
+
6678
6706
  case 'UK':
6707
+ case 'GB':
6679
6708
  return {
6680
6709
  name: "COPART UK",
6681
6710
  number: 400,
@@ -22115,7 +22144,7 @@ FeedbackDialog.defaultProps = {
22115
22144
  }
22116
22145
  };
22117
22146
 
22118
- var css_248z$b = ".utilities_ops-app-frame_AppBarComponent_AppBar--root {\n background-color: var(--blue);\n background-color: var(--blue);\n height: 64px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n white-space: nowrap;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--leftItems {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogo {\n display: flex;\n align-items: center;\n flex-direction: column;\n margin-left: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogoNew {\n display: flex;\n flex-direction: column;\n margin-left: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--moduleName {\n color: white;\n font-size: 11px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n font-size: 13px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col {\n display: flex;\n color: white;\n font-size: 13px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col svg {\n color: white;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\n width: 6rem;\n margin-top: 0rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--text {\n margin-top: 0.6rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--iconText {\n margin-top: 0.4rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchBar,\n.utilities_ops-app-frame_AppBarComponent_AppBar--placeholderDiv {\n margin-top: -0.2rem;\n margin-left: 2rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--appBarLeft > img.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\n display: inline;\n display: initial;\n}\n\n@font-face {\n font-family: 'Open Sans';\n font-style: italic;\n font-weight: 600;\n src: url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhmIqOjjg.woff2)\n format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--appTitle {\n color: #fff;\n font-family: 'Open Sans', sans-serif;\n font-weight: 600;\n font-style: italic;\n font-size: 14px;\n position: relative;\n left: 16px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--item {\n display: flex;\n color: white;\n font-size: 13px;\n cursor: pointer;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber {\n margin-left: 10px;\n margin-right: 7px;\n cursor: pointer;\n display: flex;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber > div {\n margin-left: 7px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault {\n color: white;\n cursor: default;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable,\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\n background-color: white;\n border-radius: 20px;\n margin: 5px;\n padding: 0px 10px;\n height: 25px;\n font-weight: bold;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--light {\n border: 1px solid #1d5ab9;\n justify-content: flex-start;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightDefault {\n color: black;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline,\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\n background-color: white;\n border-radius: 20px;\n display: flex;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\n color: green;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable i {\n color: green;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline {\n color: red;\n margin: 5px 0px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline svg {\n margin-right: 5px;\n margin-left: 5px;\n width: 24px;\n height: 24px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--SpinnerWrapper {\n margin-left: 5px;\n display: inline-flex;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i {\n font-size: 16px;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i {\n line-height: unset;\n font-size: 16px;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable {\n color: green;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\n margin-right: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\n color: red;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--userMenu {\n margin-left: 10px !important;\n margin-right: 10px !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\n margin-left: 10px !important;\n margin-right: 10px !important;\n display: flex;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\n margin-left: 7px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--feedback {\n margin: 0 !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems {\n width: 100%;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button {\n cursor: pointer;\n position: relative;\n top: 2px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button i {\n color: #fff;\n}\n\n@media only screen and (max-width: 1024px) {\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\n margin-right: 2px;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber {\n margin-left: 5px;\n margin-right: 2px;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber > div {\n margin-left: 2px;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--userMenu {\n margin-left: 3px !important;\n margin-right: 3px !important;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\n margin-left: 3px !important;\n margin-right: 3px !important;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\n margin-left: 2px;\n }\n}\n";
22147
+ var css_248z$b = ".utilities_ops-app-frame_AppBarComponent_AppBar--root {\n background-color: var(--blue);\n background-color: var(--blue);\n height: 64px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n white-space: nowrap;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--leftItems {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogo {\n display: flex;\n align-items: center;\n flex-direction: column;\n margin-left: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogoNew {\n display: flex;\n flex-direction: column;\n margin-left: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--moduleName {\n color: white;\n font-size: 11px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n font-size: 13px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col {\n display: flex;\n color: white;\n font-size: 13px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col svg {\n color: white;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\n width: 6rem;\n margin-top: 0rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--text {\n margin-top: 0.6rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--iconText {\n margin-top: 0.4rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchBar,\n.utilities_ops-app-frame_AppBarComponent_AppBar--placeholderDiv {\n margin-top: -0.2rem;\n margin-left: 2rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--appBarLeft > img.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\n display: inline;\n display: initial;\n}\n\n@font-face {\n font-family: 'Open Sans';\n font-style: italic;\n font-weight: 600;\n src: url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhmIqOjjg.woff2)\n format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--appTitle {\n color: #fff;\n font-family: 'Open Sans', sans-serif;\n font-weight: 600;\n font-style: italic;\n font-size: 14px;\n position: relative;\n left: 16px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--item {\n display: flex;\n color: white;\n font-size: 13px;\n cursor: pointer;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber {\n margin-left: 10px;\n margin-right: 7px;\n cursor: pointer;\n display: flex;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber > div {\n margin-left: 7px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault {\n color: white;\n cursor: default;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable,\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\n background-color: white;\n border-radius: 20px;\n margin: 5px;\n padding: 0px 10px;\n height: 25px;\n font-weight: bold;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--light {\n border: 1px solid #1d5ab9;\n justify-content: flex-start;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightDefault {\n color: black;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline,\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\n background-color: white;\n border-radius: 20px;\n display: flex;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\n color: green;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable i {\n color: green;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline {\n color: red;\n margin: 5px 0px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline svg {\n margin-right: 5px;\n margin-left: 5px;\n width: 24px;\n height: 24px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--SpinnerWrapper {\n margin-left: 5px;\n display: inline-flex;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i {\n font-size: 16px;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i {\n line-height: unset;\n font-size: 16px;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable {\n color: green;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\n margin-right: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\n color: red;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--userMenu {\n margin-left: 10px !important;\n margin-right: 10px !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\n margin-left: 10px !important;\n margin-right: 10px !important;\n display: flex;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\n margin-left: 7px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--feedback {\n margin: 0 !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems {\n width: 100%;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button {\n cursor: pointer;\n position: relative;\n top: 2px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button i {\n color: #fff;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer {\n position: absolute;\n display: flex;\n height: 100vh;\n width: 100vw;\n bottom: 0;\n z-index: 10000;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide {\n background-color: rgba(0,0,0,.5);\n width: calc(100vw - 443px);\n}\n\n@media only screen and (max-width: 1024px) {\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\n margin-right: 2px;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber {\n margin-left: 5px;\n margin-right: 2px;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber > div {\n margin-left: 2px;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--userMenu {\n margin-left: 3px !important;\n margin-right: 3px !important;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\n margin-left: 3px !important;\n margin-right: 3px !important;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\n margin-left: 2px;\n }\n}\n";
22119
22148
  styleInject(css_248z$b);
22120
22149
 
22121
22150
  var LogOutMenu = function LogOutMenu(_ref) {
@@ -22224,7 +22253,9 @@ var _styleModuleImportMap$5 = {
22224
22253
  "roleAndFlag": "utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag",
22225
22254
  "feedback": "utilities_ops-app-frame_AppBarComponent_AppBar--feedback",
22226
22255
  "overflowItems": "utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems",
22227
- "mihelp_button": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button"
22256
+ "mihelp_button": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button",
22257
+ "ideaWidgetContainer": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer",
22258
+ "ideaWidgetHide": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide"
22228
22259
  }
22229
22260
  };
22230
22261
 
@@ -23444,7 +23475,7 @@ var saveSettings$1 = function saveSettings(self) {
23444
23475
  }
23445
23476
  }
23446
23477
  });
23447
- _self$state = self.state, selectedYard = _self$state.selectedYardNumber, selectedRole = _self$state.selectedRole, selectedLanguage = _self$state.selectedLanguage, selectedCurrency = _self$state.selectedCurrency, roles = _self$state.roles;
23478
+ _self$state = self.state, selectedYard = _self$state.selectedYardNumber, selectedRole = _self$state.selectedRole, selectedLanguage = _self$state.selectedLanguage, selectedCurrency = _self$state.selectedCurrency, roles = _self$state.roles, _self$state.selectedRoleOption;
23448
23479
  roleOptionFromState = roles.find(function (roleOption) {
23449
23480
  return frontEndUtils.regex.beautifyRoleText(roleOption.roleName) === selectedRole;
23450
23481
  }) || head$1(roles);
@@ -24793,7 +24824,9 @@ var _styleModuleImportMap$4 = {
24793
24824
  "roleAndFlag": "utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag",
24794
24825
  "feedback": "utilities_ops-app-frame_AppBarComponent_AppBar--feedback",
24795
24826
  "overflowItems": "utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems",
24796
- "mihelp_button": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button"
24827
+ "mihelp_button": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button",
24828
+ "ideaWidgetContainer": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer",
24829
+ "ideaWidgetHide": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide"
24797
24830
  }
24798
24831
  };
24799
24832
  var overflowSetStyles = {
@@ -25033,6 +25066,28 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
25033
25066
  onItemClick: props.onLogoutItemClicked
25034
25067
  });
25035
25068
  }
25069
+ }, {
25070
+ key: 'ideaNote',
25071
+ renderIf: true,
25072
+ render: function render() {
25073
+ return React__default["default"].createElement("div", {
25074
+ className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items",
25075
+ style: {
25076
+ cursor: 'pointer'
25077
+ },
25078
+ onClick: function onClick() {
25079
+ return props.setIdeaNoteVisible(true);
25080
+ }
25081
+ }, React__default["default"].createElement(coreComponents.Icon, {
25082
+ name: "reviews",
25083
+ variant: "material",
25084
+ style: {
25085
+ color: 'white',
25086
+ fontSize: '22px',
25087
+ margin: '5px 15px 0 0'
25088
+ }
25089
+ }));
25090
+ }
25036
25091
  }];
25037
25092
  return items.filter(function (item) {
25038
25093
  return item.renderIf;
@@ -25058,6 +25113,11 @@ var AppBar$1 = function AppBar(props) {
25058
25113
  calloutTarget = _useState6[0],
25059
25114
  setCalloutTarget = _useState6[1];
25060
25115
 
25116
+ var _useState7 = React.useState(false),
25117
+ _useState8 = _slicedToArray(_useState7, 2),
25118
+ ideaNoteVisible = _useState8[0],
25119
+ setIdeaNoteVisible = _useState8[1];
25120
+
25061
25121
  var isLoggedOn = props.isLoggedOn,
25062
25122
  moduleName = props.moduleName,
25063
25123
  forceUpdate = props.forceUpdate,
@@ -25068,10 +25128,10 @@ var AppBar$1 = function AppBar(props) {
25068
25128
  var _useWindowSize = useWindowSize(),
25069
25129
  width = _useWindowSize.width;
25070
25130
 
25071
- var _useState7 = React.useState(0),
25072
- _useState8 = _slicedToArray(_useState7, 2),
25073
- count = _useState8[0],
25074
- setCount = _useState8[1];
25131
+ var _useState9 = React.useState(0),
25132
+ _useState10 = _slicedToArray(_useState9, 2),
25133
+ count = _useState10[0],
25134
+ setCount = _useState10[1];
25075
25135
 
25076
25136
  React.useLayoutEffect(function () {
25077
25137
  setCount(count + 1);
@@ -25132,7 +25192,8 @@ var AppBar$1 = function AppBar(props) {
25132
25192
  }, isLoggedOn ? React__default["default"].createElement(OverflowMenu, {
25133
25193
  key: "_".concat(width, "_").concat(count),
25134
25194
  items: generateAppBarElements(_objectSpread2({}, props, {
25135
- toggleFeedbackDialog: toggleFeedbackDialog
25195
+ toggleFeedbackDialog: toggleFeedbackDialog,
25196
+ setIdeaNoteVisible: setIdeaNoteVisible
25136
25197
  }), function (target) {
25137
25198
  setCalloutTarget(target);
25138
25199
  setCalloutVisible(true);
@@ -25161,7 +25222,27 @@ var AppBar$1 = function AppBar(props) {
25161
25222
  onSave: onSave
25162
25223
  }) : null, process.env.STACK === 'uk' ? React__default["default"].createElement(SettingsView, {
25163
25224
  onSave: onSave
25164
- }) : null)) : null);
25225
+ }) : null)) : null, ideaNoteVisible && React__default["default"].createElement("div", {
25226
+ className: "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer"
25227
+ }, React__default["default"].createElement("div", {
25228
+ className: "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide",
25229
+ onClick: function onClick() {
25230
+ return setIdeaNoteVisible(false);
25231
+ }
25232
+ }), React__default["default"].createElement("iframe", {
25233
+ allowfullscreen: true,
25234
+ name: "idea-widget-frame",
25235
+ title: "Idea Collection Widget",
25236
+ style: {
25237
+ position: 'absolute',
25238
+ bottom: '0',
25239
+ right: '0',
25240
+ height: '100vh',
25241
+ width: '443px',
25242
+ backgroundColor: 'white'
25243
+ },
25244
+ src: "https://idea-widget.ideanote.io?config=66ff516339"
25245
+ })));
25165
25246
  };
25166
25247
  AppBar$1.defaultProps = {
25167
25248
  config: ['flag', 'role', 'yard'],
@@ -25762,7 +25843,7 @@ var IconComponent = function IconComponent(_ref) {
25762
25843
  */
25763
25844
 
25764
25845
  var b = "function" === typeof Symbol && Symbol.for,
25765
- c = b ? Symbol.for("react.element") : 60103,
25846
+ c$1 = b ? Symbol.for("react.element") : 60103,
25766
25847
  d = b ? Symbol.for("react.portal") : 60106,
25767
25848
  e = b ? Symbol.for("react.fragment") : 60107,
25768
25849
  f = b ? Symbol.for("react.strict_mode") : 60108,
@@ -25786,7 +25867,7 @@ function z(a) {
25786
25867
  var u = a.$$typeof;
25787
25868
 
25788
25869
  switch (u) {
25789
- case c:
25870
+ case c$1:
25790
25871
  switch (a = a.type, a) {
25791
25872
  case l:
25792
25873
  case m:
@@ -25825,7 +25906,7 @@ var AsyncMode = l;
25825
25906
  var ConcurrentMode = m;
25826
25907
  var ContextConsumer = k;
25827
25908
  var ContextProvider = h;
25828
- var Element$1 = c;
25909
+ var Element$1 = c$1;
25829
25910
  var ForwardRef = n;
25830
25911
  var Fragment = e;
25831
25912
  var Lazy = t;
@@ -25850,7 +25931,7 @@ var isContextProvider = function (a) {
25850
25931
  };
25851
25932
 
25852
25933
  var isElement = function (a) {
25853
- return "object" === typeof a && null !== a && a.$$typeof === c;
25934
+ return "object" === typeof a && null !== a && a.$$typeof === c$1;
25854
25935
  };
25855
25936
 
25856
25937
  var isForwardRef = function (a) {
@@ -30666,7 +30747,7 @@ var GoHome = function GoHome(props) {
30666
30747
  }, props.reason));
30667
30748
  };
30668
30749
 
30669
- /*! *****************************************************************************
30750
+ /******************************************************************************
30670
30751
  Copyright (c) Microsoft Corporation.
30671
30752
 
30672
30753
  Permission to use, copy, modify, and/or distribute this software for any
@@ -34269,7 +34350,7 @@ var firebase = firebase$1;
34269
34350
  registerCoreComponents(firebase);
34270
34351
 
34271
34352
  var name$1 = "firebase";
34272
- var version$1 = "8.10.0";
34353
+ var version$1 = "8.10.1";
34273
34354
  /**
34274
34355
  * @license
34275
34356
  * Copyright 2018 Google LLC
@@ -40578,12 +40659,9 @@ function formatLink(link) {
40578
40659
  function padTo2Digits(num) {
40579
40660
  return num.toString().padStart(2, '0');
40580
40661
  }
40581
-
40582
- function getYesterdayDate() {
40662
+ function getTodayDate() {
40583
40663
  var today = new Date();
40584
- var yesterday = new Date(today);
40585
- yesterday.setDate(today.getDate() - 1);
40586
- return yesterday.getUTCFullYear() + '-' + padTo2Digits(yesterday.getUTCMonth() + 1) + '-' + padTo2Digits(yesterday.getUTCDate());
40664
+ return today.getUTCFullYear() + '-' + padTo2Digits(today.getUTCMonth() + 1) + '-' + padTo2Digits(today.getUTCDate());
40587
40665
  }
40588
40666
 
40589
40667
  var name="@firebase/database";var version="0.11.0";/**
@@ -44708,15 +44786,15 @@ function connect(firebaseConfig) {
44708
44786
  }
44709
44787
 
44710
44788
  function attachHandlers(setNotifications) {
44711
- var yesterday = getYesterdayDate();
44712
- firebase.database().ref().child('ops-news').orderByChild('ends_at').startAt(yesterday).on('value', function (snapshot) {
44789
+ var today = getTodayDate();
44790
+ firebase.database().ref().child('ops-news').orderByChild('ends_at').startAt(today).on('value', function (snapshot) {
44713
44791
  compose(setNotifications, filterNotifications, mapNotifications, values$1)(snapshot.val());
44714
44792
  });
44715
44793
  }
44716
44794
 
44717
44795
  function _refetchNotifications(setNotifications) {
44718
- var yesterday = getYesterdayDate();
44719
- firebase.database().ref().child('ops-news').orderByChild('ends_at').startAt(yesterday).once('value').then(function (snapshot) {
44796
+ var today = getTodayDate();
44797
+ firebase.database().ref().child('ops-news').orderByChild('ends_at').startAt(today).once('value').then(function (snapshot) {
44720
44798
  compose(setNotifications, filterNotifications, mapNotifications, values$1)(snapshot.val());
44721
44799
  });
44722
44800
  }