@copart/ops-tool-kit 1.11.4-alpha.2 → 1.12.0-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.
@@ -29,11 +29,10 @@ function _interopNamespace(e) {
29
29
 
30
30
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
31
31
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
32
- var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
33
32
  var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
34
33
 
35
34
  const name$r = "@copart/ops-tool-kit";
36
- const version$7 = "1.11.4-alpha.2";
35
+ const version$7 = "1.12.0-alpha.1";
37
36
  const main$1 = "dist/ops-tool-kit.js";
38
37
  const style = "dist/ops-tool-kit.css";
39
38
  const files = [
@@ -14044,18 +14043,18 @@ PERFORMANCE OF THIS SOFTWARE.
14044
14043
  ***************************************************************************** */
14045
14044
  /* global Reflect, Promise */
14046
14045
 
14047
- var extendStatics$2 = function (d, b) {
14048
- extendStatics$2 = Object.setPrototypeOf || {
14046
+ var extendStatics$1 = function (d, b) {
14047
+ extendStatics$1 = Object.setPrototypeOf || {
14049
14048
  __proto__: []
14050
14049
  } instanceof Array && function (d, b) {
14051
14050
  d.__proto__ = b;
14052
14051
  } || function (d, b) {
14053
14052
  for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
14054
14053
  };
14055
- return extendStatics$2(d, b);
14054
+ return extendStatics$1(d, b);
14056
14055
  };
14057
- function __extends$2(d, b) {
14058
- extendStatics$2(d, b);
14056
+ function __extends$1(d, b) {
14057
+ extendStatics$1(d, b);
14059
14058
  function __() {
14060
14059
  this.constructor = d;
14061
14060
  }
@@ -14071,21 +14070,6 @@ var __assign$6 = function () {
14071
14070
  };
14072
14071
  return __assign$6.apply(this, arguments);
14073
14072
  };
14074
- function __rest$1(s, e) {
14075
- var t = {};
14076
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
14077
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
14078
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
14079
- }
14080
- return t;
14081
- }
14082
- function __decorate(decorators, target, key, desc) {
14083
- var c = arguments.length,
14084
- r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
14085
- d;
14086
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
14087
- return c > 3 && r && Object.defineProperty(target, key, r), r;
14088
- }
14089
14073
  function __spreadArrays$1() {
14090
14074
  for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
14091
14075
  for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];
@@ -14528,11 +14512,11 @@ function provideUnits(rulePairs, index) {
14528
14512
  }
14529
14513
  }
14530
14514
 
14531
- var _a$3;
14515
+ var _a;
14532
14516
  var LEFT = 'left';
14533
14517
  var RIGHT = 'right';
14534
14518
  var NO_FLIP = '@noflip';
14535
- var NAME_REPLACEMENTS = (_a$3 = {}, _a$3[LEFT] = RIGHT, _a$3[RIGHT] = LEFT, _a$3);
14519
+ var NAME_REPLACEMENTS = (_a = {}, _a[LEFT] = RIGHT, _a[RIGHT] = LEFT, _a);
14536
14520
  var VALUE_REPLACEMENTS = {
14537
14521
  'w-resize': 'e-resize',
14538
14522
  'sw-resize': 'se-resize',
@@ -15042,56 +15026,6 @@ function fontFace(font) {
15042
15026
  Stylesheet.getInstance().insertRule("@font-face{" + serializeRuleEntries(getStyleOptions(), font) + "}", true);
15043
15027
  }
15044
15028
 
15045
- /**
15046
- * Registers keyframe definitions.
15047
- *
15048
- * @public
15049
- */
15050
- function keyframes(timeline) {
15051
- var stylesheet = Stylesheet.getInstance();
15052
- var name = stylesheet.getClassName();
15053
- var rulesArray = [];
15054
- for (var prop in timeline) {
15055
- if (timeline.hasOwnProperty(prop)) {
15056
- rulesArray.push(prop, '{', serializeRuleEntries(getStyleOptions(), timeline[prop]), '}');
15057
- }
15058
- }
15059
- var rules = rulesArray.join('');
15060
- stylesheet.insertRule("@keyframes " + name + "{" + rules + "}", true);
15061
- stylesheet.cacheClassName(name, rules, [], ['keyframes', rules]);
15062
- return name;
15063
- }
15064
-
15065
- /**
15066
- * Builds a class names object from a given map.
15067
- *
15068
- * @param styles - Map of unprocessed styles.
15069
- * @returns Map of property name to class name.
15070
- */
15071
- function buildClassMap(styles) {
15072
- var classes = {};
15073
- var _loop_1 = function (styleName) {
15074
- if (styles.hasOwnProperty(styleName)) {
15075
- var className_1;
15076
- Object.defineProperty(classes, styleName, {
15077
- get: function () {
15078
- if (className_1 === undefined) {
15079
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
15080
- className_1 = mergeStyles(styles[styleName]).toString();
15081
- }
15082
- return className_1;
15083
- },
15084
- enumerable: true,
15085
- configurable: true
15086
- });
15087
- }
15088
- };
15089
- for (var styleName in styles) {
15090
- _loop_1(styleName);
15091
- }
15092
- return classes;
15093
- }
15094
-
15095
15029
  /*! *****************************************************************************
15096
15030
  Copyright (c) Microsoft Corporation.
15097
15031
 
@@ -15557,24 +15491,6 @@ var Async = /** @class */function () {
15557
15491
  *
15558
15492
  * @public
15559
15493
  */
15560
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
15561
- function shallowCompare(a, b) {
15562
- for (var propName in a) {
15563
- if (a.hasOwnProperty(propName)) {
15564
- if (!b.hasOwnProperty(propName) || b[propName] !== a[propName]) {
15565
- return false;
15566
- }
15567
- }
15568
- }
15569
- for (var propName in b) {
15570
- if (b.hasOwnProperty(propName)) {
15571
- if (!a.hasOwnProperty(propName)) {
15572
- return false;
15573
- }
15574
- }
15575
- }
15576
- return true;
15577
- }
15578
15494
  /**
15579
15495
  * Makes a resulting merge of a bunch of objects. Pass in the target object followed by 1 or more
15580
15496
  * objects as arguments and they will be merged sequentially into the target. Note that this will
@@ -15868,7 +15784,6 @@ function getDocument(rootElement) {
15868
15784
  }
15869
15785
  }
15870
15786
 
15871
- var _scrollbarWidth;
15872
15787
  mergeStyles({
15873
15788
  overflow: 'hidden !important'
15874
15789
  });
@@ -15880,27 +15795,6 @@ mergeStyles({
15880
15795
  * @public
15881
15796
  */
15882
15797
  var DATA_IS_SCROLLABLE_ATTRIBUTE = 'data-is-scrollable';
15883
- /**
15884
- * Calculates the width of a scrollbar for the browser/os.
15885
- *
15886
- * @public
15887
- */
15888
- function getScrollbarWidth() {
15889
- if (_scrollbarWidth === undefined) {
15890
- var scrollDiv = document.createElement('div');
15891
- scrollDiv.style.setProperty('width', '100px');
15892
- scrollDiv.style.setProperty('height', '100px');
15893
- scrollDiv.style.setProperty('overflow', 'scroll');
15894
- scrollDiv.style.setProperty('position', 'absolute');
15895
- scrollDiv.style.setProperty('top', '-9999px');
15896
- document.body.appendChild(scrollDiv);
15897
- // Get the scrollbar width
15898
- _scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
15899
- // Delete the DIV
15900
- document.body.removeChild(scrollDiv);
15901
- }
15902
- return _scrollbarWidth;
15903
- }
15904
15798
  /**
15905
15799
  * Traverses up the DOM for the element with the data-is-scrollable=true attribute, or returns
15906
15800
  * document.body.
@@ -15950,25 +15844,6 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
15950
15844
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15951
15845
  PERFORMANCE OF THIS SOFTWARE.
15952
15846
  ***************************************************************************** */
15953
- /* global Reflect, Promise */
15954
-
15955
- var extendStatics$1 = function (d, b) {
15956
- extendStatics$1 = Object.setPrototypeOf || {
15957
- __proto__: []
15958
- } instanceof Array && function (d, b) {
15959
- d.__proto__ = b;
15960
- } || function (d, b) {
15961
- for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
15962
- };
15963
- return extendStatics$1(d, b);
15964
- };
15965
- function __extends$1(d, b) {
15966
- extendStatics$1(d, b);
15967
- function __() {
15968
- this.constructor = d;
15969
- }
15970
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15971
- }
15972
15847
  var __assign$3 = function () {
15973
15848
  __assign$3 = Object.assign || function __assign(t) {
15974
15849
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -16238,62 +16113,6 @@ var KeyCodes = {
16238
16113
  singleQuote: 222
16239
16114
  };
16240
16115
 
16241
- /**
16242
- * Rectangle helper class.
16243
- *
16244
- * @public
16245
- * {@docCategory Rectangle}
16246
- */
16247
- var Rectangle$1 = /** @class */function () {
16248
- function Rectangle(left, right, top, bottom) {
16249
- if (left === void 0) {
16250
- left = 0;
16251
- }
16252
- if (right === void 0) {
16253
- right = 0;
16254
- }
16255
- if (top === void 0) {
16256
- top = 0;
16257
- }
16258
- if (bottom === void 0) {
16259
- bottom = 0;
16260
- }
16261
- this.top = top;
16262
- this.bottom = bottom;
16263
- this.left = left;
16264
- this.right = right;
16265
- }
16266
- Object.defineProperty(Rectangle.prototype, "width", {
16267
- /**
16268
- * Calculated automatically by subtracting the right from left
16269
- */
16270
- get: function () {
16271
- return this.right - this.left;
16272
- },
16273
- enumerable: true,
16274
- configurable: true
16275
- });
16276
- Object.defineProperty(Rectangle.prototype, "height", {
16277
- /**
16278
- * Calculated automatically by subtracting the bottom from top.
16279
- */
16280
- get: function () {
16281
- return this.bottom - this.top;
16282
- },
16283
- enumerable: true,
16284
- configurable: true
16285
- });
16286
- /**
16287
- * Tests if another rect is approximately equal to this rect (within 4 decimal places.)
16288
- */
16289
- Rectangle.prototype.equals = function (rect) {
16290
- // Fixing to 4 decimal places because it allows enough precision and will handle cases when something
16291
- // should be rounded, like .999999 should round to 1.
16292
- return parseFloat(this.top.toFixed(4)) === parseFloat(rect.top.toFixed(4)) && parseFloat(this.bottom.toFixed(4)) === parseFloat(rect.bottom.toFixed(4)) && parseFloat(this.left.toFixed(4)) === parseFloat(rect.left.toFixed(4)) && parseFloat(this.right.toFixed(4)) === parseFloat(rect.right.toFixed(4));
16293
- };
16294
- return Rectangle;
16295
- }();
16296
-
16297
16116
  /* eslint-disable @typescript-eslint/no-explicit-any */
16298
16117
  /**
16299
16118
  * Returns a single function which will call each of the given functions in the context of the
@@ -16517,13 +16336,6 @@ function elementContainsAttribute(element, attribute) {
16517
16336
  }
16518
16337
 
16519
16338
  var DATA_PORTAL_ATTRIBUTE = 'data-portal-element';
16520
- /**
16521
- * Identify element as a portal by setting an attribute.
16522
- * @param element - Element to mark as a portal.
16523
- */
16524
- function setPortalAttribute(element) {
16525
- element.setAttribute(DATA_PORTAL_ATTRIBUTE, 'true');
16526
- }
16527
16339
 
16528
16340
  /**
16529
16341
  * Determine whether a target is within a portal from perspective of root or optional parent.
@@ -16540,46 +16352,6 @@ function portalContainsElement(target, parent) {
16540
16352
  return elementMatch !== null && elementMatch.hasAttribute(DATA_PORTAL_ATTRIBUTE);
16541
16353
  }
16542
16354
 
16543
- /**
16544
- * Sets the virtual parent of an element.
16545
- * Pass `undefined` as the `parent` to clear the virtual parent.
16546
- *
16547
- * @public
16548
- */
16549
- function setVirtualParent(child, parent) {
16550
- var virtualChild = child;
16551
- var virtualParent = parent;
16552
- if (!virtualChild._virtual) {
16553
- virtualChild._virtual = {
16554
- children: []
16555
- };
16556
- }
16557
- var oldParent = virtualChild._virtual.parent;
16558
- if (oldParent && oldParent !== parent) {
16559
- // Remove the child from its old parent.
16560
- var index = oldParent._virtual.children.indexOf(virtualChild);
16561
- if (index > -1) {
16562
- oldParent._virtual.children.splice(index, 1);
16563
- }
16564
- }
16565
- virtualChild._virtual.parent = virtualParent || undefined;
16566
- if (virtualParent) {
16567
- if (!virtualParent._virtual) {
16568
- virtualParent._virtual = {
16569
- children: []
16570
- };
16571
- }
16572
- virtualParent._virtual.children.push(virtualChild);
16573
- }
16574
- }
16575
-
16576
- function on(element, eventName, callback, options) {
16577
- element.addEventListener(eventName, callback, options);
16578
- return function () {
16579
- return element.removeEventListener(eventName, callback, options);
16580
- };
16581
- }
16582
-
16583
16355
  var MAX_CACHE_COUNT = 50;
16584
16356
  var DEFAULT_SPECIFICITY_MULTIPLIER = 5;
16585
16357
  var _memoizedClassNames = 0;
@@ -16716,107 +16488,6 @@ function _normalizeValue(value) {
16716
16488
  }
16717
16489
  }
16718
16490
 
16719
- var _initializedStylesheetResets$1 = false;
16720
- var _resetCounter = 0;
16721
- var _emptyObject = {
16722
- empty: true
16723
- };
16724
- var _dictionary = {};
16725
- var _weakMap = typeof WeakMap === 'undefined' ? null : WeakMap;
16726
- /**
16727
- * Reset memoizations.
16728
- */
16729
- function resetMemoizations() {
16730
- _resetCounter++;
16731
- }
16732
- /**
16733
- * Memoizes a function; when you pass in the same parameters multiple times, it returns a cached result.
16734
- * Be careful when passing in objects, you need to pass in the same INSTANCE for caching to work. Otherwise
16735
- * it will grow the cache unnecessarily. Also avoid using default values that evaluate functions; passing in
16736
- * undefined for a value and relying on a default function will execute it the first time, but will not
16737
- * re-evaluate subsequent times which may have been unexpected.
16738
- *
16739
- * By default, the cache will reset after 100 permutations, to avoid abuse cases where the function is
16740
- * unintendedly called with unique objects. Without a reset, the cache could grow infinitely, so we safeguard
16741
- * by resetting. To override this behavior, pass a value of 0 to the maxCacheSize parameter.
16742
- *
16743
- * @public
16744
- * @param cb - The function to memoize.
16745
- * @param maxCacheSize - Max results to cache. If the cache exceeds this value, it will reset on the next call.
16746
- * @param ignoreNullOrUndefinedResult - Flag to decide whether to cache callback result if it is undefined/null.
16747
- * If the flag is set to true, the callback result is recomputed every time till the callback result is
16748
- * not undefined/null for the first time, and then the non-undefined/null version gets cached.
16749
- * @returns A memoized version of the function.
16750
- */
16751
- function memoizeFunction(cb, maxCacheSize, ignoreNullOrUndefinedResult) {
16752
- if (maxCacheSize === void 0) {
16753
- maxCacheSize = 100;
16754
- }
16755
- if (ignoreNullOrUndefinedResult === void 0) {
16756
- ignoreNullOrUndefinedResult = false;
16757
- }
16758
- // Avoid breaking scenarios which don't have weak map.
16759
- if (!_weakMap) {
16760
- return cb;
16761
- }
16762
- if (!_initializedStylesheetResets$1) {
16763
- var stylesheet = Stylesheet.getInstance();
16764
- if (stylesheet && stylesheet.onReset) {
16765
- Stylesheet.getInstance().onReset(resetMemoizations);
16766
- }
16767
- _initializedStylesheetResets$1 = true;
16768
- }
16769
- var rootNode;
16770
- var cacheSize = 0;
16771
- var localResetCounter = _resetCounter;
16772
- return function memoizedFunction() {
16773
- var args = [];
16774
- for (var _i = 0; _i < arguments.length; _i++) {
16775
- args[_i] = arguments[_i];
16776
- }
16777
- var currentNode = rootNode;
16778
- if (rootNode === undefined || localResetCounter !== _resetCounter || maxCacheSize > 0 && cacheSize > maxCacheSize) {
16779
- rootNode = _createNode();
16780
- cacheSize = 0;
16781
- localResetCounter = _resetCounter;
16782
- }
16783
- currentNode = rootNode;
16784
- // Traverse the tree until we find the match.
16785
- for (var i = 0; i < args.length; i++) {
16786
- var arg = _normalizeArg(args[i]);
16787
- if (!currentNode.map.has(arg)) {
16788
- currentNode.map.set(arg, _createNode());
16789
- }
16790
- currentNode = currentNode.map.get(arg);
16791
- }
16792
- if (!currentNode.hasOwnProperty('value')) {
16793
- currentNode.value = cb.apply(void 0, args);
16794
- cacheSize++;
16795
- }
16796
- if (ignoreNullOrUndefinedResult && (currentNode.value === null || currentNode.value === undefined)) {
16797
- currentNode.value = cb.apply(void 0, args);
16798
- }
16799
- return currentNode.value;
16800
- };
16801
- }
16802
- function _normalizeArg(val) {
16803
- if (!val) {
16804
- return _emptyObject;
16805
- } else if (typeof val === 'object' || typeof val === 'function') {
16806
- return val;
16807
- } else if (!_dictionary[val]) {
16808
- _dictionary[val] = {
16809
- val: val
16810
- };
16811
- }
16812
- return _dictionary[val];
16813
- }
16814
- function _createNode() {
16815
- return {
16816
- map: _weakMap ? new _weakMap() : null
16817
- };
16818
- }
16819
-
16820
16491
  /**
16821
16492
  * Concatination helper, which can merge class names together. Skips over falsey values.
16822
16493
  *
@@ -16937,190 +16608,6 @@ var CustomizerContext = React__namespace.createContext({
16937
16608
  }
16938
16609
  });
16939
16610
 
16940
- /**
16941
- * Merge new and old settings, giving priority to new settings.
16942
- * New settings is optional in which case oldSettings is returned as-is.
16943
- * @param oldSettings - Old settings to fall back to.
16944
- * @param newSettings - New settings that will be merged over oldSettings.
16945
- * @returns Merged settings.
16946
- */
16947
- function mergeSettings(oldSettings, newSettings) {
16948
- if (oldSettings === void 0) {
16949
- oldSettings = {};
16950
- }
16951
- var mergeSettingsWith = _isSettingsFunction(newSettings) ? newSettings : _settingsMergeWith(newSettings);
16952
- return mergeSettingsWith(oldSettings);
16953
- }
16954
- function mergeScopedSettings(oldSettings, newSettings) {
16955
- if (oldSettings === void 0) {
16956
- oldSettings = {};
16957
- }
16958
- var mergeSettingsWith = _isSettingsFunction(newSettings) ? newSettings : _scopedSettingsMergeWith(newSettings);
16959
- return mergeSettingsWith(oldSettings);
16960
- }
16961
- function _isSettingsFunction(settings) {
16962
- return typeof settings === 'function';
16963
- }
16964
- function _settingsMergeWith(newSettings) {
16965
- return function (settings) {
16966
- return newSettings ? __assign$3(__assign$3({}, settings), newSettings) : settings;
16967
- };
16968
- }
16969
- function _scopedSettingsMergeWith(scopedSettingsFromProps) {
16970
- if (scopedSettingsFromProps === void 0) {
16971
- scopedSettingsFromProps = {};
16972
- }
16973
- return function (oldScopedSettings) {
16974
- var newScopedSettings = __assign$3({}, oldScopedSettings);
16975
- for (var scopeName in scopedSettingsFromProps) {
16976
- if (scopedSettingsFromProps.hasOwnProperty(scopeName)) {
16977
- newScopedSettings[scopeName] = __assign$3(__assign$3({}, oldScopedSettings[scopeName]), scopedSettingsFromProps[scopeName]);
16978
- }
16979
- }
16980
- return newScopedSettings;
16981
- };
16982
- }
16983
-
16984
- /**
16985
- * Merge props and customizations giving priority to props over context.
16986
- * NOTE: This function will always perform multiple merge operations. Use with caution.
16987
- * @param props - New settings to merge in.
16988
- * @param parentContext - Context containing current settings.
16989
- * @returns Merged customizations.
16990
- */
16991
- function mergeCustomizations(props, parentContext) {
16992
- var _a = (parentContext || {}).customizations,
16993
- customizations = _a === void 0 ? {
16994
- settings: {},
16995
- scopedSettings: {}
16996
- } : _a;
16997
- return {
16998
- customizations: {
16999
- settings: mergeSettings(customizations.settings, props.settings),
17000
- scopedSettings: mergeScopedSettings(customizations.scopedSettings, props.scopedSettings),
17001
- inCustomizerContext: true
17002
- }
17003
- };
17004
- }
17005
-
17006
- /**
17007
- * The Customizer component allows for default props to be mixed into components which
17008
- * are decorated with the customizable() decorator, or use the styled HOC. This enables
17009
- * injection scenarios like:
17010
- *
17011
- * 1. render svg icons instead of the icon font within all buttons
17012
- * 2. inject a custom theme object into a component
17013
- *
17014
- * Props are provided via the settings prop which should be one of the following:
17015
- * - A json map which contains 1 or more name/value pairs representing injectable props.
17016
- * - A function that receives the current settings and returns the new ones that apply to the scope
17017
- *
17018
- * @public
17019
- */
17020
- var Customizer = /** @class */function (_super) {
17021
- __extends$1(Customizer, _super);
17022
- function Customizer() {
17023
- var _this = _super !== null && _super.apply(this, arguments) || this;
17024
- _this._onCustomizationChange = function () {
17025
- return _this.forceUpdate();
17026
- };
17027
- return _this;
17028
- }
17029
- Customizer.prototype.componentDidMount = function () {
17030
- Customizations.observe(this._onCustomizationChange);
17031
- };
17032
- Customizer.prototype.componentWillUnmount = function () {
17033
- Customizations.unobserve(this._onCustomizationChange);
17034
- };
17035
- Customizer.prototype.render = function () {
17036
- var _this = this;
17037
- var contextTransform = this.props.contextTransform;
17038
- return React__namespace.createElement(CustomizerContext.Consumer, null, function (parentContext) {
17039
- var newContext = mergeCustomizations(_this.props, parentContext);
17040
- if (contextTransform) {
17041
- newContext = contextTransform(newContext);
17042
- }
17043
- return React__namespace.createElement(CustomizerContext.Provider, {
17044
- value: newContext
17045
- }, _this.props.children);
17046
- });
17047
- };
17048
- return Customizer;
17049
- }(React__namespace.Component);
17050
-
17051
- /**
17052
- * Allows you to hoist static functions in components.
17053
- * Created for the purpose of fixing broken static functions in classes
17054
- * that utilize decorators.
17055
- *
17056
- * @public
17057
- * @param source - The object where the methods are hoisted from.
17058
- * @param dest - The object to hoist the methods onto.
17059
- * @returns The dest object with methods added
17060
- */
17061
- function hoistStatics(source, dest) {
17062
- for (var name_1 in source) {
17063
- if (source.hasOwnProperty(name_1)) {
17064
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
17065
- dest[name_1] = source[name_1];
17066
- }
17067
- }
17068
- return dest;
17069
- }
17070
-
17071
- function customizable(scope, fields, concatStyles) {
17072
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
17073
- return function customizableFactory(ComposedComponent) {
17074
- var _a;
17075
- var resultClass = (_a = /** @class */function (_super) {
17076
- __extends$1(ComponentWithInjectedProps, _super);
17077
- function ComponentWithInjectedProps(props) {
17078
- var _this = _super.call(this, props) || this;
17079
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
17080
- _this._styleCache = {};
17081
- _this._onSettingChanged = _this._onSettingChanged.bind(_this);
17082
- return _this;
17083
- }
17084
- ComponentWithInjectedProps.prototype.componentDidMount = function () {
17085
- Customizations.observe(this._onSettingChanged);
17086
- };
17087
- ComponentWithInjectedProps.prototype.componentWillUnmount = function () {
17088
- Customizations.unobserve(this._onSettingChanged);
17089
- };
17090
- ComponentWithInjectedProps.prototype.render = function () {
17091
- var _this = this;
17092
- return React__namespace.createElement(CustomizerContext.Consumer, null, function (context) {
17093
- var defaultProps = Customizations.getSettings(fields, scope, context.customizations);
17094
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
17095
- var componentProps = _this.props;
17096
- // If defaultProps.styles is a function, evaluate it before calling concatStyleSets
17097
- if (defaultProps.styles && typeof defaultProps.styles === 'function') {
17098
- defaultProps.styles = defaultProps.styles(__assign$3(__assign$3({}, defaultProps), componentProps));
17099
- }
17100
- // If concatStyles is true and custom styles have been defined compute those styles
17101
- if (concatStyles && defaultProps.styles) {
17102
- if (_this._styleCache.default !== defaultProps.styles || _this._styleCache.component !== componentProps.styles) {
17103
- var mergedStyles = concatStyleSets(defaultProps.styles, componentProps.styles);
17104
- _this._styleCache.default = defaultProps.styles;
17105
- _this._styleCache.component = componentProps.styles;
17106
- _this._styleCache.merged = mergedStyles;
17107
- }
17108
- return React__namespace.createElement(ComposedComponent, __assign$3({}, defaultProps, componentProps, {
17109
- styles: _this._styleCache.merged
17110
- }));
17111
- }
17112
- return React__namespace.createElement(ComposedComponent, __assign$3({}, defaultProps, componentProps));
17113
- });
17114
- };
17115
- ComponentWithInjectedProps.prototype._onSettingChanged = function () {
17116
- this.forceUpdate();
17117
- };
17118
- return ComponentWithInjectedProps;
17119
- }(React__namespace.Component), _a.displayName = 'Customized' + scope, _a);
17120
- return hoistStatics(ComposedComponent, resultClass);
17121
- };
17122
- }
17123
-
17124
16611
  /**
17125
16612
  * Hook to get Customizations settings from Customizations singleton or CustomizerContext.
17126
16613
  * It will trigger component state update on settings change observed.
@@ -17331,19 +16818,6 @@ function isElementFocusZone(element) {
17331
16818
  function isElementFocusSubZone(element) {
17332
16819
  return !!(element && element.getAttribute && element.getAttribute(FOCUSZONE_SUB_ATTRIBUTE) === 'true');
17333
16820
  }
17334
- /**
17335
- * Determines if an element, or any of its children, contain focus.
17336
- *
17337
- * @public
17338
- */
17339
- function doesElementContainFocus(element) {
17340
- var document = getDocument(element);
17341
- var currentActiveElement = document && document.activeElement;
17342
- if (currentActiveElement && elementContains(element, currentActiveElement)) {
17343
- return true;
17344
- }
17345
- return false;
17346
- }
17347
16821
  /**
17348
16822
  * Determines if an, or any of its ancestors, sepcificies that it doesn't want focus to wrap
17349
16823
  * @param element - element to start searching from
@@ -17678,120 +17152,6 @@ function _setComponentRef(componentRef, value) {
17678
17152
  }
17679
17153
  }
17680
17154
 
17681
- var _a$2;
17682
- var DirectionalKeyCodes = (_a$2 = {}, _a$2[KeyCodes.up] = 1, _a$2[KeyCodes.down] = 1, _a$2[KeyCodes.left] = 1, _a$2[KeyCodes.right] = 1, _a$2[KeyCodes.home] = 1, _a$2[KeyCodes.end] = 1, _a$2[KeyCodes.tab] = 1, _a$2[KeyCodes.pageUp] = 1, _a$2[KeyCodes.pageDown] = 1, _a$2);
17683
- /**
17684
- * Returns true if the keycode is a directional keyboard key.
17685
- */
17686
- function isDirectionalKeyCode(which) {
17687
- return !!DirectionalKeyCodes[which];
17688
- }
17689
-
17690
- var IsFocusVisibleClassName = 'ms-Fabric--isFocusVisible';
17691
- var IsFocusHiddenClassName = 'ms-Fabric--isFocusHidden';
17692
- /**
17693
- * Sets the visibility of focus styling.
17694
- *
17695
- * By default, focus styles (the box surrounding a focused Button, for example) only show up when navigational
17696
- * keypresses occur (through Tab, arrows, PgUp/PgDn, Home and End), and are hidden when mouse interactions occur.
17697
- * This API provides an imperative way to turn them on/off.
17698
- *
17699
- * A use case might be when you have a keypress like ctrl-f6 navigate to a particular region on the page,
17700
- * and want focus to show up.
17701
- *
17702
- * @param enabled - whether to remove or add focus
17703
- * @param target - optional target
17704
- */
17705
- function setFocusVisibility(enabled, target) {
17706
- var win = target ? getWindow$1(target) : getWindow$1();
17707
- if (win) {
17708
- var classList = win.document.body.classList;
17709
- classList.add(enabled ? IsFocusVisibleClassName : IsFocusHiddenClassName);
17710
- classList.remove(enabled ? IsFocusHiddenClassName : IsFocusVisibleClassName);
17711
- }
17712
- }
17713
-
17714
- /**
17715
- * Counter for mounted component that uses focus rectangle.
17716
- * We want to cleanup the listners before last component that uses focus rectangle unmounts.
17717
- */
17718
- var mountCounters = new WeakMap();
17719
- function setMountCounters(key, delta) {
17720
- var newValue;
17721
- var currValue = mountCounters.get(key);
17722
- if (currValue) {
17723
- newValue = currValue + delta;
17724
- } else {
17725
- newValue = 1;
17726
- }
17727
- mountCounters.set(key, newValue);
17728
- return newValue;
17729
- }
17730
- /**
17731
- * Initializes the logic which:
17732
- *
17733
- * 1. Subscribes keydown and mousedown events. (It will only do it once per window,
17734
- * so it's safe to call this method multiple times.)
17735
- * 2. When the user presses directional keyboard keys, adds the 'ms-Fabric--isFocusVisible' classname
17736
- * to the document body, removes the 'ms-Fabric-isFocusHidden' classname.
17737
- * 3. When the user clicks a mouse button, adds the 'ms-Fabric-isFocusHidden' classname to the
17738
- * document body, removes the 'ms-Fabric--isFocusVisible' classname.
17739
- *
17740
- * This logic allows components on the page to conditionally render focus treatments based on
17741
- * the existence of global classnames, which simplifies logic overall.
17742
- *
17743
- * @param rootRef - A Ref object. Focus rectangle can be applied on itself and all its children.
17744
- */
17745
- function useFocusRects(rootRef) {
17746
- React__namespace.useEffect(function () {
17747
- var _a, _b;
17748
- var win = getWindow$1((_a = rootRef) === null || _a === void 0 ? void 0 : _a.current);
17749
- if (!win || ((_b = win.FabricConfig) === null || _b === void 0 ? void 0 : _b.disableFocusRects) === true) {
17750
- return undefined;
17751
- }
17752
- var count = setMountCounters(win, 1);
17753
- if (count <= 1) {
17754
- win.addEventListener('mousedown', _onMouseDown, true);
17755
- win.addEventListener('pointerdown', _onPointerDown, true);
17756
- win.addEventListener('keydown', _onKeyDown, true);
17757
- }
17758
- return function () {
17759
- var _a;
17760
- if (!win || ((_a = win.FabricConfig) === null || _a === void 0 ? void 0 : _a.disableFocusRects) === true) {
17761
- return;
17762
- }
17763
- count = setMountCounters(win, -1);
17764
- if (count === 0) {
17765
- win.removeEventListener('mousedown', _onMouseDown, true);
17766
- win.removeEventListener('pointerdown', _onPointerDown, true);
17767
- win.removeEventListener('keydown', _onKeyDown, true);
17768
- }
17769
- };
17770
- }, [rootRef]);
17771
- }
17772
- /**
17773
- * Function Component wrapper which enables calling `useFocusRects` hook.
17774
- * Renders nothing.
17775
- */
17776
- var FocusRects = function (props) {
17777
- useFocusRects(props.rootRef);
17778
- return null;
17779
- };
17780
- function _onMouseDown(ev) {
17781
- setFocusVisibility(false, ev.target);
17782
- }
17783
- function _onPointerDown(ev) {
17784
- if (ev.pointerType !== 'mouse') {
17785
- setFocusVisibility(false, ev.target);
17786
- }
17787
- }
17788
- function _onKeyDown(ev) {
17789
- // eslint-disable-next-line deprecation/deprecation
17790
- if (isDirectionalKeyCode(ev.which)) {
17791
- setFocusVisibility(true, ev.target);
17792
- }
17793
- }
17794
-
17795
17155
  /**
17796
17156
  * Fetches an item from local storage without throwing an exception
17797
17157
  * @param key The key of the item to fetch from local storage
@@ -17965,199 +17325,6 @@ var createMergedRef = function (value) {
17965
17325
  };
17966
17326
  };
17967
17327
 
17968
- /* Register the keyframes */
17969
- var EASING_FUNCTION_1 = 'cubic-bezier(.1,.9,.2,1)';
17970
- var EASING_FUNCTION_2 = 'cubic-bezier(.1,.25,.75,.9)';
17971
- var DURATION_1 = '0.167s';
17972
- var DURATION_2 = '0.267s';
17973
- var DURATION_3 = '0.367s';
17974
- var DURATION_4 = '0.467s';
17975
- var FADE_IN = keyframes({
17976
- from: {
17977
- opacity: 0
17978
- },
17979
- to: {
17980
- opacity: 1
17981
- }
17982
- });
17983
- var FADE_OUT = keyframes({
17984
- from: {
17985
- opacity: 1
17986
- },
17987
- to: {
17988
- opacity: 0,
17989
- visibility: 'hidden'
17990
- }
17991
- });
17992
- var SLIDE_RIGHT_IN10 = _createSlideInX(-10);
17993
- var SLIDE_RIGHT_IN20 = _createSlideInX(-20);
17994
- var SLIDE_RIGHT_IN40 = _createSlideInX(-40);
17995
- var SLIDE_RIGHT_IN400 = _createSlideInX(-400);
17996
- var SLIDE_LEFT_IN10 = _createSlideInX(10);
17997
- var SLIDE_LEFT_IN20 = _createSlideInX(20);
17998
- var SLIDE_LEFT_IN40 = _createSlideInX(40);
17999
- var SLIDE_LEFT_IN400 = _createSlideInX(400);
18000
- var SLIDE_UP_IN10 = _createSlideInY(10);
18001
- var SLIDE_UP_IN20 = _createSlideInY(20);
18002
- var SLIDE_DOWN_IN10 = _createSlideInY(-10);
18003
- var SLIDE_DOWN_IN20 = _createSlideInY(-20);
18004
- var SLIDE_RIGHT_OUT10 = _createSlideOutX(10);
18005
- var SLIDE_RIGHT_OUT20 = _createSlideOutX(20);
18006
- var SLIDE_RIGHT_OUT40 = _createSlideOutX(40);
18007
- var SLIDE_RIGHT_OUT400 = _createSlideOutX(400);
18008
- var SLIDE_LEFT_OUT10 = _createSlideOutX(-10);
18009
- var SLIDE_LEFT_OUT20 = _createSlideOutX(-20);
18010
- var SLIDE_LEFT_OUT40 = _createSlideOutX(-40);
18011
- var SLIDE_LEFT_OUT400 = _createSlideOutX(-400);
18012
- var SLIDE_UP_OUT10 = _createSlideOutY(-10);
18013
- var SLIDE_UP_OUT20 = _createSlideOutY(-20);
18014
- var SLIDE_DOWN_OUT10 = _createSlideOutY(10);
18015
- var SLIDE_DOWN_OUT20 = _createSlideOutY(20);
18016
- var SCALE_UP100 = keyframes({
18017
- from: {
18018
- transform: 'scale3d(.98,.98,1)'
18019
- },
18020
- to: {
18021
- transform: 'scale3d(1,1,1)'
18022
- }
18023
- });
18024
- var SCALE_DOWN98 = keyframes({
18025
- from: {
18026
- transform: 'scale3d(1,1,1)'
18027
- },
18028
- to: {
18029
- transform: 'scale3d(.98,.98,1)'
18030
- }
18031
- });
18032
- var SCALE_DOWN100 = keyframes({
18033
- from: {
18034
- transform: 'scale3d(1.03,1.03,1)'
18035
- },
18036
- to: {
18037
- transform: 'scale3d(1,1,1)'
18038
- }
18039
- });
18040
- var SCALE_UP103 = keyframes({
18041
- from: {
18042
- transform: 'scale3d(1,1,1)'
18043
- },
18044
- to: {
18045
- transform: 'scale3d(1.03,1.03,1)'
18046
- }
18047
- });
18048
- var ROTATE90 = keyframes({
18049
- from: {
18050
- transform: 'rotateZ(0deg)'
18051
- },
18052
- to: {
18053
- transform: 'rotateZ(90deg)'
18054
- }
18055
- });
18056
- var ROTATE_N90 = keyframes({
18057
- from: {
18058
- transform: 'rotateZ(0deg)'
18059
- },
18060
- to: {
18061
- transform: 'rotateZ(-90deg)'
18062
- }
18063
- });
18064
- /**
18065
- * All Fabric standard animations, exposed as json objects referencing predefined
18066
- * keyframes. These objects can be mixed in with other class definitions.
18067
- */
18068
- var AnimationStyles = {
18069
- slideRightIn10: _createAnimation(FADE_IN + "," + SLIDE_RIGHT_IN10, DURATION_3, EASING_FUNCTION_1),
18070
- slideRightIn20: _createAnimation(FADE_IN + "," + SLIDE_RIGHT_IN20, DURATION_3, EASING_FUNCTION_1),
18071
- slideRightIn40: _createAnimation(FADE_IN + "," + SLIDE_RIGHT_IN40, DURATION_3, EASING_FUNCTION_1),
18072
- slideRightIn400: _createAnimation(FADE_IN + "," + SLIDE_RIGHT_IN400, DURATION_3, EASING_FUNCTION_1),
18073
- slideLeftIn10: _createAnimation(FADE_IN + "," + SLIDE_LEFT_IN10, DURATION_3, EASING_FUNCTION_1),
18074
- slideLeftIn20: _createAnimation(FADE_IN + "," + SLIDE_LEFT_IN20, DURATION_3, EASING_FUNCTION_1),
18075
- slideLeftIn40: _createAnimation(FADE_IN + "," + SLIDE_LEFT_IN40, DURATION_3, EASING_FUNCTION_1),
18076
- slideLeftIn400: _createAnimation(FADE_IN + "," + SLIDE_LEFT_IN400, DURATION_3, EASING_FUNCTION_1),
18077
- slideUpIn10: _createAnimation(FADE_IN + "," + SLIDE_UP_IN10, DURATION_3, EASING_FUNCTION_1),
18078
- slideUpIn20: _createAnimation(FADE_IN + "," + SLIDE_UP_IN20, DURATION_3, EASING_FUNCTION_1),
18079
- slideDownIn10: _createAnimation(FADE_IN + "," + SLIDE_DOWN_IN10, DURATION_3, EASING_FUNCTION_1),
18080
- slideDownIn20: _createAnimation(FADE_IN + "," + SLIDE_DOWN_IN20, DURATION_3, EASING_FUNCTION_1),
18081
- slideRightOut10: _createAnimation(FADE_OUT + "," + SLIDE_RIGHT_OUT10, DURATION_3, EASING_FUNCTION_1),
18082
- slideRightOut20: _createAnimation(FADE_OUT + "," + SLIDE_RIGHT_OUT20, DURATION_3, EASING_FUNCTION_1),
18083
- slideRightOut40: _createAnimation(FADE_OUT + "," + SLIDE_RIGHT_OUT40, DURATION_3, EASING_FUNCTION_1),
18084
- slideRightOut400: _createAnimation(FADE_OUT + "," + SLIDE_RIGHT_OUT400, DURATION_3, EASING_FUNCTION_1),
18085
- slideLeftOut10: _createAnimation(FADE_OUT + "," + SLIDE_LEFT_OUT10, DURATION_3, EASING_FUNCTION_1),
18086
- slideLeftOut20: _createAnimation(FADE_OUT + "," + SLIDE_LEFT_OUT20, DURATION_3, EASING_FUNCTION_1),
18087
- slideLeftOut40: _createAnimation(FADE_OUT + "," + SLIDE_LEFT_OUT40, DURATION_3, EASING_FUNCTION_1),
18088
- slideLeftOut400: _createAnimation(FADE_OUT + "," + SLIDE_LEFT_OUT400, DURATION_3, EASING_FUNCTION_1),
18089
- slideUpOut10: _createAnimation(FADE_OUT + "," + SLIDE_UP_OUT10, DURATION_3, EASING_FUNCTION_1),
18090
- slideUpOut20: _createAnimation(FADE_OUT + "," + SLIDE_UP_OUT20, DURATION_3, EASING_FUNCTION_1),
18091
- slideDownOut10: _createAnimation(FADE_OUT + "," + SLIDE_DOWN_OUT10, DURATION_3, EASING_FUNCTION_1),
18092
- slideDownOut20: _createAnimation(FADE_OUT + "," + SLIDE_DOWN_OUT20, DURATION_3, EASING_FUNCTION_1),
18093
- scaleUpIn100: _createAnimation(FADE_IN + "," + SCALE_UP100, DURATION_3, EASING_FUNCTION_1),
18094
- scaleDownIn100: _createAnimation(FADE_IN + "," + SCALE_DOWN100, DURATION_3, EASING_FUNCTION_1),
18095
- scaleUpOut103: _createAnimation(FADE_OUT + "," + SCALE_UP103, DURATION_1, EASING_FUNCTION_2),
18096
- scaleDownOut98: _createAnimation(FADE_OUT + "," + SCALE_DOWN98, DURATION_1, EASING_FUNCTION_2),
18097
- fadeIn100: _createAnimation(FADE_IN, DURATION_1, EASING_FUNCTION_2),
18098
- fadeIn200: _createAnimation(FADE_IN, DURATION_2, EASING_FUNCTION_2),
18099
- fadeIn400: _createAnimation(FADE_IN, DURATION_3, EASING_FUNCTION_2),
18100
- fadeIn500: _createAnimation(FADE_IN, DURATION_4, EASING_FUNCTION_2),
18101
- fadeOut100: _createAnimation(FADE_OUT, DURATION_1, EASING_FUNCTION_2),
18102
- fadeOut200: _createAnimation(FADE_OUT, DURATION_2, EASING_FUNCTION_2),
18103
- fadeOut400: _createAnimation(FADE_OUT, DURATION_3, EASING_FUNCTION_2),
18104
- fadeOut500: _createAnimation(FADE_OUT, DURATION_4, EASING_FUNCTION_2),
18105
- rotate90deg: _createAnimation(ROTATE90, '0.1s', EASING_FUNCTION_2),
18106
- rotateN90deg: _createAnimation(ROTATE_N90, '0.1s', EASING_FUNCTION_2)
18107
- };
18108
- function _createAnimation(animationName, animationDuration, animationTimingFunction) {
18109
- return {
18110
- animationName: animationName,
18111
- animationDuration: animationDuration,
18112
- animationTimingFunction: animationTimingFunction,
18113
- animationFillMode: 'both'
18114
- };
18115
- }
18116
- function _createSlideInX(fromX) {
18117
- return keyframes({
18118
- from: {
18119
- transform: "translate3d(" + fromX + "px,0,0)",
18120
- pointerEvents: 'none'
18121
- },
18122
- to: {
18123
- transform: "translate3d(0,0,0)",
18124
- pointerEvents: 'auto'
18125
- }
18126
- });
18127
- }
18128
- function _createSlideInY(fromY) {
18129
- return keyframes({
18130
- from: {
18131
- transform: "translate3d(0," + fromY + "px,0)",
18132
- pointerEvents: 'none'
18133
- },
18134
- to: {
18135
- transform: "translate3d(0,0,0)",
18136
- pointerEvents: 'auto'
18137
- }
18138
- });
18139
- }
18140
- function _createSlideOutX(toX) {
18141
- return keyframes({
18142
- from: {
18143
- transform: "translate3d(0,0,0)"
18144
- },
18145
- to: {
18146
- transform: "translate3d(" + toX + "px,0,0)"
18147
- }
18148
- });
18149
- }
18150
- function _createSlideOutY(toY) {
18151
- return keyframes({
18152
- from: {
18153
- transform: "translate3d(0,0,0)"
18154
- },
18155
- to: {
18156
- transform: "translate3d(0," + toY + "px,0)"
18157
- }
18158
- });
18159
- }
18160
-
18161
17328
  // When adding or removing a color, make sure you keep this consistent with IColorClassNames
18162
17329
  // by adding the color variants.
18163
17330
  var DefaultPalette = {
@@ -18457,68 +17624,6 @@ function _getFontBaseUrl() {
18457
17624
  */
18458
17625
  registerDefaultFontFaces(_getFontBaseUrl());
18459
17626
 
18460
- var HighContrastSelector = '@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)';
18461
-
18462
- var ZIndexes;
18463
- (function (ZIndexes) {
18464
- ZIndexes.Nav = 1;
18465
- /**
18466
- * @deprecated ScrollablePane
18467
- */
18468
- ZIndexes.ScrollablePane = 1;
18469
- ZIndexes.FocusStyle = 1;
18470
- ZIndexes.Coachmark = 1000;
18471
- ZIndexes.Layer = 1000000;
18472
- ZIndexes.KeytipLayer = 1000001;
18473
- })(ZIndexes || (ZIndexes = {}));
18474
-
18475
- /**
18476
- * Generates style to clear browser specific focus styles.
18477
- */
18478
- function focusClear() {
18479
- return {
18480
- selectors: {
18481
- '&::-moz-focus-inner': {
18482
- // Clear the focus border in Firefox. Reference: http://stackoverflow.com/a/199319/1436671
18483
- border: 0
18484
- },
18485
- '&': {
18486
- // Clear browser specific focus styles and use transparent as placeholder for focus style
18487
- outline: 'transparent'
18488
- }
18489
- }
18490
- };
18491
- }
18492
-
18493
- /**
18494
- * Internal memoized function which simply takes in the class map and the
18495
- * disable boolean. These immutable values can be memoized.
18496
- */
18497
- var _getGlobalClassNames = memoizeFunction(function (classNames, disableGlobalClassNames) {
18498
- var styleSheet = Stylesheet.getInstance();
18499
- if (disableGlobalClassNames) {
18500
- // disable global classnames
18501
- return Object.keys(classNames).reduce(function (acc, className) {
18502
- acc[className] = styleSheet.getClassName(classNames[className]);
18503
- return acc;
18504
- }, {});
18505
- }
18506
- // use global classnames
18507
- return classNames;
18508
- });
18509
- /**
18510
- * Checks for the `disableGlobalClassNames` property on the `theme` to determine if it should return `classNames`
18511
- * Note that calls to this function are memoized.
18512
- *
18513
- * @param classNames - The collection of global class names that apply when the flag is false. Make sure to pass in
18514
- * the same instance on each call to benefit from memoization.
18515
- * @param theme - The theme to check the flag on
18516
- * @param disableGlobalClassNames - Optional. Explicitly opt in/out of disabling global classnames. Defaults to false.
18517
- */
18518
- function getGlobalClassNames(classNames, theme, disableGlobalClassNames) {
18519
- return _getGlobalClassNames(classNames, disableGlobalClassNames !== undefined ? disableGlobalClassNames : theme.disableGlobalClassNames);
18520
- }
18521
-
18522
17627
  // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
18523
17628
  // See LICENSE in the project root for license information.
18524
17629
  var __assign$2 = undefined && undefined.__assign || function () {
@@ -19076,1657 +18181,11 @@ function _loadFonts(theme) {
19076
18181
  return lines;
19077
18182
  }
19078
18183
 
19079
- /**
19080
- * {@docCategory AnimationClassNames}
19081
- */
19082
- var AnimationClassNames = buildClassMap(AnimationStyles);
19083
-
19084
18184
  // Do not modify this file; it is generated as part of publish.
19085
18185
  setVersion('@uifabric/styling', '7.25.0');
19086
18186
 
19087
18187
  initializeThemeInCustomizations();
19088
18188
 
19089
- var DirectionalHint = {
19090
- /**
19091
- * Appear above the target element, with the left edges of the callout and target aligning.
19092
- */
19093
- topLeftEdge: 0,
19094
- /**
19095
- * Appear above the target element, with the centers of the callout and target aligning.
19096
- */
19097
- topCenter: 1,
19098
- /**
19099
- * Appear above the target element, with the right edges of the callout and target aligning.
19100
- */
19101
- topRightEdge: 2,
19102
- /**
19103
- * Appear above the target element, aligning with the target element such that the callout tends toward
19104
- * the center of the screen.
19105
- */
19106
- topAutoEdge: 3,
19107
- /**
19108
- * Appear below the target element, with the left edges of the callout and target aligning.
19109
- */
19110
- bottomLeftEdge: 4,
19111
- /**
19112
- * Appear below the target element, with the centers of the callout and target aligning.
19113
- */
19114
- bottomCenter: 5,
19115
- /**
19116
- * Appear below the target element, with the right edges of the callout and target aligning.
19117
- */
19118
- bottomRightEdge: 6,
19119
- /**
19120
- * Appear below the target element, aligning with the target element such that the callout tends toward
19121
- * the center of the screen.
19122
- */
19123
- bottomAutoEdge: 7,
19124
- /**
19125
- * Appear to the left of the target element, with the top edges of the callout and target aligning.
19126
- */
19127
- leftTopEdge: 8,
19128
- /**
19129
- * Appear to the left of the target element, with the centers of the callout and target aligning.
19130
- */
19131
- leftCenter: 9,
19132
- /**
19133
- * Appear to the left of the target element, with the bottom edges of the callout and target aligning.
19134
- */
19135
- leftBottomEdge: 10,
19136
- /**
19137
- * Appear to the right of the target element, with the top edges of the callout and target aligning.
19138
- */
19139
- rightTopEdge: 11,
19140
- /**
19141
- * Appear to the right of the target element, with the centers of the callout and target aligning.
19142
- */
19143
- rightCenter: 12,
19144
- /**
19145
- * Appear to the right of the target element, with the bottom edges of the callout and target aligning.
19146
- */
19147
- rightBottomEdge: 13
19148
- };
19149
-
19150
- var RectangleEdge;
19151
- (function (RectangleEdge) {
19152
- RectangleEdge[RectangleEdge["top"] = 1] = "top";
19153
- RectangleEdge[RectangleEdge["bottom"] = -1] = "bottom";
19154
- RectangleEdge[RectangleEdge["left"] = 2] = "left";
19155
- RectangleEdge[RectangleEdge["right"] = -2] = "right";
19156
- })(RectangleEdge || (RectangleEdge = {}));
19157
- var Position;
19158
- (function (Position) {
19159
- Position[Position["top"] = 0] = "top";
19160
- Position[Position["bottom"] = 1] = "bottom";
19161
- Position[Position["start"] = 2] = "start";
19162
- Position[Position["end"] = 3] = "end";
19163
- })(Position || (Position = {}));
19164
-
19165
- var _a$1;
19166
- var Rectangle = /** @class */function (_super) {
19167
- __extends$2(Rectangle, _super);
19168
- function Rectangle() {
19169
- return _super !== null && _super.apply(this, arguments) || this;
19170
- }
19171
- return Rectangle;
19172
- }(Rectangle$1);
19173
- function _createPositionData(targetEdge, alignmentEdge, isAuto) {
19174
- return {
19175
- targetEdge: targetEdge,
19176
- alignmentEdge: alignmentEdge,
19177
- isAuto: isAuto
19178
- };
19179
- }
19180
- // Currently the beakPercent is set to 50 for all positions meaning that it should tend to the center of the target
19181
- var DirectionalDictionary = (_a$1 = {}, _a$1[DirectionalHint.topLeftEdge] = _createPositionData(RectangleEdge.top, RectangleEdge.left), _a$1[DirectionalHint.topCenter] = _createPositionData(RectangleEdge.top), _a$1[DirectionalHint.topRightEdge] = _createPositionData(RectangleEdge.top, RectangleEdge.right), _a$1[DirectionalHint.topAutoEdge] = _createPositionData(RectangleEdge.top, undefined, true), _a$1[DirectionalHint.bottomLeftEdge] = _createPositionData(RectangleEdge.bottom, RectangleEdge.left), _a$1[DirectionalHint.bottomCenter] = _createPositionData(RectangleEdge.bottom), _a$1[DirectionalHint.bottomRightEdge] = _createPositionData(RectangleEdge.bottom, RectangleEdge.right), _a$1[DirectionalHint.bottomAutoEdge] = _createPositionData(RectangleEdge.bottom, undefined, true), _a$1[DirectionalHint.leftTopEdge] = _createPositionData(RectangleEdge.left, RectangleEdge.top), _a$1[DirectionalHint.leftCenter] = _createPositionData(RectangleEdge.left), _a$1[DirectionalHint.leftBottomEdge] = _createPositionData(RectangleEdge.left, RectangleEdge.bottom), _a$1[DirectionalHint.rightTopEdge] = _createPositionData(RectangleEdge.right, RectangleEdge.top), _a$1[DirectionalHint.rightCenter] = _createPositionData(RectangleEdge.right), _a$1[DirectionalHint.rightBottomEdge] = _createPositionData(RectangleEdge.right, RectangleEdge.bottom), _a$1);
19182
- function _isRectangleWithinBounds(rect, boundingRect) {
19183
- if (rect.top < boundingRect.top) {
19184
- return false;
19185
- }
19186
- if (rect.bottom > boundingRect.bottom) {
19187
- return false;
19188
- }
19189
- if (rect.left < boundingRect.left) {
19190
- return false;
19191
- }
19192
- if (rect.right > boundingRect.right) {
19193
- return false;
19194
- }
19195
- return true;
19196
- }
19197
- /**
19198
- * Gets all of the edges of a rectangle that are outside of the given bounds.
19199
- * If there are no out of bounds edges it returns an empty array.
19200
- */
19201
- function _getOutOfBoundsEdges(rect, boundingRect) {
19202
- var outOfBounds = new Array();
19203
- if (rect.top < boundingRect.top) {
19204
- outOfBounds.push(RectangleEdge.top);
19205
- }
19206
- if (rect.bottom > boundingRect.bottom) {
19207
- outOfBounds.push(RectangleEdge.bottom);
19208
- }
19209
- if (rect.left < boundingRect.left) {
19210
- outOfBounds.push(RectangleEdge.left);
19211
- }
19212
- if (rect.right > boundingRect.right) {
19213
- outOfBounds.push(RectangleEdge.right);
19214
- }
19215
- return outOfBounds;
19216
- }
19217
- function _getEdgeValue(rect, edge) {
19218
- return rect[RectangleEdge[edge]];
19219
- }
19220
- function _setEdgeValue(rect, edge, value) {
19221
- rect[RectangleEdge[edge]] = value;
19222
- return rect;
19223
- }
19224
- /**
19225
- * Returns the middle value of an edge. Only returns 1 value rather than xy coordinates as
19226
- * the itself already contains the other coordinate.
19227
- * For instance, a bottom edge's current value is it's y coordinate, so the number returned is the x.
19228
- */
19229
- function _getCenterValue(rect, edge) {
19230
- var edges = _getFlankingEdges(edge);
19231
- return (_getEdgeValue(rect, edges.positiveEdge) + _getEdgeValue(rect, edges.negativeEdge)) / 2;
19232
- }
19233
- /**
19234
- * Flips the value depending on the edge.
19235
- * If the edge is a "positive" edge, Top or Left, then the value should stay as it is.
19236
- * If the edge is a "negative" edge, Bottom or Right, then the value should be flipped.
19237
- * This is to account for the fact that the coordinates are effectively reveserved in certain cases for the
19238
- * "negative" edges.
19239
- *
19240
- * For example, when testing to see if a bottom edge 1 is within the bounds of another bottom edge 2:
19241
- * If edge 1 is greater than edge 2 then it is out of bounds. This is reversed for top edge 1 and top edge 2.
19242
- * If top edge 1 is less than edge 2 then it is out of bounds.
19243
- */
19244
- function _getRelativeEdgeValue(edge, value) {
19245
- if (edge > 0) {
19246
- return value;
19247
- } else {
19248
- return value * -1;
19249
- }
19250
- }
19251
- function _getRelativeRectEdgeValue(edge, rect) {
19252
- return _getRelativeEdgeValue(edge, _getEdgeValue(rect, edge));
19253
- }
19254
- function _getRelativeEdgeDifference(rect, hostRect, edge) {
19255
- var edgeDifference = _getEdgeValue(rect, edge) - _getEdgeValue(hostRect, edge);
19256
- return _getRelativeEdgeValue(edge, edgeDifference);
19257
- }
19258
- /**
19259
- * Moves the edge of a rectangle to the value given. It only moves the edge in a linear direction based on that edge.
19260
- * For example, if it's a bottom edge it will only change y coordinates.
19261
- */
19262
- function _moveEdge(rect, edge, newValue) {
19263
- var difference = _getEdgeValue(rect, edge) - newValue;
19264
- rect = _setEdgeValue(rect, edge, newValue);
19265
- rect = _setEdgeValue(rect, edge * -1, _getEdgeValue(rect, edge * -1) - difference);
19266
- return rect;
19267
- }
19268
- /**
19269
- * Aligns the edge on the passed in rect to the target. If there is a gap then it will have that space between the two.
19270
- */
19271
- function _alignEdges(rect, target, edge, gap) {
19272
- if (gap === void 0) {
19273
- gap = 0;
19274
- }
19275
- return _moveEdge(rect, edge, _getEdgeValue(target, edge) + _getRelativeEdgeValue(edge, gap));
19276
- }
19277
- /**
19278
- * Aligns the targetEdge on the passed in target to the rects corresponding opposite edge.
19279
- * For instance if targetEdge is bottom, then the rects top will be moved to match it.
19280
- */
19281
- function _alignOppositeEdges(rect, target, targetEdge, gap) {
19282
- if (gap === void 0) {
19283
- gap = 0;
19284
- }
19285
- var oppositeEdge = targetEdge * -1;
19286
- var adjustedGap = _getRelativeEdgeValue(oppositeEdge, gap);
19287
- return _moveEdge(rect, targetEdge * -1, _getEdgeValue(target, targetEdge) + adjustedGap);
19288
- }
19289
- /**
19290
- * Tests to see if the given edge is within the bounds of the given rectangle.
19291
- */
19292
- function _isEdgeInBounds(rect, bounds, edge) {
19293
- var adjustedRectValue = _getRelativeRectEdgeValue(edge, rect);
19294
- return adjustedRectValue > _getRelativeRectEdgeValue(edge, bounds);
19295
- }
19296
- /**
19297
- * Attempts to move the rectangle through various sides of the target to find a place to fit.
19298
- * If no fit is found, the original position should be returned.
19299
- */
19300
- function _flipToFit(rect, target, bounding, positionData, gap) {
19301
- if (gap === void 0) {
19302
- gap = 0;
19303
- }
19304
- var directions = [RectangleEdge.left, RectangleEdge.right, RectangleEdge.bottom, RectangleEdge.top];
19305
- // In RTL page, RectangleEdge.right has a higher priority than RectangleEdge.left, so the order should be updated.
19306
- if (getRTL()) {
19307
- directions[0] *= -1;
19308
- directions[1] *= -1;
19309
- }
19310
- var currentEstimate = rect;
19311
- var currentEdge = positionData.targetEdge;
19312
- var currentAlignment = positionData.alignmentEdge;
19313
- // Keep switching sides until one is found with enough space.
19314
- // If all sides don't fit then return the unmodified element.
19315
- for (var i = 0; i < 4; i++) {
19316
- if (!_isEdgeInBounds(currentEstimate, bounding, currentEdge)) {
19317
- directions.splice(directions.indexOf(currentEdge), 1);
19318
- if (directions.length > 0) {
19319
- if (directions.indexOf(currentEdge * -1) > -1) {
19320
- currentEdge = currentEdge * -1;
19321
- } else {
19322
- currentAlignment = currentEdge;
19323
- currentEdge = directions.slice(-1)[0];
19324
- }
19325
- currentEstimate = _estimatePosition(rect, target, {
19326
- targetEdge: currentEdge,
19327
- alignmentEdge: currentAlignment
19328
- }, gap);
19329
- }
19330
- } else {
19331
- return {
19332
- elementRectangle: currentEstimate,
19333
- targetEdge: currentEdge,
19334
- alignmentEdge: currentAlignment
19335
- };
19336
- }
19337
- }
19338
- return {
19339
- elementRectangle: rect,
19340
- targetEdge: positionData.targetEdge,
19341
- alignmentEdge: currentAlignment
19342
- };
19343
- }
19344
- /**
19345
- * Flips only the alignment edge of an element rectangle. This is used instead of nudging the alignment edges
19346
- * into position, when alignTargetEdge is specified.
19347
- */
19348
- function _flipAlignmentEdge(elementEstimate, target, gap, coverTarget) {
19349
- var alignmentEdge = elementEstimate.alignmentEdge,
19350
- targetEdge = elementEstimate.targetEdge,
19351
- elementRectangle = elementEstimate.elementRectangle;
19352
- var oppositeEdge = alignmentEdge * -1;
19353
- var newEstimate = _estimatePosition(elementRectangle, target, {
19354
- targetEdge: targetEdge,
19355
- alignmentEdge: oppositeEdge
19356
- }, gap, coverTarget);
19357
- return {
19358
- elementRectangle: newEstimate,
19359
- targetEdge: targetEdge,
19360
- alignmentEdge: oppositeEdge
19361
- };
19362
- }
19363
- /**
19364
- * Adjusts a element rectangle to fit within the bounds given. If directionalHintFixed or covertarget is passed in
19365
- * then the element will not flip sides on the target. They will, however, be nudged to fit within the bounds given.
19366
- */
19367
- function _adjustFitWithinBounds(element, target, bounding, positionData, gap, directionalHintFixed, coverTarget) {
19368
- if (gap === void 0) {
19369
- gap = 0;
19370
- }
19371
- var alignmentEdge = positionData.alignmentEdge,
19372
- alignTargetEdge = positionData.alignTargetEdge;
19373
- var elementEstimate = {
19374
- elementRectangle: element,
19375
- targetEdge: positionData.targetEdge,
19376
- alignmentEdge: alignmentEdge
19377
- };
19378
- if (!directionalHintFixed && !coverTarget) {
19379
- elementEstimate = _flipToFit(element, target, bounding, positionData, gap);
19380
- }
19381
- var outOfBounds = _getOutOfBoundsEdges(element, bounding);
19382
- if (alignTargetEdge) {
19383
- // The edge opposite to the alignment edge might be out of bounds.
19384
- // Flip alignment to see if we can get it within bounds.
19385
- if (elementEstimate.alignmentEdge && outOfBounds.indexOf(elementEstimate.alignmentEdge * -1) > -1) {
19386
- var flippedElementEstimate = _flipAlignmentEdge(elementEstimate, target, gap, coverTarget);
19387
- if (_isRectangleWithinBounds(flippedElementEstimate.elementRectangle, bounding)) {
19388
- return flippedElementEstimate;
19389
- } else {
19390
- // If the flipped elements edges are still out of bounds, try nudging it.
19391
- elementEstimate = _alignOutOfBoundsEdges(_getOutOfBoundsEdges(flippedElementEstimate.elementRectangle, bounding), elementEstimate, bounding);
19392
- }
19393
- }
19394
- } else {
19395
- elementEstimate = _alignOutOfBoundsEdges(outOfBounds, elementEstimate, bounding);
19396
- }
19397
- return elementEstimate;
19398
- }
19399
- /**
19400
- * Iterates through a list of out of bounds edges and tries to nudge and align them.
19401
- * @param outOfBoundsEdges - Array of edges that are out of bounds
19402
- * @param elementEstimate - The current element positioning estimate
19403
- * @param bounding - The current bounds
19404
- */
19405
- function _alignOutOfBoundsEdges(outOfBoundsEdges, elementEstimate, bounding) {
19406
- for (var _i = 0, outOfBoundsEdges_1 = outOfBoundsEdges; _i < outOfBoundsEdges_1.length; _i++) {
19407
- var direction = outOfBoundsEdges_1[_i];
19408
- elementEstimate.elementRectangle = _alignEdges(elementEstimate.elementRectangle, bounding, direction);
19409
- }
19410
- return elementEstimate;
19411
- }
19412
- /**
19413
- * Moves the middle point on an edge to the point given.
19414
- * Only moves in one direction. For instance if a bottom edge is passed in, then
19415
- * the bottom edge will be moved in the x axis to match the point.
19416
- */
19417
- function _centerEdgeToPoint(rect, edge, point) {
19418
- var positiveEdge = _getFlankingEdges(edge).positiveEdge;
19419
- var elementMiddle = _getCenterValue(rect, edge);
19420
- var distanceToMiddle = elementMiddle - _getEdgeValue(rect, positiveEdge);
19421
- return _moveEdge(rect, positiveEdge, point - distanceToMiddle);
19422
- }
19423
- /**
19424
- * Moves the element rectangle to be appropriately positioned relative to a given target.
19425
- * Does not flip or adjust the element.
19426
- */
19427
- function _estimatePosition(elementToPosition, target, positionData, gap, coverTarget) {
19428
- if (gap === void 0) {
19429
- gap = 0;
19430
- }
19431
- var estimatedElementPosition;
19432
- var alignmentEdge = positionData.alignmentEdge,
19433
- targetEdge = positionData.targetEdge;
19434
- var elementEdge = coverTarget ? targetEdge : targetEdge * -1;
19435
- estimatedElementPosition = coverTarget ? _alignEdges(elementToPosition, target, targetEdge, gap) : _alignOppositeEdges(elementToPosition, target, targetEdge, gap);
19436
- // if no alignment edge is provided it's supposed to be centered.
19437
- if (!alignmentEdge) {
19438
- var targetMiddlePoint = _getCenterValue(target, targetEdge);
19439
- estimatedElementPosition = _centerEdgeToPoint(estimatedElementPosition, elementEdge, targetMiddlePoint);
19440
- } else {
19441
- estimatedElementPosition = _alignEdges(estimatedElementPosition, target, alignmentEdge);
19442
- }
19443
- return estimatedElementPosition;
19444
- }
19445
- /**
19446
- * Returns the non-opposite edges of the target edge.
19447
- * For instance if bottom is passed in then left and right will be returned.
19448
- */
19449
- function _getFlankingEdges(edge) {
19450
- if (edge === RectangleEdge.top || edge === RectangleEdge.bottom) {
19451
- return {
19452
- positiveEdge: RectangleEdge.left,
19453
- negativeEdge: RectangleEdge.right
19454
- };
19455
- } else {
19456
- return {
19457
- positiveEdge: RectangleEdge.top,
19458
- negativeEdge: RectangleEdge.bottom
19459
- };
19460
- }
19461
- }
19462
- /**
19463
- * Retrieve the final value for the return edge of elementRectangle. If the elementRectangle is closer to one side
19464
- * of the bounds versus the other, the return edge is flipped to grow inward.
19465
- */
19466
- function _finalizeReturnEdge(elementRectangle, returnEdge, bounds) {
19467
- if (bounds && Math.abs(_getRelativeEdgeDifference(elementRectangle, bounds, returnEdge)) > Math.abs(_getRelativeEdgeDifference(elementRectangle, bounds, returnEdge * -1))) {
19468
- return returnEdge * -1;
19469
- }
19470
- return returnEdge;
19471
- }
19472
- /**
19473
- * Finalizes the element positon based on the hostElement. Only returns the
19474
- * rectangle values to position such that they are anchored to the target.
19475
- * This helps prevent resizing from looking very strange.
19476
- * For instance, if the target edge is top and aligned with the left side then
19477
- * the bottom and left values are returned so as the callou shrinks it shrinks towards that corner.
19478
- */
19479
- function _finalizeElementPosition(elementRectangle, hostElement, targetEdge, bounds, alignmentEdge, coverTarget, doNotFinalizeReturnEdge) {
19480
- var returnValue = {};
19481
- var hostRect = _getRectangleFromElement(hostElement);
19482
- var elementEdge = coverTarget ? targetEdge : targetEdge * -1;
19483
- var elementEdgeString = RectangleEdge[elementEdge];
19484
- var returnEdge = alignmentEdge ? alignmentEdge : _getFlankingEdges(targetEdge).positiveEdge;
19485
- if (!doNotFinalizeReturnEdge) {
19486
- returnEdge = _finalizeReturnEdge(elementRectangle, returnEdge, bounds);
19487
- }
19488
- returnValue[elementEdgeString] = _getRelativeEdgeDifference(elementRectangle, hostRect, elementEdge);
19489
- returnValue[RectangleEdge[returnEdge]] = _getRelativeEdgeDifference(elementRectangle, hostRect, returnEdge);
19490
- return returnValue;
19491
- }
19492
- // Since the beak is rotated 45 degrees the actual height/width is the length of the diagonal.
19493
- // We still want to position the beak based on it's midpoint which does not change. It will
19494
- // be at (beakwidth / 2, beakwidth / 2)
19495
- function _calculateActualBeakWidthInPixels(beakWidth) {
19496
- return Math.sqrt(beakWidth * beakWidth * 2);
19497
- }
19498
- /**
19499
- * Returns the appropriate IPositionData based on the props altered for RTL.
19500
- * If directionalHintForRTL is passed in that is used if the page is RTL.
19501
- * If directionalHint is specified, no directionalHintForRTL is available, and the page is RTL, the hint will be
19502
- * flipped (e.g. bottomLeftEdge would become bottomRightEdge).
19503
- *
19504
- * If there is no directionalHint passed in, bottomAutoEdge is chosen automatically.
19505
- */
19506
- function _getPositionData(directionalHint, directionalHintForRTL, previousPositions) {
19507
- if (directionalHint === void 0) {
19508
- directionalHint = DirectionalHint.bottomAutoEdge;
19509
- }
19510
- if (previousPositions) {
19511
- return {
19512
- alignmentEdge: previousPositions.alignmentEdge,
19513
- isAuto: previousPositions.isAuto,
19514
- targetEdge: previousPositions.targetEdge
19515
- };
19516
- }
19517
- var positionInformation = __assign$6({}, DirectionalDictionary[directionalHint]);
19518
- if (getRTL()) {
19519
- // If alignment edge exists and that alignment edge is -2 or 2, right or left, then flip it.
19520
- if (positionInformation.alignmentEdge && positionInformation.alignmentEdge % 2 === 0) {
19521
- positionInformation.alignmentEdge = positionInformation.alignmentEdge * -1;
19522
- }
19523
- return directionalHintForRTL !== undefined ? DirectionalDictionary[directionalHintForRTL] : positionInformation;
19524
- }
19525
- return positionInformation;
19526
- }
19527
- /**
19528
- * Get's the alignment data for the given information. This only really matters if the positioning is Auto.
19529
- * If it is auto then the alignmentEdge should be chosen based on the target edge's position relative to
19530
- * the center of the page.
19531
- */
19532
- function _getAlignmentData(positionData, target, boundingRect, coverTarget, alignTargetEdge) {
19533
- if (positionData.isAuto) {
19534
- positionData.alignmentEdge = getClosestEdge(positionData.targetEdge, target, boundingRect);
19535
- }
19536
- positionData.alignTargetEdge = alignTargetEdge;
19537
- return positionData;
19538
- }
19539
- function getClosestEdge(targetEdge, target, boundingRect) {
19540
- var targetCenter = _getCenterValue(target, targetEdge);
19541
- var boundingCenter = _getCenterValue(boundingRect, targetEdge);
19542
- var _a = _getFlankingEdges(targetEdge),
19543
- positiveEdge = _a.positiveEdge,
19544
- negativeEdge = _a.negativeEdge;
19545
- if (targetCenter <= boundingCenter) {
19546
- return positiveEdge;
19547
- } else {
19548
- return negativeEdge;
19549
- }
19550
- }
19551
- function _positionElementWithinBounds(elementToPosition, target, bounding, positionData, gap, directionalHintFixed, coverTarget) {
19552
- var estimatedElementPosition = _estimatePosition(elementToPosition, target, positionData, gap, coverTarget);
19553
- if (_isRectangleWithinBounds(estimatedElementPosition, bounding)) {
19554
- return {
19555
- elementRectangle: estimatedElementPosition,
19556
- targetEdge: positionData.targetEdge,
19557
- alignmentEdge: positionData.alignmentEdge
19558
- };
19559
- } else {
19560
- return _adjustFitWithinBounds(elementToPosition, target, bounding, positionData, gap, directionalHintFixed, coverTarget);
19561
- }
19562
- }
19563
- function _finalizeBeakPosition(elementPosition, positionedBeak, bounds) {
19564
- var targetEdge = elementPosition.targetEdge * -1;
19565
- // The "host" element that we will use to help position the beak.
19566
- var actualElement = new Rectangle(0, elementPosition.elementRectangle.width, 0, elementPosition.elementRectangle.height);
19567
- var returnValue = {};
19568
- var returnEdge = _finalizeReturnEdge(elementPosition.elementRectangle, elementPosition.alignmentEdge ? elementPosition.alignmentEdge : _getFlankingEdges(targetEdge).positiveEdge, bounds);
19569
- returnValue[RectangleEdge[targetEdge]] = _getEdgeValue(positionedBeak, targetEdge);
19570
- returnValue[RectangleEdge[returnEdge]] = _getRelativeEdgeDifference(positionedBeak, actualElement, returnEdge);
19571
- return {
19572
- elementPosition: __assign$6({}, returnValue),
19573
- closestEdge: getClosestEdge(elementPosition.targetEdge, positionedBeak, actualElement),
19574
- targetEdge: targetEdge
19575
- };
19576
- }
19577
- function _positionBeak(beakWidth, elementPosition) {
19578
- var target = elementPosition.targetRectangle;
19579
- /**
19580
- * Note about beak positioning: The actual beak width only matters for getting the gap between the callout and
19581
- * target, it does not impact the beak placement within the callout. For example example, if the beakWidth is 8,
19582
- * then the actual beakWidth is sqrroot(8^2 + 8^2) = 11.31x11.31. So the callout will need to be an extra 3 pixels
19583
- * away from its target. While the beak is being positioned in the callout it still acts as though it were 8x8.
19584
- */
19585
- var _a = _getFlankingEdges(elementPosition.targetEdge),
19586
- positiveEdge = _a.positiveEdge,
19587
- negativeEdge = _a.negativeEdge;
19588
- var beakTargetPoint = _getCenterValue(target, elementPosition.targetEdge);
19589
- var elementBounds = new Rectangle(beakWidth / 2, elementPosition.elementRectangle.width - beakWidth / 2, beakWidth / 2, elementPosition.elementRectangle.height - beakWidth / 2);
19590
- var beakPosition = new Rectangle(0, beakWidth, 0, beakWidth);
19591
- beakPosition = _moveEdge(beakPosition, elementPosition.targetEdge * -1, -beakWidth / 2);
19592
- beakPosition = _centerEdgeToPoint(beakPosition, elementPosition.targetEdge * -1, beakTargetPoint - _getRelativeRectEdgeValue(positiveEdge, elementPosition.elementRectangle));
19593
- if (!_isEdgeInBounds(beakPosition, elementBounds, positiveEdge)) {
19594
- beakPosition = _alignEdges(beakPosition, elementBounds, positiveEdge);
19595
- } else if (!_isEdgeInBounds(beakPosition, elementBounds, negativeEdge)) {
19596
- beakPosition = _alignEdges(beakPosition, elementBounds, negativeEdge);
19597
- }
19598
- return beakPosition;
19599
- }
19600
- function _getRectangleFromElement(element) {
19601
- var clientRect = element.getBoundingClientRect();
19602
- return new Rectangle(clientRect.left, clientRect.right, clientRect.top, clientRect.bottom);
19603
- }
19604
- function _getRectangleFromIRect(rect) {
19605
- return new Rectangle(rect.left, rect.right, rect.top, rect.bottom);
19606
- }
19607
- function _getTargetRect(bounds, target) {
19608
- var targetRectangle;
19609
- if (target) {
19610
- if (!!target.preventDefault) {
19611
- var ev = target;
19612
- targetRectangle = new Rectangle(ev.clientX, ev.clientX, ev.clientY, ev.clientY);
19613
- } else if (!!target.getBoundingClientRect) {
19614
- targetRectangle = _getRectangleFromElement(target);
19615
- // HTMLImgElements can have x and y values. The check for it being a point must go last.
19616
- } else {
19617
- var point = target;
19618
- targetRectangle = new Rectangle(point.x, point.x, point.y, point.y);
19619
- }
19620
- if (!_isRectangleWithinBounds(targetRectangle, bounds)) {
19621
- var outOfBounds = _getOutOfBoundsEdges(targetRectangle, bounds);
19622
- for (var _i = 0, outOfBounds_1 = outOfBounds; _i < outOfBounds_1.length; _i++) {
19623
- var direction = outOfBounds_1[_i];
19624
- targetRectangle[RectangleEdge[direction]] = bounds[RectangleEdge[direction]];
19625
- }
19626
- }
19627
- } else {
19628
- targetRectangle = new Rectangle(0, 0, 0, 0);
19629
- }
19630
- return targetRectangle;
19631
- }
19632
- /**
19633
- * If max height is less than zero it returns the bounds height instead.
19634
- */
19635
- function _getMaxHeightFromTargetRectangle(targetRectangle, targetEdge, gapSpace, bounds, coverTarget) {
19636
- var maxHeight = 0;
19637
- var directionalHint = DirectionalDictionary[targetEdge];
19638
- // If cover target is set, then the max height should be calculated using the opposite of the target edge since
19639
- // that's the direction that the callout will expand in.
19640
- // For instance, if the directionalhint is bottomLeftEdge then the callout will position so it's bottom edge
19641
- // is aligned with the bottom of the target and expand up towards the top of the screen and the calculated max height
19642
- // is (bottom of target) - (top of screen) - gapSpace.
19643
- var target = coverTarget ? directionalHint.targetEdge * -1 : directionalHint.targetEdge;
19644
- if (target === RectangleEdge.top) {
19645
- maxHeight = _getEdgeValue(targetRectangle, directionalHint.targetEdge) - bounds.top - gapSpace;
19646
- } else if (target === RectangleEdge.bottom) {
19647
- maxHeight = bounds.bottom - _getEdgeValue(targetRectangle, directionalHint.targetEdge) - gapSpace;
19648
- } else {
19649
- maxHeight = bounds.bottom - targetRectangle.top - gapSpace;
19650
- }
19651
- return maxHeight > 0 ? maxHeight : bounds.height;
19652
- }
19653
- function _positionElementRelative(props, elementToPosition, boundingRect, previousPositions) {
19654
- var gap = props.gapSpace ? props.gapSpace : 0;
19655
- var targetRect = _getTargetRect(boundingRect, props.target);
19656
- var positionData = _getAlignmentData(_getPositionData(props.directionalHint, props.directionalHintForRTL, previousPositions), targetRect, boundingRect, props.coverTarget, props.alignTargetEdge);
19657
- var positionedElement = _positionElementWithinBounds(_getRectangleFromElement(elementToPosition), targetRect, boundingRect, positionData, gap, props.directionalHintFixed, props.coverTarget);
19658
- return __assign$6(__assign$6({}, positionedElement), {
19659
- targetRectangle: targetRect
19660
- });
19661
- }
19662
- function _finalizePositionData(positionedElement, hostElement, bounds, coverTarget, doNotFinalizeReturnEdge) {
19663
- var finalizedElement = _finalizeElementPosition(positionedElement.elementRectangle, hostElement, positionedElement.targetEdge, bounds, positionedElement.alignmentEdge, coverTarget, doNotFinalizeReturnEdge);
19664
- return {
19665
- elementPosition: finalizedElement,
19666
- targetEdge: positionedElement.targetEdge,
19667
- alignmentEdge: positionedElement.alignmentEdge
19668
- };
19669
- }
19670
- function _positionCallout(props, hostElement, callout, previousPositions, doNotFinalizeReturnEdge) {
19671
- var beakWidth = props.isBeakVisible ? props.beakWidth || 0 : 0;
19672
- var gap = _calculateActualBeakWidthInPixels(beakWidth) / 2 + (props.gapSpace ? props.gapSpace : 0);
19673
- var positionProps = props;
19674
- positionProps.gapSpace = gap;
19675
- var boundingRect = props.bounds ? _getRectangleFromIRect(props.bounds) : new Rectangle(0, window.innerWidth - getScrollbarWidth(), 0, window.innerHeight);
19676
- var positionedElement = _positionElementRelative(positionProps, callout, boundingRect, previousPositions);
19677
- var beakPositioned = _positionBeak(beakWidth, positionedElement);
19678
- var finalizedBeakPosition = _finalizeBeakPosition(positionedElement, beakPositioned, boundingRect);
19679
- return __assign$6(__assign$6({}, _finalizePositionData(positionedElement, hostElement, boundingRect, props.coverTarget, doNotFinalizeReturnEdge)), {
19680
- beakPosition: finalizedBeakPosition
19681
- });
19682
- }
19683
- function _positionCard(props, hostElement, callout, previousPositions) {
19684
- return _positionCallout(props, hostElement, callout, previousPositions, true);
19685
- }
19686
- function positionCallout(props, hostElement, elementToPosition, previousPositions) {
19687
- return _positionCallout(props, hostElement, elementToPosition, previousPositions);
19688
- }
19689
- function positionCard(props, hostElement, elementToPosition, previousPositions) {
19690
- return _positionCard(props, hostElement, elementToPosition, previousPositions);
19691
- }
19692
- /**
19693
- * Get's the maximum height that a rectangle can have in order to fit below or above a target.
19694
- * If the directional hint specifies a left or right edge (i.e. leftCenter) it will limit the height to the topBorder
19695
- * of the target given.
19696
- * If no bounds are provided then the window is treated as the bounds.
19697
- */
19698
- function getMaxHeight(target, targetEdge, gapSpace, bounds, coverTarget) {
19699
- if (gapSpace === void 0) {
19700
- gapSpace = 0;
19701
- }
19702
- var mouseTarget = target;
19703
- var elementTarget = target;
19704
- var pointTarget = target;
19705
- var targetRect;
19706
- var boundingRectangle = bounds ? _getRectangleFromIRect(bounds) : new Rectangle(0, window.innerWidth - getScrollbarWidth(), 0, window.innerHeight);
19707
- if (!!mouseTarget.stopPropagation) {
19708
- targetRect = new Rectangle(mouseTarget.clientX, mouseTarget.clientX, mouseTarget.clientY, mouseTarget.clientY);
19709
- } else if (pointTarget.x !== undefined && pointTarget.y !== undefined) {
19710
- targetRect = new Rectangle(pointTarget.x, pointTarget.x, pointTarget.y, pointTarget.y);
19711
- } else {
19712
- targetRect = _getRectangleFromElement(elementTarget);
19713
- }
19714
- return _getMaxHeightFromTargetRectangle(targetRect, targetEdge, gapSpace, boundingRectangle, coverTarget);
19715
- }
19716
-
19717
- /**
19718
- * This adds accessibility to Dialog and Panel controls
19719
- */
19720
- var Popup = /** @class */function (_super) {
19721
- __extends$2(Popup, _super);
19722
- function Popup(props) {
19723
- var _this = _super.call(this, props) || this;
19724
- _this._root = React__namespace.createRef();
19725
- _this._disposables = [];
19726
- _this._onKeyDown = function (ev) {
19727
- switch (ev.which) {
19728
- case KeyCodes.escape:
19729
- if (_this.props.onDismiss) {
19730
- _this.props.onDismiss(ev);
19731
- ev.preventDefault();
19732
- ev.stopPropagation();
19733
- }
19734
- break;
19735
- }
19736
- };
19737
- _this._onFocus = function () {
19738
- _this._containsFocus = true;
19739
- };
19740
- _this._onBlur = function (ev) {
19741
- /** The popup should update this._containsFocus when:
19742
- * relatedTarget exists AND
19743
- * the relatedTarget is not contained within the popup.
19744
- * If the relatedTarget is within the popup, that means the popup still has focus
19745
- * and focused moved from one element to another within the popup.
19746
- * If relatedTarget is undefined or null that usually means that a
19747
- * keyboard event occured and focus didn't change
19748
- */
19749
- if (_this._root.current && ev.relatedTarget && !_this._root.current.contains(ev.relatedTarget)) {
19750
- _this._containsFocus = false;
19751
- }
19752
- };
19753
- _this._async = new Async(_this);
19754
- _this.state = {
19755
- needsVerticalScrollBar: false
19756
- };
19757
- return _this;
19758
- }
19759
- // tslint:disable-next-line function-name
19760
- Popup.prototype.UNSAFE_componentWillMount = function () {
19761
- this._originalFocusedElement = getDocument().activeElement;
19762
- };
19763
- Popup.prototype.componentDidMount = function () {
19764
- if (this._root.current) {
19765
- this._disposables.push(on(this._root.current, 'focus', this._onFocus, true), on(this._root.current, 'blur', this._onBlur, true));
19766
- var currentWindow = getWindow$1(this._root.current);
19767
- if (currentWindow) {
19768
- this._disposables.push(on(currentWindow, 'keydown', this._onKeyDown));
19769
- }
19770
- if (doesElementContainFocus(this._root.current)) {
19771
- this._containsFocus = true;
19772
- }
19773
- }
19774
- this._updateScrollBarAsync();
19775
- };
19776
- Popup.prototype.componentDidUpdate = function () {
19777
- this._updateScrollBarAsync();
19778
- this._async.dispose();
19779
- };
19780
- Popup.prototype.componentWillUnmount = function () {
19781
- this._disposables.forEach(function (dispose) {
19782
- return dispose();
19783
- });
19784
- if (this.props.shouldRestoreFocus && this._originalFocusedElement && this._containsFocus && this._originalFocusedElement !== window) {
19785
- // This slight delay is required so that we can unwind the stack, let react try to mess with focus, and then
19786
- // apply the correct focus. Without the setTimeout, we end up focusing the correct thing, and then React wants
19787
- // to reset the focus back to the thing it thinks should have been focused.
19788
- if (this._originalFocusedElement) {
19789
- this._originalFocusedElement.focus();
19790
- }
19791
- }
19792
- // De-reference DOM Node to avoid retainment via transpiled closure of _onKeyDown
19793
- delete this._originalFocusedElement;
19794
- };
19795
- Popup.prototype.render = function () {
19796
- var _a = this.props,
19797
- role = _a.role,
19798
- className = _a.className,
19799
- ariaLabel = _a.ariaLabel,
19800
- ariaLabelledBy = _a.ariaLabelledBy,
19801
- ariaDescribedBy = _a.ariaDescribedBy,
19802
- style = _a.style;
19803
- return React__namespace.createElement("div", __assign$6({
19804
- ref: this._root
19805
- }, getNativeProps(this.props, divProperties), {
19806
- className: className,
19807
- role: role,
19808
- "aria-label": ariaLabel,
19809
- "aria-labelledby": ariaLabelledBy,
19810
- "aria-describedby": ariaDescribedBy,
19811
- onKeyDown: this._onKeyDown,
19812
- style: __assign$6({
19813
- overflowY: this.state.needsVerticalScrollBar ? 'scroll' : undefined,
19814
- outline: 'none'
19815
- }, style)
19816
- }), this.props.children);
19817
- };
19818
- Popup.prototype._updateScrollBarAsync = function () {
19819
- var _this = this;
19820
- this._async.requestAnimationFrame(function () {
19821
- _this._getScrollBar();
19822
- });
19823
- };
19824
- Popup.prototype._getScrollBar = function () {
19825
- // If overflowY is overriden, don't waste time calculating whether the scrollbar is necessary.
19826
- if (this.props.style && this.props.style.overflowY) {
19827
- return;
19828
- }
19829
- var needsVerticalScrollBar = false;
19830
- if (this._root && this._root.current && this._root.current.firstElementChild) {
19831
- // ClientHeight returns the client height of an element rounded to an
19832
- // integer. On some browsers at different zoom levels this rounding
19833
- // can generate different results for the root container and child even
19834
- // though they are the same height. This causes us to show a scroll bar
19835
- // when not needed. Ideally we would use BoundingClientRect().height
19836
- // instead however seems that the API is 90% slower than using ClientHeight.
19837
- // Therefore instead we will calculate the difference between heights and
19838
- // allow for a 1px difference to still be considered ok and not show the
19839
- // scroll bar.
19840
- var rootHeight = this._root.current.clientHeight;
19841
- var firstChildHeight = this._root.current.firstElementChild.clientHeight;
19842
- if (rootHeight > 0 && firstChildHeight > rootHeight) {
19843
- needsVerticalScrollBar = firstChildHeight - rootHeight > 1;
19844
- }
19845
- }
19846
- if (this.state.needsVerticalScrollBar !== needsVerticalScrollBar) {
19847
- this.setState({
19848
- needsVerticalScrollBar: needsVerticalScrollBar
19849
- });
19850
- }
19851
- };
19852
- Popup.defaultProps = {
19853
- shouldRestoreFocus: true
19854
- };
19855
- return Popup;
19856
- }(React__namespace.Component);
19857
-
19858
- var _a;
19859
- var ANIMATIONS = (_a = {}, _a[RectangleEdge.top] = AnimationClassNames.slideUpIn10, _a[RectangleEdge.bottom] = AnimationClassNames.slideDownIn10, _a[RectangleEdge.left] = AnimationClassNames.slideLeftIn10, _a[RectangleEdge.right] = AnimationClassNames.slideRightIn10, _a);
19860
- var getClassNames$3 = classNamesFunction({
19861
- disableCaching: true
19862
- });
19863
- var BEAK_ORIGIN_POSITION = {
19864
- top: 0,
19865
- left: 0
19866
- };
19867
- // Microsoft Edge will overwrite inline styles if there is an animation pertaining to that style.
19868
- // To help ensure that edge will respect the offscreen style opacity
19869
- // filter needs to be added as an additional way to set opacity.
19870
- var OFF_SCREEN_STYLE = {
19871
- opacity: 0,
19872
- filter: 'opacity(0)'
19873
- };
19874
- // role and role description go hand-in-hand. Both would be included by spreading getNativeProps for a basic element
19875
- // This constant array can be used to filter these out of native props spread on callout root and apply them together on
19876
- // calloutMain (the Popup component within the callout)
19877
- var ARIA_ROLE_ATTRIBUTES = ['role', 'aria-roledescription'];
19878
- var CalloutContentBase = /** @class */function (_super) {
19879
- __extends$2(CalloutContentBase, _super);
19880
- function CalloutContentBase(props) {
19881
- var _this = _super.call(this, props) || this;
19882
- _this._hostElement = React__namespace.createRef();
19883
- _this._calloutElement = React__namespace.createRef();
19884
- _this._hasListeners = false;
19885
- _this._disposables = [];
19886
- _this.dismiss = function (ev) {
19887
- var onDismiss = _this.props.onDismiss;
19888
- if (onDismiss) {
19889
- onDismiss(ev);
19890
- }
19891
- };
19892
- _this._dismissOnScroll = function (ev) {
19893
- var preventDismissOnScroll = _this.props.preventDismissOnScroll;
19894
- if (_this.state.positions && !preventDismissOnScroll) {
19895
- _this._dismissOnClickOrScroll(ev);
19896
- }
19897
- };
19898
- _this._dismissOnResize = function (ev) {
19899
- var preventDismissOnResize = _this.props.preventDismissOnResize;
19900
- if (!preventDismissOnResize) {
19901
- _this.dismiss(ev);
19902
- }
19903
- };
19904
- _this._dismissOnLostFocus = function (ev) {
19905
- var preventDismissOnLostFocus = _this.props.preventDismissOnLostFocus;
19906
- if (!preventDismissOnLostFocus) {
19907
- _this._dismissOnClickOrScroll(ev);
19908
- }
19909
- };
19910
- _this._setInitialFocus = function () {
19911
- if (_this.props.setInitialFocus && !_this._didSetInitialFocus && _this.state.positions && _this._calloutElement.current) {
19912
- _this._didSetInitialFocus = true;
19913
- _this._async.requestAnimationFrame(function () {
19914
- return focusFirstChild(_this._calloutElement.current);
19915
- }, _this._calloutElement.current);
19916
- }
19917
- };
19918
- _this._onComponentDidMount = function () {
19919
- _this._addListeners();
19920
- if (_this.props.onLayerMounted) {
19921
- _this.props.onLayerMounted();
19922
- }
19923
- _this._updateAsyncPosition();
19924
- _this._setHeightOffsetEveryFrame();
19925
- };
19926
- _this._mouseDownOnPopup = function () {
19927
- _this._isMouseDownOnPopup = true;
19928
- };
19929
- _this._mouseUpOnPopup = function () {
19930
- _this._isMouseDownOnPopup = false;
19931
- };
19932
- _this._async = new Async(_this);
19933
- _this._didSetInitialFocus = false;
19934
- _this.state = {
19935
- positions: undefined,
19936
- slideDirectionalClassName: undefined,
19937
- // @TODO it looks like this is not even being used anymore.
19938
- calloutElementRect: undefined,
19939
- heightOffset: 0
19940
- };
19941
- _this._positionAttempts = 0;
19942
- return _this;
19943
- }
19944
- CalloutContentBase.prototype.componentDidUpdate = function () {
19945
- if (!this.props.hidden) {
19946
- this._setInitialFocus();
19947
- if (!this._hasListeners) {
19948
- this._addListeners();
19949
- }
19950
- this._updateAsyncPosition();
19951
- } else {
19952
- if (this._hasListeners) {
19953
- this._removeListeners();
19954
- }
19955
- }
19956
- };
19957
- CalloutContentBase.prototype.shouldComponentUpdate = function (newProps, newState) {
19958
- if (!newProps.shouldUpdateWhenHidden && this.props.hidden && newProps.hidden) {
19959
- // Do not update when hidden.
19960
- return false;
19961
- }
19962
- return !shallowCompare(this.props, newProps) || !shallowCompare(this.state, newState);
19963
- };
19964
- // tslint:disable-next-line function-name
19965
- CalloutContentBase.prototype.UNSAFE_componentWillMount = function () {
19966
- this._setTargetWindowAndElement(this._getTarget());
19967
- };
19968
- CalloutContentBase.prototype.componentWillUnmount = function () {
19969
- this._async.dispose();
19970
- this._disposables.forEach(function (dispose) {
19971
- return dispose();
19972
- });
19973
- };
19974
- // tslint:disable-next-line function-name
19975
- CalloutContentBase.prototype.UNSAFE_componentWillUpdate = function (newProps) {
19976
- // If the target element changed, find the new one. If we are tracking target with class name, always find element
19977
- // because we do not know if fabric has rendered a new element and disposed the old element.
19978
- var newTarget = this._getTarget(newProps);
19979
- var oldTarget = this._getTarget();
19980
- if ((newTarget !== oldTarget || typeof newTarget === 'string' || newTarget instanceof String) && !this._blockResetHeight) {
19981
- this._maxHeight = undefined;
19982
- this._setTargetWindowAndElement(newTarget);
19983
- }
19984
- if (newProps.gapSpace !== this.props.gapSpace || this.props.beakWidth !== newProps.beakWidth) {
19985
- this._maxHeight = undefined;
19986
- }
19987
- if (newProps.finalHeight !== this.props.finalHeight) {
19988
- this._setHeightOffsetEveryFrame();
19989
- }
19990
- // Ensure positioning is recalculated when we are about to show a persisted menu.
19991
- if (this._didPositionPropsChange(newProps, this.props)) {
19992
- this._maxHeight = undefined;
19993
- // Target might have been updated while hidden.
19994
- this._setTargetWindowAndElement(newTarget);
19995
- this.setState({
19996
- positions: undefined
19997
- });
19998
- this._didSetInitialFocus = false;
19999
- this._bounds = undefined;
20000
- }
20001
- this._blockResetHeight = false;
20002
- };
20003
- CalloutContentBase.prototype.componentDidMount = function () {
20004
- if (!this.props.hidden) {
20005
- this._onComponentDidMount();
20006
- }
20007
- };
20008
- CalloutContentBase.prototype.render = function () {
20009
- // If there is no target window then we are likely in server side rendering and we should not render anything.
20010
- if (!this._targetWindow) {
20011
- return null;
20012
- }
20013
- var target = this.props.target;
20014
- var _a = this.props,
20015
- styles = _a.styles,
20016
- style = _a.style,
20017
- ariaLabel = _a.ariaLabel,
20018
- ariaDescribedBy = _a.ariaDescribedBy,
20019
- ariaLabelledBy = _a.ariaLabelledBy,
20020
- className = _a.className,
20021
- isBeakVisible = _a.isBeakVisible,
20022
- children = _a.children,
20023
- beakWidth = _a.beakWidth,
20024
- calloutWidth = _a.calloutWidth,
20025
- calloutMaxWidth = _a.calloutMaxWidth,
20026
- finalHeight = _a.finalHeight,
20027
- _b = _a.hideOverflow,
20028
- hideOverflow = _b === void 0 ? !!finalHeight : _b,
20029
- backgroundColor = _a.backgroundColor,
20030
- calloutMaxHeight = _a.calloutMaxHeight,
20031
- onScroll = _a.onScroll,
20032
- _c = _a.shouldRestoreFocus,
20033
- shouldRestoreFocus = _c === void 0 ? true : _c;
20034
- target = this._getTarget();
20035
- var positions = this.state.positions;
20036
- var getContentMaxHeight = this._getMaxHeight() ? this._getMaxHeight() + this.state.heightOffset : undefined;
20037
- var contentMaxHeight = calloutMaxHeight && getContentMaxHeight && calloutMaxHeight < getContentMaxHeight ? calloutMaxHeight : getContentMaxHeight;
20038
- var overflowYHidden = hideOverflow;
20039
- var beakVisible = isBeakVisible && !!target;
20040
- this._classNames = getClassNames$3(styles, {
20041
- theme: this.props.theme,
20042
- className: className,
20043
- overflowYHidden: overflowYHidden,
20044
- calloutWidth: calloutWidth,
20045
- positions: positions,
20046
- beakWidth: beakWidth,
20047
- backgroundColor: backgroundColor,
20048
- calloutMaxWidth: calloutMaxWidth
20049
- });
20050
- var overflowStyle = __assign$6(__assign$6(__assign$6({}, style), {
20051
- maxHeight: contentMaxHeight
20052
- }), overflowYHidden && {
20053
- overflowY: 'hidden'
20054
- });
20055
- var visibilityStyle = this.props.hidden ? {
20056
- visibility: 'hidden'
20057
- } : undefined;
20058
- // React.CSSProperties does not understand IRawStyle, so the inline animations will need to be cast as any for now.
20059
- var content = React__namespace.createElement("div", {
20060
- ref: this._hostElement,
20061
- className: this._classNames.container,
20062
- style: visibilityStyle
20063
- }, React__namespace.createElement("div", __assign$6({}, getNativeProps(this.props, divProperties, ARIA_ROLE_ATTRIBUTES), {
20064
- className: css(this._classNames.root, positions && positions.targetEdge && ANIMATIONS[positions.targetEdge]),
20065
- style: positions ? positions.elementPosition : OFF_SCREEN_STYLE,
20066
- // Safari and Firefox on Mac OS requires this to back-stop click events so focus remains in the Callout.
20067
- // See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus
20068
- tabIndex: -1,
20069
- ref: this._calloutElement
20070
- }), beakVisible && React__namespace.createElement("div", {
20071
- className: this._classNames.beak,
20072
- style: this._getBeakPosition()
20073
- }), beakVisible && React__namespace.createElement("div", {
20074
- className: this._classNames.beakCurtain
20075
- }), React__namespace.createElement(Popup, __assign$6({}, getNativeProps(this.props, ARIA_ROLE_ATTRIBUTES), {
20076
- ariaLabel: ariaLabel,
20077
- ariaDescribedBy: ariaDescribedBy,
20078
- ariaLabelledBy: ariaLabelledBy,
20079
- className: this._classNames.calloutMain,
20080
- onDismiss: this.dismiss,
20081
- onScroll: onScroll,
20082
- shouldRestoreFocus: shouldRestoreFocus,
20083
- style: overflowStyle,
20084
- onMouseDown: this._mouseDownOnPopup,
20085
- onMouseUp: this._mouseUpOnPopup
20086
- }), children)));
20087
- return content;
20088
- };
20089
- CalloutContentBase.prototype._dismissOnClickOrScroll = function (ev) {
20090
- var target = ev.target;
20091
- var isEventTargetOutsideCallout = this._hostElement.current && !elementContains(this._hostElement.current, target);
20092
- // If mouse is pressed down on callout but moved outside then released, don't dismiss the callout.
20093
- if (isEventTargetOutsideCallout && this._isMouseDownOnPopup) {
20094
- this._isMouseDownOnPopup = false;
20095
- return;
20096
- }
20097
- if (!this._target && isEventTargetOutsideCallout || ev.target !== this._targetWindow && isEventTargetOutsideCallout && (this._target.stopPropagation || !this._target || target !== this._target && !elementContains(this._target, target))) {
20098
- this.dismiss(ev);
20099
- }
20100
- };
20101
- CalloutContentBase.prototype._addListeners = function () {
20102
- var _this = this;
20103
- // This is added so the callout will dismiss when the window is scrolled
20104
- // but not when something inside the callout is scrolled. The delay seems
20105
- // to be required to avoid React firing an async focus event in IE from
20106
- // the target changing focus quickly prior to rendering the callout.
20107
- this._async.setTimeout(function () {
20108
- _this._disposables.push(on(_this._targetWindow, 'scroll', _this._dismissOnScroll, true), on(_this._targetWindow, 'resize', _this._dismissOnResize, true), on(_this._targetWindow.document.documentElement, 'focus', _this._dismissOnLostFocus, true), on(_this._targetWindow.document.documentElement, 'click', _this._dismissOnLostFocus, true));
20109
- _this._hasListeners = true;
20110
- }, 0);
20111
- };
20112
- CalloutContentBase.prototype._removeListeners = function () {
20113
- this._disposables.forEach(function (dispose) {
20114
- return dispose();
20115
- });
20116
- this._disposables = [];
20117
- this._hasListeners = false;
20118
- };
20119
- CalloutContentBase.prototype._updateAsyncPosition = function () {
20120
- var _this = this;
20121
- this._async.requestAnimationFrame(function () {
20122
- return _this._updatePosition();
20123
- }, this._calloutElement.current);
20124
- };
20125
- CalloutContentBase.prototype._getBeakPosition = function () {
20126
- var positions = this.state.positions;
20127
- var beakPostionStyle = __assign$6({}, positions && positions.beakPosition ? positions.beakPosition.elementPosition : null);
20128
- if (!beakPostionStyle.top && !beakPostionStyle.bottom && !beakPostionStyle.left && !beakPostionStyle.right) {
20129
- beakPostionStyle.left = BEAK_ORIGIN_POSITION.left;
20130
- beakPostionStyle.top = BEAK_ORIGIN_POSITION.top;
20131
- }
20132
- return beakPostionStyle;
20133
- };
20134
- CalloutContentBase.prototype._updatePosition = function () {
20135
- // Try to update the target, page might have changed
20136
- this._setTargetWindowAndElement(this._getTarget());
20137
- var positions = this.state.positions;
20138
- var hostElement = this._hostElement.current;
20139
- var calloutElement = this._calloutElement.current;
20140
- // If we expect a target element to position against, we need to wait until `this._target` is resolved. Otherwise
20141
- // we can try to position.
20142
- var expectsTarget = !!this.props.target;
20143
- if (hostElement && calloutElement && (!expectsTarget || this._target)) {
20144
- var currentProps = void 0;
20145
- currentProps = assign(currentProps, this.props);
20146
- currentProps.bounds = this._getBounds();
20147
- currentProps.target = this._target;
20148
- // If there is a finalHeight given then we assume that the user knows and will handle
20149
- // additional positioning adjustments so we should call positionCard
20150
- var newPositions = this.props.finalHeight ? positionCard(currentProps, hostElement, calloutElement, positions) : positionCallout(currentProps, hostElement, calloutElement, positions);
20151
- // Set the new position only when the positions are not exists or one of the new callout positions are different.
20152
- // The position should not change if the position is within 2 decimal places.
20153
- if (!positions && newPositions || positions && newPositions && !this._arePositionsEqual(positions, newPositions) && this._positionAttempts < 5) {
20154
- // We should not reposition the callout more than a few times, if it is then the content is likely resizing
20155
- // and we should stop trying to reposition to prevent a stack overflow.
20156
- this._positionAttempts++;
20157
- this.setState({
20158
- positions: newPositions
20159
- });
20160
- } else if (this._positionAttempts > 0) {
20161
- // Only call the onPositioned callback if the callout has been re-positioned at least once.
20162
- this._positionAttempts = 0;
20163
- if (this.props.onPositioned) {
20164
- this.props.onPositioned(this.state.positions);
20165
- }
20166
- }
20167
- }
20168
- };
20169
- CalloutContentBase.prototype._getBounds = function () {
20170
- if (!this._bounds) {
20171
- var bounds = this.props.bounds;
20172
- var currentBounds = typeof bounds === 'function' ? bounds(this.props.target, this._targetWindow) : bounds;
20173
- if (!currentBounds) {
20174
- currentBounds = {
20175
- top: 0 + this.props.minPagePadding,
20176
- left: 0 + this.props.minPagePadding,
20177
- right: this._targetWindow.innerWidth - this.props.minPagePadding,
20178
- bottom: this._targetWindow.innerHeight - this.props.minPagePadding,
20179
- width: this._targetWindow.innerWidth - this.props.minPagePadding * 2,
20180
- height: this._targetWindow.innerHeight - this.props.minPagePadding * 2
20181
- };
20182
- }
20183
- this._bounds = currentBounds;
20184
- }
20185
- return this._bounds;
20186
- };
20187
- // Max height should remain as synchronous as possible, which is why it is not done using set state.
20188
- // It needs to be synchronous since it will impact the ultimate position of the callout.
20189
- CalloutContentBase.prototype._getMaxHeight = function () {
20190
- var _this = this;
20191
- if (!this._maxHeight) {
20192
- if (this.props.directionalHintFixed && this._target) {
20193
- var beakWidth = this.props.isBeakVisible ? this.props.beakWidth : 0;
20194
- var gapSpace = this.props.gapSpace ? this.props.gapSpace : 0;
20195
- // Since the callout cannot measure it's border size it must be taken into account here. Otherwise it will
20196
- // overlap with the target.
20197
- var totalGap_1 = gapSpace + beakWidth;
20198
- this._async.requestAnimationFrame(function () {
20199
- if (_this._target) {
20200
- _this._maxHeight = getMaxHeight(_this._target, _this.props.directionalHint, totalGap_1, _this._getBounds(), _this.props.coverTarget);
20201
- _this._blockResetHeight = true;
20202
- _this.forceUpdate();
20203
- }
20204
- }, this._target);
20205
- } else {
20206
- this._maxHeight = this._getBounds().height;
20207
- }
20208
- }
20209
- return this._maxHeight;
20210
- };
20211
- CalloutContentBase.prototype._arePositionsEqual = function (positions, newPosition) {
20212
- return this._comparePositions(positions.elementPosition, newPosition.elementPosition) && this._comparePositions(positions.beakPosition.elementPosition, newPosition.beakPosition.elementPosition);
20213
- };
20214
- CalloutContentBase.prototype._comparePositions = function (oldPositions, newPositions) {
20215
- for (var key in newPositions) {
20216
- if (newPositions.hasOwnProperty(key)) {
20217
- var oldPositionEdge = oldPositions[key];
20218
- var newPositionEdge = newPositions[key];
20219
- if (oldPositionEdge !== undefined && newPositionEdge !== undefined) {
20220
- if (oldPositionEdge.toFixed(2) !== newPositionEdge.toFixed(2)) {
20221
- return false;
20222
- }
20223
- } else {
20224
- return false;
20225
- }
20226
- }
20227
- }
20228
- return true;
20229
- };
20230
- CalloutContentBase.prototype._setTargetWindowAndElement = function (target) {
20231
- var currentElement = this._calloutElement.current;
20232
- if (target) {
20233
- if (typeof target === 'string') {
20234
- var currentDoc = getDocument(currentElement);
20235
- this._target = currentDoc ? currentDoc.querySelector(target) : null;
20236
- this._targetWindow = getWindow$1(currentElement);
20237
- } else if (!!target.stopPropagation) {
20238
- this._targetWindow = getWindow$1(target.target);
20239
- this._target = target;
20240
- } else if (!!target.getBoundingClientRect) {
20241
- var targetElement = target;
20242
- this._targetWindow = getWindow$1(targetElement);
20243
- this._target = target;
20244
- } else if (target.current !== undefined) {
20245
- this._target = target.current;
20246
- this._targetWindow = getWindow$1(this._target);
20247
- // HTMLImgElements can have x and y values. The check for it being a point must go last.
20248
- } else {
20249
- this._targetWindow = getWindow$1(currentElement);
20250
- this._target = target;
20251
- }
20252
- } else {
20253
- this._targetWindow = getWindow$1(currentElement);
20254
- }
20255
- };
20256
- CalloutContentBase.prototype._setHeightOffsetEveryFrame = function () {
20257
- var _this = this;
20258
- if (this._calloutElement.current && this.props.finalHeight) {
20259
- this._setHeightOffsetTimer = this._async.requestAnimationFrame(function () {
20260
- var calloutMainElem = _this._calloutElement.current && _this._calloutElement.current.lastChild;
20261
- if (!calloutMainElem) {
20262
- return;
20263
- }
20264
- var cardScrollHeight = calloutMainElem.scrollHeight;
20265
- var cardCurrHeight = calloutMainElem.offsetHeight;
20266
- var scrollDiff = cardScrollHeight - cardCurrHeight;
20267
- _this.setState({
20268
- heightOffset: _this.state.heightOffset + scrollDiff
20269
- });
20270
- if (calloutMainElem.offsetHeight < _this.props.finalHeight) {
20271
- _this._setHeightOffsetEveryFrame();
20272
- } else {
20273
- _this._async.cancelAnimationFrame(_this._setHeightOffsetTimer, _this._calloutElement.current);
20274
- }
20275
- }, this._calloutElement.current);
20276
- }
20277
- };
20278
- // Whether or not the current positions should be reset
20279
- CalloutContentBase.prototype._didPositionPropsChange = function (newProps, oldProps) {
20280
- return !newProps.hidden && newProps.hidden !== oldProps.hidden || newProps.directionalHint !== oldProps.directionalHint;
20281
- };
20282
- CalloutContentBase.prototype._getTarget = function (props) {
20283
- if (props === void 0) {
20284
- props = this.props;
20285
- }
20286
- var target = props.target;
20287
- return target;
20288
- };
20289
- CalloutContentBase.defaultProps = {
20290
- preventDismissOnLostFocus: false,
20291
- preventDismissOnScroll: false,
20292
- preventDismissOnResize: false,
20293
- isBeakVisible: true,
20294
- beakWidth: 16,
20295
- gapSpace: 0,
20296
- minPagePadding: 8,
20297
- directionalHint: DirectionalHint.bottomAutoEdge
20298
- };
20299
- return CalloutContentBase;
20300
- }(React__namespace.Component);
20301
-
20302
- function getBeakStyle(beakWidth) {
20303
- return {
20304
- height: beakWidth,
20305
- width: beakWidth
20306
- };
20307
- }
20308
- var GlobalClassNames$2 = {
20309
- container: 'ms-Callout-container',
20310
- root: 'ms-Callout',
20311
- beak: 'ms-Callout-beak',
20312
- beakCurtain: 'ms-Callout-beakCurtain',
20313
- calloutMain: 'ms-Callout-main'
20314
- };
20315
- var getStyles$3 = function (props) {
20316
- var _a;
20317
- var theme = props.theme,
20318
- className = props.className,
20319
- overflowYHidden = props.overflowYHidden,
20320
- calloutWidth = props.calloutWidth,
20321
- beakWidth = props.beakWidth,
20322
- backgroundColor = props.backgroundColor,
20323
- calloutMaxWidth = props.calloutMaxWidth;
20324
- var classNames = getGlobalClassNames(GlobalClassNames$2, theme);
20325
- var semanticColors = theme.semanticColors,
20326
- effects = theme.effects;
20327
- return {
20328
- container: [classNames.container, {
20329
- position: 'relative'
20330
- }],
20331
- root: [classNames.root, theme.fonts.medium, {
20332
- position: 'absolute',
20333
- boxSizing: 'border-box',
20334
- borderRadius: effects.roundedCorner2,
20335
- boxShadow: effects.elevation16,
20336
- selectors: (_a = {}, _a[HighContrastSelector] = {
20337
- borderWidth: 1,
20338
- borderStyle: 'solid',
20339
- borderColor: 'WindowText'
20340
- }, _a)
20341
- }, focusClear(), className, !!calloutWidth && {
20342
- width: calloutWidth
20343
- }, !!calloutMaxWidth && {
20344
- maxWidth: calloutMaxWidth
20345
- }],
20346
- beak: [classNames.beak, {
20347
- position: 'absolute',
20348
- backgroundColor: semanticColors.menuBackground,
20349
- boxShadow: 'inherit',
20350
- border: 'inherit',
20351
- boxSizing: 'border-box',
20352
- transform: 'rotate(45deg)'
20353
- }, getBeakStyle(beakWidth), backgroundColor && {
20354
- backgroundColor: backgroundColor
20355
- }],
20356
- beakCurtain: [classNames.beakCurtain, {
20357
- position: 'absolute',
20358
- top: 0,
20359
- right: 0,
20360
- bottom: 0,
20361
- left: 0,
20362
- backgroundColor: semanticColors.menuBackground,
20363
- borderRadius: effects.roundedCorner2
20364
- }],
20365
- calloutMain: [classNames.calloutMain, {
20366
- backgroundColor: semanticColors.menuBackground,
20367
- overflowX: 'hidden',
20368
- overflowY: 'auto',
20369
- position: 'relative',
20370
- borderRadius: effects.roundedCorner2
20371
- }, overflowYHidden && {
20372
- overflowY: 'hidden'
20373
- }, backgroundColor && {
20374
- backgroundColor: backgroundColor
20375
- }]
20376
- };
20377
- };
20378
-
20379
- var CalloutContent = styled(CalloutContentBase, getStyles$3, undefined, {
20380
- scope: 'CalloutContent'
20381
- });
20382
-
20383
- var inheritFont = {
20384
- fontFamily: 'inherit'
20385
- };
20386
- var GlobalClassNames$1 = {
20387
- root: 'ms-Fabric',
20388
- bodyThemed: 'ms-Fabric-bodyThemed'
20389
- };
20390
- var getStyles$2 = function (props) {
20391
- var theme = props.theme,
20392
- className = props.className,
20393
- applyTheme = props.applyTheme;
20394
- var classNames = getGlobalClassNames(GlobalClassNames$1, theme);
20395
- return {
20396
- root: [classNames.root, theme.fonts.medium, {
20397
- color: theme.palette.neutralPrimary,
20398
- selectors: {
20399
- '& button': inheritFont,
20400
- '& input': inheritFont,
20401
- '& textarea': inheritFont
20402
- }
20403
- },
20404
- // apply theme to only if applyTheme is true
20405
- applyTheme && {
20406
- color: theme.semanticColors.bodyText,
20407
- backgroundColor: theme.semanticColors.bodyBackground
20408
- }, className],
20409
- bodyThemed: [{
20410
- backgroundColor: theme.semanticColors.bodyBackground
20411
- }]
20412
- };
20413
- };
20414
-
20415
- var getClassNames$2 = classNamesFunction();
20416
- var getFabricTheme = memoizeFunction(function (theme, isRTL) {
20417
- return createTheme(__assign$6(__assign$6({}, theme), {
20418
- rtl: isRTL
20419
- }));
20420
- });
20421
- var getDir = memoizeFunction(function (theme, dir) {
20422
- if (dir) {
20423
- return dir;
20424
- }
20425
- if (theme && theme.rtl !== undefined) {
20426
- return theme.rtl ? 'rtl' : 'ltr';
20427
- }
20428
- return getRTL() ? 'rtl' : 'ltr';
20429
- });
20430
- var FabricBase = /** @class */function (_super) {
20431
- __extends$2(FabricBase, _super);
20432
- function FabricBase() {
20433
- var _this = _super !== null && _super.apply(this, arguments) || this;
20434
- _this._rootElement = React__namespace.createRef();
20435
- _this._removeClassNameFromBody = undefined;
20436
- return _this;
20437
- }
20438
- FabricBase.prototype.render = function () {
20439
- var _a = this.props,
20440
- _b = _a.as,
20441
- Root = _b === void 0 ? 'div' : _b,
20442
- theme = _a.theme,
20443
- dir = _a.dir;
20444
- var classNames = this._getClassNames();
20445
- var divProps = getNativeProps(this.props, divProperties, ['dir']);
20446
- var componentDir = getDir(theme, dir);
20447
- var parentDir = getDir(theme);
20448
- var renderedContent = React__namespace.createElement(Root, __assign$6({
20449
- dir: componentDir
20450
- }, divProps, {
20451
- className: classNames.root,
20452
- ref: this._rootElement
20453
- }));
20454
- // Create the contextual theme if component direction does not match parent direction.
20455
- if (componentDir !== parentDir) {
20456
- renderedContent = React__namespace.createElement(Customizer, {
20457
- settings: {
20458
- theme: getFabricTheme(theme, dir === 'rtl')
20459
- }
20460
- }, renderedContent);
20461
- }
20462
- return React__namespace.createElement(React__namespace.Fragment, null, renderedContent, React__namespace.createElement(FocusRects, {
20463
- rootRef: this._rootElement
20464
- }));
20465
- };
20466
- FabricBase.prototype.componentDidMount = function () {
20467
- this._addClassNameToBody();
20468
- };
20469
- FabricBase.prototype.componentWillUnmount = function () {
20470
- if (this._removeClassNameFromBody) {
20471
- this._removeClassNameFromBody();
20472
- }
20473
- };
20474
- FabricBase.prototype._getClassNames = function () {
20475
- var _a = this.props,
20476
- className = _a.className,
20477
- theme = _a.theme,
20478
- applyTheme = _a.applyTheme;
20479
- var classNames = getClassNames$2(getStyles$2, {
20480
- theme: theme,
20481
- applyTheme: applyTheme,
20482
- className: className
20483
- });
20484
- return classNames;
20485
- };
20486
- FabricBase.prototype._addClassNameToBody = function () {
20487
- if (this.props.applyThemeToBody) {
20488
- var classNames_1 = this._getClassNames();
20489
- var currentDoc_1 = getDocument(this._rootElement.current);
20490
- if (currentDoc_1) {
20491
- currentDoc_1.body.classList.add(classNames_1.bodyThemed);
20492
- this._removeClassNameFromBody = function () {
20493
- currentDoc_1.body.classList.remove(classNames_1.bodyThemed);
20494
- };
20495
- }
20496
- }
20497
- };
20498
- return FabricBase;
20499
- }(React__namespace.Component);
20500
-
20501
- var Fabric = styled(FabricBase, getStyles$2, undefined, {
20502
- scope: 'Fabric'
20503
- });
20504
-
20505
- var _layersByHostId = {};
20506
- var _defaultHostSelector;
20507
- /**
20508
- * Register a layer for a given host id
20509
- * @param hostId Id of the layer host
20510
- * @param layer Layer instance
20511
- */
20512
- function registerLayer(hostId, callback) {
20513
- if (!_layersByHostId[hostId]) {
20514
- _layersByHostId[hostId] = [];
20515
- }
20516
- _layersByHostId[hostId].push(callback);
20517
- }
20518
- /**
20519
- * Unregister a layer for a given host id
20520
- * @param hostId Id of the layer host
20521
- * @param layer Layer instance
20522
- */
20523
- function unregisterLayer(hostId, callback) {
20524
- if (_layersByHostId[hostId]) {
20525
- var idx = _layersByHostId[hostId].indexOf(callback);
20526
- if (idx >= 0) {
20527
- _layersByHostId[hostId].splice(idx, 1);
20528
- if (_layersByHostId[hostId].length === 0) {
20529
- delete _layersByHostId[hostId];
20530
- }
20531
- }
20532
- }
20533
- }
20534
- /**
20535
- * Get the default target selector when determining a host
20536
- */
20537
- function getDefaultTarget() {
20538
- return _defaultHostSelector;
20539
- }
20540
-
20541
- var getClassNames$1 = classNamesFunction();
20542
- var LayerBase = /** @class */function (_super) {
20543
- __extends$2(LayerBase, _super);
20544
- function LayerBase(props) {
20545
- var _this = _super.call(this, props) || this;
20546
- _this._rootRef = React__namespace.createRef();
20547
- _this._createLayerElement = function () {
20548
- var hostId = _this.props.hostId;
20549
- var doc = getDocument(_this._rootRef.current);
20550
- var host = _this._getHost();
20551
- if (!doc || !host) {
20552
- return;
20553
- }
20554
- // If one was already existing, remove.
20555
- _this._removeLayerElement();
20556
- var layerElement = doc.createElement('div');
20557
- var classNames = _this._getClassNames();
20558
- layerElement.className = classNames.root;
20559
- setPortalAttribute(layerElement);
20560
- setVirtualParent(layerElement, _this._rootRef.current);
20561
- _this.props.insertFirst ? host.insertBefore(layerElement, host.firstChild) : host.appendChild(layerElement);
20562
- _this.setState({
20563
- hostId: hostId,
20564
- layerElement: layerElement
20565
- }, function () {
20566
- // tslint:disable-next-line:deprecation
20567
- var _a = _this.props,
20568
- onLayerDidMount = _a.onLayerDidMount,
20569
- onLayerMounted = _a.onLayerMounted;
20570
- if (onLayerMounted) {
20571
- onLayerMounted();
20572
- }
20573
- if (onLayerDidMount) {
20574
- onLayerDidMount();
20575
- }
20576
- });
20577
- };
20578
- _this.state = {};
20579
- if (process.env.NODE_ENV !== 'production') {
20580
- warnDeprecations('Layer', props, {
20581
- onLayerMounted: 'onLayerDidMount'
20582
- });
20583
- }
20584
- return _this;
20585
- }
20586
- LayerBase.prototype.componentDidMount = function () {
20587
- var hostId = this.props.hostId;
20588
- this._createLayerElement();
20589
- if (hostId) {
20590
- registerLayer(hostId, this._createLayerElement);
20591
- }
20592
- };
20593
- LayerBase.prototype.render = function () {
20594
- var layerElement = this.state.layerElement;
20595
- var classNames = this._getClassNames();
20596
- var eventBubblingEnabled = this.props.eventBubblingEnabled;
20597
- return React__namespace.createElement("span", {
20598
- className: "ms-layer",
20599
- ref: this._rootRef
20600
- }, layerElement && ReactDOM__namespace.createPortal(React__namespace.createElement(Fabric, __assign$6({}, !eventBubblingEnabled && _getFilteredEvents(), {
20601
- className: classNames.content
20602
- }), this.props.children), layerElement));
20603
- };
20604
- LayerBase.prototype.componentDidUpdate = function () {
20605
- if (this.props.hostId !== this.state.hostId) {
20606
- this._createLayerElement();
20607
- }
20608
- };
20609
- LayerBase.prototype.componentWillUnmount = function () {
20610
- var hostId = this.props.hostId;
20611
- this._removeLayerElement();
20612
- if (hostId) {
20613
- unregisterLayer(hostId, this._createLayerElement);
20614
- }
20615
- };
20616
- LayerBase.prototype._removeLayerElement = function () {
20617
- var onLayerWillUnmount = this.props.onLayerWillUnmount;
20618
- var layerElement = this.state.layerElement;
20619
- if (onLayerWillUnmount) {
20620
- onLayerWillUnmount();
20621
- }
20622
- if (layerElement && layerElement.parentNode) {
20623
- var parentNode = layerElement.parentNode;
20624
- if (parentNode) {
20625
- parentNode.removeChild(layerElement);
20626
- }
20627
- }
20628
- };
20629
- LayerBase.prototype._getClassNames = function () {
20630
- var _a = this.props,
20631
- className = _a.className,
20632
- styles = _a.styles,
20633
- theme = _a.theme;
20634
- var classNames = getClassNames$1(styles, {
20635
- theme: theme,
20636
- className: className,
20637
- isNotHost: !this.props.hostId
20638
- });
20639
- return classNames;
20640
- };
20641
- LayerBase.prototype._getHost = function () {
20642
- var hostId = this.props.hostId;
20643
- var doc = getDocument(this._rootRef.current);
20644
- if (!doc) {
20645
- return undefined;
20646
- }
20647
- if (hostId) {
20648
- return doc.getElementById(hostId);
20649
- } else {
20650
- var defaultHostSelector = getDefaultTarget();
20651
- return defaultHostSelector ? doc.querySelector(defaultHostSelector) : doc.body;
20652
- }
20653
- };
20654
- LayerBase.defaultProps = {
20655
- onLayerDidMount: function () {
20656
- return undefined;
20657
- },
20658
- onLayerWillUnmount: function () {
20659
- return undefined;
20660
- }
20661
- };
20662
- LayerBase = __decorate([customizable('Layer', ['theme', 'hostId'])], LayerBase);
20663
- return LayerBase;
20664
- }(React__namespace.Component);
20665
- var _onFilterEvent = function (ev) {
20666
- // We should just be able to check ev.bubble here and only stop events that are bubbling up. However, even though
20667
- // mouseenter and mouseleave do NOT bubble up, they are showing up as bubbling. Therefore we stop events based on
20668
- // event name rather than ev.bubble.
20669
- if (ev.eventPhase === Event.BUBBLING_PHASE && ev.type !== 'mouseenter' && ev.type !== 'mouseleave' && ev.type !== 'touchstart' && ev.type !== 'touchend') {
20670
- ev.stopPropagation();
20671
- }
20672
- };
20673
- var _filteredEventProps;
20674
- function _getFilteredEvents() {
20675
- if (!_filteredEventProps) {
20676
- _filteredEventProps = {};
20677
- ['onClick', 'onContextMenu', 'onDoubleClick', 'onDrag', 'onDragEnd', 'onDragEnter', 'onDragExit', 'onDragLeave', 'onDragOver', 'onDragStart', 'onDrop', 'onMouseDown', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseOver', 'onMouseOut', 'onMouseUp', 'onTouchMove', 'onTouchStart', 'onTouchCancel', 'onTouchEnd', 'onKeyDown', 'onKeyPress', 'onKeyUp', 'onFocus', 'onBlur', 'onChange', 'onInput', 'onInvalid', 'onSubmit'].forEach(function (name) {
20678
- return _filteredEventProps[name] = _onFilterEvent;
20679
- });
20680
- }
20681
- return _filteredEventProps;
20682
- }
20683
-
20684
- var GlobalClassNames = {
20685
- root: 'ms-Layer',
20686
- rootNoHost: 'ms-Layer--fixed',
20687
- content: 'ms-Layer-content'
20688
- };
20689
- var getStyles$1 = function (props) {
20690
- var className = props.className,
20691
- isNotHost = props.isNotHost,
20692
- theme = props.theme;
20693
- var classNames = getGlobalClassNames(GlobalClassNames, theme);
20694
- return {
20695
- root: [classNames.root, theme.fonts.medium, isNotHost && [classNames.rootNoHost, {
20696
- position: 'fixed',
20697
- zIndex: ZIndexes.Layer,
20698
- top: 0,
20699
- left: 0,
20700
- bottom: 0,
20701
- right: 0,
20702
- visibility: 'hidden'
20703
- }], className],
20704
- content: [classNames.content, {
20705
- visibility: 'visible'
20706
- }]
20707
- };
20708
- };
20709
-
20710
- var Layer = styled(LayerBase, getStyles$1, undefined, {
20711
- scope: 'Layer',
20712
- fields: ['hostId', 'theme', 'styles']
20713
- });
20714
-
20715
- var Callout = /** @class */function (_super) {
20716
- __extends$2(Callout, _super);
20717
- function Callout() {
20718
- return _super !== null && _super.apply(this, arguments) || this;
20719
- }
20720
- Callout.prototype.render = function () {
20721
- var _a = this.props,
20722
- layerProps = _a.layerProps,
20723
- rest = __rest$1(_a, ["layerProps"]);
20724
- var content = React__namespace.createElement(CalloutContent, __assign$6({}, rest));
20725
- return this.props.doNotLayer ? content : React__namespace.createElement(Layer, __assign$6({}, layerProps), content);
20726
- };
20727
- return Callout;
20728
- }(React__namespace.Component);
20729
-
20730
18189
  /*! *****************************************************************************
20731
18190
  Copyright (c) Microsoft Corporation.
20732
18191
 
@@ -22266,7 +19725,7 @@ var hiddenParentStyles = {
22266
19725
  };
22267
19726
  var COMPONENT_NAME$1 = 'ResizeGroup';
22268
19727
  var ResizeGroupBase = /** @class */function (_super) {
22269
- __extends$2(ResizeGroupBase, _super);
19728
+ __extends$1(ResizeGroupBase, _super);
22270
19729
  function ResizeGroupBase(props) {
22271
19730
  var _this = _super.call(this, props) || this;
22272
19731
  _this._nextResizeGroupStateProvider = getNextResizeGroupStateProvider();
@@ -22394,7 +19853,7 @@ var ResizeGroup = ResizeGroupBase;
22394
19853
  var getClassNames = classNamesFunction();
22395
19854
  var COMPONENT_NAME = 'OverflowSet';
22396
19855
  var OverflowSetBase = /** @class */function (_super) {
22397
- __extends$2(OverflowSetBase, _super);
19856
+ __extends$1(OverflowSetBase, _super);
22398
19857
  function OverflowSetBase(props) {
22399
19858
  var _this = _super.call(this, props) || this;
22400
19859
  _this._focusZone = React__namespace.createRef();
@@ -23822,48 +21281,37 @@ FeedbackDialog.defaultProps = {
23822
21281
  }
23823
21282
  };
23824
21283
 
23825
- var css_248z$j = ".utilities_ops-app-frame_AppBarComponent_AppBar--root {\r\n background-color: var(--blue);\r\n background-color: var(--blue);\r\n height: 48px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n white-space: nowrap;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--leftItems {\r\n width: 100%;\r\n display: flex;\r\n justify-content: start;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--appBarIcons {\r\n margin: 0 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogo {\r\n display: flex;\r\n align-items: center;\r\n flex-direction: column;\r\n margin-left: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogoNew {\r\n display: flex;\r\n flex-direction: column;\r\n margin: 3px 0 0 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--moduleName {\r\n color: white;\r\n font-size: 11px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items {\r\n color: white;\r\n cursor: pointer;\r\n font-size: 18px;\r\n display: flex;\r\n justify-content: center;\r\n margin: 0;\r\n position: relative;\r\n width: 48px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items i {\r\n color: #fff;\r\n font-size: 20px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--lightBulbIcon i {\r\n color: #ffff00;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--yard {\r\n width: 60px;\r\n grid-gap: 5px;\r\n gap: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--yard .utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber {\r\n font-size: 16px;\r\n font-weight: 600;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col {\r\n display: flex;\r\n color: white;\r\n font-size: 13px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col svg {\r\n color: white;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\r\n width: 6rem;\r\n margin-top: 0rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--text {\r\n margin-top: 0.6rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--iconText {\r\n margin-top: 0.4rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchBar,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--placeholderDiv {\r\n margin-top: -0.2rem;\r\n margin-left: 2rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--appBarLeft > img.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\r\n display: inline;\r\n display: initial;\r\n}\r\n\r\n@font-face {\r\n font-family: 'Open Sans';\r\n font-style: italic;\r\n font-weight: 600;\r\n src: url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhmIqOjjg.woff2)\r\n format('woff2');\r\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--appTitle {\r\n color: #fff;\r\n font-family: 'Open Sans', sans-serif;\r\n font-weight: 600;\r\n font-style: italic;\r\n font-size: 14px;\r\n position: relative;\r\n left: 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--item {\r\n display: flex;\r\n color: white;\r\n font-size: 13px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchIcon {\r\n /* margin-left: 10px;\r\n margin-right: 7px; */\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n background: #fff;\r\n color: #1D5AB9;\r\n font-weight: 600;\r\n border-radius: 4px;\r\n box-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0.4), 0px 1.6px 3.6px 0px rgba(0, 0, 0, 0.13), 0px 0.3px 0.9px 0px rgba(0, 0, 0, 0.10);\r\n font-size: 14px;\r\n grid-gap: 8px;\r\n gap: 8px;\r\n margin: 0 8px;\r\n padding: 6px 20px 7px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchIcon span {\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchIcon span i {\r\n font-size: 18px;\r\n color: #1D5AB9;\r\n}\r\n\r\n/* .searchIcon > div {\r\n margin-left: 7px;\r\n} */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchWrapper i {\r\n color: #fff;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchWrapper span {\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault {\r\n color: white;\r\n cursor: default;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\r\n background-color: white;\r\n border-radius: 20px;\r\n margin: 5px;\r\n padding: 0px 10px;\r\n height: 25px;\r\n font-weight: bold;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--light {\r\n border: 1px solid #1d5ab9;\r\n justify-content: flex-start;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightDefault {\r\n color: black;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\r\n background-color: white;\r\n border-radius: 20px;\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\r\n color: green;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable i {\r\n color: green;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline {\r\n color: red;\r\n margin: 5px 0px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline svg {\r\n margin-right: 5px;\r\n margin-left: 5px;\r\n width: 24px;\r\n height: 24px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--SpinnerWrapper {\r\n margin-left: 5px;\r\n display: inline-flex;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i {\r\n font-size: 16px;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i {\r\n line-height: unset;\r\n font-size: 16px;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable {\r\n color: green;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\r\n margin-right: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\r\n color: red;\r\n}\r\n\r\n/* .userMenu {\r\n margin-left: 10px !important;\r\n margin-right: 5px !important;\r\n} */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\r\n margin-left: 10px !important;\r\n margin-right: 10px !important;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\r\n margin-left: 7px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--feedback {\r\n margin: 0 !important;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems {\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button {\r\n cursor: pointer;\r\n position: relative;\r\n\r\n /* position: relative;\r\n top: 2px; */\r\n /* margin-left: 10px; */\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button i {\r\n color: #fff;\r\n font-size: 22px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpDot {\r\n background-color: #ef5350;\r\n border-radius: 50%;\r\n position: absolute;\r\n top: 0px;\r\n left: 13px;\r\n width: 10px;\r\n height: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpTooltip{\r\n position: absolute;\r\n background: #fff;\r\n padding: 8px;\r\n right: 30px;\r\n top: -2px;\r\n border-radius: 2px;\r\n font-weight: 400;\r\n font-size: 12px;\r\n cursor: auto;\r\n color: #000;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpTooltip::before{\r\n content: \"\";\r\n position: absolute;\r\n top: 50%;\r\n left: 100%;\r\n margin-top: -5px;\r\n border-width: 5px;\r\n border-style: solid;\r\n border-color: transparent transparent transparent #fff;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpTooltip i{\r\n color: #000;\r\n font-size: 12px;\r\n margin-left: 5px;\r\n position: relative;\r\n top: 1px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer {\r\n position: absolute;\r\n display: flex;\r\n height: calc(100vh - 48px);\r\n width: 100vw;\r\n bottom: 0;\r\n z-index: 10000;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide {\r\n background-color: rgba(0,0,0,.5);\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--st0{fill:#0075E6;}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--st1{fill:#6A819C;}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--st2{fill:#FFFFFF;}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHideButton {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n position: absolute;\r\n top: 2px;\r\n right: 402px;\r\n height: 38px;\r\n width: 38px;\r\n background-color: white;\r\n z-index: 11000;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--profile {\r\n padding: 5px 7px;\r\n background: #fff;\r\n border-radius: 50%;\r\n font-weight: 600;\r\n color: #1d5ab9;\r\n font-size: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchContainer {\r\n background: rgba(255, 255, 255, 0.40);\r\n -webkit-backdrop-filter: blur(20px);\r\n backdrop-filter: blur(20px);\r\n position: absolute;\r\n top: 50px;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n z-index: 999;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebarWrapper{\r\n position: absolute;\r\n z-index: 10000;\r\n height: 100vh;\r\n top: 50px;\r\n width: 100vw;\r\n background-color: rgba(0,0,0,.5);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebarWrapper .utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebar {\r\n width: 40vw;\r\n position: absolute;\r\n right: 0;\r\n height: calc(100vh - 50px);\r\n padding: 15px;\r\n background-color: white;\r\n overflow-y: auto;\r\n}\r\n\r\n@media only screen and (max-width: 1024px) {\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\r\n margin-right: 2px;\r\n }\r\n\r\n /* .searchIcon {\r\n margin-left: 5px;\r\n margin-right: 2px;\r\n }\r\n\r\n .searchIcon > div {\r\n margin-left: 2px;\r\n } */\r\n\r\n /* .userMenu {\r\n margin-left: 3px !important;\r\n margin-right: 3px !important;\r\n } */\r\n\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\r\n margin-left: 3px !important;\r\n margin-right: 3px !important;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\r\n margin-left: 2px;\r\n }\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--sideBarWrapper\r\n{\r\n position: absolute;\r\n z-index: 10000;\r\n height: 100vh;\r\n top: 48px;\r\n width: 100vw;\r\n background-color: rgba(0,0,0,.5);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--innerNotificationDiv\r\n{\r\n width: 50vw;\r\n position: absolute;\r\n right: 0;\r\n height: 100%;\r\n padding: 15px;\r\n background-color: white;\r\n overflow-y: auto;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationsHeader{\r\n font-size: 18px;\r\n font-weight: 600;\r\n padding-bottom: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationsWrapper{\r\n display: flex;\r\n flex-direction: column;\r\n grid-gap: 5px;\r\n gap: 5px;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationCount{\r\n background-color: #ef5350;\r\n color: white;\r\n font-size: 12px;\r\n width: 1rem;\r\n border-radius: 50%;\r\n position: absolute;\r\n top: -5px;\r\n left: 22px;\r\n height: 1rem;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationCount.utilities_ops-app-frame_AppBarComponent_AppBar--twoChars {\r\n width: 1.1rem;\r\n height: 1.1rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationCount.utilities_ops-app-frame_AppBarComponent_AppBar--threeChars {\r\n width: 1.3rem;\r\n height: 1.3rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--notificationIconWrapper {\r\n cursor: pointer;\r\n margin-left: 12px;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer {\r\n width: 0px;\r\n height: 0px;\r\n border-left: 8px solid transparent;\r\n border-right: 8px solid transparent;\r\n border-bottom: 11px solid white;\r\n position: absolute;\r\n bottom: -13px;\r\n right: 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer.utilities_ops-app-frame_AppBarComponent_AppBar--ideaNoteArrow {\r\n right: 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpArrow {\r\n right: 3px;\r\n bottom: -9px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer.utilities_ops-app-frame_AppBarComponent_AppBar--profileArrow {\r\n bottom: -12px;\r\n right: 8px;\r\n border-left: 7px solid transparent;\r\n border-right: 7px solid transparent;\r\n border-bottom: 10px solid white;\r\n}\r\n";
21284
+ var css_248z$j = ".utilities_ops-app-frame_AppBarComponent_AppBar--root {\r\n background-color: var(--blue);\r\n background-color: var(--blue);\r\n height: 48px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n white-space: nowrap;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--leftItems {\r\n width: 100%;\r\n display: flex;\r\n justify-content: start;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--appBarIcons {\r\n margin: 0 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogo {\r\n display: flex;\r\n align-items: center;\r\n flex-direction: column;\r\n margin-left: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogoNew {\r\n display: flex;\r\n flex-direction: column;\r\n margin: 3px 0 0 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--moduleName {\r\n color: white;\r\n font-size: 11px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items {\r\n color: white;\r\n cursor: pointer;\r\n font-size: 18px;\r\n display: flex;\r\n justify-content: center;\r\n margin: 8px !important;\r\n position: relative;\r\n width: 25px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--logout {\r\n margin-right: 24px !important;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items i {\r\n color: #fff;\r\n font-size: 20px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--lightBulbIcon i {\r\n color: #ffff00;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--language {\r\n width: auto;\r\n grid-gap: 4px;\r\n grid-gap: 5px;\r\n gap: 5px;\r\n display: flex;\r\n font-size: 14px;\r\n font-weight: 600;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--yard {\r\n width: auto;\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n background: #fff;\r\n color: #1D5AB9;\r\n font-weight: 600;\r\n border-radius: 4px;\r\n font-size: 14px;\r\n grid-gap: 8px;\r\n grid-gap: 8px;\r\n gap: 8px;\r\n padding: 2px 8px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--yard span i {\r\n color: #1D5AB9;\r\n font-size: 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--yard .utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber {\r\n font-size: 14px;\r\n font-weight: 400;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col {\r\n display: flex;\r\n color: white;\r\n font-size: 13px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col svg {\r\n color: white;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\r\n width: 6rem;\r\n margin-top: 0rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--text {\r\n margin-top: 0.6rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--iconText {\r\n margin-top: 0.4rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchBar,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--placeholderDiv {\r\n margin-top: -0.2rem;\r\n margin-left: 2rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--appBarLeft > img.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\r\n display: inline;\r\n display: initial;\r\n}\r\n\r\n@font-face {\r\n font-family: 'Open Sans';\r\n font-style: italic;\r\n font-weight: 600;\r\n src: url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhmIqOjjg.woff2)\r\n format('woff2');\r\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--appTitle {\r\n color: #fff;\r\n font-family: 'Open Sans', sans-serif;\r\n font-weight: 600;\r\n font-style: italic;\r\n font-size: 14px;\r\n position: relative;\r\n left: 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--item {\r\n display: flex;\r\n color: white;\r\n font-size: 13px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchIcon {\r\n /* margin-left: 10px;\r\n margin-right: 7px; */\r\n cursor: pointer;\r\n display: flex;\r\n align-items: center;\r\n background: #fff;\r\n color: #1D5AB9;\r\n font-weight: 600;\r\n border-radius: 4px;\r\n box-shadow: inset 0px -2px 0px rgba(0, 0, 0, 0.4), 0px 1.6px 3.6px 0px rgba(0, 0, 0, 0.13), 0px 0.3px 0.9px 0px rgba(0, 0, 0, 0.10);\r\n font-size: 14px;\r\n grid-gap: 8px;\r\n gap: 8px;\r\n margin: 0 8px;\r\n padding: 6px 20px 7px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchIcon span {\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchIcon span i {\r\n font-size: 18px;\r\n color: #1D5AB9;\r\n}\r\n\r\n/* .searchIcon > div {\r\n margin-left: 7px;\r\n} */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchWrapper i {\r\n color: #fff;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchWrapper span {\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault {\r\n color: white;\r\n cursor: default;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\r\n background-color: white;\r\n border-radius: 20px;\r\n margin: 5px;\r\n padding: 0px 10px;\r\n height: 25px;\r\n font-weight: bold;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--light {\r\n border: 1px solid #1d5ab9;\r\n justify-content: flex-start;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightDefault {\r\n color: black;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\r\n background-color: white;\r\n border-radius: 20px;\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\r\n color: green;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable i {\r\n color: green;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline {\r\n color: red;\r\n margin: 5px 0px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline svg {\r\n margin-right: 5px;\r\n margin-left: 5px;\r\n width: 24px;\r\n height: 24px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--SpinnerWrapper {\r\n margin-left: 5px;\r\n display: inline-flex;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i {\r\n font-size: 16px;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i {\r\n line-height: unset;\r\n font-size: 16px;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable {\r\n color: green;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\r\n margin-right: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\r\n color: red;\r\n}\r\n\r\n/* .userMenu {\r\n margin-left: 10px !important;\r\n margin-right: 5px !important;\r\n} */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\r\n margin-left: 10px !important;\r\n margin-right: 10px !important;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\r\n margin-left: 7px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--feedback {\r\n margin: 0 !important;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems {\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button {\r\n cursor: pointer;\r\n position: relative;\r\n top: -2px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button i {\r\n color: #fff;\r\n font-size: 22px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpDot {\r\n background-color: #ef5350;\r\n border-radius: 50%;\r\n position: absolute;\r\n top: 3px;\r\n left: 13px;\r\n width: 10px;\r\n height: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpTooltip{\r\n position: absolute;\r\n background: #fff;\r\n padding: 8px;\r\n right: 30px;\r\n top: -2px;\r\n border-radius: 2px;\r\n font-weight: 400;\r\n font-size: 12px;\r\n cursor: auto;\r\n color: #000;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpTooltip::before{\r\n content: \"\";\r\n position: absolute;\r\n top: 50%;\r\n left: 100%;\r\n margin-top: -5px;\r\n border-width: 5px;\r\n border-style: solid;\r\n border-color: transparent transparent transparent #fff;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpTooltip i{\r\n color: #000;\r\n font-size: 12px;\r\n margin-left: 5px;\r\n position: relative;\r\n top: 1px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer {\r\n position: absolute;\r\n display: flex;\r\n height: calc(100vh - 48px);\r\n width: 100vw;\r\n bottom: 0;\r\n z-index: 10000;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide {\r\n background-color: rgba(0,0,0,.5);\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--st0{fill:#0075E6;}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--st1{fill:#6A819C;}\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--st2{fill:#FFFFFF;}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHideButton {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n position: absolute;\r\n top: 2px;\r\n right: 358px;\r\n height: 38px;\r\n width: 38px;\r\n background-color: white;\r\n z-index: 11000;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--profile {\r\n padding: 5px 7px;\r\n background: #fff;\r\n border-radius: 50%;\r\n font-weight: 600;\r\n color: #1d5ab9;\r\n font-size: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchContainer {\r\n background: rgba(255, 255, 255, 0.40);\r\n -webkit-backdrop-filter: blur(20px);\r\n backdrop-filter: blur(20px);\r\n position: absolute;\r\n top: 50px;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n z-index: 999;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebarWrapper{\r\n position: absolute;\r\n z-index: 10000;\r\n height: 100vh;\r\n top: 48px;\r\n width: 100vw;\r\n background-color: rgba(0,0,0,.5);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebarWrapper .utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebar {\r\n width: 400px;\r\n position: absolute;\r\n right: 0;\r\n height: calc(100vh - 50px);\r\n /* padding: 15px; */\r\n background-color: white;\r\n overflow-y: auto;\r\n}\r\n\r\n@media only screen and (max-width: 1024px) {\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\r\n margin-right: 2px;\r\n }\r\n\r\n /* .searchIcon {\r\n margin-left: 5px;\r\n margin-right: 2px;\r\n }\r\n\r\n .searchIcon > div {\r\n margin-left: 2px;\r\n } */\r\n\r\n /* .userMenu {\r\n margin-left: 3px !important;\r\n margin-right: 3px !important;\r\n } */\r\n\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\r\n margin-left: 3px !important;\r\n margin-right: 3px !important;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\r\n margin-left: 2px;\r\n }\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--sideBarWrapper\r\n{\r\n position: absolute;\r\n z-index: 10000;\r\n height: 100vh;\r\n top: 48px;\r\n width: 100vw;\r\n background-color: rgba(0,0,0,.5);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--innerNotificationDiv\r\n{\r\n width: 400px;\r\n position: absolute;\r\n right: 0;\r\n height: 100%;\r\n padding: 15px;\r\n background-color: white;\r\n overflow-y: auto;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationsHeader{\r\n font-size: 18px;\r\n font-weight: 600;\r\n padding-bottom: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationsWrapper{\r\n display: flex;\r\n flex-direction: column;\r\n grid-gap: 5px;\r\n gap: 5px;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationCount{\r\n background-color: #ef5350;\r\n color: white;\r\n font-size: 12px;\r\n width: 1rem;\r\n border-radius: 50%;\r\n position: absolute;\r\n top: -5px;\r\n left: 22px;\r\n height: 1rem;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationCount.utilities_ops-app-frame_AppBarComponent_AppBar--twoChars {\r\n width: 1.1rem;\r\n height: 1.1rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--notificationCount.utilities_ops-app-frame_AppBarComponent_AppBar--threeChars {\r\n width: 1.3rem;\r\n height: 1.3rem;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items.utilities_ops-app-frame_AppBarComponent_AppBar--notificationIconWrapper {\r\n cursor: pointer;\r\n margin-left: 12px;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer {\r\n width: 0px;\r\n height: 0px;\r\n border-left: 8px solid transparent;\r\n border-right: 8px solid transparent;\r\n border-bottom: 11px solid white;\r\n position: absolute;\r\n bottom: -13px;\r\n right: 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer.utilities_ops-app-frame_AppBarComponent_AppBar--ideaNoteArrow {\r\n right: 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer.utilities_ops-app-frame_AppBarComponent_AppBar--mihelpArrow {\r\n right: 3px;\r\n bottom: -9px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer.utilities_ops-app-frame_AppBarComponent_AppBar--profileArrow {\r\n bottom: -12px;\r\n right: 8px;\r\n border-left: 7px solid transparent;\r\n border-right: 7px solid transparent;\r\n border-bottom: 10px solid white;\r\n}\r\n";
23826
21285
  styleInject(css_248z$j);
23827
21286
 
23828
21287
  var LogOutMenu = function LogOutMenu(_ref) {
23829
- var items = _ref.items,
23830
- onItemClick = _ref.onItemClick;
23831
- React.useEffect(function () {
23832
- var iconEl = document.querySelector(".ms-Icon.root-37.ms-Icon-placeHolder.placeholder-38.ms-Button-menuIcon.menuIcon-95");
23833
- if (iconEl) {
23834
- iconEl.remove();
23835
- }
23836
- var icon = document.querySelector(".utilities_ops-app-frame_AppBarComponent_AppBar--item .ms-Button.ms-Button--icon.ms-Button--hasMenu.root-90");
23837
- if (icon) {
23838
- icon.style.width = '24px';
23839
- }
23840
- }, []);
21288
+ _ref.items;
21289
+ var onItemClick = _ref.onItemClick;
21290
+ // useEffect(()=>{
21291
+ // const iconEl=document.querySelector(".ms-Icon.root-37.ms-Icon-placeHolder.placeholder-38.ms-Button-menuIcon.menuIcon-95")
21292
+ // if(iconEl){
21293
+ // iconEl.remove()
21294
+ // }
21295
+ // const icon = document.querySelector(".utilities_ops-app-frame_AppBarComponent_AppBar--item .ms-Button.ms-Button--icon.ms-Button--hasMenu.root-90")
21296
+ // if(icon){
21297
+ // icon.style.width='24px'
21298
+ // }
21299
+ // },[])
23841
21300
  return /*#__PURE__*/React__default["default"].createElement("div", {
23842
21301
  "data-testid": "Logout",
23843
21302
  className: "utilities_ops-app-frame_AppBarComponent_AppBar--item",
23844
- "data-e2e": "userMenu"
23845
- }, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconDropdownMenu, {
23846
- items: items,
23847
- onItemClick: onItemClick,
23848
- icon: /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
23849
- name: "user-circle",
23850
- variant: "solid",
23851
- style: {
23852
- position: "absolute"
23853
- }
23854
- }),
23855
- iconStyle: {
23856
- fontSize: '30px',
23857
- color: 'white'
23858
- },
23859
- position: 'bottomCenter'
21303
+ "data-e2e": "userMenu",
21304
+ onClick: onItemClick
21305
+ }, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
21306
+ name: "user-circle",
21307
+ variant: "solid"
23860
21308
  }));
23861
21309
  };
23862
21310
 
23863
21311
  var css_248z$i = ".utilities_ops-app-frame_AppBarComponent_CopartLogo_CopartLogo--CopartLogo {\r\n max-width: 80px;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_CopartLogo_CopartLogo--CopartLogoNew {\r\n max-width: 120px;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_CopartLogo_CopartLogo--logoLink {\r\n line-height: 0;\r\n}\r\n";
23864
21312
  styleInject(css_248z$i);
23865
21313
 
23866
- var _styleModuleImportMap$8 = {
21314
+ var _styleModuleImportMap$7 = {
23867
21315
  "./CopartLogo.css": {
23868
21316
  "CopartLogo": "utilities_ops-app-frame_AppBarComponent_CopartLogo_CopartLogo--CopartLogo",
23869
21317
  "CopartLogoNew": "utilities_ops-app-frame_AppBarComponent_CopartLogo_CopartLogo--CopartLogoNew",
@@ -23879,7 +21327,7 @@ var CopartLogo = function CopartLogo() {
23879
21327
  href: "/"
23880
21328
  }, /*#__PURE__*/React__namespace.createElement("img", {
23881
21329
  src: imageSrc,
23882
- className: _getClassName(enableNewToolkitFeatures ? "CopartLogoNew" : "CopartLogo", _styleModuleImportMap$8, {
21330
+ className: _getClassName(enableNewToolkitFeatures ? "CopartLogoNew" : "CopartLogo", _styleModuleImportMap$7, {
23883
21331
  "handleMissingStyleName": "warn"
23884
21332
  })
23885
21333
  }));
@@ -24081,10 +21529,10 @@ var unEscapeChars = function unEscapeChars(str) {
24081
21529
  }) : null;
24082
21530
  };
24083
21531
 
24084
- var css_248z$h = ".utilities_ops-app-frame_Help_Help--backdrop {\r\n position: absolute;\r\n z-index: 10000;\r\n height: 100vh;\r\n top: 48px;\r\n width: 100vw;\r\n background-color: rgba(0, 0, 0, 0.5);\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--miHelpSideBar {\r\n width: 50vw;\r\n position: absolute;\r\n right: 0;\r\n height: calc(100vh - 50px);\r\n padding: 15px;\r\n background-color: white;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n color: #323130;\r\n white-space: normal;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--title {\r\n font-weight: 600;\r\n font-size: 28px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--header {\r\n margin-bottom: 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--header .utilities_ops-app-frame_Help_Help--close,\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--close {\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--header .utilities_ops-app-frame_Help_Help--close i,\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--close i {\r\n font-size: 14px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--subHeader {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--subHeaderTitle {\r\n font-weight: 600;\r\n font-size: 20px;\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--subHeaderTitle .utilities_ops-app-frame_Help_Help--back {\r\n color: #1d5ab9;\r\n margin-right: 5px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--link {\r\n font-weight: 400;\r\n font-size: 14px;\r\n color: #1d5ab9;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--link i {\r\n font-size: 10px;\r\n position: relative;\r\n top: -5px;\r\n left: 3px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper {\r\n margin-top: 20px;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper h3,\r\n.utilities_ops-app-frame_Help_Help--relatedResourcesWrapper h3 {\r\n font-weight: 400;\r\n font-size: 24px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper h3 i {\r\n color: #1d5ab9;\r\n font-size: 10px;\r\n position: relative;\r\n top: -8px;\r\n cursor: pointer;\r\n left: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper ul,\r\n.utilities_ops-app-frame_Help_Help--relatedResourcesWrapper ul {\r\n list-style: none;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper ul li,\r\n.utilities_ops-app-frame_Help_Help--relatedResourcesWrapper ul li {\r\n font-weight: 400;\r\n font-size: 14px;\r\n margin: 6px 0;\r\n display: flex;\r\n cursor: pointer;\r\n width: -webkit-fit-content;\r\n width: -moz-fit-content;\r\n width: fit-content;\r\n align-items: flex-start;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper ul li:hover,\r\n.utilities_ops-app-frame_Help_Help--relatedResourcesWrapper ul li:hover {\r\n color: #1d5ab9;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper ul li img,\r\n.utilities_ops-app-frame_Help_Help--relatedResourcesWrapper ul li img {\r\n width: 17px;\r\n margin-right: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper .utilities_ops-app-frame_Help_Help--viewMore {\r\n color: #1d5ab9;\r\n cursor: pointer;\r\n font-weight: 400;\r\n font-size: 14px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchWrapper {\r\n width: 100%;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchWrapper span {\r\n position: absolute;\r\n width: 29px;\r\n height: 29px;\r\n background: #f3f2f1;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n bottom: 1.5px;\r\n right: 2px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--mihelpSearch {\r\n width: 100%;\r\n margin-top: 15px;\r\n padding: 0px 10px;\r\n height: 32px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchResultsWrapper {\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchResultsWrapper h3 {\r\n font-weight: 400;\r\n font-size: 24px;\r\n margin-top: 8px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchResultsWrapper .utilities_ops-app-frame_Help_Help--searchResult {\r\n width: 100%;\r\n margin-top: 20px;\r\n border-bottom: 1px solid #dcdcdc;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchResultsWrapper .utilities_ops-app-frame_Help_Help--searchResult p {\r\n margin-top: 13px;\r\n margin-bottom: 30px;\r\n text-overflow: ellipsis;\r\n width: 100%;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--spinnerWrapper {\r\n position: absolute;\r\n background: rgba(0, 0, 0, 0.5);\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--spinnerWrapper svg {\r\n position: absolute;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--overFlowHidden {\r\n overflow: hidden;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--nonInteractive {\r\n opacity: 0.3;\r\n pointer-events: none;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchTitlewrapper {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeswrapper {\r\n color: #cbcbcb;\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--like {\r\n margin-left: 10px;\r\n font-size: 10px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--like i {\r\n font-size: 14px;\r\n margin-right: 2px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchTitle {\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchTitle img {\r\n width: 18px;\r\n margin-right: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchTitle span {\r\n font-weight: 600;\r\n font-size: 18px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchTitle span:hover {\r\n color: #1d5ab9;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--faqContentWrapper {\r\n width: 100%;\r\n margin-top: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--faqContentWrapper h3 {\r\n font-weight: 300;\r\n font-size: 34px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--faqContentWrapper .utilities_ops-app-frame_Help_Help--faqsList {\r\n width: 100%;\r\n white-space: normal;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--faqContentWrapper .utilities_ops-app-frame_Help_Help--category {\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--faqContentWrapper .utilities_ops-app-frame_Help_Help--category h3 {\r\n color: #1d5ab9;\r\n font-weight: 600;\r\n font-size: 24px;\r\n margin-top: 18px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--accordian {\r\n border-top: 1px solid #dcdcdc;\r\n padding-top: 13px;\r\n margin-top: 18px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--accordian .utilities_ops-app-frame_Help_Help--question {\r\n font-weight: 400;\r\n font-size: 20px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--accordian .utilities_ops-app-frame_Help_Help--question span {\r\n transition: all 0.2s ease-out;\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--accordian .utilities_ops-app-frame_Help_Help--answer {\r\n font-weight: 400;\r\n font-size: 14px;\r\n height: auto;\r\n max-height: 0;\r\n transition: max-height 0.2s ease-out;\r\n overflow: hidden;\r\n margin-top: 13px;\r\n white-space: normal;\r\n}\r\n\r\n/* .accordian .answer span {\r\n white-space: break-spaces;\r\n } */\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNote {\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNote h3 {\r\n font-weight: 400;\r\n font-size: 24px;\r\n margin-top: 13px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNote .utilities_ops-app-frame_Help_Help--releaseNoteContent {\r\n margin-top: 10px;\r\n white-space: normal;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpArticle {\r\n width: 100%;\r\n white-space: normal;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpArticle h3 {\r\n font-weight: 400;\r\n font-size: 24px;\r\n margin-top: 13px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpArticle .utilities_ops-app-frame_Help_Help--helpArticleWrapper {\r\n margin-top: 10px;\r\n white-space: normal;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--articleFooter {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n margin-top: 30px;\r\n padding-bottom: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeWrapper {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeWrapper .utilities_ops-app-frame_Help_Help--likeTxt {\r\n font-weight: 600;\r\n font-size: 14px;\r\n margin-right: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeWrapper .utilities_ops-app-frame_Help_Help--thanksText {\r\n color: rgb(45, 206, 137);\r\n font-weight: bold;\r\n font-size: 16px;\r\n margin-left: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeWrapper .utilities_ops-app-frame_Help_Help--feedbackWrapper {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeWrapper .utilities_ops-app-frame_Help_Help--feedbackWrapper textarea {\r\n width: 300px;\r\n height: 100px;\r\n resize: none;\r\n display: block;\r\n margin-bottom: 11px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeWrapper .utilities_ops-app-frame_Help_Help--feedbackWrapper h5 {\r\n font-size: 18px;\r\n margin-bottom: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeWrapper .utilities_ops-app-frame_Help_Help--feedbackWrapper span {\r\n background-color: rgb(29, 90, 185);\r\n color: #fff;\r\n padding: 6px 12px;\r\n cursor: pointer;\r\n margin-right: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likebtnWrapper {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n color: #2dce89;\r\n margin-right: 6px;\r\n font-size: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likebtnWrapper svg {\r\n border: 1px solid #2dce89 !important;\r\n padding: 5px;\r\n height: 30px;\r\n width: 30px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likebtnWrapper.utilities_ops-app-frame_Help_Help--active svg,\r\n.utilities_ops-app-frame_Help_Help--likebtnWrapper svg:hover {\r\n background-color: #2dce89;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likebtnWrapper.utilities_ops-app-frame_Help_Help--active svg path,\r\n.utilities_ops-app-frame_Help_Help--likebtnWrapper svg:hover path {\r\n fill: #fff;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--dislike {\r\n color: #f5365c !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--dislike svg {\r\n border: 1px solid #f5365c !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--dislike.utilities_ops-app-frame_Help_Help--active svg,\r\n.utilities_ops-app-frame_Help_Help--dislike svg:hover {\r\n background-color: #f5365c !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--dateWrapper {\r\n font-style: italic;\r\n /* font-weight: 700; */\r\n font-size: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--dateWrapper b {\r\n font-weight: 700;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--dateWrapper span {\r\n font-weight: 400;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--relatedResourcesWrapper {\r\n width: 100%;\r\n border-top: 1px solid #edebe9;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--relatedResourcesWrapper h3 {\r\n font-weight: 400;\r\n font-size: 24px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper {\r\n width: 100%;\r\n border: 1px solid #dcdcdc;\r\n padding: 20px;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n margin-top: 50px;\r\n position: relative;\r\n text-align: center;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper.utilities_ops-app-frame_Help_Help--noFlex {\r\n display: block;\r\n text-align: left;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper h2 {\r\n font-size: 34px !important;\r\n margin-bottom: 6px !important;\r\n margin-top: 0 !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper p {\r\n font-size: 14px !important;\r\n margin-bottom: 3px !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper p img {\r\n position: relative;\r\n top: 2px;\r\n margin-left: 2px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--submitBtn {\r\n background-color: #1d5ab9;\r\n color: #fff;\r\n padding: 6px 12px;\r\n font-weight: 600;\r\n font-size: 12px;\r\n cursor: pointer;\r\n margin-top: 7px;\r\n border-radius: 2px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--submitBtn.utilities_ops-app-frame_Help_Help--disable {\r\n pointer-events: none;\r\n cursor: default;\r\n background-color: #ccc;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--close {\r\n position: absolute;\r\n top: 0px;\r\n right: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper h3 {\r\n font-weight: 800 !important;\r\n font-size: 20px !important;\r\n line-height: 27px !important;\r\n color: #1d5ab9 !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--CategoryWrapper,\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--questionWrapper {\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--CategoryWrapper label,\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--questionWrapper label {\r\n font-weight: 600;\r\n font-size: 14px;\r\n color: #000100;\r\n margin: 10px 0;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--questionWrapper textarea {\r\n resize: none;\r\n height: 125px;\r\n margin-bottom: 20px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--highlightRed {\r\n font-weight: 600;\r\n color: #f5365c;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--successMsg {\r\n color: #1d5ab9;\r\n font-size: 20px !important;\r\n margin-top: 12px;\r\n margin-bottom: 20px !important;\r\n font-weight: 600;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseDialogContent {\r\n max-width: 700px;\r\n min-width: 600px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseDialogContent .utilities_ops-app-frame_Help_Help--releaseDialogHeader {\r\n width: 100%;\r\n display: flex;\r\n justify-content: space-between;\r\n background: #edebe9;\r\n padding: 10px 20px;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseDialogContent .utilities_ops-app-frame_Help_Help--releaseDialogBody {\r\n padding: 20px 20px 30px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseDialogContent .utilities_ops-app-frame_Help_Help--releaseDialogHeader h3 {\r\n font-weight: 600;\r\n font-size: 20px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseDialogContent .utilities_ops-app-frame_Help_Help--releaseDialogHeader span {\r\n font-weight: 600;\r\n font-size: 14px;\r\n -webkit-text-decoration-line: underline;\r\n text-decoration-line: underline;\r\n color: #1d5ab9;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseDialogContent .utilities_ops-app-frame_Help_Help--releaseDialogHeader span i {\r\n font-size: 10px;\r\n position: relative;\r\n top: -6px;\r\n right: -1px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNoteActive {\r\n padding: 22px;\r\n background-color: #1d5ab9;\r\n color: #fff;\r\n font-size: 32px !important;\r\n width: 100% !important;\r\n border-radius: 10px;\r\n align-items: center !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNoteActive:hover{\r\n color: #fff !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNoteActive img {\r\n width: 65px !important;\r\n margin-right: 25px !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNoteActive .utilities_ops-app-frame_Help_Help--releaseTitle {\r\n flex: 1;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNoteActive .utilities_ops-app-frame_Help_Help--checkNow {\r\n font-weight: 700;\r\n font-size: 14px;\r\n align-self: end;\r\n}\r\n";
21532
+ var css_248z$h = ".utilities_ops-app-frame_Help_Help--backdrop {\r\n position: absolute;\r\n z-index: 10000;\r\n height: 100vh;\r\n top: 48px;\r\n width: 100vw;\r\n background-color: rgba(0, 0, 0, 0.5);\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--miHelpSideBar {\r\n width: 400px;\r\n position: absolute;\r\n right: 0;\r\n height: calc(100vh - 50px);\r\n padding: 15px;\r\n background-color: white;\r\n overflow-y: auto;\r\n overflow-x: hidden;\r\n color: #323130;\r\n white-space: normal;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--title {\r\n font-weight: 600;\r\n font-size: 28px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--header {\r\n margin-bottom: 10px;\r\n display: flex;\r\n justify-content: space-between;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--header .utilities_ops-app-frame_Help_Help--close,\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--close {\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--header .utilities_ops-app-frame_Help_Help--close i,\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--close i {\r\n font-size: 14px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--subHeader {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--subHeaderTitle {\r\n font-weight: 600;\r\n font-size: 20px;\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--subHeaderTitle .utilities_ops-app-frame_Help_Help--back {\r\n color: #1d5ab9;\r\n margin-right: 5px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--link {\r\n font-weight: 400;\r\n font-size: 14px;\r\n color: #1d5ab9;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--link i {\r\n font-size: 10px;\r\n position: relative;\r\n top: -5px;\r\n left: 3px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper {\r\n margin-top: 20px;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper h3,\r\n.utilities_ops-app-frame_Help_Help--relatedResourcesWrapper h3 {\r\n font-weight: 400;\r\n font-size: 24px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper h3 i {\r\n color: #1d5ab9;\r\n font-size: 10px;\r\n position: relative;\r\n top: -8px;\r\n cursor: pointer;\r\n left: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper ul,\r\n.utilities_ops-app-frame_Help_Help--relatedResourcesWrapper ul {\r\n list-style: none;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper ul li,\r\n.utilities_ops-app-frame_Help_Help--relatedResourcesWrapper ul li {\r\n font-weight: 400;\r\n font-size: 14px;\r\n margin: 6px 0;\r\n display: flex;\r\n cursor: pointer;\r\n width: -webkit-fit-content;\r\n width: -moz-fit-content;\r\n width: fit-content;\r\n align-items: flex-start;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper ul li:hover,\r\n.utilities_ops-app-frame_Help_Help--relatedResourcesWrapper ul li:hover {\r\n color: #1d5ab9;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper ul li img,\r\n.utilities_ops-app-frame_Help_Help--relatedResourcesWrapper ul li img {\r\n width: 17px;\r\n margin-right: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpResourcesWrapper .utilities_ops-app-frame_Help_Help--viewMore {\r\n color: #1d5ab9;\r\n cursor: pointer;\r\n font-weight: 400;\r\n font-size: 14px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchWrapper {\r\n width: 100%;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchWrapper span {\r\n position: absolute;\r\n width: 29px;\r\n height: 29px;\r\n background: #f3f2f1;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n bottom: 1.5px;\r\n right: 2px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--mihelpSearch {\r\n width: 100%;\r\n margin-top: 15px;\r\n padding: 0px 10px;\r\n height: 32px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchResultsWrapper {\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchResultsWrapper h3 {\r\n font-weight: 400;\r\n font-size: 24px;\r\n margin-top: 8px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchResultsWrapper .utilities_ops-app-frame_Help_Help--searchResult {\r\n width: 100%;\r\n margin-top: 20px;\r\n border-bottom: 1px solid #dcdcdc;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchResultsWrapper .utilities_ops-app-frame_Help_Help--searchResult p {\r\n margin-top: 13px;\r\n margin-bottom: 30px;\r\n text-overflow: ellipsis;\r\n width: 100%;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--spinnerWrapper {\r\n position: absolute;\r\n background: rgba(0, 0, 0, 0.5);\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--spinnerWrapper svg {\r\n position: absolute;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--overFlowHidden {\r\n overflow: hidden;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--nonInteractive {\r\n opacity: 0.3;\r\n pointer-events: none;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchTitlewrapper {\r\n display: flex;\r\n align-items: center;\r\n justify-content: space-between;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeswrapper {\r\n color: #cbcbcb;\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--like {\r\n margin-left: 10px;\r\n font-size: 10px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--like i {\r\n font-size: 14px;\r\n margin-right: 2px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchTitle {\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchTitle img {\r\n width: 18px;\r\n margin-right: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchTitle span {\r\n font-weight: 600;\r\n font-size: 18px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--searchTitle span:hover {\r\n color: #1d5ab9;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--faqContentWrapper {\r\n width: 100%;\r\n margin-top: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--faqContentWrapper h3 {\r\n font-weight: 300;\r\n font-size: 34px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--faqContentWrapper .utilities_ops-app-frame_Help_Help--faqsList {\r\n width: 100%;\r\n white-space: normal;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--faqContentWrapper .utilities_ops-app-frame_Help_Help--category {\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--faqContentWrapper .utilities_ops-app-frame_Help_Help--category h3 {\r\n color: #1d5ab9;\r\n font-weight: 600;\r\n font-size: 24px;\r\n margin-top: 18px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--accordian {\r\n border-top: 1px solid #dcdcdc;\r\n padding-top: 13px;\r\n margin-top: 18px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--accordian .utilities_ops-app-frame_Help_Help--question {\r\n font-weight: 400;\r\n font-size: 20px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--accordian .utilities_ops-app-frame_Help_Help--question span {\r\n transition: all 0.2s ease-out;\r\n display: flex;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--accordian .utilities_ops-app-frame_Help_Help--answer {\r\n font-weight: 400;\r\n font-size: 14px;\r\n height: auto;\r\n max-height: 0;\r\n transition: max-height 0.2s ease-out;\r\n overflow: hidden;\r\n margin-top: 13px;\r\n white-space: normal;\r\n}\r\n\r\n/* .accordian .answer span {\r\n white-space: break-spaces;\r\n } */\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNote {\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNote h3 {\r\n font-weight: 400;\r\n font-size: 24px;\r\n margin-top: 13px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNote .utilities_ops-app-frame_Help_Help--releaseNoteContent {\r\n margin-top: 10px;\r\n white-space: normal;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpArticle {\r\n width: 100%;\r\n white-space: normal;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpArticle h3 {\r\n font-weight: 400;\r\n font-size: 24px;\r\n margin-top: 13px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--helpArticle .utilities_ops-app-frame_Help_Help--helpArticleWrapper {\r\n margin-top: 10px;\r\n white-space: normal;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--articleFooter {\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n margin-top: 30px;\r\n padding-bottom: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeWrapper {\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeWrapper .utilities_ops-app-frame_Help_Help--likeTxt {\r\n font-weight: 600;\r\n font-size: 14px;\r\n margin-right: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeWrapper .utilities_ops-app-frame_Help_Help--thanksText {\r\n color: rgb(45, 206, 137);\r\n font-weight: bold;\r\n font-size: 16px;\r\n margin-left: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeWrapper .utilities_ops-app-frame_Help_Help--feedbackWrapper {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeWrapper .utilities_ops-app-frame_Help_Help--feedbackWrapper textarea {\r\n width: 300px;\r\n height: 100px;\r\n resize: none;\r\n display: block;\r\n margin-bottom: 11px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeWrapper .utilities_ops-app-frame_Help_Help--feedbackWrapper h5 {\r\n font-size: 18px;\r\n margin-bottom: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likeWrapper .utilities_ops-app-frame_Help_Help--feedbackWrapper span {\r\n background-color: rgb(29, 90, 185);\r\n color: #fff;\r\n padding: 6px 12px;\r\n cursor: pointer;\r\n margin-right: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likebtnWrapper {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n color: #2dce89;\r\n margin-right: 6px;\r\n font-size: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likebtnWrapper svg {\r\n border: 1px solid #2dce89 !important;\r\n padding: 5px;\r\n height: 30px;\r\n width: 30px;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likebtnWrapper.utilities_ops-app-frame_Help_Help--active svg,\r\n.utilities_ops-app-frame_Help_Help--likebtnWrapper svg:hover {\r\n background-color: #2dce89;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--likebtnWrapper.utilities_ops-app-frame_Help_Help--active svg path,\r\n.utilities_ops-app-frame_Help_Help--likebtnWrapper svg:hover path {\r\n fill: #fff;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--dislike {\r\n color: #f5365c !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--dislike svg {\r\n border: 1px solid #f5365c !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--dislike.utilities_ops-app-frame_Help_Help--active svg,\r\n.utilities_ops-app-frame_Help_Help--dislike svg:hover {\r\n background-color: #f5365c !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--dateWrapper {\r\n font-style: italic;\r\n /* font-weight: 700; */\r\n font-size: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--dateWrapper b {\r\n font-weight: 700;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--dateWrapper span {\r\n font-weight: 400;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--relatedResourcesWrapper {\r\n width: 100%;\r\n border-top: 1px solid #edebe9;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--relatedResourcesWrapper h3 {\r\n font-weight: 400;\r\n font-size: 24px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper {\r\n width: 100%;\r\n border: 1px solid #dcdcdc;\r\n padding: 20px;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n margin-top: 50px;\r\n position: relative;\r\n text-align: center;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper.utilities_ops-app-frame_Help_Help--noFlex {\r\n display: block;\r\n text-align: left;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper h2 {\r\n font-size: 34px !important;\r\n margin-bottom: 6px !important;\r\n margin-top: 0 !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper p {\r\n font-size: 14px !important;\r\n margin-bottom: 3px !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper p img {\r\n position: relative;\r\n top: 2px;\r\n margin-left: 2px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--submitBtn {\r\n background-color: #1d5ab9;\r\n color: #fff;\r\n padding: 6px 12px;\r\n font-weight: 600;\r\n font-size: 12px;\r\n cursor: pointer;\r\n margin-top: 7px;\r\n border-radius: 2px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--submitBtn.utilities_ops-app-frame_Help_Help--disable {\r\n pointer-events: none;\r\n cursor: default;\r\n background-color: #ccc;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--close {\r\n position: absolute;\r\n top: 0px;\r\n right: 10px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper h3 {\r\n font-weight: 800 !important;\r\n font-size: 20px !important;\r\n line-height: 27px !important;\r\n color: #1d5ab9 !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--CategoryWrapper,\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--questionWrapper {\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--CategoryWrapper label,\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--questionWrapper label {\r\n font-weight: 600;\r\n font-size: 14px;\r\n color: #000100;\r\n margin: 10px 0;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--questionWrapper textarea {\r\n resize: none;\r\n height: 125px;\r\n margin-bottom: 20px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--highlightRed {\r\n font-weight: 600;\r\n color: #f5365c;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--submitQuestionWrapper .utilities_ops-app-frame_Help_Help--successMsg {\r\n color: #1d5ab9;\r\n font-size: 20px !important;\r\n margin-top: 12px;\r\n margin-bottom: 20px !important;\r\n font-weight: 600;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseDialogContent {\r\n max-width: 700px;\r\n min-width: 600px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseDialogContent .utilities_ops-app-frame_Help_Help--releaseDialogHeader {\r\n width: 100%;\r\n display: flex;\r\n justify-content: space-between;\r\n background: #edebe9;\r\n padding: 10px 20px;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseDialogContent .utilities_ops-app-frame_Help_Help--releaseDialogBody {\r\n padding: 20px 20px 30px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseDialogContent .utilities_ops-app-frame_Help_Help--releaseDialogHeader h3 {\r\n font-weight: 600;\r\n font-size: 20px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseDialogContent .utilities_ops-app-frame_Help_Help--releaseDialogHeader span {\r\n font-weight: 600;\r\n font-size: 14px;\r\n -webkit-text-decoration-line: underline;\r\n text-decoration-line: underline;\r\n color: #1d5ab9;\r\n cursor: pointer;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseDialogContent .utilities_ops-app-frame_Help_Help--releaseDialogHeader span i {\r\n font-size: 10px;\r\n position: relative;\r\n top: -6px;\r\n right: -1px;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNoteActive {\r\n padding: 22px;\r\n background-color: #1d5ab9;\r\n color: #fff;\r\n font-size: 32px !important;\r\n width: 100% !important;\r\n border-radius: 10px;\r\n align-items: center !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNoteActive:hover{\r\n color: #fff !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNoteActive img {\r\n width: 65px !important;\r\n margin-right: 25px !important;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNoteActive .utilities_ops-app-frame_Help_Help--releaseTitle {\r\n flex: 1;\r\n}\r\n\r\n.utilities_ops-app-frame_Help_Help--releaseNoteActive .utilities_ops-app-frame_Help_Help--checkNow {\r\n font-weight: 700;\r\n font-size: 14px;\r\n align-self: end;\r\n}\r\n";
24085
21533
  styleInject(css_248z$h);
24086
21534
 
24087
- var _styleModuleImportMap$7 = {
21535
+ var _styleModuleImportMap$6 = {
24088
21536
  "../Help.css": {
24089
21537
  "backdrop": "utilities_ops-app-frame_Help_Help--backdrop",
24090
21538
  "miHelpSideBar": "utilities_ops-app-frame_Help_Help--miHelpSideBar",
@@ -24171,7 +21619,7 @@ var ArticleSection = function ArticleSection(_ref) {
24171
21619
  onClick: function onClick() {
24172
21620
  return clickhandler(viewMapper[articleDetails.type], article);
24173
21621
  },
24174
- className: _getClassName(highlightRelease ? 'releaseNoteActive' : '', _styleModuleImportMap$7, {
21622
+ className: _getClassName(highlightRelease ? 'releaseNoteActive' : '', _styleModuleImportMap$6, {
24175
21623
  "handleMissingStyleName": "warn"
24176
21624
  })
24177
21625
  }, /*#__PURE__*/React__default["default"].createElement("img", {
@@ -24294,7 +21742,7 @@ styleInject(css_248z$e);
24294
21742
  var css_248z$d = "/**\n * Colors\n */\n/**\n * Breakpoints & Media Queries\n */\n/**\n * SCSS Variables.\n *\n * Please use variables from this sheet to ensure consistency across the UI.\n * Don't add to this sheet unless you're pretty sure the value will be reused in many places.\n * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.\n */\n/**\n * Colors\n */\n/**\n * Fonts & basic variables.\n */\n/**\n * Grid System.\n * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/\n */\n/**\n * Dimensions.\n */\n/**\n * Shadows.\n */\n/**\n * Editor widths.\n */\n/**\n * Block & Editor UI.\n */\n/**\n * Block paddings.\n */\n/**\n * React Native specific.\n * These variables do not appear to be used anywhere else.\n */\n/**\n* Converts a hex value into the rgb equivalent.\n*\n* @param {string} hex - the hexadecimal value to convert\n* @return {string} comma separated rgb values\n*/\n/**\n * Breakpoint mixins\n */\n/**\n * Long content fade mixin\n *\n * Creates a fading overlay to signify that the content is longer\n * than the space allows.\n */\n/**\n * Focus styles.\n */\n/**\n * Applies editor left position to the selector passed as argument\n */\n/**\n * Styles that are reused verbatim in a few places\n */\n/**\n * Allows users to opt-out of animations via OS-level preferences.\n */\n/**\n * Reset default styles for JavaScript UI based pages.\n * This is a WP-admin agnostic reset\n */\n/**\n * Reset the WP Admin page styles for Gutenberg-like pages.\n */\n#start-resizable-editor-section {\n display: none;\n}\n\n.wp-block-audio figcaption {\n color: #555;\n font-size: 13px;\n text-align: center;\n}\n.is-dark-theme .wp-block-audio figcaption {\n color: rgba(255, 255, 255, 0.65);\n}\n\n.wp-block-code {\n font-family: Menlo, Consolas, monaco, monospace;\n color: #1e1e1e;\n padding: 0.8em 1em;\n border: 1px solid #ddd;\n border-radius: 4px;\n}\n\n.wp-block-embed figcaption {\n color: #555;\n font-size: 13px;\n text-align: center;\n}\n.is-dark-theme .wp-block-embed figcaption {\n color: rgba(255, 255, 255, 0.65);\n}\n\n.blocks-gallery-caption {\n color: #555;\n font-size: 13px;\n text-align: center;\n}\n.is-dark-theme .blocks-gallery-caption {\n color: rgba(255, 255, 255, 0.65);\n}\n\n.wp-block-image figcaption {\n color: #555;\n font-size: 13px;\n text-align: center;\n}\n.is-dark-theme .wp-block-image figcaption {\n color: rgba(255, 255, 255, 0.65);\n}\n\n.wp-block-pullquote {\n border-top: 4px solid currentColor;\n border-bottom: 4px solid currentColor;\n margin-bottom: 1.75em;\n color: currentColor;\n}\n.wp-block-pullquote cite,\n.wp-block-pullquote footer, .wp-block-pullquote__citation {\n color: currentColor;\n text-transform: uppercase;\n font-size: 0.8125em;\n font-style: normal;\n}\n\n.wp-block-quote {\n border-left: 0.25em solid currentColor;\n margin: 0 0 1.75em 0;\n padding-left: 1em;\n}\n.wp-block-quote cite,\n.wp-block-quote footer {\n color: currentColor;\n font-size: 0.8125em;\n position: relative;\n font-style: normal;\n}\n.wp-block-quote.has-text-align-right {\n border-left: none;\n border-right: 0.25em solid currentColor;\n padding-left: 0;\n padding-right: 1em;\n}\n.wp-block-quote.has-text-align-center {\n border: none;\n padding-left: 0;\n}\n.wp-block-quote.is-style-large, .wp-block-quote.is-large {\n border: none;\n}\n\n.wp-block-search .wp-block-search__label {\n font-weight: bold;\n}\n\n.wp-block-group.has-background {\n padding: 1.25em 2.375em;\n margin-top: 0;\n margin-bottom: 0;\n}\n\n.wp-block-separator {\n border: none;\n border-bottom: 2px solid currentColor;\n margin-left: auto;\n margin-right: auto;\n opacity: 0.4;\n}\n.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {\n width: 100px;\n}\n.wp-block-separator.has-background:not(.is-style-dots) {\n border-bottom: none;\n height: 1px;\n}\n.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots) {\n height: 2px;\n}\n\n.wp-block-table thead {\n border-bottom: 3px solid;\n}\n.wp-block-table tfoot {\n border-top: 3px solid;\n}\n.wp-block-table td,\n.wp-block-table th {\n padding: 0.5em;\n border: 1px solid;\n word-break: normal;\n}\n.wp-block-table figcaption {\n color: #555;\n font-size: 13px;\n text-align: center;\n}\n.is-dark-theme .wp-block-table figcaption {\n color: rgba(255, 255, 255, 0.65);\n}\n\n.wp-block-video figcaption {\n color: #555;\n font-size: 13px;\n text-align: center;\n}\n.is-dark-theme .wp-block-video figcaption {\n color: rgba(255, 255, 255, 0.65);\n}\n\n.wp-block-template-part.has-background {\n padding: 1.25em 2.375em;\n margin-top: 0;\n margin-bottom: 0;\n}\n\n#end-resizable-editor-section {\n display: none;\n}";
24295
21743
  styleInject(css_248z$d);
24296
21744
 
24297
- var _styleModuleImportMap$6 = {
21745
+ var _styleModuleImportMap$5 = {
24298
21746
  "../wordpressStyles.css": {
24299
21747
  "helpArticleContent": "utilities_ops-app-frame_Help_wordpressStyles--helpArticleContent",
24300
21748
  "sr-only": "utilities_ops-app-frame_Help_wordpressStyles--sr-only",
@@ -24327,7 +21775,7 @@ function HelpArticleContent(_ref) {
24327
21775
  return /*#__PURE__*/React__default["default"].createElement("div", {
24328
21776
  className: "utilities_ops-app-frame_Help_wordpressStyles--helpArticleContent"
24329
21777
  }, /*#__PURE__*/React__default["default"].createElement("div", {
24330
- className: "elementor-kit-38 " + _getClassName(showQuestionSection ? 'nonInteractive' : '', _styleModuleImportMap$6, {
21778
+ className: "elementor-kit-38 " + _getClassName(showQuestionSection ? 'nonInteractive' : '', _styleModuleImportMap$5, {
24331
21779
  "handleMissingStyleName": "warn"
24332
21780
  })
24333
21781
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -24379,7 +21827,7 @@ var Dislike = function Dislike() {
24379
21827
  }));
24380
21828
  };
24381
21829
 
24382
- var _styleModuleImportMap$5 = {
21830
+ var _styleModuleImportMap$4 = {
24383
21831
  "../Help.css": {
24384
21832
  "backdrop": "utilities_ops-app-frame_Help_Help--backdrop",
24385
21833
  "miHelpSideBar": "utilities_ops-app-frame_Help_Help--miHelpSideBar",
@@ -24480,7 +21928,7 @@ var HelpArticle = function HelpArticle(_ref) {
24480
21928
  return /*#__PURE__*/React__default["default"].createElement("div", {
24481
21929
  className: "utilities_ops-app-frame_Help_Help--helpArticle"
24482
21930
  }, /*#__PURE__*/React__default["default"].createElement("h3", {
24483
- className: _getClassName(showQuestionSection ? 'nonInteractive' : '', _styleModuleImportMap$5, {
21931
+ className: _getClassName(showQuestionSection ? 'nonInteractive' : '', _styleModuleImportMap$4, {
24484
21932
  "handleMissingStyleName": "warn"
24485
21933
  })
24486
21934
  }, currentArticle.title), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -24489,7 +21937,7 @@ var HelpArticle = function HelpArticle(_ref) {
24489
21937
  article: currentArticle,
24490
21938
  showQuestionSection: showQuestionSection
24491
21939
  }, /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
24492
- className: _getClassName("articleFooter ".concat(showQuestionSection ? 'nonInteractive' : ''), _styleModuleImportMap$5, {
21940
+ className: _getClassName("articleFooter ".concat(showQuestionSection ? 'nonInteractive' : ''), _styleModuleImportMap$4, {
24493
21941
  "handleMissingStyleName": "warn"
24494
21942
  })
24495
21943
  }, /*#__PURE__*/React__default["default"].createElement("span", {
@@ -24497,7 +21945,7 @@ var HelpArticle = function HelpArticle(_ref) {
24497
21945
  }, !currentArticle.showFeedback ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, !currentArticle.showThanksText ? /*#__PURE__*/React__default["default"].createElement("span", {
24498
21946
  className: "utilities_ops-app-frame_Help_Help--likeTxt"
24499
21947
  }, "Was this useful?") : null, /*#__PURE__*/React__default["default"].createElement("span", {
24500
- className: _getClassName("likebtnWrapper ".concat(currentArticle.liked ? 'active' : ''), _styleModuleImportMap$5, {
21948
+ className: _getClassName("likebtnWrapper ".concat(currentArticle.liked ? 'active' : ''), _styleModuleImportMap$4, {
24501
21949
  "handleMissingStyleName": "warn"
24502
21950
  })
24503
21951
  }, /*#__PURE__*/React__default["default"].createElement("span", {
@@ -24505,7 +21953,7 @@ var HelpArticle = function HelpArticle(_ref) {
24505
21953
  return likeHandler(currentArticle);
24506
21954
  }
24507
21955
  }, /*#__PURE__*/React__default["default"].createElement(Like, null)), /*#__PURE__*/React__default["default"].createElement("span", null, currentArticle.likes)), /*#__PURE__*/React__default["default"].createElement("span", {
24508
- className: _getClassName("likebtnWrapper dislike ".concat(currentArticle.disliked ? 'active' : ''), _styleModuleImportMap$5, {
21956
+ className: _getClassName("likebtnWrapper dislike ".concat(currentArticle.disliked ? 'active' : ''), _styleModuleImportMap$4, {
24509
21957
  "handleMissingStyleName": "warn"
24510
21958
  })
24511
21959
  }, /*#__PURE__*/React__default["default"].createElement("span", {
@@ -24533,7 +21981,7 @@ var HelpArticle = function HelpArticle(_ref) {
24533
21981
  }, "Skip")))), /*#__PURE__*/React__default["default"].createElement("span", {
24534
21982
  className: "utilities_ops-app-frame_Help_Help--dateWrapper"
24535
21983
  }, /*#__PURE__*/React__default["default"].createElement("b", null, "Last updated on:"), ' ', /*#__PURE__*/React__default["default"].createElement("span", null, currentArticle.updatedDate ? formatPublishDate(currentArticle.updatedDate) : null))), currentArticle.relatedHelpResources && /*#__PURE__*/React__default["default"].createElement("div", {
24536
- className: _getClassName("relatedResourcesWrapper ".concat(showQuestionSection ? 'nonInteractive' : ''), _styleModuleImportMap$5, {
21984
+ className: _getClassName("relatedResourcesWrapper ".concat(showQuestionSection ? 'nonInteractive' : ''), _styleModuleImportMap$4, {
24537
21985
  "handleMissingStyleName": "warn"
24538
21986
  })
24539
21987
  }, /*#__PURE__*/React__default["default"].createElement("h3", null, "Related Help Resources"), /*#__PURE__*/React__default["default"].createElement("ul", null, currentArticle.relatedHelpResources.map(function (article) {
@@ -24546,7 +21994,7 @@ var HelpArticle = function HelpArticle(_ref) {
24546
21994
  }), article.post_title);
24547
21995
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
24548
21996
  ref: questionSectionRef,
24549
- className: _getClassName("submitQuestionWrapper ".concat(showQuestionSection && !showSuccessSection ? 'noFlex' : ''), _styleModuleImportMap$5, {
21997
+ className: _getClassName("submitQuestionWrapper ".concat(showQuestionSection && !showSuccessSection ? 'noFlex' : ''), _styleModuleImportMap$4, {
24550
21998
  "handleMissingStyleName": "warn"
24551
21999
  })
24552
22000
  }, !showQuestionSection ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("h2", null, "Got more questions?"), /*#__PURE__*/React__default["default"].createElement("p", null, "If these resources are not enough to satisfy your queries then"), /*#__PURE__*/React__default["default"].createElement("p", null, /*#__PURE__*/React__default["default"].createElement("b", null, "Feel free to submit your question here.")), /*#__PURE__*/React__default["default"].createElement("span", {
@@ -24605,7 +22053,7 @@ var HelpArticle = function HelpArticle(_ref) {
24605
22053
  }
24606
22054
  })), /*#__PURE__*/React__default["default"].createElement("span", {
24607
22055
  onClick: questionSubmitHandler,
24608
- className: _getClassName("submitBtn ".concat(!question.length || category === 'selectCategory' ? 'disable' : ''), _styleModuleImportMap$5, {
22056
+ className: _getClassName("submitBtn ".concat(!question.length || category === 'selectCategory' ? 'disable' : ''), _styleModuleImportMap$4, {
24609
22057
  "handleMissingStyleName": "warn"
24610
22058
  })
24611
22059
  }, "Submit")) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("img", {
@@ -24739,7 +22187,7 @@ var ReleaseNote = function ReleaseNote(_ref) {
24739
22187
  })));
24740
22188
  };
24741
22189
 
24742
- var _styleModuleImportMap$4 = {
22190
+ var _styleModuleImportMap$3 = {
24743
22191
  "./Help.css": {
24744
22192
  "backdrop": "utilities_ops-app-frame_Help_Help--backdrop",
24745
22193
  "miHelpSideBar": "utilities_ops-app-frame_Help_Help--miHelpSideBar",
@@ -24800,8 +22248,8 @@ var _styleModuleImportMap$4 = {
24800
22248
  }
24801
22249
  };
24802
22250
  var HelpSideBar = function HelpSideBar(_ref) {
24803
- var getNotificationWrapperWidth = _ref.getNotificationWrapperWidth,
24804
- appTile = _ref.appTile,
22251
+ _ref.getNotificationWrapperWidth;
22252
+ var appTile = _ref.appTile,
24805
22253
  mihelpAppPath = _ref.mihelpAppPath,
24806
22254
  mihelpRef = _ref.mihelpRef,
24807
22255
  setMihelpVisible = _ref.setMihelpVisible,
@@ -24938,7 +22386,7 @@ var HelpSideBar = function HelpSideBar(_ref) {
24938
22386
  _context.prev = 13;
24939
22387
  _context.t0 = _context["catch"](0);
24940
22388
  setLoading(false);
24941
- console.log('+++fetch error=', _context.t0);
22389
+ console.log('fetch error=', _context.t0);
24942
22390
  case 17:
24943
22391
  case "end":
24944
22392
  return _context.stop();
@@ -25353,11 +22801,9 @@ var HelpSideBar = function HelpSideBar(_ref) {
25353
22801
  className: "utilities_ops-app-frame_Help_Help--backdrop",
25354
22802
  onClick: handleBackDropClick
25355
22803
  }, /*#__PURE__*/React__default["default"].createElement("div", {
25356
- style: {
25357
- width: getNotificationWrapperWidth()
25358
- },
22804
+ // style={{ width: getNotificationWrapperWidth() }}
25359
22805
  ref: mihelpRef,
25360
- className: _getClassName("miHelpSideBar ".concat(!helpContent || isChrome() && overFlowHidden || !isChrome() && showQuestionSection ? 'overFlowHidden' : ''), _styleModuleImportMap$4, {
22806
+ className: _getClassName("miHelpSideBar ".concat(!helpContent || isChrome() && overFlowHidden || !isChrome() && showQuestionSection ? 'overFlowHidden' : ''), _styleModuleImportMap$3, {
25361
22807
  "handleMissingStyleName": "warn"
25362
22808
  })
25363
22809
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -25399,7 +22845,7 @@ var HelpSideBar = function HelpSideBar(_ref) {
25399
22845
  name: "open_in_new",
25400
22846
  variant: "material"
25401
22847
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
25402
- className: _getClassName("searchWrapper ".concat(showQuestionSection ? 'nonInteractive' : ''), _styleModuleImportMap$4, {
22848
+ className: _getClassName("searchWrapper ".concat(showQuestionSection ? 'nonInteractive' : ''), _styleModuleImportMap$3, {
25403
22849
  "handleMissingStyleName": "warn"
25404
22850
  })
25405
22851
  }, /*#__PURE__*/React__default["default"].createElement("input", {
@@ -25441,166 +22887,6 @@ var FeedbackButton = function FeedbackButton(props) {
25441
22887
  }));
25442
22888
  };
25443
22889
 
25444
- var _styleModuleImportMap$3 = {
25445
- "../AppBar.css": {
25446
- "root": "utilities_ops-app-frame_AppBarComponent_AppBar--root",
25447
- "leftItems": "utilities_ops-app-frame_AppBarComponent_AppBar--leftItems",
25448
- "appBarIcons": "utilities_ops-app-frame_AppBarComponent_AppBar--appBarIcons",
25449
- "copartLogo": "utilities_ops-app-frame_AppBarComponent_AppBar--copartLogo",
25450
- "copartLogoNew": "utilities_ops-app-frame_AppBarComponent_AppBar--copartLogoNew",
25451
- "moduleName": "utilities_ops-app-frame_AppBarComponent_AppBar--moduleName",
25452
- "flex-grid": "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid",
25453
- "flex-grid-items": "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items",
25454
- "lightBulbIcon": "utilities_ops-app-frame_AppBarComponent_AppBar--lightBulbIcon",
25455
- "yard": "utilities_ops-app-frame_AppBarComponent_AppBar--yard",
25456
- "yardNumber": "utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber",
25457
- "col": "utilities_ops-app-frame_AppBarComponent_AppBar--col",
25458
- "logo": "utilities_ops-app-frame_AppBarComponent_AppBar--logo",
25459
- "text": "utilities_ops-app-frame_AppBarComponent_AppBar--text",
25460
- "iconText": "utilities_ops-app-frame_AppBarComponent_AppBar--iconText",
25461
- "searchBar": "utilities_ops-app-frame_AppBarComponent_AppBar--searchBar",
25462
- "placeholderDiv": "utilities_ops-app-frame_AppBarComponent_AppBar--placeholderDiv",
25463
- "appBarLeft": "utilities_ops-app-frame_AppBarComponent_AppBar--appBarLeft",
25464
- "appTitle": "utilities_ops-app-frame_AppBarComponent_AppBar--appTitle",
25465
- "item": "utilities_ops-app-frame_AppBarComponent_AppBar--item",
25466
- "searchIcon": "utilities_ops-app-frame_AppBarComponent_AppBar--searchIcon",
25467
- "searchWrapper": "utilities_ops-app-frame_AppBarComponent_AppBar--searchWrapper",
25468
- "phoneDefault": "utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault",
25469
- "phoneAvailable": "utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable",
25470
- "phoneUnvailable": "utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable",
25471
- "light": "utilities_ops-app-frame_AppBarComponent_AppBar--light",
25472
- "lightDefault": "utilities_ops-app-frame_AppBarComponent_AppBar--lightDefault",
25473
- "phoneOffline": "utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline",
25474
- "lightAvailable": "utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable",
25475
- "SpinnerWrapper": "utilities_ops-app-frame_AppBarComponent_AppBar--SpinnerWrapper",
25476
- "roleAndFlag": "utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag",
25477
- "feedback": "utilities_ops-app-frame_AppBarComponent_AppBar--feedback",
25478
- "overflowItems": "utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems",
25479
- "mihelp_button": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button",
25480
- "mihelpDot": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelpDot",
25481
- "mihelpTooltip": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelpTooltip",
25482
- "ideaWidgetContainer": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer",
25483
- "ideaWidgetHide": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide",
25484
- "st0": "utilities_ops-app-frame_AppBarComponent_AppBar--st0",
25485
- "st1": "utilities_ops-app-frame_AppBarComponent_AppBar--st1",
25486
- "st2": "utilities_ops-app-frame_AppBarComponent_AppBar--st2",
25487
- "ideaWidgetHideButton": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHideButton",
25488
- "profile": "utilities_ops-app-frame_AppBarComponent_AppBar--profile",
25489
- "searchContainer": "utilities_ops-app-frame_AppBarComponent_AppBar--searchContainer",
25490
- "settingsSidebarWrapper": "utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebarWrapper",
25491
- "settingsSidebar": "utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebar",
25492
- "sideBarWrapper": "utilities_ops-app-frame_AppBarComponent_AppBar--sideBarWrapper",
25493
- "innerNotificationDiv": "utilities_ops-app-frame_AppBarComponent_AppBar--innerNotificationDiv",
25494
- "notificationsHeader": "utilities_ops-app-frame_AppBarComponent_AppBar--notificationsHeader",
25495
- "notificationsWrapper": "utilities_ops-app-frame_AppBarComponent_AppBar--notificationsWrapper",
25496
- "notificationCount": "utilities_ops-app-frame_AppBarComponent_AppBar--notificationCount",
25497
- "twoChars": "utilities_ops-app-frame_AppBarComponent_AppBar--twoChars",
25498
- "threeChars": "utilities_ops-app-frame_AppBarComponent_AppBar--threeChars",
25499
- "notificationIconWrapper": "utilities_ops-app-frame_AppBarComponent_AppBar--notificationIconWrapper",
25500
- "arrowTipContainer": "utilities_ops-app-frame_AppBarComponent_AppBar--arrowTipContainer",
25501
- "ideaNoteArrow": "utilities_ops-app-frame_AppBarComponent_AppBar--ideaNoteArrow",
25502
- "mihelpArrow": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelpArrow",
25503
- "profileArrow": "utilities_ops-app-frame_AppBarComponent_AppBar--profileArrow"
25504
- }
25505
- };
25506
- var getPhoneStatusStyle = function getPhoneStatusStyle(status, theme) {
25507
- if (status === PHONE_STATUS.Available) {
25508
- return theme === 'light' ? 'flex-grid-items lightAvailable' : 'item phoneAvailable';
25509
- } else if (status === PHONE_STATUS.Offline) {
25510
- return theme !== 'light' ? 'item phoneUnvailable' : 'flex-grid-items phoneOffline';
25511
- } else if (theme === 'light') {
25512
- return 'flex-grid-items lightDefault';
25513
- } else {
25514
- return 'item phoneDefault';
25515
- }
25516
- };
25517
- var PhoneAvailableIcon = function PhoneAvailableIcon(_ref) {
25518
- var theme = _ref.theme;
25519
- return /*#__PURE__*/React__default["default"].createElement(coreComponents.Icon, {
25520
- name: "phone",
25521
- variant: "material",
25522
- style: theme === 'light' ? {
25523
- fontSize: '24px',
25524
- marginLeft: '5px',
25525
- marginRight: '5px',
25526
- color: '#1d5ab9'
25527
- } : {}
25528
- });
25529
- };
25530
- var PhoneUnavailableIcon = function PhoneUnavailableIcon(_ref2) {
25531
- var _ref2$width = _ref2.width,
25532
- width = _ref2$width === void 0 ? '14px' : _ref2$width,
25533
- _ref2$height = _ref2.height,
25534
- height = _ref2$height === void 0 ? '16px' : _ref2$height,
25535
- _ref2$viewBox = _ref2.viewBox,
25536
- viewBox = _ref2$viewBox === void 0 ? '0 0 18 18' : _ref2$viewBox;
25537
- return /*#__PURE__*/React__default["default"].createElement("svg", {
25538
- width: width,
25539
- height: height,
25540
- viewBox: viewBox
25541
- }, /*#__PURE__*/React__default["default"].createElement("g", {
25542
- id: "Cobalt---version-3.0",
25543
- stroke: "none",
25544
- strokeWidth: "1",
25545
- fill: "none",
25546
- fillRule: "evenodd"
25547
- }, /*#__PURE__*/React__default["default"].createElement("g", {
25548
- id: "Portal---Phone-Unavailable",
25549
- transform: "translate(-1142.000000, -22.000000)"
25550
- }, /*#__PURE__*/React__default["default"].createElement("g", {
25551
- id: "Group-12",
25552
- transform: "translate(1127.000000, 14.000000)"
25553
- }, /*#__PURE__*/React__default["default"].createElement("g", {
25554
- id: "baseline-local_phone-24px",
25555
- transform: "translate(12.000000, 6.000000)"
25556
- }, /*#__PURE__*/React__default["default"].createElement("polygon", {
25557
- id: "Path",
25558
- points: "0 0 24 0 24 24 0 24"
25559
- }), /*#__PURE__*/React__default["default"].createElement("path", {
25560
- d: "M6.62,10.79 C8.06,13.62 10.38,15.93 13.21,17.38 L15.41,15.18 C15.68,14.91 16.08,14.82 16.43,14.94 C17.55,15.31 18.76,15.51 20,15.51 C20.55,15.51 21,15.96 21,16.51 L21,20 C21,20.55 20.55,21 20,21 C10.61,21 3,13.39 3,4 C3,3.45 3.45,3 4,3 L7.5,3 C8.05,3 8.5,3.45 8.5,4 C8.5,5.25 8.7,6.45 9.07,7.57 C9.18,7.92 9.1,8.31 8.82,8.59 L6.62,10.79 Z",
25561
- id: "Path",
25562
- fill: "#F71241"
25563
- }), /*#__PURE__*/React__default["default"].createElement("polygon", {
25564
- id: "Path",
25565
- fill: "#F71241",
25566
- points: "22 3 21 2 17 6 13 2 12 3 16 7 12 11 13 12 17 8 21 12 22 11 18 7"
25567
- }))))));
25568
- };
25569
- var PhoneStatus = function PhoneStatus(_ref3) {
25570
- _ref3.config;
25571
- var phoneNumber = _ref3.phoneNumber,
25572
- phoneStatusObject = _ref3.phoneStatusObject,
25573
- togglePhoneAvailability = _ref3.togglePhoneAvailability,
25574
- _ref3$theme = _ref3.theme,
25575
- theme = _ref3$theme === void 0 ? 'dark' : _ref3$theme;
25576
- var _phoneStatusObject$ph = phoneStatusObject.phoneStatus,
25577
- phoneStatus = _phoneStatusObject$ph === void 0 ? '' : _phoneStatusObject$ph,
25578
- _phoneStatusObject$ph2 = phoneStatusObject.phoneStatusProcessing,
25579
- phoneStatusProcessing = _phoneStatusObject$ph2 === void 0 ? false : _phoneStatusObject$ph2;
25580
- return /*#__PURE__*/React__default["default"].createElement(coreComponents.Tooltip, {
25581
- content: phoneStatus
25582
- }, /*#__PURE__*/React__default["default"].createElement("div", {
25583
- onClick: function onClick() {
25584
- if (!phoneStatusProcessing) togglePhoneAvailability();
25585
- },
25586
- className: _getClassName(getPhoneStatusStyle(phoneStatus, theme), _styleModuleImportMap$3, {
25587
- "handleMissingStyleName": "warn"
25588
- })
25589
- }, phoneStatus === PHONE_STATUS.Available ? /*#__PURE__*/React__default["default"].createElement(PhoneAvailableIcon, {
25590
- theme: theme
25591
- }) : null, phoneStatus === PHONE_STATUS.Offline ? /*#__PURE__*/React__default["default"].createElement(PhoneUnavailableIcon, theme === 'light' ? {
25592
- viewBox: '0 0 24 24',
25593
- width: '24px',
25594
- height: '24px'
25595
- } : {}) : null, !phoneStatus ? /*#__PURE__*/React__default["default"].createElement(PhoneAvailableIcon, {
25596
- theme: theme
25597
- }) : null, /*#__PURE__*/React__default["default"].createElement("div", null, phoneNumber), phoneStatusProcessing === true ? /*#__PURE__*/React__default["default"].createElement("div", {
25598
- className: "utilities_ops-app-frame_AppBarComponent_AppBar--SpinnerWrapper"
25599
- }, /*#__PURE__*/React__default["default"].createElement(coreComponents.Spinner, {
25600
- size: "xxs"
25601
- })) : null));
25602
- };
25603
-
25604
22890
  var onRenderItem = function onRenderItem(item) {
25605
22891
  return item.render();
25606
22892
  };
@@ -25658,31 +22944,31 @@ var OverflowMenu = function OverflowMenu(props) {
25658
22944
  });
25659
22945
  };
25660
22946
 
25661
- var defaultAutoSelectProps$1 = {
22947
+ var defaultAutoSelectProps = {
25662
22948
  optionStyleProps: {
25663
22949
  rowHeight: 40,
25664
22950
  optionsMinHeight: 200
25665
22951
  },
25666
22952
  width: 200
25667
22953
  };
25668
- var printerFields = [_objectSpread2(_objectSpread2({}, defaultAutoSelectProps$1), {}, {
25669
- name: 'barcode_label_printers',
25670
- label: 'Bar Code Printer'
25671
- }), _objectSpread2(_objectSpread2({}, defaultAutoSelectProps$1), {}, {
25672
- name: 'check_printers',
25673
- label: 'Check Printer'
25674
- }), _objectSpread2(_objectSpread2({}, defaultAutoSelectProps$1), {}, {
22954
+ var printerFields = [_objectSpread2(_objectSpread2({}, defaultAutoSelectProps), {}, {
25675
22955
  name: 'standard_printers',
25676
22956
  label: 'Standard Printer'
25677
- }), _objectSpread2(_objectSpread2({}, defaultAutoSelectProps$1), {}, {
22957
+ }), _objectSpread2(_objectSpread2({}, defaultAutoSelectProps), {}, {
22958
+ name: 'check_printers',
22959
+ label: 'Check Printer'
22960
+ }), _objectSpread2(_objectSpread2({}, defaultAutoSelectProps), {}, {
25678
22961
  name: 'windshield_label_printers',
25679
22962
  label: 'Wind Shield Printer'
25680
- }), _objectSpread2(_objectSpread2({}, defaultAutoSelectProps$1), {}, {
22963
+ }), _objectSpread2(_objectSpread2({}, defaultAutoSelectProps), {}, {
25681
22964
  name: 'text_printers',
25682
22965
  label: 'Dot Matrix Printers'
22966
+ }), _objectSpread2(_objectSpread2({}, defaultAutoSelectProps), {}, {
22967
+ name: 'barcode_label_printers',
22968
+ label: 'Bar Code Printer'
25683
22969
  })];
25684
22970
 
25685
- var css_248z$b = ".utilities_ops-app-frame_AppBarComponent_Settings_PrinterSettings_PrinterSettings--PrinterSettings {\r\n padding-right: 0px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PrinterSettings_PrinterSettings--col-1-5 {\r\n width: 20%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PrinterSettings_PrinterSettings--col-1-2 {\r\n width: 50%;\r\n}\r\n";
22971
+ var css_248z$b = ".utilities_ops-app-frame_AppBarComponent_Settings_PrinterSettings_PrinterSettings--PrinterSettings {\r\n margin: 0 9px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PrinterSettings_PrinterSettings--col-1-5 {\r\n width: 20%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PrinterSettings_PrinterSettings--col-1-2 {\r\n width: 50%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PrinterSettings_PrinterSettings--col-1-1 {\r\n width: 100%;\r\n margin: 8px 0;\r\n}\r\n";
25686
22972
  styleInject(css_248z$b);
25687
22973
 
25688
22974
  // Properly populate printer options before feeding to autoselect
@@ -25725,7 +23011,7 @@ var PrinterSettings = /*#__PURE__*/function (_React$Component) {
25725
23011
  var printers = getPrinterOptions(printersData[name]);
25726
23012
  return /*#__PURE__*/React__namespace.createElement("div", {
25727
23013
  key: name,
25728
- className: "utilities_ops-app-frame_AppBarComponent_Settings_PrinterSettings_PrinterSettings--col-1-5"
23014
+ className: "utilities_ops-app-frame_AppBarComponent_Settings_PrinterSettings_PrinterSettings--col-1-1"
25729
23015
  }, /*#__PURE__*/React__namespace.createElement(coreComponents.AutoSelect, {
25730
23016
  key: name,
25731
23017
  label: printer.label,
@@ -25818,10 +23104,10 @@ var getLanguages = function getLanguages() {
25818
23104
  }[selectedCountry];
25819
23105
  };
25820
23106
 
25821
- var css_248z$a = "/* Simple Grid */\r\n[class*='col-'] {\r\n float: left;\r\n min-height: 1px;\r\n padding-right: 10px; /* column-space */\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid {\r\n width: 100%;\r\n max-width: 1300px;\r\n min-width: 748px; /* when using padded grid on ipad in portrait mode, width should be viewport-width - padding = (768 - 20) = 748. actually, it should be even smaller to allow for padding of grid containing element */\r\n margin: 0 auto;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid:after {\r\n content: '';\r\n display: table;\r\n clear: both;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid-pad {\r\n padding-top: 20px;\r\n padding-left: 20px; /* grid-space to left */\r\n padding-right: 0; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-20px=0 */\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-right {\r\n float: right;\r\n}\r\n\r\n/* Content Columns */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-1 {\r\n width: 100%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-2-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-8-12 {\r\n width: 66.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-2,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-6-12 {\r\n width: 50%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-4-12 {\r\n width: 33.33%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-4,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-12 {\r\n width: 25%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-5 {\r\n width: 20%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-6,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-2-12 {\r\n width: 16.667%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-7 {\r\n width: 14.28%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-2-7 {\r\n width: 28.56%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-4 {\r\n width: 75%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-7 {\r\n width: 42.84%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-4-7 {\r\n width: 57.12%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-8 {\r\n width: 12.5%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-9 {\r\n width: 11.1%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-10 {\r\n width: 10%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-10 {\r\n width: 30%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-11 {\r\n width: 9.09%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-12 {\r\n width: 8.33%;\r\n}\r\n\r\n/* Layout Columns */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-11-12 {\r\n width: 91.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-10-12 {\r\n width: 83.333%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-9-12 {\r\n width: 75%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-5-12 {\r\n width: 41.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-7-12 {\r\n width: 58.33%;\r\n}\r\n\r\n/* Pushing blocks */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-2-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-8-12 {\r\n margin-left: 66.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-2,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-6-12 {\r\n margin-left: 50%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-4-12 {\r\n margin-left: 33.33%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-4,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-3-12 {\r\n margin-left: 25%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-5 {\r\n margin-left: 20%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-6,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-2-12 {\r\n margin-left: 16.667%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-7 {\r\n margin-left: 14.28%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-8 {\r\n margin-left: 12.5%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-9 {\r\n margin-left: 11.1%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-10 {\r\n margin-left: 10%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-11 {\r\n margin-left: 9.09%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-12 {\r\n margin-left: 8.33%;\r\n}\r\n\r\n@media handheld, only screen and (max-width: 767px) {\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid {\r\n width: 100%;\r\n min-width: 0;\r\n margin-left: 0;\r\n margin-right: 0;\r\n padding-left: 20px; /* grid-space to left */\r\n padding-right: 10px; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-10px=10px */\r\n }\r\n\r\n [class*='col-'] {\r\n width: auto;\r\n float: none;\r\n margin: 0;\r\n padding-left: 0;\r\n padding-right: 10px; /* column-space */\r\n }\r\n\r\n /* Mobile Layout */\r\n\r\n [class*='mobile-col-'] {\r\n float: left;\r\n margin: 0 0 10px;\r\n padding-left: 0;\r\n padding-right: 10px; /* column-space */\r\n padding-bottom: 0;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-1 {\r\n width: 100%;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-2-3,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-8-12 {\r\n width: 66.66%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-2,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-6-12 {\r\n width: 50%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-3,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-4-12 {\r\n width: 33.33%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-4,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-3-12 {\r\n width: 25%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-5 {\r\n width: 20%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-6,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-2-12 {\r\n width: 16.667%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-7 {\r\n width: 14.28%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-8 {\r\n width: 12.5%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-9 {\r\n width: 11.1%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-10 {\r\n width: 10%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-11 {\r\n width: 9.09%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-12 {\r\n width: 8.33%;\r\n }\r\n\r\n /* Layout Columns */\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-11-12 {\r\n width: 91.66%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-10-12 {\r\n width: 83.333%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-9-12 {\r\n width: 75%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-5-12 {\r\n width: 41.66%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-7-12 {\r\n width: 58.33%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--hide-on-mobile {\r\n display: none !important;\r\n width: 0;\r\n height: 0;\r\n }\r\n}\r\n\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--SettingsView {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n padding: 0 20px 20px;\r\n margin-top: 65px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm {\r\n width: 100%;\r\n max-width: 1300px;\r\n box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px;\r\n max-width: 800px;\r\n margin: 0 auto;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--header {\r\n width: 100%;\r\n height: 40px;\r\n padding: 0 15px;\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: flex-start;\r\n align-items: center;\r\n background: var(--primaryBlue);\r\n background: var(--primaryBlue);\r\n outline: 1px solid var(--primaryBlue);\r\n outline: 1px solid var(--primaryBlue);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--title {\r\n font-size: 15.9px;\r\n font-weight: 500;\r\n color: var(--white);\r\n color: var(--white);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--sectionTitle {\r\n font-weight: 500;\r\n margin-top: 8px;\r\n margin-bottom: 8px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--body {\r\n padding: 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox {\r\n display: flex;\r\n width: 100%;\r\n justify-content: flex-end;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow {\r\n padding-right: 0px;\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--labeledGhost {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings {\r\n padding-right: 0px;\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--title {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n font-weight: 500;\r\n color: black;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--smallInfo {\r\n margin-top: 2px;\r\n margin-bottom: 12px;\r\n font-size: 14px;\r\n opacity: 0.5;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow {\r\n display: flex;\r\n width: 100%;\r\n justify-content: flex-start;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--textField {\r\n position: relative;\r\n width: 50%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--backdrop{\r\n width: 100%;\r\n height: 100%;\r\n position: fixed;\r\n z-index: 100;\r\n left:0;\r\n top:0;\r\n background-color: rgba(0,0,0,0.1);\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--spinner{\r\n position: fixed;\r\n z-index: 500;\r\n left: calc(50% - 30px);\r\n top: calc(50% - 30px);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settings-hr{\r\n padding: 10px;\r\n margin-bottom: 5px;\r\n width: 100%;\r\n outline: none;\r\n border: none;\r\n border-bottom: 1px solid #ddd;\r\n overflow: auto;\r\n}";
23107
+ var css_248z$a = "/* Simple Grid */\r\n[class*='col-'] {\r\n float: left;\r\n min-height: 1px;\r\n /* padding-right: 10px; */\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid {\r\n width: 100%;\r\n max-width: 1300px;\r\n min-width: 748px; /* when using padded grid on ipad in portrait mode, width should be viewport-width - padding = (768 - 20) = 748. actually, it should be even smaller to allow for padding of grid containing element */\r\n margin: 0 auto;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid:after {\r\n content: '';\r\n display: table;\r\n clear: both;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid-pad {\r\n padding-top: 20px;\r\n padding-left: 20px; /* grid-space to left */\r\n padding-right: 0; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-20px=0 */\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-right {\r\n float: right;\r\n}\r\n\r\n/* Content Columns */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-1 {\r\n width: 100%;\r\n margin: 8px 0;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-2-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-8-12 {\r\n width: 66.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-2,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-6-12 {\r\n width: 50%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-4-12 {\r\n width: 33.33%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-4,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-12 {\r\n width: 25%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-5 {\r\n width: 20%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-6,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-2-12 {\r\n width: 16.667%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-7 {\r\n width: 14.28%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-2-7 {\r\n width: 28.56%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-4 {\r\n width: 75%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-7 {\r\n width: 42.84%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-4-7 {\r\n width: 57.12%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-8 {\r\n width: 12.5%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-9 {\r\n width: 11.1%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-10 {\r\n width: 10%;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-3-10 {\r\n width: 30%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-11 {\r\n width: 9.09%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-12 {\r\n width: 8.33%;\r\n}\r\n\r\n/* Layout Columns */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-11-12 {\r\n width: 91.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-10-12 {\r\n width: 83.333%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-9-12 {\r\n width: 75%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-5-12 {\r\n width: 41.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-7-12 {\r\n width: 58.33%;\r\n}\r\n\r\n/* Pushing blocks */\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-2-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-8-12 {\r\n margin-left: 66.66%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-2,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-6-12 {\r\n margin-left: 50%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-3,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-4-12 {\r\n margin-left: 33.33%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-4,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-3-12 {\r\n margin-left: 25%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-5 {\r\n margin-left: 20%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-6,\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-2-12 {\r\n margin-left: 16.667%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-7 {\r\n margin-left: 14.28%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-8 {\r\n margin-left: 12.5%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-9 {\r\n margin-left: 11.1%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-10 {\r\n margin-left: 10%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-11 {\r\n margin-left: 9.09%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--push-1-12 {\r\n margin-left: 8.33%;\r\n}\r\n\r\n@media handheld, only screen and (max-width: 767px) {\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--grid {\r\n width: 100%;\r\n min-width: 0;\r\n margin-left: 0;\r\n margin-right: 0;\r\n padding-left: 20px; /* grid-space to left */\r\n padding-right: 10px; /* grid-space to right: (grid-space-left - column-space) e.g. 20px-10px=10px */\r\n }\r\n\r\n [class*='col-'] {\r\n width: auto;\r\n float: none;\r\n margin: 0;\r\n padding-left: 0;\r\n /* padding-right: 10px; */\r\n }\r\n\r\n /* Mobile Layout */\r\n\r\n [class*='mobile-col-'] {\r\n float: left;\r\n margin: 0 0 10px;\r\n padding-left: 0;\r\n padding-right: 10px; /* column-space */\r\n padding-bottom: 0;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-1 {\r\n width: 100%;\r\n margin: 8px 0;\r\n }\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-2-3,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-8-12 {\r\n width: 66.66%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-2,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-6-12 {\r\n width: 50%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-3,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-4-12 {\r\n width: 33.33%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-4,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-3-12 {\r\n width: 25%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-5 {\r\n width: 20%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-6,\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-2-12 {\r\n width: 16.667%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-7 {\r\n width: 14.28%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-8 {\r\n width: 12.5%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-9 {\r\n width: 11.1%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-10 {\r\n width: 10%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-11 {\r\n width: 9.09%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-1-12 {\r\n width: 8.33%;\r\n }\r\n\r\n /* Layout Columns */\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-11-12 {\r\n width: 91.66%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-10-12 {\r\n width: 83.333%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-9-12 {\r\n width: 75%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-5-12 {\r\n width: 41.66%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--mobile-col-7-12 {\r\n width: 58.33%;\r\n }\r\n\r\n .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--hide-on-mobile {\r\n display: none !important;\r\n width: 0;\r\n height: 0;\r\n }\r\n}\r\n\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--SettingsView {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n padding: 0 20px 20px;\r\n margin-top: 65px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm {\r\n width: 100%;\r\n max-width: 1300px;\r\n /* box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 6px, rgba(0, 0, 0, 0.12) 0px 1px 4px; */\r\n max-width: 800px;\r\n margin: 0 auto;\r\n height: 100%;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm form {\r\n margin: 0 15px;\r\n height: 70%;\r\n overflow-y: auto;\r\n scrollbar-width: none;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsHeader {\r\n display: flex;\r\n align-items: end;\r\n margin: 16px 0 8px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsHeader i{\r\n font-size: 20px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsHeader p {\r\n font-size: 18px;\r\n font-weight: 400;\r\n margin-left: 15px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--header {\r\n width: 100%;\r\n height: 40px;\r\n padding: 0 15px;\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: flex-start;\r\n align-items: center;\r\n background: var(--primaryBlue);\r\n background: var(--primaryBlue);\r\n outline: 1px solid var(--primaryBlue);\r\n outline: 1px solid var(--primaryBlue);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--title {\r\n font-size: 15.9px;\r\n font-weight: 500;\r\n color: var(--white);\r\n color: var(--white);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--sectionTitle {\r\n font-weight: 500;\r\n margin-top: 8px;\r\n margin-bottom: 8px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--body {\r\n padding: 16px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox {\r\n display: flex;\r\n width: 100%;\r\n justify-content: center;\r\n position: absolute;\r\n bottom: 25px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox span {\r\n width: 80%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox span button {\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox span button span {\r\n grid-gap: 6px;\r\n gap: 6px;\r\n width: auto;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox span button span i {\r\n color: #fff;\r\n font-size: 18px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox span button span .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--saveTxt {\r\n font-size: 16px;\r\n font-weight: 600;\r\n width: auto;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow {\r\n padding-right: 0px;\r\n width: 100%;\r\n margin: 0 9px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--labeledGhost {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings {\r\n padding-right: 0px;\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--title {\r\n display: flex;\r\n flex-direction: column;\r\n justify-content: center;\r\n font-weight: 500;\r\n color: black;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--smallInfo {\r\n margin-top: 2px;\r\n margin-bottom: 12px;\r\n font-size: 14px;\r\n opacity: 0.5;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow {\r\n display: flex;\r\n width: 100%;\r\n justify-content: flex-start;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow .utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--textField {\r\n position: relative;\r\n width: 50%;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--backdrop{\r\n width: 100%;\r\n height: 100%;\r\n position: fixed;\r\n z-index: 100;\r\n left:0;\r\n top:0;\r\n background-color: rgba(0,0,0,0.1);\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--spinner{\r\n position: fixed;\r\n z-index: 500;\r\n left: calc(50% - 30px);\r\n top: calc(50% - 30px);\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settings-hr{\r\n padding: 10px;\r\n margin-bottom: 5px;\r\n width: 100%;\r\n outline: none;\r\n border: none;\r\n border-bottom: 1px solid #ddd;\r\n overflow: auto;\r\n}";
25822
23108
  styleInject(css_248z$a);
25823
23109
 
25824
- var getDescription$2 = function getDescription(languageOptions) {
23110
+ var getDescription$1 = function getDescription(languageOptions) {
25825
23111
  return function (code) {
25826
23112
  return languageOptions[code].description;
25827
23113
  };
@@ -25834,7 +23120,7 @@ var LanguageMenu = function LanguageMenu(props) {
25834
23120
  // TODO: Get stack from env tool. No props required.
25835
23121
  var languageOptions = getLanguages(props.selectedCountry, props.stack);
25836
23122
  return /*#__PURE__*/React__default["default"].createElement("div", {
25837
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-4"
23123
+ className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-1"
25838
23124
  }, /*#__PURE__*/React__default["default"].createElement(coreComponents.AutoSelect, {
25839
23125
  options: Object.keys(languageOptions),
25840
23126
  selectedOption: props.selectedOption,
@@ -25842,7 +23128,7 @@ var LanguageMenu = function LanguageMenu(props) {
25842
23128
  onChange: function onChange(value) {
25843
23129
  return props.handleChange(value);
25844
23130
  },
25845
- displayOption: getDescription$2(languageOptions),
23131
+ displayOption: getDescription$1(languageOptions),
25846
23132
  optionStyleProps: STYLES,
25847
23133
  width: 200,
25848
23134
  name: "selectedLanguage",
@@ -25879,7 +23165,7 @@ var RoleSelector$1 = function RoleSelector(_ref) {
25879
23165
  _ref.selectedYard;
25880
23166
  _ref.selectedCountryA3code;
25881
23167
  return /*#__PURE__*/React__default["default"].createElement("div", {
25882
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-4"
23168
+ className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-1"
25883
23169
  }, /*#__PURE__*/React__default["default"].createElement(coreComponents.AutoSelect, {
25884
23170
  name: "role",
25885
23171
  label: "Role",
@@ -25905,12 +23191,12 @@ var RoleSelector$1 = function RoleSelector(_ref) {
25905
23191
  };
25906
23192
 
25907
23193
  var _excluded$3 = ["selectedYard", "name", "handleChange", "yardOptions", "label"];
25908
- var getDescription$1 = function getDescription(yardOptions) {
23194
+ var getDescription = function getDescription(yardOptions) {
25909
23195
  return function (code) {
25910
23196
  return yardOptions[code].yard_number;
25911
23197
  };
25912
23198
  };
25913
- var optionStyleProps$1 = {
23199
+ var optionStyleProps = {
25914
23200
  rowHeight: 40,
25915
23201
  optionsMinHeight: 200
25916
23202
  };
@@ -25922,15 +23208,15 @@ var YardNumberMenu$1 = function YardNumberMenu(_ref) {
25922
23208
  label = _ref.label,
25923
23209
  otherProps = _objectWithoutProperties(_ref, _excluded$3);
25924
23210
  return /*#__PURE__*/React__default["default"].createElement("div", {
25925
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-4"
23211
+ className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-1"
25926
23212
  }, /*#__PURE__*/React__default["default"].createElement(coreComponents.AutoSelect, _extends$1({}, otherProps, {
25927
23213
  name: name,
25928
23214
  value: selectedYard,
25929
23215
  options: Object.keys(yardOptions),
25930
23216
  label: label || name,
25931
23217
  onChange: handleChange,
25932
- displayOption: getDescription$1(yardOptions),
25933
- optionStyleProps: optionStyleProps$1
23218
+ displayOption: getDescription(yardOptions),
23219
+ optionStyleProps: optionStyleProps
25934
23220
  })));
25935
23221
  };
25936
23222
 
@@ -26023,7 +23309,7 @@ var YardNumberContainer = /*#__PURE__*/function (_React$Component) {
26023
23309
  return /*#__PURE__*/React__namespace.createElement(YardNumberMenu$1, {
26024
23310
  required: true,
26025
23311
  name: "selectedYard",
26026
- label: "Yard/Facility",
23312
+ label: "Yard",
26027
23313
  selectedYard: props.selectedYard,
26028
23314
  selectedCountry: props.selectedCountry,
26029
23315
  selectedRole: props.selectedRole,
@@ -26035,50 +23321,28 @@ var YardNumberContainer = /*#__PURE__*/function (_React$Component) {
26035
23321
  return YardNumberContainer;
26036
23322
  }(React__namespace.Component);
26037
23323
 
26038
- // Contains all the currency mappings
26039
- var USD = {
26040
- code: 'USD',
26041
- description: 'USD'
26042
- };
26043
- var CAD = {
26044
- code: 'CAD',
26045
- description: 'CAD'
26046
- };
26047
- var INR = {
26048
- code: 'INR',
26049
- description: 'INR'
26050
- };
26051
- var getCurrencies = function getCurrencies() {
26052
- return {
26053
- USD: USD,
26054
- CAD: CAD,
26055
- INR: INR
26056
- };
26057
- };
23324
+ var css_248z$9 = ".utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails {\r\n width: 100%;\r\n display: flex;\r\n padding: 36px 48px;\r\n border-bottom: 1px solid #EDEBE9;\r\n margin-bottom: 12px;\r\n grid-gap: 24px;\r\n gap: 24px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--details {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--details h3 {\r\n font-size: 16px;\r\n font-style: normal;\r\n font-weight: 600;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--details p {\r\n font-size: 12px;\r\n font-style: normal;\r\n font-weight: 350;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton {\r\n display: flex;\r\n align-items: center;\r\n padding: 7px 20px;\r\n grid-gap: 6px;\r\n grid-gap: 6px;\r\n gap: 6px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton i {\r\n color: #FFF;\r\n font-size: 20px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton span button {\r\n padding: 7px 25px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails .utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton span button span {\r\n grid-gap: 6px;\r\n gap: 6px;\r\n}";
23325
+ styleInject(css_248z$9);
26058
23326
 
26059
- var CURRENCY_OPTIONS = getCurrencies();
26060
- var CURRENCY_OPTIONS_KEYS = Object.keys(CURRENCY_OPTIONS);
26061
- var getDescription = function getDescription(code) {
26062
- return CURRENCY_OPTIONS[code].description;
26063
- };
26064
- var optionStyleProps = {
26065
- rowHeight: 40,
26066
- optionsMinHeight: 200
26067
- };
26068
- var CurrencyMenu = function CurrencyMenu(props) {
23327
+ var ProfileDetails = function ProfileDetails(_ref) {
23328
+ var logout = _ref.logout;
26069
23329
  return /*#__PURE__*/React__default["default"].createElement("div", {
26070
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-4"
26071
- }, /*#__PURE__*/React__default["default"].createElement(coreComponents.AutoSelect, {
26072
- required: true,
26073
- name: "selectedCurrency",
26074
- label: "Currency for Lot Review",
26075
- options: CURRENCY_OPTIONS_KEYS,
26076
- selectedOption: props.selectedOption,
26077
- value: props.value,
26078
- onChange: props.handleChange,
26079
- displayOption: getDescription,
26080
- optionStyleProps: optionStyleProps
26081
- }));
23330
+ className: "utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--profileDetails"
23331
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
23332
+ className: "utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--details"
23333
+ }, /*#__PURE__*/React__default["default"].createElement("h3", null, storage$1.userName), /*#__PURE__*/React__default["default"].createElement("p", null, storage$1.userEmail)), /*#__PURE__*/React__default["default"].createElement("div", {
23334
+ className: "utilities_ops-app-frame_AppBarComponent_Settings_ProfileDetails_ProfileDetails--logoutButton"
23335
+ }, /*#__PURE__*/React__default["default"].createElement(coreComponents.Button, {
23336
+ primary: true,
23337
+ onClick: function onClick() {
23338
+ return logout({}, {
23339
+ key: 'logout'
23340
+ });
23341
+ }
23342
+ }, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
23343
+ name: "arrow-right-from-bracket",
23344
+ variant: "solid"
23345
+ }), /*#__PURE__*/React__default["default"].createElement("span", null, "Logout"))));
26082
23346
  };
26083
23347
 
26084
23348
  var getRCExtensionStatus = /*#__PURE__*/function () {
@@ -26213,190 +23477,8 @@ var getActivePrinters = (function (printersData) {
26213
23477
  return reduceToObject(chooseActive)(toPairs$1(defaultPrinters));
26214
23478
  });
26215
23479
 
26216
- var Container = /*#__PURE__*/function (_React$Component) {
26217
- _inherits$2(Container, _React$Component);
26218
- var _super = _createSuper(Container);
26219
- function Container() {
26220
- var _this;
26221
- _classCallCheck$2(this, Container);
26222
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
26223
- args[_key] = arguments[_key];
26224
- }
26225
- _this = _super.call.apply(_super, [this].concat(args));
26226
- _defineProperty$1(_assertThisInitialized(_this), "state", {
26227
- number: _this.props.phoneNumber.substr(1),
26228
- result: 'none',
26229
- status: 'idle'
26230
- });
26231
- _defineProperty$1(_assertThisInitialized(_this), "setResult", function (result) {
26232
- return _this.setState({
26233
- result: result
26234
- });
26235
- });
26236
- _defineProperty$1(_assertThisInitialized(_this), "setStatus", function (status) {
26237
- return _this.setState({
26238
- status: status
26239
- });
26240
- });
26241
- _defineProperty$1(_assertThisInitialized(_this), "setNumber", function (event, value) {
26242
- var number = shouldAllowInputValue(value) ? value : _this.state.number;
26243
- var updatePhoneNumber = function updatePhoneNumber() {
26244
- return _this.props.updatePhoneNumber("8".concat(number));
26245
- };
26246
- return _this.setState({
26247
- number: number,
26248
- status: 'idle',
26249
- result: 'none'
26250
- }, updatePhoneNumber);
26251
- });
26252
- _defineProperty$1(_assertThisInitialized(_this), "testCall", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
26253
- var yardNumber, extension, testCallUrl, _yield$fetcher$get, data;
26254
- return _regeneratorRuntime().wrap(function _callee$(_context) {
26255
- while (1) switch (_context.prev = _context.next) {
26256
- case 0:
26257
- _this.setStatus('calling');
26258
- // TODO: Validation && clean up.
26259
- yardNumber = Math.floor(Number(_this.state.number.substring(0, 4)));
26260
- extension = _this.state.number.substr(4);
26261
- testCallUrl = generateTestCallUrl({
26262
- yardNumber: yardNumber,
26263
- extension: extension
26264
- });
26265
- _context.prev = 4;
26266
- _context.next = 7;
26267
- return fetcher.get(testCallUrl);
26268
- case 7:
26269
- _yield$fetcher$get = _context.sent;
26270
- data = _yield$fetcher$get.data;
26271
- if (!(_this.state.status === 'idle')) {
26272
- _context.next = 11;
26273
- break;
26274
- }
26275
- return _context.abrupt("return");
26276
- case 11:
26277
- _this.handleTestCallResponse(data);
26278
- _context.next = 19;
26279
- break;
26280
- case 14:
26281
- _context.prev = 14;
26282
- _context.t0 = _context["catch"](4);
26283
- console.error('Failed to test call:', {
26284
- error: _context.t0
26285
- });
26286
- _this.setResult('fail');
26287
- _this.setStatus('idle');
26288
- case 19:
26289
- case "end":
26290
- return _context.stop();
26291
- }
26292
- }, _callee, null, [[4, 14]]);
26293
- })));
26294
- _defineProperty$1(_assertThisInitialized(_this), "handleTestCallResponse", function (data) {
26295
- if (data.result === 'Success') {
26296
- _this.setResult('pass');
26297
- _this.setStatus('idle');
26298
- }
26299
- if (data.result === 'Failure') {
26300
- _this.setResult('fail');
26301
- _this.setStatus('idle');
26302
- // This.props.updatePhoneNumber(this.state.number)
26303
- }
26304
- });
26305
- return _this;
26306
- }
26307
- _createClass$2(Container, [{
26308
- key: "componentWillReceiveProps",
26309
- value: function componentWillReceiveProps(newProps) {
26310
- this.setStatus('idle');
26311
- this.setState(function (state) {
26312
- return {
26313
- number: newProps.phoneNumber.substr(1)
26314
- };
26315
- });
26316
- }
26317
- }, {
26318
- key: "render",
26319
- value: function render() {
26320
- return this.props.children({
26321
- status: this.state.status,
26322
- result: this.state.result,
26323
- number: this.state.number,
26324
- setNumber: this.setNumber,
26325
- testCall: this.testCall,
26326
- ringCentralEnabled: this.props.ringCentralEnabled
26327
- });
26328
- }
26329
- }]);
26330
- return Container;
26331
- }(React__namespace.Component);
26332
- Container.defaultProps = {
26333
- number: '',
26334
- phoneNumber: ''
26335
- };
26336
- var shouldAllowInputValue = function shouldAllowInputValue(value) {
26337
- return /^\d{0,8}$/.test(value);
26338
- };
26339
- var generateTestCallUrl = function generateTestCallUrl(_ref2) {
26340
- var _storage$getLocalItem;
26341
- var yardNumber = _ref2.yardNumber,
26342
- extension = _ref2.extension;
26343
- var id = (_storage$getLocalItem = storage$1.getLocalItem('login')) === null || _storage$getLocalItem === void 0 ? void 0 : _storage$getLocalItem.userData.entity_id;
26344
- var url = storage$1.getItem('config').endpoints.testCall;
26345
- return frontEndUtils.string.substitute(url, {
26346
- yardNumber: yardNumber,
26347
- extension: extension,
26348
- id: id
26349
- });
26350
- };
26351
-
26352
- var css_248z$9 = ".utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--title {\r\n font-weight: 500;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--inputRow {\r\n display: flex;\r\n width: 100%;\r\n align-items: flex-end;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--inputRow .ms-TextField-errorMessage {\r\n position: absolute;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--textField {\r\n position: relative;\r\n display: flex;\r\n align-items: flex-end;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--prefix {\r\n margin: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--testCallButton {\r\n margin-left: 12px;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--prefix8 {\r\n margin: auto 2px auto 0;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--PhoneNumberSettings input {\r\n margin-right: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--smallInfo {\r\n margin-top: 2px;\r\n opacity: 0.5;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--PhoneNumberSettings small {\r\n margin-bottom: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--statusIndicator {\r\n position: absolute;\r\n right: 5px;\r\n height: 30px;\r\n display: flex;\r\n bottom: 1px;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--PhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--statusIndicator .ms-Spinner-circle {\r\n max-width: 20px !important;\r\n max-height: 20px !important;\r\n right: 5px;\r\n}\r\n\r\nmaterial-icon[name='check'] {\r\n color: rgb(100, 181, 10);\r\n font-size: 12px;\r\n}\r\n\r\nmaterial-icon[name='error_outline'] {\r\n color: #a80000;\r\n font-size: 12px;\r\n}\r\n";
26353
- styleInject(css_248z$9);
26354
-
26355
- var PhoneNumberSettings = function PhoneNumberSettings(props) {
26356
- return /*#__PURE__*/React__namespace.createElement(Container, props, function (store) {
26357
- return /*#__PURE__*/React__namespace.createElement("div", {
26358
- className: "utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--PhoneNumberSettings"
26359
- }, /*#__PURE__*/React__namespace.createElement("p", {
26360
- className: "utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--title"
26361
- }, "Phone Number"), /*#__PURE__*/React__namespace.createElement("small", {
26362
- className: "utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--smallInfo"
26363
- }, /*#__PURE__*/React__namespace.createElement("i", null, "Required to enable click to dial feature.")), /*#__PURE__*/React__namespace.createElement("div", {
26364
- className: "utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--inputRow"
26365
- }, /*#__PURE__*/React__namespace.createElement("span", {
26366
- className: "utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--textField"
26367
- }, /*#__PURE__*/React__namespace.createElement("span", {
26368
- className: "utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--prefix"
26369
- }, "8"), /*#__PURE__*/React__namespace.createElement(coreComponents.Input, {
26370
- required: true,
26371
- id: "phoneNumber",
26372
- name: "phoneNumber",
26373
- placeholder: "xxxxxxx",
26374
- label: "Phone Number",
26375
- value: store.number,
26376
- onChange: store.setNumber,
26377
- maxLength: "8",
26378
- onGetErrorMessage: validator
26379
- }), /*#__PURE__*/React__namespace.createElement("span", {
26380
- className: "utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--statusIndicator"
26381
- }, store.status === 'calling' ? /*#__PURE__*/React__namespace.createElement(coreComponents.Spinner, null) : store.result === 'pass' ? /*#__PURE__*/React__namespace.createElement("material-icon", {
26382
- name: "check",
26383
- size: "sm"
26384
- }) : store.result === 'fail' ? /*#__PURE__*/React__namespace.createElement("material-icon", {
26385
- name: "error_outline",
26386
- size: "sm"
26387
- }) : null)), /*#__PURE__*/React__namespace.createElement("span", {
26388
- className: "utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--testCallButton"
26389
- }, /*#__PURE__*/React__namespace.createElement(coreComponents.Button, {
26390
- disabled: store.number.length < 7,
26391
- onClick: store.number.length && store.testCall
26392
- }, "Test call"))));
26393
- });
26394
- };
26395
- var validator = function validator(value) {
26396
- // TODO: More detailed error messages.
26397
-
26398
- return /^\d{8}$/.test(value) ? 'Maximum digits reached.' : '';
26399
- };
23480
+ var css_248z$8 = ".utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--title {\r\n font-weight: 500;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--inputRow {\r\n display: flex;\r\n width: 100%;\r\n align-items: flex-end;\r\n position: relative;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--inputRow .ms-TextField-errorMessage {\r\n position: absolute;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--textField {\r\n position: relative;\r\n display: flex;\r\n align-items: flex-end;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--prefix {\r\n margin: 5px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--testCallButton {\r\n margin-left: 12px;\r\n}\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--prefix8 {\r\n margin: auto 2px auto 0;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--PhoneNumberSettings input {\r\n margin-right: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--smallInfo {\r\n margin-top: 2px;\r\n opacity: 0.5;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--PhoneNumberSettings small {\r\n margin-bottom: 12px;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--statusIndicator {\r\n position: absolute;\r\n right: 5px;\r\n height: 30px;\r\n display: flex;\r\n bottom: 1px;\r\n align-items: center;\r\n}\r\n\r\n.utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--PhoneNumberSettings .utilities_ops-app-frame_AppBarComponent_Settings_PhoneNumberSettings_styles_PhoneNumberSettings--statusIndicator .ms-Spinner-circle {\r\n max-width: 20px !important;\r\n max-height: 20px !important;\r\n right: 5px;\r\n}\r\n\r\nmaterial-icon[name='check'] {\r\n color: rgb(100, 181, 10);\r\n font-size: 12px;\r\n}\r\n\r\nmaterial-icon[name='error_outline'] {\r\n color: #a80000;\r\n font-size: 12px;\r\n}\r\n";
23481
+ styleInject(css_248z$8);
26400
23482
 
26401
23483
  var EMPTY_PRINTERS$1 = {
26402
23484
  barcode_label_printers: '',
@@ -26417,26 +23499,6 @@ var getHierarchyLevel = function getHierarchyLevel(levelId) {
26417
23499
  };
26418
23500
  var isInvalid = either$1(isNil$1, isEmpty$2);
26419
23501
  var keysToBeDeleted = ['openEmailDialog', 'openPhoneDialog', 'searchParam', 'selectedCountry', 'selectedCountryA3code', 'selectedCurrency', 'selectedRole', 'selectedTimeZone', 'selectedYard', 'showPhoneEntryOnEnter', 'yard'];
26420
- var RingCentralInfo$1 = function RingCentralInfo(_ref) {
26421
- var phoneNumber = _ref.phoneNumber;
26422
- return /*#__PURE__*/React__default["default"].createElement("div", {
26423
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings"
26424
- }, /*#__PURE__*/React__default["default"].createElement("p", {
26425
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--title"
26426
- }, "Phone Number"), /*#__PURE__*/React__default["default"].createElement("p", {
26427
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--smallInfo"
26428
- }, /*#__PURE__*/React__default["default"].createElement("i", null, "Required to enable click to dial feature.")), /*#__PURE__*/React__default["default"].createElement("div", {
26429
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow"
26430
- }, /*#__PURE__*/React__default["default"].createElement("span", {
26431
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--textField"
26432
- }, /*#__PURE__*/React__default["default"].createElement(coreComponents.Input, {
26433
- id: "rcNumber",
26434
- name: "rcNumber",
26435
- label: "Ring Central Phone Number",
26436
- value: phoneNumber,
26437
- disabled: true
26438
- }))));
26439
- };
26440
23502
 
26441
23503
  // Handles changes to all inputs.
26442
23504
  var handleInputChange$1 = function handleInputChange(self) {
@@ -26788,20 +23850,19 @@ var SettingsView$1 = /*#__PURE__*/function (_React$Component) {
26788
23850
  value: function render() {
26789
23851
  return /*#__PURE__*/React__default["default"].createElement("div", {
26790
23852
  className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm"
26791
- }, /*#__PURE__*/React__default["default"].createElement("div", {
26792
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--body"
26793
- }, /*#__PURE__*/React__default["default"].createElement("form", null, /*#__PURE__*/React__default["default"].createElement("p", {
26794
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--sectionTitle"
26795
- }, "Location And Language"), /*#__PURE__*/React__default["default"].createElement("div", {
23853
+ }, /*#__PURE__*/React__default["default"].createElement(ProfileDetails, {
23854
+ logout: this.props.onLogoutItemClicked
23855
+ }), /*#__PURE__*/React__default["default"].createElement("form", null, /*#__PURE__*/React__default["default"].createElement("div", {
23856
+ className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsHeader"
23857
+ }, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
23858
+ name: "gear",
23859
+ variant: "solid"
23860
+ }), /*#__PURE__*/React__default["default"].createElement("p", null, "Settings")), /*#__PURE__*/React__default["default"].createElement("div", {
26796
23861
  className: "col-1-1 utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow",
26797
23862
  "data-e2e": "LocationAndLanguageRow"
26798
- }, /*#__PURE__*/React__default["default"].createElement(CurrencyMenu, {
26799
- value: this.state.selectedCurrency,
26800
- handleChange: this.handleInputChange.selectedCurrency
26801
- }), /*#__PURE__*/React__default["default"].createElement(YardNumberContainer, {
26802
- history: this.yardsHistory,
26803
- selectedYard: this.state.selectedYardNumber,
26804
- handleChange: this.handleInputChange.selectedYardNumber,
23863
+ }, /*#__PURE__*/React__default["default"].createElement(LanguageMenu, {
23864
+ value: this.state.selectedLanguage,
23865
+ handleChange: this.handleInputChange.selectedLanguage,
26805
23866
  selectedCountry: this.state.selectedCountry
26806
23867
  }), /*#__PURE__*/React__default["default"].createElement(RoleSelector$1, {
26807
23868
  roles: this.state.roles,
@@ -26809,36 +23870,29 @@ var SettingsView$1 = /*#__PURE__*/function (_React$Component) {
26809
23870
  handleChange: this.handleInputChange.selectedRole,
26810
23871
  selectedYard: this.state.selectedYardNumber,
26811
23872
  required: false
26812
- }), /*#__PURE__*/React__default["default"].createElement(LanguageMenu, {
26813
- value: this.state.selectedLanguage,
26814
- handleChange: this.handleInputChange.selectedLanguage,
23873
+ }), /*#__PURE__*/React__default["default"].createElement(YardNumberContainer, {
23874
+ history: this.yardsHistory,
23875
+ selectedYard: this.state.selectedYardNumber,
23876
+ handleChange: this.handleInputChange.selectedYardNumber,
26815
23877
  selectedCountry: this.state.selectedCountry
26816
- })), /*#__PURE__*/React__default["default"].createElement("hr", {
26817
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settings-hr"
26818
- }), /*#__PURE__*/React__default["default"].createElement("p", {
26819
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--sectionTitle"
26820
- }, "Printers"), /*#__PURE__*/React__default["default"].createElement(PrinterSettings, {
23878
+ })), /*#__PURE__*/React__default["default"].createElement(PrinterSettings, {
26821
23879
  activePrinters: this.activePrinters,
26822
23880
  setPrinterData: this.setPrinterData,
26823
23881
  selectedYard: this.state.selectedYardNumber,
26824
23882
  selectedPrinterData: this.selectedPrinterData,
26825
23883
  printersData: this.state.printersData
26826
- })), /*#__PURE__*/React__default["default"].createElement("hr", {
26827
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settings-hr"
26828
- }), this.state.ringCentralEnabled === false ? /*#__PURE__*/React__default["default"].createElement(PhoneNumberSettings, {
26829
- phoneNumber: this.state.phoneNumber,
26830
- updatePhoneNumber: this.updatePhoneNumber
26831
- }) : this.state.ringCentralEnabled === true ? /*#__PURE__*/React__default["default"].createElement(RingCentralInfo$1, {
26832
- phoneNumber: this.state.phoneNumber
26833
- }) : null, /*#__PURE__*/React__default["default"].createElement("hr", {
26834
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settings-hr"
26835
- }), /*#__PURE__*/React__default["default"].createElement("div", {
23884
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
26836
23885
  className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox",
26837
23886
  "data-e2e": "saveButton"
26838
23887
  }, /*#__PURE__*/React__default["default"].createElement(coreComponents.Button, {
26839
23888
  primary: true,
26840
23889
  type: "submit",
26841
23890
  onClick: this.saveSettings
23891
+ }, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
23892
+ name: "floppy-disk",
23893
+ variant: "regular"
23894
+ }), /*#__PURE__*/React__default["default"].createElement("span", {
23895
+ className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--saveTxt"
26842
23896
  }, "Save"))), this.state.showLoading && /*#__PURE__*/React__default["default"].createElement("div", {
26843
23897
  className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--backdrop"
26844
23898
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -26864,7 +23918,7 @@ var RoleSelector = function RoleSelector(_ref) {
26864
23918
  required = _ref$required === void 0 ? true : _ref$required;
26865
23919
  _ref.selectedYard;
26866
23920
  return /*#__PURE__*/React__default["default"].createElement("div", {
26867
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-3"
23921
+ className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-1"
26868
23922
  }, /*#__PURE__*/React__default["default"].createElement(coreComponents.AutoSelect, {
26869
23923
  name: "role",
26870
23924
  label: "Role",
@@ -26957,7 +24011,7 @@ var HierarchySelector = function HierarchySelector(_ref) {
26957
24011
  value = _ref.value,
26958
24012
  onChange = _ref.onChange;
26959
24013
  return /*#__PURE__*/React__default["default"].createElement("div", {
26960
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-3"
24014
+ className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-1"
26961
24015
  }, options.length === 0 ? /*#__PURE__*/React__default["default"].createElement(coreComponents.Input, {
26962
24016
  label: "Hierarchy",
26963
24017
  name: "Hierarchy",
@@ -26998,7 +24052,7 @@ var YardNumberMenu = function YardNumberMenu(_ref) {
26998
24052
  var disabled = _ref.disabled,
26999
24053
  otherProps = _objectWithoutProperties(_ref, _excluded$2);
27000
24054
  return /*#__PURE__*/React__default["default"].createElement("div", {
27001
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-3"
24055
+ className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--col-1-1"
27002
24056
  }, /*#__PURE__*/React__default["default"].createElement(coreComponents.AutoSelect, _extends$1({}, otherProps, {
27003
24057
  name: "selectedYard",
27004
24058
  value: value,
@@ -27027,28 +24081,6 @@ var EMPTY_PRINTERS = {
27027
24081
  text_printers: ''
27028
24082
  };
27029
24083
 
27030
- //RC info in settings page
27031
- var RingCentralInfo = function RingCentralInfo(_ref) {
27032
- var phoneNumber = _ref.phoneNumber;
27033
- return /*#__PURE__*/React__default["default"].createElement("div", {
27034
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--RCPhoneNumberSettings"
27035
- }, /*#__PURE__*/React__default["default"].createElement("p", {
27036
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--title"
27037
- }, "Phone Number"), /*#__PURE__*/React__default["default"].createElement("p", {
27038
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--smallInfo"
27039
- }, /*#__PURE__*/React__default["default"].createElement("i", null, "Required to enable click to dial feature.")), /*#__PURE__*/React__default["default"].createElement("div", {
27040
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow"
27041
- }, /*#__PURE__*/React__default["default"].createElement("span", {
27042
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--textField"
27043
- }, /*#__PURE__*/React__default["default"].createElement(coreComponents.Input, {
27044
- id: "rcNumber",
27045
- name: "rcNumber",
27046
- label: "Ring Central Phone Number",
27047
- value: phoneNumber,
27048
- disabled: true
27049
- }))));
27050
- };
27051
-
27052
24084
  // Handles changes to all inputs.
27053
24085
  var handleInputChange = function handleInputChange(self) {
27054
24086
  var handleChange = function handleChange(name) {
@@ -27538,11 +24570,14 @@ var SettingsView = /*#__PURE__*/function (_React$Component) {
27538
24570
  var disableYardDropDown = propOr$1('country', 'level', selectedHierarchy) === 'yard';
27539
24571
  return /*#__PURE__*/React__default["default"].createElement("div", {
27540
24572
  className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsForm"
27541
- }, /*#__PURE__*/React__default["default"].createElement("div", {
27542
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--body"
27543
- }, /*#__PURE__*/React__default["default"].createElement("form", null, /*#__PURE__*/React__default["default"].createElement("p", {
27544
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--sectionTitle"
27545
- }, "Hierarchy, Role And Yard"), /*#__PURE__*/React__default["default"].createElement("div", {
24573
+ }, /*#__PURE__*/React__default["default"].createElement(ProfileDetails, {
24574
+ logout: this.props.onLogoutItemClicked
24575
+ }), /*#__PURE__*/React__default["default"].createElement("form", null, /*#__PURE__*/React__default["default"].createElement("div", {
24576
+ className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settingsHeader"
24577
+ }, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
24578
+ name: "gear",
24579
+ variant: "solid"
24580
+ }), /*#__PURE__*/React__default["default"].createElement("p", null, "Settings")), /*#__PURE__*/React__default["default"].createElement("div", {
27546
24581
  className: "col-1-1 utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--inputRow",
27547
24582
  "data-e2e": "LocationAndLanguageRow"
27548
24583
  }, /*#__PURE__*/React__default["default"].createElement(RoleSelector, {
@@ -27559,33 +24594,20 @@ var SettingsView = /*#__PURE__*/function (_React$Component) {
27559
24594
  disabled: disableYardDropDown,
27560
24595
  value: this.state.selectedYardNumber,
27561
24596
  handleChange: this.handleInputChange.selectedYardNumber
27562
- })), /*#__PURE__*/React__default["default"].createElement("hr", {
27563
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settings-hr"
27564
- }), /*#__PURE__*/React__default["default"].createElement("p", {
27565
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--sectionTitle"
27566
- }, "Printers"), /*#__PURE__*/React__default["default"].createElement(PrinterSettings, {
24597
+ })), /*#__PURE__*/React__default["default"].createElement(PrinterSettings, {
27567
24598
  activePrinters: this.activePrinters,
27568
24599
  setPrinterData: this.setPrinterData,
27569
24600
  selectedYard: this.state.selectedYardNumber,
27570
24601
  selectedPrinterData: this.selectedPrinterData,
27571
24602
  printersData: this.state.printersData
27572
- })), /*#__PURE__*/React__default["default"].createElement("hr", {
27573
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settings-hr"
27574
- }), this.state.ringCentralEnabled === false ? /*#__PURE__*/React__default["default"].createElement(PhoneNumberSettings, {
27575
- phoneNumber: this.state.phoneNumber,
27576
- updatePhoneNumber: this.updatePhoneNumber
27577
- }) : this.state.ringCentralEnabled === true ? /*#__PURE__*/React__default["default"].createElement(RingCentralInfo, {
27578
- phoneNumber: this.state.phoneNumber
27579
- }) : null, /*#__PURE__*/React__default["default"].createElement("hr", {
27580
- className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--settings-hr"
27581
- }), /*#__PURE__*/React__default["default"].createElement("div", {
24603
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
27582
24604
  className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--buttonBox",
27583
24605
  "data-e2e": "saveButton"
27584
24606
  }, /*#__PURE__*/React__default["default"].createElement(coreComponents.Button, {
27585
24607
  primary: true,
27586
24608
  type: "submit",
27587
24609
  onClick: this.saveSettings
27588
- }, "Save"))), this.state.showLoading && /*#__PURE__*/React__default["default"].createElement("div", {
24610
+ }, "Save")), this.state.showLoading && /*#__PURE__*/React__default["default"].createElement("div", {
27589
24611
  className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--backdrop"
27590
24612
  }, /*#__PURE__*/React__default["default"].createElement("div", {
27591
24613
  className: "utilities_ops-app-frame_AppBarComponent_Settings_SettingsView--spinner"
@@ -27597,8 +24619,8 @@ var SettingsView = /*#__PURE__*/function (_React$Component) {
27597
24619
  return SettingsView;
27598
24620
  }(React__default["default"].Component);
27599
24621
 
27600
- var css_248z$8 = ".utilities_ops-announcements_Banner--appBarContentBox {\r\n word-break: break-all;\r\n white-space: pre-wrap;\r\n font-weight: 600;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBarContent {\r\n padding: 0px 5px;\r\n font-size: 13px;\r\n width: 95%;\r\n display: flex;\r\n align-items: end;\r\n grid-gap: 20px;\r\n gap: 20px\r\n}\r\n\r\n.utilities_ops-announcements_Banner--tabNotificationInfoBox {\r\n display: flex;\r\n color: #6c7a89;\r\n grid-gap: 8px;\r\n gap: 8px;\r\n width: 90%;\r\n font-size: 12px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--tabNotificationInfoBox b{\r\n color: #171717;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBarContentBox {\r\n display: -webkit-box;\r\n -webkit-line-clamp: 2;\r\n overflow: hidden;\r\n font-weight: 600;\r\n /* autoprefixer: off */\r\n -webkit-box-orient: vertical;\r\n /* autoprefixer: on */\r\n font-size: 12px;\r\n color: #201F1E;\r\n cursor: default;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBarContentBox *{\r\n display: inline;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBarContentBox a{\r\n text-decoration: underline;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--tabNotificationBarContentBox {\r\n display: -webkit-box;\r\n -webkit-line-clamp: 3;\r\n overflow: hidden;\r\n width: 95%;\r\n font-weight: 600;\r\n /* autoprefixer: off */\r\n -webkit-box-orient: vertical;\r\n /* autoprefixer: on */\r\n font-size: 12px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationInfoBox {\r\n display: flex;\r\n color: #6c7a89;\r\n grid-gap: 6px;\r\n gap: 6px;\r\n font-size: 12px;\r\n margin-bottom: 5px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationInfoBox b{\r\n color: #171717;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationInfoBox i{\r\n font-size: 16px !important;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--navBtnContainer {\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: center;\r\n grid-gap: 5px;\r\n gap: 5px;\r\n font-size: 12px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--navBtnContainer .utilities_ops-announcements_Banner--notificationLeftBtn i{\r\n position: relative;\r\n right: -4px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationContainer {\r\n display: flex;\r\n flex-direction: row;\r\n padding: 10px 10px;\r\n grid-gap: 5px;\r\n gap: 5px;\r\n min-height: 40px;\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationContainer i{\r\n font-size: 20px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--navBtnContainer i{\r\n font-size: 16px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationContainer.utilities_ops-announcements_Banner--tabNotificationBar {\r\n flex-direction: column;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--arrowTipContainer {\r\n width: 0px;\r\n height: 0px;\r\n border-left: 8px solid transparent;\r\n border-right: 8px solid transparent;\r\n border-bottom: 13px solid white;\r\n position: absolute;\r\n top: 51px;\r\n right: 50px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--appBarContentWrapper {\r\n padding: 0px 5px;\r\n font-size: 12px;\r\n flex: 1 1 0%;\r\n display: flex;\r\n flex-direction: column;\r\n grid-gap: 4px;\r\n gap: 4px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--appBarContentWrapper b{\r\n color: #171717;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--feedUrl {\r\n text-decoration: none !important;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--feedUrl i {\r\n font-size: 14px;\r\n cursor: pointer;\r\n color: #1d5ab9;\r\n left: 2px;\r\n position: relative;\r\n top: 2px;\r\n margin-right: 3px;\r\n}\r\n";
27601
- styleInject(css_248z$8);
24622
+ var css_248z$7 = ".utilities_ops-announcements_Banner--appBarContentBox {\r\n word-break: break-all;\r\n white-space: pre-wrap;\r\n font-weight: 600;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBarContent {\r\n padding: 0px 5px;\r\n font-size: 13px;\r\n width: 95%;\r\n display: flex;\r\n align-items: end;\r\n grid-gap: 20px;\r\n gap: 20px\r\n}\r\n\r\n.utilities_ops-announcements_Banner--tabNotificationInfoBox {\r\n display: flex;\r\n color: #6c7a89;\r\n grid-gap: 8px;\r\n gap: 8px;\r\n width: 90%;\r\n font-size: 12px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--tabNotificationInfoBox b{\r\n color: #171717;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBarContentBox {\r\n display: -webkit-box;\r\n -webkit-line-clamp: 2;\r\n overflow: hidden;\r\n font-weight: 600;\r\n /* autoprefixer: off */\r\n -webkit-box-orient: vertical;\r\n /* autoprefixer: on */\r\n font-size: 12px;\r\n color: #201F1E;\r\n cursor: default;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBarContentBox *{\r\n display: inline;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationBarContentBox a{\r\n text-decoration: underline;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--tabNotificationBarContentBox {\r\n display: -webkit-box;\r\n -webkit-line-clamp: 3;\r\n overflow: hidden;\r\n width: 95%;\r\n font-weight: 600;\r\n /* autoprefixer: off */\r\n -webkit-box-orient: vertical;\r\n /* autoprefixer: on */\r\n font-size: 12px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationInfoBox {\r\n display: flex;\r\n color: #6c7a89;\r\n grid-gap: 6px;\r\n gap: 6px;\r\n font-size: 12px;\r\n margin-bottom: 5px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationInfoBox b{\r\n color: #171717;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationInfoBox i{\r\n font-size: 16px !important;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--navBtnContainer {\r\n display: flex;\r\n flex-direction: row;\r\n justify-content: center;\r\n grid-gap: 5px;\r\n gap: 5px;\r\n font-size: 12px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--navBtnContainer .utilities_ops-announcements_Banner--notificationLeftBtn i{\r\n position: relative;\r\n right: -4px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationContainer {\r\n display: flex;\r\n flex-direction: row;\r\n padding: 10px 10px;\r\n grid-gap: 5px;\r\n gap: 5px;\r\n min-height: 40px;\r\n width: 100%;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationContainer i{\r\n font-size: 20px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--navBtnContainer i{\r\n font-size: 16px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--notificationContainer.utilities_ops-announcements_Banner--tabNotificationBar {\r\n flex-direction: column;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--arrowTipContainer {\r\n width: 0px;\r\n height: 0px;\r\n border-left: 8px solid transparent;\r\n border-right: 8px solid transparent;\r\n border-bottom: 13px solid white;\r\n position: absolute;\r\n top: 51px;\r\n right: 50px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--appBarContentWrapper {\r\n padding: 0px 5px;\r\n font-size: 12px;\r\n flex: 1 1 0%;\r\n display: flex;\r\n flex-direction: column;\r\n grid-gap: 4px;\r\n gap: 4px;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--appBarContentWrapper b{\r\n color: #171717;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--feedUrl {\r\n text-decoration: none !important;\r\n}\r\n\r\n.utilities_ops-announcements_Banner--feedUrl i {\r\n font-size: 14px;\r\n cursor: pointer;\r\n color: #1d5ab9;\r\n left: 2px;\r\n position: relative;\r\n top: 2px;\r\n margin-right: 3px;\r\n}\r\n";
24623
+ styleInject(css_248z$7);
27602
24624
 
27603
24625
  var _nodeResolve_empty = {};
27604
24626
 
@@ -34330,7 +31352,9 @@ var _styleModuleImportMap$2 = {
34330
31352
  "moduleName": "utilities_ops-app-frame_AppBarComponent_AppBar--moduleName",
34331
31353
  "flex-grid": "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid",
34332
31354
  "flex-grid-items": "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items",
31355
+ "logout": "utilities_ops-app-frame_AppBarComponent_AppBar--logout",
34333
31356
  "lightBulbIcon": "utilities_ops-app-frame_AppBarComponent_AppBar--lightBulbIcon",
31357
+ "language": "utilities_ops-app-frame_AppBarComponent_AppBar--language",
34334
31358
  "yard": "utilities_ops-app-frame_AppBarComponent_AppBar--yard",
34335
31359
  "yardNumber": "utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber",
34336
31360
  "col": "utilities_ops-app-frame_AppBarComponent_AppBar--col",
@@ -34444,12 +31468,11 @@ var overflowIconStyles = {
34444
31468
  var generateAppBarElements = function generateAppBarElements(props, showCallout) {
34445
31469
  props.countryCode;
34446
31470
  props.role;
34447
- var yardNumber = props.yardNumber,
34448
- phoneNumber = props.phoneNumber,
34449
- _props$phoneStatusObj = props.phoneStatusObject,
34450
- phoneStatusObject = _props$phoneStatusObj === void 0 ? {} : _props$phoneStatusObj,
34451
- _togglePhoneAvailability = props.togglePhoneAvailability,
34452
- handleHelpClick = props.handleHelpClick;
31471
+ var yardNumber = props.yardNumber;
31472
+ props.phoneNumber;
31473
+ props.phoneStatusObject;
31474
+ props.togglePhoneAvailability;
31475
+ var handleHelpClick = props.handleHelpClick;
34453
31476
  props.type;
34454
31477
  var config = props.config,
34455
31478
  _props$navigateTo = props.navigateTo,
@@ -34474,7 +31497,7 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
34474
31497
  props.setSettingsVisible;
34475
31498
  var handleIconClick = props.handleIconClick,
34476
31499
  ideaNoteVisible = props.ideaNoteVisible;
34477
- var coreAppConfig = storage.getLocalItem('opsportal-core:config');
31500
+ var coreAppConfig = storage$1.getLocalItem('opsportal-core:config');
34478
31501
  var enableNewToolkitFeatures = coreAppConfig.enableNewToolkitFeatures,
34479
31502
  showSettingsMenuByTileConfig = coreAppConfig.showSettingsMenuByTileConfig;
34480
31503
  var showSettingsInAppbar = false;
@@ -34517,6 +31540,13 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
34517
31540
  }
34518
31541
  }, text);
34519
31542
  };
31543
+ var getLanguage = function getLanguage(language) {
31544
+ var languageMapper = {
31545
+ en: 'English',
31546
+ fr: 'French'
31547
+ };
31548
+ return languageMapper[language];
31549
+ };
34520
31550
  var items = [{
34521
31551
  key: 'search',
34522
31552
  name: 'Search',
@@ -34542,66 +31572,6 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
34542
31572
  variant: "solid"
34543
31573
  }), /*#__PURE__*/React__default["default"].createElement("div", null, "Search"));
34544
31574
  }
34545
- }, {
34546
- key: 'facility',
34547
- name: yardNumber,
34548
- renderIf: config.includes('yard'),
34549
- onRender: function onRender(_, dismissMenu) {
34550
- return /*#__PURE__*/React__default["default"].createElement("div", {
34551
- className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items",
34552
- onClick: function onClick() {
34553
- navigateTo('/settings');
34554
- dismissMenu();
34555
- }
34556
- }, /*#__PURE__*/React__default["default"].createElement(OverFlowIcon, {
34557
- name: "domain"
34558
- }), /*#__PURE__*/React__default["default"].createElement(OverFlowText, {
34559
- text: "Yard ".concat(yardNumber)
34560
- }));
34561
- },
34562
- render: function render() {
34563
- return /*#__PURE__*/React__default["default"].createElement("div", {
34564
- id: "yardItem",
34565
- className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items utilities_ops-app-frame_AppBarComponent_AppBar--yard",
34566
- onClick: showSettingsInAppbar ? function () {
34567
- return showCallout('yardItem');
34568
- } : navigateTo('/settings')
34569
- }, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
34570
- name: "buildings",
34571
- variant: "solid"
34572
- }), /*#__PURE__*/React__default["default"].createElement("div", {
34573
- "data-testid": "yardNumber",
34574
- className: "utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber"
34575
- }, yardNumber));
34576
- }
34577
- },
34578
- // add margin 0 12px to all icons in the right
34579
- {
34580
- key: 'phoneStatus',
34581
- name: phoneNumber,
34582
- onRender: function onRender(_, dismissMenu) {
34583
- return /*#__PURE__*/React__default["default"].createElement(PhoneStatus, {
34584
- config: config,
34585
- theme: "light",
34586
- phoneNumber: phoneNumber,
34587
- phoneStatusObject: phoneStatusObject,
34588
- togglePhoneAvailability: function togglePhoneAvailability() {
34589
- _togglePhoneAvailability();
34590
- dismissMenu();
34591
- }
34592
- });
34593
- },
34594
- renderIf: config.includes('phone') && phoneNumber,
34595
- render: function render() {
34596
- return /*#__PURE__*/React__default["default"].createElement("span", {
34597
- className: "utilities_ops-app-frame_AppBarComponent_AppBar--appBarIcons"
34598
- }, /*#__PURE__*/React__default["default"].createElement(PhoneStatus, {
34599
- config: config,
34600
- phoneNumber: phoneNumber,
34601
- phoneStatusObject: phoneStatusObject,
34602
- togglePhoneAvailability: _togglePhoneAvailability
34603
- }));
34604
- }
34605
31575
  }, {
34606
31576
  key: 'feedback',
34607
31577
  name: 'Feedback',
@@ -34713,6 +31683,82 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
34713
31683
  });
34714
31684
  }
34715
31685
  }, {
31686
+ key: 'language',
31687
+ name: 'Language',
31688
+ renderIf: process.env.STACK === 'c',
31689
+ render: function render() {
31690
+ return /*#__PURE__*/React__default["default"].createElement("div", {
31691
+ className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items utilities_ops-app-frame_AppBarComponent_AppBar--language",
31692
+ onClick: function onClick() {
31693
+ return handleIconClick(ICONS.SETTINGS);
31694
+ }
31695
+ }, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
31696
+ name: "earth-americas",
31697
+ variant: "regular"
31698
+ }), " ", /*#__PURE__*/React__default["default"].createElement("span", null, getLanguage(storage$1.activeLanguage)));
31699
+ }
31700
+ }, {
31701
+ key: 'facility',
31702
+ name: yardNumber,
31703
+ renderIf: config.includes('yard'),
31704
+ onRender: function onRender(_, dismissMenu) {
31705
+ return /*#__PURE__*/React__default["default"].createElement("div", {
31706
+ className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items",
31707
+ onClick: function onClick() {
31708
+ navigateTo('/settings');
31709
+ dismissMenu();
31710
+ }
31711
+ }, /*#__PURE__*/React__default["default"].createElement(OverFlowIcon, {
31712
+ name: "domain"
31713
+ }), /*#__PURE__*/React__default["default"].createElement(OverFlowText, {
31714
+ text: "Yard ".concat(yardNumber)
31715
+ }));
31716
+ },
31717
+ render: function render() {
31718
+ return /*#__PURE__*/React__default["default"].createElement("div", {
31719
+ id: "yardItem",
31720
+ className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items utilities_ops-app-frame_AppBarComponent_AppBar--yard",
31721
+ onClick: showSettingsInAppbar ? function () {
31722
+ return handleIconClick(ICONS.SETTINGS);
31723
+ } : navigateTo('/settings')
31724
+ }, /*#__PURE__*/React__default["default"].createElement(coreComponents.IconV2, {
31725
+ name: "buildings",
31726
+ variant: "regular"
31727
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
31728
+ "data-testid": "yardNumber",
31729
+ className: "utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber"
31730
+ }, "Yard ", yardNumber));
31731
+ }
31732
+ },
31733
+ // add margin 0 12px to all icons in the right
31734
+ // {
31735
+ // key: 'phoneStatus',
31736
+ // name: phoneNumber,
31737
+ // onRender: (_, dismissMenu) => (
31738
+ // <PhoneStatus
31739
+ // config={config}
31740
+ // theme="light"
31741
+ // phoneNumber={phoneNumber}
31742
+ // phoneStatusObject={phoneStatusObject}
31743
+ // togglePhoneAvailability={() => {
31744
+ // togglePhoneAvailability()
31745
+ // dismissMenu()
31746
+ // }}
31747
+ // />
31748
+ // ),
31749
+ // renderIf: config.includes('phone') && phoneNumber,
31750
+ // render: () => (
31751
+ // <span styleName='appBarIcons'>
31752
+ // <PhoneStatus
31753
+ // config={config}
31754
+ // phoneNumber={phoneNumber}
31755
+ // phoneStatusObject={phoneStatusObject}
31756
+ // togglePhoneAvailability={togglePhoneAvailability}
31757
+ // />
31758
+ // </span>
31759
+ // )
31760
+ // },
31761
+ {
34716
31762
  key: 'logout',
34717
31763
  name: 'Logout',
34718
31764
  renderIf: true,
@@ -34751,10 +31797,15 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
34751
31797
  },
34752
31798
  render: function render() {
34753
31799
  return /*#__PURE__*/React__default["default"].createElement("span", {
34754
- className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items"
31800
+ className: "utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items utilities_ops-app-frame_AppBarComponent_AppBar--logout",
31801
+ style: {
31802
+ marginRight: '24px !important'
31803
+ }
34755
31804
  }, /*#__PURE__*/React__default["default"].createElement(LogOutMenu, {
34756
31805
  items: props.logoutItems,
34757
- onItemClick: props.onLogoutItemClicked,
31806
+ onItemClick: function onItemClick() {
31807
+ return handleIconClick(ICONS.SETTINGS);
31808
+ },
34758
31809
  settingsVisible: settingsVisible
34759
31810
  }));
34760
31811
  }
@@ -34805,7 +31856,7 @@ var ICONS = {
34805
31856
  };
34806
31857
  var AppBar$1 = function AppBar(props) {
34807
31858
  var _window$toolkitEnv3;
34808
- var coreAppConfig = storage.getLocalItem('opsportal-core:config');
31859
+ var coreAppConfig = storage$1.getLocalItem('opsportal-core:config');
34809
31860
  var enableNewToolkitFeatures = coreAppConfig.enableNewToolkitFeatures,
34810
31861
  ideaNoteUri = coreAppConfig.ideaNoteUri;
34811
31862
  var _useState = React.useState(false),
@@ -34817,13 +31868,13 @@ var AppBar$1 = function AppBar(props) {
34817
31868
  settingsVisible = _useState4[0],
34818
31869
  setSettingsVisible = _useState4[1];
34819
31870
  var _useState5 = React.useState(false),
34820
- _useState6 = _slicedToArray(_useState5, 2),
34821
- isCalloutVisible = _useState6[0],
34822
- setCalloutVisible = _useState6[1];
31871
+ _useState6 = _slicedToArray(_useState5, 2);
31872
+ _useState6[0];
31873
+ var setCalloutVisible = _useState6[1];
34823
31874
  var _useState7 = React.useState(null),
34824
- _useState8 = _slicedToArray(_useState7, 2),
34825
- calloutTarget = _useState8[0],
34826
- setCalloutTarget = _useState8[1];
31875
+ _useState8 = _slicedToArray(_useState7, 2);
31876
+ _useState8[0];
31877
+ var setCalloutTarget = _useState8[1];
34827
31878
  var _useState9 = React.useState(false),
34828
31879
  _useState10 = _slicedToArray(_useState9, 2),
34829
31880
  notificationsVisible = _useState10[0],
@@ -34854,12 +31905,13 @@ var AppBar$1 = function AppBar(props) {
34854
31905
  notifications = props.notifications,
34855
31906
  onDismiss = props.onDismiss,
34856
31907
  ActionComponent = props.ActionComponent,
34857
- saveActionComponentState = props.saveActionComponentState;
34858
- props.onLogoutItemClicked;
34859
- var mihelpAppPath = props.mihelpAppPath,
31908
+ saveActionComponentState = props.saveActionComponentState,
31909
+ onLogoutItemClicked = props.onLogoutItemClicked,
31910
+ mihelpAppPath = props.mihelpAppPath,
34860
31911
  showMihelpDot = props.showMihelpDot;
34861
31912
  var _useWindowSize = useWindowSize(),
34862
31913
  width = _useWindowSize.width;
31914
+ _useWindowSize.height;
34863
31915
  var _useState19 = React.useState(0),
34864
31916
  _useState20 = _slicedToArray(_useState19, 2),
34865
31917
  count = _useState20[0],
@@ -34874,6 +31926,13 @@ var AppBar$1 = function AppBar(props) {
34874
31926
  setNotificationsVisible(false);
34875
31927
  }
34876
31928
  }, [mihelpVisible]);
31929
+
31930
+ // useEffect(()=>{
31931
+ // if(isCalloutVisible){
31932
+ // setViewPortHeight(height)
31933
+ // }
31934
+ // },[isCalloutVisible])
31935
+
34877
31936
  React.useEffect(function () {
34878
31937
  if (ideaNoteVisible) {
34879
31938
  setMihelpVisible(false);
@@ -35040,7 +32099,7 @@ var AppBar$1 = function AppBar(props) {
35040
32099
  setSettingsVisible(false);
35041
32100
  }
35042
32101
  };
35043
- var stack = (_window$toolkitEnv3 = window.toolkitEnv) !== null && _window$toolkitEnv3 !== void 0 && _window$toolkitEnv3.STACK ? window.toolkitEnv.STACK : process.env.STACK;
32102
+ (_window$toolkitEnv3 = window.toolkitEnv) !== null && _window$toolkitEnv3 !== void 0 && _window$toolkitEnv3.STACK ? window.toolkitEnv.STACK : process.env.STACK;
35044
32103
  return /*#__PURE__*/React__default["default"].createElement("div", {
35045
32104
  "data-e2e": "cc-AppBar",
35046
32105
  className: "utilities_ops-app-frame_AppBarComponent_AppBar--root"
@@ -35074,14 +32133,7 @@ var AppBar$1 = function AppBar(props) {
35074
32133
  setSettingsVisible: setSettingsVisible,
35075
32134
  handleIconClick: handleIconClick,
35076
32135
  ideaNoteVisible: ideaNoteVisible
35077
- }), function (target) {
35078
- setCalloutTarget(target);
35079
- setCalloutVisible(true);
35080
- setNotificationsVisible(false);
35081
- setIdeaNoteVisible(false);
35082
- setMihelpVisible(false);
35083
- setShowSearchContainer(false);
35084
- }),
32136
+ })),
35085
32137
  overflowSetStyles: overflowSetStyles,
35086
32138
  overflowIcon: "CollapseMenu",
35087
32139
  overflowIconStyles: overflowIconStyles
@@ -35103,21 +32155,7 @@ var AppBar$1 = function AppBar(props) {
35103
32155
  },
35104
32156
  role: props.selectedRole || props.role,
35105
32157
  yardNumber: props.selectedYard || props.yardNumber
35106
- })), isCalloutVisible ? /*#__PURE__*/React__default["default"].createElement(Callout, {
35107
- ariaLabelledBy: "settings",
35108
- ariaDescribedBy: "settings",
35109
- role: "dialog",
35110
- gapSpace: 0,
35111
- target: "#".concat(calloutTarget),
35112
- onDismiss: function onDismiss() {
35113
- return setCalloutVisible(false);
35114
- },
35115
- isBeakVisible: false
35116
- }, /*#__PURE__*/React__default["default"].createElement("div", null, !stack || stack === 'c' ? /*#__PURE__*/React__default["default"].createElement(SettingsView$1, {
35117
- onSave: onSave
35118
- }) : null, stack === 'uk' ? /*#__PURE__*/React__default["default"].createElement(SettingsView, {
35119
- onSave: onSave
35120
- }) : null)) : null, ideaNoteVisible && /*#__PURE__*/React__default["default"].createElement("div", {
32158
+ })), ideaNoteVisible && /*#__PURE__*/React__default["default"].createElement("div", {
35121
32159
  className: "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetContainer"
35122
32160
  }, /*#__PURE__*/React__default["default"].createElement("div", {
35123
32161
  className: "utilities_ops-app-frame_AppBarComponent_AppBar--ideaWidgetHide",
@@ -35141,8 +32179,7 @@ var AppBar$1 = function AppBar(props) {
35141
32179
  bottom: '0',
35142
32180
  right: '0',
35143
32181
  height: '100%',
35144
- width: '90vw',
35145
- maxWidth: '443px',
32182
+ width: '400px',
35146
32183
  backgroundColor: 'white'
35147
32184
  },
35148
32185
  src: ideaNoteToken === "TOKEN_ERROR" ? ideaNoteUri : "".concat(ideaNoteUri, "&auth.jwt=").concat(ideaNoteToken)
@@ -35152,8 +32189,7 @@ var AppBar$1 = function AppBar(props) {
35152
32189
  bottom: '0',
35153
32190
  right: '0',
35154
32191
  height: '100vh',
35155
- width: '90vw',
35156
- maxWidth: '443px',
32192
+ width: '400px',
35157
32193
  backgroundColor: 'white'
35158
32194
  }
35159
32195
  })), mihelpVisible && /*#__PURE__*/React__default["default"].createElement(HelpSideBar, {
@@ -35168,10 +32204,7 @@ var AppBar$1 = function AppBar(props) {
35168
32204
  className: "utilities_ops-app-frame_AppBarComponent_AppBar--sideBarWrapper",
35169
32205
  onClick: closeSidebar
35170
32206
  }, /*#__PURE__*/React__default["default"].createElement("div", {
35171
- className: "utilities_ops-app-frame_AppBarComponent_AppBar--innerNotificationDiv",
35172
- style: {
35173
- width: getNotificationWrapperWidth()
35174
- }
32207
+ className: "utilities_ops-app-frame_AppBarComponent_AppBar--innerNotificationDiv"
35175
32208
  }, /*#__PURE__*/React__default["default"].createElement("div", {
35176
32209
  className: "utilities_ops-app-frame_AppBarComponent_AppBar--notificationsHeader"
35177
32210
  }, /*#__PURE__*/React__default["default"].createElement("span", null, "Recent Notifications")), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -35188,20 +32221,26 @@ var AppBar$1 = function AppBar(props) {
35188
32221
  closeSearch: function closeSearch() {
35189
32222
  return setShowSearchContainer(false);
35190
32223
  }
35191
- })));
32224
+ })), settingsVisible && /*#__PURE__*/React__default["default"].createElement("div", {
32225
+ className: "utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebarWrapper",
32226
+ onClick: closeSidebar
32227
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32228
+ className: "utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebar"
32229
+ }, !process.env.STACK || process.env.STACK === 'c' ? /*#__PURE__*/React__default["default"].createElement(SettingsView$1, {
32230
+ onSave: onSave,
32231
+ onLogoutItemClicked: onLogoutItemClicked
32232
+ }) : null, process.env.STACK === 'uk' ? /*#__PURE__*/React__default["default"].createElement(SettingsView, {
32233
+ onSave: onSave,
32234
+ onLogoutItemClicked: onLogoutItemClicked
32235
+ }) : null)));
35192
32236
  };
35193
32237
  AppBar$1.defaultProps = {
35194
32238
  config: ['flag', 'role', 'yard'],
35195
32239
  role: ''
35196
32240
  };
35197
32241
 
35198
- var PHONE_STATUS = {
35199
- Available: 'Available',
35200
- Offline: 'Offline'
35201
- };
35202
-
35203
- var css_248z$7 = ".utilities_ops-app-frame_Flag_Flag--Flag {\r\n margin-right: 12px;\r\n height: 22px;\r\n /* border-radius: 20px; */\r\n}\r\n\r\n/* HACK: ALL OF THIS CSS IS COMPLETELY UNSTABLE, BUT I HAVE TO SUBMIT A\r\n PR TO CORE-COMPONENTS TO MAKE IT MORE STABLE WHICH IS A LOT OF WORK\r\n SO LETS JUST NOT INLINE STYLES ANYMORE K?\r\n*/\r\n\r\n[class*='AppBar-roleAndFlag'] {\r\n align-items: center;\r\n}\r\n\r\n[class*='AppBar-roleAndFlag'] > .text.role {\r\n margin: 0 !important;\r\n}\r\n\r\n[class*='AppBar-yardNumber'] {\r\n align-items: center;\r\n}\r\n\r\n[class*='AppBar-yardNumber'] > .yardNumber {\r\n margin-left: 8px;\r\n margin-top: 0px !important;\r\n}\r\n";
35204
- styleInject(css_248z$7);
32242
+ var css_248z$6 = ".utilities_ops-app-frame_Flag_Flag--Flag {\r\n margin-right: 12px;\r\n height: 22px;\r\n /* border-radius: 20px; */\r\n}\r\n\r\n/* HACK: ALL OF THIS CSS IS COMPLETELY UNSTABLE, BUT I HAVE TO SUBMIT A\r\n PR TO CORE-COMPONENTS TO MAKE IT MORE STABLE WHICH IS A LOT OF WORK\r\n SO LETS JUST NOT INLINE STYLES ANYMORE K?\r\n*/\r\n\r\n[class*='AppBar-roleAndFlag'] {\r\n align-items: center;\r\n}\r\n\r\n[class*='AppBar-roleAndFlag'] > .text.role {\r\n margin: 0 !important;\r\n}\r\n\r\n[class*='AppBar-yardNumber'] {\r\n align-items: center;\r\n}\r\n\r\n[class*='AppBar-yardNumber'] > .yardNumber {\r\n margin-left: 8px;\r\n margin-top: 0px !important;\r\n}\r\n";
32243
+ styleInject(css_248z$6);
35205
32244
 
35206
32245
  var getFlagUri = function getFlagUri() {
35207
32246
  var countryCode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'US';
@@ -35215,8 +32254,8 @@ var Flag = function Flag(props) {
35215
32254
  });
35216
32255
  };
35217
32256
 
35218
- var css_248z$6 = "#utilities_ops-app-frame_CallCapsule_style--flex-iframe {\r\n width: '100%';\r\n height: '100%';\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--flex-bar {\r\n position: relative;\r\n z-index: 9999;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: flex-end;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--iframeSection {\r\n border: 1px solid #233659;\r\n border-radius: 8px !important;\r\n overflow: hidden;\r\n width: 560px;\r\n height: 610px;\r\n position: absolute;\r\n top: 53px;\r\n z-index: 100;\r\n background: #fff;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--fullScreen{\r\n border: 1px solid #233659;\r\n border-radius: 20px !important;\r\n overflow: hidden;\r\n width: 98vw;\r\n height: 610px;\r\n position: absolute;\r\n top: 53px;\r\n left: -8.7em;\r\n z-index: 100;\r\n background: #fff;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--CallerPillCon {\r\n display: flex;\r\n background-color: #8eacdc;\r\n border-radius: 30px;\r\n justify-content: center;\r\n padding: 2px 10px;\r\n min-width: 300px;\r\n min-height: 37px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--leftPillCon {\r\n display: inline-flex;\r\n align-items: center;\r\n justify-content: center;\r\n flex-direction: column;\r\n min-width: 125px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--heading1 {\r\n font-size: 12px;\r\n font-weight: bold;\r\n color: #3c4656;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--iframePopUp {\r\n display: block;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--heading6 {\r\n font-size: 10px;\r\n color: #3c4656;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--heading7{\r\n font-size: 12px;\r\n background: yellow;\r\n border-radius: 20px;\r\n padding: 0 5px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--centerPillCon {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding: 0 6px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--rightPillCon{\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding: 0 6px;\r\n min-width: 152px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--statusIndicator {\r\n padding: 0 3px 5px 0;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--dialpadCon {\r\n position: absolute;\r\n top: 55px;\r\n width: 100%;\r\n left: 5em;\r\n max-width: 202px;\r\n padding: 15px;\r\n background: #263238;\r\n border-radius: 22.5px;\r\n box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.2);\r\n z-index: 10;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--inputCon {\r\n width: 100%;\r\n margin-bottom: 5px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--inputCon input {\r\n background: #37474f;\r\n color: #cfd8dc;\r\n padding: 5px;\r\n border: none;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--inputCon input:focus {\r\n outline: none;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--btn {\r\n display: inline-block;\r\n width: calc(33.33% - 10px);\r\n font-size: 14px;\r\n background: transparent;\r\n border: none;\r\n color: #cfd8dc;\r\n padding: 10px 0;\r\n text-align: center;\r\n cursor: pointer;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--btn:hover {\r\n color: #fff;\r\n}\r\n\r\n.utilities_ops-app-frame_CallCapsule_style--btn:nth-child(3n - 1) {\r\n margin: 0 15px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--visible {\r\n visibility: visible;\r\n overflow: hidden;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--hidden {\r\n visibility: hidden;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--callActionCon {\r\n display: flex;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--marginLeft {\r\n margin-left: 40px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--CallerPillCon hr {\r\n width: 100%;\r\n margin: 0;\r\n outline: none;\r\n border: none;\r\n border-right: 1px solid #ddd;\r\n}\r\n\r\n@-webkit-keyframes utilities_ops-app-frame_CallCapsule_style--shake {\r\n 0% {\r\n -webkit-transform: translate(2px, 1px) rotate(0deg);\r\n }\r\n 10% {\r\n -webkit-transform: translate(-1px, -2px) rotate(-1deg);\r\n }\r\n 20% {\r\n -webkit-transform: translate(-3px, 0px) rotate(1deg);\r\n }\r\n 30% {\r\n -webkit-transform: translate(0px, 2px) rotate(0deg);\r\n }\r\n 40% {\r\n -webkit-transform: translate(1px, -1px) rotate(1deg);\r\n }\r\n 50% {\r\n -webkit-transform: translate(-1px, 2px) rotate(-1deg);\r\n }\r\n 60% {\r\n -webkit-transform: translate(-3px, 1px) rotate(0deg);\r\n }\r\n 70% {\r\n -webkit-transform: translate(2px, 1px) rotate(-1deg);\r\n }\r\n 80% {\r\n -webkit-transform: translate(-1px, -1px) rotate(1deg);\r\n }\r\n 90% {\r\n -webkit-transform: translate(2px, 2px) rotate(0deg);\r\n }\r\n 100% {\r\n -webkit-transform: translate(1px, -2px) rotate(-1deg);\r\n }\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--shake {\r\n -webkit-animation-name: utilities_ops-app-frame_CallCapsule_style--shake;\r\n -webkit-animation-duration: 1.3s;\r\n -webkit-transform-origin: 50% 50%;\r\n -webkit-animation-iteration-count: infinite;\r\n -webkit-animation-timing-function: linear;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--actionIcon {\r\n position: relative;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--wrapText {\r\n font-size: 9px;\r\n position: absolute;\r\n top: 22px;\r\n}\r\n\r\n.utilities_ops-app-frame_CallCapsule_style--container {\r\n max-width: 100%;\r\n max-height: 100%;\r\n position: relative;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--numberCircle {\r\n border-radius: 40%;\r\n cursor: pointer;\r\n width: 28px;\r\n height: 18px;\r\n padding: 0px 11px;\r\n background: #fff;\r\n color: #666;\r\n text-align: center;\r\n font-size: 12px;\r\n margin-bottom: 9px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--unreadCircle{\r\n border-radius: 50%;\r\n cursor: pointer;\r\n width: 16px;\r\n height: 16px;\r\n padding: 2px 2px 3px;\r\n background: #e81010;\r\n color: #fff;\r\n text-align: center;\r\n font-size: 8px;\r\n position: absolute;\r\n left: 18px;\r\n top: -3px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--iconBtn{\r\n margin: 0 5px;\r\n cursor: pointer;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--iconBtn:focus{\r\n outline: none !important\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--icon{\r\n color: #000;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--disabledIcon svg{\r\n opacity:0.4;\r\n cursor: not-allowed;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--dialog{\r\nwidth: 420px;\r\nheight: 115px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--dialogCon{\r\n position: absolute;\r\n top: 35%;\r\n left: 36%;\r\n border: 1px solid rgb(204, 204, 204);\r\n background: rgb(255, 255, 255);\r\n overflow: auto;\r\n border-radius: 4px;\r\n outline: none;\r\n padding: 0px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--dialogHeading{\r\n background-color: #1d5ab9;\r\n color: #fff;\r\n padding: 10px 5px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--dialogInfo{\r\n padding: 20px 10px;\r\n text-align: center;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--dialogBtn{\r\n margin: 5px;\r\n text-align:right;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--warningMsg {\r\n color: #fff;\r\n display: flex;\r\n background-color: #dd392b;\r\n border-radius: 7px;\r\n justify-content: center;\r\n min-width: 300px;\r\n font-size: 12px;\r\n margin: 0 25px -1px 25px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--capsuleSpinner{\r\n position: absolute;\r\n left:47%;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--opacity{\r\n opacity: 0.5;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--closeFlexIcon {\r\n position: absolute;\r\n right: 2px;\r\n top: 14px;\r\n cursor: pointer;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--callIndicator{\r\n margin-top: 7px;\r\n}";
35219
- styleInject(css_248z$6);
32257
+ var css_248z$5 = "#utilities_ops-app-frame_CallCapsule_style--flex-iframe {\r\n width: '100%';\r\n height: '100%';\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--flex-bar {\r\n position: relative;\r\n z-index: 9999;\r\n display: flex;\r\n flex-direction: column;\r\n align-items: flex-end;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--iframeSection {\r\n border: 1px solid #233659;\r\n border-radius: 8px !important;\r\n overflow: hidden;\r\n width: 560px;\r\n height: 610px;\r\n position: absolute;\r\n top: 53px;\r\n z-index: 100;\r\n background: #fff;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--fullScreen{\r\n border: 1px solid #233659;\r\n border-radius: 20px !important;\r\n overflow: hidden;\r\n width: 98vw;\r\n height: 610px;\r\n position: absolute;\r\n top: 53px;\r\n left: -8.7em;\r\n z-index: 100;\r\n background: #fff;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--CallerPillCon {\r\n display: flex;\r\n background-color: #8eacdc;\r\n border-radius: 30px;\r\n justify-content: center;\r\n padding: 2px 10px;\r\n min-width: 300px;\r\n min-height: 37px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--leftPillCon {\r\n display: inline-flex;\r\n align-items: center;\r\n justify-content: center;\r\n flex-direction: column;\r\n min-width: 125px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--heading1 {\r\n font-size: 12px;\r\n font-weight: bold;\r\n color: #3c4656;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--iframePopUp {\r\n display: block;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--heading6 {\r\n font-size: 10px;\r\n color: #3c4656;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--heading7{\r\n font-size: 12px;\r\n background: yellow;\r\n border-radius: 20px;\r\n padding: 0 5px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--centerPillCon {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding: 0 6px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--rightPillCon{\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding: 0 6px;\r\n min-width: 152px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--statusIndicator {\r\n padding: 0 3px 5px 0;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--dialpadCon {\r\n position: absolute;\r\n top: 55px;\r\n width: 100%;\r\n left: 5em;\r\n max-width: 202px;\r\n padding: 15px;\r\n background: #263238;\r\n border-radius: 22.5px;\r\n box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.2);\r\n z-index: 10;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--inputCon {\r\n width: 100%;\r\n margin-bottom: 5px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--inputCon input {\r\n background: #37474f;\r\n color: #cfd8dc;\r\n padding: 5px;\r\n border: none;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--inputCon input:focus {\r\n outline: none;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--btn {\r\n display: inline-block;\r\n width: calc(33.33% - 10px);\r\n font-size: 14px;\r\n background: transparent;\r\n border: none;\r\n color: #cfd8dc;\r\n padding: 10px 0;\r\n text-align: center;\r\n cursor: pointer;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--btn:hover {\r\n color: #fff;\r\n}\r\n\r\n.utilities_ops-app-frame_CallCapsule_style--btn:nth-child(3n - 1) {\r\n margin: 0 15px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--visible {\r\n visibility: visible;\r\n overflow: hidden;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--hidden {\r\n visibility: hidden;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--callActionCon {\r\n display: flex;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--marginLeft {\r\n margin-left: 40px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--CallerPillCon hr {\r\n width: 100%;\r\n margin: 0;\r\n outline: none;\r\n border: none;\r\n border-right: 1px solid #ddd;\r\n}\r\n\r\n@-webkit-keyframes utilities_ops-app-frame_CallCapsule_style--shake {\r\n 0% {\r\n -webkit-transform: translate(2px, 1px) rotate(0deg);\r\n }\r\n 10% {\r\n -webkit-transform: translate(-1px, -2px) rotate(-1deg);\r\n }\r\n 20% {\r\n -webkit-transform: translate(-3px, 0px) rotate(1deg);\r\n }\r\n 30% {\r\n -webkit-transform: translate(0px, 2px) rotate(0deg);\r\n }\r\n 40% {\r\n -webkit-transform: translate(1px, -1px) rotate(1deg);\r\n }\r\n 50% {\r\n -webkit-transform: translate(-1px, 2px) rotate(-1deg);\r\n }\r\n 60% {\r\n -webkit-transform: translate(-3px, 1px) rotate(0deg);\r\n }\r\n 70% {\r\n -webkit-transform: translate(2px, 1px) rotate(-1deg);\r\n }\r\n 80% {\r\n -webkit-transform: translate(-1px, -1px) rotate(1deg);\r\n }\r\n 90% {\r\n -webkit-transform: translate(2px, 2px) rotate(0deg);\r\n }\r\n 100% {\r\n -webkit-transform: translate(1px, -2px) rotate(-1deg);\r\n }\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--shake {\r\n -webkit-animation-name: utilities_ops-app-frame_CallCapsule_style--shake;\r\n -webkit-animation-duration: 1.3s;\r\n -webkit-transform-origin: 50% 50%;\r\n -webkit-animation-iteration-count: infinite;\r\n -webkit-animation-timing-function: linear;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--actionIcon {\r\n position: relative;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--wrapText {\r\n font-size: 9px;\r\n position: absolute;\r\n top: 22px;\r\n}\r\n\r\n.utilities_ops-app-frame_CallCapsule_style--container {\r\n max-width: 100%;\r\n max-height: 100%;\r\n position: relative;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--numberCircle {\r\n border-radius: 40%;\r\n cursor: pointer;\r\n width: 28px;\r\n height: 18px;\r\n padding: 0px 11px;\r\n background: #fff;\r\n color: #666;\r\n text-align: center;\r\n font-size: 12px;\r\n margin-bottom: 9px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--unreadCircle{\r\n border-radius: 50%;\r\n cursor: pointer;\r\n width: 16px;\r\n height: 16px;\r\n padding: 2px 2px 3px;\r\n background: #e81010;\r\n color: #fff;\r\n text-align: center;\r\n font-size: 8px;\r\n position: absolute;\r\n left: 18px;\r\n top: -3px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--iconBtn{\r\n margin: 0 5px;\r\n cursor: pointer;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--iconBtn:focus{\r\n outline: none !important\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--icon{\r\n color: #000;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--disabledIcon svg{\r\n opacity:0.4;\r\n cursor: not-allowed;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--dialog{\r\nwidth: 420px;\r\nheight: 115px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--dialogCon{\r\n position: absolute;\r\n top: 35%;\r\n left: 36%;\r\n border: 1px solid rgb(204, 204, 204);\r\n background: rgb(255, 255, 255);\r\n overflow: auto;\r\n border-radius: 4px;\r\n outline: none;\r\n padding: 0px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--dialogHeading{\r\n background-color: #1d5ab9;\r\n color: #fff;\r\n padding: 10px 5px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--dialogInfo{\r\n padding: 20px 10px;\r\n text-align: center;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--dialogBtn{\r\n margin: 5px;\r\n text-align:right;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--warningMsg {\r\n color: #fff;\r\n display: flex;\r\n background-color: #dd392b;\r\n border-radius: 7px;\r\n justify-content: center;\r\n min-width: 300px;\r\n font-size: 12px;\r\n margin: 0 25px -1px 25px;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--capsuleSpinner{\r\n position: absolute;\r\n left:47%;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--opacity{\r\n opacity: 0.5;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--closeFlexIcon {\r\n position: absolute;\r\n right: 2px;\r\n top: 14px;\r\n cursor: pointer;\r\n}\r\n.utilities_ops-app-frame_CallCapsule_style--callIndicator{\r\n margin-top: 7px;\r\n}";
32258
+ styleInject(css_248z$5);
35220
32259
 
35221
32260
  var tabbable_1 = createCommonjsModule(function (module, exports) {
35222
32261
 
@@ -36676,35 +33715,6 @@ ReactModal.setAppElement('*');
36676
33715
 
36677
33716
  storage$1.flexLoaded;
36678
33717
 
36679
- var defaultAutoSelectProps = {
36680
- optionStyleProps: {
36681
- rowHeight: 40,
36682
- optionsMinHeight: 200
36683
- },
36684
- width: 200
36685
- };
36686
- [_objectSpread2(_objectSpread2({}, defaultAutoSelectProps), {}, {
36687
- name: 'barcode_label_printers',
36688
- label: 'Bar Code Printer'
36689
- }), _objectSpread2(_objectSpread2({}, defaultAutoSelectProps), {}, {
36690
- name: 'check_printers',
36691
- label: 'Check Printer'
36692
- }), _objectSpread2(_objectSpread2({}, defaultAutoSelectProps), {}, {
36693
- name: 'standard_printers',
36694
- label: 'Standard Printer'
36695
- }), _objectSpread2(_objectSpread2({}, defaultAutoSelectProps), {}, {
36696
- name: 'windshield_label_printers',
36697
- label: 'Wind Shield Printer'
36698
- }), _objectSpread2(_objectSpread2({}, defaultAutoSelectProps), {}, {
36699
- name: 'text_printers',
36700
- label: 'Dot Matrix Printers'
36701
- })];
36702
-
36703
- propEq$1('is_default', true);
36704
-
36705
- var css_248z$5 = ".utilities_ops-app-frame_PrinterDialog_PrinterDialog--printerSettings {\r\n width: 700px;\r\n padding: 10px;\r\n background: #f1f1f1;\r\n}\r\n\r\n.utilities_ops-app-frame_PrinterDialog_PrinterDialog--buttonBox {\r\n display: flex;\r\n width: 100%;\r\n justify-content: flex-end;\r\n padding-top: 5px;\r\n}";
36706
- styleInject(css_248z$5);
36707
-
36708
33718
  function LatestReleaseDialog(_ref) {
36709
33719
  var release = _ref.release,
36710
33720
  handleClose = _ref.handleClose,
@@ -37053,6 +34063,9 @@ function startWebSocketConnection(updateNotifications, updateAllNotificationsLis
37053
34063
  console.log('WebSocket connection has been opened');
37054
34064
  };
37055
34065
  client.onmessage = function (message) {
34066
+ if ((message === null || message === void 0 ? void 0 : message.data) === '_pong_' || (message === null || message === void 0 ? void 0 : message.data) === '_ping_') {
34067
+ return;
34068
+ }
37056
34069
  var notification = [];
37057
34070
  try {
37058
34071
  var _newNotification$;
@@ -37255,22 +34268,18 @@ var AppBar = function AppBar(_ref) {
37255
34268
  _useState2 = _slicedToArray(_useState, 2);
37256
34269
  _useState2[0];
37257
34270
  var setMounted = _useState2[1];
37258
- var _useState3 = React.useState(false),
37259
- _useState4 = _slicedToArray(_useState3, 2);
37260
- _useState4[0];
37261
- var setPrinterDialogOpen = _useState4[1];
37262
- var _useState5 = React.useState(null),
34271
+ var _useState3 = React.useState(null),
34272
+ _useState4 = _slicedToArray(_useState3, 2),
34273
+ latestRelease = _useState4[0],
34274
+ setLatestRelease = _useState4[1];
34275
+ var _useState5 = React.useState(false),
37263
34276
  _useState6 = _slicedToArray(_useState5, 2),
37264
- latestRelease = _useState6[0],
37265
- setLatestRelease = _useState6[1];
34277
+ showMihelpDot = _useState6[0],
34278
+ setShowMihelpDot = _useState6[1];
37266
34279
  var _useState7 = React.useState(false),
37267
34280
  _useState8 = _slicedToArray(_useState7, 2),
37268
- showMihelpDot = _useState8[0],
37269
- setShowMihelpDot = _useState8[1];
37270
- var _useState9 = React.useState(false),
37271
- _useState10 = _slicedToArray(_useState9, 2),
37272
- showMihelpTooltip = _useState10[0],
37273
- setShowMihelpTooltip = _useState10[1];
34281
+ showMihelpTooltip = _useState8[0],
34282
+ setShowMihelpTooltip = _useState8[1];
37274
34283
  var tileData = findAppData(coreAppConfig.tiles || []) || {};
37275
34284
  var mihelpAppPath = isCoreRoute && !window.location.pathname.includes('embedded') ? null : tileData.mihelpAppPath;
37276
34285
  var isMihelpEnabled;
@@ -37331,7 +34340,7 @@ var AppBar = function AppBar(_ref) {
37331
34340
  case 8:
37332
34341
  _context.prev = 8;
37333
34342
  _context.t0 = _context["catch"](0);
37334
- console.log('+++fetch error=', _context.t0);
34343
+ console.log('fetch error=', _context.t0);
37335
34344
  case 11:
37336
34345
  case "end":
37337
34346
  return _context.stop();
@@ -37420,9 +34429,6 @@ var AppBar = function AppBar(_ref) {
37420
34429
  var isCoreApp = (_window$toolkitEnv = window.toolkitEnv) !== null && _window$toolkitEnv !== void 0 && _window$toolkitEnv.IS_CORE_APP ? window.toolkitEnv.IS_CORE_APP : process.env.IS_CORE_APP;
37421
34430
  return isCoreApp ? history.push('/settings') : window.location.assign('/settings');
37422
34431
  }
37423
- if (item.key === 'printers') {
37424
- setPrinterDialogOpen(true);
37425
- }
37426
34432
  if (item.key === 'logout') {
37427
34433
  var _cookies2 = browserCookies.all();
37428
34434
  Object.keys(_cookies2).forEach(function (cookieKey) {
@@ -37456,28 +34462,32 @@ var AppBar = function AppBar(_ref) {
37456
34462
  var event = new Event('togglePhoneAvailability');
37457
34463
  window.dispatchEvent(event);
37458
34464
  };
34465
+ var _useState9 = React.useState([]),
34466
+ _useState10 = _slicedToArray(_useState9, 2),
34467
+ notifications = _useState10[0],
34468
+ setNotifications = _useState10[1];
37459
34469
  var _useState11 = React.useState([]),
37460
34470
  _useState12 = _slicedToArray(_useState11, 2),
37461
- notifications = _useState12[0],
37462
- setNotifications = _useState12[1];
34471
+ listOfAllNotifications = _useState12[0],
34472
+ setListOfAllNotifications = _useState12[1];
37463
34473
  var _useState13 = React.useState([]),
37464
34474
  _useState14 = _slicedToArray(_useState13, 2),
37465
- listOfAllNotifications = _useState14[0],
37466
- setListOfAllNotifications = _useState14[1];
37467
- var _useState15 = React.useState([]),
34475
+ listOfAllFirebaseNotifications = _useState14[0],
34476
+ setListOfAllFirebaseNotifications = _useState14[1];
34477
+ var _useState15 = React.useState(),
37468
34478
  _useState16 = _slicedToArray(_useState15, 2),
37469
- listOfAllFirebaseNotifications = _useState16[0],
37470
- setListOfAllFirebaseNotifications = _useState16[1];
37471
- var _useState17 = React.useState(),
34479
+ socketClient = _useState16[0],
34480
+ setSocketClient = _useState16[1];
34481
+ var _useState17 = React.useState(false),
37472
34482
  _useState18 = _slicedToArray(_useState17, 2),
37473
- socketClient = _useState18[0],
37474
- setSocketClient = _useState18[1];
37475
- var _useState19 = React.useState(false),
37476
- _useState20 = _slicedToArray(_useState19, 2),
37477
- firebaseInitialized = _useState20[0],
37478
- setFirebaseinitialized = _useState20[1];
34483
+ firebaseInitialized = _useState18[0],
34484
+ setFirebaseinitialized = _useState18[1];
37479
34485
  var listOfAllNotificationsRef = React.useRef(listOfAllNotifications);
37480
34486
  var socketRetryCountRef = React.useRef(0);
34487
+ var _useState19 = React.useState(null),
34488
+ _useState20 = _slicedToArray(_useState19, 2),
34489
+ pingInterval = _useState20[0],
34490
+ setPingInterval = _useState20[1];
37481
34491
  React.useEffect(function () {
37482
34492
  listOfAllNotificationsRef.current = listOfAllNotifications;
37483
34493
  }, [listOfAllNotifications]);
@@ -37606,7 +34616,13 @@ var AppBar = function AppBar(_ref) {
37606
34616
  if (socketRetryCountRef.current < 15) {
37607
34617
  socketRetryCountRef.current = socketRetryCountRef.current + 1;
37608
34618
  socketClient && socketClient.close();
37609
- setSocketClient(startWebSocketConnection(updateNotifications, updateAllNotificationsList, reConnectSocket));
34619
+ clearTimeout(pingInterval);
34620
+ var client = startWebSocketConnection(updateNotifications, updateAllNotificationsList, reConnectSocket);
34621
+ var pingIntervalInSec = coreAppConfig.nchanPingIntervalInSec || 30;
34622
+ setPingInterval(setInterval(function () {
34623
+ client.send('_ping_');
34624
+ }, pingIntervalInSec * 1000));
34625
+ setSocketClient(client);
37610
34626
  }
37611
34627
  };
37612
34628
  var handleVisibilityChange = function handleVisibilityChange() {
@@ -37630,6 +34646,7 @@ var AppBar = function AppBar(_ref) {
37630
34646
  setListOfAllNotifications([]);
37631
34647
  setListOfAllFirebaseNotifications([]);
37632
34648
  socketClient && socketClient.close();
34649
+ clearTimeout(pingInterval);
37633
34650
  if (coreAppConfig && coreAppConfig.tiles) {
37634
34651
  var currentApp = window.location.pathname === '/' ? 'Ops Home' : window.location.pathname;
37635
34652
  var currentTile = history.location.pathname !== '/login' && coreAppConfig.tiles.find(function (tile) {
@@ -37643,7 +34660,12 @@ var AppBar = function AppBar(_ref) {
37643
34660
  if (notificationsSource.includes('Nchan')) {
37644
34661
  fetchG2Notifications(updateNotifications, updateAllNotificationsList);
37645
34662
  if (!(window.navigator.userAgent.includes("Chrome") && window.location.href.includes("localhost"))) {
37646
- setSocketClient(startWebSocketConnection(updateNotifications, updateAllNotificationsList, reConnectSocket));
34663
+ var client = startWebSocketConnection(updateNotifications, updateAllNotificationsList, reConnectSocket);
34664
+ var pingIntervalInSec = coreAppConfig.nchanPingIntervalInSec || 30;
34665
+ setPingInterval(setInterval(function () {
34666
+ client.send('_ping_');
34667
+ }, pingIntervalInSec * 1000));
34668
+ setSocketClient(client);
37647
34669
  }
37648
34670
  }
37649
34671
  if (!firebaseInitialized && notificationsSource.includes('Firebase')) {